@zeniai/web-cockpit-ui 1.14.11-qa → 1.14.12-dev

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 (249) hide show
  1. package/dist/assets/ACHDetailsPage-BQBpkHfF-5WBNzAYc.js +21 -0
  2. package/dist/assets/{AIPerformancePage-pQP8EI_S-BmqjuJLP.js → AIPerformancePage-C459GJxs-fTjD1LWj.js} +49 -49
  3. package/dist/assets/{AccountInfoPage-DxAa9GD7-D7apIJBS.js → AccountInfoPage-DWqJj9l6-B6y2ESMc.js} +5 -5
  4. package/dist/assets/{AccountInfoPageContent-tNTpX5pA-Dq_hVydq.js → AccountInfoPageContent-Ca328DM4-QVdlDPGz.js} +17 -17
  5. package/dist/assets/{AccountReconDetailsDrawerPage-CbZaDfU0-DaawWCL4.js → AccountReconDetailsDrawerPage-BqIo4mya-DvoWQJ-A.js} +13 -13
  6. package/dist/assets/{AccountRow-BpBK8mVs-CWKKWdc9.js → AccountRow-Bk3xWobY-C3BJwyhC.js} +33 -33
  7. package/dist/assets/{AccountsPromoCardStack-DBCYok4Z-A49ZhRDR.js → AccountsPromoCardStack-Co90dxxm-D8gTFju4.js} +35 -35
  8. package/dist/assets/{AddAddressForCardDrawer-BP8sDedz-DSB40bVC.js → AddAddressForCardDrawer-XNGsKMvs-D3xdyQox.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-Dsw1GIbh-BSm9RiLd.js → AddToWalletPage-BiQWQXvz-Db3v8rAa.js} +26 -26
  10. package/dist/assets/{AgingReportsPage-COC3iACh-C5F0xJIX.js → AgingReportsPage-ClR6ctjm-BIaxAdn5.js} +8 -8
  11. package/dist/assets/{AllUserItems-DKoDASKq-DdNtnSb4.js → AllUserItems-RFWkNfw--KR4FkXJv.js} +10 -10
  12. package/dist/assets/{ApAgingDetailPage-BKAJMyRm-BNLhw8rC.js → ApAgingDetailPage-F-pd4-We-CpSc-V5Y.js} +2 -2
  13. package/dist/assets/{AppBasePage-6fgXwSBv-D_v1hA25.js → AppBasePage-B9-FGKn--2PuIe5q1.js} +6 -6
  14. package/dist/assets/{AppDrawerContent-DnYw60Xv-B7MgYjtO.js → AppDrawerContent-C6P8rk3y-D4vfBiW2.js} +19 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-X4EYoBfl-KdnTY675.js → ApprovalRulesSettingsPage-CPNEEGTF-D1-OmKoO.js} +5 -5
  16. package/dist/assets/{ArAgingChart-CNghm3pm-BgpJccmt.js → ArAgingChart-D9qmMVoC-xX4UMVP_.js} +6 -6
  17. package/dist/assets/ArAgingDetailPage-DMuZM6P_-BndjVsLP.js +46 -0
  18. package/dist/assets/{AttachmentView-Bp678glv-q5i7KaEA.js → AttachmentView-B2ZOED0q-BJNMGobn.js} +7 -7
  19. package/dist/assets/{BankAccountSection-DCHOrv1O-5bvqtg8o.js → BankAccountSection-C8G4yj75-DuLz4nvb.js} +5 -5
  20. package/dist/assets/{BankAccountWarningSection-Bof6a4Ai-D_X_UYgf.js → BankAccountWarningSection-CWXa-X6f-DfZDDQCz.js} +11 -11
  21. package/dist/assets/{BankConnectionsSettingsPage-KWPfd_oN-Bz0yQRf6.js → BankConnectionsSettingsPage-B5IQ5w6f-iwQpc5z9.js} +11 -11
  22. package/dist/assets/{BillDetailPage-D5FyJKQZ-BDKG0T5L.js → BillDetailPage-B-PMkZ44-BthpQ-iy.js} +8 -8
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-C17DUKc8-uDIFTPco.js → BillPayApprovalRuleDetailPage-CdLKENJ--UWgYicIp.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-C6b0Dx9D-DhxHdUJx.js → BillPayApprovalRulesPage-BueljBn0-Bfh6hqvA.js} +10 -10
  25. package/dist/assets/{BillPayPromoPage-BhbcKNjD-CvojuwFp.js → BillPayPromoPage-WXntEliq-BogAEb_N.js} +8 -8
  26. package/dist/assets/{BillPaySetUpPage-DFkYsW2C-BYQSIQ2q.js → BillPaySetUpPage-By7rYetf-BUuU8LQN.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-DQ-GDRoK-DXTBvn4K.js → BillingSettingsPage-D-XtlyVU-DEnOD97y.js} +8 -8
  28. package/dist/assets/{BillsBulkReviewDrawerPage-DzTwDeIy-DqYYhO09.js → BillsBulkReviewDrawerPage-P8siJ8lO-Bp2c_793.js} +1 -1
  29. package/dist/assets/{BoxItem-a04JWA45-C1LNy4lJ.js → BoxItem-Bcy7IYuZ-DautVok3.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-BCr_ObVJ-B8FzYlfZ.js → BusinessVerificationPage-BoSLJbyU-BkzAyvoH.js} +12 -12
  31. package/dist/assets/{CardNumberSubText-B5ejHnml-C3WWdznE.js → CardNumberSubText-VsMOF0Xv-C9_EOnyV.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DX_XsNhS-BZkWZvJX.js → CashbackDetailPage-DNbRs50r--xwa0kLc.js} +25 -25
  33. package/dist/assets/{ChargeCardDetailPage-Ckbi7U9j-DV5ro9Lj.js → ChargeCardDetailPage-BSDS8Kqb-CvvgjUiJ.js} +57 -57
  34. package/dist/assets/{ChargeCardListPage-CglfbPqr-DkdBMcPW.js → ChargeCardListPage-Bzr8qMC0-COqTxfBS.js} +20 -20
  35. package/dist/assets/{ChargeCardListTable-BxAeA97m-DhK6iFhq.js → ChargeCardListTable-CTp6TFBR-DoKiJmmd.js} +41 -41
  36. package/dist/assets/{ChargeCardPromoPage-BfsQUUYb-Dgj-8gSG.js → ChargeCardPromoPage-dIg8OIlx-XWvzHV4l.js} +31 -31
  37. package/dist/assets/{ChargeCardSetupPage-Bq953HsV-J6EdPALC.js → ChargeCardSetupPage-B1wzJjgH-CBaIBhaa.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-B_5uvkaq-GOsKFOMZ.js → ChargeCardStatementsPage-CePfbLPp-w444eaXi.js} +10 -10
  39. package/dist/assets/ChargeCardUtils-DC2v2EHU-BFBTkwUP.js +1 -0
  40. package/dist/assets/{ChaseOverlay-LcVAgdoT-9JR0Zv57.js → ChaseOverlay-B-Sx71yo-C-AskbE-.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-uABg3PMN-BZAFC99F.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-CKmPwC_x-QhRCql-r.js → CollapsableReportTable-mEqm05fp-D6CvF14n.js} +57 -57
  43. package/dist/assets/{CompanyOfficerDetailsSection-BlLsNJaD-DFeWFucX.js → CompanyOfficerDetailsSection-BzYsDrr2-CsOvplVx.js} +28 -28
  44. package/dist/assets/{CompanyPassportCard-ElwK6uOD-F6JuKciR.js → CompanyPassportCard-Ct6tCZqT-Ck2ikxpq.js} +8 -8
  45. package/dist/assets/{CompanyPassportPage-B6mGjsJZ-D4tm48-a.js → CompanyPassportPage-D9NQ4bXl-sWP3h2Qt.js} +7 -7
  46. package/dist/assets/CompleteProfile-CN_hAW-2-Cag0kPdJ.js +36 -0
  47. package/dist/assets/{ConfettiBurst-CjhkW_Be-BI15fZq4.js → ConfettiBurst-DqSwVGBC-DTqMp1Lq.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-DHvmRSee-CxkBhh6M.js → CreateOrEditVendorPage-D27A1926-Dhm0ZELF.js} +15 -15
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BIaTYAUf-B7y-9nys.js → CreditCardPaymentDrawerPage-BI37dSwx-62q04GEy.js} +11 -11
  50. package/dist/assets/{CreditCardPaymentPlgSection-mUqReF9z-BfHxZrsE.js → CreditCardPaymentPlgSection-CAsn4Ae6-BjGYp9i3.js} +12 -12
  51. package/dist/assets/CurrencySelectField-5uG4FfJ9-BDdfhX8u.js +139 -0
  52. package/dist/assets/{CustomerOnboardingActivationPage-CIOyRd8r-FLMbZZc8.js → CustomerOnboardingActivationPage-Be-GrAiK-C2g5Nk62.js} +5 -5
  53. package/dist/assets/CustomerOnboardingContainerPage-B9qcJNx5-DvSZ9aFU.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-A_l9Qen8-C1oSOHVg.js → CustomerOnboardingDetailPageSkeleton-DhGp71bj-DHW9XHps.js} +13 -13
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-D5BcbVEK-pj30prKU.js → CustomerOnboardingNoStepsPage-CdOGTNXC-k7L31nJ8.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-N-8Zd7M_-DNIqvHf3.js → CustomerOnboardingPage-ClPsywa3-CFzRDdjv.js} +6 -6
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DZwacur5-hGJUPhue.js → CustomerOnboardingProductSuitePage-pnHglqXq-BoMrKg2u.js} +8 -8
  58. package/dist/assets/{Dashboard-CQoNm84Z-Cs2ZdkxJ.js → Dashboard-avtbjFLf-DvcVqu7f.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-D4BoWobJ-yZjHxD4A.js → DashboardReportPage-CqJAu5WP-DxhW1pos.js} +13 -13
  60. package/dist/assets/{DepositAccTransactionItem-C6_OrohL-BGfaLs6w.js → DepositAccTransactionItem-Da0GWYei-DZh1aBKG.js} +6 -6
  61. package/dist/assets/DepositAccTransactionListPage-Db90ITIq-B9ylpAgD.js +66 -0
  62. package/dist/assets/{DocumentSecurityBanner-Bo9Hgo-I-rtEtCt6Y.js → DocumentSecurityBanner-Bxg3ctYZ-hOyP50NE.js} +2 -2
  63. package/dist/assets/DomesticWireDetailsPage-DGcVKriv-H9iyT4_J.js +21 -0
  64. package/dist/assets/{DownloadOverlay-BoIyiJ9R-DsBfFiz4.js → DownloadOverlay-BdGiqnp7-B--FKXJU.js} +25 -25
  65. package/dist/assets/{DrawerPage-C_kxrXIc-DVV_RfYu.js → DrawerPage-DCfm1BVs-BnE3GKCd.js} +5 -5
  66. package/dist/assets/EditPeoplePage-CBPmCcoG-Dv-eYAXF.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-C-Lj-_YG-CD5iBKwa.js → EditReimbursementDetailPage-C-nYgUua-657t3H5o.js} +68 -68
  68. package/dist/assets/{EntityDetailPage-Cqkhzu9O-D4nSYNpc.js → EntityDetailPage-4HX_rHUf-CQIILZS8.js} +3 -3
  69. package/dist/assets/{EntitySummarySection-Dqgxknt6-BJXynL5O.js → EntitySummarySection-C9VeOBpT-CyjmmYl7.js} +3 -3
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CEsyeJ9u-BgjJamdE.js → ExpenseAutomationOverviewPage-8jTkscWa-CSL-Ff0N.js} +22 -22
  71. package/dist/assets/{ExpenseAutomationPage-DxpK2JR5-Bno6HNVc.js → ExpenseAutomationPage-D1wcc9GW-BnW2S6f_.js} +84 -84
  72. package/dist/assets/{ExpressPayPage-DBWJERD9-C99_7DYc.js → ExpressPayPage-Cj6cvMwQ-B3xsIydY.js} +12 -12
  73. package/dist/assets/FeaturePreviewPage-BBkfKvIu-BO0Ix0ac.js +11 -0
  74. package/dist/assets/{FollowStepsSection-BrJecw-e-DxiUX8Lf.js → FollowStepsSection-DjfnVH8N-DC94T1ld.js} +13 -13
  75. package/dist/assets/{GlobalReviewListPage-Duoi9mD_-xu3W8826.js → GlobalReviewListPage-CEOzc0We-Dzo-H4fB.js} +8 -8
  76. package/dist/assets/{HelpButton-C1djo0zO-CxYW3QWQ.js → HelpButton-BdhMFvtG-BQoUMZgM.js} +5 -5
  77. package/dist/assets/{InformationCardStack-BE5eaq-x-jnl5_r_P.js → InformationCardStack-DFOumIBr-DYp-Y1-6.js} +5 -5
  78. package/dist/assets/InsightsCardStack-rByhzgji-C_39DSFU.js +79 -0
  79. package/dist/assets/{InsightsSection-nzKuS0T9-DxBuHfNE.js → InsightsSection-jnWJ877y-B7dup9Hm.js} +5 -5
  80. package/dist/assets/{IntegrationsSettingsPage-45ETlpC6-Ceg3xdUn.js → IntegrationsSettingsPage-DF-jcHzr-CezJdw9j.js} +7 -7
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-B21X5YFS-DUJjwzMe.js → InternationalWireSwiftDetailsPage-BFMqW1oQ-DTpqOglD.js} +15 -15
  82. package/dist/assets/{InternationalWireVerificationPage-BzagdPaG-ETH-TFJ4.js → InternationalWireVerificationPage-Cq7swzrt-CjhvwwKs.js} +17 -17
  83. package/dist/assets/{InviteFormPage-BNdBP-Mm-DdF7yrct.js → InviteFormPage-DXl2sEn9-BCdDtuKU.js} +25 -25
  84. package/dist/assets/{InvitePageListView-ChzmK7Rt-CsxcBmQK.js → InvitePageListView-B5fRPcOg-CSGuFFZf.js} +51 -51
  85. package/dist/assets/InvitePeoplePage-DvGON1va-CZwxU8KK.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-B8o-l15n-DT5xRRC2.js → InvoiceUploadSection-opkVsXZH-CITMTH3B.js} +41 -41
  87. package/dist/assets/{IssueChargeCardPage-BW0cXQqh-Am6endI_.js → IssueChargeCardPage-CZU1qbHO-Bk0rsSk1.js} +27 -27
  88. package/dist/assets/{LabeledAddressValue-BioQUVCV-BQVyTN5W.js → LabeledAddressValue-CCd3y8zQ-iyUnGXzQ.js} +1 -1
  89. package/dist/assets/LabeledAddressValueField-XuFlx-oK-BwOm2urL.js +45 -0
  90. package/dist/assets/{LabeledControlledCheckBoxField-CGT7KsYZ-8Yk74ikH.js → LabeledControlledCheckBoxField-CCQn4-_S-DGlsZAic.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-nys9pbO0-Cdtj6tvs.js → LabeledCreatableSingleSelectField-uQKngCdt-D9uymIz_.js} +3 -3
  92. package/dist/assets/LabeledDocumentField-TFmz23mS-VXex-CEg.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-DWP9oUzM-Bq2gS2Tu.js → LabeledDropDownFormattedTextField-BrUNxsKy-CYES9RG5.js} +7 -7
  94. package/dist/assets/{LabeledText-QrjXGWwJ-CNRYgiQJ.js → LabeledText-ByqI7uq0-D8BGktgf.js} +3 -3
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BK9XCXKo-piBn824J.js → LabeledUserSingleSelectWithSubtitlesField-Dg1Lpwl0--1MhGerh.js} +17 -17
  96. package/dist/assets/{LabeledZeniRolesDropDownField-C2PAZOPW-BazOR2LB.js → LabeledZeniRolesDropDownField-DZL4GZtE-BNEsxcqO.js} +11 -11
  97. package/dist/assets/{LinkJETransactionPage-BF6-BdWE-DwavLRyr.js → LinkJETransactionPage-CJlBllrr-ETCcWTop.js} +8 -8
  98. package/dist/assets/{LowBalancePopup-ZZ8Ap8Ls-8KOv0WBL.js → LowBalancePopup-BEvuAR0Z-Kia1x8I_.js} +5 -5
  99. package/dist/assets/{MagicLinkACHDetailsPage-BDXiOwx_-CO5NrWbz.js → MagicLinkACHDetailsPage-DloX1GWg-CtJ6plz2.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-B1-CK91r-CLFCWolP.js → MagicLinkDomesticWireDetailsPage-DewjvM4v-DF6PmcFA.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-D2rnWzME-CH-1IkqQ.js → MagicLinkInternationalWireDetailsPage-CVhazlxQ-B8pL68gZ.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-dxBSlbub-ClJhOXum.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-CmTUPCA1-CdDbl1jW.js → MagicLinkTitleSection-d1edBt3w-BD8o8cwj.js} +4 -4
  104. package/dist/assets/MailingDetailsSection-CsK09X11-D22aceHc.js +21 -0
  105. package/dist/assets/{MeetingCalenderPopup-COpKcBhx-DUhr4aqa.js → MeetingCalenderPopup-MtSyJ1AS-Dyh9nazJ.js} +1 -1
  106. package/dist/assets/{Menu-frAXxk4e-CEl4TWuB.js → Menu-BV79l8xf-CtLHaQYM.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BtC6C9fL-Du0eSPRF.js → MyBankConnectionsSettingsPage-D-xDtURG-CDD3juRJ.js} +13 -13
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-tXIpyxdq-Be08cRIN.js → MyPendingActivationChargeCardListPage-VEhml0PW-BbFLOnd_.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BmMskLyK-BhR2LYzK.js → MyProfileSettingsPage-DPJ0fJdQ-HGd1_8K1.js} +8 -8
  110. package/dist/assets/{NavBarWithPicker-ByLynfu6-BwveajND.js → NavBarWithPicker-CuJe05iJ-CEMXAgd3.js} +6 -6
  111. package/dist/assets/{NavigationArrow-D5-YpdfE-BwY9x4L-.js → NavigationArrow-BwXNdvOg-DB9DQksO.js} +5 -5
  112. package/dist/assets/{NavigationDots-MA8SVlUT-xHbUxadi.js → NavigationDots-BQfoX9p0-BJMutEpY.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DtTW2Du8-DMQT2zFb.js → NewGlobalMerchantPage-IeE86L-X-BtZvif-9.js} +21 -21
  114. package/dist/assets/{NoDataChart-BdzVnx59-oKIht6u7.js → NoDataChart-C9yfE8vY-CyPn8PGK.js} +1 -1
  115. package/dist/assets/{NoDataTable-B4J5Ou18-Cw0Ivws_.js → NoDataTable-DF9QNT4a-B8P0Ebsk.js} +1 -1
  116. package/dist/assets/{NotFoundPage-BeAXQOme-CuhCQaCm.js → NotFoundPage-DSaizJve-BYRmXif6.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-CRZRet42-ChT5Efdt.js → NotificationSettingsPage-DeAeFHmj-AgKU0y_T.js} +13 -13
  118. package/dist/assets/{NotificationsListConfig-CkSDaMij-BWI9bnS_.js → NotificationsListConfig-DuzDckh--DIE08d6S.js} +1 -1
  119. package/dist/assets/{NotificationsPage-Dqe96fU8-B4GRmHU9.js → NotificationsPage-B7ZC7ezP-CzbzVwOm.js} +32 -32
  120. package/dist/assets/{OpExByVendorPage-CXtkN87m-9RF5RbBE.js → OpExByVendorPage-DzODetHf-C_mWOIaM.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-Cy_Jxf8N-Bv7YPFQu.js → OverlayContainerPage-GWXnlbZH-Bzp-AyLZ.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-DTOqkynU-DcIpR3TG.js → PandLWithForecastPage-FEi5USqF-Dh26joVS.js} +8 -8
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-C6WFeB3A-JhDc6t0k.js → PaymentAccountSetupBillingAddressSection-BbL4x5pQ-D9T2pc9O.js} +11 -11
  124. package/dist/assets/{PeoplePage-D-j114xg-BxamB_kT.js → PeoplePage-B35T31YZ-DeAagHOG.js} +1 -1
  125. package/dist/assets/PortfolioAllocationFormPage-D3FP_MRr-DXcXxyUV.js +207 -0
  126. package/dist/assets/{PortfolioDetails-Bbfo0XDo-CpIyByD0.js → PortfolioDetails-Dtz3YEPu-CLhPVP_M.js} +29 -29
  127. package/dist/assets/{ProductsCarousel-COUx0Xdj-C589g0zM.js → ProductsCarousel-DIlEuuqg-DDOJtugP.js} +6 -6
  128. package/dist/assets/{PromoBaseCards-DG1CAZvU-DDe9HUmw.js → PromoBaseCards-DTsaas8S-vBFc1f2h.js} +3 -3
  129. package/dist/assets/{QBOConnectionDialog-DLVcifji-0Jo7Zt8G.js → QBOConnectionDialog-Cvt38cmU-D0iq5FNX.js} +10 -10
  130. package/dist/assets/QBOSetupSection-Dijb03ZX-1HKzJLXv.js +79 -0
  131. package/dist/assets/ReimbursementApprovalRuleDetailPage-bkJIpwyU-pBLvNKjP.js +26 -0
  132. package/dist/assets/{ReimbursementApprovalRulesPage-CTk2aZMz-P7YlSIWb.js → ReimbursementApprovalRulesPage-BG8uMxNw-Cf6pCIHH.js} +8 -8
  133. package/dist/assets/{ReimbursementDetailPage-BofsP0W--3SXuCoLt.js → ReimbursementDetailPage-Cs7XeZrC-D-NQ4ltb.js} +17 -17
  134. package/dist/assets/ReimbursementPromoPage-CKITZNUc-2-Ea8pDZ.js +112 -0
  135. package/dist/assets/{ReimbursementSetUpPage-Em6S1wkj-DUaBVZlT.js → ReimbursementSetUpPage-DD5P181p-C0K4OEHu.js} +8 -8
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DpWChhvB-Bbi3QmlG.js → ReimbursementsBulkReviewDrawerPage-C0eORL7o-B8b5o1o8.js} +1 -1
  137. package/dist/assets/{ReloadCard-CZ1Ix5em-ntwCW2pN.js → ReloadCard-CZ4IXHy1-BJxA7jIu.js} +5 -5
  138. package/dist/assets/{ReportTableViewSelector-BRA3CT_O-5B_3yPmG.js → ReportTableViewSelector-Do0yQJxY-CNf50Tz7.js} +28 -28
  139. package/dist/assets/{ReportsPage-CauV3wnZ-JaeNla79.js → ReportsPage-BUi475EG-yOqvkhUn.js} +5 -5
  140. package/dist/assets/{RevenueChart-BeM_1hYw-BC40z0R8.js → RevenueChart-DPNqxQ4n-BN71k4Px.js} +12 -12
  141. package/dist/assets/{ReviewDetailsPage-C5xC8Cf1-BAevb1zN.js → ReviewDetailsPage-DTCC2C0D-CbWjRazt.js} +16 -16
  142. package/dist/assets/{ReviewOverlay-DdWa7GLG-BGKsJw6X.js → ReviewOverlay-CPN-RHG--Bk6qHS4b.js} +15 -15
  143. package/dist/assets/RoleWithToolTip-Bst2IdUy-DGhNj3An.js +22 -0
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BlhhW9A6-ttxCT2nP.js → ScheduleDetailsFixedAssetsPage-BSz5BdJ4-CLAcrRlD.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-BKWKZuAL-Dj0cWygj.js → ScheduleDetailsPage-DKVlaW9e-SKWttzgw.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-BzWPTqDM-6FAFWl-T.js → ScheduleSequenceTable-BhpHoReF-CFX3LJjF.js} +50 -50
  147. package/dist/assets/{ScreenRoutes-DjRy_uCy.js → ScreenRoutes-B4X7AN4H.js} +62 -62
  148. package/dist/assets/{SetUpAccountSection-Trj1x2HL-BZyG0FUR.js → SetUpAccountSection-Blh-Vipv-948X1LRE.js} +23 -23
  149. package/dist/assets/{SetUpDefaultSection-BQzNGjO7-C6ny-1cl.js → SetUpDefaultSection-DsyZbNsv-D0zBNq1O.js} +8 -8
  150. package/dist/assets/{SignIn-Duk9PNwU-XgHu7-OU.js → SignIn-DehOoUba-DOHewgw9.js} +19 -19
  151. package/dist/assets/{SignInScreen-BZwFN3GK.js → SignInScreen-CkgAQ_YN.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-CREdM633-X97fArWe.js → SpendManagementListViewPage-C23fDDXZ-BPWPXBga.js} +6 -6
  153. package/dist/assets/{SpendManagementPerTabPage-BZ6ISWXe--gdxlwsD.js → SpendManagementPerTabPage-Cx0sB3qO-wloMSaZU.js} +28 -28
  154. package/dist/assets/{SpendManagementSection-bMsztUap-ChI9xiC5.js → SpendManagementSection-DbZYpbtO-DS4pqXC3.js} +13 -13
  155. package/dist/assets/{SpendMgmtSetupAccountSection-Btdtp-ry-25hbeX41.js → SpendMgmtSetupAccountSection-BkUIdz9m-BSOUg3BU.js} +18 -18
  156. package/dist/assets/{StatementItem-XLqlrHIu-VUIrNJz9.js → StatementItem-BF8L0fc_-C244j_B_.js} +5 -5
  157. package/dist/assets/{StatementsPage-DWiXiOFU-DpX-5t-Y.js → StatementsPage-96e3ZbSU-D7usTGed.js} +4 -4
  158. package/dist/assets/{StatusSwitcher-D1XZ-pbx-cB_dyto4.js → StatusSwitcher-jwpQ49F7-D9kXIopT.js} +4 -4
  159. package/dist/assets/{SubTabSwitcher-Bt3F7ANv-HbYWozk_.js → SubTabSwitcher-B8H6McwL-DbChhvTl.js} +7 -7
  160. package/dist/assets/{SummaryCard-edbbHOmb-BEN1lpgF.js → SummaryCard-Bv4ja9yJ-CEGyY5M9.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-BhtJBdco-BwmkQiB4.js → TaskManagementPage-D7tD4WRl-CyzvnBh9.js} +26 -26
  162. package/dist/assets/{TimeRangeSwitcher-D9KzhRYO-CGt3UmvC.js → TimeRangeSwitcher-Cr-ObvZ9-_GLiJwhW.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-CbEHKZvd-BCN5TvqV.js → TimeframeSwitcher-YkFxZedG-D2Jl4z2_.js} +4 -4
  164. package/dist/assets/{TimeframeSwitcherWithToggle-Cb91RXpD-DUY2ERxI.js → TimeframeSwitcherWithToggle-4h9WX4z9-DcT4eGJv.js} +2 -2
  165. package/dist/assets/{TopExCard-DD9Rf9T6-CUD3JVc3.js → TopExCard-DtrsuLFD-CD31vD_h.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-DaDuwFrj-ClnsDrKm.js → TopExDetailPage-HMRdJt_a-CqlXXHAH.js} +16 -16
  167. package/dist/assets/{TransactionDetailPage-0fIW4o-6-BtL9d2ga.js → TransactionDetailPage-CkWEdpTW-DkF9a8kj.js} +34 -34
  168. package/dist/assets/{TransactionList-CLjBadiP-DaI1JPM6.js → TransactionList-8rOZr8BD-BFZ_UeU1.js} +8 -8
  169. package/dist/assets/{TransactionListBig-CwBxP1xB-Clk1cQcr.js → TransactionListBig-DGx1qy2c-Cj8rID58.js} +24 -24
  170. package/dist/assets/{TransactionListPage-S1nTM7Yy-BXDsYhyh.js → TransactionListPage-CnbufCaM-BnCVec09.js} +3 -3
  171. package/dist/assets/TransactionVendorDetailPage-UpZX_EgR-BhFMpvuw.js +80 -0
  172. package/dist/assets/{TransferDrawerPage-BJDNWagE-ClPD7-YE.js → TransferDrawerPage-cUyg27nq-BRj8U3av.js} +26 -26
  173. package/dist/assets/{TreasuryOverviewPage-DB-ZH19K-DqpiFB-5.js → TreasuryOverviewPage-DoPe6v4O-CCqccW1l.js} +31 -31
  174. package/dist/assets/{TreasuryPromoPage-3MwRPpCt-BfvkdVaO.js → TreasuryPromoPage-Db20FO_G-sfhrpc5P.js} +21 -21
  175. package/dist/assets/{TreasurySetupPage--G4JCzdh-DA6_HWAL.js → TreasurySetupPage-BoVhd65r-CwafywLn.js} +10 -10
  176. package/dist/assets/TreasuryStatementsPage-BONCF7O1-B0fw544j.js +58 -0
  177. package/dist/assets/TreasuryTaxLetterPage-NCZ0Y4yr-1T7-yG_S.js +58 -0
  178. package/dist/assets/{TreasuryTransferOrReviewPage-ByM1UIiU-Bl3BH8HM.js → TreasuryTransferOrReviewPage-DAmZboLO-20agXPX1.js} +44 -44
  179. package/dist/assets/{TrendChart-B0CS3MXT-D4ZaQVdh.js → TrendChart-DQXhBbqy-BDomlWCz.js} +3 -3
  180. package/dist/assets/{TrendWithTransactions-D4OAA6yK-CZGys78m.js → TrendWithTransactions-Du-a-c_9-BQa8Yj73.js} +9 -9
  181. package/dist/assets/{UncategorizedAccountsMappingPage-C6jaWqrE-C-92ar8F.js → UncategorizedAccountsMappingPage-mSPC4LpU-BFboIJY0.js} +5 -5
  182. package/dist/assets/{UnitIntegrationPage-5LOvIFvr-BluS5BB9.js → UnitIntegrationPage-B5O9G4QH-D5ADrdli.js} +5 -5
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-CLQLrn0v-DY-77k9g.js → UploadAdditionalDocumentOverlay-CnjzAGYo-LBzsfon2.js} +2 -2
  184. package/dist/assets/{Vendor2FAPopup-BOl520xa-Dt6F8E1q.js → Vendor2FAPopup-CYcCB8tr-CXCRP0gB.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-B5jKUOjo-B4yUV9Ye.js → VendorACHDetailsPage-C6EuQBcH-TUoKo8Rz.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-B0GRXPKg-CA80qYWU.js → VendorDetailPage-CnSXWVCg-1hnRc8cc.js} +15 -15
  187. package/dist/assets/{VendorDomesticWireDetailsPage-CeI3QihK-B8yONSic.js → VendorDomesticWireDetailsPage-CVTkzHFB-BV1I21DW.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-aNGSdZBf-CyZQ-IxR.js → VendorFiling1099EditablePage-TJb9mpk0-CoXUKsdg.js} +11 -11
  189. package/dist/assets/{VendorFirstReviewPage-CjwnZLcm-Cs4x3rcX.js → VendorFirstReviewPage-gBLVMddY-CjxHy67B.js} +40 -40
  190. package/dist/assets/{VendorInternationalWireDetailsPage-w-46Xxg--Cvm17HTp.js → VendorInternationalWireDetailsPage-Bhm7j6HC-DsFGzuk8.js} +15 -15
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C5dogij9-Dga7zQTh.js → VendorInternationalWireSwiftDetailsPage-MgN7VFET-DYSQMIco.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-DBYoP6us-DpK6bEzn.js → VendorsAccountsSection-Cn-8Yemv-Ba4x1KCB.js} +8 -8
  193. package/dist/assets/{WarningsDrawerPage-CZcR7kH4-CIXMQAfX.js → WarningsDrawerPage-Cc_Rty0A-C8AX9SCt.js} +22 -22
  194. package/dist/assets/{ZeniAccountDetailPage-C-NQEE2--BEYCTo6P.js → ZeniAccountDetailPage-BU2TTiDP-g3X34Mnd.js} +28 -28
  195. package/dist/assets/{ZeniAccountListViewPage-Cb8Ptf-w-pA8-UWgA.js → ZeniAccountListViewPage-DbcnkYvX-BflkDx8D.js} +20 -20
  196. package/dist/assets/ZeniAccountNavBarPieces-CeJHAl4O-DAWPUiSq.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-D5ihjbrM-CXHTXM3S.js → ZeniAccountPromoPage-D-5ArrRO-D5w2UaAO.js} +29 -29
  198. package/dist/assets/{ZeniAccountSetupPage-BRxz_tnh-CYEsC3w5.js → ZeniAccountSetupPage-DXYR0Ipo-B3amHFDO.js} +5 -5
  199. package/dist/assets/{ZeniCopyright-Bi82glrb-BRrA0AqO.js → ZeniCopyright-DPd1ifIT-DgcZx02q.js} +1 -1
  200. package/dist/assets/ZeniTransferAmountSlider-di46G5TN-DYM1NSO4.js +63 -0
  201. package/dist/assets/{analyticsHelper-pUiXW9f6.js → analyticsHelper-3e_AZjy7.js} +1 -1
  202. package/dist/assets/{analyticsHelper-D3DK7bgU-D0sMi45U.js → analyticsHelper-DrNmU0vn-Br27aA8M.js} +1 -1
  203. package/dist/assets/{chartTypes-DJY-6KK0-SGOoEyJZ.js → chartTypes-YTQv3tre-G_MCNcTV.js} +1 -1
  204. package/dist/assets/{commonDimensions-DRK1vfDX-BlL6juoL.js → commonDimensions-BtmBVXgZ-C8cgTp9k.js} +1 -1
  205. package/dist/assets/{detailCommon-6K-6m9pv-1H1N15Tv.js → detailCommon-hHyz3hj3-Ch-6FqzV.js} +9 -9
  206. package/dist/assets/{downloadPdf-DAA4T-qo-DGFaMd6S.js → downloadPdf-CDvgLzWC-CPQqckVY.js} +1 -1
  207. package/dist/assets/{index-CiKxqrxk.js → index-Dhj1_7g2.js} +4147 -4247
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-BAlOrI07-Bu5AjmSW.js → mapLoadingInProgressToTreeNode-BfoqmoAq-CfCX7DmO.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bk-EXs-E-CmXnWtv4.js → mapSectionWithAcOnlyToTreeNode-BjtxR9iQ-iXp5bvzM.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-Cxd9BEJr-Bo_chRJz.js → mapSpacerToTreeNode-D8o529OP-D7qZ7B73.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cf8fsAZJ-BkPpGHJf.js → mapTimeframeBalancesToTreeNode-BirMnIzY-BLeanjGG.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-BzFUtqqU-BVi3Z0h1.js → mapTimeframeBalancesToTreeNode-NA69l84M-B1SJFT_Z.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CZMzZg1q-DwuR5tyN.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BCqRt8GN-DK4OBREu.js} +1 -1
  214. package/dist/assets/{play-icon-DY_hSiAf-56dnsDLb.js → play-icon-DyIc5aGx-BmGFKkF-.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-BaqBVqJ_-CGRkqNDS.js → toCOABalancesWithID-2jQJLb8S-BXYka2hz.js} +1 -1
  216. package/dist/assets/{toChartData-7MYPev1U-_Gg3mLDi.js → toChartData-Dsjd8dGe-Igu99-cv.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-CDhLDRLr-COVWjAtV.js → treasuryColorHelper-EG8VpBia-BOX0NA6c.js} +1 -1
  218. package/dist/assets/{uploadAttachment-DqCoxBNU-m18_9GhV.js → uploadAttachment-CVUM4FN--B82Va_J6.js} +24 -24
  219. package/dist/assets/{uploadReceipts-CU1mDxNv-D_CYTfGX.js → uploadReceipts-D80JLNY4-Cvp7FmYB.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/ACHDetailsPage-D6-Uk4xr-jFv1GnoI.js +0 -21
  223. package/dist/assets/ArAgingDetailPage-DD4M5tUJ-BlYSsYlo.js +0 -46
  224. package/dist/assets/ChargeCardUtils-Bivw83fy-DoKh_ipP.js +0 -1
  225. package/dist/assets/CheckDepositDrawerPage-SpI62oU7-ay-ttmIe.js +0 -206
  226. package/dist/assets/CompleteProfile-C1PIn6EM-Ir6BV2zK.js +0 -52
  227. package/dist/assets/CurrencySelectField-DS-pGcuE-BGqiVYG1.js +0 -139
  228. package/dist/assets/CustomerOnboardingContainerPage-Lh0xH_Pl-BrVAUFsT.js +0 -1
  229. package/dist/assets/DepositAccTransactionListPage-Cxvs7tMg-CZX95_vZ.js +0 -66
  230. package/dist/assets/DomesticWireDetailsPage-DzKlJFvy-C-BExS4G.js +0 -21
  231. package/dist/assets/EditPeoplePage-auUWC3gB-eVdswl0e.js +0 -55
  232. package/dist/assets/FeaturePreviewPage-CwGJVCMk-C88NXisE.js +0 -11
  233. package/dist/assets/InsightsCardStack-EzAsNm_U-DOxieK32.js +0 -79
  234. package/dist/assets/InvitePeoplePage-DgqE2Y-0-CrbUVUxy.js +0 -12
  235. package/dist/assets/LabeledAddressValueField-Cw-p18du-ncMTWBsz.js +0 -45
  236. package/dist/assets/LabeledDocumentField-Y6TKpyZ8-CxE5GTn1.js +0 -41
  237. package/dist/assets/MagicLinkSuccessPage-IHajRicG-BibYk803.js +0 -31
  238. package/dist/assets/MailingDetailsSection-AiehjqI1-DltTuNAp.js +0 -21
  239. package/dist/assets/PortfolioAllocationFormPage-C4XzSjzr-Ckb17xct.js +0 -207
  240. package/dist/assets/QBOSetupSection-BeRZZ-Q_-sC98B-t_.js +0 -79
  241. package/dist/assets/ReimbursementApprovalRuleDetailPage-CrbiufS3-CDL6aFMg.js +0 -26
  242. package/dist/assets/ReimbursementPromoPage-CA2cUBsx-DTv3uM9b.js +0 -112
  243. package/dist/assets/RoleWithToolTip-BP8MTZdU-DnEd53cN.js +0 -22
  244. package/dist/assets/TransactionVendorDetailPage-CTTTAais-D9_4MDSM.js +0 -80
  245. package/dist/assets/TreasuryStatementsPage-DBykLGfz-C9eS4qdh.js +0 -58
  246. package/dist/assets/TreasuryTaxLetterPage-DgbrzE9u-BEbCeRNe.js +0 -58
  247. package/dist/assets/VerifyDevice-C-ZVbaIJ-BKz0GUVP.js +0 -67
  248. package/dist/assets/ZeniAccountNavBarPieces-DX2iXF2E-BAAXHmSZ.js +0 -14
  249. package/dist/assets/ZeniTransferAmountSlider-B4d4bp7D-Bp4AH9yD.js +0 -63
@@ -1,4 +1,4 @@
1
- import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We,bS as _e,fv as Pe,o as a,fE as bl,ci as qe,c9 as ee,cb as ce,cf as Me,l as Le,cB as xl,cz as wl,cd as Ue,cc as De,fF as Te,fG as jl,fd as $l,fc as ke,cg as ge,ch as vl,d as Ne,f0 as He,Q as Ge,b4 as Xe,e_ as Qe,n as Ce,fu as Ye,v as ye,r as Il,b1 as Sl,s as ae,dj as Ol,fH as Ll,M as Dl,fI as Fl,b2 as be,$ as _l,ct as Pl,b0 as Nl,a$ as Cl}from"./index-CiKxqrxk.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{W as Fe}from"./LabeledAddressValueField-Cw-p18du-ncMTWBsz.js";import{D as El}from"./LabeledCreatableSingleSelectField-nys9pbO0-Cdtj6tvs.js";import{Y as Ie}from"./LabeledDocumentField-Y6TKpyZ8-CxE5GTn1.js";import{P as Ke}from"./DocumentSecurityBanner-Bo9Hgo-I-rtEtCt6Y.js";const Je=({text:e})=>l.jsx(Tl,{children:l.jsx(Vl,{children:e})}),Vl=t(Fl)`
1
+ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP as _e,ft as Ce,o as a,fC as bl,cf as We,c6 as ee,c8 as ce,cc as Me,l as Le,cy as xl,cw as wl,ca as Ue,c9 as De,fD as Te,fE as jl,fb as vl,fa as ke,cd as ge,ce as $l,g as Ne,e_ as He,Q as Ge,b4 as Ye,eY as Ze,e as Pe,fs as Qe,f as ye,p as Il,b1 as Sl,q as ae,dg as Ol,fF as Ll,m as Dl,fG as Fl,b2 as be,v as _l,cq as Cl,b0 as Nl,a$ as Pl}from"./index-Dhj1_7g2.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{W as Fe}from"./LabeledAddressValueField-XuFlx-oK-BwOm2urL.js";import{D as El}from"./LabeledCreatableSingleSelectField-uQKngCdt-D9uymIz_.js";import{Y as Ie}from"./LabeledDocumentField-TFmz23mS-VXex-CEg.js";import{P as Xe}from"./DocumentSecurityBanner-Bxg3ctYZ-hOyP50NE.js";const Je=({text:e})=>l.jsx(Tl,{children:l.jsx(Vl,{children:e})}),Vl=t(Fl)`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  color: ${e=>e.theme.colors.hero};
@@ -8,7 +8,7 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
8
8
  align-items: flex-end;
