@adyen/kyc-components 3.77.5 → 3.78.0-beta.0

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.
Files changed (209) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-CXM0KBIQ.js → AcceptTermsOfServiceComponent-Ct-U9IVk.js} +6 -8
  2. package/dist/{AccountSetupRejected-Db7hEm2Q.js → AccountSetupRejected-DA7lvl-h.js} +2 -2
  3. package/dist/{Avatar-B8UufSUv.js → Avatar-BnO1RyHL.js} +1 -1
  4. package/dist/{BusinessDetailsDropin-Cap8qwaf.js → BusinessDetailsDropin-DLz3ikgg.js} +21 -7
  5. package/dist/{BusinessFinancingComponent-B43xGbhB.js → BusinessFinancingComponent-BIJJw0A1.js} +2 -2
  6. package/dist/{BusinessFinancingDropin-CFSlZNh6.js → BusinessFinancingDropin-DQltRAnN.js} +9 -87
  7. package/dist/{BusinessFinancingPage-_DmFTyDE.js → BusinessFinancingPage-Bmegi_jF.js} +2 -2
  8. package/dist/{BusinessTypeSelectionPage-DZccU5LS.js → BusinessTypeSelectionPage-BwjEZNeO.js} +4 -4
  9. package/dist/{CZ-BhoS6sd6.js → CZ-BiPeoA9G.js} +11 -1
  10. package/dist/{ContractViewer-BiUZQNaL.js → ContractViewer-bYnBY9sE.js} +268 -262
  11. package/dist/{CreateIndividualComponent-BegJ0xdr.js → CreateIndividualComponent-n-YEE3Tp.js} +3 -3
  12. package/dist/{CreateTransferInstrumentComponent-YSFuOxgN.js → CreateTransferInstrumentComponent-C8KgMZkw.js} +2 -2
  13. package/dist/{CustomerSupport-WUdR3ziX.js → CustomerSupport-CJEa7UtC.js} +5 -5
  14. package/dist/{DebugModal-D_ZJIH1_.js → DebugModal-DxXnmCC1.js} +35 -23
  15. package/dist/{DecisionMakerDetailsPage-DsQuhsSE.js → DecisionMakerDetailsPage-C7yifZnV.js} +3 -3
  16. package/dist/{DecisionMakers-DPfCISpI.js → DecisionMakers-iXAM5tMh.js} +11 -15
  17. package/dist/{EmbeddedStatus-BYEHACY3.js → EmbeddedStatus-DcoZtRLW.js} +2 -2
  18. package/dist/FormEndState-BWtj9vIw.js +59 -0
  19. package/dist/{FormFlow-DXUTh9kW.js → FormFlow-C-MTMaGn.js} +15 -15
  20. package/dist/{HU-v3vOxRm8.js → HU-D8vJYkDH.js} +10 -1
  21. package/dist/{IndividualOnfidoDropin-CIn1RYji.js → IndividualOnfidoDropin-Du45ITEc.js} +165 -101
  22. package/dist/{Introduction-D2_06uLp.js → Introduction-HiKpkbiv.js} +28 -30
  23. package/dist/{LegalRepresentativeDetailsPage-Bbtth4m_.js → LegalRepresentativeDetailsPage-Dv6I-2oD.js} +3 -3
  24. package/dist/{ManageIndividualComponent-Brh23n1f.js → ManageIndividualComponent-CKuYIC2X.js} +3 -3
  25. package/dist/{ManagePCIComponent-D9wUw01S.js → ManagePCIComponent-i79b4Hqq.js} +3 -3
  26. package/dist/{ManageTermsOfServiceComponent-DFGexyNM.js → ManageTermsOfServiceComponent-B1HgW_MY.js} +3 -3
  27. package/dist/{ManageTransferInstrumentComponent-DcPA5kBH.js → ManageTransferInstrumentComponent-BrwPoUhO.js} +4 -4
  28. package/dist/{OnboardingDropinComponent-uMaNN5m1.js → OnboardingDropinComponent-BC3w3xmn.js} +46 -48
  29. package/dist/{ProviderButton-BDBAonxK.js → ProviderButton-K1et5KM5.js} +2 -2
  30. package/dist/{Review-CsLqGWqv.js → Review-uOA39jcx.js} +3 -3
  31. package/dist/{RootBusinessDetailsPage-DHOlc2Fb.js → RootBusinessDetailsPage-CnHYxfF4.js} +3 -3
  32. package/dist/{RootIndividualDetailsPage-CM3pLPec.js → RootIndividualDetailsPage-DrnYxLa2.js} +3 -3
  33. package/dist/{SignPCIComponent-DjE8iIM_.js → SignPCIComponent-2_6YZm66.js} +5 -6
  34. package/dist/{SingpassSelection-BBE9tXwz.js → SingpassSelection-Dft9eQhT.js} +2 -2
  35. package/dist/{SoleProprietorshipPage-C09wz4Fq.js → SoleProprietorshipPage-BKGA8yWy.js} +3 -3
  36. package/dist/{SourceOfFunds.module-D1YjjFnh.js → SourceOfFunds.module-2vz8vKEU.js} +1 -1
  37. package/dist/{SourceOfFundsPage-BNRw84cs.js → SourceOfFundsPage-9VDt2qy-.js} +9 -9
  38. package/dist/{StoreProvider-eNTPiAvJ.js → StoreProvider-EGKkupTI.js} +2477 -1631
  39. package/dist/{TaskItemStatus-Ld65e2Ib.js → TaskItemStatus-BhqZsUtH.js} +2 -2
  40. package/dist/{TaxReportingDropin-DztI9thM.js → TaxReportingDropin-DlzUEouO.js} +30 -10
  41. package/dist/{TileGroup-C1slMQpY.js → TileGroup-CAXoNABy.js} +2 -2
  42. package/dist/{TrustDetailsPage-DryOPXie.js → TrustDetailsPage-CpUTzF6x.js} +5 -5
  43. package/dist/{TrustMemberCompanyPage-BcC6fDjH.js → TrustMemberCompanyPage-C0ISc646.js} +4 -4
  44. package/dist/{TrustMemberIndividualPage-C_BF2jF1.js → TrustMemberIndividualPage-DiS5kMl1.js} +3 -3
  45. package/dist/{UnincorporatedPartnershipIndividualPage-Bsvx1afN.js → UnincorporatedPartnershipIndividualPage-RolJnCb4.js} +3 -3
  46. package/dist/{UnincorporatedPartnershipMemberCompanyPage-DAtMmeAT.js → UnincorporatedPartnershipMemberCompanyPage-D1es1e6f.js} +3 -3
  47. package/dist/{VerificationErrorAlert-n7jOorHi.js → VerificationErrorAlert-C3NIMvJo.js} +2 -2
  48. package/dist/{ViewVerificationStatusComponent-DDRWRYI6.js → ViewVerificationStatusComponent-C-IcXDS-.js} +3 -3
  49. package/dist/adyen-business-financing.js +2 -2
  50. package/dist/adyen-individual.js +2 -2
  51. package/dist/adyen-kyc-components.js +14 -14
  52. package/dist/adyen-manage-individual.js +2 -2
  53. package/dist/adyen-manage-pci.js +2 -2
  54. package/dist/adyen-manage-terms-of-service.js +2 -2
  55. package/dist/adyen-manage-transfer-instruments.js +2 -2
  56. package/dist/adyen-onboarding.js +2 -2
  57. package/dist/adyen-sign-pci.js +2 -2
  58. package/dist/adyen-terms-of-service.js +2 -2
  59. package/dist/adyen-transfer-instrument.js +2 -2
  60. package/dist/adyen-verification-status.js +2 -2
  61. package/dist/bg-BG-BJEwX54-.js +13 -0
  62. package/dist/bg-BG-BY3Wa361.js +54 -0
  63. package/dist/cs-CZ-0aKeukjR.js +13 -0
  64. package/dist/cs-CZ-BEFeaKsV.js +54 -0
  65. package/dist/{css-Dx3lO5_A.js → css-BpMASpok.js} +2 -2
  66. package/dist/da-DK-BiQSdU1f.js +13 -0
  67. package/dist/da-DK-D6UK8XT9.js +54 -0
  68. package/dist/de-DE-DUl6gRKv.js +54 -0
  69. package/dist/de-DE-Dx-1f5v5.js +13 -0
  70. package/dist/el-GR-B5j7VZ3E.js +54 -0
  71. package/dist/el-GR-DNpOiXlS.js +13 -0
  72. package/dist/en-US-Bq2Twy6x.js +54 -0
  73. package/dist/es-ES-Cavm0szq.js +54 -0
  74. package/dist/es-ES-CtpW_j9H.js +13 -0
  75. package/dist/et-EE-CMNzVzun.js +13 -0
  76. package/dist/et-EE-DUWZ2Vqm.js +54 -0
  77. package/dist/fi-FI-DVa-ccaW.js +54 -0
  78. package/dist/fi-FI-DVdPICca.js +13 -0
  79. package/dist/fr-FR-BwbkqjVl.js +13 -0
  80. package/dist/fr-FR-CY9emHgF.js +54 -0
  81. package/dist/{getFieldsWithExistingData-D7Jd2dGv.js → getFieldsWithExistingData-KNN21BYJ.js} +2 -2
  82. package/dist/{hasDataChanged-BlhW8sAo.js → hasDataChanged-Dv4BtNmC.js} +2 -2
  83. package/dist/hr-HR-BZ_Eg80E.js +13 -0
  84. package/dist/hr-HR-CnP5sqih.js +54 -0
  85. package/dist/hu-HU-BTlpbCpc.js +54 -0
  86. package/dist/hu-HU-CJg6YVP9.js +13 -0
  87. package/dist/it-IT-CQKKYAgU.js +13 -0
  88. package/dist/it-IT-GgHc0cHR.js +54 -0
  89. package/dist/ja-JP-BhS-_dIx.js +54 -0
  90. package/dist/ja-JP-DVefHilf.js +13 -0
  91. package/dist/{json-DRqISTZZ.js → json-BPm3Ls2e.js} +2 -2
  92. package/dist/{localizeDateString-CWf9NFMr.js → localizeDateString-Diw6Lhg2.js} +1 -1
  93. package/dist/lt-LT-DTQGR9M0.js +54 -0
  94. package/dist/lt-LT-VPxl7F_u.js +13 -0
  95. package/dist/lv-LV-BQ4F1GrV.js +54 -0
  96. package/dist/lv-LV-DAuc68rg.js +13 -0
  97. package/dist/{mapFinancialReportsToFinancialInformation--y0TnagP.js → mapFinancialReportsToFinancialInformation-BlG_hA-u.js} +2 -2
  98. package/dist/minus-circle-filled-BGKeHaxJ.js +17 -0
  99. package/dist/nl-NL-CUcML482.js +54 -0
  100. package/dist/nl-NL-DwjbYj_Q.js +13 -0
  101. package/dist/no-NO-BBCvsecq.js +54 -0
  102. package/dist/no-NO-CvXFRRN-.js +13 -0
  103. package/dist/pl-PL-Bdl7Nmzc.js +13 -0
  104. package/dist/pl-PL-kGaeUP-w.js +54 -0
  105. package/dist/{plaintext-IY5y96pS.js → plaintext-BesgM2cU.js} +2 -2
  106. package/dist/plus-circle-filled-Cnf1oJTm.js +17 -0
  107. package/dist/pt-PT-DxxkYoPz.js +13 -0
  108. package/dist/pt-PT-JVqqgvPs.js +54 -0
  109. package/dist/{resolveEnvironment-CSnhhzZu.js → resolveEnvironment-D3TNe-uq.js} +3 -3
  110. package/dist/ro-RO-C83h2zHZ.js +54 -0
  111. package/dist/ro-RO-hnKiFjCy.js +13 -0
  112. package/dist/{rules-Bw5VoD84.js → rules-DH1wxWTt.js} +2 -2
  113. package/dist/sk-SK-CgLJIuJw.js +54 -0
  114. package/dist/sk-SK-DwwhojyK.js +13 -0
  115. package/dist/sl-SI-BzeVaC1Z.js +54 -0
  116. package/dist/sl-SI-YYS0gksL.js +13 -0
  117. package/dist/style.css +101 -130
  118. package/dist/styles-CLV89_hH.js +101 -130
  119. package/dist/sv-SE-CVmo11gI.js +54 -0
  120. package/dist/sv-SE-Dc4DCQEl.js +13 -0
  121. package/dist/types/api/companySelection/useCompanySelection.d.ts +18 -1
  122. package/dist/types/api/configurations/useScenarios.d.ts +6 -6
  123. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -1
  124. package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +4 -2
  125. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1 -1
  126. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +1 -2
  127. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +1 -2
  128. package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +7 -3
  129. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -1
  130. package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -2
  131. package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
  132. package/dist/types/components/Shared/devex/DebugListener/DebugModal.d.ts +0 -1
  133. package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -2
  134. package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -2
  135. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -2
  136. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  137. package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +1 -2
  138. package/dist/types/components/ui/atoms/Accordion/Accordion.d.ts +1 -2
  139. package/dist/types/components/ui/atoms/Button/Button.d.ts +2 -3
  140. package/dist/types/components/ui/atoms/Button/Button.types.d.ts +3 -3
  141. package/dist/types/components/ui/atoms/Field/Field.d.ts +3 -6
  142. package/dist/types/components/ui/atoms/Field/Field.types.d.ts +8 -12
  143. package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +4 -6
  144. package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +3 -4
  145. package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
  146. package/dist/types/components/ui/atoms/Remove/Remove.d.ts +1 -2
  147. package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -2
  148. package/dist/types/components/ui/atoms/Select/Select.types.d.ts +1 -0
  149. package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -2
  150. package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +3 -4
  151. package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -2
  152. package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +2 -2
  153. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +3 -3
  154. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
  155. package/dist/types/components/ui/atoms/TextArea/TextArea.d.ts +1 -2
  156. package/dist/types/components/ui/atoms/Tile/Tile.d.ts +1 -2
  157. package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -2
  158. package/dist/types/components/ui/molecules/Card/types.d.ts +3 -3
  159. package/dist/types/components/ui/molecules/Dropzone/Dropzone.d.ts +1 -2
  160. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +1 -2
  161. package/dist/types/components/ui/molecules/FormEndState/FormEndState.d.ts +0 -1
  162. package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +1 -2
  163. package/dist/types/components/ui/molecules/InputDate/InputDate.d.ts +3 -3
  164. package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +2 -2
  165. package/dist/types/context/ExperimentContext/types.d.ts +4 -0
  166. package/dist/types/core/EmbedShell/EmbedShell.d.ts +1 -0
  167. package/dist/types/core/UIElement/UIElement.d.ts +1 -0
  168. package/dist/types/core/models/api/get-scenarios.d.ts +1 -1
  169. package/dist/types/core/user-events.d.ts +1 -1
  170. package/dist/types/language/i18n.d.ts +2 -0
  171. package/dist/types/language/types.d.ts +3 -0
  172. package/dist/types/language/utils.d.ts +0 -1
  173. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  174. package/dist/types/utils/eventHandlers/handleKeys.d.ts +2 -2
  175. package/dist/types/utils/simulateTextChangeFromKeyboardEvent.d.ts +2 -2
  176. package/dist/{useMultiForm-DWTYgSWt.js → useMultiForm-DNz6r3S1.js} +42 -2
  177. package/dist/{useOnboardingStatus-D2L5eGBb.js → useOnboardingStatus-BfMyNd9j.js} +1 -1
  178. package/dist/{useSalesChannelsSettings-CCJIOx0C.js → useSalesChannelsSettings-BdiNfpO9.js} +2 -2
  179. package/dist/{useTermsOfServiceStatus-JYMeMxqh.js → useTermsOfServiceStatus-DmHfKODR.js} +1 -1
  180. package/dist/{useUpdateLegalEntity-DKmkARfB.js → useUpdateLegalEntity-BjJmHAFo.js} +2 -2
  181. package/dist/{utils-Dl28-SeM.js → utils-D27HlRXG.js} +4 -4
  182. package/dist/{validate-DZwaq7U4.js → validate-gdItZs2r.js} +2 -2
  183. package/dist/{yaml-KMfiNxd3.js → yaml-CBMhSQiD.js} +2 -2
  184. package/package.json +6 -3
  185. package/dist/FormEndState-BROfzthr.js +0 -32
  186. package/dist/bg-BG-CRw-yV0n.js +0 -13
  187. package/dist/cs-CZ-CKaXnO0J.js +0 -13
  188. package/dist/da-DK-yugi-zGr.js +0 -13
  189. package/dist/de-DE-C9D0VHPK.js +0 -13
  190. package/dist/el-GR-Cfek3dpt.js +0 -13
  191. package/dist/es-ES-Be9ntX5H.js +0 -13
  192. package/dist/et-EE-CnhmrnD_.js +0 -13
  193. package/dist/fi-FI-DXCfpnHj.js +0 -13
  194. package/dist/fr-FR-FzCZ5niV.js +0 -13
  195. package/dist/hr-HR-DIVU0YhD.js +0 -13
  196. package/dist/hu-HU-BqIaQOvc.js +0 -13
  197. package/dist/it-IT-_Wa83lsl.js +0 -13
  198. package/dist/ja-JP-BcbV8ztd.js +0 -13
  199. package/dist/lt-LT-InjX-Q9A.js +0 -13
  200. package/dist/lv-LV-CGvjqeg2.js +0 -13
  201. package/dist/nl-NL-BuSsBOd9.js +0 -13
  202. package/dist/no-NO-1oDvJ_s2.js +0 -13
  203. package/dist/pl-PL-BlMeifdM.js +0 -13
  204. package/dist/pt-PT-B74E7Ui9.js +0 -13
  205. package/dist/ro-RO-CG5G2hM2.js +0 -13
  206. package/dist/sk-SK-CZZJsLFf.js +0 -13
  207. package/dist/sl-SI-BzTwh4Mo.js +0 -13
  208. package/dist/sv-SE-B1gRccAU.js +0 -13
  209. package/dist/types/utils/useStateFromProp.d.ts +0 -9
