@zeniai/web-cockpit-ui 1.14.99-qa → 1.15.0-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-DYlcHRQe-lxtPXqrl.js +21 -0
- package/dist/assets/{AIPerformancePage-4v4Fkm9f-DUcsUVHO.js → AIPerformancePage-DpXZ7sco-B8d5E6QI.js} +107 -107
- package/dist/assets/AccountInfoPage-BEOrrVQS-L5aJOIaA.js +18 -0
- package/dist/assets/{AccountInfoPageContent-Dv1IPcdF-wIa9sgDk.js → AccountInfoPageContent-BJkLJK6O-CmMcM25y.js} +23 -23
- package/dist/assets/AccountLockedInfoModal-BeLLlH_Y-DAQUptbF.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-DYKjrPwN-CVe_BGr2.js → AccountReconDetailsDrawerPage-D2Hx_l3u-BYxEEZJn.js} +12 -12
- package/dist/assets/{AccountRow-BM3xLbeh-C9nPMFva.js → AccountRow-B0gU16A_-Ks_Pft1z.js} +25 -25
- package/dist/assets/{AccountsPromoCardStack-CTkwARBJ-DDt_Zemi.js → AccountsPromoCardStack-CuLhbb_W-BwlxSNV8.js} +28 -28
- package/dist/assets/AddAddressForCardDrawer-CNkdq378-DvUXwFrO.js +6 -0
- package/dist/assets/{AddToWalletPage-OJBvAKUj-XVOfQuES.js → AddToWalletPage-DNPLnpTq-CxRyEwld.js} +23 -23
- package/dist/assets/{AgingReportsPage-n-UKn3Ei-CjF9jy-F.js → AgingReportsPage-Bff4u7T1-DOBvEqCj.js} +10 -10
- package/dist/assets/{AllUserItems-BsvKEVcx-vYDMuwob.js → AllUserItems-D8zdAu_1-C-zZqgmo.js} +10 -10
- package/dist/assets/ApAgingDetailPage-2NsAj3gO-DfogwLMb.js +46 -0
- package/dist/assets/{AppBasePage-DoCF494Z-BRxN6hsW.js → AppBasePage-Uyk9GOud-D7f8hWuo.js} +8 -8
- package/dist/assets/{AppDrawerContent-DM1t0oLS--F7ZXSDX.js → AppDrawerContent-RX7rx40V-DlBxQF_L.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-GZCo6_i2-NDfqC6oW.js → ApprovalRulesSettingsPage-BKxa78xI-BrpnOxmu.js} +6 -6
- package/dist/assets/{ArAgingChart-CsFDVdeO-_8aNigLw.js → ArAgingChart-BxTkvrC9-BgC5YBPR.js} +4 -4
- package/dist/assets/ArAgingDetailPage-CnUgFF1M-Bb_-bJZp.js +46 -0
- package/dist/assets/{AttachmentView-B0d42oAf-Dwm5X4k6.js → AttachmentView-zHGhIkWo-C64qXCAp.js} +6 -6
- package/dist/assets/{BankAccountSection-Bgdk93V0-Chzpiy1x.js → BankAccountSection-HRSyjIxV-CV6PAaFg.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-DMRmF2yM-BdJjldMh.js → BankAccountWarningSection-CNusQFRM-4Y94-VD5.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-BpwKq93l-BN6MQ3Wf.js → BankConnectionsSettingsPage-CzumYsEx-f1xJXYSm.js} +22 -22
- package/dist/assets/BillDetailPage-CgCMZFw1-pAtGUG0W.js +266 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-DnhdBw3a-BtwlYdoz.js +27 -0
- package/dist/assets/BillPayApprovalRulesPage-S80WUW0f-Cw75zLq9.js +241 -0
- package/dist/assets/BillPayPromoPage-DOEbuNgH-BglT_61W.js +84 -0
- package/dist/assets/{BillPaySetUpPage-DRCjyEfB-CPwXijdB.js → BillPaySetUpPage-Tb-gBoFT-Po5Zl1ZL.js} +4 -4
- package/dist/assets/BillingSettingsPage-ZupDcNHz-B6O6l_7B.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-D8EGfY5P-CpoIPy5L.js → BillsBulkReviewDrawerPage-CJrUtHKz-B78eSann.js} +1 -1
- package/dist/assets/{BoxItem-WOrvBzns-CXp5-zCF.js → BoxItem-42doFhpg-BDC_fDqi.js} +5 -5
- package/dist/assets/BusinessVerificationPage-De9zCAm7-geq4Sk8A.js +138 -0
- package/dist/assets/CardNumberSubText-C6jdBRC2-YbNbzp0H.js +21 -0
- package/dist/assets/{CashbackDetailPage-D-kXy6LW-CVfqswmT.js → CashbackDetailPage-B2drd1Nz-BAvHe1xx.js} +27 -27
- package/dist/assets/{ChargeCardDetailPage-BQnJsfn5-nORZSqLY.js → ChargeCardDetailPage-bk-pzoDR-DTGxBulo.js} +254 -254
- package/dist/assets/ChargeCardListPage-DlI8ZfB0-CMLNFzih.js +412 -0
- package/dist/assets/{ChargeCardListTable-EGkwcy7i-L1WMinl5.js → ChargeCardListTable-CooASbVZ-CSvbg9sF.js} +71 -71
- package/dist/assets/ChargeCardPaymentHistoryPage-DnxJwv-T-SsEma55z.js +553 -0
- package/dist/assets/{ChargeCardPromoPage-BwqrXrY--Cc4CzTaW.js → ChargeCardPromoPage-DBSmL-ms-DBZo83zK.js} +38 -38
- package/dist/assets/{ChargeCardSetupPage-DRzB7Rt4-Dp9uDn2Z.js → ChargeCardSetupPage-cou3N3Iv-BSBfzNx6.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-C3NxKjmB-jXnZgPWF.js → ChargeCardStatementsPage-Z05M_t51-O2I36ZAe.js} +9 -9
- package/dist/assets/{CheckDepositDrawerPage-ClxKj2js-BOtwhkHh.js → CheckDepositDrawerPage-B-bTb9ct-CleglNSV.js} +18 -18
- package/dist/assets/{CollapsableReportTable-xkNXkjfh-fTkLh_hx.js → CollapsableReportTable-DLOi0feI-SZFbl9NV.js} +41 -41
- package/dist/assets/CompanyOfficerDetailsSection-DVpqCb72-DOikAEBj.js +330 -0
- package/dist/assets/{CompanyPassportCard-BOxM716U-C-8IS15c.js → CompanyPassportCard-B8PLT6MG-BUc5HZU7.js} +7 -7
- package/dist/assets/CompanyPassportPage-CQZPgrNF-KJN_fT4M.js +347 -0
- package/dist/assets/{CompleteProfile-BjGSPASa-BJc80ypG.js → CompleteProfile-fNSWTbef-pSYliRNx.js} +3 -3
- package/dist/assets/ConfettiBurst-B6ej_xoO-BzptsIBR.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-WQeDCj-E-BNAzVQDc.js → CreateOrEditVendorPage-BO4_TNWg-EUNhPwxD.js} +17 -17
- package/dist/assets/CreditCardPaymentDrawerPage-CsHjU-sm-BX_z_XTl.js +227 -0
- package/dist/assets/{CurrencySelectField-AjAWhg6e-XBhQHgG3.js → CurrencySelectField-DsZTOj_T-DmNXNRTP.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-BJhw-PvI-DiGnLxj5.js → CustomerOnboardingActivationPage-Cvdehiay-Ci2xJTUc.js} +29 -29
- package/dist/assets/CustomerOnboardingContainerPage-ZVvSCumS-nk4WVXpw.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-mvqO2b3D.js → CustomerOnboardingDetailPageSkeleton-DrfNm65u-Bi4SumgH.js} +14 -14
- package/dist/assets/CustomerOnboardingNoStepsPage-CtIWYEfR-CA6QH1RJ.js +66 -0
- package/dist/assets/CustomerOnboardingPage-Db6sGSGl-C--ab3S1.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-DHSPLF5F-BeorfiRM.js +202 -0
- package/dist/assets/{Dashboard-_o0Ftdv8-CDqjjP2e.js → Dashboard-cbXIPzMy-DLCpLMr4.js} +21 -21
- package/dist/assets/{DashboardReportPage-Cu5wqWkj-DFUvXwPl.js → DashboardReportPage-Pc0G2Tok-BRmpg3ok.js} +28 -28
- package/dist/assets/DashboardSidebarBackgroundAnimation-CSzhyK4K-DW7vdml5.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-BOPK7-7P-DMX2MMgq.js → DepositAccTransactionItem-XvCjkHDS-DQ2tNEjM.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-oj9tntbI-9RjTUtB-.js → DepositAccTransactionListPage-DqPIPHi9-DnAhb4M6.js} +2 -2
- package/dist/assets/{DomesticWireDetailsPage-FGdEilUB--8ykG62O.js → DomesticWireDetailsPage-DjUvG0tD-BhbPV8HA.js} +1 -1
- package/dist/assets/{DownloadOverlay-c57lEf_V-bd6stznG.js → DownloadOverlay-C7r6PAam-BvXPoC9j.js} +25 -25
- package/dist/assets/{DrawerPage-inbhWwND-T1v5rbMQ.js → DrawerPage-BEV7nWrL-CqfdeYhP.js} +18 -18
- package/dist/assets/EditPeoplePage-BnQqStEx-Cbm0H-hi.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-DLjRDR48-DAmxctvz.js +865 -0
- package/dist/assets/{EntityDetailPage-DbTiF9Hs-BDSzDuf0.js → EntityDetailPage-BaKoO9FG-BDiZrnyD.js} +2 -2
- package/dist/assets/{EntitySummarySection-CHgrPo86-DCLGdQrf.js → EntitySummarySection-C361-4tS-UJPRLBoI.js} +13 -13
- package/dist/assets/{ExpenseAutomationOverviewPage-QZT_UFXf-PT7ngRRs.js → ExpenseAutomationOverviewPage-BLvAzAmO-JyE5jYzJ.js} +30 -30
- package/dist/assets/{ExpenseAutomationPage-Y7V_Z8rd-C6AraAtl.js → ExpenseAutomationPage-CE_qMXSG-DlDCSSSs.js} +58 -58
- package/dist/assets/{ExpressPayPage-CIp_R6ZQ-CBlwPWei.js → ExpressPayPage-CDowSjHC-DolGHHJS.js} +14 -14
- package/dist/assets/{FeaturePreviewPage-qsUO3mUu-Rwf8tTxB.js → FeaturePreviewPage-DsJEfObK-B9lh1mEQ.js} +2 -2
- package/dist/assets/{FollowStepsSection-ebmR-eLP-DoIxQlf0.js → FollowStepsSection-h449vQkQ-BXixJ0VK.js} +8 -8
- package/dist/assets/{GlobalReviewListPage-9V-xoqvs-VS2DUZKK.js → GlobalReviewListPage-DGOKRsKI-CAnqX1u0.js} +18 -18
- package/dist/assets/{InformationCardStack-DnB7TmOk-Cw6GDJcT.js → InformationCardStack-xhdujEcL-COTShhF9.js} +9 -9
- package/dist/assets/{InsightsCardStack-BBczCYEz-c7iZPQzY.js → InsightsCardStack-zRynyTFj-CqnhwImM.js} +9 -9
- package/dist/assets/InsightsSection-C4fMfxQ4-BGGNiljS.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CByj2tO4-Cu1qCaSF.js → IntegrationsSettingsPage-fqQsGUmw-CRKZpnAv.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-4-pl1ozv-FMNGU2_9.js → InternationalWireSwiftDetailsPage-CIMxKADX-CYl4ll0M.js} +22 -22
- package/dist/assets/InternationalWireVerificationPage-DpmSzzre-gDdhOqko.js +65 -0
- package/dist/assets/{InviteFormPage-XsnZcAvb-C7pXISKZ.js → InviteFormPage-C7fxnyMS-ChsV2A2J.js} +37 -37
- package/dist/assets/{InvitePageListView-HfsehyxK-B0_zaBFS.js → InvitePageListView-ktOXziSw-ClMd1Rgx.js} +67 -67
- package/dist/assets/InvitePeoplePage-C_4adNch-DPbyAjsn.js +12 -0
- package/dist/assets/{InvoiceUploadSection-DPd4VmqZ-CRiQw4ob.js → InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-xbfFhV0O-CwB3p9IN.js → IssueChargeCardPage-CdV757XH-B0b8pyku.js} +19 -19
- package/dist/assets/{LabeledAddressValue-CB_KH7v5-CTa2kSF8.js → LabeledAddressValue-Ce_wDml5-CoYtFscl.js} +2 -2
- package/dist/assets/{LabeledAddressValueField-Bt41wdNQ-CaMqjCgZ.js → LabeledAddressValueField-BrYbXck--8qVwdGMU.js} +5 -5
- package/dist/assets/LabeledControlledCheckBoxField-f2c-AeS4-DagKbuzo.js +16 -0
- package/dist/assets/LabeledCountryMultiSelectField-BLOMdq_H-CLNHA2Sp.js +234 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-fycRE7PX-BMOfzbkc.js → LabeledCreatableSingleSelectField-BWuogpe6-DITM3Hn0.js} +4 -4
- package/dist/assets/LabeledDocumentField-Ch2zD7s7-Nw7bBUJi.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-DGb_bDyp-GLWqacX3.js → LabeledDropDownFormattedTextField-BA8tzPzQ-Big6_AMJ.js} +8 -8
- package/dist/assets/LabeledMultiSelectField-CA9PUCf3-CGx9bMTu.js +220 -0
- package/dist/assets/{LabeledText-yhm8qxrA-CAV7zkMz.js → LabeledText-D7eLbH80-Bs-kfAE-.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-DaFuaU2w.js → LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-CCmlbQ1T.js} +25 -25
- package/dist/assets/{LabeledZeniRolesDropDownField-DGkU72cd-CfX5Nizk.js → LabeledZeniRolesDropDownField-Cte6kRTw-CB2TIDv8.js} +28 -28
- package/dist/assets/LinkJETransactionPage-DicS5kKg-DOb356xm.js +98 -0
- package/dist/assets/{LockCardPage-DaVzuRMw-WfXdd7GO.js → LockCardPage-DRYg_fxU-CFGUEJ0X.js} +76 -76
- package/dist/assets/{LowBalancePopup-Dd9HLWlh-CzozjvI8.js → LowBalancePopup-BJfagMN7-DFWlKz1e.js} +4 -4
- package/dist/assets/MagicLinkACHDetailsPage-BeUu65LP-h79CD54_.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CO7IswK8-3R9uoHM3.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-bKdrX7dk-BH9XfZTx.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-DbhdGmhh-Co-KdioC.js → MagicLinkSuccessPage-BRWymdWH-suMYBps1.js} +5 -5
- package/dist/assets/{MagicLinkTitleSection-Bx92291D-Cip3RyJg.js → MagicLinkTitleSection-D5ORaO0D-oMV_fYKL.js} +4 -4
- package/dist/assets/{MailingDetailsSection-D-tnK244-iwYcV_GF.js → MailingDetailsSection-B_0EH3Eh-Dx6cptzU.js} +1 -1
- package/dist/assets/{Menu-0YHUdU0n-ykadCuU8.js → Menu-C9v-W9TY-DRVyGpH4.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-Dn9AT8p1-CMJSje5O.js → MyBankConnectionsSettingsPage-C4YJleyg-DKQ0iSMd.js} +5 -5
- package/dist/assets/{MyPendingActivationChargeCardListPage-DrQu6s7j-lkcW7KY-.js → MyPendingActivationChargeCardListPage-D-6TnbYs-g9LqO-rS.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CBvjEd7r-ClGN_Ywf.js → MyProfileSettingsPage-BMNBcdq8-CzuZjUxB.js} +9 -9
- package/dist/assets/{NavBarWithPicker-aXn2QYh1-EJKdDhD-.js → NavBarWithPicker-Cv7tOmjd-BXBZWsng.js} +5 -5
- package/dist/assets/{NavigationArrow-JLUXaIrz-DTB6lnvW.js → NavigationArrow-DAs7ECFZ-rFu_aZmo.js} +8 -8
- package/dist/assets/{NavigationDots-B0_dDbgu-C1OUFooh.js → NavigationDots-DISWi4Mq-BdTnuTup.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-B_019EtP-DQaHcEZD.js → NewGlobalMerchantPage-DGFtrDg1-BDtdrE9G.js} +7 -7
- package/dist/assets/{NoDataChart-DLKHNXD4-CZveDZyz.js → NoDataChart-gfqauMvY-CAbYCdyQ.js} +1 -1
- package/dist/assets/NoDataTable-C1_gqVi7-D4ANXF0d.js +8 -0
- package/dist/assets/{NotFoundPage-BEya4LS2-CeoKWJuY.js → NotFoundPage-CdWhiWjz-DDjAX_Ng.js} +3 -3
- package/dist/assets/{NotificationSettingsPage-C9SjRKCu-F18qKnKq.js → NotificationSettingsPage-C4SZ6Qwg-DbitLXBD.js} +23 -23
- package/dist/assets/{NotificationsListConfig-OCeJNw1G-DGmqr_WZ.js → NotificationsListConfig-B-g9kb6x-CND-RON9.js} +1 -1
- package/dist/assets/{NotificationsPage-FJHx_WBG-DuB0DLNl.js → NotificationsPage-jxpX3iRG-UGS5Y_9i.js} +29 -29
- package/dist/assets/{OpExByVendorPage-Dxk68R6U-BqVDaMyS.js → OpExByVendorPage-B13tAq03-Dd8cq0hz.js} +24 -24
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-j7YCqph9.js → OverlayContainerPage-Daz3A7cI-DlMlal7_.js} +1 -1
- package/dist/assets/PandLWithForecastPage-D3kcPKd0-sYhFB1EB.js +107 -0
- package/dist/assets/PaymentAccountSetupBillingAddressSection-DjdhL9mT-4CseF2mz.js +107 -0
- package/dist/assets/{PeoplePage-DN5VtG7Q-nYdb8W0g.js → PeoplePage-Du_TRX4h-C2Rmmn5d.js} +18 -18
- package/dist/assets/Preview-CSeZ_uBx.js +1 -0
- package/dist/assets/{ProductsCarousel-6gthLCkf-Csrsm4r_.js → ProductsCarousel-y6q9BbqK-B9m9tH0o.js} +12 -12
- package/dist/assets/{PromoBaseCards-CzPzj69A-BfaxdPQK.js → PromoBaseCards-CLQMN7aT-BxeQG0rP.js} +8 -8
- package/dist/assets/{QBOConnectionDialog-BFy0lMZd-C1tu8oqS.js → QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js} +6 -6
- package/dist/assets/{QBOSetupSection-DcLYyQ5m-D0DkS0no.js → QBOSetupSection-D--nxfIh-Difre144.js} +16 -16
- package/dist/assets/ReimbursementApprovalRuleDetailPage-OXenWhiy-Cj4gr0h0.js +32 -0
- package/dist/assets/ReimbursementApprovalRulesPage-BJaSXRQF-DF9kihjD.js +243 -0
- package/dist/assets/ReimbursementDetailPage-BeFEzgmP-DZ-1wgaR.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-MweW-4DO-DmsMevam.js → ReimbursementPromoPage-C0sHIJm4-YN1RP5MA.js} +6 -6
- package/dist/assets/{ReimbursementSetUpPage-BD2LWlbW-2g5gata7.js → ReimbursementSetUpPage-C85Q6ZnB-DbK7lPyD.js} +13 -13
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DV_PLm_g-KY60bbA9.js → ReimbursementsBulkReviewDrawerPage-B5RzRA4c-PwRYjy1t.js} +1 -1
- package/dist/assets/{ReloadCard-9KpQCrce-DSFKeIcW.js → ReloadCard-BT0lSFUP-CF34SUO7.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BPliEsuo-C5akejbK.js → ReportTableViewSelector-rl6XGWA_-CSxPHelL.js} +5 -5
- package/dist/assets/{ReportsPage-h2DAaQfK-rm8V3hZY.js → ReportsPage-DV0bbi_D-1o0LJL4r.js} +10 -10
- package/dist/assets/{RevenueChart-DY2s_upY-BteR_6zS.js → RevenueChart-CxvHfkxr-BmSB0A7U.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-BiYxRnvA-BdMJ-sdU.js → ReviewDetailsPage-CX2XB44j-BHiKofo4.js} +52 -52
- package/dist/assets/{ReviewOverlay-BvPN7IKD-BXG7ADPa.js → ReviewOverlay-DdOo3pcK-BVp3d9bK.js} +9 -9
- package/dist/assets/RoleWithToolTip-C08wfnGb-CFjb8VCB.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlXqz1QQ-KB7qB_BG.js → ScheduleDetailsFixedAssetsPage-BmZgiTVc-C4es4cDL.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-DebosLND-BrNQar2A.js → ScheduleDetailsPage-BqX1EZGE-B4pi2I25.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-Dd4Ep_c0-QwBSHiHh.js → ScheduleSequenceTable-DU3dXX6V-BMdU_3TL.js} +50 -50
- package/dist/assets/ScreenRoutes-BOb1-zin.js +201 -0
- package/dist/assets/{SetUpAccountSection-Dhb8A0Oe-BE16TcfB.js → SetUpAccountSection-Clz60vjw-CDcwloM0.js} +15 -15
- package/dist/assets/SignIn-B79R5ayU-BtVW5pl0.js +491 -0
- package/dist/assets/SignInScreen-CsaRmLqD.js +1 -0
- package/dist/assets/SpendManagementListViewPage-C3gJ8vag-CRVtgLhw.js +134 -0
- package/dist/assets/SpendManagementPerTabPage-DmCZhFWY-Dsjzi1bn.js +785 -0
- package/dist/assets/SpendManagementSection-mtTZeiX8-DB_R_dFU.js +246 -0
- package/dist/assets/StatementItem-C9KsTdoM-CvW9SwJx.js +31 -0
- package/dist/assets/{StatementsPage-DVR5LhTi-CK4DNN1F.js → StatementsPage-DgoXqABR-NsGiWIFr.js} +3 -3
- package/dist/assets/{StatusSwitcher-Cy5ITFgi-WNbBQL_H.js → StatusSwitcher-DRDFuzoj-DFWyQSIu.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DhsES2OW-Ba9WstlT.js → SubTabSwitcher-Bj1N3zLn-DocBm2NX.js} +3 -3
- package/dist/assets/{SummaryCard-Byv4Hw8Q-Cya4iYRL.js → SummaryCard-BNrPt21W-z-I2nOL_.js} +1 -1
- package/dist/assets/{TaskManagementPage-CVXMOPf2-Cj3it9IL.js → TaskManagementPage-svW7FNT3-CdR83JXD.js} +27 -27
- package/dist/assets/{TimeRangeSwitcher-jct2_5PE-jdBQXqjL.js → TimeRangeSwitcher-wio5OjI3-BFQK4ykL.js} +4 -4
- package/dist/assets/{TimeframeSwitcher-BK-qliOX-D6zGRAVk.js → TimeframeSwitcher-234cbGUX-GrV_gRdd.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-B65LibQx-O8FBApDz.js +31 -0
- package/dist/assets/{TopExCard-o4Q3ze1b-DaQrihbx.js → TopExCard-DFm0V6Sa-CuS6D-g2.js} +7 -7
- package/dist/assets/{TopExDetailPage-BsCwwwDi-CoRmHcau.js → TopExDetailPage-B4UamIS--DvTevd6J.js} +11 -11
- package/dist/assets/{TransactionDetailPage-rpCG65yC-pn0dPq-f.js → TransactionDetailPage-BiGPVM2O-BIqR8D1A.js} +23 -23
- package/dist/assets/{TransactionList-YI4oZaim-BeW25N4W.js → TransactionList-BQ2dvALf-DExPb7_Y.js} +15 -15
- package/dist/assets/{TransactionListBig-D_Jw9Ip2-DUthp3Uu.js → TransactionListBig-Ca4yYTqY-DpBtFr0L.js} +10 -10
- package/dist/assets/{TransactionListPage-B2yWm7eA-DoyaJLS9.js → TransactionListPage-CaSfmS5A-B8TNgEwP.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-Dr5C4-7q-LcfF0abM.js → TransactionVendorDetailPage-CH7qHDUF-CdstXkoA.js} +4 -4
- package/dist/assets/{TransferDrawerPage-BnEVH7Mc-Cc2Z_6P5.js → TransferDrawerPage-5IgzdfVN-CuTPVgyu.js} +41 -41
- package/dist/assets/{TreasuryOverviewPage-C927Rdkg-mfpMLnDZ.js → TreasuryOverviewPage-CyMGJE8x-BqzDON9-.js} +43 -43
- package/dist/assets/{TreasuryPromoPage-C6D3bF2f-CzyRKa5_.js → TreasuryPromoPage-DQabp_BI-lYWtZagK.js} +15 -15
- package/dist/assets/TreasuryStatementsPage-DyJbkTPX-DQbO4X2A.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-BaHut8Wc-CskcJOaK.js → TreasuryTaxLetterPage-BSIqzP7E-BachcLIH.js} +3 -3
- package/dist/assets/{TrendChart-BI4Tz813-PlKdXGQX.js → TrendChart-DLlQzxzM-PPRPEN_l.js} +4 -4
- package/dist/assets/{TrendWithTransactions-BicIDSlC-Bhg4sKIS.js → TrendWithTransactions-CjGbUTLS-CZ3CCR3q.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-sbn4Sdr2-BfCTTems.js → UncategorizedAccountsMappingPage-CgJuXRnT-4h1DDmrY.js} +9 -9
- package/dist/assets/{UnitIntegrationPage-CZUyjeh5-3UKmMNlz.js → UnitIntegrationPage-Dew9WP2L-B7QG_5u7.js} +10 -10
- package/dist/assets/{UploadAdditionalDocumentOverlay-4AWDV_HK-fyZHHxgB.js → UploadAdditionalDocumentOverlay-CoO-S_pc-DdAruGua.js} +8 -8
- package/dist/assets/{Vendor2FAPopup-C_PmEAQ7-CN2t48ys.js → Vendor2FAPopup-2JZx7Ouz-DmIxVSxV.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-DVqS0EVe-BvHJQnhv.js +1 -0
- package/dist/assets/{VendorDetailPage-CLFKkF8I-C1IdXHu1.js → VendorDetailPage-DcpigP-V-CLpuuI3V.js} +86 -86
- package/dist/assets/VendorDomesticWireDetailsPage-BrvN0BZx-Cb_0-TC6.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-CrWrhHZl-B1pRF1hT.js → VendorFiling1099EditablePage-BK_AfMvG-BcMvx9ZT.js} +17 -17
- package/dist/assets/{VendorFirstReviewPage-C6MnbIan-SeG_ubbN.js → VendorFirstReviewPage-BnGpb03v-CQ1grmaD.js} +61 -61
- package/dist/assets/{VendorInternationalWireDetailsPage-CzPRK4E2-r_6eJH9r.js → VendorInternationalWireDetailsPage-Bs_MIbDV-D_-xScY6.js} +20 -20
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJMBOb8y-CNYkR-9e.js +1 -0
- package/dist/assets/{VendorsAccountsSection-CVh1n81R-BiCjwBhE.js → VendorsAccountsSection-V7IwNhkN-D-eiPu30.js} +4 -4
- package/dist/assets/{VerifyDevice-BHocExfO-DjIMPNA8.js → VerifyDevice-Dc3oeJbw-D5d8Wn7A.js} +7 -7
- package/dist/assets/{VideoPlayer-9rYRtSLf-BjvT2OMT.js → VideoPlayer-XU1YwohK-BaDXYiVP.js} +2 -2
- package/dist/assets/{VideoPopup-D1o92dj6-CD3Smh1W.js → VideoPopup-BKLcIVcV-C8tsI7gn.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-CzufXgaN-BMm0pY72.js → WarningsDrawerPage-DE6hNSem-DTjl6BDC.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-ZZ3Ra-Jf-Ge7VgWuS.js → ZeniAccountDetailPage-B3txxml4-BrnXOri_.js} +38 -38
- package/dist/assets/{ZeniAccountListViewPage-Cxid0mfh-DvSsusPJ.js → ZeniAccountListViewPage-D8AbqSI--lXEmxuQ-.js} +17 -17
- package/dist/assets/ZeniAccountNavBarPieces-CNM-e6b3-CrP6I6p5.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-YIYFkPIB-D5lVCJaq.js → ZeniAccountPromoPage-CcZOtFpv-D5dUYpiY.js} +20 -20
- package/dist/assets/{ZeniAccountSetupPage-BJ9UJ0dP-C1Wgqq9R.js → ZeniAccountSetupPage-COA09GMm-BsBo4Yw_.js} +1 -1
- package/dist/assets/{ZeniCopyright-CztmWsFm-Bq1pkV4V.js → ZeniCopyright-DqbjGQWk-D3uyyuTN.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-g9qU5Lsq-bFllmPoH.js → ZeniTransferAmountSlider-NJ7GeTlf-DqVr8V-Q.js} +7 -7
- package/dist/assets/{add-to-wallet-DgdBD8_G-Bk9iUnjH.js → add-to-wallet-DgdBD8_G-CF63trjm.js} +1 -1
- package/dist/assets/{analytics-BUkj7jvZ.js → analytics-D0z7Cz17.js} +1 -1
- package/dist/assets/{analyticsHelper-D4lKCWjQ-DwDJBUY0.js → analyticsHelper-C2PAija--B2XRbUD9.js} +1 -1
- package/dist/assets/{analyticsHelper-B4bPMH3g.js → analyticsHelper-D1UvETVa.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-D6-JBGih.js → arrow-south-east-round-PEovUgvH-Cun1Cxd1.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DyrE-vz9.js → auto-transfer-rule-mbafm5D3-DPk-N0wE.js} +1 -1
- package/dist/assets/{chartTypes-BPPSjkhb-qpDZo76P.js → chartTypes-B9jQTJLQ-B-uICCus.js} +1 -1
- package/dist/assets/{commonDimensions-Ds75pRzR-CknYEsxH.js → commonDimensions-BgvFMAEM-jw0M4GDE.js} +1 -1
- package/dist/assets/commonTypes-PtDfk70--ByVvU-Tm.js +1 -0
- package/dist/assets/{constants-e1joQwxq.js → constants-DleDZ7Hr.js} +1 -1
- package/dist/assets/{core-DSEA1DeO.js → core-9PMMelIA.js} +2 -2
- package/dist/assets/{dash.all.min-ErqzSjBm.js → dash.all.min-ClWxXI22.js} +1 -1
- package/dist/assets/{detailCommon-DdZdfmYT-BGt3SMo9.js → detailCommon-BjRXEZFj-BMuJy_GS.js} +7 -7
- package/dist/assets/downloadPdf-ZSABdzxr-CSS_LmUU.js +1 -0
- package/dist/assets/empty-Bp9uyDV_.js +1 -0
- package/dist/assets/{empty-C0VR_6w-.js → empty-D5Zf29Ub.js} +1 -1
- package/dist/assets/epic-Di7g1fbQ.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CpWMLhiV.js → gift-box-Cmt9OgIZ-m0hJlqL5.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-Ck-UlMHZ.js → graphic-no-data-l-DU4J8fDt-cg6FAACa.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-B0NcDeLD.js → graphic-no-data-net-burn-l-CzmycA0m-qDT1cGx5.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BKg5Zl7K.js → handshake-BPg58FML-DFhtOw8z.js} +1 -1
- package/dist/assets/{index-CrF-DUPb.js → index-0WIxY_w_.js} +1 -1
- package/dist/assets/{index-CzZbMptt.js → index-4hZvJwkO.js} +1 -1
- package/dist/assets/{index-L_AK35Oo.js → index-BLOmj_st.js} +1 -1
- package/dist/assets/{index-DKQM71dS.js → index-Bs2B-MQ4.js} +4523 -4511
- package/dist/assets/{empty-BC8tDj-C.js → index-CbXRL6aP.js} +1 -1
- package/dist/assets/index-DNxMom6d.js +1 -0
- package/dist/assets/{index-BpWgzcsf.js → index-DW6fMwk4.js} +1 -1
- package/dist/assets/{lexical-D8ee32sQ.js → lexical-CaQwXIc3.js} +1 -1
- package/dist/assets/{liveblocks-Bth6iRPZ.js → liveblocks-48Yy2aTy.js} +1 -1
- package/dist/assets/{lottie-BcjGrMJ9.js → lottie-ChwWMuYN.js} +2 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-ilouYnTd-DoZ0huih.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-rrJBbsC8--SbDIUwj.js → mapSectionWithAcOnlyToTreeNode-DCsXPZ77-B7l0JH-0.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CEKoJAIb-Ca0optUS.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cki-np8X-STcH44eC.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DfQk4Tsr-UXPU4xby.js → mapTimeframeBalancesToTreeNode-q_WorOhv-vY1YncA0.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-C_x9HXWn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-BH5TYlER.js} +1 -1
- package/dist/assets/{mui-Bm7nuuAo.js → mui-snKYaegN.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-Cdu8-KMO.js → page-detail-CWX5S47F-D1nl1r9M.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-Bl0MojvA.js → radio-default-CiSgisfh-BY9nqKUM.js} +1 -1
- package/dist/assets/{react-nT9GYl0Y.js → react-B2deW7HO.js} +1 -1
- package/dist/assets/{react-3iEIv6n1.js → react-BNn_K56n.js} +2 -2
- package/dist/assets/{react-BN52OPO2.js → react-BddMC_36.js} +3 -3
- package/dist/assets/{react-CkNFk2ew.js → react-BpEW9tPq.js} +2 -2
- package/dist/assets/{react-jcR3ufXW.js → react-C-MrqhIX.js} +2 -2
- package/dist/assets/{react-D6HVaxcq.js → react-CiQEdtzT.js} +2 -2
- package/dist/assets/{react-CybtaVCD.js → react-DHTHtXgj.js} +1 -1
- package/dist/assets/{react-Cq1uO9gu.js → react-o70ZlKb0.js} +1 -1
- package/dist/assets/{recharts-sqzNidKh.js → recharts-DGmpNqLb.js} +1 -1
- package/dist/assets/{sentry-3Q4-6z2o.js → sentry-gm2R3TtK.js} +2 -2
- package/dist/assets/{shield-DOlUxcFf-BkG4GSM2.js → shield-DOlUxcFf-DNx-Nq5U.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CcsM8Vr1-Ca_vxtPe.js +1 -0
- package/dist/assets/toChartData-CVxc3i6E-Jb1kbIeZ.js +1 -0
- package/dist/assets/{uploadAttachment-B4ddYCCL-Cj9tfjtm.js → uploadAttachment-CBATb9_e-Bf8RMkbX.js} +22 -22
- package/dist/assets/{uploadReceipts-CPw64UYa-BgpQylmh.js → uploadReceipts-CPw64UYa-DwtdWb2a.js} +1 -1
- package/dist/assets/{url-Dvga04s1.js → url-B3spPAaB.js} +1 -1
- package/dist/assets/{url-Cenve78-.js → url-CsktLD4A.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-usvVYHad.js → useLongPress-GCK2COYQ-5GfLl0ml.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-ByjIwRIy.js → usp-line-BBd1wKwW-DO5-Shw0.js} +1 -1
- package/dist/assets/{utils-gMT26ExF.js → utils-C7Aiy3iw.js} +1 -1
- package/dist/assets/{zeni-epic-state-1LR8oCdb.js → zeni-epic-state-D2RxwWrl.js} +32 -32
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-BRWOdhMx-B5vqTcQC.js +0 -21
- package/dist/assets/AccountInfoPage-Ca_vKG58-CmolE_M0.js +0 -18
- package/dist/assets/AccountLockedInfoModal-CEk5d9hq--KHKaMTx.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-DfOyebHX-tEW9jx2i.js +0 -6
- package/dist/assets/ApAgingDetailPage-Duu2uAEr-CHYiB4_n.js +0 -46
- package/dist/assets/ArAgingDetailPage-CaOr6vAU-DExwExvL.js +0 -46
- package/dist/assets/BillDetailPage-BG7FhHEq-BJc5bg2f.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-BxxZuroQ.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-D3Z89838.js +0 -235
- package/dist/assets/BillPayPromoPage-aGKOv8Ur-DyPqmebu.js +0 -84
- package/dist/assets/BillingSettingsPage-CdYb74V7-C_ZbNI2K.js +0 -44
- package/dist/assets/BusinessVerificationPage-CbqJIVpz-D5Pnrd4V.js +0 -138
- package/dist/assets/CardNumberSubText-DBOH0_yP-NStUUB4L.js +0 -21
- package/dist/assets/ChargeCardListPage-130ILwkr-Bn2UNOpv.js +0 -412
- package/dist/assets/CompanyOfficerDetailsSection-BtUBatbQ-BgEQYkh1.js +0 -260
- package/dist/assets/CompanyPassportPage-DzE7sm8S-F-LnGTlT.js +0 -574
- package/dist/assets/ConfettiBurst-1rYKpbAj-7_ntB1dO.js +0 -1
- package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-DWTS2vWG.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-FKs-62hv.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-eoICSPrF.js +0 -66
- package/dist/assets/CustomerOnboardingPage-CvN9Jrdy-TK7lm7QW.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-DLYrpbnI.js +0 -202
- package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-B8QX9JeN.js +0 -12
- package/dist/assets/EditPeoplePage-DJthuIP4-DFiVe4fX.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-oGYtPUJx.js +0 -865
- package/dist/assets/InsightsSection-BTXj5WUe-Dnd7T8n1.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-kIajgPZt-BCl1VoBc.js +0 -292
- package/dist/assets/InvitePeoplePage-DrBtwpMH-jVWIt_-k.js +0 -12
- package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-FQPDCWhk.js +0 -16
- package/dist/assets/LabeledDocumentField-C73vQNgq-ClbLbe81.js +0 -41
- package/dist/assets/LinkJETransactionPage-C0onrP5t-qiX2Dqs6.js +0 -98
- package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-DW1n8bX2.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-DHDPluRy.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-BcWdztI5.js +0 -1
- package/dist/assets/NoDataTable-BMD2qygC-D3zLqMv-.js +0 -8
- package/dist/assets/PandLWithForecastPage-Bu49FbWD-B1CQW0Ds.js +0 -107
- package/dist/assets/PaymentAccountSetupBillingAddressSection-s9EEHxoG-4TpDZPEe.js +0 -107
- package/dist/assets/Preview-a-JlTlEm.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-DfP6S3rb.js +0 -26
- package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-BDz7EXy3.js +0 -237
- package/dist/assets/ReimbursementDetailPage-DatcF8rt-CXM71NE4.js +0 -314
- package/dist/assets/RoleWithToolTip-aW95rpRe-BrXKfiz8.js +0 -22
- package/dist/assets/ScreenRoutes-C3DV_-a8.js +0 -201
- package/dist/assets/SignIn-DQBJB5ad-D2MMlFVA.js +0 -448
- package/dist/assets/SignInScreen-B7P5eb-y.js +0 -1
- package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-BO9QxuYF.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-BQjpDK4V.js +0 -754
- package/dist/assets/SpendManagementSection-Ci2yOCJ9-HulA5gL6.js +0 -230
- package/dist/assets/StatementItem-hcBoe79o-Du93pBl-.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-Do0VDrMC.js +0 -31
- package/dist/assets/TreasuryStatementsPage-BE54gWl6-BmltGAJ9.js +0 -58
- package/dist/assets/VendorACHDetailsPage-DMMoCytX-XMV6oQdd.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-1eo_KTtv.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-Bp91Qzlg.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-sO3GACzv.js +0 -14
- package/dist/assets/downloadPdf-B8UMaJCC-BFUHIY4h.js +0 -1
- package/dist/assets/epic-ChbeUbgS.js +0 -2
- package/dist/assets/index-BBszPXVa.js +0 -1
- package/dist/assets/index-BjHrSGfO.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-C9B3pLm1.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CWvamMX2-BXiUP_C8.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-CsmN8zhY.js +0 -1
- package/dist/assets/toCOABalancesWithID-CkjRB0sJ-CHosyNVt.js +0 -1
- package/dist/assets/toChartData-CMi2WgAy-C7CbsXKi.js +0 -1
- package/dist/assets/transaction-placeholder-CpOwZAMG-D5UmMc1z.js +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{d as tt,q as
|
|
1
|
+
import{d as tt,q as Ie,aw as It,a8 as Lt,gW as wr,hz as ki,aT as Qe,gX as xr,aO as et,V as t,g_ as ji,bA as Ii,c as l,fR as br,aL as Ge,aN as X,o as a,bR as Qt,p as d,F as ke,j0 as Sr,b as _,cn as Li,j1 as Di,f7 as Ai,gM as Ti,j2 as Ei,bD as Fi,bM as yr,aR as ea,j3 as Ri,j4 as $r,j5 as ot,y as T,bI as vr,b9 as ta,g as zi,aS as kr,a_ as Pi,j6 as Mi,j7 as Vi,b6 as aa,ai as ge,ez as Oi,iQ as Hi,u as gt,gZ as jr,cb as Ni,k as mt,b2 as Bi,di as Wi,cr as _i,co as Ui,d1 as Zi,hw as Gi,al as Oe,bT as qi,aX as Wt,j8 as Ra,j9 as Yi,R as za,M as Ir,b8 as Xi,ja as Ji,iK as pt,iV as Ki,i_ as Qi,i$ as eo,dq as Pa,eR as to,n as Lr,cw as Dr,iT as ao,bW as ro,l as Ar,jb as io,av as vt,bZ as Ma,bw as oo,da as no,am as st,gV as so,aq as co,L as lo,bE as ho,jc as Dt,fk as po,jd as Tr,gw as Er,je as jt,ib as Fr,bP as uo,ec as Rr,iW as mo,cz as go,dL as Co,cX as fo,iX as wo,iY as xo,ei as bo,ce as So,cf as yo}from"./index-Bs2B-MQ4.js";import{a as o,S as $o}from"./sentry-gm2R3TtK.js";import{n as r,c as we,k as zr}from"./mui-snKYaegN.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-D2RxwWrl.js";import{k as Io}from"./NavigationDots-DISWi4Mq-BdTnuTup.js";import{A as Lo,i as Do,a as Ao,l as To,r as Eo,t as Fo,n as Ro}from"./add-to-wallet-DgdBD8_G-CF63trjm.js";import{L as _t}from"./lottie-ChwWMuYN.js";import{j as zo}from"./CardNumberSubText-C6jdBRC2-YbNbzp0H.js";import{r as Pr}from"./core-9PMMelIA.js";import{l as Mr}from"./uploadReceipts-CPw64UYa-DwtdWb2a.js";import{L as Po,z as Mo,k as Vo,P as Oo}from"./LockCardPage-DRYg_fxU-CFGUEJ0X.js";import"./liveblocks-48Yy2aTy.js";import"./recharts-DGmpNqLb.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";import"./RoleWithToolTip-C08wfnGb-CFjb8VCB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="1fd0e2f0-73c9-4766-847a-abda1d720131",e._sentryDebugIdIdentifier="sentry-dbid-1fd0e2f0-73c9-4766-847a-abda1d720131")}catch{}})();const Vr=ke.getLocalizedStrings().spendManagement.chargeCard,Ho=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:q}=Mi(),{isAndroidScreen:J}=Vi(),U=It(),D=At(U.loggedInUserRoleMap);return t.jsx(No,{style:p,children:q===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):J===!0?t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Jt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Bo,{}),label:Vr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":X("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Wo,{}),label:Vr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":X("add-to-apple-wallet-button")})},No=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
5
5
|
gap: ${a.sp5};
|
|
6
|
-
`,
|
|
6
|
+
`,Bo=r(Ro)`
|
|
7
7
|
height: ${a.sp4};
|
|
8
8
|
width: ${a.sp5};
|
|
9
|
-
`,
|
|
9
|
+
`,Wo=r(Fo)`
|
|
10
10
|
height: ${a.sp4};
|
|
11
11
|
width: ${a.sp5};
|
|
12
|
-
`,
|
|
12
|
+
`,_o=[d.brandColorSapphire,d.brandColorJade,d.graphColor01,d.graphColor08,d.graphColor12,d.graphColor15,d.graphColor16Dark,d.graphColor23Dark,d.graphColor32Dark,d.graphColor34Dark,d.brandColorOpalDark,d.brandColorRuby],Uo=ke.getLocalizedStrings().spendManagement.chargeCard,Zo=({isColorPaletteVisible:e,hasBorderShadow:i,leftTransitionValue:s,colorInState:u,styles:h,colorPaletteTitleStyles:f,ColorListStyles:c,coloredCircleStyles:g,closeStyles:m,tickStyles:x,toggleColorPaletteVisibility:b,handleColorClick:n})=>t.jsxs(Go,{showColorPalette:e,style:h,hasBorderShadow:i,leftTransitionValue:s,children:[t.jsxs(Yo,{style:f,children:[t.jsx(Xo,{children:Uo.cardDetails.cardTheme}),t.jsx(Jo,{style:m,"data-testid":X("close-color-palette"),onClick:C=>{C.stopPropagation(),b(!e)}})]}),t.jsx(qo,{style:c,children:_o.map((C,w)=>t.jsx(Qo,{style:g,coreColor:C,onMouseEnter:()=>n(new Qe(C),!1),onMouseLeave:()=>u!=null?n(new Qe(u),!1):null,"data-testid":X("color-palette-item-cards",w.toString()),onClick:()=>n(new Qe(C),!0),children:new Qe(C).toString()===u?.toString()?t.jsx(Ko,{style:x}):null},C))})]}),Go=r.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
top: ${a.sp1};
|
|
15
15
|
max-width: 78%;
|
|
@@ -22,26 +22,26 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
22
22
|
position: absolute;
|
|
23
23
|
height: ${`calc(100% - ${a.sp2})`};
|
|
24
24
|
z-index: 1;
|
|
25
|
-
`,
|
|
25
|
+
`,qo=r.div`
|
|
26
26
|
display: flex;
|
|
27
27
|
flex-wrap: wrap;
|
|
28
28
|
padding: ${a.sp0} 38px ${a.sp0} 31px;
|
|
29
|
-
`,
|
|
29
|
+
`,Yo=r.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
padding: ${a.sp5} ${a.sp5} ${a.sp2} ${a.sp5};
|
|
34
|
-
`,
|
|
34
|
+
`,Xo=r(ge)`
|
|
35
35
|
color: ${d.brandColorOnyx};
|
|
36
|
-
`,
|
|
36
|
+
`,Jo=r(lo)`
|
|
37
37
|
width: ${a.sp3};
|
|
38
38
|
height: ${a.sp3};
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
color: ${e=>e.theme.colors.hero};
|
|
41
|
-
`,
|
|
41
|
+
`,Ko=r(ho)`
|
|
42
42
|
width: ${a.sp3};
|
|
43
43
|
color: ${d.neutralGrey5Light};
|
|
44
|
-
`,
|
|
44
|
+
`,Qo=r.div`
|
|
45
45
|
width: ${a.sp4};
|
|
46
46
|
height: ${a.sp4};
|
|
47
47
|
display: flex;
|
|
@@ -50,66 +50,66 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
50
50
|
margin: ${a.sp2};
|
|
51
51
|
justify-content: center;
|
|
52
52
|
align-items: center;
|
|
53
|
-
`,{spendManagement:
|
|
54
|
-
${v?.accountLast4??Ke.strings.empty}`}),t.jsxs(
|
|
53
|
+
`,{spendManagement:en,common:Ke,dateFormat:tn}=ke.getLocalizedStrings(),Xe=en.chargeCard,Ee={secretCardNumberWrapperWidth:280,secretCVVWrapperHeight:30,secretCVVWrapperWidth:l[7],cardNumberCopiedSectionTop:54,cvvCopiedSectionTop:34,maskedCardNumberMarginTop:new T(-2,-2,-2,l[0]),expiryCopySectionTop:34,cardNumberCopyBtnTop:21},Va={CardInfoTitleSize:new T(_.extraSmallRegular.fontSizeValue,_.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new T(18,18,18,21)},Ut=e=>t.jsxs(bn,{style:{...e},children:[t.jsx(xn,{}),t.jsx(Sn,{style:{background:d.blackColor,color:d.primaryDark,padding:`2px ${a.sp2}`,borderRadius:a.sp1},children:Ke.copyToClipBoard.copied})]}),Oa=({isSandboxEnv:e,sourceId:i,showSecretInfo:s,secretRevealed:u,vgsVaultId:h,controllerEmails:f,isChargeCardFeatureEnabled:c,productInformation:g,cashbackInformation:m,creditAccountInformation:x,debitAccountInformation:b,chargeCardCashbackDetailState:n,creditAccount:C,creditAccountRepayment:w,isDebitCard:j,depositAccountLimitFetchState:y,isCardDetailErrored:k,isCardColorUpdating:L,cardDetailsFetchState:p,isCardColorUndefined:E,cardInfoTitleStyles:S,styles:O,cvvSecStyles:H,chargeCard:v,token:q,setSecretRevealed:J,setIsCardDetailErrored:U,setCardDetailsFetchState:D,onFireOnClickAnalytics:oe})=>{const K=Lt().analytics,[,ne]=wr(),N=Ie(),[Z,W]=o.useState(!1),[ae,Q]=o.useState(!1),[re,se]=o.useState(!1),z=It(),de=At(z.loggedInUserRoleMap),[G]=Sr("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),$=i==="addToWalletDrawer"?.75:N==="small"?.85:1,Y=e?"sandbox":"live";o.useEffect(()=>{if(G&&v!=null&&s&&q!=null&&!u){const A=window.VGSShow.create(h).setEnvironment(Y),P=v.cardProviderID,ce=A.request({name:"data-text",method:"GET",path:"/cards/"+P+"/secure-data/cvv2",headers:{Authorization:"Bearer "+q},htmlWrapper:"text",jsonPathSelector:"data.attributes.cvv2"});D({cvv:!0,number:!0}),ce.render(`#SecretCvv-${i}`,{"@font-face":{"font-family":vt["PT Mono"],"font-style":"normal","font-weight":Ma.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":vt["PT Mono"],opacity:.7,color:d.brandColorOnyx,fontSize:`${$*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*_.h6Regular.lineHeightValue}px`}),ce.on("requestSuccess",()=>{J(!0),U(!1),D({...p,cvv:!1})}),ce.on("requestFail",()=>{U(!0),D({...p,cvv:!1});const I=document.getElementById(`SecretCvv-${i}`);for(;I?.hasChildNodes()===!0;)I.removeChild(I.children[0])}),A.copyFrom(ce,{text:Ke.strings.empty},I=>{I==="success"?(Q(!0),oe("CVV copied"),n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&K.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","CVV","",m,x,b)):Q(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:`${$*Ee.secretCVVWrapperHeight}px`,width:`${$*Ee.secretCVVWrapperWidth}px`});const ie=A.request({name:"data-text",method:"GET",path:"/cards/"+P+"/secure-data/pan",headers:{Authorization:"Bearer "+q},htmlWrapper:"text",jsonPathSelector:"data.attributes.pan",serializers:[A.SERIALIZERS.replace("(\\d{4})(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3 $4")]});ie.render(`#SecretCardNumber-${i}`,{"@font-face":{"font-family":vt["PT Mono"],"font-style":"normal","font-weight":Ma.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":vt["PT Mono"],opacity:.7,color:d.brandColorOnyx,fontSize:`${$*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*_.h6Regular.lineHeightValue}px`}),ie.on("requestSuccess",()=>{J(!0),U(!1),D({...p,number:!1})}),ie.on("requestFail",()=>{U(!0),D({...p,number:!1});const I=document.getElementById(`SecretCardNumber-${i}`);for(;I?.hasChildNodes()===!0;)I.removeChild(I.children[0])}),A.copyFrom(ie,{text:Ke.strings.empty,serializers:[A.SERIALIZERS.replace(Ke.strings.space,Ke.strings.empty)]},I=>{I==="success"?(W(!0),oe("card number copied"),n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&K.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Card Number","",m,x,b)):W(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:`${$*_.h6Regular.lineHeightValue}px`,width:`${$*Ee.secretCardNumberWrapperWidth}px`})}},[G,v,s,q,u]),o.useEffect(()=>{if(s===!1){const A=document.getElementById(`SecretCvv-${i}`);for(;A?.hasChildNodes()===!0;)A.removeChild(A.children[0]);const P=document.getElementById(`CvvCopyBtn-${i}`);for(;P?.hasChildNodes()===!0;)P.removeChild(P.children[0]);const ce=document.getElementById(`SecretCardNumber-${i}`);for(;ce?.hasChildNodes()===!0;)ce.removeChild(ce.children[0]);const ie=document.getElementById(`CardNumberCopyBtn-${i}`);for(;ie?.hasChildNodes()===!0;)ie.removeChild(ie.children[0])}},[i,s]),o.useEffect(()=>{Z===!0&&setTimeout(()=>{W(!1)},800),ae===!0&&setTimeout(()=>{Q(!1)},800),re===!0&&setTimeout(()=>{se(!1)},800)},[Z,ae,re]);const B=v!=null?ko(v.validThru.year,v.validThru.month-1).format(tn.visual.MMSlashYYFormat):Ke.strings.empty,le=A=>{s===!0&&(p.cvv!==!0||p.number!==!0)&&(oe("validity copied"),A!=null&&n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&K.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Valid Thru",B,m,x,b),ne(B),se(!0))};return t.jsxs(ln,{style:O,children:[t.jsxs(hn,{children:[t.jsx(Zt,{style:S,windowSize:N,children:Xe.cardDetails.cardNumber}),t.jsx(pn,{sourceId:i,scaleFactor:$,showSecretInfo:s&&(p.number===!1||p.cvv===!1),isCardDetailFetching:p.number===!0||p.cvv===!0||E||L,windowSize:N,children:`${Xe.cardDetails.cardNumberHideout}
|
|
54
|
+
${v?.accountLast4??Ke.strings.empty}`}),t.jsxs(an,{secretRevealed:u,scaleFactor:$,showSecretInfo:s&&p.cvv===!1&&p.number===!1,sourceId:i,isCardDetailErrored:k,children:[t.jsx(rn,{sourceId:i,scaleFactor:$,secretRevealed:u,id:`SecretCardNumber-${i}`}),t.jsx(cn,{secretRevealed:u,scaleFactor:$,id:`CardNumberCopyBtn-${i}`,sourceId:i}),Z===!0?t.jsx(Ut,{top:$*Ee.cardNumberCopiedSectionTop}):null]})]}),t.jsxs(un,{children:[t.jsxs(Cn,{children:[t.jsx(Zt,{style:S,windowSize:N,children:Xe.cardDetails.expiry}),t.jsxs(sn,{secretRevealed:s&&(p.cvv===!1||p.number===!1),children:[u&&s&&p.cvv===!1&&p.number===!1?t.jsx(wn,{sourceId:i,scaleFactor:$,windowSize:N,secretRevealed:u&&s,"data-testid":X("expiry-date-copy"),onClick:A=>{A.stopPropagation(),le(v)},children:u&&s&&p.cvv===!1&&p.number===!1?B:Xe.cardDetails.expiryHideOut}):t.jsx(fn,{sourceId:i,windowSize:N,scaleFactor:$,isCardDetailFetching:p.cvv===!0||p.number===!0||E||L,children:Xe.cardDetails.expiryHideOut}),re===!0?t.jsx(Ut,{top:$*Ee.expiryCopySectionTop,width:"auto"}):null]})]}),t.jsxs(mn,{style:H,children:[t.jsx(Zt,{style:S,windowSize:N,children:Xe.cardDetails.cvv}),t.jsx(gn,{sourceId:i,scaleFactor:$,showSecretInfo:s&&p.cvv===!1&&p.number===!1,isCardDetailFetching:p.number===!0||p.cvv===!0||E||L,windowSize:N,children:Xe.cardDetails.cvvHideOut}),t.jsxs(on,{secretRevealed:u,sourceId:i,showSecretInfo:s&&p.cvv===!1&&p.number===!1,isCardDetailErrored:k,children:[t.jsx(nn,{scaleFactor:$,secretRevealed:u,sourceId:i,id:`SecretCvv-${i}`}),t.jsx(dn,{windowSize:N,scaleFactor:$,secretRevealed:u,id:`CvvCopyBtn-${i}`,sourceId:i}),ae===!0?t.jsx(Ut,{top:$*Ee.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},an=r.div`
|
|
55
55
|
display: ${e=>e.showSecretInfo?"block":"none"};
|
|
56
56
|
height: ${e=>e.secretRevealed?"unset":a.sp0};
|
|
57
|
-
width: ${e=>e.secretRevealed?e.scaleFactor*
|
|
57
|
+
width: ${e=>e.secretRevealed?e.scaleFactor*Ee.secretCardNumberWrapperWidth:l[0]}px;
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
&:hover {
|
|
60
60
|
background: ${e=>e.isCardDetailErrored?"transparent":d.neutralGrey5Light};
|
|
61
61
|
border-radius: ${a.sp1};
|
|
62
62
|
}
|
|
63
|
-
`,
|
|
64
|
-
min-height: ${e=>e.secretRevealed?e.scaleFactor*
|
|
65
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*
|
|
63
|
+
`,rn=r.div`
|
|
64
|
+
min-height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:l[0]}px;
|
|
65
|
+
height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:l[0]}px;
|
|
66
66
|
width: ${e=>e.secretRevealed?"100%":a.sp0};
|
|
67
67
|
overflow: hidden;
|
|
68
68
|
position: relative;
|
|
69
|
-
`,
|
|
69
|
+
`,on=r.div`
|
|
70
70
|
display: ${e=>e.showSecretInfo?"flex":"none"};
|
|
71
71
|
height: ${e=>e.secretRevealed?"unset":a.sp0};
|
|
72
72
|
min-height: ${e=>e.secretRevealed?"unset":a.sp0};
|
|
73
|
-
width: ${e=>e.secretRevealed?
|
|
73
|
+
width: ${e=>e.secretRevealed?Ee.secretCVVWrapperWidth:l[0]}px;
|
|
74
74
|
position: relative;
|
|
75
75
|
&:hover {
|
|
76
76
|
background: ${e=>e.isCardDetailErrored?"transparent":d.neutralGrey5Light};
|
|
77
77
|
border-radius: ${a.sp1};
|
|
78
78
|
}
|
|
79
|
-
`,
|
|
80
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*
|
|
81
|
-
width: ${e=>e.secretRevealed?
|
|
79
|
+
`,nn=r.div`
|
|
80
|
+
height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:l[0]}px;
|
|
81
|
+
width: ${e=>e.secretRevealed?Ee.secretCVVWrapperWidth*e.scaleFactor:a.sp0};
|
|
82
82
|
overflow: hidden;
|
|
83
|
-
`,
|
|
83
|
+
`,sn=r.div`
|
|
84
84
|
position: relative;
|
|
85
85
|
padding: ${a.sp0} ${a.sp1};
|
|
86
86
|
&:hover {
|
|
87
87
|
background: ${e=>e.secretRevealed?d.neutralGrey5Light:"transparent"};
|
|
88
88
|
border-radius: ${a.sp1};
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
91
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*
|
|
90
|
+
`,dn=r.div`
|
|
91
|
+
height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:l[0]}px;
|
|
92
92
|
width: ${e=>e.secretRevealed?"inherit":a.sp0};
|
|
93
93
|
position: absolute;
|
|
94
94
|
top: ${a.sp0};
|
|
95
95
|
overflow: hidden;
|
|
96
96
|
background: transparent;
|
|
97
97
|
cursor: pointer;
|
|
98
|
-
`,
|
|
99
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*
|
|
98
|
+
`,cn=r.div`
|
|
99
|
+
height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:l[0]}px;
|
|
100
100
|
width: ${e=>e.secretRevealed?"inherit":a.sp0};
|
|
101
101
|
position: absolute;
|
|
102
|
-
top: ${e=>e.scaleFactor*
|
|
102
|
+
top: ${e=>e.scaleFactor*Ee.cardNumberCopyBtnTop}px;
|
|
103
103
|
overflow: hidden;
|
|
104
104
|
background: transparent;
|
|
105
105
|
cursor: pointer;
|
|
106
|
-
`,
|
|
106
|
+
`,ln=r.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
flex-direction: column;
|
|
109
109
|
padding: ${a.sp4} ${a.sp0} ${a.sp4} ${a.sp5};
|
|
110
110
|
width: 75%;
|
|
111
111
|
gap: ${a.sp4};
|
|
112
|
-
`,
|
|
112
|
+
`,hn=r.div`
|
|
113
113
|
position: relative;
|
|
114
114
|
width: max-content;
|
|
115
115
|
`,Zt=r(ge)`
|
|
@@ -118,65 +118,65 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
118
118
|
position: relative;
|
|
119
119
|
font-size: ${e=>Va.CardInfoTitleSize.valuePx(e.windowSize)};
|
|
120
120
|
line-height: ${e=>Va.CardInfoTitleLineHeight.valuePx(e.windowSize)};
|
|
121
|
-
`,
|
|
121
|
+
`,pn=r(Dt)`
|
|
122
122
|
display: ${e=>e.showSecretInfo===!0?"none":"block"};
|
|
123
123
|
padding-left: ${a.sp1};
|
|
124
124
|
color: ${e=>e.isCardDetailFetching?e.theme.colors.grey1:e.theme.colors.brandColorOnyx};
|
|
125
125
|
opacity: 0.7;
|
|
126
|
-
margin-top: ${e=>
|
|
126
|
+
margin-top: ${e=>Ee.maskedCardNumberMarginTop.valuePx(e.windowSize)};
|
|
127
127
|
margin-left: -2px;
|
|
128
|
-
font-size: ${e=>e.scaleFactor*
|
|
129
|
-
line-height: ${e=>e.scaleFactor*
|
|
128
|
+
font-size: ${e=>e.scaleFactor*_.chargeCardNumberText.fontSizeValue}px;
|
|
129
|
+
line-height: ${e=>e.scaleFactor*_.chargeCardNumberText.lineHeightValue}px;
|
|
130
130
|
-webkit-font-smoothing: initial;
|
|
131
131
|
-moz-osx-font-smoothing: initial;
|
|
132
132
|
word-wrap: "break-word";
|
|
133
|
-
`,
|
|
133
|
+
`,un=r.div`
|
|
134
134
|
position: relative;
|
|
135
135
|
display: flex;
|
|
136
136
|
flex-direction: row;
|
|
137
137
|
justify-content: flex-start;
|
|
138
138
|
gap: ${a.sp4};
|
|
139
|
-
`,
|
|
139
|
+
`,mn=r.div`
|
|
140
140
|
display: flex;
|
|
141
141
|
flex-direction: column;
|
|
142
142
|
margin-right: ${a.sp5};
|
|
143
|
-
`,
|
|
143
|
+
`,gn=r(Dt)`
|
|
144
144
|
display: ${e=>e.showSecretInfo?"none":"block"};
|
|
145
145
|
padding-left: ${a.sp1};
|
|
146
146
|
opacity: 0.7;
|
|
147
147
|
color: ${e=>e.isCardDetailFetching?e.theme.colors.grey1:e.theme.colors.brandColorOnyx};
|
|
148
|
-
font-size: ${e=>e.scaleFactor*
|
|
149
|
-
line-height: ${e=>e.scaleFactor*
|
|
148
|
+
font-size: ${e=>e.scaleFactor*_.chargeCardNumberText.fontSizeValue}px;
|
|
149
|
+
line-height: ${e=>e.scaleFactor*_.chargeCardNumberText.lineHeightValue}px;
|
|
150
150
|
-webkit-font-smoothing: initial;
|
|
151
151
|
-moz-osx-font-smoothing: initial;
|
|
152
152
|
word-wrap: "break-word";
|
|
153
|
-
`,
|
|
153
|
+
`,Cn=r.div`
|
|
154
154
|
display: flex;
|
|
155
155
|
flex-direction: column;
|
|
156
|
-
`,
|
|
156
|
+
`,fn=r(Dt)`
|
|
157
157
|
color: ${e=>e.isCardDetailFetching?e.theme.colors.grey1:e.theme.colors.brandColorOnyx};
|
|
158
158
|
opacity: 0.7;
|
|
159
|
-
font-size: ${e=>e.scaleFactor*
|
|
160
|
-
line-height: ${e=>e.scaleFactor*
|
|
159
|
+
font-size: ${e=>e.scaleFactor*_.chargeCardNumberText.fontSizeValue}px;
|
|
160
|
+
line-height: ${e=>e.scaleFactor*_.chargeCardNumberText.lineHeightValue}px;
|
|
161
161
|
-webkit-font-smoothing: initial;
|
|
162
162
|
-moz-osx-font-smoothing: initial;
|
|
163
163
|
word-wrap: "break-word";
|
|
164
|
-
`,
|
|
164
|
+
`,wn=r(Dt)`
|
|
165
165
|
display: ${e=>e.secretRevealed?"block":"none"};
|
|
166
166
|
color: ${e=>e.theme.colors.brandColorOnyx};
|
|
167
167
|
border-radius: ${a.sp1};
|
|
168
168
|
opacity: 0.7;
|
|
169
169
|
padding-left: ${e=>e.secretRevealed===!0?a.sp0:a.sp1};
|
|
170
|
-
font-size: ${e=>e.scaleFactor*
|
|
171
|
-
line-height: ${e=>e.scaleFactor*
|
|
170
|
+
font-size: ${e=>e.scaleFactor*_.chargeCardNumberText.fontSizeValue}px;
|
|
171
|
+
line-height: ${e=>e.scaleFactor*_.chargeCardNumberText.lineHeightValue}px;
|
|
172
172
|
-webkit-font-smoothing: initial;
|
|
173
173
|
-moz-osx-font-smoothing: initial;
|
|
174
174
|
word-wrap: "break-word";
|
|
175
|
-
`,
|
|
175
|
+
`,xn=r(gt)`
|
|
176
176
|
height: ${a.sp3};
|
|
177
177
|
width: ${a.sp3};
|
|
178
178
|
color: ${d.success};
|
|
179
|
-
`,
|
|
179
|
+
`,bn=r.div`
|
|
180
180
|
position: absolute;
|
|
181
181
|
display: flex;
|
|
182
182
|
align-items: center;
|
|
@@ -184,32 +184,32 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
184
184
|
width: 100%;
|
|
185
185
|
justify-content: center;
|
|
186
186
|
z-index: 1;
|
|
187
|
-
`,
|
|
187
|
+
`,Sn=r(ge)`
|
|
188
188
|
color: ${d.primaryDark};
|
|
189
189
|
padding: 2px ${a.sp2};
|
|
190
190
|
background-color: ${d.blackColor};
|
|
191
|
-
`,{common:
|
|
191
|
+
`,{common:yn,spendManagement:{chargeCard:{cardDetails:ve}}}=ke.getLocalizedStrings(),xe={chargeCardWidth:384,chargeCardHeight:240,cardLoadingShineWidth:200,cardLoadingShineHeight:240,zeniLogoWidth:l[6],zeniLogoHeight:l[6],visaLogoWidth:l[6],visaLogoHeight:13,cardTintIconWidth:277,cardTintIconHeight:242,colorPaletteLeftTransitionValue:-350,rightSectionWidth:384,rightSectionHeight:240,cardContainerContentGap:new T(l[4],l[4],l[4],l[3])},Or=({isChargeCardAdmin:e,chargeCardDetailView:i,productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,isOwnCard:g,vgsVaultId:m,showSecretInfo:x,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,chargeCardCashbackDetailState:y,creditAccount:k,creditAccountRepayment:L,isShowingInDrawer:p,isSandboxEnv:E,isCardDetailErrored:S,signedInUserToken:O,selectedColor:H,cardDetailsFetchState:v,setCardDetailsFetchState:q,setIsCardDetailErrored:J,setShowSecretInfo:U,setSecretRevealed:D,setShowPhoneNumberForOtp:oe,isCardDetailFetching:K,handleColorCodeClick:ne,onFireOnClickAnalytics:N,onUnlockChargeCard:Z})=>{const[W,ae]=o.useState(!1),[Q,re]=o.useState(!1),[se,z]=o.useState(!1),[de,G]=o.useState(!1),[$,Y]=o.useState(!1),[B,le]=o.useState(!1),[A,P]=o.useState(()=>{const fe=i.chargeCard?.status.code;return fe==="locked"||fe==="closed"||fe==="closed_by_customer"}),[ce,ie]=o.useState(!1),[I,je]=o.useState(!1),Ce=o.useRef(void 0),Re=i.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:te}=xr(),ee=Ie(),M=p?.75:ee==="small"?.85:1,be=i.lockChargeCardsFetchState.fetchState,Ae=et(be),me=i.unlockChargeCardsFetchState.fetchState,He=et(me),qe=i.closeChargeCardsFetchState.fetchState,at=et(qe),pe=i.chargeCard?.status.code==="locked",F=i.chargeCard?.status.code==="closed"||i.chargeCard?.status.code==="closed_by_customer",[he]=Wt("UnlockCard"),[R]=Wt("LockCard"),[Ye]=Wt("CloseCard");o.useEffect(()=>{if(!(Q&&pe)){z(!1);return}const fe=setTimeout(()=>{z(!0)},400);return()=>clearTimeout(fe)},[Q,pe]),o.useEffect(()=>{(pe||F)&&!A&&(P(!0),ie(!1))},[pe,F]),o.useEffect(()=>{Ae==="In-Progress"&&be==="Completed"&&(Ce.current&&clearTimeout(Ce.current),G(!1),P(!1),ie(!0),setTimeout(()=>{G(!0)},0),Ce.current=setTimeout(()=>{G(!1),P(!0),re(!1)},1e3))},[be,Ae]),o.useEffect(()=>{He==="In-Progress"&&me==="Completed"&&(Ce.current&&clearTimeout(Ce.current),je(!0),Y(!1),setTimeout(()=>{Y(!0)},0),Ce.current=setTimeout(()=>{Y(!1),P(!1),je(!1)},1e3))},[me,He]),o.useEffect(()=>{at==="In-Progress"&&qe==="Completed"&&(Ce.current&&clearTimeout(Ce.current),le(!1),P(!1),ie(!0),setTimeout(()=>{le(!0)},0),Ce.current=setTimeout(()=>{le(!1),P(!0)},1e3))},[qe,at]);const ze=te?ve.tapCardCopyText:ve.scanNowAndAddToWallet,dt=te?ve.tapCardCopyText:t.jsxs(jn,{children:[t.jsx(Xn,{}),ve.clickTheCardToFetchDetailsText]}),Pe=i.chargeCard?.isLockedByAdmin??!1,ft=ee==="small"?ve.tapCardCopyText:ve.clickTheCardToCopyDetailsText,ct=ee==="small"?ve.tapCardCopyText:ve.clickTheCardToFetchDetailsText,wt=p?ze:ft,xt=p?dt:ct,Me=K(v)||i.updateFetchState.fetchState==="In-Progress"||i.unlockChargeCardsFetchState.fetchState==="In-Progress",lt=(v.cvv!==!0||v.number!==!0)&&g,Te=!!i.chargeCard?.type.code.includes("debit");return t.jsxs(En,{windowSize:ee,scaleFactor:M,children:[t.jsxs(Rn,{isCardLocked:pe,isChargeCardAdmin:e,isLockedByAdmin:Pe,unlockFetchState:i.unlockChargeCardsFetchState.fetchState,onClick:fe=>{fe.stopPropagation(),pe&&me!=="In-Progress"&&(e||!Pe)&&Z(e)},onMouseEnter:()=>{(e||!Pe)&&me!=="In-Progress"&&re(!0)},onMouseLeave:()=>{(e||!Pe)&&me!=="In-Progress"&&re(!1)},children:[c&&p?t.jsxs(t.Fragment,{children:[t.jsx(Zn,{}),t.jsx(Gn,{}),t.jsx(qn,{}),t.jsx(Yn,{})]}):null,t.jsx(zn,{play:A,animate:ce,fadeOut:I,unlockInProgress:me==="In-Progress"||I||He==="In-Progress"&&me==="Completed"}),$&&he!=null?t.jsx(_t,{style:{width:a.sp9,height:a.sp9,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,backgroundColor:d.lockCardOverlayBackground,borderRadius:a.sp11},animationData:he,loop:!1,play:$,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):B&&Ye!=null?t.jsx(_t,{style:{width:56,height:56,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:Ye,loop:!1,play:B,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):A?F?t.jsx(Bn,{}):me==="In-Progress"?t.jsx(Vn,{}):I||He==="In-Progress"&&me==="Completed"?null:t.jsx(Nn,{isHovered:Q&&pe,children:t.jsxs(Hn,{isHovered:Q&&pe,children:[t.jsx(Hr,{}),t.jsx(On,{isVisible:Q&&pe,shouldEnterLayout:se,children:ve.moreOptions.unlock})]})}):de&&R!=null?t.jsx(_t,{style:{width:72,height:72,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:R,loop:!1,play:de,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,Re.includes("virtual")?t.jsxs(Pn,{isShowingInDrawer:p,isOwnCard:g,scaleFactor:M,bgColor:H?.toString(),showColorPalette:W,isDebitCard:Te,"data-testid":X("virtual-charge-card-detail"),onClick:()=>{W===!1&&g===!0&&K(v)===!1&&me!=="In-Progress"&&pe===!1&&Ra({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:N,setShowSecretInfo:U})},enableClick:lt&&!pe&&!F||pe&&me!=="In-Progress",cardDetailsFetchState:Me||i.chargeCard?.cardColorCode===void 0,children:[t.jsx(Na,{scaleFactor:M,shouldAppear:Me||i.chargeCard?.cardColorCode===void 0}),t.jsx(Zo,{leftTransitionValue:M*xe.colorPaletteLeftTransitionValue,hasBorderShadow:!1,tickStyles:{width:"12px",height:"12px"},colorInState:i.chargeCard?.cardColorCode!=null?new Qe(i.chargeCard.cardColorCode):void 0,styles:{height:"100%",maxWidth:"78%",top:p?"unset":a.sp0,left:W?a.sp0:`${M*xe.colorPaletteLeftTransitionValue}px`},coloredCircleStyles:{width:a.sp4,height:a.sp4,margin:"unset"},colorPaletteTitleStyles:{padding:`${a.sp5} ${a.sp7} ${a.sp3} ${a.sp5}`},closeStyles:{width:a.sp3,height:a.sp3},ColorListStyles:{gap:a.sp3},isColorPaletteVisible:W,toggleColorPaletteVisibility:fe=>{ae(fe)},handleColorClick:(fe,ht)=>{ne(fe,ht),ht&&ae(!1)}}),t.jsx(Un,{scaleFactor:M}),t.jsx(Oa,{productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,setSecretRevealed:D,onFireOnClickAnalytics:N,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:v,setCardDetailsFetchState:q,isCardDetailErrored:S,setIsCardDetailErrored:J,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,creditAccountRepayment:L,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:k,chargeCardCashbackDetailState:y,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:p?"addToWalletDrawer":"cardDetail"}),t.jsxs(Ba,{children:[t.jsxs(Wn,{children:[t.jsx(Wa,{scaleFactor:M}),t.jsx(Tn,{onClick:fe=>{fe.stopPropagation(),g&&ae(!W)},"data-testid":X("card-color-selector"),children:g?t.jsx(Qt,{enterDelay:600,title:ve.cardColours,placement:"left",children:t.jsx(Ha,{isShowingInDrawer:p})}):t.jsx(Ha,{isShowingInDrawer:p})})]}),t.jsx(In,{scaleFactor:M})]})]}):t.jsxs(Jn,{scaleFactor:M,enableClick:lt&&!pe&&!F||pe&&me!=="In-Progress",isOwnCard:g,isShowingInDrawer:p,onClick:()=>{g===!0&&pe===!1&&me!=="In-Progress"&&K(v)===!1&&Ra({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:N,setShowSecretInfo:U})},"data-testid":X("physical-charge-card-detail"),children:[t.jsx(Na,{scaleFactor:M,shouldAppear:Me}),t.jsxs(Kn,{flipCard:c,children:[t.jsx(Qn,{children:t.jsx($r,{scaleFactor:M,isClickable:lt,isLoading:Me,isDebitCard:Te})}),x?t.jsxs(es,{isDebitCard:Te,children:[t.jsx(Oa,{productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,setSecretRevealed:D,onFireOnClickAnalytics:N,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:v,setCardDetailsFetchState:q,isCardDetailErrored:S,setIsCardDetailErrored:J,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:i.creditAccount,creditAccountRepayment:L,chargeCardCashbackDetailState:y,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:p?"addToWalletDrawer":"cardDetail"}),t.jsx(Ba,{children:t.jsx(_n,{children:t.jsx(Wa,{scaleFactor:M})})})]}):null]})]})]}),F?t.jsx($n,{children:ve.cardClosedMessage}):Pe&&!e?t.jsx(vn,{children:ve.cardLockedByAdminMessage}):pe?t.jsx(Gt,{children:ve.cardLockedMessage}):g===!0&&!Me?v.cvv===!0&&v.number===!0?t.jsx(Mn,{children:yn.loading}):S?t.jsx(kn,{}):t.jsx(Gt,{children:c?wt:xt}):Me?t.jsx(Gt,{children:ve.loading}):null]})},$n=r(ge)`
|
|
192
192
|
color: ${d.important};
|
|
193
|
-
`,
|
|
193
|
+
`,vn=r(ge)`
|
|
194
194
|
color: ${e=>e.theme.colors.primary};
|
|
195
|
-
|
|
195
|
+
`,kn=()=>t.jsxs(An,{children:[t.jsx(Ln,{}),t.jsx(Dn,{children:ve.failedToFetchCardWebText})]}),jn=r.div`
|
|
196
196
|
display: flex;
|
|
197
197
|
align-items: center;
|
|
198
198
|
gap: ${a.sp2};
|
|
199
|
-
`,
|
|
199
|
+
`,In=r(no)`
|
|
200
200
|
width: ${e=>e.scaleFactor*xe.visaLogoWidth}px;
|
|
201
201
|
height: ${e=>e.scaleFactor*xe.visaLogoHeight}px;
|
|
202
|
-
`,
|
|
202
|
+
`,Ln=r(po)`
|
|
203
203
|
width: ${a.sp3};
|
|
204
204
|
height: ${a.sp3};
|
|
205
205
|
color: ${d.alert};
|
|
206
|
-
`,
|
|
206
|
+
`,Dn=r(ge)`
|
|
207
207
|
color: ${d.alert};
|
|
208
|
-
`,
|
|
208
|
+
`,An=r.div`
|
|
209
209
|
display: flex;
|
|
210
210
|
align-items: center;
|
|
211
211
|
gap: ${a.sp1};
|
|
212
|
-
`,
|
|
212
|
+
`,Tn=r.div`
|
|
213
213
|
border-radius: 50%;
|
|
214
214
|
display: flex;
|
|
215
215
|
justify-content: center;
|
|
@@ -220,7 +220,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
220
220
|
height: ${e=>e.isShowingInDrawer?7:10}px;
|
|
221
221
|
border: 1px solid ${d.backgroundThemeLight};
|
|
222
222
|
border-radius: 50%;
|
|
223
|
-
`,
|
|
223
|
+
`,En=r.div`
|
|
224
224
|
min-height: ${e=>`calc(${e.scaleFactor*xe.rightSectionHeight}px + ${a.sp2})`};
|
|
225
225
|
min-width: ${e=>`calc(${e.scaleFactor*xe.rightSectionWidth}px + ${a.sp2})`};
|
|
226
226
|
display: flex;
|
|
@@ -230,7 +230,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
230
230
|
gap: ${e=>xe.cardContainerContentGap.valuePx(e.windowSize)};
|
|
231
231
|
`,Gt=r(ge)`
|
|
232
232
|
color: ${e=>e.theme.colors.primary};
|
|
233
|
-
`,
|
|
233
|
+
`,Fn=zr`
|
|
234
234
|
0% {
|
|
235
235
|
transform: translateX(-100%);
|
|
236
236
|
}
|
|
@@ -242,7 +242,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
242
242
|
overflow: hidden;
|
|
243
243
|
border-radius: ${a.sp2};
|
|
244
244
|
cursor: ${e=>e.isCardLocked&&e.unlockFetchState!=="In-Progress"&&(e.isChargeCardAdmin||!e.isLockedByAdmin)?"pointer":"default"};
|
|
245
|
-
`,
|
|
245
|
+
`,zn=r.div`
|
|
246
246
|
position: absolute;
|
|
247
247
|
top: 50%;
|
|
248
248
|
left: 50%;
|
|
@@ -267,7 +267,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
267
267
|
height: ${e=>e.scaleFactor*xe.cardLoadingShineHeight}px;
|
|
268
268
|
position: absolute;
|
|
269
269
|
transform: translateX(-180%);
|
|
270
|
-
animation: ${
|
|
270
|
+
animation: ${Fn} 1.5s infinite;
|
|
271
271
|
background: ${we`linear-gradient(to right, transparent 0%, ${d.backgroundThemeLight} 50%, transparent 100%)`};
|
|
272
272
|
`,Ba=r.div`
|
|
273
273
|
display: flex;
|
|
@@ -276,7 +276,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
276
276
|
align-items: center;
|
|
277
277
|
width: 25%;
|
|
278
278
|
padding: ${a.sp4} ${a.sp0};
|
|
279
|
-
`,
|
|
279
|
+
`,Pn=r.div`
|
|
280
280
|
background: ${e=>e.cardDetailsFetchState?d.chargeCardFaded:e.bgColor??(e.isDebitCard?e.theme.colors.graphColor15:e.theme.colors.brandColorJade)};
|
|
281
281
|
border-radius: ${a.sp2};
|
|
282
282
|
width: ${e=>e.scaleFactor*xe.chargeCardWidth}px;
|
|
@@ -317,21 +317,21 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
317
317
|
pointer-events: none;
|
|
318
318
|
`:null};
|
|
319
319
|
}
|
|
320
|
-
`,
|
|
320
|
+
`,Mn=r(ge)`
|
|
321
321
|
color: ${e=>e.theme.colors.primary};
|
|
322
322
|
text-transform: capitalize;
|
|
323
|
-
`,Wa=r(
|
|
323
|
+
`,Wa=r(oo)`
|
|
324
324
|
height: ${e=>e.scaleFactor*xe.zeniLogoHeight}px;
|
|
325
325
|
width: ${e=>e.scaleFactor*xe.zeniLogoWidth}px;
|
|
326
326
|
color: ${d.neutralGrey5Light};
|
|
327
|
-
`,
|
|
327
|
+
`,Hr=r(ro)`
|
|
328
328
|
width: ${a.sp5};
|
|
329
329
|
height: ${a.sp5};
|
|
330
330
|
min-width: ${a.sp5};
|
|
331
331
|
min-height: ${a.sp5};
|
|
332
332
|
box-sizing: content-box;
|
|
333
333
|
color: ${d.neutralGrey5Light};
|
|
334
|
-
`,
|
|
334
|
+
`,Vn=r(Hr)`
|
|
335
335
|
position: absolute;
|
|
336
336
|
top: 50%;
|
|
337
337
|
left: 50%;
|
|
@@ -340,7 +340,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
340
340
|
padding: ${a.sp3};
|
|
341
341
|
border-radius: ${a.sp11};
|
|
342
342
|
background: ${d.lockCardOverlayBackground};
|
|
343
|
-
`,
|
|
343
|
+
`,On=r(Ar)`
|
|
344
344
|
color: ${d.neutralGrey5Light};
|
|
345
345
|
white-space: nowrap;
|
|
346
346
|
opacity: ${e=>e.isVisible?1:0};
|
|
@@ -361,12 +361,12 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
361
361
|
flex 400ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
362
362
|
max-width 400ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
363
363
|
margin-left 400ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
364
|
-
`,
|
|
364
|
+
`,Hn=r.div`
|
|
365
365
|
display: flex;
|
|
366
366
|
align-items: center;
|
|
367
367
|
gap: 0;
|
|
368
368
|
position: relative;
|
|
369
|
-
`,
|
|
369
|
+
`,Nn=r.div`
|
|
370
370
|
display: flex;
|
|
371
371
|
align-items: center;
|
|
372
372
|
justify-content: center;
|
|
@@ -381,7 +381,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
381
381
|
z-index: 2;
|
|
382
382
|
transition: background 400ms ease-in-out;
|
|
383
383
|
pointer-events: none;
|
|
384
|
-
`,
|
|
384
|
+
`,Bn=r(ao)`
|
|
385
385
|
position: absolute;
|
|
386
386
|
top: 50%;
|
|
387
387
|
left: 50%;
|
|
@@ -393,48 +393,48 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
393
393
|
background: ${d.importantLight};
|
|
394
394
|
padding: 12px;
|
|
395
395
|
border-radius: 50%;
|
|
396
|
-
`,
|
|
396
|
+
`,Wn=r.div`
|
|
397
397
|
display: flex;
|
|
398
398
|
flex-direction: column;
|
|
399
399
|
gap: 35px;
|
|
400
|
-
`,
|
|
400
|
+
`,_n=r.div`
|
|
401
401
|
display: flex;
|
|
402
402
|
flex-direction: column;
|
|
403
403
|
gap: ${a.sp4};
|
|
404
|
-
`,
|
|
404
|
+
`,Un=r(io)`
|
|
405
405
|
position: absolute;
|
|
406
406
|
width: ${e=>e.scaleFactor*xe.cardTintIconWidth}px;
|
|
407
407
|
height: ${e=>e.scaleFactor*xe.cardTintIconHeight}px;
|
|
408
408
|
top: -1px;
|
|
409
|
-
`,
|
|
409
|
+
`,Zn=r(Do)`
|
|
410
410
|
height: 36px;
|
|
411
411
|
width: 36px;
|
|
412
412
|
position: absolute;
|
|
413
413
|
right: -${a.sp3};
|
|
414
414
|
top: -${a.sp3};
|
|
415
|
-
`,
|
|
415
|
+
`,Gn=r(Ao)`
|
|
416
416
|
height: 36px;
|
|
417
417
|
width: 36px;
|
|
418
418
|
position: absolute;
|
|
419
419
|
left: -${a.sp3};
|
|
420
420
|
top: -${a.sp3};
|
|
421
|
-
`,
|
|
421
|
+
`,qn=r(To)`
|
|
422
422
|
height: 36px;
|
|
423
423
|
width: 36px;
|
|
424
424
|
position: absolute;
|
|
425
425
|
right: -${a.sp3};
|
|
426
426
|
bottom: -${a.sp3};
|
|
427
|
-
`,
|
|
427
|
+
`,Yn=r(Eo)`
|
|
428
428
|
height: 36px;
|
|
429
429
|
width: 36px;
|
|
430
430
|
position: absolute;
|
|
431
431
|
left: -${a.sp3};
|
|
432
432
|
bottom: -${a.sp3};
|
|
433
|
-
`,
|
|
433
|
+
`,Xn=r(Dr)`
|
|
434
434
|
color: ${e=>e.theme.colors.hero};
|
|
435
435
|
width: ${a.sp3};
|
|
436
436
|
height: ${a.sp3};
|
|
437
|
-
`,
|
|
437
|
+
`,Jn=r.div`
|
|
438
438
|
cursor: ${e=>e.enableClick?"pointer":"not-allowed"};
|
|
439
439
|
width: ${e=>e.scaleFactor*xe.chargeCardWidth}px;
|
|
440
440
|
height: ${e=>e.scaleFactor*xe.chargeCardHeight}px;
|
|
@@ -465,20 +465,20 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
465
465
|
pointer-events: none;
|
|
466
466
|
`:null};
|
|
467
467
|
}
|
|
468
|
-
`,
|
|
468
|
+
`,Kn=r.div`
|
|
469
469
|
position: relative;
|
|
470
470
|
width: 100%;
|
|
471
471
|
height: 100%;
|
|
472
472
|
transition: transform 0.8s;
|
|
473
473
|
transform-style: preserve-3d;
|
|
474
474
|
transform: ${e=>e.flipCard?"rotateY(180deg)":"rotateY(0deg)"};
|
|
475
|
-
`,
|
|
475
|
+
`,Qn=r.div`
|
|
476
476
|
position: absolute;
|
|
477
477
|
width: 100%;
|
|
478
478
|
height: 100%;
|
|
479
479
|
-webkit-backface-visibility: hidden; /* Safari */
|
|
480
480
|
backface-visibility: hidden;
|
|
481
|
-
`,
|
|
481
|
+
`,es=r.div`
|
|
482
482
|
position: absolute;
|
|
483
483
|
background: ${e=>e.isDebitCard?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJade};
|
|
484
484
|
width: inherit;
|
|
@@ -497,22 +497,22 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
497
497
|
background-position-x: right;
|
|
498
498
|
background-position-y: bottom;
|
|
499
499
|
transform: rotateY(180deg);
|
|
500
|
-
`,$e={contentContainerPadding:new T(l[3],l[4],l[8],l[8]),rightSectionWidth:new T(343,343,343,384),rightSectionHeight:new T(214,214,214,240),cardContainerContentGap:new T(l[2],l[2],l[2],l[3]),remainingAmountContainerGap:new T(l[1],l[1]),leftRightSectionGap:new T(l[0],54,54,57),cardBalanceSectionMarginBottom:new T(l[4],l[4]),barRadius:new T(2,l[2]),topSectionPaddingBottom:new T(l[4],19),rightSectionGap:new T(l[4],l[3]),addressSectionHeight:new T(109,74),addressSectionGap:new T(l[2],l[4]),navigationMarginBottom:new T(l[4],l[0]),addressValueGap:new T(l[0],l[1]),ownerWebMinWidth:new T(110,187)},ra={remainingAmount:new Pa("largeRegular","largeMedium"),spentAmount:new Pa("h5Regular","h5Regular")},{common:_e,dateFormat:ut,spendManagement:Qn}=ke.getLocalizedStrings(),Ze=Qn.chargeCard,es=({chargeCardDetailView:e,spent:i,controllerEmails:s,chargeCardCashbackDetailState:u,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,creditAccount:m,creditAccountRepayment:x,productInformation:b,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:I,classListFetchState:p,cardOwnerName:E,secretRevealed:S,appleWalletLink:O,googleWalletLink:H,isCardNotPending:v,isOwnerNameCopied:Y,isAddressCopied:K,addressToShow:_,isOwnCard:D,vgsVaultId:oe,showSecretInfo:Q,isSandboxEnv:ne,isCardDetailErrored:N,signedInUserToken:Z,selectedColor:W,showUpdateSpendLimitAction:ae,setShowPhoneNumberPopup:ee,setShowChangeSpendLimitPopup:re,cardDetailsFetchState:se,setCardDetailsFetchState:P,setIsCardDetailErrored:de,setShowSecretInfo:G,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:B,onFireOnClickAnalytics:le,onOwnerNameCopyClick:A,onAddressCopyClick:z,onUnlockChargeCard:ce,isDebitCard:ie})=>{const L=Le(),je=It().analytics,Ce=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate!=null?e.chargeCardConfig.rePaymentInfo.cardLimitResetDate.format(ut.visual.MMMDFormat):$o().startOf("month").add(1,"month").format(ut.visual.MMMDFormat),Fe=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:X}=Fi(),te=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),M=Lt(),be=At(M?.loggedInUserRoleMap);return t.jsxs(Cs,{windowSize:L,children:[t.jsxs(gs,{windowSize:L,children:[t.jsxs(fs,{windowSize:L,children:[t.jsx(os,{children:_e.texts.spent}),t.jsx(Ga,{children:t.jsx(ws,{windowSize:L,children:Ge("0,0.[00]",i)})}),t.jsx(js,{windowSize:L,children:t.jsx(Is,{style:{width:`${Fe}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(Ga,{children:[t.jsxs(Ls,{children:[t.jsxs(rs,{windowSize:L,children:[t.jsx(Ya,{windowSize:L,children:Ge("0,0.[00]",e.chargeCard.available)}),t.jsx(qa,{windowSize:L,children:_e.texts.remaining})]}),ae?t.jsxs(bs,{windowSize:L,children:[t.jsx(Ss,{children:Ze.updateSpendLimitPopup.unlockSpending}),t.jsx(ys,{onClick:()=>{as({chargeCardDetailView:e,classListFetchState:p,isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x,isDebitCard:ie,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,controllerEmails:s,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:I,analytics:je}),re(!0)},"data-testid":J("update-spend-limit-button"),children:Ze.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(xs,{windowSize:L,children:[t.jsxs(ns,{children:[t.jsx(Ya,{windowSize:L,children:Ge("0,0.[00]",e.chargeCard.limit)}),t.jsx(qa,{windowSize:L,children:Ze.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs($s,{children:[t.jsx(vs,{children:_e.texts.limitReset}),t.jsx(ks,{children:Ce})]}):null]})]}):null]}),t.jsx(ts,{chargeCardDetailView:e,classListFetchState:p,cardOwnerName:E,addressToShow:_,isAddressCopied:K,isOwnerNameCopied:Y,onOwnerNameCopyClick:A,onAddressCopyClick:z})]}),t.jsx(us,{windowSize:L,isOwnCard:D,children:L==="small"&&!D?null:t.jsxs(t.Fragment,{children:[t.jsx(ms,{windowSize:L,children:te?t.jsx($r,{}):t.jsx(Hr,{isChargeCardAdmin:be,chargeCardDetailView:e,productInformation:b,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,creditAccount:e.creditAccount,setShowSecretInfo:G,secretRevealed:S,isOwnCard:D,isShowingInDrawer:!1,vgsVaultId:oe,showSecretInfo:Q,isSandboxEnv:ne,controllerEmails:s,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,chargeCardCashbackDetailState:u,isCardDetailErrored:N,signedInUserToken:Z,selectedColor:W,cardDetailsFetchState:se,setCardDetailsFetchState:P,setIsCardDetailErrored:de,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:B,onFireOnClickAnalytics:le,setShowPhoneNumberForOtp:ee,onUnlockChargeCard:ce,creditAccountRepayment:x})}),!D&&e.chargeCard?.status.code!=="closed"&&e.chargeCard?.status.code!=="closed_by_customer"&&e.chargeCard?.status.code!=="locked"?t.jsx(is,{children:Ze.cardDetails.adminsCannotAccess}):null,L==="small"&&D&&v&&ie===!1?X?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:be,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:I,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x}),window.open(O,"_blank")}}):t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:be,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:I,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x}),window.open(H,"_blank")}}):null]})})]})},ts=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:s,addressToShow:u,isOwnerNameCopied:h,isAddressCopied:f,onOwnerNameCopyClick:c,onAddressCopyClick:g})=>{const m=Le(),x=tt(),[b,n]=o.useState(0),[C,w]=o.useState(!0),[j,y]=o.useState(!1),[k,I]=o.useState(!1),[p,E]=o.useState(!1);o.useEffect(()=>{const O=[setTimeout(()=>{n(1)},500),setTimeout(()=>{n(0),E(!0)},1e3),setTimeout(()=>{w(!1),E(!1)},2e3),setTimeout(()=>{w(!0),n(1)},2500),setTimeout(()=>{n(0),E(!0)},3e3),setTimeout(()=>{w(!1),E(!1)},4e3)];return()=>{O.forEach(clearTimeout)}},[]);const S=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(ss,{children:[t.jsxs(ds,{windowSize:m,children:[t.jsxs(cs,{shouldBounce:p,isActive:b==0,isAutoSlide:C,windowSize:m,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(Ua,{windowSize:m,onClick:c,"data-testid":J("owner-name-copy-click"),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(kt,{children:[Ze.cardDetails.owner,t.jsxs(er,{children:[t.jsx(Xa,{children:h===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:j})}),h||j?t.jsx(Ja,{children:h?_e.copyToClipBoard.copied:_e.copyToClipBoard.copy}):null]})]}),t.jsx(_a,{children:t.jsx(Yt,{children:s})})]}):null,u!=null?t.jsxs(Za,{windowSize:m,onClick:g,"data-testid":J("address-copy-click"),onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),children:[t.jsxs(kt,{children:[Ze.cardDetails.address,t.jsxs(er,{children:[t.jsx(Xa,{children:f===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:k})}),f||k?t.jsx(Ja,{children:f?_e.copyToClipBoard.copied:_e.copyToClipBoard.copy}):null]})]}),t.jsx(ps,{windowSize:m,children:t.jsx(eo,{address:u,isDisabled:"readonly",style:{padding:a.sp0,...U.smallRegular.cssObject,textTransform:"capitalize",alignItems:"flex-start",backgroundColor:x.colors.grey4,cursor:"pointer",flexDirection:m==="small"?"column":"row",gap:$e.addressValueGap.valuePx(m),textAlign:m==="small"?"left":"right"}})})]}):null]}),t.jsxs(ls,{isActive:b==1,isAutoSlide:C,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(Ua,{windowSize:m,children:[t.jsx(kt,{children:Ze.connectedAccount}),t.jsxs(hs,{children:[t.jsx(Ds,{children:t.jsx(As,{})}),t.jsx(Yt,{children:S})]})]}):null,t.jsxs(Za,{windowSize:m,children:[t.jsx(kt,{children:Ze.department}),t.jsx(_a,{children:t.jsx(Yt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(mt,{size:"Small",start:!0}):e.chargeCard?.department?.className??_e.strings.hyphen})})]})]})]}),t.jsx(ko,{numberOfDots:2,activeIndex:b,handleClick:n,style:{marginTop:"12px",marginBottom:$e.navigationMarginBottom.valuePx(m)},dotStyle:{width:a.sp2,height:a.sp2},spendManagementPromoCardActive:!0,promoColor:x.colors.primary,promoColorHover:x.colors.grey1})]})},as=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:s,creditAccount:u,creditAccountRepayment:h,isDebitCard:f,controllerEmails:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,cardIssuedByRoles:b,cardIssuedByDepartmentName:n,cardHolderRoles:C,cardHolderDepartmentName:w,analytics:j})=>{if(e.chargeCard!=null&&i==="Completed"&&e.transactionStatistics.fetchState==="Completed"&&(!s||u.fetchState==="Completed"&&h.fetchState==="Completed")&&(!f||e.depositAccountLimitFetchState.fetchState==="Completed")){const y=e.chargeCard.type.code.includes("physical")?e.chargeCard.cardActivationAttemptHistory[0]?.timestamp:e.chargeCard.createTime;j.trackCardsUpdateSpendLimitInitiated(c,g,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:Qi(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:pt(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:y?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name,cardSpentAmount:pt(e.chargeCard.balance.amount),cardAvailableLimit:pt(e.chargeCard.available.amount),cardUtilizationPercent:Ki(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:pt(Ji(e.chargeCard)),totalNumberOfDeclinedTransactions:e.transactionStatistics.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:e.transactionStatistics.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:e.transactionStatistics.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:e.transactionStatistics.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:e.transactionStatistics.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:e.transactionStatistics.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:za(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:b,cardIssuedByDepartment:n},{cardholderName:za(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:w},"Card Detail","Hyperlink",(e?.chargeCard?.recommendations??[]).map(k=>pt(k.creditLimit.amount)),m,x)}},rs=r.div`
|
|
500
|
+
`,$e={contentContainerPadding:new T(l[3],l[4],l[8],l[8]),rightSectionWidth:new T(343,343,343,384),rightSectionHeight:new T(214,214,214,240),cardContainerContentGap:new T(l[2],l[2],l[2],l[3]),remainingAmountContainerGap:new T(l[1],l[1]),leftRightSectionGap:new T(l[0],54,54,57),cardBalanceSectionMarginBottom:new T(l[4],l[4]),barRadius:new T(2,l[2]),topSectionPaddingBottom:new T(l[4],19),rightSectionGap:new T(l[4],l[3]),addressSectionHeight:new T(109,74),addressSectionGap:new T(l[2],l[4]),navigationMarginBottom:new T(l[4],l[0]),addressValueGap:new T(l[0],l[1]),ownerWebMinWidth:new T(110,187)},ra={remainingAmount:new za("largeRegular","largeMedium"),spentAmount:new za("h5Regular","h5Regular")},{common:Ue,dateFormat:ut,spendManagement:ts}=ke.getLocalizedStrings(),Ze=ts.chargeCard,as=({chargeCardDetailView:e,spent:i,controllerEmails:s,chargeCardCashbackDetailState:u,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,creditAccount:m,creditAccountRepayment:x,productInformation:b,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,classListFetchState:p,cardOwnerName:E,secretRevealed:S,appleWalletLink:O,googleWalletLink:H,isCardNotPending:v,isOwnerNameCopied:q,isAddressCopied:J,addressToShow:U,isOwnCard:D,vgsVaultId:oe,showSecretInfo:K,isSandboxEnv:ne,isCardDetailErrored:N,signedInUserToken:Z,selectedColor:W,showUpdateSpendLimitAction:ae,setShowPhoneNumberPopup:Q,setShowChangeSpendLimitPopup:re,cardDetailsFetchState:se,setCardDetailsFetchState:z,setIsCardDetailErrored:de,setShowSecretInfo:G,setSecretRevealed:$,isCardDetailFetching:Y,handleColorCodeClick:B,onFireOnClickAnalytics:le,onOwnerNameCopyClick:A,onAddressCopyClick:P,onUnlockChargeCard:ce,isDebitCard:ie})=>{const I=Ie(),je=Lt().analytics,Ce=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate!=null?e.chargeCardConfig.rePaymentInfo.cardLimitResetDate.format(ut.visual.MMMDFormat):vo().startOf("month").add(1,"month").format(ut.visual.MMMDFormat),Re=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:te}=Ri(),ee=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),M=It(),be=At(M?.loggedInUserRoleMap);return t.jsxs(ws,{windowSize:I,children:[t.jsxs(fs,{windowSize:I,children:[t.jsxs(xs,{windowSize:I,children:[t.jsx(ss,{children:Ue.texts.spent}),t.jsx(Ga,{children:t.jsx(bs,{windowSize:I,children:Ge("0,0.[00]",i)})}),t.jsx(Ls,{windowSize:I,children:t.jsx(As,{style:{width:`${Re}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(Ga,{children:[t.jsxs(Ds,{children:[t.jsxs(os,{windowSize:I,children:[t.jsx(qa,{windowSize:I,children:Ge("0,0.[00]",e.chargeCard.available)}),t.jsx(Ya,{windowSize:I,children:Ue.texts.remaining})]}),ae?t.jsxs(ys,{windowSize:I,children:[t.jsx($s,{children:Ze.updateSpendLimitPopup.unlockSpending}),t.jsx(vs,{onClick:()=>{is({chargeCardDetailView:e,classListFetchState:p,isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x,isDebitCard:ie,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,controllerEmails:s,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,analytics:je}),re(!0)},"data-testid":X("update-spend-limit-button"),children:Ze.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(Ss,{windowSize:I,children:[t.jsxs(ds,{children:[t.jsx(qa,{windowSize:I,children:Ge("0,0.[00]",e.chargeCard.limit)}),t.jsx(Ya,{windowSize:I,children:Ze.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs(ks,{children:[t.jsx(js,{children:Ue.texts.limitReset}),t.jsx(Is,{children:Ce})]}):null]})]}):null]}),t.jsx(rs,{chargeCardDetailView:e,classListFetchState:p,cardOwnerName:E,addressToShow:U,isAddressCopied:J,isOwnerNameCopied:q,onOwnerNameCopyClick:A,onAddressCopyClick:P})]}),t.jsx(gs,{windowSize:I,isOwnCard:D,children:I==="small"&&!D?null:t.jsxs(t.Fragment,{children:[t.jsx(Cs,{windowSize:I,children:ee?t.jsx($r,{}):t.jsx(Or,{isChargeCardAdmin:be,chargeCardDetailView:e,productInformation:b,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,creditAccount:e.creditAccount,setShowSecretInfo:G,secretRevealed:S,isOwnCard:D,isShowingInDrawer:!1,vgsVaultId:oe,showSecretInfo:K,isSandboxEnv:ne,controllerEmails:s,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,chargeCardCashbackDetailState:u,isCardDetailErrored:N,signedInUserToken:Z,selectedColor:W,cardDetailsFetchState:se,setCardDetailsFetchState:z,setIsCardDetailErrored:de,setSecretRevealed:$,isCardDetailFetching:Y,handleColorCodeClick:B,onFireOnClickAnalytics:le,setShowPhoneNumberForOtp:Q,onUnlockChargeCard:ce,creditAccountRepayment:x})}),!D&&e.chargeCard?.status.code!=="closed"&&e.chargeCard?.status.code!=="closed_by_customer"&&e.chargeCard?.status.code!=="locked"?t.jsx(ns,{children:Ze.cardDetails.adminsCannotAccess}):null,I==="small"&&D&&v&&ie===!1?te?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:be,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x}),window.open(O,"_blank")}}):t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:be,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x}),window.open(H,"_blank")}}):null]})})]})},rs=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:s,addressToShow:u,isOwnerNameCopied:h,isAddressCopied:f,onOwnerNameCopyClick:c,onAddressCopyClick:g})=>{const m=Ie(),x=tt(),[b,n]=o.useState(0),[C,w]=o.useState(!0),[j,y]=o.useState(!1),[k,L]=o.useState(!1),[p,E]=o.useState(!1);o.useEffect(()=>{const O=[setTimeout(()=>{n(1)},500),setTimeout(()=>{n(0),E(!0)},1e3),setTimeout(()=>{w(!1),E(!1)},2e3),setTimeout(()=>{w(!0),n(1)},2500),setTimeout(()=>{n(0),E(!0)},3e3),setTimeout(()=>{w(!1),E(!1)},4e3)];return()=>{O.forEach(clearTimeout)}},[]);const S=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(cs,{children:[t.jsxs(ls,{windowSize:m,children:[t.jsxs(hs,{shouldBounce:p,isActive:b==0,isAutoSlide:C,windowSize:m,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(_a,{windowSize:m,onClick:c,"data-testid":X("owner-name-copy-click"),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(kt,{children:[Ze.cardDetails.owner,t.jsxs(er,{children:[t.jsx(Xa,{children:h===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:j})}),h||j?t.jsx(Ja,{children:h?Ue.copyToClipBoard.copied:Ue.copyToClipBoard.copy}):null]})]}),t.jsx(Ua,{children:t.jsx(qt,{children:s})})]}):null,u!=null?t.jsxs(Za,{windowSize:m,onClick:g,"data-testid":X("address-copy-click"),onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:[t.jsxs(kt,{children:[Ze.cardDetails.address,t.jsxs(er,{children:[t.jsx(Xa,{children:f===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:k})}),f||k?t.jsx(Ja,{children:f?Ue.copyToClipBoard.copied:Ue.copyToClipBoard.copy}):null]})]}),t.jsx(ms,{windowSize:m,children:t.jsx(to,{address:u,isDisabled:"readonly",style:{padding:a.sp0,..._.smallRegular.cssObject,textTransform:"capitalize",alignItems:"flex-start",backgroundColor:x.colors.grey4,cursor:"pointer",flexDirection:m==="small"?"column":"row",gap:$e.addressValueGap.valuePx(m),textAlign:m==="small"?"left":"right"}})})]}):null]}),t.jsxs(ps,{isActive:b==1,isAutoSlide:C,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(_a,{windowSize:m,children:[t.jsx(kt,{children:Ze.connectedAccount}),t.jsxs(us,{children:[t.jsx(Ts,{children:t.jsx(Es,{})}),t.jsx(qt,{children:S})]})]}):null,t.jsxs(Za,{windowSize:m,children:[t.jsx(kt,{children:Ze.department}),t.jsx(Ua,{children:t.jsx(qt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(mt,{size:"Small",start:!0}):e.chargeCard?.department?.className??Ue.strings.hyphen})})]})]})]}),t.jsx(Io,{numberOfDots:2,activeIndex:b,handleClick:n,style:{marginTop:"12px",marginBottom:$e.navigationMarginBottom.valuePx(m)},dotStyle:{width:a.sp2,height:a.sp2},spendManagementPromoCardActive:!0,promoColor:x.colors.primary,promoColorHover:x.colors.grey1})]})},is=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:s,creditAccount:u,creditAccountRepayment:h,isDebitCard:f,controllerEmails:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,cardIssuedByRoles:b,cardIssuedByDepartmentName:n,cardHolderRoles:C,cardHolderDepartmentName:w,analytics:j})=>{if(e.chargeCard!=null&&i==="Completed"&&e.transactionStatistics.fetchState==="Completed"&&(!s||u.fetchState==="Completed"&&h.fetchState==="Completed")&&(!f||e.depositAccountLimitFetchState.fetchState==="Completed")){const y=e.chargeCard.type.code.includes("physical")?e.chargeCard.cardActivationAttemptHistory[0]?.timestamp:e.chargeCard.createTime;j.trackCardsUpdateSpendLimitInitiated(c,g,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:eo(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:pt(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:y?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name,cardSpentAmount:pt(e.chargeCard.balance.amount),cardAvailableLimit:pt(e.chargeCard.available.amount),cardUtilizationPercent:Qi(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:pt(Ki(e.chargeCard)),totalNumberOfDeclinedTransactions:e.transactionStatistics.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:e.transactionStatistics.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:e.transactionStatistics.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:e.transactionStatistics.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:e.transactionStatistics.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:e.transactionStatistics.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:Pa(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:b,cardIssuedByDepartment:n},{cardholderName:Pa(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:w},"Card Detail","Hyperlink",(e?.chargeCard?.recommendations??[]).map(k=>pt(k.creditLimit.amount)),m,x)}},os=r.div`
|
|
501
501
|
display: flex;
|
|
502
502
|
align-items: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"flex-start":"center"};
|
|
503
503
|
gap: ${e=>$e.remainingAmountContainerGap.valuePx(e.windowSize)};
|
|
504
504
|
flex-direction: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"column":"row"};
|
|
505
|
-
`,
|
|
505
|
+
`,ns=r(ge)`
|
|
506
506
|
color: ${e=>e.theme.colors.primary};
|
|
507
|
-
`,
|
|
507
|
+
`,ss=r(ge)`
|
|
508
508
|
color: ${e=>e.theme.colors.hero};
|
|
509
|
-
`,
|
|
509
|
+
`,ds=r.div`
|
|
510
510
|
display: flex;
|
|
511
511
|
align-items: end;
|
|
512
|
-
`,
|
|
512
|
+
`,cs=r.div`
|
|
513
513
|
width: 100%;
|
|
514
514
|
overflow: hidden;
|
|
515
|
-
`,
|
|
515
|
+
`,ls=r.div`
|
|
516
516
|
width: 100%;
|
|
517
517
|
gap: ${a.sp3};
|
|
518
518
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -522,7 +522,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
522
522
|
box-sizing: border-box;
|
|
523
523
|
position: relative;
|
|
524
524
|
height: ${e=>$e.addressSectionHeight.valuePx(e.windowSize)};
|
|
525
|
-
`,
|
|
525
|
+
`,hs=r.div`
|
|
526
526
|
display: flex;
|
|
527
527
|
justify-content: unset;
|
|
528
528
|
gap: ${e=>$e.addressSectionGap.valuePx(e.windowSize)};
|
|
@@ -533,7 +533,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
533
533
|
`};
|
|
534
534
|
transition: transform
|
|
535
535
|
${({isAutoSlide:e,shouldBounce:i})=>`${e?"0.5s":"0.3s"} ${i?"cubic-bezier(0.175, 0.885, 0.32, 1.125)":"ease-out"}`};
|
|
536
|
-
`,
|
|
536
|
+
`,ps=r.div`
|
|
537
537
|
display: flex;
|
|
538
538
|
justify-content: unset;
|
|
539
539
|
${({isActive:e,isAutoSlide:i})=>we`
|
|
@@ -543,22 +543,22 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
543
543
|
${({isAutoSlide:e,isActive:i})=>e&&i?"0.5s":"0.3s"}
|
|
544
544
|
ease-out;
|
|
545
545
|
gap: ${a.sp8};
|
|
546
|
-
`,
|
|
546
|
+
`,_a=r.div`
|
|
547
547
|
min-width: ${e=>$e.ownerWebMinWidth.valuePx(e.windowSize)};
|
|
548
548
|
cursor: pointer;
|
|
549
549
|
`,kt=r(ge)`
|
|
550
550
|
color: ${e=>e.theme.colors.hero};
|
|
551
551
|
display: flex;
|
|
552
552
|
align-items: center;
|
|
553
|
-
`,
|
|
553
|
+
`,Ua=r.div``,us=r.div`
|
|
554
554
|
display: flex;
|
|
555
555
|
align-items: flex-start;
|
|
556
556
|
gap: ${a.sp1};
|
|
557
|
-
`,
|
|
557
|
+
`,ms=r.div`
|
|
558
558
|
${({windowSize:e})=>e==="small"?we`
|
|
559
559
|
max-width: 220px;
|
|
560
560
|
`:null};
|
|
561
|
-
`,
|
|
561
|
+
`,qt=r(ge)`
|
|
562
562
|
color: ${e=>e.theme.colors.primary};
|
|
563
563
|
text-transform: capitalize;
|
|
564
564
|
`,Za=r.div`
|
|
@@ -567,14 +567,14 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
567
567
|
align-items: "baseline";
|
|
568
568
|
justify-content: center;
|
|
569
569
|
cursor: pointer;
|
|
570
|
-
`,
|
|
570
|
+
`,gs=r.div`
|
|
571
571
|
display: flex;
|
|
572
572
|
flex-direction: ${e=>e.windowSize==="small"||!e.isOwnCard?"column":"row"};
|
|
573
573
|
justify-content: center;
|
|
574
574
|
align-items: center;
|
|
575
575
|
gap: ${e=>$e.rightSectionGap.valuePx(e.windowSize)};
|
|
576
576
|
width: ${e=>e.windowSize==="small"?"100%":"max-content"};
|
|
577
|
-
`,
|
|
577
|
+
`,Cs=r.div`
|
|
578
578
|
min-height: ${e=>`calc(${$e.rightSectionHeight.valuePx(e.windowSize)} + ${a.sp2})`};
|
|
579
579
|
min-width: ${e=>`calc(${$e.rightSectionWidth.valuePx(e.windowSize)} + ${a.sp2})`};
|
|
580
580
|
display: flex;
|
|
@@ -582,13 +582,13 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
582
582
|
align-items: center;
|
|
583
583
|
flex-direction: column;
|
|
584
584
|
gap: ${e=>$e.cardContainerContentGap.valuePx(e.windowSize)};
|
|
585
|
-
`,
|
|
585
|
+
`,fs=r.div`
|
|
586
586
|
width: 100%;
|
|
587
587
|
display: flex;
|
|
588
588
|
align-items: flex-start;
|
|
589
589
|
flex-direction: column;
|
|
590
590
|
justify-content: space-between;
|
|
591
|
-
`,
|
|
591
|
+
`,ws=r.div`
|
|
592
592
|
display: flex;
|
|
593
593
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
594
594
|
align-items: center;
|
|
@@ -601,7 +601,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
601
601
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
602
602
|
background: ${e=>e.theme.colors.grey5};
|
|
603
603
|
gap: ${e=>$e.leftRightSectionGap.valuePx(e.windowSize)};
|
|
604
|
-
`,
|
|
604
|
+
`,xs=r.div`
|
|
605
605
|
display: flex;
|
|
606
606
|
flex-direction: column;
|
|
607
607
|
width: 100%;
|
|
@@ -611,24 +611,24 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
611
611
|
flex-direction: row;
|
|
612
612
|
justify-content: space-between;
|
|
613
613
|
align-items: flex-start;
|
|
614
|
-
`,
|
|
614
|
+
`,bs=r(Ir)`
|
|
615
615
|
color: ${e=>e.theme.colors.primary};
|
|
616
616
|
${e=>`${ra.spentAmount.style(e.windowSize)}`};
|
|
617
|
-
`,
|
|
617
|
+
`,Ss=r.div`
|
|
618
618
|
display: flex;
|
|
619
619
|
align-items: flex-end;
|
|
620
620
|
flex-direction: column;
|
|
621
621
|
${({windowSize:e})=>e==="small"?we`
|
|
622
622
|
margin-bottom: ${a.sp4};
|
|
623
623
|
`:null};
|
|
624
|
-
`,
|
|
624
|
+
`,ys=r.div`
|
|
625
625
|
display: flex;
|
|
626
626
|
flex-direction: ${({windowSize:e})=>e==="small"?"column":"row"};
|
|
627
627
|
align-items: ${({windowSize:e})=>e==="small"?"flex-start":"flex-end"};
|
|
628
|
-
|
|
628
|
+
`,$s=r(ea)`
|
|
629
629
|
color: ${e=>e.theme.colors.hero};
|
|
630
630
|
margin-right: ${a.sp1};
|
|
631
|
-
`,
|
|
631
|
+
`,vs=r(Ji)`
|
|
632
632
|
background: none;
|
|
633
633
|
border: none;
|
|
634
634
|
cursor: pointer;
|
|
@@ -637,33 +637,33 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
637
637
|
&:hover {
|
|
638
638
|
text-decoration: underline;
|
|
639
639
|
}
|
|
640
|
-
|
|
640
|
+
`,ks=r.div`
|
|
641
641
|
display: flex;
|
|
642
642
|
align-items: flex-end;
|
|
643
643
|
gap: ${a.sp1};
|
|
644
|
-
`,
|
|
644
|
+
`,js=r(ge)`
|
|
645
645
|
color: ${e=>e.theme.colors.hero};
|
|
646
|
-
`,
|
|
646
|
+
`,Is=r(ge)`
|
|
647
647
|
color: ${e=>e.theme.colors.hero};
|
|
648
|
-
`,
|
|
648
|
+
`,Ls=r.div`
|
|
649
649
|
width: 100%;
|
|
650
650
|
height: ${a.sp1};
|
|
651
651
|
display: flex;
|
|
652
652
|
margin: ${a.sp2} ${a.sp0};
|
|
653
653
|
border-radius: ${({windowSize:e})=>$e.barRadius.valuePx(e)};
|
|
654
654
|
background: ${e=>e.theme.colors.grey2};
|
|
655
|
-
`,
|
|
655
|
+
`,Ds=r.div`
|
|
656
656
|
display: flex;
|
|
657
657
|
align-items: flex-start;
|
|
658
658
|
flex-direction: column;
|
|
659
659
|
color: ${e=>e.theme.colors.primary};
|
|
660
|
-
`,
|
|
660
|
+
`,qa=r(Ir)`
|
|
661
661
|
color: ${e=>e.theme.colors.primary};
|
|
662
662
|
${e=>`${ra.remainingAmount.style(e.windowSize)}`};
|
|
663
|
-
`,
|
|
663
|
+
`,Ya=r(Xi)`
|
|
664
664
|
${e=>`${ra.remainingAmount.style(e.windowSize)}`};
|
|
665
665
|
color: ${e=>e.theme.colors.primary};
|
|
666
|
-
`,
|
|
666
|
+
`,As=r.div`
|
|
667
667
|
background: ${d.success};
|
|
668
668
|
width: 0%;
|
|
669
669
|
height: ${a.sp1};
|
|
@@ -692,10 +692,10 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
692
692
|
width: 12px;
|
|
693
693
|
margin-left: ${a.sp1};
|
|
694
694
|
color: ${d.success};
|
|
695
|
-
`,
|
|
695
|
+
`,Ts=r.div`
|
|
696
696
|
width: 21px;
|
|
697
697
|
height: 21px;
|
|
698
|
-
`,
|
|
698
|
+
`,Es=r(so)`
|
|
699
699
|
color: ${d.brandColorOpal};
|
|
700
700
|
width: 100%;
|
|
701
701
|
height: 100%;
|
|
@@ -704,7 +704,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
704
704
|
align-items: center;
|
|
705
705
|
justify-content: center;
|
|
706
706
|
position: relative;
|
|
707
|
-
`,Ct=ke.getLocalizedStrings().spendManagement.chargeCard.cardDetails.header,
|
|
707
|
+
`,Ct=ke.getLocalizedStrings().spendManagement.chargeCard.cardDetails.header,Fs={key:"merchant",value:Ct.merchant,sortOrder:"ascending",width:new T(38,38)},Rs={key:"paymentDate",value:Ct.paymentDate,sortOrder:"ascending",width:new T(21,21)},zs={key:"receipts",value:Ct.receipts,sortOrder:"ascending",width:new T(16,16)},Ps={key:"type",value:Ct.type,sortOrder:"ascending",width:new T(14,14)},Ms={key:"amount",value:Ct.amount,sortOrder:"ascending",width:new T(11,11)},Nr=()=>[Fs,Rs,zs,Ps,Ms],it={headerLastColumnTopPadding:new T(l[0],l[4]),headerLastColumnRightPadding:new T(l[3],l[11]),headerLastColumnBottomPadding:new T(l[0],l[4]),headerLastColumnLeftPadding:new T(l[3],l[11]),headerHeight:new T(wo,xo)};function Vs({hideSorting:e,sortConfig:i,onColumnSortConfigChanged:s}){const u=tt(),h=Ie(),f=Nr(),c=(n,C)=>{let w=C;i.sortKey===n&&(w=C==="ascending"?"descending":"ascending"),s(n,w)},g=f.find(n=>n.key===i.sortKey)??f[0],m=n=>f.find(C=>C.key===n)?.value??"",x=f.map(n=>n.key),b=ke.getLocalizedStrings().spendManagement.chargeCard.cardList;return h==="small"?t.jsxs(tr,{windowSize:h,children:[t.jsxs(Bs,{children:[t.jsx(_s,{children:t.jsx(Ws,{})}),t.jsx(uo,{title:b.sortBy,placeholder:b.sortBy,pickerValues:x,valueToLabel:m,selectedValue:i.sortKey,onPickerSelectionChanged:n=>{c(n,"ascending")},optionTextStyle:_.smallRegular,titleTextStyle:_.smallRegular,titleColor:u.colors.primary,selectedOptionColor:u.colors.hero,optionBackgroundColor:u.colors.grey5,downChevronVisible:!1,backgroundColor:u.colors.grey4,isDisabled:e})]}),t.jsxs(Gs,{hideSorting:e,onClick:()=>{e||c(g.key,g.sortOrder)},"data-testid":X("charge-card-trxn-small-header",i.sortKey),children:[t.jsx(ge,{children:g.value}),e?null:t.jsx(ar,{sortDataValue:i.sortKey,headerData:g,children:t.jsx(rr,{})})]})]}):t.jsx(tr,{windowSize:h,children:f.map(n=>t.jsxs(Hs,{hideSorting:e,sortDataValue:i.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:h,children:[t.jsxs(Zs,{hideSorting:e,onClick:()=>{e||c(n.key,n.sortOrder)},"data-testid":X("charge-card-trxn-header",i.sortKey),children:[t.jsx(ge,{children:n.value}),t.jsx(ar,{sortDataValue:i.sortKey,headerData:n,children:e?null:t.jsx(rr,{})})]}),t.jsx(Us,{sortDataValue:i.sortKey,windowSize:h,isVisible:e?!1:i.sortKey===n.key&&n.key!=="paymentDate",children:e?null:t.jsx(Ns,{onClick:()=>{e||c("paymentDate","ascending")},"data-testid":X("charge-card-trxn-close-sort",i.sortKey)})})]},n.key))})}const Os=$o.memo(Vs),tr=r(ge)`
|
|
708
708
|
top: ${a.sp0};
|
|
709
709
|
left: ${a.sp0};
|
|
710
710
|
min-height: ${e=>it.headerHeight.valuePx(e.windowSize)};
|
|
@@ -718,7 +718,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
718
718
|
background-color: ${e=>e.theme.colors.grey4};
|
|
719
719
|
justify-content: space-between;
|
|
720
720
|
position: sticky;
|
|
721
|
-
`,
|
|
721
|
+
`,Hs=r.div`
|
|
722
722
|
color: ${e=>e.sortDataValue===e.actualDataValue&&e.hideSorting===!1?e.theme.colors.primary:e.theme.colors.grey1};
|
|
723
723
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
724
724
|
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
@@ -735,7 +735,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
735
735
|
`};
|
|
736
736
|
box-sizing: border-box;
|
|
737
737
|
overflow: hidden;
|
|
738
|
-
`,
|
|
738
|
+
`,Ns=r(go)`
|
|
739
739
|
width: 12px;
|
|
740
740
|
height: 12px;
|
|
741
741
|
cursor: pointer;
|
|
@@ -750,29 +750,29 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
750
750
|
height: 12px;
|
|
751
751
|
cursor: pointer;
|
|
752
752
|
color: inherit;
|
|
753
|
-
`,
|
|
753
|
+
`,Bs=r.div`
|
|
754
754
|
gap: ${a.sp1};
|
|
755
755
|
display: flex;
|
|
756
|
-
`,
|
|
756
|
+
`,Ws=r(mo)`
|
|
757
757
|
width: 12px;
|
|
758
758
|
height: 12px;
|
|
759
759
|
color: ${e=>e.theme.colors.grey1};
|
|
760
|
-
`,
|
|
760
|
+
`,_s=r.div`
|
|
761
761
|
margin-right: ${a.sp1};
|
|
762
762
|
display: flex;
|
|
763
763
|
align-items: center;
|
|
764
|
-
`,
|
|
764
|
+
`,Us=r.div`
|
|
765
765
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
766
766
|
align-items: center;
|
|
767
767
|
padding-top: 2px;
|
|
768
|
-
`,
|
|
768
|
+
`,Zs=r.div`
|
|
769
769
|
display: flex;
|
|
770
770
|
cursor: ${e=>e.hideSorting?"default":"pointer"};
|
|
771
771
|
gap: ${e=>e.hideSorting?a.sp0:"5px"};
|
|
772
772
|
&:hover {
|
|
773
773
|
color: ${e=>e.hideSorting?"inherit":e.theme.colors.primary};
|
|
774
774
|
}
|
|
775
|
-
`,
|
|
775
|
+
`,Gs=r.div`
|
|
776
776
|
display: flex;
|
|
777
777
|
cursor: ${e=>e.hideSorting?"default":"pointer"};
|
|
778
778
|
gap: ${e=>e.hideSorting?a.sp0:"5px"};
|
|
@@ -780,27 +780,27 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
780
780
|
&:hover {
|
|
781
781
|
color: ${e=>e.hideSorting?e.theme.colors.hero:e.theme.colors.primary};
|
|
782
782
|
}
|
|
783
|
-
`;function Wr(e,i,s){return Zs(e,i,s)}async function Zs(e,i,s,u){const h=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,f=ke.getLocalizedStrings().downloadReport;try{const c=await xo(h,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(c.ok){const g=u??bo(c.headers,"Charge Card Transaction Receipt.pdf"),m=await c.arrayBuffer();So(m,g)}else console.error(`${f.reportErrorMessage} ${c.statusText}`)}catch(c){console.error(`${f.reportErrorMessage} ${JSON.stringify(c)}`)}}async function Ur(e,i,s){const u=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,h=ke.getLocalizedStrings().downloadReport;try{const f=await fetch(u,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(f.ok)return await f.json();console.error(`${h.reportErrorMessage} ${f.statusText}`)}catch(f){throw console.error(`${h.reportErrorMessage} ${JSON.stringify(f)}`),f}return[]}const Gs=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M23.3584 10.0417L23.2319 9.30243L21.7534 9.55562L21.88 10.2949L23.3584 10.0417ZM20.3835 6.50175L20.7954 7.1285L22.0489 6.30467L21.637 5.67791L20.3835 6.50175ZM18.3213 2.36228L17.6946 1.95036L16.8707 3.20388L17.4975 3.61579L18.3213 2.36228ZM13.7044 2.11928L14.4436 2.24587L14.6968 0.767397L13.9576 0.640799L13.7044 2.11928ZM10.041 0.640799L9.30172 0.767397L9.55492 2.24587L10.2942 2.11928L10.041 0.640799ZM6.50104 3.6158L7.1278 3.20388L6.30397 1.95036L5.67721 2.36228L6.50104 3.6158ZM2.36158 5.67792L1.94966 6.30467L3.20318 7.12851L3.61509 6.50175L2.36158 5.67792ZM2.11857 10.2949L2.24517 9.55562L0.766695 9.30242L0.640097 10.0417L2.11857 10.2949ZM0.640097 13.9583L0.766695 14.6975L2.24517 14.4443L2.11857 13.7051L0.640097 13.9583ZM3.61509 17.4982L3.20318 16.8714L1.94966 17.6953L2.36158 18.322L3.61509 17.4982ZM5.67721 21.6377L6.30397 22.0496L7.1278 20.7961L6.50105 20.3842L5.67721 21.6377ZM10.2942 21.8807L9.55492 21.7541L9.30172 23.2326L10.041 23.3592L10.2942 21.8807ZM13.9576 23.3592L14.6968 23.2326L14.4436 21.7541L13.7044 21.8807L13.9576 23.3592ZM17.4975 20.3842L16.8707 20.7961L17.6946 22.0496L18.3213 21.6377L17.4975 20.3842ZM21.637 18.322L22.0489 17.6953L20.7954 16.8714L20.3835 17.4982L21.637 18.322ZM21.88 13.7051L21.7534 14.4443L23.2319 14.6975L23.3584 13.9583L21.88 13.7051ZM23.5243 12C23.5243 11.333 23.4675 10.6786 23.3584 10.0417L21.88 10.2949C21.9748 10.8485 22.0243 11.4182 22.0243 12H23.5243ZM21.637 5.67791C20.7702 4.35908 19.6402 3.22904 18.3213 2.36228L17.4975 3.61579C18.6453 4.37014 19.6291 5.35396 20.3835 6.50175L21.637 5.67791ZM13.9576 0.640799C13.3206 0.531717 12.6663 0.474976 11.9993 0.474976V1.97498C12.5811 1.97498 13.1507 2.02446 13.7044 2.11928L13.9576 0.640799ZM11.9993 0.474976C11.3323 0.474976 10.6779 0.531717 10.041 0.640799L10.2942 2.11928C10.8478 2.02446 11.4175 1.97498 11.9993 1.97498V0.474976ZM5.67721 2.36228C4.35838 3.22904 3.22833 4.35909 2.36158 5.67792L3.61509 6.50175C4.36944 5.35396 5.35326 4.37014 6.50104 3.6158L5.67721 2.36228ZM0.640097 10.0417C0.531015 10.6786 0.474274 11.333 0.474274 12H1.97427C1.97427 11.4182 2.02375 10.8485 2.11857 10.2949L0.640097 10.0417ZM0.474274 12C0.474274 12.667 0.531015 13.3213 0.640097 13.9583L2.11857 13.7051C2.02375 13.1514 1.97427 12.5818 1.97427 12H0.474274ZM2.36158 18.322C3.22834 19.6409 4.35838 20.7709 5.67721 21.6377L6.50105 20.3842C5.35326 19.6298 4.36944 18.646 3.61509 17.4982L2.36158 18.322ZM10.041 23.3592C10.6779 23.4682 11.3323 23.525 11.9993 23.525V22.025C11.4175 22.025 10.8478 21.9755 10.2942 21.8807L10.041 23.3592ZM11.9993 23.525C12.6663 23.525 13.3206 23.4682 13.9576 23.3592L13.7044 21.8807C13.1507 21.9755 12.5811 22.025 11.9993 22.025V23.525ZM18.3213 21.6377C19.6402 20.7709 20.7702 19.6409 21.637 18.322L20.3835 17.4982C19.6291 18.646 18.6453 19.6298 17.4975 20.3842L18.3213 21.6377ZM23.3584 13.9583C23.4675 13.3213 23.5243 12.667 23.5243 12H22.0243C22.0243 12.5818 21.9748 13.1514 21.88 13.7051L23.3584 13.9583Z",fill:"currentColor"}),o.createElement("path",{d:"M12 6.12244V17.8775",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M17.8776 12H6.12245",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),_r=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 21.5894C3.6641 21.5893 3.99994 21.2535 3.99994 20.8394V8.37549L4.72748 9.10303C5.02038 9.39591 5.49514 9.39592 5.78803 9.10303C6.08091 8.81014 6.08091 8.33537 5.78803 8.04248L3.7851 6.03955C3.49221 5.74666 3.01745 5.74667 2.72455 6.03955C2.71669 6.04741 2.70953 6.05585 2.70209 6.06396C2.68584 6.07767 2.66955 6.09163 2.65424 6.10693L0.711857 8.04932C0.418964 8.34221 0.418964 8.81795 0.711857 9.11084C1.00469 9.40341 1.47957 9.40341 1.7724 9.11084L2.49994 8.3833V20.8394C2.49994 21.2536 2.83573 21.5894 3.24994 21.5894Z",fill:"currentColor"})),Zr=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 5.81982C3.6641 5.81989 3.99994 6.15565 3.99994 6.56982V19.0337L4.72748 18.3062C5.02038 18.0133 5.49514 18.0133 5.78803 18.3062C6.08091 18.599 6.08091 19.0738 5.78803 19.3667L3.7851 21.3696C3.49221 21.6625 3.01745 21.6625 2.72455 21.3696C2.71669 21.3618 2.70953 21.3533 2.70209 21.3452C2.68584 21.3315 2.66955 21.3175 2.65424 21.3022L0.711857 19.3599C0.418964 19.067 0.418964 18.5912 0.711857 18.2983C1.00469 18.0058 1.47957 18.0058 1.7724 18.2983L2.49994 19.0259V6.56982C2.49994 6.15561 2.83573 5.81982 3.24994 5.81982Z",fill:"currentColor"})),{dateFormat:Ys,spendManagement:{chargeCard:{cardDetails:ir}},common:{strings:{hyphen:qs},tooltips:{addMissingReceipt:Xs,addReceipt:Js,viewReceipt:Ks}}}=ke.getLocalizedStrings(),Ue={containerPaddingLeft:new T(l[3],l[4]),containerPaddingRight:new T(l[3],l[4]),containerPaddingTop:new T(l[2],l[3]),containerPaddingBottom:new T(l[2],l[3]),containerMarginLeft:new T(l[4],l[8]),webkitLineClamp:new T(2,1,1,1,1)},Qs=(e,i)=>e.attachments!=null&&e.attachments.length>0?Ks:e.amount.amount<=i.amount?Js:Xs,Gr=(e,i,s,u)=>e.attachments!=null&&e.attachments.length>0?t.jsx(bd,{onClick:h=>{h.stopPropagation(),u()},"data-testid":J("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx($d,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(yd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-upload-receipt",e.id)}),ed=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,uploadReceiptsFetchState:g,uploadReceiptsShowTick:m,isViewReceiptClickedImmediatelyAfterUpload:x,authParams:b,transaction:n,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:I,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const S=Le(),[O,H]=o.useState(!1),[v,Y]=o.useState([]),[K,_]=o.useState(null);o.useEffect(()=>{!s&&x&&(Q(D[0]),ee())},[s,x]);const D=n.attachments?.filter(X=>X.contentType!=null&&Tr.includes(X.contentType))??[],[oe,Q]=o.useState(D[0]),[ne,N]=o.useState([]),[Z,W]=o.useState(void 0);o.useEffect(()=>{async function X(te){ne.includes(te.attachment_id)?console.warn(`Attachment with ID ${te.attachment_id} is already getting downloaded`):(N([te.attachment_id,...ne]),await Wr(f,b,te),N(Pr(ne,M=>M==te.attachment_id)))}Z!=null&&(X({card_id:c,transaction_id:n.id,attachment_id:Z}),W(void 0))},[Z]);const ae=()=>{I(n.id,c,!1),H(!1),_(null),Y([]),D.length>0&&Q(D[0])},ee=()=>{H(!0);const X=D.map(M=>M.id);async function te(M){return await Ur(h,b,M)}te({card_id:c,transaction_id:n.id,attachment_ids:X}).then(M=>{Y(M),M.length>0&&_(M[0])})},{merchant:re,createTime:se,transactionType:P,thirdPartyTransactionId:de}=n,G=()=>{s?(p(),I(n.id,c,!0)):(Q(D[0]),ee())},$=o.useRef(null);async function q(X,te){y(n.id,c,"In-Progress"),await Vr(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,X,te).then(M=>{M!=null&&w(n.id,M),y(n.id,c,"Completed"),k(n.id,c,!0),setTimeout(()=>{k(n.id,c,!1),j(!0)},2e3)}).catch(M=>{y(n.id,c,"Error"),j(!1,M)})}const B=()=>{$.current?.click()},le=X=>{if(X.target.files!=null){const te=X.target.files,M=[],be=[];for(let Ae=0;Ae<te.length;Ae++)M.push(te[Ae].name),be.push(te[Ae]);q?.(be,M)}},A=Br(),z=Rr(n.transactionStatus),ce=u?re.brandName??re.name:re.name,ie=Ge("0,0.00",n.amount),L=P.code==="transfer",je=de!=null&&u,Ce=L&&n.direction==="debit",Fe=L&&n.direction==="credit";return t.jsxs(od,{windowSize:S,isClickable:je,"data-testid":J("card-transaction-row",n.id),onClick:X=>{X.stopPropagation(),je&&E(P.code,de)},children:[t.jsx(nd,{children:t.jsxs(sd,{children:[t.jsxs(dd,{windowSize:S,responsiveWidth:A[0].width,children:[Ce?t.jsx(ud,{}):Fe?t.jsx(md,{}):t.jsx(gd,{src:re.logo?.url?.toString()}),t.jsx(cd,{windowSize:S,hasMarginRight:z.code==="paid",children:ce}),z.code!=="paid"?t.jsxs(ad,{children:[t.jsx(id,{windowSize:S}),t.jsx(rd,{color:z.color,windowSize:S,children:z.value})]}):null]}),t.jsx(pd,{windowSize:S,responsiveWidth:A[1].width,children:t.jsx(Cd,{children:se.format(Ys.visual.MMMDCommaYYYYformat)})}),t.jsx(wd,{windowSize:S,responsiveWidth:A[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?qs:g?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx(Sd,{}):t.jsxs(Qt,{enterDelay:600,display:"flex",placement:"bottom",title:Qs(n,C),children:[t.jsx(td,{"data-testid":J("card-transaction-row-upload-receipt",n.id),onClick:X=>{X.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:$,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:le,multiple:!0,onFileSizeError:(X,te)=>{X&&j(!1,{code:500,message:te===!0?ir.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):ir.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,C,B,G)]})}),t.jsx(fd,{windowSize:S,responsiveWidth:A[3].width,children:t.jsx(xd,{title:P.name,children:P.name})}),t.jsx(ld,{windowSize:S,responsiveWidth:A[4].width,children:t.jsx(hd,{windowSize:S,title:Ge("0,0.[00]",n.amount),children:n.direction==="debit"?ie:`-${ie}`})})]})}),O&&D.length>0?Mr.createPortal(t.jsx(Fr,{allFiles:v,fileSource:K,file:oe,title:oe.fileName,attachments:D,setFileSource:_,setShowFullScreenView:H,onCrossClick:ae,setSelectedFileAttachment:Q,onDownloadClick:X=>{W(X.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},td=r.div``,ad=r.div`
|
|
783
|
+
`;function Br(e,i,s){return qs(e,i,s)}async function qs(e,i,s,u){const h=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,f=ke.getLocalizedStrings().downloadReport;try{const c=await bo(h,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(c.ok){const g=u??So(c.headers,"Charge Card Transaction Receipt.pdf"),m=await c.arrayBuffer();yo(m,g)}else console.error(`${f.reportErrorMessage} ${c.statusText}`)}catch(c){console.error(`${f.reportErrorMessage} ${JSON.stringify(c)}`)}}async function Wr(e,i,s){const u=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,h=ke.getLocalizedStrings().downloadReport;try{const f=await fetch(u,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(f.ok)return await f.json();console.error(`${h.reportErrorMessage} ${f.statusText}`)}catch(f){throw console.error(`${h.reportErrorMessage} ${JSON.stringify(f)}`),f}return[]}const Ys=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M23.3584 10.0417L23.2319 9.30243L21.7534 9.55562L21.88 10.2949L23.3584 10.0417ZM20.3835 6.50175L20.7954 7.1285L22.0489 6.30467L21.637 5.67791L20.3835 6.50175ZM18.3213 2.36228L17.6946 1.95036L16.8707 3.20388L17.4975 3.61579L18.3213 2.36228ZM13.7044 2.11928L14.4436 2.24587L14.6968 0.767397L13.9576 0.640799L13.7044 2.11928ZM10.041 0.640799L9.30172 0.767397L9.55492 2.24587L10.2942 2.11928L10.041 0.640799ZM6.50104 3.6158L7.1278 3.20388L6.30397 1.95036L5.67721 2.36228L6.50104 3.6158ZM2.36158 5.67792L1.94966 6.30467L3.20318 7.12851L3.61509 6.50175L2.36158 5.67792ZM2.11857 10.2949L2.24517 9.55562L0.766695 9.30242L0.640097 10.0417L2.11857 10.2949ZM0.640097 13.9583L0.766695 14.6975L2.24517 14.4443L2.11857 13.7051L0.640097 13.9583ZM3.61509 17.4982L3.20318 16.8714L1.94966 17.6953L2.36158 18.322L3.61509 17.4982ZM5.67721 21.6377L6.30397 22.0496L7.1278 20.7961L6.50105 20.3842L5.67721 21.6377ZM10.2942 21.8807L9.55492 21.7541L9.30172 23.2326L10.041 23.3592L10.2942 21.8807ZM13.9576 23.3592L14.6968 23.2326L14.4436 21.7541L13.7044 21.8807L13.9576 23.3592ZM17.4975 20.3842L16.8707 20.7961L17.6946 22.0496L18.3213 21.6377L17.4975 20.3842ZM21.637 18.322L22.0489 17.6953L20.7954 16.8714L20.3835 17.4982L21.637 18.322ZM21.88 13.7051L21.7534 14.4443L23.2319 14.6975L23.3584 13.9583L21.88 13.7051ZM23.5243 12C23.5243 11.333 23.4675 10.6786 23.3584 10.0417L21.88 10.2949C21.9748 10.8485 22.0243 11.4182 22.0243 12H23.5243ZM21.637 5.67791C20.7702 4.35908 19.6402 3.22904 18.3213 2.36228L17.4975 3.61579C18.6453 4.37014 19.6291 5.35396 20.3835 6.50175L21.637 5.67791ZM13.9576 0.640799C13.3206 0.531717 12.6663 0.474976 11.9993 0.474976V1.97498C12.5811 1.97498 13.1507 2.02446 13.7044 2.11928L13.9576 0.640799ZM11.9993 0.474976C11.3323 0.474976 10.6779 0.531717 10.041 0.640799L10.2942 2.11928C10.8478 2.02446 11.4175 1.97498 11.9993 1.97498V0.474976ZM5.67721 2.36228C4.35838 3.22904 3.22833 4.35909 2.36158 5.67792L3.61509 6.50175C4.36944 5.35396 5.35326 4.37014 6.50104 3.6158L5.67721 2.36228ZM0.640097 10.0417C0.531015 10.6786 0.474274 11.333 0.474274 12H1.97427C1.97427 11.4182 2.02375 10.8485 2.11857 10.2949L0.640097 10.0417ZM0.474274 12C0.474274 12.667 0.531015 13.3213 0.640097 13.9583L2.11857 13.7051C2.02375 13.1514 1.97427 12.5818 1.97427 12H0.474274ZM2.36158 18.322C3.22834 19.6409 4.35838 20.7709 5.67721 21.6377L6.50105 20.3842C5.35326 19.6298 4.36944 18.646 3.61509 17.4982L2.36158 18.322ZM10.041 23.3592C10.6779 23.4682 11.3323 23.525 11.9993 23.525V22.025C11.4175 22.025 10.8478 21.9755 10.2942 21.8807L10.041 23.3592ZM11.9993 23.525C12.6663 23.525 13.3206 23.4682 13.9576 23.3592L13.7044 21.8807C13.1507 21.9755 12.5811 22.025 11.9993 22.025V23.525ZM18.3213 21.6377C19.6402 20.7709 20.7702 19.6409 21.637 18.322L20.3835 17.4982C19.6291 18.646 18.6453 19.6298 17.4975 20.3842L18.3213 21.6377ZM23.3584 13.9583C23.4675 13.3213 23.5243 12.667 23.5243 12H22.0243C22.0243 12.5818 21.9748 13.1514 21.88 13.7051L23.3584 13.9583Z",fill:"currentColor"}),o.createElement("path",{d:"M12 6.12244V17.8775",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M17.8776 12H6.12245",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),_r=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 21.5894C3.6641 21.5893 3.99994 21.2535 3.99994 20.8394V8.37549L4.72748 9.10303C5.02038 9.39591 5.49514 9.39592 5.78803 9.10303C6.08091 8.81014 6.08091 8.33537 5.78803 8.04248L3.7851 6.03955C3.49221 5.74666 3.01745 5.74667 2.72455 6.03955C2.71669 6.04741 2.70953 6.05585 2.70209 6.06396C2.68584 6.07767 2.66955 6.09163 2.65424 6.10693L0.711857 8.04932C0.418964 8.34221 0.418964 8.81795 0.711857 9.11084C1.00469 9.40341 1.47957 9.40341 1.7724 9.11084L2.49994 8.3833V20.8394C2.49994 21.2536 2.83573 21.5894 3.24994 21.5894Z",fill:"currentColor"})),Ur=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 5.81982C3.6641 5.81989 3.99994 6.15565 3.99994 6.56982V19.0337L4.72748 18.3062C5.02038 18.0133 5.49514 18.0133 5.78803 18.3062C6.08091 18.599 6.08091 19.0738 5.78803 19.3667L3.7851 21.3696C3.49221 21.6625 3.01745 21.6625 2.72455 21.3696C2.71669 21.3618 2.70953 21.3533 2.70209 21.3452C2.68584 21.3315 2.66955 21.3175 2.65424 21.3022L0.711857 19.3599C0.418964 19.067 0.418964 18.5912 0.711857 18.2983C1.00469 18.0058 1.47957 18.0058 1.7724 18.2983L2.49994 19.0259V6.56982C2.49994 6.15561 2.83573 5.81982 3.24994 5.81982Z",fill:"currentColor"})),{dateFormat:Xs,spendManagement:{chargeCard:{cardDetails:ir}},common:{strings:{hyphen:Js},tooltips:{addMissingReceipt:Ks,addReceipt:Qs,viewReceipt:ed}}}=ke.getLocalizedStrings(),_e={containerPaddingLeft:new T(l[3],l[4]),containerPaddingRight:new T(l[3],l[4]),containerPaddingTop:new T(l[2],l[3]),containerPaddingBottom:new T(l[2],l[3]),containerMarginLeft:new T(l[4],l[8]),webkitLineClamp:new T(2,1,1,1,1)},Zr=e=>(e.attachmentFilePaths??[]).filter(i=>/\.(pdf|png|jpg|jpeg)$/i.test(i)).map(jo),td=(e,i)=>(e.attachmentFilePaths?.length??0)>0?ed:e.amount.amount<=i.amount?Qs:Ks,Gr=(e,i,s,u)=>(e.attachmentFilePaths?.length??0)>0?t.jsx(yd,{onClick:h=>{h.stopPropagation(),u()},"data-testid":X("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx(kd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":X("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(vd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":X("card-transaction-row-upload-receipt",e.id)}),ad=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,uploadReceiptsFetchState:g,uploadReceiptsShowTick:m,isViewReceiptClickedImmediatelyAfterUpload:x,authParams:b,transaction:n,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const S=Ie(),[O,H]=o.useState(!1),[v,q]=o.useState([]),[J,U]=o.useState(null);o.useEffect(()=>{!s&&x&&(K(D[0]),Q())},[s,x]);const D=Zr(n),[oe,K]=o.useState(D[0]),[ne,N]=o.useState([]),[Z,W]=o.useState(void 0);o.useEffect(()=>{async function te(ee){ne.includes(ee.attachment_id)?console.warn(`Attachment with ID ${ee.attachment_id} is already getting downloaded`):(N([ee.attachment_id,...ne]),await Br(f,b,ee),N(Rr(ne,M=>M==ee.attachment_id)))}Z!=null&&(te({card_id:c,transaction_id:n.id,attachment_id:Z}),W(void 0))},[Z]);const ae=()=>{L(n.id,c,!1),H(!1),U(null),q([]),D.length>0&&K(D[0])},Q=()=>{H(!0);const te=D.map(M=>M.id);async function ee(M){return await Wr(h,b,M)}ee({card_id:c,transaction_id:n.id,attachment_ids:te}).then(M=>{q(M),M.length>0&&U(M[0])})},{merchant:re,createTime:se,transactionType:z,thirdPartyTransactionId:de}=n,G=()=>{s?(p(),L(n.id,c,!0)):(K(D[0]),Q())},$=o.useRef(null);async function Y(te,ee){y(n.id,c,"In-Progress"),await Mr(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,te,ee).then(M=>{M!=null&&w(n.id,M),y(n.id,c,"Completed"),k(n.id,c,!0),setTimeout(()=>{k(n.id,c,!1),j(!0)},2e3)}).catch(M=>{y(n.id,c,"Error"),j(!1,M)})}const B=()=>{$.current?.click()},le=te=>{if(te.target.files!=null){const ee=te.target.files,M=[],be=[];for(let Ae=0;Ae<ee.length;Ae++)M.push(ee[Ae].name),be.push(ee[Ae]);Y?.(be,M)}},A=Nr(),P=Tr(n.transactionStatus),ce=u?re.brandName??re.name:re.name,ie=Ge("0,0.00",n.amount),I=z.code==="transfer",je=de!=null&&u,Ce=I&&n.direction==="debit",Re=I&&n.direction==="credit";return t.jsxs(sd,{windowSize:S,isClickable:je,"data-testid":X("card-transaction-row",n.id),onClick:te=>{te.stopPropagation(),je&&E(z.code,de)},children:[t.jsx(dd,{children:t.jsxs(cd,{children:[t.jsxs(ld,{windowSize:S,responsiveWidth:A[0].width,children:[Ce?t.jsx(gd,{}):Re?t.jsx(Cd,{}):t.jsx(fd,{src:re.logo?.url?.toString()}),t.jsx(hd,{windowSize:S,hasMarginRight:P.code==="paid",children:ce}),P.code!=="paid"?t.jsxs(id,{children:[t.jsx(nd,{windowSize:S}),t.jsx(od,{color:P.color,windowSize:S,children:P.value})]}):null]}),t.jsx(md,{windowSize:S,responsiveWidth:A[1].width,children:t.jsx(wd,{children:se.format(Xs.visual.MMMDCommaYYYYformat)})}),t.jsx(bd,{windowSize:S,responsiveWidth:A[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Js:g?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx($d,{}):t.jsxs(Qt,{enterDelay:600,display:"flex",placement:"bottom",title:td(n,C),children:[t.jsx(rd,{"data-testid":X("card-transaction-row-upload-receipt",n.id),onClick:te=>{te.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:$,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:le,multiple:!0,onFileSizeError:(te,ee)=>{te&&j(!1,{code:500,message:ee===!0?ir.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):ir.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,C,B,G)]})}),t.jsx(xd,{windowSize:S,responsiveWidth:A[3].width,children:t.jsx(Sd,{title:z.name,children:z.name})}),t.jsx(pd,{windowSize:S,responsiveWidth:A[4].width,children:t.jsx(ud,{windowSize:S,title:Ge("0,0.[00]",n.amount),children:n.direction==="debit"?ie:`-${ie}`})})]})}),O&&D.length>0?Pr.createPortal(t.jsx(Fr,{allFiles:v,fileSource:J,file:oe,title:oe.fileName,attachments:D,setFileSource:U,setShowFullScreenView:H,onCrossClick:ae,setSelectedFileAttachment:K,onDownloadClick:te=>{W(te.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},rd=r.div``,id=r.div`
|
|
784
784
|
display: flex;
|
|
785
785
|
flex-direction: row;
|
|
786
786
|
align-items: center;
|
|
787
787
|
gap: ${a.sp2};
|
|
788
788
|
margin-right: ${a.sp4};
|
|
789
|
-
`,
|
|
789
|
+
`,od=r(st)`
|
|
790
790
|
color: ${e=>e.color};
|
|
791
|
-
`,
|
|
791
|
+
`,nd=r.div`
|
|
792
792
|
display: ${e=>e.windowSize==="small"?"none":"block"};
|
|
793
793
|
width: ${a.sp1};
|
|
794
794
|
height: ${a.sp1};
|
|
795
795
|
border-radius: 100%;
|
|
796
796
|
background-color: ${e=>e.theme.colors.grey1};
|
|
797
|
-
`,
|
|
797
|
+
`,sd=r.div`
|
|
798
798
|
display: flex;
|
|
799
799
|
background-color: ${e=>e.theme.colors.grey5};
|
|
800
|
-
padding-left: ${e=>
|
|
801
|
-
padding-right: ${e=>
|
|
802
|
-
padding-top: ${e=>
|
|
803
|
-
padding-bottom: ${e=>
|
|
800
|
+
padding-left: ${e=>_e.containerPaddingLeft.valuePx(e.windowSize)};
|
|
801
|
+
padding-right: ${e=>_e.containerPaddingRight.valuePx(e.windowSize)};
|
|
802
|
+
padding-top: ${e=>_e.containerPaddingTop.valuePx(e.windowSize)};
|
|
803
|
+
padding-bottom: ${e=>_e.containerPaddingBottom.valuePx(e.windowSize)};
|
|
804
804
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
805
805
|
box-shadow: ${e=>e.theme.mode==="dark"?`${d.dropShadowNormalDark} ${a.sp0} 2px ${a.sp1}`:`${a.sp0} 2px ${a.sp1} ${d.dropShadowNormalLight}`};
|
|
806
806
|
border-radius: ${a.sp2};
|
|
@@ -809,29 +809,29 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
809
809
|
border-color: ${e=>e.theme.colors.primary};
|
|
810
810
|
color: ${e=>e.theme.colors.primary};
|
|
811
811
|
}
|
|
812
|
-
margin-right: ${e=>
|
|
813
|
-
margin-left: ${e=>
|
|
812
|
+
margin-right: ${e=>_e.containerMarginLeft.valuePx(e.windowSize)};
|
|
813
|
+
margin-left: ${e=>_e.containerMarginLeft.valuePx(e.windowSize)};
|
|
814
814
|
box-sizing: border-box;
|
|
815
815
|
align-items: center;
|
|
816
816
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
817
|
-
`,
|
|
817
|
+
`,dd=r.div`
|
|
818
818
|
display: block;
|
|
819
819
|
width: 100%;
|
|
820
|
-
`,
|
|
820
|
+
`,cd=r.div`
|
|
821
821
|
display: flex;
|
|
822
822
|
width: 100%;
|
|
823
823
|
justify-content: space-between;
|
|
824
824
|
align-items: center;
|
|
825
|
-
`,
|
|
825
|
+
`,ld=r.div`
|
|
826
826
|
display: flex;
|
|
827
827
|
flex-direction: row;
|
|
828
828
|
column-gap: ${a.sp2};
|
|
829
829
|
align-items: center;
|
|
830
830
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
831
|
-
`,
|
|
831
|
+
`,hd=r(Oe)`
|
|
832
832
|
margin-right: ${e=>e.hasMarginRight?a.sp3:a.sp0};
|
|
833
833
|
color: inherit;
|
|
834
|
-
-webkit-line-clamp: ${e=>
|
|
834
|
+
-webkit-line-clamp: ${e=>_e.webkitLineClamp.value(e.windowSize)};
|
|
835
835
|
-webkit-box-orient: vertical;
|
|
836
836
|
overflow: hidden;
|
|
837
837
|
max-width: 100%;
|
|
@@ -839,16 +839,16 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
839
839
|
text-overflow: ellipsis;
|
|
840
840
|
white-space: nowrap;
|
|
841
841
|
text-transform: capitalize;
|
|
842
|
-
`,
|
|
842
|
+
`,pd=r(Oe)`
|
|
843
843
|
display: flex;
|
|
844
844
|
flex-direction: column;
|
|
845
845
|
justify-content: flex-end;
|
|
846
846
|
align-items: flex-end;
|
|
847
847
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
848
|
-
`,
|
|
848
|
+
`,ud=r(Oe)`
|
|
849
849
|
color: inherit;
|
|
850
850
|
flex-grow: 1;
|
|
851
|
-
-webkit-line-clamp: ${e=>
|
|
851
|
+
-webkit-line-clamp: ${e=>_e.webkitLineClamp.value(e.windowSize)};
|
|
852
852
|
-webkit-box-orient: vertical;
|
|
853
853
|
overflow: hidden;
|
|
854
854
|
text-overflow: ellipsis;
|
|
@@ -856,44 +856,44 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
856
856
|
overflow: hidden;
|
|
857
857
|
text-overflow: ellipsis;
|
|
858
858
|
white-space: nowrap;
|
|
859
|
-
`,
|
|
859
|
+
`,md=r.div`
|
|
860
860
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
861
861
|
box-sizing: border-box;
|
|
862
862
|
display: flex;
|
|
863
863
|
align-items: flex-start;
|
|
864
864
|
flex-direction: column;
|
|
865
865
|
justify-content: center;
|
|
866
|
-
`,
|
|
866
|
+
`,qr=e=>we`
|
|
867
867
|
width: ${a.sp4};
|
|
868
868
|
height: ${a.sp4};
|
|
869
869
|
color: ${e.colors.hero};
|
|
870
|
-
`,
|
|
871
|
-
${({theme:e})=>
|
|
872
|
-
`,
|
|
873
|
-
${({theme:e})=>
|
|
874
|
-
`,
|
|
870
|
+
`,gd=r(Ur)`
|
|
871
|
+
${({theme:e})=>qr(e)}
|
|
872
|
+
`,Cd=r(_r)`
|
|
873
|
+
${({theme:e})=>qr(e)}
|
|
874
|
+
`,fd=r.img`
|
|
875
875
|
display: flex;
|
|
876
876
|
width: ${a.sp4};
|
|
877
877
|
height: ${a.sp4};
|
|
878
|
-
`,
|
|
878
|
+
`,wd=r(Oe)`
|
|
879
879
|
color: inherit;
|
|
880
880
|
max-width: 100%;
|
|
881
881
|
overflow: hidden;
|
|
882
882
|
text-overflow: ellipsis;
|
|
883
883
|
white-space: nowrap;
|
|
884
|
-
`,
|
|
884
|
+
`,xd=r(Oe)`
|
|
885
885
|
color: ${e=>e.theme.colors.hero};
|
|
886
886
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
887
887
|
box-sizing: border-box;
|
|
888
888
|
display: flex;
|
|
889
889
|
align-items: center;
|
|
890
|
-
`,
|
|
890
|
+
`,bd=r.div`
|
|
891
891
|
color: ${e=>e.theme.colors.hero};
|
|
892
892
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
893
893
|
box-sizing: border-box;
|
|
894
894
|
display: flex;
|
|
895
895
|
align-items: center;
|
|
896
|
-
`,
|
|
896
|
+
`,Sd=r(st)`
|
|
897
897
|
color: ${e=>e.theme.colors.hero};
|
|
898
898
|
max-width: 100%;
|
|
899
899
|
overflow: hidden;
|
|
@@ -902,7 +902,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
902
902
|
padding: 1px 6px;
|
|
903
903
|
border-radius: ${a.sp1};
|
|
904
904
|
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
905
|
-
`,
|
|
905
|
+
`,yd=r(Co)`
|
|
906
906
|
height: ${a.sp4};
|
|
907
907
|
width: ${a.sp4};
|
|
908
908
|
cursor: pointer;
|
|
@@ -910,11 +910,11 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
910
910
|
&:hover {
|
|
911
911
|
color: ${e=>e.theme.colors.primary};
|
|
912
912
|
}
|
|
913
|
-
|
|
913
|
+
`,$d=r(gt)`
|
|
914
914
|
height: ${a.sp4};
|
|
915
915
|
width: ${a.sp4};
|
|
916
916
|
color: ${d.success};
|
|
917
|
-
`,
|
|
917
|
+
`,vd=r(fo)`
|
|
918
918
|
height: ${a.sp4};
|
|
919
919
|
width: ${a.sp4};
|
|
920
920
|
cursor: pointer;
|
|
@@ -922,7 +922,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
922
922
|
&:hover {
|
|
923
923
|
color: ${e=>e.theme.colors.primary};
|
|
924
924
|
}
|
|
925
|
-
|
|
925
|
+
`,kd=r(Ys)`
|
|
926
926
|
height: ${a.sp4};
|
|
927
927
|
width: ${a.sp4};
|
|
928
928
|
cursor: pointer;
|
|
@@ -930,19 +930,19 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
930
930
|
&:hover {
|
|
931
931
|
color: ${e=>e.theme.colors.primary};
|
|
932
932
|
}
|
|
933
|
-
`,{dateFormat:
|
|
933
|
+
`,{dateFormat:jd,spendManagement:{chargeCard:{cardDetails:Yt}},common:{strings:{hyphen:Id}}}=ke.getLocalizedStrings(),Ld={webkitLineClamp:new T(2,1,1,1,1)},Dd=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,isViewReceiptClickedImmediatelyAfterUpload:g,uploadReceiptsShowTick:m,uploadReceiptsFetchState:x,authParams:b,transaction:n,receiptRequiredAboveAmount:C,onUploadReceiptComplete:w,updateChargeCardTransactionAttachments:j,updateChargeCardTransactionReceiptsShowTick:y,updateChargeCardTransactionIsViewReceiptClicked:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const S=Ie(),[O,H]=o.useState(0),[v,q]=o.useState(0),[J,U]=o.useState(0),D=F=>{U(F),W(!0),G(z[F]),se(ae[F])};function oe(F){H(F.targetTouches[0].clientX)}function K(F){q(F.targetTouches[0].clientX)}function ne(F){return F<0?z.length+F:F%z.length}function N(){O-v>50&&v!==0&&J<z.length-1?(D(ne(J+1)),H(0),q(0)):O-v<-50&&v!==0&&J>0&&(D(ne(J-1)),H(0),q(0))}const[Z,W]=o.useState(!1),[ae,Q]=o.useState([]),[re,se]=o.useState(null);o.useEffect(()=>{!s&&g&&(G(z[0]),P())},[s,g]);const z=Zr(n),[de,G]=o.useState(z[0]),[$,Y]=o.useState([]),[B,le]=o.useState(void 0);o.useEffect(()=>{async function F(he){$.includes(he.attachment_id)?console.warn(`Attachment with ID ${he.attachment_id} is already getting downloaded`):(Y([he.attachment_id,...$]),await Br(f,b,he),Y(Rr($,R=>R==he.attachment_id)))}B!=null&&(F({card_id:c,transaction_id:n.id,attachment_id:B}),le(void 0))},[B]);const A=()=>{k(n.id,c,!1),W(!1),se(null),Q([]),z.length>0&&G(z[0])},P=()=>{W(!0);const F=z.map(R=>R.id);async function he(R){return await Wr(h,b,R)}he({card_id:c,transaction_id:n.id,attachment_ids:F}).then(R=>{Q(R),R.length>0&&se(R[0])})},{merchant:ce,createTime:ie,transactionType:I,thirdPartyTransactionId:je}=n,Ce=()=>{s?(p(),k(n.id,c,!0)):(G(z[0]),P())},Re=o.useRef(null);async function te(F,he){L(n.id,c,"In-Progress"),await Mr(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,F,he).then(R=>{R!=null&&j(n.id,R),L(n.id,c,"Completed"),w(!0),y(n.id,c,!0),setTimeout(()=>y(n.id,c,!1),2e3)}).catch(R=>{L(n.id,c,"Error"),w(!1,R)})}const ee=()=>{Re.current?.click()},M=F=>{if(F.target.files!=null){const he=F.target.files,R=[],Ye=[];for(let ze=0;ze<he.length;ze++)R.push(he[ze].name),Ye.push(he[ze]);te?.(Ye,R)}},be=Tr(n.transactionStatus),Ae=u?ce.brandName??ce.name:ce.name,me=Ge("0,0.00",n.amount),He=I.code==="transfer",qe=je!=null&&u,at=He&&n.direction==="debit",pe=He&&n.direction==="credit";return t.jsxs(Hd,{windowSize:S,"data-testid":X("card-transaction-row-small",n.id),onClick:F=>{F.stopPropagation(),qe&&E(I.code,je)},children:[t.jsx(Nd,{children:t.jsxs(Bd,{children:[t.jsxs(Ud,{children:[t.jsx(Md,{children:at?t.jsx(Ad,{}):pe?t.jsx(Td,{}):t.jsx(Gd,{src:ce.logo?.url?.toString()})}),t.jsxs(qd,{children:[t.jsxs(Ed,{children:[t.jsx(Wd,{windowSize:S,children:Ae}),be.code!=="paid"?t.jsxs(Fd,{children:[t.jsx(zd,{windowSize:S}),t.jsx(Rd,{color:be.color,windowSize:S,children:be.value})]}):null]}),t.jsx(_d,{children:`${Yt.paymentDate} ${ie.format(jd.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(Zd,{children:[t.jsx(Yd,{children:n.direction==="debit"?me:`-${me}`}),t.jsx(Od,{title:I.name,children:I.name}),t.jsx(Vd,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Id:x?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx(Pd,{}):t.jsxs(or,{children:[t.jsx(or,{"data-testid":X("card-transaction-row-small-upload-receipt",n.id),onClick:F=>{F.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:Re,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:M,multiple:!0,onFileSizeError:(F,he)=>{F&&w(!1,{code:500,message:he===!0?Yt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):Yt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,C,ee,Ce)]})})]})]})}),Z&&z.length>0?Pr.createPortal(t.jsx(Fr,{allFiles:ae,fileSource:re,file:de,title:de.fileName,attachments:z,setFileSource:se,setShowFullScreenView:W,onCrossClick:A,setSelectedFileAttachment:G,onDownloadClick:F=>{le(F.id)},handleTouchStart:oe,handleTouchMove:K,handleTouchEnd:N}),document.body):null]})},Yr=e=>we`
|
|
934
934
|
width: ${a.sp4};
|
|
935
935
|
height: ${a.sp4};
|
|
936
936
|
color: ${e.colors.hero};
|
|
937
|
-
`,
|
|
938
|
-
${({theme:e})=>
|
|
939
|
-
`,
|
|
940
|
-
${({theme:e})=>
|
|
941
|
-
`,or=r.div``,
|
|
937
|
+
`,Ad=r(Ur)`
|
|
938
|
+
${({theme:e})=>Yr(e)}
|
|
939
|
+
`,Td=r(_r)`
|
|
940
|
+
${({theme:e})=>Yr(e)}
|
|
941
|
+
`,or=r.div``,Ed=r.div`
|
|
942
942
|
display: flex;
|
|
943
943
|
gap: ${a.sp2};
|
|
944
944
|
align-items: flex-start;
|
|
945
|
-
`,
|
|
945
|
+
`,Fd=r.div`
|
|
946
946
|
display: flex;
|
|
947
947
|
flex-direction: row;
|
|
948
948
|
align-items: center;
|
|
@@ -950,19 +950,19 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
950
950
|
min-height: ${a.sp4};
|
|
951
951
|
`,Rd=r(st)`
|
|
952
952
|
color: ${e=>e.color};
|
|
953
|
-
`,
|
|
953
|
+
`,zd=r.div`
|
|
954
954
|
display: block;
|
|
955
955
|
width: ${a.sp1};
|
|
956
956
|
height: ${a.sp1};
|
|
957
957
|
border-radius: 100%;
|
|
958
958
|
background-color: ${e=>e.theme.colors.grey1};
|
|
959
|
-
`,
|
|
959
|
+
`,Pd=r(gt)`
|
|
960
960
|
height: ${a.sp4};
|
|
961
961
|
width: ${a.sp4};
|
|
962
962
|
color: ${d.success};
|
|
963
|
-
`,
|
|
963
|
+
`,Md=r.div``,Vd=r.div`
|
|
964
964
|
margin-top: ${a.sp2};
|
|
965
|
-
`,
|
|
965
|
+
`,Od=r(st)`
|
|
966
966
|
color: ${e=>e.theme.colors.hero};
|
|
967
967
|
max-width: 100%;
|
|
968
968
|
overflow: hidden;
|
|
@@ -971,7 +971,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
971
971
|
padding: 1px 6px;
|
|
972
972
|
border-radius: ${a.sp1};
|
|
973
973
|
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
974
|
-
`,
|
|
974
|
+
`,Hd=r.div`
|
|
975
975
|
display: flex;
|
|
976
976
|
background-color: ${e=>e.theme.colors.grey5};
|
|
977
977
|
border: ${e=>` 1px solid ${e.theme.colors.grey3}`};
|
|
@@ -985,18 +985,18 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
985
985
|
}
|
|
986
986
|
margin-right: ${a.sp3};
|
|
987
987
|
margin-left: ${a.sp3};
|
|
988
|
-
`,
|
|
988
|
+
`,Nd=r.div`
|
|
989
989
|
display: block;
|
|
990
990
|
width: 100%;
|
|
991
|
-
`,
|
|
991
|
+
`,Bd=r.div`
|
|
992
992
|
display: flex;
|
|
993
993
|
width: 100%;
|
|
994
994
|
justify-content: space-between;
|
|
995
|
-
`,
|
|
995
|
+
`,Wd=r(Oe)`
|
|
996
996
|
color: inherit;
|
|
997
997
|
flex-grow: 1;
|
|
998
998
|
display: -webkit-box;
|
|
999
|
-
-webkit-line-clamp: ${e=>
|
|
999
|
+
-webkit-line-clamp: ${e=>Ld.webkitLineClamp.value(e.windowSize)};
|
|
1000
1000
|
-webkit-box-orient: vertical;
|
|
1001
1001
|
overflow: hidden;
|
|
1002
1002
|
text-overflow: ellipsis;
|
|
@@ -1004,49 +1004,49 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1004
1004
|
overflow: hidden;
|
|
1005
1005
|
text-overflow: ellipsis;
|
|
1006
1006
|
text-transform: capitalize;
|
|
1007
|
-
`,
|
|
1007
|
+
`,_d=r(st)`
|
|
1008
1008
|
color: inherit;
|
|
1009
1009
|
min-height: 18px;
|
|
1010
1010
|
margin-top: -${a.sp1};
|
|
1011
|
-
`,
|
|
1011
|
+
`,Ud=r.div`
|
|
1012
1012
|
display: flex;
|
|
1013
1013
|
flex-direction: row;
|
|
1014
1014
|
gap: ${a.sp2};
|
|
1015
|
-
`,
|
|
1015
|
+
`,Zd=r.div`
|
|
1016
1016
|
display: flex;
|
|
1017
1017
|
flex-direction: column;
|
|
1018
1018
|
align-items: flex-end;
|
|
1019
|
-
`,
|
|
1019
|
+
`,Gd=r.img`
|
|
1020
1020
|
display: flex;
|
|
1021
1021
|
width: ${a.sp4};
|
|
1022
1022
|
height: ${a.sp4};
|
|
1023
|
-
`,
|
|
1023
|
+
`,qd=r.div`
|
|
1024
1024
|
margin-bottom: 6px;
|
|
1025
|
-
`,
|
|
1025
|
+
`,Yd=r(Oe)`
|
|
1026
1026
|
color: inherit;
|
|
1027
|
-
`,Yd=e=>o.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_6421_22796)"},o.createElement("mask",{id:"mask0_6421_22796",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:90,height:90},o.createElement("rect",{width:90,height:90,fill:"#D9D9D9"})),o.createElement("g",{mask:"url(#mask0_6421_22796)"},o.createElement("rect",{x:.471703,y:15.6197,width:85.2829,height:54.9872,rx:3.30192,stroke:"#97C3B9",strokeWidth:.943405}),o.createElement("rect",{opacity:.2,x:3.77344,y:18.9216,width:86.2263,height:55.9306,rx:3.77362,fill:"#97C3B9"}),o.createElement("path",{d:"M13.8672 56.8781L72.3583 56.878",stroke:"#EEBA7D",strokeWidth:.943405,strokeLinecap:"round"}),o.createElement("path",{d:"M0.945312 30.8197C34.0042 22.3291 52.539 22.3291 85.5978 30.8197",stroke:"#97C3B9",strokeWidth:.943405,strokeLinecap:"round"}),o.createElement("path",{d:"M15.688 42.7079L14.037 40.3117H15.037L16.1502 41.9154C16.1565 41.928 16.1911 41.9846 16.254 42.0853H16.2729C16.2854 42.0664 16.298 42.0444 16.3106 42.0192C16.3232 41.9878 16.3452 41.95 16.3766 41.906L17.4804 40.3117H18.4238L16.754 42.7456L18.4427 45.1796H17.4427L16.3012 43.5287C16.2886 43.5098 16.2509 43.4469 16.188 43.34H16.1691C16.1502 43.3903 16.1188 43.4501 16.0748 43.5192L14.9238 45.1796H13.9898L15.688 42.7079ZM20.3773 42.7079L18.7264 40.3117H19.7264L20.8396 41.9154C20.8459 41.928 20.8805 41.9846 20.9434 42.0853H20.9623C20.9748 42.0664 20.9874 42.0444 21 42.0192C21.0126 41.9878 21.0346 41.95 21.066 41.906L22.1698 40.3117H23.1132L21.4434 42.7456L23.1321 45.1796H22.1321L20.9906 43.5287C20.978 43.5098 20.9402 43.4469 20.8774 43.34H20.8585C20.8396 43.3903 20.8082 43.4501 20.7641 43.5192L19.6132 45.1796H18.6792L20.3773 42.7079ZM25.0667 42.7079L23.4158 40.3117H24.4158L25.529 41.9154C25.5353 41.928 25.5699 41.9846 25.6328 42.0853H25.6516C25.6642 42.0664 25.6768 42.0444 25.6894 42.0192C25.702 41.9878 25.724 41.95 25.7554 41.906L26.8592 40.3117H27.8026L26.1328 42.7456L27.8215 45.1796H26.8215L25.6799 43.5287C25.6674 43.5098 25.6296 43.4469 25.5667 43.34H25.5479C25.529 43.3903 25.4976 43.4501 25.4535 43.5192L24.3026 45.1796H23.3686L25.0667 42.7079ZM30.8057 42.2551H33.1076V42.9909H30.8057V42.2551ZM37.799 42.7079L36.1481 40.3117H37.1481L38.2613 41.9154C38.2676 41.928 38.3022 41.9846 38.3651 42.0853H38.3839C38.3965 42.0664 38.4091 42.0444 38.4217 42.0192C38.4342 41.9878 38.4563 41.95 38.4877 41.906L39.5915 40.3117H40.5349L38.8651 42.7456L40.5538 45.1796H39.5537L38.4122 43.5287C38.3996 43.5098 38.3619 43.4469 38.299 43.34H38.2802C38.2613 43.3903 38.2298 43.4501 38.1858 43.5192L37.0349 45.1796H36.1009L37.799 42.7079ZM42.4884 42.7079L40.8374 40.3117H41.8375L42.9507 41.9154C42.957 41.928 42.9916 41.9846 43.0544 42.0853H43.0733C43.0859 42.0664 43.0985 42.0444 43.111 42.0192C43.1236 41.9878 43.1456 41.95 43.1771 41.906L44.2809 40.3117H45.2243L43.5544 42.7456L45.2431 45.1796H44.2431L43.1016 43.5287C43.089 43.5098 43.0513 43.4469 42.9884 43.34H42.9695C42.9507 43.3903 42.9192 43.4501 42.8752 43.5192L41.7242 45.1796H40.7903L42.4884 42.7079ZM48.2274 42.2551H50.5293V42.9909H48.2274V42.2551ZM55.2207 42.7079L53.5697 40.3117H54.5697L55.683 41.9154C55.6892 41.928 55.7238 41.9846 55.7867 42.0853H55.8056C55.8182 42.0664 55.8308 42.0444 55.8433 42.0192C55.8559 41.9878 55.8779 41.95 55.9094 41.906L57.0132 40.3117H57.9566L56.2867 42.7456L57.9754 45.1796H56.9754L55.8339 43.5287C55.8213 43.5098 55.7836 43.4469 55.7207 43.34H55.7018C55.683 43.3903 55.6515 43.4501 55.6075 43.5192L54.4565 45.1796H53.5226L55.2207 42.7079ZM59.9101 42.7079L58.2591 40.3117H59.2591L60.3723 41.9154C60.3786 41.928 60.4132 41.9846 60.4761 42.0853H60.495C60.5076 42.0664 60.5201 42.0444 60.5327 42.0192C60.5453 41.9878 60.5673 41.95 60.5988 41.906L61.7025 40.3117H62.6459L60.9761 42.7456L62.6648 45.1796H61.6648L60.5233 43.5287C60.5107 43.5098 60.473 43.4469 60.4101 43.34H60.3912C60.3723 43.3903 60.3409 43.4501 60.2969 43.5192L59.1459 45.1796H58.2119L59.9101 42.7079ZM64.5995 42.7079L62.9485 40.3117H63.9485L65.0617 41.9154C65.068 41.928 65.1026 41.9846 65.1655 42.0853H65.1844C65.1969 42.0664 65.2095 42.0444 65.2221 42.0192C65.2347 41.9878 65.2567 41.95 65.2881 41.906L66.3919 40.3117H67.3353L65.6655 42.7456L67.3542 45.1796H66.3542L65.2127 43.5287C65.2001 43.5098 65.1624 43.4469 65.0995 43.34H65.0806C65.0617 43.3903 65.0303 43.4501 64.9863 43.5192L63.8353 45.1796H62.9013L64.5995 42.7079ZM69.2888 42.7079L67.6379 40.3117H68.6379L69.7511 41.9154C69.7574 41.928 69.792 41.9846 69.8549 42.0853H69.8738C69.8863 42.0664 69.8989 42.0444 69.9115 42.0192C69.9241 41.9878 69.9461 41.95 69.9775 41.906L71.0813 40.3117H72.0247L70.3549 42.7456L72.0436 45.1796H71.0436L69.9021 43.5287C69.8895 43.5098 69.8517 43.4469 69.7888 43.34H69.77C69.7511 43.3903 69.7197 43.4501 69.6756 43.5192L68.5247 45.1796H67.5907L69.2888 42.7079Z",fill:"#EEBA7D"}))),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_6421_22796"},o.createElement("rect",{width:90,height:90,fill:"white"})))),qd=e=>o.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_6421_22782)"},o.createElement("path",{opacity:.2,d:"M46.4732 89.7815C70.4353 89.7815 89.8605 70.3564 89.8605 46.3942C89.8605 22.4321 70.4353 3.00696 46.4732 3.00696C22.5111 3.00696 3.08594 22.4321 3.08594 46.3942C3.08594 70.3564 22.5111 89.7815 46.4732 89.7815Z",fill:"#97C3B9"}),o.createElement("path",{d:"M44.0435 87.3468C68.0057 87.3468 87.4308 67.9217 87.4308 43.9595C87.4308 19.9974 68.0057 0.572266 44.0435 0.572266C20.0814 0.572266 0.65625 19.9974 0.65625 43.9595C0.65625 67.9217 20.0814 87.3468 44.0435 87.3468Z",stroke:"#97C3B9",strokeWidth:1.04046,strokeMiterlimit:10}),o.createElement("path",{d:"M5.11719 45.0781C5.11719 65.6012 21.7594 82.3006 42.2149 82.3006",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M9.14062 45.0781C9.14062 57.3347 15.7996 68.0619 25.6788 73.8104",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M24.0625 56.6948C24.0625 49.1878 33.0053 43.1011 44.0446 43.1011C55.0839 43.1011 64.0267 49.1878 64.0267 56.6948C64.0267 71.3861 24.0677 71.5422 24.0677 56.6948H24.0625Z",stroke:"#97C3B9",strokeWidth:.988439,strokeMiterlimit:10}),o.createElement("path",{d:"M44.0423 37.0092C48.6997 37.0092 52.4753 33.2336 52.4753 28.5763C52.4753 23.9189 48.6997 20.1433 44.0423 20.1433C39.3849 20.1433 35.6094 23.9189 35.6094 28.5763C35.6094 33.2336 39.3849 37.0092 44.0423 37.0092Z",stroke:"#97C3B9",strokeWidth:.988439,strokeMiterlimit:10}),o.createElement("path",{d:"M81.918 44.0324C81.918 23.5093 65.2758 6.80988 44.8203 6.80988",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M77.8975 44.0324C77.8975 31.7758 71.2386 21.0486 61.3594 15.3",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"})),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_6421_22782"},o.createElement("rect",{width:90,height:90,fill:"white"})))),{spendManagement:{chargeCard:{cardDetails:nt}},common:Xd}=ke.getLocalizedStrings();function Jd({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,receiptRequiredAboveAmount:g,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:b,cardsEndPoint:n,authParams:C,hideSorting:w,isOwnCard:j,uiState:y,fetchState:k,cardHolderUser:I,cardStatusCode:p="active",cardCodeType:E="business_virtual_credit_card",onReloadTransactions:S,onFetchChargeCardTransactionList:O,onColumnSortConfigChanged:H,removeSnackbar:v,onChargeCardTransactionRowClick:Y,onUploadReceiptComplete:K,onUpdateScrollYOffset:_,updateChargeCardTransactionAttachments:D,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:Q,updateChargeCardTransactionIsViewReceiptClicked:ne}){const N=Le(),Z=o.useRef(null),[W,ae]=o.useState(!1);o.useEffect(()=>{Z.current?.resetAfterIndex(0)},[N,Z]),o.useEffect(()=>{k==="Completed"&&ae(!1)},[k]);const ee=()=>N!=="small"?74:128,re=(G,$)=>{O(G,$)},se=()=>{ae(!0),re(y.pageToken,y.pageTokenType)},P=G=>G<e.length,de=()=>{y.pageToken!=null&&k==="Completed"&&se()};return t.jsxs(oc,{isOwnCard:j,windowSize:N,isEmptyTransaction:e.length===0,children:[t.jsx(nc,{windowSize:N,children:k==="Error"?t.jsxs(cc,{children:[t.jsx(lc,{onClick:S,"data-testid":J("card-transaction-list-reload"),children:t.jsx(yr,{})}),t.jsx(hc,{children:Xd.reloadPage.label})]}):k==="Not-Started"||k==="In-Progress"&&e.length===0?t.jsx(uc,{children:t.jsx(mt,{size:"ExtraLarge",start:!0})}):k==="Completed"||k==="In-Progress"&&e.length>0?p==="request_on_hold"?t.jsx(Qd,{cardType:E,cardHolderUser:I}):p==="inactive"?t.jsx(ec,{cardHolderUser:I}):e.length===0?t.jsx(Kd,{}):t.jsx(dc,{windowSize:N,children:t.jsx(Ni,{children:({height:G,width:$})=>t.jsx(Bi,{isItemLoaded:P,itemCount:e.length+1,loadMoreItems:de,children:({onItemsRendered:q})=>t.jsx(Wi,{ref:Z,height:G,itemCount:e.length,onItemsRendered:q,itemSize:ee,itemKey:B=>e[B].id,width:$,style:{willChange:"auto"},innerElementType:B=>ic(B,w,y,k,H),onScroll:({scrollOffset:B})=>{_?.(B)},initialScrollOffset:y.scrollYOffset,children:B=>t.jsx(tc,{...B,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:b,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,authParams:C,transactions:e,receiptRequiredAboveAmount:g,updateChargeCardTransactionAttachments:D,onUploadReceiptComplete:K,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:Q,updateChargeCardTransactionIsViewReceiptClicked:ne,onChargeCardTransactionRowClick:Y,removeSnackbar:v})})})})}):null}),W===!0?t.jsx(mc,{children:t.jsx(mt,{size:"Small",start:!0})}):null]})}const Kd=()=>{const e=Le();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Jr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.emptyTransactions.title}),t.jsx(sa,{windowSize:e,children:nt.transactionTable.emptyTransactions.subTitle})]})]})},Qd=({cardType:e,cardHolderUser:i})=>{const s=i!=null?i.firstName+" "+i.lastName:"",u=Le();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Cc,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.pendingProfileCompletion.title}),t.jsx(sa,{windowSize:u,children:nt.transactionTable.pendingProfileCompletion.subTitle[e].replace("__user__",s)})]})]})},ec=({cardHolderUser:e})=>{const i=Le();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Jr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.pendingActivation.title}),t.jsx(sa,{windowSize:i,children:nt.transactionTable.pendingActivation.subTitle.replace("__user__",e?.firstName??"")})]})]})},tc=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,style:u,transactions:h,isAiCategorizationEnabledForCardsTransactions:f,uploadReceiptsFetchStateByTransactionId:c,uploadReceiptsShowTickByTransactionId:g,isViewReceiptClickedImmediatelyAfterUploadTransactionId:m,cardId:x,cardsEndPoint:b,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,receiptRequiredAboveAmount:w,authParams:j,updateChargeCardTransactionAttachments:y,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:I,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:S,removeSnackbar:O})=>t.jsx(pc,{style:{...u,width:"100%"},className:"spend-management-list-item",children:t.jsx(rc,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardId:x,isAiCategorizationEnabledForCardsTransactions:f,cardsEndPoint:b,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,authParams:j,receiptRequiredAboveAmount:w,transaction:h[e],uploadReceiptsFetchState:c?.[h[e].id],uploadReceiptsShowTick:g?.[h[e].id],isViewReceiptClickedImmediatelyAfterUpload:m?.[h[e].id],updateChargeCardTransactionAttachments:y,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:I,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:S,removeSnackbar:O},h[e].id)}),ac=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,cardsEndPoint:g,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,cardId:b,receiptRequiredAboveAmount:n,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:I,onChargeCardTransactionRowClick:p,removeSnackbar:E})=>{const S=Le()==="small"?Ld:ed;return t.jsx(S,{isSnackbarOpen:s,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,transaction:e,cardId:b,receiptRequiredAboveAmount:n,cardsEndPoint:g,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:I,onChargeCardTransactionRowClick:p,removeSnackbar:E})},rc=o.memo(ac),ic=(e,i,s,u,h)=>t.jsx(Xr,{...e,onColumnSortConfigChanged:h,hideSorting:i,uiState:{sortKey:s.sortKey,sortOrder:s.sortOrder},fetchState:u}),Xr=o.forwardRef((e,i)=>{const{children:s,style:u,uiState:h,onColumnSortConfigChanged:f,hideSorting:c,...g}=e;return t.jsxs(gc,{ref:i,style:{...u,width:"auto"},...g,children:[t.jsx(Ms,{onColumnSortConfigChanged:f,sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},hideSorting:c}),t.jsx(sc,{children:s})]})});Xr.displayName="Charge Card Transaction list View inner element type";const oc=r.div`
|
|
1027
|
+
`,Xd=e=>o.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_6421_22796)"},o.createElement("mask",{id:"mask0_6421_22796",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:90,height:90},o.createElement("rect",{width:90,height:90,fill:"#D9D9D9"})),o.createElement("g",{mask:"url(#mask0_6421_22796)"},o.createElement("rect",{x:.471703,y:15.6197,width:85.2829,height:54.9872,rx:3.30192,stroke:"#97C3B9",strokeWidth:.943405}),o.createElement("rect",{opacity:.2,x:3.77344,y:18.9216,width:86.2263,height:55.9306,rx:3.77362,fill:"#97C3B9"}),o.createElement("path",{d:"M13.8672 56.8781L72.3583 56.878",stroke:"#EEBA7D",strokeWidth:.943405,strokeLinecap:"round"}),o.createElement("path",{d:"M0.945312 30.8197C34.0042 22.3291 52.539 22.3291 85.5978 30.8197",stroke:"#97C3B9",strokeWidth:.943405,strokeLinecap:"round"}),o.createElement("path",{d:"M15.688 42.7079L14.037 40.3117H15.037L16.1502 41.9154C16.1565 41.928 16.1911 41.9846 16.254 42.0853H16.2729C16.2854 42.0664 16.298 42.0444 16.3106 42.0192C16.3232 41.9878 16.3452 41.95 16.3766 41.906L17.4804 40.3117H18.4238L16.754 42.7456L18.4427 45.1796H17.4427L16.3012 43.5287C16.2886 43.5098 16.2509 43.4469 16.188 43.34H16.1691C16.1502 43.3903 16.1188 43.4501 16.0748 43.5192L14.9238 45.1796H13.9898L15.688 42.7079ZM20.3773 42.7079L18.7264 40.3117H19.7264L20.8396 41.9154C20.8459 41.928 20.8805 41.9846 20.9434 42.0853H20.9623C20.9748 42.0664 20.9874 42.0444 21 42.0192C21.0126 41.9878 21.0346 41.95 21.066 41.906L22.1698 40.3117H23.1132L21.4434 42.7456L23.1321 45.1796H22.1321L20.9906 43.5287C20.978 43.5098 20.9402 43.4469 20.8774 43.34H20.8585C20.8396 43.3903 20.8082 43.4501 20.7641 43.5192L19.6132 45.1796H18.6792L20.3773 42.7079ZM25.0667 42.7079L23.4158 40.3117H24.4158L25.529 41.9154C25.5353 41.928 25.5699 41.9846 25.6328 42.0853H25.6516C25.6642 42.0664 25.6768 42.0444 25.6894 42.0192C25.702 41.9878 25.724 41.95 25.7554 41.906L26.8592 40.3117H27.8026L26.1328 42.7456L27.8215 45.1796H26.8215L25.6799 43.5287C25.6674 43.5098 25.6296 43.4469 25.5667 43.34H25.5479C25.529 43.3903 25.4976 43.4501 25.4535 43.5192L24.3026 45.1796H23.3686L25.0667 42.7079ZM30.8057 42.2551H33.1076V42.9909H30.8057V42.2551ZM37.799 42.7079L36.1481 40.3117H37.1481L38.2613 41.9154C38.2676 41.928 38.3022 41.9846 38.3651 42.0853H38.3839C38.3965 42.0664 38.4091 42.0444 38.4217 42.0192C38.4342 41.9878 38.4563 41.95 38.4877 41.906L39.5915 40.3117H40.5349L38.8651 42.7456L40.5538 45.1796H39.5537L38.4122 43.5287C38.3996 43.5098 38.3619 43.4469 38.299 43.34H38.2802C38.2613 43.3903 38.2298 43.4501 38.1858 43.5192L37.0349 45.1796H36.1009L37.799 42.7079ZM42.4884 42.7079L40.8374 40.3117H41.8375L42.9507 41.9154C42.957 41.928 42.9916 41.9846 43.0544 42.0853H43.0733C43.0859 42.0664 43.0985 42.0444 43.111 42.0192C43.1236 41.9878 43.1456 41.95 43.1771 41.906L44.2809 40.3117H45.2243L43.5544 42.7456L45.2431 45.1796H44.2431L43.1016 43.5287C43.089 43.5098 43.0513 43.4469 42.9884 43.34H42.9695C42.9507 43.3903 42.9192 43.4501 42.8752 43.5192L41.7242 45.1796H40.7903L42.4884 42.7079ZM48.2274 42.2551H50.5293V42.9909H48.2274V42.2551ZM55.2207 42.7079L53.5697 40.3117H54.5697L55.683 41.9154C55.6892 41.928 55.7238 41.9846 55.7867 42.0853H55.8056C55.8182 42.0664 55.8308 42.0444 55.8433 42.0192C55.8559 41.9878 55.8779 41.95 55.9094 41.906L57.0132 40.3117H57.9566L56.2867 42.7456L57.9754 45.1796H56.9754L55.8339 43.5287C55.8213 43.5098 55.7836 43.4469 55.7207 43.34H55.7018C55.683 43.3903 55.6515 43.4501 55.6075 43.5192L54.4565 45.1796H53.5226L55.2207 42.7079ZM59.9101 42.7079L58.2591 40.3117H59.2591L60.3723 41.9154C60.3786 41.928 60.4132 41.9846 60.4761 42.0853H60.495C60.5076 42.0664 60.5201 42.0444 60.5327 42.0192C60.5453 41.9878 60.5673 41.95 60.5988 41.906L61.7025 40.3117H62.6459L60.9761 42.7456L62.6648 45.1796H61.6648L60.5233 43.5287C60.5107 43.5098 60.473 43.4469 60.4101 43.34H60.3912C60.3723 43.3903 60.3409 43.4501 60.2969 43.5192L59.1459 45.1796H58.2119L59.9101 42.7079ZM64.5995 42.7079L62.9485 40.3117H63.9485L65.0617 41.9154C65.068 41.928 65.1026 41.9846 65.1655 42.0853H65.1844C65.1969 42.0664 65.2095 42.0444 65.2221 42.0192C65.2347 41.9878 65.2567 41.95 65.2881 41.906L66.3919 40.3117H67.3353L65.6655 42.7456L67.3542 45.1796H66.3542L65.2127 43.5287C65.2001 43.5098 65.1624 43.4469 65.0995 43.34H65.0806C65.0617 43.3903 65.0303 43.4501 64.9863 43.5192L63.8353 45.1796H62.9013L64.5995 42.7079ZM69.2888 42.7079L67.6379 40.3117H68.6379L69.7511 41.9154C69.7574 41.928 69.792 41.9846 69.8549 42.0853H69.8738C69.8863 42.0664 69.8989 42.0444 69.9115 42.0192C69.9241 41.9878 69.9461 41.95 69.9775 41.906L71.0813 40.3117H72.0247L70.3549 42.7456L72.0436 45.1796H71.0436L69.9021 43.5287C69.8895 43.5098 69.8517 43.4469 69.7888 43.34H69.77C69.7511 43.3903 69.7197 43.4501 69.6756 43.5192L68.5247 45.1796H67.5907L69.2888 42.7079Z",fill:"#EEBA7D"}))),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_6421_22796"},o.createElement("rect",{width:90,height:90,fill:"white"})))),Jd=e=>o.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_6421_22782)"},o.createElement("path",{opacity:.2,d:"M46.4732 89.7815C70.4353 89.7815 89.8605 70.3564 89.8605 46.3942C89.8605 22.4321 70.4353 3.00696 46.4732 3.00696C22.5111 3.00696 3.08594 22.4321 3.08594 46.3942C3.08594 70.3564 22.5111 89.7815 46.4732 89.7815Z",fill:"#97C3B9"}),o.createElement("path",{d:"M44.0435 87.3468C68.0057 87.3468 87.4308 67.9217 87.4308 43.9595C87.4308 19.9974 68.0057 0.572266 44.0435 0.572266C20.0814 0.572266 0.65625 19.9974 0.65625 43.9595C0.65625 67.9217 20.0814 87.3468 44.0435 87.3468Z",stroke:"#97C3B9",strokeWidth:1.04046,strokeMiterlimit:10}),o.createElement("path",{d:"M5.11719 45.0781C5.11719 65.6012 21.7594 82.3006 42.2149 82.3006",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M9.14062 45.0781C9.14062 57.3347 15.7996 68.0619 25.6788 73.8104",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M24.0625 56.6948C24.0625 49.1878 33.0053 43.1011 44.0446 43.1011C55.0839 43.1011 64.0267 49.1878 64.0267 56.6948C64.0267 71.3861 24.0677 71.5422 24.0677 56.6948H24.0625Z",stroke:"#97C3B9",strokeWidth:.988439,strokeMiterlimit:10}),o.createElement("path",{d:"M44.0423 37.0092C48.6997 37.0092 52.4753 33.2336 52.4753 28.5763C52.4753 23.9189 48.6997 20.1433 44.0423 20.1433C39.3849 20.1433 35.6094 23.9189 35.6094 28.5763C35.6094 33.2336 39.3849 37.0092 44.0423 37.0092Z",stroke:"#97C3B9",strokeWidth:.988439,strokeMiterlimit:10}),o.createElement("path",{d:"M81.918 44.0324C81.918 23.5093 65.2758 6.80988 44.8203 6.80988",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M77.8975 44.0324C77.8975 31.7758 71.2386 21.0486 61.3594 15.3",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"})),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_6421_22782"},o.createElement("rect",{width:90,height:90,fill:"white"})))),{spendManagement:{chargeCard:{cardDetails:nt}},common:Kd}=ke.getLocalizedStrings();function Qd({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,receiptRequiredAboveAmount:g,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:b,cardsEndPoint:n,authParams:C,hideSorting:w,isOwnCard:j,uiState:y,fetchState:k,cardHolderUser:L,cardStatusCode:p="active",cardCodeType:E="business_virtual_credit_card",onReloadTransactions:S,onFetchChargeCardTransactionList:O,onColumnSortConfigChanged:H,removeSnackbar:v,onChargeCardTransactionRowClick:q,onUploadReceiptComplete:J,onUpdateScrollYOffset:U,updateChargeCardTransactionAttachments:D,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:K,updateChargeCardTransactionIsViewReceiptClicked:ne}){const N=Ie();Ni({componentName:"cards.details",enabled:k==="Completed"});const Z=o.useRef(null),[W,ae]=o.useState(!1);o.useEffect(()=>{Z.current?.resetAfterIndex(0)},[N,Z]),o.useEffect(()=>{k==="Completed"&&ae(!1)},[k]);const Q=()=>N!=="small"?74:128,re=(G,$)=>{O(G,$)},se=()=>{ae(!0),re(y.pageToken,y.pageTokenType)},z=G=>G<e.length,de=()=>{y.pageToken!=null&&k==="Completed"&&se()};return t.jsxs(sc,{isOwnCard:j,windowSize:N,isEmptyTransaction:e.length===0,children:[t.jsx(dc,{windowSize:N,children:k==="Error"?t.jsxs(hc,{children:[t.jsx(pc,{onClick:S,"data-testid":X("card-transaction-list-reload"),children:t.jsx(yr,{})}),t.jsx(uc,{children:Kd.reloadPage.label})]}):k==="Not-Started"||k==="In-Progress"&&e.length===0?t.jsx(gc,{children:t.jsx(mt,{size:"ExtraLarge",start:!0})}):k==="Completed"||k==="In-Progress"&&e.length>0?p==="request_on_hold"?t.jsx(tc,{cardType:E,cardHolderUser:L}):p==="inactive"?t.jsx(ac,{cardHolderUser:L}):e.length===0?t.jsx(ec,{}):t.jsx(lc,{windowSize:N,children:t.jsx(Bi,{children:({height:G,width:$})=>t.jsx(Wi,{isItemLoaded:z,itemCount:e.length+1,loadMoreItems:de,children:({onItemsRendered:Y})=>t.jsx(_i,{ref:Z,height:G,itemCount:e.length,onItemsRendered:Y,itemSize:Q,itemKey:B=>e[B].id,width:$,style:{willChange:"auto"},innerElementType:B=>nc(B,w,y,k,H),onScroll:({scrollOffset:B})=>{U?.(B)},initialScrollOffset:y.scrollYOffset,children:B=>t.jsx(rc,{...B,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:b,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,authParams:C,transactions:e,receiptRequiredAboveAmount:g,updateChargeCardTransactionAttachments:D,onUploadReceiptComplete:J,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:K,updateChargeCardTransactionIsViewReceiptClicked:ne,onChargeCardTransactionRowClick:q,removeSnackbar:v})})})})}):null}),W===!0?t.jsx(Cc,{children:t.jsx(mt,{size:"Small",start:!0})}):null]})}const ec=()=>{const e=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Jr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.emptyTransactions.title}),t.jsx(sa,{windowSize:e,children:nt.transactionTable.emptyTransactions.subTitle})]})]})},tc=({cardType:e,cardHolderUser:i})=>{const s=i!=null?i.firstName+" "+i.lastName:"",u=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(wc,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.pendingProfileCompletion.title}),t.jsx(sa,{windowSize:u,children:nt.transactionTable.pendingProfileCompletion.subTitle[e].replace("__user__",s)})]})]})},ac=({cardHolderUser:e})=>{const i=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Jr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.pendingActivation.title}),t.jsx(sa,{windowSize:i,children:nt.transactionTable.pendingActivation.subTitle.replace("__user__",e?.firstName??"")})]})]})},rc=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,style:u,transactions:h,isAiCategorizationEnabledForCardsTransactions:f,uploadReceiptsFetchStateByTransactionId:c,uploadReceiptsShowTickByTransactionId:g,isViewReceiptClickedImmediatelyAfterUploadTransactionId:m,cardId:x,cardsEndPoint:b,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,receiptRequiredAboveAmount:w,authParams:j,updateChargeCardTransactionAttachments:y,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:S,removeSnackbar:O})=>t.jsx(mc,{style:{...u,width:"100%"},className:"spend-management-list-item",children:t.jsx(oc,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardId:x,isAiCategorizationEnabledForCardsTransactions:f,cardsEndPoint:b,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,authParams:j,receiptRequiredAboveAmount:w,transaction:h[e],uploadReceiptsFetchState:c?.[h[e].id],uploadReceiptsShowTick:g?.[h[e].id],isViewReceiptClickedImmediatelyAfterUpload:m?.[h[e].id],updateChargeCardTransactionAttachments:y,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:S,removeSnackbar:O},h[e].id)}),ic=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,cardsEndPoint:g,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,cardId:b,receiptRequiredAboveAmount:n,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,onChargeCardTransactionRowClick:p,removeSnackbar:E})=>{const S=Ie()==="small"?Dd:ad;return t.jsx(S,{isSnackbarOpen:s,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,transaction:e,cardId:b,receiptRequiredAboveAmount:n,cardsEndPoint:g,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,onChargeCardTransactionRowClick:p,removeSnackbar:E})},oc=o.memo(ic),nc=(e,i,s,u,h)=>t.jsx(Xr,{...e,onColumnSortConfigChanged:h,hideSorting:i,uiState:{sortKey:s.sortKey,sortOrder:s.sortOrder},fetchState:u}),Xr=o.forwardRef((e,i)=>{const{children:s,style:u,uiState:h,onColumnSortConfigChanged:f,hideSorting:c,...g}=e;return t.jsxs(fc,{ref:i,style:{...u,width:"auto"},...g,children:[t.jsx(Os,{onColumnSortConfigChanged:f,sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},hideSorting:c}),t.jsx(cc,{children:s})]})});Xr.displayName="Charge Card Transaction list View inner element type";const sc=r.div`
|
|
1028
1028
|
display: block;
|
|
1029
1029
|
height: ${e=>e.isEmptyTransaction?"calc(100vh - 436px)":"calc(100vh - 224px)"};
|
|
1030
1030
|
width: 100%;
|
|
1031
|
-
`,
|
|
1031
|
+
`,dc=r.div`
|
|
1032
1032
|
height: 100%;
|
|
1033
|
-
`,
|
|
1033
|
+
`,cc=r.div`
|
|
1034
1034
|
position: relative;
|
|
1035
1035
|
width: auto;
|
|
1036
1036
|
height: 100%;
|
|
1037
|
-
`,
|
|
1037
|
+
`,lc=r.div`
|
|
1038
1038
|
height: 100%;
|
|
1039
1039
|
display: flex;
|
|
1040
1040
|
flex-direction: column;
|
|
1041
1041
|
max-width: 99.9%;
|
|
1042
|
-
`,
|
|
1042
|
+
`,hc=r.div`
|
|
1043
1043
|
display: flex;
|
|
1044
1044
|
width: 100%;
|
|
1045
1045
|
height: calc(100% - 60px);
|
|
1046
1046
|
flex-direction: column;
|
|
1047
1047
|
justify-content: center;
|
|
1048
1048
|
align-items: center;
|
|
1049
|
-
`,
|
|
1049
|
+
`,pc=r.div`
|
|
1050
1050
|
height: 96px;
|
|
1051
1051
|
width: 96px;
|
|
1052
1052
|
background: ${e=>e.theme.colors.background};
|
|
@@ -1061,15 +1061,15 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1061
1061
|
color: ${e=>e.theme.colors.primary};
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
|
-
`,
|
|
1064
|
+
`,uc=r(ea)`
|
|
1065
1065
|
margin-top: ${a.sp3};
|
|
1066
1066
|
color: ${e=>e.theme.colors.hero};
|
|
1067
|
-
`,
|
|
1067
|
+
`,mc=r.div`
|
|
1068
1068
|
top: ${a.sp0};
|
|
1069
1069
|
left: ${a.sp0};
|
|
1070
1070
|
padding-bottom: ${a.sp3};
|
|
1071
1071
|
box-sizing: border-box;
|
|
1072
|
-
`,
|
|
1072
|
+
`,gc=r.div`
|
|
1073
1073
|
display: flex;
|
|
1074
1074
|
width: 100%;
|
|
1075
1075
|
height: 100%;
|
|
@@ -1078,7 +1078,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1078
1078
|
align-items: center;
|
|
1079
1079
|
margin-top: ${a.sp3};
|
|
1080
1080
|
margin-bottom: ${a.sp3};
|
|
1081
|
-
`,
|
|
1081
|
+
`,Cc=r.div`
|
|
1082
1082
|
display: flex;
|
|
1083
1083
|
width: 100%;
|
|
1084
1084
|
height: auto;
|
|
@@ -1098,7 +1098,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1098
1098
|
display: flex;
|
|
1099
1099
|
flex-direction: column;
|
|
1100
1100
|
align-items: center;
|
|
1101
|
-
`,na=r(
|
|
1101
|
+
`,na=r(co)`
|
|
1102
1102
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
1103
1103
|
`,sa=r(Ar)`
|
|
1104
1104
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -1106,99 +1106,99 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1106
1106
|
white-space: pre;
|
|
1107
1107
|
`:null};
|
|
1108
1108
|
text-align: center;
|
|
1109
|
-
`,da=r.div``,
|
|
1109
|
+
`,da=r.div``,fc=r.div``,Jr=r(Xd)``,wc=r(Jd)``,{spendManagement:xc}=ke.getLocalizedStrings(),{cardDetails:Ne}=xc.chargeCard,bc=zr`
|
|
1110
1110
|
from {
|
|
1111
1111
|
transform: translateX(100%);
|
|
1112
1112
|
}
|
|
1113
1113
|
to {
|
|
1114
1114
|
transform: translateX(0);
|
|
1115
1115
|
}
|
|
1116
|
-
`,
|
|
1116
|
+
`,Sc=e=>{switch(e){case"slide-in-right-to-left-add-to-wallet":return bc;default:return null}},yc=r.div`
|
|
1117
1117
|
display: flex;
|
|
1118
1118
|
flex-direction: column;
|
|
1119
1119
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1120
1120
|
height: inherit;
|
|
1121
|
-
|
|
1122
|
-
animation: ${e=>
|
|
1123
|
-
`,
|
|
1121
|
+
`,$c=r(yc)`
|
|
1122
|
+
animation: ${e=>Sc(e.className)} 0.3s forwards;
|
|
1123
|
+
`,vc=({isChargeCardAdmin:e,chargeCardDetailView:i,walletType:s,secretRevealed:u,isDrawerOpen:h,vgsVaultId:f,showSecretInfo:c,changePinInProcess:g,isSandboxEnv:m,controllerEmails:x,isChargeCardFeatureEnabled:b,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:w,chargeCardCashbackDetailState:j,isCardDetailErrored:y,creditAccountRepayment:k,productInformation:L,creditAccountInformation:p,debitAccountInformation:E,cashbackInformation:S,signedInUserToken:O,selectedColor:H,showDrawerAnimation:v,cardDetailsFetchState:q,setCardDetailsFetchState:J,setIsCardDetailErrored:U,setShowSecretInfo:D,setSecretRevealed:oe,setShowChangePinPopup:K,setIsAddToWalletDrawerOpen:ne,isCardDetailFetching:N,handleColorCodeClick:Z,onFireOnClickAnalytics:W,onVerifyOtp:ae,onVerifyOtpSuccess:Q,onResendOtp:re,onFireVerifyPopOnClickAnalytics:se,onGetOtp:z})=>{const de=tt(),[G,$]=o.useState(!1),[Y,B]=o.useState(!1),le=v.current;return o.useEffect(()=>{h?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[h,v]),t.jsx(Ai,{onClose:()=>{ne(!1)},anchor:"right",open:!0,PaperProps:{style:{maxWidth:"512px",boxShadow:"none",background:"transparent"}},style:{backgroundColor:d.drawerBackground,display:h?"unset":"none"},disableScrollLock:!h,transitionDuration:250,"data-testid":X("add-card-to-wallet-drawer"),children:t.jsxs(t.Fragment,{children:[t.jsx(br,{phoneNumberPopupDescription:Ne.verifyPhoneNumberDescription,showOtpPopup:G,showPhoneNumberPopup:Y,twoFactorAuthenticationView:i.twoFAView,loggedInUserPhone:i.loggedInUserPhone,onVerifyOtp:ae,onVerifyOtpSuccess:A=>{Q(A),g?K(!0):D(!0)},onFireVerifyPopOnClickAnalytics:se,setShowOtpPopup:$,onResendOtp:re,setShowPhoneNumberPopup:B,onGetOtp:z}),t.jsxs($c,{className:le,children:[t.jsx(Ti,{title:s==="apple"?Ne.addCardToAppleWallet:Ne.addCardToGoogleWallet,style:{zIndex:4},backgroundColor:de.colors.grey4,onCloseClick:()=>ne(!1)}),t.jsxs(jc,{children:[t.jsxs(Ac,{children:[t.jsxs(Ic,{children:[t.jsx(Mc,{children:t.jsx(Oc,{})}),t.jsx(Ec,{children:Ne.openWalletAppOnPhone})]}),t.jsx(Fc,{children:s==="apple"?Ne.openWalletDescriptionApple:Ne.openWalletDescriptionGoogle}),t.jsx(Or,{isChargeCardAdmin:e,onUnlockChargeCard:()=>{},chargeCardDetailView:i,creditAccountRepayment:k,creditAccount:i.creditAccount,setShowSecretInfo:D,secretRevealed:u,isOwnCard:!0,controllerEmails:x,isChargeCardFeatureEnabled:b,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:w,chargeCardCashbackDetailState:j,isShowingInDrawer:!0,vgsVaultId:f,showSecretInfo:c,isSandboxEnv:m,isCardDetailErrored:y,signedInUserToken:O,productInformation:L,creditAccountInformation:p,debitAccountInformation:E,cashbackInformation:S,selectedColor:H,cardDetailsFetchState:q,setCardDetailsFetchState:J,setIsCardDetailErrored:U,setSecretRevealed:oe,isCardDetailFetching:N,handleColorCodeClick:Z,onFireOnClickAnalytics:W,setShowPhoneNumberForOtp:B})]}),t.jsx(Dc,{}),t.jsxs(Tc,{children:[t.jsxs(Lc,{children:[t.jsx(Pc,{children:t.jsx(Vc,{})}),t.jsx(Rc,{children:Ne.verifyCard})]}),t.jsx(kc,{children:t.jsx(zc,{children:s==="apple"?Ne.VerifyCardDescriptionApple:Ne.VerifyCardDescriptionGoogle})})]})]})]})]})})},kc=r.div`
|
|
1124
1124
|
display: flex;
|
|
1125
1125
|
justify-content: end;
|
|
1126
|
-
`,
|
|
1126
|
+
`,jc=r.div`
|
|
1127
1127
|
margin: ${a.sp3} ${a.sp8};
|
|
1128
|
-
`,
|
|
1128
|
+
`,Ic=r.div`
|
|
1129
1129
|
display: flex;
|
|
1130
1130
|
align-items: center;
|
|
1131
1131
|
gap: ${a.sp3};
|
|
1132
|
-
`,
|
|
1132
|
+
`,Lc=r.div`
|
|
1133
1133
|
display: flex;
|
|
1134
1134
|
align-items: center;
|
|
1135
1135
|
gap: ${a.sp3};
|
|
1136
|
-
`,
|
|
1136
|
+
`,Dc=r.div`
|
|
1137
1137
|
height: ${a.sp4};
|
|
1138
1138
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
1139
1139
|
width: ${a.sp0};
|
|
1140
1140
|
margin-left: ${a.sp8};
|
|
1141
|
-
`,
|
|
1141
|
+
`,Ac=r.div`
|
|
1142
1142
|
background-color: ${e=>e.theme.colors.grey5};
|
|
1143
1143
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1144
1144
|
border-radius: ${a.sp2};
|
|
1145
1145
|
padding: ${a.sp4} ${a.sp5};
|
|
1146
1146
|
box-shadow: ${a.sp0} 1px 2px
|
|
1147
1147
|
${e=>e.theme.colors.dropShadowNormal};
|
|
1148
|
-
`,
|
|
1148
|
+
`,Tc=r.div`
|
|
1149
1149
|
background-color: ${e=>e.theme.colors.grey5};
|
|
1150
1150
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1151
1151
|
border-radius: ${a.sp2};
|
|
1152
1152
|
padding: ${a.sp4} ${a.sp5};
|
|
1153
1153
|
box-shadow: ${a.sp0} 1px 2px
|
|
1154
1154
|
${e=>e.theme.colors.dropShadowNormal};
|
|
1155
|
-
`,
|
|
1155
|
+
`,Ec=r(aa)`
|
|
1156
1156
|
color: ${e=>e.theme.colors.primary};
|
|
1157
|
-
`,
|
|
1157
|
+
`,Fc=r(Oe)`
|
|
1158
1158
|
color: ${e=>e.theme.colors.hero};
|
|
1159
1159
|
margin-left: ${a.sp9};
|
|
1160
1160
|
padding-bottom: ${a.sp4};
|
|
1161
1161
|
`,Rc=r(aa)`
|
|
1162
1162
|
color: ${e=>e.theme.colors.primary};
|
|
1163
|
-
`,
|
|
1163
|
+
`,zc=r(Oe)`
|
|
1164
1164
|
color: ${e=>e.theme.colors.hero};
|
|
1165
1165
|
max-width: 274px;
|
|
1166
|
-
`,
|
|
1166
|
+
`,Pc=r.div`
|
|
1167
1167
|
padding: 12px;
|
|
1168
1168
|
border-radius: ${a.sp4};
|
|
1169
1169
|
background: ${d.successLight};
|
|
1170
1170
|
display: flex;
|
|
1171
|
-
`,
|
|
1171
|
+
`,Mc=r.div`
|
|
1172
1172
|
padding: 12px;
|
|
1173
1173
|
border-radius: ${a.sp4};
|
|
1174
1174
|
background: ${e=>e.theme.colors.graphColor16Light};
|
|
1175
1175
|
display: flex;
|
|
1176
|
-
`,
|
|
1176
|
+
`,Vc=r(Yi)`
|
|
1177
1177
|
width: ${a.sp4};
|
|
1178
1178
|
height: ${a.sp4};
|
|
1179
|
-
`,
|
|
1179
|
+
`,Oc=r(Lo)`
|
|
1180
1180
|
width: ${a.sp4};
|
|
1181
1181
|
height: ${a.sp4};
|
|
1182
1182
|
color: ${e=>e.theme.colors.graphColor16Dark};
|
|
1183
|
-
`,{spendManagement:{chargeCard:{cardDetails:Je}},common:{strings:
|
|
1183
|
+
`,{spendManagement:{chargeCard:{cardDetails:Je}},common:{strings:Hc}}=ke.getLocalizedStrings(),ca={iFrameWidth:new T(188,188)};function Nc({isSandboxEnv:e,cardProviderID:i,vgsVaultId:s,signedInUserToken:u,onCancelClick:h,onUpdateDebitCardPinAttempt:f,onChangePinSuccess:c}){const g=Ie(),m=tt(),[x,b]=o.useState({}),[n,C]=o.useState(!1),[w,j]=o.useState(!1),[y,k]=o.useState(!0),[L,p]=o.useState(!0),[E,S]=o.useState(!1),[O,H]=o.useState(!1),[v,q]=o.useState(!1),[J,U]=o.useState(!1),[D,oe]=o.useState(!1),[K,ne]=o.useState(!1),[N,Z]=o.useState(!1),[W,ae]=o.useState(null),[Q,re]=o.useState(null),[se]=Sr("https://js.verygoodvault.com/vgs-collect/2.27.0/vgs-collect.js"),z=e?"SANDBOX":"live";o.useEffect(()=>{if(se){const $=window.VGSCollect.create(s,z,le=>{const A=le["data.attributes.oldPin"],P=le["data.attributes.newPin"];A?.isTouched===!0&&A?.isValid===!1&&A?.isFocused===!1?U(!0):(A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!1||A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!0)&&(U(!1),Z(!1)),P?.isTouched===!0&&P?.isValid===!1&&P?.isFocused===!1?oe(!0):(P?.isTouched===!0&&P?.isValid===!0&&P?.isFocused===!1||P?.isTouched===!0&&P?.isValid===!0&&P?.isFocused===!0)&&oe(!1)}),Y=$.field("#oldPin",{type:"text",name:"data.attributes.oldPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{..._.standardRegular.cssObject,border:"none",boxSizing:"border-box",color:m.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:m.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:d.important,background:d.importantLight},"&:focus":{background:`${m.colors.background} !important`,textAlign:"left",color:`${m.colors.primary} !important`}}}),B=$.field("#newPin",{type:"text",name:"data.attributes.newPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{..._.standardRegular.cssObject,border:"none",boxSizing:"border-box",color:m.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:m.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:d.important,background:d.importantLight},"&:focus":{background:`${m.colors.background} !important`,textAlign:"left",color:`${m.colors.primary} !important`}}});ae(Y),re(B),b($),Promise.all([Y.promise,B.promise]).then(function(){j(!0)})}},[se]),o.useEffect(()=>{W?.update({hideValue:y})},[W,y]),o.useEffect(()=>{Q?.update({hideValue:L})},[Q,L]);const de=$=>{C(!0),Z(!1),x.submit?.("/cards/"+i+"/secure-data/pin",{method:"PUT",mapDotToObject:"true",headers:{"Content-Type":"application/vnd.api+json",Authorization:"Bearer "+$?.token}},function(Y,B){Y===200?(S(!1),H(!1),c(),f("success")):(U(!0),f("failed"),B.errors?.[0].title.toLowerCase().includes("max")?ne(!0):B.errors?.[0].title.toLowerCase().includes("invalid")&&Z(!0),C(!1))},Y=>{console.log("error",Y),C(!1)})},G={onOkClick:()=>{if(!x.state)return;const $=x.state["data.attributes.newPin"]?.isValid,Y=x.state["data.attributes.oldPin"]?.isValid;q(!0),$===!0&&Y===!0&&de(u)},onCancelClick:h};return t.jsx(Li,{titleComponent:t.jsx(Bc,{children:Je.moreOptions.changePin}),descriptionComponent:t.jsxs(Wc,{children:[t.jsxs(qc,{children:[t.jsxs(pr,{showFieldError:J,windowSize:g,isFirstField:!0,validation:v,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),oldPinInputHighlighted:E,children:[t.jsx(cr,{children:Je.existingPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(Gc,{id:"oldPin",className:"cc-old-pin-form-field",windowSize:g}),t.jsx(nr,{onClick:()=>k(!y),"data-testid":X("cc-old-pin-show-text"),children:y?t.jsx(sr,{}):t.jsx(dr,{})})]})]}),t.jsx(Uc,{}),t.jsxs(pr,{showFieldError:D,windowSize:g,isFirstField:!1,validation:v,onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),newPinInputHighlighted:O,children:[t.jsx(cr,{children:Je.newPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(Zc,{id:"newPin",className:"cc-new-pin-form-field",windowSize:g}),t.jsx(nr,{onClick:()=>p(!L),"data-testid":X("cc-new-pin-show-text"),children:L?t.jsx(sr,{}):t.jsx(dr,{})})]})]})]}),N?t.jsx(hr,{children:Je.incorrectCurrentPIN}):null,K?t.jsx(hr,{children:Je.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:w===!1||K,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:G,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(Di,{children:[t.jsx(_c,{children:Je.forgotYourPin}),Hc.space,Je.callTollFree]})})}const Bc=r(qi)`
|
|
1184
1184
|
margin-top: ${a.sp7};
|
|
1185
1185
|
padding-left: ${a.sp8};
|
|
1186
1186
|
padding-right: ${a.sp8};
|
|
1187
1187
|
color: ${e=>e.theme.colors.primary};
|
|
1188
1188
|
word-break: break-word;
|
|
1189
|
-
`,
|
|
1189
|
+
`,Wc=r(Ui)`
|
|
1190
1190
|
margin-top: ${a.sp5};
|
|
1191
1191
|
margin-bottom: ${a.sp5};
|
|
1192
|
-
`,
|
|
1192
|
+
`,_c=r.span`
|
|
1193
1193
|
color: ${e=>e.theme.colors.primary};
|
|
1194
1194
|
`,nr=r.div`
|
|
1195
1195
|
cursor: pointer;
|
|
1196
1196
|
margin-left: ${a.sp2};
|
|
1197
|
-
`,sr=r(
|
|
1197
|
+
`,sr=r(Zi)`
|
|
1198
1198
|
height: ${a.sp4};
|
|
1199
1199
|
width: ${a.sp4};
|
|
1200
1200
|
color: ${e=>e.theme.colors.hero};
|
|
1201
|
-
`,dr=r(
|
|
1201
|
+
`,dr=r(Gi)`
|
|
1202
1202
|
height: ${a.sp4};
|
|
1203
1203
|
width: ${a.sp4};
|
|
1204
1204
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -1216,21 +1216,21 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1216
1216
|
align-items: center;
|
|
1217
1217
|
text-align: right;
|
|
1218
1218
|
margin-top: ${a.sp3};
|
|
1219
|
-
`,
|
|
1219
|
+
`,Uc=r.div`
|
|
1220
1220
|
display: flex;
|
|
1221
1221
|
flex: 1;
|
|
1222
1222
|
background-color: ${e=>e.theme.colors.grey3};
|
|
1223
1223
|
min-height: 1px;
|
|
1224
1224
|
max-height: 1px;
|
|
1225
|
-
`,
|
|
1225
|
+
`,Zc=r.div`
|
|
1226
1226
|
border-radius: ${a.sp1};
|
|
1227
1227
|
height: ${a.sp6};
|
|
1228
1228
|
width: ${e=>ca.iFrameWidth.valuePx(e.windowSize)};
|
|
1229
|
-
`,
|
|
1229
|
+
`,Gc=r.div`
|
|
1230
1230
|
border-radius: ${a.sp1};
|
|
1231
1231
|
height: ${a.sp6};
|
|
1232
1232
|
width: ${e=>ca.iFrameWidth.valuePx(e.windowSize)};
|
|
1233
|
-
`,
|
|
1233
|
+
`,qc=r.div`
|
|
1234
1234
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1235
1235
|
border-radius: ${a.sp2};
|
|
1236
1236
|
`,pr=r.div`
|
|
@@ -1272,15 +1272,15 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1272
1272
|
background: ${e.theme.colors.background};
|
|
1273
1273
|
}
|
|
1274
1274
|
`:null}
|
|
1275
|
-
`,Ee={bottomContentContainerPadding:new T(l[3],l[8]),styledAIIconContainerSize:new T(l[3],l[3]),bannerWrapperMarginLeftRight:new T(l[3],l[8]),payNowSectionPaddingLeftRight:new T(l[3],l[0]),styledHighImportanceIconMarginRight:new T(l[0],l[1])},{common:Ie,spendManagement:Gc,dateFormat:Yc}=ke.getLocalizedStrings(),ue=Gc.chargeCard,Nl=({chargeCardDetailView:e,onUnlockChargeCard:i,onCloseChargeCard:s,cardsEndPoint:u,classListFetchState:h,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,cardId:x,vgsVaultId:b,controllerEmails:n,isCardControlsEnabled:C,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:I,onFetchChargeCardsRecurringExpenses:p,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,cardIssuedByRoles:Y,cardIssuedByDepartmentName:K,cardHolderRoles:_,cardHolderDepartmentName:D,loggedInUserRole:oe,appleWalletLink:Q,googleWalletLink:ne,signedInUser:N,signedInUserToken:Z,chargeCardsRecurringExpensesState:W,isSandboxEnv:ae,isEarlyPayEnabled:ee,documentAiReceiptMaxSizeLimit:re,isSnackbarOpen:se,onFireOnClickAnalytics:P,onUpdateDebitCardPinAttempt:de,onFireVerifyPopOnClickAnalytics:G,onBackClick:$,onReloadTransactions:q,onFetchChargeCardTransactionList:B,onGetOtp:le,onLockChargeCard:A,onResendOtp:z,onVerifyOtp:ce,updateChargeCardName:ie,onVerifyOtpSuccess:L,onColorCodeChange:je,onColumnSortConfigChanged:Ce,updateChargeCardTransactionAttachments:Fe,updateChargeCardTransactionUploadReceiptsFetchStatus:X,updateChargeCardTransactionReceiptsShowTick:te,updateChargeCardTransactionIsViewReceiptClicked:M,onUploadReceiptComplete:be,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onChargeCardRevokeInviteClick:He,onUpdateScrollYOffset:Ye,updateSpendLimit:at,shouldOpenCreditCardPaymentDrawer:pe})=>{const R=o.useRef(!0),he=tt(),F=Le(),qe=Lt(),Pe=It().analytics,[,dt]=wr(),[ze,ft]=o.useState(!1),[ct,wt]=o.useState(!1),[xt,Me]=o.useState(!1),[lt,Te]=o.useState(!1),[fe,ht]=o.useState(!1),[Tt,la]=o.useState(!1),[Qr,ei]=o.useState(!1),[ti,ha]=o.useState(!1),[ai,bt]=o.useState(!1),[ri,Rt]=o.useState(!1),[ii,St]=o.useState(!1),[oi,yt]=o.useState(!1),[rt,Et]=o.useState(!1),[pa,Ft]=o.useState(!1),[ua,ma]=o.useState(!1),[ni,ga]=o.useState(!1),[si,di]=o.useState("apple"),[Ca,fa]=o.useState({number:!1,cvv:!1});o.useEffect(()=>{rt===!1&&Ft(!1)},[rt]);const wa=o.useRef("noAnimation"),Be=e.chargeCard?.cardHolderUserId===N.userId,Pt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,xa=e.chargeCard?.billingAddress,Se=At(qe.loggedInUserRoleMap),{text1:ci,text2:li}=ki(xa),ba=`${ci} ${li}`,zt=e.chargeCard?.isDeclinedTransaction===!0,hi=()=>{Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:I,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:Pe,controllerEmails:n,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),dt(e.chargeCardConfig.receiptBotEmail),ft(!0)},pi=()=>{P("card owner copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:I,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:Pe,controllerEmails:n,actionField:"Card Owner",actionDetails:Pt}),dt(Pt),ht(!0)},ui=()=>{P("billing address copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:I,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:Pe,controllerEmails:n,actionField:"Billing Address",actionDetails:ba}),dt(ba),la(!0)};o.useEffect(()=>{ze===!0&&setTimeout(()=>{ft(!1)},800),fe===!0&&setTimeout(()=>{ht(!1)},800),Tt===!0&&setTimeout(()=>{la(!1)},800)},[fe,Tt,ze]);const[$l,mi]=o.useState(!1),[Sa,ya]=o.useState(e.chargeCard?.cardColorCode!=null?new Qe(e.chargeCard.cardColorCode):void 0);o.useEffect(()=>{e.chargeCard?.cardColorCode!=null&&ya(new Qe(e.chargeCard.cardColorCode))},[e.chargeCard?.cardColorCode]);const $a={amount:e.chargeCard!=null?e.chargeCard.balance.amount:0,currencyCode:e.chargeCard!=null?e.chargeCard.balance.currencyCode:Ie.currency.countryCode,currencySymbol:e.chargeCard!=null?e.chargeCard.balance.currencySymbol:Ie.currency.currencySymbol};o.useEffect(()=>{R.current===!0?R.current=!1:P(rt===!1?"card details hidden":"card detail revealed")},[rt]);const va=(V,ye)=>{if(ye===!0){const We=Ri(V.toString())??Ie.strings.empty;P("color selected",We),je(We),mi(!1)}ya(V)},ka=V=>{const{cvv:ye,number:We}=V;return ye===!0||We===!0},{isMobileOrTabletScreen:ja}=xr(),Mt=e.chargeCard?.status.code!=="request_on_hold"&&e.chargeCard?.status.code!=="inactive",Vt=e.updateChargeCardLimitFetchState.fetchState,Ot=e.updateChargeCardNameFetchState.fetchState,Ht=e.lockChargeCardsFetchState.fetchState,Nt=e.closeChargeCardsFetchState.fetchState,La=et(Vt),Ia=et(Ot),Da=et(Ht),Aa=et(Nt);o.useEffect(()=>{La==="In-Progress"&&Vt==="Completed"?bt(!1):Ia==="In-Progress"&&Ot==="Completed"?Rt(!1):Da==="In-Progress"&&Ht==="Completed"?St(!1):Aa==="In-Progress"&&Nt==="Completed"&&yt(!1)},[Vt,Ot,Ht,Nt,La,Ia,Da,Aa]);const De=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",gi=Se&&(e.chargeCard?.status.code==="active"||e.chargeCard?.status.code==="locked")&&$a.amount<(De?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit.amount??0:e.creditAccount.limit.amount),Ci=e.creditAccountRepayment.initiatedRepayments.amount>0&&Se&&zt,fi=()=>{if(!C)return[{value:"changePin",label:ue.cardDetails.moreOptions.changePin}];const V=[{value:"changePin",label:ue.cardDetails.moreOptions.changePin},{value:"unlock",label:ue.cardDetails.moreOptions.unlock},{value:"updateSpendLimit",label:ue.cardDetails.moreOptions.updateSpendLimit},{value:"rename",label:ue.cardDetails.moreOptions.rename},{value:"lock",label:ue.cardDetails.moreOptions.lock},{value:"close",label:ue.cardDetails.moreOptions.close},{value:"revokeInvite",label:ue.cardDetails.moreOptions.revokeInvite}],ye=e.chargeCard?.status.code,We=ye==="locked",Si=ye==="inactive",yi=ye==="request_on_hold",$i=e.chargeCard?.isLockedByAdmin===!0,Ea=De&&Be,$t=Se;if(yi){const Ve=[];return $t&&Ve.push("revokeInvite"),Ve.push("rename"),V.filter(Bt=>Ve.includes(Bt.value))}if(Si){const Ve=[];return Ve.push("rename"),Ea&&Ve.push("changePin"),$t&&Ve.push("close"),V.filter(Bt=>Ve.includes(Bt.value))}const vi={changePin:Ea&&!We,lock:!We,unlock:We&&(Se||!$i),rename:!0,updateSpendLimit:$t,close:$t};return V.filter(Ve=>vi[Ve.value])},Ta=t.jsx("div",{children:t.jsx(ji,{entity:"debit_cards",isDisabled:e.unlockChargeCardsFetchState.fetchState==="In-Progress"?"disabled":void 0,onOptionSelection:V=>{V==="changePin"?(Z==null||Z.expiry.isBefore(new Date)?le(e.loggedInUserPhone):Te(!0),Me(!0)):V==="updateSpendLimit"?bt(!0):V==="rename"?Rt(!0):V==="lock"?(St(!0),p()):V==="close"?(yt(!0),p()):V==="unlock"?i(Se):V==="revokeInvite"&&He()},isMoreOption:!0,options:fi(),customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),valueContainer:V=>({...V,display:"flex",alignItems:"center"})}})}),Ra=V=>V.reasonType==="other"?V.reason:V.reasonType,wi=V=>{const ye=Ra(V);A(Se,ye)},xi=V=>{const ye=Ra(V);s(ye)},bi=()=>{const V=e.chargeCard?.status.code;if(V==="closed"||V==="closed_by_customer")return null;if(!C)return Be&&De?Ta:null;if(!Be&&!Se)return null;const ye=e.chargeCard?.isLockedByAdmin===!0;return Be&&!Se&&ye&&V==="locked"?null:Ta};return t.jsxs(dl,{children:[ii&&e.chargeCard!=null&&t.jsx(Fo,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>St(!1),isChargeCardAdmin:Se,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:wi,onDismissClick:()=>St(!1),onRemoveCardClick:()=>{}}),oi&&e.chargeCard!=null&&t.jsx(Po,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>yt(!1),isChargeCardAdmin:Se,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,closeCardFetchState:e.closeChargeCardsFetchState.fetchState,onConfirmClick:xi,onDismissClick:()=>yt(!1),onRemoveCardClick:()=>{}}),lt&&e.chargeCard?.cardProviderID!=null?t.jsx(Oc,{signedInUserToken:Z,vgsVaultId:b,onCancelClick:()=>{Te(!1),Me(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{Te(!1),Me(!0)},onUpdateDebitCardPinAttempt:de}):null,ja?null:t.jsx(yc,{isChargeCardAdmin:Se,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:I,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:e.creditAccount,selectedColor:Sa,walletType:si,onFireOnClickAnalytics:P,isSandboxEnv:ae,chargeCardDetailView:e,vgsVaultId:b,signedInUserToken:Z,showSecretInfo:rt,changePinInProcess:xt,setShowChangePinPopup:Te,isCardDetailErrored:ua,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,isCardDetailFetching:ka,handleColorCodeClick:va,isDrawerOpen:ni,setIsAddToWalletDrawerOpen:ga,onVerifyOtp:ce,onVerifyOtpSuccess:L,onFireVerifyPopOnClickAnalytics:G,onResendOtp:z,setShowSecretInfo:Et,secretRevealed:pa,setSecretRevealed:Ft,onGetOtp:le,showDrawerAnimation:wa}),t.jsx(Li,{rightSideComponent:bi(),navBarContainerStyles:{paddingTop:l[2],alignItems:"center",paddingBottom:l[2]},source:"ChargeCardDetailPage",title:e.chargeCard?.cardName??Ie.strings.empty,subTitle:e.fetchState==="Completed"&&e.chargeCard!=null?t.jsx(Eo,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:he.colors.grey5,style:{zIndex:3},onBackClick:$,titleStyle:{marginTop:l[0],...F==="small"&&{textAlign:"left"}},leftComponentStyle:F==="small"?{width:"10%"}:void 0,middleComponentStyle:F==="small"?{width:"80%"}:void 0,rightComponentStyle:F==="small"?{width:"10%"}:void 0}),t.jsx(br,{phoneNumberPopupDescription:ue.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Qr,showPhoneNumberPopup:ti,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:ce,onVerifyOtpSuccess:V=>{L(V),xt?Te(!0):Et(!0)},onFireVerifyPopOnClickAnalytics:G,setShowOtpPopup:ei,onResendOtp:z,setShowPhoneNumberPopup:ha,onGetOtp:le}),ri&&t.jsx(zo,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Rt(!1),onSubmitClick:V=>{e.chargeCard&&ie(Se,V)}}),ai&&e.chargeCard!=null?t.jsx(Mo,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,cardDetail:e.chargeCard,transactionStatistics:e.transactionStatistics,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,signedInUser:N,isDebitCard:De,cardIssuedByRoles:Y,cardHolderRoles:_,loggedInUserRole:oe,cardIssuedByDepartmentName:K,cardHolderDepartmentName:D,classListFetchState:h,currentLimitAmount:e.chargeCard?.limit??{amount:0,currencyCode:Ie.currency.countryCode,currencySymbol:Ie.currency.currencySymbol},currentSpentAmount:e.chargeCard?.balance??{amount:0,currencyCode:Ie.currency.countryCode,currencySymbol:Ie.currency.currencySymbol},maxLimitAmount:De?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:e.creditAccount.limit,isDisabled:De&&e.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>bt(!1),onSubmitClick:V=>{if(e.chargeCard){const ye={amount:V,currencyCode:e.chargeCard.limit.currencyCode,currencySymbol:e.chargeCard.limit.currencySymbol};at(e.chargeCard.id,ye,e.chargeCard.creditLimitFrequency,Ge("0,0.[00]",ye))}},recommendations:e?.chargeCard?.recommendations}):null,e.fetchState==="Error"?t.jsxs(al,{windowSize:F,children:[t.jsx(ol,{onClick:q,"data-testid":J("reload-card-detail"),children:t.jsx(sl,{})}),t.jsx(nl,{children:Ie.reloadPage.label})]}):t.jsxs(qc,{children:[t.jsx(es,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,isDebitCard:De,chargeCardCashbackDetailState:I,cardIssuedByRoles:Y,cardIssuedByDepartmentName:K,cardHolderRoles:_,cardHolderDepartmentName:D,classListFetchState:h,chargeCardDetailView:e,spent:$a,isCardNotPending:Mt,cardOwnerName:Pt,appleWalletLink:Q,googleWalletLink:ne,addressToShow:xa,secretRevealed:pa,isOwnCard:Be,vgsVaultId:b,showSecretInfo:rt,isSandboxEnv:ae,isCardDetailErrored:ua,signedInUserToken:Z,selectedColor:Sa,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,setSecretRevealed:Ft,isCardDetailFetching:ka,handleColorCodeClick:va,onFireOnClickAnalytics:P,setShowPhoneNumberPopup:ha,setShowChangeSpendLimitPopup:bt,setShowSecretInfo:Et,isOwnerNameCopied:fe,isAddressCopied:Tt,onOwnerNameCopyClick:pi,onAddressCopyClick:ui,showUpdateSpendLimitAction:gi,onUnlockChargeCard:i}),ee?Ci?t.jsxs(Jc,{windowSize:F,children:[t.jsx(pl,{}),t.jsx(Qc,{children:` ${ue.payEarly.paymentOf} ${Ge("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${ue.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(Yc.visual.MMMDFormat)} ${ue.payEarly.isProcessing} ${ue.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):zt?Se?t.jsxs(Kr,{onClick:()=>{pe(!0)},windowSize:F,children:[t.jsx(ur,{windowSize:F}),t.jsxs(rl,{children:[t.jsx(mr,{children:ue.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(el,{className:"pay-now-button",children:[ue.payEarly.payNow,t.jsx(Kc,{})]})]})]}):t.jsxs(Xc,{windowSize:F,children:[t.jsx(ur,{windowSize:F}),t.jsx(il,{children:t.jsx(mr,{children:ue.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,Be&&F!=="small"&&Mt&&De===!1?t.jsx(Vo,{style:{marginTop:zt?a.sp5:a.sp4},classListFetchState:h,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardDetailView:e,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,cardIssuedByRoles:Y,cardHolderRoles:_,cardIssuedByDepartmentName:K,cardHolderDepartmentName:D,isDebitCard:De,appleWalletLink:Q,googleWalletLink:ne,setWalletType:di,setIsAddToWalletDrawerOpen:ga,showDrawerAnimation:wa}):null,t.jsxs(yl,{windowSize:F,isOwnCard:Be,isMobileOrTabletScreen:ja,children:[Mt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(ll,{windowSize:F,children:[ue.cardDetails.transactionListTitle,t.jsx(Qt,{display:"flex",placement:"right",title:t.jsx(ul,{children:ue.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(hl,{})})]}),t.jsxs(ml,{windowSize:F,children:[t.jsx(wl,{windowSize:F,children:t.jsx(xl,{})}),t.jsxs(cl,{windowSize:F,children:[t.jsxs(gl,{children:[t.jsx(tl,{children:ue.aiCardAgentText}),Ie.strings.space,ue.receiptBotMessage,Ie.strings.space]}),t.jsxs(fl,{"data-testid":J("charge-card-detail-copy-email"),onClick:hi,onMouseEnter:()=>wt(!0),onMouseLeave:()=>wt(!1),children:[t.jsx(Cl,{children:e.chargeCardConfig.receiptBotEmail}),ze===!0?t.jsxs(Cr,{children:[t.jsx(Sl,{}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct||ze,color:d.primaryDark,children:Ie.copyToClipBoard.copied})})]}):t.jsxs(Cr,{children:[t.jsx(bl,{color:ct?he.colors.primary:void 0}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct&&F!=="small",children:Ie.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(Jd,{cardStatusCode:e.chargeCard?.status.code,cardCodeType:e.chargeCard?.type.code,cardId:x,documentAiReceiptMaxSizeLimit:re,uploadReceiptsFetchStateByTransactionId:e.uploadReceiptsFetchStateByTransactionId,isSnackbarOpen:se,uploadReceiptsShowTickByTransactionId:e.uploadReceiptsShowTickByTransactionId,isViewReceiptClickedImmediatelyAfterUploadTransactionId:e.isViewReceiptClickedImmediatelyAfterUploadTransactionId,receiptRequiredAboveAmount:e.chargeCardConfig.receiptRequiredAboveAmount,cardsEndPoint:u,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,transactions:e.transactions,cardHolderUser:e.chargeCard?.cardHolderUser,uiState:e.uiState,fetchState:e.transactionListFetchState.fetchState,isAiCategorizationEnabledForCardsTransactions:e.chargeCardConfig.isAiCategorizationEnabledForCardsTransactions,onReloadTransactions:q,onFetchChargeCardTransactionList:B,isOwnCard:Be,onColumnSortConfigChanged:Ce,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onUpdateScrollYOffset:Ye,onUploadReceiptComplete:be,updateChargeCardTransactionAttachments:Fe,updateChargeCardTransactionUploadReceiptsFetchStatus:X,updateChargeCardTransactionReceiptsShowTick:te,updateChargeCardTransactionIsViewReceiptClicked:M})]})]})]})},Xt=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:s,productInformation:u,cashbackInformation:h,creditAccountInformation:f,debitAccountInformation:c,creditAccount:g,creditAccountRepayment:m,isDebitCard:x,isChargeCardAdmin:b,analytics:n,controllerEmails:C,actionDetails:w,actionField:j})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!s||g.fetchState==="Completed"&&m.fetchState==="Completed")&&(!(x&&b)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(C,u,"Cards Detail","Copy","copied",j,w,h,f,c)},qc=r.div``,Kr=r.div`
|
|
1275
|
+
`,Fe={bottomContentContainerPadding:new T(l[3],l[8]),styledAIIconContainerSize:new T(l[3],l[3]),bannerWrapperMarginLeftRight:new T(l[3],l[8]),payNowSectionPaddingLeftRight:new T(l[3],l[0]),styledHighImportanceIconMarginRight:new T(l[0],l[1])},{common:Le,spendManagement:Yc,dateFormat:Xc}=ke.getLocalizedStrings(),ue=Yc.chargeCard,Wl=({chargeCardDetailView:e,onUnlockChargeCard:i,onCloseChargeCard:s,cardsEndPoint:u,classListFetchState:h,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,cardId:x,vgsVaultId:b,controllerEmails:n,isCardControlsEnabled:C,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:L,onFetchChargeCardsRecurringExpenses:p,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,cardIssuedByRoles:q,cardIssuedByDepartmentName:J,cardHolderRoles:U,cardHolderDepartmentName:D,loggedInUserRole:oe,appleWalletLink:K,googleWalletLink:ne,signedInUser:N,signedInUserToken:Z,chargeCardsRecurringExpensesState:W,isSandboxEnv:ae,isEarlyPayEnabled:Q,documentAiReceiptMaxSizeLimit:re,isSnackbarOpen:se,onFireOnClickAnalytics:z,onUpdateDebitCardPinAttempt:de,onFireVerifyPopOnClickAnalytics:G,onBackClick:$,onReloadTransactions:Y,onFetchChargeCardTransactionList:B,onGetOtp:le,onLockChargeCard:A,onResendOtp:P,onVerifyOtp:ce,updateChargeCardName:ie,onVerifyOtpSuccess:I,onColorCodeChange:je,onColumnSortConfigChanged:Ce,updateChargeCardTransactionAttachments:Re,updateChargeCardTransactionUploadReceiptsFetchStatus:te,updateChargeCardTransactionReceiptsShowTick:ee,updateChargeCardTransactionIsViewReceiptClicked:M,onUploadReceiptComplete:be,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onChargeCardRevokeInviteClick:He,onUpdateScrollYOffset:qe,updateSpendLimit:at,shouldOpenCreditCardPaymentDrawer:pe})=>{const F=o.useRef(!0),he=tt(),R=Ie(),Ye=It(),ze=Lt().analytics,[,dt]=wr(),[Pe,ft]=o.useState(!1),[ct,wt]=o.useState(!1),[xt,Me]=o.useState(!1),[lt,Te]=o.useState(!1),[fe,ht]=o.useState(!1),[Tt,la]=o.useState(!1),[Qr,ei]=o.useState(!1),[ti,ha]=o.useState(!1),[ai,bt]=o.useState(!1),[ri,Et]=o.useState(!1),[ii,St]=o.useState(!1),[oi,yt]=o.useState(!1),[rt,Ft]=o.useState(!1),[pa,Rt]=o.useState(!1),[ua,ma]=o.useState(!1),[ni,ga]=o.useState(!1),[si,di]=o.useState("apple"),[Ca,fa]=o.useState({number:!1,cvv:!1});o.useEffect(()=>{rt===!1&&Rt(!1)},[rt]);const wa=o.useRef("noAnimation"),Be=e.chargeCard?.cardHolderUserId===N.userId,zt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,xa=e.chargeCard?.billingAddress,Se=At(Ye.loggedInUserRoleMap),{text1:ci,text2:li}=ki(xa),ba=`${ci} ${li}`,Pt=e.chargeCard?.isDeclinedTransaction===!0,hi=()=>{Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:ze,controllerEmails:n,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),dt(e.chargeCardConfig.receiptBotEmail),ft(!0)},pi=()=>{z("card owner copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:ze,controllerEmails:n,actionField:"Card Owner",actionDetails:zt}),dt(zt),ht(!0)},ui=()=>{z("billing address copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:ze,controllerEmails:n,actionField:"Billing Address",actionDetails:ba}),dt(ba),la(!0)};o.useEffect(()=>{Pe===!0&&setTimeout(()=>{ft(!1)},800),fe===!0&&setTimeout(()=>{ht(!1)},800),Tt===!0&&setTimeout(()=>{la(!1)},800)},[fe,Tt,Pe]);const[kl,mi]=o.useState(!1),[Sa,ya]=o.useState(e.chargeCard?.cardColorCode!=null?new Qe(e.chargeCard.cardColorCode):void 0);o.useEffect(()=>{e.chargeCard?.cardColorCode!=null&&ya(new Qe(e.chargeCard.cardColorCode))},[e.chargeCard?.cardColorCode]);const $a={amount:e.chargeCard!=null?e.chargeCard.balance.amount:0,currencyCode:e.chargeCard!=null?e.chargeCard.balance.currencyCode:Le.currency.countryCode,currencySymbol:e.chargeCard!=null?e.chargeCard.balance.currencySymbol:Le.currency.currencySymbol};o.useEffect(()=>{F.current===!0?F.current=!1:z(rt===!1?"card details hidden":"card detail revealed")},[rt]);const va=(V,ye)=>{if(ye===!0){const We=Ei(V.toString())??Le.strings.empty;z("color selected",We),je(We),mi(!1)}ya(V)},ka=V=>{const{cvv:ye,number:We}=V;return ye===!0||We===!0},{isMobileOrTabletScreen:ja}=xr(),Mt=e.chargeCard?.status.code!=="request_on_hold"&&e.chargeCard?.status.code!=="inactive",Vt=e.updateChargeCardLimitFetchState.fetchState,Ot=e.updateChargeCardNameFetchState.fetchState,Ht=e.lockChargeCardsFetchState.fetchState,Nt=e.closeChargeCardsFetchState.fetchState,Ia=et(Vt),La=et(Ot),Da=et(Ht),Aa=et(Nt);o.useEffect(()=>{Ia==="In-Progress"&&Vt==="Completed"?bt(!1):La==="In-Progress"&&Ot==="Completed"?Et(!1):Da==="In-Progress"&&Ht==="Completed"?St(!1):Aa==="In-Progress"&&Nt==="Completed"&&yt(!1)},[Vt,Ot,Ht,Nt,Ia,La,Da,Aa]);const De=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",gi=Se&&(e.chargeCard?.status.code==="active"||e.chargeCard?.status.code==="locked")&&$a.amount<(De?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit.amount??0:e.creditAccount.limit.amount),Ci=e.creditAccountRepayment.initiatedRepayments.amount>0&&Se&&Pt,fi=()=>{if(!C)return[{value:"changePin",label:ue.cardDetails.moreOptions.changePin}];const V=[{value:"changePin",label:ue.cardDetails.moreOptions.changePin},{value:"unlock",label:ue.cardDetails.moreOptions.unlock},{value:"updateSpendLimit",label:ue.cardDetails.moreOptions.updateSpendLimit},{value:"rename",label:ue.cardDetails.moreOptions.rename},{value:"lock",label:ue.cardDetails.moreOptions.lock},{value:"close",label:ue.cardDetails.moreOptions.close},{value:"revokeInvite",label:ue.cardDetails.moreOptions.revokeInvite}],ye=e.chargeCard?.status.code,We=ye==="locked",Si=ye==="inactive",yi=ye==="request_on_hold",$i=e.chargeCard?.isLockedByAdmin===!0,Fa=De&&Be,$t=Se;if(yi){const Ve=[];return $t&&Ve.push("revokeInvite"),Ve.push("rename"),V.filter(Bt=>Ve.includes(Bt.value))}if(Si){const Ve=[];return Ve.push("rename"),Fa&&Ve.push("changePin"),$t&&Ve.push("close"),V.filter(Bt=>Ve.includes(Bt.value))}const vi={changePin:Fa&&!We,lock:!We,unlock:We&&(Se||!$i),rename:!0,updateSpendLimit:$t,close:$t};return V.filter(Ve=>vi[Ve.value])},Ta=t.jsx("div",{children:t.jsx(ji,{entity:"debit_cards",isDisabled:e.unlockChargeCardsFetchState.fetchState==="In-Progress"?"disabled":void 0,onOptionSelection:V=>{V==="changePin"?(Z==null||Z.expiry.isBefore(new Date)?le(e.loggedInUserPhone):Te(!0),Me(!0)):V==="updateSpendLimit"?bt(!0):V==="rename"?Et(!0):V==="lock"?(St(!0),p()):V==="close"?(yt(!0),p()):V==="unlock"?i(Se):V==="revokeInvite"&&He()},isMoreOption:!0,options:fi(),customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),valueContainer:V=>({...V,display:"flex",alignItems:"center"})}})}),Ea=V=>V.reasonType==="other"?V.reason:V.reasonType,wi=V=>{const ye=Ea(V);A(Se,ye)},xi=V=>{const ye=Ea(V);s(ye)},bi=()=>{const V=e.chargeCard?.status.code;if(V==="closed"||V==="closed_by_customer")return null;if(!C)return Be&&De?Ta:null;if(!Be&&!Se)return null;const ye=e.chargeCard?.isLockedByAdmin===!0;return Be&&!Se&&ye&&V==="locked"?null:Ta};return t.jsxs(ll,{children:[ii&&e.chargeCard!=null&&t.jsx(Po,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>St(!1),isChargeCardAdmin:Se,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:wi,onDismissClick:()=>St(!1),onRemoveCardClick:()=>{}}),oi&&e.chargeCard!=null&&t.jsx(Mo,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>yt(!1),isChargeCardAdmin:Se,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,closeCardFetchState:e.closeChargeCardsFetchState.fetchState,onConfirmClick:xi,onDismissClick:()=>yt(!1),onRemoveCardClick:()=>{}}),lt&&e.chargeCard?.cardProviderID!=null?t.jsx(Nc,{signedInUserToken:Z,vgsVaultId:b,onCancelClick:()=>{Te(!1),Me(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{Te(!1),Me(!0)},onUpdateDebitCardPinAttempt:de}):null,ja?null:t.jsx(vc,{isChargeCardAdmin:Se,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:L,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:e.creditAccount,selectedColor:Sa,walletType:si,onFireOnClickAnalytics:z,isSandboxEnv:ae,chargeCardDetailView:e,vgsVaultId:b,signedInUserToken:Z,showSecretInfo:rt,changePinInProcess:xt,setShowChangePinPopup:Te,isCardDetailErrored:ua,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,isCardDetailFetching:ka,handleColorCodeClick:va,isDrawerOpen:ni,setIsAddToWalletDrawerOpen:ga,onVerifyOtp:ce,onVerifyOtpSuccess:I,onFireVerifyPopOnClickAnalytics:G,onResendOtp:P,setShowSecretInfo:Ft,secretRevealed:pa,setSecretRevealed:Rt,onGetOtp:le,showDrawerAnimation:wa}),t.jsx(Ii,{rightSideComponent:bi(),navBarContainerStyles:{paddingTop:l[2],alignItems:"center",paddingBottom:l[2]},source:"ChargeCardDetailPage",title:e.chargeCard?.cardName??Le.strings.empty,subTitle:e.fetchState==="Completed"&&e.chargeCard!=null?t.jsx(zo,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:he.colors.grey5,style:{zIndex:3},onBackClick:$,titleStyle:{marginTop:l[0],...R==="small"&&{textAlign:"left"}},leftComponentStyle:R==="small"?{width:"10%"}:void 0,middleComponentStyle:R==="small"?{width:"80%"}:void 0,rightComponentStyle:R==="small"?{width:"10%"}:void 0}),t.jsx(br,{phoneNumberPopupDescription:ue.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Qr,showPhoneNumberPopup:ti,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:ce,onVerifyOtpSuccess:V=>{I(V),xt?Te(!0):Ft(!0)},onFireVerifyPopOnClickAnalytics:G,setShowOtpPopup:ei,onResendOtp:P,setShowPhoneNumberPopup:ha,onGetOtp:le}),ri&&t.jsx(Vo,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Et(!1),onSubmitClick:V=>{e.chargeCard&&ie(Se,V)}}),ai&&e.chargeCard!=null?t.jsx(Oo,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,cardDetail:e.chargeCard,transactionStatistics:e.transactionStatistics,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,signedInUser:N,isDebitCard:De,cardIssuedByRoles:q,cardHolderRoles:U,loggedInUserRole:oe,cardIssuedByDepartmentName:J,cardHolderDepartmentName:D,classListFetchState:h,currentLimitAmount:e.chargeCard?.limit??{amount:0,currencyCode:Le.currency.countryCode,currencySymbol:Le.currency.currencySymbol},currentSpentAmount:e.chargeCard?.balance??{amount:0,currencyCode:Le.currency.countryCode,currencySymbol:Le.currency.currencySymbol},maxLimitAmount:De?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:e.creditAccount.limit,isDisabled:De&&e.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>bt(!1),onSubmitClick:V=>{if(e.chargeCard){const ye={amount:V,currencyCode:e.chargeCard.limit.currencyCode,currencySymbol:e.chargeCard.limit.currencySymbol};at(e.chargeCard.id,ye,e.chargeCard.creditLimitFrequency,Ge("0,0.[00]",ye))}},recommendations:e?.chargeCard?.recommendations}):null,e.fetchState==="Error"?t.jsxs(il,{windowSize:R,children:[t.jsx(sl,{onClick:Y,"data-testid":X("reload-card-detail"),children:t.jsx(cl,{})}),t.jsx(dl,{children:Le.reloadPage.label})]}):t.jsxs(Jc,{children:[t.jsx(as,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,isDebitCard:De,chargeCardCashbackDetailState:L,cardIssuedByRoles:q,cardIssuedByDepartmentName:J,cardHolderRoles:U,cardHolderDepartmentName:D,classListFetchState:h,chargeCardDetailView:e,spent:$a,isCardNotPending:Mt,cardOwnerName:zt,appleWalletLink:K,googleWalletLink:ne,addressToShow:xa,secretRevealed:pa,isOwnCard:Be,vgsVaultId:b,showSecretInfo:rt,isSandboxEnv:ae,isCardDetailErrored:ua,signedInUserToken:Z,selectedColor:Sa,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,setSecretRevealed:Rt,isCardDetailFetching:ka,handleColorCodeClick:va,onFireOnClickAnalytics:z,setShowPhoneNumberPopup:ha,setShowChangeSpendLimitPopup:bt,setShowSecretInfo:Ft,isOwnerNameCopied:fe,isAddressCopied:Tt,onOwnerNameCopyClick:pi,onAddressCopyClick:ui,showUpdateSpendLimitAction:gi,onUnlockChargeCard:i}),Q?Ci?t.jsxs(Qc,{windowSize:R,children:[t.jsx(ml,{}),t.jsx(tl,{children:` ${ue.payEarly.paymentOf} ${Ge("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${ue.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(Xc.visual.MMMDFormat)} ${ue.payEarly.isProcessing} ${ue.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):Pt?Se?t.jsxs(Kr,{onClick:()=>{pe(!0)},windowSize:R,children:[t.jsx(ur,{windowSize:R}),t.jsxs(ol,{children:[t.jsx(mr,{children:ue.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(al,{className:"pay-now-button",children:[ue.payEarly.payNow,t.jsx(el,{})]})]})]}):t.jsxs(Kc,{windowSize:R,children:[t.jsx(ur,{windowSize:R}),t.jsx(nl,{children:t.jsx(mr,{children:ue.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,Be&&R!=="small"&&Mt&&De===!1?t.jsx(Ho,{style:{marginTop:Pt?a.sp5:a.sp4},classListFetchState:h,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardDetailView:e,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,cardIssuedByRoles:q,cardHolderRoles:U,cardIssuedByDepartmentName:J,cardHolderDepartmentName:D,isDebitCard:De,appleWalletLink:K,googleWalletLink:ne,setWalletType:di,setIsAddToWalletDrawerOpen:ga,showDrawerAnimation:wa}):null,t.jsxs(vl,{windowSize:R,isOwnCard:Be,isMobileOrTabletScreen:ja,children:[Mt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(pl,{windowSize:R,children:[ue.cardDetails.transactionListTitle,t.jsx(Qt,{display:"flex",placement:"right",title:t.jsx(gl,{children:ue.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(ul,{})})]}),t.jsxs(Cl,{windowSize:R,children:[t.jsx(bl,{windowSize:R,children:t.jsx(Sl,{})}),t.jsxs(hl,{windowSize:R,children:[t.jsxs(fl,{children:[t.jsx(rl,{children:ue.aiCardAgentText}),Le.strings.space,ue.receiptBotMessage,Le.strings.space]}),t.jsxs(xl,{"data-testid":X("charge-card-detail-copy-email"),onClick:hi,onMouseEnter:()=>wt(!0),onMouseLeave:()=>wt(!1),children:[t.jsx(wl,{children:e.chargeCardConfig.receiptBotEmail}),Pe===!0?t.jsxs(Cr,{children:[t.jsx($l,{}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct||Pe,color:d.primaryDark,children:Le.copyToClipBoard.copied})})]}):t.jsxs(Cr,{children:[t.jsx(yl,{color:ct?he.colors.primary:void 0}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct&&R!=="small",children:Le.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(Qd,{cardStatusCode:e.chargeCard?.status.code,cardCodeType:e.chargeCard?.type.code,cardId:x,documentAiReceiptMaxSizeLimit:re,uploadReceiptsFetchStateByTransactionId:e.uploadReceiptsFetchStateByTransactionId,isSnackbarOpen:se,uploadReceiptsShowTickByTransactionId:e.uploadReceiptsShowTickByTransactionId,isViewReceiptClickedImmediatelyAfterUploadTransactionId:e.isViewReceiptClickedImmediatelyAfterUploadTransactionId,receiptRequiredAboveAmount:e.chargeCardConfig.receiptRequiredAboveAmount,cardsEndPoint:u,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,transactions:e.transactions,cardHolderUser:e.chargeCard?.cardHolderUser,uiState:e.uiState,fetchState:e.transactionListFetchState.fetchState,isAiCategorizationEnabledForCardsTransactions:e.chargeCardConfig.isAiCategorizationEnabledForCardsTransactions,onReloadTransactions:Y,onFetchChargeCardTransactionList:B,isOwnCard:Be,onColumnSortConfigChanged:Ce,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onUpdateScrollYOffset:qe,onUploadReceiptComplete:be,updateChargeCardTransactionAttachments:Re,updateChargeCardTransactionUploadReceiptsFetchStatus:te,updateChargeCardTransactionReceiptsShowTick:ee,updateChargeCardTransactionIsViewReceiptClicked:M})]})]})]})},Xt=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:s,productInformation:u,cashbackInformation:h,creditAccountInformation:f,debitAccountInformation:c,creditAccount:g,creditAccountRepayment:m,isDebitCard:x,isChargeCardAdmin:b,analytics:n,controllerEmails:C,actionDetails:w,actionField:j})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!s||g.fetchState==="Completed"&&m.fetchState==="Completed")&&(!(x&&b)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(C,u,"Cards Detail","Copy","copied",j,w,h,f,c)},Jc=r.div``,Kr=r.div`
|
|
1276
1276
|
background: ${d.important};
|
|
1277
1277
|
display: flex;
|
|
1278
1278
|
align-items: center;
|
|
1279
1279
|
justify-content: center;
|
|
1280
1280
|
padding-top: ${a.sp3};
|
|
1281
1281
|
padding-bottom: ${a.sp3};
|
|
1282
|
-
padding-left: ${({windowSize:e})=>
|
|
1283
|
-
padding-right: ${({windowSize:e})=>
|
|
1282
|
+
padding-left: ${({windowSize:e})=>Fe.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1283
|
+
padding-right: ${({windowSize:e})=>Fe.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1284
1284
|
gap: ${a.sp1};
|
|
1285
1285
|
align-items: start;
|
|
1286
1286
|
cursor: pointer;
|
|
@@ -1289,19 +1289,19 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1289
1289
|
text-decoration: underline;
|
|
1290
1290
|
}
|
|
1291
1291
|
}
|
|
1292
|
-
`,
|
|
1292
|
+
`,Kc=r(Kr)``,Qc=r.div`
|
|
1293
1293
|
background: ${d.alertLight};
|
|
1294
1294
|
display: flex;
|
|
1295
1295
|
align-items: start;
|
|
1296
1296
|
justify-content: center;
|
|
1297
1297
|
padding-top: ${a.sp3};
|
|
1298
1298
|
padding-bottom: ${a.sp3};
|
|
1299
|
-
padding-left: ${({windowSize:e})=>
|
|
1300
|
-
padding-right: ${({windowSize:e})=>
|
|
1299
|
+
padding-left: ${({windowSize:e})=>Fe.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1300
|
+
padding-right: ${({windowSize:e})=>Fe.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1301
1301
|
gap: ${a.sp2};
|
|
1302
|
-
`,ur=r(
|
|
1302
|
+
`,ur=r(zi)`
|
|
1303
1303
|
color: ${e=>e.theme.colors.grey5};
|
|
1304
|
-
margin-right: ${({windowSize:e})=>
|
|
1304
|
+
margin-right: ${({windowSize:e})=>Fe.styledHighImportanceIconMarginRight.valuePx(e)};
|
|
1305
1305
|
min-width: ${a.sp4};
|
|
1306
1306
|
width: ${a.sp4};
|
|
1307
1307
|
height: ${a.sp4};
|
|
@@ -1309,34 +1309,34 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1309
1309
|
path:nth-child(3) {
|
|
1310
1310
|
stroke: ${d.important};
|
|
1311
1311
|
}
|
|
1312
|
-
`,
|
|
1312
|
+
`,el=r(Pi)`
|
|
1313
1313
|
color: ${e=>e.theme.colors.grey5};
|
|
1314
1314
|
min-width: 12px;
|
|
1315
1315
|
width: 12px;
|
|
1316
1316
|
height: 12px;
|
|
1317
1317
|
`,mr=r(ta)`
|
|
1318
1318
|
color: ${e=>e.theme.colors.grey5};
|
|
1319
|
-
`,
|
|
1319
|
+
`,tl=r(ta)`
|
|
1320
1320
|
color: ${d.brandColorGoldDark};
|
|
1321
|
-
`,
|
|
1321
|
+
`,al=r(kr)`
|
|
1322
1322
|
color: ${e=>e.theme.colors.grey5};
|
|
1323
1323
|
gap: ${a.sp1};
|
|
1324
1324
|
cursor: pointer;
|
|
1325
1325
|
display: inline-flex;
|
|
1326
1326
|
align-items: center;
|
|
1327
1327
|
white-space: nowrap;
|
|
1328
|
-
`,
|
|
1328
|
+
`,rl=r(Hi)`
|
|
1329
1329
|
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
1330
1330
|
${({theme:e})=>e.mode==="dark"&&`color: ${d.brandColorPearl};`}
|
|
1331
|
-
`,
|
|
1331
|
+
`,il=r.div`
|
|
1332
1332
|
display: flex;
|
|
1333
1333
|
width: 100%;
|
|
1334
|
-
height: calc(100vh - ${e=>
|
|
1334
|
+
height: calc(100vh - ${e=>Fi.valuePx(e.windowSize)});
|
|
1335
1335
|
flex-direction: column;
|
|
1336
1336
|
justify-content: center;
|
|
1337
1337
|
align-items: center;
|
|
1338
1338
|
background: ${e=>e.theme.colors.grey5};
|
|
1339
|
-
`,
|
|
1339
|
+
`,ol=r.div``,nl=r.div``,sl=r.div`
|
|
1340
1340
|
height: ${a.sp12};
|
|
1341
1341
|
width: ${a.sp12};
|
|
1342
1342
|
background: ${e=>e.theme.colors.background};
|
|
@@ -1354,10 +1354,10 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1354
1354
|
color: ${e=>e.theme.colors.primary};
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
`,
|
|
1357
|
+
`,dl=r(ea)`
|
|
1358
1358
|
margin-top: ${a.sp3};
|
|
1359
1359
|
color: ${e=>e.theme.colors.hero};
|
|
1360
|
-
`,
|
|
1360
|
+
`,cl=r(yr)`
|
|
1361
1361
|
height: ${a.sp5};
|
|
1362
1362
|
width: ${a.sp5};
|
|
1363
1363
|
margin: ${a.sp5};
|
|
@@ -1365,19 +1365,19 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1365
1365
|
&:hover {
|
|
1366
1366
|
color: ${e=>e.theme.colors.primary};
|
|
1367
1367
|
}
|
|
1368
|
-
`,
|
|
1368
|
+
`,ll=r.div`
|
|
1369
1369
|
background: ${e=>e.theme.colors.grey4};
|
|
1370
|
-
`,
|
|
1370
|
+
`,hl=r.div`
|
|
1371
1371
|
width: 100%;
|
|
1372
1372
|
max-width: ${e=>e.windowSize==="small"?"calc(100% - 20px)":"unset"};
|
|
1373
|
-
`,
|
|
1373
|
+
`,pl=r(aa)`
|
|
1374
1374
|
color: ${e=>e.theme.colors.primary};
|
|
1375
1375
|
margin-bottom: ${a.sp3};
|
|
1376
1376
|
display: flex;
|
|
1377
1377
|
align-items: center;
|
|
1378
|
-
margin-right: ${e=>
|
|
1379
|
-
margin-left: ${e=>
|
|
1380
|
-
`,
|
|
1378
|
+
margin-right: ${e=>Fe.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
1379
|
+
margin-left: ${e=>Fe.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
1380
|
+
`,ul=r(vr)`
|
|
1381
1381
|
color: ${e=>e.theme.colors.hero};
|
|
1382
1382
|
width: ${a.sp3};
|
|
1383
1383
|
height: ${a.sp3};
|
|
@@ -1385,12 +1385,12 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1385
1385
|
&:hover {
|
|
1386
1386
|
color: ${e=>e.theme.colors.primary};
|
|
1387
1387
|
}
|
|
1388
|
-
`,
|
|
1388
|
+
`,ml=r(vr)`
|
|
1389
1389
|
color: ${d.brandColorGoldDark};
|
|
1390
1390
|
min-width: ${a.sp4};
|
|
1391
1391
|
width: ${a.sp4};
|
|
1392
1392
|
height: ${a.sp4};
|
|
1393
|
-
`,
|
|
1393
|
+
`,gl=r(ge)`
|
|
1394
1394
|
padding: 2px ${a.sp2};
|
|
1395
1395
|
box-sizing: content-box;
|
|
1396
1396
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -1398,7 +1398,7 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1398
1398
|
border-radius: ${a.sp1};
|
|
1399
1399
|
max-width: 178px;
|
|
1400
1400
|
text-align: left;
|
|
1401
|
-
`,
|
|
1401
|
+
`,Cl=r.div`
|
|
1402
1402
|
display: flex;
|
|
1403
1403
|
border: 1.25px solid transparent;
|
|
1404
1404
|
background: ${e=>`linear-gradient(${e.theme.colors.grey4}, ${e.theme.colors.grey4}) padding-box,
|
|
@@ -1409,12 +1409,12 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1409
1409
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
1410
1410
|
gap: ${a.sp1};
|
|
1411
1411
|
margin: 0
|
|
1412
|
-
${e=>
|
|
1413
|
-
`,
|
|
1412
|
+
${e=>Fe.bannerWrapperMarginLeftRight.valuePx(e.windowSize)};
|
|
1413
|
+
`,fl=r(ta)`
|
|
1414
1414
|
color: ${e=>e.theme.colors.primary};
|
|
1415
|
-
`,
|
|
1415
|
+
`,wl=r(kr)`
|
|
1416
1416
|
color: ${e=>e.theme.colors.primary};
|
|
1417
|
-
`,
|
|
1417
|
+
`,xl=r.span`
|
|
1418
1418
|
cursor: pointer;
|
|
1419
1419
|
`,gr=r.span`
|
|
1420
1420
|
position: absolute;
|
|
@@ -1434,17 +1434,17 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1434
1434
|
border-radius: ${a.sp1};
|
|
1435
1435
|
left: -50%;
|
|
1436
1436
|
display: ${e=>e.shouldDisplay?"block":"none"};
|
|
1437
|
-
`,
|
|
1438
|
-
width: ${e=>
|
|
1439
|
-
min-width: ${e=>
|
|
1440
|
-
height: ${e=>
|
|
1437
|
+
`,bl=r.div`
|
|
1438
|
+
width: ${e=>Fe.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1439
|
+
min-width: ${e=>Fe.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1440
|
+
height: ${e=>Fe.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1441
1441
|
top: ${a.sp1};
|
|
1442
1442
|
position: ${e=>e.windowSize==="small"?"relative":"static"};
|
|
1443
|
-
`,
|
|
1443
|
+
`,Sl=r(Oi)`
|
|
1444
1444
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
1445
1445
|
width: 100%;
|
|
1446
1446
|
height: 100%;
|
|
1447
|
-
`,
|
|
1447
|
+
`,yl=r(jr)`
|
|
1448
1448
|
height: ${a.sp3};
|
|
1449
1449
|
width: ${a.sp3};
|
|
1450
1450
|
color: ${e=>e.color!=null?e.color:e.theme.colors.hero};
|
|
@@ -1452,11 +1452,11 @@ import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN
|
|
|
1452
1452
|
&:hover {
|
|
1453
1453
|
color: ${e=>e.theme.colors.primary};
|
|
1454
1454
|
}
|
|
1455
|
-
|
|
1455
|
+
`,$l=r(gt)`
|
|
1456
1456
|
height: ${a.sp3};
|
|
1457
1457
|
width: ${a.sp3};
|
|
1458
1458
|
color: ${d.success};
|
|
1459
|
-
`,
|
|
1459
|
+
`,vl=r.div`
|
|
1460
1460
|
padding-top: ${e=>e.isOwnCard?e.isMobileOrTabletScreen?a.sp3:a.sp4:a.sp5};
|
|
1461
1461
|
padding-bottom: ${a.sp4};
|
|
1462
|
-
`;export{
|
|
1462
|
+
`;export{Wl as default};
|