@zeniai/web-cockpit-ui 1.15.0-qa → 1.15.1-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-DYlcHRQe-N6WoPN61.js → ACHDetailsPage-CUzXxtOD-D58ed7uT.js} +1 -1
- package/dist/assets/{AIPerformancePage-DpXZ7sco-hH2Elv0n.js → AIPerformancePage-O2oT7VD7-B6QMOBUy.js} +13 -13
- package/dist/assets/{AccountInfoPage-BEOrrVQS-DHpgF3pM.js → AccountInfoPage-B6jxAqA6-BUFslhTv.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BJkLJK6O-B_Tnne4L.js → AccountInfoPageContent-Dm4_RVtp-7_DDYrUM.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BeLLlH_Y-D0MnjBOA.js → AccountLockedInfoModal-4gi6evfx-WlzE3tch.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-D2Hx_l3u-XPPaB5Cd.js → AccountReconDetailsDrawerPage-Cm4KEIyT-DvN83q1j.js} +3 -3
- package/dist/assets/{AccountRow-B0gU16A_-CQ1wi8lx.js → AccountRow-B16HgkVQ-dG_dWaCL.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CuLhbb_W-BGljAwv1.js → AccountsPromoCardStack-D5OgsEYb-3g8gXWBP.js} +1 -1
- package/dist/assets/AddAddressForCardDrawer-Cw6wTXEm-Ne9lwqPK.js +6 -0
- package/dist/assets/{AddToWalletPage-DNPLnpTq-DebEsPxP.js → AddToWalletPage-vXWBje7k-B9_XOYgG.js} +4 -4
- package/dist/assets/{AgingReportsPage-Bff4u7T1-DokKeN7f.js → AgingReportsPage-CmzapJ6B-B4fRPdaL.js} +3 -3
- package/dist/assets/{AllUserItems-D8zdAu_1-CjPIl0we.js → AllUserItems-CW-BAUK2-B9Q1lPJb.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-2NsAj3gO-DhtiO6V-.js → ApAgingDetailPage-DBCM7hZZ-ChVResPi.js} +5 -5
- package/dist/assets/{AppBasePage-Uyk9GOud-9AU3007_.js → AppBasePage-B3uZsUDM-CkKVhlEN.js} +1 -1
- package/dist/assets/{AppDrawerContent-RX7rx40V-B20u2QRt.js → AppDrawerContent-D4EVpqHP-BynJPN1Q.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-BKxa78xI-D8tM29nk.js → ApprovalRulesSettingsPage-DTLJUdYp-C8DjXSqL.js} +1 -1
- package/dist/assets/{ArAgingChart-BxTkvrC9-vqa4Ip0S.js → ArAgingChart-BJ8nRdT6-PCsSRezt.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-CnUgFF1M-ClG1FePi.js → ArAgingDetailPage-hd2ALORD-DPaGaG4h.js} +5 -5
- package/dist/assets/{AttachmentView-zHGhIkWo-BwZ5kbBN.js → AttachmentView-2FZ6X1gL-Cy8tYEtq.js} +1 -1
- package/dist/assets/{BankAccountSection-HRSyjIxV-brHRV4cr.js → BankAccountSection-BbX4r1dP-BVn949x0.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CNusQFRM-DBV3XkOz.js → BankAccountWarningSection-CqlrCLSb-4sdBnqih.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CzumYsEx-DgpLYCV2.js → BankConnectionsSettingsPage-DLeiSryp-DwwrFPU_.js} +1 -1
- package/dist/assets/{BillDetailPage-CgCMZFw1-BtheJRmU.js → BillDetailPage-l0WIOXCJ-DfE-sU4P.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DnhdBw3a-CssFiyEt.js → BillPayApprovalRuleDetailPage-BOMCy57E-CAzd0WOM.js} +4 -4
- package/dist/assets/{BillPayApprovalRulesPage-S80WUW0f-CH3tnfj7.js → BillPayApprovalRulesPage-D_iQkfQr-Dlin1Cm9.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DOEbuNgH-BVCaGPCE.js → BillPayPromoPage-Dsl0YvUE-DF_BWBKa.js} +9 -9
- package/dist/assets/{BillPaySetUpPage-Tb-gBoFT-Cr_u2hmC.js → BillPaySetUpPage-MLf77bPI-BQQY77ue.js} +3 -3
- package/dist/assets/{BillingSettingsPage-ZupDcNHz-jCEOKC-t.js → BillingSettingsPage-n1PkJEDe-CIU_V4L-.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-CJrUtHKz-De-Ch5vF.js → BillsBulkReviewDrawerPage-C_4lLm2g-CagoY_n4.js} +1 -1
- package/dist/assets/{BoxItem-42doFhpg-6FkeU-XY.js → BoxItem-CZdVWyVJ-Ck7WXLSC.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-De9zCAm7-BRa-IzFb.js → BusinessVerificationPage-DKTSnhnQ-CiETQcAD.js} +1 -1
- package/dist/assets/{CardNumberSubText-C6jdBRC2-BAV9QZ1r.js → CardNumberSubText-BhtdU0IQ-BBiDBBhs.js} +1 -1
- package/dist/assets/{CashbackDetailPage-B2drd1Nz-B7ge7B30.js → CashbackDetailPage-BL-JN6N2-DM7Co55u.js} +8 -8
- package/dist/assets/{ChargeCardDetailPage-bk-pzoDR-CPX1kpm2.js → ChargeCardDetailPage-DeUmuiMY-Dftn0md6.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DlI8ZfB0-Cpt1f1gl.js → ChargeCardListPage-B2OEzCZI-DRTpob3Y.js} +1 -1
- package/dist/assets/{ChargeCardListTable-CooASbVZ-hxs2z8Oj.js → ChargeCardListTable-BwYAxG4d-BDrITjcg.js} +1 -1
- package/dist/assets/ChargeCardPaymentHistoryPage-COWdn2l7-D7wLS9yc.js +565 -0
- package/dist/assets/{ChargeCardPromoPage-DBSmL-ms-BSCR0oth.js → ChargeCardPromoPage-TkHihj_n-DsNKfZLq.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-cou3N3Iv-BY-BjAbF.js → ChargeCardSetupPage-CkonrAnT-D4zZH8iB.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-Z05M_t51-CJESgOzz.js → ChargeCardStatementsPage-DVgAcNNC-DlapdY_k.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-B-bTb9ct-DvMUZiEi.js → CheckDepositDrawerPage-DV7strdp-DIjE0Er3.js} +1 -1
- package/dist/assets/{CollapsableReportTable-DLOi0feI-CE3JiL1Z.js → CollapsableReportTable-BS7TgK8B-Ck1A0h-X.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DVpqCb72-DEQPR9vE.js → CompanyOfficerDetailsSection-BotE5oj4-BAJaZgbn.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B8PLT6MG-Dcf1pgW2.js → CompanyPassportCard-Bx4KhQfs-Cq5ggOmg.js} +2 -2
- package/dist/assets/{CompanyPassportPage-CQZPgrNF-CNCT66W7.js → CompanyPassportPage-i1SEs7VJ-Djluu3GS.js} +1 -1
- package/dist/assets/{CompleteProfile-fNSWTbef-0MuTdOY6.js → CompleteProfile-DWOv7odD-C_i36-ce.js} +1 -1
- package/dist/assets/{ConfettiBurst-B6ej_xoO-DABv3Toa.js → ConfettiBurst-D52CuNQL-H3h7bAw9.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BO4_TNWg-BypvEQZA.js → CreateOrEditVendorPage-9LgI-Wd0-BZGgNM2M.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CsHjU-sm-BiBB7qBe.js → CreditCardPaymentDrawerPage-wHK6Ds5I-BlFWnrY1.js} +1 -1
- package/dist/assets/{CurrencySelectField-DsZTOj_T-Cs5B3am8.js → CurrencySelectField-CbGyQ8Yq-BBTidwoM.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Cvdehiay-C2p1e_hG.js → CustomerOnboardingActivationPage-LNgj0BYj-DDGYdiCm.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DLdgYP_E-YLcbGvSV.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DrfNm65u-Bfcf5x9y.js → CustomerOnboardingDetailPageSkeleton-BF484X8E-CaE39Z82.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CtIWYEfR-BBG89Eio.js → CustomerOnboardingNoStepsPage-Dri4v3Rf-SMHqZamP.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-Db6sGSGl-Bk2dnzqa.js → CustomerOnboardingPage-BkdhcwN8-D99zerXB.js} +1 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-CDJfucTI-BVV4jNqa.js +202 -0
- package/dist/assets/{Dashboard-cbXIPzMy-DdVTFva6.js → Dashboard-w2AGQi2P-DrVf9Yya.js} +55 -55
- package/dist/assets/{DashboardReportPage-Pc0G2Tok-4PwOgMuS.js → DashboardReportPage-NzF6nutN-DSZitKtw.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CSzhyK4K-_4MhVp6Q.js → DashboardSidebarBackgroundAnimation-vcuSFRHQ-CXXDOfjW.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-XvCjkHDS-CkK92x11.js → DepositAccTransactionItem-SRWW7dWo-Bq8glEON.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DqPIPHi9-CCs50XhS.js → DepositAccTransactionListPage-BSq-FxKT-D5HpKscp.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DjUvG0tD-BaRIU1gf.js → DomesticWireDetailsPage-Daor0MDI-BzIX5Sll.js} +1 -1
- package/dist/assets/{DownloadOverlay-C7r6PAam-3HWUFxkI.js → DownloadOverlay-DkSROLX2-BV0uInlq.js} +1 -1
- package/dist/assets/{DrawerPage-BEV7nWrL-B7QOMKDy.js → DrawerPage-BnMCcEWw-BXOkrI5R.js} +9 -9
- package/dist/assets/{EditPeoplePage-BnQqStEx-VWNAEvPn.js → EditPeoplePage-Ld339aav-BKidG2ge.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DLjRDR48-B7QYsuXV.js → EditReimbursementDetailPage-BaMG1YJG-BZAQQMK3.js} +1 -1
- package/dist/assets/EntityDetailPage-DRZiqaCb-B_QVK0o1.js +18 -0
- package/dist/assets/{EntitySummarySection-C361-4tS-CWgr5a0w.js → EntitySummarySection-Bs0NywbK-BzG0U_qN.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BLvAzAmO-DBDaw-GQ.js → ExpenseAutomationOverviewPage-B_-wUXCx-Q7Nf_H07.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CE_qMXSG-jdpSxqgy.js → ExpenseAutomationPage-CG1Hpwz8-CW8z-7iO.js} +1 -1
- package/dist/assets/{ExpressPayPage-CDowSjHC-mXCHoghD.js → ExpressPayPage-CEf0O3S_-C7xNk40H.js} +7 -7
- package/dist/assets/{FeaturePreviewPage-DsJEfObK-XGUmmika.js → FeaturePreviewPage-7G9DSgAA-dIRq9Ned.js} +1 -1
- package/dist/assets/{FollowStepsSection-h449vQkQ-BE334Aav.js → FollowStepsSection-CoXcJ6WL-BDHFkDzZ.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DGOKRsKI-DaVDGgFW.js → GlobalReviewListPage-BSfJybtY-D-EekdXE.js} +1 -1
- package/dist/assets/{InformationCardStack-xhdujEcL-CIVbhCcM.js → InformationCardStack-DnoAMdjH-BkgD0Khh.js} +2 -2
- package/dist/assets/{InsightsCardStack-zRynyTFj-B4MVLR6S.js → InsightsCardStack-BLtip0dt-CdpS0MPm.js} +2 -2
- package/dist/assets/{InsightsSection-C4fMfxQ4-BrCCIPD4.js → InsightsSection-26UEfz7s-DvD8Ccwt.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-fqQsGUmw-DbNOn2Dq.js → IntegrationsSettingsPage-QVOqOc9I-BQQ4M8i8.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-CIMxKADX-vQfJlxQT.js → InternationalWireSwiftDetailsPage-B7UVdQjs-Dxjq2-if.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-DpmSzzre-gQwVFtnD.js → InternationalWireVerificationPage-Cvita0lc-B390_mEJ.js} +2 -2
- package/dist/assets/{InviteFormPage-C7fxnyMS-DMg6Plkf.js → InviteFormPage-ptg2-Do2-Dsr3cxPP.js} +1 -1
- package/dist/assets/{InvitePageListView-ktOXziSw-NBl32MK2.js → InvitePageListView-CoCiU_RJ-DlHeTkam.js} +20 -20
- package/dist/assets/{InvitePeoplePage-C_4adNch-C4PoOeq9.js → InvitePeoplePage-CIiwEl_L-BEUpkDfI.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-W4vdQGvo-FT_ZQp4c.js → InvoiceUploadSection-by1gHnS2-ByjzglAY.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CdV757XH-D-R3fw3h.js → IssueChargeCardPage-CawHdTL3-Mn0Xu6jy.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Ce_wDml5-C7mLpC47.js → LabeledAddressValue-BVpOlAt0-BM8gI0N5.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BrYbXck--Bam2jwZr.js → LabeledAddressValueField-BW6ytr8f-DmYyMrEv.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-f2c-AeS4-CmYbdyel.js → LabeledControlledCheckBoxField-DEaBzW9R-59_aD_t9.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-BLOMdq_H-Mb0TF8y4.js → LabeledCountryMultiSelectField-DOEcKGdZ-O8xmxgl_.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BWuogpe6-DHwshDD5.js → LabeledCreatableSingleSelectField-Bsowq6Ia-CpyK3LNE.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Ch2zD7s7-GyTO4utg.js → LabeledDocumentField-DHqxzbx7-DKNafkiA.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BA8tzPzQ-nw_8EdfB.js → LabeledDropDownFormattedTextField-C_2HymZs-DpANtqUG.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-CA9PUCf3-CwZMJ8IS.js → LabeledMultiSelectField-wuzYNgjQ-D8K8tQ-i.js} +1 -1
- package/dist/assets/{LabeledText-D7eLbH80-CyIybQum.js → LabeledText-DMjMKupg-DYP6gFxm.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-DNsRKy1l.js → LabeledUserSingleSelectWithSubtitlesField-D2PQRKp0-CAFuEck_.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Cte6kRTw-C4oEoOa3.js → LabeledZeniRolesDropDownField-C2WL6H1u-BXDtctub.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-DicS5kKg--q-QNpuk.js → LinkJETransactionPage-6wvu7KQx-BKOAennG.js} +1 -1
- package/dist/assets/{LockCardPage-DRYg_fxU-C51Kp9sB.js → LockCardPage-DHjkslVx-BLTQi4Ro.js} +1 -1
- package/dist/assets/{LowBalancePopup-BJfagMN7-hy_u1ST6.js → LowBalancePopup-IPPewOnk-C3ft7dAK.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-BQvuNI4u-DgnKjMFk.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BEr-7K3J-BdD6RXkL.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DliPDETx-zEl4JPNd.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-BRWymdWH-0en44-MJ.js → MagicLinkSuccessPage-0Pn_6wi4-BDYzvhnJ.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-D5ORaO0D-DS4-FSzF.js → MagicLinkTitleSection-zMEqv8xp-Dw1lipYQ.js} +1 -1
- package/dist/assets/MailingDetailsSection-BRCMsb6d-Bg6C6Qx3.js +21 -0
- package/dist/assets/{Menu-C9v-W9TY-CdQPsVny.js → Menu-CjpiRi32-CBwxThCE.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-C4YJleyg-BLn_Y8jS.js → MyBankConnectionsSettingsPage-DsuI81Dg-BZvQVl9M.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-D-6TnbYs-zrVoCahb.js → MyPendingActivationChargeCardListPage-BP2ZNfJQ-C1IGZ0Aj.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BMNBcdq8-XHX9dn0K.js → MyProfileSettingsPage-Bx776Bw1-B3dkfEvc.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Cv7tOmjd-B4VS8rMs.js → NavBarWithPicker-B7KOipTP-BRApBTO0.js} +1 -1
- package/dist/assets/{NavigationArrow-DAs7ECFZ-ChajxXvo.js → NavigationArrow-qaYGOFR3-BsTNc95E.js} +1 -1
- package/dist/assets/{NavigationDots-DISWi4Mq-BRitr2tA.js → NavigationDots-U7wL0ya4-Br1fZ1mY.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DGFtrDg1-FJKw60xa.js → NewGlobalMerchantPage-BMLg6RYp-BRiqVwVI.js} +1 -1
- package/dist/assets/{NoDataChart-gfqauMvY-B8_e9uYZ.js → NoDataChart-DoN6Mneo-tV8Dt3om.js} +1 -1
- package/dist/assets/{NoDataTable-C1_gqVi7-D_83KmNf.js → NoDataTable-BMDDs83M-Dpk0AfuR.js} +1 -1
- package/dist/assets/{NotFoundPage-CdWhiWjz-mzVSL1fM.js → NotFoundPage-ys6HcZUO-byf07x0N.js} +8 -8
- package/dist/assets/{NotificationSettingsPage-C4SZ6Qwg-DTMMSj7i.js → NotificationSettingsPage-Cfrj3b7B-DQREI7pG.js} +1 -1
- package/dist/assets/{NotificationsListConfig-B-g9kb6x-DKVolf1S.js → NotificationsListConfig-Cqcn0C6L-mVPCNJk6.js} +1 -1
- package/dist/assets/{NotificationsPage-jxpX3iRG-STxMFmZT.js → NotificationsPage-Bri7Dj80-Cv5FRQtl.js} +1 -1
- package/dist/assets/{OpExByVendorPage-B13tAq03-A6OvBVDB.js → OpExByVendorPage-Dwk6JAu7-BDuhx0f7.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-CFoauQdP.js → OverlayContainerPage-Daz3A7cI-CNivODsb.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D3kcPKd0-hdRldmCP.js → PandLWithForecastPage-D9muoIzS-BHKR537x.js} +2 -2
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DjdhL9mT-CcdqeHrg.js → PaymentAccountSetupBillingAddressSection-BcQ07YZL-sTtrymnZ.js} +1 -1
- package/dist/assets/{PeoplePage-Du_TRX4h-BB1Y4Qgl.js → PeoplePage-BZwxMiLM-5s0-HkTL.js} +13 -13
- package/dist/assets/{Preview-CSeZ_uBx.js → Preview-mA1nVDX3.js} +1 -1
- package/dist/assets/{ProductsCarousel-y6q9BbqK-DHkyY2SN.js → ProductsCarousel-HFHMMFnQ-DrHOVGTY.js} +1 -1
- package/dist/assets/{PromoBaseCards-CLQMN7aT-Cm9ov18k.js → PromoBaseCards-Bwm7huaB-m2dOzdVj.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-R4ZWjJsY-yehsPaVs.js → QBOConnectionDialog-B5v60lo1-GNrkjfxe.js} +1 -1
- package/dist/assets/{QBOSetupSection-D--nxfIh-BfHeDAX-.js → QBOSetupSection-BFxjIzV1-B2t1VavS.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-OXenWhiy-BtbNuGS1.js → ReimbursementApprovalRuleDetailPage-D7eJT6hf-BQOWuUEe.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BJaSXRQF-BYa_2_jk.js → ReimbursementApprovalRulesPage-B6WJ19jK-CKNTvHH7.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BeFEzgmP-Du11yvbE.js → ReimbursementDetailPage-CEyFEPK5-BstF-oGE.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-C0sHIJm4-Cok6Jld9.js → ReimbursementPromoPage-BjhlxlPR-BZ1GzMRv.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-C85Q6ZnB-jjYvs1qr.js → ReimbursementSetUpPage-pC4KuigM-BDlDJUML.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B5RzRA4c-n3r_bP4u.js → ReimbursementsBulkReviewDrawerPage-CucXnBt6-CAc1E2XO.js} +1 -1
- package/dist/assets/{ReloadCard-BT0lSFUP-CbQzBMR7.js → ReloadCard-DhRbLcVA-DIQafdWZ.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-rl6XGWA_-xSsBTXCn.js → ReportTableViewSelector-ByxUIrcT-BjUKZAAK.js} +1 -1
- package/dist/assets/{ReportsPage-DV0bbi_D-DDBThisJ.js → ReportsPage-e1xmk9Ua-DWkV6LH_.js} +5 -5
- package/dist/assets/{RevenueChart-CxvHfkxr-CcXHujZ-.js → RevenueChart-C7uaOhqz-CyB_o3bQ.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CX2XB44j-XXnntYa1.js → ReviewDetailsPage-Dk0Rw7L_-B6ijKV2H.js} +1 -1
- package/dist/assets/{ReviewOverlay-DdOo3pcK-BLKkY3na.js → ReviewOverlay-Bthl69qw-RmWq0Cob.js} +1 -1
- package/dist/assets/{RoleWithToolTip-C08wfnGb-Dt8pf3rP.js → RoleWithToolTip-New3P2vC-2KCZppVG.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BmZgiTVc-BdlieAUs.js → ScheduleDetailsFixedAssetsPage-DiwkB2J--BPJp47yZ.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BqX1EZGE-Dm5cTF4H.js → ScheduleDetailsPage-BLc828ST-CP2yCdiU.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DU3dXX6V-DgRTw2P3.js → ScheduleSequenceTable-CEQZEbUs-BdHNsPry.js} +1 -1
- package/dist/assets/{ScreenRoutes-C5B2nm9d.js → ScreenRoutes-D_sWKkhc.js} +1 -1
- package/dist/assets/{SetUpAccountSection-Clz60vjw-BPy-vTcv.js → SetUpAccountSection-CywFKgZo-MmKR4ndQ.js} +1 -1
- package/dist/assets/{SignIn-B79R5ayU-DjqX3_i4.js → SignIn-D7PmDE-R-DymRL_3M.js} +12 -12
- package/dist/assets/{SignInScreen-D15H-ke6.js → SignInScreen-C-VG_lKe.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-C3gJ8vag-BNKNPoS5.js → SpendManagementListViewPage-DJgNAGhp-JXA21DLB.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-DmCZhFWY-BHCgFbM_.js → SpendManagementPerTabPage-B_muN4XH-u8KoBsHd.js} +1 -1
- package/dist/assets/{SpendManagementSection-mtTZeiX8-DVibaVnB.js → SpendManagementSection-BO--0F_T-COrpCsmV.js} +1 -1
- package/dist/assets/StatementItem-_50yBwO1-CwjTPUgJ.js +31 -0
- package/dist/assets/{StatementsPage-DgoXqABR-DiOSDFY9.js → StatementsPage-DkcgOLaa-BdVtg5cn.js} +1 -1
- package/dist/assets/{StatusSwitcher-DRDFuzoj-B6IPcags.js → StatusSwitcher-Bcqhq2ht-tjRFz3FC.js} +1 -1
- package/dist/assets/{SubTabSwitcher-Bj1N3zLn-wd-JdCXJ.js → SubTabSwitcher-BNSMaUoP-C0dI-kdw.js} +1 -1
- package/dist/assets/{SummaryCard-BNrPt21W-BJL8pM34.js → SummaryCard-DUTikTiQ-CorF8AqM.js} +1 -1
- package/dist/assets/{TaskManagementPage-svW7FNT3-ChtBYzDC.js → TaskManagementPage-K2ahivqx-Cw8lnZhf.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-wio5OjI3-Cq1fKE5o.js → TimeRangeSwitcher-CaV1qK_v-9kKZ6AfJ.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-234cbGUX-l5LDfwJD.js → TimeframeSwitcher-COkEJy3J-45wKe_Sn.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-B65LibQx-CgfT2t3j.js → TimeframeSwitcherWithToggle-CPP1tWQ_-D4EHb91u.js} +2 -2
- package/dist/assets/{TopExCard-DFm0V6Sa-DokPd6v3.js → TopExCard-CLkfO6zN-v91Jdaeu.js} +1 -1
- package/dist/assets/{TopExDetailPage-B4UamIS--aRxDpGzz.js → TopExDetailPage-CUoODDhA-zH5Xy9H2.js} +4 -4
- package/dist/assets/{TransactionDetailPage-BiGPVM2O-BpiezkYk.js → TransactionDetailPage-BTonMpH2-DgSPoDVR.js} +1 -1
- package/dist/assets/{TransactionList-BQ2dvALf-BGLN50Vu.js → TransactionList-B8eL6jhA-Di9L9RKc.js} +1 -1
- package/dist/assets/{TransactionListBig-Ca4yYTqY-B4eSCAFS.js → TransactionListBig-BI0Egbwq-BwzSPZzZ.js} +1 -1
- package/dist/assets/{TransactionListPage-CaSfmS5A-CVPK2Hv1.js → TransactionListPage-DxGLszcx-DAoYnm1i.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-CH7qHDUF-DSGG2e4N.js → TransactionVendorDetailPage-BnqP7rIa-BU85_A7u.js} +1 -1
- package/dist/assets/{TransferDrawerPage-5IgzdfVN-BEmdtR6B.js → TransferDrawerPage-BvKebmux-o6Yl4bGU.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CyMGJE8x-Cnr8PPbr.js → TreasuryOverviewPage-DqlUffnH-Bn5k5ejI.js} +27 -27
- package/dist/assets/{TreasuryPromoPage-DQabp_BI-CofJlBRP.js → TreasuryPromoPage-DqZE9SWj-Bp0vqbWD.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DyJbkTPX-DN_9QZBI.js → TreasuryStatementsPage-Cyj4xmLP-DxZc3Yqs.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BSIqzP7E-CKJ2Zwku.js → TreasuryTaxLetterPage-04gxKt0a-DDLLJmzC.js} +2 -2
- package/dist/assets/{TrendChart-DLlQzxzM-CMELiyuo.js → TrendChart-Cb8wnBqS-Di_U3EIl.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CjGbUTLS-CD0r90qi.js → TrendWithTransactions-_49jEzFf-D4MyPHxb.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-CgJuXRnT-D10sq8Hj.js → UncategorizedAccountsMappingPage-WTwSitI6-BqjGQcpf.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-Dew9WP2L-DgxPeDIO.js → UnitIntegrationPage-C3HFSJ9I-BVEgdEbm.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CoO-S_pc-CZO5yc-K.js → UploadAdditionalDocumentOverlay-UdsrwN9K-D09XF6PT.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-2JZx7Ouz-C9W1wY0X.js → Vendor2FAPopup-BS-3oZPR-C_3L-M1N.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-DBr7crZ5-FdMIuie9.js +1 -0
- package/dist/assets/{VendorDetailPage-DcpigP-V-D-_BNkKi.js → VendorDetailPage-CJQeB1km-B4OkDlMh.js} +5 -5
- package/dist/assets/VendorDomesticWireDetailsPage-BRIKuuUP-j1Nnt0f3.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-BK_AfMvG-rf6ZEr64.js → VendorFiling1099EditablePage-C2zwrfg_-BSkCYiG1.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-BnGpb03v-DxDzB5jn.js → VendorFirstReviewPage-BeDtBSt0-DLLC2Nix.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-Bs_MIbDV-B5cqs8xU.js → VendorInternationalWireDetailsPage-BVI-FIhY-DxEIS0E-.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-D4H4XkkY-B3GBnsRt.js +1 -0
- package/dist/assets/{VendorsAccountsSection-V7IwNhkN-dPhmanP7.js → VendorsAccountsSection-DlO_YtSs-DR5OkKrn.js} +1 -1
- package/dist/assets/{VerifyDevice-Dc3oeJbw-BcIqlUjJ.js → VerifyDevice-CVr0FwHa-DAB6OPBb.js} +1 -1
- package/dist/assets/{VideoPlayer-XU1YwohK-COVMQXUR.js → VideoPlayer-HL-oU9Ri-BnQLsV6M.js} +2 -2
- package/dist/assets/{VideoPopup-BKLcIVcV-DiByU4uF.js → VideoPopup-Dw57i43Q-BXsiVF5S.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-DE6hNSem-BA-r__o8.js → WarningsDrawerPage-DOFirhc3-Ch_HhDH0.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-B3txxml4-KqRJBVU1.js → ZeniAccountDetailPage-ByCgz534-Dsg1GtqQ.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-D8AbqSI--D2iDUh8i.js → ZeniAccountListViewPage-yATacDeU-5emCk5r8.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CNM-e6b3-CeioNZaq.js → ZeniAccountNavBarPieces-Yb3HCUq4-CdqCHII0.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CcZOtFpv-CyZSL8CM.js → ZeniAccountPromoPage-4iBPGLEt-CS6doMp4.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-COA09GMm-teRqXGAI.js → ZeniAccountSetupPage-bdXuLfgB-Cy2PUDIb.js} +1 -1
- package/dist/assets/{ZeniCopyright-DqbjGQWk-CiqjxJmF.js → ZeniCopyright-C_Hgn3Qx-CHqYLJwq.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-NJ7GeTlf-CnXup6Bu.js → ZeniTransferAmountSlider-DBhodWDh-BViJCc8g.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CF63trjm.js → add-to-wallet-DgdBD8_G-B2xhCimT.js} +1 -1
- package/dist/assets/{analytics-D0z7Cz17.js → analytics-CO_4s2X8.js} +1 -1
- package/dist/assets/{analyticsHelper-CLN6SVsb.js → analyticsHelper-C-V4F33Q.js} +1 -1
- package/dist/assets/{analyticsHelper-C2PAija--ChGnlyOF.js → analyticsHelper-DTl4FgRU-DCg1Wj_c.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-Cun1Cxd1.js → arrow-south-east-round-PEovUgvH-BLOUsrLT.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DPk-N0wE.js → auto-transfer-rule-mbafm5D3-DXWlGTms.js} +1 -1
- package/dist/assets/{chartTypes-B9jQTJLQ-COjB_e58.js → chartTypes-wLUiIPlP-CGvYnBXb.js} +1 -1
- package/dist/assets/{commonDimensions-BgvFMAEM-CvQs602P.js → commonDimensions-DGz_YafU-DaJiwvC8.js} +1 -1
- package/dist/assets/{commonTypes-PtDfk70--Bx1ZBTCB.js → commonTypes-Gv0Fff59-KWmxkMG2.js} +1 -1
- package/dist/assets/{constants-DleDZ7Hr.js → constants-B80Lbuf7.js} +1 -1
- package/dist/assets/{core-9PMMelIA.js → core-D7_k1EhP.js} +1 -1
- package/dist/assets/{dash.all.min-ClWxXI22.js → dash.all.min-D84aFlTu.js} +1 -1
- package/dist/assets/{detailCommon-BjRXEZFj-D5rvTVmU.js → detailCommon-C-kv1ST5-00YEtv_m.js} +6 -6
- package/dist/assets/{downloadPdf-ZSABdzxr-DOm7vdU6.js → downloadPdf-a0dx3Bka-DXudTOPx.js} +1 -1
- package/dist/assets/{empty-Bp9uyDV_.js → empty-BK-FM9Fc.js} +1 -1
- package/dist/assets/{empty-D5Zf29Ub.js → empty-D7ZL3ibO.js} +1 -1
- package/dist/assets/{epic-Di7g1fbQ.js → epic-BKSpf58y.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-m0hJlqL5.js → gift-box-Cmt9OgIZ-BvDbzpBs.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-cg6FAACa.js → graphic-no-data-l-DU4J8fDt-DnBDJsPD.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-qDT1cGx5.js → graphic-no-data-net-burn-l-CzmycA0m-D8mbIWvo.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DFhtOw8z.js → handshake-BPg58FML-B-s0K2Gk.js} +1 -1
- package/dist/assets/{index-DNxMom6d.js → index-AC1SIzUs.js} +1 -1
- package/dist/assets/{index-DW6fMwk4.js → index-BCqMlt2D.js} +1 -1
- package/dist/assets/{index-4hZvJwkO.js → index-CIdXBggf.js} +1 -1
- package/dist/assets/{index-0WIxY_w_.js → index-CN_MjJna.js} +1 -1
- package/dist/assets/{index-CbXRL6aP.js → index-CocAByQY.js} +1 -1
- package/dist/assets/{index-DhfemY__.js → index-qaSB49F0.js} +9 -9
- package/dist/assets/{index-BLOmj_st.js → index-yGtk6ceJ.js} +1 -1
- package/dist/assets/{lexical-CaQwXIc3.js → lexical-CGMN4tXG.js} +1 -1
- package/dist/assets/{liveblocks-48Yy2aTy.js → liveblocks-BmXYR5uO.js} +1 -1
- package/dist/assets/{lottie-ChwWMuYN.js → lottie--pGIoexZ.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-Dn79CwqB-DWPPY5_g.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DCsXPZ77-D8Vbpi-J.js → mapSectionWithAcOnlyToTreeNode-DXbOFz3E-BdYTpUAO.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-D7hBnjRr-B3iPFPg7.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-q_WorOhv-w4sqAGav.js → mapTimeframeBalancesToTreeNode-CQWxQdJu-UtXiI9zI.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-ph17cvaS-DS1-lnZY.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-pc7XxKyQ.js → mapTimeframeHeaderLoadingInProgressToTreeNode-FwPcTyoF-D6D_67kw.js} +1 -1
- package/dist/assets/{mui-snKYaegN.js → mui-Fyk6sRCR.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-D1nl1r9M.js → page-detail-CWX5S47F-CTsT95lG.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-BY9nqKUM.js → radio-default-CiSgisfh-DyFeMuig.js} +1 -1
- package/dist/assets/{react-B2deW7HO.js → react-89jLopxj.js} +1 -1
- package/dist/assets/{react-CiQEdtzT.js → react-8lAMKDVs.js} +1 -1
- package/dist/assets/{react-C-MrqhIX.js → react-CZ_9akaZ.js} +1 -1
- package/dist/assets/{react-o70ZlKb0.js → react-CazNrypD.js} +1 -1
- package/dist/assets/{react-BpEW9tPq.js → react-Cw0TtY4U.js} +1 -1
- package/dist/assets/{react-BNn_K56n.js → react-DywPl4iN.js} +1 -1
- package/dist/assets/{react-DHTHtXgj.js → react-E7ETqwTX.js} +1 -1
- package/dist/assets/{react-BddMC_36.js → react-OOqLEgIT.js} +2 -2
- package/dist/assets/{recharts-DGmpNqLb.js → recharts-j_eh1fXg.js} +1 -1
- package/dist/assets/{sentry-gm2R3TtK.js → sentry-D4D7HRQR.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DNx-Nq5U.js → shield-DOlUxcFf-D9ihfdgR.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CdKQhpIb-CFgx5sWA.js +1 -0
- package/dist/assets/{toChartData-CVxc3i6E-C3Ntbj_i.js → toChartData-BlyUYoV7-DsdeBaUU.js} +1 -1
- package/dist/assets/{uploadAttachment-CBATb9_e-DKMvJUv_.js → uploadAttachment-BkEbu6k9-DdujAAv5.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-B-LIRY0h.js → uploadReceipts-CPw64UYa-C1oywu4M.js} +1 -1
- package/dist/assets/{url-B3spPAaB.js → url-BwHZRaSJ.js} +1 -1
- package/dist/assets/{url-CsktLD4A.js → url-DStI5MA9.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-5GfLl0ml.js → useLongPress-GCK2COYQ-BS3t10_q.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DO5-Shw0.js → usp-line-BBd1wKwW-DELeCmm4.js} +1 -1
- package/dist/assets/{utils-C7Aiy3iw.js → utils-BTQ24URD.js} +1 -1
- package/dist/assets/{zeni-epic-state-D2RxwWrl.js → zeni-epic-state-I555vKHy.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AddAddressForCardDrawer-CNkdq378-CMB9xZbO.js +0 -6
- package/dist/assets/ChargeCardPaymentHistoryPage-DnxJwv-T-CRSd2xN3.js +0 -553
- package/dist/assets/CustomerOnboardingContainerPage-ZVvSCumS-B1XuhxOn.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-DHSPLF5F-INu2F67Y.js +0 -202
- package/dist/assets/EntityDetailPage-BaKoO9FG-CWR9O5Vu.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-BeUu65LP-C57N3ype.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CO7IswK8-fvhoI3t7.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-bKdrX7dk-CBCuAFur.js +0 -1
- package/dist/assets/MailingDetailsSection-B_0EH3Eh-BBy70f0G.js +0 -21
- package/dist/assets/StatementItem-C9KsTdoM-JSrgwnvv.js +0 -31
- package/dist/assets/VendorACHDetailsPage-DVqS0EVe-B814xKcj.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-BrvN0BZx-Dngp9AgA.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJMBOb8y-JFzt6kht.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-ilouYnTd-CPpu9ijo.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CEKoJAIb-D8CLxKeM.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cki-np8X-TAkem-7K.js +0 -1
- package/dist/assets/toCOABalancesWithID-CcsM8Vr1-X6P_swAQ.js +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{y as O,c as L,q as M,F as U,a9 as W,aO as G,aH as H,cC as X,V as o,bA as J,ac as K,aP as Q,o as
|
|
1
|
+
import{y as O,c as L,q as M,F as U,a9 as W,aO as G,aH as H,cC as X,V as o,bA as J,ac as K,aP as Q,o as u,g3 as Y}from"./index-qaSB49F0.js";import{a as T}from"./sentry-D4D7HRQR.js";import{n as h}from"./mui-Fyk6sRCR.js";import{b as Z,f as ee,o as _,l as C}from"./FollowStepsSection-CoXcJ6WL-BDHFkDzZ.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="a3e930a3-626e-49e0-ae22-b60337d1d999",e._sentryDebugIdIdentifier="sentry-dbid-a3e930a3-626e-49e0-ae22-b60337d1d999")}catch{}})();const k="billPayApprovalRuleDetailPage",j="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:y=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const P=M(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,g=ae(e,l==="approval_create"&&!n),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:$}=g,{allApprovalRules:d,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let m=d.length>1?d.length-1:0,v=d.length>0?d[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=d.findIndex(p=>p.approvalRuleId===i),v=m>0?d[m-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),q=async(i,p)=>{r(p)};return T.useEffect(()=>{const i=x.watch((p,{name:D})=>{if(D!=null&&p!=null){const z=H(p);X(()=>q(D,z))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:R(k),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:j,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:v,validate:i=>n?!0:i!=null&&i>v},isDisabled:n,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:y,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(de,{}),o.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:R(k),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[b]:[b],[w]:te(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),_(e.allAttributes),_(e.filteredAttributes),r??[])??[],[j]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,r,s)=>s&&s.length>0?s.map((n,y)=>({stepIndex:y,stepType:{selectedOption:n.action,allOptions:C},actors:{allUsers:l,selectedUsers:oe(e,n.actors),allNonUsers:r,selectedNonUsers:re(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:C},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(r=>r.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(r=>r.subType===a.value)>-1),R=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
width: 100%;
|
|
6
6
|
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
-
box-shadow: ${e=>`${
|
|
7
|
+
box-shadow: ${e=>`${u.sp0} 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
8
8
|
`,ie=h.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
12
|
-
box-shadow: ${e=>`${
|
|
13
|
-
border-radius: ${
|
|
12
|
+
box-shadow: ${e=>`${u.sp0} 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
13
|
+
border-radius: ${u.sp2};
|
|
14
14
|
`,ne=h.div`
|
|
15
15
|
display: flex;
|
|
16
16
|
justify-content: flex-start;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as L,F as v,V as t,bA as _,k as M,aN as S,y as r,al as j,o,aL as P,cn as E,co as H,cp as U,cX as V,c as l,b8 as G,R as k,b7 as q,p as z,cW as F,bs as X,b as J}from"./index-
|
|
1
|
+
import{q as L,F as v,V as t,bA as _,k as M,aN as S,y as r,al as j,o,aL as P,cn as E,co as H,cp as U,cX as V,c as l,b8 as G,R as k,b7 as q,p as z,cW as F,bs as X,b as J}from"./index-qaSB49F0.js";import{n as i}from"./mui-Fyk6sRCR.js";import{a as K}from"./sentry-D4D7HRQR.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="92767562-455e-4896-a41d-842e462457f8",e._sentryDebugIdIdentifier="sentry-dbid-92767562-455e-4896-a41d-842e462457f8")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},A={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},O=({showDeleteBtn:e=!1,isLastSection:h=!1,approvalRule:d,onEditRuleClick:b,onDeleteRuleClick:w})=>{const[x,g]=K.useState(!1),n=L(),{range:u}=d.criteria[0],{steps:$,approvalRuleId:m}=d,a=v.getLocalizedStrings().commonSetUp.approval,y=()=>{g(!0)},W={onOkClick:()=>{g(!1),w?.(m)},onCancelClick:()=>{g(!1)}};return t.jsxs(Q,{windowSize:n,isLastSection:h,children:[t.jsxs(Y,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(B,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(Z,{children:[t.jsx(T,{}),t.jsx(ee,{}),t.jsx(T,{})]}),u.max==null?t.jsx(de,{}):t.jsx(B,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e&&t.jsx(ae,{onClick:y,"data-testid":S("delete-approval-rule-bill-pay",d.approvalRuleId)}),t.jsx(pe,{onClick:()=>{b(m)},"data-testid":S("edit-approval-rule-bill-pay",d.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:$.length===1,windowSize:n,children:$.map((c,D)=>t.jsxs(ie,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[c.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),c.nonUserActors!=null&&c.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},`${p.subType}_${N}`)),c.actors.map(p=>t.jsxs(C,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},p.userId))]},D))})}),x?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(H,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},Q=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-DOEbuNgH-BVCaGPCE.js → BillPayPromoPage-Dsl0YvUE-DF_BWBKa.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as W,q as
|
|
1
|
+
import{aw as W,q as f,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F as I,o as l,aq as le,a as se,d as M,aR as U,am as oe,y as te,p as $,cB as re,aS as ae,b9 as ne,c as de}from"./index-qaSB49F0.js";import{a as g}from"./sentry-D4D7HRQR.js";import{n as s}from"./mui-Fyk6sRCR.js";import{Fw as ce,bS as pe,Fx as me}from"./zeni-epic-state-I555vKHy.js";import{f as xe}from"./VideoPopup-Dw57i43Q-BXsiVF5S.js";import{M as b}from"./usp-line-BBd1wKwW-DELeCmm4.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";import"./VideoPlayer-HL-oU9Ri-BnQLsV6M.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="3e87da0b-4b5a-42f0-8c29-2839069fc019",i._sentryDebugIdIdentifier="sentry-dbid-3e87da0b-4b5a-42f0-8c29-2839069fc019")}catch{}})();const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new te(de[5],44)},ge=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -23,7 +23,7 @@ import{aw as W,q as j,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F
|
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
25
25
|
margin-bottom: ${i=>he.midContainerMarginBottom.valuePx(i.windowSize)};
|
|
26
|
-
`,
|
|
26
|
+
`,je=s.div``,x=s.img``,F=s.div`
|
|
27
27
|
width: ${i=>i.windowSize==="small"?"auto":"376px"};
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
@@ -59,17 +59,17 @@ import{aw as W,q as j,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F
|
|
|
59
59
|
color: ${i=>i.theme.colors.champion};
|
|
60
60
|
`,y=s(U)`
|
|
61
61
|
color: ${i=>i.theme.colors.champion};
|
|
62
|
-
`,
|
|
62
|
+
`,j=s(re)`
|
|
63
63
|
color: ${i=>i.theme.colors.champion};
|
|
64
64
|
`,d=s.div``,c=s.div`
|
|
65
65
|
padding-left: ${l.sp3};
|
|
66
|
-
`,_=s(
|
|
66
|
+
`,_=s(b)`
|
|
67
67
|
color: ${$.graphColor16Dark};
|
|
68
|
-
`,E=s(
|
|
68
|
+
`,E=s(b)`
|
|
69
69
|
color: ${$.graphColor09Dark};
|
|
70
|
-
`,O=s(
|
|
70
|
+
`,O=s(b)`
|
|
71
71
|
color: ${$.graphColor28Dark};
|
|
72
|
-
`,
|
|
72
|
+
`,fe=s(oe)`
|
|
73
73
|
margin: ${l.sp3} auto;
|
|
74
74
|
max-width: 719px;
|
|
75
75
|
color: ${i=>i.theme.colors.hero};
|
|
@@ -78,7 +78,7 @@ import{aw as W,q as j,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F
|
|
|
78
78
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
79
79
|
align-items: center;
|
|
80
80
|
justify-content: center;
|
|
81
|
-
`,
|
|
81
|
+
`,be=s(U)`
|
|
82
82
|
margin: ${i=>i.windowSize==="small"?l.sp1:`auto ${l.sp5}`};
|
|
83
83
|
color: ${i=>i.theme.colors.grey1};
|
|
84
|
-
`,t=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Ve=({billPaySetupView:i,analytics:o,meetingUrl:
|
|
84
|
+
`,t=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Ve=({billPaySetupView:i,analytics:o,meetingUrl:S,videoUrl:q,onButtonClick:N,onBackClick:H,onSetupBillPaySuccess:z,onClickMenuIcon:Z})=>{const h=W(),a=f(),{billPayTermsDetails:p}=i,[J,K]=g.useState(!1),[Q,k]=g.useState(!1),v=Y(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const X=()=>{o?.trackBillPayPromoScheduleDemo(),k(!0)},G=ce(h.loggedInUserRoleMap),P=pe(h.loggedInUserRoleMap)&&!G,T=P?t.setupNonAccessableUsersPromoText:t.promoText;return e.jsxs(ge,{children:[J===!0?e.jsx(xe,{onCancelClick:()=>{K(!1)},videoUrl:q}):null,Q===!0?e.jsx(ee,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ie,{title:t.title,onBackClick:H,showBackButton:!me(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:Z,source:"BillPayPromoPage"}),e.jsxs(ue,{windowSize:a,children:[a==="small"?e.jsx(ye,{children:T}):e.jsx(we,{children:T}),a==="small"?e.jsx(Se,{}):e.jsx(ze,{}),P===!1?e.jsxs(je,{children:[e.jsxs($e,{windowSize:a,children:[e.jsx(B,{variant:"secondary",label:t.scheduleDemoButton,onClick:X,"data-testid":C("billpay-schedule-demo-button")}),e.jsx(be,{windowSize:a,children:t.orText}),e.jsx(B,{variant:"primary",label:t.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:N,"data-testid":C("billpay-setup-button")})]}),e.jsxs(fe,{children:[t.terms.terms1,e.jsx(m,{href:r.consentUrl,linkText:r.consent}),r.term2,e.jsx(m,{href:r.depositUrl,linkText:r.depositTerms}),r.term3,e.jsx(m,{href:r.privacyPolicyUrl,onZeniLinkClick:()=>(o?.trackBillPayPrivacyPolicy(),!0),linkText:r.privacy}),r.term4,e.jsx(m,{href:r.tosUrl,onZeniLinkClick:()=>(o?.trackBillPayAgreement(),!0),linkText:r.tos}),r.term5,t.terms.terms3]})]}):null]})]})},Se=()=>{const i=M(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsx(R,{windowSize:o,children:e.jsx(V,{windowSize:o,children:i.mode==="dark"?e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(x,{src:A,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(F,{windowSize:o,children:[e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.fullyManagedText.bold}),e.jsx(y,{children:t.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]})]})]})},ze=()=>{const i=M(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsxs(F,{windowSize:o,children:[e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.fullyManagedText.bold}),e.jsx(u,{children:t.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.multiLevelApprovalText.bold}),e.jsx(u,{children:t.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.aiPoweredText.bold}),e.jsx(u,{children:t.aiPoweredText.regular})]})]})]}),e.jsx(R,{windowSize:o,children:e.jsx(V,{windowSize:o,children:i.mode==="dark"?e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(x,{src:A,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Ve as default};
|
package/dist/assets/{BillPaySetUpPage-Tb-gBoFT-Cr_u2hmC.js → BillPaySetUpPage-MLf77bPI-BQQY77ue.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He,p as Le,aN as ze,y as u,bA as qe,k as Ne,ac as Me,fq as H,dL as Ge,fr as Je,bv as Ze,dB as Ke,bR as Xe,fs as Ye,aP as Qe,o as z,ft as et,c as a,al as tt,bI as it}from"./index-
|
|
1
|
+
import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He,p as Le,aN as ze,y as u,bA as qe,k as Ne,ac as Me,fq as H,dL as Ge,fr as Je,bv as Ze,dB as Ke,bR as Xe,fs as Ye,aP as Qe,o as z,ft as et,c as a,al as tt,bI as it}from"./index-qaSB49F0.js";import{a as m}from"./sentry-D4D7HRQR.js";import{n as b}from"./mui-Fyk6sRCR.js";import{bJ as nt}from"./zeni-epic-state-I555vKHy.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-UdsrwN9K-D09XF6PT.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="514f040a-ec84-4b09-9061-cb6a82aec0a4",e._sentryDebugIdIdentifier="sentry-dbid-514f040a-ec84-4b09-9061-cb6a82aec0a4")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=De(),i=Oe(),[A,S]=m.useState(!1),N=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:B,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,j=E(f),J=E(P.fetchState),Z=E(D.fetchState),K=E(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>L(e),[e]),values:L(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&j==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||Z==="In-Progress"&&D.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&w.reset(L(e))},[j,f,w,e,Z,D.fetchState,K,O.fetchState]);const Be=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),je=async(x,F)=>{const o=F[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const g=M.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,r.id,r.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>je(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:d}=Ve,{billPaySetup:l}=Fe.billPay,$=T?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||nt(r?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=$?d.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=k.mode==="light"?new X(k.colors.brandColorJadeLight):new X(k.colors.brandColorJadeDark),_e=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:N,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:N,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...w,children:t.jsx("form",{id:Q(Y),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:M,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:B.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:B.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:B.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),$&&!R&&B.length>0?t.jsx(Qe,{formId:Q(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(et,{isFooterRendered:$&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -21,13 +21,13 @@ import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He
|
|
|
21
21
|
padding-top: ${e=>n.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
22
22
|
padding-bottom: ${e=>n.subTitlePaddingBottom.valuePx(e.windowSize)};
|
|
23
23
|
text-align: ${e=>e.windowSize==="small"?"initial":"center"};
|
|
24
|
-
`,
|
|
24
|
+
`,rt=b.div`
|
|
25
25
|
display: flex;
|
|
26
26
|
justify-content: flex-start;
|
|
27
27
|
flex-direction: column;
|
|
28
28
|
align-items: center;
|
|
29
29
|
row-gap: ${e=>n.setupDetailsRowGap.valuePx(e.windowSize)};
|
|
30
|
-
`,
|
|
30
|
+
`,dt=b.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
width: 100%;
|
|
33
33
|
height: calc(100vh - 110px);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as be,q as we,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ie,k as Ae,ac as ve,bv as ke,cD as je,aP as De,o as s,hI as Te,eV as Ve,eW as $e,c as x,al as Be,gR as Ee,p as ze,R as Le}from"./index-qaSB49F0.js";import{a as R}from"./sentry-D4D7HRQR.js";import{n as r}from"./mui-Fyk6sRCR.js";import{M as Oe,o as W,t as Me}from"./PaymentAccountSetupBillingAddressSection-BcQ07YZL-sTtrymnZ.js";import{F as _e}from"./SetUpAccountSection-CywFKgZo-MmKR4ndQ.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";import"./commonTypes-Gv0Fff59-KWmxkMG2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="9f8bf9a7-07ff-4cc7-99a9-2517bdfa06b2",e._sentryDebugIdIdentifier="sentry-dbid-9f8bf9a7-07ff-4cc7-99a9-2517bdfa06b2")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},F="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:q,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:D,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const w=be(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:H(i),values:H(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(G)}),$=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:b}=a[n].street,k=Ve(b?.country);u={street:a[n].street??l.strings.empty,city:b?.locality??l.strings.empty,state:b?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:b?.countryCode??l.strings.empty,postalCode:b?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:$e(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=w.mode==="light"?new j(w.colors.brandColorJadeLight):new j(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,z=h.cardsList.length>0,L=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;z&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(L).name}),color:new j(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=R.useState(!1);return t.jsxs(Fe,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(We,{windowSize:o,children:[t.jsx(He,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:U(F),onSubmit:pe,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:D,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),je(f.formState.dirtyFields)?t.jsx(De,{formId:U(F),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:$?.fetchState==="In-Progress",isDisabled:$?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:D,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},H=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -6,13 +6,13 @@ import{d as we,q as be,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ie,
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
row-gap: ${e=>p.setupDetailsRowGap.valuePx(e.windowSize)};
|
|
9
|
-
`,Fe=
|
|
9
|
+
`,Fe=r.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
min-height: 100%;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
width: 100%;
|
|
14
14
|
background-color: ${e=>e.theme.colors.grey4};
|
|
15
|
-
`,He=
|
|
15
|
+
`,He=r(Be)`
|
|
16
16
|
color: ${e=>e.theme.colors.hero};
|
|
17
17
|
display: flex;
|
|
18
18
|
justify-content: center;
|
|
@@ -20,7 +20,7 @@ import{d as we,q as be,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ie,
|
|
|
20
20
|
padding-top: ${e=>p.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
21
21
|
padding-bottom: ${s.sp3};
|
|
22
22
|
text-align: ${e=>e.windowSize==="small"?"initial":"center"};
|
|
23
|
-
`,Ue=
|
|
23
|
+
`,Ue=r.div`
|
|
24
24
|
display: flex;
|
|
25
25
|
width: 100%;
|
|
26
26
|
height: calc(100vh - 110px);
|
|
@@ -28,17 +28,17 @@ import{d as we,q as be,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ie,
|
|
|
28
28
|
justify-content: center;
|
|
29
29
|
align-items: center;
|
|
30
30
|
background-color: ${e=>e.theme.colors.grey4};
|
|
31
|
-
`,qe=
|
|
31
|
+
`,qe=r.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
|
-
`,Ke=(e,i,m,
|
|
34
|
+
`,Ke=(e,i,m,d,A)=>t.jsxs(Ne,{children:[t.jsx(Ge,{windowSize:e,isDisabled:A==="disabled",children:i}),t.jsx(Ee,{googleAPIKey:d??"",addressToEdit:m,sectionId:`${n}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"}})]}),Ne=r.div`
|
|
35
35
|
margin-top: ${s.sp3};
|
|
36
36
|
margin-bottom: ${s.sp4};
|
|
37
|
-
`,Ge=
|
|
37
|
+
`,Ge=r.div`
|
|
38
38
|
${e=>`${Re.title.style(e.windowSize)}`};
|
|
39
39
|
margin-bottom: ${s.sp3};
|
|
40
40
|
margin-top: ${s.sp4};
|
|
41
41
|
color: ${e=>e.isError===!0?ze.important:e.isDisabled===!0?e.theme.colors.grey1:e.theme.colors.primary};
|
|
42
|
-
`,Je=
|
|
42
|
+
`,Je=r.div`
|
|
43
43
|
flex: 1;
|
|
44
44
|
`,U=e=>`${e}_form`;export{ct as default,U as uniqueName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as b,cn as V,co as W,cp as M,
|
|
1
|
+
import{V as b,cn as V,co as W,cp as M,k4 as q,aW as z,F as G}from"./index-qaSB49F0.js";import{a as f}from"./sentry-D4D7HRQR.js";import{Gd as K}from"./zeni-epic-state-I555vKHy.js";import{u as Q}from"./ReviewOverlay-Bthl69qw-RmWq0Cob.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./mui-Fyk6sRCR.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="89c1bb35-7138-424a-861a-d3c6d1f0d7ca",e._sentryDebugIdIdentifier="sentry-dbid-89c1bb35-7138-424a-861a-d3c6d1f0d7ca")}catch{}})();const{common:s,spendManagement:{billPay:x}}=G.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,y]=f.useState(!1),[n,v]=f.useState(P(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[w,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(P(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),y(!0)},F={onOkClick:d=>{y(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{y(!1)}},{title:N,description:A}=H(m,h,R,p),T=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:T?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:T?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(M,{children:w.title}),descriptionComponent:b.jsx(W,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:T}})]})},P=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&K(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,y=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",y?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as p,V as s,aN as b,o as e}from"./index-
|
|
1
|
+
import{q as p,V as s,aN as b,o as e}from"./index-qaSB49F0.js";import{n}from"./mui-Fyk6sRCR.js";import{o as a}from"./commonDimensions-DGz_YafU-DaJiwvC8.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="d00727f8-791d-44ec-819b-9e39b2fefb59",o._sentryDebugIdIdentifier="sentry-dbid-d00727f8-791d-44ec-819b-9e39b2fefb59")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=p();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(l,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const l=n.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>a.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ct,q as dt,aO as Te,V as i,ae as W,a9 as pt,cQ as ut,ay as mt,cC as ft,aW as Oe,aM as ve,g6 as yt,n as ht,bA as gt,aN as St,cD as xt,cn as wt,co as bt,cp as Ct,k as Dt,ac as Tt,aP as Ot,o as r,y as F,am as Pe,F as Ve,g7 as vt,fu as Ie,eV as It,a as kt,L as $t,al as Le,R as Nt,M as jt,c as k}from"./index-DhfemY__.js";import{a as P}from"./sentry-gm2R3TtK.js";import{n as d}from"./mui-snKYaegN.js";import{EN as Ft,bi as G}from"./zeni-epic-state-D2RxwWrl.js";import{n as Pt,z as Vt}from"./CompanyOfficerDetailsSection-DVpqCb72-DEQPR9vE.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";import"./LabeledAddressValueField-BrYbXck--Bam2jwZr.js";import"./LabeledCountryMultiSelectField-BLOMdq_H-Mb0TF8y4.js";import"./LabeledCreatableSingleSelectField-BWuogpe6-DHwshDD5.js";import"./LabeledDocumentField-Ch2zD7s7-GyTO4utg.js";import"./LabeledMultiSelectField-CA9PUCf3-CwZMJ8IS.js";import"./commonTypes-PtDfk70--Bx1ZBTCB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="56dca56a-379f-40cf-96e9-e4e995f00bf8",e._sentryDebugIdIdentifier="sentry-dbid-56dca56a-379f-40cf-96e9-e4e995f00bf8")}catch{}})();const S={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,k[3]),subTitlePaddingBottom:new F(k[3],k[3]),verificationDetailsRowGap:new F(12,k[5],k[5]),termsPaddingLeftRight:new F(k[0],k[3])},Lt={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",D="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:At,currency:$e,footer:Ne,strings:{empty:_t}}}=Ve.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:x,verficationDetailsFetchState:$,isRefreshingViewInBackground:_,filesEndPoint:s,authParams:B,productType:y,allIndustries:V,companyTitles:E,maxInsuredAmount:u,isDisabled:N,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Je=Te(R.fetchState),M=A?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="unit"?i.jsxs(qt,{children:[a.terms.term1,i.jsx(W,{href:a.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,i.jsx(W,{href:a.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,i.jsx(W,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,i.jsx(W,{href:a.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ye,Q]=P.useState(!1),[U,re]=P.useState("save"),[X,Ze]=P.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,V,E,x)}),{isValid:He}=m.formState,J=A?.company.company.companyBillPayInfo,K=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,O=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),v=`Officer_${O<0?1:O+1}`,et=()=>{const t=b[v],n=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,C=t?.firstName,I=t?.lastName,pe=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,me=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,Se=l?.phone,xe=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;n!=null&&f!=null&&C!=null&&I!=null&&c!=null&&pe!=null&&me!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&Se!=null&&xe!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:pe,phone:me,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:Se,website:xe.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,o?"Settings":void 0)},tt=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,C=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&m.trigger(`${T}.${O<0?0:O}.name`,{shouldFocus:!0}),!1):C&&!I?((!n?.firstName||!n?.lastName)&&m.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&m.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return m.trigger(`${T}.${O<0?0:O}.email`,{shouldFocus:!0}),!1;return!0},it=m.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&b[v]?.isPhoneVerified!==!0){m.setError(`${T}.${O}.phone`,{type:"custom"});return}const t=ut(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ft(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Qe?.())}),st=async(t,n)=>{t.includes(D)?Me?.(n[D]):t.includes(T)&&We?.(n[T])},nt=P.useCallback(mt((t,n)=>{st(t,n)},300),[]);P.useEffect(()=>{const t=m.watch((n,{name:c})=>{c!=null&&n!=null&&ft(()=>nt(c,n))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),m.setValue(`${D}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,oe,m]);const ce=A?.companyOfficers.slice(0,10).sort((t,n)=>t.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{Q(!1),L();const t=[],n=A?.company.company.incInfo.fileIds??[];m.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||t.push(c)}),ot?.forEach((c,f)=>{const C=c?.fileIds??[];m.getValues(`${T}.${f}.fileIds`).forEach(I=>{C.includes(I)||t.push(I)})}),t.length!==0&&Ue?.(t)},onCancelClick:()=>{Q(!1)}},lt=Oe(ve(u),u,$e.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Ht,{children:[i.jsxs(ea,{children:[i.jsx(yt,{}),i.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Oe(ve(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),i.jsx(ht,{label:a.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):i.jsxs(Et,{isSettings:o,children:[i.jsx(gt,{title:h&&w===!0?_t:a.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{xt(m.formState.dirtyFields)?Q(!0):L()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?i.jsx(aa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?i.jsx(wt,{titleComponent:i.jsx(Ct,{children:a.discardTitle}),descriptionComponent:i.jsx(bt,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:rt}):null,i.jsxs(Mt,{windowSize:p,children:[(!h||w===!1)&&i.jsx(Rt,{windowSize:p,children:o?At.infoText.businessVerification:a.title}),$==="In-Progress"||$==="Not-Started"?i.jsx(Ut,{children:i.jsx(Dt,{size:"ExtraLarge",start:!0})}):i.jsx(Tt,{...m,children:i.jsxs("form",{id:je(ke),onSubmit:it,children:[h&&w===!0&&i.jsxs(zt,{children:[i.jsxs(Qt,{windowSize:p,children:[i.jsx(Xt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Jt,{children:i.jsxs(Kt,{children:[i.jsx(Fe,{}),de&&i.jsx(Fe,{}),i.jsx(Yt,{})]})})]}),i.jsx(Ae,{isReadonly:Z,children:a.verifyBusinessDetailsDescription})]}),i.jsxs(Wt,{children:[i.jsx(Pt,{companyOfficerData:b,allNationalityCountries:x,allOfficers:Y??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:s,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:D,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:s,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:V,allNationalityCountries:x})]}),y==="zeni_accounts"?i.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?i.jsx(Ot,{formId:je(ke),primaryBtn:{label:w?Ne.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?S.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?S.width.valuePx(p):"auto",paddingLeft:S.termsPaddingLeftRight.valuePx(p),paddingRight:S.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?Ne.back:a.saveDetailsButton,style:{width:p==="small"?"auto":w?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)L();else{const t=b[v],n=l?.primaryContactLocalData;U!=="save"&&re("save");const c=t?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),Ge?.(v))}}},helperText:Ke,style:{padding:`12px ${r.sp3}`,zIndex:X?0:4}}):null]})},Bt=(e,x,$,_)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=e,V=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:x?.map(u=>u.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:V.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:V.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(a.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:Object.keys(a.transactionVolumeOptions??{})},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:Object.keys(a.purposeOfAccountOptions??{})},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:(s?.usNexusTypes??[]).map(u=>a.usNexusOptions?.[u]??u),allOptions:Object.values(a.usNexusOptions??{})},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[T]:Object.values(B).map((u,N)=>{const o=u,h=vt(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${N+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:It(o?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:$?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},je=e=>`${e}_form`,Et=d.div`
|
|
1
|
+
import{d as ct,q as dt,aO as Te,V as i,ae as W,a9 as pt,cQ as ut,ay as mt,cC as ft,aW as Oe,aM as ve,g6 as yt,n as ht,bA as gt,aN as St,cD as xt,cn as wt,co as bt,cp as Ct,k as Dt,ac as Tt,aP as Ot,o as r,y as F,am as Pe,F as Ve,g7 as vt,fu as Ie,eV as It,a as kt,L as $t,al as Le,R as Nt,M as jt,c as k}from"./index-qaSB49F0.js";import{a as P}from"./sentry-D4D7HRQR.js";import{n as d}from"./mui-Fyk6sRCR.js";import{EN as Ft,bi as G}from"./zeni-epic-state-I555vKHy.js";import{n as Pt,z as Vt}from"./CompanyOfficerDetailsSection-BotE5oj4-BAJaZgbn.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";import"./LabeledAddressValueField-BW6ytr8f-DmYyMrEv.js";import"./LabeledCountryMultiSelectField-DOEcKGdZ-O8xmxgl_.js";import"./LabeledCreatableSingleSelectField-Bsowq6Ia-CpyK3LNE.js";import"./LabeledDocumentField-DHqxzbx7-DKNafkiA.js";import"./LabeledMultiSelectField-wuzYNgjQ-D8K8tQ-i.js";import"./commonTypes-Gv0Fff59-KWmxkMG2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="a68e2815-3490-4178-95a7-7576d50ed6bf",e._sentryDebugIdIdentifier="sentry-dbid-a68e2815-3490-4178-95a7-7576d50ed6bf")}catch{}})();const S={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,k[3]),subTitlePaddingBottom:new F(k[3],k[3]),verificationDetailsRowGap:new F(12,k[5],k[5]),termsPaddingLeftRight:new F(k[0],k[3])},Lt={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",D="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:At,currency:$e,footer:Ne,strings:{empty:_t}}}=Ve.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:x,verficationDetailsFetchState:$,isRefreshingViewInBackground:_,filesEndPoint:s,authParams:B,productType:y,allIndustries:V,companyTitles:E,maxInsuredAmount:u,isDisabled:N,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Je=Te(R.fetchState),M=A?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="unit"?i.jsxs(qt,{children:[a.terms.term1,i.jsx(W,{href:a.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,i.jsx(W,{href:a.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,i.jsx(W,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,i.jsx(W,{href:a.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ye,Q]=P.useState(!1),[U,re]=P.useState("save"),[X,Ze]=P.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,V,E,x)}),{isValid:He}=m.formState,J=A?.company.company.companyBillPayInfo,K=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,O=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),v=`Officer_${O<0?1:O+1}`,et=()=>{const t=b[v],n=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,C=t?.firstName,I=t?.lastName,pe=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,me=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,Se=l?.phone,xe=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;n!=null&&f!=null&&C!=null&&I!=null&&c!=null&&pe!=null&&me!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&Se!=null&&xe!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:pe,phone:me,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:Se,website:xe.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,o?"Settings":void 0)},tt=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,C=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&m.trigger(`${T}.${O<0?0:O}.name`,{shouldFocus:!0}),!1):C&&!I?((!n?.firstName||!n?.lastName)&&m.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&m.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return m.trigger(`${T}.${O<0?0:O}.email`,{shouldFocus:!0}),!1;return!0},it=m.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&b[v]?.isPhoneVerified!==!0){m.setError(`${T}.${O}.phone`,{type:"custom"});return}const t=ut(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ft(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Qe?.())}),st=async(t,n)=>{t.includes(D)?Me?.(n[D]):t.includes(T)&&We?.(n[T])},nt=P.useCallback(mt((t,n)=>{st(t,n)},300),[]);P.useEffect(()=>{const t=m.watch((n,{name:c})=>{c!=null&&n!=null&&ft(()=>nt(c,n))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),m.setValue(`${D}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,oe,m]);const ce=A?.companyOfficers.slice(0,10).sort((t,n)=>t.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{Q(!1),L();const t=[],n=A?.company.company.incInfo.fileIds??[];m.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||t.push(c)}),ot?.forEach((c,f)=>{const C=c?.fileIds??[];m.getValues(`${T}.${f}.fileIds`).forEach(I=>{C.includes(I)||t.push(I)})}),t.length!==0&&Ue?.(t)},onCancelClick:()=>{Q(!1)}},lt=Oe(ve(u),u,$e.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Ht,{children:[i.jsxs(ea,{children:[i.jsx(yt,{}),i.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Oe(ve(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),i.jsx(ht,{label:a.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):i.jsxs(Et,{isSettings:o,children:[i.jsx(gt,{title:h&&w===!0?_t:a.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{xt(m.formState.dirtyFields)?Q(!0):L()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?i.jsx(aa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?i.jsx(wt,{titleComponent:i.jsx(Ct,{children:a.discardTitle}),descriptionComponent:i.jsx(bt,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:rt}):null,i.jsxs(Mt,{windowSize:p,children:[(!h||w===!1)&&i.jsx(Rt,{windowSize:p,children:o?At.infoText.businessVerification:a.title}),$==="In-Progress"||$==="Not-Started"?i.jsx(Ut,{children:i.jsx(Dt,{size:"ExtraLarge",start:!0})}):i.jsx(Tt,{...m,children:i.jsxs("form",{id:je(ke),onSubmit:it,children:[h&&w===!0&&i.jsxs(zt,{children:[i.jsxs(Qt,{windowSize:p,children:[i.jsx(Xt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Jt,{children:i.jsxs(Kt,{children:[i.jsx(Fe,{}),de&&i.jsx(Fe,{}),i.jsx(Yt,{})]})})]}),i.jsx(Ae,{isReadonly:Z,children:a.verifyBusinessDetailsDescription})]}),i.jsxs(Wt,{children:[i.jsx(Pt,{companyOfficerData:b,allNationalityCountries:x,allOfficers:Y??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:s,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:D,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:s,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:V,allNationalityCountries:x})]}),y==="zeni_accounts"?i.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?i.jsx(Ot,{formId:je(ke),primaryBtn:{label:w?Ne.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?S.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?S.width.valuePx(p):"auto",paddingLeft:S.termsPaddingLeftRight.valuePx(p),paddingRight:S.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?Ne.back:a.saveDetailsButton,style:{width:p==="small"?"auto":w?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)L();else{const t=b[v],n=l?.primaryContactLocalData;U!=="save"&&re("save");const c=t?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),Ge?.(v))}}},helperText:Ke,style:{padding:`12px ${r.sp3}`,zIndex:X?0:4}}):null]})},Bt=(e,x,$,_)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=e,V=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:x?.map(u=>u.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:V.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:V.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(a.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:Object.keys(a.transactionVolumeOptions??{})},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:Object.keys(a.purposeOfAccountOptions??{})},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:(s?.usNexusTypes??[]).map(u=>a.usNexusOptions?.[u]??u),allOptions:Object.values(a.usNexusOptions??{})},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[T]:Object.values(B).map((u,N)=>{const o=u,h=vt(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${N+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:It(o?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:$?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},je=e=>`${e}_form`,Et=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as m,V as a,F as y,b as w,o as t,R as b,M as x}from"./index-
|
|
1
|
+
import{q as m,V as a,F as y,b as w,o as t,R as b,M as x}from"./index-qaSB49F0.js";import{n as o}from"./mui-Fyk6sRCR.js";import{a as c}from"./sentry-D4D7HRQR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="9ffdd945-bf34-4731-8418-21e1d35f98d1",e._sentryDebugIdIdentifier="sentry-dbid-9ffdd945-bf34-4731-8418-21e1d35f98d1")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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:p,spendManagement:{chargeCard:r}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:s,styles:l})=>{const f=m(),g=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=p.strings.space+r.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,h=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return a.jsxs(v,{style:l,windowSize:f,forDetailPage:s,className:"cardName",title:`${h}`,children:[g,a.jsx(H,{}),d,n&&!s?a.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?a.jsx(u,{}):null]})},v=o(x)`
|
|
2
2
|
${e=>e.forDetailPage?{...w.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as j,q as
|
|
1
|
+
import{d as j,q as b,V as t,bA as te,fd as z,b as u,b2 as N,bZ as ie,o as i,F as w,p as B,y as h,al as v,dd as oe,c as l,aW as re,aL as T,bP as ae,ai as $,aN as L,jf as X,jg as Z,iW as se,cw as ne,cz as de,am as O,iX as le,iY as ce}from"./index-qaSB49F0.js";import{n as o}from"./mui-Fyk6sRCR.js";import{G4 as f,bh as he}from"./zeni-epic-state-I555vKHy.js";import{S as R,a as V}from"./sentry-D4D7HRQR.js";import{q as pe}from"./InsightsSection-26UEfz7s-DvD8Ccwt.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as be}from"./recharts-j_eh1fXg.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";import"./NavigationDots-U7wL0ya4-Br1fZ1mY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="201b7b14-b060-410d-9d65-c1f79bae720c",e._sentryDebugIdIdentifier="sentry-dbid-201b7b14-b060-410d-9d65-c1f79bae720c")}catch{}})();const fe=({x:e,y:a,width:n,height:s,payload:r})=>{const c=j();return t.jsx(be,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(ke,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(q,{children:W.month})," ",t.jsx(G,{children:f(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ke=o.div`
|
|
@@ -20,11 +20,11 @@ import{d as j,q as f,V as t,bA as te,fd as z,b as u,b2 as N,bZ as ie,o as i,F as
|
|
|
20
20
|
`,q=o($)`
|
|
21
21
|
color: ${e=>e.theme.colors.hero};
|
|
22
22
|
min-width: 107px;
|
|
23
|
-
`,Se=R.memo(ve),{dateFormat:{visual:{MMMYYFormat:Ce,YYYYDashMMFormat:Q}},common:{currency:M}}=w.getLocalizedStrings(),ze=({chartData:e,customToolTipContent:a,width:n,height:s})=>{const r=j();return t.jsx(Me,{width:n,height:s,children:t.jsx(N,{children:({height:c,width:p})=>t.jsxs(ge,{width:p,height:c,data:e,barCategoryGap:"25%",margin:{top:5,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(me,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:r.colors.grey3}),t.jsx(xe,{dataKey:"period",type:"category",axisLine:{stroke:r.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:r.colors.hero,...u.extraSmallRegular.cssObject},tickFormatter:g=>
|
|
23
|
+
`,Se=R.memo(ve),{dateFormat:{visual:{MMMYYFormat:Ce,YYYYDashMMFormat:Q}},common:{currency:M}}=w.getLocalizedStrings(),ze=({chartData:e,customToolTipContent:a,width:n,height:s})=>{const r=j();return t.jsx(Me,{width:n,height:s,children:t.jsx(N,{children:({height:c,width:p})=>t.jsxs(ge,{width:p,height:c,data:e,barCategoryGap:"25%",margin:{top:5,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(me,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:r.colors.grey3}),t.jsx(xe,{dataKey:"period",type:"category",axisLine:{stroke:r.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:r.colors.hero,...u.extraSmallRegular.cssObject},tickFormatter:g=>f(g).format(Ce)}),t.jsx(we,{type:"number",axisLine:!1,tickLine:!1,tick:{color:r.colors.hero,...u.extraSmallRegular.cssObject},tickFormatter:g=>re("0,0.[00]a",g,e?.[0].currencySymbol??M.currencySymbol)}),t.jsx(ue,{cursor:t.jsx(fe,{}),content:a}),t.jsx(ye,{dataKey:"amount",fill:r.colors.brandColorJadeDark,barSize:36})]})})})};function Le({cashbackByPeriod:e,width:a,height:n}){const s=oe(e,c=>f(c.period),"asc"),r=Ie(s);return t.jsx(ze,{chartData:r,customToolTipContent:({active:c,payload:p,label:g})=>t.jsx(Se,{active:c,payload:p,label:g}),width:a,height:n})}const Pe=e=>e.format(Q),Ie=e=>{const a=e.map(r=>({...r,showTooltip:!0})),n=e[e.length-1];let s=n?.period??he().subtract(1,"M").format(Q);for(;a.length<12;){const r={amount:0,period:Pe(f(s).add(1,"M")),showTooltip:!1,currencyCode:n?.currencyCode??M.currencyCode,currencySymbol:n?.currencySymbol??M.currencySymbol};a.push(r),s=r.period}return a},Me=o.div`
|
|
24
24
|
width: ${e=>e.width}px;
|
|
25
25
|
height: ${e=>e.height}px;
|
|
26
26
|
background: ${e=>e.theme.colors.grey5};
|
|
27
|
-
`,U=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,De={key:"month",value:U.month,sortOrder:"ascending",width:new h(50,50)},Fe={key:"cashback",value:U.cashback,sortOrder:"ascending",width:new h(50,50)},ee=()=>[De,Fe],y={headerLastColumnTopPadding:new h(l[0],l[4]),headerLastColumnRightPadding:new h(l[3],l[11]),headerLastColumnBottomPadding:new h(l[0],l[4]),headerLastColumnLeftPadding:new h(l[3],l[11]),headerHeight:new h(le,ce)};function Be({sortConfig:e,onColumnSortConfigChanged:a}){const n=j(),s=
|
|
27
|
+
`,U=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,De={key:"month",value:U.month,sortOrder:"ascending",width:new h(50,50)},Fe={key:"cashback",value:U.cashback,sortOrder:"ascending",width:new h(50,50)},ee=()=>[De,Fe],y={headerLastColumnTopPadding:new h(l[0],l[4]),headerLastColumnRightPadding:new h(l[3],l[11]),headerLastColumnBottomPadding:new h(l[0],l[4]),headerLastColumnLeftPadding:new h(l[3],l[11]),headerHeight:new h(le,ce)};function Be({sortConfig:e,onColumnSortConfigChanged:a}){const n=j(),s=b(),[r,c]=V.useState(ee());V.useEffect(()=>{const d=[...r];for(const m of d)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";c(d)},[e.sortKey,e.sortOrder]);const p=(d,m)=>{let K=m;e.sortKey===d&&(K=m==="ascending"?"descending":"ascending"),a(d,K)},g=r.find(d=>d.key===e.sortKey)??r[0],S=d=>r.find(m=>m.key===d)?.value??"",C=r.map(d=>d.key),Y=w.getLocalizedStrings().spendManagement.chargeCard.cardList;return s==="small"?t.jsxs(A,{windowSize:s,children:[t.jsxs(Ye,{children:[t.jsx(Ve,{children:t.jsx(Ke,{})}),t.jsx(ae,{title:Y.sortBy,placeholder:Y.sortBy,pickerValues:C,valueToLabel:S,selectedValue:e.sortKey,onPickerSelectionChanged:d=>{p(d,"ascending")},optionTextStyle:u.smallRegular,titleTextStyle:u.smallRegular,titleColor:n.colors.primary,selectedOptionColor:n.colors.hero,optionBackgroundColor:n.colors.grey5,downChevronVisible:!1,backgroundColor:n.colors.grey4})]}),t.jsxs(Ge,{onClick:()=>p(g.key,g.sortOrder),"data-testid":L("cashback-list-header-mobile",g.value),children:[t.jsx($,{children:g.value}),t.jsx(_,{sortDataValue:e.sortKey,headerdata:g,children:t.jsx(H,{})})]})]}):t.jsx(A,{windowSize:s,children:r.map((d,m)=>t.jsxs(Oe,{sortDataValue:e.sortKey,actualDataValue:d.key,wrapperWidth:d.width,isLastItem:m===r.length-1,windowSize:s,children:[t.jsxs(Ee,{onClick:()=>p(d.key,d.sortOrder),"data-testid":L("cashback-list-header",d.value),children:[t.jsx($,{children:d.value}),t.jsx(_,{sortDataValue:e.sortKey,headerdata:d,children:t.jsx(H,{})})]}),t.jsx(We,{sortDataValue:e.sortKey,windowSize:s,isVisible:e.sortKey===d.key&&d.key!=="month",children:t.jsx(Re,{onClick:()=>p("month","ascending"),"data-testid":L("cashback-list-close-sort",d.key)})})]},d.key))})}const Te=R.memo(Be),A=o($)`
|
|
28
28
|
top: ${i.sp0};
|
|
29
29
|
left: ${i.sp0};
|
|
30
30
|
min-height: ${e=>y.headerHeight.valuePx(e.windowSize)};
|
|
@@ -94,7 +94,7 @@ import{d as j,q as f,V as t,bA as te,fd as z,b as u,b2 as N,bZ as ie,o as i,F as
|
|
|
94
94
|
&:hover {
|
|
95
95
|
color: ${e=>e.theme.colors.primary};
|
|
96
96
|
}
|
|
97
|
-
`,x={containerPaddingLeft:new h(l[3],l[4]),containerPaddingRight:new h(l[3],l[4]),containerPaddingTop:new h(l[2],16),containerPaddingBottom:new h(l[2],16),containerMarginLeft:new h(l[4],l[8]),webkitLineClamp:new h(2,1,1,1,1)},{spendManagement:{chargeCard:{cashbackDetail:qe}},dateFormat:{visual:Ae}}=w.getLocalizedStrings(),_e=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=
|
|
97
|
+
`,x={containerPaddingLeft:new h(l[3],l[4]),containerPaddingRight:new h(l[3],l[4]),containerPaddingTop:new h(l[2],16),containerPaddingBottom:new h(l[2],16),containerMarginLeft:new h(l[4],l[8]),webkitLineClamp:new h(2,1,1,1,1)},{spendManagement:{chargeCard:{cashbackDetail:qe}},dateFormat:{visual:Ae}}=w.getLocalizedStrings(),_e=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=b(),r=ee(),c=X(e.period),p=Z(c);return t.jsx(Xe,{windowSize:s,isFirstItem:a,isLastItem:n,children:t.jsx(Ze,{children:t.jsxs(Qe,{children:[t.jsx(Ue,{windowSize:s,responsiveWidth:r[0].width,children:t.jsxs(et,{windowSize:s,children:[f(e.period).format(Ae.MMMMYYYYFormat),p?t.jsxs(Je,{children:[t.jsx(Ne,{}),t.jsx(He,{children:qe.tillDate})]}):null]})}),t.jsx(tt,{windowSize:s,responsiveWidth:r[1].width,children:t.jsx(it,{windowSize:s,children:T("0,0.[00]",{amount:e.amount,currencyCode:e.currencyCode,currencySymbol:e.currencySymbol})})})]})})})},He=o(O)`
|
|
98
98
|
color: ${e=>e.theme.colors.grey1};
|
|
99
99
|
`,Je=o.div`
|
|
100
100
|
display: flex;
|
|
@@ -175,7 +175,7 @@ import{d as j,q as f,V as t,bA as te,fd as z,b as u,b2 as N,bZ as ie,o as i,F as
|
|
|
175
175
|
width: 100%;
|
|
176
176
|
display: flex;
|
|
177
177
|
justify-content: end;
|
|
178
|
-
`,D={containerMarginLeft:new h(l[3],l[8]),webkitLineClamp:new h(2,2,1,1,1)},{spendManagement:{chargeCard:{cashbackDetail:ot}},dateFormat:{visual:rt}}=w.getLocalizedStrings(),at=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=
|
|
178
|
+
`,D={containerMarginLeft:new h(l[3],l[8]),webkitLineClamp:new h(2,2,1,1,1)},{spendManagement:{chargeCard:{cashbackDetail:ot}},dateFormat:{visual:rt}}=w.getLocalizedStrings(),at=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=b(),r=X(e.period),c=Z(r);return t.jsx(lt,{windowSize:s,isFirstItem:a,isLastItem:n,children:t.jsx(ct,{children:t.jsxs(ht,{children:[t.jsx(gt,{children:t.jsxs(pt,{windowSize:s,children:[f(e.period).format(rt.MMMMYYYYFormat),c?t.jsxs(nt,{children:[t.jsx(dt,{}),t.jsx(st,{children:ot.tillDate})]}):null]})}),t.jsx(mt,{children:t.jsx(xt,{children:T("0,0.[00]",{amount:e.amount,currencyCode:e.currencyCode,currencySymbol:e.currencySymbol})})})]})})})},st=o(O)`
|
|
179
179
|
color: ${e=>e.theme.colors.grey1};
|
|
180
180
|
`,nt=o.div`
|
|
181
181
|
display: flex;
|
|
@@ -232,10 +232,10 @@ import{d as j,q as f,V as t,bA as te,fd as z,b as u,b2 as N,bZ as ie,o as i,F as
|
|
|
232
232
|
flex-direction: column;
|
|
233
233
|
`,xt=o(O)`
|
|
234
234
|
color: ${e=>e.theme.colors.hero};
|
|
235
|
-
`,J={separatorMarginLeftRight:new h(l[3],l[8])},wt=({cashbackByPeriod:e,uiState:a,onColumnSortConfigChanged:n})=>{const s=
|
|
235
|
+
`,J={separatorMarginLeftRight:new h(l[3],l[8])},wt=({cashbackByPeriod:e,uiState:a,onColumnSortConfigChanged:n})=>{const s=b();return t.jsxs(bt,{children:[t.jsx(Te,{onColumnSortConfigChanged:n,sortConfig:{sortKey:a.sortKey,sortOrder:a.sortOrder}}),t.jsx(yt,{children:e.map((r,c)=>t.jsxs(R.Fragment,{children:[t.jsx(ut,{cashbackPeriod:r,isFirstItem:c===0,isLastItem:c===e.length-1}),c===e.length-1?null:t.jsx(ft,{windowSize:s})]},r.period))})]})},ut=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=b()==="small"?at:_e;return t.jsx(s,{cashbackPeriod:e,isFirstItem:a,isLastItem:n})},yt=o.div``,bt=o.div`
|
|
236
236
|
display: block;
|
|
237
237
|
height: 100%;
|
|
238
|
-
`,
|
|
238
|
+
`,ft=o.div`
|
|
239
239
|
display: flex;
|
|
240
240
|
flex: 1;
|
|
241
241
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -243,7 +243,7 @@ import{d as j,q as f,V as t,bA as te,fd as z,b as u,b2 as N,bZ as ie,o as i,F as
|
|
|
243
243
|
max-height: 1px;
|
|
244
244
|
margin-left: ${e=>J.separatorMarginLeftRight.valuePx(e.windowSize)};
|
|
245
245
|
margin-right: ${e=>J.separatorMarginLeftRight.valuePx(e.windowSize)};
|
|
246
|
-
`,F={pageContentPaddingLeftRight:new h(l[3],l[8]),cashbackSummaryContainerGap:new h(l[3],96)},k=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail,Vt=({insightsData:e,cashbackByPeriod:a,uiState:n,cashbackSummary:s,onBackClick:r,onColumnSortConfigChanged:c})=>{const p=j(),g=
|
|
246
|
+
`,F={pageContentPaddingLeftRight:new h(l[3],l[8]),cashbackSummaryContainerGap:new h(l[3],96)},k=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail,Vt=({insightsData:e,cashbackByPeriod:a,uiState:n,cashbackSummary:s,onBackClick:r,onColumnSortConfigChanged:c})=>{const p=j(),g=b();return t.jsxs(Ct,{children:[t.jsx(te,{title:k.title,showBackButton:!0,showMenuIcon:!1,style:{zIndex:3},onBackClick:r,backgroundColor:p.colors.grey5,source:"CashbackDetailPage"}),t.jsxs($t,{windowSize:g,children:[t.jsxs(vt,{windowSize:g,children:[t.jsxs(P,{children:[t.jsx(I,{children:k.totalEarned}),t.jsx(z,{amount:s.cashbackEarned,style:{color:p.colors.brandColorJadeDark},decimalStyles:u.largeSemiBold.cssObject})]}),t.jsxs(P,{children:[t.jsx(I,{children:k.redeemed}),t.jsx(z,{amount:s.cashbackRedeemed,style:{color:p.colors.brandColorOpalDark},decimalStyles:u.largeSemiBold.cssObject})]}),t.jsxs(P,{children:[t.jsx(I,{children:k.available}),t.jsx(z,{amount:s.cashbackAvailable,style:{color:p.colors.brandColorGoldDark},decimalStyles:u.largeSemiBold.cssObject})]})]}),t.jsx(kt,{children:t.jsx(N,{children:({height:S,width:C})=>t.jsx(Le,{cashbackByPeriod:a,width:C,height:S})})}),t.jsx(jt,{children:t.jsx(pe,{insights:[{...e}],summaryTextStyles:{fontWeight:ie.regular,color:p.colors.primary}})})]}),t.jsx(St,{children:t.jsx(wt,{cashbackByPeriod:a,uiState:n,onColumnSortConfigChanged:c})})]})},$t=o.div`
|
|
247
247
|
position: relative;
|
|
248
248
|
box-shadow: ${B.dropShadowNormalLight} 2px 2px ${i.sp1};
|
|
249
249
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as tt,q as Ie,aw as It,a8 as Lt,gW as wr,hz as ki,aT as Qe,gX as xr,aO as et,V as t,g_ as ji,bA as Ii,c as l,fR as br,aL as Ge,aN as X,o as a,bR as Qt,p as d,F as ke,j0 as Sr,b as _,cn as Li,j1 as Di,f7 as Ai,gM as Ti,j2 as Ei,bD as Fi,bM as yr,aR as ea,j3 as Ri,j4 as $r,j5 as ot,y as T,bI as vr,b9 as ta,g as zi,aS as kr,a_ as Pi,j6 as Mi,j7 as Vi,b6 as aa,ai as ge,ez as Oi,iQ as Hi,u as gt,gZ as jr,cb as Ni,k as mt,b2 as Bi,di as Wi,cr as _i,co as Ui,d1 as Zi,hw as Gi,al as Oe,bT as qi,aX as Wt,j8 as Ra,j9 as Yi,R as za,M as Ir,b8 as Xi,ja as Ji,iK as pt,iV as Ki,i_ as Qi,i$ as eo,dq as Pa,eR as to,n as Lr,cw as Dr,iT as ao,bW as ro,l as Ar,jb as io,av as vt,bZ as Ma,bw as oo,da as no,am as st,gV as so,aq as co,L as lo,bE as ho,jc as Dt,fk as po,jd as Tr,gw as Er,je as jt,ib as Fr,bP as uo,ec as Rr,iW as mo,cz as go,dL as Co,cX as fo,iX as wo,iY as xo,ei as bo,ce as So,cf as yo}from"./index-
|
|
1
|
+
import{d as tt,q as Ie,aw as It,a8 as Lt,gW as wr,hz as ki,aT as Qe,gX as xr,aO as et,V as t,g_ as ji,bA as Ii,c as l,fR as br,aL as Ge,aN as X,o as a,bR as Qt,p as d,F as ke,j0 as Sr,b as _,cn as Li,j1 as Di,f7 as Ai,gM as Ti,j2 as Ei,bD as Fi,bM as yr,aR as ea,j3 as Ri,j4 as $r,j5 as ot,y as T,bI as vr,b9 as ta,g as zi,aS as kr,a_ as Pi,j6 as Mi,j7 as Vi,b6 as aa,ai as ge,ez as Oi,iQ as Hi,u as gt,gZ as jr,cb as Ni,k as mt,b2 as Bi,di as Wi,cr as _i,co as Ui,d1 as Zi,hw as Gi,al as Oe,bT as qi,aX as Wt,j8 as Ra,j9 as Yi,R as za,M as Ir,b8 as Xi,ja as Ji,iK as pt,iV as Ki,i_ as Qi,i$ as eo,dq as Pa,eR as to,n as Lr,cw as Dr,iT as ao,bW as ro,l as Ar,jb as io,av as vt,bZ as Ma,bw as oo,da as no,am as st,gV as so,aq as co,L as lo,bE as ho,jc as Dt,fk as po,jd as Tr,gw as Er,je as jt,ib as Fr,bP as uo,ec as Rr,iW as mo,cz as go,dL as Co,cX as fo,iX as wo,iY as xo,ei as bo,ce as So,cf as yo}from"./index-qaSB49F0.js";import{a as o,S as $o}from"./sentry-D4D7HRQR.js";import{n as r,c as we,k as zr}from"./mui-Fyk6sRCR.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-I555vKHy.js";import{k as Io}from"./NavigationDots-U7wL0ya4-Br1fZ1mY.js";import{A as Lo,i as Do,a as Ao,l as To,r as Eo,t as Fo,n as Ro}from"./add-to-wallet-DgdBD8_G-B2xhCimT.js";import{L as _t}from"./lottie--pGIoexZ.js";import{j as zo}from"./CardNumberSubText-BhtdU0IQ-BBiDBBhs.js";import{r as Pr}from"./core-D7_k1EhP.js";import{l as Mr}from"./uploadReceipts-CPw64UYa-C1oywu4M.js";import{L as Po,z as Mo,k as Vo,P as Oo}from"./LockCardPage-DHjkslVx-BLTQi4Ro.js";import"./liveblocks-BmXYR5uO.js";import"./recharts-j_eh1fXg.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";import"./RoleWithToolTip-New3P2vC-2KCZppVG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="34811f96-2160-409a-893e-af648b0884a3",e._sentryDebugIdIdentifier="sentry-dbid-34811f96-2160-409a-893e-af648b0884a3")}catch{}})();const Vr=ke.getLocalizedStrings().spendManagement.chargeCard,Ho=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:q}=Mi(),{isAndroidScreen:J}=Vi(),U=It(),D=At(U.loggedInUserRoleMap);return t.jsx(No,{style:p,children:q===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):J===!0?t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Jt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Bo,{}),label:Vr.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":X("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Wo,{}),label:Vr.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":X("add-to-apple-wallet-button")})},No=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|