@zeniai/web-cockpit-ui 1.15.18-dev → 1.15.19-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 (292) hide show
  1. package/dist/assets/{ACHDetailsPage-BrjUad4D-BobK3aVB.js → ACHDetailsPage-Bj4J02PO-C4Q2xy4-.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Dx1ituql-CUuKvJ8n.js → AIPerformancePage-kqP-8GTq-BJF4ETfH.js} +12 -12
  3. package/dist/assets/AccountInfoPage-Bl-lXVdR-BrlwC_GK.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BQxwZcii-DAnRLliM.js → AccountInfoPageContent-BfoA1Gse-C7eC0yBE.js} +10 -10
  5. package/dist/assets/AccountLockedInfoModal-CapmN1xL-DmXdIqXb.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DuI7qAkr-CohDb_Vn.js → AccountReconDetailsDrawerPage-y7iV6_PQ-D_ojlIG6.js} +16 -16
  7. package/dist/assets/{AccountRow-D3aEGfjh-CGXQQRag.js → AccountRow-BNdGXZbT-B-w9AEY5.js} +11 -11
  8. package/dist/assets/{AccountsPromoCardStack-BrTIGRUz-SlTiOsFA.js → AccountsPromoCardStack-BxQc3Ksg-BEzuSdPZ.js} +35 -35
  9. package/dist/assets/AddAddressForCardDrawer-DAcT8-PD-oJwne3Gy.js +6 -0
  10. package/dist/assets/{AddToWalletPage-DWMdtsY0-CgmcM53j.js → AddToWalletPage-CY-2tfXj-D4kgZ0ls.js} +18 -18
  11. package/dist/assets/{AgingReportsPage-CeFWs8X1-rGaFbgkD.js → AgingReportsPage-DG-IzhqU-D5iQytZw.js} +4 -4
  12. package/dist/assets/{AllUserItems-PN_oWzOC-Cfg4W7I4.js → AllUserItems-BLdx0SLb-D35470or.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CQtY9j4b-xFY56tWP.js → ApAgingDetailPage-UhXmkAke-DuPdvgym.js} +5 -5
  14. package/dist/assets/{AppBasePage-D0S7OYzO-CJcI9UYp.js → AppBasePage-BdqHkxAE-ClgCYonW.js} +11 -11
  15. package/dist/assets/{AppDrawerContent-TIRPcJoE-BOUb6qnD.js → AppDrawerContent-DLLABFVO-Z7eIU8wQ.js} +7 -7
  16. package/dist/assets/{ApprovalRulesSettingsPage-CosIHJ5R-BB8nW0VM.js → ApprovalRulesSettingsPage-2Xy362hA-lw7cG823.js} +3 -3
  17. package/dist/assets/{ArAgingChart-CiNirxU7-C_J23wNp.js → ArAgingChart-DUyxm4oV-BDzCa7w_.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CKBOlCcF-B9yZn5Tp.js → ArAgingDetailPage-BtKh2Y7T-Befa7jSt.js} +4 -4
  19. package/dist/assets/{AttachmentView-MqDuu6PB-C1zlk39q.js → AttachmentView-gjYAbjdi-CLgD0hYn.js} +2 -2
  20. package/dist/assets/{BankAccountSection-DXFRyqzV-Bg8zqqhX.js → BankAccountSection-DQcfhQLN-Cf4CJKge.js} +3 -3
  21. package/dist/assets/{BankAccountWarningSection-DJhHTBuh-D20FRc-x.js → BankAccountWarningSection-XMpgCYBF-BD-ZRFYQ.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-CQe2upIp-Cv47vnoF.js → BankConnectionsSettingsPage-Bi5QjRHp-DZsjWuDY.js} +33 -33
  23. package/dist/assets/{BillDetailPage-B0ajOYxz-CTy3XK0i.js → BillDetailPage-CgEXd2T5-D3RRlJ_U.js} +9 -9
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BcWQYqjU-CZdskYSr.js → BillPayApprovalRuleDetailPage-CPKMjF0R-DkefuNtD.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-mS00kg1n-C05g3Cpf.js → BillPayApprovalRulesPage-CFJpmXE7-BS2SEmMd.js} +9 -9
  26. package/dist/assets/{BillPayPromoPage-tUxWWqMY-t6w7JDnT.js → BillPayPromoPage-nRHevclA-CJKWVsld.js} +7 -7
  27. package/dist/assets/{BillPaySetUpPage-w47HuYkp-CbWSaNcn.js → BillPaySetUpPage-ynmgaK8Y-CjnJEFzj.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-Bsm7ZzIW-BChNCOOo.js → BillingSettingsPage-BNEvt1HK-BaSsXKiI.js} +6 -6
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DdI0OCuE-DjrQvH-7.js → BillsBulkReviewDrawerPage-D6tbE3BQ-DocKjVGy.js} +1 -1
  30. package/dist/assets/BoxItem-BdgRTwgI-DiOTWl08.js +53 -0
  31. package/dist/assets/{BusinessVerificationPage-p1cUyL8l-DeaLZxZn.js → BusinessVerificationPage-CU38xCol-B4S_9jHP.js} +10 -10
  32. package/dist/assets/{CardNumberSubText-yVfOUJpr-DRIDUYcf.js → CardNumberSubText-g2_GoH9f-aD70vkbB.js} +7 -7
  33. package/dist/assets/{CashbackDetailPage-DAX8aTFq-CX_nfeg0.js → CashbackDetailPage-SvujpPEs-C8gXhM7B.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-CTdVu2LX-CXvKoTcM.js → ChargeCardDetailPage-oaVwvFKq-qgCXX26B.js} +35 -35
  35. package/dist/assets/{ChargeCardListPage-BTf2sf_r-BIeWCtwJ.js → ChargeCardListPage-CGyxQ8Dx-B1x8tEOp.js} +19 -19
  36. package/dist/assets/{ChargeCardListTable-DEYusOGZ-BR9KGK-S.js → ChargeCardListTable-DKQnkAJ7-CbA18PS4.js} +30 -30
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BhIiSigy-CmcVMykk.js → ChargeCardPaymentHistoryPage-JxdV2F32-B8QxqdNq.js} +17 -17
  38. package/dist/assets/{ChargeCardPromoPage-SMg6Bkmx-BIBCjTA5.js → ChargeCardPromoPage-BM7oOdWh-cLjTbA-r.js} +10 -10
  39. package/dist/assets/{ChargeCardSetupPage-8jA-EjWA-SUTAHgR8.js → ChargeCardSetupPage-DqjFBKb_-D2isSGQZ.js} +4 -4
  40. package/dist/assets/{ChargeCardStatementsPage-CrsqrTNw-cq-ohGFk.js → ChargeCardStatementsPage-DKicQRml-DNQKyuH-.js} +4 -4
  41. package/dist/assets/{CheckDepositDrawerPage-BnMEa1gU-D4KA1YbO.js → CheckDepositDrawerPage-BoMMC-PD-BbZFeQ0t.js} +12 -12
  42. package/dist/assets/{CollapsableReportTable-BQsDuqwg-D4PksJ7s.js → CollapsableReportTable-CvAF66CY-D2P5-EVV.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-CxeWrQJH-XfC5iWX1.js → CompanyOfficerDetailsSection-ClnGjHwL-DjLuACPy.js} +7 -7
  44. package/dist/assets/{CompanyPassportCard-DUX32IvW-wDP-ayWY.js → CompanyPassportCard-De1ZqCMC-Co6Yn6Qv.js} +5 -5
  45. package/dist/assets/{CompanyPassportPage-Cp0oulai-BQFU8qYi.js → CompanyPassportPage-6281ivzv-B30kYLVx.js} +24 -24
  46. package/dist/assets/{CompleteProfile-BdeEu2dc-DABogw0l.js → CompleteProfile-C4YhvWhe-CIB56NG8.js} +2 -2
  47. package/dist/assets/ConfettiBurst-CR98FGfH-3rXf1OLF.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-Cr0pUg_S.js → ConstrainedInnerElement-BeIpAPjB-JviWwDyz.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-iFE1nb0J-tpGth2AK.js → CreateOrEditVendorPage-Dfq0ydKc-fAmE7u3u.js} +6 -6
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CaTanv1T-DKlglNsr.js → CreditCardPaymentDrawerPage-D8Rs6j9F-CECIifL2.js} +6 -6
  51. package/dist/assets/{CurrencySelectField-BNcLy0zv-DUL30Rmr.js → CurrencySelectField-dqih82Wa-Bf5oGIgX.js} +2 -2
  52. package/dist/assets/{CustomerOnboardingActivationPage-D_0kSaYs-DmoaOtfG.js → CustomerOnboardingActivationPage-CPhBnk1y-CsEDDRZo.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-Dn7vOa-2-acu82bx-.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B1jJ1XJX-Ec31gEaK.js → CustomerOnboardingDetailPageSkeleton-D92o0cYb-f4j90fLJ.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CyxHQxxQ-B3uyPHi-.js → CustomerOnboardingNoStepsPage-D-TyXZjQ-1BbkgoBb.js} +2 -2
  56. package/dist/assets/{CustomerOnboardingPage-Cj_k0rfN-dr4fZ7As.js → CustomerOnboardingPage-D8s20fEH-Drh1St8-.js} +10 -10
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-BPRN6xyM-BLvLQxxG.js → CustomerOnboardingProductSuitePage-B7v5nYAw--BKM9prl.js} +4 -4
  58. package/dist/assets/{Dashboard-DYpE_H2b-WMqZzzuP.js → Dashboard-DLhx6D0s-A89AzrUL.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-BB6dW8kR-BVA8DQgX.js → DashboardReportPage-G-hbFFVd-duPSFRfE.js} +9 -9
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-DDLCSC57-BJ_WASPh.js → DashboardSidebarBackgroundAnimation-Dhb4iV2T-BYJc1IM0.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-CxXM_Pse-aMnsSeAe.js → DepositAccTransactionItem-6BPvYynA-D1Ju63qU.js} +2 -2
  62. package/dist/assets/DepositAccTransactionListPage-CYqVm1Rm-FhuWm2tm.js +66 -0
  63. package/dist/assets/{DomesticWireDetailsPage-CswDexXc-CwmUyTco.js → DomesticWireDetailsPage-BOza2O-8-CYD7ppA5.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Ck84lTok-DoSlSguE.js → DownloadOverlay-cbNihDeI-BS6u10ct.js} +1 -1
  65. package/dist/assets/{DrawerPage-Ctqr9Qke-DbWbSJy7.js → DrawerPage-DhT58SBb-DaHEF-EV.js} +3 -3
  66. package/dist/assets/EditPeoplePage-BLNgVf-0-U2va95MO.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-DHIg51AQ-Du0u5yPi.js → EditReimbursementDetailPage-DmApxq-q-CyDk02YT.js} +61 -61
  68. package/dist/assets/{EntityDetailPage-BsCWH1Al-WFaE0WQF.js → EntityDetailPage-CvgcTamk-C6e8nDgM.js} +4 -4
  69. package/dist/assets/{EntitySummarySection-ntuao-VM-fobvDD6S.js → EntitySummarySection-C82U-rtJ-DmZyL6x2.js} +6 -6
  70. package/dist/assets/{ExpenseAutomationOverviewPage-lptxncga-rbFk8U51.js → ExpenseAutomationOverviewPage-Bgibjb2E-BaSAz2Y9.js} +10 -10
  71. package/dist/assets/{ExpenseAutomationPage-S1iaOuA5-DRC_L2v_.js → ExpenseAutomationPage-Be5-Yt8w-Cjj2nOen.js} +36 -36
  72. package/dist/assets/{ExpressPayPage-3UaLqRo7-BW2LLrbf.js → ExpressPayPage--mCSxEVH-BFs72UEO.js} +10 -10
  73. package/dist/assets/{FeaturePreviewPage-CLHp1LHp-eKI7eeEH.js → FeaturePreviewPage-CFVDZyby-CGtGECgw.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BY0dw_SN-iqWfg0Bg.js → FollowStepsSection-CVWuuidV-DUG37jOA.js} +18 -18
  75. package/dist/assets/{GlobalReviewListPage-CltHFSzG-CQET8EIq.js → GlobalReviewListPage-vkNEl7d8-CiHg5TZf.js} +14 -14
  76. package/dist/assets/{InformationCardStack-CVoS_Bni-DRMXWlfL.js → InformationCardStack-LF_aKhhL-CKp0o9nn.js} +5 -5
  77. package/dist/assets/{InsightsCardStack-YcKupOZZ-BYS9QdSX.js → InsightsCardStack-BIcK-jeU-C5tLvdIq.js} +13 -13
  78. package/dist/assets/{InsightsSection-BuCEgcAh-DX4KP6Gi.js → InsightsSection-CIpbIEbv-CFt4IQKX.js} +1 -1
  79. package/dist/assets/{IntegrationsSettingsPage-r_VwvwxS-D2fIzpgb.js → IntegrationsSettingsPage-CjP_3pkI-CnkkLjlB.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-B2x6g-rb-BG86r2Q_.js → InternationalWireSwiftDetailsPage--xhtyYY7-D4zcriQW.js} +7 -7
  81. package/dist/assets/{InternationalWireVerificationPage-B-sxkGbq-BzbYdtzf.js → InternationalWireVerificationPage-BpvZr-WI-jxE-vB-G.js} +7 -7
  82. package/dist/assets/{InviteFormPage-CrFWGpJE-DomTNTMP.js → InviteFormPage-9NFX-MhQ-BgZ7muUE.js} +9 -9
  83. package/dist/assets/{InvitePageListView-BsGwCg5B-DlrJVwFE.js → InvitePageListView-B-cAYAEj-DdX2Vf2f.js} +40 -40
  84. package/dist/assets/{InvitePeoplePage-D0-MjKb2-B1ShEIts.js → InvitePeoplePage-_lENDcHE-Cs4JWgnf.js} +2 -2
  85. package/dist/assets/{InvoiceUploadSection-BUF7Ko_U-1xPxHQJp.js → InvoiceUploadSection-Md8EHqPI-B2FbeYFD.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-D5sn5jt4-BWcpzIYT.js → IssueChargeCardPage-DlBHg90l-CkIYZG8g.js} +14 -14
  87. package/dist/assets/{LabeledAddressValue-Ds1BeyG_-FoXd8L7U.js → LabeledAddressValue-BRVf6Gy8-DR_hCdER.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-D_Ztmm7--tsnB0bq1.js → LabeledAddressValueField-Dm962nbv-CJctT64I.js} +3 -3
  89. package/dist/assets/{LabeledControlledCheckBoxField-DGV1Bz6o-CCbHpDl4.js → LabeledControlledCheckBoxField-AuHfNy1--CYnnof78.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-CTmUlcyk-Dx11AHn5.js → LabeledCreatableSingleSelectField-CZzPQt4P-q5eFoS7_.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-BwHjf12U-ti56UUdB.js → LabeledDocumentField-Cj3wNN-j-DRfRBZq3.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BaAHosJI-CDWZK3Xu.js → LabeledDropDownFormattedTextField-DKi8UjgP-vgVqFIrz.js} +2 -2
  93. package/dist/assets/{LabeledText-CVYTNBOt-LIAQJcbl.js → LabeledText-C-8itgDI-CUp_0u3s.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CnK0wLL0-CdsEapB3.js → LabeledUserSingleSelectWithSubtitlesField-CyEiLq7_-CyR9dVw4.js} +5 -5
  95. package/dist/assets/{LabeledZeniRolesDropDownField-B2eu9WQ_-CXTTkytl.js → LabeledZeniRolesDropDownField-CoQcMW_--ClLOgm0I.js} +8 -8
  96. package/dist/assets/{LinkJETransactionPage-DTU4Piv4-CzTizu8e.js → LinkJETransactionPage-aTmlEn-Z-x31yl_Si.js} +10 -10
  97. package/dist/assets/{LockCardPage-9rnmj-hG-Dgtzvq-m.js → LockCardPage-nJeB0vKv-D0hlcn6G.js} +45 -45
  98. package/dist/assets/{LowBalancePopup-CCl7fzh9-CRJeCFG3.js → LowBalancePopup-aFCQSDc_-C6y1E7C0.js} +1 -1
  99. package/dist/assets/MagicLinkACHDetailsPage-CkEC7bfy-BTcHRx9h.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-DXqRDZvA-Cof2FQM6.js +1 -0
  101. package/dist/assets/MagicLinkInternationalWireDetailsPage-CegOSNsV-D9w4qClx.js +1 -0
  102. package/dist/assets/MagicLinkSuccessPage-RxCflvAg-z_sXnPco.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-ClWFjqQr-B7_1AUkD.js → MagicLinkTitleSection-CYaOQsiQ-Bmr50Dux.js} +3 -3
  104. package/dist/assets/MailingDetailsSection-KUvjhmZC-BH5Oyyjr.js +21 -0
  105. package/dist/assets/{MyBankConnectionsSettingsPage-BC47a22v-9PSEA4Wu.js → MyBankConnectionsSettingsPage-SlfAD_ec-Cxn1_qTK.js} +7 -7
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-BJ_kQQGd-lBfLcXgn.js → MyPendingActivationChargeCardListPage-BShzFR0m-CvOtafM-.js} +1 -1
  107. package/dist/assets/{MyProfileSettingsPage-C70z69ea-CMxdjCdW.js → MyProfileSettingsPage-CzGU1Gx7-Dqk_FQO0.js} +11 -11
  108. package/dist/assets/{NavBarWithPicker-CRQ9DzK7-Cs0J7mYU.js → NavBarWithPicker-NJ3tm2MI-oOlPyLbT.js} +4 -4
  109. package/dist/assets/{NavigationArrow-CWRgkV1y-5nUqXc-t.js → NavigationArrow-B145tYV_-C_6ukSuK.js} +1 -1
  110. package/dist/assets/{NavigationDots-BDKBgUe6-CeOovYs1.js → NavigationDots-DaOFOsFA-BBWJs6hX.js} +1 -1
  111. package/dist/assets/{NewGlobalMerchantPage-B_mViG5F-TkGICDRh.js → NewGlobalMerchantPage-YTsNL6iu-Bz6Acdaw.js} +33 -33
  112. package/dist/assets/{NoDataChart-CJyaj_wD-Ceo15OJ6.js → NoDataChart-C7YUwwui-iNU45UoG.js} +2 -2
  113. package/dist/assets/NoDataTable-DolCx6QR-C89fB2OT.js +8 -0
  114. package/dist/assets/{NotFoundPage-B-CdwYLM-04zajBZ5.js → NotFoundPage-BBnisozE-ZTo3UmTG.js} +7 -7
  115. package/dist/assets/{NotificationSettingsPage-DrMp-0h0-CNJC7C_o.js → NotificationSettingsPage-DPg3FvvD-Bucvci8R.js} +21 -21
  116. package/dist/assets/{NotificationsListConfig-Cl713fZg-qRofkxh7.js → NotificationsListConfig-BkOX8iIv-DgCgfDhw.js} +1 -1
  117. package/dist/assets/{NotificationsPage-Dh4xulau-_5iAw31w.js → NotificationsPage-BUhLO_r9-37VbqnuY.js} +1 -1
  118. package/dist/assets/{OpExByVendorPage-BslfnDh3-53j8zSVl.js → OpExByVendorPage-CHY5zg69-DBOqA9P_.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-D4QU0p4o-Bn1glMo5.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-BYnaGvO3-Bs93z5El.js → PandLWithForecastPage-CeQr3WjJ-CzbnzXa-.js} +3 -3
  121. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CR6xX1bB-BwbAQyjl.js → PaymentAccountSetupBillingAddressSection-B6xSczs6-BKvI8Xkx.js} +1 -1
  122. package/dist/assets/{PeoplePage-BRC7-Yol-C9rira3P.js → PeoplePage-fCF4vkUp-ufAU-1hs.js} +25 -25
  123. package/dist/assets/{Preview-BY6UeCTa.js → Preview-hLK8QRw8.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-BgltUKwq-Dj-tP9zJ.js → ProductsCarousel-rA-O8_7D-CY5GfBBq.js} +6 -6
  125. package/dist/assets/{PromoBaseCards-DMleWayu-BFTkh-l1.js → PromoBaseCards-C37GX90J-DqWlf7fN.js} +3 -3
  126. package/dist/assets/{QBOConnectionDialog-BSKkJDPD-CJILPjk5.js → QBOConnectionDialog-Dwog9AYZ-O8uWq45M.js} +4 -4
  127. package/dist/assets/{QBOSetupSection-YQ4TKOTA-B5TQNN0G.js → QBOSetupSection-uV3w7rHW-MEAdwA6a.js} +4 -4
  128. package/dist/assets/ReimbursementApprovalRuleDetailPage-CPZfTMx--hGh26AYS.js +32 -0
  129. package/dist/assets/{ReimbursementApprovalRulesPage-DQDbyY1K-B5lF3vkz.js → ReimbursementApprovalRulesPage-IGpmh9zA-Bx94q0Ic.js} +4 -4
  130. package/dist/assets/{ReimbursementDetailPage-gAg8C98b-DuQNQ-y5.js → ReimbursementDetailPage-CnzK17M4-DQC0uxdE.js} +3 -3
  131. package/dist/assets/{ReimbursementPromoPage-DtKtr2rP-C8cL3Mv7.js → ReimbursementPromoPage-DSfL54Md-1ZVBlDma.js} +4 -4
  132. package/dist/assets/{ReimbursementSetUpPage-BdUoR2HM-CIGHv-6r.js → ReimbursementSetUpPage-BoTn3JKw-CBdNL9HT.js} +8 -8
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BL6oI4fi-DUFvxQjQ.js → ReimbursementsBulkReviewDrawerPage-DBc7LS-n-Iqxb_53N.js} +1 -1
  134. package/dist/assets/{ReloadCard-B3OtOvVI-DVK4TeBa.js → ReloadCard-B5rmmfva-TUZ-Tkd2.js} +3 -3
  135. package/dist/assets/{ReportTableViewSelector-Cmv2xs7h-CJ6mu-Rp.js → ReportTableViewSelector-0OEScWmm-Hga5bKqy.js} +29 -29
  136. package/dist/assets/{ReportsPage-SWC6uIs--DupC08g-.js → ReportsPage-BTkakKPX-BSzPNOYj.js} +6 -6
  137. package/dist/assets/{RevenueChart-CZlAswBG-DPlV94YS.js → RevenueChart-Ba8ZLje8-Drb014Fl.js} +15 -15
  138. package/dist/assets/{ReviewDetailsPage-BW3pZ3ws-BH9zDrcw.js → ReviewDetailsPage-BQDrm2yR-Bz5FazaS.js} +17 -17
  139. package/dist/assets/{ReviewOverlay-BhFwGG6t-C0m5jD2s.js → ReviewOverlay-8tBBKn9R-BZESXqSp.js} +5 -5
  140. package/dist/assets/RoleWithToolTip-YZusZfiJ-BELittL3.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CdmehDsJ-Dd48HqBm.js → ScheduleDetailsFixedAssetsPage-BN9hFnGC-I8BvJlgl.js} +13 -13
  142. package/dist/assets/{ScheduleDetailsPage-DA1eGkzI-a0yDswoo.js → ScheduleDetailsPage-DAr4tXe_-BZZ4Y69I.js} +3 -3
  143. package/dist/assets/{ScheduleSequenceTable-BvGIwZmi-Br-m9rdL.js → ScheduleSequenceTable-DUfu-c6e-DBFpgT6F.js} +12 -12
  144. package/dist/assets/{ScreenRoutes-D3PxnqOE.js → ScreenRoutes-RdWdKKFl.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-DM4CvIFN-CPQ8K94t.js → SetUpAccountSection-DqW4vmsx-CO06aLnp.js} +6 -6
  146. package/dist/assets/{SignIn-DU3HuwJr-CXMwOpi4.js → SignIn-CCqNj3tG-DRDC5Yhl.js} +17 -17
  147. package/dist/assets/{SignInScreen-PoBHP4-4.js → SignInScreen-BI4txts-.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-VR4dPKBw-DHyDM03E.js → SpendManagementListViewPage-s4dPd5hE-IanF8B1T.js} +11 -11
  149. package/dist/assets/{SpendManagementPerTabPage-CdYRrtcC-DFgavPhh.js → SpendManagementPerTabPage-NWc7uqw6-_rcGYzjd.js} +45 -45
  150. package/dist/assets/{SpendManagementSection-C2Uw6UXF-BRw2L3H1.js → SpendManagementSection-eYrLZK1E-KjAWYeIa.js} +17 -17
  151. package/dist/assets/StatementItem-CKK9vnC7-CB-e2CLd.js +31 -0
  152. package/dist/assets/StatementsPage-C0wI_tRw-BDtidNq4.js +58 -0
  153. package/dist/assets/{StatusSwitcher-RY35Qzlp-DPptYPVp.js → StatusSwitcher-DFluM61E-D9icc7U1.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-CIhSt1_V-BGyVDCoP.js → SubTabSwitcher-Cin8x7wg-Dcdm2qpz.js} +1 -1
  155. package/dist/assets/{SummaryCard-iIQISRZL-Cx0NyzVM.js → SummaryCard-Bcw6fQTD-Do950Kyf.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-CCC1QlZS-BHBkMyad.js → TaskManagementPage-B9qW2lvP-CVsVNeeW.js} +9 -9
  157. package/dist/assets/{TimeRangeSwitcher-BIA3BW1g-Bty5Ch9x.js → TimeRangeSwitcher-u57rzf78-Bgi2Q6bp.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcher-BhV0yrj0-CbCl4A9y.js → TimeframeSwitcher-ClE4GOKf-CCgDF2y1.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-CIAZXHb2-orP1uTMH.js → TimeframeSwitcherWithToggle-COre57iX-BQBghhwC.js} +2 -2
  160. package/dist/assets/{TopExCard-CPsxq74q-662cwF8z.js → TopExCard-DF3x7jLh-CRuE7H2y.js} +6 -6
  161. package/dist/assets/{TopExDetailPage-BGoq66Fs-0PJ8BVQb.js → TopExDetailPage-DmFsRNbY-CAPDLdK7.js} +5 -5
  162. package/dist/assets/{TransactionActivityLogPage-BW-qVpWu-D-8WEz2X.js → TransactionActivityLogPage-BJWKx4q0-BUpcnLzX.js} +3 -3
  163. package/dist/assets/{TransactionDetailPage-D0tW8GIH-C00b9e62.js → TransactionDetailPage-mtNlJQ2B-IRA0HZOa.js} +26 -26
  164. package/dist/assets/{TransactionList-T8gAOJc0-Dw9G55NV.js → TransactionList-CLb6vsAw-BNfVqp8k.js} +12 -12
  165. package/dist/assets/{TransactionListBig-CMjxUKt2-BhSVq9fm.js → TransactionListBig-BzBXZp6s-UPK6nK0b.js} +7 -7
  166. package/dist/assets/TransactionListPage-DoQrIKK0-cdAGgkOJ.js +35 -0
  167. package/dist/assets/{TransactionVendorDetailPage-Ca7bgryb-CmVBYko3.js → TransactionVendorDetailPage-D-wSEk3k-Bp7ZO9K6.js} +3 -3
  168. package/dist/assets/{TransferDrawerPage-DG6q94Ch-Cqord4XL.js → TransferDrawerPage-j8FDHpig-DvRwMkL8.js} +29 -29
  169. package/dist/assets/{TreasuryOverviewPage-YNlUL3px-B_35sSeA.js → TreasuryOverviewPage-2U807bhy-BY8VUFc9.js} +24 -24
  170. package/dist/assets/{TreasuryPromoPage-CBSYXvme-DpMWnl6i.js → TreasuryPromoPage-BYXuV9oH-vUIAQ6f4.js} +13 -13
  171. package/dist/assets/TreasuryStatementsPage-CeaExx3z-DsMw65vI.js +58 -0
  172. package/dist/assets/{TreasuryTaxLetterPage-Bln01PPe-DpJfleJK.js → TreasuryTaxLetterPage-BrBEeHG1-u74MPbjQ.js} +2 -2
  173. package/dist/assets/{TrendChart-DjKmnpsm-CS6VXx1C.js → TrendChart-D0GWCIs5-BdQ26pcI.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-D2CSrQJG-DdbpQrSL.js → TrendWithTransactions-DcCilwfx-_37SmAif.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BhgJFJvY-Cs1YOJIy.js → UncategorizedAccountsMappingPage-D5oo8UHa-k_11pvpn.js} +13 -13
  176. package/dist/assets/{UnitIntegrationPage-CtNIGtOS-DZq9w7mC.js → UnitIntegrationPage-BQp7NQLB-CdKp5-34.js} +6 -6
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-D44jXTDW-DwZWfezE.js → UploadAdditionalDocumentOverlay-DvAwuTYB-DJVdyOgq.js} +1 -1
  178. package/dist/assets/Vendor2FAPopup-BVuTJ4jh-Dmi8LqgF.js +1 -0
  179. package/dist/assets/VendorACHDetailsPage-DkXoubZC-RuWRXgBi.js +1 -0
  180. package/dist/assets/{VendorDetailPage-DRr5ci0V-Du2p3ojh.js → VendorDetailPage-BNr0Z5jN-B5vvqHLt.js} +23 -23
  181. package/dist/assets/VendorDomesticWireDetailsPage-CaaOskIa-DGRBzFDy.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-C6mptSEx-B_hdSwqB.js → VendorFiling1099EditablePage-D2_NM9OH-Cg7w3eGu.js} +38 -38
  183. package/dist/assets/{VendorFirstReviewPage-CLBTSreq-DCVG1u2-.js → VendorFirstReviewPage-DxhhgmEm-DydY5H1-.js} +17 -17
  184. package/dist/assets/{VendorInternationalWireDetailsPage-oMdWj41X-CmZF5xAN.js → VendorInternationalWireDetailsPage-CUIOT8vU-afAyjr3K.js} +9 -9
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dq9K171L-CWe5L2D4.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-Cr_m8Jyi-CiH59Azu.js → VendorsAccountsSection-eef70mQn-_RCZqtQz.js} +1 -1
  187. package/dist/assets/{VerifyDevice-DrXK_7gG-CEX4QcR9.js → VerifyDevice-CMvsjley-rC4gKQeJ.js} +12 -12
  188. package/dist/assets/{VideoPlayer-BZe4PqnR-CX1XPKSp.js → VideoPlayer-DKSZUXeK-H0wCm76T.js} +2 -2
  189. package/dist/assets/{VideoPopup-BaEQAfak-DFKT4R55.js → VideoPopup-BG0G1trN-J1tFoUPS.js} +3 -3
  190. package/dist/assets/{WarningsDrawerPage-COJ1hjAD-BEWCjyIu.js → WarningsDrawerPage-g_KTQdH7-Br6CzJQ0.js} +8 -8
  191. package/dist/assets/{ZeniAccountDetailPage-Chx3JWsc-DUW0nJwl.js → ZeniAccountDetailPage-LkheAcW_-BBvGkAZe.js} +18 -18
  192. package/dist/assets/{ZeniAccountListViewPage-6RhsoQzy-B1q4otvI.js → ZeniAccountListViewPage-DVQHT8ma-B9oJhIl0.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-10K_Qgxx-DnALebZP.js → ZeniAccountNavBarPieces-_Xr6q9sA-BmDV-yHS.js} +4 -4
  194. package/dist/assets/{ZeniAccountPromoPage-ClXA4h8f-BJADOlI6.js → ZeniAccountPromoPage-C3LR6klI-gvX4BiZe.js} +8 -8
  195. package/dist/assets/{ZeniAccountSetupPage-7YlBF0nq-BMd9Jfil.js → ZeniAccountSetupPage-BtWnNkH7-Bw5ifbpG.js} +2 -2
  196. package/dist/assets/{ZeniCopyright-k2F7p5Nn-CWJt4f_H.js → ZeniCopyright-D36dbFYs-DbL5X4NH.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-CJY_ei3T-BQBKQlY-.js → ZeniTransferAmountSlider-BYbDaVKJ-CzP9xAeJ.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-CNvnwL2z.js → add-to-wallet-DgdBD8_G-CjuRM598.js} +1 -1
  199. package/dist/assets/{analytics-rms9goNI.js → analytics-DH0nG_g5.js} +1 -1
  200. package/dist/assets/analyticsHelper-B_RV_zIh.js +1 -0
  201. package/dist/assets/{analyticsHelper-e2zBYls0-DsW-gRIg.js → analyticsHelper-C4PZ1Adh-DNHzQdSq.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-DpZb0ICZ.js → arrow-south-east-round-PEovUgvH-ezr-NUEt.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-CBISKKCi.js → auto-transfer-rule-mbafm5D3-DCTaBPDp.js} +1 -1
  204. package/dist/assets/{chartTypes-D0t0a86R-VgxTrMCK.js → chartTypes-Bf1-edD8-CV1yysKw.js} +1 -1
  205. package/dist/assets/{commonDimensions-BwCds81U-kEodPKRG.js → commonDimensions-B60Qkfnz-DxGoTy6S.js} +1 -1
  206. package/dist/assets/{constants-C3kp1fkP.js → constants-HPf8XA_c.js} +1 -1
  207. package/dist/assets/{core-B_30foAD.js → core-yiE_iOc0.js} +1 -1
  208. package/dist/assets/{dash.all.min-3-z_MPR8.js → dash.all.min-ZaNNnJRa.js} +1 -1
  209. package/dist/assets/{detailCommon-CFEglqRw-DcI3Dm8c.js → detailCommon-B4aI_98A-CEMaqjeK.js} +6 -6
  210. package/dist/assets/{downloadPdf-BfjQscZh-CeCugFTI.js → downloadPdf-DVqVkV_p-CELECDCw.js} +1 -1
  211. package/dist/assets/{empty-DyZfcN1I.js → empty-BOna3nXl.js} +1 -1
  212. package/dist/assets/{empty-BB-5X2tp.js → empty-Be-7ZZNG.js} +1 -1
  213. package/dist/assets/{epic-CXeU0a14.js → epic-CGLWHopS.js} +1 -1
  214. package/dist/assets/{gift-box-Cmt9OgIZ-tVleHIYS.js → gift-box-Cmt9OgIZ-yO9QG4ws.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CYR0rF_u.js → graphic-no-data-l-DU4J8fDt-08AJBbmd.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DI-E_991.js → graphic-no-data-net-burn-l-CzmycA0m-BCEcNSIc.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-DRFlkqA2.js → handshake-BPg58FML-CS6zI2jd.js} +1 -1
  218. package/dist/assets/{index-BCh0qUkM.js → index-B05X8Jld.js} +1 -1
  219. package/dist/assets/{index-BoyomC_-.js → index-BQKUEYMa.js} +1 -1
  220. package/dist/assets/{index-DVfmIUIY.js → index-DADoWRMM.js} +1 -1
  221. package/dist/assets/{index-BhfvNbOl.js → index-DEPZWJ5u.js} +1 -1
  222. package/dist/assets/{index-4xstgUx1.js → index-JQjyoaIW.js} +1 -1
  223. package/dist/assets/{index-DgHTMbc3.js → index-V6G13z1s.js} +1 -1
  224. package/dist/assets/{index-BR9aIv1A.js → index-o0j-GZyM.js} +1919 -1951
  225. package/dist/assets/{lexical-CcL2Fd1i.js → lexical-DlAOaxF0.js} +1 -1
  226. package/dist/assets/{liveblocks-B8f0lmpe.js → liveblocks-BZyZbty1.js} +1 -1
  227. package/dist/assets/{lottie-CbICbNKh.js → lottie-HBX4-MpS.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-DuPcSiT5-DY73v-Wq.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D84rlDgo-CA3ifSFr.js → mapSectionWithAcOnlyToTreeNode-BZsGUDKa-4VCnAicV.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode-br_rslOm-BB79AXDK.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-9dsEoKql-CTAmJm8r.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-BpOPNyk--FPICGthL.js +1 -0
  233. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BMNyeJt9-CIYXC4NE.js +1 -0
  234. package/dist/assets/{mui-C7Q1opAD.js → mui-CAW43Z2L.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-DfEuZBUZ.js → page-detail-CWX5S47F-Ga1rCJlu.js} +1 -1
  236. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-Udxivyx_.js → panelSelectedMixin-CzfD5-Zs-C9yV2YE9.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-VWYNvRzB.js → radio-default-CiSgisfh-W2nwrqQ5.js} +1 -1
  238. package/dist/assets/{react-C5VDu1Xe.js → react-BURuhNYe.js} +1 -1
  239. package/dist/assets/{react-D-QPbFx5.js → react-BeHv7oF0.js} +1 -1
  240. package/dist/assets/{react-OE6vDDlS.js → react-C5kAuTha.js} +1 -1
  241. package/dist/assets/{react-CEhgfqKO.js → react-CkHAqWHd.js} +2 -2
  242. package/dist/assets/{react-B1skuV78.js → react-Cy_jHEin.js} +1 -1
  243. package/dist/assets/{react-DODYMrDc.js → react-D70Dpky3.js} +1 -1
  244. package/dist/assets/{react-zf2AM5gr.js → react-DFbroRVg.js} +1 -1
  245. package/dist/assets/{react-gaSEjZmU.js → react-QfjvWill.js} +1 -1
  246. package/dist/assets/{recharts-v_b66Qfi.js → recharts-Duslqfio.js} +1 -1
  247. package/dist/assets/{sentry-BwoJfpTa.js → sentry-DmQUfSE7.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-DlZ9ml05.js → shield-DOlUxcFf-BSj8Drkk.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-DOquK-Sn-1uwfHDc8.js +1 -0
  250. package/dist/assets/{toChartData-BVSCRQYT-CU2W4nbR.js → toChartData-CcG8i49E-invCvTu2.js} +1 -1
  251. package/dist/assets/{uploadAttachment-D3ybtHtR-D84dG_-j.js → uploadAttachment-B-y1--ww-BcIqRgDj.js} +19 -19
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-C6WyXewN.js → uploadReceipts-Dge0cNF1-Df2fHyc-.js} +1 -1
  253. package/dist/assets/{url-o9j2r9Zq.js → url-R21EGndt.js} +1 -1
  254. package/dist/assets/{url-BcaeVwpg.js → url-hGfZCfig.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-CM12epgA.js → useLongPress-GCK2COYQ-DR25cb_3.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-Cyu4xp0r.js → usp-line-BBd1wKwW-D5-lu6m5.js} +1 -1
  257. package/dist/assets/{utils-C75CTJHa.js → utils-C-XuhdQM.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-Deo9yJpd.js → zeni-epic-state-C4Tt6Qhq.js} +3 -3
  259. package/dist/index.html +1 -1
  260. package/package.json +2 -2
  261. package/dist/assets/AccountInfoPage-BGcQ2kEJ-awOqo-nC.js +0 -18
  262. package/dist/assets/AccountLockedInfoModal-Q_WY8V5e-CDYJtJV8.js +0 -59
  263. package/dist/assets/AddAddressForCardDrawer-D12dN-9m-CqdZIDlk.js +0 -6
  264. package/dist/assets/BoxItem-BGrgQ_sW-cYQcyKu_.js +0 -53
  265. package/dist/assets/ConfettiBurst-C1IgWBaA-CL1o9dY6.js +0 -1
  266. package/dist/assets/CustomerOnboardingContainerPage-YZ4WpsDD-CT9Ps13n.js +0 -1
  267. package/dist/assets/DepositAccTransactionListPage-flz5jtjj-Tj1qKkuc.js +0 -66
  268. package/dist/assets/EditPeoplePage-BiGeDyr0-BP5iQ9eS.js +0 -55
  269. package/dist/assets/MagicLinkACHDetailsPage-B5oowluv-pi_Q89s3.js +0 -1
  270. package/dist/assets/MagicLinkDomesticWireDetailsPage-BohAWQ_F-BBgkEcbM.js +0 -1
  271. package/dist/assets/MagicLinkInternationalWireDetailsPage-CRx-EIj--rUZQXW3V.js +0 -1
  272. package/dist/assets/MagicLinkSuccessPage-q5XLFFKd-IcgduK3D.js +0 -31
  273. package/dist/assets/MailingDetailsSection-Dle_aLif-C9MEuFNg.js +0 -21
  274. package/dist/assets/NoDataTable-BroHHbsa-C2KBPOR3.js +0 -8
  275. package/dist/assets/OverlayContainerPage-D4QU0p4o-CW30kf30.js +0 -11
  276. package/dist/assets/ReimbursementApprovalRuleDetailPage-BFxCrrVt-CFZDA3-E.js +0 -32
  277. package/dist/assets/RoleWithToolTip-D74SWfZd-B2mOCrt1.js +0 -22
  278. package/dist/assets/StatementItem-CS0N92J0-BsnAviIB.js +0 -31
  279. package/dist/assets/StatementsPage-DL8W4WLu-BH9E8ATR.js +0 -58
  280. package/dist/assets/TransactionListPage-Bx6qszUl-B-5CDbC_.js +0 -35
  281. package/dist/assets/TreasuryStatementsPage-D0YaCwv3-PNzj_mHV.js +0 -58
  282. package/dist/assets/Vendor2FAPopup-BogFaSYy-BlnTHqfY.js +0 -1
  283. package/dist/assets/VendorACHDetailsPage-Di9QJ0hA-BNrZk8u_.js +0 -1
  284. package/dist/assets/VendorDomesticWireDetailsPage-DCdG-eGI-IQvY9pai.js +0 -1
  285. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CM2bFEbE-B7IN2oYH.js +0 -1
  286. package/dist/assets/analyticsHelper-DTNFmelW.js +0 -1
  287. package/dist/assets/mapLoadingInProgressToTreeNode-D-j3xrlE-C3TmZv3p.js +0 -1
  288. package/dist/assets/mapSpacerToTreeNode--_h7d27O-sxGNKTOK.js +0 -1
  289. package/dist/assets/mapTimeframeBalancesToTreeNode-BqoG_HF--CRhmAO8j.js +0 -1
  290. package/dist/assets/mapTimeframeBalancesToTreeNode-DPb6o33r-DFBVfNq3.js +0 -1
  291. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-CTBKyUYq.js +0 -1
  292. package/dist/assets/toCOABalancesWithID-mNZ5ym9S-BQfS02g5.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as Oe,e as We,cS as wl,F as ae,y as O,aQ as jl,V as l,bT as Me,fH as Re,ap as Le,g1 as _e,o as a,gb as $l,cR as qe,cI as ee,cK as ce,cO as He,e$ as vl,eZ as Sl,cM as Ue,cL as Se,gc as Ne,gd as Il,fz as Cl,cP as Ie,fy as Ve,cQ as Ol,p as Ee,fP as Ge,R as ge,bK as Qe,fG as Ye,al as Pe,g0 as Ke,b as ye,ao as Ll,bH as _l,u as N,dm as El,av as Pl,ge as Dl,am as Fl,gf as Nl,bI as xe,b5 as Vl,a as Ze,ai as kl,d0 as Tl,at as zl,bG as Bl}from"./index-BR9aIv1A.js";import{a as c}from"./sentry-BwoJfpTa.js";import{n as t}from"./mui-C7Q1opAD.js";import{bh as Je,bL as Al}from"./zeni-epic-state-Deo9yJpd.js";import{C as Ce}from"./LabeledAddressValueField-D_Ztmm7--tsnB0bq1.js";import{I as Wl}from"./LabeledCreatableSingleSelectField-CTmUlcyk-Dx11AHn5.js";import{Y as ke}from"./LabeledDocumentField-BwHjf12U-ti56UUdB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="7b409ae7-c561-42d8-a56e-b462a07a4ee7",e._sentryDebugIdIdentifier="sentry-dbid-7b409ae7-c561-42d8-a56e-b462a07a4ee7")}catch{}})();const Ml=e=>c.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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"}),c.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"}),c.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"}),c.createElement("g",{clipPath:"url(#clip0_1350_23850)"},c.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),c.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),c.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),c.createElement("g",{clipPath:"url(#clip1_1350_23850)"},c.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),c.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),c.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),c.createElement("g",{clipPath:"url(#clip2_1350_23850)"},c.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),c.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),c.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),c.createElement("g",{clipPath:"url(#clip3_1350_23850)"},c.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),c.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),c.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_1350_23850"},c.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),c.createElement("clipPath",{id:"clip1_1350_23850"},c.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),c.createElement("clipPath",{id:"clip2_1350_23850"},c.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),c.createElement("clipPath",{id:"clip3_1350_23850"},c.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:Rl}=ae.getLocalizedStrings(),{businessVerification:Te}=Rl,ue={iconSize:new O(N[6],N[10]),gap:new O(N[2],N[3])},Xe={title:new ge("smallSemiBold","standardSemiBold"),description:new ge("smallRegular","standardRegular")},el=()=>{const[e]=Pl("Secure"),d=Oe();return l.jsxs(ql,{windowSize:d,children:[e!=null?l.jsx(Hl,{windowSize:d,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):l.jsx(Ul,{windowSize:d}),l.jsxs(Gl,{children:[l.jsx(Ql,{windowSize:d,children:Te.securityMessageTitle}),l.jsx(Yl,{windowSize:d,children:Te.securityMessageDescription})]})]})},ql=t.div`
