@zeniai/web-cockpit-ui 1.14.24-dev → 1.14.25-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 (242) hide show
  1. package/dist/assets/{ACHDetailsPage-DZv7I3Jm-zPHhT4Vj.js → ACHDetailsPage-Dnaajiit-DPQvVIrY.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DCq95N_N-DO8MzOBI.js → AIPerformancePage-Daw-cRXC-BnOl0sSl.js} +24 -24
  3. package/dist/assets/{AccountInfoPage-wfDS5ToF-BkRJ-lxL.js → AccountInfoPage-Dr_EV68J-Dy7B8Ixb.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-dgeBtGlm-BSaBGsXw.js → AccountInfoPageContent-CC5MUG47-DaadDuh7.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-CqjvVPUE-Cma-cVvt.js → AccountLockedInfoModal-wwzfemk2-D_gLp3zY.js} +2 -2
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BJ1TTvni-CnFKI7ya.js → AccountReconDetailsDrawerPage-CxLOKPZL-DXp_tiIi.js} +5 -5
  7. package/dist/assets/{AccountRow-99zfxKet-iP3hUTyF.js → AccountRow-CE24vibs-BeG7a0dl.js} +31 -31
  8. package/dist/assets/{AccountsPromoCardStack-CZwrQBcr-BLPwkeVU.js → AccountsPromoCardStack-DIj8Lzw_-D6FaQOg3.js} +25 -25
  9. package/dist/assets/{AddAddressForCardDrawer-BcOX27nY-CA-KCO8n.js → AddAddressForCardDrawer-DkS25_j--r1d3UvOC.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CoW0Ppg4-WAfWgl1v.js → AddToWalletPage-Dea21gHA-Bp4QNxQm.js} +17 -17
  11. package/dist/assets/{AgingReportsPage-Dgi5oFl4-Cao6O7NF.js → AgingReportsPage-B0QeJFi3-sZ5UMlim.js} +1 -1
  12. package/dist/assets/{AllUserItems-6iESftSq-BBGiJxHd.js → AllUserItems-B4hCDMjV-gKfLm3-3.js} +7 -7
  13. package/dist/assets/{ApAgingDetailPage-jEL75hOV-BLy4yEPM.js → ApAgingDetailPage-DaJoS0dH-DfkxWfAu.js} +3 -3
  14. package/dist/assets/{AppBasePage-CMHbFdBh-DTT6hgO7.js → AppBasePage-DssduDyW-DFTlQl-q.js} +5 -5
  15. package/dist/assets/{AppDrawerContent-NAyrnDCL-B7ak2Xor.js → AppDrawerContent-CbbgZnfp-DzI9LWAe.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-BWraRVsT-BRbAilw6.js → ApprovalRulesSettingsPage-BXmqQlwD-CWFKCLKr.js} +3 -3
  17. package/dist/assets/{ArAgingChart-DPrIHwSE-ym_zT_Xu.js → ArAgingChart-D6JqUDEG-AFSroOat.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-CdNiD7uR-DccUXEIa.js → ArAgingDetailPage-DsmlwAqB--L9cmpiU.js} +1 -1
  19. package/dist/assets/{AttachmentView-Cmh726Zl-C82E74gy.js → AttachmentView-C1-yT0s8-CT_a09u3.js} +6 -6
  20. package/dist/assets/{BankAccountSection-jRnEB-Ut-BpoXdxMl.js → BankAccountSection-Cb6aph-a-DuZ4WmNC.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-KznYA-cf-CV3aOKhB.js → BankAccountWarningSection-EhX6uury-BPk65Kcm.js} +18 -18
  22. package/dist/assets/{BankConnectionsSettingsPage-BXrsOxcg-CZU1wEnM.js → BankConnectionsSettingsPage-CM5grE5E-kW8remzx.js} +9 -9
  23. package/dist/assets/{BillDetailPage-glKjF2MJ-CxnS8ehW.js → BillDetailPage-BK_uvtAn-1i2teGn-.js} +7 -7
  24. package/dist/assets/BillPayApprovalRuleDetailPage-9iw179oG-DBwy8M8j.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-jctlpXwj-sMvcDhpz.js → BillPayApprovalRulesPage-CodIhk9Z-BxI29Egp.js} +7 -7
  26. package/dist/assets/BillPayPromoPage-CmIXJyPx-qo9MiUmN.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-UfM6FOqW-wZRanfNP.js → BillPaySetUpPage-A_oRpNoW-CzrXD8De.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BfMIxeqM-C_WtlbYK.js → BillingSettingsPage-BEDmZgpH-CExdBU0e.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DhoLC2aT-Cih70QQk.js → BillsBulkReviewDrawerPage-BZhQ9qq5-CCCPnCXA.js} +1 -1
  30. package/dist/assets/{BoxItem-CIOib-WX-Cvut8WLk.js → BoxItem-7efiVHrX-gIWD7SzU.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Czf-y16x-BBZA7C_w.js → BusinessVerificationPage-CGyAMZF_-M7hgZV6x.js} +8 -8
  32. package/dist/assets/CardNumberSubText-DWvfR19t-DE7est1t.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-BOTxd8DW-CNmZsYqR.js → CashbackDetailPage-CtUV5555-CGUzig_d.js} +19 -19
  34. package/dist/assets/{ChargeCardDetailPage-DbtvRfDc-CRGJceoy.js → ChargeCardDetailPage-DDh9vz3a-Cnl8i_PL.js} +23 -23
  35. package/dist/assets/{ChargeCardListPage-Q1zat_TQ-BbazZeau.js → ChargeCardListPage-D8cV_Pir-Cr7nCz19.js} +18 -18
  36. package/dist/assets/{ChargeCardListTable-CKH-EZW4-CiPC1KQt.js → ChargeCardListTable-DHS1cdle-DAwaOV_c.js} +19 -19
  37. package/dist/assets/ChargeCardPromoPage-CpOdwFtx-W_T6Yn6m.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-DM15gWD1-rI_IQnGw.js → ChargeCardSetupPage-sV183SET-D5ryWFlf.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-xedf3XEE-CzGfRvhd.js → ChargeCardStatementsPage-C5VALN0g-DYKxahz3.js} +6 -6
  40. package/dist/assets/ChargeCardUtils-aPC5GoNp-DNIL0uw_.js +1 -0
  41. package/dist/assets/{ChaseOverlay-IbWtzNzT-CiTCJc7A.js → ChaseOverlay-De4Qu9qP-B6ZR5Jtp.js} +7 -7
  42. package/dist/assets/CheckDepositDrawerPage-Bf9BNkbA-DtOLd0xX.js +206 -0
  43. package/dist/assets/{CollapsableReportTable-jOFcWQi9-BD7j44zD.js → CollapsableReportTable-C4NioPjf-CL8A5qpd.js} +109 -109
  44. package/dist/assets/{CompanyOfficerDetailsSection-DMCZTk1e-CevbfEQw.js → CompanyOfficerDetailsSection-BjkrtiV9-wJhKxYTD.js} +14 -14
  45. package/dist/assets/{CompanyPassportCard-BbJLMFqe-CAuk2TxY.js → CompanyPassportCard-CXFn-wF8-DFs13HCt.js} +6 -6
  46. package/dist/assets/{CompanyPassportPage-BwCMcjB9-C5l65FSQ.js → CompanyPassportPage-BDB3rjFV-q4ymY5oH.js} +9 -9
  47. package/dist/assets/{CompleteProfile-Dz4laW45-D0LCAfKu.js → CompleteProfile-trSw9pbM-C9tjupH9.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-B2j3QxzW-BoOT7g5H.js → ConfettiBurst-DGVvcZr3-C4LVa8Qf.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-z2chPZUl-moxdaTde.js → CreateOrEditVendorPage-C9Mf_ICr-Gp1eqMoH.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Z9RiL1h7-BimNMSu_.js → CreditCardPaymentDrawerPage-DWLfJzPP-Bux3br_f.js} +21 -21
  51. package/dist/assets/{CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js → CreditCardPaymentPlgSection-BDA8jYAa-Dyv79lbf.js} +13 -13
  52. package/dist/assets/{CurrencySelectField-CxNprN2u-CPSD5Bje.js → CurrencySelectField-BwDZkugY-CnGwREoZ.js} +5 -5
  53. package/dist/assets/{CustomerOnboardingActivationPage-diAJ07bX-sBysngto.js → CustomerOnboardingActivationPage-B5MfS1sv-Baeo1JJB.js} +7 -7
  54. package/dist/assets/CustomerOnboardingContainerPage-udfu9eI--BS2ZxOvL.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton--8DBjaCm-B9kNPkv6.js → CustomerOnboardingDetailPageSkeleton-CMo7leFT-AMqD-6Q4.js} +11 -11
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Ccq8kI-v-D3QEvGB2.js → CustomerOnboardingNoStepsPage-DRJaAZhA-iimuZEwJ.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-s3GNwP8c-p7WLMkGR.js → CustomerOnboardingPage-BKk_PDqM-D-4x8Jow.js} +3 -3
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-C-tToXNK-4Ab_CkNQ.js → CustomerOnboardingProductSuitePage-_Vl2g0gl-10ZLiwPM.js} +7 -7
  59. package/dist/assets/{Dashboard-BtcnzaY6-gJck50nw.js → Dashboard-els5FzHO-Dh7hNslD.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-C6jLfLtF-BPfMWD5H.js → DashboardReportPage-BkqXGUF0-DT4CcRgQ.js} +27 -27
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-s8Nl8CmH-Dm61fSUI.js → DashboardSidebarBackgroundAnimation-yg8GX_hV-CX2KQ6LO.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-Bm63W_1e-5FIgWMcL.js → DepositAccTransactionItem-CjHyYNYu-RBBjBoNW.js} +3 -3
  63. package/dist/assets/DepositAccTransactionListPage-B1rERpKn-DzZA-c5-.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-DX0BA5i3-Ea2aCTYV.js → DomesticWireDetailsPage-CoKdnOHK-BHUXWz4M.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-BcH72YTL-B8MaexAj.js → DownloadOverlay-F_OSkI0t-BVAyHat1.js} +6 -6
  66. package/dist/assets/{DrawerPage-CzHhh0IP-BIFSEwpr.js → DrawerPage-CKRgC8zD-D0TMwLtR.js} +10 -10
  67. package/dist/assets/{EditPeoplePage-Z5btEDax-BKTta_xp.js → EditPeoplePage-CbHzmCDq-DfkIM-kP.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-D_FsqRgU-DhM4BWkK.js → EditReimbursementDetailPage-ChXC9rfg-5j-r9uid.js} +17 -17
  69. package/dist/assets/{EntityDetailPage-Bc4YVpPC-DWs1zPrx.js → EntityDetailPage-427PoMHb-DugrODtd.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-Ba6AWxNi-BdQCQZ3F.js → EntitySummarySection-bVBpyGBB-B2MApz9k.js} +9 -9
  71. package/dist/assets/ExpenseAutomationOverviewPage-DuVNFnJ1-DKgdA2WQ.js +222 -0
  72. package/dist/assets/{ExpenseAutomationPage-EjI20a6v-rIac0d4o.js → ExpenseAutomationPage-Btw1vMsR-CWjy7SIj.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-562vstqT-BTrZQzDN.js → ExpressPayPage-dxAJ34CZ-CQbAjueg.js} +8 -8
  74. package/dist/assets/{FeaturePreviewPage-eUvRNjsx-D93wu9_Y.js → FeaturePreviewPage-DV9L7b41-XD4D9byb.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-D60JM8h_-WgnL9DSD.js → FollowStepsSection-DrwqT5qI-DLguenxm.js} +11 -11
  76. package/dist/assets/{GlobalReviewListPage-BpXEtrb4-CJJjyGfo.js → GlobalReviewListPage-B8GTsN3z-DEt1AOjp.js} +7 -7
  77. package/dist/assets/{HelpButton-hflpTkYP-BxxKYxfC.js → HelpButton-BdkhmROe-Bd84gRvW.js} +4 -4
  78. package/dist/assets/{InformationCardStack-BsxmscQq-CSrArWRb.js → InformationCardStack-B4kayaXA-jbXyNSEh.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-5JDl2mCA-CZ5TshWK.js → InsightsCardStack-CtGUwH8B-C93opeZu.js} +9 -9
  80. package/dist/assets/InsightsSection-DLeJHy_5-CQC3yXku.js +27 -0
  81. package/dist/assets/{IntegrationsSettingsPage-MQDeidS6-BKVTNE0x.js → IntegrationsSettingsPage-V5CRVTE7-CujfgQ2i.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-CpT4WPn3-b0nQCCWc.js → InternationalWireSwiftDetailsPage-YScZkZ3T-B4isfB0V.js} +14 -14
  83. package/dist/assets/{InternationalWireVerificationPage-DlBFLwxy-BIViCBlF.js → InternationalWireVerificationPage-CU7nDSLB-57YsQsYb.js} +7 -7
  84. package/dist/assets/{InviteFormPage-D0QCEMkX-DZr12vmY.js → InviteFormPage-CuKrTHPL-D0pCRRCl.js} +17 -17
  85. package/dist/assets/{InvitePageListView-CVf8HrhY-cBhycZNO.js → InvitePageListView-UnErwZjA-B6fQ6u5F.js} +24 -24
  86. package/dist/assets/{InvitePeoplePage-Dg7iuq2i-Cx5QFhMU.js → InvitePeoplePage-2Wt38URi-BnjdFSAB.js} +2 -2
  87. package/dist/assets/{InvoiceUploadSection-BuwWumE2-CTijWOqK.js → InvoiceUploadSection-DBeEv7pl-D7U5cZZb.js} +6 -6
  88. package/dist/assets/{IssueChargeCardPage-DL23WAiQ-CCNHr1-9.js → IssueChargeCardPage-CtOVKu2u-BaMeYx1Q.js} +9 -9
  89. package/dist/assets/{LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js → LabeledAddressValue-fMxbPIcj-L294sEHK.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-DLou-2Lm-30_LmoCw.js → LabeledAddressValueField-DlUmtYXY-Cs_gnXQQ.js} +2 -2
  91. package/dist/assets/{LabeledControlledCheckBoxField-DqrqiFhz-GyWAbp3D.js → LabeledControlledCheckBoxField-zGMeMXy8-CgAXI_Cv.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js → LabeledCreatableSingleSelectField-B2tnkBes-WTYRlYy4.js} +2 -2
  93. package/dist/assets/LabeledDocumentField-DIZb6TGh-BGGslw6p.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-BF37XlAJ-B3ToXjDJ.js → LabeledDropDownFormattedTextField-g9EUyLAN-C6fgQW4J.js} +5 -5
  95. package/dist/assets/{LabeledText-D4fC1Hz2-Cxv5m94v.js → LabeledText-DpHcCRTu-D7mPb_6F.js} +2 -2
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-B9c0Mx1N.js → LabeledUserSingleSelectWithSubtitlesField-CxqD4p8b-D40nlXRv.js} +10 -10
  97. package/dist/assets/{LabeledZeniRolesDropDownField-CTA3JLz4-D4MXXizm.js → LabeledZeniRolesDropDownField-CCEWFs00-DoEA7vPs.js} +5 -5
  98. package/dist/assets/{LinkJETransactionPage-CLAyFAJh-Dm40KZjj.js → LinkJETransactionPage-CHRrLxA5-DUc0uYck.js} +8 -8
  99. package/dist/assets/{LowBalancePopup-TCSP5zrD-BmN6CG0D.js → LowBalancePopup-Ciah5OLh-BrGyf1Jf.js} +2 -2
  100. package/dist/assets/{MagicLinkACHDetailsPage-C9sNEDPT-D6e_XUAG.js → MagicLinkACHDetailsPage-DS3oJgLQ-V288YZUD.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D4C-a5QY-DOB7ds5g.js → MagicLinkDomesticWireDetailsPage-DKtf0MEV-Kf5NpYu0.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-oKAXWkRz-ICvIdgn3.js → MagicLinkInternationalWireDetailsPage-CyrBo1eH-BQjhU1d6.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-DTKe1Hxk-D3l_qzGn.js → MagicLinkSuccessPage-Clyl0DAk-CRKqo-oj.js} +1 -1
  104. package/dist/assets/MagicLinkTitleSection-BVmJnjIM-CauR-pM0.js +17 -0
  105. package/dist/assets/{MailingDetailsSection-DOuPh_kK-CJdFvtR9.js → MailingDetailsSection-Gr8nHYJX-Bb0nQJ4z.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-Bn5picNg-BZadZTcq.js → MeetingCalenderPopup-Z8cw7xGj-CwGNacrF.js} +1 -1
  107. package/dist/assets/{Menu-D_vf2LDo-39KwK8wM.js → Menu-DdtklnLU-BpofGVyT.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-DJZVD_j4-CYkcPYeU.js → MyBankConnectionsSettingsPage-6XMaaONC-CvUmwJnE.js} +14 -14
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-DyhXBMCi-DtFEW_4I.js → MyPendingActivationChargeCardListPage-CycEPGif-BJj28ies.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-gPNoKP10-gCIICwqR.js → MyProfileSettingsPage-FPXg5BVk-DGPfsKal.js} +7 -7
  111. package/dist/assets/{NavBarWithPicker-BlYfbDi0-BiD5rNBH.js → NavBarWithPicker-C1RdmaCB-C8vggXa3.js} +3 -3
  112. package/dist/assets/{NavigationArrow-CQ_K0Bon-C-8VFiTg.js → NavigationArrow-BddVpdpR-DbkdAJbG.js} +1 -1
  113. package/dist/assets/{NavigationDots-CI0cjpQA-B6oVaxeu.js → NavigationDots-XsH5foe--BOOtSigy.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-BHQiRWO8-or4Uc_HY.js → NewGlobalMerchantPage-BDl4sMXs-CBuZEijk.js} +4 -4
  115. package/dist/assets/{NoDataChart-Dg1_sU_O-flEThGvM.js → NoDataChart-DWgj32LB-BPsCyU00.js} +3 -3
  116. package/dist/assets/{NoDataTable-qTYBbL2H-BGrSHe_q.js → NoDataTable-CLJr9bOe-BrdyVD6V.js} +1 -1
  117. package/dist/assets/{NotFoundPage-DYjrSF7l-D7C6Z_Gh.js → NotFoundPage-UJYxc5Cc-D4p8kfwg.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-DZHlnrbH-D8paihJx.js → NotificationSettingsPage-CrHnNMcu-Bg6vV-Qh.js} +11 -11
  119. package/dist/assets/NotificationsListConfig-BvqX-YNT-C3lBLq2n.js +1 -0
  120. package/dist/assets/{NotificationsPage-QgnztPHs-CnFUIBHp.js → NotificationsPage-z6CyuWlj-BwW1gi3t.js} +21 -21
  121. package/dist/assets/{OpExByVendorPage-_AMvFFwS-DGSt9CNm.js → OpExByVendorPage-imk8yOJ3-TtSwFlGK.js} +6 -6
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-CI9x-FUu.js → OverlayContainerPage-Bmu909Fo-BZWOYlah.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-D_3EfFjd-JoBuR2Ry.js → PandLWithForecastPage-DDS9ThKq-Df5zmkm_.js} +7 -7
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Ch5yJBuG-Czoqfz5V.js → PaymentAccountSetupBillingAddressSection-Dtd3PnbX-DSXMtbLs.js} +8 -8
  125. package/dist/assets/{PeoplePage-DZr3Lusf-M76DhnJE.js → PeoplePage-x1LDFwDQ-Zd_bqkIV.js} +19 -19
  126. package/dist/assets/{PortfolioAllocationFormPage-Byu_8Js7-CWAHnet9.js → PortfolioAllocationFormPage-hSjTvk25-ZQESLZ6G.js} +6 -6
  127. package/dist/assets/{PortfolioDetails-BH-sfG9j-CdKUfZw3.js → PortfolioDetails-B1dQC_Xa-ByVcQSW7.js} +5 -5
  128. package/dist/assets/{ProductsCarousel-C4J19mb--DcgR5jdw.js → ProductsCarousel-D9cvenZp-BWJI4cxP.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-Bj4SLu8_-CC7a127A.js → PromoBaseCards-nzemBKyd-CNE70VVz.js} +1 -1
  130. package/dist/assets/{QBOConnectionDialog-Bx6ZDEvY-BRYqXjwh.js → QBOConnectionDialog-Cdh8vSaY-COlqnmsO.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-BCdoUjwK-BF2gwacX.js → QBOSetupSection-BWcvYjNb-nke4kL0N.js} +14 -14
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-C_oUUTHb-Cq_kOO5b.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-CJLcH9Ov--aMB2wIm.js → ReimbursementApprovalRulesPage-CMmYiBA--CrdMeZfY.js} +33 -33
  134. package/dist/assets/{ReimbursementDetailPage-Ctgt3Dcz-Bah5s5HT.js → ReimbursementDetailPage-DHuJHhx2-BOxHjSFr.js} +10 -10
  135. package/dist/assets/{ReimbursementPromoPage-DCmevd5G-RVnIiUe8.js → ReimbursementPromoPage-DyMGQ-p6-BrIO-u3b.js} +7 -7
  136. package/dist/assets/{ReimbursementSetUpPage-Dc9xJUbM-BRgUtgcr.js → ReimbursementSetUpPage-h61-hzK3-BiumEfPp.js} +2 -2
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CKjHGxjw-DAh9TKrH.js → ReimbursementsBulkReviewDrawerPage-Dwx-V4Bz-DvuE1U30.js} +1 -1
  138. package/dist/assets/{ReloadCard-DxJMY9If-DFVN_BWj.js → ReloadCard-DHExBNFX-DM0aXM9S.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-lMBROmrI-C57N0Ev_.js → ReportTableViewSelector-I-E8djHt-8CU2obFL.js} +8 -8
  140. package/dist/assets/{ReportsPage-DMYLnwc7-C986BuH8.js → ReportsPage-BME0CMeV-Bmq0qbx4.js} +5 -5
  141. package/dist/assets/{RevenueChart-DD8vb3zi-DI64DZjn.js → RevenueChart-0Wc-f_WH-DcVxD5xk.js} +15 -15
  142. package/dist/assets/{ReviewDetailsPage-C-6hNb3q-Bs8iB-Q6.js → ReviewDetailsPage-BmGAqycE-in95VKyl.js} +15 -15
  143. package/dist/assets/{ReviewOverlay-sqbjCjkE-BYmWnWTV.js → ReviewOverlay-NgbFy65i-DibK2Nxh.js} +7 -7
  144. package/dist/assets/{RoleWithToolTip-BpMhPbAJ-D4xuhbtR.js → RoleWithToolTip-EJik-IDk-BzPBZfqT.js} +5 -5
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D1uRcS4p-n5wC_akR.js → ScheduleDetailsFixedAssetsPage-D3gHdT8C-BJd1IKXv.js} +8 -8
  146. package/dist/assets/{ScheduleDetailsPage-D8Cvxd7m-bSm3GRae.js → ScheduleDetailsPage-OwtRLzyh-DW6B52KA.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-CvqXlh31-iJzQjEX9.js → ScheduleSequenceTable-TPeNlVLG-ChBzLHB_.js} +50 -50
  148. package/dist/assets/{ScreenRoutes-CG3ALmQe.js → ScreenRoutes-DzY9NZif.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-CDXmRiGQ-DykmFmYq.js → SetUpAccountSection-Cs6puvUd-Dhlo8Ufa.js} +16 -16
  150. package/dist/assets/{SetUpDefaultSection-VPie4JZS-CUUkgLvy.js → SetUpDefaultSection-B3K4uwNR-B18eEgx5.js} +4 -4
  151. package/dist/assets/{SignIn-9DfCxy9Q-D5TOW1KJ.js → SignIn-waypOYzb-C46Nnd60.js} +7 -7
  152. package/dist/assets/{SignInScreen-C5ZC9m_8.js → SignInScreen-CYIRNr4n.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-Q5bQb3hk-BwLto-DN.js → SpendManagementListViewPage-DSgh7ish-BAVvhcJ2.js} +3 -3
  154. package/dist/assets/{SpendManagementPerTabPage-CD-kDdxa-BPnAzojr.js → SpendManagementPerTabPage-DFR_RubK-CDWi9rmQ.js} +14 -14
  155. package/dist/assets/{SpendManagementSection-DGGOMGEz-BERrqLUW.js → SpendManagementSection-OISpkX-z-BJ53j2-y.js} +10 -10
  156. package/dist/assets/{SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js → SpendMgmtSetupAccountSection-jAvWpgvm-CJIvPJ3w.js} +12 -12
  157. package/dist/assets/{StatementItem-1vBLASxl-Bg-WCzCW.js → StatementItem-GW12r1Iw-CJvbUqer.js} +5 -5
  158. package/dist/assets/StatementsPage-C7fma8fv-M1h2v7ej.js +58 -0
  159. package/dist/assets/{StatusSwitcher-efLzDuyw-yZjEoNnl.js → StatusSwitcher-DFTN_Xis-BPYWMG2w.js} +7 -7
  160. package/dist/assets/{SubTabSwitcher-BfYlJKJ6-0yeg6J8n.js → SubTabSwitcher-BZxGbsNY-DslvQO7v.js} +7 -7
  161. package/dist/assets/{SummaryCard-BsPejHZG-DSp7yYcI.js → SummaryCard-BNLe-1HR-C_RfG6jc.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-CkdITpbn-BnN3mtBv.js → TaskManagementPage-9ZENc76E-CE4s9qMu.js} +11 -11
  163. package/dist/assets/{TimeRangeSwitcher-DVB0vP5W-Bka-ygDj.js → TimeRangeSwitcher-Ccz3adIk-CsyW9hcg.js} +2 -2
  164. package/dist/assets/{TimeframeSwitcher-BmhH741X-Bq2UrAGM.js → TimeframeSwitcher-kDwlck-n-DwbTkb9h.js} +5 -5
  165. package/dist/assets/TimeframeSwitcherWithToggle-DGsAhHA2-B5P9Cxhq.js +31 -0
  166. package/dist/assets/{TopExCard-DBuo1QUF-Bqy_yS0O.js → TopExCard-D_qKivD5-DDImpDJG.js} +7 -7
  167. package/dist/assets/{TopExDetailPage-CGPgaWRb-BefBmW9C.js → TopExDetailPage-Diptq28B-D5TEFrQN.js} +7 -7
  168. package/dist/assets/TransactionDetailPage-6PT_A8cy-BA99-Eyl.js +912 -0
  169. package/dist/assets/{TransactionList-DP9cEVya-Dnf5dIML.js → TransactionList-B5HwjwQ_-CXKBG0MM.js} +10 -10
  170. package/dist/assets/{TransactionListBig-B_s15U1P-DxO9dvuT.js → TransactionListBig-DIJl_L0P-B6wBk0g5.js} +16 -16
  171. package/dist/assets/{TransactionListPage-DpYLFl8A-CtiLL9up.js → TransactionListPage-CLY5ad85-BnXLO91d.js} +4 -4
  172. package/dist/assets/{TransactionVendorDetailPage-DqqSV533-DMSzEnyq.js → TransactionVendorDetailPage-Bm1jseAb-SlaBV7lN.js} +4 -4
  173. package/dist/assets/{TransferDrawerPage-CxdQzo0m-DrhEn9ys.js → TransferDrawerPage-C376Jj1t-CTODsEty.js} +31 -31
  174. package/dist/assets/{TreasuryOverviewPage-D7vqj60i-DA26_cse.js → TreasuryOverviewPage-9i9ft-2g-DXeo8ZrJ.js} +21 -21
  175. package/dist/assets/{TreasuryPromoPage-BuxEHMpT-BDwacXK1.js → TreasuryPromoPage-CKUSAyi9-CWpKX4Ov.js} +10 -10
  176. package/dist/assets/{TreasurySetupPage-BIfbbeL3-V_YXLN-n.js → TreasurySetupPage-Cor8zLR3-CBLdmPc2.js} +5 -5
  177. package/dist/assets/{TreasuryStatementsPage-BeUdQZBc-XNPULVYt.js → TreasuryStatementsPage-CteWlPmm-gyjWv12T.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-uFRMjqLn-CGfm28c4.js → TreasuryTaxLetterPage-CBeQAQFE-BUwspbw-.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-BWybwqhc-Cp5gifXq.js → TreasuryTransferOrReviewPage-CgochQAe-bc5ZSOJG.js} +37 -37
  180. package/dist/assets/{TrendChart-7kPgcETh-CZhHOMVt.js → TrendChart-BNjNpGGV-DeJ54QC4.js} +3 -3
  181. package/dist/assets/{TrendWithTransactions-DPby1I5u-yXfJ3Iyk.js → TrendWithTransactions-DLq6FRIX-CmF8BV30.js} +5 -5
  182. package/dist/assets/{UncategorizedAccountsMappingPage-DEkSWWRY-BWS3cZYH.js → UncategorizedAccountsMappingPage-CfRZdUo4-D3rE1qoU.js} +8 -8
  183. package/dist/assets/{UnitIntegrationPage-B5yzIJDg-DXMgkfWr.js → UnitIntegrationPage-DmWneokh-DK7To6Ke.js} +3 -3
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js → UploadAdditionalDocumentOverlay-Ck3jSIy3-B5jtbgfv.js} +8 -8
  185. package/dist/assets/{Vendor2FAPopup-DUyiI_-r-CLW3sS1X.js → Vendor2FAPopup-CpVKMC-V-DzVTm8mc.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-DycUU3MN-Bh437Vzf.js → VendorACHDetailsPage-CGZq9rHs-Cb3Eg4e2.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-B9pWIvXP-p9O1B1Vq.js → VendorDetailPage-DjbJdkG0-BD_TM_IR.js} +17 -17
  188. package/dist/assets/{VendorDomesticWireDetailsPage-Cs35uQOp-DDOAIhlv.js → VendorDomesticWireDetailsPage-D-m_AY6V-DSr1i1UN.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BeuSWFCY-Ca6Gux7v.js → VendorFiling1099EditablePage-BBQUHvZF-CQkAcjv9.js} +6 -6
  190. package/dist/assets/{VendorFirstReviewPage-ANhBsl69-D02KU5IA.js → VendorFirstReviewPage-BKiSfhh5-D6n53p2q.js} +12 -12
  191. package/dist/assets/{VendorInternationalWireDetailsPage-BShiEKaz-BZSIpE6n.js → VendorInternationalWireDetailsPage-CbiTxo4--51iz2iZc.js} +8 -8
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-B_NlK1ak-UtHTf4LD.js → VendorInternationalWireSwiftDetailsPage-gRVzJ9zM-BqqvVE2d.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-BclWgEaB-DOMr50bF.js → VendorsAccountsSection-BvY35sKD-PIKLHY63.js} +2 -2
  194. package/dist/assets/{VerifyDevice-CRrOo66b-ZlA7gEbg.js → VerifyDevice-DvG46tbP-C_qTlqhh.js} +4 -4
  195. package/dist/assets/{VideoPopup-qS-ig_U0-VKyag34q.js → VideoPopup-BTi1tNaK-DDZF4fDp.js} +3 -3
  196. package/dist/assets/{WarningsDrawerPage-DgRtxLoa-C9d8WcDP.js → WarningsDrawerPage-CrY3Lv_X-CyET4uGb.js} +21 -21
  197. package/dist/assets/{ZeniAccountDetailPage-B66nIr0V-6bf8tksW.js → ZeniAccountDetailPage-D0Sp-9r0-BxhU3RD9.js} +24 -24
  198. package/dist/assets/{ZeniAccountListViewPage-CWhZKmoP-42K6r0wR.js → ZeniAccountListViewPage-DE2S97vd-Cci7TkWe.js} +12 -12
  199. package/dist/assets/ZeniAccountNavBarPieces-D3E4bGUf-v477yzXX.js +14 -0
  200. package/dist/assets/{ZeniAccountPromoPage-C-oF3-HO-DisOzRKq.js → ZeniAccountPromoPage-qk4MGE20-D8g-1o6A.js} +21 -21
  201. package/dist/assets/{ZeniAccountSetupPage-DY-nCuiT-B3gBHMad.js → ZeniAccountSetupPage-BvCOc6V4-SXAof7Nr.js} +3 -3
  202. package/dist/assets/{ZeniCopyright-rY1T9xhh-Dfov-yky.js → ZeniCopyright-DZEJD4DK-DFCIndJ-.js} +1 -1
  203. package/dist/assets/ZeniTransferAmountSlider-CGrjDEO_-DqBN-dZT.js +63 -0
  204. package/dist/assets/{analyticsHelper-B0L0ncmN.js → analyticsHelper-BxXohuM3.js} +1 -1
  205. package/dist/assets/{analyticsHelper-BcJgRhqY-D6z677ff.js → analyticsHelper-C4OJsqY1-DEUl6kM9.js} +1 -1
  206. package/dist/assets/{chartTypes-BoblEsVF-BVffEXCf.js → chartTypes-4WPzsIf3-TZwbMJ8c.js} +1 -1
  207. package/dist/assets/{commonDimensions-CFd7y7qU-C7Jvc2Ks.js → commonDimensions-Btr3Ruk2--EjhN8RD.js} +1 -1
  208. package/dist/assets/{detailCommon-MYixZ3RD-BFmVTLGA.js → detailCommon-BffITRe2-DyxxqlhA.js} +5 -5
  209. package/dist/assets/{downloadPdf-CgupyHRa-D9AEGU0d.js → downloadPdf-EaFUuw1_-CTrXJ5wG.js} +1 -1
  210. package/dist/assets/{index-B8OsEhOZ.js → index-B9FgmOrh.js} +1347 -1347
  211. package/dist/assets/{mapLoadingInProgressToTreeNode-B8Y_euQR-DOx1e8cj.js → mapLoadingInProgressToTreeNode-Nh09VvTY-7rzf-GR1.js} +1 -1
  212. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-jBSc45Na-BDZbXmNV.js → mapSectionWithAcOnlyToTreeNode-CqrS4-sA--1xO43Gq.js} +1 -1
  213. package/dist/assets/{mapSpacerToTreeNode-COy8gZAM-BaCmq5hE.js → mapSpacerToTreeNode-BVsiguz2-Dg8tyVW2.js} +1 -1
  214. package/dist/assets/{mapTimeframeBalancesToTreeNode-BodkMcFj-QmE2hfm4.js → mapTimeframeBalancesToTreeNode-C6LIzL1r-CL44LvLk.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-DXla81BF-zj0mJKeb.js → mapTimeframeBalancesToTreeNode-CHMw_ZJj-Bp4XrEqv.js} +1 -1
  216. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-BHeVK-te.js → mapTimeframeHeaderLoadingInProgressToTreeNode-vhz8vVqo-Bzd7AJ3d.js} +1 -1
  217. package/dist/assets/{toCOABalancesWithID-CndsNNsv-CWYFJv_O.js → toCOABalancesWithID-vlVs7Gn4-ccOvypAU.js} +1 -1
  218. package/dist/assets/{toChartData-B9eYLI57-CKqynvrs.js → toChartData-nXazR01S-D88QfXJq.js} +1 -1
  219. package/dist/assets/{treasuryColorHelper-D4iDeX95-DVOhzALi.js → treasuryColorHelper-DqciQwbz-CiEpGb56.js} +1 -1
  220. package/dist/assets/{uploadAttachment-C2I6mBBB-CPoUzWwI.js → uploadAttachment-BQCLr45m-C_KMpfLC.js} +9 -9
  221. package/dist/assets/{uploadReceipts-dxsKhm9I-YtN4h-4H.js → uploadReceipts-dxsKhm9I-kOCmsgfk.js} +1 -1
  222. package/dist/index.html +1 -1
  223. package/package.json +3 -3
  224. package/dist/assets/BillPayApprovalRuleDetailPage-DyH2jp6G-BgnVnU6E.js +0 -27
  225. package/dist/assets/BillPayPromoPage-DGyWwW1t-B2E2k4g7.js +0 -84
  226. package/dist/assets/CardNumberSubText-B8CivrXd-CzHZkmhR.js +0 -21
  227. package/dist/assets/ChargeCardPromoPage-BRkny-dl-BA8MhBiS.js +0 -222
  228. package/dist/assets/ChargeCardUtils-D4KmVUMt-Bgc7_40s.js +0 -1
  229. package/dist/assets/CheckDepositDrawerPage-BCIvt4pQ-BUO3GGvc.js +0 -206
  230. package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-CSzku5k4.js +0 -1
  231. package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-1uhB2yjw.js +0 -66
  232. package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-vkhdPOgy.js +0 -222
  233. package/dist/assets/InsightsSection-DsO5tfQL-CBUNqXt7.js +0 -27
  234. package/dist/assets/LabeledDocumentField-By7zV2VD-Deh87JH9.js +0 -41
  235. package/dist/assets/MagicLinkTitleSection-BZ9PbTY5-DGA-Kfl0.js +0 -17
  236. package/dist/assets/NotificationsListConfig-BSBZHM3y-CGdVXHfi.js +0 -1
  237. package/dist/assets/ReimbursementApprovalRuleDetailPage-DsTMXav9-B1Ngpniy.js +0 -26
  238. package/dist/assets/StatementsPage-cCluGN33-CUSb15rA.js +0 -58
  239. package/dist/assets/TimeframeSwitcherWithToggle-B1bMIGal-PXrqXkjU.js +0 -31
  240. package/dist/assets/TransactionDetailPage-BUP-dxVE-Bluz2ZEA.js +0 -912
  241. package/dist/assets/ZeniAccountNavBarPieces-C6MQhfnU-CnbDnx7e.js +0 -14
  242. package/dist/assets/ZeniTransferAmountSlider-Bh5zkWst-Bed32C-4.js +0 -63
