@adyen/kyc-components 3.91.0 → 3.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/dist/{4-people-BzyXLUF9.js → 4-people-BtDi7O9A.js} +2 -2
  2. package/dist/{AcceptTermsOfServiceComponent-Bl8Skw0p.js → AcceptTermsOfServiceComponent-T7eWi57Z.js} +17 -14
  3. package/dist/{Accordion-BxBwztLx.js → Accordion-Boa_Vira.js} +2 -2
  4. package/dist/{AccountSetupRejected-DWnI467S.js → AccountSetupRejected-LAVhMMBt.js} +4 -4
  5. package/dist/{ActionBar-BI8EL50o.js → ActionBar-CK8dwgSJ.js} +1 -1
  6. package/dist/{Address-BUrDDnmR.js → Address-ki-bCjUJ.js} +23 -289
  7. package/dist/{Alert-B83aFhFn.js → Alert-TCEgDc2-.js} +3 -3
  8. package/dist/{Avatar-CWGv3_UH.js → Avatar-AC-D1DKh.js} +2 -2
  9. package/dist/{BusinessFinancingComponent-Dp9pkrSs.js → BusinessFinancingComponent-Cf-EEnyR.js} +6 -6
  10. package/dist/{BusinessFinancingDropin-CxDQONVa.js → BusinessFinancingDropin-DeLlYaOF.js} +30 -22
  11. package/dist/{BusinessFinancingPage-CK4iko3V.js → BusinessFinancingPage-DtX8x3Zp.js} +4 -4
  12. package/dist/{BusinessTypeSelectionPage-BbCt3hSM.js → BusinessTypeSelectionPage-6Ltt53Mu.js} +58 -33
  13. package/dist/{Card-CQrP0PXC.js → Card-Det7uTiv.js} +2 -2
  14. package/dist/{debouncedInputEvent-CFFx_oML.js → Checkbox-D8rB6_HN.js} +3 -38
  15. package/dist/Confirm-Ctfqp-1b.js +64 -0
  16. package/dist/ConstitutionalDocument-TJAc9nDQ.js +2358 -0
  17. package/dist/ContextGuidance-CCknw_Y1.js +34 -0
  18. package/dist/CountryField-DzmOWqiE.js +66 -0
  19. package/dist/{CreateIndividualComponent-B6ecxCd8.js → CreateIndividualComponent-_H34wdze.js} +6 -6
  20. package/dist/{CreateTransferInstrumentComponent-Chqddjgy.js → CreateTransferInstrumentComponent-CmnVEFaB.js} +5 -12
  21. package/dist/{Currency-CkQVLmOQ.js → Currency-C2egEHMF.js} +64 -8
  22. package/dist/{CustomerSupport-BDynvVnl.js → CustomerSupport-DLfbNC-J.js} +12 -10
  23. package/dist/{DebugModal-DAu7rz8a.js → DebugModal-C0uG_A8N.js} +8 -7
  24. package/dist/{DecisionMakerDetailsPage-BBqNmh_M.js → DecisionMakerDetailsPage-BTR-hRwO.js} +6 -6
  25. package/dist/{DecisionMakers-Ddvw0N__.js → DecisionMakers-B4qQ3M6Y.js} +27 -21
  26. package/dist/Dropzone-CKT3THCY.js +218 -0
  27. package/dist/{EmbeddedStatus-BSK268B-.js → EmbeddedStatus-Bst5MPzi.js} +3 -3
  28. package/dist/{EndStateLayout-B8KmFejY.js → EndStateLayout-Ck_Lvgng.js} +2 -2
  29. package/dist/{EntityAssociation-DBPiXzNF.js → EntityAssociation-bcF_I_DK.js} +8 -8
  30. package/dist/{EntityGuidanceStatus-QEzHcb28.js → EntityGuidanceStatus-D6VoRE_0.js} +4 -3
  31. package/dist/ErrorPanel-CFN2G9Vz.js +190 -0
  32. package/dist/Field-B3Vy1-QZ.js +142 -0
  33. package/dist/{FormNavigation-DLJbUsy3.js → FormNavigation-Brw-75s0.js} +3 -3
  34. package/dist/{FormWrapper-41qnDF4W.js → FormWrapper-BcNyCMkD.js} +10 -10
  35. package/dist/Header-YafgG5Nz.js +83 -0
  36. package/dist/Image-Cvb4hnru.js +44 -0
  37. package/dist/{IndividualOnfido-pGSPtITh.js → IndividualOnfidoDropin-Dy5obHs1.js} +3833 -5548
  38. package/dist/InputDate-UCHQ3zOB.js +43 -0
  39. package/dist/InputGroup-WBfGDV5F.js +32 -0
  40. package/dist/InputText-DGKAS6ZI.js +134 -0
  41. package/dist/{Introduction-DaRfsN8P.js → Introduction-DOxSVZ6X.js} +4 -4
  42. package/dist/{JpAddress-BrtEV6zM.js → JpAddress-DClXaVjy.js} +22 -10
  43. package/dist/LandingLayout-co7NR2te.js +60 -0
  44. package/dist/{LegalRepresentativeDetailsPage-XcmRRT7P.js → LegalRepresentativeDetailsPage-DOP3L2r9.js} +4 -4
  45. package/dist/Link-DWTJ55UO.js +35 -0
  46. package/dist/List-BAzyC6sw.js +83 -0
  47. package/dist/{ListItem-DlRGqcSA.js → ListItem-B8D-kUHN.js} +3 -3
  48. package/dist/LoaderWrapper-CUz5NRFr.js +42 -0
  49. package/dist/{ManageIndividualComponent-BpzsaZ1O.js → ManageIndividualComponent-DND7vuna.js} +5 -5
  50. package/dist/{ManageTermsOfServiceComponent-D9i2HO5I.js → ManageTermsOfServiceComponent-ylDupO1E.js} +5 -5
  51. package/dist/{ManageTransferInstrumentComponent-C6LYppym.js → ManageTransferInstrumentComponent-CgUfGP5E.js} +16 -13
  52. package/dist/{Spacer-w89ksCbG.js → MaskedInput-Cn0VAuEp.js} +17 -631
  53. package/dist/{MaybeModal-DW5SxNsJ.js → MaybeModal-CWCEHeOg.js} +3 -3
  54. package/dist/{Modal-B4wxf7HK.js → Modal-pyBUluei.js} +2 -2
  55. package/dist/OnboardingDropinComponent-DwKImil4.js +2306 -0
  56. package/dist/{PayoutDetailsDropin-BKXxBApD.js → PayoutDetailsDropin-lYVb5WCQ.js} +105 -76
  57. package/dist/Radio-BMtxBpnn.js +39 -0
  58. package/dist/RadioGroup-DPc8nUuk.js +98 -0
  59. package/dist/RadioGroupCard-Pj9qq4uW.js +150 -0
  60. package/dist/{Review-DSdM3vGX.js → Review-gkTjl3a8.js} +7 -7
  61. package/dist/{RootBusinessDetailsPage-CqpiMFn9.js → RootBusinessDetailsPage-DjwEzuLA.js} +5 -5
  62. package/dist/{RootBusinessLinesPage-DUIp_zfH.js → RootBusinessLinesPage-2-U3mf6i.js} +104 -50
  63. package/dist/{RootIndividualDetailsPage-BpTbnRMJ.js → RootIndividualDetailsPage-BFYP63_i.js} +6 -6
  64. package/dist/{useForm-_Kjd_HFb.js → Select-D1rFT3T8.js} +10 -775
  65. package/dist/{SignPCIComponent-B-nJZ1cD.js → SignPCIComponent-DqElmjjG.js} +13 -11
  66. package/dist/{SingpassSelection-D7wRmaLb.js → SingpassSelection-eruroIiQ.js} +9 -7
  67. package/dist/{SoleProprietorshipPage-DUVjo6fc.js → SoleProprietorshipPage-7YdzA7iH.js} +4 -4
  68. package/dist/{SourceOfFundsPage-CFDBqD8v.js → SourceOfFundsPage-C_wiSoc4.js} +39 -26
  69. package/dist/Spacer-BK3jDget.js +18 -0
  70. package/dist/{StepProgressIndicator-BvU4jA3I.js → StepProgressIndicator-DLoEzGro.js} +1 -1
  71. package/dist/{StoreProvider-CyzNf7KK.js → StoreProvider-D9IR5HNN.js} +331 -222
  72. package/dist/StructuredList-9dnJRdx_.js +61 -0
  73. package/dist/{Summary-QyNHKBjO.js → Summary-Bq94iVfc.js} +10 -5
  74. package/dist/{InputText-DLAmX8CW.js → TaskVerificationStatus-BLCkXEn6.js} +3 -123
  75. package/dist/TaxInformationField-c-ZWfhUk.js +3134 -0
  76. package/dist/{TaxReportingDropin-Bn2xYbVw.js → TaxReportingDropin-ajO0q4eZ.js} +20 -17
  77. package/dist/TextArea-D9eJloeE.js +103 -0
  78. package/dist/TileGroup-CaY3i_T7.js +203 -0
  79. package/dist/{TrustDetailsPage-D0sr6zMt.js → TrustDetailsPage-BWXZX4-u.js} +40 -27
  80. package/dist/{TrustMemberCompanyPage-4sIP-M16.js → TrustMemberCompanyPage-CJj2BpXu.js} +5 -5
  81. package/dist/{TrustMemberIndividualPage-CelIjIAw.js → TrustMemberIndividualPage-BXp9RXDw.js} +4 -4
  82. package/dist/{TrustMemberRoleAndTypePage-C3CRy717.js → TrustMemberRoleAndTypePage-gYJ5U6RH.js} +24 -14
  83. package/dist/{TrustMembersOverview-HrRgAsno.js → TrustMembersOverview-Chmnt5jS.js} +13 -12
  84. package/dist/{UnincorporatedPartnershipIndividualPage-Dre5_Nuk.js → UnincorporatedPartnershipIndividualPage-DckUiPPY.js} +4 -4
  85. package/dist/{UnincorporatedPartnershipMemberCompanyPage-woQiy94h.js → UnincorporatedPartnershipMemberCompanyPage-Bx0A5Bit.js} +5 -5
  86. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DrirgJXY.js → UnincorporatedPartnershipMemberRoleAndTypePage-CEE1hzIn.js} +23 -16
  87. package/dist/{UnincorporatedPartnershipMembersOverview-BBiRqJkR.js → UnincorporatedPartnershipMembersOverview-wB8K9r6g.js} +10 -9
  88. package/dist/{VerificationErrorAlert-B_ovSmUS.js → VerificationErrorAlert-DZ5OOTBN.js} +4 -4
  89. package/dist/{ViewVerificationStatusComponent-CDQk4Nxa.js → ViewVerificationStatusComponent-BVY4YUJf.js} +4 -4
  90. package/dist/adyen-business-financing.js +3 -3
  91. package/dist/adyen-individual-configuration.js +3 -3
  92. package/dist/adyen-individual-status.js +3 -3
  93. package/dist/adyen-kyc-components.js +21 -20
  94. package/dist/adyen-onboarding.js +3 -3
  95. package/dist/adyen-terms-of-service-management.js +3 -3
  96. package/dist/adyen-terms-of-service-status.js +3 -3
  97. package/dist/adyen-transfer-instrument-configuration.js +3 -3
  98. package/dist/adyen-transfer-instrument-management.js +3 -3
  99. package/dist/adyen-verification-status.js +3 -3
  100. package/dist/{arrow-right-KxA3SvQj.js → arrow-right-BoqwUH_d.js} +2 -2
  101. package/dist/bafinUtils-Wct4TWLH.js +149 -0
  102. package/dist/{bag-BPumznWh.js → bag-BXVWLrwo.js} +2 -2
  103. package/dist/{bank-D6FiNBhs.js → bank-1GvaHPAZ.js} +2 -2
  104. package/dist/{bin-Bz6KOIeE.js → bin-Ba-3ll8T.js} +2 -2
  105. package/dist/{business-lines-DboUCbXw.js → business-lines-BAqTbnBw.js} +2 -2
  106. package/dist/{capital-GVQ3svwN.js → capital-9TKHySO7.js} +2 -2
  107. package/dist/{cash-stack-D9AoDDwt.js → cash-stack-DwYu4xNy.js} +2 -2
  108. package/dist/{certificate-CdEWgHQf.js → certificate-N2YFedpI.js} +2 -2
  109. package/dist/{checkmark-Q7x6tGhy.js → checkmark-D9dGhGpG.js} +2 -2
  110. package/dist/{checkmark-circle-x7dzbp3I.js → checkmark-circle-CFWClLQ6.js} +2 -2
  111. package/dist/{checkmark-circle-fill-CsvN5_PL.js → checkmark-circle-fill-DEB-tuGl.js} +2 -2
  112. package/dist/{checkmark-small-D35myntq.js → checkmark-small-D3VNx2lo.js} +2 -2
  113. package/dist/{chevron-down-C2iDorpW.js → chevron-down-C7SUSYfl.js} +2 -2
  114. package/dist/{chevron-left-ztPO84q-.js → chevron-left-BXmd-S46.js} +2 -2
  115. package/dist/{chevron-right-C_JN0oDt.js → chevron-right-jE6RwM2B.js} +2 -2
  116. package/dist/{chevron-up-CgG8n25g.js → chevron-up-BdfNcqzq.js} +2 -2
  117. package/dist/{circle-Bt3Nlr3q.js → circle-BJPTMCWB.js} +2 -2
  118. package/dist/{circle-small-filled-YMzP6yQU.js → circle-small-filled-BuO8Vg8j.js} +2 -2
  119. package/dist/{clock-BZHremOA.js → clock-DAzaBRWk.js} +2 -2
  120. package/dist/{coins-fkAk6dCo.js → coins-DYdzG5e_.js} +2 -2
  121. package/dist/commonValidators-DcFd5CHs.js +24 -0
  122. package/dist/{contract-BTa4HltT.js → contract-BfJb1t6M.js} +2 -2
  123. package/dist/{cross-Cn09MtQ_.js → cross-CDS_eot4.js} +2 -2
  124. package/dist/{cross-circle-fill-maan7Z5S.js → cross-circle-fill-C-EJ57Yn.js} +2 -2
  125. package/dist/{cross-circle-fill-small-DCz52AuN.js → cross-circle-fill-small-DkPjsuBH.js} +2 -2
  126. package/dist/currency-CrdnaaDu.js +35 -0
  127. package/dist/datasetUtil-BHQp0-xL.js +58 -0
  128. package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
  129. package/dist/{decision-makers-group-CgddXgrx.js → decision-makers-group-DrvpnEqj.js} +2 -2
  130. package/dist/{digital-wallet-D_IpxnkN.js → digital-wallet-Bx5YM1LY.js} +2 -2
  131. package/dist/{document-1-C08ut-Dt.js → document-1-qlSTF558.js} +2 -2
  132. package/dist/{document-blurred-2Zpodj3_.js → document-blurred-BiWap0xs.js} +2 -2
  133. package/dist/{document-cut-off-ClS7RiOp.js → document-cut-off-aQezqOif.js} +2 -2
  134. package/dist/{document-expired-CjksBq-N.js → document-expired-BhBXaWWQ.js} +2 -2
  135. package/dist/{document-front-DiAairT3.js → document-front-DYuhZGeQ.js} +2 -2
  136. package/dist/{document-person-vxlA6C5f.js → document-person-CDbnTOdV.js} +2 -2
  137. package/dist/{download-Drhk9k1f.js → download-BZQB1WkZ.js} +2 -2
  138. package/dist/{dropinUtils-DCWhMKpQ.js → dropinUtils-BpJn607e.js} +4 -4
  139. package/dist/{edit-1-CFoDTMvQ.js → edit-1-DAqtnOIx.js} +2 -2
  140. package/dist/{en-US-BzrLvydZ.js → en-US-CjjPhkB5.js} +2 -2
  141. package/dist/{external-link-DCMYUMfW.js → external-link-Cg6pJaSJ.js} +2 -2
  142. package/dist/fieldConfig-BPwb1GHc.js +134 -0
  143. package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
  144. package/dist/form-rules-DhbF2mY4.js +13 -0
  145. package/dist/formUtils-BlVlgetw.js +137 -0
  146. package/dist/{funds-in-D8bj0aoE.js → funds-in-CInoUdmG.js} +2 -2
  147. package/dist/{getName-l7X1ZGKx.js → getName-CzpJ9tV7.js} +2 -2
  148. package/dist/getProps-CLJfvUMb.js +156 -0
  149. package/dist/{gift-CQ_DEma7.js → gift-omNInZeB.js} +2 -2
  150. package/dist/{graph-BJmqglH2.js → graph-DunG_uu1.js} +2 -2
  151. package/dist/{graph-up-Bq6adtlX.js → graph-up-BZze4i6m.js} +2 -2
  152. package/dist/{hasDataChanged-BXawTZla.js → hasDataChanged-8e8x8zjz.js} +2 -2
  153. package/dist/{headquarter-DNYyuuFq.js → headquarter-BhpSibFO.js} +2 -2
  154. package/dist/{hotel-BuNql78Z.js → hotel-Cp7VgGCJ.js} +2 -2
  155. package/dist/{house-B6sNRj-B.js → house-BhyBQdR3.js} +2 -2
  156. package/dist/{id-blurred-9dzBOWCE.js → id-blurred-B5lHEP8M.js} +2 -2
  157. package/dist/{id-cut-off-CohJCI2h.js → id-cut-off-Ba1FRzKO.js} +2 -2
  158. package/dist/{id-front-CSZfvdRg.js → id-front-CpNWN6nG.js} +2 -2
  159. package/dist/{id-glare-Q2JWo5ts.js → id-glare-DgCQON8k.js} +2 -2
  160. package/dist/{id-verification-instant-BUVBO4R3.js → id-verification-instant-Byt4Oul6.js} +2 -2
  161. package/dist/{id-verification-manual-B3YZALYU.js → id-verification-manual-CvcTkOSY.js} +2 -2
  162. package/dist/{iframeWidget-CbtmWmoO.js → iframeWidget-D6BlBF0m.js} +4 -4
  163. package/dist/{image-BSihO8lR.js → image-CmB0ioUM.js} +2 -2
  164. package/dist/{info-vHTZWoJ7.js → info-Bb_-xIEK.js} +2 -2
  165. package/dist/{info-filled-SQotHmT9.js → info-filled-CK8LB339.js} +2 -2
  166. package/dist/{instant-verification-Dvvkyfmp.js → instant-verification-UrnuHTYn.js} +2 -2
  167. package/dist/isEmpty-CsYVgjoD.js +23 -0
  168. package/dist/japanSupportUtils-iATUjnbf.js +17 -0
  169. package/dist/jpAddressSchema-De6ix57p.js +28 -0
  170. package/dist/{localizeDateString-BX5t59Ip.js → localizeDateString-BHDr1NID.js} +2 -2
  171. package/dist/{location-Q4oKvnkl.js → location-itJfxrDQ.js} +2 -2
  172. package/dist/{mail-BOdyoVqB.js → mail-VHTlAusn.js} +2 -2
  173. package/dist/makeSelectItemForRole-Bm2NwBxD.js +133 -0
  174. package/dist/{manual-verification-BvZWqA00.js → manual-verification-BO8zgAYT.js} +2 -2
  175. package/dist/{mapExistingFile-Bd7nsoK8.js → mapExistingFile-DNBa6Ekj.js} +80 -5
  176. package/dist/mapJpAddressSchemaToAddressLocalizations-BNb8d51F.js +147 -0
  177. package/dist/{mapLegalEntityToIndividualOnfidoSchema-CQF6zsO7.js → mapLegalEntityToIndividualOnfidoSchema-DREgz5Ms.js} +63 -3
  178. package/dist/{mapTransferInstrumentToPayoutAccount-CacHlKHM.js → mapTransferInstrumentToPayoutAccount-C5NqOfNW.js} +2 -2
  179. package/dist/{minus-circle-filled-kC2IUvKz.js → minus-circle-filled-ZhtJ0GD3.js} +2 -2
  180. package/dist/{onfido-logo-BWSv__sQ.js → onfido-logo-BSkKPH10.js} +2 -2
  181. package/dist/{options-horizontal-CBmbNv7R.js → options-horizontal-GuXvLvV3.js} +2 -2
  182. package/dist/{partner-CPjsrePY.js → partner-QD27Vy4w.js} +2 -2
  183. package/dist/{passport-blurred-B4UDQfmc.js → passport-blurred-CVG493IJ.js} +2 -2
  184. package/dist/{passport-cut-off-C0N2mgLk.js → passport-cut-off-COzA_TmB.js} +2 -2
  185. package/dist/{passport-front-BwA7wR91.js → passport-front-WJleLixT.js} +2 -2
  186. package/dist/{passport-front-green-BL4HmtsB.js → passport-front-green-CZVkCa1n.js} +2 -2
  187. package/dist/{passport-glare-Mg2ixsYA.js → passport-glare-BP5WnJZj.js} +2 -2
  188. package/dist/patternValidators-BXduwLbz.js +83 -0
  189. package/dist/{pay-by-link-plane-BVZndh67.js → pay-by-link-plane-BpY8Q6-B.js} +2 -2
  190. package/dist/{payout-ChUEoLjt.js → payout-DtB68BcZ.js} +2 -2
  191. package/dist/{payout-verification-instant-5u-wvFKv.js → payout-verification-instant-BzpfOQLD.js} +2 -2
  192. package/dist/{payout-verification-manual-BH2mu0UW.js → payout-verification-manual-gNEoeZkV.js} +2 -2
  193. package/dist/{person-DGjUU4S4.js → person-IVZG3t3_.js} +2 -2
  194. package/dist/{plaid-logo-CtActXTN.js → plaid-logo-FsZ7kfL-.js} +2 -2
  195. package/dist/{plus-CWXA5wdX.js → plus-DiALAL8-.js} +2 -2
  196. package/dist/{plus-circle-filled-CbC0u2Y1.js → plus-circle-filled-BzHtTqEN.js} +2 -2
  197. package/dist/{process-field-configurations-BZQqH4-M.js → process-field-configurations-B26ehyAw.js} +3 -3
  198. package/dist/{recurring-CkL4cCM2.js → recurring-DKNs9K3x.js} +2 -2
  199. package/dist/{reporting-DerosUNm.js → reporting-D5ABpLO_.js} +2 -2
  200. package/dist/{resolveEnvironment-C6JtHmZc.js → resolveEnvironment-B5Yrsa4J.js} +3 -3
  201. package/dist/{revenue-accelerate-Dp4Ns_5c.js → revenue-accelerate-D7Sp0V4a.js} +2 -2
  202. package/dist/{review-CxIN9azU.js → review-D4TUjcWF.js} +2 -2
  203. package/dist/roleMetadata-DmgqzhZJ.js +66 -0
  204. package/dist/{rules-ClDW_ZSK.js → rules-B_6RrE9T.js} +6 -5
  205. package/dist/{save-Fgy7EDid.js → save-BfqO2JBI.js} +2 -2
  206. package/dist/{search-C4GZ-Rc1.js → search-Cmzbf5zI.js} +2 -2
  207. package/dist/{show-yPjPmEf8.js → show-IdbU1C6P.js} +2 -2
  208. package/dist/{singpass-logo-BkMSwiGY.js → singpass-logo-wY4xsmTX.js} +2 -2
  209. package/dist/{singpass-verification-instant-hY4eGFwl.js → singpass-verification-instant-JCqTr7Mv.js} +2 -2
  210. package/dist/{singpass-verification-manual-DwhRpy5Q.js → singpass-verification-manual-DQ7XW6R3.js} +2 -2
  211. package/dist/{solution-payments-CNAat9h7.js → solution-payments-DpyE_sdS.js} +2 -2
  212. package/dist/{store-IuAkDRAp.js → store-Btc4GcmU.js} +2 -2
  213. package/dist/style.css +965 -993
  214. package/dist/styles-CLV89_hH.js +965 -993
  215. package/dist/summaryItem-CAQCQSkt.js +18 -0
  216. package/dist/{tax-reporting-graph-DjzwRgE6.js → tax-reporting-graph-hgoilCHZ.js} +2 -2
  217. package/dist/{terminal-1-_me9J9h0.js → terminal-1-D1pwXCoi.js} +2 -2
  218. package/dist/{tink-logo-BcIv93ND.js → tink-logo-DDyjz5eJ.js} +2 -2
  219. package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +1 -1
  220. package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +1 -1
  221. package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +1 -1
  222. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -1
  223. package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +1 -1
  224. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -1
  225. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +1 -1
  226. package/dist/types/api/documents/useCreateDocument.d.ts +1 -1
  227. package/dist/types/api/documents/useDeleteDocument.d.ts +1 -1
  228. package/dist/types/api/documents/useDocument.d.ts +1 -1
  229. package/dist/types/api/documents/useUpdateDocument.d.ts +1 -1
  230. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
  231. package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +1 -1
  232. package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +1 -1
  233. package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +1 -1
  234. package/dist/types/api/legalEntity/useConfirmReview.d.ts +1 -1
  235. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +1 -1
  236. package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +1 -1
  237. package/dist/types/api/pci/useSignPci.d.ts +1 -2
  238. package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
  239. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +1 -1
  240. package/dist/types/api/types.d.ts +2 -1
  241. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +1 -1
  242. package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +1 -1
  243. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +1 -1
  244. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
  245. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
  246. package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
  247. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +0 -1
  248. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
  249. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  250. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
  251. package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
  252. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
  253. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +0 -1
  254. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
  255. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
  256. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
  257. package/dist/types/components/BusinessLines/tasks/types.d.ts +2 -0
  258. package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -2
  259. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +475 -475
  260. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +1 -2
  261. package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
  262. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -1
  263. package/dist/types/components/Individual/forms/Individual/Individual.d.ts +41 -3
  264. package/dist/types/components/Individual/forms/Individual/form-ids.d.ts +2 -0
  265. package/dist/types/components/Individual/forms/Individual/types.d.ts +1 -2
  266. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +1 -0
  267. package/dist/types/components/Individual/forms/IndividualOnfido/form-ids.d.ts +2 -0
  268. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +1 -1
  269. package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
  270. package/dist/types/components/Shared/Introduction/copy.d.ts +1 -1
  271. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  272. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
  273. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
  274. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +1 -1
  275. package/dist/types/core/user-events.d.ts +1 -0
  276. package/dist/types/language/types.d.ts +7 -2
  277. package/dist/types/language/utils.d.ts +1 -2
  278. package/dist/types/types/assert.d.ts +1 -0
  279. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
  280. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
  281. package/dist/types/utils/api/processCapabilitites.d.ts +13 -0
  282. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  283. package/dist/types/utils/formUtils.d.ts +1 -2
  284. package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
  285. package/dist/types/utils/getName.d.ts +1 -1
  286. package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
  287. package/dist/types/utils/translation.d.ts +3 -2
  288. package/dist/{types-DDnAZYTj.js → types-C6ntGMCy.js} +3 -26
  289. package/dist/{types-DE1uuPfP.js → types-CpAtsPmJ.js} +1 -1
  290. package/dist/{types-hGeLq0SR.js → types-c9nG7Dev.js} +1 -1
  291. package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
  292. package/dist/{upload-BF65P4KM.js → upload-BmUXjsaU.js} +2 -2
  293. package/dist/{us-check-CYY6Crhr.js → us-check-C1rTBsCY.js} +2 -2
  294. package/dist/{us-check-account-number-C7KE5YzX.js → us-check-account-number-9lI1dXNC.js} +2 -2
  295. package/dist/{us-check-routing-number-DUbhsYAR.js → us-check-routing-number-s_KaAGSM.js} +2 -2
  296. package/dist/{useAssociatedLegalEntity-D_Nk_obe.js → useAssociatedLegalEntity-ahBb64MW.js} +2 -2
  297. package/dist/useBusinessDetailsData-qQ2HRnKK.js +5161 -0
  298. package/dist/{useCreateLegalEntity-DT7ue23d.js → useCreateLegalEntity-Kc8_ZlAe.js} +2 -2
  299. package/dist/useDataset-DfKmlbQd.js +74 -0
  300. package/dist/useForm-9uKM-XKf.js +582 -0
  301. package/dist/{FormFlow-BrgeP70A.js → useFormContext-CvQfKDA3.js} +26 -31
  302. package/dist/{useGlobalData-C7tjZfC0.js → useGlobalData-BVQ2OrIi.js} +3 -3
  303. package/dist/useId-BZ0PA7jP.js +24 -0
  304. package/dist/{useMultiForm-DWozxGN4.js → useMultiForm-pAiPIh7X.js} +4 -4
  305. package/dist/{useOnboardingStatus-DBLS6PUq.js → useOnboardingStatus-BhDBSLB6.js} +1 -1
  306. package/dist/{useScenarios-DD06bWNN.js → useScenarios-DFW21Vhf.js} +2 -2
  307. package/dist/{useTermsOfServiceStatus-D2lYSqHn.js → useTermsOfServiceStatus-BnO0rXiL.js} +1 -1
  308. package/dist/{useToastContext-Cbw29cqc.js → useToastContext-D6Lbxqj9.js} +5 -17
  309. package/dist/{useUnincorporatedPartnershipMembers-Dbb2VjkF.js → useUnincorporatedPartnershipMembers-CIC7xPbD.js} +5 -5
  310. package/dist/useUpdateBusinessLines-WlwUOtSU.js +337 -0
  311. package/dist/{useUpdateLegalEntity-Aubxhgvv.js → useUpdateLegalEntity-CStkUt4I.js} +3 -3
  312. package/dist/utils-7_xBiPO_.js +58 -0
  313. package/dist/utils-BmxzrkCX.js +165 -0
  314. package/dist/{utils-D1-D6fui.js → utils-CB39nVjj.js} +6 -6
  315. package/dist/{utils-DenrGsUh.js → utils-CDAwsXQa.js} +4 -4
  316. package/dist/utils-DOiFhaKn.js +29 -0
  317. package/dist/{documentUtils-Be5wlCwo.js → validate-Bsx2oHT1.js} +170 -6
  318. package/dist/{validate-BxVes1el.js → validate-D-l23QLG.js} +2 -2
  319. package/dist/validate-D4iK6FUk.js +385 -0
  320. package/dist/{validationError-DPP91cM3.js → validationError-DYYlX-5X.js} +2 -2
  321. package/dist/{warning-circle-fill-CEN1WL7A.js → warning-circle-fill-DBvt921B.js} +2 -2
  322. package/dist/{warning-diamond-filled-BfXMlVrG.js → warning-diamond-filled-Lb2od2ry.js} +2 -2
  323. package/dist/{webinar-DqjqrNEv.js → webinar-m9nuFZBt.js} +2 -2
  324. package/dist/{yapily-logo-CZ4ywjwA.js → yapily-logo-BduxhNRA.js} +2 -2
  325. package/package.json +6 -6
  326. package/dist/ConstitutionalDocument-DM6M40MP.js +0 -143
  327. package/dist/CountryField-CsKJAI53.js +0 -843
  328. package/dist/IndividualOnfidoDropin-DZEn2Tf8.js +0 -2575
  329. package/dist/OnboardingDropinComponent-Cx-c_p0i.js +0 -7623
  330. package/dist/getFieldsWithExistingData-CfckMyJ1.js +0 -22
  331. package/dist/mapFinancialReportsToFinancialInformation-Bfvt2G87.js +0 -67
  332. package/dist/mapJpAddressSchemaToAddressLocalizations-CWY2lZGD.js +0 -63
  333. package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
  334. package/dist/useBusinessDetailsData-DG9EJBH_.js +0 -2441
  335. package/dist/useDataset-DCCxYOjr.js +0 -220
  336. package/dist/useUpdateBusinessLines-8bDYsLav.js +0 -46
  337. package/dist/validate-BgMFLdKI.js +0 -41