@@ -2,24 +2,24 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "10d33237-8613-4831-ad7b-a716baf2d15e", e._sentryDebugIdIdentifier = "sentry-dbid-10d33237-8613-4831-ad7b-a716baf2d15e");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "608ae467-db8a-4002-a9bb-0d5f4fa29c65", e._sentryDebugIdIdentifier = "sentry-dbid-608ae467-db8a-4002-a9bb-0d5f4fa29c65");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMemo, useState, useEffect, useCallback } from "preact/hooks";
12
- import { p as useApiContext, bf as useMutation, bh as httpPost, c7 as matchesRegex, c8 as trimValWithOneSpace, c9 as NO_ALPHABET_REGEX, ca as EMOJI_REGEX, cb as hasRepeatedCharacters, cc as isInvalidName, cd as INDIVIDUAL_VALID_CHAR_REGEX, ce as getFormattingRegEx, cf as SPECIAL_CHARS, cg as standardKatakanaValidator, ch as standardKanjiValidator, ar as resolveFieldMetadata, ao as CountryCodes, ci as getSSNType, ap as isEmpty, cj as defaultFieldMetadata, ck as defaultFieldConfig, bE as defaultFieldMetadata$1, bF as fieldConfig, W as TaskTypes, cl as taxInformationDefaultFieldMetadata, y as LegalEntityType, cm as taxInformationDefaultFieldConfig, cn as getAgeToday, co as euCountries, cp as getIdDocument, cq as getDocument, cr as mapExistingFile, cs as getPageName, ct as getLocalizedIdDocumentTypeOptions, cu as getPage, cv as createDocumentRequest, bS as formatObject, cw as individualApiKeyMapping, bk as individualComponentsKeyMapping, bR as reverseMapping, cx as getNomineeFromAssociation, cy as drop, X as createLogger, P as useAccountHolder, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, a6 as useExperimentsContext, J as useSettingsContext, cz as documentApiUtils, cA as useProviderStatus, g as getLegalEntityCountry, c2 as getAssociatedLeAnalyticsPayload, cB as addressValidators, cC as getAsyncIdNumberValidationRule, bG as getAsyncPhoneValidationRules, cD as addressFormatters, cE as useScenarios, cF as setHasMotionCaptureScenario, cG as useScenarioConfiguration, cH as getPropsFromConfigurations, cI as individualForms, cJ as showIndividualMotionCapture, bO as getRequiredForms, bP as addValidityToForms, bC as getAllowedDecisionMakerRoles, b0 as datasetUtilities, bQ as useFormComposer, c3 as trackNavigation, cK as Individual, cL as composePerScenarioFormConfigurations, cM as omitObscuredFieldsIfUnchanged, cN as filterOutUnwantedAssociationsIfRootLE, c4 as isValidationError, c5 as processValidationErrors, c6 as isMaintenanceModeError, ba as cloneObject, cO as mapAddressLabels, cP as individualDocumentForms, cQ as individualDocumentMapping, cR as individualObscuredFields, cS as mergeAttachments, cT as getFileExtention, ak as getOwnEntityAssociations, cU as hasNomineesChanged, cV as attachNomineeToRole, cW as idVerificationProviderId, cX as doArraysMatch, bD as DecisionMakerType, cY as createFormRules, bB as getAvailableDecisionMakerRoleTypes, cZ as allowedCountriesForNominee, b_ as getAddressSchemaForCountry, b$ as COUNTRIES_WITH_STATES_DATASET, c_ as Scenarios, c$ as isLowRiskCountry, az as Field, bK as Select, d0 as isTruthyValidator, d1 as licenseCardNumberDefaultMetadata, d2 as licenseCardNumberDefaultConfig, aq as mergeFieldMetadataIntoProps, ay as createFormUtils, bL as useFormContext, av as getFieldProps, d3 as idNumberFields, d4 as IdentityNumber, d5 as additionallIdNumberOptions, d6 as MaskedInput, bW as InputDate, d7 as formatDateObj, d8 as DriversLicense, d9 as addressFields, u as useAllowedCountries, K as SettingNames, da as getDefaultTaxIdNumberType, F as FormHeader, ax as ErrorPanel, C as Typography, aF as CountryField, c0 as Address, c1 as getAddressSchemaLabelsByCountry, bU as Link, b8 as Confirm, db as getAgeRangeForLegalRepresentative, dc as IndividualIdNumberTypeSelector, dd as TaxInformationField, de as PatriotActDisclosure, df as isLegalRepresentativeNeeded, aw as nameFields, dg as decisionMakerRoleFields, dh as nomineeFields, di as contactDetailFields, B as Alert, aU as ContextGuidance, a$ as TrustedFieldsProvider, dj as DecisionMakerRole, dk as NomineeDecisionMakerRole, dl as LocalizedNameFields, bq as InputText, bH as ContactDetails, dm as keysOf, a_ as objectsDeepEqual, bN as isEmpty$1, dn as RadioWithLabel, bs as listToRecord, b2 as Modal, Z as Button, bm as Svg, dp as pick, dq as IdVerification, b7 as Spacer, _ as IconButton, c as useDataset, d as datasetIdentifier, L as Loader, dr as isPersonUnderAge, ds as IdDocumentManualUpload, dt as idDocumentUploadFields, du as useFormRouterContext, bM as getFormProps, dv as useCapabilities, dw as hasMotionCaptureScenario, dx as setShowIndividualMotionCapture, dy as shouldShowMotionCapture, dz as MemoizedProofOfRelationship, dA as MemoizedDocumentUpload, dB as MemoizedProofOfResidencyUpload, dC as individualOnfidoApiKeyMapping, dD as individualOnfidoBaseMapping, bn as useQueryClient, dE as individualOnfidoDocumentMapping, dF as individualOnfidoObscuredFields } from "./StoreProvider-eNTPiAvJ.js";
13
- import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-DKmkARfB.js";
14
- import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-DZwaq7U4.js";
15
- import { F as FormContextProvider, a as FormFlow } from "./FormFlow-DXUTh9kW.js";
16
- import { u as useSingpassMyInfoLogin, P as ProviderButton } from "./ProviderButton-BDBAonxK.js";
17
- import { u as useMultiForm } from "./useMultiForm-DWTYgSWt.js";
18
- import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-D7Jd2dGv.js";
19
- import { l as localizeDateString } from "./localizeDateString-CWf9NFMr.js";
20
- import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-Bw5VoD84.js";
12
+ import { p as useApiContext, bh as useMutation, bj as httpPost, bV as matchesRegex, bW as trimValWithOneSpace, bX as NO_ALPHABET_REGEX, bY as EMOJI_REGEX, bZ as hasRepeatedCharacters, b_ as isInvalidName, b$ as INDIVIDUAL_VALID_CHAR_REGEX, c0 as getFormattingRegEx, c1 as SPECIAL_CHARS, c2 as standardKatakanaValidator, c3 as standardKanjiValidator, ar as resolveFieldMetadata, ao as CountryCodes, c4 as getSSNType, ap as isEmpty, c5 as defaultFieldMetadata, c6 as defaultFieldConfig, c7 as defaultFieldMetadata$1, c8 as fieldConfig, W as TaskTypes, c9 as taxInformationDefaultFieldMetadata, y as LegalEntityType, ca as taxInformationDefaultFieldConfig, cb as getAgeToday, cc as euCountries, cd as getIdDocument, ce as getDocument, cf as mapExistingFile, cg as getPageName, ch as getLocalizedIdDocumentTypeOptions, ci as getPage, cj as createDocumentRequest, by as formatObject, ck as individualApiKeyMapping, bm as individualComponentsKeyMapping, bx as reverseMapping, cl as getNomineeFromAssociation, cm as drop, X as createLogger, P as useAccountHolder, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, a6 as useExperimentsContext, J as useSettingsContext, cn as documentApiUtils, co as useProviderStatus, g as getLegalEntityCountry, bN as getAssociatedLeAnalyticsPayload, cp as addressValidators, cq as getAsyncIdNumberValidationRule, cr as getAsyncPhoneValidationRules, cs as addressFormatters, ct as useScenarios, cu as setHasMotionCaptureScenario, cv as useScenarioConfiguration, cw as getPropsFromConfigurations, cx as individualForms, cy as showIndividualMotionCapture, bO as getRequiredForms, bP as addValidityToForms, cz as getAllowedDecisionMakerRoles, b2 as datasetUtilities, bQ as useFormComposer, bR as trackNavigation, cA as Individual, cB as composePerScenarioFormConfigurations, cC as omitObscuredFieldsIfUnchanged, cD as filterOutUnwantedAssociationsIfRootLE, bS as isValidationError, bT as processValidationErrors, bU as isMaintenanceModeError, bc as cloneObject, cE as mapAddressLabels, cF as individualDocumentForms, cG as individualDocumentMapping, cH as individualObscuredFields, cI as mergeAttachments, cJ as getFileExtention, ak as getOwnEntityAssociations, cK as hasNomineesChanged, cL as attachNomineeToRole, cM as idVerificationProviderId, cN as doArraysMatch, C as Typography, Z as Button, az as Field, cO as DecisionMakerType, cP as createFormRules, cQ as getAvailableDecisionMakerRoleTypes, cR as allowedCountriesForNominee, bJ as getAddressSchemaForCountry, bK as COUNTRIES_WITH_STATES_DATASET, cS as Scenarios, cT as isLowRiskCountry, bs as Select, cU as isTruthyValidator, cV as licenseCardNumberDefaultMetadata, cW as licenseCardNumberDefaultConfig, aq as mergeFieldMetadataIntoProps, ay as createFormUtils, bI as useFormContext, av as getFieldProps, cX as idNumberFields, cY as IdentityNumber, cZ as additionallIdNumberOptions, c_ as MaskedInput, bE as InputDate, c$ as formatDateObj, d0 as DriversLicense, d1 as addressFields, u as useAllowedCountries, K as SettingNames, d2 as getDefaultTaxIdNumberType, F as FormHeader, ax as ErrorPanel, aF as CountryField, bL as Address, bM as getAddressSchemaLabelsByCountry, bB as Link, ba as Confirm, d3 as getAgeRangeForLegalRepresentative, d4 as IndividualIdNumberTypeSelector, d5 as TaxInformationField, d6 as PatriotActDisclosure, d7 as isLegalRepresentativeNeeded, aw as nameFields, d8 as decisionMakerRoleFields, d9 as nomineeFields, da as contactDetailFields, B as Alert, aW as ContextGuidance, b1 as TrustedFieldsProvider, db as DecisionMakerRole, dc as NomineeDecisionMakerRole, dd as LocalizedNameFields, bC as InputText, de as ContactDetails, df as keysOf, b0 as objectsDeepEqual, dg as isEmpty$1, dh as RadioWithLabel, di as listToRecord, b4 as Modal, bo as Svg, dj as pick, dk as IdVerification, b9 as Spacer, _ as IconButton, c as useDataset, d as datasetIdentifier, L as Loader, dl as isPersonUnderAge, dm as IdDocumentManualUpload, dn as idDocumentUploadFields, dp as useFormRouterContext, dq as getFormProps, dr as useCapabilities, ds as hasMotionCaptureScenario, dt as setShowIndividualMotionCapture, du as shouldShowMotionCapture, dv as MemoizedProofOfRelationship, dw as MemoizedDocumentUpload, dx as MemoizedProofOfResidencyUpload, dy as individualOnfidoApiKeyMapping, dz as individualOnfidoBaseMapping, bp as useQueryClient, dA as individualOnfidoDocumentMapping, dB as individualOnfidoObscuredFields } from "./StoreProvider-EGKkupTI.js";
13
+ import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-BjJmHAFo.js";
14
+ import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-gdItZs2r.js";
15
+ import { F as FormContextProvider, a as FormFlow } from "./FormFlow-C-MTMaGn.js";
16
+ import { u as useSingpassMyInfoLogin, P as ProviderButton } from "./ProviderButton-K1et5KM5.js";
17
+ import { u as useMultiForm } from "./useMultiForm-DNz6r3S1.js";
18
+ import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-KNN21BYJ.js";
19
+ import { l as localizeDateString } from "./localizeDateString-Diw6Lhg2.js";
20
+ import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-DH1wxWTt.js";
21
21
  import { signal, computed } from "@preact/signals";