@@ -1,4 +1,4 @@
1
- import{e as Oe,u as Re,cn as wl,M as ae,C as L,a2 as jl,j as l,bB as We,f3 as qe,bW as _e,fz as Ee,o as a,fI as $l,cm as He,cd as ee,cf as ce,cj as Ue,m as Se,cF as vl,cD as Sl,ch as Ye,cg as Ie,fJ as Ve,fK as Il,fh as Cl,fg as ke,ck as Ce,cl as Ll,g as Pe,f4 as Ge,X as xe,b6 as Ke,f2 as Qe,p as De,fy as Ze,v as ye,q as Ol,b3 as _l,s as N,dj as El,ac as Pl,fL as Dl,B as Fl,fM as Nl,b4 as ge,ak as Vl,h as Je,i as kl,cx as Tl,b2 as zl,b1 as Bl}from"./index-B8OsEhOZ.js";import{b as d,n as t}from"./vendor-rkTZJa59.js";import{C as Le}from"./LabeledAddressValueField-DLou-2Lm-30_LmoCw.js";import{T as Al}from"./LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js";import{Y as Te}from"./LabeledDocumentField-By7zV2VD-Deh87JH9.js";const Ml=e=>d.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{opacity:.2,d:"M50.5391 6.01221C51.2636 6.01238 51.9584 6.29976 52.4707 6.81201L62.6016 16.9429C63.1141 17.4553 63.4022 18.1507 63.4023 18.8755V66.1353C63.4023 66.86 63.1149 67.5554 62.6025 68.0679C62.09 68.5804 61.3947 68.8686 60.6699 68.8687H14.2109C13.4862 68.8687 12.7908 68.5804 12.2783 68.0679C11.7658 67.5554 11.4775 66.8601 11.4775 66.1353V8.74463C11.4775 8.01982 11.7658 7.32453 12.2783 6.81201C12.7908 6.29962 13.4862 6.01221 14.2109 6.01221H50.5391Z",fill:"#97C3B9"}),d.createElement("path",{d:"M60.5227 61.2642V61.2318M60.5227 61.2318V15.9951C60.5226 15.2704 60.2346 14.5753 59.722 14.0629L49.5911 3.93209C49.0787 3.41953 48.3837 3.1315 47.659 3.13135H11.3306C10.6057 3.13135 9.91062 3.41928 9.3981 3.9318C8.88559 4.44431 8.59766 5.13944 8.59766 5.86425V63.2551C8.59766 63.9799 8.88559 64.6751 9.3981 65.1876C9.91062 65.7001 10.6057 65.988 11.3306 65.988H57.7898C58.5147 65.988 59.2098 65.7001 59.7223 65.1876C60.2348 64.6751 60.5227 64.0737 60.5227 63.2551C60.5227 62.4365 60.5227 61.2318 60.5227 61.2318Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.8682 3.13135V12.9335C46.8682 13.2545 46.9371 13.5724 47.0709 13.869C47.2048 14.1656 47.401 14.4351 47.6483 14.6621C47.8956 14.8891 48.1893 15.0692 48.5124 15.1921C48.8356 15.3149 49.1819 15.3781 49.5317 15.3781H60.2144",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("g",{clipPath:"url(#clip0_1350_23850)"},d.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip1_1350_23850)"},d.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip2_1350_23850)"},d.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip3_1350_23850)"},d.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1350_23850"},d.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),d.createElement("clipPath",{id:"clip1_1350_23850"},d.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),d.createElement("clipPath",{id:"clip2_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),d.createElement("clipPath",{id:"clip3_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:Rl}=ae.getLocalizedStrings(),{businessVerification:ze}=Rl,ue={iconSize:new L(N[6],N[10]),gap:new L(N[2],N[3])},Xe={title:new xe("smallSemiBold","standardSemiBold"),description:new xe("smallRegular","standardRegular")},el=()=>{const[e]=Pl("Secure"),c=Oe();return l.jsxs(Wl,{windowSize:c,children:[e!=null?l.jsx(ql,{windowSize:c,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):l.jsx(Hl,{windowSize:c}),l.jsxs(Ul,{children:[l.jsx(Yl,{windowSize:c,children:ze.securityMessageTitle}),l.jsx(Gl,{windowSize:c,children:ze.securityMessageDescription})]})]})},Wl=t.div`
1
+ import{e as Oe,u as Re,cn as wl,B as ae,C as L,a2 as jl,j as l,bB as We,f3 as qe,bW as _e,fz as Ee,o as a,fI as $l,cm as He,cd as ee,cf as ce,cj as Ue,l as Se,cF as vl,cD as Sl,ch as Ye,cg as Ie,fJ as Ve,fK as Il,fh as Cl,fg as ke,ck as Ce,cl as Ll,g as Pe,f4 as Ge,J as xe,b6 as Je,f2 as Ke,s as De,fy as Ze,v as ye,p as Ol,b3 as _l,q as N,dj as El,ac as Pl,fL as Dl,k as Fl,fM as Nl,b4 as ge,ak as Vl,y as Qe,w as kl,cx as Tl,b2 as zl,b1 as Bl}from"./index-B9FgmOrh.js";import{b as d,n as t}from"./vendor-rkTZJa59.js";import{C as Le}from"./LabeledAddressValueField-DlUmtYXY-Cs_gnXQQ.js";import{T as Al}from"./LabeledCreatableSingleSelectField-B2tnkBes-WTYRlYy4.js";import{Y as Te}from"./LabeledDocumentField-DIZb6TGh-BGGslw6p.js";const Ml=e=>d.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{opacity:.2,d:"M50.5391 6.01221C51.2636 6.01238 51.9584 6.29976 52.4707 6.81201L62.6016 16.9429C63.1141 17.4553 63.4022 18.1507 63.4023 18.8755V66.1353C63.4023 66.86 63.1149 67.5554 62.6025 68.0679C62.09 68.5804 61.3947 68.8686 60.6699 68.8687H14.2109C13.4862 68.8687 12.7908 68.5804 12.2783 68.0679C11.7658 67.5554 11.4775 66.8601 11.4775 66.1353V8.74463C11.4775 8.01982 11.7658 7.32453 12.2783 6.81201C12.7908 6.29962 13.4862 6.01221 14.2109 6.01221H50.5391Z",fill:"#97C3B9"}),d.createElement("path",{d:"M60.5227 61.2642V61.2318M60.5227 61.2318V15.9951C60.5226 15.2704 60.2346 14.5753 59.722 14.0629L49.5911 3.93209C49.0787 3.41953 48.3837 3.1315 47.659 3.13135H11.3306C10.6057 3.13135 9.91062 3.41928 9.3981 3.9318C8.88559 4.44431 8.59766 5.13944 8.59766 5.86425V63.2551C8.59766 63.9799 8.88559 64.6751 9.3981 65.1876C9.91062 65.7001 10.6057 65.988 11.3306 65.988H57.7898C58.5147 65.988 59.2098 65.7001 59.7223 65.1876C60.2348 64.6751 60.5227 64.0737 60.5227 63.2551C60.5227 62.4365 60.5227 61.2318 60.5227 61.2318Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.8682 3.13135V12.9335C46.8682 13.2545 46.9371 13.5724 47.0709 13.869C47.2048 14.1656 47.401 14.4351 47.6483 14.6621C47.8956 14.8891 48.1893 15.0692 48.5124 15.1921C48.8356 15.3149 49.1819 15.3781 49.5317 15.3781H60.2144",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("g",{clipPath:"url(#clip0_1350_23850)"},d.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip1_1350_23850)"},d.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip2_1350_23850)"},d.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip3_1350_23850)"},d.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1350_23850"},d.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),d.createElement("clipPath",{id:"clip1_1350_23850"},d.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),d.createElement("clipPath",{id:"clip2_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),d.createElement("clipPath",{id:"clip3_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:Rl}=ae.getLocalizedStrings(),{businessVerification:ze}=Rl,ue={iconSize:new L(N[6],N[10]),gap:new L(N[2],N[3])},Xe={title:new xe("smallSemiBold","standardSemiBold"),description:new xe("smallRegular","standardRegular")},el=()=>{const[e]=Pl("Secure"),c=Oe();return l.jsxs(Wl,{windowSize:c,children:[e!=null?l.jsx(ql,{windowSize:c,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):l.jsx(Hl,{windowSize:c}),l.jsxs(Ul,{children:[l.jsx(Yl,{windowSize:c,children:ze.securityMessageTitle}),l.jsx(Gl,{windowSize:c,children:ze.securityMessageDescription})]})]})},Wl=t.div`
2
2
  display: flex;
3
3
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
4
4
  gap: ${e=>ue.gap.valuePx(e.windowSize)};
@@ -18,25 +18,25 @@ import{e as Oe,u as Re,cn as wl,M as ae,C as L,a2 as jl,j as l,bB as We,f3 as qe
18
18
  justify-content: center;
19
19
  align-items: flex-start;
20
20
  flex: 1;
21
- `,Yl=t(Je)`
21
+ `,Yl=t(Qe)`
22
22
  ${e=>`${Xe.title.style(e.windowSize)}`};
23
23
  color: ${e=>e.theme.colors.primary};
24
24
  margin: 0;
25
- `,Gl=t(Je)`
25
+ `,Gl=t(Qe)`
26
26
  ${e=>`${Xe.description.style(e.windowSize)}`};
27
27
  color: ${e=>e.theme.colors.primary};
28
28
  margin: 0;
29
- `,ll=({text:e})=>l.jsx(Ql,{children:l.jsx(Kl,{children:e})}),Kl=t(Nl)`
29
+ `,ll=({text:e})=>l.jsx(Kl,{children:l.jsx(Jl,{children:e})}),Jl=t(Nl)`
30
30
  display: flex;
31
31
  align-items: center;
32
32
  color: ${e=>e.theme.colors.hero};
33
33
  padding-right: ${a.sp2};
34
- `,Ql=t.div`
34
+ `,Kl=t.div`
35
35
  display: flex;
36
36
  align-items: flex-end;
37
37
  margin-left: ${a.sp2};
38
38
  margin-top: ${a.sp1};
39
- `,le={labelWidth:new L(115,145,155),mediumLabelWidth:new L(140,160,170),largeLabelWidth:new L(150,210,244),largeLabelDocumentWidth:new L(150,210,252),paddingBottom:new L(N[3],N[2]),containerRowGap:new L(12,N[3])},Zl={title:new xe("standardMedium","largeMedium")},Jl=ae.getLocalizedStrings(),{dateFormat:{visual:Xl},commonSetUp:ea,companyPassport:la,common:{documents:Be,optional:aa}}=Jl,i=ea.businessVerification,ta=i.sourceOfFundOptions,ia=d.forwardRef(({fileProps:e,productType:c,allIndustries:m,companyDetails:h,connectedAccountProvider:D,businessVerificationProps:g,isDisabled:n,style:Y,sectionId:y,showInfoTooltip:te=!0,isCompleted:ie=!1,showCompletedIcon:oe=!1,showTreasuryFields:G=!1,sectionHeader:K,optionalFields:s=[],onCompanyAddressClick:Q,onRegisteredAddressClick:V},re)=>{const f=Oe(),_=le.labelWidth.value(f),E=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),q=le.largeLabelDocumentWidth.value(f),w=i.productType[c],Z=h?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),J=h?.companyFiles.find(u=>u.documentType==="tax_ein"),p=h?.companyDescription,$=h?.companyLegalName,B=h?.website,se=h?.typeOfIncorporation,H=h?.incDate,X=h?.companyIndustry,O=h?.phone,me=h?.taxIdOrEIN,A=h?.primaryContactLocalData,ne=h?.deleteFileStatusById??{},U=h?.updateFileStatusById??{},be=h?.addressStatus?.addressToCreate,we=h?.registeredAddressStatus?.addressToCreate,[k,M]=d.useState(!1),[x,R]=d.useState(!1),W=u=>m.find(je=>je.code===u)?.name??u,P=u=>ta[u]??u;return l.jsxs(oa,{style:Y,ref:re,windowSize:f,children:[l.jsx(ra,{children:l.jsxs(ha,{children:[l.jsxs(na,{children:[oe===!0?l.jsx(da,{children:ie?l.jsx(ca,{}):l.jsx(pa,{})}):null,l.jsx(sa,{windowSize:f,children:K??i.confirmCompanyDetails})]}),te?l.jsx(ua,{children:l.jsx(We,{variant:"small-description",display:"flex",maxWidth:"280px",data:i.confirmCompanyDetailsTooltip,placement:f==="small"||c==="onboarding"?"bottom":"right",children:l.jsx(ma,{})})}):null,c==="onboarding"&&K!=null?l.jsx(ll,{text:aa}):null,g?.companyVerificationStatus!=null?l.jsx(ya,{tagTitle:g.companyVerificationStatus.name,textColor:qe(g.companyVerificationStatus.code),showLoader:g?.isRefreshingViewInBackground}):null]})}),l.jsxs(fa,{children:[l.jsx(el,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:i.companyLegalNameLabel,width:b},text:{type:"text",name:v(y,"companyLegalName"),placeholder:i.companyLegalNamePlaceholder,defaultValue:$,options:{required:n==null&&s.includes("companyLegalName")===!1}},additionalInfoLabel:i.companyLegalNameError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:i.companyDescriptionLabel,width:E},text:{type:"text",name:v(y,"companyDescription"),placeholder:i.addProductPlaceholder,defaultValue:p,options:{required:n==null&&s.includes("companyDescription")===!1}},additionalInfoLabel:i.companyDescriptionError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Le,{isDisabled:n,label:{label:i.companyAddressLabel,width:E},addressValueField:{name:v(y,"companyAddress"),placeholder:i.companyAddressPlaceholder,defaultValue:be,registerOptions:{validate:u=>s.includes("companyAddress")===!1?!(n==null&&u==null):!0},onClick:()=>{Q?.("company_address")}},additionalInfoLabel:i.companyAddressError.replace("_product_type_",w),showAdditionalInfoLabel:!1}),l.jsx(S,{}),l.jsx(Le,{isDisabled:n,label:{label:i.registeredAddressLabel,width:E},addressValueField:{name:v(y,"registeredAddress"),placeholder:i.registeredAddressPlaceholder,defaultValue:we,registerOptions:{validate:u=>s.includes("registeredAddress")===!1?!(n==null&&u==null):!0},onClick:()=>{V?.("company_registered_address")}},additionalInfoLabel:i.registeredAddressError.replace("_product_type_",w),showAdditionalInfoLabel:!1}),l.jsx(S,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:i.companyWebsiteLabel,width:_},text:{type:"url",name:v(y,"companyWebsite"),placeholder:i.companyWebsitePlaceholder,defaultValue:B?.toString()??"",options:{required:n==null&&s.includes("companyWebsite")===!1}},additionalInfoLabel:i.companyWebsiteError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Ie,{label:{label:i.companyIndustryLabel,width:_},singleSelectField:{singleSelect:{name:v(y,"companyIndustry"),placeholder:i.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:W,isDisabled:n,showTickMark:!1},defaultValue:{selectedOption:X,allOptions:m?.map(u=>u.code)??[]},registerOptions:{required:n==null&&s.includes("companyIndustry")===!1,validate:u=>s.includes("companyIndustry")===!1?!(n==null&&!u?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:i.companyIndustryError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Al,{label:{label:i.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:v(y,"typeOfIncorporation"),placeholder:i.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:se,allOptions:la.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&D==="unit",validate:u=>s.includes("typeOfIncorporation")===!1?!(n==null&&!u?.selectedOption):!0}},errorInfoLabel:i.companyTypeOfIncorporationError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Ue,{isDisabled:n,label:{label:i.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(f)},dateField:{name:v(y,"incDate"),placeholder:i.companyIncDatePlaceholder,defaultValue:H,dateFormat:Xl.defaultInput,maxDate:Se.dateNow(),minDate:Se.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:n==null&&s.includes("incDate")===!1}},additionalInfoLabel:i.companyIncDateError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Ye,{isDisabled:n,label:{label:i.companyPhoneLabel,width:_},text:{name:v(y,"companyPhone"),placeholder:ce(i.companyPhoneLabel),defaultValue:O,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:i.companyPhoneError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(He,{isDisabled:n,label:{label:i.companyPrimaryContactNameLabel,width:b},nameField:{name:v(y,"primaryContactName"),placeHolder:{firstName:i.firstNamePlaceholder,lastName:i.lastNamePlaceholder,name:i.namePlaceholder},defaultValue:{firstName:A?.firstName??"",lastName:A?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:u=>!!u||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:i.companyPrimaryContactNameError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:i.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:v(y,"primaryContactEmail"),placeholder:i.companyPrimaryContactEmailPlaceholder,defaultValue:A?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:i.companyPrimaryContactEmailError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:i.companyTaxIdLabel,width:_},text:{type:"text",name:v(y,"companyTaxId"),placeholder:i.companyTaxIdPlaceholder,defaultValue:me,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:Ll},autoComplete:"new-password"},additionalInfoLabel:i.companyTaxIdError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Te,{name:v(y,"certificateOfIncorporation"),isDisabled:n,sizeLimit:Ce,deleteFileStatusById:ne,updateFileStatusById:U,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:i.certificateOfIncorporation,width:q},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&&D==="unit"},additionalInfoLabel:i.certOfIncopDocumentError.replace("_product_type_",w),hasError:k,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:u=>M(u)}),k||!(n!=null||Z!=null)?l.jsx(Ae,{windowSize:f,isError:k,children:Be.formatDocumentText10MB}):null,l.jsx(S,{}),l.jsx(Te,{name:v(y,"ein"),isDisabled:n,sizeLimit:Ce,deleteFileStatusById:ne,updateFileStatusById:U,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:i.einDocument,width:q},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:J,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("ein")===!1},additionalInfoLabel:i.einDocumentError.replace("_product_type_",w),hasError:x,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:u=>R(u)}),x||!(n!=null||J!=null)?l.jsx(Ae,{windowSize:f,isError:x,children:Be.formatDocumentText10MB}):null,l.jsx(S,{}),G===!0?l.jsxs(l.Fragment,{children:[l.jsx(Ie,{label:{label:i.sourceOfFundsLabel,width:_},singleSelectField:{singleSelect:{name:v(y,"sourceOfFunds"),placeholder:i.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:P,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:h?.sourceOfFunds,allOptions:Object.keys(i.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:u=>s.includes("sourceOfFunds")===!1?!(n==null&&!u?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:i.sourceOfFundsError.replace("_product_type_",w)}),l.jsx(S,{})]}):null]})]})});ia.displayName="Company Details Section";const v=(e,c)=>`${e}.${c}`,oa=t.div`
39
+ `,le={labelWidth:new L(115,145,155),mediumLabelWidth:new L(140,160,170),largeLabelWidth:new L(150,210,244),largeLabelDocumentWidth:new L(150,210,252),paddingBottom:new L(N[3],N[2]),containerRowGap:new L(12,N[3])},Zl={title:new xe("standardMedium","largeMedium")},Ql=ae.getLocalizedStrings(),{dateFormat:{visual:Xl},commonSetUp:ea,companyPassport:la,common:{documents:Be,optional:aa}}=Ql,i=ea.businessVerification,ta=i.sourceOfFundOptions,ia=d.forwardRef(({fileProps:e,productType:c,allIndustries:m,companyDetails:h,connectedAccountProvider:D,businessVerificationProps:g,isDisabled:n,style:Y,sectionId:y,showInfoTooltip:te=!0,isCompleted:ie=!1,showCompletedIcon:oe=!1,showTreasuryFields:G=!1,sectionHeader:J,optionalFields:s=[],onCompanyAddressClick:K,onRegisteredAddressClick:V},re)=>{const f=Oe(),_=le.labelWidth.value(f),E=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),q=le.largeLabelDocumentWidth.value(f),w=i.productType[c],Z=h?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),Q=h?.companyFiles.find(u=>u.documentType==="tax_ein"),p=h?.companyDescription,$=h?.companyLegalName,B=h?.website,se=h?.typeOfIncorporation,H=h?.incDate,X=h?.companyIndustry,O=h?.phone,me=h?.taxIdOrEIN,A=h?.primaryContactLocalData,ne=h?.deleteFileStatusById??{},U=h?.updateFileStatusById??{},be=h?.addressStatus?.addressToCreate,we=h?.registeredAddressStatus?.addressToCreate,[k,M]=d.useState(!1),[x,R]=d.useState(!1),W=u=>m.find(je=>je.code===u)?.name??u,P=u=>ta[u]??u;return l.jsxs(oa,{style:Y,ref:re,windowSize:f,children:[l.jsx(ra,{children:l.jsxs(ha,{children:[l.jsxs(na,{children:[oe===!0?l.jsx(da,{children:ie?l.jsx(ca,{}):l.jsx(pa,{})}):null,l.jsx(sa,{windowSize:f,children:J??i.confirmCompanyDetails})]}),te?l.jsx(ua,{children:l.jsx(We,{variant:"small-description",display:"flex",maxWidth:"280px",data:i.confirmCompanyDetailsTooltip,placement:f==="small"||c==="onboarding"?"bottom":"right",children:l.jsx(ma,{})})}):null,c==="onboarding"&&J!=null?l.jsx(ll,{text:aa}):null,g?.companyVerificationStatus!=null?l.jsx(ya,{tagTitle:g.companyVerificationStatus.name,textColor:qe(g.companyVerificationStatus.code),showLoader:g?.isRefreshingViewInBackground}):null]})}),l.jsxs(fa,{children:[l.jsx(el,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:i.companyLegalNameLabel,width:b},text:{type:"text",name:v(y,"companyLegalName"),placeholder:i.companyLegalNamePlaceholder,defaultValue:$,options:{required:n==null&&s.includes("companyLegalName")===!1}},additionalInfoLabel:i.companyLegalNameError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:i.companyDescriptionLabel,width:E},text:{type:"text",name:v(y,"companyDescription"),placeholder:i.addProductPlaceholder,defaultValue:p,options:{required:n==null&&s.includes("companyDescription")===!1}},additionalInfoLabel:i.companyDescriptionError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Le,{isDisabled:n,label:{label:i.companyAddressLabel,width:E},addressValueField:{name:v(y,"companyAddress"),placeholder:i.companyAddressPlaceholder,defaultValue:be,registerOptions:{validate:u=>s.includes("companyAddress")===!1?!(n==null&&u==null):!0},onClick:()=>{K?.("company_address")}},additionalInfoLabel:i.companyAddressError.replace("_product_type_",w),showAdditionalInfoLabel:!1}),l.jsx(S,{}),l.jsx(Le,{isDisabled:n,label:{label:i.registeredAddressLabel,width:E},addressValueField:{name:v(y,"registeredAddress"),placeholder:i.registeredAddressPlaceholder,defaultValue:we,registerOptions:{validate:u=>s.includes("registeredAddress")===!1?!(n==null&&u==null):!0},onClick:()=>{V?.("company_registered_address")}},additionalInfoLabel:i.registeredAddressError.replace("_product_type_",w),showAdditionalInfoLabel:!1}),l.jsx(S,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:i.companyWebsiteLabel,width:_},text:{type:"url",name:v(y,"companyWebsite"),placeholder:i.companyWebsitePlaceholder,defaultValue:B?.toString()??"",options:{required:n==null&&s.includes("companyWebsite")===!1}},additionalInfoLabel:i.companyWebsiteError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Ie,{label:{label:i.companyIndustryLabel,width:_},singleSelectField:{singleSelect:{name:v(y,"companyIndustry"),placeholder:i.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:W,isDisabled:n,showTickMark:!1},defaultValue:{selectedOption:X,allOptions:m?.map(u=>u.code)??[]},registerOptions:{required:n==null&&s.includes("companyIndustry")===!1,validate:u=>s.includes("companyIndustry")===!1?!(n==null&&!u?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:i.companyIndustryError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Al,{label:{label:i.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:v(y,"typeOfIncorporation"),placeholder:i.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:se,allOptions:la.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&D==="unit",validate:u=>s.includes("typeOfIncorporation")===!1?!(n==null&&!u?.selectedOption):!0}},errorInfoLabel:i.companyTypeOfIncorporationError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Ue,{isDisabled:n,label:{label:i.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(f)},dateField:{name:v(y,"incDate"),placeholder:i.companyIncDatePlaceholder,defaultValue:H,dateFormat:Xl.defaultInput,maxDate:Se.dateNow(),minDate:Se.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:n==null&&s.includes("incDate")===!1}},additionalInfoLabel:i.companyIncDateError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Ye,{isDisabled:n,label:{label:i.companyPhoneLabel,width:_},text:{name:v(y,"companyPhone"),placeholder:ce(i.companyPhoneLabel),defaultValue:O,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:i.companyPhoneError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(He,{isDisabled:n,label:{label:i.companyPrimaryContactNameLabel,width:b},nameField:{name:v(y,"primaryContactName"),placeHolder:{firstName:i.firstNamePlaceholder,lastName:i.lastNamePlaceholder,name:i.namePlaceholder},defaultValue:{firstName:A?.firstName??"",lastName:A?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:u=>!!u||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:i.companyPrimaryContactNameError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:i.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:v(y,"primaryContactEmail"),placeholder:i.companyPrimaryContactEmailPlaceholder,defaultValue:A?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:i.companyPrimaryContactEmailError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:i.companyTaxIdLabel,width:_},text:{type:"text",name:v(y,"companyTaxId"),placeholder:i.companyTaxIdPlaceholder,defaultValue:me,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:Ll},autoComplete:"new-password"},additionalInfoLabel:i.companyTaxIdError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(Te,{name:v(y,"certificateOfIncorporation"),isDisabled:n,sizeLimit:Ce,deleteFileStatusById:ne,updateFileStatusById:U,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:i.certificateOfIncorporation,width:q},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&&D==="unit"},additionalInfoLabel:i.certOfIncopDocumentError.replace("_product_type_",w),hasError:k,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:u=>M(u)}),k||!(n!=null||Z!=null)?l.jsx(Ae,{windowSize:f,isError:k,children:Be.formatDocumentText10MB}):null,l.jsx(S,{}),l.jsx(Te,{name:v(y,"ein"),isDisabled:n,sizeLimit:Ce,deleteFileStatusById:ne,updateFileStatusById:U,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:i.einDocument,width:q},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:i.einDocumentError.replace("_product_type_",w),hasError:x,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:u=>R(u)}),x||!(n!=null||Q!=null)?l.jsx(Ae,{windowSize:f,isError:x,children:Be.formatDocumentText10MB}):null,l.jsx(S,{}),G===!0?l.jsxs(l.Fragment,{children:[l.jsx(Ie,{label:{label:i.sourceOfFundsLabel,width:_},singleSelectField:{singleSelect:{name:v(y,"sourceOfFunds"),placeholder:i.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:P,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:h?.sourceOfFunds,allOptions:Object.keys(i.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:u=>s.includes("sourceOfFunds")===!1?!(n==null&&!u?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:i.sourceOfFundsError.replace("_product_type_",w)}),l.jsx(S,{})]}):null]})]})});ia.displayName="Company Details Section";const v=(e,c)=>`${e}.${c}`,oa=t.div`
40
40
  display: flex;
41
41
  flex-direction: column;
42
42
  row-gap: ${e=>le.containerRowGap.valuePx(e.windowSize)};
@@ -75,7 +75,7 @@ import{e as Oe,u as Re,cn as wl,M as ae,C as L,a2 as jl,j as l,bB as We,f3 as qe
75
75
  &:hover {
76
76
  color: ${e=>e.theme.colors.primary};
77
77
  }
78
- `,ma=t(Ke)`
78
+ `,ma=t(Je)`
79
79
  width: ${a.sp3};
80
80
  height: ${a.sp3};
81
81
  `,ha=t.div`
@@ -94,7 +94,7 @@ import{e as Oe,u as Re,cn as wl,M as ae,C as L,a2 as jl,j as l,bB as We,f3 as qe
94
94
  background-color: ${e=>e.theme.colors.grey3};
95
95
  min-height: 1px;
96
96
  max-height: 1px;
97
- `,ya=t(Qe)`
97
+ `,ya=t(Ke)`
98
98
  width: max-content;
99
99
  margin-left: ${a.sp3};
100
100
  `,xa=t.div`
@@ -102,7 +102,7 @@ import{e as Oe,u as Re,cn as wl,M as ae,C as L,a2 as jl,j as l,bB as We,f3 as qe
102
102
  display: flex;
103
103
  align-items: center;
104
104
  justify-content: flex-end;
105
- `,ga=(e,c)=>e.map(m=>({...m,value:m.userId,label:m.firstName!=""||m.lastName!=""?`${m.firstName} ${m.lastName}`:m.email})),ba=(e,c)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function wa({allUsers:e,onSelectedUserChanged:c,selectedUser:m,disable:h=!1,pickerStyles:{optionBackgroundColor:D,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:Y,backgroundColor:y,titleTextAlignment:te,selectedOptionColor:ie,customStyleConfig:oe}={},customization:{placeholderLabel:G}={},showAddUser:K=!0}){const s=Re(),[Q,V]=d.useState(!1),re=ga(e).sort((p,$)=>p.label.localeCompare($.label)),f=m!=null?ba(m):void 0,_=D??s.colors.grey5,E=y??s.colors.grey5,b=g??s.colors.grey3,q=n??ye.smallRegular.cssObject,w=Y??q,Z={control:(p,$)=>({...p,border:0,height:"100%",backgroundColor:E,fill:$.selectProps.menuIsOpen===!0?s.colors.primary:s.colors.grey1,boxShadow:E,">div:last-child":{color:Q?s.colors.primary:s.colors.grey1},":active":{backgroundColor:E},":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:p=>({...p,backgroundColor:E,height:"100%"}),singleValue:p=>({...p,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:p=>({...p,maxWidth:"100%",cursor:"pointer",height:"100%",...w,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:te??"flex-start",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",">div":{width:"inherit"}}),menu:(p,$)=>({...p,backgroundColor:_,borderRadius:N[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"}},...oe?.menu?.(p,$)}),menuList:p=>({...p,borderRadius:N[1]}),placeholder:(p,$)=>({...p,margin:0,width:"100%",color:$.isFocused?s.colors.primary:"currentColor",paddingRight:a.sp2,...ye.standardRegular.cssObject,">div>div>svg>circle":{fill:s.colors.grey1}}),noOptionsMessage:p=>({...p,...ye.smallRegular.cssObject,padding:`10px ${a.sp3} 9px ${a.sp3}`,color:s.colors.hero}),option:(p,{isDisabled:$,isSelected:B,isFocused:se})=>({...p,...q,color:B?ie??s.colors.champion:s.colors.hero,backgroundColor:B?b:se?s.colors.background:_,cursor:$?"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:$?"not-allowed":B?"inherit":"pointer"},">div>div>div:first-of-type":{display:"flex"}}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({}),indicatorsContainer:()=>({height:"100%",display:"flex",alignItems:"center"})},J=({children:p,...$})=>l.jsxs(ge.ValueContainer,{...$,children:[p,K===!0?l.jsxs(ka,{hasSelectedUser:!!m,onClick:()=>{c(void 0),V(!1)},children:[l.jsx(Ca,{}),l.jsx("div",{children:G??"Add User"})]}):null]});return l.jsx(Ol,{onClickAway:()=>{V(!1)},children:l.jsx(xa,{children:l.jsx(_l,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:Q,menuShouldScrollIntoView:!1,defaultValue:f,value:f,noOptionsMessage:()=>ae.getLocalizedStrings().cockpit.management.noPerson,onInputChange:p=>{p!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx($a,{children:l.jsx("div",{children:G??"Select..."})}),components:{Option:Ea,DropdownIndicator:Ta,IndicatorSeparator:za,SingleValue:Na,ValueContainer:Va,MenuList:J},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:Z,options:re,isDisabled:h,onChange:p=>{c(p),V(!1)},isClearable:!1,isSearchable:!1},El())})})}const ja=t.div``,$a=t.div`
105
+ `,ga=(e,c)=>e.map(m=>({...m,value:m.userId,label:m.firstName!=""||m.lastName!=""?`${m.firstName} ${m.lastName}`:m.email})),ba=(e,c)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function wa({allUsers:e,onSelectedUserChanged:c,selectedUser:m,disable:h=!1,pickerStyles:{optionBackgroundColor:D,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:Y,backgroundColor:y,titleTextAlignment:te,selectedOptionColor:ie,customStyleConfig:oe}={},customization:{placeholderLabel:G}={},showAddUser:J=!0}){const s=Re(),[K,V]=d.useState(!1),re=ga(e).sort((p,$)=>p.label.localeCompare($.label)),f=m!=null?ba(m):void 0,_=D??s.colors.grey5,E=y??s.colors.grey5,b=g??s.colors.grey3,q=n??ye.smallRegular.cssObject,w=Y??q,Z={control:(p,$)=>({...p,border:0,height:"100%",backgroundColor:E,fill:$.selectProps.menuIsOpen===!0?s.colors.primary:s.colors.grey1,boxShadow:E,">div:last-child":{color:K?s.colors.primary:s.colors.grey1},":active":{backgroundColor:E},":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:p=>({...p,backgroundColor:E,height:"100%"}),singleValue:p=>({...p,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:p=>({...p,maxWidth:"100%",cursor:"pointer",height:"100%",...w,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:te??"flex-start",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",">div":{width:"inherit"}}),menu:(p,$)=>({...p,backgroundColor:_,borderRadius:N[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"}},...oe?.menu?.(p,$)}),menuList:p=>({...p,borderRadius:N[1]}),placeholder:(p,$)=>({...p,margin:0,width:"100%",color:$.isFocused?s.colors.primary:"currentColor",paddingRight:a.sp2,...ye.standardRegular.cssObject,">div>div>svg>circle":{fill:s.colors.grey1}}),noOptionsMessage:p=>({...p,...ye.smallRegular.cssObject,padding:`10px ${a.sp3} 9px ${a.sp3}`,color:s.colors.hero}),option:(p,{isDisabled:$,isSelected:B,isFocused:se})=>({...p,...q,color:B?ie??s.colors.champion:s.colors.hero,backgroundColor:B?b:se?s.colors.background:_,cursor:$?"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:$?"not-allowed":B?"inherit":"pointer"},">div>div>div:first-of-type":{display:"flex"}}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({}),indicatorsContainer:()=>({height:"100%",display:"flex",alignItems:"center"})},Q=({children:p,...$})=>l.jsxs(ge.ValueContainer,{...$,children:[p,J===!0?l.jsxs(ka,{hasSelectedUser:!!m,onClick:()=>{c(void 0),V(!1)},children:[l.jsx(Ca,{}),l.jsx("div",{children:G??"Add User"})]}):null]});return l.jsx(Ol,{onClickAway:()=>{V(!1)},children:l.jsx(xa,{children:l.jsx(_l,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:K,menuShouldScrollIntoView:!1,defaultValue:f,value:f,noOptionsMessage:()=>ae.getLocalizedStrings().cockpit.management.noPerson,onInputChange:p=>{p!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx($a,{children:l.jsx("div",{children:G??"Select..."})}),components:{Option:Ea,DropdownIndicator:Ta,IndicatorSeparator:za,SingleValue:Na,ValueContainer:Va,MenuList:Q},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:Z,options:re,isDisabled:h,onChange:p=>{c(p),V(!1)},isClearable:!1,isSearchable:!1},El())})})}const ja=t.div``,$a=t.div`
106
106
  display: flex;
107
107
  align-items: center;
108
108
  color: ${e=>e.theme.colors.grey1};
@@ -166,7 +166,7 @@ import{e as Oe,u as Re,cn as wl,M as ae,C as L,a2 as jl,j as l,bB as We,f3 as qe
166
166
  display: flex;
167
167
  flex-direction: row;
168
168
  cursor: pointer;
169
- `,pe={width:new L(343,580,726),labelWidth:new L(115,145,155),largeLabelWidth:new L(160,240,240),veryLargeLabelWidth:new L(150,240,245),containerRowGap:new L(12,N[3])},Aa={title:new xe("standardMedium","largeMedium")};function ct({companyOfficerData:e,isDisabled:c,allOfficers:m,allNationalityCountries:h,isRefreshingViewInBackground:D,connectedAccountProvider:g,style:n,isPopupOpen:Y,sectionId:y,filesEndPoint:te,authParams:ie,showInfoTooltip:oe=!0,isCompleted:G=!1,showCompletedIcon:K=!1,showOfficerSelect:s=!0,showVerificationTag:Q=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:f,companyTitles:_,sectionHeader:E,optionalFields:b=[],onOfficerAddressClick:q,onDeleteFile:w,onEditFileName:Z,updateFilesEntity:J,openPopup:p,onGetOtp:$,onVerifyOtp:B,onResendOtp:se,verifiedPhoneNumber:H,onPhoneVerified:X}){const O=Oe(),me=Re(),{getValues:A,setValue:ne}=wl(),U=m.length>0,[be,we]=d.useState(!1),k=U?Object.values(e).findIndex(o=>o?.isSelectedForVerification===!0):0,M=`Officer_${k<0?1:k+1}`;d.useEffect(()=>{X!=null&&e[M]?.phone!=null&&e[M].isPhoneVerified===!0&&X(e[M]?.phone??"")},[]);const x=`${y}.${k}`,R=e[M],W=V?R?.treasuryUserVerificationStatus:R?.userVerificationStatus,P=m.find(o=>o.userId===R?.userId),u=m.sort((o,C)=>(o.firstName||o.lastName?`${o.firstName} ${o.lastName}`:o.email).localeCompare(C.firstName||C.lastName?`${C.firstName} ${C.lastName}`:C.email)),je=U?u.findIndex(o=>o.userId===R?.userId):0,tl=e[M]?.deleteFileStatusById??{},il=e[M]?.updateFileStatusById??{},Fe=A(`${x}.selectDocument.selectDocumentType`),{common:{optional:ol},commonSetUp:{businessVerification:r},dateFormat:{visual:rl},cockpit:sl}=ae.getLocalizedStrings(),T=f==="onboarding"?r.productType.business_verification:r.productType[f],de=pe.labelWidth.value(O),nl=pe.veryLargeLabelWidth.value(O),he=pe.largeLabelWidth.value(O),dl=O==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,cl=O==="small"?r.protectedSsnTextSmall:r.protectedSsnText,I=W?.code==="pending_review"||W?.code==="verified"?"readonly":c,pl=I!=null||!U||W?.code==="require_info",ul=P?.firstName||P?.lastName?`${P?.firstName} ${P?.lastName}`:r.addOfficer,ml=R?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,hl={menu:()=>({right:"initial",left:0})},fl=o=>_.find(C=>C.code===o)?.name??o,$e=R?.otpverificationStatus?.fetchState,Ne=jl($e);d.useEffect(()=>{X!=null&&Ne==="In-Progress"&&$e==="Completed"&&X(A(`${x}.phone`))},[Ne,$e]);const yl=(o,C)=>{B(o,C)},xl=()=>H==null||H===""?!1:A(`${x}.phone`)===H,gl=()=>{const o=A(`${x}.phone`);return o!=null&&!Dl(o)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",T)};return l.jsxs(Ma,{style:n,windowSize:O,children:[l.jsxs(Ra,{windowSize:O,isOverlay:re,children:[l.jsxs(Ja,{children:[l.jsxs(qa,{children:[K===!0?l.jsx(Ha,{children:G?l.jsx(Ua,{}):l.jsx(Ya,{})}):null,l.jsx(Wa,{windowSize:O,children:E??ml})]}),oe?l.jsx(Ga,{children:l.jsx(We,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:O==="small"||f==="onboarding"?"bottom":"right",children:l.jsx(Ka,{})})}):null,f==="onboarding"&&E!=null?l.jsx(ll,{text:ol}):null,W!=null&&Q?l.jsx(lt,{tagTitle:W?.name,textColor:qe(W.code),showLoader:D}):null]}),s?pl?U?l.jsxs(et,{children:[P?.photo!==void 0?l.jsx(Qa,{src:P?.photo.href,alt:sl.userProfileAltText,onError:({currentTarget:o})=>{o.onerror=null,o.src=_e},loading:"lazy"}):l.jsx(Ee,{firstName:P?.firstName??"",lastName:P?.lastName??"",size:`${a.sp4}`,index:je}),l.jsx(Me,{children:`${ul}`})]}):l.jsxs(at,{children:[l.jsx(tt,{children:l.jsx(it,{})}),l.jsx(Me,{children:`${r.addOfficer}`})]}):l.jsx(Za,{children:l.jsx(wa,{selectedUser:P,allUsers:m,onSelectedUserChanged:o=>{const C=Object.values(e).findIndex(fe=>fe?.userId===o?.userId);ne(`${x}.isSelectedForVerification`,!1),ne(`${y}.${C}.isSelectedForVerification`,!0)},customization:{placeholderLabel:r.addOfficer},showAddUser:m.length<=9,pickerStyles:{backgroundColor:me.colors.grey5,selectedOptionBackgroundColor:me.colors.background,customStyleConfig:O==="small"?hl:void 0}})}):null]}),Object.values(e).map((o,C)=>{if(k!==C)return null;const fe=$l(o?.documentTypeSelectedForVerification),ve=o?.userFiles??[],bl=()=>H!=""&&f==="onboarding"?xl():o?.isPhoneVerified??!1;return l.jsxs(Xa,{children:[l.jsx(el,{}),l.jsx(He,{isDisabled:I,label:{label:r.name,width:de},nameField:{name:F(x,"name"),placeHolder:{firstName:r.firstNamePlaceholder,lastName:r.lastNamePlaceholder,name:r.namePlaceholder},defaultValue:{firstName:o?.firstName??"",lastName:o?.lastName??""},registerOptions:{required:b.includes("name")===!1,validate:j=>b.includes("name")===!1?!!j:!0},showFullNameError:!0},errorInfoLabel:r.nameError.replace("_product_type_",T)}),l.jsx(z,{}),o?.userId==null?l.jsxs(l.Fragment,{children:[l.jsx(ee,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.email,width:de},text:{type:"email",name:F(x,"email"),placeholder:ce(r.email),defaultValue:o?.email,options:{required:b.includes("email")===!1}},additionalInfoLabel:r.emailDescription.replace("_product_type_",T)}),l.jsx(z,{})]}):null,l.jsx(Ue,{isDisabled:I,label:{label:r.dobLabel,width:he},dateField:{name:F(x,"dob"),type:"text",defaultValue:o?.birthday,placeholder:ce(r.dobLabel),dateFormat:rl.defaultInput,maxDate:Se.dateNow().subtract(g==="unit"?18:13,"years"),registerOptions:{required:b.includes("dob")===!1},autoComplete:"off"},additionalInfoLabel:r.dobDescription.replace("_product_type_",T),isMasked:!0}),l.jsx(z,{}),l.jsx(vl,{isDisabled:I,label:{label:r.nationalityLabel,width:de},showAdditionalInfoLabel:f!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",T),countrySelectField:{name:F(x,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:Sl(o?.nationalityCountryCode,h.map(j=>j.countryCode)),registerOptions:{validate:j=>!!(j!=null&&j.selectedOption)}}}),l.jsx(z,{}),l.jsx(Le,{isDisabled:I,label:{label:r.address,width:de},addressValueField:{name:F(x,"officerAddress"),placeholder:ce(r.address),defaultValue:o?.addressStatus?.addressToCreate,registerOptions:{validate:j=>b.includes("officerAddress")===!1?!(I==null&&j==null):!0},onClick:()=>{q(o?.officerType.toLocaleLowerCase().concat("_address"))}},additionalInfoLabel:f==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",T),showAdditionalInfoLabel:!0}),l.jsx(z,{}),l.jsx(Ye,{isDisabled:I,label:{label:r.phone,width:de},text:{name:F(x,"phone"),placeholder:ce(r.phone),defaultValue:o?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:gl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:Y,phoneVerifyButtonProps:{otpChallenge:o?.otpChallenge,showOtpButton:g==="unit",onGetOtp:$,onVerifyOtp:yl,onResendOtp:se,isPhoneVerified:bl(),phoneVerificationStatus:o?.otpverificationStatus,getOtpStatus:o?.sendOtpStatus,openPopup:p,verifiedPhoneNumber:H,focusNotRequired:!0}}),l.jsx(z,{}),l.jsx(Ie,{label:{label:r.companyRoleLabel,width:he},singleSelectField:{singleSelect:{name:F(x,"role"),placeholder:dl,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:fl,isDisabled:I,showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:o?.titleAtCompany,allOptions:_?.map(j=>j.code)??[]},registerOptions:{required:b.includes("role")===!1,validate:j=>b.includes("role")===!1?!(I==null&&!j?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:r.companyRoleDescription.replace("_product_type_",T)}),l.jsx(z,{}),l.jsx(Ve,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:he},formattedTextField:{type:"number",name:F(x,"ownership"),defaultValue:o?.ownershipInCompany,placeholder:r.companyOwnershipPlaceholder,returnValueType:"floatValue",suffix:"%",allowNegative:!1,isNumericString:!1,registerOptions:{required:b.includes("ownership")===!1,validate:j=>j!=null?j>0&&j<=100:!0,max:100},autoComplete:"new-password"},additionalInfoLabel:f==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(z,{}),l.jsx(Ve,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:he},formattedTextField:{type:"text",name:F(x,"ssn"),placeholder:r.addSSNPlaceholder,defaultValue:o?.ssn,format:"###-##-####",registerOptions:{required:b.includes("ssn")===!1,pattern:Il},autoComplete:"new-password",maxLength:9,allowLeadingZeros:!0},protectedInfoText:I!=null&&o?.ssn?cl:void 0,additionalInfoLabel:r.ssnDescription.replace("_product_type_",T),isMasked:!0}),l.jsx(z,{}),l.jsx(Cl,{name:F(x,"selectDocument"),officerIndex:k,sizeLimit:Ce,filesEndPoint:te,authParams:ie,onEditFileName:Z,acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],label:{width:nl},allFiles:ve,updateFilesEntity:J,deleteFileStatusById:tl,updateFileStatusById:il,onDeleteFile:w,isDisabled:I,menuPlacement:f==="onboarding"&&fe==null?"top":"auto",defaultValue:{defaultSelectDocumentType:fe,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:ke(!0,ve,Fe),back:ke(!1,ve,Fe)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:be,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",T),onFileSizeError:j=>we(j),isPopupOpen:Y,openPopup:p,companyOfficerName:{firstName:o?.firstName??"",lastName:o?.lastName??""}})]},x)})]})}const F=(e,c)=>`${e}.${c}`,Ma=t.div`
169
+ `,pe={width:new L(343,580,726),labelWidth:new L(115,145,155),largeLabelWidth:new L(160,240,240),veryLargeLabelWidth:new L(150,240,245),containerRowGap:new L(12,N[3])},Aa={title:new xe("standardMedium","largeMedium")};function ct({companyOfficerData:e,isDisabled:c,allOfficers:m,allNationalityCountries:h,isRefreshingViewInBackground:D,connectedAccountProvider:g,style:n,isPopupOpen:Y,sectionId:y,filesEndPoint:te,authParams:ie,showInfoTooltip:oe=!0,isCompleted:G=!1,showCompletedIcon:J=!1,showOfficerSelect:s=!0,showVerificationTag:K=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:f,companyTitles:_,sectionHeader:E,optionalFields:b=[],onOfficerAddressClick:q,onDeleteFile:w,onEditFileName:Z,updateFilesEntity:Q,openPopup:p,onGetOtp:$,onVerifyOtp:B,onResendOtp:se,verifiedPhoneNumber:H,onPhoneVerified:X}){const O=Oe(),me=Re(),{getValues:A,setValue:ne}=wl(),U=m.length>0,[be,we]=d.useState(!1),k=U?Object.values(e).findIndex(o=>o?.isSelectedForVerification===!0):0,M=`Officer_${k<0?1:k+1}`;d.useEffect(()=>{X!=null&&e[M]?.phone!=null&&e[M].isPhoneVerified===!0&&X(e[M]?.phone??"")},[]);const x=`${y}.${k}`,R=e[M],W=V?R?.treasuryUserVerificationStatus:R?.userVerificationStatus,P=m.find(o=>o.userId===R?.userId),u=m.sort((o,C)=>(o.firstName||o.lastName?`${o.firstName} ${o.lastName}`:o.email).localeCompare(C.firstName||C.lastName?`${C.firstName} ${C.lastName}`:C.email)),je=U?u.findIndex(o=>o.userId===R?.userId):0,tl=e[M]?.deleteFileStatusById??{},il=e[M]?.updateFileStatusById??{},Fe=A(`${x}.selectDocument.selectDocumentType`),{common:{optional:ol},commonSetUp:{businessVerification:r},dateFormat:{visual:rl},cockpit:sl}=ae.getLocalizedStrings(),T=f==="onboarding"?r.productType.business_verification:r.productType[f],de=pe.labelWidth.value(O),nl=pe.veryLargeLabelWidth.value(O),he=pe.largeLabelWidth.value(O),dl=O==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,cl=O==="small"?r.protectedSsnTextSmall:r.protectedSsnText,I=W?.code==="pending_review"||W?.code==="verified"?"readonly":c,pl=I!=null||!U||W?.code==="require_info",ul=P?.firstName||P?.lastName?`${P?.firstName} ${P?.lastName}`:r.addOfficer,ml=R?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,hl={menu:()=>({right:"initial",left:0})},fl=o=>_.find(C=>C.code===o)?.name??o,$e=R?.otpverificationStatus?.fetchState,Ne=jl($e);d.useEffect(()=>{X!=null&&Ne==="In-Progress"&&$e==="Completed"&&X(A(`${x}.phone`))},[Ne,$e]);const yl=(o,C)=>{B(o,C)},xl=()=>H==null||H===""?!1:A(`${x}.phone`)===H,gl=()=>{const o=A(`${x}.phone`);return o!=null&&!Dl(o)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",T)};return l.jsxs(Ma,{style:n,windowSize:O,children:[l.jsxs(Ra,{windowSize:O,isOverlay:re,children:[l.jsxs(Qa,{children:[l.jsxs(qa,{children:[J===!0?l.jsx(Ha,{children:G?l.jsx(Ua,{}):l.jsx(Ya,{})}):null,l.jsx(Wa,{windowSize:O,children:E??ml})]}),oe?l.jsx(Ga,{children:l.jsx(We,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:O==="small"||f==="onboarding"?"bottom":"right",children:l.jsx(Ja,{})})}):null,f==="onboarding"&&E!=null?l.jsx(ll,{text:ol}):null,W!=null&&K?l.jsx(lt,{tagTitle:W?.name,textColor:qe(W.code),showLoader:D}):null]}),s?pl?U?l.jsxs(et,{children:[P?.photo!==void 0?l.jsx(Ka,{src:P?.photo.href,alt:sl.userProfileAltText,onError:({currentTarget:o})=>{o.onerror=null,o.src=_e},loading:"lazy"}):l.jsx(Ee,{firstName:P?.firstName??"",lastName:P?.lastName??"",size:`${a.sp4}`,index:je}),l.jsx(Me,{children:`${ul}`})]}):l.jsxs(at,{children:[l.jsx(tt,{children:l.jsx(it,{})}),l.jsx(Me,{children:`${r.addOfficer}`})]}):l.jsx(Za,{children:l.jsx(wa,{selectedUser:P,allUsers:m,onSelectedUserChanged:o=>{const C=Object.values(e).findIndex(fe=>fe?.userId===o?.userId);ne(`${x}.isSelectedForVerification`,!1),ne(`${y}.${C}.isSelectedForVerification`,!0)},customization:{placeholderLabel:r.addOfficer},showAddUser:m.length<=9,pickerStyles:{backgroundColor:me.colors.grey5,selectedOptionBackgroundColor:me.colors.background,customStyleConfig:O==="small"?hl:void 0}})}):null]}),Object.values(e).map((o,C)=>{if(k!==C)return null;const fe=$l(o?.documentTypeSelectedForVerification),ve=o?.userFiles??[],bl=()=>H!=""&&f==="onboarding"?xl():o?.isPhoneVerified??!1;return l.jsxs(Xa,{children:[l.jsx(el,{}),l.jsx(He,{isDisabled:I,label:{label:r.name,width:de},nameField:{name:F(x,"name"),placeHolder:{firstName:r.firstNamePlaceholder,lastName:r.lastNamePlaceholder,name:r.namePlaceholder},defaultValue:{firstName:o?.firstName??"",lastName:o?.lastName??""},registerOptions:{required:b.includes("name")===!1,validate:j=>b.includes("name")===!1?!!j:!0},showFullNameError:!0},errorInfoLabel:r.nameError.replace("_product_type_",T)}),l.jsx(z,{}),o?.userId==null?l.jsxs(l.Fragment,{children:[l.jsx(ee,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.email,width:de},text:{type:"email",name:F(x,"email"),placeholder:ce(r.email),defaultValue:o?.email,options:{required:b.includes("email")===!1}},additionalInfoLabel:r.emailDescription.replace("_product_type_",T)}),l.jsx(z,{})]}):null,l.jsx(Ue,{isDisabled:I,label:{label:r.dobLabel,width:he},dateField:{name:F(x,"dob"),type:"text",defaultValue:o?.birthday,placeholder:ce(r.dobLabel),dateFormat:rl.defaultInput,maxDate:Se.dateNow().subtract(g==="unit"?18:13,"years"),registerOptions:{required:b.includes("dob")===!1},autoComplete:"off"},additionalInfoLabel:r.dobDescription.replace("_product_type_",T),isMasked:!0}),l.jsx(z,{}),l.jsx(vl,{isDisabled:I,label:{label:r.nationalityLabel,width:de},showAdditionalInfoLabel:f!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",T),countrySelectField:{name:F(x,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:Sl(o?.nationalityCountryCode,h.map(j=>j.countryCode)),registerOptions:{validate:j=>!!(j!=null&&j.selectedOption)}}}),l.jsx(z,{}),l.jsx(Le,{isDisabled:I,label:{label:r.address,width:de},addressValueField:{name:F(x,"officerAddress"),placeholder:ce(r.address),defaultValue:o?.addressStatus?.addressToCreate,registerOptions:{validate:j=>b.includes("officerAddress")===!1?!(I==null&&j==null):!0},onClick:()=>{q(o?.officerType.toLocaleLowerCase().concat("_address"))}},additionalInfoLabel:f==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",T),showAdditionalInfoLabel:!0}),l.jsx(z,{}),l.jsx(Ye,{isDisabled:I,label:{label:r.phone,width:de},text:{name:F(x,"phone"),placeholder:ce(r.phone),defaultValue:o?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:gl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:Y,phoneVerifyButtonProps:{otpChallenge:o?.otpChallenge,showOtpButton:g==="unit",onGetOtp:$,onVerifyOtp:yl,onResendOtp:se,isPhoneVerified:bl(),phoneVerificationStatus:o?.otpverificationStatus,getOtpStatus:o?.sendOtpStatus,openPopup:p,verifiedPhoneNumber:H,focusNotRequired:!0}}),l.jsx(z,{}),l.jsx(Ie,{label:{label:r.companyRoleLabel,width:he},singleSelectField:{singleSelect:{name:F(x,"role"),placeholder:dl,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:fl,isDisabled:I,showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:o?.titleAtCompany,allOptions:_?.map(j=>j.code)??[]},registerOptions:{required:b.includes("role")===!1,validate:j=>b.includes("role")===!1?!(I==null&&!j?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:r.companyRoleDescription.replace("_product_type_",T)}),l.jsx(z,{}),l.jsx(Ve,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:he},formattedTextField:{type:"number",name:F(x,"ownership"),defaultValue:o?.ownershipInCompany,placeholder:r.companyOwnershipPlaceholder,returnValueType:"floatValue",suffix:"%",allowNegative:!1,isNumericString:!1,registerOptions:{required:b.includes("ownership")===!1,validate:j=>j!=null?j>0&&j<=100:!0,max:100},autoComplete:"new-password"},additionalInfoLabel:f==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(z,{}),l.jsx(Ve,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:he},formattedTextField:{type:"text",name:F(x,"ssn"),placeholder:r.addSSNPlaceholder,defaultValue:o?.ssn,format:"###-##-####",registerOptions:{required:b.includes("ssn")===!1,pattern:Il},autoComplete:"new-password",maxLength:9,allowLeadingZeros:!0},protectedInfoText:I!=null&&o?.ssn?cl:void 0,additionalInfoLabel:r.ssnDescription.replace("_product_type_",T),isMasked:!0}),l.jsx(z,{}),l.jsx(Cl,{name:F(x,"selectDocument"),officerIndex:k,sizeLimit:Ce,filesEndPoint:te,authParams:ie,onEditFileName:Z,acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],label:{width:nl},allFiles:ve,updateFilesEntity:Q,deleteFileStatusById:tl,updateFileStatusById:il,onDeleteFile:w,isDisabled:I,menuPlacement:f==="onboarding"&&fe==null?"top":"auto",defaultValue:{defaultSelectDocumentType:fe,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:ke(!0,ve,Fe),back:ke(!1,ve,Fe)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:be,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",T),onFileSizeError:j=>we(j),isPopupOpen:Y,openPopup:p,companyOfficerName:{firstName:o?.firstName??"",lastName:o?.lastName??""}})]},x)})]})}const F=(e,c)=>`${e}.${c}`,Ma=t.div`
170
170
  display: flex;
171
171
  flex-direction: column;
172
172
  row-gap: ${e=>pe.containerRowGap.valuePx(e.windowSize)};
@@ -203,10 +203,10 @@ import{e as Oe,u as Re,cn as wl,M as ae,C as L,a2 as jl,j as l,bB as We,f3 as qe
203
203
  &:hover {
204
204
  color: ${e=>e.theme.colors.primary};
205
205
  }
206
- `,Ka=t(Ke)`
206
+ `,Ja=t(Je)`
207
207
  width: ${a.sp3};
208
208
  height: ${a.sp3};
209
- `,Qa=t.img`
209
+ `,Ka=t.img`
210
210
  height: ${a.sp4};
211
211
  width: ${a.sp4};
212
212
  border-radius: 50%;
@@ -214,7 +214,7 @@ import{e as Oe,u as Re,cn as wl,M as ae,C as L,a2 as jl,j as l,bB as We,f3 as qe
214
214
  `,Za=t.div`
215
215
  margin-right: 14px;
216
216
  color: ${e=>e.theme.colors.primary};
217
- `,Ja=t.div`
217
+ `,Qa=t.div`
218
218
  display: flex;
219
219
  align-items: center;
220
220
  `,Xa=t.div`
@@ -241,7 +241,7 @@ import{e as Oe,u as Re,cn as wl,M as ae,C as L,a2 as jl,j as l,bB as We,f3 as qe
241
241
  white-space: nowrap;
242
242
  overflow: hidden;
243
243
  text-overflow: ellipsis;
244
- `,lt=t(Qe)`
244
+ `,lt=t(Ke)`
245
245
  width: max-content;
246
246
  margin-left: ${a.sp3};
247
247
  `,at=t(De)`
@@ -1,4 +1,4 @@
1
- import{j as r,Z as x,_ as M,$ as f,M as p,o as s,a5 as w,i as g,a6 as j}from"./index-B8OsEhOZ.js";import{b as t,n as o}from"./vendor-rkTZJa59.js";import{c as H}from"./SummaryCard-BsPejHZG-DSp7yYcI.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./ReloadCard-DxJMY9If-DFVN_BWj.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,Z as x,_ as M,$ as f,B as p,o as s,a5 as w,w as g,a6 as j}from"./index-B9FgmOrh.js";import{b as t,n as o}from"./vendor-rkTZJa59.js";import{c as H}from"./SummaryCard-BNLe-1HR-C_RfG6jc.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./ReloadCard-DHExBNFX-DM0aXM9S.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)`
2
2
  margin: ${s.sp5};
3
3
  justify-content: space-between;
4
4
  `,W=o.div`
@@ -9,18 +9,18 @@ import{j as r,Z as x,_ as M,$ as f,M as p,o as s,a5 as w,i as g,a6 as j}from"./i
9
9
  margin-bottom: ${s.sp3};
10
10
  `,V=o(g)`
11
11
  color: ${e=>e.theme.colors.champion};
12
- `,b=o.div`
12
+ `,I=o.div`
13
13
  display: flex;
14
14
  width: 100%;
15
15
  flex-direction: column;
16
- `,I=o.div`
17
- color: ${e=>e.theme.colors.primary};
18
16
  `,T=o.div`
17
+ color: ${e=>e.theme.colors.primary};
18
+ `,$=o.div`
19
19
  display: flex;
20
20
  flex-direction: row;
21
21
  align-items: center;
22
22
  margin: ${s.sp3} ${s.sp0};
23
- `,$=o.div`
23
+ `,b=o.div`
24
24
  margin-right: ${s.sp3};
25
25
  `,N=o.div`
26
26
  display: flex;
@@ -39,4 +39,4 @@ import{j as r,Z as x,_ as M,$ as f,M as p,o as s,a5 as w,i as g,a6 as j}from"./i
39
39
  width: 100%;
40
40
  height: 1px;
41
41
  background-color: ${e=>e.theme.colors.grey3};
42
- `;function Q({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(V,{children:p.getLocalizedStrings().companyPassportCard.title})}),y.map((i,d)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(b,{children:[r.jsxs(T,{children:[r.jsx($,{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(Z,{}):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(I,{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{Q 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(V,{children:p.getLocalizedStrings().companyPassportCard.title})}),y.map((i,d)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(I,{children:[r.jsxs($,{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(Z,{}):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(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{e as P,u as Ae,a2 as ca,a as da,ca as pa,M as k,j as a,aX as ma,F as ua,cb as ha,m as V,a4 as fa,C as m,cc as xa,a3 as Ce,o as t,p as ae,cd as z,ce as ze,cf as L,cg as ya,ch as qe,ci as ga,cj as ba,ck as Ue,Y as $a,cl as wa,cm as He,cn as Ge,co as Ia,cp as ja,cq as va,g as N,cr as Sa,cs as Da,aO as Oa,a6 as Ca,ao as U,ct as Fe,s as p,i as Xe,J as Me,cu as Fa,N as ka,cv as Ta,cw as Na,b3 as Pa,cx as La,bO as za,cy as Ma,B as Ea,b4 as R,cz as Va,v as de,b1 as Ba}from"./index-B8OsEhOZ.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-rkTZJa59.js";import{T as Ze}from"./LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js";import{Y as Je}from"./LabeledDocumentField-By7zV2VD-Deh87JH9.js";import{$ as Qe}from"./LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Ke={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ra=_a`
1
+ import{e as P,u as Ae,a2 as ca,a as da,ca as pa,B as k,j as a,aX as ma,F as ua,cb as ha,l as V,a4 as fa,C as m,cc as xa,a3 as Ce,o as t,s as ae,cd as z,ce as ze,cf as L,cg as ya,ch as qe,ci as ga,cj as ba,ck as Ue,Y as $a,cl as wa,cm as He,cn as Ge,co as Ia,cp as ja,cq as va,g as N,cr as Sa,cs as Da,aO as Oa,a6 as Ca,ao as U,ct as Fe,q as p,w as Xe,K as Me,cu as Fa,O as ka,cv as Ta,cw as Na,b3 as Pa,cx as La,bO as za,cy as Ma,k as Ea,b4 as R,cz as Va,v as de,b1 as Ba}from"./index-B9FgmOrh.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-rkTZJa59.js";import{T as Ze}from"./LabeledCreatableSingleSelectField-B2tnkBes-WTYRlYy4.js";import{Y as Je}from"./LabeledDocumentField-DIZb6TGh-BGGslw6p.js";import{$ as Ke}from"./LabeledAddressValue-fMxbPIcj-L294sEHK.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.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
  }
@@ -11,7 +11,7 @@ import{e as P,u as Ae,a2 as ca,a as da,ca as pa,M as k,j as a,aX as ma,F as ua,c
11
11
  right: ${t.sp3};
12
12
  z-index: 1400;
13
13
  padding: ${t.sp3} ${t.sp4};
14
- max-width: ${e=>Ke.maxWidth.valuePx(e.windowSize)};
14
+ max-width: ${e=>Qe.maxWidth.valuePx(e.windowSize)};
15
15
  background: ${e=>e.theme.colors.black};
16
16
  border-radius: 12px;
17
17
  box-shadow: ${e=>`${t.sp0} ${t.sp1} ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
@@ -35,7 +35,7 @@ import{e as P,u as Ae,a2 as ca,a as da,ca as pa,M as k,j as a,aX as ma,F as ua,c
35
35
  `,Ha=s(Ca)`
36
36
  color: ${N.neutralGrey2Light};
37
37
  `,Ga=s.div`
38
- max-width: ${e=>Ke.contentMaxWidth.valuePx(e.windowSize)};
38
+ max-width: ${e=>Qe.contentMaxWidth.valuePx(e.windowSize)};
39
39
  margin: ${t.sp0} ${t.sp3};
40
40
  `,Xa=s(Oa)`
41
41
  color: ${e=>e.isSuccess?N.success:N.important};
@@ -47,7 +47,7 @@ import{e as P,u as Ae,a2 as ca,a as da,ca as pa,M as k,j as a,aX 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 Qa(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(qa,{}),a.jsxs(Ga,{windowSize:o,children:[a.jsx(Xa,{isSuccess:c,children:c?n.success:n.error}),a.jsx(Ua,{children:a.jsx(Ha,{children:Ja(l)})})]}),a.jsx(Za,{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 Ka(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,D=ne.labelWidth.value(o),j=ne.largeLabelWidth.value(o),g=ne.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:S}=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(Ze,{label:{label:S.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:S.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:D},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:Ue,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
+ `,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(qa,{}),a.jsxs(Ga,{windowSize:o,children:[a.jsx(Xa,{isSuccess:c,children:c?n.success:n.error}),a.jsx(Ua,{children:a.jsx(Ha,{children:Ja(l)})})]}),a.jsx(Za,{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,D=ne.labelWidth.value(o),j=ne.largeLabelWidth.value(o),g=ne.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:S}=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(Ze,{label:{label:S.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:S.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:D},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:Ue,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`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  padding-top: ${t.sp3};
@@ -112,7 +112,7 @@ import{e as P,u as Ae,a2 as ca,a as da,ca as pa,M as k,j as a,aX 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=D=>o.find(j=>j.code===D)?.name??D;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:G(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(q,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:G(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(q,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:G(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(q,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:G(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(D=>D.code)??[]}},isFunctional:!0}),a.jsx(q,{}),a.jsx(Ze,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:G(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(q,{}),a.jsx(Qe,{isDisabled:c,label:{label:v.companyInfo.address,width:y},addressValue:{placeholder:L(v.companyInfo.address),address:i?.addressToCreate,onClick:()=>f("company_address")}}),a.jsx(q,{}),a.jsx(qe,{isDisabled:c,label:{label:v.companyInfo.phone,width:y},text:{name:G(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(q,{}),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)}`},G=(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=D=>o.find(j=>j.code===D)?.name??D;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:G(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(q,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:G(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(q,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:G(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(q,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:G(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(D=>D.code)??[]}},isFunctional:!0}),a.jsx(q,{}),a.jsx(Ze,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:G(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(q,{}),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(q,{}),a.jsx(qe,{isDisabled:c,label:{label:v.companyInfo.phone,width:y},text:{name:G(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(q,{}),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)}`},G=(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{e as P,u as Ae,a2 as ca,a as da,ca as pa,M as k,j as a,aX 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(Qe,{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(qe,{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}=Ge(),[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((S,x)=>x!==d);c(o,O),r(-1)}else r(g)},D=()=>{r(-1)},j=()=>{const g=h.filter((O,S)=>S!==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 S=g.localData,x=g.addressStatus,B=S?.userId==null||S?.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:D,onRemoveOfficerSection:j}):null,a.jsx(ht,{sectionId:`${o}.${O}`,officer:S,officerAddress:x,isDisabled:i,isEmptyCompanyOfficerSection:b,onOfficerAddressClick:n})]},S?.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(St,{}),a.jsx(Dt,{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(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(qe,{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}=Ge(),[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((S,x)=>x!==d);c(o,O),r(-1)}else r(g)},D=()=>{r(-1)},j=()=>{const g=h.filter((O,S)=>S!==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 S=g.localData,x=g.addressStatus,B=S?.userId==null||S?.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:D,onRemoveOfficerSection:j}):null,a.jsx(ht,{sectionId:`${o}.${O}`,officer:S,officerAddress:x,isDisabled:i,isEmptyCompanyOfficerSection:b,onOfficerAddressClick:n})]},S?.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(St,{}),a.jsx(Dt,{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{e as P,u as Ae,a2 as ca,a as da,ca as pa,M as k,j as a,aX 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
- `,Gt=()=>null,Xt=()=>null,Ve=e=>e.map(o=>Zt(o)),Zt=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(Qt,{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 Qt=s.div`
393
+ `,Gt=()=>null,Xt=()=>null,Ve=e=>e.map(o=>Zt(o)),Zt=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`
394
394
  display: flex;
395
395
  flex-direction: row;
396
396
  align-items: flex-start;
@@ -436,7 +436,7 @@ import{e as P,u as Ae,a2 as ca,a as da,ca as pa,M as k,j as a,aX 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 Kt(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:D}=e,j=Be.labelWidth.value(o),g=Be.largeLabelWidth.value(o),O=!V.hasAdminLevelAccess(l.loggedInUserRole??[]),S=u.find(x=>x.documentType==="tax_ein");return a.jsxs(eo,{style:D,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:X(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:X(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:X(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:X(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:X(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:X(h,"einDocument"),isDisabled:$,sizeLimit:Ue,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:S,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 X=(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:D}=e,j=Be.labelWidth.value(o),g=Be.largeLabelWidth.value(o),O=!V.hasAdminLevelAccess(l.loggedInUserRole??[]),S=u.find(x=>x.documentType==="tax_ein");return a.jsxs(eo,{style:D,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:X(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:X(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:X(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:X(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:X(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:X(h,"einDocument"),isDisabled:$,sizeLimit:Ue,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:S,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 X=(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{e as P,u as Ae,a2 as ca,a as da,ca as pa,M as k,j as a,aX 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",Se="primaryContact",De="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:D,onAddressClick:j,onScheduleClick:g,onBackClick:O,onResetClick:S,onEditFileName:x,updateFilesEntity:B,onDeleteFile:me,onClickMenuIcon:J}=e,{companyView:Q,localData:H,deleteFileStatusById:ke,updateFileStatusById:Te}=i,{companyFiles:te}=H,Ne={authParams:f,filesEndPoint:c,onEditFileName:x,onDeleteFile:me,updateFilesEntity:B},[K,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)),K!==Y.fetchState&&oe(Y.fetchState))},[K,W,Pe,Y,H,Q,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(Se)){$(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(De)){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=>{K!=null&&oe(void 0),D()}),{companyPassport:se,common:{settings:na}}=k.getLocalizedStrings();if(Q==null)throw new Error("Company View is null");return a.jsxs(So,{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}),K!=null?a.jsx(Qa,{fetchState:K,onRemoveSnackbar:()=>oe(void 0)}):null,a.jsxs(Do,{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:Q,companyAddress:la,isDisabled:r,onCompanyAddressClick:j,allIndustries:d}),a.jsx(Ka,{sectionId:je,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyIncInfo:le?.incInfo,fileProps:Ne,isDisabled:r}),a.jsx(Kt,{sectionId:ve,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyTaxInfo:le?.taxDetails,fileProps:Ne,isDisabled:r}),a.jsx(io,{sectionId:Se,primaryContact:ta.localData,isDisabled:r}),a.jsx(ft,{companyOfficers:ie,sectionId:De,isDisabled:r,onOfficerAddressClick:j}),a.jsx($o,{data:Q,companyInfo:le?.companyInfo,isDisabled:r,isZeniUser:n,sectionId:Oe,onScheduleClick:g})]})})]}),ha(W.formState.dirtyFields)||V.isCompanyPassportDataToBeSaved(H,Q,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(),S()}}}):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},[Se]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[De]: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()??""}}},So=s.div`
553
+ `,we={width:new m(343,580,726),buttonWidth:new m(85,85)},_e="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",Se="primaryContact",De="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:D,onAddressClick:j,onScheduleClick:g,onBackClick:O,onResetClick:S,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(Se)){$(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(De)){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),D()}),{companyPassport:se,common:{settings:na}}=k.getLocalizedStrings();if(K==null)throw new Error("Company View is null");return a.jsxs(So,{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(Do,{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:Se,primaryContact:ta.localData,isDisabled:r}),a.jsx(ft,{companyOfficers:ie,sectionId:De,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(),S()}}}):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},[Se]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[De]: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()??""}}},So=s.div`
554
554
  display: flex;
555
555
  min-height: 100%;
556
556
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{a as q,gk as v,M as m,j as A,gl as $,b as i,p as J,F as V,cd as W,cm as _,cj as T,m as Z,o as E,gm as z,ch as X,a4 as AA,c7 as gA,bx as BA,gn as eA}from"./index-B8OsEhOZ.js";import{b as g,f as D,n as Q}from"./vendor-rkTZJa59.js";import{$ as EA}from"./LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const CA=B=>g.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...B},g.createElement("path",{opacity:.2,d:"M26.3252 5H51.6377C51.6377 5 57.2627 5 57.2627 10.625V64.0625C57.2627 64.0625 57.2627 69.6875 51.6377 69.6875H26.3252C26.3252 69.6875 20.7002 69.6875 20.7002 64.0625V10.625C20.7002 10.625 20.7002 5 26.3252 5Z",fill:"#97C3B9"}),g.createElement("path",{d:"M23.3252 2H48.6377C48.6377 2 54.2627 2 54.2627 7.625V61.0625C54.2627 61.0625 54.2627 66.6875 48.6377 66.6875H23.3252C23.3252 66.6875 17.7002 66.6875 17.7002 61.0625V7.625C17.7002 7.625 17.7002 2 23.3252 2Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.0127 2V4.8125C43.0127 5.55842 42.7164 6.27379 42.1889 6.80124C41.6615 7.32868 40.9461 7.625 40.2002 7.625H31.7627C31.0168 7.625 30.3014 7.32868 29.774 6.80124C29.2465 6.27379 28.9502 5.55842 28.9502 4.8125V2",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("g",{style:{mixBlendMode:"darken"}},g.createElement("rect",{width:26,height:26,transform:"translate(22 12)",fill:"url(#pattern0_2225_11447)"}),g.createElement("circle",{cx:42,cy:32,r:12,fill:"url(#pattern1_2225_11447)"})),g.createElement("path",{d:"M39.625 57.875H67.125C67.4565 57.875 67.7745 57.7433 68.0089 57.5089C68.2433 57.2745 68.375 56.9565 68.375 56.625V47.875C68.375 47.5435 68.2433 47.2255 68.0089 46.9911C67.7745 46.7567 67.4565 46.625 67.125 46.625H40.875C40.5435 46.625 40.2255 46.7567 39.9911 46.9911C39.7567 47.2255 39.625 47.5435 39.625 47.875V57.875Z",fill:"#EAF3F1",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M62.1543 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0629 50.9288L64.2441 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0744 53.6874L64.2344 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M53.9727 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8812 50.9288L56.0625 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8927 53.6874L56.0527 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M45.792 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7006 50.9288L47.8818 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7121 53.6874L47.8721 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("defs",null,g.createElement("pattern",{id:"pattern0_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"scale(0.002)"})),g.createElement("pattern",{id:"pattern1_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"translate(-0.332832 -0.331172) scale(0.00333133)"})),g.createElement("image",{id:"image0_2225_11447",width:500,height:500,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAAAXNSR0IArs4c6QAAFQVJREFUeF7t1cENwCAQA0Hov1s+yS+R6OJWQwV4fJL3ed5veQQIECBAgMBogW3QR/fn8wQIECBA4AoYdIdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAAB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dAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDgB7iZk96LOSbbAAAAAElFTkSuQmCC"}))),QA=B=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...B},g.createElement("path",{d:"M1.33333 6.16693H2.52343C2.68125 6.16693 2.8326 6.22962 2.94419 6.34122C3.05579 6.45281 3.11848 6.60416 3.11848 6.76198V13.9026C3.11848 14.0604 3.05579 14.2118 2.94419 14.3233C2.8326 14.4349 2.68125 14.4976 2.52343 14.4976H1.33333",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M3.11848 12.7125C7.48556 14.9296 7.27253 14.6374 11.0118 14.6374C12.578 14.6374 13.367 13.6169 13.8276 12.1216V12.1121L14.9624 8.30373V8.29659C15.016 8.11929 15.0275 7.93192 14.9959 7.74939C14.9644 7.56686 14.8907 7.39421 14.7807 7.24519C14.6707 7.09617 14.5274 6.97488 14.3622 6.89099C14.1971 6.8071 14.0146 6.76292 13.8294 6.76196H10.9136C10.7315 6.76197 10.5518 6.72017 10.3883 6.63977C10.2249 6.55937 10.082 6.44253 9.97086 6.29824C9.85968 6.15395 9.7831 5.98606 9.74704 5.80751C9.71097 5.62896 9.71637 5.44452 9.76281 5.26838L10.2876 3.27854C10.3485 3.04716 10.326 2.80175 10.2241 2.58528C10.1223 2.36881 9.94748 2.19507 9.73041 2.09448C9.51334 1.99388 9.2678 1.97285 9.03679 2.03506C8.80577 2.09727 8.604 2.23876 8.4668 2.43475L5.55819 6.55548C5.44832 6.7112 5.30266 6.83826 5.13345 6.92597C4.96425 7.01368 4.77646 7.05947 4.58588 7.05948H3.11848",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),e=m.getLocalizedStrings(),h="completeProfilePage",o="basicDetailsSection",c="addressSection",s=(B,l)=>`${B}.${l}`,wA=({userEmail:B,googleAPIKey:l,twoFactorAuthenticationView:u,saveStatus:G,hasUserEnteredBasicDetails:S,onSave:d,onGetOtp:w,onVerifyOtp:M,onResendOtp:k})=>{const[I,n]=g.useState(!1),[x,Y]=g.useState(!1),t=q({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:B,dateOfBirth:void 0,phone:"",address:void 0}}}),y=v({control:t.control,name:`${o}.address`}),{dateFormat:f}=m.getLocalizedStrings(),F=t.handleSubmit(C=>{d&&d(C)}),L=()=>{const C=t.getValues(`${o}.phone`);C!=null&&C.trim().length>0&&w(C)},R=(C,a)=>{M(C,a)},U=C=>{C!=null&&C.trim().length>0&&k(C)},K=()=>{n(!0)},P=()=>{n(!1)},b=()=>{const C=t.getValues(`${c}`);if(C!=null){const a=eA(C);t.setValue(`${o}.address`,a)}n(!1)},{sendOtpStatus:j,otpVerificationStatus:r,otpChallenge:O,phone:H}=u,N=A.jsxs(iA,{children:[A.jsx(CA,{}),A.jsxs(sA,{children:[A.jsxs(lA,{children:[A.jsx($,{children:r.fetchState==="Completed"?e.completeProfile.twoFAEnabled:e.completeProfile.enableTwoFA}),A.jsx(i,{controller:r.fetchState==="Completed",children:A.jsx(nA,{})})]}),A.jsx(J,{children:e.completeProfile.enableTwoFADescription})]})]});return A.jsxs(oA,{children:[A.jsxs(IA,{children:[A.jsxs(tA,{children:[I&&A.jsx(rA,{onClick:P}),e.completeProfile.title]}),A.jsx(V,{...t,children:A.jsxs("form",{id:`${h}_form`,onSubmit:F,children:[A.jsx(i,{controller:S===!1,children:A.jsxs(p,{children:[A.jsx(i,{controller:I===!1,children:A.jsxs(D.Fragment,{children:[A.jsx(W,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:e.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:s(o,"email")}}),A.jsx(_,{isDisabled:void 0,label:{label:e.common.labels.name,width:168},style:{width:"100%"},nameField:{name:s(o,"name"),placeHolder:{firstName:e.common.placeholder.firstNamePlaceholder,lastName:e.common.placeholder.lastNamePlaceholder,name:e.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),A.jsx(T,{isOptional:!0,label:{label:e.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:s(o,"dateOfBirth"),placeholder:e.common.placeholder.dobPlaceholder,dateFormat:f.visual.defaultInput,autoComplete:"off",maxDate:Z.dateNow().subtract(18,"year")}}),A.jsx(EA,{isOptional:!0,label:{label:e.common.labels.address,width:168},addressValue:{placeholder:e.common.placeholder.addressPlaceholder,address:y,onClick:K},style:{width:"100%",padding:`${E.sp2} ${E.sp2} ${E.sp2} ${E.sp0}`}})]})}),A.jsx(i,{controller:I===!0,children:A.jsx(D.Fragment,{children:A.jsx(z,{sectionId:c,googleAPIKey:l,isSubPage:!0})})})]})}),A.jsx(p,{children:A.jsx(X,{infoBox:N,label:{label:e.common.labels.phone,width:168},style:{width:"100%",marginTop:E.sp3,padding:E.sp0},text:{name:s(o,"phone"),placeholder:e.common.placeholder.phonePlaceholder,defaultValue:t.getValues(`${o}.phone`),autoComplete:"new-password",options:{required:!0}},errorInfoLabel:"",verificationErrorInfoLabel:e.common.errorMessage.invalidPhoneNumber,isPopupOpen:x,productType:"complete_profile",phoneVerifyButtonProps:{otpChallenge:O,showOtpButton:!0,onGetOtp:L,onVerifyOtp:R,onResendOtp:U,isPhoneVerified:r.fetchState==="Completed",phoneVerificationStatus:r,getOtpStatus:j,verifiedPhoneNumber:r.fetchState==="Completed"?H:void 0,openPopup:()=>{Y(!0)},focusNotRequired:!0},bottomText:r.fetchState==="Completed"?"":e.completeProfile.phoneSetupText})})]})})]}),A.jsx(AA,{formId:I?void 0:`${h}_form`,primaryBtn:{label:I?e.companyPassport.address.saveAddress:e.common.footer.save,type:I?"button":"submit",onClick:I?b:void 0,isLoading:G.fetchState==="In-Progress"},showCancel:!1})]})},oA=Q.div`
1
+ import{a as q,gk as v,B as m,j as A,gl as $,b as i,s as J,F as V,cd as W,cm as _,cj as T,l as Z,o as E,gm as z,ch as X,a4 as AA,c7 as gA,bx as BA,gn as eA}from"./index-B9FgmOrh.js";import{b as g,f as D,n as Q}from"./vendor-rkTZJa59.js";import{$ as EA}from"./LabeledAddressValue-fMxbPIcj-L294sEHK.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const CA=B=>g.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...B},g.createElement("path",{opacity:.2,d:"M26.3252 5H51.6377C51.6377 5 57.2627 5 57.2627 10.625V64.0625C57.2627 64.0625 57.2627 69.6875 51.6377 69.6875H26.3252C26.3252 69.6875 20.7002 69.6875 20.7002 64.0625V10.625C20.7002 10.625 20.7002 5 26.3252 5Z",fill:"#97C3B9"}),g.createElement("path",{d:"M23.3252 2H48.6377C48.6377 2 54.2627 2 54.2627 7.625V61.0625C54.2627 61.0625 54.2627 66.6875 48.6377 66.6875H23.3252C23.3252 66.6875 17.7002 66.6875 17.7002 61.0625V7.625C17.7002 7.625 17.7002 2 23.3252 2Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.0127 2V4.8125C43.0127 5.55842 42.7164 6.27379 42.1889 6.80124C41.6615 7.32868 40.9461 7.625 40.2002 7.625H31.7627C31.0168 7.625 30.3014 7.32868 29.774 6.80124C29.2465 6.27379 28.9502 5.55842 28.9502 4.8125V2",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("g",{style:{mixBlendMode:"darken"}},g.createElement("rect",{width:26,height:26,transform:"translate(22 12)",fill:"url(#pattern0_2225_11447)"}),g.createElement("circle",{cx:42,cy:32,r:12,fill:"url(#pattern1_2225_11447)"})),g.createElement("path",{d:"M39.625 57.875H67.125C67.4565 57.875 67.7745 57.7433 68.0089 57.5089C68.2433 57.2745 68.375 56.9565 68.375 56.625V47.875C68.375 47.5435 68.2433 47.2255 68.0089 46.9911C67.7745 46.7567 67.4565 46.625 67.125 46.625H40.875C40.5435 46.625 40.2255 46.7567 39.9911 46.9911C39.7567 47.2255 39.625 47.5435 39.625 47.875V57.875Z",fill:"#EAF3F1",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M62.1543 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0629 50.9288L64.2441 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0744 53.6874L64.2344 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M53.9727 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8812 50.9288L56.0625 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8927 53.6874L56.0527 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M45.792 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7006 50.9288L47.8818 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7121 53.6874L47.8721 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("defs",null,g.createElement("pattern",{id:"pattern0_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"scale(0.002)"})),g.createElement("pattern",{id:"pattern1_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"translate(-0.332832 -0.331172) scale(0.00333133)"})),g.createElement("image",{id:"image0_2225_11447",width:500,height:500,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAAAXNSR0IArs4c6QAAFQVJREFUeF7t1cENwCAQA0Hov1s+yS+R6OJWQwV4fJL3ed5veQQIECBAgMBogW3QR/fn8wQIECBA4AoYdIdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt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AgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDgB7iZk96LOSbbAAAAAElFTkSuQmCC"}))),QA=B=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...B},g.createElement("path",{d:"M1.33333 6.16693H2.52343C2.68125 6.16693 2.8326 6.22962 2.94419 6.34122C3.05579 6.45281 3.11848 6.60416 3.11848 6.76198V13.9026C3.11848 14.0604 3.05579 14.2118 2.94419 14.3233C2.8326 14.4349 2.68125 14.4976 2.52343 14.4976H1.33333",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M3.11848 12.7125C7.48556 14.9296 7.27253 14.6374 11.0118 14.6374C12.578 14.6374 13.367 13.6169 13.8276 12.1216V12.1121L14.9624 8.30373V8.29659C15.016 8.11929 15.0275 7.93192 14.9959 7.74939C14.9644 7.56686 14.8907 7.39421 14.7807 7.24519C14.6707 7.09617 14.5274 6.97488 14.3622 6.89099C14.1971 6.8071 14.0146 6.76292 13.8294 6.76196H10.9136C10.7315 6.76197 10.5518 6.72017 10.3883 6.63977C10.2249 6.55937 10.082 6.44253 9.97086 6.29824C9.85968 6.15395 9.7831 5.98606 9.74704 5.80751C9.71097 5.62896 9.71637 5.44452 9.76281 5.26838L10.2876 3.27854C10.3485 3.04716 10.326 2.80175 10.2241 2.58528C10.1223 2.36881 9.94748 2.19507 9.73041 2.09448C9.51334 1.99388 9.2678 1.97285 9.03679 2.03506C8.80577 2.09727 8.604 2.23876 8.4668 2.43475L5.55819 6.55548C5.44832 6.7112 5.30266 6.83826 5.13345 6.92597C4.96425 7.01368 4.77646 7.05947 4.58588 7.05948H3.11848",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),e=m.getLocalizedStrings(),h="completeProfilePage",o="basicDetailsSection",c="addressSection",s=(B,l)=>`${B}.${l}`,wA=({userEmail:B,googleAPIKey:l,twoFactorAuthenticationView:u,saveStatus:G,hasUserEnteredBasicDetails:S,onSave:d,onGetOtp:w,onVerifyOtp:M,onResendOtp:k})=>{const[I,n]=g.useState(!1),[x,Y]=g.useState(!1),t=q({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:B,dateOfBirth:void 0,phone:"",address:void 0}}}),y=v({control:t.control,name:`${o}.address`}),{dateFormat:f}=m.getLocalizedStrings(),F=t.handleSubmit(C=>{d&&d(C)}),L=()=>{const C=t.getValues(`${o}.phone`);C!=null&&C.trim().length>0&&w(C)},R=(C,a)=>{M(C,a)},U=C=>{C!=null&&C.trim().length>0&&k(C)},K=()=>{n(!0)},P=()=>{n(!1)},b=()=>{const C=t.getValues(`${c}`);if(C!=null){const a=eA(C);t.setValue(`${o}.address`,a)}n(!1)},{sendOtpStatus:j,otpVerificationStatus:r,otpChallenge:O,phone:H}=u,N=A.jsxs(iA,{children:[A.jsx(CA,{}),A.jsxs(sA,{children:[A.jsxs(lA,{children:[A.jsx($,{children:r.fetchState==="Completed"?e.completeProfile.twoFAEnabled:e.completeProfile.enableTwoFA}),A.jsx(i,{controller:r.fetchState==="Completed",children:A.jsx(nA,{})})]}),A.jsx(J,{children:e.completeProfile.enableTwoFADescription})]})]});return A.jsxs(oA,{children:[A.jsxs(IA,{children:[A.jsxs(tA,{children:[I&&A.jsx(rA,{onClick:P}),e.completeProfile.title]}),A.jsx(V,{...t,children:A.jsxs("form",{id:`${h}_form`,onSubmit:F,children:[A.jsx(i,{controller:S===!1,children:A.jsxs(p,{children:[A.jsx(i,{controller:I===!1,children:A.jsxs(D.Fragment,{children:[A.jsx(W,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:e.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:s(o,"email")}}),A.jsx(_,{isDisabled:void 0,label:{label:e.common.labels.name,width:168},style:{width:"100%"},nameField:{name:s(o,"name"),placeHolder:{firstName:e.common.placeholder.firstNamePlaceholder,lastName:e.common.placeholder.lastNamePlaceholder,name:e.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),A.jsx(T,{isOptional:!0,label:{label:e.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:s(o,"dateOfBirth"),placeholder:e.common.placeholder.dobPlaceholder,dateFormat:f.visual.defaultInput,autoComplete:"off",maxDate:Z.dateNow().subtract(18,"year")}}),A.jsx(EA,{isOptional:!0,label:{label:e.common.labels.address,width:168},addressValue:{placeholder:e.common.placeholder.addressPlaceholder,address:y,onClick:K},style:{width:"100%",padding:`${E.sp2} ${E.sp2} ${E.sp2} ${E.sp0}`}})]})}),A.jsx(i,{controller:I===!0,children:A.jsx(D.Fragment,{children:A.jsx(z,{sectionId:c,googleAPIKey:l,isSubPage:!0})})})]})}),A.jsx(p,{children:A.jsx(X,{infoBox:N,label:{label:e.common.labels.phone,width:168},style:{width:"100%",marginTop:E.sp3,padding:E.sp0},text:{name:s(o,"phone"),placeholder:e.common.placeholder.phonePlaceholder,defaultValue:t.getValues(`${o}.phone`),autoComplete:"new-password",options:{required:!0}},errorInfoLabel:"",verificationErrorInfoLabel:e.common.errorMessage.invalidPhoneNumber,isPopupOpen:x,productType:"complete_profile",phoneVerifyButtonProps:{otpChallenge:O,showOtpButton:!0,onGetOtp:L,onVerifyOtp:R,onResendOtp:U,isPhoneVerified:r.fetchState==="Completed",phoneVerificationStatus:r,getOtpStatus:j,verifiedPhoneNumber:r.fetchState==="Completed"?H:void 0,openPopup:()=>{Y(!0)},focusNotRequired:!0},bottomText:r.fetchState==="Completed"?"":e.completeProfile.phoneSetupText})})]})})]}),A.jsx(AA,{formId:I?void 0:`${h}_form`,primaryBtn:{label:I?e.companyPassport.address.saveAddress:e.common.footer.save,type:I?"button":"submit",onClick:I?b:void 0,isLoading:G.fetchState==="In-Progress"},showCancel:!1})]})},oA=Q.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  min-height: 100vh;
@@ -1 +1 @@
1
- import{d5 as m,ac as l,j as a,ak as f,o as n}from"./index-B8OsEhOZ.js";import{b as i}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.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{d5 as m,ac as l,j as a,ak as f,o as n}from"./index-B9FgmOrh.js";import{b as i}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.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};