@@ -0,0 +1,385 @@
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] = "b9bf7694-a65b-4b16-bbaf-39e18a6bd4b7", e._sentryDebugIdIdentifier = "sentry-dbid-b9bf7694-a65b-4b16-bbaf-39e18a6bd4b7");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { useCallback, useState, useMemo, useEffect } from "preact/hooks";
11
+ import { b as useApiContext, k as httpPost, C as CountryCodes, as as isEmpty, H as createLogger, u as useTranslation, al as entriesOf } from "./StoreProvider-D9IR5HNN.js";
12
+ import { jsx, jsxs } from "preact/jsx-runtime";
13
+ import { F as Field } from "./Field-B3Vy1-QZ.js";
14
+ import { H as Header } from "./Header-YafgG5Nz.js";
15
+ import { m as makeMask, a as nonInputs, n as numericInputs, s as spacer, M as MaskedInput, I as InputEmail } from "./MaskedInput-Cn0VAuEp.js";
16
+ import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
17
+ import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-BlVlgetw.js";
18
+ import { S as Select } from "./Select-D1rFT3T8.js";
19
+ import { u as useDataset } from "./useDataset-DfKmlbQd.js";
20
+ import { I as InputGroup } from "./InputGroup-WBfGDV5F.js";
21
+ import { d as datasetIdentifier } from "./datasetUtil-BHQp0-xL.js";
22
+ import { e as emailPattern } from "./basePatterns-BwdnMQxI.js";
23
+ const validatePhoneNumber = (baseUrl, data) => {
24
+ return httpPost(
25
+ {
26
+ baseUrl,
27
+ path: `validations/phonenumber`
28
+ },
29
+ data
30
+ );
31
+ };
32
+ const useValidatePhoneNumberImperatively = () => {
33
+ const { baseUrl } = useApiContext();
34
+ return useCallback(
35
+ (data) => validatePhoneNumber(baseUrl.value, data),
36
+ [baseUrl.value]
37
+ );
38
+ };
39
+ const validatePhoneCountryCodeNotEmptyOnBlur = {
40
+ modes: ["blur"],
41
+ validate: (phone) => !isEmpty(phone?.phoneCountryCode),
42
+ errorMessage: "missingPhoneCountryCode"
43
+ };
44
+ const validatePhoneNumberNotEmpty = {
45
+ modes: ["blur"],
46
+ validate: (phone) => !isEmpty(phone?.number),
47
+ errorMessage: "invalidPhoneNumber"
48
+ };
49
+ const getAsyncPhoneValidationRules = (validatePhoneNumber2) => ({
50
+ phoneNumber: {
51
+ asyncValidate: async (phone) => {
52
+ if (!phone?.number) return false;
53
+ return (await validatePhoneNumber2({ number: phone.number })).valid;
54
+ },
55
+ errorMessage: "invalidPhoneNumber",
56
+ modes: ["blur"]
57
+ }
58
+ });
59
+ const defaultValidators = [validatePhoneCountryCodeNotEmptyOnBlur, validatePhoneNumberNotEmpty];
60
+ const defaultFieldMetadata = {
61
+ label: "phoneNumber",
62
+ validators: defaultValidators
63
+ };
64
+ const fieldConfig = {
65
+ [CountryCodes.Albania]: {
66
+ label: "phoneNumber",
67
+ validators: defaultValidators,
68
+ mask: {
69
+ mask: makeMask(...numericInputs(2), spacer, ...numericInputs(3), spacer, ...numericInputs(4))
70
+ },
71
+ placeholder: "phoneNumber__placeholder__AL"
72
+ },
73
+ [CountryCodes.AmericanSamoa]: {
74
+ label: "phoneNumber",
75
+ validators: defaultValidators,
76
+ mask: {
77
+ mask: makeMask(...numericInputs(3), ...nonInputs("-"), ...numericInputs(4))
78
+ },
79
+ placeholder: "phoneNumber__placeholder__AS"
80
+ },
81
+ [CountryCodes.Netherlands]: {
82
+ label: "phoneNumber",
83
+ validators: defaultValidators,
84
+ mask: { mask: makeMask(...numericInputs(1), spacer, ...numericInputs(8)) },
85
+ placeholder: "phoneNumber__placeholder__NL"
86
+ },
87
+ [CountryCodes.Singapore]: {
88
+ label: "phoneNumber",
89
+ validators: defaultValidators,
90
+ mask: { mask: makeMask(...numericInputs(4), spacer, ...numericInputs(4)) },
91
+ placeholder: "phoneNumber__placeholder__SG"
92
+ },
93
+ [CountryCodes.Japan]: {
94
+ label: "phoneNumber",
95
+ validators: defaultValidators,
96
+ mask: {
97
+ mask: makeMask(
98
+ ...numericInputs(2),
99
+ ...nonInputs("-"),
100
+ ...numericInputs(4),
101
+ ...nonInputs("-"),
102
+ ...numericInputs(4)
103
+ )
104
+ },
105
+ placeholder: "phoneNumber__placeholder__JP"
106
+ },
107
+ [CountryCodes.UnitedStates]: {
108
+ label: "phoneNumber",
109
+ validators: defaultValidators,
110
+ mask: {
111
+ mask: makeMask(
112
+ ...nonInputs("(", { displayEagerly: false }),
113
+ ...numericInputs(3),
114
+ ...nonInputs(")"),
115
+ spacer,
116
+ ...numericInputs(3),
117
+ ...nonInputs("-"),
118
+ ...numericInputs(4)
119
+ )
120
+ },
121
+ placeholder: "phoneNumber__placeholder__US"
122
+ }
123
+ };
124
+ const PHONE_FIELD = ["phoneNumber"];
125
+ const logger = createLogger();
126
+ const usePhonePrefixes = () => {
127
+ const [phonePrefixes, setPhonePrefixes] = useState();
128
+ useEffect(() => {
129
+ const loadPhonePrefixes = async () => {
130
+ const loaded = (await import("./phonePrefixes-CnL40uyX.js")).default;
131
+ setPhonePrefixes(loaded);
132
+ };
133
+ loadPhonePrefixes().catch(logger.error);
134
+ }, []);
135
+ return phonePrefixes;
136
+ };
137
+ function PhoneField({
138
+ country,
139
+ name = "phoneNumber",
140
+ data,
141
+ valid,
142
+ errors,
143
+ labels,
144
+ mask,
145
+ readonly,
146
+ optional,
147
+ placeholders,
148
+ handleChangeFor
149
+ }) {
150
+ const { t } = useTranslation("common");
151
+ const { dataset: countries } = useDataset(datasetIdentifier.country);
152
+ const [isFocused, setIsFocused] = useState(false);
153
+ const phonePrefixes = usePhonePrefixes();
154
+ const currentPrefix = phonePrefixes?.[data.phoneNumber?.phoneCountryCode ?? country];
155
+ const numberStrippedOfCountryCode = useMemo(() => {
156
+ if (!phonePrefixes || !data.phoneNumber?.number) return "";
157
+ return currentPrefix && data.phoneNumber?.number.startsWith(currentPrefix) ? data.phoneNumber.number.slice(currentPrefix.length) : data.phoneNumber.number;
158
+ }, [phonePrefixes, data.phoneNumber?.number, currentPrefix]);
159
+ const selectItems = useMemo(() => {
160
+ const countryMap = new Map(countries.map((entry) => [entry.id, entry.name]));
161
+ return entriesOf(phonePrefixes ?? {}).map(([countryCode, prefix]) => {
162
+ const countryName = countryMap.get(countryCode) ?? countryCode;
163
+ return {
164
+ id: countryCode,
165
+ name: `${countryName} (${prefix})`,
166
+ selectedOptionName: `${countryCode} (${prefix})`
167
+ };
168
+ }).sort((a, b) => a.name.localeCompare(b.name));
169
+ }, [phonePrefixes, countries]);
170
+ const handleSelectChange = useCallback(
171
+ (event) => {
172
+ const newCC = phonePrefixes?.[event.target.value];
173
+ const withoutCC = currentPrefix && data.phoneNumber?.number?.startsWith(currentPrefix) ? data.phoneNumber?.number?.slice(currentPrefix.length) : data.phoneNumber?.number?.replace(/\D+/g, "");
174
+ handleChangeFor(
175
+ "phoneNumber",
176
+ "input"
177
+ )({
178
+ phoneCountryCode: event.target.value,
179
+ number: withoutCC ? newCC + withoutCC : newCC,
180
+ type: "mobile"
181
+ });
182
+ },
183
+ [currentPrefix, data.phoneNumber?.number, handleChangeFor, phonePrefixes]
184
+ );
185
+ const handleOnInput = useCallback(
186
+ (event) => {
187
+ const strippedOfCountryCode = currentPrefix ? event.replace(currentPrefix, "") : event;
188
+ const onlyDigits = strippedOfCountryCode.replace(/\D+/g, "");
189
+ const number = currentPrefix ? `${currentPrefix}${onlyDigits}` : onlyDigits;
190
+ handleChangeFor(
191
+ "phoneNumber",
192
+ "input"
193
+ )({
194
+ ...data.phoneNumber,
195
+ number,
196
+ type: "mobile"
197
+ });
198
+ },
199
+ [currentPrefix, data.phoneNumber, handleChangeFor]
200
+ );
201
+ const handleOnBlur = useCallback(
202
+ (event) => {
203
+ const onlyDigits = event.currentTarget.value.replace(/\D+/g, "");
204
+ const number = currentPrefix ? `${currentPrefix}${onlyDigits}` : onlyDigits;
205
+ setIsFocused(false);
206
+ handleChangeFor(
207
+ "phoneNumber",
208
+ "blur"
209
+ )({
210
+ ...data.phoneNumber,
211
+ number,
212
+ type: "mobile"
213
+ });
214
+ },
215
+ [currentPrefix, data.phoneNumber, handleChangeFor]
216
+ );
217
+ const transformOnType = useCallback(
218
+ (value) => currentPrefix ? value.startsWith(currentPrefix) ? value.slice(currentPrefix.length) : value : value,
219
+ [currentPrefix]
220
+ );
221
+ useEffect(() => {
222
+ if (!data.phoneNumber?.phoneCountryCode && country) {
223
+ handleChangeFor(
224
+ "phoneNumber",
225
+ "input"
226
+ )({
227
+ ...data.phoneNumber,
228
+ phoneCountryCode: country,
229
+ type: "mobile"
230
+ });
231
+ }
232
+ }, [country, data.phoneNumber?.phoneCountryCode, data?.phoneNumber, handleChangeFor]);
233
+ return /* @__PURE__ */ jsx(
234
+ Field,
235
+ {
236
+ el: "fieldset",
237
+ name,
238
+ label: labels.phoneNumber ?? t(($) => $["phoneNumber"]),
239
+ errorMessage: errors.phoneNumber,
240
+ isValid: Boolean(valid.phoneNumber),
241
+ optional: Boolean(optional),
242
+ disabled: Boolean(readonly),
243
+ children: (childProps) => /* @__PURE__ */ jsxs(
244
+ InputGroup,
245
+ {
246
+ ...childProps,
247
+ id: "phoneInputGroup",
248
+ isFocused,
249
+ isInvalid: Boolean(!valid.phoneNumber && errors.phoneNumber),
250
+ children: [
251
+ /* @__PURE__ */ jsx(
252
+ Select,
253
+ {
254
+ name: "phoneCountryCode",
255
+ "aria-label": t(($) => $["phoneNumberPrefix"]),
256
+ isMulti: false,
257
+ items: selectItems,
258
+ selected: data.phoneNumber?.phoneCountryCode,
259
+ placeholder: t(($) => $["select"]),
260
+ onChange: handleSelectChange,
261
+ minimal: true
262
+ }
263
+ ),
264
+ /* @__PURE__ */ jsx(
265
+ MaskedInput,
266
+ {
267
+ useFieldComponent: false,
268
+ name: "phoneNumber",
269
+ type: "tel",
270
+ label: labels.phoneNumber ?? t(($) => $["phoneNumber"]),
271
+ value: numberStrippedOfCountryCode,
272
+ "aria-invalid": Boolean(!valid.phoneNumber),
273
+ isValid: Boolean(valid.phoneNumber),
274
+ placeholder: placeholders?.phoneNumber,
275
+ shouldValidate: true,
276
+ errorMessage: errors.phoneNumber,
277
+ readonly,
278
+ disabled: readonly,
279
+ transformOnType,
280
+ ...mask,
281
+ stripNonAllowedInputs: true,
282
+ onInput: handleOnInput,
283
+ onBlur: handleOnBlur,
284
+ onFocus: () => setIsFocused(true)
285
+ }
286
+ )
287
+ ]
288
+ }
289
+ )
290
+ }
291
+ );
292
+ }
293
+ const contactDetailFields = [...PHONE_FIELD, "email"];
294
+ function ContactDetails(props) {
295
+ const { t } = useTranslation("common");
296
+ const {
297
+ country,
298
+ data,
299
+ errors = {},
300
+ handleFieldChange,
301
+ fieldValidationErrors,
302
+ valid = {},
303
+ ...newProps
304
+ } = props;
305
+ let mergedProps = newProps;
306
+ if (!handleFieldChange) {
307
+ return;
308
+ }
309
+ mergedProps = mergeFieldMetadataIntoProps(
310
+ "phoneNumber",
311
+ resolveFieldMetadata(
312
+ /*
313
+ Use global data here to allow for config to be dynamic when the below useForm data changes
314
+ otherwise we will use `country` which is unrelated to the phoneCountryCode
315
+ */
316
+ fieldConfig[data?.phoneNumber?.phoneCountryCode ?? country],
317
+ {},
318
+ defaultFieldMetadata
319
+ ),
320
+ mergedProps
321
+ );
322
+ const formUtils = createFormUtils(mergedProps, t);
323
+ return /* @__PURE__ */ jsxs("div", { role: "form", className: "adyen-kyc-individual__contact-details", children: [
324
+ mergedProps.heading && /* @__PURE__ */ jsx(Header, { title: mergedProps.heading }),
325
+ formUtils.isRequiredField("email") && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-email", children: /* @__PURE__ */ jsx(
326
+ Field,
327
+ {
328
+ name: "email",
329
+ label: formUtils.getLabel("email"),
330
+ errorMessage: formUtils.getErrorMessage("email", errors, fieldValidationErrors),
331
+ isValid: valid.email,
332
+ children: (childProps) => /* @__PURE__ */ jsx(
333
+ InputEmail,
334
+ {
335
+ ...childProps,
336
+ name: "email",
337
+ value: data?.email,
338
+ readonly: formUtils.isReadOnly("email"),
339
+ onInput: handleFieldChange("email", "input"),
340
+ onBlur: handleFieldChange("email", "blur"),
341
+ "aria-required": true,
342
+ "aria-invalid": !valid?.email
343
+ }
344
+ )
345
+ }
346
+ ) }),
347
+ formUtils.isRequiredField("phoneNumber") && /* @__PURE__ */ jsx(
348
+ PhoneField,
349
+ {
350
+ ...{
351
+ country,
352
+ data: formUtils.getFieldData(data ?? {}, PHONE_FIELD),
353
+ valid: formUtils.getFieldValid(valid, PHONE_FIELD),
354
+ errors: formUtils.getFieldErrors(errors, {}, PHONE_FIELD),
355
+ labels: formUtils.getFieldLabels(PHONE_FIELD, {
356
+ phoneNumber: "phoneNumber"
357
+ }),
358
+ placeholders: formUtils.getFieldPlaceholders(PHONE_FIELD),
359
+ optional: formUtils.isOptionalField("phoneNumber"),
360
+ readonly: formUtils.isReadOnly("phoneNumber"),
361
+ mask: formUtils.getMask("phoneNumber"),
362
+ handleChangeFor: handleFieldChange
363
+ }
364
+ }
365
+ )
366
+ ] });
367
+ }
368
+ const contactDetailsValidationRules = {
369
+ email: [
370
+ {
371
+ modes: ["blur"],
372
+ validate: (email) => email ? emailPattern.test(email) : false,
373
+ errorMessage: "invalidEmail"
374
+ }
375
+ ]
376
+ };
377
+ export {
378
+ ContactDetails as C,
379
+ contactDetailsValidationRules as a,
380
+ contactDetailFields as c,
381
+ defaultFieldMetadata as d,
382
+ fieldConfig as f,
383
+ getAsyncPhoneValidationRules as g,
384
+ useValidatePhoneNumberImperatively as u
385
+ };
@@ -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] = "09006924-afbd-452c-a946-41d5f7483ca9", e._sentryDebugIdIdentifier = "sentry-dbid-09006924-afbd-452c-a946-41d5f7483ca9");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4aa64193-2547-42a2-8307-02f3c306a9d3", e._sentryDebugIdIdentifier = "sentry-dbid-4aa64193-2547-42a2-8307-02f3c306a9d3");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { O as TaskTypes, bm as remediationPayoutApiKeyMapping, bn as remediationBusinessDetailsApiKeyMapping, bo as remediationIndividualApiKeyMapping } from "./StoreProvider-CyzNf7KK.js";
10
+ import { U as TaskTypes, bc as remediationPayoutApiKeyMapping, bd as remediationBusinessDetailsApiKeyMapping, be as remediationIndividualApiKeyMapping } from "./StoreProvider-D9IR5HNN.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 = {
@@ -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] = "c2d6c018-52c5-4361-b792-27bff1b81d60", e._sentryDebugIdIdentifier = "sentry-dbid-c2d6c018-52c5-4361-b792-27bff1b81d60");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8e8d98bb-f043-4b04-9fde-8c65c52775fc", e._sentryDebugIdIdentifier = "sentry-dbid-8e8d98bb-f043-4b04-9fde-8c65c52775fc");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { jsxs, jsx } from "preact/compat/jsx-runtime";
10
+ import { jsxs, jsx } from "preact/jsx-runtime";
11
11
  const SvgWarningCircleFill = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", role: "img", ...props, children: [
