@adyen/kyc-components 4.30.0 → 4.31.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 (284) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-CWWWUerA.js → AcceptTermsOfServiceWorkflow-BOmFS_f2.js} +4 -4
  2. package/dist/{Accordion-S_jsZpAF.js → Accordion-C0gcRu_3.js} +1 -1
  3. package/dist/{AccountSetupRejected-C4OsabS9.js → AccountSetupRejected-CJ8m2ewF.js} +1 -1
  4. package/dist/{AdaptiveWorkflow-S2GeT5qn.js → AdaptiveWorkflow-B-oqoHeb.js} +28 -26
  5. package/dist/{AdaptiveWorkflowComponent-C4oTF9yd.js → AdaptiveWorkflowComponent-e4G7C8R2.js} +59 -100
  6. package/dist/{Address-DDgwHNJf.js → Address-CrSN0Tzc.js} +10 -10
  7. package/dist/{AddressFieldGroup-WEGTyvkH.js → AddressFieldGroup-Db1QLqMr.js} +6 -6
  8. package/dist/{Avatar-BJuZToXf.js → Avatar-DTJuz0ck.js} +1 -1
  9. package/dist/{BusinessFinancingDropin-B7AYovvB.js → BusinessFinancingDropin-DTz8n3Ww.js} +28 -28
  10. package/dist/{BusinessFinancingPage-BtF5XDxw.js → BusinessFinancingPage-C5lmo9pM.js} +30 -30
  11. package/dist/{BusinessRegistrationNumberField-CxTbBtPY.js → BusinessRegistrationNumberField-tL50O1WX.js} +5 -5
  12. package/dist/{BusinessRegistrationNumberFieldGroup-DGqg0-CN.js → BusinessRegistrationNumberFieldGroup-BUiYV6Uu.js} +5 -5
  13. package/dist/{BusinessTypeSelectionPage-Co_HiNtN.js → BusinessTypeSelectionPage-B5De7rfw.js} +14 -14
  14. package/dist/{Button-vp4Z9L5X.js → Button-DWI7t80R.js} +1 -1
  15. package/dist/{Checkbox-sLYY_7rw.js → Checkbox-JHnvTPme.js} +2 -2
  16. package/dist/{CheckboxField-DnXPfhn-.js → CheckboxField-DXFOPJrL.js} +3 -3
  17. package/dist/{ComponentGroup-D9qbj9S4.js → ComponentGroup-DwE_5uMn.js} +2 -2
  18. package/dist/{ConstitutionalDocument-bi1jXr7Y.js → ConstitutionalDocument-GafuUs3Y.js} +51 -513
  19. package/dist/{ContactDetails-0iFvuqMf.js → ContactDetails-cOh28MdB.js} +5 -5
  20. package/dist/{ContextGuidance-DCR6CiDu.js → ContextGuidance-U6wXQ-Ch.js} +2 -2
  21. package/dist/{CountryField-CNHNl66N.js → CountryField-DZmQcAi-.js} +4 -4
  22. package/dist/{Currency-BGgGN-46.js → Currency-CyQoyBs9.js} +7 -7
  23. package/dist/{CustomerSupport-Db77ed_U.js → CustomerSupport-CbTT3DAY.js} +17 -17
  24. package/dist/{DateField-B0KBFo2X.js → DateField-DQfDHqGW.js} +4 -4
  25. package/dist/{DebugModal-4mydgFnH.js → DebugModal-DEeDJsLE.js} +11 -11
  26. package/dist/{DecisionMakerDetails-Pjs0fWLW.js → DecisionMakerDetails-BhgwAr3w.js} +15 -15
  27. package/dist/{DecisionMakerDetailsPage-DJAOahfC.js → DecisionMakerDetailsPage-zpiPnMIY.js} +11 -11
  28. package/dist/{DecisionMakers-nWpN0PBp.js → DecisionMakers-vCoPfum5.js} +20 -20
  29. package/dist/{Dropzone-DhE_OS1B.js → Dropzone-CnJdk_vt.js} +7 -7
  30. package/dist/{EmailField-DZSAhb9E.js → EmailField-Lyqy_ECa.js} +4 -4
  31. package/dist/{EmbeddedStatus-CcpWHXh2.js → EmbeddedStatus-CeEHfc6_.js} +1 -1
  32. package/dist/{EndStateLayout-BOwRY9BY.js → EndStateLayout-Cimb5t8g.js} +2 -2
  33. package/dist/{EntityAssociation-Bc4hELRD.js → EntityAssociation-BnEWmsAe.js} +5 -5
  34. package/dist/{ErrorPanel-IxCFwWiH.js → ErrorPanel-Bt2zTiVE.js} +4 -4
  35. package/dist/{GlobalEntryModal-CFuPhARY.js → GlobalEntryModal-D3KEdn1-.js} +168 -223
  36. package/dist/{GlobalEntryPage-C6sVz-_2.js → GlobalEntryPage-sUKU-Btr.js} +8 -8
  37. package/dist/{Icon-BUUfrhKE.js → Icon-De8AgnGr.js} +1 -1
  38. package/dist/{IdentityNumber-BXEyoxAP.js → IdentityNumber-BNTInuKv.js} +4 -4
  39. package/dist/{IdentityNumberFieldGroup-DNrfFdHD.js → IdentityNumberFieldGroup-BEznv21B.js} +2 -2
  40. package/dist/{IdentityScreeningWorkflow-Do7K-PMQ.js → IdentityScreeningWorkflow-DhgqWJPy.js} +13 -13
  41. package/dist/{IndividualDropin-B5-uplEa.js → IndividualDropin-EajqrO6O.js} +42 -42
  42. package/dist/{IndustryCodeFieldGroup-BE7ATsMh.js → IndustryCodeFieldGroup-BiKWrwG_.js} +5 -5
  43. package/dist/{InputDate-N1IkNng2.js → InputDate-ByJHx9x7.js} +1 -1
  44. package/dist/{Introduction-C7Wys5IW.js → Introduction-BsL57nta.js} +8 -8
  45. package/dist/{InvitedDecisionMakerComponent-DZwCUtav.js → InvitedDecisionMakerComponent-D1-Ul-td.js} +65 -65
  46. package/dist/{JpAddress-B34ycvlA.js → JpAddress-CvS6Innz.js} +8 -8
  47. package/dist/{LegalCompanyNameField-wP-dBOg_.js → LegalCompanyNameField-D9idZiSu.js} +11 -11
  48. package/dist/{LegalRepresentativeDetailsPage-CeaeYzbN.js → LegalRepresentativeDetailsPage-J2GXSkXd.js} +6 -6
  49. package/dist/{Link-k2lK2k_D.js → Link-CHOUFKjC.js} +1 -1
  50. package/dist/{ListItem-x7YV4uwv.js → ListItem-DRm59KnY.js} +2 -2
  51. package/dist/{Name-CqnlZ0s1.js → Name-BBqe5gUi.js} +3 -3
  52. package/dist/{NumberField-CmlNKCtC.js → NumberField-Cfuo-rcN.js} +4 -4
  53. package/dist/{PatriotActDisclosure-DrzLipYG.js → PatriotActDisclosure-oAXYq-jJ.js} +10 -10
  54. package/dist/{PayoutDetailsDropin-C4k7hSiO.js → PayoutDetailsDropin-BDoB1gy1.js} +29 -29
  55. package/dist/{PayoutDetailsPage-B0l5h-tk.js → PayoutDetailsPage-Cc4_w-2-.js} +6 -6
  56. package/dist/{PhoneField-CSi9JPJ1.js → PhoneField-ARTyYgWE.js} +4 -4
  57. package/dist/{PhoneNumberFieldGroup-9SNt3GXi.js → PhoneNumberFieldGroup-DDvtSVKb.js} +4 -4
  58. package/dist/{RadioGroup-BNp0YodN.js → RadioGroup-T3-GTf8S.js} +2 -2
  59. package/dist/{Review-BekwQ1-b.js → Review-D36nTWUI.js} +5 -5
  60. package/dist/{RootBusinessDetailsPage-DkyTEqWb.js → RootBusinessDetailsPage-B3qjeFPi.js} +5 -5
  61. package/dist/{RootBusinessLinesPage-CPui_QJm.js → RootBusinessLinesPage-DQvrpX3J.js} +24 -24
  62. package/dist/{RootIndividualDetailsPage-DB2nBPZh.js → RootIndividualDetailsPage-Cp2Ai1KA.js} +8 -8
  63. package/dist/{Select-BYM1s0SR.js → Select-CffvApST.js} +4 -4
  64. package/dist/{SignPCIComponent-95iGCFka.js → SignPCIComponent-BpHbgE2T.js} +66 -66
  65. package/dist/{SingpassSelection-ByICeafs.js → SingpassSelection-DRtQir20.js} +5 -5
  66. package/dist/{SingpassSelectionCTA-QVI_SPnZ.js → SingpassSelectionCTA-Cbpk58xO.js} +1 -1
  67. package/dist/{SoleProprietorshipPage-BDCARnz8.js → SoleProprietorshipPage-DsIiNL8Z.js} +6 -6
  68. package/dist/{SourceOfFundsPage-DNOtZApe.js → SourceOfFundsPage-CjxfL8ku.js} +24 -24
  69. package/dist/{SourceOfFundsWorkflow-DoUV5kuZ.js → SourceOfFundsWorkflow-DPzP1fYl.js} +4 -4
  70. package/dist/{StateField-pfHJ3wc0.js → StateField-rhYSRgPZ.js} +4 -4
  71. package/dist/{Step-BDdVAaUB.js → Step-CeSDDtx8.js} +3 -3
  72. package/dist/{Summary-BGJg2N2d.js → Summary-BOPZrv9-.js} +1 -1
  73. package/dist/{SummarySection-B8UrHjRz.js → SummarySection-DN7RIchf.js} +3 -3
  74. package/dist/{Task-D9pMZvHp.js → Task-CTvFHTXf.js} +7 -7
  75. package/dist/{TaskGroup-BGomYm3T.js → TaskGroup-sR-LK6Gh.js} +2 -2
  76. package/dist/{TaskListItem-Cf0xjUUF.js → TaskListItem-DxM_5HTL.js} +9 -9
  77. package/dist/{TaskStepperContextProvider-BsSwuAhK.js → TaskStepperContextProvider-Dbvk2y8P.js} +1 -1
  78. package/dist/{TaskVerificationStatus-CD4crHO5.js → TaskVerificationStatus-C0upgyS1.js} +1 -1
  79. package/dist/{TaxInformationField-BzIH2FfA.js → TaxInformationField-DHhqCF-a.js} +7 -7
  80. package/dist/{TaxInformationFieldGroup-BiThmZhY.js → TaxInformationFieldGroup-BkILOY2x.js} +6 -6
  81. package/dist/{TaxReportingDropin-zPF3kMOR.js → TaxReportingDropin-C46YV9Pt.js} +16 -16
  82. package/dist/{TaxReportingWorkflow-Do0HKfIR.js → TaxReportingWorkflow-BxbzI9wn.js} +4 -4
  83. package/dist/{TermsOfServiceManagement-C8FAXlkm.js → TermsOfServiceManagement-B2mg-L7j.js} +67 -67
  84. package/dist/{TextArea-DMdihMip.js → TextArea-CCKQviRj.js} +3 -3
  85. package/dist/{TextField-BVvG-P7B.js → TextField-73k__CfA.js} +5 -5
  86. package/dist/{TrustDetailsPage-BcJoXRJs.js → TrustDetailsPage-Rv4wBxcB.js} +30 -29
  87. package/dist/{TrustMemberCompanyPage-CvieeIw3.js → TrustMemberCompanyPage-DGTDSWRR.js} +8 -8
  88. package/dist/{TrustMemberIndividualPage-DPzyZI6B.js → TrustMemberIndividualPage-Dv2HZY_Y.js} +7 -7
  89. package/dist/{TrustMemberRoleAndTypePage-CeCah30G.js → TrustMemberRoleAndTypePage-Dj4BEAMc.js} +23 -23
  90. package/dist/{TrustMembersOverview-BrOqQ46k.js → TrustMembersOverview-lBitwE7J.js} +18 -18
  91. package/dist/{UboTaskItem-tNvXCuPv.js → UboTaskItem-C7VS_u2t.js} +7 -7
  92. package/dist/{UnincorporatedPartnershipIndividualPage-BPrZeROd.js → UnincorporatedPartnershipIndividualPage-Bsp72pvV.js} +6 -6
  93. package/dist/{UnincorporatedPartnershipMemberCompanyPage-VXyg0_m_.js → UnincorporatedPartnershipMemberCompanyPage-CQV1W0Il.js} +7 -7
  94. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dpa9Inis.js → UnincorporatedPartnershipMemberRoleAndTypePage-zQvIwB1w.js} +11 -11
  95. package/dist/{UnincorporatedPartnershipMembersOverview-CdfTYswG.js → UnincorporatedPartnershipMembersOverview-BJmgOOCC.js} +9 -9
  96. package/dist/UpgradeWorkflowHarness-C6zNyNAY.js +343 -0
  97. package/dist/VatNumberField-DB8m0wwV.js +91 -0
  98. package/dist/{VerificationErrorAlert-Bz_3OAd2.js → VerificationErrorAlert-JMzuKRFg.js} +2 -2
  99. package/dist/{WebsiteField-hmouBO45.js → WebsiteField-BO3zqIoa.js} +5 -5
  100. package/dist/{Workflow-DBQJmngz.js → Workflow-CSl5dEle.js} +6 -6
  101. package/dist/WorkflowContextProvider-DeYgs5wy.js +50 -0
  102. package/dist/{accountHolderUtils-CXc6TCt3.js → accountHolderUtils-DZRQLXkt.js} +15 -5
  103. package/dist/adyen-business-financing.js +56 -56
  104. package/dist/adyen-individual-configuration.js +57 -57
  105. package/dist/adyen-individual-status.js +30 -30
  106. package/dist/adyen-invited-decision-maker.js +3 -3
  107. package/dist/adyen-onboarding.js +116 -83
  108. package/dist/adyen-terms-of-service-management.js +3 -3
  109. package/dist/adyen-terms-of-service-status.js +28 -28
  110. package/dist/adyen-transfer-instrument-configuration.js +56 -56
  111. package/dist/adyen-transfer-instrument-management.js +61 -61
  112. package/dist/adyen-verification-status.js +3 -3
  113. package/dist/{bafinUtils-B_pmmlnO.js → bafinUtils-vl0iX269.js} +13 -13
  114. package/dist/{bg-BG-CzXoDIev.js → bg-BG-Bs9UD_76.js} +1 -2
  115. package/dist/{bg-BG-DebonNJt.js → bg-BG-g5L9hXxZ.js} +2 -2
  116. package/dist/{constants-DejfEMlT.js → constants-_ugo8V-_.js} +4 -4
  117. package/dist/{cs-CZ-JUprtMsH.js → cs-CZ-BT362m-5.js} +1 -2
  118. package/dist/cs-CZ-DbEK00TR.js +7 -0
  119. package/dist/{da-DK-D2RrHm98.js → da-DK-94-4BlJ1.js} +1 -2
  120. package/dist/da-DK-DbPVTdZA.js +7 -0
  121. package/dist/de-DE-D6FSbvz5.js +7 -0
  122. package/dist/{de-DE-o8i-cfnA.js → de-DE-jfNFZmBX.js} +1 -2
  123. package/dist/{decisionMakerRoles-DA8MK9Dh.js → decisionMakerRoles-C7nyyNlQ.js} +2 -2
  124. package/dist/{dropinUtils-B2xvCIno.js → dropinUtils-Cg5l88N-.js} +8 -8
  125. package/dist/{el-GR-B1hmNhai.js → el-GR-BRGYMKtU.js} +2 -2
  126. package/dist/{el-GR-BAhj1djs.js → el-GR-D6PNRFM6.js} +1 -2
  127. package/dist/{en-US-CO9xzDL5.js → en-US-C2SKoh7u.js} +7 -1
  128. package/dist/en-US-CrZ7wUat.js +7 -0
  129. package/dist/{en-US-B7V_rOZV.js → en-US-CyWOSDHS.js} +8 -1
  130. package/dist/{en-US-7Uo1OcXR.js → en-US-DF69ko1f.js} +2 -1
  131. package/dist/{entityAssociationUtil-BlfcBl3i.js → entityAssociationUtil-CRDwmwij.js} +1 -1
  132. package/dist/{error-Bjcwqp65.js → error-Bbj8Nvxz.js} +2 -2
  133. package/dist/{es-ES-BNjxmV8Q.js → es-ES-DHaG98qJ.js} +1 -2
  134. package/dist/es-ES-DqBZFIGq.js +7 -0
  135. package/dist/{es-LA-BIPVrwXX.js → es-LA-BaTWuGkU.js} +1 -2
  136. package/dist/es-LA-BuqtxO_H.js +7 -0
  137. package/dist/et-EE-CWVrHqpJ.js +7 -0
  138. package/dist/{et-EE-Dl6n-Am8.js → et-EE-Cfy8GsHl.js} +1 -2
  139. package/dist/{fi-FI-T33BAikx.js → fi-FI-1hQjycvC.js} +1 -2
  140. package/dist/fi-FI-BREWmeq-.js +7 -0
  141. package/dist/fieldConfig-BeA7aDHu.js +493 -0
  142. package/dist/{fieldConfig-uzagYJgr.js → fieldConfig-D_ze4riX.js} +2 -2
  143. package/dist/{formatDataForSummary-BEqe_mIp.js → formatDataForSummary-BwkDgVr0.js} +14 -14
  144. package/dist/{formatValidationError-Dq1117uY.js → formatValidationError-BZ3p6URt.js} +1 -1
  145. package/dist/{fr-FR-CXeNPDQd.js → fr-FR-B-v9MOMJ.js} +2 -2
  146. package/dist/{fr-FR-CRO4taJU.js → fr-FR-Cr8g5esP.js} +1 -2
  147. package/dist/{getDefaultRegistrationNumberType-DRhp_dwJ.js → getDefaultRegistrationNumberType-ZPxQo0qi.js} +4 -4
  148. package/dist/{getFormSlice-BgJ8RcQi.js → getFormSlice-B-mNQVjl.js} +2 -2
  149. package/dist/{getName-Cii7OyRd.js → getName-Cp2NR9mO.js} +1 -1
  150. package/dist/{getProblemsForEntity-DcaoqelX.js → getProblemsForEntity-CC3MwC_t.js} +3 -3
  151. package/dist/{getTrustedDecisionMakers-Bnta4qQy.js → getTrustedDecisionMakers-DuvbxMfO.js} +1 -1
  152. package/dist/{getValidationError-CZ_yHMCc.js → getValidationError-vaT_A8DZ.js} +1 -1
  153. package/dist/{handleCompanyDataset-Dbqw3gJA.js → handleCompanyDataset-DapZoTWA.js} +1 -1
  154. package/dist/{hr-HR-CbEXwWeO.js → hr-HR-DutOZxI6.js} +1 -2
  155. package/dist/hr-HR-XfLd6Unz.js +7 -0
  156. package/dist/{hu-HU-B9JCbRow.js → hu-HU-D2tnSSHX.js} +1 -2
  157. package/dist/hu-HU-kGMN_cUC.js +7 -0
  158. package/dist/{invalidateRootLegalEntity-CGVbKyHP.js → invalidateRootLegalEntity-GCb1IVpG.js} +1 -1
  159. package/dist/{it-IT-tRPXH6lL.js → it-IT-DHPpjEW5.js} +2 -2
  160. package/dist/{it-IT-DE_Dkl_X.js → it-IT-T1oxWO_8.js} +1 -2
  161. package/dist/ja-JP-FF6js874.js +7 -0
  162. package/dist/{ja-JP-BaD-vLXo.js → ja-JP-OwVmVzBT.js} +1 -2
  163. package/dist/lt-LT-8EaiWMuc.js +7 -0
  164. package/dist/{lt-LT-5OY6az4F.js → lt-LT-CMPaSRJP.js} +1 -2
  165. package/dist/lv-LV-BtlmePQP.js +7 -0
  166. package/dist/{lv-LV-DjAUG4pi.js → lv-LV-kV4YvLbr.js} +1 -2
  167. package/dist/{mapAddressLocalizationToJpAddressSchema-BJYqPUdi.js → mapAddressLocalizationToJpAddressSchema-TVdxkgeI.js} +2 -2
  168. package/dist/{mapTransferInstrumentToPayoutAccount-DjhuDoHf.js → mapTransferInstrumentToPayoutAccount-gnaahuyt.js} +2 -2
  169. package/dist/{nl-NL-C3cXv5PD.js → nl-NL-BKKrxXgX.js} +1 -2
  170. package/dist/nl-NL-DrlRcYtb.js +7 -0
  171. package/dist/no-NO-BP1C84Xm.js +7 -0
  172. package/dist/{no-NO-DyMlgewS.js → no-NO-Bnaxpdi9.js} +1 -2
  173. package/dist/{pl-PL-ClUTW9pd.js → pl-PL-CH45L3wZ.js} +1 -2
  174. package/dist/pl-PL-sert1luk.js +7 -0
  175. package/dist/{processCapabilities-CutEW5Qr.js → processCapabilities-CPLNSNGJ.js} +3 -1
  176. package/dist/{processValidationErrors-UKpdxcdP.js → processValidationErrors-DZQP1rOu.js} +4 -4
  177. package/dist/pt-BR-Dgep8Iig.js +7 -0
  178. package/dist/{pt-BR-Bk2xOhdi.js → pt-BR-IssZVQBa.js} +1 -2
  179. package/dist/pt-PT-CLZ7sArD.js +7 -0
  180. package/dist/{pt-PT-5O7ohkQD.js → pt-PT-Cw30Oeni.js} +1 -2
  181. package/dist/{registerEmbed-CB38-4Qc.js → registerEmbed-By-mMjLz.js} +53 -46
  182. package/dist/ro-RO-CdF6jNH_.js +7 -0
  183. package/dist/{ro-RO-BOV_LMAu.js → ro-RO-Cj6ecr81.js} +1 -2
  184. package/dist/{roleMetadata-2KdSNgp2.js → roleMetadata-Vi3bD0If.js} +2 -2
  185. package/dist/{sk-SK-BUGTKkOC.js → sk-SK-C26VGn8D.js} +1 -2
  186. package/dist/sk-SK-DE2IMutK.js +7 -0
  187. package/dist/{sl-SI-DffYWi9P.js → sl-SI-B-_Pi92n.js} +1 -2
  188. package/dist/sl-SI-CH_4-fxJ.js +7 -0
  189. package/dist/sv-SE-BzKAgv9l.js +7 -0
  190. package/dist/{sv-SE-D_bagacj.js → sv-SE-dsMtqJhC.js} +1 -2
  191. package/dist/{taskTypes-3vSkMBDm.js → taskTypes-DIxF6w12.js} +3 -2
  192. package/dist/types/adaptiveWorkflow/component-registry.d.ts +3 -0
  193. package/dist/types/adaptiveWorkflow/components/Fields/VatNumberField/VatNumberField.d.ts +8 -0
  194. package/dist/types/adaptiveWorkflow/components/Fields/VatNumberField/contextMap.d.ts +19 -0
  195. package/dist/types/adaptiveWorkflow/context/FormSubmissionContext/implementations/RemediationSubmissionProvider.d.ts +9 -0
  196. package/dist/types/api/address/useAddressCleanse.d.ts +2 -2
  197. package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
  198. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
  199. package/dist/types/api/legalEntity/useLegalEntity.d.ts +1 -0
  200. package/dist/types/api/transferInstruments/accountIdentification.types.d.ts +1 -4
  201. package/dist/types/components/Business/forms/rules.d.ts +1 -0
  202. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +1 -2
  203. package/dist/types/components/EFP/upgradeFlow/UpgradeWorkflowHarness.d.ts +6 -0
  204. package/dist/types/components/EFP/upgradeFlow/hooks/useUpgradeWorkflowState.d.ts +6 -0
  205. package/dist/types/components/EFP/upgradeFlow/logic/issues/missingOrganizationTaxInfo.d.ts +2 -0
  206. package/dist/types/components/EFP/upgradeFlow/logic/models/accessors.d.ts +6 -0
  207. package/dist/types/components/EFP/upgradeFlow/logic/models/issueDef.d.ts +16 -0
  208. package/dist/types/components/EFP/upgradeFlow/logic/models/mutators.d.ts +4 -0
  209. package/dist/types/components/EFP/upgradeFlow/logic/models/remediationDef.d.ts +26 -0
  210. package/dist/types/components/EFP/upgradeFlow/logic/models/workflow.d.ts +35 -0
  211. package/dist/types/components/EFP/upgradeFlow/logic/remediations/provideOrganizationTaxInfo.d.ts +9 -0
  212. package/dist/types/components/EFP/upgradeFlow/logic/resolveWorkflow.d.ts +9 -0
  213. package/dist/types/components/EFP/upgradeFlow/logic/workflows/businessBankAccountUpgradeWorkflow.d.ts +2 -0
  214. package/dist/types/components/EFP/upgradeFlow/utils/canUseBbaUpgradeFlow.d.ts +5 -0
  215. package/dist/types/components/EFP/upgradeFlow/utils/findMatchingProblems.d.ts +10 -0
  216. package/dist/types/components/EFP/upgradeFlow/utils/makeInstanceId.d.ts +2 -0
  217. package/dist/types/components/EFP/upgradeFlow/utils/mapExistingDataToProperties.d.ts +6 -0
  218. package/dist/types/components/EmbeddedDropins/AdaptiveWorkflowComponent/AdaptiveWorkflowComponent.d.ts +1 -2
  219. package/dist/types/components/GlobalEntry/constants.d.ts +27 -2
  220. package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +1 -2
  221. package/dist/types/components/GlobalEntry/utils/globalEntryState.d.ts +52 -0
  222. package/dist/types/components/GlobalEntry/utils/utils.d.ts +0 -6
  223. package/dist/types/components/Shared/fields/Address/utils.d.ts +1 -1
  224. package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +1 -1
  225. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -0
  226. package/dist/types/context/ToggleContext/types.d.ts +9 -0
  227. package/dist/types/embeds/upgrade-flow/adyen-upgrade-flow.d.ts +2 -0
  228. package/dist/types/embeds/upgrade-flow/adyen-upgrade-flow.types.d.ts +39 -0
  229. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
  230. package/dist/types/router/routeConfig.d.ts +1 -0
  231. package/dist/types/stores/globalStore/taskTypes.d.ts +1 -0
  232. package/dist/types/utils/accountHolderUtils.d.ts +5 -0
  233. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  234. package/dist/types/utils/idGenerator.d.ts +1 -0
  235. package/dist/{unincorporatedPartnership-CmafpKdG.js → unincorporatedPartnership-CAk8NeRm.js} +8 -8
  236. package/dist/{useBusinessDetailsData-ugUqj9kJ.js → useBusinessDetailsData-B1YLuaNg.js} +205 -170
  237. package/dist/{useCanSeeIntroduction-DEbDOHiC.js → useCanSeeIntroduction-I5nRjoyf.js} +3 -3
  238. package/dist/{useDataMissingRemediations-CiDQ9bWs.js → useDataMissingRemediations-BQsN40Ut.js} +2 -2
  239. package/dist/{useForm-B2wfliMN.js → useForm-CgIbTSF-.js} +3 -3
  240. package/dist/{useHideTaskStepper-BEWEJlrj.js → useHideTaskStepper-NxGjx00F.js} +1 -1
  241. package/dist/{useId-Csq0yceQ.js → useId-DjQsMwwn.js} +3 -3
  242. package/dist/{useLegalEntity-XmloSXdF.js → useLegalEntity-BlicSpoi.js} +2 -2
  243. package/dist/{useNavigate-DXpJ9PZ_.js → useNavigate-CNujUq3N.js} +40 -35
  244. package/dist/{useSalesChannels-DbCmR2ZX.js → useSalesChannels-eKBtWAVg.js} +1 -1
  245. package/dist/{useSaveForLater-DnHbnXCZ.js → useSaveForLater-BrR6SF98.js} +4 -4
  246. package/dist/{useTaskLandedEvent-DwKrUHAw.js → useTaskLandedEvent-B4N0fDSK.js} +1 -1
  247. package/dist/{useTrustMembers--E-NhCCa.js → useTrustMembers-LQOhPauP.js} +6 -6
  248. package/dist/{useUnincorporatedPartnershipMembers-B0McelXe.js → useUnincorporatedPartnershipMembers-CCjQRxvK.js} +6 -6
  249. package/dist/{utils-D0n2UCLl.js → utils-BpgKY4PD.js} +1 -1
  250. package/dist/{utils-Q_3MQdG-.js → utils-BsHIilEE.js} +2 -2
  251. package/dist/{utils-DTWirvuh.js → utils-Cm852wJo.js} +3 -3
  252. package/dist/{utils-1qkRmosy.js → utils-D_4YJlrA.js} +1 -1
  253. package/dist/{validate-BYH_qNgv.js → validate-B1TzDrrt.js} +12 -21
  254. package/dist/{validate-Fq0C4N4w.js → validate-Bp6T2dvm.js} +3 -3
  255. package/dist/{validate-vDVa_21W.js → validate-DBCoZpYi.js} +1 -1
  256. package/dist/{validate-duA5vubQ.js → validate-DjZ0CLLg.js} +3 -3
  257. package/dist/{validate.formats-BcL4s_mZ.js → validate.formats-CTmLjU1z.js} +1 -14
  258. package/dist/{validateExtractionResult-CKjL85oa.js → validateExtractionResult-BAlwYNgf.js} +1 -1
  259. package/package.json +1 -1
  260. package/dist/cs-CZ-DZw5yF5p.js +0 -7
  261. package/dist/da-DK-Bg5S27B5.js +0 -7
  262. package/dist/de-DE-BlFZCv36.js +0 -7
  263. package/dist/en-US-D4ffwlYG.js +0 -7
  264. package/dist/es-ES-Pc7SzK91.js +0 -7
  265. package/dist/es-LA-CoKhKLd8.js +0 -7
  266. package/dist/et-EE-8p53PPiJ.js +0 -7
  267. package/dist/fi-FI-BKW6_uF2.js +0 -7
  268. package/dist/hr-HR-C1FO7Gqx.js +0 -7
  269. package/dist/hu-HU-BFFHvdsS.js +0 -7
  270. package/dist/ja-JP-Cj0-3WHB.js +0 -7
  271. package/dist/lt-LT-DnZjntxM.js +0 -7
  272. package/dist/lv-LV-DJ5m9APR.js +0 -7
  273. package/dist/nl-NL-C2StlYO8.js +0 -7
  274. package/dist/no-NO-B2PID5rL.js +0 -7
  275. package/dist/pl-PL-BQWqNeBg.js +0 -7
  276. package/dist/pt-BR-Cf9Buwoz.js +0 -7
  277. package/dist/pt-PT-DBxpPLNB.js +0 -7
  278. package/dist/ro-RO-BOoXk4qI.js +0 -7
  279. package/dist/sk-SK-DT4GAvrm.js +0 -7
  280. package/dist/sl-SI-JkM-GOon.js +0 -7
  281. package/dist/sv-SE-Ccuk2Owm.js +0 -7
  282. package/dist/types/utils/isNormalizedStringMatch.d.ts +0 -1
  283. package/dist/types/utils/stripWhitespace.d.ts +0 -1
  284. package/dist/types/utils/toNormalizedString.d.ts +0 -1
