@zeniai/web-cockpit-ui 1.15.9-dev → 1.15.10-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 (281) hide show
  1. package/dist/assets/{ACHDetailsPage-BVkQ4K87-2mUod8Ze.js → ACHDetailsPage-BtE9TY6d-C9maaZu_.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BRTJZGiA-Uj0zJbS1.js → AIPerformancePage-BkDJ2ST0-Dzxt81Gg.js} +12 -12
  3. package/dist/assets/AccountInfoPage-CTbeJLI7-C29oNV5j.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-PRtq3bFi-vLA60ZOz.js → AccountInfoPageContent-BUTcEduM-DVKpBXHq.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BPtkVnq9-Bo6KEtUJ.js → AccountLockedInfoModal-v6aQO7JB-xH0-ZPkG.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-vJYKDiYF-DDXxWgsE.js → AccountReconDetailsDrawerPage-DIAg-5PN-B1-bYNLU.js} +1 -1
  7. package/dist/assets/{AccountRow-DvTUqeYB-Coj4ZTWN.js → AccountRow-BVKk7u7h-CDJSAP1l.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-B8BaHMXs-D4T6qOCp.js → AccountsPromoCardStack-CM2kVta7-D4DDSl1Z.js} +17 -17
  9. package/dist/assets/{AddAddressForCardDrawer-B7RkZqGh-CR2hhnGw.js → AddAddressForCardDrawer-DDTSYpDb-gu3pix_O.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DuHNwXF4-B3zEKxpl.js → AddToWalletPage-D2Qg0MR_-DL2aRvxj.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BK1LaJ_w-yS7wx6wk.js → AgingReportsPage-_mSqD2hW-Boesp-Ca.js} +1 -1
  12. package/dist/assets/{AllUserItems-CH9ybX41-BtFVBAV4.js → AllUserItems-CLsMcXeg-B7yfRaza.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-pA0gVWwq-0kF3KvyT.js → ApAgingDetailPage-BsJuvMuy-C0lGm0Hq.js} +4 -4
  14. package/dist/assets/{AppBasePage-DhCn4MFY-D-3ZnoCB.js → AppBasePage-BxGd2ny5-CxKcTkZB.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-oxbBkFJu-CMnZN7jn.js → AppDrawerContent-DzQ2jw8d-B8p2K7qi.js} +5 -5
  16. package/dist/assets/{ApprovalRulesSettingsPage-B2Bp687h-BxxU0eeP.js → ApprovalRulesSettingsPage-6n8xLG5c-9HDMDjw5.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DDYQFnOL-BvAsGOBT.js → ArAgingChart-B3T4qk8t-CVyLgEv4.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-BHX3sNTi-BYBOdJhr.js → ArAgingDetailPage-pdf0VjeI-BUmI9Ihk.js} +5 -5
  19. package/dist/assets/{AttachmentView-BreMzQ_m-BNxecg_Q.js → AttachmentView-BJfqJ9hP-BtlO-7I1.js} +1 -1
  20. package/dist/assets/{BankAccountSection-1WOCLgt5-BoGJh_uP.js → BankAccountSection-Cd_h3co--DCzIyA5D.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Ddj7HexZ-DdPqPHd3.js → BankAccountWarningSection-Cz9fzMVv-CvaYS3T_.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-9nczNfIe-BzLc4VYR.js → BankConnectionsSettingsPage-P-hobvq_-BOnK_glB.js} +1 -1
  23. package/dist/assets/{BillDetailPage-NeZduyMi-6p7P1QOU.js → BillDetailPage-B-_gbDGZ-BtpvnzvD.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BBTe3n92-C8p-rxLw.js → BillPayApprovalRuleDetailPage-CyoqtTu1-C1sdR4PX.js} +4 -4
  25. package/dist/assets/BillPayApprovalRulesPage-CTRvfoZN-BLcwl2yw.js +241 -0
  26. package/dist/assets/{BillPayPromoPage-DFXybg0r-B5uuR3JI.js → BillPayPromoPage-OYlocjA7-7DEWsR0V.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-CP6gsxaz-BVI06dHo.js → BillPaySetUpPage-B8_IEgff-CAWPUMJX.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-D6BmklmO-DmihnPn_.js → BillingSettingsPage-DqO-9dDI-7RCoKyM1.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D0JHXr9f-D-HkiVRv.js → BillsBulkReviewDrawerPage-B-nfpiM2-CiONs4dM.js} +1 -1
  30. package/dist/assets/{BoxItem-CjZDlBaw-C6EB-mJ-.js → BoxItem-C-LLQ7NS-CyKsGaF0.js} +5 -5
  31. package/dist/assets/{BusinessVerificationPage-cqBBWqBX-CZxCO1R2.js → BusinessVerificationPage-BD-G0QbW-BuRfqr04.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BFe7Gawq-B8S1I_DT.js → CardNumberSubText-CPcuTV6V-CmAy0kVV.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-4R2WSvUG-DpCyR1av.js → CashbackDetailPage-CzEHO7NM-DhooXBnW.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-DgvJC7HX-DrGkLiOb.js → ChargeCardDetailPage-DpA9C48D-Cg9lUs5_.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-y3xkEXMi-Dfnd6MIF.js → ChargeCardListPage-igseWp-z-CgO4ULTe.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BZVA1znA-1HTc8EZK.js → ChargeCardListTable-C-nM1SEM-CukpO46W.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-DUqCYxCZ-Bi49patK.js → ChargeCardPaymentHistoryPage-TCuBt2Cv-BDmH-kNH.js} +13 -13
  38. package/dist/assets/{ChargeCardPromoPage-BGwXpSoW-CFyoJOm3.js → ChargeCardPromoPage-DEjWh0Ax-DtQMu7KS.js} +10 -10
  39. package/dist/assets/{ChargeCardSetupPage-CH6gSyU_-2ky3cmbf.js → ChargeCardSetupPage-zdLpdeJV-CBsuPE8U.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-B1FjTF7r-Dy-EmhIk.js → ChargeCardStatementsPage-D42XfAtE-RchDbumz.js} +2 -2
  41. package/dist/assets/{CheckDepositDrawerPage-B30gCDxH-DoiHXVEd.js → CheckDepositDrawerPage-DC1L83fB-BCa5n7-H.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-CpOmWQO--CCW_jG6A.js → CollapsableReportTable-BWfFYJbH-BIiPdpTy.js} +74 -74
  43. package/dist/assets/{CompanyOfficerDetailsSection-0lnfwwSs-DTL-A6zC.js → CompanyOfficerDetailsSection-TNyVByDX-D2759MDx.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BPpSNcXb-DiAvuMuN.js → CompanyPassportCard-DjBkQwpn-Dd7qvLcE.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-DwNjeLgb-D9KCZAQQ.js → CompanyPassportPage-CrqL6_wm-C8yNeeq6.js} +12 -12
  46. package/dist/assets/{CompleteProfile-BPllbFai-CKGTWhqU.js → CompleteProfile-BP-MRXpZ-BD6u4U_v.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-DweZPNXH-B1074GKy.js → ConfettiBurst-D2FdlxTA-BPfMfLCc.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-C_tIWYWJ-DrZr7pRF.js → CreateOrEditVendorPage-D2Cuyhtu-CjSilO-g.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-DmYHQq7L-KNs23igZ.js → CreditCardPaymentDrawerPage-LQiWqyEO-5RaHGm67.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-DoUpgUNU-D3sxrlik.js → CurrencySelectField-Dpcv7_rA-DStJFuSr.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-fr40BxEG-BAtGkwek.js → CustomerOnboardingActivationPage-BRWiLUVc-B8_ST9_b.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-BLGGDdc6-DSwc8Dwv.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CbEuqDGK-DBipeF2y.js → CustomerOnboardingDetailPageSkeleton-D4fUQLXG-BvBHzbJv.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-CNolx9VQ-BJ-qYAip.js → CustomerOnboardingNoStepsPage-CxF6ZEAa-CMxQsxHY.js} +2 -2
  55. package/dist/assets/{CustomerOnboardingPage-DrDjl8iB-Dx9AAiNO.js → CustomerOnboardingPage-DKcr5stz-DRi352cJ.js} +1 -1
  56. package/dist/assets/CustomerOnboardingProductSuitePage-B84wAHDe-CoEVNP5O.js +202 -0
  57. package/dist/assets/{Dashboard-C1UoKVNa-DwZITN_K.js → Dashboard-DMAOn7Hi-CGGVivU9.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-b0pHN0Cw-BW6hDiSR.js → DashboardReportPage-UUd1-ITz-DMCD3HWG.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-Dql-Odcw-CrREhWdb.js → DashboardSidebarBackgroundAnimation-BuINHqA--61tWJjrX.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-Buzx5B8J-B4X-L_gR.js → DepositAccTransactionItem-BE8LeqlM-hlhKmXR8.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-DmxWPS6J-CPhkjFGO.js → DepositAccTransactionListPage-DyH-aZDX-DTHKAa1Z.js} +2 -2
  62. package/dist/assets/{DomesticWireDetailsPage-o6cbscCg-D6yaIcSg.js → DomesticWireDetailsPage-Bk5AZOQt-CMcHRFaW.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-CxtxqO0q-Dz3uXEue.js → DownloadOverlay-BOYOF8Po-BwD6Afat.js} +1 -1
  64. package/dist/assets/{DrawerPage-iKzWhzfT-CLN7Nqu9.js → DrawerPage-BGGHNo0X-DCBr8o9E.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-CjM-4H28-mYmRRYC8.js → EditPeoplePage-CEiwvizd-D-zbL-nU.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-BIPtvhlo-COIsNVhm.js → EditReimbursementDetailPage-DBLDLvqO-C54aQF5d.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-B0W-V9jY-CqJeONU8.js → EntityDetailPage-Cd3eku5o-D0l7oH4S.js} +2 -2
  68. package/dist/assets/{EntitySummarySection--ty3w4lI-o5ULFAtA.js → EntitySummarySection-Ddaj1RmO-DBcpL5Yc.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-C62kbOQv-D4JsR6Ol.js → ExpenseAutomationOverviewPage-B_BlqiWf-CaFabiLU.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-KMTXCmGT-DZpekdJc.js → ExpenseAutomationPage-DfUf0zEN-B6VJ2UJy.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-DITkk_1c-BtyionmY.js → ExpressPayPage-Da8lLZso-Cwv7Clar.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-ZSyZuPj0-CJiy9EUi.js → FeaturePreviewPage-CmrPDUFU-5rcSl0eb.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-CaSXYy6M-CzewjFd_.js → FollowStepsSection-DbxSUIzC-BaXmlzKU.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-D1MK5CDU-DobUC1e8.js → GlobalReviewListPage-Du_3tupM--fNfq6rW.js} +1 -1
  75. package/dist/assets/{InformationCardStack-WI0CkBUF-D7YCWLUH.js → InformationCardStack-Bx_9X95v-xPOrStCv.js} +3 -3
  76. package/dist/assets/{InsightsCardStack-28f145Lw-BuefuxqU.js → InsightsCardStack-Xn2rGwX0-BAx1TkHE.js} +1 -1
  77. package/dist/assets/{InsightsSection-iq6BFe-O-DA4Jx3vy.js → InsightsSection-CwyGEE7C-BgS40gth.js} +1 -1
  78. package/dist/assets/{IntegrationsSettingsPage-QfH-2B7s-BNyYW5Gn.js → IntegrationsSettingsPage-CEL26-eE-DfibyIun.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-DhNqaJ-7-RtzP87XE.js → InternationalWireSwiftDetailsPage-IUz-DwAH-CGr6Gc70.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-CRnGH05I-vQbDV8jX.js → InternationalWireVerificationPage-C66rHdsi-fqJ5C72A.js} +1 -1
  81. package/dist/assets/{InviteFormPage-CZ9su_ZA-CsfVdhXE.js → InviteFormPage-Do-6PG8h-C-rzmYCh.js} +1 -1
  82. package/dist/assets/{InvitePageListView-Db5vL4dK-NFzFyNlR.js → InvitePageListView-DYKcMtIL-nvuj34Qe.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-C7Ij2l1O-Dbf_TXXj.js → InvitePeoplePage-C2SmS7y8-BN_wFYgu.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-DEchJrtp-C92WVr8V.js → InvoiceUploadSection-rCCcSbbj-CFzlgKg9.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-DVdMjgbO-mkT6Gcda.js → IssueChargeCardPage-DZvVosb3-C2W1gOfV.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-jMXXok9a-C_alXtK_.js → LabeledAddressValue-CAX5YTSE-BfVvpzvP.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-BMQUZAxr-B3DdD5Cx.js → LabeledAddressValueField-BraOMDrG-CfBm_XIY.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-CrOtltBs-BgazwPA0.js → LabeledControlledCheckBoxField-DBcPQa79-B_0nrSFr.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-uBMn5XNT-nRQiUi6Y.js → LabeledCountryMultiSelectField-DYid8vvM-BfPOTgp8.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-BMRdFPtx--AY2rrpE.js → LabeledCreatableSingleSelectField-DzB7KPXf-BwfCQ3vj.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-DtsIRcRg-LgfBBRyq.js → LabeledDocumentField-BdQjt44W-EnLXAA71.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-rLwWoG-Y-aM061UXo.js → LabeledDropDownFormattedTextField-BheK7sFg-D0D4XYai.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-BhRoctp7-CtOCs4Ag.js → LabeledMultiSelectField-m2Y_IFK_-DBGqM9Nr.js} +1 -1
  94. package/dist/assets/{LabeledText-Deyr6isW-Cw3u4ojj.js → LabeledText-C6M4paXi-dAFR23d7.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-u_6eDShW-BsQOZeOj.js → LabeledUserSingleSelectWithSubtitlesField-i7qOybJ3-QdNWRUWG.js} +3 -3
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CdAAgiie-C2bU99c9.js → LabeledZeniRolesDropDownField-BhNbXDjb-DgKv1slV.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-A9rqpCyG-CiYf2g5t.js → LinkJETransactionPage--sqluuih-VivXIc5D.js} +2 -2
  98. package/dist/assets/{LockCardPage-CXZAffaX-CqLS5XfJ.js → LockCardPage-Bq0Tu8g8-C6m1-JJ1.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-BRxiaGRC-CJ9ANz96.js → LowBalancePopup-hlu_jjTZ-DZ1z8xe6.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-C1pJBTPa-Dk0xalTl.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-C77X02bo-Dbss_Tqv.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-DUHpAm8_-BkDmu3l4.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-BiR4YUoK-xHaH-3WR.js → MagicLinkSuccessPage-D6ZDRs5F-DQNiPx3u.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-euMftC6_-Bdpw9jEH.js → MagicLinkTitleSection-e9WYeJQA-BdMlQ905.js} +1 -1
  105. package/dist/assets/MailingDetailsSection--Lx7QBGW-BxmiDkr6.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-9Zw-bIsu-Uzll3gZc.js → MyBankConnectionsSettingsPage-Bb7UZRJf-B5XKMom_.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-_MhlKwOj-4wTxZJyE.js → MyPendingActivationChargeCardListPage-BToJWGM8-CjAx4TXN.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-BeSze0xM-Do6mSiuu.js → MyProfileSettingsPage-CGxf42bP-Cc5RApxz.js} +5 -5
  109. package/dist/assets/{NavBarWithPicker-C4ExxFQW-CBeQSmTW.js → NavBarWithPicker-DcDs1pe7-RUEHjYNa.js} +1 -1
  110. package/dist/assets/{NavigationArrow-CJOSZIEx-Vi5xYiOy.js → NavigationArrow-DGSdnTKQ-CgfnFgIs.js} +1 -1
  111. package/dist/assets/{NavigationDots-DgfBVlG5-Begp91rh.js → NavigationDots-BPsFQiss-Dqh0y0c_.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-BXTlzEbY-AVMqLh8E.js → NewGlobalMerchantPage-od2IF__o-BUeowAQW.js} +1 -1
  113. package/dist/assets/{NoDataChart-Bwc_xftR-BPirwt2c.js → NoDataChart-qG0jmc8Z-Dctec7eR.js} +1 -1
  114. package/dist/assets/{NoDataTable-D_VKD0kA-DmQluo-I.js → NoDataTable-CgKT7NGU-CuzMQ4sx.js} +1 -1
  115. package/dist/assets/{NotFoundPage-CLkfFo_R-C8j5B2Ga.js → NotFoundPage-CdUJ7M5p-DbLXvN2b.js} +6 -6
  116. package/dist/assets/{NotificationSettingsPage-CC1kNoTw-DotH2NS5.js → NotificationSettingsPage-D1PKq-ED-ChTF7VDn.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-CEDk57Lr-DAddVQQW.js → NotificationsListConfig-Ctfr3h3b-B2C7Z_Di.js} +1 -1
  118. package/dist/assets/{NotificationsPage-DR_MVYdY-CTDJJoO4.js → NotificationsPage-_5Yn9uTy-mxWdg1FN.js} +33 -33
  119. package/dist/assets/{OpExByVendorPage-CRkTiAd5-C0As_oOM.js → OpExByVendorPage-Dqr805s1-CqYYgxC3.js} +5 -5
  120. package/dist/assets/{OverlayContainerPage-IDTUbuAC-CRFgbke2.js → OverlayContainerPage-IDTUbuAC-YfbThdai.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-BCEjC9iA-DALj3dPN.js → PandLWithForecastPage-CQ5IMW_B-BHtqAaTy.js} +1 -1
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BFcZtn5n-qrQdGMeL.js → PaymentAccountSetupBillingAddressSection-DtOeyTmL-DXDwBnq6.js} +7 -7
  123. package/dist/assets/{PeoplePage-D7D1SrW0-QS6a-b0Q.js → PeoplePage-DEp24LGx-BkYkgzLW.js} +1 -1
  124. package/dist/assets/Preview-XG6ky5VX.js +1 -0
  125. package/dist/assets/{ProductsCarousel-CSUU4sEb-_cwSUdhx.js → ProductsCarousel-Dgwws_g9-_dPrFjDV.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-CSisWvqE-flcR83jC.js → PromoBaseCards-wfvFaqMw-CY2jDhRy.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-gTTF-Gc0-DtM6eHvu.js → QBOConnectionDialog-CSMrKgrY-gVbZ-mZ8.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-B2c7ZErC-C8usnCBc.js → QBOSetupSection--FQKYLxN-LYuddynp.js} +7 -7
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DRxHZeeM-BSDkdjQ8.js → ReimbursementApprovalRuleDetailPage-Dzg2pNcJ-BdMg1RhW.js} +5 -5
  130. package/dist/assets/ReimbursementApprovalRulesPage-eyZWsjXs-Du4OL-aC.js +243 -0
  131. package/dist/assets/{ReimbursementDetailPage-C8P6S9yn-CjGqaV3N.js → ReimbursementDetailPage-DnSo6uTd-B2fnQcOh.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-Bv6Eg8CH-iUgCjzha.js → ReimbursementPromoPage-0st3rBmg-BJkFCzXz.js} +4 -4
  133. package/dist/assets/{ReimbursementSetUpPage-CL1j_14z-1ntDkasP.js → ReimbursementSetUpPage-DCMgwGAM-CVZuk20s.js} +5 -5
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BXlm8qfr-DFnWXpWm.js → ReimbursementsBulkReviewDrawerPage-Cx7BlVAb-BW2L-YXt.js} +1 -1
  135. package/dist/assets/{ReloadCard-DQ8-0JyV-DB-bkjWN.js → ReloadCard-8Tiu9Mq9-WidMrFBg.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-BDXux6ow-8eyOx1Yh.js → ReportTableViewSelector-BwBEG73W-D23xRsEe.js} +7 -7
  137. package/dist/assets/{ReportsPage-fjTk3JSs-DUY58vJz.js → ReportsPage-BxXxsNBv-dsPUH8v1.js} +5 -5
  138. package/dist/assets/{RevenueChart-BAlErS9A-BXzh7yRj.js → RevenueChart-D13bncyo-DisVSBsZ.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-CSNmpZKJ-CmkvpWlb.js → ReviewDetailsPage-C5q0Abn_-DCYfD4eU.js} +53 -53
  140. package/dist/assets/{ReviewOverlay-Zcv9Vljd-hWfuTO7b.js → ReviewOverlay-BNnNWFdW-Dc8TbL95.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-D4abtguM-CazMvZo7.js → RoleWithToolTip-DvYf0VUz-DfyQTHhc.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-AzGpMIv9-qvpVTvvJ.js → ScheduleDetailsFixedAssetsPage-DqrwF4kG-YxjHzQUp.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-FXdL5BP_-BIXnOShB.js → ScheduleDetailsPage-CH2lKmlN-Db_nhPQU.js} +1 -1
  144. package/dist/assets/{ScheduleSequenceTable-D4NEi6ZW-FMzTzWLm.js → ScheduleSequenceTable-BzDIvZ9H-BagpGi8M.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-esZWtP8Y.js → ScreenRoutes-l2ZSRE3X.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-DHNGWTAX-B_r28Ehm.js → SetUpAccountSection-DOvqcC8t-DxYvNTsg.js} +1 -1
  147. package/dist/assets/{SignIn-8lCVuAse-CHvndysC.js → SignIn-CBRwaiPC-DSZbn4tf.js} +12 -12
  148. package/dist/assets/SignInScreen-DA-QJIMK.js +1 -0
  149. package/dist/assets/SpendManagementListViewPage-BjdD7zHz-duCSBxrR.js +134 -0
  150. package/dist/assets/SpendManagementPerTabPage-S5zX9fWg-B69ncWCU.js +754 -0
  151. package/dist/assets/{SpendManagementSection-p_rbwPsi-DexNllt-.js → SpendManagementSection-vo9WEGWQ-DV0kvnxH.js} +1 -1
  152. package/dist/assets/{StatementItem-BrFonWga-DiqKGCh-.js → StatementItem-BxnOzchG-C1vR7F9V.js} +5 -5
  153. package/dist/assets/StatementsPage-0BpH6B2F-c3HeY-pH.js +58 -0
  154. package/dist/assets/{StatusSwitcher-BWCVuAz5-D3jo7wqm.js → StatusSwitcher-Cj2oyfqn-GHqh8PSV.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-W-flws9A-BTelX8y_.js → SubTabSwitcher-B-gfkK-k-9khtx1-k.js} +1 -1
  156. package/dist/assets/{SummaryCard-Cy_49HY6-B5IOHtbz.js → SummaryCard-D92z4WU0-Dk2J87_c.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-CgcgC28Q-DPD0nZtS.js → TaskManagementPage-DND-MEly-DfQOsUTI.js} +1 -1
  158. package/dist/assets/{TimeRangeSwitcher-xEM6Ast5-BNVisZRV.js → TimeRangeSwitcher-BCfDT5nQ-BnXndCyZ.js} +11 -11
  159. package/dist/assets/{TimeframeSwitcher-CJnjD8oY-C839RlNd.js → TimeframeSwitcher-CCMyvSSI-DIRa_Jc4.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-CTsXGTZM-Y9gaGt4o.js → TimeframeSwitcherWithToggle-Di1hQ-WC-DVlTpSsC.js} +2 -2
  161. package/dist/assets/{TopExCard-CK7rIKlo-BNMHqp-4.js → TopExCard-B4CpuO-v-CxDodwtl.js} +3 -3
  162. package/dist/assets/{TopExDetailPage-Dc310wcN-BBhzZoVz.js → TopExDetailPage-BWdJnu-c-DDcIl_DR.js} +6 -6
  163. package/dist/assets/{TransactionDetailPage-BsSYhKxb-BeUI9jq4.js → TransactionDetailPage-CL_VbaJy-BG7mpSq_.js} +1 -1
  164. package/dist/assets/{TransactionList-CKgtf7lj-CeKhT4wB.js → TransactionList-CSfzB0gM-Dw6vqliW.js} +6 -6
  165. package/dist/assets/{TransactionListBig-DY6b3Ezl-DffujAvB.js → TransactionListBig-Dkdt0pvn-BZrDL6CH.js} +1 -1
  166. package/dist/assets/{TransactionListPage-CDc30p4A-D4rmxF8E.js → TransactionListPage-DBAqpKkc-SGyXtVgm.js} +1 -1
  167. package/dist/assets/{TransactionVendorDetailPage-Ca8K8WSI-CLXVHv_c.js → TransactionVendorDetailPage-BPb6IGMd-D5zJvpum.js} +1 -1
  168. package/dist/assets/{TransferDrawerPage-xTOs2aDo-Cdu71p0I.js → TransferDrawerPage-oyNu_G0D-C-dL6Rya.js} +1 -1
  169. package/dist/assets/{TreasuryOverviewPage-CnJn5fQJ-BMNFC9wv.js → TreasuryOverviewPage-DIPEykKC-C5rL0Wer.js} +9 -9
  170. package/dist/assets/{TreasuryPromoPage-PW6ExJSX-C2E-AneM.js → TreasuryPromoPage-wmxtzW1N-BB1K5PqR.js} +1 -1
  171. package/dist/assets/{TreasuryStatementsPage-Dh5jSrh1-DVLMH1-Q.js → TreasuryStatementsPage-vHS-mb3R-Ddrpn04Q.js} +2 -2
  172. package/dist/assets/{TreasuryTaxLetterPage-K4MAoNHw-C_oxTn6C.js → TreasuryTaxLetterPage-3fiYxv2D-Dg0xbQQQ.js} +1 -1
  173. package/dist/assets/{TrendChart-DGkb9XC6-TghRUAyK.js → TrendChart-dVd4QdGQ-CLKuTzb2.js} +2 -2
  174. package/dist/assets/{TrendWithTransactions-BhIw1vzx-DxHaizu4.js → TrendWithTransactions-zZUv_Qrs-BElxtx49.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-U-ABmUHs-HkDX3n37.js → UncategorizedAccountsMappingPage-CcyG64pA-0yQuhcbM.js} +5 -5
  176. package/dist/assets/{UnitIntegrationPage-XOk1iw8U-R_8yzBvv.js → UnitIntegrationPage-BL6g4XY0-fYnhKg75.js} +1 -1
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-ucIA0by--ChniuyNy.js → UploadAdditionalDocumentOverlay-CBg0WhaZ-C_8-7GFi.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-CNfFCjsZ-CkoROyAM.js → Vendor2FAPopup-CF5AV8a5-BsgzaDOa.js} +1 -1
  179. package/dist/assets/VendorACHDetailsPage-B_wVoMw5-D4XhjcJ1.js +1 -0
  180. package/dist/assets/{VendorDetailPage-DRLUdE3F-D_wc_LO2.js → VendorDetailPage-C168zV-E-B3dEwSOF.js} +1 -1
  181. package/dist/assets/VendorDomesticWireDetailsPage-cAu_hGIj-CosrcI_S.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-Yq4XoFtd-SHoE98jg.js → VendorFiling1099EditablePage-DVrk7af6-wOFW-4Wi.js} +1 -1
  183. package/dist/assets/{VendorFirstReviewPage-BTFeQPW6-CV-VtP76.js → VendorFirstReviewPage-kiMBuYID-CtvtJJUg.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage-CdXjkgWl-DUXdXswt.js → VendorInternationalWireDetailsPage-CtGJurq9-CCXwNCAZ.js} +1 -1
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Cy8QoA_b-vnefUABQ.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-CIZ6amoh-iOdKNRxH.js → VendorsAccountsSection-B9Ik1T2V-BaqvYUX_.js} +1 -1
  187. package/dist/assets/{VerifyDevice-BLi9cbRT-CwhVwlo_.js → VerifyDevice-DfX9VA7b-BdOPIyEo.js} +9 -9
  188. package/dist/assets/{VideoPlayer-BDCZd8K1-B6XIA6Sy.js → VideoPlayer-_FcQClfH-cuN5RcOe.js} +2 -2
  189. package/dist/assets/{VideoPopup-Cni9gWLX-Db1l5e36.js → VideoPopup-D0XTfD6q-CZBktelE.js} +3 -3
  190. package/dist/assets/{WarningsDrawerPage-DO3TH_cI-DqJoX6_I.js → WarningsDrawerPage-DIwWkX4B-B-UdjfAF.js} +1 -1
  191. package/dist/assets/{ZeniAccountDetailPage-CBbqwtvo-DCLT-Box.js → ZeniAccountDetailPage-mo0trXHB-B20udciT.js} +1 -1
  192. package/dist/assets/{ZeniAccountListViewPage-bS_K_U_k-C2TK8yr_.js → ZeniAccountListViewPage-CVzyx1Sx-CoJhvG_N.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-D4Nhv6iC-CW7ZMFVA.js → ZeniAccountNavBarPieces-CbXVnnp9-Dnxyvh_X.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-C40ORHL2-5Ose9Cov.js → ZeniAccountPromoPage-gZMYr_Ux-DJicJ7wt.js} +1 -1
  195. package/dist/assets/{ZeniAccountSetupPage-DfGwW1gJ-N18Rwn0q.js → ZeniAccountSetupPage-DPOLAjZV-DJVpJ_Nd.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-D_tc-vwm-DQ7m38Jq.js → ZeniCopyright-BDUQdaKP-B6B-IB0N.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-CwO6861o-9MWcE76i.js → ZeniTransferAmountSlider-B-nq8t_K-ANSQo16z.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-DMQostt2.js → add-to-wallet-DgdBD8_G-BBEivBdQ.js} +1 -1
  199. package/dist/assets/{analytics-YsywGP0I.js → analytics-DO1unY4G.js} +1 -1
  200. package/dist/assets/{analyticsHelper-Bv2VSRHR-D5TeO7Fb.js → analyticsHelper-7cF4XxuH-_xEf-TSd.js} +1 -1
  201. package/dist/assets/{analyticsHelper-CM3pI6rO.js → analyticsHelper-ZZI8M_53.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-BwMp8Z1R.js → arrow-south-east-round-PEovUgvH-CV7FSM6U.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-CCCTiB9K.js → auto-transfer-rule-mbafm5D3-CJUhOMj-.js} +1 -1
  204. package/dist/assets/{chartTypes-CiiHHtlc-DhZqwiAZ.js → chartTypes-DjzTOuyH-BFNN0c4F.js} +1 -1
  205. package/dist/assets/{commonDimensions-B94VpAp0-CDUYcayo.js → commonDimensions-CtIrih5r-CfslRtQI.js} +1 -1
  206. package/dist/assets/{commonTypes-CG4vvGyc-CziHlkCE.js → commonTypes-9h2Y-L4i-CJG-nO2R.js} +1 -1
  207. package/dist/assets/{constants-D9J3MLx1.js → constants-pYZADjo8.js} +1 -1
  208. package/dist/assets/{core-mVc5WAnu.js → core-B9Znwqny.js} +1 -1
  209. package/dist/assets/{dash.all.min-DEG4Ymx5.js → dash.all.min-CS5kHJkT.js} +1 -1
  210. package/dist/assets/{detailCommon-D84jR8Js-CvDn1aAe.js → detailCommon-CEOeZl26-CdFIe8qF.js} +6 -6
  211. package/dist/assets/{downloadPdf-CU0hwe3m-B1XwfpLd.js → downloadPdf-Pyk_BhF7-WEbr68vS.js} +1 -1
  212. package/dist/assets/{empty-5WWfUuj_.js → empty-ChJVx-YB.js} +1 -1
  213. package/dist/assets/{empty-DgV33Jfm.js → empty-CpGZk5F5.js} +1 -1
  214. package/dist/assets/{epic-BDbWyMmO.js → epic-C_GKKQik.js} +2 -2
  215. package/dist/assets/{gift-box-Cmt9OgIZ-DkfKk8Ub.js → gift-box-Cmt9OgIZ-DNEMczKk.js} +1 -1
  216. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DdD14QZ1.js → graphic-no-data-l-DU4J8fDt-Bx_mQw5e.js} +1 -1
  217. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-Bxmoc4Q1.js → graphic-no-data-net-burn-l-CzmycA0m-C46dJM7J.js} +1 -1
  218. package/dist/assets/{handshake-BPg58FML-BtKj2QSx.js → handshake-BPg58FML-C6X_P0qB.js} +1 -1
  219. package/dist/assets/{index-DfP1TP46.js → index-1k0W8uO3.js} +1 -1
  220. package/dist/assets/{index-DBHzoy-Y.js → index-BFgzVTwo.js} +1 -1
  221. package/dist/assets/{index-AqGiWrum.js → index-BhvUwV_v.js} +8 -8
  222. package/dist/assets/{index-B0WS5HXc.js → index-CPEwTrV2.js} +1 -1
  223. package/dist/assets/{index-0lgepYHN.js → index-CfJ2tiIp.js} +1 -1
  224. package/dist/assets/{index-CneahQyi.js → index-DpdT_X0L.js} +1 -1
  225. package/dist/assets/{index-s8Qql19x.js → index-POT-Iy9l.js} +1 -1
  226. package/dist/assets/{lexical-D1NyDz9G.js → lexical-DSIpBzCF.js} +1 -1
  227. package/dist/assets/{liveblocks-D8QW-YrN.js → liveblocks-BqcT5iTZ.js} +1 -1
  228. package/dist/assets/{lottie-CoVfqInY.js → lottie-oQfNS8l-.js} +2 -2
  229. package/dist/assets/{mapLoadingInProgressToTreeNode-dE6c_J7g-BidRqUlX.js → mapLoadingInProgressToTreeNode-DoHalh0I-DytjKdZ3.js} +1 -1
  230. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9RPV_Hz-BdcAtsjX.js → mapSectionWithAcOnlyToTreeNode-CjiNTI8L-BE28qPgb.js} +1 -1
  231. package/dist/assets/mapSpacerToTreeNode-Di-_Qhw7-nEHRbBKZ.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-BaIl_VbE-C25WmKnk.js +1 -0
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-mMtwXmJx-B8gyB0Lt.js +1 -0
  234. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dj8VTtaz-BeBYiLrc.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Bz1bR9oN-BR28SX0V.js} +1 -1
  235. package/dist/assets/{mui-C_Pjuwl5.js → mui-DqYnCiYu.js} +1 -1
  236. package/dist/assets/{page-detail-CWX5S47F-CwgQ04Z1.js → page-detail-CWX5S47F-C4YmGfRe.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-DOAN6MGR.js → radio-default-CiSgisfh-C5tnzklf.js} +1 -1
  238. package/dist/assets/{react-UmTxIL5W.js → react-B-LXbQdG.js} +2 -2
  239. package/dist/assets/{react-B4qkP2kJ.js → react-BPazyT0C.js} +1 -1
  240. package/dist/assets/{react-B1uWJZNI.js → react-Bu5BHG8O.js} +2 -2
  241. package/dist/assets/{react-COMbZ_ke.js → react-CBiOQOL3.js} +2 -2
  242. package/dist/assets/{react-CYpEpWLK.js → react-D2eQzOPv.js} +1 -1
  243. package/dist/assets/{react-CzW7TnV7.js → react-DEOv3QaS.js} +3 -3
  244. package/dist/assets/{react-Dk6KMPxp.js → react-DbRD5tNt.js} +2 -2
  245. package/dist/assets/{react-VqVdlbBp.js → react-xLrt57tQ.js} +3 -3
  246. package/dist/assets/{recharts-BGj_NTVO.js → recharts-D7E0WJGk.js} +1 -1
  247. package/dist/assets/{sentry-CTKU7CLc.js → sentry-DgGQRl6g.js} +2 -2
  248. package/dist/assets/{shield-DOlUxcFf-Chnu35pG.js → shield-DOlUxcFf-DK1OxwF6.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-CjVmQxAs-8r-ogQXf.js +1 -0
  250. package/dist/assets/{toChartData-DShY1WZ8-5FxZpBKl.js → toChartData-BFuIgA2L-C4IkmCYG.js} +1 -1
  251. package/dist/assets/{uploadAttachment-DKMAkDBt-BNugFjMC.js → uploadAttachment-ux9baWqa-BwjN4G2_.js} +1 -1
  252. package/dist/assets/{uploadReceipts-DJRtId-4-Bz9k1YgZ.js → uploadReceipts-DJRtId-4-xnWXJPvb.js} +1 -1
  253. package/dist/assets/{url-QugEHHKq.js → url-CW650CMO.js} +1 -1
  254. package/dist/assets/{url-CQ0hVJlH.js → url-DxcM52GB.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-B-Cv7oJI.js → useLongPress-GCK2COYQ-D9KvmRO7.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-DQyOXy13.js → usp-line-BBd1wKwW-EmNWFdhU.js} +1 -1
  257. package/dist/assets/{utils-DJxCyxGL.js → utils-C_quS4m3.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-Cl3KIlic.js → zeni-epic-state-WWg2r7iB.js} +31 -31
  259. package/dist/index.html +1 -1
  260. package/package.json +3 -3
  261. package/dist/assets/AccountInfoPage-5HB6qYYU-DqbEDlqg.js +0 -18
  262. package/dist/assets/BillPayApprovalRulesPage-Blk0_0Ou-58r-fHor.js +0 -241
  263. package/dist/assets/CustomerOnboardingContainerPage-9g2L_yuF-C903cC5U.js +0 -1
  264. package/dist/assets/CustomerOnboardingProductSuitePage-CE2ztcG2-D-ZOZhc2.js +0 -202
  265. package/dist/assets/MagicLinkACHDetailsPage-DwbFsGsL-BQPyG1YA.js +0 -1
  266. package/dist/assets/MagicLinkDomesticWireDetailsPage-BgjMH36H-BbUZS1ad.js +0 -1
  267. package/dist/assets/MagicLinkInternationalWireDetailsPage-C0jHD-87-CatMqDsO.js +0 -1
  268. package/dist/assets/MailingDetailsSection-B8g--tZ7-9mvfahRZ.js +0 -21
  269. package/dist/assets/Preview-o2DriYSg.js +0 -1
  270. package/dist/assets/ReimbursementApprovalRulesPage-CA54CNCd-BZeyQfno.js +0 -243
  271. package/dist/assets/SignInScreen-4muhcIyV.js +0 -1
  272. package/dist/assets/SpendManagementListViewPage-D0iaA1Tz-COkv1PV-.js +0 -134
  273. package/dist/assets/SpendManagementPerTabPage-NhC0DYPW-Dwrce6yO.js +0 -785
  274. package/dist/assets/StatementsPage-1LjLplay-CRMJqr5z.js +0 -58
  275. package/dist/assets/VendorACHDetailsPage-DbsvUZbM-D7Jtn49D.js +0 -1
  276. package/dist/assets/VendorDomesticWireDetailsPage-zrRC15oK-WziwpShk.js +0 -1
  277. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BjUdW9fP-BIKyz_yo.js +0 -1
  278. package/dist/assets/mapSpacerToTreeNode-CxY0Ic8W-W7hZE2p5.js +0 -1
  279. package/dist/assets/mapTimeframeBalancesToTreeNode-BJHD6cPI-DvQ95SJz.js +0 -1
  280. package/dist/assets/mapTimeframeBalancesToTreeNode-rysmkLch-Dj7OJ6xq.js +0 -1
  281. package/dist/assets/toCOABalancesWithID-RFiSMP1Z-CSbaIcFr.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ as et,V as t,h0 as ji,bB as Ii,u as l,fT as br,aN as Ge,aP as J,o as a,bS as Qt,p as d,F as ke,j2 as Sr,b as _,co as Li,j3 as Di,f9 as Ai,gO as Ti,j4 as Ei,bE as Fi,bN as yr,aT as ea,j5 as Ri,j6 as $r,j7 as ot,y as T,bJ as vr,ba as ta,c as zi,aU as kr,a$ as Pi,j8 as Mi,j9 as Vi,b7 as aa,ai as ge,eC as Oi,iS as Hi,e as gt,g$ as jr,cc as Bi,T as mt,b3 as Ni,dl as Wi,cs as _i,cp as Ui,d4 as Zi,hy as Gi,al as Oe,bU as Yi,av as Wt,ja as Ra,jb as qi,a as za,d as Ir,b9 as Ji,aB as Xi,iM as pt,iX as Ki,j0 as Qi,j1 as eo,dt as Pa,eT as to,r as Lr,cy as Dr,iV as ao,bX as ro,f as Ar,jc as io,au as vt,b_ as Ma,bx as oo,dd as no,am as st,gX as so,aq as co,x as lo,bF as ho,jd as Dt,fm as po,je as Tr,gy as Er,jf as jt,id as Fr,bQ as uo,ef as Rr,iY as mo,cB as go,dO as Co,c_ as fo,iZ as wo,i_ as xo,el as bo,cf as So,cg as yo}from"./index-AqGiWrum.js";import{a as o,S as $o}from"./sentry-CTKU7CLc.js";import{n as r,c as we,k as zr}from"./mui-C_Pjuwl5.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-Cl3KIlic.js";import{k as Io}from"./NavigationDots-DgfBVlG5-Begp91rh.js";import{A as Lo,i as Do,a as Ao,l as To,r as Eo,t as Fo,n as Ro}from"./add-to-wallet-DgdBD8_G-DMQostt2.js";import{L as _t}from"./lottie-CoVfqInY.js";import{j as zo}from"./CardNumberSubText-BFe7Gawq-B8S1I_DT.js";import{r as Pr}from"./core-mVc5WAnu.js";import{l as Mr}from"./uploadReceipts-DJRtId-4-Bz9k1YgZ.js";import{L as Po,z as Mo,k as Vo,P as Oo}from"./LockCardPage-CXZAffaX-CqLS5XfJ.js";import"./liveblocks-D8QW-YrN.js";import"./recharts-BGj_NTVO.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.js";import"./RoleWithToolTip-D4abtguM-CazMvZo7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="17849ecb-272f-4b39-b989-7500e85fda75",e._sentryDebugIdIdentifier="sentry-dbid-17849ecb-272f-4b39-b989-7500e85fda75")}catch{}})();const Vr=ke.getLocalizedStrings().spendManagement.chargeCard,Ho=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:X}=Vi(),U=It(),D=At(U.loggedInUserRoleMap);return t.jsx(Bo,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):X===!0?t.jsx(Xt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Xt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Xt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(No,{}),label:Vr.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":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Wo,{}),label:Vr.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":J("add-to-apple-wallet-button")})},Bo=r.div`