12
12
  /* @__PURE__ */ jsx("g", { clipPath: "url(#uia-ui-assets/icons-16-warning_circle_fill__a)", children: /* @__PURE__ */ jsx("path", { fill: "#001222", d: "M8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8C0.25 3.71979 3.71979 0.25 8 0.25ZM8 9.75C7.44772 9.75 7 10.1977 7 10.75C7 11.3023 7.44772 11.75 8 11.75C8.55228 11.75 9 11.3023 9 10.75C9 10.1977 8.55228 9.75 8 9.75ZM7.25 4.25V8.75H8.75V4.25H7.25Z" }) }),
13
13
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "uia-ui-assets/icons-16-warning_circle_fill__a", children: /* @__PURE__ */ jsx("rect", { width: 16, height: 16, fill: "#fff" }) }) })
@@ -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] = "05d8e92b-f8f0-477e-87ef-bf0c8dfcb258", e._sentryDebugIdIdentifier = "sentry-dbid-05d8e92b-f8f0-477e-87ef-bf0c8dfcb258");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e5da5fec-4a2b-4f41-9ab2-c028409f8639", e._sentryDebugIdIdentifier = "sentry-dbid-e5da5fec-4a2b-4f41-9ab2-c028409f8639");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { jsxs, jsx } from "preact/compat/jsx-runtime";
10
+ import { jsxs, jsx } from "preact/jsx-runtime";
11
11
  const SvgWarningDiamondFilled = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", role: "img", ...props, children: [
