@zeniai/web-cockpit-ui 1.14.62-qa → 1.14.63-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-C9GD0hCH-BjgIixGR.js → ACHDetailsPage-QkOAxB4j-BwmsngrU.js} +1 -1
- package/dist/assets/{AIPerformancePage-B0Adp0wg-BENvGSD8.js → AIPerformancePage-POiv6dgZ-BKgnVS14.js} +1 -1
- package/dist/assets/{AccountInfoPage-BSxUquf3-CVXqrpiM.js → AccountInfoPage-DpzAjyd0-CKJdFzLl.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-8V3PDzEc-Co1a4vxf.js → AccountInfoPageContent-BrPhtN53-CjBlOxg5.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-7bhpExx3-DWUCsu-t.js → AccountLockedInfoModal-D1ZHYvRy-C9tYFXcu.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-jTH8M9iA-Aoa7lkw7.js → AccountReconDetailsDrawerPage-CubIO376-CtKM65LB.js} +12 -12
- package/dist/assets/{AccountRow-BpoPw0Cq-6rjrYRQx.js → AccountRow-DTdcfEa8-U3MpTECA.js} +12 -12
- package/dist/assets/{AccountsPromoCardStack-gsG5tf8_-DHp17pPu.js → AccountsPromoCardStack-CwDbKaNJ-1hCsTiEX.js} +9 -9
- package/dist/assets/{AddAddressForCardDrawer-CMF3Il-u-Cpb6hsZ-.js → AddAddressForCardDrawer-CniAAcX8-D363vOD8.js} +2 -2
- package/dist/assets/{AddToWalletPage-CpWP7Kpn-CSqVUMRE.js → AddToWalletPage-DOG6ubAY-BGRDDIey.js} +12 -12
- package/dist/assets/{AgingReportsPage-DEQ2pO0Y-yRrwplt0.js → AgingReportsPage-Dbtn1PKG-CbUghZ5Y.js} +5 -5
- package/dist/assets/{AllUserItems-D0SR0Oue-DtcPCB6_.js → AllUserItems-Dth5Uovp-tGFNdHax.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-BA-wKCiF-DQrPP1v5.js → ApAgingDetailPage-C6C-aYG7-Dbv3SH4D.js} +2 -2
- package/dist/assets/{AppBasePage-DFn4TCyI-Cc5DLAg0.js → AppBasePage-CtnXt_EV-BSPuX6dn.js} +6 -6
- package/dist/assets/{AppDrawerContent-CBG4Ybue-ByqvB6J0.js → AppDrawerContent-DnrQdYVp-D2qog1EV.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-CpjHazzI-Cks7NfZS.js → ApprovalRulesSettingsPage-BEOQl822-CbUsx0mD.js} +4 -4
- package/dist/assets/{ArAgingChart-BDISnDae-CyesneCU.js → ArAgingChart-B9rpCcBM-q8jdb__E.js} +5 -5
- package/dist/assets/{ArAgingDetailPage-Cgqf_0fL-Cq89JxEo.js → ArAgingDetailPage-BKsCQCpu-jNIcx6Tl.js} +1 -1
- package/dist/assets/{AttachmentView-X1k01Vtr-B7_QU-hD.js → AttachmentView-DEE6AWkv-B1086jMd.js} +1 -1
- package/dist/assets/{BankAccountSection-CrxSDsgw-ktUyjJcn.js → BankAccountSection-D8_5fjrd-BCE6WYWF.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-Dpt8yOKi-CoN6e059.js → BankAccountWarningSection-CMrRr8aa-BT7FUFGR.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-Uzhaoi7g-mD1d5FDq.js → BankConnectionsSettingsPage-BUwkPoK_-Baxx5R77.js} +41 -41
- package/dist/assets/{BillDetailPage-DcyikS7i-BdNFKGGl.js → BillDetailPage-DcGxex6B-g3MH8yQi.js} +10 -10
- package/dist/assets/{BillPayApprovalRuleDetailPage-aM8F15Nu-CKOcRZID.js → BillPayApprovalRuleDetailPage-B4OuTcAA-Bkq-QU-5.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B46FwPVR-D-g0Yiyo.js → BillPayApprovalRulesPage-DaCdVMRx-DKi7a9ar.js} +4 -4
- package/dist/assets/{BillPayPromoPage-DtVzdlsy-C9OmQlVi.js → BillPayPromoPage-DBlGsv9D-BevFRtNT.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-BKdNiQf7-Cc4m50Uo.js → BillPaySetUpPage-A4zcT_mP-BkNiC1Xc.js} +2 -2
- package/dist/assets/{BillingSettingsPage-3AgPTFzN-DilAG0t1.js → BillingSettingsPage-CujTn-BW-DGU5_gJ4.js} +1 -1
- package/dist/assets/BillsBulkReviewDrawerPage-Cs779Xc4-D5R5rhwS.js +1 -0
- package/dist/assets/{BoxItem-Dsoq6QyZ-B-WatMIw.js → BoxItem-imggFWL_-C8e_yZct.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DSkBV_II-D7barBYM.js → BusinessVerificationPage-U_lU2O0k-B63nfdcn.js} +4 -4
- package/dist/assets/{CardNumberSubText-Crk5WDQr-DYNdDxcR.js → CardNumberSubText-Ct0mJOMk-DQXdeyZe.js} +2 -2
- package/dist/assets/{CashbackDetailPage-BZAFRMGW-DHwMsEnN.js → CashbackDetailPage-GMncsgDy-DzCIgTYK.js} +17 -17
- package/dist/assets/ChargeCardDetailPage-BQvjt_rh-Dc8yPFPr.js +1462 -0
- package/dist/assets/{ChargeCardListPage-CIV1XQK1-D6N1OvLo.js → ChargeCardListPage-BJgzJ53p-D4N85pU_.js} +9 -9
- package/dist/assets/{ChargeCardListTable-Dxn8Y17P-YJscyrM8.js → ChargeCardListTable-BD4N2FtO-DrTuKtln.js} +49 -49
- package/dist/assets/{ChargeCardPromoPage-B6yTGsIY-DmZGR1jp.js → ChargeCardPromoPage-BQMfHfHp-DuUPUl6t.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-HHFdpsmJ-D4Ma056g.js → ChargeCardSetupPage-DO1cXZF4-CWlYdj31.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-tuV67f3k-CgpUYkHr.js → ChargeCardStatementsPage-0rBvkIU1-NpKk50PX.js} +5 -5
- package/dist/assets/ChargeCardUtils-Cy5rZlIH-BILI0sIl.js +1 -0
- package/dist/assets/{ChaseOverlay-B2pqFXTT-Df2Ezv28.js → ChaseOverlay-Dqg_bWdn-C8vTlyWM.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-DDXZ3m54-qWYP5ABn.js → CheckDepositDrawerPage-BzzWhLjb-CVED41XL.js} +15 -15
- package/dist/assets/{CollapsableReportTable-BLDh7Osv-DfaYwLVz.js → CollapsableReportTable-CwhNUlX5-CGrdBCh6.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Dg3sn5Sh-Cu3GX4FJ.js → CompanyOfficerDetailsSection-BHXF7g6M-BrZ1ZKbF.js} +1 -1
- package/dist/assets/{CompanyPassportCard-2HnVDVVi-zGfwT0EU.js → CompanyPassportCard-Dd4Modb9-C23aPg6a.js} +6 -6
- package/dist/assets/{CompanyPassportPage-DlGllnaL-QVy4YULg.js → CompanyPassportPage-Bh2JSIAW-rjC4pxXL.js} +20 -20
- package/dist/assets/{CompleteProfile-kFGIESms-Dkk-z6t0.js → CompleteProfile-CAtziP70-DuSPFP1s.js} +1 -1
- package/dist/assets/{ConfettiBurst-D5IgJ5P3-E65_x1se.js → ConfettiBurst-DvSGcRZX-C_PjMyTg.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D8IFFcdA-StbUiZfz.js → CreateOrEditVendorPage-Csorfbun-CNt6xuOL.js} +9 -9
- package/dist/assets/{CreditCardPaymentDrawerPage-Xu0psAw0-D0gZCtxQ.js → CreditCardPaymentDrawerPage-DAw1GyrP-BNs6qoGC.js} +12 -12
- package/dist/assets/{CreditCardPaymentPlgSection-CqvgalYj-CUdjrO8S.js → CreditCardPaymentPlgSection-HikR7OVv-BCZXDr8I.js} +6 -6
- package/dist/assets/{CurrencySelectField-hwgVPqTt-B9olol6q.js → CurrencySelectField-BW71th1E-DHxO3UVa.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CBFhWSJz-D-QIEuJy.js → CustomerOnboardingActivationPage-t4YirGGH-BQcXqlYq.js} +7 -7
- package/dist/assets/CustomerOnboardingContainerPage-BFE2DU3a-C9v_itD5.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B2q2tdnD-Dfe_cett.js → CustomerOnboardingDetailPageSkeleton-CWWXhhJn-DacLmheB.js} +10 -10
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsNq90nq-DjNSGy04.js → CustomerOnboardingNoStepsPage-YdWEMnwL-BhhMIya_.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-BbGV3jtT-Bcwahrb4.js → CustomerOnboardingPage-C-WAF_MK-0e07LkOq.js} +5 -5
- package/dist/assets/{CustomerOnboardingProductSuitePage-R2PJEOqZ-BTVhd0Re.js → CustomerOnboardingProductSuitePage-CxwXw5lA-8eL0zyfM.js} +10 -10
- package/dist/assets/{Dashboard-Cw4u8_9e-DbBlW7ig.js → Dashboard-Cp0UY0M3-DrmBKQin.js} +1 -1
- package/dist/assets/{DashboardReportPage-ls_MMfAh-Cmzgt21g.js → DashboardReportPage-Bsr_1Vfu-CrZaa5CE.js} +6 -6
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C_9jGJQn-CW-EldD9.js → DashboardSidebarBackgroundAnimation-BvgNiAXF-CXiqzdPm.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BLgpyexV-DDsSN6D0.js → DepositAccTransactionItem-Cm5lhc_H-Db7mfK10.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-r4UVSUOl-WIgqF2oB.js → DepositAccTransactionListPage-CHwS-_Nr-DFBxFwkp.js} +3 -3
- package/dist/assets/{DomesticWireDetailsPage-BSXsHwf5-CyInh1Li.js → DomesticWireDetailsPage-mqJgiAC--4FLLq-KS.js} +1 -1
- package/dist/assets/{DownloadOverlay-DKpj3Vwl-jr69kEjZ.js → DownloadOverlay-DwPR_SsY-EUTGOsKd.js} +21 -21
- package/dist/assets/{DrawerPage-Cxz5I3Mb-CqHagX_L.js → DrawerPage-CR2L2ry3-DOZs2EHb.js} +14 -14
- package/dist/assets/{EditPeoplePage-Dbsa013z-BNUYit4n.js → EditPeoplePage-DiNxeKXK-BiaRAv0O.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-Clpj3Hjz-CVKUzeEp.js → EditReimbursementDetailPage-5TJ4Spw1-CpwzkfQj.js} +64 -64
- package/dist/assets/{EntityDetailPage-C73BtWIp-D8wpNNd0.js → EntityDetailPage-CYDIH-NA-wQQfd0jW.js} +3 -3
- package/dist/assets/{EntitySummarySection-BQA0g-pF-CbGAmbu8.js → EntitySummarySection-Cv7t21-t-DI0hIJYP.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-BxEr0k8F-BHqR9wAC.js → ExpenseAutomationOverviewPage-Cwl9dV2--DfcmKBVV.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-BS4M9nkW-ufxTsQbf.js → ExpenseAutomationPage-LMBRJxAv-Vn9lo85n.js} +26 -26
- package/dist/assets/{ExpressPayPage-Buxb2M1i-B9fAQlVA.js → ExpressPayPage-CCF0jSlI-C7_sWp9b.js} +6 -6
- package/dist/assets/{FeaturePreviewPage-ClfFYnHb--gXnRz9K.js → FeaturePreviewPage-POKsqSnu-BhWwdsL7.js} +2 -2
- package/dist/assets/{FollowStepsSection-CkQ-g4YK-dr6FAmOd.js → FollowStepsSection-BZdlZelr-Dgb2aUZZ.js} +21 -21
- package/dist/assets/{GlobalReviewListPage-C_DbsHsA-C6phfeex.js → GlobalReviewListPage-BnmMh-Bc-CYAA0kUn.js} +13 -13
- package/dist/assets/{HelpButton-B0ZBXPeh-BorgPtfn.js → HelpButton-Cp2LXxyy-C5Y06Y1n.js} +4 -4
- package/dist/assets/{InformationCardStack-DYdCt7zr-r9qdYJzs.js → InformationCardStack-CiYqiW7_-CbY8PLVD.js} +4 -4
- package/dist/assets/{InsightsCardStack-BSHQznep-BMkYmRhd.js → InsightsCardStack-BnVrehfR-CN-oMur2.js} +2 -2
- package/dist/assets/{InsightsSection-C37BKIiK-RNlgGAPQ.js → InsightsSection-BpVW6ov6-CBRdcxmz.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-DHAdlHrq-CMWIwf7T.js → IntegrationsSettingsPage-CaAahFPb-BYVW6C7U.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-B64WNt28-uVg2-6eP.js → InternationalWireSwiftDetailsPage-DcwbldkC-BB32EMRa.js} +8 -8
- package/dist/assets/{InternationalWireVerificationPage-D7ttGovC-D_Anpl8k.js → InternationalWireVerificationPage-7XDbU2GY-Dyfkxo3B.js} +7 -7
- package/dist/assets/{InviteFormPage-BhbGM4dC-C9bKqONR.js → InviteFormPage-Dgv7jdgF-DVviW_Nt.js} +1 -1
- package/dist/assets/{InvitePageListView-CyRlLv60-B6D8YcCC.js → InvitePageListView-DlpINjRJ-BMeTuOsJ.js} +11 -11
- package/dist/assets/InvitePeoplePage-0YsY4Il7-B0pE52_Y.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BPPgbS-r-BHrBDY3d.js → InvoiceUploadSection-DzzjJVfz-KKaBZftU.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-D_qQkkfo-CSsCg8Db.js → IssueChargeCardPage-BeB9egJS-Buw9rvK5.js} +20 -20
- package/dist/assets/{LabeledAddressValue-EshVNGGW-Cb2uc0dZ.js → LabeledAddressValue-D6advpnC-6YH6AS3A.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-kgieouBM-DzNGhdp0.js → LabeledAddressValueField-DRBoA2eb-CWryzMa2.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-CWABc6OK-ClMxBsh8.js → LabeledControlledCheckBoxField-Bu2WHgAQ-BgnuqupP.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B5o1KUJj-BE5hL6KZ.js → LabeledCreatableSingleSelectField-DcdF286I-C7Y6s3yv.js} +7 -7
- package/dist/assets/{LabeledDocumentField-BrXpwWfM-CV_EVAk8.js → LabeledDocumentField-B25RLa6I-jFD7YVyX.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-Cepl3y9a-BvaaA7qv.js → LabeledDropDownFormattedTextField-DoK5Zfc1-HbMH9wCe.js} +1 -1
- package/dist/assets/{LabeledText-BmFLymPb-D54qw5X_.js → LabeledText-depbwNsM-DXrsYHkA.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CBbnTiwl-DEzr-9kh.js → LabeledUserSingleSelectWithSubtitlesField-BURpXN_N-Xj7wxd7w.js} +8 -8
- package/dist/assets/{LabeledZeniRolesDropDownField-Da9mc-0B-C30aMHy1.js → LabeledZeniRolesDropDownField-TbyaA8M3-DTROc_uU.js} +7 -7
- package/dist/assets/{LinkJETransactionPage-DIhsx2g--Cp1GItTZ.js → LinkJETransactionPage-BITHs1CJ-Y1_ePi-m.js} +7 -7
- package/dist/assets/{LockCardPage-BA4Lj9Iy-DqX49N3M.js → LockCardPage-DPBKHSos-D1Lau_ZJ.js} +15 -15
- package/dist/assets/{LowBalancePopup-B1pTBmAF-DMsL8GAq.js → LowBalancePopup-D2G3wpXv-BCydjVKG.js} +3 -3
- package/dist/assets/{MagicLinkACHDetailsPage-BxzbJBWO-Wf8wA2-U.js → MagicLinkACHDetailsPage-Be7GMhBd-D3Y_9hTy.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DB2tBUoV-BR3Unx7y.js → MagicLinkDomesticWireDetailsPage-C9d2Ea6m-DiWMiwF8.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-0B5pD_Iw-BHMic-Rc.js → MagicLinkInternationalWireDetailsPage-B2M9WztX-B6F5ppQ2.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-3I1CRYrj-Ca4cu0D0.js → MagicLinkSuccessPage-DPb0UoGh-y5M5nnWg.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BKgwdBLy-BT7ZZklR.js → MagicLinkTitleSection-Cc-MU2bJ-DSi2szeX.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BwEd_J6R-DkUc8Lj3.js → MailingDetailsSection-8mj7Lslp--SKJjx0D.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-BpRpGSe6-DG2NWgbm.js → MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js} +1 -1
- package/dist/assets/{Menu-De_gaVnj-BIvr4lYg.js → Menu-ndvXF6cX-B4y3KuMr.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-lChXBDCb-DU5DVhxi.js → MyBankConnectionsSettingsPage-DuZFVLYx-VAbH3B5M.js} +4 -4
- package/dist/assets/{MyPendingActivationChargeCardListPage-D3di8BeS-DKJC-Hoj.js → MyPendingActivationChargeCardListPage-DDIlU_fs-C-bYuxLR.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-CYI4yK6I-lkqzLNrj.js → MyProfileSettingsPage-CccRK9mD-BRFADFUO.js} +3 -3
- package/dist/assets/{NavBarWithPicker-DcELUvq0-C5N2yjZ3.js → NavBarWithPicker-D_MqRubB-D8dMZBv7.js} +6 -6
- package/dist/assets/{NavigationArrow-W1nVj2KC-CB3-WbW2.js → NavigationArrow-CfMVfLD8-BQnWEdPn.js} +1 -1
- package/dist/assets/{NavigationDots-BKVFhe2Y-BXA4iaa-.js → NavigationDots-E2eEHB86-BK4Og9YA.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DRrjJgZt-B35zjD-s.js → NewGlobalMerchantPage-vXrz_DRg-Wc9088Ea.js} +7 -7
- package/dist/assets/{NoDataChart-BzSCComh-TCsmvHP1.js → NoDataChart-CpocQ1Pa-ChFzAJ2R.js} +1 -1
- package/dist/assets/{NoDataTable-CGWMbvak-D6mzGtG9.js → NoDataTable-937mkn0a-D0ksTITz.js} +2 -2
- package/dist/assets/{NotFoundPage-DfRFngFV-Cvi4-w7R.js → NotFoundPage-BmxF81mT-B9r6velH.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BTJH62-O-BjEAiv3V.js → NotificationSettingsPage-DyOyHW6d-DehMDImE.js} +20 -20
- package/dist/assets/{NotificationsListConfig-DPutUxp3-B-f9mabS.js → NotificationsListConfig-DVs7cr0d-wmSn6l3s.js} +1 -1
- package/dist/assets/{NotificationsPage-xu6A1hVF-PuoNi3-5.js → NotificationsPage-ntuZjRm--CaQvtRPb.js} +24 -24
- package/dist/assets/{OpExByVendorPage-BeO7iMry-ChO0CL0F.js → OpExByVendorPage-1MOdxG9V-BhrPpCQQ.js} +5 -5
- package/dist/assets/{OverlayContainerPage-CU1AAMcq-C97TuWW_.js → OverlayContainerPage-CU1AAMcq-lFQCSe-G.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-1qSy3_Ke-BkoKktpJ.js → PandLWithForecastPage-n4fiElGl-BTwNmE3c.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DnObHdjD-Dxj4lh2G.js → PaymentAccountSetupBillingAddressSection-CXcwA0ON-KeSy0gEv.js} +8 -8
- package/dist/assets/{PeoplePage-CPqz8R9j-B70ykgrs.js → PeoplePage-BvZkMpjW-D7ElTICV.js} +13 -13
- package/dist/assets/{PortfolioAllocationFormPage-C9ZM9oUf-DJFvzQ8r.js → PortfolioAllocationFormPage-B7AKufjq-BCZV66E3.js} +3 -3
- package/dist/assets/{PortfolioDetails-BJBNPfcI-BtgJ2hbs.js → PortfolioDetails-C85yA52O-BcnUojwW.js} +7 -7
- package/dist/assets/{ProductsCarousel-Ctx00P5D-BTEQtLvG.js → ProductsCarousel-ixHCR9AW-BHD947gD.js} +4 -4
- package/dist/assets/{PromoBaseCards-BGYdfmx6-Dtat0fyc.js → PromoBaseCards-DiefKKcS-CVepNaw-.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-B9yKv9hq-DoLz2hIj.js → QBOConnectionDialog-DV-xC7Yc-6uoxl-nC.js} +1 -1
- package/dist/assets/{QBOSetupSection-CTMSCXwv-CxubTHdL.js → QBOSetupSection-CI8cHWjq-CNHezBrT.js} +8 -8
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BtZUsK7H-Dzk_bMVd.js → ReimbursementApprovalRuleDetailPage-CqnCqZ5F-MbrRP60p.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DNBHPoIZ-BlN6Jytr.js → ReimbursementApprovalRulesPage-DxoNMA62-DOLuIxNO.js} +2 -2
- package/dist/assets/{ReimbursementDetailPage-BxZ5ijHe-zurm2_Gr.js → ReimbursementDetailPage-CTvPAxMB-BlP7rQJ5.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-D284EkRZ-BcIIXtzk.js → ReimbursementPromoPage-DcxPNTHd-asHPfKWE.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-BzR91_eW-CldLpq0B.js → ReimbursementSetUpPage-SQo-xrwo-BuAAGp_P.js} +7 -7
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BMo9fFp7-CeRLlDSr.js → ReimbursementsBulkReviewDrawerPage-y4v-8gQs-b-mXMP5z.js} +1 -1
- package/dist/assets/{ReloadCard-CGUNX_x4-Dbmvt1Tw.js → ReloadCard-CWZU9IDv-lCmqRueL.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-BVAek1Ui-C_slHbQ8.js → ReportTableViewSelector-t3pgCiJb-DU7QbDSE.js} +5 -5
- package/dist/assets/{ReportsPage-BzKbMWV4-nYQmduZj.js → ReportsPage-D82gQH-e-Ckp9VR2p.js} +1 -1
- package/dist/assets/{RevenueChart-CPUrVR7y-BAuj7ArI.js → RevenueChart-BMgI2BHK-I-njStGG.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-B74yrCe2-VCXhCYb5.js → ReviewDetailsPage-Dc7dY-VA-CxSy8KVL.js} +3 -3
- package/dist/assets/{ReviewOverlay-DQvXSDYM-DyF1UXZO.js → ReviewOverlay-Bra2W5Jg-C_PWInnU.js} +4 -4
- package/dist/assets/{RoleWithToolTip-MwI_BmVq-Ds1A2gyK.js → RoleWithToolTip-DJ15AsI3-p10xCSND.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CbkRYKjG-CqEHYps-.js → ScheduleDetailsFixedAssetsPage-DoH2eyLG-BrozO2ME.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CCRspH3Y-CPpcmXd0.js → ScheduleDetailsPage-BM1Paa1W-C0ySlnA2.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-55zYXNwF-DUs0PlZE.js → ScheduleSequenceTable-C8UB3y1y-CNI-a_wl.js} +7 -7
- package/dist/assets/{ScreenRoutes-Ba12Q0HX.js → ScreenRoutes-_3xGjUU-.js} +41 -41
- package/dist/assets/{SetUpAccountSection-IgQjKWEr-Bxp6vD4c.js → SetUpAccountSection-BGdUkQz3-D6CAjYv7.js} +7 -7
- package/dist/assets/{SetUpDefaultSection-shC3qOy6-C49ph3xE.js → SetUpDefaultSection-C4NnRO65-C0fyZc92.js} +10 -10
- package/dist/assets/{SignIn-CZGmLYjH-DHcDyA10.js → SignIn-BrHA4sLj-DDyEN7b5.js} +1 -1
- package/dist/assets/SignInScreen-Cx7qc3RP.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-BhTnQtma-CCGqdAUI.js → SpendManagementListViewPage-Dqb0zspN-DreMX5hh.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-DpnIM6Nc-1ZBcChPe.js → SpendManagementPerTabPage-D5xIpojr-P0_AnHoz.js} +14 -14
- package/dist/assets/{SpendManagementSection-Hjvwgkt0-D6Yvpvz4.js → SpendManagementSection-C2iof2aM-Bp9C8eeM.js} +7 -7
- package/dist/assets/{SpendMgmtSetupAccountSection-CAWyEGGM-D_Y5M2MY.js → SpendMgmtSetupAccountSection-Dz3vQC2g-P6jfr6Bz.js} +6 -6
- package/dist/assets/{StatementItem-D8v_Laju-B8GfRoNo.js → StatementItem-BOgmKBTq-DcvmbOpL.js} +5 -5
- package/dist/assets/{StatementsPage-CEw-9UyR-BcqGoaDU.js → StatementsPage-ClMtBDGf-DWR5BFTu.js} +4 -4
- package/dist/assets/{StatusSwitcher-DoSCydJG-CoBpz-TS.js → StatusSwitcher-QwlvHg3_-DRNWj6rt.js} +2 -2
- package/dist/assets/{SubTabSwitcher-Ct1DqfgC-Bibz1hGv.js → SubTabSwitcher-CiJ1FPk5-CEwKyb-x.js} +1 -1
- package/dist/assets/{SummaryCard-CHUbuF_0-CaC0zRzW.js → SummaryCard-D1B_1H2X-Lh7q95p7.js} +1 -1
- package/dist/assets/{TaskManagementPage-Ddox5Vwh-D5D4JTV5.js → TaskManagementPage-DibwJCOk-BF0_AhRU.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-CiOSsTU--CLsRcOaL.js → TimeRangeSwitcher-Ci3SxLOE-anbVhnvw.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-D1k1Zf_U-DTp5-FTG.js → TimeframeSwitcher-DSRKJTq1-BG9pQPgY.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DXbaoDe6-yq3iZa4P.js → TimeframeSwitcherWithToggle-D_BNOfdQ-BKTbCmic.js} +1 -1
- package/dist/assets/{TopExCard-D4ZDqXZg--brQ_iDE.js → TopExCard-C5622MiP-2KEQHijQ.js} +4 -4
- package/dist/assets/{TopExDetailPage-BdPAcKwH-BWvPRR7r.js → TopExDetailPage-qOhQ-KAG-fVnbyWbs.js} +6 -6
- package/dist/assets/{TransactionDetailPage-BcjGxHy8-CFPVJudJ.js → TransactionDetailPage-DaCUZuc0-DAUodm_m.js} +13 -13
- package/dist/assets/{TransactionList-BSuMEtB3-CoYwx3Sx.js → TransactionList-CzdU-NQx-D6gdr6x7.js} +6 -6
- package/dist/assets/{TransactionListBig-MY_ZxyR3-BlvU2xVi.js → TransactionListBig-Bq7XI_xx-DjK27aH5.js} +11 -11
- package/dist/assets/{TransactionListPage-CWGrWDjK-1Jg_-UFD.js → TransactionListPage-CZDewehT-BcmO71OJ.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-DDNK9KrI-navYrc-G.js → TransactionVendorDetailPage-Bf5UUIC6-DQ0SU60H.js} +3 -3
- package/dist/assets/{TransferDrawerPage-vK0YoMro-D8CyUH8N.js → TransferDrawerPage-yQE7GKl_-BiU7RlMv.js} +17 -17
- package/dist/assets/{TreasuryOverviewPage-CQsUti1c-Ba68New5.js → TreasuryOverviewPage-CisB53k8-CkomXNIa.js} +20 -20
- package/dist/assets/{TreasuryPromoPage-Bp72hKEs-NvukScyd.js → TreasuryPromoPage-BfISVj15-BKUZCqqQ.js} +11 -11
- package/dist/assets/{TreasurySetupPage-BUKsU3nh-kC1qSXYk.js → TreasurySetupPage-SN-3mAFw-C_4PPIWf.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-Cryv1PNX-DcPIDQHV.js → TreasuryStatementsPage-DGyug1wv-CZKI-qyS.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-BMYTdYa5-Dj8UaOnF.js → TreasuryTaxLetterPage-BRvcOhJZ-BeVUPN4i.js} +5 -5
- package/dist/assets/{TreasuryTransferOrReviewPage-B9VwyDJa-CRkrhgNd.js → TreasuryTransferOrReviewPage-H5ohs_5r-DHIAJoBr.js} +30 -30
- package/dist/assets/{TrendChart-CqYeWLeV-htWF6W-p.js → TrendChart-ohr8bK1l-B5dRIvEy.js} +4 -4
- package/dist/assets/{TrendWithTransactions-xn1fvlLO-CerDbg3P.js → TrendWithTransactions-D5eTj9Ca-BjYM3mpG.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-B_aOzm4v-h1El0pw_.js → UncategorizedAccountsMappingPage-3NGCCdAA-DC14oDOB.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-B6LF_f7C-DF3yoEHz.js → UnitIntegrationPage-B6FOsf88-BTafkfwm.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-BlKvE3tT-BlWsi76J.js → UploadAdditionalDocumentOverlay-CH9x8nx2-CEXAXlCj.js} +1 -1
- package/dist/assets/Vendor2FAPopup-D7455GFK-DU0-h-ac.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-CncDplWQ-DgiLqsWr.js → VendorACHDetailsPage-CXoxi6Qp-CrJbaYWf.js} +1 -1
- package/dist/assets/{VendorDetailPage-POan4Fo8-Y_NsPNBu.js → VendorDetailPage-C6BgYb-c-BaTlvY1P.js} +6 -6
- package/dist/assets/{VendorDomesticWireDetailsPage-B1bT0W9o-NrQ5VuHO.js → VendorDomesticWireDetailsPage-DXfnCFu1-Bhf2lnL-.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C25iYV4w-DxH6WOrq.js → VendorFiling1099EditablePage-ByESLoQK-C5wgo9Qc.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-DY035p5C-B1sylU9C.js → VendorFirstReviewPage-iNPtUFNw-BbgJ63Tq.js} +27 -27
- package/dist/assets/{VendorInternationalWireDetailsPage-DN_mcAqY-DOkydboS.js → VendorInternationalWireDetailsPage-CqgGFU1K-CKX6n49-.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BaXgGRdu-BQ0UaHHd.js → VendorInternationalWireSwiftDetailsPage-CNzft0dg-D-n290kY.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C2UiqXC0-BiErhc3o.js → VendorsAccountsSection-DCWhoqAP-DHjXIFFo.js} +2 -2
- package/dist/assets/{VerifyDevice-C7BWrAZ3-DJDQCedc.js → VerifyDevice-DvJEmcUq-BD1k6-81.js} +4 -4
- package/dist/assets/{VideoPlayer-BYkDTMkS-BkX7RMiM.js → VideoPlayer-Cp5DBUTp-n0gfwB0a.js} +1 -1
- package/dist/assets/{VideoPopup-Chye3pds-BhmRCag7.js → VideoPopup-97jTEw9t-C5kzDaxd.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-Cx-gJdnW-Cid-1Ovb.js → WarningsDrawerPage-CMy4FFqt-zNFC-DvY.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-BrXe6Kao-DZTAFx3o.js → ZeniAccountDetailPage-mzHK5HUV-B2AMGiBu.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CJnHvk5a-BNB1bM3y.js → ZeniAccountListViewPage-BeN4AKFd-B0XSIJvm.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-BdLOT9UG-Cokn4oEN.js → ZeniAccountNavBarPieces-Db9bLk29-BybXcA-l.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-B1I9l833-BElJ8cLy.js → ZeniAccountPromoPage-By02sVg0-BAnhqfjw.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-CitVJnZC-B9X3YQBI.js → ZeniAccountSetupPage-DeDgKig1-lQnp_HAL.js} +1 -1
- package/dist/assets/{ZeniCopyright-DbQka65R-7ZVyc7Yg.js → ZeniCopyright-Bfc0Yl56-xItwPVZ8.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dzxu82Xw-Ml8lBAJZ.js → ZeniTransferAmountSlider-DzeU3D5r-Dnm1GguJ.js} +6 -6
- package/dist/assets/{analyticsHelper-BDL8_RGj.js → analyticsHelper-CuIvasD7.js} +1 -1
- package/dist/assets/{analyticsHelper-DgJDMdal-DIavhrOw.js → analyticsHelper-Cx9PlTZt-BYpG33i-.js} +1 -1
- package/dist/assets/{chartTypes-D1j_l919-8QXMvJet.js → chartTypes-BoA9fCCZ-7xW-fVbz.js} +1 -1
- package/dist/assets/{commonDimensions-DDu54g8x-D5ikJlMO.js → commonDimensions-BCUrWcBL-vTG5ZzmA.js} +1 -1
- package/dist/assets/{detailCommon-DXjUFoA1-D9_LRSFU.js → detailCommon-CFA4p6RP-B16mjiFN.js} +4 -4
- package/dist/assets/{downloadPdf-DChYYVaW-ZZ55IYdY.js → downloadPdf-DZ5WQt0r-Bylb-lK-.js} +1 -1
- package/dist/assets/{index-BqKtrbrP.js → index-6DHFBk74.js} +1721 -1710
- package/dist/assets/{mapLoadingInProgressToTreeNode-BC5IH44--JB4URfny.js → mapLoadingInProgressToTreeNode-DQf-1sg7-B5MxQ8jl.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CUXssP6r-DZ4GfGRq.js → mapSectionWithAcOnlyToTreeNode-D0W1f0wZ-D3CjHikv.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-sdzfy8cu-ofjZ3Daw.js → mapSpacerToTreeNode-Dzbv_N4o-CAPOe3mv.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DgOZfixy-Cw5iWKMh.js → mapTimeframeBalancesToTreeNode-2yWiGglp-Dy8oBMmS.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BROieqal-BJxVRna_.js → mapTimeframeBalancesToTreeNode-COS_auLN-CKgStlR5.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-bXb7WXAq-D3DuUS-Q.js → mapTimeframeHeaderLoadingInProgressToTreeNode-NCujclSc-BUwl6Oy8.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DqhuI8hD-CWs6fXMS.js → toCOABalancesWithID--3a-7Ohb-Dq8zIbZX.js} +1 -1
- package/dist/assets/{toChartData-DZPFiNsp-WPnYC-7p.js → toChartData-KZ92y9KA-BJN5TA9Q.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D5AxfiPH-CHzWVnh9.js → treasuryColorHelper-ChFJTPyg--ivM0q9A.js} +1 -1
- package/dist/assets/{uploadAttachment-D04Fz4F1-CuQRw56o.js → uploadAttachment-BzeeOF-1-oKdmjDH7.js} +14 -14
- package/dist/assets/{uploadReceipts-9DTOr0BG-BFe5S3is.js → uploadReceipts-9DTOr0BG-BAqIaRxY.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/BillsBulkReviewDrawerPage-CFK7g3R1-CNk8ph3a.js +0 -1
- package/dist/assets/ChargeCardDetailPage-DXUoIbZa-_LUfh5la.js +0 -1813
- package/dist/assets/ChargeCardUtils-BeG5m9OQ-BnJ39MTB.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-D4zUp7hX-DHmsrQe_.js +0 -1
- package/dist/assets/InvitePeoplePage-DYpb33z0-YHgrNKtY.js +0 -12
- package/dist/assets/SignInScreen-DqIw82_G.js +0 -1
- package/dist/assets/Vendor2FAPopup-BLzf9zxl-u_Gb4R4i.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as Fe,fX as hi,iM as pi,iN as ui,iO as mi,aQ as gi,o as i,aM as G,cA as xi,C as Be,h as I,b3 as wi,cH as Ci,iP as fi,iQ as yi,c5 as ye,bZ as Si,aS as ki,y as C,eT as vi,b9 as $i,iR as ji,aT as bi,M as Ii,ai as ee,fZ as Li,an as Y,am as Z,u as p,d3 as Fi,dc as zi,iS as Ai,iT as Pi,O as ft,ca as yt,iU as St,iV as Ri,c3 as Bi,cM as Ye,dN as Di,dO as q,aN as de,cJ as kt,P as vt,iW as _i,cP as Ei,iG as Ze,bP as $t,bX as jt,iX as Ti,iY as Oi,aU as $e,bx as Vi,cb as Ui,cc as Ni,iZ as Mi}from"./index-BqKtrbrP.js";import{w as he,b as f,n as o,i as Je}from"./vendor-Bs1fkIUX.js";import{P as Oe}from"./Menu-De_gaVnj-BIvr4lYg.js";import{T as bt}from"./RoleWithToolTip-MwI_BmVq-Ds1A2gyK.js";import{j as Ve}from"./CardNumberSubText-Crk5WDQr-DYNdDxcR.js";import{_ as It}from"./ChargeCardUtils-BeG5m9OQ-BnJ39MTB.js";const ge=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=ne.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:b}}=ne.getLocalizedStrings(),se={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:$,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),L=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",U=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=L||U,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,N=f.useCallback(()=>{$(a.id,S)},[a.id]),T=It(a)/a.limit.amount*100,M=a?.cardHolderUserId===w.userId,z=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:de("0,0.[00]",H),className:"amountToUtilize",children:de("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),J=a.type.code,_=b.cardList.tooltip[J],le=_!=null?M?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:N,"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(kt,{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(bt,{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:b.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(Ve,{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(vt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:le,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"&&!M?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":G("send-reminder",a.id),children:b.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:de("0,0.[00]",a.limit),children:de("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&&z&&R(!0)},onMouseLeave:()=>{z&&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&&z:a.status.code==="request_on_hold",j=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!j,variant:"standard",title:b.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{j||m(ze)},isMenuOpen:h&&!j,menuIconStyles:{height:"auto",cursor:j?"not-allowed":"pointer",opacity:j?.5:1,pointerEvents:j?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Ft=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:b.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(A,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:b.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Fe(),d=Yi(e,r),c=ne.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)}},W=o(Z)`
|
|
1
|
+
import{j as t,cr as ni,aa as li,O as ne,ad as di,q as ie,ax as ye,a9 as ci,c as ze,fX as hi,iM as pi,iN as ui,iO as mi,aQ as gi,o as i,aM as G,cA as xi,C as Be,h as I,b3 as wi,cH as Ci,iP as fi,iQ as Si,c5 as Se,bZ as yi,aS as ki,y as C,eT as vi,b9 as $i,iR as ji,aT as bi,M as Ii,ai as ee,fZ as Li,an as Z,am as Y,u as p,d3 as zi,dc as Ai,iS as Fi,iT as Pi,b as ft,ca as St,iU as yt,iV as Ri,c3 as Bi,cM as Ze,dN as Di,dO as q,aN as de,cJ as kt,P as vt,iW as _i,cP as Ei,iG as Ye,bP as $t,bX as jt,iX as Ti,iY as Oi,aU as $e,bx as Vi,cb as Ni,cc as Ui,iZ as Mi}from"./index-6DHFBk74.js";import{w as he,b as f,n as o,i as Je}from"./vendor-Bs1fkIUX.js";import{P as Oe}from"./Menu-ndvXF6cX-B4y3KuMr.js";import{T as bt}from"./RoleWithToolTip-DJ15AsI3-p10xCSND.js";import{j as Ve}from"./CardNumberSubText-Ct0mJOMk-DQXdeyZe.js";import{_ as It}from"./ChargeCardUtils-Cy5rZlIH-BILI0sIl.js";const ge=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=ne.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:b}}=ne.getLocalizedStrings(),se={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:y,onChargeCardRowClick:$,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[S,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),L=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=L||N,v=ie(),E=!!ye().loggedInUserRole.includes("charge_card_user")||x,U=f.useCallback(()=>{$(a.id,y)},[a.id]),T=It(a)/a.limit.amount*100,M=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,z=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:de("0,0.[00]",H),className:"amountToUtilize",children:de("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),J=a.type.code,_=b.cardList.tooltip[J],le=_!=null?M?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Yi,{windowSize:v,children:t.jsx(Ji,{onClick:U,"data-testid":G("card-row",a.id),children:t.jsxs(Xi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(kt,{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(bt,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:z[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(So,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:b.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:z[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx(vt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(Se,{display:"flex",title:le,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"&&!M?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":G("send-reminder",a.id),children:b.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[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:de("0,0.[00]",a.limit),children:de("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",j=l.length>0;return xe&&t.jsx(Se,{open:S&&!h&&!j,variant:"standard",title:b.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{j||m(Ae)},isMenuOpen:h&&!j,menuIconStyles:{height:"auto",cursor:j?"not-allowed":"pointer",opacity:j?.5:1,pointerEvents:j?"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"?t.jsxs(t.Fragment,{children:[t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(F,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:b.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?t.jsxs(t.Fragment,{children:[t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(F,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(F,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(F,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(F,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(F,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:b.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Zi(e,r),c=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ye,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ye,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Zi=(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)}},W=o(Y)`
|
|
2
2
|
color: inherit;
|
|
3
|
-
`,fe=o(
|
|
3
|
+
`,fe=o(Y)`
|
|
4
4
|
color: ${I.important};
|
|
5
|
-
`,
|
|
5
|
+
`,Yi=o.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
background-color: ${e=>e.theme.colors.grey5};
|
|
8
8
|
padding-left: ${e=>se.containerPaddingLeft.valuePx(e.windowSize)};
|
|
@@ -42,11 +42,11 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
42
42
|
`,Ji=o.div`
|
|
43
43
|
display: block;
|
|
44
44
|
width: 100%;
|
|
45
|
-
`,Qi=o(
|
|
45
|
+
`,Qi=o(Ni)`
|
|
46
46
|
width: ${i.sp4};
|
|
47
47
|
height: ${i.sp4};
|
|
48
48
|
color: ${I.important};
|
|
49
|
-
`,Re=o(
|
|
49
|
+
`,Re=o(yt)`
|
|
50
50
|
width: ${i.sp4};
|
|
51
51
|
height: ${i.sp4};
|
|
52
52
|
color: ${I.important};
|
|
@@ -58,11 +58,11 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
58
58
|
width: ${i.sp4};
|
|
59
59
|
height: ${i.sp4};
|
|
60
60
|
color: inherit;
|
|
61
|
-
`,rt=o(
|
|
61
|
+
`,rt=o(St)`
|
|
62
62
|
width: ${i.sp4};
|
|
63
63
|
height: ${i.sp4};
|
|
64
64
|
color: inherit;
|
|
65
|
-
`,at=o(
|
|
65
|
+
`,at=o(Ui)`
|
|
66
66
|
width: ${i.sp4};
|
|
67
67
|
height: ${i.sp4};
|
|
68
68
|
color: inherit;
|
|
@@ -90,7 +90,7 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
90
90
|
overflow: hidden;
|
|
91
91
|
text-overflow: ellipsis;
|
|
92
92
|
white-space: nowrap;
|
|
93
|
-
`,oo=o(
|
|
93
|
+
`,oo=o(Y)`
|
|
94
94
|
color: ${e=>e.theme.colors.hero};
|
|
95
95
|
flex-grow: 1;
|
|
96
96
|
-webkit-line-clamp: ${e=>se.webkitLineClamp.value(e.windowSize)};
|
|
@@ -108,14 +108,14 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b 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(Y)`
|
|
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(Y)`
|
|
119
119
|
color: ${e=>e.theme.colors.hero};
|
|
120
120
|
flex-grow: 1;
|
|
121
121
|
-webkit-line-clamp: ${e=>se.webkitLineClamp.value(e.windowSize)};
|
|
@@ -147,21 +147,21 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b 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(Y)`
|
|
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(Y)`
|
|
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(Y)`
|
|
165
165
|
color: ${e=>e.theme.colors.hero};
|
|
166
166
|
max-width: 100%;
|
|
167
167
|
padding-right: ${i.sp2};
|
|
@@ -184,7 +184,7 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
184
184
|
display: flex;
|
|
185
185
|
align-items: start;
|
|
186
186
|
flex-direction: column;
|
|
187
|
-
`,uo=o(
|
|
187
|
+
`,uo=o(Y)`
|
|
188
188
|
color: ${e=>e.theme.colors.hero};
|
|
189
189
|
max-width: 100%;
|
|
190
190
|
overflow: hidden;
|
|
@@ -192,7 +192,7 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
192
192
|
white-space: nowrap;
|
|
193
193
|
`,mo=o(ee)`
|
|
194
194
|
color: ${e=>e.theme.colors.hero};
|
|
195
|
-
`;o(
|
|
195
|
+
`;o(Z)`
|
|
196
196
|
display: flex;
|
|
197
197
|
gap: ${i.sp2};
|
|
198
198
|
align-items: center;
|
|
@@ -247,7 +247,7 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
247
247
|
right: ${i.sp2};
|
|
248
248
|
`,fo=o.div`
|
|
249
249
|
margin: 5px ${i.sp0};
|
|
250
|
-
`,
|
|
250
|
+
`,F=o(ee)`
|
|
251
251
|
${({windowSize:e})=>qi.moreItemFont.style(e)}
|
|
252
252
|
height: ${i.sp6};
|
|
253
253
|
display: flex;
|
|
@@ -260,7 +260,7 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
260
260
|
background-color: ${e=>e.hoverImportant===!0?I.importantLight:e.theme.colors.background};
|
|
261
261
|
color: ${e=>e.theme.colors.primary};
|
|
262
262
|
}
|
|
263
|
-
`,
|
|
263
|
+
`,So=o(ee)`
|
|
264
264
|
color: ${e=>e.theme.colors.hero};
|
|
265
265
|
max-width: 100%;
|
|
266
266
|
overflow: hidden;
|
|
@@ -269,9 +269,9 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
269
269
|
display: flex;
|
|
270
270
|
align-items: center;
|
|
271
271
|
gap: ${i.sp1};
|
|
272
|
-
`,
|
|
272
|
+
`,At=he.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:y,checkBoxStyle:$,labelCheckBoxStyle:k,labelStyle:h,width:m,isDisabled:S,selectionLimit:R,infoIconContainerStyle:B,checkedIconColor:D,draggable:L=!1,onDragStart:N})=>{const{control:u}=zi();return t.jsx(Ai,{control:u,name:r,rules:n,render:({field:{value:v,onChange:E,ref:U}})=>t.jsx(yo,{style:{display:"flex",alignItems:"center",width:"100%",...g,...c},"data-testid":l??G("virtualized-checkbox-field",r),children:t.jsx(Fi,{checkBox:s,index:d,value:v,allCheckBoxValues:e,mode:w,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:y,checkBoxStyle:s.groupLabel?k:$,labelCheckBoxStyle:k,labelStyle:h,width:m,groupLabelCheckBox:a,infoIconContainerStyle:B,selectionLimit:R,checkedIconColor:D,isDisabled:S,draggable:L,onDragStart:N,ref:U,onChangeHandler:T=>Pi({event:T,value:v,allCheckBoxValues:e,groupLabelCheckBox:a,onChange:E})})})})},(e,s)=>e.checkBox===s.checkBox&&e.index===s.index&&e.mode===s.mode&&e.isDisabled===s.isDisabled&&e.selectionLimit===s.selectionLimit&&e.allCheckBoxValues.length===s.allCheckBoxValues.length&&e.groupLabelCheckBox?.value===s.groupLabelCheckBox?.value);At.displayName="VirtualizedCheckBoxField";const yo=o.div`
|
|
273
273
|
position: relative;
|
|
274
|
-
`,Q={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,Oi)};function ko({companyNameSticky:e,sortConfig:s,showViewForCardUser:r,onColumnSortConfigChanged:d}){const c=
|
|
274
|
+
`,Q={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,Oi)};function ko({companyNameSticky:e,sortConfig:s,showViewForCardUser:r,onColumnSortConfigChanged:d}){const c=ze(),l=ie(),a=!!ye().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 S=m;s.sortKey===h&&(S=m==="ascending"?"descending":"ascending"),d(h,S)},g=n.find(h=>h.key===s.sortKey)??(a?n[1]:n[0]),y=h=>n.find(m=>m.key===h)?.value??"",$=(a?n.filter(h=>h.key!=="owner"):n).map(h=>h.key),k=ne.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(bo,{windowSize:l,children:[t.jsxs(zo,{children:[t.jsx(Fo,{children:t.jsx(Ao,{})}),t.jsx(Bi,{title:k.sortBy,placeholder:k.sortBy,pickerValues:$,valueToLabel:y,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(Z,{children:g.value}),t.jsx(dt,{windowSize:l,sortDataValue:s.sortKey,headerdata:g,children:t.jsx(ct,{windowSize:l,children:t.jsx(Ze,{})})})]})]}):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(Z,{children:h.value}),t.jsx(dt,{windowSize:l,sortDataValue:s.sortKey,headerdata:h,children:t.jsx(ct,{windowSize:l,children:t.jsx(Ze,{})})})]}),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=he.memo(ko),$o=o.div`
|
|
275
275
|
top: ${i.sp0};
|
|
276
276
|
left: ${i.sp0};
|
|
277
277
|
z-index: 2;
|
|
@@ -337,15 +337,15 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
337
337
|
display: flex;
|
|
338
338
|
align-items: center;
|
|
339
339
|
justify-content: center;
|
|
340
|
-
`,
|
|
340
|
+
`,zo=o.div`
|
|
341
341
|
gap: ${i.sp1};
|
|
342
342
|
display: flex;
|
|
343
343
|
color: ${e=>e.theme.colors.hero};
|
|
344
|
-
`,
|
|
344
|
+
`,Ao=o(_i)`
|
|
345
345
|
width: ${i.sp3};
|
|
346
346
|
height: ${i.sp3};
|
|
347
347
|
color: inherit;
|
|
348
|
-
`,
|
|
348
|
+
`,Fo=o.div`
|
|
349
349
|
margin-right: ${i.sp1};
|
|
350
350
|
display: flex;
|
|
351
351
|
align-items: center;
|
|
@@ -365,7 +365,7 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
365
365
|
cursor: pointer;
|
|
366
366
|
gap: 5px;
|
|
367
367
|
color: ${e=>e.theme.colors.primary};
|
|
368
|
-
`,{spendManagement:{billPay:{paymentDetails:{feePercent:Do}},chargeCard:ce},common:X}=ne.getLocalizedStrings(),De={containerMarginLeft:new C(p[3],p[8]),webkitLineClamp:new C(2,2,1,1,1)},_o=({setCardIdForRowAction:e,setActionTypeForRowAction:s,cardDetail:r,isCardControlsEnabled:d,showViewForCardUser:c,signedInUser:l,resendInviteId:a,index:n,onChargeCardRowClick:x,onChargeCardResendInviteClick:w,rowActionView:g,revokeChargeCardsInviteFetchState:
|
|
368
|
+
`,{spendManagement:{billPay:{paymentDetails:{feePercent:Do}},chargeCard:ce},common:X}=ne.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:y,unlockChargeCardsFetchState:$,cardsSelectedForBulkAction:k})=>{const h=!!ye().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:y,unlockChargeCardsFetchState:$,cardsSelectedForBulkAction:k,showViewForCardUser:c})},Ft=({cardDetail:e})=>{const s=e.balance,r=It(e)/e.limit.amount*100;return t.jsxs(Uo,{children:[t.jsx(Go,{children:de("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(Nt,{children:t.jsxs(Mt,{cardUser:!0,children:[t.jsxs(_t,{children:[t.jsx(Tt,{children:X.labels.cardName}),t.jsxs(Et,{children:[t.jsx(Ot,{title:e.cardName,children:e.cardName}),t.jsx(Yt,{windowSize:r,children:ce.cardDetails.expiryHideOut+X.strings.space+e.accountLast4})]})]}),t.jsxs(Bt,{children:[t.jsx(Dt,{children:`${ce.cardList.header.cardType}${X.strings.colon}`}),t.jsx(Te,{children:t.jsx(Ve,{cardDetail:e,forDetailPage:!1})})]}),t.jsxs(Wt,{children:[t.jsx(Kt,{children:X.labels.limit}),t.jsxs(qt,{children:[t.jsx(Ht,{children:de("0,0.[00]",e.limit)}),t.jsx(Gt,{}),t.jsx(Ee,{children:e.creditLimitFrequency.name})]})]})]})}),t.jsx(Ut,{children:t.jsxs(t.Fragment,{children:[e.status.code!=="request_on_hold"?t.jsx(Ft,{cardDetail:e}):null,t.jsxs(Vt,{children:[t.jsx(Le,{status:e.status.code}),e.status.code==="request_on_hold"?t.jsx(Se,{display:"flex",title:ce.cardList.tooltip[e.type.code].self,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:t.jsx(Zt,{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:y,showViewForCardUser:$})=>{const[k,h]=f.useState(!1);f.useEffect(()=>{y.length>0&&k&&h(!1)},[y.length,k]);const m=!!ye().loggedInUserRole.includes("charge_card_user")||$,S=`${r.cardHolderUser?.firstName??""} ${r.cardHolderUser?.lastName??""}`,R=r?.cardHolderUserId===c.userId,B=ie(),D=r.type.code,L=ce.cardList.tooltip[D],N=L!=null?R?L.self:`${S} ${L.cardUser}`:X.strings.empty,u=x.cardId===r.id,v=y.includes(r.id),E=u&&x.unlockChargeCardsFetchState.fetchState==="In-Progress"||v&&g==="In-Progress",U=u&&x.revokeChargeCardFetchState.fetchState==="In-Progress"||v&&w==="In-Progress",T=E||U,M=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(Nt,{children:[t.jsx(Mo,{children:t.jsx(kt,{personBasic:r.cardHolderUser,styles:{height:i.sp6,width:i.sp6}})}),t.jsx(Wo,{children:t.jsxs(qo,{children:[t.jsx(Oo,{children:t.jsx(Vo,{windowSize:B,title:S,children:S})}),t.jsx(Ee,{style:{marginTop:`-${i.sp1}`},children:r.cardHolderRoles?.userRoles!=null&&t.jsx(bt,{roles:r.cardHolderRoles?.userRoles})})]})})]}),t.jsx(Ut,{children:t.jsx(t.Fragment,{children:l===r.id?t.jsx(vt,{size:"Small",start:!0}):t.jsxs(Xo,{children:[t.jsxs(No,{children:[r.status.code!=="request_on_hold"?t.jsx(Ft,{cardDetail:r}):null,t.jsxs(Vt,{children:[t.jsx(Le,{status:r.status.code}),r.status.code==="request_on_hold"?t.jsx(Se,{display:"flex",title:N,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:t.jsx(Zt,{className:"infoIconTooltip"})}):null]})]}),r.status.code==="request_on_hold"&&!R?t.jsx(Zo,{children:t.jsx(Yo,{onClick:A=>{A.stopPropagation(),n(r.id)},"data-testid":G("send-reminder-clicked",r.id),children:ce.cardList.sendReminder})}):null]})})})]}),t.jsxs(_e,{children:[t.jsxs(Mt,{cardUser:!1,children:[t.jsxs(_t,{children:[t.jsx(Tt,{children:`${X.labels.cardName}`}),t.jsxs(Et,{children:[t.jsx(Ot,{title:r.cardName,children:r.cardName}),t.jsx(Yt,{windowSize:B,children:r.status.code==="request_on_hold"?X.strings.hyphen:ce.cardDetails.expiryHideOut+X.strings.space+r.accountLast4})]})]}),t.jsxs(Bt,{children:[t.jsx(Dt,{children:`${ce.cardList.header.cardType}${X.strings.colon}`}),t.jsx(Te,{children:t.jsx(Te,{children:t.jsx(Ve,{cardDetail:r,forDetailPage:!1})})})]}),t.jsxs(Wt,{children:[t.jsx(Kt,{children:X.labels.limit}),t.jsxs(qt,{children:[t.jsx(Ht,{children:de("0,0.[00]",r.limit)}),t.jsx(Gt,{}),t.jsx(Ee,{children:r.creditLimitFrequency.name})]})]})]}),t.jsx(Ko,{children:t.jsx(Jo,{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&&!T&&!O&&!(A&&r.isLockedByAdmin):d?!T&&M:r.status.code==="request_on_hold",z=y.length>0;return H&&t.jsx(Oe,{menuItems:t.jsx(Qo,{children:t.jsx(zt,{cardDetail:r,isCardControlsEnabled:d,isChargeCardUser:m,setIsMenuOpen:h,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:te=>{z||h(te)},isMenuOpen:k&&!z,menuIconStyles:{cursor:z?"not-allowed":"pointer",opacity:z?.5:1,pointerEvents:z?"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{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
396
396
|
align-items: center;
|
|
397
397
|
gap: ${i.sp1};
|
|
398
398
|
flex-grow: 1;
|
|
399
|
-
`,Vo=o(
|
|
399
|
+
`,Vo=o(Y)`
|
|
400
400
|
color: ${e=>e.theme.colors.hero};
|
|
401
401
|
display: -webkit-box;
|
|
402
402
|
-webkit-line-clamp: ${e=>De.webkitLineClamp.value(e.windowSize)};
|
|
@@ -408,10 +408,10 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
408
408
|
text-overflow: ellipsis;
|
|
409
409
|
white-space: nowrap;
|
|
410
410
|
text-transform: capitalize;
|
|
411
|
-
`,Ee=o(
|
|
411
|
+
`,Ee=o(Z)`
|
|
412
412
|
color: ${e=>e.theme.colors.hero};
|
|
413
413
|
min-height: 18px;
|
|
414
|
-
`,Bt=o(
|
|
414
|
+
`,Bt=o(Z)`
|
|
415
415
|
color: ${e=>e.theme.colors.hero};
|
|
416
416
|
box-sizing: border-box;
|
|
417
417
|
display: flex;
|
|
@@ -422,16 +422,16 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
422
422
|
overflow: hidden;
|
|
423
423
|
text-overflow: ellipsis;
|
|
424
424
|
white-space: nowrap;
|
|
425
|
-
`,_t=o(
|
|
425
|
+
`,_t=o(Z)`
|
|
426
426
|
color: ${e=>e.theme.colors.hero};
|
|
427
427
|
display: flex;
|
|
428
428
|
flex-direction: row;
|
|
429
429
|
gap: ${i.sp2};
|
|
430
|
-
`,
|
|
430
|
+
`,No=o.div`
|
|
431
431
|
display: flex;
|
|
432
432
|
flex-direction: column;
|
|
433
433
|
gap: ${i.sp1};
|
|
434
|
-
`,
|
|
434
|
+
`,Uo=o.div`
|
|
435
435
|
display: flex;
|
|
436
436
|
flex-direction: column;
|
|
437
437
|
align-items: flex-end;
|
|
@@ -451,15 +451,15 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
451
451
|
display: flex;
|
|
452
452
|
align-items: center;
|
|
453
453
|
gap: ${i.sp1};
|
|
454
|
-
`,Mo=o.div``,Wo=o.div``,Ho=o(
|
|
454
|
+
`,Mo=o.div``,Wo=o.div``,Ho=o(Z)`
|
|
455
455
|
color: ${e=>e.theme.colors.hero};
|
|
456
456
|
display: flex;
|
|
457
457
|
margin-top: -${i.sp1};
|
|
458
|
-
`,
|
|
458
|
+
`,Nt=o.div`
|
|
459
459
|
display: flex;
|
|
460
460
|
flex-direction: row;
|
|
461
461
|
gap: ${i.sp2};
|
|
462
|
-
`,
|
|
462
|
+
`,Ut=o.div`
|
|
463
463
|
display: flex;
|
|
464
464
|
flex-direction: column;
|
|
465
465
|
align-items: flex-end;
|
|
@@ -474,7 +474,7 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
474
474
|
position: relative;
|
|
475
475
|
`,qo=o.div`
|
|
476
476
|
margin-bottom: 6px;
|
|
477
|
-
`,Wt=o(
|
|
477
|
+
`,Wt=o(Z)`
|
|
478
478
|
color: ${e=>e.theme.colors.hero};
|
|
479
479
|
display: flex;
|
|
480
480
|
gap: ${i.sp6};
|
|
@@ -488,18 +488,18 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
488
488
|
width: ${i.sp1};
|
|
489
489
|
height: ${i.sp1};
|
|
490
490
|
background-color: ${e=>e.theme.colors.hero};
|
|
491
|
-
`,Go=o(
|
|
491
|
+
`,Go=o(Z)`
|
|
492
492
|
color: ${e=>e.theme.colors.hero};
|
|
493
|
-
`,
|
|
493
|
+
`,Zo=o.div`
|
|
494
494
|
padding-right: 20px;
|
|
495
|
-
`,
|
|
495
|
+
`,Yo=o(jt)`
|
|
496
496
|
color: ${I.link};
|
|
497
497
|
cursor: pointer;
|
|
498
498
|
text-align: right;
|
|
499
499
|
&:hover {
|
|
500
500
|
text-decoration: underline;
|
|
501
501
|
}
|
|
502
|
-
`,
|
|
502
|
+
`,Zt=o($t)`
|
|
503
503
|
width: ${i.sp3};
|
|
504
504
|
height: ${i.sp3};
|
|
505
505
|
margin-bottom: 0;
|
|
@@ -517,7 +517,7 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
517
517
|
display: flex;
|
|
518
518
|
align-items: end;
|
|
519
519
|
flex-direction: column;
|
|
520
|
-
`,
|
|
520
|
+
`,Yt=o(Z)`
|
|
521
521
|
color: ${e=>e.theme.colors.hero};
|
|
522
522
|
max-width: 100%;
|
|
523
523
|
overflow: hidden;
|
|
@@ -526,7 +526,7 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
526
526
|
display: flex;
|
|
527
527
|
align-items: center;
|
|
528
528
|
gap: ${i.sp1};
|
|
529
|
-
`,qs=20,Ie=(e,s,r)=>!(r!=null&&e.status.code!==r||e.status.code==="closed"||e.status.code==="closed_by_customer"),es=(e,s,r)=>{const d=ne.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},ae={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=ne.getLocalizedStrings(),{spendManagement:{chargeCard:P},common:re}=me,ht=50,is=64,os=351,ss=136,Jt=he.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:$,cashbackInformation:k,creditAccountInformation:h,debitAccountInformation:m,depositAccountListWithDebitCardIssued:y,uiState:R,signedInUser:B,fetchState:D,revokeChargeCardsInviteFetchState:L,unlockChargeCardsFetchState:U,receiptBotEmail:u,searchText:v,resendInviteId:E,isBulkActionAllowed:N,isCardControlsEnabled:T,cardsSelectedForBulkAction:M,firstSelectedCardStatus:z,bulkSubmissionLimit:O,onProceedForBulkActionClick:H,onBulkCloseClick:F,onBulkLockClick:te,setShowBulkChangeSpendLimitPopup:J,onChargeCardResendInviteClick:_,onChargeCardRowClick:le,onReloadCards:K,onColumnSortConfigChanged:oe,handleClearSelection:xe})=>{const j=ie(),ze=Se(),Ue=ci().analytics,Ne=!!ze.loggedInUserRole.includes("charge_card_user"),Me=Fe(),[,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&&$)||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,$,y.fetchState,Ue,s,x,k,h,m,We]);f.useEffect(()=>{if(ke===!0){const V=setTimeout(()=>{He(!1)},800);return()=>clearTimeout(V)}},[ke]);const oi=f.useCallback(V=>{H(V)},[H]),Pe=f.useCallback(V=>V===0?ht:j!=="small"?pi:Ne?ui:mi,[j,Ne]),si=f.useMemo(()=>{let V=ht+is;for(let we=1;we<=e.length;we++)V+=Pe(we);return V},[e.length,Pe]),qe=f.useMemo(()=>window.innerHeight-os,[]),ri=si>qe,Ge=f.useRef(null);f.useEffect(()=>{Ge.current?.resetAfterIndex(0)},[j]);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:re.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:j,children:[t.jsx(Is,{windowSize:j,children:t.jsx(Ls,{})}),t.jsxs(Fs,{windowSize:j,children:[t.jsxs(ks,{children:[t.jsx(ps,{children:P.aiCardAgentText}),re.strings.space,P.receiptBotMessage,re.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:re.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&&j!=="small",children:re.copyToClipBoard.copy})})]})]})]})]}):null,t.jsx(Cs,{windowSize:j,availableHeight:qe,isListTooLarge:ri,children:t.jsx(wi,{children:({height:V,width:we})=>t.jsx(Ci,{ref:Ge,height:V,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:le,showViewForCardUser:n,cardList:e,signedInUser:B,uiState:R,revokeChargeCardsInviteFetchState:L,unlockChargeCardsFetchState:U,onColumnSortConfigChanged:oe,isBulkActionAllowed:N,isCardControlsEnabled:T,cardsSelectedForBulkAction:M,firstSelectedCardStatus:z,bulkSubmissionLimit:O})})})})]});return t.jsxs(us,{fetchState:D,children:[ai(),M.length>0&&U!=="In-Progress"&&L!=="In-Progress"?t.jsx(gi,{helperContainerStyle:j==="small"?{margin:`${i.sp5} ${i.sp7} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:!0,primaryBtn:{label:as(z),isLoading:!1,isDisabled:!1,type:"button",onClick:()=>{const V=Qt(z);V&&oi(V)}},cancelBtn:{label:re.texts.goBack,isDisabled:!1,onClick:xe,style:j==="small"?{}:ns(z)},leftSideComponent:As(M.length,O,j),rightSideComponent:t.jsx(Ds,{firstSelectedCardStatus:z,windowSize:j,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(($,{name:k})=>{if(k===x){let h=[];const m=$[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 re.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:$,isChargeCardFeatureEnabled:k,isChargeCardSetupEnabled:h,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:y,cashbackInformation:R,creditAccountInformation:B,debitAccountInformation:D,productInformation:L,isBulkActionAllowed:U,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:N,updateBulkActionList:T,removeAllCardsFromBulkActionList:M,onProceedForBulkActionClick:z,onBulkCloseClick:O,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:F,onChargeCardRowClick:te,onReloadCards:J,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:le,depositAccountListWithDebitCardIssued:K,rowActionView:oe,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:j})=>(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:L,isBulkActionAllowed:U,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:N,updateBulkActionList:T,removeAllCardsFromBulkActionList:M,onProceedForBulkActionClick:z,onBulkCloseClick:O,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:F,depositAccountListWithDebitCardIssued:K,showViewForCardUser:S,signedInUser:$,fetchState:c,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:j,receiptBotEmail:x,searchText:w,resendInviteId:g,onReloadCards:J,onChargeCardRowClick:te,uiState:l,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:le})),Gs=he.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:$,style:k,cardList:h,showViewForCardUser:m,signedInUser:y,resendInviteId:R,onChargeCardResendInviteClick:B,onChargeCardRowClick:D})=>{const L=ie(),U=Fe(),u=g.cardId!=null&&g.unlockChargeCardsFetchState.fetchState==="In-Progress"||$==="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:ae.checkBoxContainerStyleMarginLeft.valuePx(L),marginRight:ae.checkBoxContainerStyleMarginRight.valuePx(L)},N={marginLeft:ae.labelCheckBoxStyleMarginLeft.valuePx(L)},T=hs(L),M=cs(L),z={width:"100%"},O={backgroundColor:U.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],le=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:$,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,$,d,y,R,n,B,D,l]);return t.jsx(fs,{style:H,className:"spend-management-list-item",children:t.jsx(zt,{checkBox:le,fieldName:"bulkSelectIds",index:n,allCheckBoxValues:F,groupLabelCheckBox:te,mode:v,checkBoxContainerStyle:E,checkBoxIconStyle:O,checkBoxStyle:J?N:T,labelCheckBoxStyle:N,labelStyle:z,style:{gap:i.sp3},infoIconContainerStyle:M,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=he.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:$,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:$})},(e,s)=>{const r=e.cardsSelectedForBulkAction.includes(e.cardDetail.id),d=s.cardsSelectedForBulkAction.includes(s.cardDetail.id),c=e.rowActionView.cardId===e.cardDetail.id,l=s.rowActionView.cardId===s.cardDetail.id;return r===d&&c===l&&e.cardDetail===s.cardDetail&&e.isCardControlsEnabled===s.isCardControlsEnabled&&e.unlockChargeCardsFetchState===s.unlockChargeCardsFetchState&&e.revokeChargeCardsInviteFetchState===s.revokeChargeCardsInviteFetchState&&e.resendInviteId===s.resendInviteId&&e.showViewForCardUser===s.showViewForCardUser&&e.signedInUser===s.signedInUser&&e.index===s.index});ei.displayName="ChargeCardRowWrapper";const ps=o(ji)`
|
|
529
|
+
`,qs=20,Ie=(e,s,r)=>!(r!=null&&e.status.code!==r||e.status.code==="closed"||e.status.code==="closed_by_customer"),es=(e,s,r)=>{const d=ne.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},ae={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=ne.getLocalizedStrings(),{spendManagement:{chargeCard:P},common:re}=me,ht=50,is=64,os=351,ss=136,Jt=he.memo(({cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,setCardIdForRowAction:c,setActionTypeForRowAction:l,rowActionView:a,showViewForCardUser:n,productInformation:x,isChargeCardFeatureEnabled:w,isChargeCardSetupEnabled:g,isDebitCardFeatureEnabled:y,isDebitCardSetupEnabled:$,cashbackInformation:k,creditAccountInformation:h,debitAccountInformation:m,depositAccountListWithDebitCardIssued:S,uiState:R,signedInUser:B,fetchState:D,revokeChargeCardsInviteFetchState:L,unlockChargeCardsFetchState:N,receiptBotEmail:u,searchText:v,resendInviteId:E,isBulkActionAllowed:U,isCardControlsEnabled:T,cardsSelectedForBulkAction:M,firstSelectedCardStatus:A,bulkSubmissionLimit:O,onProceedForBulkActionClick:H,onBulkCloseClick:z,onBulkLockClick:te,setShowBulkChangeSpendLimitPopup:J,onChargeCardResendInviteClick:_,onChargeCardRowClick:le,onReloadCards:K,onColumnSortConfigChanged:oe,handleClearSelection:xe})=>{const j=ie(),Ae=ye(),Ne=ci().analytics,Ue=!!Ae.loggedInUserRole.includes("charge_card_user"),Me=ze(),[,We]=hi(),[ke,He]=f.useState(!1),[Fe,Ke]=f.useState(!1),ii=f.useCallback(()=>{u!=null&&((!w||r.fetchState==="Completed"&&d.fetchState==="Completed")&&(!(y&&$)||S.fetchState==="Completed")&&Ne.trackCardsCopyIconClick(s,x,"Cards List","Copy","copied","Receipt Email",u,k,h,m),We(u),He(!0))},[u,w,r.fetchState,d.fetchState,y,$,S.fetchState,Ne,s,x,k,h,m,We]);f.useEffect(()=>{if(ke===!0){const V=setTimeout(()=>{He(!1)},800);return()=>clearTimeout(V)}},[ke]);const oi=f.useCallback(V=>{H(V)},[H]),Pe=f.useCallback(V=>V===0?ht:j!=="small"?pi:Ue?ui:mi,[j,Ue]),si=f.useMemo(()=>{let V=ht+is;for(let we=1;we<=e.length;we++)V+=Pe(we);return V},[e.length,Pe]),qe=f.useMemo(()=>window.innerHeight-os,[]),ri=si>qe,Ge=f.useRef(null);f.useEffect(()=>{Ge.current?.resetAfterIndex(0)},[j]);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:re.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(ys,{windowSize:j,children:[t.jsx(Is,{windowSize:j,children:t.jsx(Ls,{})}),t.jsxs(zs,{windowSize:j,children:[t.jsxs(ks,{children:[t.jsx(ps,{children:P.aiCardAgentText}),re.strings.space,P.receiptBotMessage,re.strings.space]}),t.jsxs(bs,{"data-testid":G("charge-card-list-copy-email"),onClick:ii,onMouseEnter:()=>Ke(!0),onMouseLeave:()=>Ke(!1),children:[t.jsx(vs,{children:u}),ke===!0?t.jsxs(ut,{children:[t.jsx(js,{}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Fe||ke,color:I.primaryDark,children:re.copyToClipBoard.copied})})]}):t.jsxs(ut,{children:[t.jsx($s,{color:Fe?Me.colors.primary:void 0}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Fe&&j!=="small",children:re.copyToClipBoard.copy})})]})]})]})]}):null,t.jsx(Cs,{windowSize:j,availableHeight:qe,isListTooLarge:ri,children:t.jsx(wi,{children:({height:V,width:we})=>t.jsx(Ci,{ref:Ge,height:V,itemCount:e.length+1,innerElementType:Xt,itemSize:Pe,estimatedItemSize:Si,itemKey:ve=>ve===0?"header":e[ve-1].id,width:we,overscanCount:fi,initialScrollOffset:0,children:ve=>t.jsx(ds,{...ve,setCardIdForRowAction:c,setActionTypeForRowAction:l,rowActionView:a,resendInviteId:E,onChargeCardResendInviteClick:_,onChargeCardRowClick:le,showViewForCardUser:n,cardList:e,signedInUser:B,uiState:R,revokeChargeCardsInviteFetchState:L,unlockChargeCardsFetchState:N,onColumnSortConfigChanged:oe,isBulkActionAllowed:U,isCardControlsEnabled:T,cardsSelectedForBulkAction:M,firstSelectedCardStatus:A,bulkSubmissionLimit:O})})})})]});return t.jsxs(us,{fetchState:D,children:[ai(),M.length>0&&N!=="In-Progress"&&L!=="In-Progress"?t.jsx(gi,{helperContainerStyle:j==="small"?{margin:`${i.sp5} ${i.sp7} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:!0,primaryBtn:{label:as(A),isLoading:!1,isDisabled:!1,type:"button",onClick:()=>{const V=Qt(A);V&&oi(V)}},cancelBtn:{label:re.texts.goBack,isDisabled:!1,onClick:xe,style:j==="small"?{}:ns(A)},leftSideComponent:Fs(M.length,O,j),rightSideComponent:t.jsx(Ds,{firstSelectedCardStatus:A,windowSize:j,setShowBulkChangeSpendLimitPopup:J,onBulkCloseClick:z,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 y=w.watch(($,{name:k})=>{if(k===x){let h=[];const m=$[x]??[];if(m.includes(me.common.all.toLowerCase()))if(e.length===0){h=[];for(const S of s)if(Ie(S,void 0,r)&&h.push(S.id),h.length===d)break}else h=m.filter(S=>S!==me.common.all.toLowerCase());else h=m.filter(S=>S!=null);c(h)}});return()=>y.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 re.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(Ss,{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:y,signedInUser:$,isChargeCardFeatureEnabled:k,isChargeCardSetupEnabled:h,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:S,cashbackInformation:R,creditAccountInformation:B,debitAccountInformation:D,productInformation:L,isBulkActionAllowed:N,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:U,updateBulkActionList:T,removeAllCardsFromBulkActionList:M,onProceedForBulkActionClick:A,onBulkCloseClick:O,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:z,onChargeCardRowClick:te,onReloadCards:J,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:le,depositAccountListWithDebitCardIssued:K,rowActionView:oe,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:j})=>(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:S,cashbackInformation:R,creditAccountInformation:B,debitAccountInformation:D,productInformation:L,isBulkActionAllowed:N,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:U,updateBulkActionList:T,removeAllCardsFromBulkActionList:M,onProceedForBulkActionClick:A,onBulkCloseClick:O,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:z,depositAccountListWithDebitCardIssued:K,showViewForCardUser:y,signedInUser:$,fetchState:c,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:j,receiptBotEmail:x,searchText:w,resendInviteId:g,onReloadCards:J,onChargeCardRowClick:te,uiState:l,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:le})),Gs=he.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:y,unlockChargeCardsFetchState:$,style:k,cardList:h,showViewForCardUser:m,signedInUser:S,resendInviteId:R,onChargeCardResendInviteClick:B,onChargeCardRowClick:D})=>{const L=ie(),N=ze(),u=g.cardId!=null&&g.unlockChargeCardsFetchState.fetchState==="In-Progress"||$==="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:ae.checkBoxContainerStyleMarginLeft.valuePx(L),marginRight:ae.checkBoxContainerStyleMarginRight.valuePx(L)},U={marginLeft:ae.labelCheckBoxStyleMarginLeft.valuePx(L)},T=hs(L),M=cs(L),A={width:"100%"},O={backgroundColor:N.colors.grey4},H={...k,width:"100%"},z=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],le=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:y,unlockChargeCardsFetchState:$,cardsSelectedForBulkAction:c,isCardControlsEnabled:d,showViewForCardUser:m,cardDetail:_,signedInUser:S,resendInviteId:R,index:n-1,onChargeCardResendInviteClick:B,onChargeCardRowClick:D}),value:_.id,groupLabel:!1,defaultChecked:!1,isException:d&&r?!Ie(_,void 0,l):!1,exceptionMode:"checked_or_hover",exceptionInfo:es(_,void 0,l),exceptionType:Ie(_,void 0,l)?void 0:"info"},[J,_,m,s,e.sortKey,e.sortOrder,c,x,w,g,y,$,d,S,R,n,B,D,l]);return t.jsx(fs,{style:H,className:"spend-management-list-item",children:t.jsx(At,{checkBox:le,fieldName:"bulkSelectIds",index:n,allCheckBoxValues:z,groupLabelCheckBox:te,mode:v,checkBoxContainerStyle:E,checkBoxIconStyle:O,checkBoxStyle:J?U:T,labelCheckBoxStyle:U,labelStyle:A,style:{gap:i.sp3},infoIconContainerStyle:M,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=he.memo(({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:y,onChargeCardResendInviteClick:$,onChargeCardRowClick:k})=>{const h=ie()==="small"?_o:Gi;return t.jsx(h,{cardDetail:a,index:y,isCardControlsEnabled:n,setActionTypeForRowAction:s,setCardIdForRowAction:e,showViewForCardUser:x,signedInUser:w,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,rowActionView:r,onChargeCardRowClick:k,resendInviteId:g,onChargeCardResendInviteClick:$})},(e,s)=>{const r=e.cardsSelectedForBulkAction.includes(e.cardDetail.id),d=s.cardsSelectedForBulkAction.includes(s.cardDetail.id),c=e.rowActionView.cardId===e.cardDetail.id,l=s.rowActionView.cardId===s.cardDetail.id;return r===d&&c===l&&e.cardDetail===s.cardDetail&&e.isCardControlsEnabled===s.isCardControlsEnabled&&e.unlockChargeCardsFetchState===s.unlockChargeCardsFetchState&&e.revokeChargeCardsInviteFetchState===s.revokeChargeCardsInviteFetchState&&e.resendInviteId===s.resendInviteId&&e.showViewForCardUser===s.showViewForCardUser&&e.signedInUser===s.signedInUser&&e.index===s.index});ei.displayName="ChargeCardRowWrapper";const ps=o(ji)`
|
|
530
530
|
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
531
531
|
${({theme:e})=>e.mode==="dark"&&`color: ${I.brandColorPearl};`}
|
|
532
532
|
`,us=o.div`
|
|
@@ -549,7 +549,7 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
549
549
|
background: ${e=>e.theme.colors.background};
|
|
550
550
|
border-radius: 50%;
|
|
551
551
|
cursor: pointer;
|
|
552
|
-
`,xs=o(
|
|
552
|
+
`,xs=o(yi)`
|
|
553
553
|
height: ${i.sp5};
|
|
554
554
|
width: ${i.sp5};
|
|
555
555
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -575,11 +575,11 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
575
575
|
left: ${i.sp0};
|
|
576
576
|
padding-bottom: ${i.sp3};
|
|
577
577
|
box-sizing: border-box;
|
|
578
|
-
`,
|
|
578
|
+
`,Ss=o.div`
|
|
579
579
|
position: relative;
|
|
580
580
|
width: auto;
|
|
581
581
|
height: 100%;
|
|
582
|
-
`,ti=o.div``,
|
|
582
|
+
`,ti=o.div``,ys=o.div`
|
|
583
583
|
display: flex;
|
|
584
584
|
border: 1.25px solid transparent;
|
|
585
585
|
background: ${e=>`linear-gradient(${e.theme.colors.grey4}, ${e.theme.colors.grey4}) padding-box,
|
|
@@ -638,16 +638,16 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
638
638
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
639
639
|
width: 100%;
|
|
640
640
|
height: 100%;
|
|
641
|
-
`,
|
|
641
|
+
`,zs=o.div`
|
|
642
642
|
width: 100%;
|
|
643
643
|
max-width: ${e=>e.windowSize==="small"?"calc(100% - 20px)":"unset"};
|
|
644
|
-
`,
|
|
644
|
+
`,As=o.div`
|
|
645
645
|
display: flex;
|
|
646
646
|
justify-content: flex-start;
|
|
647
647
|
align-items: center;
|
|
648
648
|
gap: ${i.sp2};
|
|
649
649
|
margin-left: ${i.sp8};
|
|
650
|
-
`,
|
|
650
|
+
`,Fs=(e,s,r)=>{const d=P.common.card,c=(e>1?d+"s":d)+P.cardList.bulkActions.selected;return e>0?t.jsxs(As,{style:r==="small"?{position:"absolute",top:i.sp2,left:`-${i.sp5}`}:{},children:[t.jsx(Ps,{multiDigit:e>=10,children:e}),t.jsx(Rs,{children:c}),e===s?t.jsx(Bs,{children:re.texts.maxLimit}):null]}):null},Ps=o(Z)`
|
|
651
651
|
height: 18px;
|
|
652
652
|
width: ${e=>e.multiDigit?"auto":"18px"};
|
|
653
653
|
padding: ${i.sp0} 6px;
|
|
@@ -658,11 +658,11 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b 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(Y)`
|
|
662
662
|
color: ${e=>e.theme.colors.primary};
|
|
663
663
|
`,Bs=o(ee)`
|
|
664
664
|
color: ${I.important};
|
|
665
|
-
`,Ds=({firstSelectedCardStatus:e,windowSize:s,setShowBulkChangeSpendLimitPopup:r,onBulkCloseClick:d,onBulkLockClick:c})=>{const[l,a]=he.useState(!1),[n,x]=he.useState(!1);if(f.useEffect(()=>{l||x(!1)},[l]),e==null||e!=="active"&&e!=="locked")return null;const w=()=>e==="active"?t.jsxs(t.Fragment,{children:[t.jsxs(be,{windowSize:s,onClick:g=>{g.stopPropagation(),a(!1),c?.()},children:[t.jsx(Os,{}),t.jsx(xt,{children:P.cardDetails.moreOptions.lock})]}),t.jsx(gt,{}),t.jsxs(be,{windowSize:s,hoverImportant:!0,onClick:g=>{g.stopPropagation(),a(!1),d?.()},children:[t.jsx(Ct,{}),t.jsx(wt,{children:P.cardDetails.moreOptions.close})]})]}):e==="locked"?t.jsxs(t.Fragment,{children:[t.jsxs(be,{windowSize:s,onClick:g=>{g.stopPropagation(),a(!1),r(!0)},children:[t.jsx(Vs,{}),t.jsx(xt,{children:P.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(gt,{}),t.jsxs(be,{windowSize:s,hoverImportant:!0,onClick:g=>{g.stopPropagation(),a(!1),d?.()},children:[t.jsx(Ct,{}),t.jsx(wt,{children:P.cardDetails.moreOptions.close})]})]}):null;return t.jsx(_s,{style:s==="small"?{position:"absolute",top:i.sp7,right:`-${i.sp5}`}:{},children:t.jsx(Es,{onMouseEnter:()=>{l||x(!0)},onMouseLeave:()=>{x(!1)},children:t.jsx(
|
|
665
|
+
`,Ds=({firstSelectedCardStatus:e,windowSize:s,setShowBulkChangeSpendLimitPopup:r,onBulkCloseClick:d,onBulkLockClick:c})=>{const[l,a]=he.useState(!1),[n,x]=he.useState(!1);if(f.useEffect(()=>{l||x(!1)},[l]),e==null||e!=="active"&&e!=="locked")return null;const w=()=>e==="active"?t.jsxs(t.Fragment,{children:[t.jsxs(be,{windowSize:s,onClick:g=>{g.stopPropagation(),a(!1),c?.()},children:[t.jsx(Os,{}),t.jsx(xt,{children:P.cardDetails.moreOptions.lock})]}),t.jsx(gt,{}),t.jsxs(be,{windowSize:s,hoverImportant:!0,onClick:g=>{g.stopPropagation(),a(!1),d?.()},children:[t.jsx(Ct,{}),t.jsx(wt,{children:P.cardDetails.moreOptions.close})]})]}):e==="locked"?t.jsxs(t.Fragment,{children:[t.jsxs(be,{windowSize:s,onClick:g=>{g.stopPropagation(),a(!1),r(!0)},children:[t.jsx(Vs,{}),t.jsx(xt,{children:P.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(gt,{}),t.jsxs(be,{windowSize:s,hoverImportant:!0,onClick:g=>{g.stopPropagation(),a(!1),d?.()},children:[t.jsx(Ct,{}),t.jsx(wt,{children:P.cardDetails.moreOptions.close})]})]}):null;return t.jsx(_s,{style:s==="small"?{position:"absolute",top:i.sp7,right:`-${i.sp5}`}:{},children:t.jsx(Es,{onMouseEnter:()=>{l||x(!0)},onMouseLeave:()=>{x(!1)},children:t.jsx(Se,{open:n&&!l,variant:"standard",title:P.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(Ts,{children:w()}),setIsMenuOpen:a,isMenuOpen:l,menuIconStyles:{height:"auto"},styles:{transform:s==="small"?`translate(${i.sp4}, -${i.sp7})`:`translate(${i.sp4}, -${i.sp5})`}})})})})},_s=o.div`
|
|
666
666
|
display: flex;
|
|
667
667
|
justify-content: flex-end;
|
|
668
668
|
`,Es=o.div`
|
|
@@ -693,11 +693,11 @@ import{j as t,cr as ni,aa as li,F as ne,ad as di,q as ie,ax as Se,a9 as ci,b as
|
|
|
693
693
|
color: inherit;
|
|
694
694
|
`,wt=o(ee)`
|
|
695
695
|
color: ${I.important};
|
|
696
|
-
`,Os=o(
|
|
696
|
+
`,Os=o(St)`
|
|
697
697
|
width: ${i.sp4};
|
|
698
698
|
height: ${i.sp4};
|
|
699
699
|
color: inherit;
|
|
700
|
-
`,Ct=o(
|
|
700
|
+
`,Ct=o(yt)`
|
|
701
701
|
width: ${i.sp4};
|
|
702
702
|
height: ${i.sp4};
|
|
703
703
|
color: ${I.important};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as b,F as oe,j as r,b as G,ax as $e,a9 as ye,aP as be,aN as je,l as Se,g3 as Te,bF as ze,n as Z,aM as ee,o as t,_ as ve,s as J,cQ as Pe,ar as ke,y as x,aq as Be,c5 as Ae,iK as Ie,ai as Le,u as h,O as j,h as $,b9 as Re,aT as Me,iL as _e}from"./index-BqKtrbrP.js";import{b as S,n as a,i as Ee,k as De}from"./vendor-Bs1fkIUX.js";import{x as Fe}from"./MeetingCalenderPopup-BpRpGSe6-DG2NWgbm.js";import{j as Ue}from"./NavigationDots-BKVFhe2Y-BXA4iaa-.js";import{J as O,N as H}from"./PromoBaseCards-BGYdfmx6-Dtat0fyc.js";import{M as R}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const g={containerPaddingTopBottom:new x(h[0],h[0]),uspContainerMarginX:new x(h[6],h[0]),midContainerGap:new x(h[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(h[6],43),navigationBottom:new x(h[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,h[4]),carouselMarginLeft:new x(120,h[12]),buttonTrayGap:new x(h[3],h[5]),termsOfAgreementMarginTop:new x(h[5],h[10]),contactAdminContainerMarginTop:new x(h[0],h[10]),contactAdminContainerMarginBottom:new x(h[4],h[0]),contactAdminContainerMarginLeftRight:new x(h[3],h[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Lr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:q,onExpressInterestClick:me})=>{const he=G(),K=$e(),z=b(),Q=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,V=be(M?.fetchStatus.fetchState),[ge,W]=S.useState(!1),xe=()=>{Q.trackCardsPromoPageClicked("schedule demo"),Q.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),W(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{V==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&q()},[V,q,M?.fetchStatus]);const X=Se.hasChargeCardAdminLevelAccess(K.loggedInUserRoleMap),we=Te(K),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(qe,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:he.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),ge===!0?r.jsx(Fe,{onCancelClick:()=>{W(!1)},meetingUrl:e}):null,r.jsx(We,{windowSize:z,children:X===!0?r.jsxs(Ve,{children:[r.jsxs(Qe,{children:[r.jsx(Oe,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(He,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),X&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Z,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(Ke,{windowSize:z,children:o.orText}),r.jsx(Z,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(c)}})})},Oe=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Ze,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Ge,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Ge=({cards:e,companyLegalName:s})=>{const i=G(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(hr,{children:[m!=null?r.jsx(Xe,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(gr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Je,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(O,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(H,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Je=()=>{const e=b(),s=G(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},qe=a.div`
|
|
1
|
+
import{q as b,O as oe,j as r,c as G,ax as $e,a9 as ye,aP as be,aN as je,l as Se,g3 as Te,bF as ze,n as Z,aM as ee,o as t,_ as ve,s as J,cQ as Pe,ar as ke,y as x,aq as Be,c5 as Ae,iK as Ie,ai as Le,u as h,b as j,h as $,b9 as Re,aT as Me,iL as _e}from"./index-6DHFBk74.js";import{b as S,n as a,i as Ee,k as De}from"./vendor-Bs1fkIUX.js";import{x as Fe}from"./MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js";import{j as Ue}from"./NavigationDots-E2eEHB86-BK4Og9YA.js";import{J as O,N as H}from"./PromoBaseCards-DiefKKcS-CVepNaw-.js";import{M as R}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const g={containerPaddingTopBottom:new x(h[0],h[0]),uspContainerMarginX:new x(h[6],h[0]),midContainerGap:new x(h[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(h[6],43),navigationBottom:new x(h[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,h[4]),carouselMarginLeft:new x(120,h[12]),buttonTrayGap:new x(h[3],h[5]),termsOfAgreementMarginTop:new x(h[5],h[10]),contactAdminContainerMarginTop:new x(h[0],h[10]),contactAdminContainerMarginBottom:new x(h[4],h[0]),contactAdminContainerMarginLeftRight:new x(h[3],h[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Lr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:q,onExpressInterestClick:me})=>{const he=G(),K=$e(),z=b(),Q=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,V=be(M?.fetchStatus.fetchState),[ge,W]=S.useState(!1),xe=()=>{Q.trackCardsPromoPageClicked("schedule demo"),Q.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),W(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{V==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&q()},[V,q,M?.fetchStatus]);const X=Se.hasChargeCardAdminLevelAccess(K.loggedInUserRoleMap),we=Te(K),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(qe,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:he.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),ge===!0?r.jsx(Fe,{onCancelClick:()=>{W(!1)},meetingUrl:e}):null,r.jsx(We,{windowSize:z,children:X===!0?r.jsxs(Ve,{children:[r.jsxs(Qe,{children:[r.jsx(Oe,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(He,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),X&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Z,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(Ke,{windowSize:z,children:o.orText}),r.jsx(Z,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(c)}})})},Oe=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Ze,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Ge,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Ge=({cards:e,companyLegalName:s})=>{const i=G(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(hr,{children:[m!=null?r.jsx(Xe,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(gr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Je,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(O,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(H,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Je=()=>{const e=b(),s=G(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},qe=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c as Ie,q as Ve,a9 as Ue,aP as M,aa as Be,cS as _e,l as ze,O as Re,aU as G,j as t,fn as $e,h as Le,y as r,bF as We,P as qe,ad as Ne,e6 as He,o as B,C as Me,bA as Ge,aQ as Ke,u as a,am as Je}from"./index-6DHFBk74.js";import{b as p,n as S}from"./vendor-Bs1fkIUX.js";import{D as Qe}from"./HelpButton-Cp2LXxyy-C5Y06Y1n.js";import{K as Xe}from"./SetUpDefaultSection-C4NnRO65-C0fyZc92.js";import{f as Ye,y as K}from"./SpendMgmtSetupAccountSection-Dz3vQC2g-P6jfr6Bz.js";import{x as Ze}from"./LabeledControlledCheckBoxField-Bu2WHgAQ-BgnuqupP.js";import{g as et}from"./UploadAdditionalDocumentOverlay-CH9x8nx2-CEXAXlCj.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js";import"./ChargeCardUtils-Cy5rZlIH-BILI0sIl.js";import"./CreditCardPaymentPlgSection-HikR7OVv-BCZXDr8I.js";import"./ChaseOverlay-Dqg_bWdn-C8vTlyWM.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},J="chargeCardSetUpPage",h="payAccount",{commonSetUp:tt,spendManagement:nt}=Re.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:_}=tt,Tt=({autoPayThreshold:e,isDisabled:P,meetingUrl:T,isEarlyPayEnabled:f,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:le,onUpdateChargeCardClick:se,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:he,onEstablishConnectionSuccess:fe,onClickMenuIcon:ge,onEnableChargeCardSuccess:x,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:Pe,onSignUpClick:xe})=>{const g=Ie(),i=Ve(),v=Ue().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:z,isRefreshingViewInBackground:we,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:R,selectedCompanyOfficer:l,primaryFundingAccount:s,allFundingAccounts:$}=o,L=M(b),A=M(d.fetchState),j=Be({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>Q(o),[o]),values:Q(o)}),Ee=j.handleSubmit(le),ve=async(C,k)=>{const n=k[h];if(C.includes(h))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&s?.id!=n.fundingAccount.selectedOption){const u=$.find(U=>U.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&s?.id!=null&&s?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(U=>U.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&v.trackConnectBankLink(u.value,u.label,"charge_cards"),se(n.account.selectedOption,s.id,s.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=j.watch((k,{name:n})=>{n!=null&&k!=null&&_e(()=>ve(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&y(!0),w&&L==="In-Progress"&&b==="Completed"&&y(!1)},[l,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&x()},[x,A,d.fetchState]);const D=F?.isChargeCardEnabled===!0,O=R?.isDebitCardEnabled===!0,W=R?.isDebitCardTOSAccepted===!0,q=F?.isChargeCardTOSAccepted===!0,N=z?.isBusinessVerified===!0,Fe=s?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(s?.providerVerificationStatus?.code??""),I=E?N:N&&Fe,je=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&x()},[x,A,d.fetchState]);const V=E?I&&!O&&W:ie?I&&!D&&q:I&&!(D&&O)&&q&&W,De=V?m.setupSubTitleNotEnabled:m.setupSubTitle,H=g.mode==="light"?new G(g.colors.brandColorJadeLight):new G(g.colors.brandColorJadeDark),Oe=()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx($e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:l,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:Pe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!D&&!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ge,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:De}),je?t.jsx(ct,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ne,{...j,children:t.jsx("form",{id:X(J),onSubmit:Ee,children:t.jsxs(lt,{windowSize:i,children:[t.jsx(Xe,{onClick:Oe,title:_.businessVerificationTitle,subTitle:_.businessVerificationSubTitle,header:_.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:z?.businessVerificationStatus,isLoading:we,isActiveWhileLoading:!0}),E?null:t.jsx(Ye,{connectedAccountProvider:Z,primaryFundingAccount:s,allFundingAccounts:$,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:h,isDisabled:P,onFetchLinkTokenClick:ae,onEstablishConnectionClick:he,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:fe,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:v,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:xe,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:f?{marginBottom:"20px"}:{},bottomComponent:f&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...Me.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:K(h,"enableAutoPay"),checkBoxValue:K(h,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),V?t.jsx(Ke,{formId:X(J),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:P!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Qe,{isFooterRendered:V,meetingUrl:T,analytics:v,productType:"charge_cards"})]})},Q=e=>{const{allBankAccounts:P,allFundingAccounts:T,primaryFundingAccount:f}=e;return{[h]:{fundingAccount:{selectedOption:f?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:f?.zeniAccountId,allOptions:P.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},X=e=>`${e}_form`,it=S.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: flex-start;
|
|
4
4
|
height: 100%;
|