1
+ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ as et,V as t,h0 as ji,bB as Ii,u as l,fT as br,aN as Ge,aP as J,o as a,bS as Qt,p as d,F as ke,j2 as Sr,b as _,co as Li,j3 as Di,f9 as Ai,gO as Ti,j4 as Ei,bE as Fi,bN as yr,aT as ea,j5 as Ri,j6 as $r,j7 as ot,y as T,bJ as vr,ba as ta,c as Pi,aU as kr,a$ as zi,j8 as Mi,j9 as Vi,b7 as aa,ai as ge,eC as Oi,iS as Hi,e as gt,g$ as jr,cc as Bi,T as mt,b3 as Ni,dl as Wi,cs as _i,cp as Ui,d4 as Zi,hy as Gi,al as Oe,bU as Yi,av as Wt,ja as Ra,jb as qi,a as Pa,d as Ir,b9 as Ji,aB as Xi,iM as pt,iX as Ki,j0 as Qi,j1 as eo,dt as za,eT as to,r as Lr,cy as Dr,iV as ao,bX as ro,f as Ar,jc as io,au as vt,b_ as Ma,bx as oo,dd as no,am as st,gX as so,aq as co,x as lo,bF as ho,jd as Dt,fm as po,je as Tr,gy as Er,jf as jt,id as Fr,bQ as uo,ef as Rr,iY as mo,cB as go,dO as Co,c_ as fo,iZ as wo,i_ as xo,el as bo,cf as So,cg as yo}from"./index-BhvUwV_v.js";import{a as o,P as $o}from"./sentry-DgGQRl6g.js";import{n as r,c as we,k as Pr}from"./mui-DqYnCiYu.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-WWg2r7iB.js";import{k as Io}from"./NavigationDots-BPsFQiss-Dqh0y0c_.js";import{A as Lo,i as Do,a as Ao,l as To,r as Eo,t as Fo,n as Ro}from"./add-to-wallet-DgdBD8_G-BBEivBdQ.js";import{L as _t}from"./lottie-oQfNS8l-.js";import{j as Po}from"./CardNumberSubText-CPcuTV6V-CmAy0kVV.js";import{r as zr}from"./core-B9Znwqny.js";import{l as Mr}from"./uploadReceipts-DJRtId-4-xnWXJPvb.js";import{L as zo,z as Mo,k as Vo,P as Oo}from"./LockCardPage-Bq0Tu8g8-C6m1-JJ1.js";import"./liveblocks-BqcT5iTZ.js";import"./recharts-D7E0WJGk.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.js";import"./RoleWithToolTip-DvYf0VUz-DfyQTHhc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="c2085635-21f9-4911-b008-de1591be1757",e._sentryDebugIdIdentifier="sentry-dbid-c2085635-21f9-4911-b008-de1591be1757")}catch{}})();const Vr=ke.getLocalizedStrings().spendManagement.chargeCard,Ho=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:X}=Vi(),U=It(),D=At(U.loggedInUserRoleMap);return t.jsx(Bo,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):X===!0?t.jsx(Xt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Xt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Xt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(No,{}),label:Vr.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":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Wo,{}),label:Vr.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":J("add-to-apple-wallet-button")})},Bo=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -50,7 +50,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
50
50
  margin: ${a.sp2};
51
51
  justify-content: center;
52
52
  align-items: center;
