@adyen/kyc-components 3.90.1 → 3.91.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 (342) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-rHbpLgiw.js → AcceptTermsOfServiceComponent-Dn0l4-44.js} +15 -15
  2. package/dist/{Accordion-bNe23ft-.js → Accordion-BIfsF-ii.js} +2 -2
  3. package/dist/{AccountSetupRejected-r41b_IBZ.js → AccountSetupRejected-BZEuVm0z.js} +3 -3
  4. package/dist/{ActionBar-Dis5nYqm.js → ActionBar-Cd_dURV3.js} +1 -1
  5. package/dist/{Address-yCSNuL5Z.js → Address-L2yF0rj3.js} +8 -8
  6. package/dist/{Alert-BwI1gE5-.js → Alert-XDWse9R9.js} +18 -8
  7. package/dist/{Avatar-1gT2TOqE.js → Avatar-DtK8HezD.js} +2 -2
  8. package/dist/{BusinessFinancingComponent-DoZY3vBl.js → BusinessFinancingComponent-BHHVQgPT.js} +5 -5
  9. package/dist/{BusinessFinancingDropin-BUPkJPvR.js → BusinessFinancingDropin-BKLFxDRz.js} +23 -22
  10. package/dist/{BusinessFinancingPage-DlRDYso0.js → BusinessFinancingPage-CyxKBf4A.js} +3 -3
  11. package/dist/{BusinessTypeSelectionPage-H5Rr-qjO.js → BusinessTypeSelectionPage-B2_jh2gd.js} +8 -8
  12. package/dist/{Card-BqxNTWDR.js → Card-bVEv3jgS.js} +4 -4
  13. package/dist/{ConstitutionalDocument-DQ2y25Wo.js → ConstitutionalDocument-BIP14sQW.js} +3 -3
  14. package/dist/{CountryField-0kaLf2ip.js → CountryField-NrSdQlWq.js} +6 -6
  15. package/dist/{CreateIndividualComponent-CKoFrGSA.js → CreateIndividualComponent-Brs4zv6O.js} +6 -6
  16. package/dist/{CreateTransferInstrumentComponent-27-zWC7w.js → CreateTransferInstrumentComponent-9A-WpDeB.js} +5 -5
  17. package/dist/{Currency-BPrz2Bvj.js → Currency-DWHl-Udz.js} +4 -4
  18. package/dist/{CustomerSupport-Let8plHp.js → CustomerSupport-9t9iQcAa.js} +10 -10
  19. package/dist/{DebugModal-COjbEBUs.js → DebugModal-C8twwNLd.js} +7 -7
  20. package/dist/{DecisionMakerDetailsPage-DIhFG7Pm.js → DecisionMakerDetailsPage-BOcY8gtD.js} +6 -6
  21. package/dist/{DecisionMakers-p-wru8jq.js → DecisionMakers-DDhlHa6w.js} +20 -20
  22. package/dist/{EmbeddedStatus-CbWjM1iG.js → EmbeddedStatus-CnokSZuD.js} +11 -13
  23. package/dist/{EndStateLayout-zmc2wXNu.js → EndStateLayout-n2vQmPyo.js} +2 -2
  24. package/dist/{EntityAssociation-DaOk478U.js → EntityAssociation-BLIsqEDN.js} +8 -8
  25. package/dist/{EntityGuidanceStatus-C52S57_B.js → EntityGuidanceStatus-CP3ZQkcf.js} +3 -3
  26. package/dist/{FormFlow-Bv1422cp.js → FormFlow-CKr0sy8L.js} +59 -39
  27. package/dist/{FormNavigation-CeOkSTKj.js → FormNavigation-YVewktyA.js} +3 -3
  28. package/dist/{FormWrapper-DozSnYxU.js → FormWrapper-D_vUS9Z7.js} +10 -10
  29. package/dist/{IndividualOnfido-DH3MaGPp.js → IndividualOnfido-BYT0nG-5.js} +95 -64
  30. package/dist/{IndividualOnfidoDropin-CMvXInSa.js → IndividualOnfidoDropin-vZZxkmpv.js} +35 -29
  31. package/dist/{InputText-E3bqmvue.js → InputText-CQ6woYx3.js} +4 -4
  32. package/dist/{Introduction-BLV8LKKc.js → Introduction-Dnxk9iKa.js} +21 -65
  33. package/dist/JpAddress-D8-PoYQj.js +295 -0
  34. package/dist/{LegalRepresentativeDetailsPage-Dy5UJGSJ.js → LegalRepresentativeDetailsPage-C71oi0I7.js} +4 -4
  35. package/dist/{ListItem-CNkfdEc2.js → ListItem-CEjkofDu.js} +3 -3
  36. package/dist/{ManageIndividualComponent-3ycR2pfZ.js → ManageIndividualComponent-CS4ck6BQ.js} +4 -4
  37. package/dist/ManageTermsOfServiceComponent-D-4xj7a2.js +52 -0
  38. package/dist/{ManageTransferInstrumentComponent-CIg_pns4.js → ManageTransferInstrumentComponent-CXLwFDUB.js} +14 -14
  39. package/dist/{MaybeModal-CdOrwKiX.js → MaybeModal-D_76Tc3g.js} +2 -2
  40. package/dist/{Modal-CCNcDrnP.js → Modal-2wdHXVI8.js} +9 -11
  41. package/dist/{OnboardingDropinComponent-CLupKd1b.js → OnboardingDropinComponent-BrHvygYb.js} +241 -191
  42. package/dist/{PayoutDetailsDropin-CEV9cjQf.js → PayoutDetailsDropin-COkMHdGI.js} +85 -42
  43. package/dist/{Review-otEDatuj.js → Review-ruIkpP8F.js} +7 -7
  44. package/dist/RootBusinessDetailsPage-BZNx8ZjT.js +49 -0
  45. package/dist/{RootBusinessLinesPage-GYAoDeKt.js → RootBusinessLinesPage-9LFMQ5z_.js} +222 -175
  46. package/dist/{RootIndividualDetailsPage-D9zsUi0y.js → RootIndividualDetailsPage-F2fdzLat.js} +6 -6
  47. package/dist/{SignPCIComponent-BL7aG_Ax.js → SignPCIComponent-C81oIZNp.js} +12 -12
  48. package/dist/{SingpassSelection-Dnh00Fel.js → SingpassSelection-CbvT4d8u.js} +4 -4
  49. package/dist/SoleProprietorshipPage-BFo0fBlE.js +49 -0
  50. package/dist/{SourceOfFundsPage-b1c_Y4Gv.js → SourceOfFundsPage-rmtNMeq-.js} +25 -25
  51. package/dist/{Spacer-DNqjKZqD.js → Spacer-DTg9NYBB.js} +10 -9
  52. package/dist/{StepProgressIndicator-BwSGwPBX.js → StepProgressIndicator-BiUf_xud.js} +1 -1
  53. package/dist/{StoreProvider-CGako8b0.js → StoreProvider-Dgl7dBXc.js} +38 -38
  54. package/dist/{Summary-Cyl7hd3z.js → Summary-BZn7Ovck.js} +4 -4
  55. package/dist/{TaxReportingDropin-CtEcxZE3.js → TaxReportingDropin-BP-Q9qFd.js} +17 -16
  56. package/dist/{TrustDetailsPage-mQFzwpXO.js → TrustDetailsPage-O_efBZlx.js} +28 -27
  57. package/dist/{TrustMemberCompanyPage-9OQMcPjI.js → TrustMemberCompanyPage-DRaHLSon.js} +15 -8
  58. package/dist/{TrustMemberIndividualPage-CLF0ZjQl.js → TrustMemberIndividualPage-XLYywUIX.js} +4 -4
  59. package/dist/{TrustMemberRoleAndTypePage-DM3iM-UO.js → TrustMemberRoleAndTypePage-3faXzV9b.js} +24 -23
  60. package/dist/{TrustMembersOverview-CMebQqlZ.js → TrustMembersOverview-D17It654.js} +12 -12
  61. package/dist/{UnincorporatedPartnershipIndividualPage-ALWIbSyC.js → UnincorporatedPartnershipIndividualPage-Clw37nBi.js} +4 -4
  62. package/dist/UnincorporatedPartnershipMemberCompanyPage-DOSVuI_I.js +67 -0
  63. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Cy55bZFw.js → UnincorporatedPartnershipMemberRoleAndTypePage-DD3a0EJd.js} +9 -9
  64. package/dist/{UnincorporatedPartnershipMembersOverview-hV4By7Y1.js → UnincorporatedPartnershipMembersOverview-eGY35uW7.js} +9 -9
  65. package/dist/{VerificationErrorAlert-DFNMQiBs.js → VerificationErrorAlert-I_JbBy66.js} +4 -4
  66. package/dist/{ViewVerificationStatusComponent-Bey8W2EX.js → ViewVerificationStatusComponent-m00jaa9V.js} +4 -4
  67. package/dist/adyen-business-financing.js +2 -2
  68. package/dist/adyen-individual-configuration.js +2 -2
  69. package/dist/adyen-individual-status.js +2 -2
  70. package/dist/adyen-kyc-components.js +21 -21
  71. package/dist/adyen-onboarding.js +2 -2
  72. package/dist/adyen-terms-of-service-management.js +2 -2
  73. package/dist/adyen-terms-of-service-status.js +2 -2
  74. package/dist/adyen-transfer-instrument-configuration.js +2 -2
  75. package/dist/adyen-transfer-instrument-management.js +2 -2
  76. package/dist/adyen-verification-status.js +2 -2
  77. package/dist/{bg-BG-D9J6LnkI.js → bg-BG-CCwKQVVV.js} +9 -1
  78. package/dist/bg-BG-CEipapl4.js +63 -0
  79. package/dist/bg-BG-D4k_k98M.js +118 -0
  80. package/dist/bg-BG-DVjwfSz4.js +13 -0
  81. package/dist/{bg-BG-Dp4LxSP7.js → bg-BG-K7feXvEc.js} +2 -1
  82. package/dist/cs-CZ-BHbWTH_v.js +63 -0
  83. package/dist/cs-CZ-CLY9qYTs.js +13 -0
  84. package/dist/{cs-CZ-DY_pQqAT.js → cs-CZ-CVvNUABW.js} +9 -1
  85. package/dist/{cs-CZ-CyLqoG1j.js → cs-CZ-CYQO0o5V.js} +2 -1
  86. package/dist/{cs-CZ-B58kCXel.js → cs-CZ-nIWwyOHK.js} +1 -13
  87. package/dist/{da-DK-DYpfNZdP.js → da-DK-CGWvmdkq.js} +2 -1
  88. package/dist/{da-DK-jK7c9UL0.js → da-DK-CoTdzXlA.js} +9 -1
  89. package/dist/da-DK-CrtuBoDC.js +118 -0
  90. package/dist/da-DK-uHPPFvD-.js +13 -0
  91. package/dist/da-DK-vcVNQJbX.js +63 -0
  92. package/dist/de-DE-CWEW2yqg.js +63 -0
  93. package/dist/{de-DE-BXt1K0Tr.js → de-DE-DHDJhahG.js} +2 -1
  94. package/dist/de-DE-SMf6w4NJ.js +13 -0
  95. package/dist/de-DE-mH3MobT9.js +13 -0
  96. package/dist/{de-DE-wmerDL2e.js → de-DE-z0cPgxGN.js} +9 -1
  97. package/dist/{debouncedInputEvent-eHK9LXJg.js → debouncedInputEvent-iHbpO4uP.js} +2 -2
  98. package/dist/{documentUtils-CQe8F0JI.js → documentUtils-COMXmiC3.js} +58 -7
  99. package/dist/{dropinUtils-JfkUzj5m.js → dropinUtils-B7gkHPu_.js} +4 -4
  100. package/dist/el-GR-B78b9rSH.js +63 -0
  101. package/dist/{el-GR-Btrk_npt.js → el-GR-B9TRk3Pi.js} +9 -1
  102. package/dist/el-GR-Ckn_3h1a.js +118 -0
  103. package/dist/{el-GR-B90M6tcZ.js → el-GR-DHNlnOwf.js} +2 -1
  104. package/dist/el-GR-wv99Y9Yf.js +13 -0
  105. package/dist/en-US-BSQXKu6d.js +54 -0
  106. package/dist/{en-US-gsp7CD_E.js → en-US-BzrLvydZ.js} +9 -1
  107. package/dist/{en-US-Dg505Oh3.js → en-US-DoiQhi0j.js} +2 -1
  108. package/dist/es-ES-BqpvBqmR.js +13 -0
  109. package/dist/es-ES-CDgjGql5.js +63 -0
  110. package/dist/es-ES-CnyVffM-.js +118 -0
  111. package/dist/{es-ES-BhNhIf08.js → es-ES-CxnsKEh4.js} +2 -1
  112. package/dist/{es-ES-Qnc0Q6JH.js → es-ES-DUn82eVS.js} +9 -1
  113. package/dist/{et-EE-BMgFCxds.js → et-EE-BQixWUEV.js} +2 -1
  114. package/dist/et-EE-CAuCY0qn.js +13 -0
  115. package/dist/{et-EE-TzXANcP2.js → et-EE-CUXar-DY.js} +9 -1
  116. package/dist/et-EE-D0PMC4ie.js +63 -0
  117. package/dist/{et-EE-BApmUBuH.js → et-EE-RzdBGxDM.js} +1 -13
  118. package/dist/{fi-FI-ysUrBilO.js → fi-FI-57-xkioo.js} +2 -1
  119. package/dist/{fi-FI-Dn2MC8uW.js → fi-FI-C3TTCFBv.js} +9 -1
  120. package/dist/fi-FI-CsZlDJFb.js +63 -0
  121. package/dist/fi-FI-DPegZzTc.js +13 -0
  122. package/dist/fi-FI-kXC-0USa.js +118 -0
  123. package/dist/fr-FR-6YOKsDLQ.js +13 -0
  124. package/dist/fr-FR-BPGwsLDa.js +13 -0
  125. package/dist/{fr-FR-BWX14yb7.js → fr-FR-BbKadiaZ.js} +9 -1
  126. package/dist/{fr-FR-BSvSKazD.js → fr-FR-BxiX8Zfi.js} +2 -1
  127. package/dist/fr-FR-VoxPkXSc.js +63 -0
  128. package/dist/{getFieldsWithExistingData-DHMh2qiJ.js → getFieldsWithExistingData-P-c5HSuj.js} +1 -1
  129. package/dist/{getName-3tkBO1jL.js → getName-D3Us2eqy.js} +2 -2
  130. package/dist/{hasDataChanged-ca7QwDb4.js → hasDataChanged-CBuNlTKT.js} +2 -2
  131. package/dist/{hr-HR-BLpGb4f2.js → hr-HR-BynZTNSB.js} +2 -1
  132. package/dist/hr-HR-CbdP2tk-.js +63 -0
  133. package/dist/{hr-HR-CZLSQruE.js → hr-HR-D2LmWe5I.js} +9 -1
  134. package/dist/hr-HR-DdqNL1pQ.js +13 -0
  135. package/dist/hr-HR-fyublN95.js +118 -0
  136. package/dist/{hu-HU-Ca9Hex26.js → hu-HU-BtRIDozk.js} +2 -1
  137. package/dist/hu-HU-C1LJENXO.js +13 -0
  138. package/dist/{hu-HU-kp8Go5hZ.js → hu-HU-CFuBc8VP.js} +9 -1
  139. package/dist/hu-HU-CpJDiSu2.js +118 -0
  140. package/dist/hu-HU-pFpTvMiD.js +63 -0
  141. package/dist/{iframeWidget-Dtk68KgN.js → iframeWidget-B7r65gwx.js} +3 -3
  142. package/dist/it-IT-B1eJg9RL.js +13 -0
  143. package/dist/{it-IT-B0YGvVgW.js → it-IT-CGhQqmiU.js} +9 -1
  144. package/dist/it-IT-DZjw9LNC.js +63 -0
  145. package/dist/it-IT-DyCHFg-b.js +118 -0
  146. package/dist/{it-IT-Qfzc8jnW.js → it-IT-masgjk9F.js} +2 -1
  147. package/dist/ja-JP-BqluCflj.js +63 -0
  148. package/dist/{ja-JP-Dz9IVH4p.js → ja-JP-CvREJ56h.js} +9 -1
  149. package/dist/{ja-JP-DsGXGCjF.js → ja-JP-DGNXrNMK.js} +1 -13
  150. package/dist/ja-JP-PnqAHl14.js +13 -0
  151. package/dist/{ja-JP-CHQ64lw1.js → ja-JP-vv3-YsHU.js} +2 -1
  152. package/dist/{localizeDateString-C-Jph6zP.js → localizeDateString-DZXUiuq2.js} +1 -1
  153. package/dist/{lt-LT-0RKZeraM.js → lt-LT-2BMif2Bk.js} +2 -1
  154. package/dist/lt-LT-BmRnIfWs.js +13 -0
  155. package/dist/lt-LT-CKE7_7_A.js +118 -0
  156. package/dist/lt-LT-CXw4ywLM.js +63 -0
  157. package/dist/{lt-LT-l9rzkFg9.js → lt-LT-CZwu5zZ0.js} +9 -1
  158. package/dist/{lv-LV-Bh-WQp0K.js → lv-LV-CHdEDRVO.js} +2 -1
  159. package/dist/lv-LV-CX9j9Dtv.js +13 -0
  160. package/dist/lv-LV-D4Ik0yoE.js +118 -0
  161. package/dist/{lv-LV-DYbb5pkt.js → lv-LV-DVFCj1OR.js} +9 -1
  162. package/dist/lv-LV-DYqBaW2-.js +63 -0
  163. package/dist/{mapExistingFile-1urJeRPC.js → mapExistingFile-CUIQysrG.js} +2 -2
  164. package/dist/{mapFinancialReportsToFinancialInformation-8RB3ttN_.js → mapFinancialReportsToFinancialInformation-DXAUhNyT.js} +2 -2
  165. package/dist/{mapJpAddressSchemaToAddressLocalizations-CA7YxKdZ.js → mapJpAddressSchemaToAddressLocalizations-DtYS0iKj.js} +3 -3
  166. package/dist/{mapLegalEntityToIndividualOnfidoSchema-BnjzuvKj.js → mapLegalEntityToIndividualOnfidoSchema-p2nWbhjp.js} +3 -3
  167. package/dist/{mapTransferInstrumentToPayoutAccount-C2qh0VSM.js → mapTransferInstrumentToPayoutAccount-ByLURF9P.js} +1 -1
  168. package/dist/{nl-NL-D7gBNWEY.js → nl-NL-D1b5RUJ0.js} +2 -1
  169. package/dist/nl-NL-DkbhmJAw.js +118 -0
  170. package/dist/{nl-NL-BMUYBqlF.js → nl-NL-OHlJx2bn.js} +9 -1
  171. package/dist/nl-NL-cVVIDG7s.js +13 -0
  172. package/dist/nl-NL-lcNM54vV.js +63 -0
  173. package/dist/no-NO-CTrVITNu.js +63 -0
  174. package/dist/no-NO-C_tmZ39d.js +13 -0
  175. package/dist/{no-NO-DKbWxgF-.js → no-NO-DEYydng4.js} +9 -1
  176. package/dist/{no-NO-D4BECLky.js → no-NO-Df5qUoTc.js} +1 -13
  177. package/dist/{no-NO-C-gCYc9q.js → no-NO-Dkh4SWbB.js} +2 -1
  178. package/dist/{pl-PL-LnVPufjb.js → pl-PL-BkGihn5Q.js} +2 -1
  179. package/dist/pl-PL-CErRPlR2.js +63 -0
  180. package/dist/pl-PL-DFZFSKZX.js +13 -0
  181. package/dist/{pl-PL-B0zGy_b4.js → pl-PL-DMbe5XnW.js} +9 -1
  182. package/dist/pl-PL-ggZjqXWE.js +118 -0
  183. package/dist/{process-field-configurations-BFhu7wxG.js → process-field-configurations-DLkHkwPX.js} +3 -3
  184. package/dist/pt-BR-BOOm5lRR.js +118 -0
  185. package/dist/{pt-BR-ur86nRrK.js → pt-BR-BRdIEO2O.js} +2 -1
  186. package/dist/pt-BR-CMiGlY3k.js +13 -0
  187. package/dist/pt-BR-DA44Wgbt.js +63 -0
  188. package/dist/{pt-BR--kaJvtE6.js → pt-BR-DWAziFjb.js} +9 -1
  189. package/dist/pt-PT-BDfNlThr.js +118 -0
  190. package/dist/{pt-PT-CVNEcs32.js → pt-PT-BfL7qUzo.js} +2 -1
  191. package/dist/pt-PT-DmdQxN_1.js +13 -0
  192. package/dist/{pt-PT-BZ5ZZm6G.js → pt-PT-LP8g5mC9.js} +9 -1
  193. package/dist/pt-PT-PIiikho9.js +63 -0
  194. package/dist/{resolveEnvironment-noyLQ0vB.js → resolveEnvironment-Biy1a0GA.js} +3 -3
  195. package/dist/ro-RO-B0slmyWK.js +13 -0
  196. package/dist/{ro-RO-CdSsgoUG.js → ro-RO-BQSoJrlf.js} +9 -1
  197. package/dist/ro-RO-BRngQXgs.js +118 -0
  198. package/dist/ro-RO-Bv9hZxwD.js +63 -0
  199. package/dist/{ro-RO-i7lojG2G.js → ro-RO-C2yBVFht.js} +2 -1
  200. package/dist/{rules-3KdlQVvF.js → rules-nAvWiQ6E.js} +5 -5
  201. package/dist/sk-SK-BptPuon4.js +13 -0
  202. package/dist/{sk-SK-B5brxU1N.js → sk-SK-C74EF23u.js} +2 -1
  203. package/dist/sk-SK-ChVwlbp0.js +63 -0
  204. package/dist/{sk-SK-BiBWPJUf.js → sk-SK-CwieqNyR.js} +9 -1
  205. package/dist/sk-SK-y9eb7N6i.js +118 -0
  206. package/dist/sl-SI-C3nGkfNb.js +13 -0
  207. package/dist/{sl-SI-DtdGMD6i.js → sl-SI-C5vfq7vv.js} +9 -1
  208. package/dist/sl-SI-CGvCdquD.js +118 -0
  209. package/dist/{sl-SI-CUCrzJQv.js → sl-SI-CvUzNn9Z.js} +2 -1
  210. package/dist/sl-SI-DZHePXbK.js +63 -0
  211. package/dist/style.css +467 -221
  212. package/dist/styles-CLV89_hH.js +467 -221
  213. package/dist/{sv-SE-BHkYspm-.js → sv-SE-BP2Oun8l.js} +1 -13
  214. package/dist/{sv-SE-kR514dO1.js → sv-SE-BrO9NKWs.js} +9 -1
  215. package/dist/{sv-SE-C6uPh9g5.js → sv-SE-BsLkPEzn.js} +2 -1
  216. package/dist/sv-SE-CXn28ybc.js +13 -0
  217. package/dist/sv-SE-Dq56vGlB.js +63 -0
  218. package/dist/types/api/businessLines/businessLines.types.d.ts +6 -1
  219. package/dist/types/api/documents/useDocuments.d.ts +4 -0
  220. package/dist/types/api/queryKeys.d.ts +3 -1
  221. package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
  222. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -8
  223. package/dist/types/components/Business/forms/AdditionalInformation/{VerifiedBusinessCard.d.ts → VerifiedBusinessCard/VerifiedBusinessCard.d.ts} +2 -3
  224. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +4 -6
  225. package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +0 -1
  226. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +0 -1
  227. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +1 -2
  228. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +0 -1
  229. package/dist/types/components/Business/forms/rules.d.ts +1 -1
  230. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
  231. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +3 -0
  232. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
  233. package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
  234. package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
  235. package/dist/types/components/BusinessLines/tasks/utils.d.ts +2 -3
  236. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  237. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -0
  238. package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
  239. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +2 -0
  240. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
  241. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  242. package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
  243. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +1 -1
  244. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -0
  245. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
  246. package/dist/types/utils/api/documentUtils.d.ts +6 -0
  247. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  248. package/dist/{types-CdYWxOFW.js → types-BmzCK_Dn.js} +1 -1
  249. package/dist/{types-CMNeqyO0.js → types-DHdElqj8.js} +1 -1
  250. package/dist/{types-CtoOcAS_.js → types-cn3-oi7O.js} +1 -1
  251. package/dist/{useAssociatedLegalEntity-BWXPNWfP.js → useAssociatedLegalEntity-BrPscgVv.js} +1 -1
  252. package/dist/{BusinessDetailsDropin-DN-h5hoU.js → useBusinessDetailsData-BVa9Mtjs.js} +151 -69
  253. package/dist/{useCreateLegalEntity-DonOl4nS.js → useCreateLegalEntity-CNzYBgj0.js} +2 -2
  254. package/dist/{useDataset-DuHP7LJl.js → useDataset-DerSszvK.js} +4 -4
  255. package/dist/{useForm-CBL8sHgn.js → useForm-BmCWMPbB.js} +7 -6
  256. package/dist/{useGlobalData-Bh2OmI7a.js → useGlobalData-iJosWOhn.js} +2 -2
  257. package/dist/{useMultiForm-DK0DX3NP.js → useMultiForm-qb1Om5Av.js} +4 -4
  258. package/dist/{useOnboardingStatus-IvWzxag4.js → useOnboardingStatus-oxdDvVQm.js} +1 -1
  259. package/dist/{useScenarios-DeR6rGue.js → useScenarios-D7H_IhJd.js} +2 -2
  260. package/dist/{useTermsOfServiceStatus-CFz_tBjI.js → useTermsOfServiceStatus-DVhtmxNr.js} +1 -1
  261. package/dist/{useToastContext-Bwbh8-u5.js → useToastContext-CutFPaxB.js} +2 -2
  262. package/dist/{useUnincorporatedPartnershipMembers-DRicq_6C.js → useUnincorporatedPartnershipMembers-Ca8kuLpf.js} +5 -5
  263. package/dist/{useUpdateBusinessLines-CKrKEmOI.js → useUpdateBusinessLines-CxcIFedN.js} +2 -2
  264. package/dist/{useUpdateLegalEntity-JgEj2H9L.js → useUpdateLegalEntity-ByoUAlrC.js} +3 -3
  265. package/dist/{utils-DnZtpTJ-.js → utils-Dq1W5jgi.js} +6 -6
  266. package/dist/{utils-DrbHJZYU.js → utils-Gn2bm9fz.js} +3 -3
  267. package/dist/{validate-DSeAPAYm.js → validate-BYqQ_kJW.js} +1 -1
  268. package/dist/{validate-BZ1lC0ot.js → validate-DWXDyeBc.js} +1 -1
  269. package/dist/{validationError-DXBqMDWR.js → validationError-CgErIRFL.js} +1 -1
  270. package/package.json +1 -1
  271. package/dist/JpAddress-D6Gj6H63.js +0 -271
  272. package/dist/ManageTermsOfServiceComponent-DPc1GRjG.js +0 -52
  273. package/dist/RootBusinessDetailsPage-BOgszPAQ.js +0 -46
  274. package/dist/SoleProprietorshipPage-Dm094P92.js +0 -46
  275. package/dist/UnincorporatedPartnershipMemberCompanyPage-CoclwaxX.js +0 -60
  276. package/dist/bg-BG-4gJjMBoz.js +0 -13
  277. package/dist/bg-BG-DBsXOteB.js +0 -30
  278. package/dist/bg-BG-DNp7JUA6.js +0 -13
  279. package/dist/cs-CZ-CxB0DJQ6.js +0 -13
  280. package/dist/cs-CZ-DzChComK.js +0 -30
  281. package/dist/da-DK-BlU1EczG.js +0 -30
  282. package/dist/da-DK-DEdQ-QPp.js +0 -13
  283. package/dist/da-DK-DqkN5oIu.js +0 -13
  284. package/dist/de-DE-COuUdtao.js +0 -13
  285. package/dist/de-DE-DrSSblam.js +0 -13
  286. package/dist/de-DE-s0B-XZyp.js +0 -30
  287. package/dist/el-GR-CgrzE6er.js +0 -30
  288. package/dist/el-GR-CjhbnLfE.js +0 -13
  289. package/dist/el-GR-z3YMr7LZ.js +0 -13
  290. package/dist/es-ES-DNGEW6V_.js +0 -13
  291. package/dist/es-ES-ShWaSuJd.js +0 -13
  292. package/dist/es-ES-esfwvKwz.js +0 -30
  293. package/dist/et-EE-BN1nOAGu.js +0 -30
  294. package/dist/et-EE-Be9wlXLD.js +0 -13
  295. package/dist/fi-FI-ChApf7lf.js +0 -13
  296. package/dist/fi-FI-CjB6QC01.js +0 -30
  297. package/dist/fi-FI-CoI_94Fv.js +0 -13
  298. package/dist/fr-FR-Br7OeDIe.js +0 -13
  299. package/dist/fr-FR-C1XqLftn.js +0 -30
  300. package/dist/fr-FR-Q3urMjbl.js +0 -13
  301. package/dist/hr-HR-CPvQ9uT8.js +0 -30
  302. package/dist/hr-HR-iodfRS4f.js +0 -13
  303. package/dist/hr-HR-jGIf2Gtl.js +0 -13
  304. package/dist/hu-HU-BjcOaEwh.js +0 -13
  305. package/dist/hu-HU-CEb_Wl4I.js +0 -13
  306. package/dist/hu-HU-dKPur6SA.js +0 -30
  307. package/dist/it-IT-BAvsF2TB.js +0 -13
  308. package/dist/it-IT-C_YDqVNT.js +0 -30
  309. package/dist/it-IT-vdMlF0Ha.js +0 -13
  310. package/dist/ja-JP-DnBu0U51.js +0 -30
  311. package/dist/ja-JP-US4BD67C.js +0 -13
  312. package/dist/lt-LT-DhhomRPs.js +0 -30
  313. package/dist/lt-LT-Y9aKpjC4.js +0 -13
  314. package/dist/lt-LT-os-nxAb0.js +0 -13
  315. package/dist/lv-LV-9NRF8DKM.js +0 -13
  316. package/dist/lv-LV-BWbH-gbT.js +0 -30
  317. package/dist/lv-LV-Bm1fntV2.js +0 -13
  318. package/dist/nl-NL-BwKrj-29.js +0 -13
  319. package/dist/nl-NL-C3YJkSIj.js +0 -13
  320. package/dist/nl-NL-DyeSX0PH.js +0 -30
  321. package/dist/no-NO-B6OPS2CA.js +0 -13
  322. package/dist/no-NO-DPRsAb_o.js +0 -30
  323. package/dist/pl-PL-B0BQdtqx.js +0 -13
  324. package/dist/pl-PL-B1EJKJvT.js +0 -30
  325. package/dist/pl-PL-xxcCzZvq.js +0 -13
  326. package/dist/pt-BR-BKQRvAfq.js +0 -13
  327. package/dist/pt-BR-C-C4ZJ9x.js +0 -30
  328. package/dist/pt-BR-gh27BC86.js +0 -13
  329. package/dist/pt-PT-D2Xe-OdG.js +0 -13
  330. package/dist/pt-PT-DYihdcJx.js +0 -13
  331. package/dist/pt-PT-LbneTcRx.js +0 -30
  332. package/dist/ro-RO-CzTVqkev.js +0 -30
  333. package/dist/ro-RO-Di-C4PpC.js +0 -13
  334. package/dist/ro-RO-WGnCVll9.js +0 -13
  335. package/dist/sk-SK-B0hEG-HR.js +0 -13
  336. package/dist/sk-SK-BMlZjg5s.js +0 -30
  337. package/dist/sk-SK-Cq_DSPZu.js +0 -13
  338. package/dist/sl-SI-8SzKx7XD.js +0 -30
  339. package/dist/sl-SI-C3gfuen3.js +0 -13
  340. package/dist/sl-SI-DdjgSySI.js +0 -13
  341. package/dist/sv-SE-B7cpKp1l.js +0 -30
  342. package/dist/sv-SE-zTiw1bUU.js +0 -13
