@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.
- package/dist/{AcceptTermsOfServiceComponent-rHbpLgiw.js → AcceptTermsOfServiceComponent-Dn0l4-44.js} +15 -15
- package/dist/{Accordion-bNe23ft-.js → Accordion-BIfsF-ii.js} +2 -2
- package/dist/{AccountSetupRejected-r41b_IBZ.js → AccountSetupRejected-BZEuVm0z.js} +3 -3
- package/dist/{ActionBar-Dis5nYqm.js → ActionBar-Cd_dURV3.js} +1 -1
- package/dist/{Address-yCSNuL5Z.js → Address-L2yF0rj3.js} +8 -8
- package/dist/{Alert-BwI1gE5-.js → Alert-XDWse9R9.js} +18 -8
- package/dist/{Avatar-1gT2TOqE.js → Avatar-DtK8HezD.js} +2 -2
- package/dist/{BusinessFinancingComponent-DoZY3vBl.js → BusinessFinancingComponent-BHHVQgPT.js} +5 -5
- package/dist/{BusinessFinancingDropin-BUPkJPvR.js → BusinessFinancingDropin-BKLFxDRz.js} +23 -22
- package/dist/{BusinessFinancingPage-DlRDYso0.js → BusinessFinancingPage-CyxKBf4A.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-H5Rr-qjO.js → BusinessTypeSelectionPage-B2_jh2gd.js} +8 -8
- package/dist/{Card-BqxNTWDR.js → Card-bVEv3jgS.js} +4 -4
- package/dist/{ConstitutionalDocument-DQ2y25Wo.js → ConstitutionalDocument-BIP14sQW.js} +3 -3
- package/dist/{CountryField-0kaLf2ip.js → CountryField-NrSdQlWq.js} +6 -6
- package/dist/{CreateIndividualComponent-CKoFrGSA.js → CreateIndividualComponent-Brs4zv6O.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-27-zWC7w.js → CreateTransferInstrumentComponent-9A-WpDeB.js} +5 -5
- package/dist/{Currency-BPrz2Bvj.js → Currency-DWHl-Udz.js} +4 -4
- package/dist/{CustomerSupport-Let8plHp.js → CustomerSupport-9t9iQcAa.js} +10 -10
- package/dist/{DebugModal-COjbEBUs.js → DebugModal-C8twwNLd.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-DIhFG7Pm.js → DecisionMakerDetailsPage-BOcY8gtD.js} +6 -6
- package/dist/{DecisionMakers-p-wru8jq.js → DecisionMakers-DDhlHa6w.js} +20 -20
- package/dist/{EmbeddedStatus-CbWjM1iG.js → EmbeddedStatus-CnokSZuD.js} +11 -13
- package/dist/{EndStateLayout-zmc2wXNu.js → EndStateLayout-n2vQmPyo.js} +2 -2
- package/dist/{EntityAssociation-DaOk478U.js → EntityAssociation-BLIsqEDN.js} +8 -8
- package/dist/{EntityGuidanceStatus-C52S57_B.js → EntityGuidanceStatus-CP3ZQkcf.js} +3 -3
- package/dist/{FormFlow-Bv1422cp.js → FormFlow-CKr0sy8L.js} +59 -39
- package/dist/{FormNavigation-CeOkSTKj.js → FormNavigation-YVewktyA.js} +3 -3
- package/dist/{FormWrapper-DozSnYxU.js → FormWrapper-D_vUS9Z7.js} +10 -10
- package/dist/{IndividualOnfido-DH3MaGPp.js → IndividualOnfido-BYT0nG-5.js} +95 -64
- package/dist/{IndividualOnfidoDropin-CMvXInSa.js → IndividualOnfidoDropin-vZZxkmpv.js} +35 -29
- package/dist/{InputText-E3bqmvue.js → InputText-CQ6woYx3.js} +4 -4
- package/dist/{Introduction-BLV8LKKc.js → Introduction-Dnxk9iKa.js} +21 -65
- package/dist/JpAddress-D8-PoYQj.js +295 -0
- package/dist/{LegalRepresentativeDetailsPage-Dy5UJGSJ.js → LegalRepresentativeDetailsPage-C71oi0I7.js} +4 -4
- package/dist/{ListItem-CNkfdEc2.js → ListItem-CEjkofDu.js} +3 -3
- package/dist/{ManageIndividualComponent-3ycR2pfZ.js → ManageIndividualComponent-CS4ck6BQ.js} +4 -4
- package/dist/ManageTermsOfServiceComponent-D-4xj7a2.js +52 -0
- package/dist/{ManageTransferInstrumentComponent-CIg_pns4.js → ManageTransferInstrumentComponent-CXLwFDUB.js} +14 -14
- package/dist/{MaybeModal-CdOrwKiX.js → MaybeModal-D_76Tc3g.js} +2 -2
- package/dist/{Modal-CCNcDrnP.js → Modal-2wdHXVI8.js} +9 -11
- package/dist/{OnboardingDropinComponent-CLupKd1b.js → OnboardingDropinComponent-BrHvygYb.js} +241 -191
- package/dist/{PayoutDetailsDropin-CEV9cjQf.js → PayoutDetailsDropin-COkMHdGI.js} +85 -42
- package/dist/{Review-otEDatuj.js → Review-ruIkpP8F.js} +7 -7
- package/dist/RootBusinessDetailsPage-BZNx8ZjT.js +49 -0
- package/dist/{RootBusinessLinesPage-GYAoDeKt.js → RootBusinessLinesPage-9LFMQ5z_.js} +222 -175
- package/dist/{RootIndividualDetailsPage-D9zsUi0y.js → RootIndividualDetailsPage-F2fdzLat.js} +6 -6
- package/dist/{SignPCIComponent-BL7aG_Ax.js → SignPCIComponent-C81oIZNp.js} +12 -12
- package/dist/{SingpassSelection-Dnh00Fel.js → SingpassSelection-CbvT4d8u.js} +4 -4
- package/dist/SoleProprietorshipPage-BFo0fBlE.js +49 -0
- package/dist/{SourceOfFundsPage-b1c_Y4Gv.js → SourceOfFundsPage-rmtNMeq-.js} +25 -25
- package/dist/{Spacer-DNqjKZqD.js → Spacer-DTg9NYBB.js} +10 -9
- package/dist/{StepProgressIndicator-BwSGwPBX.js → StepProgressIndicator-BiUf_xud.js} +1 -1
- package/dist/{StoreProvider-CGako8b0.js → StoreProvider-Dgl7dBXc.js} +38 -38
- package/dist/{Summary-Cyl7hd3z.js → Summary-BZn7Ovck.js} +4 -4
- package/dist/{TaxReportingDropin-CtEcxZE3.js → TaxReportingDropin-BP-Q9qFd.js} +17 -16
- package/dist/{TrustDetailsPage-mQFzwpXO.js → TrustDetailsPage-O_efBZlx.js} +28 -27
- package/dist/{TrustMemberCompanyPage-9OQMcPjI.js → TrustMemberCompanyPage-DRaHLSon.js} +15 -8
- package/dist/{TrustMemberIndividualPage-CLF0ZjQl.js → TrustMemberIndividualPage-XLYywUIX.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-DM3iM-UO.js → TrustMemberRoleAndTypePage-3faXzV9b.js} +24 -23
- package/dist/{TrustMembersOverview-CMebQqlZ.js → TrustMembersOverview-D17It654.js} +12 -12
- package/dist/{UnincorporatedPartnershipIndividualPage-ALWIbSyC.js → UnincorporatedPartnershipIndividualPage-Clw37nBi.js} +4 -4
- package/dist/UnincorporatedPartnershipMemberCompanyPage-DOSVuI_I.js +67 -0
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Cy55bZFw.js → UnincorporatedPartnershipMemberRoleAndTypePage-DD3a0EJd.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-hV4By7Y1.js → UnincorporatedPartnershipMembersOverview-eGY35uW7.js} +9 -9
- package/dist/{VerificationErrorAlert-DFNMQiBs.js → VerificationErrorAlert-I_JbBy66.js} +4 -4
- package/dist/{ViewVerificationStatusComponent-Bey8W2EX.js → ViewVerificationStatusComponent-m00jaa9V.js} +4 -4
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual-configuration.js +2 -2
- package/dist/adyen-individual-status.js +2 -2
- package/dist/adyen-kyc-components.js +21 -21
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +2 -2
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{bg-BG-D9J6LnkI.js → bg-BG-CCwKQVVV.js} +9 -1
- package/dist/bg-BG-CEipapl4.js +63 -0
- package/dist/bg-BG-D4k_k98M.js +118 -0
- package/dist/bg-BG-DVjwfSz4.js +13 -0
- package/dist/{bg-BG-Dp4LxSP7.js → bg-BG-K7feXvEc.js} +2 -1
- package/dist/cs-CZ-BHbWTH_v.js +63 -0
- package/dist/cs-CZ-CLY9qYTs.js +13 -0
- package/dist/{cs-CZ-DY_pQqAT.js → cs-CZ-CVvNUABW.js} +9 -1
- package/dist/{cs-CZ-CyLqoG1j.js → cs-CZ-CYQO0o5V.js} +2 -1
- package/dist/{cs-CZ-B58kCXel.js → cs-CZ-nIWwyOHK.js} +1 -13
- package/dist/{da-DK-DYpfNZdP.js → da-DK-CGWvmdkq.js} +2 -1
- package/dist/{da-DK-jK7c9UL0.js → da-DK-CoTdzXlA.js} +9 -1
- package/dist/da-DK-CrtuBoDC.js +118 -0
- package/dist/da-DK-uHPPFvD-.js +13 -0
- package/dist/da-DK-vcVNQJbX.js +63 -0
- package/dist/de-DE-CWEW2yqg.js +63 -0
- package/dist/{de-DE-BXt1K0Tr.js → de-DE-DHDJhahG.js} +2 -1
- package/dist/de-DE-SMf6w4NJ.js +13 -0
- package/dist/de-DE-mH3MobT9.js +13 -0
- package/dist/{de-DE-wmerDL2e.js → de-DE-z0cPgxGN.js} +9 -1
- package/dist/{debouncedInputEvent-eHK9LXJg.js → debouncedInputEvent-iHbpO4uP.js} +2 -2
- package/dist/{documentUtils-CQe8F0JI.js → documentUtils-COMXmiC3.js} +58 -7
- package/dist/{dropinUtils-JfkUzj5m.js → dropinUtils-B7gkHPu_.js} +4 -4
- package/dist/el-GR-B78b9rSH.js +63 -0
- package/dist/{el-GR-Btrk_npt.js → el-GR-B9TRk3Pi.js} +9 -1
- package/dist/el-GR-Ckn_3h1a.js +118 -0
- package/dist/{el-GR-B90M6tcZ.js → el-GR-DHNlnOwf.js} +2 -1
- package/dist/el-GR-wv99Y9Yf.js +13 -0
- package/dist/en-US-BSQXKu6d.js +54 -0
- package/dist/{en-US-gsp7CD_E.js → en-US-BzrLvydZ.js} +9 -1
- package/dist/{en-US-Dg505Oh3.js → en-US-DoiQhi0j.js} +2 -1
- package/dist/es-ES-BqpvBqmR.js +13 -0
- package/dist/es-ES-CDgjGql5.js +63 -0
- package/dist/es-ES-CnyVffM-.js +118 -0
- package/dist/{es-ES-BhNhIf08.js → es-ES-CxnsKEh4.js} +2 -1
- package/dist/{es-ES-Qnc0Q6JH.js → es-ES-DUn82eVS.js} +9 -1
- package/dist/{et-EE-BMgFCxds.js → et-EE-BQixWUEV.js} +2 -1
- package/dist/et-EE-CAuCY0qn.js +13 -0
- package/dist/{et-EE-TzXANcP2.js → et-EE-CUXar-DY.js} +9 -1
- package/dist/et-EE-D0PMC4ie.js +63 -0
- package/dist/{et-EE-BApmUBuH.js → et-EE-RzdBGxDM.js} +1 -13
- package/dist/{fi-FI-ysUrBilO.js → fi-FI-57-xkioo.js} +2 -1
- package/dist/{fi-FI-Dn2MC8uW.js → fi-FI-C3TTCFBv.js} +9 -1
- package/dist/fi-FI-CsZlDJFb.js +63 -0
- package/dist/fi-FI-DPegZzTc.js +13 -0
- package/dist/fi-FI-kXC-0USa.js +118 -0
- package/dist/fr-FR-6YOKsDLQ.js +13 -0
- package/dist/fr-FR-BPGwsLDa.js +13 -0
- package/dist/{fr-FR-BWX14yb7.js → fr-FR-BbKadiaZ.js} +9 -1
- package/dist/{fr-FR-BSvSKazD.js → fr-FR-BxiX8Zfi.js} +2 -1
- package/dist/fr-FR-VoxPkXSc.js +63 -0
- package/dist/{getFieldsWithExistingData-DHMh2qiJ.js → getFieldsWithExistingData-P-c5HSuj.js} +1 -1
- package/dist/{getName-3tkBO1jL.js → getName-D3Us2eqy.js} +2 -2
- package/dist/{hasDataChanged-ca7QwDb4.js → hasDataChanged-CBuNlTKT.js} +2 -2
- package/dist/{hr-HR-BLpGb4f2.js → hr-HR-BynZTNSB.js} +2 -1
- package/dist/hr-HR-CbdP2tk-.js +63 -0
- package/dist/{hr-HR-CZLSQruE.js → hr-HR-D2LmWe5I.js} +9 -1
- package/dist/hr-HR-DdqNL1pQ.js +13 -0
- package/dist/hr-HR-fyublN95.js +118 -0
- package/dist/{hu-HU-Ca9Hex26.js → hu-HU-BtRIDozk.js} +2 -1
- package/dist/hu-HU-C1LJENXO.js +13 -0
- package/dist/{hu-HU-kp8Go5hZ.js → hu-HU-CFuBc8VP.js} +9 -1
- package/dist/hu-HU-CpJDiSu2.js +118 -0
- package/dist/hu-HU-pFpTvMiD.js +63 -0
- package/dist/{iframeWidget-Dtk68KgN.js → iframeWidget-B7r65gwx.js} +3 -3
- package/dist/it-IT-B1eJg9RL.js +13 -0
- package/dist/{it-IT-B0YGvVgW.js → it-IT-CGhQqmiU.js} +9 -1
- package/dist/it-IT-DZjw9LNC.js +63 -0
- package/dist/it-IT-DyCHFg-b.js +118 -0
- package/dist/{it-IT-Qfzc8jnW.js → it-IT-masgjk9F.js} +2 -1
- package/dist/ja-JP-BqluCflj.js +63 -0
- package/dist/{ja-JP-Dz9IVH4p.js → ja-JP-CvREJ56h.js} +9 -1
- package/dist/{ja-JP-DsGXGCjF.js → ja-JP-DGNXrNMK.js} +1 -13
- package/dist/ja-JP-PnqAHl14.js +13 -0
- package/dist/{ja-JP-CHQ64lw1.js → ja-JP-vv3-YsHU.js} +2 -1
- package/dist/{localizeDateString-C-Jph6zP.js → localizeDateString-DZXUiuq2.js} +1 -1
- package/dist/{lt-LT-0RKZeraM.js → lt-LT-2BMif2Bk.js} +2 -1
- package/dist/lt-LT-BmRnIfWs.js +13 -0
- package/dist/lt-LT-CKE7_7_A.js +118 -0
- package/dist/lt-LT-CXw4ywLM.js +63 -0
- package/dist/{lt-LT-l9rzkFg9.js → lt-LT-CZwu5zZ0.js} +9 -1
- package/dist/{lv-LV-Bh-WQp0K.js → lv-LV-CHdEDRVO.js} +2 -1
- package/dist/lv-LV-CX9j9Dtv.js +13 -0
- package/dist/lv-LV-D4Ik0yoE.js +118 -0
- package/dist/{lv-LV-DYbb5pkt.js → lv-LV-DVFCj1OR.js} +9 -1
- package/dist/lv-LV-DYqBaW2-.js +63 -0
- package/dist/{mapExistingFile-1urJeRPC.js → mapExistingFile-CUIQysrG.js} +2 -2
- package/dist/{mapFinancialReportsToFinancialInformation-8RB3ttN_.js → mapFinancialReportsToFinancialInformation-DXAUhNyT.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-CA7YxKdZ.js → mapJpAddressSchemaToAddressLocalizations-DtYS0iKj.js} +3 -3
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-BnjzuvKj.js → mapLegalEntityToIndividualOnfidoSchema-p2nWbhjp.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-C2qh0VSM.js → mapTransferInstrumentToPayoutAccount-ByLURF9P.js} +1 -1
- package/dist/{nl-NL-D7gBNWEY.js → nl-NL-D1b5RUJ0.js} +2 -1
- package/dist/nl-NL-DkbhmJAw.js +118 -0
- package/dist/{nl-NL-BMUYBqlF.js → nl-NL-OHlJx2bn.js} +9 -1
- package/dist/nl-NL-cVVIDG7s.js +13 -0
- package/dist/nl-NL-lcNM54vV.js +63 -0
- package/dist/no-NO-CTrVITNu.js +63 -0
- package/dist/no-NO-C_tmZ39d.js +13 -0
- package/dist/{no-NO-DKbWxgF-.js → no-NO-DEYydng4.js} +9 -1
- package/dist/{no-NO-D4BECLky.js → no-NO-Df5qUoTc.js} +1 -13
- package/dist/{no-NO-C-gCYc9q.js → no-NO-Dkh4SWbB.js} +2 -1
- package/dist/{pl-PL-LnVPufjb.js → pl-PL-BkGihn5Q.js} +2 -1
- package/dist/pl-PL-CErRPlR2.js +63 -0
- package/dist/pl-PL-DFZFSKZX.js +13 -0
- package/dist/{pl-PL-B0zGy_b4.js → pl-PL-DMbe5XnW.js} +9 -1
- package/dist/pl-PL-ggZjqXWE.js +118 -0
- package/dist/{process-field-configurations-BFhu7wxG.js → process-field-configurations-DLkHkwPX.js} +3 -3
- package/dist/pt-BR-BOOm5lRR.js +118 -0
- package/dist/{pt-BR-ur86nRrK.js → pt-BR-BRdIEO2O.js} +2 -1
- package/dist/pt-BR-CMiGlY3k.js +13 -0
- package/dist/pt-BR-DA44Wgbt.js +63 -0
- package/dist/{pt-BR--kaJvtE6.js → pt-BR-DWAziFjb.js} +9 -1
- package/dist/pt-PT-BDfNlThr.js +118 -0
- package/dist/{pt-PT-CVNEcs32.js → pt-PT-BfL7qUzo.js} +2 -1
- package/dist/pt-PT-DmdQxN_1.js +13 -0
- package/dist/{pt-PT-BZ5ZZm6G.js → pt-PT-LP8g5mC9.js} +9 -1
- package/dist/pt-PT-PIiikho9.js +63 -0
- package/dist/{resolveEnvironment-noyLQ0vB.js → resolveEnvironment-Biy1a0GA.js} +3 -3
- package/dist/ro-RO-B0slmyWK.js +13 -0
- package/dist/{ro-RO-CdSsgoUG.js → ro-RO-BQSoJrlf.js} +9 -1
- package/dist/ro-RO-BRngQXgs.js +118 -0
- package/dist/ro-RO-Bv9hZxwD.js +63 -0
- package/dist/{ro-RO-i7lojG2G.js → ro-RO-C2yBVFht.js} +2 -1
- package/dist/{rules-3KdlQVvF.js → rules-nAvWiQ6E.js} +5 -5
- package/dist/sk-SK-BptPuon4.js +13 -0
- package/dist/{sk-SK-B5brxU1N.js → sk-SK-C74EF23u.js} +2 -1
- package/dist/sk-SK-ChVwlbp0.js +63 -0
- package/dist/{sk-SK-BiBWPJUf.js → sk-SK-CwieqNyR.js} +9 -1
- package/dist/sk-SK-y9eb7N6i.js +118 -0
- package/dist/sl-SI-C3nGkfNb.js +13 -0
- package/dist/{sl-SI-DtdGMD6i.js → sl-SI-C5vfq7vv.js} +9 -1
- package/dist/sl-SI-CGvCdquD.js +118 -0
- package/dist/{sl-SI-CUCrzJQv.js → sl-SI-CvUzNn9Z.js} +2 -1
- package/dist/sl-SI-DZHePXbK.js +63 -0
- package/dist/style.css +467 -221
- package/dist/styles-CLV89_hH.js +467 -221
- package/dist/{sv-SE-BHkYspm-.js → sv-SE-BP2Oun8l.js} +1 -13
- package/dist/{sv-SE-kR514dO1.js → sv-SE-BrO9NKWs.js} +9 -1
- package/dist/{sv-SE-C6uPh9g5.js → sv-SE-BsLkPEzn.js} +2 -1
- package/dist/sv-SE-CXn28ybc.js +13 -0
- package/dist/sv-SE-Dq56vGlB.js +63 -0
- package/dist/types/api/businessLines/businessLines.types.d.ts +6 -1
- package/dist/types/api/documents/useDocuments.d.ts +4 -0
- package/dist/types/api/queryKeys.d.ts +3 -1
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -8
- package/dist/types/components/Business/forms/AdditionalInformation/{VerifiedBusinessCard.d.ts → VerifiedBusinessCard/VerifiedBusinessCard.d.ts} +2 -3
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +4 -6
- package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +0 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +0 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +1 -2
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +0 -1
- package/dist/types/components/Business/forms/rules.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +3 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
- package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +2 -3
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -0
- package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +2 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +1 -1
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -0
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
- package/dist/types/utils/api/documentUtils.d.ts +6 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-CdYWxOFW.js → types-BmzCK_Dn.js} +1 -1
- package/dist/{types-CMNeqyO0.js → types-DHdElqj8.js} +1 -1
- package/dist/{types-CtoOcAS_.js → types-cn3-oi7O.js} +1 -1
- package/dist/{useAssociatedLegalEntity-BWXPNWfP.js → useAssociatedLegalEntity-BrPscgVv.js} +1 -1
- package/dist/{BusinessDetailsDropin-DN-h5hoU.js → useBusinessDetailsData-BVa9Mtjs.js} +151 -69
- package/dist/{useCreateLegalEntity-DonOl4nS.js → useCreateLegalEntity-CNzYBgj0.js} +2 -2
- package/dist/{useDataset-DuHP7LJl.js → useDataset-DerSszvK.js} +4 -4
- package/dist/{useForm-CBL8sHgn.js → useForm-BmCWMPbB.js} +7 -6
- package/dist/{useGlobalData-Bh2OmI7a.js → useGlobalData-iJosWOhn.js} +2 -2
- package/dist/{useMultiForm-DK0DX3NP.js → useMultiForm-qb1Om5Av.js} +4 -4
- package/dist/{useOnboardingStatus-IvWzxag4.js → useOnboardingStatus-oxdDvVQm.js} +1 -1
- package/dist/{useScenarios-DeR6rGue.js → useScenarios-D7H_IhJd.js} +2 -2
- package/dist/{useTermsOfServiceStatus-CFz_tBjI.js → useTermsOfServiceStatus-DVhtmxNr.js} +1 -1
- package/dist/{useToastContext-Bwbh8-u5.js → useToastContext-CutFPaxB.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-DRicq_6C.js → useUnincorporatedPartnershipMembers-Ca8kuLpf.js} +5 -5
- package/dist/{useUpdateBusinessLines-CKrKEmOI.js → useUpdateBusinessLines-CxcIFedN.js} +2 -2
- package/dist/{useUpdateLegalEntity-JgEj2H9L.js → useUpdateLegalEntity-ByoUAlrC.js} +3 -3
- package/dist/{utils-DnZtpTJ-.js → utils-Dq1W5jgi.js} +6 -6
- package/dist/{utils-DrbHJZYU.js → utils-Gn2bm9fz.js} +3 -3
- package/dist/{validate-DSeAPAYm.js → validate-BYqQ_kJW.js} +1 -1
- package/dist/{validate-BZ1lC0ot.js → validate-DWXDyeBc.js} +1 -1
- package/dist/{validationError-DXBqMDWR.js → validationError-CgErIRFL.js} +1 -1
- package/package.json +1 -1
- package/dist/JpAddress-D6Gj6H63.js +0 -271
- package/dist/ManageTermsOfServiceComponent-DPc1GRjG.js +0 -52
- package/dist/RootBusinessDetailsPage-BOgszPAQ.js +0 -46
- package/dist/SoleProprietorshipPage-Dm094P92.js +0 -46
- package/dist/UnincorporatedPartnershipMemberCompanyPage-CoclwaxX.js +0 -60
- package/dist/bg-BG-4gJjMBoz.js +0 -13
- package/dist/bg-BG-DBsXOteB.js +0 -30
- package/dist/bg-BG-DNp7JUA6.js +0 -13
- package/dist/cs-CZ-CxB0DJQ6.js +0 -13
- package/dist/cs-CZ-DzChComK.js +0 -30
- package/dist/da-DK-BlU1EczG.js +0 -30
- package/dist/da-DK-DEdQ-QPp.js +0 -13
- package/dist/da-DK-DqkN5oIu.js +0 -13
- package/dist/de-DE-COuUdtao.js +0 -13
- package/dist/de-DE-DrSSblam.js +0 -13
- package/dist/de-DE-s0B-XZyp.js +0 -30
- package/dist/el-GR-CgrzE6er.js +0 -30
- package/dist/el-GR-CjhbnLfE.js +0 -13
- package/dist/el-GR-z3YMr7LZ.js +0 -13
- package/dist/es-ES-DNGEW6V_.js +0 -13
- package/dist/es-ES-ShWaSuJd.js +0 -13
- package/dist/es-ES-esfwvKwz.js +0 -30
- package/dist/et-EE-BN1nOAGu.js +0 -30
- package/dist/et-EE-Be9wlXLD.js +0 -13
- package/dist/fi-FI-ChApf7lf.js +0 -13
- package/dist/fi-FI-CjB6QC01.js +0 -30
- package/dist/fi-FI-CoI_94Fv.js +0 -13
- package/dist/fr-FR-Br7OeDIe.js +0 -13
- package/dist/fr-FR-C1XqLftn.js +0 -30
- package/dist/fr-FR-Q3urMjbl.js +0 -13
- package/dist/hr-HR-CPvQ9uT8.js +0 -30
- package/dist/hr-HR-iodfRS4f.js +0 -13
- package/dist/hr-HR-jGIf2Gtl.js +0 -13
- package/dist/hu-HU-BjcOaEwh.js +0 -13
- package/dist/hu-HU-CEb_Wl4I.js +0 -13
- package/dist/hu-HU-dKPur6SA.js +0 -30
- package/dist/it-IT-BAvsF2TB.js +0 -13
- package/dist/it-IT-C_YDqVNT.js +0 -30
- package/dist/it-IT-vdMlF0Ha.js +0 -13
- package/dist/ja-JP-DnBu0U51.js +0 -30
- package/dist/ja-JP-US4BD67C.js +0 -13
- package/dist/lt-LT-DhhomRPs.js +0 -30
- package/dist/lt-LT-Y9aKpjC4.js +0 -13
- package/dist/lt-LT-os-nxAb0.js +0 -13
- package/dist/lv-LV-9NRF8DKM.js +0 -13
- package/dist/lv-LV-BWbH-gbT.js +0 -30
- package/dist/lv-LV-Bm1fntV2.js +0 -13
- package/dist/nl-NL-BwKrj-29.js +0 -13
- package/dist/nl-NL-C3YJkSIj.js +0 -13
- package/dist/nl-NL-DyeSX0PH.js +0 -30
- package/dist/no-NO-B6OPS2CA.js +0 -13
- package/dist/no-NO-DPRsAb_o.js +0 -30
- package/dist/pl-PL-B0BQdtqx.js +0 -13
- package/dist/pl-PL-B1EJKJvT.js +0 -30
- package/dist/pl-PL-xxcCzZvq.js +0 -13
- package/dist/pt-BR-BKQRvAfq.js +0 -13
- package/dist/pt-BR-C-C4ZJ9x.js +0 -30
- package/dist/pt-BR-gh27BC86.js +0 -13
- package/dist/pt-PT-D2Xe-OdG.js +0 -13
- package/dist/pt-PT-DYihdcJx.js +0 -13
- package/dist/pt-PT-LbneTcRx.js +0 -30
- package/dist/ro-RO-CzTVqkev.js +0 -30
- package/dist/ro-RO-Di-C4PpC.js +0 -13
- package/dist/ro-RO-WGnCVll9.js +0 -13
- package/dist/sk-SK-B0hEG-HR.js +0 -13
- package/dist/sk-SK-BMlZjg5s.js +0 -30
- package/dist/sk-SK-Cq_DSPZu.js +0 -13
- package/dist/sl-SI-8SzKx7XD.js +0 -30
- package/dist/sl-SI-C3gfuen3.js +0 -13
- package/dist/sl-SI-DdjgSySI.js +0 -13
- package/dist/sv-SE-B7cpKp1l.js +0 -30
- 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] = "
|
|
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,
|
|
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 {
|
|
13
|
-
import { S as StepProgressIndicator } from "./StepProgressIndicator-
|
|
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-
|
|
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(
|
|
145
|
-
const keysWithL = Object.keys(
|
|
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.
|
|
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 =
|
|
160
|
-
|
|
115
|
+
const paragraphKeys = getIntroductionScreenTranslationKeys(
|
|
116
|
+
{
|
|
161
117
|
introductionScreen,
|
|
162
118
|
legalEntityType,
|
|
163
119
|
elementType: IntroductionScreenTranslationKeyElements.Paragraph
|
|
164
|
-
}
|
|
165
|
-
|
|
120
|
+
},
|
|
121
|
+
i18n
|
|
166
122
|
);
|
|
167
|
-
const listItemKeys =
|
|
168
|
-
|
|
123
|
+
const listItemKeys = getIntroductionScreenTranslationKeys(
|
|
124
|
+
{
|
|
169
125
|
introductionScreen,
|
|
170
126
|
legalEntityType,
|
|
171
127
|
elementType: IntroductionScreenTranslationKeyElements.ListItem
|
|
172
|
-
}
|
|
173
|
-
|
|
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": () =>
|
|
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] = "
|
|
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,
|
|
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-
|
|
13
|
-
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-
|
|
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] = "
|
|
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-
|
|
13
|
-
import {
|
|
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";
|
package/dist/{ManageIndividualComponent-3ycR2pfZ.js → ManageIndividualComponent-CS4ck6BQ.js}
RENAMED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
+
};
|