22
- import { T as TileGroup } from "./TileGroup-C1slMQpY.js";
22
+ import { T as TileGroup } from "./TileGroup-CAXoNABy.js";
23
23
  const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
24
24
  return await httpPost(
25
25
  {
@@ -1361,6 +1361,71 @@ const basicDetailsValidators = ({
1361
1361
  ...contactDetailsValidationRules,
1362
1362
  ...isExperimentEnabled("StrictNameAndAddressValidationV4") ? nameValidationRulesV4 : void 0
1363
1363
  });
1364
+ const guidanceQuestion = "adyen-kyc-guidance-question";
1365
+ const options = "adyen-kyc-options";
1366
+ const styles$6 = {
1367
+ guidanceQuestion,
1368
+ options
1369
+ };
1370
+ var GuidanceQuestionValues = /* @__PURE__ */ ((GuidanceQuestionValues2) => {
1371
+ GuidanceQuestionValues2["YES"] = "Yes";
1372
+ GuidanceQuestionValues2["NO"] = "No";
1373
+ return GuidanceQuestionValues2;
1374
+ })(GuidanceQuestionValues || {});
1375
+ const GuidanceQuestion = (props) => {
1376
+ const {
1377
+ descriptionLinkText,
1378
+ errorMessage,
1379
+ name,
1380
+ noLabel,
1381
+ onChange,
1382
+ onDescriptionLinkClick,
1383
+ question,
1384
+ value,
1385
+ yesLabel
1386
+ } = props;
1387
+ const { i18n } = useI18nContext();
1388
+ const userEvents = useAnalyticsContext();
1389
+ const handleChange = (selectedValue) => {
1390
+ userEvents.addFieldEvent("Interacted with form field", {
1391
+ actionType: "select",
1392
+ field: name,
1393
+ returnValue: selectedValue
1394
+ });
1395
+ const newValue = selectedValue || null;
1396
+ onChange(newValue);
1397
+ };
1398
+ const yesTileLabel = yesLabel ?? i18n.get("yes");
1399
+ const noTileLabel = noLabel ?? i18n.get("no");
1400
+ return /* @__PURE__ */ jsxs("div", { className: styles$6.guidanceQuestion, children: [
1401
+ /* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: question }),
1402
+ descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: onDescriptionLinkClick, children: descriptionLinkText }),
1403
+ /* @__PURE__ */ jsx(Field, { name, className: styles$6.options, children: () => /* @__PURE__ */ jsx(
1404
+ TileGroup,
1405
+ {
1406
+ allowMultiple: false,
1407
+ errorMessage,
1408
+ isHorizontal: true,
1409
+ maxSelected: 1,
1410
+ name,
1411
+ onChange: handleChange,
1412
+ selected: value || "",
1413
+ tiles: [
1414
+ {
1415
+ label: yesTileLabel,
1416
+ value: "Yes"
1417
+ /* YES */
1418
+ },
1419
+ {
1420
+ label: noTileLabel,
1421
+ value: "No"
1422
+ /* NO */
1423
+ }
1424
+ ]
1425
+ }
1426
+ ) })
1427
+ ] });
1428
+ };
1364
1429
  const areArraysDifferent = (a = [], b = []) => {
1365
1430
  if (a.length !== b.length) {
1366
1431
  return true;
@@ -1372,19 +1437,19 @@ const areArraysDifferent = (a = [], b = []) => {
1372
1437
  const calculateRoles = (data) => {
1373
1438
  const roleMappings = [
1374
1439
  {
1375
- isApplicable: data?.signatoryQuestionnaire?.isSignatory === "yes",
1440
+ isApplicable: data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES,
1376
1441
  role: DecisionMakerType.SIGNATORY
1377
1442
  },
1378
1443
  {
1379
- isApplicable: data?.uboQuestionnaire?.isOwner === "yes",
1444
+ isApplicable: data?.uboQuestionnaire?.isOwner === GuidanceQuestionValues.YES,
1380
1445
  role: DecisionMakerType.OWNER
1381
1446
  },
1382
1447
  {
1383
- isApplicable: data?.uboQuestionnaire?.isControllingPerson === "yes",
1448
+ isApplicable: data?.uboQuestionnaire?.isControllingPerson === GuidanceQuestionValues.YES,
1384
1449
  role: DecisionMakerType.CONTROLLING_PERSON
1385
1450
  },
1386
1451
  {
1387
- isApplicable: data?.uboQuestionnaire?.isDirector === "yes",
1452
+ isApplicable: data?.uboQuestionnaire?.isDirector === GuidanceQuestionValues.YES,
1388
1453
  role: DecisionMakerType.DIRECTOR
1389
1454
  }
1390
1455
  ];
@@ -1631,12 +1696,12 @@ const individualOnfidoRules = ({
1631
1696
  return REQUIRED;
1632
1697
  },
1633
1698
  isGuidedDecisionMakersFlowEnabled: () => {
1634
- if (isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow")) {
1699
+ if (!isExperimentEnabled("DisableGuidedDecisionMakersFlow") && (isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow"))) {
1635
1700
  return "REQUIRED";
1636
1701
  }
1637
1702
  },
1638
1703
  isGuidedDecisionMakersFlowDisabled: () => {
1639
- if (!isExperimentEnabled("EnableGuidedDecisionMakersFlow") && !isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow")) {
1704
+ if (isExperimentEnabled("DisableGuidedDecisionMakersFlow") || !isExperimentEnabled("EnableGuidedDecisionMakersFlow") && !isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow")) {
1640
1705
  return "REQUIRED";
1641
1706
  }
1642
1707
  },
@@ -2164,6 +2229,7 @@ function BasicDetails(props) {
2164
2229
  } = useFormContext();
2165
2230
  const { isExperimentEnabled } = useExperimentsContext();
2166
2231
  const isGuidedDecisionMakersFlowEnabled = isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow");
2232
+ const isGuidedDecisionMakersFlowDisabled = isExperimentEnabled("DisableGuidedDecisionMakersFlow");
2167
2233
  const {
2168
2234
  country,
2169
2235
  data,
@@ -2232,7 +2298,7 @@ function BasicDetails(props) {
2232
2298
  isDecisionMakerTask && trustedFieldsProvider === TrustedFieldsProvider.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children: i18n.get(
2233
2299
  "weSelectedSomeRolesBasedOnMyinfoBusinessDataAboutYourCompanysAppointmentHoldersAndShareholders"
2234
2300
  ) }),
2235
- isDecisionMakerTask && !isGuidedDecisionMakersFlowEnabled && /* @__PURE__ */ jsxs(Fragment, { children: [
2301
+ isDecisionMakerTask && (isGuidedDecisionMakersFlowDisabled || !isGuidedDecisionMakersFlowEnabled) && /* @__PURE__ */ jsxs(Fragment, { children: [
2236
2302
  /* @__PURE__ */ jsx(
2237
2303
  DecisionMakerRole,
2238
2304
  {
@@ -2403,7 +2469,7 @@ const isNextStepDisabled = signal(false);
2403
2469
  const conflictRowTable = "adyen-kyc-conflict-row-table";
2404
2470
  const conflictRowList = "adyen-kyc-conflict-row-list";
2405
2471
  const conflictRowListOptionLabel = "adyen-kyc-conflict-row-list-option-label";
2406
- const styles$6 = {
2472
+ const styles$5 = {
2407
2473
  conflictRowTable,
2408
2474
  conflictRowList,
2409
2475
  conflictRowListOptionLabel
@@ -2429,7 +2495,7 @@ const ConflictRow = ({
2429
2495
  }
2430
2496
  }, [hasOnlyProvided, hasOnlyDetected, onSelect, selected]);
2431
2497
  if (hasOnlyProvided || hasOnlyDetected) return;
2432
- return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$6.conflictRowList, children: [
2498
+ return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$5.conflictRowList, children: [
2433
2499
  /* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
2434
2500
  /* @__PURE__ */ jsxs("dd", { children: [
2435
2501
  /* @__PURE__ */ jsxs("div", { children: [
@@ -2438,7 +2504,7 @@ const ConflictRow = ({
2438
2504
  {
2439
2505
  variant: "caption",
2440
2506
  color: "tertiary",
2441
- className: styles$6.conflictRowListOptionLabel,
2507
+ className: styles$5.conflictRowListOptionLabel,
2442
2508
  children: i18n.get("youEntered")
2443
2509
  }
2444
2510
  ),
@@ -2458,7 +2524,7 @@ const ConflictRow = ({
2458
2524
  {
2459
2525
  variant: "caption",
2460
2526
  color: "tertiary",
2461
- className: styles$6.conflictRowListOptionLabel,
2527
+ className: styles$5.conflictRowListOptionLabel,
2462
2528
  children: i18n.get("weDetected")
2463
2529
  }
2464
2530
  ),
@@ -2473,7 +2539,7 @@ const ConflictRow = ({
2473
2539
  )
2474
2540
  ] })
2475
2541
  ] })
2476
- ] }) : /* @__PURE__ */ jsxs("tr", { className: styles$6.conflictRowTable, children: [
2542
+ ] }) : /* @__PURE__ */ jsxs("tr", { className: styles$5.conflictRowTable, children: [
2477
2543
  /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
2478
2544
  /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
2479
2545
  RadioWithLabel,
@@ -2499,7 +2565,7 @@ const dataConflictsWrapper = "adyen-kyc-data-conflicts-wrapper";
2499
2565
  const dataConflictsHeader = "adyen-kyc-data-conflicts-header";
2500
2566
  const dataConflictsTable = "adyen-kyc-data-conflicts-table";
2501
2567
  const dataConflictsList = "adyen-kyc-data-conflicts-list";
2502
- const styles$5 = {
2568
+ const styles$4 = {
2503
2569
  dataConflictsWrapper,
2504
2570
  dataConflictsHeader,
2505
2571
  dataConflictsTable,
@@ -2540,13 +2606,13 @@ const DataConflictsModal = ({
2540
2606
  // No dependencies, as setShowError and setResolutions are stable.
2541
2607
  );
2542
2608
  return /* @__PURE__ */ jsxs(Modal, { ariaLabel: i18n.get(title), onClose: () => setShowCancelModal(true), inset: true, children: [
2543
- /* @__PURE__ */ jsxs("div", { className: styles$5.dataConflictsWrapper, children: [
2544
- /* @__PURE__ */ jsxs("div", { className: styles$5.dataConflictsHeader, children: [
2609
+ /* @__PURE__ */ jsxs("div", { className: styles$4.dataConflictsWrapper, children: [
2610
+ /* @__PURE__ */ jsxs("div", { className: styles$4.dataConflictsHeader, children: [
2545
2611
  /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h1", children: i18n.get(title) }),
2546
2612
  /* @__PURE__ */ jsx(Typography, { variant: "body", children: i18n.get(explanation) })
2547
2613
  ] }),
2548
2614
  showError ? /* @__PURE__ */ jsx(Alert, { variant: "error", title: i18n.get("chooseTheCorrectDetailsBeforeProceeding") }) : void 0,
2549
- /* @__PURE__ */ jsx("dl", { className: styles$5.dataConflictsList, children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
2615
+ /* @__PURE__ */ jsx("dl", { className: styles$4.dataConflictsList, children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
2550
2616
  ConflictRow,
2551
2617
  {
2552
2618
  showAs: "listItem",
@@ -2559,7 +2625,7 @@ const DataConflictsModal = ({
2559
2625
  },
2560
2626
  property
2561
2627
  )) }),
2562
- /* @__PURE__ */ jsxs("table", { className: styles$5.dataConflictsTable, children: [
2628
+ /* @__PURE__ */ jsxs("table", { className: styles$4.dataConflictsTable, children: [
2563
2629
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
2564
2630
  /* @__PURE__ */ jsx("th", {}),
2565
2631
  /* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", children: i18n.get("youEntered") }) }),
@@ -2617,12 +2683,12 @@ const DataConflictsModal = ({
2617
2683
  ] });
2618
2684
  };
2619
2685
  const verificationDisclaimer = "adyen-kyc-verification-disclaimer";
2620
- const styles$4 = {
2686
+ const styles$3 = {
2621
2687
  verificationDisclaimer
2622
2688
  };
2623
2689
  const IdVerificationDisclaimer = () => {
2624
2690
  const { i18n } = useI18nContext();
2625
- return /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "tertiary", className: styles$4.verificationDisclaimer, children: [
2691
+ return /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "tertiary", className: styles$3.verificationDisclaimer, children: [
2626
2692
  i18n.get("ifYouChooseToUseOnfido"),
2627
2693
  " ",
2628
2694
  /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("onfidoPrivacyPolicy") }),
@@ -2635,25 +2701,25 @@ const IdVerificationDisclaimer = () => {
2635
2701
  const verificationHeader = "adyen-kyc-verification-header";
2636
2702
  const verificationHeaderImage = "adyen-kyc-verification-header-image";
2637
2703
  const verificationHeaderContent = "adyen-kyc-verification-header-content";
2638
- const styles$3 = {
2704
+ const styles$2 = {
2639
2705
  verificationHeader,
2640
2706
  verificationHeaderImage,
2641
2707
  verificationHeaderContent
2642
2708
  };
2643
2709
  const IdVerificationHeader = () => {
2644
2710
  const { i18n } = useI18nContext();
2645
- return /* @__PURE__ */ jsxs("div", { className: styles$3.verificationHeader, children: [
2711
+ return /* @__PURE__ */ jsxs("div", { className: styles$2.verificationHeader, children: [
2646
2712
  /* @__PURE__ */ jsx(
2647
2713
  Svg,
2648
2714
  {
2649
- className: styles$3.verificationHeaderImage,
2715
+ className: styles$2.verificationHeaderImage,
2650
2716
  type: "image",
2651
2717
  name: "passport-front-green",
2652
2718
  title: i18n.get("instantIDVerificationDescription")
2653
2719
  }
2654
2720
  ),
2655
2721
  /* @__PURE__ */ jsx(Typography, { variant: "title-l", children: i18n.get("capturePersonalDetails") }),
2656
- /* @__PURE__ */ jsxs(Typography, { variant: "body", color: "primary", className: styles$3.verificationHeaderContent, children: [
2722
+ /* @__PURE__ */ jsxs(Typography, { variant: "body", color: "primary", className: styles$2.verificationHeaderContent, children: [
2657
2723
  i18n.get("takeOrUploadAPhoto"),
2658
2724
  " ",
2659
2725
  /* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
@@ -2663,7 +2729,7 @@ const IdVerificationHeader = () => {
2663
2729
  const verifyOnfidoContainer = "adyen-kyc-verify-onfido-container";
2664
2730
  const verifyOnfidoError = "adyen-kyc-verify-onfido-error";
2665
2731
  const verifyOnfidoContent = "adyen-kyc-verify-onfido-content";
2666
- const styles$2 = {
2732
+ const styles$1 = {
2667
2733
  verifyOnfidoContainer,
2668
2734
  verifyOnfidoError,
2669
2735
  verifyOnfidoContent
@@ -2809,12 +2875,12 @@ const OnfidoVerificationModal = ({
2809
2875
  ) });
2810
2876
  };
2811
2877
  const uploadedDocument = "adyen-kyc-uploaded-document";
2812
- const styles$1 = {
2878
+ const styles = {
2813
2879
  uploadedDocument
2814
2880
  };
2815
2881
  const UploadedDocument = ({ document, onDelete, onUpdate }) => {
2816
2882
  const { i18n } = useI18nContext();
2817
- return /* @__PURE__ */ jsxs("article", { className: styles$1.uploadedDocument, children: [
2883
+ return /* @__PURE__ */ jsxs("article", { className: styles.uploadedDocument, children: [
2818
2884
  /* @__PURE__ */ jsxs("div", { children: [
2819
2885
  /* @__PURE__ */ jsx(Typography, { el: "h4", variant: "title", children: i18n.get(document.idDocumentType) }),
2820
2886
  /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("uploadedOn", {
@@ -3047,7 +3113,7 @@ function IdVerificationMethod(props) {
3047
3113
  const modalProvidedData = resolvedData || comparableExistingData;
3048
3114
  const formUtils = createFormUtils(props, i18n);
3049
3115
  isNextStepDisabled.value = showLoadingSpinner;
3050
- return /* @__PURE__ */ jsxs("div", { className: styles$2.verifyOnfidoContainer, children: [
3116
+ return /* @__PURE__ */ jsxs("div", { className: styles$1.verifyOnfidoContainer, children: [
3051
3117
  /* @__PURE__ */ jsx(
3052
3118
  ErrorPanel,
3053
3119
  {
@@ -3063,10 +3129,10 @@ function IdVerificationMethod(props) {
3063
3129
  {
3064
3130
  variant: "error",
3065
3131
  title: i18n.get(error.key, error.options),
3066
- className: styles$2.verifyOnfidoError
3132
+ className: styles$1.verifyOnfidoError
3067
3133
  }
3068
3134
  ) : void 0,
3069
- /* @__PURE__ */ jsx("div", { className: styles$2.verifyOnfidoContent, children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : /* @__PURE__ */ jsx(Fragment, { children: hasExistingDocument ? /* @__PURE__ */ jsx(
3135
+ /* @__PURE__ */ jsx("div", { className: styles$1.verifyOnfidoContent, children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : /* @__PURE__ */ jsx(Fragment, { children: hasExistingDocument ? /* @__PURE__ */ jsx(
3070
3136
  UploadedDocument,
3071
3137
  {
3072
3138
  document: existingDocument,
@@ -3169,52 +3235,6 @@ const ManualIdUpload = () => {
3169
3235
  const getDisplayErrorMessage = (errorMessage, i18n) => {
3170
3236
  return typeof errorMessage !== "boolean" ? i18n.get(errorMessage) : errorMessage;
3171
3237
  };
3172
- const guidanceQuestion = "adyen-kyc-guidance-question";
3173
- const options = "adyen-kyc-options";
3174
- const styles = {
3175
- guidanceQuestion,
3176
- options
3177
- };
3178
- const GuidanceQuestion = (props) => {
3179
- const {
3180
- descriptionLinkText,
3181
- errorMessage,
3182
- name,
3183
- noLabel,
3184
- onChange,
3185
- onDescriptionLinkClick,
3186
- question,
3187
- value,
3188
- yesLabel
3189
- } = props;
3190
- const { i18n } = useI18nContext();
3191
- const handleChange = (selectedValue) => {
3192
- const newValue = selectedValue || null;
3193
- onChange(newValue);
3194
- };
3195
- const yesTileLabel = yesLabel ?? i18n.get("yes");
3196
- const noTileLabel = noLabel ?? i18n.get("no");
3197
- return /* @__PURE__ */ jsxs("div", { className: styles.guidanceQuestion, children: [
3198
- /* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: question }),
3199
- descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: onDescriptionLinkClick, children: descriptionLinkText }),
3200
- /* @__PURE__ */ jsx(Field, { name, className: styles.options, children: () => /* @__PURE__ */ jsx(
3201
- TileGroup,
3202
- {
3203
- allowMultiple: false,
3204
- errorMessage,
3205
- isHorizontal: true,
3206
- maxSelected: 1,
3207
- name,
3208
- onChange: handleChange,
3209
- selected: value || "",
3210
- tiles: [
3211
- { label: yesTileLabel, value: "yes" },
3212
- { label: noTileLabel, value: "no" }
3213
- ]
3214
- }
3215
- ) })
3216
- ] });
3217
- };
3218
3238
  const SignatoryQuestionnaireModalContent = () => {
3219
3239
  const { i18n } = useI18nContext();
3220
3240
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -3227,6 +3247,7 @@ const SignatoryQuestionnaireModalContent = () => {
3227
3247
  };
3228
3248
  function SignatoryQuestionnaire(props) {
3229
3249
  const { i18n } = useI18nContext();
3250
+ const userEvents = useAnalyticsContext();
3230
3251
  const [isModalOpen, setIsModalOpen] = useState(false);
3231
3252
  const {
3232
3253
  data,
@@ -3240,8 +3261,19 @@ function SignatoryQuestionnaire(props) {
3240
3261
  if (!handleFieldChange) {
3241
3262
  return;
3242
3263
  }
3243
- const toggleModal = () => {
3244
- setIsModalOpen(!isModalOpen);
3264
+ const openModal = () => {
3265
+ userEvents.addPageEvent("Opened modal", {
3266
+ actionType: "open",
3267
+ label: "isSignatoryModal"
3268
+ });
3269
+ setIsModalOpen(true);
3270
+ };
3271
+ const closeModal = () => {
3272
+ userEvents.addPageEvent("Closed modal", {
3273
+ actionType: "close",
3274
+ label: "isSignatoryModal"
3275
+ });
3276
+ setIsModalOpen(false);
3245
3277
  };
3246
3278
  const errorMessage = formUtils.getErrorMessage("isSignatory", errors, fieldValidationErrors);
3247
3279
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-individual__personal-details", "aria-describedby": "ariaErrorField", children: [
@@ -3261,13 +3293,13 @@ function SignatoryQuestionnaire(props) {
3261
3293
  name: "isSignatory",
3262
3294
  value: data?.isSignatory,
3263
3295
  onChange: handleFieldChange("isSignatory"),
3264
- onDescriptionLinkClick: toggleModal,
3296
+ onDescriptionLinkClick: openModal,
3265
3297
  question: i18n.get("signatoryQuestion"),
3266
3298
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3267
3299
  errorMessage: getDisplayErrorMessage(errorMessage, i18n)
3268
3300
  }
3269
3301
  ),
3270
- isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: toggleModal, ariaLabel: i18n.get("moreAboutAuthorizedSignatories"), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
3302
+ isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: i18n.get("moreAboutAuthorizedSignatories"), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
3271
3303
  ] });
3272
3304
  }
3273
3305
  const RichText = ({ content }) => {
@@ -3349,6 +3381,7 @@ const uboQuestionnaireFields = [
3349
3381
  ];
3350
3382
  function UboQuestionnaire(props) {
3351
3383
  const { i18n } = useI18nContext();
3384
+ const userEvents = useAnalyticsContext();
3352
3385
  const {
3353
3386
  data,
3354
3387
  description,
@@ -3364,9 +3397,19 @@ function UboQuestionnaire(props) {
3364
3397
  return;
3365
3398
  }
3366
3399
  const openModal = (modalType) => () => {
3400
+ userEvents.addPageEvent("Opened modal", {
3401
+ actionType: "open",
3402
+ label: `${modalType}Modal`
3403
+ });
3367
3404
  setActiveModal(modalType);
3368
3405
  };
3369
3406
  const closeModal = () => {
3407
+ if (activeModal) {
3408
+ userEvents.addPageEvent("Closed modal", {
3409
+ actionType: "close",
3410
+ label: `${activeModal}Modal`
3411
+ });
3412
+ }
3370
3413
  setActiveModal(null);
3371
3414
  };
3372
3415
  const modalAriaLabelMap = {
@@ -3418,7 +3461,7 @@ function UboQuestionnaire(props) {
3418
3461
  errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, i18n)
3419
3462
  }
3420
3463
  ),
3421
- formUtils.isRequiredField("isNomineeDirector") && data?.isDirector === "yes" && /* @__PURE__ */ jsx(
3464
+ formUtils.isRequiredField("isNomineeDirector") && data?.isDirector === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
3422
3465
  GuidanceQuestion,
3423
3466
  {
3424
3467
  name: "isNomineeDirector",
@@ -3440,7 +3483,7 @@ function UboQuestionnaire(props) {
3440
3483
  errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, i18n)
3441
3484
  }
3442
3485
  ),
3443
- formUtils.isRequiredField("isNomineeShareholder") && data?.isOwner === "yes" && /* @__PURE__ */ jsx(
3486
+ formUtils.isRequiredField("isNomineeShareholder") && data?.isOwner === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
3444
3487
  GuidanceQuestion,
3445
3488
  {
3446
3489
  name: "isNomineeShareholder",
@@ -3525,12 +3568,14 @@ const proofOfRelationshipFormID = individualOnfidoForms.proofOfRelationship.form
3525
3568
  const LIVE_SELFIE_ERROR_CODE = "2_8210";
3526
3569
  function IndividualOnfido(props) {
3527
3570
  const { i18n } = useI18nContext();
3571
+ const userEvents = useAnalyticsContext();
3528
3572
  const {
3529
3573
  form: { errors, valid, fieldProblems: fieldValidationErrors, handleChangeFor, setFormData }
3530
3574
  } = useFormContext();
3531
3575
  const { setFormIndex } = useFormRouterContext();
3532
3576
  const { isExperimentEnabled } = useExperimentsContext();
3533
3577
  const isGuidedDecisionMakersFlowEnabled = isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow");
3578
+ const isGuidedDecisionMakersFlowDisabled = isExperimentEnabled("DisableGuidedDecisionMakersFlow");
3534
3579
  const [isDecisionMakerNotRequiredModalOpen, setIsDecisionMakerNotRequiredModalOpen] = useState(false);
3535
3580
  const {
3536
3581
  activeForm: propActiveForm,
@@ -3560,8 +3605,12 @@ function IndividualOnfido(props) {
3560
3605
  if (!data?.signatoryQuestionnaire && !data?.uboQuestionnaire) return;
3561
3606
  const { signatoryQuestionnaire, uboQuestionnaire } = data;
3562
3607
  const isDirectorApplicable = uboQuestionnaireFormProps?.requiredFields?.includes("isDirector");
3563
- const isNotRequired = signatoryQuestionnaire && uboQuestionnaire && signatoryQuestionnaire?.isSignatory === "no" && uboQuestionnaire?.isOwner === "no" && uboQuestionnaire?.isControllingPerson === "no" && (!isDirectorApplicable || uboQuestionnaire?.isDirector === "no");
3608
+ const isNotRequired = signatoryQuestionnaire && uboQuestionnaire && signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.NO && uboQuestionnaire?.isOwner === GuidanceQuestionValues.NO && uboQuestionnaire?.isControllingPerson === GuidanceQuestionValues.NO && (!isDirectorApplicable || uboQuestionnaire?.isDirector === GuidanceQuestionValues.NO);
3564
3609
  if (isNotRequired) {
3610
+ userEvents.addPageEvent("Opened modal", {
3611
+ actionType: "open",
3612
+ label: "personalInfoNotNeeded"
3613
+ });
3565
3614
  setIsDecisionMakerNotRequiredModalOpen(true);
3566
3615
  } else {
3567
3616
  onNext?.();
@@ -3575,10 +3624,18 @@ function IndividualOnfido(props) {
3575
3624
  }
3576
3625
  }, [propActiveForm, setNextHandler, data]);
3577
3626
  const handleCloseModalAndGoBack = () => {
3627
+ userEvents.addPageEvent("Closed modal", {
3628
+ actionType: "close",
3629
+ label: "personalInfoNotNeeded"
3630
+ });
3578
3631
  setIsDecisionMakerNotRequiredModalOpen(false);
3579
3632
  handleHomeClick?.();
3580
3633
  };
3581
3634
  const handleCloseModalAndChangeAnswers = () => {
3635
+ userEvents.addPageEvent("Clicked button", {
3636
+ actionType: "cancel",
3637
+ label: `personalInfoNotNeeded`
3638
+ });
3582
3639
  setIsDecisionMakerNotRequiredModalOpen(false);
3583
3640
  };
3584
3641
  const gotoFormByFormId = (formId) => {
@@ -3598,14 +3655,20 @@ function IndividualOnfido(props) {
3598
3655
  const capabilities = useCapabilities();
3599
3656
  const newRoles = useMemo(() => calculateRoles(data), [data]);
3600
3657
  useEffect(() => {
3601
- if (isGuidedDecisionMakersFlowEnabled) {
3658
+ if (!isGuidedDecisionMakersFlowDisabled && isGuidedDecisionMakersFlowEnabled) {
3602
3659
  const currentRoles = data?.basicDetails?.role ?? [];
3603
3660
  if (areArraysDifferent(newRoles, currentRoles)) {
3604
3661
  const basicDetailsData = data?.basicDetails ?? {};
3605
3662
  setFormData("basicDetails", { ...basicDetailsData, role: newRoles });
3606
3663
  }
3607
3664
  }
3608
- }, [newRoles, data?.basicDetails, setFormData, isGuidedDecisionMakersFlowEnabled]);
3665
+ }, [
3666
+ newRoles,
3667
+ data?.basicDetails,
3668
+ setFormData,
3669
+ isGuidedDecisionMakersFlowDisabled,
3670
+ isGuidedDecisionMakersFlowEnabled
3671
+ ]);
3609
3672
  const hasMotionCaptureScenarioValue = hasMotionCaptureScenario?.value;
3610
3673
  useEffect(() => {
3611
3674
  setShowIndividualMotionCapture(
@@ -3821,7 +3884,7 @@ const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEn
3821
3884
  {
3822
3885
  country: individualOnfido.additionalPersonalDetails.country,
3823
3886
  number: individualOnfido.additionalPersonalDetails.idNumber,
3824
- type: individualOnfido.additionalPersonalDetails.typeOfIdentity
3887
+ type: individualOnfido.additionalPersonalDetails.typeOfIdentity.toUpperCase()
3825
3888
  }
3826
3889
  ];
3827
3890
  }
@@ -3938,7 +4001,7 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
3938
4001
  }
3939
4002
  if (isRoleFieldNeeded && individualOnfido.signatoryQuestionnaire && individualOnfido.uboQuestionnaire) {
3940
4003
  const associationTypes = new Set(associations.map((ea) => ea.type));
3941
- const hasAssociation = (type) => associationTypes.has(type) ? "yes" : "no";
4004
+ const hasAssociation = (type) => associationTypes.has(type) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
3942
4005
  individualOnfido.signatoryQuestionnaire.isSignatory = hasAssociation(
3943
4006
  DecisionMakerType.SIGNATORY
3944
4007
  );
@@ -3947,7 +4010,7 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
3947
4010
  DecisionMakerType.CONTROLLING_PERSON
3948
4011
  );
3949
4012
  individualOnfido.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerType.DIRECTOR);
3950
- const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? "yes" : "no";
4013
+ const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
3951
4014
  individualOnfido.uboQuestionnaire.isNomineeDirector = hasNomineeAssociation(
3952
4015
  DecisionMakerType.DIRECTOR
3953
4016
  );
@@ -4195,6 +4258,7 @@ function IndividualOnfidoDropin({
4195
4258
  const { isSettingEnabled } = useSettingsContext();
4196
4259
  const queryClient = useQueryClient();
4197
4260
  const isGuidedDecisionMakersFlowEnabled = isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow");
4261
+ const isGuidedDecisionMakersFlowDisabled = isExperimentEnabled("DisableGuidedDecisionMakersFlow");
4198
4262
  const defaultCountry = "NL";
4199
4263
  const { data: providerStatus } = useProviderStatus({
4200
4264
  providers: ["idDocument"],
@@ -4518,7 +4582,7 @@ function IndividualOnfidoDropin({
4518
4582
  ...existingEntityAssociations.filter((ea) => ea.legalEntityId !== legalEntity.id) || []
4519
4583
  ]
4520
4584
  };
4521
- const nomineeDataSource = isGuidedDecisionMakersFlowEnabled ? dataSubmitted?.uboQuestionnaire : dataSubmitted.basicDetails;
4585
+ const nomineeDataSource = !isGuidedDecisionMakersFlowDisabled && isGuidedDecisionMakersFlowEnabled ? dataSubmitted?.uboQuestionnaire : dataSubmitted.basicDetails;
4522
4586
  if (nomineeDataSource && updatedParentLegalEntity.entityAssociations) {
4523
4587
  updatedParentLegalEntity.entityAssociations = updatedParentLegalEntity.entityAssociations.map(
4524
4588
  (ea) => attachNomineeToRole(ea, country, nomineeDataSource)
@@ -4691,7 +4755,7 @@ function IndividualOnfidoDropin({
4691
4755
  }
4692
4756
  }
4693
4757
  if (summaryData?.signatoryQuestionnaire) {
4694
- summaryData.signatoryQuestionnaire = data?.signatoryQuestionnaire?.isSignatory === "yes" ? [i18n.get("signatorySummaryLabel")] : [];
4758
+ summaryData.signatoryQuestionnaire = data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES ? [i18n.get("signatorySummaryLabel")] : [];
4695
4759
  }
4696
4760
  if (summaryData?.uboQuestionnaire) {
4697
4761
  const roleFieldToLabelMap = {
@@ -4700,7 +4764,7 @@ function IndividualOnfidoDropin({
4700
4764
  isDirector: "directorSummaryLabel"
4701
4765
  };
4702
4766
  summaryData.uboQuestionnaire = Object.keys(roleFieldToLabelMap).flatMap(
4703
- (field) => data?.uboQuestionnaire?.[field] === "yes" ? [i18n.get(roleFieldToLabelMap[field])] : []
4767
+ (field) => data?.uboQuestionnaire?.[field] === GuidanceQuestionValues.YES ? [i18n.get(roleFieldToLabelMap[field])] : []
4704
4768
  );
4705
4769
  }
4706
4770
  return summaryData;