@ -211,7 +211,13 @@ export function QuestionSheet({ question, disabled }: QuestionSheetProps) {
question . id ? . toLowerCase ( ) . includes ( "status" ) ||
question . id ? . toLowerCase ( ) . includes ( "status" ) ||
question . id ? . toLowerCase ( ) . includes ( "responsibility" ) ||
question . id ? . toLowerCase ( ) . includes ( "responsibility" ) ||
question . id ? . toLowerCase ( ) . includes ( "difference" ) ||
question . id ? . toLowerCase ( ) . includes ( "difference" ) ||
question . id ? . toLowerCase ( ) . includes ( "impact" ) ;
question . id ? . toLowerCase ( ) . includes ( "impact" ) ||
question . id ? . toLowerCase ( ) . includes ( "political" ) ||
question . id ? . toLowerCase ( ) . includes ( "governance" ) ||
question . id ? . toLowerCase ( ) . includes ( "stance" ) ||
question . id ? . toLowerCase ( ) . includes ( "government" ) ;
const hasStructuredBackendId = Boolean ( question . id ? . includes ( "." ) ) ;
const isLanguageQuestion = Boolean (
const isLanguageQuestion = Boolean (
question . ui_config ? . dataset === "languages" ||
question . ui_config ? . dataset === "languages" ||
@ -220,8 +226,8 @@ export function QuestionSheet({ question, disabled }: QuestionSheetProps) {
question . id ? . endsWith ( ".other_languages" ) ||
question . id ? . endsWith ( ".other_languages" ) ||
question . id ? . endsWith ( ".languages" ) ||
question . id ? . endsWith ( ".languages" ) ||
question . id ? . endsWith ( ".language" ) ||
question . id ? . endsWith ( ".language" ) ||
( ! question . id ? . includes ( "impact" ) &&
! question . id ? . includes ( "difference" ) &&
( ! hasStructuredBackendId &&
! isExcludedFromAutoDatasets &&
Boolean (
Boolean (
question . title ? . toLowerCase ( ) . includes ( "mother tongue" ) ||
question . title ? . toLowerCase ( ) . includes ( "mother tongue" ) ||
question . title ? . toLowerCase ( ) . includes ( "native language" ) ||
question . title ? . toLowerCase ( ) . includes ( "native language" ) ||
@ -239,17 +245,21 @@ export function QuestionSheet({ question, disabled }: QuestionSheetProps) {
question . ui_config ? . dataset === "nationalities" ||
question . ui_config ? . dataset === "nationalities" ||
question . id ? . includes ( "nationality" ) ||
question . id ? . includes ( "nationality" ) ||
question . id ? . includes ( "citizenship" ) ||
question . id ? . includes ( "citizenship" ) ||
question . id ? . includes ( "country_of_" ) ||
question . id ? . endsWith ( ".birthplace" ) ||
question . id ? . endsWith ( ".birthplace" ) ||
question . id ? . endsWith ( ".current_residence" ) ||
question . id ? . endsWith ( ".current_residence" ) ||
question . id ? . endsWith ( ".country" ) ||
question . id ? . endsWith ( ".country" ) ||
Boolean (
question . title ? . toLowerCase ( ) . includes ( "nationality" ) ||
question . title ? . toLowerCase ( ) . includes ( "citizenship" ) ||
question . title ? . toLowerCase ( ) . includes ( "country" ) ||
question . title ? . includes ( "تابعیت" ) ||
question . title ? . includes ( "ملیت" ) ||
question . title ? . includes ( "کشور" )
) )
( ! hasStructuredBackendId &&
! question . title ? . includes ( "؟" ) &&
! question . title ? . includes ( "?" ) &&
Boolean (
question . title ? . toLowerCase ( ) . includes ( "nationality" ) ||
question . title ? . toLowerCase ( ) . includes ( "citizenship" ) ||
question . title ? . toLowerCase ( ) . includes ( "country" ) ||
question . title ? . includes ( "تابعیت" ) ||
question . title ? . includes ( "ملیت" ) ||
question . title ? . includes ( "کشور" )
) ) )
) ;
) ;
const options = useMemo ( ( ) = > {
const options = useMemo ( ( ) = > {