@@ -0,0 +1,343 @@
1
+ try {
2
+ let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "17ca3dbe-f269-4279-af08-2dc01eb23556", e._sentryDebugIdIdentifier = "sentry-dbid-17ca3dbe-f269-4279-af08-2dc01eb23556");
4
+ } catch (e) {}
5
+ import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
+ import { P as _rolldown_dynamic_import_helper_default } from "./registerEmbed-By-mMjLz.js";
7
+ import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
+ import { t as Loader } from "./Loader-BDaKGf77.js";
9
+ import { c as useApiContext } from "./http-62p0n9p6.js";
10
+ import { n as getLegalEntity } from "./useLegalEntity-BlicSpoi.js";
11
+ import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
12
+ import { i as noop } from "./genUtils-nphCwt1A.js";
13
+ import { l as workflowDebugInfo } from "./RadioGroup-T3-GTf8S.js";
14
+ import { h as useUpdateLegalEntity } from "./StateField-rhYSRgPZ.js";
15
+ import { AdaptiveWorkflow, n as getNodeType } from "./AdaptiveWorkflow-B-oqoHeb.js";
16
+ import { t as FormSubmissionContext } from "./FormSubmissionContext-DWUaFFo5.js";
17
+ import { t as WorkflowContextProvider } from "./WorkflowContextProvider-DeYgs5wy.js";
18
+ import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
19
+ import { jsx } from "preact/jsx-runtime";
20
+ import { useQueryClient } from "@tanstack/preact-query";
21
+ //#region src/adaptiveWorkflow/context/FormSubmissionContext/implementations/RemediationSubmissionProvider.tsx
22
+ var logger$1 = createLogger();
23
+ function RemediationSubmissionProvider({ remediations, afterSubmit, children }) {
24
+ const { rootLegalEntityId } = useApiContext();
25
+ const updateLegalEntity = useUpdateLegalEntity();
26
+ const mutators = useMemo(() => ({ updateRootLegalEntity: async (payload) => {
27
+ await updateLegalEntity.mutateAsync({
28
+ ...payload,
29
+ id: rootLegalEntityId.value
30
+ });
31
+ } }), [rootLegalEntityId.value, updateLegalEntity]);
32
+ const submitterFor = useCallback((formNode) => async (formValues) => {
33
+ const submissions = [formNode, ...formNode.children ?? []].map(({ path }) => {
34
+ const rem = path ? findRemediationInstance(remediations, path) : void 0;
35
+ if (!rem) return;
36
+ const formData = formValues[path];
37
+ const remediationData = rem.transformFormValues ? rem.transformFormValues(formData) : formData;
38
+ return rem.definition.submit(remediationData, mutators);
39
+ }).filter((rem) => rem !== void 0);
40
+ await Promise.all(submissions);
41
+ afterSubmit?.();
42
+ }, [
43
+ mutators,
44
+ remediations,
45
+ afterSubmit
46
+ ]);
47
+ return /* @__PURE__ */ jsx(FormSubmissionContext.Provider, {
48
+ value: { submitterFor },
49
+ children
50
+ });
51
+ }
52
+ function findRemediationInstance(remediations, path) {
53
+ if (!path.startsWith("rem:")) {
54
+ logger$1.warn(`Using non-remediation path '${path}' with remediation submission; skipping submission for this node`);
55
+ return;
56
+ }
57
+ const instanceId = path.slice(path.indexOf(":") + 1);
58
+ const rem = remediations.find((rem) => rem.instanceId === instanceId);
59
+ if (!rem) {
60
+ logger$1.error(`Could not find remediation matching path '${path}'; skipping submission for this node`);
61
+ return;
62
+ }
63
+ return rem;
64
+ }
65
+ //#endregion
66
+ //#region src/utils/idGenerator.ts
67
+ var idCounter = Date.now();
68
+ var getUniqueId = (prefix = "id") => {
69
+ idCounter += 1;
70
+ return `${prefix}-${idCounter}`;
71
+ };
72
+ //#endregion
73
+ //#region src/components/EFP/upgradeFlow/logic/models/workflow.ts
74
+ var isLayoutNode = (node) => "layoutComponent" in node;
75
+ var isLeafNode = (node) => "remediationDef" in node;
76
+ //#endregion
77
+ //#region src/components/EFP/upgradeFlow/logic/resolveWorkflow.ts
78
+ async function resolveWorkflow({ potentialIssues, cast }, accessors) {
79
+ const issues = (await Promise.all(potentialIssues.flatMap((issue) => issue.findInstances(accessors)))).flat();
80
+ const remediations = [];
81
+ let rootNode = await resolveLayoutNode(cast, {
82
+ issues,
83
+ accessors,
84
+ addRemediation: (rem) => remediations.push(rem)
85
+ });
86
+ rootNode = cullEmptyLayoutNodes(rootNode) ?? {
87
+ ...rootNode,
88
+ children: void 0
89
+ };
90
+ return {
91
+ remediations,
92
+ rootNode
93
+ };
94
+ }
95
+ async function resolveNode(node, context) {
96
+ if (isLayoutNode(node)) return [await resolveLayoutNode(node, context)];
97
+ if (isLeafNode(node)) return resolveLeafNode(node, context);
98
+ throw new Error(`Unhandled node: ${JSON.stringify(node, null, 2)}`);
99
+ }
100
+ async function resolveLayoutNode({ id, layoutComponent, children }, context) {
101
+ return {
102
+ id,
103
+ name: layoutComponent,
104
+ children: (await Promise.all(children.map((child) => resolveNode(child, context)))).flat()
105
+ };
106
+ }
107
+ async function resolveLeafNode({ remediationDef, resolve, transformFormValues }, { issues, accessors, addRemediation }) {
108
+ const solvableIssues = issues.filter((issue) => remediationDef.canResolve.includes(issue.issueDef));
109
+ if (solvableIssues.length === 0) return [];
110
+ const instances = solvableIssues.map((issue) => ({
111
+ instanceId: `${remediationDef.name}-${getUniqueId()}`,
112
+ willSolve: [issue],
113
+ definition: remediationDef,
114
+ transformFormValues
115
+ }));
116
+ instances.forEach(addRemediation);
117
+ return Promise.all(instances.map(async (remediation) => {
118
+ return resolve({
119
+ remediation,
120
+ accessors,
121
+ existingData: await remediation.definition.getExistingData(accessors)
122
+ });
123
+ }));
124
+ }
125
+ function cullEmptyLayoutNodes(node) {
126
+ const culledNode = {
127
+ ...node,
128
+ children: node.children?.map(cullEmptyLayoutNodes).filter((node) => node !== void 0)
129
+ };
130
+ if (getNodeType(culledNode.name) === "layout" && !culledNode.children?.length) return;
131
+ return culledNode;
132
+ }
133
+ //#endregion
134
+ //#region src/components/EFP/upgradeFlow/hooks/useUpgradeWorkflowState.ts
135
+ var logger = createLogger();
136
+ function useUpgradeWorkflowState(workflow) {
137
+ const { rootLegalEntityId, baseUrl } = useApiContext();
138
+ const queryClient = useQueryClient();
139
+ const accessors = useMemo(() => makeAccessors(queryClient, rootLegalEntityId.value, baseUrl.value), [
140
+ queryClient,
141
+ baseUrl.value,
142
+ rootLegalEntityId.value
143
+ ]);
144
+ const [result, setResult] = useState();
145
+ const reset = useCallback(async () => {
146
+ logger.log("Resetting workflow state");
147
+ await queryClient.refetchQueries({ type: "all" });
148
+ setResult(await resolveWorkflow(workflow, accessors));
149
+ }, [
150
+ accessors,
151
+ queryClient,
152
+ workflow
153
+ ]);
154
+ useEffect(() => {
155
+ reset().catch(logger.error);
156
+ }, [reset]);
157
+ return {
158
+ result,
159
+ reset
160
+ };
161
+ }
162
+ function makeAccessors(queryClient, rootLegalEntityId, baseUrl) {
163
+ const accessRootLe = async () => queryClient.query({
164
+ queryKey: ["legalEntity", rootLegalEntityId],
165
+ queryFn: () => getLegalEntity(rootLegalEntityId, baseUrl, rootLegalEntityId)
166
+ });
167
+ const accessLegalEntity = (legalEntityId) => queryClient.query({
168
+ queryKey: ["legalEntity", legalEntityId],
169
+ queryFn: () => getLegalEntity(rootLegalEntityId, baseUrl, legalEntityId)
170
+ });
171
+ const accessCapabilityProblems = () => queryClient.query({
172
+ queryKey: ["legalEntity", rootLegalEntityId],
173
+ queryFn: () => getLegalEntity(rootLegalEntityId, baseUrl, rootLegalEntityId),
174
+ select: (rootLe) => rootLe.problems
175
+ });
176
+ return {
177
+ accessRootLe,
178
+ accessLegalEntity,
179
+ accessCapabilityProblems
180
+ };
181
+ }
182
+ //#endregion
183
+ //#region src/components/EFP/upgradeFlow/utils/mapExistingDataToProperties.ts
184
+ function mapExistingDataToProperties(existingData) {
185
+ return Object.entries(existingData).reduce((acc, [key, value]) => ({
186
+ ...acc,
187
+ [key]: {
188
+ type: "value",
189
+ value
190
+ }
191
+ }), {});
192
+ }
193
+ //#endregion
194
+ //#region src/components/EFP/upgradeFlow/utils/findMatchingProblems.ts
195
+ var findMatchingVerificationErrors = (capabilityProblems, filters = {}) => {
196
+ if (!capabilityProblems) return [];
197
+ return capabilityProblems.flatMap(({ entity, verificationErrors }) => {
198
+ if (!entity || !verificationErrors) return [];
199
+ return verificationErrors.map((error) => ({
200
+ ...error,
201
+ entity
202
+ })).filter((error) => filters.code ? error.code === filters.code : true).filter((error) => filters.entityId ? error.entity.id === filters.entityId : true);
203
+ });
204
+ };
205
+ //#endregion
206
+ //#region src/components/EFP/upgradeFlow/utils/makeInstanceId.ts
207
+ function makeInstanceId(issueDef, uniqueId) {
208
+ return `${issueDef.name}-${uniqueId}`;
209
+ }
210
+ //#endregion
211
+ //#region src/components/EFP/upgradeFlow/logic/issues/missingOrganizationTaxInfo.ts
212
+ var MissingOrganizationTaxInfo = {
213
+ name: "MISSING_ORGANIZATION_TAX_INFO",
214
+ affects: "ROOT_LE",
215
+ findInstances: async ({ accessCapabilityProblems, accessRootLe }) => {
216
+ const capabilityProblems = await accessCapabilityProblems();
217
+ const rootLeId = (await accessRootLe()).id;
218
+ return findMatchingVerificationErrors(capabilityProblems, {
219
+ code: "2_8174",
220
+ entityId: rootLeId
221
+ }).map((error) => ({
222
+ issueDef: MissingOrganizationTaxInfo,
223
+ instanceId: makeInstanceId(MissingOrganizationTaxInfo, error.entity.id),
224
+ affected: {
225
+ entityType: "ROOT_LE",
226
+ entityId: error.entity.id
227
+ }
228
+ }));
229
+ }
230
+ };
231
+ //#endregion
232
+ //#region src/components/EFP/upgradeFlow/logic/workflows/businessBankAccountUpgradeWorkflow.ts
233
+ var BusinessBankAccountUpgradeWorkflow = {
234
+ potentialIssues: [MissingOrganizationTaxInfo],
235
+ cast: {
236
+ layoutComponent: "layout",
237
+ id: "default",
238
+ children: [{
239
+ layoutComponent: "taskGroup",
240
+ id: "businessInformation",
241
+ children: [{
242
+ layoutComponent: "task",
243
+ id: "additionalBusinessDetails",
244
+ children: [{
245
+ layoutComponent: "step",
246
+ id: "businessDetails",
247
+ children: [{
248
+ remediationDef: {
249
+ name: "PROVIDE_ORGANIZATION_TAX_INFO",
250
+ canResolve: [MissingOrganizationTaxInfo],
251
+ validate: async () => ({ isValid: true }),
252
+ getExistingData: async ({ accessRootLe }) => {
253
+ const rootLe = await accessRootLe();
254
+ const existingTaxInfo = rootLe.organization?.taxInformation?.[0];
255
+ const country = getLegalEntityCountry(rootLe);
256
+ return existingTaxInfo ? {
257
+ country,
258
+ number: existingTaxInfo.number,
259
+ type: existingTaxInfo.type
260
+ } : { country };
261
+ },
262
+ submit: async (data, mutators) => {
263
+ await mutators.updateRootLegalEntity({ organization: { taxInformation: [data] } });
264
+ return { success: true };
265
+ }
266
+ },
267
+ resolve: ({ remediation, existingData }) => ({
268
+ path: `rem:${remediation.instanceId}`,
269
+ name: "taxInformationFieldGroup",
270
+ id: "taxInformation",
271
+ properties: mapExistingDataToProperties(existingData)
272
+ })
273
+ }]
274
+ }]
275
+ }]
276
+ }]
277
+ }
278
+ };
279
+ //#endregion
280
+ //#region src/components/EFP/upgradeFlow/UpgradeWorkflowHarness.tsx
281
+ function UpgradeWorkflowHarness({ workflow = BusinessBankAccountUpgradeWorkflow }) {
282
+ const { rootLegalEntityId } = useApiContext();
283
+ const { i18n } = useTranslation();
284
+ addResourceBundles(i18n, [{
285
+ ns: "adaptive",
286
+ importFn: (lang) => _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({ "../../../adaptiveWorkflow/language/en-US.json": () => import("./en-US-BorLJXJ4.js") }), `../../../adaptiveWorkflow/language/${lang}.json`, 6)
287
+ }, {
288
+ ns: "ui",
289
+ importFn: (lang) => _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({
290
+ "../../ui/language/bg-BG.json": () => import("./bg-BG-Bs9UD_76.js"),
291
+ "../../ui/language/cs-CZ.json": () => import("./cs-CZ-BT362m-5.js"),
292
+ "../../ui/language/da-DK.json": () => import("./da-DK-94-4BlJ1.js"),
293
+ "../../ui/language/de-DE.json": () => import("./de-DE-jfNFZmBX.js"),
294
+ "../../ui/language/el-GR.json": () => import("./el-GR-D6PNRFM6.js"),
295
+ "../../ui/language/en-US.json": () => import("./en-US-C77BEdxc.js"),
296
+ "../../ui/language/es-ES.json": () => import("./es-ES-DHaG98qJ.js"),
297
+ "../../ui/language/es-LA.json": () => import("./es-LA-BaTWuGkU.js"),
298
+ "../../ui/language/et-EE.json": () => import("./et-EE-Cfy8GsHl.js"),
299
+ "../../ui/language/fi-FI.json": () => import("./fi-FI-1hQjycvC.js"),
300
+ "../../ui/language/fr-FR.json": () => import("./fr-FR-Cr8g5esP.js"),
301
+ "../../ui/language/hr-HR.json": () => import("./hr-HR-DutOZxI6.js"),
302
+ "../../ui/language/hu-HU.json": () => import("./hu-HU-D2tnSSHX.js"),
303
+ "../../ui/language/it-IT.json": () => import("./it-IT-T1oxWO_8.js"),
304
+ "../../ui/language/ja-JP.json": () => import("./ja-JP-OwVmVzBT.js"),
305
+ "../../ui/language/lt-LT.json": () => import("./lt-LT-CMPaSRJP.js"),
306
+ "../../ui/language/lv-LV.json": () => import("./lv-LV-kV4YvLbr.js"),
307
+ "../../ui/language/nl-NL.json": () => import("./nl-NL-BKKrxXgX.js"),
308
+ "../../ui/language/no-NO.json": () => import("./no-NO-Bnaxpdi9.js"),
309
+ "../../ui/language/pl-PL.json": () => import("./pl-PL-CH45L3wZ.js"),
310
+ "../../ui/language/pt-BR.json": () => import("./pt-BR-IssZVQBa.js"),
311
+ "../../ui/language/pt-PT.json": () => import("./pt-PT-Cw30Oeni.js"),
312
+ "../../ui/language/ro-RO.json": () => import("./ro-RO-Cj6ecr81.js"),
313
+ "../../ui/language/sk-SK.json": () => import("./sk-SK-C26VGn8D.js"),
314
+ "../../ui/language/sl-SI.json": () => import("./sl-SI-B-_Pi92n.js"),
315
+ "../../ui/language/sv-SE.json": () => import("./sv-SE-dsMtqJhC.js")
316
+ }), `../../ui/language/${lang}.json`, 5)
317
+ }]);
318
+ const { result, reset } = useUpgradeWorkflowState(workflow);
319
+ const uiManifest = useMemo(() => result ? {
320
+ entity: {
321
+ version: "v123456789",
322
+ type: "LegalEntity",
323
+ id: rootLegalEntityId.value
324
+ },
325
+ globals: {},
326
+ globalStatus: "DETAILS_REQUIRED",
327
+ nodes: result.rootNode
328
+ } : void 0, [result, rootLegalEntityId.value]);
329
+ useEffect(() => {
330
+ workflowDebugInfo.value = uiManifest;
331
+ }, [uiManifest]);
332
+ if (!result || !uiManifest) return /* @__PURE__ */ jsx(Loader, {});
333
+ return /* @__PURE__ */ jsx(WorkflowContextProvider, { children: /* @__PURE__ */ jsx(RemediationSubmissionProvider, {
334
+ remediations: result.remediations,
335
+ afterSubmit: reset,
336
+ children: /* @__PURE__ */ jsx(AdaptiveWorkflow, {
337
+ uiManifest,
338
+ onBack: noop
339
+ })
340
+ }) });
341
+ }
342
+ //#endregion
343
+ export { UpgradeWorkflowHarness };
@@ -0,0 +1,91 @@
1
+ try {
2
+ let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "25be9d61-8536-4981-9f17-c750450a3d34", e._sentryDebugIdIdentifier = "sentry-dbid-25be9d61-8536-4981-9f17-c750450a3d34");
4
+ } catch (e) {}
5
+ import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
+ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
7
+ import { a as translateTranslatable } from "./Select-CffvApST.js";
8
+ import { D as validatePatternOnBlur, E as validateNotEmptyOnBlur, F as spacer, M as makeMask, N as nonInputs, O as uppercase, P as numericInputs, k as alphaInputs, r as MaskedInput } from "./dropinUtils-Cg5l88N-.js";
9
+ import { n as withForm } from "./formHook-Dgi2CgbT.js";
10
+ import { t as toTanStackValidators } from "./tanstackValidation-BgAM9eKo.js";
11
+ import { t as defaultFieldConfig } from "./fieldConfig-BeA7aDHu.js";
12
+ import { jsx } from "preact/jsx-runtime";
13
+ //#region src/adaptiveWorkflow/components/Fields/VatNumberField/contextMap.ts
14
+ var defaultValidators = validateNotEmptyOnBlur;
15
+ var contextMap = { vatNumber: {
16
+ label: "vatNumber",
17
+ countrySpecificContext: {
18
+ ...Object.fromEntries(Object.entries(defaultFieldConfig).map(([country, entry]) => [country, typeof entry === "function" ? {} : {
19
+ labels: entry.label ? [entry.label] : void 0,
20
+ formatGuidance: entry.guidanceText,
21
+ mask: entry.mask,
22
+ validators: entry.validators
23
+ }])),
24
+ [CountryCodes.Denmark]: {
25
+ labels: ["momsregistreringsnummerCVR", "stamregister"],
26
+ formatGuidance: {
27
+ key: "enterTheRemainingNDigitsForExample",
28
+ values: {
29
+ numDigits: "8",
30
+ example: "DK12345678"
31
+ }
32
+ },
33
+ mask: {
34
+ mask: makeMask(...alphaInputs(2), spacer, ...numericInputs(8)),
35
+ transformOnType: uppercase
36
+ },
37
+ validators: validatePatternOnBlur(/^(SE|DK)\d{8}$/)
38
+ },
39
+ [CountryCodes.France]: {
40
+ labels: ["numeroDIdentificationALATaxe", "NumeroDeTVA"],
41
+ formatGuidance: {
42
+ key: "enterTheRemainingNDigitsForExample",
43
+ values: {
44
+ numDigits: "11",
45
+ example: "FR12999999999"
46
+ }
47
+ },
48
+ mask: { mask: makeMask(...nonInputs("FR", { includeInValue: true }), spacer, ...numericInputs(11)) },
49
+ validators: validatePatternOnBlur(/^FR\d{11}$/)
50
+ }
51
+ }
52
+ } };
53
+ //#endregion
54
+ //#region src/adaptiveWorkflow/components/Fields/VatNumberField/VatNumberField.tsx
55
+ var VatNumberField = withForm({
56
+ props: {},
57
+ render: function VatNumberFieldRender({ node, form, country, disabled }) {
58
+ const { id, path } = node;
59
+ const { countrySpecificContext, label: defaultLabel } = contextMap[id] ?? {};
60
+ const { t } = useTranslation("common");
61
+ const countryContext = country ? countrySpecificContext?.[country] : void 0;
62
+ const label = (countryContext?.labels ?? [defaultLabel]).map((key) => t(($) => $[key])).join(" / ");
63
+ return /* @__PURE__ */ jsx(form.Field, {
64
+ name: path,
65
+ validators: toTanStackValidators(countryContext?.validators ?? defaultValidators),
66
+ children: (field) => {
67
+ const error = field.state.meta.errors[0];
68
+ return /* @__PURE__ */ jsx(MaskedInput, {
69
+ name: id,
70
+ type: "text",
71
+ "aria-required": true,
72
+ value: field.state.value ?? "",
73
+ label,
74
+ formatGuidance: translateTranslatable(t, countryContext?.formatGuidance),
75
+ errorMessage: error ? {
76
+ key: typeof error === "string" ? error : error.key,
77
+ message: translateTranslatable(t, error)
78
+ } : void 0,
79
+ "aria-invalid": !field.state.meta.isValid,
80
+ isValid: Boolean(field.state.meta.isValid),
81
+ onInput: (e) => field.handleChange(e),
82
+ onBlur: () => field.handleBlur(),
83
+ disabled: Boolean(disabled),
84
+ ...countryContext?.mask
85
+ });
86
+ }
87
+ });
88
+ }
89
+ });
90
+ //#endregion
91
+ export { VatNumberField };
@@ -3,9 +3,9 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f9de5047-9384-440d-95df-5392f03f373e", e._sentryDebugIdIdentifier = "sentry-dbid-f9de5047-9384-440d-95df-5392f03f373e");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { T as Alert } from "./registerEmbed-CB38-4Qc.js";
6
+ import { T as Alert } from "./registerEmbed-By-mMjLz.js";
7
7
  import { c as useApiContext, t as httpDelete } from "./http-62p0n9p6.js";
