@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,12 +2,12 @@
|
|
|
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] = "1eefb665-b4d4-489c-8080-72f6a17a9bcd", e._sentryDebugIdIdentifier = "sentry-dbid-1eefb665-b4d4-489c-8080-72f6a17a9bcd");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { P as createLogger,
|
|
10
|
+
import { P as createLogger, a2 as useQueryClient, b as useApiContext, aW as ToastContext } from "./StoreProvider-Dgl7dBXc.js";
|
|
11
11
|
import { useCallback, useState, useContext } from "preact/hooks";
|
|
12
12
|
const logger = createLogger();
|
|
13
13
|
const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [
|
|
@@ -2,16 +2,16 @@
|
|
|
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] = "79d4e2aa-1778-448b-8e6c-abb315ce5265", e._sentryDebugIdIdentifier = "sentry-dbid-79d4e2aa-1778-448b-8e6c-abb315ce5265");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
|
-
import { r as LegalEntityTypes,
|
|
12
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
13
|
-
import { U as UnincorporatedPartnershipMemberTypes } from "./CountryField-
|
|
14
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-
|
|
11
|
+
import { r as LegalEntityTypes, ag as getOwnEntityAssociations, c as useLegalEntity, R as ROOT_LE } from "./StoreProvider-Dgl7dBXc.js";
|
|
12
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BrPscgVv.js";
|
|
13
|
+
import { U as UnincorporatedPartnershipMemberTypes } from "./CountryField-NrSdQlWq.js";
|
|
14
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-D3Us2eqy.js";
|
|
15
15
|
const getMemberOwnerId = (memberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === memberId)?.legalEntityId;
|
|
16
16
|
const convertEntityAssociationIntoUnincorporatedPartnershipMember = (association) => {
|
|
17
17
|
if (association.entityType === LegalEntityTypes.INDIVIDUAL || association.entityType === LegalEntityTypes.ORGANIZATION)
|
|
@@ -2,12 +2,12 @@
|
|
|
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] = "edd3eb4c-07d8-41b3-a271-c523cb2de77a", e._sentryDebugIdIdentifier = "sentry-dbid-edd3eb4c-07d8-41b3-a271-c523cb2de77a");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext,
|
|
10
|
+
import { b as useApiContext, a0 as useMutation, k as httpPost } from "./StoreProvider-Dgl7dBXc.js";
|
|
11
11
|
const createBusinessLine = async (legalEntityId, baseUrl, data) => {
|
|
12
12
|
return httpPost(
|
|
13
13
|
{
|
|
@@ -2,13 +2,13 @@
|
|
|
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] = "6af14470-9872-40d9-b7b4-1c5dc538dbf1", e._sentryDebugIdIdentifier = "sentry-dbid-6af14470-9872-40d9-b7b4-1c5dc538dbf1");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext,
|
|
11
|
-
import { c as useInvalidateRootLegalEntity } from "./useToastContext-
|
|
10
|
+
import { b as useApiContext, a2 as useQueryClient, a0 as useMutation, k as httpPost } from "./StoreProvider-Dgl7dBXc.js";
|
|
11
|
+
import { c as useInvalidateRootLegalEntity } from "./useToastContext-CutFPaxB.js";
|
|
12
12
|
const updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|
|
@@ -2,16 +2,16 @@
|
|
|
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] = "df2806a9-2598-4063-9629-e204458a0604", e._sentryDebugIdIdentifier = "sentry-dbid-df2806a9-2598-4063-9629-e204458a0604");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { C as CompanyTypesValues } from "./IndividualOnfido-
|
|
11
|
-
import { g as getLegalEntityCountry, bz as getCapabilities, r as LegalEntityTypes, H as hasOwnEntityAssociationOfType, C as CountryCodes } from "./StoreProvider-
|
|
12
|
-
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-
|
|
13
|
-
import { S as SOLE_PROP_COUNTRIES } from "./rules-
|
|
14
|
-
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-
|
|
10
|
+
import { C as CompanyTypesValues } from "./IndividualOnfido-BYT0nG-5.js";
|
|
11
|
+
import { g as getLegalEntityCountry, bz as getCapabilities, r as LegalEntityTypes, H as hasOwnEntityAssociationOfType, C as CountryCodes } from "./StoreProvider-Dgl7dBXc.js";
|
|
12
|
+
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-BrHvygYb.js";
|
|
13
|
+
import { S as SOLE_PROP_COUNTRIES } from "./rules-nAvWiQ6E.js";
|
|
14
|
+
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-cn3-oi7O.js";
|
|
15
15
|
const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
16
16
|
const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
|
|
17
17
|
CountryCodes.UnitedStates,
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { r as LegalEntityTypes, G as Typography } from "./StoreProvider-
|
|
12
|
-
import { C as Currencies } from "./types-
|
|
13
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
11
|
+
import { r as LegalEntityTypes, G as Typography } from "./StoreProvider-Dgl7dBXc.js";
|
|
12
|
+
import { C as Currencies } from "./types-DHdElqj8.js";
|
|
13
|
+
import { l as localizeDateString } from "./localizeDateString-DZXUiuq2.js";
|
|
14
14
|
const formatCurrency = (amount, currency, locale) => {
|
|
15
15
|
const { format } = new Intl.NumberFormat(
|
|
16
16
|
locale,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback } from "preact/hooks";
|
|
11
|
-
import { b as useApiContext, k as httpPost } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, k as httpPost } from "./StoreProvider-Dgl7dBXc.js";
|
|
12
12
|
import { e as emailPattern } from "./basePatterns-BwdnMQxI.js";
|
|
13
13
|
const validatePhoneNumber = (baseUrl, data) => {
|
|
14
14
|
return httpPost(
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { O as TaskTypes, bm as remediationPayoutApiKeyMapping, bn as remediationBusinessDetailsApiKeyMapping, bo as remediationIndividualApiKeyMapping } from "./StoreProvider-
|
|
10
|
+
import { O as TaskTypes, bm as remediationPayoutApiKeyMapping, bn as remediationBusinessDetailsApiKeyMapping, bo as remediationIndividualApiKeyMapping } from "./StoreProvider-Dgl7dBXc.js";
|
|
11
11
|
import { a as assignToProp } from "./utils-DNSfZiio.js";
|
|
12
12
|
const isMaintenanceModeError = (error) => error && typeof error === "object" && "messageCode" in error && error.messageCode === "maintenanceMode";
|
|
13
13
|
const overrideKeyMapping = {
|
package/package.json
CHANGED
|
@@ -1,271 +0,0 @@
|
|
|
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] = "951a3006-d218-462a-9b2e-9a1ef1e814db", e._sentryDebugIdIdentifier = "sentry-dbid-951a3006-d218-462a-9b2e-9a1ef1e814db");
|
|
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, a4 as noop, u as useTranslation, V as useI18nContext, X as useExperimentsContext, a2 as useAnalyticsContext, P as createLogger, C as CountryCodes, G as Typography } from "./StoreProvider-CGako8b0.js";
|
|
13
|
-
import { F as Field, u as useForm } from "./useForm-CBL8sHgn.js";
|
|
14
|
-
import { I as InputText } from "./InputText-E3bqmvue.js";
|
|
15
|
-
import { M as MaskedInput, m as makeMask, n as numericInputs, d as nonInputs } from "./Spacer-DNqjKZqD.js";
|
|
16
|
-
import { V as JP_ADDRESS_REQUIRED_FIELDS, i as toFullWidth } from "./IndividualOnfido-DH3MaGPp.js";
|
|
17
|
-
import { q as addressValidationRulesV4, r as addressValidationRules } from "./Address-yCSNuL5Z.js";
|
|
18
|
-
import { u as useDebouncedCallback } from "./debouncedInputEvent-eHK9LXJg.js";
|
|
19
|
-
const retrieveFromPostcodeJp = async (legalEntityId, baseUrl, postalCode) => httpGet({
|
|
20
|
-
baseUrl,
|
|
21
|
-
path: `legalEntities/${legalEntityId}/addresses/jp/${postalCode}`
|
|
22
|
-
});
|
|
23
|
-
const useRetrieveFromPostcodeJp = (postalCode, options) => {
|
|
24
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
25
|
-
return useQuery({
|
|
26
|
-
queryKey: ["retrieveAddress", postalCode],
|
|
27
|
-
queryFn: () => retrieveFromPostcodeJp(rootLegalEntityId.value, baseUrl.value, postalCode),
|
|
28
|
-
retry: false,
|
|
29
|
-
...options
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
const ReadonlyTextField = ({ name, label, value }) => /* @__PURE__ */ jsx(Field, { name, label, children: (innerProps) => /* @__PURE__ */ jsx(InputText, { ...innerProps, name, type: "text", value, onInput: noop, readonly: true }) });
|
|
33
|
-
const sideBySide = "adyen-kyc-side-by-side";
|
|
34
|
-
const styles = {
|
|
35
|
-
sideBySide
|
|
36
|
-
};
|
|
37
|
-
const logger = createLogger();
|
|
38
|
-
const JpAddress = ({
|
|
39
|
-
addressType,
|
|
40
|
-
data: dataProp,
|
|
41
|
-
handleFieldChange,
|
|
42
|
-
errors: propErrors,
|
|
43
|
-
valid: propValid,
|
|
44
|
-
fieldValidationErrors: propFieldValidationErrors,
|
|
45
|
-
onChange
|
|
46
|
-
}) => {
|
|
47
|
-
const { t } = useTranslation("common");
|
|
48
|
-
const { i18n } = useI18nContext();
|
|
49
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
50
|
-
const userEvents = useAnalyticsContext();
|
|
51
|
-
const form = useForm({
|
|
52
|
-
schema: JP_ADDRESS_REQUIRED_FIELDS,
|
|
53
|
-
defaultData: dataProp,
|
|
54
|
-
rules: isExperimentEnabled("StrictNameAndAddressValidationV4") ? addressValidationRulesV4(CountryCodes.Japan, i18n) : addressValidationRules(CountryCodes.Japan),
|
|
55
|
-
fieldProblems: propFieldValidationErrors
|
|
56
|
-
});
|
|
57
|
-
let {
|
|
58
|
-
handleChangeFor,
|
|
59
|
-
data: formData,
|
|
60
|
-
errors: formErrors,
|
|
61
|
-
valid: formValid,
|
|
62
|
-
fieldProblems: formFieldProblems
|
|
63
|
-
} = form;
|
|
64
|
-
const { isValid: formIsValid } = form;
|
|
65
|
-
if (handleFieldChange) {
|
|
66
|
-
handleChangeFor = handleFieldChange;
|
|
67
|
-
formData = dataProp ?? {};
|
|
68
|
-
formErrors = propErrors;
|
|
69
|
-
formValid = propValid;
|
|
70
|
-
formFieldProblems = propFieldValidationErrors;
|
|
71
|
-
}
|
|
72
|
-
const [postcodeToSearch, setPostcodeToSearch] = useState(formData.postalCode ?? "");
|
|
73
|
-
const debouncedSetPostcodeToSearch = useDebouncedCallback(setPostcodeToSearch, 1e3);
|
|
74
|
-
const retrieveFromPostcodeQuery = useRetrieveFromPostcodeJp(postcodeToSearch, {
|
|
75
|
-
enabled: postcodeToSearch !== ""
|
|
76
|
-
});
|
|
77
|
-
useEffect(() => {
|
|
78
|
-
if (retrieveFromPostcodeQuery.error) {
|
|
79
|
-
logger.error(retrieveFromPostcodeQuery.error.message);
|
|
80
|
-
handleChangeFor("jaHaniStateOrProvince")(void 0);
|
|
81
|
-
handleChangeFor("jaHaniCity")(void 0);
|
|
82
|
-
handleChangeFor("jaKanaStateOrProvince")(void 0);
|
|
83
|
-
handleChangeFor("jaKanaCity")(void 0);
|
|
84
|
-
handleChangeFor("stateOrProvince")(void 0);
|
|
85
|
-
handleChangeFor("city")(void 0);
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
if (!retrieveFromPostcodeQuery.data) return;
|
|
89
|
-
userEvents.addPageEvent("Success", {
|
|
90
|
-
actionType: "select",
|
|
91
|
-
actionLevel: "field",
|
|
92
|
-
returnType: "backend",
|
|
93
|
-
returnValue: "retrieveAddress"
|
|
94
|
-
});
|
|
95
|
-
const scriptResults = retrieveFromPostcodeQuery.data.multilocale;
|
|
96
|
-
if (!scriptResults) return;
|
|
97
|
-
const jaHani = scriptResults.find((script) => script.locale === "ja-Hani");
|
|
98
|
-
const jaKana = scriptResults.find((script) => script.locale === "ja-Kana");
|
|
99
|
-
const en = scriptResults.find((script) => script.locale === "en");
|
|
100
|
-
if (jaHani) {
|
|
101
|
-
handleChangeFor("jaHaniStateOrProvince")(jaHani.stateOrProvince);
|
|
102
|
-
handleChangeFor("jaHaniCity")(jaHani.city);
|
|
103
|
-
}
|
|
104
|
-
if (jaKana) {
|
|
105
|
-
handleChangeFor("jaKanaStateOrProvince")(jaKana.stateOrProvince);
|
|
106
|
-
handleChangeFor("jaKanaCity")(jaKana.city);
|
|
107
|
-
}
|
|
108
|
-
if (en) {
|
|
109
|
-
handleChangeFor("stateOrProvince")(en.stateOrProvince);
|
|
110
|
-
handleChangeFor("city")(en.city);
|
|
111
|
-
}
|
|
112
|
-
}, [retrieveFromPostcodeQuery.data, retrieveFromPostcodeQuery.error, userEvents]);
|
|
113
|
-
useEffect(() => {
|
|
114
|
-
onChange?.({
|
|
115
|
-
schema: JP_ADDRESS_REQUIRED_FIELDS,
|
|
116
|
-
data: {
|
|
117
|
-
...formData,
|
|
118
|
-
country: CountryCodes.Japan
|
|
119
|
-
},
|
|
120
|
-
errors: formErrors,
|
|
121
|
-
valid: formValid,
|
|
122
|
-
fieldProblems: formFieldProblems,
|
|
123
|
-
isValid: formIsValid
|
|
124
|
-
});
|
|
125
|
-
}, [formData, formErrors, formFieldProblems, formIsValid, formValid]);
|
|
126
|
-
return /* @__PURE__ */ jsxs("fieldset", { children: [
|
|
127
|
-
/* @__PURE__ */ jsx(Typography, { el: "legend", variant: "title", children: t(($) => $[addressType]) }),
|
|
128
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sideBySide, children: [
|
|
129
|
-
/* @__PURE__ */ jsx(
|
|
130
|
-
MaskedInput,
|
|
131
|
-
{
|
|
132
|
-
name: "postalCode",
|
|
133
|
-
type: "text",
|
|
134
|
-
label: t(($) => $.postalCode),
|
|
135
|
-
value: formData.postalCode ?? "",
|
|
136
|
-
isValid: formValid.postalCode,
|
|
137
|
-
errorMessage: formErrors.postalCode?.errorMessage ?? formErrors.postalCode?.hasError,
|
|
138
|
-
onInput: (value) => {
|
|
139
|
-
handleChangeFor("postalCode", "input")(value);
|
|
140
|
-
debouncedSetPostcodeToSearch(value);
|
|
141
|
-
},
|
|
142
|
-
onBlur: handleChangeFor("postalCode", "blur"),
|
|
143
|
-
mask: makeMask(...numericInputs(3), ...nonInputs(" - "), ...numericInputs(4)),
|
|
144
|
-
formatGuidance: t(($) => $.enterNDigitsForExample, {
|
|
145
|
-
numDigits: "7",
|
|
146
|
-
example: "530-0001"
|
|
147
|
-
})
|
|
148
|
-
}
|
|
149
|
-
),
|
|
150
|
-
/* @__PURE__ */ jsx(
|
|
151
|
-
Field,
|
|
152
|
-
{
|
|
153
|
-
name: "otherAddressInformation",
|
|
154
|
-
label: t(($) => $.chomeAndBanchi),
|
|
155
|
-
isValid: formValid.otherAddressInformation,
|
|
156
|
-
errorMessage: formErrors.otherAddressInformation?.errorMessage ?? formErrors.otherAddressInformation?.hasError,
|
|
157
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
158
|
-
InputText,
|
|
159
|
-
{
|
|
160
|
-
...childProps,
|
|
161
|
-
value: formData.otherAddressInformation ?? "",
|
|
162
|
-
onInput: handleChangeFor("otherAddressInformation", "input"),
|
|
163
|
-
onBlur: handleChangeFor("otherAddressInformation", "blur"),
|
|
164
|
-
transformInput: (value) => toFullWidth(value)
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
] }),
|
|
170
|
-
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
171
|
-
/* @__PURE__ */ jsx(Typography, { el: "legend", variant: "body-strongest", children: t(($) => $.kanjiAddress) }),
|
|
172
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sideBySide, children: [
|
|
173
|
-
/* @__PURE__ */ jsx(
|
|
174
|
-
ReadonlyTextField,
|
|
175
|
-
{
|
|
176
|
-
name: "jaHaniStateOrProvince",
|
|
177
|
-
label: t(($) => $.prefecture),
|
|
178
|
-
value: formData.jaHaniStateOrProvince
|
|
179
|
-
}
|
|
180
|
-
),
|
|
181
|
-
/* @__PURE__ */ jsx(
|
|
182
|
-
ReadonlyTextField,
|
|
183
|
-
{
|
|
184
|
-
name: "jaHaniCity",
|
|
185
|
-
label: t(($) => $.districtTownAreaCityWard),
|
|
186
|
-
value: formData.jaHaniCity
|
|
187
|
-
}
|
|
188
|
-
)
|
|
189
|
-
] }),
|
|
190
|
-
/* @__PURE__ */ jsx(
|
|
191
|
-
Field,
|
|
192
|
-
{
|
|
193
|
-
name: "jaHaniAddress",
|
|
194
|
-
label: t(($) => $.buildingNameFloorRoomNumberEtc),
|
|
195
|
-
isValid: formValid.jaHaniAddress,
|
|
196
|
-
errorMessage: formErrors.jaHaniAddress?.errorMessage ?? formErrors.jaHaniAddress?.hasError,
|
|
197
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
198
|
-
InputText,
|
|
199
|
-
{
|
|
200
|
-
...childProps,
|
|
201
|
-
onInput: handleChangeFor("jaHaniAddress", "input"),
|
|
202
|
-
value: formData.jaHaniAddress
|
|
203
|
-
}
|
|
204
|
-
)
|
|
205
|
-
}
|
|
206
|
-
)
|
|
207
|
-
] }),
|
|
208
|
-
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
209
|
-
/* @__PURE__ */ jsx(Typography, { el: "legend", variant: "body-strongest", children: t(($) => $.katakanaAddress) }),
|
|
210
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sideBySide, children: [
|
|
211
|
-
/* @__PURE__ */ jsx(
|
|
212
|
-
ReadonlyTextField,
|
|
213
|
-
{
|
|
214
|
-
name: "jaKanaStateOrProvince",
|
|
215
|
-
label: t(($) => $.prefecture),
|
|
216
|
-
value: formData.jaKanaStateOrProvince
|
|
217
|
-
}
|
|
218
|
-
),
|
|
219
|
-
/* @__PURE__ */ jsx(
|
|
220
|
-
ReadonlyTextField,
|
|
221
|
-
{
|
|
222
|
-
name: "jaKanaCity",
|
|
223
|
-
label: t(($) => $.districtTownAreaCityWard),
|
|
224
|
-
value: formData.jaKanaCity
|
|
225
|
-
}
|
|
226
|
-
)
|
|
227
|
-
] })
|
|
228
|
-
] }),
|
|
229
|
-
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
230
|
-
/* @__PURE__ */ jsx(Typography, { el: "legend", variant: "body-strongest", children: t(($) => $.romajiAddress) }),
|
|
231
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sideBySide, children: [
|
|
232
|
-
/* @__PURE__ */ jsx(
|
|
233
|
-
ReadonlyTextField,
|
|
234
|
-
{
|
|
235
|
-
name: "stateOrProvince",
|
|
236
|
-
label: t(($) => $.prefecture),
|
|
237
|
-
value: formData.stateOrProvince
|
|
238
|
-
}
|
|
239
|
-
),
|
|
240
|
-
/* @__PURE__ */ jsx(
|
|
241
|
-
ReadonlyTextField,
|
|
242
|
-
{
|
|
243
|
-
name: "city",
|
|
244
|
-
label: t(($) => $.districtTownAreaCityWard),
|
|
245
|
-
value: formData.city
|
|
246
|
-
}
|
|
247
|
-
)
|
|
248
|
-
] }),
|
|
249
|
-
/* @__PURE__ */ jsx(
|
|
250
|
-
Field,
|
|
251
|
-
{
|
|
252
|
-
name: "address",
|
|
253
|
-
label: t(($) => $.buildingNameFloorRoomNumberEtc),
|
|
254
|
-
isValid: formValid.address,
|
|
255
|
-
errorMessage: formErrors.address?.errorMessage ?? formErrors.address?.hasError,
|
|
256
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
257
|
-
InputText,
|
|
258
|
-
{
|
|
259
|
-
...childProps,
|
|
260
|
-
onInput: handleChangeFor("address", "input"),
|
|
261
|
-
value: formData.address
|
|
262
|
-
}
|
|
263
|
-
)
|
|
264
|
-
}
|
|
265
|
-
)
|
|
266
|
-
] })
|
|
267
|
-
] });
|
|
268
|
-
};
|
|
269
|
-
export {
|
|
270
|
-
JpAddress
|
|
271
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
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] = "4fe008a4-d6c3-4c68-8e22-ab1cb5f67e46", e._sentryDebugIdIdentifier = "sentry-dbid-4fe008a4-d6c3-4c68-8e22-ab1cb5f67e46");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { b as useApiContext, u as useTranslation, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CGako8b0.js";
|
|
11
|
-
import { jsx } from "preact/jsx-runtime";
|
|
12
|
-
import { a as useTermsOfServiceAcceptanceInfos, u as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-CFz_tBjI.js";
|
|
13
|
-
import { E as EmbeddedStatus } from "./EmbeddedStatus-CbWjM1iG.js";
|
|
14
|
-
function ManageTermsOfServiceComponent({
|
|
15
|
-
legalEntityId,
|
|
16
|
-
onClick
|
|
17
|
-
}) {
|
|
18
|
-
const { rootLegalEntityId: currentLegalEntityId } = useApiContext();
|
|
19
|
-
currentLegalEntityId.value = legalEntityId;
|
|
20
|
-
const { i18n, t } = useTranslation(["common", "contract"]);
|
|
21
|
-
const { isLoading: isLoadingSigned, data: signedData } = useTermsOfServiceAcceptanceInfos();
|
|
22
|
-
const { isLoading: isLoadingUnsigned, data: unsignedData } = useTermsOfServiceStatus();
|
|
23
|
-
addResourceBundles(i18n, [
|
|
24
|
-
{ 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) },
|
|
25
|
-
{ ns: "contract", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../Contract/language/bg-BG.json": () => import("./bg-BG-Dp4LxSP7.js"), "../../Contract/language/cs-CZ.json": () => import("./cs-CZ-CyLqoG1j.js"), "../../Contract/language/da-DK.json": () => import("./da-DK-DYpfNZdP.js"), "../../Contract/language/de-DE.json": () => import("./de-DE-BXt1K0Tr.js"), "../../Contract/language/el-GR.json": () => import("./el-GR-B90M6tcZ.js"), "../../Contract/language/en-US.json": () => import("./en-US-Dg505Oh3.js"), "../../Contract/language/es-ES.json": () => import("./es-ES-BhNhIf08.js"), "../../Contract/language/et-EE.json": () => import("./et-EE-BMgFCxds.js"), "../../Contract/language/fi-FI.json": () => import("./fi-FI-ysUrBilO.js"), "../../Contract/language/fr-FR.json": () => import("./fr-FR-BSvSKazD.js"), "../../Contract/language/hr-HR.json": () => import("./hr-HR-BLpGb4f2.js"), "../../Contract/language/hu-HU.json": () => import("./hu-HU-Ca9Hex26.js"), "../../Contract/language/it-IT.json": () => import("./it-IT-Qfzc8jnW.js"), "../../Contract/language/ja-JP.json": () => import("./ja-JP-CHQ64lw1.js"), "../../Contract/language/lt-LT.json": () => import("./lt-LT-0RKZeraM.js"), "../../Contract/language/lv-LV.json": () => import("./lv-LV-Bh-WQp0K.js"), "../../Contract/language/nl-NL.json": () => import("./nl-NL-D7gBNWEY.js"), "../../Contract/language/no-NO.json": () => import("./no-NO-C-gCYc9q.js"), "../../Contract/language/pl-PL.json": () => import("./pl-PL-LnVPufjb.js"), "../../Contract/language/pt-BR.json": () => import("./pt-BR-ur86nRrK.js"), "../../Contract/language/pt-PT.json": () => import("./pt-PT-CVNEcs32.js"), "../../Contract/language/ro-RO.json": () => import("./ro-RO-i7lojG2G.js"), "../../Contract/language/sk-SK.json": () => import("./sk-SK-B5brxU1N.js"), "../../Contract/language/sl-SI.json": () => import("./sl-SI-CUCrzJQv.js"), "../../Contract/language/sv-SE.json": () => import("./sv-SE-C6uPh9g5.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"]) },
|
|
45
|
-
title,
|
|
46
|
-
loading: isLoading
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
ManageTermsOfServiceComponent as M
|
|
52
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
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] = "3a29ca55-0ce2-4bb5-9763-51ba5329a05c", e._sentryDebugIdIdentifier = "sentry-dbid-3a29ca55-0ce2-4bb5-9763-51ba5329a05c");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { u as useTranslation, c as useLegalEntity, R as ROOT_LE, a as addResourceBundles, L as Loader, M as EntityTypes, g as getLegalEntityCountry, O as TaskTypes, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CGako8b0.js";
|
|
11
|
-
import { jsx } from "preact/jsx-runtime";
|
|
12
|
-
import { i as useCapabilityProblems, j as getProblemsForEntity } from "./Spacer-DNqjKZqD.js";
|
|
13
|
-
import { g as getForms, f as filterProblemsByTaskForms } from "./OnboardingDropinComponent-CLupKd1b.js";
|
|
14
|
-
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-DN-h5hoU.js";
|
|
15
|
-
const RootBusinessDetailsPage = ({
|
|
16
|
-
onSubmit,
|
|
17
|
-
handleHomeClick
|
|
18
|
-
}) => {
|
|
19
|
-
const { i18n } = useTranslation();
|
|
20
|
-
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
21
|
-
const capabilityProblems = useCapabilityProblems();
|
|
22
|
-
addResourceBundles(i18n, [
|
|
23
|
-
{ ns: "business", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-DNp7JUA6.js"), "../language/cs-CZ.json": () => import("./cs-CZ-B58kCXel.js"), "../language/da-DK.json": () => import("./da-DK-DEdQ-QPp.js"), "../language/de-DE.json": () => import("./de-DE-DrSSblam.js"), "../language/el-GR.json": () => import("./el-GR-z3YMr7LZ.js"), "../language/en-US.json": () => import("./en-US-d4WBvUW7.js"), "../language/es-ES.json": () => import("./es-ES-ShWaSuJd.js"), "../language/et-EE.json": () => import("./et-EE-BApmUBuH.js"), "../language/fi-FI.json": () => import("./fi-FI-ChApf7lf.js"), "../language/fr-FR.json": () => import("./fr-FR-Q3urMjbl.js"), "../language/hr-HR.json": () => import("./hr-HR-jGIf2Gtl.js"), "../language/hu-HU.json": () => import("./hu-HU-BjcOaEwh.js"), "../language/it-IT.json": () => import("./it-IT-vdMlF0Ha.js"), "../language/ja-JP.json": () => import("./ja-JP-DsGXGCjF.js"), "../language/lt-LT.json": () => import("./lt-LT-Y9aKpjC4.js"), "../language/lv-LV.json": () => import("./lv-LV-Bm1fntV2.js"), "../language/nl-NL.json": () => import("./nl-NL-C3YJkSIj.js"), "../language/no-NO.json": () => import("./no-NO-D4BECLky.js"), "../language/pl-PL.json": () => import("./pl-PL-xxcCzZvq.js"), "../language/pt-BR.json": () => import("./pt-BR-gh27BC86.js"), "../language/pt-PT.json": () => import("./pt-PT-DYihdcJx.js"), "../language/ro-RO.json": () => import("./ro-RO-Di-C4PpC.js"), "../language/sk-SK.json": () => import("./sk-SK-B0hEG-HR.js"), "../language/sl-SI.json": () => import("./sl-SI-DdjgSySI.js"), "../language/sv-SE.json": () => import("./sv-SE-BHkYspm-.js") }), `../language/${lang}.json`, 3) }
|
|
24
|
-
]);
|
|
25
|
-
if (!rootLe) {
|
|
26
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
27
|
-
}
|
|
28
|
-
const entityProblems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
29
|
-
const country = getLegalEntityCountry(rootLe);
|
|
30
|
-
const initialForms = Object.keys(getForms(country));
|
|
31
|
-
const problemsByTask = filterProblemsByTaskForms(entityProblems, initialForms);
|
|
32
|
-
return /* @__PURE__ */ jsx(
|
|
33
|
-
BusinessDetailsDropin,
|
|
34
|
-
{
|
|
35
|
-
taskType: TaskTypes.BUSINESS_DETAILS,
|
|
36
|
-
legalEntityResponse: rootLe,
|
|
37
|
-
problems: problemsByTask,
|
|
38
|
-
country,
|
|
39
|
-
onSubmit,
|
|
40
|
-
handleHomeClick
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
RootBusinessDetailsPage
|
|
46
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
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] = "01a7460f-3ae2-4c66-a451-34c8d4dad203", e._sentryDebugIdIdentifier = "sentry-dbid-01a7460f-3ae2-4c66-a451-34c8d4dad203");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { u as useTranslation, c as useLegalEntity, R as ROOT_LE, w as skipToken, a as addResourceBundles, L as Loader, g as getLegalEntityCountry, O as TaskTypes, M as EntityTypes, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CGako8b0.js";
|
|
11
|
-
import { jsx } from "preact/jsx-runtime";
|
|
12
|
-
import { i as useCapabilityProblems, j as getProblemsForEntity } from "./Spacer-DNqjKZqD.js";
|
|
13
|
-
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-DN-h5hoU.js";
|
|
14
|
-
function SoleProprietorshipPage({
|
|
15
|
-
solePropId,
|
|
16
|
-
onSubmit,
|
|
17
|
-
handleHomeClick
|
|
18
|
-
}) {
|
|
19
|
-
const { i18n } = useTranslation();
|
|
20
|
-
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
21
|
-
const { data: solePropLe } = useLegalEntity(solePropId ?? skipToken);
|
|
22
|
-
const capabilityProblems = useCapabilityProblems();
|
|
23
|
-
addResourceBundles(i18n, [
|
|
24
|
-
{ ns: "business", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../Business/language/bg-BG.json": () => import("./bg-BG-DNp7JUA6.js"), "../../Business/language/cs-CZ.json": () => import("./cs-CZ-B58kCXel.js"), "../../Business/language/da-DK.json": () => import("./da-DK-DEdQ-QPp.js"), "../../Business/language/de-DE.json": () => import("./de-DE-DrSSblam.js"), "../../Business/language/el-GR.json": () => import("./el-GR-z3YMr7LZ.js"), "../../Business/language/en-US.json": () => import("./en-US-d4WBvUW7.js"), "../../Business/language/es-ES.json": () => import("./es-ES-ShWaSuJd.js"), "../../Business/language/et-EE.json": () => import("./et-EE-BApmUBuH.js"), "../../Business/language/fi-FI.json": () => import("./fi-FI-ChApf7lf.js"), "../../Business/language/fr-FR.json": () => import("./fr-FR-Q3urMjbl.js"), "../../Business/language/hr-HR.json": () => import("./hr-HR-jGIf2Gtl.js"), "../../Business/language/hu-HU.json": () => import("./hu-HU-BjcOaEwh.js"), "../../Business/language/it-IT.json": () => import("./it-IT-vdMlF0Ha.js"), "../../Business/language/ja-JP.json": () => import("./ja-JP-DsGXGCjF.js"), "../../Business/language/lt-LT.json": () => import("./lt-LT-Y9aKpjC4.js"), "../../Business/language/lv-LV.json": () => import("./lv-LV-Bm1fntV2.js"), "../../Business/language/nl-NL.json": () => import("./nl-NL-C3YJkSIj.js"), "../../Business/language/no-NO.json": () => import("./no-NO-D4BECLky.js"), "../../Business/language/pl-PL.json": () => import("./pl-PL-xxcCzZvq.js"), "../../Business/language/pt-BR.json": () => import("./pt-BR-gh27BC86.js"), "../../Business/language/pt-PT.json": () => import("./pt-PT-DYihdcJx.js"), "../../Business/language/ro-RO.json": () => import("./ro-RO-Di-C4PpC.js"), "../../Business/language/sk-SK.json": () => import("./sk-SK-B0hEG-HR.js"), "../../Business/language/sl-SI.json": () => import("./sl-SI-DdjgSySI.js"), "../../Business/language/sv-SE.json": () => import("./sv-SE-BHkYspm-.js") }), `../../Business/language/${lang}.json`, 5) }
|
|
25
|
-
]);
|
|
26
|
-
if (!rootLe || solePropId && !solePropLe) {
|
|
27
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
28
|
-
}
|
|
29
|
-
const problems = capabilityProblems && solePropId ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, solePropId) : void 0;
|
|
30
|
-
const country = getLegalEntityCountry(solePropLe ?? rootLe);
|
|
31
|
-
return /* @__PURE__ */ jsx(
|
|
32
|
-
BusinessDetailsDropin,
|
|
33
|
-
{
|
|
34
|
-
taskType: TaskTypes.SOLE_PROPRIETOR_COMPANY,
|
|
35
|
-
legalEntityResponse: rootLe,
|
|
36
|
-
associatedLegalArrangement: solePropLe,
|
|
37
|
-
problems: problems ?? {},
|
|
38
|
-
country,
|
|
39
|
-
onSubmit,
|
|
40
|
-
handleHomeClick
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
SoleProprietorshipPage
|
|
46
|
-
};
|