@zeniai/web-cockpit-ui 1.14.19-dev-betaSK01 → 1.14.20-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 (378) hide show
  1. package/dist/assets/ACHDetailsPage-CVBRtacz-BEkwx2cM.js +21 -0
  2. package/dist/assets/{AIPerformancePage-CJ0myi1p-CyCBKn16.js → AIPerformancePage-DnOjd2BF-CRXsdl24.js} +52 -52
  3. package/dist/assets/AccountInfoPage-Bt-jShgf-CCHYq--w.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-CVV20YhW-q-TI4Dr6.js → AccountInfoPageContent-Cc80eQeo-579rUIpL.js} +20 -20
  5. package/dist/assets/AccountLockedInfoModal-B-Hn6_hG-B-4Dg7na.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CNT6qZyD-ZHVZJgF9.js → AccountReconDetailsDrawerPage-Bz1Sk2du-CwztkqDE.js} +18 -18
  7. package/dist/assets/{AccountRow-COaolUm5-Bsrm5YYV.js → AccountRow-D01C0A0f-QA2NRq7R.js} +46 -46
  8. package/dist/assets/{AccountsPromoCardStack-BOmk5qYk-Bnozn1QW.js → AccountsPromoCardStack-DsjFJ8gZ-DjW6RsEa.js} +37 -37
  9. package/dist/assets/{AddAddressForCardDrawer-DQN-6ztS-C4C6h_V9.js → AddAddressForCardDrawer-DnoYIvUp-DRozqjCP.js} +2 -2
  10. package/dist/assets/{AddToWalletPage-CT9nivqI-BnXCEk6P.js → AddToWalletPage-BIiW9JxG-D9CD9wND.js} +122 -122
  11. package/dist/assets/{AgingReportsPage-DGzFK69_-DgqwpnRI.js → AgingReportsPage-WazD_3Z7-CoFeaJHD.js} +17 -17
  12. package/dist/assets/{AllUserItems-diZQlFqb-DwUtiew2.js → AllUserItems-CTSy4oBh-COmuQZqb.js} +18 -18
  13. package/dist/assets/ApAgingDetailPage--NGBXWsy-C8HiqI6Z.js +46 -0
  14. package/dist/assets/AppBasePage-B5br9UXD-BXEvz6Z3.js +70 -0
  15. package/dist/assets/{AppDrawerContent-Z3Hny9GH-BBS5jJHD.js → AppDrawerContent-vFeMNL3B-anFPhgeB.js} +13 -13
  16. package/dist/assets/ApprovalRulesSettingsPage-6j7VBBZ6-D1yZE3mH.js +47 -0
  17. package/dist/assets/ArAgingChart-BYWN3_Nl-CYX1U_rU.js +24 -0
  18. package/dist/assets/ArAgingDetailPage-B-hHa8A6-BrQATxNB.js +46 -0
  19. package/dist/assets/{AttachmentView-ChlYn2cr-DueA245P.js → AttachmentView-C2kWA5X5-XqMuBHHe.js} +8 -8
  20. package/dist/assets/{BankAccountSection-DdvqFTBS-3WhABy0l.js → BankAccountSection-B20IwpOn-dEqA-3oX.js} +7 -7
  21. package/dist/assets/{BankAccountWarningSection-VrRQxdkB-DFivrjf8.js → BankAccountWarningSection-GHO0P0IZ-jfpI3pUb.js} +10 -10
  22. package/dist/assets/{BankConnectionsSettingsPage-D1Y3V93C-Bfvr_pF_.js → BankConnectionsSettingsPage-Cpg1ObB6-DR3nDiYc.js} +33 -33
  23. package/dist/assets/{BillDetailPage-XL8GxSiQ-Cxb-3w9d.js → BillDetailPage-DOF5ibT6-Bat6GtFx.js} +17 -17
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-wIEW2R5G-CC_GZTsX.js → BillPayApprovalRuleDetailPage-BI1R1zT_-D9iKVE5j.js} +2 -2
  25. package/dist/assets/{BillPayApprovalRulesPage-kGddvG8V-rTKT6DIU.js → BillPayApprovalRulesPage-B3x4So_i-B5TxdAS5.js} +11 -11
  26. package/dist/assets/{BillPayPromoPage-VBLYqFtx-CSmxPHYz.js → BillPayPromoPage-BqzH5AIp-Bcp4yJP9.js} +10 -10
  27. package/dist/assets/BillPaySetUpPage-DqiNMnRE-abIQ9Tkf.js +42 -0
  28. package/dist/assets/BillingSettingsPage-BOAAGOLs-CdPqd8Hl.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-B76xXQJ9-CbXzjgOR.js +1 -0
  30. package/dist/assets/{BoxItem-DJq3mny1-nPTLB__B.js → BoxItem-DCsIK5bA-DrkhsCS_.js} +4 -4
  31. package/dist/assets/BusinessVerificationPage-hSVDM_Bi-eN7TBacX.js +140 -0
  32. package/dist/assets/{CardNumberSubText-Bo_ZeAR0-DocU3odv.js → CardNumberSubText-B_ZdgYVm-CRvH-CRy.js} +4 -4
  33. package/dist/assets/{CashbackDetailPage-0Yl3lHzq-CJUtuV5y.js → CashbackDetailPage-CNeEt6aE-CsctITKU.js} +32 -32
  34. package/dist/assets/{ChargeCardDetailPage-BaceF_92-G63YAG6z.js → ChargeCardDetailPage-C0a8jqCD-CUfhgRr0.js} +78 -78
  35. package/dist/assets/ChargeCardListPage-_3lJqIYP-iewbQ3J2.js +355 -0
  36. package/dist/assets/{ChargeCardListTable-DE1xnRyd-D2F1GAJW.js → ChargeCardListTable-Kx-_ZAZu-BvnPLhgK.js} +62 -62
  37. package/dist/assets/ChargeCardPromoPage-CKTkcQdI-B3wD2hqP.js +222 -0
  38. package/dist/assets/ChargeCardSetupPage-CGRMFERy-BQ8k2roy.js +36 -0
  39. package/dist/assets/{ChargeCardStatementsPage-bpyamxR5-WxHdE5xc.js → ChargeCardStatementsPage-B_7CdyKP-CMTrFXHN.js} +13 -13
  40. package/dist/assets/ChargeCardUtils-BcwLwgz7-DrE0N0EF.js +1 -0
  41. package/dist/assets/{ChaseOverlay-YVpKSII6-BIyjTgCz.js → ChaseOverlay-ClcKUdpT-Buerorcp.js} +12 -12
  42. package/dist/assets/CheckDepositDrawerPage-I3siSP2H-BrRdb26D.js +206 -0
  43. package/dist/assets/{CollapsableReportTable-CDe76ha7-3Q7qsS_e.js → CollapsableReportTable-ULd7PQST-DRS_mwem.js} +57 -57
  44. package/dist/assets/{CompanyOfficerDetailsSection-CeVdKqY7-DWrcELqw.js → CompanyOfficerDetailsSection-DLaAmVLG-9U29EMpY.js} +32 -32
  45. package/dist/assets/{CompanyPassportCard-O7LbMSSb-D53wb0da.js → CompanyPassportCard-CZQuAyI2-Du4zK6a2.js} +8 -8
  46. package/dist/assets/{CompanyPassportPage-B05q2F4S-DiyGLc2N.js → CompanyPassportPage-DqoVJfO--BezYa4q3.js} +154 -154
  47. package/dist/assets/CompleteProfile-BJV-xUlM-DoWTiT1k.js +52 -0
  48. package/dist/assets/ConfettiBurst-D4ga9TRN-DITQey3L.js +1 -0
  49. package/dist/assets/{CreateOrEditVendorPage-BZ6ZfaSo-Dn1DLrma.js → CreateOrEditVendorPage-C6efUMJu-BO_oyqIH.js} +13 -13
  50. package/dist/assets/{CreditCardPaymentDrawerPage-cABpaIqh-BIRd807Z.js → CreditCardPaymentDrawerPage-26ysDTts-B2nPMyDO.js} +16 -16
  51. package/dist/assets/{CreditCardPaymentPlgSection-BgJ074tY-CfzZdzTd.js → CreditCardPaymentPlgSection-8NQI5gcx-CtF_TfUM.js} +12 -12
  52. package/dist/assets/{CurrencySelectField-BfgtNimH-BYHOS_CH.js → CurrencySelectField-CVNn0XCq-DT36t2lI.js} +6 -6
  53. package/dist/assets/{CustomerOnboardingActivationPage-Czg8rmEW-YInlsWzY.js → CustomerOnboardingActivationPage-D0-sOxDl-Bm2kAKIU.js} +4 -4
  54. package/dist/assets/CustomerOnboardingContainerPage-DoibuhLN-8rsNTWNZ.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DtYTYPnO-DzMzbH73.js → CustomerOnboardingDetailPageSkeleton-B7hkzgkV-BXEF9ppx.js} +17 -17
  56. package/dist/assets/CustomerOnboardingNoStepsPage-CD1QldcG-CzeAfya1.js +66 -0
  57. package/dist/assets/{CustomerOnboardingPage-CXZCAc_N-BfMJFDq7.js → CustomerOnboardingPage-DB1gXgdD-CUHFehdd.js} +6 -6
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-ucFJ1PHr-BwZiAWEx.js → CustomerOnboardingProductSuitePage-DGMmLmq8-Cbgji3lL.js} +12 -12
  59. package/dist/assets/{Dashboard-CAWL19Rr-CvQLInkH.js → Dashboard-CU3UQhxj-VVHJwggZ.js} +25 -25
  60. package/dist/assets/{DashboardReportPage-DYgKY1Ns-_VZzH9Ck.js → DashboardReportPage-DMdKWPtx-DkAIriFg.js} +27 -27
  61. package/dist/assets/DashboardSidebarBackgroundAnimation-BMEqBAyh-vfJQWz_r.js +12 -0
  62. package/dist/assets/{DepositAccTransactionItem-DeOMizAI-BUL1onQj.js → DepositAccTransactionItem-C1-JGWD1-BMvGw-zQ.js} +10 -10
  63. package/dist/assets/DepositAccTransactionListPage-CfwhQ7mC-B3prPdix.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-FsJvVULE-cMWuJpE8.js → DomesticWireDetailsPage-D6fDbjcO-DHXj9Zdn.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-CVCKyDWO-CyzPCm3f.js → DownloadOverlay-CsX54puJ-DeWJ_bTZ.js} +39 -39
  66. package/dist/assets/{DrawerPage-l697kk-T-C0lMqvCR.js → DrawerPage-xYwGDHR6-Ch0S05SG.js} +17 -17
  67. package/dist/assets/EditPeoplePage-9SmQtrJz-Cw0-GcjG.js +55 -0
  68. package/dist/assets/{EditReimbursementDetailPage-COuH1JPm-DF1XIZnj.js → EditReimbursementDetailPage-EUO0BoRp-EVPPjvHX.js} +49 -49
  69. package/dist/assets/{EntityDetailPage-BqjWJTDI-qcUtYQZh.js → EntityDetailPage-CF6LS35a-CeBa6jKf.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-B1zP9dKH-kkSLVqaS.js → EntitySummarySection-C0gR6pkr-AtoRf1sI.js} +11 -11
  71. package/dist/assets/ExpenseAutomationOverviewPage-B0I8v21w-C1ihD57y.js +222 -0
  72. package/dist/assets/{ExpenseAutomationPage-DP0P07VH-DhP4-CZe.js → ExpenseAutomationPage-BorzJM7G-DFmLOpV0.js} +88 -88
  73. package/dist/assets/{ExpressPayPage-CuuS2EDn-D3uvvYo2.js → ExpressPayPage-D0YWItIv-Bvps2LX7.js} +11 -11
  74. package/dist/assets/FeaturePreviewPage-yu8G5cHk-BxkuThqr.js +11 -0
  75. package/dist/assets/{FollowStepsSection-DbS5XlIB--DgM9Akw.js → FollowStepsSection-DRDFxA8H-Dg1nQMTR.js} +11 -11
  76. package/dist/assets/{GlobalReviewListPage-D1a2gbca-BjGUSD3w.js → GlobalReviewListPage-D80yv7U2-CfvcgDlu.js} +11 -11
  77. package/dist/assets/{HelpButton-Dw0OujKs-8AApGgt1.js → HelpButton-D9ONg6cm-CuNxHNm2.js} +7 -7
  78. package/dist/assets/{InformationCardStack-QA9nEJlH-BHcB9j6E.js → InformationCardStack-CbKQwtHm-B7yYvAdF.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-DKM6Xigy-B12rMXAv.js → InsightsCardStack-BWsN9_G2-DemEieR0.js} +13 -13
  80. package/dist/assets/InsightsSection-WZo-AWJt-DohBwSi_.js +27 -0
  81. package/dist/assets/IntegrationsSettingsPage-BLjSJt9r-6t6Ass9f.js +57 -0
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-KC-9TwlR-DtVQ4upN.js → InternationalWireSwiftDetailsPage-BXNDZ1Mk-BO2f4UVV.js} +16 -16
  83. package/dist/assets/{InternationalWireVerificationPage-D59omOr2-BqyFDoPr.js → InternationalWireVerificationPage-BLgPJ1NJ-CMky3KEh.js} +12 -12
  84. package/dist/assets/InviteFormPage-DPQ4vL9--DIhY9xxd.js +312 -0
  85. package/dist/assets/{InvitePageListView-BO-RmmHm-B9WEWx8n.js → InvitePageListView-YUKxUGBn-CGJ_yirg.js} +58 -58
  86. package/dist/assets/InvitePeoplePage-C3vECRns-DBtYnb-4.js +12 -0
  87. package/dist/assets/{InvoiceUploadSection-CibgDVMW-Ct_Yqg-6.js → InvoiceUploadSection-Cx6pXJiN-CgRQkeV5.js} +10 -10
  88. package/dist/assets/{IssueChargeCardPage-CB5DhzQb-Dowc3uml.js → IssueChargeCardPage-DZVtocCO-B49QpSq-.js} +75 -75
  89. package/dist/assets/LabeledAddressValue-BrB2xQYz-B09yXjLA.js +49 -0
  90. package/dist/assets/LabeledAddressValueField-_35LG3OI-C2eHerzm.js +45 -0
  91. package/dist/assets/LabeledControlledCheckBoxField-o0K1dba0-BZipP4yv.js +16 -0
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CIhXQBns-C3KOt5qj.js → LabeledCreatableSingleSelectField-DQwGH21a-D1Rth7u2.js} +8 -8
  93. package/dist/assets/LabeledDocumentField-CfgzkjDY-CbC276Lv.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-pClUx8A9-Dtg8BoKW.js → LabeledDropDownFormattedTextField-DdaTvUbM-C4uCaUJ3.js} +10 -10
  95. package/dist/assets/{LabeledText-CW-bei7--hAClqsQN.js → LabeledText-Hi4MixDN-n_lfAbe7.js} +3 -3
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DZUt2T7b-B09ph3mF.js → LabeledUserSingleSelectWithSubtitlesField-BlVebvR7-CKRRo1Fi.js} +22 -22
  97. package/dist/assets/{LabeledZeniRolesDropDownField-DNZUBYDP-ltAbPko_.js → LabeledZeniRolesDropDownField-Bm7Emr_n-JLIDvMIU.js} +11 -11
  98. package/dist/assets/LinkJETransactionPage-ittEPbhi-BCWKpHna.js +98 -0
  99. package/dist/assets/{LowBalancePopup-DcVkWdb3-vRNfAVIB.js → LowBalancePopup-ChA83eFW-dErt1yuL.js} +6 -6
  100. package/dist/assets/{MagicLinkACHDetailsPage-B3NEKP0z-DUbPO0xw.js → MagicLinkACHDetailsPage-B4PPI06n-DFF50HiV.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-SvX8hE_J-6LOmcKRH.js → MagicLinkDomesticWireDetailsPage-DRK5ytSb-CTgdy9NG.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DnrUY7JS-nyREbLmz.js → MagicLinkInternationalWireDetailsPage-C2pn5xtm-DTn743zM.js} +1 -1
  103. package/dist/assets/MagicLinkSuccessPage-Bag5TE2J-DCGiU-tX.js +31 -0
  104. package/dist/assets/MagicLinkTitleSection-Ch72cLUN-CsTRlAex.js +17 -0
  105. package/dist/assets/{MailingDetailsSection-DFxnpK8F-CiXDBg4h.js → MailingDetailsSection-CrHHLtQN-loRqi7di.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-LNaVbSrR-TEQEw5Mb.js → MeetingCalenderPopup-B_KRQLwc-CemZcgIl.js} +3 -3
  107. package/dist/assets/{Menu-BCNEnlpd-D3With3F.js → Menu-Czq7AdhP-C-oEbm2f.js} +3 -3
  108. package/dist/assets/{MyBankConnectionsSettingsPage-DCURGC-R-BMFNqNjE.js → MyBankConnectionsSettingsPage-y3YOYnQr-BDn2GzBg.js} +13 -13
  109. package/dist/assets/MyPendingActivationChargeCardListPage-DJeYzaPj-Dm2kAILW.js +6 -0
  110. package/dist/assets/MyProfileSettingsPage-hQvoACAQ-DxTxhxW-.js +85 -0
  111. package/dist/assets/{NavBarWithPicker-CBOGjIl3-ajX8qLcM.js → NavBarWithPicker-DUaSGf4d-hMIZgUnq.js} +6 -6
  112. package/dist/assets/{NavigationArrow-C6KDDKXh-BuGIAK_3.js → NavigationArrow-ClEBtns--CBhi3Wa5.js} +5 -5
  113. package/dist/assets/{NavigationDots-CGOsNTLj-ZRX96j5F.js → NavigationDots-BsJyQWOZ-DQaJD5qn.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-C478pZIu-cHWkOmAB.js → NewGlobalMerchantPage-BKZGSrDk-Bj0fLOGG.js} +4 -4
  115. package/dist/assets/{NoDataChart-BSoXaJD0-JxM1S3Cy.js → NoDataChart-Bk9eWo52-DbkTpf0E.js} +8 -8
  116. package/dist/assets/{NoDataTable-iH1r029I-DLkBIcoK.js → NoDataTable-DCQbtvPN-DkrWdcTk.js} +1 -1
  117. package/dist/assets/{NotFoundPage-BQLKWvT9-wlLCbXww.js → NotFoundPage-CGx7FoiU-CZaJl2_e.js} +6 -6
  118. package/dist/assets/{NotificationSettingsPage-R7veJvze-BqnLD-ld.js → NotificationSettingsPage-CoD8eTUS-8OIZSyCr.js} +26 -26
  119. package/dist/assets/NotificationsListConfig-hyqVBWDA-BxI8wBvU.js +1 -0
  120. package/dist/assets/{NotificationsPage-D_vooxhV-BtfMVNB5.js → NotificationsPage-BavPSx1H-CVEnlnNl.js} +60 -60
  121. package/dist/assets/{OpExByVendorPage-DWCdLRPc-peo3zX7H.js → OpExByVendorPage-DD8tCc8E-DObB3ZyW.js} +15 -15
  122. package/dist/assets/{OverlayContainerPage-1M2CZQoK-DROfCTrK.js → OverlayContainerPage-Dg-aOJQU-XdQCUH0G.js} +1 -1
  123. package/dist/assets/PandLWithForecastPage-bSkidYRR-D-Y5VMs1.js +107 -0
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-YLuS3VUf-CaBoPPAw.js → PaymentAccountSetupBillingAddressSection-CGIC_vLw-BIusm93k.js} +12 -12
  125. package/dist/assets/{PeoplePage-CRZ7ywRU-CZLazd8w.js → PeoplePage-C-2NZJpQ-BbdMKhWr.js} +36 -36
  126. package/dist/assets/{PortfolioAllocationFormPage-QP1Aoj30-7H62H89u.js → PortfolioAllocationFormPage-B6JOvEvW-BSgeoBob.js} +12 -12
  127. package/dist/assets/{PortfolioDetails-DOlYfVij-TNjtwW2_.js → PortfolioDetails-Cpv5bi4_-C3K7fsrr.js} +40 -40
  128. package/dist/assets/{ProductsCarousel-CzJnAk3w-MortVhyi.js → ProductsCarousel-WDd37Mjn-NLHTDL58.js} +11 -11
  129. package/dist/assets/{PromoBaseCards-CLKhsYfl-BEkL1oHo.js → PromoBaseCards-BaFkKGkm-Bw-1QrdI.js} +4 -4
  130. package/dist/assets/{QBOConnectionDialog-CiAUTeD2-D061mOJX.js → QBOConnectionDialog-l3ThoJCI-BaUAxpz_.js} +10 -10
  131. package/dist/assets/QBOSetupSection-DSrxcrXI-CnwGvTKQ.js +79 -0
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DCzX_1-a-BNW7pXC_.js → ReimbursementApprovalRuleDetailPage-hb8mPFw0-iXwT5wDy.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRulesPage-DfHVzdAB-hV-2mfna.js → ReimbursementApprovalRulesPage-fs4WqNUv-BvFXhzka.js} +10 -10
  134. package/dist/assets/{ReimbursementDetailPage-Di8XpCvg-B7b0ZH64.js → ReimbursementDetailPage-BYw6Mc2u-ZOQaZirb.js} +14 -14
  135. package/dist/assets/{ReimbursementPromoPage-CJSuqONm-DlocTKyV.js → ReimbursementPromoPage-DzDuwRxU-DEtJqrhv.js} +24 -24
  136. package/dist/assets/ReimbursementSetUpPage-DdT6uu1--I31J4BAO.js +140 -0
  137. package/dist/assets/ReimbursementsBulkReviewDrawerPage-CXvng56s-BxlZIO2c.js +1 -0
  138. package/dist/assets/{ReloadCard-BuBuLupE-Cty15m_t.js → ReloadCard-BPoOhxrs-D8lPs5qf.js} +5 -5
  139. package/dist/assets/ReportTableViewSelector-CkZW5TtX-I9C4FHDc.js +150 -0
  140. package/dist/assets/{ReportsPage-R29_iuow-B4_GPbvP.js → ReportsPage-C-ARKbIQ-CCoiMwuP.js} +6 -6
  141. package/dist/assets/{RevenueChart-D3r_Mgmm-XyYx-Hfz.js → RevenueChart-CuqZW-Jr-B_s8E_iU.js} +1 -1
  142. package/dist/assets/{ReviewDetailsPage-Cimq9su3-CRN9WHDV.js → ReviewDetailsPage-BVN_Uym2-d0L-TTpG.js} +17 -17
  143. package/dist/assets/ReviewOverlay-CIgtaUn1-wggYVp0Q.js +152 -0
  144. package/dist/assets/RoleWithToolTip-Dm4yIm31-3pGQtzkX.js +22 -0
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cbe0zp9o-DxmW_LFp.js → ScheduleDetailsFixedAssetsPage-Ce3z1VPg-SvqdKcr4.js} +13 -13
  146. package/dist/assets/{ScheduleDetailsPage-DxmJdx3I-Bant9wup.js → ScheduleDetailsPage-O69iLj4h-CXnxPezp.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-srpDx2n6-l1UT781V.js → ScheduleSequenceTable-DMIzc2zC-3WngbgQC.js} +27 -27
  148. package/dist/assets/{ScreenRoutes-DPjLo75W.js → ScreenRoutes-D3pC7BH7.js} +1 -1
  149. package/dist/assets/SetUpAccountSection-C1_QjMwF-C_2yznzy.js +378 -0
  150. package/dist/assets/{SetUpDefaultSection-BWt_kYKx-Dc8telSj.js → SetUpDefaultSection-B-ZEHQUb-iLzGQnWH.js} +15 -15
  151. package/dist/assets/SignIn-CXQyYEJI-BbNAmrjc.js +408 -0
  152. package/dist/assets/SignInScreen-DtWV87E_.js +1 -0
  153. package/dist/assets/SpendManagementListViewPage-DEMLoStE-C1nPAYM8.js +123 -0
  154. package/dist/assets/{SpendManagementPerTabPage-CZaPjNjx-Bhxn4ZLQ.js → SpendManagementPerTabPage-CLf-7YyR-60GdYb7a.js} +68 -68
  155. package/dist/assets/{SpendManagementSection-atmLAM4T-DeXVF-9S.js → SpendManagementSection-DIVgOKWy-D35voP2u.js} +22 -22
  156. package/dist/assets/{SpendMgmtSetupAccountSection-h6duObCp-PJLwXWd-.js → SpendMgmtSetupAccountSection-DFyUBsg3-DRIU7IWr.js} +18 -18
  157. package/dist/assets/StatementItem-CSyEn4Pz-CIQDSk8U.js +31 -0
  158. package/dist/assets/StatementsPage-D34J2aZa-9jSr3LU8.js +58 -0
  159. package/dist/assets/{StatusSwitcher-BTTEP3yZ-DwSqL8zG.js → StatusSwitcher-B77NoO6o-CLTHQ9CP.js} +2 -2
  160. package/dist/assets/{SubTabSwitcher-BedfItte-C-XhL99Y.js → SubTabSwitcher-baJGHUgJ-BPKK4q6_.js} +6 -6
  161. package/dist/assets/{SummaryCard--FoJZECU-DjUF26i-.js → SummaryCard-BvuRZj8f-DCeFdYs2.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-DchOWpNF-n_asmH-l.js → TaskManagementPage-vG8GXEJA-DX4VWYkl.js} +50 -50
  163. package/dist/assets/{TimeRangeSwitcher-RLCCDvSp-DYQOEgth.js → TimeRangeSwitcher-CnoZ9Rqp-QTEqL6la.js} +2 -2
  164. package/dist/assets/{TimeframeSwitcher-DABwUJSm-DPkuAUy9.js → TimeframeSwitcher-W5kHnuHI-B5U_sUAn.js} +4 -4
  165. package/dist/assets/{TimeframeSwitcherWithToggle-DMblyoo8-ize9yIra.js → TimeframeSwitcherWithToggle-yLA5y4zJ-CFlsdObg.js} +2 -2
  166. package/dist/assets/{TopExCard-BwOpZFuj-CBPfgwzP.js → TopExCard-oyXmygm8-DV87vjZL.js} +7 -7
  167. package/dist/assets/{TopExDetailPage-BLaZA-dy-BH7Jcbvo.js → TopExDetailPage-4HMIURzm-ulBg6b5V.js} +19 -19
  168. package/dist/assets/{TransactionDetailPage-BSDcUBWF-RsUJuQC6.js → TransactionDetailPage-CIw_7B72-CcQHWkUG.js} +55 -55
  169. package/dist/assets/{TransactionList-CnOj_LA1-DJxHv2ky.js → TransactionList-B9M4ftBY-9Xoftl5l.js} +27 -27
  170. package/dist/assets/{TransactionListBig-vNVdUmc6-C0TF6R2i.js → TransactionListBig-D5SRFdH7-CUrzZcWs.js} +26 -26
  171. package/dist/assets/TransactionListPage-DCiIH4ES-DulMTWBW.js +35 -0
  172. package/dist/assets/TransactionVendorDetailPage-BNY3vBm0-Cw6AkzlK.js +80 -0
  173. package/dist/assets/{TransferDrawerPage-BMfeqbNy-BPjvRE9M.js → TransferDrawerPage-DdgfrrRM-BBEomNnq.js} +36 -36
  174. package/dist/assets/{TreasuryOverviewPage-B0vqbfmt-Cncu2g9Z.js → TreasuryOverviewPage-COFbWN48-DSaB6zFu.js} +48 -48
  175. package/dist/assets/{TreasuryPromoPage-CQDA9os9-W40fA_vr.js → TreasuryPromoPage-EYqV98OG-CvFj_oTJ.js} +22 -22
  176. package/dist/assets/{TreasurySetupPage-ChKM9npc-DNsYbGBz.js → TreasurySetupPage-DEz3fabz-BopnXkx6.js} +9 -9
  177. package/dist/assets/TreasuryStatementsPage-JSf4JXXI-CSff_RYi.js +58 -0
  178. package/dist/assets/TreasuryTaxLetterPage-Id6od0WY-D3YHLWYb.js +58 -0
  179. package/dist/assets/{TreasuryTransferOrReviewPage-wt-8Okdj-CDylzOrV.js → TreasuryTransferOrReviewPage-D25tiep8-CregJCyC.js} +96 -96
  180. package/dist/assets/TrendChart-xBdkrxjQ-BHwV7FvD.js +16 -0
  181. package/dist/assets/{TrendWithTransactions-CaExMJVA-C_0n3oh-.js → TrendWithTransactions-CQdqelNB-BxApJhmm.js} +10 -10
  182. package/dist/assets/{UncategorizedAccountsMappingPage-CEHiflWp-D5pq-zY_.js → UncategorizedAccountsMappingPage-DaSjSoeK-2h_6-Ko4.js} +12 -12
  183. package/dist/assets/{UnitIntegrationPage-CNZbRdtN-B7b4N3wp.js → UnitIntegrationPage-zM4qGyLV-CinH_PeY.js} +4 -4
  184. package/dist/assets/UploadAdditionalDocumentOverlay-Y64l7Rho-BebTHNkT.js +38 -0
  185. package/dist/assets/{Vendor2FAPopup-CqQOI5F6-CXSUTyq5.js → Vendor2FAPopup-DO-eL5Ot-DjhAlKT-.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-BwYEhxJe-BB1a4fFU.js → VendorACHDetailsPage-BDROr_dC-CAZxPDsT.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-C5zTkWhA-Uj3MwLUr.js → VendorDetailPage-B8S-gV53-DaZx1eZP.js} +19 -19
  188. package/dist/assets/{VendorDomesticWireDetailsPage-DrwX_ukC-DBWePN-A.js → VendorDomesticWireDetailsPage-BrxQuXus-DYcgNh9D.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-C3wjgkez-Dr8QyAeR.js → VendorFiling1099EditablePage-BK-XGzxl-CVlxfcrS.js} +16 -16
  190. package/dist/assets/{VendorFirstReviewPage-BmRvA38Y-B_gKBGgZ.js → VendorFirstReviewPage-CrSdEY-q-DsAt-Zva.js} +31 -31
  191. package/dist/assets/{VendorInternationalWireDetailsPage-DtG2HQ0g-WjpK5qgH.js → VendorInternationalWireDetailsPage-DuE2n00d-C0HY8jsi.js} +14 -14
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DLSMDEiO-DSuW-yyD.js → VendorInternationalWireSwiftDetailsPage-_0douojx-uTqjQvZ8.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-5QJEJeCr-ovimcD6K.js → VendorsAccountsSection-C2McA3-C-CAGlOz8b.js} +4 -4
  194. package/dist/assets/VerifyDevice-BOb4uKLq-B9iw9cGN.js +96 -0
  195. package/dist/assets/{WarningsDrawerPage-rcWR2KXe-BgEVT8fd.js → WarningsDrawerPage-f9lS8sCp-Yx0s05ZC.js} +11 -11
  196. package/dist/assets/{ZeniAccountDetailPage-i8C1YB1W-CGdZ9Fyc.js → ZeniAccountDetailPage-BnWDpR9g-BpHh2OhY.js} +27 -27
  197. package/dist/assets/{ZeniAccountListViewPage-DyHxeqvW-CBT4R7Fd.js → ZeniAccountListViewPage-D9ORn0_O-BQPutSAN.js} +26 -26
  198. package/dist/assets/ZeniAccountNavBarPieces-4jG3uNmW-B7nBCOPn.js +14 -0
  199. package/dist/assets/{ZeniAccountPromoPage-C5icpLpX-DtIf5jxs.js → ZeniAccountPromoPage-CswETXvx-DfER_hgz.js} +21 -21
  200. package/dist/assets/ZeniAccountSetupPage-7B6Vgmg6-DsByA6Pf.js +36 -0
  201. package/dist/assets/{ZeniCopyright-BX1-vpnA-B9MOS9At.js → ZeniCopyright-DrkcGEYL-D8qMh6Rn.js} +1 -1
  202. package/dist/assets/ZeniTransferAmountSlider-Bw5S2HTx-CfuKg8UT.js +63 -0
  203. package/dist/assets/{add-to-wallet-DgdBD8_G-XP_wmSR7.js → add-to-wallet-DgdBD8_G-y8nGTHEa.js} +1 -1
  204. package/dist/assets/{analyticsHelper-BFpl-Msc.js → analyticsHelper-B46gu6zH.js} +1 -1
  205. package/dist/assets/{analyticsHelper-B3JHS_Qr-D08xKZsr.js → analyticsHelper-C37dCyKv-Ci3W403B.js} +1 -1
  206. package/dist/assets/{arrow-south-east-round-PEovUgvH-DnzbA_s-.js → arrow-south-east-round-PEovUgvH-D6oVD1ix.js} +1 -1
  207. package/dist/assets/{auto-transfer-rule-mbafm5D3-BA0iOPjL.js → auto-transfer-rule-mbafm5D3-DsDlaCxy.js} +1 -1
  208. package/dist/assets/{chartTypes-CICM6xJ3-DAE7LSQz.js → chartTypes-Cknnnhq_-BKEap-MQ.js} +1 -1
  209. package/dist/assets/{commonDimensions-EDu7gcyc-DiuxcTjp.js → commonDimensions-D0ovCC4N-B0G2UdHm.js} +1 -1
  210. package/dist/assets/{crypto-DPjkCRYF.js → crypto-BDNqpTKX.js} +1 -1
  211. package/dist/assets/{detailCommon-DAG_rX2o-B0QDOSIy.js → detailCommon-CKa5_aP2-CTgqAfFe.js} +9 -9
  212. package/dist/assets/{downloadPdf-DCmFpTS--B48gcxsA.js → downloadPdf-BJozh7zE-M2Rp1JlQ.js} +1 -1
  213. package/dist/assets/{gift-box-Cmt9OgIZ-Bnh-gm_T.js → gift-box-Cmt9OgIZ-BqWjP_Ex.js} +1 -1
  214. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DTLZpyxa.js → graphic-no-data-l-DU4J8fDt-BBc6l6Au.js} +1 -1
  215. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-W-GGrHSF.js → graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js} +1 -1
  216. package/dist/assets/handshake-BPg58FML-CVKh3Eii.js +1 -0
  217. package/dist/assets/index-BAKoUD4u.css +1 -0
  218. package/dist/assets/{index-D9zAXs3-.js → index-Cnh9fv8f.js} +14551 -6041
  219. package/dist/assets/{liveblocks-C2xecagE.js → liveblocks-CP09Cz-7.js} +2 -2
  220. package/dist/assets/{lodash-D52QloPU.js → lodash-BWJmwMit.js} +1 -1
  221. package/dist/assets/{mapLoadingInProgressToTreeNode-CtvSoL64-CS0Ie6NV.js → mapLoadingInProgressToTreeNode-DttwbPj7-BWaq84fe.js} +1 -1
  222. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BujdmE12-MD1XTXUW.js → mapSectionWithAcOnlyToTreeNode-CKUACdvT-96C16ahX.js} +1 -1
  223. package/dist/assets/{mapSpacerToTreeNode-CY5XRFK--DC8NIrxN.js → mapSpacerToTreeNode-CeH4tptC-BD7Zb85P.js} +1 -1
  224. package/dist/assets/{mapTimeframeBalancesToTreeNode-DVzQl7Bb-DDS_OBZQ.js → mapTimeframeBalancesToTreeNode-CElz2Cb0-CuxVDYys.js} +1 -1
  225. package/dist/assets/{mapTimeframeBalancesToTreeNode-DLd8jhti-Bxl7AnhE.js → mapTimeframeBalancesToTreeNode-TLHaVbTv-OZW2z0IX.js} +1 -1
  226. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CnZa-P_--DVtFUdDi.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Da50HxFS.js} +1 -1
  227. package/dist/assets/{mui-Ty75qFQF.js → mui-C42whWwM.js} +1 -1
  228. package/dist/assets/{page-detail-CWX5S47F-lMo0MYzU.js → page-detail-CWX5S47F-BBa5wfAm.js} +1 -1
  229. package/dist/assets/{play-icon-KtJH-UgF-Bm3lFkFZ.js → play-icon-XWt7iQeF-7dWJ4Dkg.js} +3 -3
  230. package/dist/assets/{radio-default-CiSgisfh-Cuu8ymvq.js → radio-default-CiSgisfh-Z5w0WcFM.js} +1 -1
  231. package/dist/assets/{redux-CEhZD0hA.js → redux-2gfZRks6.js} +1 -1
  232. package/dist/assets/{routing-lj7oVq6C.js → routing-VwiwPky5.js} +1 -1
  233. package/dist/assets/{sentry-BE5FTzpq.js → sentry-osuhWjvS.js} +1 -1
  234. package/dist/assets/{shield-DOlUxcFf-CDkNAu2o.js → shield-DOlUxcFf-bFVWRY1X.js} +1 -1
  235. package/dist/assets/{toCOABalancesWithID-B0F8-Lgv-mwB6oBaM.js → toCOABalancesWithID-DACfD5ZE-BgoTIDec.js} +1 -1
  236. package/dist/assets/{toChartData-D_8GUwpP-CFofR1sw.js → toChartData-C6ap15NT-ByCawuJX.js} +1 -1
  237. package/dist/assets/{transaction-placeholder-CpOwZAMG-CGEA36Na.js → transaction-placeholder-CpOwZAMG-DYG2_sCF.js} +1 -1
  238. package/dist/assets/{treasuryColorHelper-C2d7wCjK-BWDQfCvz.js → treasuryColorHelper-DmVCoHv9-Cx3TVoRp.js} +1 -1
  239. package/dist/assets/{uploadAttachment-CxwBrcm3-DDVTRYQ0.js → uploadAttachment-D1XtO8---B9AANbCr.js} +18 -18
  240. package/dist/assets/{uploadReceipts-DIYsXeyf-_3VvjCR-.js → uploadReceipts-Cl7e8jci-C-56lzXC.js} +1 -1
  241. package/dist/assets/{useLongPress-GCK2COYQ-B0RUPzZV.js → useLongPress-GCK2COYQ-BoJXFS3o.js} +1 -1
  242. package/dist/assets/{usp-line-BBd1wKwW-ZlUrfnG1.js → usp-line-BBd1wKwW-u-VMxix8.js} +1 -1
  243. package/dist/assets/{vendor-Bs1fkIUX.js → vendor-rkTZJa59.js} +1 -1
  244. package/dist/assets/{verification-CW6uEyev-CQXAdM_w.js → verification-CW6uEyev-BVrJsi0i.js} +1 -1
  245. package/dist/index.html +1 -1
  246. package/package.json +3 -3
  247. package/dist/assets/ACHDetailsPage-TewccRkX-DetITKOl.js +0 -21
  248. package/dist/assets/AccountInfoPage-CuytgM09-DMWlq-IF.js +0 -18
  249. package/dist/assets/ApAgingDetailPage-CtXSUVGC-DdWwytoq.js +0 -46
  250. package/dist/assets/AppBasePage-D6MgS-da-2jH4Fzgr.js +0 -70
  251. package/dist/assets/ApprovalRulesSettingsPage-BwnaDPqA-BMHJ2n3v.js +0 -47
  252. package/dist/assets/ArAgingChart-BvG_iPlt-BYubF9ZD.js +0 -24
  253. package/dist/assets/ArAgingDetailPage-Sm4672LS-o1itnQt5.js +0 -46
  254. package/dist/assets/AuditReportDrawerPage-CaFo0k9s-NaTvWx96.js +0 -369
  255. package/dist/assets/BillPaySetUpPage-CTNtHQBM-CpoUfnMM.js +0 -42
  256. package/dist/assets/BillingSettingsPage-CR0doM6R-DRs8JS8S.js +0 -44
  257. package/dist/assets/BillsBulkReviewDrawerPage-B0ebreRX-D7v6qOnU.js +0 -1
  258. package/dist/assets/BusinessVerificationPage-B6lyqGIK-BfLlNZ0a.js +0 -140
  259. package/dist/assets/BusyIndication-_H8LL7GJ-BjR55KdD.js +0 -9
  260. package/dist/assets/ChargeCardListPage-_YORyJOy-uqdfjUZk.js +0 -355
  261. package/dist/assets/ChargeCardPromoPage-DO2UJyXm-Dwx7STGG.js +0 -222
  262. package/dist/assets/ChargeCardSetupPage-De5jDB3D-CMdmpmLu.js +0 -36
  263. package/dist/assets/ChargeCardUtils-DYpmF85C-qBaPG14m.js +0 -1
  264. package/dist/assets/CheckDepositDrawerPage-Dj2do0Un-DCNBKUNr.js +0 -206
  265. package/dist/assets/CompleteProfile-B_dl9xEx-DFZ3KU15.js +0 -52
  266. package/dist/assets/ConfettiBurst-ChCmpiHq-BBDSx_jo.js +0 -1
  267. package/dist/assets/ControlledCheckBoxField-BIqM2o6X-Ml88Uf7U.js +0 -74
  268. package/dist/assets/CustomerOnboardingContainerPage-Ciaw11Nw-O_DtjvXM.js +0 -1
  269. package/dist/assets/CustomerOnboardingNoStepsPage-CdOEZjmC-HqvGWI7K.js +0 -66
  270. package/dist/assets/DashboardSidebarBackgroundAnimation-CblfOXOJ-B4cbMZpc.js +0 -12
  271. package/dist/assets/DepositAccTransactionListPage-2kpIHXLb-j8eQ9Syw.js +0 -66
  272. package/dist/assets/EditPeoplePage-CwhUp4W2-CnFSjC3L.js +0 -55
  273. package/dist/assets/EmptySearchResults-CB9-FwYT-DCczU5qh.js +0 -46
  274. package/dist/assets/ExpenseAutomationOverviewPage-CKokJTC4-C9VvWXen.js +0 -222
  275. package/dist/assets/FeaturePreviewPage-D90G_5Q8-CnQvTfz2.js +0 -11
  276. package/dist/assets/Header-DLZFUQF8-BI2bQ6MH.js +0 -226
  277. package/dist/assets/HealthListRow-iF093_lw-DegqmjBi.js +0 -210
  278. package/dist/assets/HealthMonitorDetailDrawer-BJRgJJOH-BzVkHFE6.js +0 -401
  279. package/dist/assets/HealthMonitorPage-BT0gIPV6-BAgQvawR.js +0 -108
  280. package/dist/assets/InsightsSection-DxpsNIIy-D73VhmA2.js +0 -27
  281. package/dist/assets/IntegrationsSettingsPage-DEOHHrS4-xD8BgFGo.js +0 -57
  282. package/dist/assets/InviteFormPage-CU5_JoYd-DtlUlrhp.js +0 -312
  283. package/dist/assets/InvitePeoplePage-Btu9ayOz-bG-WZTzF.js +0 -12
  284. package/dist/assets/LabeledAddressValue-tO6Kg-ki-DIZXgDEF.js +0 -49
  285. package/dist/assets/LabeledAddressValueField-CkveEJJG-BEvwzrCB.js +0 -45
  286. package/dist/assets/LabeledControlledCheckBoxField-B50HdRDc-BPCXXpG-.js +0 -16
  287. package/dist/assets/LabeledDocumentField-B8uyJA2N-B3iZ1bpr.js +0 -41
  288. package/dist/assets/LabeledEmailInputField-D5OBo0RU-Cn7DEiyr.js +0 -182
  289. package/dist/assets/LabeledGroupedCheckBoxField-DLSgfRui-CIvqEp4U.js +0 -82
  290. package/dist/assets/LabeledItemWithButton-CNlRAl-1-D8RdmCNz.js +0 -21
  291. package/dist/assets/LabeledNameField-B73hOD1K-DrzOl55q.js +0 -141
  292. package/dist/assets/LabeledSingleSelectField-nPVDbcr0-DXhzL0iF.js +0 -136
  293. package/dist/assets/LabeledSingleSelectWithoutClearableField-DgT7faZC-Or3zfyeO.js +0 -38
  294. package/dist/assets/LinkJETransactionPage-ChyKb7xl-LR_CFAXE.js +0 -98
  295. package/dist/assets/Loader-Cqmoylhp-CKPikayq.js +0 -32
  296. package/dist/assets/MagicLinkSuccessPage-7bTkYgEa-CPPkAGGs.js +0 -31
  297. package/dist/assets/MagicLinkTitleSection-BlxCsth7-BHITpmKu.js +0 -17
  298. package/dist/assets/ManagementPage-D5egEDwP-uTkBBFJq.js +0 -556
  299. package/dist/assets/MatchingOperatorDropdown-C5zSNKmV-DBpzsPUC.js +0 -130
  300. package/dist/assets/MonthEndEmailDrawerCustomerRequestPage-CK7yjkYx-Dj2GK4HO.js +0 -39
  301. package/dist/assets/MonthEndReportHistoricDataPage-BuRBd_9k-DDKlEI2q.js +0 -124
  302. package/dist/assets/MonthEndReportPage-DOTCU96W-VybM2w9h.js +0 -28
  303. package/dist/assets/MoreMenuButton-Cj6SIPVt-CYCCFBqM.js +0 -134
  304. package/dist/assets/MyPendingActivationChargeCardListPage-BFe1hoDt-CfBCldAO.js +0 -6
  305. package/dist/assets/MyProfileSettingsPage-B7zND-Ux-BN19QlhA.js +0 -85
  306. package/dist/assets/NavBar-BjyxKUvF-gwYjTp7H.js +0 -189
  307. package/dist/assets/NavHeader-9VET6uub-DBlTa1KF.js +0 -236
  308. package/dist/assets/NotificationsListConfig-CyQxEQ13-D7e4Z7fR.js +0 -1
  309. package/dist/assets/OnboardingCustomerPage-jmb-3M9K-C-4WzmwX.js +0 -476
  310. package/dist/assets/OnboardingPage-LCaIErMj-Bhag4ahh.js +0 -408
  311. package/dist/assets/PandLWithForecastPage-3h8Q4kZg-CZgSqzQW.js +0 -107
  312. package/dist/assets/PortfolioPage-BfNGByGB-ea6OEgaP.js +0 -237
  313. package/dist/assets/QBOSetupSection-D-Q_DVva-q5JlqA-2.js +0 -79
  314. package/dist/assets/ReimbursementSetUpPage-5OtsfDPV-DQz8dNtG.js +0 -140
  315. package/dist/assets/ReimbursementsBulkReviewDrawerPage-BX722SXa-YTQZVgWe.js +0 -1
  316. package/dist/assets/ReloadContainer-BRXUxBxu-BAp5l7-f.js +0 -13
  317. package/dist/assets/ReloadContainer-fx3kImdJ-D2lKf-Yd.js +0 -17
  318. package/dist/assets/ReportTableViewSelector-W7zYmKIW-BpJdvlc6.js +0 -150
  319. package/dist/assets/ReviewOverlay-Bz1kr6zu-Dw4JE5ud.js +0 -152
  320. package/dist/assets/ReviewPage-Cel3qzEQ-DiaZxW5f.js +0 -306
  321. package/dist/assets/RoleWithToolTip-CUogd8qi-BfjjZiS9.js +0 -22
  322. package/dist/assets/SetUpAccountSection-2UGQI7fx-D_tNKXyG.js +0 -378
  323. package/dist/assets/SignIn-BF4ojxcy-ignSyaGW.js +0 -408
  324. package/dist/assets/SignInScreen-DjQXT0cG.js +0 -1
  325. package/dist/assets/SpendManagementListViewPage-DbfQ_jzA-sW1BTRjR.js +0 -123
  326. package/dist/assets/StatementItem-DgZtQdC5-CijP321B.js +0 -31
  327. package/dist/assets/StatementsPage-Az4ZzxA6-CY7Q-Hv-.js +0 -58
  328. package/dist/assets/StatusTag-MQXQGj2--SPp-Hljk.js +0 -38
  329. package/dist/assets/SubscriptionAddPlanPage-Bn4CUx_v-BcoEoxy8.js +0 -59
  330. package/dist/assets/SubscriptionDetailPage-BZDJEjR1-DavSO9K8.js +0 -216
  331. package/dist/assets/SubscriptionPage-Tpj1RZco-CfI0x1AO.js +0 -282
  332. package/dist/assets/SubscriptionSnackBar-CwdSE1Xz-BYx3vQ0D.js +0 -57
  333. package/dist/assets/SubscriptionSummaryPage-Dep_cm58-D3JscAEe.js +0 -176
  334. package/dist/assets/SubscriptionUpdatePlanPage-5_wWKxme-CSTH4683.js +0 -408
  335. package/dist/assets/SuccessAnimation-BtFsm6Oj-BU_bae75.js +0 -13
  336. package/dist/assets/TaskDetailPage-aleDjLBo-DJGRUSEM.js +0 -775
  337. package/dist/assets/TaskListRow-xLyzXOYn-CLZGelcY.js +0 -403
  338. package/dist/assets/TaskManagerPage-Dye8P0ua-jLCJwLcT.js +0 -176
  339. package/dist/assets/TextHighlightSection-Y0L_w9RR-D8_NKTqM.js +0 -584
  340. package/dist/assets/TransactionListPage-CrUtG598-DR2tdFwA.js +0 -35
  341. package/dist/assets/TransactionVendorDetailPage-DjuFdK9S-Bn1DMv6P.js +0 -80
  342. package/dist/assets/TreasuryStatementsPage-C0oRa1nh-BiT4V4PF.js +0 -58
  343. package/dist/assets/TreasuryTaxLetterPage-BuGFH3YF-BkeOYDmd.js +0 -58
  344. package/dist/assets/TrendChart-a95Aii8O-Crc1NrOm.js +0 -16
  345. package/dist/assets/UploadAdditionalDocumentOverlay-Bxc2MMx0-Cpl1vzGP.js +0 -38
  346. package/dist/assets/UserMultiSelectField-UsIy6n-8-DdaF7B7O.js +0 -154
  347. package/dist/assets/UserWithTimestamp-i09mOCAu-Cw5lsbIN.js +0 -38
  348. package/dist/assets/VerifyDevice-DBnFzHim-C-LQbPfS.js +0 -67
  349. package/dist/assets/ZeniAccountNavBarPieces-CsSdfTKg-5k_P9-6W.js +0 -14
  350. package/dist/assets/ZeniAccountSetupPage-BXHIQxgf-DcysatW3.js +0 -36
  351. package/dist/assets/ZeniAvatar-Cendj_Bv-Dp3oXY0H.js +0 -13
  352. package/dist/assets/ZeniDatePicker-El_phkQ0-z80YcUbm.js +0 -187
  353. package/dist/assets/ZeniDatePickerField-3DaqcxMB-QK1YG1pI.js +0 -1
  354. package/dist/assets/ZeniTransferAmountSlider-CxxqQPB_-BqeHyBds.js +0 -63
  355. package/dist/assets/add-C0nqJFLa-C2eApjPK.js +0 -1
  356. package/dist/assets/avatar-Dz7aEm3d-D64JGSQG.js +0 -1
  357. package/dist/assets/calculateSize-BUfcd-gF-DqmEdKsX.js +0 -1
  358. package/dist/assets/clock-CJkylEKt-CJ3FIZ_o.js +0 -1
  359. package/dist/assets/cockpitConstants-CT7OARAT-C430UcjZ.js +0 -1
  360. package/dist/assets/cockpitHelpers-CSVzBgeI-BARdDEyf.js +0 -1
  361. package/dist/assets/cockpitHelpers-Y5_CbmvR-BhJ5C_6h.js +0 -1
  362. package/dist/assets/common-CU4uS1La-DdHnWUCD.js +0 -1
  363. package/dist/assets/dollar-round-D18u7nlm-CXc5TAek.js +0 -1
  364. package/dist/assets/double-tick-D6s_OvsM-DFvZDijg.js +0 -1
  365. package/dist/assets/filter-cZIFUNvj-B9dfJXS9.js +0 -1
  366. package/dist/assets/getCockpitColor-YYDF6h1T-D0_aeMEA.js +0 -1
  367. package/dist/assets/groupHelper-CTA_J_U7-CPJTcSSg.js +0 -1
  368. package/dist/assets/hyperlink-DQyCeXx2-ChMvASRu.js +0 -1
  369. package/dist/assets/index-DVThwdcI.css +0 -1
  370. package/dist/assets/intuit-quick-books-logo-qyL3_3cm-Cj0LgD2I.js +0 -1
  371. package/dist/assets/loader-BwDk7JSW-DoE-nOgh.js +0 -1
  372. package/dist/assets/money-2cg1MuG4-BaDu1jFd.js +0 -1
  373. package/dist/assets/note-DCtChU1T-DArfpxk4.js +0 -1
  374. package/dist/assets/page-summary-D7_VQHwN-DEY33DNc.js +0 -1
  375. package/dist/assets/sectionColor-euXcOIkp-Cmmp8esL.js +0 -1
  376. package/dist/assets/tick-round-CPC394H5-C8roQJBa.js +0 -1
  377. package/dist/assets/undo-b_3XZ5CX-Xpx_MAU7.js +0 -1
  378. package/dist/assets/zeniDatePicker.helpers-Bv0wGqkO-0jS7nOtw.js +0 -1