53
- `,{spendManagement:en,common:Ke,dateFormat:tn}=ke.getLocalizedStrings(),Je=en.chargeCard,Ee={secretCardNumberWrapperWidth:280,secretCVVWrapperHeight:30,secretCVVWrapperWidth:l[7],cardNumberCopiedSectionTop:54,cvvCopiedSectionTop:34,maskedCardNumberMarginTop:new T(-2,-2,-2,l[0]),expiryCopySectionTop:34,cardNumberCopyBtnTop:21},Va={CardInfoTitleSize:new T(_.extraSmallRegular.fontSizeValue,_.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new T(18,18,18,21)},Ut=e=>t.jsxs(bn,{style:{...e},children:[t.jsx(xn,{}),t.jsx(Sn,{style:{background:d.blackColor,color:d.primaryDark,padding:`2px ${a.sp2}`,borderRadius:a.sp1},children:Ke.copyToClipBoard.copied})]}),Oa=({isSandboxEnv:e,sourceId:i,showSecretInfo:s,secretRevealed:u,vgsVaultId:h,controllerEmails:f,isChargeCardFeatureEnabled:c,productInformation:g,cashbackInformation:m,creditAccountInformation:x,debitAccountInformation:b,chargeCardCashbackDetailState:n,creditAccount:C,creditAccountRepayment:w,isDebitCard:j,depositAccountLimitFetchState:y,isCardDetailErrored:k,isCardColorUpdating:L,cardDetailsFetchState:p,isCardColorUndefined:E,cardInfoTitleStyles:S,styles:O,cvvSecStyles:H,chargeCard:v,token:Y,setSecretRevealed:X,setIsCardDetailErrored:U,setCardDetailsFetchState:D,onFireOnClickAnalytics:oe})=>{const K=Lt().analytics,[,ne]=wr(),B=Ie(),[Z,W]=o.useState(!1),[ae,Q]=o.useState(!1),[re,se]=o.useState(!1),z=It(),de=At(z.loggedInUserRoleMap),[G]=Sr("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),$=i==="addToWalletDrawer"?.75:B==="small"?.85:1,q=e?"sandbox":"live";o.useEffect(()=>{if(G&&v!=null&&s&&Y!=null&&!u){const A=window.VGSShow.create(h).setEnvironment(q),P=v.cardProviderID,ce=A.request({name:"data-text",method:"GET",path:"/cards/"+P+"/secure-data/cvv2",headers:{Authorization:"Bearer "+Y},htmlWrapper:"text",jsonPathSelector:"data.attributes.cvv2"});D({cvv:!0,number:!0}),ce.render(`#SecretCvv-${i}`,{"@font-face":{"font-family":vt["PT Mono"],"font-style":"normal","font-weight":Ma.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":vt["PT Mono"],opacity:.7,color:d.brandColorOnyx,fontSize:`${$*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*_.h6Regular.lineHeightValue}px`}),ce.on("requestSuccess",()=>{X(!0),U(!1),D({...p,cvv:!1})}),ce.on("requestFail",()=>{U(!0),D({...p,cvv:!1});const I=document.getElementById(`SecretCvv-${i}`);for(;I?.hasChildNodes()===!0;)I.removeChild(I.children[0])}),A.copyFrom(ce,{text:Ke.strings.empty},I=>{I==="success"?(Q(!0),oe("CVV copied"),n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&K.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","CVV","",m,x,b)):Q(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:`${$*Ee.secretCVVWrapperHeight}px`,width:`${$*Ee.secretCVVWrapperWidth}px`});const ie=A.request({name:"data-text",method:"GET",path:"/cards/"+P+"/secure-data/pan",headers:{Authorization:"Bearer "+Y},htmlWrapper:"text",jsonPathSelector:"data.attributes.pan",serializers:[A.SERIALIZERS.replace("(\\d{4})(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3 $4")]});ie.render(`#SecretCardNumber-${i}`,{"@font-face":{"font-family":vt["PT Mono"],"font-style":"normal","font-weight":Ma.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":vt["PT Mono"],opacity:.7,color:d.brandColorOnyx,fontSize:`${$*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*_.h6Regular.lineHeightValue}px`}),ie.on("requestSuccess",()=>{X(!0),U(!1),D({...p,number:!1})}),ie.on("requestFail",()=>{U(!0),D({...p,number:!1});const I=document.getElementById(`SecretCardNumber-${i}`);for(;I?.hasChildNodes()===!0;)I.removeChild(I.children[0])}),A.copyFrom(ie,{text:Ke.strings.empty,serializers:[A.SERIALIZERS.replace(Ke.strings.space,Ke.strings.empty)]},I=>{I==="success"?(W(!0),oe("card number copied"),n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&K.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Card Number","",m,x,b)):W(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:`${$*_.h6Regular.lineHeightValue}px`,width:`${$*Ee.secretCardNumberWrapperWidth}px`})}},[G,v,s,Y,u]),o.useEffect(()=>{if(s===!1){const A=document.getElementById(`SecretCvv-${i}`);for(;A?.hasChildNodes()===!0;)A.removeChild(A.children[0]);const P=document.getElementById(`CvvCopyBtn-${i}`);for(;P?.hasChildNodes()===!0;)P.removeChild(P.children[0]);const ce=document.getElementById(`SecretCardNumber-${i}`);for(;ce?.hasChildNodes()===!0;)ce.removeChild(ce.children[0]);const ie=document.getElementById(`CardNumberCopyBtn-${i}`);for(;ie?.hasChildNodes()===!0;)ie.removeChild(ie.children[0])}},[i,s]),o.useEffect(()=>{Z===!0&&setTimeout(()=>{W(!1)},800),ae===!0&&setTimeout(()=>{Q(!1)},800),re===!0&&setTimeout(()=>{se(!1)},800)},[Z,ae,re]);const N=v!=null?ko(v.validThru.year,v.validThru.month-1).format(tn.visual.MMSlashYYFormat):Ke.strings.empty,le=A=>{s===!0&&(p.cvv!==!0||p.number!==!0)&&(oe("validity copied"),A!=null&&n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&K.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Valid Thru",N,m,x,b),ne(N),se(!0))};return t.jsxs(ln,{style:O,children:[t.jsxs(hn,{children:[t.jsx(Zt,{style:S,windowSize:B,children:Je.cardDetails.cardNumber}),t.jsx(pn,{sourceId:i,scaleFactor:$,showSecretInfo:s&&(p.number===!1||p.cvv===!1),isCardDetailFetching:p.number===!0||p.cvv===!0||E||L,windowSize:B,children:`${Je.cardDetails.cardNumberHideout}
53
+ `,{spendManagement:en,common:Ke,dateFormat:tn}=ke.getLocalizedStrings(),Je=en.chargeCard,Ee={secretCardNumberWrapperWidth:280,secretCVVWrapperHeight:30,secretCVVWrapperWidth:l[7],cardNumberCopiedSectionTop:54,cvvCopiedSectionTop:34,maskedCardNumberMarginTop:new T(-2,-2,-2,l[0]),expiryCopySectionTop:34,cardNumberCopyBtnTop:21},Va={CardInfoTitleSize:new T(_.extraSmallRegular.fontSizeValue,_.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new T(18,18,18,21)},Ut=e=>t.jsxs(bn,{style:{...e},children:[t.jsx(xn,{}),t.jsx(Sn,{style:{background:d.blackColor,color:d.primaryDark,padding:`2px ${a.sp2}`,borderRadius:a.sp1},children:Ke.copyToClipBoard.copied})]}),Oa=({isSandboxEnv:e,sourceId:i,showSecretInfo:s,secretRevealed:u,vgsVaultId:h,controllerEmails:f,isChargeCardFeatureEnabled:c,productInformation:g,cashbackInformation:m,creditAccountInformation:x,debitAccountInformation:b,chargeCardCashbackDetailState:n,creditAccount:C,creditAccountRepayment:w,isDebitCard:j,depositAccountLimitFetchState:y,isCardDetailErrored:k,isCardColorUpdating:L,cardDetailsFetchState:p,isCardColorUndefined:E,cardInfoTitleStyles:S,styles:O,cvvSecStyles:H,chargeCard:v,token:Y,setSecretRevealed:X,setIsCardDetailErrored:U,setCardDetailsFetchState:D,onFireOnClickAnalytics:oe})=>{const K=Lt().analytics,[,ne]=wr(),B=Ie(),[Z,W]=o.useState(!1),[ae,Q]=o.useState(!1),[re,se]=o.useState(!1),P=It(),de=At(P.loggedInUserRoleMap),[G]=Sr("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),$=i==="addToWalletDrawer"?.75:B==="small"?.85:1,q=e?"sandbox":"live";o.useEffect(()=>{if(G&&v!=null&&s&&Y!=null&&!u){const A=window.VGSShow.create(h).setEnvironment(q),z=v.cardProviderID,ce=A.request({name:"data-text",method:"GET",path:"/cards/"+z+"/secure-data/cvv2",headers:{Authorization:"Bearer "+Y},htmlWrapper:"text",jsonPathSelector:"data.attributes.cvv2"});D({cvv:!0,number:!0}),ce.render(`#SecretCvv-${i}`,{"@font-face":{"font-family":vt["PT Mono"],"font-style":"normal","font-weight":Ma.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":vt["PT Mono"],opacity:.7,color:d.brandColorOnyx,fontSize:`${$*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*_.h6Regular.lineHeightValue}px`}),ce.on("requestSuccess",()=>{X(!0),U(!1),D({...p,cvv:!1})}),ce.on("requestFail",()=>{U(!0),D({...p,cvv:!1});const I=document.getElementById(`SecretCvv-${i}`);for(;I?.hasChildNodes()===!0;)I.removeChild(I.children[0])}),A.copyFrom(ce,{text:Ke.strings.empty},I=>{I==="success"?(Q(!0),oe("CVV copied"),n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&K.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","CVV","",m,x,b)):Q(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:`${$*Ee.secretCVVWrapperHeight}px`,width:`${$*Ee.secretCVVWrapperWidth}px`});const ie=A.request({name:"data-text",method:"GET",path:"/cards/"+z+"/secure-data/pan",headers:{Authorization:"Bearer "+Y},htmlWrapper:"text",jsonPathSelector:"data.attributes.pan",serializers:[A.SERIALIZERS.replace("(\\d{4})(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3 $4")]});ie.render(`#SecretCardNumber-${i}`,{"@font-face":{"font-family":vt["PT Mono"],"font-style":"normal","font-weight":Ma.regular,"font-display":"swap",src:'local("PT Mono"), local("PTMono-Regular"), url(https://fonts.gstatic.com/s/ptmono/v7/9oRONYoBnWILk-9AnCszM_HxEcn7Hg.woff2) format("woff2")'},"font-family":vt["PT Mono"],opacity:.7,color:d.brandColorOnyx,fontSize:`${$*_.h6Regular.fontSizeValue}px`,fontWeight:_.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*_.h6Regular.lineHeightValue}px`}),ie.on("requestSuccess",()=>{X(!0),U(!1),D({...p,number:!1})}),ie.on("requestFail",()=>{U(!0),D({...p,number:!1});const I=document.getElementById(`SecretCardNumber-${i}`);for(;I?.hasChildNodes()===!0;)I.removeChild(I.children[0])}),A.copyFrom(ie,{text:Ke.strings.empty,serializers:[A.SERIALIZERS.replace(Ke.strings.space,Ke.strings.empty)]},I=>{I==="success"?(W(!0),oe("card number copied"),n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&K.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Card Number","",m,x,b)):W(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:`${$*_.h6Regular.lineHeightValue}px`,width:`${$*Ee.secretCardNumberWrapperWidth}px`})}},[G,v,s,Y,u]),o.useEffect(()=>{if(s===!1){const A=document.getElementById(`SecretCvv-${i}`);for(;A?.hasChildNodes()===!0;)A.removeChild(A.children[0]);const z=document.getElementById(`CvvCopyBtn-${i}`);for(;z?.hasChildNodes()===!0;)z.removeChild(z.children[0]);const ce=document.getElementById(`SecretCardNumber-${i}`);for(;ce?.hasChildNodes()===!0;)ce.removeChild(ce.children[0]);const ie=document.getElementById(`CardNumberCopyBtn-${i}`);for(;ie?.hasChildNodes()===!0;)ie.removeChild(ie.children[0])}},[i,s]),o.useEffect(()=>{Z===!0&&setTimeout(()=>{W(!1)},800),ae===!0&&setTimeout(()=>{Q(!1)},800),re===!0&&setTimeout(()=>{se(!1)},800)},[Z,ae,re]);const N=v!=null?ko(v.validThru.year,v.validThru.month-1).format(tn.visual.MMSlashYYFormat):Ke.strings.empty,le=A=>{s===!0&&(p.cvv!==!0||p.number!==!0)&&(oe("validity copied"),A!=null&&n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&K.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Valid Thru",N,m,x,b),ne(N),se(!0))};return t.jsxs(ln,{style:O,children:[t.jsxs(hn,{children:[t.jsx(Zt,{style:S,windowSize:B,children:Je.cardDetails.cardNumber}),t.jsx(pn,{sourceId:i,scaleFactor:$,showSecretInfo:s&&(p.number===!1||p.cvv===!1),isCardDetailFetching:p.number===!0||p.cvv===!0||E||L,windowSize:B,children:`${Je.cardDetails.cardNumberHideout}
54
54
  ${v?.accountLast4??Ke.strings.empty}`}),t.jsxs(an,{secretRevealed:u,scaleFactor:$,showSecretInfo:s&&p.cvv===!1&&p.number===!1,sourceId:i,isCardDetailErrored:k,children:[t.jsx(rn,{sourceId:i,scaleFactor:$,secretRevealed:u,id:`SecretCardNumber-${i}`}),t.jsx(cn,{secretRevealed:u,scaleFactor:$,id:`CardNumberCopyBtn-${i}`,sourceId:i}),Z===!0?t.jsx(Ut,{top:$*Ee.cardNumberCopiedSectionTop}):null]})]}),t.jsxs(un,{children:[t.jsxs(Cn,{children:[t.jsx(Zt,{style:S,windowSize:B,children:Je.cardDetails.expiry}),t.jsxs(sn,{secretRevealed:s&&(p.cvv===!1||p.number===!1),children:[u&&s&&p.cvv===!1&&p.number===!1?t.jsx(wn,{sourceId:i,scaleFactor:$,windowSize:B,secretRevealed:u&&s,"data-testid":J("expiry-date-copy"),onClick:A=>{A.stopPropagation(),le(v)},children:u&&s&&p.cvv===!1&&p.number===!1?N:Je.cardDetails.expiryHideOut}):t.jsx(fn,{sourceId:i,windowSize:B,scaleFactor:$,isCardDetailFetching:p.cvv===!0||p.number===!0||E||L,children:Je.cardDetails.expiryHideOut}),re===!0?t.jsx(Ut,{top:$*Ee.expiryCopySectionTop,width:"auto"}):null]})]}),t.jsxs(mn,{style:H,children:[t.jsx(Zt,{style:S,windowSize:B,children:Je.cardDetails.cvv}),t.jsx(gn,{sourceId:i,scaleFactor:$,showSecretInfo:s&&p.cvv===!1&&p.number===!1,isCardDetailFetching:p.number===!0||p.cvv===!0||E||L,windowSize:B,children:Je.cardDetails.cvvHideOut}),t.jsxs(on,{secretRevealed:u,sourceId:i,showSecretInfo:s&&p.cvv===!1&&p.number===!1,isCardDetailErrored:k,children:[t.jsx(nn,{scaleFactor:$,secretRevealed:u,sourceId:i,id:`SecretCvv-${i}`}),t.jsx(dn,{windowSize:B,scaleFactor:$,secretRevealed:u,id:`CvvCopyBtn-${i}`,sourceId:i}),ae===!0?t.jsx(Ut,{top:$*Ee.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},an=r.div`
55
55
  display: ${e=>e.showSecretInfo?"block":"none"};
56
56
  height: ${e=>e.secretRevealed?"unset":a.sp0};
@@ -188,7 +188,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
188
188
  color: ${d.primaryDark};
189
189
  padding: 2px ${a.sp2};
190
190
  background-color: ${d.blackColor};
