@zeniai/web-cockpit-ui 1.14.13-qa → 1.14.14-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 (250) hide show
  1. package/dist/assets/ACHDetailsPage-DzRJ2QAk-DvsByjsE.js +21 -0
  2. package/dist/assets/{AIPerformancePage-C-orwzaK-C6rbxEzb.js → AIPerformancePage-BFjLWbFj-Clm2qRBD.js} +44 -44
  3. package/dist/assets/{AccountInfoPage-DvhQOLM6-CX5o6Llb.js → AccountInfoPage-iz3OwpQ7-TJq-6cJ1.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-B1BJnQNd-C74MLyxZ.js → AccountInfoPageContent-DqO5Kcep-dFhLo0ar.js} +18 -18
  5. package/dist/assets/{AccountReconDetailsDrawerPage-C8EtTwZE-Cmjy7UY9.js → AccountReconDetailsDrawerPage-kNZ0VZns-coqlqQ2C.js} +13 -13
  6. package/dist/assets/{AccountRow-m3N4T8ro-C0WA_XfX.js → AccountRow-CAXWtAin-BB54Lqef.js} +27 -27
  7. package/dist/assets/{AccountsPromoCardStack-DGHAcZ7D-Ce3ZBF_s.js → AccountsPromoCardStack-Dqrhr23F-CroWlBVf.js} +28 -28
  8. package/dist/assets/{AddAddressForCardDrawer-B_1jj1h7-gqd8s2Xm.js → AddAddressForCardDrawer-D2IMZgZa-xE__lTqS.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-DL1Bk4bd-DTEhx0Mb.js → AddToWalletPage-qgqXvx0C-CKm1Ldrx.js} +21 -21
  10. package/dist/assets/{AgingReportsPage-DQ4P7iSR-DRrTaXuT.js → AgingReportsPage-CNWj8sV2-jqLPsgQn.js} +8 -8
  11. package/dist/assets/{AllUserItems-BSWk_1pR-DI3PB0Ie.js → AllUserItems--netGz7H-Bnantk93.js} +13 -13
  12. package/dist/assets/{ApAgingDetailPage-0i8K1czh-BdP3zPvv.js → ApAgingDetailPage-CxLaoiqg-C-EmvhQs.js} +2 -2
  13. package/dist/assets/{AppBasePage-CV3kU-Ax-D761wqV3.js → AppBasePage-CbUMSiOb-C2Qhzc1Z.js} +7 -7
  14. package/dist/assets/{AppDrawerContent-DA8q-1_m-DY4TNtE3.js → AppDrawerContent-BNTS8MtE-Dc-K1QNS.js} +19 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-CRlqbhea-CDRK6CVR.js → ApprovalRulesSettingsPage-lFVUzKhw-CpEDBPBV.js} +7 -7
  16. package/dist/assets/{ArAgingChart-CiJNNObG-B2XrTnTz.js → ArAgingChart-BBavISMZ-BRq-xI7y.js} +6 -6
  17. package/dist/assets/{ArAgingDetailPage-2I9R_J97-CDktd7-L.js → ArAgingDetailPage-Bk49E_4I-BtplOHK3.js} +1 -1
  18. package/dist/assets/{AttachmentView-D0naVbDk-BwHrzCwR.js → AttachmentView-g756MrON-D9Kn72J1.js} +7 -7
  19. package/dist/assets/{BankAccountSection-CYYTnOEW-u_09M64L.js → BankAccountSection-C0U0fm6r-DlvauCZL.js} +6 -6
  20. package/dist/assets/BankAccountWarningSection-GcaV2hCI-D3Ca46bt.js +51 -0
  21. package/dist/assets/{BankConnectionsSettingsPage-BzwCu93j-BUFuHbUe.js → BankConnectionsSettingsPage-YwtSaNry-DRhjAjtE.js} +49 -49
  22. package/dist/assets/{BillDetailPage-OzI0RkQ_-BfKQOd2E.js → BillDetailPage-e0b0r_9U-yPEt29dp.js} +16 -16
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-DIQW7KY9-DJWja9k_.js → BillPayApprovalRuleDetailPage-DZNOlmqa-CLwguHOJ.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-BMmJ4cuT-__2Bsq1U.js → BillPayApprovalRulesPage-HvIHZYLp-DVLOehTT.js} +9 -9
  25. package/dist/assets/{BillPayPromoPage-CN5LKQzn-0JHpDPWr.js → BillPayPromoPage-BKRIBuWK-DP5dbDj_.js} +8 -8
  26. package/dist/assets/{BillPaySetUpPage-DMKmupPw-BLQDwDwf.js → BillPaySetUpPage-DVFYVrcF-D5-3Y6xe.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-Bt_0mrqR-BFb05sIp.js → BillingSettingsPage-Boq7QJuJ-MMRw9LV_.js} +8 -8
  28. package/dist/assets/{BillsBulkReviewDrawerPage-GFME_IXw-BiBj7sS4.js → BillsBulkReviewDrawerPage-DB1RnMx6-BMOFxqLf.js} +1 -1
  29. package/dist/assets/{BoxItem-nvtPdCwS-B3L2WvTD.js → BoxItem-C5PEWObZ-C1r9NNOq.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-JFwqav9V-Bf6JWYI7.js +140 -0
  31. package/dist/assets/{CardNumberSubText-DBpF1pjJ-BY_Eifxb.js → CardNumberSubText-Qd4Nl4Ie-CMfs42of.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DrdbDPXK-CYepjX8S.js → CashbackDetailPage-pMaAPWGY-BU5YiPyR.js} +30 -30
  33. package/dist/assets/{ChargeCardDetailPage-DvY3CSB4-BOCLZ4ee.js → ChargeCardDetailPage-ZhB56XeA-yRngE5Q2.js} +54 -54
  34. package/dist/assets/{ChargeCardListPage-BE5yGbg8-rjnPyN2B.js → ChargeCardListPage-3k973dhm-CXGJrCSu.js} +14 -14
  35. package/dist/assets/{ChargeCardListTable-B-scLCAt-CkeriUJ9.js → ChargeCardListTable-aotBBLcN-DM0qvCiY.js} +37 -37
  36. package/dist/assets/ChargeCardPromoPage-D5h6LEV7-Ca2lkyXc.js +219 -0
  37. package/dist/assets/{ChargeCardSetupPage-FNCK1n4W-CmPQlH3j.js → ChargeCardSetupPage-DLhS4IXu-BTWinhYJ.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-1fuIth_h-COFasWWf.js → ChargeCardStatementsPage-C9JupC6z-Cl_Np1aF.js} +9 -9
  39. package/dist/assets/{ChargeCardUtils-CErWBcYS-CDDnXQPt.js → ChargeCardUtils-DlCRcsWm-C2oiv8yk.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-9_ms5LgM-DXC_zSYp.js → ChaseOverlay-Cpt5a98f-D5R6S2Uh.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-Nz2eeTkw-C6G5mb5T.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-DX-FpwE7-BeBpL5MN.js → CollapsableReportTable-D_yuiPyJ-DhZJx5n7.js} +59 -59
  43. package/dist/assets/CompanyOfficerDetailsSection-C3yfgjGi-D1y_4iNp.js +232 -0
  44. package/dist/assets/{CompanyPassportCard-BZXE3iJL-DilKoEdI.js → CompanyPassportCard-yl1IgKFI-D5o4V1kY.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-BYZC3G4H-CVW8Rjjr.js → CompanyPassportPage-CVyMn0gX-B84l3k5M.js} +22 -22
  46. package/dist/assets/CompleteProfile-DzShtAr0-DgZZyN3N.js +36 -0
  47. package/dist/assets/{ConfettiBurst-BEoFHjQ0-DpE46940.js → ConfettiBurst-C47O0k3A-CgE-jS0G.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-6sohsdle-DA504h5F.js → CreateOrEditVendorPage-LadbvQ9C-BM9MXFCX.js} +11 -11
  49. package/dist/assets/{CreditCardPaymentDrawerPage-6oVDS3D8-C-M8T0xP.js → CreditCardPaymentDrawerPage-BQKmQNsf-D51SQtY9.js} +21 -21
  50. package/dist/assets/{CreditCardPaymentPlgSection-DX1BieKp-RRhQZkQz.js → CreditCardPaymentPlgSection-BKgF2tFu-B2qut9Kq.js} +12 -11
  51. package/dist/assets/{CurrencySelectField-F2P1iCLk-Bpmtm2da.js → CurrencySelectField-D_UXMdLl-3fWMP5Ut.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CNJkyjta-BVYDPEX6.js → CustomerOnboardingActivationPage-DYDUNktm-VdMelZBk.js} +8 -8
  53. package/dist/assets/CustomerOnboardingContainerPage-D34Fz5xA-DtQjzx0f.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B_MgUg-5-Bsph6TlL.js → CustomerOnboardingDetailPageSkeleton-IwCrs_Ni-BU7FJV1W.js} +12 -12
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-B49-4wZk-D2RstZet.js → CustomerOnboardingNoStepsPage-BinWH6wJ-F7EZH_15.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-4FPXG220-Lt3_K55_.js → CustomerOnboardingPage-mGYcMJc6-Cbh61qkc.js} +7 -7
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-cJPPvh-5-CUtKalOJ.js → CustomerOnboardingProductSuitePage-CMmP2rhp-C2ZiM9Vp.js} +9 -9
  58. package/dist/assets/{Dashboard-BBy_mQ8p-B5jdV4yq.js → Dashboard-B8ej675T-BQsqhmh7.js} +242 -260
  59. package/dist/assets/{DashboardReportPage-DYttySr4-CfmGOUcK.js → DashboardReportPage-D0g4Un-7-CpfFEkxQ.js} +6 -6
  60. package/dist/assets/{DepositAccTransactionItem-PNTL0e8v-BGmvjHCI.js → DepositAccTransactionItem-BiYFTagV-DKGpDZWk.js} +6 -6
  61. package/dist/assets/DepositAccTransactionListPage-B7seT4iQ-ETDHZpCZ.js +66 -0
  62. package/dist/assets/DocumentSecurityBanner-CQSsX1R1-CiqTL3oT.js +29 -0
  63. package/dist/assets/{DomesticWireDetailsPage-BhwTfZwI-DqDvFXEQ.js → DomesticWireDetailsPage-c2Omt2uV-BnfqYqal.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CUbv29mo-Bw1IdF0e.js → DownloadOverlay-Ca73StXh-C_Z4Bo0m.js} +21 -21
  65. package/dist/assets/{DrawerPage-2_QOgQ1m-8yRdv53N.js → DrawerPage-DbQ3fJ0a-CKvwqNoK.js} +11 -11
  66. package/dist/assets/EditPeoplePage-BSGpToFc-CVz7ykg1.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-C_jRh7w0-JV95TM0u.js → EditReimbursementDetailPage-CF4ITGWS-BCshPTAR.js} +61 -61
  68. package/dist/assets/{EntityDetailPage-BhQsnCgQ-D4_NJ9nD.js → EntityDetailPage-CjjeYmrY-CKF8NzDY.js} +3 -3
  69. package/dist/assets/{EntitySummarySection-CKkXzM76-CapIMSuQ.js → EntitySummarySection-CATUFkYD-DImzYyVi.js} +12 -12
  70. package/dist/assets/{ExpenseAutomationOverviewPage-ZuB3Aiv2-qZiVh6s4.js → ExpenseAutomationOverviewPage-DZJM8s1B-CWuuVSRx.js} +26 -26
  71. package/dist/assets/{ExpenseAutomationPage-BUic8zfk-BHBJ9Z-T.js → ExpenseAutomationPage-CJcg4JEX-CfHRDYOm.js} +41 -41
  72. package/dist/assets/{ExpressPayPage-DEkJ_H0W-CaxLveLq.js → ExpressPayPage-DtAXlY7R-DmEs2VSF.js} +12 -12
  73. package/dist/assets/FeaturePreviewPage-BsLKydgB-BmJgHlv8.js +11 -0
  74. package/dist/assets/{FollowStepsSection-CWw764ZM-CGrm9Uf6.js → FollowStepsSection-CkJm4bPf-DSv54_x1.js} +9 -9
  75. package/dist/assets/{GlobalReviewListPage-CZctHM7r-D_9dJu1v.js → GlobalReviewListPage-DmxSD6UV-B6jMDpXK.js} +12 -12
  76. package/dist/assets/{HelpButton-Dpx0Yoel-CKsVdDSg.js → HelpButton-BFbQbBAV-B9TFt0c5.js} +4 -4
  77. package/dist/assets/{InformationCardStack-BGpHl4yb-lczsugqm.js → InformationCardStack-BMrkstMK-DbtAleoo.js} +5 -5
  78. package/dist/assets/InsightsCardStack-wYrlCPh0-C81zbfqn.js +79 -0
  79. package/dist/assets/InsightsSection-DncKJ7JM-Ch4ouwgi.js +27 -0
  80. package/dist/assets/{IntegrationsSettingsPage-CMjSCRm_-CgzYCQoS.js → IntegrationsSettingsPage-xySXq7aa-D_KPhG4o.js} +8 -8
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-BTbTUt8U-CYMokwYp.js → InternationalWireSwiftDetailsPage-CSqm7kj7-CBN5IgLs.js} +15 -15
  82. package/dist/assets/{InternationalWireVerificationPage-DAW2eMTg-ChJ3uDB8.js → InternationalWireVerificationPage-DUHW34SM-CtEEcP6x.js} +22 -22
  83. package/dist/assets/{InviteFormPage-CCbyacPR-Ckjr5NgF.js → InviteFormPage-FjAlfXw_-BJAcufzm.js} +20 -20
  84. package/dist/assets/{InvitePageListView-mHkALr5o-C7ylPhjm.js → InvitePageListView-PObzTGOB-GwMLzitg.js} +62 -62
  85. package/dist/assets/InvitePeoplePage-BuqTZXW2-BpTuQP9a.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-BsjeicP1-BP91ZU7m.js → InvoiceUploadSection-CZXO__Vx-Dmz2Yupy.js} +41 -41
  87. package/dist/assets/{IssueChargeCardPage-C3esnkQg-COG08kWF.js → IssueChargeCardPage-CjsftuWA-BDs_oaGQ.js} +33 -33
  88. package/dist/assets/{LabeledAddressValue-CeeoKoY4-CvQwJTu9.js → LabeledAddressValue-CfUYrlxS-CedyeSnW.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-B6eeRCSM-DWydrKZY.js → LabeledAddressValueField-B5z2zp_k-DSta9Thy.js} +3 -3
  90. package/dist/assets/{LabeledControlledCheckBoxField-CK8YBqJ7-B9saqU60.js → LabeledControlledCheckBoxField-CHl3uhk9-BG28gZFR.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BSKL8pA3-DuFUXQMp.js → LabeledCreatableSingleSelectField-CP-IuKrc-DU5OIEj-.js} +6 -6
  92. package/dist/assets/LabeledDocumentField-DyMGgcCu-CO5ZlVGH.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-DikXPnxD-DSUeE__c.js → LabeledDropDownFormattedTextField-Bism2Slt-DwU7ZVVo.js} +7 -7
  94. package/dist/assets/{LabeledText-qSjyNZO1-DFoRQ0wb.js → LabeledText-RBbOYz7n-VgixWYEH.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-x87S_Azj-CVhA2Xgg.js → LabeledUserSingleSelectWithSubtitlesField-B9Mu2WJq-C8qMOZtd.js} +16 -16
  96. package/dist/assets/{LabeledZeniRolesDropDownField-nm5bG2up-C92IDjFa.js → LabeledZeniRolesDropDownField-BCvUNHGc-D_n3gvsf.js} +17 -17
  97. package/dist/assets/{LinkJETransactionPage-p7wdZbtp-CNwjLj8D.js → LinkJETransactionPage-C4JGb7aV-BXKelJUa.js} +13 -13
  98. package/dist/assets/{LowBalancePopup-DHk6xd2B-_aHCSs2W.js → LowBalancePopup-BeDr-jas-DddI_xZq.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-DRQ8oej8-aUTlVnco.js → MagicLinkACHDetailsPage-B8zPEOQv-ELR3l9ZF.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BxXU9Opg-CCiAW5vW.js → MagicLinkDomesticWireDetailsPage-CGdUqm2t-BERGcMoL.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DYN1baIc-BXA8gggA.js → MagicLinkInternationalWireDetailsPage-8hkLJ9A0-Bdoq1vuL.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-DWCZWHis-oQvPww9a.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-K2cZQVzq-COa6ijtd.js → MagicLinkTitleSection-u5U6e-ve-MC7ZylHb.js} +4 -4
  104. package/dist/assets/MailingDetailsSection-nhPvZjVn-DTjLXXj3.js +21 -0
  105. package/dist/assets/{MeetingCalenderPopup-DbFlQ8Km-k4_LsMxX.js → MeetingCalenderPopup-CUA73Qvk-BpUub713.js} +1 -1
  106. package/dist/assets/{Menu-LLL9taEz-ipYxRwn_.js → Menu-D2zz2q9--BYfPpKNs.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BfDsHVZw-Bf1XYxr4.js → MyBankConnectionsSettingsPage-CGZMdkpt-CMgN8NUW.js} +15 -15
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-vag56A65-DF0R294m.js → MyPendingActivationChargeCardListPage-BKFgjKZX-B0scJUTA.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DCKqWh-p-DaltQdCu.js → MyProfileSettingsPage-BMRJLHbT-DWg_-s2B.js} +8 -8
  110. package/dist/assets/NavBarWithPicker-BXotE7Lk-TYT-S2OK.js +30 -0
  111. package/dist/assets/{NavigationArrow-CHmddDC--eiR6ZCk2.js → NavigationArrow-D-l9zblc-CDQWgJ4Z.js} +2 -2
  112. package/dist/assets/NavigationDots-BXUbx14l-CApJ3xJB.js +14 -0
  113. package/dist/assets/{NewGlobalMerchantPage-B0FywA12-B-V71_-n.js → NewGlobalMerchantPage-DtDgNdr1-CYep7SJT.js} +13 -13
  114. package/dist/assets/{NoDataChart-D43mhDJW-DTKvzPZF.js → NoDataChart-Bve5zpXV-BwZ8IP-2.js} +1 -1
  115. package/dist/assets/{NoDataTable-BOfUxs9D-QmqUpJBd.js → NoDataTable-3ROU0Vbp-DDB9N5jJ.js} +1 -1
  116. package/dist/assets/{NotFoundPage-DFioH5Rt-Bajjj6H-.js → NotFoundPage-DAo53P_6-C9hdXZ2m.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-y4g1rAal-C1PlzWDQ.js → NotificationSettingsPage-DcGcigHn-D6yNtF8n.js} +13 -13
  118. package/dist/assets/{NotificationsListConfig-sybPesiv-CumSV_sP.js → NotificationsListConfig-oE-ICX7d-5IgMyIt2.js} +1 -1
  119. package/dist/assets/{NotificationsPage-C88YOjuY-DhlTuVRF.js → NotificationsPage-TCXj6rCg-BAkiHad7.js} +31 -31
  120. package/dist/assets/{OpExByVendorPage-qBWbJhv9-D6-ISC2Q.js → OpExByVendorPage-xWhiJMru-CimTVsCN.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-Dres4Grh-croSXpa_.js → OverlayContainerPage-GWXnlbZH-Ba8WO7ii.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-uiaHrci6-BmjV4SA8.js → PandLWithForecastPage-BamjcoA8-Dqt_Y0_I.js} +8 -8
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BepDUdA0--CI8uZ0q.js → PaymentAccountSetupBillingAddressSection-Byvw69gz-DLG3TH2B.js} +11 -11
  124. package/dist/assets/{PeoplePage-oF6C1uyM-BWPCN8nm.js → PeoplePage-BYeGKWDm-_j7LiItB.js} +20 -20
  125. package/dist/assets/{PortfolioAllocationFormPage-C5O3GLqz-B19kKoCk.js → PortfolioAllocationFormPage-C-l23Cwp-CQhAFF5j.js} +4 -4
  126. package/dist/assets/{PortfolioDetails-BkGNpmoO-kzJ3Imwc.js → PortfolioDetails-BRhzzSFg-_V6-SKu3.js} +31 -31
  127. package/dist/assets/{ProductsCarousel-C_tmo4EA-D4yVhWod.js → ProductsCarousel-CP6ldspb-CSPciYcm.js} +6 -6
  128. package/dist/assets/{PromoBaseCards-Bq5-q2ew-owkf4D4N.js → PromoBaseCards-Jze9Y7gb-CsB7qigX.js} +5 -5
  129. package/dist/assets/{QBOConnectionDialog-BXNWjeYB-CRDesbLh.js → QBOConnectionDialog-9VnW9Bu9-CH9vDAEy.js} +9 -9
  130. package/dist/assets/QBOSetupSection-B1rw0-Q--hYcWWcnn.js +79 -0
  131. package/dist/assets/ReimbursementApprovalRuleDetailPage-DEK0sHby-DxHQ3-r9.js +26 -0
  132. package/dist/assets/{ReimbursementApprovalRulesPage-hjja5JFq-CTbhiO4F.js → ReimbursementApprovalRulesPage-D7dRwcKc-BN8fEREe.js} +8 -8
  133. package/dist/assets/{ReimbursementDetailPage-sXYC_aoR-BRo3-ALl.js → ReimbursementDetailPage-ZwlUAEc8-DNQqyf9h.js} +19 -19
  134. package/dist/assets/{ReimbursementPromoPage-C9zs7VRV-DnF6fzbN.js → ReimbursementPromoPage-CKuYFvqQ-DefJnvBU.js} +24 -24
  135. package/dist/assets/{ReimbursementSetUpPage-Ban56LOC-BrQiTbjv.js → ReimbursementSetUpPage-Rn1i_Dc1-By597Y9p.js} +11 -11
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CsRwI-rl-D4GTWYie.js → ReimbursementsBulkReviewDrawerPage-BwVFxo9s-CrM2jFkj.js} +1 -1
  137. package/dist/assets/{ReloadCard-EBXtqdt5-CAR8znPg.js → ReloadCard-7VJ3paTm-PIZ4RaVw.js} +5 -5
  138. package/dist/assets/{ReportTableViewSelector-Ae5lGopA-CvE-ziP-.js → ReportTableViewSelector-BrPJNFJD-Bwujfsif.js} +10 -10
  139. package/dist/assets/{ReportsPage-Dh3DhbEK-CoCw1phe.js → ReportsPage-CCTvsUrL-BTO019Fz.js} +5 -5
  140. package/dist/assets/{RevenueChart-C5qfXMEg-BwhpmvbH.js → RevenueChart-CCWOE5TQ-DhmIgSkE.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-DjcJd2VM-DAK_gGD6.js → ReviewDetailsPage-Y6gEXgmb-DcY2sw3N.js} +17 -17
  142. package/dist/assets/{ReviewOverlay-Dmrea9EK-D-B16OuG.js → ReviewOverlay-CjSSDflN-KzsiV-Oa.js} +14 -14
  143. package/dist/assets/RoleWithToolTip-CFMnZiem-BIsCVqC3.js +22 -0
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CQGRrdSx-c5adP63r.js → ScheduleDetailsFixedAssetsPage-DVyLY2NJ-LtnowkYW.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-D5OBZ80r-CqH9UyRO.js → ScheduleDetailsPage-Dl76cUvA-CFqi1TDf.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-fgV8zz4I-CXk4n0ng.js → ScheduleSequenceTable-CrxRnZch-BuFVSySr.js} +49 -49
  147. package/dist/assets/{ScreenRoutes-N_UpMNzU.js → ScreenRoutes-uG3kevMC.js} +62 -62
  148. package/dist/assets/{SetUpAccountSection-4-gtB3I4-k7g8HAWY.js → SetUpAccountSection-Cv2os5ln-zptuzOwF.js} +24 -24
  149. package/dist/assets/{SetUpDefaultSection-DSslQOgJ-TSnCtHg5.js → SetUpDefaultSection-BX28nGOx-CTgAzb1p.js} +12 -12
  150. package/dist/assets/{SignIn-CgXxIawW-CGP7Bd8R.js → SignIn-Bu5OrOXS-DkCR4kwg.js} +17 -17
  151. package/dist/assets/{SignInScreen-B7sTBkoH.js → SignInScreen-BtGVE0r_.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-SkhzkIYZ-x5ZKENRb.js → SpendManagementListViewPage-C5e1RRp_-HAlYRuO6.js} +11 -11
  153. package/dist/assets/{SpendManagementPerTabPage-CofY1YYQ-Cjq2YocJ.js → SpendManagementPerTabPage-DZVY7vQ1-BCl0_VO2.js} +55 -55
  154. package/dist/assets/{SpendManagementSection-DbC93chQ-B2MPdvcw.js → SpendManagementSection-BJMJInkt-BUFNWRJA.js} +13 -13
  155. package/dist/assets/{SpendMgmtSetupAccountSection-_8G7bMAw-CDKk9cnv.js → SpendMgmtSetupAccountSection-chezHlCW-DkOog65L.js} +22 -22
  156. package/dist/assets/{StatementItem-7ezfuDl--D0Tjhaxh.js → StatementItem-BFkpLh_o-CquALDsz.js} +5 -5
  157. package/dist/assets/{StatementsPage-C4ziRzkU-BZb9wt_c.js → StatementsPage-DWVI5t34-Cxqi7UEv.js} +6 -6
  158. package/dist/assets/{StatusSwitcher-0rVfFE-a-CrRHYuTc.js → StatusSwitcher-LVFF4Wxb-B0jggpKX.js} +7 -7
  159. package/dist/assets/{SubTabSwitcher-aoWbkCmT-Bl_FPFwI.js → SubTabSwitcher-BCJ6BY1u-f0PPyWdH.js} +1 -1
  160. package/dist/assets/{SummaryCard-6V1G-Yln-C_HcAreF.js → SummaryCard-BauMuQ8s-BNd_V8Lq.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-DjQma5Cr-8a9vcAkZ.js → TaskManagementPage-vrN0Gf0_--prS4OGY.js} +18 -18
  162. package/dist/assets/{TimeRangeSwitcher-DeIRg5zY-woa5YXhO.js → TimeRangeSwitcher-CNA64z6j-Cd26VPvr.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-Cop4G4gx-BkWg2DWR.js → TimeframeSwitcher-C1Yz0y7I-Cy-diIc-.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-C_Ah5N3M-C9t5AFtP.js +31 -0
  165. package/dist/assets/{TopExCard-BKirBv7q-CUq_6F55.js → TopExCard-Jo-Rn1MM-D6E3Hi5w.js} +6 -6
  166. package/dist/assets/{TopExDetailPage-DcVunE8d-qEc0sA6B.js → TopExDetailPage-DDbJXH3w-CFeNp8T_.js} +11 -11
  167. package/dist/assets/{TransactionDetailPage-TJf3D0K6-BOXqbCEf.js → TransactionDetailPage-BuIbGizX-DpKJAZLT.js} +26 -26
  168. package/dist/assets/{TransactionList-fn6VXYIJ-DYk9Fe87.js → TransactionList-CLKRxE0g-BAsmWTvK.js} +4 -4
  169. package/dist/assets/{TransactionListBig-B_hNDFjS-CMjCzS-K.js → TransactionListBig-B5vQkCC2-B8EgQPCY.js} +25 -25
  170. package/dist/assets/{TransactionListPage-BbXZWbie-CDiciUHo.js → TransactionListPage-BqX_rZET-BgbyEEsX.js} +6 -6
  171. package/dist/assets/{TransactionVendorDetailPage-C6qJ5ncL-B1EVzM0Z.js → TransactionVendorDetailPage-DkTOdWyJ-BzkmZPzl.js} +6 -6
  172. package/dist/assets/TransferDrawerPage-BOGBvRan-Bpl8lBev.js +362 -0
  173. package/dist/assets/{TreasuryOverviewPage-DOV8Hanc-B1NNA_6U.js → TreasuryOverviewPage-DyhWQzuM-DsB8K2vJ.js} +53 -53
  174. package/dist/assets/{TreasuryPromoPage-C9O7G72q-DwRfBcK7.js → TreasuryPromoPage-DeahUeak-Bt4dIItF.js} +29 -30
  175. package/dist/assets/TreasurySetupPage-kCSON6p8-BAIMYuS4.js +152 -0
  176. package/dist/assets/{TreasuryStatementsPage-Ts6D6F-l-DoHTZ0q2.js → TreasuryStatementsPage-DjTS6UJU-CcrFtuZr.js} +5 -5
  177. package/dist/assets/{TreasuryTaxLetterPage-CM93_rS4-DP5U7gaM.js → TreasuryTaxLetterPage-B8-Rgr_d-BLPqqsbC.js} +5 -5
  178. package/dist/assets/TreasuryTransferOrReviewPage-CWMEjwJl-CrviYyrM.js +506 -0
  179. package/dist/assets/{TrendChart-BXjPAYgk-Cq_-iR7t.js → TrendChart-DZxa1hWw-B-nNq9QH.js} +5 -5
  180. package/dist/assets/{TrendWithTransactions-BlGX9aVa-CiPHs9MJ.js → TrendWithTransactions-DqF_gmA3-C3cM3seO.js} +8 -8
  181. package/dist/assets/{UncategorizedAccountsMappingPage--PnxDLIj-BIOyaxBg.js → UncategorizedAccountsMappingPage-BTMqGJ-S-Cf591JHO.js} +12 -12
  182. package/dist/assets/{UnitIntegrationPage-D5mzaVVL-BKJ8XltQ.js → UnitIntegrationPage-BypogBLd-BdjVHdC2.js} +4 -4
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-BXS2l5kF-BsMl2eZs.js → UploadAdditionalDocumentOverlay-BtjgWIt2-CJxagUDB.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-jXN-6kcB-BvuovkFO.js → Vendor2FAPopup-Cvht-fPJ-BerAc1Se.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-CHfX_7tk-BOp8BxY6.js → VendorACHDetailsPage-UxL2Rrtg-CYp_Tnh9.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-CZuQaTCe-BpPmRILB.js → VendorDetailPage-D1W5LzEm-BAT5CVI4.js} +13 -13
  187. package/dist/assets/{VendorDomesticWireDetailsPage-dBmyAkGL-62nIhkQn.js → VendorDomesticWireDetailsPage-42tTXqjf-CD4sZQzl.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-C6KWbHaM-DDK7H0rO.js → VendorFiling1099EditablePage-C-s1YZ6j-PSND-gNL.js} +7 -7
  189. package/dist/assets/{VendorFirstReviewPage-DLaCXLH8-BnWjhIdr.js → VendorFirstReviewPage-DNWyzefV-BFUkskK4.js} +30 -30
  190. package/dist/assets/{VendorInternationalWireDetailsPage-DgCH9Rad-CBW8_p_m.js → VendorInternationalWireDetailsPage-BLN_3qXP-DvvGYDz5.js} +10 -10
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CprymE3v-BNa75-ug.js → VendorInternationalWireSwiftDetailsPage-CK3lcupO-2PpWn4mj.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-CpkfwFDJ-BBaBcIhq.js → VendorsAccountsSection-DN_7lQ28-DdMelKjb.js} +15 -15
  193. package/dist/assets/{WarningsDrawerPage-DeqbJ2Le-C-k360lW.js → WarningsDrawerPage-BO2PAioX-BD7wt9-J.js} +12 -12
  194. package/dist/assets/{ZeniAccountDetailPage-kwKoeRAb-DmgmMSld.js → ZeniAccountDetailPage-yp-KTRnk-B3mSE0M7.js} +29 -29
  195. package/dist/assets/{ZeniAccountListViewPage-15LxhIiI-BTGCzvPZ.js → ZeniAccountListViewPage-D5aqQNtX-CPli23fR.js} +19 -19
  196. package/dist/assets/ZeniAccountNavBarPieces-VPw7D7l3-CCxmftfD.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-DvlAb5YA-C_whacZc.js → ZeniAccountPromoPage-wCKqqpXU-0L3bYfPA.js} +33 -33
  198. package/dist/assets/{ZeniAccountSetupPage-BjpvTfF5-D6d34LRw.js → ZeniAccountSetupPage-C9Huhxgd-BF9sZa0S.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-BYJFIZ_X-BFrN8evs.js → ZeniCopyright-DFiO9ffO-Bp-C_pps.js} +1 -1
  200. package/dist/assets/ZeniTransferAmountSlider-CrkvbV6i-BhBxjPo4.js +63 -0
  201. package/dist/assets/{analyticsHelper-BRyA7WLX-DLSkErMx.js → analyticsHelper-CcOQPReQ-DZ5fxxuk.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BwnF2PgM.js → analyticsHelper-zoqip0-C.js} +1 -1
  203. package/dist/assets/{chartTypes-CWEoqL4g-Cw3nMebw.js → chartTypes-COEFDZb5-DucaenQB.js} +1 -1
  204. package/dist/assets/{commonDimensions-UvndzJjv-Blvxf4Xv.js → commonDimensions-CP6T7HqS-BX01Lz5f.js} +1 -1
  205. package/dist/assets/{detailCommon-C3ymS8dg-BGRrtDwy.js → detailCommon-Ce5EinV2-BuHvMRYd.js} +2 -2
  206. package/dist/assets/{downloadPdf-CHwWcCR1-B6-X6iEo.js → downloadPdf-D5vJmVtA--yzU0Cnz.js} +1 -1
  207. package/dist/assets/{index-Dv7T7Q4q.js → index-CapQvjm9.js} +3984 -4129
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-BV9ky97n-DY-sQ7TV.js → mapLoadingInProgressToTreeNode-rI4nf6KS-CNoPmFuv.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-WivyN4Y7-BjYz9kWK.js → mapSectionWithAcOnlyToTreeNode-CQQ7dl1d-DPU0sPT_.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-AXNRptLX-By1nS5M2.js → mapSpacerToTreeNode-Br4381dY-Ct29eL9a.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-JTl35sFx-C5GE5hSl.js → mapTimeframeBalancesToTreeNode-B-Zn7TpW-SMvrvpz_.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-DUac2vK4-BY8WFMHX.js → mapTimeframeBalancesToTreeNode-CFc2Dxqu-D1jIXUn_.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DtkeOXnf-CJT3cdBk.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DaXzy5qa-BOsBu2E5.js} +1 -1
  214. package/dist/assets/{play-icon-HSIOzxQm-CqRvnI3L.js → play-icon-nZkbdoFU-C5Wh5Bql.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-CkjYSysY-CvnUvEoC.js → toCOABalancesWithID-COQYDD-b-BQqZQYQf.js} +1 -1
  216. package/dist/assets/{toChartData-BhKlnyso-lj3HQabg.js → toChartData-Djv4ERSl-DLhR9JKK.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-yIAXBrrM-3MHYMecV.js → treasuryColorHelper-D8HHUK60-Cfq8TI-i.js} +1 -1
  218. package/dist/assets/{uploadAttachment-CWaYLqwb-CVRH_3bI.js → uploadAttachment-BLy0prl2-B3IgXH7c.js} +32 -32
  219. package/dist/assets/{uploadReceipts-C6Ld_WLK-Dy2wrDVr.js → uploadReceipts-D80JLNY4-DWphWqez.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/ACHDetailsPage-DVi_fb5U-CGuPkBRY.js +0 -21
  223. package/dist/assets/BankAccountWarningSection--b6oxmO3-DKlzx_zh.js +0 -51
  224. package/dist/assets/BusinessVerificationPage-_E3jrLwS-B3aLGpDJ.js +0 -140
  225. package/dist/assets/ChargeCardPromoPage-2OheDHbA-BqDNYADI.js +0 -222
  226. package/dist/assets/CheckDepositDrawerPage-DEFEMwuI-CRMRTiml.js +0 -206
  227. package/dist/assets/CompanyOfficerDetailsSection-BEgNqg-b-CVHLWRNF.js +0 -260
  228. package/dist/assets/CompleteProfile-mCKLQjGe-CilcRs-S.js +0 -52
  229. package/dist/assets/CustomerOnboardingContainerPage-D6yeERaX-DZtJ8AkY.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-DUwVnkwy-BEJAgywZ.js +0 -66
  231. package/dist/assets/EditPeoplePage-CtTYiqg3-BeUkYPWG.js +0 -55
  232. package/dist/assets/FeaturePreviewPage-CtK7L5vk-BUfvduBQ.js +0 -11
  233. package/dist/assets/InsightsCardStack-BbMJEahw-6ShmM6UA.js +0 -79
  234. package/dist/assets/InsightsSection-CYkuQHcj-Bf_S7jeP.js +0 -27
  235. package/dist/assets/InvitePeoplePage-r6PLBiEv-C_hZgPnI.js +0 -12
  236. package/dist/assets/LabeledDocumentField-BEyArLK3-yHmAGez6.js +0 -41
  237. package/dist/assets/MagicLinkSuccessPage-CX3bJ5_B-DBbTzFPV.js +0 -31
  238. package/dist/assets/MailingDetailsSection--zHyCquq-Crj-CQ_B.js +0 -21
  239. package/dist/assets/NavBarWithPicker-Cvi89wZV-qZCgoS6m.js +0 -30
  240. package/dist/assets/NavigationDots-1wpj484Z-CYA5PZFB.js +0 -15
  241. package/dist/assets/QBOSetupSection-D3sIWrh1-C8JJ9OyV.js +0 -79
  242. package/dist/assets/ReimbursementApprovalRuleDetailPage-ClgCUbVP-CI7DHlNJ.js +0 -26
  243. package/dist/assets/RoleWithToolTip-CqeM8Bh0-CP3lspGL.js +0 -22
  244. package/dist/assets/TimeframeSwitcherWithToggle-BhoniKOB-Cn9FIwDc.js +0 -31
  245. package/dist/assets/TransferDrawerPage-BtYoqKi--BpRIa0QV.js +0 -362
  246. package/dist/assets/TreasurySetupPage-CNzkkEjw-BgY_thiG.js +0 -146
  247. package/dist/assets/TreasuryTransferOrReviewPage-C8-tbCUQ-Ckqtt7Wk.js +0 -506
  248. package/dist/assets/VerifyDevice-CSIkEBig-Ddd729RU.js +0 -67
  249. package/dist/assets/ZeniAccountNavBarPieces-C0pq95hS-PD9j7rFy.js +0 -14
  250. package/dist/assets/ZeniTransferAmountSlider-Did4Chpj-DUNIonGt.js +0 -63
@@ -0,0 +1,232 @@
1
+ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP as _e,ft as Ce,o as a,fC as bl,cf as We,c6 as ee,c8 as ce,cc as Me,l as Le,cy as xl,cw as wl,ca as Ue,c9 as De,fD as Te,fE as jl,fb as vl,fa as ke,cd as ge,ce as $l,g as Ne,e_ as He,Q as Ge,b4 as Ye,eY as Ze,e as Pe,fs as Qe,f as ye,p as Il,b1 as Sl,q as ae,dg as Ol,fF as Ll,m as Dl,fG as Fl,b2 as be,v as _l,cq as Cl,b0 as Nl,a$ as Pl}from"./index-CapQvjm9.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{W as Fe}from"./LabeledAddressValueField-B5z2zp_k-DSta9Thy.js";import{D as El}from"./LabeledCreatableSingleSelectField-CP-IuKrc-DU5OIEj-.js";import{Y as Ie}from"./LabeledDocumentField-DyMGgcCu-CO5ZlVGH.js";import{P as Xe}from"./DocumentSecurityBanner-CQSsX1R1-CiqTL3oT.js";const Je=({text:e})=>l.jsx(Tl,{children:l.jsx(Vl,{children:e})}),Vl=t(Fl)`
2
+ display: flex;
3
+ align-items: center;
4
+ color: ${e=>e.theme.colors.hero};
5
+ padding-right: ${a.sp2};
6
+ `,Tl=t.div`
7
+ display: flex;
8
+ align-items: flex-end;
9
+ margin-left: ${a.sp2};
10
+ margin-top: ${a.sp1};
11
+ `,le={labelWidth:new C(115,145,155),mediumLabelWidth:new C(140,160,170),largeLabelWidth:new C(150,210,244),largeLabelDocumentWidth:new C(150,210,252),paddingBottom:new C(ae[3],ae[2]),containerRowGap:new C(12,ae[3])},kl={title:new Ge("standardMedium","largeMedium")},Al=ue.getLocalizedStrings(),{dateFormat:{visual:zl},commonSetUp:Rl,companyPassport:Bl,common:{documents:Se,optional:ql}}=Al,o=Rl.businessVerification,Wl=o.sourceOfFundOptions,Ml=M.forwardRef(({fileProps:e,productType:p,allIndustries:u,companyDetails:m,connectedAccountProvider:N,businessVerificationProps:g,isDisabled:n,style:U,sectionId:h,showInfoTooltip:oe=!0,isCompleted:te=!1,showCompletedIcon:ie=!1,showTreasuryFields:H=!1,sectionHeader:G,optionalFields:s=[],onCompanyAddressClick:Y,onRegisteredAddressClick:V},re)=>{const f=ze(),D=le.labelWidth.value(f),F=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),z=le.largeLabelDocumentWidth.value(f),y=o.productType[p],Z=m?.companyFiles.find(d=>d.documentType==="certificate_of_incorporation"),Q=m?.companyFiles.find(d=>d.documentType==="tax_ein"),c=m?.companyFiles.find(d=>d.documentType==="company_formation_document"),j=m?.companyDescription,R=m?.companyLegalName,se=m?.website,q=m?.typeOfIncorporation,X=m?.incDate,L=m?.companyIndustry,me=m?.phone,J=m?.taxIdOrEIN,K=m?.primaryContactLocalData,B=m?.deleteFileStatusById??{},ne=m?.updateFileStatusById??{},xe=m?.addressStatus?.addressToCreate,W=m?.registeredAddressStatus?.addressToCreate,[P,x]=M.useState(!1),[S,T]=M.useState(!1),_=d=>u.find(je=>je.code===d)?.name??d,we=d=>Wl[d]??d;return l.jsxs(Ul,{style:U,ref:re,windowSize:f,children:[l.jsx(Hl,{children:l.jsxs(ea,{children:[l.jsxs(Yl,{children:[ie===!0?l.jsx(Zl,{children:te?l.jsx(Ql,{}):l.jsx(Xl,{})}):null,l.jsx(Gl,{windowSize:f,children:G??o.confirmCompanyDetails})]}),oe?l.jsx(Jl,{children:l.jsx(Be,{variant:"small-description",display:"flex",maxWidth:"280px",data:o.confirmCompanyDetailsTooltip,placement:f==="small"||p==="onboarding"?"bottom":"right",children:l.jsx(Kl,{})})}):null,p==="onboarding"&&G!=null?l.jsx(Je,{text:ql}):null,g?.companyVerificationStatus!=null?l.jsx(aa,{tagTitle:g.companyVerificationStatus.name,textColor:qe(g.companyVerificationStatus.code),showLoader:g?.isRefreshingViewInBackground}):null]})}),l.jsxs(la,{children:[l.jsx(Xe,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyLegalNameLabel,width:b},text:{type:"text",name:v(h,"companyLegalName"),placeholder:o.companyLegalNamePlaceholder,defaultValue:R,options:{required:n==null&&s.includes("companyLegalName")===!1}},additionalInfoLabel:o.companyLegalNameError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyDescriptionLabel,width:F},text:{type:"text",name:v(h,"companyDescription"),placeholder:o.addProductPlaceholder,defaultValue:j,options:{required:n==null&&s.includes("companyDescription")===!1}},additionalInfoLabel:o.companyDescriptionError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Fe,{isDisabled:n,label:{label:o.companyAddressLabel,width:F},addressValueField:{name:v(h,"companyAddress"),placeholder:o.companyAddressPlaceholder,defaultValue:xe,registerOptions:{validate:d=>s.includes("companyAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{Y?.("company_address")}},additionalInfoLabel:o.companyAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx($,{}),l.jsx(Fe,{isDisabled:n,label:{label:o.registeredAddressLabel,width:F},addressValueField:{name:v(h,"registeredAddress"),placeholder:o.registeredAddressPlaceholder,defaultValue:W,registerOptions:{validate:d=>s.includes("registeredAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{V?.("company_registered_address")}},additionalInfoLabel:o.registeredAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyWebsiteLabel,width:D},text:{type:"url",name:v(h,"companyWebsite"),placeholder:o.companyWebsitePlaceholder,defaultValue:se?.toString()??"",options:{required:n==null&&s.includes("companyWebsite")===!1}},additionalInfoLabel:o.companyWebsiteError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(De,{label:{label:o.companyIndustryLabel,width:D},singleSelectField:{singleSelect:{name:v(h,"companyIndustry"),placeholder:o.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:_,isDisabled:n,showTickMark:!1},defaultValue:{selectedOption:L,allOptions:u?.map(d=>d.code)??[]},registerOptions:{required:n==null&&s.includes("companyIndustry")===!1,validate:d=>s.includes("companyIndustry")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.companyIndustryError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(El,{label:{label:o.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:v(h,"typeOfIncorporation"),placeholder:o.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:q,allOptions:Bl.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&N==="unit",validate:d=>s.includes("typeOfIncorporation")===!1?!(n==null&&!d?.selectedOption):!0}},errorInfoLabel:o.companyTypeOfIncorporationError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Me,{isDisabled:n,label:{label:o.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(f)},dateField:{name:v(h,"incDate"),placeholder:o.companyIncDatePlaceholder,defaultValue:X,dateFormat:zl.defaultInput,maxDate:Le.dateNow(),minDate:Le.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:n==null&&s.includes("incDate")===!1}},additionalInfoLabel:o.companyIncDateError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Ue,{isDisabled:n,label:{label:o.companyPhoneLabel,width:D},text:{name:v(h,"companyPhone"),placeholder:ce(o.companyPhoneLabel),defaultValue:me,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:o.companyPhoneError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(We,{isDisabled:n,label:{label:o.companyPrimaryContactNameLabel,width:b},nameField:{name:v(h,"primaryContactName"),placeHolder:{firstName:o.firstNamePlaceholder,lastName:o.lastNamePlaceholder,name:o.namePlaceholder},defaultValue:{firstName:K?.firstName??"",lastName:K?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:d=>!!d||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:o.companyPrimaryContactNameError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:v(h,"primaryContactEmail"),placeholder:o.companyPrimaryContactEmailPlaceholder,defaultValue:K?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:o.companyPrimaryContactEmailError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyTaxIdLabel,width:D},text:{type:"text",name:v(h,"companyTaxId"),placeholder:o.companyTaxIdPlaceholder,defaultValue:J,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:$l},autoComplete:"new-password"},additionalInfoLabel:o.companyTaxIdError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Ie,{name:v(h,"certificateOfIncorporation"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.certificateOfIncorporation,width:z},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:Z,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("certificateOfIncorporation")===!1&&N==="unit"},additionalInfoLabel:o.certOfIncopDocumentError.replace("_product_type_",y),hasError:P,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>x(d)}),P||!(n!=null||Z!=null)?l.jsx(Oe,{windowSize:f,isError:P,children:Se.formatDocumentText10MB}):null,l.jsx($,{}),l.jsx(Ie,{name:v(h,"ein"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.einDocument,width:z},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:Q,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("ein")===!1},additionalInfoLabel:o.einDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||Q!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null,l.jsx($,{}),H===!0?l.jsxs(l.Fragment,{children:[l.jsx(De,{label:{label:o.sourceOfFundsLabel,width:D},singleSelectField:{singleSelect:{name:v(h,"sourceOfFunds"),placeholder:o.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:we,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:m?.sourceOfFunds,allOptions:Object.keys(o.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:d=>s.includes("sourceOfFunds")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.sourceOfFundsError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Ie,{name:v(h,"formationDocument"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.formationDocumentLabel,width:z},filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},file:c,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("formationDocument")===!1},additionalInfoLabel:o.formationDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||c!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null]}):null]})]})});Ml.displayName="Company Details Section";const v=(e,p)=>`${e}.${p}`,Ul=t.div`
12
+ display: flex;
13
+ flex-direction: column;
14
+ row-gap: ${e=>le.containerRowGap.valuePx(e.windowSize)};
15
+ `,Hl=t.div`
16
+ display: flex;
17
+ justify-content: space-between;
18
+ `,Oe=t(Dl)`
19
+ padding: ${a.sp1} ${a.sp4};
20
+ background: ${e=>e.theme.colors.grey4};
21
+ border-radius: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp2};
22
+ text-align: ${e=>e.windowSize==="small"?"initial":"right"};
23
+ color: ${e=>e.isError?Ne.important:e.theme.colors.grey1};
24
+ `,Gl=t.div`
25
+ ${e=>`${kl.title.style(e.windowSize)}`};
26
+ display: flex;
27
+ align-items: center;
28
+ color: ${e=>e.theme.colors.primary};
29
+ padding-right: ${a.sp2};
30
+ `,Yl=t.div`
31
+ display: flex;
32
+ align-items: center;
33
+ `,Zl=t.div`
34
+ margin-right: ${a.sp2};
35
+ `,Ql=t(He)`
36
+ width: ${a.sp3};
37
+ height: ${a.sp3};
38
+ color: ${Ne.success};
39
+ `,Xl=t.div`
40
+ height: 14px;
41
+ width: 14px;
42
+ border: 1px solid ${e=>e.theme.colors.primary};
43
+ border-radius: 50%;
44
+ `,Jl=t.div`
45
+ display: flex;
46
+ color: ${e=>e.theme.colors.hero};
47
+ &:hover {
48
+ color: ${e=>e.theme.colors.primary};
49
+ }
50
+ `,Kl=t(Ye)`
51
+ width: ${a.sp3};
52
+ height: ${a.sp3};
53
+ `,ea=t.div`
54
+ display: flex;
55
+ align-items: center;
56
+ `,la=t.div`
57
+ display: flex;
58
+ flex-direction: column;
59
+ background-color: ${e=>e.theme.colors.grey5};
60
+ border: 1px solid ${e=>e.theme.colors.grey3};
61
+ box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
62
+ border-radius: ${a.sp2};
63
+ `,$=t.div`
64
+ display: flex;
65
+ flex: 1;
66
+ background-color: ${e=>e.theme.colors.grey3};
67
+ min-height: 1px;
68
+ max-height: 1px;
69
+ `,aa=t(Ze)`
70
+ width: max-content;
71
+ margin-left: ${a.sp3};
72
+ `,oa=t.div`
73
+ height: ${a.sp4};
74
+ display: flex;
75
+ align-items: center;
76
+ justify-content: flex-end;
77
+ `,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:N,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:U,backgroundColor:h,titleTextAlignment:oe,selectedOptionColor:te,customStyleConfig:ie}={},customization:{placeholderLabel:H}={},showAddUser:G=!0}){const s=Re(),[Y,V]=M.useState(!1),re=ta(e).sort((c,j)=>c.label.localeCompare(j.label)),f=u!=null?ia(u):void 0,D=N??s.colors.grey5,F=h??s.colors.grey5,b=g??s.colors.grey3,z=n??ye.smallRegular.cssObject,y=U??z,Z={control:(c,j)=>({...c,border:0,height:"100%",backgroundColor:F,fill:j.selectProps.menuIsOpen===!0?s.colors.primary:s.colors.grey1,boxShadow:F,">div:last-child":{color:Y?s.colors.primary:s.colors.grey1},":active":{backgroundColor:F},":hover":{fill:s.colors.primary,">div:last-child":{color:s.colors.primary}},minHeight:"auto",cursor:"pointer",flexDirection:"column",">div>div>svg":{color:s.colors.grey1,">path":{color:s.colors.grey5,fill:"currentcolor"}}}),container:c=>({...c,backgroundColor:F,height:"100%"}),singleValue:c=>({...c,margin:0,minWidth:void 0,backgroundColor:void 0,">div":{borderRadius:0,padding:a.sp0,borderLeftStyle:"none",borderWidth:1,borderColor:s.colors.grey1,color:"unset"},">div>div>div>div:last-child":{display:"block",...ye.standardRegular.cssObject}}),valueContainer:c=>({...c,maxWidth:"100%",cursor:"pointer",height:"100%",...y,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:oe??"flex-start",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",">div":{width:"inherit"}}),menu:(c,j)=>({...c,backgroundColor:D,borderRadius:ae[1],boxShadow:`${a.sp0} 2px ${a.sp2} ${s.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:3,width:236,margin:`6px ${a.sp0}`,right:"-11%",">div":{flexDirection:"column",maxHeight:200,overflowY:"auto",borderRadius:a.sp1,padding:`${a.sp1} ${a.sp0}`,">div":{width:"-webkit-fill-available"}},...ie?.menu?.(c,j)}),menuList:c=>({...c,borderRadius:ae[1]}),placeholder:(c,j)=>({...c,margin:0,width:"100%",color:j.isFocused?s.colors.primary:"currentColor",paddingRight:a.sp2,...ye.standardRegular.cssObject,">div>div>svg>circle":{fill:s.colors.grey1}}),noOptionsMessage:c=>({...c,...ye.smallRegular.cssObject,padding:`10px ${a.sp3} 9px ${a.sp3}`,color:s.colors.hero}),option:(c,{isDisabled:j,isSelected:R,isFocused:se})=>({...c,...z,color:R?te??s.colors.champion:s.colors.hero,backgroundColor:R?b:se?s.colors.background:D,cursor:j?"not-allowed":R?"default":"pointer","svg:nth-of-type(2)":{display:"none"},":hover":{backgroundColor:s.colors.background,color:s.colors.primary},"& label":{paddingRight:"10px",cursor:j?"not-allowed":R?"inherit":"pointer"},">div>div>div:first-of-type":{display:"flex"}}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({}),indicatorsContainer:()=>({height:"100%",display:"flex",alignItems:"center"})},Q=({children:c,...j})=>l.jsxs(be.ValueContainer,{...j,children:[c,G===!0?l.jsxs(va,{hasSelectedUser:!!u,onClick:()=>{p(void 0),V(!1)},children:[l.jsx(ua,{}),l.jsx("div",{children:H??"Add User"})]}):null]});return l.jsx(Il,{onClickAway:()=>{V(!1)},children:l.jsx(oa,{children:l.jsx(Sl,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:Y,menuShouldScrollIntoView:!1,defaultValue:f,value:f,noOptionsMessage:()=>ue.getLocalizedStrings().cockpit.management.noPerson,onInputChange:c=>{c!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx(na,{children:l.jsx("div",{children:H??"Select..."})}),components:{Option:ya,DropdownIndicator:$a,IndicatorSeparator:Ia,SingleValue:wa,ValueContainer:ja,MenuList:Q},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:Z,options:re,isDisabled:m,onChange:c=>{p(c),V(!1)},isClearable:!1,isSearchable:!1},Ol())})})}const sa=t.div``,na=t.div`
78
+ display: flex;
79
+ align-items: center;
80
+ color: ${e=>e.theme.colors.grey1};
81
+ fill: ${e=>e.theme.colors.grey1};
82
+ `,da=t.div`
83
+ display: flex;
84
+ align-items: center;
85
+ margin-right: ${a.sp2};
86
+ `,ca=t(Qe)`
87
+ width: ${a.sp4};
88
+ height: ${a.sp4};
89
+ color: ${e=>e.theme.colors.hero};
90
+ `,pa=t.div`
91
+ display: flex;
92
+ flex-direction: row;
93
+ align-items: center;
94
+ justify-content: space-between;
95
+ `,ua=t(Cl)`
96
+ height: ${a.sp4};
97
+ width: ${a.sp4};
98
+ margin-right: ${a.sp2};
99
+ color: inherit;
100
+ `,ma=t(Nl)`
101
+ height: 12px;
102
+ width: 12px;
103
+ color: ${e=>e.theme.colors.hero};
104
+ `,fa=t.div``,ha=t(Pl)`
105
+ width: 12px;
106
+ height: 12px;
107
+ color: ${e=>e.theme.colors.primary};
108
+ `,Ke=t.img`
109
+ height: ${a.sp4};
110
+ width: ${a.sp4};
111
+ border-radius: 50%;
112
+ justify-content: center;
113
+ `,ya=e=>{const{data:p,options:u,isSelected:m}=e,N=u.findIndex(g=>g.value===p.value);return l.jsx(sa,{children:l.jsx(be.Option,{...e,children:l.jsxs(pa,{children:[l.jsxs(ga,{children:[l.jsx(ba,{children:p?.photo!==void 0?l.jsx(Ke,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=_e},loading:"lazy"}):l.jsx(Ce,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N})}),l.jsx("label",{children:e.label})]}),!!m&&l.jsx(fa,{children:l.jsx(ha,{})})]})})})},ga=t.div`
114
+ width: 100%;
115
+ display: flex;
116
+ align-items: center;
117
+ `,ba=t.div`
118
+ display: flex;
119
+ align-items: center;
120
+ margin-right: ${a.sp2};
121
+ `,xa=t(Pe)`
122
+ padding: ${a.sp0} ${a.sp2};
123
+ white-space: nowrap;
124
+ overflow: hidden;
125
+ text-overflow: ellipsis;
126
+ `,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,N=m.findIndex(g=>g.value===p.value);return l.jsx(be.MultiValueLabel,{...u,children:l.jsxs(Sa,{children:[p?.photo!==void 0?l.jsx(Ke,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=_e},loading:"lazy"}):l.jsx(Ce,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N}),l.jsx(xa,{children:e})]})})},ja=({children:e,...p})=>l.jsxs(be.ValueContainer,{...p,children:[p.selectProps.value==null?l.jsx(da,{children:l.jsx(ca,{})}):null,e]}),va=t(_l)`
127
+ color: ${e=>e.hasSelectedUser?e.theme.colors.hero:e.theme.colors.primary};
128
+ display: flex;
129
+ padding: ${a.sp2} 12px;
130
+ fill: ${e=>e.hasSelectedUser?e.theme.colors.hero:e.theme.colors.primary};
131
+ background: ${e=>e.hasSelectedUser?e.theme.colors.grey5:e.theme.colors.background};
132
+ cursor: ${e=>e.hasSelectedUser?"pointer":"default"};
133
+ &:hover {
134
+ color: ${e=>e.theme.colors.primary};
135
+ background: ${e=>e.theme.colors.background};
136
+ }
137
+ `,$a=()=>l.jsx(ma,{}),Ia=()=>null,Sa=t.div`
138
+ display: flex;
139
+ flex-direction: row;
140
+ cursor: pointer;
141
+ `,pe={width:new C(343,580,726),labelWidth:new C(115,145,155),largeLabelWidth:new C(160,240,240),veryLargeLabelWidth:new C(150,240,245),containerRowGap:new C(12,ae[3])},Oa={title:new Ge("standardMedium","largeMedium")};function Xa({companyOfficerData:e,isDisabled:p,allOfficers:u,allNationalityCountries:m,isRefreshingViewInBackground:N,connectedAccountProvider:g,style:n,isPopupOpen:U,sectionId:h,filesEndPoint:oe,authParams:te,showInfoTooltip:ie=!0,isCompleted:H=!1,showCompletedIcon:G=!1,showOfficerSelect:s=!0,showVerificationTag:Y=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:f,companyTitles:D,sectionHeader:F,optionalFields:b=[],onOfficerAddressClick:z,onDeleteFile:y,onEditFileName:Z,updateFilesEntity:Q,openPopup:c,onGetOtp:j,onVerifyOtp:R,onResendOtp:se,verifiedPhoneNumber:q,onPhoneVerified:X}){const L=ze(),me=Re(),{getValues:J,setValue:K}=yl(),B=u.length>0,[ne,xe]=M.useState(!1),W=B?Object.values(e).findIndex(i=>i?.isSelectedForVerification===!0):0,P=`Officer_${W<0?1:W+1}`;M.useEffect(()=>{X!=null&&e[P]?.phone!=null&&e[P].isPhoneVerified===!0&&X(e[P]?.phone??"")},[]);const x=`${h}.${W}`,S=e[P],T=V?S?.treasuryUserVerificationStatus:S?.userVerificationStatus,_=u.find(i=>i.userId===S?.userId),we=u.sort((i,O)=>(i.firstName||i.lastName?`${i.firstName} ${i.lastName}`:i.email).localeCompare(O.firstName||O.lastName?`${O.firstName} ${O.lastName}`:O.email)),d=B?we.findIndex(i=>i.userId===S?.userId):0,je=e[P]?.deleteFileStatusById??{},el=e[P]?.updateFileStatusById??{},Ee=J(`${x}.selectDocument.selectDocumentType`),{common:{optional:ll},commonSetUp:{businessVerification:r},dateFormat:{visual:al},cockpit:ol}=ue.getLocalizedStrings(),k=f==="onboarding"?r.productType.business_verification:r.productType[f],de=pe.labelWidth.value(L),tl=pe.veryLargeLabelWidth.value(L),fe=pe.largeLabelWidth.value(L),il=L==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,rl=L==="small"?r.protectedSsnTextSmall:r.protectedSsnText,I=T?.code==="pending_review"||T?.code==="verified"?"readonly":p,sl=I!=null||!B||T?.code==="require_info",nl=_?.firstName||_?.lastName?`${_?.firstName} ${_?.lastName}`:r.addOfficer,dl=S?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,cl={menu:()=>({right:"initial",left:0})},pl=i=>D.find(O=>O.code===i)?.name??i,ve=S?.otpverificationStatus?.fetchState,Ve=gl(ve);M.useEffect(()=>{X!=null&&Ve==="In-Progress"&&ve==="Completed"&&X(J(`${x}.phone`))},[Ve,ve]);const ul=(i,O)=>{R(i,O)},ml=()=>q==null||q===""?!1:J(`${x}.phone`)===q,fl=()=>{const i=J(`${x}.phone`);return i!=null&&!Ll(i)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",k)};return l.jsxs(La,{style:n,windowSize:L,children:[l.jsxs(Da,{windowSize:L,isOverlay:re,children:[l.jsxs(Aa,{children:[l.jsxs(_a,{children:[G===!0?l.jsx(Ca,{children:H?l.jsx(Na,{}):l.jsx(Pa,{})}):null,l.jsx(Fa,{windowSize:L,children:F??dl})]}),ie?l.jsx(Ea,{children:l.jsx(Be,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:L==="small"||f==="onboarding"?"bottom":"right",children:l.jsx(Va,{})})}):null,f==="onboarding"&&F!=null?l.jsx(Je,{text:ll}):null,T!=null&&Y?l.jsx(Ba,{tagTitle:T?.name,textColor:qe(T.code),showLoader:N}):null]}),s?sl?B?l.jsxs(Ra,{children:[_?.photo!==void 0?l.jsx(Ta,{src:_?.photo.href,alt:ol.userProfileAltText,onError:({currentTarget:i})=>{i.onerror=null,i.src=_e},loading:"lazy"}):l.jsx(Ce,{firstName:_?.firstName??"",lastName:_?.lastName??"",size:`${a.sp4}`,index:d}),l.jsx(Ae,{children:`${nl}`})]}):l.jsxs(qa,{children:[l.jsx(Wa,{children:l.jsx(Ma,{})}),l.jsx(Ae,{children:`${r.addOfficer}`})]}):l.jsx(ka,{children:l.jsx(ra,{selectedUser:_,allUsers:u,onSelectedUserChanged:i=>{const O=Object.values(e).findIndex(he=>he?.userId===i?.userId);K(`${x}.isSelectedForVerification`,!1),K(`${h}.${O}.isSelectedForVerification`,!0)},customization:{placeholderLabel:r.addOfficer},showAddUser:u.length<=9,pickerStyles:{backgroundColor:me.colors.grey5,selectedOptionBackgroundColor:me.colors.background,customStyleConfig:L==="small"?cl:void 0}})}):null]}),Object.values(e).map((i,O)=>{if(W!==O)return null;const he=bl(i?.documentTypeSelectedForVerification),$e=i?.userFiles??[],hl=()=>q!=""&&f==="onboarding"?ml():i?.isPhoneVerified??!1;return l.jsxs(za,{children:[l.jsx(Xe,{}),l.jsx(We,{isDisabled:I,label:{label:r.name,width:de},nameField:{name:E(x,"name"),placeHolder:{firstName:r.firstNamePlaceholder,lastName:r.lastNamePlaceholder,name:r.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},registerOptions:{required:b.includes("name")===!1,validate:w=>b.includes("name")===!1?!!w:!0},showFullNameError:!0},errorInfoLabel:r.nameError.replace("_product_type_",k)}),l.jsx(A,{}),i?.userId==null?l.jsxs(l.Fragment,{children:[l.jsx(ee,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.email,width:de},text:{type:"email",name:E(x,"email"),placeholder:ce(r.email),defaultValue:i?.email,options:{required:b.includes("email")===!1}},additionalInfoLabel:r.emailDescription.replace("_product_type_",k)}),l.jsx(A,{})]}):null,l.jsx(Me,{isDisabled:I,label:{label:r.dobLabel,width:fe},dateField:{name:E(x,"dob"),type:"text",defaultValue:i?.birthday,placeholder:ce(r.dobLabel),dateFormat:al.defaultInput,maxDate:Le.dateNow().subtract(g==="unit"?18:13,"years"),registerOptions:{required:b.includes("dob")===!1},autoComplete:"off"},additionalInfoLabel:r.dobDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(xl,{isDisabled:I,label:{label:r.nationalityLabel,width:de},showAdditionalInfoLabel:f!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",k),countrySelectField:{name:E(x,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:wl(i?.nationalityCountryCode,m.map(w=>w.countryCode)),registerOptions:{validate:w=>!!(w!=null&&w.selectedOption)}}}),l.jsx(A,{}),l.jsx(Fe,{isDisabled:I,label:{label:r.address,width:de},addressValueField:{name:E(x,"officerAddress"),placeholder:ce(r.address),defaultValue:i?.addressStatus?.addressToCreate,registerOptions:{validate:w=>b.includes("officerAddress")===!1?!(I==null&&w==null):!0},onClick:()=>{z(i?.officerType.toLocaleLowerCase().concat("_address"))}},additionalInfoLabel:f==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",k),showAdditionalInfoLabel:!0}),l.jsx(A,{}),l.jsx(Ue,{isDisabled:I,label:{label:r.phone,width:de},text:{name:E(x,"phone"),placeholder:ce(r.phone),defaultValue:i?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:fl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:U,phoneVerifyButtonProps:{otpChallenge:i?.otpChallenge,showOtpButton:g==="unit",onGetOtp:j,onVerifyOtp:ul,onResendOtp:se,isPhoneVerified:hl(),phoneVerificationStatus:i?.otpverificationStatus,getOtpStatus:i?.sendOtpStatus,openPopup:c,verifiedPhoneNumber:q,focusNotRequired:!0}}),l.jsx(A,{}),l.jsx(De,{label:{label:r.companyRoleLabel,width:fe},singleSelectField:{singleSelect:{name:E(x,"role"),placeholder:il,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:pl,isDisabled:I,showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:i?.titleAtCompany,allOptions:D?.map(w=>w.code)??[]},registerOptions:{required:b.includes("role")===!1,validate:w=>b.includes("role")===!1?!(I==null&&!w?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:r.companyRoleDescription.replace("_product_type_",k)}),l.jsx(A,{}),l.jsx(Te,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:fe},formattedTextField:{type:"number",name:E(x,"ownership"),defaultValue:i?.ownershipInCompany,placeholder:r.companyOwnershipPlaceholder,returnValueType:"floatValue",suffix:"%",allowNegative:!1,isNumericString:!1,registerOptions:{required:b.includes("ownership")===!1,validate:w=>w!=null?w>0&&w<=100:!0,max:100},autoComplete:"new-password"},additionalInfoLabel:f==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(A,{}),l.jsx(Te,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:fe},formattedTextField:{type:"text",name:E(x,"ssn"),placeholder:r.addSSNPlaceholder,defaultValue:i?.ssn,format:"###-##-####",registerOptions:{required:b.includes("ssn")===!1,pattern:jl},autoComplete:"new-password",maxLength:9,allowLeadingZeros:!0},protectedInfoText:I!=null&&i?.ssn?rl:void 0,additionalInfoLabel:r.ssnDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(vl,{name:E(x,"selectDocument"),officerIndex:W,sizeLimit:ge,filesEndPoint:oe,authParams:te,onEditFileName:Z,acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],label:{width:tl},allFiles:$e,updateFilesEntity:Q,deleteFileStatusById:je,updateFileStatusById:el,onDeleteFile:y,isDisabled:I,menuPlacement:f==="onboarding"&&he==null?"top":"auto",defaultValue:{defaultSelectDocumentType:he,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:ke(!0,$e,Ee),back:ke(!1,$e,Ee)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:ne,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",k),onFileSizeError:w=>xe(w),isPopupOpen:U,openPopup:c,companyOfficerName:{firstName:i?.firstName??"",lastName:i?.lastName??""}})]},x)})]})}const E=(e,p)=>`${e}.${p}`,La=t.div`
142
+ display: flex;
143
+ flex-direction: column;
144
+ row-gap: ${e=>pe.containerRowGap.valuePx(e.windowSize)};
145
+ `,Da=t.div`
146
+ width: ${e=>pe.width.valuePx(e.windowSize)};
147
+ display: flex;
148
+ justify-content: space-between;
149
+ flex-wrap: wrap;
150
+ row-gap: ${a.sp2};
151
+ padding-top: ${e=>e.isOverlay?a.sp3:a.sp0};
152
+ `,Fa=t.div`
153
+ display: flex;
154
+ align-items: center;
155
+ color: ${e=>e.theme.colors.primary};
156
+ ${e=>`${Oa.title.style(e.windowSize)}`};
157
+ padding-right: ${a.sp1};
158
+ `,_a=t.div`
159
+ display: flex;
160
+ align-items: center;
161
+ `,Ca=t.div`
162
+ margin-right: ${a.sp2};
163
+ `,Na=t(He)`
164
+ width: ${a.sp3};
165
+ height: ${a.sp3};
166
+ color: ${Ne.success};
167
+ `,Pa=t.div`
168
+ height: 14px;
169
+ width: 14px;
170
+ border: 1px solid ${e=>e.theme.colors.primary};
171
+ border-radius: 50%;
172
+ `,Ea=t.div`
173
+ display: flex;
174
+ color: ${e=>e.theme.colors.hero};
175
+ &:hover {
176
+ color: ${e=>e.theme.colors.primary};
177
+ }
178
+ `,Va=t(Ye)`
179
+ width: ${a.sp3};
180
+ height: ${a.sp3};
181
+ `,Ta=t.img`
182
+ height: ${a.sp4};
183
+ width: ${a.sp4};
184
+ border-radius: 50%;
185
+ justify-content: center;
186
+ `,ka=t.div`
187
+ margin-right: 14px;
188
+ color: ${e=>e.theme.colors.primary};
189
+ `,Aa=t.div`
190
+ display: flex;
191
+ align-items: center;
192
+ `,za=t.div`
193
+ display: flex;
194
+ flex-direction: column;
195
+ background-color: ${e=>e.theme.colors.grey5};
196
+ border: 1px solid ${e=>e.theme.colors.grey3};
197
+ box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
198
+ border-radius: ${a.sp2};
199
+ `,A=t.div`
200
+ display: flex;
201
+ flex: 1;
202
+ background-color: ${e=>e.theme.colors.grey3};
203
+ min-height: 1px;
204
+ max-height: 1px;
205
+ `,Ra=t(Pe)`
206
+ display: flex;
207
+ flex-direction: row;
208
+ justify-content: flex-end;
209
+ align-items: center;
210
+ color: ${e=>e.theme.colors.primary};
211
+ `,Ae=t.div`
212
+ padding-left: ${a.sp2};
213
+ white-space: nowrap;
214
+ overflow: hidden;
215
+ text-overflow: ellipsis;
216
+ `,Ba=t(Ze)`
217
+ width: max-content;
218
+ margin-left: ${a.sp3};
219
+ `,qa=t(Pe)`
220
+ display: flex;
221
+ flex-direction: row;
222
+ justify-content: flex-end;
223
+ align-items: center;
224
+ color: ${e=>e.theme.colors.hero};
225
+ `,Wa=t.div`
226
+ display: flex;
227
+ align-items: center;
228
+ `,Ma=t(Qe)`
229
+ width: ${a.sp4};
230
+ height: ${a.sp4};
231
+ color: ${e=>e.theme.colors.hero};
232
+ `;export{Ml as G,Xa as o};
@@ -1,4 +1,4 @@
1
- import{j as r,W as x,_ as M,$ as f,B as p,o as s,a5 as w,w as g,a6 as j}from"./index-Dv7T7Q4q.js";import{b as t,n as o}from"./vendor-CnQcJ2Lu.js";import{c as B}from"./SummaryCard-6V1G-Yln-C_HcAreF.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-EBXtqdt5-CAR8znPg.js";const H=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:v},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:H}],D=o(w)`
1
+ import{j as r,U as x,W as M,_ as f,M as p,o as s,a5 as w,v as g,a6 as j}from"./index-CapQvjm9.js";import{b as t,n as o}from"./vendor-CnQcJ2Lu.js";import{c as H}from"./SummaryCard-BauMuQ8s-BNd_V8Lq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-7VJ3paTm-PIZ4RaVw.js";const v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:B},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:v}],D=o(w)`
2
2
  margin: ${s.sp5};
3
3
  justify-content: space-between;
4
4
  `,W=o.div`
@@ -15,12 +15,12 @@ import{j as r,W as x,_ as M,$ as f,B as p,o as s,a5 as w,w as g,a6 as j}from"./i
15
15
  flex-direction: column;
16
16
  `,T=o.div`
17
17
  color: ${e=>e.theme.colors.primary};
18
- `,$=o.div`
18
+ `,b=o.div`
19
19
  display: flex;
20
20
  flex-direction: row;
21
21
  align-items: center;
22
22
  margin: ${s.sp3} ${s.sp0};
23
- `,b=o.div`
23
+ `,$=o.div`
24
24
  margin-right: ${s.sp3};
25
25
  `,N=o.div`
26
26
  display: flex;
@@ -39,4 +39,4 @@ import{j as r,W as x,_ as M,$ as f,B as p,o as s,a5 as w,w as g,a6 as j}from"./i
39
39
  width: 100%;
40
40
  height: 1px;
41
41
  background-color: ${e=>e.theme.colors.grey3};
42
- `;function U({card:e,actions:l,data:c,dndProps:n}){return r.jsx(x,{isDragging:n?.draggedCardType!=null,isDragOver:n?.dragOverCard===e.cardType,draggable:!0,onDragStart:i=>n?.onDragStart(e.cardType,i),onDragOver:i=>n?.onDragOver(i,e.cardType),onDragLeave:i=>n?.onDragLeave(i),onDrop:i=>n?.onDrop(i,e.cardType),dimension:e.dimension,children:r.jsx(B,{card:e,actions:l,children:r.jsx(M,{dimension:e.dimension,style:{cursor:"pointer"},onClick:()=>l.onCardClick(e.cardIndex,e.cardType),"data-testid":f("dashboard",e.cardType),children:r.jsxs(D,{children:[r.jsx(W,{children:r.jsx(I,{children:p.getLocalizedStrings().companyPassportCard.title})}),y.map((i,d)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(V,{children:[r.jsxs($,{children:[r.jsx(b,{children:r.jsx(h,{height:s.sp5,width:s.sp5})}),r.jsxs(N,{children:[r.jsx(A,{children:m}),r.jsx(O,{data:c?.companyView,itemKey:a})]})]}),d!==y.length-1?r.jsx(_,{}):null]},i.key)})]})})})},e.cardIndex)}const O=({itemKey:e,data:l})=>{const c=l?.companyOfficers,n=l?.company,i=n?.company.companyInfo,d=n?.company.incInfo,m=()=>r.jsx(T,{children:"—"});switch(e){case"company_legal_name":return i?.companyLegalName==null||i.companyLegalName===""?r.jsx(m,{}):r.jsx(k,{children:i?.companyLegalName});case"company_officer":{if(c==null||c?.length===0)return r.jsx(m,{});const a=c.slice(0,10).sort((u,E)=>u.user.createTime?.isAfter(E.user.createTime)===!0?1:-1),h=[a[0].user.firstName,a[0].user.lastName].join("").trim();return r.jsxs(k,{children:[a[0].user.firstName!=null&&a[0].user.firstName!==""?r.jsxs(C,{children:[a[0].user.firstName," "]}):null,r.jsx(C,{children:a[0].user.lastName}),a[0].user.email!=null?r.jsx(C,{children:`${h.length>0?", ":""}${a[0].user.email}`}):null]})}case"company_inc":return d?.companyIncType==null||d.companyIncType===""?r.jsx(m,{}):r.jsx(k,{children:d?.companyIncType});default:return null}};export{U as default};
42
+ `;function J({card:e,actions:l,data:c,dndProps:n}){return r.jsx(x,{isDragging:n?.draggedCardType!=null,isDragOver:n?.dragOverCard===e.cardType,draggable:!0,onDragStart:i=>n?.onDragStart(e.cardType,i),onDragOver:i=>n?.onDragOver(i,e.cardType),onDragLeave:i=>n?.onDragLeave(i),onDrop:i=>n?.onDrop(i,e.cardType),dimension:e.dimension,children:r.jsx(H,{card:e,actions:l,children:r.jsx(M,{dimension:e.dimension,style:{cursor:"pointer"},onClick:()=>l.onCardClick(e.cardIndex,e.cardType),"data-testid":f("dashboard",e.cardType),children:r.jsxs(D,{children:[r.jsx(W,{children:r.jsx(I,{children:p.getLocalizedStrings().companyPassportCard.title})}),y.map((i,d)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(V,{children:[r.jsxs(b,{children:[r.jsx($,{children:r.jsx(h,{height:s.sp5,width:s.sp5})}),r.jsxs(N,{children:[r.jsx(A,{children:m}),r.jsx(O,{data:c?.companyView,itemKey:a})]})]}),d!==y.length-1?r.jsx(_,{}):null]},i.key)})]})})})},e.cardIndex)}const O=({itemKey:e,data:l})=>{const c=l?.companyOfficers,n=l?.company,i=n?.company.companyInfo,d=n?.company.incInfo,m=()=>r.jsx(T,{children:"—"});switch(e){case"company_legal_name":return i?.companyLegalName==null||i.companyLegalName===""?r.jsx(m,{}):r.jsx(k,{children:i?.companyLegalName});case"company_officer":{if(c==null||c?.length===0)return r.jsx(m,{});const a=c.slice(0,10).sort((u,E)=>u.user.createTime?.isAfter(E.user.createTime)===!0?1:-1),h=[a[0].user.firstName,a[0].user.lastName].join("").trim();return r.jsxs(k,{children:[a[0].user.firstName!=null&&a[0].user.firstName!==""?r.jsxs(C,{children:[a[0].user.firstName," "]}):null,r.jsx(C,{children:a[0].user.lastName}),a[0].user.email!=null?r.jsx(C,{children:`${h.length>0?", ":""}${a[0].user.email}`}):null]})}case"company_inc":return d?.companyIncType==null||d.companyIncType===""?r.jsx(m,{}):r.jsx(k,{children:d?.companyIncType});default:return null}};export{J as default};
@@ -1,4 +1,4 @@
1
- import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c8 as ha,l as V,a4 as fa,C as m,c9 as xa,a3 as Ce,o as t,m as ae,ca as z,cb as ze,cc as L,cd as ya,ce as qe,cf as ga,cg as ba,ch as Ue,Y as $a,ci as wa,cj as He,ck as Ze,cl as Ia,cm as ja,cn as va,d as N,co as Da,cp as Sa,aO as Oa,a6 as Ca,ao as U,cq as Fe,s as p,w as Ge,i as Me,cr as Fa,K as ka,cs as Ta,ct as Na,b2 as Pa,cu as La,bL as za,cv as Ma,M as Ea,b3 as R,cw as Va,v as de,b0 as Ba}from"./index-Dv7T7Q4q.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-CnQcJ2Lu.js";import{D as Xe}from"./LabeledCreatableSingleSelectField-BSKL8pA3-DuFUXQMp.js";import{Y as Qe}from"./LabeledDocumentField-BEyArLK3-yHmAGez6.js";import{$ as Je}from"./LabeledAddressValue-CeeoKoY4-CvQwJTu9.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Ke={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ra=_a`
1
+ import{X as P,u as Ae,a2 as ca,a as da,c3 as pa,M as k,j as a,aV as ma,F as ua,c4 as ha,l as V,a4 as fa,C as m,c5 as xa,a3 as Ce,o as t,e as ae,c6 as z,c7 as ze,c8 as L,c9 as ya,ca as Ue,cb as ga,cc as ba,cd as qe,w as $a,ce as wa,cf as He,cg as Ze,ch as Ia,ci as ja,cj as va,g as N,ck as Da,cl as Sa,aN as Oa,a6 as Ca,ao as q,cm as Fe,q as p,v as Ge,K as Me,cn as Fa,H as ka,co as Ta,cp as Na,b1 as Pa,cq as La,bH as za,cr as Ma,m as Ea,b2 as R,cs as Va,f as de,a$ as Ba}from"./index-CapQvjm9.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-CnQcJ2Lu.js";import{D as Xe}from"./LabeledCreatableSingleSelectField-CP-IuKrc-DU5OIEj-.js";import{Y as Ke}from"./LabeledDocumentField-DyMGgcCu-CO5ZlVGH.js";import{$ as Je}from"./LabeledAddressValue-CfUYrlxS-CedyeSnW.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Qe={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ra=_a`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
@@ -11,7 +11,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
11
11
  right: ${t.sp3};