9
9
  margin-left: ${a.sp2};
10
10
  margin-top: ${a.sp1};
11
- `,le={labelWidth:new P(115,145,155),mediumLabelWidth:new P(140,160,170),largeLabelWidth:new P(150,210,244),largeLabelDocumentWidth:new P(150,210,252),paddingBottom:new P(ae[3],ae[2]),containerRowGap:new P(12,ae[3])},kl={title:new Ge("standardMedium","largeMedium")},Al=ue.getLocalizedStrings(),{dateFormat:{visual:zl},commonSetUp:Bl,companyPassport:Rl,common:{documents:Se,optional:Wl}}=Al,o=Bl.businessVerification,ql=o.sourceOfFundOptions,Ml=M.forwardRef(({fileProps:e,productType:p,allIndustries:u,companyDetails:m,connectedAccountProvider:N,businessVerificationProps:g,isDisabled:n,style:U,sectionId:h,showInfoTooltip:oe=!0,isCompleted:te=!1,showCompletedIcon:ie=!1,showTreasuryFields:H=!1,sectionHeader:G,optionalFields:s=[],onCompanyAddressClick:X,onRegisteredAddressClick:V},re)=>{const f=ze(),D=le.labelWidth.value(f),F=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),z=le.largeLabelDocumentWidth.value(f),y=o.productType[p],Q=m?.companyFiles.find(d=>d.documentType==="certificate_of_incorporation"),Y=m?.companyFiles.find(d=>d.documentType==="tax_ein"),c=m?.companyFiles.find(d=>d.documentType==="company_formation_document"),j=m?.companyDescription,B=m?.companyLegalName,se=m?.website,W=m?.typeOfIncorporation,K=m?.incDate,L=m?.companyIndustry,me=m?.phone,J=m?.taxIdOrEIN,Z=m?.primaryContactLocalData,R=m?.deleteFileStatusById??{},ne=m?.updateFileStatusById??{},xe=m?.addressStatus?.addressToCreate,q=m?.registeredAddressStatus?.addressToCreate,[C,x]=M.useState(!1),[S,T]=M.useState(!1),_=d=>u.find(je=>je.code===d)?.name??d,we=d=>ql[d]??d;return l.jsxs(Ul,{style:U,ref:re,windowSize:f,children:[l.jsx(Hl,{children:l.jsxs(ea,{children:[l.jsxs(Xl,{children:[ie===!0?l.jsx(Ql,{children:te?l.jsx(Yl,{}):l.jsx(Kl,{})}):null,l.jsx(Gl,{windowSize:f,children:G??o.confirmCompanyDetails})]}),oe?l.jsx(Jl,{children:l.jsx(Re,{variant:"small-description",display:"flex",maxWidth:"280px",data:o.confirmCompanyDetailsTooltip,placement:f==="small"||p==="onboarding"?"bottom":"right",children:l.jsx(Zl,{})})}):null,p==="onboarding"&&G!=null?l.jsx(Je,{text:Wl}):null,g?.companyVerificationStatus!=null?l.jsx(aa,{tagTitle:g.companyVerificationStatus.name,textColor:We(g.companyVerificationStatus.code),showLoader:g?.isRefreshingViewInBackground}):null]})}),l.jsxs(la,{children:[l.jsx(Ke,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyLegalNameLabel,width:b},text:{type:"text",name:$(h,"companyLegalName"),placeholder:o.companyLegalNamePlaceholder,defaultValue:B,options:{required:n==null&&s.includes("companyLegalName")===!1}},additionalInfoLabel:o.companyLegalNameError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyDescriptionLabel,width:F},text:{type:"text",name:$(h,"companyDescription"),placeholder:o.addProductPlaceholder,defaultValue:j,options:{required:n==null&&s.includes("companyDescription")===!1}},additionalInfoLabel:o.companyDescriptionError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(Fe,{isDisabled:n,label:{label:o.companyAddressLabel,width:F},addressValueField:{name:$(h,"companyAddress"),placeholder:o.companyAddressPlaceholder,defaultValue:xe,registerOptions:{validate:d=>s.includes("companyAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{X?.("company_address")}},additionalInfoLabel:o.companyAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(v,{}),l.jsx(Fe,{isDisabled:n,label:{label:o.registeredAddressLabel,width:F},addressValueField:{name:$(h,"registeredAddress"),placeholder:o.registeredAddressPlaceholder,defaultValue:q,registerOptions:{validate:d=>s.includes("registeredAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{V?.("company_registered_address")}},additionalInfoLabel:o.registeredAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(v,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyWebsiteLabel,width:D},text:{type:"url",name:$(h,"companyWebsite"),placeholder:o.companyWebsitePlaceholder,defaultValue:se?.toString()??"",options:{required:n==null&&s.includes("companyWebsite")===!1}},additionalInfoLabel:o.companyWebsiteError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(De,{label:{label:o.companyIndustryLabel,width:D},singleSelectField:{singleSelect:{name:$(h,"companyIndustry"),placeholder:o.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:_,isDisabled:n,showTickMark:!1},defaultValue:{selectedOption:L,allOptions:u?.map(d=>d.code)??[]},registerOptions:{required:n==null&&s.includes("companyIndustry")===!1,validate:d=>s.includes("companyIndustry")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.companyIndustryError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(El,{label:{label:o.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:$(h,"typeOfIncorporation"),placeholder:o.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:W,allOptions:Rl.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&N==="unit",validate:d=>s.includes("typeOfIncorporation")===!1?!(n==null&&!d?.selectedOption):!0}},errorInfoLabel:o.companyTypeOfIncorporationError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(Me,{isDisabled:n,label:{label:o.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(f)},dateField:{name:$(h,"incDate"),placeholder:o.companyIncDatePlaceholder,defaultValue:K,dateFormat:zl.defaultInput,maxDate:Le.dateNow(),minDate:Le.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:n==null&&s.includes("incDate")===!1}},additionalInfoLabel:o.companyIncDateError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(Ue,{isDisabled:n,label:{label:o.companyPhoneLabel,width:D},text:{name:$(h,"companyPhone"),placeholder:ce(o.companyPhoneLabel),defaultValue:me,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:o.companyPhoneError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(qe,{isDisabled:n,label:{label:o.companyPrimaryContactNameLabel,width:b},nameField:{name:$(h,"primaryContactName"),placeHolder:{firstName:o.firstNamePlaceholder,lastName:o.lastNamePlaceholder,name:o.namePlaceholder},defaultValue:{firstName:Z?.firstName??"",lastName:Z?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:d=>!!d||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:o.companyPrimaryContactNameError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:$(h,"primaryContactEmail"),placeholder:o.companyPrimaryContactEmailPlaceholder,defaultValue:Z?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:o.companyPrimaryContactEmailError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyTaxIdLabel,width:D},text:{type:"text",name:$(h,"companyTaxId"),placeholder:o.companyTaxIdPlaceholder,defaultValue:J,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:vl},autoComplete:"new-password"},additionalInfoLabel:o.companyTaxIdError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(Ie,{name:$(h,"certificateOfIncorporation"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:R,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.certificateOfIncorporation,width:z},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:Q,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("certificateOfIncorporation")===!1&&N==="unit"},additionalInfoLabel:o.certOfIncopDocumentError.replace("_product_type_",y),hasError:C,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>x(d)}),C||!(n!=null||Q!=null)?l.jsx(Oe,{windowSize:f,isError:C,children:Se.formatDocumentText10MB}):null,l.jsx(v,{}),l.jsx(Ie,{name:$(h,"ein"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:R,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.einDocument,width:z},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:Y,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("ein")===!1},additionalInfoLabel:o.einDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||Y!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null,l.jsx(v,{}),H===!0?l.jsxs(l.Fragment,{children:[l.jsx(De,{label:{label:o.sourceOfFundsLabel,width:D},singleSelectField:{singleSelect:{name:$(h,"sourceOfFunds"),placeholder:o.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:we,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:m?.sourceOfFunds,allOptions:Object.keys(o.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:d=>s.includes("sourceOfFunds")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.sourceOfFundsError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(Ie,{name:$(h,"formationDocument"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:R,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.formationDocumentLabel,width:z},filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},file:c,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("formationDocument")===!1},additionalInfoLabel:o.formationDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||c!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null]}):null]})]})});Ml.displayName="Company Details Section";const $=(e,p)=>`${e}.${p}`,Ul=t.div`
11
+ `,le={labelWidth:new C(115,145,155),mediumLabelWidth:new C(140,160,170),largeLabelWidth:new C(150,210,244),largeLabelDocumentWidth:new C(150,210,252),paddingBottom:new C(ae[3],ae[2]),containerRowGap:new C(12,ae[3])},kl={title:new Ge("standardMedium","largeMedium")},Al=ue.getLocalizedStrings(),{dateFormat:{visual:zl},commonSetUp:Rl,companyPassport:Bl,common:{documents:Se,optional:ql}}=Al,o=Rl.businessVerification,Wl=o.sourceOfFundOptions,Ml=M.forwardRef(({fileProps:e,productType:p,allIndustries:u,companyDetails:m,connectedAccountProvider:N,businessVerificationProps:g,isDisabled:n,style:U,sectionId:h,showInfoTooltip:oe=!0,isCompleted:te=!1,showCompletedIcon:ie=!1,showTreasuryFields:H=!1,sectionHeader:G,optionalFields:s=[],onCompanyAddressClick:Y,onRegisteredAddressClick:V},re)=>{const f=ze(),D=le.labelWidth.value(f),F=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),z=le.largeLabelDocumentWidth.value(f),y=o.productType[p],Z=m?.companyFiles.find(d=>d.documentType==="certificate_of_incorporation"),Q=m?.companyFiles.find(d=>d.documentType==="tax_ein"),c=m?.companyFiles.find(d=>d.documentType==="company_formation_document"),j=m?.companyDescription,R=m?.companyLegalName,se=m?.website,q=m?.typeOfIncorporation,X=m?.incDate,L=m?.companyIndustry,me=m?.phone,J=m?.taxIdOrEIN,K=m?.primaryContactLocalData,B=m?.deleteFileStatusById??{},ne=m?.updateFileStatusById??{},xe=m?.addressStatus?.addressToCreate,W=m?.registeredAddressStatus?.addressToCreate,[P,x]=M.useState(!1),[S,T]=M.useState(!1),_=d=>u.find(je=>je.code===d)?.name??d,we=d=>Wl[d]??d;return l.jsxs(Ul,{style:U,ref:re,windowSize:f,children:[l.jsx(Hl,{children:l.jsxs(ea,{children:[l.jsxs(Yl,{children:[ie===!0?l.jsx(Zl,{children:te?l.jsx(Ql,{}):l.jsx(Xl,{})}):null,l.jsx(Gl,{windowSize:f,children:G??o.confirmCompanyDetails})]}),oe?l.jsx(Jl,{children:l.jsx(Be,{variant:"small-description",display:"flex",maxWidth:"280px",data:o.confirmCompanyDetailsTooltip,placement:f==="small"||p==="onboarding"?"bottom":"right",children:l.jsx(Kl,{})})}):null,p==="onboarding"&&G!=null?l.jsx(Je,{text:ql}):null,g?.companyVerificationStatus!=null?l.jsx(aa,{tagTitle:g.companyVerificationStatus.name,textColor:qe(g.companyVerificationStatus.code),showLoader:g?.isRefreshingViewInBackground}):null]})}),l.jsxs(la,{children:[l.jsx(Xe,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyLegalNameLabel,width:b},text:{type:"text",name:v(h,"companyLegalName"),placeholder:o.companyLegalNamePlaceholder,defaultValue:R,options:{required:n==null&&s.includes("companyLegalName")===!1}},additionalInfoLabel:o.companyLegalNameError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyDescriptionLabel,width:F},text:{type:"text",name:v(h,"companyDescription"),placeholder:o.addProductPlaceholder,defaultValue:j,options:{required:n==null&&s.includes("companyDescription")===!1}},additionalInfoLabel:o.companyDescriptionError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Fe,{isDisabled:n,label:{label:o.companyAddressLabel,width:F},addressValueField:{name:v(h,"companyAddress"),placeholder:o.companyAddressPlaceholder,defaultValue:xe,registerOptions:{validate:d=>s.includes("companyAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{Y?.("company_address")}},additionalInfoLabel:o.companyAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx($,{}),l.jsx(Fe,{isDisabled:n,label:{label:o.registeredAddressLabel,width:F},addressValueField:{name:v(h,"registeredAddress"),placeholder:o.registeredAddressPlaceholder,defaultValue:W,registerOptions:{validate:d=>s.includes("registeredAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{V?.("company_registered_address")}},additionalInfoLabel:o.registeredAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyWebsiteLabel,width:D},text:{type:"url",name:v(h,"companyWebsite"),placeholder:o.companyWebsitePlaceholder,defaultValue:se?.toString()??"",options:{required:n==null&&s.includes("companyWebsite")===!1}},additionalInfoLabel:o.companyWebsiteError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(De,{label:{label:o.companyIndustryLabel,width:D},singleSelectField:{singleSelect:{name:v(h,"companyIndustry"),placeholder:o.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:_,isDisabled:n,showTickMark:!1},defaultValue:{selectedOption:L,allOptions:u?.map(d=>d.code)??[]},registerOptions:{required:n==null&&s.includes("companyIndustry")===!1,validate:d=>s.includes("companyIndustry")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.companyIndustryError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(El,{label:{label:o.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:v(h,"typeOfIncorporation"),placeholder:o.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:q,allOptions:Bl.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&N==="unit",validate:d=>s.includes("typeOfIncorporation")===!1?!(n==null&&!d?.selectedOption):!0}},errorInfoLabel:o.companyTypeOfIncorporationError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Me,{isDisabled:n,label:{label:o.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(f)},dateField:{name:v(h,"incDate"),placeholder:o.companyIncDatePlaceholder,defaultValue:X,dateFormat:zl.defaultInput,maxDate:Le.dateNow(),minDate:Le.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:n==null&&s.includes("incDate")===!1}},additionalInfoLabel:o.companyIncDateError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Ue,{isDisabled:n,label:{label:o.companyPhoneLabel,width:D},text:{name:v(h,"companyPhone"),placeholder:ce(o.companyPhoneLabel),defaultValue:me,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:o.companyPhoneError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(We,{isDisabled:n,label:{label:o.companyPrimaryContactNameLabel,width:b},nameField:{name:v(h,"primaryContactName"),placeHolder:{firstName:o.firstNamePlaceholder,lastName:o.lastNamePlaceholder,name:o.namePlaceholder},defaultValue:{firstName:K?.firstName??"",lastName:K?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:d=>!!d||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:o.companyPrimaryContactNameError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:v(h,"primaryContactEmail"),placeholder:o.companyPrimaryContactEmailPlaceholder,defaultValue:K?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:o.companyPrimaryContactEmailError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyTaxIdLabel,width:D},text:{type:"text",name:v(h,"companyTaxId"),placeholder:o.companyTaxIdPlaceholder,defaultValue:J,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:$l},autoComplete:"new-password"},additionalInfoLabel:o.companyTaxIdError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Ie,{name:v(h,"certificateOfIncorporation"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.certificateOfIncorporation,width:z},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:Z,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("certificateOfIncorporation")===!1&&N==="unit"},additionalInfoLabel:o.certOfIncopDocumentError.replace("_product_type_",y),hasError:P,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>x(d)}),P||!(n!=null||Z!=null)?l.jsx(Oe,{windowSize:f,isError:P,children:Se.formatDocumentText10MB}):null,l.jsx($,{}),l.jsx(Ie,{name:v(h,"ein"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.einDocument,width:z},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:Q,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("ein")===!1},additionalInfoLabel:o.einDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||Q!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null,l.jsx($,{}),H===!0?l.jsxs(l.Fragment,{children:[l.jsx(De,{label:{label:o.sourceOfFundsLabel,width:D},singleSelectField:{singleSelect:{name:v(h,"sourceOfFunds"),placeholder:o.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:we,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:m?.sourceOfFunds,allOptions:Object.keys(o.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:d=>s.includes("sourceOfFunds")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.sourceOfFundsError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Ie,{name:v(h,"formationDocument"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.formationDocumentLabel,width:z},filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},file:c,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("formationDocument")===!1},additionalInfoLabel:o.formationDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||c!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null]}):null]})]})});Ml.displayName="Company Details Section";const v=(e,p)=>`${e}.${p}`,Ul=t.div`
12
12
  display: flex;
