@zeniai/web-cockpit-ui 1.14.62-dev → 1.14.63-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-C9GD0hCH-wcmQ_I_w.js → ACHDetailsPage-QkOAxB4j-BwmsngrU.js} +1 -1
- package/dist/assets/{AIPerformancePage-B0Adp0wg-BRw7cYj4.js → AIPerformancePage-POiv6dgZ-BKgnVS14.js} +1 -1
- package/dist/assets/{AccountInfoPage-BSxUquf3-Cq3qTjcH.js → AccountInfoPage-DpzAjyd0-CKJdFzLl.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-8V3PDzEc-BlV15_jy.js → AccountInfoPageContent-BrPhtN53-CjBlOxg5.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-7bhpExx3-DJKdkKXd.js → AccountLockedInfoModal-D1ZHYvRy-C9tYFXcu.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-jTH8M9iA-CMGLbrVx.js → AccountReconDetailsDrawerPage-CubIO376-CtKM65LB.js} +12 -12
- package/dist/assets/{AccountRow-BpoPw0Cq-PxbfVOGF.js → AccountRow-DTdcfEa8-U3MpTECA.js} +12 -12
- package/dist/assets/{AccountsPromoCardStack-gsG5tf8_-DWo1I6r8.js → AccountsPromoCardStack-CwDbKaNJ-1hCsTiEX.js} +9 -9
- package/dist/assets/{AddAddressForCardDrawer-CMF3Il-u-Dg_CMfGn.js → AddAddressForCardDrawer-CniAAcX8-D363vOD8.js} +2 -2
- package/dist/assets/{AddToWalletPage-CpWP7Kpn-oyevXfMf.js → AddToWalletPage-DOG6ubAY-BGRDDIey.js} +12 -12
- package/dist/assets/{AgingReportsPage-DEQ2pO0Y-B_El_7jI.js → AgingReportsPage-Dbtn1PKG-CbUghZ5Y.js} +5 -5
- package/dist/assets/{AllUserItems-D0SR0Oue-C_Mnq_2_.js → AllUserItems-Dth5Uovp-tGFNdHax.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-BA-wKCiF-DoDUWxWK.js → ApAgingDetailPage-C6C-aYG7-Dbv3SH4D.js} +2 -2
- package/dist/assets/{AppBasePage-DFn4TCyI-BVuiMG50.js → AppBasePage-CtnXt_EV-BSPuX6dn.js} +6 -6
- package/dist/assets/{AppDrawerContent-CBG4Ybue-1CDBllQE.js → AppDrawerContent-DnrQdYVp-D2qog1EV.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-CpjHazzI-CsBcR4Oy.js → ApprovalRulesSettingsPage-BEOQl822-CbUsx0mD.js} +4 -4
- package/dist/assets/{ArAgingChart-BDISnDae-DNBj0-9L.js → ArAgingChart-B9rpCcBM-q8jdb__E.js} +5 -5
- package/dist/assets/{ArAgingDetailPage-Cgqf_0fL-CU471vpq.js → ArAgingDetailPage-BKsCQCpu-jNIcx6Tl.js} +1 -1
- package/dist/assets/{AttachmentView-X1k01Vtr-BZZUcPOE.js → AttachmentView-DEE6AWkv-B1086jMd.js} +1 -1
- package/dist/assets/{BankAccountSection-CrxSDsgw-BPSLHakI.js → BankAccountSection-D8_5fjrd-BCE6WYWF.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-Dpt8yOKi-BO8G0nmG.js → BankAccountWarningSection-CMrRr8aa-BT7FUFGR.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-Uzhaoi7g-Bcdti6AO.js → BankConnectionsSettingsPage-BUwkPoK_-Baxx5R77.js} +41 -41
- package/dist/assets/{BillDetailPage-DcyikS7i-dCdg2EaC.js → BillDetailPage-DcGxex6B-g3MH8yQi.js} +10 -10
- package/dist/assets/{BillPayApprovalRuleDetailPage-aM8F15Nu-ackUtbJ8.js → BillPayApprovalRuleDetailPage-B4OuTcAA-Bkq-QU-5.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B46FwPVR-Bv9k8Xtu.js → BillPayApprovalRulesPage-DaCdVMRx-DKi7a9ar.js} +4 -4
- package/dist/assets/{BillPayPromoPage-DtVzdlsy-Bd5M4tTJ.js → BillPayPromoPage-DBlGsv9D-BevFRtNT.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-BKdNiQf7-BvAzvMev.js → BillPaySetUpPage-A4zcT_mP-BkNiC1Xc.js} +2 -2
- package/dist/assets/{BillingSettingsPage-3AgPTFzN-deJJWYq4.js → BillingSettingsPage-CujTn-BW-DGU5_gJ4.js} +1 -1
- package/dist/assets/BillsBulkReviewDrawerPage-Cs779Xc4-D5R5rhwS.js +1 -0
- package/dist/assets/{BoxItem-Dsoq6QyZ-D7NZjkdf.js → BoxItem-imggFWL_-C8e_yZct.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DSkBV_II-DSCAr_Go.js → BusinessVerificationPage-U_lU2O0k-B63nfdcn.js} +4 -4
- package/dist/assets/{CardNumberSubText-Crk5WDQr-D42xv8Vo.js → CardNumberSubText-Ct0mJOMk-DQXdeyZe.js} +2 -2
- package/dist/assets/{CashbackDetailPage-BZAFRMGW-CBzh2ZdI.js → CashbackDetailPage-GMncsgDy-DzCIgTYK.js} +17 -17
- package/dist/assets/ChargeCardDetailPage-BQvjt_rh-Dc8yPFPr.js +1462 -0
- package/dist/assets/{ChargeCardListPage-CIV1XQK1-BsJ1Un8U.js → ChargeCardListPage-BJgzJ53p-D4N85pU_.js} +9 -9
- package/dist/assets/{ChargeCardListTable-Dxn8Y17P-BLWbpWSy.js → ChargeCardListTable-BD4N2FtO-DrTuKtln.js} +49 -49
- package/dist/assets/{ChargeCardPromoPage-B6yTGsIY-CaVyUdrp.js → ChargeCardPromoPage-BQMfHfHp-DuUPUl6t.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-HHFdpsmJ-BZfvUbrB.js → ChargeCardSetupPage-DO1cXZF4-CWlYdj31.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-tuV67f3k-0CxnC-oz.js → ChargeCardStatementsPage-0rBvkIU1-NpKk50PX.js} +5 -5
- package/dist/assets/ChargeCardUtils-Cy5rZlIH-BILI0sIl.js +1 -0
- package/dist/assets/{ChaseOverlay-B2pqFXTT-BWakvkAR.js → ChaseOverlay-Dqg_bWdn-C8vTlyWM.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-DDXZ3m54-CXBK2nJg.js → CheckDepositDrawerPage-BzzWhLjb-CVED41XL.js} +15 -15
- package/dist/assets/{CollapsableReportTable-BLDh7Osv-ox-qsXy2.js → CollapsableReportTable-CwhNUlX5-CGrdBCh6.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Dg3sn5Sh-BTBTOsDr.js → CompanyOfficerDetailsSection-BHXF7g6M-BrZ1ZKbF.js} +1 -1
- package/dist/assets/{CompanyPassportCard-2HnVDVVi-dxhiiZQi.js → CompanyPassportCard-Dd4Modb9-C23aPg6a.js} +6 -6
- package/dist/assets/{CompanyPassportPage-DlGllnaL-u0Oh4-Ab.js → CompanyPassportPage-Bh2JSIAW-rjC4pxXL.js} +20 -20
- package/dist/assets/{CompleteProfile-kFGIESms-CDZ04UbG.js → CompleteProfile-CAtziP70-DuSPFP1s.js} +1 -1
- package/dist/assets/{ConfettiBurst-D5IgJ5P3-DI0WARwG.js → ConfettiBurst-DvSGcRZX-C_PjMyTg.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D8IFFcdA-BWjjY2FD.js → CreateOrEditVendorPage-Csorfbun-CNt6xuOL.js} +9 -9
- package/dist/assets/{CreditCardPaymentDrawerPage-Xu0psAw0-DRgPLpcF.js → CreditCardPaymentDrawerPage-DAw1GyrP-BNs6qoGC.js} +12 -12
- package/dist/assets/{CreditCardPaymentPlgSection-CqvgalYj-CACGNzop.js → CreditCardPaymentPlgSection-HikR7OVv-BCZXDr8I.js} +6 -6
- package/dist/assets/{CurrencySelectField-hwgVPqTt-CZrVpTrr.js → CurrencySelectField-BW71th1E-DHxO3UVa.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CBFhWSJz-BUJvmXrh.js → CustomerOnboardingActivationPage-t4YirGGH-BQcXqlYq.js} +7 -7
- package/dist/assets/CustomerOnboardingContainerPage-BFE2DU3a-C9v_itD5.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B2q2tdnD-Bp78peNj.js → CustomerOnboardingDetailPageSkeleton-CWWXhhJn-DacLmheB.js} +10 -10
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsNq90nq-_3KuDz4_.js → CustomerOnboardingNoStepsPage-YdWEMnwL-BhhMIya_.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-BbGV3jtT-DCZddKCA.js → CustomerOnboardingPage-C-WAF_MK-0e07LkOq.js} +5 -5
- package/dist/assets/{CustomerOnboardingProductSuitePage-R2PJEOqZ-BqHqYyVu.js → CustomerOnboardingProductSuitePage-CxwXw5lA-8eL0zyfM.js} +10 -10
- package/dist/assets/{Dashboard-Cw4u8_9e-CNVcyr2a.js → Dashboard-Cp0UY0M3-DrmBKQin.js} +1 -1
- package/dist/assets/{DashboardReportPage-ls_MMfAh-ku8msjfd.js → DashboardReportPage-Bsr_1Vfu-CrZaa5CE.js} +6 -6
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C_9jGJQn-DjB0cTYb.js → DashboardSidebarBackgroundAnimation-BvgNiAXF-CXiqzdPm.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BLgpyexV-BUif7HBg.js → DepositAccTransactionItem-Cm5lhc_H-Db7mfK10.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-r4UVSUOl-jIySug5o.js → DepositAccTransactionListPage-CHwS-_Nr-DFBxFwkp.js} +3 -3
- package/dist/assets/{DomesticWireDetailsPage-BSXsHwf5-nZMW9ya5.js → DomesticWireDetailsPage-mqJgiAC--4FLLq-KS.js} +1 -1
- package/dist/assets/{DownloadOverlay-DKpj3Vwl-DX_ZKzvM.js → DownloadOverlay-DwPR_SsY-EUTGOsKd.js} +21 -21
- package/dist/assets/{DrawerPage-Cxz5I3Mb-DWCpAx75.js → DrawerPage-CR2L2ry3-DOZs2EHb.js} +14 -14
- package/dist/assets/{EditPeoplePage-Dbsa013z-C87B1cPM.js → EditPeoplePage-DiNxeKXK-BiaRAv0O.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-Clpj3Hjz-De3HxU8I.js → EditReimbursementDetailPage-5TJ4Spw1-CpwzkfQj.js} +64 -64
- package/dist/assets/{EntityDetailPage-C73BtWIp-Cr_6Sl3E.js → EntityDetailPage-CYDIH-NA-wQQfd0jW.js} +3 -3
- package/dist/assets/{EntitySummarySection-BQA0g-pF-C1PbnddD.js → EntitySummarySection-Cv7t21-t-DI0hIJYP.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-BxEr0k8F-CUbCOzoq.js → ExpenseAutomationOverviewPage-Cwl9dV2--DfcmKBVV.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-BS4M9nkW-DYAXIB9M.js → ExpenseAutomationPage-LMBRJxAv-Vn9lo85n.js} +26 -26
- package/dist/assets/{ExpressPayPage-Buxb2M1i-DC3wux1h.js → ExpressPayPage-CCF0jSlI-C7_sWp9b.js} +6 -6
- package/dist/assets/{FeaturePreviewPage-ClfFYnHb-BfGEfVGQ.js → FeaturePreviewPage-POKsqSnu-BhWwdsL7.js} +2 -2
- package/dist/assets/{FollowStepsSection-CkQ-g4YK-GLs0gIYR.js → FollowStepsSection-BZdlZelr-Dgb2aUZZ.js} +21 -21
- package/dist/assets/{GlobalReviewListPage-C_DbsHsA-Bi1oO-Mz.js → GlobalReviewListPage-BnmMh-Bc-CYAA0kUn.js} +13 -13
- package/dist/assets/{HelpButton-B0ZBXPeh-zSwt_svY.js → HelpButton-Cp2LXxyy-C5Y06Y1n.js} +4 -4
- package/dist/assets/{InformationCardStack-DYdCt7zr-DhV-r4Uj.js → InformationCardStack-CiYqiW7_-CbY8PLVD.js} +4 -4
- package/dist/assets/{InsightsCardStack-BSHQznep-CWR7qCJZ.js → InsightsCardStack-BnVrehfR-CN-oMur2.js} +2 -2
- package/dist/assets/{InsightsSection-C37BKIiK-KVt8i2oW.js → InsightsSection-BpVW6ov6-CBRdcxmz.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-DHAdlHrq-Bqfn2ev2.js → IntegrationsSettingsPage-CaAahFPb-BYVW6C7U.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-B64WNt28-D1_PuT1L.js → InternationalWireSwiftDetailsPage-DcwbldkC-BB32EMRa.js} +8 -8
- package/dist/assets/{InternationalWireVerificationPage-D7ttGovC-BKd-ehNA.js → InternationalWireVerificationPage-7XDbU2GY-Dyfkxo3B.js} +7 -7
- package/dist/assets/{InviteFormPage-BhbGM4dC-CzvXIR5_.js → InviteFormPage-Dgv7jdgF-DVviW_Nt.js} +1 -1
- package/dist/assets/{InvitePageListView-CyRlLv60-CnnQlGla.js → InvitePageListView-DlpINjRJ-BMeTuOsJ.js} +11 -11
- package/dist/assets/InvitePeoplePage-0YsY4Il7-B0pE52_Y.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BPPgbS-r-DsP3dMQH.js → InvoiceUploadSection-DzzjJVfz-KKaBZftU.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-D_qQkkfo-B3Igv8Wu.js → IssueChargeCardPage-BeB9egJS-Buw9rvK5.js} +20 -20
- package/dist/assets/{LabeledAddressValue-EshVNGGW-BdxJWtKx.js → LabeledAddressValue-D6advpnC-6YH6AS3A.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-kgieouBM-C9jRpERl.js → LabeledAddressValueField-DRBoA2eb-CWryzMa2.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-CWABc6OK-HO6-gxJI.js → LabeledControlledCheckBoxField-Bu2WHgAQ-BgnuqupP.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B5o1KUJj-BQcKTXHX.js → LabeledCreatableSingleSelectField-DcdF286I-C7Y6s3yv.js} +7 -7
- package/dist/assets/{LabeledDocumentField-BrXpwWfM-8fIPpLS4.js → LabeledDocumentField-B25RLa6I-jFD7YVyX.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-Cepl3y9a-W2a_RnbU.js → LabeledDropDownFormattedTextField-DoK5Zfc1-HbMH9wCe.js} +1 -1
- package/dist/assets/{LabeledText-BmFLymPb-D8x81Lh_.js → LabeledText-depbwNsM-DXrsYHkA.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CBbnTiwl-DBx8kYuJ.js → LabeledUserSingleSelectWithSubtitlesField-BURpXN_N-Xj7wxd7w.js} +8 -8
- package/dist/assets/{LabeledZeniRolesDropDownField-Da9mc-0B-BJ1z3EeH.js → LabeledZeniRolesDropDownField-TbyaA8M3-DTROc_uU.js} +7 -7
- package/dist/assets/{LinkJETransactionPage-DIhsx2g--KBlFRQb2.js → LinkJETransactionPage-BITHs1CJ-Y1_ePi-m.js} +7 -7
- package/dist/assets/{LockCardPage-BA4Lj9Iy-DTk5VUQk.js → LockCardPage-DPBKHSos-D1Lau_ZJ.js} +15 -15
- package/dist/assets/{LowBalancePopup-B1pTBmAF-XO9AvMeQ.js → LowBalancePopup-D2G3wpXv-BCydjVKG.js} +3 -3
- package/dist/assets/{MagicLinkACHDetailsPage-BxzbJBWO--JriP-v7.js → MagicLinkACHDetailsPage-Be7GMhBd-D3Y_9hTy.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DB2tBUoV-D11VFVs7.js → MagicLinkDomesticWireDetailsPage-C9d2Ea6m-DiWMiwF8.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-0B5pD_Iw-D3uoz_xk.js → MagicLinkInternationalWireDetailsPage-B2M9WztX-B6F5ppQ2.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-3I1CRYrj-CQ85jc3m.js → MagicLinkSuccessPage-DPb0UoGh-y5M5nnWg.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BKgwdBLy-DJAtgQrS.js → MagicLinkTitleSection-Cc-MU2bJ-DSi2szeX.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BwEd_J6R-dp-4DZAU.js → MailingDetailsSection-8mj7Lslp--SKJjx0D.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-BpRpGSe6-BbPmd_3K.js → MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js} +1 -1
- package/dist/assets/{Menu-De_gaVnj-BIeYBB7q.js → Menu-ndvXF6cX-B4y3KuMr.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-lChXBDCb-CU4FUkGq.js → MyBankConnectionsSettingsPage-DuZFVLYx-VAbH3B5M.js} +4 -4
- package/dist/assets/{MyPendingActivationChargeCardListPage-D3di8BeS-DVyKiAts.js → MyPendingActivationChargeCardListPage-DDIlU_fs-C-bYuxLR.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-CYI4yK6I-B8BI2oLj.js → MyProfileSettingsPage-CccRK9mD-BRFADFUO.js} +3 -3
- package/dist/assets/{NavBarWithPicker-DcELUvq0-JOqnZxMT.js → NavBarWithPicker-D_MqRubB-D8dMZBv7.js} +6 -6
- package/dist/assets/{NavigationArrow-W1nVj2KC-CMqtrSRj.js → NavigationArrow-CfMVfLD8-BQnWEdPn.js} +1 -1
- package/dist/assets/{NavigationDots-BKVFhe2Y-BrHbPCev.js → NavigationDots-E2eEHB86-BK4Og9YA.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DRrjJgZt-CEoy9VUB.js → NewGlobalMerchantPage-vXrz_DRg-Wc9088Ea.js} +7 -7
- package/dist/assets/{NoDataChart-BzSCComh-BBDrgF2D.js → NoDataChart-CpocQ1Pa-ChFzAJ2R.js} +1 -1
- package/dist/assets/{NoDataTable-CGWMbvak-ByO1cOCm.js → NoDataTable-937mkn0a-D0ksTITz.js} +2 -2
- package/dist/assets/{NotFoundPage-DfRFngFV-5gg6LFkb.js → NotFoundPage-BmxF81mT-B9r6velH.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BTJH62-O-D7DVGMmr.js → NotificationSettingsPage-DyOyHW6d-DehMDImE.js} +20 -20
- package/dist/assets/{NotificationsListConfig-DPutUxp3-C94QRV7X.js → NotificationsListConfig-DVs7cr0d-wmSn6l3s.js} +1 -1
- package/dist/assets/{NotificationsPage-xu6A1hVF-DQF7RHp8.js → NotificationsPage-ntuZjRm--CaQvtRPb.js} +24 -24
- package/dist/assets/{OpExByVendorPage-BeO7iMry-DDqW-8aU.js → OpExByVendorPage-1MOdxG9V-BhrPpCQQ.js} +5 -5
- package/dist/assets/{OverlayContainerPage-CU1AAMcq-D-Pawytj.js → OverlayContainerPage-CU1AAMcq-lFQCSe-G.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-1qSy3_Ke-EOIFmkSR.js → PandLWithForecastPage-n4fiElGl-BTwNmE3c.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DnObHdjD-BdZ7cMoC.js → PaymentAccountSetupBillingAddressSection-CXcwA0ON-KeSy0gEv.js} +8 -8
- package/dist/assets/{PeoplePage-CPqz8R9j-Db69JWzl.js → PeoplePage-BvZkMpjW-D7ElTICV.js} +13 -13
- package/dist/assets/{PortfolioAllocationFormPage-C9ZM9oUf-CZJ1jxYZ.js → PortfolioAllocationFormPage-B7AKufjq-BCZV66E3.js} +3 -3
- package/dist/assets/{PortfolioDetails-BJBNPfcI-DsK_BUc_.js → PortfolioDetails-C85yA52O-BcnUojwW.js} +7 -7
- package/dist/assets/{ProductsCarousel-Ctx00P5D-D9FkIJxu.js → ProductsCarousel-ixHCR9AW-BHD947gD.js} +4 -4
- package/dist/assets/{PromoBaseCards-BGYdfmx6-BEMDJNz0.js → PromoBaseCards-DiefKKcS-CVepNaw-.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-B9yKv9hq-BkyyC54F.js → QBOConnectionDialog-DV-xC7Yc-6uoxl-nC.js} +1 -1
- package/dist/assets/{QBOSetupSection-CTMSCXwv-e3p1TnXx.js → QBOSetupSection-CI8cHWjq-CNHezBrT.js} +8 -8
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BtZUsK7H-D7OL8G_2.js → ReimbursementApprovalRuleDetailPage-CqnCqZ5F-MbrRP60p.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DNBHPoIZ-DjLma364.js → ReimbursementApprovalRulesPage-DxoNMA62-DOLuIxNO.js} +2 -2
- package/dist/assets/{ReimbursementDetailPage-BxZ5ijHe-BVaX9EvT.js → ReimbursementDetailPage-CTvPAxMB-BlP7rQJ5.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-D284EkRZ-DkeYmm5-.js → ReimbursementPromoPage-DcxPNTHd-asHPfKWE.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-BzR91_eW-B1cVy_ii.js → ReimbursementSetUpPage-SQo-xrwo-BuAAGp_P.js} +7 -7
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BMo9fFp7-DDhl84yp.js → ReimbursementsBulkReviewDrawerPage-y4v-8gQs-b-mXMP5z.js} +1 -1
- package/dist/assets/{ReloadCard-CGUNX_x4-DHHdzF-o.js → ReloadCard-CWZU9IDv-lCmqRueL.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-BVAek1Ui-tg0FtSlz.js → ReportTableViewSelector-t3pgCiJb-DU7QbDSE.js} +5 -5
- package/dist/assets/{ReportsPage-BzKbMWV4-Bkyilcu9.js → ReportsPage-D82gQH-e-Ckp9VR2p.js} +1 -1
- package/dist/assets/{RevenueChart-CPUrVR7y-p14Y9U0K.js → RevenueChart-BMgI2BHK-I-njStGG.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-B74yrCe2-2UJj3aSZ.js → ReviewDetailsPage-Dc7dY-VA-CxSy8KVL.js} +3 -3
- package/dist/assets/{ReviewOverlay-DQvXSDYM-BgLXL5oi.js → ReviewOverlay-Bra2W5Jg-C_PWInnU.js} +4 -4
- package/dist/assets/{RoleWithToolTip-MwI_BmVq-X2NuZkOe.js → RoleWithToolTip-DJ15AsI3-p10xCSND.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CbkRYKjG-CGeWP6Q0.js → ScheduleDetailsFixedAssetsPage-DoH2eyLG-BrozO2ME.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CCRspH3Y-CWtiBfKU.js → ScheduleDetailsPage-BM1Paa1W-C0ySlnA2.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-55zYXNwF-DayScLRg.js → ScheduleSequenceTable-C8UB3y1y-CNI-a_wl.js} +7 -7
- package/dist/assets/{ScreenRoutes-DFaMy6Tb.js → ScreenRoutes-_3xGjUU-.js} +41 -41
- package/dist/assets/{SetUpAccountSection-IgQjKWEr-C4h-8RcD.js → SetUpAccountSection-BGdUkQz3-D6CAjYv7.js} +7 -7
- package/dist/assets/{SetUpDefaultSection-shC3qOy6-NZDiaWla.js → SetUpDefaultSection-C4NnRO65-C0fyZc92.js} +10 -10
- package/dist/assets/{SignIn-CZGmLYjH-DKDYi6L5.js → SignIn-BrHA4sLj-DDyEN7b5.js} +1 -1
- package/dist/assets/SignInScreen-Cx7qc3RP.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-BhTnQtma-CGcx-wdm.js → SpendManagementListViewPage-Dqb0zspN-DreMX5hh.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-DpnIM6Nc-DJd_UPYY.js → SpendManagementPerTabPage-D5xIpojr-P0_AnHoz.js} +14 -14
- package/dist/assets/{SpendManagementSection-Hjvwgkt0-C9Ik4rB-.js → SpendManagementSection-C2iof2aM-Bp9C8eeM.js} +7 -7
- package/dist/assets/{SpendMgmtSetupAccountSection-CAWyEGGM-CyE9_AxZ.js → SpendMgmtSetupAccountSection-Dz3vQC2g-P6jfr6Bz.js} +6 -6
- package/dist/assets/{StatementItem-D8v_Laju-BC0rGudd.js → StatementItem-BOgmKBTq-DcvmbOpL.js} +5 -5
- package/dist/assets/{StatementsPage-CEw-9UyR-F4RCa_uj.js → StatementsPage-ClMtBDGf-DWR5BFTu.js} +4 -4
- package/dist/assets/{StatusSwitcher-DoSCydJG-CUZayvzb.js → StatusSwitcher-QwlvHg3_-DRNWj6rt.js} +2 -2
- package/dist/assets/{SubTabSwitcher-Ct1DqfgC-D_B5Q5CC.js → SubTabSwitcher-CiJ1FPk5-CEwKyb-x.js} +1 -1
- package/dist/assets/{SummaryCard-CHUbuF_0-BPkrpzgf.js → SummaryCard-D1B_1H2X-Lh7q95p7.js} +1 -1
- package/dist/assets/{TaskManagementPage-Ddox5Vwh-BtmzFtgk.js → TaskManagementPage-DibwJCOk-BF0_AhRU.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-CiOSsTU--DJtVL6uZ.js → TimeRangeSwitcher-Ci3SxLOE-anbVhnvw.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-D1k1Zf_U-DRQ7Dyxo.js → TimeframeSwitcher-DSRKJTq1-BG9pQPgY.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DXbaoDe6-CTgc86K9.js → TimeframeSwitcherWithToggle-D_BNOfdQ-BKTbCmic.js} +1 -1
- package/dist/assets/{TopExCard-D4ZDqXZg-BF-WMzyH.js → TopExCard-C5622MiP-2KEQHijQ.js} +4 -4
- package/dist/assets/{TopExDetailPage-BdPAcKwH-DpLiY3rN.js → TopExDetailPage-qOhQ-KAG-fVnbyWbs.js} +6 -6
- package/dist/assets/{TransactionDetailPage-BcjGxHy8-IuIJ3mqx.js → TransactionDetailPage-DaCUZuc0-DAUodm_m.js} +13 -13
- package/dist/assets/{TransactionList-BSuMEtB3-CMOkefWM.js → TransactionList-CzdU-NQx-D6gdr6x7.js} +6 -6
- package/dist/assets/{TransactionListBig-MY_ZxyR3-DAEJW71z.js → TransactionListBig-Bq7XI_xx-DjK27aH5.js} +11 -11
- package/dist/assets/{TransactionListPage-CWGrWDjK-CIEoKrUV.js → TransactionListPage-CZDewehT-BcmO71OJ.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-DDNK9KrI-O_lhiQcq.js → TransactionVendorDetailPage-Bf5UUIC6-DQ0SU60H.js} +3 -3
- package/dist/assets/{TransferDrawerPage-vK0YoMro-BnQ7gfWx.js → TransferDrawerPage-yQE7GKl_-BiU7RlMv.js} +17 -17
- package/dist/assets/{TreasuryOverviewPage-CQsUti1c-B9kfLqNq.js → TreasuryOverviewPage-CisB53k8-CkomXNIa.js} +20 -20
- package/dist/assets/{TreasuryPromoPage-Bp72hKEs-CTtwU0ZX.js → TreasuryPromoPage-BfISVj15-BKUZCqqQ.js} +11 -11
- package/dist/assets/{TreasurySetupPage-BUKsU3nh-ChLyWbKe.js → TreasurySetupPage-SN-3mAFw-C_4PPIWf.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-Cryv1PNX-BXauBu3y.js → TreasuryStatementsPage-DGyug1wv-CZKI-qyS.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-BMYTdYa5-B5Y_HIfH.js → TreasuryTaxLetterPage-BRvcOhJZ-BeVUPN4i.js} +5 -5
- package/dist/assets/{TreasuryTransferOrReviewPage-B9VwyDJa-BiuSVWbg.js → TreasuryTransferOrReviewPage-H5ohs_5r-DHIAJoBr.js} +30 -30
- package/dist/assets/{TrendChart-CqYeWLeV-DGzeA7Oj.js → TrendChart-ohr8bK1l-B5dRIvEy.js} +4 -4
- package/dist/assets/{TrendWithTransactions-xn1fvlLO-BRgtHO5b.js → TrendWithTransactions-D5eTj9Ca-BjYM3mpG.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-B_aOzm4v-CskTnoly.js → UncategorizedAccountsMappingPage-3NGCCdAA-DC14oDOB.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-B6LF_f7C-D2tKVxd-.js → UnitIntegrationPage-B6FOsf88-BTafkfwm.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-BlKvE3tT-HoFIL9hV.js → UploadAdditionalDocumentOverlay-CH9x8nx2-CEXAXlCj.js} +1 -1
- package/dist/assets/Vendor2FAPopup-D7455GFK-DU0-h-ac.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-CncDplWQ-B3O_yZHX.js → VendorACHDetailsPage-CXoxi6Qp-CrJbaYWf.js} +1 -1
- package/dist/assets/{VendorDetailPage-POan4Fo8-CFdhAO3w.js → VendorDetailPage-C6BgYb-c-BaTlvY1P.js} +6 -6
- package/dist/assets/{VendorDomesticWireDetailsPage-B1bT0W9o-D_UYfmub.js → VendorDomesticWireDetailsPage-DXfnCFu1-Bhf2lnL-.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C25iYV4w-Crhvm405.js → VendorFiling1099EditablePage-ByESLoQK-C5wgo9Qc.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-DY035p5C-CBR39dJP.js → VendorFirstReviewPage-iNPtUFNw-BbgJ63Tq.js} +27 -27
- package/dist/assets/{VendorInternationalWireDetailsPage-DN_mcAqY-mmYMcnBl.js → VendorInternationalWireDetailsPage-CqgGFU1K-CKX6n49-.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BaXgGRdu-Cae4saOt.js → VendorInternationalWireSwiftDetailsPage-CNzft0dg-D-n290kY.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C2UiqXC0-C8tGsoLh.js → VendorsAccountsSection-DCWhoqAP-DHjXIFFo.js} +2 -2
- package/dist/assets/{VerifyDevice-C7BWrAZ3-Csv3HVHz.js → VerifyDevice-DvJEmcUq-BD1k6-81.js} +4 -4
- package/dist/assets/{VideoPlayer-BYkDTMkS-BwPpLJtc.js → VideoPlayer-Cp5DBUTp-n0gfwB0a.js} +1 -1
- package/dist/assets/{VideoPopup-Chye3pds-CsfGUZ0P.js → VideoPopup-97jTEw9t-C5kzDaxd.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-Cx-gJdnW-CaMsO86D.js → WarningsDrawerPage-CMy4FFqt-zNFC-DvY.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-BrXe6Kao-DSC2z41y.js → ZeniAccountDetailPage-mzHK5HUV-B2AMGiBu.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CJnHvk5a-CKxe9b_t.js → ZeniAccountListViewPage-BeN4AKFd-B0XSIJvm.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-BdLOT9UG-BloORYtU.js → ZeniAccountNavBarPieces-Db9bLk29-BybXcA-l.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-B1I9l833-C9FtKjkQ.js → ZeniAccountPromoPage-By02sVg0-BAnhqfjw.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-CitVJnZC-djUrd4xP.js → ZeniAccountSetupPage-DeDgKig1-lQnp_HAL.js} +1 -1
- package/dist/assets/{ZeniCopyright-DbQka65R-DPVtmyyb.js → ZeniCopyright-Bfc0Yl56-xItwPVZ8.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dzxu82Xw-dYxKyELc.js → ZeniTransferAmountSlider-DzeU3D5r-Dnm1GguJ.js} +6 -6
- package/dist/assets/{analyticsHelper-DNLhFCBz.js → analyticsHelper-CuIvasD7.js} +1 -1
- package/dist/assets/{analyticsHelper-DgJDMdal-1yNDR_DA.js → analyticsHelper-Cx9PlTZt-BYpG33i-.js} +1 -1
- package/dist/assets/{chartTypes-D1j_l919-BJFL1pej.js → chartTypes-BoA9fCCZ-7xW-fVbz.js} +1 -1
- package/dist/assets/{commonDimensions-DDu54g8x-CV84qnXW.js → commonDimensions-BCUrWcBL-vTG5ZzmA.js} +1 -1
- package/dist/assets/{detailCommon-DXjUFoA1-DOO_rLzr.js → detailCommon-CFA4p6RP-B16mjiFN.js} +4 -4
- package/dist/assets/{downloadPdf-DChYYVaW-Dnx-iALN.js → downloadPdf-DZ5WQt0r-Bylb-lK-.js} +1 -1
- package/dist/assets/{index-HCR8uiT1.js → index-6DHFBk74.js} +1721 -1710
- package/dist/assets/{mapLoadingInProgressToTreeNode-BC5IH44--DUlVTHZE.js → mapLoadingInProgressToTreeNode-DQf-1sg7-B5MxQ8jl.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CUXssP6r-BNiiDwH7.js → mapSectionWithAcOnlyToTreeNode-D0W1f0wZ-D3CjHikv.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-sdzfy8cu-BS6jqoR8.js → mapSpacerToTreeNode-Dzbv_N4o-CAPOe3mv.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DgOZfixy-2xtis6eH.js → mapTimeframeBalancesToTreeNode-2yWiGglp-Dy8oBMmS.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BROieqal-CeHO_B7h.js → mapTimeframeBalancesToTreeNode-COS_auLN-CKgStlR5.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-bXb7WXAq-BQ_We1t6.js → mapTimeframeHeaderLoadingInProgressToTreeNode-NCujclSc-BUwl6Oy8.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DqhuI8hD-BZz1K830.js → toCOABalancesWithID--3a-7Ohb-Dq8zIbZX.js} +1 -1
- package/dist/assets/{toChartData-DZPFiNsp-eUlwDIgN.js → toChartData-KZ92y9KA-BJN5TA9Q.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D5AxfiPH-BIkGmYn_.js → treasuryColorHelper-ChFJTPyg--ivM0q9A.js} +1 -1
- package/dist/assets/{uploadAttachment-D04Fz4F1-CY5qRTQH.js → uploadAttachment-BzeeOF-1-oKdmjDH7.js} +14 -14
- package/dist/assets/{uploadReceipts-9DTOr0BG-Dpma3uTz.js → uploadReceipts-9DTOr0BG-BAqIaRxY.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/BillsBulkReviewDrawerPage-CFK7g3R1-b-zDDdgS.js +0 -1
- package/dist/assets/ChargeCardDetailPage-DXUoIbZa-DkTH3Igs.js +0 -1813
- package/dist/assets/ChargeCardUtils-BeG5m9OQ-BVnvyZkb.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-D4zUp7hX-CSoGWUYd.js +0 -1
- package/dist/assets/InvitePeoplePage-DYpb33z0-yjHHc7mx.js +0 -12
- package/dist/assets/SignInScreen-DeabHgX8.js +0 -1
- package/dist/assets/Vendor2FAPopup-BLzf9zxl-l8gvXF4Y.js +0 -1
|
@@ -0,0 +1,1462 @@
|
|
|
1
|
+
import{c as tt,q as Le,ax as It,a9 as Dt,fX as wr,l as nt,hF as ki,aU as Qe,O as ke,fY as xr,aP as et,j as t,h3 as ji,bF as Li,u as l,g4 as Sr,aN as Ge,aM as J,o as a,c5 as Qt,h as d,i_ as yr,C as U,cD as Ii,i$ as Di,fn as Ai,gW as Ti,bJ as Ri,bZ as br,aS as ea,j0 as Ei,j1 as $r,y as T,bP as vr,b9 as ta,t as Fi,aT as kr,a$ as Pi,j2 as zi,j3 as Mi,b6 as aa,ai as ge,eT as Vi,iR as Oi,M as Ct,fZ as jr,P as gt,b3 as Hi,dG as Ni,cH as Bi,cE as Wi,di as Ui,hC as _i,am as Oe,c7 as Zi,aY as Wt,j4 as Ut,j5 as Gi,b as Fa,H as Lr,b8 as Yi,j6 as qi,f_ as ut,dN as Pa,f9 as Xi,n as Ir,cM as Dr,iU as Ji,ca as Ki,s as Ar,j7 as Qi,aw as kt,cd as za,bB as eo,dx as to,an as dt,fU as ao,ar as ro,A as io,bL as oo,j8 as At,fB as no,c3 as so,j9 as Tr,ja as Rr,gI as Er,jb as Lt,ig as Fr,iW as co,cP as lo,ez as Pr,iX as ho,iY as po,e6 as uo,dd as mo,eF as go,cu as Co,cv as fo}from"./index-6DHFBk74.js";import{b as o,n as r,i as we,w as wo,k as zr}from"./vendor-Bs1fkIUX.js";import{j as xo}from"./NavigationDots-E2eEHB86-BK4Og9YA.js";import{L as So,H as ot,U as Ma,M as yo,F as bo,_ as $o}from"./ChargeCardUtils-Cy5rZlIH-BILI0sIl.js";import{A as vo,i as ko,a as jo,l as Lo,r as Io,t as Do,n as Ao}from"./add-to-wallet-DgdBD8_G-XP_wmSR7.js";import{j as To}from"./CardNumberSubText-Ct0mJOMk-DQXdeyZe.js";import{r as Mr}from"./mui-Ty75qFQF.js";import{f as Vr}from"./uploadReceipts-9DTOr0BG-BAqIaRxY.js";import{N as Ro,L as Eo,k as Fo,z as Po}from"./LockCardPage-DPBKHSos-D1Lau_ZJ.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./RoleWithToolTip-DJ15AsI3-p10xCSND.js";const Or=ke.getLocalizedStrings().spendManagement.chargeCard,zo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,appleWalletLink:k,googleWalletLink:I,style:p,showDrawerAnimation:E,setWalletType:y,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Dt().analytics,{isIPadScreen:Y}=zi(),{isAndroidScreen:K}=Mi(),_=It(),D=nt.hasChargeCardAdminLevelAccess(_.loggedInUserRoleMap);return t.jsx(Mo,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(k,"_blank")}}):K===!0?t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(I,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{y("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:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),O(!0)}}),t.jsx(Jt,{onClick:()=>{y("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:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),O(!0)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Ir,{prefixIcon:t.jsx(Vo,{}),label:Or.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":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Ir,{prefixIcon:t.jsx(Oo,{}),label:Or.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":J("add-to-apple-wallet-button")})},Mo=r.div`
|
|
2
|
+
margin-top: ${a.sp4};
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: ${a.sp5};
|
|
6
|
+
`,Vo=r(Ao)`
|
|
7
|
+
height: ${a.sp4};
|
|
8
|
+
width: ${a.sp5};
|
|
9
|
+
`,Oo=r(Do)`
|
|
10
|
+
height: ${a.sp4};
|
|
11
|
+
width: ${a.sp5};
|
|
12
|
+
`,Ho=[d.brandColorSapphire,d.brandColorJade,d.graphColor01,d.graphColor08,d.graphColor12,d.graphColor15,d.graphColor16Dark,d.graphColor23Dark,d.graphColor32Dark,d.graphColor34Dark,d.brandColorOpalDark,d.brandColorRuby],No=ke.getLocalizedStrings().spendManagement.chargeCard,Bo=({isColorPaletteVisible:e,hasBorderShadow:i,leftTransitionValue:s,colorInState:u,styles:h,colorPaletteTitleStyles:f,ColorListStyles:c,coloredCircleStyles:g,closeStyles:m,tickStyles:x,toggleColorPaletteVisibility:S,handleColorClick:n})=>t.jsxs(Wo,{showColorPalette:e,style:h,hasBorderShadow:i,leftTransitionValue:s,children:[t.jsxs(_o,{style:f,children:[t.jsx(Zo,{children:No.cardDetails.cardTheme}),t.jsx(Go,{style:m,"data-testid":J("close-color-palette"),onClick:C=>{C.stopPropagation(),S(!e)}})]}),t.jsx(Uo,{style:c,children:Ho.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":J("color-palette-item-cards",w.toString()),onClick:()=>n(new Qe(C),!0),children:new Qe(C).toString()===u?.toString()?t.jsx(Yo,{style:x}):null},C))})]}),Wo=r.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
top: ${a.sp1};
|
|
15
|
+
max-width: 78%;
|
|
16
|
+
left: ${e=>e.showColorPalette?e.hasBorderShadow?a.sp1:a.sp0:`${e.leftTransitionValue}px`};
|
|
17
|
+
transition: left 0.3s ease-in;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
background: ${d.neutralGrey5Light};
|
|
20
|
+
border-top-left-radius: ${a.sp1};
|
|
21
|
+
border-bottom-left-radius: ${a.sp1};
|
|
22
|
+
position: absolute;
|
|
23
|
+
height: ${`calc(100% - ${a.sp2})`};
|
|
24
|
+
z-index: 1;
|
|
25
|
+
`,Uo=r.div`
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
padding: ${a.sp0} 38px ${a.sp0} 31px;
|
|
29
|
+
`,_o=r.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
padding: ${a.sp5} ${a.sp5} ${a.sp2} ${a.sp5};
|
|
34
|
+
`,Zo=r(ge)`
|
|
35
|
+
color: ${d.brandColorOnyx};
|
|
36
|
+
`,Go=r(io)`
|
|
37
|
+
width: ${a.sp3};
|
|
38
|
+
height: ${a.sp3};
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
color: ${e=>e.theme.colors.hero};
|
|
41
|
+
`,Yo=r(oo)`
|
|
42
|
+
width: ${a.sp3};
|
|
43
|
+
color: ${d.neutralGrey5Light};
|
|
44
|
+
`,qo=r.div`
|
|
45
|
+
width: ${a.sp4};
|
|
46
|
+
height: ${a.sp4};
|
|
47
|
+
display: flex;
|
|
48
|
+
background: ${e=>e.coreColor};
|
|
49
|
+
border-radius: 50%;
|
|
50
|
+
margin: ${a.sp2};
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
`,{spendManagement:Xo,common:Ke,dateFormat:Jo}=ke.getLocalizedStrings(),Xe=Xo.chargeCard,Re={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(U.extraSmallRegular.fontSizeValue,U.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new T(18,18,18,21)},_t=e=>t.jsxs(Cn,{style:{...e},children:[t.jsx(gn,{}),t.jsx(fn,{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:S,chargeCardCashbackDetailState:n,creditAccount:C,creditAccountRepayment:w,isDebitCard:j,depositAccountLimitFetchState:b,isCardDetailErrored:k,isCardColorUpdating:I,cardDetailsFetchState:p,isCardColorUndefined:E,cardInfoTitleStyles:y,styles:O,cvvSecStyles:H,chargeCard:v,token:Y,setSecretRevealed:K,setIsCardDetailErrored:_,setCardDetailsFetchState:D,onFireOnClickAnalytics:oe})=>{const Q=Dt().analytics,[,ne]=wr(),N=Le(),[Z,W]=o.useState(!1),[ae,ee]=o.useState(!1),[ie,se]=o.useState(!1),P=It(),de=nt.hasChargeCardAdminLevelAccess(P.loggedInUserRoleMap),[G]=yr("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),$=i==="addToWalletDrawer"?.75:N==="small"?.85:1,q=e?"sandbox":"live";o.useEffect(()=>{if(G&&v!=null&&s&&Y!=null&&!u){const A=window.VGSShow.create(h).setEnvironment(q),z=v.cardProviderID,ce=A.request({name:"data-text",method:"GET",path:"/cards/"+z+"/secure-data/cvv2",headers:{Authorization:"Bearer "+Y},htmlWrapper:"text",jsonPathSelector:"data.attributes.cvv2"});D({cvv:!0,number:!0}),ce.render(`#SecretCvv-${i}`,{"@font-face":{"font-family":kt["PT Mono"],"font-style":"normal","font-weight":za.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":kt["PT Mono"],opacity:.7,color:d.brandColorOnyx,fontSize:`${$*U.h6Regular.fontSizeValue}px`,fontWeight:U.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*U.h6Regular.lineHeightValue}px`}),ce.on("requestSuccess",()=>{K(!0),_(!1),D({...p,cvv:!1})}),ce.on("requestFail",()=>{_(!0),D({...p,cvv:!1});const L=document.getElementById(`SecretCvv-${i}`);for(;L?.hasChildNodes()===!0;)L.removeChild(L.children[0])}),A.copyFrom(ce,{text:Ke.strings.empty},L=>{L==="success"?(ee(!0),oe("CVV copied"),n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||b==="Completed")&&Q.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","CVV","",m,x,S)):ee(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:`${$*Re.secretCVVWrapperHeight}px`,width:`${$*Re.secretCVVWrapperWidth}px`});const re=A.request({name:"data-text",method:"GET",path:"/cards/"+z+"/secure-data/pan",headers:{Authorization:"Bearer "+Y},htmlWrapper:"text",jsonPathSelector:"data.attributes.pan",serializers:[A.SERIALIZERS.replace("(\\d{4})(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3 $4")]});re.render(`#SecretCardNumber-${i}`,{"@font-face":{"font-family":kt["PT Mono"],"font-style":"normal","font-weight":za.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":kt["PT Mono"],opacity:.7,color:d.brandColorOnyx,fontSize:`${$*U.h6Regular.fontSizeValue}px`,fontWeight:U.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*U.h6Regular.lineHeightValue}px`}),re.on("requestSuccess",()=>{K(!0),_(!1),D({...p,number:!1})}),re.on("requestFail",()=>{_(!0),D({...p,number:!1});const L=document.getElementById(`SecretCardNumber-${i}`);for(;L?.hasChildNodes()===!0;)L.removeChild(L.children[0])}),A.copyFrom(re,{text:Ke.strings.empty,serializers:[A.SERIALIZERS.replace(Ke.strings.space,Ke.strings.empty)]},L=>{L==="success"?(W(!0),oe("card number copied"),n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||b==="Completed")&&Q.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Card Number","",m,x,S)):W(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:`${$*U.h6Regular.lineHeightValue}px`,width:`${$*Re.secretCardNumberWrapperWidth}px`})}},[G,v,s,Y,u]),o.useEffect(()=>{if(s===!1){const A=document.getElementById(`SecretCvv-${i}`);for(;A?.hasChildNodes()===!0;)A.removeChild(A.children[0]);const z=document.getElementById(`CvvCopyBtn-${i}`);for(;z?.hasChildNodes()===!0;)z.removeChild(z.children[0]);const ce=document.getElementById(`SecretCardNumber-${i}`);for(;ce?.hasChildNodes()===!0;)ce.removeChild(ce.children[0]);const re=document.getElementById(`CardNumberCopyBtn-${i}`);for(;re?.hasChildNodes()===!0;)re.removeChild(re.children[0])}},[i,s]),o.useEffect(()=>{Z===!0&&setTimeout(()=>{W(!1)},800),ae===!0&&setTimeout(()=>{ee(!1)},800),ie===!0&&setTimeout(()=>{se(!1)},800)},[Z,ae,ie]);const B=v!=null?nt.dateFromYearMonthDate(v.validThru.year,v.validThru.month-1).format(Jo.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)||b==="Completed")&&Q.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Valid Thru",B,m,x,S),ne(B),se(!0))};return t.jsxs(nn,{style:O,children:[t.jsxs(sn,{children:[t.jsx(Zt,{style:y,windowSize:N,children:Xe.cardDetails.cardNumber}),t.jsx(dn,{sourceId:i,scaleFactor:$,showSecretInfo:s&&(p.number===!1||p.cvv===!1),isCardDetailFetching:p.number===!0||p.cvv===!0||E||I,windowSize:N,children:`${Xe.cardDetails.cardNumberHideout}
|
|
54
|
+
${v?.accountLast4??Ke.strings.empty}`}),t.jsxs(Ko,{secretRevealed:u,scaleFactor:$,showSecretInfo:s&&p.cvv===!1&&p.number===!1,sourceId:i,isCardDetailErrored:k,children:[t.jsx(Qo,{sourceId:i,scaleFactor:$,secretRevealed:u,id:`SecretCardNumber-${i}`}),t.jsx(on,{secretRevealed:u,scaleFactor:$,id:`CardNumberCopyBtn-${i}`,sourceId:i}),Z===!0?t.jsx(_t,{top:$*Re.cardNumberCopiedSectionTop}):null]})]}),t.jsxs(cn,{children:[t.jsxs(pn,{children:[t.jsx(Zt,{style:y,windowSize:N,children:Xe.cardDetails.expiry}),t.jsxs(an,{secretRevealed:s&&(p.cvv===!1||p.number===!1),children:[u&&s&&p.cvv===!1&&p.number===!1?t.jsx(mn,{sourceId:i,scaleFactor:$,windowSize:N,secretRevealed:u&&s,"data-testid":J("expiry-date-copy"),onClick:A=>{A.stopPropagation(),le(v)},children:u&&s&&p.cvv===!1&&p.number===!1?B:Xe.cardDetails.expiryHideOut}):t.jsx(un,{sourceId:i,windowSize:N,scaleFactor:$,isCardDetailFetching:p.cvv===!0||p.number===!0||E||I,children:Xe.cardDetails.expiryHideOut}),ie===!0?t.jsx(_t,{top:$*Re.expiryCopySectionTop,width:"auto"}):null]})]}),t.jsxs(ln,{style:H,children:[t.jsx(Zt,{style:y,windowSize:N,children:Xe.cardDetails.cvv}),t.jsx(hn,{sourceId:i,scaleFactor:$,showSecretInfo:s&&p.cvv===!1&&p.number===!1,isCardDetailFetching:p.number===!0||p.cvv===!0||E||I,windowSize:N,children:Xe.cardDetails.cvvHideOut}),t.jsxs(en,{secretRevealed:u,sourceId:i,showSecretInfo:s&&p.cvv===!1&&p.number===!1,isCardDetailErrored:k,children:[t.jsx(tn,{scaleFactor:$,secretRevealed:u,sourceId:i,id:`SecretCvv-${i}`}),t.jsx(rn,{windowSize:N,scaleFactor:$,secretRevealed:u,id:`CvvCopyBtn-${i}`,sourceId:i}),ae===!0?t.jsx(_t,{top:$*Re.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},Ko=r.div`
|
|
55
|
+
display: ${e=>e.showSecretInfo?"block":"none"};
|
|
56
|
+
height: ${e=>e.secretRevealed?"unset":a.sp0};
|
|
57
|
+
width: ${e=>e.secretRevealed?e.scaleFactor*Re.secretCardNumberWrapperWidth:l[0]}px;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
&:hover {
|
|
60
|
+
background: ${e=>e.isCardDetailErrored?"transparent":d.neutralGrey5Light};
|
|
61
|
+
border-radius: ${a.sp1};
|
|
62
|
+
}
|
|
63
|
+
`,Qo=r.div`
|
|
64
|
+
min-height: ${e=>e.secretRevealed?e.scaleFactor*U.h6Regular.lineHeightValue:l[0]}px;
|
|
65
|
+
height: ${e=>e.secretRevealed?e.scaleFactor*U.h6Regular.lineHeightValue:l[0]}px;
|
|
66
|
+
width: ${e=>e.secretRevealed?"100%":a.sp0};
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
position: relative;
|
|
69
|
+
`,en=r.div`
|
|
70
|
+
display: ${e=>e.showSecretInfo?"flex":"none"};
|
|
71
|
+
height: ${e=>e.secretRevealed?"unset":a.sp0};
|
|
72
|
+
min-height: ${e=>e.secretRevealed?"unset":a.sp0};
|
|
73
|
+
width: ${e=>e.secretRevealed?Re.secretCVVWrapperWidth:l[0]}px;
|
|
74
|
+
position: relative;
|
|
75
|
+
&:hover {
|
|
76
|
+
background: ${e=>e.isCardDetailErrored?"transparent":d.neutralGrey5Light};
|
|
77
|
+
border-radius: ${a.sp1};
|
|
78
|
+
}
|
|
79
|
+
`,tn=r.div`
|
|
80
|
+
height: ${e=>e.secretRevealed?e.scaleFactor*U.h6Regular.lineHeightValue:l[0]}px;
|
|
81
|
+
width: ${e=>e.secretRevealed?Re.secretCVVWrapperWidth*e.scaleFactor:a.sp0};
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
`,an=r.div`
|
|
84
|
+
position: relative;
|
|
85
|
+
padding: ${a.sp0} ${a.sp1};
|
|
86
|
+
&:hover {
|
|
87
|
+
background: ${e=>e.secretRevealed?d.neutralGrey5Light:"transparent"};
|
|
88
|
+
border-radius: ${a.sp1};
|
|
89
|
+
}
|
|
90
|
+
`,rn=r.div`
|
|
91
|
+
height: ${e=>e.secretRevealed?e.scaleFactor*U.h6Regular.lineHeightValue:l[0]}px;
|
|
92
|
+
width: ${e=>e.secretRevealed?"inherit":a.sp0};
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: ${a.sp0};
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
background: transparent;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
`,on=r.div`
|
|
99
|
+
height: ${e=>e.secretRevealed?e.scaleFactor*U.h6Regular.lineHeightValue:l[0]}px;
|
|
100
|
+
width: ${e=>e.secretRevealed?"inherit":a.sp0};
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: ${e=>e.scaleFactor*Re.cardNumberCopyBtnTop}px;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
background: transparent;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
`,nn=r.div`
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
padding: ${a.sp4} ${a.sp0} ${a.sp4} ${a.sp5};
|
|
110
|
+
width: 75%;
|
|
111
|
+
gap: ${a.sp4};
|
|
112
|
+
`,sn=r.div`
|
|
113
|
+
position: relative;
|
|
114
|
+
width: max-content;
|
|
115
|
+
`,Zt=r(ge)`
|
|
116
|
+
padding-left: ${a.sp1};
|
|
117
|
+
color: ${d.brandColorPearl};
|
|
118
|
+
position: relative;
|
|
119
|
+
font-size: ${e=>Va.CardInfoTitleSize.valuePx(e.windowSize)};
|
|
120
|
+
line-height: ${e=>Va.CardInfoTitleLineHeight.valuePx(e.windowSize)};
|
|
121
|
+
`,dn=r(At)`
|
|
122
|
+
display: ${e=>e.showSecretInfo===!0?"none":"block"};
|
|
123
|
+
padding-left: ${a.sp1};
|
|
124
|
+
color: ${e=>e.isCardDetailFetching?e.theme.colors.grey1:e.theme.colors.brandColorOnyx};
|
|
125
|
+
opacity: 0.7;
|
|
126
|
+
margin-top: ${e=>Re.maskedCardNumberMarginTop.valuePx(e.windowSize)};
|
|
127
|
+
margin-left: -2px;
|
|
128
|
+
font-size: ${e=>e.scaleFactor*U.chargeCardNumberText.fontSizeValue}px;
|
|
129
|
+
line-height: ${e=>e.scaleFactor*U.chargeCardNumberText.lineHeightValue}px;
|
|
130
|
+
-webkit-font-smoothing: initial;
|
|
131
|
+
-moz-osx-font-smoothing: initial;
|
|
132
|
+
word-wrap: "break-word";
|
|
133
|
+
`,cn=r.div`
|
|
134
|
+
position: relative;
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: row;
|
|
137
|
+
justify-content: flex-start;
|
|
138
|
+
gap: ${a.sp4};
|
|
139
|
+
`,ln=r.div`
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
margin-right: ${a.sp5};
|
|
143
|
+
`,hn=r(At)`
|
|
144
|
+
display: ${e=>e.showSecretInfo?"none":"block"};
|
|
145
|
+
padding-left: ${a.sp1};
|
|
146
|
+
opacity: 0.7;
|
|
147
|
+
color: ${e=>e.isCardDetailFetching?e.theme.colors.grey1:e.theme.colors.brandColorOnyx};
|
|
148
|
+
font-size: ${e=>e.scaleFactor*U.chargeCardNumberText.fontSizeValue}px;
|
|
149
|
+
line-height: ${e=>e.scaleFactor*U.chargeCardNumberText.lineHeightValue}px;
|
|
150
|
+
-webkit-font-smoothing: initial;
|
|
151
|
+
-moz-osx-font-smoothing: initial;
|
|
152
|
+
word-wrap: "break-word";
|
|
153
|
+
`,pn=r.div`
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
`,un=r(At)`
|
|
157
|
+
color: ${e=>e.isCardDetailFetching?e.theme.colors.grey1:e.theme.colors.brandColorOnyx};
|
|
158
|
+
opacity: 0.7;
|
|
159
|
+
font-size: ${e=>e.scaleFactor*U.chargeCardNumberText.fontSizeValue}px;
|
|
160
|
+
line-height: ${e=>e.scaleFactor*U.chargeCardNumberText.lineHeightValue}px;
|
|
161
|
+
-webkit-font-smoothing: initial;
|
|
162
|
+
-moz-osx-font-smoothing: initial;
|
|
163
|
+
word-wrap: "break-word";
|
|
164
|
+
`,mn=r(At)`
|
|
165
|
+
display: ${e=>e.secretRevealed?"block":"none"};
|
|
166
|
+
color: ${e=>e.theme.colors.brandColorOnyx};
|
|
167
|
+
border-radius: ${a.sp1};
|
|
168
|
+
opacity: 0.7;
|
|
169
|
+
padding-left: ${e=>e.secretRevealed===!0?a.sp0:a.sp1};
|
|
170
|
+
font-size: ${e=>e.scaleFactor*U.chargeCardNumberText.fontSizeValue}px;
|
|
171
|
+
line-height: ${e=>e.scaleFactor*U.chargeCardNumberText.lineHeightValue}px;
|
|
172
|
+
-webkit-font-smoothing: initial;
|
|
173
|
+
-moz-osx-font-smoothing: initial;
|
|
174
|
+
word-wrap: "break-word";
|
|
175
|
+
`,gn=r(Ct)`
|
|
176
|
+
height: ${a.sp3};
|
|
177
|
+
width: ${a.sp3};
|
|
178
|
+
color: ${d.success};
|
|
179
|
+
`,Cn=r.div`
|
|
180
|
+
position: absolute;
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
gap: ${a.sp1};
|
|
184
|
+
width: 100%;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
z-index: 1;
|
|
187
|
+
`,fn=r(ge)`
|
|
188
|
+
color: ${d.primaryDark};
|
|
189
|
+
padding: 2px ${a.sp2};
|
|
190
|
+
background-color: ${d.blackColor};
|
|
191
|
+
`,{common:wn,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])},Hr=({isChargeCardAdmin:e,chargeCardDetailView:i,productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,isOwnCard:g,vgsVaultId:m,showSecretInfo:x,controllerEmails:S,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,chargeCardCashbackDetailState:b,creditAccount:k,creditAccountRepayment:I,isShowingInDrawer:p,isSandboxEnv:E,isCardDetailErrored:y,signedInUserToken:O,selectedColor:H,cardDetailsFetchState:v,setCardDetailsFetchState:Y,setIsCardDetailErrored:K,setShowSecretInfo:_,setSecretRevealed:D,setShowPhoneNumberForOtp:oe,isCardDetailFetching:Q,handleColorCodeClick:ne,onFireOnClickAnalytics:N,onUnlockChargeCard:Z})=>{const[W,ae]=o.useState(!1),[ee,ie]=o.useState(!1),[se,P]=o.useState(!1),[de,G]=o.useState(!1),[$,q]=o.useState(!1),[B,le]=o.useState(!1),[A,z]=o.useState(()=>{const fe=i.chargeCard?.status.code;return fe==="locked"||fe==="closed"||fe==="closed_by_customer"}),[ce,re]=o.useState(!1),[L,je]=o.useState(!1),Ce=o.useRef(void 0),Fe=i.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:X}=xr(),te=Le(),M=p?.75:te==="small"?.85:1,Se=i.lockChargeCardsFetchState.fetchState,Ae=et(Se),me=i.unlockChargeCardsFetchState.fetchState,He=et(me),Ye=i.closeChargeCardsFetchState.fetchState,at=et(Ye),pe=i.chargeCard?.status.code==="locked",R=i.chargeCard?.status.code==="closed"||i.chargeCard?.status.code==="closed_by_customer",[he]=Wt("UnlockCard"),[F]=Wt("LockCard"),[qe]=Wt("CloseCard");o.useEffect(()=>{if(!(ee&&pe)){P(!1);return}const fe=setTimeout(()=>{P(!0)},400);return()=>clearTimeout(fe)},[ee,pe]),o.useEffect(()=>{(pe||R)&&!A&&(z(!0),re(!1))},[pe,R]),o.useEffect(()=>{Ae==="In-Progress"&&Se==="Completed"&&(Ce.current&&clearTimeout(Ce.current),G(!1),z(!1),re(!0),setTimeout(()=>{G(!0)},0),Ce.current=setTimeout(()=>{G(!1),z(!0)},1e3))},[Se,Ae]),o.useEffect(()=>{He==="In-Progress"&&me==="Completed"&&(Ce.current&&clearTimeout(Ce.current),je(!0),q(!1),setTimeout(()=>{q(!0)},0),Ce.current=setTimeout(()=>{q(!1),z(!1),je(!1)},1e3))},[me,He]),o.useEffect(()=>{at==="In-Progress"&&Ye==="Completed"&&(Ce.current&&clearTimeout(Ce.current),le(!1),z(!1),re(!0),setTimeout(()=>{le(!0)},0),Ce.current=setTimeout(()=>{le(!1),z(!0)},1e3))},[Ye,at]);const Pe=X?ve.tapCardCopyText:ve.scanNowAndAddToWallet,ct=X?ve.tapCardCopyText:t.jsxs(bn,{children:[t.jsx(Zn,{}),ve.clickTheCardToFetchDetailsText]}),ze=i.chargeCard?.isLockedByAdmin??!1,wt=te==="small"?ve.tapCardCopyText:ve.clickTheCardToCopyDetailsText,lt=te==="small"?ve.tapCardCopyText:ve.clickTheCardToFetchDetailsText,xt=p?Pe:wt,St=p?ct:lt,Me=Q(v)||i.updateFetchState.fetchState==="In-Progress"||i.unlockChargeCardsFetchState.fetchState==="In-Progress",ht=(v.cvv!==!0||v.number!==!0)&&g,Te=!!i.chargeCard?.type.code.includes("debit");return t.jsxs(In,{windowSize:te,scaleFactor:M,children:[t.jsxs(An,{isCardLocked:pe,isChargeCardAdmin:e,isLockedByAdmin:ze,unlockFetchState:i.unlockChargeCardsFetchState.fetchState,onClick:fe=>{fe.stopPropagation(),pe&&me!=="In-Progress"&&(e||!ze)&&Z(e)},onMouseEnter:()=>{(e||!ze)&&me!=="In-Progress"&&ie(!0)},onMouseLeave:()=>{(e||!ze)&&me!=="In-Progress"&&ie(!1)},children:[c&&p?t.jsxs(t.Fragment,{children:[t.jsx(Bn,{}),t.jsx(Wn,{}),t.jsx(Un,{}),t.jsx(_n,{})]}):null,t.jsx(Tn,{play:A,animate:ce,fadeOut:L,unlockInProgress:me==="In-Progress"||L||He==="In-Progress"&&me==="Completed"}),$&&he!=null?t.jsx(Ut,{style:{width:56,height:56,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:he,loop:!1,play:$,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):B&&qe!=null?t.jsx(Ut,{style:{width:56,height:56,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:qe,loop:!1,play:B,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):A?R?t.jsx(Vn,{}):me==="In-Progress"?t.jsx(Fn,{}):L||He==="In-Progress"&&me==="Completed"?null:t.jsx(Mn,{isHovered:ee&&pe,children:t.jsxs(zn,{isHovered:ee&&pe,children:[t.jsx(Nr,{}),t.jsx(Pn,{isVisible:ee&&pe,shouldEnterLayout:se,children:ve.moreOptions.unlock})]})}):de&&F!=null?t.jsx(Ut,{style:{width:72,height:72,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:F,loop:!1,play:de,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,Fe.includes("virtual")?t.jsxs(Rn,{isShowingInDrawer:p,isOwnCard:g,scaleFactor:M,bgColor:H?.toString(),showColorPalette:W,isDebitCard:Te,"data-testid":J("virtual-charge-card-detail"),onClick:()=>{W===!1&&g===!0&&Q(v)===!1&&me!=="In-Progress"&&pe===!1&&Ma({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:N,setShowSecretInfo:_})},enableClick:ht&&!pe&&!R||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(Bo,{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,pt)=>{ne(fe,pt),pt&&ae(!1)}}),t.jsx(Nn,{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:Y,isCardDetailErrored:y,setIsCardDetailErrored:K,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,creditAccountRepayment:I,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:S,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:k,chargeCardCashbackDetailState:b,cardInfoTitleStyles:{...U.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(On,{children:[t.jsx(Wa,{scaleFactor:M}),t.jsx(Ln,{onClick:fe=>{fe.stopPropagation(),g&&ae(!W)},"data-testid":J("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($n,{scaleFactor:M})]})]}):t.jsxs(Gn,{scaleFactor:M,enableClick:ht&&!pe&&!R||pe&&me!=="In-Progress",isOwnCard:g,isShowingInDrawer:p,onClick:()=>{g===!0&&pe===!1&&me!=="In-Progress"&&Q(v)===!1&&Ma({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:N,setShowSecretInfo:_})},"data-testid":J("physical-charge-card-detail"),children:[t.jsx(Na,{scaleFactor:M,shouldAppear:Me}),t.jsxs(Yn,{flipCard:c,children:[t.jsx(qn,{children:t.jsx($r,{scaleFactor:M,isClickable:ht,isLoading:Me,isDebitCard:Te})}),x?t.jsxs(Xn,{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:Y,isCardDetailErrored:y,setIsCardDetailErrored:K,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:S,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:i.creditAccount,creditAccountRepayment:I,chargeCardCashbackDetailState:b,cardInfoTitleStyles:{...U.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(Hn,{children:t.jsx(Wa,{scaleFactor:M})})})]}):null]})]})]}),R?t.jsx(xn,{children:ve.cardClosedMessage}):ze&&!e?t.jsx(Sn,{children:ve.cardLockedByAdminMessage}):pe?t.jsx(Gt,{children:ve.cardLockedMessage}):g===!0&&!Me?v.cvv===!0&&v.number===!0?t.jsx(En,{children:wn.loading}):y?t.jsx(yn,{}):t.jsx(Gt,{children:c?xt:St}):Me?t.jsx(Gt,{children:ve.loading}):null]})},xn=r(ge)`
|
|
192
|
+
color: ${d.important};
|
|
193
|
+
`,Sn=r(ge)`
|
|
194
|
+
color: ${e=>e.theme.colors.primary};
|
|
195
|
+
`,yn=()=>t.jsxs(jn,{children:[t.jsx(vn,{}),t.jsx(kn,{children:ve.failedToFetchCardWebText})]}),bn=r.div`
|
|
196
|
+
display: flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
gap: ${a.sp2};
|
|
199
|
+
`,$n=r(to)`
|
|
200
|
+
width: ${e=>e.scaleFactor*xe.visaLogoWidth}px;
|
|
201
|
+
height: ${e=>e.scaleFactor*xe.visaLogoHeight}px;
|
|
202
|
+
`,vn=r(no)`
|
|
203
|
+
width: ${a.sp3};
|
|
204
|
+
height: ${a.sp3};
|
|
205
|
+
color: ${d.alert};
|
|
206
|
+
`,kn=r(ge)`
|
|
207
|
+
color: ${d.alert};
|
|
208
|
+
`,jn=r.div`
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
gap: ${a.sp1};
|
|
212
|
+
`,Ln=r.div`
|
|
213
|
+
border-radius: 50%;
|
|
214
|
+
display: flex;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
align-items: center;
|
|
217
|
+
`,Ha=r.div`
|
|
218
|
+
// These are weird number because final requirement is 9 and 12px circle.
|
|
219
|
+
width: ${e=>e.isShowingInDrawer?7:10}px;
|
|
220
|
+
height: ${e=>e.isShowingInDrawer?7:10}px;
|
|
221
|
+
border: 1px solid ${d.backgroundThemeLight};
|
|
222
|
+
border-radius: 50%;
|
|
223
|
+
`,In=r.div`
|
|
224
|
+
min-height: ${e=>`calc(${e.scaleFactor*xe.rightSectionHeight}px + ${a.sp2})`};
|
|
225
|
+
min-width: ${e=>`calc(${e.scaleFactor*xe.rightSectionWidth}px + ${a.sp2})`};
|
|
226
|
+
display: flex;
|
|
227
|
+
justify-content: center;
|
|
228
|
+
align-items: center;
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
gap: ${e=>xe.cardContainerContentGap.valuePx(e.windowSize)};
|
|
231
|
+
`,Gt=r(ge)`
|
|
232
|
+
color: ${e=>e.theme.colors.primary};
|
|
233
|
+
`,Dn=zr`
|
|
234
|
+
0% {
|
|
235
|
+
transform: translateX(-100%);
|
|
236
|
+
}
|
|
237
|
+
100% {
|
|
238
|
+
transform: translateX(180%);
|
|
239
|
+
}
|
|
240
|
+
`,An=r.div`
|
|
241
|
+
position: relative;
|
|
242
|
+
overflow: hidden;
|
|
243
|
+
border-radius: ${a.sp2};
|
|
244
|
+
cursor: ${e=>e.isCardLocked&&e.unlockFetchState!=="In-Progress"&&(e.isChargeCardAdmin||!e.isLockedByAdmin)?"pointer":"default"};
|
|
245
|
+
`,Tn=r.div`
|
|
246
|
+
position: absolute;
|
|
247
|
+
top: 50%;
|
|
248
|
+
left: 50%;
|
|
249
|
+
width: ${e=>e.play?"544px":"0"};
|
|
250
|
+
height: ${e=>e.play?"544px":"0"};
|
|
251
|
+
background: ${e=>e.unlockInProgress||e.fadeOut?"transparent":d.overlayDark};
|
|
252
|
+
border-radius: 328px;
|
|
253
|
+
pointer-events: none;
|
|
254
|
+
z-index: 1;
|
|
255
|
+
transform: translate(-50%, -50%);
|
|
256
|
+
opacity: ${e=>e.fadeOut?0:e.play?1:0};
|
|
257
|
+
transition:
|
|
258
|
+
width 300ms ease-out,
|
|
259
|
+
height 300ms ease-out,
|
|
260
|
+
opacity 300ms ease-out,
|
|
261
|
+
background 300ms ease-out;
|
|
262
|
+
`,Na=r.div`
|
|
263
|
+
z-index: 1;
|
|
264
|
+
display: ${e=>e.shouldAppear?"block":"none"};
|
|
265
|
+
content: "";
|
|
266
|
+
width: ${e=>e.scaleFactor*xe.cardLoadingShineWidth}px;
|
|
267
|
+
height: ${e=>e.scaleFactor*xe.cardLoadingShineHeight}px;
|
|
268
|
+
position: absolute;
|
|
269
|
+
transform: translateX(-180%);
|
|
270
|
+
animation: ${Dn} 1.5s infinite;
|
|
271
|
+
background: ${we`linear-gradient(to right, transparent 0%, ${d.backgroundThemeLight} 50%, transparent 100%)`};
|
|
272
|
+
`,Ba=r.div`
|
|
273
|
+
display: flex;
|
|
274
|
+
flex-direction: column;
|
|
275
|
+
justify-content: space-between;
|
|
276
|
+
align-items: center;
|
|
277
|
+
width: 25%;
|
|
278
|
+
padding: ${a.sp4} ${a.sp0};
|
|
279
|
+
`,Rn=r.div`
|
|
280
|
+
background: ${e=>e.cardDetailsFetchState?d.chargeCardFaded:e.bgColor??(e.isDebitCard?e.theme.colors.graphColor15:e.theme.colors.brandColorJade)};
|
|
281
|
+
border-radius: ${a.sp2};
|
|
282
|
+
width: ${e=>e.scaleFactor*xe.chargeCardWidth}px;
|
|
283
|
+
height: ${e=>e.scaleFactor*xe.chargeCardHeight}px;
|
|
284
|
+
background-image: url(https://storage.googleapis.com/zeni-apis.appspot.com/images/PlasticCardPatternSmall.svg);
|
|
285
|
+
background-repeat: no-repeat;
|
|
286
|
+
background-position-y: bottom;
|
|
287
|
+
cursor: ${e=>e.enableClick?"pointer":"not-allowed"};
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-direction: row;
|
|
290
|
+
position: relative;
|
|
291
|
+
overflow: hidden;
|
|
292
|
+
justify-content: space-between;
|
|
293
|
+
|
|
294
|
+
${e=>e.showColorPalette&&`box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1} ${e.theme.colors.dropShadowNormal};
|
|
295
|
+
`}
|
|
296
|
+
|
|
297
|
+
&:hover {
|
|
298
|
+
${e=>e.isOwnCard&&!e.isShowingInDrawer?we`
|
|
299
|
+
box-shadow: 1px 3px ${a.sp4} 2px
|
|
300
|
+
${e.theme.colors.chargeCardBackgroundShadow};
|
|
301
|
+
transform: scale(1.003);
|
|
302
|
+
outline: ${a.sp1} solid ${d.neutralGrey5Light};
|
|
303
|
+
`:null};
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&:hover:before {
|
|
307
|
+
${e=>e.isOwnCard&&!e.isShowingInDrawer?we`
|
|
308
|
+
box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1}
|
|
309
|
+
${e.theme.colors.dropShadowNormal};
|
|
310
|
+
content: "";
|
|
311
|
+
position: absolute;
|
|
312
|
+
inset: 0;
|
|
313
|
+
border-radius: 7px;
|
|
314
|
+
padding: ${a.sp1};
|
|
315
|
+
-webkit-mask-composite: xor;
|
|
316
|
+
mask-composite: exclude;
|
|
317
|
+
pointer-events: none;
|
|
318
|
+
`:null};
|
|
319
|
+
}
|
|
320
|
+
`,En=r(ge)`
|
|
321
|
+
color: ${e=>e.theme.colors.primary};
|
|
322
|
+
text-transform: capitalize;
|
|
323
|
+
`,Wa=r(eo)`
|
|
324
|
+
height: ${e=>e.scaleFactor*xe.zeniLogoHeight}px;
|
|
325
|
+
width: ${e=>e.scaleFactor*xe.zeniLogoWidth}px;
|
|
326
|
+
color: ${d.neutralGrey5Light};
|
|
327
|
+
`,Nr=r(Ki)`
|
|
328
|
+
width: ${a.sp5};
|
|
329
|
+
height: ${a.sp5};
|
|
330
|
+
min-width: ${a.sp5};
|
|
331
|
+
min-height: ${a.sp5};
|
|
332
|
+
box-sizing: content-box;
|
|
333
|
+
color: ${d.neutralGrey5Light};
|
|
334
|
+
`,Fn=r(Nr)`
|
|
335
|
+
position: absolute;
|
|
336
|
+
top: 50%;
|
|
337
|
+
left: 50%;
|
|
338
|
+
transform: translate(-50%, -50%);
|
|
339
|
+
z-index: 2;
|
|
340
|
+
padding: ${a.sp3};
|
|
341
|
+
border-radius: ${a.sp11};
|
|
342
|
+
background: ${d.lockCardOverlayBackground};
|
|
343
|
+
`,Pn=r(Ar)`
|
|
344
|
+
color: ${d.neutralGrey5Light};
|
|
345
|
+
white-space: nowrap;
|
|
346
|
+
opacity: ${e=>e.isVisible?1:0};
|
|
347
|
+
transform: ${e=>e.isVisible?"scaleX(1)":"scaleX(0)"};
|
|
348
|
+
transform-origin: left;
|
|
349
|
+
position: static;
|
|
350
|
+
flex: ${e=>e.shouldEnterLayout?"0 0 auto":"0 0 0"};
|
|
351
|
+
min-width: 0;
|
|
352
|
+
max-width: ${e=>e.shouldEnterLayout?a.sp12:a.sp0};
|
|
353
|
+
width: ${e=>e.shouldEnterLayout?"auto":a.sp0};
|
|
354
|
+
margin: 0;
|
|
355
|
+
margin-left: ${e=>e.shouldEnterLayout?a.sp1:a.sp0};
|
|
356
|
+
padding: 0;
|
|
357
|
+
overflow: hidden;
|
|
358
|
+
transition:
|
|
359
|
+
opacity 400ms cubic-bezier(0.4, 0, 0.2, 1) 400ms,
|
|
360
|
+
transform 400ms cubic-bezier(0.4, 0, 0.2, 1) 400ms,
|
|
361
|
+
flex 400ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
362
|
+
max-width 400ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
363
|
+
margin-left 400ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
364
|
+
`,zn=r.div`
|
|
365
|
+
display: flex;
|
|
366
|
+
align-items: center;
|
|
367
|
+
gap: 0;
|
|
368
|
+
position: relative;
|
|
369
|
+
`,Mn=r.div`
|
|
370
|
+
display: flex;
|
|
371
|
+
align-items: center;
|
|
372
|
+
justify-content: center;
|
|
373
|
+
padding: ${a.sp3};
|
|
374
|
+
padding-right: 20px;
|
|
375
|
+
border-radius: ${a.sp11};
|
|
376
|
+
background: ${e=>e.isHovered?d.lockCardOverlayBackground:"transparent"};
|
|
377
|
+
position: absolute;
|
|
378
|
+
top: 50%;
|
|
379
|
+
left: 50%;
|
|
380
|
+
transform: translate(-50%, -50%);
|
|
381
|
+
z-index: 2;
|
|
382
|
+
transition: background 400ms ease-in-out;
|
|
383
|
+
pointer-events: none;
|
|
384
|
+
`,Vn=r(Ji)`
|
|
385
|
+
position: absolute;
|
|
386
|
+
top: 50%;
|
|
387
|
+
left: 50%;
|
|
388
|
+
transform: translate(-50%, -50%);
|
|
389
|
+
z-index: 2;
|
|
390
|
+
width: ${a.sp5};
|
|
391
|
+
height: ${a.sp5};
|
|
392
|
+
color: ${d.important};
|
|
393
|
+
background: ${d.importantLight};
|
|
394
|
+
padding: 12px;
|
|
395
|
+
border-radius: 50%;
|
|
396
|
+
`,On=r.div`
|
|
397
|
+
display: flex;
|
|
398
|
+
flex-direction: column;
|
|
399
|
+
gap: 35px;
|
|
400
|
+
`,Hn=r.div`
|
|
401
|
+
display: flex;
|
|
402
|
+
flex-direction: column;
|
|
403
|
+
gap: ${a.sp4};
|
|
404
|
+
`,Nn=r(Qi)`
|
|
405
|
+
position: absolute;
|
|
406
|
+
width: ${e=>e.scaleFactor*xe.cardTintIconWidth}px;
|
|
407
|
+
height: ${e=>e.scaleFactor*xe.cardTintIconHeight}px;
|
|
408
|
+
top: -1px;
|
|
409
|
+
`,Bn=r(ko)`
|
|
410
|
+
height: 36px;
|
|
411
|
+
width: 36px;
|
|
412
|
+
position: absolute;
|
|
413
|
+
right: -${a.sp3};
|
|
414
|
+
top: -${a.sp3};
|
|
415
|
+
`,Wn=r(jo)`
|
|
416
|
+
height: 36px;
|
|
417
|
+
width: 36px;
|
|
418
|
+
position: absolute;
|
|
419
|
+
left: -${a.sp3};
|
|
420
|
+
top: -${a.sp3};
|
|
421
|
+
`,Un=r(Lo)`
|
|
422
|
+
height: 36px;
|
|
423
|
+
width: 36px;
|
|
424
|
+
position: absolute;
|
|
425
|
+
right: -${a.sp3};
|
|
426
|
+
bottom: -${a.sp3};
|
|
427
|
+
`,_n=r(Io)`
|
|
428
|
+
height: 36px;
|
|
429
|
+
width: 36px;
|
|
430
|
+
position: absolute;
|
|
431
|
+
left: -${a.sp3};
|
|
432
|
+
bottom: -${a.sp3};
|
|
433
|
+
`,Zn=r(Dr)`
|
|
434
|
+
color: ${e=>e.theme.colors.hero};
|
|
435
|
+
width: ${a.sp3};
|
|
436
|
+
height: ${a.sp3};
|
|
437
|
+
`,Gn=r.div`
|
|
438
|
+
cursor: ${e=>e.enableClick?"pointer":"not-allowed"};
|
|
439
|
+
width: ${e=>e.scaleFactor*xe.chargeCardWidth}px;
|
|
440
|
+
height: ${e=>e.scaleFactor*xe.chargeCardHeight}px;
|
|
441
|
+
overflow: hidden;
|
|
442
|
+
position: relative;
|
|
443
|
+
border-radius: ${a.sp2};
|
|
444
|
+
|
|
445
|
+
&:hover {
|
|
446
|
+
${e=>e.isOwnCard&&!e.isShowingInDrawer&&e.enableClick?we`
|
|
447
|
+
box-shadow: 1px 3px ${a.sp4} 2px
|
|
448
|
+
${e.theme.colors.chargeCardBackgroundShadow};
|
|
449
|
+
transform: scale(1.003);
|
|
450
|
+
outline: ${a.sp1} solid ${d.neutralGrey5Light};
|
|
451
|
+
`:null};
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
&:hover:before {
|
|
455
|
+
${e=>e.isOwnCard&&!e.isShowingInDrawer&&e.enableClick?we`
|
|
456
|
+
box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1}
|
|
457
|
+
${e.theme.colors.dropShadowNormal};
|
|
458
|
+
content: "";
|
|
459
|
+
position: absolute;
|
|
460
|
+
inset: 0;
|
|
461
|
+
border-radius: 7px;
|
|
462
|
+
padding: ${a.sp1};
|
|
463
|
+
-webkit-mask-composite: xor;
|
|
464
|
+
mask-composite: exclude;
|
|
465
|
+
pointer-events: none;
|
|
466
|
+
`:null};
|
|
467
|
+
}
|
|
468
|
+
`,Yn=r.div`
|
|
469
|
+
position: relative;
|
|
470
|
+
width: 100%;
|
|
471
|
+
height: 100%;
|
|
472
|
+
transition: transform 0.8s;
|
|
473
|
+
transform-style: preserve-3d;
|
|
474
|
+
transform: ${e=>e.flipCard?"rotateY(180deg)":"rotateY(0deg)"};
|
|
475
|
+
`,qn=r.div`
|
|
476
|
+
position: absolute;
|
|
477
|
+
width: 100%;
|
|
478
|
+
height: 100%;
|
|
479
|
+
-webkit-backface-visibility: hidden; /* Safari */
|
|
480
|
+
backface-visibility: hidden;
|
|
481
|
+
`,Xn=r.div`
|
|
482
|
+
position: absolute;
|
|
483
|
+
background: ${e=>e.isDebitCard?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJade};
|
|
484
|
+
width: inherit;
|
|
485
|
+
height: inherit;
|
|
486
|
+
border-radius: 6px;
|
|
487
|
+
display: flex;
|
|
488
|
+
transition-timing-function: ease-in-out;
|
|
489
|
+
-webkit-backface-visibility: hidden;
|
|
490
|
+
backface-visibility: hidden;
|
|
491
|
+
background-image: url("https://storage.googleapis.com/zeni-apis.appspot.com/images/plastic-card-pattern-right-small.svg");
|
|
492
|
+
border-radius: ${a.sp2};
|
|
493
|
+
display: flex;
|
|
494
|
+
justify-content: center;
|
|
495
|
+
align-items: flex-start;
|
|
496
|
+
background-repeat: no-repeat;
|
|
497
|
+
background-position-x: right;
|
|
498
|
+
background-position-y: bottom;
|
|
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 Fa("largeRegular","largeMedium"),spentAmount:new Fa("h5Regular","h5Regular")},{common:_e,dateFormat:mt,spendManagement:Jn}=ke.getLocalizedStrings(),Ze=Jn.chargeCard,Kn=({chargeCardDetailView:e,spent:i,controllerEmails:s,chargeCardCashbackDetailState:u,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,creditAccount:m,creditAccountRepayment:x,productInformation:S,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:b,cardHolderRoles:k,cardHolderDepartmentName:I,classListFetchState:p,cardOwnerName:E,secretRevealed:y,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:ie,cardDetailsFetchState:se,setCardDetailsFetchState:P,setIsCardDetailErrored:de,setShowSecretInfo:G,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:B,onFireOnClickAnalytics:le,onOwnerNameCopyClick:A,onAddressCopyClick:z,onUnlockChargeCard:ce,isDebitCard:re})=>{const L=Le(),je=Dt().analytics,Ce=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate!=null?e.chargeCardConfig.rePaymentInfo.cardLimitResetDate.format(mt.visual.MMMDFormat):nt.dateNow().startOf("month").add(1,"month").format(mt.visual.MMMDFormat),Fe=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:X}=Ei(),te=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),M=It(),Se=nt.hasChargeCardAdminLevelAccess(M?.loggedInUserRoleMap);return t.jsxs(ms,{windowSize:L,children:[t.jsxs(us,{windowSize:L,children:[t.jsxs(gs,{windowSize:L,children:[t.jsx(rs,{children:_e.texts.spent}),t.jsx(Ga,{children:t.jsx(Cs,{windowSize:L,children:Ge("0,0.[00]",i)})}),t.jsx(vs,{windowSize:L,children:t.jsx(js,{style:{width:`${Fe}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(Ga,{children:[t.jsxs(ks,{children:[t.jsxs(ts,{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(ws,{windowSize:L,children:[t.jsx(xs,{children:Ze.updateSpendLimitPopup.unlockSpending}),t.jsx(Ss,{onClick:()=>{es({chargeCardDetailView:e,classListFetchState:p,isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x,isDebitCard:re,productInformation:S,creditAccountInformation:C,debitAccountInformation:w,controllerEmails:s,cardIssuedByRoles:j,cardIssuedByDepartmentName:b,cardHolderRoles:k,cardHolderDepartmentName:I,analytics:je}),ie(!0)},"data-testid":J("update-spend-limit-button"),children:Ze.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(fs,{windowSize:L,children:[t.jsxs(is,{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(ys,{children:[t.jsx(bs,{children:_e.texts.limitReset}),t.jsx($s,{children:Ce})]}):null]})]}):null]}),t.jsx(Qn,{chargeCardDetailView:e,classListFetchState:p,cardOwnerName:E,addressToShow:_,isAddressCopied:K,isOwnerNameCopied:Y,onOwnerNameCopyClick:A,onAddressCopyClick:z})]}),t.jsx(hs,{windowSize:L,isOwnCard:D,children:L==="small"&&!D?null:t.jsxs(t.Fragment,{children:[t.jsx(ps,{windowSize:L,children:te?t.jsx($r,{}):t.jsx(Hr,{isChargeCardAdmin:Se,chargeCardDetailView:e,productInformation:S,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,creditAccount:e.creditAccount,setShowSecretInfo:G,secretRevealed:y,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(as,{children:Ze.cardDetails.adminsCannotAccess}):null,L==="small"&&D&&v&&re===!1?X?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:re,isChargeCardAdmin:Se,productInformation:S,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:b,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:re,isChargeCardAdmin:Se,productInformation:S,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:b,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]})})]})},Qn=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:s,addressToShow:u,isOwnerNameCopied:h,isAddressCopied:f,onOwnerNameCopyClick:c,onAddressCopyClick:g})=>{const m=Le(),x=tt(),[S,n]=o.useState(0),[C,w]=o.useState(!0),[j,b]=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 y=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(os,{children:[t.jsxs(ns,{windowSize:m,children:[t.jsxs(ss,{shouldBounce:p,isActive:S==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:()=>b(!0),onMouseLeave:()=>b(!1),children:[t.jsxs(jt,{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(jt,{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(ls,{windowSize:m,children:t.jsx(Xi,{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(ds,{isActive:S==1,isAutoSlide:C,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(Ua,{windowSize:m,children:[t.jsx(jt,{children:Ze.connectedAccount}),t.jsxs(cs,{children:[t.jsx(Ls,{children:t.jsx(Is,{})}),t.jsx(Yt,{children:y})]})]}):null,t.jsxs(Za,{windowSize:m,children:[t.jsx(jt,{children:Ze.department}),t.jsx(_a,{children:t.jsx(Yt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(gt,{size:"Small",start:!0}):e.chargeCard?.department?.className??_e.strings.hyphen})})]})]})]}),t.jsx(xo,{numberOfDots:2,activeIndex:S,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})]})},es=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:s,creditAccount:u,creditAccountRepayment:h,isDebitCard:f,controllerEmails:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,cardIssuedByRoles:S,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 b=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:bo(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:ut(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(mt.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(mt.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:b?.format(mt.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name,cardSpentAmount:ut(e.chargeCard.balance.amount),cardAvailableLimit:ut(e.chargeCard.available.amount),cardUtilizationPercent:yo(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:ut($o(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:S,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=>ut(k.creditLimit.amount)),m,x)}},ts=r.div`
|
|
501
|
+
display: flex;
|
|
502
|
+
align-items: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"flex-start":"center"};
|
|
503
|
+
gap: ${e=>$e.remainingAmountContainerGap.valuePx(e.windowSize)};
|
|
504
|
+
flex-direction: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"column":"row"};
|
|
505
|
+
`,as=r(ge)`
|
|
506
|
+
color: ${e=>e.theme.colors.primary};
|
|
507
|
+
`,rs=r(ge)`
|
|
508
|
+
color: ${e=>e.theme.colors.hero};
|
|
509
|
+
`,is=r.div`
|
|
510
|
+
display: flex;
|
|
511
|
+
align-items: end;
|
|
512
|
+
`,os=r.div`
|
|
513
|
+
width: 100%;
|
|
514
|
+
overflow: hidden;
|
|
515
|
+
`,ns=r.div`
|
|
516
|
+
width: 100%;
|
|
517
|
+
gap: ${a.sp3};
|
|
518
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
519
|
+
border: 1px solid ${e=>e.theme.colors.background};
|
|
520
|
+
border-radius: ${a.sp2};
|
|
521
|
+
padding: ${a.sp3};
|
|
522
|
+
box-sizing: border-box;
|
|
523
|
+
position: relative;
|
|
524
|
+
height: ${e=>$e.addressSectionHeight.valuePx(e.windowSize)};
|
|
525
|
+
`,ss=r.div`
|
|
526
|
+
display: flex;
|
|
527
|
+
justify-content: unset;
|
|
528
|
+
gap: ${e=>$e.addressSectionGap.valuePx(e.windowSize)};
|
|
529
|
+
position: absolute;
|
|
530
|
+
width: 100%;
|
|
531
|
+
${({isActive:e,isAutoSlide:i})=>we`
|
|
532
|
+
transform: translateX(${e?"0%":i?"-10%":"-105%"});
|
|
533
|
+
`};
|
|
534
|
+
transition: transform
|
|
535
|
+
${({isAutoSlide:e,shouldBounce:i})=>`${e?"0.5s":"0.3s"} ${i?"cubic-bezier(0.175, 0.885, 0.32, 1.125)":"ease-out"}`};
|
|
536
|
+
`,ds=r.div`
|
|
537
|
+
display: flex;
|
|
538
|
+
justify-content: unset;
|
|
539
|
+
${({isActive:e,isAutoSlide:i})=>we`
|
|
540
|
+
transform: translateX(${e?i?"95%":"0%":"105%"});
|
|
541
|
+
`};
|
|
542
|
+
transition: transform
|
|
543
|
+
${({isAutoSlide:e,isActive:i})=>e&&i?"0.5s":"0.3s"}
|
|
544
|
+
ease-out;
|
|
545
|
+
gap: ${a.sp8};
|
|
546
|
+
`,Ua=r.div`
|
|
547
|
+
min-width: ${e=>$e.ownerWebMinWidth.valuePx(e.windowSize)};
|
|
548
|
+
cursor: pointer;
|
|
549
|
+
`,jt=r(ge)`
|
|
550
|
+
color: ${e=>e.theme.colors.hero};
|
|
551
|
+
display: flex;
|
|
552
|
+
align-items: center;
|
|
553
|
+
`,_a=r.div``,cs=r.div`
|
|
554
|
+
display: flex;
|
|
555
|
+
align-items: flex-start;
|
|
556
|
+
gap: ${a.sp1};
|
|
557
|
+
`,ls=r.div`
|
|
558
|
+
${({windowSize:e})=>e==="small"?we`
|
|
559
|
+
max-width: 220px;
|
|
560
|
+
`:null};
|
|
561
|
+
`,Yt=r(ge)`
|
|
562
|
+
color: ${e=>e.theme.colors.primary};
|
|
563
|
+
text-transform: capitalize;
|
|
564
|
+
`,Za=r.div`
|
|
565
|
+
display: flex;
|
|
566
|
+
flex-direction: column;
|
|
567
|
+
align-items: "baseline";
|
|
568
|
+
justify-content: center;
|
|
569
|
+
cursor: pointer;
|
|
570
|
+
`,hs=r.div`
|
|
571
|
+
display: flex;
|
|
572
|
+
flex-direction: ${e=>e.windowSize==="small"||!e.isOwnCard?"column":"row"};
|
|
573
|
+
justify-content: center;
|
|
574
|
+
align-items: center;
|
|
575
|
+
gap: ${e=>$e.rightSectionGap.valuePx(e.windowSize)};
|
|
576
|
+
width: ${e=>e.windowSize==="small"?"100%":"max-content"};
|
|
577
|
+
`,ps=r.div`
|
|
578
|
+
min-height: ${e=>`calc(${$e.rightSectionHeight.valuePx(e.windowSize)} + ${a.sp2})`};
|
|
579
|
+
min-width: ${e=>`calc(${$e.rightSectionWidth.valuePx(e.windowSize)} + ${a.sp2})`};
|
|
580
|
+
display: flex;
|
|
581
|
+
justify-content: center;
|
|
582
|
+
align-items: center;
|
|
583
|
+
flex-direction: column;
|
|
584
|
+
gap: ${e=>$e.cardContainerContentGap.valuePx(e.windowSize)};
|
|
585
|
+
`,us=r.div`
|
|
586
|
+
width: 100%;
|
|
587
|
+
display: flex;
|
|
588
|
+
align-items: flex-start;
|
|
589
|
+
flex-direction: column;
|
|
590
|
+
justify-content: space-between;
|
|
591
|
+
`,ms=r.div`
|
|
592
|
+
display: flex;
|
|
593
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
594
|
+
align-items: center;
|
|
595
|
+
|
|
596
|
+
justify-content: space-between;
|
|
597
|
+
padding-top: ${a.sp3};
|
|
598
|
+
padding-right: ${e=>$e.contentContainerPadding.valuePx(e.windowSize)};
|
|
599
|
+
padding-bottom: ${e=>$e.topSectionPaddingBottom.valuePx(e.windowSize)};
|
|
600
|
+
padding-left: ${e=>$e.contentContainerPadding.valuePx(e.windowSize)};
|
|
601
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
602
|
+
background: ${e=>e.theme.colors.grey5};
|
|
603
|
+
gap: ${e=>$e.leftRightSectionGap.valuePx(e.windowSize)};
|
|
604
|
+
`,gs=r.div`
|
|
605
|
+
display: flex;
|
|
606
|
+
flex-direction: column;
|
|
607
|
+
width: 100%;
|
|
608
|
+
margin-bottom: ${({windowSize:e})=>$e.cardBalanceSectionMarginBottom.valuePx(e)};
|
|
609
|
+
`,Ga=r.div`
|
|
610
|
+
display: flex;
|
|
611
|
+
flex-direction: row;
|
|
612
|
+
justify-content: space-between;
|
|
613
|
+
align-items: flex-start;
|
|
614
|
+
`,Cs=r(Lr)`
|
|
615
|
+
color: ${e=>e.theme.colors.primary};
|
|
616
|
+
${e=>`${ra.spentAmount.style(e.windowSize)}`};
|
|
617
|
+
`,fs=r.div`
|
|
618
|
+
display: flex;
|
|
619
|
+
align-items: flex-end;
|
|
620
|
+
flex-direction: column;
|
|
621
|
+
${({windowSize:e})=>e==="small"?we`
|
|
622
|
+
margin-bottom: ${a.sp4};
|
|
623
|
+
`:null};
|
|
624
|
+
`,ws=r.div`
|
|
625
|
+
display: flex;
|
|
626
|
+
flex-direction: ${({windowSize:e})=>e==="small"?"column":"row"};
|
|
627
|
+
align-items: ${({windowSize:e})=>e==="small"?"flex-start":"flex-end"};
|
|
628
|
+
`,xs=r(ea)`
|
|
629
|
+
color: ${e=>e.theme.colors.hero};
|
|
630
|
+
margin-right: ${a.sp1};
|
|
631
|
+
`,Ss=r(qi)`
|
|
632
|
+
background: none;
|
|
633
|
+
border: none;
|
|
634
|
+
cursor: pointer;
|
|
635
|
+
padding: ${a.sp0};
|
|
636
|
+
color: ${d.link};
|
|
637
|
+
&:hover {
|
|
638
|
+
text-decoration: underline;
|
|
639
|
+
}
|
|
640
|
+
`,ys=r.div`
|
|
641
|
+
display: flex;
|
|
642
|
+
align-items: flex-end;
|
|
643
|
+
gap: ${a.sp1};
|
|
644
|
+
`,bs=r(ge)`
|
|
645
|
+
color: ${e=>e.theme.colors.hero};
|
|
646
|
+
`,$s=r(ge)`
|
|
647
|
+
color: ${e=>e.theme.colors.hero};
|
|
648
|
+
`,vs=r.div`
|
|
649
|
+
width: 100%;
|
|
650
|
+
height: ${a.sp1};
|
|
651
|
+
display: flex;
|
|
652
|
+
margin: ${a.sp2} ${a.sp0};
|
|
653
|
+
border-radius: ${({windowSize:e})=>$e.barRadius.valuePx(e)};
|
|
654
|
+
background: ${e=>e.theme.colors.grey2};
|
|
655
|
+
`,ks=r.div`
|
|
656
|
+
display: flex;
|
|
657
|
+
align-items: flex-start;
|
|
658
|
+
flex-direction: column;
|
|
659
|
+
color: ${e=>e.theme.colors.primary};
|
|
660
|
+
`,Ya=r(Lr)`
|
|
661
|
+
color: ${e=>e.theme.colors.primary};
|
|
662
|
+
${e=>`${ra.remainingAmount.style(e.windowSize)}`};
|
|
663
|
+
`,qa=r(Yi)`
|
|
664
|
+
${e=>`${ra.remainingAmount.style(e.windowSize)}`};
|
|
665
|
+
color: ${e=>e.theme.colors.primary};
|
|
666
|
+
`,js=r.div`
|
|
667
|
+
background: ${d.success};
|
|
668
|
+
width: 0%;
|
|
669
|
+
height: ${a.sp1};
|
|
670
|
+
transition: width 4s ease;
|
|
671
|
+
`,Xa=r.span`
|
|
672
|
+
display: flex;
|
|
673
|
+
color: ${e=>e.theme.colors.grey1};
|
|
674
|
+
&:hover {
|
|
675
|
+
color: ${e=>e.theme.colors.primary};
|
|
676
|
+
}
|
|
677
|
+
`,Ja=r(dt)`
|
|
678
|
+
padding: ${a.sp0} 2px;
|
|
679
|
+
color: ${d.heroDark};
|
|
680
|
+
background: ${d.blackColor};
|
|
681
|
+
border-radius: ${a.sp1};
|
|
682
|
+
position: absolute;
|
|
683
|
+
left: 20px;
|
|
684
|
+
`,Ka=r(jr)`
|
|
685
|
+
height: 12px;
|
|
686
|
+
width: 12px;
|
|
687
|
+
margin-left: ${a.sp1};
|
|
688
|
+
color: ${e=>e.isHover?e.theme.colors.primary:e.theme.colors.grey2};
|
|
689
|
+
cursor: pointer;
|
|
690
|
+
`,Qa=r(Ct)`
|
|
691
|
+
height: 12px;
|
|
692
|
+
width: 12px;
|
|
693
|
+
margin-left: ${a.sp1};
|
|
694
|
+
color: ${d.success};
|
|
695
|
+
`,Ls=r.div`
|
|
696
|
+
width: 21px;
|
|
697
|
+
height: 21px;
|
|
698
|
+
`,Is=r(ao)`
|
|
699
|
+
color: ${d.brandColorOpal};
|
|
700
|
+
width: 100%;
|
|
701
|
+
height: 100%;
|
|
702
|
+
`,er=r.div`
|
|
703
|
+
display: flex;
|
|
704
|
+
align-items: center;
|
|
705
|
+
justify-content: center;
|
|
706
|
+
position: relative;
|
|
707
|
+
`,ft=ke.getLocalizedStrings().spendManagement.chargeCard.cardDetails.header,Ds={key:"merchant",value:ft.merchant,sortOrder:"ascending",width:new T(38,38)},As={key:"paymentDate",value:ft.paymentDate,sortOrder:"ascending",width:new T(21,21)},Ts={key:"receipts",value:ft.receipts,sortOrder:"ascending",width:new T(16,16)},Rs={key:"type",value:ft.type,sortOrder:"ascending",width:new T(14,14)},Es={key:"amount",value:ft.amount,sortOrder:"ascending",width:new T(11,11)},Br=()=>[Ds,As,Ts,Rs,Es],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(ho,po)};function Fs({hideSorting:e,sortConfig:i,onColumnSortConfigChanged:s}){const u=tt(),h=Le(),f=Br(),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),S=ke.getLocalizedStrings().spendManagement.chargeCard.cardList;return h==="small"?t.jsxs(tr,{windowSize:h,children:[t.jsxs(Vs,{children:[t.jsx(Hs,{children:t.jsx(Os,{})}),t.jsx(so,{title:S.sortBy,placeholder:S.sortBy,pickerValues:x,valueToLabel:m,selectedValue:i.sortKey,onPickerSelectionChanged:n=>{c(n,"ascending")},optionTextStyle:U.smallRegular,titleTextStyle:U.smallRegular,titleColor:u.colors.primary,selectedOptionColor:u.colors.hero,optionBackgroundColor:u.colors.grey5,downChevronVisible:!1,backgroundColor:u.colors.grey4,isDisabled:e})]}),t.jsxs(Ws,{hideSorting:e,onClick:()=>{e||c(g.key,g.sortOrder)},"data-testid":J("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(zs,{hideSorting:e,sortDataValue:i.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:h,children:[t.jsxs(Bs,{hideSorting:e,onClick:()=>{e||c(n.key,n.sortOrder)},"data-testid":J("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(Ns,{sortDataValue:i.sortKey,windowSize:h,isVisible:e?!1:i.sortKey===n.key&&n.key!=="paymentDate",children:e?null:t.jsx(Ms,{onClick:()=>{e||c("paymentDate","ascending")},"data-testid":J("charge-card-trxn-close-sort",i.sortKey)})})]},n.key))})}const Ps=wo.memo(Fs),tr=r(ge)`
|
|
708
|
+
top: ${a.sp0};
|
|
709
|
+
left: ${a.sp0};
|
|
710
|
+
min-height: ${e=>it.headerHeight.valuePx(e.windowSize)};
|
|
711
|
+
max-height: ${e=>it.headerHeight.valuePx(e.windowSize)};
|
|
712
|
+
width: auto;
|
|
713
|
+
z-index: 2;
|
|
714
|
+
display: flex;
|
|
715
|
+
align-items: center;
|
|
716
|
+
box-sizing: border-box;
|
|
717
|
+
padding: ${e=>`${it.headerLastColumnTopPadding.valuePx(e.windowSize)} ${it.headerLastColumnRightPadding.valuePx(e.windowSize)} ${it.headerLastColumnBottomPadding.valuePx(e.windowSize)} ${it.headerLastColumnLeftPadding.valuePx(e.windowSize)}`};
|
|
718
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
719
|
+
justify-content: space-between;
|
|
720
|
+
position: sticky;
|
|
721
|
+
`,zs=r.div`
|
|
722
|
+
color: ${e=>e.sortDataValue===e.actualDataValue&&e.hideSorting===!1?e.theme.colors.primary:e.theme.colors.grey1};
|
|
723
|
+
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
724
|
+
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
725
|
+
padding-left: ${a.sp0};
|
|
726
|
+
display: flex;
|
|
727
|
+
align-items: center;
|
|
728
|
+
gap: 5px;
|
|
729
|
+
left: ${a.sp0};
|
|
730
|
+
justify-content: ${e=>e.actualDataValue==="amount"?"flex-end":"flex-start"};
|
|
731
|
+
${e=>e.actualDataValue==="paymentDate"?we`
|
|
732
|
+
flex: 1 1 auto;
|
|
733
|
+
`:we`
|
|
734
|
+
padding-left: ${a.sp0};
|
|
735
|
+
`};
|
|
736
|
+
box-sizing: border-box;
|
|
737
|
+
overflow: hidden;
|
|
738
|
+
`,Ms=r(lo)`
|
|
739
|
+
width: 12px;
|
|
740
|
+
height: 12px;
|
|
741
|
+
cursor: pointer;
|
|
742
|
+
color: ${e=>e.theme.colors.hero};
|
|
743
|
+
`,ar=r.div`
|
|
744
|
+
display: flex;
|
|
745
|
+
align-items: center;
|
|
746
|
+
transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
747
|
+
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"}
|
|
748
|
+
`,rr=r(Dr)`
|
|
749
|
+
width: 12px;
|
|
750
|
+
height: 12px;
|
|
751
|
+
cursor: pointer;
|
|
752
|
+
color: inherit;
|
|
753
|
+
`,Vs=r.div`
|
|
754
|
+
gap: ${a.sp1};
|
|
755
|
+
display: flex;
|
|
756
|
+
`,Os=r(co)`
|
|
757
|
+
width: 12px;
|
|
758
|
+
height: 12px;
|
|
759
|
+
color: ${e=>e.theme.colors.grey1};
|
|
760
|
+
`,Hs=r.div`
|
|
761
|
+
margin-right: ${a.sp1};
|
|
762
|
+
display: flex;
|
|
763
|
+
align-items: center;
|
|
764
|
+
`,Ns=r.div`
|
|
765
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
766
|
+
align-items: center;
|
|
767
|
+
padding-top: 2px;
|
|
768
|
+
`,Bs=r.div`
|
|
769
|
+
display: flex;
|
|
770
|
+
cursor: ${e=>e.hideSorting?"default":"pointer"};
|
|
771
|
+
gap: ${e=>e.hideSorting?a.sp0:"5px"};
|
|
772
|
+
&:hover {
|
|
773
|
+
color: ${e=>e.hideSorting?"inherit":e.theme.colors.primary};
|
|
774
|
+
}
|
|
775
|
+
`,Ws=r.div`
|
|
776
|
+
display: flex;
|
|
777
|
+
cursor: ${e=>e.hideSorting?"default":"pointer"};
|
|
778
|
+
gap: ${e=>e.hideSorting?a.sp0:"5px"};
|
|
779
|
+
color: ${e=>e.theme.colors.hero};
|
|
780
|
+
&:hover {
|
|
781
|
+
color: ${e=>e.hideSorting?e.theme.colors.hero:e.theme.colors.primary};
|
|
782
|
+
}
|
|
783
|
+
`;function Wr(e,i,s){return Us(e,i,s)}async function Us(e,i,s,u){const h=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,f=ke.getLocalizedStrings().downloadReport;try{const c=await go(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??Co(c.headers,"Charge Card Transaction Receipt.pdf"),m=await c.arrayBuffer();fo(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 _s=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:Zs,spendManagement:{chargeCard:{cardDetails:ir}},common:{strings:{hyphen:Gs},tooltips:{addMissingReceipt:Ys,addReceipt:qs,viewReceipt:Xs}}}=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)},Js=(e,i)=>e.attachments!=null&&e.attachments.length>0?Xs:e.amount.amount<=i.amount?qs:Ys,Gr=(e,i,s,u)=>e.attachments!=null&&e.attachments.length>0?t.jsx(wd,{onClick:h=>{h.stopPropagation(),u()},"data-testid":J("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx(yd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(Sd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-upload-receipt",e.id)}),Ks=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,uploadReceiptsFetchState:g,uploadReceiptsShowTick:m,isViewReceiptClickedImmediatelyAfterUpload:x,authParams:S,transaction:n,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:b,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:I,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const y=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,S,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,S,M)}te({card_id:c,transaction_id:n.id,attachment_ids:X}).then(M=>{Y(M),M.length>0&&_(M[0])})},{merchant:ie,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){b(n.id,c,"In-Progress"),await Vr(`${e}/1.0/cards/transactions/${n.id}/attachments`,S,X,te).then(M=>{M!=null&&w(n.id,M),b(n.id,c,"Completed"),k(n.id,c,!0),setTimeout(()=>{k(n.id,c,!1),j(!0)},2e3)}).catch(M=>{b(n.id,c,"Error"),j(!1,M)})}const B=()=>{$.current?.click()},le=X=>{if(X.target.files!=null){const te=X.target.files,M=[],Se=[];for(let Ae=0;Ae<te.length;Ae++)M.push(te[Ae].name),Se.push(te[Ae]);q?.(Se,M)}},A=Br(),z=Rr(n.transactionStatus),ce=u?ie.brandName??ie.name:ie.name,re=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(rd,{windowSize:y,isClickable:je,"data-testid":J("card-transaction-row",n.id),onClick:X=>{X.stopPropagation(),je&&E(P.code,de)},children:[t.jsx(id,{children:t.jsxs(od,{children:[t.jsxs(nd,{windowSize:y,responsiveWidth:A[0].width,children:[Ce?t.jsx(hd,{}):Fe?t.jsx(pd,{}):t.jsx(ud,{src:ie.logo?.url?.toString()}),t.jsx(sd,{windowSize:y,hasMarginRight:z.code==="paid",children:ce}),z.code!=="paid"?t.jsxs(ed,{children:[t.jsx(ad,{windowSize:y}),t.jsx(td,{color:z.color,windowSize:y,children:z.value})]}):null]}),t.jsx(ld,{windowSize:y,responsiveWidth:A[1].width,children:t.jsx(md,{children:se.format(Zs.visual.MMMDCommaYYYYformat)})}),t.jsx(Cd,{windowSize:y,responsiveWidth:A[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Gs:g?.fetchState==="In-Progress"?t.jsx(gt,{size:"Small",start:!0}):m?t.jsx(xd,{}):t.jsxs(Qt,{enterDelay:600,display:"flex",placement:"bottom",title:Js(n,C),children:[t.jsx(Qs,{"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__",Lt(i,0)):ir.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",Lt(i,0))})}})}),Gr(n,C,B,G)]})}),t.jsx(gd,{windowSize:y,responsiveWidth:A[3].width,children:t.jsx(fd,{title:P.name,children:P.name})}),t.jsx(dd,{windowSize:y,responsiveWidth:A[4].width,children:t.jsx(cd,{windowSize:y,title:Ge("0,0.[00]",n.amount),children:n.direction==="debit"?re:`-${re}`})})]})}),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]})},Qs=r.div``,ed=r.div`
|
|
784
|
+
display: flex;
|
|
785
|
+
flex-direction: row;
|
|
786
|
+
align-items: center;
|
|
787
|
+
gap: ${a.sp2};
|
|
788
|
+
margin-right: ${a.sp4};
|
|
789
|
+
`,td=r(dt)`
|
|
790
|
+
color: ${e=>e.color};
|
|
791
|
+
`,ad=r.div`
|
|
792
|
+
display: ${e=>e.windowSize==="small"?"none":"block"};
|
|
793
|
+
width: ${a.sp1};
|
|
794
|
+
height: ${a.sp1};
|
|
795
|
+
border-radius: 100%;
|
|
796
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
797
|
+
`,rd=r.div`
|
|
798
|
+
display: flex;
|
|
799
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
800
|
+
padding-left: ${e=>Ue.containerPaddingLeft.valuePx(e.windowSize)};
|
|
801
|
+
padding-right: ${e=>Ue.containerPaddingRight.valuePx(e.windowSize)};
|
|
802
|
+
padding-top: ${e=>Ue.containerPaddingTop.valuePx(e.windowSize)};
|
|
803
|
+
padding-bottom: ${e=>Ue.containerPaddingBottom.valuePx(e.windowSize)};
|
|
804
|
+
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
805
|
+
box-shadow: ${e=>e.theme.mode==="dark"?`${d.dropShadowNormalDark} ${a.sp0} 2px ${a.sp1}`:`${a.sp0} 2px ${a.sp1} ${d.dropShadowNormalLight}`};
|
|
806
|
+
border-radius: ${a.sp2};
|
|
807
|
+
color: ${e=>e.theme.colors.hero};
|
|
808
|
+
&:hover {
|
|
809
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
810
|
+
color: ${e=>e.theme.colors.primary};
|
|
811
|
+
}
|
|
812
|
+
margin-right: ${e=>Ue.containerMarginLeft.valuePx(e.windowSize)};
|
|
813
|
+
margin-left: ${e=>Ue.containerMarginLeft.valuePx(e.windowSize)};
|
|
814
|
+
box-sizing: border-box;
|
|
815
|
+
align-items: center;
|
|
816
|
+
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
817
|
+
`,id=r.div`
|
|
818
|
+
display: block;
|
|
819
|
+
width: 100%;
|
|
820
|
+
`,od=r.div`
|
|
821
|
+
display: flex;
|
|
822
|
+
width: 100%;
|
|
823
|
+
justify-content: space-between;
|
|
824
|
+
align-items: center;
|
|
825
|
+
`,nd=r.div`
|
|
826
|
+
display: flex;
|
|
827
|
+
flex-direction: row;
|
|
828
|
+
column-gap: ${a.sp2};
|
|
829
|
+
align-items: center;
|
|
830
|
+
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
831
|
+
`,sd=r(Oe)`
|
|
832
|
+
margin-right: ${e=>e.hasMarginRight?a.sp3:a.sp0};
|
|
833
|
+
color: inherit;
|
|
834
|
+
-webkit-line-clamp: ${e=>Ue.webkitLineClamp.value(e.windowSize)};
|
|
835
|
+
-webkit-box-orient: vertical;
|
|
836
|
+
overflow: hidden;
|
|
837
|
+
max-width: 100%;
|
|
838
|
+
overflow: hidden;
|
|
839
|
+
text-overflow: ellipsis;
|
|
840
|
+
white-space: nowrap;
|
|
841
|
+
text-transform: capitalize;
|
|
842
|
+
`,dd=r(Oe)`
|
|
843
|
+
display: flex;
|
|
844
|
+
flex-direction: column;
|
|
845
|
+
justify-content: flex-end;
|
|
846
|
+
align-items: flex-end;
|
|
847
|
+
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
848
|
+
`,cd=r(Oe)`
|
|
849
|
+
color: inherit;
|
|
850
|
+
flex-grow: 1;
|
|
851
|
+
-webkit-line-clamp: ${e=>Ue.webkitLineClamp.value(e.windowSize)};
|
|
852
|
+
-webkit-box-orient: vertical;
|
|
853
|
+
overflow: hidden;
|
|
854
|
+
text-overflow: ellipsis;
|
|
855
|
+
max-width: 100%;
|
|
856
|
+
overflow: hidden;
|
|
857
|
+
text-overflow: ellipsis;
|
|
858
|
+
white-space: nowrap;
|
|
859
|
+
`,ld=r.div`
|
|
860
|
+
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
861
|
+
box-sizing: border-box;
|
|
862
|
+
display: flex;
|
|
863
|
+
align-items: flex-start;
|
|
864
|
+
flex-direction: column;
|
|
865
|
+
justify-content: center;
|
|
866
|
+
`,Yr=e=>we`
|
|
867
|
+
width: ${a.sp4};
|
|
868
|
+
height: ${a.sp4};
|
|
869
|
+
color: ${e.colors.hero};
|
|
870
|
+
`,hd=r(Zr)`
|
|
871
|
+
${({theme:e})=>Yr(e)}
|
|
872
|
+
`,pd=r(_r)`
|
|
873
|
+
${({theme:e})=>Yr(e)}
|
|
874
|
+
`,ud=r.img`
|
|
875
|
+
display: flex;
|
|
876
|
+
width: ${a.sp4};
|
|
877
|
+
height: ${a.sp4};
|
|
878
|
+
`,md=r(Oe)`
|
|
879
|
+
color: inherit;
|
|
880
|
+
max-width: 100%;
|
|
881
|
+
overflow: hidden;
|
|
882
|
+
text-overflow: ellipsis;
|
|
883
|
+
white-space: nowrap;
|
|
884
|
+
`,gd=r(Oe)`
|
|
885
|
+
color: ${e=>e.theme.colors.hero};
|
|
886
|
+
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
887
|
+
box-sizing: border-box;
|
|
888
|
+
display: flex;
|
|
889
|
+
align-items: center;
|
|
890
|
+
`,Cd=r.div`
|
|
891
|
+
color: ${e=>e.theme.colors.hero};
|
|
892
|
+
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
893
|
+
box-sizing: border-box;
|
|
894
|
+
display: flex;
|
|
895
|
+
align-items: center;
|
|
896
|
+
`,fd=r(dt)`
|
|
897
|
+
color: ${e=>e.theme.colors.hero};
|
|
898
|
+
max-width: 100%;
|
|
899
|
+
overflow: hidden;
|
|
900
|
+
text-overflow: ellipsis;
|
|
901
|
+
white-space: nowrap;
|
|
902
|
+
padding: 1px 6px;
|
|
903
|
+
border-radius: ${a.sp1};
|
|
904
|
+
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
905
|
+
`,wd=r(uo)`
|
|
906
|
+
height: ${a.sp4};
|
|
907
|
+
width: ${a.sp4};
|
|
908
|
+
cursor: pointer;
|
|
909
|
+
color: ${e=>e.theme.colors.hero};
|
|
910
|
+
&:hover {
|
|
911
|
+
color: ${e=>e.theme.colors.primary};
|
|
912
|
+
}
|
|
913
|
+
`,xd=r(Ct)`
|
|
914
|
+
height: ${a.sp4};
|
|
915
|
+
width: ${a.sp4};
|
|
916
|
+
color: ${d.success};
|
|
917
|
+
`,Sd=r(mo)`
|
|
918
|
+
height: ${a.sp4};
|
|
919
|
+
width: ${a.sp4};
|
|
920
|
+
cursor: pointer;
|
|
921
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
922
|
+
&:hover {
|
|
923
|
+
color: ${e=>e.theme.colors.primary};
|
|
924
|
+
}
|
|
925
|
+
`,yd=r(_s)`
|
|
926
|
+
height: ${a.sp4};
|
|
927
|
+
width: ${a.sp4};
|
|
928
|
+
cursor: pointer;
|
|
929
|
+
color: ${e=>e.theme.colors.hero};
|
|
930
|
+
&:hover {
|
|
931
|
+
color: ${e=>e.theme.colors.primary};
|
|
932
|
+
}
|
|
933
|
+
`,{dateFormat:bd,spendManagement:{chargeCard:{cardDetails:qt}},common:{strings:{hyphen:$d}}}=ke.getLocalizedStrings(),vd={webkitLineClamp:new T(2,1,1,1,1)},kd=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,isViewReceiptClickedImmediatelyAfterUpload:g,uploadReceiptsShowTick:m,uploadReceiptsFetchState:x,authParams:S,transaction:n,receiptRequiredAboveAmount:C,onUploadReceiptComplete:w,updateChargeCardTransactionAttachments:j,updateChargeCardTransactionReceiptsShowTick:b,updateChargeCardTransactionIsViewReceiptClicked:k,updateChargeCardTransactionUploadReceiptsFetchStatus:I,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const y=Le(),[O,H]=o.useState(0),[v,Y]=o.useState(0),[K,_]=o.useState(0),D=R=>{_(R),W(!0),G(P[R]),se(ae[R])};function oe(R){H(R.targetTouches[0].clientX)}function Q(R){Y(R.targetTouches[0].clientX)}function ne(R){return R<0?P.length+R:R%P.length}function N(){O-v>50&&v!==0&&K<P.length-1?(D(ne(K+1)),H(0),Y(0)):O-v<-50&&v!==0&&K>0&&(D(ne(K-1)),H(0),Y(0))}const[Z,W]=o.useState(!1),[ae,ee]=o.useState([]),[ie,se]=o.useState(null);o.useEffect(()=>{!s&&g&&(G(P[0]),z())},[s,g]);const P=n.attachments?.filter(R=>R.contentType!=null&&Tr.includes(R.contentType))??[],[de,G]=o.useState(P[0]),[$,q]=o.useState([]),[B,le]=o.useState(void 0);o.useEffect(()=>{async function R(he){$.includes(he.attachment_id)?console.warn(`Attachment with ID ${he.attachment_id} is already getting downloaded`):(q([he.attachment_id,...$]),await Wr(f,S,he),q(Pr($,F=>F==he.attachment_id)))}B!=null&&(R({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),ee([]),P.length>0&&G(P[0])},z=()=>{W(!0);const R=P.map(F=>F.id);async function he(F){return await Ur(h,S,F)}he({card_id:c,transaction_id:n.id,attachment_ids:R}).then(F=>{ee(F),F.length>0&&se(F[0])})},{merchant:ce,createTime:re,transactionType:L,thirdPartyTransactionId:je}=n,Ce=()=>{s?(p(),k(n.id,c,!0)):(G(P[0]),z())},Fe=o.useRef(null);async function X(R,he){I(n.id,c,"In-Progress"),await Vr(`${e}/1.0/cards/transactions/${n.id}/attachments`,S,R,he).then(F=>{F!=null&&j(n.id,F),I(n.id,c,"Completed"),w(!0),b(n.id,c,!0),setTimeout(()=>b(n.id,c,!1),2e3)}).catch(F=>{I(n.id,c,"Error"),w(!1,F)})}const te=()=>{Fe.current?.click()},M=R=>{if(R.target.files!=null){const he=R.target.files,F=[],qe=[];for(let Pe=0;Pe<he.length;Pe++)F.push(he[Pe].name),qe.push(he[Pe]);X?.(qe,F)}},Se=Rr(n.transactionStatus),Ae=u?ce.brandName??ce.name:ce.name,me=Ge("0,0.00",n.amount),He=L.code==="transfer",Ye=je!=null&&u,at=He&&n.direction==="debit",pe=He&&n.direction==="credit";return t.jsxs(zd,{windowSize:y,"data-testid":J("card-transaction-row-small",n.id),onClick:R=>{R.stopPropagation(),Ye&&E(L.code,je)},children:[t.jsx(Md,{children:t.jsxs(Vd,{children:[t.jsxs(Nd,{children:[t.jsx(Ed,{children:at?t.jsx(jd,{}):pe?t.jsx(Ld,{}):t.jsx(Wd,{src:ce.logo?.url?.toString()})}),t.jsxs(Ud,{children:[t.jsxs(Id,{children:[t.jsx(Od,{windowSize:y,children:Ae}),Se.code!=="paid"?t.jsxs(Dd,{children:[t.jsx(Td,{windowSize:y}),t.jsx(Ad,{color:Se.color,windowSize:y,children:Se.value})]}):null]}),t.jsx(Hd,{children:`${qt.paymentDate} ${re.format(bd.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(Bd,{children:[t.jsx(_d,{children:n.direction==="debit"?me:`-${me}`}),t.jsx(Pd,{title:L.name,children:L.name}),t.jsx(Fd,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?$d:x?.fetchState==="In-Progress"?t.jsx(gt,{size:"Small",start:!0}):m?t.jsx(Rd,{}):t.jsxs(or,{children:[t.jsx(or,{"data-testid":J("card-transaction-row-small-upload-receipt",n.id),onClick:R=>{R.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:Fe,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:M,multiple:!0,onFileSizeError:(R,he)=>{R&&w(!1,{code:500,message:he===!0?qt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",Lt(i,0)):qt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",Lt(i,0))})}})}),Gr(n,C,te,Ce)]})})]})]})}),Z&&P.length>0?Mr.createPortal(t.jsx(Fr,{allFiles:ae,fileSource:ie,file:de,title:de.fileName,attachments:P,setFileSource:se,setShowFullScreenView:W,onCrossClick:A,setSelectedFileAttachment:G,onDownloadClick:R=>{le(R.id)},handleTouchStart:oe,handleTouchMove:Q,handleTouchEnd:N}),document.body):null]})},qr=e=>we`
|
|
934
|
+
width: ${a.sp4};
|
|
935
|
+
height: ${a.sp4};
|
|
936
|
+
color: ${e.colors.hero};
|
|
937
|
+
`,jd=r(Zr)`
|
|
938
|
+
${({theme:e})=>qr(e)}
|
|
939
|
+
`,Ld=r(_r)`
|
|
940
|
+
${({theme:e})=>qr(e)}
|
|
941
|
+
`,or=r.div``,Id=r.div`
|
|
942
|
+
display: flex;
|
|
943
|
+
gap: ${a.sp2};
|
|
944
|
+
align-items: flex-start;
|
|
945
|
+
`,Dd=r.div`
|
|
946
|
+
display: flex;
|
|
947
|
+
flex-direction: row;
|
|
948
|
+
align-items: center;
|
|
949
|
+
gap: ${a.sp2};
|
|
950
|
+
min-height: ${a.sp4};
|
|
951
|
+
`,Ad=r(dt)`
|
|
952
|
+
color: ${e=>e.color};
|
|
953
|
+
`,Td=r.div`
|
|
954
|
+
display: block;
|
|
955
|
+
width: ${a.sp1};
|
|
956
|
+
height: ${a.sp1};
|
|
957
|
+
border-radius: 100%;
|
|
958
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
959
|
+
`,Rd=r(Ct)`
|
|
960
|
+
height: ${a.sp4};
|
|
961
|
+
width: ${a.sp4};
|
|
962
|
+
color: ${d.success};
|
|
963
|
+
`,Ed=r.div``,Fd=r.div`
|
|
964
|
+
margin-top: ${a.sp2};
|
|
965
|
+
`,Pd=r(dt)`
|
|
966
|
+
color: ${e=>e.theme.colors.hero};
|
|
967
|
+
max-width: 100%;
|
|
968
|
+
overflow: hidden;
|
|
969
|
+
text-overflow: ellipsis;
|
|
970
|
+
white-space: nowrap;
|
|
971
|
+
padding: 1px 6px;
|
|
972
|
+
border-radius: ${a.sp1};
|
|
973
|
+
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
974
|
+
`,zd=r.div`
|
|
975
|
+
display: flex;
|
|
976
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
977
|
+
border: ${e=>` 1px solid ${e.theme.colors.grey3}`};
|
|
978
|
+
padding: ${a.sp3};
|
|
979
|
+
box-shadow: ${e=>`${a.sp0} 1px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
980
|
+
border-radius: ${a.sp2};
|
|
981
|
+
color: ${e=>e.theme.colors.hero};
|
|
982
|
+
&:hover {
|
|
983
|
+
color: ${e=>e.theme.colors.primary};
|
|
984
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
985
|
+
}
|
|
986
|
+
margin-right: ${a.sp3};
|
|
987
|
+
margin-left: ${a.sp3};
|
|
988
|
+
`,Md=r.div`
|
|
989
|
+
display: block;
|
|
990
|
+
width: 100%;
|
|
991
|
+
`,Vd=r.div`
|
|
992
|
+
display: flex;
|
|
993
|
+
width: 100%;
|
|
994
|
+
justify-content: space-between;
|
|
995
|
+
`,Od=r(Oe)`
|
|
996
|
+
color: inherit;
|
|
997
|
+
flex-grow: 1;
|
|
998
|
+
display: -webkit-box;
|
|
999
|
+
-webkit-line-clamp: ${e=>vd.webkitLineClamp.value(e.windowSize)};
|
|
1000
|
+
-webkit-box-orient: vertical;
|
|
1001
|
+
overflow: hidden;
|
|
1002
|
+
text-overflow: ellipsis;
|
|
1003
|
+
max-width: 112px;
|
|
1004
|
+
overflow: hidden;
|
|
1005
|
+
text-overflow: ellipsis;
|
|
1006
|
+
text-transform: capitalize;
|
|
1007
|
+
`,Hd=r(dt)`
|
|
1008
|
+
color: inherit;
|
|
1009
|
+
min-height: 18px;
|
|
1010
|
+
margin-top: -${a.sp1};
|
|
1011
|
+
`,Nd=r.div`
|
|
1012
|
+
display: flex;
|
|
1013
|
+
flex-direction: row;
|
|
1014
|
+
gap: ${a.sp2};
|
|
1015
|
+
`,Bd=r.div`
|
|
1016
|
+
display: flex;
|
|
1017
|
+
flex-direction: column;
|
|
1018
|
+
align-items: flex-end;
|
|
1019
|
+
`,Wd=r.img`
|
|
1020
|
+
display: flex;
|
|
1021
|
+
width: ${a.sp4};
|
|
1022
|
+
height: ${a.sp4};
|
|
1023
|
+
`,Ud=r.div`
|
|
1024
|
+
margin-bottom: 6px;
|
|
1025
|
+
`,_d=r(Oe)`
|
|
1026
|
+
color: inherit;
|
|
1027
|
+
`,Zd=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"})))),Gd=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:st}},common:Yd}=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:S,cardsEndPoint:n,authParams:C,hideSorting:w,isOwnCard:j,uiState:b,fetchState:k,cardHolderUser:I,cardStatusCode:p="active",cardCodeType:E="business_virtual_credit_card",onReloadTransactions:y,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,ie=(G,$)=>{O(G,$)},se=()=>{ae(!0),ie(b.pageToken,b.pageTokenType)},P=G=>G<e.length,de=()=>{b.pageToken!=null&&k==="Completed"&&se()};return t.jsxs(rc,{isOwnCard:j,windowSize:N,isEmptyTransaction:e.length===0,children:[t.jsx(ic,{windowSize:N,children:k==="Error"?t.jsxs(sc,{children:[t.jsx(dc,{onClick:y,"data-testid":J("card-transaction-list-reload"),children:t.jsx(br,{})}),t.jsx(cc,{children:Yd.reloadPage.label})]}):k==="Not-Started"||k==="In-Progress"&&e.length===0?t.jsx(hc,{children:t.jsx(gt,{size:"ExtraLarge",start:!0})}):k==="Completed"||k==="In-Progress"&&e.length>0?p==="request_on_hold"?t.jsx(Jd,{cardType:E,cardHolderUser:I}):p==="inactive"?t.jsx(Kd,{cardHolderUser:I}):e.length===0?t.jsx(Xd,{}):t.jsx(nc,{windowSize:N,children:t.jsx(Hi,{children:({height:G,width:$})=>t.jsx(Ni,{isItemLoaded:P,itemCount:e.length+1,loadMoreItems:de,children:({onItemsRendered:q})=>t.jsx(Bi,{ref:Z,height:G,itemCount:e.length,onItemsRendered:q,itemSize:ee,itemKey:B=>e[B].id,width:$,style:{willChange:"auto"},innerElementType:B=>ac(B,w,b,k,H),onScroll:({scrollOffset:B})=>{_?.(B)},initialScrollOffset:b.scrollYOffset,children:B=>t.jsx(Qd,{...B,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:S,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(pc,{children:t.jsx(gt,{size:"Small",start:!0})}):null]})}const Xd=()=>{const e=Le();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Jr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:st.transactionTable.emptyTransactions.title}),t.jsx(sa,{windowSize:e,children:st.transactionTable.emptyTransactions.subTitle})]})]})},Jd=({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(mc,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:st.transactionTable.pendingProfileCompletion.title}),t.jsx(sa,{windowSize:u,children:st.transactionTable.pendingProfileCompletion.subTitle[e].replace("__user__",s)})]})]})},Kd=({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:st.transactionTable.pendingActivation.title}),t.jsx(sa,{windowSize:i,children:st.transactionTable.pendingActivation.subTitle.replace("__user__",e?.firstName??"")})]})]})},Qd=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,style:u,transactions:h,isAiCategorizationEnabledForCardsTransactions:f,uploadReceiptsFetchStateByTransactionId:c,uploadReceiptsShowTickByTransactionId:g,isViewReceiptClickedImmediatelyAfterUploadTransactionId:m,cardId:x,cardsEndPoint:S,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,receiptRequiredAboveAmount:w,authParams:j,updateChargeCardTransactionAttachments:b,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:I,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:y,removeSnackbar:O})=>t.jsx(lc,{style:{...u,width:"100%"},className:"spend-management-list-item",children:t.jsx(tc,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardId:x,isAiCategorizationEnabledForCardsTransactions:f,cardsEndPoint:S,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:b,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:I,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:y,removeSnackbar:O},h[e].id)}),ec=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,cardsEndPoint:g,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,cardId:S,receiptRequiredAboveAmount:n,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:b,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:I,onChargeCardTransactionRowClick:p,removeSnackbar:E})=>{const y=Le()==="small"?kd:Ks;return t.jsx(y,{isSnackbarOpen:s,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,transaction:e,cardId:S,receiptRequiredAboveAmount:n,cardsEndPoint:g,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:b,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:I,onChargeCardTransactionRowClick:p,removeSnackbar:E})},tc=o.memo(ec),ac=(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(uc,{ref:i,style:{...u,width:"auto"},...g,children:[t.jsx(Ps,{onColumnSortConfigChanged:f,sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},hideSorting:c}),t.jsx(oc,{children:s})]})});Xr.displayName="Charge Card Transaction list View inner element type";const rc=r.div`
|
|
1028
|
+
display: block;
|
|
1029
|
+
height: ${e=>e.isEmptyTransaction?"calc(100vh - 436px)":"calc(100vh - 224px)"};
|
|
1030
|
+
width: 100%;
|
|
1031
|
+
`,ic=r.div`
|
|
1032
|
+
height: 100%;
|
|
1033
|
+
`,oc=r.div`
|
|
1034
|
+
position: relative;
|
|
1035
|
+
width: auto;
|
|
1036
|
+
height: 100%;
|
|
1037
|
+
`,nc=r.div`
|
|
1038
|
+
height: 100%;
|
|
1039
|
+
display: flex;
|
|
1040
|
+
flex-direction: column;
|
|
1041
|
+
max-width: 99.9%;
|
|
1042
|
+
`,sc=r.div`
|
|
1043
|
+
display: flex;
|
|
1044
|
+
width: 100%;
|
|
1045
|
+
height: calc(100% - 60px);
|
|
1046
|
+
flex-direction: column;
|
|
1047
|
+
justify-content: center;
|
|
1048
|
+
align-items: center;
|
|
1049
|
+
`,dc=r.div`
|
|
1050
|
+
height: 96px;
|
|
1051
|
+
width: 96px;
|
|
1052
|
+
background: ${e=>e.theme.colors.background};
|
|
1053
|
+
border-radius: 50%;
|
|
1054
|
+
cursor: pointer;
|
|
1055
|
+
& svg {
|
|
1056
|
+
margin: ${a.sp5};
|
|
1057
|
+
color: ${e=>e.theme.colors.grey1};
|
|
1058
|
+
}
|
|
1059
|
+
&:hover {
|
|
1060
|
+
& svg {
|
|
1061
|
+
color: ${e=>e.theme.colors.primary};
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
`,cc=r(ea)`
|
|
1065
|
+
margin-top: ${a.sp3};
|
|
1066
|
+
color: ${e=>e.theme.colors.hero};
|
|
1067
|
+
`,lc=r.div`
|
|
1068
|
+
top: ${a.sp0};
|
|
1069
|
+
left: ${a.sp0};
|
|
1070
|
+
padding-bottom: ${a.sp3};
|
|
1071
|
+
box-sizing: border-box;
|
|
1072
|
+
`,hc=r.div`
|
|
1073
|
+
display: flex;
|
|
1074
|
+
width: 100%;
|
|
1075
|
+
height: 100%;
|
|
1076
|
+
flex-direction: row;
|
|
1077
|
+
justify-content: center;
|
|
1078
|
+
align-items: center;
|
|
1079
|
+
margin-top: ${a.sp3};
|
|
1080
|
+
margin-bottom: ${a.sp3};
|
|
1081
|
+
`,pc=r.div`
|
|
1082
|
+
display: flex;
|
|
1083
|
+
width: 100%;
|
|
1084
|
+
height: auto;
|
|
1085
|
+
padding-bottom: ${a.sp3};
|
|
1086
|
+
flex-direction: row;
|
|
1087
|
+
justify-content: center;
|
|
1088
|
+
align-items: center;
|
|
1089
|
+
`,ia=r.div`
|
|
1090
|
+
display: flex;
|
|
1091
|
+
justify-content: center;
|
|
1092
|
+
align-items: center;
|
|
1093
|
+
flex-direction: column;
|
|
1094
|
+
gap: ${a.sp2};
|
|
1095
|
+
height: 100%;
|
|
1096
|
+
margin: ${a.sp0} ${a.sp3};
|
|
1097
|
+
`,oa=r.div`
|
|
1098
|
+
display: flex;
|
|
1099
|
+
flex-direction: column;
|
|
1100
|
+
align-items: center;
|
|
1101
|
+
`,na=r(ro)`
|
|
1102
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
1103
|
+
`,sa=r(Ar)`
|
|
1104
|
+
color: ${e=>e.theme.colors.primary};
|
|
1105
|
+
${e=>e.windowSize!=="small"?we`
|
|
1106
|
+
white-space: pre;
|
|
1107
|
+
`:null};
|
|
1108
|
+
text-align: center;
|
|
1109
|
+
`,da=r.div``,uc=r.div``,Jr=r(Zd)``,mc=r(Gd)``,{spendManagement:gc}=ke.getLocalizedStrings(),{cardDetails:Ne}=gc.chargeCard,Cc=zr`
|
|
1110
|
+
from {
|
|
1111
|
+
transform: translateX(100%);
|
|
1112
|
+
}
|
|
1113
|
+
to {
|
|
1114
|
+
transform: translateX(0);
|
|
1115
|
+
}
|
|
1116
|
+
`,fc=e=>{switch(e){case"slide-in-right-to-left-add-to-wallet":return Cc;default:return null}},wc=r.div`
|
|
1117
|
+
display: flex;
|
|
1118
|
+
flex-direction: column;
|
|
1119
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
1120
|
+
height: inherit;
|
|
1121
|
+
`,xc=r(wc)`
|
|
1122
|
+
animation: ${e=>fc(e.className)} 0.3s forwards;
|
|
1123
|
+
`,Sc=({isChargeCardAdmin:e,chargeCardDetailView:i,walletType:s,secretRevealed:u,isDrawerOpen:h,vgsVaultId:f,showSecretInfo:c,changePinInProcess:g,isSandboxEnv:m,controllerEmails:x,isChargeCardFeatureEnabled:S,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:w,chargeCardCashbackDetailState:j,isCardDetailErrored:b,creditAccountRepayment:k,productInformation:I,creditAccountInformation:p,debitAccountInformation:E,cashbackInformation:y,signedInUserToken:O,selectedColor:H,showDrawerAnimation:v,cardDetailsFetchState:Y,setCardDetailsFetchState:K,setIsCardDetailErrored:_,setShowSecretInfo:D,setSecretRevealed:oe,setShowChangePinPopup:Q,setIsAddToWalletDrawerOpen:ne,isCardDetailFetching:N,handleColorCodeClick:Z,onFireOnClickAnalytics:W,onVerifyOtp:ae,onVerifyOtpSuccess:ee,onResendOtp:ie,onFireVerifyPopOnClickAnalytics:se,onGetOtp:P})=>{const de=tt(),[G,$]=o.useState(!1),[q,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":J("add-card-to-wallet-drawer"),children:t.jsxs(t.Fragment,{children:[t.jsx(Sr,{phoneNumberPopupDescription:Ne.verifyPhoneNumberDescription,showOtpPopup:G,showPhoneNumberPopup:q,twoFactorAuthenticationView:i.twoFAView,loggedInUserPhone:i.loggedInUserPhone,onVerifyOtp:ae,onVerifyOtpSuccess:A=>{ee(A),g?Q(!0):D(!0)},onFireVerifyPopOnClickAnalytics:se,setShowOtpPopup:$,onResendOtp:ie,setShowPhoneNumberPopup:B,onGetOtp:P}),t.jsxs(xc,{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(bc,{children:[t.jsxs(jc,{children:[t.jsxs($c,{children:[t.jsx(Ec,{children:t.jsx(Pc,{})}),t.jsx(Ic,{children:Ne.openWalletAppOnPhone})]}),t.jsx(Dc,{children:s==="apple"?Ne.openWalletDescriptionApple:Ne.openWalletDescriptionGoogle}),t.jsx(Hr,{isChargeCardAdmin:e,onUnlockChargeCard:()=>{},chargeCardDetailView:i,creditAccountRepayment:k,creditAccount:i.creditAccount,setShowSecretInfo:D,secretRevealed:u,isOwnCard:!0,controllerEmails:x,isChargeCardFeatureEnabled:S,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:w,chargeCardCashbackDetailState:j,isShowingInDrawer:!0,vgsVaultId:f,showSecretInfo:c,isSandboxEnv:m,isCardDetailErrored:b,signedInUserToken:O,productInformation:I,creditAccountInformation:p,debitAccountInformation:E,cashbackInformation:y,selectedColor:H,cardDetailsFetchState:Y,setCardDetailsFetchState:K,setIsCardDetailErrored:_,setSecretRevealed:oe,isCardDetailFetching:N,handleColorCodeClick:Z,onFireOnClickAnalytics:W,setShowPhoneNumberForOtp:B})]}),t.jsx(kc,{}),t.jsxs(Lc,{children:[t.jsxs(vc,{children:[t.jsx(Rc,{children:t.jsx(Fc,{})}),t.jsx(Ac,{children:Ne.verifyCard})]}),t.jsx(yc,{children:t.jsx(Tc,{children:s==="apple"?Ne.VerifyCardDescriptionApple:Ne.VerifyCardDescriptionGoogle})})]})]})]})]})})},yc=r.div`
|
|
1124
|
+
display: flex;
|
|
1125
|
+
justify-content: end;
|
|
1126
|
+
`,bc=r.div`
|
|
1127
|
+
margin: ${a.sp3} ${a.sp8};
|
|
1128
|
+
`,$c=r.div`
|
|
1129
|
+
display: flex;
|
|
1130
|
+
align-items: center;
|
|
1131
|
+
gap: ${a.sp3};
|
|
1132
|
+
`,vc=r.div`
|
|
1133
|
+
display: flex;
|
|
1134
|
+
align-items: center;
|
|
1135
|
+
gap: ${a.sp3};
|
|
1136
|
+
`,kc=r.div`
|
|
1137
|
+
height: ${a.sp4};
|
|
1138
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
1139
|
+
width: ${a.sp0};
|
|
1140
|
+
margin-left: ${a.sp8};
|
|
1141
|
+
`,jc=r.div`
|
|
1142
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
1143
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1144
|
+
border-radius: ${a.sp2};
|
|
1145
|
+
padding: ${a.sp4} ${a.sp5};
|
|
1146
|
+
box-shadow: ${a.sp0} 1px 2px
|
|
1147
|
+
${e=>e.theme.colors.dropShadowNormal};
|
|
1148
|
+
`,Lc=r.div`
|
|
1149
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
1150
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1151
|
+
border-radius: ${a.sp2};
|
|
1152
|
+
padding: ${a.sp4} ${a.sp5};
|
|
1153
|
+
box-shadow: ${a.sp0} 1px 2px
|
|
1154
|
+
${e=>e.theme.colors.dropShadowNormal};
|
|
1155
|
+
`,Ic=r(aa)`
|
|
1156
|
+
color: ${e=>e.theme.colors.primary};
|
|
1157
|
+
`,Dc=r(Oe)`
|
|
1158
|
+
color: ${e=>e.theme.colors.hero};
|
|
1159
|
+
margin-left: ${a.sp9};
|
|
1160
|
+
padding-bottom: ${a.sp4};
|
|
1161
|
+
`,Ac=r(aa)`
|
|
1162
|
+
color: ${e=>e.theme.colors.primary};
|
|
1163
|
+
`,Tc=r(Oe)`
|
|
1164
|
+
color: ${e=>e.theme.colors.hero};
|
|
1165
|
+
max-width: 274px;
|
|
1166
|
+
`,Rc=r.div`
|
|
1167
|
+
padding: 12px;
|
|
1168
|
+
border-radius: ${a.sp4};
|
|
1169
|
+
background: ${d.successLight};
|
|
1170
|
+
display: flex;
|
|
1171
|
+
`,Ec=r.div`
|
|
1172
|
+
padding: 12px;
|
|
1173
|
+
border-radius: ${a.sp4};
|
|
1174
|
+
background: ${e=>e.theme.colors.graphColor16Light};
|
|
1175
|
+
display: flex;
|
|
1176
|
+
`,Fc=r(Gi)`
|
|
1177
|
+
width: ${a.sp4};
|
|
1178
|
+
height: ${a.sp4};
|
|
1179
|
+
`,Pc=r(vo)`
|
|
1180
|
+
width: ${a.sp4};
|
|
1181
|
+
height: ${a.sp4};
|
|
1182
|
+
color: ${e=>e.theme.colors.graphColor16Dark};
|
|
1183
|
+
`,{spendManagement:{chargeCard:{cardDetails:Je}},common:{strings:zc}}=ke.getLocalizedStrings(),ca={iFrameWidth:new T(188,188)};function Mc({isSandboxEnv:e,cardProviderID:i,vgsVaultId:s,signedInUserToken:u,onCancelClick:h,onUpdateDebitCardPinAttempt:f,onChangePinSuccess:c}){const g=Le(),m=tt(),[x,S]=o.useState({}),[n,C]=o.useState(!1),[w,j]=o.useState(!1),[b,k]=o.useState(!0),[I,p]=o.useState(!0),[E,y]=o.useState(!1),[O,H]=o.useState(!1),[v,Y]=o.useState(!1),[K,_]=o.useState(!1),[D,oe]=o.useState(!1),[Q,ne]=o.useState(!1),[N,Z]=o.useState(!1),[W,ae]=o.useState(null),[ee,ie]=o.useState(null),[se]=yr("https://js.verygoodvault.com/vgs-collect/2.27.0/vgs-collect.js"),P=e?"SANDBOX":"live";o.useEffect(()=>{if(se){const $=window.VGSCollect.create(s,P,le=>{const A=le["data.attributes.oldPin"],z=le["data.attributes.newPin"];A?.isTouched===!0&&A?.isValid===!1&&A?.isFocused===!1?_(!0):(A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!1||A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!0)&&(_(!1),Z(!1)),z?.isTouched===!0&&z?.isValid===!1&&z?.isFocused===!1?oe(!0):(z?.isTouched===!0&&z?.isValid===!0&&z?.isFocused===!1||z?.isTouched===!0&&z?.isValid===!0&&z?.isFocused===!0)&&oe(!1)}),q=$.field("#oldPin",{type:"text",name:"data.attributes.oldPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{...U.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,...U.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:{...U.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,...U.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(q),ie(B),S($),Promise.all([q.promise,B.promise]).then(function(){j(!0)})}},[se]),o.useEffect(()=>{W?.update({hideValue:b})},[W,b]),o.useEffect(()=>{ee?.update({hideValue:I})},[ee,I]);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(q,B){q===200?(y(!1),H(!1),c(),f("success")):(_(!0),f("failed"),B.errors?.[0].title.toLowerCase().includes("max")?ne(!0):B.errors?.[0].title.toLowerCase().includes("invalid")&&Z(!0),C(!1))},q=>{console.log("error",q),C(!1)})},G={onOkClick:()=>{if(!x.state)return;const $=x.state["data.attributes.newPin"]?.isValid,q=x.state["data.attributes.oldPin"]?.isValid;Y(!0),$===!0&&q===!0&&de(u)},onCancelClick:h};return t.jsx(Ii,{titleComponent:t.jsx(Vc,{children:Je.moreOptions.changePin}),descriptionComponent:t.jsxs(Oc,{children:[t.jsxs(Uc,{children:[t.jsxs(pr,{showFieldError:K,windowSize:g,isFirstField:!0,validation:v,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),oldPinInputHighlighted:E,children:[t.jsx(cr,{children:Je.existingPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(Wc,{id:"oldPin",className:"cc-old-pin-form-field",windowSize:g}),t.jsx(nr,{onClick:()=>k(!b),"data-testid":J("cc-old-pin-show-text"),children:b?t.jsx(sr,{}):t.jsx(dr,{})})]})]}),t.jsx(Nc,{}),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(Bc,{id:"newPin",className:"cc-new-pin-form-field",windowSize:g}),t.jsx(nr,{onClick:()=>p(!I),"data-testid":J("cc-new-pin-show-text"),children:I?t.jsx(sr,{}):t.jsx(dr,{})})]})]})]}),N?t.jsx(hr,{children:Je.incorrectCurrentPIN}):null,Q?t.jsx(hr,{children:Je.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:w===!1||Q,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:G,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(Di,{children:[t.jsx(Hc,{children:Je.forgotYourPin}),zc.space,Je.callTollFree]})})}const Vc=r(Zi)`
|
|
1184
|
+
margin-top: ${a.sp7};
|
|
1185
|
+
padding-left: ${a.sp8};
|
|
1186
|
+
padding-right: ${a.sp8};
|
|
1187
|
+
color: ${e=>e.theme.colors.primary};
|
|
1188
|
+
word-break: break-word;
|
|
1189
|
+
`,Oc=r(Wi)`
|
|
1190
|
+
margin-top: ${a.sp5};
|
|
1191
|
+
margin-bottom: ${a.sp5};
|
|
1192
|
+
`,Hc=r.span`
|
|
1193
|
+
color: ${e=>e.theme.colors.primary};
|
|
1194
|
+
`,nr=r.div`
|
|
1195
|
+
cursor: pointer;
|
|
1196
|
+
margin-left: ${a.sp2};
|
|
1197
|
+
`,sr=r(Ui)`
|
|
1198
|
+
height: ${a.sp4};
|
|
1199
|
+
width: ${a.sp4};
|
|
1200
|
+
color: ${e=>e.theme.colors.hero};
|
|
1201
|
+
`,dr=r(_i)`
|
|
1202
|
+
height: ${a.sp4};
|
|
1203
|
+
width: ${a.sp4};
|
|
1204
|
+
color: ${e=>e.theme.colors.hero};
|
|
1205
|
+
`,cr=r.label`
|
|
1206
|
+
margin-top: ${a.sp2};
|
|
1207
|
+
`,lr=r.div`
|
|
1208
|
+
display: flex;
|
|
1209
|
+
flex-direction: row;
|
|
1210
|
+
align-items: center;
|
|
1211
|
+
max-width: 220px;
|
|
1212
|
+
`,hr=r(Oe)`
|
|
1213
|
+
color: ${d.important};
|
|
1214
|
+
display: flex;
|
|
1215
|
+
flex-direction: column;
|
|
1216
|
+
align-items: center;
|
|
1217
|
+
text-align: right;
|
|
1218
|
+
margin-top: ${a.sp3};
|
|
1219
|
+
`,Nc=r.div`
|
|
1220
|
+
display: flex;
|
|
1221
|
+
flex: 1;
|
|
1222
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
1223
|
+
min-height: 1px;
|
|
1224
|
+
max-height: 1px;
|
|
1225
|
+
`,Bc=r.div`
|
|
1226
|
+
border-radius: ${a.sp1};
|
|
1227
|
+
height: ${a.sp6};
|
|
1228
|
+
width: ${e=>ca.iFrameWidth.valuePx(e.windowSize)};
|
|
1229
|
+
`,Wc=r.div`
|
|
1230
|
+
border-radius: ${a.sp1};
|
|
1231
|
+
height: ${a.sp6};
|
|
1232
|
+
width: ${e=>ca.iFrameWidth.valuePx(e.windowSize)};
|
|
1233
|
+
`,Uc=r.div`
|
|
1234
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1235
|
+
border-radius: ${a.sp2};
|
|
1236
|
+
`,pr=r.div`
|
|
1237
|
+
display: flex;
|
|
1238
|
+
padding: ${a.sp2};
|
|
1239
|
+
padding-left: ${a.sp4};
|
|
1240
|
+
align-items: start;
|
|
1241
|
+
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1242
|
+
border-radius: ${a.sp2};
|
|
1243
|
+
justify-content: space-between;
|
|
1244
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
1245
|
+
gap: 11px;
|
|
1246
|
+
&:hover {
|
|
1247
|
+
z-index: 1;
|
|
1248
|
+
outline: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
1249
|
+
}
|
|
1250
|
+
iframe {
|
|
1251
|
+
height: 100%;
|
|
1252
|
+
width: ${e=>ca.iFrameWidth.valuePx(e.windowSize)};
|
|
1253
|
+
}
|
|
1254
|
+
.cc-new-pin-form-field {
|
|
1255
|
+
background: ${e=>e.showFieldError?d.importantLight:e.newPinInputHighlighted===!0?e.theme.colors.background:"unset"};
|
|
1256
|
+
}
|
|
1257
|
+
.cc-old-pin-form-field {
|
|
1258
|
+
background: ${e=>e.showFieldError?d.importantLight:e.oldPinInputHighlighted===!0?e.theme.colors.background:"unset"};
|
|
1259
|
+
}
|
|
1260
|
+
${e=>e.isFirstField?we`
|
|
1261
|
+
border-bottom-left-radius: ${a.sp0};
|
|
1262
|
+
border-bottom-right-radius: ${a.sp0};
|
|
1263
|
+
`:we`
|
|
1264
|
+
border-top-left-radius: ${a.sp0};
|
|
1265
|
+
border-top-right-radius: ${a.sp0};
|
|
1266
|
+
`}
|
|
1267
|
+
${e=>e.validation?we`
|
|
1268
|
+
.vgs-collect-container__invalid:not(.vgs-collect-container__focused) {
|
|
1269
|
+
background: ${d.importantLight};
|
|
1270
|
+
}
|
|
1271
|
+
.vgs-collect-container__focused) {
|
|
1272
|
+
background: ${e.theme.colors.background};
|
|
1273
|
+
}
|
|
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:_c,dateFormat:Zc}=ke.getLocalizedStrings(),ue=_c.chargeCard,Vl=({chargeCardDetailView:e,onUnlockChargeCard:i,onCloseChargeCard:s,cardsEndPoint:u,classListFetchState:h,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,cardId:x,vgsVaultId:S,controllerEmails:n,isCardControlsEnabled:C,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:b,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:I,onFetchChargeCardsRecurringExpenses:p,productInformation:E,cashbackInformation:y,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:ie,isSnackbarOpen:se,onFireOnClickAnalytics:P,onUpdateDebitCardPinAttempt:de,onFireVerifyPopOnClickAnalytics:G,onBackClick:$,onReloadTransactions:q,onFetchChargeCardTransactionList:B,onGetOtp:le,onLockChargeCard:A,onResendOtp:z,onVerifyOtp:ce,updateChargeCardName:re,onVerifyOtpSuccess:L,onColorCodeChange:je,onColumnSortConfigChanged:Ce,updateChargeCardTransactionAttachments:Fe,updateChargeCardTransactionUploadReceiptsFetchStatus:X,updateChargeCardTransactionReceiptsShowTick:te,updateChargeCardTransactionIsViewReceiptClicked:M,onUploadReceiptComplete:Se,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onChargeCardRevokeInviteClick:He,onUpdateScrollYOffset:Ye,updateSpendLimit:at,shouldOpenCreditCardPaymentDrawer:pe})=>{const R=o.useRef(!0),he=tt(),F=Le(),qe=It(),Pe=Dt().analytics,[,ct]=wr(),[ze,wt]=o.useState(!1),[lt,xt]=o.useState(!1),[St,Me]=o.useState(!1),[ht,Te]=o.useState(!1),[fe,pt]=o.useState(!1),[Tt,la]=o.useState(!1),[Qr,ei]=o.useState(!1),[ti,ha]=o.useState(!1),[ai,yt]=o.useState(!1),[ri,Rt]=o.useState(!1),[ii,bt]=o.useState(!1),[oi,$t]=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,ye=nt.hasChargeCardAdminLevelAccess(qe.loggedInUserRoleMap),{text1:ci,text2:li}=ki(xa),Sa=`${ci} ${li}`,zt=e.chargeCard?.isDeclinedTransaction===!0,hi=()=>{Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:I,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:ye,analytics:Pe,controllerEmails:n,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),ct(e.chargeCardConfig.receiptBotEmail),wt(!0)},pi=()=>{P("card owner copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:I,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:ye,analytics:Pe,controllerEmails:n,actionField:"Card Owner",actionDetails:Pt}),ct(Pt),pt(!0)},ui=()=>{P("billing address copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:I,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:ye,analytics:Pe,controllerEmails:n,actionField:"Billing Address",actionDetails:Sa}),ct(Sa),la(!0)};o.useEffect(()=>{ze===!0&&setTimeout(()=>{wt(!1)},800),fe===!0&&setTimeout(()=>{pt(!1)},800),Tt===!0&&setTimeout(()=>{la(!1)},800)},[fe,Tt,ze]);const[yl,mi]=o.useState(!1),[ya,ba]=o.useState(e.chargeCard?.cardColorCode!=null?new Qe(e.chargeCard.cardColorCode):void 0);o.useEffect(()=>{e.chargeCard?.cardColorCode!=null&&ba(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,be)=>{if(be===!0){const We=So(V.toString())??Ie.strings.empty;P("color selected",We),je(We),mi(!1)}ba(V)},ka=V=>{const{cvv:be,number:We}=V;return be===!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"?yt(!1):Ia==="In-Progress"&&Ot==="Completed"?Rt(!1):Da==="In-Progress"&&Ht==="Completed"?bt(!1):Aa==="In-Progress"&&Nt==="Completed"&&$t(!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=ye&&(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&&ye&&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}],be=e.chargeCard?.status.code,We=be==="locked",yi=be==="inactive",bi=be==="request_on_hold",$i=e.chargeCard?.isLockedByAdmin===!0,Ea=De&&Be,vt=ye;if(bi){const Ve=[];return vt&&Ve.push("revokeInvite"),Ve.push("rename"),V.filter(Bt=>Ve.includes(Bt.value))}if(yi){const Ve=[];return Ve.push("rename"),Ea&&Ve.push("changePin"),vt&&Ve.push("close"),V.filter(Bt=>Ve.includes(Bt.value))}const vi={changePin:Ea&&!We,lock:!We,unlock:We&&(ye||!$i),rename:!0,updateSpendLimit:vt,close:vt};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"?yt(!0):V==="rename"?Rt(!0):V==="lock"?(bt(!0),p()):V==="close"?($t(!0),p()):V==="unlock"?i(ye):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 be=Ra(V);A(ye,be)},xi=V=>{const be=Ra(V);s(be)},Si=()=>{const V=e.chargeCard?.status.code;if(V==="closed"||V==="closed_by_customer")return null;if(!C)return Be&&De?Ta:null;if(!Be&&!ye)return null;const be=e.chargeCard?.isLockedByAdmin===!0;return Be&&!ye&&be&&V==="locked"?null:Ta};return t.jsxs(nl,{children:[ii&&e.chargeCard!=null&&t.jsx(Ro,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>bt(!1),isChargeCardAdmin:ye,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:wi,onDismissClick:()=>bt(!1),onRemoveCardClick:()=>{}}),oi&&e.chargeCard!=null&&t.jsx(Eo,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>$t(!1),isChargeCardAdmin:ye,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,closeCardFetchState:e.closeChargeCardsFetchState.fetchState,onConfirmClick:xi,onDismissClick:()=>$t(!1),onRemoveCardClick:()=>{}}),ht&&e.chargeCard?.cardProviderID!=null?t.jsx(Mc,{signedInUserToken:Z,vgsVaultId:S,onCancelClick:()=>{Te(!1),Me(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{Te(!1),Me(!0)},onUpdateDebitCardPinAttempt:de}):null,ja?null:t.jsx(Sc,{isChargeCardAdmin:ye,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:b,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:I,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,creditAccount:e.creditAccount,selectedColor:ya,walletType:si,onFireOnClickAnalytics:P,isSandboxEnv:ae,chargeCardDetailView:e,vgsVaultId:S,signedInUserToken:Z,showSecretInfo:rt,changePinInProcess:St,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:Si(),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(To,{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(Sr,{phoneNumberPopupDescription:ue.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Qr,showPhoneNumberPopup:ti,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:ce,onVerifyOtpSuccess:V=>{L(V),St?Te(!0):Et(!0)},onFireVerifyPopOnClickAnalytics:G,setShowOtpPopup:ei,onResendOtp:z,setShowPhoneNumberPopup:ha,onGetOtp:le}),ri&&t.jsx(Fo,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Rt(!1),onSubmitClick:V=>{e.chargeCard&&re(ye,V)}}),ai&&e.chargeCard!=null?t.jsx(Po,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:b,isChargeCardSetupEnabled:k,productInformation:E,cashbackInformation:y,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:()=>yt(!1),onSubmitClick:V=>{if(e.chargeCard){const be={amount:V,currencyCode:e.chargeCard.limit.currencyCode,currencySymbol:e.chargeCard.limit.currencySymbol};at(e.chargeCard.id,be,e.chargeCard.creditLimitFrequency,Ge("0,0.[00]",be))}},recommendations:e?.chargeCard?.recommendations}):null,e.fetchState==="Error"?t.jsxs(el,{windowSize:F,children:[t.jsx(rl,{onClick:q,"data-testid":J("reload-card-detail"),children:t.jsx(ol,{})}),t.jsx(il,{children:Ie.reloadPage.label})]}):t.jsxs(Gc,{children:[t.jsx(Kn,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:b,isChargeCardSetupEnabled:k,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:y,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:S,showSecretInfo:rt,isSandboxEnv:ae,isCardDetailErrored:ua,signedInUserToken:Z,selectedColor:ya,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,setSecretRevealed:Ft,isCardDetailFetching:ka,handleColorCodeClick:va,onFireOnClickAnalytics:P,setShowPhoneNumberPopup:ha,setShowChangeSpendLimitPopup:yt,setShowSecretInfo:Et,isOwnerNameCopied:fe,isAddressCopied:Tt,onOwnerNameCopyClick:pi,onAddressCopyClick:ui,showUpdateSpendLimitAction:gi,onUnlockChargeCard:i}),ee?Ci?t.jsxs(qc,{windowSize:F,children:[t.jsx(ll,{}),t.jsx(Jc,{children:` ${ue.payEarly.paymentOf} ${Ge("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${ue.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(Zc.visual.MMMDFormat)} ${ue.payEarly.isProcessing} ${ue.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):zt?ye?t.jsxs(Kr,{onClick:()=>{pe(!0)},windowSize:F,children:[t.jsx(ur,{windowSize:F}),t.jsxs(tl,{children:[t.jsx(mr,{children:ue.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(Kc,{className:"pay-now-button",children:[ue.payEarly.payNow,t.jsx(Xc,{})]})]})]}):t.jsxs(Yc,{windowSize:F,children:[t.jsx(ur,{windowSize:F}),t.jsx(al,{children:t.jsx(mr,{children:ue.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,Be&&F!=="small"&&Mt&&De===!1?t.jsx(zo,{style:{marginTop:zt?a.sp5:a.sp4},classListFetchState:h,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:b,isChargeCardSetupEnabled:k,chargeCardDetailView:e,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:y,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(Sl,{windowSize:F,isOwnCard:Be,isMobileOrTabletScreen:ja,children:[Mt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(dl,{windowSize:F,children:[ue.cardDetails.transactionListTitle,t.jsx(Qt,{display:"flex",placement:"right",title:t.jsx(hl,{children:ue.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(cl,{})})]}),t.jsxs(pl,{windowSize:F,children:[t.jsx(Cl,{windowSize:F,children:t.jsx(fl,{})}),t.jsxs(sl,{windowSize:F,children:[t.jsxs(ul,{children:[t.jsx(Qc,{children:ue.aiCardAgentText}),Ie.strings.space,ue.receiptBotMessage,Ie.strings.space]}),t.jsxs(gl,{"data-testid":J("charge-card-detail-copy-email"),onClick:hi,onMouseEnter:()=>xt(!0),onMouseLeave:()=>xt(!1),children:[t.jsx(ml,{children:e.chargeCardConfig.receiptBotEmail}),ze===!0?t.jsxs(Cr,{children:[t.jsx(xl,{}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:lt||ze,color:d.primaryDark,children:Ie.copyToClipBoard.copied})})]}):t.jsxs(Cr,{children:[t.jsx(wl,{color:lt?he.colors.primary:void 0}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:lt&&F!=="small",children:Ie.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(qd,{cardStatusCode:e.chargeCard?.status.code,cardCodeType:e.chargeCard?.type.code,cardId:x,documentAiReceiptMaxSizeLimit:ie,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:Se,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:S,analytics:n,controllerEmails:C,actionDetails:w,actionField:j})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!s||g.fetchState==="Completed"&&m.fetchState==="Completed")&&(!(x&&S)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(C,u,"Cards Detail","Copy","copied",j,w,h,f,c)},Gc=r.div``,Kr=r.div`
|
|
1276
|
+
background: ${d.important};
|
|
1277
|
+
display: flex;
|
|
1278
|
+
align-items: center;
|
|
1279
|
+
justify-content: center;
|
|
1280
|
+
padding-top: ${a.sp3};
|
|
1281
|
+
padding-bottom: ${a.sp3};
|
|
1282
|
+
padding-left: ${({windowSize:e})=>Ee.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1283
|
+
padding-right: ${({windowSize:e})=>Ee.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1284
|
+
gap: ${a.sp1};
|
|
1285
|
+
align-items: start;
|
|
1286
|
+
cursor: pointer;
|
|
1287
|
+
:hover {
|
|
1288
|
+
.pay-now-button {
|
|
1289
|
+
text-decoration: underline;
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
`,Yc=r(Kr)``,qc=r.div`
|
|
1293
|
+
background: ${d.alertLight};
|
|
1294
|
+
display: flex;
|
|
1295
|
+
align-items: start;
|
|
1296
|
+
justify-content: center;
|
|
1297
|
+
padding-top: ${a.sp3};
|
|
1298
|
+
padding-bottom: ${a.sp3};
|
|
1299
|
+
padding-left: ${({windowSize:e})=>Ee.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1300
|
+
padding-right: ${({windowSize:e})=>Ee.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1301
|
+
gap: ${a.sp2};
|
|
1302
|
+
`,ur=r(Fi)`
|
|
1303
|
+
color: ${e=>e.theme.colors.grey5};
|
|
1304
|
+
margin-right: ${({windowSize:e})=>Ee.styledHighImportanceIconMarginRight.valuePx(e)};
|
|
1305
|
+
min-width: ${a.sp4};
|
|
1306
|
+
width: ${a.sp4};
|
|
1307
|
+
height: ${a.sp4};
|
|
1308
|
+
path:nth-child(2),
|
|
1309
|
+
path:nth-child(3) {
|
|
1310
|
+
stroke: ${d.important};
|
|
1311
|
+
}
|
|
1312
|
+
`,Xc=r(Pi)`
|
|
1313
|
+
color: ${e=>e.theme.colors.grey5};
|
|
1314
|
+
min-width: 12px;
|
|
1315
|
+
width: 12px;
|
|
1316
|
+
height: 12px;
|
|
1317
|
+
`,mr=r(ta)`
|
|
1318
|
+
color: ${e=>e.theme.colors.grey5};
|
|
1319
|
+
`,Jc=r(ta)`
|
|
1320
|
+
color: ${d.brandColorGoldDark};
|
|
1321
|
+
`,Kc=r(kr)`
|
|
1322
|
+
color: ${e=>e.theme.colors.grey5};
|
|
1323
|
+
gap: ${a.sp1};
|
|
1324
|
+
cursor: pointer;
|
|
1325
|
+
display: inline-flex;
|
|
1326
|
+
align-items: center;
|
|
1327
|
+
white-space: nowrap;
|
|
1328
|
+
`,Qc=r(Oi)`
|
|
1329
|
+
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
1330
|
+
${({theme:e})=>e.mode==="dark"&&`color: ${d.brandColorPearl};`}
|
|
1331
|
+
`,el=r.div`
|
|
1332
|
+
display: flex;
|
|
1333
|
+
width: 100%;
|
|
1334
|
+
height: calc(100vh - ${e=>Ri.valuePx(e.windowSize)});
|
|
1335
|
+
flex-direction: column;
|
|
1336
|
+
justify-content: center;
|
|
1337
|
+
align-items: center;
|
|
1338
|
+
background: ${e=>e.theme.colors.grey5};
|
|
1339
|
+
`,tl=r.div``,al=r.div``,rl=r.div`
|
|
1340
|
+
height: ${a.sp12};
|
|
1341
|
+
width: ${a.sp12};
|
|
1342
|
+
background: ${e=>e.theme.colors.background};
|
|
1343
|
+
display: flex;
|
|
1344
|
+
justify-content: center;
|
|
1345
|
+
align-items: center;
|
|
1346
|
+
border-radius: 50%;
|
|
1347
|
+
cursor: pointer;
|
|
1348
|
+
& svg {
|
|
1349
|
+
margin: ${a.sp5};
|
|
1350
|
+
color: ${e=>e.theme.colors.grey1};
|
|
1351
|
+
}
|
|
1352
|
+
&:hover {
|
|
1353
|
+
& svg {
|
|
1354
|
+
color: ${e=>e.theme.colors.primary};
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
`,il=r(ea)`
|
|
1358
|
+
margin-top: ${a.sp3};
|
|
1359
|
+
color: ${e=>e.theme.colors.hero};
|
|
1360
|
+
`,ol=r(br)`
|
|
1361
|
+
height: ${a.sp5};
|
|
1362
|
+
width: ${a.sp5};
|
|
1363
|
+
margin: ${a.sp5};
|
|
1364
|
+
color: ${e=>e.theme.colors.grey1};
|
|
1365
|
+
&:hover {
|
|
1366
|
+
color: ${e=>e.theme.colors.primary};
|
|
1367
|
+
}
|
|
1368
|
+
`,nl=r.div`
|
|
1369
|
+
background: ${e=>e.theme.colors.grey4};
|
|
1370
|
+
`,sl=r.div`
|
|
1371
|
+
width: 100%;
|
|
1372
|
+
max-width: ${e=>e.windowSize==="small"?"calc(100% - 20px)":"unset"};
|
|
1373
|
+
`,dl=r(aa)`
|
|
1374
|
+
color: ${e=>e.theme.colors.primary};
|
|
1375
|
+
margin-bottom: ${a.sp3};
|
|
1376
|
+
display: flex;
|
|
1377
|
+
align-items: center;
|
|
1378
|
+
margin-right: ${e=>Ee.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
1379
|
+
margin-left: ${e=>Ee.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
1380
|
+
`,cl=r(vr)`
|
|
1381
|
+
color: ${e=>e.theme.colors.hero};
|
|
1382
|
+
width: ${a.sp3};
|
|
1383
|
+
height: ${a.sp3};
|
|
1384
|
+
margin-left: ${a.sp2};
|
|
1385
|
+
&:hover {
|
|
1386
|
+
color: ${e=>e.theme.colors.primary};
|
|
1387
|
+
}
|
|
1388
|
+
`,ll=r(vr)`
|
|
1389
|
+
color: ${d.brandColorGoldDark};
|
|
1390
|
+
min-width: ${a.sp4};
|
|
1391
|
+
width: ${a.sp4};
|
|
1392
|
+
height: ${a.sp4};
|
|
1393
|
+
`,hl=r(ge)`
|
|
1394
|
+
padding: 2px ${a.sp2};
|
|
1395
|
+
box-sizing: content-box;
|
|
1396
|
+
color: ${e=>e.theme.colors.hero};
|
|
1397
|
+
background: ${e=>e.theme.colors.black};
|
|
1398
|
+
border-radius: ${a.sp1};
|
|
1399
|
+
max-width: 178px;
|
|
1400
|
+
text-align: left;
|
|
1401
|
+
`,pl=r.div`
|
|
1402
|
+
display: flex;
|
|
1403
|
+
border: 1.25px solid transparent;
|
|
1404
|
+
background: ${e=>`linear-gradient(${e.theme.colors.grey4}, ${e.theme.colors.grey4}) padding-box,
|
|
1405
|
+
${d.receiptAgentLinearGradient}
|
|
1406
|
+
border-box`};
|
|
1407
|
+
padding: ${a.sp3} ${a.sp4};
|
|
1408
|
+
border-radius: ${a.sp2};
|
|
1409
|
+
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
1410
|
+
gap: ${a.sp1};
|
|
1411
|
+
margin: 0
|
|
1412
|
+
${e=>Ee.bannerWrapperMarginLeftRight.valuePx(e.windowSize)};
|
|
1413
|
+
`,ul=r(ta)`
|
|
1414
|
+
color: ${e=>e.theme.colors.primary};
|
|
1415
|
+
`,ml=r(kr)`
|
|
1416
|
+
color: ${e=>e.theme.colors.primary};
|
|
1417
|
+
`,gl=r.span`
|
|
1418
|
+
cursor: pointer;
|
|
1419
|
+
`,gr=r.span`
|
|
1420
|
+
position: absolute;
|
|
1421
|
+
bottom: -${a.sp5};
|
|
1422
|
+
z-index: 10;
|
|
1423
|
+
left: ${a.sp2};
|
|
1424
|
+
`,Cr=r.span`
|
|
1425
|
+
position: relative;
|
|
1426
|
+
margin-left: ${a.sp1};
|
|
1427
|
+
top: 2px;
|
|
1428
|
+
`,fr=r(ge)`
|
|
1429
|
+
position: relative;
|
|
1430
|
+
background: ${e=>e.theme.colors.black};
|
|
1431
|
+
color: ${e=>e.color!=null?e.color:e.theme.colors.grey1};
|
|
1432
|
+
padding: 2px ${a.sp2};
|
|
1433
|
+
z-index: 10;
|
|
1434
|
+
border-radius: ${a.sp1};
|
|
1435
|
+
left: -50%;
|
|
1436
|
+
display: ${e=>e.shouldDisplay?"block":"none"};
|
|
1437
|
+
`,Cl=r.div`
|
|
1438
|
+
width: ${e=>Ee.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1439
|
+
min-width: ${e=>Ee.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1440
|
+
height: ${e=>Ee.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1441
|
+
top: ${a.sp1};
|
|
1442
|
+
position: ${e=>e.windowSize==="small"?"relative":"static"};
|
|
1443
|
+
`,fl=r(Vi)`
|
|
1444
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
1445
|
+
width: 100%;
|
|
1446
|
+
height: 100%;
|
|
1447
|
+
`,wl=r(jr)`
|
|
1448
|
+
height: ${a.sp3};
|
|
1449
|
+
width: ${a.sp3};
|
|
1450
|
+
color: ${e=>e.color!=null?e.color:e.theme.colors.hero};
|
|
1451
|
+
cursor: pointer;
|
|
1452
|
+
&:hover {
|
|
1453
|
+
color: ${e=>e.theme.colors.primary};
|
|
1454
|
+
}
|
|
1455
|
+
`,xl=r(Ct)`
|
|
1456
|
+
height: ${a.sp3};
|
|
1457
|
+
width: ${a.sp3};
|
|
1458
|
+
color: ${d.success};
|
|
1459
|
+
`,Sl=r.div`
|
|
1460
|
+
padding-top: ${e=>e.isOwnCard?e.isMobileOrTabletScreen?a.sp3:a.sp4:a.sp5};
|
|
1461
|
+
padding-bottom: ${a.sp4};
|
|
1462
|
+
`;export{Vl as default};
|