@zeniai/web-cockpit-ui 1.15.68-qa → 2.0.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Preview-C3kztGrG.js +1 -0
- package/dist/assets/ScreenRoutes-5hC3wQD-.js +179 -0
- package/dist/assets/SignInScreen-Bw3kDJOY.js +1 -0
- package/dist/assets/{analytics-dIF_tB7z.js → analytics-Ci62SVC6.js} +15 -15
- package/dist/assets/analyticsHelper-DvZ4fRLz.js +1 -0
- package/dist/assets/{core-BkNBJTfZ.js → core-CrJ0HRkP.js} +2 -2
- package/dist/assets/{dash.all.min-DCp0srRm.js → dash.all.min-BC3O3eK3.js} +1 -1
- package/dist/assets/{empty-BEbp_utR.js → empty-DCdjTxMk.js} +1 -1
- package/dist/assets/{index-_FLNHZ7a.js → empty-DewRN75u.js} +1 -1
- package/dist/assets/epic-ButtTfPO.js +2 -0
- package/dist/assets/{index-DfsiX1oL.js → index-BHVDlT_9.js} +1 -1
- package/dist/assets/{index-Bg7enq0w.js → index-BIzFhK6B.js} +1 -1
- package/dist/assets/index-BnSSVzJm.js +1 -0
- package/dist/assets/index-C1011MmK.js +2 -0
- package/dist/assets/index-CS2xkLsB.js +1 -0
- package/dist/assets/index-DrEiJ4Wx.js +1 -0
- package/dist/assets/index-Obh2uEoj.js +75311 -0
- package/dist/assets/{lexical--yBvDuds.js → lexical-Y1MbDrft.js} +1 -1
- package/dist/assets/{liveblocks-CkHat3gw.js → liveblocks-CH5Ytl_r.js} +1 -1
- package/dist/assets/{lottie-CiNEXYTH.js → lottie-jJKhsKLZ.js} +2 -2
- package/dist/assets/{mui-CKa4KRJ2.js → mui-DzLLS9Rs.js} +2 -2
- package/dist/assets/{react-DFgw9ha_.js → react-9Kj1B1wt.js} +2 -2
- package/dist/assets/{react-Bh7KrkxH.js → react-BLe964tg.js} +3 -3
- package/dist/assets/{react-BJmIi--Z.js → react-CNU9DWBw.js} +1 -1
- package/dist/assets/{react-DXNdEWzL.js → react-C_qk_SxL.js} +2 -2
- package/dist/assets/{react-BLv4IrTZ.js → react-CdND5srH.js} +2 -2
- package/dist/assets/{react--zdVa7jE.js → react-D1VJKwtS.js} +2 -2
- package/dist/assets/{react-BTFNn9Bg.js → react-D1lzTawy.js} +2 -2
- package/dist/assets/{react-CWTkMrjw.js → react-DRO7qhGA.js} +4 -4
- package/dist/assets/{recharts-Bm8U4EbE.js → recharts-DE-kxplH.js} +25 -25
- package/dist/assets/{sentry-D1ATZ09m.js → sentry-SNkBC2Al.js} +2 -2
- package/dist/assets/{url-BieQVYgF.js → url-C9VCVVAZ.js} +1 -1
- package/dist/assets/url-h1qG-NI4.js +1 -0
- package/dist/assets/{utils-CYPfyH0l.js → utils-CpsqBQqv.js} +1 -1
- package/dist/assets/zeni-epic-state-B7yJI5lR.js +14 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-B5qIuZya-DreI9ztK.js +0 -21
- package/dist/assets/AIPerformancePage-BHB45mP--dlHEfggg.js +0 -539
- package/dist/assets/AccountInfoPage-Cd5xYT1g-7Z-4ZVo7.js +0 -18
- package/dist/assets/AccountInfoPageContent-CJ7ycVIK-r5lMwlUU.js +0 -149
- package/dist/assets/AccountLockedInfoModal-Dox7IuAX-BheVgwP8.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-Bqty08m0-iROkMwT2.js +0 -239
- package/dist/assets/AccountRow-D1cjRJJD-BE-H4Wf8.js +0 -298
- package/dist/assets/AccountsPromoCardStack-Bs3naJHM-D3JqjCfa.js +0 -207
- package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-BdtXe-OU.js +0 -6
- package/dist/assets/AddToWalletPage-CyRfqVDB-BusuwTiS.js +0 -344
- package/dist/assets/AgingReportsPage-xBFff3BM-B3EJ2mJD.js +0 -79
- package/dist/assets/AllUserItems-BJf6WPDo-Cm756gtk.js +0 -192
- package/dist/assets/ApAgingDetailPage-CjBrPyi8-E5jF8UEr.js +0 -46
- package/dist/assets/AppBasePage-CqDm-hnV-Yjdz7-aJ.js +0 -71
- package/dist/assets/AppDrawerContent-CVVWj66i-DG2NhbZY.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-B8rzMPKx.js +0 -47
- package/dist/assets/ArAgingChart-CBsqOd-4-C09lN8GR.js +0 -24
- package/dist/assets/ArAgingDetailPage-i7JObt60-CWbqCyje.js +0 -46
- package/dist/assets/AttachmentView-CzC4skJ3-Bu4UD669.js +0 -101
- package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-Cw_3AGL_.js +0 -38
- package/dist/assets/BankAccountSection-Di4sF52j-ZCgNUGht.js +0 -79
- package/dist/assets/BankAccountWarningSection-Cled-2cR-DVb4w8SQ.js +0 -51
- package/dist/assets/BankConnectionsSettingsPage-Ccnzq7st-Di6begXg.js +0 -425
- package/dist/assets/BillDetailPage-XXOwBfO1-DQjZ5T4Z.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-DFZ0csaT-Cw2FQFD_.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-COCypDcS-PzGr2X65.js +0 -241
- package/dist/assets/BillPayPromoPage-DOE2YIqC-QS14J4gh.js +0 -84
- package/dist/assets/BillPaySetUpPage-BCJbZDsV-D07Mdr-N.js +0 -42
- package/dist/assets/BillingSettingsPage-iImtlEmO-EXL61nIT.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B11GWM_0-ByV-VNjF.js +0 -1
- package/dist/assets/BoxItem-Bxa1M4QU-nzwL598W.js +0 -53
- package/dist/assets/BusinessVerificationPage-DSuJFoW1-DaafE5oZ.js +0 -138
- package/dist/assets/CardNumberSubText-_ZZbaz_k-0NwREFmO.js +0 -21
- package/dist/assets/CashbackDetailPage-DAZXitLt-cAPq1-x_.js +0 -285
- package/dist/assets/ChargeCardDetailPage-B1VIpASk-Glkm02eC.js +0 -1467
- package/dist/assets/ChargeCardListPage-BOBepN-x-yGCwOFru.js +0 -412
- package/dist/assets/ChargeCardListTable-YznzSsJo-6gqezgiN.js +0 -711
- package/dist/assets/ChargeCardPaymentHistoryPage--jOwsMla-Cb2-K9Pq.js +0 -565
- package/dist/assets/ChargeCardPromoPage-DIfakIOK-B_qlACus.js +0 -222
- package/dist/assets/ChargeCardSetupPage-0bpVkeJs-CYImhK0W.js +0 -36
- package/dist/assets/ChargeCardStatementsPage-ChWyQlw6-D0jTdagl.js +0 -60
- package/dist/assets/CheckDepositDrawerPage-BS7hnyZn-CWAiXfSS.js +0 -206
- package/dist/assets/CollapsableReportTable-DNfFkAts-C8dmIdO0.js +0 -2982
- package/dist/assets/CompanyOfficerDetailsSection-CrOIN4IW-CNi04YQI.js +0 -331
- package/dist/assets/CompanyPassportCard-CkzYFTrp-Pimw3mP5.js +0 -42
- package/dist/assets/CompanyPassportPage-FE6yli6h-B4PxDpsu.js +0 -417
- package/dist/assets/CompleteProfile-Cb8i1XgZ-BXOZoOlD.js +0 -52
- package/dist/assets/ConfettiBurst-BZCXEGYA-Do0yS2i8.js +0 -1
- package/dist/assets/ConstrainedInnerElement-CgdnMeoA-BpHBKVR8.js +0 -5
- package/dist/assets/CreateOrEditVendorPage-CzpSgxbO-BN8HspAj.js +0 -281
- package/dist/assets/CreditCardPaymentDrawerPage-c_q0MsSO-Cr-gCtRh.js +0 -227
- package/dist/assets/CurrencySelectField-BAh7SHrG-CgfY-43B.js +0 -139
- package/dist/assets/CustomerOnboardingActivationPage-f3Aa6E5r-CCEOw9fE.js +0 -88
- package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-F5PScDkh.js +0 -1
- package/dist/assets/CustomerOnboardingDetailPageSkeleton-DYuiWn8s-DPEjcBhY.js +0 -162
- package/dist/assets/CustomerOnboardingNoStepsPage-Bh_F0-oC-ClcKQXcB.js +0 -66
- package/dist/assets/CustomerOnboardingPage-B9hSO88_-BDyRpdiM.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-CG0HKCpQ-C0roMOz5.js +0 -202
- package/dist/assets/Dashboard-BJ_oIHab-BMBptBWK.js +0 -1611
- package/dist/assets/DashboardReportPage-BemzMw2e-DuF-tyyh.js +0 -371
- package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-cLLo-Xa2.js +0 -12
- package/dist/assets/DepositAccTransactionItem-CyFi1P_L-t2UvwHYc.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-DvBRRUdZ-mvagG3Fg.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-DCDo3aHI-B8T0Sqy1.js +0 -21
- package/dist/assets/DownloadOverlay-D_lL1sPW-D5tf77PN.js +0 -439
- package/dist/assets/DrawerPage-DesxXhZk-BY9Jhte8.js +0 -118
- package/dist/assets/EditPeoplePage-QvPy_Six-B-aFxB6M.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-C0ZDkboO-CaUwb4y0.js +0 -865
- package/dist/assets/EntityDetailPage-l7nXIsyF-CUi-kmqG.js +0 -18
- package/dist/assets/EntitySummarySection-BwX0a4JL-BqwAGuNV.js +0 -151
- package/dist/assets/ExpenseAutomationOverviewPage-EdyHjbff-DCBv2K-u.js +0 -281
- package/dist/assets/ExpenseAutomationPage-DA22Qofw-CiNaHcxf.js +0 -3001
- package/dist/assets/ExpressPayPage-EMP6inpX-DZlGHAds.js +0 -168
- package/dist/assets/FeaturePreviewPage-SYJm-3aR-xFnEerKU.js +0 -11
- package/dist/assets/FollowStepsSection-BxESVqJD-DxFAH_h3.js +0 -390
- package/dist/assets/GlobalReviewListPage-D5_ACa-q-BMMI2ntm.js +0 -291
- package/dist/assets/InformationCardStack-B_qQUEYD-CQ0SbwAa.js +0 -31
- package/dist/assets/InsightsCardStack-BsQzoVzj-CjyRghi5.js +0 -79
- package/dist/assets/InsightsSection-B6CNlTNH-B1LSgGwc.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-DP6fAccq-v6tkG7JS.js +0 -57
- package/dist/assets/InternationalWireSwiftDetailsPage-VdG7bDZi-BblPxkFu.js +0 -171
- package/dist/assets/InternationalWireVerificationPage-COC6lZml-oCEJi0X3.js +0 -65
- package/dist/assets/InviteFormPage-DN02jRy5-nGjvuxdk.js +0 -312
- package/dist/assets/InvitePageListView-CP4K9tJi-DR1QifKE.js +0 -739
- package/dist/assets/InvitePeoplePage-VTM6kM1u-DP5iUCV3.js +0 -12
- package/dist/assets/InvoiceUploadSection-it-ZYl1N-D-oO7O3y.js +0 -140
- package/dist/assets/IssueChargeCardPage-CVfuvGey-EGKoaj6m.js +0 -532
- package/dist/assets/LabeledAddressValue-DDrQcHIE-CsDSYeJm.js +0 -49
- package/dist/assets/LabeledAddressValueField-BgWwd5Gw-C6Sd84JD.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-CcPO1k23-CZG4Ni3I.js +0 -16
- package/dist/assets/LabeledCountryMultiSelectField-BYYjzwUG-ClkVAIH6.js +0 -237
- package/dist/assets/LabeledCreatableSingleSelectField-CISYMojq-DIFCt9eo.js +0 -208
- package/dist/assets/LabeledDocumentField-C_bcFxdY-CtjexOgx.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-ScGGCap8-B5wH8nK9.js +0 -59
- package/dist/assets/LabeledText-C8Y7EOsX-kS2nKxle.js +0 -42
- package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-D8iTWuxp.js +0 -229
- package/dist/assets/LabeledZeniRolesDropDownField-BZtreVpj-D8mq_P_F.js +0 -297
- package/dist/assets/LinkJETransactionPage-CKq4oiX9-CzwuDv7K.js +0 -98
- package/dist/assets/LockCardPage-CZENNby7-DHuKzK_P.js +0 -623
- package/dist/assets/LowBalancePopup-1727S1ri-CLn_owQa.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-CQCLG-kg.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-C49U7WGq.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-BLRkR6HU.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-QMkZgQLG-B9vDVHgU.js +0 -31
- package/dist/assets/MagicLinkTitleSection-CARU1oLQ-BjGULf6o.js +0 -17
- package/dist/assets/MailingDetailsSection-ByOPaJ05-9VPv0fgJ.js +0 -21
- package/dist/assets/MyBankConnectionsSettingsPage-BdgIIhL1-C8HdioWO.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-CX38bDdq-Dtvvpc2s.js +0 -6
- package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-BrcNb6gY.js +0 -85
- package/dist/assets/NavBarWithPicker-CGGEvLwe-DMufk1Tl.js +0 -30
- package/dist/assets/NavigationArrow-CTNkKUtV-BeKuQdbg.js +0 -47
- package/dist/assets/NavigationDots-Dvce3gHt-BEZo75Mq.js +0 -15
- package/dist/assets/NewGlobalMerchantPage-D_f7z47T-DPDxycDd.js +0 -160
- package/dist/assets/NoDataChart-CrKeqWSr-O1hAzQpH.js +0 -26
- package/dist/assets/NoDataTable-4vPXmPYF-D5e99E2i.js +0 -8
- package/dist/assets/NotFoundPage-BLWPU1wU-BS5U-4en.js +0 -46
- package/dist/assets/NotificationSettingsPage-CDiDLX3A-BTUmGwwX.js +0 -163
- package/dist/assets/NotificationsListConfig-B5pDa4cJ-BrlsFoGd.js +0 -1
- package/dist/assets/NotificationsPage-Ccl7Dny1-CDeyLmel.js +0 -685
- package/dist/assets/OpExByVendorPage-spd-nKV4-DymWDKxZ.js +0 -100
- package/dist/assets/OverlayContainerPage-BG9y5C0t-DHbkSpdr.js +0 -11
- package/dist/assets/PandLWithForecastPage-TSoe4Z7F-DVvQDzF4.js +0 -123
- package/dist/assets/PaymentAccountSetupBillingAddressSection-9ma8SpIa-B61gEeKv.js +0 -107
- package/dist/assets/PeoplePage-b5_I0qOw-CcyzZTOx.js +0 -727
- package/dist/assets/Preview-jSjyb8Wz.js +0 -1
- package/dist/assets/ProductsCarousel-C3M0ocdF-Bt8auSak.js +0 -142
- package/dist/assets/PromoBaseCards-BOGJI2ws-D_mJTIMJ.js +0 -218
- package/dist/assets/QBOConnectionDialog-CmpnnuzP-SYvDug7J.js +0 -51
- package/dist/assets/QBOSetupSection-DjnN9dgv-65xgGpej.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D5NXjrO9-CK4k2_1U.js +0 -32
- package/dist/assets/ReimbursementApprovalRulesPage-BsCTIqUJ-kxyvDxFF.js +0 -243
- package/dist/assets/ReimbursementDetailPage-BbyxE2uL-DHKJBXjf.js +0 -314
- package/dist/assets/ReimbursementPromoPage-CyEgwqcf-DhHbMt9Y.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-RETPkEQd-7NuS22jg.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DnmYl0FM-DRTY5Qrt.js +0 -1
- package/dist/assets/ReloadCard-Bdoo0XiI-De2qYvVJ.js +0 -26
- package/dist/assets/ReportTableViewSelector-Bc1K7mU_-WcN_bkH8.js +0 -151
- package/dist/assets/ReportsPage-BOTHMLWh-CbxRi3Bl.js +0 -269
- package/dist/assets/RevenueChart-DvyZ3aO7-DJIWRApB.js +0 -280
- package/dist/assets/ReviewDetailsPage-BIMg1n2e-Y9hISS-B.js +0 -290
- package/dist/assets/ReviewOverlay-CxwoiOLC-K4xuFYJf.js +0 -152
- package/dist/assets/RoleWithToolTip-Ct3_VuDM-CutV0VSI.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-DiL5Dozk-Dsn_tV_Z.js +0 -37
- package/dist/assets/ScheduleDetailsPage-5FWpLRtd-BkiM-YWE.js +0 -37
- package/dist/assets/ScheduleSequenceTable-R3-PsXES-BzlTpl5i.js +0 -326
- package/dist/assets/ScreenRoutes-CkrPqzsb.js +0 -179
- package/dist/assets/SetUpAccountSection-CctbMmoK-BOF6_9cx.js +0 -378
- package/dist/assets/SignIn-CmgmnRm4-BCJZcyou.js +0 -491
- package/dist/assets/SignInScreen-DSAx5H2X.js +0 -1
- package/dist/assets/SpendManagementListViewPage-CFUxCqkU-CL-5c7Md.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-C-kqNTci-C7N-eI_F.js +0 -754
- package/dist/assets/SpendManagementSection-CIz4nE_w-DEEvDlQ3.js +0 -246
- package/dist/assets/StatementItem-vVtoBN2w-DNhjpRXd.js +0 -31
- package/dist/assets/StatementsPage-As5WOnMR-BGDHNVov.js +0 -58
- package/dist/assets/StatusSwitcher-Bv-ozN6U-DR2exS0w.js +0 -120
- package/dist/assets/SubTabSwitcher-D7QeM6nb-CrqFxDEj.js +0 -58
- package/dist/assets/SummaryCard-C2qoTsAY--GDNjG_3.js +0 -1
- package/dist/assets/TaskManagementPage-BJwp32Ph-DTf-Iv_K.js +0 -508
- package/dist/assets/TimeRangeSwitcher-D00bDDhP-C0DMxgEQ.js +0 -64
- package/dist/assets/TimeframeSwitcher-DA99HdHt-b8QZxwPR.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-DyggDIQj-CT6U2a1r.js +0 -53
- package/dist/assets/TopExCard-Z1WabZ8c-B1L2Pds0.js +0 -38
- package/dist/assets/TopExDetailPage-CzHG4f9E-dWSLA4Ws.js +0 -132
- package/dist/assets/TransactionActivityLogPage-CGKnjNfU-Bl38wH2t.js +0 -195
- package/dist/assets/TransactionDetailPage-1-mLOWSz-BmpQvtBx.js +0 -903
- package/dist/assets/TransactionList-BB-xoIGm-Cr5Fw4zn.js +0 -153
- package/dist/assets/TransactionListBig-C5Sf5Xh--slDI8IwT.js +0 -284
- package/dist/assets/TransactionListPage-Cj7h1Ros-rJMcmK0n.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-SsrSOk3O-SPbpEcQG.js +0 -80
- package/dist/assets/TransferDrawerPage-BvKZ7vHF-ByA-FuC8.js +0 -362
- package/dist/assets/TreasuryOverviewPage-DwvjMR4_-BtzvJmQX.js +0 -725
- package/dist/assets/TreasuryPromoPage-CtTFvSQW-CrQtFUyL.js +0 -505
- package/dist/assets/TreasuryStatementsPage-Catz8shX-By_rJK-C.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D8hzCL5o-CCKZ7rcr.js +0 -58
- package/dist/assets/TrendChart-Bnp4Pcdf-CogbW3Ev.js +0 -16
- package/dist/assets/TrendWithTransactions-3D1FvM8G-BT6LIECo.js +0 -116
- package/dist/assets/UncategorizedAccountsMappingPage-DbyY-dYB-COgBKAub.js +0 -244
- package/dist/assets/UnitIntegrationPage-CTzme1te-BGDWnIqI.js +0 -67
- package/dist/assets/UploadAdditionalDocumentOverlay-Wl4Spdpn-DBxdytXh.js +0 -38
- package/dist/assets/Vendor2FAPopup-D0zYKkIv-BWyhVU6Z.js +0 -1
- package/dist/assets/VendorACHDetailsPage-YYX9aQdw-BkRCrsJP.js +0 -1
- package/dist/assets/VendorDetailPage-Br9wIOnI-FU56y_vG.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-CaZ8t3RD.js +0 -1
- package/dist/assets/VendorFiling1099EditablePage-himC7iD3-CNVSOTkz.js +0 -175
- package/dist/assets/VendorFirstReviewPage-BbknTCBD-YVpApymJ.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-CS595Xgc-VsCdYKTp.js +0 -152
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-Cl8K_joJ.js +0 -1
- package/dist/assets/VendorsAccountsSection-CgSJu8wq-Bnudq5ZH.js +0 -68
- package/dist/assets/VerifyDevice-Dvf0JsNN-CH5zYch6.js +0 -112
- package/dist/assets/VideoPlayer-VAzOGCDL-CPK9tgJc.js +0 -78
- package/dist/assets/VideoPopup-BqvZ-XIh-CCnmTOxs.js +0 -31
- package/dist/assets/WarningsDrawerPage-DeNonoNp-pgJgLpVF.js +0 -92
- package/dist/assets/ZeniAccountDetailPage-GcwTJdB8-BXRXRlQ6.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-CdwO0Duy-DQagrsIQ.js +0 -443
- package/dist/assets/ZeniAccountNavBarPieces-BrSIfL36-7mzjBV6X.js +0 -33
- package/dist/assets/ZeniAccountPromoPage-JrcedQYB-YtGWtBwn.js +0 -184
- package/dist/assets/ZeniAccountSetupPage-TKBfbgzJ-B1EzSk8V.js +0 -36
- package/dist/assets/ZeniCopyright-DglqrTpl-Dk0MIlLg.js +0 -1
- package/dist/assets/ZeniTransferAmountSlider-BcaZZuAw-DowL9stJ.js +0 -63
- package/dist/assets/add-to-wallet-DgdBD8_G-ClJS_e0H.js +0 -1
- package/dist/assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js +0 -1
- package/dist/assets/analyticsHelper-CAYdbjhS-BBrtDo0R.js +0 -1
- package/dist/assets/analyticsHelper-CQyCjSZv.js +0 -1
- package/dist/assets/arrow-south-east-round-PEovUgvH-C2Qodq1b.js +0 -1
- package/dist/assets/auto-transfer-rule-mbafm5D3-z7CMhaGd.js +0 -1
- package/dist/assets/chartTypes-CD3vrBsI-C2xnw0_m.js +0 -1
- package/dist/assets/commonDimensions-Oz1tdAcx-CViekSs7.js +0 -1
- package/dist/assets/commonTypes-5tEXwrX4-BpOxVdsm.js +0 -1
- package/dist/assets/constants-Cjq8462k.js +0 -1
- package/dist/assets/downloadPdf-Dsuxeias-B5CmpDNO.js +0 -1
- package/dist/assets/empty-DXsQa3BK.js +0 -1
- package/dist/assets/epic-D0G0YyT9.js +0 -2
- package/dist/assets/getReferrerType-DjPOy76W-DRP5VHem.js +0 -1
- package/dist/assets/gift-box-Cmt9OgIZ-BCH7CZB4.js +0 -1
- package/dist/assets/graphic-no-data-l-DU4J8fDt-B59LiiVb.js +0 -1
- package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-Dk2SOx10.js +0 -1
- package/dist/assets/handshake-BPg58FML-3EjHIdOv.js +0 -1
- package/dist/assets/helper-Ckm10Uko-SWsdfsKK.js +0 -223
- package/dist/assets/index-AibcVs8o.js +0 -29875
- package/dist/assets/index-BM0Ejlih.js +0 -1
- package/dist/assets/index-DqeGHA9K.js +0 -39
- package/dist/assets/index-yG2R--DD.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-CCY61uLN.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-Cgyt68f3-7Y3MpMNp.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-XgUp1xUb-BXu-xYLf.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Bre8FfBF-DaPlbkW0.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-BCb0OomK.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-DijZZ4CV.js +0 -1
- package/dist/assets/page-detail-CWX5S47F-CUPaau1_.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-DRgQ-H7_.js +0 -3
- package/dist/assets/radio-default-CiSgisfh-bweL_OSo.js +0 -1
- package/dist/assets/shield-DOlUxcFf-BxvxIq2Q.js +0 -1
- package/dist/assets/toCOABalancesWithID-aLNB35t7-B5cVmT7y.js +0 -1
- package/dist/assets/toChartData-DUL6vnzJ-CXX2Xql8.js +0 -1
- package/dist/assets/types-DyvtCprH-NFPm5TaG.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-BQXsf36U.js +0 -1
- package/dist/assets/uploadAttachment-Ck4wivBR-4yLuS05P.js +0 -286
- package/dist/assets/uploadReceipts-CIgkuVpu-YZo_087y.js +0 -1
- package/dist/assets/url-Ds5jgdy8.js +0 -1
- package/dist/assets/useLongPress-GCK2COYQ-BWFeH6rN.js +0 -1
- package/dist/assets/usp-line-BBd1wKwW-Ec0FXEcE.js +0 -1
- package/dist/assets/zeni-epic-state-n9DAAepz.js +0 -14
|
@@ -1,1467 +0,0 @@
|
|
|
1
|
-
import{g as at,e as Ie,ay as Lt,a9 as Dt,hb as Sr,hU as Ti,aX as et,hc as $r,aS as tt,V as t,hg as Ai,bE as Ei,u as h,g7 as vr,aQ as qe,ac as Q,bD as Ri,c1 as ta,d as c,o as a,O as ke,jk as kr,w as _,cy as Fi,jl as Pi,fr as zi,h1 as Mi,jm as Vi,bH as Oi,bT as jr,aV as aa,x as T,b9 as ra,bM as Ir,ak as Ce,eU as Hi,bc as ia,j8 as Ni,aW as Lr,y as ft,hf as Dr,cl as Bi,L as Ct,b5 as Wi,dz as _i,cC as Ui,jn as Zi,jo as Tr,jp as dt,p as Gi,b1 as qi,jq as Yi,jr as Ji,cz as Ki,dg as Xi,hR as Qi,an as ze,c3 as eo,ax as Ut,js as Ma,jt as to,du as ao,N as Va,M as Ar,bb as ro,aE as io,j2 as mt,jd as oo,ji as no,jj as so,dE as Oa,f9 as co,a as Er,cI as Rr,jb as lo,c6 as ho,n as Fr,ju as po,aw as kt,c9 as Ha,bz as uo,dq as mo,as as go,ao as lt,ha as Co,b as fo,bI as wo,jv as Tt,fC as xo,jw as Pr,gK as zr,jx as It,iy as Mr,e2 as Vr,b$ as yo,ex as Or,je as bo,cL as So,e1 as $o,da as vo,jf as ko,jg as jo,eD as Io,co as Lo,cp as Do}from"./index-AibcVs8o.js";import{a as o,P as To}from"./sentry-D1ATZ09m.js";import{n as r,c as we,k as Hr}from"./mui-CKa4KRJ2.js";import{FB as At,bh as Ao,bf as Eo,G$ as Ro}from"./zeni-epic-state-n9DAAepz.js";import{x as Fo}from"./NavigationDots-Dvce3gHt-BEZo75Mq.js";import{A as Po,i as zo,a as Mo,l as Vo,r as Oo,t as Ho,n as No}from"./add-to-wallet-DgdBD8_G-ClJS_e0H.js";import{L as Zt}from"./lottie-CiNEXYTH.js";import{j as Bo}from"./CardNumberSubText-_ZZbaz_k-0NwREFmO.js";import{t as Wo}from"./panelSelectedMixin-Cddsb26L-DRgQ-H7_.js";import{r as Nr}from"./core-BkNBJTfZ.js";import{l as Br}from"./uploadReceipts-CIgkuVpu-YZo_087y.js";import{L as _o,z as Uo,k as Zo,P as Go}from"./LockCardPage-CZENNby7-DHuKzK_P.js";import"./liveblocks-CkHat3gw.js";import"./recharts-Bm8U4EbE.js";import"./analytics-dIF_tB7z.js";import"./lexical--yBvDuds.js";import"./utils-CYPfyH0l.js";import"./RoleWithToolTip-Ct3_VuDM-CutV0VSI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="573bda8f-0147-4334-b2b9-2547db18fad8",e._sentryDebugIdIdentifier="sentry-dbid-573bda8f-0147-4334-b2b9-2547db18fad8")}catch{}})();const Wr=ke.getLocalizedStrings().spendManagement.chargeCard,qo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:w,chargeCardDetailView:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:A,setWalletType:S,setIsAddToWalletDrawerOpen:z,isDebitCard:M})=>{const y=Dt().analytics,{isIPadScreen:Z}=Yi(),{isAndroidScreen:Y}=Ji(),J=Lt(),E=At(J.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:Z===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(j,"_blank")}}):Y===!0?t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{S("apple"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}}),t.jsx(Qt,{onClick:()=>{S("google"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}})]})})},Qt=({onClick:e})=>{const i=at();return t.jsx(Er,{prefixIcon:t.jsx(Jo,{}),label:Wr.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":Q("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=at();return t.jsx(Er,{prefixIcon:t.jsx(Ko,{}),label:Wr.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":Q("add-to-apple-wallet-button")})},Yo=r.div`
|
|
2
|
-
margin-top: ${a.sp4};
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
gap: ${a.sp5};
|
|
6
|
-
`,Jo=r(No)`
|
|
7
|
-
height: ${a.sp4};
|
|
8
|
-
width: ${a.sp5};
|
|
9
|
-
`,Ko=r(Ho)`
|
|
10
|
-
height: ${a.sp4};
|
|
11
|
-
width: ${a.sp5};
|
|
12
|
-
`,Xo=[c.brandColorSapphire,c.brandColorJade,c.graphColor01,c.graphColor08,c.graphColor12,c.graphColor15,c.graphColor16Dark,c.graphColor23Dark,c.graphColor32Dark,c.graphColor34Dark,c.brandColorOpalDark,c.brandColorRuby],Qo=ke.getLocalizedStrings().spendManagement.chargeCard,en=({isColorPaletteVisible:e,hasBorderShadow:i,leftTransitionValue:s,colorInState:m,styles:p,colorPaletteTitleStyles:w,ColorListStyles:l,coloredCircleStyles:C,closeStyles:g,tickStyles:x,toggleColorPaletteVisibility:b,handleColorClick:n})=>t.jsxs(tn,{showColorPalette:e,style:p,hasBorderShadow:i,leftTransitionValue:s,children:[t.jsxs(rn,{style:w,children:[t.jsx(on,{children:Qo.cardDetails.cardTheme}),t.jsx(nn,{style:g,"data-testid":Q("close-color-palette"),onClick:d=>{d.stopPropagation(),b(!e)}})]}),t.jsx(an,{style:l,children:Xo.map((d,f)=>t.jsx(dn,{style:C,coreColor:d,onMouseEnter:()=>n(new et(d),!1),onMouseLeave:()=>m!=null?n(new et(m),!1):null,"data-testid":Q("color-palette-item-cards",f.toString()),onClick:()=>n(new et(d),!0),children:new et(d).toString()===m?.toString()?t.jsx(sn,{style:x}):null},d))})]}),tn=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: ${c.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
|
-
`,an=r.div`
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-wrap: wrap;
|
|
28
|
-
padding: ${a.sp0} 38px ${a.sp0} 31px;
|
|
29
|
-
`,rn=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
|
-
`,on=r(Ce)`
|
|
35
|
-
color: ${c.brandColorOnyx};
|
|
36
|
-
`,nn=r(fo)`
|
|
37
|
-
width: ${a.sp3};
|
|
38
|
-
height: ${a.sp3};
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
color: ${e=>e.theme.colors.hero};
|
|
41
|
-
`,sn=r(wo)`
|
|
42
|
-
width: ${a.sp3};
|
|
43
|
-
color: ${c.neutralGrey5Light};
|
|
44
|
-
`,dn=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:cn,common:Qe,dateFormat:ln}=ke.getLocalizedStrings(),Ke=cn.chargeCard,Te={secretCardNumberWrapperWidth:280,secretCVVWrapperHeight:30,secretCVVWrapperWidth:h[7],cardNumberCopiedSectionTop:54,cvvCopiedSectionTop:34,maskedCardNumberMarginTop:new T(-2,-2,-2,h[0]),expiryCopySectionTop:34,cardNumberCopyBtnTop:21},Na={CardInfoTitleSize:new T(_.extraSmallRegular.fontSizeValue,_.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new T(18,18,18,21)},Gt=e=>t.jsxs(Ln,{style:{...e},children:[t.jsx(In,{}),t.jsx(Dn,{style:{background:c.blackColor,color:c.primaryDark,padding:`2px ${a.sp2}`,borderRadius:a.sp1},children:Qe.copyToClipBoard.copied})]}),Ba=({isSandboxEnv:e,sourceId:i,showSecretInfo:s,secretRevealed:m,vgsVaultId:p,controllerEmails:w,isChargeCardFeatureEnabled:l,productInformation:C,cashbackInformation:g,creditAccountInformation:x,debitAccountInformation:b,chargeCardCashbackDetailState:n,creditAccount:d,creditAccountRepayment:f,isDebitCard:v,depositAccountLimitFetchState:$,isCardDetailErrored:j,isCardColorUpdating:D,cardDetailsFetchState:u,isCardColorUndefined:A,cardInfoTitleStyles:S,styles:z,cvvSecStyles:M,chargeCard:y,token:Z,setSecretRevealed:Y,setIsCardDetailErrored:J,setCardDetailsFetchState:E,onFireOnClickAnalytics:G})=>{const ie=Dt().analytics,[,se]=Sr(),V=Ie(),[q,B]=o.useState(!1),[ee,te]=o.useState(!1),[le,ae]=o.useState(!1),H=Lt(),oe=At(H.loggedInUserRoleMap),[K]=kr("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),I=i==="addToWalletDrawer"?.75:V==="small"?.85:1,O=e?"sandbox":"live";o.useEffect(()=>{if(K&&y!=null&&s&&Z!=null&&!m){const k=window.VGSShow.create(p).setEnvironment(O),R=y.cardProviderID,re=k.request({name:"data-text",method:"GET",path:"/cards/"+R+"/secure-data/cvv2",headers:{Authorization:"Bearer "+Z},htmlWrapper:"text",jsonPathSelector:"data.attributes.cvv2"});E({cvv:!0,number:!0}),re.render(`#SecretCvv-${i}`,{"@font-face":{"font-family":kt["PT Mono"],"font-style":"normal","font-weight":Ha.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":kt["PT Mono"],opacity:.7,color:c.brandColorOnyx,fontSize:`${I*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${I*_.h6Regular.lineHeightValue}px`}),re.on("requestSuccess",()=>{Y(!0),J(!1),E({...u,cvv:!1})}),re.on("requestFail",()=>{J(!0),E({...u,cvv:!1});const L=document.getElementById(`SecretCvv-${i}`);for(;L?.hasChildNodes()===!0;)L.removeChild(L.children[0])}),k.copyFrom(re,{text:Qe.strings.empty},L=>{L==="success"?(te(!0),G("CVV copied"),n.fetchState==="Completed"&&(!l||d.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(v&&oe)||$==="Completed")&&ie.trackCardsCopyIconClick(w,C,"Cards Detail","Copy","copied","CVV","",g,x,b)):te(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:`${I*Te.secretCVVWrapperHeight}px`,width:`${I*Te.secretCVVWrapperWidth}px`});const ce=k.request({name:"data-text",method:"GET",path:"/cards/"+R+"/secure-data/pan",headers:{Authorization:"Bearer "+Z},htmlWrapper:"text",jsonPathSelector:"data.attributes.pan",serializers:[k.SERIALIZERS.replace("(\\d{4})(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3 $4")]});ce.render(`#SecretCardNumber-${i}`,{"@font-face":{"font-family":kt["PT Mono"],"font-style":"normal","font-weight":Ha.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":kt["PT Mono"],opacity:.7,color:c.brandColorOnyx,fontSize:`${I*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${I*_.h6Regular.lineHeightValue}px`}),ce.on("requestSuccess",()=>{Y(!0),J(!1),E({...u,number:!1})}),ce.on("requestFail",()=>{J(!0),E({...u,number:!1});const L=document.getElementById(`SecretCardNumber-${i}`);for(;L?.hasChildNodes()===!0;)L.removeChild(L.children[0])}),k.copyFrom(ce,{text:Qe.strings.empty,serializers:[k.SERIALIZERS.replace(Qe.strings.space,Qe.strings.empty)]},L=>{L==="success"?(B(!0),G("card number copied"),n.fetchState==="Completed"&&(!l||d.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(v&&oe)||$==="Completed")&&ie.trackCardsCopyIconClick(w,C,"Cards Detail","Copy","copied","Card Number","",g,x,b)):B(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:`${I*_.h6Regular.lineHeightValue}px`,width:`${I*Te.secretCardNumberWrapperWidth}px`})}},[K,y,s,Z,m]),o.useEffect(()=>{if(s===!1){const k=document.getElementById(`SecretCvv-${i}`);for(;k?.hasChildNodes()===!0;)k.removeChild(k.children[0]);const R=document.getElementById(`CvvCopyBtn-${i}`);for(;R?.hasChildNodes()===!0;)R.removeChild(R.children[0]);const re=document.getElementById(`SecretCardNumber-${i}`);for(;re?.hasChildNodes()===!0;)re.removeChild(re.children[0]);const ce=document.getElementById(`CardNumberCopyBtn-${i}`);for(;ce?.hasChildNodes()===!0;)ce.removeChild(ce.children[0])}},[i,s]),o.useEffect(()=>{q===!0&&setTimeout(()=>{B(!1)},800),ee===!0&&setTimeout(()=>{te(!1)},800),le===!0&&setTimeout(()=>{ae(!1)},800)},[q,ee,le]);const U=y!=null?Eo(y.validThru.year,y.validThru.month-1).format(ln.visual.MMSlashYYFormat):Qe.strings.empty,de=k=>{s===!0&&(u.cvv!==!0||u.number!==!0)&&(G("validity copied"),k!=null&&n.fetchState==="Completed"&&(!l||d.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(v&&oe)||$==="Completed")&&ie.trackCardsCopyIconClick(w,C,"Cards Detail","Copy","copied","Valid Thru",U,g,x,b),se(U),ae(!0))};return t.jsxs(wn,{style:z,children:[t.jsxs(xn,{children:[t.jsx(qt,{style:S,windowSize:V,children:Ke.cardDetails.cardNumber}),t.jsx(yn,{sourceId:i,scaleFactor:I,showSecretInfo:s&&(u.number===!1||u.cvv===!1),isCardDetailFetching:u.number===!0||u.cvv===!0||A||D,windowSize:V,children:`${Ke.cardDetails.cardNumberHideout}
|
|
54
|
-
${y?.accountLast4??Qe.strings.empty}`}),t.jsxs(hn,{secretRevealed:m,scaleFactor:I,showSecretInfo:s&&u.cvv===!1&&u.number===!1,sourceId:i,isCardDetailErrored:j,children:[t.jsx(pn,{sourceId:i,scaleFactor:I,secretRevealed:m,id:`SecretCardNumber-${i}`}),t.jsx(fn,{secretRevealed:m,scaleFactor:I,id:`CardNumberCopyBtn-${i}`,sourceId:i}),q===!0?t.jsx(Gt,{top:I*Te.cardNumberCopiedSectionTop}):null]})]}),t.jsxs(bn,{children:[t.jsxs(vn,{children:[t.jsx(qt,{style:S,windowSize:V,children:Ke.cardDetails.expiry}),t.jsxs(gn,{secretRevealed:s&&(u.cvv===!1||u.number===!1),children:[m&&s&&u.cvv===!1&&u.number===!1?t.jsx(jn,{sourceId:i,scaleFactor:I,windowSize:V,secretRevealed:m&&s,"data-testid":Q("expiry-date-copy"),onClick:k=>{k.stopPropagation(),de(y)},children:m&&s&&u.cvv===!1&&u.number===!1?U:Ke.cardDetails.expiryHideOut}):t.jsx(kn,{sourceId:i,windowSize:V,scaleFactor:I,isCardDetailFetching:u.cvv===!0||u.number===!0||A||D,children:Ke.cardDetails.expiryHideOut}),le===!0?t.jsx(Gt,{top:I*Te.expiryCopySectionTop,width:"auto"}):null]})]}),t.jsxs(Sn,{style:M,children:[t.jsx(qt,{style:S,windowSize:V,children:Ke.cardDetails.cvv}),t.jsx($n,{sourceId:i,scaleFactor:I,showSecretInfo:s&&u.cvv===!1&&u.number===!1,isCardDetailFetching:u.number===!0||u.cvv===!0||A||D,windowSize:V,children:Ke.cardDetails.cvvHideOut}),t.jsxs(un,{secretRevealed:m,sourceId:i,showSecretInfo:s&&u.cvv===!1&&u.number===!1,isCardDetailErrored:j,children:[t.jsx(mn,{scaleFactor:I,secretRevealed:m,sourceId:i,id:`SecretCvv-${i}`}),t.jsx(Cn,{windowSize:V,scaleFactor:I,secretRevealed:m,id:`CvvCopyBtn-${i}`,sourceId:i}),ee===!0?t.jsx(Gt,{top:I*Te.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},hn=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:h[0]}px;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
&:hover {
|
|
60
|
-
background: ${e=>e.isCardDetailErrored?"transparent":c.neutralGrey5Light};
|
|
61
|
-
border-radius: ${a.sp1};
|
|
62
|
-
}
|
|
63
|
-
`,pn=r.div`
|
|
64
|
-
min-height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:h[0]}px;
|
|
65
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:h[0]}px;
|
|
66
|
-
width: ${e=>e.secretRevealed?"100%":a.sp0};
|
|
67
|
-
overflow: hidden;
|
|
68
|
-
position: relative;
|
|
69
|
-
`,un=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:h[0]}px;
|
|
74
|
-
position: relative;
|
|
75
|
-
&:hover {
|
|
76
|
-
background: ${e=>e.isCardDetailErrored?"transparent":c.neutralGrey5Light};
|
|
77
|
-
border-radius: ${a.sp1};
|
|
78
|
-
}
|
|
79
|
-
`,mn=r.div`
|
|
80
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:h[0]}px;
|
|
81
|
-
width: ${e=>e.secretRevealed?Te.secretCVVWrapperWidth*e.scaleFactor:a.sp0};
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
`,gn=r.div`
|
|
84
|
-
position: relative;
|
|
85
|
-
padding: ${a.sp0} ${a.sp1};
|
|
86
|
-
&:hover {
|
|
87
|
-
background: ${e=>e.secretRevealed?c.neutralGrey5Light:"transparent"};
|
|
88
|
-
border-radius: ${a.sp1};
|
|
89
|
-
}
|
|
90
|
-
`,Cn=r.div`
|
|
91
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:h[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
|
-
`,fn=r.div`
|
|
99
|
-
height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:h[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
|
-
`,wn=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
|
-
`,xn=r.div`
|
|
113
|
-
position: relative;
|
|
114
|
-
width: max-content;
|
|
115
|
-
`,qt=r(Ce)`
|
|
116
|
-
padding-left: ${a.sp1};
|
|
117
|
-
color: ${c.brandColorPearl};
|
|
118
|
-
position: relative;
|
|
119
|
-
font-size: ${e=>Na.CardInfoTitleSize.valuePx(e.windowSize)};
|
|
120
|
-
line-height: ${e=>Na.CardInfoTitleLineHeight.valuePx(e.windowSize)};
|
|
121
|
-
`,yn=r(Tt)`
|
|
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*_.chargeCardNumberText.fontSizeValue}px;
|
|
129
|
-
line-height: ${e=>e.scaleFactor*_.chargeCardNumberText.lineHeightValue}px;
|
|
130
|
-
-webkit-font-smoothing: initial;
|
|
131
|
-
-moz-osx-font-smoothing: initial;
|
|
132
|
-
word-wrap: "break-word";
|
|
133
|
-
`,bn=r.div`
|
|
134
|
-
position: relative;
|
|
135
|
-
display: flex;
|
|
136
|
-
flex-direction: row;
|
|
137
|
-
justify-content: flex-start;
|
|
138
|
-
gap: ${a.sp4};
|
|
139
|
-
`,Sn=r.div`
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-direction: column;
|
|
142
|
-
margin-right: ${a.sp5};
|
|
143
|
-
`,$n=r(Tt)`
|
|
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*_.chargeCardNumberText.fontSizeValue}px;
|
|
149
|
-
line-height: ${e=>e.scaleFactor*_.chargeCardNumberText.lineHeightValue}px;
|
|
150
|
-
-webkit-font-smoothing: initial;
|
|
151
|
-
-moz-osx-font-smoothing: initial;
|
|
152
|
-
word-wrap: "break-word";
|
|
153
|
-
`,vn=r.div`
|
|
154
|
-
display: flex;
|
|
155
|
-
flex-direction: column;
|
|
156
|
-
`,kn=r(Tt)`
|
|
157
|
-
color: ${e=>e.isCardDetailFetching?e.theme.colors.grey1:e.theme.colors.brandColorOnyx};
|
|
158
|
-
opacity: 0.7;
|
|
159
|
-
font-size: ${e=>e.scaleFactor*_.chargeCardNumberText.fontSizeValue}px;
|
|
160
|
-
line-height: ${e=>e.scaleFactor*_.chargeCardNumberText.lineHeightValue}px;
|
|
161
|
-
-webkit-font-smoothing: initial;
|
|
162
|
-
-moz-osx-font-smoothing: initial;
|
|
163
|
-
word-wrap: "break-word";
|
|
164
|
-
`,jn=r(Tt)`
|
|
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*_.chargeCardNumberText.fontSizeValue}px;
|
|
171
|
-
line-height: ${e=>e.scaleFactor*_.chargeCardNumberText.lineHeightValue}px;
|
|
172
|
-
-webkit-font-smoothing: initial;
|
|
173
|
-
-moz-osx-font-smoothing: initial;
|
|
174
|
-
word-wrap: "break-word";
|
|
175
|
-
`,In=r(ft)`
|
|
176
|
-
height: ${a.sp3};
|
|
177
|
-
width: ${a.sp3};
|
|
178
|
-
color: ${c.success};
|
|
179
|
-
`,Ln=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
|
-
`,Dn=r(Ce)`
|
|
188
|
-
color: ${c.primaryDark};
|
|
189
|
-
padding: 2px ${a.sp2};
|
|
190
|
-
background-color: ${c.blackColor};
|
|
191
|
-
`,{common:Tn,spendManagement:{chargeCard:{cardDetails:ve}}}=ke.getLocalizedStrings(),ye={chargeCardWidth:384,chargeCardHeight:240,cardLoadingShineWidth:200,cardLoadingShineHeight:240,zeniLogoWidth:h[6],zeniLogoHeight:h[6],visaLogoWidth:h[6],visaLogoHeight:13,cardTintIconWidth:277,cardTintIconHeight:242,colorPaletteLeftTransitionValue:-350,rightSectionWidth:384,rightSectionHeight:240,cardContainerContentGap:new T(h[4],h[4],h[4],h[3])},_r=({isChargeCardAdmin:e,chargeCardDetailView:i,productInformation:s,cashbackInformation:m,creditAccountInformation:p,debitAccountInformation:w,secretRevealed:l,isOwnCard:C,vgsVaultId:g,showSecretInfo:x,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:f,isChargeCardSetupEnabled:v,chargeCardCashbackDetailState:$,creditAccount:j,creditAccountRepayment:D,isShowingInDrawer:u,isSandboxEnv:A,isCardDetailErrored:S,signedInUserToken:z,selectedColor:M,cardDetailsFetchState:y,setCardDetailsFetchState:Z,setIsCardDetailErrored:Y,setShowSecretInfo:J,setSecretRevealed:E,setShowPhoneNumberForOtp:G,isCardDetailFetching:ie,handleColorCodeClick:se,onFireOnClickAnalytics:V,onUnlockChargeCard:q})=>{const[B,ee]=o.useState(!1),[te,le]=o.useState(!1),[ae,H]=o.useState(!1),[oe,K]=o.useState(!1),[I,O]=o.useState(!1),[U,de]=o.useState(!1),[k,R]=o.useState(()=>{const xe=i.chargeCard?.status.code;return xe==="locked"||xe==="closed"||xe==="closed_by_customer"}),[re,ce]=o.useState(!1),[L,je]=o.useState(!1),fe=o.useRef(void 0),Ee=i.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:Re}=$r(),X=Ie(),N=u?.75:X==="small"?.85:1,W=i.lockChargeCardsFetchState.fetchState,Me=tt(W),ne=i.unlockChargeCardsFetchState.fetchState,Ve=tt(ne),Ye=i.closeChargeCardsFetchState.fetchState,rt=tt(Ye),pe=i.chargeCard?.status.code==="locked",F=i.chargeCard?.status.code==="closed"||i.chargeCard?.status.code==="closed_by_customer",[ue]=Ut("UnlockCard"),[he]=Ut("LockCard"),[Ne]=Ut("CloseCard");o.useEffect(()=>{if(!(te&&pe)){H(!1);return}const xe=setTimeout(()=>{H(!0)},400);return()=>clearTimeout(xe)},[te,pe]),o.useEffect(()=>{(pe||F)&&!k&&(R(!0),ce(!1))},[pe,F]),o.useEffect(()=>{Me==="In-Progress"&&W==="Completed"&&(fe.current&&clearTimeout(fe.current),K(!1),R(!1),ce(!0),setTimeout(()=>{K(!0)},0),fe.current=setTimeout(()=>{K(!1),R(!0),le(!1)},1e3))},[W,Me]),o.useEffect(()=>{Ve==="In-Progress"&&ne==="Completed"&&(fe.current&&clearTimeout(fe.current),je(!0),O(!1),setTimeout(()=>{O(!0)},0),fe.current=setTimeout(()=>{O(!1),R(!1),je(!1)},1e3))},[ne,Ve]),o.useEffect(()=>{rt==="In-Progress"&&Ye==="Completed"&&(fe.current&&clearTimeout(fe.current),de(!1),R(!1),ce(!0),setTimeout(()=>{de(!0)},0),fe.current=setTimeout(()=>{de(!1),R(!0)},1e3))},[Ye,rt]);const Oe=Re?ve.tapCardCopyText:ve.scanNowAndAddToWallet,ge=Re?ve.tapCardCopyText:t.jsxs(Fn,{children:[t.jsx(is,{}),ve.clickTheCardToFetchDetailsText]}),Je=i.chargeCard?.isLockedByAdmin??!1,ht=X==="small"?ve.tapCardCopyText:ve.clickTheCardToCopyDetailsText,pt=X==="small"?ve.tapCardCopyText:ve.clickTheCardToFetchDetailsText,it=u?Oe:ht,xt=u?ge:pt,Fe=ie(y)||i.updateFetchState.fetchState==="In-Progress"||i.unlockChargeCardsFetchState.fetchState==="In-Progress",ot=(y.cvv!==!0||y.number!==!0)&&C,Be=!!i.chargeCard?.type.code.includes("debit");return t.jsxs(Hn,{windowSize:X,scaleFactor:N,children:[t.jsxs(Bn,{isCardLocked:pe,isChargeCardAdmin:e,isLockedByAdmin:Je,unlockFetchState:i.unlockChargeCardsFetchState.fetchState,onClick:xe=>{xe.stopPropagation(),pe&&ne!=="In-Progress"&&(e||!Je)&&q(e)},onMouseEnter:()=>{(e||!Je)&&ne!=="In-Progress"&&le(!0)},onMouseLeave:()=>{(e||!Je)&&ne!=="In-Progress"&&le(!1)},children:[l&&u?t.jsxs(t.Fragment,{children:[t.jsx(es,{}),t.jsx(ts,{}),t.jsx(as,{}),t.jsx(rs,{})]}):null,t.jsx(Wn,{play:k,animate:re,fadeOut:L,unlockInProgress:ne==="In-Progress"||L||Ve==="In-Progress"&&ne==="Completed"}),I&&ue!=null?t.jsx(Zt,{style:{width:a.sp9,height:a.sp9,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,backgroundColor:c.lockCardOverlayBackground,borderRadius:a.sp11},animationData:ue,loop:!1,play:I,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):U&&Ne!=null?t.jsx(Zt,{style:{width:56,height:56,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:Ne,loop:!1,play:U,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):k?F?t.jsx(Jn,{}):ne==="In-Progress"?t.jsx(Zn,{}):L||Ve==="In-Progress"&&ne==="Completed"?null:t.jsx(Yn,{isHovered:te&&pe,children:t.jsxs(qn,{isHovered:te&&pe,children:[t.jsx(Ur,{}),t.jsx(Gn,{isVisible:te&&pe,shouldEnterLayout:ae,children:ve.moreOptions.unlock})]})}):oe&&he!=null?t.jsx(Zt,{style:{width:72,height:72,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:he,loop:!1,play:oe,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,Ee.includes("virtual")?t.jsxs(_n,{isShowingInDrawer:u,isOwnCard:C,scaleFactor:N,bgColor:M?.toString(),showColorPalette:B,isDebitCard:Be,"data-testid":Q("virtual-charge-card-detail"),onClick:()=>{B===!1&&C===!0&&ie(y)===!1&&ne!=="In-Progress"&&pe===!1&&Ma({signedInUserToken:z,showSecretInfo:x,setShowPhoneNumberPopup:G,onFireOnClickAnalytics:V,setShowSecretInfo:J})},enableClick:ot&&!pe&&!F||pe&&ne!=="In-Progress",cardDetailsFetchState:Fe||i.chargeCard?.cardColorCode===void 0,children:[t.jsx(_a,{scaleFactor:N,shouldAppear:Fe||i.chargeCard?.cardColorCode===void 0}),t.jsx(en,{leftTransitionValue:N*ye.colorPaletteLeftTransitionValue,hasBorderShadow:!1,tickStyles:{width:"12px",height:"12px"},colorInState:i.chargeCard?.cardColorCode!=null?new et(i.chargeCard.cardColorCode):void 0,styles:{height:"100%",maxWidth:"78%",top:u?"unset":a.sp0,left:B?a.sp0:`${N*ye.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:B,toggleColorPaletteVisibility:xe=>{ee(xe)},handleColorClick:(xe,yt)=>{se(xe,yt),yt&&ee(!1)}}),t.jsx(Qn,{scaleFactor:N}),t.jsx(Ba,{productInformation:s,cashbackInformation:m,creditAccountInformation:p,debitAccountInformation:w,secretRevealed:l,setSecretRevealed:E,onFireOnClickAnalytics:V,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:A,cardDetailsFetchState:y,setCardDetailsFetchState:Z,isCardDetailErrored:S,setIsCardDetailErrored:Y,chargeCard:i.chargeCard,vgsVaultId:g,showSecretInfo:x,creditAccountRepayment:D,token:z?.token,isDebitCard:Be,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:f,isChargeCardSetupEnabled:v,creditAccount:j,chargeCardCashbackDetailState:$,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:u?"addToWalletDrawer":"cardDetail"}),t.jsxs(Ua,{children:[t.jsxs(Kn,{children:[t.jsx(Za,{scaleFactor:N}),t.jsx(On,{onClick:xe=>{xe.stopPropagation(),C&&ee(!B)},"data-testid":Q("card-color-selector"),children:C?t.jsx(ta,{enterDelay:600,title:ve.cardColours,placement:"left",children:t.jsx(Wa,{isShowingInDrawer:u})}):t.jsx(Wa,{isShowingInDrawer:u})})]}),t.jsx(Pn,{scaleFactor:N})]})]}):t.jsxs(os,{scaleFactor:N,enableClick:ot&&!pe&&!F||pe&&ne!=="In-Progress",isOwnCard:C,isShowingInDrawer:u,onClick:()=>{C===!0&&pe===!1&&ne!=="In-Progress"&&ie(y)===!1&&Ma({signedInUserToken:z,showSecretInfo:x,setShowPhoneNumberPopup:G,onFireOnClickAnalytics:V,setShowSecretInfo:J})},"data-testid":Q("physical-charge-card-detail"),children:[t.jsx(_a,{scaleFactor:N,shouldAppear:Fe}),t.jsxs(ns,{flipCard:l,children:[t.jsx(ss,{children:t.jsx(Tr,{scaleFactor:N,isClickable:ot,isLoading:Fe,isDebitCard:Be})}),x?t.jsxs(ds,{isDebitCard:Be,children:[t.jsx(Ba,{productInformation:s,cashbackInformation:m,creditAccountInformation:p,debitAccountInformation:w,secretRevealed:l,setSecretRevealed:E,onFireOnClickAnalytics:V,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:A,cardDetailsFetchState:y,setCardDetailsFetchState:Z,isCardDetailErrored:S,setIsCardDetailErrored:Y,chargeCard:i.chargeCard,vgsVaultId:g,showSecretInfo:x,token:z?.token,isDebitCard:Be,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:f,isChargeCardSetupEnabled:v,creditAccount:i.creditAccount,creditAccountRepayment:D,chargeCardCashbackDetailState:$,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:u?"addToWalletDrawer":"cardDetail"}),t.jsx(Ua,{children:t.jsx(Xn,{children:t.jsx(Za,{scaleFactor:N})})})]}):null]})]})]}),F?t.jsx(An,{children:ve.cardClosedMessage}):Je&&!e?t.jsx(En,{children:ve.cardLockedByAdminMessage}):pe?t.jsx(Yt,{children:ve.cardLockedMessage}):C===!0&&!Fe?y.cvv===!0&&y.number===!0?t.jsx(Un,{children:Tn.loading}):S?t.jsx(Rn,{}):t.jsx(Yt,{children:l?it:xt}):Fe?t.jsx(Yt,{children:ve.loading}):null]})},An=r(Ce)`
|
|
192
|
-
color: ${c.important};
|
|
193
|
-
`,En=r(Ce)`
|
|
194
|
-
color: ${e=>e.theme.colors.primary};
|
|
195
|
-
`,Rn=()=>t.jsxs(Vn,{children:[t.jsx(zn,{}),t.jsx(Mn,{children:ve.failedToFetchCardWebText})]}),Fn=r.div`
|
|
196
|
-
display: flex;
|
|
197
|
-
align-items: center;
|
|
198
|
-
gap: ${a.sp2};
|
|
199
|
-
`,Pn=r(mo)`
|
|
200
|
-
width: ${e=>e.scaleFactor*ye.visaLogoWidth}px;
|
|
201
|
-
height: ${e=>e.scaleFactor*ye.visaLogoHeight}px;
|
|
202
|
-
`,zn=r(xo)`
|
|
203
|
-
width: ${a.sp3};
|
|
204
|
-
height: ${a.sp3};
|
|
205
|
-
color: ${c.alert};
|
|
206
|
-
`,Mn=r(Ce)`
|
|
207
|
-
color: ${c.alert};
|
|
208
|
-
`,Vn=r.div`
|
|
209
|
-
display: flex;
|
|
210
|
-
align-items: center;
|
|
211
|
-
gap: ${a.sp1};
|
|
212
|
-
`,On=r.div`
|
|
213
|
-
border-radius: 50%;
|
|
214
|
-
display: flex;
|
|
215
|
-
justify-content: center;
|
|
216
|
-
align-items: center;
|
|
217
|
-
`,Wa=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 ${c.backgroundThemeLight};
|
|
222
|
-
border-radius: 50%;
|
|
223
|
-
`,Hn=r.div`
|
|
224
|
-
min-height: ${e=>`calc(${e.scaleFactor*ye.rightSectionHeight}px + ${a.sp2})`};
|
|
225
|
-
min-width: ${e=>`calc(${e.scaleFactor*ye.rightSectionWidth}px + ${a.sp2})`};
|
|
226
|
-
display: flex;
|
|
227
|
-
justify-content: center;
|
|
228
|
-
align-items: center;
|
|
229
|
-
flex-direction: column;
|
|
230
|
-
gap: ${e=>ye.cardContainerContentGap.valuePx(e.windowSize)};
|
|
231
|
-
`,Yt=r(Ce)`
|
|
232
|
-
color: ${e=>e.theme.colors.primary};
|
|
233
|
-
`,Nn=Hr`
|
|
234
|
-
0% {
|
|
235
|
-
transform: translateX(-100%);
|
|
236
|
-
}
|
|
237
|
-
100% {
|
|
238
|
-
transform: translateX(180%);
|
|
239
|
-
}
|
|
240
|
-
`,Bn=r.div`
|
|
241
|
-
position: relative;
|
|
242
|
-
overflow: hidden;
|
|
243
|
-
border-radius: ${a.sp2};
|
|
244
|
-
cursor: ${e=>e.isCardLocked&&e.unlockFetchState!=="In-Progress"&&(e.isChargeCardAdmin||!e.isLockedByAdmin)?"pointer":"default"};
|
|
245
|
-
`,Wn=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":c.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
|
-
`,_a=r.div`
|
|
263
|
-
z-index: 1;
|
|
264
|
-
display: ${e=>e.shouldAppear?"block":"none"};
|
|
265
|
-
content: "";
|
|
266
|
-
width: ${e=>e.scaleFactor*ye.cardLoadingShineWidth}px;
|
|
267
|
-
height: ${e=>e.scaleFactor*ye.cardLoadingShineHeight}px;
|
|
268
|
-
position: absolute;
|
|
269
|
-
transform: translateX(-180%);
|
|
270
|
-
animation: ${Nn} 1.5s infinite;
|
|
271
|
-
background: ${we`linear-gradient(to right, transparent 0%, ${c.backgroundThemeLight} 50%, transparent 100%)`};
|
|
272
|
-
`,Ua=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
|
-
`,_n=r.div`
|
|
280
|
-
background: ${e=>e.cardDetailsFetchState?c.chargeCardFaded:e.bgColor??(e.isDebitCard?e.theme.colors.graphColor15:e.theme.colors.brandColorJade)};
|
|
281
|
-
border-radius: ${a.sp2};
|
|
282
|
-
width: ${e=>e.scaleFactor*ye.chargeCardWidth}px;
|
|
283
|
-
height: ${e=>e.scaleFactor*ye.chargeCardHeight}px;
|
|
284
|
-
background-image: url(https://storage.googleapis.com/zeni-apis.appspot.com/images/PlasticCardPatternSmall.svg);
|
|
285
|
-
background-repeat: no-repeat;
|
|
286
|
-
background-position-y: bottom;
|
|
287
|
-
cursor: ${e=>e.enableClick?"pointer":"not-allowed"};
|
|
288
|
-
display: flex;
|
|
289
|
-
flex-direction: row;
|
|
290
|
-
position: relative;
|
|
291
|
-
overflow: hidden;
|
|
292
|
-
justify-content: space-between;
|
|
293
|
-
|
|
294
|
-
${e=>e.showColorPalette&&`box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1} ${e.theme.colors.dropShadowNormal};
|
|
295
|
-
`}
|
|
296
|
-
|
|
297
|
-
&:hover {
|
|
298
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer?we`
|
|
299
|
-
box-shadow: 1px 3px ${a.sp4} 2px
|
|
300
|
-
${e.theme.colors.chargeCardBackgroundShadow};
|
|
301
|
-
transform: scale(1.003);
|
|
302
|
-
outline: ${a.sp1} solid ${c.neutralGrey5Light};
|
|
303
|
-
`:null};
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
&:hover:before {
|
|
307
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer?we`
|
|
308
|
-
box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1}
|
|
309
|
-
${e.theme.colors.dropShadowNormal};
|
|
310
|
-
content: "";
|
|
311
|
-
position: absolute;
|
|
312
|
-
inset: 0;
|
|
313
|
-
border-radius: 7px;
|
|
314
|
-
padding: ${a.sp1};
|
|
315
|
-
-webkit-mask-composite: xor;
|
|
316
|
-
mask-composite: exclude;
|
|
317
|
-
pointer-events: none;
|
|
318
|
-
`:null};
|
|
319
|
-
}
|
|
320
|
-
`,Un=r(Ce)`
|
|
321
|
-
color: ${e=>e.theme.colors.primary};
|
|
322
|
-
text-transform: capitalize;
|
|
323
|
-
`,Za=r(uo)`
|
|
324
|
-
height: ${e=>e.scaleFactor*ye.zeniLogoHeight}px;
|
|
325
|
-
width: ${e=>e.scaleFactor*ye.zeniLogoWidth}px;
|
|
326
|
-
color: ${c.neutralGrey5Light};
|
|
327
|
-
`,Ur=r(ho)`
|
|
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: ${c.neutralGrey5Light};
|
|
334
|
-
`,Zn=r(Ur)`
|
|
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: ${c.lockCardOverlayBackground};
|
|
343
|
-
`,Gn=r(Fr)`
|
|
344
|
-
color: ${c.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
|
-
`,qn=r.div`
|
|
365
|
-
display: flex;
|
|
366
|
-
align-items: center;
|
|
367
|
-
gap: 0;
|
|
368
|
-
position: relative;
|
|
369
|
-
`,Yn=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?c.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
|
-
`,Jn=r(lo)`
|
|
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: ${c.important};
|
|
393
|
-
background: ${c.importantLight};
|
|
394
|
-
padding: 12px;
|
|
395
|
-
border-radius: 50%;
|
|
396
|
-
`,Kn=r.div`
|
|
397
|
-
display: flex;
|
|
398
|
-
flex-direction: column;
|
|
399
|
-
gap: 35px;
|
|
400
|
-
`,Xn=r.div`
|
|
401
|
-
display: flex;
|
|
402
|
-
flex-direction: column;
|
|
403
|
-
gap: ${a.sp4};
|
|
404
|
-
`,Qn=r(po)`
|
|
405
|
-
position: absolute;
|
|
406
|
-
width: ${e=>e.scaleFactor*ye.cardTintIconWidth}px;
|
|
407
|
-
height: ${e=>e.scaleFactor*ye.cardTintIconHeight}px;
|
|
408
|
-
top: -1px;
|
|
409
|
-
`,es=r(zo)`
|
|
410
|
-
height: 36px;
|
|
411
|
-
width: 36px;
|
|
412
|
-
position: absolute;
|
|
413
|
-
right: -${a.sp3};
|
|
414
|
-
top: -${a.sp3};
|
|
415
|
-
`,ts=r(Mo)`
|
|
416
|
-
height: 36px;
|
|
417
|
-
width: 36px;
|
|
418
|
-
position: absolute;
|
|
419
|
-
left: -${a.sp3};
|
|
420
|
-
top: -${a.sp3};
|
|
421
|
-
`,as=r(Vo)`
|
|
422
|
-
height: 36px;
|
|
423
|
-
width: 36px;
|
|
424
|
-
position: absolute;
|
|
425
|
-
right: -${a.sp3};
|
|
426
|
-
bottom: -${a.sp3};
|
|
427
|
-
`,rs=r(Oo)`
|
|
428
|
-
height: 36px;
|
|
429
|
-
width: 36px;
|
|
430
|
-
position: absolute;
|
|
431
|
-
left: -${a.sp3};
|
|
432
|
-
bottom: -${a.sp3};
|
|
433
|
-
`,is=r(Rr)`
|
|
434
|
-
color: ${e=>e.theme.colors.hero};
|
|
435
|
-
width: ${a.sp3};
|
|
436
|
-
height: ${a.sp3};
|
|
437
|
-
`,os=r.div`
|
|
438
|
-
cursor: ${e=>e.enableClick?"pointer":"not-allowed"};
|
|
439
|
-
width: ${e=>e.scaleFactor*ye.chargeCardWidth}px;
|
|
440
|
-
height: ${e=>e.scaleFactor*ye.chargeCardHeight}px;
|
|
441
|
-
overflow: hidden;
|
|
442
|
-
position: relative;
|
|
443
|
-
border-radius: ${a.sp2};
|
|
444
|
-
|
|
445
|
-
&:hover {
|
|
446
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer&&e.enableClick?we`
|
|
447
|
-
box-shadow: 1px 3px ${a.sp4} 2px
|
|
448
|
-
${e.theme.colors.chargeCardBackgroundShadow};
|
|
449
|
-
transform: scale(1.003);
|
|
450
|
-
outline: ${a.sp1} solid ${c.neutralGrey5Light};
|
|
451
|
-
`:null};
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
&:hover:before {
|
|
455
|
-
${e=>e.isOwnCard&&!e.isShowingInDrawer&&e.enableClick?we`
|
|
456
|
-
box-shadow: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp1}
|
|
457
|
-
${e.theme.colors.dropShadowNormal};
|
|
458
|
-
content: "";
|
|
459
|
-
position: absolute;
|
|
460
|
-
inset: 0;
|
|
461
|
-
border-radius: 7px;
|
|
462
|
-
padding: ${a.sp1};
|
|
463
|
-
-webkit-mask-composite: xor;
|
|
464
|
-
mask-composite: exclude;
|
|
465
|
-
pointer-events: none;
|
|
466
|
-
`:null};
|
|
467
|
-
}
|
|
468
|
-
`,ns=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
|
-
`,ss=r.div`
|
|
476
|
-
position: absolute;
|
|
477
|
-
width: 100%;
|
|
478
|
-
height: 100%;
|
|
479
|
-
-webkit-backface-visibility: hidden; /* Safari */
|
|
480
|
-
backface-visibility: hidden;
|
|
481
|
-
`,ds=r.div`
|
|
482
|
-
position: absolute;
|
|
483
|
-
background: ${e=>e.isDebitCard?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJade};
|
|
484
|
-
width: inherit;
|
|
485
|
-
height: inherit;
|
|
486
|
-
border-radius: 6px;
|
|
487
|
-
display: flex;
|
|
488
|
-
transition-timing-function: ease-in-out;
|
|
489
|
-
-webkit-backface-visibility: hidden;
|
|
490
|
-
backface-visibility: hidden;
|
|
491
|
-
background-image: url("https://storage.googleapis.com/zeni-apis.appspot.com/images/plastic-card-pattern-right-small.svg");
|
|
492
|
-
border-radius: ${a.sp2};
|
|
493
|
-
display: flex;
|
|
494
|
-
justify-content: center;
|
|
495
|
-
align-items: flex-start;
|
|
496
|
-
background-repeat: no-repeat;
|
|
497
|
-
background-position-x: right;
|
|
498
|
-
background-position-y: bottom;
|
|
499
|
-
transform: rotateY(180deg);
|
|
500
|
-
`,$e={contentContainerPadding:new T(h[3],h[4],h[8],h[8]),rightSectionWidth:new T(343,343,343,384),rightSectionHeight:new T(214,214,214,240),cardContainerContentGap:new T(h[2],h[2],h[2],h[3]),remainingAmountContainerGap:new T(h[1],h[1]),leftRightSectionGap:new T(h[0],54,54,57),cardBalanceSectionMarginBottom:new T(h[4],h[4]),barRadius:new T(2,h[2]),topSectionPaddingBottom:new T(h[4],19),rightSectionGap:new T(h[4],h[3]),addressSectionHeight:new T(109,74),addressSectionGap:new T(h[2],h[4]),navigationMarginBottom:new T(h[4],h[0]),addressValueGap:new T(h[0],h[1]),ownerWebMinWidth:new T(110,187)},oa={remainingAmount:new Va("largeRegular","largeMedium"),spentAmount:new Va("h5Regular","h5Regular")},{common:Ze,dateFormat:gt,spendManagement:cs}=ke.getLocalizedStrings(),Ge=cs.chargeCard,ls=({chargeCardDetailView:e,spent:i,controllerEmails:s,chargeCardCashbackDetailState:m,isChargeCardFeatureEnabled:p,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:l,isChargeCardSetupEnabled:C,creditAccount:g,creditAccountRepayment:x,productInformation:b,cashbackInformation:n,creditAccountInformation:d,debitAccountInformation:f,cardIssuedByRoles:v,cardIssuedByDepartmentName:$,cardHolderRoles:j,cardHolderDepartmentName:D,classListFetchState:u,cardOwnerName:A,secretRevealed:S,appleWalletLink:z,googleWalletLink:M,isCardNotPending:y,isOwnerNameCopied:Z,isAddressCopied:Y,addressToShow:J,isOwnCard:E,vgsVaultId:G,showSecretInfo:ie,isSandboxEnv:se,isCardDetailErrored:V,signedInUserToken:q,selectedColor:B,showUpdateSpendLimitAction:ee,setShowPhoneNumberPopup:te,setShowChangeSpendLimitPopup:le,cardDetailsFetchState:ae,setCardDetailsFetchState:H,setIsCardDetailErrored:oe,setShowSecretInfo:K,setSecretRevealed:I,isCardDetailFetching:O,handleColorCodeClick:U,onFireOnClickAnalytics:de,onOwnerNameCopyClick:k,onAddressCopyClick:R,onUnlockChargeCard:re,isDebitCard:ce})=>{const L=Ie(),je=Dt().analytics,fe=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate!=null?e.chargeCardConfig.rePaymentInfo.cardLimitResetDate.format(gt.visual.MMMDFormat):Ao().startOf("month").add(1,"month").format(gt.visual.MMMDFormat),Ee=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:Re}=Zi(),X=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),N=Lt(),W=At(N?.loggedInUserRoleMap);return t.jsxs(js,{windowSize:L,children:[t.jsxs(ks,{windowSize:L,children:[t.jsxs(Is,{windowSize:L,children:[t.jsx(gs,{children:Ze.texts.spent}),t.jsx(Ja,{children:t.jsx(Ls,{windowSize:L,children:qe("0,0.[00]",i)})}),t.jsx(zs,{windowSize:L,children:t.jsx(Vs,{style:{width:`${Ee}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(Ja,{children:[t.jsxs(Ms,{children:[t.jsxs(us,{windowSize:L,children:[t.jsx(Ka,{windowSize:L,children:qe("0,0.[00]",e.chargeCard.available)}),t.jsx(Xa,{windowSize:L,children:Ze.texts.remaining})]}),ee?t.jsxs(Ts,{windowSize:L,children:[t.jsx(As,{children:Ge.updateSpendLimitPopup.unlockSpending}),t.jsx(Es,{onClick:()=>{ps({chargeCardDetailView:e,classListFetchState:u,isChargeCardFeatureEnabled:p,creditAccount:g,creditAccountRepayment:x,isDebitCard:ce,productInformation:b,creditAccountInformation:d,debitAccountInformation:f,controllerEmails:s,cardIssuedByRoles:v,cardIssuedByDepartmentName:$,cardHolderRoles:j,cardHolderDepartmentName:D,analytics:je}),le(!0)},"data-testid":Q("update-spend-limit-button"),children:Ge.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(Ds,{windowSize:L,children:[t.jsxs(Cs,{children:[t.jsx(Ka,{windowSize:L,children:qe("0,0.[00]",e.chargeCard.limit)}),t.jsx(Xa,{windowSize:L,children:Ge.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs(Rs,{children:[t.jsx(Fs,{children:Ze.texts.limitReset}),t.jsx(Ps,{children:fe})]}):null]})]}):null]}),t.jsx(hs,{chargeCardDetailView:e,classListFetchState:u,cardOwnerName:A,addressToShow:J,isAddressCopied:Y,isOwnerNameCopied:Z,onOwnerNameCopyClick:k,onAddressCopyClick:R})]}),t.jsx($s,{windowSize:L,isOwnCard:E,children:L==="small"&&!E?null:t.jsxs(t.Fragment,{children:[t.jsx(vs,{windowSize:L,children:X?t.jsx(Tr,{}):t.jsx(_r,{isChargeCardAdmin:W,chargeCardDetailView:e,productInformation:b,cashbackInformation:n,creditAccountInformation:d,debitAccountInformation:f,creditAccount:e.creditAccount,setShowSecretInfo:K,secretRevealed:S,isOwnCard:E,isShowingInDrawer:!1,vgsVaultId:G,showSecretInfo:ie,isSandboxEnv:se,controllerEmails:s,isChargeCardFeatureEnabled:p,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:l,isChargeCardSetupEnabled:C,chargeCardCashbackDetailState:m,isCardDetailErrored:V,signedInUserToken:q,selectedColor:B,cardDetailsFetchState:ae,setCardDetailsFetchState:H,setIsCardDetailErrored:oe,setSecretRevealed:I,isCardDetailFetching:O,handleColorCodeClick:U,onFireOnClickAnalytics:de,setShowPhoneNumberForOtp:te,onUnlockChargeCard:re,creditAccountRepayment:x})}),!E&&e.chargeCard?.status.code!=="closed"&&e.chargeCard?.status.code!=="closed_by_customer"&&e.chargeCard?.status.code!=="locked"?t.jsx(ms,{children:Ge.cardDetails.adminsCannotAccess}):null,L==="small"&&E&&y&&ce===!1?Re?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:e,classListFetchState:u,analytics:je,isDebitCard:ce,isChargeCardAdmin:W,productInformation:b,creditAccountInformation:d,debitAccountInformation:f,cardIssuedByRoles:v,cardIssuedByDepartmentName:$,cardHolderRoles:j,cardHolderDepartmentName:D,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:p,creditAccount:g,creditAccountRepayment:x}),window.open(z,"_blank")}}):t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:e,classListFetchState:u,analytics:je,isDebitCard:ce,isChargeCardAdmin:W,productInformation:b,creditAccountInformation:d,debitAccountInformation:f,cardIssuedByRoles:v,cardIssuedByDepartmentName:$,cardHolderRoles:j,cardHolderDepartmentName:D,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:p,creditAccount:g,creditAccountRepayment:x}),window.open(M,"_blank")}}):null]})})]})},hs=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:s,addressToShow:m,isOwnerNameCopied:p,isAddressCopied:w,onOwnerNameCopyClick:l,onAddressCopyClick:C})=>{const g=Ie(),x=at(),[b,n]=o.useState(0),[d,f]=o.useState(!0),[v,$]=o.useState(!1),[j,D]=o.useState(!1),[u,A]=o.useState(!1);o.useEffect(()=>{const z=[setTimeout(()=>{n(1)},500),setTimeout(()=>{n(0),A(!0)},1e3),setTimeout(()=>{f(!1),A(!1)},2e3),setTimeout(()=>{f(!0),n(1)},2500),setTimeout(()=>{n(0),A(!0)},3e3),setTimeout(()=>{f(!1),A(!1)},4e3)];return()=>{z.forEach(clearTimeout)}},[]);const S=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(fs,{children:[t.jsxs(ws,{windowSize:g,children:[t.jsxs(xs,{shouldBounce:u,isActive:b==0,isAutoSlide:d,windowSize:g,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(Ga,{windowSize:g,onClick:l,"data-testid":Q("owner-name-copy-click"),onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:[t.jsxs(jt,{children:[Ge.cardDetails.owner,t.jsxs(rr,{children:[t.jsx(Qa,{children:p===!0?t.jsx(ar,{}):t.jsx(tr,{isHover:v})}),p||v?t.jsx(er,{children:p?Ze.copyToClipBoard.copied:Ze.copyToClipBoard.copy}):null]})]}),t.jsx(qa,{children:t.jsx(Jt,{children:s})})]}):null,m!=null?t.jsxs(Ya,{windowSize:g,onClick:C,"data-testid":Q("address-copy-click"),onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:[t.jsxs(jt,{children:[Ge.cardDetails.address,t.jsxs(rr,{children:[t.jsx(Qa,{children:w===!0?t.jsx(ar,{}):t.jsx(tr,{isHover:j})}),w||j?t.jsx(er,{children:w?Ze.copyToClipBoard.copied:Ze.copyToClipBoard.copy}):null]})]}),t.jsx(Ss,{windowSize:g,children:t.jsx(co,{address:m,isDisabled:"readonly",style:{padding:a.sp0,..._.smallRegular.cssObject,textTransform:"capitalize",alignItems:"flex-start",backgroundColor:x.colors.grey4,cursor:"pointer",flexDirection:g==="small"?"column":"row",gap:$e.addressValueGap.valuePx(g),textAlign:g==="small"?"left":"right"}})})]}):null]}),t.jsxs(ys,{isActive:b==1,isAutoSlide:d,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(Ga,{windowSize:g,children:[t.jsx(jt,{children:Ge.connectedAccount}),t.jsxs(bs,{children:[t.jsx(Os,{children:t.jsx(Hs,{})}),t.jsx(Jt,{children:S})]})]}):null,t.jsxs(Ya,{windowSize:g,children:[t.jsx(jt,{children:Ge.department}),t.jsx(qa,{children:t.jsx(Jt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(Ct,{size:"Small",start:!0}):e.chargeCard?.department?.className??Ze.strings.hyphen})})]})]})]}),t.jsx(Fo,{numberOfDots:2,activeIndex:b,handleClick:n,style:{marginTop:"12px",marginBottom:$e.navigationMarginBottom.valuePx(g)},dotStyle:{width:a.sp2,height:a.sp2},spendManagementPromoCardActive:!0,promoColor:x.colors.primary,promoColorHover:x.colors.grey1})]})},ps=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:s,creditAccount:m,creditAccountRepayment:p,isDebitCard:w,controllerEmails:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,cardIssuedByRoles:b,cardIssuedByDepartmentName:n,cardHolderRoles:d,cardHolderDepartmentName:f,analytics:v})=>{if(e.chargeCard!=null&&i==="Completed"&&e.transactionStatistics.fetchState==="Completed"&&(!s||m.fetchState==="Completed"&&p.fetchState==="Completed")&&(!w||e.depositAccountLimitFetchState.fetchState==="Completed")){const $=e.chargeCard.type.code.includes("physical")?e.chargeCard.cardActivationAttemptHistory[0]?.timestamp:e.chargeCard.createTime;v.trackCardsUpdateSpendLimitInitiated(l,C,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:so(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:mt(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(gt.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(gt.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:$?.format(gt.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name,cardSpentAmount:mt(e.chargeCard.balance.amount),cardAvailableLimit:mt(e.chargeCard.available.amount),cardUtilizationPercent:no(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:mt(oo(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:Oa(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:b,cardIssuedByDepartment:n},{cardholderName:Oa(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:d,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:f},"Card Detail","Hyperlink",(e?.chargeCard?.recommendations??[]).map(j=>mt(j.creditLimit.amount)),g,x)}},us=r.div`
|
|
501
|
-
display: flex;
|
|
502
|
-
align-items: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"flex-start":"center"};
|
|
503
|
-
gap: ${e=>$e.remainingAmountContainerGap.valuePx(e.windowSize)};
|
|
504
|
-
flex-direction: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"column":"row"};
|
|
505
|
-
`,ms=r(Ce)`
|
|
506
|
-
color: ${e=>e.theme.colors.primary};
|
|
507
|
-
`,gs=r(Ce)`
|
|
508
|
-
color: ${e=>e.theme.colors.hero};
|
|
509
|
-
`,Cs=r.div`
|
|
510
|
-
display: flex;
|
|
511
|
-
align-items: end;
|
|
512
|
-
`,fs=r.div`
|
|
513
|
-
width: 100%;
|
|
514
|
-
overflow: hidden;
|
|
515
|
-
`,ws=r.div`
|
|
516
|
-
width: 100%;
|
|
517
|
-
gap: ${a.sp3};
|
|
518
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
519
|
-
border: 1px solid ${e=>e.theme.colors.background};
|
|
520
|
-
border-radius: ${a.sp2};
|
|
521
|
-
padding: ${a.sp3};
|
|
522
|
-
box-sizing: border-box;
|
|
523
|
-
position: relative;
|
|
524
|
-
height: ${e=>$e.addressSectionHeight.valuePx(e.windowSize)};
|
|
525
|
-
`,xs=r.div`
|
|
526
|
-
display: flex;
|
|
527
|
-
justify-content: unset;
|
|
528
|
-
gap: ${e=>$e.addressSectionGap.valuePx(e.windowSize)};
|
|
529
|
-
position: absolute;
|
|
530
|
-
width: 100%;
|
|
531
|
-
${({isActive:e,isAutoSlide:i})=>we`
|
|
532
|
-
transform: translateX(${e?"0%":i?"-10%":"-105%"});
|
|
533
|
-
`};
|
|
534
|
-
transition: transform
|
|
535
|
-
${({isAutoSlide:e,shouldBounce:i})=>`${e?"0.5s":"0.3s"} ${i?"cubic-bezier(0.175, 0.885, 0.32, 1.125)":"ease-out"}`};
|
|
536
|
-
`,ys=r.div`
|
|
537
|
-
display: flex;
|
|
538
|
-
justify-content: unset;
|
|
539
|
-
${({isActive:e,isAutoSlide:i})=>we`
|
|
540
|
-
transform: translateX(${e?i?"95%":"0%":"105%"});
|
|
541
|
-
`};
|
|
542
|
-
transition: transform
|
|
543
|
-
${({isAutoSlide:e,isActive:i})=>e&&i?"0.5s":"0.3s"}
|
|
544
|
-
ease-out;
|
|
545
|
-
gap: ${a.sp8};
|
|
546
|
-
`,Ga=r.div`
|
|
547
|
-
min-width: ${e=>$e.ownerWebMinWidth.valuePx(e.windowSize)};
|
|
548
|
-
cursor: pointer;
|
|
549
|
-
`,jt=r(Ce)`
|
|
550
|
-
color: ${e=>e.theme.colors.hero};
|
|
551
|
-
display: flex;
|
|
552
|
-
align-items: center;
|
|
553
|
-
`,qa=r.div``,bs=r.div`
|
|
554
|
-
display: flex;
|
|
555
|
-
align-items: flex-start;
|
|
556
|
-
gap: ${a.sp1};
|
|
557
|
-
`,Ss=r.div`
|
|
558
|
-
${({windowSize:e})=>e==="small"?we`
|
|
559
|
-
max-width: 220px;
|
|
560
|
-
`:null};
|
|
561
|
-
`,Jt=r(Ce)`
|
|
562
|
-
color: ${e=>e.theme.colors.primary};
|
|
563
|
-
text-transform: capitalize;
|
|
564
|
-
`,Ya=r.div`
|
|
565
|
-
display: flex;
|
|
566
|
-
flex-direction: column;
|
|
567
|
-
align-items: "baseline";
|
|
568
|
-
justify-content: center;
|
|
569
|
-
cursor: pointer;
|
|
570
|
-
`,$s=r.div`
|
|
571
|
-
display: flex;
|
|
572
|
-
flex-direction: ${e=>e.windowSize==="small"||!e.isOwnCard?"column":"row"};
|
|
573
|
-
justify-content: center;
|
|
574
|
-
align-items: center;
|
|
575
|
-
gap: ${e=>$e.rightSectionGap.valuePx(e.windowSize)};
|
|
576
|
-
width: ${e=>e.windowSize==="small"?"100%":"max-content"};
|
|
577
|
-
`,vs=r.div`
|
|
578
|
-
min-height: ${e=>`calc(${$e.rightSectionHeight.valuePx(e.windowSize)} + ${a.sp2})`};
|
|
579
|
-
min-width: ${e=>`calc(${$e.rightSectionWidth.valuePx(e.windowSize)} + ${a.sp2})`};
|
|
580
|
-
display: flex;
|
|
581
|
-
justify-content: center;
|
|
582
|
-
align-items: center;
|
|
583
|
-
flex-direction: column;
|
|
584
|
-
gap: ${e=>$e.cardContainerContentGap.valuePx(e.windowSize)};
|
|
585
|
-
`,ks=r.div`
|
|
586
|
-
width: 100%;
|
|
587
|
-
display: flex;
|
|
588
|
-
align-items: flex-start;
|
|
589
|
-
flex-direction: column;
|
|
590
|
-
justify-content: space-between;
|
|
591
|
-
`,js=r.div`
|
|
592
|
-
display: flex;
|
|
593
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
594
|
-
align-items: center;
|
|
595
|
-
|
|
596
|
-
justify-content: space-between;
|
|
597
|
-
padding-top: ${a.sp3};
|
|
598
|
-
padding-right: ${e=>$e.contentContainerPadding.valuePx(e.windowSize)};
|
|
599
|
-
padding-bottom: ${e=>$e.topSectionPaddingBottom.valuePx(e.windowSize)};
|
|
600
|
-
padding-left: ${e=>$e.contentContainerPadding.valuePx(e.windowSize)};
|
|
601
|
-
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
602
|
-
background: ${e=>e.theme.colors.grey5};
|
|
603
|
-
gap: ${e=>$e.leftRightSectionGap.valuePx(e.windowSize)};
|
|
604
|
-
`,Is=r.div`
|
|
605
|
-
display: flex;
|
|
606
|
-
flex-direction: column;
|
|
607
|
-
width: 100%;
|
|
608
|
-
margin-bottom: ${({windowSize:e})=>$e.cardBalanceSectionMarginBottom.valuePx(e)};
|
|
609
|
-
`,Ja=r.div`
|
|
610
|
-
display: flex;
|
|
611
|
-
flex-direction: row;
|
|
612
|
-
justify-content: space-between;
|
|
613
|
-
align-items: flex-start;
|
|
614
|
-
`,Ls=r(Ar)`
|
|
615
|
-
color: ${e=>e.theme.colors.primary};
|
|
616
|
-
${e=>`${oa.spentAmount.style(e.windowSize)}`};
|
|
617
|
-
`,Ds=r.div`
|
|
618
|
-
display: flex;
|
|
619
|
-
align-items: flex-end;
|
|
620
|
-
flex-direction: column;
|
|
621
|
-
${({windowSize:e})=>e==="small"?we`
|
|
622
|
-
margin-bottom: ${a.sp4};
|
|
623
|
-
`:null};
|
|
624
|
-
`,Ts=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
|
-
`,As=r(aa)`
|
|
629
|
-
color: ${e=>e.theme.colors.hero};
|
|
630
|
-
margin-right: ${a.sp1};
|
|
631
|
-
`,Es=r(io)`
|
|
632
|
-
background: none;
|
|
633
|
-
border: none;
|
|
634
|
-
cursor: pointer;
|
|
635
|
-
padding: ${a.sp0};
|
|
636
|
-
color: ${c.link};
|
|
637
|
-
&:hover {
|
|
638
|
-
text-decoration: underline;
|
|
639
|
-
}
|
|
640
|
-
`,Rs=r.div`
|
|
641
|
-
display: flex;
|
|
642
|
-
align-items: flex-end;
|
|
643
|
-
gap: ${a.sp1};
|
|
644
|
-
`,Fs=r(Ce)`
|
|
645
|
-
color: ${e=>e.theme.colors.hero};
|
|
646
|
-
`,Ps=r(Ce)`
|
|
647
|
-
color: ${e=>e.theme.colors.hero};
|
|
648
|
-
`,zs=r.div`
|
|
649
|
-
width: 100%;
|
|
650
|
-
height: ${a.sp1};
|
|
651
|
-
display: flex;
|
|
652
|
-
margin: ${a.sp2} ${a.sp0};
|
|
653
|
-
border-radius: ${({windowSize:e})=>$e.barRadius.valuePx(e)};
|
|
654
|
-
background: ${e=>e.theme.colors.grey2};
|
|
655
|
-
`,Ms=r.div`
|
|
656
|
-
display: flex;
|
|
657
|
-
align-items: flex-start;
|
|
658
|
-
flex-direction: column;
|
|
659
|
-
color: ${e=>e.theme.colors.primary};
|
|
660
|
-
`,Ka=r(Ar)`
|
|
661
|
-
color: ${e=>e.theme.colors.primary};
|
|
662
|
-
${e=>`${oa.remainingAmount.style(e.windowSize)}`};
|
|
663
|
-
`,Xa=r(ro)`
|
|
664
|
-
${e=>`${oa.remainingAmount.style(e.windowSize)}`};
|
|
665
|
-
color: ${e=>e.theme.colors.primary};
|
|
666
|
-
`,Vs=r.div`
|
|
667
|
-
background: ${c.success};
|
|
668
|
-
width: 0%;
|
|
669
|
-
height: ${a.sp1};
|
|
670
|
-
transition: width 4s ease;
|
|
671
|
-
`,Qa=r.span`
|
|
672
|
-
display: flex;
|
|
673
|
-
color: ${e=>e.theme.colors.grey1};
|
|
674
|
-
&:hover {
|
|
675
|
-
color: ${e=>e.theme.colors.primary};
|
|
676
|
-
}
|
|
677
|
-
`,er=r(lt)`
|
|
678
|
-
padding: ${a.sp0} 2px;
|
|
679
|
-
color: ${c.heroDark};
|
|
680
|
-
background: ${c.blackColor};
|
|
681
|
-
border-radius: ${a.sp1};
|
|
682
|
-
position: absolute;
|
|
683
|
-
left: 20px;
|
|
684
|
-
`,tr=r(Dr)`
|
|
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
|
-
`,ar=r(ft)`
|
|
691
|
-
height: 12px;
|
|
692
|
-
width: 12px;
|
|
693
|
-
margin-left: ${a.sp1};
|
|
694
|
-
color: ${c.success};
|
|
695
|
-
`,Os=r.div`
|
|
696
|
-
width: 21px;
|
|
697
|
-
height: 21px;
|
|
698
|
-
`,Hs=r(Co)`
|
|
699
|
-
color: ${c.brandColorOpal};
|
|
700
|
-
width: 100%;
|
|
701
|
-
height: 100%;
|
|
702
|
-
`,rr=r.div`
|
|
703
|
-
display: flex;
|
|
704
|
-
align-items: center;
|
|
705
|
-
justify-content: center;
|
|
706
|
-
position: relative;
|
|
707
|
-
`,wt=ke.getLocalizedStrings().spendManagement.chargeCard.cardDetails.header,Ns={key:"merchant",value:wt.merchant,sortOrder:"ascending",width:new T(38,38)},Bs={key:"paymentDate",value:wt.paymentDate,sortOrder:"ascending",width:new T(21,21)},Ws={key:"receipts",value:wt.receipts,sortOrder:"ascending",width:new T(16,16)},_s={key:"type",value:wt.type,sortOrder:"ascending",width:new T(14,14)},Us={key:"amount",value:wt.amount,sortOrder:"ascending",width:new T(11,11)},Zr=()=>[Ns,Bs,Ws,_s,Us],st={headerLastColumnTopPadding:new T(h[0],h[4]),headerLastColumnRightPadding:new T(h[3],h[11]),headerLastColumnBottomPadding:new T(h[0],h[4]),headerLastColumnLeftPadding:new T(h[3],h[11]),headerHeight:new T(ko,jo)},Zs=new Set(["receipts","type"]);function Gs({hideSorting:e,sortConfig:i,onColumnSortConfigChanged:s}){const m=at(),p=Ie(),w=Vr(),l=o.useMemo(()=>{const d=Zr();return w?d.filter(f=>!Zs.has(f.key)):d},[w]),C=(d,f)=>{let v=f;i.sortKey===d&&(v=f==="ascending"?"descending":"ascending"),s(d,v)},g=l.find(d=>d.key===i.sortKey)??l[0],x=d=>l.find(f=>f.key===d)?.value??"",b=l.map(d=>d.key),n=ke.getLocalizedStrings().spendManagement.chargeCard.cardList;return p==="small"?t.jsxs(ir,{windowSize:p,children:[t.jsxs(Ks,{children:[t.jsx(Qs,{children:t.jsx(Xs,{})}),t.jsx(yo,{title:n.sortBy,placeholder:n.sortBy,pickerValues:b,valueToLabel:x,selectedValue:i.sortKey,onPickerSelectionChanged:d=>{C(d,"ascending")},optionTextStyle:_.smallRegular,titleTextStyle:_.smallRegular,titleColor:m.colors.primary,selectedOptionColor:m.colors.hero,optionBackgroundColor:m.colors.grey5,downChevronVisible:!1,backgroundColor:m.colors.grey4,isDisabled:e})]}),t.jsxs(ad,{hideSorting:e,onClick:()=>{e||C(g.key,g.sortOrder)},"data-testid":Q("charge-card-trxn-small-header",i.sortKey),children:[t.jsx(Ce,{children:g.value}),e?null:t.jsx(or,{sortDataValue:i.sortKey,headerData:g,children:t.jsx(nr,{})})]})]}):t.jsx(ir,{windowSize:p,children:l.map(d=>t.jsxs(Ys,{hideSorting:e,sortDataValue:i.sortKey,actualDataValue:d.key,wrapperWidth:d.width,windowSize:p,children:[t.jsxs(td,{hideSorting:e,onClick:()=>{e||C(d.key,d.sortOrder)},"data-testid":Q("charge-card-trxn-header",i.sortKey),children:[t.jsx(Ce,{children:d.value}),t.jsx(or,{sortDataValue:i.sortKey,headerData:d,children:e?null:t.jsx(nr,{})})]}),t.jsx(ed,{sortDataValue:i.sortKey,windowSize:p,isVisible:e?!1:i.sortKey===d.key&&d.key!=="paymentDate",children:e?null:t.jsx(Js,{onClick:()=>{e||C("paymentDate","ascending")},"data-testid":Q("charge-card-trxn-close-sort",i.sortKey)})})]},d.key))})}const qs=To.memo(Gs),ir=r(Ce)`
|
|
708
|
-
top: ${a.sp0};
|
|
709
|
-
left: ${a.sp0};
|
|
710
|
-
min-height: ${e=>st.headerHeight.valuePx(e.windowSize)};
|
|
711
|
-
max-height: ${e=>st.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=>`${st.headerLastColumnTopPadding.valuePx(e.windowSize)} ${st.headerLastColumnRightPadding.valuePx(e.windowSize)} ${st.headerLastColumnBottomPadding.valuePx(e.windowSize)} ${st.headerLastColumnLeftPadding.valuePx(e.windowSize)}`};
|
|
718
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
719
|
-
justify-content: space-between;
|
|
720
|
-
position: sticky;
|
|
721
|
-
`,Ys=r.div`
|
|
722
|
-
color: ${e=>e.sortDataValue===e.actualDataValue&&e.hideSorting===!1?e.theme.colors.primary:e.theme.colors.grey1};
|
|
723
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
724
|
-
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
725
|
-
padding-left: ${a.sp0};
|
|
726
|
-
display: flex;
|
|
727
|
-
align-items: center;
|
|
728
|
-
gap: 5px;
|
|
729
|
-
left: ${a.sp0};
|
|
730
|
-
justify-content: ${e=>e.actualDataValue==="amount"?"flex-end":"flex-start"};
|
|
731
|
-
${e=>e.actualDataValue==="paymentDate"?we`
|
|
732
|
-
flex: 1 1 auto;
|
|
733
|
-
`:we`
|
|
734
|
-
padding-left: ${a.sp0};
|
|
735
|
-
`};
|
|
736
|
-
box-sizing: border-box;
|
|
737
|
-
overflow: hidden;
|
|
738
|
-
`,Js=r(So)`
|
|
739
|
-
width: 12px;
|
|
740
|
-
height: 12px;
|
|
741
|
-
cursor: pointer;
|
|
742
|
-
color: ${e=>e.theme.colors.hero};
|
|
743
|
-
`,or=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
|
-
`,nr=r(Rr)`
|
|
749
|
-
width: 12px;
|
|
750
|
-
height: 12px;
|
|
751
|
-
cursor: pointer;
|
|
752
|
-
color: inherit;
|
|
753
|
-
`,Ks=r.div`
|
|
754
|
-
gap: ${a.sp1};
|
|
755
|
-
display: flex;
|
|
756
|
-
`,Xs=r(bo)`
|
|
757
|
-
width: 12px;
|
|
758
|
-
height: 12px;
|
|
759
|
-
color: ${e=>e.theme.colors.grey1};
|
|
760
|
-
`,Qs=r.div`
|
|
761
|
-
margin-right: ${a.sp1};
|
|
762
|
-
display: flex;
|
|
763
|
-
align-items: center;
|
|
764
|
-
`,ed=r.div`
|
|
765
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
766
|
-
align-items: center;
|
|
767
|
-
padding-top: 2px;
|
|
768
|
-
`,td=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
|
-
`,ad=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 Gr(e,i,s){return rd(e,i,s)}async function rd(e,i,s,m){const p=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,w=ke.getLocalizedStrings().downloadReport;try{const l=await Io(p,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(l.ok){const C=m??Lo(l.headers,"Charge Card Transaction Receipt.pdf"),g=await l.arrayBuffer();Do(g,C)}else console.error(`${w.reportErrorMessage} ${l.statusText}`)}catch(l){console.error(`${w.reportErrorMessage} ${JSON.stringify(l)}`)}}async function qr(e,i,s){const m=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,p=ke.getLocalizedStrings().downloadReport;try{const w=await fetch(m,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(w.ok)return await w.json();console.error(`${p.reportErrorMessage} ${w.statusText}`)}catch(w){throw console.error(`${p.reportErrorMessage} ${JSON.stringify(w)}`),w}return[]}const id=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"})),Yr=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"})),Jr=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:od,spendManagement:{chargeCard:{cardDetails:sr}},common:{strings:{hyphen:nd},tooltips:{addMissingReceipt:sd,addReceipt:dd,viewReceipt:cd}}}=ke.getLocalizedStrings(),Ue={containerPaddingLeft:new T(h[3],h[4]),containerPaddingRight:new T(h[3],h[4]),containerPaddingTop:new T(h[2],h[3]),containerPaddingBottom:new T(h[2],h[3]),containerMarginLeft:new T(h[4],h[8]),webkitLineClamp:new T(2,1,1,1,1)},Kr=e=>(e.attachmentFilePaths??[]).filter(i=>/\.(pdf|png|jpg|jpeg)$/i.test(i)).map(Ro),ld=(e,i)=>(e.attachmentFilePaths?.length??0)>0?cd:e.amount.amount<=i.amount?dd:sd,Xr=(e,i,s,m)=>(e.attachmentFilePaths?.length??0)>0?t.jsx(Ad,{onClick:p=>{p.stopPropagation(),m()},"data-testid":Q("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx(Fd,{onClick:p=>{p.stopPropagation(),s()},"data-testid":Q("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(Rd,{onClick:p=>{p.stopPropagation(),s()},"data-testid":Q("card-transaction-row-upload-receipt",e.id)}),hd=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:p,transactionAttachmentEndpointToDownload:w,cardId:l,uploadReceiptsFetchState:C,uploadReceiptsShowTick:g,isViewReceiptClickedImmediatelyAfterUpload:x,authParams:b,transaction:n,receiptRequiredAboveAmount:d,updateChargeCardTransactionAttachments:f,onUploadReceiptComplete:v,updateChargeCardTransactionUploadReceiptsFetchStatus:$,updateChargeCardTransactionReceiptsShowTick:j,updateChargeCardTransactionIsViewReceiptClicked:D,removeSnackbar:u,onChargeCardTransactionRowClick:A})=>{const S=Ie(),z=Vr(),[M,y]=o.useState(!1),[Z,Y]=o.useState([]),[J,E]=o.useState(null);o.useEffect(()=>{!s&&x&&(se(G[0]),le())},[s,x]);const G=Kr(n),[ie,se]=o.useState(G[0]),[V,q]=o.useState([]),[B,ee]=o.useState(void 0);o.useEffect(()=>{async function X(N){V.includes(N.attachment_id)?console.warn(`Attachment with ID ${N.attachment_id} is already getting downloaded`):(q([N.attachment_id,...V]),await Gr(w,b,N),q(Or(V,W=>W==N.attachment_id)))}B!=null&&(X({card_id:l,transaction_id:n.id,attachment_id:B}),ee(void 0))},[B]);const te=()=>{D(n.id,l,!1),y(!1),E(null),Y([]),G.length>0&&se(G[0])},le=()=>{y(!0);const X=G.map(W=>W.id);async function N(W){return await qr(p,b,W)}N({card_id:l,transaction_id:n.id,attachment_ids:X}).then(W=>{Y(W),W.length>0&&E(W[0])})},{merchant:ae,createTime:H,transactionType:oe,thirdPartyTransactionId:K}=n,I=()=>{s?(u(),D(n.id,l,!0)):(se(G[0]),le())},O=o.useRef(null);async function U(X,N){$(n.id,l,"In-Progress"),await Br(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,X,N).then(W=>{W!=null&&f(n.id,W),$(n.id,l,"Completed"),j(n.id,l,!0),setTimeout(()=>{j(n.id,l,!1),v(!0)},2e3)}).catch(W=>{$(n.id,l,"Error"),v(!1,W)})}const de=()=>{O.current?.click()},k=X=>{if(X.target.files!=null){const N=X.target.files,W=[],Me=[];for(let ne=0;ne<N.length;ne++)W.push(N[ne].name),Me.push(N[ne]);U?.(Me,W)}},R=Zr(),re=Pr(n.transactionStatus),ce=m?ae.brandName??ae.name:ae.name,L=qe("0,0.00",n.amount),je=oe.code==="transfer",fe=K!=null&&m,Ee=je&&n.direction==="debit",Re=je&&n.direction==="credit";return t.jsxs(Cd,{windowSize:S,isClickable:fe,"data-testid":Q("card-transaction-row",n.id),onClick:X=>{X.stopPropagation(),fe&&A(oe.code,K)},children:[t.jsx(fd,{children:t.jsxs(wd,{children:[t.jsxs(xd,{windowSize:S,responsiveWidth:R[0].width,children:[Ee?t.jsx(vd,{}):Re?t.jsx(kd,{}):t.jsx(jd,{src:ae.logo?.url?.toString()}),t.jsx(yd,{windowSize:S,hasMarginRight:re.code==="paid",children:ce}),re.code!=="paid"?t.jsxs(ud,{children:[t.jsx(gd,{windowSize:S}),t.jsx(md,{color:re.color,windowSize:S,children:re.value})]}):null]}),t.jsx($d,{windowSize:S,responsiveWidth:R[1].width,children:t.jsx(Id,{children:H.format(od.visual.MMMDCommaYYYYformat)})}),z!==!0&&t.jsx(Dd,{windowSize:S,responsiveWidth:R[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?nd:C?.fetchState==="In-Progress"?t.jsx(Ct,{size:"Small",start:!0}):g?t.jsx(Ed,{}):t.jsxs(ta,{enterDelay:600,display:"flex",placement:"bottom",title:ld(n,d),children:[t.jsx(pd,{"data-testid":Q("card-transaction-row-upload-receipt",n.id),onClick:X=>{X.stopPropagation()},children:t.jsx(zr,{name:"transactionLineAttachment",fileRef:O,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:k,multiple:!0,onFileSizeError:(X,N)=>{X&&v(!1,{code:500,message:N===!0?sr.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",It(i,0)):sr.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",It(i,0))})}})}),Xr(n,d,de,I)]})}),z!==!0&&t.jsx(Ld,{windowSize:S,responsiveWidth:R[3].width,children:t.jsx(Td,{title:oe.name,children:oe.name})}),t.jsx(bd,{windowSize:S,responsiveWidth:R[4].width,children:t.jsx(Sd,{windowSize:S,title:qe("0,0.[00]",n.amount),children:n.direction==="debit"?L:`-${L}`})})]})}),M&&G.length>0?Nr.createPortal(t.jsx(Mr,{allFiles:Z,fileSource:J,file:ie,title:ie.fileName,attachments:G,setFileSource:E,setShowFullScreenView:y,onCrossClick:te,setSelectedFileAttachment:se,onDownloadClick:X=>{ee(X.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},pd=r.div``,ud=r.div`
|
|
784
|
-
display: flex;
|
|
785
|
-
flex-direction: row;
|
|
786
|
-
align-items: center;
|
|
787
|
-
gap: ${a.sp2};
|
|
788
|
-
margin-right: ${a.sp4};
|
|
789
|
-
`,md=r(lt)`
|
|
790
|
-
color: ${e=>e.color};
|
|
791
|
-
`,gd=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
|
-
`,Cd=r.div`
|
|
798
|
-
display: flex;
|
|
799
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
800
|
-
padding-left: ${e=>Ue.containerPaddingLeft.valuePx(e.windowSize)};
|
|
801
|
-
padding-right: ${e=>Ue.containerPaddingRight.valuePx(e.windowSize)};
|
|
802
|
-
padding-top: ${e=>Ue.containerPaddingTop.valuePx(e.windowSize)};
|
|
803
|
-
padding-bottom: ${e=>Ue.containerPaddingBottom.valuePx(e.windowSize)};
|
|
804
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
805
|
-
box-shadow: ${e=>e.theme.mode==="dark"?`${c.dropShadowNormalDark} ${a.sp0} 2px ${a.sp1}`:`${a.sp0} 2px ${a.sp1} ${c.dropShadowNormalLight}`};
|
|
806
|
-
border-radius: ${a.sp2};
|
|
807
|
-
color: ${e=>e.theme.colors.hero};
|
|
808
|
-
&:hover {
|
|
809
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
810
|
-
color: ${e=>e.theme.colors.primary};
|
|
811
|
-
}
|
|
812
|
-
margin-right: ${e=>Ue.containerMarginLeft.valuePx(e.windowSize)};
|
|
813
|
-
margin-left: ${e=>Ue.containerMarginLeft.valuePx(e.windowSize)};
|
|
814
|
-
box-sizing: border-box;
|
|
815
|
-
align-items: center;
|
|
816
|
-
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
817
|
-
`,fd=r.div`
|
|
818
|
-
display: block;
|
|
819
|
-
width: 100%;
|
|
820
|
-
`,wd=r.div`
|
|
821
|
-
display: flex;
|
|
822
|
-
width: 100%;
|
|
823
|
-
justify-content: space-between;
|
|
824
|
-
align-items: center;
|
|
825
|
-
`,xd=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
|
-
`,yd=r(ze)`
|
|
832
|
-
margin-right: ${e=>e.hasMarginRight?a.sp3:a.sp0};
|
|
833
|
-
color: inherit;
|
|
834
|
-
-webkit-line-clamp: ${e=>Ue.webkitLineClamp.value(e.windowSize)};
|
|
835
|
-
-webkit-box-orient: vertical;
|
|
836
|
-
overflow: hidden;
|
|
837
|
-
max-width: 100%;
|
|
838
|
-
overflow: hidden;
|
|
839
|
-
text-overflow: ellipsis;
|
|
840
|
-
white-space: nowrap;
|
|
841
|
-
text-transform: capitalize;
|
|
842
|
-
`,bd=r(ze)`
|
|
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
|
-
`,Sd=r(ze)`
|
|
849
|
-
color: inherit;
|
|
850
|
-
flex-grow: 1;
|
|
851
|
-
-webkit-line-clamp: ${e=>Ue.webkitLineClamp.value(e.windowSize)};
|
|
852
|
-
-webkit-box-orient: vertical;
|
|
853
|
-
overflow: hidden;
|
|
854
|
-
text-overflow: ellipsis;
|
|
855
|
-
max-width: 100%;
|
|
856
|
-
overflow: hidden;
|
|
857
|
-
text-overflow: ellipsis;
|
|
858
|
-
white-space: nowrap;
|
|
859
|
-
`,$d=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
|
-
`,Qr=e=>we`
|
|
867
|
-
width: ${a.sp4};
|
|
868
|
-
height: ${a.sp4};
|
|
869
|
-
color: ${e.colors.hero};
|
|
870
|
-
`,vd=r(Jr)`
|
|
871
|
-
${({theme:e})=>Qr(e)}
|
|
872
|
-
`,kd=r(Yr)`
|
|
873
|
-
${({theme:e})=>Qr(e)}
|
|
874
|
-
`,jd=r.img`
|
|
875
|
-
display: flex;
|
|
876
|
-
width: ${a.sp4};
|
|
877
|
-
height: ${a.sp4};
|
|
878
|
-
`,Id=r(ze)`
|
|
879
|
-
color: inherit;
|
|
880
|
-
max-width: 100%;
|
|
881
|
-
overflow: hidden;
|
|
882
|
-
text-overflow: ellipsis;
|
|
883
|
-
white-space: nowrap;
|
|
884
|
-
`,Ld=r(ze)`
|
|
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
|
-
`,Td=r(lt)`
|
|
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
|
-
`,Ad=r($o)`
|
|
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
|
-
`,Ed=r(ft)`
|
|
914
|
-
height: ${a.sp4};
|
|
915
|
-
width: ${a.sp4};
|
|
916
|
-
color: ${c.success};
|
|
917
|
-
`,Rd=r(vo)`
|
|
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
|
-
`,Fd=r(id)`
|
|
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:Pd,spendManagement:{chargeCard:{cardDetails:Kt}},common:{strings:{hyphen:zd}}}=ke.getLocalizedStrings(),Md={webkitLineClamp:new T(2,1,1,1,1)},Vd=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:p,transactionAttachmentEndpointToDownload:w,cardId:l,isViewReceiptClickedImmediatelyAfterUpload:C,uploadReceiptsShowTick:g,uploadReceiptsFetchState:x,authParams:b,transaction:n,receiptRequiredAboveAmount:d,onUploadReceiptComplete:f,updateChargeCardTransactionAttachments:v,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:j,updateChargeCardTransactionUploadReceiptsFetchStatus:D,removeSnackbar:u,onChargeCardTransactionRowClick:A})=>{const S=Ie(),[z,M]=o.useState(0),[y,Z]=o.useState(0),[Y,J]=o.useState(0),E=F=>{J(F),B(!0),K(H[F]),ae(ee[F])};function G(F){M(F.targetTouches[0].clientX)}function ie(F){Z(F.targetTouches[0].clientX)}function se(F){return F<0?H.length+F:F%H.length}function V(){z-y>50&&y!==0&&Y<H.length-1?(E(se(Y+1)),M(0),Z(0)):z-y<-50&&y!==0&&Y>0&&(E(se(Y-1)),M(0),Z(0))}const[q,B]=o.useState(!1),[ee,te]=o.useState([]),[le,ae]=o.useState(null);o.useEffect(()=>{!s&&C&&(K(H[0]),R())},[s,C]);const H=Kr(n),[oe,K]=o.useState(H[0]),[I,O]=o.useState([]),[U,de]=o.useState(void 0);o.useEffect(()=>{async function F(ue){I.includes(ue.attachment_id)?console.warn(`Attachment with ID ${ue.attachment_id} is already getting downloaded`):(O([ue.attachment_id,...I]),await Gr(w,b,ue),O(Or(I,he=>he==ue.attachment_id)))}U!=null&&(F({card_id:l,transaction_id:n.id,attachment_id:U}),de(void 0))},[U]);const k=()=>{j(n.id,l,!1),B(!1),ae(null),te([]),H.length>0&&K(H[0])},R=()=>{B(!0);const F=H.map(he=>he.id);async function ue(he){return await qr(p,b,he)}ue({card_id:l,transaction_id:n.id,attachment_ids:F}).then(he=>{te(he),he.length>0&&ae(he[0])})},{merchant:re,createTime:ce,transactionType:L,thirdPartyTransactionId:je}=n,fe=()=>{s?(u(),j(n.id,l,!0)):(K(H[0]),R())},Ee=o.useRef(null);async function Re(F,ue){D(n.id,l,"In-Progress"),await Br(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,F,ue).then(he=>{he!=null&&v(n.id,he),D(n.id,l,"Completed"),f(!0),$(n.id,l,!0),setTimeout(()=>$(n.id,l,!1),2e3)}).catch(he=>{D(n.id,l,"Error"),f(!1,he)})}const X=()=>{Ee.current?.click()},N=F=>{if(F.target.files!=null){const ue=F.target.files,he=[],Ne=[];for(let Oe=0;Oe<ue.length;Oe++)he.push(ue[Oe].name),Ne.push(ue[Oe]);Re?.(Ne,he)}},W=Pr(n.transactionStatus),Me=m?re.brandName??re.name:re.name,ne=qe("0,0.00",n.amount),Ve=L.code==="transfer",Ye=je!=null&&m,rt=Ve&&n.direction==="debit",pe=Ve&&n.direction==="credit";return t.jsxs(Yd,{windowSize:S,"data-testid":Q("card-transaction-row-small",n.id),onClick:F=>{F.stopPropagation(),Ye&&A(L.code,je)},children:[t.jsx(Jd,{children:t.jsxs(Kd,{children:[t.jsxs(ec,{children:[t.jsx(Zd,{children:rt?t.jsx(Od,{}):pe?t.jsx(Hd,{}):t.jsx(ac,{src:re.logo?.url?.toString()})}),t.jsxs(rc,{children:[t.jsxs(Nd,{children:[t.jsx(Xd,{windowSize:S,children:Me}),W.code!=="paid"?t.jsxs(Bd,{children:[t.jsx(_d,{windowSize:S}),t.jsx(Wd,{color:W.color,windowSize:S,children:W.value})]}):null]}),t.jsx(Qd,{children:`${Kt.paymentDate} ${ce.format(Pd.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(tc,{children:[t.jsx(ic,{children:n.direction==="debit"?ne:`-${ne}`}),t.jsx(qd,{title:L.name,children:L.name}),t.jsx(Gd,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?zd:x?.fetchState==="In-Progress"?t.jsx(Ct,{size:"Small",start:!0}):g?t.jsx(Ud,{}):t.jsxs(dr,{children:[t.jsx(dr,{"data-testid":Q("card-transaction-row-small-upload-receipt",n.id),onClick:F=>{F.stopPropagation()},children:t.jsx(zr,{name:"transactionLineAttachment",fileRef:Ee,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:N,multiple:!0,onFileSizeError:(F,ue)=>{F&&f(!1,{code:500,message:ue===!0?Kt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",It(i,0)):Kt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",It(i,0))})}})}),Xr(n,d,X,fe)]})})]})]})}),q&&H.length>0?Nr.createPortal(t.jsx(Mr,{allFiles:ee,fileSource:le,file:oe,title:oe.fileName,attachments:H,setFileSource:ae,setShowFullScreenView:B,onCrossClick:k,setSelectedFileAttachment:K,onDownloadClick:F=>{de(F.id)},handleTouchStart:G,handleTouchMove:ie,handleTouchEnd:V}),document.body):null]})},ei=e=>we`
|
|
934
|
-
width: ${a.sp4};
|
|
935
|
-
height: ${a.sp4};
|
|
936
|
-
color: ${e.colors.hero};
|
|
937
|
-
`,Od=r(Jr)`
|
|
938
|
-
${({theme:e})=>ei(e)}
|
|
939
|
-
`,Hd=r(Yr)`
|
|
940
|
-
${({theme:e})=>ei(e)}
|
|
941
|
-
`,dr=r.div``,Nd=r.div`
|
|
942
|
-
display: flex;
|
|
943
|
-
gap: ${a.sp2};
|
|
944
|
-
align-items: flex-start;
|
|
945
|
-
`,Bd=r.div`
|
|
946
|
-
display: flex;
|
|
947
|
-
flex-direction: row;
|
|
948
|
-
align-items: center;
|
|
949
|
-
gap: ${a.sp2};
|
|
950
|
-
min-height: ${a.sp4};
|
|
951
|
-
`,Wd=r(lt)`
|
|
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
|
-
`,Ud=r(ft)`
|
|
960
|
-
height: ${a.sp4};
|
|
961
|
-
width: ${a.sp4};
|
|
962
|
-
color: ${c.success};
|
|
963
|
-
`,Zd=r.div``,Gd=r.div`
|
|
964
|
-
margin-top: ${a.sp2};
|
|
965
|
-
`,qd=r(lt)`
|
|
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
|
-
`,Yd=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
|
-
`,Jd=r.div`
|
|
989
|
-
display: block;
|
|
990
|
-
width: 100%;
|
|
991
|
-
`,Kd=r.div`
|
|
992
|
-
display: flex;
|
|
993
|
-
width: 100%;
|
|
994
|
-
justify-content: space-between;
|
|
995
|
-
`,Xd=r(ze)`
|
|
996
|
-
color: inherit;
|
|
997
|
-
flex-grow: 1;
|
|
998
|
-
display: -webkit-box;
|
|
999
|
-
-webkit-line-clamp: ${e=>Md.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
|
-
`,Qd=r(lt)`
|
|
1008
|
-
color: inherit;
|
|
1009
|
-
min-height: 18px;
|
|
1010
|
-
margin-top: -${a.sp1};
|
|
1011
|
-
`,ec=r.div`
|
|
1012
|
-
display: flex;
|
|
1013
|
-
flex-direction: row;
|
|
1014
|
-
gap: ${a.sp2};
|
|
1015
|
-
`,tc=r.div`
|
|
1016
|
-
display: flex;
|
|
1017
|
-
flex-direction: column;
|
|
1018
|
-
align-items: flex-end;
|
|
1019
|
-
`,ac=r.img`
|
|
1020
|
-
display: flex;
|
|
1021
|
-
width: ${a.sp4};
|
|
1022
|
-
height: ${a.sp4};
|
|
1023
|
-
`,rc=r.div`
|
|
1024
|
-
margin-bottom: 6px;
|
|
1025
|
-
`,ic=r(ze)`
|
|
1026
|
-
color: inherit;
|
|
1027
|
-
`,oc=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"})))),nc=e=>o.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_6421_22782)"},o.createElement("path",{opacity:.2,d:"M46.4732 89.7815C70.4353 89.7815 89.8605 70.3564 89.8605 46.3942C89.8605 22.4321 70.4353 3.00696 46.4732 3.00696C22.5111 3.00696 3.08594 22.4321 3.08594 46.3942C3.08594 70.3564 22.5111 89.7815 46.4732 89.7815Z",fill:"#97C3B9"}),o.createElement("path",{d:"M44.0435 87.3468C68.0057 87.3468 87.4308 67.9217 87.4308 43.9595C87.4308 19.9974 68.0057 0.572266 44.0435 0.572266C20.0814 0.572266 0.65625 19.9974 0.65625 43.9595C0.65625 67.9217 20.0814 87.3468 44.0435 87.3468Z",stroke:"#97C3B9",strokeWidth:1.04046,strokeMiterlimit:10}),o.createElement("path",{d:"M5.11719 45.0781C5.11719 65.6012 21.7594 82.3006 42.2149 82.3006",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M9.14062 45.0781C9.14062 57.3347 15.7996 68.0619 25.6788 73.8104",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M24.0625 56.6948C24.0625 49.1878 33.0053 43.1011 44.0446 43.1011C55.0839 43.1011 64.0267 49.1878 64.0267 56.6948C64.0267 71.3861 24.0677 71.5422 24.0677 56.6948H24.0625Z",stroke:"#97C3B9",strokeWidth:.988439,strokeMiterlimit:10}),o.createElement("path",{d:"M44.0423 37.0092C48.6997 37.0092 52.4753 33.2336 52.4753 28.5763C52.4753 23.9189 48.6997 20.1433 44.0423 20.1433C39.3849 20.1433 35.6094 23.9189 35.6094 28.5763C35.6094 33.2336 39.3849 37.0092 44.0423 37.0092Z",stroke:"#97C3B9",strokeWidth:.988439,strokeMiterlimit:10}),o.createElement("path",{d:"M81.918 44.0324C81.918 23.5093 65.2758 6.80988 44.8203 6.80988",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M77.8975 44.0324C77.8975 31.7758 71.2386 21.0486 61.3594 15.3",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"})),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_6421_22782"},o.createElement("rect",{width:90,height:90,fill:"white"})))),{spendManagement:{chargeCard:{cardDetails:ct}},common:sc}=ke.getLocalizedStrings();function dc({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,uploadReceiptsFetchStateByTransactionId:m,uploadReceiptsShowTickByTransactionId:p,isViewReceiptClickedImmediatelyAfterUploadTransactionId:w,cardId:l,receiptRequiredAboveAmount:C,isAiCategorizationEnabledForCardsTransactions:g,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:b,cardsEndPoint:n,authParams:d,hideSorting:f,isOwnCard:v,uiState:$,fetchState:j,cardHolderUser:D,cardStatusCode:u="active",cardCodeType:A="business_virtual_credit_card",onReloadTransactions:S,onFetchChargeCardTransactionList:z,onColumnSortConfigChanged:M,removeSnackbar:y,onChargeCardTransactionRowClick:Z,onUploadReceiptComplete:Y,onUpdateScrollYOffset:J,updateChargeCardTransactionAttachments:E,updateChargeCardTransactionUploadReceiptsFetchStatus:G,updateChargeCardTransactionReceiptsShowTick:ie,updateChargeCardTransactionIsViewReceiptClicked:se}){const V=Ie();Bi({componentName:"cards.details",enabled:j==="Completed"});const q=o.useRef(null),[B,ee]=o.useState(!1);o.useEffect(()=>{q.current?.resetAfterIndex(0)},[V,q]),o.useEffect(()=>{j==="Completed"&&ee(!1)},[j]);const te=()=>V!=="small"?74:128,le=(O,U)=>{z(O,U)},ae=()=>{ee(!0),le($.pageToken,$.pageTokenType)},H=O=>O<e.length,oe=()=>{$.pageToken!=null&&j==="Completed"&&ae()},K=o.useRef(Z);K.current=Z;const I=o.useCallback((...O)=>{K.current(...O)},[]);return t.jsxs(Cc,{isOwnCard:v,windowSize:V,isEmptyTransaction:e.length===0,children:[t.jsx(fc,{windowSize:V,children:j==="Error"?t.jsxs(yc,{children:[t.jsx(bc,{onClick:S,"data-testid":Q("card-transaction-list-reload"),children:t.jsx(jr,{})}),t.jsx(Sc,{children:sc.reloadPage.label})]}):j==="Not-Started"||j==="In-Progress"&&e.length===0?t.jsx(vc,{children:t.jsx(Ct,{size:"ExtraLarge",start:!0})}):j==="Completed"||j==="In-Progress"&&e.length>0?u==="request_on_hold"?t.jsx(lc,{cardType:A,cardHolderUser:D}):u==="inactive"?t.jsx(hc,{cardHolderUser:D}):e.length===0?t.jsx(cc,{}):t.jsx(xc,{windowSize:V,children:t.jsx(Wi,{children:({height:O,width:U})=>t.jsx(_i,{isItemLoaded:H,itemCount:e.length+1,loadMoreItems:oe,children:({onItemsRendered:de})=>t.jsx(Ui,{ref:q,height:O,itemCount:e.length,onItemsRendered:de,itemSize:te,itemKey:k=>e[k].id,width:U,style:{willChange:"auto"},innerElementType:k=>gc(k,f,$,j,M),onScroll:({scrollOffset:k})=>{J?.(k)},initialScrollOffset:$.scrollYOffset,children:k=>t.jsx(pc,{...k,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:g,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:b,uploadReceiptsFetchStateByTransactionId:m,uploadReceiptsShowTickByTransactionId:p,isViewReceiptClickedImmediatelyAfterUploadTransactionId:w,cardId:l,authParams:d,transactions:e,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:E,onUploadReceiptComplete:Y,updateChargeCardTransactionUploadReceiptsFetchStatus:G,updateChargeCardTransactionReceiptsShowTick:ie,updateChargeCardTransactionIsViewReceiptClicked:se,onChargeCardTransactionRowClick:I,removeSnackbar:y})})})})}):null}),B===!0?t.jsx(kc,{children:t.jsx(Ct,{size:"Small",start:!0})}):null]})}const cc=()=>{const e=Ie();return t.jsxs(na,{children:[t.jsx(la,{children:t.jsx(ai,{})}),t.jsxs(sa,{children:[t.jsx(da,{children:ct.transactionTable.emptyTransactions.title}),t.jsx(ca,{windowSize:e,children:ct.transactionTable.emptyTransactions.subTitle})]})]})},lc=({cardType:e,cardHolderUser:i})=>{const s=i!=null?i.firstName+" "+i.lastName:"",m=Ie();return t.jsxs(na,{children:[t.jsx(la,{children:t.jsx(Ic,{})}),t.jsxs(sa,{children:[t.jsx(da,{children:ct.transactionTable.pendingProfileCompletion.title}),t.jsx(ca,{windowSize:m,children:ct.transactionTable.pendingProfileCompletion.subTitle[e].replace("__user__",s)})]})]})},hc=({cardHolderUser:e})=>{const i=Ie();return t.jsxs(na,{children:[t.jsx(la,{children:t.jsx(ai,{})}),t.jsxs(sa,{children:[t.jsx(da,{children:ct.transactionTable.pendingActivation.title}),t.jsx(ca,{windowSize:i,children:ct.transactionTable.pendingActivation.subTitle.replace("__user__",e?.firstName??"")})]})]})},pc=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,style:m,transactions:p,isAiCategorizationEnabledForCardsTransactions:w,uploadReceiptsFetchStateByTransactionId:l,uploadReceiptsShowTickByTransactionId:C,isViewReceiptClickedImmediatelyAfterUploadTransactionId:g,cardId:x,cardsEndPoint:b,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:d,receiptRequiredAboveAmount:f,authParams:v,updateChargeCardTransactionAttachments:$,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:D,updateChargeCardTransactionReceiptsShowTick:u,updateChargeCardTransactionIsViewReceiptClicked:A,onChargeCardTransactionRowClick:S,removeSnackbar:z})=>{const{selectedTransactionId:M}=ao(),y=M!=null&&p[e].thirdPartyTransactionId===M;return t.jsx($c,{style:{...m,width:"100%"},isPanelSelected:y,className:"spend-management-list-item",children:t.jsx("div",{"data-transaction-row":!0,children:t.jsx(mc,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardId:x,isAiCategorizationEnabledForCardsTransactions:w,cardsEndPoint:b,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:d,authParams:v,receiptRequiredAboveAmount:f,transaction:p[e],uploadReceiptsFetchState:l?.[p[e].id],uploadReceiptsShowTick:C?.[p[e].id],isViewReceiptClickedImmediatelyAfterUpload:g?.[p[e].id],updateChargeCardTransactionAttachments:$,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:D,updateChargeCardTransactionReceiptsShowTick:u,updateChargeCardTransactionIsViewReceiptClicked:A,onChargeCardTransactionRowClick:S,removeSnackbar:z},p[e].id)})})},uc=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:m,uploadReceiptsFetchState:p,uploadReceiptsShowTick:w,isViewReceiptClickedImmediatelyAfterUpload:l,cardsEndPoint:C,transactionAttachmentsEndpointToFetch:g,transactionAttachmentEndpointToDownload:x,cardId:b,receiptRequiredAboveAmount:n,authParams:d,updateChargeCardTransactionAttachments:f,onUploadReceiptComplete:v,updateChargeCardTransactionUploadReceiptsFetchStatus:$,updateChargeCardTransactionReceiptsShowTick:j,updateChargeCardTransactionIsViewReceiptClicked:D,onChargeCardTransactionRowClick:u,removeSnackbar:A})=>{const S=Ie()==="small"?Vd:hd;return t.jsx(S,{isSnackbarOpen:s,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:g,transactionAttachmentEndpointToDownload:x,uploadReceiptsFetchState:p,uploadReceiptsShowTick:w,isViewReceiptClickedImmediatelyAfterUpload:l,transaction:e,cardId:b,receiptRequiredAboveAmount:n,cardsEndPoint:C,authParams:d,updateChargeCardTransactionAttachments:f,onUploadReceiptComplete:v,updateChargeCardTransactionUploadReceiptsFetchStatus:$,updateChargeCardTransactionReceiptsShowTick:j,updateChargeCardTransactionIsViewReceiptClicked:D,onChargeCardTransactionRowClick:u,removeSnackbar:A})},mc=o.memo(uc),gc=(e,i,s,m,p)=>t.jsx(ti,{...e,onColumnSortConfigChanged:p,hideSorting:i,uiState:{sortKey:s.sortKey,sortOrder:s.sortOrder},fetchState:m}),ti=o.forwardRef((e,i)=>{const{children:s,style:m,uiState:p,onColumnSortConfigChanged:w,hideSorting:l,...C}=e;return t.jsxs(jc,{ref:i,style:{...m,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)"},...C,children:[t.jsx(qs,{onColumnSortConfigChanged:w,sortConfig:{sortKey:p.sortKey,sortOrder:p.sortOrder},hideSorting:l}),t.jsx(wc,{children:s})]})});ti.displayName="Charge Card Transaction list View inner element type";const Cc=r.div`
|
|
1028
|
-
display: block;
|
|
1029
|
-
height: ${e=>e.isEmptyTransaction?"calc(100vh - 436px)":"calc(100vh - 224px)"};
|
|
1030
|
-
width: 100%;
|
|
1031
|
-
`,fc=r.div`
|
|
1032
|
-
height: 100%;
|
|
1033
|
-
`,wc=r.div`
|
|
1034
|
-
position: relative;
|
|
1035
|
-
width: auto;
|
|
1036
|
-
height: 100%;
|
|
1037
|
-
`,xc=r.div`
|
|
1038
|
-
height: 100%;
|
|
1039
|
-
display: flex;
|
|
1040
|
-
flex-direction: column;
|
|
1041
|
-
max-width: 99.9%;
|
|
1042
|
-
`,yc=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
|
-
`,bc=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
|
-
`,Sc=r(aa)`
|
|
1065
|
-
margin-top: ${a.sp3};
|
|
1066
|
-
color: ${e=>e.theme.colors.hero};
|
|
1067
|
-
`,$c=r.div`
|
|
1068
|
-
top: ${a.sp0};
|
|
1069
|
-
left: ${a.sp0};
|
|
1070
|
-
padding-bottom: ${a.sp3};
|
|
1071
|
-
box-sizing: border-box;
|
|
1072
|
-
${e=>e.isPanelSelected===!0&&we`
|
|
1073
|
-
[data-transaction-row] {
|
|
1074
|
-
${Wo(e.theme)}
|
|
1075
|
-
}
|
|
1076
|
-
`}
|
|
1077
|
-
`,vc=r.div`
|
|
1078
|
-
display: flex;
|
|
1079
|
-
width: 100%;
|
|
1080
|
-
height: 100%;
|
|
1081
|
-
flex-direction: row;
|
|
1082
|
-
justify-content: center;
|
|
1083
|
-
align-items: center;
|
|
1084
|
-
margin-top: ${a.sp3};
|
|
1085
|
-
margin-bottom: ${a.sp3};
|
|
1086
|
-
`,kc=r.div`
|
|
1087
|
-
display: flex;
|
|
1088
|
-
width: 100%;
|
|
1089
|
-
height: auto;
|
|
1090
|
-
padding-bottom: ${a.sp3};
|
|
1091
|
-
flex-direction: row;
|
|
1092
|
-
justify-content: center;
|
|
1093
|
-
align-items: center;
|
|
1094
|
-
`,na=r.div`
|
|
1095
|
-
display: flex;
|
|
1096
|
-
justify-content: center;
|
|
1097
|
-
align-items: center;
|
|
1098
|
-
flex-direction: column;
|
|
1099
|
-
gap: ${a.sp2};
|
|
1100
|
-
height: 100%;
|
|
1101
|
-
margin: ${a.sp0} ${a.sp3};
|
|
1102
|
-
`,sa=r.div`
|
|
1103
|
-
display: flex;
|
|
1104
|
-
flex-direction: column;
|
|
1105
|
-
align-items: center;
|
|
1106
|
-
`,da=r(go)`
|
|
1107
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
1108
|
-
`,ca=r(Fr)`
|
|
1109
|
-
color: ${e=>e.theme.colors.primary};
|
|
1110
|
-
${e=>e.windowSize!=="small"?we`
|
|
1111
|
-
white-space: pre;
|
|
1112
|
-
`:null};
|
|
1113
|
-
text-align: center;
|
|
1114
|
-
`,la=r.div``,jc=r.div``,ai=r(oc)``,Ic=r(nc)``,{spendManagement:Lc}=ke.getLocalizedStrings(),{cardDetails:He}=Lc.chargeCard,Dc=Hr`
|
|
1115
|
-
from {
|
|
1116
|
-
transform: translateX(100%);
|
|
1117
|
-
}
|
|
1118
|
-
to {
|
|
1119
|
-
transform: translateX(0);
|
|
1120
|
-
}
|
|
1121
|
-
`,Tc=e=>{switch(e){case"slide-in-right-to-left-add-to-wallet":return Dc;default:return null}},Ac=r.div`
|
|
1122
|
-
display: flex;
|
|
1123
|
-
flex-direction: column;
|
|
1124
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1125
|
-
height: inherit;
|
|
1126
|
-
`,Ec=r(Ac)`
|
|
1127
|
-
animation: ${e=>Tc(e.className)} 0.3s forwards;
|
|
1128
|
-
`,Rc=({isChargeCardAdmin:e,chargeCardDetailView:i,walletType:s,secretRevealed:m,isDrawerOpen:p,vgsVaultId:w,showSecretInfo:l,changePinInProcess:C,isSandboxEnv:g,controllerEmails:x,isChargeCardFeatureEnabled:b,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:d,isChargeCardSetupEnabled:f,chargeCardCashbackDetailState:v,isCardDetailErrored:$,creditAccountRepayment:j,productInformation:D,creditAccountInformation:u,debitAccountInformation:A,cashbackInformation:S,signedInUserToken:z,selectedColor:M,showDrawerAnimation:y,cardDetailsFetchState:Z,setCardDetailsFetchState:Y,setIsCardDetailErrored:J,setShowSecretInfo:E,setSecretRevealed:G,setShowChangePinPopup:ie,setIsAddToWalletDrawerOpen:se,isCardDetailFetching:V,handleColorCodeClick:q,onFireOnClickAnalytics:B,onVerifyOtp:ee,onVerifyOtpSuccess:te,onResendOtp:le,onFireVerifyPopOnClickAnalytics:ae,onGetOtp:H})=>{const oe=at(),[K,I]=o.useState(!1),[O,U]=o.useState(!1),de=y.current;return o.useEffect(()=>{p?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[p,y]),t.jsx(zi,{onClose:()=>{se(!1)},anchor:"right",open:!0,PaperProps:{style:{maxWidth:"512px",boxShadow:"none",background:"transparent"}},style:{backgroundColor:c.drawerBackground,display:p?"unset":"none"},disableScrollLock:!p,transitionDuration:250,"data-testid":Q("add-card-to-wallet-drawer"),children:t.jsxs(t.Fragment,{children:[t.jsx(vr,{phoneNumberPopupDescription:He.verifyPhoneNumberDescription,showOtpPopup:K,showPhoneNumberPopup:O,twoFactorAuthenticationView:i.twoFAView,loggedInUserPhone:i.loggedInUserPhone,onVerifyOtp:ee,onVerifyOtpSuccess:k=>{te(k),C?ie(!0):E(!0)},onFireVerifyPopOnClickAnalytics:ae,setShowOtpPopup:I,onResendOtp:le,setShowPhoneNumberPopup:U,onGetOtp:H}),t.jsxs(Ec,{className:de,children:[t.jsx(Mi,{title:s==="apple"?He.addCardToAppleWallet:He.addCardToGoogleWallet,style:{zIndex:4},backgroundColor:oe.colors.grey4,onCloseClick:()=>se(!1)}),t.jsxs(Pc,{children:[t.jsxs(Oc,{children:[t.jsxs(zc,{children:[t.jsx(Zc,{children:t.jsx(qc,{})}),t.jsx(Nc,{children:He.openWalletAppOnPhone})]}),t.jsx(Bc,{children:s==="apple"?He.openWalletDescriptionApple:He.openWalletDescriptionGoogle}),t.jsx(_r,{isChargeCardAdmin:e,onUnlockChargeCard:()=>{},chargeCardDetailView:i,creditAccountRepayment:j,creditAccount:i.creditAccount,setShowSecretInfo:E,secretRevealed:m,isOwnCard:!0,controllerEmails:x,isChargeCardFeatureEnabled:b,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:d,isChargeCardSetupEnabled:f,chargeCardCashbackDetailState:v,isShowingInDrawer:!0,vgsVaultId:w,showSecretInfo:l,isSandboxEnv:g,isCardDetailErrored:$,signedInUserToken:z,productInformation:D,creditAccountInformation:u,debitAccountInformation:A,cashbackInformation:S,selectedColor:M,cardDetailsFetchState:Z,setCardDetailsFetchState:Y,setIsCardDetailErrored:J,setSecretRevealed:G,isCardDetailFetching:V,handleColorCodeClick:q,onFireOnClickAnalytics:B,setShowPhoneNumberForOtp:U})]}),t.jsx(Vc,{}),t.jsxs(Hc,{children:[t.jsxs(Mc,{children:[t.jsx(Uc,{children:t.jsx(Gc,{})}),t.jsx(Wc,{children:He.verifyCard})]}),t.jsx(Fc,{children:t.jsx(_c,{children:s==="apple"?He.VerifyCardDescriptionApple:He.VerifyCardDescriptionGoogle})})]})]})]})]})})},Fc=r.div`
|
|
1129
|
-
display: flex;
|
|
1130
|
-
justify-content: end;
|
|
1131
|
-
`,Pc=r.div`
|
|
1132
|
-
margin: ${a.sp3} ${a.sp8};
|
|
1133
|
-
`,zc=r.div`
|
|
1134
|
-
display: flex;
|
|
1135
|
-
align-items: center;
|
|
1136
|
-
gap: ${a.sp3};
|
|
1137
|
-
`,Mc=r.div`
|
|
1138
|
-
display: flex;
|
|
1139
|
-
align-items: center;
|
|
1140
|
-
gap: ${a.sp3};
|
|
1141
|
-
`,Vc=r.div`
|
|
1142
|
-
height: ${a.sp4};
|
|
1143
|
-
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
1144
|
-
width: ${a.sp0};
|
|
1145
|
-
margin-left: ${a.sp8};
|
|
1146
|
-
`,Oc=r.div`
|
|
1147
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1148
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1149
|
-
border-radius: ${a.sp2};
|
|
1150
|
-
padding: ${a.sp4} ${a.sp5};
|
|
1151
|
-
box-shadow: ${a.sp0} 1px 2px
|
|
1152
|
-
${e=>e.theme.colors.dropShadowNormal};
|
|
1153
|
-
`,Hc=r.div`
|
|
1154
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1155
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1156
|
-
border-radius: ${a.sp2};
|
|
1157
|
-
padding: ${a.sp4} ${a.sp5};
|
|
1158
|
-
box-shadow: ${a.sp0} 1px 2px
|
|
1159
|
-
${e=>e.theme.colors.dropShadowNormal};
|
|
1160
|
-
`,Nc=r(ra)`
|
|
1161
|
-
color: ${e=>e.theme.colors.primary};
|
|
1162
|
-
`,Bc=r(ze)`
|
|
1163
|
-
color: ${e=>e.theme.colors.hero};
|
|
1164
|
-
margin-left: ${a.sp9};
|
|
1165
|
-
padding-bottom: ${a.sp4};
|
|
1166
|
-
`,Wc=r(ra)`
|
|
1167
|
-
color: ${e=>e.theme.colors.primary};
|
|
1168
|
-
`,_c=r(ze)`
|
|
1169
|
-
color: ${e=>e.theme.colors.hero};
|
|
1170
|
-
max-width: 274px;
|
|
1171
|
-
`,Uc=r.div`
|
|
1172
|
-
padding: 12px;
|
|
1173
|
-
border-radius: ${a.sp4};
|
|
1174
|
-
background: ${c.successLight};
|
|
1175
|
-
display: flex;
|
|
1176
|
-
`,Zc=r.div`
|
|
1177
|
-
padding: 12px;
|
|
1178
|
-
border-radius: ${a.sp4};
|
|
1179
|
-
background: ${e=>e.theme.colors.graphColor16Light};
|
|
1180
|
-
display: flex;
|
|
1181
|
-
`,Gc=r(to)`
|
|
1182
|
-
width: ${a.sp4};
|
|
1183
|
-
height: ${a.sp4};
|
|
1184
|
-
`,qc=r(Po)`
|
|
1185
|
-
width: ${a.sp4};
|
|
1186
|
-
height: ${a.sp4};
|
|
1187
|
-
color: ${e=>e.theme.colors.graphColor16Dark};
|
|
1188
|
-
`,{spendManagement:{chargeCard:{cardDetails:Xe}},common:{strings:Yc}}=ke.getLocalizedStrings(),ha={iFrameWidth:new T(188,188)};function Jc({isSandboxEnv:e,cardProviderID:i,vgsVaultId:s,signedInUserToken:m,onCancelClick:p,onUpdateDebitCardPinAttempt:w,onChangePinSuccess:l}){const C=Ie(),g=at(),[x,b]=o.useState({}),[n,d]=o.useState(!1),[f,v]=o.useState(!1),[$,j]=o.useState(!0),[D,u]=o.useState(!0),[A,S]=o.useState(!1),[z,M]=o.useState(!1),[y,Z]=o.useState(!1),[Y,J]=o.useState(!1),[E,G]=o.useState(!1),[ie,se]=o.useState(!1),[V,q]=o.useState(!1),[B,ee]=o.useState(null),[te,le]=o.useState(null),[ae]=kr("https://js.verygoodvault.com/vgs-collect/2.27.0/vgs-collect.js"),H=e?"SANDBOX":"live";o.useEffect(()=>{if(ae){const I=window.VGSCollect.create(s,H,de=>{const k=de["data.attributes.oldPin"],R=de["data.attributes.newPin"];k?.isTouched===!0&&k?.isValid===!1&&k?.isFocused===!1?J(!0):(k?.isTouched===!0&&k?.isValid===!0&&k?.isFocused===!1||k?.isTouched===!0&&k?.isValid===!0&&k?.isFocused===!0)&&(J(!1),q(!1)),R?.isTouched===!0&&R?.isValid===!1&&R?.isFocused===!1?G(!0):(R?.isTouched===!0&&R?.isValid===!0&&R?.isFocused===!1||R?.isTouched===!0&&R?.isValid===!0&&R?.isFocused===!0)&&G(!1)}),O=I.field("#oldPin",{type:"text",name:"data.attributes.oldPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{..._.standardRegular.cssObject,border:"none",boxSizing:"border-box",color:g.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:g.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:c.important,background:c.importantLight},"&:focus":{background:`${g.colors.background} !important`,textAlign:"left",color:`${g.colors.primary} !important`}}}),U=I.field("#newPin",{type:"text",name:"data.attributes.newPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{..._.standardRegular.cssObject,border:"none",boxSizing:"border-box",color:g.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:g.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:c.important,background:c.importantLight},"&:focus":{background:`${g.colors.background} !important`,textAlign:"left",color:`${g.colors.primary} !important`}}});ee(O),le(U),b(I),Promise.all([O.promise,U.promise]).then(function(){v(!0)})}},[ae]),o.useEffect(()=>{B?.update({hideValue:$})},[B,$]),o.useEffect(()=>{te?.update({hideValue:D})},[te,D]);const oe=I=>{d(!0),q(!1),x.submit?.("/cards/"+i+"/secure-data/pin",{method:"PUT",mapDotToObject:"true",headers:{"Content-Type":"application/vnd.api+json",Authorization:"Bearer "+I?.token}},function(O,U){O===200?(S(!1),M(!1),l(),w("success")):(J(!0),w("failed"),U.errors?.[0].title.toLowerCase().includes("max")?se(!0):U.errors?.[0].title.toLowerCase().includes("invalid")&&q(!0),d(!1))},O=>{console.log("error",O),d(!1)})},K={onOkClick:()=>{if(!x.state)return;const I=x.state["data.attributes.newPin"]?.isValid,O=x.state["data.attributes.oldPin"]?.isValid;Z(!0),I===!0&&O===!0&&oe(m)},onCancelClick:p};return t.jsx(Fi,{titleComponent:t.jsx(Kc,{children:Xe.moreOptions.changePin}),descriptionComponent:t.jsxs(Xc,{children:[t.jsxs(rl,{children:[t.jsxs(gr,{showFieldError:Y,windowSize:C,isFirstField:!0,validation:y,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),oldPinInputHighlighted:A,children:[t.jsx(pr,{children:Xe.existingPin}),t.jsxs(ur,{windowSize:C,children:[t.jsx(al,{id:"oldPin",className:"cc-old-pin-form-field",windowSize:C}),t.jsx(cr,{onClick:()=>j(!$),"data-testid":Q("cc-old-pin-show-text"),children:$?t.jsx(lr,{}):t.jsx(hr,{})})]})]}),t.jsx(el,{}),t.jsxs(gr,{showFieldError:E,windowSize:C,isFirstField:!1,validation:y,onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),newPinInputHighlighted:z,children:[t.jsx(pr,{children:Xe.newPin}),t.jsxs(ur,{windowSize:C,children:[t.jsx(tl,{id:"newPin",className:"cc-new-pin-form-field",windowSize:C}),t.jsx(cr,{onClick:()=>u(!D),"data-testid":Q("cc-new-pin-show-text"),children:D?t.jsx(lr,{}):t.jsx(hr,{})})]})]})]}),V?t.jsx(mr,{children:Xe.incorrectCurrentPIN}):null,ie?t.jsx(mr,{children:Xe.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:f===!1||ie,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:K,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(Pi,{children:[t.jsx(Qc,{children:Xe.forgotYourPin}),Yc.space,Xe.callTollFree]})})}const Kc=r(eo)`
|
|
1189
|
-
margin-top: ${a.sp7};
|
|
1190
|
-
padding-left: ${a.sp8};
|
|
1191
|
-
padding-right: ${a.sp8};
|
|
1192
|
-
color: ${e=>e.theme.colors.primary};
|
|
1193
|
-
word-break: break-word;
|
|
1194
|
-
`,Xc=r(Ki)`
|
|
1195
|
-
margin-top: ${a.sp5};
|
|
1196
|
-
margin-bottom: ${a.sp5};
|
|
1197
|
-
`,Qc=r.span`
|
|
1198
|
-
color: ${e=>e.theme.colors.primary};
|
|
1199
|
-
`,cr=r.div`
|
|
1200
|
-
cursor: pointer;
|
|
1201
|
-
margin-left: ${a.sp2};
|
|
1202
|
-
`,lr=r(Xi)`
|
|
1203
|
-
height: ${a.sp4};
|
|
1204
|
-
width: ${a.sp4};
|
|
1205
|
-
color: ${e=>e.theme.colors.hero};
|
|
1206
|
-
`,hr=r(Qi)`
|
|
1207
|
-
height: ${a.sp4};
|
|
1208
|
-
width: ${a.sp4};
|
|
1209
|
-
color: ${e=>e.theme.colors.hero};
|
|
1210
|
-
`,pr=r.label`
|
|
1211
|
-
margin-top: ${a.sp2};
|
|
1212
|
-
`,ur=r.div`
|
|
1213
|
-
display: flex;
|
|
1214
|
-
flex-direction: row;
|
|
1215
|
-
align-items: center;
|
|
1216
|
-
max-width: 220px;
|
|
1217
|
-
`,mr=r(ze)`
|
|
1218
|
-
color: ${c.important};
|
|
1219
|
-
display: flex;
|
|
1220
|
-
flex-direction: column;
|
|
1221
|
-
align-items: center;
|
|
1222
|
-
text-align: right;
|
|
1223
|
-
margin-top: ${a.sp3};
|
|
1224
|
-
`,el=r.div`
|
|
1225
|
-
display: flex;
|
|
1226
|
-
flex: 1;
|
|
1227
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
1228
|
-
min-height: 1px;
|
|
1229
|
-
max-height: 1px;
|
|
1230
|
-
`,tl=r.div`
|
|
1231
|
-
border-radius: ${a.sp1};
|
|
1232
|
-
height: ${a.sp6};
|
|
1233
|
-
width: ${e=>ha.iFrameWidth.valuePx(e.windowSize)};
|
|
1234
|
-
`,al=r.div`
|
|
1235
|
-
border-radius: ${a.sp1};
|
|
1236
|
-
height: ${a.sp6};
|
|
1237
|
-
width: ${e=>ha.iFrameWidth.valuePx(e.windowSize)};
|
|
1238
|
-
`,rl=r.div`
|
|
1239
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
1240
|
-
border-radius: ${a.sp2};
|
|
1241
|
-
`,gr=r.div`
|
|
1242
|
-
display: flex;
|
|
1243
|
-
padding: ${a.sp2};
|
|
1244
|
-
padding-left: ${a.sp4};
|
|
1245
|
-
align-items: start;
|
|
1246
|
-
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1247
|
-
border-radius: ${a.sp2};
|
|
1248
|
-
justify-content: space-between;
|
|
1249
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1250
|
-
gap: 11px;
|
|
1251
|
-
&:hover {
|
|
1252
|
-
z-index: 1;
|
|
1253
|
-
outline: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
1254
|
-
}
|
|
1255
|
-
iframe {
|
|
1256
|
-
height: 100%;
|
|
1257
|
-
width: ${e=>ha.iFrameWidth.valuePx(e.windowSize)};
|
|
1258
|
-
}
|
|
1259
|
-
.cc-new-pin-form-field {
|
|
1260
|
-
background: ${e=>e.showFieldError?c.importantLight:e.newPinInputHighlighted===!0?e.theme.colors.background:"unset"};
|
|
1261
|
-
}
|
|
1262
|
-
.cc-old-pin-form-field {
|
|
1263
|
-
background: ${e=>e.showFieldError?c.importantLight:e.oldPinInputHighlighted===!0?e.theme.colors.background:"unset"};
|
|
1264
|
-
}
|
|
1265
|
-
${e=>e.isFirstField?we`
|
|
1266
|
-
border-bottom-left-radius: ${a.sp0};
|
|
1267
|
-
border-bottom-right-radius: ${a.sp0};
|
|
1268
|
-
`:we`
|
|
1269
|
-
border-top-left-radius: ${a.sp0};
|
|
1270
|
-
border-top-right-radius: ${a.sp0};
|
|
1271
|
-
`}
|
|
1272
|
-
${e=>e.validation?we`
|
|
1273
|
-
.vgs-collect-container__invalid:not(.vgs-collect-container__focused) {
|
|
1274
|
-
background: ${c.importantLight};
|
|
1275
|
-
}
|
|
1276
|
-
.vgs-collect-container__focused) {
|
|
1277
|
-
background: ${e.theme.colors.background};
|
|
1278
|
-
}
|
|
1279
|
-
`:null}
|
|
1280
|
-
`,Ae={bottomContentContainerPadding:new T(h[3],h[8]),styledAIIconContainerSize:new T(h[3],h[3]),bannerWrapperMarginLeftRight:new T(h[3],h[8]),payNowSectionPaddingLeftRight:new T(h[3],h[0]),styledHighImportanceIconMarginRight:new T(h[0],h[1])},{common:Le,spendManagement:il,dateFormat:ol}=ke.getLocalizedStrings(),me=il.chargeCard,Xl=({chargeCardDetailView:e,onUnlockChargeCard:i,onCloseChargeCard:s,cardsEndPoint:m,classListFetchState:p,transactionAttachmentsEndpointToFetch:w,transactionAttachmentEndpointToDownload:l,authParams:C,hideSorting:g,cardId:x,vgsVaultId:b,controllerEmails:n,isCardControlsEnabled:d,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:v,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:j,chargeCardCashbackDetailState:D,onFetchChargeCardsRecurringExpenses:u,productInformation:A,cashbackInformation:S,creditAccountInformation:z,debitAccountInformation:M,creditAccount:y,cardIssuedByRoles:Z,cardIssuedByDepartmentName:Y,cardHolderRoles:J,cardHolderDepartmentName:E,loggedInUserRole:G,appleWalletLink:ie,googleWalletLink:se,signedInUser:V,signedInUserToken:q,chargeCardsRecurringExpensesState:B,isSandboxEnv:ee,isEarlyPayEnabled:te,documentAiReceiptMaxSizeLimit:le,isSnackbarOpen:ae,onFireOnClickAnalytics:H,onUpdateDebitCardPinAttempt:oe,onFireVerifyPopOnClickAnalytics:K,onBackClick:I,onReloadTransactions:O,onFetchChargeCardTransactionList:U,onGetOtp:de,onLockChargeCard:k,onResendOtp:R,onVerifyOtp:re,updateChargeCardName:ce,onVerifyOtpSuccess:L,onColorCodeChange:je,onColumnSortConfigChanged:fe,updateChargeCardTransactionAttachments:Ee,updateChargeCardTransactionUploadReceiptsFetchStatus:Re,updateChargeCardTransactionReceiptsShowTick:X,updateChargeCardTransactionIsViewReceiptClicked:N,onUploadReceiptComplete:W,removeSnackbar:Me,onChargeCardTransactionRowClick:ne,onChargeCardRevokeInviteClick:Ve,onUpdateScrollYOffset:Ye,updateSpendLimit:rt,shouldOpenCreditCardPaymentDrawer:pe,sidePanelIsOpen:F,sidePanelIsFullView:ue,panelContent:he})=>{const Ne=o.useRef(!0),Oe=at(),ge=Ie(),Je=Lt(),ht=Dt().analytics,[,pt]=Sr(),[it,xt]=o.useState(!1),[Fe,ot]=o.useState(!1),[Be,xe]=o.useState(!1),[yt,ut]=o.useState(!1),[Et,pa]=o.useState(!1),[Rt,ua]=o.useState(!1),[ii,oi]=o.useState(!1),[ni,ma]=o.useState(!1),[si,bt]=o.useState(!1),[di,Ft]=o.useState(!1),[ci,St]=o.useState(!1),[li,$t]=o.useState(!1),[nt,Pt]=o.useState(!1),[ga,zt]=o.useState(!1),[Ca,fa]=o.useState(!1),[hi,wa]=o.useState(!1),[pi,ui]=o.useState("apple"),[xa,ya]=o.useState({number:!1,cvv:!1});o.useEffect(()=>{nt===!1&&zt(!1)},[nt]);const ba=o.useRef("noAnimation"),We=e.chargeCard?.cardHolderUserId===V.userId,Mt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,Sa=e.chargeCard?.billingAddress,be=At(Je.loggedInUserRoleMap),{text1:mi,text2:gi}=Ti(Sa),$a=`${mi} ${gi}`,Vt=e.chargeCard?.isDeclinedTransaction===!0,Ci=()=>{Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:D,isChargeCardFeatureEnabled:f,productInformation:A,cashbackInformation:S,creditAccountInformation:z,debitAccountInformation:M,creditAccount:y,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:be,analytics:ht,controllerEmails:n,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),pt(e.chargeCardConfig.receiptBotEmail),xt(!0)},fi=()=>{H("card owner copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:D,isChargeCardFeatureEnabled:f,productInformation:A,cashbackInformation:S,creditAccountInformation:z,debitAccountInformation:M,creditAccount:y,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:be,analytics:ht,controllerEmails:n,actionField:"Card Owner",actionDetails:Mt}),pt(Mt),pa(!0)},wi=()=>{H("billing address copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:D,isChargeCardFeatureEnabled:f,productInformation:A,cashbackInformation:S,creditAccountInformation:z,debitAccountInformation:M,creditAccount:y,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:be,analytics:ht,controllerEmails:n,actionField:"Billing Address",actionDetails:$a}),pt($a),ua(!0)};o.useEffect(()=>{it===!0&&setTimeout(()=>{xt(!1)},800),Et===!0&&setTimeout(()=>{pa(!1)},800),Rt===!0&&setTimeout(()=>{ua(!1)},800)},[Et,Rt,it]);const[Rl,xi]=o.useState(!1),[va,ka]=o.useState(e.chargeCard?.cardColorCode!=null?new et(e.chargeCard.cardColorCode):void 0);o.useEffect(()=>{e.chargeCard?.cardColorCode!=null&&ka(new et(e.chargeCard.cardColorCode))},[e.chargeCard?.cardColorCode]);const ja={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(()=>{Ne.current===!0?Ne.current=!1:H(nt===!1?"card details hidden":"card detail revealed")},[nt]);const Ia=(P,Se)=>{if(Se===!0){const _e=Vi(P.toString())??Le.strings.empty;H("color selected",_e),je(_e),xi(!1)}ka(P)},La=P=>{const{cvv:Se,number:_e}=P;return Se===!0||_e===!0},{isMobileOrTabletScreen:Da}=$r(),Ot=e.chargeCard?.status.code!=="request_on_hold"&&e.chargeCard?.status.code!=="inactive",Ht=e.updateChargeCardLimitFetchState.fetchState,Nt=e.updateChargeCardNameFetchState.fetchState,Bt=e.lockChargeCardsFetchState.fetchState,Wt=e.closeChargeCardsFetchState.fetchState,Ta=tt(Ht),Aa=tt(Nt),Ea=tt(Bt),Ra=tt(Wt);o.useEffect(()=>{Ta==="In-Progress"&&Ht==="Completed"?bt(!1):Aa==="In-Progress"&&Nt==="Completed"?Ft(!1):Ea==="In-Progress"&&Bt==="Completed"?St(!1):Ra==="In-Progress"&&Wt==="Completed"&&$t(!1)},[Ht,Nt,Bt,Wt,Ta,Aa,Ea,Ra]);const De=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",yi=be&&(e.chargeCard?.status.code==="active"||e.chargeCard?.status.code==="locked")&&ja.amount<(De?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit.amount??0:e.creditAccount.limit.amount),bi=e.creditAccountRepayment.initiatedRepayments.amount>0&&be&&Vt,Si=()=>{if(!d)return[{value:"changePin",label:me.cardDetails.moreOptions.changePin}];const P=[{value:"changePin",label:me.cardDetails.moreOptions.changePin},{value:"unlock",label:me.cardDetails.moreOptions.unlock},{value:"updateSpendLimit",label:me.cardDetails.moreOptions.updateSpendLimit},{value:"rename",label:me.cardDetails.moreOptions.rename},{value:"lock",label:me.cardDetails.moreOptions.lock},{value:"close",label:me.cardDetails.moreOptions.close},{value:"revokeInvite",label:me.cardDetails.moreOptions.revokeInvite}],Se=e.chargeCard?.status.code,_e=Se==="locked",ji=Se==="inactive",Ii=Se==="request_on_hold",Li=e.chargeCard?.isLockedByAdmin===!0,za=De&&We,vt=be;if(Ii){const Pe=[];return vt&&Pe.push("revokeInvite"),Pe.push("rename"),P.filter(_t=>Pe.includes(_t.value))}if(ji){const Pe=[];return Pe.push("rename"),za&&Pe.push("changePin"),vt&&Pe.push("close"),P.filter(_t=>Pe.includes(_t.value))}const Di={changePin:za&&!_e,lock:!_e,unlock:_e&&(be||!Li),rename:!0,updateSpendLimit:vt,close:vt};return P.filter(Pe=>Di[Pe.value])},Fa=t.jsx("div",{children:t.jsx(Ai,{entity:"debit_cards",isDisabled:e.unlockChargeCardsFetchState.fetchState==="In-Progress"?"disabled":void 0,onOptionSelection:P=>{P==="changePin"?(q==null||q.expiry.isBefore(new Date)?de(e.loggedInUserPhone):ut(!0),xe(!0)):P==="updateSpendLimit"?bt(!0):P==="rename"?Ft(!0):P==="lock"?(St(!0),u()):P==="close"?($t(!0),u()):P==="unlock"?i(be):P==="revokeInvite"&&Ve()},isMoreOption:!0,options:Si(),customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),valueContainer:P=>({...P,display:"flex",alignItems:"center"})}})}),Pa=P=>P.reasonType==="other"?P.reason:P.reasonType,$i=P=>{const Se=Pa(P);k(be,Se)},vi=P=>{const Se=Pa(P);s(Se)},ki=()=>{const P=e.chargeCard?.status.code;if(P==="closed"||P==="closed_by_customer")return null;if(!d)return We&&De?Fa:null;if(!We&&!be)return null;const Se=e.chargeCard?.isLockedByAdmin===!0;return We&&!be&&Se&&P==="locked"?null:Fa};return t.jsxs(wl,{children:[ci&&e.chargeCard!=null&&t.jsx(_o,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>St(!1),isChargeCardAdmin:be,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:B.recurringExpenses},cardRecurringExpenseFetchState:B.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:$i,onDismissClick:()=>St(!1),onRemoveCardClick:()=>{}}),li&&e.chargeCard!=null&&t.jsx(Uo,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>$t(!1),isChargeCardAdmin:be,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:B.recurringExpenses},cardRecurringExpenseFetchState:B.fetchState,closeCardFetchState:e.closeChargeCardsFetchState.fetchState,onConfirmClick:vi,onDismissClick:()=>$t(!1),onRemoveCardClick:()=>{}}),yt&&e.chargeCard?.cardProviderID!=null?t.jsx(Jc,{signedInUserToken:q,vgsVaultId:b,onCancelClick:()=>{ut(!1),xe(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{ut(!1),xe(!0)},onUpdateDebitCardPinAttempt:oe}):null,Da?null:t.jsx(Rc,{isChargeCardAdmin:be,controllerEmails:n,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:v,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:j,chargeCardCashbackDetailState:D,creditAccountRepayment:e.creditAccountRepayment,productInformation:A,cashbackInformation:S,creditAccountInformation:z,debitAccountInformation:M,creditAccount:e.creditAccount,selectedColor:va,walletType:pi,onFireOnClickAnalytics:H,isSandboxEnv:ee,chargeCardDetailView:e,vgsVaultId:b,signedInUserToken:q,showSecretInfo:nt,changePinInProcess:Be,setShowChangePinPopup:ut,isCardDetailErrored:Ca,cardDetailsFetchState:xa,setCardDetailsFetchState:ya,setIsCardDetailErrored:fa,isCardDetailFetching:La,handleColorCodeClick:Ia,isDrawerOpen:hi,setIsAddToWalletDrawerOpen:wa,onVerifyOtp:re,onVerifyOtpSuccess:L,onFireVerifyPopOnClickAnalytics:K,onResendOtp:R,setShowSecretInfo:Pt,secretRevealed:ga,setSecretRevealed:zt,onGetOtp:de,showDrawerAnimation:ba}),t.jsx(Ei,{rightSideComponent:ki(),navBarContainerStyles:{paddingTop:h[2],alignItems:"center",paddingBottom:h[2]},source:"ChargeCardDetailPage",title:e.chargeCard?.cardName??Le.strings.empty,subTitle:e.fetchState==="Completed"&&e.chargeCard!=null?t.jsx(Bo,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:Oe.colors.grey5,style:{zIndex:3},onBackClick:I,titleStyle:{marginTop:h[0],...ge==="small"&&{textAlign:"left"}},leftComponentStyle:ge==="small"?{width:"10%"}:void 0,middleComponentStyle:ge==="small"?{width:"80%"}:void 0,rightComponentStyle:ge==="small"?{width:"10%"}:void 0}),t.jsx(vr,{phoneNumberPopupDescription:me.cardDetails.verifyPhoneNumberDescription,showOtpPopup:ii,showPhoneNumberPopup:ni,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:re,onVerifyOtpSuccess:P=>{L(P),Be?ut(!0):Pt(!0)},onFireVerifyPopOnClickAnalytics:K,setShowOtpPopup:oi,onResendOtp:R,setShowPhoneNumberPopup:ma,onGetOtp:de}),di&&t.jsx(Zo,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Ft(!1),onSubmitClick:P=>{e.chargeCard&&ce(be,P)}}),si&&e.chargeCard!=null?t.jsx(Go,{controllerEmails:n,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:v,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:j,productInformation:A,cashbackInformation:S,creditAccountInformation:z,debitAccountInformation:M,cardDetail:e.chargeCard,transactionStatistics:e.transactionStatistics,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,creditAccount:y,creditAccountRepayment:e.creditAccountRepayment,signedInUser:V,isDebitCard:De,cardIssuedByRoles:Z,cardHolderRoles:J,loggedInUserRole:G,cardIssuedByDepartmentName:Y,cardHolderDepartmentName:E,classListFetchState:p,currentLimitAmount:e.chargeCard?.limit??{amount:0,currencyCode:Le.currency.countryCode,currencySymbol:Le.currency.currencySymbol},currentSpentAmount:e.chargeCard?.balance??{amount:0,currencyCode:Le.currency.countryCode,currencySymbol:Le.currency.currencySymbol},maxLimitAmount:De?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:e.creditAccount.limit,isDisabled:De&&e.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>bt(!1),onSubmitClick:P=>{if(e.chargeCard){const Se={amount:P,currencyCode:e.chargeCard.limit.currencyCode,currencySymbol:e.chargeCard.limit.currencySymbol};rt(e.chargeCard.id,Se,e.chargeCard.creditLimitFrequency,qe("0,0.[00]",Se))}},recommendations:e?.chargeCard?.recommendations}):null,e.fetchState==="Error"?t.jsxs(pl,{windowSize:ge,children:[t.jsx(gl,{onClick:O,"data-testid":Q("reload-card-detail"),children:t.jsx(fl,{})}),t.jsx(Cl,{children:Le.reloadPage.label})]}):t.jsx(Ri,{isOpen:F??!1,isFullView:ue??!1,panelContent:he,headerContent:t.jsxs(Cr,{children:[t.jsx(ls,{controllerEmails:n,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:v,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:j,creditAccount:y,creditAccountRepayment:e.creditAccountRepayment,productInformation:A,cashbackInformation:S,creditAccountInformation:z,debitAccountInformation:M,isDebitCard:De,chargeCardCashbackDetailState:D,cardIssuedByRoles:Z,cardIssuedByDepartmentName:Y,cardHolderRoles:J,cardHolderDepartmentName:E,classListFetchState:p,chargeCardDetailView:e,spent:ja,isCardNotPending:Ot,cardOwnerName:Mt,appleWalletLink:ie,googleWalletLink:se,addressToShow:Sa,secretRevealed:ga,isOwnCard:We,vgsVaultId:b,showSecretInfo:nt,isSandboxEnv:ee,isCardDetailErrored:Ca,signedInUserToken:q,selectedColor:va,cardDetailsFetchState:xa,setCardDetailsFetchState:ya,setIsCardDetailErrored:fa,setSecretRevealed:zt,isCardDetailFetching:La,handleColorCodeClick:Ia,onFireOnClickAnalytics:H,setShowPhoneNumberPopup:ma,setShowChangeSpendLimitPopup:bt,setShowSecretInfo:Pt,isOwnerNameCopied:Et,isAddressCopied:Rt,onOwnerNameCopyClick:fi,onAddressCopyClick:wi,showUpdateSpendLimitAction:yi,onUnlockChargeCard:i}),te?bi?t.jsxs(sl,{windowSize:ge,children:[t.jsx(Sl,{}),t.jsx(cl,{children:` ${me.payEarly.paymentOf} ${qe("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${me.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(ol.visual.MMMDFormat)} ${me.payEarly.isProcessing} ${me.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):Vt?be?t.jsxs(ri,{onClick:()=>{pe(!0)},windowSize:ge,children:[t.jsx(fr,{windowSize:ge}),t.jsxs(ul,{children:[t.jsx(wr,{children:me.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(ll,{className:"pay-now-button",children:[me.payEarly.payNow,t.jsx(dl,{})]})]})]}):t.jsxs(nl,{windowSize:ge,children:[t.jsx(fr,{windowSize:ge}),t.jsx(ml,{children:t.jsx(wr,{children:me.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,We&&ge!=="small"&&Ot&&De===!1?t.jsx(qo,{style:{marginTop:Vt?a.sp5:a.sp4},classListFetchState:p,controllerEmails:n,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:v,isDebitCardSetupEnabled:$,isChargeCardSetupEnabled:j,chargeCardDetailView:e,creditAccount:y,creditAccountRepayment:e.creditAccountRepayment,productInformation:A,cashbackInformation:S,creditAccountInformation:z,debitAccountInformation:M,cardIssuedByRoles:Z,cardHolderRoles:J,cardIssuedByDepartmentName:Y,cardHolderDepartmentName:E,isDebitCard:De,appleWalletLink:ie,googleWalletLink:se,setWalletType:ui,setIsAddToWalletDrawerOpen:wa,showDrawerAnimation:ba}):null]}),listContent:t.jsx(Cr,{children:t.jsxs(El,{windowSize:ge,isOwnCard:We,isMobileOrTabletScreen:Da,children:[Ot&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(yl,{windowSize:ge,children:[me.cardDetails.transactionListTitle,t.jsx(ta,{display:"flex",placement:"right",title:t.jsx($l,{children:me.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(bl,{})})]}),t.jsxs(vl,{windowSize:ge,children:[t.jsx(Ll,{windowSize:ge,children:t.jsx(Dl,{})}),t.jsxs(xl,{windowSize:ge,children:[t.jsxs(kl,{children:[t.jsx(hl,{children:me.aiCardAgentText}),Le.strings.space,me.receiptBotMessage,Le.strings.space]}),t.jsxs(Il,{"data-testid":Q("charge-card-detail-copy-email"),onClick:Ci,onMouseEnter:()=>ot(!0),onMouseLeave:()=>ot(!1),children:[t.jsx(jl,{children:e.chargeCardConfig.receiptBotEmail}),it===!0?t.jsxs(yr,{children:[t.jsx(Al,{}),t.jsx(xr,{children:t.jsx(br,{shouldDisplay:Fe||it,color:c.primaryDark,children:Le.copyToClipBoard.copied})})]}):t.jsxs(yr,{children:[t.jsx(Tl,{color:Fe?Oe.colors.primary:void 0}),t.jsx(xr,{children:t.jsx(br,{shouldDisplay:Fe&&ge!=="small",children:Le.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(dc,{cardStatusCode:e.chargeCard?.status.code,cardCodeType:e.chargeCard?.type.code,cardId:x,documentAiReceiptMaxSizeLimit:le,uploadReceiptsFetchStateByTransactionId:e.uploadReceiptsFetchStateByTransactionId,isSnackbarOpen:ae,uploadReceiptsShowTickByTransactionId:e.uploadReceiptsShowTickByTransactionId,isViewReceiptClickedImmediatelyAfterUploadTransactionId:e.isViewReceiptClickedImmediatelyAfterUploadTransactionId,receiptRequiredAboveAmount:e.chargeCardConfig.receiptRequiredAboveAmount,cardsEndPoint:m,transactionAttachmentsEndpointToFetch:w,transactionAttachmentEndpointToDownload:l,authParams:C,hideSorting:g,transactions:e.transactions,cardHolderUser:e.chargeCard?.cardHolderUser,uiState:e.uiState,fetchState:e.transactionListFetchState.fetchState,isAiCategorizationEnabledForCardsTransactions:e.chargeCardConfig.isAiCategorizationEnabledForCardsTransactions,onReloadTransactions:O,onFetchChargeCardTransactionList:U,isOwnCard:We,onColumnSortConfigChanged:fe,removeSnackbar:Me,onChargeCardTransactionRowClick:ne,onUpdateScrollYOffset:Ye,onUploadReceiptComplete:W,updateChargeCardTransactionAttachments:Ee,updateChargeCardTransactionUploadReceiptsFetchStatus:Re,updateChargeCardTransactionReceiptsShowTick:X,updateChargeCardTransactionIsViewReceiptClicked:N})]})})})]})},Xt=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:s,productInformation:m,cashbackInformation:p,creditAccountInformation:w,debitAccountInformation:l,creditAccount:C,creditAccountRepayment:g,isDebitCard:x,isChargeCardAdmin:b,analytics:n,controllerEmails:d,actionDetails:f,actionField:v})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!s||C.fetchState==="Completed"&&g.fetchState==="Completed")&&(!(x&&b)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(d,m,"Cards Detail","Copy","copied",v,f,p,w,l)},Cr=r.div``,ri=r.div`
|
|
1281
|
-
background: ${c.important};
|
|
1282
|
-
display: flex;
|
|
1283
|
-
align-items: center;
|
|
1284
|
-
justify-content: center;
|
|
1285
|
-
padding-top: ${a.sp3};
|
|
1286
|
-
padding-bottom: ${a.sp3};
|
|
1287
|
-
padding-left: ${({windowSize:e})=>Ae.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1288
|
-
padding-right: ${({windowSize:e})=>Ae.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1289
|
-
gap: ${a.sp1};
|
|
1290
|
-
align-items: start;
|
|
1291
|
-
cursor: pointer;
|
|
1292
|
-
:hover {
|
|
1293
|
-
.pay-now-button {
|
|
1294
|
-
text-decoration: underline;
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
`,nl=r(ri)``,sl=r.div`
|
|
1298
|
-
background: ${c.alertLight};
|
|
1299
|
-
display: flex;
|
|
1300
|
-
align-items: start;
|
|
1301
|
-
justify-content: center;
|
|
1302
|
-
padding-top: ${a.sp3};
|
|
1303
|
-
padding-bottom: ${a.sp3};
|
|
1304
|
-
padding-left: ${({windowSize:e})=>Ae.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1305
|
-
padding-right: ${({windowSize:e})=>Ae.payNowSectionPaddingLeftRight.valuePx(e)};
|
|
1306
|
-
gap: ${a.sp2};
|
|
1307
|
-
`,fr=r(Gi)`
|
|
1308
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1309
|
-
margin-right: ${({windowSize:e})=>Ae.styledHighImportanceIconMarginRight.valuePx(e)};
|
|
1310
|
-
min-width: ${a.sp4};
|
|
1311
|
-
width: ${a.sp4};
|
|
1312
|
-
height: ${a.sp4};
|
|
1313
|
-
path:nth-child(2),
|
|
1314
|
-
path:nth-child(3) {
|
|
1315
|
-
stroke: ${c.important};
|
|
1316
|
-
}
|
|
1317
|
-
`,dl=r(qi)`
|
|
1318
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1319
|
-
min-width: 12px;
|
|
1320
|
-
width: 12px;
|
|
1321
|
-
height: 12px;
|
|
1322
|
-
`,wr=r(ia)`
|
|
1323
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1324
|
-
`,cl=r(ia)`
|
|
1325
|
-
color: ${c.brandColorGoldDark};
|
|
1326
|
-
`,ll=r(Lr)`
|
|
1327
|
-
color: ${e=>e.theme.colors.grey5};
|
|
1328
|
-
gap: ${a.sp1};
|
|
1329
|
-
cursor: pointer;
|
|
1330
|
-
display: inline-flex;
|
|
1331
|
-
align-items: center;
|
|
1332
|
-
white-space: nowrap;
|
|
1333
|
-
`,hl=r(Ni)`
|
|
1334
|
-
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
1335
|
-
${({theme:e})=>e.mode==="dark"&&`color: ${c.brandColorPearl};`}
|
|
1336
|
-
`,pl=r.div`
|
|
1337
|
-
display: flex;
|
|
1338
|
-
width: 100%;
|
|
1339
|
-
height: calc(100vh - ${e=>Oi.valuePx(e.windowSize)});
|
|
1340
|
-
flex-direction: column;
|
|
1341
|
-
justify-content: center;
|
|
1342
|
-
align-items: center;
|
|
1343
|
-
background: ${e=>e.theme.colors.grey5};
|
|
1344
|
-
`,ul=r.div``,ml=r.div``,gl=r.div`
|
|
1345
|
-
height: ${a.sp12};
|
|
1346
|
-
width: ${a.sp12};
|
|
1347
|
-
background: ${e=>e.theme.colors.background};
|
|
1348
|
-
display: flex;
|
|
1349
|
-
justify-content: center;
|
|
1350
|
-
align-items: center;
|
|
1351
|
-
border-radius: 50%;
|
|
1352
|
-
cursor: pointer;
|
|
1353
|
-
& svg {
|
|
1354
|
-
margin: ${a.sp5};
|
|
1355
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1356
|
-
}
|
|
1357
|
-
&:hover {
|
|
1358
|
-
& svg {
|
|
1359
|
-
color: ${e=>e.theme.colors.primary};
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
`,Cl=r(aa)`
|
|
1363
|
-
margin-top: ${a.sp3};
|
|
1364
|
-
color: ${e=>e.theme.colors.hero};
|
|
1365
|
-
`,fl=r(jr)`
|
|
1366
|
-
height: ${a.sp5};
|
|
1367
|
-
width: ${a.sp5};
|
|
1368
|
-
margin: ${a.sp5};
|
|
1369
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1370
|
-
&:hover {
|
|
1371
|
-
color: ${e=>e.theme.colors.primary};
|
|
1372
|
-
}
|
|
1373
|
-
`,wl=r.div`
|
|
1374
|
-
background: ${e=>e.theme.colors.grey4};
|
|
1375
|
-
`,xl=r.div`
|
|
1376
|
-
width: 100%;
|
|
1377
|
-
max-width: ${e=>e.windowSize==="small"?"calc(100% - 20px)":"unset"};
|
|
1378
|
-
`,yl=r(ra)`
|
|
1379
|
-
color: ${e=>e.theme.colors.primary};
|
|
1380
|
-
margin-bottom: ${a.sp3};
|
|
1381
|
-
display: flex;
|
|
1382
|
-
align-items: center;
|
|
1383
|
-
margin-right: ${e=>Ae.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
1384
|
-
margin-left: ${e=>Ae.bottomContentContainerPadding.valuePx(e.windowSize)};
|
|
1385
|
-
`,bl=r(Ir)`
|
|
1386
|
-
color: ${e=>e.theme.colors.hero};
|
|
1387
|
-
width: ${a.sp3};
|
|
1388
|
-
height: ${a.sp3};
|
|
1389
|
-
margin-left: ${a.sp2};
|
|
1390
|
-
&:hover {
|
|
1391
|
-
color: ${e=>e.theme.colors.primary};
|
|
1392
|
-
}
|
|
1393
|
-
`,Sl=r(Ir)`
|
|
1394
|
-
color: ${c.brandColorGoldDark};
|
|
1395
|
-
min-width: ${a.sp4};
|
|
1396
|
-
width: ${a.sp4};
|
|
1397
|
-
height: ${a.sp4};
|
|
1398
|
-
`,$l=r(Ce)`
|
|
1399
|
-
padding: 2px ${a.sp2};
|
|
1400
|
-
box-sizing: content-box;
|
|
1401
|
-
color: ${e=>e.theme.colors.hero};
|
|
1402
|
-
background: ${e=>e.theme.colors.black};
|
|
1403
|
-
border-radius: ${a.sp1};
|
|
1404
|
-
max-width: 178px;
|
|
1405
|
-
text-align: left;
|
|
1406
|
-
`,vl=r.div`
|
|
1407
|
-
display: flex;
|
|
1408
|
-
border: 1.25px solid transparent;
|
|
1409
|
-
background: ${e=>`linear-gradient(${e.theme.colors.grey4}, ${e.theme.colors.grey4}) padding-box,
|
|
1410
|
-
${c.receiptAgentLinearGradient}
|
|
1411
|
-
border-box`};
|
|
1412
|
-
padding: ${a.sp3} ${a.sp4};
|
|
1413
|
-
border-radius: ${a.sp2};
|
|
1414
|
-
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
1415
|
-
gap: ${a.sp1};
|
|
1416
|
-
margin: 0
|
|
1417
|
-
${e=>Ae.bannerWrapperMarginLeftRight.valuePx(e.windowSize)};
|
|
1418
|
-
`,kl=r(ia)`
|
|
1419
|
-
color: ${e=>e.theme.colors.primary};
|
|
1420
|
-
`,jl=r(Lr)`
|
|
1421
|
-
color: ${e=>e.theme.colors.primary};
|
|
1422
|
-
`,Il=r.span`
|
|
1423
|
-
cursor: pointer;
|
|
1424
|
-
`,xr=r.span`
|
|
1425
|
-
position: absolute;
|
|
1426
|
-
bottom: -${a.sp5};
|
|
1427
|
-
z-index: 10;
|
|
1428
|
-
left: ${a.sp2};
|
|
1429
|
-
`,yr=r.span`
|
|
1430
|
-
position: relative;
|
|
1431
|
-
margin-left: ${a.sp1};
|
|
1432
|
-
top: 2px;
|
|
1433
|
-
`,br=r(Ce)`
|
|
1434
|
-
position: relative;
|
|
1435
|
-
background: ${e=>e.theme.colors.black};
|
|
1436
|
-
color: ${e=>e.color!=null?e.color:e.theme.colors.grey1};
|
|
1437
|
-
padding: 2px ${a.sp2};
|
|
1438
|
-
z-index: 10;
|
|
1439
|
-
border-radius: ${a.sp1};
|
|
1440
|
-
left: -50%;
|
|
1441
|
-
display: ${e=>e.shouldDisplay?"block":"none"};
|
|
1442
|
-
`,Ll=r.div`
|
|
1443
|
-
width: ${e=>Ae.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1444
|
-
min-width: ${e=>Ae.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1445
|
-
height: ${e=>Ae.styledAIIconContainerSize.valuePx(e.windowSize)};
|
|
1446
|
-
top: ${a.sp1};
|
|
1447
|
-
position: ${e=>e.windowSize==="small"?"relative":"static"};
|
|
1448
|
-
`,Dl=r(Hi)`
|
|
1449
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
1450
|
-
width: 100%;
|
|
1451
|
-
height: 100%;
|
|
1452
|
-
`,Tl=r(Dr)`
|
|
1453
|
-
height: ${a.sp3};
|
|
1454
|
-
width: ${a.sp3};
|
|
1455
|
-
color: ${e=>e.color!=null?e.color:e.theme.colors.hero};
|
|
1456
|
-
cursor: pointer;
|
|
1457
|
-
&:hover {
|
|
1458
|
-
color: ${e=>e.theme.colors.primary};
|
|
1459
|
-
}
|
|
1460
|
-
`,Al=r(ft)`
|
|
1461
|
-
height: ${a.sp3};
|
|
1462
|
-
width: ${a.sp3};
|
|
1463
|
-
color: ${c.success};
|
|
1464
|
-
`,El=r.div`
|
|
1465
|
-
padding-top: ${e=>e.isOwnCard?e.isMobileOrTabletScreen?a.sp3:a.sp4:a.sp5};
|
|
1466
|
-
padding-bottom: ${a.sp4};
|
|
1467
|
-
`;export{Xl as default};
|