13
13
  flex-direction: column;
14
14
  row-gap: ${e=>le.containerRowGap.valuePx(e.windowSize)};
@@ -27,16 +27,16 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
27
27
  align-items: center;
28
28
  color: ${e=>e.theme.colors.primary};
29
29
  padding-right: ${a.sp2};
30
- `,Xl=t.div`
30
+ `,Yl=t.div`
31
31
  display: flex;
32
32
  align-items: center;
33
- `,Ql=t.div`
33
+ `,Zl=t.div`
34
34
  margin-right: ${a.sp2};
35
- `,Yl=t(He)`
35
+ `,Ql=t(He)`
36
36
  width: ${a.sp3};
37
37
  height: ${a.sp3};
38
38
  color: ${Ne.success};
39
- `,Kl=t.div`
39
+ `,Xl=t.div`
40
40
  height: 14px;
41
41
  width: 14px;
42
42
  border: 1px solid ${e=>e.theme.colors.primary};
@@ -47,7 +47,7 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
47
47
  &:hover {
48
48
  color: ${e=>e.theme.colors.primary};
49
49
  }
50
- `,Zl=t(Xe)`
50
+ `,Kl=t(Ye)`
51
51
  width: ${a.sp3};
52
52
  height: ${a.sp3};
53
53
  `,ea=t.div`
@@ -60,13 +60,13 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
60
60
  border: 1px solid ${e=>e.theme.colors.grey3};
61
61
  box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
62
62
  border-radius: ${a.sp2};
63
- `,v=t.div`
63
+ `,$=t.div`
64
64
  display: flex;
65
65
  flex: 1;
66
66
  background-color: ${e=>e.theme.colors.grey3};
