@zeniai/web-cockpit-ui 1.14.7-qa → 1.14.8-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-CYMIIaPh-CazcteT9.js → ACHDetailsPage-HYH4LhGK-DEBeThZX.js} +3 -3
- package/dist/assets/{AIPerformancePage-DpQIi2ZW-BfbtTbJc.js → AIPerformancePage-BnHyhoNh-lxWX9fyZ.js} +35 -35
- package/dist/assets/{AccountInfoPage-Sh-82JXU-CK-JAG50.js → AccountInfoPage-ehy9LEs3-DQuaJuQC.js} +5 -5
- package/dist/assets/{AccountInfoPageContent-CsHvwqHd-Bi3KcCU6.js → AccountInfoPageContent-BpNoLQEh-DUUWW7P_.js} +13 -13
- package/dist/assets/{AccountReconDetailsDrawerPage-DlKlKwh2-COmsGMX5.js → AccountReconDetailsDrawerPage-KuO_6NjT-BhkhqQIK.js} +16 -16
- package/dist/assets/{AccountRow-CtIoeB6x-DB6L8OFQ.js → AccountRow-CKtmIbKO-BzBAql1b.js} +17 -17
- package/dist/assets/{AccountsPromoCardStack-XGoMEJWB-ewH7aqGC.js → AccountsPromoCardStack-BKVvUpdv-BiLayNkQ.js} +15 -15
- package/dist/assets/{AddAddressForCardDrawer-C6Sfh784-v8gPAmnp.js → AddAddressForCardDrawer-BebYNJoP-DW01HmxA.js} +2 -2
- package/dist/assets/{AddToWalletPage-CzD2AhWP-Y1lzrcrr.js → AddToWalletPage-BQfPsknz-CM3di5Tf.js} +13 -13
- package/dist/assets/{AgingReportsPage-D9YcQ7A--CgFqdHda.js → AgingReportsPage-DkCyQw18-D1u9Upzc.js} +7 -7
- package/dist/assets/{AllUserItems-BtS-YtE0-BnRz1B7J.js → AllUserItems-D-FQ96gE-DS0pdT0L.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-BTJqRp9j-CFbtvXnt.js → ApAgingDetailPage-EI4Kx_Xo-DJ1F7n27.js} +4 -4
- package/dist/assets/{AppBasePage-B5fgkJHL-BjE5NFxw.js → AppBasePage-D4QmiB4N-Cv0_LA55.js} +4 -4
- package/dist/assets/{AppDrawerContent-C1lzepXw-DLsvksBd.js → AppDrawerContent-BF8Abz2Y-C4CgYwFq.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-Bqt15rR_-6tCXuJPM.js → ApprovalRulesSettingsPage-tsucbdIk-BvetjtCF.js} +7 -7
- package/dist/assets/{ArAgingChart-BGVvhkR5-CMJLQ0Bz.js → ArAgingChart-CIZs2s3O-DsHvPG7Q.js} +6 -6
- package/dist/assets/{ArAgingDetailPage-Ddp7z3e8-3p3-vb0v.js → ArAgingDetailPage-cC50pBdB-DAxa4kv_.js} +2 -2
- package/dist/assets/{AttachmentView-pcpYs-s8-Bb1hmV9r.js → AttachmentView-Bpla0aBf-CEmozm2v.js} +5 -5
- package/dist/assets/{BankAccountSection-CmXQQBck-5U9GbvUg.js → BankAccountSection-DhDiqg0D-C1fQqXil.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-Dp7qMaI2-DUYDyhSL.js → BankAccountWarningSection-_BSb8rEd-lAbGdxcF.js} +5 -5
- package/dist/assets/{BankConnectionsSettingsPage-ldzD1a4O-Cm0no8yC.js → BankConnectionsSettingsPage-ovzOgVIi-D87I9OOK.js} +38 -38
- package/dist/assets/{BillDetailPage-CBubcYMe-BwBKzNWZ.js → BillDetailPage-C6NJGbua-D_fc-7GH.js} +11 -11
- package/dist/assets/{BillPayApprovalRuleDetailPage-BxiRr1tP-jMPlVte-.js → BillPayApprovalRuleDetailPage-DK34f2_B-CSwpjVbx.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CLBGuxUe-BeVtWdv4.js → BillPayApprovalRulesPage-uT7vadIp-DX4vmU2u.js} +8 -8
- package/dist/assets/{BillPayPromoPage-C3takK8D-D35v8jhQ.js → BillPayPromoPage-DyvWrXiT-3xQsLUHe.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CweOkcc2-Bmcq6In9.js → BillPaySetUpPage-DQUGXwzL-Dnj5yaWm.js} +2 -2
- package/dist/assets/{BillingSettingsPage-BQSZ6DMP-BpIPoFvc.js → BillingSettingsPage-zTBJHq7Y-BV6Ca01p.js} +7 -7
- package/dist/assets/{BillsBulkReviewDrawerPage-3trPH78u-CknT1dvx.js → BillsBulkReviewDrawerPage-qYfFPFRf-BHVDK8xO.js} +1 -1
- package/dist/assets/{BoxItem-Bf7JemSM-DA-EqZ9I.js → BoxItem-CTPuYGrU-DYtDSgqa.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DXODyk9C-BNgCRU8b.js → BusinessVerificationPage-BFJpNsiW-DInJr7ZP.js} +8 -8
- package/dist/assets/{CardNumberSubText-ByVXSDZX-DEHzKLxG.js → CardNumberSubText-LPyLf3pY-CxLdtzot.js} +1 -1
- package/dist/assets/{CashbackDetailPage-9RLOXq5b-Dkm3ES1i.js → CashbackDetailPage-ByJDF7cH-jwINHAlE.js} +23 -23
- package/dist/assets/{ChargeCardDetailPage-lkNsxEdO-BUneoo-E.js → ChargeCardDetailPage-DjbwN3eA-BLSeog5S.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DV25pQMP-BOo6rIHo.js → ChargeCardListPage-BcFdegbn-DKuu9f6F.js} +1 -1
- package/dist/assets/{ChargeCardListTable-CSWl05jK-DuONjB5U.js → ChargeCardListTable-BIOmPiWw-D8SfaL8P.js} +25 -25
- package/dist/assets/ChargeCardPromoPage-D7WfGZCc-DqWg0bDn.js +219 -0
- package/dist/assets/{ChargeCardSetupPage-7mEdImT--CnvgcvBB.js → ChargeCardSetupPage-DCjJd2bu-DLt9KXzY.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-D_rKdZ5c-CEA_Rx_h.js → ChargeCardStatementsPage-YZLslSfM-DTP8_5Q0.js} +3 -3
- package/dist/assets/{ChargeCardUtils-BB7l65Bf-CPLK84z2.js → ChargeCardUtils-Bj-TvntU-Dg5OHLzk.js} +1 -1
- package/dist/assets/{ChaseOverlay-hsrWeA5X-Dcp3XMSx.js → ChaseOverlay-D5CGgOY9-B_78AAMx.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-CZNH4rCm-DdTXudjo.js → CheckDepositDrawerPage-CGicBOjt-D-PwWbfO.js} +19 -19
- package/dist/assets/{CollapsableReportTable-C73RBmaZ-D428uVrP.js → CollapsableReportTable-UQFDb8XE-4tPDRPlF.js} +46 -46
- package/dist/assets/{CompanyOfficerDetailsSection-CZWTSWyp-J81A-yw0.js → CompanyOfficerDetailsSection-CHSL02sQ-B9TP8k6M.js} +34 -34
- package/dist/assets/{CompanyPassportCard-D-hYeDRN-CHleBT8E.js → CompanyPassportCard-Byoyj6z--BlTpOAaU.js} +3 -3
- package/dist/assets/{CompanyPassportPage-fQ60DR7u-CalJr939.js → CompanyPassportPage-CJzVGPMf-CO-upSIX.js} +12 -12
- package/dist/assets/CompleteProfile-CGaFSQZ5-D40jt5XK.js +36 -0
- package/dist/assets/{ConfettiBurst-D5XTvsuG-DqvhMlLN.js → ConfettiBurst-C6in2R-G-B86Veyix.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-7KdDJirx-Cy50oCjG.js → CreateOrEditVendorPage-HV8sXBZp-MEsDNOD9.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-BNJLUnlH-HMrOhsYY.js → CreditCardPaymentDrawerPage-CcN3B0mF-C-aA8CxZ.js} +15 -15
- package/dist/assets/{CreditCardPaymentPlgSection-BwqznNRc-Bkwvl_Pm.js → CreditCardPaymentPlgSection-dBWHuBiS-md7FwEbI.js} +10 -10
- package/dist/assets/{CurrencySelectField-PwurThUn-CCLMhDMc.js → CurrencySelectField-DLqb-9fp-mhS9VcnO.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-CHJLyOyf-B-wAfl7n.js → CustomerOnboardingActivationPage-Bf64O2cX-OUwG2YXT.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-ILwY2ADL-DIj_DN1o.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BqdhqyL7-8QZEAu-d.js → CustomerOnboardingDetailPageSkeleton-DbbrMwW5-CFydRVir.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-DDio10hZ-BfoQu7jO.js → CustomerOnboardingNoStepsPage-DZGpH4MZ-T0P42e-W.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-k2OYvIqe-BCb17bIF.js → CustomerOnboardingPage-BfJlxXNX-CUa70VM1.js} +9 -9
- package/dist/assets/CustomerOnboardingProductSuitePage-BJIVmVlG-CgGO5C2r.js +202 -0
- package/dist/assets/{Dashboard-DhMPjLVy-BLMPexXk.js → Dashboard-fGyiceKA-BzN0eOpe.js} +1 -1
- package/dist/assets/{DashboardReportPage-C9YvD_24-CoC796XJ.js → DashboardReportPage-DL5dB1SI-DEQ-kpwn.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BYFOUvho-CLqmAE-P.js → DepositAccTransactionItem-Dyfob6gX-CX7faNLY.js} +4 -4
- package/dist/assets/{DepositAccTransactionListPage-DeN4-lBP-BcaZtaYF.js → DepositAccTransactionListPage-DrEbXdWa-BNgdFMXM.js} +7 -7
- package/dist/assets/{DocumentSecurityBanner-6cQ2cW7e-B-LiYCwn.js → DocumentSecurityBanner-rDtPu8vH-D4_h4X4u.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BmMEth4c-0ZA88eE1.js → DomesticWireDetailsPage-BVmsi9ei-CUemBchq.js} +1 -1
- package/dist/assets/{DownloadOverlay-D0_pmb7k-485JyjTo.js → DownloadOverlay-Dk9PoZlP-D3imuRfO.js} +6 -6
- package/dist/assets/{DrawerPage-C5u676VK-CQ6YNm3J.js → DrawerPage-BSa6DJZr-D9NnCvxY.js} +1 -1
- package/dist/assets/EditPeoplePage-Ci4ys6zZ-CrrNlTmS.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-BxjNoyj8-BPCBUC8w.js → EditReimbursementDetailPage-DemIPGJ5-B9757Dmu.js} +43 -43
- package/dist/assets/{EntityDetailPage-BfscGvkI-CDpC3UiC.js → EntityDetailPage-C_luSjQJ-Cu-KPSDu.js} +3 -3
- package/dist/assets/{EntitySummarySection-BCkLY2Py-BvmspxF4.js → EntitySummarySection-BjoUr41l-NV66C_A4.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-C4SCxViu-BTF6U5vA.js → ExpenseAutomationOverviewPage-DwRzHbCN-D7MDDzPf.js} +18 -18
- package/dist/assets/{ExpenseAutomationPage-DF1-Q4X5-DpQfueM1.js → ExpenseAutomationPage-CxTfHxhm-BvLBK1eA.js} +33 -33
- package/dist/assets/{ExpressPayPage-Cdtx03yB-CFuea7SC.js → ExpressPayPage-B9teVxc8-CO2jiwXu.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-nQYT4moR-Cr3GrNZL.js → FeaturePreviewPage-LAldEIqF-C8tcud8u.js} +2 -2
- package/dist/assets/{FollowStepsSection-CRBm3eL9-BxrxyxZb.js → FollowStepsSection-ICp_6TcX-Do7FY4O7.js} +8 -8
- package/dist/assets/{GlobalReviewListPage-3iXmpaXt-DvNMoVjg.js → GlobalReviewListPage-CaSIQgOY-CLXlBnhP.js} +1 -1
- package/dist/assets/{HelpButton-Cv7-d_qL-CUvPOpAv.js → HelpButton-C-GTHvg5-DHe5_hb9.js} +1 -1
- package/dist/assets/{InformationCardStack-JCre21xs-DtS-Hddp.js → InformationCardStack-B3zlnZE6-BXUPOzl0.js} +3 -3
- package/dist/assets/{InsightsCardStack-Dekfw94R-BLPjyaig.js → InsightsCardStack-Czo2phfa-CVjFCXX9.js} +8 -8
- package/dist/assets/{InsightsSection-CLqfyvOO-xadJoIF2.js → InsightsSection-BF65nVDk-Ck5eCytH.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-o9w1-WIT-_9mLCWjO.js → IntegrationsSettingsPage-CfOJp2rR-DnJqSbGe.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-DBG1ni7g-5byzUSyT.js → InternationalWireSwiftDetailsPage-BPckWTQy-C_9kzKUy.js} +18 -18
- package/dist/assets/{InternationalWireVerificationPage-BLU4F--p-CJDTcopv.js → InternationalWireVerificationPage-IyDI0e1n-DHyr06eY.js} +19 -19
- package/dist/assets/{InviteFormPage-Bf8Mqb7S-DDTavBxx.js → InviteFormPage-GPQ5eSD8-CiDxRX8h.js} +13 -13
- package/dist/assets/{InvitePageListView-6oeT1vaB-CKIuu3RS.js → InvitePageListView-BD4bJtvG-B0K74gtE.js} +52 -52
- package/dist/assets/InvitePeoplePage-DhGjKKsO-D5tOqF8-.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BiIfE0Mk-CTWHQOhW.js → InvoiceUploadSection-DzOByrtE-BE32q3YT.js} +7 -7
- package/dist/assets/{IssueChargeCardPage-Dd312Qu7-DJeAloNR.js → IssueChargeCardPage-U5Z_OXsd-CLDaQ415.js} +20 -20
- package/dist/assets/{LabeledAddressValue-BplX--OG-CiZ_SQgG.js → LabeledAddressValue-DaabTZGG-CWQotmwk.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DkhJs5ky-B6R8wPlw.js → LabeledAddressValueField-B2TfgAjp-BsfDNIIE.js} +4 -4
- package/dist/assets/{LabeledControlledCheckBoxField-SJfjkDzA-CpIAw81s.js → LabeledControlledCheckBoxField-Cb9kJIyY-DlHFWICr.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CPwrvNjy-D3f7Nu-c.js → LabeledCreatableSingleSelectField-BtboN2bE-DF3GueZh.js} +3 -3
- package/dist/assets/LabeledDocumentField-BKVHT_ih-cMXijjYr.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-D70GX0HR-Mxvvq1WO.js → LabeledDropDownFormattedTextField-CLUZVQCI-BVMu_guX.js} +7 -7
- package/dist/assets/{LabeledText-mTAE2dvH-BXZp1Sm_.js → LabeledText-DXlb_cAu-B1j2xF1t.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dx8TfHuB-DrtQGMZC.js → LabeledUserSingleSelectWithSubtitlesField-CqC0Fbjb-DTDFjdt3.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-ZGHinaTy-Bb9QLK3C.js → LabeledZeniRolesDropDownField-Dbyg4yxA-W4VJHBJD.js} +12 -12
- package/dist/assets/{LinkJETransactionPage-CNYQO-AQ-CY88gwq7.js → LinkJETransactionPage-D8sX4v-7-CsOS0tUv.js} +8 -8
- package/dist/assets/{LowBalancePopup-hdwaJezh-f3ksDR4g.js → LowBalancePopup-fUydozi0-DD4cdD_C.js} +5 -5
- package/dist/assets/{MagicLinkACHDetailsPage--DRHcaKz-WEt4M3n2.js → MagicLinkACHDetailsPage-BiZxVBT2-o-Rk17-1.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B5hbI4dU-BBmovkJC.js → MagicLinkDomesticWireDetailsPage-BO-mlqRp-Clxahb02.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BdwVZCRt-5G01_OeQ.js → MagicLinkInternationalWireDetailsPage-BSwmG-gt-CwiZ0Ksn.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DOUrPdD--DcZ_t2NE.js → MagicLinkSuccessPage-BA_B_aML-C9hrpm-L.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Bb27jU2a-DoQ8aWp1.js → MagicLinkTitleSection-hjUfjUKg-BSNiuVs0.js} +3 -3
- package/dist/assets/{MailingDetailsSection-CdKFQB_8-DW3BDO52.js → MailingDetailsSection-zYhyH_Di-D4yENJST.js} +2 -2
- package/dist/assets/{MeetingCalenderPopup-B3sIZU3d-DQNFWJ_9.js → MeetingCalenderPopup-BbCahdTF-CVjb8WtP.js} +3 -3
- package/dist/assets/{Menu-Bsk58l8k-DveIoh_v.js → Menu-gdxz6nzv-BWb1NISh.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-P1Zh6SFD-hnAROTqH.js → MyBankConnectionsSettingsPage-B-kZp6kY-DGgRFgSz.js} +12 -12
- package/dist/assets/{MyPendingActivationChargeCardListPage-Cs7rVAdh-Cmwa__iw.js → MyPendingActivationChargeCardListPage-Cux0Zc6M-C_85HTeN.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-Cc4XfbBQ-CNw8hQXw.js → MyProfileSettingsPage-DlPCGOud-CJbICNU7.js} +6 -6
- package/dist/assets/{NavBarWithPicker-DFD5LZ4o-DVbNG2lJ.js → NavBarWithPicker-DgFXO4Py-B8a2N5H7.js} +3 -3
- package/dist/assets/{NavigationArrow-mL8dVddD-CWP10rmD.js → NavigationArrow-DfB1s0Kl-dP_dOcYr.js} +5 -5
- package/dist/assets/{NavigationDots-MPqPjbnr-B2VuEWoT.js → NavigationDots-B12u1DHV-wGjE6ymi.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-QTvziNPs-CWfcgxwK.js → NewGlobalMerchantPage-C4ljSG4I-CpKXjRxq.js} +6 -6
- package/dist/assets/{NoDataChart-C1BY1riw-DEwvHChk.js → NoDataChart-C86cs81n-BI6hUCyS.js} +1 -1
- package/dist/assets/{NoDataTable-C_4AqyDp-8AvQpHPa.js → NoDataTable-BsEI7aoI-uEd_WfDe.js} +1 -1
- package/dist/assets/{NotFoundPage-U8Zqpzgy-B6U5r_7M.js → NotFoundPage-CQVgfvr8-DylBkQRK.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-2A4Pahmq-CXgVjNli.js → NotificationSettingsPage-CamY-jUK-CVgplVyL.js} +13 -13
- package/dist/assets/NotificationsListConfig-Cj32T7Hz-BOzef_mv.js +1 -0
- package/dist/assets/{NotificationsPage-B6yKJmGI-DzN6ib9t.js → NotificationsPage-Cq5siAeE-7OwFZiNL.js} +36 -36
- package/dist/assets/{OpExByVendorPage-BnTlBXeu-CipcFkdu.js → OpExByVendorPage-D08wBmkx-kSlP6mnA.js} +4 -4
- package/dist/assets/{OverlayContainerPage-BxBOhoib-ukQtuWFC.js → OverlayContainerPage-GWXnlbZH-CEl9U8x8.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CKW73tr8-D7h3LcYD.js → PandLWithForecastPage-DD43rPhW-A1TZHqgl.js} +5 -5
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CSEVISAI-BNavlD0y.js → PaymentAccountSetupBillingAddressSection-C7GoqHot-DAesV6Ej.js} +6 -6
- package/dist/assets/{PeoplePage-BJxZJT-l-C9LL-QhI.js → PeoplePage-BwWeuQq0-CESGkAiN.js} +16 -16
- package/dist/assets/{PortfolioAllocationFormPage-C4pRhyet-BgcVpkPb.js → PortfolioAllocationFormPage-QLO1aksn-C4Nd_3VN.js} +1 -1
- package/dist/assets/{PortfolioDetails-4fbkArz6-B-yRSXBm.js → PortfolioDetails-EbWPeH4e-BydNByff.js} +7 -7
- package/dist/assets/{ProductsCarousel-gGbLzHle-BiV0Dada.js → ProductsCarousel-VTApOnqN-CMfc9ylB.js} +1 -1
- package/dist/assets/{PromoBaseCards-DUlZEg5E-xcZglFHs.js → PromoBaseCards-B0BCeySU-wfb5DzjJ.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-C_Z2lvUz-BwsPJmHe.js → QBOConnectionDialog-CKOkxTzr-DKeUf173.js} +6 -6
- package/dist/assets/{QBOSetupSection-DqWiwHwl-CaRIoZTT.js → QBOSetupSection-DycavdKb-CT5F0n4h.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-JWdrVgqW-C_wUAOQY.js → ReimbursementApprovalRuleDetailPage-PHWY-z0e-FKRZB_Ja.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BnBNwFzM-DjomTgZF.js → ReimbursementApprovalRulesPage-B6po7mmX-BMDEIvFm.js} +33 -33
- package/dist/assets/{ReimbursementDetailPage-Dyjb0qZE-Bb3CYqzm.js → ReimbursementDetailPage-Dt6DhlL1-CYLKdFSl.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-D1EqiXEa-FvZLWCiR.js → ReimbursementPromoPage-DjcsW1Av-Dq9BuWdd.js} +3 -3
- package/dist/assets/{ReimbursementSetUpPage-ClJ_4WMp-BJpe0ne4.js → ReimbursementSetUpPage-DQpxCs8Z-BKnPNPnJ.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B-uGRv6i-CHahWJGS.js → ReimbursementsBulkReviewDrawerPage-4foPx3A--CPio49Pu.js} +1 -1
- package/dist/assets/{ReloadCard-DVYCtjFP-CU_Dnd08.js → ReloadCard-CaPpBGJK-BQahT5RP.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BTu2hum1-CPyUV-1u.js → ReportTableViewSelector-D-blv3pI-NEqAb2d0.js} +7 -7
- package/dist/assets/{ReportsPage-BJEqtDDR-DrtRVAGN.js → ReportsPage-BZj7Tec8-ByPzZ3Mi.js} +5 -5
- package/dist/assets/{RevenueChart-BFS-A4qa-Cx-As_Eb.js → RevenueChart-CwhdG15z-Ossw9Srn.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-C6qSCmDQ-DWlHT8F5.js → ReviewDetailsPage-CuO3d_n4-DDpHJibb.js} +13 -13
- package/dist/assets/{ReviewOverlay-DItEmr7f-AS3xzQ96.js → ReviewOverlay-DdM4zwoh-BrpeA22_.js} +1 -1
- package/dist/assets/{RoleWithToolTip-CqtMdboJ-DDxj3xxP.js → RoleWithToolTip-BNc9Cjys-BflhBmMa.js} +6 -6
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CKcDbns8-fF7PO25g.js → ScheduleDetailsFixedAssetsPage-DgwGten3-CzNnfEIV.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CYqYYvix-BNlu0RJ8.js → ScheduleDetailsPage-C4UMK1HB-2qYXZBGt.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DUYFGZvc-9HL4QDrz.js → ScheduleSequenceTable-n_lV13zp-DSggYkAR.js} +18 -18
- package/dist/assets/{ScreenRoutes-BI6xyHHN.js → ScreenRoutes-Cu_ZW3C2.js} +35 -35
- package/dist/assets/{SetUpAccountSection-DfuZHlL6-D7lVamWi.js → SetUpAccountSection-CGBdEw5o-BsHNDPBm.js} +21 -21
- package/dist/assets/{SetUpDefaultSection-Jl4dtzx3-C3-EmpC_.js → SetUpDefaultSection-5H7JgUVZ-3gB6LAnP.js} +10 -10
- package/dist/assets/{SignIn-OTT_6lLp-BofEbUzx.js → SignIn-DpOLibjy-B1O6Z7z5.js} +4 -4
- package/dist/assets/{SignInScreen-CCNlCZPG.js → SignInScreen-CqoaPSYP.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BkL-3WNh-CmJxty83.js → SpendManagementListViewPage-C0IA6cdd-BUq3yiJp.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Buppd61y-Z26soCL-.js → SpendManagementPerTabPage-B727RQUp-BpiIJwHE.js} +14 -14
- package/dist/assets/{SpendManagementSection-BGcBRKGN-r3ndTuv4.js → SpendManagementSection-B8xyYfKM-Xch0MBI4.js} +10 -10
- package/dist/assets/{SpendMgmtSetupAccountSection-Cswh297O-ClH8d_8B.js → SpendMgmtSetupAccountSection-BHH-PFxf-BEhEOBT5.js} +13 -13
- package/dist/assets/{StatementItem-C3tUNT5A-CIQABbZw.js → StatementItem-CTOdgetS-ud-kOkz9.js} +4 -4
- package/dist/assets/{StatementsPage-DGryRE6z-DYX2UB10.js → StatementsPage-d9G6kH-f-DgcEkZX-.js} +3 -3
- package/dist/assets/{StatusSwitcher-BgWlxay9-C2yA7CjA.js → StatusSwitcher-BA7VjpgX-AJZc15_H.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DwwAqq_R-C-rVBP68.js → SubTabSwitcher-DDJSCY6V-DongKB4y.js} +1 -1
- package/dist/assets/{SummaryCard-Dm0Tx9is-BOl3yzj-.js → SummaryCard-bczJjOLG-CjdZn_iI.js} +1 -1
- package/dist/assets/{TaskManagementPage-59XAl_cs-DdQCzzW7.js → TaskManagementPage-C99UjrT4-CmD3QiB_.js} +31 -31
- package/dist/assets/{TimeRangeSwitcher-D7-Jph-G-DrzBgOKv.js → TimeRangeSwitcher-DgpRdFEz-UpNf9Pio.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-CWYQWFLF-B2eT3g6m.js → TimeframeSwitcher-D7Ebofq5-DCuWRjmL.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-QOhQ3sac-DRu8hhQ-.js → TimeframeSwitcherWithToggle-BxG4mfwZ-hDOmM0BL.js} +1 -1
- package/dist/assets/{TopExCard-CTlizsDD-CbVG0KKn.js → TopExCard-Bl1HEvJK-DYu_Snz8.js} +5 -5
- package/dist/assets/{TopExDetailPage-Df3JbgcF-DygJJzQr.js → TopExDetailPage-RVGSdHNI-B2tvvcdJ.js} +2 -2
- package/dist/assets/{TransactionDetailPage-DvNpTjAp-nivJ-WE2.js → TransactionDetailPage-2pU2-JVz-DvzDNfcu.js} +30 -30
- package/dist/assets/{TransactionList-SkSPfIsE-3VqEpEta.js → TransactionList-DnERXw-A-C5LRJytL.js} +8 -8
- package/dist/assets/{TransactionListBig-CZCV_kmJ-CU-ZTueA.js → TransactionListBig-vCTvXh5y-DLaLiFSC.js} +9 -9
- package/dist/assets/{TransactionListPage-CBbyagWp-CABnQ2Ad.js → TransactionListPage-DVtqlCMZ-B-nHFVQj.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BXnlFdHR-Cg-sleYC.js → TransactionVendorDetailPage-0FE-k35E-D5OPfVkl.js} +3 -3
- package/dist/assets/{TransferDrawerPage-CxXLyKwW-CcrxmwoP.js → TransferDrawerPage-C17-lHVH-DqBTA_eG.js} +29 -29
- package/dist/assets/{TreasuryOverviewPage-3JlXZfCV-BaVWxrMw.js → TreasuryOverviewPage-DSRk9Ojd-8t6OoxPf.js} +16 -16
- package/dist/assets/{TreasuryPromoPage-BhAicq7r-BXFjeSvE.js → TreasuryPromoPage-C-8SuUVF-CFc9jz_k.js} +15 -15
- package/dist/assets/{TreasurySetupPage-BQG_Wd5U-CuRZifkf.js → TreasurySetupPage-CBN3MDev-DhwdW1pF.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-dCAtvvZk-LOpMx3mv.js → TreasuryStatementsPage-CYcFki_F-BBDbwRs0.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-irA0Cgkj-CK8dgrod.js → TreasuryTaxLetterPage-D_yfrqyw-DbMRXPvP.js} +5 -5
- package/dist/assets/{TreasuryTransferOrReviewPage-Dd1oLBma-BdudBXha.js → TreasuryTransferOrReviewPage-fm-w_JUE-C98U-Z9e.js} +36 -36
- package/dist/assets/{TrendChart-Ctquh3qH-BXdwoNzy.js → TrendChart-C6zZmjPl-pFeewMTm.js} +2 -2
- package/dist/assets/{TrendWithTransactions-CoXTnQK7-DI1VEsOz.js → TrendWithTransactions-DYpTdT3--CpsGst0w.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-Cq49D6V9-DdxXW0nh.js → UncategorizedAccountsMappingPage-BP5b7SLK-CwqyQ37l.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-CR0nZ7NM-CNMCC02w.js → UnitIntegrationPage-CEdW3T2--Dubmotz7.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-B_DFEIlC-CURAudK_.js → UploadAdditionalDocumentOverlay-DEJxFgaz-UhYjFUhJ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-KsRgKz_Z-LsR0JToL.js → Vendor2FAPopup-DKQXhPGa-C-1Y3b9X.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-MRaehbhm-CLgE5xYR.js → VendorACHDetailsPage-CYVg93tk-NwYypD-G.js} +1 -1
- package/dist/assets/{VendorDetailPage-Cji21PBc-BCtJStdp.js → VendorDetailPage-CQptl370-FNWm9uTn.js} +18 -18
- package/dist/assets/{VendorDomesticWireDetailsPage-DhUIW9g--COJKg8zJ.js → VendorDomesticWireDetailsPage-VAGgBKEt-CNg4m5oN.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BWFbXLhQ-BxUi0-__.js → VendorFiling1099EditablePage-DT3_7-pU-BiogUCwK.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-tvh5pcvQ-THD3l6eB.js → VendorFirstReviewPage-CTu8QLSu-C9pea9HN.js} +26 -26
- package/dist/assets/{VendorInternationalWireDetailsPage-CfmZSb8O-DIxfvNFa.js → VendorInternationalWireDetailsPage-DETN5xQf-u-FhFEQH.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-V_1s9mWi-CfIMbPtN.js → VendorInternationalWireSwiftDetailsPage-CoFSDse_-CMz5sXIT.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-b9s5nqGq-C603vDJM.js → VendorsAccountsSection-B0atBQRf-DwN1P5ST.js} +6 -6
- package/dist/assets/{WarningsDrawerPage-CB4mJGTB-BdjqZZPI.js → WarningsDrawerPage-C8sUYwZn-ChnBWAPn.js} +9 -9
- package/dist/assets/{ZeniAccountDetailPage-CgSyyen1-CshTBZp2.js → ZeniAccountDetailPage-D8uZ-seh-BOZmI_Dm.js} +33 -33
- package/dist/assets/{ZeniAccountListViewPage-DjGZpdh_-ZERnQ4MU.js → ZeniAccountListViewPage-BuwG7e20-B-7yXRaY.js} +14 -14
- package/dist/assets/{ZeniAccountNavBarPieces-BJC4d2Iu-DYh40FyS.js → ZeniAccountNavBarPieces-uukfD44t-C94Q1ycz.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-D3Yt6FIj-GRZWrpyM.js → ZeniAccountPromoPage-3t3vzAGh-DdQrchgw.js} +9 -9
- package/dist/assets/{ZeniAccountSetupPage-BeCPekI4-B43tT3eQ.js → ZeniAccountSetupPage-BVzvcRnV-c8DsQZjx.js} +3 -3
- package/dist/assets/{ZeniCopyright-Dhdl9kqY-Ef9QRXwR.js → ZeniCopyright-DcAcIGRB-BE_hgGDM.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-B8VFb2l--DxgbNpeK.js → ZeniTransferAmountSlider-RA4Pva57-B-TGxP0B.js} +1 -1
- package/dist/assets/{analyticsHelper-CWmZNwFh.js → analyticsHelper-Cbfklysr.js} +1 -1
- package/dist/assets/{analyticsHelper-Cawv3PXO-W_w6SVVv.js → analyticsHelper-D2Tw-gFs-CfilQYvq.js} +1 -1
- package/dist/assets/{chartTypes-5p7NWUHx-CaLqh1mY.js → chartTypes-DX9eCHdW-B7oDG2yB.js} +1 -1
- package/dist/assets/{commonDimensions-CQlLUBWG-DzlL6K89.js → commonDimensions-C417LkG3-Cr4GHwJ7.js} +1 -1
- package/dist/assets/{detailCommon-CoAmJ6pY-B7nmx1bS.js → detailCommon-DMILWpBc--U3Fq460.js} +4 -4
- package/dist/assets/{downloadPdf-CCJjnfCZ-DhZmGI0x.js → downloadPdf-TtzJSlkj-CYWEy00G.js} +1 -1
- package/dist/assets/{index-BQuxwdpl.js → index-rGMXK0Rc.js} +2579 -2597
- package/dist/assets/{mapLoadingInProgressToTreeNode-CwyU1xs5-BVaHor8r.js → mapLoadingInProgressToTreeNode-BuX84Fl8-C9VszrPq.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-IKJYFM7_-BhnDf8Ml.js → mapSectionWithAcOnlyToTreeNode-CuqkYL_a-D2dufnQP.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-D5XTLzM7-BSt0rKdl.js → mapSpacerToTreeNode-CkoeX_hU-B3Tt6fDl.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CJMbtmIl-5p_Ma1rs.js → mapTimeframeBalancesToTreeNode-CbddU0ga-B0ctGM7F.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-SX6fBp6e-CrAiUa7Z.js → mapTimeframeBalancesToTreeNode-Dz-UvEDI-BLldSj9r.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ts5lOZtX-EAxYFN8c.js → mapTimeframeHeaderLoadingInProgressToTreeNode-C_cGYrFN-DbJ2zuiX.js} +1 -1
- package/dist/assets/{play-icon-oQKnPjZi-ikYsAriO.js → play-icon-DvnIcVvi-BFAe9r1Z.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-DwvFse7w-BpGyVZma.js → toCOABalancesWithID-CEYLTlMK-DfcDAp6p.js} +1 -1
- package/dist/assets/{toChartData-BBvMC_VQ-C0NFogQd.js → toChartData-DgmHnq7q-B0J27uo6.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CUDK9KvQ-D8RX0DsH.js → treasuryColorHelper-D6-KrZju-CjJ44MCH.js} +1 -1
- package/dist/assets/{uploadAttachment-P4S_2L_v-CGkHKEhM.js → uploadAttachment-B6HsV49B-Cn4CVOXc.js} +13 -13
- package/dist/assets/{uploadReceipts-DhDnr0ap-B_HL-sz_.js → uploadReceipts-D80JLNY4-DmW4IrLG.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ChargeCardPromoPage-Cv34m9BS-CZNZStg6.js +0 -219
- package/dist/assets/CompleteProfile-DnBzaAdT-DtIxbZgo.js +0 -52
- package/dist/assets/CustomerOnboardingContainerPage-DyM4sCZd-2ugo5OTL.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-CxB32dUM-Do1nrT8y.js +0 -202
- package/dist/assets/EditPeoplePage-DAM71X8m-B2UZEnLj.js +0 -55
- package/dist/assets/InvitePeoplePage-CLvVDRca-D907h_Dw.js +0 -12
- package/dist/assets/LabeledDocumentField-DLd6UnEn-o-XnUJ1D.js +0 -41
- package/dist/assets/NotificationsListConfig-BIw5ASx2-Bj3yoWmL.js +0 -1
- package/dist/assets/VerifyDevice-CJgD3UmO-DfWOJP1r.js +0 -67
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as ze,u as
|
|
1
|
+
import{X as ze,u as Re,cg as yl,M as ue,C,a1 as gl,j as l,bs as Be,eZ as We,bP as _e,ft as Ce,o as a,fC as bl,cf as qe,c6 as ee,c8 as ce,cc as Me,l as Le,cy as xl,cw as wl,ca as Ue,c9 as De,fD as Te,fE as jl,fb as vl,fa as ke,cd as ge,ce as $l,g as Ne,e_ as He,Q as Ge,b4 as Ye,eY as Ze,s as Pe,fs as Qe,p as ye,f as Il,b1 as Sl,m as ae,dg as Ol,fF as Ll,e as Dl,fG as Fl,b2 as be,v as _l,cq as Cl,b0 as Nl,a$ as Pl}from"./index-rGMXK0Rc.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{W as Fe}from"./LabeledAddressValueField-B2TfgAjp-BsfDNIIE.js";import{D as El}from"./LabeledCreatableSingleSelectField-BtboN2bE-DF3GueZh.js";import{Y as Ie}from"./LabeledDocumentField-BKVHT_ih-cMXijjYr.js";import{P as Xe}from"./DocumentSecurityBanner-rDtPu8vH-D4_h4X4u.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,35 +8,35 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
8
8
|
align-items: flex-end;
|
|
9
9
|
margin-left: ${a.sp2};
|
|
10
10
|
margin-top: ${a.sp1};
|
|
11
|
-
`,le={labelWidth:new P(115,145,155),mediumLabelWidth:new P(140,160,170),largeLabelWidth:new P(150,210,244),largeLabelDocumentWidth:new P(150,210,252),paddingBottom:new P(ae[3],ae[2]),containerRowGap:new P(12,ae[3])},kl={title:new Ge("standardMedium","largeMedium")},Al=ue.getLocalizedStrings(),{dateFormat:{visual:zl},commonSetUp:Bl,companyPassport:Rl,common:{documents:Se,optional:Wl}}=Al,o=Bl.businessVerification,ql=o.sourceOfFundOptions,Ml=M.forwardRef(({fileProps:e,productType:p,allIndustries:u,companyDetails:m,connectedAccountProvider:C,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:Q,onRegisteredAddressClick:V},re)=>{const f=ze(),_=le.labelWidth.value(f),D=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),z=le.largeLabelDocumentWidth.value(f),y=o.productType[p],X=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,[N,x]=M.useState(!1),[S,T]=M.useState(!1),F=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(Ql,{children:[ie===!0?l.jsx(Xl,{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:v(h,"companyLegalName"),placeholder:o.companyLegalNamePlaceholder,defaultValue:B,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:D},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(De,{isDisabled:n,label:{label:o.companyAddressLabel,width:D},addressValueField:{name:v(h,"companyAddress"),placeholder:o.companyAddressPlaceholder,defaultValue:xe,registerOptions:{validate:d=>s.includes("companyAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{Q?.("company_address")}},additionalInfoLabel:o.companyAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx($,{}),l.jsx(De,{isDisabled:n,label:{label:o.registeredAddressLabel,width:D},addressValueField:{name:v(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($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyWebsiteLabel,width:_},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(_e,{label:{label:o.companyIndustryLabel,width:_},singleSelectField:{singleSelect:{name:v(h,"companyIndustry"),placeholder:o.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:F,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:W,allOptions:Rl.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&C==="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: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($,{}),l.jsx(Ue,{isDisabled:n,label:{label:o.companyPhoneLabel,width:_},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(qe,{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: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($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:v(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($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyTaxIdLabel,width:_},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: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:X,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("certificateOfIncorporation")===!1&&C==="unit"},additionalInfoLabel:o.certOfIncopDocumentError.replace("_product_type_",y),hasError:N,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>x(d)}),N||!(n!=null||X!=null)?l.jsx(Oe,{windowSize:f,isError:N,children:Se.formatDocumentText10MB}):null,l.jsx($,{}),l.jsx(Ie,{name:v(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($,{}),H===!0?l.jsxs(l.Fragment,{children:[l.jsx(_e,{label:{label:o.sourceOfFundsLabel,width:_},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: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 v=(e,p)=>`${e}.${p}`,Ul=t.div`
|
|
11
|
+
`,le={labelWidth:new C(115,145,155),mediumLabelWidth:new C(140,160,170),largeLabelWidth:new C(150,210,244),largeLabelDocumentWidth:new C(150,210,252),paddingBottom:new C(ae[3],ae[2]),containerRowGap:new C(12,ae[3])},kl={title:new Ge("standardMedium","largeMedium")},Al=ue.getLocalizedStrings(),{dateFormat:{visual:zl},commonSetUp:Rl,companyPassport:Bl,common:{documents:Se,optional:Wl}}=Al,o=Rl.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: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,W=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,q=m?.registeredAddressStatus?.addressToCreate,[P,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(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: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(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: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($,{}),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:W,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(qe,{isDisabled:n,label:{label:o.companyPrimaryContactNameLabel,width:b},nameField:{name:v(h,"primaryContactName"),placeHolder:{firstName:o.firstNamePlaceholder,lastName:o.lastNamePlaceholder,name:o.namePlaceholder},defaultValue:{firstName:K?.firstName??"",lastName:K?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:d=>!!d||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:o.companyPrimaryContactNameError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:v(h,"primaryContactEmail"),placeholder:o.companyPrimaryContactEmailPlaceholder,defaultValue:K?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:o.companyPrimaryContactEmailError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyTaxIdLabel,width:D},text:{type:"text",name:v(h,"companyTaxId"),placeholder:o.companyTaxIdPlaceholder,defaultValue:J,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:$l},autoComplete:"new-password"},additionalInfoLabel:o.companyTaxIdError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Ie,{name:v(h,"certificateOfIncorporation"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.certificateOfIncorporation,width:z},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:Z,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("certificateOfIncorporation")===!1&&N==="unit"},additionalInfoLabel:o.certOfIncopDocumentError.replace("_product_type_",y),hasError:P,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>x(d)}),P||!(n!=null||Z!=null)?l.jsx(Oe,{windowSize:f,isError:P,children:Se.formatDocumentText10MB}):null,l.jsx($,{}),l.jsx(Ie,{name:v(h,"ein"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.einDocument,width:z},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:Q,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("ein")===!1},additionalInfoLabel:o.einDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||Q!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null,l.jsx($,{}),H===!0?l.jsxs(l.Fragment,{children:[l.jsx(De,{label:{label:o.sourceOfFundsLabel,width:D},singleSelectField:{singleSelect:{name:v(h,"sourceOfFunds"),placeholder:o.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:we,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:m?.sourceOfFunds,allOptions:Object.keys(o.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:d=>s.includes("sourceOfFunds")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.sourceOfFundsError.replace("_product_type_",y)}),l.jsx($,{}),l.jsx(Ie,{name:v(h,"formationDocument"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.formationDocumentLabel,width:z},filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},file:c,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("formationDocument")===!1},additionalInfoLabel:o.formationDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||c!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null]}):null]})]})});Ml.displayName="Company Details Section";const v=(e,p)=>`${e}.${p}`,Ul=t.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
row-gap: ${e=>le.containerRowGap.valuePx(e.windowSize)};
|
|
15
15
|
`,Hl=t.div`
|
|
16
16
|
display: flex;
|
|
17
17
|
justify-content: space-between;
|
|
18
|
-
`,Oe=t(
|
|
18
|
+
`,Oe=t(Dl)`
|
|
19
19
|
padding: ${a.sp1} ${a.sp4};
|
|
20
20
|
background: ${e=>e.theme.colors.grey4};
|
|
21
21
|
border-radius: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp2};
|
|
22
22
|
text-align: ${e=>e.windowSize==="small"?"initial":"right"};
|
|
23
|
-
color: ${e=>e.isError?
|
|
23
|
+
color: ${e=>e.isError?Ne.important:e.theme.colors.grey1};
|
|
24
24
|
`,Gl=t.div`
|
|
25
25
|
${e=>`${kl.title.style(e.windowSize)}`};
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: center;
|
|
28
28
|
color: ${e=>e.theme.colors.primary};
|
|
29
29
|
padding-right: ${a.sp2};
|
|
30
|
-
`,
|
|
30
|
+
`,Yl=t.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
align-items: center;
|
|
33
|
-
`,
|
|
33
|
+
`,Zl=t.div`
|
|
34
34
|
margin-right: ${a.sp2};
|
|
35
|
-
`,
|
|
35
|
+
`,Ql=t(He)`
|
|
36
36
|
width: ${a.sp3};
|
|
37
37
|
height: ${a.sp3};
|
|
38
|
-
color: ${
|
|
39
|
-
`,
|
|
38
|
+
color: ${Ne.success};
|
|
39
|
+
`,Xl=t.div`
|
|
40
40
|
height: 14px;
|
|
41
41
|
width: 14px;
|
|
42
42
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
@@ -47,7 +47,7 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
47
47
|
&:hover {
|
|
48
48
|
color: ${e=>e.theme.colors.primary};
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`,Kl=t(Ye)`
|
|
51
51
|
width: ${a.sp3};
|
|
52
52
|
height: ${a.sp3};
|
|
53
53
|
`,ea=t.div`
|
|
@@ -66,7 +66,7 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
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(Ze)`
|
|
70
70
|
width: max-content;
|
|
71
71
|
margin-left: ${a.sp3};
|
|
72
72
|
`,oa=t.div`
|
|
@@ -74,7 +74,7 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
74
74
|
display: flex;
|
|
75
75
|
align-items: center;
|
|
76
76
|
justify-content: flex-end;
|
|
77
|
-
`,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:
|
|
77
|
+
`,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:N,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:U,backgroundColor:h,titleTextAlignment:oe,selectedOptionColor:te,customStyleConfig:ie}={},customization:{placeholderLabel:H}={},showAddUser:G=!0}){const s=Re(),[Y,V]=M.useState(!1),re=ta(e).sort((c,j)=>c.label.localeCompare(j.label)),f=u!=null?ia(u):void 0,D=N??s.colors.grey5,F=h??s.colors.grey5,b=g??s.colors.grey3,z=n??ye.smallRegular.cssObject,y=U??z,Z={control:(c,j)=>({...c,border:0,height:"100%",backgroundColor:F,fill:j.selectProps.menuIsOpen===!0?s.colors.primary:s.colors.grey1,boxShadow:F,">div:last-child":{color:Y?s.colors.primary:s.colors.grey1},":active":{backgroundColor:F},":hover":{fill:s.colors.primary,">div:last-child":{color:s.colors.primary}},minHeight:"auto",cursor:"pointer",flexDirection:"column",">div>div>svg":{color:s.colors.grey1,">path":{color:s.colors.grey5,fill:"currentcolor"}}}),container:c=>({...c,backgroundColor:F,height:"100%"}),singleValue:c=>({...c,margin:0,minWidth:void 0,backgroundColor:void 0,">div":{borderRadius:0,padding:a.sp0,borderLeftStyle:"none",borderWidth:1,borderColor:s.colors.grey1,color:"unset"},">div>div>div>div:last-child":{display:"block",...ye.standardRegular.cssObject}}),valueContainer:c=>({...c,maxWidth:"100%",cursor:"pointer",height:"100%",...y,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:oe??"flex-start",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",">div":{width:"inherit"}}),menu:(c,j)=>({...c,backgroundColor:D,borderRadius:ae[1],boxShadow:`${a.sp0} 2px ${a.sp2} ${s.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:3,width:236,margin:`6px ${a.sp0}`,right:"-11%",">div":{flexDirection:"column",maxHeight:200,overflowY:"auto",borderRadius:a.sp1,padding:`${a.sp1} ${a.sp0}`,">div":{width:"-webkit-fill-available"}},...ie?.menu?.(c,j)}),menuList:c=>({...c,borderRadius:ae[1]}),placeholder:(c,j)=>({...c,margin:0,width:"100%",color:j.isFocused?s.colors.primary:"currentColor",paddingRight:a.sp2,...ye.standardRegular.cssObject,">div>div>svg>circle":{fill:s.colors.grey1}}),noOptionsMessage:c=>({...c,...ye.smallRegular.cssObject,padding:`10px ${a.sp3} 9px ${a.sp3}`,color:s.colors.hero}),option:(c,{isDisabled:j,isSelected:R,isFocused:se})=>({...c,...z,color:R?te??s.colors.champion:s.colors.hero,backgroundColor:R?b:se?s.colors.background:D,cursor:j?"not-allowed":R?"default":"pointer","svg:nth-of-type(2)":{display:"none"},":hover":{backgroundColor:s.colors.background,color:s.colors.primary},"& label":{paddingRight:"10px",cursor:j?"not-allowed":R?"inherit":"pointer"},">div>div>div:first-of-type":{display:"flex"}}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({}),indicatorsContainer:()=>({height:"100%",display:"flex",alignItems:"center"})},Q=({children:c,...j})=>l.jsxs(be.ValueContainer,{...j,children:[c,G===!0?l.jsxs(va,{hasSelectedUser:!!u,onClick:()=>{p(void 0),V(!1)},children:[l.jsx(ua,{}),l.jsx("div",{children:H??"Add User"})]}):null]});return l.jsx(Il,{onClickAway:()=>{V(!1)},children:l.jsx(oa,{children:l.jsx(Sl,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:Y,menuShouldScrollIntoView:!1,defaultValue:f,value:f,noOptionsMessage:()=>ue.getLocalizedStrings().cockpit.management.noPerson,onInputChange:c=>{c!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx(na,{children:l.jsx("div",{children:H??"Select..."})}),components:{Option:ya,DropdownIndicator:$a,IndicatorSeparator:Ia,SingleValue:wa,ValueContainer:ja,MenuList:Q},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:Z,options:re,isDisabled:m,onChange:c=>{p(c),V(!1)},isClearable:!1,isSearchable:!1},Ol())})})}const sa=t.div``,na=t.div`
|
|
78
78
|
display: flex;
|
|
79
79
|
align-items: center;
|
|
80
80
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -83,7 +83,7 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: center;
|
|
85
85
|
margin-right: ${a.sp2};
|
|
86
|
-
`,ca=t(
|
|
86
|
+
`,ca=t(Qe)`
|
|
87
87
|
width: ${a.sp4};
|
|
88
88
|
height: ${a.sp4};
|
|
89
89
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -92,25 +92,25 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
92
92
|
flex-direction: row;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: space-between;
|
|
95
|
-
`,ua=t(
|
|
95
|
+
`,ua=t(Cl)`
|
|
96
96
|
height: ${a.sp4};
|
|
97
97
|
width: ${a.sp4};
|
|
98
98
|
margin-right: ${a.sp2};
|
|
99
99
|
color: inherit;
|
|
100
|
-
`,ma=t(
|
|
100
|
+
`,ma=t(Nl)`
|
|
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(Pl)`
|
|
105
105
|
width: 12px;
|
|
106
106
|
height: 12px;
|
|
107
107
|
color: ${e=>e.theme.colors.primary};
|
|
108
|
-
`,
|
|
108
|
+
`,Ke=t.img`
|
|
109
109
|
height: ${a.sp4};
|
|
110
110
|
width: ${a.sp4};
|
|
111
111
|
border-radius: 50%;
|
|
112
112
|
justify-content: center;
|
|
113
|
-
`,ya=e=>{const{data:p,options:u,isSelected:m}=e,
|
|
113
|
+
`,ya=e=>{const{data:p,options:u,isSelected:m}=e,N=u.findIndex(g=>g.value===p.value);return l.jsx(sa,{children:l.jsx(be.Option,{...e,children:l.jsxs(pa,{children:[l.jsxs(ga,{children:[l.jsx(ba,{children:p?.photo!==void 0?l.jsx(Ke,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=_e},loading:"lazy"}):l.jsx(Ce,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N})}),l.jsx("label",{children:e.label})]}),!!m&&l.jsx(fa,{children:l.jsx(ha,{})})]})})})},ga=t.div`
|
|
114
114
|
width: 100%;
|
|
115
115
|
display: flex;
|
|
116
116
|
align-items: center;
|
|
@@ -118,12 +118,12 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
118
118
|
display: flex;
|
|
119
119
|
align-items: center;
|
|
120
120
|
margin-right: ${a.sp2};
|
|
121
|
-
`,xa=t(
|
|
121
|
+
`,xa=t(Pe)`
|
|
122
122
|
padding: ${a.sp0} ${a.sp2};
|
|
123
123
|
white-space: nowrap;
|
|
124
124
|
overflow: hidden;
|
|
125
125
|
text-overflow: ellipsis;
|
|
126
|
-
`,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,
|
|
126
|
+
`,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,N=m.findIndex(g=>g.value===p.value);return l.jsx(be.MultiValueLabel,{...u,children:l.jsxs(Sa,{children:[p?.photo!==void 0?l.jsx(Ke,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=_e},loading:"lazy"}):l.jsx(Ce,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N}),l.jsx(xa,{children:e})]})})},ja=({children:e,...p})=>l.jsxs(be.ValueContainer,{...p,children:[p.selectProps.value==null?l.jsx(da,{children:l.jsx(ca,{})}):null,e]}),va=t(_l)`
|
|
127
127
|
color: ${e=>e.hasSelectedUser?e.theme.colors.hero:e.theme.colors.primary};
|
|
128
128
|
display: flex;
|
|
129
129
|
padding: ${a.sp2} 12px;
|
|
@@ -138,33 +138,33 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
138
138
|
display: flex;
|
|
139
139
|
flex-direction: row;
|
|
140
140
|
cursor: pointer;
|
|
141
|
-
`,pe={width:new
|
|
141
|
+
`,pe={width:new C(343,580,726),labelWidth:new C(115,145,155),largeLabelWidth:new C(160,240,240),veryLargeLabelWidth:new C(150,240,245),containerRowGap:new C(12,ae[3])},Oa={title:new Ge("standardMedium","largeMedium")};function Xa({companyOfficerData:e,isDisabled:p,allOfficers:u,allNationalityCountries:m,isRefreshingViewInBackground:N,connectedAccountProvider:g,style:n,isPopupOpen:U,sectionId:h,filesEndPoint:oe,authParams:te,showInfoTooltip:ie=!0,isCompleted:H=!1,showCompletedIcon:G=!1,showOfficerSelect:s=!0,showVerificationTag:Y=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:f,companyTitles:D,sectionHeader:F,optionalFields:b=[],onOfficerAddressClick:z,onDeleteFile:y,onEditFileName:Z,updateFilesEntity:Q,openPopup:c,onGetOtp:j,onVerifyOtp:R,onResendOtp:se,verifiedPhoneNumber:W,onPhoneVerified:X}){const L=ze(),me=Re(),{getValues:J,setValue:K}=yl(),B=u.length>0,[ne,xe]=M.useState(!1),q=B?Object.values(e).findIndex(i=>i?.isSelectedForVerification===!0):0,P=`Officer_${q<0?1:q+1}`;M.useEffect(()=>{X!=null&&e[P]?.phone!=null&&e[P].isPhoneVerified===!0&&X(e[P]?.phone??"")},[]);const x=`${h}.${q}`,S=e[P],T=V?S?.treasuryUserVerificationStatus:S?.userVerificationStatus,_=u.find(i=>i.userId===S?.userId),we=u.sort((i,O)=>(i.firstName||i.lastName?`${i.firstName} ${i.lastName}`:i.email).localeCompare(O.firstName||O.lastName?`${O.firstName} ${O.lastName}`:O.email)),d=B?we.findIndex(i=>i.userId===S?.userId):0,je=e[P]?.deleteFileStatusById??{},el=e[P]?.updateFileStatusById??{},Ee=J(`${x}.selectDocument.selectDocumentType`),{common:{optional:ll},commonSetUp:{businessVerification:r},dateFormat:{visual:al},cockpit:ol}=ue.getLocalizedStrings(),k=f==="onboarding"?r.productType.business_verification:r.productType[f],de=pe.labelWidth.value(L),tl=pe.veryLargeLabelWidth.value(L),fe=pe.largeLabelWidth.value(L),il=L==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,rl=L==="small"?r.protectedSsnTextSmall:r.protectedSsnText,I=T?.code==="pending_review"||T?.code==="verified"?"readonly":p,sl=I!=null||!B||T?.code==="require_info",nl=_?.firstName||_?.lastName?`${_?.firstName} ${_?.lastName}`:r.addOfficer,dl=S?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,cl={menu:()=>({right:"initial",left:0})},pl=i=>D.find(O=>O.code===i)?.name??i,ve=S?.otpverificationStatus?.fetchState,Ve=gl(ve);M.useEffect(()=>{X!=null&&Ve==="In-Progress"&&ve==="Completed"&&X(J(`${x}.phone`))},[Ve,ve]);const ul=(i,O)=>{R(i,O)},ml=()=>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(Ca,{children:H?l.jsx(Na,{}):l.jsx(Pa,{})}):null,l.jsx(Fa,{windowSize:L,children:F??dl})]}),ie?l.jsx(Ea,{children:l.jsx(Be,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:L==="small"||f==="onboarding"?"bottom":"right",children:l.jsx(Va,{})})}):null,f==="onboarding"&&F!=null?l.jsx(Je,{text:ll}):null,T!=null&&Y?l.jsx(Ba,{tagTitle:T?.name,textColor:We(T.code),showLoader:N}):null]}),s?sl?B?l.jsxs(Ra,{children:[_?.photo!==void 0?l.jsx(Ta,{src:_?.photo.href,alt:ol.userProfileAltText,onError:({currentTarget:i})=>{i.onerror=null,i.src=_e},loading:"lazy"}):l.jsx(Ce,{firstName:_?.firstName??"",lastName:_?.lastName??"",size:`${a.sp4}`,index:d}),l.jsx(Ae,{children:`${nl}`})]}):l.jsxs(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);K(`${x}.isSelectedForVerification`,!1),K(`${h}.${O}.isSelectedForVerification`,!0)},customization:{placeholderLabel:r.addOfficer},showAddUser:u.length<=9,pickerStyles:{backgroundColor:me.colors.grey5,selectedOptionBackgroundColor:me.colors.background,customStyleConfig:L==="small"?cl:void 0}})}):null]}),Object.values(e).map((i,O)=>{if(q!==O)return null;const he=bl(i?.documentTypeSelectedForVerification),$e=i?.userFiles??[],hl=()=>W!=""&&f==="onboarding"?ml():i?.isPhoneVerified??!1;return l.jsxs(za,{children:[l.jsx(Xe,{}),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(vl,{name:E(x,"selectDocument"),officerIndex:q,sizeLimit:ge,filesEndPoint:oe,authParams:te,onEditFileName:Z,acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],label:{width:tl},allFiles:$e,updateFilesEntity:Q,deleteFileStatusById:je,updateFileStatusById:el,onDeleteFile:y,isDisabled:I,menuPlacement:f==="onboarding"&&he==null?"top":"auto",defaultValue:{defaultSelectDocumentType:he,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:ke(!0,$e,Ee),back:ke(!1,$e,Ee)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:ne,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",k),onFileSizeError:w=>xe(w),isPopupOpen:U,openPopup:c,companyOfficerName:{firstName:i?.firstName??"",lastName:i?.lastName??""}})]},x)})]})}const E=(e,p)=>`${e}.${p}`,La=t.div`
|
|
142
142
|
display: flex;
|
|
143
143
|
flex-direction: column;
|
|
144
144
|
row-gap: ${e=>pe.containerRowGap.valuePx(e.windowSize)};
|
|
145
|
-
`,
|
|
145
|
+
`,Da=t.div`
|
|
146
146
|
width: ${e=>pe.width.valuePx(e.windowSize)};
|
|
147
147
|
display: flex;
|
|
148
148
|
justify-content: space-between;
|
|
149
149
|
flex-wrap: wrap;
|
|
150
150
|
row-gap: ${a.sp2};
|
|
151
151
|
padding-top: ${e=>e.isOverlay?a.sp3:a.sp0};
|
|
152
|
-
`,
|
|
152
|
+
`,Fa=t.div`
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
155
|
color: ${e=>e.theme.colors.primary};
|
|
156
156
|
${e=>`${Oa.title.style(e.windowSize)}`};
|
|
157
157
|
padding-right: ${a.sp1};
|
|
158
|
-
`,
|
|
158
|
+
`,_a=t.div`
|
|
159
159
|
display: flex;
|
|
160
160
|
align-items: center;
|
|
161
|
-
`,
|
|
161
|
+
`,Ca=t.div`
|
|
162
162
|
margin-right: ${a.sp2};
|
|
163
|
-
`,
|
|
163
|
+
`,Na=t(He)`
|
|
164
164
|
width: ${a.sp3};
|
|
165
165
|
height: ${a.sp3};
|
|
166
|
-
color: ${
|
|
167
|
-
`,
|
|
166
|
+
color: ${Ne.success};
|
|
167
|
+
`,Pa=t.div`
|
|
168
168
|
height: 14px;
|
|
169
169
|
width: 14px;
|
|
170
170
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
@@ -175,7 +175,7 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
175
175
|
&:hover {
|
|
176
176
|
color: ${e=>e.theme.colors.primary};
|
|
177
177
|
}
|
|
178
|
-
`,Va=t(
|
|
178
|
+
`,Va=t(Ye)`
|
|
179
179
|
width: ${a.sp3};
|
|
180
180
|
height: ${a.sp3};
|
|
181
181
|
`,Ta=t.img`
|
|
@@ -202,7 +202,7 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
202
202
|
background-color: ${e=>e.theme.colors.grey3};
|
|
203
203
|
min-height: 1px;
|
|
204
204
|
max-height: 1px;
|
|
205
|
-
`,
|
|
205
|
+
`,Ra=t(Pe)`
|
|
206
206
|
display: flex;
|
|
207
207
|
flex-direction: row;
|
|
208
208
|
justify-content: flex-end;
|
|
@@ -213,10 +213,10 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
213
213
|
white-space: nowrap;
|
|
214
214
|
overflow: hidden;
|
|
215
215
|
text-overflow: ellipsis;
|
|
216
|
-
`,
|
|
216
|
+
`,Ba=t(Ze)`
|
|
217
217
|
width: max-content;
|
|
218
218
|
margin-left: ${a.sp3};
|
|
219
|
-
`,Wa=t(
|
|
219
|
+
`,Wa=t(Pe)`
|
|
220
220
|
display: flex;
|
|
221
221
|
flex-direction: row;
|
|
222
222
|
justify-content: flex-end;
|
|
@@ -225,8 +225,8 @@ import{X as ze,u as Be,cj as yl,M as ue,C as P,a1 as gl,j as l,bw as Re,e$ as We
|
|
|
225
225
|
`,qa=t.div`
|
|
226
226
|
display: flex;
|
|
227
227
|
align-items: center;
|
|
228
|
-
`,Ma=t(
|
|
228
|
+
`,Ma=t(Qe)`
|
|
229
229
|
width: ${a.sp4};
|
|
230
230
|
height: ${a.sp4};
|
|
231
231
|
color: ${e=>e.theme.colors.hero};
|
|
232
|
-
`;export{Ml as G,
|
|
232
|
+
`;export{Ml as G,Xa as o};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,
|
|
1
|
+
import{j as r,U as x,W as M,Y as f,M as p,o as s,a4 as w,v as g,a5 as j}from"./index-rGMXK0Rc.js";import{b as t,n as o}from"./vendor-CnQcJ2Lu.js";import{c as H}from"./SummaryCard-bczJjOLG-CjdZn_iI.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-CaPpBGJK-BQahT5RP.js";const v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:B},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:v}],D=o(w)`
|
|
2
2
|
margin: ${s.sp5};
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
`,W=o.div`
|
|
@@ -35,8 +35,8 @@ import{j as r,S as x,W as M,Y as f,M as p,o as s,a4 as w,v as g,a5 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)``,O=o.div`
|
|
39
39
|
width: 100%;
|
|
40
40
|
height: 1px;
|
|
41
41
|
background-color: ${e=>e.theme.colors.grey3};
|
|
42
|
-
`;function
|
|
42
|
+
`;function G({card:e,actions:l,data:c,dndProps:n}){return r.jsx(x,{isDragging:n?.draggedCardType!=null,isDragOver:n?.dragOverCard===e.cardType,draggable:!0,onDragStart:i=>n?.onDragStart(e.cardType,i),onDragOver:i=>n?.onDragOver(i,e.cardType),onDragLeave:i=>n?.onDragLeave(i),onDrop:i=>n?.onDrop(i,e.cardType),dimension:e.dimension,children:r.jsx(H,{card:e,actions:l,children:r.jsx(M,{dimension:e.dimension,style:{cursor:"pointer"},onClick:()=>l.onCardClick(e.cardIndex,e.cardType),"data-testid":f("dashboard",e.cardType),children:r.jsxs(D,{children:[r.jsx(W,{children:r.jsx(I,{children:p.getLocalizedStrings().companyPassportCard.title})}),y.map((i,d)=>{const{title:m,key:a,Icon:h}=i;return r.jsxs(V,{children:[r.jsxs(b,{children:[r.jsx($,{children:r.jsx(h,{height:s.sp5,width:s.sp5})}),r.jsxs(N,{children:[r.jsx(A,{children:m}),r.jsx(S,{data:c?.companyView,itemKey:a})]})]}),d!==y.length-1?r.jsx(O,{}):null]},i.key)})]})})})},e.cardIndex)}const S=({itemKey:e,data:l})=>{const c=l?.companyOfficers,n=l?.company,i=n?.company.companyInfo,d=n?.company.incInfo,m=()=>r.jsx(T,{children:"—"});switch(e){case"company_legal_name":return i?.companyLegalName==null||i.companyLegalName===""?r.jsx(m,{}):r.jsx(k,{children:i?.companyLegalName});case"company_officer":{if(c==null||c?.length===0)return r.jsx(m,{});const a=c.slice(0,10).sort((u,E)=>u.user.createTime?.isAfter(E.user.createTime)===!0?1:-1),h=[a[0].user.firstName,a[0].user.lastName].join("").trim();return r.jsxs(k,{children:[a[0].user.firstName!=null&&a[0].user.firstName!==""?r.jsxs(C,{children:[a[0].user.firstName," "]}):null,r.jsx(C,{children:a[0].user.lastName}),a[0].user.email!=null?r.jsx(C,{children:`${h.length>0?", ":""}${a[0].user.email}`}):null]})}case"company_inc":return d?.companyIncType==null||d.companyIncType===""?r.jsx(m,{}):r.jsx(k,{children:d?.companyIncType});default:return null}};export{G as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as P,u as Ae,a1 as ca,a as da,
|
|
1
|
+
import{X as P,u as Ae,a1 as ca,a as da,c3 as pa,M as k,j as a,aV as ma,F as ua,c4 as ha,l as V,a3 as fa,C as m,c5 as xa,a2 as Ce,o as t,s as ae,c6 as z,c7 as ze,c8 as L,c9 as ya,ca as Ue,cb as ga,cc as ba,cd as qe,w as $a,ce as wa,cf as He,cg as Ze,ch as Ia,ci as ja,cj as va,g as N,ck as Da,cl as Sa,aM as Oa,a5 as Ca,an as q,cm as Fe,m as p,v as Ge,K as Me,cn as Fa,H as ka,co as Ta,cp as Na,b1 as Pa,cq as La,bH as za,cr as Ma,e as Ea,b2 as R,cs as Va,p as de,a$ as Ba}from"./index-rGMXK0Rc.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-CnQcJ2Lu.js";import{D as Xe}from"./LabeledCreatableSingleSelectField-BtboN2bE-DF3GueZh.js";import{Y as Ke}from"./LabeledDocumentField-BKVHT_ih-cMXijjYr.js";import{$ as Je}from"./LabeledAddressValue-DaabTZGG-CWQotmwk.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
|
}
|
|
@@ -39,7 +39,7 @@ import{X as P,u as Ae,a1 as ca,a as da,c6 as pa,M as k,j as a,aV as ma,F as ua,c
|
|
|
39
39
|
margin: ${t.sp0} ${t.sp3};
|
|
40
40
|
`,Ga=s(Oa)`
|
|
41
41
|
color: ${e=>e.isSuccess?N.success:N.important};
|
|
42
|
-
`,
|
|
42
|
+
`,Xa=s.div`
|
|
43
43
|
width: ${t.sp3};
|
|
44
44
|
height: ${t.sp3};
|
|
45
45
|
cursor: pointer;
|
|
@@ -47,7 +47,7 @@ import{X as P,u as Ae,a1 as ca,a as da,c6 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
|
+
`,Ka=e=>{const o=k.getLocalizedStrings().companyPassport.snackBar;return e==="Error"?o.failedText:o.successText};function Ja(e){const o=P(),{fetchState:l,onRemoveSnackbar:i}=e;_.useEffect(()=>{setTimeout(i,5e3)});const n=k.getLocalizedStrings().companyPassport.snackBar,c=l==="Completed";return a.jsxs(Ya,{windowSize:o,children:[c?a.jsx(Aa,{}):a.jsx(Ua,{}),a.jsxs(Za,{windowSize:o,children:[a.jsx(Ga,{isSuccess:c,children:c?n.success:n.error}),a.jsx(qa,{children:a.jsx(Ha,{children:Ka(l)})})]}),a.jsx(Xa,{onClick:i,children:a.jsx(Ce,{})})]})}const ne={labelWidth:new m(110,145,180),largeLabelWidth:new m(150,215,215),largeLabelDocumentWidth:new m(150,210,252),paddingBottom:new m(p[3],p[2])};function Qa(e){const o=P(),[l,i]=_.useState(!1),{companyPassport:n,commonSetUp:{businessVerification:c},common:{documents:f}}=k.getLocalizedStrings(),{fileProps:d,companyFiles:r,deleteFileStatusById:u,updateFileStatusById:y,sectionId:b,isDisabled:h,companyIncInfo:$,style:I}=e,S=ne.labelWidth.value(o),j=ne.largeLabelWidth.value(o),g=ne.largeLabelDocumentWidth.value(o),{dateFormat:{visual:O},companyPassport:D}=k.getLocalizedStrings(),x=r.find(K=>K.documentType==="certificate_of_incorporation"),B=o==="small"?n.companyIncInfo.stateOfIncPlaceholderSmall:n.companyIncInfo.stateOfIncPlaceholder,me=o==="small"?n.companyIncInfo.typeOfIncPlaceholderSmall:n.companyIncInfo.typeOfIncPlaceholder;return a.jsxs(et,{style:I,children:[a.jsx(tt,{children:n.companyIncInfo.title}),a.jsxs(at,{children:[a.jsx(Xe,{label:{label:D.companyIncInfo.typeOfInc,width:j},isDisabled:h,creatableSingleSelectField:{name:re(b,"typeOfInc"),placeholder:me,defaultValue:{selectedOption:$?.typeOfInc,allOptions:n.companyIncInfo.allTypesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ga,{label:{label:D.companyIncInfo.stateOfInc,width:j},isDisabled:h,singleSelectField:{name:re(b,"stateOfInc"),placeholder:B,defaultValue:{selectedOption:$?.stateOfInc,allOptions:n.companyIncInfo.allStatesOfIncorporation}}}),a.jsx(he,{}),a.jsx(ba,{isDisabled:h,label:{label:n.companyIncInfo.incDate,width:S},style:{paddingBottom:ne.paddingBottom.valuePx(o)},dateField:{name:re(b,"incDate"),placeholder:L(n.companyIncInfo.incDate),defaultValue:$?.incDate,dateFormat:O.defaultInput,maxDate:V.dateNow(),minDate:V.zeniDate("01 Jan 1900"),autoComplete:"off"}}),a.jsx(he,{}),a.jsx(Ke,{name:re(b,"certificateOfIncorporation"),isDisabled:h,sizeLimit:qe,deleteFileStatusById:u,updateFileStatusById:y,filesEndPoint:d.filesEndPoint,authParams:d.authParams,label:{label:c.certificateOfIncorporation,width:g},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:x,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:l,updateFilesEntity:d.updateFilesEntity,onEditFileName:d.onEditFileName,onDeleteFile:d.onDeleteFile,onFileSizeError:K=>i(K)}),a.jsx(ot,{windowSize:o,isError:l,children:f.formatDocumentText10MB})]})]})}const re=(e,o)=>`${e}.${o}`,et=s.div`
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-direction: column;
|
|
53
53
|
padding-top: ${t.sp3};
|
|
@@ -91,17 +91,17 @@ import{X as P,u as Ae,a1 as ca,a as da,c6 as pa,M as k,j as a,aV as ma,F as ua,c
|
|
|
91
91
|
width: fit-content;
|
|
92
92
|
margin-left: auto;
|
|
93
93
|
margin-bottom: ${t.sp2};
|
|
94
|
-
`,nt=e=>{const{labels:o,style:l,listStyleType:i="disc"}=e;return a.jsx(lt,{style:{...l,listStyleType:i},children:o.filter(n=>n!=null&&n.text!="").map((n,c)=>a.jsxs(it,{isCancelled:n.status==="cancelled",children:[n.text,n.subText!=null?a.jsxs(st,{children:["Started: ",n.subText]}):null]},`${n.text}_${c}`))})},
|
|
94
|
+
`,nt=e=>{const{labels:o,style:l,listStyleType:i="disc"}=e;return a.jsx(lt,{style:{...l,listStyleType:i},children:o.filter(n=>n!=null&&n.text!="").map((n,c)=>a.jsxs(it,{isCancelled:n.status==="cancelled",children:[n.text,n.subText!=null?a.jsxs(st,{children:["Started: ",n.subText]}):null]},`${n.text}_${c}`))})},X={width:new m(343,580,726),paddingTopBottom:new m(p[3],p[3]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4])};function pe({isDisabled:e,label:o,bullettedLabels:l,style:i}){const n=P();return l.labels.length>0?a.jsxs(rt,{size:n,style:i,children:[a.jsx(Fe,{isDisabled:e,label:o.label,style:{marginLeft:X.labelMarginLeft.value(n),marginRight:X.labelMarginRight.value(n),width:o.width??"auto"}}),a.jsx(nt,{...l,style:{maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto"}})]}):null}const rt=s.div`
|
|
95
95
|
display: flex;
|
|
96
96
|
flex-direction: row;
|
|
97
97
|
align-items: flex-start;
|
|
98
98
|
justify-content: space-between;
|
|
99
99
|
background-color: ${e=>e.theme.colors.grey5};
|
|
100
|
-
width: ${e=>
|
|
100
|
+
width: ${e=>X.width.valuePx(e.size)};
|
|
101
101
|
height: auto;
|
|
102
|
-
padding-right: ${e=>
|
|
103
|
-
padding-top: ${e=>
|
|
104
|
-
padding-bottom: ${e=>
|
|
102
|
+
padding-right: ${e=>X.marginRight.valuePx(e.size)};
|
|
103
|
+
padding-top: ${e=>X.paddingTopBottom.valuePx(e.size)};
|
|
104
|
+
padding-bottom: ${e=>X.paddingTopBottom.valuePx(e.size)};
|
|
105
105
|
|
|
106
106
|
:first-of-type {
|
|
107
107
|
border-top-left-radius: inherit;
|
|
@@ -112,7 +112,7 @@ import{X as P,u as Ae,a1 as ca,a as da,c6 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(
|
|
115
|
+
`,fe={labelWidth:new m(110,110,140),mediumLabelWidth:new m(140,140,160),largeLabelWidth:new m(170,170,180)},{companyPassport:v,dateFormat:{analytics:Ee}}=k.getLocalizedStrings();function ct({companyViewData:e,allIndustries:o,companyInfo:l,companyAddress:i,sectionId:n,isDisabled:c,onCompanyAddressClick:f,style:d}){const r=P(),u=e.company.company.companyInfo,y=fe.labelWidth.value(r),b=fe.mediumLabelWidth.value(r),h=fe.largeLabelWidth.value(r),$=r==="small"?v.companyInfo.businessModelPlaceholderSmall:v.companyInfo.businessModelPlaceholder,I=S=>o.find(j=>j.code===S)?.name??S;return a.jsxs(pt,{style:d,children:[a.jsx(ut,{children:v.companyInfo.title}),a.jsxs(mt,{children:[a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.companyName,width:h},text:{type:"text",name:Z(n,"companyName"),placeholder:L(v.companyInfo.companyName),defaultValue:l?.companyName,autoComplete:"new-password",options:{required:!!u.name,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.legalName,width:b},text:{type:"text",name:Z(n,"legalName"),placeholder:L(v.companyInfo.legalName),defaultValue:l?.legalName,autoComplete:"new-password",options:{required:!!u.companyLegalName,pattern:ze}}}),a.jsx(U,{}),a.jsx(z,{isDisabled:c,label:{label:v.companyInfo.website,width:y},text:{type:"url",name:Z(n,"website"),placeholder:L(v.companyInfo.website),defaultValue:l?.website?.toString()??"",autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(ya,{label:{label:v.companyInfo.industry,width:y},singleSelectField:{singleSelect:{name:Z(n,"industry"),placeholder:v.companyInfo.industryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:I,isDisabled:c,showTickMark:!1},defaultValue:{selectedOption:l?.industry,allOptions:o?.map(S=>S.code)??[]}},isFunctional:!0}),a.jsx(U,{}),a.jsx(Xe,{isDisabled:c,label:{label:v.companyInfo.businessModel,width:h},creatableSingleSelectField:{name:Z(n,"businessModel"),placeholder:$,defaultValue:{selectedOption:l?.businessModel,allOptions:v.companyInfo.allBusinessModels}}}),a.jsx(U,{}),a.jsx(Je,{isDisabled:c,label:{label:v.companyInfo.address,width:y},addressValue:{placeholder:L(v.companyInfo.address),address:i?.addressToCreate,onClick:()=>f("company_address")}}),a.jsx(U,{}),a.jsx(Ue,{isDisabled:c,label:{label:v.companyInfo.phone,width:y},text:{name:Z(n,"phone"),placeholder:L(v.companyInfo.phone),defaultValue:l?.phone,autoComplete:"new-password"}}),a.jsx(U,{}),a.jsx(pe,{label:{label:v.companyInfo.fiscalYear,width:y},bullettedLabels:{labels:[{text:dt(l?.firstMonthOfFY??1)}],listStyleType:"none"}})]})]})}const dt=e=>{const{fiscalYearMonths:o}=V.getFYMonths(e);return`${V.dateNow().month(o[0]-1).format(Ee.MMMFormat)} to ${V.dateNow().month(o[11]-1).format(Ee.MMMFormat)}`},Z=(e,o)=>`${e}.${o}`,pt=s.div`
|
|
116
116
|
display: flex;
|
|
117
117
|
flex-direction: column;
|
|
118
118
|
padding-top: ${t.sp3};
|
|
@@ -390,7 +390,7 @@ import{X as P,u as Ae,a1 as ca,a as da,c6 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=>
|
|
393
|
+
`,Zt=()=>null,Gt=()=>null,Ve=e=>e.map(o=>Xt(o)),Xt=e=>({value:e,label:e}),M={width:new m(343,580,726),height:new m(p[6],p[6]),controlHeight:new m(p[6],p[6]),paddingTopBottom:new m(p[2],p[2]),marginRight:new m(p[2],p[2]),labelMarginLeft:new m(p[3],p[4]),labelMarginRight:new m(p[3],p[4]),labelMarginTop:new m(p[2],p[2])};function Kt({isDisabled:e,label:o,multiSelectField:l,style:i}){const n=P();return a.jsxs(Jt,{size:n,style:i,isDisabled:e!=null,children:[a.jsx(Fe,{isDisabled:e,label:o.label,htmlFor:l.name,style:{marginLeft:M.labelMarginLeft.value(n),marginRight:M.labelMarginRight.value(n),marginTop:M.labelMarginTop.value(n),width:o.width??"auto"}}),a.jsx(kt,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",minHeight:M.controlHeight.value(n)}})]})}const Jt=s.div`
|
|
394
394
|
display: flex;
|
|
395
395
|
flex-direction: row;
|
|
396
396
|
align-items: flex-start;
|
|
@@ -436,7 +436,7 @@ import{X as P,u as Ae,a1 as ca,a as da,c6 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(Kt,{isDisabled:$,label:{label:c.companyTaxInfo.taxesFiledYears,width:j},multiSelectField:{name:G(h,"taxesFiledYears"),placeholder:c.companyTaxInfo.taxesFiledYearsPlaceholder,defaultValue:{selectedOptions:I?.taxesFiledYears.map(x=>x.toString())??[],allOptions:V.getYearsList().map(x=>x.toString())}}}),a.jsx(ee,{}),a.jsx(Ke,{name:G(h,"einDocument"),isDisabled:$,sizeLimit:qe,deleteFileStatusById:y,updateFileStatusById:b,filesEndPoint:r.filesEndPoint,authParams:r.authParams,label:{label:f.einDocument,width:g},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:D,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:i,updateFilesEntity:r.updateFilesEntity,onEditFileName:r.onEditFileName,onDeleteFile:r.onDeleteFile,onFileSizeError:x=>n(x)}),a.jsx(oo,{windowSize:o,isError:i,children:d.formatDocumentText10MB})]})]})}const G=(e,o)=>`${e}.${o}`,eo=s.div`
|
|
440
440
|
display: flex;
|
|
441
441
|
flex-direction: column;
|
|
442
442
|
padding-top: ${t.sp3};
|
|
@@ -550,7 +550,7 @@ import{X as P,u as Ae,a1 as ca,a as da,c6 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:K}=e,{companyView:J,localData:H,deleteFileStatusById:ke,updateFileStatusById:Te}=i,{companyFiles:te}=H,Ne={authParams:f,filesEndPoint:c,onEditFileName:x,onDeleteFile:me,updateFilesEntity:B},[Q,oe]=_.useState(void 0),{companyDetails:aa,primaryContact:ta,companyOfficerUpdateStatus:oa,updateStatus:Y}=H,{localData:le,addressStatus:la}=aa,Pe=ca(Y.fetchState),ie=Object.values(oa).filter(T=>T.localData!=null),W=da({mode:"all",defaultValues:Ye(H,d)});_.useEffect(()=>()=>{oe(void 0)},[]),_.useEffect(()=>{Pe==="In-Progress"&&(Y.fetchState==="Completed"||Y.fetchState==="Error")&&(W.reset(Ye(H,d)),Q!==Y.fetchState&&oe(Y.fetchState))},[Q,W,Pe,Y,H,J,d,te]);const ia=async(T,w)=>{if(T.includes(Ie)||T.includes(je)||T.includes(ve)||T.includes(Oe)){const{companyInfo:C,companyIncInfo:F,companyTaxInfo:A,zeniFinanceTeam:ue}=w;y({companyInfo:C,incInfo:F,taxDetails:A,zeniFinanceTeam:ue})}else if(T.includes(De)){$(w.primaryContact);const C=w.companyOfficer.map(F=>F.userId);if(w.primaryContact.userId!=null&&C.includes(w.primaryContact.userId)){const F=C.findIndex(A=>A===w.primaryContact.userId);F>=0&&b({...w.companyOfficer[F],name:w.primaryContact.name,officerType:`Officer_${F+1}`})}}else if(T.includes(Se)){const C=parseInt(T.split(".")[1]);if(C>=0)b({...w.companyOfficer[C],officerType:`Officer_${C+1}`}),w.companyOfficer[C].userId!=null&&w.companyOfficer[C].userId===w.primaryContact.userId&&$({...w.primaryContact,name:w.companyOfficer[C].name});else if(w.companyOfficer.length>ie.length){const F=w.companyOfficer[w.companyOfficer.length-1];h(F)}else{const F=w.companyOfficer.filter(A=>A.officerType!=null);if(F.length<ie.length){const A=F.map((ue,ra)=>{const Le={...ue,officerType:`Officer_${ra+1}`};return b(Le),Le});F.length<ie.length&&(I(`Officer_${F.length+1}`),W.reset({companyOfficer:A}))}}}};_.useEffect(()=>{const T=W.watch((w,{name:C})=>{C!=null&&w!=null&&pa(()=>ia(C,w))});return()=>{T.unsubscribe()}});const sa=W.handleSubmit(T=>{Q!=null&&oe(void 0),S()}),{companyPassport:se,common:{settings:na}}=k.getLocalizedStrings();if(J==null)throw new Error("Company View is null");return a.jsxs(Do,{children:[a.jsx(ma,{title:se.title,backgroundColor:l.colors.grey4,style:{zIndex:3},onBackClick:O,showBackButton:!u,showMenuIcon:u?o==="medium-compact"||o==="small":!1,source:"CompanyPassportPage",onClickMenuIcon:K}),Q!=null?a.jsx(Ja,{fetchState:Q,onRemoveSnackbar:()=>oe(void 0)}):null,a.jsxs(So,{children:[a.jsx(Oo,{windowSize:o,children:u?na.infoText.companyDetails:se.quickAccessInfo}),a.jsx(ua,{...W,children:a.jsxs("form",{id:Re(_e),onSubmit:sa,children:[a.jsx(ct,{sectionId:Ie,companyInfo:le?.companyInfo,companyViewData:J,companyAddress:la,isDisabled:r,onCompanyAddressClick:j,allIndustries:d}),a.jsx(Qa,{sectionId:je,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyIncInfo:le?.incInfo,fileProps:Ne,isDisabled:r}),a.jsx(Qt,{sectionId:ve,updateFileStatusById:Te,deleteFileStatusById:ke,companyFiles:te,companyTaxInfo:le?.taxDetails,fileProps:Ne,isDisabled:r}),a.jsx(io,{sectionId:De,primaryContact:ta.localData,isDisabled:r}),a.jsx(ft,{companyOfficers:ie,sectionId:Se,isDisabled:r,onOfficerAddressClick:j}),a.jsx($o,{data:J,companyInfo:le?.companyInfo,isDisabled:r,isZeniUser:n,sectionId:Oe,onScheduleClick:g})]})})]}),ha(W.formState.dirtyFields)||V.isCompanyPassportDataToBeSaved(H,J,te)?a.jsx(fa,{formId:Re(_e),primaryBtn:{label:se.save,isLoading:Y.fetchState==="In-Progress",style:{width:we.buttonWidth.value(o)},isDisabled:e.isDisabled!=null},cancelBtn:{label:se.cancel,style:{width:we.buttonWidth.value(o)},onClick:()=>{W.reset(),D()}}}):null]})}const Re=e=>`${e}_form`,Ye=(e,o)=>{const{companyDetails:l,primaryContact:i,companyOfficerUpdateStatus:n}=e,c=k.getLocalizedStrings().companyPassport,f=l.localData?.incInfo.fileId!=null?[l.localData?.incInfo.fileId]:[],d=l.localData?.taxDetails.fileId!=null?[l.localData?.taxDetails.fileId]:[];return{[Ie]:{...xa(l.localData?.companyInfo,["meetingLink"]),businessModel:{selectedOption:l.localData?.companyInfo?.businessModel,allOptions:c.companyInfo.allBusinessModels},website:l.localData?.companyInfo.website?.toString()??"",industry:{selectedOption:l.localData?.companyInfo.industry,allOptions:o?.map(r=>r.code)},firstMonthOfFY:l.localData?.companyInfo.firstMonthOfFY},[ve]:{...l.localData?.taxDetails,taxesFiledYears:{selectedOptions:l.localData?.taxDetails.taxesFiledYears.map(r=>r.toString())??[],allOptions:V.getYearsList().map(r=>r.toString())},einDocument:e.companyFiles.find(r=>r.documentType==="tax_ein"),fileIds:d},[je]:{typeOfInc:{selectedOption:l.localData?.incInfo?.typeOfInc,allOptions:c.companyIncInfo.allTypesOfIncorporation},stateOfInc:{selectedOption:l.localData?.incInfo?.stateOfInc,allOptions:c.companyIncInfo.allStatesOfIncorporation},incDate:l.localData?.incInfo.incDate?.toDate(),certificateOfIncorporation:e.companyFiles.find(r=>r.documentType==="certificate_of_incorporation"),fileIds:f},[De]:{userId:i.localData?.userId,name:{firstName:i.localData?.firstName,lastName:i.localData?.lastName},email:i.localData?.email},[Se]:Object.values(n).filter(r=>r.localData!=null).map(r=>{const u=r.localData;return{userId:u.userId,officerType:u.officerType,name:{firstName:u.firstName,lastName:u.lastName},email:u.email,phone:u.phone}}),[Oe]:{meetingLink:l.localData?.companyInfo.meetingLink?.toString()??""}}},Do=s.div`
|
|
554
554
|
display: flex;
|
|
555
555
|
min-height: 100%;
|
|
556
556
|
flex-direction: column;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import{a as R,ge as M,M as $,j as e,F as T,T as f,c6 as q,cf as z,cc as G,l as K,o as a,ca as _,gf as H,a3 as W,c0 as Y,bo as Z,gg as J}from"./index-rGMXK0Rc.js";import{b as g,f as b,n}from"./vendor-CnQcJ2Lu.js";import{$ as Q}from"./LabeledAddressValue-DaabTZGG-CWQotmwk.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const t=$.getLocalizedStrings(),x="completeProfilePage",r="basicDetailsSection",y="addressSection",d=(o,m)=>`${o}.${m}`,he=({userEmail:o,googleAPIKey:m,otpChallenge:j,sendOtpStatus:v,verifyOtpStatus:h,saveStatus:w,onSave:u,onGetOtp:P,onVerifyOtp:S,onResendOtp:O})=>{const[s,c]=g.useState(!1),[V,C]=g.useState(!1),i=R({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:o,dateOfBirth:void 0,phone:"",address:void 0}}}),F=M({control:i.control,name:`${r}.address`}),{dateFormat:I}=$.getLocalizedStrings(),N=i.handleSubmit(l=>{u&&u(l)}),L=()=>{const l=i.getValues(`${r}.phone`);l!=null&&l.trim().length>0&&P(l)},k=(l,p)=>{S(l,p)},D=l=>{l!=null&&l.trim().length>0&&O(l)},B=()=>{c(!0)},E=()=>{c(!1)},A=()=>{const l=i.getValues(`${y}`);if(l!=null){const p=J(l);i.setValue(`${r}.address`,p)}c(!1)};return e.jsxs(U,{children:[e.jsxs(X,{children:[e.jsxs(ee,{children:[s&&e.jsx(oe,{onClick:E}),t.completeProfile.title]}),e.jsx(te,{children:e.jsx(T,{...i,children:e.jsxs("form",{id:`${x}_form`,onSubmit:N,children:[e.jsx(f,{controller:s===!1,children:e.jsxs(b.Fragment,{children:[e.jsx(q,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:t.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:d(r,"email")}}),e.jsx(z,{isDisabled:void 0,label:{label:t.common.labels.name,width:168},style:{width:"100%"},nameField:{name:d(r,"name"),placeHolder:{firstName:t.common.placeholder.firstNamePlaceholder,lastName:t.common.placeholder.lastNamePlaceholder,name:t.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),e.jsx(G,{isOptional:!0,label:{label:t.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:d(r,"dateOfBirth"),placeholder:t.common.placeholder.dobPlaceholder,dateFormat:I.visual.defaultInput,autoComplete:"off",maxDate:K.dateNow().subtract(18,"year")}}),e.jsx(Q,{isOptional:!0,label:{label:t.common.labels.address,width:168},addressValue:{placeholder:t.common.placeholder.addressPlaceholder,address:F,onClick:B},style:{width:"100%",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`}}),e.jsx(_,{isOptional:!0,label:{label:t.common.labels.phone,width:168},style:{width:"100%"},text:{name:d(r,"phone"),placeholder:t.common.placeholder.phonePlaceholder,defaultValue:"",autoComplete:"new-password"},errorInfoLabel:"",verificationErrorInfoLabel:t.common.errorMessage.invalidPhoneNumber,isPopupOpen:V,phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:L,onVerifyOtp:k,onResendOtp:D,isPhoneVerified:h.fetchState==="Completed",phoneVerificationStatus:h,getOtpStatus:v,openPopup:()=>{C(!0)},focusNotRequired:!0}})]})}),e.jsx(f,{controller:s===!0,children:e.jsx(b.Fragment,{children:e.jsx(H,{sectionId:y,googleAPIKey:m,isSubPage:!0})})})]})})})]}),e.jsx(W,{formId:s?void 0:`${x}_form`,primaryBtn:{label:s?t.companyPassport.address.saveAddress:t.common.footer.save,type:s?"button":"submit",onClick:s?A:void 0,isLoading:w.fetchState==="In-Progress"},showCancel:!1})]})},U=n.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
min-height: 100vh;
|
|
5
|
+
`,X=n.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
padding: ${a.sp5};
|
|
10
|
+
row-gap: ${a.sp3};
|
|
11
|
+
flex: 1;
|
|
12
|
+
`,ee=n(Y)`
|
|
13
|
+
color: ${o=>o.theme.colors.primary};
|
|
14
|
+
text-align: left;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: flex-start;
|
|
18
|
+
gap: ${a.sp2};
|
|
19
|
+
`,oe=n(Z)`
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
width: ${a.sp4};
|
|
22
|
+
height: ${a.sp4};
|
|
23
|
+
color: ${o=>o.theme.colors.hero};
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
&:hover {
|
|
28
|
+
color: ${o=>o.theme.colors.primary};
|
|
29
|
+
}
|
|
30
|
+
`,te=n.div`
|
|
31
|
+
background-color: ${o=>o.theme.colors.grey5};
|
|
32
|
+
border-radius: ${a.sp2};
|
|
33
|
+
width: 100%;
|
|
34
|
+
box-shadow: ${o=>o.theme.colors.elevation1};
|
|
35
|
+
border-color: ${o=>o.theme.colors.grey3};
|
|
36
|
+
`;export{he as default};
|
package/dist/assets/{ConfettiBurst-D5XTvsuG-DqvhMlLN.js → ConfettiBurst-C6in2R-G-B86Veyix.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d1 as m,ab as l,j as a,aj as f,o as n}from"./index-rGMXK0Rc.js";import{b as i}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const c="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",C=({showConfetti:t})=>{const[e,p]=i.useState(t),[o,s]=m(c),[r]=l("ConfettiSuccess");return i.useEffect(()=>{t&&p(!0)},[t]),i.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),a.jsx(a.Fragment,{children:e&&o&&r!=null?a.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{s(!1),p(!1)},animationData:r,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{C as default};
|