@@ -2,17 +2,17 @@
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] = "a5807ae7-fb26-4f41-bbe1-95c71bf0468b", e._sentryDebugIdIdentifier = "sentry-dbid-a5807ae7-fb26-4f41-bbe1-95c71bf0468b");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a7dbb088-ed00-4d2c-a284-93bd617d7739", e._sentryDebugIdIdentifier = "sentry-dbid-a7dbb088-ed00-4d2c-a284-93bd617d7739");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { O as TaskTypes, r as LegalEntityTypes, u as useTranslation, c as useLegalEntity, R as ROOT_LE, a as addResourceBundles, L as Loader, a2 as useAnalyticsContext, B as Button, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CGako8b0.js";
10
+ import { O as TaskTypes, r as LegalEntityTypes, u as useTranslation, c as useLegalEntity, R as ROOT_LE, a as addResourceBundles, L as Loader, a3 as useAnalyticsContext, B as Button, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-Dgl7dBXc.js";
11
11
  import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
12
- import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
13
- import { S as StepProgressIndicator } from "./StepProgressIndicator-BwSGwPBX.js";
12
+ import { useState, useEffect } from "preact/hooks";
13
+ import { S as StepProgressIndicator } from "./StepProgressIndicator-BiUf_xud.js";
14
14
  import { useMemo } from "preact/compat";
15
- import { b as useCanSeeIntroduction, c as useLegalEntityType } from "./OnboardingDropinComponent-CLupKd1b.js";
15
+ import { b as useCanSeeIntroduction, c as useLegalEntityType } from "./OnboardingDropinComponent-BrHvygYb.js";
16
16
  const IntroductionScreens = {
17
17
  PROLOGUE: "PROLOGUE",
18
18
  INDIVIDUAL: TaskTypes.INDIVIDUAL,
@@ -85,68 +85,24 @@ const useIntroductionScreens = ({ legalEntity, tasks }) => {
85
85
  };
86
86
  const toCapitalized = (s) => `${s[0].toUpperCase()}${s.slice(1).toLowerCase()}`;
87
87
  const toPascalCase = (s) => s.split(/[^A-Za-z]/).map((word) => toCapitalized(word)).join("");
88
- const IntroductionStrings = {
89
- goToOverviewFromIntroduction: "Skip intro",
90
- introductionScreenAccountDescriptionP1: "For example, the account holder name and account number.",
91
- introductionScreenAccountDescriptionP2: "This is the bank account you use to send or receive funds.",
92
- introductionScreenAccountTitle: "Bank account details",
93
- introductionScreenCompanyDescriptionLI1: "Your company registration document",
94
- introductionScreenCompanyDescriptionP1: "For example, your company name and registration number.",
95
- introductionScreenCompanyDescriptionP2: "Where to find this information",
96
- introductionScreenCompanyTitle: "Company details",
97
- introductionScreenDecisionMakerDescriptionLI1: "Driver's license",
98
- introductionScreenDecisionMakerDescriptionLI2: "Passport",
99
- introductionScreenDecisionMakerDescriptionLI3: "ID document",
100
- introductionScreenDecisionMakerDescriptionP1: "For example, the name and address of important people in your company.",
101
- introductionScreenDecisionMakerDescriptionP2: "Where to find this information",
102
- introductionScreenDecisionMakerTitle: "Decision-makers",
103
- introductionScreenEpilogueDescriptionP1: "We check all this information against official records to verify your identity and comply with financial regulations.",
104
- introductionScreenEpilogueDescriptionP2: "Your information will be used only for these purposes.",
105
- introductionScreenEpilogueTitle: "Why do we need this information?",
106
- introductionScreenIndividualDescriptionLI1: "Driver's license",
107
- introductionScreenIndividualDescriptionLI2: "Passport",
108
- introductionScreenIndividualDescriptionLI3: "ID document",
109
- introductionScreenIndividualDescriptionP1: "For example, your name and residential address.",
110
- introductionScreenIndividualDescriptionP2: "Where to find this information",
111
- introductionScreenIndividualTitle: "Personal details",
112
- introductionScreenPrologueDescriptionP1: "We'll ask for some details about your business as part of financial regulations.",
113
- introductionScreenPrologueDescriptionP2: "Our advice? Have these details on hand so you can get verified quickly.",
114
- introductionScreenPrologueTitle: "Before you begin...",
115
- introductionScreenSoleProprietorCompanyDescriptionLI1: "Your sole proprietorship registration document",
116
- introductionScreenSoleProprietorCompanyDescriptionP1: "For example, your business name and tax identification number.",
117
- introductionScreenSoleProprietorCompanyDescriptionP2: "Where to find this information",
118
- introductionScreenSoleProprietorCompanyTitle: "Sole proprietorship details",
119
- introductionScreenTrustDescriptionLI1: "Your trust registration document",
120
- introductionScreenTrustDescriptionP1: "For example, your trust's name and business number. You'll also need to upload your trust deed.",
121
- introductionScreenTrustDescriptionP2: "Where to find this information",
122
- introductionScreenTrustMemberDescriptionLI1: "Driver's license",
123
- introductionScreenTrustMemberDescriptionLI2: "Passport",
124
- introductionScreenTrustMemberDescriptionLI3: "ID document",
125
- introductionScreenTrustMemberDescriptionP1: "The name, date of birth, and address of trust members such as settlors and beneficiaries.",
126
- introductionScreenTrustMemberDescriptionP2: "Where to find this information",
127
- introductionScreenTrustMemberTitle: "Trust members",
128
- introductionScreenTrustTitle: "Trust details"
129
- };
130
- const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
131
- __proto__: null,
132
- default: IntroductionStrings
133
- }, Symbol.toStringTag, { value: "Module" }));
134
88
  const IntroductionScreenTranslationKeyElements = {
135
89
  ListItem: "LI",
136
90
  Paragraph: "P"
137
91
  };