8
- import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-CGVbKyHP.js";
8
+ import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-GCb1IVpG.js";
9
9
  import { jsx } from "preact/jsx-runtime";
10
10
  import { useMutation } from "@tanstack/preact-query";
11
11
  //#region src/api/transferInstruments/useDeleteTransferInstrument.ts
@@ -1,13 +1,13 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d6946dd1-e529-4fb9-a9fa-25e70c61a3d1", e._sentryDebugIdIdentifier = "sentry-dbid-d6946dd1-e529-4fb9-a9fa-25e70c61a3d1");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "90c3c3da-57dd-43ce-b89e-2eeb9a4cda98", e._sentryDebugIdIdentifier = "sentry-dbid-90c3c3da-57dd-43ce-b89e-2eeb9a4cda98");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { W as HAS_PROTOCOL_REGEX, Z as URL_REGEX } from "./registerEmbed-CB38-4Qc.js";
7
- import { a as InputBase } from "./RadioGroup-BNp0YodN.js";
8
- import { o as Field } from "./Select-BYM1s0SR.js";
6
+ import { W as HAS_PROTOCOL_REGEX, X as URL_REGEX } from "./registerEmbed-By-mMjLz.js";
7
+ import { a as InputBase } from "./RadioGroup-T3-GTf8S.js";
8
+ import { o as Field } from "./Select-CffvApST.js";
9
9
  import { n as withForm } from "./formHook-Dgi2CgbT.js";