67
67
  min-height: 1px;
68
68
  max-height: 1px;
69
- `,aa=t(Qe)`
69
+ `,aa=t(Ze)`
70
70
  width: max-content;
71
71
  margin-left: ${a.sp3};
72
72
  `,oa=t.div`
@@ -74,7 +74,7 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
74
74
  display: flex;
75
75
  align-items: center;
76
76
  justify-content: flex-end;
77
- `,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:N,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:U,backgroundColor:h,titleTextAlignment:oe,selectedOptionColor:te,customStyleConfig:ie}={},customization:{placeholderLabel:H}={},showAddUser:G=!0}){const s=Be(),[X,V]=M.useState(!1),re=ta(e).sort((c,j)=>c.label.localeCompare(j.label)),f=u!=null?ia(u):void 0,D=N??s.colors.grey5,F=h??s.colors.grey5,b=g??s.colors.grey3,z=n??ye.smallRegular.cssObject,y=U??z,Q={control:(c,j)=>({...c,border:0,height:"100%",backgroundColor:F,fill:j.selectProps.menuIsOpen===!0?s.colors.primary:s.colors.grey1,boxShadow:F,">div:last-child":{color:X?s.colors.primary:s.colors.grey1},":active":{backgroundColor:F},":hover":{fill:s.colors.primary,">div:last-child":{color:s.colors.primary}},minHeight:"auto",cursor:"pointer",flexDirection:"column",">div>div>svg":{color:s.colors.grey1,">path":{color:s.colors.grey5,fill:"currentcolor"}}}),container:c=>({...c,backgroundColor:F,height:"100%"}),singleValue:c=>({...c,margin:0,minWidth:void 0,backgroundColor:void 0,">div":{borderRadius:0,padding:a.sp0,borderLeftStyle:"none",borderWidth:1,borderColor:s.colors.grey1,color:"unset"},">div>div>div>div:last-child":{display:"block",...ye.standardRegular.cssObject}}),valueContainer:c=>({...c,maxWidth:"100%",cursor:"pointer",height:"100%",...y,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:oe??"flex-start",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",">div":{width:"inherit"}}),menu:(c,j)=>({...c,backgroundColor:D,borderRadius:ae[1],boxShadow:`${a.sp0} 2px ${a.sp2} ${s.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:3,width:236,margin:`6px ${a.sp0}`,right:"-11%",">div":{flexDirection:"column",maxHeight:200,overflowY:"auto",borderRadius:a.sp1,padding:`${a.sp1} ${a.sp0}`,">div":{width:"-webkit-fill-available"}},...ie?.menu?.(c,j)}),menuList:c=>({...c,borderRadius:ae[1]}),placeholder:(c,j)=>({...c,margin:0,width:"100%",color:j.isFocused?s.colors.primary:"currentColor",paddingRight:a.sp2,...ye.standardRegular.cssObject,">div>div>svg>circle":{fill:s.colors.grey1}}),noOptionsMessage:c=>({...c,...ye.smallRegular.cssObject,padding:`10px ${a.sp3} 9px ${a.sp3}`,color:s.colors.hero}),option:(c,{isDisabled:j,isSelected:B,isFocused:se})=>({...c,...z,color:B?te??s.colors.champion:s.colors.hero,backgroundColor:B?b:se?s.colors.background:D,cursor:j?"not-allowed":B?"default":"pointer","svg:nth-of-type(2)":{display:"none"},":hover":{backgroundColor:s.colors.background,color:s.colors.primary},"& label":{paddingRight:"10px",cursor:j?"not-allowed":B?"inherit":"pointer"},">div>div>div:first-of-type":{display:"flex"}}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({}),indicatorsContainer:()=>({height:"100%",display:"flex",alignItems:"center"})},Y=({children:c,...j})=>l.jsxs(be.ValueContainer,{...j,children:[c,G===!0?l.jsxs($a,{hasSelectedUser:!!u,onClick:()=>{p(void 0),V(!1)},children:[l.jsx(ua,{}),l.jsx("div",{children:H??"Add User"})]}):null]});return l.jsx(Il,{onClickAway:()=>{V(!1)},children:l.jsx(oa,{children:l.jsx(Sl,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:X,menuShouldScrollIntoView:!1,defaultValue:f,value:f,noOptionsMessage:()=>ue.getLocalizedStrings().cockpit.management.noPerson,onInputChange:c=>{c!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx(na,{children:l.jsx("div",{children:H??"Select..."})}),components:{Option:ya,DropdownIndicator:va,IndicatorSeparator:Ia,SingleValue:wa,ValueContainer:ja,MenuList:Y},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:Q,options:re,isDisabled:m,onChange:c=>{p(c),V(!1)},isClearable:!1,isSearchable:!1},Ol())})})}const sa=t.div``,na=t.div`
77
+ `,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:N,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:U,backgroundColor:h,titleTextAlignment:oe,selectedOptionColor:te,customStyleConfig:ie}={},customization:{placeholderLabel:H}={},showAddUser:G=!0}){const s=Re(),[Y,V]=M.useState(!1),re=ta(e).sort((c,j)=>c.label.localeCompare(j.label)),f=u!=null?ia(u):void 0,D=N??s.colors.grey5,F=h??s.colors.grey5,b=g??s.colors.grey3,z=n??ye.smallRegular.cssObject,y=U??z,Z={control:(c,j)=>({...c,border:0,height:"100%",backgroundColor:F,fill:j.selectProps.menuIsOpen===!0?s.colors.primary:s.colors.grey1,boxShadow:F,">div:last-child":{color:Y?s.colors.primary:s.colors.grey1},":active":{backgroundColor:F},":hover":{fill:s.colors.primary,">div:last-child":{color:s.colors.primary}},minHeight:"auto",cursor:"pointer",flexDirection:"column",">div>div>svg":{color:s.colors.grey1,">path":{color:s.colors.grey5,fill:"currentcolor"}}}),container:c=>({...c,backgroundColor:F,height:"100%"}),singleValue:c=>({...c,margin:0,minWidth:void 0,backgroundColor:void 0,">div":{borderRadius:0,padding:a.sp0,borderLeftStyle:"none",borderWidth:1,borderColor:s.colors.grey1,color:"unset"},">div>div>div>div:last-child":{display:"block",...ye.standardRegular.cssObject}}),valueContainer:c=>({...c,maxWidth:"100%",cursor:"pointer",height:"100%",...y,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:oe??"flex-start",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",">div":{width:"inherit"}}),menu:(c,j)=>({...c,backgroundColor:D,borderRadius:ae[1],boxShadow:`${a.sp0} 2px ${a.sp2} ${s.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:3,width:236,margin:`6px ${a.sp0}`,right:"-11%",">div":{flexDirection:"column",maxHeight:200,overflowY:"auto",borderRadius:a.sp1,padding:`${a.sp1} ${a.sp0}`,">div":{width:"-webkit-fill-available"}},...ie?.menu?.(c,j)}),menuList:c=>({...c,borderRadius:ae[1]}),placeholder:(c,j)=>({...c,margin:0,width:"100%",color:j.isFocused?s.colors.primary:"currentColor",paddingRight:a.sp2,...ye.standardRegular.cssObject,">div>div>svg>circle":{fill:s.colors.grey1}}),noOptionsMessage:c=>({...c,...ye.smallRegular.cssObject,padding:`10px ${a.sp3} 9px ${a.sp3}`,color:s.colors.hero}),option:(c,{isDisabled:j,isSelected:R,isFocused:se})=>({...c,...z,color:R?te??s.colors.champion:s.colors.hero,backgroundColor:R?b:se?s.colors.background:D,cursor:j?"not-allowed":R?"default":"pointer","svg:nth-of-type(2)":{display:"none"},":hover":{backgroundColor:s.colors.background,color:s.colors.primary},"& label":{paddingRight:"10px",cursor:j?"not-allowed":R?"inherit":"pointer"},">div>div>div:first-of-type":{display:"flex"}}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({}),indicatorsContainer:()=>({height:"100%",display:"flex",alignItems:"center"})},Q=({children:c,...j})=>l.jsxs(be.ValueContainer,{...j,children:[c,G===!0?l.jsxs(va,{hasSelectedUser:!!u,onClick:()=>{p(void 0),V(!1)},children:[l.jsx(ua,{}),l.jsx("div",{children:H??"Add User"})]}):null]});return l.jsx(Il,{onClickAway:()=>{V(!1)},children:l.jsx(oa,{children:l.jsx(Sl,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:Y,menuShouldScrollIntoView:!1,defaultValue:f,value:f,noOptionsMessage:()=>ue.getLocalizedStrings().cockpit.management.noPerson,onInputChange:c=>{c!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx(na,{children:l.jsx("div",{children:H??"Select..."})}),components:{Option:ya,DropdownIndicator:$a,IndicatorSeparator:Ia,SingleValue:wa,ValueContainer:ja,MenuList:Q},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:Z,options:re,isDisabled:m,onChange:c=>{p(c),V(!1)},isClearable:!1,isSearchable:!1},Ol())})})}const sa=t.div``,na=t.div`
78
78
  display: flex;
79
79
  align-items: center;
80
80
  color: ${e=>e.theme.colors.grey1};
@@ -83,7 +83,7 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
83
83
  display: flex;
84
84
  align-items: center;
85
85
  margin-right: ${a.sp2};
86
- `,ca=t(Ye)`
86
+ `,ca=t(Qe)`
87
87
  width: ${a.sp4};
88
88
  height: ${a.sp4};
89
89
  color: ${e=>e.theme.colors.hero};
@@ -92,7 +92,7 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
92
92
  flex-direction: row;
93
93
  align-items: center;
94
94
  justify-content: space-between;
95
- `,ua=t(Pl)`
95
+ `,ua=t(Cl)`
96
96
  height: ${a.sp4};
97
97
  width: ${a.sp4};
98
98
  margin-right: ${a.sp2};
@@ -101,16 +101,16 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
101
101
  height: 12px;
102
102
  width: 12px;
103
103
  color: ${e=>e.theme.colors.hero};
104
- `,fa=t.div``,ha=t(Cl)`
104
+ `,fa=t.div``,ha=t(Pl)`
105
105
  width: 12px;
106
106
  height: 12px;
107
107
  color: ${e=>e.theme.colors.primary};
108
- `,Ze=t.img`
108
+ `,Ke=t.img`
109
109
  height: ${a.sp4};
110
110
  width: ${a.sp4};
111
111
  border-radius: 50%;
112
112
  justify-content: center;
113
- `,ya=e=>{const{data:p,options:u,isSelected:m}=e,N=u.findIndex(g=>g.value===p.value);return l.jsx(sa,{children:l.jsx(be.Option,{...e,children:l.jsxs(pa,{children:[l.jsxs(ga,{children:[l.jsx(ba,{children:p?.photo!==void 0?l.jsx(Ze,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=_e},loading:"lazy"}):l.jsx(Pe,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N})}),l.jsx("label",{children:e.label})]}),!!m&&l.jsx(fa,{children:l.jsx(ha,{})})]})})})},ga=t.div`
113
+ `,ya=e=>{const{data:p,options:u,isSelected:m}=e,N=u.findIndex(g=>g.value===p.value);return l.jsx(sa,{children:l.jsx(be.Option,{...e,children:l.jsxs(pa,{children:[l.jsxs(ga,{children:[l.jsx(ba,{children:p?.photo!==void 0?l.jsx(Ke,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=_e},loading:"lazy"}):l.jsx(Ce,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N})}),l.jsx("label",{children:e.label})]}),!!m&&l.jsx(fa,{children:l.jsx(ha,{})})]})})})},ga=t.div`
114
114
  width: 100%;
115
115
  display: flex;
116
116
  align-items: center;
@@ -118,12 +118,12 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
118
118
  display: flex;
119
119
  align-items: center;
120
120
  margin-right: ${a.sp2};
121
- `,xa=t(Ce)`
121
+ `,xa=t(Pe)`
122
122
  padding: ${a.sp0} ${a.sp2};
123
123
  white-space: nowrap;
124
124
  overflow: hidden;
125
125
  text-overflow: ellipsis;
126
- `,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,N=m.findIndex(g=>g.value===p.value);return l.jsx(be.MultiValueLabel,{...u,children:l.jsxs(Sa,{children:[p?.photo!==void 0?l.jsx(Ze,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=_e},loading:"lazy"}):l.jsx(Pe,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N}),l.jsx(xa,{children:e})]})})},ja=({children:e,...p})=>l.jsxs(be.ValueContainer,{...p,children:[p.selectProps.value==null?l.jsx(da,{children:l.jsx(ca,{})}):null,e]}),$a=t(_l)`
126
+ `,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,N=m.findIndex(g=>g.value===p.value);return l.jsx(be.MultiValueLabel,{...u,children:l.jsxs(Sa,{children:[p?.photo!==void 0?l.jsx(Ke,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=_e},loading:"lazy"}):l.jsx(Ce,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N}),l.jsx(xa,{children:e})]})})},ja=({children:e,...p})=>l.jsxs(be.ValueContainer,{...p,children:[p.selectProps.value==null?l.jsx(da,{children:l.jsx(ca,{})}):null,e]}),va=t(_l)`
127
127
  color: ${e=>e.hasSelectedUser?e.theme.colors.hero:e.theme.colors.primary};
128
128
  display: flex;
129
129
  padding: ${a.sp2} 12px;
@@ -134,11 +134,11 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
134
134
  color: ${e=>e.theme.colors.primary};
135
135
  background: ${e=>e.theme.colors.background};
136
136
  }
137
- `,va=()=>l.jsx(ma,{}),Ia=()=>null,Sa=t.div`
137
+ `,$a=()=>l.jsx(ma,{}),Ia=()=>null,Sa=t.div`
138
138
  display: flex;
139
139
  flex-direction: row;
140
140
  cursor: pointer;
141
- `,pe={width:new P(343,580,726),labelWidth:new P(115,145,155),largeLabelWidth:new P(160,240,240),veryLargeLabelWidth:new P(150,240,245),containerRowGap:new P(12,ae[3])},Oa={title:new Ge("standardMedium","largeMedium")};function Ka({companyOfficerData:e,isDisabled:p,allOfficers:u,allNationalityCountries:m,isRefreshingViewInBackground:N,connectedAccountProvider:g,style:n,isPopupOpen:U,sectionId:h,filesEndPoint:oe,authParams:te,showInfoTooltip:ie=!0,isCompleted:H=!1,showCompletedIcon:G=!1,showOfficerSelect:s=!0,showVerificationTag:X=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:f,companyTitles:D,sectionHeader:F,optionalFields:b=[],onOfficerAddressClick:z,onDeleteFile:y,onEditFileName:Q,updateFilesEntity:Y,openPopup:c,onGetOtp:j,onVerifyOtp:B,onResendOtp:se,verifiedPhoneNumber:W,onPhoneVerified:K}){const L=ze(),me=Be(),{getValues:J,setValue:Z}=yl(),R=u.length>0,[ne,xe]=M.useState(!1),q=R?Object.values(e).findIndex(i=>i?.isSelectedForVerification===!0):0,C=`Officer_${q<0?1:q+1}`;M.useEffect(()=>{K!=null&&e[C]?.phone!=null&&e[C].isPhoneVerified===!0&&K(e[C]?.phone??"")},[]);const x=`${h}.${q}`,S=e[C],T=V?S?.treasuryUserVerificationStatus:S?.userVerificationStatus,_=u.find(i=>i.userId===S?.userId),we=u.sort((i,O)=>(i.firstName||i.lastName?`${i.firstName} ${i.lastName}`:i.email).localeCompare(O.firstName||O.lastName?`${O.firstName} ${O.lastName}`:O.email)),d=R?we.findIndex(i=>i.userId===S?.userId):0,je=e[C]?.deleteFileStatusById??{},el=e[C]?.updateFileStatusById??{},Ee=J(`${x}.selectDocument.selectDocumentType`),{common:{optional:ll},commonSetUp:{businessVerification:r},dateFormat:{visual:al},cockpit:ol}=ue.getLocalizedStrings(),k=f==="onboarding"?r.productType.business_verification:r.productType[f],de=pe.labelWidth.value(L),tl=pe.veryLargeLabelWidth.value(L),fe=pe.largeLabelWidth.value(L),il=L==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,rl=L==="small"?r.protectedSsnTextSmall:r.protectedSsnText,I=T?.code==="pending_review"||T?.code==="verified"?"readonly":p,sl=I!=null||!R||T?.code==="require_info",nl=_?.firstName||_?.lastName?`${_?.firstName} ${_?.lastName}`:r.addOfficer,dl=S?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,cl={menu:()=>({right:"initial",left:0})},pl=i=>D.find(O=>O.code===i)?.name??i,$e=S?.otpverificationStatus?.fetchState,Ve=gl($e);M.useEffect(()=>{K!=null&&Ve==="In-Progress"&&$e==="Completed"&&K(J(`${x}.phone`))},[Ve,$e]);const ul=(i,O)=>{B(i,O)},ml=()=>W==null||W===""?!1:J(`${x}.phone`)===W,fl=()=>{const i=J(`${x}.phone`);return i!=null&&!Ll(i)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",k)};return l.jsxs(La,{style:n,windowSize:L,children:[l.jsxs(Da,{windowSize:L,isOverlay:re,children:[l.jsxs(Aa,{children:[l.jsxs(_a,{children:[G===!0?l.jsx(Pa,{children:H?l.jsx(Na,{}):l.jsx(Ca,{})}):null,l.jsx(Fa,{windowSize:L,children:F??dl})]}),ie?l.jsx(Ea,{children:l.jsx(Re,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:L==="small"||f==="onboarding"?"bottom":"right",children:l.jsx(Va,{})})}):null,f==="onboarding"&&F!=null?l.jsx(Je,{text:ll}):null,T!=null&&X?l.jsx(Ra,{tagTitle:T?.name,textColor:We(T.code),showLoader:N}):null]}),s?sl?R?l.jsxs(Ba,{children:[_?.photo!==void 0?l.jsx(Ta,{src:_?.photo.href,alt:ol.userProfileAltText,onError:({currentTarget:i})=>{i.onerror=null,i.src=_e},loading:"lazy"}):l.jsx(Pe,{firstName:_?.firstName??"",lastName:_?.lastName??"",size:`${a.sp4}`,index:d}),l.jsx(Ae,{children:`${nl}`})]}):l.jsxs(Wa,{children:[l.jsx(qa,{children:l.jsx(Ma,{})}),l.jsx(Ae,{children:`${r.addOfficer}`})]}):l.jsx(ka,{children:l.jsx(ra,{selectedUser:_,allUsers:u,onSelectedUserChanged:i=>{const O=Object.values(e).findIndex(he=>he?.userId===i?.userId);Z(`${x}.isSelectedForVerification`,!1),Z(`${h}.${O}.isSelectedForVerification`,!0)},customization:{placeholderLabel:r.addOfficer},showAddUser:u.length<=9,pickerStyles:{backgroundColor:me.colors.grey5,selectedOptionBackgroundColor:me.colors.background,customStyleConfig:L==="small"?cl:void 0}})}):null]}),Object.values(e).map((i,O)=>{if(q!==O)return null;const he=bl(i?.documentTypeSelectedForVerification),ve=i?.userFiles??[],hl=()=>W!=""&&f==="onboarding"?ml():i?.isPhoneVerified??!1;return l.jsxs(za,{children:[l.jsx(Ke,{}),l.jsx(qe,{isDisabled:I,label:{label:r.name,width:de},nameField:{name:E(x,"name"),placeHolder:{firstName:r.firstNamePlaceholder,lastName:r.lastNamePlaceholder,name:r.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},registerOptions:{required:b.includes("name")===!1,validate:w=>b.includes("name")===!1?!!w:!0},showFullNameError:!0},errorInfoLabel:r.nameError.replace("_product_type_",k)}),l.jsx(A,{}),i?.userId==null?l.jsxs(l.Fragment,{children:[l.jsx(ee,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.email,width:de},text:{type:"email",name:E(x,"email"),placeholder:ce(r.email),defaultValue:i?.email,options:{required:b.includes("email")===!1}},additionalInfoLabel:r.emailDescription.replace("_product_type_",k)}),l.jsx(A,{})]}):null,l.jsx(Me,{isDisabled:I,label:{label:r.dobLabel,width:fe},dateField:{name:E(x,"dob"),type:"text",defaultValue:i?.birthday,placeholder:ce(r.dobLabel),dateFormat:al.defaultInput,maxDate:Le.dateNow().subtract(g==="unit"?18:13,"years"),registerOptions:{required:b.includes("dob")===!1},autoComplete:"off"},additionalInfoLabel:r.dobDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(xl,{isDisabled:I,label:{label:r.nationalityLabel,width:de},showAdditionalInfoLabel:f!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",k),countrySelectField:{name:E(x,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:wl(i?.nationalityCountryCode,m.map(w=>w.countryCode)),registerOptions:{validate:w=>!!(w!=null&&w.selectedOption)}}}),l.jsx(A,{}),l.jsx(Fe,{isDisabled:I,label:{label:r.address,width:de},addressValueField:{name:E(x,"officerAddress"),placeholder:ce(r.address),defaultValue:i?.addressStatus?.addressToCreate,registerOptions:{validate:w=>b.includes("officerAddress")===!1?!(I==null&&w==null):!0},onClick:()=>{z(i?.officerType.toLocaleLowerCase().concat("_address"))}},additionalInfoLabel:f==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",k),showAdditionalInfoLabel:!0}),l.jsx(A,{}),l.jsx(Ue,{isDisabled:I,label:{label:r.phone,width:de},text:{name:E(x,"phone"),placeholder:ce(r.phone),defaultValue:i?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:fl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:U,phoneVerifyButtonProps:{otpChallenge:i?.otpChallenge,showOtpButton:g==="unit",onGetOtp:j,onVerifyOtp:ul,onResendOtp:se,isPhoneVerified:hl(),phoneVerificationStatus:i?.otpverificationStatus,getOtpStatus:i?.sendOtpStatus,openPopup:c,verifiedPhoneNumber:W,focusNotRequired:!0}}),l.jsx(A,{}),l.jsx(De,{label:{label:r.companyRoleLabel,width:fe},singleSelectField:{singleSelect:{name:E(x,"role"),placeholder:il,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:pl,isDisabled:I,showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:i?.titleAtCompany,allOptions:D?.map(w=>w.code)??[]},registerOptions:{required:b.includes("role")===!1,validate:w=>b.includes("role")===!1?!(I==null&&!w?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:r.companyRoleDescription.replace("_product_type_",k)}),l.jsx(A,{}),l.jsx(Te,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:fe},formattedTextField:{type:"number",name:E(x,"ownership"),defaultValue:i?.ownershipInCompany,placeholder:r.companyOwnershipPlaceholder,returnValueType:"floatValue",suffix:"%",allowNegative:!1,isNumericString:!1,registerOptions:{required:b.includes("ownership")===!1,validate:w=>w!=null?w>0&&w<=100:!0,max:100},autoComplete:"new-password"},additionalInfoLabel:f==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(A,{}),l.jsx(Te,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:fe},formattedTextField:{type:"text",name:E(x,"ssn"),placeholder:r.addSSNPlaceholder,defaultValue:i?.ssn,format:"###-##-####",registerOptions:{required:b.includes("ssn")===!1,pattern:jl},autoComplete:"new-password",maxLength:9,allowLeadingZeros:!0},protectedInfoText:I!=null&&i?.ssn?rl:void 0,additionalInfoLabel:r.ssnDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx($l,{name:E(x,"selectDocument"),officerIndex:q,sizeLimit:ge,filesEndPoint:oe,authParams:te,onEditFileName:Q,acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],label:{width:tl},allFiles:ve,updateFilesEntity:Y,deleteFileStatusById:je,updateFileStatusById:el,onDeleteFile:y,isDisabled:I,menuPlacement:f==="onboarding"&&he==null?"top":"auto",defaultValue:{defaultSelectDocumentType:he,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:ke(!0,ve,Ee),back:ke(!1,ve,Ee)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:ne,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",k),onFileSizeError:w=>xe(w),isPopupOpen:U,openPopup:c,companyOfficerName:{firstName:i?.firstName??"",lastName:i?.lastName??""}})]},x)})]})}const E=(e,p)=>`${e}.${p}`,La=t.div`
141
+ `,pe={width:new C(343,580,726),labelWidth:new C(115,145,155),largeLabelWidth:new C(160,240,240),veryLargeLabelWidth:new C(150,240,245),containerRowGap:new C(12,ae[3])},Oa={title:new Ge("standardMedium","largeMedium")};function Xa({companyOfficerData:e,isDisabled:p,allOfficers:u,allNationalityCountries:m,isRefreshingViewInBackground:N,connectedAccountProvider:g,style:n,isPopupOpen:U,sectionId:h,filesEndPoint:oe,authParams:te,showInfoTooltip:ie=!0,isCompleted:H=!1,showCompletedIcon:G=!1,showOfficerSelect:s=!0,showVerificationTag:Y=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:f,companyTitles:D,sectionHeader:F,optionalFields:b=[],onOfficerAddressClick:z,onDeleteFile:y,onEditFileName:Z,updateFilesEntity:Q,openPopup:c,onGetOtp:j,onVerifyOtp:R,onResendOtp:se,verifiedPhoneNumber:q,onPhoneVerified:X}){const L=ze(),me=Re(),{getValues:J,setValue:K}=yl(),B=u.length>0,[ne,xe]=M.useState(!1),W=B?Object.values(e).findIndex(i=>i?.isSelectedForVerification===!0):0,P=`Officer_${W<0?1:W+1}`;M.useEffect(()=>{X!=null&&e[P]?.phone!=null&&e[P].isPhoneVerified===!0&&X(e[P]?.phone??"")},[]);const x=`${h}.${W}`,S=e[P],T=V?S?.treasuryUserVerificationStatus:S?.userVerificationStatus,_=u.find(i=>i.userId===S?.userId),we=u.sort((i,O)=>(i.firstName||i.lastName?`${i.firstName} ${i.lastName}`:i.email).localeCompare(O.firstName||O.lastName?`${O.firstName} ${O.lastName}`:O.email)),d=B?we.findIndex(i=>i.userId===S?.userId):0,je=e[P]?.deleteFileStatusById??{},el=e[P]?.updateFileStatusById??{},Ee=J(`${x}.selectDocument.selectDocumentType`),{common:{optional:ll},commonSetUp:{businessVerification:r},dateFormat:{visual:al},cockpit:ol}=ue.getLocalizedStrings(),k=f==="onboarding"?r.productType.business_verification:r.productType[f],de=pe.labelWidth.value(L),tl=pe.veryLargeLabelWidth.value(L),fe=pe.largeLabelWidth.value(L),il=L==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,rl=L==="small"?r.protectedSsnTextSmall:r.protectedSsnText,I=T?.code==="pending_review"||T?.code==="verified"?"readonly":p,sl=I!=null||!B||T?.code==="require_info",nl=_?.firstName||_?.lastName?`${_?.firstName} ${_?.lastName}`:r.addOfficer,dl=S?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,cl={menu:()=>({right:"initial",left:0})},pl=i=>D.find(O=>O.code===i)?.name??i,ve=S?.otpverificationStatus?.fetchState,Ve=gl(ve);M.useEffect(()=>{X!=null&&Ve==="In-Progress"&&ve==="Completed"&&X(J(`${x}.phone`))},[Ve,ve]);const ul=(i,O)=>{R(i,O)},ml=()=>q==null||q===""?!1:J(`${x}.phone`)===q,fl=()=>{const i=J(`${x}.phone`);return i!=null&&!Ll(i)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",k)};return l.jsxs(La,{style:n,windowSize:L,children:[l.jsxs(Da,{windowSize:L,isOverlay:re,children:[l.jsxs(Aa,{children:[l.jsxs(_a,{children:[G===!0?l.jsx(Ca,{children:H?l.jsx(Na,{}):l.jsx(Pa,{})}):null,l.jsx(Fa,{windowSize:L,children:F??dl})]}),ie?l.jsx(Ea,{children:l.jsx(Be,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:L==="small"||f==="onboarding"?"bottom":"right",children:l.jsx(Va,{})})}):null,f==="onboarding"&&F!=null?l.jsx(Je,{text:ll}):null,T!=null&&Y?l.jsx(Ba,{tagTitle:T?.name,textColor:qe(T.code),showLoader:N}):null]}),s?sl?B?l.jsxs(Ra,{children:[_?.photo!==void 0?l.jsx(Ta,{src:_?.photo.href,alt:ol.userProfileAltText,onError:({currentTarget:i})=>{i.onerror=null,i.src=_e},loading:"lazy"}):l.jsx(Ce,{firstName:_?.firstName??"",lastName:_?.lastName??"",size:`${a.sp4}`,index:d}),l.jsx(Ae,{children:`${nl}`})]}):l.jsxs(qa,{children:[l.jsx(Wa,{children:l.jsx(Ma,{})}),l.jsx(Ae,{children:`${r.addOfficer}`})]}):l.jsx(ka,{children:l.jsx(ra,{selectedUser:_,allUsers:u,onSelectedUserChanged:i=>{const O=Object.values(e).findIndex(he=>he?.userId===i?.userId);K(`${x}.isSelectedForVerification`,!1),K(`${h}.${O}.isSelectedForVerification`,!0)},customization:{placeholderLabel:r.addOfficer},showAddUser:u.length<=9,pickerStyles:{backgroundColor:me.colors.grey5,selectedOptionBackgroundColor:me.colors.background,customStyleConfig:L==="small"?cl:void 0}})}):null]}),Object.values(e).map((i,O)=>{if(W!==O)return null;const he=bl(i?.documentTypeSelectedForVerification),$e=i?.userFiles??[],hl=()=>q!=""&&f==="onboarding"?ml():i?.isPhoneVerified??!1;return l.jsxs(za,{children:[l.jsx(Xe,{}),l.jsx(We,{isDisabled:I,label:{label:r.name,width:de},nameField:{name:E(x,"name"),placeHolder:{firstName:r.firstNamePlaceholder,lastName:r.lastNamePlaceholder,name:r.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},registerOptions:{required:b.includes("name")===!1,validate:w=>b.includes("name")===!1?!!w:!0},showFullNameError:!0},errorInfoLabel:r.nameError.replace("_product_type_",k)}),l.jsx(A,{}),i?.userId==null?l.jsxs(l.Fragment,{children:[l.jsx(ee,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.email,width:de},text:{type:"email",name:E(x,"email"),placeholder:ce(r.email),defaultValue:i?.email,options:{required:b.includes("email")===!1}},additionalInfoLabel:r.emailDescription.replace("_product_type_",k)}),l.jsx(A,{})]}):null,l.jsx(Me,{isDisabled:I,label:{label:r.dobLabel,width:fe},dateField:{name:E(x,"dob"),type:"text",defaultValue:i?.birthday,placeholder:ce(r.dobLabel),dateFormat:al.defaultInput,maxDate:Le.dateNow().subtract(g==="unit"?18:13,"years"),registerOptions:{required:b.includes("dob")===!1},autoComplete:"off"},additionalInfoLabel:r.dobDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(xl,{isDisabled:I,label:{label:r.nationalityLabel,width:de},showAdditionalInfoLabel:f!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",k),countrySelectField:{name:E(x,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:wl(i?.nationalityCountryCode,m.map(w=>w.countryCode)),registerOptions:{validate:w=>!!(w!=null&&w.selectedOption)}}}),l.jsx(A,{}),l.jsx(Fe,{isDisabled:I,label:{label:r.address,width:de},addressValueField:{name:E(x,"officerAddress"),placeholder:ce(r.address),defaultValue:i?.addressStatus?.addressToCreate,registerOptions:{validate:w=>b.includes("officerAddress")===!1?!(I==null&&w==null):!0},onClick:()=>{z(i?.officerType.toLocaleLowerCase().concat("_address"))}},additionalInfoLabel:f==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",k),showAdditionalInfoLabel:!0}),l.jsx(A,{}),l.jsx(Ue,{isDisabled:I,label:{label:r.phone,width:de},text:{name:E(x,"phone"),placeholder:ce(r.phone),defaultValue:i?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:fl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:U,phoneVerifyButtonProps:{otpChallenge:i?.otpChallenge,showOtpButton:g==="unit",onGetOtp:j,onVerifyOtp:ul,onResendOtp:se,isPhoneVerified:hl(),phoneVerificationStatus:i?.otpverificationStatus,getOtpStatus:i?.sendOtpStatus,openPopup:c,verifiedPhoneNumber:q,focusNotRequired:!0}}),l.jsx(A,{}),l.jsx(De,{label:{label:r.companyRoleLabel,width:fe},singleSelectField:{singleSelect:{name:E(x,"role"),placeholder:il,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:pl,isDisabled:I,showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:i?.titleAtCompany,allOptions:D?.map(w=>w.code)??[]},registerOptions:{required:b.includes("role")===!1,validate:w=>b.includes("role")===!1?!(I==null&&!w?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:r.companyRoleDescription.replace("_product_type_",k)}),l.jsx(A,{}),l.jsx(Te,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:fe},formattedTextField:{type:"number",name:E(x,"ownership"),defaultValue:i?.ownershipInCompany,placeholder:r.companyOwnershipPlaceholder,returnValueType:"floatValue",suffix:"%",allowNegative:!1,isNumericString:!1,registerOptions:{required:b.includes("ownership")===!1,validate:w=>w!=null?w>0&&w<=100:!0,max:100},autoComplete:"new-password"},additionalInfoLabel:f==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(A,{}),l.jsx(Te,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:fe},formattedTextField:{type:"text",name:E(x,"ssn"),placeholder:r.addSSNPlaceholder,defaultValue:i?.ssn,format:"###-##-####",registerOptions:{required:b.includes("ssn")===!1,pattern:jl},autoComplete:"new-password",maxLength:9,allowLeadingZeros:!0},protectedInfoText:I!=null&&i?.ssn?rl:void 0,additionalInfoLabel:r.ssnDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(vl,{name:E(x,"selectDocument"),officerIndex:W,sizeLimit:ge,filesEndPoint:oe,authParams:te,onEditFileName:Z,acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],label:{width:tl},allFiles:$e,updateFilesEntity:Q,deleteFileStatusById:je,updateFileStatusById:el,onDeleteFile:y,isDisabled:I,menuPlacement:f==="onboarding"&&he==null?"top":"auto",defaultValue:{defaultSelectDocumentType:he,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:ke(!0,$e,Ee),back:ke(!1,$e,Ee)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:ne,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",k),onFileSizeError:w=>xe(w),isPopupOpen:U,openPopup:c,companyOfficerName:{firstName:i?.firstName??"",lastName:i?.lastName??""}})]},x)})]})}const E=(e,p)=>`${e}.${p}`,La=t.div`
142
142
  display: flex;
143
143
  flex-direction: column;
144
144
  row-gap: ${e=>pe.containerRowGap.valuePx(e.windowSize)};
@@ -158,13 +158,13 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
158
158
  `,_a=t.div`
159
159
  display: flex;
160
160
  align-items: center;
161
- `,Pa=t.div`
161
+ `,Ca=t.div`
162
162
  margin-right: ${a.sp2};
163
163
  `,Na=t(He)`
164
164
  width: ${a.sp3};
165
165
  height: ${a.sp3};
166
166
  color: ${Ne.success};
167
- `,Ca=t.div`
167
+ `,Pa=t.div`
168
168
  height: 14px;
169
169
  width: 14px;
170
170
  border: 1px solid ${e=>e.theme.colors.primary};
@@ -175,7 +175,7 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
175
175
  &:hover {
176
176
  color: ${e=>e.theme.colors.primary};
177
177
  }
178
- `,Va=t(Xe)`
178
+ `,Va=t(Ye)`
179
179
  width: ${a.sp3};
180
180
  height: ${a.sp3};
181
181
  `,Ta=t.img`
@@ -202,7 +202,7 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
202
202
  background-color: ${e=>e.theme.colors.grey3};
203
203
  min-height: 1px;
204
204
  max-height: 1px;
205
- `,Ba=t(Ce)`
205
+ `,Ra=t(Pe)`
206
206
  display: flex;
207
207
  flex-direction: row;
208
208
  justify-content: flex-end;
@@ -213,20 +213,20 @@ import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We
213
213
  white-space: nowrap;
214
214
  overflow: hidden;
215
215
  text-overflow: ellipsis;
216
- `,Ra=t(Qe)`
216
+ `,Ba=t(Ze)`
217
217
  width: max-content;
218
218
  margin-left: ${a.sp3};
219
- `,Wa=t(Ce)`
219
+ `,qa=t(Pe)`
220
220
  display: flex;
221
221
  flex-direction: row;
222
222
  justify-content: flex-end;
223
223
  align-items: center;
224
224
  color: ${e=>e.theme.colors.hero};
225
- `,qa=t.div`
225
+ `,Wa=t.div`
226
226
  display: flex;
227
227
  align-items: center;
228
- `,Ma=t(Ye)`
228
+ `,Ma=t(Qe)`
229
229
  width: ${a.sp4};
230
230
  height: ${a.sp4};
231
231
  color: ${e=>e.theme.colors.hero};
232
- `;export{Ml as G,Ka as o};
232
+ `;export{Ml as G,Xa as o};
@@ -1,4 +1,4 @@
1
- import{j as r,W as x,Z as M,_ as f,B as p,o as s,a5 as w,$ as g,a6 as j}from"./index-CiKxqrxk.js";import{b as t,n as o}from"./vendor-CnQcJ2Lu.js";import{c as H}from"./SummaryCard-edbbHOmb-BEN1lpgF.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-CZ1Ix5em-ntwCW2pN.js";const B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:v},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:B}],D=o(w)`
1
+ import{j as r,U as x,W as M,_ as f,M as p,o as s,a5 as w,v as g,a6 as j}from"./index-Dhj1_7g2.js";import{b as t,n as o}from"./vendor-CnQcJ2Lu.js";import{c as H}from"./SummaryCard-Bv4ja9yJ-CEGyY5M9.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-CZ4IXHy1-BJxA7jIu.js";const v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:B},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:v}],D=o(w)`
2
2
  margin: ${s.sp5};