12
12
  z-index: 1400;
13
13
  padding: ${t.sp3} ${t.sp4};
14
- max-width: ${e=>Ke.maxWidth.valuePx(e.windowSize)};
14
+ max-width: ${e=>Qe.maxWidth.valuePx(e.windowSize)};
15
15
  background: ${e=>e.theme.colors.black};
16
16
  border-radius: 12px;
17
17
  box-shadow: ${e=>`${t.sp0} ${t.sp1} ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
@@ -25,17 +25,17 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
25
25
  width: ${t.sp4};
26
26
  height: ${t.sp4};
27
27
  color: ${N.successDark};
28
- `,qa=s(Sa)`
28
+ `,Ua=s(Sa)`
29
29
  margin-top: 2px;
30
30
  width: ${t.sp4};
31
31
  height: ${t.sp4};
32
32
  color: ${N.important};
33
- `,Ua=s.div`
33
+ `,qa=s.div`
34
34
  margin-top: ${t.sp1};
35
35
  `,Ha=s(Ca)`
36
36
  color: ${N.neutralGrey2Light};
37
37
  `,Za=s.div`
38
- max-width: ${e=>Ke.contentMaxWidth.valuePx(e.windowSize)};
38
+ max-width: ${e=>Qe.contentMaxWidth.valuePx(e.windowSize)};
39
39
  margin: ${t.sp0} ${t.sp3};
40
40
  `,Ga=s(Oa)`
41
41
  color: ${e=>e.isSuccess?N.success:N.important};
@@ -47,7 +47,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
47
47
  &:hover {
48
48
  color: ${N.primaryDark};
49
49
  }
50
- `,Qa=e=>{const o=k.getLocalizedStrings().companyPassport.snackBar;return e==="Error"?o.failedText:o.successText};function Ja(e){const o=P(),{fetchState:l,onRemoveSnackbar:i}=e;_.useEffect(()=>{setTimeout(i,5e3)});const n=k.getLocalizedStrings().companyPassport.snackBar,c=l==="Completed";return a.jsxs(Ya,{windowSize:o,children:[c?a.jsx(Aa,{}):a.jsx(qa,{}),a.jsxs(Za,{windowSize:o,children:[a.jsx(Ga,{isSuccess:c,children:c?n.success:n.error}),a.jsx(Ua,{children:a.jsx(Ha,{children:Qa(l)})})]}),a.jsx(Xa,{onClick:i,children:a.jsx(Ce,{})})]})}const ne={labelWidth:new m(110,145,180),largeLabelWidth:new m(150,215,215),largeLabelDocumentWidth:new m(150,210,252),paddingBottom:new m(p[3],p[2])};function Ka(e){const o=P(),[l,i]=_.useState(!1),{companyPassport:n,commonSetUp:{businessVerification:c},common:{documents:f}}=k.getLocalizedStrings(),{fileProps:d,companyFiles:r,deleteFileStatusById:u,updateFileStatusById:y,sectionId:b,isDisabled:h,companyIncInfo:$,style:I}=e,S=ne.labelWidth.value(o),j=ne.largeLabelWidth.value(o),g=ne.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:D}=k.getLocalizedStrings(),x=r.find(Q=>Q.documentType==="certificate_of_incorporation"),B=o==="small"?n.companyIncInfo.stateOfIncPlaceholderSmall:n.companyIncInfo.stateOfIncPlaceholder,me=o==="small"?n.companyIncInfo.typeOfIncPlaceholderSmall:n.companyIncInfo.typeOfIncPlaceholder;return a.jsxs(et,{style:I,children:[a.jsx(tt,{children:n.companyIncInfo.title}),a.jsxs(at,{children:[a.jsx(Xe,{label:{label:D.companyIncInfo.typeOfInc,width:j},isDisabled:h,creatableSingleSelectField:{name:re(b,"typeOfInc"),placeholder:me,defaultValue:{selectedOption:$?.typeOfInc,allOptions:n.companyIncInfo.allTypesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ga,{label:{label:D.companyIncInfo.stateOfInc,width:j},isDisabled:h,singleSelectField:{name:re(b,"stateOfInc"),placeholder:B,defaultValue:{selectedOption:$?.stateOfInc,allOptions:n.companyIncInfo.allStatesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ba,{isDisabled:h,label:{label:n.companyIncInfo.incDate,width:S},style:{paddingBottom:ne.paddingBottom.valuePx(o)},dateField:{name:re(b,"incDate"),placeholder:L(n.companyIncInfo.incDate),defaultValue:$?.incDate,dateFormat:O.defaultInput,maxDate:V.dateNow(),minDate:V.zeniDate("01 Jan 1900"),autoComplete:"off"}}),a.jsx(he,{}),a.jsx(Qe,{name:re(b,"certificateOfIncorporation"),isDisabled:h,sizeLimit:Ue,deleteFileStatusById:u,updateFileStatusById:y,filesEndPoint:d.filesEndPoint,authParams:d.authParams,label:{label:c.certificateOfIncorporation,width:g},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:x,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:l,updateFilesEntity:d.updateFilesEntity,onEditFileName:d.onEditFileName,onDeleteFile:d.onDeleteFile,onFileSizeError:Q=>i(Q)}),a.jsx(ot,{windowSize:o,isError:l,children:f.formatDocumentText10MB})]})]})}const re=(e,o)=>`${e}.${o}`,et=s.div`
50
+ `,Ka=e=>{const o=k.getLocalizedStrings().companyPassport.snackBar;return e==="Error"?o.failedText:o.successText};function Ja(e){const o=P(),{fetchState:l,onRemoveSnackbar:i}=e;_.useEffect(()=>{setTimeout(i,5e3)});const n=k.getLocalizedStrings().companyPassport.snackBar,c=l==="Completed";return a.jsxs(Ya,{windowSize:o,children:[c?a.jsx(Aa,{}):a.jsx(Ua,{}),a.jsxs(Za,{windowSize:o,children:[a.jsx(Ga,{isSuccess:c,children:c?n.success:n.error}),a.jsx(qa,{children:a.jsx(Ha,{children:Ka(l)})})]}),a.jsx(Xa,{onClick:i,children:a.jsx(Ce,{})})]})}const ne={labelWidth:new m(110,145,180),largeLabelWidth:new m(150,215,215),largeLabelDocumentWidth:new m(150,210,252),paddingBottom:new m(p[3],p[2])};function Qa(e){const o=P(),[l,i]=_.useState(!1),{companyPassport:n,commonSetUp:{businessVerification:c},common:{documents:f}}=k.getLocalizedStrings(),{fileProps:d,companyFiles:r,deleteFileStatusById:u,updateFileStatusById:y,sectionId:b,isDisabled:h,companyIncInfo:$,style:I}=e,S=ne.labelWidth.value(o),j=ne.largeLabelWidth.value(o),g=ne.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:D}=k.getLocalizedStrings(),x=r.find(K=>K.documentType==="certificate_of_incorporation"),B=o==="small"?n.companyIncInfo.stateOfIncPlaceholderSmall:n.companyIncInfo.stateOfIncPlaceholder,me=o==="small"?n.companyIncInfo.typeOfIncPlaceholderSmall:n.companyIncInfo.typeOfIncPlaceholder;return a.jsxs(et,{style:I,children:[a.jsx(tt,{children:n.companyIncInfo.title}),a.jsxs(at,{children:[a.jsx(Xe,{label:{label:D.companyIncInfo.typeOfInc,width:j},isDisabled:h,creatableSingleSelectField:{name:re(b,"typeOfInc"),placeholder:me,defaultValue:{selectedOption:$?.typeOfInc,allOptions:n.companyIncInfo.allTypesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ga,{label:{label:D.companyIncInfo.stateOfInc,width:j},isDisabled:h,singleSelectField:{name:re(b,"stateOfInc"),placeholder:B,defaultValue:{selectedOption:$?.stateOfInc,allOptions:n.companyIncInfo.allStatesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ba,{isDisabled:h,label:{label:n.companyIncInfo.incDate,width:S},style:{paddingBottom:ne.paddingBottom.valuePx(o)},dateField:{name:re(b,"incDate"),placeholder:L(n.companyIncInfo.incDate),defaultValue:$?.incDate,dateFormat:O.defaultInput,maxDate:V.dateNow(),minDate:V.zeniDate("01 Jan 1900"),autoComplete:"off"}}),a.jsx(he,{}),a.jsx(Ke,{name:re(b,"certificateOfIncorporation"),isDisabled:h,sizeLimit:qe,deleteFileStatusById:u,updateFileStatusById:y,filesEndPoint:d.filesEndPoint,authParams:d.authParams,label:{label:c.certificateOfIncorporation,width:g},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:x,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:l,updateFilesEntity:d.updateFilesEntity,onEditFileName:d.onEditFileName,onDeleteFile:d.onDeleteFile,onFileSizeError:K=>i(K)}),a.jsx(ot,{windowSize:o,isError:l,children:f.formatDocumentText10MB})]})]})}const re=(e,o)=>`${e}.${o}`,et=s.div`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  padding-top: ${t.sp3};
@@ -59,7 +59,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
59
59
  border: 1px solid ${e=>e.theme.colors.grey3};
60
60
  box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
61
61
  border-radius: ${t.sp2};
62
- `,tt=s(U)`
62
+ `,tt=s(q)`
63
63
  color: ${e=>e.theme.colors.champion};
64
64
  margin-bottom: ${t.sp3};
65
65
  `,he=s.div`
@@ -112,7 +112,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
112
112
  border-bottom-left-radius: inherit;
113
113
  border-bottom-right-radius: inherit;
114
114
  }
115
- `,fe={labelWidth:new m(110,110,140),mediumLabelWidth:new m(140,140,160),largeLabelWidth:new m(170,170,180)},{companyPassport:v,dateFormat:{analytics:Ee}}=k.getLocalizedStrings();function ct({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=P(),u=e.company.company.companyInfo,y=fe.labelWidth.value(r),b=fe.mediumLabelWidth.value(r),h=fe.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=S=>o.find(j=>j.code===S)?.name??S;return a.jsxs(pt,{style:d,children:[a.jsx(ut,{children:v.companyInfo.title}),a.jsxs(mt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:Z(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(q,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:Z(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(q,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:Z(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(q,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:Z(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(S=>S.code)??[]}},isFunctional:!0}),a.jsx(q,{}),a.jsx(Xe,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:Z(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(q,{}),a.jsx(Je,{isDisabled:c,label:{label:v.companyInfo.address,width:y},addressValue:{placeholder:L(v.companyInfo.address),address:i?.addressToCreate,onClick:()=>f("company_address")}}),a.jsx(q,{}),a.jsx(qe,{isDisabled:c,label:{label:v.companyInfo.phone,width:y},text:{name:Z(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(q,{}),a.jsx(pe,{label:{label:v.companyInfo.fiscalYear,width:y},bullettedLabels:{labels:[{text:dt(l?.firstMonthOfFY??1)}],listStyleType:"none"}})]})]})}const dt=e=>{const{fiscalYearMonths:o}=V.getFYMonths(e);return`${V.dateNow().month(o[0]-1).format(Ee.MMMFormat)} to ${V.dateNow().month(o[11]-1).format(Ee.MMMFormat)}`},Z=(e,o)=>`${e}.${o}`,pt=s.div`
115
+ `,fe={labelWidth:new m(110,110,140),mediumLabelWidth:new m(140,140,160),largeLabelWidth:new m(170,170,180)},{companyPassport:v,dateFormat:{analytics:Ee}}=k.getLocalizedStrings();function ct({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=P(),u=e.company.company.companyInfo,y=fe.labelWidth.value(r),b=fe.mediumLabelWidth.value(r),h=fe.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=S=>o.find(j=>j.code===S)?.name??S;return a.jsxs(pt,{style:d,children:[a.jsx(ut,{children:v.companyInfo.title}),a.jsxs(mt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:Z(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:Z(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:Z(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:Z(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(S=>S.code)??[]}},isFunctional:!0}),a.jsx(U,{}),a.jsx(Xe,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:Z(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(U,{}),a.jsx(Je,{isDisabled:c,label:{label:v.companyInfo.address,width:y},addressValue:{placeholder:L(v.companyInfo.address),address:i?.addressToCreate,onClick:()=>f("company_address")}}),a.jsx(U,{}),a.jsx(Ue,{isDisabled:c,label:{label:v.companyInfo.phone,width:y},text:{name:Z(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(pe,{label:{label:v.companyInfo.fiscalYear,width:y},bullettedLabels:{labels:[{text:dt(l?.firstMonthOfFY??1)}],listStyleType:"none"}})]})]})}const dt=e=>{const{fiscalYearMonths:o}=V.getFYMonths(e);return`${V.dateNow().month(o[0]-1).format(Ee.MMMFormat)} to ${V.dateNow().month(o[11]-1).format(Ee.MMMFormat)}`},Z=(e,o)=>`${e}.${o}`,pt=s.div`
116
116
  display: flex;
117
117
  flex-direction: column;
118
118
  padding-top: ${t.sp3};
@@ -124,16 +124,16 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
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
- `,ut=s(U)`
127
+ `,ut=s(q)`
128
128
  color: ${e=>e.theme.colors.champion};
129
129
  margin-bottom: ${t.sp3};
130
- `,q=s.div`
130
+ `,U=s.div`
131
131
  display: flex;
132
132
  flex: 1;
133
133
  background-color: ${e=>e.theme.colors.grey3};
134
134
  min-height: 1px;
135
135
  max-height: 1px;
136
- `,be={labelWidth:new m(110,110,140),buttonWidth:new m(70,70)};function ht({sectionId:e,isDisabled:o,style:l,officer:i,officerAddress:n,isEmptyCompanyOfficerSection:c,onOfficerAddressClick:f}){const d=P(),r=k.getLocalizedStrings().companyPassport,u=be.labelWidth.value(d),y=c&&(i==null||!i.firstName&&!i.lastName&&!i.phone&&!i.email&&!n),b=i?.userId==null||i?.userId==="";return a.jsxs(bt,{style:l,children:[a.jsx(He,{isDisabled:o,label:{label:r.companyOfficer.name,width:u},nameField:{name:xe(e,"name"),placeHolder:{firstName:r.companyOfficer.firstNamePlaceholder,lastName:r.companyOfficer.lastNamePlaceholder,name:r.companyOfficer.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},autoComplete:"new-password",registerOptions:{required:y!==!0},showFullNameError:!0}}),a.jsx(ye,{}),a.jsx(z,{isDisabled:b?o:"readonly",label:{label:r.companyOfficer.email,width:u},text:{type:"email",name:xe(e,"email"),placeholder:L(r.companyOfficer.email),options:{required:y===!0?!1:b},defaultValue:i?.email,autoComplete:"new-password"}}),a.jsx(ye,{}),a.jsx(Je,{isDisabled:o,label:{label:r.companyInfo.address,width:u},addressValue:{placeholder:L(r.companyOfficer.address),address:n?.addressToCreate,onClick:()=>{f(i?.officerType.toLocaleLowerCase().concat("_address"))}}}),a.jsx(ye,{}),a.jsx(qe,{isDisabled:o,label:{label:r.companyOfficer.phone,width:u},text:{name:xe(e,"phone"),placeholder:L(r.companyOfficer.phone),defaultValue:i?.phone,autoComplete:"new-password"}})]})}function ft({companyOfficers:e,sectionId:o,style:l,isDisabled:i,onOfficerAddressClick:n}){const{setValue:c,getValues:f}=Ze(),[d,r]=_.useState(-1),u=k.getLocalizedStrings().companyPassport,y=e.length,b=e.length===1&&e[0].localData?.userId==null,h=f(o),$=()=>{const g={userId:void 0,officerType:`Officer_${y+1}`,name:{firstName:"",lastName:""},email:"",phone:""};c(o,[...h,g])},I=g=>{if(e[g].localData==null||!e[g].localData?.firstName&&!e[g].localData?.lastName&&!e[g].localData?.phone&&!e[g].localData?.email&&!e[g].addressStatus?.addressToCreate){const O=h.filter((D,x)=>x!==d);c(o,O),r(-1)}else r(g)},S=()=>{r(-1)},j=()=>{const g=h.filter((O,D)=>D!==d);c(o,g),r(-1)};return a.jsxs(gt,{style:l,children:[a.jsx($t,{children:u.companyOfficer.title}),e.map((g,O)=>{const D=g.localData,x=g.addressStatus,B=D?.userId==null||D?.userId==="";return a.jsxs(wt,{children:[(y>1||B)&&!b?a.jsx(xt,{curIndex:O,isNewUser:B,numberOfOfficers:y,deleteConfirmationIndex:d,isDisabled:i,onDeleteClick:I,onCancelClick:S,onRemoveOfficerSection:j}):null,a.jsx(ht,{sectionId:`${o}.${O}`,officer:D,officerAddress:x,isDisabled:i,isEmptyCompanyOfficerSection:b,onOfficerAddressClick:n})]},D?.officerType)}),y<=9&&!b?a.jsx(yt,{isSectionDisabled:i,onAddOfficerSection:$}):a.jsx($e,{})]})}const xt=({curIndex:e,isNewUser:o,numberOfOfficers:l,deleteConfirmationIndex:i,isDisabled:n,onDeleteClick:c,onCancelClick:f,onRemoveOfficerSection:d})=>{const r=P(),u=k.getLocalizedStrings().companyPassport;return a.jsxs(It,{children:[a.jsx(jt,{children:l>1?`${u.companyOfficer.officer} ${e+1}`:""}),o&&n==null?i===e?a.jsx(Ct,{children:a.jsxs(Ft,{children:[u.companyOfficer.deleteConfirmation,a.jsx(Me,{label:u.cancel,onClick:f,style:{width:be.buttonWidth.value(r),marginLeft:t.sp4,marginRight:t.sp3},size:"small",variant:"secondary"}),a.jsx(Me,{label:u.remove,onClick:d,style:{width:be.buttonWidth.value(r)},size:"small",variant:"danger"})]})}):a.jsx(Ot,{className:"delete-icon-wrapper",onClick:()=>c(e),children:a.jsx(Fa,{width:p[3],height:p[3],color:N.important})}):null]})},yt=({isSectionDisabled:e,onAddOfficerSection:o})=>{const l=k.getLocalizedStrings().companyPassport;return e!=null?a.jsx($e,{}):a.jsxs(a.Fragment,{children:[a.jsxs(vt,{onClick:o,children:[a.jsx(Dt,{}),a.jsx(St,{children:l.companyOfficer.addOfficer})]}),a.jsx($e,{})]})},xe=(e,o)=>`${e}.${o}`,gt=s.div`
136
+ `,be={labelWidth:new m(110,110,140),buttonWidth:new m(70,70)};function ht({sectionId:e,isDisabled:o,style:l,officer:i,officerAddress:n,isEmptyCompanyOfficerSection:c,onOfficerAddressClick:f}){const d=P(),r=k.getLocalizedStrings().companyPassport,u=be.labelWidth.value(d),y=c&&(i==null||!i.firstName&&!i.lastName&&!i.phone&&!i.email&&!n),b=i?.userId==null||i?.userId==="";return a.jsxs(bt,{style:l,children:[a.jsx(He,{isDisabled:o,label:{label:r.companyOfficer.name,width:u},nameField:{name:xe(e,"name"),placeHolder:{firstName:r.companyOfficer.firstNamePlaceholder,lastName:r.companyOfficer.lastNamePlaceholder,name:r.companyOfficer.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},autoComplete:"new-password",registerOptions:{required:y!==!0},showFullNameError:!0}}),a.jsx(ye,{}),a.jsx(z,{isDisabled:b?o:"readonly",label:{label:r.companyOfficer.email,width:u},text:{type:"email",name:xe(e,"email"),placeholder:L(r.companyOfficer.email),options:{required:y===!0?!1:b},defaultValue:i?.email,autoComplete:"new-password"}}),a.jsx(ye,{}),a.jsx(Je,{isDisabled:o,label:{label:r.companyInfo.address,width:u},addressValue:{placeholder:L(r.companyOfficer.address),address:n?.addressToCreate,onClick:()=>{f(i?.officerType.toLocaleLowerCase().concat("_address"))}}}),a.jsx(ye,{}),a.jsx(Ue,{isDisabled:o,label:{label:r.companyOfficer.phone,width:u},text:{name:xe(e,"phone"),placeholder:L(r.companyOfficer.phone),defaultValue:i?.phone,autoComplete:"new-password"}})]})}function ft({companyOfficers:e,sectionId:o,style:l,isDisabled:i,onOfficerAddressClick:n}){const{setValue:c,getValues:f}=Ze(),[d,r]=_.useState(-1),u=k.getLocalizedStrings().companyPassport,y=e.length,b=e.length===1&&e[0].localData?.userId==null,h=f(o),$=()=>{const g={userId:void 0,officerType:`Officer_${y+1}`,name:{firstName:"",lastName:""},email:"",phone:""};c(o,[...h,g])},I=g=>{if(e[g].localData==null||!e[g].localData?.firstName&&!e[g].localData?.lastName&&!e[g].localData?.phone&&!e[g].localData?.email&&!e[g].addressStatus?.addressToCreate){const O=h.filter((D,x)=>x!==d);c(o,O),r(-1)}else r(g)},S=()=>{r(-1)},j=()=>{const g=h.filter((O,D)=>D!==d);c(o,g),r(-1)};return a.jsxs(gt,{style:l,children:[a.jsx($t,{children:u.companyOfficer.title}),e.map((g,O)=>{const D=g.localData,x=g.addressStatus,B=D?.userId==null||D?.userId==="";return a.jsxs(wt,{children:[(y>1||B)&&!b?a.jsx(xt,{curIndex:O,isNewUser:B,numberOfOfficers:y,deleteConfirmationIndex:d,isDisabled:i,onDeleteClick:I,onCancelClick:S,onRemoveOfficerSection:j}):null,a.jsx(ht,{sectionId:`${o}.${O}`,officer:D,officerAddress:x,isDisabled:i,isEmptyCompanyOfficerSection:b,onOfficerAddressClick:n})]},D?.officerType)}),y<=9&&!b?a.jsx(yt,{isSectionDisabled:i,onAddOfficerSection:$}):a.jsx($e,{})]})}const xt=({curIndex:e,isNewUser:o,numberOfOfficers:l,deleteConfirmationIndex:i,isDisabled:n,onDeleteClick:c,onCancelClick:f,onRemoveOfficerSection:d})=>{const r=P(),u=k.getLocalizedStrings().companyPassport;return a.jsxs(It,{children:[a.jsx(jt,{children:l>1?`${u.companyOfficer.officer} ${e+1}`:""}),o&&n==null?i===e?a.jsx(Ct,{children:a.jsxs(Ft,{children:[u.companyOfficer.deleteConfirmation,a.jsx(Me,{label:u.cancel,onClick:f,style:{width:be.buttonWidth.value(r),marginLeft:t.sp4,marginRight:t.sp3},size:"small",variant:"secondary"}),a.jsx(Me,{label:u.remove,onClick:d,style:{width:be.buttonWidth.value(r)},size:"small",variant:"danger"})]})}):a.jsx(Ot,{className:"delete-icon-wrapper",onClick:()=>c(e),children:a.jsx(Fa,{width:p[3],height:p[3],color:N.important})}):null]})},yt=({isSectionDisabled:e,onAddOfficerSection:o})=>{const l=k.getLocalizedStrings().companyPassport;return e!=null?a.jsx($e,{}):a.jsxs(a.Fragment,{children:[a.jsxs(vt,{onClick:o,children:[a.jsx(Dt,{}),a.jsx(St,{children:l.companyOfficer.addOfficer})]}),a.jsx($e,{})]})},xe=(e,o)=>`${e}.${o}`,gt=s.div`
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  padding-top: ${t.sp3};
@@ -148,7 +148,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
148
148
  margin-bottom: ${t.sp4};
149
149
  `,$e=s.div`
150
150
  padding-bottom: ${t.sp6};
151
- `,$t=s(U)`
151
+ `,$t=s(q)`
152
152
  color: ${e=>e.theme.colors.champion};
153
153
  margin-bottom: ${t.sp4};
154
154
  `,wt=s.div`
@@ -157,7 +157,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
157
157
  display: flex;
158
158
  }
159
159
  }
160
- `,It=s(U)`
160
+ `,It=s(q)`
161
161
  display: flex;
162
162
  align-items: center;
163
163
  justify-content: space-between;
@@ -209,7 +209,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
209
209
  background-color: ${e=>e.theme.colors.grey3};
210
210
  min-height: 1px;
211
211
  max-height: 1px;
212
- `,kt=({name:e,registerOptions:o,defaultValue:l,isDisabled:i,style:n,placeholder:c})=>{const{control:f,formState:{errors:d}}=Ze(),r=Ae(),u=Ta(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})},b={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(Pa,{...b,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(g=>g.value),allOptions:I.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:$,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:Tt,Option:Bt,Input:Pt,MultiValue:Lt,MultiValueLabel:zt,MultiValueRemove:Mt,ValueContainer:Nt,DropdownIndicator:Zt,IndicatorSeparator:Gt,Placeholder:Vt,ClearIndicator:Et},hideSelectedOptions:!1,styles:y,isDisabled:i!=null})})},Tt=e=>{const{menuIsOpen:o,isFocused:l,isDisabled:i,selectProps:n}=e,{value:c,hasError:f}=n;return a.jsx(Wt,{menuIsOpen:o,isFocused:l,isDisabled:i,optionsLen:c.length,hasError:f,children:a.jsx(R.Control,{...e,className:"select-control",children:e.children})})},Nt=e=>{const{selectProps:o}=e,{value:l}=o;return a.jsxs(R.ValueContainer,{...e,className:"select-value-container",children:[e.children,a.jsx(_t,{className:"selected-options",children:l.map(i=>i.value).join(", ")})]})},Pt=e=>{const{selectProps:o}=e,{placeholder:l,value:i}=o;return a.jsx(R.Input,{...e,autoComplete:"new-password",placeholder:i.length===0?l:void 0,children:e.children})},Lt=e=>a.jsx(R.MultiValue,{...e,children:e.children}),zt=e=>{const{data:o}=e;return a.jsx(R.MultiValueLabel,{...e,children:o.value})},Mt=e=>a.jsx(R.MultiValueRemove,{...e,children:a.jsx(ea,{style:{marginTop:"2px"}})}),Et=e=>a.jsx(R.ClearIndicator,{...e,children:a.jsx(ea,{})}),Vt=()=>null,Bt=e=>{const{isSelected:o,isDisabled:l,isFocused:i}=e;return a.jsx(Rt,{isFocused:i,isSelected:o,isDisabled:l,children:a.jsx(R.Option,{...e,className:"select-option",children:a.jsxs(Yt,{children:[a.jsx(qt,{children:a.jsx(At,{isSelected:o,isDisabled:l,children:e.label})}),o?a.jsxs(Ut,{children:[a.jsx(Ht,{className:"right-tick-icon"}),a.jsx(Ce,{className:"close-tick-icon"})]}):null]})})})},Wt=s.div`
212
+ `,kt=({name:e,registerOptions:o,defaultValue:l,isDisabled:i,style:n,placeholder:c})=>{const{control:f,formState:{errors:d}}=Ze(),r=Ae(),u=Ta(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})},b={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(Pa,{...b,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(g=>g.value),allOptions:I.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:$,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:Tt,Option:Bt,Input:Pt,MultiValue:Lt,MultiValueLabel:zt,MultiValueRemove:Mt,ValueContainer:Nt,DropdownIndicator:Zt,IndicatorSeparator:Gt,Placeholder:Vt,ClearIndicator:Et},hideSelectedOptions:!1,styles:y,isDisabled:i!=null})})},Tt=e=>{const{menuIsOpen:o,isFocused:l,isDisabled:i,selectProps:n}=e,{value:c,hasError:f}=n;return a.jsx(Wt,{menuIsOpen:o,isFocused:l,isDisabled:i,optionsLen:c.length,hasError:f,children:a.jsx(R.Control,{...e,className:"select-control",children:e.children})})},Nt=e=>{const{selectProps:o}=e,{value:l}=o;return a.jsxs(R.ValueContainer,{...e,className:"select-value-container",children:[e.children,a.jsx(_t,{className:"selected-options",children:l.map(i=>i.value).join(", ")})]})},Pt=e=>{const{selectProps:o}=e,{placeholder:l,value:i}=o;return a.jsx(R.Input,{...e,autoComplete:"new-password",placeholder:i.length===0?l:void 0,children:e.children})},Lt=e=>a.jsx(R.MultiValue,{...e,children:e.children}),zt=e=>{const{data:o}=e;return a.jsx(R.MultiValueLabel,{...e,children:o.value})},Mt=e=>a.jsx(R.MultiValueRemove,{...e,children:a.jsx(ea,{style:{marginTop:"2px"}})}),Et=e=>a.jsx(R.ClearIndicator,{...e,children:a.jsx(ea,{})}),Vt=()=>null,Bt=e=>{const{isSelected:o,isDisabled:l,isFocused:i}=e;return a.jsx(Rt,{isFocused:i,isSelected:o,isDisabled:l,children:a.jsx(R.Option,{...e,className:"select-option",children:a.jsxs(Yt,{children:[a.jsx(Ut,{children:a.jsx(At,{isSelected:o,isDisabled:l,children:e.label})}),o?a.jsxs(qt,{children:[a.jsx(Ht,{className:"right-tick-icon"}),a.jsx(Ce,{className:"close-tick-icon"})]}):null]})})})},Wt=s.div`
213
213
  width: 100%;
214
214
  background-color: ${e=>e.theme.colors.grey5};
215
215
  cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
@@ -375,11 +375,11 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
375
375
  text-overflow: ellipsis;
376
376
  white-space: nowrap;
377
377
  cursor: ${e=>e.isDisabled?"not-allowed":e.isSelected?"default":"pointer"};
378
- `,qt=s.div`
378
+ `,Ut=s.div`
379
379
  width: 100%;
380
380
  display: flex;
381
381
  align-items: center;
382
- `,Ut=s.div`
382
+ `,qt=s.div`
383
383
  display: flex;
384
384
  `,Ht=s(Ba)`
385
385
  width: 12px;
@@ -390,7 +390,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
390
390
  width: ${t.sp3};
391
391
  height: ${t.sp3};
392
392
  color: ${e=>e.theme.colors.primary};
393
- `,Zt=()=>null,Gt=()=>null,Ve=e=>e.map(o=>Xt(o)),Xt=e=>({value:e,label:e}),M={width:new m(343,580,726),height:new m(p[6],p[6]),controlHeight:new m(p[6],p[6]),paddingTopBottom:new m(p[2],p[2]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4]),labelMarginTop:new m(p[2],p[2])};function Qt({isDisabled:e,label:o,multiSelectField:l,style:i}){const n=P();return a.jsxs(Jt,{size:n,style:i,isDisabled:e!=null,children:[a.jsx(Fe,{isDisabled:e,label:o.label,htmlFor:l.name,style:{marginLeft:M.labelMarginLeft.value(n),marginRight:M.labelMarginRight.value(n),marginTop:M.labelMarginTop.value(n),width:o.width??"auto"}}),a.jsx(kt,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",minHeight:M.controlHeight.value(n)}})]})}const Jt=s.div`
393
+ `,Zt=()=>null,Gt=()=>null,Ve=e=>e.map(o=>Xt(o)),Xt=e=>({value:e,label:e}),M={width:new m(343,580,726),height:new m(p[6],p[6]),controlHeight:new m(p[6],p[6]),paddingTopBottom:new m(p[2],p[2]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4]),labelMarginTop:new m(p[2],p[2])};function Kt({isDisabled:e,label:o,multiSelectField:l,style:i}){const n=P();return a.jsxs(Jt,{size:n,style:i,isDisabled:e!=null,children:[a.jsx(Fe,{isDisabled:e,label:o.label,htmlFor:l.name,style:{marginLeft:M.labelMarginLeft.value(n),marginRight:M.labelMarginRight.value(n),marginTop:M.labelMarginTop.value(n),width:o.width??"auto"}}),a.jsx(kt,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",minHeight:M.controlHeight.value(n)}})]})}const Jt=s.div`
394
394
  display: flex;
395
395
  flex-direction: row;
396
396
  align-items: flex-start;
@@ -436,7 +436,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
436
436
  background-color: ${e=>e.isDisabled?e.theme.colors.grey5:e.theme.colors.background};
437
437
  }
438
438
  }
439
- `,Be={labelWidth:new m(160,160,160),largeLabelWidth:new m(150,215,215)};function Kt(e){const o=P(),l=$a(),[i,n]=_.useState(!1),{companyPassport:c,commonSetUp:{businessVerification:f},common:{documents:d}}=k.getLocalizedStrings(),{fileProps:r,companyFiles:u,deleteFileStatusById:y,updateFileStatusById:b,sectionId:h,isDisabled:$,companyTaxInfo:I,style:S}=e,j=Be.labelWidth.value(o),g=Be.largeLabelWidth.value(o),O=!V.hasAdminLevelAccess(l.loggedInUserRole??[]),D=u.find(x=>x.documentType==="tax_ein");return a.jsxs(eo,{style:S,children:[a.jsx(to,{children:c.companyTaxInfo.title}),a.jsxs(ao,{children:[a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.taxIdOrEIN,width:j},text:{type:"text",name:G(h,"taxIdOrEIN"),placeholder:c.companyTaxInfo.taxIdOrEINPlaceholder,defaultValue:O===!0?c.protectedContent:I?.taxIdOrEIN,options:{pattern:wa},autoComplete:"new-password"},protectedInfoText:O===!0?c.companyTaxInfo.adminPrivilegeRequired:void 0}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.dunsNumber,width:j},text:{type:"text",name:G(h,"dunsNumber"),placeholder:c.companyTaxInfo.dunsNumberPlaceholder,defaultValue:I?.dunsNumber,options:{pattern:/^\d{9}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.naicsCode,width:j},text:{type:"text",name:G(h,"naicsCode"),placeholder:c.companyTaxInfo.naicsCodePlaceholder,defaultValue:I?.naicsCode,options:{pattern:/^([2-9]{1}[0-9]{1}|[1-9]{1}[1-9]{1})\d{0,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.sicCode,width:j},text:{type:"text",name:G(h,"sicCode"),placeholder:c.companyTaxInfo.sicCodePlaceholder,defaultValue:I?.sicCode,options:{pattern:/^\d{2,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(Qt,{isDisabled:$,label:{label:c.companyTaxInfo.taxesFiledYears,width:j},multiSelectField:{name:G(h,"taxesFiledYears"),placeholder:c.companyTaxInfo.taxesFiledYearsPlaceholder,defaultValue:{selectedOptions:I?.taxesFiledYears.map(x=>x.toString())??[],allOptions:V.getYearsList().map(x=>x.toString())}}}),a.jsx(ee,{}),a.jsx(Qe,{name:G(h,"einDocument"),isDisabled:$,sizeLimit:Ue,deleteFileStatusById:y,updateFileStatusById:b,filesEndPoint:r.filesEndPoint,authParams:r.authParams,label:{label:f.einDocument,width:g},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:D,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:i,updateFilesEntity:r.updateFilesEntity,onEditFileName:r.onEditFileName,onDeleteFile:r.onDeleteFile,onFileSizeError:x=>n(x)}),a.jsx(oo,{windowSize:o,isError:i,children:d.formatDocumentText10MB})]})]})}const G=(e,o)=>`${e}.${o}`,eo=s.div`
439
+ `,Be={labelWidth:new m(160,160,160),largeLabelWidth:new m(150,215,215)};function Qt(e){const o=P(),l=$a(),[i,n]=_.useState(!1),{companyPassport:c,commonSetUp:{businessVerification:f},common:{documents:d}}=k.getLocalizedStrings(),{fileProps:r,companyFiles:u,deleteFileStatusById:y,updateFileStatusById:b,sectionId:h,isDisabled:$,companyTaxInfo:I,style:S}=e,j=Be.labelWidth.value(o),g=Be.largeLabelWidth.value(o),O=!V.hasAdminLevelAccess(l.loggedInUserRole??[]),D=u.find(x=>x.documentType==="tax_ein");return a.jsxs(eo,{style:S,children:[a.jsx(to,{children:c.companyTaxInfo.title}),a.jsxs(ao,{children:[a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.taxIdOrEIN,width:j},text:{type:"text",name:G(h,"taxIdOrEIN"),placeholder:c.companyTaxInfo.taxIdOrEINPlaceholder,defaultValue:O===!0?c.protectedContent:I?.taxIdOrEIN,options:{pattern:wa},autoComplete:"new-password"},protectedInfoText:O===!0?c.companyTaxInfo.adminPrivilegeRequired:void 0}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.dunsNumber,width:j},text:{type:"text",name:G(h,"dunsNumber"),placeholder:c.companyTaxInfo.dunsNumberPlaceholder,defaultValue:I?.dunsNumber,options:{pattern:/^\d{9}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.naicsCode,width:j},text:{type:"text",name:G(h,"naicsCode"),placeholder:c.companyTaxInfo.naicsCodePlaceholder,defaultValue:I?.naicsCode,options:{pattern:/^([2-9]{1}[0-9]{1}|[1-9]{1}[1-9]{1})\d{0,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.sicCode,width:j},text:{type:"text",name:G(h,"sicCode"),placeholder:c.companyTaxInfo.sicCodePlaceholder,defaultValue:I?.sicCode,options:{pattern:/^\d{2,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(Kt,{isDisabled:$,label:{label:c.companyTaxInfo.taxesFiledYears,width:j},multiSelectField:{name:G(h,"taxesFiledYears"),placeholder:c.companyTaxInfo.taxesFiledYearsPlaceholder,defaultValue:{selectedOptions:I?.taxesFiledYears.map(x=>x.toString())??[],allOptions:V.getYearsList().map(x=>x.toString())}}}),a.jsx(ee,{}),a.jsx(Ke,{name:G(h,"einDocument"),isDisabled:$,sizeLimit:qe,deleteFileStatusById:y,updateFileStatusById:b,filesEndPoint:r.filesEndPoint,authParams:r.authParams,label:{label:f.einDocument,width:g},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:D,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:i,updateFilesEntity:r.updateFilesEntity,onEditFileName:r.onEditFileName,onDeleteFile:r.onDeleteFile,onFileSizeError:x=>n(x)}),a.jsx(oo,{windowSize:o,isError:i,children:d.formatDocumentText10MB})]})]})}const G=(e,o)=>`${e}.${o}`,eo=s.div`
440
440
  display: flex;
441
441
  flex-direction: column;
442
442
  padding-top: ${t.sp3};
@@ -448,7 +448,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
448
448
  border: 1px solid ${e=>e.theme.colors.grey3};
449
449
  box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
450
450
  border-radius: ${t.sp2};
451
- `,to=s(U)`
451
+ `,to=s(q)`
452
452
  color: ${e=>e.theme.colors.champion};
453
453
  margin-bottom: ${t.sp3};
454
454
  `,ee=s.div`
@@ -475,7 +475,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
475
475
  border: 1px solid ${e=>e.theme.colors.grey3};
476
476
  box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
477
477
  border-radius: ${t.sp2};
478
- `,ro=s(U)`
478
+ `,ro=s(q)`
479
479
  color: ${e=>e.theme.colors.champion};
480
480
  margin-bottom: ${t.sp3};
481
481
  `,co=s.div`
@@ -541,7 +541,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
541
541
  border: 1px solid ${e=>e.theme.colors.grey3};
542
542
  box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
543
543
  border-radius: ${t.sp2};
544
- `,vo=s(U)`
544
+ `,vo=s(q)`
545
545
  color: ${e=>e.theme.colors.champion};
546
546
  margin-bottom: ${t.sp3};
547
547
  `,ce=s.div`
@@ -550,7 +550,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c7 as pa,B as k,j as a,aW as ma,F as ua,c
550
550
  background-color: ${e=>e.theme.colors.grey3};
551
551
  min-height: 1px;
552
552
  max-height: 1px;
553
- `,we={width:new m(343,580,726),buttonWidth:new m(85,85)},_e="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",De="primaryContact",Se="companyOfficer",Oe="zeniFinanceTeam";function Wo(e){const o=P(),l=Ae(),{companyPassportView:i,isZeniUser:n,filesEndPoint:c,authParams:f,allIndustries:d,isDisabled:r,isSettings:u=!1,onCompanyDetailsChanged:y,onCompanyOfficerUpdated:b,onNewCompanyOfficerAdded:h,onPrimaryContactDetailsUpdated:$,onNewCompanyOfficerRemoved:I,onSaveAll:S,onAddressClick:j,onScheduleClick:g,onBackClick:O,onResetClick:D,onEditFileName:x,updateFilesEntity:B,onDeleteFile:me,onClickMenuIcon:Q}=e,{companyView:J,localData:H,deleteFileStatusById:ke,updateFileStatusById:Te}=i,{companyFiles:te}=H,Ne={authParams:f,filesEndPoint:c,onEditFileName:x,onDeleteFile:me,updateFilesEntity:B},[K,oe]=_.useState(void 0),{companyDetails:aa,primaryContact:ta,companyOfficerUpdateStatus:oa,updateStatus:Y}=H,{localData:le,addressStatus:la}=aa,Pe=ca(Y.fetchState),ie=Object.values(oa).filter(T=>T.localData!=null),W=da({mode:"all",defaultValues:Ye(H,d)});_.useEffect(()=>()=>{oe(void 0)},[]),_.useEffect(()=>{Pe==="In-Progress"&&(Y.fetchState==="Completed"||Y.fetchState==="Error")&&(W.reset(Ye(H,d)),K!==Y.fetchState&&oe(Y.fetchState))},[K,W,Pe,Y,H,J,d,te]);const ia=async(T,w)=>{if(T.includes(Ie)||T.includes(je)||T.includes(ve)||T.includes(Oe)){const{companyInfo:C,companyIncInfo:F,companyTaxInfo:A,zeniFinanceTeam:ue}=w;y({companyInfo:C,incInfo:F,taxDetails:A,zeniFinanceTeam:ue})}else if(T.includes(De)){$(w.primaryContact);const C=w.companyOfficer.map(F=>F.userId);if(w.primaryContact.userId!=null&&C.includes(w.primaryContact.userId)){const F=C.findIndex(A=>A===w.primaryContact.userId);F>=0&&b({...w.companyOfficer[F],name:w.primaryContact.name,officerType:`Officer_${F+1}`})}}else if(T.includes(Se)){const C=parseInt(T.split(".")[1]);if(C>=0)b({...w.companyOfficer[C],officerType:`Officer_${C+1}`}),w.companyOfficer[C].userId!=null&&w.companyOfficer[C].userId===w.primaryContact.userId&&$({...w.primaryContact,name:w.companyOfficer[C].name});else if(w.companyOfficer.length>ie.length){const F=w.companyOfficer[w.companyOfficer.length-1];h(F)}else{const F=w.companyOfficer.filter(A=>A.officerType!=null);if(F.length<ie.length){const A=F.map((ue,ra)=>{const Le={...ue,officerType:`Officer_${ra+1}`};return b(Le),Le});F.length<ie.length&&(I(`Officer_${F.length+1}`),W.reset({companyOfficer:A}))}}}};_.useEffect(()=>{const T=W.watch((w,{name:C})=>{C!=null&&w!=null&&pa(()=>ia(C,w))});return()=>{T.unsubscribe()}});const sa=W.handleSubmit(T=>{K!=null&&oe(void 0),S()}),{companyPassport:se,common:{settings:na}}=k.getLocalizedStrings();if(J==null)throw new Error("Company View is null");return a.jsxs(Do,{children:[a.jsx(ma,{title:se.title,backgroundColor:l.colors.grey4,style:{zIndex:3},onBackClick:O,showBackButton:!u,showMenuIcon:u?o==="medium-compact"||o==="small":!1,source:"CompanyPassportPage",onClickMenuIcon:Q}),K!=null?a.jsx(Ja,{fetchState:K,onRemoveSnackbar:()=>oe(void 0)}):null,a.jsxs(So,{children:[a.jsx(Oo,{windowSize:o,children:u?na.infoText.companyDetails:se.quickAccessInfo}),a.jsx(ua,{...W,children:a.jsxs("form",{id:Re(_e),onSubmit:sa,children:[a.jsx(ct,{sectionId:Ie,companyInfo:le?.companyInfo,companyViewData:J,companyAddress:la,isDisabled:r,onCompanyAddressClick:j,allIndustries:d}),a.jsx(Ka,{sectionId:je,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyIncInfo:le?.incInfo,fileProps:Ne,isDisabled:r}),a.jsx(Kt,{sectionId:ve,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyTaxInfo:le?.taxDetails,fileProps:Ne,isDisabled:r}),a.jsx(io,{sectionId:De,primaryContact:ta.localData,isDisabled:r}),a.jsx(ft,{companyOfficers:ie,sectionId:Se,isDisabled:r,onOfficerAddressClick:j}),a.jsx($o,{data:J,companyInfo:le?.companyInfo,isDisabled:r,isZeniUser:n,sectionId:Oe,onScheduleClick:g})]})})]}),ha(W.formState.dirtyFields)||V.isCompanyPassportDataToBeSaved(H,J,te)?a.jsx(fa,{formId:Re(_e),primaryBtn:{label:se.save,isLoading:Y.fetchState==="In-Progress",style:{width:we.buttonWidth.value(o)},isDisabled:e.isDisabled!=null},cancelBtn:{label:se.cancel,style:{width:we.buttonWidth.value(o)},onClick:()=>{W.reset(),D()}}}):null]})}const Re=e=>`${e}_form`,Ye=(e,o)=>{const{companyDetails:l,primaryContact:i,companyOfficerUpdateStatus:n}=e,c=k.getLocalizedStrings().companyPassport,f=l.localData?.incInfo.fileId!=null?[l.localData?.incInfo.fileId]:[],d=l.localData?.taxDetails.fileId!=null?[l.localData?.taxDetails.fileId]:[];return{[Ie]:{...xa(l.localData?.companyInfo,["meetingLink"]),businessModel:{selectedOption:l.localData?.companyInfo?.businessModel,allOptions:c.companyInfo.allBusinessModels},website:l.localData?.companyInfo.website?.toString()??"",industry:{selectedOption:l.localData?.companyInfo.industry,allOptions:o?.map(r=>r.code)},firstMonthOfFY:l.localData?.companyInfo.firstMonthOfFY},[ve]:{...l.localData?.taxDetails,taxesFiledYears:{selectedOptions:l.localData?.taxDetails.taxesFiledYears.map(r=>r.toString())??[],allOptions:V.getYearsList().map(r=>r.toString())},einDocument:e.companyFiles.find(r=>r.documentType==="tax_ein"),fileIds:d},[je]:{typeOfInc:{selectedOption:l.localData?.incInfo?.typeOfInc,allOptions:c.companyIncInfo.allTypesOfIncorporation},stateOfInc:{selectedOption:l.localData?.incInfo?.stateOfInc,allOptions:c.companyIncInfo.allStatesOfIncorporation},incDate:l.localData?.incInfo.incDate?.toDate(),certificateOfIncorporation:e.companyFiles.find(r=>r.documentType==="certificate_of_incorporation"),fileIds:f},[De]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[Se]:Object.values(n).filter(r=>r.localData!=null).map(r=>{const u=r.localData;return{userId:u.userId,officerType:u.officerType,name:{firstName:u.firstName,lastName:u.lastName},email:u.email,phone:u.phone}}),[Oe]:{meetingLink:l.localData?.companyInfo.meetingLink?.toString()??""}}},Do=s.div`
553
+ `,we={width:new m(343,580,726),buttonWidth:new m(85,85)},_e="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",De="primaryContact",Se="companyOfficer",Oe="zeniFinanceTeam";function Wo(e){const o=P(),l=Ae(),{companyPassportView:i,isZeniUser:n,filesEndPoint:c,authParams:f,allIndustries:d,isDisabled:r,isSettings:u=!1,onCompanyDetailsChanged:y,onCompanyOfficerUpdated:b,onNewCompanyOfficerAdded:h,onPrimaryContactDetailsUpdated:$,onNewCompanyOfficerRemoved:I,onSaveAll:S,onAddressClick:j,onScheduleClick:g,onBackClick:O,onResetClick:D,onEditFileName:x,updateFilesEntity:B,onDeleteFile:me,onClickMenuIcon:K}=e,{companyView:J,localData:H,deleteFileStatusById:ke,updateFileStatusById:Te}=i,{companyFiles:te}=H,Ne={authParams:f,filesEndPoint:c,onEditFileName:x,onDeleteFile:me,updateFilesEntity:B},[Q,oe]=_.useState(void 0),{companyDetails:aa,primaryContact:ta,companyOfficerUpdateStatus:oa,updateStatus:Y}=H,{localData:le,addressStatus:la}=aa,Pe=ca(Y.fetchState),ie=Object.values(oa).filter(T=>T.localData!=null),W=da({mode:"all",defaultValues:Ye(H,d)});_.useEffect(()=>()=>{oe(void 0)},[]),_.useEffect(()=>{Pe==="In-Progress"&&(Y.fetchState==="Completed"||Y.fetchState==="Error")&&(W.reset(Ye(H,d)),Q!==Y.fetchState&&oe(Y.fetchState))},[Q,W,Pe,Y,H,J,d,te]);const ia=async(T,w)=>{if(T.includes(Ie)||T.includes(je)||T.includes(ve)||T.includes(Oe)){const{companyInfo:C,companyIncInfo:F,companyTaxInfo:A,zeniFinanceTeam:ue}=w;y({companyInfo:C,incInfo:F,taxDetails:A,zeniFinanceTeam:ue})}else if(T.includes(De)){$(w.primaryContact);const C=w.companyOfficer.map(F=>F.userId);if(w.primaryContact.userId!=null&&C.includes(w.primaryContact.userId)){const F=C.findIndex(A=>A===w.primaryContact.userId);F>=0&&b({...w.companyOfficer[F],name:w.primaryContact.name,officerType:`Officer_${F+1}`})}}else if(T.includes(Se)){const C=parseInt(T.split(".")[1]);if(C>=0)b({...w.companyOfficer[C],officerType:`Officer_${C+1}`}),w.companyOfficer[C].userId!=null&&w.companyOfficer[C].userId===w.primaryContact.userId&&$({...w.primaryContact,name:w.companyOfficer[C].name});else if(w.companyOfficer.length>ie.length){const F=w.companyOfficer[w.companyOfficer.length-1];h(F)}else{const F=w.companyOfficer.filter(A=>A.officerType!=null);if(F.length<ie.length){const A=F.map((ue,ra)=>{const Le={...ue,officerType:`Officer_${ra+1}`};return b(Le),Le});F.length<ie.length&&(I(`Officer_${F.length+1}`),W.reset({companyOfficer:A}))}}}};_.useEffect(()=>{const T=W.watch((w,{name:C})=>{C!=null&&w!=null&&pa(()=>ia(C,w))});return()=>{T.unsubscribe()}});const sa=W.handleSubmit(T=>{Q!=null&&oe(void 0),S()}),{companyPassport:se,common:{settings:na}}=k.getLocalizedStrings();if(J==null)throw new Error("Company View is null");return a.jsxs(Do,{children:[a.jsx(ma,{title:se.title,backgroundColor:l.colors.grey4,style:{zIndex:3},onBackClick:O,showBackButton:!u,showMenuIcon:u?o==="medium-compact"||o==="small":!1,source:"CompanyPassportPage",onClickMenuIcon:K}),Q!=null?a.jsx(Ja,{fetchState:Q,onRemoveSnackbar:()=>oe(void 0)}):null,a.jsxs(So,{children:[a.jsx(Oo,{windowSize:o,children:u?na.infoText.companyDetails:se.quickAccessInfo}),a.jsx(ua,{...W,children:a.jsxs("form",{id:Re(_e),onSubmit:sa,children:[a.jsx(ct,{sectionId:Ie,companyInfo:le?.companyInfo,companyViewData:J,companyAddress:la,isDisabled:r,onCompanyAddressClick:j,allIndustries:d}),a.jsx(Qa,{sectionId:je,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyIncInfo:le?.incInfo,fileProps:Ne,isDisabled:r}),a.jsx(Qt,{sectionId:ve,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyTaxInfo:le?.taxDetails,fileProps:Ne,isDisabled:r}),a.jsx(io,{sectionId:De,primaryContact:ta.localData,isDisabled:r}),a.jsx(ft,{companyOfficers:ie,sectionId:Se,isDisabled:r,onOfficerAddressClick:j}),a.jsx($o,{data:J,companyInfo:le?.companyInfo,isDisabled:r,isZeniUser:n,sectionId:Oe,onScheduleClick:g})]})})]}),ha(W.formState.dirtyFields)||V.isCompanyPassportDataToBeSaved(H,J,te)?a.jsx(fa,{formId:Re(_e),primaryBtn:{label:se.save,isLoading:Y.fetchState==="In-Progress",style:{width:we.buttonWidth.value(o)},isDisabled:e.isDisabled!=null},cancelBtn:{label:se.cancel,style:{width:we.buttonWidth.value(o)},onClick:()=>{W.reset(),D()}}}):null]})}const Re=e=>`${e}_form`,Ye=(e,o)=>{const{companyDetails:l,primaryContact:i,companyOfficerUpdateStatus:n}=e,c=k.getLocalizedStrings().companyPassport,f=l.localData?.incInfo.fileId!=null?[l.localData?.incInfo.fileId]:[],d=l.localData?.taxDetails.fileId!=null?[l.localData?.taxDetails.fileId]:[];return{[Ie]:{...xa(l.localData?.companyInfo,["meetingLink"]),businessModel:{selectedOption:l.localData?.companyInfo?.businessModel,allOptions:c.companyInfo.allBusinessModels},website:l.localData?.companyInfo.website?.toString()??"",industry:{selectedOption:l.localData?.companyInfo.industry,allOptions:o?.map(r=>r.code)},firstMonthOfFY:l.localData?.companyInfo.firstMonthOfFY},[ve]:{...l.localData?.taxDetails,taxesFiledYears:{selectedOptions:l.localData?.taxDetails.taxesFiledYears.map(r=>r.toString())??[],allOptions:V.getYearsList().map(r=>r.toString())},einDocument:e.companyFiles.find(r=>r.documentType==="tax_ein"),fileIds:d},[je]:{typeOfInc:{selectedOption:l.localData?.incInfo?.typeOfInc,allOptions:c.companyIncInfo.allTypesOfIncorporation},stateOfInc:{selectedOption:l.localData?.incInfo?.stateOfInc,allOptions:c.companyIncInfo.allStatesOfIncorporation},incDate:l.localData?.incInfo.incDate?.toDate(),certificateOfIncorporation:e.companyFiles.find(r=>r.documentType==="certificate_of_incorporation"),fileIds:f},[De]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[Se]:Object.values(n).filter(r=>r.localData!=null).map(r=>{const u=r.localData;return{userId:u.userId,officerType:u.officerType,name:{firstName:u.firstName,lastName:u.lastName},email:u.email,phone:u.phone}}),[Oe]:{meetingLink:l.localData?.companyInfo.meetingLink?.toString()??""}}},Do=s.div`
554
554
  display: flex;
555
555
  min-height: 100%;
556
556
  flex-direction: column;