@zeniai/web-cockpit-ui 1.15.44-dev → 1.15.45-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.
Files changed (344) hide show
  1. package/dist/assets/ACHDetailsPage-D2Xav-UW-S35Uhoxw.js +21 -0
  2. package/dist/assets/{AIPerformancePage-Bi73UpGb-fWDWILJ2.js → AIPerformancePage-DlTdGosv-wmtN61X5.js} +104 -104
  3. package/dist/assets/AccountInfoPage-B8-8kUGD-Dn2GAcNI.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-Dg0u2dUY-CwC-_xBB.js → AccountInfoPageContent-BS2TBUSE-C5aZvKIb.js} +21 -21
  5. package/dist/assets/{AccountLockedInfoModal-CfkJI6XB-C47nbz46.js → AccountLockedInfoModal-aukulrV7-BnyIzxt7.js} +11 -11
  6. package/dist/assets/{AccountReconDetailsDrawerPage-YaScsZ9w-naExi3CF.js → AccountReconDetailsDrawerPage-kQJld6_N-mlekIKpg.js} +19 -19
  7. package/dist/assets/AccountRow-BiEYR4Y1-BYraCT3U.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-Bm3kl_kc-CgD_G72F.js → AccountsPromoCardStack-DBQnDPXQ-Cg1k8iOd.js} +32 -32
  9. package/dist/assets/AddAddressForCardDrawer-DTnfk8K7-CSPtYmJ3.js +6 -0
  10. package/dist/assets/{AddToWalletPage-fW711jLQ-BRrd9uh8.js → AddToWalletPage-C4EwdLZJ-CuTX3g12.js} +19 -19
  11. package/dist/assets/{AgingReportsPage-BRMI5zyE-DecoJ-JY.js → AgingReportsPage-vAvkUfOS-CY0Z3qTp.js} +7 -7
  12. package/dist/assets/{AllUserItems-CJvwVAIJ-BTHbX-kV.js → AllUserItems-qrYg6Gdx-CdYLC57_.js} +11 -11
  13. package/dist/assets/ApAgingDetailPage-BRYQMwo2-BLS80uGo.js +46 -0
  14. package/dist/assets/{AppBasePage-BncZeYVM-BmWxuFMK.js → AppBasePage-DrE-W6d7-BJchX_M5.js} +8 -8
  15. package/dist/assets/{AppDrawerContent-nr81m7Yo-B9REx-fp.js → AppDrawerContent-ATbZG_cu-DjhYjDhr.js} +5 -5
  16. package/dist/assets/ApprovalRulesSettingsPage-5MYC1I6k-B_-ue4-L.js +47 -0
  17. package/dist/assets/{ArAgingChart-C6JBnoyC-CUJeSTbJ.js → ArAgingChart-CuzG9AZY-tEsYzpMw.js} +6 -6
  18. package/dist/assets/{ArAgingDetailPage-KRxBhwoF-Bs_qr7kj.js → ArAgingDetailPage-DwRkcLEu-CyeLsbpX.js} +6 -6
  19. package/dist/assets/{AttachmentView-BQxK0CVV-CCdx-RAZ.js → AttachmentView-BrQRChzc-CLMui9x5.js} +6 -6
  20. package/dist/assets/{BankAccountSection-BNyucHO2-DmJIO1WC.js → BankAccountSection-hcKEMs80-C6Jbh-5h.js} +14 -14
  21. package/dist/assets/{BankAccountWarningSection-CXuL4u5y-g-HZT5cn.js → BankAccountWarningSection-CpxVDMSZ-C7N2KxYy.js} +10 -10
  22. package/dist/assets/{BankConnectionsSettingsPage-CBgj0E9b-D9RluevF.js → BankConnectionsSettingsPage-Bdw1K00m-BvzDHkyQ.js} +27 -27
  23. package/dist/assets/BillDetailPage-D0NLFZXA-C0lmLs0O.js +266 -0
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-Dx4q6Dqs-DjDGvRN4.js → BillPayApprovalRuleDetailPage-DkpCvYvo-O8-69iVq.js} +4 -4
  25. package/dist/assets/{BillPayApprovalRulesPage-CqAUZyDI-F4GaYkgK.js → BillPayApprovalRulesPage-BEqZD0GU-BxwF6ACD.js} +17 -17
  26. package/dist/assets/BillPayPromoPage-BMcP4EU5-CGhF2c_7.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-Di_7lbDT-DcNv7Em-.js → BillPaySetUpPage-WdEdbf16-Dy9LV6PH.js} +4 -4
  28. package/dist/assets/BillingSettingsPage-GtRUqSZm-DYu87yXp.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-DAUoo9pq-DaWpx5HK.js +1 -0
  30. package/dist/assets/{BoxItem-emrYmYE_-COqrZfL4.js → BoxItem-CACRFWG2-DVYuXWIN.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-9gZbBDL6-k_B2yV-X.js +138 -0
  32. package/dist/assets/{CardNumberSubText-D0jiyjgP-DrKFcYQ8.js → CardNumberSubText-C-oVdziK-DunIHxKO.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-Ck68kvKO-btdGd49W.js → CashbackDetailPage-BhFKSl4p-BQ_VopLN.js} +26 -26
  34. package/dist/assets/{ChargeCardDetailPage-3MoXQEkg-CSC4sD6E.js → ChargeCardDetailPage-D8J6HINu-BuT8xfhQ.js} +20 -20
  35. package/dist/assets/{ChargeCardListPage-C-Ju6BEl-kbouKU1g.js → ChargeCardListPage-tdUKyHdz-C4MlwZVJ.js} +15 -15
  36. package/dist/assets/{ChargeCardListTable-CiKxrzpB-BwvLbNVl.js → ChargeCardListTable-CByk3iqX-DoHny0DQ.js} +55 -55
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-CQFeSCt3-CSxBUfgn.js → ChargeCardPaymentHistoryPage-B8zRcrjo-BRbQG-FC.js} +34 -34
  38. package/dist/assets/{ChargeCardPromoPage-D9dU6_7j-D1-1DfmI.js → ChargeCardPromoPage-C4cgx2gm-D_Yc06ky.js} +32 -32
  39. package/dist/assets/{ChargeCardSetupPage-D0WrBcxG-ycTOq8L1.js → ChargeCardSetupPage-DtwiTNKA-BFEsY7tk.js} +4 -4
  40. package/dist/assets/{ChargeCardStatementsPage-CJFkaLCd-BumVYv_H.js → ChargeCardStatementsPage-B0KPw52e-DBUcIJ4E.js} +8 -8
  41. package/dist/assets/{CheckDepositDrawerPage-Durtx5TN-DwuNGoqA.js → CheckDepositDrawerPage-DKNAXI77-BLa4tOO2.js} +15 -15
  42. package/dist/assets/{CollapsableReportTable-CCnbdYjk-BPZVqk8_.js → CollapsableReportTable-Cq8bhaYC-ZEUmVRwU.js} +272 -272
  43. package/dist/assets/{CompanyOfficerDetailsSection-g42vPH8W-BxpfMgYr.js → CompanyOfficerDetailsSection-Rk0B5cB5-D0GfPSDE.js} +32 -32
  44. package/dist/assets/{CompanyPassportCard-B6FYoxyq-BX2GdDcs.js → CompanyPassportCard-CHaKk74P-ChdhDOcg.js} +8 -8
  45. package/dist/assets/{CompanyPassportPage-rQvYbXt5-CjnUEPux.js → CompanyPassportPage-DXWXFFKM-KfIA3e5g.js} +20 -20
  46. package/dist/assets/{CompleteProfile-CcNl1Edy-CEvFMhi-.js → CompleteProfile-ChaWsK6t-DspQFryi.js} +2 -2
  47. package/dist/assets/ConfettiBurst-CdB5fRMt-B7nj3Nyc.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DwnbKiER.js → ConstrainedInnerElement-BeIpAPjB-DRM9GAJ_.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-SK5exTt3-BjZ8lvyL.js → CreateOrEditVendorPage-C_8Jqubo-Bk2WY5iH.js} +13 -13
  50. package/dist/assets/{CreditCardPaymentDrawerPage-EtqemOZS-BnapCiVl.js → CreditCardPaymentDrawerPage-lOjOtk28-Csye-cQG.js} +18 -18
  51. package/dist/assets/CurrencySelectField-BDqU4HVy-2khO8cFF.js +139 -0
  52. package/dist/assets/CustomerOnboardingActivationPage-DO6NCakm-AEOEu5XD.js +88 -0
  53. package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-DBrhwTVX.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-FKQGP-CB-zopx1VE5.js → CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-Nc7z_MPq.js} +16 -16
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-D3T1ftj7-D6SSHlsp.js → CustomerOnboardingNoStepsPage-CbG5WshV-DAGPqB92.js} +6 -6
  56. package/dist/assets/{CustomerOnboardingPage-K68iZ1pc-D0YY7tLm.js → CustomerOnboardingPage-DyVyf8oK-qTGHLvSK.js} +16 -16
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DZY25kUO-BvycO_p-.js → CustomerOnboardingProductSuitePage-1F3JfCRp-DuMqzBOS.js} +10 -10
  58. package/dist/assets/{Dashboard-C0M4vT8O-BYqqEpJb.js → Dashboard-Csggwob0-CyGCXOXS.js} +66 -66
  59. package/dist/assets/{DashboardReportPage-D59wQPy8-DDmWtoIa.js → DashboardReportPage-DFIdi_I0-BoysSy4a.js} +22 -22
  60. package/dist/assets/DashboardSidebarBackgroundAnimation-C3Ovv-ob-4-suD4NX.js +12 -0
  61. package/dist/assets/{DepositAccTransactionItem-CZHXtZB5-BEgA4Uyh.js → DepositAccTransactionItem-CZ7v1T4S-Btt7kuPp.js} +6 -6
  62. package/dist/assets/DepositAccTransactionListPage-FldPGX6K-BuhxBRx8.js +66 -0
  63. package/dist/assets/{DomesticWireDetailsPage-SDNDGGnk-Dpbta2A4.js → DomesticWireDetailsPage-C--eZ-UG-iiw5Chir.js} +2 -2
  64. package/dist/assets/{DownloadOverlay-CW7nP_gr-Gu43ShKI.js → DownloadOverlay-4f9deyJS-BdBfaHAQ.js} +26 -26
  65. package/dist/assets/{DrawerPage-BdXd2igp-_3hBO89m.js → DrawerPage-roO3xvRT-XwvbAR8R.js} +11 -11
  66. package/dist/assets/EditPeoplePage-pi5RclAj-BM2zxscy.js +55 -0
  67. package/dist/assets/EditReimbursementDetailPage-CIUcImns-BxmdhEQa.js +865 -0
  68. package/dist/assets/EntityDetailPage-OTKTVNMD-hGdzRif2.js +18 -0
  69. package/dist/assets/{EntitySummarySection-BNvGG3d6-BgSlIoO3.js → EntitySummarySection-fBL4TZpT-DwG1Et7L.js} +32 -32
  70. package/dist/assets/{ExpenseAutomationOverviewPage-Dpd7fWT8-CJNhgI1p.js → ExpenseAutomationOverviewPage-CnhNINCc-BWYSqjyt.js} +47 -47
  71. package/dist/assets/ExpenseAutomationPage-BDLCJbFw-BzgpYsoD.js +1703 -0
  72. package/dist/assets/{ExpressPayPage-B_jJBRS3-CqeRUh4h.js → ExpressPayPage-c8oTCnBR-BO5E-s_t.js} +17 -17
  73. package/dist/assets/{FeaturePreviewPage-CkiCr5FY-YcKqVNJz.js → FeaturePreviewPage-DkiAajs2-CeQkBCBu.js} +3 -3
  74. package/dist/assets/{FollowStepsSection-D4hhP5Ns-Dhgeeir0.js → FollowStepsSection-GaWu1kt9-BI3yZ8yb.js} +44 -44
  75. package/dist/assets/GlobalReviewListPage-DEzj0RVG-OABkNmc3.js +291 -0
  76. package/dist/assets/{InformationCardStack-L_DUxY4M-D8FPjAw-.js → InformationCardStack-dMFbHUWM-DZ5NgV9d.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-BkHzx-Ku-CGbiVWHq.js → InsightsCardStack-BlXkyuyz-BYkM34Ig.js} +9 -9
  78. package/dist/assets/InsightsSection-D-oCmrir-CD7SS_Wx.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-Cd1Rx9sO-CrFZOF4B.js → IntegrationsSettingsPage-D-hfghuq-9CRnYKlL.js} +11 -11
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-D9MjWari-b7e10eXN.js → InternationalWireSwiftDetailsPage-DxdKE300-DZZJSkkC.js} +20 -20
  81. package/dist/assets/InternationalWireVerificationPage-CkSmhOrS-UEYqwZ-4.js +65 -0
  82. package/dist/assets/{InviteFormPage-DuMgV0Gj-COrTi430.js → InviteFormPage-BCdalqtP-CheVg02u.js} +21 -21
  83. package/dist/assets/{InvitePageListView-C8FmzWUR-C8XzfhVF.js → InvitePageListView-B88FW48q-BlNwjDCb.js} +63 -63
  84. package/dist/assets/InvitePeoplePage-Z-2L7lWc-CTYR92-E.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-C8hytmay-CkdGw_XE.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-BSakJkYv-CIpGjR5J.js → IssueChargeCardPage-B6wmvbEr-BJuCdS5L.js} +18 -18
  87. package/dist/assets/{LabeledAddressValue-7ZW0Bp2--B1g9_ntb.js → LabeledAddressValue-CQrDCgNs-BE2vwBEi.js} +2 -2
  88. package/dist/assets/LabeledAddressValueField-BoHS44YO-GpChwVD3.js +45 -0
  89. package/dist/assets/LabeledControlledCheckBoxField-BsFqjCpn-DbSKF3Eo.js +16 -0
  90. package/dist/assets/{LabeledCountryMultiSelectField-CBp07VjV-BFYchWVu.js → LabeledCountryMultiSelectField-D1fVDYR_-X0msQxRV.js} +12 -12
  91. package/dist/assets/{LabeledCreatableSingleSelectField-B_esaKIM-BMEYFLNo.js → LabeledCreatableSingleSelectField-Bhka-Faj-PIAOXuuF.js} +8 -8
  92. package/dist/assets/LabeledDocumentField-CnRk5aKZ-CP7eylom.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-BI8tGUij-WgkzFxD0.js → LabeledDropDownFormattedTextField-ChgtJqPr-DoauSiSH.js} +7 -7
  94. package/dist/assets/LabeledText-2EDpuXZ4-C8KbdmSn.js +42 -0
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BoJDAYsP-ISocjwDg.js → LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-Dxfcd1ix.js} +20 -20
  96. package/dist/assets/{LabeledZeniRolesDropDownField-B7n0GmSV-aaT1wrjI.js → LabeledZeniRolesDropDownField-CpH0eDWO-nc3j9OL8.js} +28 -28
  97. package/dist/assets/{LinkJETransactionPage-BRHWap1M-B6jJFTGs.js → LinkJETransactionPage-BhV2MnCY-2VFbWc8b.js} +16 -16
  98. package/dist/assets/LockCardPage-CHv1xi2J-DERlEjt9.js +623 -0
  99. package/dist/assets/{LowBalancePopup-6cIv7QGI-Cdkp97a-.js → LowBalancePopup-Cb55PGLc-gAPp5TRy.js} +6 -6
  100. package/dist/assets/MagicLinkACHDetailsPage-Dnp01hnF-MnmyVJLu.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-B36rsikS-BiwQJWMK.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-Zo4oNZez-Ba4r75te.js +1 -0
  103. package/dist/assets/MagicLinkSuccessPage-09NLbjFG-BOQ43guP.js +31 -0
  104. package/dist/assets/{MagicLinkTitleSection-BaWqmY8Y-DpNPE-31.js → MagicLinkTitleSection-BA-i6vzA-BK_4bD52.js} +5 -5
  105. package/dist/assets/MailingDetailsSection-EwtoQ2TZ-BkNjZheA.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-DkE_cUdA-B5nqcQf6.js → MyBankConnectionsSettingsPage-Aer6AWxY-BxNOJih2.js} +14 -14
  107. package/dist/assets/MyPendingActivationChargeCardListPage-Ddy4bAEY-CbDHJT6Y.js +6 -0
  108. package/dist/assets/MyProfileSettingsPage-DMz-6h9F-CFSERtJI.js +85 -0
  109. package/dist/assets/NavBarWithPicker-D8WNahg--DUG3-gGB.js +30 -0
  110. package/dist/assets/{NavigationArrow-CJ3RPyfe-DBdDojnz.js → NavigationArrow-kQWS5Pzb-BEUVzE31.js} +7 -7
  111. package/dist/assets/{NavigationDots-D4COr3-8-BoU1J180.js → NavigationDots-BQb_Fodq-DtOlofVb.js} +2 -2
  112. package/dist/assets/{NewGlobalMerchantPage-CwrkgMXG-CLtkOvtX.js → NewGlobalMerchantPage-z86XZorn-DoavPLi0.js} +40 -40
  113. package/dist/assets/NoDataChart-CyYJ6icu-DPPKQloI.js +26 -0
  114. package/dist/assets/{NoDataTable-Dvgptxms-ken8n7Gv.js → NoDataTable-DVe7sQhD-x5eVDn8H.js} +1 -1
  115. package/dist/assets/{NotFoundPage-BTdYSpRB-DzcaBauu.js → NotFoundPage-B1XCmhSe-DRWfxKXj.js} +3 -3
  116. package/dist/assets/{NotificationSettingsPage-hF48Xjil-DO4vgNZR.js → NotificationSettingsPage-BaN20EGV-BGI1AOxL.js} +20 -20
  117. package/dist/assets/NotificationsListConfig-BOW_TmPC-gVlD4if6.js +1 -0
  118. package/dist/assets/NotificationsPage-C9efAgjo-BbYISYVW.js +685 -0
  119. package/dist/assets/OpExByVendorPage-DXeBU3-z-CtYWzGKb.js +100 -0
  120. package/dist/assets/{OverlayContainerPage-D4QU0p4o-lZh11hHV.js → OverlayContainerPage-D4QU0p4o-DWwt3jvC.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-BzMdJxuM-CW9al9Hz.js → PandLWithForecastPage-CXtJhnA_-CX7CsCDy.js} +12 -12
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CDPrK0IE-Bj86EDR9.js → PaymentAccountSetupBillingAddressSection-Deb_ngk6-DGKyDmFS.js} +16 -16
  123. package/dist/assets/PeoplePage-DXC2CtOt-CfYJLjB6.js +675 -0
  124. package/dist/assets/{Preview-DOtugFE3.js → Preview-bUJ-afSX.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-CPh6jfEO-DETwqGwx.js → ProductsCarousel-ufZlh7Rx-BIDCk-h1.js} +7 -7
  126. package/dist/assets/{PromoBaseCards-Dl2VCjhb-rYH3pV0i.js → PromoBaseCards-D2UbhBhT-BSjHyOyw.js} +4 -4
  127. package/dist/assets/{QBOConnectionDialog-B3Ph_e2z-_atibkwZ.js → QBOConnectionDialog-BrQ71F06-BH2ZV7vR.js} +6 -6
  128. package/dist/assets/QBOSetupSection-EOFscEW--DnT8IFo9.js +79 -0
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Djt5y4oN-BC_IHAVg.js → ReimbursementApprovalRuleDetailPage-C-HPI4Ng-BKRiZPcc.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-CiJJjcFu-CunJ2bVS.js → ReimbursementApprovalRulesPage-CMpYn5y_-DhEhjlJP.js} +13 -13
  131. package/dist/assets/ReimbursementDetailPage-CfmICHZb-EfH6pB2u.js +314 -0
  132. package/dist/assets/{ReimbursementPromoPage-CPVzzNRs-HEHlPAqh.js → ReimbursementPromoPage-DXTAY8c7-BNOZ_20N.js} +32 -32
  133. package/dist/assets/{ReimbursementSetUpPage-BtOQPkaY-026y2WyP.js → ReimbursementSetUpPage-KrGPXTCb-qu8Limvb.js} +14 -14
  134. package/dist/assets/ReimbursementsBulkReviewDrawerPage-l2mYNEKn-DBc7kt2f.js +1 -0
  135. package/dist/assets/{ReloadCard-C7JwMWXw-Cvj7koCQ.js → ReloadCard-vAhL7B8U-D7YWwAyL.js} +7 -7
  136. package/dist/assets/{ReportTableViewSelector-zuExZvaR-CuH-HEtv.js → ReportTableViewSelector-Y97ney3W-CvSSJ9ac.js} +5 -5
  137. package/dist/assets/{ReportsPage-DZpovmcV-CxO7Ay0j.js → ReportsPage-DKM0gVzR-DOSeE9yO.js} +6 -6
  138. package/dist/assets/{RevenueChart-ez6wj7cc-DsS332Fh.js → RevenueChart-BEjDS1u4-BIqPjNsw.js} +13 -13
  139. package/dist/assets/{ReviewDetailsPage-CSPg-7hy-BBEucee7.js → ReviewDetailsPage-BlQLrN9z-Dca8kSzg.js} +53 -53
  140. package/dist/assets/{ReviewOverlay-CCHslqz--CZdRxBdf.js → ReviewOverlay-Bn3TFqfi-DPoyDHGn.js} +9 -9
  141. package/dist/assets/RoleWithToolTip-DhBFvJea-B8n0jz5Q.js +22 -0
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DcTMG4tX-kAkxwz74.js → ScheduleDetailsFixedAssetsPage-BMkFjf9Y-TyHmMR8_.js} +13 -13
  143. package/dist/assets/{ScheduleDetailsPage-Bxq5fYyw-ByraafRE.js → ScheduleDetailsPage-BP0wdtoP-B3l1fyxF.js} +3 -3
  144. package/dist/assets/ScheduleSequenceTable-D-rZ4ftr-NNixAuqw.js +324 -0
  145. package/dist/assets/{ScreenRoutes-DADRt3m9.js → ScreenRoutes-Dkdo_QnR.js} +48 -48
  146. package/dist/assets/{SetUpAccountSection-8mYaeWwd-DgrolkOV.js → SetUpAccountSection-CoVrSSYL-CtIuqnUK.js} +7 -7
  147. package/dist/assets/SignIn-BoAejo7r-BtV3Ttcw.js +491 -0
  148. package/dist/assets/SignInScreen-DsBeFXpf.js +1 -0
  149. package/dist/assets/SpendManagementListViewPage-D3eISFuA-BH8cRQWr.js +134 -0
  150. package/dist/assets/{SpendManagementPerTabPage-BYvhmmSc-BoQt5fMQ.js → SpendManagementPerTabPage-BWDjZyLp-C1eUKzso.js} +114 -114
  151. package/dist/assets/{SpendManagementSection-CCoM_Cxv-CkVjYk2a.js → SpendManagementSection-D8rBpC-y-Co0RTAvb.js} +22 -22
  152. package/dist/assets/StatementItem-Cu6dlAsl-DmauqRhg.js +31 -0
  153. package/dist/assets/StatementsPage-DiY2BOcu-ZhmXJvRa.js +58 -0
  154. package/dist/assets/{StatusSwitcher-qPOjXUSo-CGzUIx1d.js → StatusSwitcher-B9MARTyR-njYpaPcv.js} +4 -4
  155. package/dist/assets/{SubTabSwitcher-CaSibFBm-RaOxS7Pn.js → SubTabSwitcher-C3rtSwro-UHdU-bAk.js} +2 -2
  156. package/dist/assets/{SummaryCard-BsvJatQs-CjLjCcVs.js → SummaryCard-CShVbqhj-BLj7j0_e.js} +1 -1
  157. package/dist/assets/TaskManagementPage-RVS8nv0n-uCuNXBz9.js +508 -0
  158. package/dist/assets/{TimeRangeSwitcher-CfMkQvYF-CiannF9n.js → TimeRangeSwitcher-DFnX6_WT-DWIBGfP-.js} +13 -13
  159. package/dist/assets/TimeframeSwitcher-CW08yYgo-Bs-pmnzg.js +31 -0
  160. package/dist/assets/TimeframeSwitcherWithToggle-DJOCWqpZ-BFZ7bLWL.js +31 -0
  161. package/dist/assets/{TopExCard-B9J8lGLo-B30R7u2A.js → TopExCard-dI_WEGWb-C8zSoGB_.js} +12 -12
  162. package/dist/assets/{TopExDetailPage-BD1I7eRD-DJwR7TZd.js → TopExDetailPage-BWy5E8Lp-DECCdxzr.js} +14 -14
  163. package/dist/assets/TransactionActivityLogPage-DjhEIUYm-PWZNzXJ2.js +195 -0
  164. package/dist/assets/TransactionDetailPage-CuxqQd8U-BuHJVoXs.js +903 -0
  165. package/dist/assets/TransactionList-80KjM8Kg-CevujtV6.js +153 -0
  166. package/dist/assets/{TransactionListBig-Ds4Qi0V4-BTiJtrsL.js → TransactionListBig-DWQXH4ID-DoEu9YAb.js} +20 -20
  167. package/dist/assets/TransactionListPage-DC08rCC9-Clz1psGf.js +35 -0
  168. package/dist/assets/{TransactionVendorDetailPage-BuEX1oP3-Bo0z6TbP.js → TransactionVendorDetailPage-CzfJ5b_3-Bq1jZ95u.js} +15 -15
  169. package/dist/assets/{TransferDrawerPage-C52xyV5d-kY6aeXNg.js → TransferDrawerPage-6z-MoZZP-X9c2FbF1.js} +40 -40
  170. package/dist/assets/{TreasuryOverviewPage-BCCkSArK-DMCpyOsl.js → TreasuryOverviewPage-CF_ter0o-BGvD7KcD.js} +38 -38
  171. package/dist/assets/{TreasuryPromoPage-vXhlCR_E-BZjuyryw.js → TreasuryPromoPage-Do-PTcjI-BVsAh_s5.js} +24 -24
  172. package/dist/assets/{TreasuryStatementsPage-BlrEtckW-CvkQwg1B.js → TreasuryStatementsPage-l_HC4zsb-BqffJxCU.js} +2 -2
  173. package/dist/assets/TreasuryTaxLetterPage-B8YxWytK-ClHOa93u.js +58 -0
  174. package/dist/assets/{TrendChart-CHHzmjv2-Z1hhrqX1.js → TrendChart-C6B61CAm-BUmkAB5E.js} +5 -5
  175. package/dist/assets/{TrendWithTransactions-DwaY27f2-DpPg53YC.js → TrendWithTransactions-Bp3vhaPa-DETWpy6t.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-C8k9PzrN-BtUWAI2y.js → UncategorizedAccountsMappingPage-cbFqKAv4-DeCca6Ny.js} +18 -18
  177. package/dist/assets/{UnitIntegrationPage-C8kaN2M_-C9KPkw2-.js → UnitIntegrationPage-DZ0ZpE5p-DeiuATlr.js} +5 -5
  178. package/dist/assets/UploadAdditionalDocumentOverlay-BKY6hK51-CydYggee.js +38 -0
  179. package/dist/assets/Vendor2FAPopup-DezpDfp8-DiVrYh3K.js +1 -0
  180. package/dist/assets/VendorACHDetailsPage-C8TWKYfc-Becdxrwt.js +1 -0
  181. package/dist/assets/{VendorDetailPage-BYaJXinH-DUPwtiyr.js → VendorDetailPage-C4g_Gfsl-BNNbSoIa.js} +89 -89
  182. package/dist/assets/VendorDomesticWireDetailsPage-BhJQ-Vmn-eHvavwdw.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-C5jYzHb1-C2mNpfNu.js → VendorFiling1099EditablePage-Ckt2MiVN-e4TYQZVn.js} +15 -15
  184. package/dist/assets/VendorFirstReviewPage-CIKRaTax-BN07guXv.js +730 -0
  185. package/dist/assets/{VendorInternationalWireDetailsPage-B_plx9rY-B5vOg7i2.js → VendorInternationalWireDetailsPage-Dz8mMD8d-TCwuy6i-.js} +17 -17
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-XcV7Ot44-CPyZywKh.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-BE9NN7j2-M2MOrj0H.js → VendorsAccountsSection-BT-RADSV-Bve5DAMe.js} +4 -4
  188. package/dist/assets/{VerifyDevice-CHhkhIiR-CN-EcPav.js → VerifyDevice-Cxc9CVMi-DbObYdix.js} +11 -11
  189. package/dist/assets/{VideoPlayer-Dp4LYdDK-BIrhMJBd.js → VideoPlayer-9UkKMhGy-DADkPX-f.js} +2 -2
  190. package/dist/assets/{VideoPopup-Kq2Ny4qb-GkudTuD5.js → VideoPopup-rfiYmtio-DF-tGFMP.js} +1 -1
  191. package/dist/assets/{WarningsDrawerPage-BaJGWils-DFY_x5GH.js → WarningsDrawerPage-DrUA4asI-C6MUqBWp.js} +7 -7
  192. package/dist/assets/{ZeniAccountDetailPage-CqeawFzU-pmL8pPeq.js → ZeniAccountDetailPage-K016HgQt-wx5VYyBN.js} +24 -24
  193. package/dist/assets/{ZeniAccountListViewPage-BC7znv-z-NELgzow8.js → ZeniAccountListViewPage-1oZZynB1-E-BTeqGP.js} +17 -17
  194. package/dist/assets/{ZeniAccountNavBarPieces-BEekGYF8-5MGMMXj0.js → ZeniAccountNavBarPieces-C6Oicpue-a3nzNo79.js} +3 -3
  195. package/dist/assets/{ZeniAccountPromoPage-BD61iMJM-AywKP4VO.js → ZeniAccountPromoPage-BCgys-YM-CM9NQ_BO.js} +24 -24
  196. package/dist/assets/{ZeniAccountSetupPage-CIUArIFg-CEZLAy_L.js → ZeniAccountSetupPage-BubBgkoa-Duwi7djt.js} +3 -3
  197. package/dist/assets/ZeniCopyright-BxIwmms--Doa5lp53.js +1 -0
  198. package/dist/assets/ZeniTransferAmountSlider-DVJ0puXA-2P0ZBWZ7.js +63 -0
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-DWXM_TBw.js → add-to-wallet-DgdBD8_G-DikzZE6B.js} +1 -1
  200. package/dist/assets/{analytics-Cvg-u8-2.js → analytics-DYhmL7CM.js} +30 -30
  201. package/dist/assets/{analyticsHelper-BlzRkKZg-B2LkgvA8.js → analyticsHelper-CT5zOInj-99CvxgyS.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BpNAOx5Q.js → analyticsHelper-DDXauk_Q.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-CMFStSYD.js → arrow-south-east-round-PEovUgvH-8jWq8JIP.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-C_0tBgXa.js → auto-transfer-rule-mbafm5D3-BQD13VLl.js} +1 -1
  205. package/dist/assets/{chartTypes-Bg8wCCJo-ByGBP7Kx.js → chartTypes-Ddw_3-6f-HF5eETfQ.js} +1 -1
  206. package/dist/assets/commonDimensions-ClmbdehE-aq41ZcdE.js +1 -0
  207. package/dist/assets/{commonTypes-B2dNLPs8-LssZrp5i.js → commonTypes-B-foaEwJ-DpfDV34V.js} +1 -1
  208. package/dist/assets/{constants-DpEmalb9.js → constants-mf68mEZJ.js} +1 -1
  209. package/dist/assets/{core-BigkILPm.js → core-D7HgM8n1.js} +1 -1
  210. package/dist/assets/{dash.all.min-BeiUQojL.js → dash.all.min-D8zACU7x.js} +1 -1
  211. package/dist/assets/{detailCommon-dFjFrXPn-CuohGWbm.js → detailCommon-Cpgf9GLg-BeTL8M1q.js} +9 -9
  212. package/dist/assets/downloadPdf-DfRYmfsd-v-LOP3Jl.js +1 -0
  213. package/dist/assets/{empty-B9dXvt_8.js → empty-NSIYiedq.js} +1 -1
  214. package/dist/assets/{empty-CpJRwiZc.js → empty-Y3MKkeNh.js} +1 -1
  215. package/dist/assets/epic-CeNkV6CJ.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-JOtbwZSq.js → gift-box-Cmt9OgIZ-CD4XSNN9.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BSKF2OrL.js → graphic-no-data-l-DU4J8fDt-Cj1mbKoU.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-VZD1sYCA.js → graphic-no-data-net-burn-l-CzmycA0m-DMlgtG13.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-BVbCPIlH.js → handshake-BPg58FML-CDBh0ipY.js} +1 -1
  220. package/dist/assets/{helper-84lLR0pR-CHNdYDIc.js → helper-DP3YY99s-DI38626F.js} +3 -3
  221. package/dist/assets/{index-DOkuqa9Y.js → index-B1CF5cm3.js} +1 -1
  222. package/dist/assets/{index-CK72u5UX.js → index-BB6TP51b.js} +1 -1
  223. package/dist/assets/{index-CO-_hM8s.js → index-BDP43MqE.js} +1 -1
  224. package/dist/assets/{index-BnrFROY2.js → index-BUGp6bnR.js} +1 -1
  225. package/dist/assets/{index-Bi0ZQY9Y.js → index-Br79bjER.js} +1 -1
  226. package/dist/assets/{index-kUGHSXzQ.js → index-DCa8flZr.js} +1 -1
  227. package/dist/assets/{index-C0Qk6Z4T.js → index-DTirxbyQ.js} +4530 -4535
  228. package/dist/assets/{lexical-DMkegWP6.js → lexical-BIyV8PdW.js} +1 -1
  229. package/dist/assets/{liveblocks-CEs1rDbD.js → liveblocks-DIuhFCxt.js} +1 -1
  230. package/dist/assets/{lottie-B9wjZjZ1.js → lottie-CoVTVb_w.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-C0YIUOnb-CM3HanTy.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-xo9yV2zx-D-t0QvXH.js → mapSectionWithAcOnlyToTreeNode-QJI_OYzu-BY_qJXQo.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-DKDsz0vw-DacYuJs2.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-DqDJAeAj-D7B8Pylg.js +1 -0
  235. package/dist/assets/{mapTimeframeBalancesToTreeNode-C9qIIDvL-cwYb-_mq.js → mapTimeframeBalancesToTreeNode-J3b1nb_T-D59tSp4H.js} +1 -1
  236. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-COGO4zaM-DoXO862U.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-BNoQeOGL.js} +1 -1
  237. package/dist/assets/{mui-_BiizxEu.js → mui-CUgxbbSv.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-DOAzp2B2.js → page-detail-CWX5S47F-CYodllrt.js} +1 -1
  239. package/dist/assets/panelSelectedMixin-CzfD5-Zs-COBjrU2Y.js +4 -0
  240. package/dist/assets/{radio-default-CiSgisfh-Bk2E4ZQD.js → radio-default-CiSgisfh-D5Swvnjv.js} +1 -1
  241. package/dist/assets/{react-DV52dlQF.js → react-BUMR3Oqj.js} +2 -2
  242. package/dist/assets/{react-BDJwzlQ1.js → react-BXfpyu7-.js} +1 -1
  243. package/dist/assets/{react-Bid-85AH.js → react-C1Bx9mvH.js} +1 -1
  244. package/dist/assets/{react-CstF33mL.js → react-CBTPpMQr.js} +1 -1
  245. package/dist/assets/{react-B5lksOsX.js → react-DEF24OHG.js} +1 -1
  246. package/dist/assets/{react-DQZdqdFY.js → react-DEm3GFrk.js} +3 -3
  247. package/dist/assets/{react-FG-k1_Zp.js → react-DPzCxJ9_.js} +1 -1
  248. package/dist/assets/{react-CajqMF-O.js → react-DWqZUhoP.js} +1 -1
  249. package/dist/assets/{recharts-C1J08DKE.js → recharts-Cv8hlrkl.js} +1 -1
  250. package/dist/assets/{sentry-DNdJk61Y.js → sentry-DuRPstDP.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-BJAVJLNs.js → shield-DOlUxcFf-BuWXLRZa.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-AzKAZ-Cv-BFfmnf7p.js +1 -0
  253. package/dist/assets/toChartData-BEjMhb7--D2HEmA7d.js +1 -0
  254. package/dist/assets/{uploadAttachment-Btwmohbb-BIEOFcgm.js → uploadAttachment-DUpHzqMe-BV5nx0ZT.js} +19 -19
  255. package/dist/assets/uploadReceipts-Dge0cNF1-D2wqfNY0.js +1 -0
  256. package/dist/assets/{url-7mcltx3r.js → url-CucjwMCN.js} +1 -1
  257. package/dist/assets/{url-BzfjL4PI.js → url-P-v-bynO.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-Ccim685e.js → useLongPress-GCK2COYQ-CK2T-95t.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-qHMqNnBh.js → usp-line-BBd1wKwW-Du-iFEZV.js} +1 -1
  260. package/dist/assets/{utils-CJz9ZWWV.js → utils-DiiaN_Gy.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-BkKyof9Q.js → zeni-epic-state-DfBiKLGZ.js} +34 -34
  262. package/dist/index.html +1 -1
  263. package/package.json +4 -4
  264. package/dist/assets/ACHDetailsPage-Nw7UKktD-BkNC4e5B.js +0 -21
  265. package/dist/assets/AccountInfoPage-D4R2TjfL-q-EauRk4.js +0 -18
  266. package/dist/assets/AccountRow-k3PBYMDV-BqvmTgGx.js +0 -298
  267. package/dist/assets/AddAddressForCardDrawer-BUlO08En-CebfK0vU.js +0 -6
  268. package/dist/assets/ApAgingDetailPage-ldAZScyH-BMhKfKFb.js +0 -46
  269. package/dist/assets/ApprovalRulesSettingsPage-CSEnfHsr-BydIE26A.js +0 -47
  270. package/dist/assets/BillDetailPage-DD-o3YCG-aXq3dwDB.js +0 -266
  271. package/dist/assets/BillPayPromoPage-BR1pLuKD-40d0wnUv.js +0 -84
  272. package/dist/assets/BillingSettingsPage-B8bxR3h2-CrIEihc3.js +0 -44
  273. package/dist/assets/BillsBulkReviewDrawerPage-OlbqCpCz-CYJfmGFY.js +0 -1
  274. package/dist/assets/BusinessVerificationPage-70_wkxdb-DV1V3U0I.js +0 -138
  275. package/dist/assets/ConfettiBurst-DjGWV0IU-CcvGhyUt.js +0 -1
  276. package/dist/assets/CurrencySelectField-b-bFTgxG-DkRtMPX9.js +0 -139
  277. package/dist/assets/CustomerOnboardingActivationPage-Dyk4RgRT-uRzB-RK6.js +0 -88
  278. package/dist/assets/CustomerOnboardingContainerPage-zKUA5_Db-BYTNjhXO.js +0 -1
  279. package/dist/assets/DashboardSidebarBackgroundAnimation-P0F5PKw_-aKFIlt3u.js +0 -12
  280. package/dist/assets/DepositAccTransactionListPage-MLtgU8v7-jrThBUmf.js +0 -66
  281. package/dist/assets/EditPeoplePage-DXaFGpmI-CZHUuWvz.js +0 -55
  282. package/dist/assets/EditReimbursementDetailPage-Ds8TT5V_-WG75tTc9.js +0 -865
  283. package/dist/assets/EntityDetailPage-Crf3l24d-BrN0JRJE.js +0 -18
  284. package/dist/assets/ExpenseAutomationPage-CWAMORJA-CALJ7ezd.js +0 -3001
  285. package/dist/assets/GlobalReviewListPage-CXTY3EgT-DdtNEjtj.js +0 -291
  286. package/dist/assets/InsightsSection-BPznqBDz-CK20z1Lb.js +0 -27
  287. package/dist/assets/InternationalWireVerificationPage-DkLS_bpy-CU7ACyPQ.js +0 -65
  288. package/dist/assets/InvitePeoplePage-DGPvMvBJ-Ce-6b38B.js +0 -12
  289. package/dist/assets/InvoiceUploadSection-CdYXqUHS-DdkPj4w6.js +0 -140
  290. package/dist/assets/LabeledAddressValueField-D8dreD-P-CutCad_f.js +0 -45
  291. package/dist/assets/LabeledControlledCheckBoxField-Dk2m4oDh-DQ1UIi3x.js +0 -16
  292. package/dist/assets/LabeledDocumentField-nN1pbnDm-DRXhEc0D.js +0 -41
  293. package/dist/assets/LabeledText-DyYv9nNM-Rx5E4rTb.js +0 -42
  294. package/dist/assets/LockCardPage-3evJXNUe-DEvsvIXw.js +0 -623
  295. package/dist/assets/MagicLinkACHDetailsPage-Dqnd8OaJ-CNFVgD0s.js +0 -1
  296. package/dist/assets/MagicLinkDomesticWireDetailsPage-o3R74kSf-CTFJDugq.js +0 -1
  297. package/dist/assets/MagicLinkInternationalWireDetailsPage-8w78T_Tq-CaVecplo.js +0 -1
  298. package/dist/assets/MagicLinkSuccessPage-dnU4ZBPE-m6Lhs6Op.js +0 -31
  299. package/dist/assets/MailingDetailsSection-9K9M3nSH-QXKTdG6h.js +0 -21
  300. package/dist/assets/MyPendingActivationChargeCardListPage-X64-wbJV-CjppeSVJ.js +0 -6
  301. package/dist/assets/MyProfileSettingsPage-ZFBRBkeF-P3LdxTas.js +0 -85
  302. package/dist/assets/NavBarWithPicker-CFd6K3KH-BauUMxnD.js +0 -30
  303. package/dist/assets/NoDataChart-DpQy-slq-ChCRHiVL.js +0 -26
  304. package/dist/assets/NotificationsListConfig-CTlXqNw7-Cgmm35uA.js +0 -1
  305. package/dist/assets/NotificationsPage-odaAtDv9-B6vik02n.js +0 -685
  306. package/dist/assets/OpExByVendorPage-CwfT-ykE-xwieXP3i.js +0 -100
  307. package/dist/assets/PeoplePage-D_str2r1-UsQAXDF3.js +0 -727
  308. package/dist/assets/QBOSetupSection-Dg-ZcGH4-CLd5XL5k.js +0 -79
  309. package/dist/assets/ReimbursementDetailPage-C7jzaWRr-BtyMwCn9.js +0 -314
  310. package/dist/assets/ReimbursementsBulkReviewDrawerPage-oy12qHl7-Bxrw7vlM.js +0 -1
  311. package/dist/assets/RoleWithToolTip-vpx07PDQ-lGN6cB4F.js +0 -22
  312. package/dist/assets/ScheduleSequenceTable-DZ4vlDs--pwUjwjkR.js +0 -324
  313. package/dist/assets/SignIn-D8cZWP_m-zJWSuXYX.js +0 -491
  314. package/dist/assets/SignInScreen-DRfU3UD9.js +0 -1
  315. package/dist/assets/SpendManagementListViewPage-VfZLwPVN-sElZkBgS.js +0 -134
  316. package/dist/assets/StatementItem-eSR1knfw-B9s34jxc.js +0 -31
  317. package/dist/assets/StatementsPage-DLjSMQ19-Czeo_Ttx.js +0 -58
  318. package/dist/assets/TaskManagementPage-DEF0fOcP-BxFiNe5X.js +0 -508
  319. package/dist/assets/TimeframeSwitcher-D8BZqgLE-BTtCyPkd.js +0 -31
  320. package/dist/assets/TimeframeSwitcherWithToggle-CtsW3T5I-Bzp6YXDJ.js +0 -31
  321. package/dist/assets/TransactionActivityLogPage-8wO9Ge26-CscduFE0.js +0 -195
  322. package/dist/assets/TransactionDetailPage-Bg2WIamD-DFJfYPF-.js +0 -903
  323. package/dist/assets/TransactionList-Df0ONSNP-YajUB1tB.js +0 -153
  324. package/dist/assets/TransactionListPage-kj-3e5OW-HWj3Mfcy.js +0 -35
  325. package/dist/assets/TreasuryTaxLetterPage-Ry0VzYnZ-HEWOtnH3.js +0 -58
  326. package/dist/assets/UploadAdditionalDocumentOverlay-DI_ggkf1-DE8vz5Cd.js +0 -38
  327. package/dist/assets/Vendor2FAPopup-CFubwXdL-DCQTvV0z.js +0 -1
  328. package/dist/assets/VendorACHDetailsPage-Cgpbjg2Q-CWJCAejj.js +0 -1
  329. package/dist/assets/VendorDomesticWireDetailsPage-C44ZvJ_s-CM6ieHfN.js +0 -1
  330. package/dist/assets/VendorFirstReviewPage-D9O9ZrEo-DOoJTpGj.js +0 -730
  331. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DumD421h-CK-xdBEU.js +0 -1
  332. package/dist/assets/ZeniCopyright-CHWlGjTG-KN0tcU8W.js +0 -1
  333. package/dist/assets/ZeniTransferAmountSlider-DNmKLIDa-C2yxsdzh.js +0 -63
  334. package/dist/assets/commonDimensions-TCgIgcIo-SwaPAAMP.js +0 -1
  335. package/dist/assets/downloadPdf-CLYXLTga-F4u05EfU.js +0 -1
  336. package/dist/assets/epic-CQa9naTZ.js +0 -2
  337. package/dist/assets/mapLoadingInProgressToTreeNode-zhLf08J--DqyjwjpN.js +0 -1
  338. package/dist/assets/mapSpacerToTreeNode-DAN6wWZH-BjKhXkVS.js +0 -1
  339. package/dist/assets/mapTimeframeBalancesToTreeNode-Bj58shsO-DZ9mWHDZ.js +0 -1
  340. package/dist/assets/panelSelectedMixin-Cddsb26L-CT-PXRed.js +0 -3
  341. package/dist/assets/toCOABalancesWithID-DG5oSoAT-DB2kfV3h.js +0 -1
  342. package/dist/assets/toChartData-DG9EtlOy-C--iJHXH.js +0 -1
  343. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-BlBYl9KM.js +0 -1
  344. package/dist/assets/uploadReceipts-Dge0cNF1-Z9hpH5GP.js +0 -1
@@ -1,4 +1,4 @@
1
- import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS as tt,V as t,hb as Ai,bE as Ei,u as h,f_ as vr,aQ as qe,ac as Q,bD as Ri,bV as ta,p as c,o as a,b as ke,jd as kr,w as _,cs as Fi,je as Pi,fg as zi,gY as Mi,jf as Vi,bH as Oi,bQ as jr,aV as aa,x as T,b9 as ra,bM as Ir,ak as Ce,eJ as Hi,bc as ia,j1 as Ni,aW as Lr,g as ft,ha as Dr,cf as Bi,L as Ct,b5 as Wi,dr as _i,cw as Ui,jg as Gi,jh as Tr,ji as dt,n as Zi,b1 as qi,jj as Yi,jk as Xi,ct as Ki,d8 as Ji,hJ as Qi,an as ze,bX as eo,ax as Ut,jl as Ma,jm as to,dl as ao,c as Va,M as Ar,bb as ro,aE as io,iX as mt,j6 as oo,jb as no,jc as so,dx as Oa,e_ as co,a as Er,cC as Rr,j4 as lo,b_ as ho,h as Fr,jn as po,aw as kt,c1 as Ha,bz as uo,dh as mo,as as go,ao as lt,h5 as Co,d as fo,bI as wo,jo as Tt,ft as xo,jp as Pr,gF as zr,jq as It,iq as Mr,dT as Vr,bT as yo,em as Or,j7 as bo,cF as So,dS as $o,d2 as vo,j8 as ko,j9 as jo,es as Io,ci as Lo,cj as Do}from"./index-C0Qk6Z4T.js";import{a as o,P as To}from"./sentry-DNdJk61Y.js";import{n as r,c as we,k as Hr}from"./mui-_BiizxEu.js";import{Fw as At,bh as Ao,bf as Eo,GW as Ro}from"./zeni-epic-state-BkKyof9Q.js";import{k as Fo}from"./NavigationDots-D4COr3-8-BoU1J180.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-DWXM_TBw.js";import{L as Gt}from"./lottie-B9wjZjZ1.js";import{j as Bo}from"./CardNumberSubText-D0jiyjgP-DrKFcYQ8.js";import{t as Wo}from"./panelSelectedMixin-Cddsb26L-CT-PXRed.js";import{r as Nr}from"./core-BigkILPm.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-Z9hpH5GP.js";import{N as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-3evJXNUe-DEvsvIXw.js";import"./liveblocks-CEs1rDbD.js";import"./recharts-C1J08DKE.js";import"./analytics-Cvg-u8-2.js";import"./lexical-DMkegWP6.js";import"./utils-CJz9ZWWV.js";import"./RoleWithToolTip-vpx07PDQ-lGN6cB4F.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]="c4fcc3f8-6e48-45f3-8e67-4c290894f315",e._sentryDebugIdIdentifier="sentry-dbid-c4fcc3f8-6e48-45f3-8e67-4c290894f315")}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:G}=Yi(),{isAndroidScreen:Y}=Xi(),X=Lt(),E=At(X.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!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(Xo,{}),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`
1
+ import{d as at,J as Ie,aw as Lt,a8 as Dt,h0 as Sr,hF as Ti,aW as et,h1 as $r,aR as tt,V as t,h4 as Ai,bD as Ri,u as h,fY as vr,aO as qe,aQ as Q,bC as Ei,bU as ta,p as c,o as a,F as ke,j7 as kr,b as _,cq as Fi,j8 as Pi,fe as zi,gS as Mi,j9 as Vi,bG as Oi,bP as jr,aU as aa,y as T,b8 as ra,bL as Ir,ai as Ce,eH as Hi,bb as ia,iX as Ni,aV as Lr,h as ft,h3 as Dr,ce as Bi,T as Ct,b4 as Wi,dp as _i,cu as Ui,ja as Gi,jb as Tr,jc as dt,G as Zi,b0 as qi,jd as Yi,je as Xi,cr as Ki,d6 as Ji,hC as Qi,al as ze,bW as eo,av as Ut,jf as Ma,jg as to,dj as ao,H as Va,a as Ar,ba as ro,aC as io,iR as mt,j0 as oo,j5 as no,j6 as so,dw as Oa,eY as co,i as Rr,cA as Er,i_ as lo,bZ as ho,c as Fr,jh as po,au as kt,c0 as Ha,by as uo,df as mo,aq as go,am as lt,g$ as Co,x as fo,bH as wo,ji as Tt,fr as xo,jj as Pr,gC as zr,jk as It,ij as Mr,i7 as Vr,bS as yo,ek as Or,j1 as bo,cD as So,dR as $o,d0 as vo,j2 as ko,j3 as jo,eq as Io,ch as Lo,ci as Do}from"./index-DTirxbyQ.js";import{a as o,P as To}from"./sentry-DuRPstDP.js";import{n as r,c as we,k as Hr}from"./mui-CUgxbbSv.js";import{EP as At,bh as Ao,bf as Ro,Gd as Eo}from"./zeni-epic-state-DfBiKLGZ.js";import{k as Fo}from"./NavigationDots-BQb_Fodq-DtOlofVb.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-DikzZE6B.js";import{L as Gt}from"./lottie-CoVTVb_w.js";import{j as Bo}from"./CardNumberSubText-C-oVdziK-DunIHxKO.js";import{l as Wo}from"./panelSelectedMixin-CzfD5-Zs-COBjrU2Y.js";import{r as Nr}from"./core-D7HgM8n1.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-D2wqfNY0.js";import{L as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-CHv1xi2J-DERlEjt9.js";import"./liveblocks-DIuhFCxt.js";import"./recharts-Cv8hlrkl.js";import"./analytics-DYhmL7CM.js";import"./lexical-BIyV8PdW.js";import"./utils-DiiaN_Gy.js";import"./RoleWithToolTip-DhBFvJea-B8n0jz5Q.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]="89ab5b7f-ad29-4f61-9859-dad52a85be2d",e._sentryDebugIdIdentifier="sentry-dbid-89ab5b7f-ad29-4f61-9859-dad52a85be2d")}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:G}=Yi(),{isAndroidScreen:Y}=Xi(),X=Lt(),R=At(X.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:R,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:R,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:R,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:R,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(Rr,{prefixIcon:t.jsx(Xo,{}),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(Rr,{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
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -50,7 +50,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
50
50
  margin: ${a.sp2};
51
51
  justify-content: center;
52
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)},Zt=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:G,setSecretRevealed:Y,setIsCardDetailErrored:X,setCardDetailsFetchState:E,onFireOnClickAnalytics:Z})=>{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&&G!=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 "+G},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),X(!1),E({...u,cvv:!1})}),re.on("requestFail",()=>{X(!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),Z("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 "+G},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),X(!1),E({...u,number:!1})}),ce.on("requestFail",()=>{X(!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),Z("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,G,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)&&(Z("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}
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)},Zt=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:G,setSecretRevealed:Y,setIsCardDetailErrored:X,setCardDetailsFetchState:R,onFireOnClickAnalytics:Z})=>{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&&G!=null&&!m){const k=window.VGSShow.create(p).setEnvironment(O),E=y.cardProviderID,re=k.request({name:"data-text",method:"GET",path:"/cards/"+E+"/secure-data/cvv2",headers:{Authorization:"Bearer "+G},htmlWrapper:"text",jsonPathSelector:"data.attributes.cvv2"});R({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),X(!1),R({...u,cvv:!1})}),re.on("requestFail",()=>{X(!0),R({...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),Z("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/"+E+"/secure-data/pan",headers:{Authorization:"Bearer "+G},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),X(!1),R({...u,number:!1})}),ce.on("requestFail",()=>{X(!0),R({...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),Z("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,G,m]),o.useEffect(()=>{if(s===!1){const k=document.getElementById(`SecretCvv-${i}`);for(;k?.hasChildNodes()===!0;)k.removeChild(k.children[0]);const E=document.getElementById(`CvvCopyBtn-${i}`);for(;E?.hasChildNodes()===!0;)E.removeChild(E.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?Ro(y.validThru.year,y.validThru.month-1).format(ln.visual.MMSlashYYFormat):Qe.strings.empty,de=k=>{s===!0&&(u.cvv!==!0||u.number!==!0)&&(Z("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
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(Zt,{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(Zt,{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(Zt,{top:I*Te.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},hn=r.div`
55
55
  display: ${e=>e.showSecretInfo?"block":"none"};
56
56
  height: ${e=>e.secretRevealed?"unset":a.sp0};
@@ -188,11 +188,11 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
188
188
  color: ${c.primaryDark};
189
189
  padding: 2px ${a.sp2};
190
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:G,setIsCardDetailErrored:Y,setShowSecretInfo:X,setSecretRevealed:E,setShowPhoneNumberForOtp:Z,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(),J=Ie(),N=u?.75:J==="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]}),Xe=i.chargeCard?.isLockedByAdmin??!1,ht=J==="small"?ve.tapCardCopyText:ve.clickTheCardToCopyDetailsText,pt=J==="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:J,scaleFactor:N,children:[t.jsxs(Bn,{isCardLocked:pe,isChargeCardAdmin:e,isLockedByAdmin:Xe,unlockFetchState:i.unlockChargeCardsFetchState.fetchState,onClick:xe=>{xe.stopPropagation(),pe&&ne!=="In-Progress"&&(e||!Xe)&&q(e)},onMouseEnter:()=>{(e||!Xe)&&ne!=="In-Progress"&&le(!0)},onMouseLeave:()=>{(e||!Xe)&&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(Gt,{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(Gt,{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(Xn,{}):ne==="In-Progress"?t.jsx(Gn,{}):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(Zn,{isVisible:te&&pe,shouldEnterLayout:ae,children:ve.moreOptions.unlock})]})}):oe&&he!=null?t.jsx(Gt,{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:Z,onFireOnClickAnalytics:V,setShowSecretInfo:X})},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:G,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(Ga,{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:Z,onFireOnClickAnalytics:V,setShowSecretInfo:X})},"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:G,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(Jn,{children:t.jsx(Ga,{scaleFactor:N})})})]}):null]})]})]}),F?t.jsx(An,{children:ve.cardClosedMessage}):Xe&&!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)`
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:G,setIsCardDetailErrored:Y,setShowSecretInfo:X,setSecretRevealed:R,setShowPhoneNumberForOtp:Z,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,E]=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),Re=i.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:Ee}=$r(),J=Ie(),N=u?.75:J==="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&&(E(!0),ce(!1))},[pe,F]),o.useEffect(()=>{Me==="In-Progress"&&W==="Completed"&&(fe.current&&clearTimeout(fe.current),K(!1),E(!1),ce(!0),setTimeout(()=>{K(!0)},0),fe.current=setTimeout(()=>{K(!1),E(!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),E(!1),je(!1)},1e3))},[ne,Ve]),o.useEffect(()=>{rt==="In-Progress"&&Ye==="Completed"&&(fe.current&&clearTimeout(fe.current),de(!1),E(!1),ce(!0),setTimeout(()=>{de(!0)},0),fe.current=setTimeout(()=>{de(!1),E(!0)},1e3))},[Ye,rt]);const Oe=Ee?ve.tapCardCopyText:ve.scanNowAndAddToWallet,ge=Ee?ve.tapCardCopyText:t.jsxs(Fn,{children:[t.jsx(is,{}),ve.clickTheCardToFetchDetailsText]}),Xe=i.chargeCard?.isLockedByAdmin??!1,ht=J==="small"?ve.tapCardCopyText:ve.clickTheCardToCopyDetailsText,pt=J==="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:J,scaleFactor:N,children:[t.jsxs(Bn,{isCardLocked:pe,isChargeCardAdmin:e,isLockedByAdmin:Xe,unlockFetchState:i.unlockChargeCardsFetchState.fetchState,onClick:xe=>{xe.stopPropagation(),pe&&ne!=="In-Progress"&&(e||!Xe)&&q(e)},onMouseEnter:()=>{(e||!Xe)&&ne!=="In-Progress"&&le(!0)},onMouseLeave:()=>{(e||!Xe)&&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(Gt,{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(Gt,{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(Xn,{}):ne==="In-Progress"?t.jsx(Gn,{}):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(Zn,{isVisible:te&&pe,shouldEnterLayout:ae,children:ve.moreOptions.unlock})]})}):oe&&he!=null?t.jsx(Gt,{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,Re.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:Z,onFireOnClickAnalytics:V,setShowSecretInfo:X})},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:R,onFireOnClickAnalytics:V,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:A,cardDetailsFetchState:y,setCardDetailsFetchState:G,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(Ga,{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:Z,onFireOnClickAnalytics:V,setShowSecretInfo:X})},"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:R,onFireOnClickAnalytics:V,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:A,cardDetailsFetchState:y,setCardDetailsFetchState:G,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(Jn,{children:t.jsx(Ga,{scaleFactor:N})})})]}):null]})]})]}),F?t.jsx(An,{children:ve.cardClosedMessage}):Xe&&!e?t.jsx(Rn,{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(En,{}):t.jsx(Yt,{children:l?it:xt}):Fe?t.jsx(Yt,{children:ve.loading}):null]})},An=r(Ce)`
192
192
  color: ${c.important};
193
- `,En=r(Ce)`
193
+ `,Rn=r(Ce)`
194
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`
195
+ `,En=()=>t.jsxs(Vn,{children:[t.jsx(zn,{}),t.jsx(Mn,{children:ve.failedToFetchCardWebText})]}),Fn=r.div`
196
196
  display: flex;
197
197
  align-items: center;
198
198
  gap: ${a.sp2};
@@ -430,7 +430,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
430
430
  position: absolute;
431
431
  left: -${a.sp3};
432
432
  bottom: -${a.sp3};
433
- `,is=r(Rr)`
433
+ `,is=r(Er)`
434
434
  color: ${e=>e.theme.colors.hero};
435
435
  width: ${a.sp3};
436
436
  height: ${a.sp3};
@@ -497,7 +497,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
497
497
  background-position-x: right;
498
498
  background-position-y: bottom;
499
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:Ge,dateFormat:gt,spendManagement:cs}=ke.getLocalizedStrings(),Ze=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:G,isAddressCopied:Y,addressToShow:X,isOwnCard:E,vgsVaultId:Z,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}=Gi(),J=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:Ge.texts.spent}),t.jsx(Xa,{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(Xa,{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(Ja,{windowSize:L,children:Ge.texts.remaining})]}),ee?t.jsxs(Ts,{windowSize:L,children:[t.jsx(As,{children:Ze.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:Ze.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(Ja,{windowSize:L,children:Ze.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs(Rs,{children:[t.jsx(Fs,{children:Ge.texts.limitReset}),t.jsx(Ps,{children:fe})]}):null]})]}):null]}),t.jsx(hs,{chargeCardDetailView:e,classListFetchState:u,cardOwnerName:A,addressToShow:X,isAddressCopied:Y,isOwnerNameCopied:G,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:J?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:Z,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:Ze.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(Za,{windowSize:g,onClick:l,"data-testid":Q("owner-name-copy-click"),onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:[t.jsxs(jt,{children:[Ze.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?Ge.copyToClipBoard.copied:Ge.copyToClipBoard.copy}):null]})]}),t.jsx(qa,{children:t.jsx(Xt,{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:[Ze.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?Ge.copyToClipBoard.copied:Ge.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(Za,{windowSize:g,children:[t.jsx(jt,{children:Ze.connectedAccount}),t.jsxs(bs,{children:[t.jsx(Os,{children:t.jsx(Hs,{})}),t.jsx(Xt,{children:S})]})]}):null,t.jsxs(Ya,{windowSize:g,children:[t.jsx(jt,{children:Ze.department}),t.jsx(qa,{children:t.jsx(Xt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(Ct,{size:"Small",start:!0}):e.chargeCard?.department?.className??Ge.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`
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:Ge,dateFormat:gt,spendManagement:cs}=ke.getLocalizedStrings(),Ze=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:G,isAddressCopied:Y,addressToShow:X,isOwnCard:R,vgsVaultId:Z,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:E,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),Re=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:Ee}=Gi(),J=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:Ge.texts.spent}),t.jsx(Xa,{children:t.jsx(Ls,{windowSize:L,children:qe("0,0.[00]",i)})}),t.jsx(zs,{windowSize:L,children:t.jsx(Vs,{style:{width:`${Re}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(Xa,{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(Ja,{windowSize:L,children:Ge.texts.remaining})]}),ee?t.jsxs(Ts,{windowSize:L,children:[t.jsx(As,{children:Ze.updateSpendLimitPopup.unlockSpending}),t.jsx(Rs,{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:Ze.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(Ja,{windowSize:L,children:Ze.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs(Es,{children:[t.jsx(Fs,{children:Ge.texts.limitReset}),t.jsx(Ps,{children:fe})]}):null]})]}):null]}),t.jsx(hs,{chargeCardDetailView:e,classListFetchState:u,cardOwnerName:A,addressToShow:X,isAddressCopied:Y,isOwnerNameCopied:G,onOwnerNameCopyClick:k,onAddressCopyClick:E})]}),t.jsx($s,{windowSize:L,isOwnCard:R,children:L==="small"&&!R?null:t.jsxs(t.Fragment,{children:[t.jsx(vs,{windowSize:L,children:J?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:R,isShowingInDrawer:!1,vgsVaultId:Z,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})}),!R&&e.chargeCard?.status.code!=="closed"&&e.chargeCard?.status.code!=="closed_by_customer"&&e.chargeCard?.status.code!=="locked"?t.jsx(ms,{children:Ze.cardDetails.adminsCannotAccess}):null,L==="small"&&R&&y&&ce===!1?Ee?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(Za,{windowSize:g,onClick:l,"data-testid":Q("owner-name-copy-click"),onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:[t.jsxs(jt,{children:[Ze.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?Ge.copyToClipBoard.copied:Ge.copyToClipBoard.copy}):null]})]}),t.jsx(qa,{children:t.jsx(Xt,{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:[Ze.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?Ge.copyToClipBoard.copied:Ge.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(Za,{windowSize:g,children:[t.jsx(jt,{children:Ze.connectedAccount}),t.jsxs(bs,{children:[t.jsx(Os,{children:t.jsx(Hs,{})}),t.jsx(Xt,{children:S})]})]}):null,t.jsxs(Ya,{windowSize:g,children:[t.jsx(jt,{children:Ze.department}),t.jsx(qa,{children:t.jsx(Xt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(Ct,{size:"Small",start:!0}):e.chargeCard?.department?.className??Ge.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
501
  display: flex;
502
502
  align-items: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"flex-start":"center"};
503
503
  gap: ${e=>$e.remainingAmountContainerGap.valuePx(e.windowSize)};
@@ -628,7 +628,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
628
628
  `,As=r(aa)`
629
629
  color: ${e=>e.theme.colors.hero};
630
630
  margin-right: ${a.sp1};
631
- `,Es=r(io)`
631
+ `,Rs=r(io)`
632
632
  background: none;
633
633
  border: none;
634
634
  cursor: pointer;
@@ -637,7 +637,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
637
637
  &:hover {
638
638
  text-decoration: underline;
639
639
  }
640
- `,Rs=r.div`
640
+ `,Es=r.div`
641
641
  display: flex;
642
642
  align-items: flex-end;
643
643
  gap: ${a.sp1};
@@ -745,7 +745,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
745
745
  align-items: center;
746
746
  transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
747
747
  ${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"}
748
- `,nr=r(Rr)`
748
+ `,nr=r(Er)`
749
749
  width: 12px;
750
750
  height: 12px;
751
751
  cursor: pointer;
@@ -780,7 +780,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
780
780
  &:hover {
781
781
  color: ${e=>e.hideSorting?e.theme.colors.hero:e.theme.colors.primary};
782
782
  }
783
- `;function Zr(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"})),Xr=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,Jr=(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),[G,Y]=o.useState([]),[X,E]=o.useState(null);o.useEffect(()=>{!s&&x&&(se(Z[0]),le())},[s,x]);const Z=Kr(n),[ie,se]=o.useState(Z[0]),[V,q]=o.useState([]),[B,ee]=o.useState(void 0);o.useEffect(()=>{async function J(N){V.includes(N.attachment_id)?console.warn(`Attachment with ID ${N.attachment_id} is already getting downloaded`):(q([N.attachment_id,...V]),await Zr(w,b,N),q(Or(V,W=>W==N.attachment_id)))}B!=null&&(J({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([]),Z.length>0&&se(Z[0])},le=()=>{y(!0);const J=Z.map(W=>W.id);async function N(W){return await qr(p,b,W)}N({card_id:l,transaction_id:n.id,attachment_ids:J}).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(Z[0]),le())},O=o.useRef(null);async function U(J,N){$(n.id,l,"In-Progress"),await Br(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,J,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=J=>{if(J.target.files!=null){const N=J.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=Gr(),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:J=>{J.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:J=>{J.stopPropagation()},children:t.jsx(zr,{name:"transactionLineAttachment",fileRef:O,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:k,multiple:!0,onFileSizeError:(J,N)=>{J&&v(!1,{code:500,message:N===!0?sr.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",It(i,0)):sr.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",It(i,0))})}})}),Jr(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&&Z.length>0?Nr.createPortal(t.jsx(Mr,{allFiles:G,fileSource:X,file:ie,title:ie.fileName,attachments:Z,setFileSource:E,setShowFullScreenView:y,onCrossClick:te,setSelectedFileAttachment:se,onDownloadClick:J=>{ee(J.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},pd=r.div``,ud=r.div`
783
+ `;function Zr(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"})),Xr=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(Eo),ld=(e,i)=>(e.attachmentFilePaths?.length??0)>0?cd:e.amount.amount<=i.amount?dd:sd,Jr=(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(Ed,{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),[G,Y]=o.useState([]),[X,R]=o.useState(null);o.useEffect(()=>{!s&&x&&(se(Z[0]),le())},[s,x]);const Z=Kr(n),[ie,se]=o.useState(Z[0]),[V,q]=o.useState([]),[B,ee]=o.useState(void 0);o.useEffect(()=>{async function J(N){V.includes(N.attachment_id)?console.warn(`Attachment with ID ${N.attachment_id} is already getting downloaded`):(q([N.attachment_id,...V]),await Zr(w,b,N),q(Or(V,W=>W==N.attachment_id)))}B!=null&&(J({card_id:l,transaction_id:n.id,attachment_id:B}),ee(void 0))},[B]);const te=()=>{D(n.id,l,!1),y(!1),R(null),Y([]),Z.length>0&&se(Z[0])},le=()=>{y(!0);const J=Z.map(W=>W.id);async function N(W){return await qr(p,b,W)}N({card_id:l,transaction_id:n.id,attachment_ids:J}).then(W=>{Y(W),W.length>0&&R(W[0])})},{merchant:ae,createTime:H,transactionType:oe,thirdPartyTransactionId:K}=n,I=()=>{s?(u(),D(n.id,l,!0)):(se(Z[0]),le())},O=o.useRef(null);async function U(J,N){$(n.id,l,"In-Progress"),await Br(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,J,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=J=>{if(J.target.files!=null){const N=J.target.files,W=[],Me=[];for(let ne=0;ne<N.length;ne++)W.push(N[ne].name),Me.push(N[ne]);U?.(Me,W)}},E=Gr(),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,Re=je&&n.direction==="debit",Ee=je&&n.direction==="credit";return t.jsxs(Cd,{windowSize:S,isClickable:fe,"data-testid":Q("card-transaction-row",n.id),onClick:J=>{J.stopPropagation(),fe&&A(oe.code,K)},children:[t.jsx(fd,{children:t.jsxs(wd,{children:[t.jsxs(xd,{windowSize:S,responsiveWidth:E[0].width,children:[Re?t.jsx(vd,{}):Ee?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:E[1].width,children:t.jsx(Id,{children:H.format(od.visual.MMMDCommaYYYYformat)})}),z!==!0&&t.jsx(Dd,{windowSize:S,responsiveWidth:E[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(Rd,{}):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:J=>{J.stopPropagation()},children:t.jsx(zr,{name:"transactionLineAttachment",fileRef:O,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:k,multiple:!0,onFileSizeError:(J,N)=>{J&&v(!1,{code:500,message:N===!0?sr.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",It(i,0)):sr.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",It(i,0))})}})}),Jr(n,d,de,I)]})}),z!==!0&&t.jsx(Ld,{windowSize:S,responsiveWidth:E[3].width,children:t.jsx(Td,{title:oe.name,children:oe.name})}),t.jsx(bd,{windowSize:S,responsiveWidth:E[4].width,children:t.jsx(Sd,{windowSize:S,title:qe("0,0.[00]",n.amount),children:n.direction==="debit"?L:`-${L}`})})]})}),M&&Z.length>0?Nr.createPortal(t.jsx(Mr,{allFiles:G,fileSource:X,file:ie,title:ie.fileName,attachments:Z,setFileSource:R,setShowFullScreenView:y,onCrossClick:te,setSelectedFileAttachment:se,onDownloadClick:J=>{ee(J.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},pd=r.div``,ud=r.div`
784
784
  display: flex;
785
785
  flex-direction: row;
786
786
  align-items: center;
@@ -910,11 +910,11 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
910
910
  &:hover {
911
911
  color: ${e=>e.theme.colors.primary};
912
912
  }
913
- `,Ed=r(ft)`
913
+ `,Rd=r(ft)`
914
914
  height: ${a.sp4};
915
915
  width: ${a.sp4};
916
916
  color: ${c.success};
917
- `,Rd=r(vo)`
917
+ `,Ed=r(vo)`
918
918
  height: ${a.sp4};
919
919
  width: ${a.sp4};
920
920
  cursor: pointer;
@@ -930,7 +930,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
930
930
  &:hover {
931
931
  color: ${e=>e.theme.colors.primary};
932
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,G]=o.useState(0),[Y,X]=o.useState(0),E=F=>{X(F),B(!0),K(H[F]),ae(ee[F])};function Z(F){M(F.targetTouches[0].clientX)}function ie(F){G(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),G(0)):z-y<-50&&y!==0&&Y>0&&(E(se(Y-1)),M(0),G(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 Zr(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 J=()=>{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(Xd,{children:t.jsxs(Kd,{children:[t.jsxs(ec,{children:[t.jsx(Gd,{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(Jd,{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(Zd,{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))})}})}),Jr(n,d,J,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:Z,handleTouchMove:ie,handleTouchEnd:V}),document.body):null]})},ei=e=>we`
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,G]=o.useState(0),[Y,X]=o.useState(0),R=F=>{X(F),B(!0),K(H[F]),ae(ee[F])};function Z(F){M(F.targetTouches[0].clientX)}function ie(F){G(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?(R(se(Y+1)),M(0),G(0)):z-y<-50&&y!==0&&Y>0&&(R(se(Y-1)),M(0),G(0))}const[q,B]=o.useState(!1),[ee,te]=o.useState([]),[le,ae]=o.useState(null);o.useEffect(()=>{!s&&C&&(K(H[0]),E())},[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 Zr(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])},E=()=>{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]),E())},Re=o.useRef(null);async function Ee(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 J=()=>{Re.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]);Ee?.(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(Xd,{children:t.jsxs(Kd,{children:[t.jsxs(ec,{children:[t.jsx(Gd,{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(Jd,{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(Zd,{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:Re,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))})}})}),Jr(n,d,J,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:Z,handleTouchMove:ie,handleTouchEnd:V}),document.body):null]})},ei=e=>we`
934
934
  width: ${a.sp4};
935
935
  height: ${a.sp4};
936
936
  color: ${e.colors.hero};
@@ -1024,7 +1024,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
1024
1024
  margin-bottom: 6px;
1025
1025
  `,ic=r(ze)`
1026
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:G,onUploadReceiptComplete:Y,onUpdateScrollYOffset:X,updateChargeCardTransactionAttachments:E,updateChargeCardTransactionUploadReceiptsFetchStatus:Z,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(G);K.current=G;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})=>{X?.(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:Z,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`
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:G,onUploadReceiptComplete:Y,onUpdateScrollYOffset:X,updateChargeCardTransactionAttachments:R,updateChargeCardTransactionUploadReceiptsFetchStatus:Z,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(G);K.current=G;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})=>{X?.(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:R,onUploadReceiptComplete:Y,updateChargeCardTransactionUploadReceiptsFetchStatus:Z,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
1028
  display: block;
1029
1029
  height: ${e=>e.isEmptyTransaction?"calc(100vh - 436px)":"calc(100vh - 224px)"};
1030
1030
  width: 100%;
@@ -1123,9 +1123,9 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
1123
1123
  flex-direction: column;
1124
1124
  background-color: ${e=>e.theme.colors.grey4};
1125
1125
  height: inherit;
1126
- `,Ec=r(Ac)`
1126
+ `,Rc=r(Ac)`
1127
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:G,setCardDetailsFetchState:Y,setIsCardDetailErrored:X,setShowSecretInfo:E,setSecretRevealed:Z,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(Gc,{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:G,setCardDetailsFetchState:Y,setIsCardDetailErrored:X,setSecretRevealed:Z,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(Zc,{})}),t.jsx(Wc,{children:He.verifyCard})]}),t.jsx(Fc,{children:t.jsx(_c,{children:s==="apple"?He.VerifyCardDescriptionApple:He.VerifyCardDescriptionGoogle})})]})]})]})]})})},Fc=r.div`
1128
+ `,Ec=({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:G,setCardDetailsFetchState:Y,setIsCardDetailErrored:X,setShowSecretInfo:R,setSecretRevealed:Z,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):R(!0)},onFireVerifyPopOnClickAnalytics:ae,setShowOtpPopup:I,onResendOtp:le,setShowPhoneNumberPopup:U,onGetOtp:H}),t.jsxs(Rc,{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(Gc,{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:R,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:G,setCardDetailsFetchState:Y,setIsCardDetailErrored:X,setSecretRevealed:Z,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(Zc,{})}),t.jsx(Wc,{children:He.verifyCard})]}),t.jsx(Fc,{children:t.jsx(_c,{children:s==="apple"?He.VerifyCardDescriptionApple:He.VerifyCardDescriptionGoogle})})]})]})]})]})})},Fc=r.div`
1129
1129
  display: flex;
1130
1130
  justify-content: end;
1131
1131
  `,Pc=r.div`
@@ -1185,7 +1185,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
1185
1185
  width: ${a.sp4};
1186
1186
  height: ${a.sp4};
1187
1187
  color: ${e=>e.theme.colors.graphColor16Dark};
1188
- `,{spendManagement:{chargeCard:{cardDetails:Je}},common:{strings:Yc}}=ke.getLocalizedStrings(),ha={iFrameWidth:new T(188,188)};function Xc({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,G]=o.useState(!1),[Y,X]=o.useState(!1),[E,Z]=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?X(!0):(k?.isTouched===!0&&k?.isValid===!0&&k?.isFocused===!1||k?.isTouched===!0&&k?.isValid===!0&&k?.isFocused===!0)&&(X(!1),q(!1)),R?.isTouched===!0&&R?.isValid===!1&&R?.isFocused===!1?Z(!0):(R?.isTouched===!0&&R?.isValid===!0&&R?.isFocused===!1||R?.isTouched===!0&&R?.isValid===!0&&R?.isFocused===!0)&&Z(!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")):(X(!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;G(!0),I===!0&&O===!0&&oe(m)},onCancelClick:p};return t.jsx(Fi,{titleComponent:t.jsx(Kc,{children:Je.moreOptions.changePin}),descriptionComponent:t.jsxs(Jc,{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:Je.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:Je.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:Je.incorrectCurrentPIN}):null,ie?t.jsx(mr,{children:Je.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:Je.forgotYourPin}),Yc.space,Je.callTollFree]})})}const Kc=r(eo)`
1188
+ `,{spendManagement:{chargeCard:{cardDetails:Je}},common:{strings:Yc}}=ke.getLocalizedStrings(),ha={iFrameWidth:new T(188,188)};function Xc({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,G]=o.useState(!1),[Y,X]=o.useState(!1),[R,Z]=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"],E=de["data.attributes.newPin"];k?.isTouched===!0&&k?.isValid===!1&&k?.isFocused===!1?X(!0):(k?.isTouched===!0&&k?.isValid===!0&&k?.isFocused===!1||k?.isTouched===!0&&k?.isValid===!0&&k?.isFocused===!0)&&(X(!1),q(!1)),E?.isTouched===!0&&E?.isValid===!1&&E?.isFocused===!1?Z(!0):(E?.isTouched===!0&&E?.isValid===!0&&E?.isFocused===!1||E?.isTouched===!0&&E?.isValid===!0&&E?.isFocused===!0)&&Z(!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")):(X(!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;G(!0),I===!0&&O===!0&&oe(m)},onCancelClick:p};return t.jsx(Fi,{titleComponent:t.jsx(Kc,{children:Je.moreOptions.changePin}),descriptionComponent:t.jsxs(Jc,{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:Je.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:R,windowSize:C,isFirstField:!1,validation:y,onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),newPinInputHighlighted:z,children:[t.jsx(pr,{children:Je.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:Je.incorrectCurrentPIN}):null,ie?t.jsx(mr,{children:Je.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:Je.forgotYourPin}),Yc.space,Je.callTollFree]})})}const Kc=r(eo)`
1189
1189
  margin-top: ${a.sp7};
1190
1190
  padding-left: ${a.sp8};
1191
1191
  padding-right: ${a.sp8};
@@ -1277,7 +1277,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
1277
1277
  background: ${e.theme.colors.background};
1278
1278
  }
1279
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,Jl=({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:G,cardIssuedByDepartmentName:Y,cardHolderRoles:X,cardHolderDepartmentName:E,loggedInUserRole:Z,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:J,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(),Xe=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(Xe.loggedInUserRoleMap),{text1:mi,text2:gi}=Ti(Sa),$a=`${mi} ${gi}`,Vt=e.chargeCard?.isDeclinedTransaction===!0,Ci=()=>{Jt({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"),Jt({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"),Jt({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(Xc,{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(Go,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Ft(!1),onSubmitClick:P=>{e.chargeCard&&ce(be,P)}}),si&&e.chargeCard!=null?t.jsx(Zo,{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:G,cardHolderRoles:X,loggedInUserRole:Z,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:G,cardIssuedByDepartmentName:Y,cardHolderRoles:X,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:G,cardHolderRoles:X,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:J,updateChargeCardTransactionIsViewReceiptClicked:N})]})})})]})},Jt=({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`
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,Jl=({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:G,cardIssuedByDepartmentName:Y,cardHolderRoles:X,cardHolderDepartmentName:R,loggedInUserRole:Z,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:E,onVerifyOtp:re,updateChargeCardName:ce,onVerifyOtpSuccess:L,onColorCodeChange:je,onColumnSortConfigChanged:fe,updateChargeCardTransactionAttachments:Re,updateChargeCardTransactionUploadReceiptsFetchStatus:Ee,updateChargeCardTransactionReceiptsShowTick:J,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(),Xe=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),[Rt,pa]=o.useState(!1),[Et,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(Xe.loggedInUserRoleMap),{text1:mi,text2:gi}=Ti(Sa),$a=`${mi} ${gi}`,Vt=e.chargeCard?.isDeclinedTransaction===!0,Ci=()=>{Jt({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"),Jt({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"),Jt({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),Rt===!0&&setTimeout(()=>{pa(!1)},800),Et===!0&&setTimeout(()=>{ua(!1)},800)},[Rt,Et,it]);const[El,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),Ra=tt(Bt),Ea=tt(Wt);o.useEffect(()=>{Ta==="In-Progress"&&Ht==="Completed"?bt(!1):Aa==="In-Progress"&&Nt==="Completed"?Ft(!1):Ra==="In-Progress"&&Bt==="Completed"?St(!1):Ea==="In-Progress"&&Wt==="Completed"&&$t(!1)},[Ht,Nt,Bt,Wt,Ta,Aa,Ra,Ea]);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(Xc,{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(Ec,{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:E,setShowSecretInfo:Pt,secretRevealed:ga,setSecretRevealed:zt,onGetOtp:de,showDrawerAnimation:ba}),t.jsx(Ri,{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:E,setShowPhoneNumberPopup:ma,onGetOtp:de}),di&&t.jsx(Go,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Ft(!1),onSubmitClick:P=>{e.chargeCard&&ce(be,P)}}),si&&e.chargeCard!=null?t.jsx(Zo,{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:G,cardHolderRoles:X,loggedInUserRole:Z,cardIssuedByDepartmentName:Y,cardHolderDepartmentName:R,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(Ei,{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:G,cardIssuedByDepartmentName:Y,cardHolderRoles:X,cardHolderDepartmentName:R,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:Rt,isAddressCopied:Et,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:G,cardHolderRoles:X,cardIssuedByDepartmentName:Y,cardHolderDepartmentName:R,isDebitCard:De,appleWalletLink:ie,googleWalletLink:se,setWalletType:ui,setIsAddToWalletDrawerOpen:wa,showDrawerAnimation:ba}):null]}),listContent:t.jsx(Cr,{children:t.jsxs(Rl,{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:Re,updateChargeCardTransactionUploadReceiptsFetchStatus:Ee,updateChargeCardTransactionReceiptsShowTick:J,updateChargeCardTransactionIsViewReceiptClicked:N})]})})})]})},Jt=({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
1281
  background: ${c.important};
1282
1282
  display: flex;
1283
1283
  align-items: center;
@@ -1461,7 +1461,7 @@ import{y as at,J as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS
1461
1461
  height: ${a.sp3};
1462
1462
  width: ${a.sp3};
1463
1463
  color: ${c.success};
1464
- `,El=r.div`
1464
+ `,Rl=r.div`
1465
1465
  padding-top: ${e=>e.isOwnCard?e.isMobileOrTabletScreen?a.sp3:a.sp4:a.sp5};
1466
1466
  padding-bottom: ${a.sp4};
1467
1467
  `;export{Jl as default};