10
- import { t as getValidationError } from "./getValidationError-CZ_yHMCc.js";
10
+ import { t as getValidationError } from "./getValidationError-vaT_A8DZ.js";
11
11
  import { jsx } from "preact/jsx-runtime";
12
12
  //#region src/adaptiveWorkflow/components/Shared/Fields/WebsiteField/validators.ts
13
13
  var containsHttpOrHttps = (val) => {
@@ -1,16 +1,16 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4a91c660-5867-443b-8442-80943b87675d", e._sentryDebugIdIdentifier = "sentry-dbid-4a91c660-5867-443b-8442-80943b87675d");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1fe80786-1026-4573-a43d-b2eff6208283", e._sentryDebugIdIdentifier = "sentry-dbid-1fe80786-1026-4573-a43d-b2eff6208283");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { N as Header } from "./registerEmbed-CB38-4Qc.js";
6
+ import { N as Header } from "./registerEmbed-By-mMjLz.js";
7
7
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
8
- import { t as Button } from "./Button-vp4Z9L5X.js";
8
+ import { t as Button } from "./Button-DWI7t80R.js";
9
9
  import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
10
10
  import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
11
- import { t as EndStateLayout } from "./EndStateLayout-BOwRY9BY.js";
12
- import { s as ProgressBar } from "./Select-BYM1s0SR.js";
13
- import { n as useWorkflowContext, t as NodeRenderer } from "./AdaptiveWorkflow-S2GeT5qn.js";
11
+ import { t as EndStateLayout } from "./EndStateLayout-Cimb5t8g.js";
12
+ import { s as ProgressBar } from "./Select-CffvApST.js";
13
+ import { r as useWorkflowContext, t as NodeRenderer } from "./AdaptiveWorkflow-B-oqoHeb.js";
14
14
  import { t as useAdaptiveWorkflow } from "./useAdaptiveWorkflow-CR-NOgNK.js";