12
12
  /* @__PURE__ */ jsx("g", { clipPath: "url(#uia-ui-assets/icons-16-warning_diamond_filled__a)", children: /* @__PURE__ */ jsx("path", { fill: "#001222", d: "M6.05517 0.883253C7.12912 -0.190581 8.87091 -0.190653 9.94482 0.883253L15.1138 6.0522C16.1871 7.12608 16.1872 8.86708 15.1138 9.94087L9.94482 15.1098C8.87089 16.1836 7.12909 16.1836 6.05517 15.1098L0.887199 9.94087C-0.186713 8.86696 -0.186653 7.12615 0.887199 6.0522L6.05517 0.883253ZM8.00048 10.0004C7.44819 10.0004 7.00048 10.4482 7.00048 11.0004C7.00072 11.5525 7.44834 12.0004 8.00048 12.0004C8.55242 12.0002 9.00024 11.5524 9.00048 11.0004C9.00048 10.4483 8.55257 10.0007 8.00048 10.0004ZM7.25048 4.25044V8.42036H8.75048V4.25044H7.25048Z" }) }),
13
13
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "uia-ui-assets/icons-16-warning_diamond_filled__a", children: /* @__PURE__ */ jsx("rect", { width: 16, height: 16, fill: "#fff" }) }) })
@@ -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] = "8984aaa6-5af8-4087-8035-d070be124f3a", e._sentryDebugIdIdentifier = "sentry-dbid-8984aaa6-5af8-4087-8035-d070be124f3a");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "66cd0b0a-4888-4216-b41b-69b88230ddbe", e._sentryDebugIdIdentifier = "sentry-dbid-66cd0b0a-4888-4216-b41b-69b88230ddbe");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { jsxs, jsx } from "preact/compat/jsx-runtime";
10
+ import { jsxs, jsx } from "preact/jsx-runtime";
11
11
  const SvgWebinar = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", role: "img", ...props, children: [
