@zeniai/web-cockpit-ui 1.13.98-dev → 1.13.99-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-C_NL9J0X-DQ3wv9Rt.js → ACHDetailsPage-BzRxPzII-BUoGUcFj.js} +1 -1
- package/dist/assets/{AIPerformancePage-DyiOQxOC-Deykua_G.js → AIPerformancePage-CnGGNibb-C_6wJkfU.js} +30 -20
- package/dist/assets/{AccountInfoPage-xglon85A-yRVQMsLQ.js → AccountInfoPage-BJM3RRKI-DG0a0jhE.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BtMF3gSM-CwB-GVxY.js → AccountInfoPageContent-BdDuyEg1-BIFPYnvP.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DJ9x8tbi-LYKktAAO.js → AccountReconDetailsDrawerPage-BSUQGqdv-CbaBqJp_.js} +1 -1
- package/dist/assets/{AccountRow-CP7Tu1pO-VLQJgkE6.js → AccountRow-C1XH7owI-rCAHD5JM.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-1elvD1M0-GOX35w9m.js → AccountsPromoCardStack-BCNXpo4I-Dv0FV5qf.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-C8-wy-3B-di9k1XXJ.js → AddAddressForCardDrawer-Cr8ayMMm-CAi5TCHA.js} +1 -1
- package/dist/assets/{AddToWalletPage-DsqplF5y-BOnzBTtb.js → AddToWalletPage-CdGCrkGQ-YM_InRmm.js} +1 -1
- package/dist/assets/{AgingReportsPage-DClcRhxg-CS8rEKD_.js → AgingReportsPage-CJ2yR3HB-DBWsDRN2.js} +1 -1
- package/dist/assets/{AllUserItems-BOwAIYTQ-ikKyJOZ6.js → AllUserItems-BgLsElXf-6OJKAnBf.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CcU6Hz-o-C9CP7TBd.js → ApAgingDetailPage-Bzr9B_m4-C577cR4G.js} +1 -1
- package/dist/assets/{AppBasePage-C7kCz0qg-gwqzuxWV.js → AppBasePage-C-TrULjy-Cjktl7Oe.js} +1 -1
- package/dist/assets/{AppDrawerContent-B63CbHT7-CTgXtY-R.js → AppDrawerContent-D_Rt7IHT-B58S7217.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-D6XZafBq-BQyA8PhX.js → ApprovalRulesSettingsPage-cFNlSXp7-CJiF6Uy3.js} +1 -1
- package/dist/assets/{ArAgingChart-D-Z3jfGt-DS-oqmcQ.js → ArAgingChart-CIuGvxjA-BfiNOx4a.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-AiwyJUwp-CLdUA32y.js → ArAgingDetailPage-CpoJ3qUN-DXImJQq3.js} +1 -1
- package/dist/assets/{AttachmentView-wIV1i6gf-__2UovKF.js → AttachmentView-CWTIRV_N-iJPjQ0Jv.js} +1 -1
- package/dist/assets/{BankAccountSection-cVBEl5IN-DpEdLEP3.js → BankAccountSection-Bv33dQx--DPPNn4wa.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Ce5s962S-Dy-_2VlU.js → BankAccountWarningSection-C2D8M8et-BZYwqReu.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Cgp8M98A-D84-x80q.js → BankConnectionsSettingsPage-BJsgVci_-BfqyUxFV.js} +1 -1
- package/dist/assets/{BillDetailPage-C9NC9kTK-BYRIHiN2.js → BillDetailPage-Cmmj2505-DUsjiqml.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-yKPMorLd-DWM3MQMK.js → BillPayApprovalRuleDetailPage-Drnme01N-agmBkGoJ.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DmMqDFmk-B8Cg6Nn6.js → BillPayApprovalRulesPage-B8-fPh0t-D1TMaYTi.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CWGX6uCi--607mHc3.js → BillPayPromoPage-Bwu1C994-BYao7Gje.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-B-DHUIqu-DsqPk0zS.js → BillPaySetUpPage-qgMzTWUT-DMU29sKp.js} +1 -1
- package/dist/assets/{BillingSettingsPage-Bx7lHgIy-CyArwb3F.js → BillingSettingsPage-CgLWVqUV-DrEgRmI-.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-Bf5MKQ-f-5iZSFdzE.js → BillsBulkReviewDrawerPage-BYglpdi7-Bt49SSoR.js} +1 -1
- package/dist/assets/{BoxItem-DX1sag1G-C0OcCbod.js → BoxItem-D1pnPLjq-DNBj4ORn.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DXh-11f9-BWywYgcT.js → BusinessVerificationPage-CCdSqWau-DQd7SBAf.js} +1 -1
- package/dist/assets/{CardNumberSubText-iYF6MLsf-BnbFJt1d.js → CardNumberSubText-XagW9IHF-BgPk9Kl2.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DVsCU69u-iWc1QiKl.js → CashbackDetailPage-ClT-mA0b-D0-pBKlK.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-D5bwvNOM-CT3hMXCY.js → ChargeCardDetailPage-TgGKTt9H-DAh7Mh0_.js} +1 -1
- package/dist/assets/{ChargeCardListPage-rY7_MoJ5-CzPbszY2.js → ChargeCardListPage-F4pOyHm1-BROj16dB.js} +1 -1
- package/dist/assets/{ChargeCardListTable-PTRaj9T6-GxUnY44G.js → ChargeCardListTable-fOBNuapk-Brvnc5__.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BUtD2JQ4-Bh59RQEl.js → ChargeCardPromoPage-CqYrY31Q-BIhulsIe.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-CIRcLLnB-Cefuwkkm.js → ChargeCardSetupPage-Dt2KUrNn-BWmPge4W.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-uRlTsfDI-DztC0UAp.js → ChargeCardStatementsPage-342g2YUw-Gr3iGTB4.js} +1 -1
- package/dist/assets/{ChargeCardUtils-BvVm2SMq-B6pl3c2F.js → ChargeCardUtils-CXwPL8kw-UEsImlqI.js} +1 -1
- package/dist/assets/{ChaseOverlay-CI8lEzod-DNTlxx9v.js → ChaseOverlay-DzWOML9n-DWzXfXiH.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-Czpxz6Mz-gcS4-F7d.js → CheckDepositDrawerPage-y6MUK_PP-VkaJefVM.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BBGdC6Ii-N5Ehkf8R.js → CollapsableReportTable-_pjChSxq-Bm2P88Mn.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BrsHy7MO-Cl-BM3f0.js → CompanyOfficerDetailsSection-Bk25OKbY-Cuco64bk.js} +1 -1
- package/dist/assets/{CompanyPassportCard-P0g_DRwA-XRQTRVQK.js → CompanyPassportCard-YGgKMFIt-CbBze1Qh.js} +1 -1
- package/dist/assets/{CompanyPassportPage-CH8El0Nl-CrZI1ceZ.js → CompanyPassportPage-W6OOSrt2-DXL3woWg.js} +1 -1
- package/dist/assets/{CompleteProfile-DTSAIKgF-WX_HRfP5.js → CompleteProfile-DmlS5V9g-MawzMorj.js} +1 -1
- package/dist/assets/{ConfettiBurst-CjONFCxD-BbasMJ1h.js → ConfettiBurst-BjAeXOeV-B-f1O9Z0.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CDVjGotR-BX0RU8Lc.js → CreateOrEditVendorPage-CUgHRqcO-txgulEGm.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CsyNRmxp-J9Q1Nire.js → CreditCardPaymentDrawerPage-BnKoC9rd-DvdxMeCg.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-BhHsjqZA-DtxErSDc.js → CreditCardPaymentPlgSection-xRmYJOBa-BDTGo5w9.js} +1 -1
- package/dist/assets/{CurrencySelectField-BRkdK9Tx-DZlSSgUd.js → CurrencySelectField-D7xkyJ_O-gmcTNXDD.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DnVXw5Ok-CF7wqV2h.js → CustomerOnboardingActivationPage-B8hvreuI-cdqHWnA_.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BoNrm4NC-Ccouasqa.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C95eWcqa-DW8DNI2i.js → CustomerOnboardingDetailPageSkeleton-D2JV6qSC-ftp5njnQ.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-OKbEl9Bp-Dy87ha3L.js → CustomerOnboardingNoStepsPage-DCjr_ZdZ-B3viuxPC.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-D9jqUudS-BpBvjqe9.js → CustomerOnboardingPage-DwmHUTO7-CIMwNFVb.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DK_FKVS2-Dz81TViz.js → CustomerOnboardingProductSuitePage-C5DkoaE--CrmZ2BRi.js} +1 -1
- package/dist/assets/{Dashboard-CsuzQbH0-B5Hgiilv.js → Dashboard-ec51ErlE-BnYR9nMW.js} +1 -1
- package/dist/assets/{DashboardReportPage-BCkrfj3P-CIFdRg6l.js → DashboardReportPage-DAnCJ2xg-BiUAov2Y.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-B55LUfPM-Bsnh-Dnt.js → DepositAccTransactionItem-CX4aEmZs-uFk9Z49D.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-CKBZEDvI-CFszcDp5.js → DepositAccTransactionListPage-BkXomWy6-CZGIGdu8.js} +1 -1
- package/dist/assets/{DocumentSecurityBanner-B5e6-zfE-B8VQ-eGv.js → DocumentSecurityBanner-AGP6qXyp-D4qwdN0Y.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage--MU9IKKz-CI-n4FxD.js → DomesticWireDetailsPage-BEZvgUd1-CbwDrjfH.js} +1 -1
- package/dist/assets/{DownloadOverlay-CVay7PEO-C-BIaHoh.js → DownloadOverlay-EomDRwiC-mCUB5vOt.js} +1 -1
- package/dist/assets/{DrawerPage-BtsjUVWT-DKZ4-9Rc.js → DrawerPage-B5OEKMI4-DSJ7SB0-.js} +1 -1
- package/dist/assets/{EditPeoplePage-q8Se6bGZ-Cx2X58jF.js → EditPeoplePage-BOoMf0fq-Bn2aaoVN.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DJxpU-hz-dhF_OPbV.js → EditReimbursementDetailPage-BgBLQj8J-B-9qAii6.js} +1 -1
- package/dist/assets/{EntityDetailPage-Bux6DlIw-CDR-iDms.js → EntityDetailPage-CUw-FC1B-BL9e1DtI.js} +1 -1
- package/dist/assets/{EntitySummarySection-D8dz1hFt-Bakc19a1.js → EntitySummarySection-DBenChLK-5T_sQRA6.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CdJQtc-4-WoBW313I.js → ExpenseAutomationOverviewPage-C0xAAlYr-DVT8kN9q.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-aNc126hN-DZa4KtXO.js → ExpenseAutomationPage-Cr-LoKP0-DHH09_Dc.js} +1 -1
- package/dist/assets/{ExpressPayPage-CWVGXvfN-Bzdld5fx.js → ExpressPayPage-DFbl-GwM-CoU-dmvV.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-C0nvVXP--BF6s18r5.js → FeaturePreviewPage-C1Nz_0MB-CaC-0lzI.js} +1 -1
- package/dist/assets/{FollowStepsSection-Cf0s1DGX-BFVvc78r.js → FollowStepsSection-BnQU57f_-Ci0loPQG.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-aY4rHJVr-DzNSgRAM.js → GlobalReviewListPage-W75aTHM2-DWB0s9Bl.js} +1 -1
- package/dist/assets/{HelpButton-Dv3nbc1Z-CHaoZd0g.js → HelpButton-DbXhEWQv-RGpqAgPI.js} +1 -1
- package/dist/assets/{InformationCardStack-BALkGk48-BWmXScs3.js → InformationCardStack-CdZNbBs3-Cyi4rdjD.js} +1 -1
- package/dist/assets/{InsightsCardStack-D52CCSVO-CezeuABJ.js → InsightsCardStack-Ba6uqldL-Cyk3CVB8.js} +1 -1
- package/dist/assets/{InsightsSection-D_wtVtVg-5rPDOiJT.js → InsightsSection-DN_68y7y-DvD_BHiY.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-DxjbW311-BrvXi8hE.js → IntegrationsSettingsPage-BDu4Ezdm-DB2LUB9s.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-24NSHzu1-CRaVhxIk.js → InternationalWireSwiftDetailsPage-T1JDEvyQ-l7I8MD0x.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-B1jvCUkw-Ld5IAzwh.js → InternationalWireVerificationPage-Bi-RW_nx-CxfoSiYK.js} +1 -1
- package/dist/assets/{InviteFormPage-C9fNxGsi-CRksfDku.js → InviteFormPage-dAvzxrNO-DVwpO5WD.js} +1 -1
- package/dist/assets/{InvitePageListView-DSWZ2SPi-B4SFh7Xp.js → InvitePageListView-CDQ72-kB-CILpqtPb.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DaN4NSHW-CydccedW.js → InvitePeoplePage-Bi2uNADO-B0PF13eR.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-D0CgJxyu-9_MCn8Y6.js → InvoiceUploadSection-DIOCGdUV-lK0Z6vhU.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-dYu9VLy4-YHkYWF3X.js → IssueChargeCardPage-SUJ7EQS_-Wkr9ykDm.js} +1 -1
- package/dist/assets/{LabeledAddressValue-DtmZ5htg-OjX3rrF7.js → LabeledAddressValue-DbJlhAeE-D4ADpabq.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C2LEKAwf-BQxD3J4c.js → LabeledAddressValueField-Dh-tCiqd-CopPVibc.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-Ds3mSsWy-DNoefl6y.js → LabeledControlledCheckBoxField-C1XX6rxl-C9A1O0qF.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DW8jVgaN-BEmOmz9t.js → LabeledCreatableSingleSelectField-BKgRYDeH-B8PL3IPN.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Ce2A0qNH-CSvl2QNP.js → LabeledDocumentField-C4DeMshZ-BYsIaoaw.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DWlfmICB-Diz5afTR.js → LabeledDropDownFormattedTextField-D9E4SrnM-DzEH6MvT.js} +1 -1
- package/dist/assets/{LabeledText-bruKdeAH-E98_Q-Ht.js → LabeledText-BoEcvuKP-k8wcEyHY.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CfzUlgs3-BKnteQzK.js → LabeledUserSingleSelectWithSubtitlesField-B249ciQ9-DY1vb70y.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CGSgg1Zl-M-Z5Kz_3.js → LabeledZeniRolesDropDownField-ChPjLOoI-J1uAt1RC.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-DjNutEvf-sKN4Are7.js → LinkJETransactionPage-CXrjmH2S-Dnk2D8de.js} +1 -1
- package/dist/assets/{LowBalancePopup-CwcYMtuk-B-vSGd6a.js → LowBalancePopup-Bjvrj9sJ-BamtSJNM.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-Ddhg3i45-DAcpfJH2.js → MagicLinkACHDetailsPage-Bd6iQTB7-Bmg10TH2.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-QzsSuMOz-D-Sj2Twf.js → MagicLinkDomesticWireDetailsPage-DqZdoA5j-v9SDRHBO.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BsLlhkuO-cmHC5izc.js → MagicLinkInternationalWireDetailsPage-YTOaNpfo-wNaZUaIs.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-COpDxIAb-BaiQCbjC.js → MagicLinkSuccessPage-DnyMLLDO-DducSy_q.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Oa8Szvl2-DvY3D69u.js → MagicLinkTitleSection-PNYU01lE-Cu4q1oL3.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BycONjR9-Dhu_6L_d.js → MailingDetailsSection-BoQbZB45-BleE36WA.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-D_WPTVKr-DYqVpuuh.js → MeetingCalenderPopup-BAUk-2qO-5AU86Dir.js} +1 -1
- package/dist/assets/{Menu-B6Fh2Mf9-B_ofMkAs.js → Menu-7IqPbZfx-BOI4GSEy.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-jWuBarzg-DszKEiXJ.js → MyBankConnectionsSettingsPage-BaH8SIHb-Di5mkIOV.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-_wuCCZ2J-Cbj97sd-.js → MyPendingActivationChargeCardListPage-ZbeFj953-C7dhx8a2.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-ChyYrCir-Dq1dhgqM.js → MyProfileSettingsPage-fAXtltF5-2HSJjYkF.js} +1 -1
- package/dist/assets/{NavBarWithPicker-D4jJGXZB-BJWr2BT1.js → NavBarWithPicker-BkkWEbzv-C2Txjo9f.js} +1 -1
- package/dist/assets/{NavigationArrow-DlUdvmV7-iugv9ZVE.js → NavigationArrow-DJXwUqv_-CI993N6j.js} +1 -1
- package/dist/assets/{NavigationDots-CFJt-T5J-B9PAzC5S.js → NavigationDots-BsApWf6Z-D7K8CQ08.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DhYni-in-Diwu92Go.js → NewGlobalMerchantPage-YrzYOQOy-DOFeO2s9.js} +1 -1
- package/dist/assets/{NoDataChart-CvGbQO4j-B5z4vqWb.js → NoDataChart-J6vinxLK-CANuvDB9.js} +1 -1
- package/dist/assets/{NoDataTable-EKtYZwcL-XyHu2gAL.js → NoDataTable-zEKE4E0y-DX-nLJUE.js} +1 -1
- package/dist/assets/{NotFoundPage-D5SHSQLS-0U7pTJ8G.js → NotFoundPage-DBwRnuJL-w7RI5T6F.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CjJw9Atb-BmSbhipZ.js → NotificationSettingsPage-gVQQuPtr-CcYeo49L.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BL_MxKXF-CvqrsVs-.js → NotificationsListConfig-BTyn2zk0-BWG1y5sn.js} +1 -1
- package/dist/assets/{NotificationsPage-bGvx2yV6-C4p8pfzZ.js → NotificationsPage-CuoQ6qBG-NdbgEAOc.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BE_NnQzd-DQnxoqWx.js → OpExByVendorPage-Dokik4eA-BV_HBJXa.js} +1 -1
- package/dist/assets/{OverlayContainerPage-GWXnlbZH-D2VSw_RI.js → OverlayContainerPage-GWXnlbZH-B19tGtSY.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D-000kuR-BW5fUkac.js → PandLWithForecastPage-BdmWCTj8-C4FmKe0x.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CwbX_znq-C6WVSYgS.js → PaymentAccountSetupBillingAddressSection-DOyxWZZK-BaYX2ZxL.js} +1 -1
- package/dist/assets/{PeoplePage-MwM0lFB9-B0wgHwI1.js → PeoplePage-pW48j5jS-BUDMr71X.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-C3a4MQzW-CQIA3SiA.js → PortfolioAllocationFormPage-DhzXKBe4-DJRvOoqH.js} +1 -1
- package/dist/assets/{PortfolioDetails-BMJ6PGMP-DtrA52bw.js → PortfolioDetails-BxQSupSD-BYkmPDRZ.js} +1 -1
- package/dist/assets/{ProductsCarousel-D2wC3sC--BKh2AE5P.js → ProductsCarousel-CDIDT4wn-Cl6WD0ah.js} +1 -1
- package/dist/assets/{PromoBaseCards-Ddumul2a-BrEDd739.js → PromoBaseCards-CjvIBCH5-CV7Xi1JF.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DszSpNdI-DwqHmKSk.js → QBOConnectionDialog-CtparEZI-gMCdxAEU.js} +1 -1
- package/dist/assets/{QBOSetupSection-BNF-BUu5-B_yCc7Df.js → QBOSetupSection-52wnORpS-1VcVr3AK.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Myone4-k-B9H3tR1_.js → ReimbursementApprovalRuleDetailPage-ByhxwHGf-B5L-zbQM.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DFhp0GGU-p0zWXuJ6.js → ReimbursementApprovalRulesPage-C3wvGX7S-CAQVRuoF.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BAEddssC-DcJfByf4.js → ReimbursementDetailPage-BeDLEhZU-BZNph0_i.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-D4u3SX8R-ByzJ_1Sx.js → ReimbursementPromoPage-B6h1qMFN-DMm8WaTZ.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-B9ByGW3n-Bt2Z4PCD.js → ReimbursementSetUpPage-BmfWsBxE-CRVeNY4n.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CAo_NjTX-O9TR0kFt.js → ReimbursementsBulkReviewDrawerPage-CxgjodrK-CLnvhRRe.js} +1 -1
- package/dist/assets/{ReloadCard-BA_JCHcV-DL7NGQyj.js → ReloadCard-BrSevhYt-Ce0u7oQu.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-D7B88kS6-BrGIUsj4.js → ReportTableViewSelector-DG_GBBVy-B9Q7ANPJ.js} +1 -1
- package/dist/assets/{ReportsPage-BzMzH-I3-BKZoRCt6.js → ReportsPage-2LvSKAqc-BVEIvxpr.js} +1 -1
- package/dist/assets/{RevenueChart-D33p-PFq-CGRJwc_N.js → RevenueChart-3auWL4WN-cwAWUbMW.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-D35NcQnx-Cbn86Yy5.js → ReviewDetailsPage-Ox0-qs0S-kHSqFRjZ.js} +1 -1
- package/dist/assets/{ReviewOverlay-BYJdokfW-C97jtxei.js → ReviewOverlay-gTpho8SC-D-km8Xn_.js} +1 -1
- package/dist/assets/{RoleWithToolTip-B3hm-1rz-OZzvKPZJ.js → RoleWithToolTip-Q8E1C8-k-DTOrkXB0.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BVnISMKW-BILZO4Rn.js → ScheduleDetailsFixedAssetsPage-DAmjCtuH-Bn15Lz-Y.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BibWPOxC-DZMtTy3C.js → ScheduleDetailsPage-CU4XpNcz-C5OU6EgT.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DcQmeKyc-JMxQ5IZq.js → ScheduleSequenceTable-CN2JHfpD-Bqr7i61k.js} +1 -1
- package/dist/assets/{ScreenRoutes-iE9-v0dJ.js → ScreenRoutes-899kefCn.js} +1 -1
- package/dist/assets/{SetUpAccountSection-BEJy78G6-Do1X3vVo.js → SetUpAccountSection-brNfCxq1-pVl319_g.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-ul-q6U3w-CKVV_QFK.js → SetUpDefaultSection-D6TOI6xl-NwY_48Gv.js} +1 -1
- package/dist/assets/{SignIn-BC8yop4g-CznicFTu.js → SignIn-BxOVyYlO-CK1OAlH0.js} +1 -1
- package/dist/assets/{SignInScreen-k0dvslKE.js → SignInScreen-DhZQp5XK.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-aZljA388--EEskYb2.js → SpendManagementListViewPage-BQr0lhis-BHJLo8pl.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BU1ai2M8-DkMZQMfc.js → SpendManagementPerTabPage-YRo21ObB-9U0HGy03.js} +1 -1
- package/dist/assets/{SpendManagementSection-DMw8NFvN-Cpy4Blf3.js → SpendManagementSection-DZoAUIl2-rrGVeOC5.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-BtcwTlJT-Bsya0Qr3.js → SpendMgmtSetupAccountSection-DoZz507k-COCtt4C7.js} +1 -1
- package/dist/assets/{StatementItem-CKTGWEW_-d6SqxmfH.js → StatementItem-rxYRmxgy-BqtDdZWd.js} +1 -1
- package/dist/assets/{StatementsPage-CjR4AlPy-BQRlcz37.js → StatementsPage-DYWqJAfe-Bjpv0ZcA.js} +1 -1
- package/dist/assets/{StatusSwitcher-5CZzUYJE-qZVSFmES.js → StatusSwitcher-CgnPShSa-0iiBHdx9.js} +1 -1
- package/dist/assets/{SubTabSwitcher-a38_U4dN-BfyQ4BdY.js → SubTabSwitcher-B9tuDWmi-DDJj95M0.js} +1 -1
- package/dist/assets/{SummaryCard-XbFHvHx9-CTqdwSSS.js → SummaryCard-DWTm0Ibs-QlsWJnNR.js} +1 -1
- package/dist/assets/{TaskManagementPage-Oct77yO--igT2quo0.js → TaskManagementPage-CVX-2RUq-DBCo0vTM.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-C4mpBnQl-CaG6dXuN.js → TimeRangeSwitcher-EZMj8FMO-io-gqh0I.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CnLEHYWD-BW9vKcLS.js → TimeframeSwitcher-dIf_dX9W-DA1D01oe.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Bc-Y5Hwv-0uMnBILy.js → TimeframeSwitcherWithToggle-DX_MIWBW-IBIePqKi.js} +1 -1
- package/dist/assets/{TopExCard-CaR8tsug-DnQ2eFWB.js → TopExCard-BGysJqNM-DwrqkF7R.js} +1 -1
- package/dist/assets/{TopExDetailPage-C4QeWe92-vjJ7ZG8N.js → TopExDetailPage-C2YT7JBn-BTdJebJy.js} +1 -1
- package/dist/assets/{TransactionDetailPage-BoxnNYXX-2QwooFWS.js → TransactionDetailPage-CoguEap7-DMtn3_o5.js} +1 -1
- package/dist/assets/{TransactionList-IjM4ABdF-DZ9PEfgX.js → TransactionList-CcGXxT2s-DjKlPsIw.js} +1 -1
- package/dist/assets/{TransactionListBig-B0FG0-BM-Br0wUjP3.js → TransactionListBig-m66L_Blu-D_t79BS-.js} +1 -1
- package/dist/assets/{TransactionListPage-1dwu-ZT2-vlIbHO3m.js → TransactionListPage-Txlc8xds-DqIUSnET.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-gBr8kX0F-BE5xJ4Iy.js → TransactionVendorDetailPage-BJNirMDz-FhkRMfNU.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BJVanLzC-BZZsX7dv.js → TransferDrawerPage-BnpmSf4G-CVvEvMJ4.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DGJnHyrO-BPZDM1DN.js → TreasuryOverviewPage-UCekyhOR-ClC4ZJRO.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-CblUabA3-CO5CaCN_.js → TreasuryPromoPage-BOa2LTL4-CZ2ctyns.js} +1 -1
- package/dist/assets/{TreasurySetupPage-CuROk6il-7kJUNajN.js → TreasurySetupPage-ja0CPbxg-Bsq1DVYU.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DfB0yrzC-osurk-aq.js → TreasuryStatementsPage-Cv5lbQZJ-Nnq1nzZs.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-CRoLpeXm-g70lefJl.js → TreasuryTaxLetterPage-5WaTmfJq-DNsnEAqs.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-QMDAFbkh-CUXJN-eh.js → TreasuryTransferOrReviewPage-RRR4WW_v-DhXMr2l3.js} +1 -1
- package/dist/assets/{TrendChart-D3_4i3qH-wYUerKRk.js → TrendChart-CoyqZdfU-Dxkh0wzy.js} +1 -1
- package/dist/assets/{TrendWithTransactions-KkV2_0Uh-D0lwZdhf.js → TrendWithTransactions-CL-XhvBr-DkoirZMh.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-kKq-jvPY-CF6bAw3X.js → UncategorizedAccountsMappingPage-DB8jM1Ih-Bl4Ee7b-.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-CZS0yjHf-2PLtjCjv.js → UnitIntegrationPage-DhcDCI1c-BiTIWtB4.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-KkO_TLUT-n0LOLnpS.js → UploadAdditionalDocumentOverlay-DTfiFcaF-59-uqojU.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-wnVnkHOg-DABVEKDS.js → Vendor2FAPopup-BVlwb1dK-C2FmmHuq.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-nuzdr69i-pgOa8d0q.js → VendorACHDetailsPage-DDgmMmEr-DMm0qbHo.js} +1 -1
- package/dist/assets/{VendorDetailPage-ClmL_1FB-Cz0Favu8.js → VendorDetailPage-BrH2hVoE-LGpuwJo6.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-DEK3jdYu-StHUbnc9.js → VendorDomesticWireDetailsPage-BpOmtl89-Dqhsl0HL.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-KMOY10Xr-C-_0rtWP.js → VendorFiling1099EditablePage-Gs9lElUd-yVN80kjj.js} +1 -1
- package/dist/assets/VendorFirstReviewPage-DYR3H2ef-D3tj6_Lf.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-C5JXqVVq-DdhMyWB0.js → VendorInternationalWireDetailsPage-D7udb20g-CK-6EJS2.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-7KrBqEWb-D_WpQwvk.js → VendorInternationalWireSwiftDetailsPage-BqG1zZ2i-_Ni6v2r1.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-fcURK7tv-BOScGj67.js → VendorsAccountsSection-Co0kKl0H-gTeO1NSE.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-Bnd_CdR9-B2JqHi6z.js → WarningsDrawerPage-BWXcJCDx-B4rdsaU5.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-DRDCdFW7-D8o4Z2Hy.js → ZeniAccountDetailPage-DUkBoD5J-iby_53mC.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-ZPWww_Go-HRp0ORwg.js → ZeniAccountListViewPage-BipORlgg-C6bg8buU.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DFivFXxa-rHFaK51E.js → ZeniAccountNavBarPieces-B3o6oUCK-D-GfB7AL.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-D1oJNoqy-C6ZFb72_.js → ZeniAccountPromoPage-BBG0GlO4-BmjEjU3q.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DITu6ztK-Fgis_UYm.js → ZeniAccountSetupPage-B8rMMC04-BgqAt4Ew.js} +1 -1
- package/dist/assets/{ZeniCopyright-DoA2I5zj-CPBH_zf-.js → ZeniCopyright-C0xdlTRq-BiudWK-l.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-amszUh1p-Wx5VV7C8.js → ZeniTransferAmountSlider-DBLbQ7lj-DubLWjZO.js} +1 -1
- package/dist/assets/{analyticsHelper-BbcCIpO1.js → analyticsHelper-BLY5h0Fx.js} +1 -1
- package/dist/assets/{analyticsHelper-DPbbQVAO-ChPUlKK7.js → analyticsHelper-Bru974EY-0oj_wEHH.js} +1 -1
- package/dist/assets/{chartTypes-qpvW4LwC-4Ag0mdD1.js → chartTypes-Catjpbws-BdIAO_NJ.js} +1 -1
- package/dist/assets/{commonDimensions-DAvj4Il1-Chc9ZQai.js → commonDimensions-C-GkWv5y-LwUpsUBN.js} +1 -1
- package/dist/assets/{detailCommon-jP1ggD3g-CQiTz4E7.js → detailCommon-Cu3vYgB3-Cq870J_S.js} +1 -1
- package/dist/assets/{downloadPdf-LAHtgcHF-B9uNpNRf.js → downloadPdf-DNZP7qt1-BSmHs1j2.js} +1 -1
- package/dist/assets/{index-DyBH5SZv.js → index-BArxjGR7.js} +2 -2
- package/dist/assets/{mapLoadingInProgressToTreeNode-CjvJKOzk-DeuVFxVw.js → mapLoadingInProgressToTreeNode-BdT9wYk1-CsTc5yDn.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Dr43nOGj-FSgubQ7E.js → mapSectionWithAcOnlyToTreeNode-DmZNefgA-mDeHKiwv.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-COsnfFtf-DI0OXEqQ.js → mapSpacerToTreeNode-BgNip-wz-B7-N37YM.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DFanhVY8-Cl8Oktyg.js → mapTimeframeBalancesToTreeNode-CBVm4tmc-BxZd5GgW.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BnpqSOA6-DAD3sG8g.js → mapTimeframeBalancesToTreeNode-Ce6wBQiE-V3YBY_IS.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D2xlqc6w-BjPO7Xb1.js → mapTimeframeHeaderLoadingInProgressToTreeNode-eRiGzvGN-BkBODAVp.js} +1 -1
- package/dist/assets/{play-icon-D3OSczih-8eMagn70.js → play-icon-DAuBi44S--rAkXTis.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DeWKaovX-C_3xC96w.js → toCOABalancesWithID-DammrRRq-CgY-avxa.js} +1 -1
- package/dist/assets/{toChartData-Dkp488IJ-Cg1gF7al.js → toChartData-B-OSTzWb-DJBiVtWc.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BibNNRS5-DCmyWsB-.js → treasuryColorHelper-CsGgr6lo-BBn1Zy3E.js} +1 -1
- package/dist/assets/{uploadAttachment-BjJ8_wDA-22p019X4.js → uploadAttachment-BNscQzsM-DOOy1CaO.js} +1 -1
- package/dist/assets/{uploadReceipts-D80JLNY4-sjevKwVl.js → uploadReceipts-D80JLNY4-HKAJP_Iw.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CustomerOnboardingContainerPage-wmVbYxdI-BLfm1bGE.js +0 -1
- package/dist/assets/VendorFirstReviewPage-CLF3qT17-D1oHFEVR.js +0 -730
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as et,X as tt,a1 as Se,j as i,M as Te,i as M,a as it,ch as at,l as L,z as st,c3 as nt,aa as ot,a0 as rt,K as lt,aV as ct,Y as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,c as yt,F as ht,a3 as gt,o as r,C as N,f as Ie,fC as xt,fa as Ce,cw as wt,c0 as St,a2 as Ct,q as ke,Q as bt,h as vt,n as k}from"./index-DyBH5SZv.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-BrsHy7MO-Cl-BM3f0.js";import{r as It}from"./verification-CW6uEyev-DdkqedMU.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"./LabeledAddressValueField-C2LEKAwf-BQxD3J4c.js";import"./LabeledCreatableSingleSelectField-DW8jVgaN-BEmOmz9t.js";import"./LabeledDocumentField-Ce2A0qNH-CSvl2QNP.js";import"./DocumentSecurityBanner-B5e6-zfE-B8VQ-eGv.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:jt,footer:ve,strings:{empty:Nt}}}=Te.getLocalizedStrings(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:z,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:ze})=>{const Be=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(Bt,{children:[s.terms.term1,i.jsx(M,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(M,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(M,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(M,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,Z]=P.useState(!1),[G,se]=P.useState("save"),[K,Ge]=P.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,B,E,A)}),{isValid:Me}=u.formState,Q=O?.company.company.companyBillPayInfo,W=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?W?.companyVerificationStatus:Q?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ze=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,Y=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,J=l?.primaryContactLocalData,ge=J?.firstName,xe=J?.lastName,we=J?.email;a!=null&&f!=null&&C!=null&&I!=null&&c!=null&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&Y!=null&&fe!=null&&ye!=null&&ue!=null&&Y!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:Y,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",I=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Qe=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&u.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},We=u.handleSubmit(()=>{if(G!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){u.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Me&&(Ze(),Ve?.(T))}),Xe=async(e,a)=>{e.includes(b)?Oe?.(a[b]):e.includes(v)&&Ae?.(a[v])},qe=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>qe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,u]);const oe=O?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=oe?.map(e=>e.user),Ye=oe?.map(e=>e.role),Je={onOkClick:()=>{Z(!1),V();const e=[],a=O?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Ye?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{Z(!1)}},He=ot(rt(p),p,jt.currencySymbol).toUpperCase(),q=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Qt,{children:[i.jsxs(Wt,{children:[i.jsx(It,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Kt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Nt:s.header,backgroundColor:Be.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?Z(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:ze,rightSideComponent:h?i.jsx(qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Je}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||w===!1)&&i.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...u,children:i.jsxs("form",{id:De(be),onSubmit:We,children:[h&&w===!0&&i.jsxs(Vt,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:q?s.businessVerificationDetails:s.verifyBusinessDetails}),!q&&i.jsx(Ut,{children:i.jsxs(Gt,{children:[i.jsx(Mt,{}),i.jsx(Zt,{})]})})]}),i.jsx($e,{isReadonly:q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:$,filesEndPoint:o,authParams:z,isPopupOpen:K,openPopup:Ge,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:z,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?i.jsx(zt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?W?.companyVerificationStatus?.code!=="pending_review"&&W?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:G==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:G==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)V();else{const e=S[T],a=l?.primaryContactLocalData;G!=="save"&&se("save");const c=e?.email??"",f=Ke(),C=Qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:K?0:4}}):null]})},Pt=(t,A,F,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:z,companyView:y}=t,B=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(z).map((p,$)=>{const n=p,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:wt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
1
|
+
import{u as et,X as tt,a1 as Se,j as i,M as Te,i as M,a as it,ch as at,l as L,z as st,c3 as nt,aa as ot,a0 as rt,K as lt,aV as ct,Y as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,c as yt,F as ht,a3 as gt,o as r,C as N,f as Ie,fC as xt,fa as Ce,cw as wt,c0 as St,a2 as Ct,q as ke,Q as bt,h as vt,n as k}from"./index-BArxjGR7.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-Bk25OKbY-Cuco64bk.js";import{r as It}from"./verification-CW6uEyev-DdkqedMU.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"./LabeledAddressValueField-Dh-tCiqd-CopPVibc.js";import"./LabeledCreatableSingleSelectField-BKgRYDeH-B8PL3IPN.js";import"./LabeledDocumentField-C4DeMshZ-BYsIaoaw.js";import"./DocumentSecurityBanner-AGP6qXyp-D4qwdN0Y.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:jt,footer:ve,strings:{empty:Nt}}}=Te.getLocalizedStrings(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:z,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:ze})=>{const Be=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(Bt,{children:[s.terms.term1,i.jsx(M,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(M,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(M,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(M,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,Z]=P.useState(!1),[G,se]=P.useState("save"),[K,Ge]=P.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,B,E,A)}),{isValid:Me}=u.formState,Q=O?.company.company.companyBillPayInfo,W=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?W?.companyVerificationStatus:Q?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ze=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,Y=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,J=l?.primaryContactLocalData,ge=J?.firstName,xe=J?.lastName,we=J?.email;a!=null&&f!=null&&C!=null&&I!=null&&c!=null&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&Y!=null&&fe!=null&&ye!=null&&ue!=null&&Y!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:Y,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",I=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Qe=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&u.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},We=u.handleSubmit(()=>{if(G!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){u.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Me&&(Ze(),Ve?.(T))}),Xe=async(e,a)=>{e.includes(b)?Oe?.(a[b]):e.includes(v)&&Ae?.(a[v])},qe=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>qe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,u]);const oe=O?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=oe?.map(e=>e.user),Ye=oe?.map(e=>e.role),Je={onOkClick:()=>{Z(!1),V();const e=[],a=O?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Ye?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{Z(!1)}},He=ot(rt(p),p,jt.currencySymbol).toUpperCase(),q=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Qt,{children:[i.jsxs(Wt,{children:[i.jsx(It,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Kt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Nt:s.header,backgroundColor:Be.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?Z(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:ze,rightSideComponent:h?i.jsx(qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Je}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||w===!1)&&i.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...u,children:i.jsxs("form",{id:De(be),onSubmit:We,children:[h&&w===!0&&i.jsxs(Vt,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:q?s.businessVerificationDetails:s.verifyBusinessDetails}),!q&&i.jsx(Ut,{children:i.jsxs(Gt,{children:[i.jsx(Mt,{}),i.jsx(Zt,{})]})})]}),i.jsx($e,{isReadonly:q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:$,filesEndPoint:o,authParams:z,isPopupOpen:K,openPopup:Ge,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:z,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?i.jsx(zt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?W?.companyVerificationStatus?.code!=="pending_review"&&W?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:G==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:G==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)V();else{const e=S[T],a=l?.primaryContactLocalData;G!=="save"&&se("save");const c=e?.email??"",f=Ke(),C=Qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:K?0:4}}):null]})},Pt=(t,A,F,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:z,companyView:y}=t,B=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(z).map((p,$)=>{const n=p,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:wt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as g,M as w,j as t,v as x,Q as $,o as s,h as C}from"./index-
|
|
1
|
+
import{X as g,M as w,j as t,v as x,Q as $,o as s,h as C}from"./index-BArxjGR7.js";import{n as o,b as d}from"./vendor-CnQcJ2Lu.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
|
|
2
2
|
${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as k,X as f,j as t,aV as te,M as w,cO as P,v as u,ai as U,bB as ie,o as i,g as B,C as h,q as v,dd as oe,l as y,n as l,b5 as re,b6 as ae,au as se,at as ne,aa as de,b7 as le,b9 as ce,iv as he,_ as O,bl as pe,Y as L,w as $,iw as q,ix as X,id as ge,bY as me,b$ as xe,f as T,ie as we,ig as ue}from"./index-
|
|
1
|
+
import{u as k,X as f,j as t,aV as te,M as w,cO as P,v as u,ai as U,bB as ie,o as i,g as B,C as h,q as v,dd as oe,l as y,n as l,b5 as re,b6 as ae,au as se,at as ne,aa as de,b7 as le,b9 as ce,iv as he,_ as O,bl as pe,Y as L,w as $,iw as q,ix as X,id as ge,bY as me,b$ as xe,f as T,ie as we,ig as ue}from"./index-BArxjGR7.js";import{n as o,f as R,b as K}from"./vendor-CnQcJ2Lu.js";import{F as ye}from"./InsightsSection-DN_68y7y-DvD_BHiY.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"./NavigationDots-BsApWf6Z-D7K8CQ08.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ve=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Be,X as fe,t as nt,d2 as st,fc as Ka,l as Ne,gW as qr,a7 as He,M as pe,fd as Xa,j as t,gk as Gr,aV as Kr,n as c,fl as Ja,_ as ye,Y as Z,o as a,bs as Pt,g as p,ih as Qa,v as _,bO as Xr,ii as Jr,cI as Qr,gb as ei,a as ti,ge as ai,co as ri,C as D,m as ii,F as oi,fD as ni,K as Ct,aZ as si,be as er,a5 as Mt,ij as di,ik as tr,b4 as ar,ao as Vt,eQ as ci,a6 as rr,ae as li,il as hi,im as pi,al as Ot,w as ge,eu as ui,ic as mi,ax as dt,fe as ir,c as ot,ai as gi,di as Ci,bT as fi,bQ as wi,cv as xi,gT as yi,q as be,eW as or,io as bi,ff as je,dq as ft,cZ as Si,Q as ha,h as nr,an as $i,ip as vi,eO as ki,bY as sr,iq as Li,s as ut,bB as pa,aR as ji,da as Di,ez as Ii,f as et,f9 as Ai,Z as Ti,k as Ri,a2 as Fi,a$ as Ei,ir as xt,cW as zi,bl as Pi,is as dr,it as cr,fZ as lr,iu as wt,hE as hr,id as Mi,b$ as Vi,ea as pr,ie as Oi,ig as Hi,c_ as Ni,cq as Bi,eg as Wi,bF as Ui,bG as _i}from"./index-
|
|
1
|
+
import{u as Be,X as fe,t as nt,d2 as st,fc as Ka,l as Ne,gW as qr,a7 as He,M as pe,fd as Xa,j as t,gk as Gr,aV as Kr,n as c,fl as Ja,_ as ye,Y as Z,o as a,bs as Pt,g as p,ih as Qa,v as _,bO as Xr,ii as Jr,cI as Qr,gb as ei,a as ti,ge as ai,co as ri,C as D,m as ii,F as oi,fD as ni,K as Ct,aZ as si,be as er,a5 as Mt,ij as di,ik as tr,b4 as ar,ao as Vt,eQ as ci,a6 as rr,ae as li,il as hi,im as pi,al as Ot,w as ge,eu as ui,ic as mi,ax as dt,fe as ir,c as ot,ai as gi,di as Ci,bT as fi,bQ as wi,cv as xi,gT as yi,q as be,eW as or,io as bi,ff as je,dq as ft,cZ as Si,Q as ha,h as nr,an as $i,ip as vi,eO as ki,bY as sr,iq as Li,s as ut,bB as pa,aR as ji,da as Di,ez as Ii,f as et,f9 as Ai,Z as Ti,k as Ri,a2 as Fi,a$ as Ei,ir as xt,cW as zi,bl as Pi,is as dr,it as cr,fZ as lr,iu as wt,hE as hr,id as Mi,b$ as Vi,ea as pr,ie as Oi,ig as Hi,c_ as Ni,cq as Bi,eg as Wi,bF as Ui,bG as _i}from"./index-BArxjGR7.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-BsApWf6Z-D7K8CQ08.js";import{L as qi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-CXwPL8kw-UEsImlqI.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-XagW9IHF-BgPk9Kl2.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-D80JLNY4-HKAJP_Iw.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 xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:V,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:q}=hi(),{isAndroidScreen:X}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:q===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):X===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-apple-wallet-button")})},io=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d2 as St,t as jt,fk as vt,l as M,ff as v,X as pe,M as Be,o as a,u as _e,j as t,aV as kt,fy as Pt,cO as A,v as C,bs as le,g as n,_ as It,aa as ce,Y as me,C as B,w as E,Q as Tt,h as Mt,cl as At,aB as Fe,b4 as Et,ae as ue,a5 as Lt,f as ge,n as I,d3 as Rt,Z as Dt,q as zt,c0 as Nt,ck as Ot,aP as Bt}from"./index-
|
|
1
|
+
import{d2 as St,t as jt,fk as vt,l as M,ff as v,X as pe,M as Be,o as a,u as _e,j as t,aV as kt,fy as Pt,cO as A,v as C,bs as le,g as n,_ as It,aa as ce,Y as me,C as B,w as E,Q as Tt,h as Mt,cl as At,aB as Fe,b4 as Et,ae as ue,a5 as Lt,f as ge,n as I,d3 as Rt,Z as Dt,q as zt,c0 as Nt,ck as Ot,aP as Bt}from"./index-BArxjGR7.js";import{b as O,n as i,j as xe,k as _t}from"./vendor-CnQcJ2Lu.js";import{Y as Ft}from"./SpendManagementSection-DZoAUIl2-rrGVeOC5.js";import{ChargeCardPromoUserContent as Ut}from"./ChargeCardPromoPage-CqYrY31Q-BIhulsIe.js";import{N as Wt,J as Gt}from"./PromoBaseCards-CjvIBCH5-CV7Xi1JF.js";import{M as Yt}from"./ChargeCardListTable-fOBNuapk-Brvnc5__.js";import{r as Ht,i as Jt}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Vt,o as Zt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.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"./MeetingCalenderPopup-BAUk-2qO-5AU86Dir.js";import"./NavigationDots-BsApWf6Z-D7K8CQ08.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-7IqPbZfx-BOI4GSEy.js";import"./RoleWithToolTip-Q8E1C8-k-DTOrkXB0.js";import"./CardNumberSubText-XagW9IHF-BgPk9Kl2.js";import"./ChargeCardUtils-CXwPL8kw-UEsImlqI.js";const be={infoSubheadingTextMarginTop:new B(I[0],I[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:l,title:h,subTitle:r,slidingTextList:u,onClick:d})=>{const p=pe();return t.jsxs(Kt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(Ue,{children:[t.jsxs(Ge,{children:[t.jsx(We,{children:l}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ye,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Wt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(da,{children:t.jsx(Gt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:l,creditLimit:h,onCreateNowClick:r})=>{const u=pe();return t.jsx(Qt,{windowSize:u,cardType:e,children:t.jsxs(Xt,{children:[t.jsxs(Ge,{children:[t.jsx(We,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:l})}),t.jsx(la,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ye,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},qt=e=>{const s=e-1;let l=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,X as V,t as ee,d2 as fi,u as de,fc as $i,i7 as vi,i8 as Ci,i9 as yi,Y as b,M as _,bL as ji,v as oe,g as y,ai as bi,bT as ki,ia as Si,ib as Ii,o as r,be as zi,a5 as Li,C as p,eu as Ri,ao as Pi,ic as Di,a6 as Ui,ax as Ni,w as F,fe as Ti,n as a,dq as Vi,_ as T,bV as De,c as Ue,bs as le,bl as _i,f as k,bY as we,q as U,i1 as ue,b4 as Ne,bc as Te,id as Mi,b$ as Oi,a7 as Q,ie as Ei,ig as Fi}from"./index-
|
|
1
|
+
import{j as i,X as V,t as ee,d2 as fi,u as de,fc as $i,i7 as vi,i8 as Ci,i9 as yi,Y as b,M as _,bL as ji,v as oe,g as y,ai as bi,bT as ki,ia as Si,ib as Ii,o as r,be as zi,a5 as Li,C as p,eu as Ri,ao as Pi,ic as Di,a6 as Ui,ax as Ni,w as F,fe as Ti,n as a,dq as Vi,_ as T,bV as De,c as Ue,bs as le,bl as _i,f as k,bY as we,q as U,i1 as ue,b4 as Ne,bc as Te,id as Mi,b$ as Oi,a7 as Q,ie as Ei,ig as Fi}from"./index-BArxjGR7.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{R as Ve}from"./Menu-7IqPbZfx-BOI4GSEy.js";import{T as _e}from"./RoleWithToolTip-Q8E1C8-k-DTOrkXB0.js";import{R as ce}from"./CardNumberSubText-XagW9IHF-BgPk9Kl2.js";import{_ as Me}from"./ChargeCardUtils-CXwPL8kw-UEsImlqI.js";const W=_.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=_.getLocalizedStrings().common.strings.empty,$e={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Oe=e=>e===!0?[{...$e,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[$e,ve,Ce,ye,je,be],z={containerPaddingLeft:r.sp2,containerPaddingRight:r.sp3,containerPaddingTop:r.sp3,containerPaddingBottom:r.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Ei,Fi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=V(),x=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Oe(x));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===t.sortKey?g.sortOrder=t.sortOrder:g.sortOrder="ascending";w(s)},[t.sortKey,t.sortOrder]);const u=(s,g)=>{let $=g;t.sortKey===s&&($=g==="ascending"?"descending":"ascending"),h(s,$)},f=c.find(s=>s.key===t.sortKey)??(x?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",m=(x?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=_.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Qi,{children:[i.jsx(Zi,{children:i.jsx(Xi,{})}),i.jsx(_i,{title:j.sortBy,placeholder:j.sortBy,pickerValues:m,valueToLabel:S,selectedValue:t.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:oe.extraSmallRegular,titleTextStyle:oe.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rr,{onClick:()=>u(f.key,f.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:f.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:f,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Bi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Yi,{companyNameSticky:e,sortDataValue:t.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(ir,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(er,{sortDataValue:t.sortKey,windowSize:l,isVisible:t.sortKey===s.key&&(x?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Gi,{onClick:()=>u(x?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Wi.memo(Hi),qi=o.div`
|
|
2
2
|
top: ${r.sp0};
|
|
3
3
|
left: ${r.sp0};
|
|
4
4
|
z-index: 2;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as b,M as oe,j as r,u as H,t as $e,d2 as ye,a1 as be,_ as je,l as Se,fk as Te,aV as ze,K as W,Y as q,o as t,c0 as ve,k as O,c1 as Pe,Z as ke,C as g,bP as Be,bs as Ae,i5 as Ie,w as Me,n as m,Q as j,g as $,ao as Re,a6 as Le,i6 as _e}from"./index-DyBH5SZv.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-CnQcJ2Lu.js";import{x as Fe}from"./MeetingCalenderPopup-D_WPTVKr-DYqVpuuh.js";import{f as Ue}from"./NavigationDots-CFJt-T5J-B9PAzC5S.js";import{J as N,N as G}from"./PromoBaseCards-Ddumul2a-BrEDd739.js";import{M as R}from"./usp-line-BBd1wKwW-CgKq8-Xn.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 h={containerPaddingTopBottom:new g(m[0],m[0]),uspContainerMarginX:new g(m[6],m[0]),midContainerGap:new g(m[4],84),iconContainerMinHeight:new g(236,396),emptySectionHeight:new g(m[6],43),navigationBottom:new g(m[4],94),navigationLeft:new g(192,244),carouselHeight:new g(268,396),carouselMarginTop:new g(54,m[4]),carouselMarginLeft:new g(120,m[12]),buttonTrayGap:new g(m[3],m[5]),termsOfAgreementMarginTop:new g(m[5],m[10]),contactAdminContainerMarginTop:new g(m[0],m[10]),contactAdminContainerMarginBottom:new g(m[4],m[0]),contactAdminContainerMarginLeftRight:new g(m[3],m[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:ee,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Mr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:x,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:V,onExpressInterestClick:me})=>{const xe=H(),Z=$e(),z=b(),J=ye().analytics,{chargeCardTermsDetails:L,companyChargeCardInfo:C,companyLocaleInfo:_}=i,K=be(L?.fetchStatus.fetchState),[he,Q]=S.useState(!1),ge=()=>{J.trackCardsPromoPageClicked("schedule demo"),J.trackCardsScheduleDemoClick(p,{isCreditCardOffered:x,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),Q(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{K==="In-Progress"&&L?.fetchStatus.fetchState==="Completed"&&V()},[K,V,L?.fetchStatus]);const X=Se.hasChargeCardAdminLevelAccess(Z.loggedInUserRoleMap),we=Te(Z),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=E?o.expressInterest:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Ze,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:xe.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),he===!0?r.jsx(Fe,{onCancelClick:()=>{Q(!1)},meetingUrl:e}):null,r.jsx(Xe,{windowSize:z,children:X===!0?r.jsxs(Qe,{children:[r.jsxs(Ke,{children:[r.jsx(Ge,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(He,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),X&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(W,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ge,"data-testid":q("schedule-demo-button")}),r.jsx(Je,{windowSize:z,children:o.orText}),r.jsx(W,{variant:"primary",label:Y,style:{width:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===o.expressInterest?me:()=>l(u),"data-testid":q("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(U,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:x=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||x===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||x===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(c)}})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:x})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]}):x?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(We,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p?null:r.jsx(Cr,{}),r.jsx(qe,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:x="credit"})=>{const c=b(),w=x==="debit_and_credit"?o.promoTextDebitCreditCard:x==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Oe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:x,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:x})]})},Oe=({cards:e,companyLegalName:s})=>{const i=H(),n=b();let p="",x;if(e.length===1){x=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(xr,{children:[x!=null?r.jsx(Ye,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:x.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(hr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(N,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=b(),s=H(),[i,n]=S.useState(0),[p,x]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(x(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||x(!0),n(l)};return r.jsxs(gr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Ze=a.div`
|
|
1
|
+
import{X as b,M as oe,j as r,u as H,t as $e,d2 as ye,a1 as be,_ as je,l as Se,fk as Te,aV as ze,K as W,Y as q,o as t,c0 as ve,k as O,c1 as Pe,Z as ke,C as g,bP as Be,bs as Ae,i5 as Ie,w as Me,n as m,Q as j,g as $,ao as Re,a6 as Le,i6 as _e}from"./index-BArxjGR7.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-CnQcJ2Lu.js";import{x as Fe}from"./MeetingCalenderPopup-BAUk-2qO-5AU86Dir.js";import{f as Ue}from"./NavigationDots-BsApWf6Z-D7K8CQ08.js";import{J as N,N as G}from"./PromoBaseCards-CjvIBCH5-CV7Xi1JF.js";import{M as R}from"./usp-line-BBd1wKwW-CgKq8-Xn.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 h={containerPaddingTopBottom:new g(m[0],m[0]),uspContainerMarginX:new g(m[6],m[0]),midContainerGap:new g(m[4],84),iconContainerMinHeight:new g(236,396),emptySectionHeight:new g(m[6],43),navigationBottom:new g(m[4],94),navigationLeft:new g(192,244),carouselHeight:new g(268,396),carouselMarginTop:new g(54,m[4]),carouselMarginLeft:new g(120,m[12]),buttonTrayGap:new g(m[3],m[5]),termsOfAgreementMarginTop:new g(m[5],m[10]),contactAdminContainerMarginTop:new g(m[0],m[10]),contactAdminContainerMarginBottom:new g(m[4],m[0]),contactAdminContainerMarginLeftRight:new g(m[3],m[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:ee,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Mr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:x,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:V,onExpressInterestClick:me})=>{const xe=H(),Z=$e(),z=b(),J=ye().analytics,{chargeCardTermsDetails:L,companyChargeCardInfo:C,companyLocaleInfo:_}=i,K=be(L?.fetchStatus.fetchState),[he,Q]=S.useState(!1),ge=()=>{J.trackCardsPromoPageClicked("schedule demo"),J.trackCardsScheduleDemoClick(p,{isCreditCardOffered:x,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),Q(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{K==="In-Progress"&&L?.fetchStatus.fetchState==="Completed"&&V()},[K,V,L?.fetchStatus]);const X=Se.hasChargeCardAdminLevelAccess(Z.loggedInUserRoleMap),we=Te(Z),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=E?o.expressInterest:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Ze,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:xe.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),he===!0?r.jsx(Fe,{onCancelClick:()=>{Q(!1)},meetingUrl:e}):null,r.jsx(Xe,{windowSize:z,children:X===!0?r.jsxs(Qe,{children:[r.jsxs(Ke,{children:[r.jsx(Ge,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(He,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),X&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(W,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ge,"data-testid":q("schedule-demo-button")}),r.jsx(Je,{windowSize:z,children:o.orText}),r.jsx(W,{variant:"primary",label:Y,style:{width:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===o.expressInterest?me:()=>l(u),"data-testid":q("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(U,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:x=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||x===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||x===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(c)}})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:x})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]}):x?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(We,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p?null:r.jsx(Cr,{}),r.jsx(qe,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:x="credit"})=>{const c=b(),w=x==="debit_and_credit"?o.promoTextDebitCreditCard:x==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Oe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:x,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:x})]})},Oe=({cards:e,companyLegalName:s})=>{const i=H(),n=b();let p="",x;if(e.length===1){x=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(xr,{children:[x!=null?r.jsx(Ye,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:x.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(hr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(N,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=b(),s=H(),[i,n]=S.useState(0),[p,x]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(x(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||x(!0),n(l)};return r.jsxs(gr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Ze=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ve,X as Ie,d2 as De,a1 as M,a as Oe,c3 as Be,l as Ue,M as _e,a7 as N,j as t,cI as ze,g as $e,C as r,aV as Re,c as Le,F as We,c_ as Me,o as B,v as Ne,aQ as qe,a3 as He,n as a,q as Ge}from"./index-
|
|
1
|
+
import{u as Ve,X as Ie,d2 as De,a1 as M,a as Oe,c3 as Be,l as Ue,M as _e,a7 as N,j as t,cI as ze,g as $e,C as r,aV as Re,c as Le,F as We,c_ as Me,o as B,v as Ne,aQ as qe,a3 as He,n as a,q as Ge}from"./index-BArxjGR7.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{F as Je}from"./HelpButton-DbXhEWQv-RGpqAgPI.js";import{K as Ke}from"./SetUpDefaultSection-D6TOI6xl-NwY_48Gv.js";import{f as Qe,y as q}from"./SpendMgmtSetupAccountSection-DoZz507k-COCtt4C7.js";import{x as Xe}from"./LabeledControlledCheckBoxField-C1XX6rxl-C9A1O0qF.js";import{g as Ye}from"./UploadAdditionalDocumentOverlay-DTfiFcaF-59-uqojU.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"./MeetingCalenderPopup-BAUk-2qO-5AU86Dir.js";import"./ChargeCardUtils-CXwPL8kw-UEsImlqI.js";import"./CreditCardPaymentPlgSection-xRmYJOBa-BDTGo5w9.js";import"./ChaseOverlay-DzWOML9n-DWzXfXiH.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},H="chargeCardSetUpPage",h="payAccount",{commonSetUp:Ze,spendManagement:et}=_e.getLocalizedStrings(),{chargeCard:K}=et,{chargeCardSetUp:m}=K,{setUp:U}=Ze,At=({autoPayThreshold:e,isDisabled:x,meetingUrl:v,isEarlyPayEnabled:f,chargeCardSetUpView:o,connectedAccountProvider:Q,filesEndPoint:X,authParams:Y,isAccountsEnabled:Z,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ee,accountsPromoConfig:te,onFetchLinkTokenClick:ne,onBackClick:ie,onEnableChargeCardClick:oe,onUpdateChargeCardClick:ae,onBusinessVerificationSectionClick:ce,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,onUpdatePrimaryFundingAccount:re,onUpdateAutoPayClick:de,onEstablishConnectionClick:ue,onEstablishConnectionSuccess:pe,onClickMenuIcon:me,onEnableChargeCardSuccess:P,onEditFileName:he,onDeleteFile:fe,updateFilesEntity:ge,onCompanyOfficerUpdated:ye,onSendForVerificationClick:Ce,onSignUpClick:be})=>{const g=Ve(),i=Ie(),T=De().analytics,[w,y]=p.useState(!1),{fetchState:C,companyBillPayInfo:_,isRefreshingViewInBackground:Se,updateStatus:d,accountUpdateStatus:xe,plaidConnectionDetails:Pe,allBankAccounts:we,companyChargeCardInfo:z,companyDebitCardInfo:Ae,selectedCompanyOfficer:l,primaryFundingAccount:s,allFundingAccounts:$}=o,R=M(C),A=M(d.fetchState),F=Oe({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>G(o),[o]),values:G(o)}),ke=F.handleSubmit(oe),ve=async(b,k)=>{const n=k[h];if(b.includes(h))if(b.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&s?.id!=n.fundingAccount.selectedOption){const u=$.find(O=>O.id===n.fundingAccount.selectedOption);u!=null&&re(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&s?.id!=null&&s?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(O=>O.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&T.trackConnectBankLink(u.value,u.label,"charge_cards"),ae(n.account.selectedOption,s.id,s.accType)}else b.includes("enableAutoPay")&&n.enableAutoPay!=null&&de(n.enableAutoPay)};p.useEffect(()=>{const b=F.watch((k,{name:n})=>{n!=null&&k!=null&&Be(()=>ve(n,k))});return()=>{b.unsubscribe()}}),p.useEffect(()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&y(!0),w&&R==="In-Progress"&&C==="Completed"&&y(!1)},[l,C,R]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const j=z?.isChargeCardEnabled===!0,V=Ae?.isDebitCardEnabled===!0,L=_?.isBusinessVerified===!0,Ee=s?.accType==="depositAccount"||Ue.isVerifiedPaymentAccountProviderStatusCode(s?.providerVerificationStatus?.code??""),I=E?L:L&&Ee,Te=C==="In-Progress"||C==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const D=E?I&&!V:ee?I&&!j:I&&!(j&&V),Fe=D?m.setupSubTitleNotEnabled:m.setupSubTitle,W=g.mode==="light"?new N(g.colors.brandColorJadeLight):new N(g.colors.brandColorJadeDark),je=()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(nt,{children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:$e.drawerBackground},transitionDuration:250,children:t.jsx(Ye,{authParams:Y,filesEndPoint:X,updateStatus:d,onEditFileName:he,onDeleteFile:fe,updateFilesEntity:ge,companyOfficer:l,onClose:()=>y(!1),onCompanyOfficerUpdated:ye,onSendForVerificationClick:Ce})}),t.jsx(Re,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ie,showMenuIcon:!j&&!V&&(i==="medium-compact"||i==="small"),onClickMenuIcon:me,source:"ChargeCardSetupPage"}),t.jsxs(tt,{windowSize:i,children:[t.jsx(it,{windowSize:i,children:Fe}),Te?t.jsx(ot,{children:t.jsx(Le,{size:"ExtraLarge",start:!0})}):t.jsx(We,{...F,children:t.jsx("form",{id:J(H),onSubmit:ke,children:t.jsxs(at,{windowSize:i,children:[t.jsx(Ke,{onClick:je,title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(Me,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:W},status:_?.businessVerificationStatus,isLoading:Se,isActiveWhileLoading:!0}),E?null:t.jsx(Qe,{connectedAccountProvider:Q,primaryFundingAccount:s,allFundingAccounts:$,plaidConnectionDetails:Pe,allBankAccounts:we,sectionId:h,isDisabled:x,onFetchLinkTokenClick:ne,onEstablishConnectionClick:ue,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:pe,icon:{element:t.jsx(qe,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:W},analytics:T,productType:"charge_cards",isAccountsEnabled:Z,onSignUpClick:be,pageName:m.pageName,accountsPromoConfig:te,accountSelectContainerStyle:f?{marginBottom:"20px"}:{},bottomComponent:f&&t.jsx(Xe,{label:{label:K.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...Ne.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:q(h,"enableAutoPay"),checkBoxValue:q(h,"enableAutoPay"),defaultChecked:z?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),D?t.jsx(He,{formId:J(H),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||xe.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Je,{isFooterRendered:D,meetingUrl:v,analytics:T,productType:"charge_cards"})]})},G=e=>{const{allBankAccounts:x,allFundingAccounts:v,primaryFundingAccount:f}=e;return{[h]:{fundingAccount:{selectedOption:f?.id,allOptions:v.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:f?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},J=e=>`${e}_form`,tt=S.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: flex-start;
|
|
4
4
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as F,X as T,j as t,aV as W,M as R,o as h,C as g,q as B,an as O,d2 as V,g$ as q,Y as J,c as K,n as s,bp as U}from"./index-
|
|
1
|
+
import{u as F,X as T,j as t,aV as W,M as R,o as h,C as g,q as B,an as O,d2 as V,g$ as q,Y as J,c as K,n as s,bp as U}from"./index-BArxjGR7.js";import{n as i,b as X}from"./vendor-CnQcJ2Lu.js";import{$ as _,g as G}from"./BoxItem-D1pnPLjq-DNBj4ORn.js";import{w as H}from"./downloadPdf-DNZP7qt1-BSmHs1j2.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"./commonDimensions-C-GkWv5y-LwUpsUBN.js";const z=R.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},Q=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: ${h.sp3} ${h.sp4};
|
|
4
4
|
flex-direction: row;
|
package/dist/assets/{ChargeCardUtils-BvVm2SMq-B6pl3c2F.js → ChargeCardUtils-CXwPL8kw-UEsImlqI.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ff as D,M as S,dq as c,l as B}from"./index-
|
|
1
|
+
import{ff as D,M as S,dq as c,l as B}from"./index-BArxjGR7.js";function U(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const A=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(B.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=S.getLocalizedStrings(),L=({chargeCardDetailView:e,classListFetchState:a,analytics:r,isChargeCardFeatureEnabled:d,creditAccount:t,pageName:o,addToWalletType:i,creditAccountRepayment:l,isDebitCard:n,isChargeCardAdmin:m,cardIssuedByRoles:u,cardIssuedByDepartmentName:h,cardHolderRoles:C,cardHolderDepartmentName:g,controllerEmails:p,productInformation:y,creditAccountInformation:f,debitAccountInformation:I})=>{e.chargeCard!=null&&a==="Completed"&&(!d||t.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(n&&m)||e.depositAccountLimitFetchState.fetchState==="Completed")&&r.trackCardsAddToWalletClick(p,y,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:F(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:D(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name},{cardIssuedByName:c(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:u,cardIssuedByDepartment:h},{cardholderName:c(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},o,i,f,I)},N=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},Y=e=>e.limit.amount-e.available.amount,b="1.75";export{F,L as H,U as L,N as M,A as U,Y as _,b as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as H,fc as X,fd as Q,M as W,j as t,g as x,m as ee,K as N,Y as c,o as s,C as m,Z as te,q as ie,an as se,bB as oe,c$ as re,n as l,ao as A,ax as R,a6 as ne,fe as le,w as ae,cq as de,aP as ce}from"./index-
|
|
1
|
+
import{X as H,fc as X,fd as Q,M as W,j as t,g as x,m as ee,K as N,Y as c,o as s,C as m,Z as te,q as ie,an as se,bB as oe,c$ as re,n as l,ao as A,ax as R,a6 as ne,fe as le,w as ae,cq as de,aP as ce}from"./index-BArxjGR7.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";const u={width:new m(350,624,624),height:new m(600,730,730),paddingLeft:new m(l[4],l[8],l[8]),paddingRight:new m(l[4],l[7],l[7])};function De(e){const d=H(),[,_]=X(),{isMobileOrTabletScreen:g}=Q(),[j,k]=p.useState(!0),[y,S]=p.useState(!0),[z,C]=p.useState(!1),[T,M]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,q=r.title,K=r.description,V=()=>{window.open(r.chaseVideoUrl,"_blank")},L=[0,1,2,3],P=i=>i<L.length-1,B=(i,n)=>{_(i??""),n?k(!1):S(!1)},D=i=>{i?C(!0):M(!0)},U=i=>{i?C(!1):M(!1)};p.useEffect(()=>{j===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[j,y]);const Y=()=>{const i=r.step1;return t.jsxs($,{children:[t.jsx(Ce,{"data-testid":c("chase-overlay-signin-link"),href:r.chaseSigninUrl,target:"_blank",rel:"noreferrer noopener",children:i.text1}),i.text2,t.jsxs(a,{children:[" ",i.text3]}),i.text4,t.jsxs(a,{children:[" ",i.text5]}),i.text6]})},J=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},Z=()=>{const i=r.step3,n=e.connectedAccountProvider==="stripe"?i.payeeIdStripe:i.payeeIdUnit;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(Te,{children:[t.jsxs(f,{onClick:()=>B(n,!0),onMouseOver:()=>D(!0),onMouseLeave:()=>U(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),j?t.jsxs(h,{children:[t.jsx(I,{showCopyText:z&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(E,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>B(i.payeeName,!1),onMouseOver:()=>D(!1),onMouseLeave:()=>U(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),y?t.jsxs(h,{children:[t.jsx(I,{showCopyText:T&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(E,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Me,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},F=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},G=i=>{switch(i){case 0:return t.jsx(Y,{});case 1:return t.jsx(J,{});case 2:return t.jsx(Z,{});default:return t.jsx(F,{})}};return t.jsx(pe,{windowSize:d,role:"presentation",style:{background:x.overlayDark,...e.style},children:t.jsx(ee,{onClickAway:()=>e.action.onBackClick?.(),children:t.jsxs(he,{windowSize:d,isEditPopup:!1,children:[t.jsxs(Le,{children:[t.jsx(xe,{children:q}),t.jsx(ge,{children:K}),t.jsx(je,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:L.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:P(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),P(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(N,{variant:"secondary",label:r.primaryButtonText,onClick:V,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-watch-video-button")}),t.jsx(ze,{}),t.jsx(N,{variant:e.proceedButtonVariant??"primary",label:r.secondaryButtonText,onClick:e.action.onBackClick,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-proceed-button")})]})]})})})}const pe=o.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as Q,j as t,Y as $,gZ as pe,M as ee,_ as M,K as Y,o,a3 as he,C as l,a2 as oe,k as ue,an as me,c0 as te,w as ge,q as F,a1 as xe,a as fe,c3 as ke,g as w,F as De,fD as $e,c6 as we,eN as G,cd as J,n as s,cW as be,bH as ye,bm as je,cz as Pe,f7 as Se,f as q,f9 as Le}from"./index-
|
|
1
|
+
import{X as Q,j as t,Y as $,gZ as pe,M as ee,_ as M,K as Y,o,a3 as he,C as l,a2 as oe,k as ue,an as me,c0 as te,w as ge,q as F,a1 as xe,a as fe,c3 as ke,g as w,F as De,fD as $e,c6 as we,eN as G,cd as J,n as s,cW as be,bH as ye,bm as je,cz as Pe,f7 as Se,f as q,f9 as Le}from"./index-BArxjGR7.js";import{b as k,n as a}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 ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",R="selectDocument",E=e=>{const p=[];return e.checkFront!=null&&p.push(e.checkFront.fileId),e.checkBack!=null&&p.push(e.checkBack.fileId),{[g]:{[Fe]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Te]:e.checkDepositLocalData.source,[Ce]:{allOptions:e.depositAccounts.depositAccounts.map(x=>({label:x.accountName,value:x.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[ie]:p,[R]:{front:e.checkFront,back:e.checkBack}}}},D=(e,p)=>`${e}.${p}`,ze=e=>`${e}_form`,u={largeLabelWidth:new l(160,160,160),rowContentPaddingLeft:new l(s[3],s[4]),checkPicRowContentPaddingXAxis:new l(s[3],s[4]),labeleMarginLeft:new l(s[0],s[0]),labeleMarginBottom:new l(s[2],s[0]),labelMarginRight:new l(s[3],s[3]),labeledFieldPaddingLeft:new l(s[3],s[0]),labeledFieldPaddingRight:new l(s[3],s[2]),labeledFieldPaddingTop:new l(s[3],s[3]),labeledFieldPaddingBottom:new l(s[3],s[2]),infoLabelPaddingRight:new l(s[0],s[3]),infoLabelMarginTop:new l(s[1],s[0])},{spendManagement:Be,common:V}=ee.getLocalizedStrings(),c=Be.zeniAccounts.zeniAccountList,Ae=V.documents;function Ie({checkDeposit:e,analytics:p,filesEndPoint:x,openPopup:b,authParams:y,onSaveChangesToLocalStore:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T}){const r=Q(),n=e.fetchState,L=xe(n),[v,X]=k.useState(!1),[se,z]=k.useState(!1),B=u.largeLabelWidth.value(r),f=fe({mode:"all",reValidateMode:"onBlur",defaultValues:E(e),values:E(e)}),{isValid:re}=f.formState,K=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:V.currency.currencyCode,currencySymbol:V.currency.currencySymbol},source:i[g].source,depositTo:e.depositAccounts.depositAccounts.find(h=>h.id===i[g].depositTo.selectedOption),fileIds:i[g][ie]};C(d)},ce=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);K(h)}};k.useEffect(()=>{const i=f.watch((d,{name:h})=>{h!=null&&d!=null&&ke(()=>ce(h,d))});return()=>{i.unsubscribe()}}),k.useEffect(()=>{L==="Completed"&&n==="Not-Started"&&f.reset(E(e))},[L,n,f,e]),k.useEffect(()=>{e.error!=null?z(!0):z(!1)},[e.error]);const le=f.handleSubmit(()=>{if(re){p.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const i=f.getValues();K(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(I=>I.id===i),A=e.depositAccounts.depositAccounts.findIndex(I=>I.id===i);return h?t.jsx(Ve,{color:Se(A),isSelectedValue:d}):null},de=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(A=>A.id===i);return h?d===!0?t.jsx(Re,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(W,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(W,{children:M("0,0[.]00",h?.accountBalance?.available)})]}):null};return t.jsxs(t.Fragment,{children:[se?t.jsx(Oe,{children:t.jsxs(qe,{children:[t.jsxs(Xe,{children:[t.jsx(Ye,{}),t.jsxs(Ge,{children:[t.jsx(Je,{children:e.error?.title}),t.jsx(We,{children:e.error?.message})]})]}),t.jsx(Ke,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),z(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(Ze,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...f,children:t.jsx("form",{id:ze(ve),onSubmit:le,children:t.jsxs(He,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:c.checkDepositDrawer.amountLabel,width:B},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:c.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:i=>!!i&&i>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(N,{}),t.jsx(we,{label:{label:c.checkDepositDrawer.sourceLabel,width:B},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:c.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:i=>i!=null}}}),t.jsx(N,{}),t.jsx(ae,{size:r,children:t.jsx(eo,{size:r,children:t.jsx(_e,{label:{label:c.checkDepositDrawer.depositToLabel,width:B,style:{marginLeft:u.labeleMarginLeft.valuePx(r),marginBottom:u.labeleMarginBottom.valuePx(r),marginRight:u.labelMarginRight.valuePx(r)}},style:{paddingTop:u.labeledFieldPaddingTop.valuePx(r),paddingBottom:u.labeledFieldPaddingBottom.valuePx(r),paddingLeft:u.labeledFieldPaddingLeft.valuePx(r),paddingRight:u.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:u.infoLabelPaddingRight.valuePx(r),marginTop:u.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(i,d)=>ne(i,d),valueToSubLabels:(i,d)=>de(i,d),name:D(g,"depositTo"),placeholder:c.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(i=>({label:i.accountName,value:i.id}))},textAlignment:"right",registerOptions:{required:!0,validate:i=>!!(i!=null&&i.selectedOption)}}})})}),t.jsx(N,{}),t.jsxs(Ue,{size:r,children:[t.jsxs(Qe,{size:r,children:[t.jsx(Ee,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(Z,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(G,{name:`${D(g,R)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:J,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>X(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(Z,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(G,{name:`${D(g,R)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:J,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>X(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:c.checkDepositDrawer.picGuides.map(i=>t.jsxs(ao,{children:[t.jsx(oo,{}),t.jsx(Ne,{children:i})]},i))})]}),t.jsx(so,{windowSize:r,children:Ae.formatJPGText10MB})]})]})})})]})}const Ee=a(F)`
|
|
2
2
|
color: ${e=>e.theme.colors.hero};
|
|
3
3
|
`,Ne=a(F)`
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,ai as po,Y as m,bd as fe,_ as Z,dg as go,o as c,g as ee,a1 as hi,X as M,H as ui,z as fo,dh as pi,di as xo,l as A,M as W,n as w,dj as Vi,dk as Ot,a7 as _,dl as Mt,by as Nt,dm as It,C as D,cs as Pt,t as Di,T as Je,dn as Ne,bf as K,c as mo,u as ce,ae as Ri,dp as Ei,a8 as V,e as Ae,dq as wo,dr as se,bx as zt,bB as gi,w as yo,f as ye,ds as Xe,dt as Be,du as tt,q as C,bH as ne,dv as bo,v as Ft,dw as Re,dx as fi,dy as xi,dz as ko,dA as jo,an as Gi,ak as So,bY as Tt,bX as Vt,c$ as Co,al as Hi,b$ as Ki,bl as vo,dB as $o,dC as mi,dD as wi,dE as _o,dF as Lo,bs as Ao,b4 as Bo,dG as Wo}from"./index-
|
|
1
|
+
import{j as t,ai as po,Y as m,bd as fe,_ as Z,dg as go,o as c,g as ee,a1 as hi,X as M,H as ui,z as fo,dh as pi,di as xo,l as A,M as W,n as w,dj as Vi,dk as Ot,a7 as _,dl as Mt,by as Nt,dm as It,C as D,cs as Pt,t as Di,T as Je,dn as Ne,bf as K,c as mo,u as ce,ae as Ri,dp as Ei,a8 as V,e as Ae,dq as wo,dr as se,bx as zt,bB as gi,w as yo,f as ye,ds as Xe,dt as Be,du as tt,q as C,bH as ne,dv as bo,v as Ft,dw as Re,dx as fi,dy as xi,dz as ko,dA as jo,an as Gi,ak as So,bY as Tt,bX as Vt,c$ as Co,al as Hi,b$ as Ki,bl as vo,dB as $o,dC as mi,dD as wi,dE as _o,dF as Lo,bs as Ao,b4 as Bo,dG as Wo}from"./index-BArxjGR7.js";import{n as a,b as I,f as Oo,j as P}from"./vendor-CnQcJ2Lu.js";import{L as it,N as Mo,D as No,B as be,u as $}from"./AccountRow-C1XH7owI-rCAHD5JM.js";function q(e,i){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return Z("0,0",e?.balance)}function J(e){return Z("0,0",e?.forecast)}function Yi(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return Z("0,0",e?.totalBalance)}function bt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return Z("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const i=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const i=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return Z("0,0",Object.assign({},e.forecast,{amount:i}))}else return Z("0,0",null)}function Ui(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const i=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function Zi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const i=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return Z("0,0",Object.assign({},e.totalForecast,{amount:i}))}else return Z("0,0",null)}const Ie=(e,i,n)=>{const{startDate:o,balanceType:r}=i,{dateFormat:{visual:l}}=W.getLocalizedStrings();switch(n){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.MMMYYYYFormat,e)}`:ft(r,n);case"quarter":return r==="default"||r==="default_with_percent"?`${W.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(o,l.QYYYYformat,e)}`:ft(r,n);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.YYYYformat,e)}`:ft(r,n);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ft(e,i){return W.getLocalizedStrings().downloadReport.additionalColumns.labels[i][e]}const eg=(e,i,n)=>{const o=i.length==0?e:`${e}_${i.join("_")}`;return n!=null&&n.trim().length>0?`${o}_${n}`:`${o}_${go(10)}`},Io=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
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 qe,bP as _e,ft as Ce,o as a,fC as bl,cf as We,c6 as ee,c8 as ce,cc as Me,l as Le,cy as xl,cw as wl,ca as Ue,c9 as De,fD as Te,fE as jl,fb as vl,fa as ke,cd as ge,ce as $l,g as Ne,e_ as He,Q as Ge,b4 as Ye,eY as Ze,q as Pe,fs as Qe,v as ye,m as Il,b1 as Sl,n as ae,dg as Ol,fF as Ll,f as Dl,fG as Fl,b2 as be,w as _l,cq as Cl,b0 as Nl,a$ as Pl}from"./index-
|
|
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 qe,bP as _e,ft as Ce,o as a,fC as bl,cf as We,c6 as ee,c8 as ce,cc as Me,l as Le,cy as xl,cw as wl,ca as Ue,c9 as De,fD as Te,fE as jl,fb as vl,fa as ke,cd as ge,ce as $l,g as Ne,e_ as He,Q as Ge,b4 as Ye,eY as Ze,q as Pe,fs as Qe,v as ye,m as Il,b1 as Sl,n as ae,dg as Ol,fF as Ll,f as Dl,fG as Fl,b2 as be,w as _l,cq as Cl,b0 as Nl,a$ as Pl}from"./index-BArxjGR7.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{W as Fe}from"./LabeledAddressValueField-Dh-tCiqd-CopPVibc.js";import{D as El}from"./LabeledCreatableSingleSelectField-BKgRYDeH-B8PL3IPN.js";import{Y as Ie}from"./LabeledDocumentField-C4DeMshZ-BYsIaoaw.js";import{P as Xe}from"./DocumentSecurityBanner-AGP6qXyp-D4qwdN0Y.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,U as x,W as M,Y as f,M as p,o as s,a4 as w,w as g,a5 as j}from"./index-
|
|
1
|
+
import{j as r,U as x,W as M,Y as f,M as p,o as s,a4 as w,w as g,a5 as j}from"./index-BArxjGR7.js";import{b as t,n as o}from"./vendor-CnQcJ2Lu.js";import{c as H}from"./SummaryCard-DWTm0Ibs-QlsWJnNR.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-BrSevhYt-Ce0u7oQu.js";const B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:v},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:B}],D=o(w)`
|
|
2
2
|
margin: ${s.sp5};
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
`,W=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
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,q 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,t 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,n as p,w 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,f as Ea,b2 as R,cs as Va,v as de,a$ as Ba}from"./index-
|
|
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,q 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,t 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,n as p,w 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,f as Ea,b2 as R,cs as Va,v as de,a$ as Ba}from"./index-BArxjGR7.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-CnQcJ2Lu.js";import{D as Xe}from"./LabeledCreatableSingleSelectField-BKgRYDeH-B8PL3IPN.js";import{Y as Ke}from"./LabeledDocumentField-C4DeMshZ-BYsIaoaw.js";import{$ as Je}from"./LabeledAddressValue-DbJlhAeE-D4ADpabq.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
|
}
|
package/dist/assets/{CompleteProfile-DTSAIKgF-WX_HRfP5.js → CompleteProfile-DmlS5V9g-MawzMorj.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-BArxjGR7.js";import{b as g,f as b,n}from"./vendor-CnQcJ2Lu.js";import{$ as Q}from"./LabeledAddressValue-DbJlhAeE-D4ADpabq.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
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
min-height: 100vh;
|
package/dist/assets/{ConfettiBurst-CjONFCxD-BbasMJ1h.js → ConfettiBurst-BjAeXOeV-B-f1O9Z0.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d1 as m,ab as l,j as a,aj as f,o as n}from"./index-
|
|
1
|
+
import{d1 as m,ab as l,j as a,aj as f,o as n}from"./index-BArxjGR7.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as qe,X as w,M as h,H as U,c5 as Ye,j as t,aV as _e,Y as b,c as Qe,bO as ae,bQ as ie,bR as se,ct as Ge,a3 as Ke,C as W,bo as Xe,o,cu as Ze,bs as k,bH as le,n as f,al as de,w as ce,q as Q,aN as Je,cq as pe,g as L,cv as me,cn as ue}from"./index-
|
|
1
|
+
import{u as qe,X as w,M as h,H as U,c5 as Ye,j as t,aV as _e,Y as b,c as Qe,bO as ae,bQ as ie,bR as se,ct as Ge,a3 as Ke,C as W,bo as Xe,o,cu as Ze,bs as k,bH as le,n as f,al as de,w as ce,q as Q,aN as Je,cq as pe,g as L,cv as me,cn as ue}from"./index-BArxjGR7.js";import{b as x,n as r}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 et=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:a,bankName:s,routingNumberOrSwiftCode:d,accountName:u,routingNumberOrSwiftCodeLabel:m,onDeleteClick:v})=>{const j=w(),p=h.getLocalizedStrings().spendManagement.billPay.vendorCreation,g=t.jsxs(tt,{children:[t.jsxs(H,{children:[t.jsx(q,{children:m}),t.jsx(Y,{children:d})]}),t.jsxs(H,{children:[t.jsx(q,{children:p.achDetails.bankName}),t.jsx(Y,{children:s})]}),t.jsxs(H,{children:[t.jsx(q,{children:a}),t.jsx(Y,{children:e})]})]});return t.jsxs(at,{size:j,children:[t.jsxs(rt,{children:[t.jsxs(Q,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(k,{title:g,placement:"top",children:t.jsx(st,{children:t.jsx(lt,{})})})]}),t.jsx(ot,{children:u??p.emptyPlaceholderString})]}),t.jsx(nt,{children:t.jsx(k,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(it,{onClick:y=>{y.stopPropagation(),v()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(dt,{})})})})]})},tt=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
4
|
gap: ${o.sp1};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a,X as me,d2 as pe,Y as te,gN as Je,M as W,_ as Te,K as He,c as et,a3 as Pe,o as t,C as d,a2 as je,k as tt,O as at,u as ze,bs as nt,cO as Ee,Q as V,g as X,fQ as Ce,v as ot,l as T,Z as Me,c0 as it,a1 as be,a as rt,eX as lt,c3 as ct,F as st,cz as dt,f4 as mt,c8 as pt,fD as ut,n as r,bo as ht,bm as Be,cW as gt,bH as yt,q as Oe,f7 as ft,e$ as Ct,a6 as bt,f8 as xt,cq as St,f9 as wt,fi as Dt}from"./index-
|
|
1
|
+
import{j as a,X as me,d2 as pe,Y as te,gN as Je,M as W,_ as Te,K as He,c as et,a3 as Pe,o as t,C as d,a2 as je,k as tt,O as at,u as ze,bs as nt,cO as Ee,Q as V,g as X,fQ as Ce,v as ot,l as T,Z as Me,c0 as it,a1 as be,a as rt,eX as lt,c3 as ct,F as st,cz as dt,f4 as mt,c8 as pt,fD as ut,n as r,bo as ht,bm as Be,cW as gt,bH as yt,q as Oe,f7 as ft,e$ as Ct,a6 as bt,f8 as xt,cq as St,f9 as wt,fi as Dt}from"./index-BArxjGR7.js";import{n as o,b as p}from"./vendor-CnQcJ2Lu.js";import{x as $t}from"./LabeledControlledCheckBoxField-C1XX6rxl-C9A1O0qF.js";import{v as kt}from"./ChargeCardUtils-CXwPL8kw-UEsImlqI.js";import{X as xe}from"./CreditCardPaymentPlgSection-xRmYJOBa-BDTGo5w9.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 ae={largeLabelWidth:new d(120,120,160),navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(r[3],r[6],r[8]),containerPaddingRight:new d(r[3],r[6],r[8]),reviewContentWrapperPaddingBottom:new d(r[5],r[8])},de={pageTitle:new V("h6Regular","h5Regular"),integerAmountInput:new V("h5Regular","h2Regular"),decimalAmountInput:new V("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:At}},common:{edit:vt,labels:Se,currency:we,navBar:{back:Lt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:It}},chargeCard:{payEarly:ee}}}=W.getLocalizedStrings(),Ft=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:c,cashbackInformation:f,paymentSourceInformation:v,creditAccountInformation:y,debitAccountInformation:b,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:D})=>{const m=me(),P=ze(),j=pe().analytics,[M,L]=p.useState(!1);p.useEffect(()=>{e.error!=null?L(!0):L(!1)},[e.error]);const k=ae.largeLabelWidth.value(m);return a.jsxs(a.Fragment,{children:[a.jsxs(_t,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:a.jsx(nt,{title:Lt,enterTouchDelay:600,placement:"bottom",children:a.jsx(Zt,{"data-testid":te("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&j.trackCardsPayEarlyFormClick(g,c,f,"Back",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},v,y,b),x(!1)}})})}),a.jsx(qt,{windowSize:m,children:It.reviewAndConfirm}),a.jsx(Tt,{children:a.jsx(Ee,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:de.integerAmountInput.styleObject(m),decimalStyles:de.decimalAmountInput.styleObject(m)})}),M?a.jsx(Ot,{children:a.jsxs(zt,{children:[a.jsxs(Nt,{children:[a.jsx(Yt,{}),a.jsxs(Et,{children:[a.jsx(Mt,{children:e.error?.title}),a.jsx(Bt,{children:e.error?.message})]})]}),a.jsx(Ut,{children:a.jsx(Vt,{"data-testid":te("close-error-credit-card-payment-review"),onClick:()=>{L(!1)},style:{width:t.sp3,height:t.sp3,color:X.heroLight}})})]})}):null,a.jsx(Xt,{windowSize:m,children:a.jsxs(jt,{children:[a.jsx(Ce,{label:{label:Se.transferFrom,width:k},text:a.jsxs(De,{windowSize:m,children:[_e(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Pt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Wt,{}),a.jsx(Ce,{label:{label:Se.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?ee.creditLimitReset:ee.creditLimitUpdate} ${T.zeniDate(T.getNextNthWorkingDay(T.dateNow().toDate(),[0,6],3).toDateString()).format(At)} ${ee.business23Days}`,additionalInfoLabelStyles:{color:P.colors.hero,...ot.smallRegular.cssObject},text:a.jsx(De,{windowSize:m,children:Te("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:we.currencyCode,currencySymbol:we.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(Pe,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:ee.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:vt,onClick:()=>{i&&h&&n&&j.trackCardsPayEarlyFormClick(g,c,f,"Edit",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},v,y,b),x(!1)},style:{minWidth:94}},primaryBtn:{label:ee.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},_e=(e,i,h)=>{if(i==="")return a.jsx(ta,{});const n=e.find(c=>c.id===i),g=e.findIndex(c=>c.id===i);if(n!=null){if(n.accType==="depositAccount")return a.jsx(Ht,{isOptionSelected:h,children:a.jsx(ea,{color:ft(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?a.jsx(Qt,{src:Rt(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(Gt,{isOptionSelected:h,children:a.jsx(Jt,{})})}return null},Rt=e=>e.base64!==void 0?`${Ct}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Tt=o(Be)`
|
|
2
2
|
color: ${e=>e.theme.colors.primary};
|
|
3
3
|
padding-top: ${t.sp3};
|
|
4
4
|
`,Pt=o.div`
|