@adyen/kyc-components 4.25.0 → 4.26.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/dist/{4-people-DKuivE0m.js → 4-people-CAxQpi_3.js} +2 -2
  2. package/dist/{AcceptTermsOfServiceWorkflow-BKWCrZdZ.js → AcceptTermsOfServiceWorkflow-eOcHITwQ.js} +4 -4
  3. package/dist/{Accordion-D_DOaWj2.js → Accordion-BAdwrgCR.js} +4 -24
  4. package/dist/{AccountSetupRejected-BtcxtVKO.js → AccountSetupRejected-Jii0yaLC.js} +3 -4
  5. package/dist/{NodeRenderer-Z10yF5MV.js → AdaptiveWorkflow-B6SIOcbU.js} +87 -34
  6. package/dist/{AdaptiveWorkflowComponent-C4Q6NVtv.js → AdaptiveWorkflowComponent-we5_UgiI.js} +32 -33
  7. package/dist/{AddressFields-CFG2_P0x.js → AddressFields-Qq_8lUYz.js} +21 -27
  8. package/dist/{Avatar-k5lNd5KG.js → Avatar-C2zeqSSB.js} +10 -8
  9. package/dist/{BusinessFinancingDropin-BjTnxk__.js → BusinessFinancingDropin-gMa--znJ.js} +61 -71
  10. package/dist/{BusinessFinancingPage-C4dAslMp.js → BusinessFinancingPage-BIdRvI7h.js} +7 -7
  11. package/dist/{BusinessRegistrationNumberField-Dz1uGvRQ.js → BusinessRegistrationNumberField-Vr3KBWJD.js} +7 -8
  12. package/dist/{BusinessRegistrationNumberFieldGroup-BFPrFa1_.js → BusinessRegistrationNumberFieldGroup-DLGAFcRN.js} +7 -8
  13. package/dist/{BusinessTypeSelectionPage-DeWD37jR.js → BusinessTypeSelectionPage-9B2SxGcV.js} +16 -17
  14. package/dist/{Button-BxdC8cVB.js → Button-Dwr6jvJZ.js} +2 -2
  15. package/dist/Checkbox-zAGhz7rC.js +114 -0
  16. package/dist/{ComponentGroup-S6c3rVoX.js → ComponentGroup-DH_CH6bM.js} +4 -4
  17. package/dist/{ConstitutionalDocument-CNNhKkzD.js → ConstitutionalDocument-DMNlJJzp.js} +25 -28
  18. package/dist/{ContactDetails-_HCOKj3-.js → ContactDetails-kwe-LwUD.js} +8 -13
  19. package/dist/{ContextGuidance-v-d9RQuo.js → ContextGuidance-1tQjHxTm.js} +3 -3
  20. package/dist/CountryField-BkNURmjP.js +56 -0
  21. package/dist/{Currency-3Z9i_AhY.js → Currency-BjBbhCzV.js} +10 -12
  22. package/dist/{CustomerSupport-B0UJHtAq.js → CustomerSupport-CT4s3fyC.js} +17 -17
  23. package/dist/DateField-CJeu0KoS.js +73 -0
  24. package/dist/{DebugModal-DgbagO5Z.js → DebugModal-YjFFNeOM.js} +12 -17
  25. package/dist/{DecisionMakerDetails-RF9BoMYF.js → DecisionMakerDetails-B4aCl2kl.js} +21 -24
  26. package/dist/{DecisionMakerDetailsPage-CGOs2Ubt.js → DecisionMakerDetailsPage-Dg_RbdxY.js} +43 -40
  27. package/dist/{DecisionMakers-qRoXooYA.js → DecisionMakers-Cq3yVb54.js} +55 -61
  28. package/dist/{DetailViewLayout-DNCGEd7b.js → DetailViewLayout-DJgAzdlZ.js} +8 -6
  29. package/dist/{Dropzone-cewfCgXt.js → Dropzone-Cgqct7ux.js} +8 -8
  30. package/dist/EmailField-CVwmsS5d.js +61 -0
  31. package/dist/{EmbeddedStatus-Keg7UojY.js → EmbeddedStatus-4YjyzkcD.js} +4 -4
  32. package/dist/{EndStateLayout-GHEYl82p.js → EndStateLayout-C5Pqler-.js} +3 -3
  33. package/dist/{EntityAssociation-BPtrqdQR.js → EntityAssociation-DzNk5XbC.js} +7 -7
  34. package/dist/{ErrorPanel-PefRq1M4.js → ErrorPanel-DtbpEeJk.js} +24 -19
  35. package/dist/{GlobalEntryModal-CTGSdkW7.js → GlobalEntryModal-D9rqts-z.js} +203 -78
  36. package/dist/{GlobalEntryPage-CdGXV-QZ.js → GlobalEntryPage-OTglAvMX.js} +10 -10
  37. package/dist/Icon-_YUEZg1p.js +175 -0
  38. package/dist/{IdentityNumber-Cz6-4YcM.js → IdentityNumber-9SwAYweE.js} +10 -12
  39. package/dist/{IdentityNumberFieldGroup-D2PV_4A5.js → IdentityNumberFieldGroup-B9SxTHei.js} +16 -14
  40. package/dist/{IdentityScreeningWorkflow-mbcaIctn.js → IdentityScreeningWorkflow-C-nLWlJS.js} +16 -16
  41. package/dist/{Image-Bn_Yyuof.js → Image-CxnjHtP1.js} +1 -1
  42. package/dist/{IndividualDropin-D1UOavsw.js → IndividualDropin-BpFRq3S4.js} +266 -281
  43. package/dist/{IndustryCodeFieldGroup-DmOqxPIg.js → IndustryCodeFieldGroup-CEWUFYmK.js} +9 -10
  44. package/dist/{InputDate-B0RNGCq2.js → InputDate-DjUm9FiK.js} +6 -29
  45. package/dist/InputDate.utils-D4Ov0KIl.js +25 -0
  46. package/dist/{InputGroup-B4U3QVEp.js → InputGroup-Bv005B22.js} +7 -6
  47. package/dist/{InputText-CwPK55J0.js → InputText-DtoBABE5.js} +42 -4
  48. package/dist/{Introduction-DFW6EaLG.js → Introduction-GW5FJSTJ.js} +9 -9
  49. package/dist/{InvitedDecisionMakerComponent-hdQc0T7D.js → InvitedDecisionMakerComponent-tahktJVa.js} +45 -45
  50. package/dist/{JpAddressFields-CzGnXBMk.js → JpAddressFields-CpRh_gFz.js} +13 -13
  51. package/dist/{LegalCompanyNameField-CV2EgRCw.js → LegalCompanyNameField-Coff77lN.js} +5 -5
  52. package/dist/{LegalRepresentativeDetailsPage-BiAfoErR.js → LegalRepresentativeDetailsPage-CXMGtJvO.js} +35 -34
  53. package/dist/{Link-C3dYYTm_.js → Link-D0Yqc2r0.js} +7 -6
  54. package/dist/{List-ywoRPg-q.js → List-qvNxW9lm.js} +3 -2
  55. package/dist/{ListItem-CHGVbHhB.js → ListItem-DY-qq1lS.js} +29 -4
  56. package/dist/{Loader-BVtlpTeo.js → Loader-BDaKGf77.js} +1 -1
  57. package/dist/{Modal-Dq44ZUNN.js → Modal-Dx_NESnV.js} +25 -5
  58. package/dist/{Name-BfQr3et_.js → Name-CrLaukRh.js} +5 -5
  59. package/dist/NumberField-CS93IGoS.js +60 -0
  60. package/dist/{PatriotActDisclosure-BNAsJXEL.js → PatriotActDisclosure-C3jKKi6y.js} +11 -12
  61. package/dist/{PayoutDetailsDropin-NyizAaYy.js → PayoutDetailsDropin-BxOJ9P17.js} +163 -158
  62. package/dist/{PayoutDetailsPage-NM0Eqf4K.js → PayoutDetailsPage-BxaCk685.js} +10 -9
  63. package/dist/{Review-CzgmjDcZ.js → Review-C81Qsrkg.js} +25 -24
  64. package/dist/{RootBusinessDetailsPage-B1a0hu8F.js → RootBusinessDetailsPage-CwRyRbEv.js} +9 -7
  65. package/dist/{RootBusinessLinesPage-Dv1uT7OS.js → RootBusinessLinesPage-C3GZQ-KO.js} +48 -53
  66. package/dist/{RootIndividualDetailsPage-vkjzmyF7.js → RootIndividualDetailsPage-CvVVlkJI.js} +42 -39
  67. package/dist/{Select-prMx73V9.js → Select-AiAom5JL.js} +330 -19
  68. package/dist/{SignPCIComponent-CIkdVNH2.js → SignPCIComponent-Dmr9dDYB.js} +19 -23
  69. package/dist/{SingpassSelection-B6NONcr4.js → SingpassSelection-BXHvwmgp.js} +7 -7
  70. package/dist/Skeleton-7xDqhYr-.js +30 -0
  71. package/dist/{SoleProprietorshipPage-BmNs557C.js → SoleProprietorshipPage-DKL4anrn.js} +7 -7
  72. package/dist/{SourceOfFundsPage-B5nZ3MjN.js → SourceOfFundsPage-2dxP6dlL.js} +46 -58
  73. package/dist/{SourceOfFundsWorkflow-IkLZG9JI.js → SourceOfFundsWorkflow-Didn1fld.js} +4 -4
  74. package/dist/{StackLayout-IUdNMDgW.js → StackLayout-J1ynSX-P.js} +6 -5
  75. package/dist/{utils-lIizXlcC.js → StateField-BoIVEnaZ.js} +89 -3
  76. package/dist/{Step-BJh4XZae.js → Step-CiwqdcuY.js} +19 -13
  77. package/dist/SummarySection-B6A_AT1m.js +60 -0
  78. package/dist/{Task-yQcY16x1.js → Task-CJDcviJ6.js} +8 -8
  79. package/dist/{TaskGroup-C9iFHpux.js → TaskGroup-BXkrbyTG.js} +5 -5
  80. package/dist/{TaskListItem-ChlmCIfF.js → TaskListItem-CQXvVRWG.js} +11 -11
  81. package/dist/{TaskStepperContextProvider-I7talGDO.js → TaskStepperContextProvider-9wlnwii7.js} +1 -1
  82. package/dist/{TaskVerificationStatus-Bd5Eftf2.js → TaskVerificationStatus-zoxTZ2mt.js} +3 -3
  83. package/dist/{TaxInformationFieldGroup-Dq0J9rBU.js → TaxInformationFieldGroup-CnaGMge9.js} +19 -18
  84. package/dist/{TaxReportingDropin-Cq3gBWtp.js → TaxReportingDropin-F4e4CxiC.js} +22 -26
  85. package/dist/{TaxReportingWorkflow-flQPRAPy.js → TaxReportingWorkflow-Caa_klQR.js} +4 -4
  86. package/dist/{TermsOfServiceManagement-BM5K4cpw.js → TermsOfServiceManagement-5x2f0QgC.js} +21 -30
  87. package/dist/{TextArea-C12oXMzX.js → TextArea-eJQFkYyd.js} +5 -5
  88. package/dist/TextField-Ca7rT4tr.js +73 -0
  89. package/dist/{TrustDetailsPage-z7s9FxVC.js → TrustDetailsPage-D3RkKlpJ.js} +59 -67
  90. package/dist/{TrustMemberCompanyPage-tU2HTiDG.js → TrustMemberCompanyPage-BvBxQg7D.js} +8 -8
  91. package/dist/{TrustMemberIndividualPage-BLBtnoSq.js → TrustMemberIndividualPage-D4idWK8j.js} +35 -34
  92. package/dist/{TrustMemberRoleAndTypePage-DIwrtOWr.js → TrustMemberRoleAndTypePage-CyKm_knd.js} +23 -30
  93. package/dist/{TrustMembersOverview-CowTgfIb.js → TrustMembersOverview-BnP0wZSf.js} +18 -22
  94. package/dist/{UboTaskItem-CZLDzQil.js → UboTaskItem-Degn5OyC.js} +8 -8
  95. package/dist/{UnincorporatedPartnershipIndividualPage-BT0j54-O.js → UnincorporatedPartnershipIndividualPage-Bgb4oCRJ.js} +35 -34
  96. package/dist/{UnincorporatedPartnershipMemberCompanyPage-DFOoV0wQ.js → UnincorporatedPartnershipMemberCompanyPage-T6SOH3Mv.js} +8 -8
  97. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-D973uyHj.js → UnincorporatedPartnershipMemberRoleAndTypePage-BVfav_Z_.js} +14 -16
  98. package/dist/{UnincorporatedPartnershipMembersOverview-5w1BrDMI.js → UnincorporatedPartnershipMembersOverview-DPW48_Lv.js} +11 -14
  99. package/dist/VerificationErrorAlert-q1SEqBXx.js +68 -0
  100. package/dist/WebsiteField-CnOU49Hn.js +62 -0
  101. package/dist/{Workflow-CF-HUIjR.js → Workflow-D298oRt0.js} +9 -9
  102. package/dist/{accountHolderUtils-CAu4V0ed.js → accountHolderUtils-CLuKAgaj.js} +3 -3
  103. package/dist/adyen-business-financing.js +8 -9
  104. package/dist/adyen-individual-configuration.js +36 -36
  105. package/dist/adyen-individual-status.js +8 -9
  106. package/dist/adyen-invited-decision-maker.js +3 -3
  107. package/dist/adyen-onboarding.js +61 -59
  108. package/dist/adyen-terms-of-service-management.js +3 -3
  109. package/dist/adyen-terms-of-service-status.js +6 -7
  110. package/dist/adyen-transfer-instrument-configuration.js +7 -8
  111. package/dist/adyen-transfer-instrument-management.js +16 -22
  112. package/dist/adyen-verification-status.js +7 -9
  113. package/dist/{arrow-right-D2hul7WG.js → arrow-right-BwP9nNDE.js} +2 -2
  114. package/dist/bafinUtils-CsDthERR.js +3548 -0
  115. package/dist/{bag-CRRS1aow.js → bag-Cnk9dcZg.js} +2 -2
  116. package/dist/{bank-BoirCLLW.js → bank-UssyP-aG.js} +2 -2
  117. package/dist/bg-BG-C7z9VtPy.js +7 -0
  118. package/dist/{bin-BOmfqfrr.js → bin--Ft4cPCj.js} +2 -2
  119. package/dist/{capital-DTjbiurV.js → capital-BbOFhTHY.js} +2 -2
  120. package/dist/{cash-stack-7KpYpBek.js → cash-stack-LTzc8hQZ.js} +2 -2
  121. package/dist/{certificate-BPuoJ6Ip.js → certificate-CswNcwlI.js} +2 -2
  122. package/dist/{checkmark-BiSLf8M1.js → checkmark-DH1abKZn.js} +2 -2
  123. package/dist/{checkmark-circle-Ams7bSve.js → checkmark-circle-VWM-JsI6.js} +2 -2
  124. package/dist/{checkmark-circle-fill-_p4ss4ac.js → checkmark-circle-fill-AuW2DQDT.js} +2 -2
  125. package/dist/{checkmark-small-3bw4ftPV.js → checkmark-small-B6vsnsSO.js} +2 -2
  126. package/dist/{chevron-down-GgZawvoy.js → chevron-down-BGAMP7CF.js} +2 -2
  127. package/dist/{chevron-left-TeZTTvo5.js → chevron-left-EjFIt8Cd.js} +2 -2
  128. package/dist/{chevron-right-Cg8XlTxx.js → chevron-right-B5zb9mkt.js} +2 -2
  129. package/dist/{chevron-up-COQUTli0.js → chevron-up-DZiittpJ.js} +2 -2
  130. package/dist/{circle-CypWzg83.js → circle-CygvxRY_.js} +2 -2
  131. package/dist/{circle-small-filled-DfdK2A35.js → circle-small-filled-PeElhgJU.js} +2 -2
  132. package/dist/{clock-DmfGJ2r9.js → clock-CQXEE5jK.js} +2 -2
  133. package/dist/{coins-CBvbB8_X.js → coins-C7syygUR.js} +2 -2
  134. package/dist/{constants-DAb_IqC6.js → constants-Dvga6KjU.js} +7 -8
  135. package/dist/{contract-D1_RJ_xh.js → contract-BWEAd7e-.js} +2 -2
  136. package/dist/{countries-BGMTpyJv.js → countries-ZMuvRtQR.js} +1 -1
  137. package/dist/{country-BEZkohEO.js → country-WYlusjTL.js} +2 -2
  138. package/dist/{cross-circle-fill-CUXdo1x-.js → cross-circle-fill-Bxj_fgQE.js} +2 -2
  139. package/dist/cross-circle-fill-small-DwUKcL9P.js +20 -0
  140. package/dist/{cross-BORHADVQ.js → cross-vK6qh9R0.js} +2 -2
  141. package/dist/cs-CZ-B_u3kWRS.js +7 -0
  142. package/dist/da-DK-s_nCUhFO.js +7 -0
  143. package/dist/de-DE-5lHcZmT6.js +7 -0
  144. package/dist/{decisionMakerRoles-JEb0ON4e.js → decisionMakerRoles-DA8MK9Dh.js} +2 -2
  145. package/dist/{document-1-qvV57JdS.js → document-1-BPWF8zKf.js} +2 -2
  146. package/dist/{document-person-DiJ7M8-D.js → document-person-DVRFNq7g.js} +2 -2
  147. package/dist/{documentUtils-CxjFpoJB.js → documentUtils-6K3LdjjN.js} +6 -4
  148. package/dist/{download-Ca4w0Yfr.js → download-DfdpoHdN.js} +2 -2
  149. package/dist/dropinUtils-CSlRmPSn.js +2572 -0
  150. package/dist/{edit-1-D8VhDchs.js → edit-1-BgVB06zI.js} +2 -2
  151. package/dist/el-GR-DTaQeK-A.js +7 -0
  152. package/dist/{entityAssociationUtil-CY0grcyH.js → entityAssociationUtil-BlfcBl3i.js} +1 -1
  153. package/dist/{error-DrzrPjvf.js → error-DjErFfKK.js} +3 -3
  154. package/dist/es-ES-tZMJvO6B.js +7 -0
  155. package/dist/es-LA-C0x1nQUQ.js +7 -0
  156. package/dist/et-EE-BqB-3lW_.js +7 -0
  157. package/dist/{external-link-Dy4le-8Q.js → external-link-BbXGAtFE.js} +2 -2
  158. package/dist/fi-FI-BpwWFhLW.js +7 -0
  159. package/dist/{form-rules-DhuNdiqF.js → form-rules-HzaYJh36.js} +90 -5
  160. package/dist/{formatValidationError-z2D5oU1e.js → formatValidationError-D3vBdIym.js} +2 -2
  161. package/dist/fr-FR-DMPXwPYV.js +7 -0
  162. package/dist/{getDefaultRegistrationNumberType-BNO2BcfK.js → getDefaultRegistrationNumberType-CiEvyeR9.js} +5 -7
  163. package/dist/{useAssociatedLegalEntity-BdcoiUby.js → getFormSlice-CxtXJ0-P.js} +23 -5
  164. package/dist/{getName-DgxRqagk.js → getName-Cii7OyRd.js} +2 -2
  165. package/dist/{getProblemsForEntity-BY_voJ99.js → getProblemsForEntity-mdb3Bfpj.js} +3 -3
  166. package/dist/{getTrustedDecisionMakers-Ta-pURcL.js → getTrustedDecisionMakers-D89oYOLp.js} +2 -2
  167. package/dist/getValidationError-DvQgc-X3.js +19 -0
  168. package/dist/{gift-Bs_mAgul.js → gift-BjS6ErNG.js} +2 -2
  169. package/dist/{graph-Co0JhGiY.js → graph-B8rX9eXr.js} +2 -2
  170. package/dist/{graph-up-DIvH9haf.js → graph-up-Dwaq7upe.js} +2 -2
  171. package/dist/{headquarter-BESfDGKh.js → headquarter-CXwws_UP.js} +2 -2
  172. package/dist/{hotel-Vne7G5M6.js → hotel-CD5Lv9P7.js} +2 -2
  173. package/dist/hr-HR-D5kV_w60.js +7 -0
  174. package/dist/{http-DsJtugN1.js → http-C8rt2BZk.js} +5 -4
  175. package/dist/hu-HU-Bl1dnZfO.js +7 -0
  176. package/dist/{image-BQM21XCk.js → image-BTE2a8ZV.js} +2 -2
  177. package/dist/{info-DExoPRH5.js → info-BTc0bCCM.js} +2 -2
  178. package/dist/{info-filled-11KMeUso.js → info-filled-DhYinieW.js} +2 -2
  179. package/dist/it-IT-DiuPLWbr.js +7 -0
  180. package/dist/ja-JP-COBWjdXk.js +7 -0
  181. package/dist/{legalArrangementUtils-C68JdH6I.js → legalArrangementUtils-Crgt_L7h.js} +1 -1
  182. package/dist/{location-zRH5zJ8c.js → location-CwE3Q0gg.js} +2 -2
  183. package/dist/lt-LT-D9Pum2_8.js +7 -0
  184. package/dist/lv-LV-DDcLP43G.js +7 -0
  185. package/dist/{mail-i1-zg-cv.js → mail-CIeugZTd.js} +2 -2
  186. package/dist/{mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js → mapAddressLocalizationToJpAddressSchema-BLOAhwWM.js} +2 -2
  187. package/dist/{mapExistingFile-RrS8dCpX.js → mapExistingFile-BXfeQxev.js} +2 -2
  188. package/dist/{mapJpAddressSchemaToAddressLocalizations-wwD6Rp3Q.js → mapJpAddressSchemaToAddressLocalizations-cseKFm-l.js} +16 -15
  189. package/dist/{mapLegalEntityToIndividualSchema-DtT3pcZJ.js → mapLegalEntityToIndividualSchema-DvGFy20Z.js} +12 -13
  190. package/dist/{mapTransferInstrumentToPayoutAccount-BpXU-nP1.js → mapTransferInstrumentToPayoutAccount-Cq7PMPOa.js} +4 -4
  191. package/dist/{minus-circle-filled-CxUdRO8J.js → minus-circle-filled-96DZCdcJ.js} +2 -2
  192. package/dist/nl-NL-CBRRvqAY.js +7 -0
  193. package/dist/no-NO-C9lYR_fQ.js +7 -0
  194. package/dist/{options-horizontal-D86T_xAF.js → options-horizontal-BU9r-Xx3.js} +2 -2
  195. package/dist/{partner-Dje0ykF6.js → partner-C1SWc0pB.js} +2 -2
  196. package/dist/{pay-by-link-plane-DAiddPu6.js → pay-by-link-plane-xK4Zkol0.js} +2 -2
  197. package/dist/{payout-DKiGv3F9.js → payout-zGf0LNbo.js} +2 -2
  198. package/dist/{pdf-CC8vqpTo.js → pdf-Bbs3Ji9v.js} +157 -174
  199. package/dist/{pdf.worker.min-CdKJICZZ.js → pdf.worker.min-DTQpK-0h.js} +67 -58
  200. package/dist/{person-DgALGIIz.js → person-xTKhpEGR.js} +2 -2
  201. package/dist/pl-PL-CZST_1gV.js +7 -0
  202. package/dist/{plus-DlQKP2C9.js → plus-Cm_dWRpB.js} +2 -2
  203. package/dist/{plus-circle-filled-BntUOVIJ.js → plus-circle-filled-Df77eidx.js} +2 -2
  204. package/dist/{processCapabilities-CWE5UFt8.js → processCapabilities-FL4-KAbd.js} +7 -9
  205. package/dist/{processValidationErrors-CFU1x_1n.js → processValidationErrors-Cn-RYAun.js} +4 -4
  206. package/dist/pt-BR-C32QroLH.js +7 -0
  207. package/dist/pt-PT-ByfmK1XA.js +7 -0
  208. package/dist/{recurring-DZgT_ekJ.js → recurring-BfwVHJ2Z.js} +2 -2
  209. package/dist/resolveEnvironment-D8-1H8bU.js +2516 -0
  210. package/dist/{revenue-accelerate-aMLYFVW6.js → revenue-accelerate-ClN0cx7Z.js} +2 -2
  211. package/dist/ro-RO-YkglLwfY.js +7 -0
  212. package/dist/{save-uDNye08N.js → save-QK2A-teG.js} +2 -2
  213. package/dist/{search-0OS6oe8N.js → search-DVSyT7Q7.js} +2 -2
  214. package/dist/{uppercase-DvjwUM0n.js → sharedValidators-DODW7kuK.js} +5 -3
  215. package/dist/{show-BWoS9-Y1.js → show-BRWLIRSA.js} +2 -2
  216. package/dist/sk-SK-BYRIVzdY.js +7 -0
  217. package/dist/sl-SI-Cjub_bfF.js +7 -0
  218. package/dist/{solution-payments-BMal7uJZ.js → solution-payments-BZZceFVV.js} +2 -2
  219. package/dist/{store-N7ZA4FKy.js → store-DLKKLXhn.js} +2 -2
  220. package/dist/style.css +1418 -1157
  221. package/dist/styles-DYaAeu4q.js +1418 -1157
  222. package/dist/sv-SE-1re-9Lp8.js +7 -0
  223. package/dist/{terminal-1-0RlQpbUC.js → terminal-1-CpAyEdjO.js} +2 -2
  224. package/dist/{translation-DbATp_35.js → translation-CpH8D2NK.js} +34 -30
  225. package/dist/types/adaptiveWorkflow/component-registry.d.ts +19 -2
  226. package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +7 -0
  227. package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +2 -2
  228. package/dist/types/adaptiveWorkflow/components/Shared/Fields/CountryField/CountryField.d.ts +4 -0
  229. package/dist/types/adaptiveWorkflow/components/Shared/Fields/CountryField/contextMap.d.ts +10 -0
  230. package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/DateField.d.ts +4 -0
  231. package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/contextMap.d.ts +9 -0
  232. package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/validators.d.ts +2 -0
  233. package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/EmailField.d.ts +4 -0
  234. package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/contextMap.d.ts +10 -0
  235. package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/validators.d.ts +2 -0
  236. package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/NumberField.d.ts +4 -0
  237. package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/contextMap.d.ts +9 -0
  238. package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/validators.d.ts +2 -0
  239. package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/TextField.d.ts +4 -0
  240. package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/contextMap.d.ts +10 -0
  241. package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/validators.d.ts +4 -0
  242. package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/WebsiteField.d.ts +4 -0
  243. package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/contextMap.d.ts +10 -0
  244. package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/validators.d.ts +3 -0
  245. package/dist/types/adaptiveWorkflow/utils/validators/getValidationError.d.ts +7 -0
  246. package/dist/types/adaptiveWorkflow/utils/validators/sharedValidators.d.ts +3 -0
  247. package/dist/types/adaptiveWorkflow/utils/validators/types.d.ts +6 -0
  248. package/dist/types/api/adaptive/useAdaptiveWorkflow.d.ts +1 -1
  249. package/dist/types/api/address/useAddressCleanse.d.ts +2 -2
  250. package/dist/types/api/address/useRetrieveAddress.d.ts +2 -2
  251. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +2 -2
  252. package/dist/types/api/address/useSearchAddress.d.ts +2 -2
  253. package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -1
  254. package/dist/types/api/companySearch/useCompanySearch.d.ts +6 -293
  255. package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
  256. package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
  257. package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -2
  258. package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
  259. package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
  260. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
  261. package/dist/types/api/documents/useDocument.d.ts +1 -1
  262. package/dist/types/api/documents/useDocuments.d.ts +2 -2
  263. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -3
  264. package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +2 -2
  265. package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -1
  266. package/dist/types/api/invitations/useInvitationStatus.d.ts +1 -1
  267. package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +2 -2
  268. package/dist/types/api/invitedEntity/useInvitedEntityRootCapabilities.d.ts +2 -2
  269. package/dist/types/api/invitedEntity/useInvitedEntityVerificationErrors.d.ts +2 -2
  270. package/dist/types/api/legalEntity/useLegalEntity.d.ts +9 -9
  271. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
  272. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -1
  273. package/dist/types/api/pci/usePciQuestionnaireList.d.ts +2 -2
  274. package/dist/types/api/pci/usePciStatus.d.ts +2 -2
  275. package/dist/types/api/pci/usePciTemplate.d.ts +2 -2
  276. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
  277. package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
  278. package/dist/types/api/taskStatus/useTaskStatuses.d.ts +2 -2
  279. package/dist/types/api/taxClassification/useTaxClassification.d.ts +2 -2
  280. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +2 -2
  281. package/dist/types/api/termsOfService/useTermsOfService.d.ts +2 -2
  282. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
  283. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -2
  284. package/dist/types/api/tinVerification/useVerifyTin.d.ts +5 -245
  285. package/dist/types/api/toggles/useToggles.d.ts +1 -1
  286. package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
  287. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
  288. package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
  289. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
  290. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +2 -2
  291. package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
  292. package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -2
  293. package/dist/types/components/Business/forms/rules.d.ts +3 -1
  294. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +3 -2
  295. package/dist/types/components/GlobalEntry/hooks/usePrefetchCompanySearch.d.ts +11 -0
  296. package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
  297. package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +3 -1
  298. package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +3 -1
  299. package/dist/types/components/Individual/forms/Individual.rules.d.ts +4 -2
  300. package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +7 -6
  301. package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +12 -4
  302. package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +2 -2
  303. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
  304. package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +1 -1
  305. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +11 -1
  306. package/dist/types/components/ui/atoms/Typography/Typography.types.d.ts +1 -1
  307. package/dist/types/context/SettingsContext/types.d.ts +8 -0
  308. package/dist/types/context/ToggleContext/types.d.ts +3 -13
  309. package/dist/types/utils/japanSupportUtils.d.ts +2 -2
  310. package/dist/types/utils/validatorUtils.d.ts +2 -0
  311. package/dist/{types-D6p5FQF-.js → types-BymnGWO9.js} +1 -1
  312. package/dist/{types-B9zXzag-.js → types-qahGXhtr.js} +1 -1
  313. package/dist/{upload-C5NC1E4N.js → upload-BI7LKlDm.js} +2 -2
  314. package/dist/{useAdaptiveWorkflow-DsQESk9f.js → useAdaptiveWorkflow-B35cXauP.js} +1 -1
  315. package/dist/{useBusinessDetailsData-dsYTeDom.js → useBusinessDetailsData-BEM6OCqH.js} +132 -150
  316. package/dist/{useBusinessLines-BhSN6qCH.js → useBusinessLines-0FcuDMzo.js} +1 -1
  317. package/dist/{useCanSeeIntroduction-BLGY7sE-.js → useCanSeeIntroduction-B6BDOCm_.js} +5 -5
  318. package/dist/{useDataMissingRemediations-ttUrk09_.js → useDataMissingRemediations-DKjYzfe2.js} +3 -3
  319. package/dist/{useForm-BFeaSvlP.js → useForm-fYu8sJ-i.js} +6 -6
  320. package/dist/{useHideTaskStepper-C_w6iUY-.js → useHideTaskStepper-BgCN--mG.js} +1 -1
  321. package/dist/{invalidateRootLegalEntity-B97dCa-s.js → useId-CEUET5IS.js} +32 -4
  322. package/dist/{useIndustryCodes-uAj90IyS.js → useIndustryCodes-La1cU8oH.js} +1 -1
  323. package/dist/{useLegalEntity-QQXN6YOm.js → useLegalEntity-CxeMoCm4.js} +4 -3
  324. package/dist/{useNavigate-J0sRAAoI.js → useNavigate-B1z7McBl.js} +33 -33
  325. package/dist/{useOnboardingStatus-CsGUjkm-.js → useOnboardingStatus-CX8IrDe_.js} +1 -1
  326. package/dist/{usePciQuestionnaireList-CFNJD8pS.js → usePciQuestionnaireList-CB_tjNsz.js} +1 -1
  327. package/dist/{useSalesChannels-huIL6Dhk.js → useSalesChannels-DJAmDo-r.js} +5 -5
  328. package/dist/{useScenarios-DV2TeNvN.js → useScenarios-DfE71fl7.js} +7 -6
  329. package/dist/{useSettingsContext-9O3Aqpfq.js → useSettingsContext-Bpf4UqRT.js} +6 -3
  330. package/dist/{useTaskLandedEvent-DwZHcMEQ.js → useTaskLandedEvent-BtuFBe20.js} +2 -2
  331. package/dist/{useTaskStatus-CgrhdaE_.js → useTaskStatus-4nAPf_uD.js} +1 -1
  332. package/dist/{useTermsOfServiceStatus-DbJDklA2.js → useTermsOfServiceStatus-FDpSDjco.js} +1 -1
  333. package/dist/{useTrustMembers-uhgi2qfN.js → useTrustMembers-D3sCwcaT.js} +9 -8
  334. package/dist/{useUnincorporatedPartnershipMembers-DVEWj1is.js → useUnincorporatedPartnershipMembers-DcfQJdVZ.js} +5 -5
  335. package/dist/{useUpdateBusinessLines-DCKYTzxd.js → useUpdateBusinessLines-B-pF2YT-.js} +1 -1
  336. package/dist/{utils-SKYT7xU4.js → utils-BFxg3gPM.js} +2 -2
  337. package/dist/{utils-D8pwjFm5.js → utils-CcBgYW2P.js} +5 -6
  338. package/dist/utils-Oc-YLiM0.js +214 -0
  339. package/dist/{validate-BBVJuFm5.js → validate-1rlz-OH4.js} +15 -17
  340. package/dist/{validate-Bkpa-y5Q.js → validate-B2P8hpA5.js} +7 -7
  341. package/dist/{validate-t6pT7AaZ.js → validate-S1Bm0XnT.js} +3 -3
  342. package/dist/{validate-Dmdw3pYn.js → validate-x5CYfY5E.js} +2 -2
  343. package/dist/{validateExtractionResult-qkFkcrwl.js → validateExtractionResult-IRRMwcNi.js} +5 -7
  344. package/dist/{warning-circle-fill-C2lMYPJW.js → warning-circle-fill-ClFvGo5m.js} +2 -2
  345. package/dist/{warning-diamond-filled-CQ2DdW5g.js → warning-diamond-filled-CWyKR65i.js} +2 -2
  346. package/dist/{webinar-BpZWqd-g.js → webinar-DWX7Z5Wz.js} +2 -2
  347. package/package.json +36 -36
  348. package/dist/AdaptiveWorkflow-2EE8iiMD.js +0 -33
  349. package/dist/Alert-BqbbDRYR.js +0 -172
  350. package/dist/AnalyticsContext-CpimDlw4.js +0 -21
  351. package/dist/Checkbox-qfdF12cF.js +0 -60
  352. package/dist/Confirm-DjFpxSzC.js +0 -77
  353. package/dist/CountryField-CMOB4yz4.js +0 -38
  354. package/dist/DataConflictsModal-8Nnj7_UD.js +0 -238
  355. package/dist/Field-Df7ajJE2.js +0 -154
  356. package/dist/FormFlow.module-DqMxjYHl.js +0 -20
  357. package/dist/Header-DvifUz7-.js +0 -93
  358. package/dist/Icon-DFQgr7dy.js +0 -175
  359. package/dist/LandingLayout-BsIoIFzs.js +0 -76
  360. package/dist/LegalName-BYQ12uWc.js +0 -33
  361. package/dist/LoaderWrapper-Dc88hY-P.js +0 -34
  362. package/dist/MaskedInput-CkDwzLxe.js +0 -719
  363. package/dist/MaybeModal-Dfm1rIUG.js +0 -24
  364. package/dist/NewSummary-DYLlnpwx.js +0 -73
  365. package/dist/ProgressBar-DWFxLMUA.js +0 -38
  366. package/dist/RadioGroup-CY33MT83.js +0 -47
  367. package/dist/RadioWithLabel-BmUFWDxq.js +0 -45
  368. package/dist/SettingsContext-Dl-9WWCI.js +0 -9
  369. package/dist/StateContext-B2_Pqd_y.js +0 -9
  370. package/dist/StateField-BiNI3dm9.js +0 -55
  371. package/dist/StructuredList-BHUmeWeh.js +0 -56
  372. package/dist/Summary-BTDbRMfh.js +0 -235
  373. package/dist/TaxInformationField--Uhp0zLv.js +0 -242
  374. package/dist/TileGroup-BFcSgQ1l.js +0 -172
  375. package/dist/ToastContext-B_wd2IY2.js +0 -13
  376. package/dist/ToastContextProvider-BSQ1Upl_.js +0 -103
  377. package/dist/VerificationErrorAlert-B6HmAZ0g.js +0 -38
  378. package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +0 -14
  379. package/dist/bafinUtils-RXELXyTR.js +0 -96
  380. package/dist/bg-BG-DfbtcqF4.js +0 -7
  381. package/dist/birthDateUtils-D6uk7zwm.js +0 -84
  382. package/dist/businessRegistrationNumberPatterns-pbrCVTTp.js +0 -982
  383. package/dist/cross-circle-fill-small-DdoPZZeo.js +0 -20
  384. package/dist/cs-CZ-CajuRLo4.js +0 -7
  385. package/dist/da-DK-BEwmSejn.js +0 -7
  386. package/dist/datasetUtil-BdHPWsxZ.js +0 -45
  387. package/dist/de-DE-PyK3jl-6.js +0 -7
  388. package/dist/debouncedInputEvent-Fwwp_K_-.js +0 -54
  389. package/dist/debugStore-Dwn1FXrh.js +0 -9
  390. package/dist/dropinUtils-OsMsnnYG.js +0 -496
  391. package/dist/el-GR-KPFghikv.js +0 -7
  392. package/dist/es-ES-z4jLCvkJ.js +0 -7
  393. package/dist/es-LA-Dx4QymCh.js +0 -7
  394. package/dist/et-EE-1EhDxtTe.js +0 -7
  395. package/dist/fi-FI-Dc2RMc_u.js +0 -7
  396. package/dist/fieldConfigurations-CZCFghnK.js +0 -11
  397. package/dist/formFieldsUtils-CnDkgahc.js +0 -7
  398. package/dist/formUtils-BHgG8yQZ.js +0 -52
  399. package/dist/formUtils-DAKrWwgL.js +0 -84
  400. package/dist/fr-FR-DswL4wQ1.js +0 -7
  401. package/dist/getFormSlice-C1ma6Xd4.js +0 -21
  402. package/dist/getTrustedFields-BJ88GlM-.js +0 -28
  403. package/dist/globalStore--_np-9ON.js +0 -418
  404. package/dist/hr-HR-DI2D_V50.js +0 -7
  405. package/dist/hu-HU-lyRcZjGI.js +0 -7
  406. package/dist/isEmpty-Uewyl-r6.js +0 -14
  407. package/dist/isEmptyEntity-3OHnhXqG.js +0 -43
  408. package/dist/it-IT-Bn4CEcmI.js +0 -7
  409. package/dist/ja-JP-CAX_xwUx.js +0 -7
  410. package/dist/keys-Ce8YnRP2.js +0 -20
  411. package/dist/listToRecord-DumSkYDz.js +0 -10
  412. package/dist/lt-LT-BdgYuJW7.js +0 -7
  413. package/dist/lv-LV-Bz5c0Psg.js +0 -7
  414. package/dist/mapScriptLocalization-BCfkZo1y.js +0 -46
  415. package/dist/nl-NL-BE2cQh0x.js +0 -7
  416. package/dist/no-NO-vgzpp44v.js +0 -7
  417. package/dist/patternValidators-DsrZkuOO.js +0 -73
  418. package/dist/pl-PL-DgDSRVmp.js +0 -7
  419. package/dist/pt-BR-BaKp-J8F.js +0 -7
  420. package/dist/pt-PT-Df48oeP5.js +0 -7
  421. package/dist/resolveEnvironment-CLI-fiSo.js +0 -999
  422. package/dist/ro-RO-CTMsv_EY.js +0 -7
  423. package/dist/roleMetadata-CbgaYaH8.js +0 -56
  424. package/dist/sk-SK-oqO5I3Aw.js +0 -7
  425. package/dist/sl-SI-CQhJFnpj.js +0 -7
  426. package/dist/summaryItem-uDWmtYtt.js +0 -16
  427. package/dist/sv-SE-CmevESLi.js +0 -7
  428. package/dist/toFullWidth-Dgy4X4i8.js +0 -52
  429. package/dist/trustUtil-BG17fZ56.js +0 -98
  430. package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +0 -14
  431. package/dist/types-B28r2lAW.js +0 -30
  432. package/dist/types-CZAHRt31.js +0 -147
  433. package/dist/useAccountHolder-BpIX1iBG.js +0 -102
  434. package/dist/useAllowedCountries-qyvo-c6A.js +0 -80
  435. package/dist/useAnalyticsContext-gSnRnYgV.js +0 -12
  436. package/dist/useCreateLegalEntity-CYZd_62a.js +0 -24
  437. package/dist/useDataset-K19TDoyR.js +0 -98
  438. package/dist/useDeleteTransferInstrument-C10xzHiO.js +0 -31
  439. package/dist/useId-BkDhUta2.js +0 -28
  440. package/dist/useMultiForm-CM3lpilP.js +0 -790
  441. package/dist/useToastContext-B6Mqc2HY.js +0 -12
  442. package/dist/useToggleContext-B_YexrbT.js +0 -21
  443. package/dist/useUpdateLegalEntity-B7LRg8m0.js +0 -29
  444. package/dist/utils-BLBh0VEd.js +0 -1755
  445. package/dist/utils-CYUYe54m.js +0 -24
  446. package/dist/utils-DdHbAadK.js +0 -80
  447. package/dist/validationError-DUn2rT0n.js +0 -55
  448. package/dist/validationResult-bjYBDjbU.js +0 -29
  449. package/dist/validatorUtils-D2O6AAZn.js +0 -106
  450. /package/dist/{pt-BR-CPbFPNwq2.js → pt-BR-CPbFPNwq.js} +0 -0