12
12
  /* @__PURE__ */ jsxs("g", { fill: "#001222", clipPath: "url(#uia-ui-assets/icons-16-webinar__a)", children: [
13
13
  /* @__PURE__ */ jsx("path", { d: "M11.75 15.75H4.25V14.25H11.75V15.75Z" }),
@@ -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] = "6dffc23f-cd9a-433d-bf49-379e28428100", e._sentryDebugIdIdentifier = "sentry-dbid-6dffc23f-cd9a-433d-bf49-379e28428100");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1030751c-d4e7-47bb-a5b1-a82c97c19f0e", e._sentryDebugIdIdentifier = "sentry-dbid-1030751c-d4e7-47bb-a5b1-a82c97c19f0e");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { jsxs, jsx } from "preact/compat/jsx-runtime";
10
+ import { jsxs, jsx } from "preact/jsx-runtime";
11
11
  const SvgYapilyLogo = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 246 17", role: "img", ...props, children: [
12
12
  /* @__PURE__ */ jsx("path", { fill: "#161616", d: "M7.64 7.62 3.18 0H0l6.1 11.02v5.2h3.13V10.9L15.18 0h-3.15l-4.4 7.62ZM26.25 0l-7.17 16.21h3.25l1.45-3.43h7.99l1.44 3.43h3.37L29.5 0zM24.9 10.12l2.9-6.8 2.84 6.8zm29.95-8.66Q53.16 0 50.08 0h-6.7v16.21h3.12v-4.77h3.58q3.08 0 4.77-1.54a5.6 5.6 0 0 0 1.7-4.32q0-2.66-1.7-4.12m-2.21 6.48q-.95.77-2.73.77h-3.4v-6h3.4q1.79 0 2.73.74.94.75.94 2.22 0 1.5-.94 2.27M66.55 0h-3.13v16.21h3.13zm11.91 0h-3.13v16.21h10.18v-2.8h-7.05zm22.78 0-4.39 7.62L92.39 0H89.2l6.1 11.02v5.2h3.13V10.9L104.39 0z" }),
13
13
  /* @__PURE__ */ jsx("path", { fill: "#4D5866", d: "M119.63 16.48a8.6 8.6 0 0 1-4.23-1.05 8 8 0 0 1-2.96-2.95 8.5 8.5 0 0 1-1.06-4.24q0-2.36 1.09-4.23a7.7 7.7 0 0 1 2.95-2.93A8.4 8.4 0 0 1 119.66 0q1.9 0 3.46.69a7 7 0 0 1 2.65 1.99l-1.86 1.8a5.3 5.3 0 0 0-4.12-1.87q-1.58 0-2.85.73a5 5 0 0 0-1.96 2 6 6 0 0 0-.7 2.9q0 1.63.7 2.9a5.2 5.2 0 0 0 4.8 2.73q2.46 0 4.13-1.9l1.86 1.83a7 7 0 0 1-2.67 2 9 9 0 0 1-3.47.68m19.41 0a8.6 8.6 0 0 1-4.25-1.05 8 8 0 0 1-2.98-2.95 8.4 8.4 0 0 1-1.08-4.24q0-2.34 1.08-4.21a7.6 7.6 0 0 1 2.98-2.95A8.5 8.5 0 0 1 139.04 0q2.37 0 4.26 1.08A7.7 7.7 0 0 1 146.28 4a8.3 8.3 0 0 1 1.08 4.23q0 2.36-1.08 4.24a8 8 0 0 1-2.98 2.95 8.6 8.6 0 0 1-4.26 1.05Zm0-2.6a5.2 5.2 0 0 0 4.72-2.72q.71-1.32.71-2.92t-.7-2.88a5 5 0 0 0-1.95-2.02 5.4 5.4 0 0 0-2.78-.73 5.3 5.3 0 0 0-4.72 2.75q-.7 1.27-.7 2.88a6 6 0 0 0 .7 2.9 5.2 5.2 0 0 0 4.72 2.73ZM167.76.23v16.02h-2.36L156.88 5.4v10.85h-2.84V.23h2.36l8.51 10.85V.23zm21.5 0v16.02h-2.36L178.38 5.4v10.85h-2.84V.23h2.36l8.51 10.85V.23zm19.36 13.53v2.5h-11.59V.22h11.28v2.5h-8.4v4.16h7.45v2.45h-7.46v4.42h8.72Zm13.91 2.72a8.6 8.6 0 0 1-4.23-1.05 8 8 0 0 1-2.96-2.95 8.5 8.5 0 0 1-1.06-4.24q0-2.36 1.09-4.23a7.7 7.7 0 0 1 2.95-2.93A8.4 8.4 0 0 1 222.56 0q1.9 0 3.46.69a7 7 0 0 1 2.65 1.99l-1.86 1.8a5.3 5.3 0 0 0-4.12-1.87q-1.58 0-2.85.73a5 5 0 0 0-1.96 2 6 6 0 0 0-.7 2.9q0 1.63.7 2.9a5.2 5.2 0 0 0 4.8 2.73q2.46 0 4.13-1.9l1.86 1.83a7 7 0 0 1-2.67 2 9 9 0 0 1-3.47.68m15.48-13.73h-5.11V.23H246v2.52h-5.12v13.5h-2.87z" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.91.0",
3
+ "version": "3.92.0",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",
@@ -92,7 +92,7 @@
92
92
  "@eslint/compat": "^1.3.2",
93
93
  "@eslint/js": "^9.39.1",
94
94
  "@playwright/test": "^1.56.0",
95
- "@preact/preset-vite": "^2.10.2",
95
+ "@preact/preset-vite": "^2.10.3",
96
96
  "@sentry/bundler-plugin-core": "3.5.0",
97
97
  "@sentry/cli": "2.42.2",
98
98
  "@storybook/addon-a11y": "10.1.10",
@@ -182,7 +182,7 @@
182
182
  "build:demo": "rm -rf .demo && vite build --mode demo",
183
183
  "build:cdn": "rm -rf dist-cdn && vite build --mode production-cdn && ./scripts/move-sourcemaps.sh && node ./scripts/ensureUniqueOutputNames.js",
184
184
  "build:watch": "vite build --mode production --watch",
185
- "check:all": "concurrently \"pnpm types:check\" \"pnpm lint:quiet\" \"pnpm lint:scss\" \"pnpm prettier\" -n tsc,eslint,stylelint,prettier -c cyan,magenta,yellow,blue",
185
+ "check:all": "concurrently \"pnpm types:check\" \"pnpm lint:quiet\" \"pnpm lint:styles\" \"pnpm prettier\" -n tsc,eslint,stylelint,prettier -c cyan,magenta,yellow,blue",
186
186
  "check:commits": "commitlint --from",
187
187
  "clean": "rm -rf dist*",
188
188
  "commit": "commit",
@@ -193,13 +193,13 @@
193
193
  "fix:all": "pnpm lint:fix && pnpm prettier:fix",
194
194
  "fix:lint": "pnpm lint:fix",
195
195
  "fix:prettier": "pnpm prettier:fix",
196
- "lint:all": "concurrently \"pnpm lint\" \"pnpm lint:scss\" -p none",
196
+ "lint:all": "concurrently \"pnpm lint\" \"pnpm lint:styles\" -p none",
197
197
  "lint": "eslint",
198
198
  "lint:fix": "pnpm lint --fix",
199
199
  "lint:quiet": "pnpm lint --quiet",
200
200
  "lint:quiet:fix": "pnpm lint:fix --quiet",
201
- "lint:scss": "stylelint 'src/**/*.scss' '!node_modules/**/*.scss'",
202
- "lint:scss:fix": "pnpm lint:scss --fix",
201
+ "lint:styles": "stylelint 'src/**/*.{scss,css}' '!node_modules/**/*.{scss,css}'",
202
+ "lint:styles:fix": "pnpm lint:styles --fix",
203
203
  "prettier": "prettier --config ./.prettierrc.json --ignore-unknown --check \"**/*\"",
204
204
  "prettier:fix": "prettier --config ./.prettierrc.json --ignore-unknown --write \"**/*\"",
205
205
  "repo:setup": "bash ./scripts/first-time-setup.sh",
@@ -1,143 +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] = "8b875065-6440-4746-a5aa-e22933fa0ac5", e._sentryDebugIdIdentifier = "sentry-dbid-8b875065-6440-4746-a5aa-e22933fa0ac5");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
11
- import { memo } from "preact/compat";
12
- import { ak as objectsDeepEqual, u as useTranslation, r as LegalEntityTypes } from "./StoreProvider-CyzNf7KK.js";
13
- import { _ as MemoizedDocumentUpload } from "./IndividualOnfido-pGSPtITh.js";
14
- const ConstitutionalDocumentTypes = {
15
- BUSINESS_NAME_FILING: "doingBusinessAsNameFiling",
16
- TAX_FILING: "taxFiling",
17
- EMPLOYER_IDENTIFICATION_NUMBER_VERIFICATION_LETTER: "einVerificationLetter",
18
- BUSINESS_REGISTRATION_DOCUMENT: "businessRegistrationDocument",
19
- TRUST_DEED: "trustDeed",
20
- TRUST_INSTRUMENT: "trustInstrument",
21
- PARTNERSHIP_AGREEMENT: "partnershipAgreement",
22
- MEETING_MINUTES: "meetingMinutes"
23
- };
24
- const getConstitutionDocumentTypeOptionsMapping = (legalEntityType, country) => {
25
- switch (legalEntityType) {
26
- case LegalEntityTypes.SOLE_PROPRIETORSHIP:
27
- switch (country) {
28
- case "FR":
29
- return [
30
- {
31
- id: ConstitutionalDocumentTypes.BUSINESS_NAME_FILING,
32
- name: "doingBusinessAsNameFiling__FR"
33
- },
34
- { id: ConstitutionalDocumentTypes.TAX_FILING, name: "taxFiling" },
35
- {
36
- id: ConstitutionalDocumentTypes.BUSINESS_REGISTRATION_DOCUMENT,
37
- name: "businessRegistrationDocument__FR"
38
- }
39
- ];
40
- case "US":
41
- return [
42
- {
43
- id: ConstitutionalDocumentTypes.BUSINESS_NAME_FILING,
44
- name: "doingBusinessAsNameFiling__US"
45
- },
46
- { id: ConstitutionalDocumentTypes.TAX_FILING, name: "taxFiling__US" },
47
- {
48
- id: ConstitutionalDocumentTypes.EMPLOYER_IDENTIFICATION_NUMBER_VERIFICATION_LETTER,
49
- name: "einVerificationLetter"
50
- }
51
- ];
52
- default:
53
- return [
54
- {
55
- id: ConstitutionalDocumentTypes.BUSINESS_NAME_FILING,
56
- name: "doingBusinessAsNameFiling"
57
- },
58
- { id: ConstitutionalDocumentTypes.TAX_FILING, name: "taxFiling" }
59
- ];
60
- }
61
- case LegalEntityTypes.UNINCORPORATED_PARTNERSHIP:
62
- return [
63
- {
64
- id: ConstitutionalDocumentTypes.PARTNERSHIP_AGREEMENT,
65
- name: "partnershipAgreement"
66
- },
67
- {
68
- id: ConstitutionalDocumentTypes.MEETING_MINUTES,
69
- name: "meetingMinutes"
70
- }
71
- ];
72
- default:
73
- return [
74
- { id: ConstitutionalDocumentTypes.TRUST_DEED, name: "trustDeed" },
75
- { id: ConstitutionalDocumentTypes.TRUST_INSTRUMENT, name: "trustInstrument" }
76
- ];
77
- }
78
- };
79
- function getLegalEntityTypeBasedConstitutionalDocumentHeaderDescriptionTranslationkey(legalEntityType) {
80
- switch (legalEntityType) {
81
- case LegalEntityTypes.SOLE_PROPRIETORSHIP:
82
- return "constitutionalDocumentSoleProprietorshipHeaderDescription";
83
- case LegalEntityTypes.TRUST:
84
- return "constitutionalDocumentTrustHeaderDescription";
85
- case LegalEntityTypes.UNINCORPORATED_PARTNERSHIP:
86
- return "constitutionalDocumentUnincorporatedPartnershipDescription";
87
- default:
88
- return "constitutionalDocumentHeaderDescription";
89
- }
90
- }
91
- const unincorporatedPartnershipRequirementsVariants = ["Name", "Details", "UpToDate"];
92
- function ConstitutionalDocumentUpload({
93
- id,
94
- legalEntityType,
95
- ...props
96
- }) {
97
- const { t } = useTranslation(["common"]);
98
- const isUnincorporatedPartnership = legalEntityType === LegalEntityTypes.UNINCORPORATED_PARTNERSHIP;
99
- const constitutionalDocumentRequirements = getConstitutionDocumentTypeOptionsMapping(
100
- legalEntityType,
101
- props.country
102
- );
103
- const guidanceContent = /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-upload-field__guidance adyen-kyc-u-margin-bottom-24", children: [
104
- /* @__PURE__ */ jsx("strong", { children: t(($) => $["uploadOneOfTheseDocuments"]) }),
105
- /* @__PURE__ */ jsx("ul", { children: constitutionalDocumentRequirements?.map(({ name }, i) => /* @__PURE__ */ jsx("li", { children: t(($) => $[name]) }, i)) }),
106
- isUnincorporatedPartnership && /* @__PURE__ */ jsxs(Fragment, { children: [
107
- /* @__PURE__ */ jsx("strong", { children: t(($) => $["documentRequirements"]) }),
108
- /* @__PURE__ */ jsx("ul", { children: unincorporatedPartnershipRequirementsVariants.map((item, i) => /* @__PURE__ */ jsx("li", { children: t(
109
- ($) => $[`documentRequirementsUnincorporatedPartnership${item}`],
110
- { ns: "common" }
111
- ) }, i)) })
112
- ] }),
113
- props.country !== "US" && !isUnincorporatedPartnership && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-margin-y-16", children: /* @__PURE__ */ jsxs("span", { children: [
114
- t(($) => $["infoInUploadedDocumentIsTrue"]),
115
- " "
116
- ] }) })
117
- ] });
118
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
119
- MemoizedDocumentUpload,
120
- {
121
- ...props,
122
- documentType: "constitutionalDocument",
123
- documentField: "constitutionalDocument",
124
- heading: t(($) => $["constitutionalDocumentHeader"]),
125
- description: t(
126
- ($) => $[getLegalEntityTypeBasedConstitutionalDocumentHeaderDescriptionTranslationkey(
127
- legalEntityType
128
- )],
129
- { ns: "common" }
130
- ),
131
- guidanceContent,
132
- id,
133
- hidePageCount: true
134
- }
135
- ) });
136
- }
137
- const MemoizedConstitutionalDocument = memo(
138
- ConstitutionalDocumentUpload,
139
- (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.shouldValidate === nextProps.shouldValidate
140
- );
141
- export {
142
- MemoizedConstitutionalDocument as M
143
- };