@zeniai/web-cockpit-ui 1.14.98-qa → 1.14.99-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-BRWOdhMx-B-izv--D.js +21 -0
- package/dist/assets/{AIPerformancePage-TtdFArUl-uXser-uf.js → AIPerformancePage-4v4Fkm9f-8H5taohv.js} +108 -108
- package/dist/assets/AccountInfoPage-Ca_vKG58--BfC_vXh.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BXX4TyeS-C4EJ3VMJ.js → AccountInfoPageContent-Dv1IPcdF-BHWFRnzI.js} +19 -19
- package/dist/assets/AccountLockedInfoModal-CEk5d9hq-BMstREsN.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-BZsVhDyw-B570cCNk.js → AccountReconDetailsDrawerPage-DYKjrPwN-Drg0SGIJ.js} +54 -54
- package/dist/assets/{AccountRow-COxNWv3J-B4EUrg0i.js → AccountRow-BM3xLbeh-BSdpkM-d.js} +30 -30
- package/dist/assets/{AccountsPromoCardStack-BW7r2R96-D8N78ah8.js → AccountsPromoCardStack-CTkwARBJ-Cy5pYNXf.js} +30 -30
- package/dist/assets/AddAddressForCardDrawer-DfOyebHX-DhjpIE6j.js +6 -0
- package/dist/assets/{AddToWalletPage-CXhBOHda-BeDX9RGw.js → AddToWalletPage-OJBvAKUj-B4ZmMeKh.js} +13 -13
- package/dist/assets/{AgingReportsPage-CX3Te0mD-BIMPcWZD.js → AgingReportsPage-n-UKn3Ei-CZEEMMir.js} +10 -10
- package/dist/assets/{AllUserItems-Cd2jEIM9-B9hdjONU.js → AllUserItems-BsvKEVcx-lxn8aic0.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-BCBhgQDY-C0EKPdXU.js → ApAgingDetailPage-Duu2uAEr-DUMvdGKK.js} +5 -5
- package/dist/assets/{AppBasePage-BRcQ7IPJ-DutcAwno.js → AppBasePage-DoCF494Z-qPWVG34b.js} +16 -16
- package/dist/assets/{AppDrawerContent-DQlHQEcs-DLSmKyRJ.js → AppDrawerContent-DM1t0oLS-9US_DgsB.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-Cqt8FvLJ-Dcokd50I.js → ApprovalRulesSettingsPage-GZCo6_i2-CJH6P32S.js} +6 -6
- package/dist/assets/{ArAgingChart-BvAQf_dB-DuZvWO-Q.js → ArAgingChart-CsFDVdeO-C4PujVrW.js} +4 -4
- package/dist/assets/ArAgingDetailPage-CaOr6vAU-B5uL9zyI.js +46 -0
- package/dist/assets/{AttachmentView-e6OZT5St-DqYOouQl.js → AttachmentView-B0d42oAf-DVHm34mB.js} +6 -6
- package/dist/assets/{BankAccountSection-DWKYMZid-VBEJaF0G.js → BankAccountSection-Bgdk93V0-Cg5PjZDc.js} +7 -7
- package/dist/assets/BankAccountWarningSection-DMRmF2yM-BgfDzJHZ.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-DLnQeHtD-BXUv6CG7.js → BankConnectionsSettingsPage-BpwKq93l-Brctq4SF.js} +16 -16
- package/dist/assets/BillDetailPage-BG7FhHEq-DUv2nuJK.js +266 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-A9_oblKa.js +27 -0
- package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-BjMEKdHG.js +235 -0
- package/dist/assets/BillPayPromoPage-aGKOv8Ur-eBwd93N4.js +84 -0
- package/dist/assets/{BillPaySetUpPage-CneIMbul-BFdnuBwg.js → BillPaySetUpPage-DRCjyEfB-XKTwWmRS.js} +2 -2
- package/dist/assets/{BillingSettingsPage-35KDGxi0-CUXbiJI4.js → BillingSettingsPage-CdYb74V7-HQVzU-6G.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-B2SeSM_K-KjC1YEHo.js → BillsBulkReviewDrawerPage-D8EGfY5P-B0Wqyx4s.js} +1 -1
- package/dist/assets/{BoxItem-BGDuiQll-SbLnCH_S.js → BoxItem-WOrvBzns-DN4WYKEf.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-GZnJ9G9I-BIwYlUUz.js → BusinessVerificationPage-CbqJIVpz-DVX5hTQl.js} +10 -10
- package/dist/assets/{CardNumberSubText-COHmqgEx-CwfhKSB3.js → CardNumberSubText-DBOH0_yP-3HOBgKpF.js} +8 -8
- package/dist/assets/{CashbackDetailPage-DvA_0POP-zs6KXs-G.js → CashbackDetailPage-D-kXy6LW-CbbkR_T0.js} +26 -26
- package/dist/assets/{ChargeCardDetailPage-DF69jsTG-hPfyciQI.js → ChargeCardDetailPage-BQnJsfn5-C0NtbZa-.js} +244 -244
- package/dist/assets/ChargeCardListPage-130ILwkr-ZB2yzsHG.js +412 -0
- package/dist/assets/{ChargeCardListTable-BEYWfP5G-BRCBGTIM.js → ChargeCardListTable-EGkwcy7i-DEc29h5o.js} +67 -67
- package/dist/assets/ChargeCardPromoPage-BwqrXrY--IstKF_Na.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BsTAJGSf-CKUm4_l7.js → ChargeCardSetupPage-DRzB7Rt4-DmQFjafd.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-BwuOooT4-CHM4k28L.js → ChargeCardStatementsPage-C3NxKjmB-C8FsLWHJ.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-CC3EUXpO-CF5fGfSc.js → CheckDepositDrawerPage-ClxKj2js-Do24RzJh.js} +17 -17
- package/dist/assets/{CollapsableReportTable-Bju2JSCg-BSE4kNvo.js → CollapsableReportTable-xkNXkjfh-CtzSwjPt.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CtHtINKb-CFehJGSv.js → CompanyOfficerDetailsSection-BtUBatbQ-Con3Jm3w.js} +30 -30
- package/dist/assets/{CompanyPassportCard-ClihOV6I-GVUlJP8e.js → CompanyPassportCard-BOxM716U-TVvNmGP9.js} +7 -7
- package/dist/assets/{CompanyPassportPage-Bzbp9vtj-4dA0AY_q.js → CompanyPassportPage-DzE7sm8S-Bu9tLN80.js} +40 -40
- package/dist/assets/{CompleteProfile-C88rpvIR-DxWKc-5-.js → CompleteProfile-BjGSPASa-AWB6Qzlv.js} +3 -3
- package/dist/assets/ConfettiBurst-1rYKpbAj-DRsprSNw.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-DJWcJCPR-Dl9O0TVh.js → CreateOrEditVendorPage-WQeDCj-E-D6Y6HtQ7.js} +20 -20
- package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-CloaEiop.js +224 -0
- package/dist/assets/{CurrencySelectField-9MMlAXHh-ORBioImf.js → CurrencySelectField-AjAWhg6e-BY-FVQ5N.js} +4 -4
- package/dist/assets/CustomerOnboardingActivationPage-BJhw-PvI-BRcGbX9s.js +88 -0
- package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-ByC2CvtB.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-EBEAYH3x-XKk3Vj6i.js → CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-DKx0xsM-.js} +15 -15
- package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-pyXbZEvq.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-BWvGF8wk-BF0Atf4b.js → CustomerOnboardingPage-CvN9Jrdy-CzriWSkS.js} +4 -4
- package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-7zbQywoe.js +202 -0
- package/dist/assets/{Dashboard-Zq5BpBhF-Clq5EYRk.js → Dashboard-_o0Ftdv8-_2fT5Ubv.js} +55 -55
- package/dist/assets/{DashboardReportPage-Pie-FQ1e-WfSD6Vb-.js → DashboardReportPage-Cu5wqWkj-BHVvAcwu.js} +20 -20
- package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-Ds_VkWfq.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-C6o7UraM-13lTBs69.js → DepositAccTransactionItem-BOPK7-7P-CUK10p36.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-DWIzj9EC-aUyx_5K-.js → DepositAccTransactionListPage-oj9tntbI-BS3VI9z2.js} +4 -4
- package/dist/assets/{DomesticWireDetailsPage-BbuaFhlm-Dq9oLE4F.js → DomesticWireDetailsPage-FGdEilUB-DiafQBWa.js} +1 -1
- package/dist/assets/{DownloadOverlay-smXqu_-_-HaHQ4oPo.js → DownloadOverlay-c57lEf_V-LFGP7g4c.js} +39 -39
- package/dist/assets/{DrawerPage-C-NGhaFc-C_xh6M62.js → DrawerPage-inbhWwND-Db0y8xmo.js} +18 -18
- package/dist/assets/EditPeoplePage-DJthuIP4-C5mu6ajz.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-CsQHoeMv.js +865 -0
- package/dist/assets/EntityDetailPage-DbTiF9Hs-C-1lJOCB.js +18 -0
- package/dist/assets/{EntitySummarySection-D7ui3VxW-CERyjpXQ.js → EntitySummarySection-CHgrPo86-DQf0eS91.js} +9 -9
- package/dist/assets/{ExpenseAutomationOverviewPage-Cci1pEY4-1sL_AHg7.js → ExpenseAutomationOverviewPage-QZT_UFXf-CqWIAvtS.js} +27 -27
- package/dist/assets/{ExpenseAutomationPage-DsPGEQpL-DKHafJ5b.js → ExpenseAutomationPage-Y7V_Z8rd-BtMIiHAT.js} +63 -63
- package/dist/assets/{ExpressPayPage-ddPMg7wE-DPR1g8Lc.js → ExpressPayPage-CIp_R6ZQ-bLqdW2c-.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-B7rx89MJ-D3LB_wGw.js → FeaturePreviewPage-qsUO3mUu-Bg5tciIN.js} +3 -3
- package/dist/assets/{FollowStepsSection-WUNvyjJh-B3nIPwPh.js → FollowStepsSection-ebmR-eLP-DUvk8yUe.js} +49 -49
- package/dist/assets/{GlobalReviewListPage-CrEL8cxP-qAlR9aFX.js → GlobalReviewListPage-9V-xoqvs-DgQFHT5d.js} +14 -14
- package/dist/assets/{InformationCardStack-cYN7bwE3-sO0pAOzz.js → InformationCardStack-DnB7TmOk-DRRzuuUg.js} +8 -8
- package/dist/assets/{InsightsCardStack-CAuhoPST-B5pOanGY.js → InsightsCardStack-BBczCYEz-DTWoyTqN.js} +12 -12
- package/dist/assets/InsightsSection-BTXj5WUe-ByTIWrkc.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CBqEJpyq-GRgtPKr0.js → IntegrationsSettingsPage-CByj2tO4-C70tL_8j.js} +10 -10
- package/dist/assets/{InternationalWireSwiftDetailsPage-Bg2_G0O4-BSPnTjV8.js → InternationalWireSwiftDetailsPage-4-pl1ozv-BerAwOXU.js} +17 -17
- package/dist/assets/{InternationalWireVerificationPage-BdaKAePs-CkGYQoGn.js → InternationalWireVerificationPage-kIajgPZt-CeT00ZG8.js} +26 -26
- package/dist/assets/{InviteFormPage-a7CtHDQi-DSGkeOn0.js → InviteFormPage-XsnZcAvb-CP-m9x5T.js} +24 -24
- package/dist/assets/{InvitePageListView-D0flsJMi-0Jk6a2Yk.js → InvitePageListView-HfsehyxK-NVvr8Ith.js} +78 -78
- package/dist/assets/InvitePeoplePage-DrBtwpMH-CbYg413Q.js +12 -0
- package/dist/assets/{InvoiceUploadSection-D6gMuygS-DsLHKXnW.js → InvoiceUploadSection-DPd4VmqZ-CDlXjsFg.js} +4 -4
- package/dist/assets/{IssueChargeCardPage-_zy-SJN0-pxLtKqbn.js → IssueChargeCardPage-xbfFhV0O-D9cPo91Q.js} +34 -34
- package/dist/assets/{LabeledAddressValue-CXqpyfBQ-C92S2n2L.js → LabeledAddressValue-CB_KH7v5-BfaoCJC2.js} +2 -2
- package/dist/assets/{LabeledAddressValueField-D-0wb98p-CikvqVxv.js → LabeledAddressValueField-Bt41wdNQ-C-99cOeY.js} +4 -4
- package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-BqFptUno.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-B-OgiRpS-OWY6lxtT.js → LabeledCreatableSingleSelectField-fycRE7PX-Hf4cCYiq.js} +4 -4
- package/dist/assets/LabeledDocumentField-C73vQNgq-BAncal8r.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-D54g8qxW-StSaD31c.js → LabeledDropDownFormattedTextField-DGb_bDyp-BCPR37EJ.js} +7 -7
- package/dist/assets/{LabeledText-BJi28Cmu-D9lfYP7U.js → LabeledText-yhm8qxrA-Bs5CTGJn.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dgn_WK0p-DWc0c9MZ.js → LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-DC0r0kWN.js} +23 -23
- package/dist/assets/{LabeledZeniRolesDropDownField--9AjGtEh-BGkQVvtD.js → LabeledZeniRolesDropDownField-DGkU72cd-ub025LyJ.js} +25 -25
- package/dist/assets/LinkJETransactionPage-C0onrP5t-BH-iwj4o.js +98 -0
- package/dist/assets/{LockCardPage-4ihNCAhG-BCEngBp6.js → LockCardPage-DaVzuRMw-Dq4q5Qyn.js} +21 -21
- package/dist/assets/{LowBalancePopup-YdUL24Wb-Cp0qxN-v.js → LowBalancePopup-Dd9HLWlh-9AO78nGr.js} +4 -4
- package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-CbO6Gy8N.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-6hv3VXVe.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-DGyc9KKZ.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-B-YTZWYj-Dgy0fFVg.js → MagicLinkSuccessPage-DbhdGmhh-Dlqur3CF.js} +5 -5
- package/dist/assets/{MagicLinkTitleSection-RHv_GuEq-y4Cr3bt2.js → MagicLinkTitleSection-Bx92291D-eyJD0RqY.js} +4 -4
- package/dist/assets/MailingDetailsSection-D-tnK244-DkMA7qYY.js +21 -0
- package/dist/assets/Menu-0YHUdU0n-DClJzSBJ.js +17 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-CryrCaA2-BKVxzlg0.js → MyBankConnectionsSettingsPage-Dn9AT8p1-DOZcDQsI.js} +4 -4
- package/dist/assets/{MyPendingActivationChargeCardListPage-DmmwfwjV-D-UqXttD.js → MyPendingActivationChargeCardListPage-DrQu6s7j-CuceVEXz.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BspAqqsh-DUIa5pOA.js → MyProfileSettingsPage-CBvjEd7r-BTYXHZnd.js} +10 -10
- package/dist/assets/{NavBarWithPicker-C7xr7tTs-CXcnIkbM.js → NavBarWithPicker-aXn2QYh1-wbQMsyuO.js} +5 -5
- package/dist/assets/{NavigationArrow-rBOsZ92g-fpwJrM5H.js → NavigationArrow-JLUXaIrz-Dqbhc2Cm.js} +8 -8
- package/dist/assets/{NavigationDots-CautbD-g-BZ85pLrg.js → NavigationDots-B0_dDbgu-D0YfkCXB.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-DD4raaWT-DqQ8tI0s.js → NewGlobalMerchantPage-B_019EtP-DM6Ow8UK.js} +12 -12
- package/dist/assets/NoDataChart-DLKHNXD4-tDLmbg2P.js +26 -0
- package/dist/assets/NoDataTable-BMD2qygC-BimI42bf.js +8 -0
- package/dist/assets/{NotFoundPage-D-nIKeoL-BrOOdcPB.js → NotFoundPage-BEya4LS2-BAtVahFo.js} +7 -7
- package/dist/assets/{NotificationSettingsPage-DP3xTLvr-D68mpAoX.js → NotificationSettingsPage-C9SjRKCu-AB1K2bpw.js} +23 -23
- package/dist/assets/NotificationsListConfig-OCeJNw1G-D_0tuWLm.js +1 -0
- package/dist/assets/{NotificationsPage-DkDGBzhT-BJUrRrH6.js → NotificationsPage-FJHx_WBG-DVMmN4nH.js} +49 -49
- package/dist/assets/{OpExByVendorPage-CtcdC3f9-2hXVNqVf.js → OpExByVendorPage-Dxk68R6U-DAiWfakx.js} +12 -12
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-DZQfrAEK.js → OverlayContainerPage-Daz3A7cI-8v0sqF2w.js} +1 -1
- package/dist/assets/PandLWithForecastPage-Bu49FbWD-CfqbniUD.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BjcqKBLG-CUIvRQIH.js → PaymentAccountSetupBillingAddressSection-s9EEHxoG-ByN70cgf.js} +8 -8
- package/dist/assets/{PeoplePage-DCI7v6ru-BGUJ5TP9.js → PeoplePage-DN5VtG7Q-BobeSyfg.js} +29 -29
- package/dist/assets/Preview-B4cYjk3Q.js +1 -0
- package/dist/assets/{ProductsCarousel-Dqm1bC2_-D6IxIf3S.js → ProductsCarousel-6gthLCkf-CBWUX5-H.js} +8 -8
- package/dist/assets/{PromoBaseCards-dqE7GIJ6-D0yVIiC6.js → PromoBaseCards-CzPzj69A-VNtWOXHP.js} +6 -6
- package/dist/assets/{QBOConnectionDialog-CGPNOde4-CR0zHLvc.js → QBOConnectionDialog-BFy0lMZd-DQ6dF1fn.js} +6 -6
- package/dist/assets/{QBOSetupSection-HhIe91hw-DHN5dIMI.js → QBOSetupSection-DcLYyQ5m-BZmieU8G.js} +16 -16
- package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-DMhGskvy.js +26 -0
- package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-17BV5IdU.js +237 -0
- package/dist/assets/ReimbursementDetailPage-DatcF8rt-DDHL4NDq.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-BZoZAydM-gLfgxCqS.js → ReimbursementPromoPage-MweW-4DO-DOu17agw.js} +10 -10
- package/dist/assets/{ReimbursementSetUpPage-C8Oat8g_-B0DjcA85.js → ReimbursementSetUpPage-BD2LWlbW-CPGJalxA.js} +10 -10
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BSXV7fzi-DX28exoT.js → ReimbursementsBulkReviewDrawerPage-DV_PLm_g-C-hMp3nk.js} +1 -1
- package/dist/assets/{ReloadCard-BMn_7fNI-yFHo4tad.js → ReloadCard-9KpQCrce-CJxth4v-.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BE2BuEqj-BMoVH1Lv.js → ReportTableViewSelector-BPliEsuo-CYSspAKt.js} +8 -8
- package/dist/assets/{ReportsPage-C4HDLBDq-Dbvzy9RX.js → ReportsPage-h2DAaQfK-BbjLhSlv.js} +14 -14
- package/dist/assets/{RevenueChart-q15U89i8-9Vc-OWiF.js → RevenueChart-DY2s_upY-BrlpK408.js} +2 -2
- package/dist/assets/{ReviewDetailsPage-4mhC2jOb-Dm0CnUM2.js → ReviewDetailsPage-BiYxRnvA-B6yUj6Im.js} +20 -20
- package/dist/assets/{ReviewOverlay-Co22Cju1-CN_x1DtX.js → ReviewOverlay-BvPN7IKD-Dzf2W2o-.js} +12 -12
- package/dist/assets/RoleWithToolTip-aW95rpRe-BSqBI82l.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DkKSZ0sJ-2Be8yY-W.js → ScheduleDetailsFixedAssetsPage-DlXqz1QQ-DCo0J0MC.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-B98XJtoQ-C92Z9nEO.js → ScheduleDetailsPage-DebosLND-Dr3_f1Ao.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DXLxjeWw-D6kfx-k4.js → ScheduleSequenceTable-Dd4Ep_c0-BGLZarfG.js} +36 -36
- package/dist/assets/ScreenRoutes-RCtfctxM.js +201 -0
- package/dist/assets/{SetUpAccountSection-AZk8_IC3-BgpEt7W0.js → SetUpAccountSection-Dhb8A0Oe-DTgzquEa.js} +8 -8
- package/dist/assets/SignIn-DQBJB5ad-Df-bXPXY.js +448 -0
- package/dist/assets/{SignInScreen-BeMNwV2Z.js → SignInScreen-ymJeGv_l.js} +1 -1
- package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-DDL7odAh.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-B-iCv2wr.js +754 -0
- package/dist/assets/SpendManagementSection-Ci2yOCJ9-Cl4Y2hmX.js +230 -0
- package/dist/assets/StatementItem-hcBoe79o-3MewkfUT.js +31 -0
- package/dist/assets/{StatementsPage-CBIa00EK-CDNYK1KG.js → StatementsPage-DVR5LhTi-yR6sBvKB.js} +3 -3
- package/dist/assets/{StatusSwitcher-Blc3-MDg-DCe5aCTB.js → StatusSwitcher-Cy5ITFgi-BPjCuaKT.js} +1 -1
- package/dist/assets/{SubTabSwitcher-3oir5lzq-BbfbzkBT.js → SubTabSwitcher-DhsES2OW-Bo9PDg54.js} +4 -4
- package/dist/assets/{SummaryCard-DO09QLUp-Cm1UBlTE.js → SummaryCard-Byv4Hw8Q-CRXX5OyN.js} +1 -1
- package/dist/assets/{TaskManagementPage-C_EZJRtM-DEHqnRmR.js → TaskManagementPage-CVXMOPf2-BPgLGH37.js} +42 -42
- package/dist/assets/TimeRangeSwitcher-jct2_5PE-CLdBT1H-.js +64 -0
- package/dist/assets/{TimeframeSwitcher-BsGp8KOv-CZ-VtILM.js → TimeframeSwitcher-BK-qliOX-H_AqcOc6.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-B90xLHLZ.js +31 -0
- package/dist/assets/{TopExCard-Cn8iW3fO-CG_XDz13.js → TopExCard-o4Q3ze1b-BhWZC02k.js} +12 -12
- package/dist/assets/{TopExDetailPage-BS8qCkLq-DlPS1xGU.js → TopExDetailPage-BsCwwwDi-CQb-1xKa.js} +12 -12
- package/dist/assets/{TransactionDetailPage-CUeVImfA-FAGZgaG8.js → TransactionDetailPage-rpCG65yC-DrwxmLfQ.js} +36 -36
- package/dist/assets/{TransactionList-CnjoEn7K-C0NzRtWS.js → TransactionList-YI4oZaim-BA7WlPL4.js} +15 -15
- package/dist/assets/{TransactionListBig-xVKV1MCm-BPazwMDR.js → TransactionListBig-D_Jw9Ip2-D2rLxw32.js} +12 -12
- package/dist/assets/TransactionListPage-B2yWm7eA-DHwvAIPN.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-Dr5C4-7q-cB0L9hlJ.js +80 -0
- package/dist/assets/{TransferDrawerPage-uBmvyc-P-26b9HxZW.js → TransferDrawerPage-BnEVH7Mc-BoQvOiLs.js} +34 -34
- package/dist/assets/{TreasuryOverviewPage-DJcUyLa4-BnA9LVmq.js → TreasuryOverviewPage-C927Rdkg-CauQRw4k.js} +47 -47
- package/dist/assets/{TreasuryPromoPage-DymCO6nN-YVkYCZi3.js → TreasuryPromoPage-C6D3bF2f-OrOyQ7OO.js} +14 -14
- package/dist/assets/{TreasuryStatementsPage-YEgI38zU-CTshBTHF.js → TreasuryStatementsPage-BE54gWl6-D5_ViYZY.js} +4 -4
- package/dist/assets/{TreasuryTaxLetterPage-CYO6JXCO-C06DT4sF.js → TreasuryTaxLetterPage-BaHut8Wc-CEbpmHg1.js} +3 -3
- package/dist/assets/{TrendChart-Dzc9yPKs-DCcvZ56Z.js → TrendChart-BI4Tz813-fFdjYEGq.js} +4 -4
- package/dist/assets/{TrendWithTransactions-C2HIrxbU-DAMM6QVL.js → TrendWithTransactions-BicIDSlC-CR1UupOW.js} +7 -7
- package/dist/assets/{UncategorizedAccountsMappingPage-CN3CI6bw-CpvcuXEX.js → UncategorizedAccountsMappingPage-sbn4Sdr2-Cp0yxgAi.js} +13 -13
- package/dist/assets/{UnitIntegrationPage-EaVWz4pX-Bz0x6lsY.js → UnitIntegrationPage-CZUyjeh5-CHXW7rW2.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-4AWDV_HK-BN630Ftn.js +38 -0
- package/dist/assets/Vendor2FAPopup-C_PmEAQ7-CPcuM1Lv.js +1 -0
- package/dist/assets/VendorACHDetailsPage-DMMoCytX-D0o8agib.js +1 -0
- package/dist/assets/{VendorDetailPage-C_B_CmoV-DhDUfade.js → VendorDetailPage-CLFKkF8I-C1yDRJ_V.js} +87 -87
- package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-C47siTp3.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-Dzgzl_4E-C6CtI7F3.js → VendorFiling1099EditablePage-CrWrhHZl-jwDcG4lR.js} +17 -17
- package/dist/assets/{VendorFirstReviewPage-mfIvCyFK-BDtrVL1t.js → VendorFirstReviewPage-C6MnbIan-DEgAFFp_.js} +60 -60
- package/dist/assets/{VendorInternationalWireDetailsPage-CNs1VqUa-AxRoZVqc.js → VendorInternationalWireDetailsPage-CzPRK4E2-DPbUqt-0.js} +17 -17
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-OZPxcMNL.js +1 -0
- package/dist/assets/{VendorsAccountsSection-B6DkSP2a-TGZHJo6b.js → VendorsAccountsSection-CVh1n81R-DKMXaRY8.js} +5 -5
- package/dist/assets/{VerifyDevice-Cu9P83rS-BXogqvvq.js → VerifyDevice-BHocExfO-BBG3ubvW.js} +7 -7
- package/dist/assets/{VideoPlayer-Dml6r7Q7-kG7O2GEB.js → VideoPlayer-9rYRtSLf-BqgUiaDS.js} +2 -2
- package/dist/assets/{VideoPopup-B7E5ZfFp-2GwUp8oI.js → VideoPopup-D1o92dj6-CPKE8Mhx.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-BZU8XDHH-5F-nZ5Wh.js → WarningsDrawerPage-CzufXgaN-PU9KYQuW.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-Do5LJYN4-C5VZ1IHc.js → ZeniAccountDetailPage-ZZ3Ra-Jf-C6vBQEO7.js} +31 -31
- package/dist/assets/{ZeniAccountListViewPage-Be5rl4e6-B2LuzKy3.js → ZeniAccountListViewPage-Cxid0mfh-BWdmN1tO.js} +10 -10
- package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-CakYiqJV.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-BMULic13-DqiBlrLz.js → ZeniAccountPromoPage-YIYFkPIB-DeTeBxx_.js} +22 -22
- package/dist/assets/{ZeniAccountSetupPage-D_doc0Sf-DbkyYaRI.js → ZeniAccountSetupPage-BJ9UJ0dP-BVBV8wvJ.js} +1 -1
- package/dist/assets/{ZeniCopyright-CDfvakjf-DdFXxWan.js → ZeniCopyright-CztmWsFm-BfzonAhy.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BdZ5l3Hh-B0z6Ak2I.js → ZeniTransferAmountSlider-g9qU5Lsq-Xlt7u852.js} +7 -7
- package/dist/assets/{add-to-wallet-DgdBD8_G-Bp_adk0W.js → add-to-wallet-DgdBD8_G-C9HdEEg2.js} +1 -1
- package/dist/assets/{analytics-GoB8GGlk.js → analytics-DHoFVrJa.js} +1 -1
- package/dist/assets/{analyticsHelper-C164AjRf-BUQv6elD.js → analyticsHelper-D4lKCWjQ-D3kvyQYi.js} +1 -1
- package/dist/assets/analyticsHelper-ogjXN0a1.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-BlptIYjS.js → arrow-south-east-round-PEovUgvH-DTpfnp7v.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DNmdc0t7.js → auto-transfer-rule-mbafm5D3-Drj2iH_J.js} +1 -1
- package/dist/assets/{chartTypes-DQ1OffIu-DkB5GpFi.js → chartTypes-BPPSjkhb-B7nnCmyE.js} +1 -1
- package/dist/assets/{commonDimensions-j5_IHOmP-BbAWTMhB.js → commonDimensions-Ds75pRzR-BWQNp0GW.js} +1 -1
- package/dist/assets/{constants-DTxI1rHn.js → constants-JMxq3kKJ.js} +1 -1
- package/dist/assets/{core-cG0U1y2d.js → core-DbjebHB2.js} +2 -2
- package/dist/assets/{dash.all.min-CKz_ZRDI.js → dash.all.min-DW9Kl4IB.js} +1 -1
- package/dist/assets/{detailCommon-BdYIBs8o-C7RP83q0.js → detailCommon-DdZdfmYT-DKTM1aWX.js} +6 -6
- package/dist/assets/downloadPdf-B8UMaJCC-DUveB_dN.js +1 -0
- package/dist/assets/{empty-DAIP1XxB.js → empty-6lxZMaF0.js} +1 -1
- package/dist/assets/{index-BMQnSjFr.js → empty-wNjVfCDj.js} +1 -1
- package/dist/assets/epic-DThgZpcq.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CTtI5cXz.js → gift-box-Cmt9OgIZ-CNk2xYWr.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-PUQeicgl.js → graphic-no-data-l-DU4J8fDt-ClpG2ri3.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BwRajxvj.js → graphic-no-data-net-burn-l-CzmycA0m-BOz-3nes.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BXfsCAUf.js → handshake-BPg58FML-k1WIZYu1.js} +1 -1
- package/dist/assets/{index-BqrFe7eC.js → index-7ciVtOQ7.js} +1 -1
- package/dist/assets/{index-DL_zrSsq.js → index-BqVFY7NZ.js} +4410 -4418
- package/dist/assets/{index-DVGnYxP0.js → index-C1PhqSzi.js} +1 -1
- package/dist/assets/{index-uRSEmDsl.js → index-Cryszh5n.js} +1 -1
- package/dist/assets/{index-CpulHfxu.js → index-JDXIN5Fj.js} +1 -1
- package/dist/assets/index-JN-1XlIu.js +1 -0
- package/dist/assets/index-TZkjLPoA.js +1 -0
- package/dist/assets/{lexical-CUq6kk0g.js → lexical-B-aBuW2Y.js} +1 -1
- package/dist/assets/{liveblocks-BOlC_Koo.js → liveblocks-DBgNWxtT.js} +1 -1
- package/dist/assets/{lottie-DQ5EyuJ6.js → lottie-DbNQVAcx.js} +2 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-DGzOqzir.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-rrJBbsC8-TBViCt8n.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-CWvamMX2-HhIsCvlh.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DfQk4Tsr-CrmG1KLX.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-D-1vMkLl.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-DDk9yv3G.js +1 -0
- package/dist/assets/{mui-ByF8ZmHV.js → mui-BdKs9UwT.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-C2KjOx45.js → page-detail-CWX5S47F-Dil4tjIc.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-B7-vB3nP.js → radio-default-CiSgisfh-DIcxqpZX.js} +1 -1
- package/dist/assets/{react-B3-oq61_.js → react--GRYl8Vw.js} +2 -2
- package/dist/assets/{react-B1eYDq6e.js → react-1ymFMNft.js} +3 -3
- package/dist/assets/{react-B20ZDkLv.js → react-2NSNcP_P.js} +2 -2
- package/dist/assets/{react-osFWCkxJ.js → react-D1OXMWSN.js} +2 -2
- package/dist/assets/{react-D74rpLXu.js → react-DEyP-vQs.js} +1 -1
- package/dist/assets/{react-CeCukAHo.js → react-DaVNNE91.js} +1 -1
- package/dist/assets/{react-BU_tzuye.js → react-DfSxWhpD.js} +1 -1
- package/dist/assets/{react-iY_JqSpg.js → react-Dmst1txh.js} +2 -2
- package/dist/assets/{recharts-C9z9JCsM.js → recharts-CU0wfbyQ.js} +1 -1
- package/dist/assets/{sentry-DdXOXL3j.js → sentry-DfYwagp9.js} +2 -2
- package/dist/assets/{shield-DOlUxcFf-hMFlex27.js → shield-DOlUxcFf-C7eXS_DD.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CkjRB0sJ-BaA2_x3K.js +1 -0
- package/dist/assets/toChartData-CMi2WgAy-JL4zgl5e.js +1 -0
- package/dist/assets/transaction-placeholder-CpOwZAMG-C6Cgts33.js +1 -0
- package/dist/assets/{uploadAttachment-DiJJciQx-CTJnPHjt.js → uploadAttachment-B4ddYCCL-BXwz-FZi.js} +27 -27
- package/dist/assets/{uploadReceipts-CPw64UYa-BiBffXJB.js → uploadReceipts-CPw64UYa-CTZvsl83.js} +1 -1
- package/dist/assets/{url-PLN9h9fH.js → url-CNQZElM1.js} +1 -1
- package/dist/assets/{url-DnfeNFje.js → url-K5H6qIZr.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-aie8BHVS.js → useLongPress-GCK2COYQ-hK0wtujH.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-nbZRH-xL.js → usp-line-BBd1wKwW-C0__t1n1.js} +1 -1
- package/dist/assets/{utils-BMrfBn9K.js → utils-DTmuLq6q.js} +1 -1
- package/dist/assets/{zeni-epic-state-BiQIJCwr.js → zeni-epic-state-DcbIZGFH.js} +32 -32
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-DSdNOxQ9-BUDY7ebN.js +0 -21
- package/dist/assets/AccountInfoPage-BVK7wWF2-DkuUb7hY.js +0 -18
- package/dist/assets/AccountLockedInfoModal-CiHVEVZY-DS_3He1-.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-BB7h_VuN-JKCzRF55.js +0 -6
- package/dist/assets/ArAgingDetailPage-BjvQEK0m-CiJw0H2M.js +0 -46
- package/dist/assets/BankAccountWarningSection-neFg-P9--TJDw43tL.js +0 -51
- package/dist/assets/BillDetailPage-Caang31I-DbNvy9BW.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-4n9jmsl3-DclQvVS0.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-BPX-ygl8-D9MJjP_M.js +0 -241
- package/dist/assets/BillPayPromoPage-KojRs3th-BYB9Z023.js +0 -84
- package/dist/assets/ChargeCardListPage-BaxxkyMM-MzCs1Y26.js +0 -412
- package/dist/assets/ChargeCardPaymentHistoryPage-5dwl-3gt-B3dNp_0o.js +0 -534
- package/dist/assets/ChargeCardPromoPage-DXHFY90F-BtTao1XR.js +0 -222
- package/dist/assets/ConfettiBurst-fYnxwqdQ-C4yZDZVx.js +0 -1
- package/dist/assets/CreditCardPaymentDrawerPage-nshXhNlE-EyB92Kcq.js +0 -227
- package/dist/assets/CustomerOnboardingActivationPage-J6mQ99Q--Cb3ro4zs.js +0 -88
- package/dist/assets/CustomerOnboardingContainerPage-DHYXaV1V-C56kqXXZ.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-_P1XRJy7-U2wzBaVr.js +0 -66
- package/dist/assets/CustomerOnboardingProductSuitePage-BWN72Maw-BM98ceTr.js +0 -202
- package/dist/assets/DashboardSidebarBackgroundAnimation-BCWBgFUn-Ch7XCa5X.js +0 -12
- package/dist/assets/EditPeoplePage-Ck6tbODS-ubBGSkLn.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-CYCB7XUZ-BrP9Twu0.js +0 -865
- package/dist/assets/EntityDetailPage-DEzsWzSU-YUiOx1kj.js +0 -18
- package/dist/assets/InsightsSection-9xZ9BN4e-DNtCiXCr.js +0 -27
- package/dist/assets/InvitePeoplePage-xJZ4CmaB-z8ULVrxL.js +0 -12
- package/dist/assets/LabeledControlledCheckBoxField-CcPruRSO-CaFIYxzs.js +0 -16
- package/dist/assets/LabeledDocumentField-Bo6fnkUs-BiNfrt85.js +0 -41
- package/dist/assets/LinkJETransactionPage-CejrEmB0-CbM_tuHa.js +0 -98
- package/dist/assets/MagicLinkACHDetailsPage-BNATDZtB-DxEBt3UQ.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-ZGyx0g5t-NsxxIUno.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CP5KtUSE-jXdIObjE.js +0 -1
- package/dist/assets/MailingDetailsSection-DAryNhi6-CuFuumI_.js +0 -21
- package/dist/assets/Menu-IHf_FfRX-BtY6fG9T.js +0 -17
- package/dist/assets/NoDataChart-58kSyixy-C8J9Kl-k.js +0 -26
- package/dist/assets/NoDataTable-aDUu8tCI-CaXH8kWv.js +0 -8
- package/dist/assets/NotificationsListConfig-CAW8P9gG-6D54Tubf.js +0 -1
- package/dist/assets/PandLWithForecastPage-CpCiLOIl-BiGua3ch.js +0 -107
- package/dist/assets/Preview-D56XCw0A.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-Cx24E4je-xuDoSOD3.js +0 -32
- package/dist/assets/ReimbursementApprovalRulesPage-DRAkofwN-CwdWvhQr.js +0 -243
- package/dist/assets/ReimbursementDetailPage-DToZctqy-CNjKjgjE.js +0 -314
- package/dist/assets/RoleWithToolTip-DUEwWP4s-C_YDFJH-.js +0 -22
- package/dist/assets/ScreenRoutes-BbQAiTN4.js +0 -201
- package/dist/assets/SignIn-C5PcCpLW-U8wNP0Mh.js +0 -480
- package/dist/assets/SpendManagementListViewPage-BmZeAl5K-Dl61C1Zj.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-BfJ_icLF-C0rTj6cX.js +0 -785
- package/dist/assets/SpendManagementSection-DoJcpweo-CSStq-Fq.js +0 -246
- package/dist/assets/StatementItem-Bw66NYeY-DPAgwnTs.js +0 -31
- package/dist/assets/TimeRangeSwitcher-mYZQR43P-B8L8C54A.js +0 -64
- package/dist/assets/TimeframeSwitcherWithToggle-wwIX-Q6T-DeXcelpz.js +0 -31
- package/dist/assets/TransactionListPage-DDNtUv3t-BvPpANOB.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-BTufZurh-C2D6Zsr6.js +0 -80
- package/dist/assets/UploadAdditionalDocumentOverlay-DIL6E7Sd-nr87DyQG.js +0 -38
- package/dist/assets/Vendor2FAPopup-BxAm0k92-pzvF3dzq.js +0 -1
- package/dist/assets/VendorACHDetailsPage-DF0jHzqw-BjdrHpXc.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-a52VbRia-CuThrVrd.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BoEZ09xC-Cqzq-YZ_.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-0h-vfuVY-C3yFjXgV.js +0 -14
- package/dist/assets/analyticsHelper-Cg6AQnia.js +0 -1
- package/dist/assets/downloadPdf-BduTAGPj-D606RiQz.js +0 -1
- package/dist/assets/empty-D_oWKko5.js +0 -1
- package/dist/assets/epic-4bGyY7Fz.js +0 -2
- package/dist/assets/index-D4nV_3XK.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-kWMAzMb3-DMbKtDeY.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CSuXPDoO-DzJLlKZa.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-BjnjpyM6-CTSMNsLI.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CaRKUf6w-CJ4Nigud.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-XslT-q64-BTC8ZLHF.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-DQz_5jDI.js +0 -1
- package/dist/assets/toCOABalancesWithID-BA4WkU1y-IaWUt-zn.js +0 -1
- package/dist/assets/toChartData-DrvhJgTD-RZQRJ7Js.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as ze,gU as hi,iJ as pi,iK as ui,iL as mi,aP as gi,o as i,aN as Y,ck as xi,b as Be,p as I,b2 as wi,cr as Ci,iM as fi,iN as yi,bR as ye,bM as Si,aR as ki,y as C,ez as vi,b9 as $i,iO as ji,aS as bi,u as Ii,ai as ee,gX as Li,am as G,al as X,d as p,cP as zi,cY as Ai,iP as Fi,iQ as Pi,M as ft,bW as yt,iR as St,iS as Ri,bP as Bi,cw as Ge,iT as kt,ds as Di,dt as q,aL as ce,ct as vt,A as $t,iU as _i,cz as Ei,iB as Xe,bI as jt,bK as bt,iV as Ti,iW as Oi,aT as $e,bs as Vi,bX as Ui,bY as Ni,iX as Mi}from"./index-DL_zrSsq.js";import{S as pe,a as f}from"./sentry-DdXOXL3j.js";import{n as o,c as Je}from"./mui-ByF8ZmHV.js";import{w as Oe}from"./Menu-IHf_FfRX-BtY6fG9T.js";import{T as It}from"./RoleWithToolTip-DUEwWP4s-C_YDFJH-.js";import{j as Ve}from"./CardNumberSubText-COHmqgEx-CwfhKSB3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="0308b4b8-d613-4bed-a08c-429967d671f8",e._sentryDebugIdIdentifier="sentry-dbid-0308b4b8-d613-4bed-a08c-429967d671f8")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Qe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Qe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Yi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),O=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),O!==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(O)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Xi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":Y("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":Y("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(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=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Xe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Xe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(X)`
|
|
1
|
+
import{ca as ni,V as t,a8 as li,ab as di,F as le,q as ie,av as ke,a7 as ci,d as Fe,gR as hi,iI as pi,iJ as ui,iK as mi,aO as gi,o as i,aM as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iL as fi,iM as yi,bQ as ye,bL as ki,aQ as Si,y as C,ey as vi,b8 as $i,iN as ji,aR as bi,u as Ii,ag as ee,gU as Li,al as J,ak as Q,c as p,cO as Fi,cX as zi,iO as Ai,iP as Ri,a as ft,bV as yt,iQ as kt,iR as Pi,bO as Bi,cv as Je,iS as St,dr as Di,ds as q,aK as ce,cs as vt,m as $t,iT as _i,cy as Ei,iA as Qe,bH as jt,bJ as bt,iU as Oi,iV as Ti,aS as $e,br as Vi,bW as Ni,bX as Ui,iW as Mi}from"./index-BqVFY7NZ.js";import{w as pe,a as f}from"./sentry-DfYwagp9.js";import{n as o,c as Ye}from"./mui-BdKs9UwT.js";import{P as Te}from"./Menu-0YHUdU0n-DClJzSBJ.js";import{T as It}from"./RoleWithToolTip-aW95rpRe-BSqBI82l.js";import{j as Ve}from"./CardNumberSubText-DBOH0_yP-3HOBgKpF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5afaf1ff-1e45-4bb7-b93d-b22d67394542",e._sentryDebugIdIdentifier="sentry-dbid-5afaf1ff-1e45-4bb7-b93d-b22d67394542")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardRowClick:j,onChargeCardResendInviteClick:S})=>{const[h,m]=f.useState(!1),[y,P]=f.useState(!1);f.useEffect(()=>{h||P(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),P(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),F=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",U=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=F||U,v=ie(),E=!!ke().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,k)},[a.id]),T=St(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=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:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth: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(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth: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($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),S(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth: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:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&P(!0)},onMouseLeave:()=>{A&&P(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Ft=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Fe(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
|
|
2
2
|
color: inherit;
|
|
3
|
-
`,fe=o(
|
|
3
|
+
`,fe=o(Q)`
|
|
4
4
|
color: ${I.important};
|
|
5
|
-
`,
|
|
5
|
+
`,Qi=o.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
background-color: ${e=>e.theme.colors.grey5};
|
|
8
8
|
padding-left: ${e=>re.containerPaddingLeft.valuePx(e.windowSize)};
|
|
@@ -39,14 +39,14 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
39
39
|
margin-bottom: ${i.sp3};
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
align-items: center;
|
|
42
|
-
`,
|
|
42
|
+
`,Yi=o.div`
|
|
43
43
|
display: block;
|
|
44
44
|
width: 100%;
|
|
45
|
-
`,
|
|
45
|
+
`,Xi=o(Ni)`
|
|
46
46
|
width: ${i.sp4};
|
|
47
47
|
height: ${i.sp4};
|
|
48
48
|
color: ${I.important};
|
|
49
|
-
`,
|
|
49
|
+
`,Pe=o(kt)`
|
|
50
50
|
width: ${i.sp4};
|
|
51
51
|
height: ${i.sp4};
|
|
52
52
|
color: ${I.important};
|
|
@@ -62,7 +62,7 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
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{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
90
90
|
overflow: hidden;
|
|
91
91
|
text-overflow: ellipsis;
|
|
92
92
|
white-space: nowrap;
|
|
93
|
-
`,oo=o(
|
|
93
|
+
`,oo=o(Q)`
|
|
94
94
|
color: ${e=>e.theme.colors.hero};
|
|
95
95
|
flex-grow: 1;
|
|
96
96
|
-webkit-line-clamp: ${e=>re.webkitLineClamp.value(e.windowSize)};
|
|
@@ -108,14 +108,14 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f 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(Q)`
|
|
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(Q)`
|
|
119
119
|
color: ${e=>e.theme.colors.hero};
|
|
120
120
|
flex-grow: 1;
|
|
121
121
|
-webkit-line-clamp: ${e=>re.webkitLineClamp.value(e.windowSize)};
|
|
@@ -147,21 +147,21 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f 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(Q)`
|
|
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(Q)`
|
|
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(Q)`
|
|
165
165
|
color: ${e=>e.theme.colors.hero};
|
|
166
166
|
max-width: 100%;
|
|
167
167
|
padding-right: ${i.sp2};
|
|
@@ -184,7 +184,7 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
184
184
|
display: flex;
|
|
185
185
|
align-items: start;
|
|
186
186
|
flex-direction: column;
|
|
187
|
-
`,uo=o(
|
|
187
|
+
`,uo=o(Q)`
|
|
188
188
|
color: ${e=>e.theme.colors.hero};
|
|
189
189
|
max-width: 100%;
|
|
190
190
|
overflow: hidden;
|
|
@@ -192,7 +192,7 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
192
192
|
white-space: nowrap;
|
|
193
193
|
`,mo=o(ee)`
|
|
194
194
|
color: ${e=>e.theme.colors.hero};
|
|
195
|
-
`;o(
|
|
195
|
+
`;o(J)`
|
|
196
196
|
display: flex;
|
|
197
197
|
gap: ${i.sp2};
|
|
198
198
|
align-items: center;
|
|
@@ -269,9 +269,9 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
269
269
|
display: flex;
|
|
270
270
|
align-items: center;
|
|
271
271
|
gap: ${i.sp1};
|
|
272
|
-
`,
|
|
272
|
+
`,zt=pe.memo(({allCheckBoxValues:e,checkBox:s,fieldName:r,index:d,containerStyle:c,"data-testid":l,groupLabelCheckBox:a,registerOptions:n,style:x,mode:w,checkBoxContainerStyle:g,checkBoxIconStyle:k,checkBoxStyle:j,labelCheckBoxStyle:S,labelStyle:h,width:m,isDisabled:y,selectionLimit:P,infoIconContainerStyle:B,checkedIconColor:D,draggable:F=!1,onDragStart:U})=>{const{control:u}=Fi();return t.jsx(zi,{control:u,name:r,rules:n,render:({field:{value:v,onChange:E,ref:M}})=>t.jsx(ko,{style:{display:"flex",alignItems:"center",width:"100%",...g,...c},"data-testid":l??G("virtualized-checkbox-field",r),children:t.jsx(Ai,{checkBox:s,index:d,value:v,allCheckBoxValues:e,mode:w,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:k,checkBoxStyle:s.groupLabel?S:j,labelCheckBoxStyle:S,labelStyle:h,width:m,groupLabelCheckBox:a,infoIconContainerStyle:B,selectionLimit:P,checkedIconColor:D,isDisabled:y,draggable:F,onDragStart:U,ref:M,onChangeHandler:T=>Ri({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);zt.displayName="VirtualizedCheckBoxField";const ko=o.div`
|
|
273
273
|
position: relative;
|
|
274
|
-
`,
|
|
274
|
+
`,X={containerPaddingLeft:i.sp2,containerPaddingRight:i.sp3,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new C(p[0],p[4]),headerLastColumnRightPadding:new C(p[3],p[11]),headerLastColumnBottomPadding:new C(p[0],p[4]),headerLastColumnLeftPadding:new C(p[0],p[11]),headerHeight:new C(Oi,Ti)};function So({companyNameSticky:e,sortConfig:s,showViewForCardUser:r,onColumnSortConfigChanged:d}){const c=Fe(),l=ie(),a=!!ke().loggedInUserRole.includes("charge_card_user")||r,[n,x]=f.useState(Lt(a));f.useEffect(()=>{const h=[...n];for(const m of h)m.key===s.sortKey?m.sortOrder=s.sortOrder:m.sortOrder="ascending";x(h)},[s.sortKey,s.sortOrder]);const w=(h,m)=>{let y=m;s.sortKey===h&&(y=m==="ascending"?"descending":"ascending"),d(h,y)},g=n.find(h=>h.key===s.sortKey)??(a?n[1]:n[0]),k=h=>n.find(m=>m.key===h)?.value??"",j=(a?n.filter(h=>h.key!=="owner"):n).map(h=>h.key),S=le.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(bo,{windowSize:l,children:[t.jsxs(Fo,{children:[t.jsx(Ao,{children:t.jsx(zo,{})}),t.jsx(Bi,{title:S.sortBy,placeholder:S.sortBy,pickerValues:j,valueToLabel:k,selectedValue:s.sortKey,onPickerSelectionChanged:h=>{w(h,"ascending")},optionTextStyle:Be.extraSmallRegular,titleTextStyle:Be.extraSmallRegular,titleColor:c.colors.primary,selectedOptionColor:c.colors.hero,optionBackgroundColor:c.colors.grey5,downChevronVisible:!1,backgroundColor:c.colors.grey4})]}),t.jsxs(Bo,{onClick:()=>w(g.key,g.sortOrder),"data-testid":G("mobile-cards-list-sort-clicked",s.sortKey),children:[t.jsx(J,{children:g.value}),t.jsx(dt,{windowSize:l,sortDataValue:s.sortKey,headerdata:g,children:t.jsx(ct,{windowSize:l,children:t.jsx(Je,{})})})]})]}):t.jsx($o,{windowSize:l,children:t.jsx(jo,{children:n.map(h=>h.width.value(l)!==0&&t.jsxs(Io,{companyNameSticky:e,sortDataValue:s.sortKey,actualDataValue:h.key,wrapperWidth:h.width,windowSize:l,children:[t.jsxs(Po,{onClick:()=>w(h.key,h.sortOrder),"data-testid":G("cards-list-sort-clicked",s.sortKey),children:[t.jsx(J,{children:h.value}),t.jsx(dt,{windowSize:l,sortDataValue:s.sortKey,headerdata:h,children:t.jsx(ct,{windowSize:l,children:t.jsx(Je,{})})})]}),t.jsx(Ro,{sortDataValue:s.sortKey,windowSize:l,isVisible:s.sortKey===h.key&&(a?h.key!=="cardName":h.key!=="owner"),children:t.jsx(Lo,{onClick:()=>w(a?"cardName":"owner","ascending"),"data-testid":G("cards-list-sort-cancel",s.sortKey)})})]},h.key))})})}const vo=pe.memo(So),$o=o.div`
|
|
275
275
|
top: ${i.sp0};
|
|
276
276
|
left: ${i.sp0};
|
|
277
277
|
z-index: 2;
|
|
@@ -282,20 +282,20 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
282
282
|
display: flex;
|
|
283
283
|
align-items: center;
|
|
284
284
|
box-sizing: border-box;
|
|
285
|
-
padding: ${
|
|
286
|
-
${
|
|
285
|
+
padding: ${X.containerPaddingTop} ${X.containerPaddingRight}
|
|
286
|
+
${X.containerPaddingBottom} ${X.containerPaddingLeft};
|
|
287
287
|
justify-content: space-between;
|
|
288
288
|
`,bo=o(ee)`
|
|
289
289
|
top: ${i.sp0};
|
|
290
290
|
left: ${i.sp0};
|
|
291
|
-
min-height: ${e=>
|
|
292
|
-
max-height: ${e=>
|
|
291
|
+
min-height: ${e=>X.headerHeight.valuePx(e.windowSize)};
|
|
292
|
+
max-height: ${e=>X.headerHeight.valuePx(e.windowSize)};
|
|
293
293
|
width: auto;
|
|
294
294
|
z-index: 2;
|
|
295
295
|
display: flex;
|
|
296
296
|
align-items: center;
|
|
297
297
|
box-sizing: border-box;
|
|
298
|
-
padding: ${e=>`${
|
|
298
|
+
padding: ${e=>`${X.headerLastColumnTopPadding.valuePx(e.windowSize)} ${X.headerLastColumnRightPadding.valuePx(e.windowSize)} ${X.headerLastColumnBottomPadding.valuePx(e.windowSize)} ${X.headerLastColumnLeftPadding.valuePx(e.windowSize)}`};
|
|
299
299
|
background-color: ${e=>e.theme.colors.grey4};
|
|
300
300
|
justify-content: space-between;
|
|
301
301
|
position: sticky;
|
|
@@ -309,10 +309,10 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
309
309
|
align-items: center;
|
|
310
310
|
left: ${i.sp0};
|
|
311
311
|
justify-content: ${e=>e.actualDataValue==="limit"?"flex-end":"flex-start"};
|
|
312
|
-
${e=>e.companyNameSticky?
|
|
312
|
+
${e=>e.companyNameSticky?Ye`
|
|
313
313
|
position: sticky;
|
|
314
314
|
z-index: 1;
|
|
315
|
-
`:
|
|
315
|
+
`:Ye`
|
|
316
316
|
position: static;
|
|
317
317
|
z-index: 0;
|
|
318
318
|
`};
|
|
@@ -337,23 +337,23 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
337
337
|
display: flex;
|
|
338
338
|
align-items: center;
|
|
339
339
|
justify-content: center;
|
|
340
|
-
`,
|
|
340
|
+
`,Fo=o.div`
|
|
341
341
|
gap: ${i.sp1};
|
|
342
342
|
display: flex;
|
|
343
343
|
color: ${e=>e.theme.colors.hero};
|
|
344
|
-
`,
|
|
344
|
+
`,zo=o(_i)`
|
|
345
345
|
width: ${i.sp3};
|
|
346
346
|
height: ${i.sp3};
|
|
347
347
|
color: inherit;
|
|
348
|
-
`,
|
|
348
|
+
`,Ao=o.div`
|
|
349
349
|
margin-right: ${i.sp1};
|
|
350
350
|
display: flex;
|
|
351
351
|
align-items: center;
|
|
352
|
-
`,
|
|
352
|
+
`,Ro=o.div`
|
|
353
353
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
354
354
|
align-items: center;
|
|
355
355
|
padding-top: 2px;
|
|
356
|
-
`,
|
|
356
|
+
`,Po=o.div`
|
|
357
357
|
display: flex;
|
|
358
358
|
cursor: pointer;
|
|
359
359
|
gap: 5px;
|
|
@@ -365,7 +365,7 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
365
365
|
cursor: pointer;
|
|
366
366
|
gap: 5px;
|
|
367
367
|
color: ${e=>e.theme.colors.primary};
|
|
368
|
-
`,{spendManagement:{billPay:{paymentDetails:{feePercent:Do}},chargeCard:he},common:Z}=le.getLocalizedStrings(),De={containerMarginLeft:new C(p[3],p[8]),webkitLineClamp:new C(2,2,1,1,1)},_o=({setCardIdForRowAction:e,setActionTypeForRowAction:s,cardDetail:r,isCardControlsEnabled:d,showViewForCardUser:c,signedInUser:l,resendInviteId:a,index:n,onChargeCardRowClick:x,onChargeCardResendInviteClick:w,rowActionView:g,revokeChargeCardsInviteFetchState:
|
|
368
|
+
`,{spendManagement:{billPay:{paymentDetails:{feePercent:Do}},chargeCard:he},common:Z}=le.getLocalizedStrings(),De={containerMarginLeft:new C(p[3],p[8]),webkitLineClamp:new C(2,2,1,1,1)},_o=({setCardIdForRowAction:e,setActionTypeForRowAction:s,cardDetail:r,isCardControlsEnabled:d,showViewForCardUser:c,signedInUser:l,resendInviteId:a,index:n,onChargeCardRowClick:x,onChargeCardResendInviteClick:w,rowActionView:g,revokeChargeCardsInviteFetchState:k,unlockChargeCardsFetchState:j,cardsSelectedForBulkAction:S})=>{const h=!!ke().loggedInUserRole.includes("charge_card_user")||c,m=f.useCallback(()=>{x(r.id,n)},[r.id]);return h?t.jsx(Eo,{cardDetail:r,onRowClick:m}):t.jsx(Oo,{setCardIdForRowAction:e,setActionTypeForRowAction:s,cardDetail:r,isCardControlsEnabled:d,signedInUser:l,resendInviteId:a,onRowClick:m,onChargeCardResendInviteClick:w,rowActionView:g,revokeChargeCardsInviteFetchState:k,unlockChargeCardsFetchState:j,cardsSelectedForBulkAction:S,showViewForCardUser:c})},At=({cardDetail:e})=>{const s=e.balance,r=St(e)/e.limit.amount*100;return t.jsxs(Uo,{children:[t.jsx(Go,{children:ce("0,0.[00]",s)}),r!==0?t.jsx(Ho,{children:`${Math.round(r)}${Do}`}):null]})},Eo=({cardDetail:e,onRowClick:s})=>{const r=ie();return t.jsx(Rt,{windowSize:r,children:t.jsx(Pt,{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(Ot,{children:Z.labels.cardName}),t.jsxs(Et,{children:[t.jsx(Tt,{title:e.cardName,children:e.cardName}),t.jsx(Qt,{windowSize:r,children:he.cardDetails.expiryHideOut+Z.strings.space+e.accountLast4})]})]}),t.jsxs(Bt,{children:[t.jsx(Dt,{children:`${he.cardList.header.cardType}${Z.strings.colon}`}),t.jsx(Oe,{children:t.jsx(Ve,{cardDetail:e,forDetailPage:!1})})]}),t.jsxs(Wt,{children:[t.jsx(Kt,{children:Z.labels.limit}),t.jsxs(qt,{children:[t.jsx(Ht,{children:ce("0,0.[00]",e.limit)}),t.jsx(Gt,{}),t.jsx(Ee,{children:e.creditLimitFrequency.name})]})]})]})}),t.jsx(Ut,{children:t.jsxs(t.Fragment,{children:[e.status.code!=="request_on_hold"?t.jsx(At,{cardDetail:e}):null,t.jsxs(Vt,{children:[t.jsx(Le,{status:e.status.code}),e.status.code==="request_on_hold"?t.jsx(ye,{display:"flex",title:he.cardList.tooltip[e.type.code].self,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:t.jsx(Jt,{className:"infoIconTooltip"})}):null]})]})})]})})})},Oo=({setCardIdForRowAction:e,setActionTypeForRowAction:s,cardDetail:r,isCardControlsEnabled:d,signedInUser:c,resendInviteId:l,onRowClick:a,onChargeCardResendInviteClick:n,rowActionView:x,revokeChargeCardsInviteFetchState:w,unlockChargeCardsFetchState:g,cardsSelectedForBulkAction:k,showViewForCardUser:j})=>{const[S,h]=f.useState(!1);f.useEffect(()=>{k.length>0&&S&&h(!1)},[k.length,S]);const m=!!ke().loggedInUserRole.includes("charge_card_user")||j,y=`${r.cardHolderUser?.firstName??""} ${r.cardHolderUser?.lastName??""}`,P=r?.cardHolderUserId===c.userId,B=ie(),D=r.type.code,F=he.cardList.tooltip[D],U=F!=null?P?F.self:`${y} ${F.cardUser}`:Z.strings.empty,u=x.cardId===r.id,v=k.includes(r.id),E=u&&x.unlockChargeCardsFetchState.fetchState==="In-Progress"||v&&g==="In-Progress",M=u&&x.revokeChargeCardFetchState.fetchState==="In-Progress"||v&&w==="In-Progress",T=E||M,W=r.status.code!=="closed"&&r.status.code!=="closed_by_customer";return t.jsx(Rt,{windowSize:B,children:t.jsxs(Pt,{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(vt,{personBasic:r.cardHolderUser,styles:{height:i.sp6,width:i.sp6}})}),t.jsx(Wo,{children:t.jsxs(qo,{children:[t.jsx(To,{children:t.jsx(Vo,{windowSize:B,title:y,children:y})}),t.jsx(Ee,{style:{marginTop:`-${i.sp1}`},children:r.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:r.cardHolderRoles?.userRoles})})]})})]}),t.jsx(Ut,{children:t.jsx(t.Fragment,{children:l===r.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(Zo,{children:[t.jsxs(No,{children:[r.status.code!=="request_on_hold"?t.jsx(At,{cardDetail:r}):null,t.jsxs(Vt,{children:[t.jsx(Le,{status:r.status.code}),r.status.code==="request_on_hold"?t.jsx(ye,{display:"flex",title:U,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:t.jsx(Jt,{className:"infoIconTooltip"})}):null]})]}),r.status.code==="request_on_hold"&&!P?t.jsx(Jo,{children:t.jsx(Qo,{onClick:A=>{A.stopPropagation(),n(r.id)},"data-testid":G("send-reminder-clicked",r.id),children:he.cardList.sendReminder})}):null]})})})]}),t.jsxs(_e,{children:[t.jsxs(Mt,{cardUser:!1,children:[t.jsxs(_t,{children:[t.jsx(Ot,{children:`${Z.labels.cardName}`}),t.jsxs(Et,{children:[t.jsx(Tt,{title:r.cardName,children:r.cardName}),t.jsx(Qt,{windowSize:B,children:r.status.code==="request_on_hold"?Z.strings.hyphen:he.cardDetails.expiryHideOut+Z.strings.space+r.accountLast4})]})]}),t.jsxs(Bt,{children:[t.jsx(Dt,{children:`${he.cardList.header.cardType}${Z.strings.colon}`}),t.jsx(Oe,{children:t.jsx(Oe,{children:t.jsx(Ve,{cardDetail:r,forDetailPage:!1})})})]}),t.jsxs(Wt,{children:[t.jsx(Kt,{children:Z.labels.limit}),t.jsxs(qt,{children:[t.jsx(Ht,{children:ce("0,0.[00]",r.limit)}),t.jsx(Gt,{}),t.jsx(Ee,{children:r.creditLimitFrequency.name})]})]})]}),t.jsx(Ko,{children:t.jsx(Yo,{showMenu:!0,className:"menu-icon",children:(()=>{const A=r.status.code==="locked",V=r.status.code==="closed"||r.status.code==="closed_by_customer",H=m?d&&!T&&!V&&!(A&&r.isLockedByAdmin):d?!T&&W:r.status.code==="request_on_hold",z=k.length>0;return H&&t.jsx(Te,{menuItems:t.jsx(Xo,{children:t.jsx(Ft,{cardDetail:r,isCardControlsEnabled:d,isChargeCardUser:m,setIsMenuOpen:h,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:te=>{z||h(te)},isMenuOpen:S&&!z,menuIconStyles:{cursor:z?"not-allowed":"pointer",opacity:z?.5:1,pointerEvents:z?"none":"auto"},styles:{transform:"translate(5px,0px)"}})})()})})]})]})})},Rt=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}`};
|
|
@@ -384,19 +384,19 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
384
384
|
margin-left: ${e=>De.containerMarginLeft.valuePx(e.windowSize)};
|
|
385
385
|
margin-bottom: ${i.sp3};
|
|
386
386
|
width: 100%;
|
|
387
|
-
`,
|
|
387
|
+
`,Pt=o.div`
|
|
388
388
|
display: block;
|
|
389
389
|
width: 100%;
|
|
390
390
|
`,_e=o.div`
|
|
391
391
|
display: flex;
|
|
392
392
|
width: 100%;
|
|
393
393
|
justify-content: space-between;
|
|
394
|
-
`,
|
|
394
|
+
`,To=o.div`
|
|
395
395
|
display: flex;
|
|
396
396
|
align-items: center;
|
|
397
397
|
gap: ${i.sp1};
|
|
398
398
|
flex-grow: 1;
|
|
399
|
-
`,Vo=o(
|
|
399
|
+
`,Vo=o(Q)`
|
|
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,30 +408,30 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
408
408
|
text-overflow: ellipsis;
|
|
409
409
|
white-space: nowrap;
|
|
410
410
|
text-transform: capitalize;
|
|
411
|
-
`,Ee=o(
|
|
411
|
+
`,Ee=o(J)`
|
|
412
412
|
color: ${e=>e.theme.colors.hero};
|
|
413
413
|
min-height: 18px;
|
|
414
|
-
`,Bt=o(
|
|
414
|
+
`,Bt=o(J)`
|
|
415
415
|
color: ${e=>e.theme.colors.hero};
|
|
416
416
|
box-sizing: border-box;
|
|
417
417
|
display: flex;
|
|
418
418
|
align-items: flex-start;
|
|
419
419
|
gap: 14px;
|
|
420
|
-
`,Dt=o.div``,
|
|
420
|
+
`,Dt=o.div``,Oe=o.div`
|
|
421
421
|
max-width: 155px;
|
|
422
422
|
overflow: hidden;
|
|
423
423
|
text-overflow: ellipsis;
|
|
424
424
|
white-space: nowrap;
|
|
425
|
-
`,_t=o(
|
|
425
|
+
`,_t=o(J)`
|
|
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;
|
|
@@ -442,7 +442,7 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
442
442
|
overflow: hidden;
|
|
443
443
|
text-overflow: ellipsis;
|
|
444
444
|
white-space: nowrap;
|
|
445
|
-
`,
|
|
445
|
+
`,Ot=o.div``,Tt=o.div`
|
|
446
446
|
max-width: 100%;
|
|
447
447
|
overflow: hidden;
|
|
448
448
|
text-overflow: ellipsis;
|
|
@@ -451,15 +451,15 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f 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(J)`
|
|
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{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
474
474
|
position: relative;
|
|
475
475
|
`,qo=o.div`
|
|
476
476
|
margin-bottom: 6px;
|
|
477
|
-
`,Wt=o(
|
|
477
|
+
`,Wt=o(J)`
|
|
478
478
|
color: ${e=>e.theme.colors.hero};
|
|
479
479
|
display: flex;
|
|
480
480
|
gap: ${i.sp6};
|
|
@@ -483,23 +483,23 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
483
483
|
display: flex;
|
|
484
484
|
align-items: center;
|
|
485
485
|
gap: 6px;
|
|
486
|
-
`,
|
|
486
|
+
`,Gt=o.div`
|
|
487
487
|
border-radius: 100%;
|
|
488
488
|
width: ${i.sp1};
|
|
489
489
|
height: ${i.sp1};
|
|
490
490
|
background-color: ${e=>e.theme.colors.hero};
|
|
491
|
-
`,
|
|
491
|
+
`,Go=o(J)`
|
|
492
492
|
color: ${e=>e.theme.colors.hero};
|
|
493
|
-
`,
|
|
493
|
+
`,Jo=o.div`
|
|
494
494
|
padding-right: 20px;
|
|
495
|
-
`,
|
|
495
|
+
`,Qo=o(bt)`
|
|
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
|
+
`,Jt=o(jt)`
|
|
503
503
|
width: ${i.sp3};
|
|
504
504
|
height: ${i.sp3};
|
|
505
505
|
margin-bottom: 0;
|
|
@@ -507,17 +507,17 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
507
507
|
&:hover {
|
|
508
508
|
color: ${e=>e.theme.colors.primary};
|
|
509
509
|
}
|
|
510
|
-
`,
|
|
510
|
+
`,Yo=o.div`
|
|
511
511
|
position: absolute;
|
|
512
512
|
right: -${i.sp2};
|
|
513
513
|
top: ${i.sp2};
|
|
514
|
-
`,
|
|
514
|
+
`,Xo=o.div`
|
|
515
515
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
516
516
|
`,Zo=o.div`
|
|
517
517
|
display: flex;
|
|
518
518
|
align-items: end;
|
|
519
519
|
flex-direction: column;
|
|
520
|
-
`,
|
|
520
|
+
`,Qt=o(J)`
|
|
521
521
|
color: ${e=>e.theme.colors.hero};
|
|
522
522
|
max-width: 100%;
|
|
523
523
|
overflow: hidden;
|
|
@@ -526,7 +526,7 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
526
526
|
display: flex;
|
|
527
527
|
align-items: center;
|
|
528
528
|
gap: ${i.sp1};
|
|
529
|
-
`,qs=20,Ie=(e,s,r)=>!(r!=null&&e.status.code!==r||e.status.code==="closed"||e.status.code==="closed_by_customer"),es=(e,s,r)=>{const d=le.getLocalizedStrings(),c=d.spendManagement.chargeCard.cardList.bulkActions.exceptionMessages;if(e.status.code==="closed"||e.status.code==="closed_by_customer")return c.closedCardsCannotBeSelected;if(r!=null&&e.status.code!==r){const l=d.spendManagement.chargeCard.cardList.status[r];return c.onlyCardsUnderStatusCanBeSelectedTogether.replace("__status__",l)}return c.cardCannotBeSelectedForAction},ne={lastListItemHeight:new C(200,158),bannerWrapperMarginLeftRight:new C(p[3],p[8]),styledAIIconContainerSize:new C(p[3],p[3]),checkBoxContainerStyleMarginLeft:new C(p[0],p[4]),checkBoxContainerStyleMarginRight:new C(p[0],p[8]),labelCheckBoxStyleMarginLeft:new C(p[2],p[0])},ts={moreItemFont:new ft("extraSmallRegular","smallRegular")},me=le.getLocalizedStrings(),{spendManagement:{chargeCard:P},common:ae}=me,ht=50,is=64,os=351,ss=136,Jt=pe.memo(({cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,setCardIdForRowAction:c,setActionTypeForRowAction:l,rowActionView:a,showViewForCardUser:n,productInformation:x,isChargeCardFeatureEnabled:w,isChargeCardSetupEnabled:g,isDebitCardFeatureEnabled:S,isDebitCardSetupEnabled:j,cashbackInformation:k,creditAccountInformation:h,debitAccountInformation:m,depositAccountListWithDebitCardIssued:y,uiState:R,signedInUser:B,fetchState:D,revokeChargeCardsInviteFetchState:z,unlockChargeCardsFetchState:N,receiptBotEmail:u,searchText:v,resendInviteId:E,isBulkActionAllowed:M,isCardControlsEnabled:O,cardsSelectedForBulkAction:W,firstSelectedCardStatus:F,bulkSubmissionLimit:V,onProceedForBulkActionClick:H,onBulkCloseClick:A,onBulkLockClick:te,setShowBulkChangeSpendLimitPopup:J,onChargeCardResendInviteClick:_,onChargeCardRowClick:de,onReloadCards:K,onColumnSortConfigChanged:oe,handleClearSelection:xe})=>{const b=ie(),Ae=Se(),Ue=ci().analytics,Ne=!!Ae.loggedInUserRole.includes("charge_card_user"),Me=ze(),[,We]=hi(),[ke,He]=f.useState(!1),[Fe,Ke]=f.useState(!1),ii=f.useCallback(()=>{u!=null&&((!w||r.fetchState==="Completed"&&d.fetchState==="Completed")&&(!(S&&j)||y.fetchState==="Completed")&&Ue.trackCardsCopyIconClick(s,x,"Cards List","Copy","copied","Receipt Email",u,k,h,m),We(u),He(!0))},[u,w,r.fetchState,d.fetchState,S,j,y.fetchState,Ue,s,x,k,h,m,We]);f.useEffect(()=>{if(ke===!0){const U=setTimeout(()=>{He(!1)},800);return()=>clearTimeout(U)}},[ke]);const oi=f.useCallback(U=>{H(U)},[H]),Pe=f.useCallback(U=>U===0?ht:b!=="small"?pi:Ne?ui:mi,[b,Ne]),si=f.useMemo(()=>{let U=ht+is;for(let we=1;we<=e.length;we++)U+=Pe(we);return U},[e.length,Pe]),qe=f.useMemo(()=>window.innerHeight-os,[]),ri=si>qe,Ye=f.useRef(null);f.useEffect(()=>{Ye.current?.resetAfterIndex(0)},[b]);const ai=()=>D==="Error"?t.jsxs(ms,{children:[t.jsx(gs,{onClick:K,"data-testid":Y("charge-card-list-reload"),children:t.jsx(xs,{})}),t.jsx(ws,{children:ae.reloadPage.label})]}):D==="Completed"&&e.length===0?t.jsx(xi,{sourceView:"charge_cards",style:{height:"calc(100vh - 450px)"},title:P.cardList.getStarted,message:v!==""?P.cardList.noDataWithFilterText:P.cardList.noDataText,messageStyle:{maxWidth:345,color:Me.colors.primary,...Be.largeRegular.cssObject}}):t.jsxs(ti,{children:[u!=null?t.jsxs(Ss,{windowSize:b,children:[t.jsx(Is,{windowSize:b,children:t.jsx(Ls,{})}),t.jsxs(zs,{windowSize:b,children:[t.jsxs(ks,{children:[t.jsx(ps,{children:P.aiCardAgentText}),ae.strings.space,P.receiptBotMessage,ae.strings.space]}),t.jsxs(bs,{"data-testid":Y("charge-card-list-copy-email"),onClick:ii,onMouseEnter:()=>Ke(!0),onMouseLeave:()=>Ke(!1),children:[t.jsx(vs,{children:u}),ke===!0?t.jsxs(ut,{children:[t.jsx(js,{}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Fe||ke,color:I.primaryDark,children:ae.copyToClipBoard.copied})})]}):t.jsxs(ut,{children:[t.jsx($s,{color:Fe?Me.colors.primary:void 0}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Fe&&b!=="small",children:ae.copyToClipBoard.copy})})]})]})]})]}):null,t.jsx(Cs,{windowSize:b,availableHeight:qe,isListTooLarge:ri,children:t.jsx(wi,{children:({height:U,width:we})=>t.jsx(Ci,{ref:Ye,height:U,itemCount:e.length+1,innerElementType:Zt,itemSize:Pe,estimatedItemSize:yi,itemKey:ve=>ve===0?"header":e[ve-1].id,width:we,overscanCount:fi,initialScrollOffset:0,children:ve=>t.jsx(ds,{...ve,setCardIdForRowAction:c,setActionTypeForRowAction:l,rowActionView:a,resendInviteId:E,onChargeCardResendInviteClick:_,onChargeCardRowClick:de,showViewForCardUser:n,cardList:e,signedInUser:B,uiState:R,revokeChargeCardsInviteFetchState:z,unlockChargeCardsFetchState:N,onColumnSortConfigChanged:oe,isBulkActionAllowed:M,isCardControlsEnabled:O,cardsSelectedForBulkAction:W,firstSelectedCardStatus:F,bulkSubmissionLimit:V})})})})]});return t.jsxs(us,{fetchState:D,children:[ai(),W.length>0&&N!=="In-Progress"&&z!=="In-Progress"?t.jsx(gi,{helperContainerStyle:b==="small"?{margin:`${i.sp5} ${i.sp7} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:!0,primaryBtn:{label:as(F),isLoading:!1,isDisabled:!1,type:"button",onClick:()=>{const U=Qt(F);U&&oi(U)}},cancelBtn:{label:ae.texts.goBack,isDisabled:!1,onClick:xe,style:b==="small"?{}:ns(F)},leftSideComponent:Fs(W.length,V,b),rightSideComponent:t.jsx(Ds,{firstSelectedCardStatus:F,windowSize:b,setShowBulkChangeSpendLimitPopup:J,onBulkCloseClick:A,onBulkLockClick:te})}):null]})},(e,s)=>e.cardList===s.cardList&&e.cardsSelectedForBulkAction.length===s.cardsSelectedForBulkAction.length&&e.fetchState===s.fetchState&&e.uiState.sortKey===s.uiState.sortKey&&e.uiState.sortOrder===s.uiState.sortOrder&&e.rowActionView===s.rowActionView&&e.unlockChargeCardsFetchState===s.unlockChargeCardsFetchState&&e.revokeChargeCardsInviteFetchState===s.revokeChargeCardsInviteFetchState&&e.searchText===s.searchText&&e.receiptBotEmail===s.receiptBotEmail&&e.isCardControlsEnabled===s.isCardControlsEnabled&&e.firstSelectedCardStatus===s.firstSelectedCardStatus&&e.handleClearSelection===s.handleClearSelection);Jt.displayName="ChargeCardListContent";const rs=({cardsSelectedForBulkAction:e,cardList:s,firstSelectedCardStatus:r,bulkSubmissionLimit:d,updateBulkActionList:c,removeAllCardsFromBulkActionList:l,isChargeCardSetupEnabled:a,...n})=>{const x="bulkSelectIds",w=li({defaultValues:{[x]:e},values:{[x]:e}});f.useEffect(()=>{const S=w.watch((j,{name:k})=>{if(k===x){let h=[];const m=j[x]??[];if(m.includes(me.common.all.toLowerCase()))if(e.length===0){h=[];for(const y of s)if(Ie(y,void 0,r)&&h.push(y.id),h.length===d)break}else h=m.filter(y=>y!==me.common.all.toLowerCase());else h=m.filter(y=>y!=null);c(h)}});return()=>S.unsubscribe()},[c,e.length,s,r,d]);const g=f.useCallback(()=>{w.setValue(x,[]),l()},[w,l]);return t.jsx(di,{...w,children:t.jsx(Jt,{...n,cardsSelectedForBulkAction:e,cardList:s,firstSelectedCardStatus:r,bulkSubmissionLimit:d,isChargeCardSetupEnabled:a,handleClearSelection:g})})},Qt=e=>{if(e!=null)switch(e){case"active":return"update_limit";case"locked":return"unlock";case"inactive":return"close";case"request_on_hold":return"revoke_invite";default:return}},as=e=>{if(e==null)return"Proceed";switch(e){case"active":return P.cardDetails.moreOptions.updateSpendLimit;case"locked":return P.cardDetails.moreOptions.unlock;case"inactive":return P.closeCard.closeCard;case"request_on_hold":return P.cardDetails.revokeInvite;default:return ae.proceed}},ns=e=>{switch(Qt(e)){case"update_limit":return{minWidth:"173px"};case"unlock":return{minWidth:"119px"};case"close":return{minWidth:"111px"};case"revoke_invite":return{minWidth:"128px"};default:return{}}},Zt=f.forwardRef((e,s)=>{const{children:r,style:d,...c}=e;return t.jsx(ti,{ref:s,style:{...d,width:"auto"},...c,children:t.jsx(ys,{children:r})})});Zt.displayName=P.cardList.headerElementDisplayName;const ls=({cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,fetchState:c,uiState:l,setCardIdForRowAction:a,setActionTypeForRowAction:n,receiptBotEmail:x,searchText:w,resendInviteId:g,showViewForCardUser:S,signedInUser:j,isChargeCardFeatureEnabled:k,isChargeCardSetupEnabled:h,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:y,cashbackInformation:R,creditAccountInformation:B,debitAccountInformation:D,productInformation:z,isBulkActionAllowed:N,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:M,updateBulkActionList:O,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:F,onBulkCloseClick:V,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:A,onChargeCardRowClick:te,onReloadCards:J,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:de,depositAccountListWithDebitCardIssued:K,rowActionView:oe,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:b})=>(ni({componentName:"cards.list",enabled:c==="Completed"}),t.jsx(rs,{cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,setCardIdForRowAction:a,setActionTypeForRowAction:n,rowActionView:oe,isChargeCardFeatureEnabled:k,isChargeCardSetupEnabled:h,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:y,cashbackInformation:R,creditAccountInformation:B,debitAccountInformation:D,productInformation:z,isBulkActionAllowed:N,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:M,updateBulkActionList:O,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:F,onBulkCloseClick:V,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:A,depositAccountListWithDebitCardIssued:K,showViewForCardUser:S,signedInUser:j,fetchState:c,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:b,receiptBotEmail:x,searchText:w,resendInviteId:g,onReloadCards:J,onChargeCardRowClick:te,uiState:l,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:de})),Ys=pe.memo(ls),ds=({uiState:e,onColumnSortConfigChanged:s,isBulkActionAllowed:r,isCardControlsEnabled:d,cardsSelectedForBulkAction:c,firstSelectedCardStatus:l,bulkSubmissionLimit:a,index:n,setCardIdForRowAction:x,setActionTypeForRowAction:w,rowActionView:g,revokeChargeCardsInviteFetchState:S,unlockChargeCardsFetchState:j,style:k,cardList:h,showViewForCardUser:m,signedInUser:y,resendInviteId:R,onChargeCardResendInviteClick:B,onChargeCardRowClick:D})=>{const z=ie(),N=ze(),u=g.cardId!=null&&g.unlockChargeCardsFetchState.fetchState==="In-Progress"||j==="In-Progress"&&c.length>0,v=!r||u||d===!1||h.length<=1?"off":c.length>0?"always_on":"checked_or_hover",E={gap:i.sp3,width:"auto",marginLeft:ne.checkBoxContainerStyleMarginLeft.valuePx(z),marginRight:ne.checkBoxContainerStyleMarginRight.valuePx(z)},M={marginLeft:ne.labelCheckBoxStyleMarginLeft.valuePx(z)},O=hs(z),W=cs(z),F={width:"100%"},V={backgroundColor:N.colors.grey4},H={...k,width:"100%"},A=f.useMemo(()=>{const K=[me.common.all.toLowerCase()];for(const oe of h)if(!(d&&!Ie(oe,void 0,l))&&(K.push(oe.id),a!=null&&K.length===a+1))break;return K},[h,d,l,a]),te={label:"",defaultChecked:!1,groupLabel:!0,value:me.common.all.toLowerCase(),isException:!(c.length>0)},J=n===0,_=J?null:h[n-1],de=f.useMemo(()=>J?{label:t.jsx(vo,{companyNameSticky:!1,showViewForCardUser:m,onColumnSortConfigChanged:s,sortConfig:{sortKey:e.sortKey,sortOrder:e.sortOrder}}),defaultChecked:!1,groupLabel:!0,value:me.common.all.toLowerCase(),isException:!(c.length>0&&h.length>1)}:_==null?{label:t.jsx("div",{}),value:"",groupLabel:!1,defaultChecked:!1,isException:!1}:{label:t.jsx(ei,{setCardIdForRowAction:x,setActionTypeForRowAction:w,rowActionView:g,revokeChargeCardsInviteFetchState:S,unlockChargeCardsFetchState:j,cardsSelectedForBulkAction:c,isCardControlsEnabled:d,showViewForCardUser:m,cardDetail:_,signedInUser:y,resendInviteId:R,index:n-1,onChargeCardResendInviteClick:B,onChargeCardRowClick:D}),value:_.id,groupLabel:!1,defaultChecked:!1,isException:d&&r?!Ie(_,void 0,l):!1,exceptionMode:"checked_or_hover",exceptionInfo:es(_,void 0,l),exceptionType:Ie(_,void 0,l)?void 0:"info"},[J,_,m,s,e.sortKey,e.sortOrder,c,x,w,g,S,j,d,y,R,n,B,D,l]);return t.jsx(fs,{style:H,className:"spend-management-list-item",children:t.jsx(At,{checkBox:de,fieldName:"bulkSelectIds",index:n,allCheckBoxValues:A,groupLabelCheckBox:te,mode:v,checkBoxContainerStyle:E,checkBoxIconStyle:V,checkBoxStyle:J?M:O,labelCheckBoxStyle:M,labelStyle:F,style:{gap:i.sp3},infoIconContainerStyle:W,selectionLimit:a})})},cs=e=>{let s={zIndex:1,height:i.sp3,display:"flex",alignItems:"center"};return e==="small"&&(s={...s,position:"absolute",left:i.sp2,marginBottom:i.sp1,width:i.sp4,height:i.sp4}),s},hs=e=>{let s={zIndex:1,marginBottom:i.sp3,backgroundColor:"inherit"};return e==="small"&&(s={...s,position:"absolute",left:i.sp1,width:i.sp4,height:i.sp4}),s},ei=pe.memo(({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardResendInviteClick:j,onChargeCardRowClick:k})=>{const h=ie()==="small"?_o:Yi;return t.jsx(h,{cardDetail:a,index:S,isCardControlsEnabled:n,setActionTypeForRowAction:s,setCardIdForRowAction:e,showViewForCardUser:x,signedInUser:w,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,rowActionView:r,onChargeCardRowClick:k,resendInviteId:g,onChargeCardResendInviteClick:j})},(e,s)=>{const r=e.cardsSelectedForBulkAction.includes(e.cardDetail.id),d=s.cardsSelectedForBulkAction.includes(s.cardDetail.id),c=e.rowActionView.cardId===e.cardDetail.id,l=s.rowActionView.cardId===s.cardDetail.id;return r===d&&c===l&&e.cardDetail===s.cardDetail&&e.isCardControlsEnabled===s.isCardControlsEnabled&&e.unlockChargeCardsFetchState===s.unlockChargeCardsFetchState&&e.revokeChargeCardsInviteFetchState===s.revokeChargeCardsInviteFetchState&&e.resendInviteId===s.resendInviteId&&e.showViewForCardUser===s.showViewForCardUser&&e.signedInUser===s.signedInUser&&e.index===s.index});ei.displayName="ChargeCardRowWrapper";const ps=o(ji)`
|
|
529
|
+
`,qs=20,Ie=(e,s,r)=>!(r!=null&&e.status.code!==r||e.status.code==="closed"||e.status.code==="closed_by_customer"),es=(e,s,r)=>{const d=le.getLocalizedStrings(),c=d.spendManagement.chargeCard.cardList.bulkActions.exceptionMessages;if(e.status.code==="closed"||e.status.code==="closed_by_customer")return c.closedCardsCannotBeSelected;if(r!=null&&e.status.code!==r){const l=d.spendManagement.chargeCard.cardList.status[r];return c.onlyCardsUnderStatusCanBeSelectedTogether.replace("__status__",l)}return c.cardCannotBeSelectedForAction},ne={lastListItemHeight:new C(200,158),bannerWrapperMarginLeftRight:new C(p[3],p[8]),styledAIIconContainerSize:new C(p[3],p[3]),checkBoxContainerStyleMarginLeft:new C(p[0],p[4]),checkBoxContainerStyleMarginRight:new C(p[0],p[8]),labelCheckBoxStyleMarginLeft:new C(p[2],p[0])},ts={moreItemFont:new ft("extraSmallRegular","smallRegular")},me=le.getLocalizedStrings(),{spendManagement:{chargeCard:R},common:ae}=me,ht=50,is=64,os=351,ss=136,Yt=pe.memo(({cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,setCardIdForRowAction:c,setActionTypeForRowAction:l,rowActionView:a,showViewForCardUser:n,productInformation:x,isChargeCardFeatureEnabled:w,isChargeCardSetupEnabled:g,isDebitCardFeatureEnabled:k,isDebitCardSetupEnabled:j,cashbackInformation:S,creditAccountInformation:h,debitAccountInformation:m,depositAccountListWithDebitCardIssued:y,uiState:P,signedInUser:B,fetchState:D,revokeChargeCardsInviteFetchState:F,unlockChargeCardsFetchState:U,receiptBotEmail:u,searchText:v,resendInviteId:E,isBulkActionAllowed:M,isCardControlsEnabled:T,cardsSelectedForBulkAction:W,firstSelectedCardStatus:A,bulkSubmissionLimit:V,onProceedForBulkActionClick:H,onBulkCloseClick:z,onBulkLockClick:te,setShowBulkChangeSpendLimitPopup:Y,onChargeCardResendInviteClick:_,onChargeCardRowClick:de,onReloadCards:K,onColumnSortConfigChanged:oe,handleClearSelection:xe})=>{const b=ie(),ze=ke(),Ne=ci().analytics,Ue=!!ze.loggedInUserRole.includes("charge_card_user"),Me=Fe(),[,We]=hi(),[Se,He]=f.useState(!1),[Ae,Ke]=f.useState(!1),ii=f.useCallback(()=>{u!=null&&((!w||r.fetchState==="Completed"&&d.fetchState==="Completed")&&(!(k&&j)||y.fetchState==="Completed")&&Ne.trackCardsCopyIconClick(s,x,"Cards List","Copy","copied","Receipt Email",u,S,h,m),We(u),He(!0))},[u,w,r.fetchState,d.fetchState,k,j,y.fetchState,Ne,s,x,S,h,m,We]);f.useEffect(()=>{if(Se===!0){const N=setTimeout(()=>{He(!1)},800);return()=>clearTimeout(N)}},[Se]);const oi=f.useCallback(N=>{H(N)},[H]),Re=f.useCallback(N=>N===0?ht:b!=="small"?pi:Ue?ui:mi,[b,Ue]),si=f.useMemo(()=>{let N=ht+is;for(let we=1;we<=e.length;we++)N+=Re(we);return N},[e.length,Re]),qe=f.useMemo(()=>window.innerHeight-os,[]),ri=si>qe,Ge=f.useRef(null);f.useEffect(()=>{Ge.current?.resetAfterIndex(0)},[b]);const ai=()=>D==="Error"?t.jsxs(ms,{children:[t.jsx(gs,{onClick:K,"data-testid":G("charge-card-list-reload"),children:t.jsx(xs,{})}),t.jsx(ws,{children:ae.reloadPage.label})]}):D==="Completed"&&e.length===0?t.jsx(xi,{sourceView:"charge_cards",style:{height:"calc(100vh - 450px)"},title:R.cardList.getStarted,message:v!==""?R.cardList.noDataWithFilterText:R.cardList.noDataText,messageStyle:{maxWidth:345,color:Me.colors.primary,...Be.largeRegular.cssObject}}):t.jsxs(ti,{children:[u!=null?t.jsxs(ks,{windowSize:b,children:[t.jsx(Is,{windowSize:b,children:t.jsx(Ls,{})}),t.jsxs(Fs,{windowSize:b,children:[t.jsxs(Ss,{children:[t.jsx(ps,{children:R.aiCardAgentText}),ae.strings.space,R.receiptBotMessage,ae.strings.space]}),t.jsxs(bs,{"data-testid":G("charge-card-list-copy-email"),onClick:ii,onMouseEnter:()=>Ke(!0),onMouseLeave:()=>Ke(!1),children:[t.jsx(vs,{children:u}),Se===!0?t.jsxs(ut,{children:[t.jsx(js,{}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Ae||Se,color:I.primaryDark,children:ae.copyToClipBoard.copied})})]}):t.jsxs(ut,{children:[t.jsx($s,{color:Ae?Me.colors.primary:void 0}),t.jsx(pt,{children:t.jsx(mt,{shouldDisplay:Ae&&b!=="small",children:ae.copyToClipBoard.copy})})]})]})]})]}):null,t.jsx(Cs,{windowSize:b,availableHeight:qe,isListTooLarge:ri,children:t.jsx(wi,{children:({height:N,width:we})=>t.jsx(Ci,{ref:Ge,height:N,itemCount:e.length+1,innerElementType:Zt,itemSize:Re,estimatedItemSize:yi,itemKey:ve=>ve===0?"header":e[ve-1].id,width:we,overscanCount:fi,initialScrollOffset:0,children:ve=>t.jsx(ds,{...ve,setCardIdForRowAction:c,setActionTypeForRowAction:l,rowActionView:a,resendInviteId:E,onChargeCardResendInviteClick:_,onChargeCardRowClick:de,showViewForCardUser:n,cardList:e,signedInUser:B,uiState:P,revokeChargeCardsInviteFetchState:F,unlockChargeCardsFetchState:U,onColumnSortConfigChanged:oe,isBulkActionAllowed:M,isCardControlsEnabled:T,cardsSelectedForBulkAction:W,firstSelectedCardStatus:A,bulkSubmissionLimit:V})})})})]});return t.jsxs(us,{fetchState:D,children:[ai(),W.length>0&&U!=="In-Progress"&&F!=="In-Progress"?t.jsx(gi,{helperContainerStyle:b==="small"?{margin:`${i.sp5} ${i.sp7} ${i.sp2} ${i.sp0}`}:{},showPrimaryButton:!0,primaryBtn:{label:as(A),isLoading:!1,isDisabled:!1,type:"button",onClick:()=>{const N=Xt(A);N&&oi(N)}},cancelBtn:{label:ae.texts.goBack,isDisabled:!1,onClick:xe,style:b==="small"?{}:ns(A)},leftSideComponent:As(W.length,V,b),rightSideComponent:t.jsx(Ds,{firstSelectedCardStatus:A,windowSize:b,setShowBulkChangeSpendLimitPopup:Y,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);Yt.displayName="ChargeCardListContent";const rs=({cardsSelectedForBulkAction:e,cardList:s,firstSelectedCardStatus:r,bulkSubmissionLimit:d,updateBulkActionList:c,removeAllCardsFromBulkActionList:l,isChargeCardSetupEnabled:a,...n})=>{const x="bulkSelectIds",w=li({defaultValues:{[x]:e},values:{[x]:e}});f.useEffect(()=>{const k=w.watch((j,{name:S})=>{if(S===x){let h=[];const m=j[x]??[];if(m.includes(me.common.all.toLowerCase()))if(e.length===0){h=[];for(const y of s)if(Ie(y,void 0,r)&&h.push(y.id),h.length===d)break}else h=m.filter(y=>y!==me.common.all.toLowerCase());else h=m.filter(y=>y!=null);c(h)}});return()=>k.unsubscribe()},[c,e.length,s,r,d]);const g=f.useCallback(()=>{w.setValue(x,[]),l()},[w,l]);return t.jsx(di,{...w,children:t.jsx(Yt,{...n,cardsSelectedForBulkAction:e,cardList:s,firstSelectedCardStatus:r,bulkSubmissionLimit:d,isChargeCardSetupEnabled:a,handleClearSelection:g})})},Xt=e=>{if(e!=null)switch(e){case"active":return"update_limit";case"locked":return"unlock";case"inactive":return"close";case"request_on_hold":return"revoke_invite";default:return}},as=e=>{if(e==null)return"Proceed";switch(e){case"active":return R.cardDetails.moreOptions.updateSpendLimit;case"locked":return R.cardDetails.moreOptions.unlock;case"inactive":return R.closeCard.closeCard;case"request_on_hold":return R.cardDetails.revokeInvite;default:return ae.proceed}},ns=e=>{switch(Xt(e)){case"update_limit":return{minWidth:"173px"};case"unlock":return{minWidth:"119px"};case"close":return{minWidth:"111px"};case"revoke_invite":return{minWidth:"128px"};default:return{}}},Zt=f.forwardRef((e,s)=>{const{children:r,style:d,...c}=e;return t.jsx(ti,{ref:s,style:{...d,width:"auto"},...c,children:t.jsx(ys,{children:r})})});Zt.displayName=R.cardList.headerElementDisplayName;const ls=({cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,fetchState:c,uiState:l,setCardIdForRowAction:a,setActionTypeForRowAction:n,receiptBotEmail:x,searchText:w,resendInviteId:g,showViewForCardUser:k,signedInUser:j,isChargeCardFeatureEnabled:S,isChargeCardSetupEnabled:h,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:y,cashbackInformation:P,creditAccountInformation:B,debitAccountInformation:D,productInformation:F,isBulkActionAllowed:U,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:M,updateBulkActionList:T,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:A,onBulkCloseClick:V,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:z,onChargeCardRowClick:te,onReloadCards:Y,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:de,depositAccountListWithDebitCardIssued:K,rowActionView:oe,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:b})=>(ni({componentName:"cards.list",enabled:c==="Completed"}),t.jsx(rs,{cardList:e,controllerEmails:s,creditAccount:r,creditAccountRepayment:d,setCardIdForRowAction:a,setActionTypeForRowAction:n,rowActionView:oe,isChargeCardFeatureEnabled:S,isChargeCardSetupEnabled:h,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:y,cashbackInformation:P,creditAccountInformation:B,debitAccountInformation:D,productInformation:F,isBulkActionAllowed:U,isCardControlsEnabled:u,cardsSelectedForBulkAction:v,firstSelectedCardStatus:E,bulkSubmissionLimit:M,updateBulkActionList:T,removeAllCardsFromBulkActionList:W,onProceedForBulkActionClick:A,onBulkCloseClick:V,onBulkLockClick:H,setShowBulkChangeSpendLimitPopup:z,depositAccountListWithDebitCardIssued:K,showViewForCardUser:k,signedInUser:j,fetchState:c,revokeChargeCardsInviteFetchState:xe,unlockChargeCardsFetchState:b,receiptBotEmail:x,searchText:w,resendInviteId:g,onReloadCards:Y,onChargeCardRowClick:te,uiState:l,onColumnSortConfigChanged:_,onChargeCardResendInviteClick:de})),Gs=pe.memo(ls),ds=({uiState:e,onColumnSortConfigChanged:s,isBulkActionAllowed:r,isCardControlsEnabled:d,cardsSelectedForBulkAction:c,firstSelectedCardStatus:l,bulkSubmissionLimit:a,index:n,setCardIdForRowAction:x,setActionTypeForRowAction:w,rowActionView:g,revokeChargeCardsInviteFetchState:k,unlockChargeCardsFetchState:j,style:S,cardList:h,showViewForCardUser:m,signedInUser:y,resendInviteId:P,onChargeCardResendInviteClick:B,onChargeCardRowClick:D})=>{const F=ie(),U=Fe(),u=g.cardId!=null&&g.unlockChargeCardsFetchState.fetchState==="In-Progress"||j==="In-Progress"&&c.length>0,v=!r||u||d===!1||h.length<=1?"off":c.length>0?"always_on":"checked_or_hover",E={gap:i.sp3,width:"auto",marginLeft:ne.checkBoxContainerStyleMarginLeft.valuePx(F),marginRight:ne.checkBoxContainerStyleMarginRight.valuePx(F)},M={marginLeft:ne.labelCheckBoxStyleMarginLeft.valuePx(F)},T=hs(F),W=cs(F),A={width:"100%"},V={backgroundColor:U.colors.grey4},H={...S,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)},Y=n===0,_=Y?null:h[n-1],de=f.useMemo(()=>Y?{label:t.jsx(vo,{companyNameSticky:!1,showViewForCardUser:m,onColumnSortConfigChanged:s,sortConfig:{sortKey:e.sortKey,sortOrder:e.sortOrder}}),defaultChecked:!1,groupLabel:!0,value:me.common.all.toLowerCase(),isException:!(c.length>0&&h.length>1)}:_==null?{label:t.jsx("div",{}),value:"",groupLabel:!1,defaultChecked:!1,isException:!1}:{label:t.jsx(ei,{setCardIdForRowAction:x,setActionTypeForRowAction:w,rowActionView:g,revokeChargeCardsInviteFetchState:k,unlockChargeCardsFetchState:j,cardsSelectedForBulkAction:c,isCardControlsEnabled:d,showViewForCardUser:m,cardDetail:_,signedInUser:y,resendInviteId:P,index:n-1,onChargeCardResendInviteClick:B,onChargeCardRowClick:D}),value:_.id,groupLabel:!1,defaultChecked:!1,isException:d&&r?!Ie(_,void 0,l):!1,exceptionMode:"checked_or_hover",exceptionInfo:es(_,void 0,l),exceptionType:Ie(_,void 0,l)?void 0:"info"},[Y,_,m,s,e.sortKey,e.sortOrder,c,x,w,g,k,j,d,y,P,n,B,D,l]);return t.jsx(fs,{style:H,className:"spend-management-list-item",children:t.jsx(zt,{checkBox:de,fieldName:"bulkSelectIds",index:n,allCheckBoxValues:z,groupLabelCheckBox:te,mode:v,checkBoxContainerStyle:E,checkBoxIconStyle:V,checkBoxStyle:Y?M:T,labelCheckBoxStyle:M,labelStyle:A,style:{gap:i.sp3},infoIconContainerStyle:W,selectionLimit:a})})},cs=e=>{let s={zIndex:1,height:i.sp3,display:"flex",alignItems:"center"};return e==="small"&&(s={...s,position:"absolute",left:i.sp2,marginBottom:i.sp1,width:i.sp4,height:i.sp4}),s},hs=e=>{let s={zIndex:1,marginBottom:i.sp3,backgroundColor:"inherit"};return e==="small"&&(s={...s,position:"absolute",left:i.sp1,width:i.sp4,height:i.sp4}),s},ei=pe.memo(({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardResendInviteClick:j,onChargeCardRowClick:S})=>{const h=ie()==="small"?_o:Gi;return t.jsx(h,{cardDetail:a,index:k,isCardControlsEnabled:n,setActionTypeForRowAction:s,setCardIdForRowAction:e,showViewForCardUser:x,signedInUser:w,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,rowActionView:r,onChargeCardRowClick:S,resendInviteId:g,onChargeCardResendInviteClick:j})},(e,s)=>{const r=e.cardsSelectedForBulkAction.includes(e.cardDetail.id),d=s.cardsSelectedForBulkAction.includes(s.cardDetail.id),c=e.rowActionView.cardId===e.cardDetail.id,l=s.rowActionView.cardId===s.cardDetail.id;return r===d&&c===l&&e.cardDetail===s.cardDetail&&e.isCardControlsEnabled===s.isCardControlsEnabled&&e.unlockChargeCardsFetchState===s.unlockChargeCardsFetchState&&e.revokeChargeCardsInviteFetchState===s.revokeChargeCardsInviteFetchState&&e.resendInviteId===s.resendInviteId&&e.showViewForCardUser===s.showViewForCardUser&&e.signedInUser===s.signedInUser&&e.index===s.index});ei.displayName="ChargeCardRowWrapper";const ps=o(ji)`
|
|
530
530
|
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
531
531
|
${({theme:e})=>e.mode==="dark"&&`color: ${I.brandColorPearl};`}
|
|
532
532
|
`,us=o.div`
|
|
@@ -549,14 +549,14 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
549
549
|
background: ${e=>e.theme.colors.background};
|
|
550
550
|
border-radius: 50%;
|
|
551
551
|
cursor: pointer;
|
|
552
|
-
`,xs=o(
|
|
552
|
+
`,xs=o(ki)`
|
|
553
553
|
height: ${i.sp5};
|
|
554
554
|
width: ${i.sp5};
|
|
555
555
|
color: ${e=>e.theme.colors.grey1};
|
|
556
556
|
&:hover {
|
|
557
557
|
color: ${e=>e.theme.colors.primary};
|
|
558
558
|
}
|
|
559
|
-
`,ws=o(
|
|
559
|
+
`,ws=o(Si)`
|
|
560
560
|
margin-top: ${i.sp3};
|
|
561
561
|
color: ${e=>e.theme.colors.hero};
|
|
562
562
|
`,Cs=o.div`
|
|
@@ -579,7 +579,7 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
579
579
|
position: relative;
|
|
580
580
|
width: auto;
|
|
581
581
|
height: 100%;
|
|
582
|
-
`,ti=o.div``,
|
|
582
|
+
`,ti=o.div``,ks=o.div`
|
|
583
583
|
display: flex;
|
|
584
584
|
border: 1.25px solid transparent;
|
|
585
585
|
background: ${e=>`linear-gradient(${e.theme.colors.grey4}, ${e.theme.colors.grey4}) padding-box,
|
|
@@ -592,7 +592,7 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
592
592
|
margin: 0
|
|
593
593
|
${e=>ne.bannerWrapperMarginLeftRight.valuePx(e.windowSize)};
|
|
594
594
|
margin-bottom: ${i.sp3};
|
|
595
|
-
`,
|
|
595
|
+
`,Ss=o($i)`
|
|
596
596
|
color: ${e=>e.theme.colors.primary};
|
|
597
597
|
`,vs=o(bi)`
|
|
598
598
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -638,16 +638,16 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
638
638
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
639
639
|
width: 100%;
|
|
640
640
|
height: 100%;
|
|
641
|
-
`,
|
|
641
|
+
`,Fs=o.div`
|
|
642
642
|
width: 100%;
|
|
643
643
|
max-width: ${e=>e.windowSize==="small"?"calc(100% - 20px)":"unset"};
|
|
644
|
-
`,
|
|
644
|
+
`,zs=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
|
+
`,As=(e,s,r)=>{const d=R.common.card,c=(e>1?d+"s":d)+R.cardList.bulkActions.selected;return e>0?t.jsxs(zs,{style:r==="small"?{position:"absolute",top:i.sp2,left:`-${i.sp5}`}:{},children:[t.jsx(Rs,{multiDigit:e>=10,children:e}),t.jsx(Ps,{children:c}),e===s?t.jsx(Bs,{children:ae.texts.maxLimit}):null]}):null},Rs=o(J)`
|
|
651
651
|
height: 18px;
|
|
652
652
|
width: ${e=>e.multiDigit?"auto":"18px"};
|
|
653
653
|
padding: ${i.sp0} 6px;
|
|
@@ -658,18 +658,18 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
658
658
|
align-items: center;
|
|
659
659
|
box-sizing: border-box;
|
|
660
660
|
color: ${e=>e.theme.colors.primary};
|
|
661
|
-
`,
|
|
661
|
+
`,Ps=o(Q)`
|
|
662
662
|
color: ${e=>e.theme.colors.primary};
|
|
663
663
|
`,Bs=o(ee)`
|
|
664
664
|
color: ${I.important};
|
|
665
|
-
`,Ds=({firstSelectedCardStatus:e,windowSize:s,setShowBulkChangeSpendLimitPopup:r,onBulkCloseClick:d,onBulkLockClick:c})=>{const[l,a]=pe.useState(!1),[n,x]=pe.useState(!1);if(f.useEffect(()=>{l||x(!1)},[l]),e==null||e!=="active"&&e!=="locked")return null;const w=()=>e==="active"?t.jsxs(t.Fragment,{children:[t.jsxs(be,{windowSize:s,onClick:g=>{g.stopPropagation(),a(!1),c?.()},children:[t.jsx(
|
|
665
|
+
`,Ds=({firstSelectedCardStatus:e,windowSize:s,setShowBulkChangeSpendLimitPopup:r,onBulkCloseClick:d,onBulkLockClick:c})=>{const[l,a]=pe.useState(!1),[n,x]=pe.useState(!1);if(f.useEffect(()=>{l||x(!1)},[l]),e==null||e!=="active"&&e!=="locked")return null;const w=()=>e==="active"?t.jsxs(t.Fragment,{children:[t.jsxs(be,{windowSize:s,onClick:g=>{g.stopPropagation(),a(!1),c?.()},children:[t.jsx(Ts,{}),t.jsx(xt,{children:R.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:R.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:R.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:R.cardDetails.moreOptions.close})]})]}):null;return t.jsx(_s,{style:s==="small"?{position:"absolute",top:i.sp7,right:`-${i.sp5}`}:{},children:t.jsx(Es,{onMouseEnter:()=>{l||x(!0)},onMouseLeave:()=>{x(!1)},children:t.jsx(ye,{open:n&&!l,variant:"standard",title:R.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(Os,{children:w()}),setIsMenuOpen:a,isMenuOpen:l,menuIconStyles:{height:"auto"},styles:{transform:s==="small"?`translate(${i.sp4}, -${i.sp7})`:`translate(${i.sp4}, -${i.sp5})`}})})})})},_s=o.div`
|
|
666
666
|
display: flex;
|
|
667
667
|
justify-content: flex-end;
|
|
668
668
|
`,Es=o.div`
|
|
669
669
|
min-width: ${i.sp3};
|
|
670
670
|
margin-right: ${i.sp8};
|
|
671
671
|
cursor: pointer;
|
|
672
|
-
`,
|
|
672
|
+
`,Os=o.div`
|
|
673
673
|
margin: 5px ${i.sp0};
|
|
674
674
|
`,be=o(ee)`
|
|
675
675
|
${({windowSize:e})=>ts.moreItemFont.style(e)}
|
|
@@ -693,19 +693,19 @@ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as
|
|
|
693
693
|
color: inherit;
|
|
694
694
|
`,wt=o(ee)`
|
|
695
695
|
color: ${I.important};
|
|
696
|
-
`,
|
|
696
|
+
`,Ts=o(yt)`
|
|
697
697
|
width: ${i.sp4};
|
|
698
698
|
height: ${i.sp4};
|
|
699
699
|
color: inherit;
|
|
700
|
-
`,Ct=o(
|
|
700
|
+
`,Ct=o(kt)`
|
|
701
701
|
width: ${i.sp4};
|
|
702
702
|
height: ${i.sp4};
|
|
703
703
|
color: ${I.important};
|
|
704
704
|
&:hover {
|
|
705
705
|
color: ${I.important};
|
|
706
706
|
}
|
|
707
|
-
`,Vs=o(
|
|
707
|
+
`,Vs=o(Pi)`
|
|
708
708
|
width: ${i.sp4};
|
|
709
709
|
height: ${i.sp4};
|
|
710
710
|
color: inherit;
|
|
711
|
-
`;export{Ki as D,
|
|
711
|
+
`;export{Ki as D,Gs as l,qs as r};
|