datakeen-session-react 1.1.163 → 1.1.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/session/UserInputForm/LegalEntityFields.js +5 -1
- package/dist/cjs/components/session/UserInputForm/LegalEntityFields.js.map +1 -1
- package/dist/cjs/constants/userInputForm.js +2 -1
- package/dist/cjs/constants/userInputForm.js.map +1 -1
- package/dist/cjs/hooks/useUserInputForm.js +7 -3
- package/dist/cjs/hooks/useUserInputForm.js.map +1 -1
- package/dist/cjs/i18n/documents/documents.en.json.js +4 -1
- package/dist/cjs/i18n/documents/documents.en.json.js.map +1 -1
- package/dist/cjs/i18n/documents/documents.fr.json.js +4 -1
- package/dist/cjs/i18n/documents/documents.fr.json.js.map +1 -1
- package/dist/cjs/i18n/en.json.js +6 -3
- package/dist/cjs/i18n/en.json.js.map +1 -1
- package/dist/cjs/i18n/fr.json.js +6 -3
- package/dist/cjs/i18n/fr.json.js.map +1 -1
- package/dist/esm/components/session/UserInputForm/LegalEntityFields.js +5 -1
- package/dist/esm/components/session/UserInputForm/LegalEntityFields.js.map +1 -1
- package/dist/esm/constants/userInputForm.js +2 -1
- package/dist/esm/constants/userInputForm.js.map +1 -1
- package/dist/esm/hooks/useUserInputForm.js +7 -3
- package/dist/esm/hooks/useUserInputForm.js.map +1 -1
- package/dist/esm/i18n/documents/documents.en.json.js +4 -2
- package/dist/esm/i18n/documents/documents.en.json.js.map +1 -1
- package/dist/esm/i18n/documents/documents.fr.json.js +4 -2
- package/dist/esm/i18n/documents/documents.fr.json.js.map +1 -1
- package/dist/esm/i18n/en.json.js +6 -3
- package/dist/esm/i18n/en.json.js.map +1 -1
- package/dist/esm/i18n/fr.json.js +6 -3
- package/dist/esm/i18n/fr.json.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,11 @@ var LegalEntityFields = function (_a) {
|
|
|
12
12
|
return onFieldChange("companyName", event.target.value);
|
|
13
13
|
}, placeholder: t("user_input_form.placeholders.company_name", ""), className: clsx("w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent", errors.companyName
|
|
14
14
|
? "border-red-500 bg-red-50"
|
|
15
|
-
: "border-gray-300 hover-border-gray-400"), autoComplete: "off" }), errors.companyName && (jsxs("p", { className: "text-red-600 text-sm flex items-center gap-1", children: [jsx("span", { className: "text-red-500", children: "\u26A0" }), t("user_input_form.errors.last_name_required")] }))] })), requestedFields.has("
|
|
15
|
+
: "border-gray-300 hover-border-gray-400"), autoComplete: "off" }), errors.companyName && (jsxs("p", { className: "text-red-600 text-sm flex items-center gap-1", children: [jsx("span", { className: "text-red-500", children: "\u26A0" }), t("user_input_form.errors.last_name_required")] }))] })), requestedFields.has("registrationNumber") && (jsxs("div", { className: "space-y-2", children: [jsx(Label.Root, { htmlFor: "registrationNumber", className: "block text-sm md:text-base font-semibold text-gray-900", children: t(FIELD_LABELS.registrationNumber, "Company Registration Number") }), jsx("input", { id: "registrationNumber", type: "text", value: form.registrationNumber || "", onChange: function (event) {
|
|
16
|
+
return onFieldChange("registrationNumber", event.target.value);
|
|
17
|
+
}, placeholder: t("user_input_form.placeholders.registration_number", "e.g. 362 521 879"), className: clsx("w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent", errors.registrationNumber
|
|
18
|
+
? "border-red-500 bg-red-50"
|
|
19
|
+
: "border-gray-300 hover-border-gray-400"), autoComplete: "off" }), errors.registrationNumber && (jsxs("p", { className: "text-red-600 text-sm flex items-center gap-1", children: [jsx("span", { className: "text-red-500", children: "\u26A0" }), t("user_input_form.errors.registration_number_required", "Please enter your company registration number")] }))] })), requestedFields.has("siret") && (jsxs("div", { className: "space-y-2", children: [jsx(Label.Root, { htmlFor: "siret", className: "block text-sm md:text-base font-semibold text-gray-900", children: t(FIELD_LABELS.siret, "SIRET Number") }), jsx("input", { id: "siret", type: "text", value: form.siret || "", onChange: function (event) { return onFieldChange("siret", event.target.value); }, placeholder: t("user_input_form.placeholders.siret", "Ex : 362 521 879 00034"), className: clsx("w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent", errors.siret
|
|
16
20
|
? "border-red-500 bg-red-50"
|
|
17
21
|
: "border-gray-300 hover-border-gray-400"), autoComplete: "off" }), errors.siret && (jsxs("p", { className: "text-red-600 text-sm flex items-center gap-1", children: [jsx("span", { className: "text-red-500", children: "\u26A0" }), t("user_input_form.errors.siret_required", "Please enter a valid SIRET number")] }))] })), requestedFields.has("tva") && (jsxs("div", { className: "space-y-2", children: [jsx(Label.Root, { htmlFor: "tva", className: "block text-sm md:text-base font-semibold text-gray-900", children: t(FIELD_LABELS.tva, "VAT Number") }), jsx("input", { id: "tva", type: "text", value: form.tva || "", onChange: function (event) { return onFieldChange("tva", event.target.value); }, placeholder: t("user_input_form.placeholders.vat_number", "Ex : FR32362521879"), className: clsx("w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent", errors.tva
|
|
18
22
|
? "border-red-500 bg-red-50"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalEntityFields.js","sources":["../../../../../../src/components/session/UserInputForm/LegalEntityFields.tsx"],"sourcesContent":["import { Fragment } from \"react\";\nimport * as Label from \"@radix-ui/react-label\";\nimport clsx from \"clsx\";\nimport { FIELD_LABELS } from \"../../../constants/userInputForm\";\nimport type {\n RequestedFields,\n UserInputFormErrors,\n UserInputFormState,\n} from \"../../../types/userInputForm\";\nimport { useI18n } from \"../../../hooks/useI18n\";\n\ninterface LegalEntityFieldsProps {\n form: UserInputFormState;\n errors: UserInputFormErrors;\n requestedFields: RequestedFields;\n onFieldChange: (key: keyof UserInputFormState, value: string) => void;\n}\n\nconst LegalEntityFields = ({\n form,\n errors,\n requestedFields,\n onFieldChange,\n}: LegalEntityFieldsProps) => {\n const { t } = useI18n();\n\n return (\n <Fragment>\n <h3 className=\"text-lg md:text-xl font-semibold text-gray-900\">\n {t(\"user_input_form.company_information\", \"Informations de société\")}\n </h3>\n\n {/* Nom (Raison sociale pour personne morale) */}\n {requestedFields.has(\"nom\") && (\n <div className=\"space-y-2\">\n <Label.Root\n htmlFor=\"companyName\"\n className=\"block text-sm md:text-base font-semibold text-gray-900\"\n >\n {t(FIELD_LABELS.company, \"Company Name\")}\n </Label.Root>\n <input\n id=\"companyName\"\n type=\"text\"\n value={form.companyName || \"\"}\n onChange={(event) =>\n onFieldChange(\"companyName\", event.target.value)\n }\n placeholder={t(\"user_input_form.placeholders.company_name\", \"\")}\n className={clsx(\n \"w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent\",\n errors.companyName\n ? \"border-red-500 bg-red-50\"\n : \"border-gray-300 hover-border-gray-400\"\n )}\n autoComplete=\"off\"\n />\n {errors.companyName && (\n <p className=\"text-red-600 text-sm flex items-center gap-1\">\n <span className=\"text-red-500\">⚠</span>\n {t(\"user_input_form.errors.last_name_required\")}\n </p>\n )}\n </div>\n )}\n\n {/* SIRET */}\n {requestedFields.has(\"siret\") && (\n <div className=\"space-y-2\">\n <Label.Root\n htmlFor=\"siret\"\n className=\"block text-sm md:text-base font-semibold text-gray-900\"\n >\n {t(FIELD_LABELS.siret, \"SIRET Number\")}\n </Label.Root>\n <input\n id=\"siret\"\n type=\"text\"\n value={form.siret || \"\"}\n onChange={(event) => onFieldChange(\"siret\", event.target.value)}\n placeholder={t(\n \"user_input_form.placeholders.siret\",\n \"Ex : 362 521 879 00034\"\n )}\n className={clsx(\n \"w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent\",\n errors.siret\n ? \"border-red-500 bg-red-50\"\n : \"border-gray-300 hover-border-gray-400\"\n )}\n autoComplete=\"off\"\n />\n {errors.siret && (\n <p className=\"text-red-600 text-sm flex items-center gap-1\">\n <span className=\"text-red-500\">⚠</span>\n {t(\n \"user_input_form.errors.siret_required\",\n \"Please enter a valid SIRET number\"\n )}\n </p>\n )}\n </div>\n )}\n\n {/* TVA */}\n {requestedFields.has(\"tva\") && (\n <div className=\"space-y-2\">\n <Label.Root\n htmlFor=\"tva\"\n className=\"block text-sm md:text-base font-semibold text-gray-900\"\n >\n {t(FIELD_LABELS.tva, \"VAT Number\")}\n </Label.Root>\n <input\n id=\"tva\"\n type=\"text\"\n value={form.tva || \"\"}\n onChange={(event) => onFieldChange(\"tva\", event.target.value)}\n placeholder={t(\n \"user_input_form.placeholders.vat_number\",\n \"Ex : FR32362521879\"\n )}\n className={clsx(\n \"w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent\",\n errors.tva\n ? \"border-red-500 bg-red-50\"\n : \"border-gray-300 hover-border-gray-400\"\n )}\n autoComplete=\"off\"\n />\n {errors.tva && (\n <p className=\"text-red-600 text-sm flex items-center gap-1\">\n <span className=\"text-red-500\">⚠</span>\n {t(\n \"user_input_form.errors.tva_required\",\n \"Please enter a valid VAT number\"\n )}\n </p>\n )}\n </div>\n )}\n </Fragment>\n );\n};\n\nexport default LegalEntityFields;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;AAkBA,IAAM,iBAAiB,GAAG,UAAC,EAKF,EAAA;QAJvB,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,eAAe,GAAA,EAAA,CAAA,eAAA,EACf,aAAa,GAAA,EAAA,CAAA,aAAA;AAEL,IAAA,IAAA,CAAC,GAAK,OAAO,EAAE,EAAd;AAET,IAAA,QACEA,IAAA,CAAC,QAAQ,EAAA,EAAA,QAAA,EAAA,CACPC,YAAI,SAAS,EAAC,gDAAgD,EAAA,QAAA,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E,EACrB,QAAQ,EAAE,UAAC,KAAK,EAAA,EAAK,OAAA,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA,CAAxC,CAAwC,EAC7D,WAAW,EAAE,CAAC,CACZ,yCAAyC,EACzC,oBAAoB,CACrB,EACD,SAAS,EAAE,IAAI,CACb,sJAAsJ,EACtJ,MAAM,CAAC;AACL,8BAAE;AACF,8BAAE,uCAAuC,CAC5C,EACD,YAAY,EAAC,KAAK,EAAA,CAClB,EACD,MAAM,CAAC,GAAG,KACTD,IAAA,CAAA,GAAA,EAAA,EAAG,SAAS,EAAC,8CAA8C,EAAA,QAAA,EAAA,CACzDC,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,cAAc,EAAA,QAAA,EAAA,QAAA,EAAA,CAAS,EACtC,CAAC,CACA,qCAAqC,EACrC,iCAAiC,CAClC,CAAA,EAAA,CACC,CACL,IACG,CACP,CAAA,EAAA,CACQ;AAEf;;;;"}
|
|
1
|
+
{"version":3,"file":"LegalEntityFields.js","sources":["../../../../../../src/components/session/UserInputForm/LegalEntityFields.tsx"],"sourcesContent":["import { Fragment } from \"react\";\nimport * as Label from \"@radix-ui/react-label\";\nimport clsx from \"clsx\";\nimport { FIELD_LABELS } from \"../../../constants/userInputForm\";\nimport type {\n RequestedFields,\n UserInputFormErrors,\n UserInputFormState,\n} from \"../../../types/userInputForm\";\nimport { useI18n } from \"../../../hooks/useI18n\";\n\ninterface LegalEntityFieldsProps {\n form: UserInputFormState;\n errors: UserInputFormErrors;\n requestedFields: RequestedFields;\n onFieldChange: (key: keyof UserInputFormState, value: string) => void;\n}\n\nconst LegalEntityFields = ({\n form,\n errors,\n requestedFields,\n onFieldChange,\n}: LegalEntityFieldsProps) => {\n const { t } = useI18n();\n\n return (\n <Fragment>\n <h3 className=\"text-lg md:text-xl font-semibold text-gray-900\">\n {t(\"user_input_form.company_information\", \"Informations de société\")}\n </h3>\n\n {/* Nom (Raison sociale pour personne morale) */}\n {requestedFields.has(\"nom\") && (\n <div className=\"space-y-2\">\n <Label.Root\n htmlFor=\"companyName\"\n className=\"block text-sm md:text-base font-semibold text-gray-900\"\n >\n {t(FIELD_LABELS.company, \"Company Name\")}\n </Label.Root>\n <input\n id=\"companyName\"\n type=\"text\"\n value={form.companyName || \"\"}\n onChange={(event) =>\n onFieldChange(\"companyName\", event.target.value)\n }\n placeholder={t(\"user_input_form.placeholders.company_name\", \"\")}\n className={clsx(\n \"w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent\",\n errors.companyName\n ? \"border-red-500 bg-red-50\"\n : \"border-gray-300 hover-border-gray-400\"\n )}\n autoComplete=\"off\"\n />\n {errors.companyName && (\n <p className=\"text-red-600 text-sm flex items-center gap-1\">\n <span className=\"text-red-500\">⚠</span>\n {t(\"user_input_form.errors.last_name_required\")}\n </p>\n )}\n </div>\n )}\n\n {/* Registration Number (SIREN / Company Registration Number) */}\n {requestedFields.has(\"registrationNumber\") && (\n <div className=\"space-y-2\">\n <Label.Root\n htmlFor=\"registrationNumber\"\n className=\"block text-sm md:text-base font-semibold text-gray-900\"\n >\n {t(FIELD_LABELS.registrationNumber, \"Company Registration Number\")}\n </Label.Root>\n <input\n id=\"registrationNumber\"\n type=\"text\"\n value={form.registrationNumber || \"\"}\n onChange={(event) =>\n onFieldChange(\"registrationNumber\", event.target.value)\n }\n placeholder={t(\n \"user_input_form.placeholders.registration_number\",\n \"e.g. 362 521 879\"\n )}\n className={clsx(\n \"w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent\",\n errors.registrationNumber\n ? \"border-red-500 bg-red-50\"\n : \"border-gray-300 hover-border-gray-400\"\n )}\n autoComplete=\"off\"\n />\n {errors.registrationNumber && (\n <p className=\"text-red-600 text-sm flex items-center gap-1\">\n <span className=\"text-red-500\">⚠</span>\n {t(\n \"user_input_form.errors.registration_number_required\",\n \"Please enter your company registration number\"\n )}\n </p>\n )}\n </div>\n )}\n\n {/* SIRET */}\n {requestedFields.has(\"siret\") && (\n <div className=\"space-y-2\">\n <Label.Root\n htmlFor=\"siret\"\n className=\"block text-sm md:text-base font-semibold text-gray-900\"\n >\n {t(FIELD_LABELS.siret, \"SIRET Number\")}\n </Label.Root>\n <input\n id=\"siret\"\n type=\"text\"\n value={form.siret || \"\"}\n onChange={(event) => onFieldChange(\"siret\", event.target.value)}\n placeholder={t(\n \"user_input_form.placeholders.siret\",\n \"Ex : 362 521 879 00034\"\n )}\n className={clsx(\n \"w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent\",\n errors.siret\n ? \"border-red-500 bg-red-50\"\n : \"border-gray-300 hover-border-gray-400\"\n )}\n autoComplete=\"off\"\n />\n {errors.siret && (\n <p className=\"text-red-600 text-sm flex items-center gap-1\">\n <span className=\"text-red-500\">⚠</span>\n {t(\n \"user_input_form.errors.siret_required\",\n \"Please enter a valid SIRET number\"\n )}\n </p>\n )}\n </div>\n )}\n\n {/* TVA */}\n {requestedFields.has(\"tva\") && (\n <div className=\"space-y-2\">\n <Label.Root\n htmlFor=\"tva\"\n className=\"block text-sm md:text-base font-semibold text-gray-900\"\n >\n {t(FIELD_LABELS.tva, \"VAT Number\")}\n </Label.Root>\n <input\n id=\"tva\"\n type=\"text\"\n value={form.tva || \"\"}\n onChange={(event) => onFieldChange(\"tva\", event.target.value)}\n placeholder={t(\n \"user_input_form.placeholders.vat_number\",\n \"Ex : FR32362521879\"\n )}\n className={clsx(\n \"w-full px-3 py-3 md:py-4 border rounded-lg text-base transition-colors focus:outline-none focus:ring-2 focus:ring-[#11E5C5] focus:border-transparent\",\n errors.tva\n ? \"border-red-500 bg-red-50\"\n : \"border-gray-300 hover-border-gray-400\"\n )}\n autoComplete=\"off\"\n />\n {errors.tva && (\n <p className=\"text-red-600 text-sm flex items-center gap-1\">\n <span className=\"text-red-500\">⚠</span>\n {t(\n \"user_input_form.errors.tva_required\",\n \"Please enter a valid VAT number\"\n )}\n </p>\n )}\n </div>\n )}\n </Fragment>\n );\n};\n\nexport default LegalEntityFields;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;AAkBA,IAAM,iBAAiB,GAAG,UAAC,EAKF,EAAA;QAJvB,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,eAAe,GAAA,EAAA,CAAA,eAAA,EACf,aAAa,GAAA,EAAA,CAAA,aAAA;AAEL,IAAA,IAAA,CAAC,GAAK,OAAO,EAAE,EAAd;AAET,IAAA,QACEA,IAAA,CAAC,QAAQ,EAAA,EAAA,QAAA,EAAA,CACPC,YAAI,SAAS,EAAC,gDAAgD,EAAA,QAAA,EAC3D,CAAC,CAAC,qCAAqC,EAAE,yBAAyB,CAAC,EAAA,CACjE,EAGJ,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,KACzBD,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,WAAW,EAAA,QAAA,EAAA,CACxBC,GAAA,CAAC,KAAK,CAAC,IAAI,EAAA,EACT,OAAO,EAAC,aAAa,EACrB,SAAS,EAAC,wDAAwD,YAEjE,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,EAAA,CAC7B,EACbA,GAAA,CAAA,OAAA,EAAA,EACE,EAAE,EAAC,aAAa,EAChB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,IAAI,CAAC,WAAW,IAAI,EAAE,EAC7B,QAAQ,EAAE,UAAC,KAAK,EAAA;4BACd,OAAA,aAAa,CAAC,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;AAAhD,wBAAA,CAAgD,EAElD,WAAW,EAAE,CAAC,CAAC,2CAA2C,EAAE,EAAE,CAAC,EAC/D,SAAS,EAAE,IAAI,CACb,sJAAsJ,EACtJ,M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C,KAAK,CAAC,IAAI,EAAA,EACT,OAAO,EAAC,KAAK,EACb,SAAS,EAAC,wDAAwD,EAAA,QAAA,EAEjE,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,EAAA,CACvB,EACbA,GAAA,CAAA,OAAA,EAAA,EACE,EAAE,EAAC,KAAK,EACR,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,EACrB,QAAQ,EAAE,UAAC,KAAK,EAAA,EAAK,OAAA,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA,CAAxC,CAAwC,EAC7D,WAAW,EAAE,CAAC,CACZ,yCAAyC,EACzC,oBAAoB,CACrB,EACD,SAAS,EAAE,IAAI,CACb,sJAAsJ,EACtJ,MAAM,CAAC;AACL,8BAAE;AACF,8BAAE,uCAAuC,CAC5C,EACD,YAAY,EAAC,KAAK,EAAA,CAClB,EACD,MAAM,CAAC,GAAG,KACTD,IAAA,CAAA,GAAA,EAAA,EAAG,SAAS,EAAC,8CAA8C,EAAA,QAAA,EAAA,CACzDC,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,cAAc,EAAA,QAAA,EAAA,QAAA,EAAA,CAAS,EACtC,CAAC,CACA,qCAAqC,EACrC,iCAAiC,CAClC,CAAA,EAAA,CACC,CACL,IACG,CACP,CAAA,EAAA,CACQ;AAEf;;;;"}
|
|
@@ -38,7 +38,7 @@ var ADDRESS_SUGGESTIONS = [
|
|
|
38
38
|
];
|
|
39
39
|
var DEFAULT_FIELDS = {
|
|
40
40
|
identity: ["nom", "prenom", "date_naissance"],
|
|
41
|
-
"identity-legal": ["nom", "siret", "tva", "adresse"],
|
|
41
|
+
"identity-legal": ["nom", "registrationNumber", "siret", "tva", "adresse"],
|
|
42
42
|
contact: ["email", "sms"],
|
|
43
43
|
address: ["adresse"],
|
|
44
44
|
nationality: ["nationalite"],
|
|
@@ -54,6 +54,7 @@ var FIELD_LABELS = {
|
|
|
54
54
|
company: "user_input_form.fields.company_name",
|
|
55
55
|
siret: "user_input_form.fields.siret",
|
|
56
56
|
tva: "user_input_form.fields.vat_number",
|
|
57
|
+
registrationNumber: "user_input_form.fields.registration_number",
|
|
57
58
|
};
|
|
58
59
|
// Backend endpoint pour l'autocomplétion d'adresses (sécurisé)
|
|
59
60
|
var GEOCODING_AUTOCOMPLETE_ENDPOINT = "/geocoding/autocomplete";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userInputForm.js","sources":["../../../../src/constants/userInputForm.ts"],"sourcesContent":["import type {\n AddressSuggestion,\n InformationType,\n RequestedFieldKey,\n SelectOption,\n} from \"../types/userInputForm\";\n\nconst days = Array.from({ length: 31 }, (_, index) => index + 1);\nconst currentYear = new Date().getFullYear();\nconst years = Array.from({ length: 120 }, (_, index) => currentYear - index);\n\nconst monthLabels = [\n \"Janvier\",\n \"Février\",\n \"Mars\",\n \"Avril\",\n \"Mai\",\n \"Juin\",\n \"Juillet\",\n \"Août\",\n \"Septembre\",\n \"Octobre\",\n \"Novembre\",\n \"Décembre\",\n];\n\nexport const DAY_OPTIONS: SelectOption[] = days.map((value) => ({\n value: String(value).padStart(2, \"0\"),\n label: String(value).padStart(2, \"0\"),\n}));\n\nexport const MONTH_OPTIONS: SelectOption[] = monthLabels.map(\n (label, index) => ({\n value: String(index + 1).padStart(2, \"0\"),\n label,\n })\n);\n\nexport const YEAR_OPTIONS: SelectOption[] = years.map((value) => ({\n value: String(value),\n label: String(value),\n}));\n\n\nexport const ADDRESS_SUGGESTIONS: string[] = [\n \"10 Rue de Rivoli, 75001 Paris, France\",\n \"221B Baker Street, NW1 6XE Londres, Royaume-Uni\",\n \"1600 Amphitheatre Parkway, 94043 Mountain View, États-Unis\",\n \"55 Rue du Faubourg Saint-Honoré, 75008 Paris, France\",\n \"1 Place du Commerce, 44000 Nantes, France\",\n \"Piazza del Colosseo 1, 00184 Rome, Italie\",\n \"Av. Paulista 1578, 01310-200 São Paulo, Brésil\",\n];\n\nexport const DEFAULT_FIELDS: Record<InformationType, RequestedFieldKey[]> = {\n identity: [\"nom\", \"prenom\", \"date_naissance\"],\n \"identity-legal\": [\"nom\", \"siret\", \"tva\", \"adresse\"],\n contact: [\"email\", \"sms\"],\n address: [\"adresse\"],\n nationality: [\"nationalite\"],\n custom: [], // Custom forms use customFields instead\n};\n\nexport const FIELD_LABELS: Record<RequestedFieldKey, string> = {\n nom: \"user_input_form.fields.last_name\",\n prenom: \"user_input_form.fields.first_name\",\n date_naissance: \"user_input_form.fields.birth_date\",\n email: \"user_input_form.fields.email\",\n sms: \"user_input_form.fields.phone\",\n adresse: \"user_input_form.fields.address_line1\",\n nationalite: \"user_input_form.fields.nationality\",\n company: \"user_input_form.fields.company_name\",\n siret: \"user_input_form.fields.siret\",\n tva: \"user_input_form.fields.vat_number\",\n};\n\n// Backend endpoint pour l'autocomplétion d'adresses (sécurisé)\nexport const GEOCODING_AUTOCOMPLETE_ENDPOINT = \"/geocoding/autocomplete\";\n\nexport const FALLBACK_ADDRESS_SUGGESTIONS: AddressSuggestion[] =\n ADDRESS_SUGGESTIONS.map((label, index) => ({\n id: `fallback-${index}`,\n label,\n addressLine1: label,\n postalCode: \"\",\n city: \"\",\n country: \"\",\n }));\n"],"names":[],"mappings":"AAOA,IAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,UAAC,CAAC,EAAE,KAAK,EAAA,EAAK,OAAA,KAAK,GAAG,CAAC,CAAA,CAAT,CAAS,CAAC;AAChE,IAAM,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;AAC5C,IAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,UAAC,CAAC,EAAE,KAAK,EAAA,EAAK,OAAA,WAAW,GAAG,KAAK,CAAA,CAAnB,CAAmB,CAAC;AAE5E,IAAM,W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/constants/userInputForm.ts"],"sourcesContent":["import type {\n AddressSuggestion,\n InformationType,\n RequestedFieldKey,\n SelectOption,\n} from \"../types/userInputForm\";\n\nconst days = Array.from({ length: 31 }, (_, index) => index + 1);\nconst currentYear = new Date().getFullYear();\nconst years = Array.from({ length: 120 }, (_, index) => currentYear - index);\n\nconst monthLabels = [\n \"Janvier\",\n \"Février\",\n \"Mars\",\n \"Avril\",\n \"Mai\",\n \"Juin\",\n \"Juillet\",\n \"Août\",\n \"Septembre\",\n \"Octobre\",\n \"Novembre\",\n \"Décembre\",\n];\n\nexport const DAY_OPTIONS: SelectOption[] = days.map((value) => ({\n value: String(value).padStart(2, \"0\"),\n label: String(value).padStart(2, \"0\"),\n}));\n\nexport const MONTH_OPTIONS: SelectOption[] = monthLabels.map(\n (label, index) => ({\n value: String(index + 1).padStart(2, \"0\"),\n label,\n })\n);\n\nexport const YEAR_OPTIONS: SelectOption[] = years.map((value) => ({\n value: String(value),\n label: String(value),\n}));\n\n\nexport const ADDRESS_SUGGESTIONS: string[] = [\n \"10 Rue de Rivoli, 75001 Paris, France\",\n \"221B Baker Street, NW1 6XE Londres, Royaume-Uni\",\n \"1600 Amphitheatre Parkway, 94043 Mountain View, États-Unis\",\n \"55 Rue du Faubourg Saint-Honoré, 75008 Paris, France\",\n \"1 Place du Commerce, 44000 Nantes, France\",\n \"Piazza del Colosseo 1, 00184 Rome, Italie\",\n \"Av. Paulista 1578, 01310-200 São Paulo, Brésil\",\n];\n\nexport const DEFAULT_FIELDS: Record<InformationType, RequestedFieldKey[]> = {\n identity: [\"nom\", \"prenom\", \"date_naissance\"],\n \"identity-legal\": [\"nom\", \"registrationNumber\", \"siret\", \"tva\", \"adresse\"],\n contact: [\"email\", \"sms\"],\n address: [\"adresse\"],\n nationality: [\"nationalite\"],\n custom: [], // Custom forms use customFields instead\n};\n\nexport const FIELD_LABELS: Record<RequestedFieldKey, string> = {\n nom: \"user_input_form.fields.last_name\",\n prenom: \"user_input_form.fields.first_name\",\n date_naissance: \"user_input_form.fields.birth_date\",\n email: \"user_input_form.fields.email\",\n sms: \"user_input_form.fields.phone\",\n adresse: \"user_input_form.fields.address_line1\",\n nationalite: \"user_input_form.fields.nationality\",\n company: \"user_input_form.fields.company_name\",\n siret: \"user_input_form.fields.siret\",\n tva: \"user_input_form.fields.vat_number\",\n registrationNumber: \"user_input_form.fields.registration_number\",\n};\n\n// Backend endpoint pour l'autocomplétion d'adresses (sécurisé)\nexport const GEOCODING_AUTOCOMPLETE_ENDPOINT = \"/geocoding/autocomplete\";\n\nexport const FALLBACK_ADDRESS_SUGGESTIONS: AddressSuggestion[] =\n ADDRESS_SUGGESTIONS.map((label, index) => ({\n id: `fallback-${index}`,\n label,\n addressLine1: label,\n postalCode: \"\",\n city: \"\",\n country: \"\",\n }));\n"],"names":[],"mappings":"AAOA,IAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,UAAC,CAAC,EAAE,KAAK,EAAA,EAAK,OAAA,KAAK,GAAG,CAAC,CAAA,CAAT,CAAS,CAAC;AAChE,IAAM,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;AAC5C,IAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,UAAC,CAAC,EAAE,KAAK,EAAA,EAAK,OAAA,WAAW,GAAG,KAAK,CAAA,CAAnB,CAAmB,CAAC;AAE5E,IAAM,WAAW,GAAG;IAClB,SAAS;IACT,SAAS;IACT,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;IACN,SAAS;IACT,MAAM;IACN,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;CACX;AAEM,IAAM,WAAW,GAAmB,IAAI,CAAC,GAAG,CAAC,UAAC,KAAK,EAAA,EAAK,QAAC;IAC9D,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,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AA8B;AACnC,IACA,WAAW,EAAE,oCAAoC;AACjD,IAAA,OAAO,EAAE,qCAAqC;AAC9C,IAAA,KAAK,EAAE,8BAA8B;AACrC,IAAA,GAAG,EAAE,mCAAmC;AACxC,IAAA,kBAAkB,EAAE,4CAA4C;;AAGlE;AACO,IAAM,+BAA+B,GAAG;AAExC,IAAM,4BAA4B,GACvC,mBAAmB,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,KAAK,EAAA,EAAK,QAAC;IACzC,EAAE,EAAE,WAAA,CAAA,MAAA,CAAY,KAAK,CAAE;AACvB,IAAA,KAAK,EAAA,KAAA;AACL,IAAA,YAAY,EAAE,KAAK;AACnB,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,OAAO,EAAE,EAAE;CACZ,EAAC,CAPwC,CAOxC;;;;"}
|
|
@@ -54,6 +54,7 @@ var useUserInputForm = function (_a) {
|
|
|
54
54
|
companyName: (initialUserInput === null || initialUserInput === void 0 ? void 0 : initialUserInput.companyName) || "",
|
|
55
55
|
siret: (initialUserInput === null || initialUserInput === void 0 ? void 0 : initialUserInput.siret) || "",
|
|
56
56
|
tva: (initialUserInput === null || initialUserInput === void 0 ? void 0 : initialUserInput.tva) || "",
|
|
57
|
+
registrationNumber: (initialUserInput === null || initialUserInput === void 0 ? void 0 : initialUserInput.registrationNumber) || "",
|
|
57
58
|
}), form = _b[0], setForm = _b[1];
|
|
58
59
|
var _c = useState({}), errors = _c[0], setErrors = _c[1];
|
|
59
60
|
// Custom form state
|
|
@@ -231,7 +232,7 @@ var useUserInputForm = function (_a) {
|
|
|
231
232
|
!form.phoneNumber &&
|
|
232
233
|
!form.companyName)) {
|
|
233
234
|
var nextBirthParts_1 = parseBirthDate(initialUserInput.birthDate || "");
|
|
234
|
-
setForm(function (previous) { return (__assign(__assign({}, previous), { lastName: initialUserInput.lastName || previous.lastName, firstName: initialUserInput.firstName || previous.firstName, birthDate: initialUserInput.birthDate || previous.birthDate, day: nextBirthParts_1.day, month: nextBirthParts_1.month, year: nextBirthParts_1.year, email: initialUserInput.email || previous.email, phoneNumber: initialUserInput.phoneNumber || previous.phoneNumber, sms: initialUserInput.sms || previous.sms, addressLine1: initialUserInput.addressLine1 || previous.addressLine1, addressLine2: initialUserInput.addressLine2 || previous.addressLine2, postalCode: initialUserInput.postalCode || previous.postalCode, city: initialUserInput.city || previous.city, countryCode: initialUserInput.countryCode || previous.countryCode, nationality: initialUserInput.nationality || previous.nationality, companyName: initialUserInput.companyName || previous.companyName, siret: initialUserInput.siret || previous.siret, tva: initialUserInput.tva || previous.tva })); });
|
|
235
|
+
setForm(function (previous) { return (__assign(__assign({}, previous), { lastName: initialUserInput.lastName || previous.lastName, firstName: initialUserInput.firstName || previous.firstName, birthDate: initialUserInput.birthDate || previous.birthDate, day: nextBirthParts_1.day, month: nextBirthParts_1.month, year: nextBirthParts_1.year, email: initialUserInput.email || previous.email, phoneNumber: initialUserInput.phoneNumber || previous.phoneNumber, sms: initialUserInput.sms || previous.sms, addressLine1: initialUserInput.addressLine1 || previous.addressLine1, addressLine2: initialUserInput.addressLine2 || previous.addressLine2, postalCode: initialUserInput.postalCode || previous.postalCode, city: initialUserInput.city || previous.city, countryCode: initialUserInput.countryCode || previous.countryCode, nationality: initialUserInput.nationality || previous.nationality, companyName: initialUserInput.companyName || previous.companyName, siret: initialUserInput.siret || previous.siret, tva: initialUserInput.tva || previous.tva, registrationNumber: initialUserInput.registrationNumber || previous.registrationNumber })); });
|
|
235
236
|
isFirstRender.current = false;
|
|
236
237
|
}
|
|
237
238
|
}, [
|
|
@@ -327,6 +328,9 @@ var useUserInputForm = function (_a) {
|
|
|
327
328
|
if (requestedFields.has("tva") && !form.tva) {
|
|
328
329
|
markError("tva");
|
|
329
330
|
}
|
|
331
|
+
if (requestedFields.has("registrationNumber") && !form.registrationNumber) {
|
|
332
|
+
markError("registrationNumber");
|
|
333
|
+
}
|
|
330
334
|
}
|
|
331
335
|
if (informationType === "contact") {
|
|
332
336
|
if (requestedFields.has("email")) {
|
|
@@ -533,7 +537,7 @@ var useUserInputForm = function (_a) {
|
|
|
533
537
|
if (!validateForm()) {
|
|
534
538
|
return;
|
|
535
539
|
}
|
|
536
|
-
setUserInput(function (previous) { return (__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, previous), (requestedFields.has("nom") && __assign({}, (informationType === "identity-legal"
|
|
540
|
+
setUserInput(function (previous) { return (__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, previous), (requestedFields.has("nom") && __assign({}, (informationType === "identity-legal"
|
|
537
541
|
? { companyName: form.companyName }
|
|
538
542
|
: { lastName: form.lastName })))), (requestedFields.has("prenom") && { firstName: form.firstName })), (requestedFields.has("date_naissance") && {
|
|
539
543
|
birthDate: form.birthDate,
|
|
@@ -546,7 +550,7 @@ var useUserInputForm = function (_a) {
|
|
|
546
550
|
postalCode: form.postalCode,
|
|
547
551
|
city: form.city,
|
|
548
552
|
countryCode: form.countryCode,
|
|
549
|
-
})), (requestedFields.has("siret") && { siret: form.siret })), (requestedFields.has("tva") && { tva: form.tva })), (requestedFields.has("nationalite") && {
|
|
553
|
+
})), (requestedFields.has("siret") && { siret: form.siret })), (requestedFields.has("tva") && { tva: form.tva })), (requestedFields.has("registrationNumber") && { registrationNumber: form.registrationNumber })), (requestedFields.has("siret") && !requestedFields.has("registrationNumber") && { registrationNumber: form.siret })), (requestedFields.has("nationalite") && {
|
|
550
554
|
nationality: form.nationality,
|
|
551
555
|
}))); });
|
|
552
556
|
if (informationType === "contact" && setContactInfo) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUserInputForm.js","sources":["../../../../src/hooks/useUserInputForm.ts"],"sourcesContent":["import { useEffect, useMemo, useRef, useState } from \"react\";\nimport type { UserInputFormProps } from \"../types/userInput\";\nimport type {\n AddressSuggestion,\n InformationType,\n RequestedFields,\n UserInputFormErrors,\n UserInputFormState,\n} from \"../types/userInputForm\";\nimport {\n DEFAULT_FIELDS,\n FALLBACK_ADDRESS_SUGGESTIONS,\n GEOCODING_AUTOCOMPLETE_ENDPOINT,\n} from \"../constants/userInputForm\";\nimport { API_BASE_URL } from \"../config/env\";\nimport {\n checkIsMajor,\n parseBirthDate,\n resolveInformationType,\n} from \"../utils/userInputForm\";\nimport {\n countNonEmptyListRows,\n getListFieldMinRows,\n normalizeListColumns,\n} from \"../utils/listFieldUtils\";\nimport {\n cellErrorKey,\n isDateValid,\n isEmailValid,\n isRegexMatch,\n} from \"../utils/customFieldValidation\";\nimport { DEFAULT_DATE_DISPLAY_FORMAT } from \"../types/session\";\nimport { useI18n } from \"./useI18n\";\n\nexport type CustomFieldErrorValue = string | boolean;\n\ninterface UseUserInputFormResult {\n form: UserInputFormState;\n errors: UserInputFormErrors;\n informationType: InformationType;\n requestedFields: RequestedFields;\n pageTitle: string;\n pageDescription: string;\n addressSuggestions: AddressSuggestion[];\n showSuggestions: boolean;\n handleFieldChange: (key: keyof UserInputFormState, value: string) => void;\n handleAddressChange: (value: string) => void;\n handleAddressFocus: () => void;\n handleAddressBlur: () => void;\n applyAddressSuggestion: (suggestion: AddressSuggestion) => void;\n goOnNextStep: () => void;\n goOnPreviousStep: () => void;\n // Custom form fields\n customFormData: Record<string, any>;\n customFormErrors: Record<string, CustomFieldErrorValue>;\n customFormCellErrors: Record<string, Record<string, CustomFieldErrorValue>>;\n handleCustomFieldChange: (fieldId: string, value: any) => void;\n}\n\nexport const useUserInputForm = ({\n stepObject,\n setUserInput,\n initialUserInput,\n node,\n template,\n contactInfo,\n setContactInfo,\n onContinueCallback,\n}: UserInputFormProps): UseUserInputFormResult => {\n const { setStep, goBack, goToNextStep, step } = stepObject;\n const { t } = useI18n();\n\n const informationType = useMemo<InformationType>(() => {\n const resolved = resolveInformationType(\n node.informationType as string,\n \"identity\",\n );\n console.log(\"🔍 [useUserInputForm] Resolving informationType:\", {\n nodeInformationType: node.informationType,\n resolved,\n hasCustomFields: !!node.customFields,\n customFieldsCount: node.customFields?.length,\n });\n return resolved;\n }, [node.informationType, node.customFields]);\n\n const requestedFields = useMemo<RequestedFields>(() => {\n const defaults = DEFAULT_FIELDS[informationType] || [];\n const optional =\n node.optionalFields && node.optionalFields.length > 0\n ? node.optionalFields\n : defaults;\n const merged = new Set<string>(optional);\n\n if (node.requiredFields) {\n node.requiredFields.forEach((field) => merged.add(field));\n }\n\n return merged;\n }, [node.optionalFields, node.requiredFields, informationType]);\n\n const birthDateParts = useMemo(\n () => parseBirthDate(initialUserInput?.birthDate || \"\"),\n [initialUserInput?.birthDate],\n );\n\n const [form, setForm] = useState<UserInputFormState>({\n lastName: initialUserInput?.lastName || \"\",\n firstName: initialUserInput?.firstName || \"\",\n birthDate: initialUserInput?.birthDate || \"\",\n day: birthDateParts.day,\n month: birthDateParts.month,\n year: birthDateParts.year,\n email: initialUserInput?.email || contactInfo?.email || \"\",\n phoneNumber:\n initialUserInput?.phoneNumber || contactInfo?.phoneNumber || \"\",\n sms: initialUserInput?.sms || \"\",\n addressLine1: initialUserInput?.addressLine1 || \"\",\n addressLine2: initialUserInput?.addressLine2 || \"\",\n postalCode: initialUserInput?.postalCode || \"\",\n city: initialUserInput?.city || \"\",\n countryCode: initialUserInput?.countryCode || \"\",\n nationality: initialUserInput?.nationality || \"\",\n companyName: initialUserInput?.companyName || \"\",\n siret: initialUserInput?.siret || \"\",\n tva: initialUserInput?.tva || \"\",\n });\n\n const [errors, setErrors] = useState<UserInputFormErrors>({});\n\n // Custom form state\n const [customFormData, setCustomFormData] = useState<Record<string, any>>(\n () => {\n if (informationType !== \"custom\" || !node.customFields) return {};\n\n const initial: Record<string, any> = {};\n node.customFields.forEach((field) => {\n const savedValue = initialUserInput?.customFormData?.[field.id];\n if (field.valueType === \"list\") {\n initial[field.id] = Array.isArray(savedValue) ? savedValue : [];\n return;\n }\n\n initial[field.id] = savedValue || \"\";\n });\n return initial;\n },\n );\n const [customFormErrors, setCustomFormErrors] = useState<\n Record<string, CustomFieldErrorValue>\n >({});\n const [customFormCellErrors, setCustomFormCellErrors] = useState<\n Record<string, Record<string, CustomFieldErrorValue>>\n >({});\n\n const [addressSuggestions, setAddressSuggestions] = useState<\n AddressSuggestion[]\n >([]);\n const [showSuggestions, setShowSuggestions] = useState(false);\n const isFirstRender = useRef(true);\n const hideSuggestionTimeout = useRef<ReturnType<typeof setTimeout> | null>(\n null,\n );\n const addressRequestState = useRef<{\n debounce: ReturnType<typeof setTimeout> | null;\n controller: AbortController | null;\n }>({\n debounce: null,\n controller: null,\n });\n\n const formTitles = useMemo<Record<InformationType, string>>(\n () => ({\n identity: t(\"user_input_form.titles.identity\"),\n \"identity-legal\": t(\"user_input_form.titles.identity_legal\"),\n contact: t(\"user_input_form.titles.contact\"),\n address: t(\"user_input_form.titles.address\"),\n nationality: t(\"user_input_form.titles.nationality\"),\n custom: t(\"user_input_form.titles.custom\"),\n }),\n [t],\n );\n\n const formDescriptions = useMemo<Record<InformationType, string>>(\n () => ({\n identity: t(\"user_input_form.descriptions.identity\"),\n \"identity-legal\": t(\"user_input_form.descriptions.identity_legal\"),\n contact: t(\"user_input_form.descriptions.contact\"),\n address: t(\"user_input_form.descriptions.address\"),\n nationality: t(\"user_input_form.descriptions.nationality\"),\n custom: t(\"user_input_form.descriptions.custom\"),\n }),\n [t],\n );\n\n const applyAddressSuggestion = (suggestion: AddressSuggestion) => {\n const normalizedCountry =\n suggestion.countryCode?.toUpperCase() || suggestion.country || \"\";\n\n setForm((previous) => ({\n ...previous,\n addressLine1: suggestion.addressLine1 || suggestion.label,\n postalCode: suggestion.postalCode || previous.postalCode,\n city: suggestion.city || previous.city,\n countryCode: normalizedCountry || previous.countryCode,\n }));\n setErrors((previous) => ({\n ...previous,\n addressLine1: false,\n postalCode: false,\n city: false,\n country: false,\n }));\n setShowSuggestions(false);\n setAddressSuggestions([]);\n };\n\n const mapGeoapifyFeature = (feature: any): AddressSuggestion | null => {\n if (!feature || !feature.properties) {\n return null;\n }\n\n const { properties } = feature;\n const label: string =\n properties.formatted ||\n properties.address_line1 ||\n [properties.housenumber, properties.street]\n .filter(Boolean)\n .join(\" \")\n .trim();\n\n if (!label) {\n return null;\n }\n\n const addressLine1 =\n [properties.housenumber, properties.street]\n .filter(Boolean)\n .join(\" \")\n .trim() ||\n properties.address_line1 ||\n label;\n\n const city =\n properties.city ||\n properties.town ||\n properties.village ||\n properties.state ||\n \"\";\n\n return {\n id:\n (properties.place_id && String(properties.place_id)) ||\n feature.id ||\n `${properties.lon ?? \"\"}-${properties.lat ?? \"\"}-${label}`,\n label,\n addressLine1,\n postalCode: properties.postcode || \"\",\n city,\n country: properties.country || \"\",\n countryCode: properties.country_code || undefined,\n };\n };\n\n const requestAddressSuggestions = (\n query: string,\n { autoComplete }: { autoComplete: boolean },\n ) => {\n if (addressRequestState.current.debounce) {\n clearTimeout(addressRequestState.current.debounce);\n addressRequestState.current.debounce = null;\n }\n\n if (query.trim().length < 3) {\n if (addressRequestState.current.controller) {\n addressRequestState.current.controller.abort();\n addressRequestState.current.controller = null;\n }\n setAddressSuggestions([]);\n setShowSuggestions(false);\n return;\n }\n\n addressRequestState.current.debounce = setTimeout(async () => {\n if (addressRequestState.current.controller) {\n addressRequestState.current.controller.abort();\n }\n\n const controller = new AbortController();\n addressRequestState.current.controller = controller;\n\n try {\n const searchParams = new URLSearchParams({\n text: query,\n lang: \"fr\",\n });\n\n const response = await fetch(\n `${API_BASE_URL}${GEOCODING_AUTOCOMPLETE_ENDPOINT}?${searchParams.toString()}`,\n { signal: controller.signal },\n );\n\n if (!response.ok) {\n throw new Error(\n `Geocoding request failed with status ${response.status}`,\n );\n }\n\n const payload = await response.json();\n\n const suggestions: AddressSuggestion[] = Array.isArray(\n payload?.features,\n )\n ? payload.features\n .map((feature: any) => mapGeoapifyFeature(feature))\n .filter(\n (\n suggestion: AddressSuggestion | null,\n ): suggestion is AddressSuggestion => Boolean(suggestion),\n )\n : [];\n\n setAddressSuggestions(suggestions);\n setShowSuggestions(suggestions.length > 0);\n\n if (autoComplete && suggestions.length === 1) {\n const single = suggestions[0];\n const normalizedQuery = query.trim().toLowerCase();\n if (\n normalizedQuery.length >= 6 &&\n single.label.toLowerCase().startsWith(normalizedQuery)\n ) {\n applyAddressSuggestion(single);\n }\n }\n } catch (error) {\n if ((error as Error).name === \"AbortError\") {\n return;\n }\n\n const fallback = FALLBACK_ADDRESS_SUGGESTIONS.filter((suggestion) =>\n suggestion.label.toLowerCase().includes(query.toLowerCase()),\n );\n setAddressSuggestions(fallback);\n setShowSuggestions(fallback.length > 0);\n } finally {\n addressRequestState.current.controller = null;\n }\n }, 250);\n };\n\n useEffect(() => {\n if (!initialUserInput) {\n return;\n }\n\n if (\n isFirstRender.current ||\n (!form.firstName &&\n !form.lastName &&\n !form.email &&\n !form.phoneNumber &&\n !form.companyName)\n ) {\n const nextBirthParts = parseBirthDate(initialUserInput.birthDate || \"\");\n setForm((previous) => ({\n ...previous,\n lastName: initialUserInput.lastName || previous.lastName,\n firstName: initialUserInput.firstName || previous.firstName,\n birthDate: initialUserInput.birthDate || previous.birthDate,\n day: nextBirthParts.day,\n month: nextBirthParts.month,\n year: nextBirthParts.year,\n email: initialUserInput.email || previous.email,\n phoneNumber: initialUserInput.phoneNumber || previous.phoneNumber,\n sms: initialUserInput.sms || previous.sms,\n addressLine1: initialUserInput.addressLine1 || previous.addressLine1,\n addressLine2: initialUserInput.addressLine2 || previous.addressLine2,\n postalCode: initialUserInput.postalCode || previous.postalCode,\n city: initialUserInput.city || previous.city,\n countryCode: initialUserInput.countryCode || previous.countryCode,\n nationality: initialUserInput.nationality || previous.nationality,\n companyName: initialUserInput.companyName || previous.companyName,\n siret: initialUserInput.siret || previous.siret,\n tva: initialUserInput.tva || previous.tva,\n }));\n\n isFirstRender.current = false;\n }\n }, [\n initialUserInput,\n form.firstName,\n form.lastName,\n form.email,\n form.phoneNumber,\n form.companyName,\n ]);\n\n useEffect(() => {\n return () => {\n if (hideSuggestionTimeout.current) {\n clearTimeout(hideSuggestionTimeout.current);\n }\n if (addressRequestState.current.debounce) {\n clearTimeout(addressRequestState.current.debounce);\n }\n if (addressRequestState.current.controller) {\n addressRequestState.current.controller.abort();\n }\n };\n }, []);\n\n const handleFieldChange = (key: keyof UserInputFormState, value: string) => {\n setErrors((previous) => ({\n ...previous,\n [key]: false,\n notMajor: false,\n }));\n\n setForm((previous) => {\n const next = { ...previous, [key]: value };\n if (key === \"day\" || key === \"month\" || key === \"year\") {\n const { day, month, year } = next;\n if (day && month && year) {\n const paddedDay = day.padStart(2, \"0\");\n const paddedMonth = month.padStart(2, \"0\");\n next.birthDate = `${paddedDay}-${paddedMonth}-${year}`;\n } else {\n next.birthDate = \"\";\n }\n }\n return next;\n });\n };\n\n const handleAddressChange = (value: string) => {\n handleFieldChange(\"addressLine1\", value);\n requestAddressSuggestions(value, { autoComplete: true });\n };\n\n const handleAddressFocus = () => {\n requestAddressSuggestions(form.addressLine1, { autoComplete: false });\n };\n\n const handleAddressBlur = () => {\n if (hideSuggestionTimeout.current) {\n clearTimeout(hideSuggestionTimeout.current);\n }\n hideSuggestionTimeout.current = setTimeout(() => {\n setShowSuggestions(false);\n hideSuggestionTimeout.current = null;\n }, 150);\n };\n\n const validateForm = () => {\n const nextErrors: UserInputFormErrors = {};\n let hasError = false;\n\n const markError = (key: string) => {\n nextErrors[key] = true;\n hasError = true;\n };\n\n if (informationType === \"identity\") {\n if (requestedFields.has(\"prenom\") && !form.firstName) {\n markError(\"firstName\");\n }\n if (requestedFields.has(\"nom\") && !form.lastName) {\n markError(\"lastName\");\n }\n if (requestedFields.has(\"date_naissance\")) {\n if (!form.birthDate) {\n markError(\"birthDate\");\n } else if (!checkIsMajor(form.birthDate)) {\n nextErrors.notMajor = true;\n hasError = true;\n }\n }\n }\n\n if (informationType === \"identity-legal\") {\n if (requestedFields.has(\"nom\") && !form.companyName) {\n markError(\"companyName\");\n }\n if (requestedFields.has(\"siret\") && !form.siret) {\n markError(\"siret\");\n }\n if (requestedFields.has(\"tva\") && !form.tva) {\n markError(\"tva\");\n }\n }\n\n if (informationType === \"contact\") {\n if (requestedFields.has(\"email\")) {\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n if (!form.email || !emailRegex.test(form.email)) {\n markError(\"email\");\n }\n }\n if (requestedFields.has(\"sms\")) {\n if (\n !form.phoneNumber ||\n form.phoneNumber.replace(/\\D/g, \"\").length < 6\n ) {\n markError(\"phoneNumber\");\n }\n }\n }\n\n if (\n (informationType === \"address\" || informationType === \"identity-legal\") &&\n requestedFields.has(\"adresse\")\n ) {\n if (!form.addressLine1) {\n markError(\"addressLine1\");\n }\n if (!form.postalCode) {\n markError(\"postalCode\");\n }\n if (!form.city) {\n markError(\"city\");\n }\n if (!form.countryCode) {\n markError(\"country\");\n }\n }\n\n if (\n informationType === \"nationality\" &&\n requestedFields.has(\"nationalite\")\n ) {\n if (!form.nationality) {\n markError(\"nationality\");\n }\n }\n\n setErrors(nextErrors);\n return !hasError;\n };\n\n const validateCustomForm = () => {\n const errors: Record<string, CustomFieldErrorValue> = {};\n const cellErrors: Record<string, Record<string, CustomFieldErrorValue>> = {};\n let hasError = false;\n\n node.customFields?.forEach((field) => {\n const value = customFormData[field.id];\n\n if (field.valueType === \"list\") {\n const rows: Record<string, string>[] = Array.isArray(value) ? value : [];\n const minRows = getListFieldMinRows(field);\n const columns = normalizeListColumns(field.listColumns);\n const fieldCellErrors: Record<string, CustomFieldErrorValue> = {};\n let listFieldInvalid = false;\n\n if (field.required && countNonEmptyListRows(rows) < minRows) {\n errors[field.id] = true;\n hasError = true;\n listFieldInvalid = true;\n }\n\n rows.forEach((row, rowIndex) => {\n const rowIsEmpty = columns.every(\n (col) => !String(row?.[col.label] ?? \"\").trim(),\n );\n if (rowIsEmpty && !field.required) return;\n\n columns.forEach((col) => {\n const cellValue = String(row?.[col.label] ?? \"\").trim();\n const key = cellErrorKey(rowIndex, col.label);\n\n if (!cellValue) {\n if (field.required && !rowIsEmpty) {\n fieldCellErrors[key] = t(\"custom_form.required_field\");\n listFieldInvalid = true;\n }\n return;\n }\n\n switch (col.type) {\n case \"email\":\n if (!isEmailValid(cellValue)) {\n fieldCellErrors[key] = t(\"custom_form.invalid_email\");\n listFieldInvalid = true;\n }\n break;\n case \"date\": {\n const fmt = col.dateFormat ?? DEFAULT_DATE_DISPLAY_FORMAT;\n if (!isDateValid(cellValue, fmt)) {\n fieldCellErrors[key] = t(\"custom_form.invalid_date\", {\n format: fmt,\n });\n listFieldInvalid = true;\n }\n break;\n }\n case \"text\":\n if (col.regex && !isRegexMatch(cellValue, col.regex)) {\n fieldCellErrors[key] =\n col.regexErrorMessage ||\n t(\"custom_form.invalid_format\");\n listFieldInvalid = true;\n }\n break;\n }\n });\n });\n\n if (Object.keys(fieldCellErrors).length > 0) {\n cellErrors[field.id] = fieldCellErrors;\n }\n if (listFieldInvalid) {\n errors[field.id] = errors[field.id] ?? true;\n hasError = true;\n }\n return;\n }\n\n // Check if required field is missing\n if (field.required && !value) {\n errors[field.id] = true;\n hasError = true;\n return;\n }\n\n // Type-specific validation\n if (value) {\n switch (field.valueType) {\n case \"number\":\n if (isNaN(Number(value))) {\n errors[field.id] = true;\n hasError = true;\n }\n break;\n\n case \"email\":\n if (!isEmailValid(String(value))) {\n errors[field.id] = t(\"custom_form.invalid_email\");\n hasError = true;\n }\n break;\n\n case \"text\":\n if (field.regex && !isRegexMatch(String(value), field.regex)) {\n errors[field.id] =\n field.regexErrorMessage || t(\"custom_form.invalid_format\");\n hasError = true;\n }\n break;\n\n case \"date\": {\n const fmt = field.dateFormat ?? DEFAULT_DATE_DISPLAY_FORMAT;\n if (!isDateValid(String(value), fmt)) {\n errors[field.id] = t(\"custom_form.invalid_date\", {\n format: fmt,\n });\n hasError = true;\n }\n break;\n }\n\n case \"address\":\n // Validate address object if required\n if (field.required && typeof value === \"object\") {\n const addressValue = value as {\n addressLine1?: string;\n postalCode?: string;\n city?: string;\n countryCode?: string;\n };\n if (\n !addressValue.addressLine1 ||\n !addressValue.postalCode ||\n !addressValue.city ||\n !addressValue.countryCode\n ) {\n errors[field.id] = true;\n hasError = true;\n }\n }\n break;\n }\n }\n });\n\n setCustomFormErrors(errors);\n setCustomFormCellErrors(cellErrors);\n return !hasError;\n };\n\n const handleCustomFieldChange = (fieldId: string, value: any) => {\n setCustomFormData((prev) => ({ ...prev, [fieldId]: value }));\n setCustomFormErrors((prev) => ({ ...prev, [fieldId]: false }));\n setCustomFormCellErrors((prev) => {\n if (!(fieldId in prev)) return prev;\n const { [fieldId]: _removed, ...rest } = prev;\n return rest;\n });\n };\n\n const goOnNextStep = () => {\n // Handle custom form validation and submission\n if (informationType === \"custom\") {\n if (!validateCustomForm()) {\n return;\n }\n\n setUserInput((prev) => ({\n ...prev,\n customFormData: { ...(prev.customFormData ?? {}), ...customFormData },\n }));\n\n if (onContinueCallback) {\n onContinueCallback();\n } else {\n goToNextStep(node.id, template);\n }\n return;\n }\n\n // Standard form validation\n if (!validateForm()) {\n return;\n }\n\n setUserInput((previous) => ({\n ...previous,\n ...(requestedFields.has(\"nom\") && {\n ...(informationType === \"identity-legal\"\n ? { companyName: form.companyName }\n : { lastName: form.lastName }),\n }),\n ...(requestedFields.has(\"prenom\") && { firstName: form.firstName }),\n ...(requestedFields.has(\"date_naissance\") && {\n birthDate: form.birthDate,\n }),\n ...(requestedFields.has(\"email\") && { email: form.email }),\n ...(requestedFields.has(\"sms\") && {\n phoneNumber: form.phoneNumber,\n sms: form.phoneNumber,\n }),\n ...(requestedFields.has(\"adresse\") && {\n addressLine1: form.addressLine1,\n addressLine2: form.addressLine2,\n postalCode: form.postalCode,\n city: form.city,\n countryCode: form.countryCode,\n }),\n ...(requestedFields.has(\"siret\") && { siret: form.siret }),\n ...(requestedFields.has(\"tva\") && { tva: form.tva }),\n ...(requestedFields.has(\"nationalite\") && {\n nationality: form.nationality,\n }),\n }));\n\n if (informationType === \"contact\" && setContactInfo) {\n setContactInfo((previous) => ({\n ...previous,\n ...(requestedFields.has(\"email\") && { email: form.email }),\n ...(requestedFields.has(\"sms\") && { phoneNumber: form.phoneNumber }),\n }));\n }\n\n if (onContinueCallback) {\n onContinueCallback();\n } else {\n goToNextStep(node.id, template);\n }\n };\n\n const goOnPreviousStep = () => {\n console.log(\"[goOnPreviousStep] called — step:\", step, \"canGoBack:\", stepObject.canGoBack);\n goBack();\n };\n\n const pageTitle = node.pageTitle || formTitles[informationType];\n\n const pageDescription =\n node.pageDescription || formDescriptions[informationType];\n\n return {\n form,\n errors,\n informationType,\n requestedFields,\n pageTitle,\n pageDescription,\n addressSuggestions,\n showSuggestions,\n handleFieldChange,\n handleAddressChange,\n handleAddressFocus,\n handleAddressBlur,\n applyAddressSuggestion,\n goOnNextStep,\n goOnPreviousStep,\n customFormData,\n customFormErrors,\n customFormCellErrors,\n handleCustomFieldChange,\n };\n};\n"],"names":[],"mappings":";;;;;;;;;;AA2DO,IAAM,gBAAgB,GAAG,UAAC,EASZ,EAAA;QARnB,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,YAAY,GAAA,EAAA,CAAA,YAAA,EACZ,gBAAgB,GAAA,EAAA,CAAA,gBAAA,EAChB,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,WAAW,GAAA,EAAA,CAAA,WAAA,EACX,cAAc,GAAA,EAAA,CAAA,cAAA,EACd,kBAAkB,GAAA,EAAA,CAAA,kBAAA;AAEV,IAAwC,UAAU,QAA3C,CAAA,KAAE,MAAM,GAAyB,UAAU,CAAA,MAAnC,EAAE,YAAY,GAAW,UAAU,CAAA,YAArB,CAAA,CAAE,IAAI,GAAK,UAAU;AAClD,IAAA,IAAA,CAAC,GAAK,OAAO,EAAE,EAAd;IAET,IAAM,eAAe,GAAG,OAAO,CAAkB,YAAA;;QAC/C,IAAM,QAAQ,GAAG,sBAAsB,CACrC,IAAI,CAAC,eAAyB,EAC9B,UAAU,CACX;AACD,QAAA,OAAO,CAAC,GAAG,CAA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EAAE;AACtB,YAAA,kBAAkB,EAAE;QACtB;aAAO;AACL,YAAA,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC;QACjC;AACF,IAAA,CAAC;AAED,IAAA,IAAM,gBAAgB,GAAG,YAAA;AACvB,QAAA,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC;AAC1F,QAAA,MAAM,EAAE;AACV,IAAA,CAAC;IAED,IAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,UAAU,CAAC,eAAe,CAAC;IAE/D,IAAM,eAAe,GACnB,IAAI,CAAC,eAAe,IAAI,gBAAgB,CAAC,eAAe,CAAC;IAE3D,OAAO;AACL,QAAA,IAAI,EAAA,IAAA;AACJ,QAAA,MAAM,EAAA,MAAA;AACN,QAAA,eAAe,EAAA,eAAA;AACf,QAAA,eAAe,EAAA,eAAA;AACf,QAAA,SAAS,EAAA,SAAA;AACT,QAAA,eAAe,EAAA,eAAA;AACf,QAAA,kBAAkB,EAAA,kBAAA;AAClB,QAAA,eAAe,EAAA,eAAA;AACf,QAAA,iBAAiB,EAAA,iBAAA;AACjB,QAAA,mBAAmB,EAAA,mBAAA;AACnB,QAAA,kBAAkB,EAAA,kBAAA;AAClB,QAAA,iBAAiB,EAAA,iBAAA;AACjB,QAAA,sBAAsB,EAAA,sBAAA;AACtB,QAAA,YAAY,EAAA,YAAA;AACZ,QAAA,gBAAgB,EAAA,gBAAA;AAChB,QAAA,cAAc,EAAA,cAAA;AACd,QAAA,gBAAgB,EAAA,gBAAA;AAChB,QAAA,oBAAoB,EAAA,oBAAA;AACpB,QAAA,uBAAuB,EAAA,uBAAA;KACxB;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"useUserInputForm.js","sources":["../../../../src/hooks/useUserInputForm.ts"],"sourcesContent":["import { useEffect, useMemo, useRef, useState } from \"react\";\nimport type { UserInputFormProps } from \"../types/userInput\";\nimport type {\n AddressSuggestion,\n InformationType,\n RequestedFields,\n UserInputFormErrors,\n UserInputFormState,\n} from \"../types/userInputForm\";\nimport {\n DEFAULT_FIELDS,\n FALLBACK_ADDRESS_SUGGESTIONS,\n GEOCODING_AUTOCOMPLETE_ENDPOINT,\n} from \"../constants/userInputForm\";\nimport { API_BASE_URL } from \"../config/env\";\nimport {\n checkIsMajor,\n parseBirthDate,\n resolveInformationType,\n} from \"../utils/userInputForm\";\nimport {\n countNonEmptyListRows,\n getListFieldMinRows,\n normalizeListColumns,\n} from \"../utils/listFieldUtils\";\nimport {\n cellErrorKey,\n isDateValid,\n isEmailValid,\n isRegexMatch,\n} from \"../utils/customFieldValidation\";\nimport { DEFAULT_DATE_DISPLAY_FORMAT } from \"../types/session\";\nimport { useI18n } from \"./useI18n\";\n\nexport type CustomFieldErrorValue = string | boolean;\n\ninterface UseUserInputFormResult {\n form: UserInputFormState;\n errors: UserInputFormErrors;\n informationType: InformationType;\n requestedFields: RequestedFields;\n pageTitle: string;\n pageDescription: string;\n addressSuggestions: AddressSuggestion[];\n showSuggestions: boolean;\n handleFieldChange: (key: keyof UserInputFormState, value: string) => void;\n handleAddressChange: (value: string) => void;\n handleAddressFocus: () => void;\n handleAddressBlur: () => void;\n applyAddressSuggestion: (suggestion: AddressSuggestion) => void;\n goOnNextStep: () => void;\n goOnPreviousStep: () => void;\n // Custom form fields\n customFormData: Record<string, any>;\n customFormErrors: Record<string, CustomFieldErrorValue>;\n customFormCellErrors: Record<string, Record<string, CustomFieldErrorValue>>;\n handleCustomFieldChange: (fieldId: string, value: any) => void;\n}\n\nexport const useUserInputForm = ({\n stepObject,\n setUserInput,\n initialUserInput,\n node,\n template,\n contactInfo,\n setContactInfo,\n onContinueCallback,\n}: UserInputFormProps): UseUserInputFormResult => {\n const { setStep, goBack, goToNextStep, step } = stepObject;\n const { t } = useI18n();\n\n const informationType = useMemo<InformationType>(() => {\n const resolved = resolveInformationType(\n node.informationType as string,\n \"identity\",\n );\n console.log(\"🔍 [useUserInputForm] Resolving informationType:\", {\n nodeInformationType: node.informationType,\n resolved,\n hasCustomFields: !!node.customFields,\n customFieldsCount: node.customFields?.length,\n });\n return resolved;\n }, [node.informationType, node.customFields]);\n\n const requestedFields = useMemo<RequestedFields>(() => {\n const defaults = DEFAULT_FIELDS[informationType] || [];\n const optional =\n node.optionalFields && node.optionalFields.length > 0\n ? node.optionalFields\n : defaults;\n const merged = new Set<string>(optional);\n\n if (node.requiredFields) {\n node.requiredFields.forEach((field) => merged.add(field));\n }\n\n return merged;\n }, [node.optionalFields, node.requiredFields, informationType]);\n\n const birthDateParts = useMemo(\n () => parseBirthDate(initialUserInput?.birthDate || \"\"),\n [initialUserInput?.birthDate],\n );\n\n const [form, setForm] = useState<UserInputFormState>({\n lastName: initialUserInput?.lastName || \"\",\n firstName: initialUserInput?.firstName || \"\",\n birthDate: initialUserInput?.birthDate || \"\",\n day: birthDateParts.day,\n month: birthDateParts.month,\n year: birthDateParts.year,\n email: initialUserInput?.email || contactInfo?.email || \"\",\n phoneNumber:\n initialUserInput?.phoneNumber || contactInfo?.phoneNumber || \"\",\n sms: initialUserInput?.sms || \"\",\n addressLine1: initialUserInput?.addressLine1 || \"\",\n addressLine2: initialUserInput?.addressLine2 || \"\",\n postalCode: initialUserInput?.postalCode || \"\",\n city: initialUserInput?.city || \"\",\n countryCode: initialUserInput?.countryCode || \"\",\n nationality: initialUserInput?.nationality || \"\",\n companyName: initialUserInput?.companyName || \"\",\n siret: initialUserInput?.siret || \"\",\n tva: initialUserInput?.tva || \"\",\n registrationNumber: initialUserInput?.registrationNumber || \"\",\n });\n\n const [errors, setErrors] = useState<UserInputFormErrors>({});\n\n // Custom form state\n const [customFormData, setCustomFormData] = useState<Record<string, any>>(\n () => {\n if (informationType !== \"custom\" || !node.customFields) return {};\n\n const initial: Record<string, any> = {};\n node.customFields.forEach((field) => {\n const savedValue = initialUserInput?.customFormData?.[field.id];\n if (field.valueType === \"list\") {\n initial[field.id] = Array.isArray(savedValue) ? savedValue : [];\n return;\n }\n\n initial[field.id] = savedValue || \"\";\n });\n return initial;\n },\n );\n const [customFormErrors, setCustomFormErrors] = useState<\n Record<string, CustomFieldErrorValue>\n >({});\n const [customFormCellErrors, setCustomFormCellErrors] = useState<\n Record<string, Record<string, CustomFieldErrorValue>>\n >({});\n\n const [addressSuggestions, setAddressSuggestions] = useState<\n AddressSuggestion[]\n >([]);\n const [showSuggestions, setShowSuggestions] = useState(false);\n const isFirstRender = useRef(true);\n const hideSuggestionTimeout = useRef<ReturnType<typeof setTimeout> | null>(\n null,\n );\n const addressRequestState = useRef<{\n debounce: ReturnType<typeof setTimeout> | null;\n controller: AbortController | null;\n }>({\n debounce: null,\n controller: null,\n });\n\n const formTitles = useMemo<Record<InformationType, string>>(\n () => ({\n identity: t(\"user_input_form.titles.identity\"),\n \"identity-legal\": t(\"user_input_form.titles.identity_legal\"),\n contact: t(\"user_input_form.titles.contact\"),\n address: t(\"user_input_form.titles.address\"),\n nationality: t(\"user_input_form.titles.nationality\"),\n custom: t(\"user_input_form.titles.custom\"),\n }),\n [t],\n );\n\n const formDescriptions = useMemo<Record<InformationType, string>>(\n () => ({\n identity: t(\"user_input_form.descriptions.identity\"),\n \"identity-legal\": t(\"user_input_form.descriptions.identity_legal\"),\n contact: t(\"user_input_form.descriptions.contact\"),\n address: t(\"user_input_form.descriptions.address\"),\n nationality: t(\"user_input_form.descriptions.nationality\"),\n custom: t(\"user_input_form.descriptions.custom\"),\n }),\n [t],\n );\n\n const applyAddressSuggestion = (suggestion: AddressSuggestion) => {\n const normalizedCountry =\n suggestion.countryCode?.toUpperCase() || suggestion.country || \"\";\n\n setForm((previous) => ({\n ...previous,\n addressLine1: suggestion.addressLine1 || suggestion.label,\n postalCode: suggestion.postalCode || previous.postalCode,\n city: suggestion.city || previous.city,\n countryCode: normalizedCountry || previous.countryCode,\n }));\n setErrors((previous) => ({\n ...previous,\n addressLine1: false,\n postalCode: false,\n city: false,\n country: false,\n }));\n setShowSuggestions(false);\n setAddressSuggestions([]);\n };\n\n const mapGeoapifyFeature = (feature: any): AddressSuggestion | null => {\n if (!feature || !feature.properties) {\n return null;\n }\n\n const { properties } = feature;\n const label: string =\n properties.formatted ||\n properties.address_line1 ||\n [properties.housenumber, properties.street]\n .filter(Boolean)\n .join(\" \")\n .trim();\n\n if (!label) {\n return null;\n }\n\n const addressLine1 =\n [properties.housenumber, properties.street]\n .filter(Boolean)\n .join(\" \")\n .trim() ||\n properties.address_line1 ||\n label;\n\n const city =\n properties.city ||\n properties.town ||\n properties.village ||\n properties.state ||\n \"\";\n\n return {\n id:\n (properties.place_id && String(properties.place_id)) ||\n feature.id ||\n `${properties.lon ?? \"\"}-${properties.lat ?? \"\"}-${label}`,\n label,\n addressLine1,\n postalCode: properties.postcode || \"\",\n city,\n country: properties.country || \"\",\n countryCode: properties.country_code || undefined,\n };\n };\n\n const requestAddressSuggestions = (\n query: string,\n { autoComplete }: { autoComplete: boolean },\n ) => {\n if (addressRequestState.current.debounce) {\n clearTimeout(addressRequestState.current.debounce);\n addressRequestState.current.debounce = null;\n }\n\n if (query.trim().length < 3) {\n if (addressRequestState.current.controller) {\n addressRequestState.current.controller.abort();\n addressRequestState.current.controller = null;\n }\n setAddressSuggestions([]);\n setShowSuggestions(false);\n return;\n }\n\n addressRequestState.current.debounce = setTimeout(async () => {\n if (addressRequestState.current.controller) {\n addressRequestState.current.controller.abort();\n }\n\n const controller = new AbortController();\n addressRequestState.current.controller = controller;\n\n try {\n const searchParams = new URLSearchParams({\n text: query,\n lang: \"fr\",\n });\n\n const response = await fetch(\n `${API_BASE_URL}${GEOCODING_AUTOCOMPLETE_ENDPOINT}?${searchParams.toString()}`,\n { signal: controller.signal },\n );\n\n if (!response.ok) {\n throw new Error(\n `Geocoding request failed with status ${response.status}`,\n );\n }\n\n const payload = await response.json();\n\n const suggestions: AddressSuggestion[] = Array.isArray(\n payload?.features,\n )\n ? payload.features\n .map((feature: any) => mapGeoapifyFeature(feature))\n .filter(\n (\n suggestion: AddressSuggestion | null,\n ): suggestion is AddressSuggestion => Boolean(suggestion),\n )\n : [];\n\n setAddressSuggestions(suggestions);\n setShowSuggestions(suggestions.length > 0);\n\n if (autoComplete && suggestions.length === 1) {\n const single = suggestions[0];\n const normalizedQuery = query.trim().toLowerCase();\n if (\n normalizedQuery.length >= 6 &&\n single.label.toLowerCase().startsWith(normalizedQuery)\n ) {\n applyAddressSuggestion(single);\n }\n }\n } catch (error) {\n if ((error as Error).name === \"AbortError\") {\n return;\n }\n\n const fallback = FALLBACK_ADDRESS_SUGGESTIONS.filter((suggestion) =>\n suggestion.label.toLowerCase().includes(query.toLowerCase()),\n );\n setAddressSuggestions(fallback);\n setShowSuggestions(fallback.length > 0);\n } finally {\n addressRequestState.current.controller = null;\n }\n }, 250);\n };\n\n useEffect(() => {\n if (!initialUserInput) {\n return;\n }\n\n if (\n isFirstRender.current ||\n (!form.firstName &&\n !form.lastName &&\n !form.email &&\n !form.phoneNumber &&\n !form.companyName)\n ) {\n const nextBirthParts = parseBirthDate(initialUserInput.birthDate || \"\");\n setForm((previous) => ({\n ...previous,\n lastName: initialUserInput.lastName || previous.lastName,\n firstName: initialUserInput.firstName || previous.firstName,\n birthDate: initialUserInput.birthDate || previous.birthDate,\n day: nextBirthParts.day,\n month: nextBirthParts.month,\n year: nextBirthParts.year,\n email: initialUserInput.email || previous.email,\n phoneNumber: initialUserInput.phoneNumber || previous.phoneNumber,\n sms: initialUserInput.sms || previous.sms,\n addressLine1: initialUserInput.addressLine1 || previous.addressLine1,\n addressLine2: initialUserInput.addressLine2 || previous.addressLine2,\n postalCode: initialUserInput.postalCode || previous.postalCode,\n city: initialUserInput.city || previous.city,\n countryCode: initialUserInput.countryCode || previous.countryCode,\n nationality: initialUserInput.nationality || previous.nationality,\n companyName: initialUserInput.companyName || previous.companyName,\n siret: initialUserInput.siret || previous.siret,\n tva: initialUserInput.tva || previous.tva,\n registrationNumber: initialUserInput.registrationNumber || previous.registrationNumber,\n }));\n\n isFirstRender.current = false;\n }\n }, [\n initialUserInput,\n form.firstName,\n form.lastName,\n form.email,\n form.phoneNumber,\n form.companyName,\n ]);\n\n useEffect(() => {\n return () => {\n if (hideSuggestionTimeout.current) {\n clearTimeout(hideSuggestionTimeout.current);\n }\n if (addressRequestState.current.debounce) {\n clearTimeout(addressRequestState.current.debounce);\n }\n if (addressRequestState.current.controller) {\n addressRequestState.current.controller.abort();\n }\n };\n }, []);\n\n const handleFieldChange = (key: keyof UserInputFormState, value: string) => {\n setErrors((previous) => ({\n ...previous,\n [key]: false,\n notMajor: false,\n }));\n\n setForm((previous) => {\n const next = { ...previous, [key]: value };\n if (key === \"day\" || key === \"month\" || key === \"year\") {\n const { day, month, year } = next;\n if (day && month && year) {\n const paddedDay = day.padStart(2, \"0\");\n const paddedMonth = month.padStart(2, \"0\");\n next.birthDate = `${paddedDay}-${paddedMonth}-${year}`;\n } else {\n next.birthDate = \"\";\n }\n }\n return next;\n });\n };\n\n const handleAddressChange = (value: string) => {\n handleFieldChange(\"addressLine1\", value);\n requestAddressSuggestions(value, { autoComplete: true });\n };\n\n const handleAddressFocus = () => {\n requestAddressSuggestions(form.addressLine1, { autoComplete: false });\n };\n\n const handleAddressBlur = () => {\n if (hideSuggestionTimeout.current) {\n clearTimeout(hideSuggestionTimeout.current);\n }\n hideSuggestionTimeout.current = setTimeout(() => {\n setShowSuggestions(false);\n hideSuggestionTimeout.current = null;\n }, 150);\n };\n\n const validateForm = () => {\n const nextErrors: UserInputFormErrors = {};\n let hasError = false;\n\n const markError = (key: string) => {\n nextErrors[key] = true;\n hasError = true;\n };\n\n if (informationType === \"identity\") {\n if (requestedFields.has(\"prenom\") && !form.firstName) {\n markError(\"firstName\");\n }\n if (requestedFields.has(\"nom\") && !form.lastName) {\n markError(\"lastName\");\n }\n if (requestedFields.has(\"date_naissance\")) {\n if (!form.birthDate) {\n markError(\"birthDate\");\n } else if (!checkIsMajor(form.birthDate)) {\n nextErrors.notMajor = true;\n hasError = true;\n }\n }\n }\n\n if (informationType === \"identity-legal\") {\n if (requestedFields.has(\"nom\") && !form.companyName) {\n markError(\"companyName\");\n }\n if (requestedFields.has(\"siret\") && !form.siret) {\n markError(\"siret\");\n }\n if (requestedFields.has(\"tva\") && !form.tva) {\n markError(\"tva\");\n }\n if (requestedFields.has(\"registrationNumber\") && !form.registrationNumber) {\n markError(\"registrationNumber\");\n }\n }\n\n if (informationType === \"contact\") {\n if (requestedFields.has(\"email\")) {\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n if (!form.email || !emailRegex.test(form.email)) {\n markError(\"email\");\n }\n }\n if (requestedFields.has(\"sms\")) {\n if (\n !form.phoneNumber ||\n form.phoneNumber.replace(/\\D/g, \"\").length < 6\n ) {\n markError(\"phoneNumber\");\n }\n }\n }\n\n if (\n (informationType === \"address\" || informationType === \"identity-legal\") &&\n requestedFields.has(\"adresse\")\n ) {\n if (!form.addressLine1) {\n markError(\"addressLine1\");\n }\n if (!form.postalCode) {\n markError(\"postalCode\");\n }\n if (!form.city) {\n markError(\"city\");\n }\n if (!form.countryCode) {\n markError(\"country\");\n }\n }\n\n if (\n informationType === \"nationality\" &&\n requestedFields.has(\"nationalite\")\n ) {\n if (!form.nationality) {\n markError(\"nationality\");\n }\n }\n\n setErrors(nextErrors);\n return !hasError;\n };\n\n const validateCustomForm = () => {\n const errors: Record<string, CustomFieldErrorValue> = {};\n const cellErrors: Record<string, Record<string, CustomFieldErrorValue>> = {};\n let hasError = false;\n\n node.customFields?.forEach((field) => {\n const value = customFormData[field.id];\n\n if (field.valueType === \"list\") {\n const rows: Record<string, string>[] = Array.isArray(value) ? value : [];\n const minRows = getListFieldMinRows(field);\n const columns = normalizeListColumns(field.listColumns);\n const fieldCellErrors: Record<string, CustomFieldErrorValue> = {};\n let listFieldInvalid = false;\n\n if (field.required && countNonEmptyListRows(rows) < minRows) {\n errors[field.id] = true;\n hasError = true;\n listFieldInvalid = true;\n }\n\n rows.forEach((row, rowIndex) => {\n const rowIsEmpty = columns.every(\n (col) => !String(row?.[col.label] ?? \"\").trim(),\n );\n if (rowIsEmpty && !field.required) return;\n\n columns.forEach((col) => {\n const cellValue = String(row?.[col.label] ?? \"\").trim();\n const key = cellErrorKey(rowIndex, col.label);\n\n if (!cellValue) {\n if (field.required && !rowIsEmpty) {\n fieldCellErrors[key] = t(\"custom_form.required_field\");\n listFieldInvalid = true;\n }\n return;\n }\n\n switch (col.type) {\n case \"email\":\n if (!isEmailValid(cellValue)) {\n fieldCellErrors[key] = t(\"custom_form.invalid_email\");\n listFieldInvalid = true;\n }\n break;\n case \"date\": {\n const fmt = col.dateFormat ?? DEFAULT_DATE_DISPLAY_FORMAT;\n if (!isDateValid(cellValue, fmt)) {\n fieldCellErrors[key] = t(\"custom_form.invalid_date\", {\n format: fmt,\n });\n listFieldInvalid = true;\n }\n break;\n }\n case \"text\":\n if (col.regex && !isRegexMatch(cellValue, col.regex)) {\n fieldCellErrors[key] =\n col.regexErrorMessage ||\n t(\"custom_form.invalid_format\");\n listFieldInvalid = true;\n }\n break;\n }\n });\n });\n\n if (Object.keys(fieldCellErrors).length > 0) {\n cellErrors[field.id] = fieldCellErrors;\n }\n if (listFieldInvalid) {\n errors[field.id] = errors[field.id] ?? true;\n hasError = true;\n }\n return;\n }\n\n // Check if required field is missing\n if (field.required && !value) {\n errors[field.id] = true;\n hasError = true;\n return;\n }\n\n // Type-specific validation\n if (value) {\n switch (field.valueType) {\n case \"number\":\n if (isNaN(Number(value))) {\n errors[field.id] = true;\n hasError = true;\n }\n break;\n\n case \"email\":\n if (!isEmailValid(String(value))) {\n errors[field.id] = t(\"custom_form.invalid_email\");\n hasError = true;\n }\n break;\n\n case \"text\":\n if (field.regex && !isRegexMatch(String(value), field.regex)) {\n errors[field.id] =\n field.regexErrorMessage || t(\"custom_form.invalid_format\");\n hasError = true;\n }\n break;\n\n case \"date\": {\n const fmt = field.dateFormat ?? DEFAULT_DATE_DISPLAY_FORMAT;\n if (!isDateValid(String(value), fmt)) {\n errors[field.id] = t(\"custom_form.invalid_date\", {\n format: fmt,\n });\n hasError = true;\n }\n break;\n }\n\n case \"address\":\n // Validate address object if required\n if (field.required && typeof value === \"object\") {\n const addressValue = value as {\n addressLine1?: string;\n postalCode?: string;\n city?: string;\n countryCode?: string;\n };\n if (\n !addressValue.addressLine1 ||\n !addressValue.postalCode ||\n !addressValue.city ||\n !addressValue.countryCode\n ) {\n errors[field.id] = true;\n hasError = true;\n }\n }\n break;\n }\n }\n });\n\n setCustomFormErrors(errors);\n setCustomFormCellErrors(cellErrors);\n return !hasError;\n };\n\n const handleCustomFieldChange = (fieldId: string, value: any) => {\n setCustomFormData((prev) => ({ ...prev, [fieldId]: value }));\n setCustomFormErrors((prev) => ({ ...prev, [fieldId]: false }));\n setCustomFormCellErrors((prev) => {\n if (!(fieldId in prev)) return prev;\n const { [fieldId]: _removed, ...rest } = prev;\n return rest;\n });\n };\n\n const goOnNextStep = () => {\n // Handle custom form validation and submission\n if (informationType === \"custom\") {\n if (!validateCustomForm()) {\n return;\n }\n\n setUserInput((prev) => ({\n ...prev,\n customFormData: { ...(prev.customFormData ?? {}), ...customFormData },\n }));\n\n if (onContinueCallback) {\n onContinueCallback();\n } else {\n goToNextStep(node.id, template);\n }\n return;\n }\n\n // Standard form validation\n if (!validateForm()) {\n return;\n }\n\n setUserInput((previous) => ({\n ...previous,\n ...(requestedFields.has(\"nom\") && {\n ...(informationType === \"identity-legal\"\n ? { companyName: form.companyName }\n : { lastName: form.lastName }),\n }),\n ...(requestedFields.has(\"prenom\") && { firstName: form.firstName }),\n ...(requestedFields.has(\"date_naissance\") && {\n birthDate: form.birthDate,\n }),\n ...(requestedFields.has(\"email\") && { email: form.email }),\n ...(requestedFields.has(\"sms\") && {\n phoneNumber: form.phoneNumber,\n sms: form.phoneNumber,\n }),\n ...(requestedFields.has(\"adresse\") && {\n addressLine1: form.addressLine1,\n addressLine2: form.addressLine2,\n postalCode: form.postalCode,\n city: form.city,\n countryCode: form.countryCode,\n }),\n ...(requestedFields.has(\"siret\") && { siret: form.siret }),\n ...(requestedFields.has(\"tva\") && { tva: form.tva }),\n ...(requestedFields.has(\"registrationNumber\") && { registrationNumber: form.registrationNumber }),\n ...(requestedFields.has(\"siret\") && !requestedFields.has(\"registrationNumber\") && { registrationNumber: form.siret }),\n ...(requestedFields.has(\"nationalite\") && {\n nationality: form.nationality,\n }),\n }));\n\n if (informationType === \"contact\" && setContactInfo) {\n setContactInfo((previous) => ({\n ...previous,\n ...(requestedFields.has(\"email\") && { email: form.email }),\n ...(requestedFields.has(\"sms\") && { phoneNumber: form.phoneNumber }),\n }));\n }\n\n if (onContinueCallback) {\n onContinueCallback();\n } else {\n goToNextStep(node.id, template);\n }\n };\n\n const goOnPreviousStep = () => {\n console.log(\"[goOnPreviousStep] called — step:\", step, \"canGoBack:\", stepObject.canGoBack);\n goBack();\n };\n\n const pageTitle = node.pageTitle || formTitles[informationType];\n\n const pageDescription =\n node.pageDescription || formDescriptions[informationType];\n\n return {\n form,\n errors,\n informationType,\n requestedFields,\n pageTitle,\n pageDescription,\n addressSuggestions,\n showSuggestions,\n handleFieldChange,\n handleAddressChange,\n handleAddressFocus,\n handleAddressBlur,\n applyAddressSuggestion,\n goOnNextStep,\n goOnPreviousStep,\n customFormData,\n customFormErrors,\n customFormCellErrors,\n handleCustomFieldChange,\n };\n};\n"],"names":[],"mappings":";;;;;;;;;;AA2DO,IAAM,gBAAgB,GAAG,UAAC,EASZ,EAAA;QARnB,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,YAAY,GAAA,EAAA,CAAA,YAAA,EACZ,gBAAgB,GAAA,EAAA,CAAA,gBAAA,EAChB,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,WAAW,GAAA,EAAA,CAAA,WAAA,EACX,cAAc,GAAA,EAAA,CAAA,cAAA,EACd,kBAAkB,GAAA,EAAA,CAAA,kBAAA;AAEV,IAAwC,UAAU,QAA3C,C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AC,SAAS,IAAI,UAAU,CAAC,eAAe,CAAC;IAE/D,IAAM,eAAe,GACnB,IAAI,CAAC,eAAe,IAAI,gBAAgB,CAAC,eAAe,CAAC;IAE3D,OAAO;AACL,QAAA,IAAI,EAAA,IAAA;AACJ,QAAA,MAAM,EAAA,MAAA;AACN,QAAA,eAAe,EAAA,eAAA;AACf,QAAA,eAAe,EAAA,eAAA;AACf,QAAA,SAAS,EAAA,SAAA;AACT,QAAA,eAAe,EAAA,eAAA;AACf,QAAA,kBAAkB,EAAA,kBAAA;AAClB,QAAA,eAAe,EAAA,eAAA;AACf,QAAA,iBAAiB,EAAA,iBAAA;AACjB,QAAA,mBAAmB,EAAA,mBAAA;AACnB,QAAA,kBAAkB,EAAA,kBAAA;AAClB,QAAA,iBAAiB,EAAA,iBAAA;AACjB,QAAA,sBAAsB,EAAA,sBAAA;AACtB,QAAA,YAAY,EAAA,YAAA;AACZ,QAAA,gBAAgB,EAAA,gBAAA;AAChB,QAAA,cAAc,EAAA,cAAA;AACd,QAAA,gBAAgB,EAAA,gBAAA;AAChB,QAAA,oBAAoB,EAAA,oBAAA;AACpB,QAAA,uBAAuB,EAAA,uBAAA;KACxB;AACH;;;;"}
|
|
@@ -655,6 +655,7 @@ var canada_driving_license__ = "Canada Driving License ";
|
|
|
655
655
|
var canada_driving_license__2009 = "Canada Driving License 2009";
|
|
656
656
|
var united_arab_emirates_passport_2011 = "United Arab Emirates Passport 2011";
|
|
657
657
|
var united_arab_emirates_passport_2022 = "United Arab Emirates Passport 2022";
|
|
658
|
+
var company_registration_certificate = "Company Registration Certificate (International Kbis)";
|
|
658
659
|
var documentsEn = {
|
|
659
660
|
proof_of_french_residence: proof_of_french_residence,
|
|
660
661
|
supplier_invoice: supplier_invoice,
|
|
@@ -1366,8 +1367,9 @@ var documentsEn = {
|
|
|
1366
1367
|
canada_driving_license__: canada_driving_license__,
|
|
1367
1368
|
canada_driving_license__2009: canada_driving_license__2009,
|
|
1368
1369
|
united_arab_emirates_passport_2011: united_arab_emirates_passport_2011,
|
|
1369
|
-
united_arab_emirates_passport_2022: united_arab_emirates_passport_2022
|
|
1370
|
+
united_arab_emirates_passport_2022: united_arab_emirates_passport_2022,
|
|
1371
|
+
company_registration_certificate: company_registration_certificate
|
|
1370
1372
|
};
|
|
1371
1373
|
|
|
1372
|
-
export { accommodation_certificate_signed_by_the_host, accounting_balance_sheet, afghanistan_national_id_card_2019, afghanistan_passport_2012, afghanistan_passport_2016, afghanistan_passport_2017, albania_passport_2009, albania_residency_permit_2013, algeria_passport_2012, andorra_diplomatic_passport_2007_, andorra_passport_2005, andorra_passport_2007, andorra_passport_2017, angola_passport_2000, angola_passport_2006, anguilla_passport_1988, annual_financial_statements, antigua_and_barbuda_passport_, argentina_passport_1996, argentina_passport_2009, argentina_passport_2012, argentina_passport_2019, armenia_passport_2008, armenia_passport_2012, articles_of_incorporation, aruba_passport_, australia_passport_1994, australia_passport_2003, australia_passport_2005, australia_passport_2009, australia_passport_2014, australia_passport_2022, austria_diplomatic_passport_2006_, austria_diplomatic_passport_2014_, austria_driving_license__2006, austria_driving_license__2013, austria_driving_license__2014, austria_national_id_card_2002, austria_national_id_card_2005, austria_national_id_card_2010, austria_national_id_card_2021, austria_passport_2006, austria_passport_2014, austria_passport_2023, azerbaijan_national_id_card_2008, azerbaijan_passport_1998, azerbaijan_passport_2013, bahamas_driving_license__2012, bahrain_national_id_card_2007, bahrain_passport_2002, bangladesh_passport_1996, bangladesh_passport_2010, bangladesh_passport_2013, bangladesh_passport_2019, bank_book_statement, bank_details, barbados_passport_, belarus__passport_2013, belgium_diplomatic_passport_2019, belgium_diplomatic_passport_2022, belgium_diplomatic_passport_2023_, belgium_diplomatic_passport_2025, belgium_driving_license__2013, belgium_driving_license__2019, belgium_national_id_card_2013, belgium_national_id_card_2015, belgium_national_id_card_2020, belgium_national_id_card_2021, belgium_passport_2017, belgium_passport_2019, belgium_passport_2022, belgium_residency_permit_2021, belgium_residency_permit_2022, belgium_residency_permit_2024, belize_passeport_2011, benin_passport_2000, benin_passport_2016, benin_passport_2021, bermuda_passport_2004, bhutan_passport_2006, birth_certificate, bolivia__passeport_2018, bosnia_and_herzegovina_diplomatic_passport_2001, bosnia_and_herzegovina_diplomatic_passport_2010, bosnia_and_herzegovina_national_id_card_2003, bosnia_and_herzegovina_national_id_card_2013, bosnia_and_herzegovina_passport_2001, bosnia_and_herzegovina_passport_2009, bosnia_and_herzegovina_passport_2010, bosnia_and_herzegovina_passport_2014, botswana_passport_2009, brazil_driving_license__, brazil_passport_2000, brazil_passport_2010, brazil_passport_2016, brunei_darussalam_passport_1993, brunei_darussalam_passport_2008, bulgaria_national_id_card_2010, bulgaria_passport_2010, bulgaria_residency_permit_2013, burkina_faso_national_id_card_2008, burkina_faso_passport_2013, burkina_faso_passport_2018, burundi_passport_1996, burundi_passport_2018, cabo_verde_driving_license__, cabo_verde_passport_2005, cac_acceptance_letter, cac_copy, cac_report, cameroon_national_id_card_2008, cameroon_passport_2013, cameroon_passport_2021, canada_driving_license__, canada_driving_license__2009, canada_passport_2013, canada_passport_2023, carte_grise, cash_deposit_certificate, central_african_republic_passport_, cerfa_2705_of_inheritance_registered_by_the_tax_authorities, certificate_from_the_notary, certificate_from_the_notary_who_executed_a_sale, certificate_of_sale_of_real_estate, chad_passport_, chile_national_id_card_2013, chile_passport_2002, china_passport_1997, china_passport_1999, china_passport_2003, china_passport_2007, china_passport_2009, china_passport_2013, china_passport_2019, china_residency_permit_2003, china_residency_permit_2009, china_residency_permit_2019, colombia_passport_2010, colombia_passport_2019, colombia_residency_permit_2014, comoros_national_id_card_2008, comoros_passport_2008, company_letter_accompanying_the_payment_of_the_capital_of_a_life_insurance_or_capitalization_contract, confidentiality_statement, congo_passport_2014, copy_of_a_deed_of_transfer, copy_of_a_judgment_notifying_the_compensatory_indemnity_or_following_damages, copy_of_cohabitation_certificate_or_declaration_of_cohabitation, costa_rica_passport_2006, court_decision_of_sale, croatia_diplomatic_passport_2000, croatia_diplomatic_passport_2009, croatia_diplomatic_passport_2015, croatia_national_id_card_2003, croatia_national_id_card_2013, croatia_national_id_card_2015, croatia_national_id_card_2021, croatia_passport_2015, croatia_residency_permit_2013, croatia_residency_permit_2016, croatia_residency_permit_2021, cuba_passport_2001, cvec, cyprus_diplomatic_passport_2010, cyprus_diplomatic_passport_2020, cyprus_national_id_card_2015, cyprus_national_id_card_2020, cyprus_passport_2002, cyprus_passport_2010, cyprus_passport_2020, cyprus_residency_permit_2020, cyprus_residency_permit_2021, czech_republic_national_id_card_2012, czech_republic_national_id_card_2014, czech_republic_national_id_card_2021, czech_republic_national_id_card_2023, czech_republic_passport_2006, czech_republic_passport_2012, czech_republic_residency_permit_2011, czech_republic_residency_permit_2014, czech_republic_residency_permit_2020, czech_republic_residency_permit_2022, death_certificate, declaration_of_no_conviction, deed_of_transfer_of_sale_of_real_estate, deed_of_transfer_of_share, documentsEn as default, democratic_republic_of_the_congo_passport_2009, democratic_republic_of_the_congo_passport_2015, denmark_diplomatic_passport_2006_, denmark_diplomatic_passport_2012_, denmark_passport_2004, denmark_passport_2006, denmark_passport_2012, denmark_passport_2021, denmark_residency_permit_2012, djibouti_passport_2017, domiciliation_certificate, dominica_passport_2006, dominica_passport_2020, dominican_republic_passport_2004, dominican_republic_passport_2015, ecuador_passport_2003, egypt_passport_2008, el_salvador_passport_2007, el_salvador_passport_2010, employment_certificate, equatorial_guinea_passport_2018, equity_credit_agreement, eritrea_passport_2010, establishment_statement_issued_by_a_notary, estonia_diplomatic_passport_2007_, estonia_diplomatic_passport_2021_, estonia_national_id_card_2011, estonia_national_id_card_2018, estonia_national_id_card_2021, estonia_passport_2014, estonia_passport_2021, estonia_residency_permit_2004, estonia_residency_permit_2011, estonia_residency_permit_2018, estonia_residency_permit_2020, ethiopia_passport_2004, extract_from_publication_in_the_official_journal_of_the_declaration_of_existence_of_the_association_at_the_prefecture, family_record_book, finland_diplomatic_passport_2012_, finland_diplomatic_passport_2017_, finland_diplomatic_passport_2023_, finland_national_id_card_2011, finland_national_id_card_2017, finland_national_id_card_2021, finland_national_id_card_2023, finland_passport_2017, finland_passport_2023, finland_residency_permit_2011, finland_residency_permit_2017, finland_residency_permit_2020, finland_residency_permit_2021, form_a1, france_carte_vitale_2007, france_diplomatic_passport_2006_, france_diplomatic_passport_2008, france_diplomatic_passport_2013, france_diplomatic_passport_2019, france_driving_license_1989, france_driving_license_2013, france_driving_license_2015, france_national_id_card_1994, france_national_id_card_1998, france_national_id_card_2021, france_passport_1999, france_passport_2006, france_passport_2008, france_passport_2013, france_passport_2019, france_residency_permit_2020, full_and_final_settlement, gabon_passport_2009, gabon_passport_2013, gambia_passport_2002, georgia_passport_2010, georgia_passport_2016, germany_diplomatic_passport_2007_, germany_diplomatic_passport_2017, germany_diplomatic_passport_2024, germany_driving_license__2004, germany_driving_license__2011, germany_driving_license__2013, germany_driving_license__2021, germany_national_id_card_2010, germany_national_id_card_2021, germany_passport_2007, germany_passport_2014, germany_passport_2017, germany_passport_2024, germany_residency_permit_2021, ghana_passport_1997, ghana_passport_2010, greece_diplomatic_passport_2019_, greece_national_id_card_2023, greece_passport_2020, greece_residency_permit_2013, greece_residency_permit_2020, greenland_passport_2021, grenada_passport_2001, guinea__passport_2014, guinea__passport_2018, guyana_passport_2004, haiti_national_id_card_2005, haiti_passport_2004, haiti_passport_2009, haiti_residency_permit_2009, honduras_passport_2013, hungary_diplomatic_passport_2012_, hungary_national_id_card_2001, hungary_national_id_card_2012, hungary_national_id_card_2016, hungary_national_id_card_2021, hungary_passport_2012, hungary_residency_permit_2001, hungary_residency_permit_2011, hungary_residency_permit_2012, hungary_residency_permit_2020, iceland_passport_2006, iceland_passport_2019, ielts, income_statement, income_tax_notice, india_passport_2000, india_passport_2008, indonesia_passport_, information_statement, insurance_receipt, iraq_national_id_card_2019, iraq_passport_2004, iraq_passport_2006, iraq_passport_2009, iraq_passport_2023, ireland_passport_2006, ireland_passport_2013, ireland_residency_permit_2017, ireland_residency_permit_2022, israel_passport_1992, israel_passport_2011, israel_passport_2012, italy_driving_license__2002, italy_driving_license__2013, italy_national_id_card_2004, italy_national_id_card_2006, italy_national_id_card_2022, italy_passport_2006, italy_passport_2010, italy_passport_2023, italy_residency_permit_2007, italy_residency_permit_2013, italy_residency_permit_2021, jamaica_passport_2001, japan_passport_1999, japan_passport_2006, japan_passport_2013, jordan_passport_2007, jordan_passport_2008, kazakhstan_national_id_card_2009, kazakhstan_passport_2004, kazakhstan_passport_2009, kazakhstan_passport_2012, kbis, kenya_passport_2008, kenya_passport_2015, kuwait_passport_2016, kyrgyzstan_passport_2006, kyrgyzstan_passport_2022, latvia_national_id_card_2019, latvia_national_id_card_2021, latvia_passport_2002, latvia_passport_2015, latvia_residency_permit_2012, latvia_residency_permit_2019, latvia_residency_permit_2021, leasing_agreement, lebanon_passport_2003, lebanon_passport_2016, lesotho_passport_1998, lesotho_passport_2006, lesotho_passport_2016, letter_from_the_insurance_company_accompanying_the_payment, liberia_passport_2010, liberia_passport_2017, libya_passport_2013, liquidation_account, list_of_previous_registered_offices, list_of_subscribers, lithuania_national_id_card_2009, lithuania_national_id_card_2012, lithuania_national_id_card_2021, lithuania_passport_2008, lithuania_passport_2009, lithuania_passport_2011, lithuania_residency_permit_2012, lithuania_residency_permit_2020, lithuania_residency_permit_2022, loan_agreement, luxembourg_driving_license__2013, luxembourg_national_id_card_2014, luxembourg_national_id_card_2021, luxembourg_passport_2015, luxembourg_residency_permit_2011, luxembourg_residency_permit_2020, luxembourg_residency_permit_2021, madagascar_passeport_2017, malawi_passport_2011, malaysia_passport_2006, malaysia_passport_2010, malaysia_passport_2017, maldives_passport_2007, maldives_passport_2016, mali_passport_2007, mali_passport_2016, malta_national_id_card_2002, malta_national_id_card_2014, malta_national_id_card_2020, malta_passport_2008, malta_passport_2019, malta_residency_permit_2020, mauritania_passport_2013, mbe_form, mexico_passport_2008, mexico_passport_2012, mexico_passport_2016, mexico_residency_permit_2010, minutes_of_decision, monaco_national_id_card_2009, monaco_passport_2005, monaco_passport_2021, montenegro_national_id_card_2008, montenegro_national_id_card_2020, montenegro_passport_2021, montserrat_passport_2008, morocco_driving_license__2020, morocco_passport_2009, mozambique_passport_2010, multilingual_pay_slip, multilingual_tax_notice, namibia_passport_2001, nepal_passport_2010, nepal_passport_2021, netherlands_driving_license__2006, netherlands_driving_license__2013, netherlands_driving_license__2014, netherlands_national_id_card_2014, netherlands_national_id_card_2021, netherlands_passport_2014, netherlands_passport_2021, netherlands_residency_permit_2020, new_zealand_passport_2000, new_zealand_passport_2005, new_zealand_passport_2009, new_zealand_passport_2016, new_zealand_passport_2021, nicaragua_passport_2001, nicaragua_passport_2015, niger_passport_, nigeria_passport_2007, north_macedonia_passport_2007, norway_national_id_card_2020, norway_national_id_card_2021, norway_passport_1999, norway_passport_2005, norway_passport_2011, norway_passport_2015, norway_passport_2020, norway_residency_permit_2012, norway_residency_permit_2017, norway_residency_permit_2020, notarial_deed, notarial_deed_for_the_donation, notarial_deed_for_the_inheritance, notice_of_final_divorce_decree, notice_of_transfer_of_securities, oman_passport_1999, oman_passport_2005, oman_passport_2014, original_birth_certificate_extract_less_than_3_months_old, pakistan_passport_2004, pakistan_passport_2009, pakistan_passport_2013, pakistan_passport_2017, pakistan_passport_2022, panama_passport_2004, panama_passport_2014, papua_new_guinea_passeport_2022, paraguay__passport_2023, pay_slip, peru_passport_2010, peru_passport_2016, philippines_passport_2010, philippines_passport_2016, poland_national_id_card_2001, poland_national_id_card_2002, poland_national_id_card_2013, poland_national_id_card_2015, poland_national_id_card_2019, poland_national_id_card_2021, poland_passport_2011, poland_passport_2018, poland_passport_2022, poland_residency_permit_2004, poland_residency_permit_2011, poland_residency_permit_2014, poland_residency_permit_2020, poland_residency_permit_2021, portugal_driving_license__2013, portugal_national_id_card_2007, portugal_national_id_card_2008, portugal_national_id_card_2009, portugal_national_id_card_2015, portugal_passport_2006, portugal_passport_2009, portugal_passport_2017, portugal_residency_permit_2017, portugal_residency_permit_2019, portugal_residency_permit_2020, power_of_attorney, private_copy, professional_card_construction_industry, proof_of_appointment, proof_of_french_residence, proof_of_registered_office, provisional_registration_certificate, qatar_passport_1999, qatar_passport_2008, real_estate_wealth_tax_notice, rent_receipt, rental_agreement, republic_of_korea_passport_2005, republic_of_korea_passport_2008, republic_of_korea_passport_2021, request_for_renewal_of_official_identity_document, romania_national_id_card_2021, romania_passport_2019, romania_residency_permit_2007, romania_residency_permit_2020, russian_federation_passport_2006, russian_federation_passport_2010, rwanda__passport_2019, san_marino_national_id_card_2017, san_marino_passport_2004, san_marino_passport_2006, saudi_arabia_passport_2021, school_certificate, senegal_national_id_card_2019, senegal_passport_2007, serbia_national_id_card_2008, serbia_passport_2008, seychelles_passport_2005, sick_leave, sierra_leone_passport_2004, singapore_passport_2003, singapore_passport_2006, singapore_passport_2017, sipsi_acknowledgment_of_receipt, sirene, slovakia_national_id_card_2008, slovakia_national_id_card_2013, slovakia_national_id_card_2015, slovakia_national_id_card_2019, slovakia_national_id_card_2022, slovakia_passport_2008, slovakia_passport_2014, slovakia_residency_permit_2011, slovakia_residency_permit_2020, slovenia_national_id_card_1998, slovenia_national_id_card_2022, slovenia_passport_2006, slovenia_passport_2016, slovenia_residency_permit_2011, social_landlord_rent_receipt, somalia_passport_2007, somalia_passport_2013, south_africa_passport_1996, south_africa_passport_2009, south_sudan_passport_2012, spain_diplomatic_passport_2006_, spain_driving_license__2013, spain_national_id_card_2001, spain_national_id_card_2006, spain_national_id_card_2015, spain_national_id_card_2021, spain_passport_2003, spain_passport_2006, spain_passport_2015, spain_residency_permit_2010, spain_residency_permit_2011, spain_residency_permit_2020, state_of_palestine_passport_2009, state_of_palestine_passport_2022, sudan_passport_2007, supplier_invoice, suriname__passeport_2021, sweden_national_id_card_2012, sweden_national_id_card_2021, sweden_national_id_card_2022, sweden_passport_2012, sweden_passport_2022, sweden_residency_permit_2012, sweden_residency_permit_2020, sweden_residency_permit_2022, switzerland_national_id_card_2003, switzerland_national_id_card_2005, switzerland_national_id_card_2023, switzerland_passport_2003, switzerland_passport_2010, switzerland_passport_2022, switzerland_residency_permit_2018, switzerland_residency_permit_2019, syrian_arab_republic_passport_2008, taiwan_passport_2004, taiwan_passport_2008, taiwan_passport_2017, taiwan_passport_2018, tax_return, temporary_employment_contract, thailand_passport_2005, thailand_passport_2012, thailand_passport_2020, toefl, toeic, togo_passport_2004, togo_passport_2009, transaction_protocol, transfer_notice, transfer_of_shares, tunisia_passport_2003, turkey_passport_2010, turkey_passport_2018, turkey_passport_2022, turkmenistan_passport_2008, uganda_passport_2018, ukraine_passport_2003, ukraine_passport_2005, ukraine_passport_2007, ukraine_passport_2015, united_arab_emirates_passport_2011, united_arab_emirates_passport_2022, united_kingdom_of_great_britain_and_northern_ireland_driving_license__2012, united_kingdom_of_great_britain_and_northern_ireland_driving_license__2014, united_kingdom_of_great_britain_and_northern_ireland_driving_license__2015, united_kingdom_of_great_britain_and_northern_ireland_driving_license__2021, united_kingdom_of_great_britain_and_northern_ireland_passport_1998, united_kingdom_of_great_britain_and_northern_ireland_passport_1999, united_kingdom_of_great_britain_and_northern_ireland_passport_2001, united_kingdom_of_great_britain_and_northern_ireland_passport_2006, united_kingdom_of_great_britain_and_northern_ireland_passport_2010, united_kingdom_of_great_britain_and_northern_ireland_passport_2011, united_kingdom_of_great_britain_and_northern_ireland_passport_2015, united_kingdom_of_great_britain_and_northern_ireland_passport_2019, united_kingdom_of_great_britain_and_northern_ireland_passport_2020, united_kingdom_of_great_britain_and_northern_ireland_residency_permit_2008, united_republic_of_tanzania_passport_2018, united_states_of_america_commercial_driver_license__, united_states_of_america_driving_license__, united_states_of_america_national_id_card_, united_states_of_america_passport_2006, united_states_of_america_passport_2020, united_states_of_america_residency_permit_2004, united_states_of_america_residency_permit_2010, updated_articles_of_association, uruguay_passport_2014, uzbekistan_passport_2011, venezuela__passport_2011, viet_nam_passport_2005, viet_nam_passport_2022, viet_nam_passport_2023, yemen_passport_2008, yemen_passport_2013, zambia_passport_2008, zimbabwe_passport_1998, zimbabwe_passport_2015 };
|
|
1374
|
+
export { accommodation_certificate_signed_by_the_host, accounting_balance_sheet, afghanistan_national_id_card_2019, afghanistan_passport_2012, afghanistan_passport_2016, afghanistan_passport_2017, albania_passport_2009, albania_residency_permit_2013, algeria_passport_2012, andorra_diplomatic_passport_2007_, andorra_passport_2005, andorra_passport_2007, andorra_passport_2017, angola_passport_2000, angola_passport_2006, anguilla_passport_1988, annual_financial_statements, antigua_and_barbuda_passport_, argentina_passport_1996, argentina_passport_2009, argentina_passport_2012, argentina_passport_2019, armenia_passport_2008, armenia_passport_2012, articles_of_incorporation, aruba_passport_, australia_passport_1994, australia_passport_2003, australia_passport_2005, australia_passport_2009, australia_passport_2014, australia_passport_2022, austria_diplomatic_passport_2006_, austria_diplomatic_passport_2014_, austria_driving_license__2006, austria_driving_license__2013, austria_driving_license__2014, austria_national_id_card_2002, austria_national_id_card_2005, austria_national_id_card_2010, austria_national_id_card_2021, austria_passport_2006, austria_passport_2014, austria_passport_2023, azerbaijan_national_id_card_2008, azerbaijan_passport_1998, azerbaijan_passport_2013, bahamas_driving_license__2012, bahrain_national_id_card_2007, bahrain_passport_2002, bangladesh_passport_1996, bangladesh_passport_2010, bangladesh_passport_2013, bangladesh_passport_2019, bank_book_statement, bank_details, barbados_passport_, belarus__passport_2013, belgium_diplomatic_passport_2019, belgium_diplomatic_passport_2022, belgium_diplomatic_passport_2023_, belgium_diplomatic_passport_2025, belgium_driving_license__2013, belgium_driving_license__2019, belgium_national_id_card_2013, belgium_national_id_card_2015, belgium_national_id_card_2020, belgium_national_id_card_2021, belgium_passport_2017, belgium_passport_2019, belgium_passport_2022, belgium_residency_permit_2021, belgium_residency_permit_2022, belgium_residency_permit_2024, belize_passeport_2011, benin_passport_2000, benin_passport_2016, benin_passport_2021, bermuda_passport_2004, bhutan_passport_2006, birth_certificate, bolivia__passeport_2018, bosnia_and_herzegovina_diplomatic_passport_2001, bosnia_and_herzegovina_diplomatic_passport_2010, bosnia_and_herzegovina_national_id_card_2003, bosnia_and_herzegovina_national_id_card_2013, bosnia_and_herzegovina_passport_2001, bosnia_and_herzegovina_passport_2009, bosnia_and_herzegovina_passport_2010, bosnia_and_herzegovina_passport_2014, botswana_passport_2009, brazil_driving_license__, brazil_passport_2000, brazil_passport_2010, brazil_passport_2016, brunei_darussalam_passport_1993, brunei_darussalam_passport_2008, bulgaria_national_id_card_2010, bulgaria_passport_2010, bulgaria_residency_permit_2013, burkina_faso_national_id_card_2008, burkina_faso_passport_2013, burkina_faso_passport_2018, burundi_passport_1996, burundi_passport_2018, cabo_verde_driving_license__, cabo_verde_passport_2005, cac_acceptance_letter, cac_copy, cac_report, cameroon_national_id_card_2008, cameroon_passport_2013, cameroon_passport_2021, canada_driving_license__, canada_driving_license__2009, canada_passport_2013, canada_passport_2023, carte_grise, cash_deposit_certificate, central_african_republic_passport_, cerfa_2705_of_inheritance_registered_by_the_tax_authorities, certificate_from_the_notary, certificate_from_the_notary_who_executed_a_sale, certificate_of_sale_of_real_estate, chad_passport_, chile_national_id_card_2013, chile_passport_2002, china_passport_1997, china_passport_1999, china_passport_2003, china_passport_2007, china_passport_2009, china_passport_2013, china_passport_2019, china_residency_permit_2003, china_residency_permit_2009, china_residency_permit_2019, colombia_passport_2010, colombia_passport_2019, colombia_residency_permit_2014, comoros_national_id_card_2008, comoros_passport_2008, company_letter_accompanying_the_payment_of_the_capital_of_a_life_insurance_or_capitalization_contract, company_registration_certificate, confidentiality_statement, congo_passport_2014, copy_of_a_deed_of_transfer, copy_of_a_judgment_notifying_the_compensatory_indemnity_or_following_damages, copy_of_cohabitation_certificate_or_declaration_of_cohabitation, costa_rica_passport_2006, court_decision_of_sale, croatia_diplomatic_passport_2000, croatia_diplomatic_passport_2009, croatia_diplomatic_passport_2015, croatia_national_id_card_2003, croatia_national_id_card_2013, croatia_national_id_card_2015, croatia_national_id_card_2021, croatia_passport_2015, croatia_residency_permit_2013, croatia_residency_permit_2016, croatia_residency_permit_2021, cuba_passport_2001, cvec, cyprus_diplomatic_passport_2010, cyprus_diplomatic_passport_2020, cyprus_national_id_card_2015, cyprus_national_id_card_2020, cyprus_passport_2002, cyprus_passport_2010, cyprus_passport_2020, cyprus_residency_permit_2020, cyprus_residency_permit_2021, czech_republic_national_id_card_2012, czech_republic_national_id_card_2014, czech_republic_national_id_card_2021, czech_republic_national_id_card_2023, czech_republic_passport_2006, czech_republic_passport_2012, czech_republic_residency_permit_2011, czech_republic_residency_permit_2014, czech_republic_residency_permit_2020, czech_republic_residency_permit_2022, death_certificate, declaration_of_no_conviction, deed_of_transfer_of_sale_of_real_estate, deed_of_transfer_of_share, documentsEn as default, democratic_republic_of_the_congo_passport_2009, democratic_republic_of_the_congo_passport_2015, denmark_diplomatic_passport_2006_, denmark_diplomatic_passport_2012_, denmark_passport_2004, denmark_passport_2006, denmark_passport_2012, denmark_passport_2021, denmark_residency_permit_2012, djibouti_passport_2017, domiciliation_certificate, dominica_passport_2006, dominica_passport_2020, dominican_republic_passport_2004, dominican_republic_passport_2015, ecuador_passport_2003, egypt_passport_2008, el_salvador_passport_2007, el_salvador_passport_2010, employment_certificate, equatorial_guinea_passport_2018, equity_credit_agreement, eritrea_passport_2010, establishment_statement_issued_by_a_notary, estonia_diplomatic_passport_2007_, estonia_diplomatic_passport_2021_, estonia_national_id_card_2011, estonia_national_id_card_2018, estonia_national_id_card_2021, estonia_passport_2014, estonia_passport_2021, estonia_residency_permit_2004, estonia_residency_permit_2011, estonia_residency_permit_2018, estonia_residency_permit_2020, ethiopia_passport_2004, extract_from_publication_in_the_official_journal_of_the_declaration_of_existence_of_the_association_at_the_prefecture, family_record_book, finland_diplomatic_passport_2012_, finland_diplomatic_passport_2017_, finland_diplomatic_passport_2023_, finland_national_id_card_2011, finland_national_id_card_2017, finland_national_id_card_2021, finland_national_id_card_2023, finland_passport_2017, finland_passport_2023, finland_residency_permit_2011, finland_residency_permit_2017, finland_residency_permit_2020, finland_residency_permit_2021, form_a1, france_carte_vitale_2007, france_diplomatic_passport_2006_, france_diplomatic_passport_2008, france_diplomatic_passport_2013, france_diplomatic_passport_2019, france_driving_license_1989, france_driving_license_2013, france_driving_license_2015, france_national_id_card_1994, france_national_id_card_1998, france_national_id_card_2021, france_passport_1999, france_passport_2006, france_passport_2008, france_passport_2013, france_passport_2019, france_residency_permit_2020, full_and_final_settlement, gabon_passport_2009, gabon_passport_2013, gambia_passport_2002, georgia_passport_2010, georgia_passport_2016, germany_diplomatic_passport_2007_, germany_diplomatic_passport_2017, germany_diplomatic_passport_2024, germany_driving_license__2004, germany_driving_license__2011, germany_driving_license__2013, germany_driving_license__2021, germany_national_id_card_2010, germany_national_id_card_2021, germany_passport_2007, germany_passport_2014, germany_passport_2017, germany_passport_2024, germany_residency_permit_2021, ghana_passport_1997, ghana_passport_2010, greece_diplomatic_passport_2019_, greece_national_id_card_2023, greece_passport_2020, greece_residency_permit_2013, greece_residency_permit_2020, greenland_passport_2021, grenada_passport_2001, guinea__passport_2014, guinea__passport_2018, guyana_passport_2004, haiti_national_id_card_2005, haiti_passport_2004, haiti_passport_2009, haiti_residency_permit_2009, honduras_passport_2013, hungary_diplomatic_passport_2012_, hungary_national_id_card_2001, hungary_national_id_card_2012, hungary_national_id_card_2016, hungary_national_id_card_2021, hungary_passport_2012, hungary_residency_permit_2001, hungary_residency_permit_2011, hungary_residency_permit_2012, hungary_residency_permit_2020, iceland_passport_2006, iceland_passport_2019, ielts, income_statement, income_tax_notice, india_passport_2000, india_passport_2008, indonesia_passport_, information_statement, insurance_receipt, iraq_national_id_card_2019, iraq_passport_2004, iraq_passport_2006, iraq_passport_2009, iraq_passport_2023, ireland_passport_2006, ireland_passport_2013, ireland_residency_permit_2017, ireland_residency_permit_2022, israel_passport_1992, israel_passport_2011, israel_passport_2012, italy_driving_license__2002, italy_driving_license__2013, italy_national_id_card_2004, italy_national_id_card_2006, italy_national_id_card_2022, italy_passport_2006, italy_passport_2010, italy_passport_2023, italy_residency_permit_2007, italy_residency_permit_2013, italy_residency_permit_2021, jamaica_passport_2001, japan_passport_1999, japan_passport_2006, japan_passport_2013, jordan_passport_2007, jordan_passport_2008, kazakhstan_national_id_card_2009, kazakhstan_passport_2004, kazakhstan_passport_2009, kazakhstan_passport_2012, kbis, kenya_passport_2008, kenya_passport_2015, kuwait_passport_2016, kyrgyzstan_passport_2006, kyrgyzstan_passport_2022, latvia_national_id_card_2019, latvia_national_id_card_2021, latvia_passport_2002, latvia_passport_2015, latvia_residency_permit_2012, latvia_residency_permit_2019, latvia_residency_permit_2021, leasing_agreement, lebanon_passport_2003, lebanon_passport_2016, lesotho_passport_1998, lesotho_passport_2006, lesotho_passport_2016, letter_from_the_insurance_company_accompanying_the_payment, liberia_passport_2010, liberia_passport_2017, libya_passport_2013, liquidation_account, list_of_previous_registered_offices, list_of_subscribers, lithuania_national_id_card_2009, lithuania_national_id_card_2012, lithuania_national_id_card_2021, lithuania_passport_2008, lithuania_passport_2009, lithuania_passport_2011, lithuania_residency_permit_2012, lithuania_residency_permit_2020, lithuania_residency_permit_2022, loan_agreement, luxembourg_driving_license__2013, luxembourg_national_id_card_2014, luxembourg_national_id_card_2021, luxembourg_passport_2015, luxembourg_residency_permit_2011, luxembourg_residency_permit_2020, luxembourg_residency_permit_2021, madagascar_passeport_2017, malawi_passport_2011, malaysia_passport_2006, malaysia_passport_2010, malaysia_passport_2017, maldives_passport_2007, maldives_passport_2016, mali_passport_2007, mali_passport_2016, malta_national_id_card_2002, malta_national_id_card_2014, malta_national_id_card_2020, malta_passport_2008, malta_passport_2019, malta_residency_permit_2020, mauritania_passport_2013, mbe_form, mexico_passport_2008, mexico_passport_2012, mexico_passport_2016, mexico_residency_permit_2010, minutes_of_decision, monaco_national_id_card_2009, monaco_passport_2005, monaco_passport_2021, montenegro_national_id_card_2008, montenegro_national_id_card_2020, montenegro_passport_2021, montserrat_passport_2008, morocco_driving_license__2020, morocco_passport_2009, mozambique_passport_2010, multilingual_pay_slip, multilingual_tax_notice, namibia_passport_2001, nepal_passport_2010, nepal_passport_2021, netherlands_driving_license__2006, netherlands_driving_license__2013, netherlands_driving_license__2014, netherlands_national_id_card_2014, netherlands_national_id_card_2021, netherlands_passport_2014, netherlands_passport_2021, netherlands_residency_permit_2020, new_zealand_passport_2000, new_zealand_passport_2005, new_zealand_passport_2009, new_zealand_passport_2016, new_zealand_passport_2021, nicaragua_passport_2001, nicaragua_passport_2015, niger_passport_, nigeria_passport_2007, north_macedonia_passport_2007, norway_national_id_card_2020, norway_national_id_card_2021, norway_passport_1999, norway_passport_2005, norway_passport_2011, norway_passport_2015, norway_passport_2020, norway_residency_permit_2012, norway_residency_permit_2017, norway_residency_permit_2020, notarial_deed, notarial_deed_for_the_donation, notarial_deed_for_the_inheritance, notice_of_final_divorce_decree, notice_of_transfer_of_securities, oman_passport_1999, oman_passport_2005, oman_passport_2014, original_birth_certificate_extract_less_than_3_months_old, pakistan_passport_2004, pakistan_passport_2009, pakistan_passport_2013, pakistan_passport_2017, pakistan_passport_2022, panama_passport_2004, panama_passport_2014, papua_new_guinea_passeport_2022, paraguay__passport_2023, pay_slip, peru_passport_2010, peru_passport_2016, philippines_passport_2010, philippines_passport_2016, poland_national_id_card_2001, poland_national_id_card_2002, poland_national_id_card_2013, poland_national_id_card_2015, poland_national_id_card_2019, poland_national_id_card_2021, poland_passport_2011, poland_passport_2018, poland_passport_2022, poland_residency_permit_2004, poland_residency_permit_2011, poland_residency_permit_2014, poland_residency_permit_2020, poland_residency_permit_2021, portugal_driving_license__2013, portugal_national_id_card_2007, portugal_national_id_card_2008, portugal_national_id_card_2009, portugal_national_id_card_2015, portugal_passport_2006, portugal_passport_2009, portugal_passport_2017, portugal_residency_permit_2017, portugal_residency_permit_2019, portugal_residency_permit_2020, power_of_attorney, private_copy, professional_card_construction_industry, proof_of_appointment, proof_of_french_residence, proof_of_registered_office, provisional_registration_certificate, qatar_passport_1999, qatar_passport_2008, real_estate_wealth_tax_notice, rent_receipt, rental_agreement, republic_of_korea_passport_2005, republic_of_korea_passport_2008, republic_of_korea_passport_2021, request_for_renewal_of_official_identity_document, romania_national_id_card_2021, romania_passport_2019, romania_residency_permit_2007, romania_residency_permit_2020, russian_federation_passport_2006, russian_federation_passport_2010, rwanda__passport_2019, san_marino_national_id_card_2017, san_marino_passport_2004, san_marino_passport_2006, saudi_arabia_passport_2021, school_certificate, senegal_national_id_card_2019, senegal_passport_2007, serbia_national_id_card_2008, serbia_passport_2008, seychelles_passport_2005, sick_leave, sierra_leone_passport_2004, singapore_passport_2003, singapore_passport_2006, singapore_passport_2017, sipsi_acknowledgment_of_receipt, sirene, slovakia_national_id_card_2008, slovakia_national_id_card_2013, slovakia_national_id_card_2015, slovakia_national_id_card_2019, slovakia_national_id_card_2022, slovakia_passport_2008, slovakia_passport_2014, slovakia_residency_permit_2011, slovakia_residency_permit_2020, slovenia_national_id_card_1998, slovenia_national_id_card_2022, slovenia_passport_2006, slovenia_passport_2016, slovenia_residency_permit_2011, social_landlord_rent_receipt, somalia_passport_2007, somalia_passport_2013, south_africa_passport_1996, south_africa_passport_2009, south_sudan_passport_2012, spain_diplomatic_passport_2006_, spain_driving_license__2013, spain_national_id_card_2001, spain_national_id_card_2006, spain_national_id_card_2015, spain_national_id_card_2021, spain_passport_2003, spain_passport_2006, spain_passport_2015, spain_residency_permit_2010, spain_residency_permit_2011, spain_residency_permit_2020, state_of_palestine_passport_2009, state_of_palestine_passport_2022, sudan_passport_2007, supplier_invoice, suriname__passeport_2021, sweden_national_id_card_2012, sweden_national_id_card_2021, sweden_national_id_card_2022, sweden_passport_2012, sweden_passport_2022, sweden_residency_permit_2012, sweden_residency_permit_2020, sweden_residency_permit_2022, switzerland_national_id_card_2003, switzerland_national_id_card_2005, switzerland_national_id_card_2023, switzerland_passport_2003, switzerland_passport_2010, switzerland_passport_2022, switzerland_residency_permit_2018, switzerland_residency_permit_2019, syrian_arab_republic_passport_2008, taiwan_passport_2004, taiwan_passport_2008, taiwan_passport_2017, taiwan_passport_2018, tax_return, temporary_employment_contract, thailand_passport_2005, thailand_passport_2012, thailand_passport_2020, toefl, toeic, togo_passport_2004, togo_passport_2009, transaction_protocol, transfer_notice, transfer_of_shares, tunisia_passport_2003, turkey_passport_2010, turkey_passport_2018, turkey_passport_2022, turkmenistan_passport_2008, uganda_passport_2018, ukraine_passport_2003, ukraine_passport_2005, ukraine_passport_2007, ukraine_passport_2015, united_arab_emirates_passport_2011, united_arab_emirates_passport_2022, united_kingdom_of_great_britain_and_northern_ireland_driving_license__2012, united_kingdom_of_great_britain_and_northern_ireland_driving_license__2014, united_kingdom_of_great_britain_and_northern_ireland_driving_license__2015, united_kingdom_of_great_britain_and_northern_ireland_driving_license__2021, united_kingdom_of_great_britain_and_northern_ireland_passport_1998, united_kingdom_of_great_britain_and_northern_ireland_passport_1999, united_kingdom_of_great_britain_and_northern_ireland_passport_2001, united_kingdom_of_great_britain_and_northern_ireland_passport_2006, united_kingdom_of_great_britain_and_northern_ireland_passport_2010, united_kingdom_of_great_britain_and_northern_ireland_passport_2011, united_kingdom_of_great_britain_and_northern_ireland_passport_2015, united_kingdom_of_great_britain_and_northern_ireland_passport_2019, united_kingdom_of_great_britain_and_northern_ireland_passport_2020, united_kingdom_of_great_britain_and_northern_ireland_residency_permit_2008, united_republic_of_tanzania_passport_2018, united_states_of_america_commercial_driver_license__, united_states_of_america_driving_license__, united_states_of_america_national_id_card_, united_states_of_america_passport_2006, united_states_of_america_passport_2020, united_states_of_america_residency_permit_2004, united_states_of_america_residency_permit_2010, updated_articles_of_association, uruguay_passport_2014, uzbekistan_passport_2011, venezuela__passport_2011, viet_nam_passport_2005, viet_nam_passport_2022, viet_nam_passport_2023, yemen_passport_2008, yemen_passport_2013, zambia_passport_2008, zimbabwe_passport_1998, zimbabwe_passport_2015 };
|
|
1373
1375
|
//# sourceMappingURL=documents.en.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents.en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"documents.en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":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