@zeniai/web-cockpit-ui 1.14.88-prod → 1.14.89-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-BBq7KpbY-DF9mhOLo.js → ACHDetailsPage-BBq7KpbY-DmD51smT.js} +1 -1
- package/dist/assets/{AIPerformancePage-Djq6mgKa-D2-ZMcc5.js → AIPerformancePage-Djq6mgKa-C2iGvIUP.js} +11 -11
- package/dist/assets/{AccountInfoPage-CxWBk_t_-B6N9dho0.js → AccountInfoPage-CxWBk_t_-BI9wbnyE.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DO6aVqBW-D2G7pMZi.js → AccountInfoPageContent-DO6aVqBW-6U18ww_h.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DVvzKHJQ-BusmcQJv.js → AccountLockedInfoModal-DVvzKHJQ-BlItIAEt.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-BYDoTrOZ.js → AccountReconDetailsDrawerPage-DEKzSPCP-DohPnhDC.js} +14 -14
- package/dist/assets/{AccountRow-Ck53DDbT-pVq02fp8.js → AccountRow-Ck53DDbT-BeebPIea.js} +21 -21
- package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-Hx7dozh-.js → AccountsPromoCardStack-BYjuB-4I-DMxflS-k.js} +8 -8
- package/dist/assets/{AddAddressForCardDrawer-e8qbO2Y5-nX0udyvd.js → AddAddressForCardDrawer-e8qbO2Y5-CvQDLLw2.js} +1 -1
- package/dist/assets/{AddToWalletPage-DA6AmuaY-qriIpnYe.js → AddToWalletPage-DA6AmuaY-e01eq7ol.js} +5 -5
- package/dist/assets/{AgingReportsPage-B_Hhl_Is-g-SRao1T.js → AgingReportsPage-B_Hhl_Is-4sV-u-EE.js} +5 -5
- package/dist/assets/{AllUserItems-BV22Ibpn-CEp8prrW.js → AllUserItems-BV22Ibpn-WegHhloq.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-DqV1vOVH-CNER43iu.js → ApAgingDetailPage-DqV1vOVH-DDYGtIes.js} +1 -1
- package/dist/assets/{AppBasePage-LrgCcvIv-pzRDvRIV.js → AppBasePage-LrgCcvIv-CPbTcwwM.js} +4 -4
- package/dist/assets/{AppDrawerContent-aZG5Qc_X-HF__9zgn.js → AppDrawerContent-aZG5Qc_X-0oLi5_ah.js} +1 -1
- package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-BEsS6TL7.js +47 -0
- package/dist/assets/{ArAgingChart-Am7LTkqG-E4lvgjGa.js → ArAgingChart-Am7LTkqG-CEoxIo8X.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-BEKsyA9Q-CPaZNWaY.js → ArAgingDetailPage-BEKsyA9Q-DyjljPZX.js} +1 -1
- package/dist/assets/{AttachmentView-Bujbmx1d-BpqKAITM.js → AttachmentView-Bujbmx1d-B9I0wNAl.js} +1 -1
- package/dist/assets/{BankAccountSection-C5rYUW3V-BCOrI2zz.js → BankAccountSection-C5rYUW3V-B24i3wVy.js} +3 -3
- package/dist/assets/{BankAccountWarningSection-DakysSbk-BrOBdVlr.js → BankAccountWarningSection-DakysSbk-CfJ3ZIAx.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-BqTLt_Xy.js → BankConnectionsSettingsPage-BjZDNgZG-CWXR52fl.js} +7 -7
- package/dist/assets/{BillDetailPage-DYc_nZRU-9SJltYSx.js → BillDetailPage-DYc_nZRU-BRz45yqn.js} +2 -2
- package/dist/assets/{BillPayApprovalRuleDetailPage-ppU1Epmy-DvxlAPhL.js → BillPayApprovalRuleDetailPage-ppU1Epmy-CKu9yeh6.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-UblNi2mR-DWfMi9Ia.js → BillPayApprovalRulesPage-UblNi2mR-DDdlB9l6.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BK2J56U5-CXL9s4dw.js → BillPayPromoPage-BK2J56U5-BV_HtQh9.js} +5 -5
- package/dist/assets/{BillPaySetUpPage-Jic5E25q-CMtH3BoF.js → BillPaySetUpPage-Jic5E25q-B-iLCf2O.js} +2 -2
- package/dist/assets/{BillingSettingsPage-CKZVChEm-CQVpThSa.js → BillingSettingsPage-CKZVChEm-D4ayDBSH.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-CQ4D75c-.js → BillsBulkReviewDrawerPage-C4Ra5e82-Ci4V1_TC.js} +1 -1
- package/dist/assets/{BoxItem-8PfNfaHq-6bFTfHVl.js → BoxItem-8PfNfaHq-CqIGaIYz.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-JGge-Iiw-IDjENT0s.js → BusinessVerificationPage-JGge-Iiw-DkN8E6Gl.js} +5 -5
- package/dist/assets/{CardNumberSubText-W81SQ4GF-Bt4a5S33.js → CardNumberSubText-W81SQ4GF-D5AG2b-c.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DnOcmx2i-CN8nuDt2.js → CashbackDetailPage-DnOcmx2i-DuXs2k0a.js} +7 -7
- package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-CvKk_X-x.js → ChargeCardDetailPage-DNVMsxzE-W83HRYcY.js} +1 -1
- package/dist/assets/{ChargeCardListPage-Dgj-WWWI-CWkcKwWI.js → ChargeCardListPage-Dgj-WWWI-C1jII8Vl.js} +14 -14
- package/dist/assets/{ChargeCardListTable-uJZKWoh7-C3lLpElH.js → ChargeCardListTable-uJZKWoh7-DGMj8Kk8.js} +16 -16
- package/dist/assets/{ChargeCardPromoPage-uqT96W3_-XA2uFoR4.js → ChargeCardPromoPage-uqT96W3_-DGpf3zxD.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-BIb3iQQG.js → ChargeCardSetupPage-BDbJU-vm-DZJfRa0I.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-3qgtBy5g.js → ChargeCardStatementsPage-DImRqpH1-BlCyBAS3.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-Bq-u7DD4.js → CheckDepositDrawerPage-BVtOOPoa-CKWcHjV6.js} +6 -6
- package/dist/assets/{CollapsableReportTable-Crihcv_z-JDVTRjtF.js → CollapsableReportTable-Crihcv_z-B6sIoSI3.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-CFmiXK6n.js → CompanyOfficerDetailsSection-CNxtAkKM-D2joEvpM.js} +8 -8
- package/dist/assets/{CompanyPassportCard-DMRQkRPb-CQZMGO1o.js → CompanyPassportCard-DMRQkRPb-BLaDLsxp.js} +1 -1
- package/dist/assets/{CompanyPassportPage-D3XvbSF_-gJDrPWNT.js → CompanyPassportPage-D3XvbSF_-BPFOIUV0.js} +16 -16
- package/dist/assets/{CompleteProfile-BqjXO5ze-724nDXDc.js → CompleteProfile-BqjXO5ze-fJjklbCs.js} +1 -1
- package/dist/assets/{ConfettiBurst-DtwLo4WZ-BQ9rTQt1.js → ConfettiBurst-DtwLo4WZ-DhNKCJ7F.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-B6tzs6XZ.js → CreateOrEditVendorPage-FrGRJxMy-lyDeY9QD.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BvifQpD3-DUnP1Hl9.js → CreditCardPaymentDrawerPage-BvifQpD3-CJD0XzyN.js} +6 -6
- package/dist/assets/{CurrencySelectField-ClOg6nnS-CXTbcHfQ.js → CurrencySelectField-ClOg6nnS-wUZ5kAZB.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-Cmigo4pK.js → CustomerOnboardingActivationPage-Du-zzeL2-DGgRqDAq.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-ly2XWpHL.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-CH2FPWha.js → CustomerOnboardingDetailPageSkeleton-BgY95XeU-Dah0hLGQ.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-BSSSviGT.js → CustomerOnboardingNoStepsPage-BsKoqUta-D3bS1mcO.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DUMQKVfM-BQ_3ahBW.js → CustomerOnboardingPage-DUMQKVfM-C7dz_0GY.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-CXq_43y8.js → CustomerOnboardingProductSuitePage-DGVV8Tkk-CiyIz1Ai.js} +5 -5
- package/dist/assets/{Dashboard-CdYlvep--BOQlMB6O.js → Dashboard-CdYlvep--B2Vkh5DQ.js} +1 -1
- package/dist/assets/{DashboardReportPage-c6q027Qp-CEv30LzY.js → DashboardReportPage-c6q027Qp-B9wSLZAf.js} +16 -16
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-CIZN44Ie.js → DashboardSidebarBackgroundAnimation-BdDVYK19-COjDYEak.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-D8kL8enp-DsKpkg7T.js → DepositAccTransactionItem-D8kL8enp-J-22cTZM.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BS-OReem-B9dYkMDH.js → DepositAccTransactionListPage-BS-OReem-Daf8x2X1.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-CE0TmGGK.js → DomesticWireDetailsPage-CjM1DXnn-ByLr_bfJ.js} +1 -1
- package/dist/assets/{DownloadOverlay-Dr4uLNpZ-IlzYnrMA.js → DownloadOverlay-Dr4uLNpZ-PWDmhVak.js} +38 -38
- package/dist/assets/{DrawerPage-CbKBsc7w-C-goZ7Of.js → DrawerPage-CbKBsc7w-BANqCEyN.js} +1 -1
- package/dist/assets/{EditPeoplePage-BgsR09q8-DKcwe5Om.js → EditPeoplePage-BgsR09q8-DQro3ypx.js} +3 -3
- package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-CPvDWqQm.js → EditReimbursementDetailPage-BTrwOX_s-Bpc20RR2.js} +25 -25
- package/dist/assets/{EntityDetailPage-Cvd4MG0F-nlXXz9VB.js → EntityDetailPage-Cvd4MG0F-Uu1ExrMV.js} +1 -1
- package/dist/assets/{EntitySummarySection-BIV9aAq2-0J_nJAr8.js → EntitySummarySection-BIV9aAq2-CUHksODf.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-Vj6NPROh.js → ExpenseAutomationOverviewPage-B5MtjO2p-B5sSDEu8.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-DW6Pxoah-CB3Tfm3S.js → ExpenseAutomationPage-DW6Pxoah-DpT-FAIA.js} +62 -62
- package/dist/assets/{ExpressPayPage-DnpQuDmt-BosPEUCq.js → ExpressPayPage-DnpQuDmt-CY033VTz.js} +5 -5
- package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-DSVKcIYC.js → FeaturePreviewPage-BmwBZ7ZP-kerQig1g.js} +1 -1
- package/dist/assets/{FollowStepsSection-B2I9SddL-J1soan6Z.js → FollowStepsSection-B2I9SddL-BxrnE678.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-CGt9cYLb.js → GlobalReviewListPage-D3GCP5Xd-Bht9J0K_.js} +6 -6
- package/dist/assets/{InformationCardStack-mEhasBqu-BANEJOaT.js → InformationCardStack-mEhasBqu-BZ_Gox0K.js} +1 -1
- package/dist/assets/{InsightsCardStack-Mj7QcQnH-ZGIADW1_.js → InsightsCardStack-Mj7QcQnH-CT4vpE1x.js} +1 -1
- package/dist/assets/{InsightsSection-B3xD0SZ9-8NqkLzS9.js → InsightsSection-B3xD0SZ9-CKtY4Hiz.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-DpD5mnNa.js → IntegrationsSettingsPage-CsI_agJB-CclnkA74.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-Dfu9jHvI.js → InternationalWireSwiftDetailsPage-Dszmi69h-BjjhlMpG.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-DWaY5PDJ.js → InternationalWireVerificationPage-DG9Enrpo-DEQAkYYx.js} +11 -11
- package/dist/assets/{InviteFormPage-DK6X9Zwi-BQ256tgK.js → InviteFormPage-DK6X9Zwi-DR66hPVd.js} +1 -1
- package/dist/assets/{InvitePageListView-CwKbcKlM-I7Ohbwjv.js → InvitePageListView-CwKbcKlM-BOO2EOMw.js} +32 -32
- package/dist/assets/{InvitePeoplePage-BqzJOjVI-BLUo4Jmn.js → InvitePeoplePage-BqzJOjVI-hAq8wZOI.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-CokNNkKu-Dv9862-R.js → InvoiceUploadSection-CokNNkKu-CL4OwcxH.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CRtJDmrZ-BNG_ehsF.js → IssueChargeCardPage-CRtJDmrZ-CFmNSL2f.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BhwrrtZX-NBqZDzVl.js → LabeledAddressValue-BhwrrtZX-BVe1F8jA.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DzmwP7hP-BsQFVdWX.js → LabeledAddressValueField-DzmwP7hP-7gvUeBGH.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-k3wZsE8I.js → LabeledControlledCheckBoxField-B6ndrF2e-LWUc8yBI.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-D0dzeF5z.js → LabeledCreatableSingleSelectField-CfzLlkho-CxZaZJZN.js} +1 -1
- package/dist/assets/{LabeledDocumentField-p3pI5qLu-BapUynJg.js → LabeledDocumentField-p3pI5qLu-I9C3lX6x.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-Dqqs8MYf.js → LabeledDropDownFormattedTextField-oQX33Fim-Bbplhays.js} +1 -1
- package/dist/assets/{LabeledText-Db46hFZY-J41ZQ_mQ.js → LabeledText-Db46hFZY-CvrCjgF_.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-BymSRQN9.js → LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-f0PElM5i.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-BRH41KM8.js → LabeledZeniRolesDropDownField-Docjgj8Y-C6xxx7IQ.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-BZSRaZqY-BIj3-LRc.js → LinkJETransactionPage-BZSRaZqY-9NIG46T3.js} +6 -6
- package/dist/assets/{LockCardPage-KTyESoXL-CynH1u5U.js → LockCardPage-KTyESoXL-C_hGUeR9.js} +12 -12
- package/dist/assets/{LowBalancePopup-B0BDCEui-lDZBZxzO.js → LowBalancePopup-B0BDCEui-BMVW4mzF.js} +4 -4
- package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-C2ShsQ5E.js +1 -0
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CDB2igue-C6hTpHgJ.js → MagicLinkDomesticWireDetailsPage-CDB2igue-CMZ17cvq.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-CjSbvmVH.js → MagicLinkInternationalWireDetailsPage-C2kxncrD-DZt4WyHf.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-jvVb0tmX.js → MagicLinkSuccessPage-DNVe2qMu-BMSr-yiU.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CWw516D8-CfrqLlUk.js → MagicLinkTitleSection-CWw516D8-CjWjg4GW.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CugAM90r-CXu3j2VQ.js → MailingDetailsSection-CugAM90r-CMuXq6mA.js} +1 -1
- package/dist/assets/{Menu-CGN2qO6T-B9QNiLm_.js → Menu-CGN2qO6T-CKP1jX2H.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-D8KvFo_x.js → MyBankConnectionsSettingsPage-CQUfVa0r-9xTXMtPS.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-DjE457A_.js → MyPendingActivationChargeCardListPage-TOQWRGjp-DCcWmjzI.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-Cjm9P5Re.js → MyProfileSettingsPage-lCG03Uoh-DnrGHNt2.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DLLvivn4-WaKxMQjP.js → NavBarWithPicker-DLLvivn4-6K-3U9T7.js} +1 -1
- package/dist/assets/{NavigationArrow-B4j2t8Qu-D6OO4KlW.js → NavigationArrow-B4j2t8Qu-C8IxiTof.js} +1 -1
- package/dist/assets/{NavigationDots-DyMqwpgy-DNLVSzMW.js → NavigationDots-DyMqwpgy-DXf5bt3G.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-IP0KNY_t.js → NewGlobalMerchantPage-Bx7iBsCP-DGrKqfpE.js} +1 -1
- package/dist/assets/{NoDataChart-Ce1_TZ5w-5hIzERi0.js → NoDataChart-Ce1_TZ5w-BfNH_4T8.js} +1 -1
- package/dist/assets/{NoDataTable-l2T5Hw3t-B0z8hv-n.js → NoDataTable-l2T5Hw3t-Bh_N31mD.js} +1 -1
- package/dist/assets/{NotFoundPage-msdN-Eu6-DQAQsO37.js → NotFoundPage-msdN-Eu6-BKPOdh9t.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-_ovcjr8E-DrJTkLSs.js → NotificationSettingsPage-_ovcjr8E-Bj-DE2Dk.js} +15 -15
- package/dist/assets/{NotificationsListConfig-BJm7A9Mz-BeqhPVEF.js → NotificationsListConfig-BJm7A9Mz-Dg3_VsE9.js} +1 -1
- package/dist/assets/{NotificationsPage-Ddxb5kE0-CwY6pmpP.js → NotificationsPage-Ddxb5kE0-DzIBWdK5.js} +13 -13
- package/dist/assets/{OpExByVendorPage-BLAHey0l-xcBa1Yeo.js → OpExByVendorPage-BLAHey0l-neBDRa7k.js} +4 -4
- package/dist/assets/{OverlayContainerPage-CrZuT2Jj-D_iBtRRr.js → OverlayContainerPage-CrZuT2Jj-DMNYxA7f.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-B7Z73Sq--BhUvjEFj.js → PandLWithForecastPage-B7Z73Sq--BDluLKs7.js} +5 -5
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-DYJ63jM7.js → PaymentAccountSetupBillingAddressSection-pL7omrJk-Cgju1Qqc.js} +1 -1
- package/dist/assets/{PeoplePage-BHRFiM0D-CFVJOOEe.js → PeoplePage-BHRFiM0D-FOmgjcav.js} +1 -1
- package/dist/assets/{ProductsCarousel-D2bf_6Gb-BAq59KMZ.js → ProductsCarousel-D2bf_6Gb-NT7Dhd8p.js} +1 -1
- package/dist/assets/{PromoBaseCards-CI7UOpeY-Ux3ixF8F.js → PromoBaseCards-CI7UOpeY-DI52WXKx.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-D7MeKn1t-DvScIKzD.js → QBOConnectionDialog-D7MeKn1t-DelTIGIf.js} +4 -4
- package/dist/assets/{QBOSetupSection-DWhfA4Xv-DJQNsbuL.js → QBOSetupSection-DWhfA4Xv-kSdJytyB.js} +7 -7
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-C_dTOk5P-BzneGv9j.js → ReimbursementApprovalRuleDetailPage-C_dTOk5P-Dc_LvsYr.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-B5lca4qx-opdeKE45.js → ReimbursementApprovalRulesPage-B5lca4qx-DAjvVIOI.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-COIRwy7i-BUmCrQMr.js → ReimbursementDetailPage-COIRwy7i-W0eUs7nE.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-Bjm0UHcm-rsVpHrAZ.js → ReimbursementPromoPage-Bjm0UHcm-Crjakfj5.js} +8 -8
- package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-Bc_PR4Gk.js → ReimbursementSetUpPage-CMYR8CcH-B6Pjnu_N.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-Dz0KzTvk.js → ReimbursementsBulkReviewDrawerPage-BDdhVfaz-Qu76KNt7.js} +1 -1
- package/dist/assets/{ReloadCard-B2sJR97f-BIaVdWBP.js → ReloadCard-B2sJR97f-4aiyry-A.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-_IO343vS-Bd9be2IV.js → ReportTableViewSelector-_IO343vS-DFegVWwX.js} +1 -1
- package/dist/assets/{ReportsPage-C-aQ1bdd-BbBsZ9pq.js → ReportsPage-C-aQ1bdd-DQkYUdHM.js} +5 -5
- package/dist/assets/{RevenueChart-Bgq6My4J-BiDvlJvs.js → RevenueChart-Bgq6My4J-Bd7qmjtO.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-COx9R71r-BZZC_0cP.js → ReviewDetailsPage-COx9R71r-BNEXmQ6j.js} +1 -1
- package/dist/assets/{ReviewOverlay-CPU7RPiJ-Bs2eF6px.js → ReviewOverlay-CPU7RPiJ-LkDgAnlD.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DSSGBzvw-w9nfatYk.js → RoleWithToolTip-DSSGBzvw-1jeqwzcs.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-Cgt85on9.js → ScheduleDetailsFixedAssetsPage-DKGBfhAM-DIiqwEOV.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-Cn0um4-b.js → ScheduleDetailsPage-B-fKJ7Ct-DSkiCN2O.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-DNxHXj-E.js → ScheduleSequenceTable-Dh_aT47H-BHM_c04w.js} +15 -15
- package/dist/assets/{ScreenRoutes-v_76HEQb.js → ScreenRoutes-DuXEW70Q.js} +48 -48
- package/dist/assets/{SetUpAccountSection-DrMCC1IY-DUMtEDGs.js → SetUpAccountSection-DrMCC1IY-D33epaX0.js} +4 -4
- package/dist/assets/{SignIn-Ij6tlYI5-Df2WXZVd.js → SignIn-Ij6tlYI5-DeE6t8Fq.js} +7 -7
- package/dist/assets/{SignInScreen-C4ZK30De.js → SignInScreen-LCpnq8M3.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-AI676Urw-EYS2bzVL.js → SpendManagementListViewPage-AI676Urw-DJru7ByR.js} +13 -13
- package/dist/assets/{SpendManagementPerTabPage-D79c3Xqh-B-bFDlPr.js → SpendManagementPerTabPage-D79c3Xqh-D8DfakVn.js} +1 -1
- package/dist/assets/{SpendManagementSection-BqWbsmBW-DKtanA-9.js → SpendManagementSection-BqWbsmBW-BhpclPa8.js} +7 -7
- package/dist/assets/{StatementItem-Aal79YaO-BQZc18ts.js → StatementItem-Aal79YaO-3cBWg-5i.js} +1 -1
- package/dist/assets/{StatementsPage-BG_pNQzc-CzvxwtLg.js → StatementsPage-BG_pNQzc-C7UMTTVJ.js} +1 -1
- package/dist/assets/{StatusSwitcher-DYRXaLvx-AQ5F23zs.js → StatusSwitcher-DYRXaLvx-GT20DbHu.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C75XU1EG-C5X1b7VC.js → SubTabSwitcher-C75XU1EG-BZOngUzL.js} +1 -1
- package/dist/assets/{SummaryCard-DEnzgi31-DU7b1H9O.js → SummaryCard-DEnzgi31-BhOErS-o.js} +1 -1
- package/dist/assets/{TaskManagementPage-BacWm0wS-CxwBoTNG.js → TaskManagementPage-BacWm0wS-tQV5bDZ1.js} +12 -12
- package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-EGXiDQ0Z.js → TimeRangeSwitcher-BOzR-0O6-8myc4JmX.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BVgI_VZw-BXU7EPFq.js → TimeframeSwitcher-BVgI_VZw-Re-kZX07.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-CHmXrP90.js → TimeframeSwitcherWithToggle-CPVSAvFa-Bg7OmG92.js} +1 -1
- package/dist/assets/{TopExCard-ImUx-vXr-CCfEzo-r.js → TopExCard-ImUx-vXr--haKJkNG.js} +1 -1
- package/dist/assets/{TopExDetailPage-Dg_8DQk8-ByzYxzfA.js → TopExDetailPage-Dg_8DQk8-4TF178rD.js} +2 -2
- package/dist/assets/{TransactionDetailPage-BzaDB50S-CcgKIVvo.js → TransactionDetailPage-BzaDB50S-CJmLmWoQ.js} +31 -31
- package/dist/assets/{TransactionList-DMd3dgoK-jIPFWuzK.js → TransactionList-DMd3dgoK-DFvlE42h.js} +5 -5
- package/dist/assets/{TransactionListBig-BxHqh8u6-Cd7KnFj9.js → TransactionListBig-BxHqh8u6-eMcF_DZh.js} +1 -1
- package/dist/assets/{TransactionListPage-CN9fZznd-k0wJ66Rn.js → TransactionListPage-CN9fZznd-DZJjs91-.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CykcquSh-X7txd8Uw.js → TransactionVendorDetailPage-CykcquSh-UwSp0CrJ.js} +1 -1
- package/dist/assets/{TransferDrawerPage-oV7ickRP-DK8yvBjK.js → TransferDrawerPage-oV7ickRP-yOers3_6.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CECDKjNn-B51H5BQA.js → TreasuryOverviewPage-CECDKjNn-HTBJsJ5M.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-BvHndp-i.js → TreasuryPromoPage-Bgt7uGAE-oIwaWu5X.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-QyWxshsI-vvKelSCQ.js → TreasuryStatementsPage-QyWxshsI-BxKUXQKE.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BLmfU0VD-Bk_hdnHl.js → TreasuryTaxLetterPage-BLmfU0VD-CZkFVEWV.js} +1 -1
- package/dist/assets/{TrendChart-C_6ob-SX-m0EmlBC5.js → TrendChart-C_6ob-SX-BWR7UfmP.js} +2 -2
- package/dist/assets/{TrendWithTransactions-lMD2sZ-C-XUwPuFCO.js → TrendWithTransactions-lMD2sZ-C-B_BL8w82.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-C8HrLzdo.js → UncategorizedAccountsMappingPage-DEgz17_R-CooBTMrf.js} +7 -7
- package/dist/assets/{UnitIntegrationPage-D9Pzxqju-C2A5K_Pc.js → UnitIntegrationPage-D9Pzxqju-CvrKT10L.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CJYvOjh0-D58Kj8VW.js → UploadAdditionalDocumentOverlay-CJYvOjh0-D-S1zfGQ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-D-r0NVE--CH70A67b.js → Vendor2FAPopup-D-r0NVE--CwiNcgO0.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-EAp4jOT9.js → VendorACHDetailsPage-Dv6bTD6Y-13eGKSpU.js} +1 -1
- package/dist/assets/{VendorDetailPage-BhfawsBd-X9ppQyZg.js → VendorDetailPage-BhfawsBd-Caqe1lVz.js} +11 -11
- package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-B1OQJ-PX.js → VendorDomesticWireDetailsPage-BjmlrfTQ-t6Qb8_Zl.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-Db8a7MT5.js → VendorFiling1099EditablePage-glvi0GTU-Ctoy4jdk.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-D91xrJnc.js → VendorFirstReviewPage-DUuUM8ZT-CU9frkxN.js} +23 -23
- package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-YoEXSyjJ.js → VendorInternationalWireDetailsPage--Lb-TviQ-DUgeyPBL.js} +13 -13
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-BZwXuirg.js → VendorInternationalWireSwiftDetailsPage-C6KviV2Z-CuCByIJB.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-Co8ekhdh.js → VendorsAccountsSection-EmHO3wQ0-CSPWzKcg.js} +2 -2
- package/dist/assets/{VerifyDevice-DE3UbLEe-CyUiyNY7.js → VerifyDevice-DE3UbLEe-DJm7Kfur.js} +1 -1
- package/dist/assets/{VideoPlayer-Gw_PLr8F-B2qovwmK.js → VideoPlayer-Gw_PLr8F-BcD3Qyt1.js} +2 -2
- package/dist/assets/{VideoPopup-DPZYhLgy-B-KPrxJA.js → VideoPopup-DPZYhLgy-CJt98Dbq.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CZvToguS-XDiwFZJB.js → WarningsDrawerPage-CZvToguS-Ba7pscqf.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-CENmz8Ua.js → ZeniAccountDetailPage-CQhqngBz-CmRc3epW.js} +6 -6
- package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-CK8_GdHY.js → ZeniAccountListViewPage-CpX8vqYa-CrcimjI_.js} +5 -5
- package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-Di--PMn-.js → ZeniAccountNavBarPieces-DsUwG15z-DiPlFFTl.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-DA611IgH-iuu7zQBs.js → ZeniAccountPromoPage-DA611IgH-CipxvQgU.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-5fsPz9xO.js → ZeniAccountSetupPage-CJv2Fk1i-BEZSbbPm.js} +3 -3
- package/dist/assets/{ZeniCopyright-FFqiWypL-Cm4f2TI5.js → ZeniCopyright-FFqiWypL-DiiU36pR.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-BloT7n7Q.js → ZeniTransferAmountSlider-DSrBZUbA-BFqVxMPD.js} +1 -1
- package/dist/assets/{analytics-CThNEnNw.js → analytics-XaDXTZcq.js} +1 -1
- package/dist/assets/{analyticsHelper-lLrERKZn.js → analyticsHelper-CPNXs_BN.js} +1 -1
- package/dist/assets/{analyticsHelper-CczQLvkM-Bib0YVO4.js → analyticsHelper-CczQLvkM-BG3MqU2b.js} +1 -1
- package/dist/assets/{chartTypes-CwQl8aoN-BQd1i_cE.js → chartTypes-CwQl8aoN-DVag5uGx.js} +1 -1
- package/dist/assets/{commonDimensions-B1u_MhON-NVIOlvy5.js → commonDimensions-B1u_MhON-D3_HfKhE.js} +1 -1
- package/dist/assets/{dash.all.min-BUPngCw6.js → dash.all.min-DBAY9LgI.js} +1 -1
- package/dist/assets/{detailCommon-nYxvvV_i-DTtGx6HY.js → detailCommon-nYxvvV_i-CatRpXM4.js} +1 -1
- package/dist/assets/{downloadPdf-yGlKpV2--BfE42mHv.js → downloadPdf-yGlKpV2--PjZSq5HD.js} +1 -1
- package/dist/assets/{epic-Bko4IStj.js → epic-BLwHhkRJ.js} +2 -2
- package/dist/assets/{index-KtBRorGi.js → index-CEtuJXY3.js} +1 -1
- package/dist/assets/{index-BxXAQ-Kq.js → index-CdTBIE6I.js} +1 -1
- package/dist/assets/{index-BP8jc2MZ.js → index-Ci63exms.js} +6 -6
- package/dist/assets/{index-BV-YAw0P.js → index-DYDdrdFx.js} +1 -1
- package/dist/assets/{index-CwsnnJzI.js → index-DrmeEdvK.js} +1 -1
- package/dist/assets/{liveblocks-B3KbWbMM.js → liveblocks-CNYVvsag.js} +1 -1
- package/dist/assets/{lottie-CaGAfnTY.js → lottie-22bRan8M.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-C-4Ag6Dq.js → mapLoadingInProgressToTreeNode-DIAuL28N-uQ9ZpPGq.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-CSRhLO-g.js → mapSectionWithAcOnlyToTreeNode-DRSmQ56_-BfuaGrUM.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-FsL3Wvr0.js → mapSpacerToTreeNode-DOEVwUIo-DiQ0KiMB.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-DM4HsE8s.js → mapTimeframeBalancesToTreeNode-DbnAvW1M-DvZ_ljbo.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-CGsx1h8W.js → mapTimeframeBalancesToTreeNode-DkrEWOxt-u1VbFdjk.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-CSuR34Jn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-DJb78S-u.js} +1 -1
- package/dist/assets/{react-C2wGlvWj.js → react-BUQtf2po.js} +2 -2
- package/dist/assets/{recharts-CXSQ4XPK.js → recharts-h5iNQbFd.js} +1 -1
- package/dist/assets/{sentry-DxvQlcJu.js → sentry-cYFeB6Pw.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-rZFEkHuM-CHyvHGmW.js → toCOABalancesWithID-rZFEkHuM-BjqaEj9u.js} +1 -1
- package/dist/assets/{toChartData-C-dHC-Oz-C2z1PJfR.js → toChartData-C-dHC-Oz-CLJWjMkx.js} +1 -1
- package/dist/assets/{uploadAttachment-D3clfqPu-vNbeEBN-.js → uploadAttachment-D3clfqPu-NbmOED_L.js} +15 -15
- package/dist/assets/{uploadReceipts-Bkf_PaOH-DRTWmNKJ.js → uploadReceipts-Bkf_PaOH-DuaAGaHX.js} +1 -1
- package/dist/assets/{url-DuX7Wo4B.js → url-B-8T_WZb.js} +1 -1
- package/dist/assets/{url-y5lCWhwX.js → url-DPKHmOp_.js} +1 -1
- package/dist/assets/{utils-C70QTjQC.js → utils-fBOyu0sO.js} +1 -1
- package/dist/assets/{zeni-epic-state-xFtF3OLs.js → zeni-epic-state-BwKvATgd.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-p4f66PTl.js +0 -47
- package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-BzRvblFe.js +0 -1
- package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-DX8NF4Kz.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea,V as t,bz as Xa,g1 as er,fc as re,b as D,bQ as it,p,aL as he,aV as ot,aK as st,y as W,ag as
|
|
1
|
+
import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea,V as t,bz as Xa,g1 as er,fc as re,b as D,bQ as it,p,aL as he,aV as ot,aK as st,y as W,ag as J,B as tr,M as ar,cT as rr,as as ta,bI as ir,aZ as dt,aQ as or,al as ct,a8 as nr,gL as sr,cW as dr,an as cr,ab as lr,g7 as ur,n as Bt,u as _,d4 as aa,ap as hr,ak as mr,E as pr,cS as Cr,bt as gr,bS as br}from"./index-Ci63exms.js";import{a as c}from"./core-3dlyNYRL.js";import{n as r,b as lt,k as fr}from"./mui-bYXq4XMS.js";import{Er as xr,FJ as Sr,bj as zt,bO as yr,bS as wr}from"./zeni-epic-state-BwKvATgd.js";import{K as kr}from"./SpendManagementSection-BqWbsmBW-BhpclPa8.js";import{D as ie,l as $r,r as Ir}from"./ChargeCardListTable-uJZKWoh7-DGMj8Kk8.js";import{ChargeCardPromoUserContent as jr}from"./ChargeCardPromoPage-uqT96W3_-DGpf3zxD.js";import{N as vr,J as Lr}from"./PromoBaseCards-CI7UOpeY-DI52WXKx.js";import{z as Nt,L as Ot,k as Ar,P as Pr}from"./LockCardPage-KTyESoXL-C_hGUeR9.js";import{r as Er,i as Fr}from"./graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js";import{t as Mr,o as Tr}from"./arrow-south-east-round-PEovUgvH-7DsZUZDF.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./Menu-CGN2qO6T-CKP1jX2H.js";import"./RoleWithToolTip-DSSGBzvw-1jeqwzcs.js";import"./CardNumberSubText-W81SQ4GF-D5AG2b-c.js";import"./NavigationDots-DyMqwpgy-DXf5bt3G.js";import"./usp-line-BBd1wKwW-ClwDS-nj.js";const ut={infoSubheadingTextMarginTop:new W(_[0],_[0]),cardsMinWidth:new W(343,353)},Ae=Ee.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,_t=({cardPromoType:e,cardText:l,header:h,title:d,subTitle:n,slidingTextList:m,onClick:E,status:k,statusMessage:U})=>{const B=Pe(),L=k!==void 0,G=k==="rejected"?Ae.status.requestRejected:k==="under_review"?Ae.status.requestUnderReview:"";return t.jsxs(Rr,{windowSize:B,cardPromoType:e,"data-testid":st("list-page-promo-card",e),onClick:()=>E(e),children:[t.jsxs(ra,{isStatusMode:L,children:[t.jsxs(oa,{children:[L?t.jsx(Nr,{children:G}):t.jsx(ia,{children:h}),t.jsx(_r,{children:d}),L?null:t.jsx(Wr,{children:n})]}),!L&&t.jsxs(Gr,{children:[t.jsx(Yr,{}),m.length>0&&t.jsx(nt,{slideUpCount:m.length,children:m.map((oe,ne)=>t.jsx(na,{children:oe},`card-promo-${ne.toString()}`))}),t.jsx(Jr,{})]}),U!=null&&L?t.jsx(Or,{status:k,children:U}):null]}),t.jsx(qr,{isStatusMode:L,children:t.jsx(vr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Kr,{isStatusMode:L,children:t.jsx(Lr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Ut=({cardType:e,header:l,title:h,creditLimit:d,onCreateNowClick:n})=>{const m=Pe();return t.jsx(Br,{windowSize:m,cardType:e,children:t.jsxs(zr,{children:[t.jsxs(oa,{children:[t.jsx(ia,{children:l}),t.jsx(Vr,{children:t.jsx(Ur,{children:h})}),t.jsx(Qr,{windowSize:m,children:t.jsxs(Zr,{windowSize:m,onClick:()=>n(e),"data-testid":st("total-cashback-info"),children:[t.jsx(na,{children:Ae.createNow}),t.jsx(Hr,{})]})})]}),e==="creditCard"?t.jsxs(Xr,{children:[t.jsx(ei,{children:Ae.creditLimit}),t.jsx(ti,{children:d})]}):null]})})},Dr=e=>{const l=e-1;let h=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -76,7 +76,7 @@ import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea
|
|
|
76
76
|
`,Nr=r(aa)`
|
|
77
77
|
color: ${e=>e.theme.colors.brandColorGold};
|
|
78
78
|
text-transform: uppercase;
|
|
79
|
-
`,Or=r(
|
|
79
|
+
`,Or=r(J)`
|
|
80
80
|
color: ${p.neutralGrey5Light};
|
|
81
81
|
max-width: ${e=>e.status==="rejected"?"188px":"200px"};
|
|
82
82
|
`,_r=r(pr)`
|
|
@@ -87,7 +87,7 @@ import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea
|
|
|
87
87
|
`,Vr=r.div`
|
|
88
88
|
width: auto;
|
|
89
89
|
text-align: left;
|
|
90
|
-
`,Wr=r(
|
|
90
|
+
`,Wr=r(J)`
|
|
91
91
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
92
92
|
`,Gr=r.div`
|
|
93
93
|
display: flex;
|
|
@@ -95,7 +95,7 @@ import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea
|
|
|
95
95
|
gap: ${a.sp2};
|
|
96
96
|
height: 21px;
|
|
97
97
|
overflow: hidden;
|
|
98
|
-
`,nt=r(
|
|
98
|
+
`,nt=r(J)`
|
|
99
99
|
display: flex;
|
|
100
100
|
flex-direction: column;
|
|
101
101
|
align-items: flex-start;
|
|
@@ -116,12 +116,12 @@ import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea
|
|
|
116
116
|
height: ${a.sp3};
|
|
117
117
|
color: ${p.success};
|
|
118
118
|
border-radius: 50%;
|
|
119
|
-
`,
|
|
119
|
+
`,Jr=r(gr)`
|
|
120
120
|
width: ${a.sp4};
|
|
121
121
|
height: ${a.sp4};
|
|
122
122
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
123
123
|
margin-left: ${a.sp3};
|
|
124
|
-
`,
|
|
124
|
+
`,qr=r.div`
|
|
125
125
|
position: absolute;
|
|
126
126
|
top: ${e=>e.isStatusMode===!0?a.sp5:a.sp2};
|
|
127
127
|
right: -29px;
|
|
@@ -155,7 +155,7 @@ import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea
|
|
|
155
155
|
color: ${p.neutralGrey5Light};
|
|
156
156
|
`,ti=r(mr)`
|
|
157
157
|
color: ${p.neutralGrey5Light};
|
|
158
|
-
`,ue="spendLimit",Y=Ee.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup;function ai({currentSpentAmount:e,hasCreditCard:l,hasDebitCard:h,maxLimitAmountForCreditCard:d,maxLimitAmountForDebitCard:n,isDisabled:m,updateLimitFetchState:E,onCancelClick:k,onSubmitClick:U}){const B=Pe(),L="SpendLimitForm",G=nr({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[ue]:void 0}}),{control:oe,formState:{errors:ne}}=G,[Fe,Me]=c.useState(void 0),x=sr({control:oe,name:ue}),Te=()=>{k()},De=G.handleSubmit(()=>{const y=G.getValues(ue);y!=null&&U(y)}),S=dr(ne,ue),$=Ee.getLocalizedStrings().common,F=Le.largeLabelWidth.value(B);return c.useEffect(()=>{Me(ri(e,l,h,d,n,x))},[x,e,d,n,l,h]),t.jsx(ii,{windowSize:B,role:"presentation",children:t.jsx(cr,{onClickAway:()=>k(),children:t.jsxs(oi,{windowSize:B,children:[t.jsx(lr,{...G,children:t.jsxs(ui,{id:L,onSubmit:y=>{y.preventDefault(),De()},children:[t.jsx(ni,{windowSize:B,children:Y.heading}),t.jsx(li,{hasError:S,children:t.jsx(ur,{label:{label:Y.newLimit,width:F},showAdditionalInfoLabel:S,additionalInfoLabel:Fe,formattedTextField:{type:"number",name:ue,defaultValue:void 0,placeholder:Y.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:y=>{if(!y||y<=0||y<=e.amount)return!1;if(h&&l&&n!=null&&d!=null){const
|
|
158
|
+
`,ue="spendLimit",Y=Ee.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup;function ai({currentSpentAmount:e,hasCreditCard:l,hasDebitCard:h,maxLimitAmountForCreditCard:d,maxLimitAmountForDebitCard:n,isDisabled:m,updateLimitFetchState:E,onCancelClick:k,onSubmitClick:U}){const B=Pe(),L="SpendLimitForm",G=nr({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[ue]:void 0}}),{control:oe,formState:{errors:ne}}=G,[Fe,Me]=c.useState(void 0),x=sr({control:oe,name:ue}),Te=()=>{k()},De=G.handleSubmit(()=>{const y=G.getValues(ue);y!=null&&U(y)}),S=dr(ne,ue),$=Ee.getLocalizedStrings().common,F=Le.largeLabelWidth.value(B);return c.useEffect(()=>{Me(ri(e,l,h,d,n,x))},[x,e,d,n,l,h]),t.jsx(ii,{windowSize:B,role:"presentation",children:t.jsx(cr,{onClickAway:()=>k(),children:t.jsxs(oi,{windowSize:B,children:[t.jsx(lr,{...G,children:t.jsxs(ui,{id:L,onSubmit:y=>{y.preventDefault(),De()},children:[t.jsx(ni,{windowSize:B,children:Y.heading}),t.jsx(li,{hasError:S,children:t.jsx(ur,{label:{label:Y.newLimit,width:F},showAdditionalInfoLabel:S,additionalInfoLabel:Fe,formattedTextField:{type:"number",name:ue,defaultValue:void 0,placeholder:Y.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:y=>{if(!y||y<=0||y<=e.amount)return!1;if(h&&l&&n!=null&&d!=null){const q=Math.min(n.amount,d.amount);if(y>q)return!1}else if(h&&n!=null&&y>n.amount||l&&d!=null&&y>d.amount)return!1;return!0}},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1})})]})}),t.jsx(ci,{children:t.jsxs(si,{children:[t.jsx(Bt,{label:$.cancel,onClick:Te,style:{width:84}}),t.jsx(di,{}),t.jsx(Bt,{variant:"primary",label:$.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:E==="In-Progress",type:"submit",form:L,disabled:m})]})})]})})})}const ri=(e,l,h,d,n,m)=>{if(m!=null){if(m<=e.amount)return Y.amountBelowErrorBulk;if(h&&l&&n!=null&&d!=null){const E=Math.min(n.amount,d.amount);if(m>E){const k=n.amount<d.amount?"debit":"credit",U=n.amount<d.amount?n:d;return Y.maxLimitForCardTypeError.replace("_card_type_",k).replace("_amount_",he("0,0.[00]",U))}}else{if(h&&n!=null&&m>n.amount)return Y.maxLimitForCardTypeError.replace("_card_type_","debit").replace("_amount_",he("0,0.[00]",n));if(l&&d!=null&&m>d.amount)return Y.maxLimitForCardTypeError.replace("_card_type_","credit").replace("_amount_",he("0,0.[00]",d))}}},Le={width:new W(343,500,500),largeLabelWidth:new W(108,108,108),popupLeftRightPadding:new W(_[5],_[6]),popupTopBottomPadding:new W(_[5],_[5])},ii=r.div`
|
|
159
159
|
position: fixed;
|
|
160
160
|
top: ${a.sp0};
|
|
161
161
|
left: ${a.sp0};
|
|
@@ -206,7 +206,7 @@ import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea
|
|
|
206
206
|
}
|
|
207
207
|
`,ui=r.form`
|
|
208
208
|
display: contents;
|
|
209
|
-
`,me={contentContainerMargin:new W(_[3],_[4],_[8]),infoSubheadingTextMarginTop:new W(_[0],_[0]),cardsMinWidth:new W(343,353)},hi={remainingText:new tr("largeRegular","largeRegular")},{spendManagement:{chargeCard:{payEarly:w,cardList:O,chargeCardsPromo:b}},common:R,dateFormat:je}=Ee.getLocalizedStrings(),ho=({chargeCardListView:e,searchText:l,admins:h,companyLegalName:d,onFetchChargeCardsRecurringExpenses:n,onFetchDepositAccountLimit:m,onCloseChargeCard:E,onCloseChargeCardList:k,onLockChargeCard:U,onLockChargeCardList:B,onUnlockChargeCardList:L,updateChargeCardListSpendLimit:G,onUpdateSpendLimit:oe,isCardControlsEnabled:ne,isCashbackFeatureEnabled:Fe,creditCardPayNowThreshold:Me,isChargeCardFeatureEnabled:x,isCompanyInterestedInChargeCard:Te,isCreditCardProductVisibleForExpressInterest:De,isDebitCardFeatureEnabled:S,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:F,companyChargeCardInfoCreditAccountLimit:y,controllerEmails:J,onRevokeChargeCardList:ht,depositAccountListWithDebitCardIssued:z,chargeCardCashbackDetailState:I,uiState:ca,signedInUser:Re,creditLimit:pe,cashbackRate:Be,onSearchTextChanged:la,onClickSetupIcon:ua,isEarlyPayEnabled:se,onClickStatementsIcon:ha,onChargeCardRowClick:ma,updateChargeCardName:pa,onChargeCardResendInviteClick:Ca,onChargeCardRevokeInviteClick:mt,onUnlockChargeCard:pt,onIssueCardClick:ga,onBackClick:ba,onReloadCards:fa,onTotalCashbackClick:xa,onColumnSortConfigChanged:Sa,onClickMenuIcon:ya,onPromoCardClick:Ct,onCreateNowClick:gt,showPayNowInfoTooltip:wa,navigateToCreditCardPaymentPage:Ce,shouldShowPayNowInfoTooltip:ze,rowActionView:o,bulkActionView:u,onSetRowActionCardId:Ne,onSetBulkActionCardIds:j})=>{const ge=Qa().analytics,[bt,ka]=c.useState(!1),[Oe,be]=c.useState(!1),[_e,fe]=c.useState(!1),[$a,K]=c.useState(!1),[Ia,Q]=c.useState(!1),[ja,xe]=c.useState(!1),[Ue,Ve]=c.useState(!1),[We,Ge]=c.useState(!1),[Ye,ft]=c.useState(void 0),va=u.chargeCards[0]?.status.code,{creditAccount:g,creditAccountRepayment:A}=e,P=c.useCallback(()=>{Ne(void 0),ft(void 0)},[Ne]),M=u.chargeCards,La=c.useMemo(()=>M.length===0?void 0:M.reduce((i,s)=>s.balance.amount>i.balance.amount?s:i,M[0]).balance,[M]),Aa=c.useMemo(()=>{const i=M.filter(f=>f.type.code.includes("debit"));if(i.length===0)return;const s=i.map(f=>z.depositAccounts.find(ae=>ae.id===f.connectedAccountId)?.cardLimits.dailyCardTransactionLimit).filter(f=>f!==void 0);return s.length===0?void 0:s.reduce((f,ae)=>ae.amount<f.amount?ae:f)},[M,z.depositAccounts]),xt=N(e.unlockChargeCardsFetchState.fetchState),St=N(e.revokeChargeCardsInviteFetchState.fetchState),yt=N(e.lockChargeCardsFetchState.fetchState),wt=N(e.closeChargeCardsFetchState.fetchState),kt=N(e.updateChargeCardsSpendLimitFetchState.fetchState);c.useEffect(()=>{const i=xt==="In-Progress"&&e.unlockChargeCardsFetchState.fetchState==="Completed",s=St==="In-Progress"&&e.revokeChargeCardsInviteFetchState.fetchState==="Completed",f=yt==="In-Progress"&&e.lockChargeCardsFetchState.fetchState==="Completed",ae=wt==="In-Progress"&&e.closeChargeCardsFetchState.fetchState==="Completed",Ka=kt==="In-Progress"&&e.updateChargeCardsSpendLimitFetchState.fetchState==="Completed";(i||s)&&j([]),f&&(K(!1),j([])),ae&&(Q(!1),j([])),Ka&&(xe(!1),j([]))},[e.unlockChargeCardsFetchState.fetchState,e.revokeChargeCardsInviteFetchState.fetchState,e.lockChargeCardsFetchState.fetchState,e.closeChargeCardsFetchState.fetchState,e.updateChargeCardsSpendLimitFetchState.fetchState,xt,St,yt,wt,kt,j]);const Z=o.cardId!=null?o.unlockChargeCardsFetchState.fetchState:void 0,$t=N(Z),qe=o.cardId!=null?o.updateChargeCardLimitFetchState.fetchState:void 0,It=N(qe),Je=o.cardId!=null?o.updateChargeCardNameFetchState.fetchState:void 0,jt=N(Je),Ke=o.cardId!=null?o.lockChargeCardsFetchState.fetchState:void 0,vt=N(Ke),Qe=o.cardId!=null?o.closeChargeCardsFetchState.fetchState:void 0,Lt=N(Qe),H=o.cardId!=null?o.revokeChargeCardFetchState.fetchState:void 0,At=N(H);c.useEffect(()=>{o.cardId!=null&&$t==="In-Progress"&&Z==="Completed"?P():o.cardId!=null&&It==="In-Progress"&&qe==="Completed"?(Ge(!1),P()):o.cardId!=null&&jt==="In-Progress"&&Je==="Completed"?(Ve(!1),P()):o.cardId!=null&&vt==="In-Progress"&&Ke==="Completed"?(be(!1),P()):o.cardId!=null&&Lt==="In-Progress"&&Qe==="Completed"?(fe(!1),P()):o.cardId!=null&&At==="In-Progress"&&H==="Completed"&&P()},[o.cardId,Z,qe,Je,Ke,Qe,H,$t,jt,It,vt,Lt,At,P]);const Pa=c.useCallback(i=>{switch(i){case"close":n(u.bulkActionCardIds),Q(!0);break;case"lock":n(u.bulkActionCardIds),K(!0);break;case"unlock":L(u.bulkActionCardIds);break;case"update_limit":xe(!0);break;case"revoke_invite":ht(u.bulkActionCardIds);break}},[u.bulkActionCardIds,n,ht,L]),C=o.chargeCard;c.useEffect(()=>{if(!(Ye===void 0||o.cardId===void 0||C===void 0))switch(Ye){case ie.CLOSE:_e||(n([o.cardId]),fe(!0));break;case ie.LOCK:Oe||(n([o.cardId]),be(!0));break;case ie.UNLOCK:Z!=="In-Progress"&&Z!=="Completed"&&pt(o.cardId);break;case ie.REVOKE_INVITE:H!=="In-Progress"&&H!=="Completed"&&mt(o.cardId);break;case ie.RENAME:Ue||Ve(!0);break;case ie.UPDATE_SPEND_LIMIT:We||(C.type.code.includes("debit")&&o.depositAccountLimitFetchState.fetchState!=="Completed"&&m(C.connectedAccountId,o.cardId),Ge(!0));break}},[Ye,o.cardId,We,Ue,_e,Oe,Z,H,n,m,pt,mt]);const Ze=Za(),X=!!Ze.loggedInUserRole.includes("charge_card_user"),Se=Ha(Ze),v=xr(Ze.loggedInUserRoleMap),ee=c.useMemo(()=>v===!0?{creditCardCashbackOffer:`${I.cashbackAnalytics.creditCardCashbackOffer}%`,debitCardCashbackOffer:`${I.cashbackAnalytics.debitCardCashbackOffer}%`,totalEarnedCashback:V(I.cashbackSummary.cashbackEarned.amount),redeemedCashback:V(I.cashbackSummary.cashbackRedeemed.amount),availableCashback:V(I.cashbackSummary.cashbackAvailable.amount),creditCardCashbackRedemptionMode:I.cashbackAnalytics.creditCardCashbackRedemptionMode,debitCardCashbackRedemptionMode:I.cashbackAnalytics.debitCardCashbackRedemptionMode}:void 0,[v,I.cashbackAnalytics.creditCardCashbackOffer,I.cashbackAnalytics.debitCardCashbackOffer,I.cashbackSummary.cashbackEarned.amount,I.cashbackSummary.cashbackRedeemed.amount,I.cashbackSummary.cashbackAvailable.amount,I.cashbackAnalytics.creditCardCashbackRedemptionMode,I.cashbackAnalytics.debitCardCashbackRedemptionMode]),ye=c.useMemo(()=>x&&F&&v===!0?{creditAccountId:g.id,creditAccountLimit:V(g.limit.amount),creditAccountAvailableAmount:V(g.available.amount),creditAccountSpentAmount:V(g.balance.amount+g.hold.amount),creditAccountStatus:g.status,outstandingBalance:V(A.remainingAmountDue.amount)}:void 0,[x,F,v,g.id,g.limit.amount,g.available.amount,g.balance.amount,g.hold.amount,g.status,A.remainingAmountDue.amount]),we=c.useMemo(()=>S&&$?{debitAccountId:z.depositAccounts.map(i=>i.id),debitAccountName:z.depositAccounts.map(i=>i.accountName),debitAccountBalance:z.depositAccounts.map(i=>V(i.accountBalance.available.amount)),debitCardsSpend:V(e.debitCardSummary?.currentMonthSpends?.amount??0),debitAccountStatus:z.depositAccounts.map(i=>i.accountStatus)}:void 0,[S,$,z.depositAccounts,e.debitCardSummary?.currentMonthSpends?.amount]),ke={isCreditCardOffered:x,isDebitCardOffered:S,isDebitCardEnabled:$,isCreditCardEnabled:F},Ea=i=>{ka(i),i===!0&&(ge.trackCardsListPageClicked("search"),(!x||g.fetchState==="Completed"&&A.fetchState==="Completed")&&(!(S&&$)||z.fetchState==="Completed")&&ee!=null&&ge.trackCardsCardListSearchClick(J,ke,ee,ye,we))},T=Pe(),Pt=Se&&!v,Et=e.creditAccount.balance.amount+e.creditAccount.hold.amount,de={amount:Et,currencyCode:e.creditAccount.balance.currencyCode,currencySymbol:e.creditAccount.balance.currencySymbol},He=Math.round(de.amount*100/e.creditAccount.limit.amount),Fa=isNaN(He)?0:Et!==0&&He===0?1:He,ce=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate,Xe=v&&de.amount>Me*e.creditAccount.limit.amount/100,le=ce!=null&&A.initiatedRepayments.amount>0,Ma={entity:"charge_cards",showNewButtonOnNavbar:v,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:v?O.newBtnLabel:R.strings.empty,hideSearchBtn:X,searchTextBoxStyle:{right:Pt?a.sp4:"96px"},moreIconContainerStyle:{paddingRight:Pt?a.sp0:a.sp4},isSearchOpen:bt,searchPlaceHolder:O.searchPlaceHolder,searchText:l,showSettingsIcon:!X,showSettingsIconOnNavbar:v,showStatementButtonOnNavbar:x&&F,showPayEarlyButtonOnNavbar:se&&v&&de.amount>0&&!le&&!Xe,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,analytics:ge,onSearchOpen:Ea,onSearchTextChanged:la,onClickSetupIcon:ua,onClickStatementsIcon:ha,downloadState:"Not-Started",onNewButtonClick:ga,onClickPayEarlyIcon:()=>Ce("More Button","Pay Early"),onMenuOpen:()=>{(!x||g.fetchState==="Completed"&&A.fetchState==="Completed")&&(!(S&&$)||z.fetchState==="Completed")&&ee!=null&&ge.trackCardsCardListMoreMenuClick(J,ke,ee,ye,we)},filters:{categoryCombinationOperator:"AND",categories:[]}},Ta=t.jsx(kr,{spendManagementSectionProps:Ma}),Da=e.cards.length===0?!1:X&&Sr(e.cards),Ra=e.fetchState==="Completed"?Si({isChargeCardFeatureEnabled:x,isChargeCardSetupEnabled:F,isDebitCardFeatureEnabled:S,isDebitCardSetupEnabled:$}):"",$e=e.debitCardSummary!=null?e.debitCardSummary.currentMonthSpends.amount-e.debitCardSummary.lastCompletedMonthSpends.amount:0,Ba=x&&F&&e.hasCreditCard,za=S&&$&&e.hasDebitCard,Na=x&&F&&Se&&!v,Oa=S&&$&&Se&&!v,Ie=e.chargeCardConfig.rePaymentInfo?.rePaymentDueDate?.diff(zt(),"days")??0,et=[w.payNow,Ie>0&&Ie<11?`${w.billDueIn} ${Ie} ${Ie===1?R.timeStrings.day:R.timeStrings.days}`:w.creditLimitLow,w.payNow],Ft=A.initiatedRepayments.amount===g.balance.amount+g.hold.amount,tt=[w.paymentInitiated,`${O.header.limit} ${Ft?R.resets:R.updates} ${R.by} ${yr(wr(A.initiatedRepaymentDate?.toDate()??zt().toDate(),[0,6],3).toDateString()).format(je.visual.MMMDFormat)}`,w.paymentInitiated],at=c.useRef(null),rt=c.useRef(null),_a=ea(),[Ua,Mt]=c.useState(!0);c.useEffect(()=>{const i=()=>{rt.current&&(rt.current.getBoundingClientRect().top<(T==="small"?68:40)?Mt(!1):Mt(!0))};i();const s=()=>{i()},f=at.current;return f&&f.addEventListener("scroll",s),window.addEventListener("scroll",s),()=>{f&&f.removeEventListener("scroll",s),window.removeEventListener("scroll",s)}},[T]);const Va=i=>{const s=i.reasonType==="other"?i.reason:i.reasonType;o.cardId!=null&&E(o.cardId,s)},Wa=i=>{const s=i.reasonType==="other"?i.reason:i.reasonType;o.cardId!=null&&U(o.cardId,s)},Ga=i=>{const s=i.reasonType==="other"?i.reason:i.reasonType;k(u.bulkActionCardIds,s)},Ya=i=>{const s=i.reasonType==="other"?i.reason:i.reasonType;B(u.bulkActionCardIds,s)},te=c.useMemo(()=>{const i={};return u.chargeCards.forEach(s=>{i[s.id]=s}),{chargeCardsByCardId:i,cardRecurringExpensesByCardId:u.recurringExpensesByCardId,fetchState:u.recurringExpensesFetchState.fetchState}},[u]),qa=c.useCallback(()=>{n(u.bulkActionCardIds),K(!0)},[u.bulkActionCardIds,n]),Ja=c.useCallback(()=>{n(u.bulkActionCardIds),Q(!0)},[u.bulkActionCardIds,n]),Tt=c.useCallback(i=>{const s=u.bulkActionCardIds.filter(f=>f!==i);j(s),s.length===0&&(K(!1),Q(!1))},[u.bulkActionCardIds,j]),Dt=Te&&y===0,Rt=y===-1;return t.jsxs(Li,{ref:at,children:[t.jsx(Xa,{title:Ra,showBackButton:!0,showMenuIcon:T==="medium-compact"||T==="small",onClickMenuIcon:ya,style:{zIndex:3},onBackClick:ba,rightSideComponent:Ta,isSearchOpen:bt,hideSearchBtn:X,scrollableContent:at,source:"ChargeCardListPage",backgroundColor:_a.colors.grey4}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?t.jsx(er,{fetchState:e.fetchState,styles:{margin:"auto"}}):t.jsxs(t.Fragment,{children:[X?null:t.jsxs(Ai,{windowSize:T,children:[Ba||Na?t.jsxs(qt,{windowSize:T,children:[t.jsxs(Zt,{children:[t.jsxs(Ht,{children:[t.jsxs(Xt,{children:[t.jsx(Kt,{children:O.creditCardBalance}),t.jsx(re,{amount:de,integerStyles:{...D.h5Regular.cssObject},decimalStyles:{...D.largeSemiBold.cssObject}})]}),t.jsxs($i,{children:[t.jsx(ve,{style:{textAlign:"end"},children:R.texts.limit}),t.jsx(re,{amount:e.creditAccount.limit,style:{justifyContent:"end"},integerStyles:D.largeRegular.cssObject,decimalStyles:D.smallRegular.cssObject})]})]}),t.jsx(Ri,{children:t.jsx(Bi,{style:{width:`${Fa}%`,borderRadius:a.sp1}})}),Xe&&!le&&se?t.jsx(it,{placement:"bottom",style:{color:p.heroDark,padding:`12px ${a.sp3}`},title:t.jsx(fi,{children:w.creditLimitIsRunningLow}),children:t.jsxs(Jt,{children:[t.jsx(re,{amount:e.creditAccount.available,integerStyles:D.largeMedium.cssObject,decimalStyles:D.smallMedium.cssObject}),t.jsx(Qt,{windowSize:T,children:R.texts.remaining}),t.jsx(xi,{children:t.jsx(bi,{})})]})}):t.jsxs(Jt,{children:[t.jsx(re,{amount:e.creditAccount.available,integerStyles:D.largeMedium.cssObject,decimalStyles:D.smallMedium.cssObject}),t.jsx(Qt,{windowSize:T,children:R.texts.remaining})]})]}),t.jsxs(Ii,{showPaymentInitiatedInfo:le,isEarlyPayEnabled:se,children:[le&&se?null:t.jsx(ve,{children:`${R.texts.limitReset} ${ce!=null?ce.format(je.visual.MMMDFormat):null}`}),v&&se&&(le?t.jsx("div",{children:t.jsx(it,{maxWidth:"242px",style:{padding:`12px ${a.sp3}`},title:t.jsxs(yi,{children:[t.jsx(Yt,{children:`${w.paymentOf} ${he("0,0.[00]",{amount:A.initiatedRepayments.amount,currencyCode:A.initiatedRepayments.currencyCode,currencySymbol:A.initiatedRepayments.currencySymbol})} ${w.madeOn} `}),t.jsx(wi,{children:A.initiatedRepaymentDate?.format(je.visual.MMMDFormat)}),R.strings.space,t.jsx(Yt,{children:Ft?w.isProcessingAndWillResetTheCreditLimitIn23BusinessDays:w.isProcessingAndWillUpdateTheCreditLimitIn23BusinessDays})]}),placement:"bottom",children:t.jsxs(Vt,{hasPointer:!1,children:[tt.length>0&&t.jsx(nt,{slideUpCount:tt.length,style:{alignItems:"flex-end",width:"auto"},children:tt.map((i,s)=>t.jsx(pi,{children:i},`card-payment-initiated-${s.toString()}`))}),t.jsx(gi,{})]})})}):Xe?t.jsx(it,{variant:"informative",arrow:!0,style:{top:a.sp2,left:"22px",position:"relative"},data:{preHeading:"URGENT",heading:w.creditLimitIsLow,description:w.transactionsMayBeDeclinedBecauseTheCreditLimitIsRunningLow,buttonText:w.payNow,tooltipContentStyle:{width:"240px",boxSizing:"content-box",gap:a.sp0},tooltipIntroductionStyle:{color:p.important},buttonStyle:{width:"31%"},onButtonClick:()=>{ze(!1),Ce("Toast Button","Pay Now")},showCloseButton:!0,onClose:i=>{i.preventDefault(),i.stopPropagation(),ze(!1)}},title:"informative",placement:"bottom-end",open:wa&&Ua,children:t.jsxs(Vt,{ref:rt,onClick:()=>{ze(!1),Ce("Text Button","Pay Now")},hasPointer:!0,children:[et.length>0&&t.jsx(nt,{slideUpCount:et.length,style:{alignItems:"flex-end",width:"auto"},children:et.map((i,s)=>t.jsx(mi,{isImportant:s===1,children:i},`card-pay-now-${s.toString()}`))}),t.jsx(Wt,{})]})}):de.amount>0?t.jsxs(Ci,{onClick:()=>Ce("Text Button","Pay Early"),children:[w.payEarly,t.jsx(Wt,{})]}):null)]})]}):x&&F?t.jsx(Ut,{cardType:"creditCard",header:b.listPage.spendSmarter,title:b.listPage.setUpText.replace("__cardType__",b.listPage.credit),creditLimit:ot("0,0",pe.amount,pe.currencySymbol),onCreateNowClick:gt}):De?t.jsx(_t,{cardPromoType:"credit",cardText:b.listPage.creditCards,header:b.listPage.getAccessTo,title:b.listPage.creditCards,subTitle:b.listPage.promoSubText.credit,slidingTextList:Gt("credit",Be,{amount:y,currencyCode:pe.currencyCode,currencySymbol:pe.currencySymbol}),onClick:Ct,status:Rt?"rejected":Dt?"under_review":void 0,statusMessage:Rt?b.listPage.status.rejectedMessage:Dt?b.listPage.status.underReviewMessage:void 0}):null,za||Oa?t.jsxs(qt,{windowSize:T,children:[t.jsxs(Zt,{children:[t.jsx(Ht,{children:t.jsxs(Xt,{children:[t.jsx(Kt,{children:O.debitCardSpend}),t.jsx(re,{amount:e.debitCardSummary?.currentMonthSpends,integerStyles:{...D.h5Regular.cssObject},decimalStyles:{...D.largeSemiBold.cssObject}})]})}),t.jsx(Ei,{children:$e!==0?t.jsxs(t.Fragment,{children:[$e<0?t.jsx(Mi,{}):t.jsx(Ti,{}),t.jsx(Fi,{hasNegativeValue:$e<0,children:ot("0,0.00",$e,e.debitCardSummary?.currentMonthSpends.currencySymbol)}),t.jsx(da,{children:O.compareToLastMonth})]}):null})]}),t.jsx(sa,{children:t.jsx(ve,{children:`${R.texts.limitReset} ${ce!=null?ce.format(je.visual.MMMDFormat):null}`})})]}):S&&$?t.jsx(Ut,{cardType:"debitCard",header:b.listPage.spendSmarter,title:b.listPage.setUpText.replace("__cardType__",b.listPage.debit),onCreateNowClick:gt}):S?t.jsx(_t,{cardPromoType:"debit",cardText:b.listPage.debitCards,header:b.listPage.getAccessTo,title:b.listPage.debitCards,subTitle:b.listPage.promoSubText.debit,slidingTextList:Gt("debit",Be),onClick:Ct}):null,t.jsxs(Pi,{windowSize:T,children:[Fe?t.jsxs(ki,{children:[t.jsx(ve,{style:{textAlign:"start"},children:O.totalCashback}),t.jsx(re,{amount:e.totalCashback,style:{justifyContent:"flex-start"},integerStyles:D.h5Regular.cssObject,decimalStyles:D.smallSemiBold.cssObject}),e.totalCashback.amount>0?t.jsx(vi,{windowSize:T,children:t.jsxs(Di,{windowSize:T,onClick:xa,"data-testid":st("total-cashback-info"),children:[t.jsx(ji,{children:O.overview}),t.jsx(zi,{})]})}):null]}):null,t.jsx(Oi,{children:t.jsx(_i,{})})]})]}),e.cards.length===0&&X===!0||Da?t.jsx(Ni,{children:t.jsx(jr,{companyLegalName:d,cards:e.cards,admins:h,hasZeniFinopsRoles:Se,cashbackRate:Be})}):t.jsxs(t.Fragment,{children:[_e&&o.cardId!=null&&C&&t.jsx(Nt,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>{fe(!1),P()},isChargeCardAdmin:!0,chargeCardsByCardId:{[o.cardId]:C},cardRecurringExpensesByCardId:{[o.cardId]:o.recurringExpenses},cardRecurringExpenseFetchState:o.recurringExpensesFetchState.fetchState,closeCardFetchState:o.closeChargeCardsFetchState.fetchState,onConfirmClick:Va,onDismissClick:()=>{fe(!1),P()},onRemoveCardClick:()=>{}}),Oe&&o.cardId!=null&&C&&t.jsx(Ot,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>{be(!1),P()},isChargeCardAdmin:!0,chargeCardsByCardId:{[o.cardId]:C},cardRecurringExpensesByCardId:{[o.cardId]:o.recurringExpenses},cardRecurringExpenseFetchState:o.recurringExpensesFetchState.fetchState,lockCardFetchState:o.lockChargeCardsFetchState.fetchState,onConfirmClick:Wa,onDismissClick:()=>{be(!1),P()},onRemoveCardClick:()=>{}}),Ia&&u.bulkActionCardIds.length>0&&t.jsx(Nt,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>{Q(!1),j([])},isChargeCardAdmin:!0,chargeCardsByCardId:te.chargeCardsByCardId,cardRecurringExpensesByCardId:te.cardRecurringExpensesByCardId,cardRecurringExpenseFetchState:te.fetchState,closeCardFetchState:e.closeChargeCardsFetchState.fetchState,onConfirmClick:Ga,onDismissClick:()=>{Q(!1),j([])},onRemoveCardClick:Tt}),$a&&u.bulkActionCardIds.length>0&&t.jsx(Ot,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>{K(!1),j([])},isChargeCardAdmin:!0,chargeCardsByCardId:te.chargeCardsByCardId,cardRecurringExpensesByCardId:te.cardRecurringExpensesByCardId,cardRecurringExpenseFetchState:te.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:Ya,onDismissClick:()=>{K(!1),j([])},onRemoveCardClick:Tt}),Ue&&o.cardId!=null&&C&&t.jsx(Ar,{currentCardName:C.cardName,renameFetchState:o.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>{Ve(!1),P()},onSubmitClick:i=>{o.cardId!=null&&pa(o.cardId,i)}}),We&&o.cardId!=null&&C&&t.jsx(Pr,{controllerEmails:J,isChargeCardFeatureEnabled:x,isDebitCardFeatureEnabled:S,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:F,productInformation:ke,cashbackInformation:ee,creditAccountInformation:ye,debitAccountInformation:we,cardDetail:C,depositAccountLimitFetchState:o.depositAccountLimitFetchState.fetchState,creditAccount:g,creditAccountRepayment:A,signedInUser:Re,isDebitCard:C.type.code.includes("debit"),classListFetchState:"Not-Started",currentLimitAmount:C.limit,currentSpentAmount:C.balance,maxLimitAmount:C.type.code.includes("debit")?o.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:g.limit,isDisabled:C.type.code.includes("debit")&&o.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:o.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>{Ge(!1),P()},onSubmitClick:i=>{if(o.cardId!=null){const s={amount:i,currencyCode:C.limit.currencyCode,currencySymbol:C.limit.currencySymbol};oe(o.cardId,s,C.creditLimitFrequency,he("0,0.[00]",s))}},recommendations:C.recommendations}),ja&&M.length>0&&t.jsx(ai,{currentSpentAmount:La??{amount:0,currencyCode:M[0].limit.currencyCode,currencySymbol:M[0].limit.currencySymbol},maxLimitAmountForCreditCard:e.creditAccount.limit,maxLimitAmountForDebitCard:Aa,hasCreditCard:u.hasCreditCards,hasDebitCard:u.hasDebitCards,signedInUser:Re,isDisabled:u.hasDebitCards&&z.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardsSpendLimitFetchState.fetchState,onCancelClick:()=>{xe(!1),j([])},onSubmitClick:i=>{const s={amount:i,currencyCode:M[0].limit.currencyCode,currencySymbol:M[0].limit.currencySymbol};G(u.bulkActionCardIds,s,M[0].creditLimitFrequency)}}),t.jsx($r,{cardsSelectedForBulkAction:u.bulkActionCardIds,isBulkActionAllowed:v,firstSelectedCardStatus:va,bulkSubmissionLimit:Ir,removeAllCardsFromBulkActionList:()=>j([]),updateBulkActionList:j,onProceedForBulkActionClick:Pa,onBulkLockClick:qa,onBulkCloseClick:Ja,setShowBulkChangeSpendLimitPopup:xe,depositAccountListWithDebitCardIssued:z,setCardIdForRowAction:Ne,setActionTypeForRowAction:ft,cashbackInformation:ee,creditAccountInformation:ye,debitAccountInformation:we,productInformation:ke,controllerEmails:J,isChargeCardFeatureEnabled:x,isCardControlsEnabled:ne,isDebitCardFeatureEnabled:S,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:F,creditAccount:g,creditAccountRepayment:A,cardList:e.cards,showViewForCardUser:!1,signedInUser:Re,fetchState:e.fetchState,revokeChargeCardsInviteFetchState:e.revokeChargeCardsInviteFetchState.fetchState,unlockChargeCardsFetchState:e.unlockChargeCardsFetchState.fetchState,onReloadCards:fa,onChargeCardRowClick:ma,searchText:l,receiptBotEmail:e.chargeCardConfig.receiptBotEmail,uiState:ca,resendInviteId:e?.resendCardInvite?.cardId,onColumnSortConfigChanged:Sa,onChargeCardResendInviteClick:Ca,rowActionView:o})]})]})]})},mi=r(ta)`
|
|
209
|
+
`,me={contentContainerMargin:new W(_[3],_[4],_[8]),infoSubheadingTextMarginTop:new W(_[0],_[0]),cardsMinWidth:new W(343,353)},hi={remainingText:new tr("largeRegular","largeRegular")},{spendManagement:{chargeCard:{payEarly:w,cardList:O,chargeCardsPromo:b}},common:R,dateFormat:je}=Ee.getLocalizedStrings(),ho=({chargeCardListView:e,searchText:l,admins:h,companyLegalName:d,onFetchChargeCardsRecurringExpenses:n,onFetchDepositAccountLimit:m,onCloseChargeCard:E,onCloseChargeCardList:k,onLockChargeCard:U,onLockChargeCardList:B,onUnlockChargeCardList:L,updateChargeCardListSpendLimit:G,onUpdateSpendLimit:oe,isCardControlsEnabled:ne,isCashbackFeatureEnabled:Fe,creditCardPayNowThreshold:Me,isChargeCardFeatureEnabled:x,isCompanyInterestedInChargeCard:Te,isCreditCardProductVisibleForExpressInterest:De,isDebitCardFeatureEnabled:S,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:F,companyChargeCardInfoCreditAccountLimit:y,controllerEmails:q,onRevokeChargeCardList:ht,depositAccountListWithDebitCardIssued:z,chargeCardCashbackDetailState:I,uiState:ca,signedInUser:Re,creditLimit:pe,cashbackRate:Be,onSearchTextChanged:la,onClickSetupIcon:ua,isEarlyPayEnabled:se,onClickStatementsIcon:ha,onChargeCardRowClick:ma,updateChargeCardName:pa,onChargeCardResendInviteClick:Ca,onChargeCardRevokeInviteClick:mt,onUnlockChargeCard:pt,onIssueCardClick:ga,onBackClick:ba,onReloadCards:fa,onTotalCashbackClick:xa,onColumnSortConfigChanged:Sa,onClickMenuIcon:ya,onPromoCardClick:Ct,onCreateNowClick:gt,showPayNowInfoTooltip:wa,navigateToCreditCardPaymentPage:Ce,shouldShowPayNowInfoTooltip:ze,rowActionView:o,bulkActionView:u,onSetRowActionCardId:Ne,onSetBulkActionCardIds:j})=>{const ge=Qa().analytics,[bt,ka]=c.useState(!1),[Oe,be]=c.useState(!1),[_e,fe]=c.useState(!1),[$a,K]=c.useState(!1),[Ia,Q]=c.useState(!1),[ja,xe]=c.useState(!1),[Ue,Ve]=c.useState(!1),[We,Ge]=c.useState(!1),[Ye,ft]=c.useState(void 0),va=u.chargeCards[0]?.status.code,{creditAccount:g,creditAccountRepayment:A}=e,P=c.useCallback(()=>{Ne(void 0),ft(void 0)},[Ne]),M=u.chargeCards,La=c.useMemo(()=>M.length===0?void 0:M.reduce((i,s)=>s.balance.amount>i.balance.amount?s:i,M[0]).balance,[M]),Aa=c.useMemo(()=>{const i=M.filter(f=>f.type.code.includes("debit"));if(i.length===0)return;const s=i.map(f=>z.depositAccounts.find(ae=>ae.id===f.connectedAccountId)?.cardLimits.dailyCardTransactionLimit).filter(f=>f!==void 0);return s.length===0?void 0:s.reduce((f,ae)=>ae.amount<f.amount?ae:f)},[M,z.depositAccounts]),xt=N(e.unlockChargeCardsFetchState.fetchState),St=N(e.revokeChargeCardsInviteFetchState.fetchState),yt=N(e.lockChargeCardsFetchState.fetchState),wt=N(e.closeChargeCardsFetchState.fetchState),kt=N(e.updateChargeCardsSpendLimitFetchState.fetchState);c.useEffect(()=>{const i=xt==="In-Progress"&&e.unlockChargeCardsFetchState.fetchState==="Completed",s=St==="In-Progress"&&e.revokeChargeCardsInviteFetchState.fetchState==="Completed",f=yt==="In-Progress"&&e.lockChargeCardsFetchState.fetchState==="Completed",ae=wt==="In-Progress"&&e.closeChargeCardsFetchState.fetchState==="Completed",Ka=kt==="In-Progress"&&e.updateChargeCardsSpendLimitFetchState.fetchState==="Completed";(i||s)&&j([]),f&&(K(!1),j([])),ae&&(Q(!1),j([])),Ka&&(xe(!1),j([]))},[e.unlockChargeCardsFetchState.fetchState,e.revokeChargeCardsInviteFetchState.fetchState,e.lockChargeCardsFetchState.fetchState,e.closeChargeCardsFetchState.fetchState,e.updateChargeCardsSpendLimitFetchState.fetchState,xt,St,yt,wt,kt,j]);const Z=o.cardId!=null?o.unlockChargeCardsFetchState.fetchState:void 0,$t=N(Z),Je=o.cardId!=null?o.updateChargeCardLimitFetchState.fetchState:void 0,It=N(Je),qe=o.cardId!=null?o.updateChargeCardNameFetchState.fetchState:void 0,jt=N(qe),Ke=o.cardId!=null?o.lockChargeCardsFetchState.fetchState:void 0,vt=N(Ke),Qe=o.cardId!=null?o.closeChargeCardsFetchState.fetchState:void 0,Lt=N(Qe),H=o.cardId!=null?o.revokeChargeCardFetchState.fetchState:void 0,At=N(H);c.useEffect(()=>{o.cardId!=null&&$t==="In-Progress"&&Z==="Completed"?P():o.cardId!=null&&It==="In-Progress"&&Je==="Completed"?(Ge(!1),P()):o.cardId!=null&&jt==="In-Progress"&&qe==="Completed"?(Ve(!1),P()):o.cardId!=null&&vt==="In-Progress"&&Ke==="Completed"?(be(!1),P()):o.cardId!=null&&Lt==="In-Progress"&&Qe==="Completed"?(fe(!1),P()):o.cardId!=null&&At==="In-Progress"&&H==="Completed"&&P()},[o.cardId,Z,Je,qe,Ke,Qe,H,$t,jt,It,vt,Lt,At,P]);const Pa=c.useCallback(i=>{switch(i){case"close":n(u.bulkActionCardIds),Q(!0);break;case"lock":n(u.bulkActionCardIds),K(!0);break;case"unlock":L(u.bulkActionCardIds);break;case"update_limit":xe(!0);break;case"revoke_invite":ht(u.bulkActionCardIds);break}},[u.bulkActionCardIds,n,ht,L]),C=o.chargeCard;c.useEffect(()=>{if(!(Ye===void 0||o.cardId===void 0||C===void 0))switch(Ye){case ie.CLOSE:_e||(n([o.cardId]),fe(!0));break;case ie.LOCK:Oe||(n([o.cardId]),be(!0));break;case ie.UNLOCK:Z!=="In-Progress"&&Z!=="Completed"&&pt(o.cardId);break;case ie.REVOKE_INVITE:H!=="In-Progress"&&H!=="Completed"&&mt(o.cardId);break;case ie.RENAME:Ue||Ve(!0);break;case ie.UPDATE_SPEND_LIMIT:We||(C.type.code.includes("debit")&&o.depositAccountLimitFetchState.fetchState!=="Completed"&&m(C.connectedAccountId,o.cardId),Ge(!0));break}},[Ye,o.cardId,We,Ue,_e,Oe,Z,H,n,m,pt,mt]);const Ze=Za(),X=!!Ze.loggedInUserRole.includes("charge_card_user"),Se=Ha(Ze),v=xr(Ze.loggedInUserRoleMap),ee=c.useMemo(()=>v===!0?{creditCardCashbackOffer:`${I.cashbackAnalytics.creditCardCashbackOffer}%`,debitCardCashbackOffer:`${I.cashbackAnalytics.debitCardCashbackOffer}%`,totalEarnedCashback:V(I.cashbackSummary.cashbackEarned.amount),redeemedCashback:V(I.cashbackSummary.cashbackRedeemed.amount),availableCashback:V(I.cashbackSummary.cashbackAvailable.amount),creditCardCashbackRedemptionMode:I.cashbackAnalytics.creditCardCashbackRedemptionMode,debitCardCashbackRedemptionMode:I.cashbackAnalytics.debitCardCashbackRedemptionMode}:void 0,[v,I.cashbackAnalytics.creditCardCashbackOffer,I.cashbackAnalytics.debitCardCashbackOffer,I.cashbackSummary.cashbackEarned.amount,I.cashbackSummary.cashbackRedeemed.amount,I.cashbackSummary.cashbackAvailable.amount,I.cashbackAnalytics.creditCardCashbackRedemptionMode,I.cashbackAnalytics.debitCardCashbackRedemptionMode]),ye=c.useMemo(()=>x&&F&&v===!0?{creditAccountId:g.id,creditAccountLimit:V(g.limit.amount),creditAccountAvailableAmount:V(g.available.amount),creditAccountSpentAmount:V(g.balance.amount+g.hold.amount),creditAccountStatus:g.status,outstandingBalance:V(A.remainingAmountDue.amount)}:void 0,[x,F,v,g.id,g.limit.amount,g.available.amount,g.balance.amount,g.hold.amount,g.status,A.remainingAmountDue.amount]),we=c.useMemo(()=>S&&$?{debitAccountId:z.depositAccounts.map(i=>i.id),debitAccountName:z.depositAccounts.map(i=>i.accountName),debitAccountBalance:z.depositAccounts.map(i=>V(i.accountBalance.available.amount)),debitCardsSpend:V(e.debitCardSummary?.currentMonthSpends?.amount??0),debitAccountStatus:z.depositAccounts.map(i=>i.accountStatus)}:void 0,[S,$,z.depositAccounts,e.debitCardSummary?.currentMonthSpends?.amount]),ke={isCreditCardOffered:x,isDebitCardOffered:S,isDebitCardEnabled:$,isCreditCardEnabled:F},Ea=i=>{ka(i),i===!0&&(ge.trackCardsListPageClicked("search"),(!x||g.fetchState==="Completed"&&A.fetchState==="Completed")&&(!(S&&$)||z.fetchState==="Completed")&&ee!=null&&ge.trackCardsCardListSearchClick(q,ke,ee,ye,we))},T=Pe(),Pt=Se&&!v,Et=e.creditAccount.balance.amount+e.creditAccount.hold.amount,de={amount:Et,currencyCode:e.creditAccount.balance.currencyCode,currencySymbol:e.creditAccount.balance.currencySymbol},He=Math.round(de.amount*100/e.creditAccount.limit.amount),Fa=isNaN(He)?0:Et!==0&&He===0?1:He,ce=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate,Xe=v&&de.amount>Me*e.creditAccount.limit.amount/100,le=ce!=null&&A.initiatedRepayments.amount>0,Ma={entity:"charge_cards",showNewButtonOnNavbar:v,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:v?O.newBtnLabel:R.strings.empty,hideSearchBtn:X,searchTextBoxStyle:{right:Pt?a.sp4:"96px"},moreIconContainerStyle:{paddingRight:Pt?a.sp0:a.sp4},isSearchOpen:bt,searchPlaceHolder:O.searchPlaceHolder,searchText:l,showSettingsIcon:!X,showSettingsIconOnNavbar:v,showStatementButtonOnNavbar:x&&F,showPayEarlyButtonOnNavbar:se&&v&&de.amount>0&&!le&&!Xe,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,analytics:ge,onSearchOpen:Ea,onSearchTextChanged:la,onClickSetupIcon:ua,onClickStatementsIcon:ha,downloadState:"Not-Started",onNewButtonClick:ga,onClickPayEarlyIcon:()=>Ce("More Button","Pay Early"),onMenuOpen:()=>{(!x||g.fetchState==="Completed"&&A.fetchState==="Completed")&&(!(S&&$)||z.fetchState==="Completed")&&ee!=null&&ge.trackCardsCardListMoreMenuClick(q,ke,ee,ye,we)},filters:{categoryCombinationOperator:"AND",categories:[]}},Ta=t.jsx(kr,{spendManagementSectionProps:Ma}),Da=e.cards.length===0?!1:X&&Sr(e.cards),Ra=e.fetchState==="Completed"?Si({isChargeCardFeatureEnabled:x,isChargeCardSetupEnabled:F,isDebitCardFeatureEnabled:S,isDebitCardSetupEnabled:$}):"",$e=e.debitCardSummary!=null?e.debitCardSummary.currentMonthSpends.amount-e.debitCardSummary.lastCompletedMonthSpends.amount:0,Ba=x&&F&&e.hasCreditCard,za=S&&$&&e.hasDebitCard,Na=x&&F&&Se&&!v,Oa=S&&$&&Se&&!v,Ie=e.chargeCardConfig.rePaymentInfo?.rePaymentDueDate?.diff(zt(),"days")??0,et=[w.payNow,Ie>0&&Ie<11?`${w.billDueIn} ${Ie} ${Ie===1?R.timeStrings.day:R.timeStrings.days}`:w.creditLimitLow,w.payNow],Ft=A.initiatedRepayments.amount===g.balance.amount+g.hold.amount,tt=[w.paymentInitiated,`${O.header.limit} ${Ft?R.resets:R.updates} ${R.by} ${yr(wr(A.initiatedRepaymentDate?.toDate()??zt().toDate(),[0,6],3).toDateString()).format(je.visual.MMMDFormat)}`,w.paymentInitiated],at=c.useRef(null),rt=c.useRef(null),_a=ea(),[Ua,Mt]=c.useState(!0);c.useEffect(()=>{const i=()=>{rt.current&&(rt.current.getBoundingClientRect().top<(T==="small"?68:40)?Mt(!1):Mt(!0))};i();const s=()=>{i()},f=at.current;return f&&f.addEventListener("scroll",s),window.addEventListener("scroll",s),()=>{f&&f.removeEventListener("scroll",s),window.removeEventListener("scroll",s)}},[T]);const Va=i=>{const s=i.reasonType==="other"?i.reason:i.reasonType;o.cardId!=null&&E(o.cardId,s)},Wa=i=>{const s=i.reasonType==="other"?i.reason:i.reasonType;o.cardId!=null&&U(o.cardId,s)},Ga=i=>{const s=i.reasonType==="other"?i.reason:i.reasonType;k(u.bulkActionCardIds,s)},Ya=i=>{const s=i.reasonType==="other"?i.reason:i.reasonType;B(u.bulkActionCardIds,s)},te=c.useMemo(()=>{const i={};return u.chargeCards.forEach(s=>{i[s.id]=s}),{chargeCardsByCardId:i,cardRecurringExpensesByCardId:u.recurringExpensesByCardId,fetchState:u.recurringExpensesFetchState.fetchState}},[u]),Ja=c.useCallback(()=>{n(u.bulkActionCardIds),K(!0)},[u.bulkActionCardIds,n]),qa=c.useCallback(()=>{n(u.bulkActionCardIds),Q(!0)},[u.bulkActionCardIds,n]),Tt=c.useCallback(i=>{const s=u.bulkActionCardIds.filter(f=>f!==i);j(s),s.length===0&&(K(!1),Q(!1))},[u.bulkActionCardIds,j]),Dt=Te&&y===0,Rt=y===-1;return t.jsxs(Li,{ref:at,children:[t.jsx(Xa,{title:Ra,showBackButton:!0,showMenuIcon:T==="medium-compact"||T==="small",onClickMenuIcon:ya,style:{zIndex:3},onBackClick:ba,rightSideComponent:Ta,isSearchOpen:bt,hideSearchBtn:X,scrollableContent:at,source:"ChargeCardListPage",backgroundColor:_a.colors.grey4}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?t.jsx(er,{fetchState:e.fetchState,styles:{margin:"auto"}}):t.jsxs(t.Fragment,{children:[X?null:t.jsxs(Ai,{windowSize:T,children:[Ba||Na?t.jsxs(Jt,{windowSize:T,children:[t.jsxs(Zt,{children:[t.jsxs(Ht,{children:[t.jsxs(Xt,{children:[t.jsx(Kt,{children:O.creditCardBalance}),t.jsx(re,{amount:de,integerStyles:{...D.h5Regular.cssObject},decimalStyles:{...D.largeSemiBold.cssObject}})]}),t.jsxs($i,{children:[t.jsx(ve,{style:{textAlign:"end"},children:R.texts.limit}),t.jsx(re,{amount:e.creditAccount.limit,style:{justifyContent:"end"},integerStyles:D.largeRegular.cssObject,decimalStyles:D.smallRegular.cssObject})]})]}),t.jsx(Ri,{children:t.jsx(Bi,{style:{width:`${Fa}%`,borderRadius:a.sp1}})}),Xe&&!le&&se?t.jsx(it,{placement:"bottom",style:{color:p.heroDark,padding:`12px ${a.sp3}`},title:t.jsx(fi,{children:w.creditLimitIsRunningLow}),children:t.jsxs(qt,{children:[t.jsx(re,{amount:e.creditAccount.available,integerStyles:D.largeMedium.cssObject,decimalStyles:D.smallMedium.cssObject}),t.jsx(Qt,{windowSize:T,children:R.texts.remaining}),t.jsx(xi,{children:t.jsx(bi,{})})]})}):t.jsxs(qt,{children:[t.jsx(re,{amount:e.creditAccount.available,integerStyles:D.largeMedium.cssObject,decimalStyles:D.smallMedium.cssObject}),t.jsx(Qt,{windowSize:T,children:R.texts.remaining})]})]}),t.jsxs(Ii,{showPaymentInitiatedInfo:le,isEarlyPayEnabled:se,children:[le&&se?null:t.jsx(ve,{children:`${R.texts.limitReset} ${ce!=null?ce.format(je.visual.MMMDFormat):null}`}),v&&se&&(le?t.jsx("div",{children:t.jsx(it,{maxWidth:"242px",style:{padding:`12px ${a.sp3}`},title:t.jsxs(yi,{children:[t.jsx(Yt,{children:`${w.paymentOf} ${he("0,0.[00]",{amount:A.initiatedRepayments.amount,currencyCode:A.initiatedRepayments.currencyCode,currencySymbol:A.initiatedRepayments.currencySymbol})} ${w.madeOn} `}),t.jsx(wi,{children:A.initiatedRepaymentDate?.format(je.visual.MMMDFormat)}),R.strings.space,t.jsx(Yt,{children:Ft?w.isProcessingAndWillResetTheCreditLimitIn23BusinessDays:w.isProcessingAndWillUpdateTheCreditLimitIn23BusinessDays})]}),placement:"bottom",children:t.jsxs(Vt,{hasPointer:!1,children:[tt.length>0&&t.jsx(nt,{slideUpCount:tt.length,style:{alignItems:"flex-end",width:"auto"},children:tt.map((i,s)=>t.jsx(pi,{children:i},`card-payment-initiated-${s.toString()}`))}),t.jsx(gi,{})]})})}):Xe?t.jsx(it,{variant:"informative",arrow:!0,style:{top:a.sp2,left:"22px",position:"relative"},data:{preHeading:"URGENT",heading:w.creditLimitIsLow,description:w.transactionsMayBeDeclinedBecauseTheCreditLimitIsRunningLow,buttonText:w.payNow,tooltipContentStyle:{width:"240px",boxSizing:"content-box",gap:a.sp0},tooltipIntroductionStyle:{color:p.important},buttonStyle:{width:"31%"},onButtonClick:()=>{ze(!1),Ce("Toast Button","Pay Now")},showCloseButton:!0,onClose:i=>{i.preventDefault(),i.stopPropagation(),ze(!1)}},title:"informative",placement:"bottom-end",open:wa&&Ua,children:t.jsxs(Vt,{ref:rt,onClick:()=>{ze(!1),Ce("Text Button","Pay Now")},hasPointer:!0,children:[et.length>0&&t.jsx(nt,{slideUpCount:et.length,style:{alignItems:"flex-end",width:"auto"},children:et.map((i,s)=>t.jsx(mi,{isImportant:s===1,children:i},`card-pay-now-${s.toString()}`))}),t.jsx(Wt,{})]})}):de.amount>0?t.jsxs(Ci,{onClick:()=>Ce("Text Button","Pay Early"),children:[w.payEarly,t.jsx(Wt,{})]}):null)]})]}):x&&F?t.jsx(Ut,{cardType:"creditCard",header:b.listPage.spendSmarter,title:b.listPage.setUpText.replace("__cardType__",b.listPage.credit),creditLimit:ot("0,0",pe.amount,pe.currencySymbol),onCreateNowClick:gt}):De?t.jsx(_t,{cardPromoType:"credit",cardText:b.listPage.creditCards,header:b.listPage.getAccessTo,title:b.listPage.creditCards,subTitle:b.listPage.promoSubText.credit,slidingTextList:Gt("credit",Be,{amount:y,currencyCode:pe.currencyCode,currencySymbol:pe.currencySymbol}),onClick:Ct,status:Rt?"rejected":Dt?"under_review":void 0,statusMessage:Rt?b.listPage.status.rejectedMessage:Dt?b.listPage.status.underReviewMessage:void 0}):null,za||Oa?t.jsxs(Jt,{windowSize:T,children:[t.jsxs(Zt,{children:[t.jsx(Ht,{children:t.jsxs(Xt,{children:[t.jsx(Kt,{children:O.debitCardSpend}),t.jsx(re,{amount:e.debitCardSummary?.currentMonthSpends,integerStyles:{...D.h5Regular.cssObject},decimalStyles:{...D.largeSemiBold.cssObject}})]})}),t.jsx(Ei,{children:$e!==0?t.jsxs(t.Fragment,{children:[$e<0?t.jsx(Mi,{}):t.jsx(Ti,{}),t.jsx(Fi,{hasNegativeValue:$e<0,children:ot("0,0.00",$e,e.debitCardSummary?.currentMonthSpends.currencySymbol)}),t.jsx(da,{children:O.compareToLastMonth})]}):null})]}),t.jsx(sa,{children:t.jsx(ve,{children:`${R.texts.limitReset} ${ce!=null?ce.format(je.visual.MMMDFormat):null}`})})]}):S&&$?t.jsx(Ut,{cardType:"debitCard",header:b.listPage.spendSmarter,title:b.listPage.setUpText.replace("__cardType__",b.listPage.debit),onCreateNowClick:gt}):S?t.jsx(_t,{cardPromoType:"debit",cardText:b.listPage.debitCards,header:b.listPage.getAccessTo,title:b.listPage.debitCards,subTitle:b.listPage.promoSubText.debit,slidingTextList:Gt("debit",Be),onClick:Ct}):null,t.jsxs(Pi,{windowSize:T,children:[Fe?t.jsxs(ki,{children:[t.jsx(ve,{style:{textAlign:"start"},children:O.totalCashback}),t.jsx(re,{amount:e.totalCashback,style:{justifyContent:"flex-start"},integerStyles:D.h5Regular.cssObject,decimalStyles:D.smallSemiBold.cssObject}),e.totalCashback.amount>0?t.jsx(vi,{windowSize:T,children:t.jsxs(Di,{windowSize:T,onClick:xa,"data-testid":st("total-cashback-info"),children:[t.jsx(ji,{children:O.overview}),t.jsx(zi,{})]})}):null]}):null,t.jsx(Oi,{children:t.jsx(_i,{})})]})]}),e.cards.length===0&&X===!0||Da?t.jsx(Ni,{children:t.jsx(jr,{companyLegalName:d,cards:e.cards,admins:h,hasZeniFinopsRoles:Se,cashbackRate:Be})}):t.jsxs(t.Fragment,{children:[_e&&o.cardId!=null&&C&&t.jsx(Nt,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>{fe(!1),P()},isChargeCardAdmin:!0,chargeCardsByCardId:{[o.cardId]:C},cardRecurringExpensesByCardId:{[o.cardId]:o.recurringExpenses},cardRecurringExpenseFetchState:o.recurringExpensesFetchState.fetchState,closeCardFetchState:o.closeChargeCardsFetchState.fetchState,onConfirmClick:Va,onDismissClick:()=>{fe(!1),P()},onRemoveCardClick:()=>{}}),Oe&&o.cardId!=null&&C&&t.jsx(Ot,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>{be(!1),P()},isChargeCardAdmin:!0,chargeCardsByCardId:{[o.cardId]:C},cardRecurringExpensesByCardId:{[o.cardId]:o.recurringExpenses},cardRecurringExpenseFetchState:o.recurringExpensesFetchState.fetchState,lockCardFetchState:o.lockChargeCardsFetchState.fetchState,onConfirmClick:Wa,onDismissClick:()=>{be(!1),P()},onRemoveCardClick:()=>{}}),Ia&&u.bulkActionCardIds.length>0&&t.jsx(Nt,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>{Q(!1),j([])},isChargeCardAdmin:!0,chargeCardsByCardId:te.chargeCardsByCardId,cardRecurringExpensesByCardId:te.cardRecurringExpensesByCardId,cardRecurringExpenseFetchState:te.fetchState,closeCardFetchState:e.closeChargeCardsFetchState.fetchState,onConfirmClick:Ga,onDismissClick:()=>{Q(!1),j([])},onRemoveCardClick:Tt}),$a&&u.bulkActionCardIds.length>0&&t.jsx(Ot,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>{K(!1),j([])},isChargeCardAdmin:!0,chargeCardsByCardId:te.chargeCardsByCardId,cardRecurringExpensesByCardId:te.cardRecurringExpensesByCardId,cardRecurringExpenseFetchState:te.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:Ya,onDismissClick:()=>{K(!1),j([])},onRemoveCardClick:Tt}),Ue&&o.cardId!=null&&C&&t.jsx(Ar,{currentCardName:C.cardName,renameFetchState:o.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>{Ve(!1),P()},onSubmitClick:i=>{o.cardId!=null&&pa(o.cardId,i)}}),We&&o.cardId!=null&&C&&t.jsx(Pr,{controllerEmails:q,isChargeCardFeatureEnabled:x,isDebitCardFeatureEnabled:S,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:F,productInformation:ke,cashbackInformation:ee,creditAccountInformation:ye,debitAccountInformation:we,cardDetail:C,depositAccountLimitFetchState:o.depositAccountLimitFetchState.fetchState,creditAccount:g,creditAccountRepayment:A,signedInUser:Re,isDebitCard:C.type.code.includes("debit"),classListFetchState:"Not-Started",currentLimitAmount:C.limit,currentSpentAmount:C.balance,maxLimitAmount:C.type.code.includes("debit")?o.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:g.limit,isDisabled:C.type.code.includes("debit")&&o.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:o.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>{Ge(!1),P()},onSubmitClick:i=>{if(o.cardId!=null){const s={amount:i,currencyCode:C.limit.currencyCode,currencySymbol:C.limit.currencySymbol};oe(o.cardId,s,C.creditLimitFrequency,he("0,0.[00]",s))}},recommendations:C.recommendations}),ja&&M.length>0&&t.jsx(ai,{currentSpentAmount:La??{amount:0,currencyCode:M[0].limit.currencyCode,currencySymbol:M[0].limit.currencySymbol},maxLimitAmountForCreditCard:e.creditAccount.limit,maxLimitAmountForDebitCard:Aa,hasCreditCard:u.hasCreditCards,hasDebitCard:u.hasDebitCards,signedInUser:Re,isDisabled:u.hasDebitCards&&z.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardsSpendLimitFetchState.fetchState,onCancelClick:()=>{xe(!1),j([])},onSubmitClick:i=>{const s={amount:i,currencyCode:M[0].limit.currencyCode,currencySymbol:M[0].limit.currencySymbol};G(u.bulkActionCardIds,s,M[0].creditLimitFrequency)}}),t.jsx($r,{cardsSelectedForBulkAction:u.bulkActionCardIds,isBulkActionAllowed:v,firstSelectedCardStatus:va,bulkSubmissionLimit:Ir,removeAllCardsFromBulkActionList:()=>j([]),updateBulkActionList:j,onProceedForBulkActionClick:Pa,onBulkLockClick:Ja,onBulkCloseClick:qa,setShowBulkChangeSpendLimitPopup:xe,depositAccountListWithDebitCardIssued:z,setCardIdForRowAction:Ne,setActionTypeForRowAction:ft,cashbackInformation:ee,creditAccountInformation:ye,debitAccountInformation:we,productInformation:ke,controllerEmails:q,isChargeCardFeatureEnabled:x,isCardControlsEnabled:ne,isDebitCardFeatureEnabled:S,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:F,creditAccount:g,creditAccountRepayment:A,cardList:e.cards,showViewForCardUser:!1,signedInUser:Re,fetchState:e.fetchState,revokeChargeCardsInviteFetchState:e.revokeChargeCardsInviteFetchState.fetchState,unlockChargeCardsFetchState:e.unlockChargeCardsFetchState.fetchState,onReloadCards:fa,onChargeCardRowClick:ma,searchText:l,receiptBotEmail:e.chargeCardConfig.receiptBotEmail,uiState:ca,resendInviteId:e?.resendCardInvite?.cardId,onColumnSortConfigChanged:Sa,onChargeCardResendInviteClick:Ca,rowActionView:o})]})]})]})},mi=r(ta)`
|
|
210
210
|
color: ${e=>e.isImportant?p.important:e.theme.colors.primary};
|
|
211
211
|
text-align: end;
|
|
212
212
|
`,pi=r(ta)`
|
|
@@ -219,7 +219,7 @@ import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea
|
|
|
219
219
|
height: 21px;
|
|
220
220
|
overflow: hidden;
|
|
221
221
|
cursor: ${e=>e.hasPointer?"pointer":"default"};
|
|
222
|
-
`,Ci=r(
|
|
222
|
+
`,Ci=r(J)`
|
|
223
223
|
color: ${e=>e.theme.colors.primary};
|
|
224
224
|
cursor: pointer;
|
|
225
225
|
display: flex;
|
|
@@ -237,7 +237,7 @@ import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea
|
|
|
237
237
|
color: ${p.important};
|
|
238
238
|
width: ${a.sp3};
|
|
239
239
|
height: ${a.sp3};
|
|
240
|
-
`,fi=r(
|
|
240
|
+
`,fi=r(J)`
|
|
241
241
|
color: ${p.heroDark};
|
|
242
242
|
white-space: pre-line;
|
|
243
243
|
text-align: left;
|
|
@@ -304,7 +304,7 @@ import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea
|
|
|
304
304
|
-ms-overflow-style: none;
|
|
305
305
|
scrollbar-width: none;
|
|
306
306
|
`}
|
|
307
|
-
`,
|
|
307
|
+
`,Jt=r.div`
|
|
308
308
|
display: flex;
|
|
309
309
|
flex-grow: 1;
|
|
310
310
|
flex-direction: column;
|
|
@@ -337,17 +337,17 @@ import{a7 as Qa,aN as N,av as Za,fP as Ha,iG as V,Q as Pe,F as Ee,o as a,d as ea
|
|
|
337
337
|
height: 188px;
|
|
338
338
|
flex-grow: 1;
|
|
339
339
|
flex-basis: 33.33%;
|
|
340
|
-
`,
|
|
340
|
+
`,qt=r.div`
|
|
341
341
|
display: flex;
|
|
342
342
|
align-items: baseline;
|
|
343
343
|
gap: ${a.sp2};
|
|
344
344
|
align-items: center;
|
|
345
|
-
`,Kt=r(
|
|
345
|
+
`,Kt=r(J)`
|
|
346
346
|
color: ${e=>e.theme.colors.hero};
|
|
347
347
|
`,Qt=r(ar)`
|
|
348
348
|
color: ${e=>e.theme.colors.primary};
|
|
349
349
|
${e=>`${hi.remainingText.style(e.windowSize)}`};
|
|
350
|
-
`,ve=r(
|
|
350
|
+
`,ve=r(J)`
|
|
351
351
|
color: ${e=>e.theme.colors.hero};
|
|
352
352
|
white-space: nowrap;
|
|
353
353
|
`,Ei=r.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as ze,gR as hi,iH as pi,iI as ui,iJ as mi,aO as gi,o as i,aK as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iK as fi,iL as Si,bQ as Se,bL as ki,aQ as yi,y as C,eC as vi,b8 as $i,iM as ji,aR as bi,s as Ii,ag as ee,gT as Li,al as J,ak as Q,u as p,cO as zi,cX as Ai,iN as Fi,iO as Pi,B as ft,bV as St,iP as kt,iQ as Ri,bO as Bi,cv as Je,iR as yt,dw as Di,dx as q,aL as ce,cs as vt,A as $t,iS as _i,cy as Ei,iz as Qe,bI as jt,bJ as bt,iT as Oi,iU as Ti,aS as $e,br as Vi,bW as Ui,bX as Ni,iV as Mi}from"./index-BP8jc2MZ.js";import{w as pe,a as f}from"./core-3dlyNYRL.js";import{n as o,b as Ye}from"./mui-bYXq4XMS.js";import{P as Te}from"./Menu-CGN2qO6T-B9QNiLm_.js";import{T as It}from"./RoleWithToolTip-DSSGBzvw-w9nfatYk.js";import{j as Ve}from"./CardNumberSubText-W81SQ4GF-Bt4a5S33.js";const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardRowClick:j,onChargeCardResendInviteClick:y})=>{const[h,m]=f.useState(!1),[S,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!ke().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,k)},[a.id]),T=yt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(So,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(Se,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),y(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(Se,{open:S&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
|
|
1
|
+
import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as Se,a7 as ci,d as ze,gR as hi,iH as pi,iI as ui,iJ as mi,aO as gi,o as i,aK as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iK as fi,iL as yi,bQ as ye,bL as Si,aQ as ki,y as C,ey as vi,b8 as $i,iM as ji,aR as bi,s as Ii,ag as ee,gT as Li,al as J,ak as Q,u as p,cO as zi,cX as Ai,iN as Fi,iO as Pi,B as ft,bV as yt,iP as St,iQ as Ri,bO as Bi,cv as Je,iR as kt,dr as Di,ds as q,aL as ce,cs as vt,A as $t,iS as _i,cy as Ei,iz as Qe,bI as jt,bJ as bt,iT as Oi,iU as Ti,aS as $e,br as Vi,bW as Ui,bX as Ni,iV as Mi}from"./index-Ci63exms.js";import{w as pe,a as f}from"./core-3dlyNYRL.js";import{n as o,b as Ye}from"./mui-bYXq4XMS.js";import{P as Te}from"./Menu-CGN2qO6T-CKP1jX2H.js";import{T as It}from"./RoleWithToolTip-DSSGBzvw-1jeqwzcs.js";import{j as Ve}from"./CardNumberSubText-W81SQ4GF-D5AG2b-c.js";const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),T=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(Q)`
|
|
4
4
|
color: ${I.important};
|
|
@@ -46,7 +46,7 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
46
46
|
width: ${i.sp4};
|
|
47
47
|
height: ${i.sp4};
|
|
48
48
|
color: ${I.important};
|
|
49
|
-
`,Re=o(
|
|
49
|
+
`,Re=o(St)`
|
|
50
50
|
width: ${i.sp4};
|
|
51
51
|
height: ${i.sp4};
|
|
52
52
|
color: ${I.important};
|
|
@@ -58,7 +58,7 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
58
58
|
width: ${i.sp4};
|
|
59
59
|
height: ${i.sp4};
|
|
60
60
|
color: inherit;
|
|
61
|
-
`,rt=o(
|
|
61
|
+
`,rt=o(yt)`
|
|
62
62
|
width: ${i.sp4};
|
|
63
63
|
height: ${i.sp4};
|
|
64
64
|
color: inherit;
|
|
@@ -260,7 +260,7 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
260
260
|
background-color: ${e=>e.hoverImportant===!0?I.importantLight:e.theme.colors.background};
|
|
261
261
|
color: ${e=>e.theme.colors.primary};
|
|
262
262
|
}
|
|
263
|
-
`,
|
|
263
|
+
`,yo=o(ee)`
|
|
264
264
|
color: ${e=>e.theme.colors.hero};
|
|
265
265
|
max-width: 100%;
|
|
266
266
|
overflow: hidden;
|
|
@@ -269,9 +269,9 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
269
269
|
display: flex;
|
|
270
270
|
align-items: center;
|
|
271
271
|
gap: ${i.sp1};
|
|
272
|
-
`,At=pe.memo(({allCheckBoxValues:e,checkBox:s,fieldName:r,index:d,containerStyle:c,"data-testid":l,groupLabelCheckBox:a,registerOptions:n,style:x,mode:w,checkBoxContainerStyle:g,checkBoxIconStyle:
|
|
272
|
+
`,At=pe.memo(({allCheckBoxValues:e,checkBox:s,fieldName:r,index:d,containerStyle:c,"data-testid":l,groupLabelCheckBox:a,registerOptions:n,style:x,mode:w,checkBoxContainerStyle:g,checkBoxIconStyle:S,checkBoxStyle:j,labelCheckBoxStyle:k,labelStyle:h,width:m,isDisabled:y,selectionLimit:R,infoIconContainerStyle:B,checkedIconColor:D,draggable:z=!1,onDragStart:N})=>{const{control:u}=zi();return t.jsx(Ai,{control:u,name:r,rules:n,render:({field:{value:v,onChange:E,ref:M}})=>t.jsx(So,{style:{display:"flex",alignItems:"center",width:"100%",...g,...c},"data-testid":l??G("virtualized-checkbox-field",r),children:t.jsx(Fi,{checkBox:s,index:d,value:v,allCheckBoxValues:e,mode:w,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:S,checkBoxStyle:s.groupLabel?k:j,labelCheckBoxStyle:k,labelStyle:h,width:m,groupLabelCheckBox:a,infoIconContainerStyle:B,selectionLimit:R,checkedIconColor:D,isDisabled:y,draggable:z,onDragStart:N,ref:M,onChangeHandler:T=>Pi({event:T,value:v,allCheckBoxValues:e,groupLabelCheckBox:a,onChange:E})})})})},(e,s)=>e.checkBox===s.checkBox&&e.index===s.index&&e.mode===s.mode&&e.isDisabled===s.isDisabled&&e.selectionLimit===s.selectionLimit&&e.allCheckBoxValues.length===s.allCheckBoxValues.length&&e.groupLabelCheckBox?.value===s.groupLabelCheckBox?.value);At.displayName="VirtualizedCheckBoxField";const So=o.div`
|
|
273
273
|
position: relative;
|
|
274
|
-
`,X={containerPaddingLeft:i.sp2,containerPaddingRight:i.sp3,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new C(p[0],p[4]),headerLastColumnRightPadding:new C(p[3],p[11]),headerLastColumnBottomPadding:new C(p[0],p[4]),headerLastColumnLeftPadding:new C(p[0],p[11]),headerHeight:new C(Oi,Ti)};function
|
|
274
|
+
`,X={containerPaddingLeft:i.sp2,containerPaddingRight:i.sp3,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new C(p[0],p[4]),headerLastColumnRightPadding:new C(p[3],p[11]),headerLastColumnBottomPadding:new C(p[0],p[4]),headerLastColumnLeftPadding:new C(p[0],p[11]),headerHeight:new C(Oi,Ti)};function ko({companyNameSticky:e,sortConfig:s,showViewForCardUser:r,onColumnSortConfigChanged:d}){const c=ze(),l=ie(),a=!!Se().loggedInUserRole.includes("charge_card_user")||r,[n,x]=f.useState(Lt(a));f.useEffect(()=>{const h=[...n];for(const m of h)m.key===s.sortKey?m.sortOrder=s.sortOrder:m.sortOrder="ascending";x(h)},[s.sortKey,s.sortOrder]);const w=(h,m)=>{let y=m;s.sortKey===h&&(y=m==="ascending"?"descending":"ascending"),d(h,y)},g=n.find(h=>h.key===s.sortKey)??(a?n[1]:n[0]),S=h=>n.find(m=>m.key===h)?.value??"",j=(a?n.filter(h=>h.key!=="owner"):n).map(h=>h.key),k=le.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(bo,{windowSize:l,children:[t.jsxs(zo,{children:[t.jsx(Fo,{children:t.jsx(Ao,{})}),t.jsx(Bi,{title:k.sortBy,placeholder:k.sortBy,pickerValues:j,valueToLabel:S,selectedValue:s.sortKey,onPickerSelectionChanged:h=>{w(h,"ascending")},optionTextStyle:Be.extraSmallRegular,titleTextStyle:Be.extraSmallRegular,titleColor:c.colors.primary,selectedOptionColor:c.colors.hero,optionBackgroundColor:c.colors.grey5,downChevronVisible:!1,backgroundColor:c.colors.grey4})]}),t.jsxs(Bo,{onClick:()=>w(g.key,g.sortOrder),"data-testid":G("mobile-cards-list-sort-clicked",s.sortKey),children:[t.jsx(J,{children:g.value}),t.jsx(dt,{windowSize:l,sortDataValue:s.sortKey,headerdata:g,children:t.jsx(ct,{windowSize:l,children:t.jsx(Je,{})})})]})]}):t.jsx($o,{windowSize:l,children:t.jsx(jo,{children:n.map(h=>h.width.value(l)!==0&&t.jsxs(Io,{companyNameSticky:e,sortDataValue:s.sortKey,actualDataValue:h.key,wrapperWidth:h.width,windowSize:l,children:[t.jsxs(Ro,{onClick:()=>w(h.key,h.sortOrder),"data-testid":G("cards-list-sort-clicked",s.sortKey),children:[t.jsx(J,{children:h.value}),t.jsx(dt,{windowSize:l,sortDataValue:s.sortKey,headerdata:h,children:t.jsx(ct,{windowSize:l,children:t.jsx(Je,{})})})]}),t.jsx(Po,{sortDataValue:s.sortKey,windowSize:l,isVisible:s.sortKey===h.key&&(a?h.key!=="cardName":h.key!=="owner"),children:t.jsx(Lo,{onClick:()=>w(a?"cardName":"owner","ascending"),"data-testid":G("cards-list-sort-cancel",s.sortKey)})})]},h.key))})})}const vo=pe.memo(ko),$o=o.div`
|
|
275
275
|
top: ${i.sp0};
|
|
276
276
|
left: ${i.sp0};
|
|
277
277
|
z-index: 2;
|
|
@@ -365,7 +365,7 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
365
365
|
cursor: pointer;
|
|
366
366
|
gap: 5px;
|
|
367
367
|
color: ${e=>e.theme.colors.primary};
|
|
368
|
-
`,{spendManagement:{billPay:{paymentDetails:{feePercent:Do}},chargeCard:he},common:Z}=le.getLocalizedStrings(),De={containerMarginLeft:new C(p[3],p[8]),webkitLineClamp:new C(2,2,1,1,1)},_o=({setCardIdForRowAction:e,setActionTypeForRowAction:s,cardDetail:r,isCardControlsEnabled:d,showViewForCardUser:c,signedInUser:l,resendInviteId:a,index:n,onChargeCardRowClick:x,onChargeCardResendInviteClick:w,rowActionView:g,revokeChargeCardsInviteFetchState:
|
|
368
|
+
`,{spendManagement:{billPay:{paymentDetails:{feePercent:Do}},chargeCard:he},common:Z}=le.getLocalizedStrings(),De={containerMarginLeft:new C(p[3],p[8]),webkitLineClamp:new C(2,2,1,1,1)},_o=({setCardIdForRowAction:e,setActionTypeForRowAction:s,cardDetail:r,isCardControlsEnabled:d,showViewForCardUser:c,signedInUser:l,resendInviteId:a,index:n,onChargeCardRowClick:x,onChargeCardResendInviteClick:w,rowActionView:g,revokeChargeCardsInviteFetchState:S,unlockChargeCardsFetchState:j,cardsSelectedForBulkAction:k})=>{const h=!!Se().loggedInUserRole.includes("charge_card_user")||c,m=f.useCallback(()=>{x(r.id,n)},[r.id]);return h?t.jsx(Eo,{cardDetail:r,onRowClick:m}):t.jsx(Oo,{setCardIdForRowAction:e,setActionTypeForRowAction:s,cardDetail:r,isCardControlsEnabled:d,signedInUser:l,resendInviteId:a,onRowClick:m,onChargeCardResendInviteClick:w,rowActionView:g,revokeChargeCardsInviteFetchState:S,unlockChargeCardsFetchState:j,cardsSelectedForBulkAction:k,showViewForCardUser:c})},Ft=({cardDetail:e})=>{const s=e.balance,r=kt(e)/e.limit.amount*100;return t.jsxs(No,{children:[t.jsx(Go,{children:ce("0,0.[00]",s)}),r!==0?t.jsx(Ho,{children:`${Math.round(r)}${Do}`}):null]})},Eo=({cardDetail:e,onRowClick:s})=>{const r=ie();return t.jsx(Pt,{windowSize:r,children:t.jsx(Rt,{onClick:s,"data-testid":G("charge-card-user-row",e.id),children:t.jsxs(_e,{children:[t.jsx(Ut,{children:t.jsxs(Mt,{cardUser:!0,children:[t.jsxs(_t,{children:[t.jsx(Ot,{children:Z.labels.cardName}),t.jsxs(Et,{children:[t.jsx(Tt,{title:e.cardName,children:e.cardName}),t.jsx(Qt,{windowSize:r,children:he.cardDetails.expiryHideOut+Z.strings.space+e.accountLast4})]})]}),t.jsxs(Bt,{children:[t.jsx(Dt,{children:`${he.cardList.header.cardType}${Z.strings.colon}`}),t.jsx(Oe,{children:t.jsx(Ve,{cardDetail:e,forDetailPage:!1})})]}),t.jsxs(Wt,{children:[t.jsx(Kt,{children:Z.labels.limit}),t.jsxs(qt,{children:[t.jsx(Ht,{children:ce("0,0.[00]",e.limit)}),t.jsx(Gt,{}),t.jsx(Ee,{children:e.creditLimitFrequency.name})]})]})]})}),t.jsx(Nt,{children:t.jsxs(t.Fragment,{children:[e.status.code!=="request_on_hold"?t.jsx(Ft,{cardDetail:e}):null,t.jsxs(Vt,{children:[t.jsx(Le,{status:e.status.code}),e.status.code==="request_on_hold"?t.jsx(ye,{display:"flex",title:he.cardList.tooltip[e.type.code].self,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:t.jsx(Jt,{className:"infoIconTooltip"})}):null]})]})})]})})})},Oo=({setCardIdForRowAction:e,setActionTypeForRowAction:s,cardDetail:r,isCardControlsEnabled:d,signedInUser:c,resendInviteId:l,onRowClick:a,onChargeCardResendInviteClick:n,rowActionView:x,revokeChargeCardsInviteFetchState:w,unlockChargeCardsFetchState:g,cardsSelectedForBulkAction:S,showViewForCardUser:j})=>{const[k,h]=f.useState(!1);f.useEffect(()=>{S.length>0&&k&&h(!1)},[S.length,k]);const m=!!Se().loggedInUserRole.includes("charge_card_user")||j,y=`${r.cardHolderUser?.firstName??""} ${r.cardHolderUser?.lastName??""}`,R=r?.cardHolderUserId===c.userId,B=ie(),D=r.type.code,z=he.cardList.tooltip[D],N=z!=null?R?z.self:`${y} ${z.cardUser}`:Z.strings.empty,u=x.cardId===r.id,v=S.includes(r.id),E=u&&x.unlockChargeCardsFetchState.fetchState==="In-Progress"||v&&g==="In-Progress",M=u&&x.revokeChargeCardFetchState.fetchState==="In-Progress"||v&&w==="In-Progress",T=E||M,W=r.status.code!=="closed"&&r.status.code!=="closed_by_customer";return t.jsx(Pt,{windowSize:B,children:t.jsxs(Rt,{onClick:a,"data-testid":G("charge-card-admin-row",r.id),children:[t.jsxs(_e,{children:[t.jsxs(Ut,{children:[t.jsx(Mo,{children:t.jsx(vt,{personBasic:r.cardHolderUser,styles:{height:i.sp6,width:i.sp6}})}),t.jsx(Wo,{children:t.jsxs(qo,{children:[t.jsx(To,{children:t.jsx(Vo,{windowSize:B,title:y,children:y})}),t.jsx(Ee,{style:{marginTop:`-${i.sp1}`},children:r.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:r.cardHolderRoles?.userRoles})})]})})]}),t.jsx(Nt,{children:t.jsx(t.Fragment,{children:l===r.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(Zo,{children:[t.jsxs(Uo,{children:[r.status.code!=="request_on_hold"?t.jsx(Ft,{cardDetail:r}):null,t.jsxs(Vt,{children:[t.jsx(Le,{status:r.status.code}),r.status.code==="request_on_hold"?t.jsx(ye,{display:"flex",title:N,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:t.jsx(Jt,{className:"infoIconTooltip"})}):null]})]}),r.status.code==="request_on_hold"&&!R?t.jsx(Jo,{children:t.jsx(Qo,{onClick:F=>{F.stopPropagation(),n(r.id)},"data-testid":G("send-reminder-clicked",r.id),children:he.cardList.sendReminder})}):null]})})})]}),t.jsxs(_e,{children:[t.jsxs(Mt,{cardUser:!1,children:[t.jsxs(_t,{children:[t.jsx(Ot,{children:`${Z.labels.cardName}`}),t.jsxs(Et,{children:[t.jsx(Tt,{title:r.cardName,children:r.cardName}),t.jsx(Qt,{windowSize:B,children:r.status.code==="request_on_hold"?Z.strings.hyphen:he.cardDetails.expiryHideOut+Z.strings.space+r.accountLast4})]})]}),t.jsxs(Bt,{children:[t.jsx(Dt,{children:`${he.cardList.header.cardType}${Z.strings.colon}`}),t.jsx(Oe,{children:t.jsx(Oe,{children:t.jsx(Ve,{cardDetail:r,forDetailPage:!1})})})]}),t.jsxs(Wt,{children:[t.jsx(Kt,{children:Z.labels.limit}),t.jsxs(qt,{children:[t.jsx(Ht,{children:ce("0,0.[00]",r.limit)}),t.jsx(Gt,{}),t.jsx(Ee,{children:r.creditLimitFrequency.name})]})]})]}),t.jsx(Ko,{children:t.jsx(Yo,{showMenu:!0,className:"menu-icon",children:(()=>{const F=r.status.code==="locked",V=r.status.code==="closed"||r.status.code==="closed_by_customer",H=m?d&&!T&&!V&&!(F&&r.isLockedByAdmin):d?!T&&W:r.status.code==="request_on_hold",A=S.length>0;return H&&t.jsx(Te,{menuItems:t.jsx(Xo,{children:t.jsx(zt,{cardDetail:r,isCardControlsEnabled:d,isChargeCardUser:m,setIsMenuOpen:h,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:te=>{A||h(te)},isMenuOpen:k&&!A,menuIconStyles:{cursor:A?"not-allowed":"pointer",opacity:A?.5:1,pointerEvents:A?"none":"auto"},styles:{transform:"translate(5px,0px)"}})})()})})]})]})})},Pt=o.div`
|
|
369
369
|
display: flex;
|
|
370
370
|
background-color: ${e=>e.theme.colors.grey5};
|
|
371
371
|
border: ${e=>` 1px solid ${e.theme.colors.grey3}`};
|
|
@@ -526,7 +526,7 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
526
526
|
display: flex;
|
|
527
527
|
align-items: center;
|
|
528
528
|
gap: ${i.sp1};
|
|
529
|
-
`,qs=20,Ie=(e,s,r)=>!(r!=null&&e.status.code!==r||e.status.code==="closed"||e.status.code==="closed_by_customer"),es=(e,s,r)=>{const d=le.getLocalizedStrings(),c=d.spendManagement.chargeCard.cardList.bulkActions.exceptionMessages;if(e.status.code==="closed"||e.status.code==="closed_by_customer")return c.closedCardsCannotBeSelected;if(r!=null&&e.status.code!==r){const l=d.spendManagement.chargeCard.cardList.status[r];return c.onlyCardsUnderStatusCanBeSelectedTogether.replace("__status__",l)}return c.cardCannotBeSelectedForAction},ne={lastListItemHeight:new C(200,158),bannerWrapperMarginLeftRight:new C(p[3],p[8]),styledAIIconContainerSize:new C(p[3],p[3]),checkBoxContainerStyleMarginLeft:new C(p[0],p[4]),checkBoxContainerStyleMarginRight:new C(p[0],p[8]),labelCheckBoxStyleMarginLeft:new C(p[2],p[0])},ts={moreItemFont:new ft("extraSmallRegular","smallRegular")},me=le.getLocalizedStrings(),{spendManagement:{chargeCard:P},common:ae}=me,ht=50,is=64,os=351,ss=136,Yt=pe.memo(({cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,setCardIdForRowAction:c,setActionTypeForRowAction:l,rowActionView:a,showViewForCardUser:n,productInformation:x,isChargeCardFeatureEnabled:w,isChargeCardSetupEnabled:g,isDebitCardFeatureEnabled:k,isDebitCardSetupEnabled:j,cashbackInformation:y,creditAccountInformation:h,debitAccountInformation:m,depositAccountListWithDebitCardIssued:S,uiState:R,signedInUser:B,fetchState:D,revokeChargeCardsInviteFetchState:z,unlockChargeCardsFetchState:N,receiptBotEmail:u,searchText:v,resendInviteId:E,isBulkActionAllowed:M,isCardControlsEnabled:T,cardsSelectedForBulkAction:W,firstSelectedCardStatus:F,bulkSubmissionLimit:V,onProceedForBulkActionClick:H,onBulkCloseClick:A,onBulkLockClick:te,setShowBulkChangeSpendLimitPopup:Y,onChargeCardResendInviteClick:_,onChargeCardRowClick:de,onReloadCards:K,onColumnSortConfigChanged:oe,handleClearSelection:xe})=>{const b=ie(),Ae=ke(),Ue=ci().analytics,Ne=!!Ae.loggedInUserRole.includes("charge_card_user"),Me=ze(),[,We]=hi(),[ye,He]=f.useState(!1),[Fe,Ke]=f.useState(!1),ii=f.useCallback(()=>{u!=null&&((!w||r.fetchState==="Completed"&&d.fetchState==="Completed")&&(!(k&&j)||S.fetchState==="Completed")&&Ue.trackCardsCopyIconClick(s,x,"Cards List","Copy","copied","Receipt Email",u,y,h,m),We(u),He(!0))},[u,w,r.fetchState,d.fetchState,k,j,S.fetchState,Ue,s,x,y,h,m,We]);f.useEffect(()=>{if(ye===!0){const U=setTimeout(()=>{He(!1)},800);return()=>clearTimeout(U)}},[ye]);const oi=f.useCallback(U=>{H(U)},[H]),Pe=f.useCallback(U=>U===0?ht:b!=="small"?pi:Ne?ui:mi,[b,Ne]),si=f.useMemo(()=>{let U=ht+is;for(let we=1;we<=e.length;we++)U+=Pe(we);return U},[e.length,Pe]),qe=f.useMemo(()=>window.innerHeight-os,[]),ri=si>qe,Ge=f.useRef(null);f.useEffect(()=>{Ge.current?.resetAfterIndex(0)},[b]);const ai=()=>D==="Error"?t.jsxs(ms,{children:[t.jsx(gs,{onClick:K,"data-testid":G("charge-card-list-reload"),children:t.jsx(xs,{})}),t.jsx(ws,{children:ae.reloadPage.label})]}):D==="Completed"&&e.length===0?t.jsx(xi,{sourceView:"charge_cards",style:{height:"calc(100vh - 450px)"},title:P.cardList.getStarted,message:v!==""?P.cardList.noDataWithFilterText:P.cardList.noDataText,messageStyle:{maxWidth:345,color:Me.colors.primary,...Be.largeRegular.cssObject}}):t.jsxs(ti,{children:[u!=null?t.jsxs(ks,{windowSize:b,children:[t.jsx(Is,{windowSize:b,children:t.jsx(Ls,{})}),t.jsxs(zs,{windowSize:b,children:[t.jsxs(ys,{children:[t.jsx(ps,{children:P.aiCardAgentText}),ae.strings.space,P.receiptBotMessage,ae.strings.space]}),t.jsxs(bs,{"data-testid":G("charge-card-list-copy-email"),onClick:ii,onMouseEnter:()=>Ke(!0),onMouseLeave:()=>Ke(!1),children:[t.jsx(vs,{children:u}),ye===!0?t.jsxs(ut,{children:[t.jsx(js,{}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Fe||ye,color:I.primaryDark,children:ae.copyToClipBoard.copied})})]}):t.jsxs(ut,{children:[t.jsx($s,{color:Fe?Me.colors.primary:void 0}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Fe&&b!=="small",children:ae.copyToClipBoard.copy})})]})]})]})]}):null,t.jsx(Cs,{windowSize:b,availableHeight:qe,isListTooLarge:ri,children:t.jsx(wi,{children:({height:U,width:we})=>t.jsx(Ci,{ref:Ge,height:U,itemCount:e.length+1,innerElementType:Zt,itemSize:Pe,estimatedItemSize:Si,itemKey:ve=>ve===0?"header":e[ve-1].id,width:we,overscanCount:fi,initialScrollOffset:0,children:ve=>t.jsx(ds,{...ve,setCardIdForRowAction:c,setActionTypeForRowAction:l,rowActionView:a,resendInviteId:E,onChargeCardResendInviteClick:_,onChargeCardRowClick:de,showViewForCardUser:n,cardList:e,signedInUser:B,uiState:R,revokeChargeCardsInviteFetchState:z,unlockChargeCardsFetchState:N,onColumnSortConfigChanged:oe,isBulkActionAllowed:M,isCardControlsEnabled:T,cardsSelectedForBulkAction:W,firstSelectedCardStatus:F,bulkSubmissionLimit:V})})})})]});return t.jsxs(us,{fetchState:D,children:[ai(),W.length>0&&N!=="In-Progress"&&z!=="In-Progress"?t.jsx(gi,{helperContainerStyle:b==="small"?{margin:`${i.sp5} ${i.sp7} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:!0,primaryBtn:{label:as(F),isLoading:!1,isDisabled:!1,type:"button",onClick:()=>{const U=Xt(F);U&&oi(U)}},cancelBtn:{label:ae.texts.goBack,isDisabled:!1,onClick:xe,style:b==="small"?{}:ns(F)},leftSideComponent:Fs(W.length,V,b),rightSideComponent:t.jsx(Ds,{firstSelectedCardStatus:F,windowSize:b,setShowBulkChangeSpendLimitPopup:Y,onBulkCloseClick:A,onBulkLockClick:te})}):null]})},(e,s)=>e.cardList===s.cardList&&e.cardsSelectedForBulkAction.length===s.cardsSelectedForBulkAction.length&&e.fetchState===s.fetchState&&e.uiState.sortKey===s.uiState.sortKey&&e.uiState.sortOrder===s.uiState.sortOrder&&e.rowActionView===s.rowActionView&&e.unlockChargeCardsFetchState===s.unlockChargeCardsFetchState&&e.revokeChargeCardsInviteFetchState===s.revokeChargeCardsInviteFetchState&&e.searchText===s.searchText&&e.receiptBotEmail===s.receiptBotEmail&&e.isCardControlsEnabled===s.isCardControlsEnabled&&e.firstSelectedCardStatus===s.firstSelectedCardStatus&&e.handleClearSelection===s.handleClearSelection);Yt.displayName="ChargeCardListContent";const rs=({cardsSelectedForBulkAction:e,cardList:s,firstSelectedCardStatus:r,bulkSubmissionLimit:d,updateBulkActionList:c,removeAllCardsFromBulkActionList:l,isChargeCardSetupEnabled:a,...n})=>{const x="bulkSelectIds",w=li({defaultValues:{[x]:e},values:{[x]:e}});f.useEffect(()=>{const k=w.watch((j,{name:y})=>{if(y===x){let h=[];const m=j[x]??[];if(m.includes(me.common.all.toLowerCase()))if(e.length===0){h=[];for(const S of s)if(Ie(S,void 0,r)&&h.push(S.id),h.length===d)break}else h=m.filter(S=>S!==me.common.all.toLowerCase());else h=m.filter(S=>S!=null);c(h)}});return()=>k.unsubscribe()},[c,e.length,s,r,d]);const g=f.useCallback(()=>{w.setValue(x,[]),l()},[w,l]);return t.jsx(di,{...w,children:t.jsx(Yt,{...n,cardsSelectedForBulkAction:e,cardList:s,firstSelectedCardStatus:r,bulkSubmissionLimit:d,isChargeCardSetupEnabled:a,handleClearSelection:g})})},Xt=e=>{if(e!=null)switch(e){case"active":return"update_limit";case"locked":return"unlock";case"inactive":return"close";case"request_on_hold":return"revoke_invite";default:return}},as=e=>{if(e==null)return"Proceed";switch(e){case"active":return P.cardDetails.moreOptions.updateSpendLimit;case"locked":return P.cardDetails.moreOptions.unlock;case"inactive":return P.closeCard.closeCard;case"request_on_hold":return P.cardDetails.revokeInvite;default:return ae.proceed}},ns=e=>{switch(Xt(e)){case"update_limit":return{minWidth:"173px"};case"unlock":return{minWidth:"119px"};case"close":return{minWidth:"111px"};case"revoke_invite":return{minWidth:"128px"};default:return{}}},Zt=f.forwardRef((e,s)=>{const{children:r,style:d,...c}=e;return t.jsx(ti,{ref:s,style:{...d,width:"auto"},...c,children:t.jsx(Ss,{children:r})})});Zt.displayName=P.cardList.headerElementDisplayName;const ls=({cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,fetchState:c,uiState:l,setCardIdForRowAction:a,setActionTypeForRowAction:n,receiptBotEmail:x,searchText:w,resendInviteId:g,showViewForCardUser:k,signedInUser:j,isChargeCardFeatureEnabled:y,isChargeCardSetupEnabled:h,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:S,cashbackInformation:R,creditAccountInformation:B,debitAccountInformation:D,productInformation:z,isBulkActionAllowed:N,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:M,updateBulkActionList:T,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:F,onBulkCloseClick:V,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:A,onChargeCardRowClick:te,onReloadCards:Y,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:de,depositAccountListWithDebitCardIssued:K,rowActionView:oe,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:b})=>(ni({componentName:"cards.list",enabled:c==="Completed"}),t.jsx(rs,{cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,setCardIdForRowAction:a,setActionTypeForRowAction:n,rowActionView:oe,isChargeCardFeatureEnabled:y,isChargeCardSetupEnabled:h,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:S,cashbackInformation:R,creditAccountInformation:B,debitAccountInformation:D,productInformation:z,isBulkActionAllowed:N,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:M,updateBulkActionList:T,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:F,onBulkCloseClick:V,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:A,depositAccountListWithDebitCardIssued:K,showViewForCardUser:k,signedInUser:j,fetchState:c,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:b,receiptBotEmail:x,searchText:w,resendInviteId:g,onReloadCards:Y,onChargeCardRowClick:te,uiState:l,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:de})),Gs=pe.memo(ls),ds=({uiState:e,onColumnSortConfigChanged:s,isBulkActionAllowed:r,isCardControlsEnabled:d,cardsSelectedForBulkAction:c,firstSelectedCardStatus:l,bulkSubmissionLimit:a,index:n,setCardIdForRowAction:x,setActionTypeForRowAction:w,rowActionView:g,revokeChargeCardsInviteFetchState:k,unlockChargeCardsFetchState:j,style:y,cardList:h,showViewForCardUser:m,signedInUser:S,resendInviteId:R,onChargeCardResendInviteClick:B,onChargeCardRowClick:D})=>{const z=ie(),N=ze(),u=g.cardId!=null&&g.unlockChargeCardsFetchState.fetchState==="In-Progress"||j==="In-Progress"&&c.length>0,v=!r||u||d===!1||h.length<=1?"off":c.length>0?"always_on":"checked_or_hover",E={gap:i.sp3,width:"auto",marginLeft:ne.checkBoxContainerStyleMarginLeft.valuePx(z),marginRight:ne.checkBoxContainerStyleMarginRight.valuePx(z)},M={marginLeft:ne.labelCheckBoxStyleMarginLeft.valuePx(z)},T=hs(z),W=cs(z),F={width:"100%"},V={backgroundColor:N.colors.grey4},H={...y,width:"100%"},A=f.useMemo(()=>{const K=[me.common.all.toLowerCase()];for(const oe of h)if(!(d&&!Ie(oe,void 0,l))&&(K.push(oe.id),a!=null&&K.length===a+1))break;return K},[h,d,l,a]),te={label:"",defaultChecked:!1,groupLabel:!0,value:me.common.all.toLowerCase(),isException:!(c.length>0)},Y=n===0,_=Y?null:h[n-1],de=f.useMemo(()=>Y?{label:t.jsx(vo,{companyNameSticky:!1,showViewForCardUser:m,onColumnSortConfigChanged:s,sortConfig:{sortKey:e.sortKey,sortOrder:e.sortOrder}}),defaultChecked:!1,groupLabel:!0,value:me.common.all.toLowerCase(),isException:!(c.length>0&&h.length>1)}:_==null?{label:t.jsx("div",{}),value:"",groupLabel:!1,defaultChecked:!1,isException:!1}:{label:t.jsx(ei,{setCardIdForRowAction:x,setActionTypeForRowAction:w,rowActionView:g,revokeChargeCardsInviteFetchState:k,unlockChargeCardsFetchState:j,cardsSelectedForBulkAction:c,isCardControlsEnabled:d,showViewForCardUser:m,cardDetail:_,signedInUser:S,resendInviteId:R,index:n-1,onChargeCardResendInviteClick:B,onChargeCardRowClick:D}),value:_.id,groupLabel:!1,defaultChecked:!1,isException:d&&r?!Ie(_,void 0,l):!1,exceptionMode:"checked_or_hover",exceptionInfo:es(_,void 0,l),exceptionType:Ie(_,void 0,l)?void 0:"info"},[Y,_,m,s,e.sortKey,e.sortOrder,c,x,w,g,k,j,d,S,R,n,B,D,l]);return t.jsx(fs,{style:H,className:"spend-management-list-item",children:t.jsx(At,{checkBox:de,fieldName:"bulkSelectIds",index:n,allCheckBoxValues:A,groupLabelCheckBox:te,mode:v,checkBoxContainerStyle:E,checkBoxIconStyle:V,checkBoxStyle:Y?M:T,labelCheckBoxStyle:M,labelStyle:F,style:{gap:i.sp3},infoIconContainerStyle:W,selectionLimit:a})})},cs=e=>{let s={zIndex:1,height:i.sp3,display:"flex",alignItems:"center"};return e==="small"&&(s={...s,position:"absolute",left:i.sp2,marginBottom:i.sp1,width:i.sp4,height:i.sp4}),s},hs=e=>{let s={zIndex:1,marginBottom:i.sp3,backgroundColor:"inherit"};return e==="small"&&(s={...s,position:"absolute",left:i.sp1,width:i.sp4,height:i.sp4}),s},ei=pe.memo(({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardResendInviteClick:j,onChargeCardRowClick:y})=>{const h=ie()==="small"?_o:Gi;return t.jsx(h,{cardDetail:a,index:k,isCardControlsEnabled:n,setActionTypeForRowAction:s,setCardIdForRowAction:e,showViewForCardUser:x,signedInUser:w,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,rowActionView:r,onChargeCardRowClick:y,resendInviteId:g,onChargeCardResendInviteClick:j})},(e,s)=>{const r=e.cardsSelectedForBulkAction.includes(e.cardDetail.id),d=s.cardsSelectedForBulkAction.includes(s.cardDetail.id),c=e.rowActionView.cardId===e.cardDetail.id,l=s.rowActionView.cardId===s.cardDetail.id;return r===d&&c===l&&e.cardDetail===s.cardDetail&&e.isCardControlsEnabled===s.isCardControlsEnabled&&e.unlockChargeCardsFetchState===s.unlockChargeCardsFetchState&&e.revokeChargeCardsInviteFetchState===s.revokeChargeCardsInviteFetchState&&e.resendInviteId===s.resendInviteId&&e.showViewForCardUser===s.showViewForCardUser&&e.signedInUser===s.signedInUser&&e.index===s.index});ei.displayName="ChargeCardRowWrapper";const ps=o(ji)`
|
|
529
|
+
`,qs=20,Ie=(e,s,r)=>!(r!=null&&e.status.code!==r||e.status.code==="closed"||e.status.code==="closed_by_customer"),es=(e,s,r)=>{const d=le.getLocalizedStrings(),c=d.spendManagement.chargeCard.cardList.bulkActions.exceptionMessages;if(e.status.code==="closed"||e.status.code==="closed_by_customer")return c.closedCardsCannotBeSelected;if(r!=null&&e.status.code!==r){const l=d.spendManagement.chargeCard.cardList.status[r];return c.onlyCardsUnderStatusCanBeSelectedTogether.replace("__status__",l)}return c.cardCannotBeSelectedForAction},ne={lastListItemHeight:new C(200,158),bannerWrapperMarginLeftRight:new C(p[3],p[8]),styledAIIconContainerSize:new C(p[3],p[3]),checkBoxContainerStyleMarginLeft:new C(p[0],p[4]),checkBoxContainerStyleMarginRight:new C(p[0],p[8]),labelCheckBoxStyleMarginLeft:new C(p[2],p[0])},ts={moreItemFont:new ft("extraSmallRegular","smallRegular")},me=le.getLocalizedStrings(),{spendManagement:{chargeCard:P},common:ae}=me,ht=50,is=64,os=351,ss=136,Yt=pe.memo(({cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,setCardIdForRowAction:c,setActionTypeForRowAction:l,rowActionView:a,showViewForCardUser:n,productInformation:x,isChargeCardFeatureEnabled:w,isChargeCardSetupEnabled:g,isDebitCardFeatureEnabled:S,isDebitCardSetupEnabled:j,cashbackInformation:k,creditAccountInformation:h,debitAccountInformation:m,depositAccountListWithDebitCardIssued:y,uiState:R,signedInUser:B,fetchState:D,revokeChargeCardsInviteFetchState:z,unlockChargeCardsFetchState:N,receiptBotEmail:u,searchText:v,resendInviteId:E,isBulkActionAllowed:M,isCardControlsEnabled:T,cardsSelectedForBulkAction:W,firstSelectedCardStatus:F,bulkSubmissionLimit:V,onProceedForBulkActionClick:H,onBulkCloseClick:A,onBulkLockClick:te,setShowBulkChangeSpendLimitPopup:Y,onChargeCardResendInviteClick:_,onChargeCardRowClick:de,onReloadCards:K,onColumnSortConfigChanged:oe,handleClearSelection:xe})=>{const b=ie(),Ae=Se(),Ue=ci().analytics,Ne=!!Ae.loggedInUserRole.includes("charge_card_user"),Me=ze(),[,We]=hi(),[ke,He]=f.useState(!1),[Fe,Ke]=f.useState(!1),ii=f.useCallback(()=>{u!=null&&((!w||r.fetchState==="Completed"&&d.fetchState==="Completed")&&(!(S&&j)||y.fetchState==="Completed")&&Ue.trackCardsCopyIconClick(s,x,"Cards List","Copy","copied","Receipt Email",u,k,h,m),We(u),He(!0))},[u,w,r.fetchState,d.fetchState,S,j,y.fetchState,Ue,s,x,k,h,m,We]);f.useEffect(()=>{if(ke===!0){const U=setTimeout(()=>{He(!1)},800);return()=>clearTimeout(U)}},[ke]);const oi=f.useCallback(U=>{H(U)},[H]),Pe=f.useCallback(U=>U===0?ht:b!=="small"?pi:Ne?ui:mi,[b,Ne]),si=f.useMemo(()=>{let U=ht+is;for(let we=1;we<=e.length;we++)U+=Pe(we);return U},[e.length,Pe]),qe=f.useMemo(()=>window.innerHeight-os,[]),ri=si>qe,Ge=f.useRef(null);f.useEffect(()=>{Ge.current?.resetAfterIndex(0)},[b]);const ai=()=>D==="Error"?t.jsxs(ms,{children:[t.jsx(gs,{onClick:K,"data-testid":G("charge-card-list-reload"),children:t.jsx(xs,{})}),t.jsx(ws,{children:ae.reloadPage.label})]}):D==="Completed"&&e.length===0?t.jsx(xi,{sourceView:"charge_cards",style:{height:"calc(100vh - 450px)"},title:P.cardList.getStarted,message:v!==""?P.cardList.noDataWithFilterText:P.cardList.noDataText,messageStyle:{maxWidth:345,color:Me.colors.primary,...Be.largeRegular.cssObject}}):t.jsxs(ti,{children:[u!=null?t.jsxs(Ss,{windowSize:b,children:[t.jsx(Is,{windowSize:b,children:t.jsx(Ls,{})}),t.jsxs(zs,{windowSize:b,children:[t.jsxs(ks,{children:[t.jsx(ps,{children:P.aiCardAgentText}),ae.strings.space,P.receiptBotMessage,ae.strings.space]}),t.jsxs(bs,{"data-testid":G("charge-card-list-copy-email"),onClick:ii,onMouseEnter:()=>Ke(!0),onMouseLeave:()=>Ke(!1),children:[t.jsx(vs,{children:u}),ke===!0?t.jsxs(ut,{children:[t.jsx(js,{}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Fe||ke,color:I.primaryDark,children:ae.copyToClipBoard.copied})})]}):t.jsxs(ut,{children:[t.jsx($s,{color:Fe?Me.colors.primary:void 0}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Fe&&b!=="small",children:ae.copyToClipBoard.copy})})]})]})]})]}):null,t.jsx(Cs,{windowSize:b,availableHeight:qe,isListTooLarge:ri,children:t.jsx(wi,{children:({height:U,width:we})=>t.jsx(Ci,{ref:Ge,height:U,itemCount:e.length+1,innerElementType:Zt,itemSize:Pe,estimatedItemSize:yi,itemKey:ve=>ve===0?"header":e[ve-1].id,width:we,overscanCount:fi,initialScrollOffset:0,children:ve=>t.jsx(ds,{...ve,setCardIdForRowAction:c,setActionTypeForRowAction:l,rowActionView:a,resendInviteId:E,onChargeCardResendInviteClick:_,onChargeCardRowClick:de,showViewForCardUser:n,cardList:e,signedInUser:B,uiState:R,revokeChargeCardsInviteFetchState:z,unlockChargeCardsFetchState:N,onColumnSortConfigChanged:oe,isBulkActionAllowed:M,isCardControlsEnabled:T,cardsSelectedForBulkAction:W,firstSelectedCardStatus:F,bulkSubmissionLimit:V})})})})]});return t.jsxs(us,{fetchState:D,children:[ai(),W.length>0&&N!=="In-Progress"&&z!=="In-Progress"?t.jsx(gi,{helperContainerStyle:b==="small"?{margin:`${i.sp5} ${i.sp7} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:!0,primaryBtn:{label:as(F),isLoading:!1,isDisabled:!1,type:"button",onClick:()=>{const U=Xt(F);U&&oi(U)}},cancelBtn:{label:ae.texts.goBack,isDisabled:!1,onClick:xe,style:b==="small"?{}:ns(F)},leftSideComponent:Fs(W.length,V,b),rightSideComponent:t.jsx(Ds,{firstSelectedCardStatus:F,windowSize:b,setShowBulkChangeSpendLimitPopup:Y,onBulkCloseClick:A,onBulkLockClick:te})}):null]})},(e,s)=>e.cardList===s.cardList&&e.cardsSelectedForBulkAction.length===s.cardsSelectedForBulkAction.length&&e.fetchState===s.fetchState&&e.uiState.sortKey===s.uiState.sortKey&&e.uiState.sortOrder===s.uiState.sortOrder&&e.rowActionView===s.rowActionView&&e.unlockChargeCardsFetchState===s.unlockChargeCardsFetchState&&e.revokeChargeCardsInviteFetchState===s.revokeChargeCardsInviteFetchState&&e.searchText===s.searchText&&e.receiptBotEmail===s.receiptBotEmail&&e.isCardControlsEnabled===s.isCardControlsEnabled&&e.firstSelectedCardStatus===s.firstSelectedCardStatus&&e.handleClearSelection===s.handleClearSelection);Yt.displayName="ChargeCardListContent";const rs=({cardsSelectedForBulkAction:e,cardList:s,firstSelectedCardStatus:r,bulkSubmissionLimit:d,updateBulkActionList:c,removeAllCardsFromBulkActionList:l,isChargeCardSetupEnabled:a,...n})=>{const x="bulkSelectIds",w=li({defaultValues:{[x]:e},values:{[x]:e}});f.useEffect(()=>{const S=w.watch((j,{name:k})=>{if(k===x){let h=[];const m=j[x]??[];if(m.includes(me.common.all.toLowerCase()))if(e.length===0){h=[];for(const y of s)if(Ie(y,void 0,r)&&h.push(y.id),h.length===d)break}else h=m.filter(y=>y!==me.common.all.toLowerCase());else h=m.filter(y=>y!=null);c(h)}});return()=>S.unsubscribe()},[c,e.length,s,r,d]);const g=f.useCallback(()=>{w.setValue(x,[]),l()},[w,l]);return t.jsx(di,{...w,children:t.jsx(Yt,{...n,cardsSelectedForBulkAction:e,cardList:s,firstSelectedCardStatus:r,bulkSubmissionLimit:d,isChargeCardSetupEnabled:a,handleClearSelection:g})})},Xt=e=>{if(e!=null)switch(e){case"active":return"update_limit";case"locked":return"unlock";case"inactive":return"close";case"request_on_hold":return"revoke_invite";default:return}},as=e=>{if(e==null)return"Proceed";switch(e){case"active":return P.cardDetails.moreOptions.updateSpendLimit;case"locked":return P.cardDetails.moreOptions.unlock;case"inactive":return P.closeCard.closeCard;case"request_on_hold":return P.cardDetails.revokeInvite;default:return ae.proceed}},ns=e=>{switch(Xt(e)){case"update_limit":return{minWidth:"173px"};case"unlock":return{minWidth:"119px"};case"close":return{minWidth:"111px"};case"revoke_invite":return{minWidth:"128px"};default:return{}}},Zt=f.forwardRef((e,s)=>{const{children:r,style:d,...c}=e;return t.jsx(ti,{ref:s,style:{...d,width:"auto"},...c,children:t.jsx(ys,{children:r})})});Zt.displayName=P.cardList.headerElementDisplayName;const ls=({cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,fetchState:c,uiState:l,setCardIdForRowAction:a,setActionTypeForRowAction:n,receiptBotEmail:x,searchText:w,resendInviteId:g,showViewForCardUser:S,signedInUser:j,isChargeCardFeatureEnabled:k,isChargeCardSetupEnabled:h,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:y,cashbackInformation:R,creditAccountInformation:B,debitAccountInformation:D,productInformation:z,isBulkActionAllowed:N,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:M,updateBulkActionList:T,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:F,onBulkCloseClick:V,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:A,onChargeCardRowClick:te,onReloadCards:Y,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:de,depositAccountListWithDebitCardIssued:K,rowActionView:oe,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:b})=>(ni({componentName:"cards.list",enabled:c==="Completed"}),t.jsx(rs,{cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,setCardIdForRowAction:a,setActionTypeForRowAction:n,rowActionView:oe,isChargeCardFeatureEnabled:k,isChargeCardSetupEnabled:h,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:y,cashbackInformation:R,creditAccountInformation:B,debitAccountInformation:D,productInformation:z,isBulkActionAllowed:N,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:M,updateBulkActionList:T,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:F,onBulkCloseClick:V,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:A,depositAccountListWithDebitCardIssued:K,showViewForCardUser:S,signedInUser:j,fetchState:c,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:b,receiptBotEmail:x,searchText:w,resendInviteId:g,onReloadCards:Y,onChargeCardRowClick:te,uiState:l,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:de})),Gs=pe.memo(ls),ds=({uiState:e,onColumnSortConfigChanged:s,isBulkActionAllowed:r,isCardControlsEnabled:d,cardsSelectedForBulkAction:c,firstSelectedCardStatus:l,bulkSubmissionLimit:a,index:n,setCardIdForRowAction:x,setActionTypeForRowAction:w,rowActionView:g,revokeChargeCardsInviteFetchState:S,unlockChargeCardsFetchState:j,style:k,cardList:h,showViewForCardUser:m,signedInUser:y,resendInviteId:R,onChargeCardResendInviteClick:B,onChargeCardRowClick:D})=>{const z=ie(),N=ze(),u=g.cardId!=null&&g.unlockChargeCardsFetchState.fetchState==="In-Progress"||j==="In-Progress"&&c.length>0,v=!r||u||d===!1||h.length<=1?"off":c.length>0?"always_on":"checked_or_hover",E={gap:i.sp3,width:"auto",marginLeft:ne.checkBoxContainerStyleMarginLeft.valuePx(z),marginRight:ne.checkBoxContainerStyleMarginRight.valuePx(z)},M={marginLeft:ne.labelCheckBoxStyleMarginLeft.valuePx(z)},T=hs(z),W=cs(z),F={width:"100%"},V={backgroundColor:N.colors.grey4},H={...k,width:"100%"},A=f.useMemo(()=>{const K=[me.common.all.toLowerCase()];for(const oe of h)if(!(d&&!Ie(oe,void 0,l))&&(K.push(oe.id),a!=null&&K.length===a+1))break;return K},[h,d,l,a]),te={label:"",defaultChecked:!1,groupLabel:!0,value:me.common.all.toLowerCase(),isException:!(c.length>0)},Y=n===0,_=Y?null:h[n-1],de=f.useMemo(()=>Y?{label:t.jsx(vo,{companyNameSticky:!1,showViewForCardUser:m,onColumnSortConfigChanged:s,sortConfig:{sortKey:e.sortKey,sortOrder:e.sortOrder}}),defaultChecked:!1,groupLabel:!0,value:me.common.all.toLowerCase(),isException:!(c.length>0&&h.length>1)}:_==null?{label:t.jsx("div",{}),value:"",groupLabel:!1,defaultChecked:!1,isException:!1}:{label:t.jsx(ei,{setCardIdForRowAction:x,setActionTypeForRowAction:w,rowActionView:g,revokeChargeCardsInviteFetchState:S,unlockChargeCardsFetchState:j,cardsSelectedForBulkAction:c,isCardControlsEnabled:d,showViewForCardUser:m,cardDetail:_,signedInUser:y,resendInviteId:R,index:n-1,onChargeCardResendInviteClick:B,onChargeCardRowClick:D}),value:_.id,groupLabel:!1,defaultChecked:!1,isException:d&&r?!Ie(_,void 0,l):!1,exceptionMode:"checked_or_hover",exceptionInfo:es(_,void 0,l),exceptionType:Ie(_,void 0,l)?void 0:"info"},[Y,_,m,s,e.sortKey,e.sortOrder,c,x,w,g,S,j,d,y,R,n,B,D,l]);return t.jsx(fs,{style:H,className:"spend-management-list-item",children:t.jsx(At,{checkBox:de,fieldName:"bulkSelectIds",index:n,allCheckBoxValues:A,groupLabelCheckBox:te,mode:v,checkBoxContainerStyle:E,checkBoxIconStyle:V,checkBoxStyle:Y?M:T,labelCheckBoxStyle:M,labelStyle:F,style:{gap:i.sp3},infoIconContainerStyle:W,selectionLimit:a})})},cs=e=>{let s={zIndex:1,height:i.sp3,display:"flex",alignItems:"center"};return e==="small"&&(s={...s,position:"absolute",left:i.sp2,marginBottom:i.sp1,width:i.sp4,height:i.sp4}),s},hs=e=>{let s={zIndex:1,marginBottom:i.sp3,backgroundColor:"inherit"};return e==="small"&&(s={...s,position:"absolute",left:i.sp1,width:i.sp4,height:i.sp4}),s},ei=pe.memo(({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardResendInviteClick:j,onChargeCardRowClick:k})=>{const h=ie()==="small"?_o:Gi;return t.jsx(h,{cardDetail:a,index:S,isCardControlsEnabled:n,setActionTypeForRowAction:s,setCardIdForRowAction:e,showViewForCardUser:x,signedInUser:w,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,rowActionView:r,onChargeCardRowClick:k,resendInviteId:g,onChargeCardResendInviteClick:j})},(e,s)=>{const r=e.cardsSelectedForBulkAction.includes(e.cardDetail.id),d=s.cardsSelectedForBulkAction.includes(s.cardDetail.id),c=e.rowActionView.cardId===e.cardDetail.id,l=s.rowActionView.cardId===s.cardDetail.id;return r===d&&c===l&&e.cardDetail===s.cardDetail&&e.isCardControlsEnabled===s.isCardControlsEnabled&&e.unlockChargeCardsFetchState===s.unlockChargeCardsFetchState&&e.revokeChargeCardsInviteFetchState===s.revokeChargeCardsInviteFetchState&&e.resendInviteId===s.resendInviteId&&e.showViewForCardUser===s.showViewForCardUser&&e.signedInUser===s.signedInUser&&e.index===s.index});ei.displayName="ChargeCardRowWrapper";const ps=o(ji)`
|
|
530
530
|
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
531
531
|
${({theme:e})=>e.mode==="dark"&&`color: ${I.brandColorPearl};`}
|
|
532
532
|
`,us=o.div`
|
|
@@ -549,14 +549,14 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
549
549
|
background: ${e=>e.theme.colors.background};
|
|
550
550
|
border-radius: 50%;
|
|
551
551
|
cursor: pointer;
|
|
552
|
-
`,xs=o(
|
|
552
|
+
`,xs=o(Si)`
|
|
553
553
|
height: ${i.sp5};
|
|
554
554
|
width: ${i.sp5};
|
|
555
555
|
color: ${e=>e.theme.colors.grey1};
|
|
556
556
|
&:hover {
|
|
557
557
|
color: ${e=>e.theme.colors.primary};
|
|
558
558
|
}
|
|
559
|
-
`,ws=o(
|
|
559
|
+
`,ws=o(ki)`
|
|
560
560
|
margin-top: ${i.sp3};
|
|
561
561
|
color: ${e=>e.theme.colors.hero};
|
|
562
562
|
`,Cs=o.div`
|
|
@@ -575,11 +575,11 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
575
575
|
left: ${i.sp0};
|
|
576
576
|
padding-bottom: ${i.sp3};
|
|
577
577
|
box-sizing: border-box;
|
|
578
|
-
`,
|
|
578
|
+
`,ys=o.div`
|
|
579
579
|
position: relative;
|
|
580
580
|
width: auto;
|
|
581
581
|
height: 100%;
|
|
582
|
-
`,ti=o.div``,
|
|
582
|
+
`,ti=o.div``,Ss=o.div`
|
|
583
583
|
display: flex;
|
|
584
584
|
border: 1.25px solid transparent;
|
|
585
585
|
background: ${e=>`linear-gradient(${e.theme.colors.grey4}, ${e.theme.colors.grey4}) padding-box,
|
|
@@ -592,7 +592,7 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
592
592
|
margin: 0
|
|
593
593
|
${e=>ne.bannerWrapperMarginLeftRight.valuePx(e.windowSize)};
|
|
594
594
|
margin-bottom: ${i.sp3};
|
|
595
|
-
`,
|
|
595
|
+
`,ks=o($i)`
|
|
596
596
|
color: ${e=>e.theme.colors.primary};
|
|
597
597
|
`,vs=o(bi)`
|
|
598
598
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -662,7 +662,7 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
662
662
|
color: ${e=>e.theme.colors.primary};
|
|
663
663
|
`,Bs=o(ee)`
|
|
664
664
|
color: ${I.important};
|
|
665
|
-
`,Ds=({firstSelectedCardStatus:e,windowSize:s,setShowBulkChangeSpendLimitPopup:r,onBulkCloseClick:d,onBulkLockClick:c})=>{const[l,a]=pe.useState(!1),[n,x]=pe.useState(!1);if(f.useEffect(()=>{l||x(!1)},[l]),e==null||e!=="active"&&e!=="locked")return null;const w=()=>e==="active"?t.jsxs(t.Fragment,{children:[t.jsxs(be,{windowSize:s,onClick:g=>{g.stopPropagation(),a(!1),c?.()},children:[t.jsx(Ts,{}),t.jsx(xt,{children:P.cardDetails.moreOptions.lock})]}),t.jsx(gt,{}),t.jsxs(be,{windowSize:s,hoverImportant:!0,onClick:g=>{g.stopPropagation(),a(!1),d?.()},children:[t.jsx(Ct,{}),t.jsx(wt,{children:P.cardDetails.moreOptions.close})]})]}):e==="locked"?t.jsxs(t.Fragment,{children:[t.jsxs(be,{windowSize:s,onClick:g=>{g.stopPropagation(),a(!1),r(!0)},children:[t.jsx(Vs,{}),t.jsx(xt,{children:P.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(gt,{}),t.jsxs(be,{windowSize:s,hoverImportant:!0,onClick:g=>{g.stopPropagation(),a(!1),d?.()},children:[t.jsx(Ct,{}),t.jsx(wt,{children:P.cardDetails.moreOptions.close})]})]}):null;return t.jsx(_s,{style:s==="small"?{position:"absolute",top:i.sp7,right:`-${i.sp5}`}:{},children:t.jsx(Es,{onMouseEnter:()=>{l||x(!0)},onMouseLeave:()=>{x(!1)},children:t.jsx(
|
|
665
|
+
`,Ds=({firstSelectedCardStatus:e,windowSize:s,setShowBulkChangeSpendLimitPopup:r,onBulkCloseClick:d,onBulkLockClick:c})=>{const[l,a]=pe.useState(!1),[n,x]=pe.useState(!1);if(f.useEffect(()=>{l||x(!1)},[l]),e==null||e!=="active"&&e!=="locked")return null;const w=()=>e==="active"?t.jsxs(t.Fragment,{children:[t.jsxs(be,{windowSize:s,onClick:g=>{g.stopPropagation(),a(!1),c?.()},children:[t.jsx(Ts,{}),t.jsx(xt,{children:P.cardDetails.moreOptions.lock})]}),t.jsx(gt,{}),t.jsxs(be,{windowSize:s,hoverImportant:!0,onClick:g=>{g.stopPropagation(),a(!1),d?.()},children:[t.jsx(Ct,{}),t.jsx(wt,{children:P.cardDetails.moreOptions.close})]})]}):e==="locked"?t.jsxs(t.Fragment,{children:[t.jsxs(be,{windowSize:s,onClick:g=>{g.stopPropagation(),a(!1),r(!0)},children:[t.jsx(Vs,{}),t.jsx(xt,{children:P.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(gt,{}),t.jsxs(be,{windowSize:s,hoverImportant:!0,onClick:g=>{g.stopPropagation(),a(!1),d?.()},children:[t.jsx(Ct,{}),t.jsx(wt,{children:P.cardDetails.moreOptions.close})]})]}):null;return t.jsx(_s,{style:s==="small"?{position:"absolute",top:i.sp7,right:`-${i.sp5}`}:{},children:t.jsx(Es,{onMouseEnter:()=>{l||x(!0)},onMouseLeave:()=>{x(!1)},children:t.jsx(ye,{open:n&&!l,variant:"standard",title:P.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(Os,{children:w()}),setIsMenuOpen:a,isMenuOpen:l,menuIconStyles:{height:"auto"},styles:{transform:s==="small"?`translate(${i.sp4}, -${i.sp7})`:`translate(${i.sp4}, -${i.sp5})`}})})})})},_s=o.div`
|
|
666
666
|
display: flex;
|
|
667
667
|
justify-content: flex-end;
|
|
668
668
|
`,Es=o.div`
|
|
@@ -693,11 +693,11 @@ import{V as t,ca as ni,a8 as li,F as le,ab as di,Q as ie,av as ke,a7 as ci,d as
|
|
|
693
693
|
color: inherit;
|
|
694
694
|
`,wt=o(ee)`
|
|
695
695
|
color: ${I.important};
|
|
696
|
-
`,Ts=o(
|
|
696
|
+
`,Ts=o(yt)`
|
|
697
697
|
width: ${i.sp4};
|
|
698
698
|
height: ${i.sp4};
|
|
699
699
|
color: inherit;
|
|
700
|
-
`,Ct=o(
|
|
700
|
+
`,Ct=o(St)`
|
|
701
701
|
width: ${i.sp4};
|
|
702
702
|
height: ${i.sp4};
|
|
703
703
|
color: ${I.important};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as b,F as oe,V as r,d as J,av as ye,a7 as be,aN as je,aL as Se,fP as Te,bz as ze,fo as ve,n as Y,aK as ee,o as t,E as Pe,c as O,cz as ke,ap as Be,y as x,ao as Ae,bQ as Ie,iD as Le,ag as Re,u as p,B as S,p as $,b8 as Ee,aR as Me,iE as _e}from"./index-BP8jc2MZ.js";import{a as T}from"./core-3dlyNYRL.js";import{n as a,b as De,k as Fe}from"./mui-bYXq4XMS.js";import{eI as Ue}from"./zeni-epic-state-xFtF3OLs.js";import{k as Ne}from"./NavigationDots-DyMqwpgy-DNLVSzMW.js";import{J as H,N as G}from"./PromoBaseCards-CI7UOpeY-Ux3ixF8F.js";import{M as R}from"./usp-line-BBd1wKwW-ClwDS-nj.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const h={containerPaddingTopBottom:new x(p[0],p[0]),uspContainerMarginX:new x(p[6],p[0]),midContainerGap:new x(p[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(p[6],43),navigationBottom:new x(p[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,p[4]),carouselMarginLeft:new x(120,p[12]),buttonTrayGap:new x(p[3],p[5]),termsOfAgreementMarginTop:new x(p[5],p[10]),contactAdminContainerMarginTop:new x(p[0],p[10]),contactAdminContainerMarginBottom:new x(p[4],p[0]),contactAdminContainerMarginLeftRight:new x(p[3],p[0])},z={promoBadgeText:new S("standardRegular","largeRegular"),promoBadgeTextBold:new S("standardBold","largeBold"),cardsContent:new S("extraSmallRegular","smallRegular"),contactAdmin:new S("extraSmallRegular","largeRegular"),uspText:new S("smallRegular","standardRegular"),uspBoldText:new S("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Er=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:c,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:g,isDebitCardSetupEnabled:u,isChargeCardSetupEnabled:w,admins:j,cashbackRate:P,cardPromoType:f="credit",isCheckingEnabled:l,onSetupButtonClick:d,onBackClick:pe,onClickMenuIcon:me,onSetupChargeCardSuccess:V,onExpressInterestClick:he})=>{const ge=J(),Q=ye(),v=b(),W=be().analytics,{chargeCardTermsDetails:E,companyChargeCardInfo:C,companyLocaleInfo:M}=i,X=je(E?.fetchStatus.fetchState),[xe,K]=T.useState(!1),ue=()=>{W.trackCardsPromoPageClicked("schedule demo"),W.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:g,isDebitCardEnabled:u,isCreditCardEnabled:w},"Cards Promo"),K(!0)},we=C!=null&&M!=null?Se("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:M.currencyCode,currencySymbol:M.currencySymbol}):void 0;T.useEffect(()=>{X==="In-Progress"&&E?.fetchStatus.fetchState==="Completed"&&V()},[X,V,E?.fetchStatus]);const Z=Ue(Q.loggedInUserRoleMap),fe=Te(Q),_=f==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,Ce=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:$e}=i,q=_?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Qe,{children:[r.jsx(ze,{title:o.title[f],backgroundColor:ge.colors.grey4,onBackClick:pe,showBackButton:!0,showMenuIcon:v==="medium-compact"||v==="small",onClickMenuIcon:me,style:{zIndex:9},source:"ChargeCardPromoPage"}),xe===!0?r.jsx(ve,{onCancelClick:()=>{K(!1)},meetingUrl:e}):null,r.jsx(Ze,{windowSize:v,children:Z===!0?r.jsxs(Ke,{children:[r.jsxs(Xe,{children:[r.jsx(Ge,{isApproved:Ce,creditAmount:we,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:_,creditLimit:C?.chargeCardsCreditAccountLimit}),r.jsx(ne,{cardPromoType:f,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:_,isCheckingEnabled:l})]}):r.jsx(Je,{companyLegalName:s,cards:[],admins:j,cashbackRate:P,hasZeniFinopsRoles:fe,cardPromoType:f,isCheckingEnabled:l})}),Z&&!(F||D)?r.jsxs(or,{windowSize:v,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ue,"data-testid":ee("schedule-demo-button")}),r.jsx(We,{windowSize:v,children:o.orText}),r.jsx(Y,{variant:"primary",label:q,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||$e==="In-Progress",onClick:q===o.getPreApprovedNow?he:()=>d(f),"data-testid":ee("enable-card-button")})]}):null]})},He=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(mr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ie,{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,isCheckingEnabled:i,isUnderReview:n,isRejected:c,showExpressInterest:m,isCardUser:g=!1})=>{const u=b();return r.jsx(ir,{windowSize:u,children:r.jsx(Le,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:n===!0||c===!0||g===!0?void 0:m===!0?o.terms.getPreApprovedNowTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:c===!1&&g===!1&&n===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(u)},cardPromoType:e,isCheckingEnabled:i})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:c,showExpressInterest:m,creditLimit:g})=>{const u=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,j=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(rr,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:c?o.promoBadgeText.rejected:s==="debit_and_credit"&&g===0?null: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:u==="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(Ye,{cardPromoType:s,hasContent:j!=null,hideBadge:i==null||s==="debit",windowSize:u,children:[n||c||m?null:r.jsx($r,{}),r.jsx(er,{windowSize:u,children:j})]})]})},Je=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:c,cardPromoType:m="credit",isCheckingEnabled:g})=>{const u=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[u==="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(pr,{windowSize:u}):r.jsx(Oe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),c?null:r.jsx(He,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:g})]})},Oe=({cards:e,companyLegalName:s})=>{const i=J(),n=b();let c="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const g=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;c=o.cardAssigned.singleCreditCard.replace("__issuing-user__",g).replace("__company-name__",s)}else c=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(gr,{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:g})=>{g.onerror=null,g.src=Ae},loading:"lazy"}):null,r.jsx(hr,{windowSize:n,mode:i.mode,children:r.jsx(xr,{windowSize:n,children:c})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(nr,{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(tr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(ar,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{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(sr,{})}),r.jsxs(L,{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(cr,{})}),r.jsxs(L,{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(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=b(),s=J(),[i,n]=T.useState(0),[c,m]=T.useState(!1),g=o.businessText,u=`${g} ${o.debit}`,w=[{id:1,cardType:"debit",cardText:u},{id:2,cardType:"debit",cardText:u},{id:3,cardType:"credit",cardText:g},{id:4,cardType:"credit",cardText:g}];T.useEffect(()=>(c||(k=setInterval(()=>{n(l=>{const d=l+1;return d===w.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[c,w.length]),T.useEffect(()=>{c&&k!=null&&clearInterval(k)},[c]);const j=(l,d)=>{switch((l-i+w.length)%w.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=j(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},f=l=>{c||m(!0),n(l)};return r.jsxs(ur,{windowSize:e,children:[r.jsx(wr,{windowSize:e,children:w.map((l,d)=>r.jsxs(fr,{children:[r.jsx(ie,{isReflection:!1,style:{...j(d,!1)},onClick:()=>f(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))}),c&&r.jsx(Ne,{numberOfDots:w.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Qe=a.div`
|
|
1
|
+
import{Q as b,F as oe,V as r,d as J,av as ye,a7 as be,aN as je,aL as Se,fP as Te,bz as ze,fo as ve,n as Y,aK as ee,o as t,E as Pe,c as O,cz as ke,ap as Be,y as x,ao as Ae,bQ as Ie,iD as Le,ag as Re,u as p,B as S,p as $,b8 as Ee,aR as Me,iE as _e}from"./index-Ci63exms.js";import{a as T}from"./core-3dlyNYRL.js";import{n as a,b as De,k as Fe}from"./mui-bYXq4XMS.js";import{Er as Ue}from"./zeni-epic-state-BwKvATgd.js";import{k as Ne}from"./NavigationDots-DyMqwpgy-DXf5bt3G.js";import{J as H,N as G}from"./PromoBaseCards-CI7UOpeY-DI52WXKx.js";import{M as R}from"./usp-line-BBd1wKwW-ClwDS-nj.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const h={containerPaddingTopBottom:new x(p[0],p[0]),uspContainerMarginX:new x(p[6],p[0]),midContainerGap:new x(p[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(p[6],43),navigationBottom:new x(p[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,p[4]),carouselMarginLeft:new x(120,p[12]),buttonTrayGap:new x(p[3],p[5]),termsOfAgreementMarginTop:new x(p[5],p[10]),contactAdminContainerMarginTop:new x(p[0],p[10]),contactAdminContainerMarginBottom:new x(p[4],p[0]),contactAdminContainerMarginLeftRight:new x(p[3],p[0])},z={promoBadgeText:new S("standardRegular","largeRegular"),promoBadgeTextBold:new S("standardBold","largeBold"),cardsContent:new S("extraSmallRegular","smallRegular"),contactAdmin:new S("extraSmallRegular","largeRegular"),uspText:new S("smallRegular","standardRegular"),uspBoldText:new S("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Er=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:c,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:g,isDebitCardSetupEnabled:u,isChargeCardSetupEnabled:w,admins:j,cashbackRate:P,cardPromoType:f="credit",isCheckingEnabled:l,onSetupButtonClick:d,onBackClick:pe,onClickMenuIcon:me,onSetupChargeCardSuccess:V,onExpressInterestClick:he})=>{const ge=J(),Q=ye(),v=b(),W=be().analytics,{chargeCardTermsDetails:E,companyChargeCardInfo:C,companyLocaleInfo:M}=i,X=je(E?.fetchStatus.fetchState),[xe,K]=T.useState(!1),ue=()=>{W.trackCardsPromoPageClicked("schedule demo"),W.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:g,isDebitCardEnabled:u,isCreditCardEnabled:w},"Cards Promo"),K(!0)},we=C!=null&&M!=null?Se("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:M.currencyCode,currencySymbol:M.currencySymbol}):void 0;T.useEffect(()=>{X==="In-Progress"&&E?.fetchStatus.fetchState==="Completed"&&V()},[X,V,E?.fetchStatus]);const Z=Ue(Q.loggedInUserRoleMap),fe=Te(Q),_=f==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,Ce=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:$e}=i,q=_?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Qe,{children:[r.jsx(ze,{title:o.title[f],backgroundColor:ge.colors.grey4,onBackClick:pe,showBackButton:!0,showMenuIcon:v==="medium-compact"||v==="small",onClickMenuIcon:me,style:{zIndex:9},source:"ChargeCardPromoPage"}),xe===!0?r.jsx(ve,{onCancelClick:()=>{K(!1)},meetingUrl:e}):null,r.jsx(Ze,{windowSize:v,children:Z===!0?r.jsxs(Ke,{children:[r.jsxs(Xe,{children:[r.jsx(Ge,{isApproved:Ce,creditAmount:we,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:_,creditLimit:C?.chargeCardsCreditAccountLimit}),r.jsx(ne,{cardPromoType:f,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:_,isCheckingEnabled:l})]}):r.jsx(Je,{companyLegalName:s,cards:[],admins:j,cashbackRate:P,hasZeniFinopsRoles:fe,cardPromoType:f,isCheckingEnabled:l})}),Z&&!(F||D)?r.jsxs(or,{windowSize:v,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ue,"data-testid":ee("schedule-demo-button")}),r.jsx(We,{windowSize:v,children:o.orText}),r.jsx(Y,{variant:"primary",label:q,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||$e==="In-Progress",onClick:q===o.getPreApprovedNow?he:()=>d(f),"data-testid":ee("enable-card-button")})]}):null]})},He=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(mr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ie,{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,isCheckingEnabled:i,isUnderReview:n,isRejected:c,showExpressInterest:m,isCardUser:g=!1})=>{const u=b();return r.jsx(ir,{windowSize:u,children:r.jsx(Le,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:n===!0||c===!0||g===!0?void 0:m===!0?o.terms.getPreApprovedNowTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:c===!1&&g===!1&&n===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(u)},cardPromoType:e,isCheckingEnabled:i})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:c,showExpressInterest:m,creditLimit:g})=>{const u=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,j=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(rr,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:c?o.promoBadgeText.rejected:s==="debit_and_credit"&&g===0?null: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:u==="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(Ye,{cardPromoType:s,hasContent:j!=null,hideBadge:i==null||s==="debit",windowSize:u,children:[n||c||m?null:r.jsx($r,{}),r.jsx(er,{windowSize:u,children:j})]})]})},Je=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:c,cardPromoType:m="credit",isCheckingEnabled:g})=>{const u=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[u==="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(pr,{windowSize:u}):r.jsx(Oe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),c?null:r.jsx(He,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:g})]})},Oe=({cards:e,companyLegalName:s})=>{const i=J(),n=b();let c="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const g=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;c=o.cardAssigned.singleCreditCard.replace("__issuing-user__",g).replace("__company-name__",s)}else c=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(gr,{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:g})=>{g.onerror=null,g.src=Ae},loading:"lazy"}):null,r.jsx(hr,{windowSize:n,mode:i.mode,children:r.jsx(xr,{windowSize:n,children:c})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(nr,{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(tr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(ar,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{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(sr,{})}),r.jsxs(L,{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(cr,{})}),r.jsxs(L,{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(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=b(),s=J(),[i,n]=T.useState(0),[c,m]=T.useState(!1),g=o.businessText,u=`${g} ${o.debit}`,w=[{id:1,cardType:"debit",cardText:u},{id:2,cardType:"debit",cardText:u},{id:3,cardType:"credit",cardText:g},{id:4,cardType:"credit",cardText:g}];T.useEffect(()=>(c||(k=setInterval(()=>{n(l=>{const d=l+1;return d===w.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[c,w.length]),T.useEffect(()=>{c&&k!=null&&clearInterval(k)},[c]);const j=(l,d)=>{switch((l-i+w.length)%w.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=j(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},f=l=>{c||m(!0),n(l)};return r.jsxs(ur,{windowSize:e,children:[r.jsx(wr,{windowSize:e,children:w.map((l,d)=>r.jsxs(fr,{children:[r.jsx(ie,{isReflection:!1,style:{...j(d,!1)},onClick:()=>f(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))}),c&&r.jsx(Ne,{numberOfDots:w.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Qe=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|