15
15
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
16
16
  import { useComputed } from "@preact/signals";
@@ -0,0 +1,50 @@
1
+ try {
2
+ let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6f4456b5-7653-4463-80a5-1b9e7a423188", e._sentryDebugIdIdentifier = "sentry-dbid-6f4456b5-7653-4463-80a5-1b9e7a423188");
4
+ } catch (e) {}
5
+ import { i as WorkflowContext } from "./AdaptiveWorkflow-B-oqoHeb.js";
6
+ import { useMemo } from "preact/hooks";
7
+ import { jsx } from "preact/jsx-runtime";
8
+ import { computed, signal } from "@preact/signals";
9
+ //#region src/adaptiveWorkflow/context/WorkflowContext/WorkflowContextProvider.tsx
10
+ var createWorkflowStore = () => {
11
+ const globals = signal({});
12
+ const globalKeys = computed(() => Object.keys(globals.value));
13
+ const persistedForms = signal({});
14
+ const entity = signal(void 0);
15
+ const taskStatuses = signal({});
16
+ const globalStatus = signal();
17
+ return {
18
+ globals,
19
+ globalKeys,
20
+ setGlobals: (val) => globals.value = val,
21
+ persistedForms,
22
+ updatePersistedForm: (key, value) => persistedForms.value = {
23
+ ...persistedForms.value,
24
+ [key]: value
25
+ },
26
+ entity,
27
+ setEntity: (val) => entity.value = val,
28
+ globalStatus,
29
+ setGlobalStatus: (val) => globalStatus.value = val,
30
+ updateGlobals: (val) => globals.value = {
31
+ ...globals.value,
32
+ ...val
33
+ },
34
+ taskStatuses,
35
+ setTaskStatuses: (statuses) => taskStatuses.value = statuses,
36
+ updateTaskStatus: (taskId, status) => taskStatuses.value = {
37
+ ...taskStatuses.value,
38
+ [taskId]: status
39
+ }
40
+ };
41
+ };
42
+ var WorkflowContextProvider = ({ children }) => {
43
+ const store = useMemo(() => createWorkflowStore(), []);
44
+ return /* @__PURE__ */ jsx(WorkflowContext.Provider, {
45
+ value: store,
46
+ children
47
+ });
48
+ };
49
+ //#endregion
50
+ export { WorkflowContextProvider as t };
@@ -1,9 +1,9 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6e5f1a47-5645-4868-b9a8-781c30513666", e._sentryDebugIdIdentifier = "sentry-dbid-6e5f1a47-5645-4868-b9a8-781c30513666");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "18c7bb0e-274b-47d7-aafc-8eec455bb14d", e._sentryDebugIdIdentifier = "sentry-dbid-18c7bb0e-274b-47d7-aafc-8eec455bb14d");
4
4
  } catch (e) {}