138
- const getIntroductionScreenTranslationKeys = (factors) => {
92
+ const getIntroductionScreenTranslationKeys = (factors, i18n) => {
93
+ const introductionStrings = i18n.getResourceBundle(i18n.language, "introduction");
94
+ if (!introductionStrings || !factors.legalEntityType) return;
139
95
  const elForKey = (factors.elementType || "").toUpperCase();
140
96
  const lForKey = toPascalCase(factors.legalEntityType || "");
141
97
  const iForKey = toPascalCase(factors.introductionScreen);
142
98
  const keyPrefix = `introductionScreen${iForKey}Description${elForKey}`;
143
99
  const keyPrefixWithL = `introductionScreen${iForKey}${lForKey}Description${elForKey}`;
144
- const keys = Object.keys(IntroductionStrings).filter((key) => key.startsWith(keyPrefix));
145
- const keysWithL = Object.keys(IntroductionStrings).filter(
100
+ const keys = Object.keys(introductionStrings).filter((key) => key.startsWith(keyPrefix));
101
+ const keysWithL = Object.keys(introductionStrings).filter(
146
102
  (key) => key.startsWith(keyPrefixWithL)
147
103
  );
148
104
  return (keysWithL.length ? keysWithL : keys).sort(
149
- (a, b) => Number(a.charAt(a.length - 1)) - Number(b.charAt(b.length - 1))
105
+ (a, b) => Number(a.at(-1)) - Number(b.at(-1))
150
106
  );
151
107
  };
152
108
  const IntroductionScreen = ({
@@ -154,23 +110,23 @@ const IntroductionScreen = ({
154
110
  legalEntity,
155
111
  number
156
112
  }) => {
157
- const { t } = useTranslation("introduction");
113
+ const { t, i18n } = useTranslation("introduction");
158
114
  const legalEntityType = useLegalEntityType({ legalEntity });
159
- const paragraphKeys = useMemo$1(
160
- () => legalEntityType ? getIntroductionScreenTranslationKeys({
115
+ const paragraphKeys = getIntroductionScreenTranslationKeys(
116
+ {
161
117
  introductionScreen,
162
118
  legalEntityType,
163
119
  elementType: IntroductionScreenTranslationKeyElements.Paragraph
164
- }) : void 0,
165
- [introductionScreen, legalEntityType]
120
+ },
121
+ i18n
166
122
  );
167
- const listItemKeys = useMemo$1(
168
- () => legalEntityType ? getIntroductionScreenTranslationKeys({
123
+ const listItemKeys = getIntroductionScreenTranslationKeys(
124
+ {
169
125
  introductionScreen,
170
126
  legalEntityType,
171
127
  elementType: IntroductionScreenTranslationKeyElements.ListItem
172
- }) : void 0,
173
- [introductionScreen, legalEntityType]
128
+ },
129
+ i18n
174
130
  );
175
131
  return /* @__PURE__ */ jsxs(Fragment, { children: [
176
132
  /* @__PURE__ */ jsx("div", { className: "adyen-kyc-introduction__number", children: number }),
@@ -187,7 +143,7 @@ function Introduction({ onExitIntroduction, tasks }) {
187
143
  const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
188
144
  const { i18n } = useTranslation();
189
145
  addResourceBundles(i18n, [
190
- { ns: "introduction", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/introduction/bg-BG.json": () => import("./bg-BG-BY3Wa361.js"), "../language/introduction/cs-CZ.json": () => import("./cs-CZ-BEFeaKsV.js"), "../language/introduction/da-DK.json": () => import("./da-DK-D6UK8XT9.js"), "../language/introduction/de-DE.json": () => import("./de-DE-DUl6gRKv.js"), "../language/introduction/el-GR.json": () => import("./el-GR-B5j7VZ3E.js"), "../language/introduction/en-US.json": () => Promise.resolve().then(() => enUS), "../language/introduction/es-ES.json": () => import("./es-ES-Cavm0szq.js"), "../language/introduction/et-EE.json": () => import("./et-EE-DUWZ2Vqm.js"), "../language/introduction/fi-FI.json": () => import("./fi-FI-DVa-ccaW.js"), "../language/introduction/fr-FR.json": () => import("./fr-FR-CY9emHgF.js"), "../language/introduction/hr-HR.json": () => import("./hr-HR-CnP5sqih.js"), "../language/introduction/hu-HU.json": () => import("./hu-HU-BTlpbCpc.js"), "../language/introduction/it-IT.json": () => import("./it-IT-GgHc0cHR.js"), "../language/introduction/ja-JP.json": () => import("./ja-JP-CbgaW99b.js"), "../language/introduction/lt-LT.json": () => import("./lt-LT-DTQGR9M0.js"), "../language/introduction/lv-LV.json": () => import("./lv-LV-BQ4F1GrV.js"), "../language/introduction/nl-NL.json": () => import("./nl-NL-CUcML482.js"), "../language/introduction/no-NO.json": () => import("./no-NO-BBCvsecq.js"), "../language/introduction/pl-PL.json": () => import("./pl-PL-kGaeUP-w.js"), "../language/introduction/pt-BR.json": () => import("./pt-BR-nU_2Wbo5.js"), "../language/introduction/pt-PT.json": () => import("./pt-PT-JVqqgvPs.js"), "../language/introduction/ro-RO.json": () => import("./ro-RO-C83h2zHZ.js"), "../language/introduction/sk-SK.json": () => import("./sk-SK-CgLJIuJw.js"), "../language/introduction/sl-SI.json": () => import("./sl-SI-BzeVaC1Z.js"), "../language/introduction/sv-SE.json": () => import("./sv-SE-CVmo11gI.js") }), `../language/introduction/${lang}.json`, 4) }
146
+ { ns: "introduction", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/introduction/bg-BG.json": () => import("./bg-BG-BY3Wa361.js"), "../language/introduction/cs-CZ.json": () => import("./cs-CZ-BEFeaKsV.js"), "../language/introduction/da-DK.json": () => import("./da-DK-D6UK8XT9.js"), "../language/introduction/de-DE.json": () => import("./de-DE-DUl6gRKv.js"), "../language/introduction/el-GR.json": () => import("./el-GR-B5j7VZ3E.js"), "../language/introduction/en-US.json": () => import("./en-US-BSQXKu6d.js"), "../language/introduction/es-ES.json": () => import("./es-ES-Cavm0szq.js"), "../language/introduction/et-EE.json": () => import("./et-EE-DUWZ2Vqm.js"), "../language/introduction/fi-FI.json": () => import("./fi-FI-DVa-ccaW.js"), "../language/introduction/fr-FR.json": () => import("./fr-FR-CY9emHgF.js"), "../language/introduction/hr-HR.json": () => import("./hr-HR-CnP5sqih.js"), "../language/introduction/hu-HU.json": () => import("./hu-HU-BTlpbCpc.js"), "../language/introduction/it-IT.json": () => import("./it-IT-GgHc0cHR.js"), "../language/introduction/ja-JP.json": () => import("./ja-JP-CbgaW99b.js"), "../language/introduction/lt-LT.json": () => import("./lt-LT-DTQGR9M0.js"), "../language/introduction/lv-LV.json": () => import("./lv-LV-BQ4F1GrV.js"), "../language/introduction/nl-NL.json": () => import("./nl-NL-CUcML482.js"), "../language/introduction/no-NO.json": () => import("./no-NO-BBCvsecq.js"), "../language/introduction/pl-PL.json": () => import("./pl-PL-kGaeUP-w.js"), "../language/introduction/pt-BR.json": () => import("./pt-BR-nU_2Wbo5.js"), "../language/introduction/pt-PT.json": () => import("./pt-PT-JVqqgvPs.js"), "../language/introduction/ro-RO.json": () => import("./ro-RO-C83h2zHZ.js"), "../language/introduction/sk-SK.json": () => import("./sk-SK-CgLJIuJw.js"), "../language/introduction/sl-SI.json": () => import("./sl-SI-BzeVaC1Z.js"), "../language/introduction/sv-SE.json": () => import("./sv-SE-CVmo11gI.js") }), `../language/introduction/${lang}.json`, 4) }
191
147
  ]);
192
148
  if (isLoading || !rootLe) {
193
149
  return /* @__PURE__ */ jsx(Loader, { size: "large" });
@@ -0,0 +1,295 @@
1
+ ;
2
+ {
3
+ try {
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] = "3bc2c768-081d-4fd2-ac80-f6dc276bfca5", e._sentryDebugIdIdentifier = "sentry-dbid-3bc2c768-081d-4fd2-ac80-f6dc276bfca5");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { jsx, jsxs } from "preact/jsx-runtime";
11
+ import { useState, useEffect } from "preact/hooks";
12
+ import { b as useApiContext, j as useQuery, m as httpGet, a5 as noop, u as useTranslation, V as useI18nContext, X as useExperimentsContext, a3 as useAnalyticsContext, P as createLogger, C as CountryCodes, G as Typography } from "./StoreProvider-Dgl7dBXc.js";
13
+ import { F as Field, u as useForm } from "./useForm-BmCWMPbB.js";
14
+ import { S as StackLayout, L as List } from "./CountryField-NrSdQlWq.js";
15
+ import { M as MaskedInput, m as makeMask, n as numericInputs, d as nonInputs, E as convertFullToHalf, z as Spacer } from "./Spacer-DTg9NYBB.js";
16
+ import { I as InputText } from "./InputText-CQ6woYx3.js";
17
+ import { V as JP_ADDRESS_REQUIRED_FIELDS, j as toFullWidth } from "./IndividualOnfido-BYT0nG-5.js";
18
+ import { q as addressValidationRulesV4, r as addressValidationRules } from "./Address-L2yF0rj3.js";
19
+ import { u as useDebouncedCallback } from "./debouncedInputEvent-iHbpO4uP.js";
20
+ const retrieveFromPostcodeJp = async (legalEntityId, baseUrl, postalCode) => httpGet({
21
+ baseUrl,
22
+ path: `legalEntities/${legalEntityId}/addresses/jp/${postalCode}`
23
+ });
24
+ const useRetrieveFromPostcodeJp = (postalCode, options) => {
25
+ const { rootLegalEntityId, baseUrl } = useApiContext();
26
+ return useQuery({
27
+ queryKey: ["retrieveAddress", postalCode],
28
+ queryFn: () => retrieveFromPostcodeJp(rootLegalEntityId.value, baseUrl.value, postalCode),
29
+ retry: false,
30
+ ...options
31
+ });
32
+ };
33
+ const ReadonlyTextField = ({ name, label, value }) => /* @__PURE__ */ jsx(Field, { name, label, children: (innerProps) => /* @__PURE__ */ jsx(InputText, { ...innerProps, name, type: "text", value, onInput: noop, readonly: true }) });
34
+ const logger = createLogger();
35
+ const JpAddress = ({
36
+ addressType,
37
+ data: dataProp,
38
+ handleFieldChange,
39
+ errors: propErrors,
40
+ valid: propValid,
41
+ fieldValidationErrors: propFieldValidationErrors,
42
+ onChange
43
+ }) => {
44
+ const { t } = useTranslation("common");
45
+ const { i18n } = useI18nContext();
46
+ const { isExperimentEnabled } = useExperimentsContext();
47
+ const userEvents = useAnalyticsContext();
48
+ const form = useForm({
49
+ schema: JP_ADDRESS_REQUIRED_FIELDS,
50
+ defaultData: dataProp,
51
+ rules: isExperimentEnabled("StrictNameAndAddressValidationV4") ? addressValidationRulesV4(CountryCodes.Japan, i18n) : addressValidationRules(CountryCodes.Japan),
52
+ fieldProblems: propFieldValidationErrors
53
+ });
54
+ let {
55
+ handleChangeFor,
56
+ data: formData,
57
+ errors: formErrors,
58
+ valid: formValid,
59
+ fieldProblems: formFieldProblems
60
+ } = form;
61
+ const { isValid: formIsValid } = form;
62
+ if (handleFieldChange) {
63
+ handleChangeFor = handleFieldChange;
64
+ formData = dataProp ?? {};
65
+ formErrors = propErrors;
66
+ formValid = propValid;
67
+ formFieldProblems = propFieldValidationErrors;
68
+ }
69
+ const [postcodeToSearch, setPostcodeToSearch] = useState(formData.postalCode ?? "");
70
+ const debouncedSetPostcodeToSearch = useDebouncedCallback(setPostcodeToSearch, 1e3);
71
+ const retrieveFromPostcodeQuery = useRetrieveFromPostcodeJp(postcodeToSearch, {
72
+ enabled: postcodeToSearch !== ""
73
+ });
74
+ useEffect(() => {
75
+ if (retrieveFromPostcodeQuery.error) {
76
+ logger.error(retrieveFromPostcodeQuery.error.message);
77
+ handleChangeFor("jaHaniStateOrProvince")(void 0);
78
+ handleChangeFor("jaHaniCity")(void 0);
79
+ handleChangeFor("jaKanaStateOrProvince")(void 0);
80
+ handleChangeFor("jaKanaCity")(void 0);
81
+ handleChangeFor("stateOrProvince")(void 0);
82
+ handleChangeFor("city")(void 0);
83
+ return;
84
+ }
85
+ if (!retrieveFromPostcodeQuery.data) return;
86
+ userEvents.addPageEvent("Success", {
87
+ actionType: "select",
88
+ actionLevel: "field",
89
+ returnType: "backend",
90
+ returnValue: "retrieveAddress"
91
+ });
92
+ const scriptResults = retrieveFromPostcodeQuery.data.multilocale;
93
+ if (!scriptResults) return;
94
+ const jaHani = scriptResults.find((script) => script.locale === "ja-Hani");
95
+ const jaKana = scriptResults.find((script) => script.locale === "ja-Kana");
96
+ const en = scriptResults.find((script) => script.locale === "en");
97
+ if (jaHani) {
98
+ handleChangeFor("jaHaniStateOrProvince")(jaHani.stateOrProvince);
99
+ handleChangeFor("jaHaniCity")(jaHani.city);
100
+ }
101
+ if (jaKana) {
102
+ handleChangeFor("jaKanaStateOrProvince")(jaKana.stateOrProvince);
103
+ handleChangeFor("jaKanaCity")(jaKana.city);
104
+ }
105
+ if (en) {
106
+ handleChangeFor("stateOrProvince")(en.stateOrProvince);
107
+ handleChangeFor("city")(en.city);
108
+ }
109
+ }, [retrieveFromPostcodeQuery.data, retrieveFromPostcodeQuery.error, userEvents]);
110
+ useEffect(() => {
111
+ onChange?.({
112
+ schema: JP_ADDRESS_REQUIRED_FIELDS,
113
+ data: {
114
+ ...formData,
115
+ country: CountryCodes.Japan
116
+ },
117
+ errors: formErrors,
118
+ valid: formValid,
119
+ fieldProblems: formFieldProblems,
120
+ isValid: formIsValid
121
+ });
122
+ }, [formData, formErrors, formFieldProblems, formIsValid, formValid]);
123
+ return /* @__PURE__ */ jsxs("fieldset", { children: [
124
+ /* @__PURE__ */ jsx(Typography, { el: "legend", variant: "title", children: t(($) => $[addressType]) }),
125
+ /* @__PURE__ */ jsx(
126
+ MaskedInput,
127
+ {
128
+ name: "postalCode",
129
+ type: "text",
130
+ label: t(($) => $.postalCode),
131
+ value: formData.postalCode ?? "",
132
+ isValid: formValid.postalCode,
133
+ errorMessage: formErrors.postalCode?.errorMessage ?? formErrors.postalCode?.hasError,
134
+ onInput: (value) => {
135
+ handleChangeFor("postalCode", "input")(value);
136
+ debouncedSetPostcodeToSearch(value);
137
+ },
138
+ onBlur: handleChangeFor("postalCode", "blur"),
139
+ mask: makeMask(...numericInputs(3), ...nonInputs(" - "), ...numericInputs(4)),
140
+ formatGuidance: t(($) => $.enterNDigitsForExample, {
141
+ numDigits: "7",
142
+ example: "530-0001"
143
+ })
144
+ }
145
+ ),
146
+ /* @__PURE__ */ jsxs(StackLayout, { gap: "medium", children: [
147
+ /* @__PURE__ */ jsx(List, { dividers: false, variant: "grouped-primary", children: /* @__PURE__ */ jsxs("fieldset", { children: [
148
+ /* @__PURE__ */ jsx(Typography, { el: "legend", variant: "body-strongest", children: t(($) => $.kanjiAddress) }),
149
+ /* @__PURE__ */ jsxs(StackLayout, { horizontal: true, children: [
150
+ /* @__PURE__ */ jsx(
151
+ ReadonlyTextField,
152
+ {
153
+ name: "jaHaniStateOrProvince",
154
+ label: t(($) => $.prefecture),
155
+ value: formData.jaHaniStateOrProvince
156
+ }
157
+ ),
158
+ /* @__PURE__ */ jsx(
159
+ ReadonlyTextField,
160
+ {
161
+ name: "jaHaniCity",
162
+ label: t(($) => $.districtTownAreaCityWard),
163
+ value: formData.jaHaniCity
164
+ }
165
+ )
166
+ ] }),
167
+ /* @__PURE__ */ jsxs(StackLayout, { horizontal: true, children: [
168
+ /* @__PURE__ */ jsx(
169
+ Field,
170
+ {
171
+ name: "otherAddressInformationFullWidth",
172
+ label: t(($) => $.chomeAndBanchi),
173
+ isValid: formValid.otherAddressInformation,
174
+ errorMessage: formErrors.otherAddressInformation?.errorMessage ?? formErrors.otherAddressInformation?.hasError,
175
+ children: (childProps) => /* @__PURE__ */ jsx(
176
+ InputText,
177
+ {
178
+ ...childProps,
179
+ value: formData.otherAddressInformationFullWidth ?? "",
180
+ onInput: (e) => {
181
+ handleChangeFor("otherAddressInformationFullWidth", "input")(e);
182
+ handleChangeFor(
183
+ "otherAddressInformation",
184
+ "input"
185
+ )({
186
+ ...e,
187
+ target: {
188
+ ...e.target,
189
+ value: convertFullToHalf(e.target.value)
190
+ }
191
+ });
192
+ },
193
+ onBlur: handleChangeFor("otherAddressInformationFullWidth", "blur"),
194
+ transformInput: (value) => toFullWidth(value)
195
+ }
196
+ )
197
+ }
198
+ ),
199
+ /* @__PURE__ */ jsx(Spacer, {})
200
+ ] }),
201
+ /* @__PURE__ */ jsx(
202
+ Field,
203
+ {
204
+ name: "jaHaniAddress",
205
+ label: t(($) => $.buildingNameFloorRoomNumberEtc),
206
+ isValid: formValid.jaHaniAddress,
207
+ errorMessage: formErrors.jaHaniAddress?.errorMessage ?? formErrors.jaHaniAddress?.hasError,
208
+ children: (childProps) => /* @__PURE__ */ jsx(
209
+ InputText,
210
+ {
211
+ ...childProps,
212
+ onInput: handleChangeFor("jaHaniAddress", "input"),
213
+ value: formData.jaHaniAddress,
214
+ transformInput: (value) => toFullWidth(value)
215
+ }
216
+ )
217
+ }
218
+ )
219
+ ] }) }),
220
+ /* @__PURE__ */ jsx(List, { dividers: false, variant: "grouped-primary", children: /* @__PURE__ */ jsxs("fieldset", { children: [
221
+ /* @__PURE__ */ jsx(Typography, { el: "legend", variant: "body-strongest", children: t(($) => $.katakanaAddress) }),
222
+ /* @__PURE__ */ jsxs(StackLayout, { horizontal: true, children: [
223
+ /* @__PURE__ */ jsx(
224
+ ReadonlyTextField,
225
+ {
226
+ name: "jaKanaStateOrProvince",
227
+ label: t(($) => $.prefecture),
228
+ value: formData.jaKanaStateOrProvince
229
+ }
230
+ ),
231
+ /* @__PURE__ */ jsx(
232
+ ReadonlyTextField,
233
+ {
234
+ name: "jaKanaCity",
235
+ label: t(($) => $.districtTownAreaCityWard),
236
+ value: formData.jaKanaCity
237
+ }
238
+ )
239
+ ] })
240
+ ] }) }),
241
+ /* @__PURE__ */ jsx(List, { dividers: false, variant: "grouped-primary", children: /* @__PURE__ */ jsxs("fieldset", { children: [
242
+ /* @__PURE__ */ jsx(Typography, { el: "legend", variant: "body-strongest", children: t(($) => $.romajiAddress) }),
243
+ /* @__PURE__ */ jsxs(StackLayout, { horizontal: true, children: [
244
+ /* @__PURE__ */ jsx(
245
+ ReadonlyTextField,
246
+ {
247
+ name: "stateOrProvince",
248
+ label: t(($) => $.prefecture),
249
+ value: formData.stateOrProvince
250
+ }
251
+ ),
252
+ /* @__PURE__ */ jsx(
253
+ ReadonlyTextField,
254
+ {
255
+ name: "city",
256
+ label: t(($) => $.districtTownAreaCityWard),
257
+ value: formData.city
258
+ }
259
+ )
260
+ ] }),
261
+ /* @__PURE__ */ jsxs(StackLayout, { horizontal: true, children: [
262
+ /* @__PURE__ */ jsx(
263
+ ReadonlyTextField,
264
+ {
265
+ name: "otherAddressInformation",
266
+ label: t(($) => $.chomeAndBanchi),
267
+ value: formData.otherAddressInformation
268
+ }
269
+ ),
270
+ /* @__PURE__ */ jsx(Spacer, {})
271
+ ] }),
272
+ /* @__PURE__ */ jsx(
273
+ Field,
274
+ {
275
+ name: "address",
276
+ label: t(($) => $.buildingNameFloorRoomNumberEtc),
277
+ isValid: formValid.address,
278
+ errorMessage: formErrors.address?.errorMessage ?? formErrors.address?.hasError,
279
+ children: (childProps) => /* @__PURE__ */ jsx(
280
+ InputText,
281
+ {
282
+ ...childProps,
283
+ onInput: handleChangeFor("address", "input"),
284
+ value: formData.address
285
+ }
286
+ )
287
+ }
288
+ )
289
+ ] }) })
290
+ ] })
291
+ ] });
292
+ };
293
+ export {
294
+ JpAddress
295
+ };
@@ -2,15 +2,15 @@
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] = "80f8eba7-1bd7-45ae-aa7e-7ca90608fa79", e._sentryDebugIdIdentifier = "sentry-dbid-80f8eba7-1bd7-45ae-aa7e-7ca90608fa79");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "93aa143c-86e6-46a0-821b-ab3a2875b074", e._sentryDebugIdIdentifier = "sentry-dbid-93aa143c-86e6-46a0-821b-ab3a2875b074");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as useLegalEntity, w as skipToken, R as ROOT_LE, X as useExperimentsContext, u as useTranslation, a as addResourceBundles, L as Loader, g as getLegalEntityCountry, M as EntityTypes, ak as isOnfidoAutofillFlowEnabled, a4 as noop, O as TaskTypes, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CGako8b0.js";
10
+ import { c as useLegalEntity, w as skipToken, R as ROOT_LE, X as useExperimentsContext, u as useTranslation, a as addResourceBundles, L as Loader, g as getLegalEntityCountry, M as EntityTypes, al as isOnfidoAutofillFlowEnabled, a5 as noop, O as TaskTypes, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-Dgl7dBXc.js";
11
11
  import { jsx } from "preact/jsx-runtime";
12
- import { i as useCapabilityProblems, j as getProblemsForEntity } from "./Spacer-DNqjKZqD.js";
13
- import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-CMvXInSa.js";
12
+ import { i as useCapabilityProblems, j as getProblemsForEntity } from "./Spacer-DTg9NYBB.js";
13
+ import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-vZZxkmpv.js";
14
14
  function LegalRepresentativeDetailsPage({
15
15
  legalRepresentativeId,
16
16
  asModal = false,
@@ -2,15 +2,15 @@
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] = "e15c87ac-e06e-4a87-89dd-d81afced2df3", e._sentryDebugIdIdentifier = "sentry-dbid-e15c87ac-e06e-4a87-89dd-d81afced2df3");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0f3d8966-af15-4328-bd40-9e1edb1466b1", e._sentryDebugIdIdentifier = "sentry-dbid-0f3d8966-af15-4328-bd40-9e1edb1466b1");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
11
11
  import cx from "classnames";
12
- import { A as Avatar } from "./Avatar-1gT2TOqE.js";
13
- import { a3 as Icon } from "./StoreProvider-CGako8b0.js";
12
+ import { A as Avatar } from "./Avatar-DtK8HezD.js";
13
+ import { a4 as Icon } from "./StoreProvider-Dgl7dBXc.js";
14
14
  const listItem = "adyen-kyc-list-item";
15
15
  const listItemInteractive = "adyen-kyc-list-item-interactive";
16
16
  const listItemText = "adyen-kyc-list-item-text";
@@ -7,11 +7,11 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { u as useTranslation, b as useApiContext, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper, c as useLegalEntity, R as ROOT_LE } from "./StoreProvider-CGako8b0.js";
10
+ import { u as useTranslation, b as useApiContext, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper, c as useLegalEntity, R as ROOT_LE } from "./StoreProvider-Dgl7dBXc.js";
11
11
  import { jsx } from "preact/jsx-runtime";
12
- import { u as useOnboardingStatus } from "./useOnboardingStatus-IvWzxag4.js";
12
+ import { u as useOnboardingStatus } from "./useOnboardingStatus-oxdDvVQm.js";
13
13
  import { O as OnboardingStatuses } from "./view-verification-status-VFcBydkR.js";
14
- import { E as EmbeddedStatus } from "./EmbeddedStatus-CbWjM1iG.js";
14
+ import { E as EmbeddedStatus } from "./EmbeddedStatus-CnokSZuD.js";
15
15
  function ManageIndividualComponent({
16
16
  legalEntityId,
17
17
  onClick
@@ -20,7 +20,7 @@ function ManageIndividualComponent({
20
20
  const { rootLegalEntityId: currentLegalEntityId } = useApiContext();
21
21
  currentLegalEntityId.value = legalEntityId;
22
22
  addResourceBundles(i18n, [
23
- { ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-4gJjMBoz.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-CxB0DJQ6.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-DqkN5oIu.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-COuUdtao.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-CjhbnLfE.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-CGako8b0.js").then((n) => n.bN), "../../../language/locales/es-ES.json": () => import("./es-ES-DNGEW6V_.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-Be9wlXLD.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-CoI_94Fv.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-Br7OeDIe.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-iodfRS4f.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-CEb_Wl4I.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-BAvsF2TB.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-US4BD67C.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-os-nxAb0.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-9NRF8DKM.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-BwKrj-29.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-B6OPS2CA.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-B0BQdtqx.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-BKQRvAfq.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-D2Xe-OdG.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-WGnCVll9.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-Cq_DSPZu.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-C3gfuen3.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-zTiw1bUU.js") }), `../../../language/locales/${lang}.json`, 6) }
23
+ { ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-DVjwfSz4.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-CLY9qYTs.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-uHPPFvD-.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-SMf6w4NJ.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-wv99Y9Yf.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-Dgl7dBXc.js").then((n) => n.bN), "../../../language/locales/es-ES.json": () => import("./es-ES-BqpvBqmR.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-CAuCY0qn.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-DPegZzTc.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-BPGwsLDa.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-DdqNL1pQ.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-C1LJENXO.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-B1eJg9RL.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-PnqAHl14.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-BmRnIfWs.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-CX9j9Dtv.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-cVVIDG7s.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-C_tmZ39d.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-DFZFSKZX.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-CMiGlY3k.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-DmdQxN_1.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-B0slmyWK.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-BptPuon4.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-C3nGkfNb.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-CXn28ybc.js") }), `../../../language/locales/${lang}.json`, 6) }
24
24
  ]);
25
25
  const { data: legalEntityData } = useLegalEntity(ROOT_LE);
26
26
  const { isPending, data: onboardingStatusData } = useOnboardingStatus({
@@ -0,0 +1,52 @@
1
+ ;
2
+ {
3
+ try {
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] = "680785de-5470-472b-a506-eedf214fc1f2", e._sentryDebugIdIdentifier = "sentry-dbid-680785de-5470-472b-a506-eedf214fc1f2");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { b as useApiContext, u as useTranslation, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-Dgl7dBXc.js";
11
+ import { jsx } from "preact/jsx-runtime";
12
+ import { a as useTermsOfServiceAcceptanceInfos, u as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-DVhtmxNr.js";
13
+ import { E as EmbeddedStatus } from "./EmbeddedStatus-CnokSZuD.js";
14
+ function ManageTermsOfServiceComponent({
15
+ legalEntityId,
16
+ onClick
17
+ }) {
18
+ const { rootLegalEntityId: currentLegalEntityId } = useApiContext();
19
+ currentLegalEntityId.value = legalEntityId;
20
+ const { i18n, t } = useTranslation(["ui", "contract"]);
21
+ const { isLoading: isLoadingSigned, data: signedData } = useTermsOfServiceAcceptanceInfos();
22
+ const { isLoading: isLoadingUnsigned, data: unsignedData } = useTermsOfServiceStatus();
23
+ addResourceBundles(i18n, [
24
+ { ns: "ui", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/bg-BG.json": () => import("./bg-BG-CCwKQVVV.js"), "../../ui/language/cs-CZ.json": () => import("./cs-CZ-CVvNUABW.js"), "../../ui/language/da-DK.json": () => import("./da-DK-CoTdzXlA.js"), "../../ui/language/de-DE.json": () => import("./de-DE-z0cPgxGN.js"), "../../ui/language/el-GR.json": () => import("./el-GR-B9TRk3Pi.js"), "../../ui/language/en-US.json": () => import("./en-US-BzrLvydZ.js"), "../../ui/language/es-ES.json": () => import("./es-ES-DUn82eVS.js"), "../../ui/language/et-EE.json": () => import("./et-EE-CUXar-DY.js"), "../../ui/language/fi-FI.json": () => import("./fi-FI-C3TTCFBv.js"), "../../ui/language/fr-FR.json": () => import("./fr-FR-BbKadiaZ.js"), "../../ui/language/hr-HR.json": () => import("./hr-HR-D2LmWe5I.js"), "../../ui/language/hu-HU.json": () => import("./hu-HU-CFuBc8VP.js"), "../../ui/language/it-IT.json": () => import("./it-IT-CGhQqmiU.js"), "../../ui/language/ja-JP.json": () => import("./ja-JP-CvREJ56h.js"), "../../ui/language/lt-LT.json": () => import("./lt-LT-CZwu5zZ0.js"), "../../ui/language/lv-LV.json": () => import("./lv-LV-DVFCj1OR.js"), "../../ui/language/nl-NL.json": () => import("./nl-NL-OHlJx2bn.js"), "../../ui/language/no-NO.json": () => import("./no-NO-DEYydng4.js"), "../../ui/language/pl-PL.json": () => import("./pl-PL-DMbe5XnW.js"), "../../ui/language/pt-BR.json": () => import("./pt-BR-DWAziFjb.js"), "../../ui/language/pt-PT.json": () => import("./pt-PT-LP8g5mC9.js"), "../../ui/language/ro-RO.json": () => import("./ro-RO-BQSoJrlf.js"), "../../ui/language/sk-SK.json": () => import("./sk-SK-CwieqNyR.js"), "../../ui/language/sl-SI.json": () => import("./sl-SI-C5vfq7vv.js"), "../../ui/language/sv-SE.json": () => import("./sv-SE-BrO9NKWs.js") }), `../../ui/language/${lang}.json`, 5) },
25
+ { ns: "contract", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../Contract/language/bg-BG.json": () => import("./bg-BG-K7feXvEc.js"), "../../Contract/language/cs-CZ.json": () => import("./cs-CZ-CYQO0o5V.js"), "../../Contract/language/da-DK.json": () => import("./da-DK-CGWvmdkq.js"), "../../Contract/language/de-DE.json": () => import("./de-DE-DHDJhahG.js"), "../../Contract/language/el-GR.json": () => import("./el-GR-DHNlnOwf.js"), "../../Contract/language/en-US.json": () => import("./en-US-DoiQhi0j.js"), "../../Contract/language/es-ES.json": () => import("./es-ES-CxnsKEh4.js"), "../../Contract/language/et-EE.json": () => import("./et-EE-BQixWUEV.js"), "../../Contract/language/fi-FI.json": () => import("./fi-FI-57-xkioo.js"), "../../Contract/language/fr-FR.json": () => import("./fr-FR-BxiX8Zfi.js"), "../../Contract/language/hr-HR.json": () => import("./hr-HR-BynZTNSB.js"), "../../Contract/language/hu-HU.json": () => import("./hu-HU-BtRIDozk.js"), "../../Contract/language/it-IT.json": () => import("./it-IT-masgjk9F.js"), "../../Contract/language/ja-JP.json": () => import("./ja-JP-vv3-YsHU.js"), "../../Contract/language/lt-LT.json": () => import("./lt-LT-2BMif2Bk.js"), "../../Contract/language/lv-LV.json": () => import("./lv-LV-CHdEDRVO.js"), "../../Contract/language/nl-NL.json": () => import("./nl-NL-D1b5RUJ0.js"), "../../Contract/language/no-NO.json": () => import("./no-NO-Dkh4SWbB.js"), "../../Contract/language/pl-PL.json": () => import("./pl-PL-BkGihn5Q.js"), "../../Contract/language/pt-BR.json": () => import("./pt-BR-BRdIEO2O.js"), "../../Contract/language/pt-PT.json": () => import("./pt-PT-BfL7qUzo.js"), "../../Contract/language/ro-RO.json": () => import("./ro-RO-C2yBVFht.js"), "../../Contract/language/sk-SK.json": () => import("./sk-SK-C74EF23u.js"), "../../Contract/language/sl-SI.json": () => import("./sl-SI-CvUzNn9Z.js"), "../../Contract/language/sv-SE.json": () => import("./sv-SE-BsLkPEzn.js") }), `../../Contract/language/${lang}.json`, 5) }
26
+ ]);
27
+ const signed = signedData?.data?.map((d) => d.type);
28
+ const unsigned = unsignedData?.termsOfServiceTypes;
29
+ const hasSignedAll = signed?.length !== 0 && unsigned?.length === 0;
30
+ const isLoading = isLoadingSigned && isLoadingUnsigned;
31
+ const title = t(($) => $["serviceAgreements"], { ns: "contract" });
32
+ return hasSignedAll ? /* @__PURE__ */ jsx(
33
+ EmbeddedStatus,
34
+ {
35
+ onClick,
36
+ title,
37
+ tag: { text: t(($) => $["complete"]), variant: "green" },
38
+ loading: isLoading
39
+ }
40
+ ) : /* @__PURE__ */ jsx(
41
+ EmbeddedStatus,
42
+ {
43
+ onClick,
44
+ actionIndicator: { text: t(($) => $["accept"], { ns: "contract" }) },
45
+ title,
46
+ loading: isLoading
47
+ }
48
+ );
49
+ }
50
+ export {
51
+ ManageTermsOfServiceComponent as M
52
+ };