3
3
  justify-content: space-between;
4
4
  `,W=o.div`
@@ -7,20 +7,20 @@ import{j as r,W as x,Z as M,_ as f,B as p,o as s,a5 as w,$ as g,a6 as j}from"./i
7
7
  flex-direction: row;
8
8
  align-items: center;
9
9
  margin-bottom: ${s.sp3};
10
- `,$=o(g)`
10
+ `,I=o(g)`
11
11
  color: ${e=>e.theme.colors.champion};
12
- `,I=o.div`
12
+ `,V=o.div`
13
13
  display: flex;
14
14
  width: 100%;
15
15
  flex-direction: column;
16
- `,V=o.div`
17
- color: ${e=>e.theme.colors.primary};
18
16
  `,T=o.div`
17
+ color: ${e=>e.theme.colors.primary};
18
+ `,b=o.div`
19
19
  display: flex;
20
20
  flex-direction: row;
21
21
  align-items: center;
22
22
  margin: ${s.sp3} ${s.sp0};
23
- `,b=o.div`
23
+ `,$=o.div`
24
24
  margin-right: ${s.sp3};
25
25
  `,N=o.div`
26
26
  display: flex;
@@ -35,8 +35,8 @@ import{j as r,W as x,Z as M,_ as f,B as p,o as s,a5 as w,$ as g,a6 as j}from"./i
35
35
  -webkit-box-orient: vertical;
36
36
  -webkit-line-clamp: 2;
37
37
  overflow: hidden;
