@zeniai/web-cockpit-ui 1.15.18-dev → 1.15.19-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-BrjUad4D-BobK3aVB.js → ACHDetailsPage-Bj4J02PO-C4Q2xy4-.js} +1 -1
- package/dist/assets/{AIPerformancePage-Dx1ituql-CUuKvJ8n.js → AIPerformancePage-kqP-8GTq-BJF4ETfH.js} +12 -12
- package/dist/assets/AccountInfoPage-Bl-lXVdR-BrlwC_GK.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BQxwZcii-DAnRLliM.js → AccountInfoPageContent-BfoA1Gse-C7eC0yBE.js} +10 -10
- package/dist/assets/AccountLockedInfoModal-CapmN1xL-DmXdIqXb.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-DuI7qAkr-CohDb_Vn.js → AccountReconDetailsDrawerPage-y7iV6_PQ-D_ojlIG6.js} +16 -16
- package/dist/assets/{AccountRow-D3aEGfjh-CGXQQRag.js → AccountRow-BNdGXZbT-B-w9AEY5.js} +11 -11
- package/dist/assets/{AccountsPromoCardStack-BrTIGRUz-SlTiOsFA.js → AccountsPromoCardStack-BxQc3Ksg-BEzuSdPZ.js} +35 -35
- package/dist/assets/AddAddressForCardDrawer-DAcT8-PD-oJwne3Gy.js +6 -0
- package/dist/assets/{AddToWalletPage-DWMdtsY0-CgmcM53j.js → AddToWalletPage-CY-2tfXj-D4kgZ0ls.js} +18 -18
- package/dist/assets/{AgingReportsPage-CeFWs8X1-rGaFbgkD.js → AgingReportsPage-DG-IzhqU-D5iQytZw.js} +4 -4
- package/dist/assets/{AllUserItems-PN_oWzOC-Cfg4W7I4.js → AllUserItems-BLdx0SLb-D35470or.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-CQtY9j4b-xFY56tWP.js → ApAgingDetailPage-UhXmkAke-DuPdvgym.js} +5 -5
- package/dist/assets/{AppBasePage-D0S7OYzO-CJcI9UYp.js → AppBasePage-BdqHkxAE-ClgCYonW.js} +11 -11
- package/dist/assets/{AppDrawerContent-TIRPcJoE-BOUb6qnD.js → AppDrawerContent-DLLABFVO-Z7eIU8wQ.js} +7 -7
- package/dist/assets/{ApprovalRulesSettingsPage-CosIHJ5R-BB8nW0VM.js → ApprovalRulesSettingsPage-2Xy362hA-lw7cG823.js} +3 -3
- package/dist/assets/{ArAgingChart-CiNirxU7-C_J23wNp.js → ArAgingChart-DUyxm4oV-BDzCa7w_.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CKBOlCcF-B9yZn5Tp.js → ArAgingDetailPage-BtKh2Y7T-Befa7jSt.js} +4 -4
- package/dist/assets/{AttachmentView-MqDuu6PB-C1zlk39q.js → AttachmentView-gjYAbjdi-CLgD0hYn.js} +2 -2
- package/dist/assets/{BankAccountSection-DXFRyqzV-Bg8zqqhX.js → BankAccountSection-DQcfhQLN-Cf4CJKge.js} +3 -3
- package/dist/assets/{BankAccountWarningSection-DJhHTBuh-D20FRc-x.js → BankAccountWarningSection-XMpgCYBF-BD-ZRFYQ.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-CQe2upIp-Cv47vnoF.js → BankConnectionsSettingsPage-Bi5QjRHp-DZsjWuDY.js} +33 -33
- package/dist/assets/{BillDetailPage-B0ajOYxz-CTy3XK0i.js → BillDetailPage-CgEXd2T5-D3RRlJ_U.js} +9 -9
- package/dist/assets/{BillPayApprovalRuleDetailPage-BcWQYqjU-CZdskYSr.js → BillPayApprovalRuleDetailPage-CPKMjF0R-DkefuNtD.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-mS00kg1n-C05g3Cpf.js → BillPayApprovalRulesPage-CFJpmXE7-BS2SEmMd.js} +9 -9
- package/dist/assets/{BillPayPromoPage-tUxWWqMY-t6w7JDnT.js → BillPayPromoPage-nRHevclA-CJKWVsld.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-w47HuYkp-CbWSaNcn.js → BillPaySetUpPage-ynmgaK8Y-CjnJEFzj.js} +2 -2
- package/dist/assets/{BillingSettingsPage-Bsm7ZzIW-BChNCOOo.js → BillingSettingsPage-BNEvt1HK-BaSsXKiI.js} +6 -6
- package/dist/assets/{BillsBulkReviewDrawerPage-DdI0OCuE-DjrQvH-7.js → BillsBulkReviewDrawerPage-D6tbE3BQ-DocKjVGy.js} +1 -1
- package/dist/assets/BoxItem-BdgRTwgI-DiOTWl08.js +53 -0
- package/dist/assets/{BusinessVerificationPage-p1cUyL8l-DeaLZxZn.js → BusinessVerificationPage-CU38xCol-B4S_9jHP.js} +10 -10
- package/dist/assets/{CardNumberSubText-yVfOUJpr-DRIDUYcf.js → CardNumberSubText-g2_GoH9f-aD70vkbB.js} +7 -7
- package/dist/assets/{CashbackDetailPage-DAX8aTFq-CX_nfeg0.js → CashbackDetailPage-SvujpPEs-C8gXhM7B.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-CTdVu2LX-CXvKoTcM.js → ChargeCardDetailPage-oaVwvFKq-qgCXX26B.js} +35 -35
- package/dist/assets/{ChargeCardListPage-BTf2sf_r-BIeWCtwJ.js → ChargeCardListPage-CGyxQ8Dx-B1x8tEOp.js} +19 -19
- package/dist/assets/{ChargeCardListTable-DEYusOGZ-BR9KGK-S.js → ChargeCardListTable-DKQnkAJ7-CbA18PS4.js} +30 -30
- package/dist/assets/{ChargeCardPaymentHistoryPage-BhIiSigy-CmcVMykk.js → ChargeCardPaymentHistoryPage-JxdV2F32-B8QxqdNq.js} +17 -17
- package/dist/assets/{ChargeCardPromoPage-SMg6Bkmx-BIBCjTA5.js → ChargeCardPromoPage-BM7oOdWh-cLjTbA-r.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-8jA-EjWA-SUTAHgR8.js → ChargeCardSetupPage-DqjFBKb_-D2isSGQZ.js} +4 -4
- package/dist/assets/{ChargeCardStatementsPage-CrsqrTNw-cq-ohGFk.js → ChargeCardStatementsPage-DKicQRml-DNQKyuH-.js} +4 -4
- package/dist/assets/{CheckDepositDrawerPage-BnMEa1gU-D4KA1YbO.js → CheckDepositDrawerPage-BoMMC-PD-BbZFeQ0t.js} +12 -12
- package/dist/assets/{CollapsableReportTable-BQsDuqwg-D4PksJ7s.js → CollapsableReportTable-CvAF66CY-D2P5-EVV.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CxeWrQJH-XfC5iWX1.js → CompanyOfficerDetailsSection-ClnGjHwL-DjLuACPy.js} +7 -7
- package/dist/assets/{CompanyPassportCard-DUX32IvW-wDP-ayWY.js → CompanyPassportCard-De1ZqCMC-Co6Yn6Qv.js} +5 -5
- package/dist/assets/{CompanyPassportPage-Cp0oulai-BQFU8qYi.js → CompanyPassportPage-6281ivzv-B30kYLVx.js} +24 -24
- package/dist/assets/{CompleteProfile-BdeEu2dc-DABogw0l.js → CompleteProfile-C4YhvWhe-CIB56NG8.js} +2 -2
- package/dist/assets/ConfettiBurst-CR98FGfH-3rXf1OLF.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-Cr0pUg_S.js → ConstrainedInnerElement-BeIpAPjB-JviWwDyz.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-iFE1nb0J-tpGth2AK.js → CreateOrEditVendorPage-Dfq0ydKc-fAmE7u3u.js} +6 -6
- package/dist/assets/{CreditCardPaymentDrawerPage-CaTanv1T-DKlglNsr.js → CreditCardPaymentDrawerPage-D8Rs6j9F-CECIifL2.js} +6 -6
- package/dist/assets/{CurrencySelectField-BNcLy0zv-DUL30Rmr.js → CurrencySelectField-dqih82Wa-Bf5oGIgX.js} +2 -2
- package/dist/assets/{CustomerOnboardingActivationPage-D_0kSaYs-DmoaOtfG.js → CustomerOnboardingActivationPage-CPhBnk1y-CsEDDRZo.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-Dn7vOa-2-acu82bx-.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B1jJ1XJX-Ec31gEaK.js → CustomerOnboardingDetailPageSkeleton-D92o0cYb-f4j90fLJ.js} +4 -4
- package/dist/assets/{CustomerOnboardingNoStepsPage-CyxHQxxQ-B3uyPHi-.js → CustomerOnboardingNoStepsPage-D-TyXZjQ-1BbkgoBb.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-Cj_k0rfN-dr4fZ7As.js → CustomerOnboardingPage-D8s20fEH-Drh1St8-.js} +10 -10
- package/dist/assets/{CustomerOnboardingProductSuitePage-BPRN6xyM-BLvLQxxG.js → CustomerOnboardingProductSuitePage-B7v5nYAw--BKM9prl.js} +4 -4
- package/dist/assets/{Dashboard-DYpE_H2b-WMqZzzuP.js → Dashboard-DLhx6D0s-A89AzrUL.js} +1 -1
- package/dist/assets/{DashboardReportPage-BB6dW8kR-BVA8DQgX.js → DashboardReportPage-G-hbFFVd-duPSFRfE.js} +9 -9
- package/dist/assets/{DashboardSidebarBackgroundAnimation-DDLCSC57-BJ_WASPh.js → DashboardSidebarBackgroundAnimation-Dhb4iV2T-BYJc1IM0.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CxXM_Pse-aMnsSeAe.js → DepositAccTransactionItem-6BPvYynA-D1Ju63qU.js} +2 -2
- package/dist/assets/DepositAccTransactionListPage-CYqVm1Rm-FhuWm2tm.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-CswDexXc-CwmUyTco.js → DomesticWireDetailsPage-BOza2O-8-CYD7ppA5.js} +1 -1
- package/dist/assets/{DownloadOverlay-Ck84lTok-DoSlSguE.js → DownloadOverlay-cbNihDeI-BS6u10ct.js} +1 -1
- package/dist/assets/{DrawerPage-Ctqr9Qke-DbWbSJy7.js → DrawerPage-DhT58SBb-DaHEF-EV.js} +3 -3
- package/dist/assets/EditPeoplePage-BLNgVf-0-U2va95MO.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-DHIg51AQ-Du0u5yPi.js → EditReimbursementDetailPage-DmApxq-q-CyDk02YT.js} +61 -61
- package/dist/assets/{EntityDetailPage-BsCWH1Al-WFaE0WQF.js → EntityDetailPage-CvgcTamk-C6e8nDgM.js} +4 -4
- package/dist/assets/{EntitySummarySection-ntuao-VM-fobvDD6S.js → EntitySummarySection-C82U-rtJ-DmZyL6x2.js} +6 -6
- package/dist/assets/{ExpenseAutomationOverviewPage-lptxncga-rbFk8U51.js → ExpenseAutomationOverviewPage-Bgibjb2E-BaSAz2Y9.js} +10 -10
- package/dist/assets/{ExpenseAutomationPage-S1iaOuA5-DRC_L2v_.js → ExpenseAutomationPage-Be5-Yt8w-Cjj2nOen.js} +36 -36
- package/dist/assets/{ExpressPayPage-3UaLqRo7-BW2LLrbf.js → ExpressPayPage--mCSxEVH-BFs72UEO.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-CLHp1LHp-eKI7eeEH.js → FeaturePreviewPage-CFVDZyby-CGtGECgw.js} +2 -2
- package/dist/assets/{FollowStepsSection-BY0dw_SN-iqWfg0Bg.js → FollowStepsSection-CVWuuidV-DUG37jOA.js} +18 -18
- package/dist/assets/{GlobalReviewListPage-CltHFSzG-CQET8EIq.js → GlobalReviewListPage-vkNEl7d8-CiHg5TZf.js} +14 -14
- package/dist/assets/{InformationCardStack-CVoS_Bni-DRMXWlfL.js → InformationCardStack-LF_aKhhL-CKp0o9nn.js} +5 -5
- package/dist/assets/{InsightsCardStack-YcKupOZZ-BYS9QdSX.js → InsightsCardStack-BIcK-jeU-C5tLvdIq.js} +13 -13
- package/dist/assets/{InsightsSection-BuCEgcAh-DX4KP6Gi.js → InsightsSection-CIpbIEbv-CFt4IQKX.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-r_VwvwxS-D2fIzpgb.js → IntegrationsSettingsPage-CjP_3pkI-CnkkLjlB.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-B2x6g-rb-BG86r2Q_.js → InternationalWireSwiftDetailsPage--xhtyYY7-D4zcriQW.js} +7 -7
- package/dist/assets/{InternationalWireVerificationPage-B-sxkGbq-BzbYdtzf.js → InternationalWireVerificationPage-BpvZr-WI-jxE-vB-G.js} +7 -7
- package/dist/assets/{InviteFormPage-CrFWGpJE-DomTNTMP.js → InviteFormPage-9NFX-MhQ-BgZ7muUE.js} +9 -9
- package/dist/assets/{InvitePageListView-BsGwCg5B-DlrJVwFE.js → InvitePageListView-B-cAYAEj-DdX2Vf2f.js} +40 -40
- package/dist/assets/{InvitePeoplePage-D0-MjKb2-B1ShEIts.js → InvitePeoplePage-_lENDcHE-Cs4JWgnf.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-BUF7Ko_U-1xPxHQJp.js → InvoiceUploadSection-Md8EHqPI-B2FbeYFD.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-D5sn5jt4-BWcpzIYT.js → IssueChargeCardPage-DlBHg90l-CkIYZG8g.js} +14 -14
- package/dist/assets/{LabeledAddressValue-Ds1BeyG_-FoXd8L7U.js → LabeledAddressValue-BRVf6Gy8-DR_hCdER.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D_Ztmm7--tsnB0bq1.js → LabeledAddressValueField-Dm962nbv-CJctT64I.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-DGV1Bz6o-CCbHpDl4.js → LabeledControlledCheckBoxField-AuHfNy1--CYnnof78.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CTmUlcyk-Dx11AHn5.js → LabeledCreatableSingleSelectField-CZzPQt4P-q5eFoS7_.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BwHjf12U-ti56UUdB.js → LabeledDocumentField-Cj3wNN-j-DRfRBZq3.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BaAHosJI-CDWZK3Xu.js → LabeledDropDownFormattedTextField-DKi8UjgP-vgVqFIrz.js} +2 -2
- package/dist/assets/{LabeledText-CVYTNBOt-LIAQJcbl.js → LabeledText-C-8itgDI-CUp_0u3s.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CnK0wLL0-CdsEapB3.js → LabeledUserSingleSelectWithSubtitlesField-CyEiLq7_-CyR9dVw4.js} +5 -5
- package/dist/assets/{LabeledZeniRolesDropDownField-B2eu9WQ_-CXTTkytl.js → LabeledZeniRolesDropDownField-CoQcMW_--ClLOgm0I.js} +8 -8
- package/dist/assets/{LinkJETransactionPage-DTU4Piv4-CzTizu8e.js → LinkJETransactionPage-aTmlEn-Z-x31yl_Si.js} +10 -10
- package/dist/assets/{LockCardPage-9rnmj-hG-Dgtzvq-m.js → LockCardPage-nJeB0vKv-D0hlcn6G.js} +45 -45
- package/dist/assets/{LowBalancePopup-CCl7fzh9-CRJeCFG3.js → LowBalancePopup-aFCQSDc_-C6y1E7C0.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-CkEC7bfy-BTcHRx9h.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DXqRDZvA-Cof2FQM6.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CegOSNsV-D9w4qClx.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-RxCflvAg-z_sXnPco.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-ClWFjqQr-B7_1AUkD.js → MagicLinkTitleSection-CYaOQsiQ-Bmr50Dux.js} +3 -3
- package/dist/assets/MailingDetailsSection-KUvjhmZC-BH5Oyyjr.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-BC47a22v-9PSEA4Wu.js → MyBankConnectionsSettingsPage-SlfAD_ec-Cxn1_qTK.js} +7 -7
- package/dist/assets/{MyPendingActivationChargeCardListPage-BJ_kQQGd-lBfLcXgn.js → MyPendingActivationChargeCardListPage-BShzFR0m-CvOtafM-.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-C70z69ea-CMxdjCdW.js → MyProfileSettingsPage-CzGU1Gx7-Dqk_FQO0.js} +11 -11
- package/dist/assets/{NavBarWithPicker-CRQ9DzK7-Cs0J7mYU.js → NavBarWithPicker-NJ3tm2MI-oOlPyLbT.js} +4 -4
- package/dist/assets/{NavigationArrow-CWRgkV1y-5nUqXc-t.js → NavigationArrow-B145tYV_-C_6ukSuK.js} +1 -1
- package/dist/assets/{NavigationDots-BDKBgUe6-CeOovYs1.js → NavigationDots-DaOFOsFA-BBWJs6hX.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-B_mViG5F-TkGICDRh.js → NewGlobalMerchantPage-YTsNL6iu-Bz6Acdaw.js} +33 -33
- package/dist/assets/{NoDataChart-CJyaj_wD-Ceo15OJ6.js → NoDataChart-C7YUwwui-iNU45UoG.js} +2 -2
- package/dist/assets/NoDataTable-DolCx6QR-C89fB2OT.js +8 -0
- package/dist/assets/{NotFoundPage-B-CdwYLM-04zajBZ5.js → NotFoundPage-BBnisozE-ZTo3UmTG.js} +7 -7
- package/dist/assets/{NotificationSettingsPage-DrMp-0h0-CNJC7C_o.js → NotificationSettingsPage-DPg3FvvD-Bucvci8R.js} +21 -21
- package/dist/assets/{NotificationsListConfig-Cl713fZg-qRofkxh7.js → NotificationsListConfig-BkOX8iIv-DgCgfDhw.js} +1 -1
- package/dist/assets/{NotificationsPage-Dh4xulau-_5iAw31w.js → NotificationsPage-BUhLO_r9-37VbqnuY.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BslfnDh3-53j8zSVl.js → OpExByVendorPage-CHY5zg69-DBOqA9P_.js} +20 -20
- package/dist/assets/OverlayContainerPage-D4QU0p4o-Bn1glMo5.js +11 -0
- package/dist/assets/{PandLWithForecastPage-BYnaGvO3-Bs93z5El.js → PandLWithForecastPage-CeQr3WjJ-CzbnzXa-.js} +3 -3
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CR6xX1bB-BwbAQyjl.js → PaymentAccountSetupBillingAddressSection-B6xSczs6-BKvI8Xkx.js} +1 -1
- package/dist/assets/{PeoplePage-BRC7-Yol-C9rira3P.js → PeoplePage-fCF4vkUp-ufAU-1hs.js} +25 -25
- package/dist/assets/{Preview-BY6UeCTa.js → Preview-hLK8QRw8.js} +1 -1
- package/dist/assets/{ProductsCarousel-BgltUKwq-Dj-tP9zJ.js → ProductsCarousel-rA-O8_7D-CY5GfBBq.js} +6 -6
- package/dist/assets/{PromoBaseCards-DMleWayu-BFTkh-l1.js → PromoBaseCards-C37GX90J-DqWlf7fN.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-BSKkJDPD-CJILPjk5.js → QBOConnectionDialog-Dwog9AYZ-O8uWq45M.js} +4 -4
- package/dist/assets/{QBOSetupSection-YQ4TKOTA-B5TQNN0G.js → QBOSetupSection-uV3w7rHW-MEAdwA6a.js} +4 -4
- package/dist/assets/ReimbursementApprovalRuleDetailPage-CPZfTMx--hGh26AYS.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-DQDbyY1K-B5lF3vkz.js → ReimbursementApprovalRulesPage-IGpmh9zA-Bx94q0Ic.js} +4 -4
- package/dist/assets/{ReimbursementDetailPage-gAg8C98b-DuQNQ-y5.js → ReimbursementDetailPage-CnzK17M4-DQC0uxdE.js} +3 -3
- package/dist/assets/{ReimbursementPromoPage-DtKtr2rP-C8cL3Mv7.js → ReimbursementPromoPage-DSfL54Md-1ZVBlDma.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-BdUoR2HM-CIGHv-6r.js → ReimbursementSetUpPage-BoTn3JKw-CBdNL9HT.js} +8 -8
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BL6oI4fi-DUFvxQjQ.js → ReimbursementsBulkReviewDrawerPage-DBc7LS-n-Iqxb_53N.js} +1 -1
- package/dist/assets/{ReloadCard-B3OtOvVI-DVK4TeBa.js → ReloadCard-B5rmmfva-TUZ-Tkd2.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-Cmv2xs7h-CJ6mu-Rp.js → ReportTableViewSelector-0OEScWmm-Hga5bKqy.js} +29 -29
- package/dist/assets/{ReportsPage-SWC6uIs--DupC08g-.js → ReportsPage-BTkakKPX-BSzPNOYj.js} +6 -6
- package/dist/assets/{RevenueChart-CZlAswBG-DPlV94YS.js → RevenueChart-Ba8ZLje8-Drb014Fl.js} +15 -15
- package/dist/assets/{ReviewDetailsPage-BW3pZ3ws-BH9zDrcw.js → ReviewDetailsPage-BQDrm2yR-Bz5FazaS.js} +17 -17
- package/dist/assets/{ReviewOverlay-BhFwGG6t-C0m5jD2s.js → ReviewOverlay-8tBBKn9R-BZESXqSp.js} +5 -5
- package/dist/assets/RoleWithToolTip-YZusZfiJ-BELittL3.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CdmehDsJ-Dd48HqBm.js → ScheduleDetailsFixedAssetsPage-BN9hFnGC-I8BvJlgl.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-DA1eGkzI-a0yDswoo.js → ScheduleDetailsPage-DAr4tXe_-BZZ4Y69I.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BvGIwZmi-Br-m9rdL.js → ScheduleSequenceTable-DUfu-c6e-DBFpgT6F.js} +12 -12
- package/dist/assets/{ScreenRoutes-D3PxnqOE.js → ScreenRoutes-RdWdKKFl.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DM4CvIFN-CPQ8K94t.js → SetUpAccountSection-DqW4vmsx-CO06aLnp.js} +6 -6
- package/dist/assets/{SignIn-DU3HuwJr-CXMwOpi4.js → SignIn-CCqNj3tG-DRDC5Yhl.js} +17 -17
- package/dist/assets/{SignInScreen-PoBHP4-4.js → SignInScreen-BI4txts-.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-VR4dPKBw-DHyDM03E.js → SpendManagementListViewPage-s4dPd5hE-IanF8B1T.js} +11 -11
- package/dist/assets/{SpendManagementPerTabPage-CdYRrtcC-DFgavPhh.js → SpendManagementPerTabPage-NWc7uqw6-_rcGYzjd.js} +45 -45
- package/dist/assets/{SpendManagementSection-C2Uw6UXF-BRw2L3H1.js → SpendManagementSection-eYrLZK1E-KjAWYeIa.js} +17 -17
- package/dist/assets/StatementItem-CKK9vnC7-CB-e2CLd.js +31 -0
- package/dist/assets/StatementsPage-C0wI_tRw-BDtidNq4.js +58 -0
- package/dist/assets/{StatusSwitcher-RY35Qzlp-DPptYPVp.js → StatusSwitcher-DFluM61E-D9icc7U1.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CIhSt1_V-BGyVDCoP.js → SubTabSwitcher-Cin8x7wg-Dcdm2qpz.js} +1 -1
- package/dist/assets/{SummaryCard-iIQISRZL-Cx0NyzVM.js → SummaryCard-Bcw6fQTD-Do950Kyf.js} +1 -1
- package/dist/assets/{TaskManagementPage-CCC1QlZS-BHBkMyad.js → TaskManagementPage-B9qW2lvP-CVsVNeeW.js} +9 -9
- package/dist/assets/{TimeRangeSwitcher-BIA3BW1g-Bty5Ch9x.js → TimeRangeSwitcher-u57rzf78-Bgi2Q6bp.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BhV0yrj0-CbCl4A9y.js → TimeframeSwitcher-ClE4GOKf-CCgDF2y1.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CIAZXHb2-orP1uTMH.js → TimeframeSwitcherWithToggle-COre57iX-BQBghhwC.js} +2 -2
- package/dist/assets/{TopExCard-CPsxq74q-662cwF8z.js → TopExCard-DF3x7jLh-CRuE7H2y.js} +6 -6
- package/dist/assets/{TopExDetailPage-BGoq66Fs-0PJ8BVQb.js → TopExDetailPage-DmFsRNbY-CAPDLdK7.js} +5 -5
- package/dist/assets/{TransactionActivityLogPage-BW-qVpWu-D-8WEz2X.js → TransactionActivityLogPage-BJWKx4q0-BUpcnLzX.js} +3 -3
- package/dist/assets/{TransactionDetailPage-D0tW8GIH-C00b9e62.js → TransactionDetailPage-mtNlJQ2B-IRA0HZOa.js} +26 -26
- package/dist/assets/{TransactionList-T8gAOJc0-Dw9G55NV.js → TransactionList-CLb6vsAw-BNfVqp8k.js} +12 -12
- package/dist/assets/{TransactionListBig-CMjxUKt2-BhSVq9fm.js → TransactionListBig-BzBXZp6s-UPK6nK0b.js} +7 -7
- package/dist/assets/TransactionListPage-DoQrIKK0-cdAGgkOJ.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-Ca7bgryb-CmVBYko3.js → TransactionVendorDetailPage-D-wSEk3k-Bp7ZO9K6.js} +3 -3
- package/dist/assets/{TransferDrawerPage-DG6q94Ch-Cqord4XL.js → TransferDrawerPage-j8FDHpig-DvRwMkL8.js} +29 -29
- package/dist/assets/{TreasuryOverviewPage-YNlUL3px-B_35sSeA.js → TreasuryOverviewPage-2U807bhy-BY8VUFc9.js} +24 -24
- package/dist/assets/{TreasuryPromoPage-CBSYXvme-DpMWnl6i.js → TreasuryPromoPage-BYXuV9oH-vUIAQ6f4.js} +13 -13
- package/dist/assets/TreasuryStatementsPage-CeaExx3z-DsMw65vI.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-Bln01PPe-DpJfleJK.js → TreasuryTaxLetterPage-BrBEeHG1-u74MPbjQ.js} +2 -2
- package/dist/assets/{TrendChart-DjKmnpsm-CS6VXx1C.js → TrendChart-D0GWCIs5-BdQ26pcI.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D2CSrQJG-DdbpQrSL.js → TrendWithTransactions-DcCilwfx-_37SmAif.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-BhgJFJvY-Cs1YOJIy.js → UncategorizedAccountsMappingPage-D5oo8UHa-k_11pvpn.js} +13 -13
- package/dist/assets/{UnitIntegrationPage-CtNIGtOS-DZq9w7mC.js → UnitIntegrationPage-BQp7NQLB-CdKp5-34.js} +6 -6
- package/dist/assets/{UploadAdditionalDocumentOverlay-D44jXTDW-DwZWfezE.js → UploadAdditionalDocumentOverlay-DvAwuTYB-DJVdyOgq.js} +1 -1
- package/dist/assets/Vendor2FAPopup-BVuTJ4jh-Dmi8LqgF.js +1 -0
- package/dist/assets/VendorACHDetailsPage-DkXoubZC-RuWRXgBi.js +1 -0
- package/dist/assets/{VendorDetailPage-DRr5ci0V-Du2p3ojh.js → VendorDetailPage-BNr0Z5jN-B5vvqHLt.js} +23 -23
- package/dist/assets/VendorDomesticWireDetailsPage-CaaOskIa-DGRBzFDy.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-C6mptSEx-B_hdSwqB.js → VendorFiling1099EditablePage-D2_NM9OH-Cg7w3eGu.js} +38 -38
- package/dist/assets/{VendorFirstReviewPage-CLBTSreq-DCVG1u2-.js → VendorFirstReviewPage-DxhhgmEm-DydY5H1-.js} +17 -17
- package/dist/assets/{VendorInternationalWireDetailsPage-oMdWj41X-CmZF5xAN.js → VendorInternationalWireDetailsPage-CUIOT8vU-afAyjr3K.js} +9 -9
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dq9K171L-CWe5L2D4.js +1 -0
- package/dist/assets/{VendorsAccountsSection-Cr_m8Jyi-CiH59Azu.js → VendorsAccountsSection-eef70mQn-_RCZqtQz.js} +1 -1
- package/dist/assets/{VerifyDevice-DrXK_7gG-CEX4QcR9.js → VerifyDevice-CMvsjley-rC4gKQeJ.js} +12 -12
- package/dist/assets/{VideoPlayer-BZe4PqnR-CX1XPKSp.js → VideoPlayer-DKSZUXeK-H0wCm76T.js} +2 -2
- package/dist/assets/{VideoPopup-BaEQAfak-DFKT4R55.js → VideoPopup-BG0G1trN-J1tFoUPS.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-COJ1hjAD-BEWCjyIu.js → WarningsDrawerPage-g_KTQdH7-Br6CzJQ0.js} +8 -8
- package/dist/assets/{ZeniAccountDetailPage-Chx3JWsc-DUW0nJwl.js → ZeniAccountDetailPage-LkheAcW_-BBvGkAZe.js} +18 -18
- package/dist/assets/{ZeniAccountListViewPage-6RhsoQzy-B1q4otvI.js → ZeniAccountListViewPage-DVQHT8ma-B9oJhIl0.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-10K_Qgxx-DnALebZP.js → ZeniAccountNavBarPieces-_Xr6q9sA-BmDV-yHS.js} +4 -4
- package/dist/assets/{ZeniAccountPromoPage-ClXA4h8f-BJADOlI6.js → ZeniAccountPromoPage-C3LR6klI-gvX4BiZe.js} +8 -8
- package/dist/assets/{ZeniAccountSetupPage-7YlBF0nq-BMd9Jfil.js → ZeniAccountSetupPage-BtWnNkH7-Bw5ifbpG.js} +2 -2
- package/dist/assets/{ZeniCopyright-k2F7p5Nn-CWJt4f_H.js → ZeniCopyright-D36dbFYs-DbL5X4NH.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CJY_ei3T-BQBKQlY-.js → ZeniTransferAmountSlider-BYbDaVKJ-CzP9xAeJ.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CNvnwL2z.js → add-to-wallet-DgdBD8_G-CjuRM598.js} +1 -1
- package/dist/assets/{analytics-rms9goNI.js → analytics-DH0nG_g5.js} +1 -1
- package/dist/assets/analyticsHelper-B_RV_zIh.js +1 -0
- package/dist/assets/{analyticsHelper-e2zBYls0-DsW-gRIg.js → analyticsHelper-C4PZ1Adh-DNHzQdSq.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DpZb0ICZ.js → arrow-south-east-round-PEovUgvH-ezr-NUEt.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CBISKKCi.js → auto-transfer-rule-mbafm5D3-DCTaBPDp.js} +1 -1
- package/dist/assets/{chartTypes-D0t0a86R-VgxTrMCK.js → chartTypes-Bf1-edD8-CV1yysKw.js} +1 -1
- package/dist/assets/{commonDimensions-BwCds81U-kEodPKRG.js → commonDimensions-B60Qkfnz-DxGoTy6S.js} +1 -1
- package/dist/assets/{constants-C3kp1fkP.js → constants-HPf8XA_c.js} +1 -1
- package/dist/assets/{core-B_30foAD.js → core-yiE_iOc0.js} +1 -1
- package/dist/assets/{dash.all.min-3-z_MPR8.js → dash.all.min-ZaNNnJRa.js} +1 -1
- package/dist/assets/{detailCommon-CFEglqRw-DcI3Dm8c.js → detailCommon-B4aI_98A-CEMaqjeK.js} +6 -6
- package/dist/assets/{downloadPdf-BfjQscZh-CeCugFTI.js → downloadPdf-DVqVkV_p-CELECDCw.js} +1 -1
- package/dist/assets/{empty-DyZfcN1I.js → empty-BOna3nXl.js} +1 -1
- package/dist/assets/{empty-BB-5X2tp.js → empty-Be-7ZZNG.js} +1 -1
- package/dist/assets/{epic-CXeU0a14.js → epic-CGLWHopS.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-tVleHIYS.js → gift-box-Cmt9OgIZ-yO9QG4ws.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CYR0rF_u.js → graphic-no-data-l-DU4J8fDt-08AJBbmd.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DI-E_991.js → graphic-no-data-net-burn-l-CzmycA0m-BCEcNSIc.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DRFlkqA2.js → handshake-BPg58FML-CS6zI2jd.js} +1 -1
- package/dist/assets/{index-BCh0qUkM.js → index-B05X8Jld.js} +1 -1
- package/dist/assets/{index-BoyomC_-.js → index-BQKUEYMa.js} +1 -1
- package/dist/assets/{index-DVfmIUIY.js → index-DADoWRMM.js} +1 -1
- package/dist/assets/{index-BhfvNbOl.js → index-DEPZWJ5u.js} +1 -1
- package/dist/assets/{index-4xstgUx1.js → index-JQjyoaIW.js} +1 -1
- package/dist/assets/{index-DgHTMbc3.js → index-V6G13z1s.js} +1 -1
- package/dist/assets/{index-BR9aIv1A.js → index-o0j-GZyM.js} +1919 -1951
- package/dist/assets/{lexical-CcL2Fd1i.js → lexical-DlAOaxF0.js} +1 -1
- package/dist/assets/{liveblocks-B8f0lmpe.js → liveblocks-BZyZbty1.js} +1 -1
- package/dist/assets/{lottie-CbICbNKh.js → lottie-HBX4-MpS.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DuPcSiT5-DY73v-Wq.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D84rlDgo-CA3ifSFr.js → mapSectionWithAcOnlyToTreeNode-BZsGUDKa-4VCnAicV.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-br_rslOm-BB79AXDK.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-9dsEoKql-CTAmJm8r.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BpOPNyk--FPICGthL.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BMNyeJt9-CIYXC4NE.js +1 -0
- package/dist/assets/{mui-C7Q1opAD.js → mui-CAW43Z2L.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DfEuZBUZ.js → page-detail-CWX5S47F-Ga1rCJlu.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-Udxivyx_.js → panelSelectedMixin-CzfD5-Zs-C9yV2YE9.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-VWYNvRzB.js → radio-default-CiSgisfh-W2nwrqQ5.js} +1 -1
- package/dist/assets/{react-C5VDu1Xe.js → react-BURuhNYe.js} +1 -1
- package/dist/assets/{react-D-QPbFx5.js → react-BeHv7oF0.js} +1 -1
- package/dist/assets/{react-OE6vDDlS.js → react-C5kAuTha.js} +1 -1
- package/dist/assets/{react-CEhgfqKO.js → react-CkHAqWHd.js} +2 -2
- package/dist/assets/{react-B1skuV78.js → react-Cy_jHEin.js} +1 -1
- package/dist/assets/{react-DODYMrDc.js → react-D70Dpky3.js} +1 -1
- package/dist/assets/{react-zf2AM5gr.js → react-DFbroRVg.js} +1 -1
- package/dist/assets/{react-gaSEjZmU.js → react-QfjvWill.js} +1 -1
- package/dist/assets/{recharts-v_b66Qfi.js → recharts-Duslqfio.js} +1 -1
- package/dist/assets/{sentry-BwoJfpTa.js → sentry-DmQUfSE7.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DlZ9ml05.js → shield-DOlUxcFf-BSj8Drkk.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DOquK-Sn-1uwfHDc8.js +1 -0
- package/dist/assets/{toChartData-BVSCRQYT-CU2W4nbR.js → toChartData-CcG8i49E-invCvTu2.js} +1 -1
- package/dist/assets/{uploadAttachment-D3ybtHtR-D84dG_-j.js → uploadAttachment-B-y1--ww-BcIqRgDj.js} +19 -19
- package/dist/assets/{uploadReceipts-Dge0cNF1-C6WyXewN.js → uploadReceipts-Dge0cNF1-Df2fHyc-.js} +1 -1
- package/dist/assets/{url-o9j2r9Zq.js → url-R21EGndt.js} +1 -1
- package/dist/assets/{url-BcaeVwpg.js → url-hGfZCfig.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-CM12epgA.js → useLongPress-GCK2COYQ-DR25cb_3.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-Cyu4xp0r.js → usp-line-BBd1wKwW-D5-lu6m5.js} +1 -1
- package/dist/assets/{utils-C75CTJHa.js → utils-C-XuhdQM.js} +1 -1
- package/dist/assets/{zeni-epic-state-Deo9yJpd.js → zeni-epic-state-C4Tt6Qhq.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-BGcQ2kEJ-awOqo-nC.js +0 -18
- package/dist/assets/AccountLockedInfoModal-Q_WY8V5e-CDYJtJV8.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-D12dN-9m-CqdZIDlk.js +0 -6
- package/dist/assets/BoxItem-BGrgQ_sW-cYQcyKu_.js +0 -53
- package/dist/assets/ConfettiBurst-C1IgWBaA-CL1o9dY6.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-YZ4WpsDD-CT9Ps13n.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-flz5jtjj-Tj1qKkuc.js +0 -66
- package/dist/assets/EditPeoplePage-BiGeDyr0-BP5iQ9eS.js +0 -55
- package/dist/assets/MagicLinkACHDetailsPage-B5oowluv-pi_Q89s3.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BohAWQ_F-BBgkEcbM.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CRx-EIj--rUZQXW3V.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-q5XLFFKd-IcgduK3D.js +0 -31
- package/dist/assets/MailingDetailsSection-Dle_aLif-C9MEuFNg.js +0 -21
- package/dist/assets/NoDataTable-BroHHbsa-C2KBPOR3.js +0 -8
- package/dist/assets/OverlayContainerPage-D4QU0p4o-CW30kf30.js +0 -11
- package/dist/assets/ReimbursementApprovalRuleDetailPage-BFxCrrVt-CFZDA3-E.js +0 -32
- package/dist/assets/RoleWithToolTip-D74SWfZd-B2mOCrt1.js +0 -22
- package/dist/assets/StatementItem-CS0N92J0-BsnAviIB.js +0 -31
- package/dist/assets/StatementsPage-DL8W4WLu-BH9E8ATR.js +0 -58
- package/dist/assets/TransactionListPage-Bx6qszUl-B-5CDbC_.js +0 -35
- package/dist/assets/TreasuryStatementsPage-D0YaCwv3-PNzj_mHV.js +0 -58
- package/dist/assets/Vendor2FAPopup-BogFaSYy-BlnTHqfY.js +0 -1
- package/dist/assets/VendorACHDetailsPage-Di9QJ0hA-BNrZk8u_.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-DCdG-eGI-IQvY9pai.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CM2bFEbE-B7IN2oYH.js +0 -1
- package/dist/assets/analyticsHelper-DTNFmelW.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-D-j3xrlE-C3TmZv3p.js +0 -1
- package/dist/assets/mapSpacerToTreeNode--_h7d27O-sxGNKTOK.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BqoG_HF--CRhmAO8j.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DPb6o33r-DFBVfNq3.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-CTBKyUYq.js +0 -1
- package/dist/assets/toCOABalancesWithID-mNZ5ym9S-BQfS02g5.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as ze,gZ as hi,iP as pi,iQ as ui,iR as mi,aR as gi,o as i,aP as G,cm as xi,b as Be,p as I,b3 as wi,ct as Ci,iS as fi,iT as yi,bT as ye,cw as Ve,bO as Si,aT as ki,y as C,eF as vi,ba as $i,iU as ji,aU as bi,h as Ii,ai as ee,h0 as Li,am as Y,al as Z,u as p,cS as zi,c$ as Fi,iV as Ai,iW as Pi,R as ft,bY as yt,iX as St,iY as Ri,bR as Bi,cz as Ye,iZ as kt,dw as Di,dx as q,aN as ce,cv as vt,T as $t,i_ as _i,cC as Ei,iH as Ze,bK as jt,bM as bt,i$ as Ti,j0 as Vi,aV as $e,bt as Oi,bZ as Ui,b_ as Ni,j1 as Mi}from"./index-BR9aIv1A.js";import{P as pe,a as f}from"./sentry-BwoJfpTa.js";import{n as o,c as Je}from"./mui-C7Q1opAD.js";import{T as It}from"./RoleWithToolTip-D74SWfZd-B2mOCrt1.js";import{j as Oe}from"./CardNumberSubText-yVfOUJpr-DRIDUYcf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="a77376ab-defd-4cba-b349-657a23a8161d",e._sentryDebugIdIdentifier="sentry-dbid-a77376ab-defd-4cba-b349-657a23a8161d")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Xe={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?[{...Qe,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Qe,Xe,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]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,F=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)})}),V!==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(V)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Xi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[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:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),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:F[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:F[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(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[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:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[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&&A&&R(!0)},onMouseLeave:()=>{A&&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&&A: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(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{b||m(Fe)},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(T,{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(T,{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(Qi,{}),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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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=Yi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Yi=(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)}},T=o(Z)`
|
|
1
|
+
import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,g as ze,gZ as hi,iP as pi,iQ as ui,iR as mi,aR as gi,o as i,aP as G,cm as xi,b as Be,p as I,b3 as wi,ct as Ci,iS as fi,iT as yi,bT as ye,cw as Ve,bO as Si,aT as ki,y as C,eF as vi,ba as $i,iU as ji,aU as bi,h as Ii,ai as ee,h0 as Li,am as Y,al as J,u as p,cS as zi,c$ as Fi,iV as Ai,iW as Pi,R as ft,bY as yt,iX as St,iY as Ri,bR as Bi,cz as Ye,iZ as kt,dw as Di,dx as q,aN as ce,cv as vt,T as $t,i_ as _i,cC as Ei,iH as Je,bK as jt,bM as bt,i$ as Ti,j0 as Vi,aV as $e,bt as Oi,bZ as Ui,b_ as Ni,j1 as Mi}from"./index-o0j-GZyM.js";import{P as pe,a as f}from"./sentry-DmQUfSE7.js";import{n as o,c as Ze}from"./mui-CAW43Z2L.js";import{T as It}from"./RoleWithToolTip-YZusZfiJ-BELittL3.js";import{j as Oe}from"./CardNumberSubText-g2_GoH9f-aD70vkbB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="deeafb97-ae15-4baf-86dc-0aa12c63e74a",e._sentryDebugIdIdentifier="sentry-dbid-deeafb97-ae15-4baf-86dc-0aa12c63e74a")}catch{}})();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)},Qe={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},Qe,et,tt,it,ot]:[Xe,Qe,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]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,F=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)})}),V!==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(V)}${Hi}`})}):null]}),Z=a.type.code,_=$.cardList.tooltip[Z],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Zi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Qi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[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:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),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:F[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:F[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(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[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:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[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&&A&&R(!0)},onMouseLeave:()=>{A&&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&&A: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(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{b||m(Fe)},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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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(T,{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=Yi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Yi=(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)}},T=o(J)`
|
|
2
2
|
color: inherit;
|
|
3
|
-
`,fe=o(
|
|
3
|
+
`,fe=o(J)`
|
|
4
4
|
color: ${I.important};
|
|
5
|
-
`,
|
|
5
|
+
`,Ji=o.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
background-color: ${e=>e.theme.colors.grey5};
|
|
8
8
|
padding-left: ${e=>re.containerPaddingLeft.valuePx(e.windowSize)};
|
|
@@ -39,10 +39,10 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
39
39
|
margin-bottom: ${i.sp3};
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
align-items: center;
|
|
42
|
-
`,
|
|
42
|
+
`,Zi=o.div`
|
|
43
43
|
display: block;
|
|
44
44
|
width: 100%;
|
|
45
|
-
`,
|
|
45
|
+
`,Xi=o(Ui)`
|
|
46
46
|
width: ${i.sp4};
|
|
47
47
|
height: ${i.sp4};
|
|
48
48
|
color: ${I.important};
|
|
@@ -66,7 +66,7 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
66
66
|
width: ${i.sp4};
|
|
67
67
|
height: ${i.sp4};
|
|
68
68
|
color: inherit;
|
|
69
|
-
`,
|
|
69
|
+
`,Qi=o.div`
|
|
70
70
|
display: flex;
|
|
71
71
|
width: 100%;
|
|
72
72
|
justify-content: space-between;
|
|
@@ -90,7 +90,7 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
90
90
|
overflow: hidden;
|
|
91
91
|
text-overflow: ellipsis;
|
|
92
92
|
white-space: nowrap;
|
|
93
|
-
`,oo=o(
|
|
93
|
+
`,oo=o(J)`
|
|
94
94
|
color: ${e=>e.theme.colors.hero};
|
|
95
95
|
flex-grow: 1;
|
|
96
96
|
-webkit-line-clamp: ${e=>re.webkitLineClamp.value(e.windowSize)};
|
|
@@ -108,14 +108,14 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
108
108
|
min-width: ${e=>e.responsiveWidth.valuePx(e.windowSize)};
|
|
109
109
|
position: relative;
|
|
110
110
|
padding-right: ${i.sp6};
|
|
111
|
-
`,ro=o(
|
|
111
|
+
`,ro=o(J)`
|
|
112
112
|
display: flex;
|
|
113
113
|
flex-direction: column;
|
|
114
114
|
color: ${e=>e.theme.colors.hero};
|
|
115
115
|
justify-content: flex-start;
|
|
116
116
|
align-items: flex-end;
|
|
117
117
|
gap: ${e=>e.isLoading?i.sp1:i.sp0};
|
|
118
|
-
`,ao=o(
|
|
118
|
+
`,ao=o(J)`
|
|
119
119
|
color: ${e=>e.theme.colors.hero};
|
|
120
120
|
flex-grow: 1;
|
|
121
121
|
-webkit-line-clamp: ${e=>re.webkitLineClamp.value(e.windowSize)};
|
|
@@ -147,21 +147,21 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
147
147
|
flex-direction: column;
|
|
148
148
|
justify-content: center;
|
|
149
149
|
gap: ${e=>e.isLoading?i.sp1:i.sp0};
|
|
150
|
-
`,lo=o(
|
|
150
|
+
`,lo=o(J)`
|
|
151
151
|
color: ${e=>e.theme.colors.hero};
|
|
152
152
|
max-width: 100%;
|
|
153
153
|
overflow: hidden;
|
|
154
154
|
text-overflow: ellipsis;
|
|
155
155
|
white-space: nowrap;
|
|
156
156
|
margin-bottom: -${i.sp1};
|
|
157
|
-
`,co=o(
|
|
157
|
+
`,co=o(J)`
|
|
158
158
|
color: ${e=>e.theme.colors.hero};
|
|
159
159
|
width: ${e=>e.responsiveWidth.valuePx(e.windowSize)};
|
|
160
160
|
min-width: ${e=>e.responsiveWidth.valuePx(e.windowSize)};
|
|
161
161
|
box-sizing: border-box;
|
|
162
162
|
display: flex;
|
|
163
163
|
align-items: center;
|
|
164
|
-
`,ho=o(
|
|
164
|
+
`,ho=o(J)`
|
|
165
165
|
color: ${e=>e.theme.colors.hero};
|
|
166
166
|
max-width: 100%;
|
|
167
167
|
padding-right: ${i.sp2};
|
|
@@ -184,7 +184,7 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
184
184
|
display: flex;
|
|
185
185
|
align-items: start;
|
|
186
186
|
flex-direction: column;
|
|
187
|
-
`,uo=o(
|
|
187
|
+
`,uo=o(J)`
|
|
188
188
|
color: ${e=>e.theme.colors.hero};
|
|
189
189
|
max-width: 100%;
|
|
190
190
|
overflow: hidden;
|
|
@@ -271,7 +271,7 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
271
271
|
gap: ${i.sp1};
|
|
272
272
|
`,Ft=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(Fi,{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(Ai,{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:V=>Pi({event:V,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);Ft.displayName="VirtualizedCheckBoxField";const So=o.div`
|
|
273
273
|
position: relative;
|
|
274
|
-
`,
|
|
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(Ti,Vi)};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(Ao,{children:t.jsx(Fo,{})}),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(Y,{children:g.value}),t.jsx(dt,{windowSize:l,sortDataValue:s.sortKey,headerdata:g,children:t.jsx(ct,{windowSize:l,children:t.jsx(Ye,{})})})]})]}):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(Y,{children:h.value}),t.jsx(dt,{windowSize:l,sortDataValue:s.sortKey,headerdata:h,children:t.jsx(ct,{windowSize:l,children:t.jsx(Ye,{})})})]}),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;
|
|
@@ -282,20 +282,20 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
282
282
|
display: flex;
|
|
283
283
|
align-items: center;
|
|
284
284
|
box-sizing: border-box;
|
|
285
|
-
padding: ${
|
|
286
|
-
${
|
|
285
|
+
padding: ${X.containerPaddingTop} ${X.containerPaddingRight}
|
|
286
|
+
${X.containerPaddingBottom} ${X.containerPaddingLeft};
|
|
287
287
|
justify-content: space-between;
|
|
288
288
|
`,bo=o(ee)`
|
|
289
289
|
top: ${i.sp0};
|
|
290
290
|
left: ${i.sp0};
|
|
291
|
-
min-height: ${e=>
|
|
292
|
-
max-height: ${e=>
|
|
291
|
+
min-height: ${e=>X.headerHeight.valuePx(e.windowSize)};
|
|
292
|
+
max-height: ${e=>X.headerHeight.valuePx(e.windowSize)};
|
|
293
293
|
width: auto;
|
|
294
294
|
z-index: 2;
|
|
295
295
|
display: flex;
|
|
296
296
|
align-items: center;
|
|
297
297
|
box-sizing: border-box;
|
|
298
|
-
padding: ${e=>`${
|
|
298
|
+
padding: ${e=>`${X.headerLastColumnTopPadding.valuePx(e.windowSize)} ${X.headerLastColumnRightPadding.valuePx(e.windowSize)} ${X.headerLastColumnBottomPadding.valuePx(e.windowSize)} ${X.headerLastColumnLeftPadding.valuePx(e.windowSize)}`};
|
|
299
299
|
background-color: ${e=>e.theme.colors.grey4};
|
|
300
300
|
justify-content: space-between;
|
|
301
301
|
position: sticky;
|
|
@@ -309,10 +309,10 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
309
309
|
align-items: center;
|
|
310
310
|
left: ${i.sp0};
|
|
311
311
|
justify-content: ${e=>e.actualDataValue==="limit"?"flex-end":"flex-start"};
|
|
312
|
-
${e=>e.companyNameSticky?
|
|
312
|
+
${e=>e.companyNameSticky?Ze`
|
|
313
313
|
position: sticky;
|
|
314
314
|
z-index: 1;
|
|
315
|
-
`:
|
|
315
|
+
`:Ze`
|
|
316
316
|
position: static;
|
|
317
317
|
z-index: 0;
|
|
318
318
|
`};
|
|
@@ -365,7 +365,7 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e 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:
|
|
368
|
+
`,{spendManagement:{billPay:{paymentDetails:{feePercent:Do}},chargeCard:he},common:Q}=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(To,{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})},At=({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(Tt,{children:Q.labels.cardName}),t.jsxs(Et,{children:[t.jsx(Vt,{title:e.cardName,children:e.cardName}),t.jsx(Jt,{windowSize:r,children:he.cardDetails.expiryHideOut+Q.strings.space+e.accountLast4})]})]}),t.jsxs(Bt,{children:[t.jsx(Dt,{children:`${he.cardList.header.cardType}${Q.strings.colon}`}),t.jsx(Te,{children:t.jsx(Oe,{cardDetail:e,forDetailPage:!1})})]}),t.jsxs(Wt,{children:[t.jsx(Kt,{children:Q.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(At,{cardDetail:e}):null,t.jsxs(Ot,{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(Yt,{className:"infoIconTooltip"})}):null]})]})})]})})})},To=({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}`:Q.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",V=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(Vo,{children:t.jsx(Oo,{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(Qo,{children:[t.jsxs(Uo,{children:[r.status.code!=="request_on_hold"?t.jsx(At,{cardDetail:r}):null,t.jsxs(Ot,{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(Yt,{className:"infoIconTooltip"})}):null]})]}),r.status.code==="request_on_hold"&&!R?t.jsx(Yo,{children:t.jsx(Jo,{onClick:A=>{A.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(Tt,{children:`${Q.labels.cardName}`}),t.jsxs(Et,{children:[t.jsx(Vt,{title:r.cardName,children:r.cardName}),t.jsx(Jt,{windowSize:B,children:r.status.code==="request_on_hold"?Q.strings.hyphen:he.cardDetails.expiryHideOut+Q.strings.space+r.accountLast4})]})]}),t.jsxs(Bt,{children:[t.jsx(Dt,{children:`${he.cardList.header.cardType}${Q.strings.colon}`}),t.jsx(Te,{children:t.jsx(Te,{children:t.jsx(Oe,{cardDetail:r,forDetailPage:!1})})})]}),t.jsxs(Wt,{children:[t.jsx(Kt,{children:Q.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(Zo,{showMenu:!0,className:"menu-icon",children:(()=>{const A=r.status.code==="locked",O=r.status.code==="closed"||r.status.code==="closed_by_customer",H=m?d&&!V&&!O&&!(A&&r.isLockedByAdmin):d?!V&&W:r.status.code==="request_on_hold",F=S.length>0;return H&&t.jsx(Ve,{menuItems:t.jsx(Xo,{children:t.jsx(zt,{cardDetail:r,isCardControlsEnabled:d,isChargeCardUser:m,setIsMenuOpen:h,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:te=>{F||h(te)},isMenuOpen:k&&!F,menuIconStyles:{cursor:F?"not-allowed":"pointer",opacity:F?.5:1,pointerEvents:F?"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}`};
|
|
@@ -396,7 +396,7 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
396
396
|
align-items: center;
|
|
397
397
|
gap: ${i.sp1};
|
|
398
398
|
flex-grow: 1;
|
|
399
|
-
`,Oo=o(
|
|
399
|
+
`,Oo=o(J)`
|
|
400
400
|
color: ${e=>e.theme.colors.hero};
|
|
401
401
|
display: -webkit-box;
|
|
402
402
|
-webkit-line-clamp: ${e=>De.webkitLineClamp.value(e.windowSize)};
|
|
@@ -492,7 +492,7 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
492
492
|
color: ${e=>e.theme.colors.hero};
|
|
493
493
|
`,Yo=o.div`
|
|
494
494
|
padding-right: 20px;
|
|
495
|
-
`,
|
|
495
|
+
`,Jo=o(bt)`
|
|
496
496
|
color: ${I.link};
|
|
497
497
|
cursor: pointer;
|
|
498
498
|
text-align: right;
|
|
@@ -507,17 +507,17 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
507
507
|
&:hover {
|
|
508
508
|
color: ${e=>e.theme.colors.primary};
|
|
509
509
|
}
|
|
510
|
-
`,
|
|
510
|
+
`,Zo=o.div`
|
|
511
511
|
position: absolute;
|
|
512
512
|
right: -${i.sp2};
|
|
513
513
|
top: ${i.sp2};
|
|
514
|
-
`,Qo=o.div`
|
|
515
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
516
514
|
`,Xo=o.div`
|
|
515
|
+
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
516
|
+
`,Qo=o.div`
|
|
517
517
|
display: flex;
|
|
518
518
|
align-items: end;
|
|
519
519
|
flex-direction: column;
|
|
520
|
-
`,
|
|
520
|
+
`,Jt=o(Y)`
|
|
521
521
|
color: ${e=>e.theme.colors.hero};
|
|
522
522
|
max-width: 100%;
|
|
523
523
|
overflow: hidden;
|
|
@@ -526,7 +526,7 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
526
526
|
display: flex;
|
|
527
527
|
align-items: center;
|
|
528
528
|
gap: ${i.sp1};
|
|
529
|
-
`,Ks=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,Jt=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:V,cardsSelectedForBulkAction:W,firstSelectedCardStatus:A,bulkSubmissionLimit:O,onProceedForBulkActionClick:H,onBulkCloseClick:F,onBulkLockClick:te,setShowBulkChangeSpendLimitPopup:J,onChargeCardResendInviteClick:_,onChargeCardRowClick:de,onReloadCards:K,onColumnSortConfigChanged:oe,handleClearSelection:xe})=>{const b=ie(),Fe=Se(),Ue=ci().analytics,Ne=!!Fe.loggedInUserRole.includes("charge_card_user"),Me=ze(),[,We]=hi(),[ke,He]=f.useState(!1),[Ae,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:Ae||ke,color:I.primaryDark,children:ae.copyToClipBoard.copied})})]}):t.jsxs(ut,{children:[t.jsx($s,{color:Ae?Me.colors.primary:void 0}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Ae&&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:Xt,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:V,cardsSelectedForBulkAction:W,firstSelectedCardStatus:A,bulkSubmissionLimit:O})})})})]});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(A),isLoading:!1,isDisabled:!1,type:"button",onClick:()=>{const U=Qt(A);U&&oi(U)}},cancelBtn:{label:ae.texts.goBack,isDisabled:!1,onClick:xe,style:b==="small"?{}:ns(A)},leftSideComponent:As(W.length,O,b),rightSideComponent:t.jsx(Ds,{firstSelectedCardStatus:A,windowSize:b,setShowBulkChangeSpendLimitPopup:J,onBulkCloseClick:F,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);Jt.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(Jt,{...n,cardsSelectedForBulkAction:e,cardList:s,firstSelectedCardStatus:r,bulkSubmissionLimit:d,isChargeCardSetupEnabled:a,handleClearSelection:g})})},Qt=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(Qt(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{}}},Xt=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})})});Xt.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:V,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:A,onBulkCloseClick:O,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:F,onChargeCardRowClick:te,onReloadCards:J,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:V,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:A,onBulkCloseClick:O,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:F,depositAccountListWithDebitCardIssued:K,showViewForCardUser:S,signedInUser:j,fetchState:c,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:b,receiptBotEmail:x,searchText:w,resendInviteId:g,onReloadCards:J,onChargeCardRowClick:te,uiState:l,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:de})),qs=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)},V=hs(z),W=cs(z),A={width:"100%"},O={backgroundColor:N.colors.grey4},H={...k,width:"100%"},F=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)},J=n===0,_=J?null:h[n-1],de=f.useMemo(()=>J?{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"},[J,_,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(Ft,{checkBox:de,fieldName:"bulkSelectIds",index:n,allCheckBoxValues:F,groupLabelCheckBox:te,mode:v,checkBoxContainerStyle:E,checkBoxIconStyle:O,checkBoxStyle:J?M:V,labelCheckBoxStyle:M,labelStyle:A,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)`
|
|
529
|
+
`,Ks=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,Zt=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:V,cardsSelectedForBulkAction:W,firstSelectedCardStatus:A,bulkSubmissionLimit:O,onProceedForBulkActionClick:H,onBulkCloseClick:F,onBulkLockClick:te,setShowBulkChangeSpendLimitPopup:Z,onChargeCardResendInviteClick:_,onChargeCardRowClick:de,onReloadCards:K,onColumnSortConfigChanged:oe,handleClearSelection:xe})=>{const b=ie(),Fe=Se(),Ue=ci().analytics,Ne=!!Fe.loggedInUserRole.includes("charge_card_user"),Me=ze(),[,We]=hi(),[ke,He]=f.useState(!1),[Ae,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:Ae||ke,color:I.primaryDark,children:ae.copyToClipBoard.copied})})]}):t.jsxs(ut,{children:[t.jsx($s,{color:Ae?Me.colors.primary:void 0}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Ae&&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:Qt,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:V,cardsSelectedForBulkAction:W,firstSelectedCardStatus:A,bulkSubmissionLimit:O})})})})]});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(A),isLoading:!1,isDisabled:!1,type:"button",onClick:()=>{const U=Xt(A);U&&oi(U)}},cancelBtn:{label:ae.texts.goBack,isDisabled:!1,onClick:xe,style:b==="small"?{}:ns(A)},leftSideComponent:As(W.length,O,b),rightSideComponent:t.jsx(Ds,{firstSelectedCardStatus:A,windowSize:b,setShowBulkChangeSpendLimitPopup:Z,onBulkCloseClick:F,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);Zt.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(Zt,{...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{}}},Qt=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})})});Qt.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:V,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:A,onBulkCloseClick:O,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:F,onChargeCardRowClick:te,onReloadCards:Z,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:V,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:A,onBulkCloseClick:O,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:F,depositAccountListWithDebitCardIssued:K,showViewForCardUser:S,signedInUser:j,fetchState:c,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:b,receiptBotEmail:x,searchText:w,resendInviteId:g,onReloadCards:Z,onChargeCardRowClick:te,uiState:l,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:de})),qs=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)},V=hs(z),W=cs(z),A={width:"100%"},O={backgroundColor:N.colors.grey4},H={...k,width:"100%"},F=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)},Z=n===0,_=Z?null:h[n-1],de=f.useMemo(()=>Z?{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"},[Z,_,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(Ft,{checkBox:de,fieldName:"bulkSelectIds",index:n,allCheckBoxValues:F,groupLabelCheckBox:te,mode:v,checkBoxContainerStyle:E,checkBoxIconStyle:O,checkBoxStyle:Z?M:V,labelCheckBoxStyle:M,labelStyle:A,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`
|
|
@@ -658,7 +658,7 @@ import{cd as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,e as
|
|
|
658
658
|
align-items: center;
|
|
659
659
|
box-sizing: border-box;
|
|
660
660
|
color: ${e=>e.theme.colors.primary};
|
|
661
|
-
`,Rs=o(
|
|
661
|
+
`,Rs=o(J)`
|
|
662
662
|
color: ${e=>e.theme.colors.primary};
|
|
663
663
|
`,Bs=o(ee)`
|
|
664
664
|
color: ${I.important};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a8 as
|
|
1
|
+
import{a8 as ze,aw as Re,J as H,g as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u as l,o as i,y as x,jk as De,cd as Be,jl as X,aP as M,b3 as Me,ct as Oe,iS as Ae,bO as Ne,aT as He,al as W,dx as j,gX as Z,aN as V,bT as We,cv as Ee,bR as _e,am as N,cz as Q,p as $,gY as pe,fQ as me,fM as ge,ci as Ve,ai as K,iH as ue,bM as Fe,jm as Ke,i_ as Ue,cC as Ye,aV as z,i$ as Ze,j0 as Ge}from"./index-o0j-GZyM.js";import{a as S,P as G}from"./sentry-DmQUfSE7.js";import{n,c as q}from"./mui-CAW43Z2L.js";import{t as Je}from"./SpendManagementSection-eYrLZK1E-KjAWYeIa.js";import{r as Xe,a as Qe,i as ye,g as qe}from"./SpendManagementListViewPage-s4dPd5hE-IanF8B1T.js";import{ck as xe,G9 as fe}from"./zeni-epic-state-C4Tt6Qhq.js";import{r as et}from"./auto-transfer-rule-mbafm5D3-DCTaBPDp.js";import"./liveblocks-BZyZbty1.js";import"./core-yiE_iOc0.js";import"./recharts-Duslqfio.js";import"./lottie-HBX4-MpS.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.js";import"./StatusSwitcher-DFluM61E-D9icc7U1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b08e66b7-39f0-4dd3-9f9d-33e3c6f26c1c",e._sentryDebugIdIdentifier="sentry-dbid-b08e66b7-39f0-4dd3-9f9d-33e3c6f26c1c")}catch{}})();const E=T.getLocalizedStrings().spendManagement.chargeCard.paymentHistory.header,tt={key:"paymentDate",value:E.paymentDate,sortOrder:"ascending",width:new x(18,18,18,18,18)},it={key:"sourceAccount",value:E.sourceAccount,sortOrder:"ascending",width:new x(30,30,30,30,30)},nt={key:"paymentStatus",value:E.paymentStatus,sortOrder:"ascending",width:new x(22,22,22,22,22)},ot={key:"initiatedBy",value:E.initiatedBy,sortOrder:"ascending",width:new x(18,18,18,18,18)},at={key:"amount",value:E.amount,sortOrder:"ascending",width:new x(12,12,12,12,12)},we=()=>[tt,it,nt,ot,at],k={containerPaddingLeft:i.sp2,containerPaddingRight:i.sp3,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new x(l[0],l[4]),headerLastColumnRightPadding:new x(l[3],l[11]),headerLastColumnBottomPadding:new x(l[0],l[4]),headerLastColumnLeftPadding:new x(l[0],l[11]),headerHeight:new x(Ze,Ge)};function st({companyNameSticky:e,sortConfig:o,onColumnSortConfigChanged:c}){const a=F(),r=H(),[d,g]=S.useState(we());S.useEffect(()=>{const s=[...d];for(const m of s)m.key===o.sortKey?m.sortOrder=o.sortOrder:m.sortOrder="ascending";g(s)},[o.sortKey,o.sortOrder]);const y=(s,m)=>{let C=m;o.sortKey===s&&(C=m==="ascending"?"descending":"ascending"),c(s,C)},h=d.find(s=>s.key===o.sortKey)??d[0],p=s=>d.find(m=>m.key===s)?.value??"",u=d.map(s=>s.key),b=T.getLocalizedStrings().spendManagement.chargeCard.paymentHistory;return r==="small"?t.jsxs(ct,{windowSize:r,children:[t.jsxs(mt,{children:[t.jsx(ut,{children:t.jsx(gt,{})}),t.jsx(_e,{title:b.header.paymentDate,placeholder:b.header.paymentDate,pickerValues:u,valueToLabel:p,selectedValue:o.sortKey,onPickerSelectionChanged:s=>{y(s,"ascending")},optionTextStyle:I.extraSmallRegular,titleTextStyle:I.extraSmallRegular,titleColor:a.colors.primary,selectedOptionColor:a.colors.hero,optionBackgroundColor:a.colors.grey5,downChevronVisible:!1,backgroundColor:a.colors.grey4})]}),t.jsxs(ft,{onClick:()=>y(h.key,h.sortOrder),"data-testid":M("mobile-payment-history-list-sort-clicked",o.sortKey),children:[t.jsx(N,{children:h.value}),t.jsx(ee,{windowSize:r,sortDataValue:o.sortKey,headerdata:h,children:t.jsx(te,{windowSize:r,children:t.jsx(Q,{})})})]})]}):t.jsx(dt,{windowSize:r,children:t.jsx(lt,{children:d.map(s=>s.width.value(r)!==0&&t.jsxs(ht,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:r,children:[t.jsxs(xt,{onClick:()=>y(s.key,s.sortOrder),"data-testid":M("payment-history-list-sort-clicked",o.sortKey),children:[t.jsx(N,{children:s.value}),t.jsx(ee,{windowSize:r,sortDataValue:o.sortKey,headerdata:s,children:t.jsx(te,{windowSize:r,children:t.jsx(Q,{})})})]}),t.jsx(yt,{sortDataValue:o.sortKey,windowSize:r,isVisible:o.sortKey===s.key&&!(o.sortKey==="paymentDate"&&o.sortOrder==="ascending"),children:t.jsx(pt,{onClick:()=>y("paymentDate","ascending"),"data-testid":M("payment-history-list-sort-cancel",o.sortKey)})})]},s.key))})})}const rt=G.memo(st),dt=n.div`
|
|
2
2
|
top: ${i.sp0};
|
|
3
3
|
left: ${i.sp0};
|
|
4
4
|
z-index: 2;
|
|
@@ -46,7 +46,7 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
46
46
|
overflow: hidden;
|
|
47
47
|
padding-left: ${i.sp3};
|
|
48
48
|
padding-right: ${e=>e.actualDataValue==="amount"?i.sp2:i.sp3};
|
|
49
|
-
`,pt=n(
|
|
49
|
+
`,pt=n(Ye)`
|
|
50
50
|
width: ${i.sp3};
|
|
51
51
|
height: ${i.sp3};
|
|
52
52
|
cursor: pointer;
|
|
@@ -67,7 +67,7 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
67
67
|
gap: ${i.sp1};
|
|
68
68
|
display: flex;
|
|
69
69
|
color: ${e=>e.theme.colors.hero};
|
|
70
|
-
`,gt=n(
|
|
70
|
+
`,gt=n(Ue)`
|
|
71
71
|
width: ${i.sp3};
|
|
72
72
|
height: ${i.sp3};
|
|
73
73
|
color: inherit;
|
|
@@ -91,7 +91,7 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
91
91
|
cursor: pointer;
|
|
92
92
|
gap: 5px;
|
|
93
93
|
color: ${e=>e.theme.colors.primary};
|
|
94
|
-
`,B={containerPaddingLeft:new x(l[3],l[2]),containerPaddingRight:new x(l[2],l[3]),containerPaddingTop:new x(l[2],l[3]),containerPaddingBottom:new x(l[2],l[3]),containerMarginLeft:new x(l[4],l[0]),containerMarginRight:new x(l[4],l[0])},{spendManagement:{chargeCard:{paymentHistory:O}}}=T.getLocalizedStrings(),wt=e=>e.base64!==void 0?`${me}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",$t=({repayment:e,accountInfo:o,isLatestFailedPayment:c=!1,isLoading:a=!1,isZeniTenant:r,onRetryPaymentClick:d})=>{const{accountLogo:g,accountType:y,depositAccountLast4:h,depositAccountName:p}=o??{},u=H(),b=S.useCallback(
|
|
94
|
+
`,B={containerPaddingLeft:new x(l[3],l[2]),containerPaddingRight:new x(l[2],l[3]),containerPaddingTop:new x(l[2],l[3]),containerPaddingBottom:new x(l[2],l[3]),containerMarginLeft:new x(l[4],l[0]),containerMarginRight:new x(l[4],l[0])},{spendManagement:{chargeCard:{paymentHistory:O}}}=T.getLocalizedStrings(),wt=e=>e.base64!==void 0?`${me}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",$t=({repayment:e,accountInfo:o,isLatestFailedPayment:c=!1,isLoading:a=!1,isZeniTenant:r,onRetryPaymentClick:d})=>{const{accountLogo:g,accountType:y,depositAccountLast4:h,depositAccountName:p}=o??{},u=H(),b=S.useCallback(Y=>{Y.stopPropagation(),d&&d(e.cardRepaymentId)},[d,e.cardRepaymentId]),s=T.getLocalizedStrings(),m=e.repaymentDate.format(s.dateFormat.visual.MMMDCommaYYYYformat),C=qe(p,h,O.sourceAccountUnknown),v=ye(e),w=e.paidByUser?.email?.endsWith("@zeni.ai")??!1,f=v||!r&&w,R=f?O.autopay:xe(e.paidByUser),D=e.status==="Rejected"||e.status==="Returned",_=e.status==="Sent",U=e.updateTime.format(s.dateFormat.visual.MMMDCommaYYYYformat),P=we();return t.jsx(St,{windowSize:u,children:t.jsx(Ct,{children:t.jsxs(Pt,{children:[t.jsx(kt,{windowSize:u,responsiveWidth:P[0].width,children:t.jsx(j,{isLoading:a,customStyle:{width:"100px",height:"20px",borderRadius:i.sp1},children:_?t.jsx(We,{placement:"bottom-start",title:t.jsxs(Gt,{children:[t.jsxs(oe,{children:[t.jsx(ae,{children:O.initiatedOn}),t.jsx(se,{children:m})]}),t.jsxs(oe,{children:[t.jsx(ae,{children:O.completedOn}),t.jsx(se,{children:U})]})]}),style:{padding:"12px 16px"},display:"block",children:t.jsx(ie,{className:"paymentDate",children:m})}):t.jsx(ie,{className:"paymentDate",children:m})})}),t.jsxs(Lt,{windowSize:u,responsiveWidth:P[1].width,children:[t.jsx(j,{isLoading:a,customStyle:{width:i.sp4,height:i.sp4,borderRadius:"50%"},children:t.jsx(zt,{children:y==="depositAccount"&&p!=null&&p!==""?t.jsx(Rt,{children:t.jsx(It,{color:Z(0)})}):y==="paymentAccount"&&g!==void 0&&(g.base64||g.url)?t.jsx(Bt,{src:wt(g),loading:"lazy"}):t.jsx(Tt,{children:t.jsx(Dt,{})})})}),t.jsx(Mt,{children:t.jsx(j,{isLoading:a,customStyle:{width:"150px",height:"20px",borderRadius:i.sp1},children:p!=null&&p!==""?t.jsxs(ne,{className:"sourceAccount",children:[t.jsx(Ot,{children:p}),h!=null&&h!==""&&t.jsx(At,{children:`•••• ${h}`})]}):t.jsx(ne,{className:"sourceAccount",children:C})})})]}),t.jsx(Nt,{windowSize:u,isLoading:a,responsiveWidth:P[2].width,children:t.jsx(j,{isLoading:a,customStyle:{width:"120px",height:i.sp4,borderRadius:i.sp1},children:t.jsxs(Ht,{children:[t.jsx(Wt,{children:t.jsx(vt,{status:e.status})}),D===!0&&c===!0&&d!=null&&t.jsxs(t.Fragment,{children:[t.jsx(bt,{}),t.jsx(Et,{onClick:b,"data-testid":M("retry-payment",e.cardRepaymentId),children:O.retryPayment})]})]})})}),t.jsxs(_t,{windowSize:u,responsiveWidth:P[3].width,children:[t.jsx(j,{isLoading:a,customStyle:{width:i.sp4,height:i.sp4,borderRadius:"50%"},children:f?t.jsx(Vt,{children:t.jsx(Ft,{})}):t.jsx(Kt,{children:t.jsx(Ee,{personBasic:e.paidByUser,styles:{height:i.sp4,width:i.sp4,minWidth:i.sp4}})})}),t.jsx(j,{isLoading:a,customStyle:{width:"80px",height:"20px",borderRadius:i.sp1,marginLeft:i.sp2},children:t.jsx(Ut,{className:"initiatedBy",children:R})})]}),t.jsx(Yt,{windowSize:u,responsiveWidth:P[4].width,children:t.jsx(j,{isLoading:a,customStyle:{width:"100px",height:"20px",borderRadius:i.sp1},children:t.jsx(Zt,{className:"amount",windowSize:u,title:V("0,0.00",e.amount),children:V("0,0.00",e.amount)})})})]})})})},vt=({status:e,style:o})=>{const c=F(),a=jt(e,c),r=fe(e);return t.jsx(ue,{textColor:a,borderColor:a,text:r,tagStyles:{padding:"1px 6px",...o}})},jt=(e,o)=>{switch(e){case"Sent":return new z($.success);case"Clearing":case"Pending":case"PendingReview":return new z($.alert);case"Rejected":case"Returned":return new z($.important);default:return new z(o.colors.grey1)}},bt=n.div`
|
|
95
95
|
width: ${i.sp1};
|
|
96
96
|
height: ${i.sp1};
|
|
97
97
|
background-color: ${e=>e.theme.colors.grey1};
|
|
@@ -144,14 +144,14 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
144
144
|
overflow: hidden;
|
|
145
145
|
text-overflow: ellipsis;
|
|
146
146
|
white-space: nowrap;
|
|
147
|
-
`,
|
|
147
|
+
`,Lt=n.div`
|
|
148
148
|
display: flex;
|
|
149
149
|
align-items: center;
|
|
150
150
|
column-gap: ${i.sp2};
|
|
151
151
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
152
152
|
box-sizing: border-box;
|
|
153
153
|
padding-left: ${i.sp3};
|
|
154
|
-
`,
|
|
154
|
+
`,zt=n.div`
|
|
155
155
|
display: flex;
|
|
156
156
|
align-items: center;
|
|
157
157
|
justify-content: center;
|
|
@@ -271,13 +271,13 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
271
271
|
height: ${i.sp4};
|
|
272
272
|
border-radius: 50%;
|
|
273
273
|
background-color: ${e=>e.theme.colors.grey3};
|
|
274
|
-
`,
|
|
274
|
+
`,Ut=n(W)`
|
|
275
275
|
color: ${e=>e.theme.colors.hero};
|
|
276
276
|
max-width: 100%;
|
|
277
277
|
overflow: hidden;
|
|
278
278
|
text-overflow: ellipsis;
|
|
279
279
|
white-space: nowrap;
|
|
280
|
-
`,
|
|
280
|
+
`,Yt=n.div`
|
|
281
281
|
display: flex;
|
|
282
282
|
align-items: center;
|
|
283
283
|
justify-content: flex-end;
|
|
@@ -291,7 +291,7 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
291
291
|
overflow: hidden;
|
|
292
292
|
text-overflow: ellipsis;
|
|
293
293
|
white-space: nowrap;
|
|
294
|
-
`,
|
|
294
|
+
`,Gt=n.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
flex-direction: column;
|
|
297
297
|
gap: ${i.sp1};
|
|
@@ -304,7 +304,7 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
304
304
|
color: ${e=>e.theme.colors.hero};
|
|
305
305
|
`,se=n(K)`
|
|
306
306
|
color: ${$.brandColorPearl};
|
|
307
|
-
`,
|
|
307
|
+
`,Jt=new z(Z(0)).lighten(.3).hex(),{spendManagement:{chargeCard:{paymentHistory:A}}}=T.getLocalizedStrings(),Xt=e=>e.base64!==void 0?`${me}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Qt=({repayment:e,accountInfo:o,isLatestFailedPayment:c=!1,isLoading:a=!1,isZeniTenant:r,onRetryPaymentClick:d})=>{const{accountLogo:g,accountType:y,depositAccountLast4:h,depositAccountName:p}=o??{},u=S.useCallback(f=>{f.stopPropagation(),d&&d(e.cardRepaymentId)},[d,e.cardRepaymentId]),b=T.getLocalizedStrings(),s=e.repaymentDate.format(b.dateFormat.visual.MMMDCommaYYYYformat),m=ye(e),C=e.paidByUser?.email?.endsWith("@zeni.ai")??!1,v=m||!r&&C?A.autopay:xe(e.paidByUser),w=e.status==="Rejected"||e.status==="Returned";return t.jsx(ti,{children:t.jsxs(ii,{children:[t.jsxs(ni,{children:[t.jsx(oi,{children:t.jsx(j,{isLoading:a,customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:y==="depositAccount"&&p!=null&&p!==""?t.jsx(ai,{children:t.jsx(si,{color:Z(0)})}):y==="paymentAccount"&&g!==void 0&&(g.base64||g.url)?t.jsx(li,{src:Xt(g),loading:"lazy"}):t.jsx(ri,{children:t.jsx(di,{})})})}),t.jsxs(ci,{children:[t.jsx(hi,{children:t.jsx(j,{isLoading:a,customStyle:{width:"150px",height:"20px",borderRadius:i.sp1},children:t.jsx(pi,{className:"sourceAccount",children:p!=null&&p!==""?p:A.sourceAccountUnknown})})}),t.jsx(mi,{children:t.jsx(j,{isLoading:a,customStyle:{width:"120px",height:"16px",borderRadius:i.sp1},children:t.jsx(gi,{children:h!=null&&h!==""?`Checking •••• ${h}`:""})})}),t.jsx(ui,{children:t.jsx(j,{isLoading:a,customStyle:{width:"150px",height:"16px",borderRadius:i.sp1},children:t.jsxs(yi,{children:[A.header.initiatedBy,":"," ",t.jsx(xi,{className:"initiatedBy",children:v})]})})}),t.jsx(fi,{children:t.jsx(j,{isLoading:a,customStyle:{width:"150px",height:"16px",borderRadius:i.sp1},children:t.jsxs(wi,{children:[A.header.paymentDate,":"," ",t.jsx($i,{className:"paymentDate",children:s})]})})})]})]}),t.jsxs(vi,{children:[t.jsx(ji,{children:t.jsx(j,{isLoading:a,customStyle:{width:"100px",height:"20px",borderRadius:i.sp1},children:t.jsx(bi,{className:"amount",title:V("0,0.[00]",e.amount),children:V("0,0.[00]",e.amount)})})}),t.jsx(Si,{children:t.jsx(j,{isLoading:a,customStyle:{width:"120px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ci,{children:t.jsx(Pi,{children:t.jsx(qt,{status:e.status})})})})}),w===!0&&c===!0&&d!=null&&t.jsx(ki,{children:t.jsx(Li,{onClick:u,"data-testid":M("retry-payment",e.cardRepaymentId),children:A.retryPayment})})]})]})})},qt=({status:e,style:o})=>{const c=F(),a=ei(e,c),r=fe(e);return t.jsx(ue,{textColor:a,borderColor:a,text:r,tagStyles:{padding:"1px 6px",...o}})},ei=(e,o)=>{switch(e){case"Sent":return new z($.success);case"Clearing":case"Pending":case"PendingReview":return new z($.alert);case"Rejected":case"Returned":return new z($.important);default:return new z(o.colors.grey1)}},ti=n.div`
|
|
308
308
|
display: flex;
|
|
309
309
|
background-color: ${e=>e.theme.colors.grey5};
|
|
310
310
|
padding: ${i.sp3};
|
|
@@ -354,7 +354,7 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
354
354
|
align-items: center;
|
|
355
355
|
justify-content: center;
|
|
356
356
|
border-radius: 50%;
|
|
357
|
-
background-color: ${
|
|
357
|
+
background-color: ${Jt};
|
|
358
358
|
`,si=n(pe)`
|
|
359
359
|
min-width: inherit;
|
|
360
360
|
width: ${i.sp6};
|
|
@@ -474,14 +474,14 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
474
474
|
display: flex;
|
|
475
475
|
align-items: center;
|
|
476
476
|
justify-content: flex-end;
|
|
477
|
-
`,
|
|
477
|
+
`,Li=n(Fe)`
|
|
478
478
|
color: ${$.link};
|
|
479
479
|
cursor: pointer;
|
|
480
480
|
text-decoration: underline;
|
|
481
481
|
&:hover {
|
|
482
482
|
text-decoration: underline;
|
|
483
483
|
}
|
|
484
|
-
`,
|
|
484
|
+
`,zi={lastListItemHeight:new x(200,114)},Ri=T.getLocalizedStrings(),{spendManagement:{chargeCard:re},common:Ii}=Ri,de=50,Ti=64,Di=351,Bi=86,$e=G.memo(({fetchState:e,repaymentListWithAccountInfo:o,sortConfig:c,searchText:a,isZeniTenant:r,onColumnSortConfigChanged:d,onReloadPayments:g,onRetryPaymentClick:y})=>{const h=H(),p=S.useCallback(v=>v===0?de:h==="small"?132:X,[h]),u=S.useMemo(()=>{let v=de+Ti;for(let w=1;w<=o.length;w++)v+=p(w);return v},[o.length,p]),b=S.useMemo(()=>window.innerHeight-Di,[]),s=u>b,m=S.useRef(null);S.useEffect(()=>{m.current?.resetAfterIndex(0)},[h]);const C=()=>e==="Error"?t.jsxs(Hi,{children:[t.jsx(Wi,{onClick:g,"data-testid":M("payment-history-list-reload"),children:t.jsx(Ei,{})}),t.jsx(_i,{children:Ii.reloadPage.label})]}):e==="Completed"&&o.length===0?t.jsx(Ki,{children:t.jsx(Ui,{children:a!==""?re.paymentHistory.noPaymentHistoryMatchedSearch:re.paymentHistory.noPaymentHistoryAvailable})}):t.jsx(je,{children:t.jsx(Vi,{windowSize:h,availableHeight:b,isListTooLarge:s,children:t.jsx(Me,{children:({height:v,width:w})=>t.jsx(Oe,{ref:m,height:v,itemCount:o.length+1,innerElementType:ve,itemSize:p,estimatedItemSize:X,itemKey:f=>f===0?"header":o[f-1].repayment.cardRepaymentId,width:w,overscanCount:Ae,initialScrollOffset:0,children:f=>t.jsx(Mi,{...f,repaymentListWithAccountInfo:o,sortConfig:c,isZeniTenant:r,onColumnSortConfigChanged:d,onRetryPaymentClick:y})})})})});return t.jsx(Ni,{fetchState:e,children:C()})},(e,o)=>e.repaymentListWithAccountInfo===o.repaymentListWithAccountInfo&&e.fetchState===o.fetchState&&e.sortConfig.sortKey===o.sortConfig.sortKey&&e.sortConfig.sortOrder===o.sortConfig.sortOrder&&e.searchText===o.searchText&&e.isZeniTenant===o.isZeniTenant);$e.displayName="ChargeCardPaymentHistoryContent";const ve=S.forwardRef((e,o)=>{const{children:c,style:a,...r}=e;return t.jsx(je,{ref:o,style:{...a,width:"auto"},...r,children:t.jsx(Fi,{children:c})})});ve.displayName="ChargeCardPaymentHistoryInnerElement";const Mi=({index:e,style:o,repaymentListWithAccountInfo:c,sortConfig:a,isZeniTenant:r,onColumnSortConfigChanged:d,onRetryPaymentClick:g})=>{const y=H(),h=e===0,p=h?null:c[e-1],u=p?.repayment??null,b=p?.accountInfo,s=S.useMemo(()=>{if(c.length===0)return null;const w=c.map(R=>R.repayment),f=w.slice(1).reduce((R,D)=>D.repaymentDate.isAfter(R.repaymentDate)?D:R,w[0]);return f.status==="Rejected"||f.status==="Returned"?f.cardRepaymentId:null},[c]),m={...o,width:"100%"};if(h)return t.jsx(le,{style:m,className:"spend-management-list-item",children:t.jsx(rt,{companyNameSticky:!1,sortConfig:a,onColumnSortConfigChanged:d})});if(u==null)return null;const C=s!==null&&u.cardRepaymentId===s,v=y==="small"?Qt:$t;return t.jsx(le,{style:m,className:"spend-management-list-item",children:t.jsx(v,{repayment:u,accountInfo:b,isLatestFailedPayment:C,isZeniTenant:r,onRetryPaymentClick:g})})},Oi=({fetchState:e,repaymentListWithAccountInfo:o,sortConfig:c,onColumnSortConfigChanged:a,onReloadPayments:r,searchText:d,isZeniTenant:g,onRetryPaymentClick:y})=>(Be({componentName:"charge_card_payment_history.list",enabled:e==="Completed"}),t.jsx($e,{fetchState:e,repaymentListWithAccountInfo:o,sortConfig:c,onColumnSortConfigChanged:a,onReloadPayments:r,searchText:d,isZeniTenant:g,onRetryPaymentClick:y})),Ai=G.memo(Oi),Ni=n.div`
|
|
485
485
|
margin: ${e=>e.fetchState==="Error"?"auto":"unset"};
|
|
486
486
|
display: block;
|
|
487
487
|
height: 100%;
|
|
@@ -518,7 +518,7 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
518
518
|
${({isListTooLarge:e,windowSize:o})=>(e||o==="small")&&`
|
|
519
519
|
.spend-management-list-item:last-of-type {
|
|
520
520
|
/* NOTE: !important is used to ensure padding is applied to the last item in the virtualized list. */
|
|
521
|
-
height: ${
|
|
521
|
+
height: ${zi.lastListItemHeight.valuePx(o)} !important;
|
|
522
522
|
padding-bottom: ${i.sp8};
|
|
523
523
|
}
|
|
524
524
|
`}
|
|
@@ -548,16 +548,16 @@ import{a8 as Le,aw as Re,J as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u
|
|
|
548
548
|
flex-direction: row;
|
|
549
549
|
justify-content: center;
|
|
550
550
|
align-items: flex-end;
|
|
551
|
-
`,
|
|
551
|
+
`,Ui=n(W)`
|
|
552
552
|
display: flex;
|
|
553
553
|
color: ${e=>e.theme.colors.grey2};
|
|
554
|
-
`,ce={contentContainerMargin:new x(l[3],l[4],l[8])},{spendManagement:{chargeCard:{paymentHistory:he}},common:
|
|
554
|
+
`,ce={contentContainerMargin:new x(l[3],l[4],l[8])},{spendManagement:{chargeCard:{paymentHistory:he}},common:Yi}=T.getLocalizedStrings(),pn=({repaymentList:e,fetchState:o,sortConfig:c,accountInfoByAccountId:a,searchText:r,filters:d,isZeniTenant:g,onBackClick:y,repaymentHistoryUsers:h,onColumnSortConfigChanged:p,onFiltersChange:u,onReloadPayments:b,onRetryPaymentClick:s,onSearchTextChanged:m,onClickMenuIcon:C,downloadParams:v,downloadState:w,updateDownloadStateHandler:f})=>{const R=ze().analytics,D=Re(),[_,U]=S.useState(!1),P=H(),Y=F(),be=r===""&&(d?.categories==null||d.categories.length===0||d.categories.every(L=>L.values==null||L.values.length===0)),J=o==="Completed"&&be&&e.length===0,Se=L=>{U(L)},Ce={entity:"charge_card_payment_history",showNewButtonOnNavbar:!1,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:Yi.strings.empty,hideSearchBtn:!1,disableSearch:J,disableFilters:J,searchTextBoxStyle:{right:"86px"},moreIconContainerStyle:{paddingRight:l[4]},isSearchOpen:_,searchPlaceHolder:he.searchPlaceHolder,searchText:r,showSettingsIcon:!1,showSettingsIconOnNavbar:!1,showStatementButtonOnNavbar:!1,showPayEarlyButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,showDownloadIcon:!0,onDownloadClick:async()=>{f("In-Progress");try{await De({localeID:"en-US",fileType:"excel",entity:"charge_card_payment_history",filter:{filters:d,searchText:r},...v})}finally{f("Completed")}},disableDownloadButton:w==="In-Progress"||o!=="Completed"||e.length===0,analytics:R,onSearchOpen:Se,filterIconContainerStyle:{...P==="small"&&{position:"static",paddingRight:"10px"}},onSearchTextChanged:m,onClickSetupIcon:()=>{},onClickStatementsIcon:()=>{},downloadState:w,onNewButtonClick:()=>{},onClickPayEarlyIcon:()=>{},onMenuOpen:()=>{},filters:d,onFiltersChange:u,createdByUserListLoaded:o==="Completed",getFilterOptions:()=>Qe("charge_card_payment_history",h,D.loggedInUserRole??[],[],a),renderDropdownOptionIcon:Xe},Pe=t.jsx(Je,{spendManagementSectionProps:Ce}),ke=he.pageTitle,Le=S.useMemo(()=>e.map(L=>({repayment:L,accountInfo:L.paymentAccountId!=null&&L.paymentAccountId!==""?a?.[L.paymentAccountId]:void 0})),[e,a]);return t.jsxs(Zi,{children:[t.jsx(Ie,{title:ke,showBackButton:!0,showMenuIcon:P==="medium-compact"||P==="small",onClickMenuIcon:C,titleTextStyles:P==="small"?{...I.standardMedium.cssObject}:void 0,style:{zIndex:3},onBackClick:y,rightSideComponent:Pe,isSearchOpen:_,hideSearchBtn:!1,scrollableContent:void 0,source:"ChargeCardPaymentHistoryPage",backgroundColor:Y.colors.grey4}),o==="Not-Started"||o==="In-Progress"?t.jsx(Te,{fetchState:o,styles:{margin:"auto"}}):t.jsx(Gi,{windowSize:P,children:t.jsx(Ai,{fetchState:o,repaymentListWithAccountInfo:Le,sortConfig:c,onColumnSortConfigChanged:p,onReloadPayments:b,searchText:r,isZeniTenant:g,onRetryPaymentClick:s})})]})},Zi=n.div`
|
|
555
555
|
display: flex;
|
|
556
556
|
flex-direction: column;
|
|
557
557
|
width: 100%;
|
|
558
558
|
height: 100vh;
|
|
559
559
|
overflow: auto;
|
|
560
|
-
`,
|
|
560
|
+
`,Gi=n.div`
|
|
561
561
|
margin-top: ${i.sp4};
|
|
562
562
|
margin-right: ${e=>ce.contentContainerMargin.valuePx(e.windowSize)};
|
|
563
563
|
margin-bottom: ${i.sp0};
|