@@ -1,24 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3e89d7be-45e6-4de8-99ff-6c210d46f463", e._sentryDebugIdIdentifier = "sentry-dbid-3e89d7be-45e6-4de8-99ff-6c210d46f463");
4
- } catch (e) {}
5
- import { t as ToastContextProvider } from "./ToastContextProvider-BSQ1Upl_.js";
6
- import { t as Modal } from "./Modal-Dq44ZUNN.js";
7
- import { Fragment, jsx } from "preact/jsx-runtime";
8
- //#region src/components/ui/atoms/Modal/MaybeModal.tsx
9
- /**
10
- * Renders a modal or an inline div
11
- * @returns {Modal|HTMLDivElement}
12
- */
13
- var MaybeModal = ({ ariaLabel, children, inline = false, inset, onClose, showCloseButton, size }) => {
14
- return inline ? /* @__PURE__ */ jsx(Fragment, { children }) : /* @__PURE__ */ jsx(Modal, {
15
- onClose,
16
- ariaLabel,
17
- size,
18
- inset,
19
- showCloseButton,
20
- children: /* @__PURE__ */ jsx(ToastContextProvider, { children })
21
- });
22
- };
23
- //#endregion
24
- export { MaybeModal as t };
@@ -1,73 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "59f17c33-a0a1-426a-a6db-5ee4886c014d", e._sentryDebugIdIdentifier = "sentry-dbid-59f17c33-a0a1-426a-a6db-5ee4886c014d");
4
- } catch (e) {}
5
- import { r as useTranslation } from "./translation-DbATp_35.js";
6
- import { t as Typography } from "./Typography-CAc_f5Iq.js";
7
- import { n as IconButton } from "./Button-BxdC8cVB.js";
8
- import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
9
- import { t as Header } from "./Header-DvifUz7-.js";
10
- import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
11
- import { t as List } from "./List-ywoRPg-q.js";
12
- import { t as StructuredList } from "./StructuredList-BHUmeWeh.js";
13
- import { i as trackNavigation } from "./Summary-BTDbRMfh.js";
14
- import { jsx, jsxs } from "preact/jsx-runtime";
15
- import { defineSlots } from "named-slots";
16
- var SummarySection_module_default = {
17
- "summary-header": "_summary-header_jps0f_1",
18
- summaryHeader: "_summary-header_jps0f_1"
19
- };
20
- //#endregion
21
- //#region src/components/Shared/SummarySection/SummarySection.tsx
22
- var SummarySection = ({ formId, label, items, action }) => /* @__PURE__ */ jsxs(List, {
23
- variant: "grouped-secondary",
24
- children: [/* @__PURE__ */ jsxs("header", {
25
- className: SummarySection_module_default.summaryHeader,
26
- children: [/* @__PURE__ */ jsx(Typography, {
27
- el: "h2",
28
- variant: "title",
29
- children: label
30
- }), action]
31
- }), /* @__PURE__ */ jsx(StructuredList, { items: items ?? [] })]
32
- }, formId);
33
- //#endregion
34
- //#region src/components/Shared/NewSummary/NewSummary.tsx
35
- var NewSummary = ({ children, handleEditForm, sections }) => {
36
- const { t } = useTranslation("common");
37
- const { Slot } = defineSlots(children, ["errorPanel", "extraContent"]);
38
- const userEvents = useAnalyticsContext();
39
- return /* @__PURE__ */ jsxs("div", {
40
- role: "region",
41
- children: [/* @__PURE__ */ jsx(Header, {
42
- title: t(($) => $["summary"]),
43
- description: t(($) => $["summaryDescription"])
44
- }), /* @__PURE__ */ jsxs(StackLayout, { children: [
45
- /* @__PURE__ */ jsx(Slot, { name: "errorPanel" }),
46
- sections.map(({ formId, label, items, hideEditButton }) => {
47
- if (formId === "summary") return;
48
- return /* @__PURE__ */ jsx(SummarySection, {
49
- formId,
50
- label,
51
- items,
52
- action: hideEditButton ? void 0 : /* @__PURE__ */ jsx(IconButton, {
53
- variant: "tertiary",
54
- icon: "edit",
55
- onClick: () => {
56
- trackNavigation({
57
- userEvents,
58
- actionType: "edit",
59
- toForm: label,
60
- label: "Pencil icon"
61
- });
62
- handleEditForm(formId);
63
- },
64
- ariaLabel: t(($) => $["editForm"], { formName: label })
65
- })
66
- }, formId);
67
- }),
68
- /* @__PURE__ */ jsx(Slot, { name: "extraContent" })
69
- ] })]
70
- });
71
- };
72
- //#endregion
73
- export { SummarySection as n, NewSummary as t };
@@ -1,38 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2c80bee8-f414-4e51-8664-e941b716fd73", e._sentryDebugIdIdentifier = "sentry-dbid-2c80bee8-f414-4e51-8664-e941b716fd73");
4
- } catch (e) {}
5
- import cx from "classnames";
6
- import { jsx, jsxs } from "preact/jsx-runtime";
7
- var ProgressBar_module_default = {
8
- "progress-bar": "_progress-bar_1d5l3_1",
9
- progressBar: "_progress-bar_1d5l3_1",
10
- "progress-bar-rounded": "_progress-bar-rounded_1d5l3_8",
11
- progressBarRounded: "_progress-bar-rounded_1d5l3_8",
12
- "progress-bar-indicator": "_progress-bar-indicator_1d5l3_12",
13
- progressBarIndicator: "_progress-bar-indicator_1d5l3_12"
14
- };
15
- //#endregion
16
- //#region src/components/ui/atoms/ProgressBar/ProgressBar.tsx
17
- var ProgressBar = ({ progress, ariaLabel, rounded = false }) => {
18
- const clamp = (value) => {
19
- return Math.min(Math.max(value, 0), 100);
20
- };
21
- const clampedProgress = clamp(progress);
22
- const cssWidth = `${clampedProgress}%`;
23
- return /* @__PURE__ */ jsx("div", {
24
- className: cx(ProgressBar_module_default.progressBar, { [ProgressBar_module_default.progressBarRounded]: rounded }),
25
- role: "progressbar",
26
- "aria-label": ariaLabel,
27
- "aria-valuenow": clampedProgress,
28
- "aria-valuemin": 0,
29
- "aria-valuemax": 100,
30
- children: /* @__PURE__ */ jsxs("div", {
31
- className: ProgressBar_module_default.progressBarIndicator,
32
- style: { width: cssWidth },
33
- children: [progress, "%"]
34
- })
35
- });
36
- };
37
- //#endregion
38
- export { ProgressBar as t };
@@ -1,47 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e2a88313-1df2-4ff4-870e-8097ce4a7907", e._sentryDebugIdIdentifier = "sentry-dbid-e2a88313-1df2-4ff4-870e-8097ce4a7907");
4
- } catch (e) {}
5
- import { r as useTranslation } from "./translation-DbATp_35.js";
6
- import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
7
- import { t as RadioWithLabel } from "./RadioWithLabel-BmUFWDxq.js";
8
- import cx from "classnames";
9
- import { jsx } from "preact/jsx-runtime";
10
- //#region src/components/ui/atoms/RadioGroup/RadioGroup.tsx
11
- function RadioGroup({ items, name, onChange, value, disabled = false, horizontal = false, showContentOnlyOnSelected = false, className, enableTracking = false }) {
12
- const { t, i18n } = useTranslation("common");
13
- const userEvents = useAnalyticsContext();
14
- const handleChange = (id) => {
15
- if (enableTracking) userEvents.addFieldEvent("Interacted with form field", {
16
- actionType: "input",
17
- field: name,
18
- returnValue: value
19
- });
20
- onChange(id);
21
- };
22
- return /* @__PURE__ */ jsx("div", {
23
- className: cx([
24
- "adyen-kyc-radio-group",
25
- { "adyen-kyc-radio-group--horizontal": horizontal },
26
- className
27
- ]),
28
- children: items.map((item) => {
29
- const isSelected = item.id === value;
30
- const visibleContent = isSelected || !showContentOnlyOnSelected ? item.content : void 0;
31
- const keyExists = i18n.exists?.(item.name, { ns: "common" });
32
- return /* @__PURE__ */ jsx(RadioWithLabel, {
33
- value: item.id,
34
- label: keyExists ? t(($) => $[item.name]) : item.name,
35
- content: visibleContent,
36
- groupName: name,
37
- checked: isSelected,
38
- disabled,
39
- onClick: () => {
40
- handleChange(item.id);
41
- }
42
- }, item.id);
43
- })
44
- });
45
- }
46
- //#endregion
47
- export { RadioGroup as t };
@@ -1,45 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2feb1bf0-6ad5-4d6e-ac31-cd64e792901f", e._sentryDebugIdIdentifier = "sentry-dbid-2feb1bf0-6ad5-4d6e-ac31-cd64e792901f");
4
- } catch (e) {}
5
- import { t as useId } from "./useId-BkDhUta2.js";
6
- import cx from "classnames";
7
- import { jsx, jsxs } from "preact/jsx-runtime";
8
- //#region src/components/ui/atoms/Radio/Radio.tsx
9
- var Radio = ({ id, value, groupName, checked = false, disabled = false, onClick, className, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy }) => /* @__PURE__ */ jsx("input", {
10
- "aria-labelledby": ariaLabelledBy,
11
- "aria-describedby": ariaDescribedBy,
12
- className: cx(["adyen-kyc-input-radio adyen-kyc-input-radio__input", className]),
13
- id,
14
- type: "radio",
15
- checked,
16
- name: groupName,
17
- onClick,
18
- value,
19
- disabled
20
- });
21
- //#endregion
22
- //#region src/components/ui/atoms/RadioWithLabel/RadioWithLabel.tsx
23
- var RadioWithLabel = ({ value, label, content, groupName, checked = false, disabled = false, onClick }) => {
24
- const id = useId("radio");
25
- return /* @__PURE__ */ jsxs("label", {
26
- htmlFor: id,
27
- className: "adyen-kyc-input-radio",
28
- children: [/* @__PURE__ */ jsx(Radio, {
29
- id,
30
- checked,
31
- groupName,
32
- onClick,
33
- value,
34
- disabled
35
- }), /* @__PURE__ */ jsxs("div", {
36
- className: "adyen-kyc-input-radio__content",
37
- children: [/* @__PURE__ */ jsx("span", {
38
- className: "adyen-kyc-input-radio__label adyen-kyc-label__text",
39
- children: label
40
- }), content]
41
- })]
42
- });
43
- };
44
- //#endregion
45
- export { RadioWithLabel as t };
@@ -1,9 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "84a754f7-78c7-438d-aaad-9469285920f6", e._sentryDebugIdIdentifier = "sentry-dbid-84a754f7-78c7-438d-aaad-9469285920f6");
4
- } catch (e) {}
5
- import { createContext } from "preact";
6
- //#region src/context/SettingsContext/SettingsContext.tsx
7
- var SettingsContext = createContext(void 0);
8
- //#endregion
9
- export { SettingsContext as t };
@@ -1,9 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9cd11c74-ef1c-4249-8397-c704c7b171c6", e._sentryDebugIdIdentifier = "sentry-dbid-9cd11c74-ef1c-4249-8397-c704c7b171c6");
4
- } catch (e) {}
5
- import { createContext } from "preact";
6
- //#region src/context/StateContext/StateContext.ts
7
- var StateContext = createContext(null);
8
- //#endregion
9
- export { StateContext as t };
@@ -1,55 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "313cc741-d227-4bcc-a3d2-401bc1e26640", e._sentryDebugIdIdentifier = "sentry-dbid-313cc741-d227-4bcc-a3d2-401bc1e26640");
4
- } catch (e) {}
5
- import { r as useTranslation } from "./translation-DbATp_35.js";
6
- import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
7
- import { t as useDataset } from "./useDataset-K19TDoyR.js";
8
- import { t as datasetIdentifier } from "./datasetUtil-BdHPWsxZ.js";
9
- import { a as validateNotEmptyOnBlur } from "./patternValidators-DsrZkuOO.js";
10
- import { t as Field } from "./Field-Df7ajJE2.js";
11
- import { t as Select } from "./Select-prMx73V9.js";
12
- import { c as COUNTRIES_WITH_STATES_DATASET, r as getKeyForField } from "./utils-lIizXlcC.js";
13
- import { jsx } from "preact/jsx-runtime";
14
- //#region src/components/Shared/fields/StateField/fieldConfig.ts
15
- var stateFieldMetadata = { validators: validateNotEmptyOnBlur };
16
- /**
17
- * Returns the placeholder text for state field based on country.
18
- */
19
- var getStatePlaceholderText = (t, { country }) => {
20
- switch (country) {
21
- case CountryCodes.Australia:
22
- case CountryCodes.Brazil: return t(($) => $["selectState"]);
23
- case CountryCodes.Canada: return t(($) => $["selectProvinceOrTerritory"]);
24
- case CountryCodes.UnitedStates: return t(($) => $[`selectAState`]);
25
- default: return t(($) => $["stateOrProvince__placeHolder"]);
26
- }
27
- };
28
- //#endregion
29
- //#region src/components/Shared/fields/StateField/StateField.tsx
30
- var STATE_FIELD = ["stateOrProvince"];
31
- function StateField({ data, valid, errors, readonly, handleChangeFor, selectedCountry, handleBlur, labelOverride }) {
32
- const { t } = useTranslation("common");
33
- const { dataset: states, loaded } = useDataset(datasetIdentifier.state(selectedCountry), !selectedCountry || !COUNTRIES_WITH_STATES_DATASET.includes(selectedCountry));
34
- const labelKey = getKeyForField("stateOrProvince", selectedCountry);
35
- if (!loaded || !states.length) return null;
36
- return /* @__PURE__ */ jsx(Field, {
37
- name: "stateOrProvince",
38
- label: labelOverride ?? t(($) => $[labelKey]),
39
- errorMessage: errors.stateOrProvince,
40
- isValid: valid.stateOrProvince,
41
- dataTestId: "stateOrProvince",
42
- children: (childProps) => /* @__PURE__ */ jsx(Select, {
43
- ...childProps,
44
- name: "stateOrProvince",
45
- selected: data.stateOrProvince,
46
- placeholder: getStatePlaceholderText(t, { country: selectedCountry }),
47
- items: states,
48
- readonly: readonly && !!data.stateOrProvince,
49
- onChange: handleChangeFor("stateOrProvince"),
50
- onBlur: handleBlur
51
- })
52
- });
53
- }
54
- //#endregion
55
- export { StateField as n, stateFieldMetadata as r, STATE_FIELD as t };
@@ -1,56 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a7c7830e-c702-4e7c-8114-e69073917f45", e._sentryDebugIdIdentifier = "sentry-dbid-a7c7830e-c702-4e7c-8114-e69073917f45");
4
- } catch (e) {}
5
- import { t as useId } from "./useId-BkDhUta2.js";
6
- import cx from "classnames";
7
- import { jsx, jsxs } from "preact/jsx-runtime";
8
- var StructuredList_module_default = {
9
- "structured-list": "_structured-list_w3dv7_1",
10
- structuredList: "_structured-list_w3dv7_1",
11
- "structured-list-section-field": "_structured-list-section-field_w3dv7_6",
12
- structuredListSectionField: "_structured-list-section-field_w3dv7_6",
13
- "structured-list-section-label": "_structured-list-section-label_w3dv7_22",
14
- structuredListSectionLabel: "_structured-list-section-label_w3dv7_22",
15
- "structured-list-section-data": "_structured-list-section-data_w3dv7_23",
16
- structuredListSectionData: "_structured-list-section-data_w3dv7_23",
17
- "structured-list-section-detail": "_structured-list-section-detail_w3dv7_46",
18
- structuredListSectionDetail: "_structured-list-section-detail_w3dv7_46"
19
- };
20
- //#endregion
21
- //#region src/components/ui/atoms/StructuredList/StructuredList.tsx
22
- var StructuredList = ({ className, detailsGroupClassName, items }) => {
23
- const structuredListClassNames = cx(StructuredList_module_default.structuredList, className);
24
- const detailsGroupClassNames = cx(StructuredList_module_default.structuredListSectionData, detailsGroupClassName);
25
- return /* @__PURE__ */ jsx("dl", {
26
- className: structuredListClassNames,
27
- children: items.map((item) => /* @__PURE__ */ jsx(StructuredListItemEl, {
28
- item,
29
- detailsGroupClassNames
30
- }, `${item.term}${item.details}`))
31
- });
32
- };
33
- var StructuredListItemEl = ({ item: { term, details }, detailsGroupClassNames }) => {
34
- const uniqueId = useId("structured-list-item");
35
- return /* @__PURE__ */ jsxs("div", {
36
- className: StructuredList_module_default.structuredListSectionField,
37
- children: [/* @__PURE__ */ jsx("dt", {
38
- id: uniqueId,
39
- className: StructuredList_module_default.structuredListSectionLabel,
40
- children: term
41
- }), Array.isArray(details) ? /* @__PURE__ */ jsx("div", {
42
- className: detailsGroupClassNames,
43
- children: details.map((detail) => /* @__PURE__ */ jsx("dd", {
44
- "aria-labelledby": uniqueId,
45
- className: StructuredList_module_default.structuredListSectionDetail,
46
- children: detail
47
- }))
48
- }) : /* @__PURE__ */ jsx("dd", {
49
- "aria-labelledby": uniqueId,
50
- className: detailsGroupClassNames,
51
- children: details
52
- })]
53
- });
54
- };
55
- //#endregion
56
- export { StructuredList as t };
@@ -1,235 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "65fdfa78-132a-4399-8349-7bf2008ea9f5", e._sentryDebugIdIdentifier = "sentry-dbid-65fdfa78-132a-4399-8349-7bf2008ea9f5");
4
- } catch (e) {}
5
- import { r as useTranslation } from "./translation-DbATp_35.js";
6
- import { n as IconButton } from "./Button-BxdC8cVB.js";
7
- import { y as isEmpty } from "./validatorUtils-D2O6AAZn.js";
8
- import { t as Header } from "./Header-DvifUz7-.js";
9
- import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
10
- import { t as Image } from "./Image-Bn_Yyuof.js";
11
- import { t as List } from "./List-ywoRPg-q.js";
12
- import { t as StructuredList } from "./StructuredList-BHUmeWeh.js";
13
- import { r as translateTranslatable } from "./utils-CYUYe54m.js";
14
- import { t as ErrorPanel } from "./ErrorPanel-PefRq1M4.js";
15
- import { t as createFormUtils } from "./formUtils-DAKrWwgL.js";
16
- import { t as getRoleName } from "./roleMetadata-CbgaYaH8.js";
17
- import { t as isSummaryItem } from "./summaryItem-uDWmtYtt.js";
18
- import { lazy } from "preact/compat";
19
- import { jsx, jsxs } from "preact/jsx-runtime";
20
- //#region src/utils/analytics/trackNavigation.ts
21
- var trackNavigation = ({ userEvents, actionType, toForm, label, returnValue, additionalTrackingParams }) => {
22
- userEvents.addPageEvent("Clicked button", {
23
- actionType,
24
- toPage: toForm,
25
- label,
26
- returnValue,
27
- ...additionalTrackingParams
28
- });
29
- };
30
- var Summary_module_default = {
31
- summary: "_summary_1op7a_1",
32
- "summary-content": "_summary-content_1op7a_7",
33
- summaryContent: "_summary-content_1op7a_7",
34
- "summary-list": "_summary-list_1op7a_13",
35
- summaryList: "_summary-list_1op7a_13",
36
- "summary-list-header": "_summary-list-header_1op7a_27",
37
- summaryListHeader: "_summary-list-header_1op7a_27",
38
- "summary-list-header-title": "_summary-list-header-title_1op7a_32",
39
- summaryListHeaderTitle: "_summary-list-header-title_1op7a_32",
40
- "summary-list-item": "_summary-list-item_1op7a_41",
41
- summaryListItem: "_summary-list-item_1op7a_41",
42
- "summary-list-item-key": "_summary-list-item-key_1op7a_55",
43
- summaryListItemKey: "_summary-list-item-key_1op7a_55",
44
- "summary-list-item-value": "_summary-list-item-value_1op7a_67",
45
- summaryListItemValue: "_summary-list-item-value_1op7a_67",
46
- "summary-content-legal-caption": "_summary-content-legal-caption_1op7a_73",
47
- summaryContentLegalCaption: "_summary-content-legal-caption_1op7a_73",
48
- "summary-content-list": "_summary-content-list_1op7a_88",
49
- summaryContentList: "_summary-content-list_1op7a_88",
50
- "summary-content-logo": "_summary-content-logo_1op7a_92",
51
- summaryContentLogo: "_summary-content-logo_1op7a_92"
52
- };
53
- //#endregion
54
- //#region src/components/Shared/Summary/Summary.tsx
55
- var onfidoLogo = lazy(() => import("./onfido-logo-CMRuSr8M.js"));
56
- var summaryStep = {
57
- formId: "summary",
58
- formName: "summary"
59
- };
60
- /** @deprecated, use NewSummary */
61
- function Summary({ data, forms, gotoForm, labels, problems, omitted = {}, showFormHeader = true, showSectionHeader = true, showLegalCaption = false, showTaxExemptedLegalCaption = false, useStructuredList = false }) {
62
- const { t } = useTranslation("common");
63
- const userEvents = useAnalyticsContext();
64
- const editForm = (formId) => {
65
- const formIndex = forms.findIndex((form) => form.formId === formId);
66
- if (formIndex >= 0) gotoForm(formIndex);
67
- };
68
- const allValidationErrors = problems?.validationErrors && Object.values(problems.validationErrors)?.reduce((acc, validError) => ({
69
- ...acc,
70
- ...validError
71
- }), {});
72
- const allVerificationErrors = problems?.verificationErrors && Object.values(problems.verificationErrors)?.reduce((acc, verifError) => ({
73
- ...acc,
74
- ...verifError
75
- }), {});
76
- const formUtils = createFormUtils({ labels }, t);
77
- const summarySectionHeader = (formName, formId) => /* @__PURE__ */ jsxs("header", {
78
- className: Summary_module_default.summaryListHeader,
79
- children: [/* @__PURE__ */ jsx("h2", {
80
- className: Summary_module_default.summaryListHeaderTitle,
81
- children: formName
82
- }), !omitted.summaryEditButton?.includes(formId) && /* @__PURE__ */ jsx(IconButton, {
83
- variant: "tertiary",
84
- icon: "edit",
85
- onClick: () => {
86
- trackNavigation({
87
- userEvents,
88
- actionType: "edit",
89
- toForm: formName,
90
- label: "Pencil icon"
91
- });
92
- editForm(formId);
93
- },
94
- ariaLabel: t(($) => $["editForm"], { formName })
95
- })]
96
- });
97
- const renderSummarySection = (fieldData, labelData = {}, formName, formId, useStructuredList) => {
98
- const structuredListItems = Object.entries(fieldData).map(([key, value]) => {
99
- return {
100
- term: t(($) => $[labelData[key] || key]),
101
- details: value
102
- };
103
- });
104
- return !useStructuredList ? /* @__PURE__ */ jsxs(List, {
105
- variant: "grouped-secondary",
106
- children: [showSectionHeader && summarySectionHeader(formName, formId), /* @__PURE__ */ jsx("dl", {
107
- className: Summary_module_default.summaryList,
108
- children: Array.isArray(fieldData) ? fieldData.map((item) => renderBulletedListField(item)) : renderSummaryItems(fieldData, labelData)
109
- })]
110
- }) : /* @__PURE__ */ jsxs(List, {
111
- variant: "grouped-secondary",
112
- children: [showSectionHeader && summarySectionHeader(formName, formId), /* @__PURE__ */ jsx(StructuredList, { items: structuredListItems })]
113
- });
114
- };
115
- const renderSummaryContent = (summaryData, useStructuredList) => {
116
- const summaryList = [];
117
- forms.forEach(({ formId, formName }) => {
118
- const currentFormData = summaryData[formId];
119
- if (!currentFormData || Object.values(currentFormData).every((value) => isEmpty(value)) || formId === summaryStep.formId || omitted.forms?.includes(formId)) return;
120
- const summaryItems = currentFormData.hasInnerForms ? renderInnerForms(labels?.[formId], formId, currentFormData) : renderSummarySection(currentFormData, labels?.[formId], t(($) => $[typeof labels?.[formId] === "string" ? labels[formId] : formName]), formId, useStructuredList);
121
- summaryList.push(summaryItems);
122
- });
123
- return summaryList;
124
- };
125
- const renderInnerForms = (labelData, parentFormId, innerForms = {}) => {
126
- if (!innerForms) return [];
127
- const dataList = [];
128
- Object.entries(innerForms).forEach(([innerFormName, innerFormFieldData]) => {
129
- const formName = t(($) => $[labelData?.[innerFormName] || innerFormName]);
130
- if (typeof innerFormFieldData === "object" && innerFormFieldData !== null) {
131
- if (Object.values(innerFormFieldData).every((value) => isEmpty(value))) return;
132
- dataList.push(renderSummarySection(innerFormFieldData, labelData, formName, parentFormId));
133
- }
134
- });
135
- return dataList;
136
- };
137
- /**
138
- * Renders a single label-value pair as a field in the summary section.
139
- *
140
- * This helper function creates the markup for a single piece of data,
141
- * displaying a label and its corresponding value using a definition list
142
- * for semantic correctness (`<dt>` for label, `<dd>` for data).
143
- *
144
- * @param label The translated label to display for the field.
145
- * @param value The value of the field, which can be a simple string or a JSX element for more complex rendering.
146
- * @returns A JSX element representing the summary field.
147
- */
148
- const renderField = (label, value) => /* @__PURE__ */ jsxs("div", {
149
- className: Summary_module_default.summaryListItem,
150
- children: [/* @__PURE__ */ jsx("dt", {
151
- className: Summary_module_default.summaryListItemKey,
152
- children: label
153
- }), /* @__PURE__ */ jsx("dd", {
154
- className: Summary_module_default.summaryListItemValue,
155
- children: value
156
- })]
157
- });
158
- const renderBulletedListField = (item) => /* @__PURE__ */ jsx("ul", {
159
- className: Summary_module_default.summaryContentList,
160
- children: /* @__PURE__ */ jsx("li", { children: item })
161
- });
162
- /**
163
- * Recursively renders the data fields for a summary section.
164
- *
165
- * This function iterates through the properties of the `formData` object.
166
- * It handles different data types by:
167
- * - Displaying simple string or number values with their corresponding labels.
168
- * - Handling 'role' arrays specifically to show a comma-separated list of roles.
169
- * - Recognizing and rendering `SummaryItem` objects with their custom labels and values.
170
- * - Recursively calling itself for nested objects to render their properties.
171
- *
172
- * Fields listed in the `omitted.keys` prop are skipped.
173
- *
174
- * @param formData The data object for the current section, containing key-value pairs to be rendered.
175
- * @param labelData A map of field keys to their corresponding translation keys for fetching display labels.
176
- * @returns An array of JSX elements representing the rendered summary fields for the section.
177
- */
178
- const renderSummaryItems = (formData = {}, labelData = {}) => {
179
- if (!formData) return [];
180
- if (formData?.idVerificationMethod === "instantVerification") return [renderField(t(($) => $["verificationMethod"]), /* @__PURE__ */ jsx(Image, {
181
- lazyLoadedImage: onfidoLogo,
182
- className: Summary_module_default.summaryContentLogo,
183
- alt: "onfido-logo"
184
- }))];
185
- const dataList = [];
186
- Object.entries(formData).forEach(([field, fieldData]) => {
187
- if (omitted.keys?.includes(field) || !fieldData) return;
188
- const fieldName = t(($) => $[labelData[field] || field]);
189
- if (field === "role" && Array.isArray(fieldData)) {
190
- const label = fieldData.length > 1 ? t(($) => $["roles"]) : fieldName;
191
- const roles = fieldData.map((role) => t(($) => $[getRoleName(role)])).join(", ");
192
- dataList.push(renderField(label, roles));
193
- } else if (isSummaryItem(fieldData)) {
194
- const { summaryLabel, summaryValue, preTranslated } = fieldData;
195
- if (preTranslated) dataList.push(renderField(summaryLabel, summaryValue));
196
- else dataList.push(renderField(translateTranslatable(t, summaryLabel) ?? "", summaryValue));
197
- } else if (typeof fieldData === "object") dataList.push(renderSummaryItems(fieldData, labelData));
198
- else if (["string", "number"].includes(typeof fieldData)) dataList.push(renderField(fieldName, fieldData));
199
- });
200
- return dataList;
201
- };
202
- return /* @__PURE__ */ jsxs("div", {
203
- role: "region",
204
- className: Summary_module_default.summary,
205
- children: [showFormHeader && /* @__PURE__ */ jsx(Header, {
206
- title: t(($) => $["summary"]),
207
- description: t(($) => $["summaryDescription"])
208
- }), /* @__PURE__ */ jsxs("div", {
209
- className: Summary_module_default.summaryContent,
210
- children: [
211
- /* @__PURE__ */ jsx(ErrorPanel, {
212
- validationErrors: allValidationErrors,
213
- verificationErrors: allVerificationErrors,
214
- formUtils,
215
- id: "ariaErrorField"
216
- }),
217
- renderSummaryContent(data, useStructuredList),
218
- showLegalCaption && /* @__PURE__ */ jsx("div", {
219
- className: Summary_module_default.summaryContentLegalCaption,
220
- children: t(($) => $["summaryLegalCaption"])
221
- }),
222
- showTaxExemptedLegalCaption && /* @__PURE__ */ jsxs("div", {
223
- className: Summary_module_default.summaryContentLegalCaption,
224
- children: [/* @__PURE__ */ jsx("p", { children: t(($) => $["summaryTaxExemptionLegalCaptionTitle"]) }), /* @__PURE__ */ jsxs("ul", { children: [
225
- /* @__PURE__ */ jsx("li", { children: t(($) => $["summaryTaxExemptionLegalCaption_1"]) }),
226
- /* @__PURE__ */ jsx("li", { children: t(($) => $["summaryTaxExemptionLegalCaption_2"]) }),
227
- /* @__PURE__ */ jsx("li", { children: t(($) => $["summaryTaxExemptionLegalCaption_3"]) })
228
- ] })]
229
- })
230
- ]
231
- })]
232
- });
233
- }
234
- //#endregion
235
- export { trackNavigation as i, summaryStep as n, Summary_module_default as r, Summary as t };