38
- `,C=o(j)``,S=o.div`
38
+ `,C=o(j)``,_=o.div`
39
39
  width: 100%;
40
40
  height: 1px;
41
41
  background-color: ${e=>e.theme.colors.grey3};
42
- `;function U({card:e,actions:l,data:c,dndProps:n}){return r.jsx(x,{isDragging:n?.draggedCardType!=null,isDragOver:n?.dragOverCard===e.cardType,draggable:!0,onDragStart:i=>n?.onDragStart(e.cardType,i),onDragOver:i=>n?.onDragOver(i,e.cardType),onDragLeave:i=>n?.onDragLeave(i),onDrop:i=>n?.onDrop(i,e.cardType),dimension:e.dimension,children:r.jsx(H,{card:e,actions:l,children:r.jsx(M,{dimension:e.dimension,style:{cursor:"pointer"},onClick:()=>l.onCardClick(e.cardIndex,e.cardType),"data-testid":f("dashboard",e.cardType),children:r.jsxs(D,{children:[r.jsx(W,{children:r.jsx($,{children:p.getLocalizedStrings().companyPassportCard.title})}),y.map((i,d)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(I,{children:[r.jsxs(T,{children:[r.jsx(b,{children:r.jsx(h,{height:s.sp5,width:s.sp5})}),r.jsxs(N,{children:[r.jsx(A,{children:m}),r.jsx(_,{data:c?.companyView,itemKey:a})]})]}),d!==y.length-1?r.jsx(S,{}):null]},i.key)})]})})})},e.cardIndex)}const _=({itemKey:e,data:l})=>{const c=l?.companyOfficers,n=l?.company,i=n?.company.companyInfo,d=n?.company.incInfo,m=()=>r.jsx(V,{children:"—"});switch(e){case"company_legal_name":return i?.companyLegalName==null||i.companyLegalName===""?r.jsx(m,{}):r.jsx(k,{children:i?.companyLegalName});case"company_officer":{if(c==null||c?.length===0)return r.jsx(m,{});const a=c.slice(0,10).sort((u,E)=>u.user.createTime?.isAfter(E.user.createTime)===!0?1:-1),h=[a[0].user.firstName,a[0].user.lastName].join("").trim();return r.jsxs(k,{children:[a[0].user.firstName!=null&&a[0].user.firstName!==""?r.jsxs(C,{children:[a[0].user.firstName," "]}):null,r.jsx(C,{children:a[0].user.lastName}),a[0].user.email!=null?r.jsx(C,{children:`${h.length>0?", ":""}${a[0].user.email}`}):null]})}case"company_inc":return d?.companyIncType==null||d.companyIncType===""?r.jsx(m,{}):r.jsx(k,{children:d?.companyIncType});default:return null}};export{U as default};
42
+ `;function J({card:e,actions:l,data:c,dndProps:n}){return r.jsx(x,{isDragging:n?.draggedCardType!=null,isDragOver:n?.dragOverCard===e.cardType,draggable:!0,onDragStart:i=>n?.onDragStart(e.cardType,i),onDragOver:i=>n?.onDragOver(i,e.cardType),onDragLeave:i=>n?.onDragLeave(i),onDrop:i=>n?.onDrop(i,e.cardType),dimension:e.dimension,children:r.jsx(H,{card:e,actions:l,children:r.jsx(M,{dimension:e.dimension,style:{cursor:"pointer"},onClick:()=>l.onCardClick(e.cardIndex,e.cardType),"data-testid":f("dashboard",e.cardType),children:r.jsxs(D,{children:[r.jsx(W,{children:r.jsx(I,{children:p.getLocalizedStrings().companyPassportCard.title})}),y.map((i,d)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(V,{children:[r.jsxs(b,{children:[r.jsx($,{children:r.jsx(h,{height:s.sp5,width:s.sp5})}),r.jsxs(N,{children:[r.jsx(A,{children:m}),r.jsx(O,{data:c?.companyView,itemKey:a})]})]}),d!==y.length-1?r.jsx(_,{}):null]},i.key)})]})})})},e.cardIndex)}const O=({itemKey:e,data:l})=>{const c=l?.companyOfficers,n=l?.company,i=n?.company.companyInfo,d=n?.company.incInfo,m=()=>r.jsx(T,{children:"—"});switch(e){case"company_legal_name":return i?.companyLegalName==null||i.companyLegalName===""?r.jsx(m,{}):r.jsx(k,{children:i?.companyLegalName});case"company_officer":{if(c==null||c?.length===0)return r.jsx(m,{});const a=c.slice(0,10).sort((u,E)=>u.user.createTime?.isAfter(E.user.createTime)===!0?1:-1),h=[a[0].user.firstName,a[0].user.lastName].join("").trim();return r.jsxs(k,{children:[a[0].user.firstName!=null&&a[0].user.firstName!==""?r.jsxs(C,{children:[a[0].user.firstName," "]}):null,r.jsx(C,{children:a[0].user.lastName}),a[0].user.email!=null?r.jsx(C,{children:`${h.length>0?", ":""}${a[0].user.email}`}):null]})}case"company_inc":return d?.companyIncType==null||d.companyIncType===""?r.jsx(m,{}):r.jsx(k,{children:d?.companyIncType});default:return null}};export{J as default};
@@ -1,4 +1,4 @@
1
- import{X as P,u as Ae,a2 as ca,a as da,c6 as pa,B as k,j as a,aV as ma,F as ua,c7 as ha,l as V,a4 as fa,C as m,c8 as xa,a3 as Ce,o as t,n as ae,c9 as z,ca as ze,cb as L,cc as ya,cd as Ue,ce as ga,cf as ba,cg as qe,y as $a,ch as wa,ci as He,cj as Ze,ck as Ia,cl as ja,cm as va,d as N,cn as Da,co as Sa,aN as Oa,a6 as Ca,ao as q,cp as Fe,s as p,$ as Ge,K as Me,cq as Fa,J as ka,cr as Ta,cs as Na,b1 as Pa,ct as La,bK as za,cu as Ma,M as Ea,b2 as R,cv as Va,v as de,a$ as Ba}from"./index-CiKxqrxk.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-CnQcJ2Lu.js";import{D as Xe}from"./LabeledCreatableSingleSelectField-nys9pbO0-Cdtj6tvs.js";import{Y as Je}from"./LabeledDocumentField-Y6TKpyZ8-CxE5GTn1.js";import{$ as Ke}from"./LabeledAddressValue-BioQUVCV-BQVyTN5W.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Qe={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ra=_a`
1
+ import{X as P,u as Ae,a2 as ca,a as da,c3 as pa,M as k,j as a,aV as ma,F as ua,c4 as ha,l as V,a4 as fa,C as m,c5 as xa,a3 as Ce,o as t,e as ae,c6 as z,c7 as ze,c8 as L,c9 as ya,ca as Ue,cb as ga,cc as ba,cd as qe,w as $a,ce as wa,cf as He,cg as Ze,ch as Ia,ci as ja,cj as va,g as N,ck as Da,cl as Sa,aN as Oa,a6 as Ca,ao as q,cm as Fe,q as p,v as Ge,K as Me,cn as Fa,H as ka,co as Ta,cp as Na,b1 as Pa,cq as La,bH as za,cr as Ma,m as Ea,b2 as R,cs as Va,f as de,a$ as Ba}from"./index-Dhj1_7g2.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-CnQcJ2Lu.js";import{D as Xe}from"./LabeledCreatableSingleSelectField-uQKngCdt-D9uymIz_.js";import{Y as Ke}from"./LabeledDocumentField-TFmz23mS-VXex-CEg.js";import{$ as Je}from"./LabeledAddressValue-CCd3y8zQ-iyUnGXzQ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Qe={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ra=_a`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
@@ -47,7 +47,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c6 as pa,B as k,j as a,aV as ma,F as ua,c
47
47
  &:hover {
48
48
  color: ${N.primaryDark};
49
49
  }
50
- `,Ja=e=>{const o=k.getLocalizedStrings().companyPassport.snackBar;return e==="Error"?o.failedText:o.successText};function Ka(e){const o=P(),{fetchState:l,onRemoveSnackbar:i}=e;_.useEffect(()=>{setTimeout(i,5e3)});const n=k.getLocalizedStrings().companyPassport.snackBar,c=l==="Completed";return a.jsxs(Ya,{windowSize:o,children:[c?a.jsx(Aa,{}):a.jsx(Ua,{}),a.jsxs(Za,{windowSize:o,children:[a.jsx(Ga,{isSuccess:c,children:c?n.success:n.error}),a.jsx(qa,{children:a.jsx(Ha,{children:Ja(l)})})]}),a.jsx(Xa,{onClick:i,children:a.jsx(Ce,{})})]})}const ne={labelWidth:new m(110,145,180),largeLabelWidth:new m(150,215,215),largeLabelDocumentWidth:new m(150,210,252),paddingBottom:new m(p[3],p[2])};function Qa(e){const o=P(),[l,i]=_.useState(!1),{companyPassport:n,commonSetUp:{businessVerification:c},common:{documents:f}}=k.getLocalizedStrings(),{fileProps:d,companyFiles:r,deleteFileStatusById:u,updateFileStatusById:y,sectionId:b,isDisabled:h,companyIncInfo:$,style:I}=e,S=ne.labelWidth.value(o),j=ne.largeLabelWidth.value(o),g=ne.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:D}=k.getLocalizedStrings(),x=r.find(J=>J.documentType==="certificate_of_incorporation"),B=o==="small"?n.companyIncInfo.stateOfIncPlaceholderSmall:n.companyIncInfo.stateOfIncPlaceholder,me=o==="small"?n.companyIncInfo.typeOfIncPlaceholderSmall:n.companyIncInfo.typeOfIncPlaceholder;return a.jsxs(et,{style:I,children:[a.jsx(tt,{children:n.companyIncInfo.title}),a.jsxs(at,{children:[a.jsx(Xe,{label:{label:D.companyIncInfo.typeOfInc,width:j},isDisabled:h,creatableSingleSelectField:{name:re(b,"typeOfInc"),placeholder:me,defaultValue:{selectedOption:$?.typeOfInc,allOptions:n.companyIncInfo.allTypesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ga,{label:{label:D.companyIncInfo.stateOfInc,width:j},isDisabled:h,singleSelectField:{name:re(b,"stateOfInc"),placeholder:B,defaultValue:{selectedOption:$?.stateOfInc,allOptions:n.companyIncInfo.allStatesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ba,{isDisabled:h,label:{label:n.companyIncInfo.incDate,width:S},style:{paddingBottom:ne.paddingBottom.valuePx(o)},dateField:{name:re(b,"incDate"),placeholder:L(n.companyIncInfo.incDate),defaultValue:$?.incDate,dateFormat:O.defaultInput,maxDate:V.dateNow(),minDate:V.zeniDate("01 Jan 1900"),autoComplete:"off"}}),a.jsx(he,{}),a.jsx(Je,{name:re(b,"certificateOfIncorporation"),isDisabled:h,sizeLimit:qe,deleteFileStatusById:u,updateFileStatusById:y,filesEndPoint:d.filesEndPoint,authParams:d.authParams,label:{label:c.certificateOfIncorporation,width:g},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:x,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:l,updateFilesEntity:d.updateFilesEntity,onEditFileName:d.onEditFileName,onDeleteFile:d.onDeleteFile,onFileSizeError:J=>i(J)}),a.jsx(ot,{windowSize:o,isError:l,children:f.formatDocumentText10MB})]})]})}const re=(e,o)=>`${e}.${o}`,et=s.div`
50
+ `,Ka=e=>{const o=k.getLocalizedStrings().companyPassport.snackBar;return e==="Error"?o.failedText:o.successText};function Ja(e){const o=P(),{fetchState:l,onRemoveSnackbar:i}=e;_.useEffect(()=>{setTimeout(i,5e3)});const n=k.getLocalizedStrings().companyPassport.snackBar,c=l==="Completed";return a.jsxs(Ya,{windowSize:o,children:[c?a.jsx(Aa,{}):a.jsx(Ua,{}),a.jsxs(Za,{windowSize:o,children:[a.jsx(Ga,{isSuccess:c,children:c?n.success:n.error}),a.jsx(qa,{children:a.jsx(Ha,{children:Ka(l)})})]}),a.jsx(Xa,{onClick:i,children:a.jsx(Ce,{})})]})}const ne={labelWidth:new m(110,145,180),largeLabelWidth:new m(150,215,215),largeLabelDocumentWidth:new m(150,210,252),paddingBottom:new m(p[3],p[2])};function Qa(e){const o=P(),[l,i]=_.useState(!1),{companyPassport:n,commonSetUp:{businessVerification:c},common:{documents:f}}=k.getLocalizedStrings(),{fileProps:d,companyFiles:r,deleteFileStatusById:u,updateFileStatusById:y,sectionId:b,isDisabled:h,companyIncInfo:$,style:I}=e,S=ne.labelWidth.value(o),j=ne.largeLabelWidth.value(o),g=ne.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:D}=k.getLocalizedStrings(),x=r.find(K=>K.documentType==="certificate_of_incorporation"),B=o==="small"?n.companyIncInfo.stateOfIncPlaceholderSmall:n.companyIncInfo.stateOfIncPlaceholder,me=o==="small"?n.companyIncInfo.typeOfIncPlaceholderSmall:n.companyIncInfo.typeOfIncPlaceholder;return a.jsxs(et,{style:I,children:[a.jsx(tt,{children:n.companyIncInfo.title}),a.jsxs(at,{children:[a.jsx(Xe,{label:{label:D.companyIncInfo.typeOfInc,width:j},isDisabled:h,creatableSingleSelectField:{name:re(b,"typeOfInc"),placeholder:me,defaultValue:{selectedOption:$?.typeOfInc,allOptions:n.companyIncInfo.allTypesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ga,{label:{label:D.companyIncInfo.stateOfInc,width:j},isDisabled:h,singleSelectField:{name:re(b,"stateOfInc"),placeholder:B,defaultValue:{selectedOption:$?.stateOfInc,allOptions:n.companyIncInfo.allStatesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ba,{isDisabled:h,label:{label:n.companyIncInfo.incDate,width:S},style:{paddingBottom:ne.paddingBottom.valuePx(o)},dateField:{name:re(b,"incDate"),placeholder:L(n.companyIncInfo.incDate),defaultValue:$?.incDate,dateFormat:O.defaultInput,maxDate:V.dateNow(),minDate:V.zeniDate("01 Jan 1900"),autoComplete:"off"}}),a.jsx(he,{}),a.jsx(Ke,{name:re(b,"certificateOfIncorporation"),isDisabled:h,sizeLimit:qe,deleteFileStatusById:u,updateFileStatusById:y,filesEndPoint:d.filesEndPoint,authParams:d.authParams,label:{label:c.certificateOfIncorporation,width:g},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:x,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:l,updateFilesEntity:d.updateFilesEntity,onEditFileName:d.onEditFileName,onDeleteFile:d.onDeleteFile,onFileSizeError:K=>i(K)}),a.jsx(ot,{windowSize:o,isError:l,children:f.formatDocumentText10MB})]})]})}const re=(e,o)=>`${e}.${o}`,et=s.div`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  padding-top: ${t.sp3};
@@ -112,7 +112,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c6 as pa,B as k,j as a,aV as ma,F as ua,c
112
112
  border-bottom-left-radius: inherit;
113
113
  border-bottom-right-radius: inherit;
114
114
  }
115
- `,fe={labelWidth:new m(110,110,140),mediumLabelWidth:new m(140,140,160),largeLabelWidth:new m(170,170,180)},{companyPassport:v,dateFormat:{analytics:Ee}}=k.getLocalizedStrings();function ct({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=P(),u=e.company.company.companyInfo,y=fe.labelWidth.value(r),b=fe.mediumLabelWidth.value(r),h=fe.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=S=>o.find(j=>j.code===S)?.name??S;return a.jsxs(pt,{style:d,children:[a.jsx(ut,{children:v.companyInfo.title}),a.jsxs(mt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:Z(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:Z(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:Z(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:Z(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(S=>S.code)??[]}},isFunctional:!0}),a.jsx(U,{}),a.jsx(Xe,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:Z(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(U,{}),a.jsx(Ke,{isDisabled:c,label:{label:v.companyInfo.address,width:y},addressValue:{placeholder:L(v.companyInfo.address),address:i?.addressToCreate,onClick:()=>f("company_address")}}),a.jsx(U,{}),a.jsx(Ue,{isDisabled:c,label:{label:v.companyInfo.phone,width:y},text:{name:Z(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(pe,{label:{label:v.companyInfo.fiscalYear,width:y},bullettedLabels:{labels:[{text:dt(l?.firstMonthOfFY??1)}],listStyleType:"none"}})]})]})}const dt=e=>{const{fiscalYearMonths:o}=V.getFYMonths(e);return`${V.dateNow().month(o[0]-1).format(Ee.MMMFormat)} to ${V.dateNow().month(o[11]-1).format(Ee.MMMFormat)}`},Z=(e,o)=>`${e}.${o}`,pt=s.div`
115
+ `,fe={labelWidth:new m(110,110,140),mediumLabelWidth:new m(140,140,160),largeLabelWidth:new m(170,170,180)},{companyPassport:v,dateFormat:{analytics:Ee}}=k.getLocalizedStrings();function ct({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=P(),u=e.company.company.companyInfo,y=fe.labelWidth.value(r),b=fe.mediumLabelWidth.value(r),h=fe.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=S=>o.find(j=>j.code===S)?.name??S;return a.jsxs(pt,{style:d,children:[a.jsx(ut,{children:v.companyInfo.title}),a.jsxs(mt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:Z(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:Z(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:Z(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:Z(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(S=>S.code)??[]}},isFunctional:!0}),a.jsx(U,{}),a.jsx(Xe,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:Z(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(U,{}),a.jsx(Je,{isDisabled:c,label:{label:v.companyInfo.address,width:y},addressValue:{placeholder:L(v.companyInfo.address),address:i?.addressToCreate,onClick:()=>f("company_address")}}),a.jsx(U,{}),a.jsx(Ue,{isDisabled:c,label:{label:v.companyInfo.phone,width:y},text:{name:Z(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(pe,{label:{label:v.companyInfo.fiscalYear,width:y},bullettedLabels:{labels:[{text:dt(l?.firstMonthOfFY??1)}],listStyleType:"none"}})]})]})}const dt=e=>{const{fiscalYearMonths:o}=V.getFYMonths(e);return`${V.dateNow().month(o[0]-1).format(Ee.MMMFormat)} to ${V.dateNow().month(o[11]-1).format(Ee.MMMFormat)}`},Z=(e,o)=>`${e}.${o}`,pt=s.div`
116
116
  display: flex;
117
117
  flex-direction: column;
118
118
  padding-top: ${t.sp3};
@@ -133,7 +133,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c6 as pa,B as k,j as a,aV as ma,F as ua,c
133
133
  background-color: ${e=>e.theme.colors.grey3};
134
134
  min-height: 1px;
135
135
  max-height: 1px;