@@ -1,12 +1,12 @@
1
- import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as pe,fU as Xa,j as t,aW as qr,n as c,f$ as Ja,a0 as ye,Z,o as a,bw as Pt,h as p,iM as Qa,y as _,bP as Kr,iN as Xr,cs as Jr,f2 as Qr,a as ei,gG as ti,cj as ai,x as D,C as ri,c as ii,ga as oi,r as Ct,a_ as ni,bf as er,a6 as Mt,iO as si,iP as tr,b5 as ar,ap as Ot,cO as di,a7 as rr,af as ci,iQ as li,iR as hi,am as Vt,$ as ge,eg as pi,iL as ui,az as dt,eX as ir,i as ot,aj as mi,cH as gi,bT as Ci,bR as fi,f7 as wi,hL as xi,k as be,bq as or,iS as yi,fV as Le,cQ as ft,fD as bi,V as ha,Q as nr,ao as Si,iT as $i,ex as vi,bX as sr,iU as ki,v as ut,bE as pa,aT as ji,c$ as Li,el as Di,O as et,fR as Ii,p as Ai,t as Ti,a3 as Ri,b0 as Fi,iV as xt,eZ as Ei,bm as zi,iW as dr,iX as cr,go as lr,iY as wt,ih as hr,eV as Pi,b_ as Mi,dX as pr,du as Oi,cl as Vi,e1 as Hi,bI as Ni,bJ as Bi}from"./index-D9zAXs3-.js";import{b as o,n as r,i as ue,w as Wi,k as ur}from"./vendor-Bs1fkIUX.js";import{U as Ui}from"./MoreMenuButton-Cj6SIPVt-CYCCFBqM.js";import{k as _i}from"./NavigationDots-CGOsNTLj-ZRX96j5F.js";import{L as Zi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-DYpmF85C-qBaPG14m.js";import{A as Gi,i as Yi,a as qi,l as Ki,r as Xi,t as Ji,n as Qi}from"./add-to-wallet-DgdBD8_G-XP_wmSR7.js";import{R as eo}from"./CardNumberSubText-Bo_ZeAR0-DocU3odv.js";import{r as to,i as ao}from"./common-CU4uS1La-DdHnWUCD.js";import{r as fr}from"./mui-Ty75qFQF.js";import{l as wr}from"./uploadReceipts-DIYsXeyf-_3VvjCR-.js";import"./analytics-CBL_L82S.js";import"./routing-lj7oVq6C.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-C2xecagE.js";import"./crypto-DPjkCRYF.js";import"./dollar-round-D18u7nlm-CXc5TAek.js";import"./money-2cg1MuG4-BaDu1jFd.js";import"./page-summary-D7_VQHwN-DEY33DNc.js";import"./calculateSize-BUfcd-gF-DqmEdKsX.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:O,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:Y}=li(),{isAndroidScreen:X}=hi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:Y===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):X===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-apple-wallet-button")})},io=r.div`
1
+ import{u as Be,e as fe,Y as nt,d5 as st,fh as Xa,l as Ne,h0 as qr,a8 as He,M as pe,fi as Ka,j as t,gq as Gr,aW as Xr,q as c,fq as Ja,a0 as ye,_ as Z,o as a,bA as Pt,c as p,ie as Qa,v as _,bU as Kr,ig as Jr,cO as Qr,gg as ei,a as ti,gj as ai,cu as ri,C as D,p as ii,F as oi,fI as ni,k as Ct,a_ as si,bf as er,a6 as Mt,ih as di,ii as tr,b5 as ar,ap as Ot,eV as ci,a7 as rr,af as li,ij as hi,ik as pi,am as Vt,d as ge,ez as ui,ia as mi,az as dt,fj as ir,m as ot,aj as gi,dl as Ci,bZ as fi,bW as wi,cB as xi,gZ as yi,n as be,bp as or,il as bi,fk as je,dt as ft,d3 as Si,b as ha,h as nr,ao as $i,im as vi,eT as ki,c2 as sr,io as Li,w as ut,bt as pa,aT as ji,dd as Di,eE as Ii,B as et,fe as Ai,s as Ti,L as Ri,a3 as Fi,b0 as Ei,ip as xt,d0 as zi,bm as Pi,iq as dr,ir as cr,g2 as lr,is as wt,hC as hr,ib as Mi,c5 as Oi,ef as pr,ic as Vi,id as Hi,dO as Ni,cw as Bi,el as Wi,bL as Ui,bM as _i}from"./index-Cnh9fv8f.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-rkTZJa59.js";import{k as Yi}from"./NavigationDots-BsJyQWOZ-DQaJD5qn.js";import{L as qi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-BcwLwgz7-DrE0N0EF.js";import{A as Gi,i as Xi,a as Ki,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-y8nGTHEa.js";import{R as ao}from"./CardNumberSubText-B_ZdgYVm-CRvH-CRy.js";import{r as fr}from"./mui-C42whWwM.js";import{l as wr}from"./uploadReceipts-Cl7e8jci-C-56lzXC.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:O,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:q}=hi(),{isAndroidScreen:K}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:q===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):K===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-apple-wallet-button")})},io=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
5
5
  gap: ${a.sp5};
6
- `,oo=r(Qi)`
6
+ `,oo=r(to)`
7
7
  height: ${a.sp4};
8
8
  width: ${a.sp5};
9
- `,no=r(Ji)`
9
+ `,no=r(eo)`
10
10
  height: ${a.sp4};
11
11
  width: ${a.sp5};
12
12
  `,so=[p.brandColorSapphire,p.brandColorJade,p.graphColor01,p.graphColor08,p.graphColor12,p.graphColor15,p.graphColor16Dark,p.graphColor23Dark,p.graphColor32Dark,p.graphColor34Dark,p.brandColorOpalDark,p.brandColorRuby],co=pe.getLocalizedStrings().spendManagement.chargeCard,lo=({isColorPaletteVisible:e,hasBorderShadow:i,leftTransitionValue:d,colorInState:h,styles:m,colorPaletteTitleStyles:u,ColorListStyles:s,coloredCircleStyles:x,closeStyles:l,tickStyles:f,toggleColorPaletteVisibility:w,handleColorClick:n})=>t.jsxs(ho,{showColorPalette:e,style:m,hasBorderShadow:i,leftTransitionValue:d,children:[t.jsxs(uo,{style:u,children:[t.jsx(mo,{children:co.cardDetails.cardTheme}),t.jsx(go,{style:l,"data-testid":Z("close-color-palette"),onClick:C=>{C.stopPropagation(),w(!e)}})]}),t.jsx(po,{style:s,children:so.map((C,b)=>t.jsx(fo,{style:x,coreColor:C,onMouseEnter:()=>n(new He(C),!1),onMouseLeave:()=>h!=null?n(new He(h),!1):null,"data-testid":Z("color-palette-item-cards",b.toString()),onClick:()=>n(new He(C),!0),children:new He(C).toString()===h?.toString()?t.jsx(Co,{style:f}):null},C))})]}),ho=r.div`
@@ -33,12 +33,12 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
33
33
  padding: ${a.sp5} ${a.sp5} ${a.sp2} ${a.sp5};
34
34
  `,mo=r(ge)`
35
35
  color: ${p.brandColorOnyx};
36
- `,go=r(Ri)`
36
+ `,go=r(Fi)`
37
37
  width: ${a.sp3};
38
38
  height: ${a.sp3};
39
39
  cursor: pointer;
40
40
  color: ${e=>e.theme.colors.hero};
41
- `,Co=r(Fi)`
41
+ `,Co=r(Ei)`
42
42
  width: ${a.sp3};
43
43
  color: ${p.neutralGrey5Light};
44
44
  `,fo=r.div`
@@ -50,8 +50,8 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
50
50
  margin: ${a.sp2};
51
51
  justify-content: center;
52
52
  align-items: center;
53
- `,{spendManagement:wo,common:Oe,dateFormat:xo}=pe.getLocalizedStrings(),Pe=wo.chargeCard,ve={secretCardNumberWrapperWidth:280,secretCVVWrapperHeight:30,secretCVVWrapperWidth:c[7],cardNumberCopiedSectionTop:54,cvvCopiedSectionTop:34,maskedCardNumberMarginTop:new D(-2,-2,-2,c[0]),expiryCopySectionTop:34,cardNumberCopyBtnTop:21},ma={CardInfoTitleSize:new D(_.extraSmallRegular.fontSizeValue,_.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new D(18,18,18,21)},Dt=e=>t.jsxs(Mo,{style:{...e},children:[t.jsx(Po,{}),t.jsx(Oo,{style:{background:p.blackColor,color:p.primaryDark,padding:`2px ${a.sp2}`,borderRadius:a.sp1},children:Oe.copyToClipBoard.copied})]}),ga=({isSandboxEnv:e,sourceId:i,showSecretInfo:d,secretRevealed:h,vgsVaultId:m,controllerEmails:u,isChargeCardFeatureEnabled:s,productInformation:x,cashbackInformation:l,creditAccountInformation:f,debitAccountInformation:w,chargeCardCashbackDetailState:n,creditAccount:C,creditAccountRepayment:b,isDebitCard:L,depositAccountLimitFetchState:S,isCardDetailErrored:$,isCardColorUpdating:y,cardDetailsFetchState:g,isCardColorUndefined:A,cardInfoTitleStyles:k,styles:O,cvvSecStyles:R,chargeCard:z,token:Y,setSecretRevealed:X,setIsCardDetailErrored:B,setCardDetailsFetchState:T,onFireOnClickAnalytics:V})=>{const J=st().analytics,[,te]=Ka(),F=fe(),[q,W]=o.useState(!1),[ne,Q]=o.useState(!1),[P,ee]=o.useState(!1),H=nt(),ae=Ne.hasChargeCardAdminLevelAccess(H.loggedInUserRoleMap),[K]=Qa("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),j=i==="addToWalletDrawer"?.75:F==="small"?.85:1,G=e?"sandbox":"live";o.useEffect(()=>{if(K&&z!=null&&d&&Y!=null&&!h){const I=window.VGSShow.create(m).setEnvironment(G),v=z.cardProviderID,U=I.request({name:"data-text",method:"GET",path:"/cards/"+v+"/secure-data/cvv2",headers:{Authorization:"Bearer "+Y},htmlWrapper:"text",jsonPathSelector:"data.attributes.cvv2"});T({cvv:!0,number:!0}),U.render(`#SecretCvv-${i}`,{"@font-face":{"font-family":ut["PT Mono"],"font-style":"normal","font-weight":pa.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":ut["PT Mono"],opacity:.7,color:p.brandColorOnyx,fontSize:`${j*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${j*_.h6Regular.lineHeightValue}px`}),U.on("requestSuccess",()=>{X(!0),B(!1),T({...g,cvv:!1})}),U.on("requestFail",()=>{B(!0),T({...g,cvv:!1});const re=document.getElementById(`SecretCvv-${i}`);for(;re?.hasChildNodes()===!0;)re.removeChild(re.children[0])}),I.copyFrom(U,{text:Oe.strings.empty},re=>{re==="success"?(Q(!0),V("CVV copied"),n.fetchState==="Completed"&&(!s||C.fetchState==="Completed"&&b.fetchState==="Completed")&&(!(L&&ae)||S==="Completed")&&J.trackCardsCopyIconClick(u,x,"Cards Detail","Copy","copied","CVV","",l,f,w)):Q(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:`${j*ve.secretCVVWrapperHeight}px`,width:`${j*ve.secretCVVWrapperWidth}px`});const N=I.request({name:"data-text",method:"GET",path:"/cards/"+v+"/secure-data/pan",headers:{Authorization:"Bearer "+Y},htmlWrapper:"text",jsonPathSelector:"data.attributes.pan",serializers:[I.SERIALIZERS.replace("(\\d{4})(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3 $4")]});N.render(`#SecretCardNumber-${i}`,{"@font-face":{"font-family":ut["PT Mono"],"font-style":"normal","font-weight":pa.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":ut["PT Mono"],opacity:.7,color:p.brandColorOnyx,fontSize:`${j*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${j*_.h6Regular.lineHeightValue}px`}),N.on("requestSuccess",()=>{X(!0),B(!1),T({...g,number:!1})}),N.on("requestFail",()=>{B(!0),T({...g,number:!1});const re=document.getElementById(`SecretCardNumber-${i}`);for(;re?.hasChildNodes()===!0;)re.removeChild(re.children[0])}),I.copyFrom(N,{text:Oe.strings.empty,serializers:[I.SERIALIZERS.replace(Oe.strings.space,Oe.strings.empty)]},re=>{re==="success"?(W(!0),V("card number copied"),n.fetchState==="Completed"&&(!s||C.fetchState==="Completed"&&b.fetchState==="Completed")&&(!(L&&ae)||S==="Completed")&&J.trackCardsCopyIconClick(u,x,"Cards Detail","Copy","copied","Card Number","",l,f,w)):W(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:`${j*_.h6Regular.lineHeightValue}px`,width:`${j*ve.secretCardNumberWrapperWidth}px`})}},[K,z,d,Y,h]),o.useEffect(()=>{if(d===!1){const I=document.getElementById(`SecretCvv-${i}`);for(;I?.hasChildNodes()===!0;)I.removeChild(I.children[0]);const v=document.getElementById(`CvvCopyBtn-${i}`);for(;v?.hasChildNodes()===!0;)v.removeChild(v.children[0]);const U=document.getElementById(`SecretCardNumber-${i}`);for(;U?.hasChildNodes()===!0;)U.removeChild(U.children[0]);const N=document.getElementById(`CardNumberCopyBtn-${i}`);for(;N?.hasChildNodes()===!0;)N.removeChild(N.children[0])}},[i,d]),o.useEffect(()=>{q===!0&&setTimeout(()=>{W(!1)},800),ne===!0&&setTimeout(()=>{Q(!1)},800),P===!0&&setTimeout(()=>{ee(!1)},800)},[q,ne,P]);const E=z!=null?Ne.dateFromYearMonthDate(z.validThru.year,z.validThru.month-1).format(xo.visual.MMSlashYYFormat):Oe.strings.empty,de=I=>{d===!0&&(g.cvv!==!0||g.number!==!0)&&(V("validity copied"),I!=null&&n.fetchState==="Completed"&&(!s||C.fetchState==="Completed"&&b.fetchState==="Completed")&&(!(L&&ae)||S==="Completed")&&J.trackCardsCopyIconClick(u,x,"Cards Detail","Copy","copied","Valid Thru",E,l,f,w),te(E),ee(!0))};return t.jsxs(Lo,{style:O,children:[t.jsxs(Do,{children:[t.jsx(It,{style:k,windowSize:F,children:Pe.cardDetails.cardNumber}),t.jsx(Io,{sourceId:i,scaleFactor:j,showSecretInfo:d&&(g.number===!1||g.cvv===!1),isCardDetailFetching:g.number===!0||g.cvv===!0||A||y,windowSize:F,children:`${Pe.cardDetails.cardNumberHideout}
54
- ${z?.accountLast4??Oe.strings.empty}`}),t.jsxs(yo,{secretRevealed:h,scaleFactor:j,showSecretInfo:d&&g.cvv===!1&&g.number===!1,sourceId:i,isCardDetailErrored:$,children:[t.jsx(bo,{sourceId:i,scaleFactor:j,secretRevealed:h,id:`SecretCardNumber-${i}`}),t.jsx(jo,{secretRevealed:h,scaleFactor:j,id:`CardNumberCopyBtn-${i}`,sourceId:i}),q===!0?t.jsx(Dt,{top:j*ve.cardNumberCopiedSectionTop}):null]})]}),t.jsxs(Ao,{children:[t.jsxs(Fo,{children:[t.jsx(It,{style:k,windowSize:F,children:Pe.cardDetails.expiry}),t.jsxs(vo,{secretRevealed:d&&(g.cvv===!1||g.number===!1),children:[h&&d&&g.cvv===!1&&g.number===!1?t.jsx(zo,{sourceId:i,scaleFactor:j,windowSize:F,secretRevealed:h&&d,"data-testid":Z("expiry-date-copy"),onClick:I=>{I.stopPropagation(),de(z)},children:h&&d&&g.cvv===!1&&g.number===!1?E:Pe.cardDetails.expiryHideOut}):t.jsx(Eo,{sourceId:i,windowSize:F,scaleFactor:j,isCardDetailFetching:g.cvv===!0||g.number===!0||A||y,children:Pe.cardDetails.expiryHideOut}),P===!0?t.jsx(Dt,{top:j*ve.expiryCopySectionTop,width:"auto"}):null]})]}),t.jsxs(To,{style:R,children:[t.jsx(It,{style:k,windowSize:F,children:Pe.cardDetails.cvv}),t.jsx(Ro,{sourceId:i,scaleFactor:j,showSecretInfo:d&&g.cvv===!1&&g.number===!1,isCardDetailFetching:g.number===!0||g.cvv===!0||A||y,windowSize:F,children:Pe.cardDetails.cvvHideOut}),t.jsxs(So,{secretRevealed:h,sourceId:i,showSecretInfo:d&&g.cvv===!1&&g.number===!1,isCardDetailErrored:$,children:[t.jsx($o,{scaleFactor:j,secretRevealed:h,sourceId:i,id:`SecretCvv-${i}`}),t.jsx(ko,{windowSize:F,scaleFactor:j,secretRevealed:h,id:`CvvCopyBtn-${i}`,sourceId:i}),ne===!0?t.jsx(Dt,{top:j*ve.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},yo=r.div`
53
+ `,{spendManagement:wo,common:Oe,dateFormat:xo}=pe.getLocalizedStrings(),Pe=wo.chargeCard,ve={secretCardNumberWrapperWidth:280,secretCVVWrapperHeight:30,secretCVVWrapperWidth:c[7],cardNumberCopiedSectionTop:54,cvvCopiedSectionTop:34,maskedCardNumberMarginTop:new D(-2,-2,-2,c[0]),expiryCopySectionTop:34,cardNumberCopyBtnTop:21},ma={CardInfoTitleSize:new D(_.extraSmallRegular.fontSizeValue,_.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new D(18,18,18,21)},Dt=e=>t.jsxs(Mo,{style:{...e},children:[t.jsx(Po,{}),t.jsx(Oo,{style:{background:p.blackColor,color:p.primaryDark,padding:`2px ${a.sp2}`,borderRadius:a.sp1},children:Oe.copyToClipBoard.copied})]}),ga=({isSandboxEnv:e,sourceId:i,showSecretInfo:d,secretRevealed:h,vgsVaultId:m,controllerEmails:u,isChargeCardFeatureEnabled:s,productInformation:x,cashbackInformation:l,creditAccountInformation:f,debitAccountInformation:w,chargeCardCashbackDetailState:n,creditAccount:C,creditAccountRepayment:b,isDebitCard:j,depositAccountLimitFetchState:S,isCardDetailErrored:$,isCardColorUpdating:y,cardDetailsFetchState:g,isCardColorUndefined:A,cardInfoTitleStyles:k,styles:O,cvvSecStyles:R,chargeCard:z,token:q,setSecretRevealed:K,setIsCardDetailErrored:B,setCardDetailsFetchState:T,onFireOnClickAnalytics:V})=>{const J=st().analytics,[,te]=Xa(),F=fe(),[G,W]=o.useState(!1),[ne,Q]=o.useState(!1),[P,ee]=o.useState(!1),H=nt(),ae=Ne.hasChargeCardAdminLevelAccess(H.loggedInUserRoleMap),[X]=Qa("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),L=i==="addToWalletDrawer"?.75:F==="small"?.85:1,Y=e?"sandbox":"live";o.useEffect(()=>{if(X&&z!=null&&d&&q!=null&&!h){const I=window.VGSShow.create(m).setEnvironment(Y),v=z.cardProviderID,U=I.request({name:"data-text",method:"GET",path:"/cards/"+v+"/secure-data/cvv2",headers:{Authorization:"Bearer "+q},htmlWrapper:"text",jsonPathSelector:"data.attributes.cvv2"});T({cvv:!0,number:!0}),U.render(`#SecretCvv-${i}`,{"@font-face":{"font-family":ut["PT Mono"],"font-style":"normal","font-weight":pa.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":ut["PT Mono"],opacity:.7,color:p.brandColorOnyx,fontSize:`${L*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${L*_.h6Regular.lineHeightValue}px`}),U.on("requestSuccess",()=>{K(!0),B(!1),T({...g,cvv:!1})}),U.on("requestFail",()=>{B(!0),T({...g,cvv:!1});const re=document.getElementById(`SecretCvv-${i}`);for(;re?.hasChildNodes()===!0;)re.removeChild(re.children[0])}),I.copyFrom(U,{text:Oe.strings.empty},re=>{re==="success"?(Q(!0),V("CVV copied"),n.fetchState==="Completed"&&(!s||C.fetchState==="Completed"&&b.fetchState==="Completed")&&(!(j&&ae)||S==="Completed")&&J.trackCardsCopyIconClick(u,x,"Cards Detail","Copy","copied","CVV","",l,f,w)):Q(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:`${L*ve.secretCVVWrapperHeight}px`,width:`${L*ve.secretCVVWrapperWidth}px`});const N=I.request({name:"data-text",method:"GET",path:"/cards/"+v+"/secure-data/pan",headers:{Authorization:"Bearer "+q},htmlWrapper:"text",jsonPathSelector:"data.attributes.pan",serializers:[I.SERIALIZERS.replace("(\\d{4})(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3 $4")]});N.render(`#SecretCardNumber-${i}`,{"@font-face":{"font-family":ut["PT Mono"],"font-style":"normal","font-weight":pa.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":ut["PT Mono"],opacity:.7,color:p.brandColorOnyx,fontSize:`${L*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${L*_.h6Regular.lineHeightValue}px`}),N.on("requestSuccess",()=>{K(!0),B(!1),T({...g,number:!1})}),N.on("requestFail",()=>{B(!0),T({...g,number:!1});const re=document.getElementById(`SecretCardNumber-${i}`);for(;re?.hasChildNodes()===!0;)re.removeChild(re.children[0])}),I.copyFrom(N,{text:Oe.strings.empty,serializers:[I.SERIALIZERS.replace(Oe.strings.space,Oe.strings.empty)]},re=>{re==="success"?(W(!0),V("card number copied"),n.fetchState==="Completed"&&(!s||C.fetchState==="Completed"&&b.fetchState==="Completed")&&(!(j&&ae)||S==="Completed")&&J.trackCardsCopyIconClick(u,x,"Cards Detail","Copy","copied","Card Number","",l,f,w)):W(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:`${L*_.h6Regular.lineHeightValue}px`,width:`${L*ve.secretCardNumberWrapperWidth}px`})}},[X,z,d,q,h]),o.useEffect(()=>{if(d===!1){const I=document.getElementById(`SecretCvv-${i}`);for(;I?.hasChildNodes()===!0;)I.removeChild(I.children[0]);const v=document.getElementById(`CvvCopyBtn-${i}`);for(;v?.hasChildNodes()===!0;)v.removeChild(v.children[0]);const U=document.getElementById(`SecretCardNumber-${i}`);for(;U?.hasChildNodes()===!0;)U.removeChild(U.children[0]);const N=document.getElementById(`CardNumberCopyBtn-${i}`);for(;N?.hasChildNodes()===!0;)N.removeChild(N.children[0])}},[i,d]),o.useEffect(()=>{G===!0&&setTimeout(()=>{W(!1)},800),ne===!0&&setTimeout(()=>{Q(!1)},800),P===!0&&setTimeout(()=>{ee(!1)},800)},[G,ne,P]);const E=z!=null?Ne.dateFromYearMonthDate(z.validThru.year,z.validThru.month-1).format(xo.visual.MMSlashYYFormat):Oe.strings.empty,de=I=>{d===!0&&(g.cvv!==!0||g.number!==!0)&&(V("validity copied"),I!=null&&n.fetchState==="Completed"&&(!s||C.fetchState==="Completed"&&b.fetchState==="Completed")&&(!(j&&ae)||S==="Completed")&&J.trackCardsCopyIconClick(u,x,"Cards Detail","Copy","copied","Valid Thru",E,l,f,w),te(E),ee(!0))};return t.jsxs(jo,{style:O,children:[t.jsxs(Do,{children:[t.jsx(It,{style:k,windowSize:F,children:Pe.cardDetails.cardNumber}),t.jsx(Io,{sourceId:i,scaleFactor:L,showSecretInfo:d&&(g.number===!1||g.cvv===!1),isCardDetailFetching:g.number===!0||g.cvv===!0||A||y,windowSize:F,children:`${Pe.cardDetails.cardNumberHideout}
54
+ ${z?.accountLast4??Oe.strings.empty}`}),t.jsxs(yo,{secretRevealed:h,scaleFactor:L,showSecretInfo:d&&g.cvv===!1&&g.number===!1,sourceId:i,isCardDetailErrored:$,children:[t.jsx(bo,{sourceId:i,scaleFactor:L,secretRevealed:h,id:`SecretCardNumber-${i}`}),t.jsx(Lo,{secretRevealed:h,scaleFactor:L,id:`CardNumberCopyBtn-${i}`,sourceId:i}),G===!0?t.jsx(Dt,{top:L*ve.cardNumberCopiedSectionTop}):null]})]}),t.jsxs(Ao,{children:[t.jsxs(Fo,{children:[t.jsx(It,{style:k,windowSize:F,children:Pe.cardDetails.expiry}),t.jsxs(vo,{secretRevealed:d&&(g.cvv===!1||g.number===!1),children:[h&&d&&g.cvv===!1&&g.number===!1?t.jsx(zo,{sourceId:i,scaleFactor:L,windowSize:F,secretRevealed:h&&d,"data-testid":Z("expiry-date-copy"),onClick:I=>{I.stopPropagation(),de(z)},children:h&&d&&g.cvv===!1&&g.number===!1?E:Pe.cardDetails.expiryHideOut}):t.jsx(Eo,{sourceId:i,windowSize:F,scaleFactor:L,isCardDetailFetching:g.cvv===!0||g.number===!0||A||y,children:Pe.cardDetails.expiryHideOut}),P===!0?t.jsx(Dt,{top:L*ve.expiryCopySectionTop,width:"auto"}):null]})]}),t.jsxs(To,{style:R,children:[t.jsx(It,{style:k,windowSize:F,children:Pe.cardDetails.cvv}),t.jsx(Ro,{sourceId:i,scaleFactor:L,showSecretInfo:d&&g.cvv===!1&&g.number===!1,isCardDetailFetching:g.number===!0||g.cvv===!0||A||y,windowSize:F,children:Pe.cardDetails.cvvHideOut}),t.jsxs(So,{secretRevealed:h,sourceId:i,showSecretInfo:d&&g.cvv===!1&&g.number===!1,isCardDetailErrored:$,children:[t.jsx($o,{scaleFactor:L,secretRevealed:h,sourceId:i,id:`SecretCvv-${i}`}),t.jsx(ko,{windowSize:F,scaleFactor:L,secretRevealed:h,id:`CvvCopyBtn-${i}`,sourceId:i}),ne===!0?t.jsx(Dt,{top:L*ve.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},yo=r.div`
55
55
  display: ${e=>e.showSecretInfo?"block":"none"};
