@zeniai/web-cockpit-ui 1.14.35-qa → 1.14.36-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-MP6kdpXK-BAG6ONUf.js → ACHDetailsPage-3oKbHC1_-Qn9d1Xyv.js} +1 -1
- package/dist/assets/{AIPerformancePage-BhOaFmfv-DJPCQGme.js → AIPerformancePage-Cn2skpeY-BNc-HLpr.js} +26 -26
- package/dist/assets/{AccountInfoPage-D9Ft_CT9-Co34pWp7.js → AccountInfoPage-Dxnr3s2C-ByHNSUfv.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DvWx52e0-JoBHhmtJ.js → AccountInfoPageContent-CMT1vJ_n-DgA1oKva.js} +30 -30
- package/dist/assets/{AccountLockedInfoModal-B1_3C1ER-CsXXKJaZ.js → AccountLockedInfoModal-2GuYlOQJ-Cb5egJeS.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-D9e7qhm0-DJD0R9bB.js → AccountReconDetailsDrawerPage-Cu_lsw9T-Ct4NG0ON.js} +13 -13
- package/dist/assets/{AccountRow-CiIWoLq3-BYr2bUH2.js → AccountRow-BcSPuOPF-R9MJWqpQ.js} +14 -14
- package/dist/assets/{AccountsPromoCardStack-CC72plKm-Matqa_MR.js → AccountsPromoCardStack-Ch88Cvn8-B36ZrxM-.js} +30 -30
- package/dist/assets/{AddAddressForCardDrawer-CIj76DoU-B9TffAvk.js → AddAddressForCardDrawer-Df4OROTJ-Ccg4Z6Tb.js} +1 -1
- package/dist/assets/{AddToWalletPage-B3vdkyWl-VZV_7F8R.js → AddToWalletPage-DgVLkIkz-CQF3I5rp.js} +19 -19
- package/dist/assets/{AgingReportsPage-CbkMxxO_-BABl_foK.js → AgingReportsPage-M1xr5QPt-DB06_ukJ.js} +15 -15
- package/dist/assets/{AllUserItems-DJo9kLSI-CnxvFofk.js → AllUserItems-CzMARJS5-DMwRKAgK.js} +11 -11
- package/dist/assets/{ApAgingDetailPage-DcAh6DLg-COmx3rdg.js → ApAgingDetailPage-C3YN724_-CRhegmmd.js} +3 -3
- package/dist/assets/{AppBasePage-DztnPkfs-C6ROiaUG.js → AppBasePage-CP4BX_QO-B6mlxKAR.js} +16 -16
- package/dist/assets/{AppDrawerContent-DDmKn21i-B0r6j2g7.js → AppDrawerContent-Dc3UorVz-DdpZ1z1h.js} +8 -8
- package/dist/assets/{ApprovalRulesSettingsPage-Di8tAJ8K-sRJdWOYr.js → ApprovalRulesSettingsPage-DHw_cGEb-DsqpcHH3.js} +1 -1
- package/dist/assets/ArAgingChart-D6396NAQ-B7eZ8sbL.js +24 -0
- package/dist/assets/{ArAgingDetailPage-B3JQ08nH-yWZ4Q_gU.js → ArAgingDetailPage-BU6gubOU-BkAN4ZrM.js} +1 -1
- package/dist/assets/{AttachmentView-p8mBqYjm-DXZMkL5k.js → AttachmentView-Cjq9bT2R-B9cOvAgG.js} +6 -6
- package/dist/assets/{BankAccountSection-AuQLRvdb-C_Pp6K1g.js → BankAccountSection-DcBAe_nk-Cj8Y52AW.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-HvUMABu0-7weYEdUg.js → BankAccountWarningSection-CgdNj2lq-DoFj2r_M.js} +19 -19
- package/dist/assets/{BankConnectionsSettingsPage-D61w90F9-DfyisqdH.js → BankConnectionsSettingsPage-DN-l_MKN-CZ9NiTex.js} +10 -10
- package/dist/assets/{BillDetailPage-nqHoph6T-DVUv4kUT.js → BillDetailPage-DSNj9dZa-GtcAJ7zm.js} +11 -11
- package/dist/assets/BillPayApprovalRuleDetailPage-Bn_93mxC-PbuiMjZ5.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-Bd87v4ca-Bux_Krxh.js → BillPayApprovalRulesPage-3E7Zb7Tv-8xvci8F-.js} +7 -7
- package/dist/assets/{BillPayPromoPage-CNiTD_mM-BuGb7q9e.js → BillPayPromoPage-iqi-3PsJ-BJG1XRwv.js} +32 -32
- package/dist/assets/{BillPaySetUpPage-BUSwkzqv-DIcHGcbo.js → BillPaySetUpPage-DkBnCNVT-DuhN0B9J.js} +2 -2
- package/dist/assets/{BillingSettingsPage-aPRvtlqA-CvfD2Y8F.js → BillingSettingsPage-Bxl_rTxp-CiR8VS-8.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-BU3VuxEm-VUKCHen3.js → BillsBulkReviewDrawerPage-BAQfge2H-BRM7aN30.js} +1 -1
- package/dist/assets/{BoxItem-CZKWkdxd-B5o_Xoj8.js → BoxItem-BiXktaUJ-Cfy2EaaH.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CeDGi-RH-xh2K8rbM.js → BusinessVerificationPage-BvtQdbIO-BG9aG986.js} +7 -7
- package/dist/assets/CardNumberSubText-usoiubBx-JT9ehyHX.js +21 -0
- package/dist/assets/{CashbackDetailPage-V-W_U5k1-DPPyNC8_.js → CashbackDetailPage-CKSxtvZL-C5tKHPnX.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-BP-zAMYI-C3fXrPWG.js → ChargeCardDetailPage-Dwb3MwPx-DGZ2FMyW.js} +40 -40
- package/dist/assets/{ChargeCardListPage-DORW9YE4-V1Xd3RQj.js → ChargeCardListPage-CQ3lUqTC-ClOjN4Tj.js} +27 -27
- package/dist/assets/{ChargeCardListTable-C32mZrwY-BKVvlwyx.js → ChargeCardListTable-B2MUmgfU-D_6CnuuE.js} +14 -14
- package/dist/assets/{ChargeCardPromoPage-CE4kH4Js-DA3SyzWk.js → ChargeCardPromoPage-DNZ_qrk1-Ckodpm9A.js} +14 -14
- package/dist/assets/{ChargeCardSetupPage-CumpB2GQ-CLFpKwEI.js → ChargeCardSetupPage-DX4VlcBt-9AzPA1m8.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DPIAjww0-B4pg53DT.js → ChargeCardStatementsPage-DlVfCfY8-Ciq-TW-L.js} +6 -6
- package/dist/assets/ChargeCardUtils-i4In9Us5-BeJKYV4x.js +1 -0
- package/dist/assets/{ChaseOverlay-BGZfbx0H-CY_E45BY.js → ChaseOverlay-DYQYE0RM-Cl7PDEtm.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-Bl52b4SW-CZzuzj_7.js → CheckDepositDrawerPage-C653BICE-BliVsvVN.js} +11 -11
- package/dist/assets/{CollapsableReportTable-B0wI9SM1-DyxRAEGL.js → CollapsableReportTable-KGZROyWO-BB5JbMLM.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DyOVRvtQ-qzbkNJ8X.js → CompanyOfficerDetailsSection-WlKm-fM0-DT0aWaVM.js} +30 -30
- package/dist/assets/{CompanyPassportCard-C_YUK3R3-BmAXdeyi.js → CompanyPassportCard-BXQt77bL-CgrFJoow.js} +5 -5
- package/dist/assets/{CompanyPassportPage-QFJ0G7X7-usFLRy-E.js → CompanyPassportPage-CdM9x1g7-DHJ-ptII.js} +29 -29
- package/dist/assets/{CompleteProfile-DVE16v3y-CMtnbQZR.js → CompleteProfile-g0ErQlZA-BaxE51VT.js} +1 -1
- package/dist/assets/{ConfettiBurst-BA8BvtO--w2UtNkAF.js → ConfettiBurst-Cu0ce9ZQ-B47uGNY_.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-ncBGwfXK-BUe0tXGP.js → CreateOrEditVendorPage-Zn--1Mu0-xtwEugAO.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-DqEVQgMx-DFK6MZ6X.js → CreditCardPaymentDrawerPage-BSS4YcVE-BNPDfaX6.js} +19 -19
- package/dist/assets/{CreditCardPaymentPlgSection-vmErttTD-CytN37qx.js → CreditCardPaymentPlgSection-QKLSnyR5-DUyvaz3Z.js} +8 -8
- package/dist/assets/{CurrencySelectField-BEb19UaA-BoldRT0Z.js → CurrencySelectField-DxrwSaJK-Cu5VbUzb.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-L4l1ybmh-B2kuCczW.js → CustomerOnboardingActivationPage-BbfI4g9k-bQf7ee-N.js} +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-DkXWw44M-DCp1xd8r.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D3Zm658F-BuH9tDfF.js → CustomerOnboardingDetailPageSkeleton-DyIeAi4x-Ciojhx6k.js} +9 -9
- package/dist/assets/{CustomerOnboardingNoStepsPage-BXsJFpEX-DgMgRgZi.js → CustomerOnboardingNoStepsPage-BbHZQvuH-pcu4RngU.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-D3zpI1df-COxdjvpq.js → CustomerOnboardingPage-BGKjRruK-C_-kvbjL.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-DjVZfC2C-9VLKFifa.js → CustomerOnboardingProductSuitePage-Cmwfbh1x-D3ospPa7.js} +1 -1
- package/dist/assets/{Dashboard-wY0FneRs-CscNuWPH.js → Dashboard-DCbGYUNO-CggBXce9.js} +114 -114
- package/dist/assets/{DashboardReportPage-CMgr0CSc-DFK7qDD5.js → DashboardReportPage-7sacscjb-CCrnEMLn.js} +19 -19
- package/dist/assets/{DashboardSidebarBackgroundAnimation-B73UBY5T-CojDVgPF.js → DashboardSidebarBackgroundAnimation-CcQR2lMq-Cf2eLsVD.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DrqBG940-BL30cPZ9.js → DepositAccTransactionItem-u7kiVxu3-Cq_mC_h_.js} +3 -3
- package/dist/assets/DepositAccTransactionListPage-BTMDl7KO-CkFA5sso.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-vRHD5DmW-CB41e-Go.js → DomesticWireDetailsPage-CjliTPRp-Cxo45rzx.js} +1 -1
- package/dist/assets/{DownloadOverlay-D_UoB4Xy-CXZqPF3W.js → DownloadOverlay-LzyYQ7X7-Cqsz6Go0.js} +1 -1
- package/dist/assets/{DrawerPage-ijHe0bCp-DiEqZBob.js → DrawerPage-DVu3OGym-ELFavZIA.js} +5 -5
- package/dist/assets/{EditPeoplePage-BehcmP1s-B0OWtRsu.js → EditPeoplePage-COZuksUu-BAJ712Zd.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-Cz82Vz26-BRJ7TMrj.js → EditReimbursementDetailPage-P7gybbTe-DhmHzkez.js} +59 -59
- package/dist/assets/{EntityDetailPage-CN-ewzjy-BWpB3zGM.js → EntityDetailPage-CMAFiXng-EHp1vVUv.js} +2 -2
- package/dist/assets/{EntitySummarySection-B4ozhtlU-Bh59rhzI.js → EntitySummarySection-BezHSTT7-CA4YQ14w.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-BmNuSoUs-u9wwMA7C.js → ExpenseAutomationOverviewPage-CX5wpbbp-BxzSM0jW.js} +17 -17
- package/dist/assets/ExpenseAutomationPage-CaeVli6J-DwDyMFlL.js +1650 -0
- package/dist/assets/{ExpressPayPage-CgrGtZ4F-DhVG-NpX.js → ExpressPayPage-KpzY-AC4-B3x4TcSO.js} +9 -9
- package/dist/assets/{FeaturePreviewPage-Dk_c37Rm-DmGR9BMT.js → FeaturePreviewPage-T7VgNi57-XquGM-uR.js} +2 -2
- package/dist/assets/{FollowStepsSection-BVi7m38_-DCvEuFsi.js → FollowStepsSection-BffVXexb-Wb7yroWy.js} +23 -23
- package/dist/assets/{GlobalReviewListPage-DiZGC9B1-DVmZQU9C.js → GlobalReviewListPage-DPJug-7p-FbhUXbzf.js} +14 -14
- package/dist/assets/{HelpButton-DiIoYeXn-B1h-JEp9.js → HelpButton-BkxT0f9t-DltO0YWd.js} +4 -4
- package/dist/assets/{InformationCardStack-C8-4dhWR-CkAP-hMp.js → InformationCardStack-CiO7p4bX-Ca7THwnz.js} +4 -4
- package/dist/assets/{InsightsCardStack-BKm0dSeJ-BPY6fmB5.js → InsightsCardStack-CCx4eRv0-BoXCNjZt.js} +9 -9
- package/dist/assets/{InsightsSection-C9MHOCQd-CxH8mnp9.js → InsightsSection-CQRpIy9c-BVaWF-TR.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-4qlL5Dsx-pk08ZRqz.js → IntegrationsSettingsPage-CDHIF3ky-BZdWjiMh.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-DqCtPykV-RePKT-cw.js → InternationalWireSwiftDetailsPage-BTB0YTLP-Fw5hYyJd.js} +13 -13
- package/dist/assets/{InternationalWireVerificationPage-Cl-p0inO-N3ibBM1E.js → InternationalWireVerificationPage-DZAa5CXK-CShVs05a.js} +10 -10
- package/dist/assets/{InviteFormPage-L6j0rOBW-BljG3gyG.js → InviteFormPage-CVIA_4cc-xvdMmRWy.js} +20 -20
- package/dist/assets/{InvitePageListView-KYjMIc4q-BvLSTtNP.js → InvitePageListView-BapkK9dR-CMoNigd7.js} +40 -40
- package/dist/assets/InvitePeoplePage-ChM26gAd-3PSfXhTf.js +12 -0
- package/dist/assets/{InvoiceUploadSection-DZC4oscG-qxWcqOIO.js → InvoiceUploadSection-CfoxMKse-CDgcPY9V.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-DMdZCfqA-CZcxwjMQ.js → IssueChargeCardPage-DoNxoxCV-BuHBJdzr.js} +22 -22
- package/dist/assets/{LabeledAddressValue-CBOrzSsG-nee1vU4U.js → LabeledAddressValue-DzKLuwO0-Dbmo8xwC.js} +1 -1
- package/dist/assets/LabeledAddressValueField-C-fJPbDr-BL1p3tu1.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-BoXsUqpR-oiIFvQRa.js → LabeledControlledCheckBoxField-BsXmJGaz-B9D7gdxU.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CQPkrdRe-DDLZPwbC.js → LabeledCreatableSingleSelectField-CNcoKtBi-DbNXS5w-.js} +2 -2
- package/dist/assets/{LabeledDocumentField-DEeeTuVw-uCiSHKoS.js → LabeledDocumentField-DB-XX9hy-ARW_yKHV.js} +3 -3
- package/dist/assets/{LabeledDropDownFormattedTextField-DYRkxlY--Bk-7Qy7i.js → LabeledDropDownFormattedTextField-ChF-tfZl-CoOdklmM.js} +3 -3
- package/dist/assets/{LabeledText-DQiR_FIX-Cq-hk8XI.js → LabeledText-DQjY46zj-CJXj8rFi.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-BgLjIn8p.js → LabeledUserSingleSelectWithSubtitlesField-Dg_jyvIT-BII3s1HZ.js} +7 -7
- package/dist/assets/{LabeledZeniRolesDropDownField-azPB8idg-Dod-yMmJ.js → LabeledZeniRolesDropDownField-qeHXm7K1-iR_szjxt.js} +6 -6
- package/dist/assets/{LinkJETransactionPage-Ct0HcxvN-CoVcew-v.js → LinkJETransactionPage-DWq96C-C-BScn3NVF.js} +6 -6
- package/dist/assets/{LowBalancePopup-Zvy2iURT-CKL7oXqu.js → LowBalancePopup-DIu4EJtv-FHHWLFWk.js} +4 -4
- package/dist/assets/{MagicLinkACHDetailsPage-BY6pEieF-CMSi32Px.js → MagicLinkACHDetailsPage-0uTQmYPp-CFGb5gZH.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BK5RZSiS-BptWrimx.js → MagicLinkDomesticWireDetailsPage-CtkSDg_U-DqPdzilp.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-hK5cNiNB-WwKIYKSe.js → MagicLinkInternationalWireDetailsPage-qNEvVVcm-C2m2KEe0.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Drn_p982-Dd9Y_AlA.js → MagicLinkSuccessPage-D4C3XF4W-EgVx2lLe.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DRMHVOzF-BonTYr-V.js → MagicLinkTitleSection-DXZCLfIM-2GWQnCnZ.js} +9 -9
- package/dist/assets/{MailingDetailsSection-DgdAYgpS-CFXayn-8.js → MailingDetailsSection-7_w5PfFQ-C9R3FLGa.js} +6 -6
- package/dist/assets/{MeetingCalenderPopup-CAh7iae0-CIOK3_iA.js → MeetingCalenderPopup-2P6uhLqh-CkyOJaM-.js} +1 -1
- package/dist/assets/{Menu-bleLgSLu-DaNN7jzz.js → Menu-Ya9EH9T1-XEx08cqQ.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DRxmQCbq-Bx9nexN4.js → MyBankConnectionsSettingsPage-Bz9BP12B-B0raEGfA.js} +11 -11
- package/dist/assets/{MyPendingActivationChargeCardListPage-BYLhb47G-pes3OjvP.js → MyPendingActivationChargeCardListPage-BxFFCBYU-CmVzmveh.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-eVfCRTfx-C1C2MWMx.js → MyProfileSettingsPage-BRTEYBf1-BuzCCWQu.js} +11 -11
- package/dist/assets/{NavBarWithPicker-BE2MW7hB-C2Q1UUPB.js → NavBarWithPicker-Cx1ldzdT-ByHGGAzI.js} +4 -4
- package/dist/assets/{NavigationArrow-eEaMttBX-dVTivT8M.js → NavigationArrow-Cic_S7sL-CafjbEnx.js} +1 -1
- package/dist/assets/{NavigationDots-CNwL0a7I-eyaik967.js → NavigationDots-BnqdhDar-BHuykGzD.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CSWqCqAC-3LX-Lnzn.js → NewGlobalMerchantPage-BMLnV68V-Df2U2-Pi.js} +11 -11
- package/dist/assets/{NoDataChart-DNmdY5gQ-CMwiaxGm.js → NoDataChart-CyIzcvzb-CVVPhPRo.js} +3 -3
- package/dist/assets/{NoDataTable-DW2wAX3o-7ZoMqIrJ.js → NoDataTable-Cf9Qv-ms-BIxVQmVT.js} +1 -1
- package/dist/assets/{NotFoundPage-BMJTG-tj-BCL9lImd.js → NotFoundPage-BP2jA51O-DvlpUk9Z.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-Vd3UvdLu-S0VOV4Ql.js → NotificationSettingsPage-Bhj72XzL-DgHNUBYw.js} +17 -17
- package/dist/assets/NotificationsListConfig-BcRqz3T--CwofCBLm.js +1 -0
- package/dist/assets/{NotificationsPage-BaekDEw7-Cs7zF3k-.js → NotificationsPage-DEQ0muyV-AFyu-A1B.js} +29 -29
- package/dist/assets/{OpExByVendorPage-DNyTA9nx-D6E7lJvv.js → OpExByVendorPage-BPvIdjMh-GjqInlE8.js} +6 -6
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-DQ82QsuS.js → OverlayContainerPage-Bmu909Fo-B4CijHVT.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DbP4ybN4-DeKOl1Oc.js → PandLWithForecastPage-CgMYDel--CrwH5GHU.js} +6 -6
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Dd4Aen8j-Ctc3Ha-y.js → PaymentAccountSetupBillingAddressSection-CfUpfrt6-DiMg5_6V.js} +12 -12
- package/dist/assets/{PeoplePage-B3n7ek2h-uuc0_T22.js → PeoplePage-BrL4O-03-BHA1i9-R.js} +18 -18
- package/dist/assets/{PortfolioAllocationFormPage-CzA_c7hR-D4H-GZTH.js → PortfolioAllocationFormPage-C24sa7Lv-D7dV2koR.js} +7 -7
- package/dist/assets/{PortfolioDetails-Drgv4Osg-Wtx195rT.js → PortfolioDetails-wAtPiO4w-C8Xq6LTb.js} +23 -23
- package/dist/assets/{ProductsCarousel-BnnfJR0o-1ucX8gqh.js → ProductsCarousel-B8KxzJsX-BAeIItJs.js} +5 -5
- package/dist/assets/{PromoBaseCards-BGHJivI8-QTKlmjbr.js → PromoBaseCards-DKu8lmMb-CbitZiAU.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-uiW9eeZu-CJhmYtAn.js → QBOConnectionDialog-CSRVcpvB-DsmFVlUU.js} +9 -9
- package/dist/assets/{QBOSetupSection-DPb0VAii-CLt6Rb6_.js → QBOSetupSection-CwO2OwTA-DfOK3FQy.js} +10 -10
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DWAgRWah-DAeIJHt1.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-C1AFF_DM-vNX_0PWy.js → ReimbursementApprovalRulesPage-CWZIqbqf-2nP7no61.js} +32 -32
- package/dist/assets/{ReimbursementDetailPage-Du6R1zje-DfmTmZh3.js → ReimbursementDetailPage-DaiOed8i-t4bX9i7-.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-CW9eyjp9-hg5pl-np.js → ReimbursementPromoPage-CTpCa9C7-WAySoU1n.js} +6 -6
- package/dist/assets/{ReimbursementSetUpPage-CbPwgIqt-DlHsYtWb.js → ReimbursementSetUpPage-Cd0w6zdZ-CapxuQlm.js} +3 -3
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-D_IG6Yzl-B2GWCVK0.js +1 -0
- package/dist/assets/{ReloadCard-Dvn17Oxl-DzvJVrId.js → ReloadCard-D8XT-nw--BGnVgOtj.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-C5_qr5qe-ClZSH2bH.js → ReportTableViewSelector-kf12PTIw-_koMJS6q.js} +10 -10
- package/dist/assets/{ReportsPage-BNcymVwf-C0BED4Ok.js → ReportsPage-D0dEACVc-CgqzQVRZ.js} +9 -9
- package/dist/assets/{RevenueChart-DILkui6c-DnsmI5K2.js → RevenueChart-D67Egnoj-B0BJYpf4.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-ZYzvK95X-KVKmpgCn.js → ReviewDetailsPage-DX3JdY2D-BVW8q6gp.js} +5 -5
- package/dist/assets/{ReviewOverlay-DhUFI1ES-r1eu-OFz.js → ReviewOverlay-BUmIoEZp-D3xvXshe.js} +4 -4
- package/dist/assets/{RoleWithToolTip-_W95JBwt-C0fe2sAV.js → RoleWithToolTip-QUDWRgyn-DzrP2xLD.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-iQXV-V_H-BhZNXgbs.js → ScheduleDetailsFixedAssetsPage-ffFbqWqR-mWiNohG4.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-KgHwQGrw-B2V1iuf9.js → ScheduleDetailsPage-Btyinpxx-TW4CABi6.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-Bixq8Q7W-N1kxr5zg.js → ScheduleSequenceTable-nubG9ZPF-CmzJbQeN.js} +17 -17
- package/dist/assets/{ScreenRoutes-65j87oC2.js → ScreenRoutes-BC18Q4eZ.js} +1 -1
- package/dist/assets/SetUpAccountSection-C9PPpmcc-puvAr14h.js +378 -0
- package/dist/assets/{SetUpDefaultSection-CI0mxu3H-JpA1rufD.js → SetUpDefaultSection-D54P9sLQ-DIoImqvg.js} +9 -9
- package/dist/assets/{SignIn-DslenepV-m8WTqnO1.js → SignIn-DQERofSd-BPkKMSDj.js} +11 -11
- package/dist/assets/{SignInScreen-Bs1sd9WX.js → SignInScreen-BbeWg9hl.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-D7SzmCmM-DsyAjyVx.js → SpendManagementListViewPage-B9iJVZhK-Dd5zS51l.js} +10 -10
- package/dist/assets/{SpendManagementPerTabPage-DKaDr4mu-CQG-8bWa.js → SpendManagementPerTabPage-DiduNPFx-BvN2qFiJ.js} +12 -12
- package/dist/assets/{SpendManagementSection-Ddfq2u6H-DjhY5rM_.js → SpendManagementSection-BPJDk9AQ-DNTgKL_h.js} +5 -5
- package/dist/assets/{SpendMgmtSetupAccountSection-CPnNzjr--CVGBUj7h.js → SpendMgmtSetupAccountSection-BVOwbOVv-BbEelpUf.js} +6 -6
- package/dist/assets/StatementItem-DPiBruWm-BTp46EGg.js +31 -0
- package/dist/assets/{StatementsPage-o7MvNKvd-D45F8BwH.js → StatementsPage-BzG0fWr9-B7zKsVpb.js} +6 -6
- package/dist/assets/{StatusSwitcher-kWLQCCwS-B1OCqMuJ.js → StatusSwitcher-aZiGS6I4-CW57CAir.js} +4 -4
- package/dist/assets/{SubTabSwitcher-BKm9FxhL-x8uzq0sl.js → SubTabSwitcher-BPzCR9_G-CKWRfEmM.js} +1 -1
- package/dist/assets/{SummaryCard-DBMfNfN2-CzWqfaGl.js → SummaryCard-DE3DiW4z-DCcTNI78.js} +1 -1
- package/dist/assets/{TaskManagementPage-D_wjK-S2-5FRXGPBR.js → TaskManagementPage-bmYzZzlx-BQOYF4T3.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-2vDR_AEV-BCS0yx4E.js → TimeRangeSwitcher-D10b_iT0-B6MHaMu9.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-BB3_i5V0-_2lvvQWN.js → TimeframeSwitcher-w4308CL0-B-m8rZcD.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CdP0ViK8-Blh3jpmT.js → TimeframeSwitcherWithToggle-DP7dCTZ--Dr3OM9sZ.js} +1 -1
- package/dist/assets/{TopExCard-BGgGFzmK-CseYSNZP.js → TopExCard-C9Dwe5gi-HuLCC_VB.js} +6 -6
- package/dist/assets/{TopExDetailPage-CbzYG54M-Cn_cL4Fl.js → TopExDetailPage-Ch4gEAFc-CW6a2lM7.js} +14 -14
- package/dist/assets/TransactionDetailPage-y3Jwxln6-CGGNkWbu.js +912 -0
- package/dist/assets/{TransactionList-C0xK6_zI-DXurFqrv.js → TransactionList-Dy4LSOLF-DLQzM8h7.js} +5 -5
- package/dist/assets/{TransactionListBig-CIX6CdX--k6cdfuui.js → TransactionListBig-BOmqcsRt-CoBJs1L1.js} +13 -13
- package/dist/assets/{TransactionListPage-B7ppBJig-Cw4vRsI1.js → TransactionListPage-D1XobIP_-CQ1XF-sO.js} +4 -4
- package/dist/assets/TransactionVendorDetailPage-DNbFFCAy-DiSmfMU1.js +80 -0
- package/dist/assets/{TransferDrawerPage-DerGmul8-CuVOWq-U.js → TransferDrawerPage-DEK-tLwC-CMAkImaq.js} +19 -19
- package/dist/assets/{TreasuryOverviewPage-DW2gZwip-BnPT0qco.js → TreasuryOverviewPage-Bv8YOcOu-DgYbKZRI.js} +45 -45
- package/dist/assets/TreasuryPromoPage-BpJ4G2tW-wrKqn45d.js +477 -0
- package/dist/assets/{TreasurySetupPage-Bo0HQeeU-CiRulceo.js → TreasurySetupPage-DmXhUnJ2-CTKxmbjB.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-DS_VK4WN-Cnn4qXHn.js → TreasuryStatementsPage-iOhX7bQX-C-86zNAp.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-DgwqyL6v-BEtv0yga.js → TreasuryTaxLetterPage-SKYFef4J-CxXJUgOP.js} +3 -3
- package/dist/assets/{TreasuryTransferOrReviewPage-ZrSACgLJ-B-C18Uw6.js → TreasuryTransferOrReviewPage-BAQy6UbF-5smN8wwG.js} +42 -42
- package/dist/assets/{TrendChart-D07k3uRr-DX_P6NGJ.js → TrendChart-DrNmAOxp-D32D_fQx.js} +4 -4
- package/dist/assets/{TrendWithTransactions-ibwuOssC-wAxC5G58.js → TrendWithTransactions-CFapbjqF-Tluomzgb.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-D1m2Ok2e-Bc7XjWkf.js → UncategorizedAccountsMappingPage-BjyEIyD--q-mXglLO.js} +15 -15
- package/dist/assets/{UnitIntegrationPage-BJxRjjfK-CSfDNJiC.js → UnitIntegrationPage-CMRuNXKH-W-172t0m.js} +2 -2
- package/dist/assets/{UploadAdditionalDocumentOverlay-DI_GZA8A-D7qH6H92.js → UploadAdditionalDocumentOverlay-BJNFsBN7-CW3s6tmn.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-80vvc7gE-DfCBbxkB.js → Vendor2FAPopup-Dk_XUHkP-BfvRXa0R.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CQcuiNPr-CceAJ-hu.js → VendorACHDetailsPage-DS1-IldK-BBUTN6DM.js} +1 -1
- package/dist/assets/{VendorDetailPage-Dx_yfZDH-CdV4fZHt.js → VendorDetailPage-CzECD1Tt-BxCeFQBa.js} +8 -8
- package/dist/assets/{VendorDomesticWireDetailsPage-DN5x3F_Z-Bq-suC9S.js → VendorDomesticWireDetailsPage-Bd-dOP2Q-B1c_niFG.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-8Jz187lD-DiuMGs7f.js → VendorFiling1099EditablePage-C7D_fWCV-ar_0EIM_.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-CokvYaRq-C8O10dnC.js → VendorFirstReviewPage-B4YffYJO-BW-F4-km.js} +10 -10
- package/dist/assets/{VendorInternationalWireDetailsPage-lo9l2Q88-BNP_VZvO.js → VendorInternationalWireDetailsPage-D1i4RwUe-BBAccWWe.js} +7 -7
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CPj3zrDk-Gct01KpS.js → VendorInternationalWireSwiftDetailsPage-QqA8DADQ-CetqwMx2.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BqoW4DlP-BublwzKM.js → VendorsAccountsSection-C8qo0vKx-DOST9l3F.js} +2 -2
- package/dist/assets/{VerifyDevice-D8iPRJ3k-CjjdiKnG.js → VerifyDevice-Cku9_tdW-BTj-mHAb.js} +1 -1
- package/dist/assets/VideoPlayer-DqxblGWn-BXG0P4e3.js +38 -0
- package/dist/assets/VideoPopup-8253nBrT-DoJHFZMN.js +31 -0
- package/dist/assets/{WarningsDrawerPage-qYWFsE3s-zj7-7ffo.js → WarningsDrawerPage-B08Au4yQ-B9IzdYhz.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-BL2a5Dmz-B_6wvsrQ.js → ZeniAccountDetailPage-Dx-w2w6D-4cfDv73S.js} +16 -16
- package/dist/assets/{ZeniAccountListViewPage-CWqzDWcO-DwWqzBYy.js → ZeniAccountListViewPage-DH4BnQ7k-CHjigIuG.js} +13 -13
- package/dist/assets/ZeniAccountNavBarPieces-ce5jAGIl-DVfSolpZ.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CBm3w0kN-DJjJeczH.js → ZeniAccountPromoPage-D4J2Yoil-BDHpq4Eb.js} +9 -9
- package/dist/assets/{ZeniAccountSetupPage-C5VzT9lH-Cdnhgc2k.js → ZeniAccountSetupPage-DTkO1ASr-1XYqtTaw.js} +3 -3
- package/dist/assets/{ZeniCopyright-BUctH39C-C_feHk3O.js → ZeniCopyright-BiSq0yhI-CQbT1WRc.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-B-iWjIM--_5mAEjc_.js +63 -0
- package/dist/assets/{analyticsHelper-B3uAu0es-CqogBTHJ.js → analyticsHelper-Dc3DtVTm-Y5fPzPLq.js} +1 -1
- package/dist/assets/{analyticsHelper-B34YX2ij.js → analyticsHelper-lnjVamrT.js} +1 -1
- package/dist/assets/{chartTypes-CJmQ6FtI-TiHHrGYV.js → chartTypes-C7uaeRCc-CtqAquQd.js} +1 -1
- package/dist/assets/{commonDimensions-WRL2ZVK_-CxdZfQVs.js → commonDimensions-MaxjMSVa-n5Ul9FT7.js} +1 -1
- package/dist/assets/{detailCommon-Dfxas1Kf-D_ZxAMOH.js → detailCommon-OK9JA2hc-EAouVA2X.js} +6 -6
- package/dist/assets/{downloadPdf-B1f0mDl2-BZJtGTOh.js → downloadPdf-QtapKpnq-D53WP2BZ.js} +1 -1
- package/dist/assets/{index-LQh-jIrB.js → index-4y_mNX1u.js} +3415 -3415
- package/dist/assets/{mapLoadingInProgressToTreeNode-BG784RuM-B-LxqW1w.js → mapLoadingInProgressToTreeNode-pvoDlh5w-BH0I_ZXQ.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-DPeWjfgv.js → mapSectionWithAcOnlyToTreeNode-CVUpGQKE-B2Y7wF15.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CcgVbOH5-TVZJ590D.js → mapSpacerToTreeNode-P_HzYMUQ-T8bNyKbZ.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CU583ICK-CZ9bt-pf.js → mapTimeframeBalancesToTreeNode-B8xJouuF-0J2xTAj5.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DTlwFauL-CZ3n-orV.js → mapTimeframeBalancesToTreeNode-CB6RE8w9-CAzsziRN.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-Bh46qWxB.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BAAatv-Y-C-hpmEKv.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DTfegixr-3BrKm7V-.js → toCOABalancesWithID-JkvOa9nR-BuY_FDkW.js} +1 -1
- package/dist/assets/{toChartData-CH5DcWUY-CCr3PEX8.js → toChartData-CEfu5Lvp-ztIWW0aM.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BdPkQoh7-2QT0NfKg.js → treasuryColorHelper-Bvcahv9r-CJj1lXeK.js} +1 -1
- package/dist/assets/{uploadAttachment-COwu5Mqo-D1mpbLnD.js → uploadAttachment-DNrYcaTL-7XpOhOp_.js} +14 -14
- package/dist/assets/{uploadReceipts-dxsKhm9I-BSggA-oy.js → uploadReceipts-dxsKhm9I-Dv2hG-YC.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ArAgingChart-tm5ZiNuY-4-nNFTyo.js +0 -24
- package/dist/assets/BillPayApprovalRuleDetailPage-fZnmOmyN-R8AfUVmE.js +0 -27
- package/dist/assets/CardNumberSubText-1BRQQyfd-JE07s-Fs.js +0 -21
- package/dist/assets/ChargeCardUtils-Wp4Ko18L-GTVU2RZO.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-BB4D77z8-C0-g-aXs.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-2xDjOUwm-DDOM6-AH.js +0 -66
- package/dist/assets/ExpenseAutomationPage-Cz3JsW-E-BrcVbkfQ.js +0 -1650
- package/dist/assets/InvitePeoplePage-CbZqVsTp-ByvmG5mg.js +0 -12
- package/dist/assets/LabeledAddressValueField-YuLcra47-Cc5nlJue.js +0 -45
- package/dist/assets/NotificationsListConfig-DbHYPEWZ-DjqGq2mH.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-Cvok7KBA-C0WmzojS.js +0 -26
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DmRIywf6-C6sXIYK8.js +0 -1
- package/dist/assets/SetUpAccountSection-D8FMVhkL--eJk_Euq.js +0 -378
- package/dist/assets/StatementItem-B2uPIFUk-jLxVfDq5.js +0 -31
- package/dist/assets/TransactionDetailPage-C-CfEtCO-B6iRDC7J.js +0 -912
- package/dist/assets/TransactionVendorDetailPage---HGdQiZ-B2-rEsH7.js +0 -80
- package/dist/assets/TreasuryPromoPage-DzqdEmPJ-Cgk-JJnE.js +0 -439
- package/dist/assets/VideoPopup-SdlRHLkM-agneM1Zx.js +0 -31
- package/dist/assets/ZeniAccountNavBarPieces-C0MyICK2-Bjp8UANv.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-q37z6XvR-omF-65ky.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as St,Y as jt,
|
|
1
|
+
import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,M as Be,o as a,u as _e,j as t,aX as kt,fF as Pt,cV as A,v as C,bp as de,f as n,a0 as Tt,ab as ce,_ as me,C as B,w as E,J as It,g as Mt,cs as At,aD as Fe,b6 as Et,af as ue,a6 as Lt,B as ge,r as T,d6 as Rt,s as Dt,y as zt,c7 as Nt,cr as Ot,aR as Bt}from"./index-4y_mNX1u.js";import{b as O,n as i,j as xe,k as _t}from"./vendor-rkTZJa59.js";import{Y as Ft}from"./SpendManagementSection-BPJDk9AQ-DNTgKL_h.js";import{ChargeCardPromoUserContent as Wt}from"./ChargeCardPromoPage-DNZ_qrk1-Ckodpm9A.js";import{N as Ut,J as Yt}from"./PromoBaseCards-DKu8lmMb-CbitZiAU.js";import{O as Gt}from"./ChargeCardListTable-B2MUmgfU-D_6CnuuE.js";import{r as Jt,i as Ht}from"./graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js";import{t as Vt,o as qt}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-2P6uhLqh-CkyOJaM-.js";import"./NavigationDots-BnqdhDar-BHuykGzD.js";import"./usp-line-BBd1wKwW-u-VMxix8.js";import"./Menu-Ya9EH9T1-XEx08cqQ.js";import"./RoleWithToolTip-QUDWRgyn-DzrP2xLD.js";import"./CardNumberSubText-usoiubBx-JT9ehyHX.js";import"./ChargeCardUtils-i4In9Us5-BeJKYV4x.js";const be={infoSubheadingTextMarginTop:new B(T[0],T[0]),cardsMinWidth:new B(343,353)},ve=Be.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(Nt)`
|
|
77
77
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
78
78
|
`,ta=i(Dt)`
|
|
79
79
|
color: ${n.neutralGrey5Light};
|
|
@@ -81,7 +81,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
|
|
|
81
81
|
`,aa=i.div`
|
|
82
82
|
width: auto;
|
|
83
83
|
text-align: left;
|
|
84
|
-
`,ia=i(
|
|
84
|
+
`,ia=i(E)`
|
|
85
85
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
86
86
|
`,ra=i.div`
|
|
87
87
|
display: flex;
|
|
@@ -89,7 +89,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
|
|
|
89
89
|
gap: ${a.sp2};
|
|
90
90
|
height: 21px;
|
|
91
91
|
overflow: hidden;
|
|
92
|
-
`,he=i(
|
|
92
|
+
`,he=i(E)`
|
|
93
93
|
display: flex;
|
|
94
94
|
flex-direction: column;
|
|
95
95
|
align-items: flex-start;
|
|
@@ -105,12 +105,12 @@ 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
|
|
|
105
105
|
display: flex;
|
|
106
106
|
flex-direction: column;
|
|
107
107
|
align-items: flex-start;
|
|
108
|
-
`,na=i(
|
|
108
|
+
`,na=i(Ot)`
|
|
109
109
|
width: ${a.sp3};
|
|
110
110
|
height: ${a.sp3};
|
|
111
111
|
color: ${n.success};
|
|
112
112
|
border-radius: 50%;
|
|
113
|
-
`,oa=i(
|
|
113
|
+
`,oa=i(Bt)`
|
|
114
114
|
width: ${a.sp4};
|
|
115
115
|
height: ${a.sp4};
|
|
116
116
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
@@ -149,7 +149,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
|
|
|
149
149
|
color: ${n.neutralGrey5Light};
|
|
150
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,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)`
|
|
152
|
+
`,_={contentContainerMargin:new B(T[3],T[4],T[8]),infoSubheadingTextMarginTop:new B(T[0],T[0]),cardsMinWidth:new B(343,353)},ga={remainingText:new It("largeRegular","largeRegular")},{spendManagement:{chargeCard:{payEarly:m,cardList:$,chargeCardsPromo:c}},common:y,dateFormat:V}=Be.getLocalizedStrings(),mi=({chargeCardListView:e,searchText:s,admins:d,companyLegalName:h,isCashbackFeatureEnabled:r,creditCardPayNowThreshold:u,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g,isChargeCardSetupEnabled:x,companyChargeCardInfoCreditAccountLimit:Ve,controllerEmails:Z,depositAccountListWithDebitCardIssued:k,chargeCardCashbackDetailState:P,uiState:qe,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]=O.useState(!1),{creditAccount:S,creditAccountRepayment:f}=e,K=jt(),I=!!K.loggedInUserRole.includes("charge_card_user"),Y=vt(K),w=M.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,N=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&&!N&&!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&&M.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(M.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} ${M.zeniDate(M.getNextNthWorkingDay(f.initiatedRepaymentDate?.toDate()??M.dateNow().toDate(),[0,6],3).toDateString()).format(V.visual.MMMDFormat)}`,m.paymentInitiated],se=O.useRef(null),le=O.useRef(null),wt=_e(),[$t,je]=O.useState(!0);return O.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(Aa,{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(Ea,{windowSize:b,children:[bt||yt?t.jsxs(Ee,{windowSize:b,children:[t.jsxs(ze,{children:[t.jsxs(Ne,{children:[t.jsxs(Oe,{children:[t.jsx(Re,{children:$.creditCardBalance}),t.jsx(A,{amount:D,integerStyles:{...C.h5Regular.cssObject},decimalStyles:{...C.largeSemiBold.cssObject}})]}),t.jsxs(Pa,{children:[t.jsx(q,{style:{textAlign:"end"},children:y.texts.limit}),t.jsx(A,{amount:e.creditAccount.limit,style:{justifyContent:"end"},integerStyles:C.largeRegular.cssObject,decimalStyles:C.smallRegular.cssObject})]})]}),t.jsx(Ba,{children:t.jsx(_a,{style:{width:`${pt}%`,borderRadius:a.sp1}})}),re&&!N&&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(A,{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(A,{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:N,isEarlyPayEnabled:L,children:[N&&L?null:t.jsx(q,{children:`${y.texts.limitReset} ${z!=null?z.format(V.visual.MMMDFormat):null}`}),w&&L&&(N?t.jsx("div",{children:t.jsx(de,{maxWidth:"242px",style:{padding:`12px ${a.sp3}`},title:t.jsxs(ja,{children:[t.jsx(Ae,{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(V.visual.MMMDFormat)}),y.strings.space,t.jsx(Ae,{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:Me("credit",Q,{amount:Ve,currencyCode:F.currencyCode,currencySymbol:F.currencySymbol}),onClick:Ce}):null,Ct||ft?t.jsxs(Ee,{windowSize:b,children:[t.jsxs(ze,{children:[t.jsx(Ne,{children:t.jsxs(Oe,{children:[t.jsx(Re,{children:$.debitCardSpend}),t.jsx(A,{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(Na,{}),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(q,{children:`${y.texts.limitReset} ${z!=null?z.format(V.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:Me("debit",Q),onClick:Ce}):null,t.jsxs(La,{windowSize:b,children:[r?t.jsxs(ka,{children:[t.jsx(q,{style:{textAlign:"start"},children:$.totalCashback}),t.jsx(A,{amount:e.totalCashback,style:{justifyContent:"flex-start"},integerStyles:C.h5Regular.cssObject,decimalStyles:C.smallSemiBold.cssObject}),e.totalCashback.amount>0?t.jsx(Ma,{windowSize:b,children:t.jsxs(Oa,{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:qe,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)`
|
|
@@ -162,7 +162,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
|
|
|
162
162
|
height: 21px;
|
|
163
163
|
overflow: hidden;
|
|
164
164
|
cursor: ${e=>e.hasPointer?"pointer":"default"};
|
|
165
|
-
`,Ca=i(
|
|
165
|
+
`,Ca=i(E)`
|
|
166
166
|
color: ${e=>e.theme.colors.primary};
|
|
167
167
|
cursor: pointer;
|
|
168
168
|
display: flex;
|
|
@@ -172,15 +172,15 @@ 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
|
|
|
172
172
|
color: ${e=>e.theme.colors.primary};
|
|
173
173
|
width: 12px;
|
|
174
174
|
height: 12px;
|
|
175
|
-
`,ya=i(
|
|
175
|
+
`,ya=i(Et)`
|
|
176
176
|
color: ${n.brandColorGoldDark};
|
|
177
177
|
width: ${a.sp3};
|
|
178
178
|
height: ${a.sp3};
|
|
179
|
-
`,fa=i(
|
|
179
|
+
`,fa=i(At)`
|
|
180
180
|
color: ${n.important};
|
|
181
181
|
width: ${a.sp3};
|
|
182
182
|
height: ${a.sp3};
|
|
183
|
-
`,wa=i(
|
|
183
|
+
`,wa=i(E)`
|
|
184
184
|
color: ${n.heroDark};
|
|
185
185
|
white-space: pre-line;
|
|
186
186
|
text-align: left;
|
|
@@ -188,9 +188,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
|
|
|
188
188
|
display: flex;
|
|
189
189
|
align-items: center;
|
|
190
190
|
justify-content: center;
|
|
191
|
-
`,
|
|
191
|
+
`,Me=(e,s,d)=>{const h=(s*100).toFixed(2);if(e==="credit"){const r=c.listPage.promoMultiText.credit;return d&&(r[0]=r[0].replace("__creditLimit__",ce("0,0",d.amount,d.currencySymbol))),r[1]=r[1].replace("__cashBack__",h),[...r,r[0]]}else if(e==="debit"){const r=c.listPage.promoMultiText.debit;return r[0]=r[0].replace("__cashBack__",h),[...r,r[0]]}return[]},Sa=({isChargeCardFeatureEnabled:e,isChargeCardSetupEnabled:s,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:h})=>e&&s&&d&&h?$.title.cards:e&&s?$.title.credit:d&&h?$.title.debit:"",ja=i.div`
|
|
192
192
|
text-align: left;
|
|
193
|
-
`,
|
|
193
|
+
`,Ae=i.span``,va=i.span`
|
|
194
194
|
white-space: nowrap;
|
|
195
195
|
`,ka=i.div`
|
|
196
196
|
min-width: 137px;
|
|
@@ -213,20 +213,20 @@ 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
|
|
|
213
213
|
display: flex;
|
|
214
214
|
`,Ta=i(Je)`
|
|
215
215
|
justify-content: ${e=>e.showPaymentInitiatedInfo&&e.isEarlyPayEnabled?"flex-end":"space-between"};
|
|
216
|
-
`,Ia=i.div``,
|
|
216
|
+
`,Ia=i.div``,Ma=i.div`
|
|
217
217
|
border: 1px solid ${e=>e.theme.colors.hero};
|
|
218
218
|
border-radius: ${a.sp12};
|
|
219
219
|
width: fit-content;
|
|
220
220
|
justify-self: ${e=>e.windowSize==="small"?"flex-start":"flex-end"};
|
|
221
221
|
margin-top: ${a.sp1};
|
|
222
222
|
padding: ${a.sp0} ${a.sp2};
|
|
223
|
-
`,
|
|
223
|
+
`,Aa=i.div`
|
|
224
224
|
display: flex;
|
|
225
225
|
flex-direction: column;
|
|
226
226
|
width: 100%;
|
|
227
227
|
height: 100vh;
|
|
228
228
|
overflow: auto;
|
|
229
|
-
`,
|
|
229
|
+
`,Ea=i.div`
|
|
230
230
|
display: flex;
|
|
231
231
|
flex-direction: row;
|
|
232
232
|
margin-top: ${a.sp3};
|
|
@@ -247,7 +247,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
|
|
|
247
247
|
-ms-overflow-style: none;
|
|
248
248
|
scrollbar-width: none;
|
|
249
249
|
`}
|
|
250
|
-
`,
|
|
250
|
+
`,Ee=i.div`
|
|
251
251
|
display: flex;
|
|
252
252
|
flex-grow: 1;
|
|
253
253
|
flex-direction: column;
|
|
@@ -285,12 +285,12 @@ 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
|
|
|
285
285
|
align-items: baseline;
|
|
286
286
|
gap: ${a.sp2};
|
|
287
287
|
align-items: center;
|
|
288
|
-
`,Re=i(
|
|
288
|
+
`,Re=i(E)`
|
|
289
289
|
color: ${e=>e.theme.colors.hero};
|
|
290
|
-
`,De=i(
|
|
290
|
+
`,De=i(Mt)`
|
|
291
291
|
color: ${e=>e.theme.colors.primary};
|
|
292
292
|
${e=>`${ga.remainingText.style(e.windowSize)}`};
|
|
293
|
-
`,
|
|
293
|
+
`,q=i(E)`
|
|
294
294
|
color: ${e=>e.theme.colors.hero};
|
|
295
295
|
white-space: nowrap;
|
|
296
296
|
`,Ra=i.div`
|
|
@@ -303,15 +303,15 @@ 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
|
-
`,za=i(
|
|
306
|
+
`,za=i(Vt)`
|
|
307
307
|
color: ${n.success};
|
|
308
308
|
width: ${a.sp3};
|
|
309
309
|
height: ${a.sp3};
|
|
310
|
-
`,
|
|
310
|
+
`,Na=i(qt)`
|
|
311
311
|
color: ${n.important};
|
|
312
312
|
width: ${a.sp3};
|
|
313
313
|
height: ${a.sp3};
|
|
314
|
-
`,
|
|
314
|
+
`,Oa=i(ge)`
|
|
315
315
|
color: ${e=>e.theme.colors.hero};
|
|
316
316
|
margin-top: ${e=>_.infoSubheadingTextMarginTop.valuePx(e.windowSize)};
|
|
317
317
|
gap: ${a.sp1};
|
|
@@ -322,7 +322,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
|
|
|
322
322
|
&:hover {
|
|
323
323
|
color: ${e=>e.theme.colors.primary};
|
|
324
324
|
}
|
|
325
|
-
`,
|
|
325
|
+
`,Ba=i.div`
|
|
326
326
|
width: 100%;
|
|
327
327
|
height: ${a.sp1};
|
|
328
328
|
display: flex;
|
|
@@ -345,11 +345,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
|
|
|
345
345
|
`,ze=i.div`
|
|
346
346
|
padding: ${a.sp4};
|
|
347
347
|
padding-bottom: ${a.sp2};
|
|
348
|
-
`,
|
|
348
|
+
`,Ne=i.div`
|
|
349
349
|
display: flex;
|
|
350
350
|
justify-content: space-between;
|
|
351
351
|
align-items: center;
|
|
352
|
-
`,
|
|
352
|
+
`,Oe=i.div``,Ua=i.div`
|
|
353
353
|
height: ${a.sp10};
|
|
354
354
|
width: ${a.sp10};
|
|
355
|
-
`;function Ya(){switch(_e().mode){case"light":return t.jsx(Ht,{});case"dark":default:return t.jsx(Jt,{})}}export{mi as default,
|
|
355
|
+
`;function Ya(){switch(_e().mode){case"light":return t.jsx(Ht,{});case"dark":default:return t.jsx(Jt,{})}}export{mi as default,Me as getPromoSlidingTextList};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,
|
|
1
|
+
import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fj as vi,i7 as Ci,i8 as yi,i9 as ji,_ as b,M as V,bS as bi,v as re,f as y,aj as ki,b_ as Si,ia as Ii,ib as zi,o as t,bg as Li,a6 as Ri,C as p,eA as Pi,ap as Di,ic as Ui,a7 as Ni,az as Ti,w as F,fl as _i,r as a,dt as Vi,a0 as T,c0 as De,m as Ue,bp as le,bn as Oi,B as k,c3 as we,y as U,i1 as ue,b6 as Ne,be as Te,id as Mi,c6 as Ei,a8 as G,ie as Fi,ig as Wi}from"./index-4y_mNX1u.js";import{b as C,n as r,f as Ai,j as $e}from"./vendor-rkTZJa59.js";import{R as _e}from"./Menu-Ya9EH9T1-XEx08cqQ.js";import{T as Ve}from"./RoleWithToolTip-QUDWRgyn-DzrP2xLD.js";import{f as ce}from"./CardNumberSubText-usoiubBx-JT9ehyHX.js";import{_ as Oe}from"./ChargeCardUtils-i4In9Us5-BeJKYV4x.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)},Me=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(Fi,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(Me(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;
|
|
@@ -14,7 +14,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
|
|
|
14
14
|
margin-left: ${t.sp8};
|
|
15
15
|
margin-right: ${t.sp8};
|
|
16
16
|
justify-content: space-between;
|
|
17
|
-
`,Yi=r(
|
|
17
|
+
`,Yi=r(F)`
|
|
18
18
|
top: ${t.sp0};
|
|
19
19
|
left: ${t.sp0};
|
|
20
20
|
min-height: ${e=>z.headerHeight.valuePx(e.windowSize)};
|
|
@@ -48,7 +48,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
|
|
|
48
48
|
overflow: hidden;
|
|
49
49
|
padding-left: ${t.sp3};
|
|
50
50
|
padding-right: ${t.sp3};
|
|
51
|
-
`,Gi=r(
|
|
51
|
+
`,Gi=r(Ei)`
|
|
52
52
|
width: ${t.sp3};
|
|
53
53
|
height: ${t.sp3};
|
|
54
54
|
cursor: pointer;
|
|
@@ -69,7 +69,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
|
|
|
69
69
|
gap: ${t.sp1};
|
|
70
70
|
display: flex;
|
|
71
71
|
color: ${e=>e.theme.colors.hero};
|
|
72
|
-
`,Zi=r(
|
|
72
|
+
`,Zi=r(Mi)`
|
|
73
73
|
width: ${t.sp3};
|
|
74
74
|
height: ${t.sp3};
|
|
75
75
|
color: inherit;
|
|
@@ -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=
|
|
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=Me(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(M,{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(M,{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(M,{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(M,{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(M,{children:i.jsx(ze,{windowSize:x,responsiveWidth:I[4].width,children:A})}),i.jsx(M,{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)};
|
|
@@ -186,13 +186,13 @@ 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
|
|
|
186
186
|
text-overflow: ellipsis;
|
|
187
187
|
white-space: nowrap;
|
|
188
188
|
margin-bottom: -${t.sp1};
|
|
189
|
-
`,Ie=r(
|
|
189
|
+
`,Ie=r(F)`
|
|
190
190
|
color: ${e=>e.theme.colors.hero};
|
|
191
191
|
max-width: 100%;
|
|
192
192
|
overflow: hidden;
|
|
193
193
|
text-overflow: ellipsis;
|
|
194
194
|
white-space: nowrap;
|
|
195
|
-
`,
|
|
195
|
+
`,M=r.div`
|
|
196
196
|
> div {
|
|
197
197
|
padding-left: ${t.sp3};
|
|
198
198
|
box-sizing: border-box;
|
|
@@ -247,7 +247,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
|
|
|
247
247
|
overflow: hidden;
|
|
248
248
|
text-overflow: ellipsis;
|
|
249
249
|
white-space: nowrap;
|
|
250
|
-
`,jt=r(
|
|
250
|
+
`,jt=r(F)`
|
|
251
251
|
color: ${e=>e.theme.colors.hero};
|
|
252
252
|
`;r(k)`
|
|
253
253
|
display: flex;
|
|
@@ -298,7 +298,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
|
|
|
298
298
|
right: -${t.sp2};
|
|
299
299
|
`,zt=r.div`
|
|
300
300
|
margin: 5px ${t.sp0};
|
|
301
|
-
`,Lt=r(
|
|
301
|
+
`,Lt=r(F)`
|
|
302
302
|
height: ${t.sp6};
|
|
303
303
|
display: flex;
|
|
304
304
|
align-items: center;
|
|
@@ -308,7 +308,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
|
|
|
308
308
|
:hover {
|
|
309
309
|
background-color: ${e=>e.theme.colors.background};
|
|
310
310
|
}
|
|
311
|
-
`,Rt=r(
|
|
311
|
+
`,Rt=r(F)`
|
|
312
312
|
color: ${e=>e.theme.colors.hero};
|
|
313
313
|
max-width: 100%;
|
|
314
314
|
overflow: hidden;
|
|
@@ -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})},
|
|
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})},Ee=({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(Ft,{children:`${Math.round(n)}${Pt}`}):null]})},Ut=({cardDetail:e,onRowClick:o})=>{const n=_();return i.jsx(Fe,{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(Ee,{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(Fe,{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(Mt,{children:i.jsx(De,{personBasic:e.cardHolderUser,styles:{height:t.sp6,width:t.sp6}})}),i.jsx(Et,{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(Ee,{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)"}})})})]})]})})},Fe=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}`};
|
|
@@ -401,7 +401,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
|
|
|
401
401
|
display: flex;
|
|
402
402
|
align-items: center;
|
|
403
403
|
gap: ${t.sp1};
|
|
404
|
-
`,
|
|
404
|
+
`,Mt=r.div``,Et=r.div``,Ft=r(k)`
|
|
405
405
|
color: ${e=>e.theme.colors.hero};
|
|
406
406
|
display: flex;
|
|
407
407
|
margin-top: -${t.sp1};
|
|
@@ -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:
|
|
489
|
+
`,Y={lastListItemHeight:new p(200,158),bannerWrapperMarginLeftRight:new p(a[3],a[8]),styledAIIconContainerSize:new p(a[3],a[3])},{spendManagement:{chargeCard:E},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:E.cardList.getStarted,message:R!==""?E.cardList.noDataWithFilterText:E.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:E.aiCardAgentText}),Q.strings.space,E.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=E.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`
|
|
@@ -578,7 +578,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
|
|
|
578
578
|
position: relative;
|
|
579
579
|
margin-left: ${t.sp1};
|
|
580
580
|
top: 2px;
|
|
581
|
-
`,Pe=r(
|
|
581
|
+
`,Pe=r(F)`
|
|
582
582
|
position: relative;
|
|
583
583
|
background: ${e=>e.theme.colors.black};
|
|
584
584
|
color: ${e=>e.color??e.theme.colors.grey1};
|
|
@@ -1,22 +1,22 @@
|
|
|
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-LQh-jIrB.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-rkTZJa59.js";import{x as Fe}from"./MeetingCalenderPopup-CAh7iae0-CIOK3_iA.js";import{k as Ue}from"./NavigationDots-CNwL0a7I-eyaik967.js";import{J as H,N as G}from"./PromoBaseCards-BGHJivI8-QTKlmjbr.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`
|
|
1
|
+
import{e as b,M as oe,j as r,u as J,Y as $e,x as ye,a2 as be,a0 as je,l as Se,fr as Te,aX as ze,K as Y,_ as ee,o as t,c7 as ve,T as O,c8 as Pe,s as ke,C as h,bW as Be,bp as Ae,i5 as Ie,w as Me,r as x,J as j,f as $,ap as Re,a7 as Le,i6 as _e}from"./index-4y_mNX1u.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-rkTZJa59.js";import{x as Fe}from"./MeetingCalenderPopup-2P6uhLqh-CkyOJaM-.js";import{k as Ue}from"./NavigationDots-BnqdhDar-BHuykGzD.js";import{J as H,N as G}from"./PromoBaseCards-DKu8lmMb-CbitZiAU.js";import{M as R}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(),Mr=({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:W,onExpressInterestClick:me})=>{const xe=J(),X=$e(),z=b(),Z=ye().analytics,{chargeCardTermsDetails:L,companyChargeCardInfo:C,companyLocaleInfo:_}=i,K=be(L?.fetchStatus.fetchState),[ge,V]=S.useState(!1),he=()=>{Z.trackCardsPromoPageClicked("schedule demo"),Z.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),V(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{K==="In-Progress"&&L?.fetchStatus.fetchState==="Completed"&&W()},[K,W,L?.fetchStatus]);const q=Se.hasChargeCardAdminLevelAccess(X.loggedInUserRoleMap),we=Te(X),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(We,{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:()=>{V(!1)},meetingUrl:e}):null,r.jsx(Ve,{windowSize:z,children:q===!0?r.jsxs(Ke,{children:[r.jsxs(Ze,{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})}),q&&!(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(Xe,{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(qe,{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(M,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(M,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const 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}})]})},We=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
-
`,
|
|
7
|
+
`,Xe=a(Me)`
|
|
8
8
|
color: ${e=>e.theme.colors.hero};
|
|
9
|
-
`,
|
|
9
|
+
`,Ze=a.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
align-items: center;
|
|
13
|
-
`,
|
|
13
|
+
`,Ke=a.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
justify-content: space-between;
|
|
17
17
|
flex: 1;
|
|
18
18
|
width: 100%;
|
|
19
|
-
`,
|
|
19
|
+
`,Ve=a.div`
|
|
20
20
|
padding-top: ${e=>g.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
21
21
|
padding-bottom: ${e=>g.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
22
22
|
text-align: center;
|
|
@@ -52,7 +52,7 @@ 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
|
|
|
52
52
|
padding: 6px ${t.sp3} ${t.sp0} ${t.sp3};
|
|
53
53
|
text-align: center;
|
|
54
54
|
margin-top: 6px;
|
|
55
|
-
`,
|
|
55
|
+
`,qe=a.img`
|
|
56
56
|
border-radius: 50%;
|
|
57
57
|
justify-content: center;
|
|
58
58
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -134,21 +134,21 @@ 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
|
|
|
134
134
|
width: ${e=>e.windowSize==="small"?"288px":"100%"};
|
|
135
135
|
min-height: ${e=>e.windowSize!=="small"?"83px":"44px"};
|
|
136
136
|
box-sizing: ${e=>e.windowSize==="small"?"unset":"border-box"};
|
|
137
|
-
`,y=a(
|
|
137
|
+
`,y=a(Re)`
|
|
138
138
|
color: ${e=>e.theme.colors.champion};
|
|
139
139
|
${e=>`${T.uspText.style(e.windowSize)}`};
|
|
140
|
-
`,A=a(
|
|
140
|
+
`,A=a(Le)`
|
|
141
141
|
color: ${e=>e.theme.colors.champion};
|
|
142
142
|
${e=>`${T.uspBoldText.style(e.windowSize)}`};
|
|
143
|
-
`,I=a.div``,
|
|
143
|
+
`,I=a.div``,M=a.div`
|
|
144
144
|
padding-left: ${t.sp3};
|
|
145
|
-
`,nr=a(
|
|
145
|
+
`,nr=a(R)`
|
|
146
146
|
color: ${$.graphColor16Dark};
|
|
147
|
-
`,sr=a(
|
|
147
|
+
`,sr=a(R)`
|
|
148
148
|
color: ${$.alert};
|
|
149
|
-
`,dr=a(
|
|
149
|
+
`,dr=a(R)`
|
|
150
150
|
color: ${$.graphColor11};
|
|
151
|
-
`,lr=a(
|
|
151
|
+
`,lr=a(R)`
|
|
152
152
|
color: ${$.success};
|
|
153
153
|
`,cr=a.div`
|
|
154
154
|
height: ${e=>g.emptySectionHeight.valuePx(e.windowSize)};
|
|
@@ -219,4 +219,4 @@ 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
|
|
|
219
219
|
height: 100%;
|
|
220
220
|
transform: skew(15deg);
|
|
221
221
|
animation: ${fr} 4s linear infinite;
|
|
222
|
-
`;export{Ge as ChargeCardPromoUserContent,
|
|
222
|
+
`;export{Ge as ChargeCardPromoUserContent,Mr as default};
|