191
- `,{common:yn,spendManagement:{chargeCard:{cardDetails:ve}}}=ke.getLocalizedStrings(),xe={chargeCardWidth:384,chargeCardHeight:240,cardLoadingShineWidth:200,cardLoadingShineHeight:240,zeniLogoWidth:l[6],zeniLogoHeight:l[6],visaLogoWidth:l[6],visaLogoHeight:13,cardTintIconWidth:277,cardTintIconHeight:242,colorPaletteLeftTransitionValue:-350,rightSectionWidth:384,rightSectionHeight:240,cardContainerContentGap:new T(l[4],l[4],l[4],l[3])},Or=({isChargeCardAdmin:e,chargeCardDetailView:i,productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,isOwnCard:g,vgsVaultId:m,showSecretInfo:x,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,chargeCardCashbackDetailState:y,creditAccount:k,creditAccountRepayment:L,isShowingInDrawer:p,isSandboxEnv:E,isCardDetailErrored:S,signedInUserToken:O,selectedColor:H,cardDetailsFetchState:v,setCardDetailsFetchState:Y,setIsCardDetailErrored:X,setShowSecretInfo:U,setSecretRevealed:D,setShowPhoneNumberForOtp:oe,isCardDetailFetching:K,handleColorCodeClick:ne,onFireOnClickAnalytics:B,onUnlockChargeCard:Z})=>{const[W,ae]=o.useState(!1),[Q,re]=o.useState(!1),[se,z]=o.useState(!1),[de,G]=o.useState(!1),[$,q]=o.useState(!1),[N,le]=o.useState(!1),[A,P]=o.useState(()=>{const fe=i.chargeCard?.status.code;return fe==="locked"||fe==="closed"||fe==="closed_by_customer"}),[ce,ie]=o.useState(!1),[I,je]=o.useState(!1),Ce=o.useRef(void 0),Re=i.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:te}=xr(),ee=Ie(),M=p?.75:ee==="small"?.85:1,be=i.lockChargeCardsFetchState.fetchState,Ae=et(be),me=i.unlockChargeCardsFetchState.fetchState,He=et(me),Ye=i.closeChargeCardsFetchState.fetchState,at=et(Ye),pe=i.chargeCard?.status.code==="locked",F=i.chargeCard?.status.code==="closed"||i.chargeCard?.status.code==="closed_by_customer",[he]=Wt("UnlockCard"),[R]=Wt("LockCard"),[qe]=Wt("CloseCard");o.useEffect(()=>{if(!(Q&&pe)){z(!1);return}const fe=setTimeout(()=>{z(!0)},400);return()=>clearTimeout(fe)},[Q,pe]),o.useEffect(()=>{(pe||F)&&!A&&(P(!0),ie(!1))},[pe,F]),o.useEffect(()=>{Ae==="In-Progress"&&be==="Completed"&&(Ce.current&&clearTimeout(Ce.current),G(!1),P(!1),ie(!0),setTimeout(()=>{G(!0)},0),Ce.current=setTimeout(()=>{G(!1),P(!0),re(!1)},1e3))},[be,Ae]),o.useEffect(()=>{He==="In-Progress"&&me==="Completed"&&(Ce.current&&clearTimeout(Ce.current),je(!0),q(!1),setTimeout(()=>{q(!0)},0),Ce.current=setTimeout(()=>{q(!1),P(!1),je(!1)},1e3))},[me,He]),o.useEffect(()=>{at==="In-Progress"&&Ye==="Completed"&&(Ce.current&&clearTimeout(Ce.current),le(!1),P(!1),ie(!0),setTimeout(()=>{le(!0)},0),Ce.current=setTimeout(()=>{le(!1),P(!0)},1e3))},[Ye,at]);const ze=te?ve.tapCardCopyText:ve.scanNowAndAddToWallet,dt=te?ve.tapCardCopyText:t.jsxs(jn,{children:[t.jsx(Jn,{}),ve.clickTheCardToFetchDetailsText]}),Pe=i.chargeCard?.isLockedByAdmin??!1,ft=ee==="small"?ve.tapCardCopyText:ve.clickTheCardToCopyDetailsText,ct=ee==="small"?ve.tapCardCopyText:ve.clickTheCardToFetchDetailsText,wt=p?ze:ft,xt=p?dt:ct,Me=K(v)||i.updateFetchState.fetchState==="In-Progress"||i.unlockChargeCardsFetchState.fetchState==="In-Progress",lt=(v.cvv!==!0||v.number!==!0)&&g,Te=!!i.chargeCard?.type.code.includes("debit");return t.jsxs(En,{windowSize:ee,scaleFactor:M,children:[t.jsxs(Rn,{isCardLocked:pe,isChargeCardAdmin:e,isLockedByAdmin:Pe,unlockFetchState:i.unlockChargeCardsFetchState.fetchState,onClick:fe=>{fe.stopPropagation(),pe&&me!=="In-Progress"&&(e||!Pe)&&Z(e)},onMouseEnter:()=>{(e||!Pe)&&me!=="In-Progress"&&re(!0)},onMouseLeave:()=>{(e||!Pe)&&me!=="In-Progress"&&re(!1)},children:[c&&p?t.jsxs(t.Fragment,{children:[t.jsx(Zn,{}),t.jsx(Gn,{}),t.jsx(Yn,{}),t.jsx(qn,{})]}):null,t.jsx(zn,{play:A,animate:ce,fadeOut:I,unlockInProgress:me==="In-Progress"||I||He==="In-Progress"&&me==="Completed"}),$&&he!=null?t.jsx(_t,{style:{width:a.sp9,height:a.sp9,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,backgroundColor:d.lockCardOverlayBackground,borderRadius:a.sp11},animationData:he,loop:!1,play:$,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):N&&qe!=null?t.jsx(_t,{style:{width:56,height:56,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:qe,loop:!1,play:N,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):A?F?t.jsx(Nn,{}):me==="In-Progress"?t.jsx(Vn,{}):I||He==="In-Progress"&&me==="Completed"?null:t.jsx(Bn,{isHovered:Q&&pe,children:t.jsxs(Hn,{isHovered:Q&&pe,children:[t.jsx(Hr,{}),t.jsx(On,{isVisible:Q&&pe,shouldEnterLayout:se,children:ve.moreOptions.unlock})]})}):de&&R!=null?t.jsx(_t,{style:{width:72,height:72,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:R,loop:!1,play:de,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,Re.includes("virtual")?t.jsxs(Pn,{isShowingInDrawer:p,isOwnCard:g,scaleFactor:M,bgColor:H?.toString(),showColorPalette:W,isDebitCard:Te,"data-testid":J("virtual-charge-card-detail"),onClick:()=>{W===!1&&g===!0&&K(v)===!1&&me!=="In-Progress"&&pe===!1&&Ra({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:B,setShowSecretInfo:U})},enableClick:lt&&!pe&&!F||pe&&me!=="In-Progress",cardDetailsFetchState:Me||i.chargeCard?.cardColorCode===void 0,children:[t.jsx(Ba,{scaleFactor:M,shouldAppear:Me||i.chargeCard?.cardColorCode===void 0}),t.jsx(Zo,{leftTransitionValue:M*xe.colorPaletteLeftTransitionValue,hasBorderShadow:!1,tickStyles:{width:"12px",height:"12px"},colorInState:i.chargeCard?.cardColorCode!=null?new Qe(i.chargeCard.cardColorCode):void 0,styles:{height:"100%",maxWidth:"78%",top:p?"unset":a.sp0,left:W?a.sp0:`${M*xe.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:W,toggleColorPaletteVisibility:fe=>{ae(fe)},handleColorClick:(fe,ht)=>{ne(fe,ht),ht&&ae(!1)}}),t.jsx(Un,{scaleFactor:M}),t.jsx(Oa,{productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,setSecretRevealed:D,onFireOnClickAnalytics:B,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:v,setCardDetailsFetchState:Y,isCardDetailErrored:S,setIsCardDetailErrored:X,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,creditAccountRepayment:L,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:k,chargeCardCashbackDetailState:y,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:p?"addToWalletDrawer":"cardDetail"}),t.jsxs(Na,{children:[t.jsxs(Wn,{children:[t.jsx(Wa,{scaleFactor:M}),t.jsx(Tn,{onClick:fe=>{fe.stopPropagation(),g&&ae(!W)},"data-testid":J("card-color-selector"),children:g?t.jsx(Qt,{enterDelay:600,title:ve.cardColours,placement:"left",children:t.jsx(Ha,{isShowingInDrawer:p})}):t.jsx(Ha,{isShowingInDrawer:p})})]}),t.jsx(In,{scaleFactor:M})]})]}):t.jsxs(Xn,{scaleFactor:M,enableClick:lt&&!pe&&!F||pe&&me!=="In-Progress",isOwnCard:g,isShowingInDrawer:p,onClick:()=>{g===!0&&pe===!1&&me!=="In-Progress"&&K(v)===!1&&Ra({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:B,setShowSecretInfo:U})},"data-testid":J("physical-charge-card-detail"),children:[t.jsx(Ba,{scaleFactor:M,shouldAppear:Me}),t.jsxs(Kn,{flipCard:c,children:[t.jsx(Qn,{children:t.jsx($r,{scaleFactor:M,isClickable:lt,isLoading:Me,isDebitCard:Te})}),x?t.jsxs(es,{isDebitCard:Te,children:[t.jsx(Oa,{productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,setSecretRevealed:D,onFireOnClickAnalytics:B,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:v,setCardDetailsFetchState:Y,isCardDetailErrored:S,setIsCardDetailErrored:X,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:i.creditAccount,creditAccountRepayment:L,chargeCardCashbackDetailState:y,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:p?"addToWalletDrawer":"cardDetail"}),t.jsx(Na,{children:t.jsx(_n,{children:t.jsx(Wa,{scaleFactor:M})})})]}):null]})]})]}),F?t.jsx($n,{children:ve.cardClosedMessage}):Pe&&!e?t.jsx(vn,{children:ve.cardLockedByAdminMessage}):pe?t.jsx(Gt,{children:ve.cardLockedMessage}):g===!0&&!Me?v.cvv===!0&&v.number===!0?t.jsx(Mn,{children:yn.loading}):S?t.jsx(kn,{}):t.jsx(Gt,{children:c?wt:xt}):Me?t.jsx(Gt,{children:ve.loading}):null]})},$n=r(ge)`
191
+ `,{common:yn,spendManagement:{chargeCard:{cardDetails:ve}}}=ke.getLocalizedStrings(),xe={chargeCardWidth:384,chargeCardHeight:240,cardLoadingShineWidth:200,cardLoadingShineHeight:240,zeniLogoWidth:l[6],zeniLogoHeight:l[6],visaLogoWidth:l[6],visaLogoHeight:13,cardTintIconWidth:277,cardTintIconHeight:242,colorPaletteLeftTransitionValue:-350,rightSectionWidth:384,rightSectionHeight:240,cardContainerContentGap:new T(l[4],l[4],l[4],l[3])},Or=({isChargeCardAdmin:e,chargeCardDetailView:i,productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,isOwnCard:g,vgsVaultId:m,showSecretInfo:x,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,chargeCardCashbackDetailState:y,creditAccount:k,creditAccountRepayment:L,isShowingInDrawer:p,isSandboxEnv:E,isCardDetailErrored:S,signedInUserToken:O,selectedColor:H,cardDetailsFetchState:v,setCardDetailsFetchState:Y,setIsCardDetailErrored:X,setShowSecretInfo:U,setSecretRevealed:D,setShowPhoneNumberForOtp:oe,isCardDetailFetching:K,handleColorCodeClick:ne,onFireOnClickAnalytics:B,onUnlockChargeCard:Z})=>{const[W,ae]=o.useState(!1),[Q,re]=o.useState(!1),[se,P]=o.useState(!1),[de,G]=o.useState(!1),[$,q]=o.useState(!1),[N,le]=o.useState(!1),[A,z]=o.useState(()=>{const fe=i.chargeCard?.status.code;return fe==="locked"||fe==="closed"||fe==="closed_by_customer"}),[ce,ie]=o.useState(!1),[I,je]=o.useState(!1),Ce=o.useRef(void 0),Re=i.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:te}=xr(),ee=Ie(),M=p?.75:ee==="small"?.85:1,be=i.lockChargeCardsFetchState.fetchState,Ae=et(be),me=i.unlockChargeCardsFetchState.fetchState,He=et(me),Ye=i.closeChargeCardsFetchState.fetchState,at=et(Ye),pe=i.chargeCard?.status.code==="locked",F=i.chargeCard?.status.code==="closed"||i.chargeCard?.status.code==="closed_by_customer",[he]=Wt("UnlockCard"),[R]=Wt("LockCard"),[qe]=Wt("CloseCard");o.useEffect(()=>{if(!(Q&&pe)){P(!1);return}const fe=setTimeout(()=>{P(!0)},400);return()=>clearTimeout(fe)},[Q,pe]),o.useEffect(()=>{(pe||F)&&!A&&(z(!0),ie(!1))},[pe,F]),o.useEffect(()=>{Ae==="In-Progress"&&be==="Completed"&&(Ce.current&&clearTimeout(Ce.current),G(!1),z(!1),ie(!0),setTimeout(()=>{G(!0)},0),Ce.current=setTimeout(()=>{G(!1),z(!0),re(!1)},1e3))},[be,Ae]),o.useEffect(()=>{He==="In-Progress"&&me==="Completed"&&(Ce.current&&clearTimeout(Ce.current),je(!0),q(!1),setTimeout(()=>{q(!0)},0),Ce.current=setTimeout(()=>{q(!1),z(!1),je(!1)},1e3))},[me,He]),o.useEffect(()=>{at==="In-Progress"&&Ye==="Completed"&&(Ce.current&&clearTimeout(Ce.current),le(!1),z(!1),ie(!0),setTimeout(()=>{le(!0)},0),Ce.current=setTimeout(()=>{le(!1),z(!0)},1e3))},[Ye,at]);const Pe=te?ve.tapCardCopyText:ve.scanNowAndAddToWallet,dt=te?ve.tapCardCopyText:t.jsxs(jn,{children:[t.jsx(Jn,{}),ve.clickTheCardToFetchDetailsText]}),ze=i.chargeCard?.isLockedByAdmin??!1,ft=ee==="small"?ve.tapCardCopyText:ve.clickTheCardToCopyDetailsText,ct=ee==="small"?ve.tapCardCopyText:ve.clickTheCardToFetchDetailsText,wt=p?Pe:ft,xt=p?dt:ct,Me=K(v)||i.updateFetchState.fetchState==="In-Progress"||i.unlockChargeCardsFetchState.fetchState==="In-Progress",lt=(v.cvv!==!0||v.number!==!0)&&g,Te=!!i.chargeCard?.type.code.includes("debit");return t.jsxs(En,{windowSize:ee,scaleFactor:M,children:[t.jsxs(Rn,{isCardLocked:pe,isChargeCardAdmin:e,isLockedByAdmin:ze,unlockFetchState:i.unlockChargeCardsFetchState.fetchState,onClick:fe=>{fe.stopPropagation(),pe&&me!=="In-Progress"&&(e||!ze)&&Z(e)},onMouseEnter:()=>{(e||!ze)&&me!=="In-Progress"&&re(!0)},onMouseLeave:()=>{(e||!ze)&&me!=="In-Progress"&&re(!1)},children:[c&&p?t.jsxs(t.Fragment,{children:[t.jsx(Zn,{}),t.jsx(Gn,{}),t.jsx(Yn,{}),t.jsx(qn,{})]}):null,t.jsx(Pn,{play:A,animate:ce,fadeOut:I,unlockInProgress:me==="In-Progress"||I||He==="In-Progress"&&me==="Completed"}),$&&he!=null?t.jsx(_t,{style:{width:a.sp9,height:a.sp9,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,backgroundColor:d.lockCardOverlayBackground,borderRadius:a.sp11},animationData:he,loop:!1,play:$,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):N&&qe!=null?t.jsx(_t,{style:{width:56,height:56,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:qe,loop:!1,play:N,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):A?F?t.jsx(Nn,{}):me==="In-Progress"?t.jsx(Vn,{}):I||He==="In-Progress"&&me==="Completed"?null:t.jsx(Bn,{isHovered:Q&&pe,children:t.jsxs(Hn,{isHovered:Q&&pe,children:[t.jsx(Hr,{}),t.jsx(On,{isVisible:Q&&pe,shouldEnterLayout:se,children:ve.moreOptions.unlock})]})}):de&&R!=null?t.jsx(_t,{style:{width:72,height:72,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:R,loop:!1,play:de,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,Re.includes("virtual")?t.jsxs(zn,{isShowingInDrawer:p,isOwnCard:g,scaleFactor:M,bgColor:H?.toString(),showColorPalette:W,isDebitCard:Te,"data-testid":J("virtual-charge-card-detail"),onClick:()=>{W===!1&&g===!0&&K(v)===!1&&me!=="In-Progress"&&pe===!1&&Ra({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:B,setShowSecretInfo:U})},enableClick:lt&&!pe&&!F||pe&&me!=="In-Progress",cardDetailsFetchState:Me||i.chargeCard?.cardColorCode===void 0,children:[t.jsx(Ba,{scaleFactor:M,shouldAppear:Me||i.chargeCard?.cardColorCode===void 0}),t.jsx(Zo,{leftTransitionValue:M*xe.colorPaletteLeftTransitionValue,hasBorderShadow:!1,tickStyles:{width:"12px",height:"12px"},colorInState:i.chargeCard?.cardColorCode!=null?new Qe(i.chargeCard.cardColorCode):void 0,styles:{height:"100%",maxWidth:"78%",top:p?"unset":a.sp0,left:W?a.sp0:`${M*xe.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:W,toggleColorPaletteVisibility:fe=>{ae(fe)},handleColorClick:(fe,ht)=>{ne(fe,ht),ht&&ae(!1)}}),t.jsx(Un,{scaleFactor:M}),t.jsx(Oa,{productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,setSecretRevealed:D,onFireOnClickAnalytics:B,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:v,setCardDetailsFetchState:Y,isCardDetailErrored:S,setIsCardDetailErrored:X,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,creditAccountRepayment:L,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:k,chargeCardCashbackDetailState:y,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:p?"addToWalletDrawer":"cardDetail"}),t.jsxs(Na,{children:[t.jsxs(Wn,{children:[t.jsx(Wa,{scaleFactor:M}),t.jsx(Tn,{onClick:fe=>{fe.stopPropagation(),g&&ae(!W)},"data-testid":J("card-color-selector"),children:g?t.jsx(Qt,{enterDelay:600,title:ve.cardColours,placement:"left",children:t.jsx(Ha,{isShowingInDrawer:p})}):t.jsx(Ha,{isShowingInDrawer:p})})]}),t.jsx(In,{scaleFactor:M})]})]}):t.jsxs(Xn,{scaleFactor:M,enableClick:lt&&!pe&&!F||pe&&me!=="In-Progress",isOwnCard:g,isShowingInDrawer:p,onClick:()=>{g===!0&&pe===!1&&me!=="In-Progress"&&K(v)===!1&&Ra({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:B,setShowSecretInfo:U})},"data-testid":J("physical-charge-card-detail"),children:[t.jsx(Ba,{scaleFactor:M,shouldAppear:Me}),t.jsxs(Kn,{flipCard:c,children:[t.jsx(Qn,{children:t.jsx($r,{scaleFactor:M,isClickable:lt,isLoading:Me,isDebitCard:Te})}),x?t.jsxs(es,{isDebitCard:Te,children:[t.jsx(Oa,{productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,setSecretRevealed:D,onFireOnClickAnalytics:B,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:v,setCardDetailsFetchState:Y,isCardDetailErrored:S,setIsCardDetailErrored:X,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:b,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:i.creditAccount,creditAccountRepayment:L,chargeCardCashbackDetailState:y,cardInfoTitleStyles:{..._.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:p?"addToWalletDrawer":"cardDetail"}),t.jsx(Na,{children:t.jsx(_n,{children:t.jsx(Wa,{scaleFactor:M})})})]}):null]})]})]}),F?t.jsx($n,{children:ve.cardClosedMessage}):ze&&!e?t.jsx(vn,{children:ve.cardLockedByAdminMessage}):pe?t.jsx(Gt,{children:ve.cardLockedMessage}):g===!0&&!Me?v.cvv===!0&&v.number===!0?t.jsx(Mn,{children:yn.loading}):S?t.jsx(kn,{}):t.jsx(Gt,{children:c?wt:xt}):Me?t.jsx(Gt,{children:ve.loading}):null]})},$n=r(ge)`
192
192
  color: ${d.important};
193
193
  `,vn=r(ge)`
194
194
  color: ${e=>e.theme.colors.primary};
@@ -230,7 +230,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
230
230
  gap: ${e=>xe.cardContainerContentGap.valuePx(e.windowSize)};
231
231
  `,Gt=r(ge)`
232
232
  color: ${e=>e.theme.colors.primary};
233
- `,Fn=zr`
233
+ `,Fn=Pr`
234
234
  0% {
235
235
  transform: translateX(-100%);
236
236
  }
@@ -242,7 +242,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
242
242
  overflow: hidden;
243
243
  border-radius: ${a.sp2};
244
244
  cursor: ${e=>e.isCardLocked&&e.unlockFetchState!=="In-Progress"&&(e.isChargeCardAdmin||!e.isLockedByAdmin)?"pointer":"default"};
245
- `,zn=r.div`
245
+ `,Pn=r.div`
246
246
  position: absolute;
247
247
  top: 50%;
248
248
  left: 50%;
@@ -276,7 +276,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
276
276
  align-items: center;
277
277
  width: 25%;
278
278
  padding: ${a.sp4} ${a.sp0};
279
- `,Pn=r.div`
279
+ `,zn=r.div`
280
280
  background: ${e=>e.cardDetailsFetchState?d.chargeCardFaded:e.bgColor??(e.isDebitCard?e.theme.colors.graphColor15:e.theme.colors.brandColorJade)};
281
281
  border-radius: ${a.sp2};
282
282
  width: ${e=>e.scaleFactor*xe.chargeCardWidth}px;
@@ -497,7 +497,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
497
497
  background-position-x: right;
498
498
  background-position-y: bottom;
499
499
  transform: rotateY(180deg);
500
- `,$e={contentContainerPadding:new T(l[3],l[4],l[8],l[8]),rightSectionWidth:new T(343,343,343,384),rightSectionHeight:new T(214,214,214,240),cardContainerContentGap:new T(l[2],l[2],l[2],l[3]),remainingAmountContainerGap:new T(l[1],l[1]),leftRightSectionGap:new T(l[0],54,54,57),cardBalanceSectionMarginBottom:new T(l[4],l[4]),barRadius:new T(2,l[2]),topSectionPaddingBottom:new T(l[4],19),rightSectionGap:new T(l[4],l[3]),addressSectionHeight:new T(109,74),addressSectionGap:new T(l[2],l[4]),navigationMarginBottom:new T(l[4],l[0]),addressValueGap:new T(l[0],l[1]),ownerWebMinWidth:new T(110,187)},ra={remainingAmount:new za("largeRegular","largeMedium"),spentAmount:new za("h5Regular","h5Regular")},{common:Ue,dateFormat:ut,spendManagement:ts}=ke.getLocalizedStrings(),Ze=ts.chargeCard,as=({chargeCardDetailView:e,spent:i,controllerEmails:s,chargeCardCashbackDetailState:u,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,creditAccount:m,creditAccountRepayment:x,productInformation:b,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,classListFetchState:p,cardOwnerName:E,secretRevealed:S,appleWalletLink:O,googleWalletLink:H,isCardNotPending:v,isOwnerNameCopied:Y,isAddressCopied:X,addressToShow:U,isOwnCard:D,vgsVaultId:oe,showSecretInfo:K,isSandboxEnv:ne,isCardDetailErrored:B,signedInUserToken:Z,selectedColor:W,showUpdateSpendLimitAction:ae,setShowPhoneNumberPopup:Q,setShowChangeSpendLimitPopup:re,cardDetailsFetchState:se,setCardDetailsFetchState:z,setIsCardDetailErrored:de,setShowSecretInfo:G,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:N,onFireOnClickAnalytics:le,onOwnerNameCopyClick:A,onAddressCopyClick:P,onUnlockChargeCard:ce,isDebitCard:ie})=>{const I=Ie(),je=Lt().analytics,Ce=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate!=null?e.chargeCardConfig.rePaymentInfo.cardLimitResetDate.format(ut.visual.MMMDFormat):vo().startOf("month").add(1,"month").format(ut.visual.MMMDFormat),Re=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:te}=Ri(),ee=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),M=It(),be=At(M?.loggedInUserRoleMap);return t.jsxs(ws,{windowSize:I,children:[t.jsxs(fs,{windowSize:I,children:[t.jsxs(xs,{windowSize:I,children:[t.jsx(ss,{children:Ue.texts.spent}),t.jsx(Ga,{children:t.jsx(bs,{windowSize:I,children:Ge("0,0.[00]",i)})}),t.jsx(Ls,{windowSize:I,children:t.jsx(As,{style:{width:`${Re}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(Ga,{children:[t.jsxs(Ds,{children:[t.jsxs(os,{windowSize:I,children:[t.jsx(Ya,{windowSize:I,children:Ge("0,0.[00]",e.chargeCard.available)}),t.jsx(qa,{windowSize:I,children:Ue.texts.remaining})]}),ae?t.jsxs(ys,{windowSize:I,children:[t.jsx($s,{children:Ze.updateSpendLimitPopup.unlockSpending}),t.jsx(vs,{onClick:()=>{is({chargeCardDetailView:e,classListFetchState:p,isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x,isDebitCard:ie,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,controllerEmails:s,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,analytics:je}),re(!0)},"data-testid":J("update-spend-limit-button"),children:Ze.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(Ss,{windowSize:I,children:[t.jsxs(ds,{children:[t.jsx(Ya,{windowSize:I,children:Ge("0,0.[00]",e.chargeCard.limit)}),t.jsx(qa,{windowSize:I,children:Ze.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs(ks,{children:[t.jsx(js,{children:Ue.texts.limitReset}),t.jsx(Is,{children:Ce})]}):null]})]}):null]}),t.jsx(rs,{chargeCardDetailView:e,classListFetchState:p,cardOwnerName:E,addressToShow:U,isAddressCopied:X,isOwnerNameCopied:Y,onOwnerNameCopyClick:A,onAddressCopyClick:P})]}),t.jsx(gs,{windowSize:I,isOwnCard:D,children:I==="small"&&!D?null:t.jsxs(t.Fragment,{children:[t.jsx(Cs,{windowSize:I,children:ee?t.jsx($r,{}):t.jsx(Or,{isChargeCardAdmin:be,chargeCardDetailView:e,productInformation:b,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,creditAccount:e.creditAccount,setShowSecretInfo:G,secretRevealed:S,isOwnCard:D,isShowingInDrawer:!1,vgsVaultId:oe,showSecretInfo:K,isSandboxEnv:ne,controllerEmails:s,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,chargeCardCashbackDetailState:u,isCardDetailErrored:B,signedInUserToken:Z,selectedColor:W,cardDetailsFetchState:se,setCardDetailsFetchState:z,setIsCardDetailErrored:de,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:N,onFireOnClickAnalytics:le,setShowPhoneNumberForOtp:Q,onUnlockChargeCard:ce,creditAccountRepayment:x})}),!D&&e.chargeCard?.status.code!=="closed"&&e.chargeCard?.status.code!=="closed_by_customer"&&e.chargeCard?.status.code!=="locked"?t.jsx(ns,{children:Ze.cardDetails.adminsCannotAccess}):null,I==="small"&&D&&v&&ie===!1?te?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:be,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x}),window.open(O,"_blank")}}):t.jsx(Xt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:be,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x}),window.open(H,"_blank")}}):null]})})]})},rs=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:s,addressToShow:u,isOwnerNameCopied:h,isAddressCopied:f,onOwnerNameCopyClick:c,onAddressCopyClick:g})=>{const m=Ie(),x=tt(),[b,n]=o.useState(0),[C,w]=o.useState(!0),[j,y]=o.useState(!1),[k,L]=o.useState(!1),[p,E]=o.useState(!1);o.useEffect(()=>{const O=[setTimeout(()=>{n(1)},500),setTimeout(()=>{n(0),E(!0)},1e3),setTimeout(()=>{w(!1),E(!1)},2e3),setTimeout(()=>{w(!0),n(1)},2500),setTimeout(()=>{n(0),E(!0)},3e3),setTimeout(()=>{w(!1),E(!1)},4e3)];return()=>{O.forEach(clearTimeout)}},[]);const S=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(cs,{children:[t.jsxs(ls,{windowSize:m,children:[t.jsxs(hs,{shouldBounce:p,isActive:b==0,isAutoSlide:C,windowSize:m,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(_a,{windowSize:m,onClick:c,"data-testid":J("owner-name-copy-click"),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(kt,{children:[Ze.cardDetails.owner,t.jsxs(er,{children:[t.jsx(Ja,{children:h===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:j})}),h||j?t.jsx(Xa,{children:h?Ue.copyToClipBoard.copied:Ue.copyToClipBoard.copy}):null]})]}),t.jsx(Ua,{children:t.jsx(Yt,{children:s})})]}):null,u!=null?t.jsxs(Za,{windowSize:m,onClick:g,"data-testid":J("address-copy-click"),onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:[t.jsxs(kt,{children:[Ze.cardDetails.address,t.jsxs(er,{children:[t.jsx(Ja,{children:f===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:k})}),f||k?t.jsx(Xa,{children:f?Ue.copyToClipBoard.copied:Ue.copyToClipBoard.copy}):null]})]}),t.jsx(ms,{windowSize:m,children:t.jsx(to,{address:u,isDisabled:"readonly",style:{padding:a.sp0,..._.smallRegular.cssObject,textTransform:"capitalize",alignItems:"flex-start",backgroundColor:x.colors.grey4,cursor:"pointer",flexDirection:m==="small"?"column":"row",gap:$e.addressValueGap.valuePx(m),textAlign:m==="small"?"left":"right"}})})]}):null]}),t.jsxs(ps,{isActive:b==1,isAutoSlide:C,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(_a,{windowSize:m,children:[t.jsx(kt,{children:Ze.connectedAccount}),t.jsxs(us,{children:[t.jsx(Ts,{children:t.jsx(Es,{})}),t.jsx(Yt,{children:S})]})]}):null,t.jsxs(Za,{windowSize:m,children:[t.jsx(kt,{children:Ze.department}),t.jsx(Ua,{children:t.jsx(Yt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(mt,{size:"Small",start:!0}):e.chargeCard?.department?.className??Ue.strings.hyphen})})]})]})]}),t.jsx(Io,{numberOfDots:2,activeIndex:b,handleClick:n,style:{marginTop:"12px",marginBottom:$e.navigationMarginBottom.valuePx(m)},dotStyle:{width:a.sp2,height:a.sp2},spendManagementPromoCardActive:!0,promoColor:x.colors.primary,promoColorHover:x.colors.grey1})]})},is=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:s,creditAccount:u,creditAccountRepayment:h,isDebitCard:f,controllerEmails:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,cardIssuedByRoles:b,cardIssuedByDepartmentName:n,cardHolderRoles:C,cardHolderDepartmentName:w,analytics:j})=>{if(e.chargeCard!=null&&i==="Completed"&&e.transactionStatistics.fetchState==="Completed"&&(!s||u.fetchState==="Completed"&&h.fetchState==="Completed")&&(!f||e.depositAccountLimitFetchState.fetchState==="Completed")){const y=e.chargeCard.type.code.includes("physical")?e.chargeCard.cardActivationAttemptHistory[0]?.timestamp:e.chargeCard.createTime;j.trackCardsUpdateSpendLimitInitiated(c,g,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:eo(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:pt(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:y?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name,cardSpentAmount:pt(e.chargeCard.balance.amount),cardAvailableLimit:pt(e.chargeCard.available.amount),cardUtilizationPercent:Qi(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:pt(Ki(e.chargeCard)),totalNumberOfDeclinedTransactions:e.transactionStatistics.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:e.transactionStatistics.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:e.transactionStatistics.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:e.transactionStatistics.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:e.transactionStatistics.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:e.transactionStatistics.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:e.transactionStatistics.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:Pa(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:b,cardIssuedByDepartment:n},{cardholderName:Pa(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:w},"Card Detail","Hyperlink",(e?.chargeCard?.recommendations??[]).map(k=>pt(k.creditLimit.amount)),m,x)}},os=r.div`
500
+ `,$e={contentContainerPadding:new T(l[3],l[4],l[8],l[8]),rightSectionWidth:new T(343,343,343,384),rightSectionHeight:new T(214,214,214,240),cardContainerContentGap:new T(l[2],l[2],l[2],l[3]),remainingAmountContainerGap:new T(l[1],l[1]),leftRightSectionGap:new T(l[0],54,54,57),cardBalanceSectionMarginBottom:new T(l[4],l[4]),barRadius:new T(2,l[2]),topSectionPaddingBottom:new T(l[4],19),rightSectionGap:new T(l[4],l[3]),addressSectionHeight:new T(109,74),addressSectionGap:new T(l[2],l[4]),navigationMarginBottom:new T(l[4],l[0]),addressValueGap:new T(l[0],l[1]),ownerWebMinWidth:new T(110,187)},ra={remainingAmount:new Pa("largeRegular","largeMedium"),spentAmount:new Pa("h5Regular","h5Regular")},{common:Ue,dateFormat:ut,spendManagement:ts}=ke.getLocalizedStrings(),Ze=ts.chargeCard,as=({chargeCardDetailView:e,spent:i,controllerEmails:s,chargeCardCashbackDetailState:u,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,creditAccount:m,creditAccountRepayment:x,productInformation:b,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,classListFetchState:p,cardOwnerName:E,secretRevealed:S,appleWalletLink:O,googleWalletLink:H,isCardNotPending:v,isOwnerNameCopied:Y,isAddressCopied:X,addressToShow:U,isOwnCard:D,vgsVaultId:oe,showSecretInfo:K,isSandboxEnv:ne,isCardDetailErrored:B,signedInUserToken:Z,selectedColor:W,showUpdateSpendLimitAction:ae,setShowPhoneNumberPopup:Q,setShowChangeSpendLimitPopup:re,cardDetailsFetchState:se,setCardDetailsFetchState:P,setIsCardDetailErrored:de,setShowSecretInfo:G,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:N,onFireOnClickAnalytics:le,onOwnerNameCopyClick:A,onAddressCopyClick:z,onUnlockChargeCard:ce,isDebitCard:ie})=>{const I=Ie(),je=Lt().analytics,Ce=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate!=null?e.chargeCardConfig.rePaymentInfo.cardLimitResetDate.format(ut.visual.MMMDFormat):vo().startOf("month").add(1,"month").format(ut.visual.MMMDFormat),Re=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:te}=Ri(),ee=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),M=It(),be=At(M?.loggedInUserRoleMap);return t.jsxs(ws,{windowSize:I,children:[t.jsxs(fs,{windowSize:I,children:[t.jsxs(xs,{windowSize:I,children:[t.jsx(ss,{children:Ue.texts.spent}),t.jsx(Ga,{children:t.jsx(bs,{windowSize:I,children:Ge("0,0.[00]",i)})}),t.jsx(Ls,{windowSize:I,children:t.jsx(As,{style:{width:`${Re}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(Ga,{children:[t.jsxs(Ds,{children:[t.jsxs(os,{windowSize:I,children:[t.jsx(Ya,{windowSize:I,children:Ge("0,0.[00]",e.chargeCard.available)}),t.jsx(qa,{windowSize:I,children:Ue.texts.remaining})]}),ae?t.jsxs(ys,{windowSize:I,children:[t.jsx($s,{children:Ze.updateSpendLimitPopup.unlockSpending}),t.jsx(vs,{onClick:()=>{is({chargeCardDetailView:e,classListFetchState:p,isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x,isDebitCard:ie,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,controllerEmails:s,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,analytics:je}),re(!0)},"data-testid":J("update-spend-limit-button"),children:Ze.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(Ss,{windowSize:I,children:[t.jsxs(ds,{children:[t.jsx(Ya,{windowSize:I,children:Ge("0,0.[00]",e.chargeCard.limit)}),t.jsx(qa,{windowSize:I,children:Ze.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs(ks,{children:[t.jsx(js,{children:Ue.texts.limitReset}),t.jsx(Is,{children:Ce})]}):null]})]}):null]}),t.jsx(rs,{chargeCardDetailView:e,classListFetchState:p,cardOwnerName:E,addressToShow:U,isAddressCopied:X,isOwnerNameCopied:Y,onOwnerNameCopyClick:A,onAddressCopyClick:z})]}),t.jsx(gs,{windowSize:I,isOwnCard:D,children:I==="small"&&!D?null:t.jsxs(t.Fragment,{children:[t.jsx(Cs,{windowSize:I,children:ee?t.jsx($r,{}):t.jsx(Or,{isChargeCardAdmin:be,chargeCardDetailView:e,productInformation:b,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,creditAccount:e.creditAccount,setShowSecretInfo:G,secretRevealed:S,isOwnCard:D,isShowingInDrawer:!1,vgsVaultId:oe,showSecretInfo:K,isSandboxEnv:ne,controllerEmails:s,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,chargeCardCashbackDetailState:u,isCardDetailErrored:B,signedInUserToken:Z,selectedColor:W,cardDetailsFetchState:se,setCardDetailsFetchState:P,setIsCardDetailErrored:de,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:N,onFireOnClickAnalytics:le,setShowPhoneNumberForOtp:Q,onUnlockChargeCard:ce,creditAccountRepayment:x})}),!D&&e.chargeCard?.status.code!=="closed"&&e.chargeCard?.status.code!=="closed_by_customer"&&e.chargeCard?.status.code!=="locked"?t.jsx(ns,{children:Ze.cardDetails.adminsCannotAccess}):null,I==="small"&&D&&v&&ie===!1?te?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:be,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x}),window.open(O,"_blank")}}):t.jsx(Xt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:be,productInformation:b,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,controllerEmails:s,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x}),window.open(H,"_blank")}}):null]})})]})},rs=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:s,addressToShow:u,isOwnerNameCopied:h,isAddressCopied:f,onOwnerNameCopyClick:c,onAddressCopyClick:g})=>{const m=Ie(),x=tt(),[b,n]=o.useState(0),[C,w]=o.useState(!0),[j,y]=o.useState(!1),[k,L]=o.useState(!1),[p,E]=o.useState(!1);o.useEffect(()=>{const O=[setTimeout(()=>{n(1)},500),setTimeout(()=>{n(0),E(!0)},1e3),setTimeout(()=>{w(!1),E(!1)},2e3),setTimeout(()=>{w(!0),n(1)},2500),setTimeout(()=>{n(0),E(!0)},3e3),setTimeout(()=>{w(!1),E(!1)},4e3)];return()=>{O.forEach(clearTimeout)}},[]);const S=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(cs,{children:[t.jsxs(ls,{windowSize:m,children:[t.jsxs(hs,{shouldBounce:p,isActive:b==0,isAutoSlide:C,windowSize:m,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(_a,{windowSize:m,onClick:c,"data-testid":J("owner-name-copy-click"),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(kt,{children:[Ze.cardDetails.owner,t.jsxs(er,{children:[t.jsx(Ja,{children:h===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:j})}),h||j?t.jsx(Xa,{children:h?Ue.copyToClipBoard.copied:Ue.copyToClipBoard.copy}):null]})]}),t.jsx(Ua,{children:t.jsx(Yt,{children:s})})]}):null,u!=null?t.jsxs(Za,{windowSize:m,onClick:g,"data-testid":J("address-copy-click"),onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:[t.jsxs(kt,{children:[Ze.cardDetails.address,t.jsxs(er,{children:[t.jsx(Ja,{children:f===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:k})}),f||k?t.jsx(Xa,{children:f?Ue.copyToClipBoard.copied:Ue.copyToClipBoard.copy}):null]})]}),t.jsx(ms,{windowSize:m,children:t.jsx(to,{address:u,isDisabled:"readonly",style:{padding:a.sp0,..._.smallRegular.cssObject,textTransform:"capitalize",alignItems:"flex-start",backgroundColor:x.colors.grey4,cursor:"pointer",flexDirection:m==="small"?"column":"row",gap:$e.addressValueGap.valuePx(m),textAlign:m==="small"?"left":"right"}})})]}):null]}),t.jsxs(ps,{isActive:b==1,isAutoSlide:C,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(_a,{windowSize:m,children:[t.jsx(kt,{children:Ze.connectedAccount}),t.jsxs(us,{children:[t.jsx(Ts,{children:t.jsx(Es,{})}),t.jsx(Yt,{children:S})]})]}):null,t.jsxs(Za,{windowSize:m,children:[t.jsx(kt,{children:Ze.department}),t.jsx(Ua,{children:t.jsx(Yt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(mt,{size:"Small",start:!0}):e.chargeCard?.department?.className??Ue.strings.hyphen})})]})]})]}),t.jsx(Io,{numberOfDots:2,activeIndex:b,handleClick:n,style:{marginTop:"12px",marginBottom:$e.navigationMarginBottom.valuePx(m)},dotStyle:{width:a.sp2,height:a.sp2},spendManagementPromoCardActive:!0,promoColor:x.colors.primary,promoColorHover:x.colors.grey1})]})},is=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:s,creditAccount:u,creditAccountRepayment:h,isDebitCard:f,controllerEmails:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,cardIssuedByRoles:b,cardIssuedByDepartmentName:n,cardHolderRoles:C,cardHolderDepartmentName:w,analytics:j})=>{if(e.chargeCard!=null&&i==="Completed"&&e.transactionStatistics.fetchState==="Completed"&&(!s||u.fetchState==="Completed"&&h.fetchState==="Completed")&&(!f||e.depositAccountLimitFetchState.fetchState==="Completed")){const y=e.chargeCard.type.code.includes("physical")?e.chargeCard.cardActivationAttemptHistory[0]?.timestamp:e.chargeCard.createTime;j.trackCardsUpdateSpendLimitInitiated(c,g,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:eo(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:pt(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:y?.format(ut.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name,cardSpentAmount:pt(e.chargeCard.balance.amount),cardAvailableLimit:pt(e.chargeCard.available.amount),cardUtilizationPercent:Qi(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:pt(Ki(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:za(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:b,cardIssuedByDepartment:n},{cardholderName:za(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:w},"Card Detail","Hyperlink",(e?.chargeCard?.recommendations??[]).map(k=>pt(k.creditLimit.amount)),m,x)}},os=r.div`
501
501
  display: flex;
502
502
  align-items: ${e=>e.windowSize==="medium-compact"||e.windowSize==="medium-regular"?"flex-start":"center"};
503
503
  gap: ${e=>$e.remainingAmountContainerGap.valuePx(e.windowSize)};
@@ -704,7 +704,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
704
704
  align-items: center;
705
705
  justify-content: center;
706
706
  position: relative;
707
- `,Ct=ke.getLocalizedStrings().spendManagement.chargeCard.cardDetails.header,Fs={key:"merchant",value:Ct.merchant,sortOrder:"ascending",width:new T(38,38)},Rs={key:"paymentDate",value:Ct.paymentDate,sortOrder:"ascending",width:new T(21,21)},zs={key:"receipts",value:Ct.receipts,sortOrder:"ascending",width:new T(16,16)},Ps={key:"type",value:Ct.type,sortOrder:"ascending",width:new T(14,14)},Ms={key:"amount",value:Ct.amount,sortOrder:"ascending",width:new T(11,11)},Br=()=>[Fs,Rs,zs,Ps,Ms],it={headerLastColumnTopPadding:new T(l[0],l[4]),headerLastColumnRightPadding:new T(l[3],l[11]),headerLastColumnBottomPadding:new T(l[0],l[4]),headerLastColumnLeftPadding:new T(l[3],l[11]),headerHeight:new T(wo,xo)};function Vs({hideSorting:e,sortConfig:i,onColumnSortConfigChanged:s}){const u=tt(),h=Ie(),f=Br(),c=(n,C)=>{let w=C;i.sortKey===n&&(w=C==="ascending"?"descending":"ascending"),s(n,w)},g=f.find(n=>n.key===i.sortKey)??f[0],m=n=>f.find(C=>C.key===n)?.value??"",x=f.map(n=>n.key),b=ke.getLocalizedStrings().spendManagement.chargeCard.cardList;return h==="small"?t.jsxs(tr,{windowSize:h,children:[t.jsxs(Ns,{children:[t.jsx(_s,{children:t.jsx(Ws,{})}),t.jsx(uo,{title:b.sortBy,placeholder:b.sortBy,pickerValues:x,valueToLabel:m,selectedValue:i.sortKey,onPickerSelectionChanged:n=>{c(n,"ascending")},optionTextStyle:_.smallRegular,titleTextStyle:_.smallRegular,titleColor:u.colors.primary,selectedOptionColor:u.colors.hero,optionBackgroundColor:u.colors.grey5,downChevronVisible:!1,backgroundColor:u.colors.grey4,isDisabled:e})]}),t.jsxs(Gs,{hideSorting:e,onClick:()=>{e||c(g.key,g.sortOrder)},"data-testid":J("charge-card-trxn-small-header",i.sortKey),children:[t.jsx(ge,{children:g.value}),e?null:t.jsx(ar,{sortDataValue:i.sortKey,headerData:g,children:t.jsx(rr,{})})]})]}):t.jsx(tr,{windowSize:h,children:f.map(n=>t.jsxs(Hs,{hideSorting:e,sortDataValue:i.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:h,children:[t.jsxs(Zs,{hideSorting:e,onClick:()=>{e||c(n.key,n.sortOrder)},"data-testid":J("charge-card-trxn-header",i.sortKey),children:[t.jsx(ge,{children:n.value}),t.jsx(ar,{sortDataValue:i.sortKey,headerData:n,children:e?null:t.jsx(rr,{})})]}),t.jsx(Us,{sortDataValue:i.sortKey,windowSize:h,isVisible:e?!1:i.sortKey===n.key&&n.key!=="paymentDate",children:e?null:t.jsx(Bs,{onClick:()=>{e||c("paymentDate","ascending")},"data-testid":J("charge-card-trxn-close-sort",i.sortKey)})})]},n.key))})}const Os=$o.memo(Vs),tr=r(ge)`
707
+ `,Ct=ke.getLocalizedStrings().spendManagement.chargeCard.cardDetails.header,Fs={key:"merchant",value:Ct.merchant,sortOrder:"ascending",width:new T(38,38)},Rs={key:"paymentDate",value:Ct.paymentDate,sortOrder:"ascending",width:new T(21,21)},Ps={key:"receipts",value:Ct.receipts,sortOrder:"ascending",width:new T(16,16)},zs={key:"type",value:Ct.type,sortOrder:"ascending",width:new T(14,14)},Ms={key:"amount",value:Ct.amount,sortOrder:"ascending",width:new T(11,11)},Br=()=>[Fs,Rs,Ps,zs,Ms],it={headerLastColumnTopPadding:new T(l[0],l[4]),headerLastColumnRightPadding:new T(l[3],l[11]),headerLastColumnBottomPadding:new T(l[0],l[4]),headerLastColumnLeftPadding:new T(l[3],l[11]),headerHeight:new T(wo,xo)};function Vs({hideSorting:e,sortConfig:i,onColumnSortConfigChanged:s}){const u=tt(),h=Ie(),f=Br(),c=(n,C)=>{let w=C;i.sortKey===n&&(w=C==="ascending"?"descending":"ascending"),s(n,w)},g=f.find(n=>n.key===i.sortKey)??f[0],m=n=>f.find(C=>C.key===n)?.value??"",x=f.map(n=>n.key),b=ke.getLocalizedStrings().spendManagement.chargeCard.cardList;return h==="small"?t.jsxs(tr,{windowSize:h,children:[t.jsxs(Ns,{children:[t.jsx(_s,{children:t.jsx(Ws,{})}),t.jsx(uo,{title:b.sortBy,placeholder:b.sortBy,pickerValues:x,valueToLabel:m,selectedValue:i.sortKey,onPickerSelectionChanged:n=>{c(n,"ascending")},optionTextStyle:_.smallRegular,titleTextStyle:_.smallRegular,titleColor:u.colors.primary,selectedOptionColor:u.colors.hero,optionBackgroundColor:u.colors.grey5,downChevronVisible:!1,backgroundColor:u.colors.grey4,isDisabled:e})]}),t.jsxs(Gs,{hideSorting:e,onClick:()=>{e||c(g.key,g.sortOrder)},"data-testid":J("charge-card-trxn-small-header",i.sortKey),children:[t.jsx(ge,{children:g.value}),e?null:t.jsx(ar,{sortDataValue:i.sortKey,headerData:g,children:t.jsx(rr,{})})]})]}):t.jsx(tr,{windowSize:h,children:f.map(n=>t.jsxs(Hs,{hideSorting:e,sortDataValue:i.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:h,children:[t.jsxs(Zs,{hideSorting:e,onClick:()=>{e||c(n.key,n.sortOrder)},"data-testid":J("charge-card-trxn-header",i.sortKey),children:[t.jsx(ge,{children:n.value}),t.jsx(ar,{sortDataValue:i.sortKey,headerData:n,children:e?null:t.jsx(rr,{})})]}),t.jsx(Us,{sortDataValue:i.sortKey,windowSize:h,isVisible:e?!1:i.sortKey===n.key&&n.key!=="paymentDate",children:e?null:t.jsx(Bs,{onClick:()=>{e||c("paymentDate","ascending")},"data-testid":J("charge-card-trxn-close-sort",i.sortKey)})})]},n.key))})}const Os=$o.memo(Vs),tr=r(ge)`
708
708
  top: ${a.sp0};
709
709
  left: ${a.sp0};
710
710
  min-height: ${e=>it.headerHeight.valuePx(e.windowSize)};
@@ -780,7 +780,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
780
780
  &:hover {
781
781
  color: ${e=>e.hideSorting?e.theme.colors.hero:e.theme.colors.primary};
782
782
  }
783
- `;function Nr(e,i,s){return Ys(e,i,s)}async function Ys(e,i,s,u){const h=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,f=ke.getLocalizedStrings().downloadReport;try{const c=await bo(h,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(c.ok){const g=u??So(c.headers,"Charge Card Transaction Receipt.pdf"),m=await c.arrayBuffer();yo(m,g)}else console.error(`${f.reportErrorMessage} ${c.statusText}`)}catch(c){console.error(`${f.reportErrorMessage} ${JSON.stringify(c)}`)}}async function Wr(e,i,s){const u=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,h=ke.getLocalizedStrings().downloadReport;try{const f=await fetch(u,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(f.ok)return await f.json();console.error(`${h.reportErrorMessage} ${f.statusText}`)}catch(f){throw console.error(`${h.reportErrorMessage} ${JSON.stringify(f)}`),f}return[]}const qs=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"})),_r=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 21.5894C3.6641 21.5893 3.99994 21.2535 3.99994 20.8394V8.37549L4.72748 9.10303C5.02038 9.39591 5.49514 9.39592 5.78803 9.10303C6.08091 8.81014 6.08091 8.33537 5.78803 8.04248L3.7851 6.03955C3.49221 5.74666 3.01745 5.74667 2.72455 6.03955C2.71669 6.04741 2.70953 6.05585 2.70209 6.06396C2.68584 6.07767 2.66955 6.09163 2.65424 6.10693L0.711857 8.04932C0.418964 8.34221 0.418964 8.81795 0.711857 9.11084C1.00469 9.40341 1.47957 9.40341 1.7724 9.11084L2.49994 8.3833V20.8394C2.49994 21.2536 2.83573 21.5894 3.24994 21.5894Z",fill:"currentColor"})),Ur=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:Js,spendManagement:{chargeCard:{cardDetails:ir}},common:{strings:{hyphen:Xs},tooltips:{addMissingReceipt:Ks,addReceipt:Qs,viewReceipt:ed}}}=ke.getLocalizedStrings(),_e={containerPaddingLeft:new T(l[3],l[4]),containerPaddingRight:new T(l[3],l[4]),containerPaddingTop:new T(l[2],l[3]),containerPaddingBottom:new T(l[2],l[3]),containerMarginLeft:new T(l[4],l[8]),webkitLineClamp:new T(2,1,1,1,1)},Zr=e=>(e.attachmentFilePaths??[]).filter(i=>/\.(pdf|png|jpg|jpeg)$/i.test(i)).map(jo),td=(e,i)=>(e.attachmentFilePaths?.length??0)>0?ed:e.amount.amount<=i.amount?Qs:Ks,Gr=(e,i,s,u)=>(e.attachmentFilePaths?.length??0)>0?t.jsx(yd,{onClick:h=>{h.stopPropagation(),u()},"data-testid":J("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx(kd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(vd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-upload-receipt",e.id)}),ad=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,uploadReceiptsFetchState:g,uploadReceiptsShowTick:m,isViewReceiptClickedImmediatelyAfterUpload:x,authParams:b,transaction:n,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const S=Ie(),[O,H]=o.useState(!1),[v,Y]=o.useState([]),[X,U]=o.useState(null);o.useEffect(()=>{!s&&x&&(K(D[0]),Q())},[s,x]);const D=Zr(n),[oe,K]=o.useState(D[0]),[ne,B]=o.useState([]),[Z,W]=o.useState(void 0);o.useEffect(()=>{async function te(ee){ne.includes(ee.attachment_id)?console.warn(`Attachment with ID ${ee.attachment_id} is already getting downloaded`):(B([ee.attachment_id,...ne]),await Nr(f,b,ee),B(Rr(ne,M=>M==ee.attachment_id)))}Z!=null&&(te({card_id:c,transaction_id:n.id,attachment_id:Z}),W(void 0))},[Z]);const ae=()=>{L(n.id,c,!1),H(!1),U(null),Y([]),D.length>0&&K(D[0])},Q=()=>{H(!0);const te=D.map(M=>M.id);async function ee(M){return await Wr(h,b,M)}ee({card_id:c,transaction_id:n.id,attachment_ids:te}).then(M=>{Y(M),M.length>0&&U(M[0])})},{merchant:re,createTime:se,transactionType:z,thirdPartyTransactionId:de}=n,G=()=>{s?(p(),L(n.id,c,!0)):(K(D[0]),Q())},$=o.useRef(null);async function q(te,ee){y(n.id,c,"In-Progress"),await Mr(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,te,ee).then(M=>{M!=null&&w(n.id,M),y(n.id,c,"Completed"),k(n.id,c,!0),setTimeout(()=>{k(n.id,c,!1),j(!0)},2e3)}).catch(M=>{y(n.id,c,"Error"),j(!1,M)})}const N=()=>{$.current?.click()},le=te=>{if(te.target.files!=null){const ee=te.target.files,M=[],be=[];for(let Ae=0;Ae<ee.length;Ae++)M.push(ee[Ae].name),be.push(ee[Ae]);q?.(be,M)}},A=Br(),P=Tr(n.transactionStatus),ce=u?re.brandName??re.name:re.name,ie=Ge("0,0.00",n.amount),I=z.code==="transfer",je=de!=null&&u,Ce=I&&n.direction==="debit",Re=I&&n.direction==="credit";return t.jsxs(sd,{windowSize:S,isClickable:je,"data-testid":J("card-transaction-row",n.id),onClick:te=>{te.stopPropagation(),je&&E(z.code,de)},children:[t.jsx(dd,{children:t.jsxs(cd,{children:[t.jsxs(ld,{windowSize:S,responsiveWidth:A[0].width,children:[Ce?t.jsx(gd,{}):Re?t.jsx(Cd,{}):t.jsx(fd,{src:re.logo?.url?.toString()}),t.jsx(hd,{windowSize:S,hasMarginRight:P.code==="paid",children:ce}),P.code!=="paid"?t.jsxs(id,{children:[t.jsx(nd,{windowSize:S}),t.jsx(od,{color:P.color,windowSize:S,children:P.value})]}):null]}),t.jsx(md,{windowSize:S,responsiveWidth:A[1].width,children:t.jsx(wd,{children:se.format(Js.visual.MMMDCommaYYYYformat)})}),t.jsx(bd,{windowSize:S,responsiveWidth:A[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Xs:g?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx($d,{}):t.jsxs(Qt,{enterDelay:600,display:"flex",placement:"bottom",title:td(n,C),children:[t.jsx(rd,{"data-testid":J("card-transaction-row-upload-receipt",n.id),onClick:te=>{te.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:$,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:le,multiple:!0,onFileSizeError:(te,ee)=>{te&&j(!1,{code:500,message:ee===!0?ir.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):ir.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,C,N,G)]})}),t.jsx(xd,{windowSize:S,responsiveWidth:A[3].width,children:t.jsx(Sd,{title:z.name,children:z.name})}),t.jsx(pd,{windowSize:S,responsiveWidth:A[4].width,children:t.jsx(ud,{windowSize:S,title:Ge("0,0.[00]",n.amount),children:n.direction==="debit"?ie:`-${ie}`})})]})}),O&&D.length>0?Pr.createPortal(t.jsx(Fr,{allFiles:v,fileSource:X,file:oe,title:oe.fileName,attachments:D,setFileSource:U,setShowFullScreenView:H,onCrossClick:ae,setSelectedFileAttachment:K,onDownloadClick:te=>{W(te.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},rd=r.div``,id=r.div`
783
+ `;function Nr(e,i,s){return Ys(e,i,s)}async function Ys(e,i,s,u){const h=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,f=ke.getLocalizedStrings().downloadReport;try{const c=await bo(h,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(c.ok){const g=u??So(c.headers,"Charge Card Transaction Receipt.pdf"),m=await c.arrayBuffer();yo(m,g)}else console.error(`${f.reportErrorMessage} ${c.statusText}`)}catch(c){console.error(`${f.reportErrorMessage} ${JSON.stringify(c)}`)}}async function Wr(e,i,s){const u=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,h=ke.getLocalizedStrings().downloadReport;try{const f=await fetch(u,{method:"GET",headers:{"zeni-user-id":i.userId,"zeni-tenant-id":i.tenantId,"zeni-session-id":i.sessionId}});if(f.ok)return await f.json();console.error(`${h.reportErrorMessage} ${f.statusText}`)}catch(f){throw console.error(`${h.reportErrorMessage} ${JSON.stringify(f)}`),f}return[]}const qs=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"})),_r=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 21.5894C3.6641 21.5893 3.99994 21.2535 3.99994 20.8394V8.37549L4.72748 9.10303C5.02038 9.39591 5.49514 9.39592 5.78803 9.10303C6.08091 8.81014 6.08091 8.33537 5.78803 8.04248L3.7851 6.03955C3.49221 5.74666 3.01745 5.74667 2.72455 6.03955C2.71669 6.04741 2.70953 6.05585 2.70209 6.06396C2.68584 6.07767 2.66955 6.09163 2.65424 6.10693L0.711857 8.04932C0.418964 8.34221 0.418964 8.81795 0.711857 9.11084C1.00469 9.40341 1.47957 9.40341 1.7724 9.11084L2.49994 8.3833V20.8394C2.49994 21.2536 2.83573 21.5894 3.24994 21.5894Z",fill:"currentColor"})),Ur=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:Js,spendManagement:{chargeCard:{cardDetails:ir}},common:{strings:{hyphen:Xs},tooltips:{addMissingReceipt:Ks,addReceipt:Qs,viewReceipt:ed}}}=ke.getLocalizedStrings(),_e={containerPaddingLeft:new T(l[3],l[4]),containerPaddingRight:new T(l[3],l[4]),containerPaddingTop:new T(l[2],l[3]),containerPaddingBottom:new T(l[2],l[3]),containerMarginLeft:new T(l[4],l[8]),webkitLineClamp:new T(2,1,1,1,1)},Zr=e=>(e.attachmentFilePaths??[]).filter(i=>/\.(pdf|png|jpg|jpeg)$/i.test(i)).map(jo),td=(e,i)=>(e.attachmentFilePaths?.length??0)>0?ed:e.amount.amount<=i.amount?Qs:Ks,Gr=(e,i,s,u)=>(e.attachmentFilePaths?.length??0)>0?t.jsx(yd,{onClick:h=>{h.stopPropagation(),u()},"data-testid":J("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx(kd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(vd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-upload-receipt",e.id)}),ad=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,uploadReceiptsFetchState:g,uploadReceiptsShowTick:m,isViewReceiptClickedImmediatelyAfterUpload:x,authParams:b,transaction:n,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const S=Ie(),[O,H]=o.useState(!1),[v,Y]=o.useState([]),[X,U]=o.useState(null);o.useEffect(()=>{!s&&x&&(K(D[0]),Q())},[s,x]);const D=Zr(n),[oe,K]=o.useState(D[0]),[ne,B]=o.useState([]),[Z,W]=o.useState(void 0);o.useEffect(()=>{async function te(ee){ne.includes(ee.attachment_id)?console.warn(`Attachment with ID ${ee.attachment_id} is already getting downloaded`):(B([ee.attachment_id,...ne]),await Nr(f,b,ee),B(Rr(ne,M=>M==ee.attachment_id)))}Z!=null&&(te({card_id:c,transaction_id:n.id,attachment_id:Z}),W(void 0))},[Z]);const ae=()=>{L(n.id,c,!1),H(!1),U(null),Y([]),D.length>0&&K(D[0])},Q=()=>{H(!0);const te=D.map(M=>M.id);async function ee(M){return await Wr(h,b,M)}ee({card_id:c,transaction_id:n.id,attachment_ids:te}).then(M=>{Y(M),M.length>0&&U(M[0])})},{merchant:re,createTime:se,transactionType:P,thirdPartyTransactionId:de}=n,G=()=>{s?(p(),L(n.id,c,!0)):(K(D[0]),Q())},$=o.useRef(null);async function q(te,ee){y(n.id,c,"In-Progress"),await Mr(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,te,ee).then(M=>{M!=null&&w(n.id,M),y(n.id,c,"Completed"),k(n.id,c,!0),setTimeout(()=>{k(n.id,c,!1),j(!0)},2e3)}).catch(M=>{y(n.id,c,"Error"),j(!1,M)})}const N=()=>{$.current?.click()},le=te=>{if(te.target.files!=null){const ee=te.target.files,M=[],be=[];for(let Ae=0;Ae<ee.length;Ae++)M.push(ee[Ae].name),be.push(ee[Ae]);q?.(be,M)}},A=Br(),z=Tr(n.transactionStatus),ce=u?re.brandName??re.name:re.name,ie=Ge("0,0.00",n.amount),I=P.code==="transfer",je=de!=null&&u,Ce=I&&n.direction==="debit",Re=I&&n.direction==="credit";return t.jsxs(sd,{windowSize:S,isClickable:je,"data-testid":J("card-transaction-row",n.id),onClick:te=>{te.stopPropagation(),je&&E(P.code,de)},children:[t.jsx(dd,{children:t.jsxs(cd,{children:[t.jsxs(ld,{windowSize:S,responsiveWidth:A[0].width,children:[Ce?t.jsx(gd,{}):Re?t.jsx(Cd,{}):t.jsx(fd,{src:re.logo?.url?.toString()}),t.jsx(hd,{windowSize:S,hasMarginRight:z.code==="paid",children:ce}),z.code!=="paid"?t.jsxs(id,{children:[t.jsx(nd,{windowSize:S}),t.jsx(od,{color:z.color,windowSize:S,children:z.value})]}):null]}),t.jsx(md,{windowSize:S,responsiveWidth:A[1].width,children:t.jsx(wd,{children:se.format(Js.visual.MMMDCommaYYYYformat)})}),t.jsx(bd,{windowSize:S,responsiveWidth:A[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Xs:g?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx($d,{}):t.jsxs(Qt,{enterDelay:600,display:"flex",placement:"bottom",title:td(n,C),children:[t.jsx(rd,{"data-testid":J("card-transaction-row-upload-receipt",n.id),onClick:te=>{te.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:$,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:le,multiple:!0,onFileSizeError:(te,ee)=>{te&&j(!1,{code:500,message:ee===!0?ir.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):ir.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,C,N,G)]})}),t.jsx(xd,{windowSize:S,responsiveWidth:A[3].width,children:t.jsx(Sd,{title:P.name,children:P.name})}),t.jsx(pd,{windowSize:S,responsiveWidth:A[4].width,children:t.jsx(ud,{windowSize:S,title:Ge("0,0.[00]",n.amount),children:n.direction==="debit"?ie:`-${ie}`})})]})}),O&&D.length>0?zr.createPortal(t.jsx(Fr,{allFiles:v,fileSource:X,file:oe,title:oe.fileName,attachments:D,setFileSource:U,setShowFullScreenView:H,onCrossClick:ae,setSelectedFileAttachment:K,onDownloadClick:te=>{W(te.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},rd=r.div``,id=r.div`
784
784
  display: flex;
785
785
  flex-direction: row;
786
786
  align-items: center;
@@ -930,7 +930,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
930
930
  &:hover {
931
931
  color: ${e=>e.theme.colors.primary};
932
932
  }
933
- `,{dateFormat:jd,spendManagement:{chargeCard:{cardDetails:qt}},common:{strings:{hyphen:Id}}}=ke.getLocalizedStrings(),Ld={webkitLineClamp:new T(2,1,1,1,1)},Dd=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,isViewReceiptClickedImmediatelyAfterUpload:g,uploadReceiptsShowTick:m,uploadReceiptsFetchState:x,authParams:b,transaction:n,receiptRequiredAboveAmount:C,onUploadReceiptComplete:w,updateChargeCardTransactionAttachments:j,updateChargeCardTransactionReceiptsShowTick:y,updateChargeCardTransactionIsViewReceiptClicked:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const S=Ie(),[O,H]=o.useState(0),[v,Y]=o.useState(0),[X,U]=o.useState(0),D=F=>{U(F),W(!0),G(z[F]),se(ae[F])};function oe(F){H(F.targetTouches[0].clientX)}function K(F){Y(F.targetTouches[0].clientX)}function ne(F){return F<0?z.length+F:F%z.length}function B(){O-v>50&&v!==0&&X<z.length-1?(D(ne(X+1)),H(0),Y(0)):O-v<-50&&v!==0&&X>0&&(D(ne(X-1)),H(0),Y(0))}const[Z,W]=o.useState(!1),[ae,Q]=o.useState([]),[re,se]=o.useState(null);o.useEffect(()=>{!s&&g&&(G(z[0]),P())},[s,g]);const z=Zr(n),[de,G]=o.useState(z[0]),[$,q]=o.useState([]),[N,le]=o.useState(void 0);o.useEffect(()=>{async function F(he){$.includes(he.attachment_id)?console.warn(`Attachment with ID ${he.attachment_id} is already getting downloaded`):(q([he.attachment_id,...$]),await Nr(f,b,he),q(Rr($,R=>R==he.attachment_id)))}N!=null&&(F({card_id:c,transaction_id:n.id,attachment_id:N}),le(void 0))},[N]);const A=()=>{k(n.id,c,!1),W(!1),se(null),Q([]),z.length>0&&G(z[0])},P=()=>{W(!0);const F=z.map(R=>R.id);async function he(R){return await Wr(h,b,R)}he({card_id:c,transaction_id:n.id,attachment_ids:F}).then(R=>{Q(R),R.length>0&&se(R[0])})},{merchant:ce,createTime:ie,transactionType:I,thirdPartyTransactionId:je}=n,Ce=()=>{s?(p(),k(n.id,c,!0)):(G(z[0]),P())},Re=o.useRef(null);async function te(F,he){L(n.id,c,"In-Progress"),await Mr(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,F,he).then(R=>{R!=null&&j(n.id,R),L(n.id,c,"Completed"),w(!0),y(n.id,c,!0),setTimeout(()=>y(n.id,c,!1),2e3)}).catch(R=>{L(n.id,c,"Error"),w(!1,R)})}const ee=()=>{Re.current?.click()},M=F=>{if(F.target.files!=null){const he=F.target.files,R=[],qe=[];for(let ze=0;ze<he.length;ze++)R.push(he[ze].name),qe.push(he[ze]);te?.(qe,R)}},be=Tr(n.transactionStatus),Ae=u?ce.brandName??ce.name:ce.name,me=Ge("0,0.00",n.amount),He=I.code==="transfer",Ye=je!=null&&u,at=He&&n.direction==="debit",pe=He&&n.direction==="credit";return t.jsxs(Hd,{windowSize:S,"data-testid":J("card-transaction-row-small",n.id),onClick:F=>{F.stopPropagation(),Ye&&E(I.code,je)},children:[t.jsx(Bd,{children:t.jsxs(Nd,{children:[t.jsxs(Ud,{children:[t.jsx(Md,{children:at?t.jsx(Ad,{}):pe?t.jsx(Td,{}):t.jsx(Gd,{src:ce.logo?.url?.toString()})}),t.jsxs(Yd,{children:[t.jsxs(Ed,{children:[t.jsx(Wd,{windowSize:S,children:Ae}),be.code!=="paid"?t.jsxs(Fd,{children:[t.jsx(zd,{windowSize:S}),t.jsx(Rd,{color:be.color,windowSize:S,children:be.value})]}):null]}),t.jsx(_d,{children:`${qt.paymentDate} ${ie.format(jd.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(Zd,{children:[t.jsx(qd,{children:n.direction==="debit"?me:`-${me}`}),t.jsx(Od,{title:I.name,children:I.name}),t.jsx(Vd,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Id:x?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx(Pd,{}):t.jsxs(or,{children:[t.jsx(or,{"data-testid":J("card-transaction-row-small-upload-receipt",n.id),onClick:F=>{F.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:Re,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:M,multiple:!0,onFileSizeError:(F,he)=>{F&&w(!1,{code:500,message:he===!0?qt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):qt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,C,ee,Ce)]})})]})]})}),Z&&z.length>0?Pr.createPortal(t.jsx(Fr,{allFiles:ae,fileSource:re,file:de,title:de.fileName,attachments:z,setFileSource:se,setShowFullScreenView:W,onCrossClick:A,setSelectedFileAttachment:G,onDownloadClick:F=>{le(F.id)},handleTouchStart:oe,handleTouchMove:K,handleTouchEnd:B}),document.body):null]})},qr=e=>we`
933
+ `,{dateFormat:jd,spendManagement:{chargeCard:{cardDetails:qt}},common:{strings:{hyphen:Id}}}=ke.getLocalizedStrings(),Ld={webkitLineClamp:new T(2,1,1,1,1)},Dd=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,isViewReceiptClickedImmediatelyAfterUpload:g,uploadReceiptsShowTick:m,uploadReceiptsFetchState:x,authParams:b,transaction:n,receiptRequiredAboveAmount:C,onUploadReceiptComplete:w,updateChargeCardTransactionAttachments:j,updateChargeCardTransactionReceiptsShowTick:y,updateChargeCardTransactionIsViewReceiptClicked:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const S=Ie(),[O,H]=o.useState(0),[v,Y]=o.useState(0),[X,U]=o.useState(0),D=F=>{U(F),W(!0),G(P[F]),se(ae[F])};function oe(F){H(F.targetTouches[0].clientX)}function K(F){Y(F.targetTouches[0].clientX)}function ne(F){return F<0?P.length+F:F%P.length}function B(){O-v>50&&v!==0&&X<P.length-1?(D(ne(X+1)),H(0),Y(0)):O-v<-50&&v!==0&&X>0&&(D(ne(X-1)),H(0),Y(0))}const[Z,W]=o.useState(!1),[ae,Q]=o.useState([]),[re,se]=o.useState(null);o.useEffect(()=>{!s&&g&&(G(P[0]),z())},[s,g]);const P=Zr(n),[de,G]=o.useState(P[0]),[$,q]=o.useState([]),[N,le]=o.useState(void 0);o.useEffect(()=>{async function F(he){$.includes(he.attachment_id)?console.warn(`Attachment with ID ${he.attachment_id} is already getting downloaded`):(q([he.attachment_id,...$]),await Nr(f,b,he),q(Rr($,R=>R==he.attachment_id)))}N!=null&&(F({card_id:c,transaction_id:n.id,attachment_id:N}),le(void 0))},[N]);const A=()=>{k(n.id,c,!1),W(!1),se(null),Q([]),P.length>0&&G(P[0])},z=()=>{W(!0);const F=P.map(R=>R.id);async function he(R){return await Wr(h,b,R)}he({card_id:c,transaction_id:n.id,attachment_ids:F}).then(R=>{Q(R),R.length>0&&se(R[0])})},{merchant:ce,createTime:ie,transactionType:I,thirdPartyTransactionId:je}=n,Ce=()=>{s?(p(),k(n.id,c,!0)):(G(P[0]),z())},Re=o.useRef(null);async function te(F,he){L(n.id,c,"In-Progress"),await Mr(`${e}/1.0/cards/transactions/${n.id}/attachments`,b,F,he).then(R=>{R!=null&&j(n.id,R),L(n.id,c,"Completed"),w(!0),y(n.id,c,!0),setTimeout(()=>y(n.id,c,!1),2e3)}).catch(R=>{L(n.id,c,"Error"),w(!1,R)})}const ee=()=>{Re.current?.click()},M=F=>{if(F.target.files!=null){const he=F.target.files,R=[],qe=[];for(let Pe=0;Pe<he.length;Pe++)R.push(he[Pe].name),qe.push(he[Pe]);te?.(qe,R)}},be=Tr(n.transactionStatus),Ae=u?ce.brandName??ce.name:ce.name,me=Ge("0,0.00",n.amount),He=I.code==="transfer",Ye=je!=null&&u,at=He&&n.direction==="debit",pe=He&&n.direction==="credit";return t.jsxs(Hd,{windowSize:S,"data-testid":J("card-transaction-row-small",n.id),onClick:F=>{F.stopPropagation(),Ye&&E(I.code,je)},children:[t.jsx(Bd,{children:t.jsxs(Nd,{children:[t.jsxs(Ud,{children:[t.jsx(Md,{children:at?t.jsx(Ad,{}):pe?t.jsx(Td,{}):t.jsx(Gd,{src:ce.logo?.url?.toString()})}),t.jsxs(Yd,{children:[t.jsxs(Ed,{children:[t.jsx(Wd,{windowSize:S,children:Ae}),be.code!=="paid"?t.jsxs(Fd,{children:[t.jsx(Pd,{windowSize:S}),t.jsx(Rd,{color:be.color,windowSize:S,children:be.value})]}):null]}),t.jsx(_d,{children:`${qt.paymentDate} ${ie.format(jd.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(Zd,{children:[t.jsx(qd,{children:n.direction==="debit"?me:`-${me}`}),t.jsx(Od,{title:I.name,children:I.name}),t.jsx(Vd,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?Id:x?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx(zd,{}):t.jsxs(or,{children:[t.jsx(or,{"data-testid":J("card-transaction-row-small-upload-receipt",n.id),onClick:F=>{F.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:Re,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:M,multiple:!0,onFileSizeError:(F,he)=>{F&&w(!1,{code:500,message:he===!0?qt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):qt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,C,ee,Ce)]})})]})]})}),Z&&P.length>0?zr.createPortal(t.jsx(Fr,{allFiles:ae,fileSource:re,file:de,title:de.fileName,attachments:P,setFileSource:se,setShowFullScreenView:W,onCrossClick:A,setSelectedFileAttachment:G,onDownloadClick:F=>{le(F.id)},handleTouchStart:oe,handleTouchMove:K,handleTouchEnd:B}),document.body):null]})},qr=e=>we`
934
934
  width: ${a.sp4};
935
935
  height: ${a.sp4};
936
936
  color: ${e.colors.hero};
@@ -950,13 +950,13 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
950
950
  min-height: ${a.sp4};
951
951
  `,Rd=r(st)`
952
952
  color: ${e=>e.color};
953
- `,zd=r.div`
953
+ `,Pd=r.div`
954
954
  display: block;
955
955
  width: ${a.sp1};
956
956
  height: ${a.sp1};
957
957
  border-radius: 100%;
958
958
  background-color: ${e=>e.theme.colors.grey1};
959
- `,Pd=r(gt)`
959
+ `,zd=r(gt)`
960
960
  height: ${a.sp4};
961
961
  width: ${a.sp4};
962
962
  color: ${d.success};
@@ -1024,7 +1024,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
1024
1024
  margin-bottom: 6px;
1025
1025
  `,qd=r(Oe)`
1026
1026
  color: inherit;
1027
- `,Jd=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"})))),Xd=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:nt}},common:Kd}=ke.getLocalizedStrings();function Qd({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,receiptRequiredAboveAmount:g,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:b,cardsEndPoint:n,authParams:C,hideSorting:w,isOwnCard:j,uiState:y,fetchState:k,cardHolderUser:L,cardStatusCode:p="active",cardCodeType:E="business_virtual_credit_card",onReloadTransactions:S,onFetchChargeCardTransactionList:O,onColumnSortConfigChanged:H,removeSnackbar:v,onChargeCardTransactionRowClick:Y,onUploadReceiptComplete:X,onUpdateScrollYOffset:U,updateChargeCardTransactionAttachments:D,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:K,updateChargeCardTransactionIsViewReceiptClicked:ne}){const B=Ie();Bi({componentName:"cards.details",enabled:k==="Completed"});const Z=o.useRef(null),[W,ae]=o.useState(!1);o.useEffect(()=>{Z.current?.resetAfterIndex(0)},[B,Z]),o.useEffect(()=>{k==="Completed"&&ae(!1)},[k]);const Q=()=>B!=="small"?74:128,re=(G,$)=>{O(G,$)},se=()=>{ae(!0),re(y.pageToken,y.pageTokenType)},z=G=>G<e.length,de=()=>{y.pageToken!=null&&k==="Completed"&&se()};return t.jsxs(sc,{isOwnCard:j,windowSize:B,isEmptyTransaction:e.length===0,children:[t.jsx(dc,{windowSize:B,children:k==="Error"?t.jsxs(hc,{children:[t.jsx(pc,{onClick:S,"data-testid":J("card-transaction-list-reload"),children:t.jsx(yr,{})}),t.jsx(uc,{children:Kd.reloadPage.label})]}):k==="Not-Started"||k==="In-Progress"&&e.length===0?t.jsx(gc,{children:t.jsx(mt,{size:"ExtraLarge",start:!0})}):k==="Completed"||k==="In-Progress"&&e.length>0?p==="request_on_hold"?t.jsx(tc,{cardType:E,cardHolderUser:L}):p==="inactive"?t.jsx(ac,{cardHolderUser:L}):e.length===0?t.jsx(ec,{}):t.jsx(lc,{windowSize:B,children:t.jsx(Ni,{children:({height:G,width:$})=>t.jsx(Wi,{isItemLoaded:z,itemCount:e.length+1,loadMoreItems:de,children:({onItemsRendered:q})=>t.jsx(_i,{ref:Z,height:G,itemCount:e.length,onItemsRendered:q,itemSize:Q,itemKey:N=>e[N].id,width:$,style:{willChange:"auto"},innerElementType:N=>nc(N,w,y,k,H),onScroll:({scrollOffset:N})=>{U?.(N)},initialScrollOffset:y.scrollYOffset,children:N=>t.jsx(rc,{...N,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:b,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,authParams:C,transactions:e,receiptRequiredAboveAmount:g,updateChargeCardTransactionAttachments:D,onUploadReceiptComplete:X,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:K,updateChargeCardTransactionIsViewReceiptClicked:ne,onChargeCardTransactionRowClick:Y,removeSnackbar:v})})})})}):null}),W===!0?t.jsx(Cc,{children:t.jsx(mt,{size:"Small",start:!0})}):null]})}const ec=()=>{const e=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Xr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.emptyTransactions.title}),t.jsx(sa,{windowSize:e,children:nt.transactionTable.emptyTransactions.subTitle})]})]})},tc=({cardType:e,cardHolderUser:i})=>{const s=i!=null?i.firstName+" "+i.lastName:"",u=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(wc,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.pendingProfileCompletion.title}),t.jsx(sa,{windowSize:u,children:nt.transactionTable.pendingProfileCompletion.subTitle[e].replace("__user__",s)})]})]})},ac=({cardHolderUser:e})=>{const i=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Xr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.pendingActivation.title}),t.jsx(sa,{windowSize:i,children:nt.transactionTable.pendingActivation.subTitle.replace("__user__",e?.firstName??"")})]})]})},rc=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,style:u,transactions:h,isAiCategorizationEnabledForCardsTransactions:f,uploadReceiptsFetchStateByTransactionId:c,uploadReceiptsShowTickByTransactionId:g,isViewReceiptClickedImmediatelyAfterUploadTransactionId:m,cardId:x,cardsEndPoint:b,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,receiptRequiredAboveAmount:w,authParams:j,updateChargeCardTransactionAttachments:y,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:S,removeSnackbar:O})=>t.jsx(mc,{style:{...u,width:"100%"},className:"spend-management-list-item",children:t.jsx(oc,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardId:x,isAiCategorizationEnabledForCardsTransactions:f,cardsEndPoint:b,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,authParams:j,receiptRequiredAboveAmount:w,transaction:h[e],uploadReceiptsFetchState:c?.[h[e].id],uploadReceiptsShowTick:g?.[h[e].id],isViewReceiptClickedImmediatelyAfterUpload:m?.[h[e].id],updateChargeCardTransactionAttachments:y,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:S,removeSnackbar:O},h[e].id)}),ic=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,cardsEndPoint:g,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,cardId:b,receiptRequiredAboveAmount:n,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,onChargeCardTransactionRowClick:p,removeSnackbar:E})=>{const S=Ie()==="small"?Dd:ad;return t.jsx(S,{isSnackbarOpen:s,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,transaction:e,cardId:b,receiptRequiredAboveAmount:n,cardsEndPoint:g,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,onChargeCardTransactionRowClick:p,removeSnackbar:E})},oc=o.memo(ic),nc=(e,i,s,u,h)=>t.jsx(Jr,{...e,onColumnSortConfigChanged:h,hideSorting:i,uiState:{sortKey:s.sortKey,sortOrder:s.sortOrder},fetchState:u}),Jr=o.forwardRef((e,i)=>{const{children:s,style:u,uiState:h,onColumnSortConfigChanged:f,hideSorting:c,...g}=e;return t.jsxs(fc,{ref:i,style:{...u,width:"auto"},...g,children:[t.jsx(Os,{onColumnSortConfigChanged:f,sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},hideSorting:c}),t.jsx(cc,{children:s})]})});Jr.displayName="Charge Card Transaction list View inner element type";const sc=r.div`
1027
+ `,Jd=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"})))),Xd=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:nt}},common:Kd}=ke.getLocalizedStrings();function Qd({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,receiptRequiredAboveAmount:g,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:b,cardsEndPoint:n,authParams:C,hideSorting:w,isOwnCard:j,uiState:y,fetchState:k,cardHolderUser:L,cardStatusCode:p="active",cardCodeType:E="business_virtual_credit_card",onReloadTransactions:S,onFetchChargeCardTransactionList:O,onColumnSortConfigChanged:H,removeSnackbar:v,onChargeCardTransactionRowClick:Y,onUploadReceiptComplete:X,onUpdateScrollYOffset:U,updateChargeCardTransactionAttachments:D,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:K,updateChargeCardTransactionIsViewReceiptClicked:ne}){const B=Ie();Bi({componentName:"cards.details",enabled:k==="Completed"});const Z=o.useRef(null),[W,ae]=o.useState(!1);o.useEffect(()=>{Z.current?.resetAfterIndex(0)},[B,Z]),o.useEffect(()=>{k==="Completed"&&ae(!1)},[k]);const Q=()=>B!=="small"?74:128,re=(G,$)=>{O(G,$)},se=()=>{ae(!0),re(y.pageToken,y.pageTokenType)},P=G=>G<e.length,de=()=>{y.pageToken!=null&&k==="Completed"&&se()};return t.jsxs(sc,{isOwnCard:j,windowSize:B,isEmptyTransaction:e.length===0,children:[t.jsx(dc,{windowSize:B,children:k==="Error"?t.jsxs(hc,{children:[t.jsx(pc,{onClick:S,"data-testid":J("card-transaction-list-reload"),children:t.jsx(yr,{})}),t.jsx(uc,{children:Kd.reloadPage.label})]}):k==="Not-Started"||k==="In-Progress"&&e.length===0?t.jsx(gc,{children:t.jsx(mt,{size:"ExtraLarge",start:!0})}):k==="Completed"||k==="In-Progress"&&e.length>0?p==="request_on_hold"?t.jsx(tc,{cardType:E,cardHolderUser:L}):p==="inactive"?t.jsx(ac,{cardHolderUser:L}):e.length===0?t.jsx(ec,{}):t.jsx(lc,{windowSize:B,children:t.jsx(Ni,{children:({height:G,width:$})=>t.jsx(Wi,{isItemLoaded:P,itemCount:e.length+1,loadMoreItems:de,children:({onItemsRendered:q})=>t.jsx(_i,{ref:Z,height:G,itemCount:e.length,onItemsRendered:q,itemSize:Q,itemKey:N=>e[N].id,width:$,style:{willChange:"auto"},innerElementType:N=>nc(N,w,y,k,H),onScroll:({scrollOffset:N})=>{U?.(N)},initialScrollOffset:y.scrollYOffset,children:N=>t.jsx(rc,{...N,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:b,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,authParams:C,transactions:e,receiptRequiredAboveAmount:g,updateChargeCardTransactionAttachments:D,onUploadReceiptComplete:X,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:K,updateChargeCardTransactionIsViewReceiptClicked:ne,onChargeCardTransactionRowClick:Y,removeSnackbar:v})})})})}):null}),W===!0?t.jsx(Cc,{children:t.jsx(mt,{size:"Small",start:!0})}):null]})}const ec=()=>{const e=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Xr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.emptyTransactions.title}),t.jsx(sa,{windowSize:e,children:nt.transactionTable.emptyTransactions.subTitle})]})]})},tc=({cardType:e,cardHolderUser:i})=>{const s=i!=null?i.firstName+" "+i.lastName:"",u=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(wc,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.pendingProfileCompletion.title}),t.jsx(sa,{windowSize:u,children:nt.transactionTable.pendingProfileCompletion.subTitle[e].replace("__user__",s)})]})]})},ac=({cardHolderUser:e})=>{const i=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Xr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.pendingActivation.title}),t.jsx(sa,{windowSize:i,children:nt.transactionTable.pendingActivation.subTitle.replace("__user__",e?.firstName??"")})]})]})},rc=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,style:u,transactions:h,isAiCategorizationEnabledForCardsTransactions:f,uploadReceiptsFetchStateByTransactionId:c,uploadReceiptsShowTickByTransactionId:g,isViewReceiptClickedImmediatelyAfterUploadTransactionId:m,cardId:x,cardsEndPoint:b,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,receiptRequiredAboveAmount:w,authParams:j,updateChargeCardTransactionAttachments:y,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:S,removeSnackbar:O})=>t.jsx(mc,{style:{...u,width:"100%"},className:"spend-management-list-item",children:t.jsx(oc,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardId:x,isAiCategorizationEnabledForCardsTransactions:f,cardsEndPoint:b,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,authParams:j,receiptRequiredAboveAmount:w,transaction:h[e],uploadReceiptsFetchState:c?.[h[e].id],uploadReceiptsShowTick:g?.[h[e].id],isViewReceiptClickedImmediatelyAfterUpload:m?.[h[e].id],updateChargeCardTransactionAttachments:y,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:S,removeSnackbar:O},h[e].id)}),ic=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,cardsEndPoint:g,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,cardId:b,receiptRequiredAboveAmount:n,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,onChargeCardTransactionRowClick:p,removeSnackbar:E})=>{const S=Ie()==="small"?Dd:ad;return t.jsx(S,{isSnackbarOpen:s,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,transaction:e,cardId:b,receiptRequiredAboveAmount:n,cardsEndPoint:g,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,onChargeCardTransactionRowClick:p,removeSnackbar:E})},oc=o.memo(ic),nc=(e,i,s,u,h)=>t.jsx(Jr,{...e,onColumnSortConfigChanged:h,hideSorting:i,uiState:{sortKey:s.sortKey,sortOrder:s.sortOrder},fetchState:u}),Jr=o.forwardRef((e,i)=>{const{children:s,style:u,uiState:h,onColumnSortConfigChanged:f,hideSorting:c,...g}=e;return t.jsxs(fc,{ref:i,style:{...u,width:"auto"},...g,children:[t.jsx(Os,{onColumnSortConfigChanged:f,sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},hideSorting:c}),t.jsx(cc,{children:s})]})});Jr.displayName="Charge Card Transaction list View inner element type";const sc=r.div`
1028
1028
  display: block;
1029
1029
  height: ${e=>e.isEmptyTransaction?"calc(100vh - 436px)":"calc(100vh - 224px)"};
1030
1030
  width: 100%;
@@ -1106,7 +1106,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
1106
1106
  white-space: pre;
1107
1107
  `:null};
1108
1108
  text-align: center;
1109
- `,da=r.div``,fc=r.div``,Xr=r(Jd)``,wc=r(Xd)``,{spendManagement:xc}=ke.getLocalizedStrings(),{cardDetails:Be}=xc.chargeCard,bc=zr`
1109
+ `,da=r.div``,fc=r.div``,Xr=r(Jd)``,wc=r(Xd)``,{spendManagement:xc}=ke.getLocalizedStrings(),{cardDetails:Be}=xc.chargeCard,bc=Pr`
1110
1110
  from {
1111
1111
  transform: translateX(100%);
1112
1112
  }
@@ -1120,7 +1120,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
1120
1120
  height: inherit;
1121
1121
  `,$c=r(yc)`
1122
1122
  animation: ${e=>Sc(e.className)} 0.3s forwards;
1123
- `,vc=({isChargeCardAdmin:e,chargeCardDetailView:i,walletType:s,secretRevealed:u,isDrawerOpen:h,vgsVaultId:f,showSecretInfo:c,changePinInProcess:g,isSandboxEnv:m,controllerEmails:x,isChargeCardFeatureEnabled:b,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:w,chargeCardCashbackDetailState:j,isCardDetailErrored:y,creditAccountRepayment:k,productInformation:L,creditAccountInformation:p,debitAccountInformation:E,cashbackInformation:S,signedInUserToken:O,selectedColor:H,showDrawerAnimation:v,cardDetailsFetchState:Y,setCardDetailsFetchState:X,setIsCardDetailErrored:U,setShowSecretInfo:D,setSecretRevealed:oe,setShowChangePinPopup:K,setIsAddToWalletDrawerOpen:ne,isCardDetailFetching:B,handleColorCodeClick:Z,onFireOnClickAnalytics:W,onVerifyOtp:ae,onVerifyOtpSuccess:Q,onResendOtp:re,onFireVerifyPopOnClickAnalytics:se,onGetOtp:z})=>{const de=tt(),[G,$]=o.useState(!1),[q,N]=o.useState(!1),le=v.current;return o.useEffect(()=>{h?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[h,v]),t.jsx(Ai,{onClose:()=>{ne(!1)},anchor:"right",open:!0,PaperProps:{style:{maxWidth:"512px",boxShadow:"none",background:"transparent"}},style:{backgroundColor:d.drawerBackground,display:h?"unset":"none"},disableScrollLock:!h,transitionDuration:250,"data-testid":J("add-card-to-wallet-drawer"),children:t.jsxs(t.Fragment,{children:[t.jsx(br,{phoneNumberPopupDescription:Be.verifyPhoneNumberDescription,showOtpPopup:G,showPhoneNumberPopup:q,twoFactorAuthenticationView:i.twoFAView,loggedInUserPhone:i.loggedInUserPhone,onVerifyOtp:ae,onVerifyOtpSuccess:A=>{Q(A),g?K(!0):D(!0)},onFireVerifyPopOnClickAnalytics:se,setShowOtpPopup:$,onResendOtp:re,setShowPhoneNumberPopup:N,onGetOtp:z}),t.jsxs($c,{className:le,children:[t.jsx(Ti,{title:s==="apple"?Be.addCardToAppleWallet:Be.addCardToGoogleWallet,style:{zIndex:4},backgroundColor:de.colors.grey4,onCloseClick:()=>ne(!1)}),t.jsxs(jc,{children:[t.jsxs(Ac,{children:[t.jsxs(Ic,{children:[t.jsx(Mc,{children:t.jsx(Oc,{})}),t.jsx(Ec,{children:Be.openWalletAppOnPhone})]}),t.jsx(Fc,{children:s==="apple"?Be.openWalletDescriptionApple:Be.openWalletDescriptionGoogle}),t.jsx(Or,{isChargeCardAdmin:e,onUnlockChargeCard:()=>{},chargeCardDetailView:i,creditAccountRepayment:k,creditAccount:i.creditAccount,setShowSecretInfo:D,secretRevealed:u,isOwnCard:!0,controllerEmails:x,isChargeCardFeatureEnabled:b,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:w,chargeCardCashbackDetailState:j,isShowingInDrawer:!0,vgsVaultId:f,showSecretInfo:c,isSandboxEnv:m,isCardDetailErrored:y,signedInUserToken:O,productInformation:L,creditAccountInformation:p,debitAccountInformation:E,cashbackInformation:S,selectedColor:H,cardDetailsFetchState:Y,setCardDetailsFetchState:X,setIsCardDetailErrored:U,setSecretRevealed:oe,isCardDetailFetching:B,handleColorCodeClick:Z,onFireOnClickAnalytics:W,setShowPhoneNumberForOtp:N})]}),t.jsx(Dc,{}),t.jsxs(Tc,{children:[t.jsxs(Lc,{children:[t.jsx(Pc,{children:t.jsx(Vc,{})}),t.jsx(Rc,{children:Be.verifyCard})]}),t.jsx(kc,{children:t.jsx(zc,{children:s==="apple"?Be.VerifyCardDescriptionApple:Be.VerifyCardDescriptionGoogle})})]})]})]})]})})},kc=r.div`
1123
+ `,vc=({isChargeCardAdmin:e,chargeCardDetailView:i,walletType:s,secretRevealed:u,isDrawerOpen:h,vgsVaultId:f,showSecretInfo:c,changePinInProcess:g,isSandboxEnv:m,controllerEmails:x,isChargeCardFeatureEnabled:b,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:w,chargeCardCashbackDetailState:j,isCardDetailErrored:y,creditAccountRepayment:k,productInformation:L,creditAccountInformation:p,debitAccountInformation:E,cashbackInformation:S,signedInUserToken:O,selectedColor:H,showDrawerAnimation:v,cardDetailsFetchState:Y,setCardDetailsFetchState:X,setIsCardDetailErrored:U,setShowSecretInfo:D,setSecretRevealed:oe,setShowChangePinPopup:K,setIsAddToWalletDrawerOpen:ne,isCardDetailFetching:B,handleColorCodeClick:Z,onFireOnClickAnalytics:W,onVerifyOtp:ae,onVerifyOtpSuccess:Q,onResendOtp:re,onFireVerifyPopOnClickAnalytics:se,onGetOtp:P})=>{const de=tt(),[G,$]=o.useState(!1),[q,N]=o.useState(!1),le=v.current;return o.useEffect(()=>{h?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[h,v]),t.jsx(Ai,{onClose:()=>{ne(!1)},anchor:"right",open:!0,PaperProps:{style:{maxWidth:"512px",boxShadow:"none",background:"transparent"}},style:{backgroundColor:d.drawerBackground,display:h?"unset":"none"},disableScrollLock:!h,transitionDuration:250,"data-testid":J("add-card-to-wallet-drawer"),children:t.jsxs(t.Fragment,{children:[t.jsx(br,{phoneNumberPopupDescription:Be.verifyPhoneNumberDescription,showOtpPopup:G,showPhoneNumberPopup:q,twoFactorAuthenticationView:i.twoFAView,loggedInUserPhone:i.loggedInUserPhone,onVerifyOtp:ae,onVerifyOtpSuccess:A=>{Q(A),g?K(!0):D(!0)},onFireVerifyPopOnClickAnalytics:se,setShowOtpPopup:$,onResendOtp:re,setShowPhoneNumberPopup:N,onGetOtp:P}),t.jsxs($c,{className:le,children:[t.jsx(Ti,{title:s==="apple"?Be.addCardToAppleWallet:Be.addCardToGoogleWallet,style:{zIndex:4},backgroundColor:de.colors.grey4,onCloseClick:()=>ne(!1)}),t.jsxs(jc,{children:[t.jsxs(Ac,{children:[t.jsxs(Ic,{children:[t.jsx(Mc,{children:t.jsx(Oc,{})}),t.jsx(Ec,{children:Be.openWalletAppOnPhone})]}),t.jsx(Fc,{children:s==="apple"?Be.openWalletDescriptionApple:Be.openWalletDescriptionGoogle}),t.jsx(Or,{isChargeCardAdmin:e,onUnlockChargeCard:()=>{},chargeCardDetailView:i,creditAccountRepayment:k,creditAccount:i.creditAccount,setShowSecretInfo:D,secretRevealed:u,isOwnCard:!0,controllerEmails:x,isChargeCardFeatureEnabled:b,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:w,chargeCardCashbackDetailState:j,isShowingInDrawer:!0,vgsVaultId:f,showSecretInfo:c,isSandboxEnv:m,isCardDetailErrored:y,signedInUserToken:O,productInformation:L,creditAccountInformation:p,debitAccountInformation:E,cashbackInformation:S,selectedColor:H,cardDetailsFetchState:Y,setCardDetailsFetchState:X,setIsCardDetailErrored:U,setSecretRevealed:oe,isCardDetailFetching:B,handleColorCodeClick:Z,onFireOnClickAnalytics:W,setShowPhoneNumberForOtp:N})]}),t.jsx(Dc,{}),t.jsxs(Tc,{children:[t.jsxs(Lc,{children:[t.jsx(zc,{children:t.jsx(Vc,{})}),t.jsx(Rc,{children:Be.verifyCard})]}),t.jsx(kc,{children:t.jsx(Pc,{children:s==="apple"?Be.VerifyCardDescriptionApple:Be.VerifyCardDescriptionGoogle})})]})]})]})]})})},kc=r.div`
1124
1124
  display: flex;
1125
1125
  justify-content: end;
1126
1126
  `,jc=r.div`
@@ -1160,10 +1160,10 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
1160
1160
  padding-bottom: ${a.sp4};
1161
1161
  `,Rc=r(aa)`
1162
1162
  color: ${e=>e.theme.colors.primary};
1163
- `,zc=r(Oe)`
1163
+ `,Pc=r(Oe)`
1164
1164
  color: ${e=>e.theme.colors.hero};
1165
1165
  max-width: 274px;
1166
- `,Pc=r.div`
1166
+ `,zc=r.div`
1167
1167
  padding: 12px;
1168
1168
  border-radius: ${a.sp4};
1169
1169
  background: ${d.successLight};
@@ -1180,7 +1180,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
1180
1180
  width: ${a.sp4};
1181
1181
  height: ${a.sp4};
1182
1182
  color: ${e=>e.theme.colors.graphColor16Dark};
1183
- `,{spendManagement:{chargeCard:{cardDetails:Xe}},common:{strings:Hc}}=ke.getLocalizedStrings(),ca={iFrameWidth:new T(188,188)};function Bc({isSandboxEnv:e,cardProviderID:i,vgsVaultId:s,signedInUserToken:u,onCancelClick:h,onUpdateDebitCardPinAttempt:f,onChangePinSuccess:c}){const g=Ie(),m=tt(),[x,b]=o.useState({}),[n,C]=o.useState(!1),[w,j]=o.useState(!1),[y,k]=o.useState(!0),[L,p]=o.useState(!0),[E,S]=o.useState(!1),[O,H]=o.useState(!1),[v,Y]=o.useState(!1),[X,U]=o.useState(!1),[D,oe]=o.useState(!1),[K,ne]=o.useState(!1),[B,Z]=o.useState(!1),[W,ae]=o.useState(null),[Q,re]=o.useState(null),[se]=Sr("https://js.verygoodvault.com/vgs-collect/2.27.0/vgs-collect.js"),z=e?"SANDBOX":"live";o.useEffect(()=>{if(se){const $=window.VGSCollect.create(s,z,le=>{const A=le["data.attributes.oldPin"],P=le["data.attributes.newPin"];A?.isTouched===!0&&A?.isValid===!1&&A?.isFocused===!1?U(!0):(A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!1||A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!0)&&(U(!1),Z(!1)),P?.isTouched===!0&&P?.isValid===!1&&P?.isFocused===!1?oe(!0):(P?.isTouched===!0&&P?.isValid===!0&&P?.isFocused===!1||P?.isTouched===!0&&P?.isValid===!0&&P?.isFocused===!0)&&oe(!1)}),q=$.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:m.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:m.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:d.important,background:d.importantLight},"&:focus":{background:`${m.colors.background} !important`,textAlign:"left",color:`${m.colors.primary} !important`}}}),N=$.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:m.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:m.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:d.important,background:d.importantLight},"&:focus":{background:`${m.colors.background} !important`,textAlign:"left",color:`${m.colors.primary} !important`}}});ae(q),re(N),b($),Promise.all([q.promise,N.promise]).then(function(){j(!0)})}},[se]),o.useEffect(()=>{W?.update({hideValue:y})},[W,y]),o.useEffect(()=>{Q?.update({hideValue:L})},[Q,L]);const de=$=>{C(!0),Z(!1),x.submit?.("/cards/"+i+"/secure-data/pin",{method:"PUT",mapDotToObject:"true",headers:{"Content-Type":"application/vnd.api+json",Authorization:"Bearer "+$?.token}},function(q,N){q===200?(S(!1),H(!1),c(),f("success")):(U(!0),f("failed"),N.errors?.[0].title.toLowerCase().includes("max")?ne(!0):N.errors?.[0].title.toLowerCase().includes("invalid")&&Z(!0),C(!1))},q=>{console.log("error",q),C(!1)})},G={onOkClick:()=>{if(!x.state)return;const $=x.state["data.attributes.newPin"]?.isValid,q=x.state["data.attributes.oldPin"]?.isValid;Y(!0),$===!0&&q===!0&&de(u)},onCancelClick:h};return t.jsx(Li,{titleComponent:t.jsx(Nc,{children:Xe.moreOptions.changePin}),descriptionComponent:t.jsxs(Wc,{children:[t.jsxs(Yc,{children:[t.jsxs(pr,{showFieldError:X,windowSize:g,isFirstField:!0,validation:v,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),oldPinInputHighlighted:E,children:[t.jsx(cr,{children:Xe.existingPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(Gc,{id:"oldPin",className:"cc-old-pin-form-field",windowSize:g}),t.jsx(nr,{onClick:()=>k(!y),"data-testid":J("cc-old-pin-show-text"),children:y?t.jsx(sr,{}):t.jsx(dr,{})})]})]}),t.jsx(Uc,{}),t.jsxs(pr,{showFieldError:D,windowSize:g,isFirstField:!1,validation:v,onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),newPinInputHighlighted:O,children:[t.jsx(cr,{children:Xe.newPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(Zc,{id:"newPin",className:"cc-new-pin-form-field",windowSize:g}),t.jsx(nr,{onClick:()=>p(!L),"data-testid":J("cc-new-pin-show-text"),children:L?t.jsx(sr,{}):t.jsx(dr,{})})]})]})]}),B?t.jsx(hr,{children:Xe.incorrectCurrentPIN}):null,K?t.jsx(hr,{children:Xe.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:w===!1||K,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:G,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(Di,{children:[t.jsx(_c,{children:Xe.forgotYourPin}),Hc.space,Xe.callTollFree]})})}const Nc=r(Yi)`
1183
+ `,{spendManagement:{chargeCard:{cardDetails:Xe}},common:{strings:Hc}}=ke.getLocalizedStrings(),ca={iFrameWidth:new T(188,188)};function Bc({isSandboxEnv:e,cardProviderID:i,vgsVaultId:s,signedInUserToken:u,onCancelClick:h,onUpdateDebitCardPinAttempt:f,onChangePinSuccess:c}){const g=Ie(),m=tt(),[x,b]=o.useState({}),[n,C]=o.useState(!1),[w,j]=o.useState(!1),[y,k]=o.useState(!0),[L,p]=o.useState(!0),[E,S]=o.useState(!1),[O,H]=o.useState(!1),[v,Y]=o.useState(!1),[X,U]=o.useState(!1),[D,oe]=o.useState(!1),[K,ne]=o.useState(!1),[B,Z]=o.useState(!1),[W,ae]=o.useState(null),[Q,re]=o.useState(null),[se]=Sr("https://js.verygoodvault.com/vgs-collect/2.27.0/vgs-collect.js"),P=e?"SANDBOX":"live";o.useEffect(()=>{if(se){const $=window.VGSCollect.create(s,P,le=>{const A=le["data.attributes.oldPin"],z=le["data.attributes.newPin"];A?.isTouched===!0&&A?.isValid===!1&&A?.isFocused===!1?U(!0):(A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!1||A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!0)&&(U(!1),Z(!1)),z?.isTouched===!0&&z?.isValid===!1&&z?.isFocused===!1?oe(!0):(z?.isTouched===!0&&z?.isValid===!0&&z?.isFocused===!1||z?.isTouched===!0&&z?.isValid===!0&&z?.isFocused===!0)&&oe(!1)}),q=$.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:m.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:m.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:d.important,background:d.importantLight},"&:focus":{background:`${m.colors.background} !important`,textAlign:"left",color:`${m.colors.primary} !important`}}}),N=$.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:m.colors.primary,height:a.sp6,padding:`${a.sp0} ${a.sp3}`,textAlign:"right","&::placeholder":{color:m.colors.grey1,..._.standardRegular.cssObject},"&.invalid.touched:not(.focused)":{color:d.important,background:d.importantLight},"&:focus":{background:`${m.colors.background} !important`,textAlign:"left",color:`${m.colors.primary} !important`}}});ae(q),re(N),b($),Promise.all([q.promise,N.promise]).then(function(){j(!0)})}},[se]),o.useEffect(()=>{W?.update({hideValue:y})},[W,y]),o.useEffect(()=>{Q?.update({hideValue:L})},[Q,L]);const de=$=>{C(!0),Z(!1),x.submit?.("/cards/"+i+"/secure-data/pin",{method:"PUT",mapDotToObject:"true",headers:{"Content-Type":"application/vnd.api+json",Authorization:"Bearer "+$?.token}},function(q,N){q===200?(S(!1),H(!1),c(),f("success")):(U(!0),f("failed"),N.errors?.[0].title.toLowerCase().includes("max")?ne(!0):N.errors?.[0].title.toLowerCase().includes("invalid")&&Z(!0),C(!1))},q=>{console.log("error",q),C(!1)})},G={onOkClick:()=>{if(!x.state)return;const $=x.state["data.attributes.newPin"]?.isValid,q=x.state["data.attributes.oldPin"]?.isValid;Y(!0),$===!0&&q===!0&&de(u)},onCancelClick:h};return t.jsx(Li,{titleComponent:t.jsx(Nc,{children:Xe.moreOptions.changePin}),descriptionComponent:t.jsxs(Wc,{children:[t.jsxs(Yc,{children:[t.jsxs(pr,{showFieldError:X,windowSize:g,isFirstField:!0,validation:v,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),oldPinInputHighlighted:E,children:[t.jsx(cr,{children:Xe.existingPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(Gc,{id:"oldPin",className:"cc-old-pin-form-field",windowSize:g}),t.jsx(nr,{onClick:()=>k(!y),"data-testid":J("cc-old-pin-show-text"),children:y?t.jsx(sr,{}):t.jsx(dr,{})})]})]}),t.jsx(Uc,{}),t.jsxs(pr,{showFieldError:D,windowSize:g,isFirstField:!1,validation:v,onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),newPinInputHighlighted:O,children:[t.jsx(cr,{children:Xe.newPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(Zc,{id:"newPin",className:"cc-new-pin-form-field",windowSize:g}),t.jsx(nr,{onClick:()=>p(!L),"data-testid":J("cc-new-pin-show-text"),children:L?t.jsx(sr,{}):t.jsx(dr,{})})]})]})]}),B?t.jsx(hr,{children:Xe.incorrectCurrentPIN}):null,K?t.jsx(hr,{children:Xe.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:w===!1||K,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:G,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(Di,{children:[t.jsx(_c,{children:Xe.forgotYourPin}),Hc.space,Xe.callTollFree]})})}const Nc=r(Yi)`
1184
1184
  margin-top: ${a.sp7};
1185
1185
  padding-left: ${a.sp8};
1186
1186
  padding-right: ${a.sp8};
@@ -1272,7 +1272,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
1272
1272
  background: ${e.theme.colors.background};
1273
1273
  }
1274
1274
  `:null}
1275
- `,Fe={bottomContentContainerPadding:new T(l[3],l[8]),styledAIIconContainerSize:new T(l[3],l[3]),bannerWrapperMarginLeftRight:new T(l[3],l[8]),payNowSectionPaddingLeftRight:new T(l[3],l[0]),styledHighImportanceIconMarginRight:new T(l[0],l[1])},{common:Le,spendManagement:qc,dateFormat:Jc}=ke.getLocalizedStrings(),ue=qc.chargeCard,Wl=({chargeCardDetailView:e,onUnlockChargeCard:i,onCloseChargeCard:s,cardsEndPoint:u,classListFetchState:h,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,cardId:x,vgsVaultId:b,controllerEmails:n,isCardControlsEnabled:C,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:L,onFetchChargeCardsRecurringExpenses:p,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,cardIssuedByRoles:Y,cardIssuedByDepartmentName:X,cardHolderRoles:U,cardHolderDepartmentName:D,loggedInUserRole:oe,appleWalletLink:K,googleWalletLink:ne,signedInUser:B,signedInUserToken:Z,chargeCardsRecurringExpensesState:W,isSandboxEnv:ae,isEarlyPayEnabled:Q,documentAiReceiptMaxSizeLimit:re,isSnackbarOpen:se,onFireOnClickAnalytics:z,onUpdateDebitCardPinAttempt:de,onFireVerifyPopOnClickAnalytics:G,onBackClick:$,onReloadTransactions:q,onFetchChargeCardTransactionList:N,onGetOtp:le,onLockChargeCard:A,onResendOtp:P,onVerifyOtp:ce,updateChargeCardName:ie,onVerifyOtpSuccess:I,onColorCodeChange:je,onColumnSortConfigChanged:Ce,updateChargeCardTransactionAttachments:Re,updateChargeCardTransactionUploadReceiptsFetchStatus:te,updateChargeCardTransactionReceiptsShowTick:ee,updateChargeCardTransactionIsViewReceiptClicked:M,onUploadReceiptComplete:be,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onChargeCardRevokeInviteClick:He,onUpdateScrollYOffset:Ye,updateSpendLimit:at,shouldOpenCreditCardPaymentDrawer:pe})=>{const F=o.useRef(!0),he=tt(),R=Ie(),qe=It(),ze=Lt().analytics,[,dt]=wr(),[Pe,ft]=o.useState(!1),[ct,wt]=o.useState(!1),[xt,Me]=o.useState(!1),[lt,Te]=o.useState(!1),[fe,ht]=o.useState(!1),[Tt,la]=o.useState(!1),[Qr,ei]=o.useState(!1),[ti,ha]=o.useState(!1),[ai,bt]=o.useState(!1),[ri,Et]=o.useState(!1),[ii,St]=o.useState(!1),[oi,yt]=o.useState(!1),[rt,Ft]=o.useState(!1),[pa,Rt]=o.useState(!1),[ua,ma]=o.useState(!1),[ni,ga]=o.useState(!1),[si,di]=o.useState("apple"),[Ca,fa]=o.useState({number:!1,cvv:!1});o.useEffect(()=>{rt===!1&&Rt(!1)},[rt]);const wa=o.useRef("noAnimation"),Ne=e.chargeCard?.cardHolderUserId===B.userId,zt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,xa=e.chargeCard?.billingAddress,Se=At(qe.loggedInUserRoleMap),{text1:ci,text2:li}=ki(xa),ba=`${ci} ${li}`,Pt=e.chargeCard?.isDeclinedTransaction===!0,hi=()=>{Jt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:ze,controllerEmails:n,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),dt(e.chargeCardConfig.receiptBotEmail),ft(!0)},pi=()=>{z("card owner copied"),Jt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:ze,controllerEmails:n,actionField:"Card Owner",actionDetails:zt}),dt(zt),ht(!0)},ui=()=>{z("billing address copied"),Jt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:ze,controllerEmails:n,actionField:"Billing Address",actionDetails:ba}),dt(ba),la(!0)};o.useEffect(()=>{Pe===!0&&setTimeout(()=>{ft(!1)},800),fe===!0&&setTimeout(()=>{ht(!1)},800),Tt===!0&&setTimeout(()=>{la(!1)},800)},[fe,Tt,Pe]);const[kl,mi]=o.useState(!1),[Sa,ya]=o.useState(e.chargeCard?.cardColorCode!=null?new Qe(e.chargeCard.cardColorCode):void 0);o.useEffect(()=>{e.chargeCard?.cardColorCode!=null&&ya(new Qe(e.chargeCard.cardColorCode))},[e.chargeCard?.cardColorCode]);const $a={amount:e.chargeCard!=null?e.chargeCard.balance.amount:0,currencyCode:e.chargeCard!=null?e.chargeCard.balance.currencyCode:Le.currency.countryCode,currencySymbol:e.chargeCard!=null?e.chargeCard.balance.currencySymbol:Le.currency.currencySymbol};o.useEffect(()=>{F.current===!0?F.current=!1:z(rt===!1?"card details hidden":"card detail revealed")},[rt]);const va=(V,ye)=>{if(ye===!0){const We=Ei(V.toString())??Le.strings.empty;z("color selected",We),je(We),mi(!1)}ya(V)},ka=V=>{const{cvv:ye,number:We}=V;return ye===!0||We===!0},{isMobileOrTabletScreen:ja}=xr(),Mt=e.chargeCard?.status.code!=="request_on_hold"&&e.chargeCard?.status.code!=="inactive",Vt=e.updateChargeCardLimitFetchState.fetchState,Ot=e.updateChargeCardNameFetchState.fetchState,Ht=e.lockChargeCardsFetchState.fetchState,Bt=e.closeChargeCardsFetchState.fetchState,Ia=et(Vt),La=et(Ot),Da=et(Ht),Aa=et(Bt);o.useEffect(()=>{Ia==="In-Progress"&&Vt==="Completed"?bt(!1):La==="In-Progress"&&Ot==="Completed"?Et(!1):Da==="In-Progress"&&Ht==="Completed"?St(!1):Aa==="In-Progress"&&Bt==="Completed"&&yt(!1)},[Vt,Ot,Ht,Bt,Ia,La,Da,Aa]);const De=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",gi=Se&&(e.chargeCard?.status.code==="active"||e.chargeCard?.status.code==="locked")&&$a.amount<(De?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit.amount??0:e.creditAccount.limit.amount),Ci=e.creditAccountRepayment.initiatedRepayments.amount>0&&Se&&Pt,fi=()=>{if(!C)return[{value:"changePin",label:ue.cardDetails.moreOptions.changePin}];const V=[{value:"changePin",label:ue.cardDetails.moreOptions.changePin},{value:"unlock",label:ue.cardDetails.moreOptions.unlock},{value:"updateSpendLimit",label:ue.cardDetails.moreOptions.updateSpendLimit},{value:"rename",label:ue.cardDetails.moreOptions.rename},{value:"lock",label:ue.cardDetails.moreOptions.lock},{value:"close",label:ue.cardDetails.moreOptions.close},{value:"revokeInvite",label:ue.cardDetails.moreOptions.revokeInvite}],ye=e.chargeCard?.status.code,We=ye==="locked",Si=ye==="inactive",yi=ye==="request_on_hold",$i=e.chargeCard?.isLockedByAdmin===!0,Fa=De&&Ne,$t=Se;if(yi){const Ve=[];return $t&&Ve.push("revokeInvite"),Ve.push("rename"),V.filter(Nt=>Ve.includes(Nt.value))}if(Si){const Ve=[];return Ve.push("rename"),Fa&&Ve.push("changePin"),$t&&Ve.push("close"),V.filter(Nt=>Ve.includes(Nt.value))}const vi={changePin:Fa&&!We,lock:!We,unlock:We&&(Se||!$i),rename:!0,updateSpendLimit:$t,close:$t};return V.filter(Ve=>vi[Ve.value])},Ta=t.jsx("div",{children:t.jsx(ji,{entity:"debit_cards",isDisabled:e.unlockChargeCardsFetchState.fetchState==="In-Progress"?"disabled":void 0,onOptionSelection:V=>{V==="changePin"?(Z==null||Z.expiry.isBefore(new Date)?le(e.loggedInUserPhone):Te(!0),Me(!0)):V==="updateSpendLimit"?bt(!0):V==="rename"?Et(!0):V==="lock"?(St(!0),p()):V==="close"?(yt(!0),p()):V==="unlock"?i(Se):V==="revokeInvite"&&He()},isMoreOption:!0,options:fi(),customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),valueContainer:V=>({...V,display:"flex",alignItems:"center"})}})}),Ea=V=>V.reasonType==="other"?V.reason:V.reasonType,wi=V=>{const ye=Ea(V);A(Se,ye)},xi=V=>{const ye=Ea(V);s(ye)},bi=()=>{const V=e.chargeCard?.status.code;if(V==="closed"||V==="closed_by_customer")return null;if(!C)return Ne&&De?Ta:null;if(!Ne&&!Se)return null;const ye=e.chargeCard?.isLockedByAdmin===!0;return Ne&&!Se&&ye&&V==="locked"?null:Ta};return t.jsxs(ll,{children:[ii&&e.chargeCard!=null&&t.jsx(Po,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>St(!1),isChargeCardAdmin:Se,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:wi,onDismissClick:()=>St(!1),onRemoveCardClick:()=>{}}),oi&&e.chargeCard!=null&&t.jsx(Mo,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>yt(!1),isChargeCardAdmin:Se,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,closeCardFetchState:e.closeChargeCardsFetchState.fetchState,onConfirmClick:xi,onDismissClick:()=>yt(!1),onRemoveCardClick:()=>{}}),lt&&e.chargeCard?.cardProviderID!=null?t.jsx(Bc,{signedInUserToken:Z,vgsVaultId:b,onCancelClick:()=>{Te(!1),Me(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{Te(!1),Me(!0)},onUpdateDebitCardPinAttempt:de}):null,ja?null:t.jsx(vc,{isChargeCardAdmin:Se,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:L,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:e.creditAccount,selectedColor:Sa,walletType:si,onFireOnClickAnalytics:z,isSandboxEnv:ae,chargeCardDetailView:e,vgsVaultId:b,signedInUserToken:Z,showSecretInfo:rt,changePinInProcess:xt,setShowChangePinPopup:Te,isCardDetailErrored:ua,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,isCardDetailFetching:ka,handleColorCodeClick:va,isDrawerOpen:ni,setIsAddToWalletDrawerOpen:ga,onVerifyOtp:ce,onVerifyOtpSuccess:I,onFireVerifyPopOnClickAnalytics:G,onResendOtp:P,setShowSecretInfo:Ft,secretRevealed:pa,setSecretRevealed:Rt,onGetOtp:le,showDrawerAnimation:wa}),t.jsx(Ii,{rightSideComponent:bi(),navBarContainerStyles:{paddingTop:l[2],alignItems:"center",paddingBottom:l[2]},source:"ChargeCardDetailPage",title:e.chargeCard?.cardName??Le.strings.empty,subTitle:e.fetchState==="Completed"&&e.chargeCard!=null?t.jsx(zo,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:he.colors.grey5,style:{zIndex:3},onBackClick:$,titleStyle:{marginTop:l[0],...R==="small"&&{textAlign:"left"}},leftComponentStyle:R==="small"?{width:"10%"}:void 0,middleComponentStyle:R==="small"?{width:"80%"}:void 0,rightComponentStyle:R==="small"?{width:"10%"}:void 0}),t.jsx(br,{phoneNumberPopupDescription:ue.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Qr,showPhoneNumberPopup:ti,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:ce,onVerifyOtpSuccess:V=>{I(V),xt?Te(!0):Ft(!0)},onFireVerifyPopOnClickAnalytics:G,setShowOtpPopup:ei,onResendOtp:P,setShowPhoneNumberPopup:ha,onGetOtp:le}),ri&&t.jsx(Vo,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Et(!1),onSubmitClick:V=>{e.chargeCard&&ie(Se,V)}}),ai&&e.chargeCard!=null?t.jsx(Oo,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,cardDetail:e.chargeCard,transactionStatistics:e.transactionStatistics,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,signedInUser:B,isDebitCard:De,cardIssuedByRoles:Y,cardHolderRoles:U,loggedInUserRole:oe,cardIssuedByDepartmentName:X,cardHolderDepartmentName:D,classListFetchState:h,currentLimitAmount:e.chargeCard?.limit??{amount:0,currencyCode:Le.currency.countryCode,currencySymbol:Le.currency.currencySymbol},currentSpentAmount:e.chargeCard?.balance??{amount:0,currencyCode:Le.currency.countryCode,currencySymbol:Le.currency.currencySymbol},maxLimitAmount:De?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:e.creditAccount.limit,isDisabled:De&&e.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>bt(!1),onSubmitClick:V=>{if(e.chargeCard){const ye={amount:V,currencyCode:e.chargeCard.limit.currencyCode,currencySymbol:e.chargeCard.limit.currencySymbol};at(e.chargeCard.id,ye,e.chargeCard.creditLimitFrequency,Ge("0,0.[00]",ye))}},recommendations:e?.chargeCard?.recommendations}):null,e.fetchState==="Error"?t.jsxs(il,{windowSize:R,children:[t.jsx(sl,{onClick:q,"data-testid":J("reload-card-detail"),children:t.jsx(cl,{})}),t.jsx(dl,{children:Le.reloadPage.label})]}):t.jsxs(Xc,{children:[t.jsx(as,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,isDebitCard:De,chargeCardCashbackDetailState:L,cardIssuedByRoles:Y,cardIssuedByDepartmentName:X,cardHolderRoles:U,cardHolderDepartmentName:D,classListFetchState:h,chargeCardDetailView:e,spent:$a,isCardNotPending:Mt,cardOwnerName:zt,appleWalletLink:K,googleWalletLink:ne,addressToShow:xa,secretRevealed:pa,isOwnCard:Ne,vgsVaultId:b,showSecretInfo:rt,isSandboxEnv:ae,isCardDetailErrored:ua,signedInUserToken:Z,selectedColor:Sa,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,setSecretRevealed:Rt,isCardDetailFetching:ka,handleColorCodeClick:va,onFireOnClickAnalytics:z,setShowPhoneNumberPopup:ha,setShowChangeSpendLimitPopup:bt,setShowSecretInfo:Ft,isOwnerNameCopied:fe,isAddressCopied:Tt,onOwnerNameCopyClick:pi,onAddressCopyClick:ui,showUpdateSpendLimitAction:gi,onUnlockChargeCard:i}),Q?Ci?t.jsxs(Qc,{windowSize:R,children:[t.jsx(ml,{}),t.jsx(tl,{children:` ${ue.payEarly.paymentOf} ${Ge("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${ue.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(Jc.visual.MMMDFormat)} ${ue.payEarly.isProcessing} ${ue.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):Pt?Se?t.jsxs(Kr,{onClick:()=>{pe(!0)},windowSize:R,children:[t.jsx(ur,{windowSize:R}),t.jsxs(ol,{children:[t.jsx(mr,{children:ue.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(al,{className:"pay-now-button",children:[ue.payEarly.payNow,t.jsx(el,{})]})]})]}):t.jsxs(Kc,{windowSize:R,children:[t.jsx(ur,{windowSize:R}),t.jsx(nl,{children:t.jsx(mr,{children:ue.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,Ne&&R!=="small"&&Mt&&De===!1?t.jsx(Ho,{style:{marginTop:Pt?a.sp5:a.sp4},classListFetchState:h,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardDetailView:e,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,cardIssuedByRoles:Y,cardHolderRoles:U,cardIssuedByDepartmentName:X,cardHolderDepartmentName:D,isDebitCard:De,appleWalletLink:K,googleWalletLink:ne,setWalletType:di,setIsAddToWalletDrawerOpen:ga,showDrawerAnimation:wa}):null,t.jsxs(vl,{windowSize:R,isOwnCard:Ne,isMobileOrTabletScreen:ja,children:[Mt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(pl,{windowSize:R,children:[ue.cardDetails.transactionListTitle,t.jsx(Qt,{display:"flex",placement:"right",title:t.jsx(gl,{children:ue.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(ul,{})})]}),t.jsxs(Cl,{windowSize:R,children:[t.jsx(bl,{windowSize:R,children:t.jsx(Sl,{})}),t.jsxs(hl,{windowSize:R,children:[t.jsxs(fl,{children:[t.jsx(rl,{children:ue.aiCardAgentText}),Le.strings.space,ue.receiptBotMessage,Le.strings.space]}),t.jsxs(xl,{"data-testid":J("charge-card-detail-copy-email"),onClick:hi,onMouseEnter:()=>wt(!0),onMouseLeave:()=>wt(!1),children:[t.jsx(wl,{children:e.chargeCardConfig.receiptBotEmail}),Pe===!0?t.jsxs(Cr,{children:[t.jsx($l,{}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct||Pe,color:d.primaryDark,children:Le.copyToClipBoard.copied})})]}):t.jsxs(Cr,{children:[t.jsx(yl,{color:ct?he.colors.primary:void 0}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct&&R!=="small",children:Le.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(Qd,{cardStatusCode:e.chargeCard?.status.code,cardCodeType:e.chargeCard?.type.code,cardId:x,documentAiReceiptMaxSizeLimit:re,uploadReceiptsFetchStateByTransactionId:e.uploadReceiptsFetchStateByTransactionId,isSnackbarOpen:se,uploadReceiptsShowTickByTransactionId:e.uploadReceiptsShowTickByTransactionId,isViewReceiptClickedImmediatelyAfterUploadTransactionId:e.isViewReceiptClickedImmediatelyAfterUploadTransactionId,receiptRequiredAboveAmount:e.chargeCardConfig.receiptRequiredAboveAmount,cardsEndPoint:u,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,transactions:e.transactions,cardHolderUser:e.chargeCard?.cardHolderUser,uiState:e.uiState,fetchState:e.transactionListFetchState.fetchState,isAiCategorizationEnabledForCardsTransactions:e.chargeCardConfig.isAiCategorizationEnabledForCardsTransactions,onReloadTransactions:q,onFetchChargeCardTransactionList:N,isOwnCard:Ne,onColumnSortConfigChanged:Ce,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onUpdateScrollYOffset:Ye,onUploadReceiptComplete:be,updateChargeCardTransactionAttachments:Re,updateChargeCardTransactionUploadReceiptsFetchStatus:te,updateChargeCardTransactionReceiptsShowTick:ee,updateChargeCardTransactionIsViewReceiptClicked:M})]})]})]})},Jt=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:s,productInformation:u,cashbackInformation:h,creditAccountInformation:f,debitAccountInformation:c,creditAccount:g,creditAccountRepayment:m,isDebitCard:x,isChargeCardAdmin:b,analytics:n,controllerEmails:C,actionDetails:w,actionField:j})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!s||g.fetchState==="Completed"&&m.fetchState==="Completed")&&(!(x&&b)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(C,u,"Cards Detail","Copy","copied",j,w,h,f,c)},Xc=r.div``,Kr=r.div`
1275
+ `,Fe={bottomContentContainerPadding:new T(l[3],l[8]),styledAIIconContainerSize:new T(l[3],l[3]),bannerWrapperMarginLeftRight:new T(l[3],l[8]),payNowSectionPaddingLeftRight:new T(l[3],l[0]),styledHighImportanceIconMarginRight:new T(l[0],l[1])},{common:Le,spendManagement:qc,dateFormat:Jc}=ke.getLocalizedStrings(),ue=qc.chargeCard,Wl=({chargeCardDetailView:e,onUnlockChargeCard:i,onCloseChargeCard:s,cardsEndPoint:u,classListFetchState:h,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,cardId:x,vgsVaultId:b,controllerEmails:n,isCardControlsEnabled:C,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:L,onFetchChargeCardsRecurringExpenses:p,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,cardIssuedByRoles:Y,cardIssuedByDepartmentName:X,cardHolderRoles:U,cardHolderDepartmentName:D,loggedInUserRole:oe,appleWalletLink:K,googleWalletLink:ne,signedInUser:B,signedInUserToken:Z,chargeCardsRecurringExpensesState:W,isSandboxEnv:ae,isEarlyPayEnabled:Q,documentAiReceiptMaxSizeLimit:re,isSnackbarOpen:se,onFireOnClickAnalytics:P,onUpdateDebitCardPinAttempt:de,onFireVerifyPopOnClickAnalytics:G,onBackClick:$,onReloadTransactions:q,onFetchChargeCardTransactionList:N,onGetOtp:le,onLockChargeCard:A,onResendOtp:z,onVerifyOtp:ce,updateChargeCardName:ie,onVerifyOtpSuccess:I,onColorCodeChange:je,onColumnSortConfigChanged:Ce,updateChargeCardTransactionAttachments:Re,updateChargeCardTransactionUploadReceiptsFetchStatus:te,updateChargeCardTransactionReceiptsShowTick:ee,updateChargeCardTransactionIsViewReceiptClicked:M,onUploadReceiptComplete:be,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onChargeCardRevokeInviteClick:He,onUpdateScrollYOffset:Ye,updateSpendLimit:at,shouldOpenCreditCardPaymentDrawer:pe})=>{const F=o.useRef(!0),he=tt(),R=Ie(),qe=It(),Pe=Lt().analytics,[,dt]=wr(),[ze,ft]=o.useState(!1),[ct,wt]=o.useState(!1),[xt,Me]=o.useState(!1),[lt,Te]=o.useState(!1),[fe,ht]=o.useState(!1),[Tt,la]=o.useState(!1),[Qr,ei]=o.useState(!1),[ti,ha]=o.useState(!1),[ai,bt]=o.useState(!1),[ri,Et]=o.useState(!1),[ii,St]=o.useState(!1),[oi,yt]=o.useState(!1),[rt,Ft]=o.useState(!1),[pa,Rt]=o.useState(!1),[ua,ma]=o.useState(!1),[ni,ga]=o.useState(!1),[si,di]=o.useState("apple"),[Ca,fa]=o.useState({number:!1,cvv:!1});o.useEffect(()=>{rt===!1&&Rt(!1)},[rt]);const wa=o.useRef("noAnimation"),Ne=e.chargeCard?.cardHolderUserId===B.userId,Pt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,xa=e.chargeCard?.billingAddress,Se=At(qe.loggedInUserRoleMap),{text1:ci,text2:li}=ki(xa),ba=`${ci} ${li}`,zt=e.chargeCard?.isDeclinedTransaction===!0,hi=()=>{Jt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:Pe,controllerEmails:n,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),dt(e.chargeCardConfig.receiptBotEmail),ft(!0)},pi=()=>{P("card owner copied"),Jt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:Pe,controllerEmails:n,actionField:"Card Owner",actionDetails:Pt}),dt(Pt),ht(!0)},ui=()=>{P("billing address copied"),Jt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:Se,analytics:Pe,controllerEmails:n,actionField:"Billing Address",actionDetails:ba}),dt(ba),la(!0)};o.useEffect(()=>{ze===!0&&setTimeout(()=>{ft(!1)},800),fe===!0&&setTimeout(()=>{ht(!1)},800),Tt===!0&&setTimeout(()=>{la(!1)},800)},[fe,Tt,ze]);const[kl,mi]=o.useState(!1),[Sa,ya]=o.useState(e.chargeCard?.cardColorCode!=null?new Qe(e.chargeCard.cardColorCode):void 0);o.useEffect(()=>{e.chargeCard?.cardColorCode!=null&&ya(new Qe(e.chargeCard.cardColorCode))},[e.chargeCard?.cardColorCode]);const $a={amount:e.chargeCard!=null?e.chargeCard.balance.amount:0,currencyCode:e.chargeCard!=null?e.chargeCard.balance.currencyCode:Le.currency.countryCode,currencySymbol:e.chargeCard!=null?e.chargeCard.balance.currencySymbol:Le.currency.currencySymbol};o.useEffect(()=>{F.current===!0?F.current=!1:P(rt===!1?"card details hidden":"card detail revealed")},[rt]);const va=(V,ye)=>{if(ye===!0){const We=Ei(V.toString())??Le.strings.empty;P("color selected",We),je(We),mi(!1)}ya(V)},ka=V=>{const{cvv:ye,number:We}=V;return ye===!0||We===!0},{isMobileOrTabletScreen:ja}=xr(),Mt=e.chargeCard?.status.code!=="request_on_hold"&&e.chargeCard?.status.code!=="inactive",Vt=e.updateChargeCardLimitFetchState.fetchState,Ot=e.updateChargeCardNameFetchState.fetchState,Ht=e.lockChargeCardsFetchState.fetchState,Bt=e.closeChargeCardsFetchState.fetchState,Ia=et(Vt),La=et(Ot),Da=et(Ht),Aa=et(Bt);o.useEffect(()=>{Ia==="In-Progress"&&Vt==="Completed"?bt(!1):La==="In-Progress"&&Ot==="Completed"?Et(!1):Da==="In-Progress"&&Ht==="Completed"?St(!1):Aa==="In-Progress"&&Bt==="Completed"&&yt(!1)},[Vt,Ot,Ht,Bt,Ia,La,Da,Aa]);const De=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",gi=Se&&(e.chargeCard?.status.code==="active"||e.chargeCard?.status.code==="locked")&&$a.amount<(De?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit.amount??0:e.creditAccount.limit.amount),Ci=e.creditAccountRepayment.initiatedRepayments.amount>0&&Se&&zt,fi=()=>{if(!C)return[{value:"changePin",label:ue.cardDetails.moreOptions.changePin}];const V=[{value:"changePin",label:ue.cardDetails.moreOptions.changePin},{value:"unlock",label:ue.cardDetails.moreOptions.unlock},{value:"updateSpendLimit",label:ue.cardDetails.moreOptions.updateSpendLimit},{value:"rename",label:ue.cardDetails.moreOptions.rename},{value:"lock",label:ue.cardDetails.moreOptions.lock},{value:"close",label:ue.cardDetails.moreOptions.close},{value:"revokeInvite",label:ue.cardDetails.moreOptions.revokeInvite}],ye=e.chargeCard?.status.code,We=ye==="locked",Si=ye==="inactive",yi=ye==="request_on_hold",$i=e.chargeCard?.isLockedByAdmin===!0,Fa=De&&Ne,$t=Se;if(yi){const Ve=[];return $t&&Ve.push("revokeInvite"),Ve.push("rename"),V.filter(Nt=>Ve.includes(Nt.value))}if(Si){const Ve=[];return Ve.push("rename"),Fa&&Ve.push("changePin"),$t&&Ve.push("close"),V.filter(Nt=>Ve.includes(Nt.value))}const vi={changePin:Fa&&!We,lock:!We,unlock:We&&(Se||!$i),rename:!0,updateSpendLimit:$t,close:$t};return V.filter(Ve=>vi[Ve.value])},Ta=t.jsx("div",{children:t.jsx(ji,{entity:"debit_cards",isDisabled:e.unlockChargeCardsFetchState.fetchState==="In-Progress"?"disabled":void 0,onOptionSelection:V=>{V==="changePin"?(Z==null||Z.expiry.isBefore(new Date)?le(e.loggedInUserPhone):Te(!0),Me(!0)):V==="updateSpendLimit"?bt(!0):V==="rename"?Et(!0):V==="lock"?(St(!0),p()):V==="close"?(yt(!0),p()):V==="unlock"?i(Se):V==="revokeInvite"&&He()},isMoreOption:!0,options:fi(),customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),valueContainer:V=>({...V,display:"flex",alignItems:"center"})}})}),Ea=V=>V.reasonType==="other"?V.reason:V.reasonType,wi=V=>{const ye=Ea(V);A(Se,ye)},xi=V=>{const ye=Ea(V);s(ye)},bi=()=>{const V=e.chargeCard?.status.code;if(V==="closed"||V==="closed_by_customer")return null;if(!C)return Ne&&De?Ta:null;if(!Ne&&!Se)return null;const ye=e.chargeCard?.isLockedByAdmin===!0;return Ne&&!Se&&ye&&V==="locked"?null:Ta};return t.jsxs(ll,{children:[ii&&e.chargeCard!=null&&t.jsx(zo,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>St(!1),isChargeCardAdmin:Se,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:wi,onDismissClick:()=>St(!1),onRemoveCardClick:()=>{}}),oi&&e.chargeCard!=null&&t.jsx(Mo,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>yt(!1),isChargeCardAdmin:Se,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,closeCardFetchState:e.closeChargeCardsFetchState.fetchState,onConfirmClick:xi,onDismissClick:()=>yt(!1),onRemoveCardClick:()=>{}}),lt&&e.chargeCard?.cardProviderID!=null?t.jsx(Bc,{signedInUserToken:Z,vgsVaultId:b,onCancelClick:()=>{Te(!1),Me(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{Te(!1),Me(!0)},onUpdateDebitCardPinAttempt:de}):null,ja?null:t.jsx(vc,{isChargeCardAdmin:Se,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:L,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,creditAccount:e.creditAccount,selectedColor:Sa,walletType:si,onFireOnClickAnalytics:P,isSandboxEnv:ae,chargeCardDetailView:e,vgsVaultId:b,signedInUserToken:Z,showSecretInfo:rt,changePinInProcess:xt,setShowChangePinPopup:Te,isCardDetailErrored:ua,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,isCardDetailFetching:ka,handleColorCodeClick:va,isDrawerOpen:ni,setIsAddToWalletDrawerOpen:ga,onVerifyOtp:ce,onVerifyOtpSuccess:I,onFireVerifyPopOnClickAnalytics:G,onResendOtp:z,setShowSecretInfo:Ft,secretRevealed:pa,setSecretRevealed:Rt,onGetOtp:le,showDrawerAnimation:wa}),t.jsx(Ii,{rightSideComponent:bi(),navBarContainerStyles:{paddingTop:l[2],alignItems:"center",paddingBottom:l[2]},source:"ChargeCardDetailPage",title:e.chargeCard?.cardName??Le.strings.empty,subTitle:e.fetchState==="Completed"&&e.chargeCard!=null?t.jsx(Po,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:he.colors.grey5,style:{zIndex:3},onBackClick:$,titleStyle:{marginTop:l[0],...R==="small"&&{textAlign:"left"}},leftComponentStyle:R==="small"?{width:"10%"}:void 0,middleComponentStyle:R==="small"?{width:"80%"}:void 0,rightComponentStyle:R==="small"?{width:"10%"}:void 0}),t.jsx(br,{phoneNumberPopupDescription:ue.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Qr,showPhoneNumberPopup:ti,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:ce,onVerifyOtpSuccess:V=>{I(V),xt?Te(!0):Ft(!0)},onFireVerifyPopOnClickAnalytics:G,setShowOtpPopup:ei,onResendOtp:z,setShowPhoneNumberPopup:ha,onGetOtp:le}),ri&&t.jsx(Vo,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Et(!1),onSubmitClick:V=>{e.chargeCard&&ie(Se,V)}}),ai&&e.chargeCard!=null?t.jsx(Oo,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,cardDetail:e.chargeCard,transactionStatistics:e.transactionStatistics,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,signedInUser:B,isDebitCard:De,cardIssuedByRoles:Y,cardHolderRoles:U,loggedInUserRole:oe,cardIssuedByDepartmentName:X,cardHolderDepartmentName:D,classListFetchState:h,currentLimitAmount:e.chargeCard?.limit??{amount:0,currencyCode:Le.currency.countryCode,currencySymbol:Le.currency.currencySymbol},currentSpentAmount:e.chargeCard?.balance??{amount:0,currencyCode:Le.currency.countryCode,currencySymbol:Le.currency.currencySymbol},maxLimitAmount:De?e.depositAccountLimit?.cardLimits.dailyCardTransactionLimit:e.creditAccount.limit,isDisabled:De&&e.depositAccountLimitFetchState.fetchState!=="Completed",updateLimitFetchState:e.updateChargeCardLimitFetchState.fetchState,onCancelClick:()=>bt(!1),onSubmitClick:V=>{if(e.chargeCard){const ye={amount:V,currencyCode:e.chargeCard.limit.currencyCode,currencySymbol:e.chargeCard.limit.currencySymbol};at(e.chargeCard.id,ye,e.chargeCard.creditLimitFrequency,Ge("0,0.[00]",ye))}},recommendations:e?.chargeCard?.recommendations}):null,e.fetchState==="Error"?t.jsxs(il,{windowSize:R,children:[t.jsx(sl,{onClick:q,"data-testid":J("reload-card-detail"),children:t.jsx(cl,{})}),t.jsx(dl,{children:Le.reloadPage.label})]}):t.jsxs(Xc,{children:[t.jsx(as,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,isDebitCard:De,chargeCardCashbackDetailState:L,cardIssuedByRoles:Y,cardIssuedByDepartmentName:X,cardHolderRoles:U,cardHolderDepartmentName:D,classListFetchState:h,chargeCardDetailView:e,spent:$a,isCardNotPending:Mt,cardOwnerName:Pt,appleWalletLink:K,googleWalletLink:ne,addressToShow:xa,secretRevealed:pa,isOwnCard:Ne,vgsVaultId:b,showSecretInfo:rt,isSandboxEnv:ae,isCardDetailErrored:ua,signedInUserToken:Z,selectedColor:Sa,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,setSecretRevealed:Rt,isCardDetailFetching:ka,handleColorCodeClick:va,onFireOnClickAnalytics:P,setShowPhoneNumberPopup:ha,setShowChangeSpendLimitPopup:bt,setShowSecretInfo:Ft,isOwnerNameCopied:fe,isAddressCopied:Tt,onOwnerNameCopyClick:pi,onAddressCopyClick:ui,showUpdateSpendLimitAction:gi,onUnlockChargeCard:i}),Q?Ci?t.jsxs(Qc,{windowSize:R,children:[t.jsx(ml,{}),t.jsx(tl,{children:` ${ue.payEarly.paymentOf} ${Ge("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${ue.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(Jc.visual.MMMDFormat)} ${ue.payEarly.isProcessing} ${ue.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):zt?Se?t.jsxs(Kr,{onClick:()=>{pe(!0)},windowSize:R,children:[t.jsx(ur,{windowSize:R}),t.jsxs(ol,{children:[t.jsx(mr,{children:ue.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(al,{className:"pay-now-button",children:[ue.payEarly.payNow,t.jsx(el,{})]})]})]}):t.jsxs(Kc,{windowSize:R,children:[t.jsx(ur,{windowSize:R}),t.jsx(nl,{children:t.jsx(mr,{children:ue.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,Ne&&R!=="small"&&Mt&&De===!1?t.jsx(Ho,{style:{marginTop:zt?a.sp5:a.sp4},classListFetchState:h,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardDetailView:e,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:S,creditAccountInformation:O,debitAccountInformation:H,cardIssuedByRoles:Y,cardHolderRoles:U,cardIssuedByDepartmentName:X,cardHolderDepartmentName:D,isDebitCard:De,appleWalletLink:K,googleWalletLink:ne,setWalletType:di,setIsAddToWalletDrawerOpen:ga,showDrawerAnimation:wa}):null,t.jsxs(vl,{windowSize:R,isOwnCard:Ne,isMobileOrTabletScreen:ja,children:[Mt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(pl,{windowSize:R,children:[ue.cardDetails.transactionListTitle,t.jsx(Qt,{display:"flex",placement:"right",title:t.jsx(gl,{children:ue.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(ul,{})})]}),t.jsxs(Cl,{windowSize:R,children:[t.jsx(bl,{windowSize:R,children:t.jsx(Sl,{})}),t.jsxs(hl,{windowSize:R,children:[t.jsxs(fl,{children:[t.jsx(rl,{children:ue.aiCardAgentText}),Le.strings.space,ue.receiptBotMessage,Le.strings.space]}),t.jsxs(xl,{"data-testid":J("charge-card-detail-copy-email"),onClick:hi,onMouseEnter:()=>wt(!0),onMouseLeave:()=>wt(!1),children:[t.jsx(wl,{children:e.chargeCardConfig.receiptBotEmail}),ze===!0?t.jsxs(Cr,{children:[t.jsx($l,{}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct||ze,color:d.primaryDark,children:Le.copyToClipBoard.copied})})]}):t.jsxs(Cr,{children:[t.jsx(yl,{color:ct?he.colors.primary:void 0}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct&&R!=="small",children:Le.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(Qd,{cardStatusCode:e.chargeCard?.status.code,cardCodeType:e.chargeCard?.type.code,cardId:x,documentAiReceiptMaxSizeLimit:re,uploadReceiptsFetchStateByTransactionId:e.uploadReceiptsFetchStateByTransactionId,isSnackbarOpen:se,uploadReceiptsShowTickByTransactionId:e.uploadReceiptsShowTickByTransactionId,isViewReceiptClickedImmediatelyAfterUploadTransactionId:e.isViewReceiptClickedImmediatelyAfterUploadTransactionId,receiptRequiredAboveAmount:e.chargeCardConfig.receiptRequiredAboveAmount,cardsEndPoint:u,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,transactions:e.transactions,cardHolderUser:e.chargeCard?.cardHolderUser,uiState:e.uiState,fetchState:e.transactionListFetchState.fetchState,isAiCategorizationEnabledForCardsTransactions:e.chargeCardConfig.isAiCategorizationEnabledForCardsTransactions,onReloadTransactions:q,onFetchChargeCardTransactionList:N,isOwnCard:Ne,onColumnSortConfigChanged:Ce,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onUpdateScrollYOffset:Ye,onUploadReceiptComplete:be,updateChargeCardTransactionAttachments:Re,updateChargeCardTransactionUploadReceiptsFetchStatus:te,updateChargeCardTransactionReceiptsShowTick:ee,updateChargeCardTransactionIsViewReceiptClicked:M})]})]})]})},Jt=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:s,productInformation:u,cashbackInformation:h,creditAccountInformation:f,debitAccountInformation:c,creditAccount:g,creditAccountRepayment:m,isDebitCard:x,isChargeCardAdmin:b,analytics:n,controllerEmails:C,actionDetails:w,actionField:j})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!s||g.fetchState==="Completed"&&m.fetchState==="Completed")&&(!(x&&b)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(C,u,"Cards Detail","Copy","copied",j,w,h,f,c)},Xc=r.div``,Kr=r.div`
1276
1276
  background: ${d.important};
1277
1277
  display: flex;
1278
1278
  align-items: center;
@@ -1299,7 +1299,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
1299
1299
  padding-left: ${({windowSize:e})=>Fe.payNowSectionPaddingLeftRight.valuePx(e)};
1300
1300
  padding-right: ${({windowSize:e})=>Fe.payNowSectionPaddingLeftRight.valuePx(e)};
1301
1301
  gap: ${a.sp2};
1302
- `,ur=r(zi)`
1302
+ `,ur=r(Pi)`
1303
1303
  color: ${e=>e.theme.colors.grey5};
1304
1304
  margin-right: ${({windowSize:e})=>Fe.styledHighImportanceIconMarginRight.valuePx(e)};
1305
1305
  min-width: ${a.sp4};
@@ -1309,7 +1309,7 @@ import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ
1309
1309
  path:nth-child(3) {
1310
1310
  stroke: ${d.important};
1311
1311
  }
1312
- `,el=r(Pi)`
1312
+ `,el=r(zi)`
1313
1313
  color: ${e=>e.theme.colors.grey5};
1314
1314
  min-width: 12px;
1315
1315
  width: 12px;