1
+ import{J as Oe,g as Re,cS as wl,F as ae,y as O,aQ as jl,V as l,bT as We,fH as Me,ap as Le,g1 as _e,o as a,gb as $l,cR as qe,cI as ee,cK as ce,cO as He,e$ as vl,eZ as Sl,cM as Ue,cL as Se,gc as Ne,gd as Il,fz as Cl,cP as Ie,fy as Ve,cQ as Ol,p as Ee,fP as Ge,R as ge,bK as Qe,fG as Ye,al as Pe,g0 as Ke,b as ye,ao as Ll,bH as _l,u as N,dm as El,av as Pl,ge as Dl,am as Fl,gf as Nl,bI as xe,b5 as Vl,c as Ze,ai as kl,d0 as Tl,at as zl,bG as Bl}from"./index-o0j-GZyM.js";import{a as c}from"./sentry-DmQUfSE7.js";import{n as t}from"./mui-CAW43Z2L.js";import{bh as Je,bL as Al}from"./zeni-epic-state-C4Tt6Qhq.js";import{C as Ce}from"./LabeledAddressValueField-Dm962nbv-CJctT64I.js";import{I as Rl}from"./LabeledCreatableSingleSelectField-CZzPQt4P-q5eFoS7_.js";import{Y as ke}from"./LabeledDocumentField-Cj3wNN-j-DRfRBZq3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="9b45b665-6b6d-46bf-ad61-01b14dc2330d",e._sentryDebugIdIdentifier="sentry-dbid-9b45b665-6b6d-46bf-ad61-01b14dc2330d")}catch{}})();const Wl=e=>c.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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"}),c.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"}),c.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"}),c.createElement("g",{clipPath:"url(#clip0_1350_23850)"},c.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),c.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),c.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),c.createElement("g",{clipPath:"url(#clip1_1350_23850)"},c.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),c.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),c.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),c.createElement("g",{clipPath:"url(#clip2_1350_23850)"},c.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),c.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),c.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),c.createElement("g",{clipPath:"url(#clip3_1350_23850)"},c.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),c.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),c.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_1350_23850"},c.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),c.createElement("clipPath",{id:"clip1_1350_23850"},c.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),c.createElement("clipPath",{id:"clip2_1350_23850"},c.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),c.createElement("clipPath",{id:"clip3_1350_23850"},c.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:Ml}=ae.getLocalizedStrings(),{businessVerification:Te}=Ml,ue={iconSize:new O(N[6],N[10]),gap:new O(N[2],N[3])},Xe={title:new ge("smallSemiBold","standardSemiBold"),description:new ge("smallRegular","standardRegular")},el=()=>{const[e]=Pl("Secure"),d=Oe();return l.jsxs(ql,{windowSize:d,children:[e!=null?l.jsx(Hl,{windowSize:d,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):l.jsx(Ul,{windowSize:d}),l.jsxs(Gl,{children:[l.jsx(Ql,{windowSize:d,children:Te.securityMessageTitle}),l.jsx(Yl,{windowSize:d,children:Te.securityMessageDescription})]})]})},ql=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)};
@@ -8,7 +8,7 @@ import{J as Oe,e as We,cS as wl,F as ae,y as O,aQ as jl,V as l,bT as Me,fH as Re
8
8
  width: ${e=>ue.iconSize.valuePx(e.windowSize)};
9
9
  height: ${e=>ue.iconSize.valuePx(e.windowSize)};
10
10
  display: block;
11
- `,Ul=t(Ml)`
11
+ `,Ul=t(Wl)`
12
12
  width: ${e=>ue.iconSize.valuePx(e.windowSize)};
13
13
  height: ${e=>ue.iconSize.valuePx(e.windowSize)};
14
14
  color: ${e=>e.theme.colors.success};
@@ -36,7 +36,7 @@ import{J as Oe,e as We,cS as wl,F as ae,y as O,aQ as jl,V as l,bT as Me,fH as Re
36
36
  align-items: flex-end;
37
37
  margin-left: ${a.sp2};
38
38
  margin-top: ${a.sp1};
39
- `,le={labelWidth:new O(115,145,155),mediumLabelWidth:new O(140,160,170),largeLabelWidth:new O(150,210,244),largeLabelDocumentWidth:new O(150,210,252),paddingBottom:new O(N[3],N[2]),containerRowGap:new O(12,N[3])},Jl={title:new ge("standardMedium","largeMedium")},Xl=ae.getLocalizedStrings(),{dateFormat:{visual:ea},commonSetUp:la,companyPassport:aa,common:{documents:ze,optional:ta}}=Xl,i=la.businessVerification,ia=i.sourceOfFundOptions,oa=c.forwardRef(({fileProps:e,productType:d,allIndustries:m,companyDetails:f,connectedAccountProvider:D,businessVerificationProps:x,isDisabled:n,style:G,sectionId:y,showInfoTooltip:te=!0,isCompleted:ie=!1,showCompletedIcon:oe=!1,showTreasuryFields:Q=!1,sectionHeader:Y,optionalFields:s=[],onCompanyAddressClick:K,onRegisteredAddressClick:V},re)=>{const h=Oe(),_=le.labelWidth.value(h),E=le.mediumLabelWidth.value(h),b=le.largeLabelWidth.value(h),q=le.largeLabelDocumentWidth.value(h),w=i.productType[d],Z=f?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),J=f?.companyFiles.find(u=>u.documentType==="tax_ein"),p=f?.companyDescription,$=f?.companyLegalName,B=f?.website,se=f?.typeOfIncorporation,H=f?.incDate,X=f?.companyIndustry,L=f?.phone,me=f?.taxIdOrEIN,A=f?.primaryContactLocalData,ne=f?.deleteFileStatusById??{},U=f?.updateFileStatusById??{},be=f?.addressStatus?.addressToCreate,we=f?.registeredAddressStatus?.addressToCreate,[k,W]=c.useState(!1),[g,M]=c.useState(!1),R=u=>m.find(je=>je.code===u)?.name??u,P=u=>ia[u]??u;return l.jsxs(ra,{style:G,ref:re,windowSize:h,children:[l.jsx(sa,{children:l.jsxs(ha,{children:[l.jsxs(da,{children:[oe===!0?l.jsx(ca,{children:ie?l.jsx(pa,{}):l.jsx(ua,{})}):null,l.jsx(na,{windowSize:h,children:Y??i.confirmCompanyDetails})]}),te?l.jsx(ma,{children:l.jsx(Me,{variant:"small-description",display:"flex",maxWidth:"280px",data:i.confirmCompanyDetailsTooltip,placement:h==="small"||d==="onboarding"?"bottom":"right",children:l.jsx(fa,{})})}):null,d==="onboarding"&&Y!=null?l.jsx(ll,{text:ta}):null,x?.companyVerificationStatus!=null?l.jsx(ga,{tagTitle:x.companyVerificationStatus.name,textColor:Re(x.companyVerificationStatus.code),showLoader:x?.isRefreshingViewInBackground}):null]})}),l.jsxs(ya,{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(Ce,{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(Ce,{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(Se,{label:{label:i.companyIndustryLabel,width:_},singleSelectField:{singleSelect:{name:v(y,"companyIndustry"),placeholder:i.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:R,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(Wl,{label:{label:i.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:v(y,"typeOfIncorporation"),placeholder:i.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:se,allOptions:aa.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(He,{isDisabled:n,label:{label:i.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(h)},dateField:{name:v(y,"incDate"),placeholder:i.companyIncDatePlaceholder,defaultValue:H,dateFormat:ea.defaultInput,maxDate:Je(),minDate:Al("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(Ue,{isDisabled:n,label:{label:i.companyPhoneLabel,width:_},text:{name:v(y,"companyPhone"),placeholder:ce(i.companyPhoneLabel),defaultValue:L,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:i.companyPhoneError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(qe,{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:Ol},autoComplete:"new-password"},additionalInfoLabel:i.companyTaxIdError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(ke,{name:v(y,"certificateOfIncorporation"),isDisabled:n,sizeLimit:Ie,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=>W(u)}),k||!(n!=null||Z!=null)?l.jsx(Be,{windowSize:h,isError:k,children:ze.formatDocumentText10MB}):null,l.jsx(S,{}),l.jsx(ke,{name:v(y,"ein"),isDisabled:n,sizeLimit:Ie,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:g,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:u=>M(u)}),g||!(n!=null||J!=null)?l.jsx(Be,{windowSize:h,isError:g,children:ze.formatDocumentText10MB}):null,l.jsx(S,{}),Q===!0?l.jsxs(l.Fragment,{children:[l.jsx(Se,{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:f?.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]})]})});oa.displayName="Company Details Section";const v=(e,d)=>`${e}.${d}`,ra=t.div`
39
+ `,le={labelWidth:new O(115,145,155),mediumLabelWidth:new O(140,160,170),largeLabelWidth:new O(150,210,244),largeLabelDocumentWidth:new O(150,210,252),paddingBottom:new O(N[3],N[2]),containerRowGap:new O(12,N[3])},Jl={title:new ge("standardMedium","largeMedium")},Xl=ae.getLocalizedStrings(),{dateFormat:{visual:ea},commonSetUp:la,companyPassport:aa,common:{documents:ze,optional:ta}}=Xl,i=la.businessVerification,ia=i.sourceOfFundOptions,oa=c.forwardRef(({fileProps:e,productType:d,allIndustries:m,companyDetails:f,connectedAccountProvider:D,businessVerificationProps:x,isDisabled:n,style:G,sectionId:y,showInfoTooltip:te=!0,isCompleted:ie=!1,showCompletedIcon:oe=!1,showTreasuryFields:Q=!1,sectionHeader:Y,optionalFields:s=[],onCompanyAddressClick:K,onRegisteredAddressClick:V},re)=>{const h=Oe(),_=le.labelWidth.value(h),E=le.mediumLabelWidth.value(h),b=le.largeLabelWidth.value(h),q=le.largeLabelDocumentWidth.value(h),w=i.productType[d],Z=f?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),J=f?.companyFiles.find(u=>u.documentType==="tax_ein"),p=f?.companyDescription,$=f?.companyLegalName,B=f?.website,se=f?.typeOfIncorporation,H=f?.incDate,X=f?.companyIndustry,L=f?.phone,me=f?.taxIdOrEIN,A=f?.primaryContactLocalData,ne=f?.deleteFileStatusById??{},U=f?.updateFileStatusById??{},be=f?.addressStatus?.addressToCreate,we=f?.registeredAddressStatus?.addressToCreate,[k,R]=c.useState(!1),[g,W]=c.useState(!1),M=u=>m.find(je=>je.code===u)?.name??u,P=u=>ia[u]??u;return l.jsxs(ra,{style:G,ref:re,windowSize:h,children:[l.jsx(sa,{children:l.jsxs(ha,{children:[l.jsxs(da,{children:[oe===!0?l.jsx(ca,{children:ie?l.jsx(pa,{}):l.jsx(ua,{})}):null,l.jsx(na,{windowSize:h,children:Y??i.confirmCompanyDetails})]}),te?l.jsx(ma,{children:l.jsx(We,{variant:"small-description",display:"flex",maxWidth:"280px",data:i.confirmCompanyDetailsTooltip,placement:h==="small"||d==="onboarding"?"bottom":"right",children:l.jsx(fa,{})})}):null,d==="onboarding"&&Y!=null?l.jsx(ll,{text:ta}):null,x?.companyVerificationStatus!=null?l.jsx(ga,{tagTitle:x.companyVerificationStatus.name,textColor:Me(x.companyVerificationStatus.code),showLoader:x?.isRefreshingViewInBackground}):null]})}),l.jsxs(ya,{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(Ce,{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(Ce,{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(Se,{label:{label:i.companyIndustryLabel,width:_},singleSelectField:{singleSelect:{name:v(y,"companyIndustry"),placeholder:i.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:M,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(Rl,{label:{label:i.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:v(y,"typeOfIncorporation"),placeholder:i.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:se,allOptions:aa.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(He,{isDisabled:n,label:{label:i.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(h)},dateField:{name:v(y,"incDate"),placeholder:i.companyIncDatePlaceholder,defaultValue:H,dateFormat:ea.defaultInput,maxDate:Je(),minDate:Al("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(Ue,{isDisabled:n,label:{label:i.companyPhoneLabel,width:_},text:{name:v(y,"companyPhone"),placeholder:ce(i.companyPhoneLabel),defaultValue:L,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:i.companyPhoneError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(qe,{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:Ol},autoComplete:"new-password"},additionalInfoLabel:i.companyTaxIdError.replace("_product_type_",w)}),l.jsx(S,{}),l.jsx(ke,{name:v(y,"certificateOfIncorporation"),isDisabled:n,sizeLimit:Ie,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=>R(u)}),k||!(n!=null||Z!=null)?l.jsx(Be,{windowSize:h,isError:k,children:ze.formatDocumentText10MB}):null,l.jsx(S,{}),l.jsx(ke,{name:v(y,"ein"),isDisabled:n,sizeLimit:Ie,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:g,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:u=>W(u)}),g||!(n!=null||J!=null)?l.jsx(Be,{windowSize:h,isError:g,children:ze.formatDocumentText10MB}):null,l.jsx(S,{}),Q===!0?l.jsxs(l.Fragment,{children:[l.jsx(Se,{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:f?.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]})]})});oa.displayName="Company Details Section";const v=(e,d)=>`${e}.${d}`,ra=t.div`
40
40
  display: flex;
41
41
  flex-direction: column;
42
42
  row-gap: ${e=>le.containerRowGap.valuePx(e.windowSize)};
@@ -102,7 +102,7 @@ import{J as Oe,e as We,cS as wl,F as ae,y as O,aQ as jl,V as l,bT as Me,fH as Re
102
102
  display: flex;
103
103
  align-items: center;
104
104
  justify-content: flex-end;
105
- `,ba=(e,d)=>e.map(m=>({...m,value:m.userId,label:m.firstName!=""||m.lastName!=""?`${m.firstName} ${m.lastName}`:m.email})),wa=(e,d)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ja({allUsers:e,onSelectedUserChanged:d,selectedUser:m,disable:f=!1,pickerStyles:{optionBackgroundColor:D,selectedOptionBackgroundColor:x,optionTextStyle:n,titleTextStyle:G,backgroundColor:y,titleTextAlignment:te,selectedOptionColor:ie,customStyleConfig:oe}={},customization:{placeholderLabel:Q}={},showAddUser:Y=!0}){const s=We(),[K,V]=c.useState(!1),re=ba(e).sort((p,$)=>p.label.localeCompare($.label)),h=m!=null?wa(m):void 0,_=D??s.colors.grey5,E=y??s.colors.grey5,b=x??s.colors.grey3,q=n??ye.smallRegular.cssObject,w=G??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"})},J=({children:p,...$})=>l.jsxs(xe.ValueContainer,{...$,children:[p,Y===!0?l.jsxs(Ta,{hasSelectedUser:!!m,onClick:()=>{d(void 0),V(!1)},children:[l.jsx(Oa,{}),l.jsx("div",{children:Q??"Add User"})]}):null]});return l.jsx(Ll,{onClickAway:()=>{V(!1)},children:l.jsx(xa,{children:l.jsx(_l,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:K,menuShouldScrollIntoView:!1,defaultValue:h,value:h,noOptionsMessage:()=>ae.getLocalizedStrings().cockpit.management.noPerson,onInputChange:p=>{p!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx(va,{children:l.jsx("div",{children:Q??"Select..."})}),components:{Option:Pa,DropdownIndicator:za,IndicatorSeparator:Ba,SingleValue:Va,ValueContainer:ka,MenuList:J},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:Z,options:re,isDisabled:f,onChange:p=>{d(p),V(!1)},isClearable:!1,isSearchable:!1},El())})})}const $a=t.div``,va=t.div`
105
+ `,ba=(e,d)=>e.map(m=>({...m,value:m.userId,label:m.firstName!=""||m.lastName!=""?`${m.firstName} ${m.lastName}`:m.email})),wa=(e,d)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ja({allUsers:e,onSelectedUserChanged:d,selectedUser:m,disable:f=!1,pickerStyles:{optionBackgroundColor:D,selectedOptionBackgroundColor:x,optionTextStyle:n,titleTextStyle:G,backgroundColor:y,titleTextAlignment:te,selectedOptionColor:ie,customStyleConfig:oe}={},customization:{placeholderLabel:Q}={},showAddUser:Y=!0}){const s=Re(),[K,V]=c.useState(!1),re=ba(e).sort((p,$)=>p.label.localeCompare($.label)),h=m!=null?wa(m):void 0,_=D??s.colors.grey5,E=y??s.colors.grey5,b=x??s.colors.grey3,q=n??ye.smallRegular.cssObject,w=G??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"})},J=({children:p,...$})=>l.jsxs(xe.ValueContainer,{...$,children:[p,Y===!0?l.jsxs(Ta,{hasSelectedUser:!!m,onClick:()=>{d(void 0),V(!1)},children:[l.jsx(Oa,{}),l.jsx("div",{children:Q??"Add User"})]}):null]});return l.jsx(Ll,{onClickAway:()=>{V(!1)},children:l.jsx(xa,{children:l.jsx(_l,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:K,menuShouldScrollIntoView:!1,defaultValue:h,value:h,noOptionsMessage:()=>ae.getLocalizedStrings().cockpit.management.noPerson,onInputChange:p=>{p!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx(va,{children:l.jsx("div",{children:Q??"Select..."})}),components:{Option:Pa,DropdownIndicator:za,IndicatorSeparator:Ba,SingleValue:Va,ValueContainer:ka,MenuList:J},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:Z,options:re,isDisabled:f,onChange:p=>{d(p),V(!1)},isClearable:!1,isSearchable:!1},El())})})}const $a=t.div``,va=t.div`
106
106
  display: flex;
107
107
  align-items: center;
108
108
  color: ${e=>e.theme.colors.grey1};
@@ -166,11 +166,11 @@ import{J as Oe,e as We,cS as wl,F as ae,y as O,aQ as jl,V as l,bT as Me,fH as Re
166
166
  display: flex;
167
167
  flex-direction: row;
168
168
  cursor: pointer;
169
- `,pe={width:new O(343,580,726),labelWidth:new O(115,145,155),largeLabelWidth:new O(160,240,240),veryLargeLabelWidth:new O(150,240,245),containerRowGap:new O(12,N[3])},Wa={title:new ge("standardMedium","largeMedium")};function mt({companyOfficerData:e,isDisabled:d,allOfficers:m,allNationalityCountries:f,isRefreshingViewInBackground:D,connectedAccountProvider:x,style:n,isPopupOpen:G,sectionId:y,filesEndPoint:te,authParams:ie,showInfoTooltip:oe=!0,isCompleted:Q=!1,showCompletedIcon:Y=!1,showOfficerSelect:s=!0,showVerificationTag:K=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:h,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 L=Oe(),me=We(),{getValues:A,setValue:ne}=wl(),U=m.length>0,[be,we]=c.useState(!1),k=U?Object.values(e).findIndex(o=>o?.isSelectedForVerification===!0):0,W=`Officer_${k<0?1:k+1}`;c.useEffect(()=>{X!=null&&e[W]?.phone!=null&&e[W].isPhoneVerified===!0&&X(e[W]?.phone??"")},[]);const g=`${y}.${k}`,M=e[W],R=V?M?.treasuryUserVerificationStatus:M?.userVerificationStatus,P=m.find(o=>o.userId===M?.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===M?.userId):0,tl=e[W]?.deleteFileStatusById??{},il=e[W]?.updateFileStatusById??{},De=A(`${g}.selectDocument.selectDocumentType`),{common:{optional:ol},commonSetUp:{businessVerification:r},dateFormat:{visual:rl},cockpit:sl}=ae.getLocalizedStrings(),T=h==="onboarding"?r.productType.business_verification:r.productType[h],de=pe.labelWidth.value(L),nl=pe.veryLargeLabelWidth.value(L),fe=pe.largeLabelWidth.value(L),dl=L==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,cl=L==="small"?r.protectedSsnTextSmall:r.protectedSsnText,I=R?.code==="pending_review"||R?.code==="verified"?"readonly":d,pl=I!=null||!U||R?.code==="require_info",ul=P?.firstName||P?.lastName?`${P?.firstName} ${P?.lastName}`:r.addOfficer,ml=M?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,fl={menu:()=>({right:"initial",left:0})},hl=o=>_.find(C=>C.code===o)?.name??o,$e=M?.otpverificationStatus?.fetchState,Fe=jl($e);c.useEffect(()=>{X!=null&&Fe==="In-Progress"&&$e==="Completed"&&X(A(`${g}.phone`))},[Fe,$e]);const yl=(o,C)=>{B(o,C)},gl=()=>H==null||H===""?!1:A(`${g}.phone`)===H,xl=()=>{const o=A(`${g}.phone`);return o!=null&&!Dl(o)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",T)};return l.jsxs(Ma,{style:n,windowSize:L,children:[l.jsxs(Ra,{windowSize:L,isOverlay:re,children:[l.jsxs(Xa,{children:[l.jsxs(Ha,{children:[Y===!0?l.jsx(Ua,{children:Q?l.jsx(Ga,{}):l.jsx(Qa,{})}):null,l.jsx(qa,{windowSize:L,children:E??ml})]}),oe?l.jsx(Ya,{children:l.jsx(Me,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:L==="small"||h==="onboarding"?"bottom":"right",children:l.jsx(Ka,{})})}):null,h==="onboarding"&&E!=null?l.jsx(ll,{text:ol}):null,R!=null&&K?l.jsx(at,{tagTitle:R?.name,textColor:Re(R.code),showLoader:D}):null]}),s?pl?U?l.jsxs(lt,{children:[P?.photo!==void 0?l.jsx(Za,{src:P?.photo.href,alt:sl.userProfileAltText,onError:({currentTarget:o})=>{o.onerror=null,o.src=Le},loading:"lazy"}):l.jsx(_e,{firstName:P?.firstName??"",lastName:P?.lastName??"",size:`${a.sp4}`,index:je}),l.jsx(Ae,{children:`${ul}`})]}):l.jsxs(tt,{children:[l.jsx(it,{children:l.jsx(ot,{})}),l.jsx(Ae,{children:`${r.addOfficer}`})]}):l.jsx(Ja,{children:l.jsx(ja,{selectedUser:P,allUsers:m,onSelectedUserChanged:o=>{const C=Object.values(e).findIndex(he=>he?.userId===o?.userId);ne(`${g}.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:L==="small"?fl:void 0}})}):null]}),Object.values(e).map((o,C)=>{if(k!==C)return null;const he=$l(o?.documentTypeSelectedForVerification),ve=o?.userFiles??[],bl=()=>H!=""&&h==="onboarding"?gl():o?.isPhoneVerified??!1;return l.jsxs(et,{children:[l.jsx(el,{}),l.jsx(qe,{isDisabled:I,label:{label:r.name,width:de},nameField:{name:F(g,"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(g,"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(He,{isDisabled:I,label:{label:r.dobLabel,width:fe},dateField:{name:F(g,"dob"),type:"text",defaultValue:o?.birthday,placeholder:ce(r.dobLabel),dateFormat:rl.defaultInput,maxDate:Je().subtract(x==="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:h!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",T),countrySelectField:{name:F(g,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:Sl(o?.nationalityCountryCode,f.map(j=>j.countryCode)),registerOptions:{validate:j=>!!(j!=null&&j.selectedOption)}}}),l.jsx(z,{}),l.jsx(Ce,{isDisabled:I,label:{label:r.address,width:de},addressValueField:{name:F(g,"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:h==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",T),showAdditionalInfoLabel:!0}),l.jsx(z,{}),l.jsx(Ue,{isDisabled:I,label:{label:r.phone,width:de},text:{name:F(g,"phone"),placeholder:ce(r.phone),defaultValue:o?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:xl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:G,phoneVerifyButtonProps:{otpChallenge:o?.otpChallenge,showOtpButton:x==="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(Se,{label:{label:r.companyRoleLabel,width:fe},singleSelectField:{singleSelect:{name:F(g,"role"),placeholder:dl,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:hl,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(Ne,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:fe},formattedTextField:{type:"number",name:F(g,"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:h==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(z,{}),l.jsx(Ne,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:fe},formattedTextField:{type:"text",name:F(g,"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(g,"selectDocument"),officerIndex:k,sizeLimit:Ie,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:h==="onboarding"&&he==null?"top":"auto",defaultValue:{defaultSelectDocumentType:he,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:Ve(!0,ve,De),back:Ve(!1,ve,De)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:be,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",T),onFileSizeError:j=>we(j),isPopupOpen:G,openPopup:p,companyOfficerName:{firstName:o?.firstName??"",lastName:o?.lastName??""}})]},g)})]})}const F=(e,d)=>`${e}.${d}`,Ma=t.div`
169
+ `,pe={width:new O(343,580,726),labelWidth:new O(115,145,155),largeLabelWidth:new O(160,240,240),veryLargeLabelWidth:new O(150,240,245),containerRowGap:new O(12,N[3])},Ra={title:new ge("standardMedium","largeMedium")};function mt({companyOfficerData:e,isDisabled:d,allOfficers:m,allNationalityCountries:f,isRefreshingViewInBackground:D,connectedAccountProvider:x,style:n,isPopupOpen:G,sectionId:y,filesEndPoint:te,authParams:ie,showInfoTooltip:oe=!0,isCompleted:Q=!1,showCompletedIcon:Y=!1,showOfficerSelect:s=!0,showVerificationTag:K=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:h,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 L=Oe(),me=Re(),{getValues:A,setValue:ne}=wl(),U=m.length>0,[be,we]=c.useState(!1),k=U?Object.values(e).findIndex(o=>o?.isSelectedForVerification===!0):0,R=`Officer_${k<0?1:k+1}`;c.useEffect(()=>{X!=null&&e[R]?.phone!=null&&e[R].isPhoneVerified===!0&&X(e[R]?.phone??"")},[]);const g=`${y}.${k}`,W=e[R],M=V?W?.treasuryUserVerificationStatus:W?.userVerificationStatus,P=m.find(o=>o.userId===W?.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===W?.userId):0,tl=e[R]?.deleteFileStatusById??{},il=e[R]?.updateFileStatusById??{},De=A(`${g}.selectDocument.selectDocumentType`),{common:{optional:ol},commonSetUp:{businessVerification:r},dateFormat:{visual:rl},cockpit:sl}=ae.getLocalizedStrings(),T=h==="onboarding"?r.productType.business_verification:r.productType[h],de=pe.labelWidth.value(L),nl=pe.veryLargeLabelWidth.value(L),fe=pe.largeLabelWidth.value(L),dl=L==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,cl=L==="small"?r.protectedSsnTextSmall:r.protectedSsnText,I=M?.code==="pending_review"||M?.code==="verified"?"readonly":d,pl=I!=null||!U||M?.code==="require_info",ul=P?.firstName||P?.lastName?`${P?.firstName} ${P?.lastName}`:r.addOfficer,ml=W?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,fl={menu:()=>({right:"initial",left:0})},hl=o=>_.find(C=>C.code===o)?.name??o,$e=W?.otpverificationStatus?.fetchState,Fe=jl($e);c.useEffect(()=>{X!=null&&Fe==="In-Progress"&&$e==="Completed"&&X(A(`${g}.phone`))},[Fe,$e]);const yl=(o,C)=>{B(o,C)},gl=()=>H==null||H===""?!1:A(`${g}.phone`)===H,xl=()=>{const o=A(`${g}.phone`);return o!=null&&!Dl(o)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",T)};return l.jsxs(Wa,{style:n,windowSize:L,children:[l.jsxs(Ma,{windowSize:L,isOverlay:re,children:[l.jsxs(Xa,{children:[l.jsxs(Ha,{children:[Y===!0?l.jsx(Ua,{children:Q?l.jsx(Ga,{}):l.jsx(Qa,{})}):null,l.jsx(qa,{windowSize:L,children:E??ml})]}),oe?l.jsx(Ya,{children:l.jsx(We,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:L==="small"||h==="onboarding"?"bottom":"right",children:l.jsx(Ka,{})})}):null,h==="onboarding"&&E!=null?l.jsx(ll,{text:ol}):null,M!=null&&K?l.jsx(at,{tagTitle:M?.name,textColor:Me(M.code),showLoader:D}):null]}),s?pl?U?l.jsxs(lt,{children:[P?.photo!==void 0?l.jsx(Za,{src:P?.photo.href,alt:sl.userProfileAltText,onError:({currentTarget:o})=>{o.onerror=null,o.src=Le},loading:"lazy"}):l.jsx(_e,{firstName:P?.firstName??"",lastName:P?.lastName??"",size:`${a.sp4}`,index:je}),l.jsx(Ae,{children:`${ul}`})]}):l.jsxs(tt,{children:[l.jsx(it,{children:l.jsx(ot,{})}),l.jsx(Ae,{children:`${r.addOfficer}`})]}):l.jsx(Ja,{children:l.jsx(ja,{selectedUser:P,allUsers:m,onSelectedUserChanged:o=>{const C=Object.values(e).findIndex(he=>he?.userId===o?.userId);ne(`${g}.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:L==="small"?fl:void 0}})}):null]}),Object.values(e).map((o,C)=>{if(k!==C)return null;const he=$l(o?.documentTypeSelectedForVerification),ve=o?.userFiles??[],bl=()=>H!=""&&h==="onboarding"?gl():o?.isPhoneVerified??!1;return l.jsxs(et,{children:[l.jsx(el,{}),l.jsx(qe,{isDisabled:I,label:{label:r.name,width:de},nameField:{name:F(g,"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(g,"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(He,{isDisabled:I,label:{label:r.dobLabel,width:fe},dateField:{name:F(g,"dob"),type:"text",defaultValue:o?.birthday,placeholder:ce(r.dobLabel),dateFormat:rl.defaultInput,maxDate:Je().subtract(x==="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:h!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",T),countrySelectField:{name:F(g,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:Sl(o?.nationalityCountryCode,f.map(j=>j.countryCode)),registerOptions:{validate:j=>!!(j!=null&&j.selectedOption)}}}),l.jsx(z,{}),l.jsx(Ce,{isDisabled:I,label:{label:r.address,width:de},addressValueField:{name:F(g,"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:h==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",T),showAdditionalInfoLabel:!0}),l.jsx(z,{}),l.jsx(Ue,{isDisabled:I,label:{label:r.phone,width:de},text:{name:F(g,"phone"),placeholder:ce(r.phone),defaultValue:o?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:xl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:G,phoneVerifyButtonProps:{otpChallenge:o?.otpChallenge,showOtpButton:x==="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(Se,{label:{label:r.companyRoleLabel,width:fe},singleSelectField:{singleSelect:{name:F(g,"role"),placeholder:dl,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:hl,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(Ne,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:fe},formattedTextField:{type:"number",name:F(g,"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:h==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(z,{}),l.jsx(Ne,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:fe},formattedTextField:{type:"text",name:F(g,"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(g,"selectDocument"),officerIndex:k,sizeLimit:Ie,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:h==="onboarding"&&he==null?"top":"auto",defaultValue:{defaultSelectDocumentType:he,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:Ve(!0,ve,De),back:Ve(!1,ve,De)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:be,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",T),onFileSizeError:j=>we(j),isPopupOpen:G,openPopup:p,companyOfficerName:{firstName:o?.firstName??"",lastName:o?.lastName??""}})]},g)})]})}const F=(e,d)=>`${e}.${d}`,Wa=t.div`
170
170
  display: flex;
171
171
  flex-direction: column;
172
172
  row-gap: ${e=>pe.containerRowGap.valuePx(e.windowSize)};
173
- `,Ra=t.div`
173
+ `,Ma=t.div`
174
174
  width: ${e=>pe.width.valuePx(e.windowSize)};
175
175
  display: flex;
176
176
  justify-content: space-between;
@@ -181,7 +181,7 @@ import{J as Oe,e as We,cS as wl,F as ae,y as O,aQ as jl,V as l,bT as Me,fH as Re
181
181
  display: flex;
182
182
  align-items: center;
183
183
  color: ${e=>e.theme.colors.primary};
184
- ${e=>`${Wa.title.style(e.windowSize)}`};
184
+ ${e=>`${Ra.title.style(e.windowSize)}`};
185
185
  padding-right: ${a.sp1};
186
186
  `,Ha=t.div`
187
187
  display: flex;
@@ -1,13 +1,13 @@
1
- import{V as r,aL as E,aM as x,F as p,o as l,aP as M,aS as w,ai as y,aT as H}from"./index-BR9aIv1A.js";import{n as o}from"./mui-C7Q1opAD.js";import{c as j}from"./SummaryCard-iIQISRZL-Cx0NyzVM.js";import{a as t}from"./sentry-BwoJfpTa.js";import"./liveblocks-B8f0lmpe.js";import"./core-B_30foAD.js";import"./recharts-v_b66Qfi.js";import"./zeni-epic-state-Deo9yJpd.js";import"./lottie-CbICbNKh.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.js";import"./ReloadCard-B3OtOvVI-DVK4TeBa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="9ad52469-8390-4443-a04d-c71b94f5d3c6",e._sentryDebugIdIdentifier="sentry-dbid-9ad52469-8390-4443-a04d-c71b94f5d3c6")}catch{}})();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"})),D=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})),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:"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"})),g=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:D},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:v},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:B}],L=o(w)`
1
+ import{V as r,aL as E,aM as x,F as p,o as l,aP as M,aS as w,ai as y,aT as B}from"./index-o0j-GZyM.js";import{n as o}from"./mui-CAW43Z2L.js";import{c as H}from"./SummaryCard-Bcw6fQTD-Do950Kyf.js";import{a as t}from"./sentry-DmQUfSE7.js";import"./liveblocks-BZyZbty1.js";import"./core-yiE_iOc0.js";import"./recharts-Duslqfio.js";import"./zeni-epic-state-C4Tt6Qhq.js";import"./lottie-HBX4-MpS.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.js";import"./ReloadCard-B5rmmfva-TUZ-Tkd2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="d0c74d9e-dce5-4930-85a8-7e6fc4280939",e._sentryDebugIdIdentifier="sentry-dbid-d0c74d9e-dce5-4930-85a8-7e6fc4280939")}catch{}})();const j=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"})),D=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})),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:"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"})),g=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:D},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:v},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:j}],L=o(w)`
2
2
  margin: ${l.sp5};
3
3
  justify-content: space-between;
4
- `,b=o.div`
4
+ `,W=o.div`
5
5
  display: flex;
6
6
  flex: 0 1 auto;
7
7
  flex-direction: row;
8
8
  align-items: center;
9
9
  margin-bottom: ${l.sp3};
10
- `,W=o(y)`
10
+ `,b=o(y)`
11
11
  color: ${e=>e.theme.colors.champion};
12
12
  `,I=o.div`
13
13
  display: flex;
@@ -35,8 +35,8 @@ import{V as r,aL as E,aM as x,F as p,o as l,aP as M,aS as w,ai as y,aT as H}from
35
35
  -webkit-box-orient: vertical;
36
36
  -webkit-line-clamp: 2;
37
37
  overflow: hidden;
38
- `,C=o(H)``,A=o.div`
38
+ `,C=o(B)``,A=o.div`
39
39
  width: 100%;
40
40
  height: 1px;
41
41
  background-color: ${e=>e.theme.colors.grey3};
42
- `;function X({card:e,actions:s,data:d,dndProps:n}){return r.jsx(E,{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(j,{card:e,actions:s,children:r.jsx(x,{dimension:e.dimension,style:{cursor:"pointer"},onClick:()=>s.onCardClick(e.cardIndex,e.cardType),"data-testid":M("dashboard",e.cardType),children:r.jsxs(L,{children:[r.jsx(b,{children:r.jsx(W,{children:p.getLocalizedStrings().companyPassportCard.title})}),g.map((i,c)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(I,{children:[r.jsxs(V,{children:[r.jsx($,{children:r.jsx(h,{height:l.sp5,width:l.sp5})}),r.jsxs(_,{children:[r.jsx(N,{children:m}),r.jsx(S,{data:d?.companyView,itemKey:a})]})]}),c!==g.length-1?r.jsx(A,{}):null]},i.key)})]})})})},e.cardIndex)}const S=({itemKey:e,data:s})=>{const d=s?.companyOfficers,n=s?.company,i=n?.company.companyInfo,c=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(d==null||d?.length===0)return r.jsx(m,{});const a=d.slice(0,10).sort((u,f)=>u.user.createTime?.isAfter(f.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 c?.companyIncType==null||c.companyIncType===""?r.jsx(m,{}):r.jsx(k,{children:c?.companyIncType});default:return null}};export{X as default};
42
+ `;function Y({card:e,actions:s,data:d,dndProps:n}){return r.jsx(E,{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:s,children:r.jsx(x,{dimension:e.dimension,style:{cursor:"pointer"},onClick:()=>s.onCardClick(e.cardIndex,e.cardType),"data-testid":M("dashboard",e.cardType),children:r.jsxs(L,{children:[r.jsx(W,{children:r.jsx(b,{children:p.getLocalizedStrings().companyPassportCard.title})}),g.map((i,c)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(I,{children:[r.jsxs(V,{children:[r.jsx($,{children:r.jsx(h,{height:l.sp5,width:l.sp5})}),r.jsxs(_,{children:[r.jsx(N,{children:m}),r.jsx(S,{data:d?.companyView,itemKey:a})]})]}),c!==g.length-1?r.jsx(A,{}):null]},i.key)})]})})})},e.cardIndex)}const S=({itemKey:e,data:s})=>{const d=s?.companyOfficers,n=s?.company,i=n?.company.companyInfo,c=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(d==null||d?.length===0)return r.jsx(m,{});const a=d.slice(0,10).sort((u,f)=>u.user.createTime?.isAfter(f.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 c?.companyIncType==null||c.companyIncType===""?r.jsx(m,{}):r.jsx(k,{children:c?.companyIncType});default:return null}};export{Y as default};
@@ -1,11 +1,11 @@
1
- import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha,cG as fa,aR as xa,y as m,cH as ba,C as Ce,o as t,al as ee,cI as z,cJ as ze,cK as L,cL as ya,cM as qe,cN as ga,cO as $a,cP as Ue,aw as wa,cQ as Ia,cR as He,cS as Ze,cT as ja,cU as va,cV as Da,p as P,cW as Sa,cX as Oa,bs as Ca,aT as Fa,b9 as q,cY as Fe,u as p,ai as Ge,r as Me,cZ as ka,aD as Ta,c_ as Pa,c$ as Na,bH as La,d0 as za,ci as Ma,d1 as Ea,am as Va,bI as W,d2 as Ba,b as ce,bG as _a}from"./index-BR9aIv1A.js";import{a as _,P as Wa}from"./sentry-BwoJfpTa.js";import{n as s,k as Ra}from"./mui-C7Q1opAD.js";import{Fk as Ya,bj as Je,bL as Aa,bh as ye,bC as qa,Fl as Ua}from"./zeni-epic-state-Deo9yJpd.js";import{I as Xe}from"./LabeledCreatableSingleSelectField-CTmUlcyk-Dx11AHn5.js";import{Y as Qe}from"./LabeledDocumentField-BwHjf12U-ti56UUdB.js";import{$ as Ke}from"./LabeledAddressValue-Ds1BeyG_-FoXd8L7U.js";import"./liveblocks-B8f0lmpe.js";import"./core-B_30foAD.js";import"./recharts-v_b66Qfi.js";import"./lottie-CbICbNKh.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="5e4c5568-7722-417b-ac6a-5967fbb2dfbd",e._sentryDebugIdIdentifier="sentry-dbid-5e4c5568-7722-417b-ac6a-5967fbb2dfbd")}catch{}})();const ea={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ha=Ra`
1
+ import{J as N,g as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha,cG as fa,aR as xa,y as m,cH as ya,C as Ce,o as t,al as ee,cI as z,cJ as ze,cK as L,cL as ba,cM as qe,cN as ga,cO as $a,cP as Ue,aw as wa,cQ as Ia,cR as He,cS as Ge,cT as ja,cU as va,cV as Da,p as P,cW as Sa,cX as Oa,bs as Ca,aT as Fa,b9 as q,cY as Fe,u as p,ai as Ze,r as Me,cZ as ka,aD as Ta,c_ as Pa,c$ as Na,bH as La,d0 as za,ci as Ma,d1 as Ea,am as Va,bI as W,d2 as Ba,b as ce,bG as _a}from"./index-o0j-GZyM.js";import{a as _,P as Wa}from"./sentry-DmQUfSE7.js";import{n as s,k as Ra}from"./mui-CAW43Z2L.js";import{Fk as Ya,bj as Je,bL as Aa,bh as be,bC as qa,Fl as Ua}from"./zeni-epic-state-C4Tt6Qhq.js";import{I as Xe}from"./LabeledCreatableSingleSelectField-CZzPQt4P-q5eFoS7_.js";import{Y as Qe}from"./LabeledDocumentField-Cj3wNN-j-DRfRBZq3.js";import{$ as Ke}from"./LabeledAddressValue-BRVf6Gy8-DR_hCdER.js";import"./liveblocks-BZyZbty1.js";import"./core-yiE_iOc0.js";import"./recharts-Duslqfio.js";import"./lottie-HBX4-MpS.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="97a04024-e015-4fc0-a687-a341704678ea",e._sentryDebugIdIdentifier="sentry-dbid-97a04024-e015-4fc0-a687-a341704678ea")}catch{}})();const ea={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ha=Ra`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
5
5
  100% {
6
6
  transform: translateX(0)
7
7
  }
8
- `,Za=s.div`
8
+ `,Ga=s.div`
9
9
  position: fixed;
10
10
  top: ${t.sp3};
11
11
  right: ${t.sp3};
@@ -20,7 +20,7 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
20
20
  justify-content: center;
21
21
  align-items: flex-start;
22
22
  animation: ${Ha} 0.4s;
23
- `,Ga=s(Sa)`
23
+ `,Za=s(Sa)`
24
24
  margin-top: 2px;
25
25
  width: ${t.sp4};
26
26
  height: ${t.sp4};
@@ -47,7 +47,7 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
47
47
  &:hover {
48
48
  color: ${P.primaryDark};
49
49
  }
50
- `,tt=e=>{const o=k.getLocalizedStrings().companyPassport.snackBar;return e==="Error"?o.failedText:o.successText};function ot(e){const o=N(),{fetchState:l,onRemoveSnackbar:i}=e;_.useEffect(()=>{setTimeout(i,5e3)});const n=k.getLocalizedStrings().companyPassport.snackBar,c=l==="Completed";return a.jsxs(Za,{windowSize:o,children:[c?a.jsx(Ga,{}):a.jsx(Ja,{}),a.jsxs(Ka,{windowSize:o,children:[a.jsx(et,{isSuccess:c,children:c?n.success:n.error}),a.jsx(Xa,{children:a.jsx(Qa,{children:tt(l)})})]}),a.jsx(at,{onClick:i,children:a.jsx(Ce,{})})]})}const se={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 lt(e){const o=N(),[l,i]=_.useState(!1),{companyPassport:n,commonSetUp:{businessVerification:c},common:{documents:f}}=k.getLocalizedStrings(),{fileProps:d,companyFiles:r,deleteFileStatusById:u,updateFileStatusById:b,sectionId:g,isDisabled:h,companyIncInfo:$,style:I}=e,S=se.labelWidth.value(o),j=se.largeLabelWidth.value(o),y=se.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:D}=k.getLocalizedStrings(),x=r.find(J=>J.documentType==="certificate_of_incorporation"),V=o==="small"?n.companyIncInfo.stateOfIncPlaceholderSmall:n.companyIncInfo.stateOfIncPlaceholder,pe=o==="small"?n.companyIncInfo.typeOfIncPlaceholderSmall:n.companyIncInfo.typeOfIncPlaceholder;return a.jsxs(it,{style:I,children:[a.jsx(nt,{children:n.companyIncInfo.title}),a.jsxs(st,{children:[a.jsx(Xe,{label:{label:D.companyIncInfo.typeOfInc,width:j},isDisabled:h,creatableSingleSelectField:{name:ne(g,"typeOfInc"),placeholder:pe,defaultValue:{selectedOption:$?.typeOfInc,allOptions:n.companyIncInfo.allTypesOfIncorporation}}}),a.jsx(ue,{}),a.jsx(ga,{label:{label:D.companyIncInfo.stateOfInc,width:j},isDisabled:h,singleSelectField:{name:ne(g,"stateOfInc"),placeholder:V,defaultValue:{selectedOption:$?.stateOfInc,allOptions:n.companyIncInfo.allStatesOfIncorporation}}}),a.jsx(ue,{}),a.jsx($a,{isDisabled:h,label:{label:n.companyIncInfo.incDate,width:S},style:{paddingBottom:se.paddingBottom.valuePx(o)},dateField:{name:ne(g,"incDate"),placeholder:L(n.companyIncInfo.incDate),defaultValue:$?.incDate,dateFormat:O.defaultInput,maxDate:ye(),minDate:Aa("01 Jan 1900"),autoComplete:"off"}}),a.jsx(ue,{}),a.jsx(Qe,{name:ne(g,"certificateOfIncorporation"),isDisabled:h,sizeLimit:Ue,deleteFileStatusById:u,updateFileStatusById:b,filesEndPoint:d.filesEndPoint,authParams:d.authParams,label:{label:c.certificateOfIncorporation,width:y},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(rt,{windowSize:o,isError:l,children:f.formatDocumentText10MB})]})]})}const ne=(e,o)=>`${e}.${o}`,it=s.div`
50
+ `,tt=e=>{const o=k.getLocalizedStrings().companyPassport.snackBar;return e==="Error"?o.failedText:o.successText};function ot(e){const o=N(),{fetchState:l,onRemoveSnackbar:i}=e;_.useEffect(()=>{setTimeout(i,5e3)});const n=k.getLocalizedStrings().companyPassport.snackBar,c=l==="Completed";return a.jsxs(Ga,{windowSize:o,children:[c?a.jsx(Za,{}):a.jsx(Ja,{}),a.jsxs(Ka,{windowSize:o,children:[a.jsx(et,{isSuccess:c,children:c?n.success:n.error}),a.jsx(Xa,{children:a.jsx(Qa,{children:tt(l)})})]}),a.jsx(at,{onClick:i,children:a.jsx(Ce,{})})]})}const se={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 lt(e){const o=N(),[l,i]=_.useState(!1),{companyPassport:n,commonSetUp:{businessVerification:c},common:{documents:f}}=k.getLocalizedStrings(),{fileProps:d,companyFiles:r,deleteFileStatusById:u,updateFileStatusById:y,sectionId:g,isDisabled:h,companyIncInfo:$,style:I}=e,S=se.labelWidth.value(o),j=se.largeLabelWidth.value(o),b=se.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:D}=k.getLocalizedStrings(),x=r.find(J=>J.documentType==="certificate_of_incorporation"),V=o==="small"?n.companyIncInfo.stateOfIncPlaceholderSmall:n.companyIncInfo.stateOfIncPlaceholder,pe=o==="small"?n.companyIncInfo.typeOfIncPlaceholderSmall:n.companyIncInfo.typeOfIncPlaceholder;return a.jsxs(it,{style:I,children:[a.jsx(nt,{children:n.companyIncInfo.title}),a.jsxs(st,{children:[a.jsx(Xe,{label:{label:D.companyIncInfo.typeOfInc,width:j},isDisabled:h,creatableSingleSelectField:{name:ne(g,"typeOfInc"),placeholder:pe,defaultValue:{selectedOption:$?.typeOfInc,allOptions:n.companyIncInfo.allTypesOfIncorporation}}}),a.jsx(ue,{}),a.jsx(ga,{label:{label:D.companyIncInfo.stateOfInc,width:j},isDisabled:h,singleSelectField:{name:ne(g,"stateOfInc"),placeholder:V,defaultValue:{selectedOption:$?.stateOfInc,allOptions:n.companyIncInfo.allStatesOfIncorporation}}}),a.jsx(ue,{}),a.jsx($a,{isDisabled:h,label:{label:n.companyIncInfo.incDate,width:S},style:{paddingBottom:se.paddingBottom.valuePx(o)},dateField:{name:ne(g,"incDate"),placeholder:L(n.companyIncInfo.incDate),defaultValue:$?.incDate,dateFormat:O.defaultInput,maxDate:be(),minDate:Aa("01 Jan 1900"),autoComplete:"off"}}),a.jsx(ue,{}),a.jsx(Qe,{name:ne(g,"certificateOfIncorporation"),isDisabled:h,sizeLimit:Ue,deleteFileStatusById:u,updateFileStatusById:y,filesEndPoint:d.filesEndPoint,authParams:d.authParams,label:{label:c.certificateOfIncorporation,width:b},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(rt,{windowSize:o,isError:l,children:f.formatDocumentText10MB})]})]})}const ne=(e,o)=>`${e}.${o}`,it=s.div`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  padding-top: ${t.sp3};
@@ -68,7 +68,7 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
68
68
  background-color: ${e=>e.theme.colors.grey3};
69
69
  min-height: 1px;
70
70
  max-height: 1px;
71
- `,rt=s(Ge)`
71
+ `,rt=s(Ze)`
72
72
  padding: ${t.sp1} ${t.sp4};
73
73
  background: ${e=>e.theme.colors.grey4};
74
74
  border-radius: ${t.sp0} ${t.sp0} ${t.sp2} ${t.sp2};
@@ -91,17 +91,17 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
91
91
  width: fit-content;
92
92
  margin-left: auto;
93
93
  margin-bottom: ${t.sp2};
94
- `,mt=e=>{const{labels:o,style:l,listStyleType:i="disc"}=e;return a.jsx(ct,{style:{...l,listStyleType:i},children:o.filter(n=>n!=null&&n.text!="").map((n,c)=>a.jsxs(dt,{isCancelled:n.status==="cancelled",children:[n.text,n.subText!=null?a.jsxs(pt,{children:["Started: ",n.subText]}):null]},`${n.text}_${c}`))})},G={width:new m(343,580,726),paddingTopBottom:new m(p[3],p[3]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4])};function de({isDisabled:e,label:o,bullettedLabels:l,style:i}){const n=N();return l.labels.length>0?a.jsxs(ut,{size:n,style:i,children:[a.jsx(Fe,{isDisabled:e,label:o.label,style:{marginLeft:G.labelMarginLeft.value(n),marginRight:G.labelMarginRight.value(n),width:o.width??"auto"}}),a.jsx(mt,{...l,style:{maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto"}})]}):null}const ut=s.div`
94
+ `,mt=e=>{const{labels:o,style:l,listStyleType:i="disc"}=e;return a.jsx(ct,{style:{...l,listStyleType:i},children:o.filter(n=>n!=null&&n.text!="").map((n,c)=>a.jsxs(dt,{isCancelled:n.status==="cancelled",children:[n.text,n.subText!=null?a.jsxs(pt,{children:["Started: ",n.subText]}):null]},`${n.text}_${c}`))})},Z={width:new m(343,580,726),paddingTopBottom:new m(p[3],p[3]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4])};function de({isDisabled:e,label:o,bullettedLabels:l,style:i}){const n=N();return l.labels.length>0?a.jsxs(ut,{size:n,style:i,children:[a.jsx(Fe,{isDisabled:e,label:o.label,style:{marginLeft:Z.labelMarginLeft.value(n),marginRight:Z.labelMarginRight.value(n),width:o.width??"auto"}}),a.jsx(mt,{...l,style:{maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto"}})]}):null}const ut=s.div`
95
95
  display: flex;
96
96
  flex-direction: row;
97
97
  align-items: flex-start;
98
98
  justify-content: space-between;
99
99
  background-color: ${e=>e.theme.colors.grey5};
100
- width: ${e=>G.width.valuePx(e.size)};
100
+ width: ${e=>Z.width.valuePx(e.size)};
101
101
  height: auto;
102
- padding-right: ${e=>G.marginRight.valuePx(e.size)};
103
- padding-top: ${e=>G.paddingTopBottom.valuePx(e.size)};
104
- padding-bottom: ${e=>G.paddingTopBottom.valuePx(e.size)};
102
+ padding-right: ${e=>Z.marginRight.valuePx(e.size)};
103
+ padding-top: ${e=>Z.paddingTopBottom.valuePx(e.size)};
104
+ padding-bottom: ${e=>Z.paddingTopBottom.valuePx(e.size)};
105
105
 
106
106
  :first-of-type {
107
107
  border-top-left-radius: inherit;
@@ -112,19 +112,19 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
112
112
  border-bottom-left-radius: inherit;
113
113
  border-bottom-right-radius: inherit;
114
114
  }
115
- `,he={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 ht({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=N(),u=e.company.company.companyInfo,b=he.labelWidth.value(r),g=he.mediumLabelWidth.value(r),h=he.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=S=>o.find(j=>j.code===S)?.name??S;return a.jsxs(xt,{style:d,children:[a.jsx(yt,{children:v.companyInfo.title}),a.jsxs(bt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:H(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(A,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:g},text:{type:"text",name:H(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(A,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:b},text:{type:"url",name:H(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(A,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:b},singleSelectField:{singleSelect:{name:H(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(S=>S.code)??[]}},isFunctional:!0}),a.jsx(A,{}),a.jsx(Xe,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:H(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(A,{}),a.jsx(Ke,{isDisabled:c,label:{label:v.companyInfo.address,width:b},addressValue:{placeholder:L(v.companyInfo.address),address:i?.addressToCreate,onClick:()=>f("company_address")}}),a.jsx(A,{}),a.jsx(qe,{isDisabled:c,label:{label:v.companyInfo.phone,width:b},text:{name:H(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(A,{}),a.jsx(de,{label:{label:v.companyInfo.fiscalYear,width:b},bullettedLabels:{labels:[{text:ft(l?.firstMonthOfFY??1)}],listStyleType:"none"}})]})]})}const ft=e=>{const{fiscalYearMonths:o}=Ua(e);return`${ye().month(o[0]-1).format(Ee.MMMFormat)} to ${ye().month(o[11]-1).format(Ee.MMMFormat)}`},H=(e,o)=>`${e}.${o}`,xt=s.div`
115
+ `,he={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 ht({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=N(),u=e.company.company.companyInfo,y=he.labelWidth.value(r),g=he.mediumLabelWidth.value(r),h=he.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=S=>o.find(j=>j.code===S)?.name??S;return a.jsxs(xt,{style:d,children:[a.jsx(bt,{children:v.companyInfo.title}),a.jsxs(yt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:H(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(A,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:g},text:{type:"text",name:H(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(A,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:H(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(A,{}),a.jsx(ba,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:H(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(S=>S.code)??[]}},isFunctional:!0}),a.jsx(A,{}),a.jsx(Xe,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:H(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(A,{}),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(A,{}),a.jsx(qe,{isDisabled:c,label:{label:v.companyInfo.phone,width:y},text:{name:H(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(A,{}),a.jsx(de,{label:{label:v.companyInfo.fiscalYear,width:y},bullettedLabels:{labels:[{text:ft(l?.firstMonthOfFY??1)}],listStyleType:"none"}})]})]})}const ft=e=>{const{fiscalYearMonths:o}=Ua(e);return`${be().month(o[0]-1).format(Ee.MMMFormat)} to ${be().month(o[11]-1).format(Ee.MMMFormat)}`},H=(e,o)=>`${e}.${o}`,xt=s.div`
116
116
  display: flex;
117
117
  flex-direction: column;
118
118
  padding-top: ${t.sp3};
119
119
  padding-bottom: ${t.sp9};
120
- `,bt=s.div`
120
+ `,yt=s.div`
121
121
  display: flex;
122
122
  flex-direction: column;
123
123
  background-color: ${e=>e.theme.colors.grey5};
124
124
  border: 1px solid ${e=>e.theme.colors.grey3};
125
125
  box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
126
126
  border-radius: ${t.sp2};
127
- `,yt=s(q)`
127
+ `,bt=s(q)`
128
128
  color: ${e=>e.theme.colors.champion};
129
129
  margin-bottom: ${t.sp3};
130
130
  `,A=s.div`
@@ -133,7 +133,7 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
133
133
  background-color: ${e=>e.theme.colors.grey3};
134
134
  min-height: 1px;
135
135
  max-height: 1px;
136
- `,ge={labelWidth:new m(110,110,140),buttonWidth:new m(70,70)};function gt({sectionId:e,isDisabled:o,style:l,officer:i,officerAddress:n,isEmptyCompanyOfficerSection:c,onOfficerAddressClick:f}){const d=N(),r=k.getLocalizedStrings().companyPassport,u=ge.labelWidth.value(d),b=c&&(i==null||!i.firstName&&!i.lastName&&!i.phone&&!i.email&&!n),g=i?.userId==null||i?.userId==="";return a.jsxs(vt,{style:l,children:[a.jsx(He,{isDisabled:o,label:{label:r.companyOfficer.name,width:u},nameField:{name:fe(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:b!==!0},showFullNameError:!0}}),a.jsx(xe,{}),a.jsx(z,{isDisabled:g?o:"readonly",label:{label:r.companyOfficer.email,width:u},text:{type:"email",name:fe(e,"email"),placeholder:L(r.companyOfficer.email),options:{required:b===!0?!1:g},defaultValue:i?.email,autoComplete:"new-password"}}),a.jsx(xe,{}),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(xe,{}),a.jsx(qe,{isDisabled:o,label:{label:r.companyOfficer.phone,width:u},text:{name:fe(e,"phone"),placeholder:L(r.companyOfficer.phone),defaultValue:i?.phone,autoComplete:"new-password"}})]})}function $t({companyOfficers:e,sectionId:o,style:l,isDisabled:i,onOfficerAddressClick:n}){const{setValue:c,getValues:f}=Ze(),[d,r]=_.useState(-1),u=k.getLocalizedStrings().companyPassport,b=e.length,g=e.length===1&&e[0].localData?.userId==null,h=f(o),$=()=>{const y={userId:void 0,officerType:`Officer_${b+1}`,name:{firstName:"",lastName:""},email:"",phone:""};c(o,[...h,y])},I=y=>{if(e[y].localData==null||!e[y].localData?.firstName&&!e[y].localData?.lastName&&!e[y].localData?.phone&&!e[y].localData?.email&&!e[y].addressStatus?.addressToCreate){const O=h.filter((D,x)=>x!==d);c(o,O),r(-1)}else r(y)},S=()=>{r(-1)},j=()=>{const y=h.filter((O,D)=>D!==d);c(o,y),r(-1)};return a.jsxs(jt,{style:l,children:[a.jsx(Dt,{children:u.companyOfficer.title}),e.map((y,O)=>{const D=y.localData,x=y.addressStatus,V=D?.userId==null||D?.userId==="";return a.jsxs(St,{children:[(b>1||V)&&!g?a.jsx(wt,{curIndex:O,isNewUser:V,numberOfOfficers:b,deleteConfirmationIndex:d,isDisabled:i,onDeleteClick:I,onCancelClick:S,onRemoveOfficerSection:j}):null,a.jsx(gt,{sectionId:`${o}.${O}`,officer:D,officerAddress:x,isDisabled:i,isEmptyCompanyOfficerSection:g,onOfficerAddressClick:n})]},D?.officerType)}),b<=9&&!g?a.jsx(It,{isSectionDisabled:i,onAddOfficerSection:$}):a.jsx($e,{})]})}const wt=({curIndex:e,isNewUser:o,numberOfOfficers:l,deleteConfirmationIndex:i,isDisabled:n,onDeleteClick:c,onCancelClick:f,onRemoveOfficerSection:d})=>{const r=N(),u=k.getLocalizedStrings().companyPassport;return a.jsxs(Ot,{children:[a.jsx(Ct,{children:l>1?`${u.companyOfficer.officer} ${e+1}`:""}),o&&n==null?i===e?a.jsx(Nt,{children:a.jsxs(Lt,{children:[u.companyOfficer.deleteConfirmation,a.jsx(Me,{label:u.cancel,onClick:f,style:{width:ge.buttonWidth.value(r),marginLeft:t.sp4,marginRight:t.sp3},size:"small",variant:"secondary"}),a.jsx(Me,{label:u.remove,onClick:d,style:{width:ge.buttonWidth.value(r)},size:"small",variant:"danger"})]})}):a.jsx(Pt,{className:"delete-icon-wrapper",onClick:()=>c(e),children:a.jsx(ka,{width:p[3],height:p[3],color:P.important})}):null]})},It=({isSectionDisabled:e,onAddOfficerSection:o})=>{const l=k.getLocalizedStrings().companyPassport;return e!=null?a.jsx($e,{}):a.jsxs(a.Fragment,{children:[a.jsxs(Ft,{onClick:o,children:[a.jsx(kt,{}),a.jsx(Tt,{children:l.companyOfficer.addOfficer})]}),a.jsx($e,{})]})},fe=(e,o)=>`${e}.${o}`,jt=s.div`
136
+ `,ge={labelWidth:new m(110,110,140),buttonWidth:new m(70,70)};function gt({sectionId:e,isDisabled:o,style:l,officer:i,officerAddress:n,isEmptyCompanyOfficerSection:c,onOfficerAddressClick:f}){const d=N(),r=k.getLocalizedStrings().companyPassport,u=ge.labelWidth.value(d),y=c&&(i==null||!i.firstName&&!i.lastName&&!i.phone&&!i.email&&!n),g=i?.userId==null||i?.userId==="";return a.jsxs(vt,{style:l,children:[a.jsx(He,{isDisabled:o,label:{label:r.companyOfficer.name,width:u},nameField:{name:fe(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(xe,{}),a.jsx(z,{isDisabled:g?o:"readonly",label:{label:r.companyOfficer.email,width:u},text:{type:"email",name:fe(e,"email"),placeholder:L(r.companyOfficer.email),options:{required:y===!0?!1:g},defaultValue:i?.email,autoComplete:"new-password"}}),a.jsx(xe,{}),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(xe,{}),a.jsx(qe,{isDisabled:o,label:{label:r.companyOfficer.phone,width:u},text:{name:fe(e,"phone"),placeholder:L(r.companyOfficer.phone),defaultValue:i?.phone,autoComplete:"new-password"}})]})}function $t({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,g=e.length===1&&e[0].localData?.userId==null,h=f(o),$=()=>{const b={userId:void 0,officerType:`Officer_${y+1}`,name:{firstName:"",lastName:""},email:"",phone:""};c(o,[...h,b])},I=b=>{if(e[b].localData==null||!e[b].localData?.firstName&&!e[b].localData?.lastName&&!e[b].localData?.phone&&!e[b].localData?.email&&!e[b].addressStatus?.addressToCreate){const O=h.filter((D,x)=>x!==d);c(o,O),r(-1)}else r(b)},S=()=>{r(-1)},j=()=>{const b=h.filter((O,D)=>D!==d);c(o,b),r(-1)};return a.jsxs(jt,{style:l,children:[a.jsx(Dt,{children:u.companyOfficer.title}),e.map((b,O)=>{const D=b.localData,x=b.addressStatus,V=D?.userId==null||D?.userId==="";return a.jsxs(St,{children:[(y>1||V)&&!g?a.jsx(wt,{curIndex:O,isNewUser:V,numberOfOfficers:y,deleteConfirmationIndex:d,isDisabled:i,onDeleteClick:I,onCancelClick:S,onRemoveOfficerSection:j}):null,a.jsx(gt,{sectionId:`${o}.${O}`,officer:D,officerAddress:x,isDisabled:i,isEmptyCompanyOfficerSection:g,onOfficerAddressClick:n})]},D?.officerType)}),y<=9&&!g?a.jsx(It,{isSectionDisabled:i,onAddOfficerSection:$}):a.jsx($e,{})]})}const wt=({curIndex:e,isNewUser:o,numberOfOfficers:l,deleteConfirmationIndex:i,isDisabled:n,onDeleteClick:c,onCancelClick:f,onRemoveOfficerSection:d})=>{const r=N(),u=k.getLocalizedStrings().companyPassport;return a.jsxs(Ot,{children:[a.jsx(Ct,{children:l>1?`${u.companyOfficer.officer} ${e+1}`:""}),o&&n==null?i===e?a.jsx(Nt,{children:a.jsxs(Lt,{children:[u.companyOfficer.deleteConfirmation,a.jsx(Me,{label:u.cancel,onClick:f,style:{width:ge.buttonWidth.value(r),marginLeft:t.sp4,marginRight:t.sp3},size:"small",variant:"secondary"}),a.jsx(Me,{label:u.remove,onClick:d,style:{width:ge.buttonWidth.value(r)},size:"small",variant:"danger"})]})}):a.jsx(Pt,{className:"delete-icon-wrapper",onClick:()=>c(e),children:a.jsx(ka,{width:p[3],height:p[3],color:P.important})}):null]})},It=({isSectionDisabled:e,onAddOfficerSection:o})=>{const l=k.getLocalizedStrings().companyPassport;return e!=null?a.jsx($e,{}):a.jsxs(a.Fragment,{children:[a.jsxs(Ft,{onClick:o,children:[a.jsx(kt,{}),a.jsx(Tt,{children:l.companyOfficer.addOfficer})]}),a.jsx($e,{})]})},fe=(e,o)=>`${e}.${o}`,jt=s.div`
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  padding-top: ${t.sp3};
@@ -209,7 +209,7 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
209
209
  background-color: ${e=>e.theme.colors.grey3};
210
210
  min-height: 1px;
211
211
  max-height: 1px;
212
- `,zt=({name:e,registerOptions:o,defaultValue:l,isDisabled:i,style:n,placeholder:c})=>{const{control:f,formState:{errors:d}}=Ze(),r=Ae(),u=Pa(d,e??""),b={container:h=>({...h,width:"100%",...n}),menu:h=>({...h,backgroundColor:r.colors.grey5,borderRadius:t.sp1,boxShadow:`${t.sp0} 2px ${t.sp2} ${r.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:h=>({...h,borderRadius:0})},g={hasError:u};return a.jsx(Na,{name:e,control:f,defaultValue:l,rules:o,render:({field:{onChange:h,onBlur:$,value:I,ref:S}})=>a.jsx(La,{...g,ref:S,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:c,value:Ve(I.selectedOptions),options:Ve(I.allOptions),onChange:j=>{h({selectedOptions:j.map(y=>y.value),allOptions:I.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:$,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:Mt,Option:At,Input:Vt,MultiValue:Bt,MultiValueLabel:_t,MultiValueRemove:Wt,ValueContainer:Et,DropdownIndicator:Kt,IndicatorSeparator:eo,Placeholder:Yt,ClearIndicator:Rt},hideSelectedOptions:!1,styles:b,isDisabled:i!=null})})},Mt=e=>{const{menuIsOpen:o,isFocused:l,isDisabled:i,selectProps:n}=e,{value:c,hasError:f}=n;return a.jsx(qt,{menuIsOpen:o,isFocused:l,isDisabled:i,optionsLen:c.length,hasError:f,children:a.jsx(W.Control,{...e,className:"select-control",children:e.children})})},Et=e=>{const{selectProps:o}=e,{value:l}=o;return a.jsxs(W.ValueContainer,{...e,className:"select-value-container",children:[e.children,a.jsx(Ut,{className:"selected-options",children:l.map(i=>i.value).join(", ")})]})},Vt=e=>{const{selectProps:o}=e,{placeholder:l,value:i}=o;return a.jsx(W.Input,{...e,autoComplete:"new-password",placeholder:i.length===0?l:void 0,children:e.children})},Bt=e=>a.jsx(W.MultiValue,{...e,children:e.children}),_t=e=>{const{data:o}=e;return a.jsx(W.MultiValueLabel,{...e,children:o.value})},Wt=e=>a.jsx(W.MultiValueRemove,{...e,children:a.jsx(aa,{style:{marginTop:"2px"}})}),Rt=e=>a.jsx(W.ClearIndicator,{...e,children:a.jsx(aa,{})}),Yt=()=>null,At=e=>{const{isSelected:o,isDisabled:l,isFocused:i}=e;return a.jsx(Ht,{isFocused:i,isSelected:o,isDisabled:l,children:a.jsx(W.Option,{...e,className:"select-option",children:a.jsxs(Zt,{children:[a.jsx(Jt,{children:a.jsx(Gt,{isSelected:o,isDisabled:l,children:e.label})}),o?a.jsxs(Xt,{children:[a.jsx(Qt,{className:"right-tick-icon"}),a.jsx(Ce,{className:"close-tick-icon"})]}):null]})})})},qt=s.div`
212
+ `,zt=({name:e,registerOptions:o,defaultValue:l,isDisabled:i,style:n,placeholder:c})=>{const{control:f,formState:{errors:d}}=Ge(),r=Ae(),u=Pa(d,e??""),y={container:h=>({...h,width:"100%",...n}),menu:h=>({...h,backgroundColor:r.colors.grey5,borderRadius:t.sp1,boxShadow:`${t.sp0} 2px ${t.sp2} ${r.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:h=>({...h,borderRadius:0})},g={hasError:u};return a.jsx(Na,{name:e,control:f,defaultValue:l,rules:o,render:({field:{onChange:h,onBlur:$,value:I,ref:S}})=>a.jsx(La,{...g,ref:S,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:c,value:Ve(I.selectedOptions),options:Ve(I.allOptions),onChange:j=>{h({selectedOptions:j.map(b=>b.value),allOptions:I.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:$,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:Mt,Option:At,Input:Vt,MultiValue:Bt,MultiValueLabel:_t,MultiValueRemove:Wt,ValueContainer:Et,DropdownIndicator:Kt,IndicatorSeparator:eo,Placeholder:Yt,ClearIndicator:Rt},hideSelectedOptions:!1,styles:y,isDisabled:i!=null})})},Mt=e=>{const{menuIsOpen:o,isFocused:l,isDisabled:i,selectProps:n}=e,{value:c,hasError:f}=n;return a.jsx(qt,{menuIsOpen:o,isFocused:l,isDisabled:i,optionsLen:c.length,hasError:f,children:a.jsx(W.Control,{...e,className:"select-control",children:e.children})})},Et=e=>{const{selectProps:o}=e,{value:l}=o;return a.jsxs(W.ValueContainer,{...e,className:"select-value-container",children:[e.children,a.jsx(Ut,{className:"selected-options",children:l.map(i=>i.value).join(", ")})]})},Vt=e=>{const{selectProps:o}=e,{placeholder:l,value:i}=o;return a.jsx(W.Input,{...e,autoComplete:"new-password",placeholder:i.length===0?l:void 0,children:e.children})},Bt=e=>a.jsx(W.MultiValue,{...e,children:e.children}),_t=e=>{const{data:o}=e;return a.jsx(W.MultiValueLabel,{...e,children:o.value})},Wt=e=>a.jsx(W.MultiValueRemove,{...e,children:a.jsx(aa,{style:{marginTop:"2px"}})}),Rt=e=>a.jsx(W.ClearIndicator,{...e,children:a.jsx(aa,{})}),Yt=()=>null,At=e=>{const{isSelected:o,isDisabled:l,isFocused:i}=e;return a.jsx(Ht,{isFocused:i,isSelected:o,isDisabled:l,children:a.jsx(W.Option,{...e,className:"select-option",children:a.jsxs(Gt,{children:[a.jsx(Jt,{children:a.jsx(Zt,{isSelected:o,isDisabled:l,children:e.label})}),o?a.jsxs(Xt,{children:[a.jsx(Qt,{className:"right-tick-icon"}),a.jsx(Ce,{className:"close-tick-icon"})]}):null]})})})},qt=s.div`
213
213
  width: 100%;
214
214
  background-color: ${e=>e.theme.colors.grey5};
215
215
  cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
@@ -364,12 +364,12 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
364
364
  }
365
365
  }
366
366
  }
367
- `,Zt=s.div`
367
+ `,Gt=s.div`
368
368
  display: flex;
369
369
  flex-direction: row;
370
370
  align-items: center;
371
371
  justify-content: space-between;
372
- `,Gt=s.label`
372
+ `,Zt=s.label`
373
373
  padding-right: 10px;
374
374
  overflow: hidden;
375
375
  text-overflow: ellipsis;
@@ -436,7 +436,7 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
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 lo(e){const o=N(),l=wa(),[i,n]=_.useState(!1),{companyPassport:c,commonSetUp:{businessVerification:f},common:{documents:d}}=k.getLocalizedStrings(),{fileProps:r,companyFiles:u,deleteFileStatusById:b,updateFileStatusById:g,sectionId:h,isDisabled:$,companyTaxInfo:I,style:S}=e,j=Be.labelWidth.value(o),y=Be.largeLabelWidth.value(o),O=!qa(l.loggedInUserRole??[]),D=u.find(x=>x.documentType==="tax_ein");return a.jsxs(io,{style:S,children:[a.jsx(no,{children:c.companyTaxInfo.title}),a.jsxs(so,{children:[a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.taxIdOrEIN,width:j},text:{type:"text",name:Z(h,"taxIdOrEIN"),placeholder:c.companyTaxInfo.taxIdOrEINPlaceholder,defaultValue:O===!0?c.protectedContent:I?.taxIdOrEIN,options:{pattern:Ia},autoComplete:"new-password"},protectedInfoText:O===!0?c.companyTaxInfo.adminPrivilegeRequired:void 0}),a.jsx(K,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.dunsNumber,width:j},text:{type:"text",name:Z(h,"dunsNumber"),placeholder:c.companyTaxInfo.dunsNumberPlaceholder,defaultValue:I?.dunsNumber,options:{pattern:/^\d{9}$/},autoComplete:"new-password"}}),a.jsx(K,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.naicsCode,width:j},text:{type:"text",name:Z(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(K,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.sicCode,width:j},text:{type:"text",name:Z(h,"sicCode"),placeholder:c.companyTaxInfo.sicCodePlaceholder,defaultValue:I?.sicCode,options:{pattern:/^\d{2,4}$/},autoComplete:"new-password"}}),a.jsx(K,{}),a.jsx(to,{isDisabled:$,label:{label:c.companyTaxInfo.taxesFiledYears,width:j},multiSelectField:{name:Z(h,"taxesFiledYears"),placeholder:c.companyTaxInfo.taxesFiledYearsPlaceholder,defaultValue:{selectedOptions:I?.taxesFiledYears.map(x=>x.toString())??[],allOptions:Je().map(x=>x.toString())}}}),a.jsx(K,{}),a.jsx(Qe,{name:Z(h,"einDocument"),isDisabled:$,sizeLimit:Ue,deleteFileStatusById:b,updateFileStatusById:g,filesEndPoint:r.filesEndPoint,authParams:r.authParams,label:{label:f.einDocument,width:y},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:D,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:i,updateFilesEntity:r.updateFilesEntity,onEditFileName:r.onEditFileName,onDeleteFile:r.onDeleteFile,onFileSizeError:x=>n(x)}),a.jsx(ro,{windowSize:o,isError:i,children:d.formatDocumentText10MB})]})]})}const Z=(e,o)=>`${e}.${o}`,io=s.div`
439
+ `,Be={labelWidth:new m(160,160,160),largeLabelWidth:new m(150,215,215)};function lo(e){const o=N(),l=wa(),[i,n]=_.useState(!1),{companyPassport:c,commonSetUp:{businessVerification:f},common:{documents:d}}=k.getLocalizedStrings(),{fileProps:r,companyFiles:u,deleteFileStatusById:y,updateFileStatusById:g,sectionId:h,isDisabled:$,companyTaxInfo:I,style:S}=e,j=Be.labelWidth.value(o),b=Be.largeLabelWidth.value(o),O=!qa(l.loggedInUserRole??[]),D=u.find(x=>x.documentType==="tax_ein");return a.jsxs(io,{style:S,children:[a.jsx(no,{children:c.companyTaxInfo.title}),a.jsxs(so,{children:[a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.taxIdOrEIN,width:j},text:{type:"text",name:G(h,"taxIdOrEIN"),placeholder:c.companyTaxInfo.taxIdOrEINPlaceholder,defaultValue:O===!0?c.protectedContent:I?.taxIdOrEIN,options:{pattern:Ia},autoComplete:"new-password"},protectedInfoText:O===!0?c.companyTaxInfo.adminPrivilegeRequired:void 0}),a.jsx(K,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.dunsNumber,width:j},text:{type:"text",name:G(h,"dunsNumber"),placeholder:c.companyTaxInfo.dunsNumberPlaceholder,defaultValue:I?.dunsNumber,options:{pattern:/^\d{9}$/},autoComplete:"new-password"}}),a.jsx(K,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.naicsCode,width:j},text:{type:"text",name:G(h,"naicsCode"),placeholder:c.companyTaxInfo.naicsCodePlaceholder,defaultValue:I?.naicsCode,options:{pattern:/^([2-9]{1}[0-9]{1}|[1-9]{1}[1-9]{1})\d{0,4}$/},autoComplete:"new-password"}}),a.jsx(K,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.sicCode,width:j},text:{type:"text",name:G(h,"sicCode"),placeholder:c.companyTaxInfo.sicCodePlaceholder,defaultValue:I?.sicCode,options:{pattern:/^\d{2,4}$/},autoComplete:"new-password"}}),a.jsx(K,{}),a.jsx(to,{isDisabled:$,label:{label:c.companyTaxInfo.taxesFiledYears,width:j},multiSelectField:{name:G(h,"taxesFiledYears"),placeholder:c.companyTaxInfo.taxesFiledYearsPlaceholder,defaultValue:{selectedOptions:I?.taxesFiledYears.map(x=>x.toString())??[],allOptions:Je().map(x=>x.toString())}}}),a.jsx(K,{}),a.jsx(Qe,{name:G(h,"einDocument"),isDisabled:$,sizeLimit:Ue,deleteFileStatusById:y,updateFileStatusById:g,filesEndPoint:r.filesEndPoint,authParams:r.authParams,label:{label:f.einDocument,width:b},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:D,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:i,updateFilesEntity:r.updateFilesEntity,onEditFileName:r.onEditFileName,onDeleteFile:r.onDeleteFile,onFileSizeError:x=>n(x)}),a.jsx(ro,{windowSize:o,isError:i,children:d.formatDocumentText10MB})]})]})}const G=(e,o)=>`${e}.${o}`,io=s.div`
440
440
  display: flex;
441
441
  flex-direction: column;
442
442
  padding-top: ${t.sp3};
@@ -457,7 +457,7 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
457
457
  background-color: ${e=>e.theme.colors.grey3};
458
458
  min-height: 1px;
459
459
  max-height: 1px;
460
- `,ro=s(Ge)`
460
+ `,ro=s(Ze)`
461
461
  padding: ${t.sp1} ${t.sp4};
462
462
  background: ${e=>e.theme.colors.grey4};
463
463
  border-radius: ${t.sp0} ${t.sp0} ${t.sp2} ${t.sp2};
@@ -492,13 +492,13 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
492
492
  :not(:first-of-type) {
493
493
  margin-left: ${t.sp3};
494
494
  }
495
- `,bo=s.div`
495
+ `,yo=s.div`
496
496
  display: flex;
497
497
  flex-direction: row;
498
498
  justify-content: flex-end;
499
499
  align-items: center;
500
500
  color: ${e=>e.theme.colors.primary};
501
- `,yo=()=>a.jsx(bo,{children:"–"}),go=s.div`
501
+ `,bo=()=>a.jsx(yo,{children:"–"}),go=s.div`
502
502
  padding: 6px ${t.sp2};
503
503
  white-space: nowrap;
504
504
  overflow: hidden;
@@ -509,7 +509,7 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
509
509
  justify-content: flex-end;
510
510
  display: flex;
511
511
  padding: 0 ${t.sp3};
512
- `,wo=e=>{const{users:o,style:l}=e;return a.jsx($o,{style:l,children:o.length!==0?o.filter(i=>!!i.firstName||!!i.lastName).map(i=>a.jsxs(xo,{children:[a.jsx(go,{children:`${i.firstName} ${i.lastName}`}),a.jsx(Ba,{name:`${i.firstName} ${i.lastName}`,size:t.sp4})]},i.userId)):a.jsx(yo,{})})},E={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 Io({isDisabled:e,label:o,avatarLabels:l,style:i}){const n=N();return a.jsxs(vo,{size:n,style:i,children:[a.jsx(Fe,{isDisabled:e,label:o.label,style:{marginLeft:E.labelMarginLeft.value(n),marginRight:E.labelMarginRight.value(n),marginTop:E.labelMarginTop.value(n),width:o.width??"auto"}}),a.jsx(wo,{users:l.users,style:{minHeight:E.controlHeight.value(n),display:"flex",flexGrow:1,flexFlow:"row wrap",maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",...l.style}})]})}const jo=Wa.memo(Io,Ta),vo=s.div`
512
+ `,wo=e=>{const{users:o,style:l}=e;return a.jsx($o,{style:l,children:o.length!==0?o.filter(i=>!!i.firstName||!!i.lastName).map(i=>a.jsxs(xo,{children:[a.jsx(go,{children:`${i.firstName} ${i.lastName}`}),a.jsx(Ba,{name:`${i.firstName} ${i.lastName}`,size:t.sp4})]},i.userId)):a.jsx(bo,{})})},E={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 Io({isDisabled:e,label:o,avatarLabels:l,style:i}){const n=N();return a.jsxs(vo,{size:n,style:i,children:[a.jsx(Fe,{isDisabled:e,label:o.label,style:{marginLeft:E.labelMarginLeft.value(n),marginRight:E.labelMarginRight.value(n),marginTop:E.labelMarginTop.value(n),width:o.width??"auto"}}),a.jsx(wo,{users:l.users,style:{minHeight:E.controlHeight.value(n),display:"flex",flexGrow:1,flexFlow:"row wrap",maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",...l.style}})]})}const jo=Wa.memo(Io,Ta),vo=s.div`
513
513
  display: flex;
514
514
  flex-direction: row;
515
515
  align-items: flex-start;
@@ -529,7 +529,7 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
529
529
  border-bottom-left-radius: inherit;
530
530
  border-bottom-right-radius: inherit;
531
531
  }
532
- `,be={labelWidth:new m(100,100,140),mediumLabelWidth:new m(140,150,160),largeLabelWidth:new m(160,180,180)};function Do({data:e,companyInfo:o,sectionId:l,isDisabled:i,isZeniUser:n,onScheduleClick:c}){const f=N(),{companyPassport:d,dateFormat:{visual:r}}=k.getLocalizedStrings(),u=be.labelWidth.value(f),b=be.mediumLabelWidth.value(f),g=be.largeLabelWidth.value(f),h=e.company.company,{controllers:$,subscriptions:I}=e,{managementInfo:S}=h,j=f==="small"?d.zeniFinanceTeam.scheduleCallPlaceholderSmall:d.zeniFinanceTeam.scheduleCallPlaceholder,y=I.filter(x=>x.plan?.plan.name!=null).map(x=>({text:x.plan?.plan.name,subText:x.subscription.subscription.startDate.format(r.MMMDCommaYYYYformat)})),O=ja(I.map(x=>x.addOns.map(V=>({text:V.addOn.name,subText:x.subscription.subscription.startDate.format(r.MMMDCommaYYYYformat)})))),D=S.receiverEmails.map(x=>({text:x}));return a.jsxs(Oo,{children:[a.jsx(Fo,{children:d.zeniFinanceTeam.title}),a.jsxs(Co,{children:[a.jsx(jo,{label:{label:d.zeniFinanceTeam.controller,width:b},avatarLabels:{users:$.map(x=>x.user)}}),a.jsx(re,{}),n===!0?a.jsx(z,{isDisabled:i,label:{label:d.zeniFinanceTeam.scheduleCall,width:b},text:{type:"text",name:So(l,"meetingLink"),placeholder:j,defaultValue:o?.meetingLink?.toString()??"",autoComplete:"new-password",options:{pattern:va}}}):o?.meetingLink!=null?a.jsx(Da,{label:{label:d.zeniFinanceTeam.scheduleCall,width:b},button:{buttonTitle:d.zeniFinanceTeam.schedule,onClick:()=>c(o.meetingLink)}}):null,D.length>0?a.jsxs(a.Fragment,{children:[a.jsx(re,{}),a.jsx(de,{label:{label:d.zeniFinanceTeam.emailUs,width:u},bullettedLabels:{labels:D,listStyleType:"none"}})]}):null,y.length>0?a.jsxs(a.Fragment,{children:[a.jsx(re,{}),a.jsx(de,{label:{label:d.zeniFinanceTeam.subscriptionPlans,width:g},bullettedLabels:{labels:y,listStyleType:"none"}})]}):null,O.length>0?a.jsxs(a.Fragment,{children:[a.jsx(re,{}),a.jsx(de,{label:{label:d.zeniFinanceTeam.addons,width:b},bullettedLabels:{labels:O,listStyleType:"none"}})]}):null]})]})}const So=(e,o)=>`${e}.${o}`,Oo=s.div`
532
+ `,ye={labelWidth:new m(100,100,140),mediumLabelWidth:new m(140,150,160),largeLabelWidth:new m(160,180,180)};function Do({data:e,companyInfo:o,sectionId:l,isDisabled:i,isZeniUser:n,onScheduleClick:c}){const f=N(),{companyPassport:d,dateFormat:{visual:r}}=k.getLocalizedStrings(),u=ye.labelWidth.value(f),y=ye.mediumLabelWidth.value(f),g=ye.largeLabelWidth.value(f),h=e.company.company,{controllers:$,subscriptions:I}=e,{managementInfo:S}=h,j=f==="small"?d.zeniFinanceTeam.scheduleCallPlaceholderSmall:d.zeniFinanceTeam.scheduleCallPlaceholder,b=I.filter(x=>x.plan?.plan.name!=null).map(x=>({text:x.plan?.plan.name,subText:x.subscription.subscription.startDate.format(r.MMMDCommaYYYYformat)})),O=ja(I.map(x=>x.addOns.map(V=>({text:V.addOn.name,subText:x.subscription.subscription.startDate.format(r.MMMDCommaYYYYformat)})))),D=S.receiverEmails.map(x=>({text:x}));return a.jsxs(Oo,{children:[a.jsx(Fo,{children:d.zeniFinanceTeam.title}),a.jsxs(Co,{children:[a.jsx(jo,{label:{label:d.zeniFinanceTeam.controller,width:y},avatarLabels:{users:$.map(x=>x.user)}}),a.jsx(re,{}),n===!0?a.jsx(z,{isDisabled:i,label:{label:d.zeniFinanceTeam.scheduleCall,width:y},text:{type:"text",name:So(l,"meetingLink"),placeholder:j,defaultValue:o?.meetingLink?.toString()??"",autoComplete:"new-password",options:{pattern:va}}}):o?.meetingLink!=null?a.jsx(Da,{label:{label:d.zeniFinanceTeam.scheduleCall,width:y},button:{buttonTitle:d.zeniFinanceTeam.schedule,onClick:()=>c(o.meetingLink)}}):null,D.length>0?a.jsxs(a.Fragment,{children:[a.jsx(re,{}),a.jsx(de,{label:{label:d.zeniFinanceTeam.emailUs,width:u},bullettedLabels:{labels:D,listStyleType:"none"}})]}):null,b.length>0?a.jsxs(a.Fragment,{children:[a.jsx(re,{}),a.jsx(de,{label:{label:d.zeniFinanceTeam.subscriptionPlans,width:g},bullettedLabels:{labels:b,listStyleType:"none"}})]}):null,O.length>0?a.jsxs(a.Fragment,{children:[a.jsx(re,{}),a.jsx(de,{label:{label:d.zeniFinanceTeam.addons,width:y},bullettedLabels:{labels:O,listStyleType:"none"}})]}):null]})]})}const So=(e,o)=>`${e}.${o}`,Oo=s.div`
533
533
  display: flex;
534
534
  flex-direction: column;
535
535
  padding-top: ${t.sp3};
@@ -550,7 +550,7 @@ import{J as N,e as Ae,aQ as da,a9 as pa,cF as ma,F as k,V as a,bC as ua,ac as ha
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)},We="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",De="primaryContact",Se="companyOfficer",Oe="zeniFinanceTeam";function Ho(e){const o=N(),l=Ae(),{companyPassportView:i,isZeniUser:n,filesEndPoint:c,authParams:f,allIndustries:d,isDisabled:r,isSettings:u=!1,onCompanyDetailsChanged:b,onCompanyOfficerUpdated:g,onNewCompanyOfficerAdded:h,onPrimaryContactDetailsUpdated:$,onNewCompanyOfficerRemoved:I,onSaveAll:S,onAddressClick:j,onScheduleClick:y,onBackClick:O,onResetClick:D,onEditFileName:x,updateFilesEntity:V,onDeleteFile:pe,onClickMenuIcon:J}=e,{companyView:X,localData:U,deleteFileStatusById:ke,updateFileStatusById:Te}=i,{companyFiles:ae}=U,Pe={authParams:f,filesEndPoint:c,onEditFileName:x,onDeleteFile:pe,updateFilesEntity:V},[Q,te]=_.useState(void 0),{companyDetails:ta,primaryContact:oa,companyOfficerUpdateStatus:la,updateStatus:R}=U,{localData:oe,addressStatus:ia}=ta,Ne=da(R.fetchState),le=Object.values(la).filter(T=>T.localData!=null),B=pa({mode:"all",defaultValues:Ye(U,d)});_.useEffect(()=>()=>{te(void 0)},[]),_.useEffect(()=>{Ne==="In-Progress"&&(R.fetchState==="Completed"||R.fetchState==="Error")&&(B.reset(Ye(U,d)),Q!==R.fetchState&&te(R.fetchState))},[Q,B,Ne,R,U,X,d,ae]);const sa=async(T,w)=>{if(T.includes(Ie)||T.includes(je)||T.includes(ve)||T.includes(Oe)){const{companyInfo:C,companyIncInfo:F,companyTaxInfo:Y,zeniFinanceTeam:me}=w;b({companyInfo:C,incInfo:F,taxDetails:Y,zeniFinanceTeam:me})}else if(T.includes(De)){$(w.primaryContact);const C=w.companyOfficer.map(F=>F.userId);if(w.primaryContact.userId!=null&&C.includes(w.primaryContact.userId)){const F=C.findIndex(Y=>Y===w.primaryContact.userId);F>=0&&g({...w.companyOfficer[F],name:w.primaryContact.name,officerType:`Officer_${F+1}`})}}else if(T.includes(Se)){const C=parseInt(T.split(".")[1]);if(C>=0)g({...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>le.length){const F=w.companyOfficer[w.companyOfficer.length-1];h(F)}else{const F=w.companyOfficer.filter(Y=>Y.officerType!=null);if(F.length<le.length){const Y=F.map((me,ca)=>{const Le={...me,officerType:`Officer_${ca+1}`};return g(Le),Le});F.length<le.length&&(I(`Officer_${F.length+1}`),B.reset({companyOfficer:Y}))}}}};_.useEffect(()=>{const T=B.watch((w,{name:C})=>{C!=null&&w!=null&&ma(()=>sa(C,w))});return()=>{T.unsubscribe()}});const na=B.handleSubmit(T=>{Q!=null&&te(void 0),S()}),{companyPassport:ie,common:{settings:ra}}=k.getLocalizedStrings();if(X==null)throw new Error("Company View is null");return a.jsxs(ko,{children:[a.jsx(ua,{title:ie.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(ot,{fetchState:Q,onRemoveSnackbar:()=>te(void 0)}):null,a.jsxs(To,{children:[a.jsx(Po,{windowSize:o,children:u?ra.infoText.companyDetails:ie.quickAccessInfo}),a.jsx(ha,{...B,children:a.jsxs("form",{id:Re(We),onSubmit:na,children:[a.jsx(ht,{sectionId:Ie,companyInfo:oe?.companyInfo,companyViewData:X,companyAddress:ia,isDisabled:r,onCompanyAddressClick:j,allIndustries:d}),a.jsx(lt,{sectionId:je,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:ae,companyIncInfo:oe?.incInfo,fileProps:Pe,isDisabled:r}),a.jsx(lo,{sectionId:ve,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:ae,companyTaxInfo:oe?.taxDetails,fileProps:Pe,isDisabled:r}),a.jsx(po,{sectionId:De,primaryContact:oa.localData,isDisabled:r}),a.jsx($t,{companyOfficers:le,sectionId:Se,isDisabled:r,onOfficerAddressClick:j}),a.jsx(Do,{data:X,companyInfo:oe?.companyInfo,isDisabled:r,isZeniUser:n,sectionId:Oe,onScheduleClick:y})]})})]}),fa(B.formState.dirtyFields)||Ya(U,X,ae)?a.jsx(xa,{formId:Re(We),primaryBtn:{label:ie.save,isLoading:R.fetchState==="In-Progress",style:{width:we.buttonWidth.value(o)},isDisabled:e.isDisabled!=null},cancelBtn:{label:ie.cancel,style:{width:we.buttonWidth.value(o)},onClick:()=>{B.reset(),D()}}}):null]})}const Re=e=>`${e}_form`,Ye=(e,o)=>{const{companyDetails:l,primaryContact:i,companyOfficerUpdateStatus:n}=e,c=k.getLocalizedStrings().companyPassport,f=l.localData?.incInfo.fileId!=null?[l.localData?.incInfo.fileId]:[],d=l.localData?.taxDetails.fileId!=null?[l.localData?.taxDetails.fileId]:[];return{[Ie]:{...ba(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:Je().map(r=>r.toString())},einDocument:e.companyFiles.find(r=>r.documentType==="tax_ein"),fileIds:d},[je]:{typeOfInc:{selectedOption:l.localData?.incInfo?.typeOfInc,allOptions:c.companyIncInfo.allTypesOfIncorporation},stateOfInc:{selectedOption:l.localData?.incInfo?.stateOfInc,allOptions:c.companyIncInfo.allStatesOfIncorporation},incDate:l.localData?.incInfo.incDate?.toDate(),certificateOfIncorporation:e.companyFiles.find(r=>r.documentType==="certificate_of_incorporation"),fileIds:f},[De]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[Se]:Object.values(n).filter(r=>r.localData!=null).map(r=>{const u=r.localData;return{userId:u.userId,officerType:u.officerType,name:{firstName:u.firstName,lastName:u.lastName},email:u.email,phone:u.phone}}),[Oe]:{meetingLink:l.localData?.companyInfo.meetingLink?.toString()??""}}},ko=s.div`
553
+ `,we={width:new m(343,580,726),buttonWidth:new m(85,85)},We="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",De="primaryContact",Se="companyOfficer",Oe="zeniFinanceTeam";function Ho(e){const o=N(),l=Ae(),{companyPassportView:i,isZeniUser:n,filesEndPoint:c,authParams:f,allIndustries:d,isDisabled:r,isSettings:u=!1,onCompanyDetailsChanged:y,onCompanyOfficerUpdated:g,onNewCompanyOfficerAdded:h,onPrimaryContactDetailsUpdated:$,onNewCompanyOfficerRemoved:I,onSaveAll:S,onAddressClick:j,onScheduleClick:b,onBackClick:O,onResetClick:D,onEditFileName:x,updateFilesEntity:V,onDeleteFile:pe,onClickMenuIcon:J}=e,{companyView:X,localData:U,deleteFileStatusById:ke,updateFileStatusById:Te}=i,{companyFiles:ae}=U,Pe={authParams:f,filesEndPoint:c,onEditFileName:x,onDeleteFile:pe,updateFilesEntity:V},[Q,te]=_.useState(void 0),{companyDetails:ta,primaryContact:oa,companyOfficerUpdateStatus:la,updateStatus:R}=U,{localData:oe,addressStatus:ia}=ta,Ne=da(R.fetchState),le=Object.values(la).filter(T=>T.localData!=null),B=pa({mode:"all",defaultValues:Ye(U,d)});_.useEffect(()=>()=>{te(void 0)},[]),_.useEffect(()=>{Ne==="In-Progress"&&(R.fetchState==="Completed"||R.fetchState==="Error")&&(B.reset(Ye(U,d)),Q!==R.fetchState&&te(R.fetchState))},[Q,B,Ne,R,U,X,d,ae]);const sa=async(T,w)=>{if(T.includes(Ie)||T.includes(je)||T.includes(ve)||T.includes(Oe)){const{companyInfo:C,companyIncInfo:F,companyTaxInfo:Y,zeniFinanceTeam:me}=w;y({companyInfo:C,incInfo:F,taxDetails:Y,zeniFinanceTeam:me})}else if(T.includes(De)){$(w.primaryContact);const C=w.companyOfficer.map(F=>F.userId);if(w.primaryContact.userId!=null&&C.includes(w.primaryContact.userId)){const F=C.findIndex(Y=>Y===w.primaryContact.userId);F>=0&&g({...w.companyOfficer[F],name:w.primaryContact.name,officerType:`Officer_${F+1}`})}}else if(T.includes(Se)){const C=parseInt(T.split(".")[1]);if(C>=0)g({...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>le.length){const F=w.companyOfficer[w.companyOfficer.length-1];h(F)}else{const F=w.companyOfficer.filter(Y=>Y.officerType!=null);if(F.length<le.length){const Y=F.map((me,ca)=>{const Le={...me,officerType:`Officer_${ca+1}`};return g(Le),Le});F.length<le.length&&(I(`Officer_${F.length+1}`),B.reset({companyOfficer:Y}))}}}};_.useEffect(()=>{const T=B.watch((w,{name:C})=>{C!=null&&w!=null&&ma(()=>sa(C,w))});return()=>{T.unsubscribe()}});const na=B.handleSubmit(T=>{Q!=null&&te(void 0),S()}),{companyPassport:ie,common:{settings:ra}}=k.getLocalizedStrings();if(X==null)throw new Error("Company View is null");return a.jsxs(ko,{children:[a.jsx(ua,{title:ie.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(ot,{fetchState:Q,onRemoveSnackbar:()=>te(void 0)}):null,a.jsxs(To,{children:[a.jsx(Po,{windowSize:o,children:u?ra.infoText.companyDetails:ie.quickAccessInfo}),a.jsx(ha,{...B,children:a.jsxs("form",{id:Re(We),onSubmit:na,children:[a.jsx(ht,{sectionId:Ie,companyInfo:oe?.companyInfo,companyViewData:X,companyAddress:ia,isDisabled:r,onCompanyAddressClick:j,allIndustries:d}),a.jsx(lt,{sectionId:je,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:ae,companyIncInfo:oe?.incInfo,fileProps:Pe,isDisabled:r}),a.jsx(lo,{sectionId:ve,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:ae,companyTaxInfo:oe?.taxDetails,fileProps:Pe,isDisabled:r}),a.jsx(po,{sectionId:De,primaryContact:oa.localData,isDisabled:r}),a.jsx($t,{companyOfficers:le,sectionId:Se,isDisabled:r,onOfficerAddressClick:j}),a.jsx(Do,{data:X,companyInfo:oe?.companyInfo,isDisabled:r,isZeniUser:n,sectionId:Oe,onScheduleClick:b})]})})]}),fa(B.formState.dirtyFields)||Ya(U,X,ae)?a.jsx(xa,{formId:Re(We),primaryBtn:{label:ie.save,isLoading:R.fetchState==="In-Progress",style:{width:we.buttonWidth.value(o)},isDisabled:e.isDisabled!=null},cancelBtn:{label:ie.cancel,style:{width:we.buttonWidth.value(o)},onClick:()=>{B.reset(),D()}}}):null]})}const Re=e=>`${e}_form`,Ye=(e,o)=>{const{companyDetails:l,primaryContact:i,companyOfficerUpdateStatus:n}=e,c=k.getLocalizedStrings().companyPassport,f=l.localData?.incInfo.fileId!=null?[l.localData?.incInfo.fileId]:[],d=l.localData?.taxDetails.fileId!=null?[l.localData?.taxDetails.fileId]:[];return{[Ie]:{...ya(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:Je().map(r=>r.toString())},einDocument:e.companyFiles.find(r=>r.documentType==="tax_ein"),fileIds:d},[je]:{typeOfInc:{selectedOption:l.localData?.incInfo?.typeOfInc,allOptions:c.companyIncInfo.allTypesOfIncorporation},stateOfInc:{selectedOption:l.localData?.incInfo?.stateOfInc,allOptions:c.companyIncInfo.allStatesOfIncorporation},incDate:l.localData?.incInfo.incDate?.toDate(),certificateOfIncorporation:e.companyFiles.find(r=>r.documentType==="certificate_of_incorporation"),fileIds:f},[De]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[Se]:Object.values(n).filter(r=>r.localData!=null).map(r=>{const u=r.localData;return{userId:u.userId,officerType:u.officerType,name:{firstName:u.firstName,lastName:u.lastName},email:u.email,phone:u.phone}}),[Oe]:{meetingLink:l.localData?.companyInfo.meetingLink?.toString()??""}}},ko=s.div`
554
554
  display: flex;
555
555
  min-height: 100%;
556
556
  flex-direction: column;