136
- `,be={labelWidth:new m(110,110,140),buttonWidth:new m(70,70)};function ht({sectionId:e,isDisabled:o,style:l,officer:i,officerAddress:n,isEmptyCompanyOfficerSection:c,onOfficerAddressClick:f}){const d=P(),r=k.getLocalizedStrings().companyPassport,u=be.labelWidth.value(d),y=c&&(i==null||!i.firstName&&!i.lastName&&!i.phone&&!i.email&&!n),b=i?.userId==null||i?.userId==="";return a.jsxs(bt,{style:l,children:[a.jsx(He,{isDisabled:o,label:{label:r.companyOfficer.name,width:u},nameField:{name:xe(e,"name"),placeHolder:{firstName:r.companyOfficer.firstNamePlaceholder,lastName:r.companyOfficer.lastNamePlaceholder,name:r.companyOfficer.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},autoComplete:"new-password",registerOptions:{required:y!==!0},showFullNameError:!0}}),a.jsx(ye,{}),a.jsx(z,{isDisabled:b?o:"readonly",label:{label:r.companyOfficer.email,width:u},text:{type:"email",name:xe(e,"email"),placeholder:L(r.companyOfficer.email),options:{required:y===!0?!1:b},defaultValue:i?.email,autoComplete:"new-password"}}),a.jsx(ye,{}),a.jsx(Ke,{isDisabled:o,label:{label:r.companyInfo.address,width:u},addressValue:{placeholder:L(r.companyOfficer.address),address:n?.addressToCreate,onClick:()=>{f(i?.officerType.toLocaleLowerCase().concat("_address"))}}}),a.jsx(ye,{}),a.jsx(Ue,{isDisabled:o,label:{label:r.companyOfficer.phone,width:u},text:{name:xe(e,"phone"),placeholder:L(r.companyOfficer.phone),defaultValue:i?.phone,autoComplete:"new-password"}})]})}function ft({companyOfficers:e,sectionId:o,style:l,isDisabled:i,onOfficerAddressClick:n}){const{setValue:c,getValues:f}=Ze(),[d,r]=_.useState(-1),u=k.getLocalizedStrings().companyPassport,y=e.length,b=e.length===1&&e[0].localData?.userId==null,h=f(o),$=()=>{const g={userId:void 0,officerType:`Officer_${y+1}`,name:{firstName:"",lastName:""},email:"",phone:""};c(o,[...h,g])},I=g=>{if(e[g].localData==null||!e[g].localData?.firstName&&!e[g].localData?.lastName&&!e[g].localData?.phone&&!e[g].localData?.email&&!e[g].addressStatus?.addressToCreate){const O=h.filter((D,x)=>x!==d);c(o,O),r(-1)}else r(g)},S=()=>{r(-1)},j=()=>{const g=h.filter((O,D)=>D!==d);c(o,g),r(-1)};return a.jsxs(gt,{style:l,children:[a.jsx($t,{children:u.companyOfficer.title}),e.map((g,O)=>{const D=g.localData,x=g.addressStatus,B=D?.userId==null||D?.userId==="";return a.jsxs(wt,{children:[(y>1||B)&&!b?a.jsx(xt,{curIndex:O,isNewUser:B,numberOfOfficers:y,deleteConfirmationIndex:d,isDisabled:i,onDeleteClick:I,onCancelClick:S,onRemoveOfficerSection:j}):null,a.jsx(ht,{sectionId:`${o}.${O}`,officer:D,officerAddress:x,isDisabled:i,isEmptyCompanyOfficerSection:b,onOfficerAddressClick:n})]},D?.officerType)}),y<=9&&!b?a.jsx(yt,{isSectionDisabled:i,onAddOfficerSection:$}):a.jsx($e,{})]})}const xt=({curIndex:e,isNewUser:o,numberOfOfficers:l,deleteConfirmationIndex:i,isDisabled:n,onDeleteClick:c,onCancelClick:f,onRemoveOfficerSection:d})=>{const r=P(),u=k.getLocalizedStrings().companyPassport;return a.jsxs(It,{children:[a.jsx(jt,{children:l>1?`${u.companyOfficer.officer} ${e+1}`:""}),o&&n==null?i===e?a.jsx(Ct,{children:a.jsxs(Ft,{children:[u.companyOfficer.deleteConfirmation,a.jsx(Me,{label:u.cancel,onClick:f,style:{width:be.buttonWidth.value(r),marginLeft:t.sp4,marginRight:t.sp3},size:"small",variant:"secondary"}),a.jsx(Me,{label:u.remove,onClick:d,style:{width:be.buttonWidth.value(r)},size:"small",variant:"danger"})]})}):a.jsx(Ot,{className:"delete-icon-wrapper",onClick:()=>c(e),children:a.jsx(Fa,{width:p[3],height:p[3],color:N.important})}):null]})},yt=({isSectionDisabled:e,onAddOfficerSection:o})=>{const l=k.getLocalizedStrings().companyPassport;return e!=null?a.jsx($e,{}):a.jsxs(a.Fragment,{children:[a.jsxs(vt,{onClick:o,children:[a.jsx(Dt,{}),a.jsx(St,{children:l.companyOfficer.addOfficer})]}),a.jsx($e,{})]})},xe=(e,o)=>`${e}.${o}`,gt=s.div`
136
+ `,be={labelWidth:new m(110,110,140),buttonWidth:new m(70,70)};function ht({sectionId:e,isDisabled:o,style:l,officer:i,officerAddress:n,isEmptyCompanyOfficerSection:c,onOfficerAddressClick:f}){const d=P(),r=k.getLocalizedStrings().companyPassport,u=be.labelWidth.value(d),y=c&&(i==null||!i.firstName&&!i.lastName&&!i.phone&&!i.email&&!n),b=i?.userId==null||i?.userId==="";return a.jsxs(bt,{style:l,children:[a.jsx(He,{isDisabled:o,label:{label:r.companyOfficer.name,width:u},nameField:{name:xe(e,"name"),placeHolder:{firstName:r.companyOfficer.firstNamePlaceholder,lastName:r.companyOfficer.lastNamePlaceholder,name:r.companyOfficer.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},autoComplete:"new-password",registerOptions:{required:y!==!0},showFullNameError:!0}}),a.jsx(ye,{}),a.jsx(z,{isDisabled:b?o:"readonly",label:{label:r.companyOfficer.email,width:u},text:{type:"email",name:xe(e,"email"),placeholder:L(r.companyOfficer.email),options:{required:y===!0?!1:b},defaultValue:i?.email,autoComplete:"new-password"}}),a.jsx(ye,{}),a.jsx(Je,{isDisabled:o,label:{label:r.companyInfo.address,width:u},addressValue:{placeholder:L(r.companyOfficer.address),address:n?.addressToCreate,onClick:()=>{f(i?.officerType.toLocaleLowerCase().concat("_address"))}}}),a.jsx(ye,{}),a.jsx(Ue,{isDisabled:o,label:{label:r.companyOfficer.phone,width:u},text:{name:xe(e,"phone"),placeholder:L(r.companyOfficer.phone),defaultValue:i?.phone,autoComplete:"new-password"}})]})}function ft({companyOfficers:e,sectionId:o,style:l,isDisabled:i,onOfficerAddressClick:n}){const{setValue:c,getValues:f}=Ze(),[d,r]=_.useState(-1),u=k.getLocalizedStrings().companyPassport,y=e.length,b=e.length===1&&e[0].localData?.userId==null,h=f(o),$=()=>{const g={userId:void 0,officerType:`Officer_${y+1}`,name:{firstName:"",lastName:""},email:"",phone:""};c(o,[...h,g])},I=g=>{if(e[g].localData==null||!e[g].localData?.firstName&&!e[g].localData?.lastName&&!e[g].localData?.phone&&!e[g].localData?.email&&!e[g].addressStatus?.addressToCreate){const O=h.filter((D,x)=>x!==d);c(o,O),r(-1)}else r(g)},S=()=>{r(-1)},j=()=>{const g=h.filter((O,D)=>D!==d);c(o,g),r(-1)};return a.jsxs(gt,{style:l,children:[a.jsx($t,{children:u.companyOfficer.title}),e.map((g,O)=>{const D=g.localData,x=g.addressStatus,B=D?.userId==null||D?.userId==="";return a.jsxs(wt,{children:[(y>1||B)&&!b?a.jsx(xt,{curIndex:O,isNewUser:B,numberOfOfficers:y,deleteConfirmationIndex:d,isDisabled:i,onDeleteClick:I,onCancelClick:S,onRemoveOfficerSection:j}):null,a.jsx(ht,{sectionId:`${o}.${O}`,officer:D,officerAddress:x,isDisabled:i,isEmptyCompanyOfficerSection:b,onOfficerAddressClick:n})]},D?.officerType)}),y<=9&&!b?a.jsx(yt,{isSectionDisabled:i,onAddOfficerSection:$}):a.jsx($e,{})]})}const xt=({curIndex:e,isNewUser:o,numberOfOfficers:l,deleteConfirmationIndex:i,isDisabled:n,onDeleteClick:c,onCancelClick:f,onRemoveOfficerSection:d})=>{const r=P(),u=k.getLocalizedStrings().companyPassport;return a.jsxs(It,{children:[a.jsx(jt,{children:l>1?`${u.companyOfficer.officer} ${e+1}`:""}),o&&n==null?i===e?a.jsx(Ct,{children:a.jsxs(Ft,{children:[u.companyOfficer.deleteConfirmation,a.jsx(Me,{label:u.cancel,onClick:f,style:{width:be.buttonWidth.value(r),marginLeft:t.sp4,marginRight:t.sp3},size:"small",variant:"secondary"}),a.jsx(Me,{label:u.remove,onClick:d,style:{width:be.buttonWidth.value(r)},size:"small",variant:"danger"})]})}):a.jsx(Ot,{className:"delete-icon-wrapper",onClick:()=>c(e),children:a.jsx(Fa,{width:p[3],height:p[3],color:N.important})}):null]})},yt=({isSectionDisabled:e,onAddOfficerSection:o})=>{const l=k.getLocalizedStrings().companyPassport;return e!=null?a.jsx($e,{}):a.jsxs(a.Fragment,{children:[a.jsxs(vt,{onClick:o,children:[a.jsx(Dt,{}),a.jsx(St,{children:l.companyOfficer.addOfficer})]}),a.jsx($e,{})]})},xe=(e,o)=>`${e}.${o}`,gt=s.div`
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  padding-top: ${t.sp3};
@@ -390,7 +390,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c6 as pa,B as k,j as a,aV as ma,F as ua,c
390
390
  width: ${t.sp3};
391
391
  height: ${t.sp3};
392
392
  color: ${e=>e.theme.colors.primary};
393
- `,Zt=()=>null,Gt=()=>null,Ve=e=>e.map(o=>Xt(o)),Xt=e=>({value:e,label:e}),M={width:new m(343,580,726),height:new m(p[6],p[6]),controlHeight:new m(p[6],p[6]),paddingTopBottom:new m(p[2],p[2]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4]),labelMarginTop:new m(p[2],p[2])};function Jt({isDisabled:e,label:o,multiSelectField:l,style:i}){const n=P();return a.jsxs(Kt,{size:n,style:i,isDisabled:e!=null,children:[a.jsx(Fe,{isDisabled:e,label:o.label,htmlFor:l.name,style:{marginLeft:M.labelMarginLeft.value(n),marginRight:M.labelMarginRight.value(n),marginTop:M.labelMarginTop.value(n),width:o.width??"auto"}}),a.jsx(kt,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",minHeight:M.controlHeight.value(n)}})]})}const Kt=s.div`
393
+ `,Zt=()=>null,Gt=()=>null,Ve=e=>e.map(o=>Xt(o)),Xt=e=>({value:e,label:e}),M={width:new m(343,580,726),height:new m(p[6],p[6]),controlHeight:new m(p[6],p[6]),paddingTopBottom:new m(p[2],p[2]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4]),labelMarginTop:new m(p[2],p[2])};function Kt({isDisabled:e,label:o,multiSelectField:l,style:i}){const n=P();return a.jsxs(Jt,{size:n,style:i,isDisabled:e!=null,children:[a.jsx(Fe,{isDisabled:e,label:o.label,htmlFor:l.name,style:{marginLeft:M.labelMarginLeft.value(n),marginRight:M.labelMarginRight.value(n),marginTop:M.labelMarginTop.value(n),width:o.width??"auto"}}),a.jsx(kt,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",minHeight:M.controlHeight.value(n)}})]})}const Jt=s.div`
394
394
  display: flex;
395
395
  flex-direction: row;
396
396
  align-items: flex-start;
@@ -436,7 +436,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c6 as pa,B as k,j as a,aV as ma,F as ua,c
436
436
  background-color: ${e=>e.isDisabled?e.theme.colors.grey5:e.theme.colors.background};
437
437
  }
438
438
  }
439
- `,Be={labelWidth:new m(160,160,160),largeLabelWidth:new m(150,215,215)};function Qt(e){const o=P(),l=$a(),[i,n]=_.useState(!1),{companyPassport:c,commonSetUp:{businessVerification:f},common:{documents:d}}=k.getLocalizedStrings(),{fileProps:r,companyFiles:u,deleteFileStatusById:y,updateFileStatusById:b,sectionId:h,isDisabled:$,companyTaxInfo:I,style:S}=e,j=Be.labelWidth.value(o),g=Be.largeLabelWidth.value(o),O=!V.hasAdminLevelAccess(l.loggedInUserRole??[]),D=u.find(x=>x.documentType==="tax_ein");return a.jsxs(eo,{style:S,children:[a.jsx(to,{children:c.companyTaxInfo.title}),a.jsxs(ao,{children:[a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.taxIdOrEIN,width:j},text:{type:"text",name:G(h,"taxIdOrEIN"),placeholder:c.companyTaxInfo.taxIdOrEINPlaceholder,defaultValue:O===!0?c.protectedContent:I?.taxIdOrEIN,options:{pattern:wa},autoComplete:"new-password"},protectedInfoText:O===!0?c.companyTaxInfo.adminPrivilegeRequired:void 0}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.dunsNumber,width:j},text:{type:"text",name:G(h,"dunsNumber"),placeholder:c.companyTaxInfo.dunsNumberPlaceholder,defaultValue:I?.dunsNumber,options:{pattern:/^\d{9}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.naicsCode,width:j},text:{type:"text",name:G(h,"naicsCode"),placeholder:c.companyTaxInfo.naicsCodePlaceholder,defaultValue:I?.naicsCode,options:{pattern:/^([2-9]{1}[0-9]{1}|[1-9]{1}[1-9]{1})\d{0,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.sicCode,width:j},text:{type:"text",name:G(h,"sicCode"),placeholder:c.companyTaxInfo.sicCodePlaceholder,defaultValue:I?.sicCode,options:{pattern:/^\d{2,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(Jt,{isDisabled:$,label:{label:c.companyTaxInfo.taxesFiledYears,width:j},multiSelectField:{name:G(h,"taxesFiledYears"),placeholder:c.companyTaxInfo.taxesFiledYearsPlaceholder,defaultValue:{selectedOptions:I?.taxesFiledYears.map(x=>x.toString())??[],allOptions:V.getYearsList().map(x=>x.toString())}}}),a.jsx(ee,{}),a.jsx(Je,{name:G(h,"einDocument"),isDisabled:$,sizeLimit:qe,deleteFileStatusById:y,updateFileStatusById:b,filesEndPoint:r.filesEndPoint,authParams:r.authParams,label:{label:f.einDocument,width:g},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:D,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:i,updateFilesEntity:r.updateFilesEntity,onEditFileName:r.onEditFileName,onDeleteFile:r.onDeleteFile,onFileSizeError:x=>n(x)}),a.jsx(oo,{windowSize:o,isError:i,children:d.formatDocumentText10MB})]})]})}const G=(e,o)=>`${e}.${o}`,eo=s.div`
439
+ `,Be={labelWidth:new m(160,160,160),largeLabelWidth:new m(150,215,215)};function Qt(e){const o=P(),l=$a(),[i,n]=_.useState(!1),{companyPassport:c,commonSetUp:{businessVerification:f},common:{documents:d}}=k.getLocalizedStrings(),{fileProps:r,companyFiles:u,deleteFileStatusById:y,updateFileStatusById:b,sectionId:h,isDisabled:$,companyTaxInfo:I,style:S}=e,j=Be.labelWidth.value(o),g=Be.largeLabelWidth.value(o),O=!V.hasAdminLevelAccess(l.loggedInUserRole??[]),D=u.find(x=>x.documentType==="tax_ein");return a.jsxs(eo,{style:S,children:[a.jsx(to,{children:c.companyTaxInfo.title}),a.jsxs(ao,{children:[a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.taxIdOrEIN,width:j},text:{type:"text",name:G(h,"taxIdOrEIN"),placeholder:c.companyTaxInfo.taxIdOrEINPlaceholder,defaultValue:O===!0?c.protectedContent:I?.taxIdOrEIN,options:{pattern:wa},autoComplete:"new-password"},protectedInfoText:O===!0?c.companyTaxInfo.adminPrivilegeRequired:void 0}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.dunsNumber,width:j},text:{type:"text",name:G(h,"dunsNumber"),placeholder:c.companyTaxInfo.dunsNumberPlaceholder,defaultValue:I?.dunsNumber,options:{pattern:/^\d{9}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.naicsCode,width:j},text:{type:"text",name:G(h,"naicsCode"),placeholder:c.companyTaxInfo.naicsCodePlaceholder,defaultValue:I?.naicsCode,options:{pattern:/^([2-9]{1}[0-9]{1}|[1-9]{1}[1-9]{1})\d{0,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.sicCode,width:j},text:{type:"text",name:G(h,"sicCode"),placeholder:c.companyTaxInfo.sicCodePlaceholder,defaultValue:I?.sicCode,options:{pattern:/^\d{2,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(Kt,{isDisabled:$,label:{label:c.companyTaxInfo.taxesFiledYears,width:j},multiSelectField:{name:G(h,"taxesFiledYears"),placeholder:c.companyTaxInfo.taxesFiledYearsPlaceholder,defaultValue:{selectedOptions:I?.taxesFiledYears.map(x=>x.toString())??[],allOptions:V.getYearsList().map(x=>x.toString())}}}),a.jsx(ee,{}),a.jsx(Ke,{name:G(h,"einDocument"),isDisabled:$,sizeLimit:qe,deleteFileStatusById:y,updateFileStatusById:b,filesEndPoint:r.filesEndPoint,authParams:r.authParams,label:{label:f.einDocument,width:g},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:D,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:i,updateFilesEntity:r.updateFilesEntity,onEditFileName:r.onEditFileName,onDeleteFile:r.onDeleteFile,onFileSizeError:x=>n(x)}),a.jsx(oo,{windowSize:o,isError:i,children:d.formatDocumentText10MB})]})]})}const G=(e,o)=>`${e}.${o}`,eo=s.div`
440
440
  display: flex;
441
441
  flex-direction: column;
442
442
  padding-top: ${t.sp3};
@@ -550,7 +550,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c6 as pa,B as k,j as a,aV as ma,F as ua,c
550
550
  background-color: ${e=>e.theme.colors.grey3};
551
551
  min-height: 1px;
552
552
  max-height: 1px;
