@zeniai/web-cockpit-ui 1.14.1-pune → 1.14.2-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-CRqyoYEz-DIIEbfXH.js → ACHDetailsPage-CfXmiXOX-Bw6PIXTR.js} +3 -3
- package/dist/assets/{AIPerformancePage-DAkvkXSA-DCPKp1TL.js → AIPerformancePage-BTkeAbzQ-BrardM2A.js} +48 -38
- package/dist/assets/{AccountInfoPage-6EVpo7mW-_VH4qo0L.js → AccountInfoPage-Cw14e1jO-BsUim3eq.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BWZbyIYz-DsBeIJ7e.js → AccountInfoPageContent-cvYWnpel-CJmb2W-r.js} +15 -15
- package/dist/assets/{AccountReconDetailsDrawerPage-DLd_igXD-BDzMROTl.js → AccountReconDetailsDrawerPage-DOKqIknC-DSx-KpKz.js} +12 -12
- package/dist/assets/{AccountRow-D4iz2vCr-CUjY-as_.js → AccountRow-Ca-OS9TF-boQKAn9P.js} +20 -20
- package/dist/assets/{AccountsPromoCardStack-DIly1lFF-CoHITgz2.js → AccountsPromoCardStack-CwEVkbGD-GfsHQDZG.js} +19 -19
- package/dist/assets/{AddAddressForCardDrawer-C90j4Cwr-BuafF6k2.js → AddAddressForCardDrawer-B1zyrJMb-gDNlBeVv.js} +2 -2
- package/dist/assets/{AddToWalletPage-Bo2KesYz-CXFPlcd_.js → AddToWalletPage-s7c161JX-Bbl7vvY4.js} +37 -37
- package/dist/assets/{AgingReportsPage-DuoKsSkU-BM--piTX.js → AgingReportsPage-Be-2Z_KS-Cp8WnRhH.js} +4 -4
- package/dist/assets/{AllUserItems-C0U1Brjm-1EugRjNx.js → AllUserItems-B4Iah9-Z-B79SOI6_.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-dNwAZULr-CSLYB9s5.js → ApAgingDetailPage-D_KV9urv-CMDNQ6iG.js} +4 -4
- package/dist/assets/{AppBasePage-CfkaWEbJ-DSSQmZ3n.js → AppBasePage-GbE58C1g-BcYXZw8U.js} +4 -4
- package/dist/assets/{AppDrawerContent-DlHQEgOZ-Bu6aM3IO.js → AppDrawerContent-YTvkEPk_-6eMbUyIc.js} +57 -31
- package/dist/assets/{ApprovalRulesSettingsPage-Pl7HoLmk-0ndkNfLh.js → ApprovalRulesSettingsPage-Cct7Nzfb-BnkTkJjh.js} +6 -6
- package/dist/assets/{ArAgingChart-xI9TRvfS-BJS1mtHm.js → ArAgingChart-BeVadylU-XR25EAL6.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-BMGCnP5d-CqfkCp13.js → ArAgingDetailPage-CWUA4S2q-Ww5hXmPO.js} +2 -2
- package/dist/assets/{AttachmentView-C8AgUAnY-CDH1Mcyw.js → AttachmentView-DGsub__A-BBxOr8Ij.js} +5 -5
- package/dist/assets/{BankAccountSection-DB4PEf_X-DiW8OD4p.js → BankAccountSection-CtTkNBok-D2ekA6eB.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-BNO8Gl59-DLhau1xe.js → BankAccountWarningSection-dVdrPYm5-CnmYzGhr.js} +8 -8
- package/dist/assets/BankConnectionsSettingsPage-_e4jMGI2-DH8UTyN3.js +425 -0
- package/dist/assets/{BillDetailPage-Bv86SywV-6njFGhnW.js → BillDetailPage-Dz4_gdDb-ycU3JEwF.js} +7 -7
- package/dist/assets/{BillPayApprovalRuleDetailPage-CDXxmD-3-GLg1j3lZ.js → BillPayApprovalRuleDetailPage-DcNLlDh2-B0LeGU7-.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-Ci5Ok7Zj-BsfoZbfz.js → BillPayApprovalRulesPage-C_NDjp6G-D74xT3Vs.js} +8 -8
- package/dist/assets/{BillPayPromoPage-Co2j2krO-D4iqOCut.js → BillPayPromoPage-TkLMkxeC-CRgciQY3.js} +5 -5
- package/dist/assets/BillPaySetUpPage-DTGSGVO0-BjFYWMnM.js +42 -0
- package/dist/assets/{BillingSettingsPage-CAs7DZQz-De2Ozj6L.js → BillingSettingsPage-0RLFEj6x-1Rx-lW-z.js} +5 -5
- package/dist/assets/BillsBulkReviewDrawerPage-rkkXgsz4-DCe7oECG.js +1 -0
- package/dist/assets/{BoxItem-BqLhtWoJ-DTGdC4UO.js → BoxItem-CIBzy4ZV-BGT6YXil.js} +1 -1
- package/dist/assets/BusinessVerificationPage-T63_ft8O-BLj5IAMR.js +140 -0
- package/dist/assets/{CardNumberSubText-23sLjCVt-q9DlwjXk.js → CardNumberSubText-FOFiHz-M-BomqpZHj.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DY0n94jz-DZrOsGII.js → CashbackDetailPage-C1rbQ71n-BwGr1RFv.js} +19 -19
- package/dist/assets/ChargeCardDetailPage-OgsnesGD-BZdk7_5L.js +1447 -0
- package/dist/assets/ChargeCardListPage-CLHFYydY-CXTzCBUe.js +355 -0
- package/dist/assets/{ChargeCardListTable-B7uRDVzb-nPrrXfLF.js → ChargeCardListTable-ePSGyBtc-B6G4rFZ9.js} +17 -17
- package/dist/assets/ChargeCardPromoPage-Bi9cAv-f-5sPJiGwd.js +219 -0
- package/dist/assets/ChargeCardSetupPage-DvlKbA_C-AlRyM6Q7.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-JEslDm3r-Dz93LMxW.js → ChargeCardStatementsPage-CXhcA95f-C45_cho2.js} +3 -3
- package/dist/assets/{ChargeCardUtils-B3JEziD7-BDgvm4V8.js → ChargeCardUtils--ltNyvP2-TY5I7nE-.js} +1 -1
- package/dist/assets/{ChaseOverlay-KLet3F9X-CdWRAKXV.js → ChaseOverlay-CxEiwxZq-CYOJ8ZhP.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-JYHyo9Hw-CPcUjCHP.js → CheckDepositDrawerPage-CmZbDsc3-C6Gzx2Ad.js} +16 -16
- package/dist/assets/CollapsableReportTable-CyQ4sWuS-DlLXYbkM.js +2932 -0
- package/dist/assets/{CompanyOfficerDetailsSection-DWqEolPc-hNs6b-3g.js → CompanyOfficerDetailsSection-DPufRe0m-C6FmxOML.js} +27 -27
- package/dist/assets/{CompanyPassportCard-fyolEQTs-BM4j1zkv.js → CompanyPassportCard-JgslGZ14-CZLKyeTG.js} +4 -4
- package/dist/assets/{CompanyPassportPage-CrgsRRVr-_nJlM00G.js → CompanyPassportPage-B89YFcPT-CNi42FVb.js} +144 -144
- package/dist/assets/CompleteProfile-D0RvVu97-BvDLvwiX.js +36 -0
- package/dist/assets/{ConfettiBurst-CZuMHGP8-b0M1vB-_.js → ConfettiBurst-D3BYCsW2-CicOQOeb.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Ct4Kfowi-Dl-XZ9XF.js → CreateOrEditVendorPage-C6Ddagzy-CrkxkCuT.js} +13 -13
- package/dist/assets/{CreditCardPaymentDrawerPage-Cpu-7pGN-Cu9Xh0nq.js → CreditCardPaymentDrawerPage-C3mZhiZb-D2CoSxGr.js} +6 -6
- package/dist/assets/{CreditCardPaymentPlgSection-DoMaCnIZ-CNIK2scQ.js → CreditCardPaymentPlgSection-D9oAn9qk-hoy3ieFS.js} +8 -8
- package/dist/assets/{CurrencySelectField-CCOtXLC7-QnPV5zn9.js → CurrencySelectField-BBgpim44-D9iz41su.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-Cgzif1ji-DNCyl5ny.js → CustomerOnboardingActivationPage-iG0RHsLk-C1JrpXcK.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-Dh5KIySS-CJFQyXj_.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BOMwRZEO-D2W7lEqa.js → CustomerOnboardingDetailPageSkeleton-tTcayyvt-DVLGbpG0.js} +8 -8
- package/dist/assets/{CustomerOnboardingNoStepsPage-DDloVGvk-BQPG4WD2.js → CustomerOnboardingNoStepsPage-CIranNRI-DmxCUvPO.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-DHji4ZmF-D4jjwuH5.js → CustomerOnboardingPage-aq8E7XsP-D1AWzLDa.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-BA3GAX42-CxgqSMiN.js → CustomerOnboardingProductSuitePage-DRnOKNVC-BW6Dqkww.js} +3 -3
- package/dist/assets/{Dashboard-Cr5ugENA-CPUy4XRU.js → Dashboard-DyvhSbme-CqiNyEeS.js} +241 -238
- package/dist/assets/DashboardReportPage-Cy_f84RN-BBIf3h8d.js +370 -0
- package/dist/assets/{DepositAccTransactionItem-BXRfgUfE-D4R7G7HE.js → DepositAccTransactionItem-DK15lI5V-XJtPziNz.js} +4 -4
- package/dist/assets/{DepositAccTransactionListPage--7TRlqKj-BQ7qJsKp.js → DepositAccTransactionListPage-CRBhV8W1-B1ipg9Mm.js} +5 -5
- package/dist/assets/{DocumentSecurityBanner-B0Qt1FLC-B14Aeb97.js → DocumentSecurityBanner-C0bght0k-vffkcqMR.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-RoRpMC50-CSWDfu4W.js → DomesticWireDetailsPage-BX8glsOH-C_hYfUMN.js} +1 -1
- package/dist/assets/{DownloadOverlay-Cl_EXjiu-Bty6MX5F.js → DownloadOverlay-C5kTy4dA-91imq83n.js} +18 -18
- package/dist/assets/{DrawerPage-wXwAaYEB-CO0tKzRK.js → DrawerPage-Bwgpjwed-Dbn0o-MI.js} +6 -6
- package/dist/assets/{EditPeoplePage-xDL6VA_r-CcyNCb0B.js → EditPeoplePage-W-SFOxhC-DmK3cjsW.js} +10 -10
- package/dist/assets/{EditReimbursementDetailPage-BUpJPJNu-DrlJ3-JK.js → EditReimbursementDetailPage-D1Iduokd-BJNaLsWB.js} +78 -78
- package/dist/assets/{EntityDetailPage-BNXqSwVL-BmsjQ-yP.js → EntityDetailPage-BkRcX4SZ-D3jHuVtH.js} +1 -1
- package/dist/assets/{EntitySummarySection-MZ57i-bY-CkJQLOms.js → EntitySummarySection-BlJR-qOB-BGQRVSO6.js} +13 -13
- package/dist/assets/{ExpenseAutomationOverviewPage-Y3IHs4dG-C3j4Kf98.js → ExpenseAutomationOverviewPage-qT0g5t_P-9L0vQmNh.js} +20 -20
- package/dist/assets/{ExpenseAutomationPage-C0hvPLo7-6SC0Lnzr.js → ExpenseAutomationPage-CMKwWy2d-BxRd7q46.js} +3 -3
- package/dist/assets/{ExpressPayPage-Bncb54-Q-DvnTKzCq.js → ExpressPayPage-DXfqMxkG-esMjhJU_.js} +9 -9
- package/dist/assets/{FeaturePreviewPage-BnGBEF9H-qbgUmwmT.js → FeaturePreviewPage-CjZuOo_K-BURLQGI3.js} +2 -2
- package/dist/assets/{FollowStepsSection-laCvnETV-Bd5BOauY.js → FollowStepsSection-CO5MsYe6-DJwkRNbY.js} +6 -6
- package/dist/assets/{GlobalReviewListPage-CskEuHc5-Dmr2MpXl.js → GlobalReviewListPage-BIMdWu5P-DVJexznn.js} +11 -11
- package/dist/assets/{HelpButton-D5ZYyQMh-CbYd0zN7.js → HelpButton-BGHsn-1b-Cb4db_8O.js} +2 -2
- package/dist/assets/{InformationCardStack-BFJqdH9n-bSWTqBDS.js → InformationCardStack-B8rD8LSH-yY61wi0E.js} +5 -5
- package/dist/assets/{InsightsCardStack-CcoMWMiA-DoomT7wI.js → InsightsCardStack-AwXZ6ysD-CAyDZRBh.js} +7 -7
- package/dist/assets/{InsightsSection-D9PiJagu-BAVC-lZw.js → InsightsSection-BZS-MEy4-D-RgHCTj.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-CVmDobJ8-DUTif9-q.js → IntegrationsSettingsPage-D2tfKsbR-3hbSPzUb.js} +11 -11
- package/dist/assets/{InternationalWireSwiftDetailsPage-DqW88v9N-Ckhip8a0.js → InternationalWireSwiftDetailsPage-5NmSFI7x-CMxHmzOl.js} +12 -12
- package/dist/assets/{InternationalWireVerificationPage-X90z_30k-BipvB1gK.js → InternationalWireVerificationPage-C8WA6jI_-CkLLJOPd.js} +7 -7
- package/dist/assets/{InviteFormPage-BK-PRmeH-BScQiDBC.js → InviteFormPage-DC2ewDUN-BAnhpAwr.js} +23 -23
- package/dist/assets/{InvitePageListView-6-iCc4BK-BqA8heOE.js → InvitePageListView-DaShj4IM-BOaRvdOZ.js} +35 -35
- package/dist/assets/InvitePeoplePage-BbY4ZpGl-DYibhSDJ.js +12 -0
- package/dist/assets/{InvoiceUploadSection-D5aF4auL-BeD6SrG2.js → InvoiceUploadSection-DZJTULDZ-CCiLRTJv.js} +4 -4
- package/dist/assets/{IssueChargeCardPage-C_xt7hKZ-DIZL4bBR.js → IssueChargeCardPage-C1zB2vrB-BGIJGo3C.js} +25 -25
- package/dist/assets/{LabeledAddressValue-DpSK0MqC-Cj7E_lje.js → LabeledAddressValue-BDA7y5Fq-D9zYp9L5.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-_LY7c-ZC-Dc-9_BK1.js → LabeledAddressValueField-fj8E8gFz-pB5NcQXj.js} +4 -4
- package/dist/assets/{LabeledControlledCheckBoxField-FB40Z8J7-BP3P2Wmj.js → LabeledControlledCheckBoxField-aLuztBgv-CQQDZTL8.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-paSeI8_R-DbZOk4k7.js → LabeledCreatableSingleSelectField-zhHbiOVO-Du1erYiL.js} +7 -7
- package/dist/assets/{LabeledDocumentField-DiMgPKtR-CSKmqw6B.js → LabeledDocumentField-BTgmGAGq-ye6jxVF6.js} +6 -6
- package/dist/assets/{LabeledDropDownFormattedTextField-DsjpTL6X-j5IQGEbH.js → LabeledDropDownFormattedTextField-BdAKZt7q-DJYe0D29.js} +5 -5
- package/dist/assets/{LabeledText-CyXj8QWV-Bl6WT0AA.js → LabeledText-CMrFKM7D-U8mavECd.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CUT00Vix-QHUo9PdC.js → LabeledUserSingleSelectWithSubtitlesField-C8A0HrPt-Dt-qPiqg.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-D0cQlbhO-Dakmm_pD.js → LabeledZeniRolesDropDownField-BaiPRGJf-ThyMB5yW.js} +18 -18
- package/dist/assets/{LinkJETransactionPage-DaXjiQRp-CeG2b6Yz.js → LinkJETransactionPage-CWc1e0RL-uXbP7Kvy.js} +4 -4
- package/dist/assets/{LowBalancePopup-CdftTvLb-DHrY0Q9F.js → LowBalancePopup-COu8cuzS-D_SGW7IW.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-C25i1T4c-D1WMteCs.js → MagicLinkACHDetailsPage-h0Srx7SO-dPgjPO_-.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B0r3WStl-Be739DkS.js → MagicLinkDomesticWireDetailsPage-BIZqOfHW-tQ-JKEYq.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C-ev-6xJ-DjZv-CZx.js → MagicLinkInternationalWireDetailsPage-MSHTQMXn-BVkJt1cv.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-7JG3V4Qt-aQjB1Hdx.js → MagicLinkSuccessPage-BjWw4cqt-AmPRrK11.js} +3 -3
- package/dist/assets/{MagicLinkTitleSection-DEe0hhml-OAdcgqT_.js → MagicLinkTitleSection-Cll6JJDZ-CoLcdtN3.js} +4 -4
- package/dist/assets/{MailingDetailsSection-Qc65E0w3-DAFQ-tkz.js → MailingDetailsSection-DWSj0MOB-BPZUzJp9.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-Dh8meV6d-Bpx3vewx.js → MeetingCalenderPopup-CTuOhFQC-C5al8-0n.js} +3 -3
- package/dist/assets/{Menu-DyfXBl_1-ub7G94mj.js → Menu-DlBP5CCV-y1Vf24E1.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-CCFcVgyX-BtQSGmwE.js → MyBankConnectionsSettingsPage-BYqoUq4q-Da0QKGU9.js} +15 -15
- package/dist/assets/{MyPendingActivationChargeCardListPage-DS966wTB-DpfpopfQ.js → MyPendingActivationChargeCardListPage-BABBa4je-B1cN2Q5f.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BRRzMoQL-D5eo9Sqc.js → MyProfileSettingsPage-Dk_jK8-R-BnmR2m7z.js} +5 -5
- package/dist/assets/{NavBarWithPicker-BvWih0k0-Dufdt2Ka.js → NavBarWithPicker-BC2xbV2b-BcYENhJM.js} +3 -3
- package/dist/assets/{NavigationArrow-DYSL2aDL-WkPryo2E.js → NavigationArrow-BovrdeuJ-BGk3-i0K.js} +5 -5
- package/dist/assets/{NavigationDots-DyyCcIih-Dej6_J6K.js → NavigationDots-yYTGREt4-DTRiZdAJ.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DjEvzM4M-BHj9e2zb.js → NewGlobalMerchantPage-BKlPnipd-BUgMD2pk.js} +32 -32
- package/dist/assets/NoDataChart-Dhg-k7iX-B526qZJD.js +26 -0
- package/dist/assets/{NoDataTable-CXNsBBVP-DB2tU5FS.js → NoDataTable-jpCLeiDv-DPfhsNYe.js} +1 -1
- package/dist/assets/{NotFoundPage-CuuO2Mia-DK_un8VO.js → NotFoundPage-DrKqVOry-CJmDZfXH.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-C7ilxUAV-DNcmVmd9.js → NotificationSettingsPage-lojoBPQ8-BBTvd9G7.js} +5 -5
- package/dist/assets/NotificationsListConfig-jbIMYvrE-DMMvGaQE.js +1 -0
- package/dist/assets/{NotificationsPage-BjaKD99B-ChKA1ZUW.js → NotificationsPage-DJNUS9wc-8qosqB88.js} +22 -22
- package/dist/assets/{OpExByVendorPage-IuDiHnIW-D8WE3sE0.js → OpExByVendorPage-xMyUkO51-DLNCDIdB.js} +7 -7
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-D4ozS3gq.js → OverlayContainerPage-GWXnlbZH-DExKUjLx.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DLvgYpF8-DAoSI7if.js → PandLWithForecastPage-BHtPelIT-DOZ7XwiG.js} +9 -9
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CZ8ZY08D-DK5OgBuH.js → PaymentAccountSetupBillingAddressSection-B2ZBSiCT-BcCn0Sg1.js} +8 -8
- package/dist/assets/{PeoplePage-DyqY-rIV-BP1By1O6.js → PeoplePage-CzQXmGVU-3wd2TE5z.js} +31 -31
- package/dist/assets/{PortfolioAllocationFormPage-DTuKtkwr-9rUcLC7b.js → PortfolioAllocationFormPage-B1Xa0wKV-C9f5vgAD.js} +4 -4
- package/dist/assets/PortfolioDetails-BY-IK4yO-BaoJWjzR.js +218 -0
- package/dist/assets/{ProductsCarousel-CS4_yc80-PtugE9vt.js → ProductsCarousel-B7h_gH-R-XoeszqUs.js} +8 -8
- package/dist/assets/{PromoBaseCards-BZ2m6LfO-Cud5t_Fi.js → PromoBaseCards-CuJXuijt-Cwtg1Msq.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-2vJQuslh-BI_9YQGE.js → QBOConnectionDialog-DsNkkj_j-C8IchF8A.js} +4 -4
- package/dist/assets/{QBOSetupSection-Yv3Xw-yn-CG5PgwyR.js → QBOSetupSection-DkoopYHr-B4YL_CMi.js} +7 -7
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-tvJ2APRB-D4mUNHAO.js → ReimbursementApprovalRuleDetailPage-BAapaJEJ-DsiatGsD.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-_nXCDa2A-sj6jFbs4.js → ReimbursementApprovalRulesPage-BkiZVc7S-CGfJ2oyo.js} +19 -19
- package/dist/assets/ReimbursementDetailPage-S9j_KDZJ-B4Ft6bVK.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-BaEX5Ej4-EKPuTP60.js → ReimbursementPromoPage-BJJruudV-4Q4ZYCZV.js} +7 -7
- package/dist/assets/ReimbursementSetUpPage-CQdxq5lk-MGbpCaqc.js +140 -0
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-HQg1y1K--BJEZ2gJz.js → ReimbursementsBulkReviewDrawerPage-5LGKVY6X-ClMjr5Ld.js} +1 -1
- package/dist/assets/{ReloadCard-stfG9ekP-CAtXGPKA.js → ReloadCard-DBRY9FdH-DLbqkxuz.js} +6 -6
- package/dist/assets/ReportTableViewSelector-DOxnK0VV-Civ7jc9s.js +150 -0
- package/dist/assets/ReportsPage-r_MRjkkb-B5PSr911.js +121 -0
- package/dist/assets/{RevenueChart-DeDVVUge-DswYpzgj.js → RevenueChart-DhCkb0c6-CpmVmIv5.js} +25 -25
- package/dist/assets/{ReviewDetailsPage-DZqPpiln-BD-TTPjy.js → ReviewDetailsPage-DWtgiOYE-C2elGQRI.js} +12 -12
- package/dist/assets/{ReviewOverlay-DcBe94Sd-BykmGHu4.js → ReviewOverlay-CjWEPPvw-B5TX8ZjT.js} +13 -13
- package/dist/assets/RoleWithToolTip-4WCTaiOg-BCe2sjxQ.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cl8iBII0-DMtW2KW5.js → ScheduleDetailsFixedAssetsPage-CSxG7vXq-DCXxKyPi.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-D6ZxZ2uU-C3_NmU11.js → ScheduleDetailsPage-BqaZqCZJ-pwjFyU_u.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-eRImHbZn-D8TBysPL.js → ScheduleSequenceTable-H_kZuoon-C9WFZ9rS.js} +15 -15
- package/dist/assets/{ScreenRoutes-miCOug2f.js → ScreenRoutes-Ck2JOiJO.js} +35 -35
- package/dist/assets/{SetUpAccountSection-BBZNI1Xl-DXELzEMu.js → SetUpAccountSection-B9L-2aHz-CS276oDL.js} +41 -41
- package/dist/assets/{SetUpDefaultSection--9Qh-utY-c-mUbFLs.js → SetUpDefaultSection-DO9aLike-BNjhrnJW.js} +11 -11
- package/dist/assets/{SignIn-CI0Ik2va-B1YM8rEU.js → SignIn-DOSDfnki-ZWJtrmyd.js} +18 -18
- package/dist/assets/{SignInScreen-DVUMKIBQ.js → SignInScreen-B66laInZ.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-NWkSnIdD-DEongjR9.js → SpendManagementListViewPage-D6ysU0TE-fs0LZdDD.js} +14 -14
- package/dist/assets/{SpendManagementPerTabPage-CdWwn_b8-DnGEGhos.js → SpendManagementPerTabPage-CHvroeCa-SUCxwVKR.js} +38 -38
- package/dist/assets/{SpendManagementSection-DGhD95sz-VmruoRWg.js → SpendManagementSection-BaEgJPY4-DbFNSMHd.js} +11 -11
- package/dist/assets/SpendMgmtSetupAccountSection-CVaXDNNK-CaCI906W.js +206 -0
- package/dist/assets/{StatementItem-BlfBohft-U3FqyIo0.js → StatementItem-CYPCJ0XS-Bebbfivn.js} +5 -5
- package/dist/assets/StatementsPage-Cyqg2jd1-CS8CbIkz.js +58 -0
- package/dist/assets/{StatusSwitcher-C6703BAG-eDDkVLmz.js → StatusSwitcher-C5UGqQw8-L5IIUMyD.js} +4 -4
- package/dist/assets/{SubTabSwitcher-lf9S7Ubj-CmXqrtys.js → SubTabSwitcher-B3rFIZQy-fhfcG8ZL.js} +1 -1
- package/dist/assets/{SummaryCard-yghz4PLR-CvQEKxF5.js → SummaryCard-CNADDyPG-AHW1-mz3.js} +1 -1
- package/dist/assets/{TaskManagementPage-Cf523C5f-BE6A19pl.js → TaskManagementPage-CtUQXjo2-CpaAFAcY.js} +29 -29
- package/dist/assets/{TimeRangeSwitcher-BoPrOhKX-CRKXdJOA.js → TimeRangeSwitcher-BXXqX3m6-DBFCX_F3.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-DufweySH-jTXdFynw.js → TimeframeSwitcher-Bk9rjDg4-BqMFgpEZ.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-RH8QHQFd-tstiafTX.js +31 -0
- package/dist/assets/{TopExCard-DrOjlLiv-D1xK4ZLl.js → TopExCard-xJbS_mNo-B0v7lag7.js} +4 -4
- package/dist/assets/{TopExDetailPage-Ds4zlxKD-B50iPc07.js → TopExDetailPage-BDUuqAEK-Bo-vZtIP.js} +10 -10
- package/dist/assets/{TransactionDetailPage-Csl-Qjxp-DV-6_vXT.js → TransactionDetailPage-CtzLtYa8-J7xBsyNJ.js} +30 -30
- package/dist/assets/TransactionList-DS-_gBrf-B6pRX61G.js +147 -0
- package/dist/assets/{TransactionListBig-p6iVof9y-DpVKiek7.js → TransactionListBig-D9ebH5C0-D4IFnh5K.js} +10 -10
- package/dist/assets/TransactionListPage-CPjayOv5-C1z1kCC6.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-DzkUYyCr-DI4vuyOD.js → TransactionVendorDetailPage-DMYoBJ23-BkgKiHHa.js} +5 -5
- package/dist/assets/{TransferDrawerPage-B9MGSdS9-AoRYBOP9.js → TransferDrawerPage-BAghLjPn-DV8a9ZRS.js} +30 -30
- package/dist/assets/{TreasuryOverviewPage-BEzBuOWn-C_ij1-dD.js → TreasuryOverviewPage-B7EFea4a-zZd4C5QF.js} +46 -46
- package/dist/assets/{TreasuryPromoPage-C8X4X7iN-C2DHRZVT.js → TreasuryPromoPage-D7Y8yGpx-5DMBtH8J.js} +27 -27
- package/dist/assets/{TreasurySetupPage-Cb_GW75l-DHI8fRrl.js → TreasurySetupPage-B1SZd_a5-DTKitX5z.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-sOiD2QYm-BjV9xUSX.js → TreasuryStatementsPage-uakhQGBW-DM3cx3mz.js} +7 -7
- package/dist/assets/{TreasuryTaxLetterPage-DYzqfHym-C8i4pNnG.js → TreasuryTaxLetterPage-BHvr72P1-ZqD52w0m.js} +7 -7
- package/dist/assets/{TreasuryTransferOrReviewPage-CesaUuNp-BlrFvGYE.js → TreasuryTransferOrReviewPage-BBPDHav1-FgeqnaCs.js} +78 -78
- package/dist/assets/TrendChart-ChiKhGtw-BlRFpdWI.js +16 -0
- package/dist/assets/{TrendWithTransactions-CUlTYGIm-DvdNaPh-.js → TrendWithTransactions-DEMNHbbz-DBOPdxuf.js} +7 -7
- package/dist/assets/{UncategorizedAccountsMappingPage-D76VPNEd-D4SPdVXr.js → UncategorizedAccountsMappingPage-BDNznj4Y-DBTlThuY.js} +17 -17
- package/dist/assets/{UnitIntegrationPage-BsZCe-lq-DrfCSWxr.js → UnitIntegrationPage-Bgu5xfcn-CtKgXROf.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-B3tUNhKj-DN4WILBU.js → UploadAdditionalDocumentOverlay-DW6WCx4i-CGbCT0bE.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Bk-WKgMh-DrsH2xrD.js → Vendor2FAPopup-D34glhep-Bcy6uzR5.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-u8a3XF33-CrKMxXqd.js → VendorACHDetailsPage-CSqpbr2r-BGpdO99p.js} +1 -1
- package/dist/assets/{VendorDetailPage-B-RdB79n-CDKqGTzV.js → VendorDetailPage-CJw1v9tJ-BWewlDVL.js} +18 -18
- package/dist/assets/{VendorDomesticWireDetailsPage-Bhb1Dmge-BeNq1bzX.js → VendorDomesticWireDetailsPage-BY8F5AWO-DX4fuW2L.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DHRivhBg-ERVyS3P2.js → VendorFiling1099EditablePage-COYZCnYS-BBPw3drw.js} +15 -15
- package/dist/assets/VendorFirstReviewPage-BqnXdq6Q-CL1x86cX.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-Cjx1hvUL-CEdr_PZS.js → VendorInternationalWireDetailsPage-K9botaZv-yQ73nWrj.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BszRCCDh-B4pRgjkw.js → VendorInternationalWireSwiftDetailsPage-DQ_akVN_-s-XTKsWI.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D6VSJUo1-Glx5yRhz.js → VendorsAccountsSection-D5d42xeO-CJcEHkCK.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-DReVGPEj-CIQlt88e.js → WarningsDrawerPage-DiA5MRFe-Bc00wID9.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-CFTB_WYX-CRRVNfVo.js → ZeniAccountDetailPage-DSCbx6BB-DGWgYb7a.js} +23 -23
- package/dist/assets/{ZeniAccountListViewPage-BmYgbIuC-DNXzp5P9.js → ZeniAccountListViewPage-7zssUaoL-DvaV5FVV.js} +21 -21
- package/dist/assets/{ZeniAccountNavBarPieces-gzy5T7nu-ZPpRmm1I.js → ZeniAccountNavBarPieces-By4S70vz-DdkCg5aL.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-AfRVTc8V-r71cWD_l.js → ZeniAccountPromoPage-Bvr4t7zq-DL50qAxB.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-YXJmpz_d-3FWCeT2b.js → ZeniAccountSetupPage-DtDN9JWk-D8j-79L6.js} +4 -4
- package/dist/assets/{ZeniCopyright-CqpcrgAZ-CH2r91yw.js → ZeniCopyright-CxC3wvp1-gbMTqRLu.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DGkzRyMW-M3i8bnVC.js → ZeniTransferAmountSlider-CcbG1sHp-Dm5uqXid.js} +1 -1
- package/dist/assets/analytics-CBL_L82S.js +7 -0
- package/dist/assets/{analyticsHelper-sgo3pabT-BeTMdSYn.js → analyticsHelper-3y6VD3VH-4b12iNu9.js} +1 -1
- package/dist/assets/{analyticsHelper-BKEOwNtm.js → analyticsHelper-D4WZaKOr.js} +1 -1
- package/dist/assets/{chartTypes-Dj-_K0Gi-EQP1Ce02.js → chartTypes-mKuCmPTG-BM7hqR_d.js} +1 -1
- package/dist/assets/{commonDimensions-CKgBEMhT-JcVoNYFG.js → commonDimensions-BHBDbLXD-D2tFRShv.js} +1 -1
- package/dist/assets/{detailCommon-vtB2ffbe-CVFboB64.js → detailCommon-1QwSQL9C-CMTdKXNR.js} +10 -10
- package/dist/assets/{downloadPdf-CiC0AXNH-CeD8Q-Pl.js → downloadPdf-DjM3Z_88-B-Yuc7DP.js} +1 -1
- package/dist/assets/{index-D3N9MvRr.js → index-CWmqNC4C.js} +3532 -3549
- package/dist/assets/mapLoadingInProgressToTreeNode-CKZd1bh4-H6b75J9k.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CWaIGa37-l4B2WAau.js → mapSectionWithAcOnlyToTreeNode-CO6ix8Ks-D7LvCMfp.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CzcEW1Rc-DpU4PyGc.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CEDhLCxY-D-EnNeIG.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-y3lzh3vX-QR9PSTFA.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Bf3d9TrW-Cgl9vOT0.js +1 -0
- package/dist/assets/{play-icon-CF-Mkuir-D0VaB-h5.js → play-icon-DfMYCOJa-CBLpaBHA.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-D1BwrImS-CU7gHn7p.js → toCOABalancesWithID-CEvuOTjK-TT4jMA7r.js} +1 -1
- package/dist/assets/{toChartData-DVTo0PPD-Xv5HtUSQ.js → toChartData-D2kGY49E-CsLrqkFw.js} +1 -1
- package/dist/assets/{treasuryColorHelper-QzSX5YTe-DRvV2CE6.js → treasuryColorHelper-k2phUKLw-Bv7jwBAj.js} +1 -1
- package/dist/assets/{uploadAttachment-BxwOR3I5-D86nKqy9.js → uploadAttachment-kyOdZMbL-CJNFoqRM.js} +7 -7
- package/dist/assets/{uploadReceipts-Buvz7DfG-CwTcUaXM.js → uploadReceipts-D80JLNY4-Cic2YR7g.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/BankConnectionsSettingsPage-BOreBo5b-D37lKtbY.js +0 -379
- package/dist/assets/BillPaySetUpPage-DjpCUZaT-Ddup2DO2.js +0 -42
- package/dist/assets/BillsBulkReviewDrawerPage-DjunAUW0-B6U5Is6f.js +0 -1
- package/dist/assets/BusinessVerificationPage-CZGOzc9Z-D6-Ww27c.js +0 -140
- package/dist/assets/ChargeCardDetailPage-NWTPnGtM-DFqwW_o-.js +0 -1447
- package/dist/assets/ChargeCardListPage-D42dfnET-BwGRx6DO.js +0 -355
- package/dist/assets/ChargeCardPromoPage-CXiXee-8-rWS9j7At.js +0 -190
- package/dist/assets/ChargeCardSetupPage-Ccc8PoCm-DOz93R9J.js +0 -36
- package/dist/assets/CollapsableReportTable-DshWn4Fc-CB5euwH7.js +0 -2860
- package/dist/assets/CompleteProfile-D_zq0Bxi-4-J8J591.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-ByWeMmBf-4mOzqlwZ.js +0 -1
- package/dist/assets/DashboardReportPage-paPVk_v2-Dvs7jyc3.js +0 -349
- package/dist/assets/InvitePeoplePage-C9AwNqIx-ByE99RmM.js +0 -12
- package/dist/assets/NoDataChart-DE6NV823-DgTs2vbZ.js +0 -26
- package/dist/assets/NotificationsListConfig-TBQMobJ5-DLtoRFYq.js +0 -1
- package/dist/assets/PortfolioDetails-DJFeMG4U-DswuDgPe.js +0 -218
- package/dist/assets/ReimbursementDetailPage-CtEAsq7u-CdLZ67Bg.js +0 -314
- package/dist/assets/ReimbursementSetUpPage-DXOqEJL4-DeydDpr0.js +0 -140
- package/dist/assets/ReportTableViewSelector-_RTCd2td-J4MgIxi7.js +0 -133
- package/dist/assets/ReportsPage-BIzz5Dt_-BPRCOVMf.js +0 -120
- package/dist/assets/RoleWithToolTip-DZO2tooH-6nbnfSfh.js +0 -22
- package/dist/assets/SpendMgmtSetupAccountSection-DG4ozkeT-CetbNb1Y.js +0 -207
- package/dist/assets/StatementsPage-CUpjL5u7-BWH36hJA.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-BKwe3K9l-CC0-bOos.js +0 -31
- package/dist/assets/TransactionList-2HeLZVn9-D_XSB9a8.js +0 -147
- package/dist/assets/TransactionListPage-tnL66tOu-DKTJncjo.js +0 -35
- package/dist/assets/TrendChart-kwGU0d90-D9vTA2Kh.js +0 -16
- package/dist/assets/VendorFirstReviewPage-Cn2GBsyl-cg4le0C7.js +0 -730
- package/dist/assets/analytics-DThoELaW.js +0 -7
- package/dist/assets/mapLoadingInProgressToTreeNode-0MIZwF_y-BJQcaPEZ.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-1Bdqp9WS-Bf4vh4uO.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-MPZhFWqo-DqH1QGXc.js +0 -1
|
@@ -1,1447 +0,0 @@
|
|
|
1
|
-
import{u as Ye,X as Ce,t as st,d1 as dt,fc as Ka,l as Ze,gW as qr,a7 as _e,M as he,fd as Xa,j as t,gk as Gr,aW as Kr,p as c,fl as Ja,_ as xe,Y,o as a,bs as Pt,g as p,ig as Qa,v as Z,bM as Xr,ih as Jr,cH as Qr,gb as ei,a as ti,ge as ai,cn as ri,C as D,m as ii,F as oi,fD as ni,K as ft,aZ as si,be as er,a5 as Mt,ii as di,ij as tr,b4 as ar,ao as Vt,eQ as ci,a6 as rr,ae as li,ik as hi,il as pi,al as Ot,w as me,eu as ui,ib as mi,ax as ct,fe as ir,d as nt,ai as gi,dh as Ci,bR as fi,bO as wi,cu as xi,gT as yi,q as ye,eW as or,im as bi,ff as je,dp as wt,cY as Si,Q as ha,h as nr,an as $i,io as vi,eO as ki,bX as sr,ip as Li,s as mt,bB as pa,aR as ji,d9 as Di,ez as Ii,f as at,f9 as Ai,Z as Ti,k as Ri,a2 as Ei,a$ as Fi,iq as yt,cV as zi,bl as Pi,ir as dr,is as cr,fZ as lr,it as xt,hE as hr,ic as Mi,b_ as Vi,e9 as pr,id as Oi,ie as Hi,cZ as Ni,cp as Bi,eg as Wi,bD as Ui,bE as _i}from"./index-D3N9MvRr.js";import{b as o,n as r,j as pe,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-DyyCcIih-Dej6_J6K.js";import{L as qi,H as et,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-B3JEziD7-BDgvm4V8.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-23sLjCVt-q9DlwjXk.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-Buvz7DfG-CwTcUaXM.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=he.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:I,setWalletType:v,setIsAddToWalletDrawerOpen:O,isDebitCard:T})=>{const z=dt().analytics,{isIPadScreen:G}=hi(),{isAndroidScreen:J}=pi(),U=st(),A=Ze.hasChargeCardAdminLevelAccess(U.loggedInUserRoleMap);return t.jsx(io,{style:g,children:G===!0?t.jsx(zt,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):J===!0?t.jsx(Ft,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{v("apple"),I.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Ft,{onClick:()=>{v("google"),I.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Ft=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(oo,{}),label:xr.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":Y("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(no,{}),label:xr.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":Y("add-to-apple-wallet-button")})},io=r.div`
|
|
2
|
-
margin-top: ${a.sp4};
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
gap: ${a.sp5};
|
|
6
|
-
`,oo=r(to)`
|
|
7
|
-
height: ${a.sp4};
|
|
8
|
-
width: ${a.sp5};
|
|
9
|
-
`,no=r(eo)`
|
|
10
|
-
height: ${a.sp4};
|
|
11
|
-
width: ${a.sp5};
|
|
12
|
-
`,so=[p.brandColorSapphire,p.brandColorJade,p.graphColor01,p.graphColor08,p.graphColor12,p.graphColor15,p.graphColor16Dark,p.graphColor23Dark,p.graphColor32Dark,p.graphColor34Dark,p.brandColorOpalDark,p.brandColorRuby],co=he.getLocalizedStrings().spendManagement.chargeCard,lo=({isColorPaletteVisible:e,hasBorderShadow:i,leftTransitionValue:d,colorInState:h,styles:m,colorPaletteTitleStyles:u,ColorListStyles:s,coloredCircleStyles:x,closeStyles:l,tickStyles:f,toggleColorPaletteVisibility:w,handleColorClick:n})=>t.jsxs(ho,{showColorPalette:e,style:m,hasBorderShadow:i,leftTransitionValue:d,children:[t.jsxs(uo,{style:u,children:[t.jsx(mo,{children:co.cardDetails.cardTheme}),t.jsx(go,{style:l,"data-testid":Y("close-color-palette"),onClick:C=>{C.stopPropagation(),w(!e)}})]}),t.jsx(po,{style:s,children:so.map((C,b)=>t.jsx(fo,{style:x,coreColor:C,onMouseEnter:()=>n(new _e(C),!1),onMouseLeave:()=>h!=null?n(new _e(h),!1):null,"data-testid":Y("color-palette-item-cards",b.toString()),onClick:()=>n(new _e(C),!0),children:new _e(C).toString()===h?.toString()?t.jsx(Co,{style:f}):null},C))})]}),ho=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: ${p.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
|
-
`,po=r.div`
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-wrap: wrap;
|
|
28
|
-
padding: ${a.sp0} 38px ${a.sp0} 31px;
|
|
29
|
-
`,uo=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
|
-
`,mo=r(me)`
|
|
35
|
-
color: ${p.brandColorOnyx};
|
|
36
|
-
`,go=r(Ei)`
|
|
37
|
-
width: ${a.sp3};
|
|
38
|
-
height: ${a.sp3};
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
color: ${e=>e.theme.colors.hero};
|
|
41
|
-
`,Co=r(Fi)`
|
|
42
|
-
width: ${a.sp3};
|
|
43
|
-
color: ${p.neutralGrey5Light};
|
|
44
|
-
`,fo=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:wo,common:We,dateFormat:xo}=he.getLocalizedStrings(),Ne=wo.chargeCard,$e={secretCardNumberWrapperWidth:280,secretCVVWrapperHeight:30,secretCVVWrapperWidth:c[7],cardNumberCopiedSectionTop:54,cvvCopiedSectionTop:34,maskedCardNumberMarginTop:new D(-2,-2,-2,c[0]),expiryCopySectionTop:34,cardNumberCopyBtnTop:21},ma={CardInfoTitleSize:new D(Z.extraSmallRegular.fontSizeValue,Z.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new D(18,18,18,21)},Dt=e=>t.jsxs(Mo,{style:{...e},children:[t.jsx(Po,{}),t.jsx(Vo,{style:{background:p.blackColor,color:p.primaryDark,padding:`2px ${a.sp2}`,borderRadius:a.sp1},children:We.copyToClipBoard.copied})]}),ga=({isSandboxEnv:e,sourceId:i,showSecretInfo:d,secretRevealed:h,vgsVaultId:m,controllerEmails:u,isChargeCardFeatureEnabled:s,productInformation:x,cashbackInformation:l,creditAccountInformation:f,debitAccountInformation:w,chargeCardCashbackDetailState:n,creditAccount:C,creditAccountRepayment:b,isDebitCard:L,depositAccountLimitFetchState:S,isCardDetailErrored:$,isCardColorUpdating:y,cardDetailsFetchState:g,isCardColorUndefined:I,cardInfoTitleStyles:v,styles:O,cvvSecStyles:T,chargeCard:z,token:G,setSecretRevealed:J,setIsCardDetailErrored:U,setCardDetailsFetchState:A,onFireOnClickAnalytics:H})=>{const Q=dt().analytics,[,re]=Ka(),E=Ce(),[K,_]=o.useState(!1),[oe,ee]=o.useState(!1),[P,ae]=o.useState(!1),N=st(),ie=Ze.hasChargeCardAdminLevelAccess(N.loggedInUserRoleMap),[X]=Qa("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),j=i==="addToWalletDrawer"?.75:E==="small"?.85:1,q=e?"sandbox":"live";o.useEffect(()=>{if(X&&z!=null&&d&&G!=null&&!h){const F=window.VGSShow.create(m).setEnvironment(q),k=z.cardProviderID,V=F.request({name:"data-text",method:"GET",path:"/cards/"+k+"/secure-data/cvv2",headers:{Authorization:"Bearer "+G},htmlWrapper:"text",jsonPathSelector:"data.attributes.cvv2"});A({cvv:!0,number:!0}),V.render(`#SecretCvv-${i}`,{"@font-face":{"font-family":mt["PT Mono"],"font-style":"normal","font-weight":pa.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":mt["PT Mono"],opacity:.7,color:p.brandColorOnyx,fontSize:`${j*Z.h6Regular.fontSizeValue}px`,fontWeight:Z.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${j*Z.h6Regular.lineHeightValue}px`}),V.on("requestSuccess",()=>{J(!0),U(!1),A({...g,cvv:!1})}),V.on("requestFail",()=>{U(!0),A({...g,cvv:!1});const ne=document.getElementById(`SecretCvv-${i}`);for(;ne?.hasChildNodes()===!0;)ne.removeChild(ne.children[0])}),F.copyFrom(V,{text:We.strings.empty},ne=>{ne==="success"?(ee(!0),H("CVV copied"),n.fetchState==="Completed"&&(!s||C.fetchState==="Completed"&&b.fetchState==="Completed")&&(!(L&&ie)||S==="Completed")&&Q.trackCardsCopyIconClick(u,x,"Cards Detail","Copy","copied","CVV","",l,f,w)):ee(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:`${j*$e.secretCVVWrapperHeight}px`,width:`${j*$e.secretCVVWrapperWidth}px`});const B=F.request({name:"data-text",method:"GET",path:"/cards/"+k+"/secure-data/pan",headers:{Authorization:"Bearer "+G},htmlWrapper:"text",jsonPathSelector:"data.attributes.pan",serializers:[F.SERIALIZERS.replace("(\\d{4})(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3 $4")]});B.render(`#SecretCardNumber-${i}`,{"@font-face":{"font-family":mt["PT Mono"],"font-style":"normal","font-weight":pa.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":mt["PT Mono"],opacity:.7,color:p.brandColorOnyx,fontSize:`${j*Z.h6Regular.fontSizeValue}px`,fontWeight:Z.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${j*Z.h6Regular.lineHeightValue}px`}),B.on("requestSuccess",()=>{J(!0),U(!1),A({...g,number:!1})}),B.on("requestFail",()=>{U(!0),A({...g,number:!1});const ne=document.getElementById(`SecretCardNumber-${i}`);for(;ne?.hasChildNodes()===!0;)ne.removeChild(ne.children[0])}),F.copyFrom(B,{text:We.strings.empty,serializers:[F.SERIALIZERS.replace(We.strings.space,We.strings.empty)]},ne=>{ne==="success"?(_(!0),H("card number copied"),n.fetchState==="Completed"&&(!s||C.fetchState==="Completed"&&b.fetchState==="Completed")&&(!(L&&ie)||S==="Completed")&&Q.trackCardsCopyIconClick(u,x,"Cards Detail","Copy","copied","Card Number","",l,f,w)):_(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:`${j*Z.h6Regular.lineHeightValue}px`,width:`${j*$e.secretCardNumberWrapperWidth}px`})}},[X,z,d,G,h]),o.useEffect(()=>{if(d===!1){const F=document.getElementById(`SecretCvv-${i}`);for(;F?.hasChildNodes()===!0;)F.removeChild(F.children[0]);const k=document.getElementById(`CvvCopyBtn-${i}`);for(;k?.hasChildNodes()===!0;)k.removeChild(k.children[0]);const V=document.getElementById(`SecretCardNumber-${i}`);for(;V?.hasChildNodes()===!0;)V.removeChild(V.children[0]);const B=document.getElementById(`CardNumberCopyBtn-${i}`);for(;B?.hasChildNodes()===!0;)B.removeChild(B.children[0])}},[i,d]),o.useEffect(()=>{K===!0&&setTimeout(()=>{_(!1)},800),oe===!0&&setTimeout(()=>{ee(!1)},800),P===!0&&setTimeout(()=>{ae(!1)},800)},[K,oe,P]);const R=z!=null?Ze.dateFromYearMonthDate(z.validThru.year,z.validThru.month-1).format(xo.visual.MMSlashYYFormat):We.strings.empty,se=F=>{d===!0&&(g.cvv!==!0||g.number!==!0)&&(H("validity copied"),F!=null&&n.fetchState==="Completed"&&(!s||C.fetchState==="Completed"&&b.fetchState==="Completed")&&(!(L&&ie)||S==="Completed")&&Q.trackCardsCopyIconClick(u,x,"Cards Detail","Copy","copied","Valid Thru",R,l,f,w),re(R),ae(!0))};return t.jsxs(jo,{style:O,children:[t.jsxs(Do,{children:[t.jsx(It,{style:v,windowSize:E,children:Ne.cardDetails.cardNumber}),t.jsx(Io,{sourceId:i,scaleFactor:j,showSecretInfo:d&&(g.number===!1||g.cvv===!1),isCardDetailFetching:g.number===!0||g.cvv===!0||I||y,windowSize:E,children:`${Ne.cardDetails.cardNumberHideout}
|
|
54
|
-
${z?.accountLast4??We.strings.empty}`}),t.jsxs(yo,{secretRevealed:h,scaleFactor:j,showSecretInfo:d&&g.cvv===!1&&g.number===!1,sourceId:i,isCardDetailErrored:$,children:[t.jsx(bo,{sourceId:i,scaleFactor:j,secretRevealed:h,id:`SecretCardNumber-${i}`}),t.jsx(Lo,{secretRevealed:h,scaleFactor:j,id:`CardNumberCopyBtn-${i}`,sourceId:i}),K===!0?t.jsx(Dt,{top:j*$e.cardNumberCopiedSectionTop}):null]})]}),t.jsxs(Ao,{children:[t.jsxs(Eo,{children:[t.jsx(It,{style:v,windowSize:E,children:Ne.cardDetails.expiry}),t.jsxs(vo,{secretRevealed:d&&(g.cvv===!1||g.number===!1),children:[h&&d&&g.cvv===!1&&g.number===!1?t.jsx(zo,{sourceId:i,scaleFactor:j,windowSize:E,secretRevealed:h&&d,"data-testid":Y("expiry-date-copy"),onClick:F=>{F.stopPropagation(),se(z)},children:h&&d&&g.cvv===!1&&g.number===!1?R:Ne.cardDetails.expiryHideOut}):t.jsx(Fo,{sourceId:i,windowSize:E,scaleFactor:j,isCardDetailFetching:g.cvv===!0||g.number===!0||I||y,children:Ne.cardDetails.expiryHideOut}),P===!0?t.jsx(Dt,{top:j*$e.expiryCopySectionTop,width:"auto"}):null]})]}),t.jsxs(To,{style:T,children:[t.jsx(It,{style:v,windowSize:E,children:Ne.cardDetails.cvv}),t.jsx(Ro,{sourceId:i,scaleFactor:j,showSecretInfo:d&&g.cvv===!1&&g.number===!1,isCardDetailFetching:g.number===!0||g.cvv===!0||I||y,windowSize:E,children:Ne.cardDetails.cvvHideOut}),t.jsxs(So,{secretRevealed:h,sourceId:i,showSecretInfo:d&&g.cvv===!1&&g.number===!1,isCardDetailErrored:$,children:[t.jsx($o,{scaleFactor:j,secretRevealed:h,sourceId:i,id:`SecretCvv-${i}`}),t.jsx(ko,{windowSize:E,scaleFactor:j,secretRevealed:h,id:`CvvCopyBtn-${i}`,sourceId:i}),oe===!0?t.jsx(Dt,{top:j*$e.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},yo=r.div`
|
|
55
|
-
display: ${e=>e.showSecretInfo?"block":"none"};
|
|
56
|
-
height: ${e=>e.secretRevealed?"unset":a.sp0};
|
|
57
|
-
width: ${e=>e.secretRevealed?e.scaleFactor*$e.secretCardNumberWrapperWidth:c[0]}px;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
&:hover {
|
|
60
|
-
background: ${e=>e.isCardDetailErrored?"transparent":p.neutralGrey5Light};
|
|
61
|
-
border-radius: ${a.sp1};
|
|
62
|
-
}
|
|
63
|
-
`,bo=r.div`
|
|
64
|
-
min-height: ${e=>e.secretRevealed?e.scaleFactor*Z.h6Regular.lineHeightValue:c[0]}px;
|
|
65
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*Z.h6Regular.lineHeightValue:c[0]}px;
|
|
66
|
-
width: ${e=>e.secretRevealed?"100%":a.sp0};
|
|
67
|
-
overflow: hidden;
|
|
68
|
-
position: relative;
|
|
69
|
-
`,So=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?$e.secretCVVWrapperWidth:c[0]}px;
|
|
74
|
-
position: relative;
|
|
75
|
-
&:hover {
|
|
76
|
-
background: ${e=>e.isCardDetailErrored?"transparent":p.neutralGrey5Light};
|
|
77
|
-
border-radius: ${a.sp1};
|
|
78
|
-
}
|
|
79
|
-
`,$o=r.div`
|
|
80
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*Z.h6Regular.lineHeightValue:c[0]}px;
|
|
81
|
-
width: ${e=>e.secretRevealed?$e.secretCVVWrapperWidth*e.scaleFactor:a.sp0};
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
`,vo=r.div`
|
|
84
|
-
position: relative;
|
|
85
|
-
padding: ${a.sp0} ${a.sp1};
|
|
86
|
-
&:hover {
|
|
87
|
-
background: ${e=>e.secretRevealed?p.neutralGrey5Light:"transparent"};
|
|
88
|
-
border-radius: ${a.sp1};
|
|
89
|
-
}
|
|
90
|
-
`,ko=r.div`
|
|
91
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*Z.h6Regular.lineHeightValue:c[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
|
-
`,Lo=r.div`
|
|
99
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*Z.h6Regular.lineHeightValue:c[0]}px;
|
|
100
|
-
width: ${e=>e.secretRevealed?"inherit":a.sp0};
|
|
101
|
-
position: absolute;
|
|
102
|
-
top: ${e=>e.scaleFactor*$e.cardNumberCopyBtnTop}px;
|
|
103
|
-
overflow: hidden;
|
|
104
|
-
background: transparent;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
`,jo=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
|
-
`,Do=r.div`
|
|
113
|
-
position: relative;
|
|
114
|
-
width: max-content;
|
|
115
|
-
`,It=r(me)`
|
|
116
|
-
padding-left: ${a.sp1};
|
|
117
|
-
color: ${p.brandColorPearl};
|
|
118
|
-
position: relative;
|
|
119
|
-
font-size: ${e=>ma.CardInfoTitleSize.valuePx(e.windowSize)};
|
|
120
|
-
line-height: ${e=>ma.CardInfoTitleLineHeight.valuePx(e.windowSize)};
|
|
121
|
-
`,Io=r(yt)`
|
|
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=>$e.maskedCardNumberMarginTop.valuePx(e.windowSize)};
|
|
127
|
-
margin-left: -2px;
|
|
128
|
-
font-size: ${e=>e.scaleFactor*Z.chargeCardNumberText.fontSizeValue}px;
|
|
129
|
-
line-height: ${e=>e.scaleFactor*Z.chargeCardNumberText.lineHeightValue}px;
|
|
130
|
-
-webkit-font-smoothing: initial;
|
|
131
|
-
-moz-osx-font-smoothing: initial;
|
|
132
|
-
word-wrap: "break-word";
|
|
133
|
-
`,Ao=r.div`
|
|
134
|
-
position: relative;
|
|
135
|
-
display: flex;
|
|
136
|
-
flex-direction: row;
|
|
137
|
-
justify-content: flex-start;
|
|
138
|
-
gap: ${a.sp4};
|
|
139
|
-
`,To=r.div`
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-direction: column;
|
|
142
|
-
margin-right: ${a.sp5};
|
|
143
|
-
`,Ro=r(yt)`
|
|
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*Z.chargeCardNumberText.fontSizeValue}px;
|
|
149
|
-
line-height: ${e=>e.scaleFactor*Z.chargeCardNumberText.lineHeightValue}px;
|
|
150
|
-
-webkit-font-smoothing: initial;
|
|
151
|
-
-moz-osx-font-smoothing: initial;
|
|
152
|
-
word-wrap: "break-word";
|
|
153
|
-
`,Eo=r.div`
|
|
154
|
-
display: flex;
|
|
155
|
-
flex-direction: column;
|
|
156
|
-
`,Fo=r(yt)`
|
|
157
|
-
color: ${e=>e.isCardDetailFetching?e.theme.colors.grey1:e.theme.colors.brandColorOnyx};
|
|
158
|
-
opacity: 0.7;
|
|
159
|
-
font-size: ${e=>e.scaleFactor*Z.chargeCardNumberText.fontSizeValue}px;
|
|
160
|
-
line-height: ${e=>e.scaleFactor*Z.chargeCardNumberText.lineHeightValue}px;
|
|
161
|
-
-webkit-font-smoothing: initial;
|
|
162
|
-
-moz-osx-font-smoothing: initial;
|
|
163
|
-
word-wrap: "break-word";
|
|
164
|
-
`,zo=r(yt)`
|
|
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*Z.chargeCardNumberText.fontSizeValue}px;
|
|
171
|
-
line-height: ${e=>e.scaleFactor*Z.chargeCardNumberText.lineHeightValue}px;
|
|
172
|
-
-webkit-font-smoothing: initial;
|
|
173
|
-
-moz-osx-font-smoothing: initial;
|
|
174
|
-
word-wrap: "break-word";
|
|
175
|
-
`,Po=r(ct)`
|
|
176
|
-
height: ${a.sp3};
|
|
177
|
-
width: ${a.sp3};
|
|
178
|
-
color: ${p.success};
|
|
179
|
-
`,Mo=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
|
-
`,Vo=r(me)`
|
|
188
|
-
color: ${p.primaryDark};
|
|
189
|
-
padding: 2px ${a.sp2};
|
|
190
|
-
background-color: ${p.blackColor};
|
|
191
|
-
`,{common:Oo,spendManagement:{chargeCard:{cardDetails:Se}}}=he.getLocalizedStrings(),ue={chargeCardWidth:384,chargeCardHeight:240,cardLoadingShineWidth:200,cardLoadingShineHeight:240,zeniLogoWidth:c[6],zeniLogoHeight:c[6],visaLogoWidth:c[6],visaLogoHeight:13,cardTintIconWidth:277,cardTintIconHeight:242,colorPaletteLeftTransitionValue:-350,rightSectionWidth:384,rightSectionHeight:240,cardContainerContentGap:new D(c[4],c[4],c[4],c[3])},yr=({chargeCardDetailView:e,productInformation:i,cashbackInformation:d,creditAccountInformation:h,debitAccountInformation:m,secretRevealed:u,isOwnCard:s,vgsVaultId:x,showSecretInfo:l,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardCashbackDetailState:L,creditAccount:S,creditAccountRepayment:$,isShowingInDrawer:y,isSandboxEnv:g,isCardDetailErrored:I,signedInUserToken:v,selectedColor:O,cardDetailsFetchState:T,setCardDetailsFetchState:z,setIsCardDetailErrored:G,setShowSecretInfo:J,setSecretRevealed:U,setShowPhoneNumberForOtp:A,isCardDetailFetching:H,handleColorCodeClick:Q,onFireOnClickAnalytics:re})=>{const[E,K]=o.useState(!1),_=e.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:oe}=Xa(),ee=Ce(),P=y?.75:ee==="small"?.85:1,ae=oe?Se.tapCardCopyText:Se.scanNowAndAddToWallet,N=oe?Se.tapCardCopyText:t.jsxs(No,{children:[t.jsx(nn,{}),Se.clickTheCardToFetchDetailsText]}),ie=ee==="small"?Se.tapCardCopyText:Se.clickTheCardToCopyDetailsText,X=ee==="small"?Se.tapCardCopyText:Se.clickTheCardToFetchDetailsText,j=y?ae:ie,q=y?N:X,R=H(T)||e.updateFetchState.fetchState==="In-Progress",se=(T.cvv!==!0||T.number!==!0)&&s,F=!!e.chargeCard?.type.code.includes("debit");return t.jsxs(Yo,{windowSize:ee,scaleFactor:P,children:[t.jsxs(qo,{children:[u&&y?t.jsxs(t.Fragment,{children:[t.jsx(tn,{}),t.jsx(an,{}),t.jsx(rn,{}),t.jsx(on,{})]}):null,_.includes("virtual")?t.jsxs(Ko,{isShowingInDrawer:y,isOwnCard:s,scaleFactor:P,bgColor:O?.toString(),showColorPalette:E,isDebitCard:F,"data-testid":Y("virtual-charge-card-detail"),onClick:()=>{E===!1&&s===!0&&H(T)===!1&&ua({signedInUserToken:v,showSecretInfo:l,setShowPhoneNumberPopup:A,onFireOnClickAnalytics:re,setShowSecretInfo:J})},enableClick:se,cardDetailsFetchState:R||e.chargeCard?.cardColorCode===void 0,children:[t.jsx(wa,{scaleFactor:P,shouldAppear:R||e.chargeCard?.cardColorCode===void 0}),t.jsx(lo,{leftTransitionValue:P*ue.colorPaletteLeftTransitionValue,hasBorderShadow:!1,tickStyles:{width:"12px",height:"12px"},colorInState:e.chargeCard?.cardColorCode!=null?new _e(e.chargeCard.cardColorCode):void 0,styles:{height:"100%",maxWidth:"78%",top:y?"unset":a.sp0,left:E?a.sp0:`${P*ue.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:E,toggleColorPaletteVisibility:k=>{K(k)},handleColorClick:(k,V)=>{Q(k,V),V&&K(!1)}}),t.jsx(en,{scaleFactor:P}),t.jsx(ga,{productInformation:i,cashbackInformation:d,creditAccountInformation:h,debitAccountInformation:m,secretRevealed:u,setSecretRevealed:U,onFireOnClickAnalytics:re,isCardColorUndefined:e.chargeCard?.cardColorCode==null,isCardColorUpdating:e.updateFetchState.fetchState==="In-Progress",isSandboxEnv:g,cardDetailsFetchState:T,setCardDetailsFetchState:z,isCardDetailErrored:I,setIsCardDetailErrored:G,chargeCard:e.chargeCard,vgsVaultId:x,showSecretInfo:l,creditAccountRepayment:$,token:v?.token,isDebitCard:F,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,creditAccount:S,chargeCardCashbackDetailState:L,cardInfoTitleStyles:{...Z.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:y?"addToWalletDrawer":"cardDetail"}),t.jsxs(xa,{children:[t.jsxs(Jo,{children:[t.jsx(ya,{scaleFactor:P}),t.jsx(Zo,{onClick:k=>{k.stopPropagation(),s&&K(!E)},"data-testid":Y("card-color-selector"),children:s?t.jsx(Pt,{enterDelay:600,title:Se.cardColours,placement:"left",children:t.jsx(Ca,{isShowingInDrawer:y})}):t.jsx(Ca,{isShowingInDrawer:y})})]}),t.jsx(Bo,{scaleFactor:P})]})]}):t.jsxs(sn,{scaleFactor:P,enableClick:se,isOwnCard:s,isShowingInDrawer:y,onClick:()=>{s===!0&&H(T)===!1&&ua({signedInUserToken:v,showSecretInfo:l,setShowPhoneNumberPopup:A,onFireOnClickAnalytics:re,setShowSecretInfo:J})},"data-testid":Y("physical-charge-card-detail"),children:[t.jsx(wa,{scaleFactor:P,shouldAppear:R}),t.jsxs(dn,{flipCard:u,children:[t.jsx(cn,{children:t.jsx(tr,{scaleFactor:P,isClickable:se,isLoading:R,isDebitCard:F})}),l?t.jsxs(ln,{isDebitCard:F,children:[t.jsx(ga,{productInformation:i,cashbackInformation:d,creditAccountInformation:h,debitAccountInformation:m,secretRevealed:u,setSecretRevealed:U,onFireOnClickAnalytics:re,isCardColorUndefined:e.chargeCard?.cardColorCode==null,isCardColorUpdating:e.updateFetchState.fetchState==="In-Progress",isSandboxEnv:g,cardDetailsFetchState:T,setCardDetailsFetchState:z,isCardDetailErrored:I,setIsCardDetailErrored:G,chargeCard:e.chargeCard,vgsVaultId:x,showSecretInfo:l,token:v?.token,isDebitCard:F,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,creditAccount:e.creditAccount,creditAccountRepayment:$,chargeCardCashbackDetailState:L,cardInfoTitleStyles:{...Z.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:y?"addToWalletDrawer":"cardDetail"}),t.jsx(xa,{children:t.jsx(Qo,{children:t.jsx(ya,{scaleFactor:P})})})]}):null]})]})]}),s===!0&&!R?T.cvv===!0&&T.number===!0?t.jsx(Xo,{children:Oo.loading}):I?t.jsx(Ho,{}):t.jsx(fa,{children:u?j:q}):R?t.jsx(fa,{children:Se.loading}):null]})},Ho=()=>t.jsxs(_o,{children:[t.jsx(Wo,{}),t.jsx(Uo,{children:Se.failedToFetchCardWebText})]}),No=r.div`
|
|
192
|
-
display: flex;
|
|
193
|
-
align-items: center;
|
|
194
|
-
gap: ${a.sp2};
|
|
195
|
-
`,Bo=r(Di)`
|
|
196
|
-
width: ${e=>e.scaleFactor*ue.visaLogoWidth}px;
|
|
197
|
-
height: ${e=>e.scaleFactor*ue.visaLogoHeight}px;
|
|
198
|
-
`,Wo=r(zi)`
|
|
199
|
-
width: ${a.sp3};
|
|
200
|
-
height: ${a.sp3};
|
|
201
|
-
color: ${p.alert};
|
|
202
|
-
`,Uo=r(me)`
|
|
203
|
-
color: ${p.alert};
|
|
204
|
-
`,_o=r.div`
|
|
205
|
-
display: flex;
|
|
206
|
-
align-items: center;
|
|
207
|
-
gap: ${a.sp1};
|
|
208
|
-
`,Zo=r.div`
|
|
209
|
-
border-radius: 50%;
|
|
210
|
-
display: flex;
|
|
211
|
-
justify-content: center;
|
|
212
|
-
align-items: center;
|
|
213
|
-
`,Ca=r.div`
|
|
214
|
-
// These are weird number because final requirement is 9 and 12px circle.
|
|
215
|
-
width: ${e=>e.isShowingInDrawer?7:10}px;
|
|
216
|
-
height: ${e=>e.isShowingInDrawer?7:10}px;
|
|
217
|
-
border: 1px solid ${p.backgroundThemeLight};
|
|
218
|
-
border-radius: 50%;
|
|
219
|
-
`,Yo=r.div`
|
|
220
|
-
min-height: ${e=>`calc(${e.scaleFactor*ue.rightSectionHeight}px + ${a.sp2})`};
|
|
221
|
-
min-width: ${e=>`calc(${e.scaleFactor*ue.rightSectionWidth}px + ${a.sp2})`};
|
|
222
|
-
display: flex;
|
|
223
|
-
justify-content: center;
|
|
224
|
-
align-items: center;
|
|
225
|
-
flex-direction: column;
|
|
226
|
-
gap: ${e=>ue.cardContainerContentGap.valuePx(e.windowSize)};
|
|
227
|
-
`,fa=r(me)`
|
|
228
|
-
color: ${e=>e.theme.colors.primary};
|
|
229
|
-
`,qo=r.div`
|
|
230
|
-
position: relative;
|
|
231
|
-
`,Go=ur`
|
|
232
|
-
0% {
|
|
233
|
-
transform: translateX(-100%);
|
|
234
|
-
}
|
|
235
|
-
100% {
|
|
236
|
-
transform: translateX(180%);
|
|
237
|
-
}
|
|
238
|
-
`,wa=r.div`
|
|
239
|
-
z-index: 1;
|
|
240
|
-
display: ${e=>e.shouldAppear?"block":"none"};
|
|
241
|
-
content: "";
|
|
242
|
-
width: ${e=>e.scaleFactor*ue.cardLoadingShineWidth}px;
|
|
243
|
-
height: ${e=>e.scaleFactor*ue.cardLoadingShineHeight}px;
|
|
244
|
-
position: absolute;
|
|
245
|
-
transform: translateX(-180%);
|
|
246
|
-
animation: ${Go} 1.5s infinite;
|
|
247
|
-
background: ${pe`linear-gradient(to right, transparent 0%, ${p.backgroundThemeLight} 50%, transparent 100%)`};
|
|
248
|
-
`,xa=r.div`
|
|
249
|
-
display: flex;
|
|
250
|
-
flex-direction: column;
|
|
251
|
-
justify-content: space-between;
|
|
252
|
-
align-items: center;
|
|
253
|
-
width: 25%;
|
|
254
|
-
padding: ${a.sp4} ${a.sp0};
|
|
255
|
-
`,Ko=r.div`
|
|
256
|
-
background: ${e=>e.cardDetailsFetchState?p.chargeCardFaded:e.bgColor??(e.isDebitCard?e.theme.colors.graphColor15:e.theme.colors.brandColorJade)};
|
|
257
|
-
border-radius: ${a.sp2};
|
|
258
|
-
width: ${e=>e.scaleFactor*ue.chargeCardWidth}px;
|
|
259
|
-
height: ${e=>e.scaleFactor*ue.chargeCardHeight}px;
|
|
260
|
-
background-image: url(https://storage.googleapis.com/zeni-apis.appspot.com/images/PlasticCardPatternSmall.svg);
|
|
261
|
-
background-repeat: no-repeat;
|
|
262
|
-
background-position-y: bottom;
|
|
263
|
-
cursor: ${e=>e.enableClick?"pointer":"not-allowed"};
|
|
264
|
-
display: flex;
|
|
265
|
-
flex-direction: row;
|
|
266
|
-
position: relative;
|
|
267
|
-
overflow: hidden;
|
|
268
|
-
justify-content: space-between;
|
|
269
|
-
|
|
270
|
-
${e=>e.showColorPalette&&`box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1} ${e.theme.colors.dropShadowNormal};
|
|
271
|
-
`}
|
|
272
|
-
|
|
273
|
-
&:hover {
|
|
274
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer?pe`
|
|
275
|
-
box-shadow: 1px 3px ${a.sp4} 2px
|
|
276
|
-
${e.theme.colors.chargeCardBackgroundShadow};
|
|
277
|
-
transform: scale(1.003);
|
|
278
|
-
outline: ${a.sp1} solid ${p.neutralGrey5Light};
|
|
279
|
-
`:null};
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
&:hover:before {
|
|
283
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer?pe`
|
|
284
|
-
box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1}
|
|
285
|
-
${e.theme.colors.dropShadowNormal};
|
|
286
|
-
content: "";
|
|
287
|
-
position: absolute;
|
|
288
|
-
inset: 0;
|
|
289
|
-
border-radius: 7px;
|
|
290
|
-
padding: ${a.sp1};
|
|
291
|
-
-webkit-mask-composite: xor;
|
|
292
|
-
mask-composite: exclude;
|
|
293
|
-
pointer-events: none;
|
|
294
|
-
`:null};
|
|
295
|
-
}
|
|
296
|
-
`,Xo=r(me)`
|
|
297
|
-
color: ${e=>e.theme.colors.primary};
|
|
298
|
-
text-transform: capitalize;
|
|
299
|
-
`,ya=r(ji)`
|
|
300
|
-
height: ${e=>e.scaleFactor*ue.zeniLogoHeight}px;
|
|
301
|
-
width: ${e=>e.scaleFactor*ue.zeniLogoWidth}px;
|
|
302
|
-
color: ${p.neutralGrey5Light};
|
|
303
|
-
`,Jo=r.div`
|
|
304
|
-
display: flex;
|
|
305
|
-
flex-direction: column;
|
|
306
|
-
gap: 35px;
|
|
307
|
-
`,Qo=r.div`
|
|
308
|
-
display: flex;
|
|
309
|
-
flex-direction: column;
|
|
310
|
-
gap: ${a.sp4};
|
|
311
|
-
`,en=r(Li)`
|
|
312
|
-
position: absolute;
|
|
313
|
-
width: ${e=>e.scaleFactor*ue.cardTintIconWidth}px;
|
|
314
|
-
height: ${e=>e.scaleFactor*ue.cardTintIconHeight}px;
|
|
315
|
-
top: -1px;
|
|
316
|
-
`,tn=r(Ki)`
|
|
317
|
-
height: 36px;
|
|
318
|
-
width: 36px;
|
|
319
|
-
position: absolute;
|
|
320
|
-
right: -${a.sp3};
|
|
321
|
-
top: -${a.sp3};
|
|
322
|
-
`,an=r(Xi)`
|
|
323
|
-
height: 36px;
|
|
324
|
-
width: 36px;
|
|
325
|
-
position: absolute;
|
|
326
|
-
left: -${a.sp3};
|
|
327
|
-
top: -${a.sp3};
|
|
328
|
-
`,rn=r(Ji)`
|
|
329
|
-
height: 36px;
|
|
330
|
-
width: 36px;
|
|
331
|
-
position: absolute;
|
|
332
|
-
right: -${a.sp3};
|
|
333
|
-
bottom: -${a.sp3};
|
|
334
|
-
`,on=r(Qi)`
|
|
335
|
-
height: 36px;
|
|
336
|
-
width: 36px;
|
|
337
|
-
position: absolute;
|
|
338
|
-
left: -${a.sp3};
|
|
339
|
-
bottom: -${a.sp3};
|
|
340
|
-
`,nn=r(sr)`
|
|
341
|
-
color: ${e=>e.theme.colors.hero};
|
|
342
|
-
width: ${a.sp3};
|
|
343
|
-
height: ${a.sp3};
|
|
344
|
-
`,sn=r.div`
|
|
345
|
-
cursor: ${e=>e.enableClick?"pointer":"not-allowed"};
|
|
346
|
-
width: ${e=>e.scaleFactor*ue.chargeCardWidth}px;
|
|
347
|
-
height: ${e=>e.scaleFactor*ue.chargeCardHeight}px;
|
|
348
|
-
overflow: hidden;
|
|
349
|
-
position: relative;
|
|
350
|
-
border-radius: ${a.sp2};
|
|
351
|
-
|
|
352
|
-
&:hover {
|
|
353
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer&&e.enableClick?pe`
|
|
354
|
-
box-shadow: 1px 3px ${a.sp4} 2px
|
|
355
|
-
${e.theme.colors.chargeCardBackgroundShadow};
|
|
356
|
-
transform: scale(1.003);
|
|
357
|
-
outline: ${a.sp1} solid ${p.neutralGrey5Light};
|
|
358
|
-
`:null};
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
&:hover:before {
|
|
362
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer&&e.enableClick?pe`
|
|
363
|
-
box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1}
|
|
364
|
-
${e.theme.colors.dropShadowNormal};
|
|
365
|
-
content: "";
|
|
366
|
-
position: absolute;
|
|
367
|
-
inset: 0;
|
|
368
|
-
border-radius: 7px;
|
|
369
|
-
padding: ${a.sp1};
|
|
370
|
-
-webkit-mask-composite: xor;
|
|
371
|
-
mask-composite: exclude;
|
|
372
|
-
pointer-events: none;
|
|
373
|
-
`:null};
|
|
374
|
-
}
|
|
375
|
-
`,dn=r.div`
|
|
376
|
-
position: relative;
|
|
377
|
-
width: 100%;
|
|
378
|
-
height: 100%;
|
|
379
|
-
transition: transform 0.8s;
|
|
380
|
-
transform-style: preserve-3d;
|
|
381
|
-
transform: ${e=>e.flipCard?"rotateY(180deg)":"rotateY(0deg)"};
|
|
382
|
-
`,cn=r.div`
|
|
383
|
-
position: absolute;
|
|
384
|
-
width: 100%;
|
|
385
|
-
height: 100%;
|
|
386
|
-
-webkit-backface-visibility: hidden; /* Safari */
|
|
387
|
-
backface-visibility: hidden;
|
|
388
|
-
`,ln=r.div`
|
|
389
|
-
position: absolute;
|
|
390
|
-
background: ${e=>e.isDebitCard?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJade};
|
|
391
|
-
width: inherit;
|
|
392
|
-
height: inherit;
|
|
393
|
-
border-radius: 6px;
|
|
394
|
-
display: flex;
|
|
395
|
-
transition-timing-function: ease-in-out;
|
|
396
|
-
-webkit-backface-visibility: hidden;
|
|
397
|
-
backface-visibility: hidden;
|
|
398
|
-
background-image: url("https://storage.googleapis.com/zeni-apis.appspot.com/images/plastic-card-pattern-right-small.svg");
|
|
399
|
-
border-radius: ${a.sp2};
|
|
400
|
-
display: flex;
|
|
401
|
-
justify-content: center;
|
|
402
|
-
align-items: flex-start;
|
|
403
|
-
background-repeat: no-repeat;
|
|
404
|
-
background-position-x: right;
|
|
405
|
-
background-position-y: bottom;
|
|
406
|
-
transform: rotateY(180deg);
|
|
407
|
-
`,ge={contentContainerPadding:new D(c[3],c[4],c[8],c[8]),rightSectionWidth:new D(343,343,343,384),rightSectionHeight:new D(214,214,214,240),cardContainerContentGap:new D(c[2],c[2],c[2],c[3]),remainingAmountContainerGap:new D(c[1],c[1]),leftRightSectionGap:new D(c[0],54,54,57),cardBalanceSectionMarginBottom:new D(c[4],c[4]),barRadius:new D(2,c[2]),topSectionPaddingBottom:new D(c[4],19),rightSectionGap:new D(c[4],c[3]),addressSectionHeight:new D(109,74),addressSectionGap:new D(c[2],c[4]),navigationMarginBottom:new D(c[4],c[0]),addressValueGap:new D(c[0],c[1]),ownerWebMinWidth:new D(110,187)},Ht={remainingAmount:new ha("largeRegular","largeMedium"),spentAmount:new ha("h5Regular","h5Regular")},{common:Ve,dateFormat:ot,spendManagement:hn}=he.getLocalizedStrings(),Oe=hn.chargeCard,pn=({chargeCardDetailView:e,spent:i,controllerEmails:d,chargeCardCashbackDetailState:h,isChargeCardFeatureEnabled:m,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:x,creditAccount:l,creditAccountRepayment:f,productInformation:w,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:b,cardIssuedByRoles:L,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,classListFetchState:g,cardOwnerName:I,secretRevealed:v,appleWalletLink:O,googleWalletLink:T,isCardNotPending:z,isOwnerNameCopied:G,isAddressCopied:J,addressToShow:U,isOwnCard:A,vgsVaultId:H,showSecretInfo:Q,isSandboxEnv:re,isCardDetailErrored:E,signedInUserToken:K,selectedColor:_,showUpdateSpendLimitAction:oe,setShowPhoneNumberPopup:ee,setShowChangeSpendLimitPopup:P,cardDetailsFetchState:ae,setCardDetailsFetchState:N,setIsCardDetailErrored:ie,setShowSecretInfo:X,setSecretRevealed:j,isCardDetailFetching:q,handleColorCodeClick:R,onFireOnClickAnalytics:se,onOwnerNameCopyClick:F,onAddressCopyClick:k,isDebitCard:V})=>{const B=Ce(),ne=dt().analytics,De=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate!=null?e.chargeCardConfig.rePaymentInfo.cardLimitResetDate.format(ot.visual.MMMDFormat):Ze.dateNow().startOf("month").add(1,"month").format(ot.visual.MMMDFormat),Ie=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:Te}=di(),He=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),Re=st(),te=Ze.hasChargeCardAdminLevelAccess(Re?.loggedInUserRoleMap);return t.jsxs(Dn,{windowSize:B,children:[t.jsxs(jn,{windowSize:B,children:[t.jsxs(In,{windowSize:B,children:[t.jsx(fn,{children:Ve.texts.spent}),t.jsx(va,{children:t.jsx(An,{windowSize:B,children:xe("0,0.[00]",i)})}),t.jsx(Vn,{windowSize:B,children:t.jsx(Hn,{style:{width:`${Ie}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(va,{children:[t.jsxs(On,{children:[t.jsxs(gn,{windowSize:B,children:[t.jsx(ka,{windowSize:B,children:xe("0,0.[00]",e.chargeCard.available)}),t.jsx(La,{windowSize:B,children:Ve.texts.remaining})]}),oe?t.jsxs(Rn,{windowSize:B,children:[t.jsx(En,{children:Oe.updateSpendLimitPopup.unlockSpending}),t.jsx(Fn,{onClick:()=>{mn({chargeCardDetailView:e,classListFetchState:g,isChargeCardFeatureEnabled:m,creditAccount:l,creditAccountRepayment:f,isDebitCard:V,productInformation:w,creditAccountInformation:C,debitAccountInformation:b,controllerEmails:d,cardIssuedByRoles:L,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,analytics:ne}),P(!0)},"data-testid":Y("update-spend-limit-button"),children:Oe.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(Tn,{windowSize:B,children:[t.jsxs(wn,{children:[t.jsx(ka,{windowSize:B,children:xe("0,0.[00]",e.chargeCard.limit)}),t.jsx(La,{windowSize:B,children:Oe.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs(zn,{children:[t.jsx(Pn,{children:Ve.texts.limitReset}),t.jsx(Mn,{children:De})]}):null]})]}):null]}),t.jsx(un,{chargeCardDetailView:e,classListFetchState:g,cardOwnerName:I,addressToShow:U,isAddressCopied:J,isOwnerNameCopied:G,onOwnerNameCopyClick:F,onAddressCopyClick:k})]}),t.jsx(kn,{windowSize:B,isOwnCard:A,children:B==="small"&&!A?null:t.jsxs(t.Fragment,{children:[t.jsx(Ln,{windowSize:B,children:He?t.jsx(tr,{}):t.jsx(yr,{chargeCardDetailView:e,productInformation:w,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:b,creditAccount:e.creditAccount,setShowSecretInfo:X,secretRevealed:v,isOwnCard:A,isShowingInDrawer:!1,vgsVaultId:H,showSecretInfo:Q,isSandboxEnv:re,controllerEmails:d,isChargeCardFeatureEnabled:m,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:x,chargeCardCashbackDetailState:h,isCardDetailErrored:E,signedInUserToken:K,selectedColor:_,cardDetailsFetchState:ae,setCardDetailsFetchState:N,setIsCardDetailErrored:ie,setSecretRevealed:j,isCardDetailFetching:q,handleColorCodeClick:R,onFireOnClickAnalytics:se,setShowPhoneNumberForOtp:ee,creditAccountRepayment:f})}),A?null:t.jsx(Cn,{children:Oe.cardDetails.adminsCannotAccess}),B==="small"&&A&&z&&V===!1?Te?t.jsx(zt,{onClick:()=>{et({chargeCardDetailView:e,classListFetchState:g,analytics:ne,isDebitCard:V,isChargeCardAdmin:te,productInformation:w,creditAccountInformation:C,debitAccountInformation:b,cardIssuedByRoles:L,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,controllerEmails:d,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:m,creditAccount:l,creditAccountRepayment:f}),window.open(O,"_blank")}}):t.jsx(Ft,{onClick:()=>{et({chargeCardDetailView:e,classListFetchState:g,analytics:ne,isDebitCard:V,isChargeCardAdmin:te,productInformation:w,creditAccountInformation:C,debitAccountInformation:b,cardIssuedByRoles:L,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,controllerEmails:d,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:m,creditAccount:l,creditAccountRepayment:f}),window.open(T,"_blank")}}):null]})})]})},un=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:d,addressToShow:h,isOwnerNameCopied:m,isAddressCopied:u,onOwnerNameCopyClick:s,onAddressCopyClick:x})=>{const l=Ce(),f=Ye(),[w,n]=o.useState(0),[C,b]=o.useState(!0),[L,S]=o.useState(!1),[$,y]=o.useState(!1),[g,I]=o.useState(!1);o.useEffect(()=>{const O=[setTimeout(()=>{n(1)},500),setTimeout(()=>{n(0),I(!0)},1e3),setTimeout(()=>{b(!1),I(!1)},2e3),setTimeout(()=>{b(!0),n(1)},2500),setTimeout(()=>{n(0),I(!0)},3e3),setTimeout(()=>{b(!1),I(!1)},4e3)];return()=>{O.forEach(clearTimeout)}},[]);const v=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(xn,{children:[t.jsxs(yn,{windowSize:l,children:[t.jsxs(bn,{shouldBounce:g,isActive:w==0,isAutoSlide:C,windowSize:l,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(ba,{windowSize:l,onClick:s,"data-testid":Y("owner-name-copy-click"),onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:[t.jsxs(gt,{children:[Oe.cardDetails.owner,t.jsxs(Ta,{children:[t.jsx(ja,{children:m===!0?t.jsx(Aa,{}):t.jsx(Ia,{isHover:L})}),m||L?t.jsx(Da,{children:m?Ve.copyToClipBoard.copied:Ve.copyToClipBoard.copy}):null]})]}),t.jsx(Sa,{children:t.jsx(At,{children:d})})]}):null,h!=null?t.jsxs($a,{windowSize:l,onClick:x,"data-testid":Y("address-copy-click"),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(gt,{children:[Oe.cardDetails.address,t.jsxs(Ta,{children:[t.jsx(ja,{children:u===!0?t.jsx(Aa,{}):t.jsx(Ia,{isHover:$})}),u||$?t.jsx(Da,{children:u?Ve.copyToClipBoard.copied:Ve.copyToClipBoard.copy}):null]})]}),t.jsx(vn,{windowSize:l,children:t.jsx(ki,{address:h,isDisabled:"readonly",style:{padding:a.sp0,...Z.smallRegular.cssObject,textTransform:"capitalize",alignItems:"flex-start",backgroundColor:f.colors.grey4,cursor:"pointer",flexDirection:l==="small"?"column":"row",gap:ge.addressValueGap.valuePx(l),textAlign:l==="small"?"left":"right"}})})]}):null]}),t.jsxs(Sn,{isActive:w==1,isAutoSlide:C,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(ba,{windowSize:l,children:[t.jsx(gt,{children:Oe.connectedAccount}),t.jsxs($n,{children:[t.jsx(Nn,{children:t.jsx(Bn,{})}),t.jsx(At,{children:v})]})]}):null,t.jsxs($a,{windowSize:l,children:[t.jsx(gt,{children:Oe.department}),t.jsx(Sa,{children:t.jsx(At,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(nt,{size:"Small",start:!0}):e.chargeCard?.department?.className??Ve.strings.hyphen})})]})]})]}),t.jsx(Yi,{numberOfDots:2,activeIndex:w,handleClick:n,style:{marginTop:"12px",marginBottom:ge.navigationMarginBottom.valuePx(l)},dotStyle:{width:a.sp2,height:a.sp2},spendManagementPromoCardActive:!0,promoColor:f.colors.primary,promoColorHover:f.colors.grey1})]})},mn=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:d,creditAccount:h,creditAccountRepayment:m,isDebitCard:u,controllerEmails:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,cardIssuedByRoles:w,cardIssuedByDepartmentName:n,cardHolderRoles:C,cardHolderDepartmentName:b,analytics:L})=>{if(e.chargeCard!=null&&i==="Completed"&&e.transactionStatistics.fetchState==="Completed"&&(!d||h.fetchState==="Completed"&&m.fetchState==="Completed")&&(!u||e.depositAccountLimitFetchState.fetchState==="Completed")){const S=e.chargeCard.type.code.includes("physical")?e.chargeCard.cardActivationAttemptHistory[0]?.timestamp:e.chargeCard.createTime;L.trackCardsUpdateSpendLimitInitiated(s,x,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:gr(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:je(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(ot.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(ot.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:S?.format(ot.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name,cardSpentAmount:je(e.chargeCard.balance.amount),cardAvailableLimit:je(e.chargeCard.available.amount),cardUtilizationPercent:mr(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:je(Cr(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:wt(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:w,cardIssuedByDepartment:n},{cardholderName:wt(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:b},"Card Detail","Hyperlink",(e?.chargeCard?.recommendations??[]).map($=>je($.creditLimit.amount)),l,f)}},gn=r.div`
|
|
408
|
-
display: flex;
|
|
409
|
-
align-items: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"flex-start":"center"};
|
|
410
|
-
gap: ${e=>ge.remainingAmountContainerGap.valuePx(e.windowSize)};
|
|
411
|
-
flex-direction: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"column":"row"};
|
|
412
|
-
`,Cn=r(me)`
|
|
413
|
-
color: ${e=>e.theme.colors.primary};
|
|
414
|
-
`,fn=r(me)`
|
|
415
|
-
color: ${e=>e.theme.colors.hero};
|
|
416
|
-
`,wn=r.div`
|
|
417
|
-
display: flex;
|
|
418
|
-
align-items: end;
|
|
419
|
-
`,xn=r.div`
|
|
420
|
-
width: 100%;
|
|
421
|
-
overflow: hidden;
|
|
422
|
-
`,yn=r.div`
|
|
423
|
-
width: 100%;
|
|
424
|
-
gap: ${a.sp3};
|
|
425
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
426
|
-
border: 1px solid ${e=>e.theme.colors.background};
|
|
427
|
-
border-radius: ${a.sp2};
|
|
428
|
-
padding: ${a.sp3};
|
|
429
|
-
box-sizing: border-box;
|
|
430
|
-
position: relative;
|
|
431
|
-
height: ${e=>ge.addressSectionHeight.valuePx(e.windowSize)};
|
|
432
|
-
`,bn=r.div`
|
|
433
|
-
display: flex;
|
|
434
|
-
justify-content: unset;
|
|
435
|
-
gap: ${e=>ge.addressSectionGap.valuePx(e.windowSize)};
|
|
436
|
-
position: absolute;
|
|
437
|
-
width: 100%;
|
|
438
|
-
${({isActive:e,isAutoSlide:i})=>pe`
|
|
439
|
-
transform: translateX(${e?"0%":i?"-10%":"-105%"});
|
|
440
|
-
`};
|
|
441
|
-
transition: transform
|
|
442
|
-
${({isAutoSlide:e,shouldBounce:i})=>`${e?"0.5s":"0.3s"} ${i?"cubic-bezier(0.175, 0.885, 0.32, 1.125)":"ease-out"}`};
|
|
443
|
-
`,Sn=r.div`
|
|
444
|
-
display: flex;
|
|
445
|
-
justify-content: unset;
|
|
446
|
-
${({isActive:e,isAutoSlide:i})=>pe`
|
|
447
|
-
transform: translateX(${e?i?"95%":"0%":"105%"});
|
|
448
|
-
`};
|
|
449
|
-
transition: transform
|
|
450
|
-
${({isAutoSlide:e,isActive:i})=>e&&i?"0.5s":"0.3s"}
|
|
451
|
-
ease-out;
|
|
452
|
-
gap: ${a.sp8};
|
|
453
|
-
`,ba=r.div`
|
|
454
|
-
min-width: ${e=>ge.ownerWebMinWidth.valuePx(e.windowSize)};
|
|
455
|
-
cursor: pointer;
|
|
456
|
-
`,gt=r(me)`
|
|
457
|
-
color: ${e=>e.theme.colors.hero};
|
|
458
|
-
display: flex;
|
|
459
|
-
align-items: center;
|
|
460
|
-
`,Sa=r.div``,$n=r.div`
|
|
461
|
-
display: flex;
|
|
462
|
-
align-items: flex-start;
|
|
463
|
-
gap: ${a.sp1};
|
|
464
|
-
`,vn=r.div`
|
|
465
|
-
${({windowSize:e})=>e==="small"?pe`
|
|
466
|
-
max-width: 220px;
|
|
467
|
-
`:null};
|
|
468
|
-
`,At=r(me)`
|
|
469
|
-
color: ${e=>e.theme.colors.primary};
|
|
470
|
-
text-transform: capitalize;
|
|
471
|
-
`,$a=r.div`
|
|
472
|
-
display: flex;
|
|
473
|
-
flex-direction: column;
|
|
474
|
-
align-items: "baseline";
|
|
475
|
-
justify-content: center;
|
|
476
|
-
cursor: pointer;
|
|
477
|
-
`,kn=r.div`
|
|
478
|
-
display: flex;
|
|
479
|
-
flex-direction: ${e=>e.windowSize==="small"||!e.isOwnCard?"column":"row"};
|
|
480
|
-
justify-content: center;
|
|
481
|
-
align-items: center;
|
|
482
|
-
gap: ${e=>ge.rightSectionGap.valuePx(e.windowSize)};
|
|
483
|
-
width: ${e=>e.windowSize==="small"?"100%":"max-content"};
|
|
484
|
-
`,Ln=r.div`
|
|
485
|
-
min-height: ${e=>`calc(${ge.rightSectionHeight.valuePx(e.windowSize)} + ${a.sp2})`};
|
|
486
|
-
min-width: ${e=>`calc(${ge.rightSectionWidth.valuePx(e.windowSize)} + ${a.sp2})`};
|
|
487
|
-
display: flex;
|
|
488
|
-
justify-content: center;
|
|
489
|
-
align-items: center;
|
|
490
|
-
flex-direction: column;
|
|
491
|
-
gap: ${e=>ge.cardContainerContentGap.valuePx(e.windowSize)};
|
|
492
|
-
`,jn=r.div`
|
|
493
|
-
width: 100%;
|
|
494
|
-
display: flex;
|
|
495
|
-
align-items: flex-start;
|
|
496
|
-
flex-direction: column;
|
|
497
|
-
justify-content: space-between;
|
|
498
|
-
`,Dn=r.div`
|
|
499
|
-
display: flex;
|
|
500
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
501
|
-
align-items: center;
|
|
502
|
-
|
|
503
|
-
justify-content: space-between;
|
|
504
|
-
padding-top: ${a.sp3};
|
|
505
|
-
padding-right: ${e=>ge.contentContainerPadding.valuePx(e.windowSize)};
|
|
506
|
-
padding-bottom: ${e=>ge.topSectionPaddingBottom.valuePx(e.windowSize)};
|
|
507
|
-
padding-left: ${e=>ge.contentContainerPadding.valuePx(e.windowSize)};
|
|
508
|
-
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
509
|
-
background: ${e=>e.theme.colors.grey5};
|
|
510
|
-
gap: ${e=>ge.leftRightSectionGap.valuePx(e.windowSize)};
|
|
511
|
-
`,In=r.div`
|
|
512
|
-
display: flex;
|
|
513
|
-
flex-direction: column;
|
|
514
|
-
width: 100%;
|
|
515
|
-
margin-bottom: ${({windowSize:e})=>ge.cardBalanceSectionMarginBottom.valuePx(e)};
|
|
516
|
-
`,va=r.div`
|
|
517
|
-
display: flex;
|
|
518
|
-
flex-direction: row;
|
|
519
|
-
justify-content: space-between;
|
|
520
|
-
align-items: flex-start;
|
|
521
|
-
`,An=r(nr)`
|
|
522
|
-
color: ${e=>e.theme.colors.primary};
|
|
523
|
-
${e=>`${Ht.spentAmount.style(e.windowSize)}`};
|
|
524
|
-
`,Tn=r.div`
|
|
525
|
-
display: flex;
|
|
526
|
-
align-items: flex-end;
|
|
527
|
-
flex-direction: column;
|
|
528
|
-
${({windowSize:e})=>e==="small"?pe`
|
|
529
|
-
margin-bottom: ${a.sp4};
|
|
530
|
-
`:null};
|
|
531
|
-
`,Rn=r.div`
|
|
532
|
-
display: flex;
|
|
533
|
-
flex-direction: ${({windowSize:e})=>e==="small"?"column":"row"};
|
|
534
|
-
align-items: ${({windowSize:e})=>e==="small"?"flex-start":"flex-end"};
|
|
535
|
-
`,En=r(Mt)`
|
|
536
|
-
color: ${e=>e.theme.colors.hero};
|
|
537
|
-
margin-right: ${a.sp1};
|
|
538
|
-
`,Fn=r(vi)`
|
|
539
|
-
background: none;
|
|
540
|
-
border: none;
|
|
541
|
-
cursor: pointer;
|
|
542
|
-
padding: ${a.sp0};
|
|
543
|
-
color: ${p.link};
|
|
544
|
-
&:hover {
|
|
545
|
-
text-decoration: underline;
|
|
546
|
-
}
|
|
547
|
-
`,zn=r.div`
|
|
548
|
-
display: flex;
|
|
549
|
-
align-items: flex-end;
|
|
550
|
-
gap: ${a.sp1};
|
|
551
|
-
`,Pn=r(me)`
|
|
552
|
-
color: ${e=>e.theme.colors.hero};
|
|
553
|
-
`,Mn=r(me)`
|
|
554
|
-
color: ${e=>e.theme.colors.hero};
|
|
555
|
-
`,Vn=r.div`
|
|
556
|
-
width: 100%;
|
|
557
|
-
height: ${a.sp1};
|
|
558
|
-
display: flex;
|
|
559
|
-
margin: ${a.sp2} ${a.sp0};
|
|
560
|
-
border-radius: ${({windowSize:e})=>ge.barRadius.valuePx(e)};
|
|
561
|
-
background: ${e=>e.theme.colors.grey2};
|
|
562
|
-
`,On=r.div`
|
|
563
|
-
display: flex;
|
|
564
|
-
align-items: flex-start;
|
|
565
|
-
flex-direction: column;
|
|
566
|
-
color: ${e=>e.theme.colors.primary};
|
|
567
|
-
`,ka=r(nr)`
|
|
568
|
-
color: ${e=>e.theme.colors.primary};
|
|
569
|
-
${e=>`${Ht.remainingAmount.style(e.windowSize)}`};
|
|
570
|
-
`,La=r($i)`
|
|
571
|
-
${e=>`${Ht.remainingAmount.style(e.windowSize)}`};
|
|
572
|
-
color: ${e=>e.theme.colors.primary};
|
|
573
|
-
`,Hn=r.div`
|
|
574
|
-
background: ${p.success};
|
|
575
|
-
width: 0%;
|
|
576
|
-
height: ${a.sp1};
|
|
577
|
-
transition: width 4s ease;
|
|
578
|
-
`,ja=r.span`
|
|
579
|
-
display: flex;
|
|
580
|
-
color: ${e=>e.theme.colors.grey1};
|
|
581
|
-
&:hover {
|
|
582
|
-
color: ${e=>e.theme.colors.primary};
|
|
583
|
-
}
|
|
584
|
-
`,Da=r(at)`
|
|
585
|
-
padding: ${a.sp0} 2px;
|
|
586
|
-
color: ${p.heroDark};
|
|
587
|
-
background: ${p.blackColor};
|
|
588
|
-
border-radius: ${a.sp1};
|
|
589
|
-
position: absolute;
|
|
590
|
-
left: 20px;
|
|
591
|
-
`,Ia=r(ir)`
|
|
592
|
-
height: 12px;
|
|
593
|
-
width: 12px;
|
|
594
|
-
margin-left: ${a.sp1};
|
|
595
|
-
color: ${e=>e.isHover?e.theme.colors.primary:e.theme.colors.grey2};
|
|
596
|
-
cursor: pointer;
|
|
597
|
-
`,Aa=r(ct)`
|
|
598
|
-
height: 12px;
|
|
599
|
-
width: 12px;
|
|
600
|
-
margin-left: ${a.sp1};
|
|
601
|
-
color: ${p.success};
|
|
602
|
-
`,Nn=r.div`
|
|
603
|
-
width: 21px;
|
|
604
|
-
height: 21px;
|
|
605
|
-
`,Bn=r(Ai)`
|
|
606
|
-
color: ${p.brandColorOpal};
|
|
607
|
-
width: 100%;
|
|
608
|
-
height: 100%;
|
|
609
|
-
`,Ta=r.div`
|
|
610
|
-
display: flex;
|
|
611
|
-
align-items: center;
|
|
612
|
-
justify-content: center;
|
|
613
|
-
position: relative;
|
|
614
|
-
`,lt=he.getLocalizedStrings().spendManagement.chargeCard.cardDetails.header,Wn={key:"merchant",value:lt.merchant,sortOrder:"ascending",width:new D(38,38)},Un={key:"paymentDate",value:lt.paymentDate,sortOrder:"ascending",width:new D(21,21)},_n={key:"receipts",value:lt.receipts,sortOrder:"ascending",width:new D(16,16)},Zn={key:"type",value:lt.type,sortOrder:"ascending",width:new D(14,14)},Yn={key:"amount",value:lt.amount,sortOrder:"ascending",width:new D(11,11)},br=()=>[Wn,Un,_n,Zn,Yn],Je={headerLastColumnTopPadding:new D(c[0],c[4]),headerLastColumnRightPadding:new D(c[3],c[11]),headerLastColumnBottomPadding:new D(c[0],c[4]),headerLastColumnLeftPadding:new D(c[3],c[11]),headerHeight:new D(Oi,Hi)};function qn({hideSorting:e,sortConfig:i,onColumnSortConfigChanged:d}){const h=Ye(),m=Ce(),u=br(),s=(n,C)=>{let b=C;i.sortKey===n&&(b=C==="ascending"?"descending":"ascending"),d(n,b)},x=u.find(n=>n.key===i.sortKey)??u[0],l=n=>u.find(C=>C.key===n)?.value??"",f=u.map(n=>n.key),w=he.getLocalizedStrings().spendManagement.chargeCard.cardList;return m==="small"?t.jsxs(Ra,{windowSize:m,children:[t.jsxs(Jn,{children:[t.jsx(es,{children:t.jsx(Qn,{})}),t.jsx(Pi,{title:w.sortBy,placeholder:w.sortBy,pickerValues:f,valueToLabel:l,selectedValue:i.sortKey,onPickerSelectionChanged:n=>{s(n,"ascending")},optionTextStyle:Z.smallRegular,titleTextStyle:Z.smallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4,isDisabled:e})]}),t.jsxs(rs,{hideSorting:e,onClick:()=>{e||s(x.key,x.sortOrder)},"data-testid":Y("charge-card-trxn-small-header",i.sortKey),children:[t.jsx(me,{children:x.value}),e?null:t.jsx(Ea,{sortDataValue:i.sortKey,headerData:x,children:t.jsx(Fa,{})})]})]}):t.jsx(Ra,{windowSize:m,children:u.map(n=>t.jsxs(Kn,{hideSorting:e,sortDataValue:i.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(as,{hideSorting:e,onClick:()=>{e||s(n.key,n.sortOrder)},"data-testid":Y("charge-card-trxn-header",i.sortKey),children:[t.jsx(me,{children:n.value}),t.jsx(Ea,{sortDataValue:i.sortKey,headerData:n,children:e?null:t.jsx(Fa,{})})]}),t.jsx(ts,{sortDataValue:i.sortKey,windowSize:m,isVisible:e?!1:i.sortKey===n.key&&n.key!=="paymentDate",children:e?null:t.jsx(Xn,{onClick:()=>{e||s("paymentDate","ascending")},"data-testid":Y("charge-card-trxn-close-sort",i.sortKey)})})]},n.key))})}const Gn=Zi.memo(qn),Ra=r(me)`
|
|
615
|
-
top: ${a.sp0};
|
|
616
|
-
left: ${a.sp0};
|
|
617
|
-
min-height: ${e=>Je.headerHeight.valuePx(e.windowSize)};
|
|
618
|
-
max-height: ${e=>Je.headerHeight.valuePx(e.windowSize)};
|
|
619
|
-
width: auto;
|
|
620
|
-
z-index: 2;
|
|
621
|
-
display: flex;
|
|
622
|
-
align-items: center;
|
|
623
|
-
box-sizing: border-box;
|
|
624
|
-
padding: ${e=>`${Je.headerLastColumnTopPadding.valuePx(e.windowSize)} ${Je.headerLastColumnRightPadding.valuePx(e.windowSize)} ${Je.headerLastColumnBottomPadding.valuePx(e.windowSize)} ${Je.headerLastColumnLeftPadding.valuePx(e.windowSize)}`};
|
|
625
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
626
|
-
justify-content: space-between;
|
|
627
|
-
position: sticky;
|
|
628
|
-
`,Kn=r.div`
|
|
629
|
-
color: ${e=>e.sortDataValue===e.actualDataValue&&e.hideSorting===!1?e.theme.colors.primary:e.theme.colors.grey1};
|
|
630
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
631
|
-
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
632
|
-
padding-left: ${a.sp0};
|
|
633
|
-
display: flex;
|
|
634
|
-
align-items: center;
|
|
635
|
-
gap: 5px;
|
|
636
|
-
left: ${a.sp0};
|
|
637
|
-
justify-content: ${e=>e.actualDataValue==="amount"?"flex-end":"flex-start"};
|
|
638
|
-
${e=>e.actualDataValue==="paymentDate"?pe`
|
|
639
|
-
flex: 1 1 auto;
|
|
640
|
-
`:pe`
|
|
641
|
-
padding-left: ${a.sp0};
|
|
642
|
-
`};
|
|
643
|
-
box-sizing: border-box;
|
|
644
|
-
overflow: hidden;
|
|
645
|
-
`,Xn=r(Vi)`
|
|
646
|
-
width: 12px;
|
|
647
|
-
height: 12px;
|
|
648
|
-
cursor: pointer;
|
|
649
|
-
color: ${e=>e.theme.colors.hero};
|
|
650
|
-
`,Ea=r.div`
|
|
651
|
-
display: flex;
|
|
652
|
-
align-items: center;
|
|
653
|
-
transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
654
|
-
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"}
|
|
655
|
-
`,Fa=r(sr)`
|
|
656
|
-
width: 12px;
|
|
657
|
-
height: 12px;
|
|
658
|
-
cursor: pointer;
|
|
659
|
-
color: inherit;
|
|
660
|
-
`,Jn=r.div`
|
|
661
|
-
gap: ${a.sp1};
|
|
662
|
-
display: flex;
|
|
663
|
-
`,Qn=r(Mi)`
|
|
664
|
-
width: 12px;
|
|
665
|
-
height: 12px;
|
|
666
|
-
color: ${e=>e.theme.colors.grey1};
|
|
667
|
-
`,es=r.div`
|
|
668
|
-
margin-right: ${a.sp1};
|
|
669
|
-
display: flex;
|
|
670
|
-
align-items: center;
|
|
671
|
-
`,ts=r.div`
|
|
672
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
673
|
-
align-items: center;
|
|
674
|
-
padding-top: 2px;
|
|
675
|
-
`,as=r.div`
|
|
676
|
-
display: flex;
|
|
677
|
-
cursor: ${e=>e.hideSorting?"default":"pointer"};
|
|
678
|
-
gap: ${e=>e.hideSorting?a.sp0:"5px"};
|
|
679
|
-
&:hover {
|
|
680
|
-
color: ${e=>e.hideSorting?"inherit":e.theme.colors.primary};
|
|
681
|
-
}
|
|
682
|
-
`,rs=r.div`
|
|
683
|
-
display: flex;
|
|
684
|
-
cursor: ${e=>e.hideSorting?"default":"pointer"};
|
|
685
|
-
gap: ${e=>e.hideSorting?a.sp0:"5px"};
|
|
686
|
-
color: ${e=>e.theme.colors.hero};
|
|
687
|
-
&:hover {
|
|
688
|
-
color: ${e=>e.hideSorting?e.theme.colors.hero:e.theme.colors.primary};
|
|
689
|
-
}
|
|
690
|
-
`;function Sr(e,i,d){return is(e,i,d)}async function is(e,i,d,h){const m=`${e}?query=${encodeURIComponent(JSON.stringify(d))}`,u=he.getLocalizedStrings().downloadReport;try{const s=await Wi(m,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(s.ok){const x=h??Ui(s.headers,"Charge Card Transaction Receipt.pdf"),l=await s.arrayBuffer();_i(l,x)}else console.error(`${u.reportErrorMessage} ${s.statusText}`)}catch(s){console.error(`${u.reportErrorMessage} ${JSON.stringify(s)}`)}}async function $r(e,i,d){const h=`${e}?query=${encodeURIComponent(JSON.stringify(d))}`,m=he.getLocalizedStrings().downloadReport;try{const u=await fetch(h,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(u.ok)return await u.json();console.error(`${m.reportErrorMessage} ${u.statusText}`)}catch(u){throw console.error(`${m.reportErrorMessage} ${JSON.stringify(u)}`),u}return[]}const os=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"})),vr=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"})),kr=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:ns,spendManagement:{chargeCard:{cardDetails:za}},common:{strings:{hyphen:ss},tooltips:{addMissingReceipt:ds,addReceipt:cs,viewReceipt:ls}}}=he.getLocalizedStrings(),Me={containerPaddingLeft:new D(c[3],c[4]),containerPaddingRight:new D(c[3],c[4]),containerPaddingTop:new D(c[2],c[3]),containerPaddingBottom:new D(c[2],c[3]),containerMarginLeft:new D(c[4],c[8]),webkitLineClamp:new D(2,1,1,1,1)},hs=(e,i)=>e.attachments!=null&&e.attachments.length>0?ls:e.amount.amount<=i.amount?cs:ds,Lr=(e,i,d,h)=>e.attachments!=null&&e.attachments.length>0?t.jsx(Rs,{onClick:m=>{m.stopPropagation(),h()},"data-testid":Y("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx(zs,{onClick:m=>{m.stopPropagation(),d()},"data-testid":Y("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(Fs,{onClick:m=>{m.stopPropagation(),d()},"data-testid":Y("card-transaction-row-upload-receipt",e.id)}),ps=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,isAiCategorizationEnabledForCardsTransactions:h,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:u,cardId:s,uploadReceiptsFetchState:x,uploadReceiptsShowTick:l,isViewReceiptClickedImmediatelyAfterUpload:f,authParams:w,transaction:n,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:b,onUploadReceiptComplete:L,updateChargeCardTransactionUploadReceiptsFetchStatus:S,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:y,removeSnackbar:g,onChargeCardTransactionRowClick:I})=>{const v=Ce(),[O,T]=o.useState(!1),[z,G]=o.useState([]),[J,U]=o.useState(null);o.useEffect(()=>{!d&&f&&(Q(A[0]),ee())},[d,f]);const A=n.attachments?.filter(te=>te.contentType!=null&&dr.includes(te.contentType))??[],[H,Q]=o.useState(A[0]),[re,E]=o.useState([]),[K,_]=o.useState(void 0);o.useEffect(()=>{async function te(de){re.includes(de.attachment_id)?console.warn(`Attachment with ID ${de.attachment_id} is already getting downloaded`):(E([de.attachment_id,...re]),await Sr(u,w,de),E(pr(re,M=>M==de.attachment_id)))}K!=null&&(te({card_id:s,transaction_id:n.id,attachment_id:K}),_(void 0))},[K]);const oe=()=>{y(n.id,s,!1),T(!1),U(null),G([]),A.length>0&&Q(A[0])},ee=()=>{T(!0);const te=A.map(M=>M.id);async function de(M){return await $r(m,w,M)}de({card_id:s,transaction_id:n.id,attachment_ids:te}).then(M=>{G(M),M.length>0&&U(M[0])})},{merchant:P,createTime:ae,transactionType:N,thirdPartyTransactionId:ie,zeniVendorId:X,zeniAccountId:j}=n,q=()=>{d?(g(),y(n.id,s,!0)):(Q(A[0]),ee())},R=o.useRef(null);async function se(te,de){S(n.id,s,"In-Progress"),await wr(`${e}/1.0/cards/transactions/${n.id}/attachments`,w,te,de).then(M=>{M!=null&&b(n.id,M),S(n.id,s,"Completed"),$(n.id,s,!0),setTimeout(()=>{$(n.id,s,!1),L(!0)},2e3)}).catch(M=>{S(n.id,s,"Error"),L(!1,M)})}const F=()=>{R.current?.click()},k=te=>{if(te.target.files!=null){const de=te.target.files,M=[],Ee=[];for(let ke=0;ke<de.length;ke++)M.push(de[ke].name),Ee.push(de[ke]);se?.(Ee,M)}},V=br(),B=cr(n.transactionStatus),ne=h?P.brandName??P.name:P.name,De=xe("0,0.00",n.amount),Ie=N.code==="transfer",Te=ie!=null&&h&&(Ie||j!=null&&X!=null),He=Ie&&n.direction==="debit",Re=Ie&&n.direction==="credit";return t.jsxs(fs,{windowSize:v,isClickable:Te,"data-testid":Y("card-transaction-row",n.id),onClick:te=>{te.stopPropagation(),Te&&I(N.code,ie)},children:[t.jsx(ws,{children:t.jsxs(xs,{children:[t.jsxs(ys,{windowSize:v,responsiveWidth:V[0].width,children:[He?t.jsx(ks,{}):Re?t.jsx(Ls,{}):t.jsx(js,{src:P.logo?.url?.toString()}),t.jsx(bs,{windowSize:v,hasMarginRight:B.code==="paid",children:ne}),B.code!=="paid"?t.jsxs(ms,{children:[t.jsx(Cs,{windowSize:v}),t.jsx(gs,{color:B.color,windowSize:v,children:B.value})]}):null]}),t.jsx(vs,{windowSize:v,responsiveWidth:V[1].width,children:t.jsx(Ds,{children:ae.format(ns.visual.MMMDCommaYYYYformat)})}),t.jsx(As,{windowSize:v,responsiveWidth:V[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?ss:x?.fetchState==="In-Progress"?t.jsx(nt,{size:"Small",start:!0}):l?t.jsx(Es,{}):t.jsxs(Pt,{enterDelay:600,display:"flex",placement:"bottom",title:hs(n,C),children:[t.jsx(us,{"data-testid":Y("card-transaction-row-upload-receipt",n.id),onClick:te=>{te.stopPropagation()},children:t.jsx(lr,{name:"transactionLineAttachment",fileRef:R,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:k,multiple:!0,onFileSizeError:(te,de)=>{te&&L(!1,{code:500,message:de===!0?za.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",xt(i,0)):za.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",xt(i,0))})}})}),Lr(n,C,F,q)]})}),t.jsx(Is,{windowSize:v,responsiveWidth:V[3].width,children:t.jsx(Ts,{title:N.name,children:N.name})}),t.jsx(Ss,{windowSize:v,responsiveWidth:V[4].width,children:t.jsx($s,{windowSize:v,title:xe("0,0.[00]",n.amount),children:n.direction==="debit"?De:`-${De}`})})]})}),O&&A.length>0?fr.createPortal(t.jsx(hr,{allFiles:z,fileSource:J,file:H,title:H.fileName,attachments:A,setFileSource:U,setShowFullScreenView:T,onCrossClick:oe,setSelectedFileAttachment:Q,onDownloadClick:te=>{_(te.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},us=r.div``,ms=r.div`
|
|
691
|
-
display: flex;
|
|
692
|
-
flex-direction: row;
|
|
693
|
-
align-items: center;
|
|
694
|
-
gap: ${a.sp2};
|
|
695
|
-
margin-right: ${a.sp4};
|
|
696
|
-
`,gs=r(at)`
|
|
697
|
-
color: ${e=>e.color};
|
|
698
|
-
`,Cs=r.div`
|
|
699
|
-
display: ${e=>e.windowSize==="small"?"none":"block"};
|
|
700
|
-
width: ${a.sp1};
|
|
701
|
-
height: ${a.sp1};
|
|
702
|
-
border-radius: 100%;
|
|
703
|
-
background-color: ${e=>e.theme.colors.grey1};
|
|
704
|
-
`,fs=r.div`
|
|
705
|
-
display: flex;
|
|
706
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
707
|
-
padding-left: ${e=>Me.containerPaddingLeft.valuePx(e.windowSize)};
|
|
708
|
-
padding-right: ${e=>Me.containerPaddingRight.valuePx(e.windowSize)};
|
|
709
|
-
padding-top: ${e=>Me.containerPaddingTop.valuePx(e.windowSize)};
|
|
710
|
-
padding-bottom: ${e=>Me.containerPaddingBottom.valuePx(e.windowSize)};
|
|
711
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
712
|
-
box-shadow: ${e=>e.theme.mode==="dark"?`${p.dropShadowNormalDark} ${a.sp0} 2px ${a.sp1}`:`${a.sp0} 2px ${a.sp1} ${p.dropShadowNormalLight}`};
|
|
713
|
-
border-radius: ${a.sp2};
|
|
714
|
-
color: ${e=>e.theme.colors.hero};
|
|
715
|
-
&:hover {
|
|
716
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
717
|
-
color: ${e=>e.theme.colors.primary};
|
|
718
|
-
}
|
|
719
|
-
margin-right: ${e=>Me.containerMarginLeft.valuePx(e.windowSize)};
|
|
720
|
-
margin-left: ${e=>Me.containerMarginLeft.valuePx(e.windowSize)};
|
|
721
|
-
box-sizing: border-box;
|
|
722
|
-
align-items: center;
|
|
723
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
724
|
-
`,ws=r.div`
|
|
725
|
-
display: block;
|
|
726
|
-
width: 100%;
|
|
727
|
-
`,xs=r.div`
|
|
728
|
-
display: flex;
|
|
729
|
-
width: 100%;
|
|
730
|
-
justify-content: space-between;
|
|
731
|
-
align-items: center;
|
|
732
|
-
`,ys=r.div`
|
|
733
|
-
display: flex;
|
|
734
|
-
flex-direction: row;
|
|
735
|
-
column-gap: ${a.sp2};
|
|
736
|
-
align-items: center;
|
|
737
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
738
|
-
`,bs=r(ye)`
|
|
739
|
-
margin-right: ${e=>e.hasMarginRight?a.sp3:a.sp0};
|
|
740
|
-
color: inherit;
|
|
741
|
-
-webkit-line-clamp: ${e=>Me.webkitLineClamp.value(e.windowSize)};
|
|
742
|
-
-webkit-box-orient: vertical;
|
|
743
|
-
overflow: hidden;
|
|
744
|
-
max-width: 100%;
|
|
745
|
-
overflow: hidden;
|
|
746
|
-
text-overflow: ellipsis;
|
|
747
|
-
white-space: nowrap;
|
|
748
|
-
text-transform: capitalize;
|
|
749
|
-
`,Ss=r(ye)`
|
|
750
|
-
display: flex;
|
|
751
|
-
flex-direction: column;
|
|
752
|
-
justify-content: flex-end;
|
|
753
|
-
align-items: flex-end;
|
|
754
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
755
|
-
`,$s=r(ye)`
|
|
756
|
-
color: inherit;
|
|
757
|
-
flex-grow: 1;
|
|
758
|
-
-webkit-line-clamp: ${e=>Me.webkitLineClamp.value(e.windowSize)};
|
|
759
|
-
-webkit-box-orient: vertical;
|
|
760
|
-
overflow: hidden;
|
|
761
|
-
text-overflow: ellipsis;
|
|
762
|
-
max-width: 100%;
|
|
763
|
-
overflow: hidden;
|
|
764
|
-
text-overflow: ellipsis;
|
|
765
|
-
white-space: nowrap;
|
|
766
|
-
`,vs=r.div`
|
|
767
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
768
|
-
box-sizing: border-box;
|
|
769
|
-
display: flex;
|
|
770
|
-
align-items: flex-start;
|
|
771
|
-
flex-direction: column;
|
|
772
|
-
justify-content: center;
|
|
773
|
-
`,jr=e=>pe`
|
|
774
|
-
width: ${a.sp4};
|
|
775
|
-
height: ${a.sp4};
|
|
776
|
-
color: ${e.colors.hero};
|
|
777
|
-
`,ks=r(kr)`
|
|
778
|
-
${({theme:e})=>jr(e)}
|
|
779
|
-
`,Ls=r(vr)`
|
|
780
|
-
${({theme:e})=>jr(e)}
|
|
781
|
-
`,js=r.img`
|
|
782
|
-
display: flex;
|
|
783
|
-
width: ${a.sp4};
|
|
784
|
-
height: ${a.sp4};
|
|
785
|
-
`,Ds=r(ye)`
|
|
786
|
-
color: inherit;
|
|
787
|
-
max-width: 100%;
|
|
788
|
-
overflow: hidden;
|
|
789
|
-
text-overflow: ellipsis;
|
|
790
|
-
white-space: nowrap;
|
|
791
|
-
`,Is=r(ye)`
|
|
792
|
-
color: ${e=>e.theme.colors.hero};
|
|
793
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
794
|
-
box-sizing: border-box;
|
|
795
|
-
display: flex;
|
|
796
|
-
align-items: center;
|
|
797
|
-
`,As=r.div`
|
|
798
|
-
color: ${e=>e.theme.colors.hero};
|
|
799
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
800
|
-
box-sizing: border-box;
|
|
801
|
-
display: flex;
|
|
802
|
-
align-items: center;
|
|
803
|
-
`,Ts=r(at)`
|
|
804
|
-
color: ${e=>e.theme.colors.hero};
|
|
805
|
-
max-width: 100%;
|
|
806
|
-
overflow: hidden;
|
|
807
|
-
text-overflow: ellipsis;
|
|
808
|
-
white-space: nowrap;
|
|
809
|
-
padding: 1px 6px;
|
|
810
|
-
border-radius: ${a.sp1};
|
|
811
|
-
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
812
|
-
`,Rs=r(Ni)`
|
|
813
|
-
height: ${a.sp4};
|
|
814
|
-
width: ${a.sp4};
|
|
815
|
-
cursor: pointer;
|
|
816
|
-
color: ${e=>e.theme.colors.hero};
|
|
817
|
-
&:hover {
|
|
818
|
-
color: ${e=>e.theme.colors.primary};
|
|
819
|
-
}
|
|
820
|
-
`,Es=r(ct)`
|
|
821
|
-
height: ${a.sp4};
|
|
822
|
-
width: ${a.sp4};
|
|
823
|
-
color: ${p.success};
|
|
824
|
-
`,Fs=r(Bi)`
|
|
825
|
-
height: ${a.sp4};
|
|
826
|
-
width: ${a.sp4};
|
|
827
|
-
cursor: pointer;
|
|
828
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
829
|
-
&:hover {
|
|
830
|
-
color: ${e=>e.theme.colors.primary};
|
|
831
|
-
}
|
|
832
|
-
`,zs=r(os)`
|
|
833
|
-
height: ${a.sp4};
|
|
834
|
-
width: ${a.sp4};
|
|
835
|
-
cursor: pointer;
|
|
836
|
-
color: ${e=>e.theme.colors.hero};
|
|
837
|
-
&:hover {
|
|
838
|
-
color: ${e=>e.theme.colors.primary};
|
|
839
|
-
}
|
|
840
|
-
`,{dateFormat:Ps,spendManagement:{chargeCard:{cardDetails:Tt}},common:{strings:{hyphen:Ms}}}=he.getLocalizedStrings(),Vs={webkitLineClamp:new D(2,1,1,1,1)},Os=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,isAiCategorizationEnabledForCardsTransactions:h,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:u,cardId:s,isViewReceiptClickedImmediatelyAfterUpload:x,uploadReceiptsShowTick:l,uploadReceiptsFetchState:f,authParams:w,transaction:n,receiptRequiredAboveAmount:C,onUploadReceiptComplete:b,updateChargeCardTransactionAttachments:L,updateChargeCardTransactionReceiptsShowTick:S,updateChargeCardTransactionIsViewReceiptClicked:$,updateChargeCardTransactionUploadReceiptsFetchStatus:y,removeSnackbar:g,onChargeCardTransactionRowClick:I})=>{const v=Ce(),[O,T]=o.useState(0),[z,G]=o.useState(0),[J,U]=o.useState(0),A=W=>{U(W),_(!0),X(N[W]),ae(oe[W])};function H(W){T(W.targetTouches[0].clientX)}function Q(W){G(W.targetTouches[0].clientX)}function re(W){return W<0?N.length+W:W%N.length}function E(){O-z>50&&z!==0&&J<N.length-1?(A(re(J+1)),T(0),G(0)):O-z<-50&&z!==0&&J>0&&(A(re(J-1)),T(0),G(0))}const[K,_]=o.useState(!1),[oe,ee]=o.useState([]),[P,ae]=o.useState(null);o.useEffect(()=>{!d&&x&&(X(N[0]),k())},[d,x]);const N=n.attachments?.filter(W=>W.contentType!=null&&dr.includes(W.contentType))??[],[ie,X]=o.useState(N[0]),[j,q]=o.useState([]),[R,se]=o.useState(void 0);o.useEffect(()=>{async function W(ce){j.includes(ce.attachment_id)?console.warn(`Attachment with ID ${ce.attachment_id} is already getting downloaded`):(q([ce.attachment_id,...j]),await Sr(u,w,ce),q(pr(j,le=>le==ce.attachment_id)))}R!=null&&(W({card_id:s,transaction_id:n.id,attachment_id:R}),se(void 0))},[R]);const F=()=>{$(n.id,s,!1),_(!1),ae(null),ee([]),N.length>0&&X(N[0])},k=()=>{_(!0);const W=N.map(le=>le.id);async function ce(le){return await $r(m,w,le)}ce({card_id:s,transaction_id:n.id,attachment_ids:W}).then(le=>{ee(le),le.length>0&&ae(le[0])})},{merchant:V,createTime:B,transactionType:ne,thirdPartyTransactionId:De,zeniVendorId:Ie,zeniAccountId:Te}=n,He=()=>{d?(g(),$(n.id,s,!0)):(X(N[0]),k())},Re=o.useRef(null);async function te(W,ce){y(n.id,s,"In-Progress"),await wr(`${e}/1.0/cards/transactions/${n.id}/attachments`,w,W,ce).then(le=>{le!=null&&L(n.id,le),y(n.id,s,"Completed"),b(!0),S(n.id,s,!0),setTimeout(()=>S(n.id,s,!1),2e3)}).catch(le=>{y(n.id,s,"Error"),b(!1,le)})}const de=()=>{Re.current?.click()},M=W=>{if(W.target.files!=null){const ce=W.target.files,le=[],ze=[];for(let Pe=0;Pe<ce.length;Pe++)le.push(ce[Pe].name),ze.push(ce[Pe]);te?.(ze,le)}},Ee=cr(n.transactionStatus),ke=h?V.brandName??V.name:V.name,qe=xe("0,0.00",n.amount),Fe=ne.code==="transfer",ht=De!=null&&h&&(Fe||Te!=null&&Ie!=null),rt=Fe&&n.direction==="debit",pt=Fe&&n.direction==="credit";return t.jsxs(Ks,{windowSize:v,"data-testid":Y("card-transaction-row-small",n.id),onClick:W=>{W.stopPropagation(),ht&&I(ne.code,De)},children:[t.jsx(Xs,{children:t.jsxs(Js,{children:[t.jsxs(td,{children:[t.jsx(Ys,{children:rt?t.jsx(Hs,{}):pt?t.jsx(Ns,{}):t.jsx(rd,{src:V.logo?.url?.toString()})}),t.jsxs(id,{children:[t.jsxs(Bs,{children:[t.jsx(Qs,{windowSize:v,children:ke}),Ee.code!=="paid"?t.jsxs(Ws,{children:[t.jsx(_s,{windowSize:v}),t.jsx(Us,{color:Ee.color,windowSize:v,children:Ee.value})]}):null]}),t.jsx(ed,{children:`${Tt.paymentDate} ${B.format(Ps.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(ad,{children:[t.jsx(od,{children:n.direction==="debit"?qe:`-${qe}`}),t.jsx(Gs,{title:ne.name,children:ne.name}),t.jsx(qs,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Ms:f?.fetchState==="In-Progress"?t.jsx(nt,{size:"Small",start:!0}):l?t.jsx(Zs,{}):t.jsxs(Pa,{children:[t.jsx(Pa,{"data-testid":Y("card-transaction-row-small-upload-receipt",n.id),onClick:W=>{W.stopPropagation()},children:t.jsx(lr,{name:"transactionLineAttachment",fileRef:Re,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:M,multiple:!0,onFileSizeError:(W,ce)=>{W&&b(!1,{code:500,message:ce===!0?Tt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",xt(i,0)):Tt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",xt(i,0))})}})}),Lr(n,C,de,He)]})})]})]})}),K&&N.length>0?fr.createPortal(t.jsx(hr,{allFiles:oe,fileSource:P,file:ie,title:ie.fileName,attachments:N,setFileSource:ae,setShowFullScreenView:_,onCrossClick:F,setSelectedFileAttachment:X,onDownloadClick:W=>{se(W.id)},handleTouchStart:H,handleTouchMove:Q,handleTouchEnd:E}),document.body):null]})},Dr=e=>pe`
|
|
841
|
-
width: ${a.sp4};
|
|
842
|
-
height: ${a.sp4};
|
|
843
|
-
color: ${e.colors.hero};
|
|
844
|
-
`,Hs=r(kr)`
|
|
845
|
-
${({theme:e})=>Dr(e)}
|
|
846
|
-
`,Ns=r(vr)`
|
|
847
|
-
${({theme:e})=>Dr(e)}
|
|
848
|
-
`,Pa=r.div``,Bs=r.div`
|
|
849
|
-
display: flex;
|
|
850
|
-
gap: ${a.sp2};
|
|
851
|
-
align-items: flex-start;
|
|
852
|
-
`,Ws=r.div`
|
|
853
|
-
display: flex;
|
|
854
|
-
flex-direction: row;
|
|
855
|
-
align-items: center;
|
|
856
|
-
gap: ${a.sp2};
|
|
857
|
-
min-height: ${a.sp4};
|
|
858
|
-
`,Us=r(at)`
|
|
859
|
-
color: ${e=>e.color};
|
|
860
|
-
`,_s=r.div`
|
|
861
|
-
display: block;
|
|
862
|
-
width: ${a.sp1};
|
|
863
|
-
height: ${a.sp1};
|
|
864
|
-
border-radius: 100%;
|
|
865
|
-
background-color: ${e=>e.theme.colors.grey1};
|
|
866
|
-
`,Zs=r(ct)`
|
|
867
|
-
height: ${a.sp4};
|
|
868
|
-
width: ${a.sp4};
|
|
869
|
-
color: ${p.success};
|
|
870
|
-
`,Ys=r.div``,qs=r.div`
|
|
871
|
-
margin-top: ${a.sp2};
|
|
872
|
-
`,Gs=r(at)`
|
|
873
|
-
color: ${e=>e.theme.colors.hero};
|
|
874
|
-
max-width: 100%;
|
|
875
|
-
overflow: hidden;
|
|
876
|
-
text-overflow: ellipsis;
|
|
877
|
-
white-space: nowrap;
|
|
878
|
-
padding: 1px 6px;
|
|
879
|
-
border-radius: ${a.sp1};
|
|
880
|
-
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
881
|
-
`,Ks=r.div`
|
|
882
|
-
display: flex;
|
|
883
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
884
|
-
border: ${e=>` 1px solid ${e.theme.colors.grey3}`};
|
|
885
|
-
padding: ${a.sp3};
|
|
886
|
-
box-shadow: ${e=>`${a.sp0} 1px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
887
|
-
border-radius: ${a.sp2};
|
|
888
|
-
color: ${e=>e.theme.colors.hero};
|
|
889
|
-
&:hover {
|
|
890
|
-
color: ${e=>e.theme.colors.primary};
|
|
891
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
892
|
-
}
|
|
893
|
-
margin-right: ${a.sp3};
|
|
894
|
-
margin-left: ${a.sp3};
|
|
895
|
-
`,Xs=r.div`
|
|
896
|
-
display: block;
|
|
897
|
-
width: 100%;
|
|
898
|
-
`,Js=r.div`
|
|
899
|
-
display: flex;
|
|
900
|
-
width: 100%;
|
|
901
|
-
justify-content: space-between;
|
|
902
|
-
`,Qs=r(ye)`
|
|
903
|
-
color: inherit;
|
|
904
|
-
flex-grow: 1;
|
|
905
|
-
display: -webkit-box;
|
|
906
|
-
-webkit-line-clamp: ${e=>Vs.webkitLineClamp.value(e.windowSize)};
|
|
907
|
-
-webkit-box-orient: vertical;
|
|
908
|
-
overflow: hidden;
|
|
909
|
-
text-overflow: ellipsis;
|
|
910
|
-
max-width: 112px;
|
|
911
|
-
overflow: hidden;
|
|
912
|
-
text-overflow: ellipsis;
|
|
913
|
-
text-transform: capitalize;
|
|
914
|
-
`,ed=r(at)`
|
|
915
|
-
color: inherit;
|
|
916
|
-
min-height: 18px;
|
|
917
|
-
margin-top: -${a.sp1};
|
|
918
|
-
`,td=r.div`
|
|
919
|
-
display: flex;
|
|
920
|
-
flex-direction: row;
|
|
921
|
-
gap: ${a.sp2};
|
|
922
|
-
`,ad=r.div`
|
|
923
|
-
display: flex;
|
|
924
|
-
flex-direction: column;
|
|
925
|
-
align-items: flex-end;
|
|
926
|
-
`,rd=r.img`
|
|
927
|
-
display: flex;
|
|
928
|
-
width: ${a.sp4};
|
|
929
|
-
height: ${a.sp4};
|
|
930
|
-
`,id=r.div`
|
|
931
|
-
margin-bottom: 6px;
|
|
932
|
-
`,od=r(ye)`
|
|
933
|
-
color: inherit;
|
|
934
|
-
`,nd=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"})))),sd=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:tt}},common:dd}=he.getLocalizedStrings();function cd({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,uploadReceiptsFetchStateByTransactionId:h,uploadReceiptsShowTickByTransactionId:m,isViewReceiptClickedImmediatelyAfterUploadTransactionId:u,cardId:s,receiptRequiredAboveAmount:x,isAiCategorizationEnabledForCardsTransactions:l,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:w,cardsEndPoint:n,authParams:C,hideSorting:b,isOwnCard:L,uiState:S,fetchState:$,cardHolderUser:y,cardStatusCode:g="active",cardCodeType:I="business_virtual_credit_card",onReloadTransactions:v,onFetchChargeCardTransactionList:O,onColumnSortConfigChanged:T,removeSnackbar:z,onChargeCardTransactionRowClick:G,onUploadReceiptComplete:J,onUpdateScrollYOffset:U,updateChargeCardTransactionAttachments:A,updateChargeCardTransactionUploadReceiptsFetchStatus:H,updateChargeCardTransactionReceiptsShowTick:Q,updateChargeCardTransactionIsViewReceiptClicked:re}){const E=Ce(),K=o.useRef(null),[_,oe]=o.useState(!1);o.useEffect(()=>{K.current?.resetAfterIndex(0)},[E,K]),o.useEffect(()=>{$==="Completed"&&oe(!1)},[$]);const ee=()=>E!=="small"?74:128,P=(X,j)=>{O(X,j)},ae=()=>{oe(!0),P(S.pageToken,S.pageTokenType)},N=X=>X<e.length,ie=()=>{S.pageToken!=null&&$==="Completed"&&ae()};return t.jsxs(fd,{isOwnCard:L,windowSize:E,isEmptyTransaction:e.length===0,children:[t.jsx(wd,{windowSize:E,children:$==="Error"?t.jsxs(bd,{children:[t.jsx(Sd,{onClick:v,"data-testid":Y("card-transaction-list-reload"),children:t.jsx(er,{})}),t.jsx($d,{children:dd.reloadPage.label})]}):$==="Not-Started"||$==="In-Progress"&&e.length===0?t.jsx(kd,{children:t.jsx(nt,{size:"ExtraLarge",start:!0})}):$==="Completed"||$==="In-Progress"&&e.length>0?g==="request_on_hold"?t.jsx(hd,{cardType:I,cardHolderUser:y}):g==="inactive"?t.jsx(pd,{cardHolderUser:y}):e.length===0?t.jsx(ld,{}):t.jsx(yd,{windowSize:E,children:t.jsx(gi,{children:({height:X,width:j})=>t.jsx(Ci,{isItemLoaded:N,itemCount:e.length+1,loadMoreItems:ie,children:({onItemsRendered:q})=>t.jsx(fi,{ref:K,height:X,itemCount:e.length,onItemsRendered:q,itemSize:ee,itemKey:R=>e[R].id,width:j,style:{willChange:"auto"},innerElementType:R=>Cd(R,b,S,$,T),onScroll:({scrollOffset:R})=>{U?.(R)},initialScrollOffset:S.scrollYOffset,children:R=>t.jsx(ud,{...R,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:l,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:w,uploadReceiptsFetchStateByTransactionId:h,uploadReceiptsShowTickByTransactionId:m,isViewReceiptClickedImmediatelyAfterUploadTransactionId:u,cardId:s,authParams:C,transactions:e,receiptRequiredAboveAmount:x,updateChargeCardTransactionAttachments:A,onUploadReceiptComplete:J,updateChargeCardTransactionUploadReceiptsFetchStatus:H,updateChargeCardTransactionReceiptsShowTick:Q,updateChargeCardTransactionIsViewReceiptClicked:re,onChargeCardTransactionRowClick:G,removeSnackbar:z})})})})}):null}),_===!0?t.jsx(Ld,{children:t.jsx(nt,{size:"Small",start:!0})}):null]})}const ld=()=>{const e=Ce();return t.jsxs(Nt,{children:[t.jsx(_t,{children:t.jsx(Ar,{})}),t.jsxs(Bt,{children:[t.jsx(Wt,{children:tt.transactionTable.emptyTransactions.title}),t.jsx(Ut,{windowSize:e,children:tt.transactionTable.emptyTransactions.subTitle})]})]})},hd=({cardType:e,cardHolderUser:i})=>{const d=i!=null?i.firstName+" "+i.lastName:"",h=Ce();return t.jsxs(Nt,{children:[t.jsx(_t,{children:t.jsx(Dd,{})}),t.jsxs(Bt,{children:[t.jsx(Wt,{children:tt.transactionTable.pendingProfileCompletion.title}),t.jsx(Ut,{windowSize:h,children:tt.transactionTable.pendingProfileCompletion.subTitle[e].replace("__user__",d)})]})]})},pd=({cardHolderUser:e})=>{const i=Ce();return t.jsxs(Nt,{children:[t.jsx(_t,{children:t.jsx(Ar,{})}),t.jsxs(Bt,{children:[t.jsx(Wt,{children:tt.transactionTable.pendingActivation.title}),t.jsx(Ut,{windowSize:i,children:tt.transactionTable.pendingActivation.subTitle.replace("__user__",e?.firstName??"")})]})]})},ud=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,style:h,transactions:m,isAiCategorizationEnabledForCardsTransactions:u,uploadReceiptsFetchStateByTransactionId:s,uploadReceiptsShowTickByTransactionId:x,isViewReceiptClickedImmediatelyAfterUploadTransactionId:l,cardId:f,cardsEndPoint:w,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,receiptRequiredAboveAmount:b,authParams:L,updateChargeCardTransactionAttachments:S,onUploadReceiptComplete:$,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:g,updateChargeCardTransactionIsViewReceiptClicked:I,onChargeCardTransactionRowClick:v,removeSnackbar:O})=>t.jsx(vd,{style:{...h,width:"100%"},className:"spend-management-list-item",children:t.jsx(gd,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,cardId:f,isAiCategorizationEnabledForCardsTransactions:u,cardsEndPoint:w,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,authParams:L,receiptRequiredAboveAmount:b,transaction:m[e],uploadReceiptsFetchState:s?.[m[e].id],uploadReceiptsShowTick:x?.[m[e].id],isViewReceiptClickedImmediatelyAfterUpload:l?.[m[e].id],updateChargeCardTransactionAttachments:S,onUploadReceiptComplete:$,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:g,updateChargeCardTransactionIsViewReceiptClicked:I,onChargeCardTransactionRowClick:v,removeSnackbar:O},m[e].id)}),md=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,isAiCategorizationEnabledForCardsTransactions:h,uploadReceiptsFetchState:m,uploadReceiptsShowTick:u,isViewReceiptClickedImmediatelyAfterUpload:s,cardsEndPoint:x,transactionAttachmentsEndpointToFetch:l,transactionAttachmentEndpointToDownload:f,cardId:w,receiptRequiredAboveAmount:n,authParams:C,updateChargeCardTransactionAttachments:b,onUploadReceiptComplete:L,updateChargeCardTransactionUploadReceiptsFetchStatus:S,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:y,onChargeCardTransactionRowClick:g,removeSnackbar:I})=>{const v=Ce()==="small"?Os:ps;return t.jsx(v,{isSnackbarOpen:d,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:h,transactionAttachmentsEndpointToFetch:l,transactionAttachmentEndpointToDownload:f,uploadReceiptsFetchState:m,uploadReceiptsShowTick:u,isViewReceiptClickedImmediatelyAfterUpload:s,transaction:e,cardId:w,receiptRequiredAboveAmount:n,cardsEndPoint:x,authParams:C,updateChargeCardTransactionAttachments:b,onUploadReceiptComplete:L,updateChargeCardTransactionUploadReceiptsFetchStatus:S,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:y,onChargeCardTransactionRowClick:g,removeSnackbar:I})},gd=o.memo(md),Cd=(e,i,d,h,m)=>t.jsx(Ir,{...e,onColumnSortConfigChanged:m,hideSorting:i,uiState:{sortKey:d.sortKey,sortOrder:d.sortOrder},fetchState:h}),Ir=o.forwardRef((e,i)=>{const{children:d,style:h,uiState:m,onColumnSortConfigChanged:u,hideSorting:s,...x}=e;return t.jsxs(jd,{ref:i,style:{...h,width:"auto"},...x,children:[t.jsx(Gn,{onColumnSortConfigChanged:u,sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},hideSorting:s}),t.jsx(xd,{children:d})]})});Ir.displayName="Charge Card Transaction list View inner element type";const fd=r.div`
|
|
935
|
-
display: block;
|
|
936
|
-
height: ${e=>e.isEmptyTransaction?"calc(100vh - 436px)":"calc(100vh - 224px)"};
|
|
937
|
-
width: 100%;
|
|
938
|
-
`,wd=r.div`
|
|
939
|
-
height: 100%;
|
|
940
|
-
`,xd=r.div`
|
|
941
|
-
position: relative;
|
|
942
|
-
width: auto;
|
|
943
|
-
height: 100%;
|
|
944
|
-
`,yd=r.div`
|
|
945
|
-
height: 100%;
|
|
946
|
-
display: flex;
|
|
947
|
-
flex-direction: column;
|
|
948
|
-
max-width: 99.9%;
|
|
949
|
-
`,bd=r.div`
|
|
950
|
-
display: flex;
|
|
951
|
-
width: 100%;
|
|
952
|
-
height: calc(100% - 60px);
|
|
953
|
-
flex-direction: column;
|
|
954
|
-
justify-content: center;
|
|
955
|
-
align-items: center;
|
|
956
|
-
`,Sd=r.div`
|
|
957
|
-
height: 96px;
|
|
958
|
-
width: 96px;
|
|
959
|
-
background: ${e=>e.theme.colors.background};
|
|
960
|
-
border-radius: 50%;
|
|
961
|
-
cursor: pointer;
|
|
962
|
-
& svg {
|
|
963
|
-
margin: ${a.sp5};
|
|
964
|
-
color: ${e=>e.theme.colors.grey1};
|
|
965
|
-
}
|
|
966
|
-
&:hover {
|
|
967
|
-
& svg {
|
|
968
|
-
color: ${e=>e.theme.colors.primary};
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
`,$d=r(Mt)`
|
|
972
|
-
margin-top: ${a.sp3};
|
|
973
|
-
color: ${e=>e.theme.colors.hero};
|
|
974
|
-
`,vd=r.div`
|
|
975
|
-
top: ${a.sp0};
|
|
976
|
-
left: ${a.sp0};
|
|
977
|
-
padding-bottom: ${a.sp3};
|
|
978
|
-
box-sizing: border-box;
|
|
979
|
-
`,kd=r.div`
|
|
980
|
-
display: flex;
|
|
981
|
-
width: 100%;
|
|
982
|
-
height: 100%;
|
|
983
|
-
flex-direction: row;
|
|
984
|
-
justify-content: center;
|
|
985
|
-
align-items: center;
|
|
986
|
-
margin-top: ${a.sp3};
|
|
987
|
-
margin-bottom: ${a.sp3};
|
|
988
|
-
`,Ld=r.div`
|
|
989
|
-
display: flex;
|
|
990
|
-
width: 100%;
|
|
991
|
-
height: auto;
|
|
992
|
-
padding-bottom: ${a.sp3};
|
|
993
|
-
flex-direction: row;
|
|
994
|
-
justify-content: center;
|
|
995
|
-
align-items: center;
|
|
996
|
-
`,Nt=r.div`
|
|
997
|
-
display: flex;
|
|
998
|
-
justify-content: center;
|
|
999
|
-
align-items: center;
|
|
1000
|
-
flex-direction: column;
|
|
1001
|
-
gap: ${a.sp2};
|
|
1002
|
-
height: 100%;
|
|
1003
|
-
margin: ${a.sp0} ${a.sp3};
|
|
1004
|
-
`,Bt=r.div`
|
|
1005
|
-
display: flex;
|
|
1006
|
-
flex-direction: column;
|
|
1007
|
-
align-items: center;
|
|
1008
|
-
`,Wt=r(Ti)`
|
|
1009
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
1010
|
-
`,Ut=r(Ri)`
|
|
1011
|
-
color: ${e=>e.theme.colors.primary};
|
|
1012
|
-
${e=>e.windowSize!=="small"?pe`
|
|
1013
|
-
white-space: pre;
|
|
1014
|
-
`:null};
|
|
1015
|
-
text-align: center;
|
|
1016
|
-
`,_t=r.div``,jd=r.div``,Ar=r(nd)``,Dd=r(sd)``,{spendManagement:Id}=he.getLocalizedStrings(),{cardDetails:Ae}=Id.chargeCard,Ad=ur`
|
|
1017
|
-
from {
|
|
1018
|
-
transform: translateX(100%);
|
|
1019
|
-
}
|
|
1020
|
-
to {
|
|
1021
|
-
transform: translateX(0);
|
|
1022
|
-
}
|
|
1023
|
-
`,Td=e=>{switch(e){case"slide-in-right-to-left-add-to-wallet":return Ad;default:return null}},Rd=r.div`
|
|
1024
|
-
display: flex;
|
|
1025
|
-
flex-direction: column;
|
|
1026
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1027
|
-
height: inherit;
|
|
1028
|
-
`,Ed=r(Rd)`
|
|
1029
|
-
animation: ${e=>Td(e.className)} 0.3s forwards;
|
|
1030
|
-
`,Fd=({chargeCardDetailView:e,walletType:i,secretRevealed:d,isDrawerOpen:h,vgsVaultId:m,showSecretInfo:u,changePinInProcess:s,isSandboxEnv:x,controllerEmails:l,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:n,isChargeCardSetupEnabled:C,chargeCardCashbackDetailState:b,isCardDetailErrored:L,creditAccountRepayment:S,productInformation:$,creditAccountInformation:y,debitAccountInformation:g,cashbackInformation:I,signedInUserToken:v,selectedColor:O,showDrawerAnimation:T,cardDetailsFetchState:z,setCardDetailsFetchState:G,setIsCardDetailErrored:J,setShowSecretInfo:U,setSecretRevealed:A,setShowChangePinPopup:H,setIsAddToWalletDrawerOpen:Q,isCardDetailFetching:re,handleColorCodeClick:E,onFireOnClickAnalytics:K,onVerifyOtp:_,onVerifyOtpSuccess:oe,onResendOtp:ee,onFireVerifyPopOnClickAnalytics:P,onGetOtp:ae})=>{const N=Ye(),[ie,X]=o.useState(!1),[j,q]=o.useState(!1),R=T.current;return o.useEffect(()=>{h?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[h,T]),t.jsx(Qr,{onClose:()=>{Q(!1)},anchor:"right",open:!0,PaperProps:{style:{maxWidth:"512px",boxShadow:"none",background:"transparent"}},style:{backgroundColor:p.drawerBackground,display:h?"unset":"none"},disableScrollLock:!h,transitionDuration:250,"data-testid":Y("add-card-to-wallet-drawer"),children:t.jsxs(t.Fragment,{children:[t.jsx(Ja,{phoneNumberPopupDescription:Ae.verifyPhoneNumberDescription,showOtpPopup:ie,showPhoneNumberPopup:j,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:_,onVerifyOtpSuccess:se=>{oe(se),s?H(!0):U(!0)},onFireVerifyPopOnClickAnalytics:P,setShowOtpPopup:X,onResendOtp:ee,setShowPhoneNumberPopup:q,onGetOtp:ae}),t.jsxs(Ed,{className:R,children:[t.jsx(ei,{title:i==="apple"?Ae.addCardToAppleWallet:Ae.addCardToGoogleWallet,style:{zIndex:4},backgroundColor:N.colors.grey4,onCloseClick:()=>Q(!1)}),t.jsxs(Pd,{children:[t.jsxs(Hd,{children:[t.jsxs(Md,{children:[t.jsx(Yd,{children:t.jsx(Gd,{})}),t.jsx(Bd,{children:Ae.openWalletAppOnPhone})]}),t.jsx(Wd,{children:i==="apple"?Ae.openWalletDescriptionApple:Ae.openWalletDescriptionGoogle}),t.jsx(yr,{chargeCardDetailView:e,creditAccountRepayment:S,creditAccount:e.creditAccount,setShowSecretInfo:U,secretRevealed:d,isOwnCard:!0,controllerEmails:l,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:n,isChargeCardSetupEnabled:C,chargeCardCashbackDetailState:b,isShowingInDrawer:!0,vgsVaultId:m,showSecretInfo:u,isSandboxEnv:x,isCardDetailErrored:L,signedInUserToken:v,productInformation:$,creditAccountInformation:y,debitAccountInformation:g,cashbackInformation:I,selectedColor:O,cardDetailsFetchState:z,setCardDetailsFetchState:G,setIsCardDetailErrored:J,setSecretRevealed:A,isCardDetailFetching:re,handleColorCodeClick:E,onFireOnClickAnalytics:K,setShowPhoneNumberForOtp:q})]}),t.jsx(Od,{}),t.jsxs(Nd,{children:[t.jsxs(Vd,{children:[t.jsx(Zd,{children:t.jsx(qd,{})}),t.jsx(Ud,{children:Ae.verifyCard})]}),t.jsx(zd,{children:t.jsx(_d,{children:i==="apple"?Ae.VerifyCardDescriptionApple:Ae.VerifyCardDescriptionGoogle})})]})]})]})]})})},zd=r.div`
|
|
1031
|
-
display: flex;
|
|
1032
|
-
justify-content: end;
|
|
1033
|
-
`,Pd=r.div`
|
|
1034
|
-
margin: ${a.sp3} ${a.sp8};
|
|
1035
|
-
`,Md=r.div`
|
|
1036
|
-
display: flex;
|
|
1037
|
-
align-items: center;
|
|
1038
|
-
gap: ${a.sp3};
|
|
1039
|
-
`,Vd=r.div`
|
|
1040
|
-
display: flex;
|
|
1041
|
-
align-items: center;
|
|
1042
|
-
gap: ${a.sp3};
|
|
1043
|
-
`,Od=r.div`
|
|
1044
|
-
height: ${a.sp4};
|
|
1045
|
-
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
1046
|
-
width: ${a.sp0};
|
|
1047
|
-
margin-left: ${a.sp8};
|
|
1048
|
-
`,Hd=r.div`
|
|
1049
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1050
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1051
|
-
border-radius: ${a.sp2};
|
|
1052
|
-
padding: ${a.sp4} ${a.sp5};
|
|
1053
|
-
box-shadow: ${a.sp0} 1px 2px
|
|
1054
|
-
${e=>e.theme.colors.dropShadowNormal};
|
|
1055
|
-
`,Nd=r.div`
|
|
1056
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1057
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1058
|
-
border-radius: ${a.sp2};
|
|
1059
|
-
padding: ${a.sp4} ${a.sp5};
|
|
1060
|
-
box-shadow: ${a.sp0} 1px 2px
|
|
1061
|
-
${e=>e.theme.colors.dropShadowNormal};
|
|
1062
|
-
`,Bd=r(Ot)`
|
|
1063
|
-
color: ${e=>e.theme.colors.primary};
|
|
1064
|
-
`,Wd=r(ye)`
|
|
1065
|
-
color: ${e=>e.theme.colors.hero};
|
|
1066
|
-
margin-left: ${a.sp9};
|
|
1067
|
-
padding-bottom: ${a.sp4};
|
|
1068
|
-
`,Ud=r(Ot)`
|
|
1069
|
-
color: ${e=>e.theme.colors.primary};
|
|
1070
|
-
`,_d=r(ye)`
|
|
1071
|
-
color: ${e=>e.theme.colors.hero};
|
|
1072
|
-
max-width: 274px;
|
|
1073
|
-
`,Zd=r.div`
|
|
1074
|
-
padding: 12px;
|
|
1075
|
-
border-radius: ${a.sp4};
|
|
1076
|
-
background: ${p.successLight};
|
|
1077
|
-
display: flex;
|
|
1078
|
-
`,Yd=r.div`
|
|
1079
|
-
padding: 12px;
|
|
1080
|
-
border-radius: ${a.sp4};
|
|
1081
|
-
background: ${e=>e.theme.colors.graphColor16Light};
|
|
1082
|
-
display: flex;
|
|
1083
|
-
`,qd=r(bi)`
|
|
1084
|
-
width: ${a.sp4};
|
|
1085
|
-
height: ${a.sp4};
|
|
1086
|
-
`,Gd=r(Gi)`
|
|
1087
|
-
width: ${a.sp4};
|
|
1088
|
-
height: ${a.sp4};
|
|
1089
|
-
color: ${e=>e.theme.colors.graphColor16Dark};
|
|
1090
|
-
`,{spendManagement:{chargeCard:{cardDetails:Be}},common:{strings:Kd}}=he.getLocalizedStrings(),Zt={iFrameWidth:new D(188,188)};function Xd({isSandboxEnv:e,cardProviderID:i,vgsVaultId:d,signedInUserToken:h,onCancelClick:m,onUpdateDebitCardPinAttempt:u,onChangePinSuccess:s}){const x=Ce(),l=Ye(),[f,w]=o.useState({}),[n,C]=o.useState(!1),[b,L]=o.useState(!1),[S,$]=o.useState(!0),[y,g]=o.useState(!0),[I,v]=o.useState(!1),[O,T]=o.useState(!1),[z,G]=o.useState(!1),[J,U]=o.useState(!1),[A,H]=o.useState(!1),[Q,re]=o.useState(!1),[E,K]=o.useState(!1),[_,oe]=o.useState(null),[ee,P]=o.useState(null),[ae]=Qa("https://js.verygoodvault.com/vgs-collect/2.27.0/vgs-collect.js"),N=e?"SANDBOX":"live";o.useEffect(()=>{if(ae){const j=window.VGSCollect.create(d,N,se=>{const F=se["data.attributes.oldPin"],k=se["data.attributes.newPin"];F?.isTouched===!0&&F?.isValid===!1&&F?.isFocused===!1?U(!0):(F?.isTouched===!0&&F?.isValid===!0&&F?.isFocused===!1||F?.isTouched===!0&&F?.isValid===!0&&F?.isFocused===!0)&&(U(!1),K(!1)),k?.isTouched===!0&&k?.isValid===!1&&k?.isFocused===!1?H(!0):(k?.isTouched===!0&&k?.isValid===!0&&k?.isFocused===!1||k?.isTouched===!0&&k?.isValid===!0&&k?.isFocused===!0)&&H(!1)}),q=j.field("#oldPin",{type:"text",name:"data.attributes.oldPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{...Z.standardRegular.cssObject,border:"none",boxSizing:"border-box",color:l.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:l.colors.grey1,...Z.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:p.important,background:p.importantLight},"&:focus":{background:`${l.colors.background} !important`,textAlign:"left",color:`${l.colors.primary} !important`}}}),R=j.field("#newPin",{type:"text",name:"data.attributes.newPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{...Z.standardRegular.cssObject,border:"none",boxSizing:"border-box",color:l.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:l.colors.grey1,...Z.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:p.important,background:p.importantLight},"&:focus":{background:`${l.colors.background} !important`,textAlign:"left",color:`${l.colors.primary} !important`}}});oe(q),P(R),w(j),Promise.all([q.promise,R.promise]).then(function(){L(!0)})}},[ae]),o.useEffect(()=>{_?.update({hideValue:S})},[_,S]),o.useEffect(()=>{ee?.update({hideValue:y})},[ee,y]);const ie=j=>{C(!0),K(!1),f.submit?.("/cards/"+i+"/secure-data/pin",{method:"PUT",mapDotToObject:"true",headers:{"Content-Type":"application/vnd.api+json",Authorization:"Bearer "+j?.token}},function(q,R){q===200?(v(!1),T(!1),s(),u("success")):(U(!0),u("failed"),R.errors?.[0].title.toLowerCase().includes("max")?re(!0):R.errors?.[0].title.toLowerCase().includes("invalid")&&K(!0),C(!1))},q=>{console.log("error",q),C(!1)})},X={onOkClick:()=>{if(!f.state)return;const j=f.state["data.attributes.newPin"]?.isValid,q=f.state["data.attributes.oldPin"]?.isValid;G(!0),j===!0&&q===!0&&ie(h)},onCancelClick:m};return t.jsx(Xr,{titleComponent:t.jsx(Jd,{children:Be.changePin}),descriptionComponent:t.jsxs(Qd,{children:[t.jsxs(ic,{children:[t.jsxs(Wa,{showFieldError:J,windowSize:x,isFirstField:!0,validation:z,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),oldPinInputHighlighted:I,children:[t.jsx(Ha,{children:Be.existingPin}),t.jsxs(Na,{windowSize:x,children:[t.jsx(rc,{id:"oldPin",className:"cc-old-pin-form-field",windowSize:x}),t.jsx(Ma,{onClick:()=>$(!S),"data-testid":Y("cc-old-pin-show-text"),children:S?t.jsx(Va,{}):t.jsx(Oa,{})})]})]}),t.jsx(tc,{}),t.jsxs(Wa,{showFieldError:A,windowSize:x,isFirstField:!1,validation:z,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),newPinInputHighlighted:O,children:[t.jsx(Ha,{children:Be.newPin}),t.jsxs(Na,{windowSize:x,children:[t.jsx(ac,{id:"newPin",className:"cc-new-pin-form-field",windowSize:x}),t.jsx(Ma,{onClick:()=>g(!y),"data-testid":Y("cc-new-pin-show-text"),children:y?t.jsx(Va,{}):t.jsx(Oa,{})})]})]})]}),E?t.jsx(Ba,{children:Be.incorrectCurrentPIN}):null,Q?t.jsx(Ba,{children:Be.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:b===!1||Q,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:X,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(Jr,{children:[t.jsx(ec,{children:Be.forgotYourPin}),Kd.space,Be.callTollFree]})})}const Jd=r(or)`
|
|
1091
|
-
margin-top: ${a.sp7};
|
|
1092
|
-
padding-left: ${a.sp8};
|
|
1093
|
-
padding-right: ${a.sp8};
|
|
1094
|
-
color: ${e=>e.theme.colors.primary};
|
|
1095
|
-
word-break: break-word;
|
|
1096
|
-
`,Qd=r(wi)`
|
|
1097
|
-
margin-top: ${a.sp5};
|
|
1098
|
-
margin-bottom: ${a.sp5};
|
|
1099
|
-
`,ec=r.span`
|
|
1100
|
-
color: ${e=>e.theme.colors.primary};
|
|
1101
|
-
`,Ma=r.div`
|
|
1102
|
-
cursor: pointer;
|
|
1103
|
-
margin-left: ${a.sp2};
|
|
1104
|
-
`,Va=r(xi)`
|
|
1105
|
-
height: ${a.sp4};
|
|
1106
|
-
width: ${a.sp4};
|
|
1107
|
-
color: ${e=>e.theme.colors.hero};
|
|
1108
|
-
`,Oa=r(yi)`
|
|
1109
|
-
height: ${a.sp4};
|
|
1110
|
-
width: ${a.sp4};
|
|
1111
|
-
color: ${e=>e.theme.colors.hero};
|
|
1112
|
-
`,Ha=r.label`
|
|
1113
|
-
margin-top: ${a.sp2};
|
|
1114
|
-
`,Na=r.div`
|
|
1115
|
-
display: flex;
|
|
1116
|
-
flex-direction: row;
|
|
1117
|
-
align-items: center;
|
|
1118
|
-
max-width: 220px;
|
|
1119
|
-
`,Ba=r(ye)`
|
|
1120
|
-
color: ${p.important};
|
|
1121
|
-
display: flex;
|
|
1122
|
-
flex-direction: column;
|
|
1123
|
-
align-items: center;
|
|
1124
|
-
text-align: right;
|
|
1125
|
-
margin-top: ${a.sp3};
|
|
1126
|
-
`,tc=r.div`
|
|
1127
|
-
display: flex;
|
|
1128
|
-
flex: 1;
|
|
1129
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
1130
|
-
min-height: 1px;
|
|
1131
|
-
max-height: 1px;
|
|
1132
|
-
`,ac=r.div`
|
|
1133
|
-
border-radius: ${a.sp1};
|
|
1134
|
-
height: ${a.sp6};
|
|
1135
|
-
width: ${e=>Zt.iFrameWidth.valuePx(e.windowSize)};
|
|
1136
|
-
`,rc=r.div`
|
|
1137
|
-
border-radius: ${a.sp1};
|
|
1138
|
-
height: ${a.sp6};
|
|
1139
|
-
width: ${e=>Zt.iFrameWidth.valuePx(e.windowSize)};
|
|
1140
|
-
`,ic=r.div`
|
|
1141
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1142
|
-
border-radius: ${a.sp2};
|
|
1143
|
-
`,Wa=r.div`
|
|
1144
|
-
display: flex;
|
|
1145
|
-
padding: ${a.sp2};
|
|
1146
|
-
padding-left: ${a.sp4};
|
|
1147
|
-
align-items: start;
|
|
1148
|
-
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1149
|
-
border-radius: ${a.sp2};
|
|
1150
|
-
justify-content: space-between;
|
|
1151
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1152
|
-
gap: 11px;
|
|
1153
|
-
&:hover {
|
|
1154
|
-
z-index: 1;
|
|
1155
|
-
outline: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
1156
|
-
}
|
|
1157
|
-
iframe {
|
|
1158
|
-
height: 100%;
|
|
1159
|
-
width: ${e=>Zt.iFrameWidth.valuePx(e.windowSize)};
|
|
1160
|
-
}
|
|
1161
|
-
.cc-new-pin-form-field {
|
|
1162
|
-
background: ${e=>e.showFieldError?p.importantLight:e.newPinInputHighlighted===!0?e.theme.colors.background:"unset"};
|
|
1163
|
-
}
|
|
1164
|
-
.cc-old-pin-form-field {
|
|
1165
|
-
background: ${e=>e.showFieldError?p.importantLight:e.oldPinInputHighlighted===!0?e.theme.colors.background:"unset"};
|
|
1166
|
-
}
|
|
1167
|
-
${e=>e.isFirstField?pe`
|
|
1168
|
-
border-bottom-left-radius: ${a.sp0};
|
|
1169
|
-
border-bottom-right-radius: ${a.sp0};
|
|
1170
|
-
`:pe`
|
|
1171
|
-
border-top-left-radius: ${a.sp0};
|
|
1172
|
-
border-top-right-radius: ${a.sp0};
|
|
1173
|
-
`}
|
|
1174
|
-
${e=>e.validation?pe`
|
|
1175
|
-
.vgs-collect-container__invalid:not(.vgs-collect-container__focused) {
|
|
1176
|
-
background: ${p.importantLight};
|
|
1177
|
-
}
|
|
1178
|
-
.vgs-collect-container__focused) {
|
|
1179
|
-
background: ${e.theme.colors.background};
|
|
1180
|
-
}
|
|
1181
|
-
`:null}
|
|
1182
|
-
`,Qe="spendLimit",Ue=he.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:Rt}=he.getLocalizedStrings();function oc({controllerEmails:e,isChargeCardFeatureEnabled:i,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:m,chargeCardDetailView:u,creditAccount:s,creditAccountRepayment:x,signedInUser:l,isDebitCard:f,classListFetchState:w,currentLimitAmount:n,currentSpentAmount:C,productInformation:b,creditAccountInformation:L,debitAccountInformation:S,maxLimitAmount:$,isDisabled:y,updateLimitFetchState:g,recommendations:I,cardIssuedByRoles:v,cardHolderRoles:O,loggedInUserRole:T,cardIssuedByDepartmentName:z,cardHolderDepartmentName:G,onCancelClick:J,onSubmitClick:U}){const A=dt().analytics,H=Ce(),Q="SpendLimitForm",re=st();Ze.hasChargeCardAdminLevelAccess(re.loggedInUserRoleMap);const E=ti({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[Qe]:void 0}}),{control:K,formState:{errors:_}}=E,[oe,ee]=o.useState(void 0),P=ai({control:K,name:Qe}),ae=u.chargeCard?.type.code.includes("physical")===!0?u.chargeCard.cardActivationAttemptHistory[0]?.timestamp:u.chargeCard?.createTime,N=(u?.chargeCard?.recommendations??[]).map(k=>k.creditLimit.amount),ie=()=>{Ua({analytics:A,controllerEmails:e,isChargeCardFeatureEnabled:i,chargeCardDetailView:u,creditAccount:s,creditAccountRepayment:x,signedInUser:l,isDebitCard:f,classListFetchState:w,currentLimitAmount:n,recommendedLimitAmounts:N,cardActivationDate:ae,cardIssuedByRoles:v,cardHolderRoles:O,cardIssuedByDepartmentName:z,cardHolderDepartmentName:G,loggedInUserRole:T,clickItem:"Cancel",newSpendLimitAmount:P,productInformation:b,creditAccountInformation:L,debitAccountInformation:S}),J()},X=E.handleSubmit(()=>{const k=E.getValues(Qe);k!=null&&(Ua({analytics:A,controllerEmails:e,isChargeCardFeatureEnabled:i,chargeCardDetailView:u,creditAccount:s,creditAccountRepayment:x,signedInUser:l,isDebitCard:f,classListFetchState:w,currentLimitAmount:n,recommendedLimitAmounts:N,cardActivationDate:ae,cardIssuedByRoles:v,cardHolderRoles:O,cardIssuedByDepartmentName:z,cardHolderDepartmentName:G,loggedInUserRole:T,productInformation:b,creditAccountInformation:L,debitAccountInformation:S,clickItem:"Update",newSpendLimitAmount:k}),U(k))}),j=k=>{E.setValue(Qe,k,{shouldValidate:!0})},q=ri(_,Qe),R=he.getLocalizedStrings().common,se=Ct.largeLabelWidth.value(H);o.useEffect(()=>{ee(nc(C,$,P))},[P,C,$]);const F=(k,V)=>t.jsxs(Cc,{isSelected:P===k.amount,onClick:()=>j(k.amount),"data-testid":Y("quick-amount-button",V.toString()),children:[V===1&&t.jsx(fc,{}),xe("0,0.[00]",k)]},V);return t.jsx(sc,{windowSize:H,role:"presentation","data-testid":Y("update-spend-limit-popup"),children:t.jsx(ii,{onClickAway:()=>J(),children:t.jsxs(dc,{windowSize:H,children:[t.jsx(oi,{...E,children:t.jsxs(wc,{id:Q,onSubmit:k=>{k.preventDefault(),X()},children:[t.jsx(cc,{windowSize:H,children:Ue.heading}),t.jsxs(lc,{windowSize:H,children:[Ue.currentLimit,R.strings.space," ",xe("0,0.[00]",n),Ue.slashMonth]}),t.jsxs(mc,{hasError:q,children:[t.jsx(ni,{label:{label:Ue.newLimit,width:se},showAdditionalInfoLabel:q,additionalInfoLabel:oe,formattedTextField:{type:"number",name:Qe,defaultValue:void 0,placeholder:Ue.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:k=>!!k&&k>0&&k>C.amount&&($!=null?k<=$.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),I?.length?t.jsx(gc,{windowSize:H,children:I?.map((k,V)=>F(k.creditLimit,V))}):null]})]})}),t.jsx(uc,{children:t.jsxs(hc,{children:[t.jsx(ft,{label:R.cancel,onClick:ie,style:{width:84},"data-testid":Y("update-spend-limit-cancel-button")}),t.jsx(pc,{}),t.jsx(ft,{variant:"primary",label:R.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:g==="In-Progress",type:"submit",form:Q,"data-testid":Y("update-spend-limit-submit-button"),disabled:y})]})})]})})})}const nc=(e,i,d)=>{if(d!=null){if(d<=e.amount)return Ue.amountBelowError.replace("_amount_",xe("0,0.[00]",e));if(i!=null&&d>i.amount)return Ue.amountExceedError.replace("_amount_",xe("0,0.[00]",i))}},Ua=({analytics:e,controllerEmails:i,isChargeCardFeatureEnabled:d,productInformation:h,creditAccountInformation:m,debitAccountInformation:u,chargeCardDetailView:s,creditAccount:x,creditAccountRepayment:l,signedInUser:f,isDebitCard:w,classListFetchState:n,currentLimitAmount:C,recommendedLimitAmounts:b,cardActivationDate:L,cardIssuedByRoles:S,cardHolderRoles:$,cardIssuedByDepartmentName:y,cardHolderDepartmentName:g,loggedInUserRole:I,clickItem:v,newSpendLimitAmount:O})=>{s.chargeCard!=null&&n==="Completed"&&s.transactionStatistics.fetchState==="Completed"&&(!d||x.fetchState==="Completed"&&l.fetchState==="Completed")&&(!w||s.depositAccountLimitFetchState.fetchState==="Completed")&&e.trackCardsUpdateSpendLimitClick(i,h,{cardId:s.chargeCard.id,cardName:s.chargeCard.cardName,cardType:gr(s.chargeCard.type.code),cardCategory:s.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:je(s.chargeCard.limit.amount),cardLastFourDigits:s.chargeCard.accountLast4,cardStatus:s.chargeCard.status.code,cardAssignedDate:s.chargeCard.createTime?.format(Rt.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:s.chargeCard.providerCardCreateTime?.format(Rt.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:L?.format(Rt.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:s.chargeCard.creditLimitFrequency.name,cardSpentAmount:je(s.chargeCard.balance.amount),cardAvailableLimit:je(s.chargeCard.available.amount),cardUtilizationPercent:mr(s.chargeCard.limit.amount,s.chargeCard.available.amount),cardUtilizationAmount:je(Cr(s.chargeCard)),totalNumberOfDeclinedTransactions:s.transactionStatistics.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:s.transactionStatistics.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:s.transactionStatistics.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:s.transactionStatistics.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:s.transactionStatistics.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:s.transactionStatistics.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:wt(s.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:s.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:s.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:S,cardIssuedByDepartment:y},{cardholderName:wt(s.chargeCard.cardHolderUser,!1),cardholderEmail:s.chargeCard.cardHolderUser?.email,cardholderRole:$,cardholderUserId:s.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},{cardLimitUpdatedByName:Si(f),cardLimitUpdatedByEmail:f.userEmail,cardLimitUpdatedByRole:I,cardLimitUpdatedByUserId:f.userId},v,je(C.amount),b,O!=null?b.includes(O):!1,O,m,u)},Ct={width:new D(343,500,500),largeLabelWidth:new D(108,108,108),popupLeftRightPadding:new D(c[5],c[6]),popupTopBottomPadding:new D(c[5],c[5])},sc=r.div`
|
|
1183
|
-
position: fixed;
|
|
1184
|
-
top: ${a.sp0};
|
|
1185
|
-
left: ${a.sp0};
|
|
1186
|
-
width: 100%;
|
|
1187
|
-
z-index: 100;
|
|
1188
|
-
height: 100%;
|
|
1189
|
-
display: flex;
|
|
1190
|
-
flex-direction: column;
|
|
1191
|
-
align-items: center;
|
|
1192
|
-
background: ${p.overlayDark};
|
|
1193
|
-
`,dc=r.div`
|
|
1194
|
-
display: flex;
|
|
1195
|
-
flex-direction: column;
|
|
1196
|
-
justify-content: space-between;
|
|
1197
|
-
flex-wrap: wrap;
|
|
1198
|
-
align-items: center;
|
|
1199
|
-
text-align: center;
|
|
1200
|
-
background: ${e=>e.theme.colors.grey4};
|
|
1201
|
-
border-radius: ${a.sp2};
|
|
1202
|
-
position: relative;
|
|
1203
|
-
margin: auto;
|
|
1204
|
-
width: ${e=>Ct.width.valuePx(e.windowSize)};
|
|
1205
|
-
padding: ${e=>`${Ct.popupTopBottomPadding.valuePx(e.windowSize)} ${Ct.popupLeftRightPadding.valuePx(e.windowSize)}`};
|
|
1206
|
-
box-sizing: border-box;
|
|
1207
|
-
`,cc=r(or)`
|
|
1208
|
-
color: ${e=>e.theme.colors.primary};
|
|
1209
|
-
margin-bottom: ${a.sp2};
|
|
1210
|
-
`,lc=r(ye)`
|
|
1211
|
-
color: ${e=>e.theme.colors.hero};
|
|
1212
|
-
margin-bottom: ${a.sp3};
|
|
1213
|
-
`,hc=r.div`
|
|
1214
|
-
display: flex;
|
|
1215
|
-
justify-content: center;
|
|
1216
|
-
padding-top: ${a.sp4};
|
|
1217
|
-
`,pc=r.div`
|
|
1218
|
-
width: ${a.sp3};
|
|
1219
|
-
`,uc=r.div`
|
|
1220
|
-
display: flex;
|
|
1221
|
-
flex-direction: column;
|
|
1222
|
-
`,mc=r.div`
|
|
1223
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1224
|
-
box-shadow: ${e=>`${a.sp0} 1px 2px ${a.sp0} ${e.theme.colors.issueChargeCardBackgroundShadow}`};
|
|
1225
|
-
border-radius: ${a.sp2};
|
|
1226
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1227
|
-
width: 100%;
|
|
1228
|
-
:hover {
|
|
1229
|
-
border: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
1230
|
-
input {
|
|
1231
|
-
background-color: ${e=>e.hasError?p.importantLight:e.theme.colors.background} !important;
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
`,gc=r.div`
|
|
1235
|
-
display: flex;
|
|
1236
|
-
justify-content: flex-end;
|
|
1237
|
-
gap: ${a.sp2};
|
|
1238
|
-
margin: ${a.sp0} ${a.sp4} ${a.sp3} ${a.sp4};
|
|
1239
|
-
`,Cc=r(ye)`
|
|
1240
|
-
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
|
|
1241
|
-
border: 1px solid
|
|
1242
|
-
${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey2};
|
|
1243
|
-
border-radius: ${a.sp1};
|
|
1244
|
-
padding: 2px ${a.sp2};
|
|
1245
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1246
|
-
cursor: pointer;
|
|
1247
|
-
display: flex;
|
|
1248
|
-
align-items: center;
|
|
1249
|
-
:hover {
|
|
1250
|
-
color: ${e=>e.theme.colors.primary};
|
|
1251
|
-
border: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
1252
|
-
}
|
|
1253
|
-
`,fc=r(Ii)`
|
|
1254
|
-
color: ${p.brandColorJade};
|
|
1255
|
-
fill: ${p.brandColorJade};
|
|
1256
|
-
width: ${a.sp3};
|
|
1257
|
-
height: ${a.sp3};
|
|
1258
|
-
`,wc=r.form`
|
|
1259
|
-
display: contents;
|
|
1260
|
-
`,ve={bottomContentContainerPadding:new D(c[3],c[8]),styledAIIconContainerSize:new D(c[3],c[3]),bannerWrapperMarginLeftRight:new D(c[3],c[8]),payNowSectionPaddingLeftRight:new D(c[3],c[0]),styledHighImportanceIconMarginRight:new D(c[0],c[1])},{common:fe,spendManagement:xc,dateFormat:yc}=he.getLocalizedStrings(),we=xc.chargeCard,ll=({chargeCardDetailView:e,cardsEndPoint:i,classListFetchState:d,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:m,authParams:u,hideSorting:s,cardId:x,vgsVaultId:l,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardCashbackDetailState:L,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:I,cardIssuedByRoles:v,cardIssuedByDepartmentName:O,cardHolderRoles:T,cardHolderDepartmentName:z,loggedInUserRole:G,appleWalletLink:J,googleWalletLink:U,signedInUser:A,signedInUserToken:H,isSandboxEnv:Q,isEarlyPayEnabled:re,documentAiReceiptMaxSizeLimit:E,isSnackbarOpen:K,onFireOnClickAnalytics:_,onUpdateDebitCardPinAttempt:oe,onFireVerifyPopOnClickAnalytics:ee,onBackClick:P,onReloadTransactions:ae,onFetchChargeCardTransactionList:N,onGetOtp:ie,onResendOtp:X,onVerifyOtp:j,onVerifyOtpSuccess:q,onColorCodeChange:R,onColumnSortConfigChanged:se,updateChargeCardTransactionAttachments:F,updateChargeCardTransactionUploadReceiptsFetchStatus:k,updateChargeCardTransactionReceiptsShowTick:V,updateChargeCardTransactionIsViewReceiptClicked:B,onUploadReceiptComplete:ne,removeSnackbar:De,onChargeCardTransactionRowClick:Ie,onUpdateScrollYOffset:Te,updateSpendLimit:He,shouldOpenCreditCardPaymentDrawer:Re})=>{const te=o.useRef(!0),de=Ye(),M=Ce(),Ee=st(),ke=dt().analytics,[,qe]=Ka(),[Fe,ht]=o.useState(!1),[rt,pt]=o.useState(!1),[W,ce]=o.useState(!1),[le,ze]=o.useState(!1),[Pe,Yt]=o.useState(!1),[bt,qt]=o.useState(!1),[Rr,Er]=o.useState(!1),[Fr,Gt]=o.useState(!1),[zr,St]=o.useState(!1),[Ge,$t]=o.useState(!1),[Kt,vt]=o.useState(!1),[Xt,Jt]=o.useState(!1),[Pr,Qt]=o.useState(!1),[Mr,Vr]=o.useState("apple"),[ea,ta]=o.useState({number:!1,cvv:!1});o.useEffect(()=>{Ge===!1&&vt(!1)},[Ge]);const aa=o.useRef("noAnimation"),it=e.chargeCard?.cardHolderUserId===A.userId,kt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,ra=e.chargeCard?.billingAddress,Ke=Ze.hasChargeCardAdminLevelAccess(Ee.loggedInUserRoleMap),{text1:Or,text2:Hr}=qr(ra),ia=`${Or} ${Hr}`,Lt=e.chargeCard?.isDeclinedTransaction===!0,Nr=()=>{Et({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:I,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:be,isChargeCardAdmin:Ke,analytics:ke,controllerEmails:f,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),qe(e.chargeCardConfig.receiptBotEmail),ht(!0)},Br=()=>{_("card owner copied"),Et({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:I,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:be,isChargeCardAdmin:Ke,analytics:ke,controllerEmails:f,actionField:"Card Owner",actionDetails:kt}),qe(kt),Yt(!0)},Wr=()=>{_("billing address copied"),Et({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:I,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:be,isChargeCardAdmin:Ke,analytics:ke,controllerEmails:f,actionField:"Billing Address",actionDetails:ia}),qe(ia),qt(!0)};o.useEffect(()=>{Fe===!0&&setTimeout(()=>{ht(!1)},800),Pe===!0&&setTimeout(()=>{Yt(!1)},800),bt===!0&&setTimeout(()=>{qt(!1)},800)},[Pe,bt,Fe]);const[Gc,Ur]=o.useState(!1),[oa,na]=o.useState(e.chargeCard?.cardColorCode!=null?new _e(e.chargeCard.cardColorCode):void 0);o.useEffect(()=>{e.chargeCard?.cardColorCode!=null&&na(new _e(e.chargeCard.cardColorCode))},[e.chargeCard?.cardColorCode]);const sa={amount:e.chargeCard!=null?e.chargeCard.balance.amount:0,currencyCode:e.chargeCard!=null?e.chargeCard.balance.currencyCode:fe.currency.countryCode,currencySymbol:e.chargeCard!=null?e.chargeCard.balance.currencySymbol:fe.currency.currencySymbol};o.useEffect(()=>{te.current===!0?te.current=!1:_(Ge===!1?"card details hidden":"card detail revealed")},[Ge]);const da=(Le,Xe)=>{if(Xe===!0){const ut=qi(Le.toString())??fe.strings.empty;_("color selected",ut),R(ut),Ur(!1)}na(Le)},ca=Le=>{const{cvv:Xe,number:ut}=Le;return Xe===!0||ut===!0},{isMobileOrTabletScreen:la}=Xa(),jt=e.chargeCard?.status.code!=="request_on_hold"&&e.chargeCard?.status.code!=="inactive";o.useEffect(()=>{(e.updateChargeCardLimitFetchState.fetchState==="Completed"||e.updateChargeCardLimitFetchState.fetchState==="Error")&&St(!1)},[e.updateChargeCardLimitFetchState]);const be=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",_r=Ke&&e.chargeCard?.status.code==="active"&&sa.amount<(be?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit.amount??0:e.creditAccount.limit.amount),Zr=e.creditAccountRepayment.initiatedRepayments.amount>0&&Ke&&Lt,Yr=t.jsx("div",{children:t.jsx(Gr,{entity:"debit_cards",onOptionSelection:Le=>{Le==="changePin"&&(H==null||H.expiry.isBefore(new Date)?ie(e.loggedInUserPhone):ze(!0),ce(!0))},isMoreOption:!0,options:[{value:"changePin",label:we.cardDetails.changePin}],customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}})}})});return t.jsxs(Fc,{children:[le&&e.chargeCard?.cardProviderID!=null?t.jsx(Xd,{signedInUserToken:H,vgsVaultId:l,onCancelClick:()=>{ze(!1),ce(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{ze(!1),ce(!0)},onUpdateDebitCardPinAttempt:oe}):null,la?null:t.jsx(Fd,{controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardCashbackDetailState:L,creditAccountRepayment:e.creditAccountRepayment,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:e.creditAccount,selectedColor:oa,walletType:Mr,onFireOnClickAnalytics:_,isSandboxEnv:Q,chargeCardDetailView:e,vgsVaultId:l,signedInUserToken:H,showSecretInfo:Ge,changePinInProcess:W,setShowChangePinPopup:ze,isCardDetailErrored:Xt,cardDetailsFetchState:ea,setCardDetailsFetchState:ta,setIsCardDetailErrored:Jt,isCardDetailFetching:ca,handleColorCodeClick:da,isDrawerOpen:Pr,setIsAddToWalletDrawerOpen:Qt,onVerifyOtp:j,onVerifyOtpSuccess:q,onFireVerifyPopOnClickAnalytics:ee,onResendOtp:X,setShowSecretInfo:$t,secretRevealed:Kt,setSecretRevealed:vt,onGetOtp:ie,showDrawerAnimation:aa}),t.jsx(Kr,{rightSideComponent:it&&be?Yr:null,navBarContainerStyles:{paddingTop:c[2],alignItems:"center",paddingBottom:c[2]},source:"ChargeCardDetailPage",title:e.chargeCard?.cardName??fe.strings.empty,subTitle:e.fetchState==="Completed"&&e.chargeCard!=null?t.jsx(ao,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:de.colors.grey5,style:{zIndex:3},onBackClick:P,titleStyle:{marginTop:c[0],...M==="small"&&{textAlign:"left"}},leftComponentStyle:M==="small"?{width:"10%"}:void 0,middleComponentStyle:M==="small"?{width:"80%"}:void 0,rightComponentStyle:M==="small"?{width:"10%"}:void 0}),t.jsx(Ja,{phoneNumberPopupDescription:we.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Rr,showPhoneNumberPopup:Fr,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:j,onVerifyOtpSuccess:Le=>{q(Le),W?ze(!0):$t(!0)},onFireVerifyPopOnClickAnalytics:ee,setShowOtpPopup:Er,onResendOtp:X,setShowPhoneNumberPopup:Gt,onGetOtp:ie}),zr&&t.jsx(oc,{controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,chargeCardDetailView:e,creditAccount:I,creditAccountRepayment:e.creditAccountRepayment,signedInUser:A,isDebitCard:be,cardIssuedByRoles:v,cardHolderRoles:T,loggedInUserRole:G,cardIssuedByDepartmentName:O,cardHolderDepartmentName:z,classListFetchState:d,currentLimitAmount:e.chargeCard?.limit??{amount:0,currencyCode:fe.currency.countryCode,currencySymbol:fe.currency.currencySymbol},currentSpentAmount:e.chargeCard?.balance??{amount:0,currencyCode:fe.currency.countryCode,currencySymbol:fe.currency.currencySymbol},maxLimitAmount:be?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:e.creditAccount.limit,isDisabled:be&&e.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>St(!1),onSubmitClick:Le=>{if(e.chargeCard){const Xe={amount:Le,currencyCode:e.chargeCard.limit.currencyCode,currencySymbol:e.chargeCard.limit.currencySymbol};He(e.chargeCard.id,Xe,e.chargeCard.creditLimitFrequency,xe("0,0.[00]",Xe))}},recommendations:e?.chargeCard?.recommendations}),e.fetchState==="Error"?t.jsxs(Dc,{windowSize:M,children:[t.jsx(Tc,{onClick:ae,"data-testid":Y("reload-card-detail"),children:t.jsx(Ec,{})}),t.jsx(Rc,{children:fe.reloadPage.label})]}):t.jsxs(bc,{children:[t.jsx(pn,{controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,creditAccount:I,creditAccountRepayment:e.creditAccountRepayment,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,isDebitCard:be,chargeCardCashbackDetailState:L,cardIssuedByRoles:v,cardIssuedByDepartmentName:O,cardHolderRoles:T,cardHolderDepartmentName:z,classListFetchState:d,chargeCardDetailView:e,spent:sa,isCardNotPending:jt,cardOwnerName:kt,appleWalletLink:J,googleWalletLink:U,addressToShow:ra,secretRevealed:Kt,isOwnCard:it,vgsVaultId:l,showSecretInfo:Ge,isSandboxEnv:Q,isCardDetailErrored:Xt,signedInUserToken:H,selectedColor:oa,cardDetailsFetchState:ea,setCardDetailsFetchState:ta,setIsCardDetailErrored:Jt,setSecretRevealed:vt,isCardDetailFetching:ca,handleColorCodeClick:da,onFireOnClickAnalytics:_,setShowPhoneNumberPopup:Gt,setShowChangeSpendLimitPopup:St,setShowSecretInfo:$t,isOwnerNameCopied:Pe,isAddressCopied:bt,onOwnerNameCopyClick:Br,onAddressCopyClick:Wr,showUpdateSpendLimitAction:_r}),re?Zr?t.jsxs($c,{windowSize:M,children:[t.jsx(Vc,{}),t.jsx(kc,{children:` ${we.payEarly.paymentOf} ${xe("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${we.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(yc.visual.MMMDFormat)} ${we.payEarly.isProcessing} ${we.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):Lt?Ke?t.jsxs(Tr,{onClick:()=>{Re(!0)},windowSize:M,children:[t.jsx(_a,{windowSize:M}),t.jsxs(Ic,{children:[t.jsx(Za,{children:we.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(Lc,{className:"pay-now-button",children:[we.payEarly.payNow,t.jsx(vc,{})]})]})]}):t.jsxs(Sc,{windowSize:M,children:[t.jsx(_a,{windowSize:M}),t.jsx(Ac,{children:t.jsx(Za,{children:we.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,it&&M!=="small"&&jt&&be===!1?t.jsx(ro,{style:{marginTop:Lt?a.sp5:a.sp4},classListFetchState:d,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardDetailView:e,creditAccount:I,creditAccountRepayment:e.creditAccountRepayment,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,cardIssuedByRoles:v,cardHolderRoles:T,cardIssuedByDepartmentName:O,cardHolderDepartmentName:z,isDebitCard:be,appleWalletLink:J,googleWalletLink:U,setWalletType:Vr,setIsAddToWalletDrawerOpen:Qt,showDrawerAnimation:aa}):null,t.jsxs(qc,{windowSize:M,isOwnCard:it,isMobileOrTabletScreen:la,children:[jt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(Pc,{windowSize:M,children:[we.cardDetails.transactionListTitle,t.jsx(Pt,{display:"flex",placement:"right",title:t.jsx(Oc,{children:we.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(Mc,{})})]}),t.jsxs(Hc,{windowSize:M,children:[t.jsx(Uc,{windowSize:M,children:t.jsx(_c,{})}),t.jsxs(zc,{windowSize:M,children:[t.jsxs(Nc,{children:[t.jsx(jc,{children:we.aiCardAgentText}),fe.strings.space,we.receiptBotMessage,fe.strings.space]}),t.jsxs(Wc,{"data-testid":Y("charge-card-detail-copy-email"),onClick:Nr,onMouseEnter:()=>pt(!0),onMouseLeave:()=>pt(!1),children:[t.jsx(Bc,{children:e.chargeCardConfig.receiptBotEmail}),Fe===!0?t.jsxs(qa,{children:[t.jsx(Yc,{}),t.jsx(Ya,{children:t.jsx(Ga,{shouldDisplay:rt||Fe,color:p.primaryDark,children:fe.copyToClipBoard.copied})})]}):t.jsxs(qa,{children:[t.jsx(Zc,{color:rt?de.colors.primary:void 0}),t.jsx(Ya,{children:t.jsx(Ga,{shouldDisplay:rt&&M!=="small",children:fe.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(cd,{cardStatusCode:e.chargeCard?.status.code,cardCodeType:e.chargeCard?.type.code,cardId:x,documentAiReceiptMaxSizeLimit:E,uploadReceiptsFetchStateByTransactionId:e.uploadReceiptsFetchStateByTransactionId,isSnackbarOpen:K,uploadReceiptsShowTickByTransactionId:e.uploadReceiptsShowTickByTransactionId,isViewReceiptClickedImmediatelyAfterUploadTransactionId:e.isViewReceiptClickedImmediatelyAfterUploadTransactionId,receiptRequiredAboveAmount:e.chargeCardConfig.receiptRequiredAboveAmount,cardsEndPoint:i,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:m,authParams:u,hideSorting:s,transactions:e.transactions,cardHolderUser:e.chargeCard?.cardHolderUser,uiState:e.uiState,fetchState:e.transactionListFetchState.fetchState,isAiCategorizationEnabledForCardsTransactions:e.chargeCardConfig.isAiCategorizationEnabledForCardsTransactions,onReloadTransactions:ae,onFetchChargeCardTransactionList:N,isOwnCard:it,onColumnSortConfigChanged:se,removeSnackbar:De,onChargeCardTransactionRowClick:Ie,onUpdateScrollYOffset:Te,onUploadReceiptComplete:ne,updateChargeCardTransactionAttachments:F,updateChargeCardTransactionUploadReceiptsFetchStatus:k,updateChargeCardTransactionReceiptsShowTick:V,updateChargeCardTransactionIsViewReceiptClicked:B})]})]})]})},Et=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:d,productInformation:h,cashbackInformation:m,creditAccountInformation:u,debitAccountInformation:s,creditAccount:x,creditAccountRepayment:l,isDebitCard:f,isChargeCardAdmin:w,analytics:n,controllerEmails:C,actionDetails:b,actionField:L})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!d||x.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(f&&w)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(C,h,"Cards Detail","Copy","copied",L,b,m,u,s)},bc=r.div``,Tr=r.div`
|
|
1261
|
-
background: ${p.important};
|
|
1262
|
-
display: flex;
|
|
1263
|
-
align-items: center;
|
|
1264
|
-
justify-content: center;
|
|
1265
|
-
padding-top: ${a.sp3};
|
|
1266
|
-
padding-bottom: ${a.sp3};
|
|
1267
|
-
padding-left: ${({windowSize:e})=>ve.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1268
|
-
padding-right: ${({windowSize:e})=>ve.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1269
|
-
gap: ${a.sp1};
|
|
1270
|
-
align-items: start;
|
|
1271
|
-
cursor: pointer;
|
|
1272
|
-
:hover {
|
|
1273
|
-
.pay-now-button {
|
|
1274
|
-
text-decoration: underline;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
`,Sc=r(Tr)``,$c=r.div`
|
|
1278
|
-
background: ${p.alertLight};
|
|
1279
|
-
display: flex;
|
|
1280
|
-
align-items: start;
|
|
1281
|
-
justify-content: center;
|
|
1282
|
-
padding-top: ${a.sp3};
|
|
1283
|
-
padding-bottom: ${a.sp3};
|
|
1284
|
-
padding-left: ${({windowSize:e})=>ve.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1285
|
-
padding-right: ${({windowSize:e})=>ve.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1286
|
-
gap: ${a.sp2};
|
|
1287
|
-
`,_a=r(ci)`
|
|
1288
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1289
|
-
margin-right: ${({windowSize:e})=>ve.styledHighImportanceIconMarginRight.valuePx(e)};
|
|
1290
|
-
min-width: ${a.sp4};
|
|
1291
|
-
width: ${a.sp4};
|
|
1292
|
-
height: ${a.sp4};
|
|
1293
|
-
path:nth-child(2),
|
|
1294
|
-
path:nth-child(3) {
|
|
1295
|
-
stroke: ${p.important};
|
|
1296
|
-
}
|
|
1297
|
-
`,vc=r(li)`
|
|
1298
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1299
|
-
min-width: 12px;
|
|
1300
|
-
width: 12px;
|
|
1301
|
-
height: 12px;
|
|
1302
|
-
`,Za=r(Vt)`
|
|
1303
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1304
|
-
`,kc=r(Vt)`
|
|
1305
|
-
color: ${p.brandColorGoldDark};
|
|
1306
|
-
`,Lc=r(rr)`
|
|
1307
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1308
|
-
gap: ${a.sp1};
|
|
1309
|
-
cursor: pointer;
|
|
1310
|
-
display: inline-flex;
|
|
1311
|
-
align-items: center;
|
|
1312
|
-
white-space: nowrap;
|
|
1313
|
-
`,jc=r(mi)`
|
|
1314
|
-
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
1315
|
-
${({theme:e})=>e.mode==="dark"&&`color: ${p.brandColorPearl};`}
|
|
1316
|
-
`,Dc=r.div`
|
|
1317
|
-
display: flex;
|
|
1318
|
-
width: 100%;
|
|
1319
|
-
height: calc(100vh - ${e=>si.valuePx(e.windowSize)});
|
|
1320
|
-
flex-direction: column;
|
|
1321
|
-
justify-content: center;
|
|
1322
|
-
align-items: center;
|
|
1323
|
-
background: ${e=>e.theme.colors.grey5};
|
|
1324
|
-
`,Ic=r.div``,Ac=r.div``,Tc=r.div`
|
|
1325
|
-
height: ${a.sp12};
|
|
1326
|
-
width: ${a.sp12};
|
|
1327
|
-
background: ${e=>e.theme.colors.background};
|
|
1328
|
-
display: flex;
|
|
1329
|
-
justify-content: center;
|
|
1330
|
-
align-items: center;
|
|
1331
|
-
border-radius: 50%;
|
|
1332
|
-
cursor: pointer;
|
|
1333
|
-
& svg {
|
|
1334
|
-
margin: ${a.sp5};
|
|
1335
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1336
|
-
}
|
|
1337
|
-
&:hover {
|
|
1338
|
-
& svg {
|
|
1339
|
-
color: ${e=>e.theme.colors.primary};
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
`,Rc=r(Mt)`
|
|
1343
|
-
margin-top: ${a.sp3};
|
|
1344
|
-
color: ${e=>e.theme.colors.hero};
|
|
1345
|
-
`,Ec=r(er)`
|
|
1346
|
-
height: ${a.sp5};
|
|
1347
|
-
width: ${a.sp5};
|
|
1348
|
-
margin: ${a.sp5};
|
|
1349
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1350
|
-
&:hover {
|
|
1351
|
-
color: ${e=>e.theme.colors.primary};
|
|
1352
|
-
}
|
|
1353
|
-
`,Fc=r.div`
|
|
1354
|
-
background: ${e=>e.theme.colors.grey4};
|
|
1355
|
-
`,zc=r.div`
|
|
1356
|
-
width: 100%;
|
|
1357
|
-
max-width: ${e=>e.windowSize==="small"?"calc(100% - 20px)":"unset"};
|
|
1358
|
-
`,Pc=r(Ot)`
|
|
1359
|
-
color: ${e=>e.theme.colors.primary};
|
|
1360
|
-
margin-bottom: ${a.sp3};
|
|
1361
|
-
display: flex;
|
|
1362
|
-
align-items: center;
|
|
1363
|
-
margin-right: ${e=>ve.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
1364
|
-
margin-left: ${e=>ve.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
1365
|
-
`,Mc=r(ar)`
|
|
1366
|
-
color: ${e=>e.theme.colors.hero};
|
|
1367
|
-
width: ${a.sp3};
|
|
1368
|
-
height: ${a.sp3};
|
|
1369
|
-
margin-left: ${a.sp2};
|
|
1370
|
-
&:hover {
|
|
1371
|
-
color: ${e=>e.theme.colors.primary};
|
|
1372
|
-
}
|
|
1373
|
-
`,Vc=r(ar)`
|
|
1374
|
-
color: ${p.brandColorGoldDark};
|
|
1375
|
-
min-width: ${a.sp4};
|
|
1376
|
-
width: ${a.sp4};
|
|
1377
|
-
height: ${a.sp4};
|
|
1378
|
-
`,Oc=r(me)`
|
|
1379
|
-
padding: 2px ${a.sp2};
|
|
1380
|
-
box-sizing: content-box;
|
|
1381
|
-
color: ${e=>e.theme.colors.hero};
|
|
1382
|
-
background: ${e=>e.theme.colors.black};
|
|
1383
|
-
border-radius: ${a.sp1};
|
|
1384
|
-
max-width: 178px;
|
|
1385
|
-
text-align: left;
|
|
1386
|
-
`,Hc=r.div`
|
|
1387
|
-
display: flex;
|
|
1388
|
-
border: 1.25px solid transparent;
|
|
1389
|
-
background: ${e=>`linear-gradient(${e.theme.colors.grey4}, ${e.theme.colors.grey4}) padding-box,
|
|
1390
|
-
${p.receiptAgentLinearGradient}
|
|
1391
|
-
border-box`};
|
|
1392
|
-
padding: ${a.sp3} ${a.sp4};
|
|
1393
|
-
border-radius: ${a.sp2};
|
|
1394
|
-
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
1395
|
-
gap: ${a.sp1};
|
|
1396
|
-
margin: 0
|
|
1397
|
-
${e=>ve.bannerWrapperMarginLeftRight.valuePx(e.windowSize)};
|
|
1398
|
-
`,Nc=r(Vt)`
|
|
1399
|
-
color: ${e=>e.theme.colors.primary};
|
|
1400
|
-
`,Bc=r(rr)`
|
|
1401
|
-
color: ${e=>e.theme.colors.primary};
|
|
1402
|
-
`,Wc=r.span`
|
|
1403
|
-
cursor: pointer;
|
|
1404
|
-
`,Ya=r.span`
|
|
1405
|
-
position: absolute;
|
|
1406
|
-
bottom: -${a.sp5};
|
|
1407
|
-
z-index: 10;
|
|
1408
|
-
left: ${a.sp2};
|
|
1409
|
-
`,qa=r.span`
|
|
1410
|
-
position: relative;
|
|
1411
|
-
margin-left: ${a.sp1};
|
|
1412
|
-
top: 2px;
|
|
1413
|
-
`,Ga=r(me)`
|
|
1414
|
-
position: relative;
|
|
1415
|
-
background: ${e=>e.theme.colors.black};
|
|
1416
|
-
color: ${e=>e.color!=null?e.color:e.theme.colors.grey1};
|
|
1417
|
-
padding: 2px ${a.sp2};
|
|
1418
|
-
z-index: 10;
|
|
1419
|
-
border-radius: ${a.sp1};
|
|
1420
|
-
left: -50%;
|
|
1421
|
-
display: ${e=>e.shouldDisplay?"block":"none"};
|
|
1422
|
-
`,Uc=r.div`
|
|
1423
|
-
width: ${e=>ve.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1424
|
-
min-width: ${e=>ve.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1425
|
-
height: ${e=>ve.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1426
|
-
top: ${a.sp1};
|
|
1427
|
-
position: ${e=>e.windowSize==="small"?"relative":"static"};
|
|
1428
|
-
`,_c=r(ui)`
|
|
1429
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
1430
|
-
width: 100%;
|
|
1431
|
-
height: 100%;
|
|
1432
|
-
`,Zc=r(ir)`
|
|
1433
|
-
height: ${a.sp3};
|
|
1434
|
-
width: ${a.sp3};
|
|
1435
|
-
color: ${e=>e.color!=null?e.color:e.theme.colors.hero};
|
|
1436
|
-
cursor: pointer;
|
|
1437
|
-
&:hover {
|
|
1438
|
-
color: ${e=>e.theme.colors.primary};
|
|
1439
|
-
}
|
|
1440
|
-
`,Yc=r(ct)`
|
|
1441
|
-
height: ${a.sp3};
|
|
1442
|
-
width: ${a.sp3};
|
|
1443
|
-
color: ${p.success};
|
|
1444
|
-
`,qc=r.div`
|
|
1445
|
-
padding-top: ${e=>e.isOwnCard?e.isMobileOrTabletScreen?a.sp3:a.sp4:a.sp5};
|
|
1446
|
-
padding-bottom: ${a.sp4};
|
|
1447
|
-
`;export{ll as default};
|