5
- import { m as isEmptyEntity } from "./registerEmbed-CB38-4Qc.js";
6
- import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-BlfcBl3i.js";
5
+ import { m as isEmptyEntity } from "./registerEmbed-By-mMjLz.js";
6
+ import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-CRDwmwij.js";
7
7
  //#region src/utils/accountHolderUtils.ts
8
8
  var capabilitiesToPreventTypeChange = [
9
9
  "receivePayments",
@@ -19,6 +19,11 @@ var capabilitiesToPreventTypeChange = [
19
19
  "getGrantOffers",
20
20
  "receiveGrants"
21
21
  ];
22
+ /**
23
+ * Capability names may be suffixed with `Commercial`/`Consumer` (e.g. `issueCardCommercial`),
24
+ * while {@link capabilitiesToPreventTypeChange} only holds the base capability names.
25
+ */
26
+ var normalizeCapabilityName = (capability) => capability.replace("Commercial", "").replace("Consumer", "");
22
27
  var entityTypeToCorrespondingAccountHolderOption = {
23
28
  ["individual"]: "myName",
24
29
  ["organization"]: "theCompanyIWorkFor",
@@ -38,6 +43,11 @@ var getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false,
38
43
  if (accountHolder) return accountHolder;
39
44
  if (isTypeChanging || !isEmptyEntity(legalEntityResponse)) return entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type];
40
45
  };
41
- var allowIndividualWithoutSoleProp = (capabilities) => !capabilities?.map((c) => c.replace("Commercial", "").replace("Consumer", "")).some((c) => capabilitiesToPreventTypeChange.includes(c));
46
+ var allowIndividualWithoutSoleProp = (capabilities) => !hasRequestedCapabilitiesToPreventTypeChange(capabilities);
47
+ /**
48
+ * Whether the legal entity requests any capability whose availability prevents
49
+ * changing the legal entity type (see {@link capabilitiesToPreventTypeChange}).
50
+ */
51
+ var hasRequestedCapabilitiesToPreventTypeChange = (capabilities) => capabilities.some((c) => capabilitiesToPreventTypeChange.includes(normalizeCapabilityName(c)));
42
52
  //#endregion
43
- export { getDefaultAccountHolderType as n, allowIndividualWithoutSoleProp as t };
53
+ export { getDefaultAccountHolderType as n, hasRequestedCapabilitiesToPreventTypeChange as r, allowIndividualWithoutSoleProp as t };