553
- `,we={width:new m(343,580,726),buttonWidth:new m(85,85)},_e="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",De="primaryContact",Se="companyOfficer",Oe="zeniFinanceTeam";function Wo(e){const o=P(),l=Ae(),{companyPassportView:i,isZeniUser:n,filesEndPoint:c,authParams:f,allIndustries:d,isDisabled:r,isSettings:u=!1,onCompanyDetailsChanged:y,onCompanyOfficerUpdated:b,onNewCompanyOfficerAdded:h,onPrimaryContactDetailsUpdated:$,onNewCompanyOfficerRemoved:I,onSaveAll:S,onAddressClick:j,onScheduleClick:g,onBackClick:O,onResetClick:D,onEditFileName:x,updateFilesEntity:B,onDeleteFile:me,onClickMenuIcon:J}=e,{companyView:K,localData:H,deleteFileStatusById:ke,updateFileStatusById:Te}=i,{companyFiles:te}=H,Ne={authParams:f,filesEndPoint:c,onEditFileName:x,onDeleteFile:me,updateFilesEntity:B},[Q,oe]=_.useState(void 0),{companyDetails:aa,primaryContact:ta,companyOfficerUpdateStatus:oa,updateStatus:Y}=H,{localData:le,addressStatus:la}=aa,Pe=ca(Y.fetchState),ie=Object.values(oa).filter(T=>T.localData!=null),W=da({mode:"all",defaultValues:Ye(H,d)});_.useEffect(()=>()=>{oe(void 0)},[]),_.useEffect(()=>{Pe==="In-Progress"&&(Y.fetchState==="Completed"||Y.fetchState==="Error")&&(W.reset(Ye(H,d)),Q!==Y.fetchState&&oe(Y.fetchState))},[Q,W,Pe,Y,H,K,d,te]);const ia=async(T,w)=>{if(T.includes(Ie)||T.includes(je)||T.includes(ve)||T.includes(Oe)){const{companyInfo:C,companyIncInfo:F,companyTaxInfo:A,zeniFinanceTeam:ue}=w;y({companyInfo:C,incInfo:F,taxDetails:A,zeniFinanceTeam:ue})}else if(T.includes(De)){$(w.primaryContact);const C=w.companyOfficer.map(F=>F.userId);if(w.primaryContact.userId!=null&&C.includes(w.primaryContact.userId)){const F=C.findIndex(A=>A===w.primaryContact.userId);F>=0&&b({...w.companyOfficer[F],name:w.primaryContact.name,officerType:`Officer_${F+1}`})}}else if(T.includes(Se)){const C=parseInt(T.split(".")[1]);if(C>=0)b({...w.companyOfficer[C],officerType:`Officer_${C+1}`}),w.companyOfficer[C].userId!=null&&w.companyOfficer[C].userId===w.primaryContact.userId&&$({...w.primaryContact,name:w.companyOfficer[C].name});else if(w.companyOfficer.length>ie.length){const F=w.companyOfficer[w.companyOfficer.length-1];h(F)}else{const F=w.companyOfficer.filter(A=>A.officerType!=null);if(F.length<ie.length){const A=F.map((ue,ra)=>{const Le={...ue,officerType:`Officer_${ra+1}`};return b(Le),Le});F.length<ie.length&&(I(`Officer_${F.length+1}`),W.reset({companyOfficer:A}))}}}};_.useEffect(()=>{const T=W.watch((w,{name:C})=>{C!=null&&w!=null&&pa(()=>ia(C,w))});return()=>{T.unsubscribe()}});const sa=W.handleSubmit(T=>{Q!=null&&oe(void 0),S()}),{companyPassport:se,common:{settings:na}}=k.getLocalizedStrings();if(K==null)throw new Error("Company View is null");return a.jsxs(Do,{children:[a.jsx(ma,{title:se.title,backgroundColor:l.colors.grey4,style:{zIndex:3},onBackClick:O,showBackButton:!u,showMenuIcon:u?o==="medium-compact"||o==="small":!1,source:"CompanyPassportPage",onClickMenuIcon:J}),Q!=null?a.jsx(Ka,{fetchState:Q,onRemoveSnackbar:()=>oe(void 0)}):null,a.jsxs(So,{children:[a.jsx(Oo,{windowSize:o,children:u?na.infoText.companyDetails:se.quickAccessInfo}),a.jsx(ua,{...W,children:a.jsxs("form",{id:Re(_e),onSubmit:sa,children:[a.jsx(ct,{sectionId:Ie,companyInfo:le?.companyInfo,companyViewData:K,companyAddress:la,isDisabled:r,onCompanyAddressClick:j,allIndustries:d}),a.jsx(Qa,{sectionId:je,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyIncInfo:le?.incInfo,fileProps:Ne,isDisabled:r}),a.jsx(Qt,{sectionId:ve,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyTaxInfo:le?.taxDetails,fileProps:Ne,isDisabled:r}),a.jsx(io,{sectionId:De,primaryContact:ta.localData,isDisabled:r}),a.jsx(ft,{companyOfficers:ie,sectionId:Se,isDisabled:r,onOfficerAddressClick:j}),a.jsx($o,{data:K,companyInfo:le?.companyInfo,isDisabled:r,isZeniUser:n,sectionId:Oe,onScheduleClick:g})]})})]}),ha(W.formState.dirtyFields)||V.isCompanyPassportDataToBeSaved(H,K,te)?a.jsx(fa,{formId:Re(_e),primaryBtn:{label:se.save,isLoading:Y.fetchState==="In-Progress",style:{width:we.buttonWidth.value(o)},isDisabled:e.isDisabled!=null},cancelBtn:{label:se.cancel,style:{width:we.buttonWidth.value(o)},onClick:()=>{W.reset(),D()}}}):null]})}const Re=e=>`${e}_form`,Ye=(e,o)=>{const{companyDetails:l,primaryContact:i,companyOfficerUpdateStatus:n}=e,c=k.getLocalizedStrings().companyPassport,f=l.localData?.incInfo.fileId!=null?[l.localData?.incInfo.fileId]:[],d=l.localData?.taxDetails.fileId!=null?[l.localData?.taxDetails.fileId]:[];return{[Ie]:{...xa(l.localData?.companyInfo,["meetingLink"]),businessModel:{selectedOption:l.localData?.companyInfo?.businessModel,allOptions:c.companyInfo.allBusinessModels},website:l.localData?.companyInfo.website?.toString()??"",industry:{selectedOption:l.localData?.companyInfo.industry,allOptions:o?.map(r=>r.code)},firstMonthOfFY:l.localData?.companyInfo.firstMonthOfFY},[ve]:{...l.localData?.taxDetails,taxesFiledYears:{selectedOptions:l.localData?.taxDetails.taxesFiledYears.map(r=>r.toString())??[],allOptions:V.getYearsList().map(r=>r.toString())},einDocument:e.companyFiles.find(r=>r.documentType==="tax_ein"),fileIds:d},[je]:{typeOfInc:{selectedOption:l.localData?.incInfo?.typeOfInc,allOptions:c.companyIncInfo.allTypesOfIncorporation},stateOfInc:{selectedOption:l.localData?.incInfo?.stateOfInc,allOptions:c.companyIncInfo.allStatesOfIncorporation},incDate:l.localData?.incInfo.incDate?.toDate(),certificateOfIncorporation:e.companyFiles.find(r=>r.documentType==="certificate_of_incorporation"),fileIds:f},[De]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[Se]:Object.values(n).filter(r=>r.localData!=null).map(r=>{const u=r.localData;return{userId:u.userId,officerType:u.officerType,name:{firstName:u.firstName,lastName:u.lastName},email:u.email,phone:u.phone}}),[Oe]:{meetingLink:l.localData?.companyInfo.meetingLink?.toString()??""}}},Do=s.div`
553
+ `,we={width:new m(343,580,726),buttonWidth:new m(85,85)},_e="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",De="primaryContact",Se="companyOfficer",Oe="zeniFinanceTeam";function Wo(e){const o=P(),l=Ae(),{companyPassportView:i,isZeniUser:n,filesEndPoint:c,authParams:f,allIndustries:d,isDisabled:r,isSettings:u=!1,onCompanyDetailsChanged:y,onCompanyOfficerUpdated:b,onNewCompanyOfficerAdded:h,onPrimaryContactDetailsUpdated:$,onNewCompanyOfficerRemoved:I,onSaveAll:S,onAddressClick:j,onScheduleClick:g,onBackClick:O,onResetClick:D,onEditFileName:x,updateFilesEntity:B,onDeleteFile:me,onClickMenuIcon:K}=e,{companyView:J,localData:H,deleteFileStatusById:ke,updateFileStatusById:Te}=i,{companyFiles:te}=H,Ne={authParams:f,filesEndPoint:c,onEditFileName:x,onDeleteFile:me,updateFilesEntity:B},[Q,oe]=_.useState(void 0),{companyDetails:aa,primaryContact:ta,companyOfficerUpdateStatus:oa,updateStatus:Y}=H,{localData:le,addressStatus:la}=aa,Pe=ca(Y.fetchState),ie=Object.values(oa).filter(T=>T.localData!=null),W=da({mode:"all",defaultValues:Ye(H,d)});_.useEffect(()=>()=>{oe(void 0)},[]),_.useEffect(()=>{Pe==="In-Progress"&&(Y.fetchState==="Completed"||Y.fetchState==="Error")&&(W.reset(Ye(H,d)),Q!==Y.fetchState&&oe(Y.fetchState))},[Q,W,Pe,Y,H,J,d,te]);const ia=async(T,w)=>{if(T.includes(Ie)||T.includes(je)||T.includes(ve)||T.includes(Oe)){const{companyInfo:C,companyIncInfo:F,companyTaxInfo:A,zeniFinanceTeam:ue}=w;y({companyInfo:C,incInfo:F,taxDetails:A,zeniFinanceTeam:ue})}else if(T.includes(De)){$(w.primaryContact);const C=w.companyOfficer.map(F=>F.userId);if(w.primaryContact.userId!=null&&C.includes(w.primaryContact.userId)){const F=C.findIndex(A=>A===w.primaryContact.userId);F>=0&&b({...w.companyOfficer[F],name:w.primaryContact.name,officerType:`Officer_${F+1}`})}}else if(T.includes(Se)){const C=parseInt(T.split(".")[1]);if(C>=0)b({...w.companyOfficer[C],officerType:`Officer_${C+1}`}),w.companyOfficer[C].userId!=null&&w.companyOfficer[C].userId===w.primaryContact.userId&&$({...w.primaryContact,name:w.companyOfficer[C].name});else if(w.companyOfficer.length>ie.length){const F=w.companyOfficer[w.companyOfficer.length-1];h(F)}else{const F=w.companyOfficer.filter(A=>A.officerType!=null);if(F.length<ie.length){const A=F.map((ue,ra)=>{const Le={...ue,officerType:`Officer_${ra+1}`};return b(Le),Le});F.length<ie.length&&(I(`Officer_${F.length+1}`),W.reset({companyOfficer:A}))}}}};_.useEffect(()=>{const T=W.watch((w,{name:C})=>{C!=null&&w!=null&&pa(()=>ia(C,w))});return()=>{T.unsubscribe()}});const sa=W.handleSubmit(T=>{Q!=null&&oe(void 0),S()}),{companyPassport:se,common:{settings:na}}=k.getLocalizedStrings();if(J==null)throw new Error("Company View is null");return a.jsxs(Do,{children:[a.jsx(ma,{title:se.title,backgroundColor:l.colors.grey4,style:{zIndex:3},onBackClick:O,showBackButton:!u,showMenuIcon:u?o==="medium-compact"||o==="small":!1,source:"CompanyPassportPage",onClickMenuIcon:K}),Q!=null?a.jsx(Ja,{fetchState:Q,onRemoveSnackbar:()=>oe(void 0)}):null,a.jsxs(So,{children:[a.jsx(Oo,{windowSize:o,children:u?na.infoText.companyDetails:se.quickAccessInfo}),a.jsx(ua,{...W,children:a.jsxs("form",{id:Re(_e),onSubmit:sa,children:[a.jsx(ct,{sectionId:Ie,companyInfo:le?.companyInfo,companyViewData:J,companyAddress:la,isDisabled:r,onCompanyAddressClick:j,allIndustries:d}),a.jsx(Qa,{sectionId:je,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyIncInfo:le?.incInfo,fileProps:Ne,isDisabled:r}),a.jsx(Qt,{sectionId:ve,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyTaxInfo:le?.taxDetails,fileProps:Ne,isDisabled:r}),a.jsx(io,{sectionId:De,primaryContact:ta.localData,isDisabled:r}),a.jsx(ft,{companyOfficers:ie,sectionId:Se,isDisabled:r,onOfficerAddressClick:j}),a.jsx($o,{data:J,companyInfo:le?.companyInfo,isDisabled:r,isZeniUser:n,sectionId:Oe,onScheduleClick:g})]})})]}),ha(W.formState.dirtyFields)||V.isCompanyPassportDataToBeSaved(H,J,te)?a.jsx(fa,{formId:Re(_e),primaryBtn:{label:se.save,isLoading:Y.fetchState==="In-Progress",style:{width:we.buttonWidth.value(o)},isDisabled:e.isDisabled!=null},cancelBtn:{label:se.cancel,style:{width:we.buttonWidth.value(o)},onClick:()=>{W.reset(),D()}}}):null]})}const Re=e=>`${e}_form`,Ye=(e,o)=>{const{companyDetails:l,primaryContact:i,companyOfficerUpdateStatus:n}=e,c=k.getLocalizedStrings().companyPassport,f=l.localData?.incInfo.fileId!=null?[l.localData?.incInfo.fileId]:[],d=l.localData?.taxDetails.fileId!=null?[l.localData?.taxDetails.fileId]:[];return{[Ie]:{...xa(l.localData?.companyInfo,["meetingLink"]),businessModel:{selectedOption:l.localData?.companyInfo?.businessModel,allOptions:c.companyInfo.allBusinessModels},website:l.localData?.companyInfo.website?.toString()??"",industry:{selectedOption:l.localData?.companyInfo.industry,allOptions:o?.map(r=>r.code)},firstMonthOfFY:l.localData?.companyInfo.firstMonthOfFY},[ve]:{...l.localData?.taxDetails,taxesFiledYears:{selectedOptions:l.localData?.taxDetails.taxesFiledYears.map(r=>r.toString())??[],allOptions:V.getYearsList().map(r=>r.toString())},einDocument:e.companyFiles.find(r=>r.documentType==="tax_ein"),fileIds:d},[je]:{typeOfInc:{selectedOption:l.localData?.incInfo?.typeOfInc,allOptions:c.companyIncInfo.allTypesOfIncorporation},stateOfInc:{selectedOption:l.localData?.incInfo?.stateOfInc,allOptions:c.companyIncInfo.allStatesOfIncorporation},incDate:l.localData?.incInfo.incDate?.toDate(),certificateOfIncorporation:e.companyFiles.find(r=>r.documentType==="certificate_of_incorporation"),fileIds:f},[De]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[Se]:Object.values(n).filter(r=>r.localData!=null).map(r=>{const u=r.localData;return{userId:u.userId,officerType:u.officerType,name:{firstName:u.firstName,lastName:u.lastName},email:u.email,phone:u.phone}}),[Oe]:{meetingLink:l.localData?.companyInfo.meetingLink?.toString()??""}}},Do=s.div`
554
554
  display: flex;
555
555
  min-height: 100%;
556
556
  flex-direction: column;
@@ -0,0 +1,36 @@
1
+ import{a as R,ge as M,M as $,j as e,F as T,T as f,c6 as q,cf as z,cc as G,l as K,o as a,ca as _,gf as H,a4 as W,c0 as Y,bo as Z,gg as J}from"./index-Dhj1_7g2.js";import{b as g,f as b,n}from"./vendor-CnQcJ2Lu.js";import{$ as Q}from"./LabeledAddressValue-CCd3y8zQ-iyUnGXzQ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const t=$.getLocalizedStrings(),x="completeProfilePage",r="basicDetailsSection",y="addressSection",d=(o,m)=>`${o}.${m}`,he=({userEmail:o,googleAPIKey:m,otpChallenge:j,sendOtpStatus:v,verifyOtpStatus:h,saveStatus:w,onSave:u,onGetOtp:P,onVerifyOtp:S,onResendOtp:O})=>{const[s,c]=g.useState(!1),[V,C]=g.useState(!1),i=R({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:o,dateOfBirth:void 0,phone:"",address:void 0}}}),F=M({control:i.control,name:`${r}.address`}),{dateFormat:I}=$.getLocalizedStrings(),N=i.handleSubmit(l=>{u&&u(l)}),L=()=>{const l=i.getValues(`${r}.phone`);l!=null&&l.trim().length>0&&P(l)},k=(l,p)=>{S(l,p)},D=l=>{l!=null&&l.trim().length>0&&O(l)},B=()=>{c(!0)},E=()=>{c(!1)},A=()=>{const l=i.getValues(`${y}`);if(l!=null){const p=J(l);i.setValue(`${r}.address`,p)}c(!1)};return e.jsxs(U,{children:[e.jsxs(X,{children:[e.jsxs(ee,{children:[s&&e.jsx(oe,{onClick:E}),t.completeProfile.title]}),e.jsx(te,{children:e.jsx(T,{...i,children:e.jsxs("form",{id:`${x}_form`,onSubmit:N,children:[e.jsx(f,{controller:s===!1,children:e.jsxs(b.Fragment,{children:[e.jsx(q,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:t.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:d(r,"email")}}),e.jsx(z,{isDisabled:void 0,label:{label:t.common.labels.name,width:168},style:{width:"100%"},nameField:{name:d(r,"name"),placeHolder:{firstName:t.common.placeholder.firstNamePlaceholder,lastName:t.common.placeholder.lastNamePlaceholder,name:t.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),e.jsx(G,{isOptional:!0,label:{label:t.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:d(r,"dateOfBirth"),placeholder:t.common.placeholder.dobPlaceholder,dateFormat:I.visual.defaultInput,autoComplete:"off",maxDate:K.dateNow().subtract(18,"year")}}),e.jsx(Q,{isOptional:!0,label:{label:t.common.labels.address,width:168},addressValue:{placeholder:t.common.placeholder.addressPlaceholder,address:F,onClick:B},style:{width:"100%",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`}}),e.jsx(_,{isOptional:!0,label:{label:t.common.labels.phone,width:168},style:{width:"100%"},text:{name:d(r,"phone"),placeholder:t.common.placeholder.phonePlaceholder,defaultValue:"",autoComplete:"new-password"},errorInfoLabel:"",verificationErrorInfoLabel:t.common.errorMessage.invalidPhoneNumber,isPopupOpen:V,phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:L,onVerifyOtp:k,onResendOtp:D,isPhoneVerified:h.fetchState==="Completed",phoneVerificationStatus:h,getOtpStatus:v,openPopup:()=>{C(!0)},focusNotRequired:!0}})]})}),e.jsx(f,{controller:s===!0,children:e.jsx(b.Fragment,{children:e.jsx(H,{sectionId:y,googleAPIKey:m,isSubPage:!0})})})]})})})]}),e.jsx(W,{formId:s?void 0:`${x}_form`,primaryBtn:{label:s?t.companyPassport.address.saveAddress:t.common.footer.save,type:s?"button":"submit",onClick:s?A:void 0,isLoading:w.fetchState==="In-Progress"},showCancel:!1})]})},U=n.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ min-height: 100vh;
5
+ `,X=n.div`
6
+ display: flex;
7
+ flex-direction: column;
8
+ align-items: flex-start;
9
+ padding: ${a.sp5};
10
+ row-gap: ${a.sp3};
11
+ flex: 1;
12
+ `,ee=n(Y)`
13
+ color: ${o=>o.theme.colors.primary};
14
+ text-align: left;
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: flex-start;
18
+ gap: ${a.sp2};
19
+ `,oe=n(Z)`
20
+ cursor: pointer;
21
+ width: ${a.sp4};
22
+ height: ${a.sp4};
23
+ color: ${o=>o.theme.colors.hero};
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ &:hover {
28
+ color: ${o=>o.theme.colors.primary};
29
+ }
30
+ `,te=n.div`
31
+ background-color: ${o=>o.theme.colors.grey5};
32
+ border-radius: ${a.sp2};
33
+ width: 100%;
34
+ box-shadow: ${o=>o.theme.colors.elevation1};
35
+ border-color: ${o=>o.theme.colors.grey3};
36
+ `;export{he as default};
@@ -1 +1 @@
1
- import{d4 as m,ac as l,j as a,ak as f,o as n}from"./index-CiKxqrxk.js";import{b as i}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const c="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",b=({showConfetti:t})=>{const[e,p]=i.useState(t),[o,s]=m(c),[r]=l("ConfettiSuccess");return i.useEffect(()=>{t&&p(!0)},[t]),i.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),a.jsx(a.Fragment,{children:e&&o&&r!=null?a.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{s(!1),p(!1)},animationData:r,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{b as default};
1
+ import{d1 as m,ac as l,j as a,ak as f,o as n}from"./index-Dhj1_7g2.js";import{b as i}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const c="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",b=({showConfetti:t})=>{const[e,p]=i.useState(t),[o,s]=m(c),[r]=l("ConfettiSuccess");return i.useEffect(()=>{t&&p(!0)},[t]),i.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),a.jsx(a.Fragment,{children:e&&o&&r!=null?a.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{s(!1),p(!1)},animationData:r,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{b as default};