@zeniai/web-cockpit-ui 1.14.10-qa → 1.14.11-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.
- package/dist/assets/ACHDetailsPage-D6-Uk4xr-CqCQg7ha.js +21 -0
- package/dist/assets/{AIPerformancePage-FvDkFQx9-DcdCslTz.js → AIPerformancePage-pQP8EI_S-DOdJRYuT.js} +49 -49
- package/dist/assets/{AccountInfoPage-RM6DvvVS-Dg1PKEt4.js → AccountInfoPage-DxAa9GD7-BDuKQBCM.js} +5 -5
- package/dist/assets/{AccountInfoPageContent-DEG1tMaK-B-d3bj1J.js → AccountInfoPageContent-tNTpX5pA-DZsnTAw6.js} +17 -17
- package/dist/assets/{AccountReconDetailsDrawerPage-CiegEtwy-C9r2CYLq.js → AccountReconDetailsDrawerPage-CbZaDfU0-D6InUwmP.js} +13 -13
- package/dist/assets/{AccountRow-DDUdlArT-CdXNJ8jC.js → AccountRow-BpBK8mVs-D3-rIOZV.js} +33 -33
- package/dist/assets/{AccountsPromoCardStack-Q7ppOy47-BGGU4_sD.js → AccountsPromoCardStack-DBCYok4Z-BX2c8K6j.js} +35 -35
- package/dist/assets/{AddAddressForCardDrawer-C2us9OcV-B8z5J7QB.js → AddAddressForCardDrawer-BP8sDedz-fAvU3zAk.js} +2 -2
- package/dist/assets/{AddToWalletPage-B75ejfsy-DpB5cFz0.js → AddToWalletPage-Dsw1GIbh-C-TkI1oG.js} +26 -26
- package/dist/assets/{AgingReportsPage-mEhdjkho-hcvDKcgL.js → AgingReportsPage-COC3iACh-ihUmY_za.js} +8 -8
- package/dist/assets/{AllUserItems-o4xGLdQM-BpAFbzz9.js → AllUserItems-DKoDASKq-BK1HOlxO.js} +10 -10
- package/dist/assets/{ApAgingDetailPage-C0Y88nfk-DI6bAf1B.js → ApAgingDetailPage-BKAJMyRm-D4FAXjMB.js} +2 -2
- package/dist/assets/{AppBasePage-DKAxmkIN-B5cIKVeZ.js → AppBasePage-6fgXwSBv-PwB9ZP6-.js} +6 -6
- package/dist/assets/{AppDrawerContent-DLn3w253-BfJPK8Sb.js → AppDrawerContent-DnYw60Xv-DEM6VfAx.js} +19 -19
- package/dist/assets/{ApprovalRulesSettingsPage-vBjp3xy--CbC8uzzu.js → ApprovalRulesSettingsPage-X4EYoBfl-BbXFDQ_-.js} +5 -5
- package/dist/assets/{ArAgingChart-C3yYcTfo-Cp6SttRr.js → ArAgingChart-CNghm3pm-Dc-aS72N.js} +6 -6
- package/dist/assets/ArAgingDetailPage-DD4M5tUJ-CHn9GwO8.js +46 -0
- package/dist/assets/{AttachmentView-B4hoO1b8-BTGm5cj6.js → AttachmentView-Bp678glv-Bz7vnOLP.js} +7 -7
- package/dist/assets/{BankAccountSection-CdIpgwVZ-UKuk-CyP.js → BankAccountSection-DCHOrv1O-CHEMQ8hk.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-COSdSiAy-Bu35qgEq.js → BankAccountWarningSection-Bof6a4Ai-D6cSyNpo.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-hNpSoqlw-N7cxSBLs.js → BankConnectionsSettingsPage-KWPfd_oN-Cw1WYpDv.js} +11 -11
- package/dist/assets/{BillDetailPage-CJX3QbcW-C0-YF6Gp.js → BillDetailPage-D5FyJKQZ-F16Zazrc.js} +8 -8
- package/dist/assets/{BillPayApprovalRuleDetailPage-CUxCgQSj-BqWIDd56.js → BillPayApprovalRuleDetailPage-C17DUKc8-dVTzDWJq.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BAfgqIvl-BWZ3pAoi.js → BillPayApprovalRulesPage-C6b0Dx9D-GKQByTVv.js} +10 -10
- package/dist/assets/{BillPayPromoPage-D25teFTJ-BkPBQsPI.js → BillPayPromoPage-BhbcKNjD-Dc50ymZA.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-D9ovPwFv-DX53TV_h.js → BillPaySetUpPage-DFkYsW2C-ejvkAWu2.js} +2 -2
- package/dist/assets/{BillingSettingsPage-DBEk-yIg-Ch8FGWV2.js → BillingSettingsPage-DQ-GDRoK-DLGZh1Tj.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-CZUNCQ7j-CP0pFg0D.js → BillsBulkReviewDrawerPage-DzTwDeIy-Ds5BqJGh.js} +1 -1
- package/dist/assets/{BoxItem-BtIxBKUQ-DtJ3R-PB.js → BoxItem-a04JWA45-DJp9lW-u.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CXeA666i-BPWT62Lw.js → BusinessVerificationPage-BCr_ObVJ-OqegkAuZ.js} +12 -12
- package/dist/assets/{CardNumberSubText-Bakmjdzp-lSIgWyzd.js → CardNumberSubText-B5ejHnml-CLY9anWS.js} +1 -1
- package/dist/assets/{CashbackDetailPage-yC6NiWvx-DcDuCeaB.js → CashbackDetailPage-DX_XsNhS-BMZOysYo.js} +25 -25
- package/dist/assets/{ChargeCardDetailPage-DD0_CjGJ-BzEh2X_h.js → ChargeCardDetailPage-Ckbi7U9j-D_fwMr5K.js} +57 -57
- package/dist/assets/{ChargeCardListPage-C_Wxtym7-j7bJNLel.js → ChargeCardListPage-CglfbPqr-D7muWz7z.js} +20 -20
- package/dist/assets/{ChargeCardListTable-tXjQM1HV-Dzwl1fw-.js → ChargeCardListTable-BxAeA97m-C-BUBRdZ.js} +41 -41
- package/dist/assets/{ChargeCardPromoPage-BAovEsQH-Ek96Dkwb.js → ChargeCardPromoPage-BfsQUUYb-D4zqkYsh.js} +31 -31
- package/dist/assets/{ChargeCardSetupPage-BFjo3XpM-CdAKgoQN.js → ChargeCardSetupPage-Bq953HsV-BJMN-xIh.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CvC1casY-b7_8UBZI.js → ChargeCardStatementsPage-B_5uvkaq-QS7pzZOg.js} +10 -10
- package/dist/assets/ChargeCardUtils-Bivw83fy-L79bEW0e.js +1 -0
- package/dist/assets/{ChaseOverlay-DONL-nDR-De0YjgVf.js → ChaseOverlay-LcVAgdoT-D1Jb2EIj.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-SpI62oU7-Q03dZELD.js +206 -0
- package/dist/assets/{CollapsableReportTable-C2cQTlA6-CvrNaDb7.js → CollapsableReportTable-CKmPwC_x-DvM2BIk1.js} +57 -57
- package/dist/assets/{CompanyOfficerDetailsSection-ChVkSOtw-B7Y0Et92.js → CompanyOfficerDetailsSection-BlLsNJaD-grOU-fb_.js} +28 -28
- package/dist/assets/{CompanyPassportCard-CLWfLYZT-DVRouOGL.js → CompanyPassportCard-ElwK6uOD-uKq6JSMM.js} +8 -8
- package/dist/assets/{CompanyPassportPage-B6_oWdN9-w2LzORF3.js → CompanyPassportPage-B6mGjsJZ-QyXjNlOK.js} +7 -7
- package/dist/assets/CompleteProfile-C1PIn6EM-BoaPrgBO.js +52 -0
- package/dist/assets/{ConfettiBurst-CfEQKUn_-BJZZqkje.js → ConfettiBurst-CjhkW_Be-tE_S1zJ3.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-7mYLNzcH-OQ44iBIB.js → CreateOrEditVendorPage-DHvmRSee-B7H_LsnK.js} +15 -15
- package/dist/assets/{CreditCardPaymentDrawerPage-DM0awVZu-BvoWvCAp.js → CreditCardPaymentDrawerPage-BIaTYAUf-Rj5ttUPd.js} +11 -11
- package/dist/assets/{CreditCardPaymentPlgSection-C3pH8AzC-xAcXkp7A.js → CreditCardPaymentPlgSection-mUqReF9z-IZFYMes7.js} +12 -12
- package/dist/assets/CurrencySelectField-DS-pGcuE-DLCIpnvb.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-DfQCMxvl-CfW_8NyT.js → CustomerOnboardingActivationPage-CIOyRd8r-BQMewqvn.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-Lh0xH_Pl-cw9bBAdD.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-m2chMg_F-DP-_bCgy.js → CustomerOnboardingDetailPageSkeleton-A_l9Qen8-BtaF5eWl.js} +13 -13
- package/dist/assets/{CustomerOnboardingNoStepsPage-C4_D_p4k-CVpSN_84.js → CustomerOnboardingNoStepsPage-D5BcbVEK-CYF4Do82.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-XbpuMewL-BK1qx-Jf.js → CustomerOnboardingPage-N-8Zd7M_-BLw-RmQq.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-DD3ipEqZ-gVuFEpCL.js → CustomerOnboardingProductSuitePage-DZwacur5-CHyEWXN_.js} +8 -8
- package/dist/assets/{Dashboard-zs5L4G5s-BLp57MMW.js → Dashboard-CQoNm84Z-CGt51QX0.js} +1 -1
- package/dist/assets/{DashboardReportPage-BRkeSLqR-D4ftlofc.js → DashboardReportPage-D4BoWobJ-DB51j3mA.js} +13 -13
- package/dist/assets/{DepositAccTransactionItem-DdxEaiop-BBckVxk_.js → DepositAccTransactionItem-C6_OrohL-DcY3deV_.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-Cxvs7tMg-CslTnL-f.js +66 -0
- package/dist/assets/{DocumentSecurityBanner-BmCXnsqt-DLm91H5a.js → DocumentSecurityBanner-Bo9Hgo-I-DBmSgZgH.js} +2 -2
- package/dist/assets/DomesticWireDetailsPage-DzKlJFvy-D6rsk0GH.js +21 -0
- package/dist/assets/{DownloadOverlay-D18IYrMS-DZ5Hslzj.js → DownloadOverlay-BoIyiJ9R-BzDhGwzl.js} +25 -25
- package/dist/assets/{DrawerPage-EcuR8TES-qibKglza.js → DrawerPage-C_kxrXIc-CYxcqhiW.js} +5 -5
- package/dist/assets/EditPeoplePage-auUWC3gB-DhunvsTv.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-z7CJ9Vy4-BdjzHntY.js → EditReimbursementDetailPage-C-Lj-_YG-D3CWZXPH.js} +68 -68
- package/dist/assets/{EntityDetailPage-OvuxHiOz-BB6uo_VR.js → EntityDetailPage-Cqkhzu9O-CQdpKsUY.js} +3 -3
- package/dist/assets/{EntitySummarySection-D5L6gsZR-ICyFTmrF.js → EntitySummarySection-Dqgxknt6-CcorkWsq.js} +3 -3
- package/dist/assets/{ExpenseAutomationOverviewPage-CM7a5B8w-BqZToXAr.js → ExpenseAutomationOverviewPage-CEsyeJ9u-IlYsieJj.js} +22 -22
- package/dist/assets/{ExpenseAutomationPage-C0HfVK2q-Bjwf1eOa.js → ExpenseAutomationPage-DxpK2JR5-b76Jf9fI.js} +84 -84
- package/dist/assets/{ExpressPayPage-CeHVuoHN-CQaWJLyc.js → ExpressPayPage-DBWJERD9-DkcgiQRL.js} +12 -12
- package/dist/assets/FeaturePreviewPage-CwGJVCMk-c-nKLWL3.js +11 -0
- package/dist/assets/{FollowStepsSection-BazOZlaE-DDXU5Ssd.js → FollowStepsSection-BrJecw-e-CQdWJjWJ.js} +13 -13
- package/dist/assets/{GlobalReviewListPage-B7OzhHDj-sxly0nyY.js → GlobalReviewListPage-Duoi9mD_-Der2mhxZ.js} +8 -8
- package/dist/assets/{HelpButton-DY1MpMsB-KbKqlw38.js → HelpButton-C1djo0zO-BW6NBTNW.js} +5 -5
- package/dist/assets/{InformationCardStack-DTZ5U5HN-CApUz4e2.js → InformationCardStack-BE5eaq-x-7TOfUxxA.js} +5 -5
- package/dist/assets/InsightsCardStack-EzAsNm_U-Cm_xrDcd.js +79 -0
- package/dist/assets/{InsightsSection-CLnISnUP-MBzDtn2E.js → InsightsSection-nzKuS0T9-CcXyZxZ8.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-_Z5zEjw7-Bb2Qdxl-.js → IntegrationsSettingsPage-45ETlpC6-ClhfPkcQ.js} +7 -7
- package/dist/assets/{InternationalWireSwiftDetailsPage-Dz-fxrmb-CpUwldlm.js → InternationalWireSwiftDetailsPage-B21X5YFS-DWJjZuCw.js} +15 -15
- package/dist/assets/{InternationalWireVerificationPage-ncEPxfAh-C6NGfmNG.js → InternationalWireVerificationPage-BzagdPaG-Cl81RiNZ.js} +17 -17
- package/dist/assets/{InviteFormPage-DWlnBCXL-SVZhUt0X.js → InviteFormPage-BNdBP-Mm-BdFbqKES.js} +25 -25
- package/dist/assets/{InvitePageListView-Cmi49FoL-FaQb5PXP.js → InvitePageListView-ChzmK7Rt-D29gFXI6.js} +51 -51
- package/dist/assets/InvitePeoplePage-DgqE2Y-0-DKu709Rv.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BYgUZr3e-B5ZzCOUA.js → InvoiceUploadSection-B8o-l15n-Da7WgU-0.js} +41 -41
- package/dist/assets/{IssueChargeCardPage-Bmoi1yP8-7XttLy41.js → IssueChargeCardPage-BW0cXQqh-BmbmlACe.js} +27 -27
- package/dist/assets/{LabeledAddressValue-OqCEk1VW-CIF29038.js → LabeledAddressValue-BioQUVCV-fsudcvfQ.js} +1 -1
- package/dist/assets/LabeledAddressValueField-Cw-p18du-D9T5QqTG.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-BZrJseng-9-Obm_Rv.js → LabeledControlledCheckBoxField-CGT7KsYZ-jRPtCjyI.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BjjLKIq--CKme-Zbq.js → LabeledCreatableSingleSelectField-nys9pbO0-0SJcSq-w.js} +3 -3
- package/dist/assets/LabeledDocumentField-Y6TKpyZ8-CW27Za_m.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-1sZGnKTM-y7e2QJmr.js → LabeledDropDownFormattedTextField-DWP9oUzM-TYwr2dWi.js} +7 -7
- package/dist/assets/{LabeledText-DZTriBfN-CwwPr2Y1.js → LabeledText-QrjXGWwJ-Csl1kB9E.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BNPUM7x0-B-sTwPBI.js → LabeledUserSingleSelectWithSubtitlesField-BK9XCXKo-CRz-dhMo.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-Ce4KKZiS-B6byb8PO.js → LabeledZeniRolesDropDownField-C2PAZOPW-ChSwcxj4.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-DoaNWTmr-odUN47aO.js → LinkJETransactionPage-BF6-BdWE-DO5i53f_.js} +8 -8
- package/dist/assets/{LowBalancePopup-BOTHNsR0-CoxyAFcB.js → LowBalancePopup-ZZ8Ap8Ls-CO5moJjL.js} +5 -5
- package/dist/assets/{MagicLinkACHDetailsPage-CD76NDYI-Ve2NJ-iM.js → MagicLinkACHDetailsPage-BDXiOwx_-D5AHGKn1.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BsikAXMr-DhE6Ut2B.js → MagicLinkDomesticWireDetailsPage-B1-CK91r-BBsb3LWh.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-zu3TnX0Y-lP-Se4cs.js → MagicLinkInternationalWireDetailsPage-D2rnWzME-pHczJsmC.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-IHajRicG-TvKR0rcg.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CD_v3J8N-DW6D0fJX.js → MagicLinkTitleSection-CmTUPCA1-crT0_cjI.js} +4 -4
- package/dist/assets/MailingDetailsSection-AiehjqI1-CrcmbjEa.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-gItmg01b-Cu9NWj0e.js → MeetingCalenderPopup-COpKcBhx-C1b7HyPI.js} +1 -1
- package/dist/assets/{Menu-vFgR8B3A-uLxvXXvL.js → Menu-frAXxk4e-ChxiZJil.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-NhLBy2nV-CLratIrJ.js → MyBankConnectionsSettingsPage-BtC6C9fL-CIbylXW-.js} +13 -13
- package/dist/assets/{MyPendingActivationChargeCardListPage-CNb4v74Q-D4I0sjao.js → MyPendingActivationChargeCardListPage-tXIpyxdq-DyLbYr-a.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CXcH5h3K-Cic_ZJ4q.js → MyProfileSettingsPage-BmMskLyK-BRbEv4qP.js} +8 -8
- package/dist/assets/{NavBarWithPicker-B1g4GR8h-BHoASNPV.js → NavBarWithPicker-ByLynfu6-DkhTP5l5.js} +6 -6
- package/dist/assets/{NavigationArrow-CKb8oJym-BKEHFfza.js → NavigationArrow-D5-YpdfE-BYBuxDoB.js} +5 -5
- package/dist/assets/{NavigationDots-Bgh-o0zo-K6CBNKPZ.js → NavigationDots-MA8SVlUT-BNaROjbH.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CTavGrPU-D58PJEdd.js → NewGlobalMerchantPage-DtTW2Du8-teWW5fR7.js} +21 -21
- package/dist/assets/{NoDataChart-CtPlddxs-DjKWZv7Z.js → NoDataChart-BdzVnx59-Zwl7GRg0.js} +1 -1
- package/dist/assets/{NoDataTable-Dibdh8Pj-QVM7mj96.js → NoDataTable-B4J5Ou18-BjRs61V8.js} +1 -1
- package/dist/assets/{NotFoundPage-yGvtm3rH-Bd-Bemtd.js → NotFoundPage-BeAXQOme-HRJfFoZt.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DOmx9OZh-CqYXpA0c.js → NotificationSettingsPage-CRZRet42-B4tscA88.js} +13 -13
- package/dist/assets/{NotificationsListConfig-Bz1-bZtB-FVI5Vj_m.js → NotificationsListConfig-CkSDaMij-aj-ed0aI.js} +1 -1
- package/dist/assets/{NotificationsPage-CQ_3esFr-BqBUQ__h.js → NotificationsPage-Dqe96fU8-DGXpNPVr.js} +32 -32
- package/dist/assets/{OpExByVendorPage-BjqGlQrk-BFgfXC36.js → OpExByVendorPage-CXtkN87m-D6OjOLM9.js} +7 -7
- package/dist/assets/{OverlayContainerPage-GWXnlbZH-ei-9RlC_.js → OverlayContainerPage-Cy_Jxf8N-B2CxgCWd.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-juNL-o7I-DMQaebm1.js → PandLWithForecastPage-DTOqkynU-9NyuYxx1.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BxQrIZmE-B_q4GQV2.js → PaymentAccountSetupBillingAddressSection-C6WFeB3A-C9tSnFrF.js} +11 -11
- package/dist/assets/{PeoplePage-BfwpGELm-DqbV3EEG.js → PeoplePage-D-j114xg-s5ngzrYI.js} +1 -1
- package/dist/assets/PortfolioAllocationFormPage-C4XzSjzr-AaZTXsTp.js +207 -0
- package/dist/assets/{PortfolioDetails-BaLVprV9-s_70y1hl.js → PortfolioDetails-Bbfo0XDo-F8wi_TkN.js} +29 -29
- package/dist/assets/{ProductsCarousel-DSwEQiRo-wKmJuLus.js → ProductsCarousel-COUx0Xdj-Bk25WJ5z.js} +6 -6
- package/dist/assets/{PromoBaseCards-CDbwBfld-DHXh6Jz5.js → PromoBaseCards-DG1CAZvU-Kp-BaaPo.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-BKEVg_Tw-DfDc7Zj1.js → QBOConnectionDialog-DLVcifji-BzsFl8lU.js} +10 -10
- package/dist/assets/QBOSetupSection-BeRZZ-Q_-a6rhf4W-.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-CrbiufS3-Bj0-a-7-.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-BaI1dJWO-hai_N-Le.js → ReimbursementApprovalRulesPage-CTk2aZMz-oZhsGYfa.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-CDoMkRc0-D7z4FCni.js → ReimbursementDetailPage-BofsP0W--DVgChjvg.js} +17 -17
- package/dist/assets/ReimbursementPromoPage-CA2cUBsx-DqpwfsT0.js +112 -0
- package/dist/assets/{ReimbursementSetUpPage-C6ZSl21b-BhOccRNG.js → ReimbursementSetUpPage-Em6S1wkj-DAxU1I0b.js} +8 -8
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DRm_RSSq-CMj-h4BM.js → ReimbursementsBulkReviewDrawerPage-DpWChhvB-CNq5fdbL.js} +1 -1
- package/dist/assets/{ReloadCard-B1X0QtRR-BXScvMmg.js → ReloadCard-CZ1Ix5em-CJhVpNi9.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-2gwwu23O-D4SUAhgu.js → ReportTableViewSelector-BRA3CT_O-BWHSw_d5.js} +28 -28
- package/dist/assets/{ReportsPage-C4ry6Xjl-DWRSq16N.js → ReportsPage-CauV3wnZ-Bfok01xk.js} +5 -5
- package/dist/assets/{RevenueChart--mJZgy8C-Cgs7A_Xi.js → RevenueChart-BeM_1hYw-DP9fkCbH.js} +12 -12
- package/dist/assets/{ReviewDetailsPage-Dg_NdNMf-C6JTFr2b.js → ReviewDetailsPage-C5xC8Cf1-Bcj2cFMw.js} +16 -16
- package/dist/assets/{ReviewOverlay-C-9oLsRU-CZUg6lpm.js → ReviewOverlay-DdWa7GLG-YdWdWayu.js} +15 -15
- package/dist/assets/RoleWithToolTip-BP8MTZdU-BOm9Us2_.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DICnGQP9-eOvUkGGr.js → ScheduleDetailsFixedAssetsPage-BlhhW9A6-Cgf6Hq7_.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-BvkYaxXa-C15O7RkB.js → ScheduleDetailsPage-BKWKZuAL-CQ6iSQsN.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-Cv62faKa-M34Bvr--.js → ScheduleSequenceTable-BzWPTqDM-Dgu5c0RS.js} +50 -50
- package/dist/assets/{ScreenRoutes-DF9_ndl0.js → ScreenRoutes-BBcvidtT.js} +62 -62
- package/dist/assets/{SetUpAccountSection-DwkklztZ-CvvkeLO0.js → SetUpAccountSection-Trj1x2HL-CiAxSNYR.js} +23 -23
- package/dist/assets/{SetUpDefaultSection-Chh_3U0h-DP32jEG1.js → SetUpDefaultSection-BQzNGjO7-an74W3Da.js} +8 -8
- package/dist/assets/{SignIn-CoM3gLF4-CxYJZHsh.js → SignIn-Duk9PNwU-Y2eo5FDG.js} +12 -12
- package/dist/assets/{SignInScreen-CgRLE79n.js → SignInScreen-BDl851xo.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-rf8IhIOU-BST9K3MV.js → SpendManagementListViewPage-CREdM633-Cg0NFbb7.js} +6 -6
- package/dist/assets/{SpendManagementPerTabPage-KLrMZOg6-pZeNXzmX.js → SpendManagementPerTabPage-BZ6ISWXe-BYNegFz5.js} +28 -28
- package/dist/assets/{SpendManagementSection-CbbqZI-h-CVwzMKo9.js → SpendManagementSection-bMsztUap-upI-ZdzC.js} +13 -13
- package/dist/assets/{SpendMgmtSetupAccountSection-BfwEbse9-CCE4LYic.js → SpendMgmtSetupAccountSection-Btdtp-ry-M7exC_NJ.js} +18 -18
- package/dist/assets/{StatementItem-DEvMOqc4-CScSh11D.js → StatementItem-XLqlrHIu-VoU4RUpG.js} +5 -5
- package/dist/assets/{StatementsPage-DNsm7q52-ajRuJ1oP.js → StatementsPage-DWiXiOFU-DZPVh_4x.js} +4 -4
- package/dist/assets/{StatusSwitcher-BdfUDJ2e-D4dCUyMA.js → StatusSwitcher-D1XZ-pbx-DwwsmfkA.js} +4 -4
- package/dist/assets/{SubTabSwitcher-o0RxZAky-CeSW8fRP.js → SubTabSwitcher-Bt3F7ANv-e4DBICdr.js} +7 -7
- package/dist/assets/{SummaryCard-DQ4ZyfBH-D9XxMBaO.js → SummaryCard-edbbHOmb-DIbjh5sC.js} +1 -1
- package/dist/assets/{TaskManagementPage-BVNWrtPC-D_5VYMB9.js → TaskManagementPage-BhtJBdco-CawcFnLk.js} +26 -26
- package/dist/assets/{TimeRangeSwitcher-CD16lox0-Bi5yNRU7.js → TimeRangeSwitcher-D9KzhRYO-DSUt4L30.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-C7i0JFHk-Y8yZXQA6.js → TimeframeSwitcher-CbEHKZvd-CUipNC15.js} +4 -4
- package/dist/assets/{TimeframeSwitcherWithToggle-D35sc3g8-CG8BhQxV.js → TimeframeSwitcherWithToggle-Cb91RXpD-Bqbdu9xs.js} +2 -2
- package/dist/assets/{TopExCard-bgf-w40u-DTYDqUmn.js → TopExCard-DD9Rf9T6-CfNVkG6m.js} +5 -5
- package/dist/assets/{TopExDetailPage-CUiZ2o0r-Cjf8s50F.js → TopExDetailPage-DaDuwFrj-BOsQHlTA.js} +16 -16
- package/dist/assets/{TransactionDetailPage-C50JQjnc-BhybCWFY.js → TransactionDetailPage-0fIW4o-6-BKhKFulx.js} +34 -34
- package/dist/assets/{TransactionList-nnfPsJZc-BFMNvdxG.js → TransactionList-CLjBadiP-By9OtkVt.js} +8 -8
- package/dist/assets/{TransactionListBig-BNanyUhE-B8m5ZzrI.js → TransactionListBig-CwBxP1xB-DEm91bPU.js} +24 -24
- package/dist/assets/{TransactionListPage-kQOGZBz8-7Xlasrzv.js → TransactionListPage-S1nTM7Yy-Hu_PcxrN.js} +3 -3
- package/dist/assets/TransactionVendorDetailPage-CTTTAais-CKKUnVWe.js +80 -0
- package/dist/assets/{TransferDrawerPage-NOLm9zmx-BS3ryUJB.js → TransferDrawerPage-BJDNWagE-B5RBpIT8.js} +26 -26
- package/dist/assets/{TreasuryOverviewPage-Doo6fmEl-l6_Fc322.js → TreasuryOverviewPage-DB-ZH19K-0cVLv_tv.js} +31 -31
- package/dist/assets/{TreasuryPromoPage-CyowAl6A-B4fxQydj.js → TreasuryPromoPage-3MwRPpCt-B5X2lU4M.js} +21 -21
- package/dist/assets/{TreasurySetupPage-DZdd0DpR-vdFV4pXJ.js → TreasurySetupPage--G4JCzdh-Ck5w0LPU.js} +10 -10
- package/dist/assets/TreasuryStatementsPage-DBykLGfz-gFLjSnAI.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-DgbrzE9u-BsWgo8r5.js +58 -0
- package/dist/assets/{TreasuryTransferOrReviewPage-BuL0YxIE-PNl-v8dv.js → TreasuryTransferOrReviewPage-ByM1UIiU-CjSaFqgC.js} +44 -44
- package/dist/assets/{TrendChart-C5-sKlos-DGmmfqs4.js → TrendChart-B0CS3MXT-D7qhkgQT.js} +3 -3
- package/dist/assets/{TrendWithTransactions-CZx5tt-z-CQJe1m4b.js → TrendWithTransactions-D4OAA6yK-BF-AbaMY.js} +9 -9
- package/dist/assets/{UncategorizedAccountsMappingPage-BVma5qcZ-Dbxb7bjD.js → UncategorizedAccountsMappingPage-C6jaWqrE-zTG-_1nm.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-ZRhbEzdQ-ClCYRwoC.js → UnitIntegrationPage-5LOvIFvr-Bzw8mu6B.js} +5 -5
- package/dist/assets/{UploadAdditionalDocumentOverlay-BpJ_tRy_-9uQh_UHt.js → UploadAdditionalDocumentOverlay-CLQLrn0v-SNsFu9LY.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-CQbY2KbX-DxjPrntR.js → Vendor2FAPopup-BOl520xa-LnECkqk5.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DcDtOkiR-C2D4Yw60.js → VendorACHDetailsPage-B5jKUOjo-CQSiDv6a.js} +1 -1
- package/dist/assets/{VendorDetailPage-CHhJsnOa-Bqq4fZva.js → VendorDetailPage-B0GRXPKg--VPcZWOw.js} +15 -15
- package/dist/assets/{VendorDomesticWireDetailsPage-BIwYrLOl-RRT_tSUL.js → VendorDomesticWireDetailsPage-CeI3QihK-q_cf3oNF.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-gnNbtQoj-DGAYWfCe.js → VendorFiling1099EditablePage-aNGSdZBf-MeHUgDES.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-Bj3eqx7P-CZXmjVPM.js → VendorFirstReviewPage-CjwnZLcm-DmkymrJ0.js} +40 -40
- package/dist/assets/{VendorInternationalWireDetailsPage-B_jwfV7H-BL3lT3ir.js → VendorInternationalWireDetailsPage-w-46Xxg--xMskWvbV.js} +15 -15
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CvIV-HFr-D1Hc50Za.js → VendorInternationalWireSwiftDetailsPage-C5dogij9-DD3MG-8Z.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-B2hWDuz0-YoT_oAP8.js → VendorsAccountsSection-DBYoP6us-C4im8TRF.js} +8 -8
- package/dist/assets/VerifyDevice-C-ZVbaIJ-BL0Q3Y3x.js +67 -0
- package/dist/assets/{WarningsDrawerPage-BBC1azy1-z1JqhFaT.js → WarningsDrawerPage-CZcR7kH4-sqfZfsTI.js} +22 -22
- package/dist/assets/{ZeniAccountDetailPage-mfrQO3zP-DHbG-Qat.js → ZeniAccountDetailPage-C-NQEE2--DiLlSCD5.js} +28 -28
- package/dist/assets/{ZeniAccountListViewPage-CCurA7tm-B1ByeEoa.js → ZeniAccountListViewPage-Cb8Ptf-w-Bz8qB5Gm.js} +20 -20
- package/dist/assets/ZeniAccountNavBarPieces-DX2iXF2E-CQG9bWdR.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-DgGD7ggF-FgyRM55s.js → ZeniAccountPromoPage-D5ihjbrM-uye9J5Yp.js} +29 -29
- package/dist/assets/{ZeniAccountSetupPage-D4z2k7G7-D3CuRZMF.js → ZeniAccountSetupPage-BRxz_tnh-hDbWbkKw.js} +5 -5
- package/dist/assets/{ZeniCopyright-BdLzk7SF-CQiuH4cG.js → ZeniCopyright-Bi82glrb-Dz0CNsex.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-B4d4bp7D-Cs4p2KhU.js +63 -0
- package/dist/assets/{analyticsHelper-CzlOBCzS-Ba5yCVi8.js → analyticsHelper-D3DK7bgU-BvVFcTDm.js} +1 -1
- package/dist/assets/{analyticsHelper-BUf1K4hx.js → analyticsHelper-DijVlDk5.js} +1 -1
- package/dist/assets/{chartTypes-D-nEr9EI-C0zQa7Wt.js → chartTypes-DJY-6KK0-Bzq8Fcov.js} +1 -1
- package/dist/assets/{commonDimensions-DtXIXXfP-CxfCVUIm.js → commonDimensions-DRK1vfDX-CO7PCzy1.js} +1 -1
- package/dist/assets/{detailCommon-DZhn8ANF-DY0XYP-1.js → detailCommon-6K-6m9pv-2y9fI_2t.js} +9 -9
- package/dist/assets/{downloadPdf-BaFOiUYP-BhMvbAM3.js → downloadPdf-DAA4T-qo-CPXN54rf.js} +1 -1
- package/dist/assets/{index-C7yzTmij.js → index-CIAgrDi2.js} +4247 -4147
- package/dist/assets/{mapLoadingInProgressToTreeNode-VAL73To4-9VVcQ3qA.js → mapLoadingInProgressToTreeNode-BAlOrI07-CQVT-QlQ.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C-2C7Gbr-Cj6NIyHy.js → mapSectionWithAcOnlyToTreeNode-Bk-EXs-E-B9fPZZTu.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-vdqGP9FL-vsW_sRyC.js → mapSpacerToTreeNode-Cxd9BEJr--PDlNxOC.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BwlF2Rvj-B2Id_UlX.js → mapTimeframeBalancesToTreeNode-BzFUtqqU-DR76PT1e.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BFzyitoJ-DfU4qVFa.js → mapTimeframeBalancesToTreeNode-Cf8fsAZJ-D1uR1QLu.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BhkQsZRW-Cbnmx738.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CZMzZg1q-oHDpC_ju.js} +1 -1
- package/dist/assets/{play-icon-Dzfx02ir-dG88rl_z.js → play-icon-DY_hSiAf-DitmQkz7.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DN6cSuKb-DdLSsatB.js → toCOABalancesWithID-BaqBVqJ_-1rnUe3A4.js} +1 -1
- package/dist/assets/{toChartData-Bc3LMl7f-CXw-Y0dZ.js → toChartData-7MYPev1U-zJcYDtq1.js} +1 -1
- package/dist/assets/{treasuryColorHelper-Cv4RwMTx-Bw9OTLfX.js → treasuryColorHelper-CDhLDRLr-CltoUNO8.js} +1 -1
- package/dist/assets/{uploadAttachment-CxtYyGQy-CCbkX8ir.js → uploadAttachment-DqCoxBNU-CxpASWHI.js} +24 -24
- package/dist/assets/{uploadReceipts-D80JLNY4-COsGXapR.js → uploadReceipts-CU1mDxNv-0vPSSd-N.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-fN9d1vam-BnY47sVD.js +0 -21
- package/dist/assets/ArAgingDetailPage-DlmXkANV-D50f3oY6.js +0 -46
- package/dist/assets/ChargeCardUtils-EeXYTubM-APgPlZEM.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-Da9ApPLD-DB3AcRhF.js +0 -206
- package/dist/assets/CompleteProfile-D_6UvHbF-Zc2ZxSIy.js +0 -36
- package/dist/assets/CurrencySelectField-DuZRNdJ7--Tr2SnT9.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-BuVNUdQ_-BSSyR5Rm.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-C-4zU6U_-CAplFsmy.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-D3nSUYmr-DrDa4yas.js +0 -21
- package/dist/assets/EditPeoplePage-66twBgmc-pJSx1vDb.js +0 -55
- package/dist/assets/FeaturePreviewPage-FQsE4Qv8-rwV6xMgo.js +0 -11
- package/dist/assets/InsightsCardStack-D0wOSPaM-DgAtskKg.js +0 -79
- package/dist/assets/InvitePeoplePage-CL18FIeI-B4oObmQg.js +0 -12
- package/dist/assets/LabeledAddressValueField-fBxHfsjV-B45FeAVL.js +0 -45
- package/dist/assets/LabeledDocumentField-54KXTRM_-BBD50qxr.js +0 -41
- package/dist/assets/MagicLinkSuccessPage-BICciyLs-C8NFMe8v.js +0 -31
- package/dist/assets/MailingDetailsSection-Cce0Hg2V-fhJvFQv1.js +0 -21
- package/dist/assets/PortfolioAllocationFormPage-CmUaCrrW-CYMtoDWk.js +0 -207
- package/dist/assets/QBOSetupSection-CAtx-T_9-o42Omplj.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D0YkHEiY-Cd6_u7cb.js +0 -26
- package/dist/assets/ReimbursementPromoPage-DpBahcUT-CBe_bgtf.js +0 -112
- package/dist/assets/RoleWithToolTip-BPrl2KpS-CivGY3G2.js +0 -22
- package/dist/assets/TransactionVendorDetailPage-D2OO73Ia-CN6sZZEi.js +0 -80
- package/dist/assets/TreasuryStatementsPage-Dfw94h0a-BYoZAju1.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D83IlTZG-C592xnfc.js +0 -58
- package/dist/assets/ZeniAccountNavBarPieces-CV5znR_M-WVZrWgkt.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-BN1YPh8H-Cut1vMY1.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as ze,u as
|
|
1
|
+
import{X as ze,u as Be,cj as yl,B as ue,C as P,a2 as gl,j as l,bw as Re,e$ as We,bS as _e,fv as Pe,o as a,fE as bl,ci as qe,c9 as ee,cb as ce,cf as Me,l as Le,cB as xl,cz as wl,cd as Ue,cc as De,fF as Te,fG as jl,fd as $l,fc as ke,cg as ge,ch as vl,d as Ne,f0 as He,Q as Ge,b4 as Xe,e_ as Qe,n as Ce,fu as Ye,v as ye,r as Il,b1 as Sl,s as ae,dj as Ol,fH as Ll,M as Dl,fI as Fl,b2 as be,$ as _l,ct as Pl,b0 as Nl,a$ as Cl}from"./index-CIAgrDi2.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{W as Fe}from"./LabeledAddressValueField-Cw-p18du-D9T5QqTG.js";import{D as El}from"./LabeledCreatableSingleSelectField-nys9pbO0-0SJcSq-w.js";import{Y as Ie}from"./LabeledDocumentField-Y6TKpyZ8-CW27Za_m.js";import{P as Ke}from"./DocumentSecurityBanner-Bo9Hgo-I-DBmSgZgH.js";const Je=({text:e})=>l.jsx(Tl,{children:l.jsx(Vl,{children:e})}),Vl=t(Fl)`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -8,7 +8,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
8
8
|
align-items: flex-end;
|
|
9
9
|
margin-left: ${a.sp2};
|
|
10
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`
|
|
11
|
+
`,le={labelWidth:new P(115,145,155),mediumLabelWidth:new P(140,160,170),largeLabelWidth:new P(150,210,244),largeLabelDocumentWidth:new P(150,210,252),paddingBottom:new P(ae[3],ae[2]),containerRowGap:new P(12,ae[3])},kl={title:new Ge("standardMedium","largeMedium")},Al=ue.getLocalizedStrings(),{dateFormat:{visual:zl},commonSetUp:Bl,companyPassport:Rl,common:{documents:Se,optional:Wl}}=Al,o=Bl.businessVerification,ql=o.sourceOfFundOptions,Ml=M.forwardRef(({fileProps:e,productType:p,allIndustries:u,companyDetails:m,connectedAccountProvider:N,businessVerificationProps:g,isDisabled:n,style:U,sectionId:h,showInfoTooltip:oe=!0,isCompleted:te=!1,showCompletedIcon:ie=!1,showTreasuryFields:H=!1,sectionHeader:G,optionalFields:s=[],onCompanyAddressClick:X,onRegisteredAddressClick:V},re)=>{const f=ze(),D=le.labelWidth.value(f),F=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),z=le.largeLabelDocumentWidth.value(f),y=o.productType[p],Q=m?.companyFiles.find(d=>d.documentType==="certificate_of_incorporation"),Y=m?.companyFiles.find(d=>d.documentType==="tax_ein"),c=m?.companyFiles.find(d=>d.documentType==="company_formation_document"),j=m?.companyDescription,B=m?.companyLegalName,se=m?.website,W=m?.typeOfIncorporation,K=m?.incDate,L=m?.companyIndustry,me=m?.phone,J=m?.taxIdOrEIN,Z=m?.primaryContactLocalData,R=m?.deleteFileStatusById??{},ne=m?.updateFileStatusById??{},xe=m?.addressStatus?.addressToCreate,q=m?.registeredAddressStatus?.addressToCreate,[C,x]=M.useState(!1),[S,T]=M.useState(!1),_=d=>u.find(je=>je.code===d)?.name??d,we=d=>ql[d]??d;return l.jsxs(Ul,{style:U,ref:re,windowSize:f,children:[l.jsx(Hl,{children:l.jsxs(ea,{children:[l.jsxs(Xl,{children:[ie===!0?l.jsx(Ql,{children:te?l.jsx(Yl,{}):l.jsx(Kl,{})}):null,l.jsx(Gl,{windowSize:f,children:G??o.confirmCompanyDetails})]}),oe?l.jsx(Jl,{children:l.jsx(Re,{variant:"small-description",display:"flex",maxWidth:"280px",data:o.confirmCompanyDetailsTooltip,placement:f==="small"||p==="onboarding"?"bottom":"right",children:l.jsx(Zl,{})})}):null,p==="onboarding"&&G!=null?l.jsx(Je,{text:Wl}):null,g?.companyVerificationStatus!=null?l.jsx(aa,{tagTitle:g.companyVerificationStatus.name,textColor:We(g.companyVerificationStatus.code),showLoader:g?.isRefreshingViewInBackground}):null]})}),l.jsxs(la,{children:[l.jsx(Ke,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyLegalNameLabel,width:b},text:{type:"text",name:$(h,"companyLegalName"),placeholder:o.companyLegalNamePlaceholder,defaultValue:B,options:{required:n==null&&s.includes("companyLegalName")===!1}},additionalInfoLabel:o.companyLegalNameError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyDescriptionLabel,width:F},text:{type:"text",name:$(h,"companyDescription"),placeholder:o.addProductPlaceholder,defaultValue:j,options:{required:n==null&&s.includes("companyDescription")===!1}},additionalInfoLabel:o.companyDescriptionError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(Fe,{isDisabled:n,label:{label:o.companyAddressLabel,width:F},addressValueField:{name:$(h,"companyAddress"),placeholder:o.companyAddressPlaceholder,defaultValue:xe,registerOptions:{validate:d=>s.includes("companyAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{X?.("company_address")}},additionalInfoLabel:o.companyAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(v,{}),l.jsx(Fe,{isDisabled:n,label:{label:o.registeredAddressLabel,width:F},addressValueField:{name:$(h,"registeredAddress"),placeholder:o.registeredAddressPlaceholder,defaultValue:q,registerOptions:{validate:d=>s.includes("registeredAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{V?.("company_registered_address")}},additionalInfoLabel:o.registeredAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(v,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyWebsiteLabel,width:D},text:{type:"url",name:$(h,"companyWebsite"),placeholder:o.companyWebsitePlaceholder,defaultValue:se?.toString()??"",options:{required:n==null&&s.includes("companyWebsite")===!1}},additionalInfoLabel:o.companyWebsiteError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(De,{label:{label:o.companyIndustryLabel,width:D},singleSelectField:{singleSelect:{name:$(h,"companyIndustry"),placeholder:o.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:_,isDisabled:n,showTickMark:!1},defaultValue:{selectedOption:L,allOptions:u?.map(d=>d.code)??[]},registerOptions:{required:n==null&&s.includes("companyIndustry")===!1,validate:d=>s.includes("companyIndustry")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.companyIndustryError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(El,{label:{label:o.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:$(h,"typeOfIncorporation"),placeholder:o.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:W,allOptions:Rl.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&N==="unit",validate:d=>s.includes("typeOfIncorporation")===!1?!(n==null&&!d?.selectedOption):!0}},errorInfoLabel:o.companyTypeOfIncorporationError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(Me,{isDisabled:n,label:{label:o.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(f)},dateField:{name:$(h,"incDate"),placeholder:o.companyIncDatePlaceholder,defaultValue:K,dateFormat:zl.defaultInput,maxDate:Le.dateNow(),minDate:Le.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:n==null&&s.includes("incDate")===!1}},additionalInfoLabel:o.companyIncDateError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(Ue,{isDisabled:n,label:{label:o.companyPhoneLabel,width:D},text:{name:$(h,"companyPhone"),placeholder:ce(o.companyPhoneLabel),defaultValue:me,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:o.companyPhoneError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(qe,{isDisabled:n,label:{label:o.companyPrimaryContactNameLabel,width:b},nameField:{name:$(h,"primaryContactName"),placeHolder:{firstName:o.firstNamePlaceholder,lastName:o.lastNamePlaceholder,name:o.namePlaceholder},defaultValue:{firstName:Z?.firstName??"",lastName:Z?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:d=>!!d||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:o.companyPrimaryContactNameError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:$(h,"primaryContactEmail"),placeholder:o.companyPrimaryContactEmailPlaceholder,defaultValue:Z?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:o.companyPrimaryContactEmailError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyTaxIdLabel,width:D},text:{type:"text",name:$(h,"companyTaxId"),placeholder:o.companyTaxIdPlaceholder,defaultValue:J,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:vl},autoComplete:"new-password"},additionalInfoLabel:o.companyTaxIdError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(Ie,{name:$(h,"certificateOfIncorporation"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:R,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.certificateOfIncorporation,width:z},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:Q,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("certificateOfIncorporation")===!1&&N==="unit"},additionalInfoLabel:o.certOfIncopDocumentError.replace("_product_type_",y),hasError:C,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>x(d)}),C||!(n!=null||Q!=null)?l.jsx(Oe,{windowSize:f,isError:C,children:Se.formatDocumentText10MB}):null,l.jsx(v,{}),l.jsx(Ie,{name:$(h,"ein"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:R,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.einDocument,width:z},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:Y,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("ein")===!1},additionalInfoLabel:o.einDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||Y!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null,l.jsx(v,{}),H===!0?l.jsxs(l.Fragment,{children:[l.jsx(De,{label:{label:o.sourceOfFundsLabel,width:D},singleSelectField:{singleSelect:{name:$(h,"sourceOfFunds"),placeholder:o.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:we,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:m?.sourceOfFunds,allOptions:Object.keys(o.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:d=>s.includes("sourceOfFunds")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.sourceOfFundsError.replace("_product_type_",y)}),l.jsx(v,{}),l.jsx(Ie,{name:$(h,"formationDocument"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:R,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.formationDocumentLabel,width:z},filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},file:c,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("formationDocument")===!1},additionalInfoLabel:o.formationDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||c!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null]}):null]})]})});Ml.displayName="Company Details Section";const $=(e,p)=>`${e}.${p}`,Ul=t.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
row-gap: ${e=>le.containerRowGap.valuePx(e.windowSize)};
|
|
@@ -27,16 +27,16 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
27
27
|
align-items: center;
|
|
28
28
|
color: ${e=>e.theme.colors.primary};
|
|
29
29
|
padding-right: ${a.sp2};
|
|
30
|
-
`,
|
|
30
|
+
`,Xl=t.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
align-items: center;
|
|
33
|
-
`,
|
|
33
|
+
`,Ql=t.div`
|
|
34
34
|
margin-right: ${a.sp2};
|
|
35
|
-
`,
|
|
35
|
+
`,Yl=t(He)`
|
|
36
36
|
width: ${a.sp3};
|
|
37
37
|
height: ${a.sp3};
|
|
38
38
|
color: ${Ne.success};
|
|
39
|
-
`,
|
|
39
|
+
`,Kl=t.div`
|
|
40
40
|
height: 14px;
|
|
41
41
|
width: 14px;
|
|
42
42
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
@@ -47,7 +47,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
47
47
|
&:hover {
|
|
48
48
|
color: ${e=>e.theme.colors.primary};
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`,Zl=t(Xe)`
|
|
51
51
|
width: ${a.sp3};
|
|
52
52
|
height: ${a.sp3};
|
|
53
53
|
`,ea=t.div`
|
|
@@ -60,13 +60,13 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
60
60
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
61
61
|
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
62
62
|
border-radius: ${a.sp2};
|
|
63
|
-
|
|
63
|
+
`,v=t.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex: 1;
|
|
66
66
|
background-color: ${e=>e.theme.colors.grey3};
|
|
67
67
|
min-height: 1px;
|
|
68
68
|
max-height: 1px;
|
|
69
|
-
`,aa=t(
|
|
69
|
+
`,aa=t(Qe)`
|
|
70
70
|
width: max-content;
|
|
71
71
|
margin-left: ${a.sp3};
|
|
72
72
|
`,oa=t.div`
|
|
@@ -74,7 +74,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
74
74
|
display: flex;
|
|
75
75
|
align-items: center;
|
|
76
76
|
justify-content: flex-end;
|
|
77
|
-
`,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:N,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:U,backgroundColor:h,titleTextAlignment:oe,selectedOptionColor:te,customStyleConfig:ie}={},customization:{placeholderLabel:H}={},showAddUser:G=!0}){const s=
|
|
77
|
+
`,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:N,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:U,backgroundColor:h,titleTextAlignment:oe,selectedOptionColor:te,customStyleConfig:ie}={},customization:{placeholderLabel:H}={},showAddUser:G=!0}){const s=Be(),[X,V]=M.useState(!1),re=ta(e).sort((c,j)=>c.label.localeCompare(j.label)),f=u!=null?ia(u):void 0,D=N??s.colors.grey5,F=h??s.colors.grey5,b=g??s.colors.grey3,z=n??ye.smallRegular.cssObject,y=U??z,Q={control:(c,j)=>({...c,border:0,height:"100%",backgroundColor:F,fill:j.selectProps.menuIsOpen===!0?s.colors.primary:s.colors.grey1,boxShadow:F,">div:last-child":{color:X?s.colors.primary:s.colors.grey1},":active":{backgroundColor:F},":hover":{fill:s.colors.primary,">div:last-child":{color:s.colors.primary}},minHeight:"auto",cursor:"pointer",flexDirection:"column",">div>div>svg":{color:s.colors.grey1,">path":{color:s.colors.grey5,fill:"currentcolor"}}}),container:c=>({...c,backgroundColor:F,height:"100%"}),singleValue:c=>({...c,margin:0,minWidth:void 0,backgroundColor:void 0,">div":{borderRadius:0,padding:a.sp0,borderLeftStyle:"none",borderWidth:1,borderColor:s.colors.grey1,color:"unset"},">div>div>div>div:last-child":{display:"block",...ye.standardRegular.cssObject}}),valueContainer:c=>({...c,maxWidth:"100%",cursor:"pointer",height:"100%",...y,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:oe??"flex-start",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",">div":{width:"inherit"}}),menu:(c,j)=>({...c,backgroundColor:D,borderRadius:ae[1],boxShadow:`${a.sp0} 2px ${a.sp2} ${s.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:3,width:236,margin:`6px ${a.sp0}`,right:"-11%",">div":{flexDirection:"column",maxHeight:200,overflowY:"auto",borderRadius:a.sp1,padding:`${a.sp1} ${a.sp0}`,">div":{width:"-webkit-fill-available"}},...ie?.menu?.(c,j)}),menuList:c=>({...c,borderRadius:ae[1]}),placeholder:(c,j)=>({...c,margin:0,width:"100%",color:j.isFocused?s.colors.primary:"currentColor",paddingRight:a.sp2,...ye.standardRegular.cssObject,">div>div>svg>circle":{fill:s.colors.grey1}}),noOptionsMessage:c=>({...c,...ye.smallRegular.cssObject,padding:`10px ${a.sp3} 9px ${a.sp3}`,color:s.colors.hero}),option:(c,{isDisabled:j,isSelected:B,isFocused:se})=>({...c,...z,color:B?te??s.colors.champion:s.colors.hero,backgroundColor:B?b:se?s.colors.background:D,cursor:j?"not-allowed":B?"default":"pointer","svg:nth-of-type(2)":{display:"none"},":hover":{backgroundColor:s.colors.background,color:s.colors.primary},"& label":{paddingRight:"10px",cursor:j?"not-allowed":B?"inherit":"pointer"},">div>div>div:first-of-type":{display:"flex"}}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({}),indicatorsContainer:()=>({height:"100%",display:"flex",alignItems:"center"})},Y=({children:c,...j})=>l.jsxs(be.ValueContainer,{...j,children:[c,G===!0?l.jsxs($a,{hasSelectedUser:!!u,onClick:()=>{p(void 0),V(!1)},children:[l.jsx(ua,{}),l.jsx("div",{children:H??"Add User"})]}):null]});return l.jsx(Il,{onClickAway:()=>{V(!1)},children:l.jsx(oa,{children:l.jsx(Sl,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:X,menuShouldScrollIntoView:!1,defaultValue:f,value:f,noOptionsMessage:()=>ue.getLocalizedStrings().cockpit.management.noPerson,onInputChange:c=>{c!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx(na,{children:l.jsx("div",{children:H??"Select..."})}),components:{Option:ya,DropdownIndicator:va,IndicatorSeparator:Ia,SingleValue:wa,ValueContainer:ja,MenuList:Y},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:Q,options:re,isDisabled:m,onChange:c=>{p(c),V(!1)},isClearable:!1,isSearchable:!1},Ol())})})}const sa=t.div``,na=t.div`
|
|
78
78
|
display: flex;
|
|
79
79
|
align-items: center;
|
|
80
80
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -83,7 +83,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: center;
|
|
85
85
|
margin-right: ${a.sp2};
|
|
86
|
-
`,ca=t(
|
|
86
|
+
`,ca=t(Ye)`
|
|
87
87
|
width: ${a.sp4};
|
|
88
88
|
height: ${a.sp4};
|
|
89
89
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -92,7 +92,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
92
92
|
flex-direction: row;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: space-between;
|
|
95
|
-
`,ua=t(
|
|
95
|
+
`,ua=t(Pl)`
|
|
96
96
|
height: ${a.sp4};
|
|
97
97
|
width: ${a.sp4};
|
|
98
98
|
margin-right: ${a.sp2};
|
|
@@ -101,16 +101,16 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
101
101
|
height: 12px;
|
|
102
102
|
width: 12px;
|
|
103
103
|
color: ${e=>e.theme.colors.hero};
|
|
104
|
-
`,fa=t.div``,ha=t(
|
|
104
|
+
`,fa=t.div``,ha=t(Cl)`
|
|
105
105
|
width: 12px;
|
|
106
106
|
height: 12px;
|
|
107
107
|
color: ${e=>e.theme.colors.primary};
|
|
108
|
-
`,
|
|
108
|
+
`,Ze=t.img`
|
|
109
109
|
height: ${a.sp4};
|
|
110
110
|
width: ${a.sp4};
|
|
111
111
|
border-radius: 50%;
|
|
112
112
|
justify-content: center;
|
|
113
|
-
`,ya=e=>{const{data:p,options:u,isSelected:m}=e,N=u.findIndex(g=>g.value===p.value);return l.jsx(sa,{children:l.jsx(be.Option,{...e,children:l.jsxs(pa,{children:[l.jsxs(ga,{children:[l.jsx(ba,{children:p?.photo!==void 0?l.jsx(
|
|
113
|
+
`,ya=e=>{const{data:p,options:u,isSelected:m}=e,N=u.findIndex(g=>g.value===p.value);return l.jsx(sa,{children:l.jsx(be.Option,{...e,children:l.jsxs(pa,{children:[l.jsxs(ga,{children:[l.jsx(ba,{children:p?.photo!==void 0?l.jsx(Ze,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=_e},loading:"lazy"}):l.jsx(Pe,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N})}),l.jsx("label",{children:e.label})]}),!!m&&l.jsx(fa,{children:l.jsx(ha,{})})]})})})},ga=t.div`
|
|
114
114
|
width: 100%;
|
|
115
115
|
display: flex;
|
|
116
116
|
align-items: center;
|
|
@@ -118,12 +118,12 @@ 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 a
|
|
|
118
118
|
display: flex;
|
|
119
119
|
align-items: center;
|
|
120
120
|
margin-right: ${a.sp2};
|
|
121
|
-
`,xa=t(
|
|
121
|
+
`,xa=t(Ce)`
|
|
122
122
|
padding: ${a.sp0} ${a.sp2};
|
|
123
123
|
white-space: nowrap;
|
|
124
124
|
overflow: hidden;
|
|
125
125
|
text-overflow: ellipsis;
|
|
126
|
-
`,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,N=m.findIndex(g=>g.value===p.value);return l.jsx(be.MultiValueLabel,{...u,children:l.jsxs(Sa,{children:[p?.photo!==void 0?l.jsx(
|
|
126
|
+
`,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,N=m.findIndex(g=>g.value===p.value);return l.jsx(be.MultiValueLabel,{...u,children:l.jsxs(Sa,{children:[p?.photo!==void 0?l.jsx(Ze,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=_e},loading:"lazy"}):l.jsx(Pe,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N}),l.jsx(xa,{children:e})]})})},ja=({children:e,...p})=>l.jsxs(be.ValueContainer,{...p,children:[p.selectProps.value==null?l.jsx(da,{children:l.jsx(ca,{})}):null,e]}),$a=t(_l)`
|
|
127
127
|
color: ${e=>e.hasSelectedUser?e.theme.colors.hero:e.theme.colors.primary};
|
|
128
128
|
display: flex;
|
|
129
129
|
padding: ${a.sp2} 12px;
|
|
@@ -134,11 +134,11 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
134
134
|
color: ${e=>e.theme.colors.primary};
|
|
135
135
|
background: ${e=>e.theme.colors.background};
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
`,va=()=>l.jsx(ma,{}),Ia=()=>null,Sa=t.div`
|
|
138
138
|
display: flex;
|
|
139
139
|
flex-direction: row;
|
|
140
140
|
cursor: pointer;
|
|
141
|
-
`,pe={width:new
|
|
141
|
+
`,pe={width:new P(343,580,726),labelWidth:new P(115,145,155),largeLabelWidth:new P(160,240,240),veryLargeLabelWidth:new P(150,240,245),containerRowGap:new P(12,ae[3])},Oa={title:new Ge("standardMedium","largeMedium")};function Ka({companyOfficerData:e,isDisabled:p,allOfficers:u,allNationalityCountries:m,isRefreshingViewInBackground:N,connectedAccountProvider:g,style:n,isPopupOpen:U,sectionId:h,filesEndPoint:oe,authParams:te,showInfoTooltip:ie=!0,isCompleted:H=!1,showCompletedIcon:G=!1,showOfficerSelect:s=!0,showVerificationTag:X=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:f,companyTitles:D,sectionHeader:F,optionalFields:b=[],onOfficerAddressClick:z,onDeleteFile:y,onEditFileName:Q,updateFilesEntity:Y,openPopup:c,onGetOtp:j,onVerifyOtp:B,onResendOtp:se,verifiedPhoneNumber:W,onPhoneVerified:K}){const L=ze(),me=Be(),{getValues:J,setValue:Z}=yl(),R=u.length>0,[ne,xe]=M.useState(!1),q=R?Object.values(e).findIndex(i=>i?.isSelectedForVerification===!0):0,C=`Officer_${q<0?1:q+1}`;M.useEffect(()=>{K!=null&&e[C]?.phone!=null&&e[C].isPhoneVerified===!0&&K(e[C]?.phone??"")},[]);const x=`${h}.${q}`,S=e[C],T=V?S?.treasuryUserVerificationStatus:S?.userVerificationStatus,_=u.find(i=>i.userId===S?.userId),we=u.sort((i,O)=>(i.firstName||i.lastName?`${i.firstName} ${i.lastName}`:i.email).localeCompare(O.firstName||O.lastName?`${O.firstName} ${O.lastName}`:O.email)),d=R?we.findIndex(i=>i.userId===S?.userId):0,je=e[C]?.deleteFileStatusById??{},el=e[C]?.updateFileStatusById??{},Ee=J(`${x}.selectDocument.selectDocumentType`),{common:{optional:ll},commonSetUp:{businessVerification:r},dateFormat:{visual:al},cockpit:ol}=ue.getLocalizedStrings(),k=f==="onboarding"?r.productType.business_verification:r.productType[f],de=pe.labelWidth.value(L),tl=pe.veryLargeLabelWidth.value(L),fe=pe.largeLabelWidth.value(L),il=L==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,rl=L==="small"?r.protectedSsnTextSmall:r.protectedSsnText,I=T?.code==="pending_review"||T?.code==="verified"?"readonly":p,sl=I!=null||!R||T?.code==="require_info",nl=_?.firstName||_?.lastName?`${_?.firstName} ${_?.lastName}`:r.addOfficer,dl=S?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,cl={menu:()=>({right:"initial",left:0})},pl=i=>D.find(O=>O.code===i)?.name??i,$e=S?.otpverificationStatus?.fetchState,Ve=gl($e);M.useEffect(()=>{K!=null&&Ve==="In-Progress"&&$e==="Completed"&&K(J(`${x}.phone`))},[Ve,$e]);const ul=(i,O)=>{B(i,O)},ml=()=>W==null||W===""?!1:J(`${x}.phone`)===W,fl=()=>{const i=J(`${x}.phone`);return i!=null&&!Ll(i)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",k)};return l.jsxs(La,{style:n,windowSize:L,children:[l.jsxs(Da,{windowSize:L,isOverlay:re,children:[l.jsxs(Aa,{children:[l.jsxs(_a,{children:[G===!0?l.jsx(Pa,{children:H?l.jsx(Na,{}):l.jsx(Ca,{})}):null,l.jsx(Fa,{windowSize:L,children:F??dl})]}),ie?l.jsx(Ea,{children:l.jsx(Re,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:L==="small"||f==="onboarding"?"bottom":"right",children:l.jsx(Va,{})})}):null,f==="onboarding"&&F!=null?l.jsx(Je,{text:ll}):null,T!=null&&X?l.jsx(Ra,{tagTitle:T?.name,textColor:We(T.code),showLoader:N}):null]}),s?sl?R?l.jsxs(Ba,{children:[_?.photo!==void 0?l.jsx(Ta,{src:_?.photo.href,alt:ol.userProfileAltText,onError:({currentTarget:i})=>{i.onerror=null,i.src=_e},loading:"lazy"}):l.jsx(Pe,{firstName:_?.firstName??"",lastName:_?.lastName??"",size:`${a.sp4}`,index:d}),l.jsx(Ae,{children:`${nl}`})]}):l.jsxs(Wa,{children:[l.jsx(qa,{children:l.jsx(Ma,{})}),l.jsx(Ae,{children:`${r.addOfficer}`})]}):l.jsx(ka,{children:l.jsx(ra,{selectedUser:_,allUsers:u,onSelectedUserChanged:i=>{const O=Object.values(e).findIndex(he=>he?.userId===i?.userId);Z(`${x}.isSelectedForVerification`,!1),Z(`${h}.${O}.isSelectedForVerification`,!0)},customization:{placeholderLabel:r.addOfficer},showAddUser:u.length<=9,pickerStyles:{backgroundColor:me.colors.grey5,selectedOptionBackgroundColor:me.colors.background,customStyleConfig:L==="small"?cl:void 0}})}):null]}),Object.values(e).map((i,O)=>{if(q!==O)return null;const he=bl(i?.documentTypeSelectedForVerification),ve=i?.userFiles??[],hl=()=>W!=""&&f==="onboarding"?ml():i?.isPhoneVerified??!1;return l.jsxs(za,{children:[l.jsx(Ke,{}),l.jsx(qe,{isDisabled:I,label:{label:r.name,width:de},nameField:{name:E(x,"name"),placeHolder:{firstName:r.firstNamePlaceholder,lastName:r.lastNamePlaceholder,name:r.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},registerOptions:{required:b.includes("name")===!1,validate:w=>b.includes("name")===!1?!!w:!0},showFullNameError:!0},errorInfoLabel:r.nameError.replace("_product_type_",k)}),l.jsx(A,{}),i?.userId==null?l.jsxs(l.Fragment,{children:[l.jsx(ee,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.email,width:de},text:{type:"email",name:E(x,"email"),placeholder:ce(r.email),defaultValue:i?.email,options:{required:b.includes("email")===!1}},additionalInfoLabel:r.emailDescription.replace("_product_type_",k)}),l.jsx(A,{})]}):null,l.jsx(Me,{isDisabled:I,label:{label:r.dobLabel,width:fe},dateField:{name:E(x,"dob"),type:"text",defaultValue:i?.birthday,placeholder:ce(r.dobLabel),dateFormat:al.defaultInput,maxDate:Le.dateNow().subtract(g==="unit"?18:13,"years"),registerOptions:{required:b.includes("dob")===!1},autoComplete:"off"},additionalInfoLabel:r.dobDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(xl,{isDisabled:I,label:{label:r.nationalityLabel,width:de},showAdditionalInfoLabel:f!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",k),countrySelectField:{name:E(x,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:wl(i?.nationalityCountryCode,m.map(w=>w.countryCode)),registerOptions:{validate:w=>!!(w!=null&&w.selectedOption)}}}),l.jsx(A,{}),l.jsx(Fe,{isDisabled:I,label:{label:r.address,width:de},addressValueField:{name:E(x,"officerAddress"),placeholder:ce(r.address),defaultValue:i?.addressStatus?.addressToCreate,registerOptions:{validate:w=>b.includes("officerAddress")===!1?!(I==null&&w==null):!0},onClick:()=>{z(i?.officerType.toLocaleLowerCase().concat("_address"))}},additionalInfoLabel:f==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",k),showAdditionalInfoLabel:!0}),l.jsx(A,{}),l.jsx(Ue,{isDisabled:I,label:{label:r.phone,width:de},text:{name:E(x,"phone"),placeholder:ce(r.phone),defaultValue:i?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:fl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:U,phoneVerifyButtonProps:{otpChallenge:i?.otpChallenge,showOtpButton:g==="unit",onGetOtp:j,onVerifyOtp:ul,onResendOtp:se,isPhoneVerified:hl(),phoneVerificationStatus:i?.otpverificationStatus,getOtpStatus:i?.sendOtpStatus,openPopup:c,verifiedPhoneNumber:W,focusNotRequired:!0}}),l.jsx(A,{}),l.jsx(De,{label:{label:r.companyRoleLabel,width:fe},singleSelectField:{singleSelect:{name:E(x,"role"),placeholder:il,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:pl,isDisabled:I,showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:i?.titleAtCompany,allOptions:D?.map(w=>w.code)??[]},registerOptions:{required:b.includes("role")===!1,validate:w=>b.includes("role")===!1?!(I==null&&!w?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:r.companyRoleDescription.replace("_product_type_",k)}),l.jsx(A,{}),l.jsx(Te,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:fe},formattedTextField:{type:"number",name:E(x,"ownership"),defaultValue:i?.ownershipInCompany,placeholder:r.companyOwnershipPlaceholder,returnValueType:"floatValue",suffix:"%",allowNegative:!1,isNumericString:!1,registerOptions:{required:b.includes("ownership")===!1,validate:w=>w!=null?w>0&&w<=100:!0,max:100},autoComplete:"new-password"},additionalInfoLabel:f==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(A,{}),l.jsx(Te,{isDisabled:I,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:fe},formattedTextField:{type:"text",name:E(x,"ssn"),placeholder:r.addSSNPlaceholder,defaultValue:i?.ssn,format:"###-##-####",registerOptions:{required:b.includes("ssn")===!1,pattern:jl},autoComplete:"new-password",maxLength:9,allowLeadingZeros:!0},protectedInfoText:I!=null&&i?.ssn?rl:void 0,additionalInfoLabel:r.ssnDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx($l,{name:E(x,"selectDocument"),officerIndex:q,sizeLimit:ge,filesEndPoint:oe,authParams:te,onEditFileName:Q,acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],label:{width:tl},allFiles:ve,updateFilesEntity:Y,deleteFileStatusById:je,updateFileStatusById:el,onDeleteFile:y,isDisabled:I,menuPlacement:f==="onboarding"&&he==null?"top":"auto",defaultValue:{defaultSelectDocumentType:he,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:ke(!0,ve,Ee),back:ke(!1,ve,Ee)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:ne,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",k),onFileSizeError:w=>xe(w),isPopupOpen:U,openPopup:c,companyOfficerName:{firstName:i?.firstName??"",lastName:i?.lastName??""}})]},x)})]})}const E=(e,p)=>`${e}.${p}`,La=t.div`
|
|
142
142
|
display: flex;
|
|
143
143
|
flex-direction: column;
|
|
144
144
|
row-gap: ${e=>pe.containerRowGap.valuePx(e.windowSize)};
|
|
@@ -158,13 +158,13 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
158
158
|
`,_a=t.div`
|
|
159
159
|
display: flex;
|
|
160
160
|
align-items: center;
|
|
161
|
-
`,
|
|
161
|
+
`,Pa=t.div`
|
|
162
162
|
margin-right: ${a.sp2};
|
|
163
163
|
`,Na=t(He)`
|
|
164
164
|
width: ${a.sp3};
|
|
165
165
|
height: ${a.sp3};
|
|
166
166
|
color: ${Ne.success};
|
|
167
|
-
`,
|
|
167
|
+
`,Ca=t.div`
|
|
168
168
|
height: 14px;
|
|
169
169
|
width: 14px;
|
|
170
170
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
@@ -175,7 +175,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
175
175
|
&:hover {
|
|
176
176
|
color: ${e=>e.theme.colors.primary};
|
|
177
177
|
}
|
|
178
|
-
`,Va=t(
|
|
178
|
+
`,Va=t(Xe)`
|
|
179
179
|
width: ${a.sp3};
|
|
180
180
|
height: ${a.sp3};
|
|
181
181
|
`,Ta=t.img`
|
|
@@ -202,7 +202,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
202
202
|
background-color: ${e=>e.theme.colors.grey3};
|
|
203
203
|
min-height: 1px;
|
|
204
204
|
max-height: 1px;
|
|
205
|
-
`,
|
|
205
|
+
`,Ba=t(Ce)`
|
|
206
206
|
display: flex;
|
|
207
207
|
flex-direction: row;
|
|
208
208
|
justify-content: flex-end;
|
|
@@ -213,20 +213,20 @@ import{X as ze,u as Re,cg as yl,M as ue,C,a2 as gl,j as l,bs as Be,eZ as qe,bP a
|
|
|
213
213
|
white-space: nowrap;
|
|
214
214
|
overflow: hidden;
|
|
215
215
|
text-overflow: ellipsis;
|
|
216
|
-
`,
|
|
216
|
+
`,Ra=t(Qe)`
|
|
217
217
|
width: max-content;
|
|
218
218
|
margin-left: ${a.sp3};
|
|
219
|
-
`,
|
|
219
|
+
`,Wa=t(Ce)`
|
|
220
220
|
display: flex;
|
|
221
221
|
flex-direction: row;
|
|
222
222
|
justify-content: flex-end;
|
|
223
223
|
align-items: center;
|
|
224
224
|
color: ${e=>e.theme.colors.hero};
|
|
225
|
-
`,
|
|
225
|
+
`,qa=t.div`
|
|
226
226
|
display: flex;
|
|
227
227
|
align-items: center;
|
|
228
|
-
`,Ma=t(
|
|
228
|
+
`,Ma=t(Ye)`
|
|
229
229
|
width: ${a.sp4};
|
|
230
230
|
height: ${a.sp4};
|
|
231
231
|
color: ${e=>e.theme.colors.hero};
|
|
232
|
-
`;export{Ml as G,
|
|
232
|
+
`;export{Ml as G,Ka as o};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,
|
|
1
|
+
import{j as r,W as x,Z as M,_ as f,B as p,o as s,a5 as w,$ as g,a6 as j}from"./index-CIAgrDi2.js";import{b as t,n as o}from"./vendor-CnQcJ2Lu.js";import{c as H}from"./SummaryCard-edbbHOmb-DIbjh5sC.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-CZ1Ix5em-CJhVpNi9.js";const B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:v},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:B}],D=o(w)`
|
|
2
2
|
margin: ${s.sp5};
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
`,W=o.div`
|
|
@@ -7,20 +7,20 @@ 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"./i
|
|
|
7
7
|
flex-direction: row;
|
|
8
8
|
align-items: center;
|
|
9
9
|
margin-bottom: ${s.sp3};
|
|
10
|
-
|
|
10
|
+
`,$=o(g)`
|
|
11
11
|
color: ${e=>e.theme.colors.champion};
|
|
12
|
-
`,
|
|
12
|
+
`,I=o.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
width: 100%;
|
|
15
15
|
flex-direction: column;
|
|
16
|
-
`,
|
|
16
|
+
`,V=o.div`
|
|
17
17
|
color: ${e=>e.theme.colors.primary};
|
|
18
|
-
`,
|
|
18
|
+
`,T=o.div`
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: row;
|
|
21
21
|
align-items: center;
|
|
22
22
|
margin: ${s.sp3} ${s.sp0};
|
|
23
|
-
|
|
23
|
+
`,b=o.div`
|
|
24
24
|
margin-right: ${s.sp3};
|
|
25
25
|
`,N=o.div`
|
|
26
26
|
display: flex;
|
|
@@ -35,8 +35,8 @@ import{j as r,U as x,W as M,_ as f,M as p,o as s,a5 as w,v as g,a6 as j}from"./i
|
|
|
35
35
|
-webkit-box-orient: vertical;
|
|
36
36
|
-webkit-line-clamp: 2;
|
|
37
37
|
overflow: hidden;
|
|
38
|
-
`,C=o(j)``,
|
|
38
|
+
`,C=o(j)``,S=o.div`
|
|
39
39
|
width: 100%;
|
|
40
40
|
height: 1px;
|
|
41
41
|
background-color: ${e=>e.theme.colors.grey3};
|
|
42
|
-
`;function
|
|
42
|
+
`;function U({card:e,actions:l,data:c,dndProps:n}){return r.jsx(x,{isDragging:n?.draggedCardType!=null,isDragOver:n?.dragOverCard===e.cardType,draggable:!0,onDragStart:i=>n?.onDragStart(e.cardType,i),onDragOver:i=>n?.onDragOver(i,e.cardType),onDragLeave:i=>n?.onDragLeave(i),onDrop:i=>n?.onDrop(i,e.cardType),dimension:e.dimension,children:r.jsx(H,{card:e,actions:l,children:r.jsx(M,{dimension:e.dimension,style:{cursor:"pointer"},onClick:()=>l.onCardClick(e.cardIndex,e.cardType),"data-testid":f("dashboard",e.cardType),children:r.jsxs(D,{children:[r.jsx(W,{children:r.jsx($,{children:p.getLocalizedStrings().companyPassportCard.title})}),y.map((i,d)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(I,{children:[r.jsxs(T,{children:[r.jsx(b,{children:r.jsx(h,{height:s.sp5,width:s.sp5})}),r.jsxs(N,{children:[r.jsx(A,{children:m}),r.jsx(_,{data:c?.companyView,itemKey:a})]})]}),d!==y.length-1?r.jsx(S,{}):null]},i.key)})]})})})},e.cardIndex)}const _=({itemKey:e,data:l})=>{const c=l?.companyOfficers,n=l?.company,i=n?.company.companyInfo,d=n?.company.incInfo,m=()=>r.jsx(V,{children:"—"});switch(e){case"company_legal_name":return i?.companyLegalName==null||i.companyLegalName===""?r.jsx(m,{}):r.jsx(k,{children:i?.companyLegalName});case"company_officer":{if(c==null||c?.length===0)return r.jsx(m,{});const a=c.slice(0,10).sort((u,E)=>u.user.createTime?.isAfter(E.user.createTime)===!0?1:-1),h=[a[0].user.firstName,a[0].user.lastName].join("").trim();return r.jsxs(k,{children:[a[0].user.firstName!=null&&a[0].user.firstName!==""?r.jsxs(C,{children:[a[0].user.firstName," "]}):null,r.jsx(C,{children:a[0].user.lastName}),a[0].user.email!=null?r.jsx(C,{children:`${h.length>0?", ":""}${a[0].user.email}`}):null]})}case"company_inc":return d?.companyIncType==null||d.companyIncType===""?r.jsx(m,{}):r.jsx(k,{children:d?.companyIncType});default:return null}};export{U as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as P,u as Ae,a2 as ca,a as da,
|
|
1
|
+
import{X as P,u as Ae,a2 as ca,a as da,c6 as pa,B as k,j as a,aV as ma,F as ua,c7 as ha,l as V,a4 as fa,C as m,c8 as xa,a3 as Ce,o as t,n as ae,c9 as z,ca as ze,cb as L,cc as ya,cd as Ue,ce as ga,cf as ba,cg as qe,y as $a,ch as wa,ci as He,cj as Ze,ck as Ia,cl as ja,cm as va,d as N,cn as Da,co as Sa,aN as Oa,a6 as Ca,ao as q,cp as Fe,s as p,$ as Ge,K as Me,cq as Fa,J as ka,cr as Ta,cs as Na,b1 as Pa,ct as La,bK as za,cu as Ma,M as Ea,b2 as R,cv as Va,v as de,a$ as Ba}from"./index-CIAgrDi2.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-CnQcJ2Lu.js";import{D as Xe}from"./LabeledCreatableSingleSelectField-nys9pbO0-0SJcSq-w.js";import{Y as Je}from"./LabeledDocumentField-Y6TKpyZ8-CW27Za_m.js";import{$ as Ke}from"./LabeledAddressValue-BioQUVCV-fsudcvfQ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Qe={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ra=_a`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateX(100%)
|
|
4
4
|
}
|
|
@@ -47,7 +47,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c3 as pa,M as k,j as a,aV as ma,F as ua,c
|
|
|
47
47
|
&:hover {
|
|
48
48
|
color: ${N.primaryDark};
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`,Ja=e=>{const o=k.getLocalizedStrings().companyPassport.snackBar;return e==="Error"?o.failedText:o.successText};function Ka(e){const o=P(),{fetchState:l,onRemoveSnackbar:i}=e;_.useEffect(()=>{setTimeout(i,5e3)});const n=k.getLocalizedStrings().companyPassport.snackBar,c=l==="Completed";return a.jsxs(Ya,{windowSize:o,children:[c?a.jsx(Aa,{}):a.jsx(Ua,{}),a.jsxs(Za,{windowSize:o,children:[a.jsx(Ga,{isSuccess:c,children:c?n.success:n.error}),a.jsx(qa,{children:a.jsx(Ha,{children:Ja(l)})})]}),a.jsx(Xa,{onClick:i,children:a.jsx(Ce,{})})]})}const ne={labelWidth:new m(110,145,180),largeLabelWidth:new m(150,215,215),largeLabelDocumentWidth:new m(150,210,252),paddingBottom:new m(p[3],p[2])};function Qa(e){const o=P(),[l,i]=_.useState(!1),{companyPassport:n,commonSetUp:{businessVerification:c},common:{documents:f}}=k.getLocalizedStrings(),{fileProps:d,companyFiles:r,deleteFileStatusById:u,updateFileStatusById:y,sectionId:b,isDisabled:h,companyIncInfo:$,style:I}=e,S=ne.labelWidth.value(o),j=ne.largeLabelWidth.value(o),g=ne.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:D}=k.getLocalizedStrings(),x=r.find(J=>J.documentType==="certificate_of_incorporation"),B=o==="small"?n.companyIncInfo.stateOfIncPlaceholderSmall:n.companyIncInfo.stateOfIncPlaceholder,me=o==="small"?n.companyIncInfo.typeOfIncPlaceholderSmall:n.companyIncInfo.typeOfIncPlaceholder;return a.jsxs(et,{style:I,children:[a.jsx(tt,{children:n.companyIncInfo.title}),a.jsxs(at,{children:[a.jsx(Xe,{label:{label:D.companyIncInfo.typeOfInc,width:j},isDisabled:h,creatableSingleSelectField:{name:re(b,"typeOfInc"),placeholder:me,defaultValue:{selectedOption:$?.typeOfInc,allOptions:n.companyIncInfo.allTypesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ga,{label:{label:D.companyIncInfo.stateOfInc,width:j},isDisabled:h,singleSelectField:{name:re(b,"stateOfInc"),placeholder:B,defaultValue:{selectedOption:$?.stateOfInc,allOptions:n.companyIncInfo.allStatesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ba,{isDisabled:h,label:{label:n.companyIncInfo.incDate,width:S},style:{paddingBottom:ne.paddingBottom.valuePx(o)},dateField:{name:re(b,"incDate"),placeholder:L(n.companyIncInfo.incDate),defaultValue:$?.incDate,dateFormat:O.defaultInput,maxDate:V.dateNow(),minDate:V.zeniDate("01 Jan 1900"),autoComplete:"off"}}),a.jsx(he,{}),a.jsx(Je,{name:re(b,"certificateOfIncorporation"),isDisabled:h,sizeLimit:qe,deleteFileStatusById:u,updateFileStatusById:y,filesEndPoint:d.filesEndPoint,authParams:d.authParams,label:{label:c.certificateOfIncorporation,width:g},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:x,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:l,updateFilesEntity:d.updateFilesEntity,onEditFileName:d.onEditFileName,onDeleteFile:d.onDeleteFile,onFileSizeError:J=>i(J)}),a.jsx(ot,{windowSize:o,isError:l,children:f.formatDocumentText10MB})]})]})}const re=(e,o)=>`${e}.${o}`,et=s.div`
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-direction: column;
|
|
53
53
|
padding-top: ${t.sp3};
|
|
@@ -112,7 +112,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c3 as pa,M as k,j as a,aV as ma,F as ua,c
|
|
|
112
112
|
border-bottom-left-radius: inherit;
|
|
113
113
|
border-bottom-right-radius: inherit;
|
|
114
114
|
}
|
|
115
|
-
`,fe={labelWidth:new m(110,110,140),mediumLabelWidth:new m(140,140,160),largeLabelWidth:new m(170,170,180)},{companyPassport:v,dateFormat:{analytics:Ee}}=k.getLocalizedStrings();function ct({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=P(),u=e.company.company.companyInfo,y=fe.labelWidth.value(r),b=fe.mediumLabelWidth.value(r),h=fe.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=S=>o.find(j=>j.code===S)?.name??S;return a.jsxs(pt,{style:d,children:[a.jsx(ut,{children:v.companyInfo.title}),a.jsxs(mt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:Z(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:Z(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:Z(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:Z(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(S=>S.code)??[]}},isFunctional:!0}),a.jsx(U,{}),a.jsx(Xe,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:Z(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(U,{}),a.jsx(
|
|
115
|
+
`,fe={labelWidth:new m(110,110,140),mediumLabelWidth:new m(140,140,160),largeLabelWidth:new m(170,170,180)},{companyPassport:v,dateFormat:{analytics:Ee}}=k.getLocalizedStrings();function ct({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=P(),u=e.company.company.companyInfo,y=fe.labelWidth.value(r),b=fe.mediumLabelWidth.value(r),h=fe.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=S=>o.find(j=>j.code===S)?.name??S;return a.jsxs(pt,{style:d,children:[a.jsx(ut,{children:v.companyInfo.title}),a.jsxs(mt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:Z(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:Z(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:Z(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:Z(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(S=>S.code)??[]}},isFunctional:!0}),a.jsx(U,{}),a.jsx(Xe,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:Z(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(U,{}),a.jsx(Ke,{isDisabled:c,label:{label:v.companyInfo.address,width:y},addressValue:{placeholder:L(v.companyInfo.address),address:i?.addressToCreate,onClick:()=>f("company_address")}}),a.jsx(U,{}),a.jsx(Ue,{isDisabled:c,label:{label:v.companyInfo.phone,width:y},text:{name:Z(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(pe,{label:{label:v.companyInfo.fiscalYear,width:y},bullettedLabels:{labels:[{text:dt(l?.firstMonthOfFY??1)}],listStyleType:"none"}})]})]})}const dt=e=>{const{fiscalYearMonths:o}=V.getFYMonths(e);return`${V.dateNow().month(o[0]-1).format(Ee.MMMFormat)} to ${V.dateNow().month(o[11]-1).format(Ee.MMMFormat)}`},Z=(e,o)=>`${e}.${o}`,pt=s.div`
|
|
116
116
|
display: flex;
|
|
117
117
|
flex-direction: column;
|
|
118
118
|
padding-top: ${t.sp3};
|
|
@@ -133,7 +133,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c3 as pa,M as k,j as a,aV as ma,F as ua,c
|
|
|
133
133
|
background-color: ${e=>e.theme.colors.grey3};
|
|
134
134
|
min-height: 1px;
|
|
135
135
|
max-height: 1px;
|
|
136
|
-
`,be={labelWidth:new m(110,110,140),buttonWidth:new m(70,70)};function ht({sectionId:e,isDisabled:o,style:l,officer:i,officerAddress:n,isEmptyCompanyOfficerSection:c,onOfficerAddressClick:f}){const d=P(),r=k.getLocalizedStrings().companyPassport,u=be.labelWidth.value(d),y=c&&(i==null||!i.firstName&&!i.lastName&&!i.phone&&!i.email&&!n),b=i?.userId==null||i?.userId==="";return a.jsxs(bt,{style:l,children:[a.jsx(He,{isDisabled:o,label:{label:r.companyOfficer.name,width:u},nameField:{name:xe(e,"name"),placeHolder:{firstName:r.companyOfficer.firstNamePlaceholder,lastName:r.companyOfficer.lastNamePlaceholder,name:r.companyOfficer.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},autoComplete:"new-password",registerOptions:{required:y!==!0},showFullNameError:!0}}),a.jsx(ye,{}),a.jsx(z,{isDisabled:b?o:"readonly",label:{label:r.companyOfficer.email,width:u},text:{type:"email",name:xe(e,"email"),placeholder:L(r.companyOfficer.email),options:{required:y===!0?!1:b},defaultValue:i?.email,autoComplete:"new-password"}}),a.jsx(ye,{}),a.jsx(
|
|
136
|
+
`,be={labelWidth:new m(110,110,140),buttonWidth:new m(70,70)};function ht({sectionId:e,isDisabled:o,style:l,officer:i,officerAddress:n,isEmptyCompanyOfficerSection:c,onOfficerAddressClick:f}){const d=P(),r=k.getLocalizedStrings().companyPassport,u=be.labelWidth.value(d),y=c&&(i==null||!i.firstName&&!i.lastName&&!i.phone&&!i.email&&!n),b=i?.userId==null||i?.userId==="";return a.jsxs(bt,{style:l,children:[a.jsx(He,{isDisabled:o,label:{label:r.companyOfficer.name,width:u},nameField:{name:xe(e,"name"),placeHolder:{firstName:r.companyOfficer.firstNamePlaceholder,lastName:r.companyOfficer.lastNamePlaceholder,name:r.companyOfficer.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},autoComplete:"new-password",registerOptions:{required:y!==!0},showFullNameError:!0}}),a.jsx(ye,{}),a.jsx(z,{isDisabled:b?o:"readonly",label:{label:r.companyOfficer.email,width:u},text:{type:"email",name:xe(e,"email"),placeholder:L(r.companyOfficer.email),options:{required:y===!0?!1:b},defaultValue:i?.email,autoComplete:"new-password"}}),a.jsx(ye,{}),a.jsx(Ke,{isDisabled:o,label:{label:r.companyInfo.address,width:u},addressValue:{placeholder:L(r.companyOfficer.address),address:n?.addressToCreate,onClick:()=>{f(i?.officerType.toLocaleLowerCase().concat("_address"))}}}),a.jsx(ye,{}),a.jsx(Ue,{isDisabled:o,label:{label:r.companyOfficer.phone,width:u},text:{name:xe(e,"phone"),placeholder:L(r.companyOfficer.phone),defaultValue:i?.phone,autoComplete:"new-password"}})]})}function ft({companyOfficers:e,sectionId:o,style:l,isDisabled:i,onOfficerAddressClick:n}){const{setValue:c,getValues:f}=Ze(),[d,r]=_.useState(-1),u=k.getLocalizedStrings().companyPassport,y=e.length,b=e.length===1&&e[0].localData?.userId==null,h=f(o),$=()=>{const g={userId:void 0,officerType:`Officer_${y+1}`,name:{firstName:"",lastName:""},email:"",phone:""};c(o,[...h,g])},I=g=>{if(e[g].localData==null||!e[g].localData?.firstName&&!e[g].localData?.lastName&&!e[g].localData?.phone&&!e[g].localData?.email&&!e[g].addressStatus?.addressToCreate){const O=h.filter((D,x)=>x!==d);c(o,O),r(-1)}else r(g)},S=()=>{r(-1)},j=()=>{const g=h.filter((O,D)=>D!==d);c(o,g),r(-1)};return a.jsxs(gt,{style:l,children:[a.jsx($t,{children:u.companyOfficer.title}),e.map((g,O)=>{const D=g.localData,x=g.addressStatus,B=D?.userId==null||D?.userId==="";return a.jsxs(wt,{children:[(y>1||B)&&!b?a.jsx(xt,{curIndex:O,isNewUser:B,numberOfOfficers:y,deleteConfirmationIndex:d,isDisabled:i,onDeleteClick:I,onCancelClick:S,onRemoveOfficerSection:j}):null,a.jsx(ht,{sectionId:`${o}.${O}`,officer:D,officerAddress:x,isDisabled:i,isEmptyCompanyOfficerSection:b,onOfficerAddressClick:n})]},D?.officerType)}),y<=9&&!b?a.jsx(yt,{isSectionDisabled:i,onAddOfficerSection:$}):a.jsx($e,{})]})}const xt=({curIndex:e,isNewUser:o,numberOfOfficers:l,deleteConfirmationIndex:i,isDisabled:n,onDeleteClick:c,onCancelClick:f,onRemoveOfficerSection:d})=>{const r=P(),u=k.getLocalizedStrings().companyPassport;return a.jsxs(It,{children:[a.jsx(jt,{children:l>1?`${u.companyOfficer.officer} ${e+1}`:""}),o&&n==null?i===e?a.jsx(Ct,{children:a.jsxs(Ft,{children:[u.companyOfficer.deleteConfirmation,a.jsx(Me,{label:u.cancel,onClick:f,style:{width:be.buttonWidth.value(r),marginLeft:t.sp4,marginRight:t.sp3},size:"small",variant:"secondary"}),a.jsx(Me,{label:u.remove,onClick:d,style:{width:be.buttonWidth.value(r)},size:"small",variant:"danger"})]})}):a.jsx(Ot,{className:"delete-icon-wrapper",onClick:()=>c(e),children:a.jsx(Fa,{width:p[3],height:p[3],color:N.important})}):null]})},yt=({isSectionDisabled:e,onAddOfficerSection:o})=>{const l=k.getLocalizedStrings().companyPassport;return e!=null?a.jsx($e,{}):a.jsxs(a.Fragment,{children:[a.jsxs(vt,{onClick:o,children:[a.jsx(Dt,{}),a.jsx(St,{children:l.companyOfficer.addOfficer})]}),a.jsx($e,{})]})},xe=(e,o)=>`${e}.${o}`,gt=s.div`
|
|
137
137
|
display: flex;
|
|
138
138
|
flex-direction: column;
|
|
139
139
|
padding-top: ${t.sp3};
|
|
@@ -390,7 +390,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c3 as pa,M as k,j as a,aV as ma,F as ua,c
|
|
|
390
390
|
width: ${t.sp3};
|
|
391
391
|
height: ${t.sp3};
|
|
392
392
|
color: ${e=>e.theme.colors.primary};
|
|
393
|
-
`,Zt=()=>null,Gt=()=>null,Ve=e=>e.map(o=>Xt(o)),Xt=e=>({value:e,label:e}),M={width:new m(343,580,726),height:new m(p[6],p[6]),controlHeight:new m(p[6],p[6]),paddingTopBottom:new m(p[2],p[2]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4]),labelMarginTop:new m(p[2],p[2])};function
|
|
393
|
+
`,Zt=()=>null,Gt=()=>null,Ve=e=>e.map(o=>Xt(o)),Xt=e=>({value:e,label:e}),M={width:new m(343,580,726),height:new m(p[6],p[6]),controlHeight:new m(p[6],p[6]),paddingTopBottom:new m(p[2],p[2]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4]),labelMarginTop:new m(p[2],p[2])};function Jt({isDisabled:e,label:o,multiSelectField:l,style:i}){const n=P();return a.jsxs(Kt,{size:n,style:i,isDisabled:e!=null,children:[a.jsx(Fe,{isDisabled:e,label:o.label,htmlFor:l.name,style:{marginLeft:M.labelMarginLeft.value(n),marginRight:M.labelMarginRight.value(n),marginTop:M.labelMarginTop.value(n),width:o.width??"auto"}}),a.jsx(kt,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",minHeight:M.controlHeight.value(n)}})]})}const Kt=s.div`
|
|
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,c3 as pa,M as k,j as a,aV as ma,F as ua,c
|
|
|
436
436
|
background-color: ${e=>e.isDisabled?e.theme.colors.grey5:e.theme.colors.background};
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
`,Be={labelWidth:new m(160,160,160),largeLabelWidth:new m(150,215,215)};function Qt(e){const o=P(),l=$a(),[i,n]=_.useState(!1),{companyPassport:c,commonSetUp:{businessVerification:f},common:{documents:d}}=k.getLocalizedStrings(),{fileProps:r,companyFiles:u,deleteFileStatusById:y,updateFileStatusById:b,sectionId:h,isDisabled:$,companyTaxInfo:I,style:S}=e,j=Be.labelWidth.value(o),g=Be.largeLabelWidth.value(o),O=!V.hasAdminLevelAccess(l.loggedInUserRole??[]),D=u.find(x=>x.documentType==="tax_ein");return a.jsxs(eo,{style:S,children:[a.jsx(to,{children:c.companyTaxInfo.title}),a.jsxs(ao,{children:[a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.taxIdOrEIN,width:j},text:{type:"text",name:G(h,"taxIdOrEIN"),placeholder:c.companyTaxInfo.taxIdOrEINPlaceholder,defaultValue:O===!0?c.protectedContent:I?.taxIdOrEIN,options:{pattern:wa},autoComplete:"new-password"},protectedInfoText:O===!0?c.companyTaxInfo.adminPrivilegeRequired:void 0}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.dunsNumber,width:j},text:{type:"text",name:G(h,"dunsNumber"),placeholder:c.companyTaxInfo.dunsNumberPlaceholder,defaultValue:I?.dunsNumber,options:{pattern:/^\d{9}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.naicsCode,width:j},text:{type:"text",name:G(h,"naicsCode"),placeholder:c.companyTaxInfo.naicsCodePlaceholder,defaultValue:I?.naicsCode,options:{pattern:/^([2-9]{1}[0-9]{1}|[1-9]{1}[1-9]{1})\d{0,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.sicCode,width:j},text:{type:"text",name:G(h,"sicCode"),placeholder:c.companyTaxInfo.sicCodePlaceholder,defaultValue:I?.sicCode,options:{pattern:/^\d{2,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(
|
|
439
|
+
`,Be={labelWidth:new m(160,160,160),largeLabelWidth:new m(150,215,215)};function Qt(e){const o=P(),l=$a(),[i,n]=_.useState(!1),{companyPassport:c,commonSetUp:{businessVerification:f},common:{documents:d}}=k.getLocalizedStrings(),{fileProps:r,companyFiles:u,deleteFileStatusById:y,updateFileStatusById:b,sectionId:h,isDisabled:$,companyTaxInfo:I,style:S}=e,j=Be.labelWidth.value(o),g=Be.largeLabelWidth.value(o),O=!V.hasAdminLevelAccess(l.loggedInUserRole??[]),D=u.find(x=>x.documentType==="tax_ein");return a.jsxs(eo,{style:S,children:[a.jsx(to,{children:c.companyTaxInfo.title}),a.jsxs(ao,{children:[a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.taxIdOrEIN,width:j},text:{type:"text",name:G(h,"taxIdOrEIN"),placeholder:c.companyTaxInfo.taxIdOrEINPlaceholder,defaultValue:O===!0?c.protectedContent:I?.taxIdOrEIN,options:{pattern:wa},autoComplete:"new-password"},protectedInfoText:O===!0?c.companyTaxInfo.adminPrivilegeRequired:void 0}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.dunsNumber,width:j},text:{type:"text",name:G(h,"dunsNumber"),placeholder:c.companyTaxInfo.dunsNumberPlaceholder,defaultValue:I?.dunsNumber,options:{pattern:/^\d{9}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.naicsCode,width:j},text:{type:"text",name:G(h,"naicsCode"),placeholder:c.companyTaxInfo.naicsCodePlaceholder,defaultValue:I?.naicsCode,options:{pattern:/^([2-9]{1}[0-9]{1}|[1-9]{1}[1-9]{1})\d{0,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(z,{isDisabled:$,label:{label:c.companyTaxInfo.sicCode,width:j},text:{type:"text",name:G(h,"sicCode"),placeholder:c.companyTaxInfo.sicCodePlaceholder,defaultValue:I?.sicCode,options:{pattern:/^\d{2,4}$/},autoComplete:"new-password"}}),a.jsx(ee,{}),a.jsx(Jt,{isDisabled:$,label:{label:c.companyTaxInfo.taxesFiledYears,width:j},multiSelectField:{name:G(h,"taxesFiledYears"),placeholder:c.companyTaxInfo.taxesFiledYearsPlaceholder,defaultValue:{selectedOptions:I?.taxesFiledYears.map(x=>x.toString())??[],allOptions:V.getYearsList().map(x=>x.toString())}}}),a.jsx(ee,{}),a.jsx(Je,{name:G(h,"einDocument"),isDisabled:$,sizeLimit:qe,deleteFileStatusById:y,updateFileStatusById:b,filesEndPoint:r.filesEndPoint,authParams:r.authParams,label:{label:f.einDocument,width:g},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:D,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:i,updateFilesEntity:r.updateFilesEntity,onEditFileName:r.onEditFileName,onDeleteFile:r.onDeleteFile,onFileSizeError:x=>n(x)}),a.jsx(oo,{windowSize:o,isError:i,children:d.formatDocumentText10MB})]})]})}const G=(e,o)=>`${e}.${o}`,eo=s.div`
|
|
440
440
|
display: flex;
|
|
441
441
|
flex-direction: column;
|
|
442
442
|
padding-top: ${t.sp3};
|
|
@@ -550,7 +550,7 @@ import{X as P,u as Ae,a2 as ca,a as da,c3 as pa,M as k,j as a,aV as ma,F as ua,c
|
|
|
550
550
|
background-color: ${e=>e.theme.colors.grey3};
|
|
551
551
|
min-height: 1px;
|
|
552
552
|
max-height: 1px;
|
|
553
|
-
`,we={width:new m(343,580,726),buttonWidth:new m(85,85)},_e="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",De="primaryContact",Se="companyOfficer",Oe="zeniFinanceTeam";function Wo(e){const o=P(),l=Ae(),{companyPassportView:i,isZeniUser:n,filesEndPoint:c,authParams:f,allIndustries:d,isDisabled:r,isSettings:u=!1,onCompanyDetailsChanged:y,onCompanyOfficerUpdated:b,onNewCompanyOfficerAdded:h,onPrimaryContactDetailsUpdated:$,onNewCompanyOfficerRemoved:I,onSaveAll:S,onAddressClick:j,onScheduleClick:g,onBackClick:O,onResetClick:D,onEditFileName:x,updateFilesEntity:B,onDeleteFile:me,onClickMenuIcon:
|
|
553
|
+
`,we={width:new m(343,580,726),buttonWidth:new m(85,85)},_e="companyPassportPage",Ie="companyInfo",je="companyIncInfo",ve="companyTaxInfo",De="primaryContact",Se="companyOfficer",Oe="zeniFinanceTeam";function Wo(e){const o=P(),l=Ae(),{companyPassportView:i,isZeniUser:n,filesEndPoint:c,authParams:f,allIndustries:d,isDisabled:r,isSettings:u=!1,onCompanyDetailsChanged:y,onCompanyOfficerUpdated:b,onNewCompanyOfficerAdded:h,onPrimaryContactDetailsUpdated:$,onNewCompanyOfficerRemoved:I,onSaveAll:S,onAddressClick:j,onScheduleClick:g,onBackClick:O,onResetClick:D,onEditFileName:x,updateFilesEntity:B,onDeleteFile:me,onClickMenuIcon:J}=e,{companyView:K,localData:H,deleteFileStatusById:ke,updateFileStatusById:Te}=i,{companyFiles:te}=H,Ne={authParams:f,filesEndPoint:c,onEditFileName:x,onDeleteFile:me,updateFilesEntity:B},[Q,oe]=_.useState(void 0),{companyDetails:aa,primaryContact:ta,companyOfficerUpdateStatus:oa,updateStatus:Y}=H,{localData:le,addressStatus:la}=aa,Pe=ca(Y.fetchState),ie=Object.values(oa).filter(T=>T.localData!=null),W=da({mode:"all",defaultValues:Ye(H,d)});_.useEffect(()=>()=>{oe(void 0)},[]),_.useEffect(()=>{Pe==="In-Progress"&&(Y.fetchState==="Completed"||Y.fetchState==="Error")&&(W.reset(Ye(H,d)),Q!==Y.fetchState&&oe(Y.fetchState))},[Q,W,Pe,Y,H,K,d,te]);const ia=async(T,w)=>{if(T.includes(Ie)||T.includes(je)||T.includes(ve)||T.includes(Oe)){const{companyInfo:C,companyIncInfo:F,companyTaxInfo:A,zeniFinanceTeam:ue}=w;y({companyInfo:C,incInfo:F,taxDetails:A,zeniFinanceTeam:ue})}else if(T.includes(De)){$(w.primaryContact);const C=w.companyOfficer.map(F=>F.userId);if(w.primaryContact.userId!=null&&C.includes(w.primaryContact.userId)){const F=C.findIndex(A=>A===w.primaryContact.userId);F>=0&&b({...w.companyOfficer[F],name:w.primaryContact.name,officerType:`Officer_${F+1}`})}}else if(T.includes(Se)){const C=parseInt(T.split(".")[1]);if(C>=0)b({...w.companyOfficer[C],officerType:`Officer_${C+1}`}),w.companyOfficer[C].userId!=null&&w.companyOfficer[C].userId===w.primaryContact.userId&&$({...w.primaryContact,name:w.companyOfficer[C].name});else if(w.companyOfficer.length>ie.length){const F=w.companyOfficer[w.companyOfficer.length-1];h(F)}else{const F=w.companyOfficer.filter(A=>A.officerType!=null);if(F.length<ie.length){const A=F.map((ue,ra)=>{const Le={...ue,officerType:`Officer_${ra+1}`};return b(Le),Le});F.length<ie.length&&(I(`Officer_${F.length+1}`),W.reset({companyOfficer:A}))}}}};_.useEffect(()=>{const T=W.watch((w,{name:C})=>{C!=null&&w!=null&&pa(()=>ia(C,w))});return()=>{T.unsubscribe()}});const sa=W.handleSubmit(T=>{Q!=null&&oe(void 0),S()}),{companyPassport:se,common:{settings:na}}=k.getLocalizedStrings();if(K==null)throw new Error("Company View is null");return a.jsxs(Do,{children:[a.jsx(ma,{title:se.title,backgroundColor:l.colors.grey4,style:{zIndex:3},onBackClick:O,showBackButton:!u,showMenuIcon:u?o==="medium-compact"||o==="small":!1,source:"CompanyPassportPage",onClickMenuIcon:J}),Q!=null?a.jsx(Ka,{fetchState:Q,onRemoveSnackbar:()=>oe(void 0)}):null,a.jsxs(So,{children:[a.jsx(Oo,{windowSize:o,children:u?na.infoText.companyDetails:se.quickAccessInfo}),a.jsx(ua,{...W,children:a.jsxs("form",{id:Re(_e),onSubmit:sa,children:[a.jsx(ct,{sectionId:Ie,companyInfo:le?.companyInfo,companyViewData:K,companyAddress:la,isDisabled:r,onCompanyAddressClick:j,allIndustries:d}),a.jsx(Qa,{sectionId:je,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyIncInfo:le?.incInfo,fileProps:Ne,isDisabled:r}),a.jsx(Qt,{sectionId:ve,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyTaxInfo:le?.taxDetails,fileProps:Ne,isDisabled:r}),a.jsx(io,{sectionId:De,primaryContact:ta.localData,isDisabled:r}),a.jsx(ft,{companyOfficers:ie,sectionId:Se,isDisabled:r,onOfficerAddressClick:j}),a.jsx($o,{data:K,companyInfo:le?.companyInfo,isDisabled:r,isZeniUser:n,sectionId:Oe,onScheduleClick:g})]})})]}),ha(W.formState.dirtyFields)||V.isCompanyPassportDataToBeSaved(H,K,te)?a.jsx(fa,{formId:Re(_e),primaryBtn:{label:se.save,isLoading:Y.fetchState==="In-Progress",style:{width:we.buttonWidth.value(o)},isDisabled:e.isDisabled!=null},cancelBtn:{label:se.cancel,style:{width:we.buttonWidth.value(o)},onClick:()=>{W.reset(),D()}}}):null]})}const Re=e=>`${e}_form`,Ye=(e,o)=>{const{companyDetails:l,primaryContact:i,companyOfficerUpdateStatus:n}=e,c=k.getLocalizedStrings().companyPassport,f=l.localData?.incInfo.fileId!=null?[l.localData?.incInfo.fileId]:[],d=l.localData?.taxDetails.fileId!=null?[l.localData?.taxDetails.fileId]:[];return{[Ie]:{...xa(l.localData?.companyInfo,["meetingLink"]),businessModel:{selectedOption:l.localData?.companyInfo?.businessModel,allOptions:c.companyInfo.allBusinessModels},website:l.localData?.companyInfo.website?.toString()??"",industry:{selectedOption:l.localData?.companyInfo.industry,allOptions:o?.map(r=>r.code)},firstMonthOfFY:l.localData?.companyInfo.firstMonthOfFY},[ve]:{...l.localData?.taxDetails,taxesFiledYears:{selectedOptions:l.localData?.taxDetails.taxesFiledYears.map(r=>r.toString())??[],allOptions:V.getYearsList().map(r=>r.toString())},einDocument:e.companyFiles.find(r=>r.documentType==="tax_ein"),fileIds:d},[je]:{typeOfInc:{selectedOption:l.localData?.incInfo?.typeOfInc,allOptions:c.companyIncInfo.allTypesOfIncorporation},stateOfInc:{selectedOption:l.localData?.incInfo?.stateOfInc,allOptions:c.companyIncInfo.allStatesOfIncorporation},incDate:l.localData?.incInfo.incDate?.toDate(),certificateOfIncorporation:e.companyFiles.find(r=>r.documentType==="certificate_of_incorporation"),fileIds:f},[De]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[Se]:Object.values(n).filter(r=>r.localData!=null).map(r=>{const u=r.localData;return{userId:u.userId,officerType:u.officerType,name:{firstName:u.firstName,lastName:u.lastName},email:u.email,phone:u.phone}}),[Oe]:{meetingLink:l.localData?.companyInfo.meetingLink?.toString()??""}}},Do=s.div`
|
|
554
554
|
display: flex;
|
|
555
555
|
min-height: 100%;
|
|
556
556
|
flex-direction: column;
|