@zeniai/web-cockpit-ui 1.14.83-dev → 1.14.84-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-BXgsd50c-BuCiUEId.js +21 -0
- package/dist/assets/AIPerformancePage-BdDTidCL-D-IQ6p36.js +539 -0
- package/dist/assets/AccountInfoPage-w0STaK9a-BfMIBiEJ.js +18 -0
- package/dist/assets/AccountInfoPageContent-CsuUhHXU-DgiU-I5H.js +149 -0
- package/dist/assets/AccountLockedInfoModal-iYb31wv7-CEyp2zKM.js +59 -0
- package/dist/assets/AccountReconDetailsDrawerPage-DmkLTIkW-DxChexc_.js +239 -0
- package/dist/assets/AccountRow-BObEIy6l-CsCw-i7a.js +298 -0
- package/dist/assets/AccountsPromoCardStack-B8gJFsYh-DpzT8FNB.js +207 -0
- package/dist/assets/AddAddressForCardDrawer-vOgzMYWA-Bo72mQ01.js +6 -0
- package/dist/assets/AddToWalletPage-BhphXgem-DR4-yAJW.js +344 -0
- package/dist/assets/AgingReportsPage-DEgupWct-SJsZmYxE.js +79 -0
- package/dist/assets/AllUserItems-S2DAZpO6-Zcx2jN6k.js +192 -0
- package/dist/assets/ApAgingDetailPage-CvDD8-s7-k2W-N5me.js +46 -0
- package/dist/assets/AppBasePage-C4z5I-xG-vGdvNBYI.js +71 -0
- package/dist/assets/AppDrawerContent-Dka5HlPs-BfBKKeHh.js +91 -0
- package/dist/assets/ApprovalRulesSettingsPage-BOJE5Fb_-DykJvECT.js +47 -0
- package/dist/assets/ArAgingChart-CJ7XKU9h-BSixtgVA.js +24 -0
- package/dist/assets/ArAgingDetailPage-ZjaiAH-C-DY8qSTjK.js +46 -0
- package/dist/assets/AttachmentView-Dg6PizI7-BzoqKbZ4.js +101 -0
- package/dist/assets/BankAccountSection-Chay7X-G-vPiVizDl.js +79 -0
- package/dist/assets/BankAccountWarningSection-CSChi1lw-BVD5BCv3.js +51 -0
- package/dist/assets/BankConnectionsSettingsPage-DJV7q1Kp-DcUIdQZo.js +425 -0
- package/dist/assets/BillDetailPage-DM06uZnD-BOk9lw2_.js +266 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-MsPIxgUt-r4h6U7BK.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-BCoXLnmv-Aq-Dw7YV.js → BillPayApprovalRulesPage-BhDdco2x-B1oZ9jjD.js} +27 -27
- package/dist/assets/BillPayPromoPage-Dy-opG76-CZ2iWLB7.js +84 -0
- package/dist/assets/BillPaySetUpPage-DUvwWlaD-Bg_qNGFx.js +42 -0
- package/dist/assets/BillingSettingsPage-wj_sIJgc-Dy0iglvP.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-DbC84oxR-CV4aNHIq.js +1 -0
- package/dist/assets/{BoxItem-B6Qj2tSj-aLWYhGMW.js → BoxItem-CdqDzfZN-BxmSstzM.js} +2 -2
- package/dist/assets/BusinessVerificationPage-BMtHNNcG-CKxF3KMp.js +138 -0
- package/dist/assets/CardNumberSubText-lh7fQJis-CKFkz1Hy.js +21 -0
- package/dist/assets/CashbackDetailPage-KRbsYA09-DzsJTodf.js +285 -0
- package/dist/assets/ChargeCardDetailPage--WP6KTfb-BgNGsK6v.js +1462 -0
- package/dist/assets/ChargeCardListPage-knAPmob6-CgVyQmJQ.js +412 -0
- package/dist/assets/ChargeCardListTable-DsfnKX3P-D0-TBhcC.js +711 -0
- package/dist/assets/ChargeCardPromoPage-C9610LtW-GRwSeJ82.js +222 -0
- package/dist/assets/ChargeCardSetupPage-Cy4JhjJW-BnQWcnli.js +36 -0
- package/dist/assets/ChargeCardStatementsPage-C7uS1jEO-7cO1LhgS.js +60 -0
- package/dist/assets/CheckDepositDrawerPage-TfiJwtqN-CwfCisTT.js +206 -0
- package/dist/assets/CollapsableReportTable-NYu8Bq-g-CCeLwwka.js +2844 -0
- package/dist/assets/CompanyOfficerDetailsSection-CiVliExW-DzmWuQm0.js +260 -0
- package/dist/assets/CompanyPassportCard-8zvCdmxt-CxjPiS1u.js +42 -0
- package/dist/assets/CompanyPassportPage-AS4N7oT2-Bv10VeId.js +574 -0
- package/dist/assets/CompleteProfile-Dj080UdJ-B2qMa6vk.js +52 -0
- package/dist/assets/ConfettiBurst-DcCUSSaX-yciACYT1.js +1 -0
- package/dist/assets/CreateOrEditVendorPage-flCFtC2N-Dsf2hlMT.js +281 -0
- package/dist/assets/CreditCardPaymentDrawerPage-BKvqMwnt-BuHB8ode.js +224 -0
- package/dist/assets/CurrencySelectField-ksMvik33-CjY_Sqhm.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-DPghXiES-Be3J744M.js → CustomerOnboardingActivationPage-DfT_gkE4-Dk7tFjjw.js} +12 -12
- package/dist/assets/CustomerOnboardingContainerPage-DZ9vkiEO-ah6dg727.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js → CustomerOnboardingDetailPageSkeleton-DfOtXgss-1gud75px.js} +26 -26
- package/dist/assets/CustomerOnboardingNoStepsPage-61UorFvn-DF0b8zE7.js +66 -0
- package/dist/assets/CustomerOnboardingPage-C12XXjv0-mi5gJ6u3.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-CTowHB2X-DUFAd8wB.js +202 -0
- package/dist/assets/Dashboard-2RpETnqH-Dgva4ZAW.js +1551 -0
- package/dist/assets/DashboardReportPage-DRRWpGiJ-Z6RP-3ZH.js +371 -0
- package/dist/assets/DashboardSidebarBackgroundAnimation-0cCKM3E9-DV5Ukn4W.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-C36JnddA-CD1u3HOE.js → DepositAccTransactionItem-DjbheijR-B7o468tr.js} +11 -11
- package/dist/assets/DepositAccTransactionListPage-keSFBKDU-qnysSla9.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-DuKrVIAL-BzRIhYO3.js +21 -0
- package/dist/assets/DownloadOverlay-f6SOW8iK-DORigjXi.js +439 -0
- package/dist/assets/{DrawerPage-BdYS_9Mt-BL0llqyf.js → DrawerPage-BkIQ6mLJ-DU9u6eQ0.js} +21 -21
- package/dist/assets/EditPeoplePage-lZcM4Zfw-CzhpHcfF.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-WO3U-vVY-CTjbkhIP.js +865 -0
- package/dist/assets/EntityDetailPage-AP27Niqu-DwUEbyHL.js +18 -0
- package/dist/assets/EntitySummarySection-B6khdAJg-7W3j7WRI.js +149 -0
- package/dist/assets/ExpenseAutomationOverviewPage-CcTGou9x-D6xWlI6r.js +281 -0
- package/dist/assets/ExpenseAutomationPage-DEleaYKs-SFko_-SO.js +1650 -0
- package/dist/assets/ExpressPayPage-CLYzefaM-CHfIN-TO.js +168 -0
- package/dist/assets/{FeaturePreviewPage-Brau5064-B_mFzC9F.js → FeaturePreviewPage-T78A34---Cfgg_jhN.js} +4 -4
- package/dist/assets/FollowStepsSection-B_mTbqHf-CcoWV2SW.js +390 -0
- package/dist/assets/GlobalReviewListPage-XfxDC9vP-Bi-7QMiL.js +291 -0
- package/dist/assets/InformationCardStack-Buibt8cT-DzjFUhjp.js +31 -0
- package/dist/assets/InsightsCardStack-Cj5iIm_T-CnLFxYVI.js +79 -0
- package/dist/assets/InsightsSection-DuPqQb5Z-C8m7clcN.js +27 -0
- package/dist/assets/IntegrationsSettingsPage-VZDSLMHK--2kEd_Ab.js +57 -0
- package/dist/assets/InternationalWireSwiftDetailsPage-BUa1svL--BjPRjytS.js +171 -0
- package/dist/assets/InternationalWireVerificationPage-C1qKNhqJ-D8-rYzvp.js +292 -0
- package/dist/assets/InviteFormPage-GPXu2hLn-Dlxczoo1.js +312 -0
- package/dist/assets/InvitePageListView-FEFeEFZJ-fGYpyL6r.js +739 -0
- package/dist/assets/InvitePeoplePage-C6E594rf-DZBpEScz.js +12 -0
- package/dist/assets/InvoiceUploadSection-uvB-_dyl-BnrUYuvf.js +140 -0
- package/dist/assets/IssueChargeCardPage-DSPlu840-3aXsgWJG.js +532 -0
- package/dist/assets/LabeledAddressValue-CzDn9ZY4-bnEz1Jxt.js +49 -0
- package/dist/assets/LabeledAddressValueField-C_8kPzjy-5OUHMeqd.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-LwfkGeF--D4JaYe7v.js +16 -0
- package/dist/assets/LabeledCreatableSingleSelectField-sEf-9BOE-pPbJFdXC.js +204 -0
- package/dist/assets/LabeledDocumentField-rGzXpShn-Cfh7MC5-.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-CIQk7Jhu-BODJHkfO.js +59 -0
- package/dist/assets/{LabeledText-iHeu8MCf-BqC7UtSs.js → LabeledText-Dc-697nR-dyJ4TshB.js} +10 -10
- package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-B0D7IWfA-CLizobZu.js +229 -0
- package/dist/assets/LabeledZeniRolesDropDownField-BO8f1yqV-POb2k_D_.js +297 -0
- package/dist/assets/LinkJETransactionPage-DDSo8zJn-CupLOAYQ.js +98 -0
- package/dist/assets/LockCardPage-CvZcUUc8-B6VLJ-gr.js +623 -0
- package/dist/assets/LowBalancePopup-DJQCz0Ed-B8IDUNee.js +34 -0
- package/dist/assets/MagicLinkACHDetailsPage-CEtaoWk8-CST49L9m.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-qdgMQR3_-DWvT9O1j.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DNwtPZ-u-Bk0G3IwE.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-60TBVrSw-CKgQ4p6j.js +31 -0
- package/dist/assets/MagicLinkTitleSection-D2fXbnDV-CA6SEdmn.js +17 -0
- package/dist/assets/MailingDetailsSection-C6cVooC3-CCSD5vtq.js +21 -0
- package/dist/assets/{Menu-pyYbFxsT-C1MdlXRT.js → Menu-D_6Dje0H-Ar5SwcnV.js} +4 -4
- package/dist/assets/MyBankConnectionsSettingsPage-D2EPH9WZ-DhQP4OT2.js +110 -0
- package/dist/assets/MyPendingActivationChargeCardListPage-Bidsd2bk-DJBBvD6g.js +6 -0
- package/dist/assets/MyProfileSettingsPage-BH2ZVQTk-DMG3qFrn.js +85 -0
- package/dist/assets/NavBarWithPicker-Cg2TZjBi-DZVc5NBz.js +30 -0
- package/dist/assets/NavigationArrow-CYserS2B-DdYPXfvg.js +47 -0
- package/dist/assets/{NavigationDots-DO5y6mdV-DGnlFBBn.js → NavigationDots-CT_oO_7z-Bt9KzB5Z.js} +3 -3
- package/dist/assets/NewGlobalMerchantPage-D3MQU5Sh-BUpZMSnV.js +160 -0
- package/dist/assets/{NoDataChart-C0lCeeVH-BiooJKO2.js → NoDataChart-BItQZAQ9-a5HKjWqu.js} +5 -5
- package/dist/assets/NoDataTable-R8OCdB2c-cDhvp6Rg.js +8 -0
- package/dist/assets/{NotFoundPage-DGkjOhKP-kjD5UcP7.js → NotFoundPage-DLHYdRdN-xXzpa00n.js} +9 -9
- package/dist/assets/NotificationSettingsPage-CIwxb6c9-FsYdgXX7.js +163 -0
- package/dist/assets/NotificationsListConfig-DSgUS0hE-mwmsOI0p.js +1 -0
- package/dist/assets/NotificationsPage-W5ZhprRe-DZn-eWsJ.js +685 -0
- package/dist/assets/OpExByVendorPage-DIi58wXa-nKCVWs3g.js +100 -0
- package/dist/assets/OverlayContainerPage-BsY9_22w-CFGZ7LWs.js +11 -0
- package/dist/assets/PandLWithForecastPage-BvMxFrqo-D4f9n7Zm.js +107 -0
- package/dist/assets/PaymentAccountSetupBillingAddressSection-kUAm-v-A-BSna9XIu.js +107 -0
- package/dist/assets/PeoplePage-CtnWc0LE-B3_lhERY.js +675 -0
- package/dist/assets/Preview-Bnbo8Nq1.js +1 -0
- package/dist/assets/ProductsCarousel-n0ZNrr7--DQIbkMZp.js +142 -0
- package/dist/assets/{PromoBaseCards-38oPeuBR-DNrev2WE.js → PromoBaseCards-CeS0HoCZ-CICve0tH.js} +25 -25
- package/dist/assets/QBOConnectionDialog-BxSTc99Z-DVq4lO-s.js +51 -0
- package/dist/assets/QBOSetupSection-FrO9rgct-B0n-bnvz.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-BjtdatXs-DvpYlYpI.js +26 -0
- package/dist/assets/ReimbursementApprovalRulesPage-B0_FgpJf-BSGUtiNs.js +237 -0
- package/dist/assets/ReimbursementDetailPage-BWhPxHY--DgkbtFUt.js +314 -0
- package/dist/assets/ReimbursementPromoPage-CFG0yxOE-CNHt16Bv.js +84 -0
- package/dist/assets/ReimbursementSetUpPage-BmUdLEa9-uEaDyTyL.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-CkJqhXEf-B4qPeVNR.js +1 -0
- package/dist/assets/ReloadCard-CNKwqjPJ-C6w7GHJG.js +26 -0
- package/dist/assets/ReportTableViewSelector-B0DXgLgJ-B3X9gS-3.js +150 -0
- package/dist/assets/ReportsPage-C5iOQU55-DamkEztw.js +121 -0
- package/dist/assets/RevenueChart-C2CMFAQ--BirLMW85.js +280 -0
- package/dist/assets/ReviewDetailsPage-5vOZ0rd7-B41AzmWH.js +290 -0
- package/dist/assets/ReviewOverlay-BAG_6iyV-B2w-MEIV.js +152 -0
- package/dist/assets/RoleWithToolTip-GUYLjJwW-DVSFtUus.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-sPjMfOtt-m5JvZNFh.js +37 -0
- package/dist/assets/ScheduleDetailsPage-DI4C0o6b-B7Dooc-N.js +37 -0
- package/dist/assets/ScheduleSequenceTable-DhXwtG-x-C20E6-vV.js +324 -0
- package/dist/assets/ScreenRoutes-B_yySVlk.js +201 -0
- package/dist/assets/{SetUpAccountSection-DQMufunh-D76vpY_K.js → SetUpAccountSection-DOavnCkG-CmcaONdQ.js} +87 -87
- package/dist/assets/SignIn-DqrG5nEJ-8MVRrbiA.js +448 -0
- package/dist/assets/SignInScreen-CSh4OzXN.js +1 -0
- package/dist/assets/SpendManagementListViewPage-DHY_hZQm-C3jihmoK.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-CoKTIQ2b-D2j2J6zW.js +754 -0
- package/dist/assets/SpendManagementSection-UkTY6qX0-CST6kY6m.js +230 -0
- package/dist/assets/StatementItem-Bx6mxa3U-C42zKfqY.js +31 -0
- package/dist/assets/StatementsPage-ULjFE30P-BGU6QX6B.js +58 -0
- package/dist/assets/{StatusSwitcher-BFs1Anoq-B4RP8Uzy.js → StatusSwitcher-DlBY_FC1-C1Bsm00T.js} +8 -8
- package/dist/assets/SubTabSwitcher-DjEElTWE-5Wo1Obau.js +58 -0
- package/dist/assets/SummaryCard-BNESDUnN-ChwTCNZM.js +1 -0
- package/dist/assets/TaskManagementPage-BFF3ATPV-BYvPz4hv.js +508 -0
- package/dist/assets/TimeRangeSwitcher-xILz-EO6-DqqNb5IN.js +64 -0
- package/dist/assets/TimeframeSwitcher-CZhQm7rH-D5h04PEF.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-CduB3ZjN-PiqhKHhY.js +31 -0
- package/dist/assets/TopExCard-C_HWsAL1-DphCzqA5.js +38 -0
- package/dist/assets/TopExDetailPage-BEKo6juU-CUrrRqCk.js +132 -0
- package/dist/assets/TransactionDetailPage-Bzgtmi3U-DCXvClem.js +912 -0
- package/dist/assets/TransactionList-Dw78Q0Sx-BHAN7axA.js +147 -0
- package/dist/assets/TransactionListBig-BofakL17-k36ZTqo_.js +284 -0
- package/dist/assets/TransactionListPage-tpOg0ax5-aeL9weeE.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-BqIcXz6b-tGgvKqD0.js +80 -0
- package/dist/assets/TransferDrawerPage-DnnZBOyK-y1PDtTFY.js +362 -0
- package/dist/assets/TreasuryOverviewPage-C9ROzNHl-Cn6eazlN.js +708 -0
- package/dist/assets/TreasuryPromoPage--j_2YjQn-DHIwXCO0.js +505 -0
- package/dist/assets/TreasuryStatementsPage-BLrceDQm-vMicHzmk.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-BoqkgdLm-DAQeQUTC.js +58 -0
- package/dist/assets/TrendChart-KnFi8NXQ-DHzaDtQY.js +16 -0
- package/dist/assets/TrendWithTransactions-C_T0I9xe-DqS7m8LH.js +116 -0
- package/dist/assets/UncategorizedAccountsMappingPage-DOuzy2aS-DnfCgWVE.js +244 -0
- package/dist/assets/UnitIntegrationPage-DxhlNHvt-CHN5Qw88.js +67 -0
- package/dist/assets/UploadAdditionalDocumentOverlay-BAvSyhDW-D4KE1Kke.js +38 -0
- package/dist/assets/Vendor2FAPopup-BFjVFON8-Dl6jzAdP.js +1 -0
- package/dist/assets/VendorACHDetailsPage-8BG5DD-0-p3vm6zDD.js +1 -0
- package/dist/assets/VendorDetailPage-C16CrNJo-D86vTvj2.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-DXhugXZa-DeVAnksE.js +1 -0
- package/dist/assets/VendorFiling1099EditablePage-2QPpdbuN-ozpxZwEp.js +175 -0
- package/dist/assets/VendorFirstReviewPage-DLshEh_s-DbpLTolM.js +730 -0
- package/dist/assets/VendorInternationalWireDetailsPage-_WoNgw66-DANrlPFU.js +152 -0
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dyt1ZPOh-DoVwF0sT.js +1 -0
- package/dist/assets/{VendorsAccountsSection-tcJAh1A7-COfHef35.js → VendorsAccountsSection-Dxq0YSgP-Bt8xoh_f.js} +8 -8
- package/dist/assets/VerifyDevice-DEwEqoHA-CylVN9FP.js +112 -0
- package/dist/assets/VideoPlayer-_1Msrww9-DaiS1R42.js +78 -0
- package/dist/assets/{VideoPopup-CPW65Ljn-Mlf95YHy.js → VideoPopup-BzQ_Dl9b-mwrODjDA.js} +4 -4
- package/dist/assets/WarningsDrawerPage-CMBST3p1-ujIyTaCb.js +92 -0
- package/dist/assets/ZeniAccountDetailPage-DVLYYC-q-DeZb5ud9.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-BHkoMOx5-CtDb7Bzx.js +441 -0
- package/dist/assets/ZeniAccountNavBarPieces-CCFzNOcx-CuAvs6Mv.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-C0xo5aaW-EZZNv-KJ.js → ZeniAccountPromoPage-C3Rl-hWL-DwIvVxTo.js} +42 -42
- package/dist/assets/ZeniAccountSetupPage-Bf1OOF0Q-DBu-8Ie5.js +36 -0
- package/dist/assets/ZeniCopyright-CdqD8vO4-DYRLQn9Q.js +1 -0
- package/dist/assets/ZeniTransferAmountSlider-BTudpQjV-CvoGRB0t.js +63 -0
- package/dist/assets/{add-to-wallet-D7W5Y5Hm-zBGkMLf1.js → add-to-wallet-DgdBD8_G-CmJT13gp.js} +1 -1
- package/dist/assets/agingReportHelper-ovKP-qSS-BPG0U4uX.js +1 -0
- package/dist/assets/{analytics-CeQu-r45.js → analytics-zoE7Zcxt.js} +1 -1
- package/dist/assets/{analyticsHelper-DQrzJx-G.js → analyticsHelper-D23HZgYu.js} +1 -1
- package/dist/assets/analyticsHelper-_u1yj9ge-DxpjUhrt.js +1 -0
- package/dist/assets/{arrow-south-east-round-D5pI7KCC-DyTRFc-f.js → arrow-south-east-round-PEovUgvH-7DsZUZDF.js} +1 -1
- package/dist/assets/{auto-transfer-rule-D1bNopxW-BXcmbJh5.js → auto-transfer-rule-mbafm5D3-iFkTgScT.js} +1 -1
- package/dist/assets/chartTypes-vQ8GTDEq-DTt3gea6.js +1 -0
- package/dist/assets/commonDimensions-znFHURNY-BydE4i8M.js +1 -0
- package/dist/assets/{core-tlHkQPPu.js → core-3dlyNYRL.js} +13 -13
- package/dist/assets/dash.all.min-Ba2vGpbn.js +21 -0
- package/dist/assets/detailCommon-DmLhlrjU-ShYTQ7m2.js +38 -0
- package/dist/assets/downloadPdf-CCUPfpyu-Cq1M0ik1.js +1 -0
- package/dist/assets/empty-CnIz-OQ7.js +1 -0
- package/dist/assets/empty-DeBX16Fq.js +1 -0
- package/dist/assets/{epic-CxjM8IKD.js → epic-vmWV05sm.js} +1 -1
- package/dist/assets/{getReferrerType-D1egX4iL-cWt5sFuQ.js → getReferrerType-DjPOy76W-Cm31g4vJ.js} +1 -1
- package/dist/assets/{gift-box-DZx81G9E-DbnUGiwi.js → gift-box-Cmt9OgIZ-CvUdutGd.js} +1 -1
- package/dist/assets/{graphic-no-data-l-CfhD7tYw-SmhQgAdh.js → graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-BWv8w-Qm-31atyJKo.js → graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js} +1 -1
- package/dist/assets/{handshake-D4b9T-E0-BvZJz7M_.js → handshake-BPg58FML-D7G7L1P7.js} +1 -1
- package/dist/assets/hls-BA0yQjS5.js +40 -0
- package/dist/assets/index-A3ojUHL_.js +1 -0
- package/dist/assets/index-BQbbCzKZ.js +1 -0
- package/dist/assets/index-CHOIEdDW.js +1 -0
- package/dist/assets/index-DQmBF4-D.js +3310 -0
- package/dist/assets/index-XNBiWrYj.js +29300 -0
- package/dist/assets/index-jNlf8Zjb.js +1 -0
- package/dist/assets/index-t8y498Dk.css +1 -0
- package/dist/assets/lexical-DPEnH3HH.js +21 -0
- package/dist/assets/{liveblocks-BrzOBACZ.js → liveblocks-DIep7fJd.js} +1 -1
- package/dist/assets/lottie-DEE24l2z.js +9 -0
- package/dist/assets/mapLoadingInProgressToTreeNode-Cw74bTou-BDMlWcL7.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CWFxnMpB-BCzyYlDf.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-JUrBuZAz-wZclqNi-.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-B2iYfeF3-B53qunPl.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CreSrgeo-D32OjiRY.js → mapTimeframeBalancesToTreeNode-BbQHYZk7-DpCyCcLg.js} +1 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BeqGSN9x-CoS9pLIE.js +1 -0
- package/dist/assets/mixin-D3UDm--6.js +43 -0
- package/dist/assets/mui-bYXq4XMS.js +25 -0
- package/dist/assets/{page-detail-L_-1iNMr-DCxtcaOg.js → page-detail-CWX5S47F-Bc8Xpsuq.js} +1 -1
- package/dist/assets/{radio-default-H1PowEcP-lvG8v5I_.js → radio-default-CiSgisfh-Clpw2LWj.js} +1 -1
- package/dist/assets/react-B5y9n_ef.js +17 -0
- package/dist/assets/react-B84192hO.js +32 -0
- package/dist/assets/react-BpmEXSTM.js +27 -0
- package/dist/assets/react-BuvI16A0.js +37 -0
- package/dist/assets/react-BvHTyLQY.js +29 -0
- package/dist/assets/react-CA3XI5Yc.js +16 -0
- package/dist/assets/react-Cz0zQhlY.js +31 -0
- package/dist/assets/react-Egsc5mMa.js +44 -0
- package/dist/assets/recharts-BHhx6CLo.js +73 -0
- package/dist/assets/{sentry-Dhk5jNhq.js → sentry-o6h_D-9x.js} +2 -2
- package/dist/assets/{shield-E_rJ2OWj-kTEIYW8Q.js → shield-DOlUxcFf-BXuToJ7O.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DeZfEmbT-vM-pgltN.js +1 -0
- package/dist/assets/toChartData-KibzV7pa-DRJVLoY0.js +1 -0
- package/dist/assets/{transaction-placeholder-BDef7K0p-Dqvh6We2.js → transaction-placeholder-CpOwZAMG-0pwHfQC6.js} +1 -1
- package/dist/assets/types-DyvtCprH-BcZYcgaq.js +1 -0
- package/dist/assets/uploadAttachment-U9nX0Ka9-1qW3wdO3.js +286 -0
- package/dist/assets/uploadReceipts-CDPM7zcb-DEOGBGdq.js +1 -0
- package/dist/assets/url-BdYIjepo.js +1 -0
- package/dist/assets/url-BxQKeS2R.js +6 -0
- package/dist/assets/useLongPress-GCK2COYQ-8uipnze8.js +1 -0
- package/dist/assets/{usp-line-4JsxsMjK-mCxwNowe.js → usp-line-BBd1wKwW-ClwDS-nj.js} +1 -1
- package/dist/assets/utils-uDUqNRFY.js +70 -0
- package/dist/assets/{zeni-epic-state-Bo1aGezX.js → zeni-epic-state-LPACxnXP.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ACHDetailsPage-StkGXn1c-DnerZ6yw.js +0 -21
- package/dist/assets/AIPerformancePage-cGtd6TYJ-Cp-PQoT7.js +0 -539
- package/dist/assets/AccountInfoPage-BnHC_Y3E-ByMcEeMx.js +0 -18
- package/dist/assets/AccountInfoPageContent-9hQV-QKt-DIbr8exN.js +0 -149
- package/dist/assets/AccountLockedInfoModal-BS5pz9ze-B8_cH9pi.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-D_348I-1-wLi2j7Hz.js +0 -239
- package/dist/assets/AccountRow-DbyUdPZG-D3G-oWRQ.js +0 -298
- package/dist/assets/AccountsPromoCardStack-CeGcTU8h-CiwKEYdC.js +0 -207
- package/dist/assets/AddAddressForCardDrawer-D5EnX225-LqDDXshB.js +0 -6
- package/dist/assets/AddToWalletPage-D45TGyNS-FyEeS4ax.js +0 -344
- package/dist/assets/AgingReportsPage-Cxe-3oBx-BYtw6E86.js +0 -79
- package/dist/assets/AllUserItems-Cc_-o3gE-BoV9oLkk.js +0 -192
- package/dist/assets/ApAgingDetailPage-DoaKW48m-OHK-ezBl.js +0 -46
- package/dist/assets/AppBasePage-BUE60uZt-eqCd5DKr.js +0 -71
- package/dist/assets/AppDrawerContent-P20acbi4-B9KrqH0V.js +0 -91
- package/dist/assets/ApprovalRulesSettingsPage-C5KUTjie-BXW85Fbu.js +0 -47
- package/dist/assets/ArAgingChart-DIABTV5P-DnLiVsos.js +0 -24
- package/dist/assets/ArAgingDetailPage-CA4JP8HZ-DZ9wu-cb.js +0 -46
- package/dist/assets/Area-Sl30rGq6-WMXLxt2t.js +0 -1
- package/dist/assets/AreaChart-2AgE74bB-juQGB2-h.js +0 -1
- package/dist/assets/AttachmentView-DRBK6aiE-DxR-B_-8.js +0 -101
- package/dist/assets/BankAccountSection-CwPIXA5w-DE6FMEHD.js +0 -79
- package/dist/assets/BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js +0 -51
- package/dist/assets/BankConnectionsSettingsPage-bk8eOcuj-7VKzOuZH.js +0 -425
- package/dist/assets/BillDetailPage-CQ8iqo9y-D1hvEdQD.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-B8LMww_O-C3Z44ei8.js +0 -27
- package/dist/assets/BillPayPromoPage-CIUhDNjJ-D6Jrrfcx.js +0 -84
- package/dist/assets/BillPaySetUpPage-CrfwREgO-oxkPqY3f.js +0 -42
- package/dist/assets/BillingSettingsPage-CitBvGaR-nwEc2ngU.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-Cal9oN8I-BL6vOdpc.js +0 -1
- package/dist/assets/BusinessVerificationPage-aj1YPi-U-D08S06Tj.js +0 -138
- package/dist/assets/CardNumberSubText-COZ0PEHK-CGMTIPNh.js +0 -21
- package/dist/assets/CashbackDetailPage-BloaeO12-DkRvSRPk.js +0 -285
- package/dist/assets/ChargeCardDetailPage-CjW48x_w-DZEJnmps.js +0 -1462
- package/dist/assets/ChargeCardListPage-CiUoFBZq-BBkjDTTQ.js +0 -412
- package/dist/assets/ChargeCardListTable-BGdEyXLV-BJk1B__-.js +0 -711
- package/dist/assets/ChargeCardPromoPage-BYgvGdtQ-jQVVK6Po.js +0 -222
- package/dist/assets/ChargeCardSetupPage-B0L57e-5-DfN8lydv.js +0 -36
- package/dist/assets/ChargeCardStatementsPage-CB76MDoV-B8r9tvXY.js +0 -60
- package/dist/assets/CheckDepositDrawerPage-Cr_oz-BZ-B8n362Tm.js +0 -206
- package/dist/assets/CollapsableReportTable-B3_in9eE-D8gjZt8q.js +0 -2844
- package/dist/assets/CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js +0 -260
- package/dist/assets/CompanyPassportCard-Bn50f4y5-D-A9Krsj.js +0 -42
- package/dist/assets/CompanyPassportPage-CamFfvAV-lyA9J8un.js +0 -574
- package/dist/assets/CompleteProfile-2jFR92oO-DA0X1epS.js +0 -52
- package/dist/assets/ComposedChart-Cot0K7Et-DQrzoGG2.js +0 -1
- package/dist/assets/ConfettiBurst-D34cviSS-Z_WPGmrN.js +0 -1
- package/dist/assets/CreateOrEditVendorPage-Abz0ijRD-C8cSnLG_.js +0 -281
- package/dist/assets/CreditCardPaymentDrawerPage-BRcbxJYU-DxBcUp2U.js +0 -224
- package/dist/assets/CurrencySelectField-DR8cDrIS-TTiuldkA.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BpWpryzi.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-B0y5uw1X-DTSY3wEk.js +0 -66
- package/dist/assets/CustomerOnboardingPage-BheJqVUY-DnAWhFCF.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-BaYYKqZ9-C13CIlQM.js +0 -202
- package/dist/assets/Dashboard-DJs11vgV-CqS9vdTt.js +0 -1551
- package/dist/assets/DashboardReportPage-CL0RrJ4A-FEfXS09v.js +0 -371
- package/dist/assets/DashboardSidebarBackgroundAnimation-DHlKExbg-wP92oaCm.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-Db5EpWjl-D4uYWawD.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-C_flRkmQ-DX47g_ws.js +0 -21
- package/dist/assets/DownloadOverlay-CLWNXGnb-DS0DZTJ1.js +0 -439
- package/dist/assets/EditPeoplePage-B7bjXrqC-Bm6qgPK0.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-BRYd6JMC-BudgCO3p.js +0 -865
- package/dist/assets/EntityDetailPage-B1aKw_1J-DOXQOxN6.js +0 -18
- package/dist/assets/EntitySummarySection-Cp-CFb9j-NVB6pHEa.js +0 -149
- package/dist/assets/ExpenseAutomationOverviewPage-C7tY6mua-BYHSgS-c.js +0 -281
- package/dist/assets/ExpenseAutomationPage-CeP8I1tB-C-mlsXcM.js +0 -1650
- package/dist/assets/ExpressPayPage-DYUtczg7-BDKERlx3.js +0 -168
- package/dist/assets/FollowStepsSection-Dhf67oqf-CptFWIJS.js +0 -390
- package/dist/assets/GlobalReviewListPage-C89Tsajc-e0Pd9wZo.js +0 -291
- package/dist/assets/InformationCardStack-BLD4XmMT-Dp1BbBqU.js +0 -31
- package/dist/assets/InsightsCardStack-CAwTWreO-DWsXatY7.js +0 -79
- package/dist/assets/InsightsSection-DJrMi3DN-DUYhJ5vl.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-LAjqcDLQ-BjUKkE_z.js +0 -57
- package/dist/assets/InternationalWireSwiftDetailsPage-_4BMP68N-DzpoTdAd.js +0 -171
- package/dist/assets/InternationalWireVerificationPage-BiDh0ost-o29PWd-q.js +0 -292
- package/dist/assets/InviteFormPage-DN2uvROT-Dfc30Liy.js +0 -312
- package/dist/assets/InvitePageListView-DDi1bLaG-BIsQyZAc.js +0 -739
- package/dist/assets/InvitePeoplePage-D4bsu9K1-CnzfbNDf.js +0 -12
- package/dist/assets/InvoiceUploadSection-BducuHAy-CwGoLvBS.js +0 -140
- package/dist/assets/IssueChargeCardPage-C2I9mUTD-8YcF3Lm8.js +0 -532
- package/dist/assets/LabeledAddressValue-mLMacnQu-BhboedQp.js +0 -49
- package/dist/assets/LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js +0 -16
- package/dist/assets/LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js +0 -204
- package/dist/assets/LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-B4_WiAaD-BNmJ6YJs.js +0 -59
- package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-3DtmJ9nC.js +0 -229
- package/dist/assets/LabeledZeniRolesDropDownField-DoF6cXd_-NHc4m6ED.js +0 -297
- package/dist/assets/LinkJETransactionPage-C1FL0hR6-BhDC9P29.js +0 -98
- package/dist/assets/LockCardPage-Do7WCHaW-DegBv6L_.js +0 -623
- package/dist/assets/LowBalancePopup-CEiTKqxT-F00svkBR.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-C7xvzxN5-Dc6R7yOX.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D8iNxVu6-BUAijWLq.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DNmvv77I-BpwPqLdA.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-BO-k4XK1-MGQVRHRk.js +0 -31
- package/dist/assets/MagicLinkTitleSection-CzGvBYzB-DMlmyXfy.js +0 -17
- package/dist/assets/MailingDetailsSection-C_TtoLpj-DODfBmzp.js +0 -21
- package/dist/assets/MyBankConnectionsSettingsPage-BP6RBO_Y-CehX8chf.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-CBwy21Ec-BLf4vWlb.js +0 -6
- package/dist/assets/MyProfileSettingsPage-yHoOgEgo-DBI4IsMo.js +0 -85
- package/dist/assets/NavBarWithPicker-FYZ2a05o-CmU_pgV6.js +0 -30
- package/dist/assets/NavigationArrow-DlO0Lww9-Ct543iDt.js +0 -47
- package/dist/assets/NewGlobalMerchantPage-FW6_Vbee-CfGEofWn.js +0 -160
- package/dist/assets/NoDataTable-Mkdamra1-CCnSaZtC.js +0 -8
- package/dist/assets/NotificationSettingsPage-BhlKl9Ll-BUY5FCkq.js +0 -163
- package/dist/assets/NotificationsListConfig-DsgxTfdY-t5wE01Ro.js +0 -1
- package/dist/assets/NotificationsPage-ZeNj-N6e-Bg1RwKL7.js +0 -685
- package/dist/assets/OpExByVendorPage-BFHzD656-CkhDsmtK.js +0 -100
- package/dist/assets/OverlayContainerPage-C0a1XRUE-Coei_22L.js +0 -11
- package/dist/assets/PandLWithForecastPage-Ccd2Dj3E-BSp6SVyg.js +0 -107
- package/dist/assets/PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js +0 -107
- package/dist/assets/PeoplePage-Dzl5Uh33-C_9NQRDZ.js +0 -675
- package/dist/assets/Preview-Ciq7dXYi-CJfe3XpZ.js +0 -1
- package/dist/assets/ProductsCarousel-B7wcRg4N-MgqN7eQE.js +0 -142
- package/dist/assets/QBOConnectionDialog-Bn425Vnl-D7-SW8Tv.js +0 -51
- package/dist/assets/QBOSetupSection-BqbiJ_dk-CZU6Pjgx.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DmhPPX4d-DMO5czP7.js +0 -26
- package/dist/assets/ReimbursementApprovalRulesPage-DwaZeT8t-Ds2HMmHz.js +0 -237
- package/dist/assets/ReimbursementDetailPage-D2tg-yOT-C3XwZ7Pf.js +0 -314
- package/dist/assets/ReimbursementPromoPage-kn4Die2q-BNaLqm9R.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-D4FP9co3-fxCiVZhE.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-hhvxZzxC-BXtCzSIP.js +0 -1
- package/dist/assets/ReloadCard-CreyuBvN-CLMqgpFk.js +0 -26
- package/dist/assets/ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js +0 -150
- package/dist/assets/ReportsPage-CZpFSu1Y-DlpOcAya.js +0 -121
- package/dist/assets/RevenueChart-CI7LXu5--DgnFQndd.js +0 -280
- package/dist/assets/ReviewDetailsPage-DaTETUBT-PWso5Dab.js +0 -290
- package/dist/assets/ReviewOverlay-De5_nrll-D6fwtyEd.js +0 -152
- package/dist/assets/RoleWithToolTip-CWH-iJqI-DmzPBpda.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-Bq9TnStX-DDHnOsNU.js +0 -37
- package/dist/assets/ScheduleDetailsPage-CkpwjK55-BLiF70NF.js +0 -37
- package/dist/assets/ScheduleSequenceTable-3IZuZOPj-CeUyJkl1.js +0 -324
- package/dist/assets/ScreenRoutes-B29orzq3.js +0 -206
- package/dist/assets/SignIn-xXGNpo08-CUzVPK00.js +0 -450
- package/dist/assets/SignInScreen-CDr9y3Na.js +0 -1
- package/dist/assets/SpendManagementListViewPage-BnfCoW19-BZB7Hw4I.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-CqbhJrUj-DTu-7Bk6.js +0 -754
- package/dist/assets/SpendManagementSection-ajHIu1O8-Cq9RGBsG.js +0 -230
- package/dist/assets/StatementItem-GE_8ctAq-DDQXsDRX.js +0 -31
- package/dist/assets/StatementsPage-C3NFPx6M-jgAzPQMr.js +0 -58
- package/dist/assets/SubTabSwitcher-D66ATBlk-cmQvyV1w.js +0 -58
- package/dist/assets/SummaryCard-Bm1IRZgD-Bll-orHR.js +0 -1
- package/dist/assets/Switch-0GHq7mOt-Dq45hGqf.js +0 -1
- package/dist/assets/TaskManagementPage-BGrBiImq-E6_WY2ZU.js +0 -508
- package/dist/assets/TimeRangeSwitcher-BLZFMJtQ-wzd2C_JZ.js +0 -66
- package/dist/assets/TimeframeSwitcher-BsjH-yMO-V_f8h8uY.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-Cu3G5WXl-BNaAKXj3.js +0 -31
- package/dist/assets/TopExCard-ZSEsgTG--BNm-M2ne.js +0 -38
- package/dist/assets/TopExDetailPage-0MGEdNiZ-CVCWUWVh.js +0 -132
- package/dist/assets/TransactionDetailPage-C7wPASNo-BTqu7QgN.js +0 -912
- package/dist/assets/TransactionList-Brm_EWed-DwQzznTi.js +0 -147
- package/dist/assets/TransactionListBig-Br5XrVkF-BW7DnMvS.js +0 -284
- package/dist/assets/TransactionListPage-BE_E_82V-SHPPjUOF.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-CtVIgF01-3kEoBcmO.js +0 -80
- package/dist/assets/TransferDrawerPage-CCKQSH2d-21ckGGxB.js +0 -362
- package/dist/assets/TreasuryOverviewPage-D7OhHT_I-DWU8OjtE.js +0 -708
- package/dist/assets/TreasuryPromoPage-ssGWinby-BKoFmxRZ.js +0 -505
- package/dist/assets/TreasuryStatementsPage-CB4g45eo-D4tAMGAJ.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-CixtQrG2-DyQ3GU2a.js +0 -58
- package/dist/assets/TrendChart-ZXja3Lv--B4yGBgeP.js +0 -16
- package/dist/assets/TrendWithTransactions-Bacaqvbc-CDzpSeHr.js +0 -116
- package/dist/assets/UncategorizedAccountsMappingPage-DgSFpzWV-Bo91RVO4.js +0 -244
- package/dist/assets/UnitIntegrationPage-B2KxkPGT-Cj7aVov9.js +0 -67
- package/dist/assets/UploadAdditionalDocumentOverlay-DCq4eMPQ-0xv-e5Z1.js +0 -38
- package/dist/assets/Vendor2FAPopup-DyQl5kF8-BPyop29n.js +0 -1
- package/dist/assets/VendorACHDetailsPage-NEsVAzoZ-DqBD51QK.js +0 -1
- package/dist/assets/VendorDetailPage-gDnCoaGz-Bq_C256n.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BeqPYONY-C4JA1J7T.js +0 -1
- package/dist/assets/VendorFiling1099EditablePage-UIV2Tn2v-dXlu2VP0.js +0 -175
- package/dist/assets/VendorFirstReviewPage-DiNHrTKs--rE1SgmE.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-X2xViJmq-BLoiZ84q.js +0 -152
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DUjY1sSV-xU4diICn.js +0 -1
- package/dist/assets/VerifyDevice-BpRkPdzL-DdjhGhQl.js +0 -112
- package/dist/assets/VideoPlayer-DVIeTdLq-CMw9Re6n.js +0 -78
- package/dist/assets/WarningsDrawerPage-DmT71mwN-DESwOtN_.js +0 -92
- package/dist/assets/ZeniAccountDetailPage-BDnKHtXx-DnCgg11y.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-D1I68D9x-zovkBtXJ.js +0 -441
- package/dist/assets/ZeniAccountNavBarPieces-2a3O6Mrv-CEltxOUL.js +0 -14
- package/dist/assets/ZeniAccountSetupPage-BfUwEF_n-Cb98B4Sd.js +0 -36
- package/dist/assets/ZeniCopyright-DPuPyAW5-BSJS_xPn.js +0 -1
- package/dist/assets/ZeniTransferAmountSlider-CPHnjZJx-BmCI7vMf.js +0 -63
- package/dist/assets/__vite-browser-external-FmFgRqLi-FmFgRqLi.js +0 -1
- package/dist/assets/_baseUnset-WRwI4F7w-C17FI5GR.js +0 -1
- package/dist/assets/agingReportHelper-Cf__8gug-B4Tesv9Z.js +0 -1
- package/dist/assets/analyticsHelper-QM8g-I4_-BsSO6wHs.js +0 -1
- package/dist/assets/chartTypes-BADtYh4F-X-tWlUJq.js +0 -1
- package/dist/assets/commonDimensions-B2oTTz3C-DxkHqcKn.js +0 -1
- package/dist/assets/dash.all.min-UPr31zh1-ZEpa15jK.js +0 -21
- package/dist/assets/detailCommon-B2986coM-C1gDOjW1.js +0 -38
- package/dist/assets/downloadPdf-C0_jxUh_-bREzf3Cq.js +0 -1
- package/dist/assets/flatten-CIVR5K8J-DvOZeE7b.js +0 -1
- package/dist/assets/groupBy-LtwzERV9-C02NtlDV.js +0 -1
- package/dist/assets/hls-CsNM3rq8-NlJdpMmx.js +0 -40
- package/dist/assets/index-2CdI-B2B.js +0 -29301
- package/dist/assets/index-BR5-Z2ox.css +0 -1
- package/dist/assets/index-BYRTFU-W-YvTg_8TB.js +0 -3305
- package/dist/assets/lexical-l0sNRNKZ.js +0 -1
- package/dist/assets/lottie-B4xjt4lE.js +0 -1
- package/dist/assets/map-CnboTxlt-CZn0FfBt.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-C7GfKtaE.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-D35gt6vK-B3lOm-Wx.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-DOWHQg2-.js +0 -1
- package/dist/assets/mixin-XJuHfVsL-Dozz_ZkW.js +0 -43
- package/dist/assets/mui-kiGMfX4-.js +0 -25
- package/dist/assets/omit-5LZGrM3q-cCGLyNB9.js +0 -1
- package/dist/assets/orderBy-D3W4CDe6-BoPe-dQB.js +0 -1
- package/dist/assets/react-6Tvfe2S2-C3CHfLw_.js +0 -19
- package/dist/assets/react-B2-P-PS--DYmRygxV.js +0 -19
- package/dist/assets/react-CWXWcDMY-C8y3pdCP.js +0 -17
- package/dist/assets/react-CWt3gw2R-CPQu_93E.js +0 -21
- package/dist/assets/react-CvWP22DQ-DgwH1WE1.js +0 -7
- package/dist/assets/react-CytUn6Kg-Dh6LSVZI.js +0 -22
- package/dist/assets/react-DBTaojCw-BTbEMBGt.js +0 -6
- package/dist/assets/react-G6j-OGKl--ofewKrH.js +0 -34
- package/dist/assets/recharts-Diw77Kjb.js +0 -1
- package/dist/assets/remove-ADLCpWJf-CcDvT7jc.js +0 -1
- package/dist/assets/toCOABalancesWithID-C_Swao_b-2UkzUVnC.js +0 -1
- package/dist/assets/toChartData-DfujfQ7D-nillWsTs.js +0 -1
- package/dist/assets/types-DRnhtDPC-CEIiK5pR.js +0 -1
- package/dist/assets/uploadAttachment-Wnp0PZFn-CVVetHUv.js +0 -286
- package/dist/assets/uploadReceipts-BkHrFC8j-DevoCqHx.js +0 -1
- package/dist/assets/useFormControl-DPydD0oc-BkCU7DyG.js +0 -1
- package/dist/assets/useLongPress-7jtiD2hr-B6uZ6RFc.js +0 -1
- package/dist/assets/utils-BLUF9kAp.js +0 -70
|
@@ -1,1462 +0,0 @@
|
|
|
1
|
-
import{i as Qe,u as ke,a$ as Lt,a7 as It,ig as wr,iY as wi,bs as Xe,a as be,ih as xr,bB as Je,j as t,ij as xi,cf as Si,s as l,he as Sr,bn as _e,bm as X,b as a,cH as Qt,C as d,ko as yr,t as W,dc as yi,kp as bi,gw as $i,i6 as vi,kq as ki,cm as ji,cz as br,bq as ea,kr as Li,ks as $r,kt as at,R,cq as vr,bM as ta,S as Ii,br as kr,bz as Di,ku as Ti,kv as Ai,bH as aa,af as pe,fU as Ri,kc as Fi,g as mt,ii as jr,A as ut,bG as Ei,eC as zi,dj as Pi,dd as Mi,dU as Vi,iV as Oi,ah as Pe,cJ as Hi,bw as Wt,kw as Ut,kx as Ea,ky as Ni,d as za,e as Lr,bJ as Bi,kz as Wi,k6 as ht,km as Ui,kn as _i,ki as Zi,eR as Pa,ge as Gi,B as Ir,di as Dr,kf as Yi,cM as qi,L as Tr,kA as Ki,ax as vt,cP as Ma,cb as Xi,ep as Ji,ai as it,iQ as Qi,as as eo,f as to,cn as ao,kB as Dt,gL as ro,cF as io,kC as Ar,kD as Rr,hT as Fr,kE as jt,jD as Er,kh as oo,dq as no,fz as so,d2 as co,d3 as lo,kj as ho,kk as po,f6 as uo,dP as mo}from"./index-2CdI-B2B.js";import{a as o,o as go,d as zr}from"./core-tlHkQPPu.js";import{n as r,c as ge,k as Pr}from"./mui-kiGMfX4-.js";import{eI as Tt,bj as Co,bg as fo}from"./zeni-epic-state-Bo1aGezX.js";import{n as wo}from"./NavigationDots-DO5y6mdV-DGnlFBBn.js";import{i as xo,r as So,l as yo,a as bo,n as $o,C as vo,t as ko}from"./add-to-wallet-D7W5Y5Hm-zBGkMLf1.js";import{h as jo}from"./CardNumberSubText-COZ0PEHK-CGMTIPNh.js";import{u as Mr}from"./remove-ADLCpWJf-CcDvT7jc.js";import{e as Vr}from"./uploadReceipts-BkHrFC8j-DevoCqHx.js";import{E as Lo,O as Io,r as Do,u as To}from"./LockCardPage-Do7WCHaW-DegBv6L_.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./_baseUnset-WRwI4F7w-C17FI5GR.js";import"./RoleWithToolTip-CWH-iJqI-DmzPBpda.js";const Or=be.getLocalizedStrings().spendManagement.chargeCard,Ao=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:x,chargeCardDetailView:p,productInformation:f,creditAccountInformation:g,debitAccountInformation:C,creditAccount:c,creditAccountRepayment:n,cardIssuedByRoles:w,cardIssuedByDepartmentName:S,cardHolderRoles:I,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:E,setWalletType:y,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const k=It().analytics,{isIPadScreen:Z}=Ti(),{isAndroidScreen:J}=Ai(),_=Lt(),T=Tt(_.loggedInUserRoleMap);return t.jsx(Ro,{style:u,children:Z===!0?t.jsx(Jt,{onClick:()=>{at({chargeCardDetailView:p,classListFetchState:i,analytics:k,isDebitCard:H,isChargeCardAdmin:T,cardIssuedByRoles:w,cardIssuedByDepartmentName:S,cardHolderRoles:I,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:f,creditAccountInformation:g,debitAccountInformation:C,isChargeCardFeatureEnabled:s,creditAccount:c,creditAccountRepayment:n}),window.open(j,"_blank")}}):J===!0?t.jsx(Xt,{onClick:()=>{at({chargeCardDetailView:p,classListFetchState:i,analytics:k,isDebitCard:H,isChargeCardAdmin:T,cardIssuedByRoles:w,cardIssuedByDepartmentName:S,cardHolderRoles:I,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:f,creditAccountInformation:g,debitAccountInformation:C,isChargeCardFeatureEnabled:s,creditAccount:c,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Jt,{onClick:()=>{y("apple"),E.current="slide-in-right-to-left-add-to-wallet",at({chargeCardDetailView:p,classListFetchState:i,analytics:k,isDebitCard:H,isChargeCardAdmin:T,cardIssuedByRoles:w,cardIssuedByDepartmentName:S,cardHolderRoles:I,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:f,creditAccountInformation:g,debitAccountInformation:C,creditAccount:c,creditAccountRepayment:n}),O(!0)}}),t.jsx(Xt,{onClick:()=>{y("google"),E.current="slide-in-right-to-left-add-to-wallet",at({chargeCardDetailView:p,classListFetchState:i,analytics:k,isDebitCard:H,isChargeCardAdmin:T,cardIssuedByRoles:w,cardIssuedByDepartmentName:S,cardHolderRoles:I,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:f,creditAccountInformation:g,debitAccountInformation:C,creditAccount:c,creditAccountRepayment:n}),O(!0)}})]})})},Xt=({onClick:e})=>{const i=Qe();return t.jsx(Ir,{prefixIcon:t.jsx(Fo,{}),label:Or.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":X("add-to-google-wallet-button")})},Jt=({onClick:e})=>{const i=Qe();return t.jsx(Ir,{prefixIcon:t.jsx(Eo,{}),label:Or.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":X("add-to-apple-wallet-button")})},Ro=r.div`
|
|
2
|
-
margin-top: ${a.sp4};
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
gap: ${a.sp5};
|
|
6
|
-
`,Fo=r(ko)`
|
|
7
|
-
height: ${a.sp4};
|
|
8
|
-
width: ${a.sp5};
|
|
9
|
-
`,Eo=r(vo)`
|
|
10
|
-
height: ${a.sp4};
|
|
11
|
-
width: ${a.sp5};
|
|
12
|
-
`,zo=[d.brandColorSapphire,d.brandColorJade,d.graphColor01,d.graphColor08,d.graphColor12,d.graphColor15,d.graphColor16Dark,d.graphColor23Dark,d.graphColor32Dark,d.graphColor34Dark,d.brandColorOpalDark,d.brandColorRuby],Po=be.getLocalizedStrings().spendManagement.chargeCard,Mo=({isColorPaletteVisible:e,hasBorderShadow:i,leftTransitionValue:s,colorInState:m,styles:h,colorPaletteTitleStyles:x,ColorListStyles:p,coloredCircleStyles:f,closeStyles:g,tickStyles:C,toggleColorPaletteVisibility:c,handleColorClick:n})=>t.jsxs(Vo,{showColorPalette:e,style:h,hasBorderShadow:i,leftTransitionValue:s,children:[t.jsxs(Ho,{style:x,children:[t.jsx(No,{children:Po.cardDetails.cardTheme}),t.jsx(Bo,{style:g,"data-testid":X("close-color-palette"),onClick:w=>{w.stopPropagation(),c(!e)}})]}),t.jsx(Oo,{style:p,children:zo.map((w,S)=>t.jsx(Uo,{style:f,coreColor:w,onMouseEnter:()=>n(new Xe(w),!1),onMouseLeave:()=>m!=null?n(new Xe(m),!1):null,"data-testid":X("color-palette-item-cards",S.toString()),onClick:()=>n(new Xe(w),!0),children:new Xe(w).toString()===m?.toString()?t.jsx(Wo,{style:C}):null},w))})]}),Vo=r.div`
|
|
13
|
-
display: flex;
|
|
14
|
-
top: ${a.sp1};
|
|
15
|
-
max-width: 78%;
|
|
16
|
-
left: ${e=>e.showColorPalette?e.hasBorderShadow?a.sp1:a.sp0:`${e.leftTransitionValue}px`};
|
|
17
|
-
transition: left 0.3s ease-in;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
background: ${d.neutralGrey5Light};
|
|
20
|
-
border-top-left-radius: ${a.sp1};
|
|
21
|
-
border-bottom-left-radius: ${a.sp1};
|
|
22
|
-
position: absolute;
|
|
23
|
-
height: ${`calc(100% - ${a.sp2})`};
|
|
24
|
-
z-index: 1;
|
|
25
|
-
`,Oo=r.div`
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-wrap: wrap;
|
|
28
|
-
padding: ${a.sp0} 38px ${a.sp0} 31px;
|
|
29
|
-
`,Ho=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
|
-
`,No=r(pe)`
|
|
35
|
-
color: ${d.brandColorOnyx};
|
|
36
|
-
`,Bo=r(to)`
|
|
37
|
-
width: ${a.sp3};
|
|
38
|
-
height: ${a.sp3};
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
color: ${e=>e.theme.colors.hero};
|
|
41
|
-
`,Wo=r(ao)`
|
|
42
|
-
width: ${a.sp3};
|
|
43
|
-
color: ${d.neutralGrey5Light};
|
|
44
|
-
`,Uo=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:_o,common:Ke,dateFormat:Zo}=be.getLocalizedStrings(),Ye=_o.chargeCard,Te={secretCardNumberWrapperWidth:280,secretCVVWrapperHeight:30,secretCVVWrapperWidth:l[7],cardNumberCopiedSectionTop:54,cvvCopiedSectionTop:34,maskedCardNumberMarginTop:new R(-2,-2,-2,l[0]),expiryCopySectionTop:34,cardNumberCopyBtnTop:21},Va={CardInfoTitleSize:new R(W.extraSmallRegular.fontSizeValue,W.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new R(18,18,18,21)},_t=e=>t.jsxs(hn,{style:{...e},children:[t.jsx(ln,{}),t.jsx(pn,{style:{background:d.blackColor,color:d.primaryDark,padding:`2px ${a.sp2}`,borderRadius:a.sp1},children:Ke.copyToClipBoard.copied})]}),Oa=({isSandboxEnv:e,sourceId:i,showSecretInfo:s,secretRevealed:m,vgsVaultId:h,controllerEmails:x,isChargeCardFeatureEnabled:p,productInformation:f,cashbackInformation:g,creditAccountInformation:C,debitAccountInformation:c,chargeCardCashbackDetailState:n,creditAccount:w,creditAccountRepayment:S,isDebitCard:I,depositAccountLimitFetchState:$,isCardDetailErrored:j,isCardColorUpdating:D,cardDetailsFetchState:u,isCardColorUndefined:E,cardInfoTitleStyles:y,styles:O,cvvSecStyles:H,chargeCard:k,token:Z,setSecretRevealed:J,setIsCardDetailErrored:_,setCardDetailsFetchState:T,onFireOnClickAnalytics:oe})=>{const Q=It().analytics,[,ie]=wr(),V=ke(),[U,G]=o.useState(!1),[q,z]=o.useState(!1),[ne,ee]=o.useState(!1),te=Lt(),K=Tt(te.loggedInUserRoleMap),[N]=yr("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),L=i==="addToWalletDrawer"?.75:V==="small"?.85:1,B=e?"sandbox":"live";o.useEffect(()=>{if(N&&k!=null&&s&&Z!=null&&!m){const A=window.VGSShow.create(h).setEnvironment(B),P=k.cardProviderID,ae=A.request({name:"data-text",method:"GET",path:"/cards/"+P+"/secure-data/cvv2",headers:{Authorization:"Bearer "+Z},htmlWrapper:"text",jsonPathSelector:"data.attributes.cvv2"});T({cvv:!0,number:!0}),ae.render(`#SecretCvv-${i}`,{"@font-face":{"font-family":vt["PT Mono"],"font-style":"normal","font-weight":Ma.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":vt["PT Mono"],opacity:.7,color:d.brandColorOnyx,fontSize:L*W.h6Regular.fontSizeValue+"px",fontWeight:W.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:L*W.h6Regular.lineHeightValue+"px"}),ae.on("requestSuccess",()=>{J(!0),_(!1),T({...u,cvv:!1})}),ae.on("requestFail",()=>{_(!0),T({...u,cvv:!1});const v=document.getElementById(`SecretCvv-${i}`);for(;v?.hasChildNodes()===!0;)v.removeChild(v.children[0])}),A.copyFrom(ae,{text:Ke.strings.empty},v=>{v==="success"?(z(!0),oe("CVV copied"),n.fetchState!=="Completed"||p&&(w.fetchState!=="Completed"||S.fetchState!=="Completed")||I&&K&&$!=="Completed"||Q.trackCardsCopyIconClick(x,f,"Cards Detail","Copy","copied","CVV","",g,C,c)):z(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:L*Te.secretCVVWrapperHeight+"px",width:L*Te.secretCVVWrapperWidth+"px"});const se=A.request({name:"data-text",method:"GET",path:"/cards/"+P+"/secure-data/pan",headers:{Authorization:"Bearer "+Z},htmlWrapper:"text",jsonPathSelector:"data.attributes.pan",serializers:[A.SERIALIZERS.replace("(\\d{4})(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3 $4")]});se.render(`#SecretCardNumber-${i}`,{"@font-face":{"font-family":vt["PT Mono"],"font-style":"normal","font-weight":Ma.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":vt["PT Mono"],opacity:.7,color:d.brandColorOnyx,fontSize:L*W.h6Regular.fontSizeValue+"px",fontWeight:W.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:L*W.h6Regular.lineHeightValue+"px"}),se.on("requestSuccess",()=>{J(!0),_(!1),T({...u,number:!1})}),se.on("requestFail",()=>{_(!0),T({...u,number:!1});const v=document.getElementById(`SecretCardNumber-${i}`);for(;v?.hasChildNodes()===!0;)v.removeChild(v.children[0])}),A.copyFrom(se,{text:Ke.strings.empty,serializers:[A.SERIALIZERS.replace(Ke.strings.space,Ke.strings.empty)]},v=>{v==="success"?(G(!0),oe("card number copied"),n.fetchState!=="Completed"||p&&(w.fetchState!=="Completed"||S.fetchState!=="Completed")||I&&K&&$!=="Completed"||Q.trackCardsCopyIconClick(x,f,"Cards Detail","Copy","copied","Card Number","",g,C,c)):G(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:L*W.h6Regular.lineHeightValue+"px",width:L*Te.secretCardNumberWrapperWidth+"px"})}},[N,k,s,Z,m]),o.useEffect(()=>{if(s===!1){const A=document.getElementById(`SecretCvv-${i}`);for(;A?.hasChildNodes()===!0;)A.removeChild(A.children[0]);const P=document.getElementById(`CvvCopyBtn-${i}`);for(;P?.hasChildNodes()===!0;)P.removeChild(P.children[0]);const ae=document.getElementById(`SecretCardNumber-${i}`);for(;ae?.hasChildNodes()===!0;)ae.removeChild(ae.children[0]);const se=document.getElementById(`CardNumberCopyBtn-${i}`);for(;se?.hasChildNodes()===!0;)se.removeChild(se.children[0])}},[i,s]),o.useEffect(()=>{U===!0&&setTimeout(()=>{G(!1)},800),q===!0&&setTimeout(()=>{z(!1)},800),ne===!0&&setTimeout(()=>{ee(!1)},800)},[U,q,ne]);const Y=k!=null?fo(k.validThru.year,k.validThru.month-1).format(Zo.visual.MMSlashYYFormat):Ke.strings.empty;return t.jsxs(en,{style:O,children:[t.jsxs(tn,{children:[t.jsx(Zt,{style:y,windowSize:V,children:Ye.cardDetails.cardNumber}),t.jsx(an,{sourceId:i,scaleFactor:L,showSecretInfo:s&&(u.number===!1||u.cvv===!1),isCardDetailFetching:u.number===!0||u.cvv===!0||E||D,windowSize:V,children:`${Ye.cardDetails.cardNumberHideout}
|
|
54
|
-
${k?.accountLast4??Ke.strings.empty}`}),t.jsxs(Go,{secretRevealed:m,scaleFactor:L,showSecretInfo:s&&u.cvv===!1&&u.number===!1,sourceId:i,isCardDetailErrored:j,children:[t.jsx(Yo,{sourceId:i,scaleFactor:L,secretRevealed:m,id:`SecretCardNumber-${i}`}),t.jsx(Qo,{secretRevealed:m,scaleFactor:L,id:`CardNumberCopyBtn-${i}`,sourceId:i}),U===!0?t.jsx(_t,{top:L*Te.cardNumberCopiedSectionTop}):null]})]}),t.jsxs(rn,{children:[t.jsxs(sn,{children:[t.jsx(Zt,{style:y,windowSize:V,children:Ye.cardDetails.expiry}),t.jsxs(Xo,{secretRevealed:s&&(u.cvv===!1||u.number===!1),children:[m&&s&&u.cvv===!1&&u.number===!1?t.jsx(cn,{sourceId:i,scaleFactor:L,windowSize:V,secretRevealed:m&&s,"data-testid":X("expiry-date-copy"),onClick:A=>{var P;A.stopPropagation(),P=k,s!==!0||u.cvv===!0&&u.number===!0||(oe("validity copied"),P==null||n.fetchState!=="Completed"||p&&(w.fetchState!=="Completed"||S.fetchState!=="Completed")||I&&K&&$!=="Completed"||Q.trackCardsCopyIconClick(x,f,"Cards Detail","Copy","copied","Valid Thru",Y,g,C,c),ie(Y),ee(!0))},children:m&&s&&u.cvv===!1&&u.number===!1?Y:Ye.cardDetails.expiryHideOut}):t.jsx(dn,{sourceId:i,windowSize:V,scaleFactor:L,isCardDetailFetching:u.cvv===!0||u.number===!0||E||D,children:Ye.cardDetails.expiryHideOut}),ne===!0?t.jsx(_t,{top:L*Te.expiryCopySectionTop,width:"auto"}):null]})]}),t.jsxs(on,{style:H,children:[t.jsx(Zt,{style:y,windowSize:V,children:Ye.cardDetails.cvv}),t.jsx(nn,{sourceId:i,scaleFactor:L,showSecretInfo:s&&u.cvv===!1&&u.number===!1,isCardDetailFetching:u.number===!0||u.cvv===!0||E||D,windowSize:V,children:Ye.cardDetails.cvvHideOut}),t.jsxs(qo,{secretRevealed:m,sourceId:i,showSecretInfo:s&&u.cvv===!1&&u.number===!1,isCardDetailErrored:j,children:[t.jsx(Ko,{scaleFactor:L,secretRevealed:m,sourceId:i,id:`SecretCvv-${i}`}),t.jsx(Jo,{windowSize:V,scaleFactor:L,secretRevealed:m,id:`CvvCopyBtn-${i}`,sourceId:i}),q===!0?t.jsx(_t,{top:L*Te.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},Go=r.div`
|
|
55
|
-
display: ${e=>e.showSecretInfo?"block":"none"};
|
|
56
|
-
height: ${e=>e.secretRevealed?"unset":a.sp0};
|
|
57
|
-
width: ${e=>e.secretRevealed?e.scaleFactor*Te.secretCardNumberWrapperWidth:l[0]}px;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
&:hover {
|
|
60
|
-
background: ${e=>e.isCardDetailErrored?"transparent":d.neutralGrey5Light};
|
|
61
|
-
border-radius: ${a.sp1};
|
|
62
|
-
}
|
|
63
|
-
`,Yo=r.div`
|
|
64
|
-
min-height: ${e=>e.secretRevealed?e.scaleFactor*W.h6Regular.lineHeightValue:l[0]}px;
|
|
65
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*W.h6Regular.lineHeightValue:l[0]}px;
|
|
66
|
-
width: ${e=>e.secretRevealed?"100%":a.sp0};
|
|
67
|
-
overflow: hidden;
|
|
68
|
-
position: relative;
|
|
69
|
-
`,qo=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?Te.secretCVVWrapperWidth:l[0]}px;
|
|
74
|
-
position: relative;
|
|
75
|
-
&:hover {
|
|
76
|
-
background: ${e=>e.isCardDetailErrored?"transparent":d.neutralGrey5Light};
|
|
77
|
-
border-radius: ${a.sp1};
|
|
78
|
-
}
|
|
79
|
-
`,Ko=r.div`
|
|
80
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*W.h6Regular.lineHeightValue:l[0]}px;
|
|
81
|
-
width: ${e=>e.secretRevealed?Te.secretCVVWrapperWidth*e.scaleFactor:a.sp0};
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
`,Xo=r.div`
|
|
84
|
-
position: relative;
|
|
85
|
-
padding: ${a.sp0} ${a.sp1};
|
|
86
|
-
&:hover {
|
|
87
|
-
background: ${e=>e.secretRevealed?d.neutralGrey5Light:"transparent"};
|
|
88
|
-
border-radius: ${a.sp1};
|
|
89
|
-
}
|
|
90
|
-
`,Jo=r.div`
|
|
91
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*W.h6Regular.lineHeightValue:l[0]}px;
|
|
92
|
-
width: ${e=>e.secretRevealed?"inherit":a.sp0};
|
|
93
|
-
position: absolute;
|
|
94
|
-
top: ${a.sp0};
|
|
95
|
-
overflow: hidden;
|
|
96
|
-
background: transparent;
|
|
97
|
-
cursor: pointer;
|
|
98
|
-
`,Qo=r.div`
|
|
99
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*W.h6Regular.lineHeightValue:l[0]}px;
|
|
100
|
-
width: ${e=>e.secretRevealed?"inherit":a.sp0};
|
|
101
|
-
position: absolute;
|
|
102
|
-
top: ${e=>e.scaleFactor*Te.cardNumberCopyBtnTop}px;
|
|
103
|
-
overflow: hidden;
|
|
104
|
-
background: transparent;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
`,en=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
|
-
`,tn=r.div`
|
|
113
|
-
position: relative;
|
|
114
|
-
width: max-content;
|
|
115
|
-
`,Zt=r(pe)`
|
|
116
|
-
padding-left: ${a.sp1};
|
|
117
|
-
color: ${d.brandColorPearl};
|
|
118
|
-
position: relative;
|
|
119
|
-
font-size: ${e=>Va.CardInfoTitleSize.valuePx(e.windowSize)};
|
|
120
|
-
line-height: ${e=>Va.CardInfoTitleLineHeight.valuePx(e.windowSize)};
|
|
121
|
-
`,an=r(Dt)`
|
|
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=>Te.maskedCardNumberMarginTop.valuePx(e.windowSize)};
|
|
127
|
-
margin-left: -2px;
|
|
128
|
-
font-size: ${e=>e.scaleFactor*W.chargeCardNumberText.fontSizeValue}px;
|
|
129
|
-
line-height: ${e=>e.scaleFactor*W.chargeCardNumberText.lineHeightValue}px;
|
|
130
|
-
-webkit-font-smoothing: initial;
|
|
131
|
-
-moz-osx-font-smoothing: initial;
|
|
132
|
-
word-wrap: "break-word";
|
|
133
|
-
`,rn=r.div`
|
|
134
|
-
position: relative;
|
|
135
|
-
display: flex;
|
|
136
|
-
flex-direction: row;
|
|
137
|
-
justify-content: flex-start;
|
|
138
|
-
gap: ${a.sp4};
|
|
139
|
-
`,on=r.div`
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-direction: column;
|
|
142
|
-
margin-right: ${a.sp5};
|
|
143
|
-
`,nn=r(Dt)`
|
|
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*W.chargeCardNumberText.fontSizeValue}px;
|
|
149
|
-
line-height: ${e=>e.scaleFactor*W.chargeCardNumberText.lineHeightValue}px;
|
|
150
|
-
-webkit-font-smoothing: initial;
|
|
151
|
-
-moz-osx-font-smoothing: initial;
|
|
152
|
-
word-wrap: "break-word";
|
|
153
|
-
`,sn=r.div`
|
|
154
|
-
display: flex;
|
|
155
|
-
flex-direction: column;
|
|
156
|
-
`,dn=r(Dt)`
|
|
157
|
-
color: ${e=>e.isCardDetailFetching?e.theme.colors.grey1:e.theme.colors.brandColorOnyx};
|
|
158
|
-
opacity: 0.7;
|
|
159
|
-
font-size: ${e=>e.scaleFactor*W.chargeCardNumberText.fontSizeValue}px;
|
|
160
|
-
line-height: ${e=>e.scaleFactor*W.chargeCardNumberText.lineHeightValue}px;
|
|
161
|
-
-webkit-font-smoothing: initial;
|
|
162
|
-
-moz-osx-font-smoothing: initial;
|
|
163
|
-
word-wrap: "break-word";
|
|
164
|
-
`,cn=r(Dt)`
|
|
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*W.chargeCardNumberText.fontSizeValue}px;
|
|
171
|
-
line-height: ${e=>e.scaleFactor*W.chargeCardNumberText.lineHeightValue}px;
|
|
172
|
-
-webkit-font-smoothing: initial;
|
|
173
|
-
-moz-osx-font-smoothing: initial;
|
|
174
|
-
word-wrap: "break-word";
|
|
175
|
-
`,ln=r(mt)`
|
|
176
|
-
height: ${a.sp3};
|
|
177
|
-
width: ${a.sp3};
|
|
178
|
-
color: ${d.success};
|
|
179
|
-
`,hn=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
|
-
`,pn=r(pe)`
|
|
188
|
-
color: ${d.primaryDark};
|
|
189
|
-
padding: 2px ${a.sp2};
|
|
190
|
-
background-color: ${d.blackColor};
|
|
191
|
-
`,{common:un,spendManagement:{chargeCard:{cardDetails:ye}}}=be.getLocalizedStrings(),Ce={chargeCardWidth:384,chargeCardHeight:240,cardLoadingShineWidth:200,cardLoadingShineHeight:240,zeniLogoWidth:l[6],zeniLogoHeight:l[6],visaLogoWidth:l[6],visaLogoHeight:13,cardTintIconWidth:277,cardTintIconHeight:242,colorPaletteLeftTransitionValue:-350,rightSectionWidth:384,rightSectionHeight:240,cardContainerContentGap:new R(l[4],l[4],l[4],l[3])},Hr=({isChargeCardAdmin:e,chargeCardDetailView:i,productInformation:s,cashbackInformation:m,creditAccountInformation:h,debitAccountInformation:x,secretRevealed:p,isOwnCard:f,vgsVaultId:g,showSecretInfo:C,controllerEmails:c,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:S,isChargeCardSetupEnabled:I,chargeCardCashbackDetailState:$,creditAccount:j,creditAccountRepayment:D,isShowingInDrawer:u,isSandboxEnv:E,isCardDetailErrored:y,signedInUserToken:O,selectedColor:H,cardDetailsFetchState:k,setCardDetailsFetchState:Z,setIsCardDetailErrored:J,setShowSecretInfo:_,setSecretRevealed:T,setShowPhoneNumberForOtp:oe,isCardDetailFetching:Q,handleColorCodeClick:ie,onFireOnClickAnalytics:V,onUnlockChargeCard:U})=>{const[G,q]=o.useState(!1),[z,ne]=o.useState(!1),[ee,te]=o.useState(!1),[K,N]=o.useState(!1),[L,B]=o.useState(!1),[Y,A]=o.useState(!1),[P,ae]=o.useState(()=>{const me=i.chargeCard?.status.code;return me==="locked"||me==="closed"||me==="closed_by_customer"}),[se,v]=o.useState(!1),[F,$e]=o.useState(!1),le=o.useRef(void 0),ve=i.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:Re}=xr(),Se=ke(),b=u?.75:Se==="small"?.85:1,re=i.lockChargeCardsFetchState.fetchState,Ze=Je(re),he=i.unlockChargeCardsFetchState.fetchState,je=Je(he),Ge=i.closeChargeCardsFetchState.fetchState,Me=Je(Ge),ue=i.chargeCard?.status.code==="locked",Ve=i.chargeCard?.status.code==="closed"||i.chargeCard?.status.code==="closed_by_customer",[ot]=Wt("UnlockCard"),[de]=Wt("LockCard"),[Ct]=Wt("CloseCard");o.useEffect(()=>{if(!(z&&ue))return void te(!1);const me=setTimeout(()=>{te(!0)},400);return()=>clearTimeout(me)},[z,ue]),o.useEffect(()=>{!ue&&!Ve||P||(ae(!0),v(!1))},[ue,Ve]),o.useEffect(()=>{Ze==="In-Progress"&&re==="Completed"&&(le.current&&clearTimeout(le.current),N(!1),ae(!1),v(!0),setTimeout(()=>{N(!0)},0),le.current=setTimeout(()=>{N(!1),ae(!0),ne(!1)},1e3))},[re,Ze]),o.useEffect(()=>{je==="In-Progress"&&he==="Completed"&&(le.current&&clearTimeout(le.current),$e(!0),B(!1),setTimeout(()=>{B(!0)},0),le.current=setTimeout(()=>{B(!1),ae(!1),$e(!1)},1e3))},[he,je]),o.useEffect(()=>{Me==="In-Progress"&&Ge==="Completed"&&(le.current&&clearTimeout(le.current),A(!1),ae(!1),v(!0),setTimeout(()=>{A(!0)},0),le.current=setTimeout(()=>{A(!1),ae(!0)},1e3))},[Ge,Me]);const nt=Re?ye.tapCardCopyText:ye.scanNowAndAddToWallet,st=Re?ye.tapCardCopyText:t.jsxs(fn,{children:[t.jsx(Nn,{}),ye.clickTheCardToFetchDetailsText]}),Fe=i.chargeCard?.isLockedByAdmin??!1,ft=Se==="small"?ye.tapCardCopyText:ye.clickTheCardToCopyDetailsText,dt=Se==="small"?ye.tapCardCopyText:ye.clickTheCardToFetchDetailsText,wt=u?nt:ft,xt=u?st:dt,Ee=Q(k)||i.updateFetchState.fetchState==="In-Progress"||i.unlockChargeCardsFetchState.fetchState==="In-Progress",ct=(k.cvv!==!0||k.number!==!0)&&f,De=!!i.chargeCard?.type.code.includes("debit");return t.jsxs($n,{windowSize:Se,scaleFactor:b,children:[t.jsxs(kn,{isCardLocked:ue,isChargeCardAdmin:e,isLockedByAdmin:Fe,unlockFetchState:i.unlockChargeCardsFetchState.fetchState,onClick:me=>{me.stopPropagation(),!ue||he==="In-Progress"||!e&&Fe||U(e)},onMouseEnter:()=>{!e&&Fe||he==="In-Progress"||ne(!0)},onMouseLeave:()=>{!e&&Fe||he==="In-Progress"||ne(!1)},children:[p&&u?t.jsxs(t.Fragment,{children:[t.jsx(Mn,{}),t.jsx(Vn,{}),t.jsx(On,{}),t.jsx(Hn,{})]}):null,t.jsx(jn,{play:P,animate:se,fadeOut:F,unlockInProgress:he==="In-Progress"||F||je==="In-Progress"&&he==="Completed"}),L&&ot!=null?t.jsx(Ut,{style:{width:a.sp9,height:a.sp9,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,backgroundColor:d.lockCardOverlayBackground,borderRadius:a.sp11},animationData:ot,loop:!1,play:L,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):Y&&Ct!=null?t.jsx(Ut,{style:{width:56,height:56,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:Ct,loop:!1,play:Y,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):P?Ve?t.jsx(Fn,{}):he==="In-Progress"?t.jsx(Dn,{}):F||je==="In-Progress"&&he==="Completed"?null:t.jsx(Rn,{isHovered:z&&ue,children:t.jsxs(An,{isHovered:z&&ue,children:[t.jsx(Nr,{}),t.jsx(Tn,{isVisible:z&&ue,shouldEnterLayout:ee,children:ye.moreOptions.unlock})]})}):K&&de!=null?t.jsx(Ut,{style:{width:72,height:72,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:de,loop:!1,play:K,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,ve.includes("virtual")?t.jsxs(Ln,{isShowingInDrawer:u,isOwnCard:f,scaleFactor:b,bgColor:H?.toString(),showColorPalette:G,isDebitCard:De,"data-testid":X("virtual-charge-card-detail"),onClick:()=>{G===!1&&f===!0&&Q(k)===!1&&he!=="In-Progress"&&ue===!1&&Ea({signedInUserToken:O,showSecretInfo:C,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:V,setShowSecretInfo:_})},enableClick:ct&&!ue&&!Ve||ue&&he!=="In-Progress",cardDetailsFetchState:Ee||i.chargeCard?.cardColorCode===void 0,children:[t.jsx(Na,{scaleFactor:b,shouldAppear:Ee||i.chargeCard?.cardColorCode===void 0}),t.jsx(Mo,{leftTransitionValue:b*Ce.colorPaletteLeftTransitionValue,hasBorderShadow:!1,tickStyles:{width:"12px",height:"12px"},colorInState:i.chargeCard?.cardColorCode!=null?new Xe(i.chargeCard.cardColorCode):void 0,styles:{height:"100%",maxWidth:"78%",top:u?"unset":a.sp0,left:G?a.sp0:b*Ce.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:G,toggleColorPaletteVisibility:me=>{q(me)},handleColorClick:(me,lt)=>{ie(me,lt),lt&&q(!1)}}),t.jsx(Pn,{scaleFactor:b}),t.jsx(Oa,{productInformation:s,cashbackInformation:m,creditAccountInformation:h,debitAccountInformation:x,secretRevealed:p,setSecretRevealed:T,onFireOnClickAnalytics:V,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:k,setCardDetailsFetchState:Z,isCardDetailErrored:y,setIsCardDetailErrored:J,chargeCard:i.chargeCard,vgsVaultId:g,showSecretInfo:C,creditAccountRepayment:D,token:O?.token,isDebitCard:De,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:c,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:S,isChargeCardSetupEnabled:I,creditAccount:j,chargeCardCashbackDetailState:$,cardInfoTitleStyles:{...W.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:u?"addToWalletDrawer":"cardDetail"}),t.jsxs(Ba,{children:[t.jsxs(En,{children:[t.jsx(Wa,{scaleFactor:b}),t.jsx(bn,{onClick:me=>{me.stopPropagation(),f&&q(!G)},"data-testid":X("card-color-selector"),children:f?t.jsx(Qt,{enterDelay:600,title:ye.cardColours,placement:"left",children:t.jsx(Ha,{isShowingInDrawer:u})}):t.jsx(Ha,{isShowingInDrawer:u})})]}),t.jsx(wn,{scaleFactor:b})]})]}):t.jsxs(Bn,{scaleFactor:b,enableClick:ct&&!ue&&!Ve||ue&&he!=="In-Progress",isOwnCard:f,isShowingInDrawer:u,onClick:()=>{f===!0&&ue===!1&&he!=="In-Progress"&&Q(k)===!1&&Ea({signedInUserToken:O,showSecretInfo:C,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:V,setShowSecretInfo:_})},"data-testid":X("physical-charge-card-detail"),children:[t.jsx(Na,{scaleFactor:b,shouldAppear:Ee}),t.jsxs(Wn,{flipCard:p,children:[t.jsx(Un,{children:t.jsx($r,{scaleFactor:b,isClickable:ct,isLoading:Ee,isDebitCard:De})}),C?t.jsxs(_n,{isDebitCard:De,children:[t.jsx(Oa,{productInformation:s,cashbackInformation:m,creditAccountInformation:h,debitAccountInformation:x,secretRevealed:p,setSecretRevealed:T,onFireOnClickAnalytics:V,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:k,setCardDetailsFetchState:Z,isCardDetailErrored:y,setIsCardDetailErrored:J,chargeCard:i.chargeCard,vgsVaultId:g,showSecretInfo:C,token:O?.token,isDebitCard:De,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:c,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:S,isChargeCardSetupEnabled:I,creditAccount:i.creditAccount,creditAccountRepayment:D,chargeCardCashbackDetailState:$,cardInfoTitleStyles:{...W.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:u?"addToWalletDrawer":"cardDetail"}),t.jsx(Ba,{children:t.jsx(zn,{children:t.jsx(Wa,{scaleFactor:b})})})]}):null]})]})]}),Ve?t.jsx(mn,{children:ye.cardClosedMessage}):Fe&&!e?t.jsx(gn,{children:ye.cardLockedByAdminMessage}):ue?t.jsx(Gt,{children:ye.cardLockedMessage}):f!==!0||Ee?Ee?t.jsx(Gt,{children:ye.loading}):null:k.cvv===!0&&k.number===!0?t.jsx(In,{children:un.loading}):y?t.jsx(Cn,{}):t.jsx(Gt,{children:p?wt:xt})]})},mn=r(pe)`
|
|
192
|
-
color: ${d.important};
|
|
193
|
-
`,gn=r(pe)`
|
|
194
|
-
color: ${e=>e.theme.colors.primary};
|
|
195
|
-
`,Cn=()=>t.jsxs(yn,{children:[t.jsx(xn,{}),t.jsx(Sn,{children:ye.failedToFetchCardWebText})]}),fn=r.div`
|
|
196
|
-
display: flex;
|
|
197
|
-
align-items: center;
|
|
198
|
-
gap: ${a.sp2};
|
|
199
|
-
`,wn=r(Ji)`
|
|
200
|
-
width: ${e=>e.scaleFactor*Ce.visaLogoWidth}px;
|
|
201
|
-
height: ${e=>e.scaleFactor*Ce.visaLogoHeight}px;
|
|
202
|
-
`,xn=r(ro)`
|
|
203
|
-
width: ${a.sp3};
|
|
204
|
-
height: ${a.sp3};
|
|
205
|
-
color: ${d.alert};
|
|
206
|
-
`,Sn=r(pe)`
|
|
207
|
-
color: ${d.alert};
|
|
208
|
-
`,yn=r.div`
|
|
209
|
-
display: flex;
|
|
210
|
-
align-items: center;
|
|
211
|
-
gap: ${a.sp1};
|
|
212
|
-
`,bn=r.div`
|
|
213
|
-
border-radius: 50%;
|
|
214
|
-
display: flex;
|
|
215
|
-
justify-content: center;
|
|
216
|
-
align-items: center;
|
|
217
|
-
`,Ha=r.div`
|
|
218
|
-
// These are weird number because final requirement is 9 and 12px circle.
|
|
219
|
-
width: ${e=>e.isShowingInDrawer?7:10}px;
|
|
220
|
-
height: ${e=>e.isShowingInDrawer?7:10}px;
|
|
221
|
-
border: 1px solid ${d.backgroundThemeLight};
|
|
222
|
-
border-radius: 50%;
|
|
223
|
-
`,$n=r.div`
|
|
224
|
-
min-height: ${e=>`calc(${e.scaleFactor*Ce.rightSectionHeight}px + ${a.sp2})`};
|
|
225
|
-
min-width: ${e=>`calc(${e.scaleFactor*Ce.rightSectionWidth}px + ${a.sp2})`};
|
|
226
|
-
display: flex;
|
|
227
|
-
justify-content: center;
|
|
228
|
-
align-items: center;
|
|
229
|
-
flex-direction: column;
|
|
230
|
-
gap: ${e=>Ce.cardContainerContentGap.valuePx(e.windowSize)};
|
|
231
|
-
`,Gt=r(pe)`
|
|
232
|
-
color: ${e=>e.theme.colors.primary};
|
|
233
|
-
`,vn=Pr`
|
|
234
|
-
0% {
|
|
235
|
-
transform: translateX(-100%);
|
|
236
|
-
}
|
|
237
|
-
100% {
|
|
238
|
-
transform: translateX(180%);
|
|
239
|
-
}
|
|
240
|
-
`,kn=r.div`
|
|
241
|
-
position: relative;
|
|
242
|
-
overflow: hidden;
|
|
243
|
-
border-radius: ${a.sp2};
|
|
244
|
-
cursor: ${e=>!e.isCardLocked||e.unlockFetchState==="In-Progress"||!e.isChargeCardAdmin&&e.isLockedByAdmin?"default":"pointer"};
|
|
245
|
-
`,jn=r.div`
|
|
246
|
-
position: absolute;
|
|
247
|
-
top: 50%;
|
|
248
|
-
left: 50%;
|
|
249
|
-
width: ${e=>e.play?"544px":"0"};
|
|
250
|
-
height: ${e=>e.play?"544px":"0"};
|
|
251
|
-
background: ${e=>e.unlockInProgress||e.fadeOut?"transparent":d.overlayDark};
|
|
252
|
-
border-radius: 328px;
|
|
253
|
-
pointer-events: none;
|
|
254
|
-
z-index: 1;
|
|
255
|
-
transform: translate(-50%, -50%);
|
|
256
|
-
opacity: ${e=>e.fadeOut?0:e.play?1:0};
|
|
257
|
-
transition:
|
|
258
|
-
width 300ms ease-out,
|
|
259
|
-
height 300ms ease-out,
|
|
260
|
-
opacity 300ms ease-out,
|
|
261
|
-
background 300ms ease-out;
|
|
262
|
-
`,Na=r.div`
|
|
263
|
-
z-index: 1;
|
|
264
|
-
display: ${e=>e.shouldAppear?"block":"none"};
|
|
265
|
-
content: "";
|
|
266
|
-
width: ${e=>e.scaleFactor*Ce.cardLoadingShineWidth}px;
|
|
267
|
-
height: ${e=>e.scaleFactor*Ce.cardLoadingShineHeight}px;
|
|
268
|
-
position: absolute;
|
|
269
|
-
transform: translateX(-180%);
|
|
270
|
-
animation: ${vn} 1.5s infinite;
|
|
271
|
-
background: ${ge`linear-gradient(to right, transparent 0%, ${d.backgroundThemeLight} 50%, transparent 100%)`};
|
|
272
|
-
`,Ba=r.div`
|
|
273
|
-
display: flex;
|
|
274
|
-
flex-direction: column;
|
|
275
|
-
justify-content: space-between;
|
|
276
|
-
align-items: center;
|
|
277
|
-
width: 25%;
|
|
278
|
-
padding: ${a.sp4} ${a.sp0};
|
|
279
|
-
`,Ln=r.div`
|
|
280
|
-
background: ${e=>e.cardDetailsFetchState?d.chargeCardFaded:e.bgColor??(e.isDebitCard?e.theme.colors.graphColor15:e.theme.colors.brandColorJade)};
|
|
281
|
-
border-radius: ${a.sp2};
|
|
282
|
-
width: ${e=>e.scaleFactor*Ce.chargeCardWidth}px;
|
|
283
|
-
height: ${e=>e.scaleFactor*Ce.chargeCardHeight}px;
|
|
284
|
-
background-image: url(https://storage.googleapis.com/zeni-apis.appspot.com/images/PlasticCardPatternSmall.svg);
|
|
285
|
-
background-repeat: no-repeat;
|
|
286
|
-
background-position-y: bottom;
|
|
287
|
-
cursor: ${e=>e.enableClick?"pointer":"not-allowed"};
|
|
288
|
-
display: flex;
|
|
289
|
-
flex-direction: row;
|
|
290
|
-
position: relative;
|
|
291
|
-
overflow: hidden;
|
|
292
|
-
justify-content: space-between;
|
|
293
|
-
|
|
294
|
-
${e=>e.showColorPalette&&`box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1} ${e.theme.colors.dropShadowNormal};
|
|
295
|
-
`}
|
|
296
|
-
|
|
297
|
-
&:hover {
|
|
298
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer?ge`
|
|
299
|
-
box-shadow: 1px 3px ${a.sp4} 2px
|
|
300
|
-
${e.theme.colors.chargeCardBackgroundShadow};
|
|
301
|
-
transform: scale(1.003);
|
|
302
|
-
outline: ${a.sp1} solid ${d.neutralGrey5Light};
|
|
303
|
-
`:null};
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
&:hover:before {
|
|
307
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer?ge`
|
|
308
|
-
box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1}
|
|
309
|
-
${e.theme.colors.dropShadowNormal};
|
|
310
|
-
content: "";
|
|
311
|
-
position: absolute;
|
|
312
|
-
inset: 0;
|
|
313
|
-
border-radius: 7px;
|
|
314
|
-
padding: ${a.sp1};
|
|
315
|
-
-webkit-mask-composite: xor;
|
|
316
|
-
mask-composite: exclude;
|
|
317
|
-
pointer-events: none;
|
|
318
|
-
`:null};
|
|
319
|
-
}
|
|
320
|
-
`,In=r(pe)`
|
|
321
|
-
color: ${e=>e.theme.colors.primary};
|
|
322
|
-
text-transform: capitalize;
|
|
323
|
-
`,Wa=r(Xi)`
|
|
324
|
-
height: ${e=>e.scaleFactor*Ce.zeniLogoHeight}px;
|
|
325
|
-
width: ${e=>e.scaleFactor*Ce.zeniLogoWidth}px;
|
|
326
|
-
color: ${d.neutralGrey5Light};
|
|
327
|
-
`,Nr=r(qi)`
|
|
328
|
-
width: ${a.sp5};
|
|
329
|
-
height: ${a.sp5};
|
|
330
|
-
min-width: ${a.sp5};
|
|
331
|
-
min-height: ${a.sp5};
|
|
332
|
-
box-sizing: content-box;
|
|
333
|
-
color: ${d.neutralGrey5Light};
|
|
334
|
-
`,Dn=r(Nr)`
|
|
335
|
-
position: absolute;
|
|
336
|
-
top: 50%;
|
|
337
|
-
left: 50%;
|
|
338
|
-
transform: translate(-50%, -50%);
|
|
339
|
-
z-index: 2;
|
|
340
|
-
padding: ${a.sp3};
|
|
341
|
-
border-radius: ${a.sp11};
|
|
342
|
-
background: ${d.lockCardOverlayBackground};
|
|
343
|
-
`,Tn=r(Tr)`
|
|
344
|
-
color: ${d.neutralGrey5Light};
|
|
345
|
-
white-space: nowrap;
|
|
346
|
-
opacity: ${e=>e.isVisible?1:0};
|
|
347
|
-
transform: ${e=>e.isVisible?"scaleX(1)":"scaleX(0)"};
|
|
348
|
-
transform-origin: left;
|
|
349
|
-
position: static;
|
|
350
|
-
flex: ${e=>e.shouldEnterLayout?"0 0 auto":"0 0 0"};
|
|
351
|
-
min-width: 0;
|
|
352
|
-
max-width: ${e=>e.shouldEnterLayout?a.sp12:a.sp0};
|
|
353
|
-
width: ${e=>e.shouldEnterLayout?"auto":a.sp0};
|
|
354
|
-
margin: 0;
|
|
355
|
-
margin-left: ${e=>e.shouldEnterLayout?a.sp1:a.sp0};
|
|
356
|
-
padding: 0;
|
|
357
|
-
overflow: hidden;
|
|
358
|
-
transition:
|
|
359
|
-
opacity 400ms cubic-bezier(0.4, 0, 0.2, 1) 400ms,
|
|
360
|
-
transform 400ms cubic-bezier(0.4, 0, 0.2, 1) 400ms,
|
|
361
|
-
flex 400ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
362
|
-
max-width 400ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
363
|
-
margin-left 400ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
364
|
-
`,An=r.div`
|
|
365
|
-
display: flex;
|
|
366
|
-
align-items: center;
|
|
367
|
-
gap: 0;
|
|
368
|
-
position: relative;
|
|
369
|
-
`,Rn=r.div`
|
|
370
|
-
display: flex;
|
|
371
|
-
align-items: center;
|
|
372
|
-
justify-content: center;
|
|
373
|
-
padding: ${a.sp3};
|
|
374
|
-
padding-right: 20px;
|
|
375
|
-
border-radius: ${a.sp11};
|
|
376
|
-
background: ${e=>e.isHovered?d.lockCardOverlayBackground:"transparent"};
|
|
377
|
-
position: absolute;
|
|
378
|
-
top: 50%;
|
|
379
|
-
left: 50%;
|
|
380
|
-
transform: translate(-50%, -50%);
|
|
381
|
-
z-index: 2;
|
|
382
|
-
transition: background 400ms ease-in-out;
|
|
383
|
-
pointer-events: none;
|
|
384
|
-
`,Fn=r(Yi)`
|
|
385
|
-
position: absolute;
|
|
386
|
-
top: 50%;
|
|
387
|
-
left: 50%;
|
|
388
|
-
transform: translate(-50%, -50%);
|
|
389
|
-
z-index: 2;
|
|
390
|
-
width: ${a.sp5};
|
|
391
|
-
height: ${a.sp5};
|
|
392
|
-
color: ${d.important};
|
|
393
|
-
background: ${d.importantLight};
|
|
394
|
-
padding: 12px;
|
|
395
|
-
border-radius: 50%;
|
|
396
|
-
`,En=r.div`
|
|
397
|
-
display: flex;
|
|
398
|
-
flex-direction: column;
|
|
399
|
-
gap: 35px;
|
|
400
|
-
`,zn=r.div`
|
|
401
|
-
display: flex;
|
|
402
|
-
flex-direction: column;
|
|
403
|
-
gap: ${a.sp4};
|
|
404
|
-
`,Pn=r(Ki)`
|
|
405
|
-
position: absolute;
|
|
406
|
-
width: ${e=>e.scaleFactor*Ce.cardTintIconWidth}px;
|
|
407
|
-
height: ${e=>e.scaleFactor*Ce.cardTintIconHeight}px;
|
|
408
|
-
top: -1px;
|
|
409
|
-
`,Mn=r(So)`
|
|
410
|
-
height: 36px;
|
|
411
|
-
width: 36px;
|
|
412
|
-
position: absolute;
|
|
413
|
-
right: -${a.sp3};
|
|
414
|
-
top: -${a.sp3};
|
|
415
|
-
`,Vn=r(yo)`
|
|
416
|
-
height: 36px;
|
|
417
|
-
width: 36px;
|
|
418
|
-
position: absolute;
|
|
419
|
-
left: -${a.sp3};
|
|
420
|
-
top: -${a.sp3};
|
|
421
|
-
`,On=r(bo)`
|
|
422
|
-
height: 36px;
|
|
423
|
-
width: 36px;
|
|
424
|
-
position: absolute;
|
|
425
|
-
right: -${a.sp3};
|
|
426
|
-
bottom: -${a.sp3};
|
|
427
|
-
`,Hn=r($o)`
|
|
428
|
-
height: 36px;
|
|
429
|
-
width: 36px;
|
|
430
|
-
position: absolute;
|
|
431
|
-
left: -${a.sp3};
|
|
432
|
-
bottom: -${a.sp3};
|
|
433
|
-
`,Nn=r(Dr)`
|
|
434
|
-
color: ${e=>e.theme.colors.hero};
|
|
435
|
-
width: ${a.sp3};
|
|
436
|
-
height: ${a.sp3};
|
|
437
|
-
`,Bn=r.div`
|
|
438
|
-
cursor: ${e=>e.enableClick?"pointer":"not-allowed"};
|
|
439
|
-
width: ${e=>e.scaleFactor*Ce.chargeCardWidth}px;
|
|
440
|
-
height: ${e=>e.scaleFactor*Ce.chargeCardHeight}px;
|
|
441
|
-
overflow: hidden;
|
|
442
|
-
position: relative;
|
|
443
|
-
border-radius: ${a.sp2};
|
|
444
|
-
|
|
445
|
-
&:hover {
|
|
446
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer&&e.enableClick?ge`
|
|
447
|
-
box-shadow: 1px 3px ${a.sp4} 2px
|
|
448
|
-
${e.theme.colors.chargeCardBackgroundShadow};
|
|
449
|
-
transform: scale(1.003);
|
|
450
|
-
outline: ${a.sp1} solid ${d.neutralGrey5Light};
|
|
451
|
-
`:null};
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
&:hover:before {
|
|
455
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer&&e.enableClick?ge`
|
|
456
|
-
box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1}
|
|
457
|
-
${e.theme.colors.dropShadowNormal};
|
|
458
|
-
content: "";
|
|
459
|
-
position: absolute;
|
|
460
|
-
inset: 0;
|
|
461
|
-
border-radius: 7px;
|
|
462
|
-
padding: ${a.sp1};
|
|
463
|
-
-webkit-mask-composite: xor;
|
|
464
|
-
mask-composite: exclude;
|
|
465
|
-
pointer-events: none;
|
|
466
|
-
`:null};
|
|
467
|
-
}
|
|
468
|
-
`,Wn=r.div`
|
|
469
|
-
position: relative;
|
|
470
|
-
width: 100%;
|
|
471
|
-
height: 100%;
|
|
472
|
-
transition: transform 0.8s;
|
|
473
|
-
transform-style: preserve-3d;
|
|
474
|
-
transform: ${e=>e.flipCard?"rotateY(180deg)":"rotateY(0deg)"};
|
|
475
|
-
`,Un=r.div`
|
|
476
|
-
position: absolute;
|
|
477
|
-
width: 100%;
|
|
478
|
-
height: 100%;
|
|
479
|
-
-webkit-backface-visibility: hidden; /* Safari */
|
|
480
|
-
backface-visibility: hidden;
|
|
481
|
-
`,_n=r.div`
|
|
482
|
-
position: absolute;
|
|
483
|
-
background: ${e=>e.isDebitCard?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJade};
|
|
484
|
-
width: inherit;
|
|
485
|
-
height: inherit;
|
|
486
|
-
border-radius: 6px;
|
|
487
|
-
display: flex;
|
|
488
|
-
transition-timing-function: ease-in-out;
|
|
489
|
-
-webkit-backface-visibility: hidden;
|
|
490
|
-
backface-visibility: hidden;
|
|
491
|
-
background-image: url("https://storage.googleapis.com/zeni-apis.appspot.com/images/plastic-card-pattern-right-small.svg");
|
|
492
|
-
border-radius: ${a.sp2};
|
|
493
|
-
display: flex;
|
|
494
|
-
justify-content: center;
|
|
495
|
-
align-items: flex-start;
|
|
496
|
-
background-repeat: no-repeat;
|
|
497
|
-
background-position-x: right;
|
|
498
|
-
background-position-y: bottom;
|
|
499
|
-
transform: rotateY(180deg);
|
|
500
|
-
`,xe={contentContainerPadding:new R(l[3],l[4],l[8],l[8]),rightSectionWidth:new R(343,343,343,384),rightSectionHeight:new R(214,214,214,240),cardContainerContentGap:new R(l[2],l[2],l[2],l[3]),remainingAmountContainerGap:new R(l[1],l[1]),leftRightSectionGap:new R(l[0],54,54,57),cardBalanceSectionMarginBottom:new R(l[4],l[4]),barRadius:new R(2,l[2]),topSectionPaddingBottom:new R(l[4],19),rightSectionGap:new R(l[4],l[3]),addressSectionHeight:new R(109,74),addressSectionGap:new R(l[2],l[4]),navigationMarginBottom:new R(l[4],l[0]),addressValueGap:new R(l[0],l[1]),ownerWebMinWidth:new R(110,187)},ra={remainingAmount:new za("largeRegular","largeMedium"),spentAmount:new za("h5Regular","h5Regular")},{common:We,dateFormat:pt,spendManagement:Zn}=be.getLocalizedStrings(),Ue=Zn.chargeCard,Gn=({chargeCardDetailView:e,spent:i,controllerEmails:s,chargeCardCashbackDetailState:m,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:x,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:f,creditAccount:g,creditAccountRepayment:C,productInformation:c,cashbackInformation:n,creditAccountInformation:w,debitAccountInformation:S,cardIssuedByRoles:I,cardIssuedByDepartmentName:$,cardHolderRoles:j,cardHolderDepartmentName:D,classListFetchState:u,cardOwnerName:E,secretRevealed:y,appleWalletLink:O,googleWalletLink:H,isCardNotPending:k,isOwnerNameCopied:Z,isAddressCopied:J,addressToShow:_,isOwnCard:T,vgsVaultId:oe,showSecretInfo:Q,isSandboxEnv:ie,isCardDetailErrored:V,signedInUserToken:U,selectedColor:G,showUpdateSpendLimitAction:q,setShowPhoneNumberPopup:z,setShowChangeSpendLimitPopup:ne,cardDetailsFetchState:ee,setCardDetailsFetchState:te,setIsCardDetailErrored:K,setShowSecretInfo:N,setSecretRevealed:L,isCardDetailFetching:B,handleColorCodeClick:Y,onFireOnClickAnalytics:A,onOwnerNameCopyClick:P,onAddressCopyClick:ae,onUnlockChargeCard:se,isDebitCard:v})=>{const F=ke(),$e=It().analytics,le=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate!=null?e.chargeCardConfig.rePaymentInfo.cardLimitResetDate.format(pt.visual.MMMDFormat):Co().startOf("month").add(1,"month").format(pt.visual.MMMDFormat),ve=e.chargeCard!=null?Math.round(100*i.amount/e.chargeCard.limit.amount):0,{isIPhoneScreen:Re}=Li(),Se=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),b=Lt(),re=Tt(b?.loggedInUserRoleMap);return t.jsxs(cs,{windowSize:F,children:[t.jsxs(ds,{windowSize:F,children:[t.jsxs(ls,{windowSize:F,children:[t.jsx(Jn,{children:We.texts.spent}),t.jsx(Ga,{children:t.jsx(hs,{windowSize:F,children:_e("0,0.[00]",i)})}),t.jsx(xs,{windowSize:F,children:t.jsx(ys,{style:{width:`${ve}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(Ga,{children:[t.jsxs(Ss,{children:[t.jsxs(Kn,{windowSize:F,children:[t.jsx(Ya,{windowSize:F,children:_e("0,0.[00]",e.chargeCard.available)}),t.jsx(qa,{windowSize:F,children:We.texts.remaining})]}),q?t.jsxs(us,{windowSize:F,children:[t.jsx(ms,{children:Ue.updateSpendLimitPopup.unlockSpending}),t.jsx(gs,{onClick:()=>{qn({chargeCardDetailView:e,classListFetchState:u,isChargeCardFeatureEnabled:h,creditAccount:g,creditAccountRepayment:C,isDebitCard:v,productInformation:c,creditAccountInformation:w,debitAccountInformation:S,controllerEmails:s,cardIssuedByRoles:I,cardIssuedByDepartmentName:$,cardHolderRoles:j,cardHolderDepartmentName:D,analytics:$e}),ne(!0)},"data-testid":X("update-spend-limit-button"),children:Ue.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(ps,{windowSize:F,children:[t.jsxs(Qn,{children:[t.jsx(Ya,{windowSize:F,children:_e("0,0.[00]",e.chargeCard.limit)}),t.jsx(qa,{windowSize:F,children:Ue.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs(Cs,{children:[t.jsx(fs,{children:We.texts.limitReset}),t.jsx(ws,{children:le})]}):null]})]}):null]}),t.jsx(Yn,{chargeCardDetailView:e,classListFetchState:u,cardOwnerName:E,addressToShow:_,isAddressCopied:J,isOwnerNameCopied:Z,onOwnerNameCopyClick:P,onAddressCopyClick:ae})]}),t.jsx(ns,{windowSize:F,isOwnCard:T,children:F!=="small"||T?t.jsxs(t.Fragment,{children:[t.jsx(ss,{windowSize:F,children:Se?t.jsx($r,{}):t.jsx(Hr,{isChargeCardAdmin:re,chargeCardDetailView:e,productInformation:c,cashbackInformation:n,creditAccountInformation:w,debitAccountInformation:S,creditAccount:e.creditAccount,setShowSecretInfo:N,secretRevealed:y,isOwnCard:T,isShowingInDrawer:!1,vgsVaultId:oe,showSecretInfo:Q,isSandboxEnv:ie,controllerEmails:s,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:x,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:f,chargeCardCashbackDetailState:m,isCardDetailErrored:V,signedInUserToken:U,selectedColor:G,cardDetailsFetchState:ee,setCardDetailsFetchState:te,setIsCardDetailErrored:K,setSecretRevealed:L,isCardDetailFetching:B,handleColorCodeClick:Y,onFireOnClickAnalytics:A,setShowPhoneNumberForOtp:z,onUnlockChargeCard:se,creditAccountRepayment:C})}),T||e.chargeCard?.status.code==="closed"||e.chargeCard?.status.code==="closed_by_customer"||e.chargeCard?.status.code==="locked"?null:t.jsx(Xn,{children:Ue.cardDetails.adminsCannotAccess}),F==="small"&&T&&k&&v===!1?Re?t.jsx(Jt,{onClick:()=>{at({chargeCardDetailView:e,classListFetchState:u,analytics:$e,isDebitCard:v,isChargeCardAdmin:re,productInformation:c,creditAccountInformation:w,debitAccountInformation:S,cardIssuedByRoles:I,cardIssuedByDepartmentName:$,cardHolderRoles:j,cardHolderDepartmentName:D,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:h,creditAccount:g,creditAccountRepayment:C}),window.open(O,"_blank")}}):t.jsx(Xt,{onClick:()=>{at({chargeCardDetailView:e,classListFetchState:u,analytics:$e,isDebitCard:v,isChargeCardAdmin:re,productInformation:c,creditAccountInformation:w,debitAccountInformation:S,cardIssuedByRoles:I,cardIssuedByDepartmentName:$,cardHolderRoles:j,cardHolderDepartmentName:D,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:h,creditAccount:g,creditAccountRepayment:C}),window.open(H,"_blank")}}):null]}):null})]})},Yn=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:s,addressToShow:m,isOwnerNameCopied:h,isAddressCopied:x,onOwnerNameCopyClick:p,onAddressCopyClick:f})=>{const g=ke(),C=Qe(),[c,n]=o.useState(0),[w,S]=o.useState(!0),[I,$]=o.useState(!1),[j,D]=o.useState(!1),[u,E]=o.useState(!1);o.useEffect(()=>{const O=[setTimeout(()=>{n(1)},500),setTimeout(()=>{n(0),E(!0)},1e3),setTimeout(()=>{S(!1),E(!1)},2e3),setTimeout(()=>{S(!0),n(1)},2500),setTimeout(()=>{n(0),E(!0)},3e3),setTimeout(()=>{S(!1),E(!1)},4e3)];return()=>{O.forEach(clearTimeout)}},[]);const y=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(es,{children:[t.jsxs(ts,{windowSize:g,children:[t.jsxs(as,{shouldBounce:u,isActive:c==0,isAutoSlide:w,windowSize:g,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(Ua,{windowSize:g,onClick:p,"data-testid":X("owner-name-copy-click"),onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:[t.jsxs(kt,{children:[Ue.cardDetails.owner,t.jsxs(er,{children:[t.jsx(Ka,{children:h===!0?t.jsx(Qa,{}):t.jsx(Ja,{isHover:I})}),h||I?t.jsx(Xa,{children:h?We.copyToClipBoard.copied:We.copyToClipBoard.copy}):null]})]}),t.jsx(_a,{children:t.jsx(Yt,{children:s})})]}):null,m!=null?t.jsxs(Za,{windowSize:g,onClick:f,"data-testid":X("address-copy-click"),onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:[t.jsxs(kt,{children:[Ue.cardDetails.address,t.jsxs(er,{children:[t.jsx(Ka,{children:x===!0?t.jsx(Qa,{}):t.jsx(Ja,{isHover:j})}),x||j?t.jsx(Xa,{children:x?We.copyToClipBoard.copied:We.copyToClipBoard.copy}):null]})]}),t.jsx(os,{windowSize:g,children:t.jsx(Gi,{address:m,isDisabled:"readonly",style:{padding:a.sp0,...W.smallRegular.cssObject,textTransform:"capitalize",alignItems:"flex-start",backgroundColor:C.colors.grey4,cursor:"pointer",flexDirection:g==="small"?"column":"row",gap:xe.addressValueGap.valuePx(g),textAlign:g==="small"?"left":"right"}})})]}):null]}),t.jsxs(rs,{isActive:c==1,isAutoSlide:w,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(Ua,{windowSize:g,children:[t.jsx(kt,{children:Ue.connectedAccount}),t.jsxs(is,{children:[t.jsx(bs,{children:t.jsx($s,{})}),t.jsx(Yt,{children:y})]})]}):null,t.jsxs(Za,{windowSize:g,children:[t.jsx(kt,{children:Ue.department}),t.jsx(_a,{children:t.jsx(Yt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(ut,{size:"Small",start:!0}):e.chargeCard?.department?.className??We.strings.hyphen})})]})]})]}),t.jsx(wo,{numberOfDots:2,activeIndex:c,handleClick:n,style:{marginTop:"12px",marginBottom:xe.navigationMarginBottom.valuePx(g)},dotStyle:{width:a.sp2,height:a.sp2},spendManagementPromoCardActive:!0,promoColor:C.colors.primary,promoColorHover:C.colors.grey1})]})},qn=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:s,creditAccount:m,creditAccountRepayment:h,isDebitCard:x,controllerEmails:p,productInformation:f,creditAccountInformation:g,debitAccountInformation:C,cardIssuedByRoles:c,cardIssuedByDepartmentName:n,cardHolderRoles:w,cardHolderDepartmentName:S,analytics:I})=>{if(!(e.chargeCard==null||i!=="Completed"||e.transactionStatistics.fetchState!=="Completed"||s&&(m.fetchState!=="Completed"||h.fetchState!=="Completed")||x&&e.depositAccountLimitFetchState.fetchState!=="Completed")){const $=e.chargeCard.type.code.includes("physical")?e.chargeCard.cardActivationAttemptHistory[0]?.timestamp:e.chargeCard.createTime;I.trackCardsUpdateSpendLimitInitiated(p,f,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:_i(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:ht(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(pt.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(pt.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:$?.format(pt.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name,cardSpentAmount:ht(e.chargeCard.balance.amount),cardAvailableLimit:ht(e.chargeCard.available.amount),cardUtilizationPercent:Ui(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:ht(Zi(e.chargeCard)),totalNumberOfDeclinedTransactions:e.transactionStatistics.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:e.transactionStatistics.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:e.transactionStatistics.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:e.transactionStatistics.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:e.transactionStatistics.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:e.transactionStatistics.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:Pa(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:c,cardIssuedByDepartment:n},{cardholderName:Pa(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:w,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:S},"Card Detail","Hyperlink",(e?.chargeCard?.recommendations??[]).map(j=>ht(j.creditLimit.amount)),g,C)}},Kn=r.div`
|
|
501
|
-
display: flex;
|
|
502
|
-
align-items: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"flex-start":"center"};
|
|
503
|
-
gap: ${e=>xe.remainingAmountContainerGap.valuePx(e.windowSize)};
|
|
504
|
-
flex-direction: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"column":"row"};
|
|
505
|
-
`,Xn=r(pe)`
|
|
506
|
-
color: ${e=>e.theme.colors.primary};
|
|
507
|
-
`,Jn=r(pe)`
|
|
508
|
-
color: ${e=>e.theme.colors.hero};
|
|
509
|
-
`,Qn=r.div`
|
|
510
|
-
display: flex;
|
|
511
|
-
align-items: end;
|
|
512
|
-
`,es=r.div`
|
|
513
|
-
width: 100%;
|
|
514
|
-
overflow: hidden;
|
|
515
|
-
`,ts=r.div`
|
|
516
|
-
width: 100%;
|
|
517
|
-
gap: ${a.sp3};
|
|
518
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
519
|
-
border: 1px solid ${e=>e.theme.colors.background};
|
|
520
|
-
border-radius: ${a.sp2};
|
|
521
|
-
padding: ${a.sp3};
|
|
522
|
-
box-sizing: border-box;
|
|
523
|
-
position: relative;
|
|
524
|
-
height: ${e=>xe.addressSectionHeight.valuePx(e.windowSize)};
|
|
525
|
-
`,as=r.div`
|
|
526
|
-
display: flex;
|
|
527
|
-
justify-content: unset;
|
|
528
|
-
gap: ${e=>xe.addressSectionGap.valuePx(e.windowSize)};
|
|
529
|
-
position: absolute;
|
|
530
|
-
width: 100%;
|
|
531
|
-
${({isActive:e,isAutoSlide:i})=>ge`
|
|
532
|
-
transform: translateX(${e?"0%":i?"-10%":"-105%"});
|
|
533
|
-
`};
|
|
534
|
-
transition: transform
|
|
535
|
-
${({isAutoSlide:e,shouldBounce:i})=>`${e?"0.5s":"0.3s"} ${i?"cubic-bezier(0.175, 0.885, 0.32, 1.125)":"ease-out"}`};
|
|
536
|
-
`,rs=r.div`
|
|
537
|
-
display: flex;
|
|
538
|
-
justify-content: unset;
|
|
539
|
-
${({isActive:e,isAutoSlide:i})=>ge`
|
|
540
|
-
transform: translateX(${e?i?"95%":"0%":"105%"});
|
|
541
|
-
`};
|
|
542
|
-
transition: transform
|
|
543
|
-
${({isAutoSlide:e,isActive:i})=>e&&i?"0.5s":"0.3s"}
|
|
544
|
-
ease-out;
|
|
545
|
-
gap: ${a.sp8};
|
|
546
|
-
`,Ua=r.div`
|
|
547
|
-
min-width: ${e=>xe.ownerWebMinWidth.valuePx(e.windowSize)};
|
|
548
|
-
cursor: pointer;
|
|
549
|
-
`,kt=r(pe)`
|
|
550
|
-
color: ${e=>e.theme.colors.hero};
|
|
551
|
-
display: flex;
|
|
552
|
-
align-items: center;
|
|
553
|
-
`,_a=r.div``,is=r.div`
|
|
554
|
-
display: flex;
|
|
555
|
-
align-items: flex-start;
|
|
556
|
-
gap: ${a.sp1};
|
|
557
|
-
`,os=r.div`
|
|
558
|
-
${({windowSize:e})=>e==="small"?ge`
|
|
559
|
-
max-width: 220px;
|
|
560
|
-
`:null};
|
|
561
|
-
`,Yt=r(pe)`
|
|
562
|
-
color: ${e=>e.theme.colors.primary};
|
|
563
|
-
text-transform: capitalize;
|
|
564
|
-
`,Za=r.div`
|
|
565
|
-
display: flex;
|
|
566
|
-
flex-direction: column;
|
|
567
|
-
align-items: "baseline";
|
|
568
|
-
justify-content: center;
|
|
569
|
-
cursor: pointer;
|
|
570
|
-
`,ns=r.div`
|
|
571
|
-
display: flex;
|
|
572
|
-
flex-direction: ${e=>e.windowSize!=="small"&&e.isOwnCard?"row":"column"};
|
|
573
|
-
justify-content: center;
|
|
574
|
-
align-items: center;
|
|
575
|
-
gap: ${e=>xe.rightSectionGap.valuePx(e.windowSize)};
|
|
576
|
-
width: ${e=>e.windowSize==="small"?"100%":"max-content"};
|
|
577
|
-
`,ss=r.div`
|
|
578
|
-
min-height: ${e=>`calc(${xe.rightSectionHeight.valuePx(e.windowSize)} + ${a.sp2})`};
|
|
579
|
-
min-width: ${e=>`calc(${xe.rightSectionWidth.valuePx(e.windowSize)} + ${a.sp2})`};
|
|
580
|
-
display: flex;
|
|
581
|
-
justify-content: center;
|
|
582
|
-
align-items: center;
|
|
583
|
-
flex-direction: column;
|
|
584
|
-
gap: ${e=>xe.cardContainerContentGap.valuePx(e.windowSize)};
|
|
585
|
-
`,ds=r.div`
|
|
586
|
-
width: 100%;
|
|
587
|
-
display: flex;
|
|
588
|
-
align-items: flex-start;
|
|
589
|
-
flex-direction: column;
|
|
590
|
-
justify-content: space-between;
|
|
591
|
-
`,cs=r.div`
|
|
592
|
-
display: flex;
|
|
593
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
594
|
-
align-items: center;
|
|
595
|
-
|
|
596
|
-
justify-content: space-between;
|
|
597
|
-
padding-top: ${a.sp3};
|
|
598
|
-
padding-right: ${e=>xe.contentContainerPadding.valuePx(e.windowSize)};
|
|
599
|
-
padding-bottom: ${e=>xe.topSectionPaddingBottom.valuePx(e.windowSize)};
|
|
600
|
-
padding-left: ${e=>xe.contentContainerPadding.valuePx(e.windowSize)};
|
|
601
|
-
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
602
|
-
background: ${e=>e.theme.colors.grey5};
|
|
603
|
-
gap: ${e=>xe.leftRightSectionGap.valuePx(e.windowSize)};
|
|
604
|
-
`,ls=r.div`
|
|
605
|
-
display: flex;
|
|
606
|
-
flex-direction: column;
|
|
607
|
-
width: 100%;
|
|
608
|
-
margin-bottom: ${({windowSize:e})=>xe.cardBalanceSectionMarginBottom.valuePx(e)};
|
|
609
|
-
`,Ga=r.div`
|
|
610
|
-
display: flex;
|
|
611
|
-
flex-direction: row;
|
|
612
|
-
justify-content: space-between;
|
|
613
|
-
align-items: flex-start;
|
|
614
|
-
`,hs=r(Lr)`
|
|
615
|
-
color: ${e=>e.theme.colors.primary};
|
|
616
|
-
${e=>`${ra.spentAmount.style(e.windowSize)}`};
|
|
617
|
-
`,ps=r.div`
|
|
618
|
-
display: flex;
|
|
619
|
-
align-items: flex-end;
|
|
620
|
-
flex-direction: column;
|
|
621
|
-
${({windowSize:e})=>e==="small"?ge`
|
|
622
|
-
margin-bottom: ${a.sp4};
|
|
623
|
-
`:null};
|
|
624
|
-
`,us=r.div`
|
|
625
|
-
display: flex;
|
|
626
|
-
flex-direction: ${({windowSize:e})=>e==="small"?"column":"row"};
|
|
627
|
-
align-items: ${({windowSize:e})=>e==="small"?"flex-start":"flex-end"};
|
|
628
|
-
`,ms=r(ea)`
|
|
629
|
-
color: ${e=>e.theme.colors.hero};
|
|
630
|
-
margin-right: ${a.sp1};
|
|
631
|
-
`,gs=r(Wi)`
|
|
632
|
-
background: none;
|
|
633
|
-
border: none;
|
|
634
|
-
cursor: pointer;
|
|
635
|
-
padding: ${a.sp0};
|
|
636
|
-
color: ${d.link};
|
|
637
|
-
&:hover {
|
|
638
|
-
text-decoration: underline;
|
|
639
|
-
}
|
|
640
|
-
`,Cs=r.div`
|
|
641
|
-
display: flex;
|
|
642
|
-
align-items: flex-end;
|
|
643
|
-
gap: ${a.sp1};
|
|
644
|
-
`,fs=r(pe)`
|
|
645
|
-
color: ${e=>e.theme.colors.hero};
|
|
646
|
-
`,ws=r(pe)`
|
|
647
|
-
color: ${e=>e.theme.colors.hero};
|
|
648
|
-
`,xs=r.div`
|
|
649
|
-
width: 100%;
|
|
650
|
-
height: ${a.sp1};
|
|
651
|
-
display: flex;
|
|
652
|
-
margin: ${a.sp2} ${a.sp0};
|
|
653
|
-
border-radius: ${({windowSize:e})=>xe.barRadius.valuePx(e)};
|
|
654
|
-
background: ${e=>e.theme.colors.grey2};
|
|
655
|
-
`,Ss=r.div`
|
|
656
|
-
display: flex;
|
|
657
|
-
align-items: flex-start;
|
|
658
|
-
flex-direction: column;
|
|
659
|
-
color: ${e=>e.theme.colors.primary};
|
|
660
|
-
`,Ya=r(Lr)`
|
|
661
|
-
color: ${e=>e.theme.colors.primary};
|
|
662
|
-
${e=>`${ra.remainingAmount.style(e.windowSize)}`};
|
|
663
|
-
`,qa=r(Bi)`
|
|
664
|
-
${e=>`${ra.remainingAmount.style(e.windowSize)}`};
|
|
665
|
-
color: ${e=>e.theme.colors.primary};
|
|
666
|
-
`,ys=r.div`
|
|
667
|
-
background: ${d.success};
|
|
668
|
-
width: 0%;
|
|
669
|
-
height: ${a.sp1};
|
|
670
|
-
transition: width 4s ease;
|
|
671
|
-
`,Ka=r.span`
|
|
672
|
-
display: flex;
|
|
673
|
-
color: ${e=>e.theme.colors.grey1};
|
|
674
|
-
&:hover {
|
|
675
|
-
color: ${e=>e.theme.colors.primary};
|
|
676
|
-
}
|
|
677
|
-
`,Xa=r(it)`
|
|
678
|
-
padding: ${a.sp0} 2px;
|
|
679
|
-
color: ${d.heroDark};
|
|
680
|
-
background: ${d.blackColor};
|
|
681
|
-
border-radius: ${a.sp1};
|
|
682
|
-
position: absolute;
|
|
683
|
-
left: 20px;
|
|
684
|
-
`,Ja=r(jr)`
|
|
685
|
-
height: 12px;
|
|
686
|
-
width: 12px;
|
|
687
|
-
margin-left: ${a.sp1};
|
|
688
|
-
color: ${e=>e.isHover?e.theme.colors.primary:e.theme.colors.grey2};
|
|
689
|
-
cursor: pointer;
|
|
690
|
-
`,Qa=r(mt)`
|
|
691
|
-
height: 12px;
|
|
692
|
-
width: 12px;
|
|
693
|
-
margin-left: ${a.sp1};
|
|
694
|
-
color: ${d.success};
|
|
695
|
-
`,bs=r.div`
|
|
696
|
-
width: 21px;
|
|
697
|
-
height: 21px;
|
|
698
|
-
`,$s=r(Qi)`
|
|
699
|
-
color: ${d.brandColorOpal};
|
|
700
|
-
width: 100%;
|
|
701
|
-
height: 100%;
|
|
702
|
-
`,er=r.div`
|
|
703
|
-
display: flex;
|
|
704
|
-
align-items: center;
|
|
705
|
-
justify-content: center;
|
|
706
|
-
position: relative;
|
|
707
|
-
`,gt=be.getLocalizedStrings().spendManagement.chargeCard.cardDetails.header,vs={key:"merchant",value:gt.merchant,sortOrder:"ascending",width:new R(38,38)},ks={key:"paymentDate",value:gt.paymentDate,sortOrder:"ascending",width:new R(21,21)},js={key:"receipts",value:gt.receipts,sortOrder:"ascending",width:new R(16,16)},Ls={key:"type",value:gt.type,sortOrder:"ascending",width:new R(14,14)},Is={key:"amount",value:gt.amount,sortOrder:"ascending",width:new R(11,11)},Br=()=>[vs,ks,js,Ls,Is],tt={headerLastColumnTopPadding:new R(l[0],l[4]),headerLastColumnRightPadding:new R(l[3],l[11]),headerLastColumnBottomPadding:new R(l[0],l[4]),headerLastColumnLeftPadding:new R(l[3],l[11]),headerHeight:new R(ho,po)},Ds=go.memo(function({hideSorting:e,sortConfig:i,onColumnSortConfigChanged:s}){const m=Qe(),h=ke(),x=Br(),p=(c,n)=>{let w=n;i.sortKey===c&&(w=n==="ascending"?"descending":"ascending"),s(c,w)},f=x.find(c=>c.key===i.sortKey)??x[0],g=x.map(c=>c.key),C=be.getLocalizedStrings().spendManagement.chargeCard.cardList;return h==="small"?t.jsxs(tr,{windowSize:h,children:[t.jsxs(Rs,{children:[t.jsx(Es,{children:t.jsx(Fs,{})}),t.jsx(io,{title:C.sortBy,placeholder:C.sortBy,pickerValues:g,valueToLabel:c=>x.find(n=>n.key===c)?.value??"",selectedValue:i.sortKey,onPickerSelectionChanged:c=>{p(c,"ascending")},optionTextStyle:W.smallRegular,titleTextStyle:W.smallRegular,titleColor:m.colors.primary,selectedOptionColor:m.colors.hero,optionBackgroundColor:m.colors.grey5,downChevronVisible:!1,backgroundColor:m.colors.grey4,isDisabled:e})]}),t.jsxs(Ms,{hideSorting:e,onClick:()=>{e||p(f.key,f.sortOrder)},"data-testid":X("charge-card-trxn-small-header",i.sortKey),children:[t.jsx(pe,{children:f.value}),e?null:t.jsx(ar,{sortDataValue:i.sortKey,headerData:f,children:t.jsx(rr,{})})]})]}):t.jsx(tr,{windowSize:h,children:x.map(c=>t.jsxs(Ts,{hideSorting:e,sortDataValue:i.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:h,children:[t.jsxs(Ps,{hideSorting:e,onClick:()=>{e||p(c.key,c.sortOrder)},"data-testid":X("charge-card-trxn-header",i.sortKey),children:[t.jsx(pe,{children:c.value}),t.jsx(ar,{sortDataValue:i.sortKey,headerData:c,children:e?null:t.jsx(rr,{})})]}),t.jsx(zs,{sortDataValue:i.sortKey,windowSize:h,isVisible:!e&&i.sortKey===c.key&&c.key!=="paymentDate",children:e?null:t.jsx(As,{onClick:()=>{e||p("paymentDate","ascending")},"data-testid":X("charge-card-trxn-close-sort",i.sortKey)})})]},c.key))})}),tr=r(pe)`
|
|
708
|
-
top: ${a.sp0};
|
|
709
|
-
left: ${a.sp0};
|
|
710
|
-
min-height: ${e=>tt.headerHeight.valuePx(e.windowSize)};
|
|
711
|
-
max-height: ${e=>tt.headerHeight.valuePx(e.windowSize)};
|
|
712
|
-
width: auto;
|
|
713
|
-
z-index: 2;
|
|
714
|
-
display: flex;
|
|
715
|
-
align-items: center;
|
|
716
|
-
box-sizing: border-box;
|
|
717
|
-
padding: ${e=>`${tt.headerLastColumnTopPadding.valuePx(e.windowSize)} ${tt.headerLastColumnRightPadding.valuePx(e.windowSize)} ${tt.headerLastColumnBottomPadding.valuePx(e.windowSize)} ${tt.headerLastColumnLeftPadding.valuePx(e.windowSize)}`};
|
|
718
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
719
|
-
justify-content: space-between;
|
|
720
|
-
position: sticky;
|
|
721
|
-
`,Ts=r.div`
|
|
722
|
-
color: ${e=>e.sortDataValue===e.actualDataValue&&e.hideSorting===!1?e.theme.colors.primary:e.theme.colors.grey1};
|
|
723
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
724
|
-
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
725
|
-
padding-left: ${a.sp0};
|
|
726
|
-
display: flex;
|
|
727
|
-
align-items: center;
|
|
728
|
-
gap: 5px;
|
|
729
|
-
left: ${a.sp0};
|
|
730
|
-
justify-content: ${e=>e.actualDataValue==="amount"?"flex-end":"flex-start"};
|
|
731
|
-
${e=>e.actualDataValue==="paymentDate"?ge`
|
|
732
|
-
flex: 1 1 auto;
|
|
733
|
-
`:ge`
|
|
734
|
-
padding-left: ${a.sp0};
|
|
735
|
-
`};
|
|
736
|
-
box-sizing: border-box;
|
|
737
|
-
overflow: hidden;
|
|
738
|
-
`,As=r(no)`
|
|
739
|
-
width: 12px;
|
|
740
|
-
height: 12px;
|
|
741
|
-
cursor: pointer;
|
|
742
|
-
color: ${e=>e.theme.colors.hero};
|
|
743
|
-
`,ar=r.div`
|
|
744
|
-
display: flex;
|
|
745
|
-
align-items: center;
|
|
746
|
-
transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
747
|
-
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"}
|
|
748
|
-
`,rr=r(Dr)`
|
|
749
|
-
width: 12px;
|
|
750
|
-
height: 12px;
|
|
751
|
-
cursor: pointer;
|
|
752
|
-
color: inherit;
|
|
753
|
-
`,Rs=r.div`
|
|
754
|
-
gap: ${a.sp1};
|
|
755
|
-
display: flex;
|
|
756
|
-
`,Fs=r(oo)`
|
|
757
|
-
width: 12px;
|
|
758
|
-
height: 12px;
|
|
759
|
-
color: ${e=>e.theme.colors.grey1};
|
|
760
|
-
`,Es=r.div`
|
|
761
|
-
margin-right: ${a.sp1};
|
|
762
|
-
display: flex;
|
|
763
|
-
align-items: center;
|
|
764
|
-
`,zs=r.div`
|
|
765
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
766
|
-
align-items: center;
|
|
767
|
-
padding-top: 2px;
|
|
768
|
-
`,Ps=r.div`
|
|
769
|
-
display: flex;
|
|
770
|
-
cursor: ${e=>e.hideSorting?"default":"pointer"};
|
|
771
|
-
gap: ${e=>e.hideSorting?a.sp0:"5px"};
|
|
772
|
-
&:hover {
|
|
773
|
-
color: ${e=>e.hideSorting?"inherit":e.theme.colors.primary};
|
|
774
|
-
}
|
|
775
|
-
`,Ms=r.div`
|
|
776
|
-
display: flex;
|
|
777
|
-
cursor: ${e=>e.hideSorting?"default":"pointer"};
|
|
778
|
-
gap: ${e=>e.hideSorting?a.sp0:"5px"};
|
|
779
|
-
color: ${e=>e.theme.colors.hero};
|
|
780
|
-
&:hover {
|
|
781
|
-
color: ${e=>e.hideSorting?e.theme.colors.hero:e.theme.colors.primary};
|
|
782
|
-
}
|
|
783
|
-
`;function Wr(e,i,s){return async function(m,h,x,p){const f=`${m}?query=${encodeURIComponent(JSON.stringify(x))}`,g=be.getLocalizedStrings().downloadReport;try{const C=await so(f,{method:"GET",headers:{"zeni-user-id":h.userId,"zeni-tenant-id":h.tenantId,"zeni-session-id":h.sessionId}});if(C.ok){const c=p??co(C.headers,"Charge Card Transaction Receipt.pdf"),n=await C.arrayBuffer();lo(n,c)}else console.error(`${g.reportErrorMessage} ${C.statusText}`)}catch(C){console.error(`${g.reportErrorMessage} ${JSON.stringify(C)}`)}}(e,i,s)}async function Ur(e,i,s){const m=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,h=be.getLocalizedStrings().downloadReport;try{const x=await fetch(m,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(x.ok)return await x.json();console.error(`${h.reportErrorMessage} ${x.statusText}`)}catch(x){throw console.error(`${h.reportErrorMessage} ${JSON.stringify(x)}`),x}return[]}const _r=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 21.5894C3.6641 21.5893 3.99994 21.2535 3.99994 20.8394V8.37549L4.72748 9.10303C5.02038 9.39591 5.49514 9.39592 5.78803 9.10303C6.08091 8.81014 6.08091 8.33537 5.78803 8.04248L3.7851 6.03955C3.49221 5.74666 3.01745 5.74667 2.72455 6.03955C2.71669 6.04741 2.70953 6.05585 2.70209 6.06396C2.68584 6.07767 2.66955 6.09163 2.65424 6.10693L0.711857 8.04932C0.418964 8.34221 0.418964 8.81795 0.711857 9.11084C1.00469 9.40341 1.47957 9.40341 1.7724 9.11084L2.49994 8.3833V20.8394C2.49994 21.2536 2.83573 21.5894 3.24994 21.5894Z",fill:"currentColor"})),Zr=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 5.81982C3.6641 5.81989 3.99994 6.15565 3.99994 6.56982V19.0337L4.72748 18.3062C5.02038 18.0133 5.49514 18.0133 5.78803 18.3062C6.08091 18.599 6.08091 19.0738 5.78803 19.3667L3.7851 21.3696C3.49221 21.6625 3.01745 21.6625 2.72455 21.3696C2.71669 21.3618 2.70953 21.3533 2.70209 21.3452C2.68584 21.3315 2.66955 21.3175 2.65424 21.3022L0.711857 19.3599C0.418964 19.067 0.418964 18.5912 0.711857 18.2983C1.00469 18.0058 1.47957 18.0058 1.7724 18.2983L2.49994 19.0259V6.56982C2.49994 6.15561 2.83573 5.81982 3.24994 5.81982Z",fill:"currentColor"})),{dateFormat:Vs,spendManagement:{chargeCard:{cardDetails:ir}},common:{strings:{hyphen:Os},tooltips:{addMissingReceipt:Hs,addReceipt:Ns,viewReceipt:Bs}}}=be.getLocalizedStrings(),Be={containerPaddingLeft:new R(l[3],l[4]),containerPaddingRight:new R(l[3],l[4]),containerPaddingTop:new R(l[2],l[3]),containerPaddingBottom:new R(l[2],l[3]),containerMarginLeft:new R(l[4],l[8]),webkitLineClamp:new R(2,1,1,1,1)},Ws=(e,i)=>e.attachments!=null&&e.attachments.length>0?Bs:e.amount.amount<=i.amount?Ns:Hs,Gr=(e,i,s,m)=>e.attachments!=null&&e.attachments.length>0?t.jsx(ld,{onClick:h=>{h.stopPropagation(),m()},"data-testid":X("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx(ud,{onClick:h=>{h.stopPropagation(),s()},"data-testid":X("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(pd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":X("card-transaction-row-upload-receipt",e.id)}),Us=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:x,cardId:p,uploadReceiptsFetchState:f,uploadReceiptsShowTick:g,isViewReceiptClickedImmediatelyAfterUpload:C,authParams:c,transaction:n,receiptRequiredAboveAmount:w,updateChargeCardTransactionAttachments:S,onUploadReceiptComplete:I,updateChargeCardTransactionUploadReceiptsFetchStatus:$,updateChargeCardTransactionReceiptsShowTick:j,updateChargeCardTransactionIsViewReceiptClicked:D,removeSnackbar:u,onChargeCardTransactionRowClick:E})=>{const y=ke(),[O,H]=o.useState(!1),[k,Z]=o.useState([]),[J,_]=o.useState(null);o.useEffect(()=>{!s&&C&&(Q(T[0]),q())},[s,C]);const T=n.attachments?.filter(v=>v.contentType!=null&&Ar.includes(v.contentType))??[],[oe,Q]=o.useState(T[0]),[ie,V]=o.useState([]),[U,G]=o.useState(void 0);o.useEffect(()=>{U!=null&&(async function(v){ie.includes(v.attachment_id)?console.warn(`Attachment with ID ${v.attachment_id} is already getting downloaded`):(V([v.attachment_id,...ie]),await Wr(x,c,v),V(Mr(ie,F=>F==v.attachment_id)))}({card_id:p,transaction_id:n.id,attachment_id:U}),G(void 0))},[U]);const q=()=>{H(!0);const v=T.map(F=>F.id);(async function(F){return await Ur(h,c,F)})({card_id:p,transaction_id:n.id,attachment_ids:v}).then(F=>{Z(F),F.length>0&&_(F[0])})},{merchant:z,createTime:ne,transactionType:ee,thirdPartyTransactionId:te}=n,K=o.useRef(null),N=Br(),L=Rr(n.transactionStatus),B=m?z.brandName??z.name:z.name,Y=_e("0,0.00",n.amount),A=ee.code==="transfer",P=te!=null&&m,ae=A&&n.direction==="debit",se=A&&n.direction==="credit";return t.jsxs(qs,{windowSize:y,isClickable:P,"data-testid":X("card-transaction-row",n.id),onClick:v=>{v.stopPropagation(),P&&E(ee.code,te)},children:[t.jsx(Ks,{children:t.jsxs(Xs,{children:[t.jsxs(Js,{windowSize:y,responsiveWidth:N[0].width,children:[ae?t.jsx(rd,{}):se?t.jsx(id,{}):t.jsx(od,{src:z.logo?.url?.toString()}),t.jsx(Qs,{windowSize:y,hasMarginRight:L.code==="paid",children:B}),L.code!=="paid"?t.jsxs(Zs,{children:[t.jsx(Ys,{windowSize:y}),t.jsx(Gs,{color:L.color,windowSize:y,children:L.value})]}):null]}),t.jsx(ad,{windowSize:y,responsiveWidth:N[1].width,children:t.jsx(nd,{children:ne.format(Vs.visual.MMMDCommaYYYYformat)})}),t.jsx(dd,{windowSize:y,responsiveWidth:N[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Os:f?.fetchState==="In-Progress"?t.jsx(ut,{size:"Small",start:!0}):g?t.jsx(hd,{}):t.jsxs(Qt,{enterDelay:600,display:"flex",placement:"bottom",title:Ws(n,w),children:[t.jsx(_s,{"data-testid":X("card-transaction-row-upload-receipt",n.id),onClick:v=>{v.stopPropagation()},children:t.jsx(Fr,{name:"transactionLineAttachment",fileRef:K,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:v=>{if(v.target.files!=null){const F=v.target.files,$e=[],le=[];for(let ve=0;ve<F.length;ve++)$e.push(F[ve].name),le.push(F[ve]);(async function(ve,Re){$(n.id,p,"In-Progress"),await Vr(`${e}/1.0/cards/transactions/${n.id}/attachments`,c,ve,Re).then(Se=>{Se!=null&&S(n.id,Se),$(n.id,p,"Completed"),j(n.id,p,!0),setTimeout(()=>{j(n.id,p,!1),I(!0)},2e3)}).catch(Se=>{$(n.id,p,"Error"),I(!1,Se)})})(le,$e)}},multiple:!0,onFileSizeError:(v,F)=>{v&&I(!1,{code:500,message:F===!0?ir.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):ir.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,w,()=>{K.current?.click()},()=>{s?(u(),D(n.id,p,!0)):(Q(T[0]),q())})]})}),t.jsx(sd,{windowSize:y,responsiveWidth:N[3].width,children:t.jsx(cd,{title:ee.name,children:ee.name})}),t.jsx(ed,{windowSize:y,responsiveWidth:N[4].width,children:t.jsx(td,{windowSize:y,title:_e("0,0.[00]",n.amount),children:n.direction==="debit"?Y:`-${Y}`})})]})}),O&&T.length>0?zr.createPortal(t.jsx(Er,{allFiles:k,fileSource:J,file:oe,title:oe.fileName,attachments:T,setFileSource:_,setShowFullScreenView:H,onCrossClick:()=>{D(n.id,p,!1),H(!1),_(null),Z([]),T.length>0&&Q(T[0])},setSelectedFileAttachment:Q,onDownloadClick:v=>{G(v.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},_s=r.div``,Zs=r.div`
|
|
784
|
-
display: flex;
|
|
785
|
-
flex-direction: row;
|
|
786
|
-
align-items: center;
|
|
787
|
-
gap: ${a.sp2};
|
|
788
|
-
margin-right: ${a.sp4};
|
|
789
|
-
`,Gs=r(it)`
|
|
790
|
-
color: ${e=>e.color};
|
|
791
|
-
`,Ys=r.div`
|
|
792
|
-
display: ${e=>e.windowSize==="small"?"none":"block"};
|
|
793
|
-
width: ${a.sp1};
|
|
794
|
-
height: ${a.sp1};
|
|
795
|
-
border-radius: 100%;
|
|
796
|
-
background-color: ${e=>e.theme.colors.grey1};
|
|
797
|
-
`,qs=r.div`
|
|
798
|
-
display: flex;
|
|
799
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
800
|
-
padding-left: ${e=>Be.containerPaddingLeft.valuePx(e.windowSize)};
|
|
801
|
-
padding-right: ${e=>Be.containerPaddingRight.valuePx(e.windowSize)};
|
|
802
|
-
padding-top: ${e=>Be.containerPaddingTop.valuePx(e.windowSize)};
|
|
803
|
-
padding-bottom: ${e=>Be.containerPaddingBottom.valuePx(e.windowSize)};
|
|
804
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
805
|
-
box-shadow: ${e=>e.theme.mode==="dark"?`${d.dropShadowNormalDark} ${a.sp0} 2px ${a.sp1}`:`${a.sp0} 2px ${a.sp1} ${d.dropShadowNormalLight}`};
|
|
806
|
-
border-radius: ${a.sp2};
|
|
807
|
-
color: ${e=>e.theme.colors.hero};
|
|
808
|
-
&:hover {
|
|
809
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
810
|
-
color: ${e=>e.theme.colors.primary};
|
|
811
|
-
}
|
|
812
|
-
margin-right: ${e=>Be.containerMarginLeft.valuePx(e.windowSize)};
|
|
813
|
-
margin-left: ${e=>Be.containerMarginLeft.valuePx(e.windowSize)};
|
|
814
|
-
box-sizing: border-box;
|
|
815
|
-
align-items: center;
|
|
816
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
817
|
-
`,Ks=r.div`
|
|
818
|
-
display: block;
|
|
819
|
-
width: 100%;
|
|
820
|
-
`,Xs=r.div`
|
|
821
|
-
display: flex;
|
|
822
|
-
width: 100%;
|
|
823
|
-
justify-content: space-between;
|
|
824
|
-
align-items: center;
|
|
825
|
-
`,Js=r.div`
|
|
826
|
-
display: flex;
|
|
827
|
-
flex-direction: row;
|
|
828
|
-
column-gap: ${a.sp2};
|
|
829
|
-
align-items: center;
|
|
830
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
831
|
-
`,Qs=r(Pe)`
|
|
832
|
-
margin-right: ${e=>e.hasMarginRight?a.sp3:a.sp0};
|
|
833
|
-
color: inherit;
|
|
834
|
-
-webkit-line-clamp: ${e=>Be.webkitLineClamp.value(e.windowSize)};
|
|
835
|
-
-webkit-box-orient: vertical;
|
|
836
|
-
overflow: hidden;
|
|
837
|
-
max-width: 100%;
|
|
838
|
-
overflow: hidden;
|
|
839
|
-
text-overflow: ellipsis;
|
|
840
|
-
white-space: nowrap;
|
|
841
|
-
text-transform: capitalize;
|
|
842
|
-
`,ed=r(Pe)`
|
|
843
|
-
display: flex;
|
|
844
|
-
flex-direction: column;
|
|
845
|
-
justify-content: flex-end;
|
|
846
|
-
align-items: flex-end;
|
|
847
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
848
|
-
`,td=r(Pe)`
|
|
849
|
-
color: inherit;
|
|
850
|
-
flex-grow: 1;
|
|
851
|
-
-webkit-line-clamp: ${e=>Be.webkitLineClamp.value(e.windowSize)};
|
|
852
|
-
-webkit-box-orient: vertical;
|
|
853
|
-
overflow: hidden;
|
|
854
|
-
text-overflow: ellipsis;
|
|
855
|
-
max-width: 100%;
|
|
856
|
-
overflow: hidden;
|
|
857
|
-
text-overflow: ellipsis;
|
|
858
|
-
white-space: nowrap;
|
|
859
|
-
`,ad=r.div`
|
|
860
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
861
|
-
box-sizing: border-box;
|
|
862
|
-
display: flex;
|
|
863
|
-
align-items: flex-start;
|
|
864
|
-
flex-direction: column;
|
|
865
|
-
justify-content: center;
|
|
866
|
-
`,Yr=e=>ge`
|
|
867
|
-
width: ${a.sp4};
|
|
868
|
-
height: ${a.sp4};
|
|
869
|
-
color: ${e.colors.hero};
|
|
870
|
-
`,rd=r(Zr)`
|
|
871
|
-
${({theme:e})=>Yr(e)}
|
|
872
|
-
`,id=r(_r)`
|
|
873
|
-
${({theme:e})=>Yr(e)}
|
|
874
|
-
`,od=r.img`
|
|
875
|
-
display: flex;
|
|
876
|
-
width: ${a.sp4};
|
|
877
|
-
height: ${a.sp4};
|
|
878
|
-
`,nd=r(Pe)`
|
|
879
|
-
color: inherit;
|
|
880
|
-
max-width: 100%;
|
|
881
|
-
overflow: hidden;
|
|
882
|
-
text-overflow: ellipsis;
|
|
883
|
-
white-space: nowrap;
|
|
884
|
-
`,sd=r(Pe)`
|
|
885
|
-
color: ${e=>e.theme.colors.hero};
|
|
886
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
887
|
-
box-sizing: border-box;
|
|
888
|
-
display: flex;
|
|
889
|
-
align-items: center;
|
|
890
|
-
`,dd=r.div`
|
|
891
|
-
color: ${e=>e.theme.colors.hero};
|
|
892
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
893
|
-
box-sizing: border-box;
|
|
894
|
-
display: flex;
|
|
895
|
-
align-items: center;
|
|
896
|
-
`,cd=r(it)`
|
|
897
|
-
color: ${e=>e.theme.colors.hero};
|
|
898
|
-
max-width: 100%;
|
|
899
|
-
overflow: hidden;
|
|
900
|
-
text-overflow: ellipsis;
|
|
901
|
-
white-space: nowrap;
|
|
902
|
-
padding: 1px 6px;
|
|
903
|
-
border-radius: ${a.sp1};
|
|
904
|
-
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
905
|
-
`,ld=r(uo)`
|
|
906
|
-
height: ${a.sp4};
|
|
907
|
-
width: ${a.sp4};
|
|
908
|
-
cursor: pointer;
|
|
909
|
-
color: ${e=>e.theme.colors.hero};
|
|
910
|
-
&:hover {
|
|
911
|
-
color: ${e=>e.theme.colors.primary};
|
|
912
|
-
}
|
|
913
|
-
`,hd=r(mt)`
|
|
914
|
-
height: ${a.sp4};
|
|
915
|
-
width: ${a.sp4};
|
|
916
|
-
color: ${d.success};
|
|
917
|
-
`,pd=r(mo)`
|
|
918
|
-
height: ${a.sp4};
|
|
919
|
-
width: ${a.sp4};
|
|
920
|
-
cursor: pointer;
|
|
921
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
922
|
-
&:hover {
|
|
923
|
-
color: ${e=>e.theme.colors.primary};
|
|
924
|
-
}
|
|
925
|
-
`,ud=r(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"})))`
|
|
926
|
-
height: ${a.sp4};
|
|
927
|
-
width: ${a.sp4};
|
|
928
|
-
cursor: pointer;
|
|
929
|
-
color: ${e=>e.theme.colors.hero};
|
|
930
|
-
&:hover {
|
|
931
|
-
color: ${e=>e.theme.colors.primary};
|
|
932
|
-
}
|
|
933
|
-
`,{dateFormat:md,spendManagement:{chargeCard:{cardDetails:qt}},common:{strings:{hyphen:gd}}}=be.getLocalizedStrings(),Cd={webkitLineClamp:new R(2,1,1,1,1)},fd=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:x,cardId:p,isViewReceiptClickedImmediatelyAfterUpload:f,uploadReceiptsShowTick:g,uploadReceiptsFetchState:C,authParams:c,transaction:n,receiptRequiredAboveAmount:w,onUploadReceiptComplete:S,updateChargeCardTransactionAttachments:I,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:j,updateChargeCardTransactionUploadReceiptsFetchStatus:D,removeSnackbar:u,onChargeCardTransactionRowClick:E})=>{const y=ke(),[O,H]=o.useState(0),[k,Z]=o.useState(0),[J,_]=o.useState(0),T=b=>{_(b),ie(!0),ee(z[b]),q(V[b])};function oe(b){return b<0?z.length+b:b%z.length}const[Q,ie]=o.useState(!1),[V,U]=o.useState([]),[G,q]=o.useState(null);o.useEffect(()=>{!s&&f&&(ee(z[0]),B())},[s,f]);const z=n.attachments?.filter(b=>b.contentType!=null&&Ar.includes(b.contentType))??[],[ne,ee]=o.useState(z[0]),[te,K]=o.useState([]),[N,L]=o.useState(void 0);o.useEffect(()=>{N!=null&&(async function(b){te.includes(b.attachment_id)?console.warn(`Attachment with ID ${b.attachment_id} is already getting downloaded`):(K([b.attachment_id,...te]),await Wr(x,c,b),K(Mr(te,re=>re==b.attachment_id)))}({card_id:p,transaction_id:n.id,attachment_id:N}),L(void 0))},[N]);const B=()=>{ie(!0);const b=z.map(re=>re.id);(async function(re){return await Ur(h,c,re)})({card_id:p,transaction_id:n.id,attachment_ids:b}).then(re=>{U(re),re.length>0&&q(re[0])})},{merchant:Y,createTime:A,transactionType:P,thirdPartyTransactionId:ae}=n,se=o.useRef(null),v=Rr(n.transactionStatus),F=m?Y.brandName??Y.name:Y.name,$e=_e("0,0.00",n.amount),le=P.code==="transfer",ve=ae!=null&&m,Re=le&&n.direction==="debit",Se=le&&n.direction==="credit";return t.jsxs(Id,{windowSize:y,"data-testid":X("card-transaction-row-small",n.id),onClick:b=>{b.stopPropagation(),ve&&E(P.code,ae)},children:[t.jsx(Dd,{children:t.jsxs(Td,{children:[t.jsxs(Fd,{children:[t.jsx(kd,{children:Re?t.jsx(wd,{}):Se?t.jsx(xd,{}):t.jsx(zd,{src:Y.logo?.url?.toString()})}),t.jsxs(Pd,{children:[t.jsxs(Sd,{children:[t.jsx(Ad,{windowSize:y,children:F}),v.code!=="paid"?t.jsxs(yd,{children:[t.jsx($d,{windowSize:y}),t.jsx(bd,{color:v.color,windowSize:y,children:v.value})]}):null]}),t.jsx(Rd,{children:`${qt.paymentDate} ${A.format(md.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(Ed,{children:[t.jsx(Md,{children:n.direction==="debit"?$e:`-${$e}`}),t.jsx(Ld,{title:P.name,children:P.name}),t.jsx(jd,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?gd:C?.fetchState==="In-Progress"?t.jsx(ut,{size:"Small",start:!0}):g?t.jsx(vd,{}):t.jsxs(or,{children:[t.jsx(or,{"data-testid":X("card-transaction-row-small-upload-receipt",n.id),onClick:b=>{b.stopPropagation()},children:t.jsx(Fr,{name:"transactionLineAttachment",fileRef:se,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:b=>{if(b.target.files!=null){const re=b.target.files,Ze=[],he=[];for(let je=0;je<re.length;je++)Ze.push(re[je].name),he.push(re[je]);(async function(je,Ge){D(n.id,p,"In-Progress"),await Vr(`${e}/1.0/cards/transactions/${n.id}/attachments`,c,je,Ge).then(Me=>{Me!=null&&I(n.id,Me),D(n.id,p,"Completed"),S(!0),$(n.id,p,!0),setTimeout(()=>$(n.id,p,!1),2e3)}).catch(Me=>{D(n.id,p,"Error"),S(!1,Me)})})(he,Ze)}},multiple:!0,onFileSizeError:(b,re)=>{b&&S(!1,{code:500,message:re===!0?qt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):qt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,w,()=>{se.current?.click()},()=>{s?(u(),j(n.id,p,!0)):(ee(z[0]),B())})]})})]})]})}),Q&&z.length>0?zr.createPortal(t.jsx(Er,{allFiles:V,fileSource:G,file:ne,title:ne.fileName,attachments:z,setFileSource:q,setShowFullScreenView:ie,onCrossClick:()=>{j(n.id,p,!1),ie(!1),q(null),U([]),z.length>0&&ee(z[0])},setSelectedFileAttachment:ee,onDownloadClick:b=>{L(b.id)},handleTouchStart:function(b){H(b.targetTouches[0].clientX)},handleTouchMove:function(b){Z(b.targetTouches[0].clientX)},handleTouchEnd:function(){O-k>50&&k!==0&&J<z.length-1?(T(oe(J+1)),H(0),Z(0)):O-k<-50&&k!==0&&J>0&&(T(oe(J-1)),H(0),Z(0))}}),document.body):null]})},qr=e=>ge`
|
|
934
|
-
width: ${a.sp4};
|
|
935
|
-
height: ${a.sp4};
|
|
936
|
-
color: ${e.colors.hero};
|
|
937
|
-
`,wd=r(Zr)`
|
|
938
|
-
${({theme:e})=>qr(e)}
|
|
939
|
-
`,xd=r(_r)`
|
|
940
|
-
${({theme:e})=>qr(e)}
|
|
941
|
-
`,or=r.div``,Sd=r.div`
|
|
942
|
-
display: flex;
|
|
943
|
-
gap: ${a.sp2};
|
|
944
|
-
align-items: flex-start;
|
|
945
|
-
`,yd=r.div`
|
|
946
|
-
display: flex;
|
|
947
|
-
flex-direction: row;
|
|
948
|
-
align-items: center;
|
|
949
|
-
gap: ${a.sp2};
|
|
950
|
-
min-height: ${a.sp4};
|
|
951
|
-
`,bd=r(it)`
|
|
952
|
-
color: ${e=>e.color};
|
|
953
|
-
`,$d=r.div`
|
|
954
|
-
display: block;
|
|
955
|
-
width: ${a.sp1};
|
|
956
|
-
height: ${a.sp1};
|
|
957
|
-
border-radius: 100%;
|
|
958
|
-
background-color: ${e=>e.theme.colors.grey1};
|
|
959
|
-
`,vd=r(mt)`
|
|
960
|
-
height: ${a.sp4};
|
|
961
|
-
width: ${a.sp4};
|
|
962
|
-
color: ${d.success};
|
|
963
|
-
`,kd=r.div``,jd=r.div`
|
|
964
|
-
margin-top: ${a.sp2};
|
|
965
|
-
`,Ld=r(it)`
|
|
966
|
-
color: ${e=>e.theme.colors.hero};
|
|
967
|
-
max-width: 100%;
|
|
968
|
-
overflow: hidden;
|
|
969
|
-
text-overflow: ellipsis;
|
|
970
|
-
white-space: nowrap;
|
|
971
|
-
padding: 1px 6px;
|
|
972
|
-
border-radius: ${a.sp1};
|
|
973
|
-
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
974
|
-
`,Id=r.div`
|
|
975
|
-
display: flex;
|
|
976
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
977
|
-
border: ${e=>` 1px solid ${e.theme.colors.grey3}`};
|
|
978
|
-
padding: ${a.sp3};
|
|
979
|
-
box-shadow: ${e=>`${a.sp0} 1px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
980
|
-
border-radius: ${a.sp2};
|
|
981
|
-
color: ${e=>e.theme.colors.hero};
|
|
982
|
-
&:hover {
|
|
983
|
-
color: ${e=>e.theme.colors.primary};
|
|
984
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
985
|
-
}
|
|
986
|
-
margin-right: ${a.sp3};
|
|
987
|
-
margin-left: ${a.sp3};
|
|
988
|
-
`,Dd=r.div`
|
|
989
|
-
display: block;
|
|
990
|
-
width: 100%;
|
|
991
|
-
`,Td=r.div`
|
|
992
|
-
display: flex;
|
|
993
|
-
width: 100%;
|
|
994
|
-
justify-content: space-between;
|
|
995
|
-
`,Ad=r(Pe)`
|
|
996
|
-
color: inherit;
|
|
997
|
-
flex-grow: 1;
|
|
998
|
-
display: -webkit-box;
|
|
999
|
-
-webkit-line-clamp: ${e=>Cd.webkitLineClamp.value(e.windowSize)};
|
|
1000
|
-
-webkit-box-orient: vertical;
|
|
1001
|
-
overflow: hidden;
|
|
1002
|
-
text-overflow: ellipsis;
|
|
1003
|
-
max-width: 112px;
|
|
1004
|
-
overflow: hidden;
|
|
1005
|
-
text-overflow: ellipsis;
|
|
1006
|
-
text-transform: capitalize;
|
|
1007
|
-
`,Rd=r(it)`
|
|
1008
|
-
color: inherit;
|
|
1009
|
-
min-height: 18px;
|
|
1010
|
-
margin-top: -${a.sp1};
|
|
1011
|
-
`,Fd=r.div`
|
|
1012
|
-
display: flex;
|
|
1013
|
-
flex-direction: row;
|
|
1014
|
-
gap: ${a.sp2};
|
|
1015
|
-
`,Ed=r.div`
|
|
1016
|
-
display: flex;
|
|
1017
|
-
flex-direction: column;
|
|
1018
|
-
align-items: flex-end;
|
|
1019
|
-
`,zd=r.img`
|
|
1020
|
-
display: flex;
|
|
1021
|
-
width: ${a.sp4};
|
|
1022
|
-
height: ${a.sp4};
|
|
1023
|
-
`,Pd=r.div`
|
|
1024
|
-
margin-bottom: 6px;
|
|
1025
|
-
`,Md=r(Pe)`
|
|
1026
|
-
color: inherit;
|
|
1027
|
-
`,{spendManagement:{chargeCard:{cardDetails:rt}},common:Vd}=be.getLocalizedStrings();function Od({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,uploadReceiptsFetchStateByTransactionId:m,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:x,cardId:p,receiptRequiredAboveAmount:f,isAiCategorizationEnabledForCardsTransactions:g,transactionAttachmentsEndpointToFetch:C,transactionAttachmentEndpointToDownload:c,cardsEndPoint:n,authParams:w,hideSorting:S,isOwnCard:I,uiState:$,fetchState:j,cardHolderUser:D,cardStatusCode:u="active",cardCodeType:E="business_virtual_credit_card",onReloadTransactions:y,onFetchChargeCardTransactionList:O,onColumnSortConfigChanged:H,removeSnackbar:k,onChargeCardTransactionRowClick:Z,onUploadReceiptComplete:J,onUpdateScrollYOffset:_,updateChargeCardTransactionAttachments:T,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:Q,updateChargeCardTransactionIsViewReceiptClicked:ie}){const V=ke(),U=o.useRef(null),[G,q]=o.useState(!1);o.useEffect(()=>{U.current?.resetAfterIndex(0)},[V,U]),o.useEffect(()=>{j==="Completed"&&q(!1)},[j]);const z=()=>V!=="small"?74:128,ne=()=>{var K,N;q(!0),K=$.pageToken,N=$.pageTokenType,O(K,N)},ee=K=>K<e.length,te=()=>{$.pageToken!=null&&j==="Completed"&&ne()};return t.jsxs(Zd,{isOwnCard:I,windowSize:V,isEmptyTransaction:e.length===0,children:[t.jsx(Gd,{windowSize:V,children:j==="Error"?t.jsxs(Kd,{children:[t.jsx(Xd,{onClick:y,"data-testid":X("card-transaction-list-reload"),children:t.jsx(br,{})}),t.jsx(Jd,{children:Vd.reloadPage.label})]}):j==="Not-Started"||j==="In-Progress"&&e.length===0?t.jsx(ec,{children:t.jsx(ut,{size:"ExtraLarge",start:!0})}):j==="Completed"||j==="In-Progress"&&e.length>0?u==="request_on_hold"?t.jsx(Nd,{cardType:E,cardHolderUser:D}):u==="inactive"?t.jsx(Bd,{cardHolderUser:D}):e.length===0?t.jsx(Hd,{}):t.jsx(qd,{windowSize:V,children:t.jsx(Ei,{children:({height:K,width:N})=>t.jsx(zi,{isItemLoaded:ee,itemCount:e.length+1,loadMoreItems:te,children:({onItemsRendered:L})=>t.jsx(Pi,{ref:U,height:K,itemCount:e.length,onItemsRendered:L,itemSize:z,itemKey:B=>e[B].id,width:N,style:{willChange:"auto"},innerElementType:B=>_d(B,S,$,j,H),onScroll:({scrollOffset:B})=>{_?.(B)},initialScrollOffset:$.scrollYOffset,children:B=>t.jsx(Wd,{...B,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:g,transactionAttachmentsEndpointToFetch:C,transactionAttachmentEndpointToDownload:c,uploadReceiptsFetchStateByTransactionId:m,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:x,cardId:p,authParams:w,transactions:e,receiptRequiredAboveAmount:f,updateChargeCardTransactionAttachments:T,onUploadReceiptComplete:J,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:Q,updateChargeCardTransactionIsViewReceiptClicked:ie,onChargeCardTransactionRowClick:Z,removeSnackbar:k})})})})}):null}),G===!0?t.jsx(tc,{children:t.jsx(ut,{size:"Small",start:!0})}):null]})}const Hd=()=>{const e=ke();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Xr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:rt.transactionTable.emptyTransactions.title}),t.jsx(sa,{windowSize:e,children:rt.transactionTable.emptyTransactions.subTitle})]})]})},Nd=({cardType:e,cardHolderUser:i})=>{const s=i!=null?i.firstName+" "+i.lastName:"",m=ke();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(rc,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:rt.transactionTable.pendingProfileCompletion.title}),t.jsx(sa,{windowSize:m,children:rt.transactionTable.pendingProfileCompletion.subTitle[e].replace("__user__",s)})]})]})},Bd=({cardHolderUser:e})=>{const i=ke();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Xr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:rt.transactionTable.pendingActivation.title}),t.jsx(sa,{windowSize:i,children:rt.transactionTable.pendingActivation.subTitle.replace("__user__",e?.firstName??"")})]})]})},Wd=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,style:m,transactions:h,isAiCategorizationEnabledForCardsTransactions:x,uploadReceiptsFetchStateByTransactionId:p,uploadReceiptsShowTickByTransactionId:f,isViewReceiptClickedImmediatelyAfterUploadTransactionId:g,cardId:C,cardsEndPoint:c,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:w,receiptRequiredAboveAmount:S,authParams:I,updateChargeCardTransactionAttachments:$,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:D,updateChargeCardTransactionReceiptsShowTick:u,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:y,removeSnackbar:O})=>t.jsx(Qd,{style:{...m,width:"100%"},className:"spend-management-list-item",children:t.jsx(Ud,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardId:C,isAiCategorizationEnabledForCardsTransactions:x,cardsEndPoint:c,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:w,authParams:I,receiptRequiredAboveAmount:S,transaction:h[e],uploadReceiptsFetchState:p?.[h[e].id],uploadReceiptsShowTick:f?.[h[e].id],isViewReceiptClickedImmediatelyAfterUpload:g?.[h[e].id],updateChargeCardTransactionAttachments:$,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:D,updateChargeCardTransactionReceiptsShowTick:u,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:y,removeSnackbar:O},h[e].id)}),Ud=o.memo(({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:m,uploadReceiptsFetchState:h,uploadReceiptsShowTick:x,isViewReceiptClickedImmediatelyAfterUpload:p,cardsEndPoint:f,transactionAttachmentsEndpointToFetch:g,transactionAttachmentEndpointToDownload:C,cardId:c,receiptRequiredAboveAmount:n,authParams:w,updateChargeCardTransactionAttachments:S,onUploadReceiptComplete:I,updateChargeCardTransactionUploadReceiptsFetchStatus:$,updateChargeCardTransactionReceiptsShowTick:j,updateChargeCardTransactionIsViewReceiptClicked:D,onChargeCardTransactionRowClick:u,removeSnackbar:E})=>{const y=ke()==="small"?fd:Us;return t.jsx(y,{isSnackbarOpen:s,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:g,transactionAttachmentEndpointToDownload:C,uploadReceiptsFetchState:h,uploadReceiptsShowTick:x,isViewReceiptClickedImmediatelyAfterUpload:p,transaction:e,cardId:c,receiptRequiredAboveAmount:n,cardsEndPoint:f,authParams:w,updateChargeCardTransactionAttachments:S,onUploadReceiptComplete:I,updateChargeCardTransactionUploadReceiptsFetchStatus:$,updateChargeCardTransactionReceiptsShowTick:j,updateChargeCardTransactionIsViewReceiptClicked:D,onChargeCardTransactionRowClick:u,removeSnackbar:E})}),_d=(e,i,s,m,h)=>t.jsx(Kr,{...e,onColumnSortConfigChanged:h,hideSorting:i,uiState:{sortKey:s.sortKey,sortOrder:s.sortOrder},fetchState:m}),Kr=o.forwardRef((e,i)=>{const{children:s,style:m,uiState:h,onColumnSortConfigChanged:x,hideSorting:p,...f}=e;return t.jsxs(ac,{ref:i,style:{...m,width:"auto"},...f,children:[t.jsx(Ds,{onColumnSortConfigChanged:x,sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},hideSorting:p}),t.jsx(Yd,{children:s})]})});Kr.displayName="Charge Card Transaction list View inner element type";const Zd=r.div`
|
|
1028
|
-
display: block;
|
|
1029
|
-
height: ${e=>e.isEmptyTransaction?"calc(100vh - 436px)":"calc(100vh - 224px)"};
|
|
1030
|
-
width: 100%;
|
|
1031
|
-
`,Gd=r.div`
|
|
1032
|
-
height: 100%;
|
|
1033
|
-
`,Yd=r.div`
|
|
1034
|
-
position: relative;
|
|
1035
|
-
width: auto;
|
|
1036
|
-
height: 100%;
|
|
1037
|
-
`,qd=r.div`
|
|
1038
|
-
height: 100%;
|
|
1039
|
-
display: flex;
|
|
1040
|
-
flex-direction: column;
|
|
1041
|
-
max-width: 99.9%;
|
|
1042
|
-
`,Kd=r.div`
|
|
1043
|
-
display: flex;
|
|
1044
|
-
width: 100%;
|
|
1045
|
-
height: calc(100% - 60px);
|
|
1046
|
-
flex-direction: column;
|
|
1047
|
-
justify-content: center;
|
|
1048
|
-
align-items: center;
|
|
1049
|
-
`,Xd=r.div`
|
|
1050
|
-
height: 96px;
|
|
1051
|
-
width: 96px;
|
|
1052
|
-
background: ${e=>e.theme.colors.background};
|
|
1053
|
-
border-radius: 50%;
|
|
1054
|
-
cursor: pointer;
|
|
1055
|
-
& svg {
|
|
1056
|
-
margin: ${a.sp5};
|
|
1057
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1058
|
-
}
|
|
1059
|
-
&:hover {
|
|
1060
|
-
& svg {
|
|
1061
|
-
color: ${e=>e.theme.colors.primary};
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
`,Jd=r(ea)`
|
|
1065
|
-
margin-top: ${a.sp3};
|
|
1066
|
-
color: ${e=>e.theme.colors.hero};
|
|
1067
|
-
`,Qd=r.div`
|
|
1068
|
-
top: ${a.sp0};
|
|
1069
|
-
left: ${a.sp0};
|
|
1070
|
-
padding-bottom: ${a.sp3};
|
|
1071
|
-
box-sizing: border-box;
|
|
1072
|
-
`,ec=r.div`
|
|
1073
|
-
display: flex;
|
|
1074
|
-
width: 100%;
|
|
1075
|
-
height: 100%;
|
|
1076
|
-
flex-direction: row;
|
|
1077
|
-
justify-content: center;
|
|
1078
|
-
align-items: center;
|
|
1079
|
-
margin-top: ${a.sp3};
|
|
1080
|
-
margin-bottom: ${a.sp3};
|
|
1081
|
-
`,tc=r.div`
|
|
1082
|
-
display: flex;
|
|
1083
|
-
width: 100%;
|
|
1084
|
-
height: auto;
|
|
1085
|
-
padding-bottom: ${a.sp3};
|
|
1086
|
-
flex-direction: row;
|
|
1087
|
-
justify-content: center;
|
|
1088
|
-
align-items: center;
|
|
1089
|
-
`,ia=r.div`
|
|
1090
|
-
display: flex;
|
|
1091
|
-
justify-content: center;
|
|
1092
|
-
align-items: center;
|
|
1093
|
-
flex-direction: column;
|
|
1094
|
-
gap: ${a.sp2};
|
|
1095
|
-
height: 100%;
|
|
1096
|
-
margin: ${a.sp0} ${a.sp3};
|
|
1097
|
-
`,oa=r.div`
|
|
1098
|
-
display: flex;
|
|
1099
|
-
flex-direction: column;
|
|
1100
|
-
align-items: center;
|
|
1101
|
-
`,na=r(eo)`
|
|
1102
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
1103
|
-
`,sa=r(Tr)`
|
|
1104
|
-
color: ${e=>e.theme.colors.primary};
|
|
1105
|
-
${e=>e.windowSize!=="small"?ge`
|
|
1106
|
-
white-space: pre;
|
|
1107
|
-
`:null};
|
|
1108
|
-
text-align: center;
|
|
1109
|
-
`,da=r.div``,ac=r.div``,Xr=r(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"})))))``,rc=r(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:ic}=be.getLocalizedStrings(),{cardDetails:Oe}=ic.chargeCard,oc=Pr`
|
|
1110
|
-
from {
|
|
1111
|
-
transform: translateX(100%);
|
|
1112
|
-
}
|
|
1113
|
-
to {
|
|
1114
|
-
transform: translateX(0);
|
|
1115
|
-
}
|
|
1116
|
-
`,nc=r(r.div`
|
|
1117
|
-
display: flex;
|
|
1118
|
-
flex-direction: column;
|
|
1119
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1120
|
-
height: inherit;
|
|
1121
|
-
`)`
|
|
1122
|
-
animation: ${e=>e.className==="slide-in-right-to-left-add-to-wallet"?oc:null} 0.3s forwards;
|
|
1123
|
-
`,sc=({isChargeCardAdmin:e,chargeCardDetailView:i,walletType:s,secretRevealed:m,isDrawerOpen:h,vgsVaultId:x,showSecretInfo:p,changePinInProcess:f,isSandboxEnv:g,controllerEmails:C,isChargeCardFeatureEnabled:c,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:S,chargeCardCashbackDetailState:I,isCardDetailErrored:$,creditAccountRepayment:j,productInformation:D,creditAccountInformation:u,debitAccountInformation:E,cashbackInformation:y,signedInUserToken:O,selectedColor:H,showDrawerAnimation:k,cardDetailsFetchState:Z,setCardDetailsFetchState:J,setIsCardDetailErrored:_,setShowSecretInfo:T,setSecretRevealed:oe,setShowChangePinPopup:Q,setIsAddToWalletDrawerOpen:ie,isCardDetailFetching:V,handleColorCodeClick:U,onFireOnClickAnalytics:G,onVerifyOtp:q,onVerifyOtpSuccess:z,onResendOtp:ne,onFireVerifyPopOnClickAnalytics:ee,onGetOtp:te})=>{const K=Qe(),[N,L]=o.useState(!1),[B,Y]=o.useState(!1),A=k.current;return o.useEffect(()=>{document.body.style.overflow=h?"hidden":"unset"},[h,k]),t.jsx($i,{onClose:()=>{ie(!1)},anchor:"right",open:!0,PaperProps:{style:{maxWidth:"512px",boxShadow:"none",background:"transparent"}},style:{backgroundColor:d.drawerBackground,display:h?"unset":"none"},disableScrollLock:!h,transitionDuration:250,"data-testid":X("add-card-to-wallet-drawer"),children:t.jsxs(t.Fragment,{children:[t.jsx(Sr,{phoneNumberPopupDescription:Oe.verifyPhoneNumberDescription,showOtpPopup:N,showPhoneNumberPopup:B,twoFactorAuthenticationView:i.twoFAView,loggedInUserPhone:i.loggedInUserPhone,onVerifyOtp:q,onVerifyOtpSuccess:P=>{z(P),f?Q(!0):T(!0)},onFireVerifyPopOnClickAnalytics:ee,setShowOtpPopup:L,onResendOtp:ne,setShowPhoneNumberPopup:Y,onGetOtp:te}),t.jsxs(nc,{className:A,children:[t.jsx(vi,{title:s==="apple"?Oe.addCardToAppleWallet:Oe.addCardToGoogleWallet,style:{zIndex:4},backgroundColor:K.colors.grey4,onCloseClick:()=>ie(!1)}),t.jsxs(cc,{children:[t.jsxs(uc,{children:[t.jsxs(lc,{children:[t.jsx(Sc,{children:t.jsx(bc,{})}),t.jsx(gc,{children:Oe.openWalletAppOnPhone})]}),t.jsx(Cc,{children:s==="apple"?Oe.openWalletDescriptionApple:Oe.openWalletDescriptionGoogle}),t.jsx(Hr,{isChargeCardAdmin:e,onUnlockChargeCard:()=>{},chargeCardDetailView:i,creditAccountRepayment:j,creditAccount:i.creditAccount,setShowSecretInfo:T,secretRevealed:m,isOwnCard:!0,controllerEmails:C,isChargeCardFeatureEnabled:c,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:S,chargeCardCashbackDetailState:I,isShowingInDrawer:!0,vgsVaultId:x,showSecretInfo:p,isSandboxEnv:g,isCardDetailErrored:$,signedInUserToken:O,productInformation:D,creditAccountInformation:u,debitAccountInformation:E,cashbackInformation:y,selectedColor:H,cardDetailsFetchState:Z,setCardDetailsFetchState:J,setIsCardDetailErrored:_,setSecretRevealed:oe,isCardDetailFetching:V,handleColorCodeClick:U,onFireOnClickAnalytics:G,setShowPhoneNumberForOtp:Y})]}),t.jsx(pc,{}),t.jsxs(mc,{children:[t.jsxs(hc,{children:[t.jsx(xc,{children:t.jsx(yc,{})}),t.jsx(fc,{children:Oe.verifyCard})]}),t.jsx(dc,{children:t.jsx(wc,{children:s==="apple"?Oe.VerifyCardDescriptionApple:Oe.VerifyCardDescriptionGoogle})})]})]})]})]})})},dc=r.div`
|
|
1124
|
-
display: flex;
|
|
1125
|
-
justify-content: end;
|
|
1126
|
-
`,cc=r.div`
|
|
1127
|
-
margin: ${a.sp3} ${a.sp8};
|
|
1128
|
-
`,lc=r.div`
|
|
1129
|
-
display: flex;
|
|
1130
|
-
align-items: center;
|
|
1131
|
-
gap: ${a.sp3};
|
|
1132
|
-
`,hc=r.div`
|
|
1133
|
-
display: flex;
|
|
1134
|
-
align-items: center;
|
|
1135
|
-
gap: ${a.sp3};
|
|
1136
|
-
`,pc=r.div`
|
|
1137
|
-
height: ${a.sp4};
|
|
1138
|
-
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
1139
|
-
width: ${a.sp0};
|
|
1140
|
-
margin-left: ${a.sp8};
|
|
1141
|
-
`,uc=r.div`
|
|
1142
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1143
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1144
|
-
border-radius: ${a.sp2};
|
|
1145
|
-
padding: ${a.sp4} ${a.sp5};
|
|
1146
|
-
box-shadow: ${a.sp0} 1px 2px
|
|
1147
|
-
${e=>e.theme.colors.dropShadowNormal};
|
|
1148
|
-
`,mc=r.div`
|
|
1149
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1150
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1151
|
-
border-radius: ${a.sp2};
|
|
1152
|
-
padding: ${a.sp4} ${a.sp5};
|
|
1153
|
-
box-shadow: ${a.sp0} 1px 2px
|
|
1154
|
-
${e=>e.theme.colors.dropShadowNormal};
|
|
1155
|
-
`,gc=r(aa)`
|
|
1156
|
-
color: ${e=>e.theme.colors.primary};
|
|
1157
|
-
`,Cc=r(Pe)`
|
|
1158
|
-
color: ${e=>e.theme.colors.hero};
|
|
1159
|
-
margin-left: ${a.sp9};
|
|
1160
|
-
padding-bottom: ${a.sp4};
|
|
1161
|
-
`,fc=r(aa)`
|
|
1162
|
-
color: ${e=>e.theme.colors.primary};
|
|
1163
|
-
`,wc=r(Pe)`
|
|
1164
|
-
color: ${e=>e.theme.colors.hero};
|
|
1165
|
-
max-width: 274px;
|
|
1166
|
-
`,xc=r.div`
|
|
1167
|
-
padding: 12px;
|
|
1168
|
-
border-radius: ${a.sp4};
|
|
1169
|
-
background: ${d.successLight};
|
|
1170
|
-
display: flex;
|
|
1171
|
-
`,Sc=r.div`
|
|
1172
|
-
padding: 12px;
|
|
1173
|
-
border-radius: ${a.sp4};
|
|
1174
|
-
background: ${e=>e.theme.colors.graphColor16Light};
|
|
1175
|
-
display: flex;
|
|
1176
|
-
`,yc=r(Ni)`
|
|
1177
|
-
width: ${a.sp4};
|
|
1178
|
-
height: ${a.sp4};
|
|
1179
|
-
`,bc=r(xo)`
|
|
1180
|
-
width: ${a.sp4};
|
|
1181
|
-
height: ${a.sp4};
|
|
1182
|
-
color: ${e=>e.theme.colors.graphColor16Dark};
|
|
1183
|
-
`,{spendManagement:{chargeCard:{cardDetails:qe}},common:{strings:$c}}=be.getLocalizedStrings(),ca={iFrameWidth:new R(188,188)};function vc({isSandboxEnv:e,cardProviderID:i,vgsVaultId:s,signedInUserToken:m,onCancelClick:h,onUpdateDebitCardPinAttempt:x,onChangePinSuccess:p}){const f=ke(),g=Qe(),[C,c]=o.useState({}),[n,w]=o.useState(!1),[S,I]=o.useState(!1),[$,j]=o.useState(!0),[D,u]=o.useState(!0),[E,y]=o.useState(!1),[O,H]=o.useState(!1),[k,Z]=o.useState(!1),[J,_]=o.useState(!1),[T,oe]=o.useState(!1),[Q,ie]=o.useState(!1),[V,U]=o.useState(!1),[G,q]=o.useState(null),[z,ne]=o.useState(null),[ee]=yr("https://js.verygoodvault.com/vgs-collect/2.27.0/vgs-collect.js"),te=e?"SANDBOX":"live";o.useEffect(()=>{if(ee){const N=window.VGSCollect.create(s,te,Y=>{const A=Y["data.attributes.oldPin"],P=Y["data.attributes.newPin"];A?.isTouched===!0&&A?.isValid===!1&&A?.isFocused===!1?_(!0):(A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!1||A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!0)&&(_(!1),U(!1)),P?.isTouched===!0&&P?.isValid===!1&&P?.isFocused===!1?oe(!0):(P?.isTouched===!0&&P?.isValid===!0&&P?.isFocused===!1||P?.isTouched===!0&&P?.isValid===!0&&P?.isFocused===!0)&&oe(!1)}),L=N.field("#oldPin",{type:"text",name:"data.attributes.oldPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{...W.standardRegular.cssObject,border:"none",boxSizing:"border-box",color:g.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:g.colors.grey1,...W.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:d.important,background:d.importantLight},"&:focus":{background:`${g.colors.background} !important`,textAlign:"left",color:`${g.colors.primary} !important`}}}),B=N.field("#newPin",{type:"text",name:"data.attributes.newPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{...W.standardRegular.cssObject,border:"none",boxSizing:"border-box",color:g.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:g.colors.grey1,...W.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:d.important,background:d.importantLight},"&:focus":{background:`${g.colors.background} !important`,textAlign:"left",color:`${g.colors.primary} !important`}}});q(L),ne(B),c(N),Promise.all([L.promise,B.promise]).then(function(){I(!0)})}},[ee]),o.useEffect(()=>{G?.update({hideValue:$})},[G,$]),o.useEffect(()=>{z?.update({hideValue:D})},[z,D]);const K={onOkClick:()=>{if(!C.state)return;const N=C.state["data.attributes.newPin"]?.isValid,L=C.state["data.attributes.oldPin"]?.isValid;var B;Z(!0),N===!0&&L===!0&&(B=m,w(!0),U(!1),C.submit?.("/cards/"+i+"/secure-data/pin",{method:"PUT",mapDotToObject:"true",headers:{"Content-Type":"application/vnd.api+json",Authorization:"Bearer "+B?.token}},function(Y,A){Y===200?(y(!1),H(!1),p(),x("success")):(_(!0),x("failed"),A.errors?.[0].title.toLowerCase().includes("max")?ie(!0):A.errors?.[0].title.toLowerCase().includes("invalid")&&U(!0),w(!1))},Y=>{console.log("error",Y),w(!1)}))},onCancelClick:h};return t.jsx(yi,{titleComponent:t.jsx(kc,{children:qe.moreOptions.changePin}),descriptionComponent:t.jsxs(jc,{children:[t.jsxs(Ac,{children:[t.jsxs(pr,{showFieldError:J,windowSize:f,isFirstField:!0,validation:k,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),oldPinInputHighlighted:E,children:[t.jsx(cr,{children:qe.existingPin}),t.jsxs(lr,{windowSize:f,children:[t.jsx(Tc,{id:"oldPin",className:"cc-old-pin-form-field",windowSize:f}),t.jsx(nr,{onClick:()=>j(!$),"data-testid":X("cc-old-pin-show-text"),children:$?t.jsx(sr,{}):t.jsx(dr,{})})]})]}),t.jsx(Ic,{}),t.jsxs(pr,{showFieldError:T,windowSize:f,isFirstField:!1,validation:k,onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),newPinInputHighlighted:O,children:[t.jsx(cr,{children:qe.newPin}),t.jsxs(lr,{windowSize:f,children:[t.jsx(Dc,{id:"newPin",className:"cc-new-pin-form-field",windowSize:f}),t.jsx(nr,{onClick:()=>u(!D),"data-testid":X("cc-new-pin-show-text"),children:D?t.jsx(sr,{}):t.jsx(dr,{})})]})]})]}),V?t.jsx(hr,{children:qe.incorrectCurrentPIN}):null,Q?t.jsx(hr,{children:qe.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:S===!1||Q,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:K,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(bi,{children:[t.jsx(Lc,{children:qe.forgotYourPin}),$c.space,qe.callTollFree]})})}const kc=r(Hi)`
|
|
1184
|
-
margin-top: ${a.sp7};
|
|
1185
|
-
padding-left: ${a.sp8};
|
|
1186
|
-
padding-right: ${a.sp8};
|
|
1187
|
-
color: ${e=>e.theme.colors.primary};
|
|
1188
|
-
word-break: break-word;
|
|
1189
|
-
`,jc=r(Mi)`
|
|
1190
|
-
margin-top: ${a.sp5};
|
|
1191
|
-
margin-bottom: ${a.sp5};
|
|
1192
|
-
`,Lc=r.span`
|
|
1193
|
-
color: ${e=>e.theme.colors.primary};
|
|
1194
|
-
`,nr=r.div`
|
|
1195
|
-
cursor: pointer;
|
|
1196
|
-
margin-left: ${a.sp2};
|
|
1197
|
-
`,sr=r(Vi)`
|
|
1198
|
-
height: ${a.sp4};
|
|
1199
|
-
width: ${a.sp4};
|
|
1200
|
-
color: ${e=>e.theme.colors.hero};
|
|
1201
|
-
`,dr=r(Oi)`
|
|
1202
|
-
height: ${a.sp4};
|
|
1203
|
-
width: ${a.sp4};
|
|
1204
|
-
color: ${e=>e.theme.colors.hero};
|
|
1205
|
-
`,cr=r.label`
|
|
1206
|
-
margin-top: ${a.sp2};
|
|
1207
|
-
`,lr=r.div`
|
|
1208
|
-
display: flex;
|
|
1209
|
-
flex-direction: row;
|
|
1210
|
-
align-items: center;
|
|
1211
|
-
max-width: 220px;
|
|
1212
|
-
`,hr=r(Pe)`
|
|
1213
|
-
color: ${d.important};
|
|
1214
|
-
display: flex;
|
|
1215
|
-
flex-direction: column;
|
|
1216
|
-
align-items: center;
|
|
1217
|
-
text-align: right;
|
|
1218
|
-
margin-top: ${a.sp3};
|
|
1219
|
-
`,Ic=r.div`
|
|
1220
|
-
display: flex;
|
|
1221
|
-
flex: 1;
|
|
1222
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
1223
|
-
min-height: 1px;
|
|
1224
|
-
max-height: 1px;
|
|
1225
|
-
`,Dc=r.div`
|
|
1226
|
-
border-radius: ${a.sp1};
|
|
1227
|
-
height: ${a.sp6};
|
|
1228
|
-
width: ${e=>ca.iFrameWidth.valuePx(e.windowSize)};
|
|
1229
|
-
`,Tc=r.div`
|
|
1230
|
-
border-radius: ${a.sp1};
|
|
1231
|
-
height: ${a.sp6};
|
|
1232
|
-
width: ${e=>ca.iFrameWidth.valuePx(e.windowSize)};
|
|
1233
|
-
`,Ac=r.div`
|
|
1234
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1235
|
-
border-radius: ${a.sp2};
|
|
1236
|
-
`,pr=r.div`
|
|
1237
|
-
display: flex;
|
|
1238
|
-
padding: ${a.sp2};
|
|
1239
|
-
padding-left: ${a.sp4};
|
|
1240
|
-
align-items: start;
|
|
1241
|
-
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1242
|
-
border-radius: ${a.sp2};
|
|
1243
|
-
justify-content: space-between;
|
|
1244
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1245
|
-
gap: 11px;
|
|
1246
|
-
&:hover {
|
|
1247
|
-
z-index: 1;
|
|
1248
|
-
outline: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
1249
|
-
}
|
|
1250
|
-
iframe {
|
|
1251
|
-
height: 100%;
|
|
1252
|
-
width: ${e=>ca.iFrameWidth.valuePx(e.windowSize)};
|
|
1253
|
-
}
|
|
1254
|
-
.cc-new-pin-form-field {
|
|
1255
|
-
background: ${e=>e.showFieldError?d.importantLight:e.newPinInputHighlighted===!0?e.theme.colors.background:"unset"};
|
|
1256
|
-
}
|
|
1257
|
-
.cc-old-pin-form-field {
|
|
1258
|
-
background: ${e=>e.showFieldError?d.importantLight:e.oldPinInputHighlighted===!0?e.theme.colors.background:"unset"};
|
|
1259
|
-
}
|
|
1260
|
-
${e=>e.isFirstField?ge`
|
|
1261
|
-
border-bottom-left-radius: ${a.sp0};
|
|
1262
|
-
border-bottom-right-radius: ${a.sp0};
|
|
1263
|
-
`:ge`
|
|
1264
|
-
border-top-left-radius: ${a.sp0};
|
|
1265
|
-
border-top-right-radius: ${a.sp0};
|
|
1266
|
-
`}
|
|
1267
|
-
${e=>e.validation?ge`
|
|
1268
|
-
.vgs-collect-container__invalid:not(.vgs-collect-container__focused) {
|
|
1269
|
-
background: ${d.importantLight};
|
|
1270
|
-
}
|
|
1271
|
-
.vgs-collect-container__focused) {
|
|
1272
|
-
background: ${e.theme.colors.background};
|
|
1273
|
-
}
|
|
1274
|
-
`:null}
|
|
1275
|
-
`,Ae={bottomContentContainerPadding:new R(l[3],l[8]),styledAIIconContainerSize:new R(l[3],l[3]),bannerWrapperMarginLeftRight:new R(l[3],l[8]),payNowSectionPaddingLeftRight:new R(l[3],l[0]),styledHighImportanceIconMarginRight:new R(l[0],l[1])},{common:Le,spendManagement:Rc,dateFormat:Fc}=be.getLocalizedStrings(),ce=Rc.chargeCard,kl=({chargeCardDetailView:e,onUnlockChargeCard:i,onCloseChargeCard:s,cardsEndPoint:m,classListFetchState:h,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:p,authParams:f,hideSorting:g,cardId:C,vgsVaultId:c,controllerEmails:n,isCardControlsEnabled:w,isChargeCardFeatureEnabled:S,isDebitCardFeatureEnabled:I,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:j,chargeCardCashbackDetailState:D,onFetchChargeCardsRecurringExpenses:u,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,creditAccount:k,cardIssuedByRoles:Z,cardIssuedByDepartmentName:J,cardHolderRoles:_,cardHolderDepartmentName:T,loggedInUserRole:oe,appleWalletLink:Q,googleWalletLink:ie,signedInUser:V,signedInUserToken:U,chargeCardsRecurringExpensesState:G,isSandboxEnv:q,isEarlyPayEnabled:z,documentAiReceiptMaxSizeLimit:ne,isSnackbarOpen:ee,onFireOnClickAnalytics:te,onUpdateDebitCardPinAttempt:K,onFireVerifyPopOnClickAnalytics:N,onBackClick:L,onReloadTransactions:B,onFetchChargeCardTransactionList:Y,onGetOtp:A,onLockChargeCard:P,onResendOtp:ae,onVerifyOtp:se,updateChargeCardName:v,onVerifyOtpSuccess:F,onColorCodeChange:$e,onColumnSortConfigChanged:le,updateChargeCardTransactionAttachments:ve,updateChargeCardTransactionUploadReceiptsFetchStatus:Re,updateChargeCardTransactionReceiptsShowTick:Se,updateChargeCardTransactionIsViewReceiptClicked:b,onUploadReceiptComplete:re,removeSnackbar:Ze,onChargeCardTransactionRowClick:he,onChargeCardRevokeInviteClick:je,onUpdateScrollYOffset:Ge,updateSpendLimit:Me,shouldOpenCreditCardPaymentDrawer:ue})=>{const Ve=o.useRef(!0),ot=Qe(),de=ke(),Ct=Lt(),nt=It().analytics,[,st]=wr(),[Fe,ft]=o.useState(!1),[dt,wt]=o.useState(!1),[xt,Ee]=o.useState(!1),[ct,De]=o.useState(!1),[me,lt]=o.useState(!1),[At,la]=o.useState(!1),[Qr,ei]=o.useState(!1),[ti,ha]=o.useState(!1),[ai,St]=o.useState(!1),[ri,Rt]=o.useState(!1),[ii,yt]=o.useState(!1),[oi,bt]=o.useState(!1),[et,Ft]=o.useState(!1),[pa,Et]=o.useState(!1),[ua,ma]=o.useState(!1),[ni,ga]=o.useState(!1),[si,di]=o.useState("apple"),[Ca,fa]=o.useState({number:!1,cvv:!1});o.useEffect(()=>{et===!1&&Et(!1)},[et]);const wa=o.useRef("noAnimation"),He=e.chargeCard?.cardHolderUserId===V.userId,zt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,xa=e.chargeCard?.billingAddress,fe=Tt(Ct.loggedInUserRoleMap),{text1:ci,text2:li}=wi(xa),Sa=`${ci} ${li}`,Pt=e.chargeCard?.isDeclinedTransaction===!0;o.useEffect(()=>{Fe===!0&&setTimeout(()=>{ft(!1)},800),me===!0&&setTimeout(()=>{lt(!1)},800),At===!0&&setTimeout(()=>{la(!1)},800)},[me,At,Fe]);const[dl,hi]=o.useState(!1),[ya,ba]=o.useState(e.chargeCard?.cardColorCode!=null?new Xe(e.chargeCard.cardColorCode):void 0);o.useEffect(()=>{e.chargeCard?.cardColorCode!=null&&ba(new Xe(e.chargeCard.cardColorCode))},[e.chargeCard?.cardColorCode]);const $a={amount:e.chargeCard!=null?e.chargeCard.balance.amount:0,currencyCode:e.chargeCard!=null?e.chargeCard.balance.currencyCode:Le.currency.countryCode,currencySymbol:e.chargeCard!=null?e.chargeCard.balance.currencySymbol:Le.currency.currencySymbol};o.useEffect(()=>{Ve.current===!0?Ve.current=!1:te(et===!1?"card details hidden":"card detail revealed")},[et]);const va=(M,we)=>{if(we===!0){const Ne=ki(M.toString())??Le.strings.empty;te("color selected",Ne),$e(Ne),hi(!1)}ba(M)},ka=M=>{const{cvv:we,number:Ne}=M;return we===!0||Ne===!0},{isMobileOrTabletScreen:ja}=xr(),Mt=e.chargeCard?.status.code!=="request_on_hold"&&e.chargeCard?.status.code!=="inactive",Vt=e.updateChargeCardLimitFetchState.fetchState,Ot=e.updateChargeCardNameFetchState.fetchState,Ht=e.lockChargeCardsFetchState.fetchState,Nt=e.closeChargeCardsFetchState.fetchState,La=Je(Vt),Ia=Je(Ot),Da=Je(Ht),Ta=Je(Nt);o.useEffect(()=>{La==="In-Progress"&&Vt==="Completed"?St(!1):Ia==="In-Progress"&&Ot==="Completed"?Rt(!1):Da==="In-Progress"&&Ht==="Completed"?yt(!1):Ta==="In-Progress"&&Nt==="Completed"&&bt(!1)},[Vt,Ot,Ht,Nt,La,Ia,Da,Ta]);const Ie=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",pi=fe&&(e.chargeCard?.status.code==="active"||e.chargeCard?.status.code==="locked")&&$a.amount<(Ie?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit.amount??0:e.creditAccount.limit.amount),ui=e.creditAccountRepayment.initiatedRepayments.amount>0&&fe&&Pt,Aa=t.jsx("div",{children:t.jsx(xi,{entity:"debit_cards",isDisabled:e.unlockChargeCardsFetchState.fetchState==="In-Progress"?"disabled":void 0,onOptionSelection:M=>{M==="changePin"?(U==null||U.expiry.isBefore(new Date)?A(e.loggedInUserPhone):De(!0),Ee(!0)):M==="updateSpendLimit"?St(!0):M==="rename"?Rt(!0):M==="lock"?(yt(!0),u()):M==="close"?(bt(!0),u()):M==="unlock"?i(fe):M==="revokeInvite"&&je()},isMoreOption:!0,options:(()=>{if(!w)return[{value:"changePin",label:ce.cardDetails.moreOptions.changePin}];const M=[{value:"changePin",label:ce.cardDetails.moreOptions.changePin},{value:"unlock",label:ce.cardDetails.moreOptions.unlock},{value:"updateSpendLimit",label:ce.cardDetails.moreOptions.updateSpendLimit},{value:"rename",label:ce.cardDetails.moreOptions.rename},{value:"lock",label:ce.cardDetails.moreOptions.lock},{value:"close",label:ce.cardDetails.moreOptions.close},{value:"revokeInvite",label:ce.cardDetails.moreOptions.revokeInvite}],we=e.chargeCard?.status.code,Ne=we==="locked",mi=we==="inactive",gi=we==="request_on_hold",Ci=e.chargeCard?.isLockedByAdmin===!0,Fa=Ie&&He,$t=fe;if(gi){const ze=[];return $t&&ze.push("revokeInvite"),ze.push("rename"),M.filter(Bt=>ze.includes(Bt.value))}if(mi){const ze=[];return ze.push("rename"),Fa&&ze.push("changePin"),$t&&ze.push("close"),M.filter(Bt=>ze.includes(Bt.value))}const fi={changePin:Fa&&!Ne,lock:!Ne,unlock:Ne&&(fe||!Ci),rename:!0,updateSpendLimit:$t,close:$t};return M.filter(ze=>fi[ze.value])})(),customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),valueContainer:M=>({...M,display:"flex",alignItems:"center"})}})}),Ra=M=>M.reasonType==="other"?M.reason:M.reasonType;return t.jsxs(Gc,{children:[ii&&e.chargeCard!=null&&t.jsx(Lo,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>yt(!1),isChargeCardAdmin:fe,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:G.recurringExpenses},cardRecurringExpenseFetchState:G.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:M=>{const we=Ra(M);P(fe,we)},onDismissClick:()=>yt(!1),onRemoveCardClick:()=>{}}),oi&&e.chargeCard!=null&&t.jsx(Io,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>bt(!1),isChargeCardAdmin:fe,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:G.recurringExpenses},cardRecurringExpenseFetchState:G.fetchState,closeCardFetchState:e.closeChargeCardsFetchState.fetchState,onConfirmClick:M=>{const we=Ra(M);s(we)},onDismissClick:()=>bt(!1),onRemoveCardClick:()=>{}}),ct&&e.chargeCard?.cardProviderID!=null?t.jsx(vc,{signedInUserToken:U,vgsVaultId:c,onCancelClick:()=>{De(!1),Ee(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{De(!1),Ee(!0)},onUpdateDebitCardPinAttempt:K}):null,ja?null:t.jsx(sc,{isChargeCardAdmin:fe,controllerEmails:n,isChargeCardFeatureEnabled:S,isDebitCardFeatureEnabled:I,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:j,chargeCardCashbackDetailState:D,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,creditAccount:e.creditAccount,selectedColor:ya,walletType:si,onFireOnClickAnalytics:te,isSandboxEnv:q,chargeCardDetailView:e,vgsVaultId:c,signedInUserToken:U,showSecretInfo:et,changePinInProcess:xt,setShowChangePinPopup:De,isCardDetailErrored:ua,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,isCardDetailFetching:ka,handleColorCodeClick:va,isDrawerOpen:ni,setIsAddToWalletDrawerOpen:ga,onVerifyOtp:se,onVerifyOtpSuccess:F,onFireVerifyPopOnClickAnalytics:N,onResendOtp:ae,setShowSecretInfo:Ft,secretRevealed:pa,setSecretRevealed:Et,onGetOtp:A,showDrawerAnimation:wa}),t.jsx(Si,{rightSideComponent:(()=>{const M=e.chargeCard?.status.code;if(M==="closed"||M==="closed_by_customer")return null;if(!w)return He&&Ie?Aa:null;if(!He&&!fe)return null;const we=e.chargeCard?.isLockedByAdmin===!0;return He&&!fe&&we&&M==="locked"?null:Aa})(),navBarContainerStyles:{paddingTop:l[2],alignItems:"center",paddingBottom:l[2]},source:"ChargeCardDetailPage",title:e.chargeCard?.cardName??Le.strings.empty,subTitle:e.fetchState==="Completed"&&e.chargeCard!=null?t.jsx(jo,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:ot.colors.grey5,style:{zIndex:3},onBackClick:L,titleStyle:{marginTop:l[0],...de==="small"&&{textAlign:"left"}},leftComponentStyle:de==="small"?{width:"10%"}:void 0,middleComponentStyle:de==="small"?{width:"80%"}:void 0,rightComponentStyle:de==="small"?{width:"10%"}:void 0}),t.jsx(Sr,{phoneNumberPopupDescription:ce.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Qr,showPhoneNumberPopup:ti,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:se,onVerifyOtpSuccess:M=>{F(M),xt?De(!0):Ft(!0)},onFireVerifyPopOnClickAnalytics:N,setShowOtpPopup:ei,onResendOtp:ae,setShowPhoneNumberPopup:ha,onGetOtp:A}),ri&&t.jsx(Do,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Rt(!1),onSubmitClick:M=>{e.chargeCard&&v(fe,M)}}),ai&&e.chargeCard!=null?t.jsx(To,{controllerEmails:n,isChargeCardFeatureEnabled:S,isDebitCardFeatureEnabled:I,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:j,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,cardDetail:e.chargeCard,transactionStatistics:e.transactionStatistics,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,creditAccount:k,creditAccountRepayment:e.creditAccountRepayment,signedInUser:V,isDebitCard:Ie,cardIssuedByRoles:Z,cardHolderRoles:_,loggedInUserRole:oe,cardIssuedByDepartmentName:J,cardHolderDepartmentName:T,classListFetchState:h,currentLimitAmount:e.chargeCard?.limit??{amount:0,currencyCode:Le.currency.countryCode,currencySymbol:Le.currency.currencySymbol},currentSpentAmount:e.chargeCard?.balance??{amount:0,currencyCode:Le.currency.countryCode,currencySymbol:Le.currency.currencySymbol},maxLimitAmount:Ie?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:e.creditAccount.limit,isDisabled:Ie&&e.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>St(!1),onSubmitClick:M=>{if(e.chargeCard){const we={amount:M,currencyCode:e.chargeCard.limit.currencyCode,currencySymbol:e.chargeCard.limit.currencySymbol};Me(e.chargeCard.id,we,e.chargeCard.creditLimitFrequency,_e("0,0.[00]",we))}},recommendations:e?.chargeCard?.recommendations}):null,e.fetchState==="Error"?t.jsxs(Nc,{windowSize:de,children:[t.jsx(Uc,{onClick:B,"data-testid":X("reload-card-detail"),children:t.jsx(Zc,{})}),t.jsx(_c,{children:Le.reloadPage.label})]}):t.jsxs(Ec,{children:[t.jsx(Gn,{controllerEmails:n,isChargeCardFeatureEnabled:S,isDebitCardFeatureEnabled:I,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:j,creditAccount:k,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,isDebitCard:Ie,chargeCardCashbackDetailState:D,cardIssuedByRoles:Z,cardIssuedByDepartmentName:J,cardHolderRoles:_,cardHolderDepartmentName:T,classListFetchState:h,chargeCardDetailView:e,spent:$a,isCardNotPending:Mt,cardOwnerName:zt,appleWalletLink:Q,googleWalletLink:ie,addressToShow:xa,secretRevealed:pa,isOwnCard:He,vgsVaultId:c,showSecretInfo:et,isSandboxEnv:q,isCardDetailErrored:ua,signedInUserToken:U,selectedColor:ya,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,setSecretRevealed:Et,isCardDetailFetching:ka,handleColorCodeClick:va,onFireOnClickAnalytics:te,setShowPhoneNumberPopup:ha,setShowChangeSpendLimitPopup:St,setShowSecretInfo:Ft,isOwnerNameCopied:me,isAddressCopied:At,onOwnerNameCopyClick:()=>{te("card owner copied"),Kt({chargeCardDetailView:e,chargeCardCashbackDetailState:D,isChargeCardFeatureEnabled:S,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,creditAccount:k,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:Ie,isChargeCardAdmin:fe,analytics:nt,controllerEmails:n,actionField:"Card Owner",actionDetails:zt}),st(zt),lt(!0)},onAddressCopyClick:()=>{te("billing address copied"),Kt({chargeCardDetailView:e,chargeCardCashbackDetailState:D,isChargeCardFeatureEnabled:S,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,creditAccount:k,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:Ie,isChargeCardAdmin:fe,analytics:nt,controllerEmails:n,actionField:"Billing Address",actionDetails:Sa}),st(Sa),la(!0)},showUpdateSpendLimitAction:pi,onUnlockChargeCard:i}),z?ui?t.jsxs(Pc,{windowSize:de,children:[t.jsx(Xc,{}),t.jsx(Vc,{children:` ${ce.payEarly.paymentOf} ${_e("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${ce.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(Fc.visual.MMMDFormat)} ${ce.payEarly.isProcessing} ${ce.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):Pt?fe?t.jsxs(Jr,{onClick:()=>{ue(!0)},windowSize:de,children:[t.jsx(ur,{windowSize:de}),t.jsxs(Bc,{children:[t.jsx(mr,{children:ce.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(Oc,{className:"pay-now-button",children:[ce.payEarly.payNow,t.jsx(Mc,{})]})]})]}):t.jsxs(zc,{windowSize:de,children:[t.jsx(ur,{windowSize:de}),t.jsx(Wc,{children:t.jsx(mr,{children:ce.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,He&&de!=="small"&&Mt&&Ie===!1?t.jsx(Ao,{style:{marginTop:Pt?a.sp5:a.sp4},classListFetchState:h,controllerEmails:n,isChargeCardFeatureEnabled:S,isDebitCardFeatureEnabled:I,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:j,chargeCardDetailView:e,creditAccount:k,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,cardIssuedByRoles:Z,cardHolderRoles:_,cardIssuedByDepartmentName:J,cardHolderDepartmentName:T,isDebitCard:Ie,appleWalletLink:Q,googleWalletLink:ie,setWalletType:di,setIsAddToWalletDrawerOpen:ga,showDrawerAnimation:wa}):null,t.jsxs(sl,{windowSize:de,isOwnCard:He,isMobileOrTabletScreen:ja,children:[Mt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(qc,{windowSize:de,children:[ce.cardDetails.transactionListTitle,t.jsx(Qt,{display:"flex",placement:"right",title:t.jsx(Jc,{children:ce.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(Kc,{})})]}),t.jsxs(Qc,{windowSize:de,children:[t.jsx(rl,{windowSize:de,children:t.jsx(il,{})}),t.jsxs(Yc,{windowSize:de,children:[t.jsxs(el,{children:[t.jsx(Hc,{children:ce.aiCardAgentText}),Le.strings.space,ce.receiptBotMessage,Le.strings.space]}),t.jsxs(al,{"data-testid":X("charge-card-detail-copy-email"),onClick:()=>{Kt({chargeCardDetailView:e,chargeCardCashbackDetailState:D,isChargeCardFeatureEnabled:S,productInformation:E,cashbackInformation:y,creditAccountInformation:O,debitAccountInformation:H,creditAccount:k,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:Ie,isChargeCardAdmin:fe,analytics:nt,controllerEmails:n,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),st(e.chargeCardConfig.receiptBotEmail),ft(!0)},onMouseEnter:()=>wt(!0),onMouseLeave:()=>wt(!1),children:[t.jsx(tl,{children:e.chargeCardConfig.receiptBotEmail}),Fe===!0?t.jsxs(Cr,{children:[t.jsx(nl,{}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:dt||Fe,color:d.primaryDark,children:Le.copyToClipBoard.copied})})]}):t.jsxs(Cr,{children:[t.jsx(ol,{color:dt?ot.colors.primary:void 0}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:dt&&de!=="small",children:Le.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(Od,{cardStatusCode:e.chargeCard?.status.code,cardCodeType:e.chargeCard?.type.code,cardId:C,documentAiReceiptMaxSizeLimit:ne,uploadReceiptsFetchStateByTransactionId:e.uploadReceiptsFetchStateByTransactionId,isSnackbarOpen:ee,uploadReceiptsShowTickByTransactionId:e.uploadReceiptsShowTickByTransactionId,isViewReceiptClickedImmediatelyAfterUploadTransactionId:e.isViewReceiptClickedImmediatelyAfterUploadTransactionId,receiptRequiredAboveAmount:e.chargeCardConfig.receiptRequiredAboveAmount,cardsEndPoint:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:p,authParams:f,hideSorting:g,transactions:e.transactions,cardHolderUser:e.chargeCard?.cardHolderUser,uiState:e.uiState,fetchState:e.transactionListFetchState.fetchState,isAiCategorizationEnabledForCardsTransactions:e.chargeCardConfig.isAiCategorizationEnabledForCardsTransactions,onReloadTransactions:B,onFetchChargeCardTransactionList:Y,isOwnCard:He,onColumnSortConfigChanged:le,removeSnackbar:Ze,onChargeCardTransactionRowClick:he,onUpdateScrollYOffset:Ge,onUploadReceiptComplete:re,updateChargeCardTransactionAttachments:ve,updateChargeCardTransactionUploadReceiptsFetchStatus:Re,updateChargeCardTransactionReceiptsShowTick:Se,updateChargeCardTransactionIsViewReceiptClicked:b})]})]})]})},Kt=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:s,productInformation:m,cashbackInformation:h,creditAccountInformation:x,debitAccountInformation:p,creditAccount:f,creditAccountRepayment:g,isDebitCard:C,isChargeCardAdmin:c,analytics:n,controllerEmails:w,actionDetails:S,actionField:I})=>{e.chargeCard==null||i.fetchState!=="Completed"||s&&(f.fetchState!=="Completed"||g.fetchState!=="Completed")||C&&c&&e.depositAccountLimitFetchState.fetchState!=="Completed"||n.trackCardsCopyIconClick(w,m,"Cards Detail","Copy","copied",I,S,h,x,p)},Ec=r.div``,Jr=r.div`
|
|
1276
|
-
background: ${d.important};
|
|
1277
|
-
display: flex;
|
|
1278
|
-
align-items: center;
|
|
1279
|
-
justify-content: center;
|
|
1280
|
-
padding-top: ${a.sp3};
|
|
1281
|
-
padding-bottom: ${a.sp3};
|
|
1282
|
-
padding-left: ${({windowSize:e})=>Ae.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1283
|
-
padding-right: ${({windowSize:e})=>Ae.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1284
|
-
gap: ${a.sp1};
|
|
1285
|
-
align-items: start;
|
|
1286
|
-
cursor: pointer;
|
|
1287
|
-
:hover {
|
|
1288
|
-
.pay-now-button {
|
|
1289
|
-
text-decoration: underline;
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
`,zc=r(Jr)``,Pc=r.div`
|
|
1293
|
-
background: ${d.alertLight};
|
|
1294
|
-
display: flex;
|
|
1295
|
-
align-items: start;
|
|
1296
|
-
justify-content: center;
|
|
1297
|
-
padding-top: ${a.sp3};
|
|
1298
|
-
padding-bottom: ${a.sp3};
|
|
1299
|
-
padding-left: ${({windowSize:e})=>Ae.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1300
|
-
padding-right: ${({windowSize:e})=>Ae.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1301
|
-
gap: ${a.sp2};
|
|
1302
|
-
`,ur=r(Ii)`
|
|
1303
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1304
|
-
margin-right: ${({windowSize:e})=>Ae.styledHighImportanceIconMarginRight.valuePx(e)};
|
|
1305
|
-
min-width: ${a.sp4};
|
|
1306
|
-
width: ${a.sp4};
|
|
1307
|
-
height: ${a.sp4};
|
|
1308
|
-
path:nth-child(2),
|
|
1309
|
-
path:nth-child(3) {
|
|
1310
|
-
stroke: ${d.important};
|
|
1311
|
-
}
|
|
1312
|
-
`,Mc=r(Di)`
|
|
1313
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1314
|
-
min-width: 12px;
|
|
1315
|
-
width: 12px;
|
|
1316
|
-
height: 12px;
|
|
1317
|
-
`,mr=r(ta)`
|
|
1318
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1319
|
-
`,Vc=r(ta)`
|
|
1320
|
-
color: ${d.brandColorGoldDark};
|
|
1321
|
-
`,Oc=r(kr)`
|
|
1322
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1323
|
-
gap: ${a.sp1};
|
|
1324
|
-
cursor: pointer;
|
|
1325
|
-
display: inline-flex;
|
|
1326
|
-
align-items: center;
|
|
1327
|
-
white-space: nowrap;
|
|
1328
|
-
`,Hc=r(Fi)`
|
|
1329
|
-
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
1330
|
-
${({theme:e})=>e.mode==="dark"&&`color: ${d.brandColorPearl};`}
|
|
1331
|
-
`,Nc=r.div`
|
|
1332
|
-
display: flex;
|
|
1333
|
-
width: 100%;
|
|
1334
|
-
height: calc(100vh - ${e=>ji.valuePx(e.windowSize)});
|
|
1335
|
-
flex-direction: column;
|
|
1336
|
-
justify-content: center;
|
|
1337
|
-
align-items: center;
|
|
1338
|
-
background: ${e=>e.theme.colors.grey5};
|
|
1339
|
-
`,Bc=r.div``,Wc=r.div``,Uc=r.div`
|
|
1340
|
-
height: ${a.sp12};
|
|
1341
|
-
width: ${a.sp12};
|
|
1342
|
-
background: ${e=>e.theme.colors.background};
|
|
1343
|
-
display: flex;
|
|
1344
|
-
justify-content: center;
|
|
1345
|
-
align-items: center;
|
|
1346
|
-
border-radius: 50%;
|
|
1347
|
-
cursor: pointer;
|
|
1348
|
-
& svg {
|
|
1349
|
-
margin: ${a.sp5};
|
|
1350
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1351
|
-
}
|
|
1352
|
-
&:hover {
|
|
1353
|
-
& svg {
|
|
1354
|
-
color: ${e=>e.theme.colors.primary};
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
`,_c=r(ea)`
|
|
1358
|
-
margin-top: ${a.sp3};
|
|
1359
|
-
color: ${e=>e.theme.colors.hero};
|
|
1360
|
-
`,Zc=r(br)`
|
|
1361
|
-
height: ${a.sp5};
|
|
1362
|
-
width: ${a.sp5};
|
|
1363
|
-
margin: ${a.sp5};
|
|
1364
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1365
|
-
&:hover {
|
|
1366
|
-
color: ${e=>e.theme.colors.primary};
|
|
1367
|
-
}
|
|
1368
|
-
`,Gc=r.div`
|
|
1369
|
-
background: ${e=>e.theme.colors.grey4};
|
|
1370
|
-
`,Yc=r.div`
|
|
1371
|
-
width: 100%;
|
|
1372
|
-
max-width: ${e=>e.windowSize==="small"?"calc(100% - 20px)":"unset"};
|
|
1373
|
-
`,qc=r(aa)`
|
|
1374
|
-
color: ${e=>e.theme.colors.primary};
|
|
1375
|
-
margin-bottom: ${a.sp3};
|
|
1376
|
-
display: flex;
|
|
1377
|
-
align-items: center;
|
|
1378
|
-
margin-right: ${e=>Ae.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
1379
|
-
margin-left: ${e=>Ae.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
1380
|
-
`,Kc=r(vr)`
|
|
1381
|
-
color: ${e=>e.theme.colors.hero};
|
|
1382
|
-
width: ${a.sp3};
|
|
1383
|
-
height: ${a.sp3};
|
|
1384
|
-
margin-left: ${a.sp2};
|
|
1385
|
-
&:hover {
|
|
1386
|
-
color: ${e=>e.theme.colors.primary};
|
|
1387
|
-
}
|
|
1388
|
-
`,Xc=r(vr)`
|
|
1389
|
-
color: ${d.brandColorGoldDark};
|
|
1390
|
-
min-width: ${a.sp4};
|
|
1391
|
-
width: ${a.sp4};
|
|
1392
|
-
height: ${a.sp4};
|
|
1393
|
-
`,Jc=r(pe)`
|
|
1394
|
-
padding: 2px ${a.sp2};
|
|
1395
|
-
box-sizing: content-box;
|
|
1396
|
-
color: ${e=>e.theme.colors.hero};
|
|
1397
|
-
background: ${e=>e.theme.colors.black};
|
|
1398
|
-
border-radius: ${a.sp1};
|
|
1399
|
-
max-width: 178px;
|
|
1400
|
-
text-align: left;
|
|
1401
|
-
`,Qc=r.div`
|
|
1402
|
-
display: flex;
|
|
1403
|
-
border: 1.25px solid transparent;
|
|
1404
|
-
background: ${e=>`linear-gradient(${e.theme.colors.grey4}, ${e.theme.colors.grey4}) padding-box,
|
|
1405
|
-
${d.receiptAgentLinearGradient}
|
|
1406
|
-
border-box`};
|
|
1407
|
-
padding: ${a.sp3} ${a.sp4};
|
|
1408
|
-
border-radius: ${a.sp2};
|
|
1409
|
-
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
1410
|
-
gap: ${a.sp1};
|
|
1411
|
-
margin: 0
|
|
1412
|
-
${e=>Ae.bannerWrapperMarginLeftRight.valuePx(e.windowSize)};
|
|
1413
|
-
`,el=r(ta)`
|
|
1414
|
-
color: ${e=>e.theme.colors.primary};
|
|
1415
|
-
`,tl=r(kr)`
|
|
1416
|
-
color: ${e=>e.theme.colors.primary};
|
|
1417
|
-
`,al=r.span`
|
|
1418
|
-
cursor: pointer;
|
|
1419
|
-
`,gr=r.span`
|
|
1420
|
-
position: absolute;
|
|
1421
|
-
bottom: -${a.sp5};
|
|
1422
|
-
z-index: 10;
|
|
1423
|
-
left: ${a.sp2};
|
|
1424
|
-
`,Cr=r.span`
|
|
1425
|
-
position: relative;
|
|
1426
|
-
margin-left: ${a.sp1};
|
|
1427
|
-
top: 2px;
|
|
1428
|
-
`,fr=r(pe)`
|
|
1429
|
-
position: relative;
|
|
1430
|
-
background: ${e=>e.theme.colors.black};
|
|
1431
|
-
color: ${e=>e.color!=null?e.color:e.theme.colors.grey1};
|
|
1432
|
-
padding: 2px ${a.sp2};
|
|
1433
|
-
z-index: 10;
|
|
1434
|
-
border-radius: ${a.sp1};
|
|
1435
|
-
left: -50%;
|
|
1436
|
-
display: ${e=>e.shouldDisplay?"block":"none"};
|
|
1437
|
-
`,rl=r.div`
|
|
1438
|
-
width: ${e=>Ae.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1439
|
-
min-width: ${e=>Ae.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1440
|
-
height: ${e=>Ae.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1441
|
-
top: ${a.sp1};
|
|
1442
|
-
position: ${e=>e.windowSize==="small"?"relative":"static"};
|
|
1443
|
-
`,il=r(Ri)`
|
|
1444
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
1445
|
-
width: 100%;
|
|
1446
|
-
height: 100%;
|
|
1447
|
-
`,ol=r(jr)`
|
|
1448
|
-
height: ${a.sp3};
|
|
1449
|
-
width: ${a.sp3};
|
|
1450
|
-
color: ${e=>e.color!=null?e.color:e.theme.colors.hero};
|
|
1451
|
-
cursor: pointer;
|
|
1452
|
-
&:hover {
|
|
1453
|
-
color: ${e=>e.theme.colors.primary};
|
|
1454
|
-
}
|
|
1455
|
-
`,nl=r(mt)`
|
|
1456
|
-
height: ${a.sp3};
|
|
1457
|
-
width: ${a.sp3};
|
|
1458
|
-
color: ${d.success};
|
|
1459
|
-
`,sl=r.div`
|
|
1460
|
-
padding-top: ${e=>e.isOwnCard?e.isMobileOrTabletScreen?a.sp3:a.sp4:a.sp5};
|
|
1461
|
-
padding-bottom: ${a.sp4};
|
|
1462
|
-
`;export{kl as default};
|