56
56
  height: ${e=>e.secretRevealed?"unset":a.sp0};
57
57
  width: ${e=>e.secretRevealed?e.scaleFactor*ve.secretCardNumberWrapperWidth:c[0]}px;
@@ -95,7 +95,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
95
95
  overflow: hidden;
96
96
  background: transparent;
97
97
  cursor: pointer;
98
- `,jo=r.div`
98
+ `,Lo=r.div`
99
99
  height: ${e=>e.secretRevealed?e.scaleFactor*_.h6Regular.lineHeightValue:c[0]}px;
100
100
  width: ${e=>e.secretRevealed?"inherit":a.sp0};
101
101
  position: absolute;
@@ -103,7 +103,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
103
103
  overflow: hidden;
104
104
  background: transparent;
105
105
  cursor: pointer;
106
- `,Lo=r.div`
106
+ `,jo=r.div`
107
107
  display: flex;
108
108
  flex-direction: column;
109
109
  padding: ${a.sp4} ${a.sp0} ${a.sp4} ${a.sp5};
@@ -188,14 +188,14 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
188
188
  color: ${p.primaryDark};
189
189
  padding: 2px ${a.sp2};
190
190
  background-color: ${p.blackColor};
191
- `,{common:Vo,spendManagement:{chargeCard:{cardDetails:$e}}}=pe.getLocalizedStrings(),me={chargeCardWidth:384,chargeCardHeight:240,cardLoadingShineWidth:200,cardLoadingShineHeight:240,zeniLogoWidth:c[6],zeniLogoHeight:c[6],visaLogoWidth:c[6],visaLogoHeight:13,cardTintIconWidth:277,cardTintIconHeight:242,colorPaletteLeftTransitionValue:-350,rightSectionWidth:384,rightSectionHeight:240,cardContainerContentGap:new D(c[4],c[4],c[4],c[3])},yr=({chargeCardDetailView:e,productInformation:i,cashbackInformation:d,creditAccountInformation:h,debitAccountInformation:m,secretRevealed:u,isOwnCard:s,vgsVaultId:x,showSecretInfo:l,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardCashbackDetailState:L,creditAccount:S,creditAccountRepayment:$,isShowingInDrawer:y,isSandboxEnv:g,isCardDetailErrored:A,signedInUserToken:k,selectedColor:O,cardDetailsFetchState:R,setCardDetailsFetchState:z,setIsCardDetailErrored:Y,setShowSecretInfo:X,setSecretRevealed:B,setShowPhoneNumberForOtp:T,isCardDetailFetching:V,handleColorCodeClick:J,onFireOnClickAnalytics:te})=>{const[F,q]=o.useState(!1),W=e.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:ne}=Xa(),Q=fe(),P=y?.75:Q==="small"?.85:1,ee=ne?$e.tapCardCopyText:$e.scanNowAndAddToWallet,H=ne?$e.tapCardCopyText:t.jsxs(No,{children:[t.jsx(nn,{}),$e.clickTheCardToFetchDetailsText]}),ae=Q==="small"?$e.tapCardCopyText:$e.clickTheCardToCopyDetailsText,K=Q==="small"?$e.tapCardCopyText:$e.clickTheCardToFetchDetailsText,j=y?ee:ae,G=y?H:K,E=V(R)||e.updateFetchState.fetchState==="In-Progress",de=(R.cvv!==!0||R.number!==!0)&&s,I=!!e.chargeCard?.type.code.includes("debit");return t.jsxs(Go,{windowSize:Q,scaleFactor:P,children:[t.jsxs(Yo,{children:[u&&y?t.jsxs(t.Fragment,{children:[t.jsx(tn,{}),t.jsx(an,{}),t.jsx(rn,{}),t.jsx(on,{})]}):null,W.includes("virtual")?t.jsxs(Ko,{isShowingInDrawer:y,isOwnCard:s,scaleFactor:P,bgColor:O?.toString(),showColorPalette:F,isDebitCard:I,"data-testid":Z("virtual-charge-card-detail"),onClick:()=>{F===!1&&s===!0&&V(R)===!1&&ua({signedInUserToken:k,showSecretInfo:l,setShowPhoneNumberPopup:T,onFireOnClickAnalytics:te,setShowSecretInfo:X})},enableClick:de,cardDetailsFetchState:E||e.chargeCard?.cardColorCode===void 0,children:[t.jsx(wa,{scaleFactor:P,shouldAppear:E||e.chargeCard?.cardColorCode===void 0}),t.jsx(lo,{leftTransitionValue:P*me.colorPaletteLeftTransitionValue,hasBorderShadow:!1,tickStyles:{width:"12px",height:"12px"},colorInState:e.chargeCard?.cardColorCode!=null?new He(e.chargeCard.cardColorCode):void 0,styles:{height:"100%",maxWidth:"78%",top:y?"unset":a.sp0,left:F?a.sp0:`${P*me.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:F,toggleColorPaletteVisibility:v=>{q(v)},handleColorClick:(v,U)=>{J(v,U),U&&q(!1)}}),t.jsx(en,{scaleFactor:P}),t.jsx(ga,{productInformation:i,cashbackInformation:d,creditAccountInformation:h,debitAccountInformation:m,secretRevealed:u,setSecretRevealed:B,onFireOnClickAnalytics:te,isCardColorUndefined:e.chargeCard?.cardColorCode==null,isCardColorUpdating:e.updateFetchState.fetchState==="In-Progress",isSandboxEnv:g,cardDetailsFetchState:R,setCardDetailsFetchState:z,isCardDetailErrored:A,setIsCardDetailErrored:Y,chargeCard:e.chargeCard,vgsVaultId:x,showSecretInfo:l,creditAccountRepayment:$,token:k?.token,isDebitCard:I,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,creditAccount:S,chargeCardCashbackDetailState:L,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:y?"addToWalletDrawer":"cardDetail"}),t.jsxs(xa,{children:[t.jsxs(Jo,{children:[t.jsx(ya,{scaleFactor:P}),t.jsx(Zo,{onClick:v=>{v.stopPropagation(),s&&q(!F)},"data-testid":Z("card-color-selector"),children:s?t.jsx(Pt,{enterDelay:600,title:$e.cardColours,placement:"left",children:t.jsx(Ca,{isShowingInDrawer:y})}):t.jsx(Ca,{isShowingInDrawer:y})})]}),t.jsx(Bo,{scaleFactor:P})]})]}):t.jsxs(sn,{scaleFactor:P,enableClick:de,isOwnCard:s,isShowingInDrawer:y,onClick:()=>{s===!0&&V(R)===!1&&ua({signedInUserToken:k,showSecretInfo:l,setShowPhoneNumberPopup:T,onFireOnClickAnalytics:te,setShowSecretInfo:X})},"data-testid":Z("physical-charge-card-detail"),children:[t.jsx(wa,{scaleFactor:P,shouldAppear:E}),t.jsxs(dn,{flipCard:u,children:[t.jsx(cn,{children:t.jsx(tr,{scaleFactor:P,isClickable:de,isLoading:E,isDebitCard:I})}),l?t.jsxs(ln,{isDebitCard:I,children:[t.jsx(ga,{productInformation:i,cashbackInformation:d,creditAccountInformation:h,debitAccountInformation:m,secretRevealed:u,setSecretRevealed:B,onFireOnClickAnalytics:te,isCardColorUndefined:e.chargeCard?.cardColorCode==null,isCardColorUpdating:e.updateFetchState.fetchState==="In-Progress",isSandboxEnv:g,cardDetailsFetchState:R,setCardDetailsFetchState:z,isCardDetailErrored:A,setIsCardDetailErrored:Y,chargeCard:e.chargeCard,vgsVaultId:x,showSecretInfo:l,token:k?.token,isDebitCard:I,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,creditAccount:e.creditAccount,creditAccountRepayment:$,chargeCardCashbackDetailState:L,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:y?"addToWalletDrawer":"cardDetail"}),t.jsx(xa,{children:t.jsx(Qo,{children:t.jsx(ya,{scaleFactor:P})})})]}):null]})]})]}),s===!0&&!E?R.cvv===!0&&R.number===!0?t.jsx(Xo,{children:Vo.loading}):A?t.jsx(Ho,{}):t.jsx(fa,{children:u?j:G}):E?t.jsx(fa,{children:$e.loading}):null]})},Ho=()=>t.jsxs(_o,{children:[t.jsx(Wo,{}),t.jsx(Uo,{children:$e.failedToFetchCardWebText})]}),No=r.div`
191
+ `,{common:Vo,spendManagement:{chargeCard:{cardDetails:$e}}}=pe.getLocalizedStrings(),me={chargeCardWidth:384,chargeCardHeight:240,cardLoadingShineWidth:200,cardLoadingShineHeight:240,zeniLogoWidth:c[6],zeniLogoHeight:c[6],visaLogoWidth:c[6],visaLogoHeight:13,cardTintIconWidth:277,cardTintIconHeight:242,colorPaletteLeftTransitionValue:-350,rightSectionWidth:384,rightSectionHeight:240,cardContainerContentGap:new D(c[4],c[4],c[4],c[3])},yr=({chargeCardDetailView:e,productInformation:i,cashbackInformation:d,creditAccountInformation:h,debitAccountInformation:m,secretRevealed:u,isOwnCard:s,vgsVaultId:x,showSecretInfo:l,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardCashbackDetailState:j,creditAccount:S,creditAccountRepayment:$,isShowingInDrawer:y,isSandboxEnv:g,isCardDetailErrored:A,signedInUserToken:k,selectedColor:O,cardDetailsFetchState:R,setCardDetailsFetchState:z,setIsCardDetailErrored:q,setShowSecretInfo:K,setSecretRevealed:B,setShowPhoneNumberForOtp:T,isCardDetailFetching:V,handleColorCodeClick:J,onFireOnClickAnalytics:te})=>{const[F,G]=o.useState(!1),W=e.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:ne}=Ka(),Q=fe(),P=y?.75:Q==="small"?.85:1,ee=ne?$e.tapCardCopyText:$e.scanNowAndAddToWallet,H=ne?$e.tapCardCopyText:t.jsxs(No,{children:[t.jsx(nn,{}),$e.clickTheCardToFetchDetailsText]}),ae=Q==="small"?$e.tapCardCopyText:$e.clickTheCardToCopyDetailsText,X=Q==="small"?$e.tapCardCopyText:$e.clickTheCardToFetchDetailsText,L=y?ee:ae,Y=y?H:X,E=V(R)||e.updateFetchState.fetchState==="In-Progress",de=(R.cvv!==!0||R.number!==!0)&&s,I=!!e.chargeCard?.type.code.includes("debit");return t.jsxs(Yo,{windowSize:Q,scaleFactor:P,children:[t.jsxs(qo,{children:[u&&y?t.jsxs(t.Fragment,{children:[t.jsx(tn,{}),t.jsx(an,{}),t.jsx(rn,{}),t.jsx(on,{})]}):null,W.includes("virtual")?t.jsxs(Xo,{isShowingInDrawer:y,isOwnCard:s,scaleFactor:P,bgColor:O?.toString(),showColorPalette:F,isDebitCard:I,"data-testid":Z("virtual-charge-card-detail"),onClick:()=>{F===!1&&s===!0&&V(R)===!1&&ua({signedInUserToken:k,showSecretInfo:l,setShowPhoneNumberPopup:T,onFireOnClickAnalytics:te,setShowSecretInfo:K})},enableClick:de,cardDetailsFetchState:E||e.chargeCard?.cardColorCode===void 0,children:[t.jsx(wa,{scaleFactor:P,shouldAppear:E||e.chargeCard?.cardColorCode===void 0}),t.jsx(lo,{leftTransitionValue:P*me.colorPaletteLeftTransitionValue,hasBorderShadow:!1,tickStyles:{width:"12px",height:"12px"},colorInState:e.chargeCard?.cardColorCode!=null?new He(e.chargeCard.cardColorCode):void 0,styles:{height:"100%",maxWidth:"78%",top:y?"unset":a.sp0,left:F?a.sp0:`${P*me.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:F,toggleColorPaletteVisibility:v=>{G(v)},handleColorClick:(v,U)=>{J(v,U),U&&G(!1)}}),t.jsx(en,{scaleFactor:P}),t.jsx(ga,{productInformation:i,cashbackInformation:d,creditAccountInformation:h,debitAccountInformation:m,secretRevealed:u,setSecretRevealed:B,onFireOnClickAnalytics:te,isCardColorUndefined:e.chargeCard?.cardColorCode==null,isCardColorUpdating:e.updateFetchState.fetchState==="In-Progress",isSandboxEnv:g,cardDetailsFetchState:R,setCardDetailsFetchState:z,isCardDetailErrored:A,setIsCardDetailErrored:q,chargeCard:e.chargeCard,vgsVaultId:x,showSecretInfo:l,creditAccountRepayment:$,token:k?.token,isDebitCard:I,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,creditAccount:S,chargeCardCashbackDetailState:j,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:y?"addToWalletDrawer":"cardDetail"}),t.jsxs(xa,{children:[t.jsxs(Jo,{children:[t.jsx(ya,{scaleFactor:P}),t.jsx(Zo,{onClick:v=>{v.stopPropagation(),s&&G(!F)},"data-testid":Z("card-color-selector"),children:s?t.jsx(Pt,{enterDelay:600,title:$e.cardColours,placement:"left",children:t.jsx(Ca,{isShowingInDrawer:y})}):t.jsx(Ca,{isShowingInDrawer:y})})]}),t.jsx(Bo,{scaleFactor:P})]})]}):t.jsxs(sn,{scaleFactor:P,enableClick:de,isOwnCard:s,isShowingInDrawer:y,onClick:()=>{s===!0&&V(R)===!1&&ua({signedInUserToken:k,showSecretInfo:l,setShowPhoneNumberPopup:T,onFireOnClickAnalytics:te,setShowSecretInfo:K})},"data-testid":Z("physical-charge-card-detail"),children:[t.jsx(wa,{scaleFactor:P,shouldAppear:E}),t.jsxs(dn,{flipCard:u,children:[t.jsx(cn,{children:t.jsx(tr,{scaleFactor:P,isClickable:de,isLoading:E,isDebitCard:I})}),l?t.jsxs(ln,{isDebitCard:I,children:[t.jsx(ga,{productInformation:i,cashbackInformation:d,creditAccountInformation:h,debitAccountInformation:m,secretRevealed:u,setSecretRevealed:B,onFireOnClickAnalytics:te,isCardColorUndefined:e.chargeCard?.cardColorCode==null,isCardColorUpdating:e.updateFetchState.fetchState==="In-Progress",isSandboxEnv:g,cardDetailsFetchState:R,setCardDetailsFetchState:z,isCardDetailErrored:A,setIsCardDetailErrored:q,chargeCard:e.chargeCard,vgsVaultId:x,showSecretInfo:l,token:k?.token,isDebitCard:I,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,creditAccount:e.creditAccount,creditAccountRepayment:$,chargeCardCashbackDetailState:j,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:y?"addToWalletDrawer":"cardDetail"}),t.jsx(xa,{children:t.jsx(Qo,{children:t.jsx(ya,{scaleFactor:P})})})]}):null]})]})]}),s===!0&&!E?R.cvv===!0&&R.number===!0?t.jsx(Ko,{children:Vo.loading}):A?t.jsx(Ho,{}):t.jsx(fa,{children:u?L:Y}):E?t.jsx(fa,{children:$e.loading}):null]})},Ho=()=>t.jsxs(_o,{children:[t.jsx(Wo,{}),t.jsx(Uo,{children:$e.failedToFetchCardWebText})]}),No=r.div`
192
192
  display: flex;
193
193
  align-items: center;
194
194
  gap: ${a.sp2};
195
- `,Bo=r(Li)`
195
+ `,Bo=r(Di)`
196
196
  width: ${e=>e.scaleFactor*me.visaLogoWidth}px;
197
197
  height: ${e=>e.scaleFactor*me.visaLogoHeight}px;
198
- `,Wo=r(Ei)`
198
+ `,Wo=r(zi)`
199
199
  width: ${a.sp3};
200
200
  height: ${a.sp3};
201
201
  color: ${p.alert};
@@ -216,7 +216,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
216
216
  height: ${e=>e.isShowingInDrawer?7:10}px;
217
217
  border: 1px solid ${p.backgroundThemeLight};
218
218
  border-radius: 50%;
219
- `,Go=r.div`
219
+ `,Yo=r.div`
220
220
  min-height: ${e=>`calc(${e.scaleFactor*me.rightSectionHeight}px + ${a.sp2})`};
221
221
  min-width: ${e=>`calc(${e.scaleFactor*me.rightSectionWidth}px + ${a.sp2})`};
222
222
  display: flex;
@@ -226,9 +226,9 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
226
226
  gap: ${e=>me.cardContainerContentGap.valuePx(e.windowSize)};
227
227
  `,fa=r(ge)`
228
228
  color: ${e=>e.theme.colors.primary};
229
- `,Yo=r.div`
229
+ `,qo=r.div`
230
230
  position: relative;
231
- `,qo=ur`
231
+ `,Go=ur`
232
232
  0% {
233
233
  transform: translateX(-100%);
234
234
  }
@@ -243,7 +243,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
243
243
  height: ${e=>e.scaleFactor*me.cardLoadingShineHeight}px;
244
244
  position: absolute;
245
245
  transform: translateX(-180%);
246
- animation: ${qo} 1.5s infinite;
246
+ animation: ${Go} 1.5s infinite;
247
247
  background: ${ue`linear-gradient(to right, transparent 0%, ${p.backgroundThemeLight} 50%, transparent 100%)`};
248
248
  `,xa=r.div`
249
249
  display: flex;
@@ -252,7 +252,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
252
252
  align-items: center;
253
253
  width: 25%;
254
254
  padding: ${a.sp4} ${a.sp0};
255
- `,Ko=r.div`
255
+ `,Xo=r.div`
256
256
  background: ${e=>e.cardDetailsFetchState?p.chargeCardFaded:e.bgColor??(e.isDebitCard?e.theme.colors.graphColor15:e.theme.colors.brandColorJade)};
257
257
  border-radius: ${a.sp2};
258
258
  width: ${e=>e.scaleFactor*me.chargeCardWidth}px;
@@ -293,7 +293,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
293
293
  pointer-events: none;
294
294
  `:null};
295
295
  }
296
- `,Xo=r(ge)`
296
+ `,Ko=r(ge)`
297
297
  color: ${e=>e.theme.colors.primary};
298
298
  text-transform: capitalize;
299
299
  `,ya=r(ji)`
@@ -308,30 +308,30 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
308
308
  display: flex;
309
309
  flex-direction: column;
310
310
  gap: ${a.sp4};
311
- `,en=r(ki)`
311
+ `,en=r(Li)`
312
312
  position: absolute;
313
313
  width: ${e=>e.scaleFactor*me.cardTintIconWidth}px;
314
314
  height: ${e=>e.scaleFactor*me.cardTintIconHeight}px;
315
315
  top: -1px;
316
- `,tn=r(Yi)`
316
+ `,tn=r(Xi)`
317
317
  height: 36px;
318
318
  width: 36px;
319
319
  position: absolute;
320
320
  right: -${a.sp3};
321
321
  top: -${a.sp3};
322
- `,an=r(qi)`
322
+ `,an=r(Ki)`
323
323
  height: 36px;
324
324
  width: 36px;
325
325
  position: absolute;
326
326
  left: -${a.sp3};
327
327
  top: -${a.sp3};
328
- `,rn=r(Ki)`
328
+ `,rn=r(Ji)`
329
329
  height: 36px;
330
330
  width: 36px;
331
331
  position: absolute;
332
332
  right: -${a.sp3};
333
333
  bottom: -${a.sp3};
334
- `,on=r(Xi)`
334
+ `,on=r(Qi)`
335
335
  height: 36px;
336
336
  width: 36px;
337
337
  position: absolute;
@@ -404,7 +404,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
404
404
  background-position-x: right;
405
405
  background-position-y: bottom;
406
406
  transform: rotateY(180deg);
407
- `,Ce={contentContainerPadding:new D(c[3],c[4],c[8],c[8]),rightSectionWidth:new D(343,343,343,384),rightSectionHeight:new D(214,214,214,240),cardContainerContentGap:new D(c[2],c[2],c[2],c[3]),remainingAmountContainerGap:new D(c[1],c[1]),leftRightSectionGap:new D(c[0],54,54,57),cardBalanceSectionMarginBottom:new D(c[4],c[4]),barRadius:new D(2,c[2]),topSectionPaddingBottom:new D(c[4],19),rightSectionGap:new D(c[4],c[3]),addressSectionHeight:new D(109,74),addressSectionGap:new D(c[2],c[4]),navigationMarginBottom:new D(c[4],c[0]),addressValueGap:new D(c[0],c[1]),ownerWebMinWidth:new D(110,187)},Ht={remainingAmount:new ha("largeRegular","largeMedium"),spentAmount:new ha("h5Regular","h5Regular")},{common:Fe,dateFormat:it,spendManagement:hn}=pe.getLocalizedStrings(),Ee=hn.chargeCard,pn=({chargeCardDetailView:e,spent:i,controllerEmails:d,chargeCardCashbackDetailState:h,isChargeCardFeatureEnabled:m,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:x,creditAccount:l,creditAccountRepayment:f,productInformation:w,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:b,cardIssuedByRoles:L,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,classListFetchState:g,cardOwnerName:A,secretRevealed:k,appleWalletLink:O,googleWalletLink:R,isCardNotPending:z,isOwnerNameCopied:Y,isAddressCopied:X,addressToShow:B,isOwnCard:T,vgsVaultId:V,showSecretInfo:J,isSandboxEnv:te,isCardDetailErrored:F,signedInUserToken:q,selectedColor:W,showUpdateSpendLimitAction:ne,setShowPhoneNumberPopup:Q,setShowChangeSpendLimitPopup:P,cardDetailsFetchState:ee,setCardDetailsFetchState:H,setIsCardDetailErrored:ae,setShowSecretInfo:K,setSecretRevealed:j,isCardDetailFetching:G,handleColorCodeClick:E,onFireOnClickAnalytics:de,onOwnerNameCopyClick:I,onAddressCopyClick:v,isDebitCard:U})=>{const N=fe(),re=st().analytics,De=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate!=null?e.chargeCardConfig.rePaymentInfo.cardLimitResetDate.format(it.visual.MMMDFormat):Ne.dateNow().startOf("month").add(1,"month").format(it.visual.MMMDFormat),ze=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:Te}=si(),ie=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),ce=nt(),oe=Ne.hasChargeCardAdminLevelAccess(ce?.loggedInUserRoleMap);return t.jsxs(Dn,{windowSize:N,children:[t.jsxs(Ln,{windowSize:N,children:[t.jsxs(In,{windowSize:N,children:[t.jsx(fn,{children:Fe.texts.spent}),t.jsx(va,{children:t.jsx(An,{windowSize:N,children:ye("0,0.[00]",i)})}),t.jsx(On,{windowSize:N,children:t.jsx(Hn,{style:{width:`${ze}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(va,{children:[t.jsxs(Vn,{children:[t.jsxs(gn,{windowSize:N,children:[t.jsx(ka,{windowSize:N,children:ye("0,0.[00]",e.chargeCard.available)}),t.jsx(ja,{windowSize:N,children:Fe.texts.remaining})]}),ne?t.jsxs(Rn,{windowSize:N,children:[t.jsx(Fn,{children:Ee.updateSpendLimitPopup.unlockSpending}),t.jsx(En,{onClick:()=>{mn({chargeCardDetailView:e,classListFetchState:g,isChargeCardFeatureEnabled:m,creditAccount:l,creditAccountRepayment:f,isDebitCard:U,productInformation:w,creditAccountInformation:C,debitAccountInformation:b,controllerEmails:d,cardIssuedByRoles:L,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,analytics:re}),P(!0)},"data-testid":Z("update-spend-limit-button"),children:Ee.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(Tn,{windowSize:N,children:[t.jsxs(wn,{children:[t.jsx(ka,{windowSize:N,children:ye("0,0.[00]",e.chargeCard.limit)}),t.jsx(ja,{windowSize:N,children:Ee.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs(zn,{children:[t.jsx(Pn,{children:Fe.texts.limitReset}),t.jsx(Mn,{children:De})]}):null]})]}):null]}),t.jsx(un,{chargeCardDetailView:e,classListFetchState:g,cardOwnerName:A,addressToShow:B,isAddressCopied:X,isOwnerNameCopied:Y,onOwnerNameCopyClick:I,onAddressCopyClick:v})]}),t.jsx(kn,{windowSize:N,isOwnCard:T,children:N==="small"&&!T?null:t.jsxs(t.Fragment,{children:[t.jsx(jn,{windowSize:N,children:ie?t.jsx(tr,{}):t.jsx(yr,{chargeCardDetailView:e,productInformation:w,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:b,creditAccount:e.creditAccount,setShowSecretInfo:K,secretRevealed:k,isOwnCard:T,isShowingInDrawer:!1,vgsVaultId:V,showSecretInfo:J,isSandboxEnv:te,controllerEmails:d,isChargeCardFeatureEnabled:m,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:x,chargeCardCashbackDetailState:h,isCardDetailErrored:F,signedInUserToken:q,selectedColor:W,cardDetailsFetchState:ee,setCardDetailsFetchState:H,setIsCardDetailErrored:ae,setSecretRevealed:j,isCardDetailFetching:G,handleColorCodeClick:E,onFireOnClickAnalytics:de,setShowPhoneNumberForOtp:Q,creditAccountRepayment:f})}),T?null:t.jsx(Cn,{children:Ee.cardDetails.adminsCannotAccess}),N==="small"&&T&&z&&U===!1?Te?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:e,classListFetchState:g,analytics:re,isDebitCard:U,isChargeCardAdmin:oe,productInformation:w,creditAccountInformation:C,debitAccountInformation:b,cardIssuedByRoles:L,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,controllerEmails:d,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:m,creditAccount:l,creditAccountRepayment:f}),window.open(O,"_blank")}}):t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:e,classListFetchState:g,analytics:re,isDebitCard:U,isChargeCardAdmin:oe,productInformation:w,creditAccountInformation:C,debitAccountInformation:b,cardIssuedByRoles:L,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,controllerEmails:d,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:m,creditAccount:l,creditAccountRepayment:f}),window.open(R,"_blank")}}):null]})})]})},un=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:d,addressToShow:h,isOwnerNameCopied:m,isAddressCopied:u,onOwnerNameCopyClick:s,onAddressCopyClick:x})=>{const l=fe(),f=Be(),[w,n]=o.useState(0),[C,b]=o.useState(!0),[L,S]=o.useState(!1),[$,y]=o.useState(!1),[g,A]=o.useState(!1);o.useEffect(()=>{const O=[setTimeout(()=>{n(1)},500),setTimeout(()=>{n(0),A(!0)},1e3),setTimeout(()=>{b(!1),A(!1)},2e3),setTimeout(()=>{b(!0),n(1)},2500),setTimeout(()=>{n(0),A(!0)},3e3),setTimeout(()=>{b(!1),A(!1)},4e3)];return()=>{O.forEach(clearTimeout)}},[]);const k=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(xn,{children:[t.jsxs(yn,{windowSize:l,children:[t.jsxs(bn,{shouldBounce:g,isActive:w==0,isAutoSlide:C,windowSize:l,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(ba,{windowSize:l,onClick:s,"data-testid":Z("owner-name-copy-click"),onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:[t.jsxs(mt,{children:[Ee.cardDetails.owner,t.jsxs(Ta,{children:[t.jsx(La,{children:m===!0?t.jsx(Aa,{}):t.jsx(Ia,{isHover:L})}),m||L?t.jsx(Da,{children:m?Fe.copyToClipBoard.copied:Fe.copyToClipBoard.copy}):null]})]}),t.jsx(Sa,{children:t.jsx(At,{children:d})})]}):null,h!=null?t.jsxs($a,{windowSize:l,onClick:x,"data-testid":Z("address-copy-click"),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(mt,{children:[Ee.cardDetails.address,t.jsxs(Ta,{children:[t.jsx(La,{children:u===!0?t.jsx(Aa,{}):t.jsx(Ia,{isHover:$})}),u||$?t.jsx(Da,{children:u?Fe.copyToClipBoard.copied:Fe.copyToClipBoard.copy}):null]})]}),t.jsx(vn,{windowSize:l,children:t.jsx(vi,{address:h,isDisabled:"readonly",style:{padding:a.sp0,..._.smallRegular.cssObject,textTransform:"capitalize",alignItems:"flex-start",backgroundColor:f.colors.grey4,cursor:"pointer",flexDirection:l==="small"?"column":"row",gap:Ce.addressValueGap.valuePx(l),textAlign:l==="small"?"left":"right"}})})]}):null]}),t.jsxs(Sn,{isActive:w==1,isAutoSlide:C,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(ba,{windowSize:l,children:[t.jsx(mt,{children:Ee.connectedAccount}),t.jsxs($n,{children:[t.jsx(Nn,{children:t.jsx(Bn,{})}),t.jsx(At,{children:k})]})]}):null,t.jsxs($a,{windowSize:l,children:[t.jsx(mt,{children:Ee.department}),t.jsx(Sa,{children:t.jsx(At,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(ot,{size:"Small",start:!0}):e.chargeCard?.department?.className??Fe.strings.hyphen})})]})]})]}),t.jsx(_i,{numberOfDots:2,activeIndex:w,handleClick:n,style:{marginTop:"12px",marginBottom:Ce.navigationMarginBottom.valuePx(l)},dotStyle:{width:a.sp2,height:a.sp2},spendManagementPromoCardActive:!0,promoColor:f.colors.primary,promoColorHover:f.colors.grey1})]})},mn=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:d,creditAccount:h,creditAccountRepayment:m,isDebitCard:u,controllerEmails:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,cardIssuedByRoles:w,cardIssuedByDepartmentName:n,cardHolderRoles:C,cardHolderDepartmentName:b,analytics:L})=>{if(e.chargeCard!=null&&i==="Completed"&&e.transactionStatistics.fetchState==="Completed"&&(!d||h.fetchState==="Completed"&&m.fetchState==="Completed")&&(!u||e.depositAccountLimitFetchState.fetchState==="Completed")){const S=e.chargeCard.type.code.includes("physical")?e.chargeCard.cardActivationAttemptHistory[0]?.timestamp:e.chargeCard.createTime;L.trackCardsUpdateSpendLimitInitiated(s,x,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:gr(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:Le(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(it.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(it.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:S?.format(it.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name,cardSpentAmount:Le(e.chargeCard.balance.amount),cardAvailableLimit:Le(e.chargeCard.available.amount),cardUtilizationPercent:mr(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:Le(Cr(e.chargeCard)),totalNumberOfDeclinedTransactions:e.transactionStatistics.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:e.transactionStatistics.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:e.transactionStatistics.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:e.transactionStatistics.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:e.transactionStatistics.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:e.transactionStatistics.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:ft(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:w,cardIssuedByDepartment:n},{cardholderName:ft(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:b},"Card Detail","Hyperlink",(e?.chargeCard?.recommendations??[]).map($=>Le($.creditLimit.amount)),l,f)}},gn=r.div`
407
+ `,Ce={contentContainerPadding:new D(c[3],c[4],c[8],c[8]),rightSectionWidth:new D(343,343,343,384),rightSectionHeight:new D(214,214,214,240),cardContainerContentGap:new D(c[2],c[2],c[2],c[3]),remainingAmountContainerGap:new D(c[1],c[1]),leftRightSectionGap:new D(c[0],54,54,57),cardBalanceSectionMarginBottom:new D(c[4],c[4]),barRadius:new D(2,c[2]),topSectionPaddingBottom:new D(c[4],19),rightSectionGap:new D(c[4],c[3]),addressSectionHeight:new D(109,74),addressSectionGap:new D(c[2],c[4]),navigationMarginBottom:new D(c[4],c[0]),addressValueGap:new D(c[0],c[1]),ownerWebMinWidth:new D(110,187)},Ht={remainingAmount:new ha("largeRegular","largeMedium"),spentAmount:new ha("h5Regular","h5Regular")},{common:Fe,dateFormat:it,spendManagement:hn}=pe.getLocalizedStrings(),Ee=hn.chargeCard,pn=({chargeCardDetailView:e,spent:i,controllerEmails:d,chargeCardCashbackDetailState:h,isChargeCardFeatureEnabled:m,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:x,creditAccount:l,creditAccountRepayment:f,productInformation:w,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:b,cardIssuedByRoles:j,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,classListFetchState:g,cardOwnerName:A,secretRevealed:k,appleWalletLink:O,googleWalletLink:R,isCardNotPending:z,isOwnerNameCopied:q,isAddressCopied:K,addressToShow:B,isOwnCard:T,vgsVaultId:V,showSecretInfo:J,isSandboxEnv:te,isCardDetailErrored:F,signedInUserToken:G,selectedColor:W,showUpdateSpendLimitAction:ne,setShowPhoneNumberPopup:Q,setShowChangeSpendLimitPopup:P,cardDetailsFetchState:ee,setCardDetailsFetchState:H,setIsCardDetailErrored:ae,setShowSecretInfo:X,setSecretRevealed:L,isCardDetailFetching:Y,handleColorCodeClick:E,onFireOnClickAnalytics:de,onOwnerNameCopyClick:I,onAddressCopyClick:v,isDebitCard:U})=>{const N=fe(),re=st().analytics,De=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate!=null?e.chargeCardConfig.rePaymentInfo.cardLimitResetDate.format(it.visual.MMMDFormat):Ne.dateNow().startOf("month").add(1,"month").format(it.visual.MMMDFormat),ze=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:Te}=di(),ie=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),ce=nt(),oe=Ne.hasChargeCardAdminLevelAccess(ce?.loggedInUserRoleMap);return t.jsxs(Dn,{windowSize:N,children:[t.jsxs(jn,{windowSize:N,children:[t.jsxs(In,{windowSize:N,children:[t.jsx(fn,{children:Fe.texts.spent}),t.jsx(va,{children:t.jsx(An,{windowSize:N,children:ye("0,0.[00]",i)})}),t.jsx(On,{windowSize:N,children:t.jsx(Hn,{style:{width:`${ze}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(va,{children:[t.jsxs(Vn,{children:[t.jsxs(gn,{windowSize:N,children:[t.jsx(ka,{windowSize:N,children:ye("0,0.[00]",e.chargeCard.available)}),t.jsx(La,{windowSize:N,children:Fe.texts.remaining})]}),ne?t.jsxs(Rn,{windowSize:N,children:[t.jsx(Fn,{children:Ee.updateSpendLimitPopup.unlockSpending}),t.jsx(En,{onClick:()=>{mn({chargeCardDetailView:e,classListFetchState:g,isChargeCardFeatureEnabled:m,creditAccount:l,creditAccountRepayment:f,isDebitCard:U,productInformation:w,creditAccountInformation:C,debitAccountInformation:b,controllerEmails:d,cardIssuedByRoles:j,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,analytics:re}),P(!0)},"data-testid":Z("update-spend-limit-button"),children:Ee.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(Tn,{windowSize:N,children:[t.jsxs(wn,{children:[t.jsx(ka,{windowSize:N,children:ye("0,0.[00]",e.chargeCard.limit)}),t.jsx(La,{windowSize:N,children:Ee.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs(zn,{children:[t.jsx(Pn,{children:Fe.texts.limitReset}),t.jsx(Mn,{children:De})]}):null]})]}):null]}),t.jsx(un,{chargeCardDetailView:e,classListFetchState:g,cardOwnerName:A,addressToShow:B,isAddressCopied:K,isOwnerNameCopied:q,onOwnerNameCopyClick:I,onAddressCopyClick:v})]}),t.jsx(kn,{windowSize:N,isOwnCard:T,children:N==="small"&&!T?null:t.jsxs(t.Fragment,{children:[t.jsx(Ln,{windowSize:N,children:ie?t.jsx(tr,{}):t.jsx(yr,{chargeCardDetailView:e,productInformation:w,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:b,creditAccount:e.creditAccount,setShowSecretInfo:X,secretRevealed:k,isOwnCard:T,isShowingInDrawer:!1,vgsVaultId:V,showSecretInfo:J,isSandboxEnv:te,controllerEmails:d,isChargeCardFeatureEnabled:m,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:x,chargeCardCashbackDetailState:h,isCardDetailErrored:F,signedInUserToken:G,selectedColor:W,cardDetailsFetchState:ee,setCardDetailsFetchState:H,setIsCardDetailErrored:ae,setSecretRevealed:L,isCardDetailFetching:Y,handleColorCodeClick:E,onFireOnClickAnalytics:de,setShowPhoneNumberForOtp:Q,creditAccountRepayment:f})}),T?null:t.jsx(Cn,{children:Ee.cardDetails.adminsCannotAccess}),N==="small"&&T&&z&&U===!1?Te?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:e,classListFetchState:g,analytics:re,isDebitCard:U,isChargeCardAdmin:oe,productInformation:w,creditAccountInformation:C,debitAccountInformation:b,cardIssuedByRoles:j,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,controllerEmails:d,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:m,creditAccount:l,creditAccountRepayment:f}),window.open(O,"_blank")}}):t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:e,classListFetchState:g,analytics:re,isDebitCard:U,isChargeCardAdmin:oe,productInformation:w,creditAccountInformation:C,debitAccountInformation:b,cardIssuedByRoles:j,cardIssuedByDepartmentName:S,cardHolderRoles:$,cardHolderDepartmentName:y,controllerEmails:d,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:m,creditAccount:l,creditAccountRepayment:f}),window.open(R,"_blank")}}):null]})})]})},un=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:d,addressToShow:h,isOwnerNameCopied:m,isAddressCopied:u,onOwnerNameCopyClick:s,onAddressCopyClick:x})=>{const l=fe(),f=Be(),[w,n]=o.useState(0),[C,b]=o.useState(!0),[j,S]=o.useState(!1),[$,y]=o.useState(!1),[g,A]=o.useState(!1);o.useEffect(()=>{const O=[setTimeout(()=>{n(1)},500),setTimeout(()=>{n(0),A(!0)},1e3),setTimeout(()=>{b(!1),A(!1)},2e3),setTimeout(()=>{b(!0),n(1)},2500),setTimeout(()=>{n(0),A(!0)},3e3),setTimeout(()=>{b(!1),A(!1)},4e3)];return()=>{O.forEach(clearTimeout)}},[]);const k=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(xn,{children:[t.jsxs(yn,{windowSize:l,children:[t.jsxs(bn,{shouldBounce:g,isActive:w==0,isAutoSlide:C,windowSize:l,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(ba,{windowSize:l,onClick:s,"data-testid":Z("owner-name-copy-click"),onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:[t.jsxs(mt,{children:[Ee.cardDetails.owner,t.jsxs(Ta,{children:[t.jsx(ja,{children:m===!0?t.jsx(Aa,{}):t.jsx(Ia,{isHover:j})}),m||j?t.jsx(Da,{children:m?Fe.copyToClipBoard.copied:Fe.copyToClipBoard.copy}):null]})]}),t.jsx(Sa,{children:t.jsx(At,{children:d})})]}):null,h!=null?t.jsxs($a,{windowSize:l,onClick:x,"data-testid":Z("address-copy-click"),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(mt,{children:[Ee.cardDetails.address,t.jsxs(Ta,{children:[t.jsx(ja,{children:u===!0?t.jsx(Aa,{}):t.jsx(Ia,{isHover:$})}),u||$?t.jsx(Da,{children:u?Fe.copyToClipBoard.copied:Fe.copyToClipBoard.copy}):null]})]}),t.jsx(vn,{windowSize:l,children:t.jsx(ki,{address:h,isDisabled:"readonly",style:{padding:a.sp0,..._.smallRegular.cssObject,textTransform:"capitalize",alignItems:"flex-start",backgroundColor:f.colors.grey4,cursor:"pointer",flexDirection:l==="small"?"column":"row",gap:Ce.addressValueGap.valuePx(l),textAlign:l==="small"?"left":"right"}})})]}):null]}),t.jsxs(Sn,{isActive:w==1,isAutoSlide:C,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(ba,{windowSize:l,children:[t.jsx(mt,{children:Ee.connectedAccount}),t.jsxs($n,{children:[t.jsx(Nn,{children:t.jsx(Bn,{})}),t.jsx(At,{children:k})]})]}):null,t.jsxs($a,{windowSize:l,children:[t.jsx(mt,{children:Ee.department}),t.jsx(Sa,{children:t.jsx(At,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(ot,{size:"Small",start:!0}):e.chargeCard?.department?.className??Fe.strings.hyphen})})]})]})]}),t.jsx(Yi,{numberOfDots:2,activeIndex:w,handleClick:n,style:{marginTop:"12px",marginBottom:Ce.navigationMarginBottom.valuePx(l)},dotStyle:{width:a.sp2,height:a.sp2},spendManagementPromoCardActive:!0,promoColor:f.colors.primary,promoColorHover:f.colors.grey1})]})},mn=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:d,creditAccount:h,creditAccountRepayment:m,isDebitCard:u,controllerEmails:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,cardIssuedByRoles:w,cardIssuedByDepartmentName:n,cardHolderRoles:C,cardHolderDepartmentName:b,analytics:j})=>{if(e.chargeCard!=null&&i==="Completed"&&e.transactionStatistics.fetchState==="Completed"&&(!d||h.fetchState==="Completed"&&m.fetchState==="Completed")&&(!u||e.depositAccountLimitFetchState.fetchState==="Completed")){const S=e.chargeCard.type.code.includes("physical")?e.chargeCard.cardActivationAttemptHistory[0]?.timestamp:e.chargeCard.createTime;j.trackCardsUpdateSpendLimitInitiated(s,x,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:gr(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:je(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(it.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(it.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:S?.format(it.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name,cardSpentAmount:je(e.chargeCard.balance.amount),cardAvailableLimit:je(e.chargeCard.available.amount),cardUtilizationPercent:mr(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:je(Cr(e.chargeCard)),totalNumberOfDeclinedTransactions:e.transactionStatistics.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:e.transactionStatistics.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:e.transactionStatistics.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:e.transactionStatistics.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:e.transactionStatistics.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:e.transactionStatistics.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:ft(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:w,cardIssuedByDepartment:n},{cardholderName:ft(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:b},"Card Detail","Hyperlink",(e?.chargeCard?.recommendations??[]).map($=>je($.creditLimit.amount)),l,f)}},gn=r.div`
408
408
  display: flex;
409
409
  align-items: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"flex-start":"center"};
410
410
  gap: ${e=>Ce.remainingAmountContainerGap.valuePx(e.windowSize)};
@@ -481,7 +481,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
481
481
  align-items: center;
482
482
  gap: ${e=>Ce.rightSectionGap.valuePx(e.windowSize)};
483
483
  width: ${e=>e.windowSize==="small"?"100%":"max-content"};
484
- `,jn=r.div`
484
+ `,Ln=r.div`
485
485
  min-height: ${e=>`calc(${Ce.rightSectionHeight.valuePx(e.windowSize)} + ${a.sp2})`};
486
486
  min-width: ${e=>`calc(${Ce.rightSectionWidth.valuePx(e.windowSize)} + ${a.sp2})`};
487
487
  display: flex;
@@ -489,7 +489,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
489
489
  align-items: center;
490
490
  flex-direction: column;
491
491
  gap: ${e=>Ce.cardContainerContentGap.valuePx(e.windowSize)};
492
- `,Ln=r.div`
492
+ `,jn=r.div`
493
493
  width: 100%;
494
494
  display: flex;
495
495
  align-items: flex-start;
@@ -535,7 +535,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
535
535
  `,Fn=r(Mt)`
536
536
  color: ${e=>e.theme.colors.hero};
537
537
  margin-right: ${a.sp1};
538
- `,En=r($i)`
538
+ `,En=r(vi)`
539
539
  background: none;
540
540
  border: none;
541
541
  cursor: pointer;
@@ -567,7 +567,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
567
567
  `,ka=r(nr)`
568
568
  color: ${e=>e.theme.colors.primary};
569
569
  ${e=>`${Ht.remainingAmount.style(e.windowSize)}`};
570
- `,ja=r(Si)`
570
+ `,La=r($i)`
571
571
  ${e=>`${Ht.remainingAmount.style(e.windowSize)}`};
572
572
  color: ${e=>e.theme.colors.primary};
573
573
  `,Hn=r.div`
@@ -575,7 +575,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
575
575
  width: 0%;
576
576
  height: ${a.sp1};
577
577
  transition: width 4s ease;
578
- `,La=r.span`
578
+ `,ja=r.span`
579
579
  display: flex;
580
580
  color: ${e=>e.theme.colors.grey1};
581
581
  &:hover {
@@ -602,7 +602,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
602
602
  `,Nn=r.div`
603
603
  width: 21px;
604
604
  height: 21px;
605
- `,Bn=r(Ii)`
605
+ `,Bn=r(Ai)`
606
606
  color: ${p.brandColorOpal};
607
607
  width: 100%;
608
608
  height: 100%;
@@ -611,21 +611,21 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
611
611
  align-items: center;
612
612
  justify-content: center;
613
613
  position: relative;
614
- `,ct=pe.getLocalizedStrings().spendManagement.chargeCard.cardDetails.header,Wn={key:"merchant",value:ct.merchant,sortOrder:"ascending",width:new D(38,38)},Un={key:"paymentDate",value:ct.paymentDate,sortOrder:"ascending",width:new D(21,21)},_n={key:"receipts",value:ct.receipts,sortOrder:"ascending",width:new D(16,16)},Zn={key:"type",value:ct.type,sortOrder:"ascending",width:new D(14,14)},Gn={key:"amount",value:ct.amount,sortOrder:"ascending",width:new D(11,11)},br=()=>[Wn,Un,_n,Zn,Gn],Ke={headerLastColumnTopPadding:new D(c[0],c[4]),headerLastColumnRightPadding:new D(c[3],c[11]),headerLastColumnBottomPadding:new D(c[0],c[4]),headerLastColumnLeftPadding:new D(c[3],c[11]),headerHeight:new D(to,ao)};function Yn({hideSorting:e,sortConfig:i,onColumnSortConfigChanged:d}){const h=Be(),m=fe(),u=br(),s=(n,C)=>{let b=C;i.sortKey===n&&(b=C==="ascending"?"descending":"ascending"),d(n,b)},x=u.find(n=>n.key===i.sortKey)??u[0],l=n=>u.find(C=>C.key===n)?.value??"",f=u.map(n=>n.key),w=pe.getLocalizedStrings().spendManagement.chargeCard.cardList;return m==="small"?t.jsxs(Ra,{windowSize:m,children:[t.jsxs(Jn,{children:[t.jsx(es,{children:t.jsx(Qn,{})}),t.jsx(zi,{title:w.sortBy,placeholder:w.sortBy,pickerValues:f,valueToLabel:l,selectedValue:i.sortKey,onPickerSelectionChanged:n=>{s(n,"ascending")},optionTextStyle:_.smallRegular,titleTextStyle:_.smallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4,isDisabled:e})]}),t.jsxs(rs,{hideSorting:e,onClick:()=>{e||s(x.key,x.sortOrder)},"data-testid":Z("charge-card-trxn-small-header",i.sortKey),children:[t.jsx(ge,{children:x.value}),e?null:t.jsx(Fa,{sortDataValue:i.sortKey,headerData:x,children:t.jsx(Ea,{})})]})]}):t.jsx(Ra,{windowSize:m,children:u.map(n=>t.jsxs(Kn,{hideSorting:e,sortDataValue:i.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(as,{hideSorting:e,onClick:()=>{e||s(n.key,n.sortOrder)},"data-testid":Z("charge-card-trxn-header",i.sortKey),children:[t.jsx(ge,{children:n.value}),t.jsx(Fa,{sortDataValue:i.sortKey,headerData:n,children:e?null:t.jsx(Ea,{})})]}),t.jsx(ts,{sortDataValue:i.sortKey,windowSize:m,isVisible:e?!1:i.sortKey===n.key&&n.key!=="paymentDate",children:e?null:t.jsx(Xn,{onClick:()=>{e||s("paymentDate","ascending")},"data-testid":Z("charge-card-trxn-close-sort",i.sortKey)})})]},n.key))})}const qn=Wi.memo(Yn),Ra=r(ge)`
614
+ `,ct=pe.getLocalizedStrings().spendManagement.chargeCard.cardDetails.header,Wn={key:"merchant",value:ct.merchant,sortOrder:"ascending",width:new D(38,38)},Un={key:"paymentDate",value:ct.paymentDate,sortOrder:"ascending",width:new D(21,21)},_n={key:"receipts",value:ct.receipts,sortOrder:"ascending",width:new D(16,16)},Zn={key:"type",value:ct.type,sortOrder:"ascending",width:new D(14,14)},Yn={key:"amount",value:ct.amount,sortOrder:"ascending",width:new D(11,11)},br=()=>[Wn,Un,_n,Zn,Yn],Xe={headerLastColumnTopPadding:new D(c[0],c[4]),headerLastColumnRightPadding:new D(c[3],c[11]),headerLastColumnBottomPadding:new D(c[0],c[4]),headerLastColumnLeftPadding:new D(c[3],c[11]),headerHeight:new D(Vi,Hi)};function qn({hideSorting:e,sortConfig:i,onColumnSortConfigChanged:d}){const h=Be(),m=fe(),u=br(),s=(n,C)=>{let b=C;i.sortKey===n&&(b=C==="ascending"?"descending":"ascending"),d(n,b)},x=u.find(n=>n.key===i.sortKey)??u[0],l=n=>u.find(C=>C.key===n)?.value??"",f=u.map(n=>n.key),w=pe.getLocalizedStrings().spendManagement.chargeCard.cardList;return m==="small"?t.jsxs(Ra,{windowSize:m,children:[t.jsxs(Jn,{children:[t.jsx(es,{children:t.jsx(Qn,{})}),t.jsx(Pi,{title:w.sortBy,placeholder:w.sortBy,pickerValues:f,valueToLabel:l,selectedValue:i.sortKey,onPickerSelectionChanged:n=>{s(n,"ascending")},optionTextStyle:_.smallRegular,titleTextStyle:_.smallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4,isDisabled:e})]}),t.jsxs(rs,{hideSorting:e,onClick:()=>{e||s(x.key,x.sortOrder)},"data-testid":Z("charge-card-trxn-small-header",i.sortKey),children:[t.jsx(ge,{children:x.value}),e?null:t.jsx(Fa,{sortDataValue:i.sortKey,headerData:x,children:t.jsx(Ea,{})})]})]}):t.jsx(Ra,{windowSize:m,children:u.map(n=>t.jsxs(Xn,{hideSorting:e,sortDataValue:i.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(as,{hideSorting:e,onClick:()=>{e||s(n.key,n.sortOrder)},"data-testid":Z("charge-card-trxn-header",i.sortKey),children:[t.jsx(ge,{children:n.value}),t.jsx(Fa,{sortDataValue:i.sortKey,headerData:n,children:e?null:t.jsx(Ea,{})})]}),t.jsx(ts,{sortDataValue:i.sortKey,windowSize:m,isVisible:e?!1:i.sortKey===n.key&&n.key!=="paymentDate",children:e?null:t.jsx(Kn,{onClick:()=>{e||s("paymentDate","ascending")},"data-testid":Z("charge-card-trxn-close-sort",i.sortKey)})})]},n.key))})}const Gn=Zi.memo(qn),Ra=r(ge)`
615
615
  top: ${a.sp0};
616
616
  left: ${a.sp0};
617
- min-height: ${e=>Ke.headerHeight.valuePx(e.windowSize)};
618
- max-height: ${e=>Ke.headerHeight.valuePx(e.windowSize)};
617
+ min-height: ${e=>Xe.headerHeight.valuePx(e.windowSize)};
618
+ max-height: ${e=>Xe.headerHeight.valuePx(e.windowSize)};
619
619
  width: auto;
620
620
  z-index: 2;
621
621
  display: flex;
622
622
  align-items: center;
623
623
  box-sizing: border-box;
624
- padding: ${e=>`${Ke.headerLastColumnTopPadding.valuePx(e.windowSize)} ${Ke.headerLastColumnRightPadding.valuePx(e.windowSize)} ${Ke.headerLastColumnBottomPadding.valuePx(e.windowSize)} ${Ke.headerLastColumnLeftPadding.valuePx(e.windowSize)}`};
624
+ padding: ${e=>`${Xe.headerLastColumnTopPadding.valuePx(e.windowSize)} ${Xe.headerLastColumnRightPadding.valuePx(e.windowSize)} ${Xe.headerLastColumnBottomPadding.valuePx(e.windowSize)} ${Xe.headerLastColumnLeftPadding.valuePx(e.windowSize)}`};
625
625
  background-color: ${e=>e.theme.colors.grey4};
626
626
  justify-content: space-between;
627
627
  position: sticky;
628
- `,Kn=r.div`
628
+ `,Xn=r.div`
629
629
  color: ${e=>e.sortDataValue===e.actualDataValue&&e.hideSorting===!1?e.theme.colors.primary:e.theme.colors.grey1};
630
630
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
631
631
  max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
@@ -642,7 +642,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
642
642
  `};
643
643
  box-sizing: border-box;
644
644
  overflow: hidden;
645
- `,Xn=r(Mi)`
645
+ `,Kn=r(Oi)`
646
646
  width: 12px;
647
647
  height: 12px;
648
648
  cursor: pointer;
@@ -660,7 +660,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
660
660
  `,Jn=r.div`
661
661
  gap: ${a.sp1};
662
662
  display: flex;
663
- `,Qn=r(Pi)`
663
+ `,Qn=r(Mi)`
664
664
  width: 12px;
665
665
  height: 12px;
666
666
  color: ${e=>e.theme.colors.grey1};
@@ -687,7 +687,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
687
687
  &:hover {
688
688
  color: ${e=>e.hideSorting?e.theme.colors.hero:e.theme.colors.primary};
689
689
  }
690
- `;function Sr(e,i,d){return is(e,i,d)}async function is(e,i,d,h){const m=`${e}?query=${encodeURIComponent(JSON.stringify(d))}`,u=pe.getLocalizedStrings().downloadReport;try{const s=await Hi(m,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(s.ok){const x=h??Ni(s.headers,"Charge Card Transaction Receipt.pdf"),l=await s.arrayBuffer();Bi(l,x)}else console.error(`${u.reportErrorMessage} ${s.statusText}`)}catch(s){console.error(`${u.reportErrorMessage} ${JSON.stringify(s)}`)}}async function $r(e,i,d){const h=`${e}?query=${encodeURIComponent(JSON.stringify(d))}`,m=pe.getLocalizedStrings().downloadReport;try{const u=await fetch(h,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(u.ok)return await u.json();console.error(`${m.reportErrorMessage} ${u.statusText}`)}catch(u){throw console.error(`${m.reportErrorMessage} ${JSON.stringify(u)}`),u}return[]}const os=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M23.3584 10.0417L23.2319 9.30243L21.7534 9.55562L21.88 10.2949L23.3584 10.0417ZM20.3835 6.50175L20.7954 7.1285L22.0489 6.30467L21.637 5.67791L20.3835 6.50175ZM18.3213 2.36228L17.6946 1.95036L16.8707 3.20388L17.4975 3.61579L18.3213 2.36228ZM13.7044 2.11928L14.4436 2.24587L14.6968 0.767397L13.9576 0.640799L13.7044 2.11928ZM10.041 0.640799L9.30172 0.767397L9.55492 2.24587L10.2942 2.11928L10.041 0.640799ZM6.50104 3.6158L7.1278 3.20388L6.30397 1.95036L5.67721 2.36228L6.50104 3.6158ZM2.36158 5.67792L1.94966 6.30467L3.20318 7.12851L3.61509 6.50175L2.36158 5.67792ZM2.11857 10.2949L2.24517 9.55562L0.766695 9.30242L0.640097 10.0417L2.11857 10.2949ZM0.640097 13.9583L0.766695 14.6975L2.24517 14.4443L2.11857 13.7051L0.640097 13.9583ZM3.61509 17.4982L3.20318 16.8714L1.94966 17.6953L2.36158 18.322L3.61509 17.4982ZM5.67721 21.6377L6.30397 22.0496L7.1278 20.7961L6.50105 20.3842L5.67721 21.6377ZM10.2942 21.8807L9.55492 21.7541L9.30172 23.2326L10.041 23.3592L10.2942 21.8807ZM13.9576 23.3592L14.6968 23.2326L14.4436 21.7541L13.7044 21.8807L13.9576 23.3592ZM17.4975 20.3842L16.8707 20.7961L17.6946 22.0496L18.3213 21.6377L17.4975 20.3842ZM21.637 18.322L22.0489 17.6953L20.7954 16.8714L20.3835 17.4982L21.637 18.322ZM21.88 13.7051L21.7534 14.4443L23.2319 14.6975L23.3584 13.9583L21.88 13.7051ZM23.5243 12C23.5243 11.333 23.4675 10.6786 23.3584 10.0417L21.88 10.2949C21.9748 10.8485 22.0243 11.4182 22.0243 12H23.5243ZM21.637 5.67791C20.7702 4.35908 19.6402 3.22904 18.3213 2.36228L17.4975 3.61579C18.6453 4.37014 19.6291 5.35396 20.3835 6.50175L21.637 5.67791ZM13.9576 0.640799C13.3206 0.531717 12.6663 0.474976 11.9993 0.474976V1.97498C12.5811 1.97498 13.1507 2.02446 13.7044 2.11928L13.9576 0.640799ZM11.9993 0.474976C11.3323 0.474976 10.6779 0.531717 10.041 0.640799L10.2942 2.11928C10.8478 2.02446 11.4175 1.97498 11.9993 1.97498V0.474976ZM5.67721 2.36228C4.35838 3.22904 3.22833 4.35909 2.36158 5.67792L3.61509 6.50175C4.36944 5.35396 5.35326 4.37014 6.50104 3.6158L5.67721 2.36228ZM0.640097 10.0417C0.531015 10.6786 0.474274 11.333 0.474274 12H1.97427C1.97427 11.4182 2.02375 10.8485 2.11857 10.2949L0.640097 10.0417ZM0.474274 12C0.474274 12.667 0.531015 13.3213 0.640097 13.9583L2.11857 13.7051C2.02375 13.1514 1.97427 12.5818 1.97427 12H0.474274ZM2.36158 18.322C3.22834 19.6409 4.35838 20.7709 5.67721 21.6377L6.50105 20.3842C5.35326 19.6298 4.36944 18.646 3.61509 17.4982L2.36158 18.322ZM10.041 23.3592C10.6779 23.4682 11.3323 23.525 11.9993 23.525V22.025C11.4175 22.025 10.8478 21.9755 10.2942 21.8807L10.041 23.3592ZM11.9993 23.525C12.6663 23.525 13.3206 23.4682 13.9576 23.3592L13.7044 21.8807C13.1507 21.9755 12.5811 22.025 11.9993 22.025V23.525ZM18.3213 21.6377C19.6402 20.7709 20.7702 19.6409 21.637 18.322L20.3835 17.4982C19.6291 18.646 18.6453 19.6298 17.4975 20.3842L18.3213 21.6377ZM23.3584 13.9583C23.4675 13.3213 23.5243 12.667 23.5243 12H22.0243C22.0243 12.5818 21.9748 13.1514 21.88 13.7051L23.3584 13.9583Z",fill:"currentColor"}),o.createElement("path",{d:"M12 6.12244V17.8775",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M17.8776 12H6.12245",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),vr=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 21.5894C3.6641 21.5893 3.99994 21.2535 3.99994 20.8394V8.37549L4.72748 9.10303C5.02038 9.39591 5.49514 9.39592 5.78803 9.10303C6.08091 8.81014 6.08091 8.33537 5.78803 8.04248L3.7851 6.03955C3.49221 5.74666 3.01745 5.74667 2.72455 6.03955C2.71669 6.04741 2.70953 6.05585 2.70209 6.06396C2.68584 6.07767 2.66955 6.09163 2.65424 6.10693L0.711857 8.04932C0.418964 8.34221 0.418964 8.81795 0.711857 9.11084C1.00469 9.40341 1.47957 9.40341 1.7724 9.11084L2.49994 8.3833V20.8394C2.49994 21.2536 2.83573 21.5894 3.24994 21.5894Z",fill:"currentColor"})),kr=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 5.81982C3.6641 5.81989 3.99994 6.15565 3.99994 6.56982V19.0337L4.72748 18.3062C5.02038 18.0133 5.49514 18.0133 5.78803 18.3062C6.08091 18.599 6.08091 19.0738 5.78803 19.3667L3.7851 21.3696C3.49221 21.6625 3.01745 21.6625 2.72455 21.3696C2.71669 21.3618 2.70953 21.3533 2.70209 21.3452C2.68584 21.3315 2.66955 21.3175 2.65424 21.3022L0.711857 19.3599C0.418964 19.067 0.418964 18.5912 0.711857 18.2983C1.00469 18.0058 1.47957 18.0058 1.7724 18.2983L2.49994 19.0259V6.56982C2.49994 6.15561 2.83573 5.81982 3.24994 5.81982Z",fill:"currentColor"})),{dateFormat:ns,spendManagement:{chargeCard:{cardDetails:za}},common:{strings:{hyphen:ss},tooltips:{addMissingReceipt:ds,addReceipt:cs,viewReceipt:ls}}}=pe.getLocalizedStrings(),Re={containerPaddingLeft:new D(c[3],c[4]),containerPaddingRight:new D(c[3],c[4]),containerPaddingTop:new D(c[2],c[3]),containerPaddingBottom:new D(c[2],c[3]),containerMarginLeft:new D(c[4],c[8]),webkitLineClamp:new D(2,1,1,1,1)},hs=(e,i)=>e.attachments!=null&&e.attachments.length>0?ls:e.amount.amount<=i.amount?cs:ds,jr=(e,i,d,h)=>e.attachments!=null&&e.attachments.length>0?t.jsx(Rs,{onClick:m=>{m.stopPropagation(),h()},"data-testid":Z("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx(zs,{onClick:m=>{m.stopPropagation(),d()},"data-testid":Z("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(Es,{onClick:m=>{m.stopPropagation(),d()},"data-testid":Z("card-transaction-row-upload-receipt",e.id)}),ps=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,isAiCategorizationEnabledForCardsTransactions:h,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:u,cardId:s,uploadReceiptsFetchState:x,uploadReceiptsShowTick:l,isViewReceiptClickedImmediatelyAfterUpload:f,authParams:w,transaction:n,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:b,onUploadReceiptComplete:L,updateChargeCardTransactionUploadReceiptsFetchStatus:S,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:y,removeSnackbar:g,onChargeCardTransactionRowClick:A})=>{const k=fe(),[O,R]=o.useState(!1),[z,Y]=o.useState([]),[X,B]=o.useState(null);o.useEffect(()=>{!d&&f&&(J(T[0]),Q())},[d,f]);const T=n.attachments?.filter(ie=>ie.contentType!=null&&dr.includes(ie.contentType))??[],[V,J]=o.useState(T[0]),[te,F]=o.useState([]),[q,W]=o.useState(void 0);o.useEffect(()=>{async function ie(ce){te.includes(ce.attachment_id)?console.warn(`Attachment with ID ${ce.attachment_id} is already getting downloaded`):(F([ce.attachment_id,...te]),await Sr(u,w,ce),F(pr(te,oe=>oe==ce.attachment_id)))}q!=null&&(ie({card_id:s,transaction_id:n.id,attachment_id:q}),W(void 0))},[q]);const ne=()=>{y(n.id,s,!1),R(!1),B(null),Y([]),T.length>0&&J(T[0])},Q=()=>{R(!0);const ie=T.map(oe=>oe.id);async function ce(oe){return await $r(m,w,oe)}ce({card_id:s,transaction_id:n.id,attachment_ids:ie}).then(oe=>{Y(oe),oe.length>0&&B(oe[0])})},{merchant:P,createTime:ee,transactionType:H,thirdPartyTransactionId:ae}=n,K=()=>{d?(g(),y(n.id,s,!0)):(J(T[0]),Q())},j=o.useRef(null);async function G(ie,ce){S(n.id,s,"In-Progress"),await wr(`${e}/1.0/cards/transactions/${n.id}/attachments`,w,ie,ce).then(oe=>{oe!=null&&b(n.id,oe),S(n.id,s,"Completed"),$(n.id,s,!0),setTimeout(()=>{$(n.id,s,!1),L(!0)},2e3)}).catch(oe=>{S(n.id,s,"Error"),L(!1,oe)})}const E=()=>{j.current?.click()},de=ie=>{if(ie.target.files!=null){const ce=ie.target.files,oe=[],Ie=[];for(let se=0;se<ce.length;se++)oe.push(ce[se].name),Ie.push(ce[se]);G?.(Ie,oe)}},I=br(),v=cr(n.transactionStatus),U=h?P.brandName??P.name:P.name,N=ye("0,0.00",n.amount),re=H.code==="transfer",De=ae!=null&&h,ze=re&&n.direction==="debit",Te=re&&n.direction==="credit";return t.jsxs(fs,{windowSize:k,isClickable:De,"data-testid":Z("card-transaction-row",n.id),onClick:ie=>{ie.stopPropagation(),De&&A(H.code,ae)},children:[t.jsx(ws,{children:t.jsxs(xs,{children:[t.jsxs(ys,{windowSize:k,responsiveWidth:I[0].width,children:[ze?t.jsx(ks,{}):Te?t.jsx(js,{}):t.jsx(Ls,{src:P.logo?.url?.toString()}),t.jsx(bs,{windowSize:k,hasMarginRight:v.code==="paid",children:U}),v.code!=="paid"?t.jsxs(ms,{children:[t.jsx(Cs,{windowSize:k}),t.jsx(gs,{color:v.color,windowSize:k,children:v.value})]}):null]}),t.jsx(vs,{windowSize:k,responsiveWidth:I[1].width,children:t.jsx(Ds,{children:ee.format(ns.visual.MMMDCommaYYYYformat)})}),t.jsx(As,{windowSize:k,responsiveWidth:I[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?ss:x?.fetchState==="In-Progress"?t.jsx(ot,{size:"Small",start:!0}):l?t.jsx(Fs,{}):t.jsxs(Pt,{enterDelay:600,display:"flex",placement:"bottom",title:hs(n,C),children:[t.jsx(us,{"data-testid":Z("card-transaction-row-upload-receipt",n.id),onClick:ie=>{ie.stopPropagation()},children:t.jsx(lr,{name:"transactionLineAttachment",fileRef:j,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:de,multiple:!0,onFileSizeError:(ie,ce)=>{ie&&L(!1,{code:500,message:ce===!0?za.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",wt(i,0)):za.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",wt(i,0))})}})}),jr(n,C,E,K)]})}),t.jsx(Is,{windowSize:k,responsiveWidth:I[3].width,children:t.jsx(Ts,{title:H.name,children:H.name})}),t.jsx(Ss,{windowSize:k,responsiveWidth:I[4].width,children:t.jsx($s,{windowSize:k,title:ye("0,0.[00]",n.amount),children:n.direction==="debit"?N:`-${N}`})})]})}),O&&T.length>0?fr.createPortal(t.jsx(hr,{allFiles:z,fileSource:X,file:V,title:V.fileName,attachments:T,setFileSource:B,setShowFullScreenView:R,onCrossClick:ne,setSelectedFileAttachment:J,onDownloadClick:ie=>{W(ie.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},us=r.div``,ms=r.div`
690
+ `;function Sr(e,i,d){return is(e,i,d)}async function is(e,i,d,h){const m=`${e}?query=${encodeURIComponent(JSON.stringify(d))}`,u=pe.getLocalizedStrings().downloadReport;try{const s=await Wi(m,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(s.ok){const x=h??Ui(s.headers,"Charge Card Transaction Receipt.pdf"),l=await s.arrayBuffer();_i(l,x)}else console.error(`${u.reportErrorMessage} ${s.statusText}`)}catch(s){console.error(`${u.reportErrorMessage} ${JSON.stringify(s)}`)}}async function $r(e,i,d){const h=`${e}?query=${encodeURIComponent(JSON.stringify(d))}`,m=pe.getLocalizedStrings().downloadReport;try{const u=await fetch(h,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(u.ok)return await u.json();console.error(`${m.reportErrorMessage} ${u.statusText}`)}catch(u){throw console.error(`${m.reportErrorMessage} ${JSON.stringify(u)}`),u}return[]}const os=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M23.3584 10.0417L23.2319 9.30243L21.7534 9.55562L21.88 10.2949L23.3584 10.0417ZM20.3835 6.50175L20.7954 7.1285L22.0489 6.30467L21.637 5.67791L20.3835 6.50175ZM18.3213 2.36228L17.6946 1.95036L16.8707 3.20388L17.4975 3.61579L18.3213 2.36228ZM13.7044 2.11928L14.4436 2.24587L14.6968 0.767397L13.9576 0.640799L13.7044 2.11928ZM10.041 0.640799L9.30172 0.767397L9.55492 2.24587L10.2942 2.11928L10.041 0.640799ZM6.50104 3.6158L7.1278 3.20388L6.30397 1.95036L5.67721 2.36228L6.50104 3.6158ZM2.36158 5.67792L1.94966 6.30467L3.20318 7.12851L3.61509 6.50175L2.36158 5.67792ZM2.11857 10.2949L2.24517 9.55562L0.766695 9.30242L0.640097 10.0417L2.11857 10.2949ZM0.640097 13.9583L0.766695 14.6975L2.24517 14.4443L2.11857 13.7051L0.640097 13.9583ZM3.61509 17.4982L3.20318 16.8714L1.94966 17.6953L2.36158 18.322L3.61509 17.4982ZM5.67721 21.6377L6.30397 22.0496L7.1278 20.7961L6.50105 20.3842L5.67721 21.6377ZM10.2942 21.8807L9.55492 21.7541L9.30172 23.2326L10.041 23.3592L10.2942 21.8807ZM13.9576 23.3592L14.6968 23.2326L14.4436 21.7541L13.7044 21.8807L13.9576 23.3592ZM17.4975 20.3842L16.8707 20.7961L17.6946 22.0496L18.3213 21.6377L17.4975 20.3842ZM21.637 18.322L22.0489 17.6953L20.7954 16.8714L20.3835 17.4982L21.637 18.322ZM21.88 13.7051L21.7534 14.4443L23.2319 14.6975L23.3584 13.9583L21.88 13.7051ZM23.5243 12C23.5243 11.333 23.4675 10.6786 23.3584 10.0417L21.88 10.2949C21.9748 10.8485 22.0243 11.4182 22.0243 12H23.5243ZM21.637 5.67791C20.7702 4.35908 19.6402 3.22904 18.3213 2.36228L17.4975 3.61579C18.6453 4.37014 19.6291 5.35396 20.3835 6.50175L21.637 5.67791ZM13.9576 0.640799C13.3206 0.531717 12.6663 0.474976 11.9993 0.474976V1.97498C12.5811 1.97498 13.1507 2.02446 13.7044 2.11928L13.9576 0.640799ZM11.9993 0.474976C11.3323 0.474976 10.6779 0.531717 10.041 0.640799L10.2942 2.11928C10.8478 2.02446 11.4175 1.97498 11.9993 1.97498V0.474976ZM5.67721 2.36228C4.35838 3.22904 3.22833 4.35909 2.36158 5.67792L3.61509 6.50175C4.36944 5.35396 5.35326 4.37014 6.50104 3.6158L5.67721 2.36228ZM0.640097 10.0417C0.531015 10.6786 0.474274 11.333 0.474274 12H1.97427C1.97427 11.4182 2.02375 10.8485 2.11857 10.2949L0.640097 10.0417ZM0.474274 12C0.474274 12.667 0.531015 13.3213 0.640097 13.9583L2.11857 13.7051C2.02375 13.1514 1.97427 12.5818 1.97427 12H0.474274ZM2.36158 18.322C3.22834 19.6409 4.35838 20.7709 5.67721 21.6377L6.50105 20.3842C5.35326 19.6298 4.36944 18.646 3.61509 17.4982L2.36158 18.322ZM10.041 23.3592C10.6779 23.4682 11.3323 23.525 11.9993 23.525V22.025C11.4175 22.025 10.8478 21.9755 10.2942 21.8807L10.041 23.3592ZM11.9993 23.525C12.6663 23.525 13.3206 23.4682 13.9576 23.3592L13.7044 21.8807C13.1507 21.9755 12.5811 22.025 11.9993 22.025V23.525ZM18.3213 21.6377C19.6402 20.7709 20.7702 19.6409 21.637 18.322L20.3835 17.4982C19.6291 18.646 18.6453 19.6298 17.4975 20.3842L18.3213 21.6377ZM23.3584 13.9583C23.4675 13.3213 23.5243 12.667 23.5243 12H22.0243C22.0243 12.5818 21.9748 13.1514 21.88 13.7051L23.3584 13.9583Z",fill:"currentColor"}),o.createElement("path",{d:"M12 6.12244V17.8775",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M17.8776 12H6.12245",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),vr=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 21.5894C3.6641 21.5893 3.99994 21.2535 3.99994 20.8394V8.37549L4.72748 9.10303C5.02038 9.39591 5.49514 9.39592 5.78803 9.10303C6.08091 8.81014 6.08091 8.33537 5.78803 8.04248L3.7851 6.03955C3.49221 5.74666 3.01745 5.74667 2.72455 6.03955C2.71669 6.04741 2.70953 6.05585 2.70209 6.06396C2.68584 6.07767 2.66955 6.09163 2.65424 6.10693L0.711857 8.04932C0.418964 8.34221 0.418964 8.81795 0.711857 9.11084C1.00469 9.40341 1.47957 9.40341 1.7724 9.11084L2.49994 8.3833V20.8394C2.49994 21.2536 2.83573 21.5894 3.24994 21.5894Z",fill:"currentColor"})),kr=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 5.81982C3.6641 5.81989 3.99994 6.15565 3.99994 6.56982V19.0337L4.72748 18.3062C5.02038 18.0133 5.49514 18.0133 5.78803 18.3062C6.08091 18.599 6.08091 19.0738 5.78803 19.3667L3.7851 21.3696C3.49221 21.6625 3.01745 21.6625 2.72455 21.3696C2.71669 21.3618 2.70953 21.3533 2.70209 21.3452C2.68584 21.3315 2.66955 21.3175 2.65424 21.3022L0.711857 19.3599C0.418964 19.067 0.418964 18.5912 0.711857 18.2983C1.00469 18.0058 1.47957 18.0058 1.7724 18.2983L2.49994 19.0259V6.56982C2.49994 6.15561 2.83573 5.81982 3.24994 5.81982Z",fill:"currentColor"})),{dateFormat:ns,spendManagement:{chargeCard:{cardDetails:za}},common:{strings:{hyphen:ss},tooltips:{addMissingReceipt:ds,addReceipt:cs,viewReceipt:ls}}}=pe.getLocalizedStrings(),Re={containerPaddingLeft:new D(c[3],c[4]),containerPaddingRight:new D(c[3],c[4]),containerPaddingTop:new D(c[2],c[3]),containerPaddingBottom:new D(c[2],c[3]),containerMarginLeft:new D(c[4],c[8]),webkitLineClamp:new D(2,1,1,1,1)},hs=(e,i)=>e.attachments!=null&&e.attachments.length>0?ls:e.amount.amount<=i.amount?cs:ds,Lr=(e,i,d,h)=>e.attachments!=null&&e.attachments.length>0?t.jsx(Rs,{onClick:m=>{m.stopPropagation(),h()},"data-testid":Z("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx(zs,{onClick:m=>{m.stopPropagation(),d()},"data-testid":Z("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(Es,{onClick:m=>{m.stopPropagation(),d()},"data-testid":Z("card-transaction-row-upload-receipt",e.id)}),ps=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,isAiCategorizationEnabledForCardsTransactions:h,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:u,cardId:s,uploadReceiptsFetchState:x,uploadReceiptsShowTick:l,isViewReceiptClickedImmediatelyAfterUpload:f,authParams:w,transaction:n,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:b,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:S,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:y,removeSnackbar:g,onChargeCardTransactionRowClick:A})=>{const k=fe(),[O,R]=o.useState(!1),[z,q]=o.useState([]),[K,B]=o.useState(null);o.useEffect(()=>{!d&&f&&(J(T[0]),Q())},[d,f]);const T=n.attachments?.filter(ie=>ie.contentType!=null&&dr.includes(ie.contentType))??[],[V,J]=o.useState(T[0]),[te,F]=o.useState([]),[G,W]=o.useState(void 0);o.useEffect(()=>{async function ie(ce){te.includes(ce.attachment_id)?console.warn(`Attachment with ID ${ce.attachment_id} is already getting downloaded`):(F([ce.attachment_id,...te]),await Sr(u,w,ce),F(pr(te,oe=>oe==ce.attachment_id)))}G!=null&&(ie({card_id:s,transaction_id:n.id,attachment_id:G}),W(void 0))},[G]);const ne=()=>{y(n.id,s,!1),R(!1),B(null),q([]),T.length>0&&J(T[0])},Q=()=>{R(!0);const ie=T.map(oe=>oe.id);async function ce(oe){return await $r(m,w,oe)}ce({card_id:s,transaction_id:n.id,attachment_ids:ie}).then(oe=>{q(oe),oe.length>0&&B(oe[0])})},{merchant:P,createTime:ee,transactionType:H,thirdPartyTransactionId:ae}=n,X=()=>{d?(g(),y(n.id,s,!0)):(J(T[0]),Q())},L=o.useRef(null);async function Y(ie,ce){S(n.id,s,"In-Progress"),await wr(`${e}/1.0/cards/transactions/${n.id}/attachments`,w,ie,ce).then(oe=>{oe!=null&&b(n.id,oe),S(n.id,s,"Completed"),$(n.id,s,!0),setTimeout(()=>{$(n.id,s,!1),j(!0)},2e3)}).catch(oe=>{S(n.id,s,"Error"),j(!1,oe)})}const E=()=>{L.current?.click()},de=ie=>{if(ie.target.files!=null){const ce=ie.target.files,oe=[],Ie=[];for(let se=0;se<ce.length;se++)oe.push(ce[se].name),Ie.push(ce[se]);Y?.(Ie,oe)}},I=br(),v=cr(n.transactionStatus),U=h?P.brandName??P.name:P.name,N=ye("0,0.00",n.amount),re=H.code==="transfer",De=ae!=null&&h,ze=re&&n.direction==="debit",Te=re&&n.direction==="credit";return t.jsxs(fs,{windowSize:k,isClickable:De,"data-testid":Z("card-transaction-row",n.id),onClick:ie=>{ie.stopPropagation(),De&&A(H.code,ae)},children:[t.jsx(ws,{children:t.jsxs(xs,{children:[t.jsxs(ys,{windowSize:k,responsiveWidth:I[0].width,children:[ze?t.jsx(ks,{}):Te?t.jsx(Ls,{}):t.jsx(js,{src:P.logo?.url?.toString()}),t.jsx(bs,{windowSize:k,hasMarginRight:v.code==="paid",children:U}),v.code!=="paid"?t.jsxs(ms,{children:[t.jsx(Cs,{windowSize:k}),t.jsx(gs,{color:v.color,windowSize:k,children:v.value})]}):null]}),t.jsx(vs,{windowSize:k,responsiveWidth:I[1].width,children:t.jsx(Ds,{children:ee.format(ns.visual.MMMDCommaYYYYformat)})}),t.jsx(As,{windowSize:k,responsiveWidth:I[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?ss:x?.fetchState==="In-Progress"?t.jsx(ot,{size:"Small",start:!0}):l?t.jsx(Fs,{}):t.jsxs(Pt,{enterDelay:600,display:"flex",placement:"bottom",title:hs(n,C),children:[t.jsx(us,{"data-testid":Z("card-transaction-row-upload-receipt",n.id),onClick:ie=>{ie.stopPropagation()},children:t.jsx(lr,{name:"transactionLineAttachment",fileRef:L,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:de,multiple:!0,onFileSizeError:(ie,ce)=>{ie&&j(!1,{code:500,message:ce===!0?za.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",wt(i,0)):za.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",wt(i,0))})}})}),Lr(n,C,E,X)]})}),t.jsx(Is,{windowSize:k,responsiveWidth:I[3].width,children:t.jsx(Ts,{title:H.name,children:H.name})}),t.jsx(Ss,{windowSize:k,responsiveWidth:I[4].width,children:t.jsx($s,{windowSize:k,title:ye("0,0.[00]",n.amount),children:n.direction==="debit"?N:`-${N}`})})]})}),O&&T.length>0?fr.createPortal(t.jsx(hr,{allFiles:z,fileSource:K,file:V,title:V.fileName,attachments:T,setFileSource:B,setShowFullScreenView:R,onCrossClick:ne,setSelectedFileAttachment:J,onDownloadClick:ie=>{W(ie.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},us=r.div``,ms=r.div`
691
691
  display: flex;
692
692
  flex-direction: row;
693
693
  align-items: center;
@@ -770,15 +770,15 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
770
770
  align-items: flex-start;
771
771
  flex-direction: column;
772
772
  justify-content: center;
773
- `,Lr=e=>ue`
773
+ `,jr=e=>ue`
774
774
  width: ${a.sp4};
775
775
  height: ${a.sp4};
776
776
  color: ${e.colors.hero};
777
777
  `,ks=r(kr)`
778
- ${({theme:e})=>Lr(e)}
779
- `,js=r(vr)`
780
- ${({theme:e})=>Lr(e)}
781
- `,Ls=r.img`
778
+ ${({theme:e})=>jr(e)}
779
+ `,Ls=r(vr)`
780
+ ${({theme:e})=>jr(e)}
781
+ `,js=r.img`
782
782
  display: flex;
783
783
  width: ${a.sp4};
784
784
  height: ${a.sp4};
@@ -809,7 +809,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
809
809
  padding: 1px 6px;
810
810
  border-radius: ${a.sp1};
811
811
  border: 1px solid ${e=>e.theme.colors.grey1};
812
- `,Rs=r(Oi)`
812
+ `,Rs=r(Ni)`
813
813
  height: ${a.sp4};
814
814
  width: ${a.sp4};
815
815
  cursor: pointer;
@@ -821,7 +821,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
821
821
  height: ${a.sp4};
822
822
  width: ${a.sp4};
823
823
  color: ${p.success};
824
- `,Es=r(Vi)`
824
+ `,Es=r(Bi)`
825
825
  height: ${a.sp4};
826
826
  width: ${a.sp4};
827
827
  cursor: pointer;
@@ -837,7 +837,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
837
837
  &:hover {
838
838
  color: ${e=>e.theme.colors.primary};
839
839
  }
840
- `,{dateFormat:Ps,spendManagement:{chargeCard:{cardDetails:Tt}},common:{strings:{hyphen:Ms}}}=pe.getLocalizedStrings(),Os={webkitLineClamp:new D(2,1,1,1,1)},Vs=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,isAiCategorizationEnabledForCardsTransactions:h,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:u,cardId:s,isViewReceiptClickedImmediatelyAfterUpload:x,uploadReceiptsShowTick:l,uploadReceiptsFetchState:f,authParams:w,transaction:n,receiptRequiredAboveAmount:C,onUploadReceiptComplete:b,updateChargeCardTransactionAttachments:L,updateChargeCardTransactionReceiptsShowTick:S,updateChargeCardTransactionIsViewReceiptClicked:$,updateChargeCardTransactionUploadReceiptsFetchStatus:y,removeSnackbar:g,onChargeCardTransactionRowClick:A})=>{const k=fe(),[O,R]=o.useState(0),[z,Y]=o.useState(0),[X,B]=o.useState(0),T=M=>{B(M),W(!0),K(H[M]),ee(ne[M])};function V(M){R(M.targetTouches[0].clientX)}function J(M){Y(M.targetTouches[0].clientX)}function te(M){return M<0?H.length+M:M%H.length}function F(){O-z>50&&z!==0&&X<H.length-1?(T(te(X+1)),R(0),Y(0)):O-z<-50&&z!==0&&X>0&&(T(te(X-1)),R(0),Y(0))}const[q,W]=o.useState(!1),[ne,Q]=o.useState([]),[P,ee]=o.useState(null);o.useEffect(()=>{!d&&x&&(K(H[0]),v())},[d,x]);const H=n.attachments?.filter(M=>M.contentType!=null&&dr.includes(M.contentType))??[],[ae,K]=o.useState(H[0]),[j,G]=o.useState([]),[E,de]=o.useState(void 0);o.useEffect(()=>{async function M(he){j.includes(he.attachment_id)?console.warn(`Attachment with ID ${he.attachment_id} is already getting downloaded`):(G([he.attachment_id,...j]),await Sr(u,w,he),G(pr(j,le=>le==he.attachment_id)))}E!=null&&(M({card_id:s,transaction_id:n.id,attachment_id:E}),de(void 0))},[E]);const I=()=>{$(n.id,s,!1),W(!1),ee(null),Q([]),H.length>0&&K(H[0])},v=()=>{W(!0);const M=H.map(le=>le.id);async function he(le){return await $r(m,w,le)}he({card_id:s,transaction_id:n.id,attachment_ids:M}).then(le=>{Q(le),le.length>0&&ee(le[0])})},{merchant:U,createTime:N,transactionType:re,thirdPartyTransactionId:De}=n,ze=()=>{d?(g(),$(n.id,s,!0)):(K(H[0]),v())},Te=o.useRef(null);async function ie(M,he){y(n.id,s,"In-Progress"),await wr(`${e}/1.0/cards/transactions/${n.id}/attachments`,w,M,he).then(le=>{le!=null&&L(n.id,le),y(n.id,s,"Completed"),b(!0),S(n.id,s,!0),setTimeout(()=>S(n.id,s,!1),2e3)}).catch(le=>{y(n.id,s,"Error"),b(!1,le)})}const ce=()=>{Te.current?.click()},oe=M=>{if(M.target.files!=null){const he=M.target.files,le=[],_e=[];for(let Ze=0;Ze<he.length;Ze++)le.push(he[Ze].name),_e.push(he[Ze]);ie?.(_e,le)}},Ie=cr(n.transactionStatus),se=h?U.brandName??U.name:U.name,lt=ye("0,0.00",n.amount),We=re.code==="transfer",tt=De!=null&&h,Ue=We&&n.direction==="debit",ht=We&&n.direction==="credit";return t.jsxs(Ks,{windowSize:k,"data-testid":Z("card-transaction-row-small",n.id),onClick:M=>{M.stopPropagation(),tt&&A(re.code,De)},children:[t.jsx(Xs,{children:t.jsxs(Js,{children:[t.jsxs(td,{children:[t.jsx(Gs,{children:Ue?t.jsx(Hs,{}):ht?t.jsx(Ns,{}):t.jsx(rd,{src:U.logo?.url?.toString()})}),t.jsxs(id,{children:[t.jsxs(Bs,{children:[t.jsx(Qs,{windowSize:k,children:se}),Ie.code!=="paid"?t.jsxs(Ws,{children:[t.jsx(_s,{windowSize:k}),t.jsx(Us,{color:Ie.color,windowSize:k,children:Ie.value})]}):null]}),t.jsx(ed,{children:`${Tt.paymentDate} ${N.format(Ps.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(ad,{children:[t.jsx(od,{children:n.direction==="debit"?lt:`-${lt}`}),t.jsx(qs,{title:re.name,children:re.name}),t.jsx(Ys,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Ms:f?.fetchState==="In-Progress"?t.jsx(ot,{size:"Small",start:!0}):l?t.jsx(Zs,{}):t.jsxs(Pa,{children:[t.jsx(Pa,{"data-testid":Z("card-transaction-row-small-upload-receipt",n.id),onClick:M=>{M.stopPropagation()},children:t.jsx(lr,{name:"transactionLineAttachment",fileRef:Te,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:oe,multiple:!0,onFileSizeError:(M,he)=>{M&&b(!1,{code:500,message:he===!0?Tt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",wt(i,0)):Tt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",wt(i,0))})}})}),jr(n,C,ce,ze)]})})]})]})}),q&&H.length>0?fr.createPortal(t.jsx(hr,{allFiles:ne,fileSource:P,file:ae,title:ae.fileName,attachments:H,setFileSource:ee,setShowFullScreenView:W,onCrossClick:I,setSelectedFileAttachment:K,onDownloadClick:M=>{de(M.id)},handleTouchStart:V,handleTouchMove:J,handleTouchEnd:F}),document.body):null]})},Dr=e=>ue`
840
+ `,{dateFormat:Ps,spendManagement:{chargeCard:{cardDetails:Tt}},common:{strings:{hyphen:Ms}}}=pe.getLocalizedStrings(),Os={webkitLineClamp:new D(2,1,1,1,1)},Vs=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,isAiCategorizationEnabledForCardsTransactions:h,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:u,cardId:s,isViewReceiptClickedImmediatelyAfterUpload:x,uploadReceiptsShowTick:l,uploadReceiptsFetchState:f,authParams:w,transaction:n,receiptRequiredAboveAmount:C,onUploadReceiptComplete:b,updateChargeCardTransactionAttachments:j,updateChargeCardTransactionReceiptsShowTick:S,updateChargeCardTransactionIsViewReceiptClicked:$,updateChargeCardTransactionUploadReceiptsFetchStatus:y,removeSnackbar:g,onChargeCardTransactionRowClick:A})=>{const k=fe(),[O,R]=o.useState(0),[z,q]=o.useState(0),[K,B]=o.useState(0),T=M=>{B(M),W(!0),X(H[M]),ee(ne[M])};function V(M){R(M.targetTouches[0].clientX)}function J(M){q(M.targetTouches[0].clientX)}function te(M){return M<0?H.length+M:M%H.length}function F(){O-z>50&&z!==0&&K<H.length-1?(T(te(K+1)),R(0),q(0)):O-z<-50&&z!==0&&K>0&&(T(te(K-1)),R(0),q(0))}const[G,W]=o.useState(!1),[ne,Q]=o.useState([]),[P,ee]=o.useState(null);o.useEffect(()=>{!d&&x&&(X(H[0]),v())},[d,x]);const H=n.attachments?.filter(M=>M.contentType!=null&&dr.includes(M.contentType))??[],[ae,X]=o.useState(H[0]),[L,Y]=o.useState([]),[E,de]=o.useState(void 0);o.useEffect(()=>{async function M(he){L.includes(he.attachment_id)?console.warn(`Attachment with ID ${he.attachment_id} is already getting downloaded`):(Y([he.attachment_id,...L]),await Sr(u,w,he),Y(pr(L,le=>le==he.attachment_id)))}E!=null&&(M({card_id:s,transaction_id:n.id,attachment_id:E}),de(void 0))},[E]);const I=()=>{$(n.id,s,!1),W(!1),ee(null),Q([]),H.length>0&&X(H[0])},v=()=>{W(!0);const M=H.map(le=>le.id);async function he(le){return await $r(m,w,le)}he({card_id:s,transaction_id:n.id,attachment_ids:M}).then(le=>{Q(le),le.length>0&&ee(le[0])})},{merchant:U,createTime:N,transactionType:re,thirdPartyTransactionId:De}=n,ze=()=>{d?(g(),$(n.id,s,!0)):(X(H[0]),v())},Te=o.useRef(null);async function ie(M,he){y(n.id,s,"In-Progress"),await wr(`${e}/1.0/cards/transactions/${n.id}/attachments`,w,M,he).then(le=>{le!=null&&j(n.id,le),y(n.id,s,"Completed"),b(!0),S(n.id,s,!0),setTimeout(()=>S(n.id,s,!1),2e3)}).catch(le=>{y(n.id,s,"Error"),b(!1,le)})}const ce=()=>{Te.current?.click()},oe=M=>{if(M.target.files!=null){const he=M.target.files,le=[],_e=[];for(let Ze=0;Ze<he.length;Ze++)le.push(he[Ze].name),_e.push(he[Ze]);ie?.(_e,le)}},Ie=cr(n.transactionStatus),se=h?U.brandName??U.name:U.name,lt=ye("0,0.00",n.amount),We=re.code==="transfer",tt=De!=null&&h,Ue=We&&n.direction==="debit",ht=We&&n.direction==="credit";return t.jsxs(Xs,{windowSize:k,"data-testid":Z("card-transaction-row-small",n.id),onClick:M=>{M.stopPropagation(),tt&&A(re.code,De)},children:[t.jsx(Ks,{children:t.jsxs(Js,{children:[t.jsxs(td,{children:[t.jsx(Ys,{children:Ue?t.jsx(Hs,{}):ht?t.jsx(Ns,{}):t.jsx(rd,{src:U.logo?.url?.toString()})}),t.jsxs(id,{children:[t.jsxs(Bs,{children:[t.jsx(Qs,{windowSize:k,children:se}),Ie.code!=="paid"?t.jsxs(Ws,{children:[t.jsx(_s,{windowSize:k}),t.jsx(Us,{color:Ie.color,windowSize:k,children:Ie.value})]}):null]}),t.jsx(ed,{children:`${Tt.paymentDate} ${N.format(Ps.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(ad,{children:[t.jsx(od,{children:n.direction==="debit"?lt:`-${lt}`}),t.jsx(Gs,{title:re.name,children:re.name}),t.jsx(qs,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Ms:f?.fetchState==="In-Progress"?t.jsx(ot,{size:"Small",start:!0}):l?t.jsx(Zs,{}):t.jsxs(Pa,{children:[t.jsx(Pa,{"data-testid":Z("card-transaction-row-small-upload-receipt",n.id),onClick:M=>{M.stopPropagation()},children:t.jsx(lr,{name:"transactionLineAttachment",fileRef:Te,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:oe,multiple:!0,onFileSizeError:(M,he)=>{M&&b(!1,{code:500,message:he===!0?Tt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",wt(i,0)):Tt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",wt(i,0))})}})}),Lr(n,C,ce,ze)]})})]})]})}),G&&H.length>0?fr.createPortal(t.jsx(hr,{allFiles:ne,fileSource:P,file:ae,title:ae.fileName,attachments:H,setFileSource:ee,setShowFullScreenView:W,onCrossClick:I,setSelectedFileAttachment:X,onDownloadClick:M=>{de(M.id)},handleTouchStart:V,handleTouchMove:J,handleTouchEnd:F}),document.body):null]})},Dr=e=>ue`
841
841
  width: ${a.sp4};
842
842
  height: ${a.sp4};
843
843
  color: ${e.colors.hero};
@@ -867,9 +867,9 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
867
867
  height: ${a.sp4};
868
868
  width: ${a.sp4};
869
869
  color: ${p.success};
870
- `,Gs=r.div``,Ys=r.div`
870
+ `,Ys=r.div``,qs=r.div`
871
871
  margin-top: ${a.sp2};
872
- `,qs=r(et)`
872
+ `,Gs=r(et)`
873
873
  color: ${e=>e.theme.colors.hero};
874
874
  max-width: 100%;
875
875
  overflow: hidden;
@@ -878,7 +878,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
878
878
  padding: 1px 6px;
879
879
  border-radius: ${a.sp1};
880
880
  border: 1px solid ${e=>e.theme.colors.grey1};
881
- `,Ks=r.div`
881
+ `,Xs=r.div`
882
882
  display: flex;
883
883
  background-color: ${e=>e.theme.colors.grey5};
884
884
  border: ${e=>` 1px solid ${e.theme.colors.grey3}`};
@@ -892,7 +892,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
892
892
  }
893
893
  margin-right: ${a.sp3};
894
894
  margin-left: ${a.sp3};
895
- `,Xs=r.div`
895
+ `,Ks=r.div`
896
896
  display: block;
897
897
  width: 100%;
898
898
  `,Js=r.div`
@@ -931,7 +931,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
931
931
  margin-bottom: 6px;
932
932
  `,od=r(be)`
933
933
  color: inherit;
934
- `,nd=e=>o.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_6421_22796)"},o.createElement("mask",{id:"mask0_6421_22796",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:90,height:90},o.createElement("rect",{width:90,height:90,fill:"#D9D9D9"})),o.createElement("g",{mask:"url(#mask0_6421_22796)"},o.createElement("rect",{x:.471703,y:15.6197,width:85.2829,height:54.9872,rx:3.30192,stroke:"#97C3B9",strokeWidth:.943405}),o.createElement("rect",{opacity:.2,x:3.77344,y:18.9216,width:86.2263,height:55.9306,rx:3.77362,fill:"#97C3B9"}),o.createElement("path",{d:"M13.8672 56.8781L72.3583 56.878",stroke:"#EEBA7D",strokeWidth:.943405,strokeLinecap:"round"}),o.createElement("path",{d:"M0.945312 30.8197C34.0042 22.3291 52.539 22.3291 85.5978 30.8197",stroke:"#97C3B9",strokeWidth:.943405,strokeLinecap:"round"}),o.createElement("path",{d:"M15.688 42.7079L14.037 40.3117H15.037L16.1502 41.9154C16.1565 41.928 16.1911 41.9846 16.254 42.0853H16.2729C16.2854 42.0664 16.298 42.0444 16.3106 42.0192C16.3232 41.9878 16.3452 41.95 16.3766 41.906L17.4804 40.3117H18.4238L16.754 42.7456L18.4427 45.1796H17.4427L16.3012 43.5287C16.2886 43.5098 16.2509 43.4469 16.188 43.34H16.1691C16.1502 43.3903 16.1188 43.4501 16.0748 43.5192L14.9238 45.1796H13.9898L15.688 42.7079ZM20.3773 42.7079L18.7264 40.3117H19.7264L20.8396 41.9154C20.8459 41.928 20.8805 41.9846 20.9434 42.0853H20.9623C20.9748 42.0664 20.9874 42.0444 21 42.0192C21.0126 41.9878 21.0346 41.95 21.066 41.906L22.1698 40.3117H23.1132L21.4434 42.7456L23.1321 45.1796H22.1321L20.9906 43.5287C20.978 43.5098 20.9402 43.4469 20.8774 43.34H20.8585C20.8396 43.3903 20.8082 43.4501 20.7641 43.5192L19.6132 45.1796H18.6792L20.3773 42.7079ZM25.0667 42.7079L23.4158 40.3117H24.4158L25.529 41.9154C25.5353 41.928 25.5699 41.9846 25.6328 42.0853H25.6516C25.6642 42.0664 25.6768 42.0444 25.6894 42.0192C25.702 41.9878 25.724 41.95 25.7554 41.906L26.8592 40.3117H27.8026L26.1328 42.7456L27.8215 45.1796H26.8215L25.6799 43.5287C25.6674 43.5098 25.6296 43.4469 25.5667 43.34H25.5479C25.529 43.3903 25.4976 43.4501 25.4535 43.5192L24.3026 45.1796H23.3686L25.0667 42.7079ZM30.8057 42.2551H33.1076V42.9909H30.8057V42.2551ZM37.799 42.7079L36.1481 40.3117H37.1481L38.2613 41.9154C38.2676 41.928 38.3022 41.9846 38.3651 42.0853H38.3839C38.3965 42.0664 38.4091 42.0444 38.4217 42.0192C38.4342 41.9878 38.4563 41.95 38.4877 41.906L39.5915 40.3117H40.5349L38.8651 42.7456L40.5538 45.1796H39.5537L38.4122 43.5287C38.3996 43.5098 38.3619 43.4469 38.299 43.34H38.2802C38.2613 43.3903 38.2298 43.4501 38.1858 43.5192L37.0349 45.1796H36.1009L37.799 42.7079ZM42.4884 42.7079L40.8374 40.3117H41.8375L42.9507 41.9154C42.957 41.928 42.9916 41.9846 43.0544 42.0853H43.0733C43.0859 42.0664 43.0985 42.0444 43.111 42.0192C43.1236 41.9878 43.1456 41.95 43.1771 41.906L44.2809 40.3117H45.2243L43.5544 42.7456L45.2431 45.1796H44.2431L43.1016 43.5287C43.089 43.5098 43.0513 43.4469 42.9884 43.34H42.9695C42.9507 43.3903 42.9192 43.4501 42.8752 43.5192L41.7242 45.1796H40.7903L42.4884 42.7079ZM48.2274 42.2551H50.5293V42.9909H48.2274V42.2551ZM55.2207 42.7079L53.5697 40.3117H54.5697L55.683 41.9154C55.6892 41.928 55.7238 41.9846 55.7867 42.0853H55.8056C55.8182 42.0664 55.8308 42.0444 55.8433 42.0192C55.8559 41.9878 55.8779 41.95 55.9094 41.906L57.0132 40.3117H57.9566L56.2867 42.7456L57.9754 45.1796H56.9754L55.8339 43.5287C55.8213 43.5098 55.7836 43.4469 55.7207 43.34H55.7018C55.683 43.3903 55.6515 43.4501 55.6075 43.5192L54.4565 45.1796H53.5226L55.2207 42.7079ZM59.9101 42.7079L58.2591 40.3117H59.2591L60.3723 41.9154C60.3786 41.928 60.4132 41.9846 60.4761 42.0853H60.495C60.5076 42.0664 60.5201 42.0444 60.5327 42.0192C60.5453 41.9878 60.5673 41.95 60.5988 41.906L61.7025 40.3117H62.6459L60.9761 42.7456L62.6648 45.1796H61.6648L60.5233 43.5287C60.5107 43.5098 60.473 43.4469 60.4101 43.34H60.3912C60.3723 43.3903 60.3409 43.4501 60.2969 43.5192L59.1459 45.1796H58.2119L59.9101 42.7079ZM64.5995 42.7079L62.9485 40.3117H63.9485L65.0617 41.9154C65.068 41.928 65.1026 41.9846 65.1655 42.0853H65.1844C65.1969 42.0664 65.2095 42.0444 65.2221 42.0192C65.2347 41.9878 65.2567 41.95 65.2881 41.906L66.3919 40.3117H67.3353L65.6655 42.7456L67.3542 45.1796H66.3542L65.2127 43.5287C65.2001 43.5098 65.1624 43.4469 65.0995 43.34H65.0806C65.0617 43.3903 65.0303 43.4501 64.9863 43.5192L63.8353 45.1796H62.9013L64.5995 42.7079ZM69.2888 42.7079L67.6379 40.3117H68.6379L69.7511 41.9154C69.7574 41.928 69.792 41.9846 69.8549 42.0853H69.8738C69.8863 42.0664 69.8989 42.0444 69.9115 42.0192C69.9241 41.9878 69.9461 41.95 69.9775 41.906L71.0813 40.3117H72.0247L70.3549 42.7456L72.0436 45.1796H71.0436L69.9021 43.5287C69.8895 43.5098 69.8517 43.4469 69.7888 43.34H69.77C69.7511 43.3903 69.7197 43.4501 69.6756 43.5192L68.5247 45.1796H67.5907L69.2888 42.7079Z",fill:"#EEBA7D"}))),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_6421_22796"},o.createElement("rect",{width:90,height:90,fill:"white"})))),sd=e=>o.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_6421_22782)"},o.createElement("path",{opacity:.2,d:"M46.4732 89.7815C70.4353 89.7815 89.8605 70.3564 89.8605 46.3942C89.8605 22.4321 70.4353 3.00696 46.4732 3.00696C22.5111 3.00696 3.08594 22.4321 3.08594 46.3942C3.08594 70.3564 22.5111 89.7815 46.4732 89.7815Z",fill:"#97C3B9"}),o.createElement("path",{d:"M44.0435 87.3468C68.0057 87.3468 87.4308 67.9217 87.4308 43.9595C87.4308 19.9974 68.0057 0.572266 44.0435 0.572266C20.0814 0.572266 0.65625 19.9974 0.65625 43.9595C0.65625 67.9217 20.0814 87.3468 44.0435 87.3468Z",stroke:"#97C3B9",strokeWidth:1.04046,strokeMiterlimit:10}),o.createElement("path",{d:"M5.11719 45.0781C5.11719 65.6012 21.7594 82.3006 42.2149 82.3006",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M9.14062 45.0781C9.14062 57.3347 15.7996 68.0619 25.6788 73.8104",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M24.0625 56.6948C24.0625 49.1878 33.0053 43.1011 44.0446 43.1011C55.0839 43.1011 64.0267 49.1878 64.0267 56.6948C64.0267 71.3861 24.0677 71.5422 24.0677 56.6948H24.0625Z",stroke:"#97C3B9",strokeWidth:.988439,strokeMiterlimit:10}),o.createElement("path",{d:"M44.0423 37.0092C48.6997 37.0092 52.4753 33.2336 52.4753 28.5763C52.4753 23.9189 48.6997 20.1433 44.0423 20.1433C39.3849 20.1433 35.6094 23.9189 35.6094 28.5763C35.6094 33.2336 39.3849 37.0092 44.0423 37.0092Z",stroke:"#97C3B9",strokeWidth:.988439,strokeMiterlimit:10}),o.createElement("path",{d:"M81.918 44.0324C81.918 23.5093 65.2758 6.80988 44.8203 6.80988",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M77.8975 44.0324C77.8975 31.7758 71.2386 21.0486 61.3594 15.3",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"})),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_6421_22782"},o.createElement("rect",{width:90,height:90,fill:"white"})))),{spendManagement:{chargeCard:{cardDetails:Qe}},common:dd}=pe.getLocalizedStrings();function cd({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,uploadReceiptsFetchStateByTransactionId:h,uploadReceiptsShowTickByTransactionId:m,isViewReceiptClickedImmediatelyAfterUploadTransactionId:u,cardId:s,receiptRequiredAboveAmount:x,isAiCategorizationEnabledForCardsTransactions:l,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:w,cardsEndPoint:n,authParams:C,hideSorting:b,isOwnCard:L,uiState:S,fetchState:$,cardHolderUser:y,cardStatusCode:g="active",cardCodeType:A="business_virtual_credit_card",onReloadTransactions:k,onFetchChargeCardTransactionList:O,onColumnSortConfigChanged:R,removeSnackbar:z,onChargeCardTransactionRowClick:Y,onUploadReceiptComplete:X,onUpdateScrollYOffset:B,updateChargeCardTransactionAttachments:T,updateChargeCardTransactionUploadReceiptsFetchStatus:V,updateChargeCardTransactionReceiptsShowTick:J,updateChargeCardTransactionIsViewReceiptClicked:te}){const F=fe(),q=o.useRef(null),[W,ne]=o.useState(!1);o.useEffect(()=>{q.current?.resetAfterIndex(0)},[F,q]),o.useEffect(()=>{$==="Completed"&&ne(!1)},[$]);const Q=()=>F!=="small"?74:128,P=(K,j)=>{O(K,j)},ee=()=>{ne(!0),P(S.pageToken,S.pageTokenType)},H=K=>K<e.length,ae=()=>{S.pageToken!=null&&$==="Completed"&&ee()};return t.jsxs(fd,{isOwnCard:L,windowSize:F,isEmptyTransaction:e.length===0,children:[t.jsx(wd,{windowSize:F,children:$==="Error"?t.jsxs(bd,{children:[t.jsx(Sd,{onClick:k,"data-testid":Z("card-transaction-list-reload"),children:t.jsx(er,{})}),t.jsx($d,{children:dd.reloadPage.label})]}):$==="Not-Started"||$==="In-Progress"&&e.length===0?t.jsx(kd,{children:t.jsx(ot,{size:"ExtraLarge",start:!0})}):$==="Completed"||$==="In-Progress"&&e.length>0?g==="request_on_hold"?t.jsx(hd,{cardType:A,cardHolderUser:y}):g==="inactive"?t.jsx(pd,{cardHolderUser:y}):e.length===0?t.jsx(ld,{}):t.jsx(yd,{windowSize:F,children:t.jsx(mi,{children:({height:K,width:j})=>t.jsx(gi,{isItemLoaded:H,itemCount:e.length+1,loadMoreItems:ae,children:({onItemsRendered:G})=>t.jsx(Ci,{ref:q,height:K,itemCount:e.length,onItemsRendered:G,itemSize:Q,itemKey:E=>e[E].id,width:j,style:{willChange:"auto"},innerElementType:E=>Cd(E,b,S,$,R),onScroll:({scrollOffset:E})=>{B?.(E)},initialScrollOffset:S.scrollYOffset,children:E=>t.jsx(ud,{...E,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:l,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:w,uploadReceiptsFetchStateByTransactionId:h,uploadReceiptsShowTickByTransactionId:m,isViewReceiptClickedImmediatelyAfterUploadTransactionId:u,cardId:s,authParams:C,transactions:e,receiptRequiredAboveAmount:x,updateChargeCardTransactionAttachments:T,onUploadReceiptComplete:X,updateChargeCardTransactionUploadReceiptsFetchStatus:V,updateChargeCardTransactionReceiptsShowTick:J,updateChargeCardTransactionIsViewReceiptClicked:te,onChargeCardTransactionRowClick:Y,removeSnackbar:z})})})})}):null}),W===!0?t.jsx(jd,{children:t.jsx(ot,{size:"Small",start:!0})}):null]})}const ld=()=>{const e=fe();return t.jsxs(Nt,{children:[t.jsx(_t,{children:t.jsx(Ar,{})}),t.jsxs(Bt,{children:[t.jsx(Wt,{children:Qe.transactionTable.emptyTransactions.title}),t.jsx(Ut,{windowSize:e,children:Qe.transactionTable.emptyTransactions.subTitle})]})]})},hd=({cardType:e,cardHolderUser:i})=>{const d=i!=null?i.firstName+" "+i.lastName:"",h=fe();return t.jsxs(Nt,{children:[t.jsx(_t,{children:t.jsx(Dd,{})}),t.jsxs(Bt,{children:[t.jsx(Wt,{children:Qe.transactionTable.pendingProfileCompletion.title}),t.jsx(Ut,{windowSize:h,children:Qe.transactionTable.pendingProfileCompletion.subTitle[e].replace("__user__",d)})]})]})},pd=({cardHolderUser:e})=>{const i=fe();return t.jsxs(Nt,{children:[t.jsx(_t,{children:t.jsx(Ar,{})}),t.jsxs(Bt,{children:[t.jsx(Wt,{children:Qe.transactionTable.pendingActivation.title}),t.jsx(Ut,{windowSize:i,children:Qe.transactionTable.pendingActivation.subTitle.replace("__user__",e?.firstName??"")})]})]})},ud=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,style:h,transactions:m,isAiCategorizationEnabledForCardsTransactions:u,uploadReceiptsFetchStateByTransactionId:s,uploadReceiptsShowTickByTransactionId:x,isViewReceiptClickedImmediatelyAfterUploadTransactionId:l,cardId:f,cardsEndPoint:w,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,receiptRequiredAboveAmount:b,authParams:L,updateChargeCardTransactionAttachments:S,onUploadReceiptComplete:$,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:g,updateChargeCardTransactionIsViewReceiptClicked:A,onChargeCardTransactionRowClick:k,removeSnackbar:O})=>t.jsx(vd,{style:{...h,width:"100%"},className:"spend-management-list-item",children:t.jsx(gd,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,cardId:f,isAiCategorizationEnabledForCardsTransactions:u,cardsEndPoint:w,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,authParams:L,receiptRequiredAboveAmount:b,transaction:m[e],uploadReceiptsFetchState:s?.[m[e].id],uploadReceiptsShowTick:x?.[m[e].id],isViewReceiptClickedImmediatelyAfterUpload:l?.[m[e].id],updateChargeCardTransactionAttachments:S,onUploadReceiptComplete:$,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:g,updateChargeCardTransactionIsViewReceiptClicked:A,onChargeCardTransactionRowClick:k,removeSnackbar:O},m[e].id)}),md=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,isAiCategorizationEnabledForCardsTransactions:h,uploadReceiptsFetchState:m,uploadReceiptsShowTick:u,isViewReceiptClickedImmediatelyAfterUpload:s,cardsEndPoint:x,transactionAttachmentsEndpointToFetch:l,transactionAttachmentEndpointToDownload:f,cardId:w,receiptRequiredAboveAmount:n,authParams:C,updateChargeCardTransactionAttachments:b,onUploadReceiptComplete:L,updateChargeCardTransactionUploadReceiptsFetchStatus:S,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:y,onChargeCardTransactionRowClick:g,removeSnackbar:A})=>{const k=fe()==="small"?Vs:ps;return t.jsx(k,{isSnackbarOpen:d,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:h,transactionAttachmentsEndpointToFetch:l,transactionAttachmentEndpointToDownload:f,uploadReceiptsFetchState:m,uploadReceiptsShowTick:u,isViewReceiptClickedImmediatelyAfterUpload:s,transaction:e,cardId:w,receiptRequiredAboveAmount:n,cardsEndPoint:x,authParams:C,updateChargeCardTransactionAttachments:b,onUploadReceiptComplete:L,updateChargeCardTransactionUploadReceiptsFetchStatus:S,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:y,onChargeCardTransactionRowClick:g,removeSnackbar:A})},gd=o.memo(md),Cd=(e,i,d,h,m)=>t.jsx(Ir,{...e,onColumnSortConfigChanged:m,hideSorting:i,uiState:{sortKey:d.sortKey,sortOrder:d.sortOrder},fetchState:h}),Ir=o.forwardRef((e,i)=>{const{children:d,style:h,uiState:m,onColumnSortConfigChanged:u,hideSorting:s,...x}=e;return t.jsxs(Ld,{ref:i,style:{...h,width:"auto"},...x,children:[t.jsx(qn,{onColumnSortConfigChanged:u,sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},hideSorting:s}),t.jsx(xd,{children:d})]})});Ir.displayName="Charge Card Transaction list View inner element type";const fd=r.div`
934
+ `,nd=e=>o.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_6421_22796)"},o.createElement("mask",{id:"mask0_6421_22796",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:90,height:90},o.createElement("rect",{width:90,height:90,fill:"#D9D9D9"})),o.createElement("g",{mask:"url(#mask0_6421_22796)"},o.createElement("rect",{x:.471703,y:15.6197,width:85.2829,height:54.9872,rx:3.30192,stroke:"#97C3B9",strokeWidth:.943405}),o.createElement("rect",{opacity:.2,x:3.77344,y:18.9216,width:86.2263,height:55.9306,rx:3.77362,fill:"#97C3B9"}),o.createElement("path",{d:"M13.8672 56.8781L72.3583 56.878",stroke:"#EEBA7D",strokeWidth:.943405,strokeLinecap:"round"}),o.createElement("path",{d:"M0.945312 30.8197C34.0042 22.3291 52.539 22.3291 85.5978 30.8197",stroke:"#97C3B9",strokeWidth:.943405,strokeLinecap:"round"}),o.createElement("path",{d:"M15.688 42.7079L14.037 40.3117H15.037L16.1502 41.9154C16.1565 41.928 16.1911 41.9846 16.254 42.0853H16.2729C16.2854 42.0664 16.298 42.0444 16.3106 42.0192C16.3232 41.9878 16.3452 41.95 16.3766 41.906L17.4804 40.3117H18.4238L16.754 42.7456L18.4427 45.1796H17.4427L16.3012 43.5287C16.2886 43.5098 16.2509 43.4469 16.188 43.34H16.1691C16.1502 43.3903 16.1188 43.4501 16.0748 43.5192L14.9238 45.1796H13.9898L15.688 42.7079ZM20.3773 42.7079L18.7264 40.3117H19.7264L20.8396 41.9154C20.8459 41.928 20.8805 41.9846 20.9434 42.0853H20.9623C20.9748 42.0664 20.9874 42.0444 21 42.0192C21.0126 41.9878 21.0346 41.95 21.066 41.906L22.1698 40.3117H23.1132L21.4434 42.7456L23.1321 45.1796H22.1321L20.9906 43.5287C20.978 43.5098 20.9402 43.4469 20.8774 43.34H20.8585C20.8396 43.3903 20.8082 43.4501 20.7641 43.5192L19.6132 45.1796H18.6792L20.3773 42.7079ZM25.0667 42.7079L23.4158 40.3117H24.4158L25.529 41.9154C25.5353 41.928 25.5699 41.9846 25.6328 42.0853H25.6516C25.6642 42.0664 25.6768 42.0444 25.6894 42.0192C25.702 41.9878 25.724 41.95 25.7554 41.906L26.8592 40.3117H27.8026L26.1328 42.7456L27.8215 45.1796H26.8215L25.6799 43.5287C25.6674 43.5098 25.6296 43.4469 25.5667 43.34H25.5479C25.529 43.3903 25.4976 43.4501 25.4535 43.5192L24.3026 45.1796H23.3686L25.0667 42.7079ZM30.8057 42.2551H33.1076V42.9909H30.8057V42.2551ZM37.799 42.7079L36.1481 40.3117H37.1481L38.2613 41.9154C38.2676 41.928 38.3022 41.9846 38.3651 42.0853H38.3839C38.3965 42.0664 38.4091 42.0444 38.4217 42.0192C38.4342 41.9878 38.4563 41.95 38.4877 41.906L39.5915 40.3117H40.5349L38.8651 42.7456L40.5538 45.1796H39.5537L38.4122 43.5287C38.3996 43.5098 38.3619 43.4469 38.299 43.34H38.2802C38.2613 43.3903 38.2298 43.4501 38.1858 43.5192L37.0349 45.1796H36.1009L37.799 42.7079ZM42.4884 42.7079L40.8374 40.3117H41.8375L42.9507 41.9154C42.957 41.928 42.9916 41.9846 43.0544 42.0853H43.0733C43.0859 42.0664 43.0985 42.0444 43.111 42.0192C43.1236 41.9878 43.1456 41.95 43.1771 41.906L44.2809 40.3117H45.2243L43.5544 42.7456L45.2431 45.1796H44.2431L43.1016 43.5287C43.089 43.5098 43.0513 43.4469 42.9884 43.34H42.9695C42.9507 43.3903 42.9192 43.4501 42.8752 43.5192L41.7242 45.1796H40.7903L42.4884 42.7079ZM48.2274 42.2551H50.5293V42.9909H48.2274V42.2551ZM55.2207 42.7079L53.5697 40.3117H54.5697L55.683 41.9154C55.6892 41.928 55.7238 41.9846 55.7867 42.0853H55.8056C55.8182 42.0664 55.8308 42.0444 55.8433 42.0192C55.8559 41.9878 55.8779 41.95 55.9094 41.906L57.0132 40.3117H57.9566L56.2867 42.7456L57.9754 45.1796H56.9754L55.8339 43.5287C55.8213 43.5098 55.7836 43.4469 55.7207 43.34H55.7018C55.683 43.3903 55.6515 43.4501 55.6075 43.5192L54.4565 45.1796H53.5226L55.2207 42.7079ZM59.9101 42.7079L58.2591 40.3117H59.2591L60.3723 41.9154C60.3786 41.928 60.4132 41.9846 60.4761 42.0853H60.495C60.5076 42.0664 60.5201 42.0444 60.5327 42.0192C60.5453 41.9878 60.5673 41.95 60.5988 41.906L61.7025 40.3117H62.6459L60.9761 42.7456L62.6648 45.1796H61.6648L60.5233 43.5287C60.5107 43.5098 60.473 43.4469 60.4101 43.34H60.3912C60.3723 43.3903 60.3409 43.4501 60.2969 43.5192L59.1459 45.1796H58.2119L59.9101 42.7079ZM64.5995 42.7079L62.9485 40.3117H63.9485L65.0617 41.9154C65.068 41.928 65.1026 41.9846 65.1655 42.0853H65.1844C65.1969 42.0664 65.2095 42.0444 65.2221 42.0192C65.2347 41.9878 65.2567 41.95 65.2881 41.906L66.3919 40.3117H67.3353L65.6655 42.7456L67.3542 45.1796H66.3542L65.2127 43.5287C65.2001 43.5098 65.1624 43.4469 65.0995 43.34H65.0806C65.0617 43.3903 65.0303 43.4501 64.9863 43.5192L63.8353 45.1796H62.9013L64.5995 42.7079ZM69.2888 42.7079L67.6379 40.3117H68.6379L69.7511 41.9154C69.7574 41.928 69.792 41.9846 69.8549 42.0853H69.8738C69.8863 42.0664 69.8989 42.0444 69.9115 42.0192C69.9241 41.9878 69.9461 41.95 69.9775 41.906L71.0813 40.3117H72.0247L70.3549 42.7456L72.0436 45.1796H71.0436L69.9021 43.5287C69.8895 43.5098 69.8517 43.4469 69.7888 43.34H69.77C69.7511 43.3903 69.7197 43.4501 69.6756 43.5192L68.5247 45.1796H67.5907L69.2888 42.7079Z",fill:"#EEBA7D"}))),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_6421_22796"},o.createElement("rect",{width:90,height:90,fill:"white"})))),sd=e=>o.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("g",{clipPath:"url(#clip0_6421_22782)"},o.createElement("path",{opacity:.2,d:"M46.4732 89.7815C70.4353 89.7815 89.8605 70.3564 89.8605 46.3942C89.8605 22.4321 70.4353 3.00696 46.4732 3.00696C22.5111 3.00696 3.08594 22.4321 3.08594 46.3942C3.08594 70.3564 22.5111 89.7815 46.4732 89.7815Z",fill:"#97C3B9"}),o.createElement("path",{d:"M44.0435 87.3468C68.0057 87.3468 87.4308 67.9217 87.4308 43.9595C87.4308 19.9974 68.0057 0.572266 44.0435 0.572266C20.0814 0.572266 0.65625 19.9974 0.65625 43.9595C0.65625 67.9217 20.0814 87.3468 44.0435 87.3468Z",stroke:"#97C3B9",strokeWidth:1.04046,strokeMiterlimit:10}),o.createElement("path",{d:"M5.11719 45.0781C5.11719 65.6012 21.7594 82.3006 42.2149 82.3006",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M9.14062 45.0781C9.14062 57.3347 15.7996 68.0619 25.6788 73.8104",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M24.0625 56.6948C24.0625 49.1878 33.0053 43.1011 44.0446 43.1011C55.0839 43.1011 64.0267 49.1878 64.0267 56.6948C64.0267 71.3861 24.0677 71.5422 24.0677 56.6948H24.0625Z",stroke:"#97C3B9",strokeWidth:.988439,strokeMiterlimit:10}),o.createElement("path",{d:"M44.0423 37.0092C48.6997 37.0092 52.4753 33.2336 52.4753 28.5763C52.4753 23.9189 48.6997 20.1433 44.0423 20.1433C39.3849 20.1433 35.6094 23.9189 35.6094 28.5763C35.6094 33.2336 39.3849 37.0092 44.0423 37.0092Z",stroke:"#97C3B9",strokeWidth:.988439,strokeMiterlimit:10}),o.createElement("path",{d:"M81.918 44.0324C81.918 23.5093 65.2758 6.80988 44.8203 6.80988",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"}),o.createElement("path",{d:"M77.8975 44.0324C77.8975 31.7758 71.2386 21.0486 61.3594 15.3",stroke:"#EEBA7D",strokeWidth:1.04046,strokeMiterlimit:10,strokeLinecap:"round"})),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_6421_22782"},o.createElement("rect",{width:90,height:90,fill:"white"})))),{spendManagement:{chargeCard:{cardDetails:Qe}},common:dd}=pe.getLocalizedStrings();function cd({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,uploadReceiptsFetchStateByTransactionId:h,uploadReceiptsShowTickByTransactionId:m,isViewReceiptClickedImmediatelyAfterUploadTransactionId:u,cardId:s,receiptRequiredAboveAmount:x,isAiCategorizationEnabledForCardsTransactions:l,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:w,cardsEndPoint:n,authParams:C,hideSorting:b,isOwnCard:j,uiState:S,fetchState:$,cardHolderUser:y,cardStatusCode:g="active",cardCodeType:A="business_virtual_credit_card",onReloadTransactions:k,onFetchChargeCardTransactionList:O,onColumnSortConfigChanged:R,removeSnackbar:z,onChargeCardTransactionRowClick:q,onUploadReceiptComplete:K,onUpdateScrollYOffset:B,updateChargeCardTransactionAttachments:T,updateChargeCardTransactionUploadReceiptsFetchStatus:V,updateChargeCardTransactionReceiptsShowTick:J,updateChargeCardTransactionIsViewReceiptClicked:te}){const F=fe(),G=o.useRef(null),[W,ne]=o.useState(!1);o.useEffect(()=>{G.current?.resetAfterIndex(0)},[F,G]),o.useEffect(()=>{$==="Completed"&&ne(!1)},[$]);const Q=()=>F!=="small"?74:128,P=(X,L)=>{O(X,L)},ee=()=>{ne(!0),P(S.pageToken,S.pageTokenType)},H=X=>X<e.length,ae=()=>{S.pageToken!=null&&$==="Completed"&&ee()};return t.jsxs(fd,{isOwnCard:j,windowSize:F,isEmptyTransaction:e.length===0,children:[t.jsx(wd,{windowSize:F,children:$==="Error"?t.jsxs(bd,{children:[t.jsx(Sd,{onClick:k,"data-testid":Z("card-transaction-list-reload"),children:t.jsx(er,{})}),t.jsx($d,{children:dd.reloadPage.label})]}):$==="Not-Started"||$==="In-Progress"&&e.length===0?t.jsx(kd,{children:t.jsx(ot,{size:"ExtraLarge",start:!0})}):$==="Completed"||$==="In-Progress"&&e.length>0?g==="request_on_hold"?t.jsx(hd,{cardType:A,cardHolderUser:y}):g==="inactive"?t.jsx(pd,{cardHolderUser:y}):e.length===0?t.jsx(ld,{}):t.jsx(yd,{windowSize:F,children:t.jsx(gi,{children:({height:X,width:L})=>t.jsx(Ci,{isItemLoaded:H,itemCount:e.length+1,loadMoreItems:ae,children:({onItemsRendered:Y})=>t.jsx(fi,{ref:G,height:X,itemCount:e.length,onItemsRendered:Y,itemSize:Q,itemKey:E=>e[E].id,width:L,style:{willChange:"auto"},innerElementType:E=>Cd(E,b,S,$,R),onScroll:({scrollOffset:E})=>{B?.(E)},initialScrollOffset:S.scrollYOffset,children:E=>t.jsx(ud,{...E,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:l,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:w,uploadReceiptsFetchStateByTransactionId:h,uploadReceiptsShowTickByTransactionId:m,isViewReceiptClickedImmediatelyAfterUploadTransactionId:u,cardId:s,authParams:C,transactions:e,receiptRequiredAboveAmount:x,updateChargeCardTransactionAttachments:T,onUploadReceiptComplete:K,updateChargeCardTransactionUploadReceiptsFetchStatus:V,updateChargeCardTransactionReceiptsShowTick:J,updateChargeCardTransactionIsViewReceiptClicked:te,onChargeCardTransactionRowClick:q,removeSnackbar:z})})})})}):null}),W===!0?t.jsx(Ld,{children:t.jsx(ot,{size:"Small",start:!0})}):null]})}const ld=()=>{const e=fe();return t.jsxs(Nt,{children:[t.jsx(_t,{children:t.jsx(Ar,{})}),t.jsxs(Bt,{children:[t.jsx(Wt,{children:Qe.transactionTable.emptyTransactions.title}),t.jsx(Ut,{windowSize:e,children:Qe.transactionTable.emptyTransactions.subTitle})]})]})},hd=({cardType:e,cardHolderUser:i})=>{const d=i!=null?i.firstName+" "+i.lastName:"",h=fe();return t.jsxs(Nt,{children:[t.jsx(_t,{children:t.jsx(Dd,{})}),t.jsxs(Bt,{children:[t.jsx(Wt,{children:Qe.transactionTable.pendingProfileCompletion.title}),t.jsx(Ut,{windowSize:h,children:Qe.transactionTable.pendingProfileCompletion.subTitle[e].replace("__user__",d)})]})]})},pd=({cardHolderUser:e})=>{const i=fe();return t.jsxs(Nt,{children:[t.jsx(_t,{children:t.jsx(Ar,{})}),t.jsxs(Bt,{children:[t.jsx(Wt,{children:Qe.transactionTable.pendingActivation.title}),t.jsx(Ut,{windowSize:i,children:Qe.transactionTable.pendingActivation.subTitle.replace("__user__",e?.firstName??"")})]})]})},ud=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,style:h,transactions:m,isAiCategorizationEnabledForCardsTransactions:u,uploadReceiptsFetchStateByTransactionId:s,uploadReceiptsShowTickByTransactionId:x,isViewReceiptClickedImmediatelyAfterUploadTransactionId:l,cardId:f,cardsEndPoint:w,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,receiptRequiredAboveAmount:b,authParams:j,updateChargeCardTransactionAttachments:S,onUploadReceiptComplete:$,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:g,updateChargeCardTransactionIsViewReceiptClicked:A,onChargeCardTransactionRowClick:k,removeSnackbar:O})=>t.jsx(vd,{style:{...h,width:"100%"},className:"spend-management-list-item",children:t.jsx(gd,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,cardId:f,isAiCategorizationEnabledForCardsTransactions:u,cardsEndPoint:w,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,authParams:j,receiptRequiredAboveAmount:b,transaction:m[e],uploadReceiptsFetchState:s?.[m[e].id],uploadReceiptsShowTick:x?.[m[e].id],isViewReceiptClickedImmediatelyAfterUpload:l?.[m[e].id],updateChargeCardTransactionAttachments:S,onUploadReceiptComplete:$,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:g,updateChargeCardTransactionIsViewReceiptClicked:A,onChargeCardTransactionRowClick:k,removeSnackbar:O},m[e].id)}),md=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:d,isAiCategorizationEnabledForCardsTransactions:h,uploadReceiptsFetchState:m,uploadReceiptsShowTick:u,isViewReceiptClickedImmediatelyAfterUpload:s,cardsEndPoint:x,transactionAttachmentsEndpointToFetch:l,transactionAttachmentEndpointToDownload:f,cardId:w,receiptRequiredAboveAmount:n,authParams:C,updateChargeCardTransactionAttachments:b,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:S,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:y,onChargeCardTransactionRowClick:g,removeSnackbar:A})=>{const k=fe()==="small"?Vs:ps;return t.jsx(k,{isSnackbarOpen:d,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:h,transactionAttachmentsEndpointToFetch:l,transactionAttachmentEndpointToDownload:f,uploadReceiptsFetchState:m,uploadReceiptsShowTick:u,isViewReceiptClickedImmediatelyAfterUpload:s,transaction:e,cardId:w,receiptRequiredAboveAmount:n,cardsEndPoint:x,authParams:C,updateChargeCardTransactionAttachments:b,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:S,updateChargeCardTransactionReceiptsShowTick:$,updateChargeCardTransactionIsViewReceiptClicked:y,onChargeCardTransactionRowClick:g,removeSnackbar:A})},gd=o.memo(md),Cd=(e,i,d,h,m)=>t.jsx(Ir,{...e,onColumnSortConfigChanged:m,hideSorting:i,uiState:{sortKey:d.sortKey,sortOrder:d.sortOrder},fetchState:h}),Ir=o.forwardRef((e,i)=>{const{children:d,style:h,uiState:m,onColumnSortConfigChanged:u,hideSorting:s,...x}=e;return t.jsxs(jd,{ref:i,style:{...h,width:"auto"},...x,children:[t.jsx(Gn,{onColumnSortConfigChanged:u,sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},hideSorting:s}),t.jsx(xd,{children:d})]})});Ir.displayName="Charge Card Transaction list View inner element type";const fd=r.div`
935
935
  display: block;
936
936
  height: ${e=>e.isEmptyTransaction?"calc(100vh - 436px)":"calc(100vh - 224px)"};
937
937
  width: 100%;
@@ -985,7 +985,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
985
985
  align-items: center;
986
986
  margin-top: ${a.sp3};
987
987
  margin-bottom: ${a.sp3};
988
- `,jd=r.div`
988
+ `,Ld=r.div`
989
989
  display: flex;
990
990
  width: 100%;
991
991
  height: auto;
@@ -1005,15 +1005,15 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1005
1005
  display: flex;
1006
1006
  flex-direction: column;
1007
1007
  align-items: center;
1008
- `,Wt=r(Ai)`
1008
+ `,Wt=r(Ti)`
1009
1009
  color: ${e=>e.theme.colors.brandColorJade};
1010
- `,Ut=r(Ti)`
1010
+ `,Ut=r(Ri)`
1011
1011
  color: ${e=>e.theme.colors.primary};
1012
1012
  ${e=>e.windowSize!=="small"?ue`
1013
1013
  white-space: pre;
1014
1014
  `:null};
1015
1015
  text-align: center;
1016
- `,_t=r.div``,Ld=r.div``,Ar=r(nd)``,Dd=r(sd)``,{spendManagement:Id}=pe.getLocalizedStrings(),{cardDetails:Ae}=Id.chargeCard,Ad=ur`
1016
+ `,_t=r.div``,jd=r.div``,Ar=r(nd)``,Dd=r(sd)``,{spendManagement:Id}=pe.getLocalizedStrings(),{cardDetails:Ae}=Id.chargeCard,Ad=ur`
1017
1017
  from {
1018
1018
  transform: translateX(100%);
1019
1019
  }
@@ -1027,7 +1027,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1027
1027
  height: inherit;
1028
1028
  `,Fd=r(Rd)`
1029
1029
  animation: ${e=>Td(e.className)} 0.3s forwards;
1030
- `,Ed=({chargeCardDetailView:e,walletType:i,secretRevealed:d,isDrawerOpen:h,vgsVaultId:m,showSecretInfo:u,changePinInProcess:s,isSandboxEnv:x,controllerEmails:l,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:n,isChargeCardSetupEnabled:C,chargeCardCashbackDetailState:b,isCardDetailErrored:L,creditAccountRepayment:S,productInformation:$,creditAccountInformation:y,debitAccountInformation:g,cashbackInformation:A,signedInUserToken:k,selectedColor:O,showDrawerAnimation:R,cardDetailsFetchState:z,setCardDetailsFetchState:Y,setIsCardDetailErrored:X,setShowSecretInfo:B,setSecretRevealed:T,setShowChangePinPopup:V,setIsAddToWalletDrawerOpen:J,isCardDetailFetching:te,handleColorCodeClick:F,onFireOnClickAnalytics:q,onVerifyOtp:W,onVerifyOtpSuccess:ne,onResendOtp:Q,onFireVerifyPopOnClickAnalytics:P,onGetOtp:ee})=>{const H=Be(),[ae,K]=o.useState(!1),[j,G]=o.useState(!1),E=R.current;return o.useEffect(()=>{h?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[h,R]),t.jsx(Jr,{onClose:()=>{J(!1)},anchor:"right",open:!0,PaperProps:{style:{maxWidth:"512px",boxShadow:"none",background:"transparent"}},style:{backgroundColor:p.drawerBackground,display:h?"unset":"none"},disableScrollLock:!h,transitionDuration:250,"data-testid":Z("add-card-to-wallet-drawer"),children:t.jsxs(t.Fragment,{children:[t.jsx(Ja,{phoneNumberPopupDescription:Ae.verifyPhoneNumberDescription,showOtpPopup:ae,showPhoneNumberPopup:j,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:W,onVerifyOtpSuccess:de=>{ne(de),s?V(!0):B(!0)},onFireVerifyPopOnClickAnalytics:P,setShowOtpPopup:K,onResendOtp:Q,setShowPhoneNumberPopup:G,onGetOtp:ee}),t.jsxs(Fd,{className:E,children:[t.jsx(Qr,{title:i==="apple"?Ae.addCardToAppleWallet:Ae.addCardToGoogleWallet,style:{zIndex:4},backgroundColor:H.colors.grey4,onCloseClick:()=>J(!1)}),t.jsxs(Pd,{children:[t.jsxs(Hd,{children:[t.jsxs(Md,{children:[t.jsx(Gd,{children:t.jsx(qd,{})}),t.jsx(Bd,{children:Ae.openWalletAppOnPhone})]}),t.jsx(Wd,{children:i==="apple"?Ae.openWalletDescriptionApple:Ae.openWalletDescriptionGoogle}),t.jsx(yr,{chargeCardDetailView:e,creditAccountRepayment:S,creditAccount:e.creditAccount,setShowSecretInfo:B,secretRevealed:d,isOwnCard:!0,controllerEmails:l,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:n,isChargeCardSetupEnabled:C,chargeCardCashbackDetailState:b,isShowingInDrawer:!0,vgsVaultId:m,showSecretInfo:u,isSandboxEnv:x,isCardDetailErrored:L,signedInUserToken:k,productInformation:$,creditAccountInformation:y,debitAccountInformation:g,cashbackInformation:A,selectedColor:O,cardDetailsFetchState:z,setCardDetailsFetchState:Y,setIsCardDetailErrored:X,setSecretRevealed:T,isCardDetailFetching:te,handleColorCodeClick:F,onFireOnClickAnalytics:q,setShowPhoneNumberForOtp:G})]}),t.jsx(Vd,{}),t.jsxs(Nd,{children:[t.jsxs(Od,{children:[t.jsx(Zd,{children:t.jsx(Yd,{})}),t.jsx(Ud,{children:Ae.verifyCard})]}),t.jsx(zd,{children:t.jsx(_d,{children:i==="apple"?Ae.VerifyCardDescriptionApple:Ae.VerifyCardDescriptionGoogle})})]})]})]})]})})},zd=r.div`
1030
+ `,Ed=({chargeCardDetailView:e,walletType:i,secretRevealed:d,isDrawerOpen:h,vgsVaultId:m,showSecretInfo:u,changePinInProcess:s,isSandboxEnv:x,controllerEmails:l,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:n,isChargeCardSetupEnabled:C,chargeCardCashbackDetailState:b,isCardDetailErrored:j,creditAccountRepayment:S,productInformation:$,creditAccountInformation:y,debitAccountInformation:g,cashbackInformation:A,signedInUserToken:k,selectedColor:O,showDrawerAnimation:R,cardDetailsFetchState:z,setCardDetailsFetchState:q,setIsCardDetailErrored:K,setShowSecretInfo:B,setSecretRevealed:T,setShowChangePinPopup:V,setIsAddToWalletDrawerOpen:J,isCardDetailFetching:te,handleColorCodeClick:F,onFireOnClickAnalytics:G,onVerifyOtp:W,onVerifyOtpSuccess:ne,onResendOtp:Q,onFireVerifyPopOnClickAnalytics:P,onGetOtp:ee})=>{const H=Be(),[ae,X]=o.useState(!1),[L,Y]=o.useState(!1),E=R.current;return o.useEffect(()=>{h?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[h,R]),t.jsx(Qr,{onClose:()=>{J(!1)},anchor:"right",open:!0,PaperProps:{style:{maxWidth:"512px",boxShadow:"none",background:"transparent"}},style:{backgroundColor:p.drawerBackground,display:h?"unset":"none"},disableScrollLock:!h,transitionDuration:250,"data-testid":Z("add-card-to-wallet-drawer"),children:t.jsxs(t.Fragment,{children:[t.jsx(Ja,{phoneNumberPopupDescription:Ae.verifyPhoneNumberDescription,showOtpPopup:ae,showPhoneNumberPopup:L,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:W,onVerifyOtpSuccess:de=>{ne(de),s?V(!0):B(!0)},onFireVerifyPopOnClickAnalytics:P,setShowOtpPopup:X,onResendOtp:Q,setShowPhoneNumberPopup:Y,onGetOtp:ee}),t.jsxs(Fd,{className:E,children:[t.jsx(ei,{title:i==="apple"?Ae.addCardToAppleWallet:Ae.addCardToGoogleWallet,style:{zIndex:4},backgroundColor:H.colors.grey4,onCloseClick:()=>J(!1)}),t.jsxs(Pd,{children:[t.jsxs(Hd,{children:[t.jsxs(Md,{children:[t.jsx(Yd,{children:t.jsx(Gd,{})}),t.jsx(Bd,{children:Ae.openWalletAppOnPhone})]}),t.jsx(Wd,{children:i==="apple"?Ae.openWalletDescriptionApple:Ae.openWalletDescriptionGoogle}),t.jsx(yr,{chargeCardDetailView:e,creditAccountRepayment:S,creditAccount:e.creditAccount,setShowSecretInfo:B,secretRevealed:d,isOwnCard:!0,controllerEmails:l,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:w,isDebitCardSetupEnabled:n,isChargeCardSetupEnabled:C,chargeCardCashbackDetailState:b,isShowingInDrawer:!0,vgsVaultId:m,showSecretInfo:u,isSandboxEnv:x,isCardDetailErrored:j,signedInUserToken:k,productInformation:$,creditAccountInformation:y,debitAccountInformation:g,cashbackInformation:A,selectedColor:O,cardDetailsFetchState:z,setCardDetailsFetchState:q,setIsCardDetailErrored:K,setSecretRevealed:T,isCardDetailFetching:te,handleColorCodeClick:F,onFireOnClickAnalytics:G,setShowPhoneNumberForOtp:Y})]}),t.jsx(Vd,{}),t.jsxs(Nd,{children:[t.jsxs(Od,{children:[t.jsx(Zd,{children:t.jsx(qd,{})}),t.jsx(Ud,{children:Ae.verifyCard})]}),t.jsx(zd,{children:t.jsx(_d,{children:i==="apple"?Ae.VerifyCardDescriptionApple:Ae.VerifyCardDescriptionGoogle})})]})]})]})]})})},zd=r.div`
1031
1031
  display: flex;
1032
1032
  justify-content: end;
1033
1033
  `,Pd=r.div`
@@ -1075,25 +1075,25 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1075
1075
  border-radius: ${a.sp4};
1076
1076
  background: ${p.successLight};
1077
1077
  display: flex;
1078
- `,Gd=r.div`
1078
+ `,Yd=r.div`
1079
1079
  padding: 12px;
1080
1080
  border-radius: ${a.sp4};
1081
1081
  background: ${e=>e.theme.colors.graphColor16Light};
1082
1082
  display: flex;
1083
- `,Yd=r(yi)`
1083
+ `,qd=r(bi)`
1084
1084
  width: ${a.sp4};
1085
1085
  height: ${a.sp4};
1086
- `,qd=r(Gi)`
1086
+ `,Gd=r(Gi)`
1087
1087
  width: ${a.sp4};
1088
1088
  height: ${a.sp4};
1089
1089
  color: ${e=>e.theme.colors.graphColor16Dark};
1090
- `,{spendManagement:{chargeCard:{cardDetails:Me}},common:{strings:Kd}}=pe.getLocalizedStrings(),Zt={iFrameWidth:new D(188,188)};function Xd({isSandboxEnv:e,cardProviderID:i,vgsVaultId:d,signedInUserToken:h,onCancelClick:m,onUpdateDebitCardPinAttempt:u,onChangePinSuccess:s}){const x=fe(),l=Be(),[f,w]=o.useState({}),[n,C]=o.useState(!1),[b,L]=o.useState(!1),[S,$]=o.useState(!0),[y,g]=o.useState(!0),[A,k]=o.useState(!1),[O,R]=o.useState(!1),[z,Y]=o.useState(!1),[X,B]=o.useState(!1),[T,V]=o.useState(!1),[J,te]=o.useState(!1),[F,q]=o.useState(!1),[W,ne]=o.useState(null),[Q,P]=o.useState(null),[ee]=Qa("https://js.verygoodvault.com/vgs-collect/2.27.0/vgs-collect.js"),H=e?"SANDBOX":"live";o.useEffect(()=>{if(ee){const j=window.VGSCollect.create(d,H,de=>{const I=de["data.attributes.oldPin"],v=de["data.attributes.newPin"];I?.isTouched===!0&&I?.isValid===!1&&I?.isFocused===!1?B(!0):(I?.isTouched===!0&&I?.isValid===!0&&I?.isFocused===!1||I?.isTouched===!0&&I?.isValid===!0&&I?.isFocused===!0)&&(B(!1),q(!1)),v?.isTouched===!0&&v?.isValid===!1&&v?.isFocused===!1?V(!0):(v?.isTouched===!0&&v?.isValid===!0&&v?.isFocused===!1||v?.isTouched===!0&&v?.isValid===!0&&v?.isFocused===!0)&&V(!1)}),G=j.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:l.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:l.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:p.important,background:p.importantLight},"&:focus":{background:`${l.colors.background} !important`,textAlign:"left",color:`${l.colors.primary} !important`}}}),E=j.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:l.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:l.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:p.important,background:p.importantLight},"&:focus":{background:`${l.colors.background} !important`,textAlign:"left",color:`${l.colors.primary} !important`}}});ne(G),P(E),w(j),Promise.all([G.promise,E.promise]).then(function(){L(!0)})}},[ee]),o.useEffect(()=>{W?.update({hideValue:S})},[W,S]),o.useEffect(()=>{Q?.update({hideValue:y})},[Q,y]);const ae=j=>{C(!0),q(!1),f.submit?.("/cards/"+i+"/secure-data/pin",{method:"PUT",mapDotToObject:"true",headers:{"Content-Type":"application/vnd.api+json",Authorization:"Bearer "+j?.token}},function(G,E){G===200?(k(!1),R(!1),s(),u("success")):(B(!0),u("failed"),E.errors?.[0].title.toLowerCase().includes("max")?te(!0):E.errors?.[0].title.toLowerCase().includes("invalid")&&q(!0),C(!1))},G=>{console.log("error",G),C(!1)})},K={onOkClick:()=>{if(!f.state)return;const j=f.state["data.attributes.newPin"]?.isValid,G=f.state["data.attributes.oldPin"]?.isValid;Y(!0),j===!0&&G===!0&&ae(h)},onCancelClick:m};return t.jsx(Kr,{titleComponent:t.jsx(Jd,{children:Me.changePin}),descriptionComponent:t.jsxs(Qd,{children:[t.jsxs(ic,{children:[t.jsxs(Wa,{showFieldError:X,windowSize:x,isFirstField:!0,validation:z,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),oldPinInputHighlighted:A,children:[t.jsx(Ha,{children:Me.existingPin}),t.jsxs(Na,{windowSize:x,children:[t.jsx(rc,{id:"oldPin",className:"cc-old-pin-form-field",windowSize:x}),t.jsx(Ma,{onClick:()=>$(!S),"data-testid":Z("cc-old-pin-show-text"),children:S?t.jsx(Oa,{}):t.jsx(Va,{})})]})]}),t.jsx(tc,{}),t.jsxs(Wa,{showFieldError:T,windowSize:x,isFirstField:!1,validation:z,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),newPinInputHighlighted:O,children:[t.jsx(Ha,{children:Me.newPin}),t.jsxs(Na,{windowSize:x,children:[t.jsx(ac,{id:"newPin",className:"cc-new-pin-form-field",windowSize:x}),t.jsx(Ma,{onClick:()=>g(!y),"data-testid":Z("cc-new-pin-show-text"),children:y?t.jsx(Oa,{}):t.jsx(Va,{})})]})]})]}),F?t.jsx(Ba,{children:Me.incorrectCurrentPIN}):null,J?t.jsx(Ba,{children:Me.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:b===!1||J,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:K,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(Xr,{children:[t.jsx(ec,{children:Me.forgotYourPin}),Kd.space,Me.callTollFree]})})}const Jd=r(or)`
1090
+ `,{spendManagement:{chargeCard:{cardDetails:Me}},common:{strings:Xd}}=pe.getLocalizedStrings(),Zt={iFrameWidth:new D(188,188)};function Kd({isSandboxEnv:e,cardProviderID:i,vgsVaultId:d,signedInUserToken:h,onCancelClick:m,onUpdateDebitCardPinAttempt:u,onChangePinSuccess:s}){const x=fe(),l=Be(),[f,w]=o.useState({}),[n,C]=o.useState(!1),[b,j]=o.useState(!1),[S,$]=o.useState(!0),[y,g]=o.useState(!0),[A,k]=o.useState(!1),[O,R]=o.useState(!1),[z,q]=o.useState(!1),[K,B]=o.useState(!1),[T,V]=o.useState(!1),[J,te]=o.useState(!1),[F,G]=o.useState(!1),[W,ne]=o.useState(null),[Q,P]=o.useState(null),[ee]=Qa("https://js.verygoodvault.com/vgs-collect/2.27.0/vgs-collect.js"),H=e?"SANDBOX":"live";o.useEffect(()=>{if(ee){const L=window.VGSCollect.create(d,H,de=>{const I=de["data.attributes.oldPin"],v=de["data.attributes.newPin"];I?.isTouched===!0&&I?.isValid===!1&&I?.isFocused===!1?B(!0):(I?.isTouched===!0&&I?.isValid===!0&&I?.isFocused===!1||I?.isTouched===!0&&I?.isValid===!0&&I?.isFocused===!0)&&(B(!1),G(!1)),v?.isTouched===!0&&v?.isValid===!1&&v?.isFocused===!1?V(!0):(v?.isTouched===!0&&v?.isValid===!0&&v?.isFocused===!1||v?.isTouched===!0&&v?.isValid===!0&&v?.isFocused===!0)&&V(!1)}),Y=L.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:l.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:l.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:p.important,background:p.importantLight},"&:focus":{background:`${l.colors.background} !important`,textAlign:"left",color:`${l.colors.primary} !important`}}}),E=L.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:l.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:l.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:p.important,background:p.importantLight},"&:focus":{background:`${l.colors.background} !important`,textAlign:"left",color:`${l.colors.primary} !important`}}});ne(Y),P(E),w(L),Promise.all([Y.promise,E.promise]).then(function(){j(!0)})}},[ee]),o.useEffect(()=>{W?.update({hideValue:S})},[W,S]),o.useEffect(()=>{Q?.update({hideValue:y})},[Q,y]);const ae=L=>{C(!0),G(!1),f.submit?.("/cards/"+i+"/secure-data/pin",{method:"PUT",mapDotToObject:"true",headers:{"Content-Type":"application/vnd.api+json",Authorization:"Bearer "+L?.token}},function(Y,E){Y===200?(k(!1),R(!1),s(),u("success")):(B(!0),u("failed"),E.errors?.[0].title.toLowerCase().includes("max")?te(!0):E.errors?.[0].title.toLowerCase().includes("invalid")&&G(!0),C(!1))},Y=>{console.log("error",Y),C(!1)})},X={onOkClick:()=>{if(!f.state)return;const L=f.state["data.attributes.newPin"]?.isValid,Y=f.state["data.attributes.oldPin"]?.isValid;q(!0),L===!0&&Y===!0&&ae(h)},onCancelClick:m};return t.jsx(Kr,{titleComponent:t.jsx(Jd,{children:Me.changePin}),descriptionComponent:t.jsxs(Qd,{children:[t.jsxs(ic,{children:[t.jsxs(Wa,{showFieldError:K,windowSize:x,isFirstField:!0,validation:z,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),oldPinInputHighlighted:A,children:[t.jsx(Ha,{children:Me.existingPin}),t.jsxs(Na,{windowSize:x,children:[t.jsx(rc,{id:"oldPin",className:"cc-old-pin-form-field",windowSize:x}),t.jsx(Ma,{onClick:()=>$(!S),"data-testid":Z("cc-old-pin-show-text"),children:S?t.jsx(Oa,{}):t.jsx(Va,{})})]})]}),t.jsx(tc,{}),t.jsxs(Wa,{showFieldError:T,windowSize:x,isFirstField:!1,validation:z,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),newPinInputHighlighted:O,children:[t.jsx(Ha,{children:Me.newPin}),t.jsxs(Na,{windowSize:x,children:[t.jsx(ac,{id:"newPin",className:"cc-new-pin-form-field",windowSize:x}),t.jsx(Ma,{onClick:()=>g(!y),"data-testid":Z("cc-new-pin-show-text"),children:y?t.jsx(Oa,{}):t.jsx(Va,{})})]})]})]}),F?t.jsx(Ba,{children:Me.incorrectCurrentPIN}):null,J?t.jsx(Ba,{children:Me.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:b===!1||J,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:X,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(Jr,{children:[t.jsx(ec,{children:Me.forgotYourPin}),Xd.space,Me.callTollFree]})})}const Jd=r(or)`
1091
1091
  margin-top: ${a.sp7};
1092
1092
  padding-left: ${a.sp8};
1093
1093
  padding-right: ${a.sp8};
1094
1094
  color: ${e=>e.theme.colors.primary};
1095
1095
  word-break: break-word;
1096
- `,Qd=r(fi)`
1096
+ `,Qd=r(wi)`
1097
1097
  margin-top: ${a.sp5};
1098
1098
  margin-bottom: ${a.sp5};
1099
1099
  `,ec=r.span`
@@ -1101,11 +1101,11 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1101
1101
  `,Ma=r.div`
1102
1102
  cursor: pointer;
1103
1103
  margin-left: ${a.sp2};
1104
- `,Oa=r(wi)`
1104
+ `,Oa=r(xi)`
1105
1105
  height: ${a.sp4};
1106
1106
  width: ${a.sp4};
1107
1107
  color: ${e=>e.theme.colors.hero};
1108
- `,Va=r(xi)`
1108
+ `,Va=r(yi)`
1109
1109
  height: ${a.sp4};
1110
1110
  width: ${a.sp4};
1111
1111
  color: ${e=>e.theme.colors.hero};
@@ -1179,7 +1179,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1179
1179
  background: ${e.theme.colors.background};
1180
1180
  }
1181
1181
  `:null}
1182
- `,Xe="spendLimit",Ve=pe.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:Rt}=pe.getLocalizedStrings();function oc({controllerEmails:e,isChargeCardFeatureEnabled:i,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:m,chargeCardDetailView:u,creditAccount:s,creditAccountRepayment:x,signedInUser:l,isDebitCard:f,classListFetchState:w,currentLimitAmount:n,currentSpentAmount:C,productInformation:b,creditAccountInformation:L,debitAccountInformation:S,maxLimitAmount:$,isDisabled:y,updateLimitFetchState:g,recommendations:A,cardIssuedByRoles:k,cardHolderRoles:O,loggedInUserRole:R,cardIssuedByDepartmentName:z,cardHolderDepartmentName:Y,onCancelClick:X,onSubmitClick:B}){const T=st().analytics,V=fe(),J="SpendLimitForm",te=nt();Ne.hasChargeCardAdminLevelAccess(te.loggedInUserRoleMap);const F=ei({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[Xe]:void 0}}),{control:q,formState:{errors:W}}=F,[ne,Q]=o.useState(void 0),P=ti({control:q,name:Xe}),ee=u.chargeCard?.type.code.includes("physical")===!0?u.chargeCard.cardActivationAttemptHistory[0]?.timestamp:u.chargeCard?.createTime,H=(u?.chargeCard?.recommendations??[]).map(v=>v.creditLimit.amount),ae=()=>{Ua({analytics:T,controllerEmails:e,isChargeCardFeatureEnabled:i,chargeCardDetailView:u,creditAccount:s,creditAccountRepayment:x,signedInUser:l,isDebitCard:f,classListFetchState:w,currentLimitAmount:n,recommendedLimitAmounts:H,cardActivationDate:ee,cardIssuedByRoles:k,cardHolderRoles:O,cardIssuedByDepartmentName:z,cardHolderDepartmentName:Y,loggedInUserRole:R,clickItem:"Cancel",newSpendLimitAmount:P,productInformation:b,creditAccountInformation:L,debitAccountInformation:S}),X()},K=F.handleSubmit(()=>{const v=F.getValues(Xe);v!=null&&(Ua({analytics:T,controllerEmails:e,isChargeCardFeatureEnabled:i,chargeCardDetailView:u,creditAccount:s,creditAccountRepayment:x,signedInUser:l,isDebitCard:f,classListFetchState:w,currentLimitAmount:n,recommendedLimitAmounts:H,cardActivationDate:ee,cardIssuedByRoles:k,cardHolderRoles:O,cardIssuedByDepartmentName:z,cardHolderDepartmentName:Y,loggedInUserRole:R,productInformation:b,creditAccountInformation:L,debitAccountInformation:S,clickItem:"Update",newSpendLimitAmount:v}),B(v))}),j=v=>{F.setValue(Xe,v,{shouldValidate:!0})},G=ai(W,Xe),E=pe.getLocalizedStrings().common,de=gt.largeLabelWidth.value(V);o.useEffect(()=>{Q(nc(C,$,P))},[P,C,$]);const I=(v,U)=>t.jsxs(Cc,{isSelected:P===v.amount,onClick:()=>j(v.amount),"data-testid":Z("quick-amount-button",U.toString()),children:[U===1&&t.jsx(fc,{}),ye("0,0.[00]",v)]},U);return t.jsx(sc,{windowSize:V,role:"presentation","data-testid":Z("update-spend-limit-popup"),children:t.jsx(ri,{onClickAway:()=>X(),children:t.jsxs(dc,{windowSize:V,children:[t.jsx(ii,{...F,children:t.jsxs(wc,{id:J,onSubmit:v=>{v.preventDefault(),K()},children:[t.jsx(cc,{windowSize:V,children:Ve.heading}),t.jsxs(lc,{windowSize:V,children:[Ve.currentLimit,E.strings.space," ",ye("0,0.[00]",n),Ve.slashMonth]}),t.jsxs(mc,{hasError:G,children:[t.jsx(oi,{label:{label:Ve.newLimit,width:de},showAdditionalInfoLabel:G,additionalInfoLabel:ne,formattedTextField:{type:"number",name:Xe,defaultValue:void 0,placeholder:Ve.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:v=>!!v&&v>0&&v>C.amount&&($!=null?v<=$.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),A?.length?t.jsx(gc,{windowSize:V,children:A?.map((v,U)=>I(v.creditLimit,U))}):null]})]})}),t.jsx(uc,{children:t.jsxs(hc,{children:[t.jsx(Ct,{label:E.cancel,onClick:ae,style:{width:84},"data-testid":Z("update-spend-limit-cancel-button")}),t.jsx(pc,{}),t.jsx(Ct,{variant:"primary",label:E.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:g==="In-Progress",type:"submit",form:J,"data-testid":Z("update-spend-limit-submit-button"),disabled:y})]})})]})})})}const nc=(e,i,d)=>{if(d!=null){if(d<=e.amount)return Ve.amountBelowError.replace("_amount_",ye("0,0.[00]",e));if(i!=null&&d>i.amount)return Ve.amountExceedError.replace("_amount_",ye("0,0.[00]",i))}},Ua=({analytics:e,controllerEmails:i,isChargeCardFeatureEnabled:d,productInformation:h,creditAccountInformation:m,debitAccountInformation:u,chargeCardDetailView:s,creditAccount:x,creditAccountRepayment:l,signedInUser:f,isDebitCard:w,classListFetchState:n,currentLimitAmount:C,recommendedLimitAmounts:b,cardActivationDate:L,cardIssuedByRoles:S,cardHolderRoles:$,cardIssuedByDepartmentName:y,cardHolderDepartmentName:g,loggedInUserRole:A,clickItem:k,newSpendLimitAmount:O})=>{s.chargeCard!=null&&n==="Completed"&&s.transactionStatistics.fetchState==="Completed"&&(!d||x.fetchState==="Completed"&&l.fetchState==="Completed")&&(!w||s.depositAccountLimitFetchState.fetchState==="Completed")&&e.trackCardsUpdateSpendLimitClick(i,h,{cardId:s.chargeCard.id,cardName:s.chargeCard.cardName,cardType:gr(s.chargeCard.type.code),cardCategory:s.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:Le(s.chargeCard.limit.amount),cardLastFourDigits:s.chargeCard.accountLast4,cardStatus:s.chargeCard.status.code,cardAssignedDate:s.chargeCard.createTime?.format(Rt.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:s.chargeCard.providerCardCreateTime?.format(Rt.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:L?.format(Rt.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:s.chargeCard.creditLimitFrequency.name,cardSpentAmount:Le(s.chargeCard.balance.amount),cardAvailableLimit:Le(s.chargeCard.available.amount),cardUtilizationPercent:mr(s.chargeCard.limit.amount,s.chargeCard.available.amount),cardUtilizationAmount:Le(Cr(s.chargeCard)),totalNumberOfDeclinedTransactions:s.transactionStatistics.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:s.transactionStatistics.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:s.transactionStatistics.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:s.transactionStatistics.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:s.transactionStatistics.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:s.transactionStatistics.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:ft(s.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:s.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:s.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:S,cardIssuedByDepartment:y},{cardholderName:ft(s.chargeCard.cardHolderUser,!1),cardholderEmail:s.chargeCard.cardHolderUser?.email,cardholderRole:$,cardholderUserId:s.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},{cardLimitUpdatedByName:bi(f),cardLimitUpdatedByEmail:f.userEmail,cardLimitUpdatedByRole:A,cardLimitUpdatedByUserId:f.userId},k,Le(C.amount),b,O!=null?b.includes(O):!1,O,m,u)},gt={width:new D(343,500,500),largeLabelWidth:new D(108,108,108),popupLeftRightPadding:new D(c[5],c[6]),popupTopBottomPadding:new D(c[5],c[5])},sc=r.div`
1182
+ `,Ke="spendLimit",Ve=pe.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:Rt}=pe.getLocalizedStrings();function oc({controllerEmails:e,isChargeCardFeatureEnabled:i,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:m,chargeCardDetailView:u,creditAccount:s,creditAccountRepayment:x,signedInUser:l,isDebitCard:f,classListFetchState:w,currentLimitAmount:n,currentSpentAmount:C,productInformation:b,creditAccountInformation:j,debitAccountInformation:S,maxLimitAmount:$,isDisabled:y,updateLimitFetchState:g,recommendations:A,cardIssuedByRoles:k,cardHolderRoles:O,loggedInUserRole:R,cardIssuedByDepartmentName:z,cardHolderDepartmentName:q,onCancelClick:K,onSubmitClick:B}){const T=st().analytics,V=fe(),J="SpendLimitForm",te=nt();Ne.hasChargeCardAdminLevelAccess(te.loggedInUserRoleMap);const F=ti({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[Ke]:void 0}}),{control:G,formState:{errors:W}}=F,[ne,Q]=o.useState(void 0),P=ai({control:G,name:Ke}),ee=u.chargeCard?.type.code.includes("physical")===!0?u.chargeCard.cardActivationAttemptHistory[0]?.timestamp:u.chargeCard?.createTime,H=(u?.chargeCard?.recommendations??[]).map(v=>v.creditLimit.amount),ae=()=>{Ua({analytics:T,controllerEmails:e,isChargeCardFeatureEnabled:i,chargeCardDetailView:u,creditAccount:s,creditAccountRepayment:x,signedInUser:l,isDebitCard:f,classListFetchState:w,currentLimitAmount:n,recommendedLimitAmounts:H,cardActivationDate:ee,cardIssuedByRoles:k,cardHolderRoles:O,cardIssuedByDepartmentName:z,cardHolderDepartmentName:q,loggedInUserRole:R,clickItem:"Cancel",newSpendLimitAmount:P,productInformation:b,creditAccountInformation:j,debitAccountInformation:S}),K()},X=F.handleSubmit(()=>{const v=F.getValues(Ke);v!=null&&(Ua({analytics:T,controllerEmails:e,isChargeCardFeatureEnabled:i,chargeCardDetailView:u,creditAccount:s,creditAccountRepayment:x,signedInUser:l,isDebitCard:f,classListFetchState:w,currentLimitAmount:n,recommendedLimitAmounts:H,cardActivationDate:ee,cardIssuedByRoles:k,cardHolderRoles:O,cardIssuedByDepartmentName:z,cardHolderDepartmentName:q,loggedInUserRole:R,productInformation:b,creditAccountInformation:j,debitAccountInformation:S,clickItem:"Update",newSpendLimitAmount:v}),B(v))}),L=v=>{F.setValue(Ke,v,{shouldValidate:!0})},Y=ri(W,Ke),E=pe.getLocalizedStrings().common,de=gt.largeLabelWidth.value(V);o.useEffect(()=>{Q(nc(C,$,P))},[P,C,$]);const I=(v,U)=>t.jsxs(Cc,{isSelected:P===v.amount,onClick:()=>L(v.amount),"data-testid":Z("quick-amount-button",U.toString()),children:[U===1&&t.jsx(fc,{}),ye("0,0.[00]",v)]},U);return t.jsx(sc,{windowSize:V,role:"presentation","data-testid":Z("update-spend-limit-popup"),children:t.jsx(ii,{onClickAway:()=>K(),children:t.jsxs(dc,{windowSize:V,children:[t.jsx(oi,{...F,children:t.jsxs(wc,{id:J,onSubmit:v=>{v.preventDefault(),X()},children:[t.jsx(cc,{windowSize:V,children:Ve.heading}),t.jsxs(lc,{windowSize:V,children:[Ve.currentLimit,E.strings.space," ",ye("0,0.[00]",n),Ve.slashMonth]}),t.jsxs(mc,{hasError:Y,children:[t.jsx(ni,{label:{label:Ve.newLimit,width:de},showAdditionalInfoLabel:Y,additionalInfoLabel:ne,formattedTextField:{type:"number",name:Ke,defaultValue:void 0,placeholder:Ve.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:v=>!!v&&v>0&&v>C.amount&&($!=null?v<=$.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),A?.length?t.jsx(gc,{windowSize:V,children:A?.map((v,U)=>I(v.creditLimit,U))}):null]})]})}),t.jsx(uc,{children:t.jsxs(hc,{children:[t.jsx(Ct,{label:E.cancel,onClick:ae,style:{width:84},"data-testid":Z("update-spend-limit-cancel-button")}),t.jsx(pc,{}),t.jsx(Ct,{variant:"primary",label:E.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:g==="In-Progress",type:"submit",form:J,"data-testid":Z("update-spend-limit-submit-button"),disabled:y})]})})]})})})}const nc=(e,i,d)=>{if(d!=null){if(d<=e.amount)return Ve.amountBelowError.replace("_amount_",ye("0,0.[00]",e));if(i!=null&&d>i.amount)return Ve.amountExceedError.replace("_amount_",ye("0,0.[00]",i))}},Ua=({analytics:e,controllerEmails:i,isChargeCardFeatureEnabled:d,productInformation:h,creditAccountInformation:m,debitAccountInformation:u,chargeCardDetailView:s,creditAccount:x,creditAccountRepayment:l,signedInUser:f,isDebitCard:w,classListFetchState:n,currentLimitAmount:C,recommendedLimitAmounts:b,cardActivationDate:j,cardIssuedByRoles:S,cardHolderRoles:$,cardIssuedByDepartmentName:y,cardHolderDepartmentName:g,loggedInUserRole:A,clickItem:k,newSpendLimitAmount:O})=>{s.chargeCard!=null&&n==="Completed"&&s.transactionStatistics.fetchState==="Completed"&&(!d||x.fetchState==="Completed"&&l.fetchState==="Completed")&&(!w||s.depositAccountLimitFetchState.fetchState==="Completed")&&e.trackCardsUpdateSpendLimitClick(i,h,{cardId:s.chargeCard.id,cardName:s.chargeCard.cardName,cardType:gr(s.chargeCard.type.code),cardCategory:s.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:je(s.chargeCard.limit.amount),cardLastFourDigits:s.chargeCard.accountLast4,cardStatus:s.chargeCard.status.code,cardAssignedDate:s.chargeCard.createTime?.format(Rt.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:s.chargeCard.providerCardCreateTime?.format(Rt.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:j?.format(Rt.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:s.chargeCard.creditLimitFrequency.name,cardSpentAmount:je(s.chargeCard.balance.amount),cardAvailableLimit:je(s.chargeCard.available.amount),cardUtilizationPercent:mr(s.chargeCard.limit.amount,s.chargeCard.available.amount),cardUtilizationAmount:je(Cr(s.chargeCard)),totalNumberOfDeclinedTransactions:s.transactionStatistics.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:s.transactionStatistics.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:s.transactionStatistics.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:s.transactionStatistics.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:s.transactionStatistics.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:s.transactionStatistics.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:s.transactionStatistics.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:ft(s.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:s.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:s.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:S,cardIssuedByDepartment:y},{cardholderName:ft(s.chargeCard.cardHolderUser,!1),cardholderEmail:s.chargeCard.cardHolderUser?.email,cardholderRole:$,cardholderUserId:s.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},{cardLimitUpdatedByName:Si(f),cardLimitUpdatedByEmail:f.userEmail,cardLimitUpdatedByRole:A,cardLimitUpdatedByUserId:f.userId},k,je(C.amount),b,O!=null?b.includes(O):!1,O,m,u)},gt={width:new D(343,500,500),largeLabelWidth:new D(108,108,108),popupLeftRightPadding:new D(c[5],c[6]),popupTopBottomPadding:new D(c[5],c[5])},sc=r.div`
1183
1183
  position: fixed;
1184
1184
  top: ${a.sp0};
1185
1185
  left: ${a.sp0};
@@ -1250,14 +1250,14 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1250
1250
  color: ${e=>e.theme.colors.primary};
1251
1251
  border: ${e=>`1px solid ${e.theme.colors.primary}`};
1252
1252
  }
1253
- `,fc=r(Di)`
1253
+ `,fc=r(Ii)`
1254
1254
  color: ${p.brandColorJade};
1255
1255
  fill: ${p.brandColorJade};
1256
1256
  width: ${a.sp3};
1257
1257
  height: ${a.sp3};
1258
1258
  `,wc=r.form`
1259
1259
  display: contents;
1260
- `,ke={bottomContentContainerPadding:new D(c[3],c[8]),styledAIIconContainerSize:new D(c[3],c[3]),bannerWrapperMarginLeftRight:new D(c[3],c[8]),payNowSectionPaddingLeftRight:new D(c[3],c[0]),styledHighImportanceIconMarginRight:new D(c[0],c[1])},{common:we,spendManagement:xc,dateFormat:yc}=pe.getLocalizedStrings(),xe=xc.chargeCard,Cl=({chargeCardDetailView:e,cardsEndPoint:i,classListFetchState:d,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:m,authParams:u,hideSorting:s,cardId:x,vgsVaultId:l,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardCashbackDetailState:L,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:A,cardIssuedByRoles:k,cardIssuedByDepartmentName:O,cardHolderRoles:R,cardHolderDepartmentName:z,loggedInUserRole:Y,appleWalletLink:X,googleWalletLink:B,signedInUser:T,signedInUserToken:V,isSandboxEnv:J,isEarlyPayEnabled:te,documentAiReceiptMaxSizeLimit:F,isSnackbarOpen:q,onFireOnClickAnalytics:W,onUpdateDebitCardPinAttempt:ne,onFireVerifyPopOnClickAnalytics:Q,onBackClick:P,onReloadTransactions:ee,onFetchChargeCardTransactionList:H,onGetOtp:ae,onResendOtp:K,onVerifyOtp:j,onVerifyOtpSuccess:G,onColorCodeChange:E,onColumnSortConfigChanged:de,updateChargeCardTransactionAttachments:I,updateChargeCardTransactionUploadReceiptsFetchStatus:v,updateChargeCardTransactionReceiptsShowTick:U,updateChargeCardTransactionIsViewReceiptClicked:N,onUploadReceiptComplete:re,removeSnackbar:De,onChargeCardTransactionRowClick:ze,onUpdateScrollYOffset:Te,updateSpendLimit:ie,shouldOpenCreditCardPaymentDrawer:ce})=>{const oe=o.useRef(!0),Ie=Be(),se=fe(),lt=nt(),We=st().analytics,[,tt]=Ka(),[Ue,ht]=o.useState(!1),[M,he]=o.useState(!1),[le,_e]=o.useState(!1),[Ze,at]=o.useState(!1),[yt,Gt]=o.useState(!1),[bt,Yt]=o.useState(!1),[Rr,Fr]=o.useState(!1),[Er,qt]=o.useState(!1),[zr,St]=o.useState(!1),[Ge,$t]=o.useState(!1),[Kt,vt]=o.useState(!1),[Xt,Jt]=o.useState(!1),[Pr,Qt]=o.useState(!1),[Mr,Or]=o.useState("apple"),[ea,ta]=o.useState({number:!1,cvv:!1});o.useEffect(()=>{Ge===!1&&vt(!1)},[Ge]);const aa=o.useRef("noAnimation"),rt=e.chargeCard?.cardHolderUserId===T.userId,kt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,ra=e.chargeCard?.billingAddress,Ye=Ne.hasChargeCardAdminLevelAccess(lt.loggedInUserRoleMap),{text1:Vr,text2:Hr}=Yr(ra),ia=`${Vr} ${Hr}`,jt=e.chargeCard?.isDeclinedTransaction===!0,Nr=()=>{Ft({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:Se,isChargeCardAdmin:Ye,analytics:We,controllerEmails:f,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),tt(e.chargeCardConfig.receiptBotEmail),ht(!0)},Br=()=>{W("card owner copied"),Ft({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:Se,isChargeCardAdmin:Ye,analytics:We,controllerEmails:f,actionField:"Card Owner",actionDetails:kt}),tt(kt),Gt(!0)},Wr=()=>{W("billing address copied"),Ft({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:Se,isChargeCardAdmin:Ye,analytics:We,controllerEmails:f,actionField:"Billing Address",actionDetails:ia}),tt(ia),Yt(!0)};o.useEffect(()=>{Ue===!0&&setTimeout(()=>{ht(!1)},800),yt===!0&&setTimeout(()=>{Gt(!1)},800),bt===!0&&setTimeout(()=>{Yt(!1)},800)},[yt,bt,Ue]);const[qc,Ur]=o.useState(!1),[oa,na]=o.useState(e.chargeCard?.cardColorCode!=null?new He(e.chargeCard.cardColorCode):void 0);o.useEffect(()=>{e.chargeCard?.cardColorCode!=null&&na(new He(e.chargeCard.cardColorCode))},[e.chargeCard?.cardColorCode]);const sa={amount:e.chargeCard!=null?e.chargeCard.balance.amount:0,currencyCode:e.chargeCard!=null?e.chargeCard.balance.currencyCode:we.currency.countryCode,currencySymbol:e.chargeCard!=null?e.chargeCard.balance.currencySymbol:we.currency.currencySymbol};o.useEffect(()=>{oe.current===!0?oe.current=!1:W(Ge===!1?"card details hidden":"card detail revealed")},[Ge]);const da=(je,qe)=>{if(qe===!0){const pt=Zi(je.toString())??we.strings.empty;W("color selected",pt),E(pt),Ur(!1)}na(je)},ca=je=>{const{cvv:qe,number:pt}=je;return qe===!0||pt===!0},{isMobileOrTabletScreen:la}=Xa(),Lt=e.chargeCard?.status.code!=="request_on_hold"&&e.chargeCard?.status.code!=="inactive";o.useEffect(()=>{(e.updateChargeCardLimitFetchState.fetchState==="Completed"||e.updateChargeCardLimitFetchState.fetchState==="Error")&&St(!1)},[e.updateChargeCardLimitFetchState]);const Se=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",_r=Ye&&e.chargeCard?.status.code==="active"&&sa.amount<(Se?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit.amount??0:e.creditAccount.limit.amount),Zr=e.creditAccountRepayment.initiatedRepayments.amount>0&&Ye&&jt,Gr=t.jsx("div",{children:t.jsx(Ui,{entity:"debit_cards",onOptionSelection:je=>{je==="changePin"&&(V==null||V.expiry.isBefore(new Date)?ae(e.loggedInUserPhone):at(!0),_e(!0))},isMoreOption:!0,options:[{value:"changePin",label:xe.cardDetails.changePin}],customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}})}})});return t.jsxs(Ec,{children:[Ze&&e.chargeCard?.cardProviderID!=null?t.jsx(Xd,{signedInUserToken:V,vgsVaultId:l,onCancelClick:()=>{at(!1),_e(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{at(!1),_e(!0)},onUpdateDebitCardPinAttempt:ne}):null,la?null:t.jsx(Ed,{controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardCashbackDetailState:L,creditAccountRepayment:e.creditAccountRepayment,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:e.creditAccount,selectedColor:oa,walletType:Mr,onFireOnClickAnalytics:W,isSandboxEnv:J,chargeCardDetailView:e,vgsVaultId:l,signedInUserToken:V,showSecretInfo:Ge,changePinInProcess:le,setShowChangePinPopup:at,isCardDetailErrored:Xt,cardDetailsFetchState:ea,setCardDetailsFetchState:ta,setIsCardDetailErrored:Jt,isCardDetailFetching:ca,handleColorCodeClick:da,isDrawerOpen:Pr,setIsAddToWalletDrawerOpen:Qt,onVerifyOtp:j,onVerifyOtpSuccess:G,onFireVerifyPopOnClickAnalytics:Q,onResendOtp:K,setShowSecretInfo:$t,secretRevealed:Kt,setSecretRevealed:vt,onGetOtp:ae,showDrawerAnimation:aa}),t.jsx(qr,{rightSideComponent:rt&&Se?Gr:null,navBarContainerStyles:{paddingTop:c[2],alignItems:"center",paddingBottom:c[2]},source:"ChargeCardDetailPage",title:e.chargeCard?.cardName??we.strings.empty,subTitle:e.fetchState==="Completed"&&e.chargeCard!=null?t.jsx(eo,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:Ie.colors.grey5,style:{zIndex:3},onBackClick:P,titleStyle:{marginTop:c[0],...se==="small"&&{textAlign:"left"}},leftComponentStyle:se==="small"?{width:"10%"}:void 0,middleComponentStyle:se==="small"?{width:"80%"}:void 0,rightComponentStyle:se==="small"?{width:"10%"}:void 0}),t.jsx(Ja,{phoneNumberPopupDescription:xe.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Rr,showPhoneNumberPopup:Er,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:j,onVerifyOtpSuccess:je=>{G(je),le?at(!0):$t(!0)},onFireVerifyPopOnClickAnalytics:Q,setShowOtpPopup:Fr,onResendOtp:K,setShowPhoneNumberPopup:qt,onGetOtp:ae}),zr&&t.jsx(oc,{controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,chargeCardDetailView:e,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,signedInUser:T,isDebitCard:Se,cardIssuedByRoles:k,cardHolderRoles:R,loggedInUserRole:Y,cardIssuedByDepartmentName:O,cardHolderDepartmentName:z,classListFetchState:d,currentLimitAmount:e.chargeCard?.limit??{amount:0,currencyCode:we.currency.countryCode,currencySymbol:we.currency.currencySymbol},currentSpentAmount:e.chargeCard?.balance??{amount:0,currencyCode:we.currency.countryCode,currencySymbol:we.currency.currencySymbol},maxLimitAmount:Se?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:e.creditAccount.limit,isDisabled:Se&&e.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>St(!1),onSubmitClick:je=>{if(e.chargeCard){const qe={amount:je,currencyCode:e.chargeCard.limit.currencyCode,currencySymbol:e.chargeCard.limit.currencySymbol};ie(e.chargeCard.id,qe,e.chargeCard.creditLimitFrequency,ye("0,0.[00]",qe))}},recommendations:e?.chargeCard?.recommendations}),e.fetchState==="Error"?t.jsxs(Dc,{windowSize:se,children:[t.jsx(Tc,{onClick:ee,"data-testid":Z("reload-card-detail"),children:t.jsx(Fc,{})}),t.jsx(Rc,{children:we.reloadPage.label})]}):t.jsxs(bc,{children:[t.jsx(pn,{controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,isDebitCard:Se,chargeCardCashbackDetailState:L,cardIssuedByRoles:k,cardIssuedByDepartmentName:O,cardHolderRoles:R,cardHolderDepartmentName:z,classListFetchState:d,chargeCardDetailView:e,spent:sa,isCardNotPending:Lt,cardOwnerName:kt,appleWalletLink:X,googleWalletLink:B,addressToShow:ra,secretRevealed:Kt,isOwnCard:rt,vgsVaultId:l,showSecretInfo:Ge,isSandboxEnv:J,isCardDetailErrored:Xt,signedInUserToken:V,selectedColor:oa,cardDetailsFetchState:ea,setCardDetailsFetchState:ta,setIsCardDetailErrored:Jt,setSecretRevealed:vt,isCardDetailFetching:ca,handleColorCodeClick:da,onFireOnClickAnalytics:W,setShowPhoneNumberPopup:qt,setShowChangeSpendLimitPopup:St,setShowSecretInfo:$t,isOwnerNameCopied:yt,isAddressCopied:bt,onOwnerNameCopyClick:Br,onAddressCopyClick:Wr,showUpdateSpendLimitAction:_r}),te?Zr?t.jsxs($c,{windowSize:se,children:[t.jsx(Oc,{}),t.jsx(kc,{children:` ${xe.payEarly.paymentOf} ${ye("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${xe.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(yc.visual.MMMDFormat)} ${xe.payEarly.isProcessing} ${xe.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):jt?Ye?t.jsxs(Tr,{onClick:()=>{ce(!0)},windowSize:se,children:[t.jsx(_a,{windowSize:se}),t.jsxs(Ic,{children:[t.jsx(Za,{children:xe.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(jc,{className:"pay-now-button",children:[xe.payEarly.payNow,t.jsx(vc,{})]})]})]}):t.jsxs(Sc,{windowSize:se,children:[t.jsx(_a,{windowSize:se}),t.jsx(Ac,{children:t.jsx(Za,{children:xe.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,rt&&se!=="small"&&Lt&&Se===!1?t.jsx(ro,{style:{marginTop:jt?a.sp5:a.sp4},classListFetchState:d,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardDetailView:e,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,cardIssuedByRoles:k,cardHolderRoles:R,cardIssuedByDepartmentName:O,cardHolderDepartmentName:z,isDebitCard:Se,appleWalletLink:X,googleWalletLink:B,setWalletType:Or,setIsAddToWalletDrawerOpen:Qt,showDrawerAnimation:aa}):null,t.jsxs(Yc,{windowSize:se,isOwnCard:rt,isMobileOrTabletScreen:la,children:[Lt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(Pc,{windowSize:se,children:[xe.cardDetails.transactionListTitle,t.jsx(Pt,{display:"flex",placement:"right",title:t.jsx(Vc,{children:xe.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(Mc,{})})]}),t.jsxs(Hc,{windowSize:se,children:[t.jsx(Uc,{windowSize:se,children:t.jsx(_c,{})}),t.jsxs(zc,{windowSize:se,children:[t.jsxs(Nc,{children:[t.jsx(Lc,{children:xe.aiCardAgentText}),we.strings.space,xe.receiptBotMessage,we.strings.space]}),t.jsxs(Wc,{"data-testid":Z("charge-card-detail-copy-email"),onClick:Nr,onMouseEnter:()=>he(!0),onMouseLeave:()=>he(!1),children:[t.jsx(Bc,{children:e.chargeCardConfig.receiptBotEmail}),Ue===!0?t.jsxs(Ya,{children:[t.jsx(Gc,{}),t.jsx(Ga,{children:t.jsx(qa,{shouldDisplay:M||Ue,color:p.primaryDark,children:we.copyToClipBoard.copied})})]}):t.jsxs(Ya,{children:[t.jsx(Zc,{color:M?Ie.colors.primary:void 0}),t.jsx(Ga,{children:t.jsx(qa,{shouldDisplay:M&&se!=="small",children:we.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(cd,{cardStatusCode:e.chargeCard?.status.code,cardCodeType:e.chargeCard?.type.code,cardId:x,documentAiReceiptMaxSizeLimit:F,uploadReceiptsFetchStateByTransactionId:e.uploadReceiptsFetchStateByTransactionId,isSnackbarOpen:q,uploadReceiptsShowTickByTransactionId:e.uploadReceiptsShowTickByTransactionId,isViewReceiptClickedImmediatelyAfterUploadTransactionId:e.isViewReceiptClickedImmediatelyAfterUploadTransactionId,receiptRequiredAboveAmount:e.chargeCardConfig.receiptRequiredAboveAmount,cardsEndPoint:i,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:m,authParams:u,hideSorting:s,transactions:e.transactions,cardHolderUser:e.chargeCard?.cardHolderUser,uiState:e.uiState,fetchState:e.transactionListFetchState.fetchState,isAiCategorizationEnabledForCardsTransactions:e.chargeCardConfig.isAiCategorizationEnabledForCardsTransactions,onReloadTransactions:ee,onFetchChargeCardTransactionList:H,isOwnCard:rt,onColumnSortConfigChanged:de,removeSnackbar:De,onChargeCardTransactionRowClick:ze,onUpdateScrollYOffset:Te,onUploadReceiptComplete:re,updateChargeCardTransactionAttachments:I,updateChargeCardTransactionUploadReceiptsFetchStatus:v,updateChargeCardTransactionReceiptsShowTick:U,updateChargeCardTransactionIsViewReceiptClicked:N})]})]})]})},Ft=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:d,productInformation:h,cashbackInformation:m,creditAccountInformation:u,debitAccountInformation:s,creditAccount:x,creditAccountRepayment:l,isDebitCard:f,isChargeCardAdmin:w,analytics:n,controllerEmails:C,actionDetails:b,actionField:L})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!d||x.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(f&&w)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(C,h,"Cards Detail","Copy","copied",L,b,m,u,s)},bc=r.div``,Tr=r.div`
1260
+ `,ke={bottomContentContainerPadding:new D(c[3],c[8]),styledAIIconContainerSize:new D(c[3],c[3]),bannerWrapperMarginLeftRight:new D(c[3],c[8]),payNowSectionPaddingLeftRight:new D(c[3],c[0]),styledHighImportanceIconMarginRight:new D(c[0],c[1])},{common:we,spendManagement:xc,dateFormat:yc}=pe.getLocalizedStrings(),xe=xc.chargeCard,ll=({chargeCardDetailView:e,cardsEndPoint:i,classListFetchState:d,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:m,authParams:u,hideSorting:s,cardId:x,vgsVaultId:l,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardCashbackDetailState:j,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:A,cardIssuedByRoles:k,cardIssuedByDepartmentName:O,cardHolderRoles:R,cardHolderDepartmentName:z,loggedInUserRole:q,appleWalletLink:K,googleWalletLink:B,signedInUser:T,signedInUserToken:V,isSandboxEnv:J,isEarlyPayEnabled:te,documentAiReceiptMaxSizeLimit:F,isSnackbarOpen:G,onFireOnClickAnalytics:W,onUpdateDebitCardPinAttempt:ne,onFireVerifyPopOnClickAnalytics:Q,onBackClick:P,onReloadTransactions:ee,onFetchChargeCardTransactionList:H,onGetOtp:ae,onResendOtp:X,onVerifyOtp:L,onVerifyOtpSuccess:Y,onColorCodeChange:E,onColumnSortConfigChanged:de,updateChargeCardTransactionAttachments:I,updateChargeCardTransactionUploadReceiptsFetchStatus:v,updateChargeCardTransactionReceiptsShowTick:U,updateChargeCardTransactionIsViewReceiptClicked:N,onUploadReceiptComplete:re,removeSnackbar:De,onChargeCardTransactionRowClick:ze,onUpdateScrollYOffset:Te,updateSpendLimit:ie,shouldOpenCreditCardPaymentDrawer:ce})=>{const oe=o.useRef(!0),Ie=Be(),se=fe(),lt=nt(),We=st().analytics,[,tt]=Xa(),[Ue,ht]=o.useState(!1),[M,he]=o.useState(!1),[le,_e]=o.useState(!1),[Ze,at]=o.useState(!1),[yt,Yt]=o.useState(!1),[bt,qt]=o.useState(!1),[Rr,Fr]=o.useState(!1),[Er,Gt]=o.useState(!1),[zr,St]=o.useState(!1),[Ye,$t]=o.useState(!1),[Xt,vt]=o.useState(!1),[Kt,Jt]=o.useState(!1),[Pr,Qt]=o.useState(!1),[Mr,Or]=o.useState("apple"),[ea,ta]=o.useState({number:!1,cvv:!1});o.useEffect(()=>{Ye===!1&&vt(!1)},[Ye]);const aa=o.useRef("noAnimation"),rt=e.chargeCard?.cardHolderUserId===T.userId,kt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,ra=e.chargeCard?.billingAddress,qe=Ne.hasChargeCardAdminLevelAccess(lt.loggedInUserRoleMap),{text1:Vr,text2:Hr}=qr(ra),ia=`${Vr} ${Hr}`,Lt=e.chargeCard?.isDeclinedTransaction===!0,Nr=()=>{Ft({chargeCardDetailView:e,chargeCardCashbackDetailState:j,isChargeCardFeatureEnabled:w,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:Se,isChargeCardAdmin:qe,analytics:We,controllerEmails:f,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),tt(e.chargeCardConfig.receiptBotEmail),ht(!0)},Br=()=>{W("card owner copied"),Ft({chargeCardDetailView:e,chargeCardCashbackDetailState:j,isChargeCardFeatureEnabled:w,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:Se,isChargeCardAdmin:qe,analytics:We,controllerEmails:f,actionField:"Card Owner",actionDetails:kt}),tt(kt),Yt(!0)},Wr=()=>{W("billing address copied"),Ft({chargeCardDetailView:e,chargeCardCashbackDetailState:j,isChargeCardFeatureEnabled:w,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:Se,isChargeCardAdmin:qe,analytics:We,controllerEmails:f,actionField:"Billing Address",actionDetails:ia}),tt(ia),qt(!0)};o.useEffect(()=>{Ue===!0&&setTimeout(()=>{ht(!1)},800),yt===!0&&setTimeout(()=>{Yt(!1)},800),bt===!0&&setTimeout(()=>{qt(!1)},800)},[yt,bt,Ue]);const[Gc,Ur]=o.useState(!1),[oa,na]=o.useState(e.chargeCard?.cardColorCode!=null?new He(e.chargeCard.cardColorCode):void 0);o.useEffect(()=>{e.chargeCard?.cardColorCode!=null&&na(new He(e.chargeCard.cardColorCode))},[e.chargeCard?.cardColorCode]);const sa={amount:e.chargeCard!=null?e.chargeCard.balance.amount:0,currencyCode:e.chargeCard!=null?e.chargeCard.balance.currencyCode:we.currency.countryCode,currencySymbol:e.chargeCard!=null?e.chargeCard.balance.currencySymbol:we.currency.currencySymbol};o.useEffect(()=>{oe.current===!0?oe.current=!1:W(Ye===!1?"card details hidden":"card detail revealed")},[Ye]);const da=(Le,Ge)=>{if(Ge===!0){const pt=qi(Le.toString())??we.strings.empty;W("color selected",pt),E(pt),Ur(!1)}na(Le)},ca=Le=>{const{cvv:Ge,number:pt}=Le;return Ge===!0||pt===!0},{isMobileOrTabletScreen:la}=Ka(),jt=e.chargeCard?.status.code!=="request_on_hold"&&e.chargeCard?.status.code!=="inactive";o.useEffect(()=>{(e.updateChargeCardLimitFetchState.fetchState==="Completed"||e.updateChargeCardLimitFetchState.fetchState==="Error")&&St(!1)},[e.updateChargeCardLimitFetchState]);const Se=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",_r=qe&&e.chargeCard?.status.code==="active"&&sa.amount<(Se?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit.amount??0:e.creditAccount.limit.amount),Zr=e.creditAccountRepayment.initiatedRepayments.amount>0&&qe&&Lt,Yr=t.jsx("div",{children:t.jsx(Gr,{entity:"debit_cards",onOptionSelection:Le=>{Le==="changePin"&&(V==null||V.expiry.isBefore(new Date)?ae(e.loggedInUserPhone):at(!0),_e(!0))},isMoreOption:!0,options:[{value:"changePin",label:xe.cardDetails.changePin}],customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}})}})});return t.jsxs(Ec,{children:[Ze&&e.chargeCard?.cardProviderID!=null?t.jsx(Kd,{signedInUserToken:V,vgsVaultId:l,onCancelClick:()=>{at(!1),_e(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{at(!1),_e(!0)},onUpdateDebitCardPinAttempt:ne}):null,la?null:t.jsx(Ed,{controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardCashbackDetailState:j,creditAccountRepayment:e.creditAccountRepayment,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,creditAccount:e.creditAccount,selectedColor:oa,walletType:Mr,onFireOnClickAnalytics:W,isSandboxEnv:J,chargeCardDetailView:e,vgsVaultId:l,signedInUserToken:V,showSecretInfo:Ye,changePinInProcess:le,setShowChangePinPopup:at,isCardDetailErrored:Kt,cardDetailsFetchState:ea,setCardDetailsFetchState:ta,setIsCardDetailErrored:Jt,isCardDetailFetching:ca,handleColorCodeClick:da,isDrawerOpen:Pr,setIsAddToWalletDrawerOpen:Qt,onVerifyOtp:L,onVerifyOtpSuccess:Y,onFireVerifyPopOnClickAnalytics:Q,onResendOtp:X,setShowSecretInfo:$t,secretRevealed:Xt,setSecretRevealed:vt,onGetOtp:ae,showDrawerAnimation:aa}),t.jsx(Xr,{rightSideComponent:rt&&Se?Yr:null,navBarContainerStyles:{paddingTop:c[2],alignItems:"center",paddingBottom:c[2]},source:"ChargeCardDetailPage",title:e.chargeCard?.cardName??we.strings.empty,subTitle:e.fetchState==="Completed"&&e.chargeCard!=null?t.jsx(ao,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:Ie.colors.grey5,style:{zIndex:3},onBackClick:P,titleStyle:{marginTop:c[0],...se==="small"&&{textAlign:"left"}},leftComponentStyle:se==="small"?{width:"10%"}:void 0,middleComponentStyle:se==="small"?{width:"80%"}:void 0,rightComponentStyle:se==="small"?{width:"10%"}:void 0}),t.jsx(Ja,{phoneNumberPopupDescription:xe.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Rr,showPhoneNumberPopup:Er,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:L,onVerifyOtpSuccess:Le=>{Y(Le),le?at(!0):$t(!0)},onFireVerifyPopOnClickAnalytics:Q,setShowOtpPopup:Fr,onResendOtp:X,setShowPhoneNumberPopup:Gt,onGetOtp:ae}),zr&&t.jsx(oc,{controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,chargeCardDetailView:e,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,signedInUser:T,isDebitCard:Se,cardIssuedByRoles:k,cardHolderRoles:R,loggedInUserRole:q,cardIssuedByDepartmentName:O,cardHolderDepartmentName:z,classListFetchState:d,currentLimitAmount:e.chargeCard?.limit??{amount:0,currencyCode:we.currency.countryCode,currencySymbol:we.currency.currencySymbol},currentSpentAmount:e.chargeCard?.balance??{amount:0,currencyCode:we.currency.countryCode,currencySymbol:we.currency.currencySymbol},maxLimitAmount:Se?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:e.creditAccount.limit,isDisabled:Se&&e.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>St(!1),onSubmitClick:Le=>{if(e.chargeCard){const Ge={amount:Le,currencyCode:e.chargeCard.limit.currencyCode,currencySymbol:e.chargeCard.limit.currencySymbol};ie(e.chargeCard.id,Ge,e.chargeCard.creditLimitFrequency,ye("0,0.[00]",Ge))}},recommendations:e?.chargeCard?.recommendations}),e.fetchState==="Error"?t.jsxs(Dc,{windowSize:se,children:[t.jsx(Tc,{onClick:ee,"data-testid":Z("reload-card-detail"),children:t.jsx(Fc,{})}),t.jsx(Rc,{children:we.reloadPage.label})]}):t.jsxs(bc,{children:[t.jsx(pn,{controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,isDebitCard:Se,chargeCardCashbackDetailState:j,cardIssuedByRoles:k,cardIssuedByDepartmentName:O,cardHolderRoles:R,cardHolderDepartmentName:z,classListFetchState:d,chargeCardDetailView:e,spent:sa,isCardNotPending:jt,cardOwnerName:kt,appleWalletLink:K,googleWalletLink:B,addressToShow:ra,secretRevealed:Xt,isOwnCard:rt,vgsVaultId:l,showSecretInfo:Ye,isSandboxEnv:J,isCardDetailErrored:Kt,signedInUserToken:V,selectedColor:oa,cardDetailsFetchState:ea,setCardDetailsFetchState:ta,setIsCardDetailErrored:Jt,setSecretRevealed:vt,isCardDetailFetching:ca,handleColorCodeClick:da,onFireOnClickAnalytics:W,setShowPhoneNumberPopup:Gt,setShowChangeSpendLimitPopup:St,setShowSecretInfo:$t,isOwnerNameCopied:yt,isAddressCopied:bt,onOwnerNameCopyClick:Br,onAddressCopyClick:Wr,showUpdateSpendLimitAction:_r}),te?Zr?t.jsxs($c,{windowSize:se,children:[t.jsx(Oc,{}),t.jsx(kc,{children:` ${xe.payEarly.paymentOf} ${ye("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${xe.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(yc.visual.MMMDFormat)} ${xe.payEarly.isProcessing} ${xe.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):Lt?qe?t.jsxs(Tr,{onClick:()=>{ce(!0)},windowSize:se,children:[t.jsx(_a,{windowSize:se}),t.jsxs(Ic,{children:[t.jsx(Za,{children:xe.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(Lc,{className:"pay-now-button",children:[xe.payEarly.payNow,t.jsx(vc,{})]})]})]}):t.jsxs(Sc,{windowSize:se,children:[t.jsx(_a,{windowSize:se}),t.jsx(Ac,{children:t.jsx(Za,{children:xe.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,rt&&se!=="small"&&jt&&Se===!1?t.jsx(ro,{style:{marginTop:Lt?a.sp5:a.sp4},classListFetchState:d,controllerEmails:f,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:b,chargeCardDetailView:e,creditAccount:A,creditAccountRepayment:e.creditAccountRepayment,productInformation:S,cashbackInformation:$,creditAccountInformation:y,debitAccountInformation:g,cardIssuedByRoles:k,cardHolderRoles:R,cardIssuedByDepartmentName:O,cardHolderDepartmentName:z,isDebitCard:Se,appleWalletLink:K,googleWalletLink:B,setWalletType:Or,setIsAddToWalletDrawerOpen:Qt,showDrawerAnimation:aa}):null,t.jsxs(qc,{windowSize:se,isOwnCard:rt,isMobileOrTabletScreen:la,children:[jt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(Pc,{windowSize:se,children:[xe.cardDetails.transactionListTitle,t.jsx(Pt,{display:"flex",placement:"right",title:t.jsx(Vc,{children:xe.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(Mc,{})})]}),t.jsxs(Hc,{windowSize:se,children:[t.jsx(Uc,{windowSize:se,children:t.jsx(_c,{})}),t.jsxs(zc,{windowSize:se,children:[t.jsxs(Nc,{children:[t.jsx(jc,{children:xe.aiCardAgentText}),we.strings.space,xe.receiptBotMessage,we.strings.space]}),t.jsxs(Wc,{"data-testid":Z("charge-card-detail-copy-email"),onClick:Nr,onMouseEnter:()=>he(!0),onMouseLeave:()=>he(!1),children:[t.jsx(Bc,{children:e.chargeCardConfig.receiptBotEmail}),Ue===!0?t.jsxs(qa,{children:[t.jsx(Yc,{}),t.jsx(Ya,{children:t.jsx(Ga,{shouldDisplay:M||Ue,color:p.primaryDark,children:we.copyToClipBoard.copied})})]}):t.jsxs(qa,{children:[t.jsx(Zc,{color:M?Ie.colors.primary:void 0}),t.jsx(Ya,{children:t.jsx(Ga,{shouldDisplay:M&&se!=="small",children:we.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(cd,{cardStatusCode:e.chargeCard?.status.code,cardCodeType:e.chargeCard?.type.code,cardId:x,documentAiReceiptMaxSizeLimit:F,uploadReceiptsFetchStateByTransactionId:e.uploadReceiptsFetchStateByTransactionId,isSnackbarOpen:G,uploadReceiptsShowTickByTransactionId:e.uploadReceiptsShowTickByTransactionId,isViewReceiptClickedImmediatelyAfterUploadTransactionId:e.isViewReceiptClickedImmediatelyAfterUploadTransactionId,receiptRequiredAboveAmount:e.chargeCardConfig.receiptRequiredAboveAmount,cardsEndPoint:i,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:m,authParams:u,hideSorting:s,transactions:e.transactions,cardHolderUser:e.chargeCard?.cardHolderUser,uiState:e.uiState,fetchState:e.transactionListFetchState.fetchState,isAiCategorizationEnabledForCardsTransactions:e.chargeCardConfig.isAiCategorizationEnabledForCardsTransactions,onReloadTransactions:ee,onFetchChargeCardTransactionList:H,isOwnCard:rt,onColumnSortConfigChanged:de,removeSnackbar:De,onChargeCardTransactionRowClick:ze,onUpdateScrollYOffset:Te,onUploadReceiptComplete:re,updateChargeCardTransactionAttachments:I,updateChargeCardTransactionUploadReceiptsFetchStatus:v,updateChargeCardTransactionReceiptsShowTick:U,updateChargeCardTransactionIsViewReceiptClicked:N})]})]})]})},Ft=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:d,productInformation:h,cashbackInformation:m,creditAccountInformation:u,debitAccountInformation:s,creditAccount:x,creditAccountRepayment:l,isDebitCard:f,isChargeCardAdmin:w,analytics:n,controllerEmails:C,actionDetails:b,actionField:j})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!d||x.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(f&&w)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(C,h,"Cards Detail","Copy","copied",j,b,m,u,s)},bc=r.div``,Tr=r.div`
1261
1261
  background: ${p.important};
1262
1262
  display: flex;
1263
1263
  align-items: center;
@@ -1284,7 +1284,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1284
1284
  padding-left: ${({windowSize:e})=>ke.payNowSectionPaddingLeftRight.valuePx(e)};
1285
1285
  padding-right: ${({windowSize:e})=>ke.payNowSectionPaddingLeftRight.valuePx(e)};
1286
1286
  gap: ${a.sp2};
1287
- `,_a=r(di)`
1287
+ `,_a=r(ci)`
1288
1288
  color: ${e=>e.theme.colors.grey5};
1289
1289
  margin-right: ${({windowSize:e})=>ke.styledHighImportanceIconMarginRight.valuePx(e)};
1290
1290
  min-width: ${a.sp4};
@@ -1294,7 +1294,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1294
1294
  path:nth-child(3) {
1295
1295
  stroke: ${p.important};
1296
1296
  }
1297
- `,vc=r(ci)`
1297
+ `,vc=r(li)`
1298
1298
  color: ${e=>e.theme.colors.grey5};
1299
1299
  min-width: 12px;
1300
1300
  width: 12px;
@@ -1303,20 +1303,20 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1303
1303
  color: ${e=>e.theme.colors.grey5};
1304
1304
  `,kc=r(Ot)`
1305
1305
  color: ${p.brandColorGoldDark};
1306
- `,jc=r(rr)`
1306
+ `,Lc=r(rr)`
1307
1307
  color: ${e=>e.theme.colors.grey5};
1308
1308
  gap: ${a.sp1};
1309
1309
  cursor: pointer;
1310
1310
  display: inline-flex;
1311
1311
  align-items: center;
1312
1312
  white-space: nowrap;
1313
- `,Lc=r(ui)`
1313
+ `,jc=r(mi)`
1314
1314
  color: ${e=>e.theme.colors.brandColorSapphire};
1315
1315
  ${({theme:e})=>e.mode==="dark"&&`color: ${p.brandColorPearl};`}
1316
1316
  `,Dc=r.div`
1317
1317
  display: flex;
1318
1318
  width: 100%;
1319
- height: calc(100vh - ${e=>ni.valuePx(e.windowSize)});
1319
+ height: calc(100vh - ${e=>si.valuePx(e.windowSize)});
1320
1320
  flex-direction: column;
1321
1321
  justify-content: center;
1322
1322
  align-items: center;
@@ -1401,16 +1401,16 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1401
1401
  color: ${e=>e.theme.colors.primary};
1402
1402
  `,Wc=r.span`
1403
1403
  cursor: pointer;
1404
- `,Ga=r.span`
1404
+ `,Ya=r.span`
1405
1405
  position: absolute;
1406
1406
  bottom: -${a.sp5};
1407
1407
  z-index: 10;
1408
1408
  left: ${a.sp2};
1409
- `,Ya=r.span`
1409
+ `,qa=r.span`
1410
1410
  position: relative;
1411
1411
  margin-left: ${a.sp1};
1412
1412
  top: 2px;
1413
- `,qa=r(ge)`
1413
+ `,Ga=r(ge)`
1414
1414
  position: relative;
1415
1415
  background: ${e=>e.theme.colors.black};
1416
1416
  color: ${e=>e.color!=null?e.color:e.theme.colors.grey1};
@@ -1425,7 +1425,7 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1425
1425
  height: ${e=>ke.styledAIIconContainerSize.valuePx(e.windowSize)};
1426
1426
  top: ${a.sp1};
1427
1427
  position: ${e=>e.windowSize==="small"?"relative":"static"};
1428
- `,_c=r(pi)`
1428
+ `,_c=r(ui)`
1429
1429
  color: ${e=>e.theme.colors.brandColorJade};
1430
1430
  width: 100%;
1431
1431
  height: 100%;
@@ -1437,11 +1437,11 @@ import{u as Be,K as fe,z as nt,cT as st,eK as Ka,l as Ne,hO as Yr,a8 as He,F as
1437
1437
  &:hover {
1438
1438
  color: ${e=>e.theme.colors.primary};
1439
1439
  }
1440
- `,Gc=r(dt)`
1440
+ `,Yc=r(dt)`
1441
1441
  height: ${a.sp3};
1442
1442
  width: ${a.sp3};
1443
1443
  color: ${p.success};
1444
- `,Yc=r.div`
1444
+ `,qc=r.div`
1445
1445
  padding-top: ${e=>e.isOwnCard?e.isMobileOrTabletScreen?a.sp3:a.sp4:a.sp5};
1446
1446
  padding-bottom: ${a.sp4};
1447
- `;export{Cl as default};
1447
+ `;export{ll as default};