@zeniai/web-cockpit-ui 1.14.28-qa → 1.14.29-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-BJ-dnfPw-0TSjj33a.js → ACHDetailsPage-BFxHvmJd-ByFu178F.js} +1 -1
- package/dist/assets/{AIPerformancePage-IQljMycg-CoxCqAgh.js → AIPerformancePage-DlyO-4ri-BpcX0MTN.js} +1 -1
- package/dist/assets/{AccountInfoPage-daLN7kJQ-Bwn8Rs2C.js → AccountInfoPage-Ce5hcVyA-DMTNHSLS.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BnEKIQY6-Bzl2rUvn.js → AccountInfoPageContent-gAieeMrA-p4EOrODV.js} +5 -5
- package/dist/assets/AccountLockedInfoModal-BSdv6XfU-D1Vnmrv0.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-6JW8I0XP-MgaNevwi.js → AccountReconDetailsDrawerPage-CfxXet8--UsONMXP5.js} +1 -1
- package/dist/assets/{AccountRow-vJ-Fr8DF-dx8T6Fsd.js → AccountRow-Bod2_1QW-D-hGmpHq.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-dFdTEnhq-CZKMHk5U.js → AccountsPromoCardStack-Dk3ZVanG-Dm2uyvqy.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-D4P_ajwQ-BvU4DlHw.js → AddAddressForCardDrawer-BWqEsKYC-BObrYWEa.js} +1 -1
- package/dist/assets/{AddToWalletPage-CHzrdDJP-D8p-yYUZ.js → AddToWalletPage-CehOd-PJ-on8FN-ge.js} +1 -1
- package/dist/assets/{AgingReportsPage-BHYWYs9A-BDE-qDx6.js → AgingReportsPage-DAP7-9bB-Drn1SIJV.js} +1 -1
- package/dist/assets/{AllUserItems-kaXy0cJ_-CNd3-nak.js → AllUserItems-I4cKfaLm-DFs5pKwa.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-BmFABpno-CY5xNMKy.js → ApAgingDetailPage-DpCAK2uw-BXtogY7Q.js} +1 -1
- package/dist/assets/{AppBasePage-3b4e8alc-TAa34qha.js → AppBasePage-sLzDBcrA-CG7X17G1.js} +1 -1
- package/dist/assets/{AppDrawerContent-Of5QL5jD-ChhsJzGi.js → AppDrawerContent-Dsj42lRb-BT6OryeP.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-Dk5sL0Dm-Dv9azzue.js → ApprovalRulesSettingsPage-BxU7GZ1o-DXY6tUvU.js} +1 -1
- package/dist/assets/{ArAgingChart-zBCV3C62-Dq36ljUM.js → ArAgingChart-CUaYV40r-jOfuIy_A.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-r9uxza_I-BsspkhCE.js → ArAgingDetailPage-DZqZLKy5-DCrGwgTr.js} +1 -1
- package/dist/assets/{AttachmentView-2JM2KpDo-Bh18VBou.js → AttachmentView-BZxXMELt-BaOrmhpI.js} +1 -1
- package/dist/assets/{BankAccountSection-Bn88ZQyY-B_aLXesc.js → BankAccountSection-C-eMzyJG-CFsMOYmA.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CqP30qlx-ClabeBrc.js → BankAccountWarningSection-wjgkG3br-GmGPfYq_.js} +6 -6
- package/dist/assets/{BankConnectionsSettingsPage-Cdv6t_B3-qX5-5QoP.js → BankConnectionsSettingsPage-D8MrN0k6-DpjOGdMS.js} +6 -6
- package/dist/assets/{BillDetailPage-CpfktvDl-D4Uy-5rx.js → BillDetailPage-yK74O_Dt-XpG4jcGq.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-D9DE_Vce-A1WZO7R5.js → BillPayApprovalRuleDetailPage-D_kdV7c--BkpOd9oo.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DatR_9GC-osk8_qOo.js → BillPayApprovalRulesPage-Cddmo3mA-LLuXe52O.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CNWYf2nB-CBMD5RxD.js → BillPayPromoPage-uVNRC90s-acPGyNO3.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BGo1dXS6-D_5iCRen.js → BillPaySetUpPage-Dd_MhoF5-DiGGX2rT.js} +1 -1
- package/dist/assets/{BillingSettingsPage-TaomNdoa-CqAsyl-s.js → BillingSettingsPage-YdIAtpZS-BmAyqUje.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-MDJx8O6r-CNeAjQU6.js → BillsBulkReviewDrawerPage-B_JkHP1X-KfMHLTjl.js} +1 -1
- package/dist/assets/{BoxItem-CRLLf8CY-Bcvs4I-j.js → BoxItem-DIbpeSiB-B47dtyeF.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CR0VFw7e-CfYiiAsv.js → BusinessVerificationPage--qLJidPg-5WZlrvdU.js} +1 -1
- package/dist/assets/{CardNumberSubText-rAv-gh4W-BSBRaT93.js → CardNumberSubText-CoLig9qO-Bb3ukxab.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DmmNt65i-DcFEsp6P.js → CashbackDetailPage-CL2ekC-d-C0Q1yZjK.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-CJirTThm-B2OxOE9O.js → ChargeCardDetailPage-C5YK1RTl-FCcaAawm.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BdZZR19X-BbcCD4Cs.js → ChargeCardListPage-C34cXCwZ-DgtkJI2T.js} +8 -8
- package/dist/assets/{ChargeCardListTable-BXFjcRNB-Bt7NvMOu.js → ChargeCardListTable-D2MxebdW-QA28WwT6.js} +8 -8
- package/dist/assets/{ChargeCardPromoPage-DkBT3XNI-C3oAX2Mk.js → ChargeCardPromoPage-DiamgYrP-XJHQ1I04.js} +6 -6
- package/dist/assets/{ChargeCardSetupPage-BUI9rGke-F48qfEoc.js → ChargeCardSetupPage-DwuH7QkV-BwiFFbQs.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DvtO3kDU-rBVchx1D.js → ChargeCardStatementsPage-v2KcWk13-DJm6gUu7.js} +2 -2
- package/dist/assets/{ChargeCardUtils-s0f7WDmF-DROWW4W4.js → ChargeCardUtils-zpJF3Rda-Be5yTQoe.js} +1 -1
- package/dist/assets/{ChaseOverlay-CpfVlOOJ-DUmatajH.js → ChaseOverlay-DjKikFfn-CLpspWOE.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-B1gXv1Wl-DpbqqEtI.js → CheckDepositDrawerPage-DRdQ8ewr-jW8DbAWr.js} +1 -1
- package/dist/assets/{CollapsableReportTable-C8l4zS8O-B2sGnOg4.js → CollapsableReportTable-DeVXK9Wh-CgCz-Q7-.js} +46 -46
- package/dist/assets/{CompanyOfficerDetailsSection-2Kp3dlIG-CUj0BZ_V.js → CompanyOfficerDetailsSection--mYIj08P-DM7zsZa7.js} +18 -18
- package/dist/assets/{CompanyPassportCard-D9MV32Z4-DRyajerq.js → CompanyPassportCard-BetMObXy-DpYq364M.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DJ8n927O-AsHU95o1.js → CompanyPassportPage-B61dTsv1-NeDYgziB.js} +1 -1
- package/dist/assets/{CompleteProfile-NosC7teS-CWLlcEyL.js → CompleteProfile-DA7CQ4Fe-CsHJVEhv.js} +8 -8
- package/dist/assets/{ConfettiBurst-edV2fAAY-F1yC_yIb.js → ConfettiBurst-BHOL5tI9-DwpmJ28Z.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Dca5mbtW-D1a_dFxF.js → CreateOrEditVendorPage-TAwTx0qY-CMUDbBYf.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CBfP6wVk-BAvIP3ds.js → CreditCardPaymentDrawerPage-CrHFOM8I-Ce0iYAOC.js} +11 -11
- package/dist/assets/{CreditCardPaymentPlgSection-NL4GrNze-DG9T4yGs.js → CreditCardPaymentPlgSection-BpNE78CU-stoFu9l7.js} +2 -2
- package/dist/assets/{CurrencySelectField-VuFtHEC_-MgujTxf_.js → CurrencySelectField-C-RWEZ3_-Dg_ke37X.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DfiWFVnF-Dqu7x6wI.js → CustomerOnboardingActivationPage-CvBia2jV-DhOcfWyg.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-yAYlDV-o-ehXByQiI.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BId2pCpr-DdJ4wVFX.js → CustomerOnboardingDetailPageSkeleton-tEZUFgN4-CtaDPa2W.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-Ceu7WsPG-B4hl-bk6.js → CustomerOnboardingNoStepsPage-BArUCUM_-BXJqiQYG.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-CqmjziMS-DRhzxTql.js → CustomerOnboardingPage-CbNJqARH-BG0Cktvq.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-B7EUlLRS-BVR61QTK.js → CustomerOnboardingProductSuitePage-B6gjDU3C-D5oHEKiW.js} +1 -1
- package/dist/assets/{Dashboard-CZcKIIRw-CE-5cTyX.js → Dashboard-gvIzffJ9-ctPlyJde.js} +1 -1
- package/dist/assets/{DashboardReportPage-Tzs7dP4J-CJXrBNuc.js → DashboardReportPage-BJ64WZUp-CCkAXm22.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CJ-5jfvs-Bpd8qkRi.js → DashboardSidebarBackgroundAnimation-DwjZa9es-QdH6U1eL.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-7udg3PVs-bCUHbq1V.js → DepositAccTransactionItem-IAn1U4kN-CjpoAiVy.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BnjVlIvU-CnjKfm6-.js → DepositAccTransactionListPage-B3SKKNMg-Bi5_9rfL.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-yO0rp42a-QE5oZq2D.js → DomesticWireDetailsPage-C1HRdCmN-DqEwFf10.js} +1 -1
- package/dist/assets/{DownloadOverlay-D2klhqsr-BG6f4wfN.js → DownloadOverlay-BmQZLBj6-CeGmrDZU.js} +1 -1
- package/dist/assets/{DrawerPage-BTIs3jN0-BvpemFRM.js → DrawerPage-wRZ6m1ya-BwES9IKS.js} +5 -5
- package/dist/assets/{EditPeoplePage-DUwEkdAy-CLWYluCR.js → EditPeoplePage-DTu-2Jmo-DpCtBasp.js} +6 -6
- package/dist/assets/{EditReimbursementDetailPage-DQEEgz41-CEe4iJ9G.js → EditReimbursementDetailPage-BcMbpbMh-BEOVQHyQ.js} +57 -57
- package/dist/assets/{EntityDetailPage-BngjWvj5-B39ZnGmV.js → EntityDetailPage-uRWNa1Xx-CbauyZbo.js} +1 -1
- package/dist/assets/{EntitySummarySection-CvAlUDlh-BLVWuzIJ.js → EntitySummarySection-BJ-xgnjY-CfCV7KZH.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-HJtMnarE-D17rQNWU.js → ExpenseAutomationOverviewPage-D5Dazh1S-fmHFtSWv.js} +6 -6
- package/dist/assets/{ExpenseAutomationPage-C-F6N_gG-BIS-Tg0L.js → ExpenseAutomationPage-QPHgPO-n-D1TwqHJk.js} +1 -1
- package/dist/assets/{ExpressPayPage-CvgiD1W2-nUhWOk4F.js → ExpressPayPage-CFjhv8e0-CLdLY2HE.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BRFVZhfT-COHv5gxz.js → FeaturePreviewPage-WtsZyzLm-CJnmzi4C.js} +1 -1
- package/dist/assets/{FollowStepsSection-B7WK_dWR-EqUsRipO.js → FollowStepsSection-n5G8JNUr-j-dHhoyW.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-1yw-Aq21-j7XQFj2A.js → GlobalReviewListPage-BT-_wlme-BfDIRTou.js} +1 -1
- package/dist/assets/{HelpButton-C6Iv61BM-BVtByn9F.js → HelpButton-Cejsxx_E-DbOhIKff.js} +1 -1
- package/dist/assets/{InformationCardStack-BOnXC_3i-DdV720rh.js → InformationCardStack-DDYokaYB-CswoRqZg.js} +1 -1
- package/dist/assets/{InsightsCardStack-CpJLeS5a-UDtClLEP.js → InsightsCardStack-CiwHc2IJ-Cnkau5Ue.js} +1 -1
- package/dist/assets/{InsightsSection-CZh1SnGj-c0KP9Cfn.js → InsightsSection-BVuiIwCl-BRBuC4Eu.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BmmKPNgQ-D94tAFqN.js → IntegrationsSettingsPage-mjEWuOQh-B04ioztv.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-Ea4cYrDb-wZ0o6CwL.js → InternationalWireSwiftDetailsPage-oxy_-0Bd-BSdZ96oS.js} +11 -11
- package/dist/assets/{InternationalWireVerificationPage-D_EGh2-b-Dg6_MikZ.js → InternationalWireVerificationPage-BEvs1Zzh-B11WyrNv.js} +1 -1
- package/dist/assets/{InviteFormPage-DezoHyI1-CCF-T77o.js → InviteFormPage-DNwxbnAY-B-1J9fvc.js} +7 -7
- package/dist/assets/{InvitePageListView-N9UnXZ8Z-D0nJHIMH.js → InvitePageListView-B67pRygu-9vQTKQ40.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DwNLN50N-BrgcV6ty.js → InvitePeoplePage-dQc-xkG2-C3nKdZB6.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-CGZ4FmYr-NkBIRVVd.js → InvoiceUploadSection-gu3WFQvS-DK78m306.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-FfE3V2h5-BjTdoQvx.js → IssueChargeCardPage-ChXG7KhZ-B63rlcKb.js} +28 -28
- package/dist/assets/{LabeledAddressValue-DvJrVTYN-BU092m5O.js → LabeledAddressValue-CSsof-tz-D1c4WIxW.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-CTm0OvN8-DLFBRilq.js → LabeledAddressValueField-CSq0Hzf_-Cy8z_cOn.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BnJslVpV-BXpPHegG.js → LabeledControlledCheckBoxField-BDA4nfH4-D0iYyig-.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Cy0TQ_sm-D3wFmzg1.js → LabeledCreatableSingleSelectField-CyDTS5Be-DLsqnUG_.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BPen9EG9-DLgtlaxk.js → LabeledDocumentField-DIRpefMQ-LAyXkW2Q.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CgFW6UZE-qRkiRI6D.js → LabeledDropDownFormattedTextField-Dd5B-qHO-La1URpjF.js} +1 -1
- package/dist/assets/{LabeledText-D4krUfU4-Dw4AJ7QQ.js → LabeledText-B3z8VP-f-BpT69LKS.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CJ78VxhW-CsTkAvXv.js → LabeledUserSingleSelectWithSubtitlesField-sEaQ7bWc-CTVN56-f.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-o2RQGy6G-BOBCECNE.js → LabeledZeniRolesDropDownField-OjHDEHpY-ZD0JSIcE.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-C3wO777n-enVVZ-3B.js → LinkJETransactionPage-Bwu7V6Nn-CYJtirfN.js} +1 -1
- package/dist/assets/{LowBalancePopup-QeOj8rch-i9N08Ch-.js → LowBalancePopup-BH1q738Q-CDbyaR5p.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CyQqROSQ-CF8LdZMD.js → MagicLinkACHDetailsPage-D7FGZvpj-SLSCCI9C.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BqALNA2T-DdY6mXQK.js → MagicLinkDomesticWireDetailsPage-CeJ9_49p-BB3FpFYq.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DR6HRSOe-BqUhtyl1.js → MagicLinkInternationalWireDetailsPage-BPSLWK-v-0WEG9sQr.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-A7M1b8Bb-CCdQC7WS.js → MagicLinkSuccessPage-DBxwutBP-DCEDIulj.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DquEXuD8-Cbg6TSCG.js → MagicLinkTitleSection-CiKK8TTZ-nbr3M-Lg.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CH-8q7WQ-DSEpjbnF.js → MailingDetailsSection-DZAuNq1S-BtPc-rx6.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-DitR3JDv-B2ELvbD2.js → MeetingCalenderPopup-BYqoYPoy-DWbEFvhX.js} +1 -1
- package/dist/assets/{Menu-d80Blu70-eyWyCGah.js → Menu-BymbDNVZ-DM3DjWyb.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BNlGivQQ-CVpQEA1_.js → MyBankConnectionsSettingsPage-9VEiITSS-Bza-Mt8h.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-AAH1Kb40-DSUZ5bun.js → MyPendingActivationChargeCardListPage-Deo4IjpU-DjR3u08U.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-Lq70s8Rf-ZxxTV7CS.js → MyProfileSettingsPage-CDH9zQYt-DO-oYnlS.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DlcPGBly-D8xKMH1O.js → NavBarWithPicker-BVIRoFkg-uLt3O1KT.js} +1 -1
- package/dist/assets/{NavigationArrow-B38APViS-BsBZ4H4_.js → NavigationArrow-nncSGFTK-Bbp-nQcC.js} +1 -1
- package/dist/assets/{NavigationDots-BeVhadXT-CV_pkfV2.js → NavigationDots-2l4DJyet-Cj8JLkJu.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CcM0M2qt-Wj6hNRxG.js → NewGlobalMerchantPage-DJfaQVlP-CNjcIUFo.js} +1 -1
- package/dist/assets/{NoDataChart-BdJ9cIfU-h1pEqH_y.js → NoDataChart-BfK5ibkE-Dl5Q_ks_.js} +1 -1
- package/dist/assets/{NoDataTable-D5sl7D5L-DQi02bBy.js → NoDataTable-D-wXCbuN-q98oT9c8.js} +1 -1
- package/dist/assets/{NotFoundPage-DOrZNbji-D71pPMzw.js → NotFoundPage-8SevFrTd-84hd01on.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-8-tcxTQb-BUSkNtY6.js → NotificationSettingsPage-CnV8oslw-DrvTgihH.js} +1 -1
- package/dist/assets/{NotificationsListConfig-By-e8Frl-DKMoasJt.js → NotificationsListConfig-ai2MqByd-0wlhqgyM.js} +1 -1
- package/dist/assets/{NotificationsPage-DkthdPVD-xUxFkxlZ.js → NotificationsPage-ODo2BWlg-D-S70lpm.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BSd0ZwXR-BQ1ujNBS.js → OpExByVendorPage-abOvLTT--dMvgq3O1.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-CuI9P5BS.js → OverlayContainerPage-Bmu909Fo-C9bvK7Lv.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CdXzLIwl-BeWXYuvy.js → PandLWithForecastPage-D9cn6hnq-CC0OcFO_.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CvdwrTFj-DgwIGpc-.js → PaymentAccountSetupBillingAddressSection-BhGNRlcK-CiQSTMi7.js} +1 -1
- package/dist/assets/{PeoplePage-D9apqkWO-DLO2x726.js → PeoplePage-C2BcygGZ--G7c8fuu.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-BcQovSMI-_Utb9AcO.js → PortfolioAllocationFormPage-D6MaYDJG-zEJADMC3.js} +1 -1
- package/dist/assets/{PortfolioDetails-RS8JuL0p-BaSXdmM6.js → PortfolioDetails-DOWP4IQE-CU70QuaO.js} +1 -1
- package/dist/assets/{ProductsCarousel-47vJAdBR-CCJAEyFp.js → ProductsCarousel-EKirw7ua-D-T9J4k_.js} +1 -1
- package/dist/assets/{PromoBaseCards-C41gmAao-BjkCmCkU.js → PromoBaseCards-CC4THVdC-6kRLHFkY.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CRbY0usB-Cr6Q8Ws3.js → QBOConnectionDialog-dwZjMC7l-mqFn9Iuy.js} +1 -1
- package/dist/assets/{QBOSetupSection-CAszn53C-C1WPxf80.js → QBOSetupSection-CQHr233V-BhlmfNKw.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BXVaxgJK-P-a1AfKp.js → ReimbursementApprovalRuleDetailPage-o5h1gtQ2-BYxZ453f.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-3kuOwKmm-0jkQnpk8.js → ReimbursementApprovalRulesPage-D3jjV4ml-BDSde1VQ.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-Bi5J9eXE-BK0YT8VH.js → ReimbursementDetailPage-DWfalS3j-BUmxj63M.js} +4 -4
- package/dist/assets/{ReimbursementPromoPage-DOOMtWlG-IVZI0rMK.js → ReimbursementPromoPage-6FsYdHUs-DDKWeUAJ.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Baz_grxU-Cg2rYjs7.js → ReimbursementSetUpPage-DMdLQfnx-BWZ8MYK1.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Dt-HKY5F-CWAQYQiv.js → ReimbursementsBulkReviewDrawerPage-B8FqQ7Xy-CZNoa-Rk.js} +1 -1
- package/dist/assets/{ReloadCard-BifFraMi-albWACGt.js → ReloadCard-PlwzuU5x-Cjgf9pT_.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-KNeiMS0F-ClvzQTty.js → ReportTableViewSelector-CWL2S1We-DbUXuzEd.js} +1 -1
- package/dist/assets/{ReportsPage-CNkkwysL-Bg6UIsxg.js → ReportsPage-m3klpEFJ-DP2gp0_Z.js} +1 -1
- package/dist/assets/{RevenueChart-DzDV07A2-Cyi9DXoa.js → RevenueChart-DcmdF3_p-krx9UW8E.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BbG4g3E8-DwlGbjf5.js → ReviewDetailsPage-4sQNUTvD-X-E72kD1.js} +11 -11
- package/dist/assets/{ReviewOverlay-yQoTr8lD-COjRaZl4.js → ReviewOverlay-DZzuvO3p-Dgv2aEV0.js} +1 -1
- package/dist/assets/{RoleWithToolTip-BoqVFkyJ-Be7E21z_.js → RoleWithToolTip-Dlkvv78V-CAYGZdA6.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CqHZm1Lr-BzN4JcW3.js → ScheduleDetailsFixedAssetsPage-KjW-k5Y7-CGQvcAs2.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-D95MDPLb-CDjB3mQQ.js → ScheduleDetailsPage-CqqblP-w-DvUch-Zi.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-QKBV8Rh6-DyPHPGU1.js → ScheduleSequenceTable-mSOKTTlS-D5ZmhYeE.js} +1 -1
- package/dist/assets/{ScreenRoutes-cjhfkp1W.js → ScreenRoutes-BPU1QGQl.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CivUASk0-C3ChKTix.js → SetUpAccountSection-Phy6Ec2u-fxxQCnq-.js} +10 -10
- package/dist/assets/{SetUpDefaultSection-Dpvt1AOg-Ckz4tu8U.js → SetUpDefaultSection-fQGcSH2--i6_Lmo2x.js} +1 -1
- package/dist/assets/{SignIn-ChcfkzWu-DEdZKKg-.js → SignIn-C-PFuO0m-D93t7UpP.js} +1 -1
- package/dist/assets/{SignInScreen-CZOZVH3L.js → SignInScreen-SukNyBA0.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CLLEMwQs-BzXZuBc1.js → SpendManagementListViewPage-DChTbWSE-D3wZN3Zk.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CRiAfSH5-C3stHOlA.js → SpendManagementPerTabPage-D14kKu2e-DCk13Tm7.js} +1 -1
- package/dist/assets/{SpendManagementSection-Bt1iw0P4-C-kMkys3.js → SpendManagementSection-f75XRlnr-D0d4hqP2.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-Bunn0CsL-B9t_MQ32.js → SpendMgmtSetupAccountSection-D5iTQjyq-C5Z8ggWG.js} +17 -17
- package/dist/assets/{StatementItem-YJO1OB87-78KgPqTZ.js → StatementItem-Cv-OdXSM-OM0kuThg.js} +2 -2
- package/dist/assets/{StatementsPage-DSMHcloa-MMbkWMEg.js → StatementsPage-G2-vQ8DB-CvZWWCxB.js} +1 -1
- package/dist/assets/{StatusSwitcher-CvfaUdek-B2CfrFbx.js → StatusSwitcher-DxYD5Ja7-AgvsUXg4.js} +1 -1
- package/dist/assets/{SubTabSwitcher-G4gv3gJ3-DvEpI02Y.js → SubTabSwitcher-BiYp7vuJ-DKSMFUWI.js} +1 -1
- package/dist/assets/{SummaryCard-CTVwtanJ-CianRnEj.js → SummaryCard-pyXMhrq3-CbgSatl0.js} +1 -1
- package/dist/assets/{TaskManagementPage-5Ec927O3-COWtO35Q.js → TaskManagementPage-CVJYAMAi-CLhRJhsF.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-Duk_cxL3-DDiYjPFH.js → TimeRangeSwitcher-B3et4KjB-UcPLvuaH.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-D2M4wsdx-C9qdvcjh.js → TimeframeSwitcher-CR9lNmBv-CMg3OFl2.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-D40T2StV--3Q3KXsb.js → TimeframeSwitcherWithToggle-Cqg-FqH6-CryRd8o3.js} +1 -1
- package/dist/assets/{TopExCard-zr-Bpnxj-D4RYSL5g.js → TopExCard-CtdmvFZO-BZhaXXXe.js} +1 -1
- package/dist/assets/{TopExDetailPage-DTUKUnOd-De4dlApE.js → TopExDetailPage-wug5a7Li-zKOp3_ki.js} +1 -1
- package/dist/assets/{TransactionDetailPage-ozHiGv6U-DHsVek4G.js → TransactionDetailPage-Da7WVq4_-BssMkSGK.js} +1 -1
- package/dist/assets/{TransactionList-CSn85b5u-14fiJYV1.js → TransactionList-LjRJxI3M--_Ik0-xu.js} +1 -1
- package/dist/assets/{TransactionListBig-C9p2VN54-B0q-S5p6.js → TransactionListBig-Id6PXgvs-ByI2LU9P.js} +1 -1
- package/dist/assets/{TransactionListPage-B7LdFKzx-DLoTU0ZB.js → TransactionListPage-kfu55-kS-F0jSh-lJ.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BtRTh_Xl-9LjYSh20.js → TransactionVendorDetailPage-79YN8dxq-D3b0rV1q.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DbDJgKfJ-lDnbBBYg.js → TransferDrawerPage-B04LTalY-DbUhLqid.js} +30 -30
- package/dist/assets/{TreasuryOverviewPage--G-ivcMv-CmTgh4XH.js → TreasuryOverviewPage-DFJEmdVI-BKtOj5Di.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-sWm8B1Pi-V2YbZDQc.js → TreasuryPromoPage-C1lduNcU-cm0But7g.js} +9 -9
- package/dist/assets/{TreasurySetupPage-CZUEtQf8-CZSsmy2z.js → TreasurySetupPage-B1MsJdNE-CF2VtpCQ.js} +5 -5
- package/dist/assets/{TreasuryStatementsPage-BGdjejum-AoL8qVHR.js → TreasuryStatementsPage-DpolhjX_-B4TFi13H.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BwlUJBZF-CzVzcni1.js → TreasuryTaxLetterPage-CzoqotWr-CEZfJnVV.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-CZFWp3tB-HCJedu9Y.js → TreasuryTransferOrReviewPage-0NUKlqGL-DHhoaZ4o.js} +1 -1
- package/dist/assets/{TrendChart-UFPnMcoI-CxRVPPzC.js → TrendChart-XplufDEe-70PICXXA.js} +1 -1
- package/dist/assets/{TrendWithTransactions-lsLibePw-D-A4y3l3.js → TrendWithTransactions-CSog_rOD-B5Jat2Lt.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-rdw9cz7B-C9xl0K4-.js → UncategorizedAccountsMappingPage-C6YrQh4x-BAP01CiK.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-Bb16SBG4-DZCDEZ2u.js → UnitIntegrationPage-q_pa_XH0-CVy-0yVP.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-92iAk-bm-Bk_vB2q9.js → UploadAdditionalDocumentOverlay-BT2BHgsi-mJFaB3wn.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BDZZ03vf-C7rF6e_v.js → Vendor2FAPopup-DCCV-GUD-CILQySAh.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-7sgvrYPB-DdP_fAfn.js → VendorACHDetailsPage-n8wVldxp-Cv8-r5at.js} +1 -1
- package/dist/assets/{VendorDetailPage-BgciBntp-CeMQChGW.js → VendorDetailPage-BQmIH16w-CUAONaJI.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-D7vRzlEy-DO4tm68A.js → VendorDomesticWireDetailsPage-C9IgXF8U-C2gNIP4h.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BLFZOXLa-CcX89CEC.js → VendorFiling1099EditablePage-CX0-Fu3L-S2eSB8Ke.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-BrRiV59P-CKjXOxJs.js → VendorFirstReviewPage-gl_8f-Y--nRmpGB8p.js} +10 -10
- package/dist/assets/{VendorInternationalWireDetailsPage-Dg2n9VJ9-BFwCY1xY.js → VendorInternationalWireDetailsPage-CD2LtNey-OBaVpM2T.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-ZpNfAdQB-B3jdKjNK.js → VendorInternationalWireSwiftDetailsPage-CnYpnS9U-BtauKb3Y.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-CrQsOTwQ-CAQX4HLL.js → VendorsAccountsSection-Dowt7g0z-CTKkvdoI.js} +1 -1
- package/dist/assets/VerifyDevice-DUrMCdMv-VlaqW0Hs.js +112 -0
- package/dist/assets/{VideoPopup-nPxoddQZ-CdmDHHSl.js → VideoPopup-CxKztOGT-DEX7cj2j.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-BYG7Y9oJ-B7lPiKXC.js → WarningsDrawerPage-xX0HZSlF-CJywejKM.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BGXyRBID-BZ418iHN.js → ZeniAccountDetailPage-CFNnfKrO-BzBMN-G8.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-DHRgUy1T-BN-yihez.js → ZeniAccountListViewPage-D0l8WQXG-15O9otHi.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-BsTbQ2IN-IEVGnebY.js → ZeniAccountNavBarPieces-DLdFG-gZ-Lg82eLgr.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CHyIFO9o-CJDlYl7i.js → ZeniAccountPromoPage-Cz8IxFdk-DxEDI7Ds.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CzoKcjEM-CmZcnLIN.js → ZeniAccountSetupPage-ZwqkoXuR-B2kT0Ihw.js} +1 -1
- package/dist/assets/{ZeniCopyright-BPbOiRaG-GBwqIx3c.js → ZeniCopyright-CyG9rGnL-Di0O3BP9.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Bif463bN-CyxUIO5q.js → ZeniTransferAmountSlider-Clgz7h31-7wM3Fk8X.js} +1 -1
- package/dist/assets/{analyticsHelper-CCPSiVgE-BvF4dCEw.js → analyticsHelper-BrNbUtQZ-BSs3vRdj.js} +1 -1
- package/dist/assets/{analyticsHelper-BphR4l4A.js → analyticsHelper-W4e93670.js} +1 -1
- package/dist/assets/{chartTypes-CvYNhWx5-OTU-mvA5.js → chartTypes-D62DZasc-Cg_rpQL9.js} +1 -1
- package/dist/assets/{commonDimensions-DS-Ok384-eoq34XUo.js → commonDimensions-DsEmTJ8o-DqHucb_9.js} +1 -1
- package/dist/assets/{detailCommon-Jibz39eB-DIPuAks3.js → detailCommon-1Zms5FpC-CjmB02t2.js} +2 -2
- package/dist/assets/{downloadPdf-D0tiRCmN-nUHSVanl.js → downloadPdf-B2dA1tl0-DGv4XoQv.js} +1 -1
- package/dist/assets/{index-CLgXcFOQ.js → index-DIh8Zr8t.js} +5 -5
- package/dist/assets/{mapLoadingInProgressToTreeNode-ZdrDWAuW-DytUr9A8.js → mapLoadingInProgressToTreeNode-CmCO5BRd-C7twjlOe.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-pOkMQUF0-dCXvrLxK.js → mapSectionWithAcOnlyToTreeNode-Cr5GnzzL-CsWQb2p6.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BaK_ANcF-CJ7Mjo5c.js → mapSpacerToTreeNode-DEwSvjsB--UxLcfaH.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DHxWRud0-3HZMLbuz.js → mapTimeframeBalancesToTreeNode-7JGJqi3f-Cl4AB4gb.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BgFH1AIj-DlcFvj8e.js → mapTimeframeBalancesToTreeNode-CjKZMUgV-BiM8A1Hb.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CT7PwiPQ-DJUxQoJo.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DlhIK5YN-CEQNqemG.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-Bffx9VR7-DAFbSyCZ.js → toCOABalancesWithID-DCjmMFnE-Dpv6R9pI.js} +1 -1
- package/dist/assets/{toChartData-BGk1OWTR-D_M9aUPQ.js → toChartData-tGsV_9D9-DDec79o5.js} +1 -1
- package/dist/assets/{treasuryColorHelper-B3ItUlG0-Bmsf3BND.js → treasuryColorHelper-jTB0RHjz-Bm7NDFdi.js} +1 -1
- package/dist/assets/{uploadAttachment-CVYInC6U-BD5EjufZ.js → uploadAttachment-Bkt_viXo-BERYP2_s.js} +8 -8
- package/dist/assets/{uploadReceipts-dxsKhm9I-CT1w2L5u.js → uploadReceipts-dxsKhm9I-Dga8nbrD.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountLockedInfoModal-BS4zHJX3-uCQ1et1s.js +0 -59
- package/dist/assets/CustomerOnboardingContainerPage-CPVMgdRa-LrYDzA8w.js +0 -1
- package/dist/assets/VerifyDevice-BN-yDYSC-B6tatstC.js +0 -97
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as g,B as w,j as t,v as x,J as $,o as s,y}from"./index-
|
|
1
|
+
import{e as g,B as w,j as t,v as x,J as $,o as s,y}from"./index-DIh8Zr8t.js";import{n as o,b as d}from"./vendor-rkTZJa59.js";const C=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(y)`
|
|
2
2
|
${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as k,e as f,j as t,aX as te,B as w,cV as P,v as u,aj as q,
|
|
1
|
+
import{u as k,e as f,j as t,aX as te,B as w,cV as P,v as u,aj as q,bv as ie,o as i,g as B,C as h,s as v,dg as oe,l as y,q as l,b7 as re,b8 as ae,aw as se,av as ne,ab as de,b9 as le,bb as ce,iu as he,a0 as T,bn as pe,$ as z,w as $,iv as J,iw as Q,ic as ge,c3 as me,c6 as xe,k as O,id as we,ie as ue}from"./index-DIh8Zr8t.js";import{n as o,f as R,b as V}from"./vendor-rkTZJa59.js";import{B as ye}from"./InsightsSection-BVuiIwCl-BRBuC4Eu.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./NavigationDots-2l4DJyet-Cj8JLkJu.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(G,{children:W.month})," ",t.jsx(A,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(G,{children:W.cashback}),t.jsx(A,{children:T("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ve=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Be,e as fe,Y as nt,x as st,fi as Ka,l as Ne,h1 as qr,a8 as He,B as pe,fj as Xa,j as t,gr as Gr,aX as Kr,q as c,fr as Ja,a0 as ye,$ as Z,o as a,
|
|
1
|
+
import{u as Be,e as fe,Y as nt,x as st,fi as Ka,l as Ne,h1 as qr,a8 as He,B as pe,fj as Xa,j as t,gr as Gr,aX as Kr,q as c,fr as Ja,a0 as ye,$ as Z,o as a,bp as Pt,g as p,ig as Qa,v as _,bV as Xr,ih as Jr,cP as Qr,gh as ei,a as ti,gk as ai,cv as ri,C as D,p as ii,F as oi,fJ as ni,K as Ct,a$ as si,bg as er,a6 as Mt,ii as di,ij as tr,b6 as ar,ap as Vt,eV as ci,a7 as rr,af as li,ik as hi,il as pi,am as Ot,w as ge,ez as ui,ib as mi,az as dt,fk as ir,m as ot,aj as gi,dl as Ci,b_ as fi,bX as wi,cC as xi,g_ as yi,s as be,br as or,im as bi,fl as je,dt as ft,d4 as Si,J as ha,y as nr,ao as $i,io as vi,eT as ki,c3 as sr,ip as Li,D as ut,bv as pa,aT as ji,dd as Di,eE as Ii,k as et,ff as Ai,r as Ti,T as Ri,a3 as Fi,b1 as Ei,iq as xt,d1 as zi,bn as Pi,ir as dr,is as cr,g3 as lr,it as wt,hD as hr,ic as Mi,c6 as Vi,ef as pr,id as Oi,ie as Hi,dO as Ni,cx as Bi,el as Wi,bM as Ui,bN as _i}from"./index-DIh8Zr8t.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-rkTZJa59.js";import{k as Yi}from"./NavigationDots-2l4DJyet-Cj8JLkJu.js";import{L as qi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-zpJF3Rda-Be5yTQoe.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-y8nGTHEa.js";import{f as ao}from"./CardNumberSubText-CoLig9qO-Bb3ukxab.js";import{r as fr}from"./mui-C42whWwM.js";import{l as wr}from"./uploadReceipts-dxsKhm9I-Dga8nbrD.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:V,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:q}=hi(),{isAndroidScreen:X}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:q===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):X===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-apple-wallet-button")})},io=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as St,Y as jt,fq as vt,l as A,fl as v,e as pe,B as Oe,o as a,u as _e,j as t,aX as kt,fE as Pt,cV as E,v as C,
|
|
1
|
+
import{x as St,Y as jt,fq as vt,l as A,fl as v,e as pe,B as Oe,o as a,u as _e,j as t,aX as kt,fE as Pt,cV as E,v as C,bp as de,g as n,a0 as Tt,ab as ce,$ as me,C as O,w as M,J as It,y as At,cs as Et,aD as Fe,b6 as Mt,af as ue,a6 as Lt,k as ge,q as T,d6 as Rt,r as Dt,s as zt,c7 as Bt,cr as Nt,aR as Ot}from"./index-DIh8Zr8t.js";import{b as N,n as i,j as xe,k as _t}from"./vendor-rkTZJa59.js";import{Y as Ft}from"./SpendManagementSection-f75XRlnr-D0d4hqP2.js";import{ChargeCardPromoUserContent as Wt}from"./ChargeCardPromoPage-DiamgYrP-XJHQ1I04.js";import{N as Ut,J as Yt}from"./PromoBaseCards-CC4THVdC-6kRLHFkY.js";import{O as Gt}from"./ChargeCardListTable-D2MxebdW-QA28WwT6.js";import{r as Jt,i as Ht}from"./graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js";import{t as qt,o as Vt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-BYqoYPoy-DWbEFvhX.js";import"./NavigationDots-2l4DJyet-Cj8JLkJu.js";import"./usp-line-BBd1wKwW-u-VMxix8.js";import"./Menu-BymbDNVZ-DM3DjWyb.js";import"./RoleWithToolTip-Dlkvv78V-CAYGZdA6.js";import"./CardNumberSubText-CoLig9qO-Bb3ukxab.js";import"./ChargeCardUtils-zpJF3Rda-Be5yTQoe.js";const be={infoSubheadingTextMarginTop:new O(T[0],T[0]),cardsMinWidth:new O(343,353)},ve=Oe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:d,title:h,subTitle:r,slidingTextList:u,onClick:l})=>{const p=pe();return t.jsxs(Qt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>l(e),children:[t.jsxs(We,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{children:d}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(la,{children:t.jsx(Yt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:d,creditLimit:h,onCreateNowClick:r})=>{const u=pe();return t.jsx(Xt,{windowSize:u,cardType:e,children:t.jsxs(Kt,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:d})}),t.jsx(da,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},Zt=e=>{const s=e-1;let d=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -73,7 +73,7 @@ import{x as St,Y as jt,fq as vt,l as A,fl as v,e as pe,B as Oe,o as a,u as _e,j
|
|
|
73
73
|
justify-content: space-between;
|
|
74
74
|
`,Ue=i(Rt)`
|
|
75
75
|
color: ${e=>e.theme.colors.brandColorGold};
|
|
76
|
-
`,ea=i(
|
|
76
|
+
`,ea=i(Bt)`
|
|
77
77
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
78
78
|
`,ta=i(Dt)`
|
|
79
79
|
color: ${n.neutralGrey5Light};
|
|
@@ -147,9 +147,9 @@ import{x as St,Y as jt,fq as vt,l as A,fl as v,e as pe,B as Oe,o as a,u as _e,j
|
|
|
147
147
|
align-items: flex-end;
|
|
148
148
|
`,ma=i(ge)`
|
|
149
149
|
color: ${n.neutralGrey5Light};
|
|
150
|
-
`,ua=i(
|
|
150
|
+
`,ua=i(zt)`
|
|
151
151
|
color: ${n.neutralGrey5Light};
|
|
152
|
-
`,_={contentContainerMargin:new O(T[3],T[4],T[8]),infoSubheadingTextMarginTop:new O(T[0],T[0]),cardsMinWidth:new O(343,353)},ga={remainingText:new It("largeRegular","largeRegular")},{spendManagement:{chargeCard:{payEarly:m,cardList:$,chargeCardsPromo:c}},common:y,dateFormat:q}=Oe.getLocalizedStrings(),mi=({chargeCardListView:e,searchText:s,admins:d,companyLegalName:h,isCashbackFeatureEnabled:r,creditCardPayNowThreshold:u,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g,isChargeCardSetupEnabled:x,companyChargeCardInfoCreditAccountLimit:qe,controllerEmails:Z,depositAccountListWithDebitCardIssued:k,chargeCardCashbackDetailState:P,uiState:Ve,signedInUser:Ze,creditLimit:F,cashbackRate:Q,onSearchTextChanged:Qe,onClickSetupIcon:Xe,isEarlyPayEnabled:L,onClickStatementsIcon:Ke,onChargeCardRowClick:et,onChargeCardResendInviteClick:tt,onChargeCardRevokeInviteClick:at,onIssueCardClick:it,onBackClick:rt,onReloadCards:nt,onTotalCashbackClick:ot,onColumnSortConfigChanged:st,onClickMenuIcon:lt,onPromoCardClick:Ce,onCreateNowClick:ye,showPayNowInfoTooltip:dt,navigateToCreditCardPaymentPage:W,shouldShowPayNowInfoTooltip:X})=>{const U=St().analytics,[fe,ct]=N.useState(!1),{creditAccount:S,creditAccountRepayment:f}=e,K=jt(),I=!!K.loggedInUserRole.includes("charge_card_user"),Y=vt(K),w=A.hasChargeCardAdminLevelAccess(K.loggedInUserRoleMap),R=w===!0?{creditCardCashbackOffer:`${P.cashbackAnalytics.creditCardCashbackOffer}%`,debitCardCashbackOffer:`${P.cashbackAnalytics.debitCardCashbackOffer}%`,totalEarnedCashback:v(P.cashbackSummary.cashbackEarned.amount),redeemedCashback:v(P.cashbackSummary.cashbackRedeemed.amount),availableCashback:v(P.cashbackSummary.cashbackAvailable.amount),creditCardCashbackRedemptionMode:P.cashbackAnalytics.creditCardCashbackRedemptionMode,debitCardCashbackRedemptionMode:P.cashbackAnalytics.debitCardCashbackRedemptionMode}:void 0,ee=l&&x&&w===!0?{creditAccountId:S.id,creditAccountLimit:v(S.limit.amount),creditAccountAvailableAmount:v(S.available.amount),creditAccountSpentAmount:v(S.balance.amount+S.hold.amount),creditAccountStatus:S.status,outstandingBalance:v(f.remainingAmountDue.amount)}:void 0,te=p&&g?{debitAccountId:k.depositAccounts.map(o=>o.id),debitAccountName:k.depositAccounts.map(o=>o.accountName),debitAccountBalance:k.depositAccounts.map(o=>v(o.accountBalance.available.amount)),debitCardsSpend:v(e.debitCardSummary?.currentMonthSpends?.amount??0),debitAccountStatus:k.depositAccounts.map(o=>o.accountStatus)}:void 0,ae={isCreditCardOffered:l,isDebitCardOffered:p,isDebitCardEnabled:g,isCreditCardEnabled:x},ht=o=>{ct(o),o===!0&&(U.trackCardsListPageClicked("search"),(!l||S.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(p&&g)||k.fetchState==="Completed")&&R!=null&&U.trackCardsCardListSearchClick(Z,ae,R,ee,te))},b=pe(),we=Y&&!w,$e=e.creditAccount.balance.amount+e.creditAccount.hold.amount,D={amount:$e,currencyCode:e.creditAccount.balance.currencyCode,currencySymbol:e.creditAccount.balance.currencySymbol},ie=Math.round(D.amount*100/e.creditAccount.limit.amount),pt=isNaN(ie)?0:$e!==0&&ie===0?1:ie,B=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate,re=w&&D.amount>u*e.creditAccount.limit.amount/100,z=B!=null&&f.initiatedRepayments.amount>0,mt={entity:"charge_cards",showNewButtonOnNavbar:w,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:w?$.newBtnLabel:y.strings.empty,hideSearchBtn:I,searchTextBoxStyle:{right:we?a.sp4:"96px"},moreIconContainerStyle:{paddingRight:we?a.sp0:a.sp4},isSearchOpen:fe,searchPlaceHolder:$.searchPlaceHolder,searchText:s,showSettingsIcon:!I,showSettingsIconOnNavbar:w,showStatementButtonOnNavbar:l&&x,showPayEarlyButtonOnNavbar:L&&w&&D.amount>0&&!z&&!re,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,analytics:U,onSearchOpen:ht,onSearchTextChanged:Qe,onClickSetupIcon:Xe,onClickStatementsIcon:Ke,downloadState:"Not-Started",onNewButtonClick:it,onClickPayEarlyIcon:()=>W("More Button","Pay Early"),onMenuOpen:()=>{(!l||S.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(p&&g)||k.fetchState==="Completed")&&R!=null&&U.trackCardsCardListMoreMenuClick(Z,ae,R,ee,te)},filters:{categoryCombinationOperator:"AND",categories:[]}},ut=t.jsx(Ft,{spendManagementSectionProps:mt}),gt=e.cards.length===0?!1:I&&A.anyCardOnHold(e.cards),xt=e.fetchState==="Completed"?Sa({isChargeCardFeatureEnabled:l,isChargeCardSetupEnabled:x,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g}):"",G=e.debitCardSummary!=null?e.debitCardSummary.currentMonthSpends.amount-e.debitCardSummary.lastCompletedMonthSpends.amount:0,bt=l&&x&&e.hasCreditCard,Ct=p&&g&&e.hasDebitCard,yt=l&&x&&Y&&!w,ft=p&&g&&Y&&!w,J=e.chargeCardConfig.rePaymentInfo?.rePaymentDueDate?.diff(A.dateNow(),"days")??0,ne=[m.payNow,J>0&&J<11?`${m.billDueIn} ${J} ${J===1?y.timeStrings.day:y.timeStrings.days}`:m.creditLimitLow,m.payNow],Se=f.initiatedRepayments.amount===S.balance.amount+S.hold.amount,oe=[m.paymentInitiated,`${$.header.limit} ${Se?y.resets:y.updates} ${y.by} ${A.zeniDate(A.getNextNthWorkingDay(f.initiatedRepaymentDate?.toDate()??A.dateNow().toDate(),[0,6],3).toDateString()).format(q.visual.MMMDFormat)}`,m.paymentInitiated],se=N.useRef(null),le=N.useRef(null),wt=_e(),[$t,je]=N.useState(!0);return N.useEffect(()=>{const o=()=>{le.current&&(le.current.getBoundingClientRect().top<(b==="small"?68:40)?je(!1):je(!0))};o();const j=()=>{o()},H=se.current;return H&&H.addEventListener("scroll",j),window.addEventListener("scroll",j),()=>{H&&H.removeEventListener("scroll",j),window.removeEventListener("scroll",j)}},[b]),t.jsxs(Ea,{ref:se,children:[t.jsx(kt,{title:xt,showBackButton:!0,showMenuIcon:b==="medium-compact"||b==="small",onClickMenuIcon:lt,style:{zIndex:3},onBackClick:rt,rightSideComponent:ut,isSearchOpen:fe,hideSearchBtn:I,scrollableContent:se,source:"ChargeCardListPage",backgroundColor:wt.colors.grey4}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?t.jsx(Pt,{fetchState:e.fetchState,styles:{margin:"auto"}}):t.jsxs(t.Fragment,{children:[I?null:t.jsxs(Ma,{windowSize:b,children:[bt||yt?t.jsxs(Me,{windowSize:b,children:[t.jsxs(Be,{children:[t.jsxs(ze,{children:[t.jsxs(Ne,{children:[t.jsx(Re,{children:$.creditCardBalance}),t.jsx(E,{amount:D,integerStyles:{...C.h5Regular.cssObject},decimalStyles:{...C.largeSemiBold.cssObject}})]}),t.jsxs(Pa,{children:[t.jsx(V,{style:{textAlign:"end"},children:y.texts.limit}),t.jsx(E,{amount:e.creditAccount.limit,style:{justifyContent:"end"},integerStyles:C.largeRegular.cssObject,decimalStyles:C.smallRegular.cssObject})]})]}),t.jsx(Oa,{children:t.jsx(_a,{style:{width:`${pt}%`,borderRadius:a.sp1}})}),re&&!z&&L?t.jsx(de,{placement:"bottom",style:{color:n.heroDark,padding:`12px ${a.sp3}`},title:t.jsx(wa,{children:m.creditLimitIsRunningLow}),children:t.jsxs(Le,{children:[t.jsx(E,{amount:e.creditAccount.available,integerStyles:C.largeMedium.cssObject,decimalStyles:C.smallMedium.cssObject}),t.jsx(De,{windowSize:b,children:y.texts.remaining}),t.jsx($a,{children:t.jsx(fa,{})})]})}):t.jsxs(Le,{children:[t.jsx(E,{amount:e.creditAccount.available,integerStyles:C.largeMedium.cssObject,decimalStyles:C.smallMedium.cssObject}),t.jsx(De,{windowSize:b,children:y.texts.remaining})]})]}),t.jsxs(Ta,{showPaymentInitiatedInfo:z,isEarlyPayEnabled:L,children:[z&&L?null:t.jsx(V,{children:`${y.texts.limitReset} ${B!=null?B.format(q.visual.MMMDFormat):null}`}),w&&L&&(z?t.jsx("div",{children:t.jsx(de,{maxWidth:"242px",style:{padding:`12px ${a.sp3}`},title:t.jsxs(ja,{children:[t.jsx(Ee,{children:`${m.paymentOf} ${Tt("0,0.[00]",{amount:f.initiatedRepayments.amount,currencyCode:f.initiatedRepayments.currencyCode,currencySymbol:f.initiatedRepayments.currencySymbol})} ${m.madeOn} `}),t.jsx(va,{children:f.initiatedRepaymentDate?.format(q.visual.MMMDFormat)}),y.strings.space,t.jsx(Ee,{children:Se?m.isProcessingAndWillResetTheCreditLimitIn23BusinessDays:m.isProcessingAndWillUpdateTheCreditLimitIn23BusinessDays})]}),placement:"bottom",children:t.jsxs(Te,{hasPointer:!1,children:[oe.length>0&&t.jsx(he,{slideUpCount:oe.length,style:{alignItems:"flex-end",width:"auto"},children:oe.map((o,j)=>t.jsx(ba,{children:o},`card-payment-initiated-${j.toString()}`))}),t.jsx(ya,{})]})})}):re?t.jsx(de,{variant:"informative",arrow:!0,style:{top:a.sp2,left:"22px",position:"relative"},data:{preHeading:"URGENT",heading:m.creditLimitIsLow,description:m.transactionsMayBeDeclinedBecauseTheCreditLimitIsRunningLow,buttonText:m.payNow,tooltipContentStyle:{width:"240px",boxSizing:"content-box",gap:a.sp0},tooltipIntroductionStyle:{color:n.important},buttonStyle:{width:"31%"},onButtonClick:()=>{X(!1),W("Toast Button","Pay Now")},showCloseButton:!0,onClose:o=>{o.preventDefault(),o.stopPropagation(),X(!1)}},title:"informative",placement:"bottom-end",open:dt&&$t,children:t.jsxs(Te,{ref:le,onClick:()=>{X(!1),W("Text Button","Pay Now")},hasPointer:!0,children:[ne.length>0&&t.jsx(he,{slideUpCount:ne.length,style:{alignItems:"flex-end",width:"auto"},children:ne.map((o,j)=>t.jsx(xa,{isImportant:j===1,children:o},`card-pay-now-${j.toString()}`))}),t.jsx(Ie,{})]})}):D.amount>0?t.jsxs(Ca,{onClick:()=>W("Text Button","Pay Early"),children:[m.payEarly,t.jsx(Ie,{})]}):null)]})]}):l&&x?t.jsx(Pe,{cardType:"creditCard",header:c.listPage.spendSmarter,title:c.listPage.setUpText.replace("__cardType__",c.listPage.credit),creditLimit:ce("0,0",F.amount,F.currencySymbol),onCreateNowClick:ye}):l?t.jsx(ke,{cardPromoType:"credit",cardText:c.listPage.creditCards,header:c.listPage.getAccessTo,title:c.listPage.creditCards,subTitle:c.listPage.promoSubText.credit,slidingTextList:Ae("credit",Q,{amount:qe,currencyCode:F.currencyCode,currencySymbol:F.currencySymbol}),onClick:Ce}):null,Ct||ft?t.jsxs(Me,{windowSize:b,children:[t.jsxs(Be,{children:[t.jsx(ze,{children:t.jsxs(Ne,{children:[t.jsx(Re,{children:$.debitCardSpend}),t.jsx(E,{amount:e.debitCardSummary?.currentMonthSpends,integerStyles:{...C.h5Regular.cssObject},decimalStyles:{...C.largeSemiBold.cssObject}})]})}),t.jsx(Ra,{children:G!==0?t.jsxs(t.Fragment,{children:[G<0?t.jsx(Ba,{}):t.jsx(za,{}),t.jsx(Da,{hasNegativeValue:G<0,children:ce("0,0.00",G,e.debitCardSummary?.currentMonthSpends.currencySymbol)}),t.jsx(He,{children:$.compareToLastMonth})]}):null})]}),t.jsx(Je,{children:t.jsx(V,{children:`${y.texts.limitReset} ${B!=null?B.format(q.visual.MMMDFormat):null}`})})]}):p&&g?t.jsx(Pe,{cardType:"debitCard",header:c.listPage.spendSmarter,title:c.listPage.setUpText.replace("__cardType__",c.listPage.debit),onCreateNowClick:ye}):p?t.jsx(ke,{cardPromoType:"debit",cardText:c.listPage.debitCards,header:c.listPage.getAccessTo,title:c.listPage.debitCards,subTitle:c.listPage.promoSubText.debit,slidingTextList:Ae("debit",Q),onClick:Ce}):null,t.jsxs(La,{windowSize:b,children:[r?t.jsxs(ka,{children:[t.jsx(V,{style:{textAlign:"start"},children:$.totalCashback}),t.jsx(E,{amount:e.totalCashback,style:{justifyContent:"flex-start"},integerStyles:C.h5Regular.cssObject,decimalStyles:C.smallSemiBold.cssObject}),e.totalCashback.amount>0?t.jsx(Aa,{windowSize:b,children:t.jsxs(Na,{windowSize:b,onClick:ot,"data-testid":me("total-cashback-info"),children:[t.jsx(Ia,{children:$.overview}),t.jsx(Fa,{})]})}):null]}):null,t.jsx(Ua,{children:t.jsx(Ya,{})})]})]}),e.cards.length===0&&I===!0||gt?t.jsx(Wa,{children:t.jsx(Wt,{companyLegalName:h,cards:e.cards,admins:d,hasZeniFinopsRoles:Y,cashbackRate:Q})}):t.jsx(Gt,{depositAccountListWithDebitCardIssued:k,cashbackInformation:R,creditAccountInformation:ee,debitAccountInformation:te,productInformation:ae,controllerEmails:Z,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g,isChargeCardSetupEnabled:x,creditAccount:e.creditAccount,creditAccountRepayment:f,cardList:e.cards,showViewForCardUser:!1,signedInUser:Ze,fetchState:e.fetchState,onReloadCards:nt,onChargeCardRowClick:et,searchText:s,receiptBotEmail:e.chargeCardConfig.receiptBotEmail,uiState:Ve,resendInviteId:e?.resendCardInvite?.cardId,onColumnSortConfigChanged:st,onChargeCardResendInviteClick:tt,onChargeCardRevokeInviteClick:at})]})]})},xa=i(Fe)`
|
|
152
|
+
`,_={contentContainerMargin:new O(T[3],T[4],T[8]),infoSubheadingTextMarginTop:new O(T[0],T[0]),cardsMinWidth:new O(343,353)},ga={remainingText:new It("largeRegular","largeRegular")},{spendManagement:{chargeCard:{payEarly:m,cardList:$,chargeCardsPromo:c}},common:y,dateFormat:q}=Oe.getLocalizedStrings(),mi=({chargeCardListView:e,searchText:s,admins:d,companyLegalName:h,isCashbackFeatureEnabled:r,creditCardPayNowThreshold:u,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g,isChargeCardSetupEnabled:x,companyChargeCardInfoCreditAccountLimit:qe,controllerEmails:Z,depositAccountListWithDebitCardIssued:k,chargeCardCashbackDetailState:P,uiState:Ve,signedInUser:Ze,creditLimit:F,cashbackRate:Q,onSearchTextChanged:Qe,onClickSetupIcon:Xe,isEarlyPayEnabled:L,onClickStatementsIcon:Ke,onChargeCardRowClick:et,onChargeCardResendInviteClick:tt,onChargeCardRevokeInviteClick:at,onIssueCardClick:it,onBackClick:rt,onReloadCards:nt,onTotalCashbackClick:ot,onColumnSortConfigChanged:st,onClickMenuIcon:lt,onPromoCardClick:Ce,onCreateNowClick:ye,showPayNowInfoTooltip:dt,navigateToCreditCardPaymentPage:W,shouldShowPayNowInfoTooltip:X})=>{const U=St().analytics,[fe,ct]=N.useState(!1),{creditAccount:S,creditAccountRepayment:f}=e,K=jt(),I=!!K.loggedInUserRole.includes("charge_card_user"),Y=vt(K),w=A.hasChargeCardAdminLevelAccess(K.loggedInUserRoleMap),R=w===!0?{creditCardCashbackOffer:`${P.cashbackAnalytics.creditCardCashbackOffer}%`,debitCardCashbackOffer:`${P.cashbackAnalytics.debitCardCashbackOffer}%`,totalEarnedCashback:v(P.cashbackSummary.cashbackEarned.amount),redeemedCashback:v(P.cashbackSummary.cashbackRedeemed.amount),availableCashback:v(P.cashbackSummary.cashbackAvailable.amount),creditCardCashbackRedemptionMode:P.cashbackAnalytics.creditCardCashbackRedemptionMode,debitCardCashbackRedemptionMode:P.cashbackAnalytics.debitCardCashbackRedemptionMode}:void 0,ee=l&&x&&w===!0?{creditAccountId:S.id,creditAccountLimit:v(S.limit.amount),creditAccountAvailableAmount:v(S.available.amount),creditAccountSpentAmount:v(S.balance.amount+S.hold.amount),creditAccountStatus:S.status,outstandingBalance:v(f.remainingAmountDue.amount)}:void 0,te=p&&g?{debitAccountId:k.depositAccounts.map(o=>o.id),debitAccountName:k.depositAccounts.map(o=>o.accountName),debitAccountBalance:k.depositAccounts.map(o=>v(o.accountBalance.available.amount)),debitCardsSpend:v(e.debitCardSummary?.currentMonthSpends?.amount??0),debitAccountStatus:k.depositAccounts.map(o=>o.accountStatus)}:void 0,ae={isCreditCardOffered:l,isDebitCardOffered:p,isDebitCardEnabled:g,isCreditCardEnabled:x},ht=o=>{ct(o),o===!0&&(U.trackCardsListPageClicked("search"),(!l||S.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(p&&g)||k.fetchState==="Completed")&&R!=null&&U.trackCardsCardListSearchClick(Z,ae,R,ee,te))},b=pe(),we=Y&&!w,$e=e.creditAccount.balance.amount+e.creditAccount.hold.amount,D={amount:$e,currencyCode:e.creditAccount.balance.currencyCode,currencySymbol:e.creditAccount.balance.currencySymbol},ie=Math.round(D.amount*100/e.creditAccount.limit.amount),pt=isNaN(ie)?0:$e!==0&&ie===0?1:ie,z=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate,re=w&&D.amount>u*e.creditAccount.limit.amount/100,B=z!=null&&f.initiatedRepayments.amount>0,mt={entity:"charge_cards",showNewButtonOnNavbar:w,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:w?$.newBtnLabel:y.strings.empty,hideSearchBtn:I,searchTextBoxStyle:{right:we?a.sp4:"96px"},moreIconContainerStyle:{paddingRight:we?a.sp0:a.sp4},isSearchOpen:fe,searchPlaceHolder:$.searchPlaceHolder,searchText:s,showSettingsIcon:!I,showSettingsIconOnNavbar:w,showStatementButtonOnNavbar:l&&x,showPayEarlyButtonOnNavbar:L&&w&&D.amount>0&&!B&&!re,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,analytics:U,onSearchOpen:ht,onSearchTextChanged:Qe,onClickSetupIcon:Xe,onClickStatementsIcon:Ke,downloadState:"Not-Started",onNewButtonClick:it,onClickPayEarlyIcon:()=>W("More Button","Pay Early"),onMenuOpen:()=>{(!l||S.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(p&&g)||k.fetchState==="Completed")&&R!=null&&U.trackCardsCardListMoreMenuClick(Z,ae,R,ee,te)},filters:{categoryCombinationOperator:"AND",categories:[]}},ut=t.jsx(Ft,{spendManagementSectionProps:mt}),gt=e.cards.length===0?!1:I&&A.anyCardOnHold(e.cards),xt=e.fetchState==="Completed"?Sa({isChargeCardFeatureEnabled:l,isChargeCardSetupEnabled:x,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g}):"",G=e.debitCardSummary!=null?e.debitCardSummary.currentMonthSpends.amount-e.debitCardSummary.lastCompletedMonthSpends.amount:0,bt=l&&x&&e.hasCreditCard,Ct=p&&g&&e.hasDebitCard,yt=l&&x&&Y&&!w,ft=p&&g&&Y&&!w,J=e.chargeCardConfig.rePaymentInfo?.rePaymentDueDate?.diff(A.dateNow(),"days")??0,ne=[m.payNow,J>0&&J<11?`${m.billDueIn} ${J} ${J===1?y.timeStrings.day:y.timeStrings.days}`:m.creditLimitLow,m.payNow],Se=f.initiatedRepayments.amount===S.balance.amount+S.hold.amount,oe=[m.paymentInitiated,`${$.header.limit} ${Se?y.resets:y.updates} ${y.by} ${A.zeniDate(A.getNextNthWorkingDay(f.initiatedRepaymentDate?.toDate()??A.dateNow().toDate(),[0,6],3).toDateString()).format(q.visual.MMMDFormat)}`,m.paymentInitiated],se=N.useRef(null),le=N.useRef(null),wt=_e(),[$t,je]=N.useState(!0);return N.useEffect(()=>{const o=()=>{le.current&&(le.current.getBoundingClientRect().top<(b==="small"?68:40)?je(!1):je(!0))};o();const j=()=>{o()},H=se.current;return H&&H.addEventListener("scroll",j),window.addEventListener("scroll",j),()=>{H&&H.removeEventListener("scroll",j),window.removeEventListener("scroll",j)}},[b]),t.jsxs(Ea,{ref:se,children:[t.jsx(kt,{title:xt,showBackButton:!0,showMenuIcon:b==="medium-compact"||b==="small",onClickMenuIcon:lt,style:{zIndex:3},onBackClick:rt,rightSideComponent:ut,isSearchOpen:fe,hideSearchBtn:I,scrollableContent:se,source:"ChargeCardListPage",backgroundColor:wt.colors.grey4}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?t.jsx(Pt,{fetchState:e.fetchState,styles:{margin:"auto"}}):t.jsxs(t.Fragment,{children:[I?null:t.jsxs(Ma,{windowSize:b,children:[bt||yt?t.jsxs(Me,{windowSize:b,children:[t.jsxs(ze,{children:[t.jsxs(Be,{children:[t.jsxs(Ne,{children:[t.jsx(Re,{children:$.creditCardBalance}),t.jsx(E,{amount:D,integerStyles:{...C.h5Regular.cssObject},decimalStyles:{...C.largeSemiBold.cssObject}})]}),t.jsxs(Pa,{children:[t.jsx(V,{style:{textAlign:"end"},children:y.texts.limit}),t.jsx(E,{amount:e.creditAccount.limit,style:{justifyContent:"end"},integerStyles:C.largeRegular.cssObject,decimalStyles:C.smallRegular.cssObject})]})]}),t.jsx(Oa,{children:t.jsx(_a,{style:{width:`${pt}%`,borderRadius:a.sp1}})}),re&&!B&&L?t.jsx(de,{placement:"bottom",style:{color:n.heroDark,padding:`12px ${a.sp3}`},title:t.jsx(wa,{children:m.creditLimitIsRunningLow}),children:t.jsxs(Le,{children:[t.jsx(E,{amount:e.creditAccount.available,integerStyles:C.largeMedium.cssObject,decimalStyles:C.smallMedium.cssObject}),t.jsx(De,{windowSize:b,children:y.texts.remaining}),t.jsx($a,{children:t.jsx(fa,{})})]})}):t.jsxs(Le,{children:[t.jsx(E,{amount:e.creditAccount.available,integerStyles:C.largeMedium.cssObject,decimalStyles:C.smallMedium.cssObject}),t.jsx(De,{windowSize:b,children:y.texts.remaining})]})]}),t.jsxs(Ta,{showPaymentInitiatedInfo:B,isEarlyPayEnabled:L,children:[B&&L?null:t.jsx(V,{children:`${y.texts.limitReset} ${z!=null?z.format(q.visual.MMMDFormat):null}`}),w&&L&&(B?t.jsx("div",{children:t.jsx(de,{maxWidth:"242px",style:{padding:`12px ${a.sp3}`},title:t.jsxs(ja,{children:[t.jsx(Ee,{children:`${m.paymentOf} ${Tt("0,0.[00]",{amount:f.initiatedRepayments.amount,currencyCode:f.initiatedRepayments.currencyCode,currencySymbol:f.initiatedRepayments.currencySymbol})} ${m.madeOn} `}),t.jsx(va,{children:f.initiatedRepaymentDate?.format(q.visual.MMMDFormat)}),y.strings.space,t.jsx(Ee,{children:Se?m.isProcessingAndWillResetTheCreditLimitIn23BusinessDays:m.isProcessingAndWillUpdateTheCreditLimitIn23BusinessDays})]}),placement:"bottom",children:t.jsxs(Te,{hasPointer:!1,children:[oe.length>0&&t.jsx(he,{slideUpCount:oe.length,style:{alignItems:"flex-end",width:"auto"},children:oe.map((o,j)=>t.jsx(ba,{children:o},`card-payment-initiated-${j.toString()}`))}),t.jsx(ya,{})]})})}):re?t.jsx(de,{variant:"informative",arrow:!0,style:{top:a.sp2,left:"22px",position:"relative"},data:{preHeading:"URGENT",heading:m.creditLimitIsLow,description:m.transactionsMayBeDeclinedBecauseTheCreditLimitIsRunningLow,buttonText:m.payNow,tooltipContentStyle:{width:"240px",boxSizing:"content-box",gap:a.sp0},tooltipIntroductionStyle:{color:n.important},buttonStyle:{width:"31%"},onButtonClick:()=>{X(!1),W("Toast Button","Pay Now")},showCloseButton:!0,onClose:o=>{o.preventDefault(),o.stopPropagation(),X(!1)}},title:"informative",placement:"bottom-end",open:dt&&$t,children:t.jsxs(Te,{ref:le,onClick:()=>{X(!1),W("Text Button","Pay Now")},hasPointer:!0,children:[ne.length>0&&t.jsx(he,{slideUpCount:ne.length,style:{alignItems:"flex-end",width:"auto"},children:ne.map((o,j)=>t.jsx(xa,{isImportant:j===1,children:o},`card-pay-now-${j.toString()}`))}),t.jsx(Ie,{})]})}):D.amount>0?t.jsxs(Ca,{onClick:()=>W("Text Button","Pay Early"),children:[m.payEarly,t.jsx(Ie,{})]}):null)]})]}):l&&x?t.jsx(Pe,{cardType:"creditCard",header:c.listPage.spendSmarter,title:c.listPage.setUpText.replace("__cardType__",c.listPage.credit),creditLimit:ce("0,0",F.amount,F.currencySymbol),onCreateNowClick:ye}):l?t.jsx(ke,{cardPromoType:"credit",cardText:c.listPage.creditCards,header:c.listPage.getAccessTo,title:c.listPage.creditCards,subTitle:c.listPage.promoSubText.credit,slidingTextList:Ae("credit",Q,{amount:qe,currencyCode:F.currencyCode,currencySymbol:F.currencySymbol}),onClick:Ce}):null,Ct||ft?t.jsxs(Me,{windowSize:b,children:[t.jsxs(ze,{children:[t.jsx(Be,{children:t.jsxs(Ne,{children:[t.jsx(Re,{children:$.debitCardSpend}),t.jsx(E,{amount:e.debitCardSummary?.currentMonthSpends,integerStyles:{...C.h5Regular.cssObject},decimalStyles:{...C.largeSemiBold.cssObject}})]})}),t.jsx(Ra,{children:G!==0?t.jsxs(t.Fragment,{children:[G<0?t.jsx(za,{}):t.jsx(Ba,{}),t.jsx(Da,{hasNegativeValue:G<0,children:ce("0,0.00",G,e.debitCardSummary?.currentMonthSpends.currencySymbol)}),t.jsx(He,{children:$.compareToLastMonth})]}):null})]}),t.jsx(Je,{children:t.jsx(V,{children:`${y.texts.limitReset} ${z!=null?z.format(q.visual.MMMDFormat):null}`})})]}):p&&g?t.jsx(Pe,{cardType:"debitCard",header:c.listPage.spendSmarter,title:c.listPage.setUpText.replace("__cardType__",c.listPage.debit),onCreateNowClick:ye}):p?t.jsx(ke,{cardPromoType:"debit",cardText:c.listPage.debitCards,header:c.listPage.getAccessTo,title:c.listPage.debitCards,subTitle:c.listPage.promoSubText.debit,slidingTextList:Ae("debit",Q),onClick:Ce}):null,t.jsxs(La,{windowSize:b,children:[r?t.jsxs(ka,{children:[t.jsx(V,{style:{textAlign:"start"},children:$.totalCashback}),t.jsx(E,{amount:e.totalCashback,style:{justifyContent:"flex-start"},integerStyles:C.h5Regular.cssObject,decimalStyles:C.smallSemiBold.cssObject}),e.totalCashback.amount>0?t.jsx(Aa,{windowSize:b,children:t.jsxs(Na,{windowSize:b,onClick:ot,"data-testid":me("total-cashback-info"),children:[t.jsx(Ia,{children:$.overview}),t.jsx(Fa,{})]})}):null]}):null,t.jsx(Ua,{children:t.jsx(Ya,{})})]})]}),e.cards.length===0&&I===!0||gt?t.jsx(Wa,{children:t.jsx(Wt,{companyLegalName:h,cards:e.cards,admins:d,hasZeniFinopsRoles:Y,cashbackRate:Q})}):t.jsx(Gt,{depositAccountListWithDebitCardIssued:k,cashbackInformation:R,creditAccountInformation:ee,debitAccountInformation:te,productInformation:ae,controllerEmails:Z,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g,isChargeCardSetupEnabled:x,creditAccount:e.creditAccount,creditAccountRepayment:f,cardList:e.cards,showViewForCardUser:!1,signedInUser:Ze,fetchState:e.fetchState,onReloadCards:nt,onChargeCardRowClick:et,searchText:s,receiptBotEmail:e.chargeCardConfig.receiptBotEmail,uiState:Ve,resendInviteId:e?.resendCardInvite?.cardId,onColumnSortConfigChanged:st,onChargeCardResendInviteClick:tt,onChargeCardRevokeInviteClick:at})]})]})},xa=i(Fe)`
|
|
153
153
|
color: ${e=>e.isImportant?n.important:e.theme.colors.primary};
|
|
154
154
|
text-align: end;
|
|
155
155
|
`,ba=i(Fe)`
|
|
@@ -303,11 +303,11 @@ import{x as St,Y as jt,fq as vt,l as A,fl as v,e as pe,B as Oe,o as a,u as _e,j
|
|
|
303
303
|
color: ${e=>e.theme.colors.hero};
|
|
304
304
|
`,Da=i(He)`
|
|
305
305
|
color: ${e=>e.hasNegativeValue?n.success:n.important};
|
|
306
|
-
`,
|
|
306
|
+
`,za=i(qt)`
|
|
307
307
|
color: ${n.success};
|
|
308
308
|
width: ${a.sp3};
|
|
309
309
|
height: ${a.sp3};
|
|
310
|
-
`,
|
|
310
|
+
`,Ba=i(Vt)`
|
|
311
311
|
color: ${n.important};
|
|
312
312
|
width: ${a.sp3};
|
|
313
313
|
height: ${a.sp3};
|
|
@@ -342,10 +342,10 @@ import{x as St,Y as jt,fq as vt,l as A,fl as v,e as pe,B as Oe,o as a,u as _e,j
|
|
|
342
342
|
display: flex;
|
|
343
343
|
flex-direction: column;
|
|
344
344
|
margin: ${a.sp0} ${a.sp2} ${a.sp7} ${a.sp2};
|
|
345
|
-
`,
|
|
345
|
+
`,ze=i.div`
|
|
346
346
|
padding: ${a.sp4};
|
|
347
347
|
padding-bottom: ${a.sp2};
|
|
348
|
-
`,
|
|
348
|
+
`,Be=i.div`
|
|
349
349
|
display: flex;
|
|
350
350
|
justify-content: space-between;
|
|
351
351
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fi as vi,i6 as Ci,i7 as yi,i8 as ji,$ as b,B as V,bS as bi,v as re,g as y,aj as ki,b_ as Si,i9 as Ii,ia as zi,o as t,bg as Li,a6 as Ri,C as p,ez as Pi,ap as Di,ib as Ui,a7 as Ni,az as Ti,w as M,fk as _i,q as a,dt as Vi,a0 as T,c0 as De,m as Ue,
|
|
1
|
+
import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fi as vi,i6 as Ci,i7 as yi,i8 as ji,$ as b,B as V,bS as bi,v as re,g as y,aj as ki,b_ as Si,i9 as Ii,ia as zi,o as t,bg as Li,a6 as Ri,C as p,ez as Pi,ap as Di,ib as Ui,a7 as Ni,az as Ti,w as M,fk as _i,q as a,dt as Vi,a0 as T,c0 as De,m as Ue,bp as le,bn as Oi,k,c3 as we,s as U,i0 as ue,b6 as Ne,be as Te,ic as Ei,c6 as Fi,a8 as G,id as Mi,ie as Wi}from"./index-DIh8Zr8t.js";import{b as C,n as r,f as Ai,j as $e}from"./vendor-rkTZJa59.js";import{R as _e}from"./Menu-BymbDNVZ-DM3DjWyb.js";import{T as Ve}from"./RoleWithToolTip-Dlkvv78V-CAYGZdA6.js";import{f as ce}from"./CardNumberSubText-CoLig9qO-Bb3ukxab.js";import{_ as Oe}from"./ChargeCardUtils-zpJF3Rda-Be5yTQoe.js";const W=V.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Hi=V.getLocalizedStrings().common.strings.empty,fe={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Ee=e=>e===!0?[{...fe,width:new p(0,0),value:Hi},ve,Ce,ye,je,be]:[fe,ve,Ce,ye,je,be],z={containerPaddingLeft:t.sp2,containerPaddingRight:t.sp3,containerPaddingTop:t.sp3,containerPaddingBottom:t.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Mi,Wi)};function Ki({companyNameSticky:e,sortConfig:o,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=_(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Ee(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===o.sortKey?g.sortOrder=o.sortOrder:g.sortOrder="ascending";w(s)},[o.sortKey,o.sortOrder]);const u=(s,g)=>{let f=g;o.sortKey===s&&(f=g==="ascending"?"descending":"ascending"),h(s,f)},$=c.find(s=>s.key===o.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=V.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Yi,{windowSize:l,children:[i.jsxs(Xi,{children:[i.jsx(et,{children:i.jsx(Zi,{})}),i.jsx(Oi,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:o.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:re.extraSmallRegular,titleTextStyle:re.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rt,{onClick:()=>u($.key,$.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",o.sortKey),children:[i.jsx(k,{children:$.value}),i.jsx(ke,{windowSize:l,sortDataValue:o.sortKey,headerdata:$,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Qi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Ji,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(tt,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",o.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:o.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(it,{sortDataValue:o.sortKey,windowSize:l,isVisible:o.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Gi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",o.sortKey)})})]},s.key))})})}const Bi=Ai.memo(Ki),qi=r.div`
|
|
2
2
|
top: ${t.sp0};
|
|
3
3
|
left: ${t.sp0};
|
|
4
4
|
z-index: 2;
|
|
@@ -93,7 +93,7 @@ import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fi as vi,i6 as Ci,i7 as yi
|
|
|
93
93
|
cursor: pointer;
|
|
94
94
|
gap: 5px;
|
|
95
95
|
color: ${e=>e.theme.colors.primary};
|
|
96
|
-
`,{common:q,spendManagement:{billPay:{paymentDetails:{feePercent:ot}},chargeCard:X}}=V.getLocalizedStrings(),P={containerPaddingLeft:new p(a[3],a[2]),containerPaddingRight:new p(a[2],a[3]),containerPaddingTop:new p(a[2],a[3]),containerPaddingBottom:new p(a[2],a[3]),containerMarginLeft:new p(a[4],a[8]),webkitLineClamp:new p(2,1,1,1,1)},st=({cardDetail:e,showViewForCardUser:o,signedInUser:n,resendInviteId:h,index:d,onChargeCardRowClick:l,onChargeCardResendInviteClick:m,onChargeCardRevokeInviteClick:c})=>{const[w,u]=C.useState(!1),[$,S]=C.useState(!1),x=_(),j=!!ee().loggedInUserRole.includes("charge_card_user")||o,s=C.useCallback(()=>{l(e.id,d)},[e.id]),g=Oe(e)/e.limit.amount*100,f=e?.cardHolderUserId===n.userId,R=Vi(e.cardHolderUser,!1),O=e.balance,I=Ee(j),A=i.jsxs(i.Fragment,{children:[i.jsx(yt,{title:T("0,0.[00]",O),className:"amountToUtilize",children:T("0,0.[00]",O)}),g!==0?i.jsx(jt,{className:"amountToUtilize",children:`${Math.round(g)}${ot}`}):null]}),H=e.type.code,N=X.cardList.tooltip[H],
|
|
96
|
+
`,{common:q,spendManagement:{billPay:{paymentDetails:{feePercent:ot}},chargeCard:X}}=V.getLocalizedStrings(),P={containerPaddingLeft:new p(a[3],a[2]),containerPaddingRight:new p(a[2],a[3]),containerPaddingTop:new p(a[2],a[3]),containerPaddingBottom:new p(a[2],a[3]),containerMarginLeft:new p(a[4],a[8]),webkitLineClamp:new p(2,1,1,1,1)},st=({cardDetail:e,showViewForCardUser:o,signedInUser:n,resendInviteId:h,index:d,onChargeCardRowClick:l,onChargeCardResendInviteClick:m,onChargeCardRevokeInviteClick:c})=>{const[w,u]=C.useState(!1),[$,S]=C.useState(!1),x=_(),j=!!ee().loggedInUserRole.includes("charge_card_user")||o,s=C.useCallback(()=>{l(e.id,d)},[e.id]),g=Oe(e)/e.limit.amount*100,f=e?.cardHolderUserId===n.userId,R=Vi(e.cardHolderUser,!1),O=e.balance,I=Ee(j),A=i.jsxs(i.Fragment,{children:[i.jsx(yt,{title:T("0,0.[00]",O),className:"amountToUtilize",children:T("0,0.[00]",O)}),g!==0?i.jsx(jt,{className:"amountToUtilize",children:`${Math.round(g)}${ot}`}):null]}),H=e.type.code,N=X.cardList.tooltip[H],K=N!=null?f?N.self:`${R} ${N.cardUser}`:q.strings.empty;return i.jsx(nt,{windowSize:x,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:i.jsx(dt,{onClick:s,"data-testid":b("card-row",e.id),children:i.jsxs(lt,{children:[j?null:i.jsx(E,{children:i.jsxs(ct,{windowSize:x,responsiveWidth:I[0].width,children:[i.jsx(De,{personBasic:e.cardHolderUser,styles:{height:t.sp6,width:t.sp6}}),i.jsxs(pt,{children:[i.jsx(ht,{children:i.jsx(mt,{windowSize:x,title:R,className:"cardHolderName",children:R===q.strings.empty?q.strings.hyphen:R})}),i.jsx(Ie,{className:"additionalInfoContainer",children:e.cardHolderRoles?.userRoles!=null&&i.jsx(Ve,{roles:e.cardHolderRoles?.userRoles})})]})]})}),i.jsx(E,{children:i.jsxs(ut,{windowSize:x,responsiveWidth:I[1].width,children:[i.jsx($t,{title:e.cardName,className:"cardName",children:e.cardName}),i.jsx(Rt,{windowSize:x,children:e.status.code==="request_on_hold"?q.strings.hyphen:X.cardDetails.expiryHideOut+q.strings.space+e.accountLast4})]})}),i.jsx(E,{children:i.jsx(ft,{windowSize:x,responsiveWidth:I[2].width,children:i.jsx(vt,{className:"card-type",children:i.jsx(ce,{cardDetail:e,forDetailPage:!1})})})}),i.jsx(E,{children:i.jsx(ze,{windowSize:x,responsiveWidth:I[3].width,children:h===e.id?i.jsx(Ue,{size:"Small",start:!0}):i.jsxs(Ct,{children:[i.jsx(St,{children:e.status.code==="request_on_hold"?i.jsxs(le,{display:"flex",title:K,placement:"top",style:{padding:`${t.sp2} ${t.sp3}`},children:[i.jsx(Z,{status:e.status.code,style:{cursor:"pointer"}}),i.jsx(bt,{style:{marginLeft:t.sp1},className:"infoIconTooltip"})]}):i.jsx(Z,{status:e.status.code})}),e.status.code==="request_on_hold"&&!f?i.jsx(kt,{onClick:v=>{v.stopPropagation(),m(e.id)},"data-testid":b("send-reminder",e.id),children:X.cardList.sendReminder}):null]})})}),i.jsx(E,{children:i.jsx(ze,{windowSize:x,responsiveWidth:I[4].width,children:A})}),i.jsx(E,{children:i.jsxs(xt,{windowSize:x,responsiveWidth:I[5].width,children:[i.jsxs(gt,{windowSize:x,children:[i.jsx(wt,{className:"limitAmount",windowSize:x,title:T("0,0.[00]",e.limit),children:T("0,0.[00]",e.limit)}),i.jsx(Ie,{className:"additionalInfoContainer",children:e.creditLimitFrequency.name})]}),i.jsx(It,{className:"menu-icon",children:e.status.code==="request_on_hold"&&!j&&i.jsx(_e,{isMenuVisible:$,menuItems:i.jsx(zt,{children:i.jsx(Lt,{"data-testid":b("menu-button",e.id),onClick:v=>{v.stopPropagation(),u(!1),c(e.id)},children:X.cardDetails.revokeInvite})}),setIsMenuOpen:u,isMenuOpen:w,menuIconStyles:{height:"auto"}})})]})})]})})})},Z=({status:e,style:o})=>{const n=de(),h=at(e,n),d=V.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return _()==="small"?i.jsx(ue,{textColor:h,text:d[e],tagStyles:{maxWidth:t.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...o}}):i.jsx(ue,{textColor:h,text:d[e],styles:o,tagStyles:{padding:"1px 6px"}})},at=(e,o)=>{switch(e){case"active":return new G(y.success);case"request_on_hold":return new G(y.graphColor36);case"inactive":return new G(y.alert);default:return new G(o.colors.grey1)}},nt=r.div`
|
|
97
97
|
display: flex;
|
|
98
98
|
background-color: ${e=>e.theme.colors.grey5};
|
|
99
99
|
padding-left: ${e=>P.containerPaddingLeft.valuePx(e.windowSize)};
|
|
@@ -317,7 +317,7 @@ import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fi as vi,i6 as Ci,i7 as yi
|
|
|
317
317
|
display: flex;
|
|
318
318
|
align-items: center;
|
|
319
319
|
gap: ${t.sp1};
|
|
320
|
-
`,{spendManagement:{billPay:{paymentDetails:{feePercent:Pt}},chargeCard:D},common:L}=V.getLocalizedStrings(),oe={containerMarginLeft:new p(a[3],a[8]),webkitLineClamp:new p(2,2,1,1,1)},Dt=({cardDetail:e,showViewForCardUser:o,signedInUser:n,resendInviteId:h,index:d,onChargeCardRowClick:l,onChargeCardResendInviteClick:m,onChargeCardRevokeInviteClick:c})=>{const w=!!ee().loggedInUserRole.includes("charge_card_user")||o,u=C.useCallback(()=>{l(e.id,d)},[e.id]);return w?i.jsx(Ut,{cardDetail:e,onRowClick:u}):i.jsx(Nt,{cardDetail:e,signedInUser:n,resendInviteId:h,onRowClick:u,onChargeCardResendInviteClick:m,onChargeCardRevokeInviteClick:c})},Fe=({cardDetail:e})=>{const o=e.balance,n=Oe(e)/e.limit.amount*100;return i.jsxs(Ot,{children:[i.jsx(Ht,{children:T("0,0.[00]",o)}),n!==0?i.jsx(Mt,{children:`${Math.round(n)}${Pt}`}):null]})},Ut=({cardDetail:e,onRowClick:o})=>{const n=_();return i.jsx(Me,{windowSize:n,children:i.jsx(We,{onClick:o,"data-testid":b("charge-card-user-row",e.id),children:i.jsxs(se,{children:[i.jsx(Je,{children:i.jsxs(Xe,{cardUser:!0,children:[i.jsxs(
|
|
320
|
+
`,{spendManagement:{billPay:{paymentDetails:{feePercent:Pt}},chargeCard:D},common:L}=V.getLocalizedStrings(),oe={containerMarginLeft:new p(a[3],a[8]),webkitLineClamp:new p(2,2,1,1,1)},Dt=({cardDetail:e,showViewForCardUser:o,signedInUser:n,resendInviteId:h,index:d,onChargeCardRowClick:l,onChargeCardResendInviteClick:m,onChargeCardRevokeInviteClick:c})=>{const w=!!ee().loggedInUserRole.includes("charge_card_user")||o,u=C.useCallback(()=>{l(e.id,d)},[e.id]);return w?i.jsx(Ut,{cardDetail:e,onRowClick:u}):i.jsx(Nt,{cardDetail:e,signedInUser:n,resendInviteId:h,onRowClick:u,onChargeCardResendInviteClick:m,onChargeCardRevokeInviteClick:c})},Fe=({cardDetail:e})=>{const o=e.balance,n=Oe(e)/e.limit.amount*100;return i.jsxs(Ot,{children:[i.jsx(Ht,{children:T("0,0.[00]",o)}),n!==0?i.jsx(Mt,{children:`${Math.round(n)}${Pt}`}):null]})},Ut=({cardDetail:e,onRowClick:o})=>{const n=_();return i.jsx(Me,{windowSize:n,children:i.jsx(We,{onClick:o,"data-testid":b("charge-card-user-row",e.id),children:i.jsxs(se,{children:[i.jsx(Je,{children:i.jsxs(Xe,{cardUser:!0,children:[i.jsxs(Ke,{children:[i.jsx(qe,{children:L.labels.cardName}),i.jsxs(Be,{children:[i.jsx(Qe,{title:e.cardName,children:e.cardName}),i.jsx(si,{windowSize:n,children:D.cardDetails.expiryHideOut+L.strings.space+e.accountLast4})]})]}),i.jsxs(Ae,{children:[i.jsx(He,{children:`${D.cardList.header.cardType}${L.strings.colon}`}),i.jsx(ne,{children:i.jsx(ce,{cardDetail:e,forDetailPage:!1})})]}),i.jsxs(Ze,{children:[i.jsx(ii,{children:L.labels.limit}),i.jsxs(ti,{children:[i.jsx(ei,{children:T("0,0.[00]",e.limit)}),i.jsx(ri,{}),i.jsx(ae,{children:e.creditLimitFrequency.name})]})]})]})}),i.jsx(Ge,{children:i.jsxs(i.Fragment,{children:[e.status.code!=="request_on_hold"?i.jsx(Fe,{cardDetail:e}):null,i.jsxs(Ye,{children:[i.jsx(Z,{status:e.status.code}),e.status.code==="request_on_hold"?i.jsx(le,{display:"flex",title:D.cardList.tooltip[e.type.code].self,placement:"top",style:{padding:`${t.sp2} ${t.sp3}`},children:i.jsx(oi,{className:"infoIconTooltip"})}):null]})]})})]})})})},Nt=({cardDetail:e,signedInUser:o,resendInviteId:n,onRowClick:h,onChargeCardResendInviteClick:d,onChargeCardRevokeInviteClick:l})=>{const[m,c]=C.useState(!1),w=`${e.cardHolderUser?.firstName??""} ${e.cardHolderUser?.lastName??""}`,u=e?.cardHolderUserId===o.userId,$=_(),S=e.type.code,x=D.cardList.tooltip[S],j=x!=null?u?x.self:`${w} ${x.cardUser}`:L.strings.empty;return i.jsx(Me,{windowSize:$,children:i.jsxs(We,{onClick:h,"data-testid":b("charge-card-admin-row",e.id),children:[i.jsxs(se,{children:[i.jsxs(Je,{children:[i.jsx(Et,{children:i.jsx(De,{personBasic:e.cardHolderUser,styles:{height:t.sp6,width:t.sp6}})}),i.jsx(Ft,{children:i.jsxs(At,{children:[i.jsx(Tt,{children:i.jsx(_t,{windowSize:$,title:w,children:w})}),i.jsx(ae,{style:{marginTop:`-${t.sp1}`},children:e.cardHolderRoles?.userRoles!=null&&i.jsx(Ve,{roles:e.cardHolderRoles?.userRoles})})]})})]}),i.jsx(Ge,{children:i.jsx(i.Fragment,{children:n===e.id?i.jsx(Ue,{size:"Small",start:!0}):i.jsxs(Jt,{children:[i.jsxs(Vt,{children:[e.status.code!=="request_on_hold"?i.jsx(Fe,{cardDetail:e}):null,i.jsxs(Ye,{children:[i.jsx(Z,{status:e.status.code}),e.status.code==="request_on_hold"?i.jsx(le,{display:"flex",title:j,placement:"top",style:{padding:`${t.sp2} ${t.sp3}`},children:i.jsx(oi,{className:"infoIconTooltip"})}):null]})]}),e.status.code==="request_on_hold"&&!u?i.jsx(Kt,{children:i.jsx(Bt,{onClick:s=>{s.stopPropagation(),d(e.id)},"data-testid":b("send-reminder-clicked",e.id),children:D.cardList.sendReminder})}):null]})})})]}),i.jsxs(se,{children:[i.jsxs(Xe,{cardUser:!1,children:[i.jsxs(Ke,{children:[i.jsx(qe,{children:`${L.labels.cardName}`}),i.jsxs(Be,{children:[i.jsx(Qe,{title:e.cardName,children:e.cardName}),i.jsx(si,{windowSize:$,children:e.status.code==="request_on_hold"?L.strings.hyphen:D.cardDetails.expiryHideOut+L.strings.space+e.accountLast4})]})]}),i.jsxs(Ae,{children:[i.jsx(He,{children:`${D.cardList.header.cardType}${L.strings.colon}`}),i.jsx(ne,{children:i.jsx(ne,{children:i.jsx(ce,{cardDetail:e,forDetailPage:!1})})})]}),i.jsxs(Ze,{children:[i.jsx(ii,{children:L.labels.limit}),i.jsxs(ti,{children:[i.jsx(ei,{children:T("0,0.[00]",e.limit)}),i.jsx(ri,{}),i.jsx(ae,{children:e.creditLimitFrequency.name})]})]})]}),i.jsx(Wt,{children:e.status.code==="request_on_hold"&&i.jsx(qt,{showMenu:!0,className:"menu-icon",children:i.jsx(_e,{menuItems:i.jsx(Qt,{children:i.jsx(Yt,{"data-testid":b("revoke-invite-clicked",e.id),onClick:s=>{s.stopPropagation(),c(!1),l(e.id)},children:D.cardDetails.revokeInvite})}),setIsMenuOpen:c,isMenuOpen:m,styles:{transform:"translate(5px,0px)"}})})})]})]})})},Me=r.div`
|
|
321
321
|
display: flex;
|
|
322
322
|
background-color: ${e=>e.theme.colors.grey5};
|
|
323
323
|
border: ${e=>` 1px solid ${e.theme.colors.grey3}`};
|
|
@@ -372,7 +372,7 @@ import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fi as vi,i6 as Ci,i7 as yi
|
|
|
372
372
|
overflow: hidden;
|
|
373
373
|
text-overflow: ellipsis;
|
|
374
374
|
white-space: nowrap;
|
|
375
|
-
`,
|
|
375
|
+
`,Ke=r(k)`
|
|
376
376
|
color: ${e=>e.theme.colors.hero};
|
|
377
377
|
display: flex;
|
|
378
378
|
flex-direction: row;
|
|
@@ -385,7 +385,7 @@ import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fi as vi,i6 as Ci,i7 as yi
|
|
|
385
385
|
display: flex;
|
|
386
386
|
flex-direction: column;
|
|
387
387
|
align-items: flex-end;
|
|
388
|
-
`,
|
|
388
|
+
`,Be=r.div`
|
|
389
389
|
display: flex;
|
|
390
390
|
flex-direction: column;
|
|
391
391
|
max-width: 155px;
|
|
@@ -440,9 +440,9 @@ import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fi as vi,i6 as Ci,i7 as yi
|
|
|
440
440
|
background-color: ${e=>e.theme.colors.hero};
|
|
441
441
|
`,Ht=r(k)`
|
|
442
442
|
color: ${e=>e.theme.colors.hero};
|
|
443
|
-
`,
|
|
443
|
+
`,Kt=r.div`
|
|
444
444
|
padding-right: 20px;
|
|
445
|
-
`,
|
|
445
|
+
`,Bt=r(Te)`
|
|
446
446
|
color: ${y.link};
|
|
447
447
|
cursor: pointer;
|
|
448
448
|
text-align: right;
|
|
@@ -486,7 +486,7 @@ import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fi as vi,i6 as Ci,i7 as yi
|
|
|
486
486
|
display: flex;
|
|
487
487
|
align-items: center;
|
|
488
488
|
gap: ${t.sp1};
|
|
489
|
-
`,Y={lastListItemHeight:new p(200,158),bannerWrapperMarginLeftRight:new p(a[3],a[8]),styledAIIconContainerSize:new p(a[3],a[3])},{spendManagement:{chargeCard:F},common:Q}=V.getLocalizedStrings(),Gt=66,Xt=64,Zt=351,er=136,ir=({cardList:e,showViewForCardUser:o,controllerEmails:n,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:l,creditAccount:m,creditAccountRepayment:c,productInformation:w,cashbackInformation:u,creditAccountInformation:$,debitAccountInformation:S,depositAccountListWithDebitCardIssued:x,uiState:j,signedInUser:s,fetchState:g,receiptBotEmail:f,searchText:R,resendInviteId:O,onChargeCardResendInviteClick:I,onChargeCardRevokeInviteClick:A,onChargeCardRowClick:H,onReloadCards:N,onColumnSortConfigChanged:
|
|
489
|
+
`,Y={lastListItemHeight:new p(200,158),bannerWrapperMarginLeftRight:new p(a[3],a[8]),styledAIIconContainerSize:new p(a[3],a[3])},{spendManagement:{chargeCard:F},common:Q}=V.getLocalizedStrings(),Gt=66,Xt=64,Zt=351,er=136,ir=({cardList:e,showViewForCardUser:o,controllerEmails:n,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:l,creditAccount:m,creditAccountRepayment:c,productInformation:w,cashbackInformation:u,creditAccountInformation:$,debitAccountInformation:S,depositAccountListWithDebitCardIssued:x,uiState:j,signedInUser:s,fetchState:g,receiptBotEmail:f,searchText:R,resendInviteId:O,onChargeCardResendInviteClick:I,onChargeCardRevokeInviteClick:A,onChargeCardRowClick:H,onReloadCards:N,onColumnSortConfigChanged:K})=>{const v=_(),di=ee(),li=fi().analytics,ci=!!di.loggedInUserRole.includes("charge_card_user"),he=de(),[,hi]=vi(),[J,pe]=C.useState(!1),[ie,me]=C.useState(!1),pi=()=>{f!=null&&((!h||m.fetchState==="Completed"&&c.fetchState==="Completed")&&(!(d&&l)||x.fetchState==="Completed")&&li.trackCardsCopyIconClick(n,w,"Cards List","Copy","copied","Receipt Email",f,u,$,S),hi(f),pe(!0))};C.useEffect(()=>{J===!0&&setTimeout(()=>{pe(!1)},800)},[J]);const xe=()=>v!=="small"?Ci:ci?yi:ji,mi=e.length*xe()+Gt+Xt,ge=window.innerHeight-Zt,xi=mi>ge,te=C.useRef(null);C.useEffect(()=>{te.current?.resetAfterIndex(0)},[v,te]);const gi=()=>g==="Error"?i.jsxs(nr,{children:[i.jsx(dr,{onClick:N,"data-testid":b("charge-card-list-reload"),children:i.jsx(lr,{})}),i.jsx(cr,{children:Q.reloadPage.label})]}):g==="Completed"&&e.length===0?i.jsx(bi,{sourceView:"charge_cards",style:{height:"calc(100vh - 450px)"},title:F.cardList.getStarted,message:R!==""?F.cardList.noDataWithFilterText:F.cardList.noDataText,messageStyle:{maxWidth:345,color:he.colors.primary,...re.largeRegular.cssObject}}):i.jsxs(ni,{children:[f!=null?i.jsxs(xr,{windowSize:v,children:[i.jsx(vr,{windowSize:v,children:i.jsx(Cr,{})}),i.jsxs(yr,{windowSize:v,children:[i.jsxs(gr,{children:[i.jsx(sr,{children:F.aiCardAgentText}),Q.strings.space,F.receiptBotMessage,Q.strings.space]}),i.jsxs(fr,{"data-testid":b("charge-card-list-copy-email"),onClick:pi,onMouseEnter:()=>me(!0),onMouseLeave:()=>me(!1),children:[i.jsx(wr,{children:f}),J===!0?i.jsxs(Re,{children:[i.jsx($r,{}),i.jsx(Le,{children:i.jsx(Pe,{shouldDisplay:ie||J,color:y.primaryDark,children:Q.copyToClipBoard.copied})})]}):i.jsxs(Re,{children:[i.jsx(ur,{color:ie?he.colors.primary:void 0}),i.jsx(Le,{children:i.jsx(Pe,{shouldDisplay:ie&&v!=="small",children:Q.copyToClipBoard.copy})})]})]})]})]}):null,i.jsx(hr,{windowSize:v,availableHeight:ge,isListTooLarge:xi,children:i.jsx(ki,{children:({height:wi,width:ui})=>i.jsx(Si,{ref:te,height:wi,itemCount:e.length,innerElementType:B=>tr(B,o,K,j,g),itemSize:xe,estimatedItemSize:zi,itemKey:B=>e[B].id,width:ui,overscanCount:Ii,initialScrollOffset:0,children:B=>i.jsx(rr,{...B,resendInviteId:O,onChargeCardResendInviteClick:I,onChargeCardRevokeInviteClick:A,onChargeCardRowClick:H,showViewForCardUser:o,cardList:e,signedInUser:s})})})})]});return i.jsx(ar,{fetchState:g,children:gi()})},tr=(e,o,n,h,d)=>i.jsx(ai,{...e,showViewForCardUser:o,onColumnSortConfigChanged:n,uiState:{sortKey:h.sortKey,sortOrder:h.sortOrder},fetchState:d}),ai=C.forwardRef((e,o)=>{const{children:n,style:h,uiState:d,onColumnSortConfigChanged:l,showViewForCardUser:m,...c}=e;return i.jsxs(ni,{ref:o,style:{...h,width:"auto"},...c,children:[i.jsx(Bi,{companyNameSticky:!1,showViewForCardUser:m,onColumnSortConfigChanged:l,sortConfig:{sortKey:d.sortKey,sortOrder:d.sortOrder}}),i.jsx(mr,{children:n})]})});ai.displayName=F.cardList.headerElementDisplayName;const Lr=({cardList:e,fetchState:o,uiState:n,receiptBotEmail:h,searchText:d,resendInviteId:l,showViewForCardUser:m,signedInUser:c,cashbackInformation:w,creditAccountInformation:u,debitAccountInformation:$,productInformation:S,onChargeCardRowClick:x,onReloadCards:j,onColumnSortConfigChanged:s,onChargeCardResendInviteClick:g,onChargeCardRevokeInviteClick:f,controllerEmails:R,creditAccountRepayment:O,depositAccountListWithDebitCardIssued:I,isChargeCardFeatureEnabled:A,isDebitCardFeatureEnabled:H,isDebitCardSetupEnabled:N,isChargeCardSetupEnabled:K,creditAccount:v})=>($i({componentName:"cards.list",enabled:o==="Completed"}),i.jsx(ir,{cardList:e,controllerEmails:R,isChargeCardFeatureEnabled:A,isDebitCardFeatureEnabled:H,isDebitCardSetupEnabled:N,isChargeCardSetupEnabled:K,cashbackInformation:w,creditAccountInformation:u,debitAccountInformation:$,productInformation:S,creditAccount:v,creditAccountRepayment:O,depositAccountListWithDebitCardIssued:I,showViewForCardUser:m,signedInUser:c,fetchState:o,receiptBotEmail:h,searchText:d,resendInviteId:l,onReloadCards:j,onChargeCardRowClick:x,uiState:n,onColumnSortConfigChanged:s,onChargeCardResendInviteClick:g,onChargeCardRevokeInviteClick:f})),rr=({index:e,style:o,cardList:n,showViewForCardUser:h,signedInUser:d,resendInviteId:l,onChargeCardResendInviteClick:m,onChargeCardRevokeInviteClick:c,onChargeCardRowClick:w})=>i.jsx(pr,{style:{...o,width:"100%"},className:"spend-management-list-item",children:i.jsx(or,{showViewForCardUser:h,cardDetail:n[e],signedInUser:d,resendInviteId:l,index:e,onChargeCardResendInviteClick:m,onChargeCardRevokeInviteClick:c,onChargeCardRowClick:w})},"listItem"+n[e].id),or=({cardDetail:e,showViewForCardUser:o,signedInUser:n,resendInviteId:h,index:d,onChargeCardResendInviteClick:l,onChargeCardRevokeInviteClick:m,onChargeCardRowClick:c})=>{const w=_()==="small"?Dt:st;return i.jsx(w,{showViewForCardUser:o,cardDetail:e,signedInUser:n,index:d,onChargeCardRowClick:c,resendInviteId:h,onChargeCardResendInviteClick:l,onChargeCardRevokeInviteClick:m})},sr=r(Ui)`
|
|
490
490
|
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
491
491
|
${({theme:e})=>e.mode==="dark"&&`color: ${y.brandColorPearl};`}
|
|
492
492
|
`,ar=r.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as b,B as oe,j as r,u as O,Y as $e,x as ye,a2 as be,a0 as je,l as Se,fq as Te,aX as ze,K as Q,$ as ee,o as t,c7 as ve,T as q,c8 as Pe,r as ke,C as h,bW as Be,bB as Ae,i4 as Ie,w as Re,q as x,J as j,g as $,ap as Le,a7 as Me,i5 as _e}from"./index-CLgXcFOQ.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-rkTZJa59.js";import{x as Fe}from"./MeetingCalenderPopup-DitR3JDv-B2ELvbD2.js";import{k as Ue}from"./NavigationDots-BeVhadXT-CV_pkfV2.js";import{J as H,N as G}from"./PromoBaseCards-C41gmAao-BjkCmCkU.js";import{M as L}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const g={containerPaddingTopBottom:new h(x[0],x[0]),uspContainerMarginX:new h(x[6],x[0]),midContainerGap:new h(x[4],84),iconContainerMinHeight:new h(236,396),emptySectionHeight:new h(x[6],43),navigationBottom:new h(x[4],94),navigationLeft:new h(192,244),carouselHeight:new h(268,396),carouselMarginTop:new h(54,x[4]),carouselMarginLeft:new h(120,x[12]),buttonTrayGap:new h(x[3],x[5]),termsOfAgreementMarginTop:new h(x[5],x[10]),contactAdminContainerMarginTop:new h(x[0],x[10]),contactAdminContainerMarginBottom:new h(x[4],x[0]),contactAdminContainerMarginLeftRight:new h(x[3],x[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Rr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:J,onExpressInterestClick:me})=>{const xe=O(),V=$e(),z=b(),W=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,X=be(M?.fetchStatus.fetchState),[ge,K]=S.useState(!1),he=()=>{W.trackCardsPromoPageClicked("schedule demo"),W.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),K(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{X==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&J()},[X,J,M?.fetchStatus]);const Y=Se.hasChargeCardAdminLevelAccess(V.loggedInUserRoleMap),we=Te(V),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Z=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Je,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:xe.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),ge===!0?r.jsx(Fe,{onCancelClick:()=>{K(!1)},meetingUrl:e}):null,r.jsx(Ke,{windowSize:z,children:Y===!0?r.jsxs(Xe,{children:[r.jsxs(We,{children:[r.jsx(He,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),Y&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Q,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:he,"data-testid":ee("schedule-demo-button")}),r.jsx(Ve,{windowSize:z,children:o.orText}),r.jsx(Q,{variant:"primary",label:Z,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Z===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(c)}})})},He=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ze,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Qe,{windowSize:c,children:f})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Oe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Oe=({cards:e,companyLegalName:s})=>{const i=O(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(xr,{children:[m!=null?r.jsx(Ye,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(gr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(qe,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const qe=()=>{const e=b(),s=O(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(hr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},Je=a.div`
|
|
1
|
+
import{e as b,B as oe,j as r,u as J,Y as $e,x as ye,a2 as be,a0 as je,l as Se,fq as Te,aX as ze,K as Y,$ as ee,o as t,c7 as ve,T as O,c8 as Pe,r as ke,C as h,bW as Be,bp as Ae,i4 as Ie,w as Re,q as x,J as j,g as $,ap as Le,a7 as Me,i5 as _e}from"./index-DIh8Zr8t.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-rkTZJa59.js";import{x as Fe}from"./MeetingCalenderPopup-BYqoYPoy-DWbEFvhX.js";import{k as Ue}from"./NavigationDots-2l4DJyet-Cj8JLkJu.js";import{J as H,N as G}from"./PromoBaseCards-CC4THVdC-6kRLHFkY.js";import{M as L}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const g={containerPaddingTopBottom:new h(x[0],x[0]),uspContainerMarginX:new h(x[6],x[0]),midContainerGap:new h(x[4],84),iconContainerMinHeight:new h(236,396),emptySectionHeight:new h(x[6],43),navigationBottom:new h(x[4],94),navigationLeft:new h(192,244),carouselHeight:new h(268,396),carouselMarginTop:new h(54,x[4]),carouselMarginLeft:new h(120,x[12]),buttonTrayGap:new h(x[3],x[5]),termsOfAgreementMarginTop:new h(x[5],x[10]),contactAdminContainerMarginTop:new h(x[0],x[10]),contactAdminContainerMarginBottom:new h(x[4],x[0]),contactAdminContainerMarginLeftRight:new h(x[3],x[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Rr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:q,onExpressInterestClick:me})=>{const xe=J(),V=$e(),z=b(),W=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,X=be(M?.fetchStatus.fetchState),[ge,K]=S.useState(!1),he=()=>{W.trackCardsPromoPageClicked("schedule demo"),W.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),K(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{X==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&q()},[X,q,M?.fetchStatus]);const Z=Se.hasChargeCardAdminLevelAccess(V.loggedInUserRoleMap),we=Te(V),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Q=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(qe,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:xe.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),ge===!0?r.jsx(Fe,{onCancelClick:()=>{K(!1)},meetingUrl:e}):null,r.jsx(Ke,{windowSize:z,children:Z===!0?r.jsxs(Xe,{children:[r.jsxs(We,{children:[r.jsx(He,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),Z&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:he,"data-testid":ee("schedule-demo-button")}),r.jsx(Ve,{windowSize:z,children:o.orText}),r.jsx(Y,{variant:"primary",label:Q,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Q===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(c)}})})},He=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Qe,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Ye,{windowSize:c,children:f})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Je,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Je=({cards:e,companyLegalName:s})=>{const i=J(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(xr,{children:[m!=null?r.jsx(Ze,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(gr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Oe,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Oe=()=>{const e=b(),s=J(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(hr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},qe=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -45,18 +45,18 @@ import{e as b,B as oe,j as r,u as O,Y as $e,x as ye,a2 as be,a0 as je,l as Se,fq
|
|
|
45
45
|
flex-wrap: wrap;
|
|
46
46
|
padding: ${t.sp5} ${t.sp0} ${t.sp0} ${t.sp0};
|
|
47
47
|
color: ${e=>e.theme.colors.primary};
|
|
48
|
-
`,ce=a(
|
|
48
|
+
`,ce=a(O)`
|
|
49
49
|
max-width: 314px;
|
|
50
50
|
margin: auto;
|
|
51
51
|
color: ${e=>e.theme.colors.primary};
|
|
52
52
|
padding: 6px ${t.sp3} ${t.sp0} ${t.sp3};
|
|
53
53
|
text-align: center;
|
|
54
54
|
margin-top: 6px;
|
|
55
|
-
`,
|
|
55
|
+
`,Ze=a.img`
|
|
56
56
|
border-radius: 50%;
|
|
57
57
|
justify-content: center;
|
|
58
58
|
color: ${e=>e.theme.colors.hero};
|
|
59
|
-
`,
|
|
59
|
+
`,Qe=a.div`
|
|
60
60
|
display: flex;
|
|
61
61
|
flex-direction: row;
|
|
62
62
|
align-items: center;
|
|
@@ -75,7 +75,7 @@ import{e as b,B as oe,j as r,u as O,Y as $e,x as ye,a2 as be,a0 as je,l as Se,fq
|
|
|
75
75
|
${e=>e.hideBadge&&`
|
|
76
76
|
visibility: hidden;
|
|
77
77
|
`}
|
|
78
|
-
`,
|
|
78
|
+
`,Ye=a(O)`
|
|
79
79
|
color: ${e=>e.theme.mode==="dark"?$.brandColorJade:$.brandColorSapphire};
|
|
80
80
|
text-align: ${e=>e.windowSize==="small"?"left":"center"};
|
|
81
81
|
${e=>`${T.promoBadgeText.style(e.windowSize)}`};
|
|
@@ -156,7 +156,7 @@ import{e as b,B as oe,j as r,u as O,Y as $e,x as ye,a2 as be,a0 as je,l as Se,fq
|
|
|
156
156
|
margin-top: ${t.sp4};
|
|
157
157
|
margin-bottom: ${t.sp6};
|
|
158
158
|
`}
|
|
159
|
-
`,pr=a(
|
|
159
|
+
`,pr=a(O)`
|
|
160
160
|
color: ${e=>e.theme.colors.hero};
|
|
161
161
|
margin-top: ${e=>g.contactAdminContainerMarginTop.valuePx(e.windowSize)};
|
|
162
162
|
margin-bottom: ${e=>g.contactAdminContainerMarginBottom.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ie,e as Ve,x as Be,a2 as M,a as Ue,ca as $e,l as ze,B as _e,a8 as G,j as t,cP as Re,g as Le,C as r,aX as We,m as qe,F as Ne,dO as He,o as U,v as Me,aS as Ge,a4 as Je,q as a,s as Xe}from"./index-
|
|
1
|
+
import{u as Ie,e as Ve,x as Be,a2 as M,a as Ue,ca as $e,l as ze,B as _e,a8 as G,j as t,cP as Re,g as Le,C as r,aX as We,m as qe,F as Ne,dO as He,o as U,v as Me,aS as Ge,a4 as Je,q as a,s as Xe}from"./index-DIh8Zr8t.js";import{b as p,n as S}from"./vendor-rkTZJa59.js";import{D as Ke}from"./HelpButton-Cejsxx_E-DbOhIKff.js";import{q as Qe}from"./SetUpDefaultSection-fQGcSH2--i6_Lmo2x.js";import{f as Ye,y as J}from"./SpendMgmtSetupAccountSection-D5iTQjyq-C5Z8ggWG.js";import{x as Ze}from"./LabeledControlledCheckBoxField-BDA4nfH4-D0iYyig-.js";import{g as et}from"./UploadAdditionalDocumentOverlay-BT2BHgsi-mJFaB3wn.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-BYqoYPoy-DWbEFvhX.js";import"./ChargeCardUtils-zpJF3Rda-Be5yTQoe.js";import"./CreditCardPaymentPlgSection-BpNE78CU-stoFu9l7.js";import"./ChaseOverlay-DjKikFfn-CLpspWOE.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},X="chargeCardSetUpPage",g="payAccount",{commonSetUp:tt,spendManagement:nt}=_e.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:$}=tt,Tt=({autoPayThreshold:e,isDisabled:x,meetingUrl:T,isEarlyPayEnabled:h,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:v,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:se,onUpdateChargeCardClick:le,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:ge,onEstablishConnectionSuccess:he,onClickMenuIcon:fe,onEnableChargeCardSuccess:P,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe,onSignUpClick:Pe})=>{const f=Ie(),i=Ve(),E=Be().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:z,isRefreshingViewInBackground:we,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:_,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:R}=o,L=M(b),A=M(d.fetchState),j=Ue({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>K(o),[o]),values:K(o)}),ve=j.handleSubmit(se),Ee=async(C,k)=>{const n=k[g];if(C.includes(g))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&l?.id!=n.fundingAccount.selectedOption){const u=R.find(B=>B.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(B=>B.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&E.trackConnectBankLink(u.value,u.label,"charge_cards"),le(n.account.selectedOption,l.id,l.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=j.watch((k,{name:n})=>{n!=null&&k!=null&&$e(()=>Ee(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&y(!0),w&&L==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const D=F?.isChargeCardEnabled===!0,O=_?.isDebitCardEnabled===!0,W=_?.isDebitCardTOSAccepted===!0,q=F?.isChargeCardTOSAccepted===!0,N=z?.isBusinessVerified===!0,Fe=l?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(l?.providerVerificationStatus?.code??""),I=v?N:N&&Fe,je=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const V=v?I&&!O&&W:ie?I&&!D&&q:I&&!(D&&O)&&q&&W,De=V?m.setupSubTitleNotEnabled:m.setupSubTitle,H=f.mode==="light"?new G(f.colors.brandColorJadeLight):new G(f.colors.brandColorJadeDark),Oe=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx(Re,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!D&&!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:fe,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:De}),je?t.jsx(ct,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ne,{...j,children:t.jsx("form",{id:Q(X),onSubmit:ve,children:t.jsxs(st,{windowSize:i,children:[t.jsx(Qe,{onClick:Oe,title:$.businessVerificationTitle,subTitle:$.businessVerificationSubTitle,header:$.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:z?.businessVerificationStatus,isLoading:we,isActiveWhileLoading:!0}),v?null:t.jsx(Ye,{connectedAccountProvider:Z,primaryFundingAccount:l,allFundingAccounts:R,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:g,isDisabled:x,onFetchLinkTokenClick:ae,onEstablishConnectionClick:ge,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:he,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:E,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:Pe,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:f.colors.primary,...Me.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:U.sp4,marginTop:U.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:J(g,"enableAutoPay"),checkBoxValue:J(g,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),V?t.jsx(Je,{formId:Q(X),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${U.sp3}`}}):null,t.jsx(Ke,{isFooterRendered:V,meetingUrl:T,analytics:E,productType:"charge_cards"})]})},K=e=>{const{allBankAccounts:x,allFundingAccounts:T,primaryFundingAccount:h}=e;return{[g]:{fundingAccount:{selectedOption:h?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},Q=e=>`${e}_form`,it=S.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: flex-start;
|
|
4
4
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as F,e as T,j as t,aX as W,B,o as h,C as w,s as R,ao as q,x as O,h6 as V,$ as G,m as J,q as s,
|
|
1
|
+
import{u as F,e as T,j as t,aX as W,B,o as h,C as w,s as R,ao as q,x as O,h6 as V,$ as G,m as J,q as s,bz as Q}from"./index-DIh8Zr8t.js";import{n as i,b as U}from"./vendor-rkTZJa59.js";import{$ as X,g as _}from"./BoxItem-DIbpeSiB-B47dtyeF.js";import{w as H}from"./downloadPdf-B2dA1tl0-DGv4XoQv.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./commonDimensions-DsEmTJ8o-DqHucb_9.js";const Y=B.getLocalizedStrings().months,A={downloadButtonSize:new w(s[4],20)},K=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: ${h.sp3} ${h.sp4};
|
|
4
4
|
flex-direction: row;
|
|
@@ -27,7 +27,7 @@ import{u as F,e as T,j as t,aX as W,B,o as h,C as w,s as R,ao as q,x as O,h6 as
|
|
|
27
27
|
&:hover {
|
|
28
28
|
color: ${e=>e.theme.colors.primary};
|
|
29
29
|
}
|
|
30
|
-
`;function ie({currentTenantCompanyName:e,data:r,index:n,controllerEmails:l,isDebitCardFeatureEnabled:a,isDebitCardSetupEnabled:o,chargeCardCashbackDetailState:d,depositAccountListWithDebitCardIssued:g,debitCardSummary:C,productInformation:
|
|
30
|
+
`;function ie({currentTenantCompanyName:e,data:r,index:n,controllerEmails:l,isDebitCardFeatureEnabled:a,isDebitCardSetupEnabled:o,chargeCardCashbackDetailState:d,depositAccountListWithDebitCardIssued:g,debitCardSummary:C,productInformation:S,creditAccountInformation:y,debitAccountInformation:$,cashbackInformation:f,creditAccountRepayment:j,authParams:P,downloadEndPoint:k,boxType:I}){const b=O().analytics,[v,z]=U.useState(!1),c=T(),E=Y[r.monthYearPeriod.month-1],p=`${e}-Credit-Card-Monthly-Statement-${Y[r.monthYearPeriod.month-1]}-${r.monthYearPeriod.year}.pdf`,m={period:`${r.monthYearPeriod.year}-${V(r.monthYearPeriod.month)}`,format:"pdf"},u=t.jsx(K,{children:t.jsxs(Z,{children:[t.jsx(ee,{children:E}),t.jsx(te,{"data-testid":G("download-card-statement"),onClick:()=>{d.fetchState==="Completed"&&j.fetchState==="Completed"&&(!(a&&o)||g.fetchState==="Completed"&&C?.fetchState==="Completed")&&f!=null&&b.trackCardsDownloadClick(l,S,f,{fileCategory:"Credit Card Statement",fileType:"pdf",fileName:p,fileMonthYear:`${Y[r.monthYearPeriod.month-1]} ${r.monthYearPeriod.year}`},"Credit Card Statements",n+1,y,$),H(`${k}/statements?query=${encodeURIComponent(JSON.stringify(m))}`,p,P,z)},children:v?t.jsx(J,{size:"Small",start:!0}):t.jsx(ae,{windowSize:c})})]})});return t.jsx(_,{content:u,boxType:I,isDisabled:!1,isNotClickable:!0})}const M=B.getLocalizedStrings().spendManagement.chargeCard.statements,x={listItemMarginLeftRight:new w(s[3],s[8]),containerMarginTop:new w(s[0],s[2]),titleMarginLeftRight:new w(s[3],s[8])},je=({currentTenantCompanyName:e,authParams:r,controllerEmails:n,productInformation:l,cashbackInformation:a,creditAccountInformation:o,debitAccountInformation:d,isChargeCardFeatureEnabled:g,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:S,isChargeCardSetupEnabled:y,chargeCardCashbackDetailState:$,depositAccountListWithDebitCardIssued:f,creditAccountRepayment:j,debitCardSummary:P,creditAccount:k,downloadEndPoint:I,statementListView:b,onBackClick:v})=>{const z=F(),c=T(),{sortedYear:E,monthsByYearWithSortedMonth:p}=me(b.statements);return t.jsxs(se,{children:[t.jsx(W,{title:M.title,backgroundColor:z.colors.grey4,style:{zIndex:3},onBackClick:v,source:"ChargeCardStatementsPage"}),t.jsx(ce,{windowSize:c,children:b.statements.length===0?t.jsx(L,{children:t.jsx(de,{children:t.jsx(N,{windowSize:c,children:t.jsx(le,{children:M.noStatements})})})}):t.jsx(re,{children:E.map(m=>t.jsxs(ne,{children:[t.jsx(oe,{windowSize:c,children:m}),t.jsx(L,{children:p[m].map((u,D)=>t.jsx(N,{windowSize:c,children:t.jsx(ie,{productInformation:l,creditAccountInformation:o,debitAccountInformation:d,cashbackInformation:a,creditAccountRepayment:j,depositAccountListWithDebitCardIssued:f,debitCardSummary:P,controllerEmails:n,isChargeCardFeatureEnabled:g,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:S,isChargeCardSetupEnabled:y,chargeCardCashbackDetailState:$,creditAccount:k,currentTenantCompanyName:e,index:D,data:u,authParams:r,downloadEndPoint:I,boxType:X(D,p[m].length)},u.id)},u.id))})]},m))})})]})},re=i.div``,ne=i.div`
|
|
31
31
|
margin-bottom: ${h.sp6};
|
|
32
32
|
`,L=i.div``,oe=i(q)`
|
|
33
33
|
margin-left: ${e=>x.titleMarginLeftRight.valuePx(e.windowSize)};
|
package/dist/assets/{ChargeCardUtils-s0f7WDmF-DROWW4W4.js → ChargeCardUtils-zpJF3Rda-Be5yTQoe.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fl as D,B,dt as c,l as S}from"./index-
|
|
1
|
+
import{fl as D,B,dt as c,l as S}from"./index-DIh8Zr8t.js";function A(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const L=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(S.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=B.getLocalizedStrings(),N=({chargeCardDetailView:e,classListFetchState:a,analytics:r,isChargeCardFeatureEnabled:d,creditAccount:t,pageName:o,addToWalletType:i,creditAccountRepayment:l,isDebitCard:n,isChargeCardAdmin:m,cardIssuedByRoles:u,cardIssuedByDepartmentName:h,cardHolderRoles:C,cardHolderDepartmentName:g,controllerEmails:p,productInformation:y,creditAccountInformation:f,debitAccountInformation:I})=>{e.chargeCard!=null&&a==="Completed"&&(!d||t.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(n&&m)||e.depositAccountLimitFetchState.fetchState==="Completed")&&r.trackCardsAddToWalletClick(p,y,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:F(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:D(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name},{cardIssuedByName:c(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:u,cardIssuedByDepartment:h},{cardholderName:c(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},o,i,f,I)},b=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},M=e=>e.limit.amount-e.available.amount,Y="1.75";export{F,N as H,A as L,b as M,L as U,M as _,Y as b};
|