@zeniai/web-cockpit-ui 1.14.84-dev → 1.14.85-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 (221) hide show
  1. package/dist/assets/{ACHDetailsPage-BXgsd50c-BuCiUEId.js → ACHDetailsPage-Dzk7YdoJ-Cuct0t6u.js} +2 -2
  2. package/dist/assets/{AIPerformancePage-BdDTidCL-D-IQ6p36.js → AIPerformancePage-DBCH9dJi-CYibQjrX.js} +19 -19
  3. package/dist/assets/{AccountInfoPage-w0STaK9a-BfMIBiEJ.js → AccountInfoPage-Mzw-22d_-Df5O2T5Z.js} +2 -2
  4. package/dist/assets/{AccountInfoPageContent-CsuUhHXU-DgiU-I5H.js → AccountInfoPageContent-Bjp81drF-Cqcv4hk8.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-iYb31wv7-CEyp2zKM.js → AccountLockedInfoModal-Zg2PAu1o-svgY2-MJ.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DmkLTIkW-DxChexc_.js → AccountReconDetailsDrawerPage-BTkrwp4Q-CWHV1qM1.js} +9 -9
  7. package/dist/assets/{AccountRow-BObEIy6l-CsCw-i7a.js → AccountRow-CIsbwvGp-J3oMxL3b.js} +10 -10
  8. package/dist/assets/{AccountsPromoCardStack-B8gJFsYh-DpzT8FNB.js → AccountsPromoCardStack-DrElZh-K-CUoBlW42.js} +13 -13
  9. package/dist/assets/{AddAddressForCardDrawer-vOgzMYWA-Bo72mQ01.js → AddAddressForCardDrawer-D5Kqxx0c-CDAVfdUf.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BhphXgem-DR4-yAJW.js → AddToWalletPage-B68eBsAU-Dnsjp7Oq.js} +5 -5
  11. package/dist/assets/{AgingReportsPage-DEgupWct-SJsZmYxE.js → AgingReportsPage-BlQHxYjL-Cr6yxtF3.js} +4 -4
  12. package/dist/assets/{AllUserItems-S2DAZpO6-Zcx2jN6k.js → AllUserItems-DsECKAGD-PW2UBBng.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CvDD8-s7-k2W-N5me.js → ApAgingDetailPage-Bg0ZrGXm-CfXEq_5-.js} +2 -2
  14. package/dist/assets/{AppBasePage-C4z5I-xG-vGdvNBYI.js → AppBasePage-tPaBc2ei-WGoBSx1D.js} +7 -7
  15. package/dist/assets/{AppDrawerContent-Dka5HlPs-BfBKKeHh.js → AppDrawerContent-Cx4zDKi_-DO8upp4U.js} +2 -2
  16. package/dist/assets/ApprovalRulesSettingsPage-BcRZvSQH-BuukHz1z.js +47 -0
  17. package/dist/assets/{ArAgingChart-CJ7XKU9h-BSixtgVA.js → ArAgingChart-RdGwOP5k-DaN2WJzI.js} +1 -1
  18. package/dist/assets/ArAgingDetailPage-Bh7NAVZf-DauNApby.js +46 -0
  19. package/dist/assets/{AttachmentView-Dg6PizI7-BzoqKbZ4.js → AttachmentView-ClnTjRCg-CXQ9ySez.js} +6 -6
  20. package/dist/assets/{BankAccountSection-Chay7X-G-vPiVizDl.js → BankAccountSection-D3sQOQ-c-t8HGw1J0.js} +4 -4
  21. package/dist/assets/{BankAccountWarningSection-CSChi1lw-BVD5BCv3.js → BankAccountWarningSection-CxLBPI_P-CQJWoDnI.js} +9 -9
  22. package/dist/assets/{BankConnectionsSettingsPage-DJV7q1Kp-DcUIdQZo.js → BankConnectionsSettingsPage-Bsix2nzV-BvUIdsy8.js} +6 -6
  23. package/dist/assets/{BillDetailPage-DM06uZnD-BOk9lw2_.js → BillDetailPage-B52FZrvM-BFE_NGrS.js} +10 -10
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-MsPIxgUt-r4h6U7BK.js → BillPayApprovalRuleDetailPage-CswUbxdi-Cprf5Nyo.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BhDdco2x-B1oZ9jjD.js → BillPayApprovalRulesPage-B-8sIYjs-D2BSNMf9.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-Dy-opG76-CZ2iWLB7.js → BillPayPromoPage-B6jW_8rf-YW9uzBg5.js} +5 -5
  27. package/dist/assets/{BillPaySetUpPage-DUvwWlaD-Bg_qNGFx.js → BillPaySetUpPage-Rqxy02BM-CEkcaNcr.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-wj_sIJgc-Dy0iglvP.js → BillingSettingsPage-CPs5zrIc-DODFNfJu.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DbC84oxR-CV4aNHIq.js → BillsBulkReviewDrawerPage-DLQsxJi8-DtW4kiE9.js} +1 -1
  30. package/dist/assets/{BoxItem-CdqDzfZN-BxmSstzM.js → BoxItem-CP9cPZQd-BW2Fv6YZ.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-BMtHNNcG-CKxF3KMp.js → BusinessVerificationPage-Cayj-kYe-DIQRuHb0.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-lh7fQJis-CKFkz1Hy.js → CardNumberSubText-FdCtSIHd-Cer2LzOo.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-KRbsYA09-DzsJTodf.js → CashbackDetailPage-CZICE37r-CchxXOB0.js} +11 -11
  34. package/dist/assets/{ChargeCardDetailPage--WP6KTfb-BgNGsK6v.js → ChargeCardDetailPage-Be2X4Rx8-DkQXGv5E.js} +27 -27
  35. package/dist/assets/{ChargeCardListPage-knAPmob6-CgVyQmJQ.js → ChargeCardListPage-DzfBzM8o-BpS6GwxX.js} +13 -13
  36. package/dist/assets/{ChargeCardListTable-DsfnKX3P-D0-TBhcC.js → ChargeCardListTable-Bc-4mcCz-DGGclb69.js} +44 -44
  37. package/dist/assets/{ChargeCardPromoPage-C9610LtW-GRwSeJ82.js → ChargeCardPromoPage-D_C7hXGy-jKodLkTT.js} +7 -7
  38. package/dist/assets/{ChargeCardSetupPage-Cy4JhjJW-BnQWcnli.js → ChargeCardSetupPage-BwNi9-pq-C4dK5zJO.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-C7uS1jEO-7cO1LhgS.js → ChargeCardStatementsPage-Bf04MOoK-k-sWDpeT.js} +8 -8
  40. package/dist/assets/{CheckDepositDrawerPage-TfiJwtqN-CwfCisTT.js → CheckDepositDrawerPage-B-A9fkGZ-DZFZ2JbI.js} +7 -7
  41. package/dist/assets/{CollapsableReportTable-NYu8Bq-g-CCeLwwka.js → CollapsableReportTable-DdMyzUD0-BAoVL7wM.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-CiVliExW-DzmWuQm0.js → CompanyOfficerDetailsSection-kRtuUd2c-Cm23V4kL.js} +18 -18
  43. package/dist/assets/{CompanyPassportCard-8zvCdmxt-CxjPiS1u.js → CompanyPassportCard-KhSJJMcy-Cll554T1.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-AS4N7oT2-Bv10VeId.js → CompanyPassportPage--ckOuqML-CPrNkQDu.js} +10 -10
  45. package/dist/assets/{CompleteProfile-Dj080UdJ-B2qMa6vk.js → CompleteProfile-D8egRg8d-QRh3PECw.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-DcCUSSaX-yciACYT1.js → ConfettiBurst-CvRhNEAY-OaJ4gLIH.js} +1 -1
  47. package/dist/assets/CreateOrEditVendorPage-DrZh60Xs-DORgL7Gm.js +281 -0
  48. package/dist/assets/{CreditCardPaymentDrawerPage-BKvqMwnt-BuHB8ode.js → CreditCardPaymentDrawerPage-B7ssB1GM-DOObGC22.js} +8 -8
  49. package/dist/assets/{CurrencySelectField-ksMvik33-CjY_Sqhm.js → CurrencySelectField-BXp2mtZ7-BZ1r7qNY.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-DfT_gkE4-Dk7tFjjw.js → CustomerOnboardingActivationPage-BX7STQsk-ClpFwMrN.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-BkPTeV9_-YlZ2rpks.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DfOtXgss-1gud75px.js → CustomerOnboardingDetailPageSkeleton-C5tSpmSB-5KFMWV1l.js} +5 -5
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-61UorFvn-DF0b8zE7.js → CustomerOnboardingNoStepsPage-CQUQlLbj-llUCphSN.js} +4 -4
  54. package/dist/assets/CustomerOnboardingPage-D0p8khnC-C1IdwvBx.js +107 -0
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-CTowHB2X-DUFAd8wB.js → CustomerOnboardingProductSuitePage-BRk3TA9f-n37UhYFK.js} +1 -1
  56. package/dist/assets/{Dashboard-2RpETnqH-Dgva4ZAW.js → Dashboard-CBOma7mv-B9j8ewTM.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-DRRWpGiJ-Z6RP-3ZH.js → DashboardReportPage-DRYx3AOy-D6rkizKp.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-0cCKM3E9-DV5Ukn4W.js → DashboardSidebarBackgroundAnimation-DYsp7Imm-CsY2ImuX.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-DjbheijR-B7o468tr.js → DepositAccTransactionItem-BQU7vZKr-BOGssvEh.js} +1 -1
  60. package/dist/assets/DepositAccTransactionListPage-DQDt_2kb-D0tTF08R.js +66 -0
  61. package/dist/assets/{DomesticWireDetailsPage-DuKrVIAL-BzRIhYO3.js → DomesticWireDetailsPage-B0KbC9m8-DSgkPJjx.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-f6SOW8iK-DORigjXi.js → DownloadOverlay-D2vm9EYI-1UU-2gMF.js} +18 -18
  63. package/dist/assets/{DrawerPage-BkIQ6mLJ-DU9u6eQ0.js → DrawerPage-DHIaNEwf-DBdDE0YZ.js} +7 -7
  64. package/dist/assets/{EditPeoplePage-lZcM4Zfw-CzhpHcfF.js → EditPeoplePage-B4OaKX89-CxOdlVup.js} +2 -2
  65. package/dist/assets/{EditReimbursementDetailPage-WO3U-vVY-CTjbkhIP.js → EditReimbursementDetailPage-C_JOnUnR-BaFHONcZ.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-AP27Niqu-DwUEbyHL.js → EntityDetailPage-DGq_Sr4I-DbAOqf4w.js} +2 -2
  67. package/dist/assets/{EntitySummarySection-B6khdAJg-7W3j7WRI.js → EntitySummarySection-CAKPRhm9-DT4p2FkX.js} +10 -10
  68. package/dist/assets/{ExpenseAutomationOverviewPage-CcTGou9x-D6xWlI6r.js → ExpenseAutomationOverviewPage-c4H81maP-DA77wvgo.js} +9 -9
  69. package/dist/assets/{ExpenseAutomationPage-DEleaYKs-SFko_-SO.js → ExpenseAutomationPage-DoI_XKeY-6CiggPiF.js} +160 -160
  70. package/dist/assets/{ExpressPayPage-CLYzefaM-CHfIN-TO.js → ExpressPayPage-CjhXfVeX-BOKCYwCy.js} +12 -12
  71. package/dist/assets/{FeaturePreviewPage-T78A34---Cfgg_jhN.js → FeaturePreviewPage-CwrW_5lN-DmGMYSsi.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-B_mTbqHf-CcoWV2SW.js → FollowStepsSection-DwVibYwI-v9hEOCV9.js} +6 -6
  73. package/dist/assets/{GlobalReviewListPage-XfxDC9vP-Bi-7QMiL.js → GlobalReviewListPage-JUSXRKq4-DVN5r0h7.js} +45 -45
  74. package/dist/assets/{InformationCardStack-Buibt8cT-DzjFUhjp.js → InformationCardStack-CK1Ztw1n-C4th25N4.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-Cj5iIm_T-CnLFxYVI.js → InsightsCardStack-BKAezFjz-Dc6HzMco.js} +2 -2
  76. package/dist/assets/{InsightsSection-DuPqQb5Z-C8m7clcN.js → InsightsSection-Bauri5yR-CKFEflqf.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-VZDSLMHK--2kEd_Ab.js → IntegrationsSettingsPage-CnRe_xH3-UkqXGmer.js} +9 -9
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-BUa1svL--BjPRjytS.js → InternationalWireSwiftDetailsPage-BJkaLuNw-77-AaJID.js} +10 -10
  79. package/dist/assets/{InternationalWireVerificationPage-C1qKNhqJ-D8-rYzvp.js → InternationalWireVerificationPage-pPH2bNM7-BKQZ3C2I.js} +1 -1
  80. package/dist/assets/{InviteFormPage-GPXu2hLn-Dlxczoo1.js → InviteFormPage-CsL2egNG-DnYkx7hA.js} +1 -1
  81. package/dist/assets/{InvitePageListView-FEFeEFZJ-fGYpyL6r.js → InvitePageListView-rt3KC_c5-JZPrjnvG.js} +33 -33
  82. package/dist/assets/{InvitePeoplePage-C6E594rf-DZBpEScz.js → InvitePeoplePage-Cdr0dhtJ-QaKpYzAx.js} +4 -4
  83. package/dist/assets/{InvoiceUploadSection-uvB-_dyl-BnrUYuvf.js → InvoiceUploadSection-NVvtQvoL-B8iP_R_q.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-DSPlu840-3aXsgWJG.js → IssueChargeCardPage-D5KenKnm-I0qHogFn.js} +13 -13
  85. package/dist/assets/{LabeledAddressValue-CzDn9ZY4-bnEz1Jxt.js → LabeledAddressValue-Bwkw-Ez_-QZs1bcqC.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-C_8kPzjy-5OUHMeqd.js → LabeledAddressValueField-BgkRIdwJ-D68tBsFt.js} +2 -2
  87. package/dist/assets/{LabeledControlledCheckBoxField-LwfkGeF--D4JaYe7v.js → LabeledControlledCheckBoxField-RzyuT5ZX-BsFbzCeg.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-sEf-9BOE-pPbJFdXC.js → LabeledCreatableSingleSelectField-BP_p62Nk-BGV5p2pd.js} +2 -2
  89. package/dist/assets/{LabeledDocumentField-rGzXpShn-Cfh7MC5-.js → LabeledDocumentField-DGncRe-Q-BM_MF9Yy.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-CIQk7Jhu-BODJHkfO.js → LabeledDropDownFormattedTextField-DWUVcIR8-DmvGwPXC.js} +7 -7
  91. package/dist/assets/{LabeledText-Dc-697nR-dyJ4TshB.js → LabeledText-BzD_-lgI-Br_7nwt2.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B0D7IWfA-CLizobZu.js → LabeledUserSingleSelectWithSubtitlesField-D3kjxF9V-C7cFlAui.js} +10 -10
  93. package/dist/assets/{LabeledZeniRolesDropDownField-BO8f1yqV-POb2k_D_.js → LabeledZeniRolesDropDownField-BlmybTGB-C8vefnXI.js} +25 -25
  94. package/dist/assets/{LinkJETransactionPage-DDSo8zJn-CupLOAYQ.js → LinkJETransactionPage-CUnfHHeT-BQ0Gfxk0.js} +9 -9
  95. package/dist/assets/{LockCardPage-CvZcUUc8-B6VLJ-gr.js → LockCardPage-2jOFCVkW-Cd-7Cld7.js} +19 -19
  96. package/dist/assets/{LowBalancePopup-DJQCz0Ed-B8IDUNee.js → LowBalancePopup-Du0kX_mJ-B-0Hf7BW.js} +2 -2
  97. package/dist/assets/{MagicLinkACHDetailsPage-CEtaoWk8-CST49L9m.js → MagicLinkACHDetailsPage-CkbNMu7Z-B4drRgdG.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-qdgMQR3_-DWvT9O1j.js → MagicLinkDomesticWireDetailsPage-D0XBf5_X-D4YEFAaf.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DNwtPZ-u-Bk0G3IwE.js → MagicLinkInternationalWireDetailsPage-Bl93T-SF-DbfMD1IO.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-60TBVrSw-CKgQ4p6j.js → MagicLinkSuccessPage-C26glp7T-BbSy9weN.js} +2 -2
  101. package/dist/assets/{MagicLinkTitleSection-D2fXbnDV-CA6SEdmn.js → MagicLinkTitleSection-B4nxLzap-CM0lHGYk.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-C6cVooC3-CCSD5vtq.js → MailingDetailsSection-Cou_W8JF-D0QplON-.js} +1 -1
  103. package/dist/assets/Menu-CdF7UWPF-DT1TTbqS.js +17 -0
  104. package/dist/assets/{MyBankConnectionsSettingsPage-D2EPH9WZ-DhQP4OT2.js → MyBankConnectionsSettingsPage-BAjjxA98-P3jZBDkg.js} +5 -5
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-Bidsd2bk-DJBBvD6g.js → MyPendingActivationChargeCardListPage-DsRGcA8F-BiAy3gfH.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-BH2ZVQTk-DMG3qFrn.js → MyProfileSettingsPage-y-iZgUqL-Cmq9Fbc9.js} +6 -6
  107. package/dist/assets/{NavBarWithPicker-Cg2TZjBi-DZVc5NBz.js → NavBarWithPicker-ph4heJns-CH6-ZGCk.js} +4 -4
  108. package/dist/assets/{NavigationArrow-CYserS2B-DdYPXfvg.js → NavigationArrow-BojAUI53-DuIW3OB3.js} +1 -1
  109. package/dist/assets/{NavigationDots-CT_oO_7z-Bt9KzB5Z.js → NavigationDots-Bf66leAL-DWvE0Tr9.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-D3MQU5Sh-BUpZMSnV.js → NewGlobalMerchantPage-D43XJhIa-CGBQEE1e.js} +5 -5
  111. package/dist/assets/{NoDataChart-BItQZAQ9-a5HKjWqu.js → NoDataChart-6R5pxJVo-CWkI_hu9.js} +1 -1
  112. package/dist/assets/{NoDataTable-R8OCdB2c-cDhvp6Rg.js → NoDataTable-CNx0KCKn-Yxxqzyz6.js} +1 -1
  113. package/dist/assets/{NotFoundPage-DLHYdRdN-xXzpa00n.js → NotFoundPage-CE9BW_aV-BJq9qwHQ.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-CIwxb6c9-FsYdgXX7.js → NotificationSettingsPage-etN6HEwO-CPu8hoID.js} +12 -12
  115. package/dist/assets/{NotificationsListConfig-DSgUS0hE-mwmsOI0p.js → NotificationsListConfig-15ae4nik-CPKCivw4.js} +1 -1
  116. package/dist/assets/{NotificationsPage-W5ZhprRe-DZn-eWsJ.js → NotificationsPage-BwbxqKxd-CJ_w7jhJ.js} +23 -23
  117. package/dist/assets/{OpExByVendorPage-DIi58wXa-nKCVWs3g.js → OpExByVendorPage-FR3oloXp-BIjz5fFP.js} +24 -24
  118. package/dist/assets/{OverlayContainerPage-BsY9_22w-CFGZ7LWs.js → OverlayContainerPage-CrZuT2Jj-BFQOGYGF.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-BvMxFrqo-D4f9n7Zm.js → PandLWithForecastPage-Bx3ZyA3l-DeFHP0VX.js} +7 -7
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-kUAm-v-A-BSna9XIu.js → PaymentAccountSetupBillingAddressSection-R1O20DhA-C65ZHllw.js} +6 -6
  121. package/dist/assets/{PeoplePage-CtnWc0LE-B3_lhERY.js → PeoplePage-B3HRaJWz-DZIUGp3j.js} +15 -15
  122. package/dist/assets/{ProductsCarousel-n0ZNrr7--DQIbkMZp.js → ProductsCarousel-Dn4vuZwM-XZC4Gi6v.js} +4 -4
  123. package/dist/assets/{PromoBaseCards-CeS0HoCZ-CICve0tH.js → PromoBaseCards-BKo4wO-U-UIjavA07.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-BxSTc99Z-DVq4lO-s.js → QBOConnectionDialog-CPq0aUew-DHwaU-lE.js} +5 -5
  125. package/dist/assets/{QBOSetupSection-FrO9rgct-B0n-bnvz.js → QBOSetupSection-BjImTh7O-Cf73veGI.js} +11 -11
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BjtdatXs-DvpYlYpI.js → ReimbursementApprovalRuleDetailPage-DD1HwLO0-DBTNMi4-.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-B0_FgpJf-BSGUtiNs.js → ReimbursementApprovalRulesPage-DHQHS0eD-l5f43j6l.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-BWhPxHY--DgkbtFUt.js → ReimbursementDetailPage-DiMXs0_o-C-Gngkni.js} +7 -7
  129. package/dist/assets/{ReimbursementPromoPage-CFG0yxOE-CNHt16Bv.js → ReimbursementPromoPage-BinqJ3lR-Dkzvoe2N.js} +5 -5
  130. package/dist/assets/{ReimbursementSetUpPage-BmUdLEa9-uEaDyTyL.js → ReimbursementSetUpPage-BD6B-0CO-Dhg43o5f.js} +17 -17
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CkJqhXEf-B4qPeVNR.js → ReimbursementsBulkReviewDrawerPage-DK-nCoay-BC-GO3CD.js} +1 -1
  132. package/dist/assets/{ReloadCard-CNKwqjPJ-C6w7GHJG.js → ReloadCard-Bt8qxAUx-C0FiLSzB.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-B0DXgLgJ-B3X9gS-3.js → ReportTableViewSelector-Dv7BwM1q-DZ-FOl5q.js} +6 -6
  134. package/dist/assets/{ReportsPage-C5iOQU55-DamkEztw.js → ReportsPage-BOY8oCAr-BwR5MVzD.js} +5 -5
  135. package/dist/assets/{RevenueChart-C2CMFAQ--BirLMW85.js → RevenueChart-D_yexiAR-D3rVopXP.js} +16 -16
  136. package/dist/assets/{ReviewDetailsPage-5vOZ0rd7-B41AzmWH.js → ReviewDetailsPage-Czrlb8BL-DTI9py46.js} +14 -14
  137. package/dist/assets/{ReviewOverlay-BAG_6iyV-B2w-MEIV.js → ReviewOverlay-BHUy3fWf-DhycJa32.js} +10 -10
  138. package/dist/assets/{RoleWithToolTip-GUYLjJwW-DVSFtUus.js → RoleWithToolTip-BxI2nAro-CHrHR5C8.js} +4 -4
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-sPjMfOtt-m5JvZNFh.js → ScheduleDetailsFixedAssetsPage-DsNhFGrc-C7120rgv.js} +8 -8
  140. package/dist/assets/{ScheduleDetailsPage-DI4C0o6b-B7Dooc-N.js → ScheduleDetailsPage-Dy2poGsp-B72mEOku.js} +4 -4
  141. package/dist/assets/{ScheduleSequenceTable-DhXwtG-x-C20E6-vV.js → ScheduleSequenceTable-Bv1feMZc-DEmwzIZ-.js} +47 -47
  142. package/dist/assets/{ScreenRoutes-B_yySVlk.js → ScreenRoutes-aw0OxNGj.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-DOavnCkG-CmcaONdQ.js → SetUpAccountSection-SSkLhU2W-Bdvkba2v.js} +14 -14
  144. package/dist/assets/{SignIn-DqrG5nEJ-8MVRrbiA.js → SignIn-Chuf9_2E-Dg9U6pWl.js} +10 -10
  145. package/dist/assets/{SignInScreen-CSh4OzXN.js → SignInScreen-heeiIDQc.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-DHY_hZQm-C3jihmoK.js → SpendManagementListViewPage-BpCZzQ7I-CeMMhyUX.js} +8 -8
  147. package/dist/assets/{SpendManagementPerTabPage-CoKTIQ2b-D2j2J6zW.js → SpendManagementPerTabPage-DbXTM50B-DF3kTGNr.js} +32 -32
  148. package/dist/assets/{SpendManagementSection-UkTY6qX0-CST6kY6m.js → SpendManagementSection-BMU1BTEo-BBFzWPwD.js} +12 -12
  149. package/dist/assets/{StatementItem-Bx6mxa3U-C42zKfqY.js → StatementItem-qLZEMVrM-C5sUBNaG.js} +5 -5
  150. package/dist/assets/{StatementsPage-ULjFE30P-BGU6QX6B.js → StatementsPage-B3qY1D4K-C1V6A2Qk.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-DlBY_FC1-C1Bsm00T.js → StatusSwitcher-xQ_AW7ze-DWj9eTCE.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-DjEElTWE-5Wo1Obau.js → SubTabSwitcher-w8vLc-35-BeFKfmS8.js} +1 -1
  153. package/dist/assets/{SummaryCard-BNESDUnN-ChwTCNZM.js → SummaryCard-CTq_yqTg-Bw75z4He.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-BFF3ATPV-BYvPz4hv.js → TaskManagementPage-keXFNmIv-BEMVU9l6.js} +33 -33
  155. package/dist/assets/{TimeRangeSwitcher-xILz-EO6-DqqNb5IN.js → TimeRangeSwitcher-C4Tph63B-D9xSXRlF.js} +2 -2
  156. package/dist/assets/{TimeframeSwitcher-CZhQm7rH-D5h04PEF.js → TimeframeSwitcher-LLgotbh8-X4qFRStD.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-CduB3ZjN-PiqhKHhY.js → TimeframeSwitcherWithToggle-Cw3a9d0I-BlbsDDpn.js} +1 -1
  158. package/dist/assets/{TopExCard-C_HWsAL1-DphCzqA5.js → TopExCard-Dj0wtF6g-CdD53hxs.js} +3 -3
  159. package/dist/assets/{TopExDetailPage-BEKo6juU-CUrrRqCk.js → TopExDetailPage-JutaMmtR-koGwO2ev.js} +5 -5
  160. package/dist/assets/{TransactionDetailPage-Bzgtmi3U-DCXvClem.js → TransactionDetailPage-BdFHqSCv-Bc3ggi0n.js} +30 -30
  161. package/dist/assets/{TransactionList-Dw78Q0Sx-BHAN7axA.js → TransactionList-C85wyFeI-C41EirGp.js} +4 -4
  162. package/dist/assets/{TransactionListBig-BofakL17-k36ZTqo_.js → TransactionListBig-DPev2-Mm-BpW_w096.js} +6 -6
  163. package/dist/assets/{TransactionListPage-tpOg0ax5-aeL9weeE.js → TransactionListPage-D127NU4T-BPyAfJzu.js} +4 -4
  164. package/dist/assets/{TransactionVendorDetailPage-BqIcXz6b-tGgvKqD0.js → TransactionVendorDetailPage-BJ1YnPif-SJ1gb7FN.js} +5 -5
  165. package/dist/assets/{TransferDrawerPage-DnnZBOyK-y1PDtTFY.js → TransferDrawerPage-DcrfmXH1-DiL_C6V9.js} +21 -21
  166. package/dist/assets/{TreasuryOverviewPage-C9ROzNHl-Cn6eazlN.js → TreasuryOverviewPage-D-Zw4Npq-K2RbtXZZ.js} +22 -22
  167. package/dist/assets/{TreasuryPromoPage--j_2YjQn-DHIwXCO0.js → TreasuryPromoPage-BhBPhhbb-DM-0mrYZ.js} +131 -131
  168. package/dist/assets/{TreasuryStatementsPage-BLrceDQm-vMicHzmk.js → TreasuryStatementsPage-Dxjg_QN7-C_fsR-Na.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-BoqkgdLm-DAQeQUTC.js → TreasuryTaxLetterPage-Dm552RDZ-BLLWDMsm.js} +7 -7
  170. package/dist/assets/{TrendChart-KnFi8NXQ-DHzaDtQY.js → TrendChart-_c8z5Kxm-DarAZz3o.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-C_T0I9xe-DqS7m8LH.js → TrendWithTransactions-B2rde1MW-D1twJg_e.js} +4 -4
  172. package/dist/assets/{UncategorizedAccountsMappingPage-DOuzy2aS-DnfCgWVE.js → UncategorizedAccountsMappingPage-77nkQFar-Bn3Ibb9A.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-DxhlNHvt-CHN5Qw88.js → UnitIntegrationPage-3_YMV_f4-yfDaiCvi.js} +4 -4
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-BAvSyhDW-D4KE1Kke.js → UploadAdditionalDocumentOverlay-D72fkcgM-BkIuCEEz.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-BFjVFON8-Dl6jzAdP.js → Vendor2FAPopup-DLbGF5_q-DmCvA6XI.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-8BG5DD-0-p3vm6zDD.js → VendorACHDetailsPage-CaNQylEA-CMyzxyGW.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-C16CrNJo-D86vTvj2.js → VendorDetailPage-DqdH4UMj-tM-8a-UX.js} +18 -18
  178. package/dist/assets/{VendorDomesticWireDetailsPage-DXhugXZa-DeVAnksE.js → VendorDomesticWireDetailsPage-9pyV_r_g-CREdXXXG.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-2QPpdbuN-ozpxZwEp.js → VendorFiling1099EditablePage-nb9_V73Z-CwrDCXoq.js} +32 -32
  180. package/dist/assets/{VendorFirstReviewPage-DLshEh_s-DbpLTolM.js → VendorFirstReviewPage-C2RjaA8x-C3EURG-_.js} +58 -58
  181. package/dist/assets/{VendorInternationalWireDetailsPage-_WoNgw66-DANrlPFU.js → VendorInternationalWireDetailsPage-VOAgofls-DxNfQmbI.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dyt1ZPOh-DoVwF0sT.js → VendorInternationalWireSwiftDetailsPage-CcRuLO-_-CRRJCsCk.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-Dxq0YSgP-Bt8xoh_f.js → VendorsAccountsSection-RzVUJ8IV-CIdzas-R.js} +14 -14
  184. package/dist/assets/{VerifyDevice-DEwEqoHA-CylVN9FP.js → VerifyDevice-DUxQHfLf-DyoufOtx.js} +1 -1
  185. package/dist/assets/{VideoPlayer-_1Msrww9-DaiS1R42.js → VideoPlayer-BxuhQQfM-CSaCo4fi.js} +1 -1
  186. package/dist/assets/{VideoPopup-BzQ_Dl9b-mwrODjDA.js → VideoPopup-DdtmLcPB-9kSPQrRF.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-CMBST3p1-ujIyTaCb.js → WarningsDrawerPage-DC5ophK0-B9MWpL_5.js} +5 -5
  188. package/dist/assets/{ZeniAccountDetailPage-DVLYYC-q-DeZb5ud9.js → ZeniAccountDetailPage-C1KKeyYC-AmZ_-UbH.js} +14 -14
  189. package/dist/assets/{ZeniAccountListViewPage-BHkoMOx5-CtDb7Bzx.js → ZeniAccountListViewPage-Bw5_2Q-c-Zl0NVbWL.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-CCFzNOcx-CuAvs6Mv.js → ZeniAccountNavBarPieces-DlfwFtOB-BhG7WDho.js} +3 -3
  191. package/dist/assets/{ZeniAccountPromoPage-C3Rl-hWL-DwIvVxTo.js → ZeniAccountPromoPage-B8cXf7Ni-BGYao9Jv.js} +13 -13
  192. package/dist/assets/{ZeniAccountSetupPage-Bf1OOF0Q-DBu-8Ie5.js → ZeniAccountSetupPage-Cae0pB-b-Blr8FOsP.js} +3 -3
  193. package/dist/assets/{ZeniCopyright-CdqD8vO4-DYRLQn9Q.js → ZeniCopyright-gTS4uZlF-BTYFdkhV.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-BTudpQjV-CvoGRB0t.js → ZeniTransferAmountSlider-17kY7kNO-DEs9IrPm.js} +1 -1
  195. package/dist/assets/{analyticsHelper-_u1yj9ge-DxpjUhrt.js → analyticsHelper-DXVBA0aW-q_4bVB8v.js} +1 -1
  196. package/dist/assets/analyticsHelper-kRUwHHg6.js +1 -0
  197. package/dist/assets/{chartTypes-vQ8GTDEq-DTt3gea6.js → chartTypes-BXBHlosV-DY5SgOjH.js} +1 -1
  198. package/dist/assets/{commonDimensions-znFHURNY-BydE4i8M.js → commonDimensions-Bm2CSHrw-S9XM9nhL.js} +1 -1
  199. package/dist/assets/{detailCommon-DmLhlrjU-ShYTQ7m2.js → detailCommon-VW4xegQy-1DhxNuRe.js} +3 -3
  200. package/dist/assets/{downloadPdf-CCUPfpyu-Cq1M0ik1.js → downloadPdf-DUAAPKqC-BN9D0Y0M.js} +1 -1
  201. package/dist/assets/{index-XNBiWrYj.js → index-BS0RW8dr.js} +3698 -3698
  202. package/dist/assets/{mapLoadingInProgressToTreeNode-Cw74bTou-BDMlWcL7.js → mapLoadingInProgressToTreeNode-D5WZ1WGx-B7azUcXb.js} +1 -1
  203. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CWFxnMpB-BCzyYlDf.js → mapSectionWithAcOnlyToTreeNode-BxzLwMCb-DSGmyD1M.js} +1 -1
  204. package/dist/assets/{mapSpacerToTreeNode-JUrBuZAz-wZclqNi-.js → mapSpacerToTreeNode-CScyNZ9s-wlC4VP1v.js} +1 -1
  205. package/dist/assets/{mapTimeframeBalancesToTreeNode-B2iYfeF3-B53qunPl.js → mapTimeframeBalancesToTreeNode-Caj8eqsL-Kzqcpw75.js} +1 -1
  206. package/dist/assets/{mapTimeframeBalancesToTreeNode-BbQHYZk7-DpCyCcLg.js → mapTimeframeBalancesToTreeNode-CdVqeC27-Dxhi6BEZ.js} +1 -1
  207. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BeqGSN9x-CoS9pLIE.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CUFXYz6j-YXXdz_Ql.js} +1 -1
  208. package/dist/assets/{toCOABalancesWithID-DeZfEmbT-vM-pgltN.js → toCOABalancesWithID-CqzWoD-C-D32cGljj.js} +1 -1
  209. package/dist/assets/{toChartData-KibzV7pa-DRJVLoY0.js → toChartData-X878W8tN-DZEeyq4i.js} +1 -1
  210. package/dist/assets/{uploadAttachment-U9nX0Ka9-1qW3wdO3.js → uploadAttachment-DNKgJox4-CH4FqFzC.js} +13 -13
  211. package/dist/assets/{uploadReceipts-CDPM7zcb-DEOGBGdq.js → uploadReceipts-Bkf_PaOH-DrwBt5Yx.js} +1 -1
  212. package/dist/index.html +1 -1
  213. package/package.json +3 -3
  214. package/dist/assets/ApprovalRulesSettingsPage-BOJE5Fb_-DykJvECT.js +0 -47
  215. package/dist/assets/ArAgingDetailPage-ZjaiAH-C-DY8qSTjK.js +0 -46
  216. package/dist/assets/CreateOrEditVendorPage-flCFtC2N-Dsf2hlMT.js +0 -281
  217. package/dist/assets/CustomerOnboardingContainerPage-DZ9vkiEO-ah6dg727.js +0 -1
  218. package/dist/assets/CustomerOnboardingPage-C12XXjv0-mi5gJ6u3.js +0 -107
  219. package/dist/assets/DepositAccTransactionListPage-keSFBKDU-qnysSla9.js +0 -66
  220. package/dist/assets/Menu-D_6Dje0H-Ar5SwcnV.js +0 -17
  221. package/dist/assets/analyticsHelper-D23HZgYu.js +0 -1
@@ -1,4 +1,4 @@
1
- import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR as xr,aN as et,V as t,gT as ji,bz as Ii,u as l,fP as Sr,aL as Ge,aK as J,o as a,bQ as Qt,p as d,iX as br,b as U,cm as Li,iY as Di,f5 as Ai,gH as Ti,iZ as Ri,bC as Ei,bL as yr,aQ as ea,i_ as Fi,i$ as $r,j0 as ot,y as T,bI as vr,b8 as ta,a as Pi,aR as kr,aZ as zi,j1 as Mi,j2 as Vi,b5 as aa,ag as ge,eB as Oi,iL as Hi,s as gt,gS as jr,A as mt,b1 as Ni,dn as Bi,cq as Wi,cn as Ui,d1 as _i,hr as Zi,ak as Oe,bS as Gi,aW as Wt,j3 as Fa,j4 as Yi,B as Pa,M as Ir,b7 as qi,j5 as Xi,iF as pt,iV as Ji,iW as Ki,iQ as Qi,dv as za,eT as eo,n as Lr,cv as Dr,iO as to,bV as ao,d as Ar,j6 as ro,au as vt,bY as Ma,bv as io,df as oo,al as st,hn as no,ap as so,_ as co,bE as lo,j7 as Dt,fj as ho,bO as po,j8 as Tr,j9 as Rr,gs as Er,ja as jt,i7 as Fr,iR as uo,cy as mo,eh as Pr,iS as go,iT as Co,dQ as fo,cY as wo,en as xo,cd as So,ce as bo}from"./index-XNBiWrYj.js";import{a as o,w as yo,c as zr}from"./core-3dlyNYRL.js";import{n as r,b as we,k as Mr}from"./mui-bYXq4XMS.js";import{eI as At,bj as $o,bg as vo}from"./zeni-epic-state-LPACxnXP.js";import{k as ko}from"./NavigationDots-CT_oO_7z-Bt9KzB5Z.js";import{A as jo,i as Io,a as Lo,l as Do,r as Ao,t as To,n as Ro}from"./add-to-wallet-DgdBD8_G-CmJT13gp.js";import{L as Ut}from"./lottie-DEE24l2z.js";import{j as Eo}from"./CardNumberSubText-lh7fQJis-CKFkz1Hy.js";import{l as Vr}from"./uploadReceipts-CDPM7zcb-DEOGBGdq.js";import{L as Fo,z as Po,k as zo,P as Mo}from"./LockCardPage-CvZcUUc8-B6VLJ-gr.js";import"./sentry-o6h_D-9x.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./RoleWithToolTip-GUYLjJwW-DVSFtUus.js";const Or=ke.getLocalizedStrings().spendManagement.chargeCard,Vo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:b,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:K}=Vi(),_=It(),D=At(_.loggedInUserRoleMap);return t.jsx(Oo,{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:S,creditAccountRepayment:n}),window.open(k,"_blank")}}):K===!0?t.jsx(Jt,{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:S,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{b("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:S,creditAccountRepayment:n}),O(!0)}}),t.jsx(Jt,{onClick:()=>{b("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:S,creditAccountRepayment:n}),O(!0)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Ho,{}),label:Or.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(No,{}),label:Or.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-apple-wallet-button")})},Oo=r.div`
1
+ import{d as tt,Q as Ie,av as It,a7 as Lt,gR as wr,hv as ki,aS as Qe,F as ke,gS as xr,aN as et,V as t,gU as ji,bz as Ii,u as l,fQ as Sr,aL as Ze,aK as J,o as a,bQ as Qt,p as d,iY as br,b as U,cm as Li,iZ as Di,f6 as Ai,gI as Ti,i_ as Ri,bC as Ei,bL as yr,aQ as ea,i$ as Fi,j0 as $r,j1 as ot,y as T,bI as vr,b8 as ta,U as Pi,aR as kr,aZ as zi,j2 as Mi,j3 as Vi,b5 as aa,ag as ge,eC as Oi,iM as Hi,s as gt,gT as jr,A as mt,b1 as Ni,dp as Bi,cq as Wi,cn as Ui,d2 as _i,hs as Gi,ak as Oe,bS as Zi,aW as Wt,j4 as Fa,j5 as Yi,B as Pa,M as Ir,b7 as qi,j6 as Xi,iG as pt,iW as Ji,iX as Ki,iR as Qi,dw as za,eU as eo,n as Lr,cv as Dr,iP as to,bV as ao,c as Ar,j7 as ro,au as vt,bY as Ma,bv as io,dg as oo,al as st,ho as no,ap as so,_ as co,bE as lo,j8 as Dt,fk as ho,bO as po,j9 as Tr,ja as Rr,gt as Er,jb as jt,i8 as Fr,iS as uo,cy as mo,ei as Pr,iT as go,iU as Co,dR as fo,cY as wo,eo as xo,cd as So,ce as bo}from"./index-BS0RW8dr.js";import{a as o,w as yo,c as zr}from"./core-3dlyNYRL.js";import{n as r,b as we,k as Mr}from"./mui-bYXq4XMS.js";import{eI as At,bj as $o,bg as vo}from"./zeni-epic-state-LPACxnXP.js";import{k as ko}from"./NavigationDots-Bf66leAL-DWvE0Tr9.js";import{A as jo,i as Io,a as Lo,l as Do,r as Ao,t as To,n as Ro}from"./add-to-wallet-DgdBD8_G-CmJT13gp.js";import{L as Ut}from"./lottie-DEE24l2z.js";import{j as Eo}from"./CardNumberSubText-FdCtSIHd-Cer2LzOo.js";import{l as Vr}from"./uploadReceipts-Bkf_PaOH-DrwBt5Yx.js";import{L as Fo,z as Po,k as zo,P as Mo}from"./LockCardPage-2jOFCVkW-Cd-7Cld7.js";import"./sentry-o6h_D-9x.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./RoleWithToolTip-BxI2nAro-CHrHR5C8.js";const Or=ke.getLocalizedStrings().spendManagement.chargeCard,Vo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:b,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:K}=Vi(),_=It(),D=At(_.loggedInUserRoleMap);return t.jsx(Oo,{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:S,creditAccountRepayment:n}),window.open(k,"_blank")}}):K===!0?t.jsx(Jt,{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:S,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{b("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:S,creditAccountRepayment:n}),O(!0)}}),t.jsx(Jt,{onClick:()=>{b("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:S,creditAccountRepayment:n}),O(!0)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Ho,{}),label:Or.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(No,{}),label:Or.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-apple-wallet-button")})},Oo=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -9,7 +9,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
9
9
  `,No=r(To)`
10
10
  height: ${a.sp4};
11
11
  width: ${a.sp5};
12
- `,Bo=[d.brandColorSapphire,d.brandColorJade,d.graphColor01,d.graphColor08,d.graphColor12,d.graphColor15,d.graphColor16Dark,d.graphColor23Dark,d.graphColor32Dark,d.graphColor34Dark,d.brandColorOpalDark,d.brandColorRuby],Wo=ke.getLocalizedStrings().spendManagement.chargeCard,Uo=({isColorPaletteVisible:e,hasBorderShadow:i,leftTransitionValue:s,colorInState:u,styles:h,colorPaletteTitleStyles:f,ColorListStyles:c,coloredCircleStyles:g,closeStyles:m,tickStyles:x,toggleColorPaletteVisibility:S,handleColorClick:n})=>t.jsxs(_o,{showColorPalette:e,style:h,hasBorderShadow:i,leftTransitionValue:s,children:[t.jsxs(Go,{style:f,children:[t.jsx(Yo,{children:Wo.cardDetails.cardTheme}),t.jsx(qo,{style:m,"data-testid":J("close-color-palette"),onClick:C=>{C.stopPropagation(),S(!e)}})]}),t.jsx(Zo,{style:c,children:Bo.map((C,w)=>t.jsx(Jo,{style:g,coreColor:C,onMouseEnter:()=>n(new Qe(C),!1),onMouseLeave:()=>u!=null?n(new Qe(u),!1):null,"data-testid":J("color-palette-item-cards",w.toString()),onClick:()=>n(new Qe(C),!0),children:new Qe(C).toString()===u?.toString()?t.jsx(Xo,{style:x}):null},C))})]}),_o=r.div`
12
+ `,Bo=[d.brandColorSapphire,d.brandColorJade,d.graphColor01,d.graphColor08,d.graphColor12,d.graphColor15,d.graphColor16Dark,d.graphColor23Dark,d.graphColor32Dark,d.graphColor34Dark,d.brandColorOpalDark,d.brandColorRuby],Wo=ke.getLocalizedStrings().spendManagement.chargeCard,Uo=({isColorPaletteVisible:e,hasBorderShadow:i,leftTransitionValue:s,colorInState:u,styles:h,colorPaletteTitleStyles:f,ColorListStyles:c,coloredCircleStyles:g,closeStyles:m,tickStyles:x,toggleColorPaletteVisibility:S,handleColorClick:n})=>t.jsxs(_o,{showColorPalette:e,style:h,hasBorderShadow:i,leftTransitionValue:s,children:[t.jsxs(Zo,{style:f,children:[t.jsx(Yo,{children:Wo.cardDetails.cardTheme}),t.jsx(qo,{style:m,"data-testid":J("close-color-palette"),onClick:C=>{C.stopPropagation(),S(!e)}})]}),t.jsx(Go,{style:c,children:Bo.map((C,w)=>t.jsx(Jo,{style:g,coreColor:C,onMouseEnter:()=>n(new Qe(C),!1),onMouseLeave:()=>u!=null?n(new Qe(u),!1):null,"data-testid":J("color-palette-item-cards",w.toString()),onClick:()=>n(new Qe(C),!0),children:new Qe(C).toString()===u?.toString()?t.jsx(Xo,{style:x}):null},C))})]}),_o=r.div`
13
13
  display: flex;
14
14
  top: ${a.sp1};
15
15
  max-width: 78%;
@@ -22,11 +22,11 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
22
22
  position: absolute;
23
23
  height: ${`calc(100% - ${a.sp2})`};
24
24
  z-index: 1;
25
- `,Zo=r.div`
25
+ `,Go=r.div`
26
26
  display: flex;
27
27
  flex-wrap: wrap;
28
28
  padding: ${a.sp0} 38px ${a.sp0} 31px;
29
- `,Go=r.div`
29
+ `,Zo=r.div`
30
30
  display: flex;
31
31
  align-items: center;
32
32
  justify-content: space-between;
@@ -50,8 +50,8 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
50
50
  margin: ${a.sp2};
51
51
  justify-content: center;
52
52
  align-items: center;
53
- `,{spendManagement:Ko,common:Ke,dateFormat:Qo}=ke.getLocalizedStrings(),Xe=Ko.chargeCard,Re={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(U.extraSmallRegular.fontSizeValue,U.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new T(18,18,18,21)},_t=e=>t.jsxs(wn,{style:{...e},children:[t.jsx(fn,{}),t.jsx(xn,{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:S,chargeCardCashbackDetailState:n,creditAccount:C,creditAccountRepayment:w,isDebitCard:j,depositAccountLimitFetchState:y,isCardDetailErrored:k,isCardColorUpdating:L,cardDetailsFetchState:p,isCardColorUndefined:E,cardInfoTitleStyles:b,styles:O,cvvSecStyles:H,chargeCard:v,token:Y,setSecretRevealed:K,setIsCardDetailErrored:_,setCardDetailsFetchState:D,onFireOnClickAnalytics:oe})=>{const Q=Lt().analytics,[,ne]=wr(),N=Ie(),[Z,W]=o.useState(!1),[ae,ee]=o.useState(!1),[re,se]=o.useState(!1),P=It(),de=At(P.loggedInUserRoleMap),[G]=br("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),$=i==="addToWalletDrawer"?.75:N==="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:`${$*U.h6Regular.fontSizeValue}px`,fontWeight:U.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*U.h6Regular.lineHeightValue}px`}),ce.on("requestSuccess",()=>{K(!0),_(!1),D({...p,cvv:!1})}),ce.on("requestFail",()=>{_(!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"?(ee(!0),oe("CVV copied"),n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&Q.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","CVV","",m,x,S)):ee(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:`${$*Re.secretCVVWrapperHeight}px`,width:`${$*Re.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:`${$*U.h6Regular.fontSizeValue}px`,fontWeight:U.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*U.h6Regular.lineHeightValue}px`}),ie.on("requestSuccess",()=>{K(!0),_(!1),D({...p,number:!1})}),ie.on("requestFail",()=>{_(!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")&&Q.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Card Number","",m,x,S)):W(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:`${$*U.h6Regular.lineHeightValue}px`,width:`${$*Re.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(()=>{ee(!1)},800),re===!0&&setTimeout(()=>{se(!1)},800)},[Z,ae,re]);const B=v!=null?vo(v.validThru.year,v.validThru.month-1).format(Qo.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")&&Q.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Valid Thru",B,m,x,S),ne(B),se(!0))};return t.jsxs(dn,{style:O,children:[t.jsxs(cn,{children:[t.jsx(Zt,{style:b,windowSize:N,children:Xe.cardDetails.cardNumber}),t.jsx(ln,{sourceId:i,scaleFactor:$,showSecretInfo:s&&(p.number===!1||p.cvv===!1),isCardDetailFetching:p.number===!0||p.cvv===!0||E||L,windowSize:N,children:`${Xe.cardDetails.cardNumberHideout}
54
- ${v?.accountLast4??Ke.strings.empty}`}),t.jsxs(en,{secretRevealed:u,scaleFactor:$,showSecretInfo:s&&p.cvv===!1&&p.number===!1,sourceId:i,isCardDetailErrored:k,children:[t.jsx(tn,{sourceId:i,scaleFactor:$,secretRevealed:u,id:`SecretCardNumber-${i}`}),t.jsx(sn,{secretRevealed:u,scaleFactor:$,id:`CardNumberCopyBtn-${i}`,sourceId:i}),Z===!0?t.jsx(_t,{top:$*Re.cardNumberCopiedSectionTop}):null]})]}),t.jsxs(hn,{children:[t.jsxs(mn,{children:[t.jsx(Zt,{style:b,windowSize:N,children:Xe.cardDetails.expiry}),t.jsxs(on,{secretRevealed:s&&(p.cvv===!1||p.number===!1),children:[u&&s&&p.cvv===!1&&p.number===!1?t.jsx(Cn,{sourceId:i,scaleFactor:$,windowSize:N,secretRevealed:u&&s,"data-testid":J("expiry-date-copy"),onClick:A=>{A.stopPropagation(),le(v)},children:u&&s&&p.cvv===!1&&p.number===!1?B:Xe.cardDetails.expiryHideOut}):t.jsx(gn,{sourceId:i,windowSize:N,scaleFactor:$,isCardDetailFetching:p.cvv===!0||p.number===!0||E||L,children:Xe.cardDetails.expiryHideOut}),re===!0?t.jsx(_t,{top:$*Re.expiryCopySectionTop,width:"auto"}):null]})]}),t.jsxs(pn,{style:H,children:[t.jsx(Zt,{style:b,windowSize:N,children:Xe.cardDetails.cvv}),t.jsx(un,{sourceId:i,scaleFactor:$,showSecretInfo:s&&p.cvv===!1&&p.number===!1,isCardDetailFetching:p.number===!0||p.cvv===!0||E||L,windowSize:N,children:Xe.cardDetails.cvvHideOut}),t.jsxs(an,{secretRevealed:u,sourceId:i,showSecretInfo:s&&p.cvv===!1&&p.number===!1,isCardDetailErrored:k,children:[t.jsx(rn,{scaleFactor:$,secretRevealed:u,sourceId:i,id:`SecretCvv-${i}`}),t.jsx(nn,{windowSize:N,scaleFactor:$,secretRevealed:u,id:`CvvCopyBtn-${i}`,sourceId:i}),ae===!0?t.jsx(_t,{top:$*Re.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},en=r.div`
53
+ `,{spendManagement:Ko,common:Ke,dateFormat:Qo}=ke.getLocalizedStrings(),Xe=Ko.chargeCard,Re={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(U.extraSmallRegular.fontSizeValue,U.smallRegular.fontSizeValue),CardInfoTitleLineHeight:new T(18,18,18,21)},_t=e=>t.jsxs(wn,{style:{...e},children:[t.jsx(fn,{}),t.jsx(xn,{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:S,chargeCardCashbackDetailState:n,creditAccount:C,creditAccountRepayment:w,isDebitCard:j,depositAccountLimitFetchState:y,isCardDetailErrored:k,isCardColorUpdating:L,cardDetailsFetchState:p,isCardColorUndefined:E,cardInfoTitleStyles:b,styles:O,cvvSecStyles:H,chargeCard:v,token:Y,setSecretRevealed:K,setIsCardDetailErrored:_,setCardDetailsFetchState:D,onFireOnClickAnalytics:oe})=>{const Q=Lt().analytics,[,ne]=wr(),N=Ie(),[G,W]=o.useState(!1),[ae,ee]=o.useState(!1),[re,se]=o.useState(!1),P=It(),de=At(P.loggedInUserRoleMap),[Z]=br("https://js.verygoodvault.com/vgs-show/2.0.0/show.js"),$=i==="addToWalletDrawer"?.75:N==="small"?.85:1,q=e?"sandbox":"live";o.useEffect(()=>{if(Z&&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:`${$*U.h6Regular.fontSizeValue}px`,fontWeight:U.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*U.h6Regular.lineHeightValue}px`}),ce.on("requestSuccess",()=>{K(!0),_(!1),D({...p,cvv:!1})}),ce.on("requestFail",()=>{_(!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"?(ee(!0),oe("CVV copied"),n.fetchState==="Completed"&&(!c||C.fetchState==="Completed"&&w.fetchState==="Completed")&&(!(j&&de)||y==="Completed")&&Q.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","CVV","",m,x,S)):ee(!1)}).render(`#CvvCopyBtn-${i}`,{cursor:"pointer",height:`${$*Re.secretCVVWrapperHeight}px`,width:`${$*Re.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:`${$*U.h6Regular.fontSizeValue}px`,fontWeight:U.h6Regular.fontWeight,borderRadius:a.sp1,cursor:"pointer",padding:`${a.sp0} ${a.sp1}`,lineHeight:`${$*U.h6Regular.lineHeightValue}px`}),ie.on("requestSuccess",()=>{K(!0),_(!1),D({...p,number:!1})}),ie.on("requestFail",()=>{_(!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")&&Q.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Card Number","",m,x,S)):W(!1)}).render(`#CardNumberCopyBtn-${i}`,{cursor:"pointer",height:`${$*U.h6Regular.lineHeightValue}px`,width:`${$*Re.secretCardNumberWrapperWidth}px`})}},[Z,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(()=>{G===!0&&setTimeout(()=>{W(!1)},800),ae===!0&&setTimeout(()=>{ee(!1)},800),re===!0&&setTimeout(()=>{se(!1)},800)},[G,ae,re]);const B=v!=null?vo(v.validThru.year,v.validThru.month-1).format(Qo.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")&&Q.trackCardsCopyIconClick(f,g,"Cards Detail","Copy","copied","Valid Thru",B,m,x,S),ne(B),se(!0))};return t.jsxs(dn,{style:O,children:[t.jsxs(cn,{children:[t.jsx(Gt,{style:b,windowSize:N,children:Xe.cardDetails.cardNumber}),t.jsx(ln,{sourceId:i,scaleFactor:$,showSecretInfo:s&&(p.number===!1||p.cvv===!1),isCardDetailFetching:p.number===!0||p.cvv===!0||E||L,windowSize:N,children:`${Xe.cardDetails.cardNumberHideout}
54
+ ${v?.accountLast4??Ke.strings.empty}`}),t.jsxs(en,{secretRevealed:u,scaleFactor:$,showSecretInfo:s&&p.cvv===!1&&p.number===!1,sourceId:i,isCardDetailErrored:k,children:[t.jsx(tn,{sourceId:i,scaleFactor:$,secretRevealed:u,id:`SecretCardNumber-${i}`}),t.jsx(sn,{secretRevealed:u,scaleFactor:$,id:`CardNumberCopyBtn-${i}`,sourceId:i}),G===!0?t.jsx(_t,{top:$*Re.cardNumberCopiedSectionTop}):null]})]}),t.jsxs(hn,{children:[t.jsxs(mn,{children:[t.jsx(Gt,{style:b,windowSize:N,children:Xe.cardDetails.expiry}),t.jsxs(on,{secretRevealed:s&&(p.cvv===!1||p.number===!1),children:[u&&s&&p.cvv===!1&&p.number===!1?t.jsx(Cn,{sourceId:i,scaleFactor:$,windowSize:N,secretRevealed:u&&s,"data-testid":J("expiry-date-copy"),onClick:A=>{A.stopPropagation(),le(v)},children:u&&s&&p.cvv===!1&&p.number===!1?B:Xe.cardDetails.expiryHideOut}):t.jsx(gn,{sourceId:i,windowSize:N,scaleFactor:$,isCardDetailFetching:p.cvv===!0||p.number===!0||E||L,children:Xe.cardDetails.expiryHideOut}),re===!0?t.jsx(_t,{top:$*Re.expiryCopySectionTop,width:"auto"}):null]})]}),t.jsxs(pn,{style:H,children:[t.jsx(Gt,{style:b,windowSize:N,children:Xe.cardDetails.cvv}),t.jsx(un,{sourceId:i,scaleFactor:$,showSecretInfo:s&&p.cvv===!1&&p.number===!1,isCardDetailFetching:p.number===!0||p.cvv===!0||E||L,windowSize:N,children:Xe.cardDetails.cvvHideOut}),t.jsxs(an,{secretRevealed:u,sourceId:i,showSecretInfo:s&&p.cvv===!1&&p.number===!1,isCardDetailErrored:k,children:[t.jsx(rn,{scaleFactor:$,secretRevealed:u,sourceId:i,id:`SecretCvv-${i}`}),t.jsx(nn,{windowSize:N,scaleFactor:$,secretRevealed:u,id:`CvvCopyBtn-${i}`,sourceId:i}),ae===!0?t.jsx(_t,{top:$*Re.cvvCopiedSectionTop,width:"auto"}):null]})]})]})]})},en=r.div`
55
55
  display: ${e=>e.showSecretInfo?"block":"none"};
56
56
  height: ${e=>e.secretRevealed?"unset":a.sp0};
57
57
  width: ${e=>e.secretRevealed?e.scaleFactor*Re.secretCardNumberWrapperWidth:l[0]}px;
@@ -112,7 +112,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
112
112
  `,cn=r.div`
113
113
  position: relative;
114
114
  width: max-content;
115
- `,Zt=r(ge)`
115
+ `,Gt=r(ge)`
116
116
  padding-left: ${a.sp1};
117
117
  color: ${d.brandColorPearl};
118
118
  position: relative;
@@ -188,7 +188,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
188
188
  color: ${d.primaryDark};
189
189
  padding: 2px ${a.sp2};
190
190
  background-color: ${d.blackColor};
191
- `,{common:Sn,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])},Hr=({isChargeCardAdmin:e,chargeCardDetailView:i,productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,isOwnCard:g,vgsVaultId:m,showSecretInfo:x,controllerEmails:S,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,chargeCardCashbackDetailState:y,creditAccount:k,creditAccountRepayment:L,isShowingInDrawer:p,isSandboxEnv:E,isCardDetailErrored:b,signedInUserToken:O,selectedColor:H,cardDetailsFetchState:v,setCardDetailsFetchState:Y,setIsCardDetailErrored:K,setShowSecretInfo:_,setSecretRevealed:D,setShowPhoneNumberForOtp:oe,isCardDetailFetching:Q,handleColorCodeClick:ne,onFireOnClickAnalytics:N,onUnlockChargeCard:Z})=>{const[W,ae]=o.useState(!1),[ee,re]=o.useState(!1),[se,P]=o.useState(!1),[de,G]=o.useState(!1),[$,q]=o.useState(!1),[B,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),Fe=i.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:X}=xr(),te=Ie(),M=p?.75:te==="small"?.85:1,Se=i.lockChargeCardsFetchState.fetchState,Ae=et(Se),me=i.unlockChargeCardsFetchState.fetchState,He=et(me),Ye=i.closeChargeCardsFetchState.fetchState,at=et(Ye),pe=i.chargeCard?.status.code==="locked",R=i.chargeCard?.status.code==="closed"||i.chargeCard?.status.code==="closed_by_customer",[he]=Wt("UnlockCard"),[F]=Wt("LockCard"),[qe]=Wt("CloseCard");o.useEffect(()=>{if(!(ee&&pe)){P(!1);return}const fe=setTimeout(()=>{P(!0)},400);return()=>clearTimeout(fe)},[ee,pe]),o.useEffect(()=>{(pe||R)&&!A&&(z(!0),ie(!1))},[pe,R]),o.useEffect(()=>{Ae==="In-Progress"&&Se==="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))},[Se,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=X?ve.tapCardCopyText:ve.scanNowAndAddToWallet,dt=X?ve.tapCardCopyText:t.jsxs(vn,{children:[t.jsx(Yn,{}),ve.clickTheCardToFetchDetailsText]}),ze=i.chargeCard?.isLockedByAdmin??!1,ft=te==="small"?ve.tapCardCopyText:ve.clickTheCardToCopyDetailsText,ct=te==="small"?ve.tapCardCopyText:ve.clickTheCardToFetchDetailsText,wt=p?Pe:ft,xt=p?dt:ct,Me=Q(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(An,{windowSize:te,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(Un,{}),t.jsx(_n,{}),t.jsx(Zn,{}),t.jsx(Gn,{})]}):null,t.jsx(En,{play:A,animate:ce,fadeOut:I,unlockInProgress:me==="In-Progress"||I||He==="In-Progress"&&me==="Completed"}),$&&he!=null?t.jsx(Ut,{style:{width:a.sp9,height:a.sp9,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,backgroundColor:d.lockCardOverlayBackground,borderRadius:a.sp11},animationData:he,loop:!1,play:$,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):B&&qe!=null?t.jsx(Ut,{style:{width:56,height:56,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:qe,loop:!1,play:B,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):A?R?t.jsx(Hn,{}):me==="In-Progress"?t.jsx(zn,{}):I||He==="In-Progress"&&me==="Completed"?null:t.jsx(On,{isHovered:ee&&pe,children:t.jsxs(Vn,{isHovered:ee&&pe,children:[t.jsx(Nr,{}),t.jsx(Mn,{isVisible:ee&&pe,shouldEnterLayout:se,children:ve.moreOptions.unlock})]})}):de&&F!=null?t.jsx(Ut,{style:{width:72,height:72,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:F,loop:!1,play:de,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,Fe.includes("virtual")?t.jsxs(Fn,{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&&Q(v)===!1&&me!=="In-Progress"&&pe===!1&&Fa({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:N,setShowSecretInfo:_})},enableClick:lt&&!pe&&!R||pe&&me!=="In-Progress",cardDetailsFetchState:Me||i.chargeCard?.cardColorCode===void 0,children:[t.jsx(Na,{scaleFactor:M,shouldAppear:Me||i.chargeCard?.cardColorCode===void 0}),t.jsx(Uo,{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(Wn,{scaleFactor:M}),t.jsx(Oa,{productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,setSecretRevealed:D,onFireOnClickAnalytics:N,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:v,setCardDetailsFetchState:Y,isCardDetailErrored:b,setIsCardDetailErrored:K,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,creditAccountRepayment:L,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:S,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:k,chargeCardCashbackDetailState:y,cardInfoTitleStyles:{...U.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:p?"addToWalletDrawer":"cardDetail"}),t.jsxs(Ba,{children:[t.jsxs(Nn,{children:[t.jsx(Wa,{scaleFactor:M}),t.jsx(Dn,{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(kn,{scaleFactor:M})]})]}):t.jsxs(qn,{scaleFactor:M,enableClick:lt&&!pe&&!R||pe&&me!=="In-Progress",isOwnCard:g,isShowingInDrawer:p,onClick:()=>{g===!0&&pe===!1&&me!=="In-Progress"&&Q(v)===!1&&Fa({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:N,setShowSecretInfo:_})},"data-testid":J("physical-charge-card-detail"),children:[t.jsx(Na,{scaleFactor:M,shouldAppear:Me}),t.jsxs(Xn,{flipCard:c,children:[t.jsx(Jn,{children:t.jsx($r,{scaleFactor:M,isClickable:lt,isLoading:Me,isDebitCard:Te})}),x?t.jsxs(Kn,{isDebitCard:Te,children:[t.jsx(Oa,{productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,setSecretRevealed:D,onFireOnClickAnalytics:N,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:v,setCardDetailsFetchState:Y,isCardDetailErrored:b,setIsCardDetailErrored:K,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:S,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:i.creditAccount,creditAccountRepayment:L,chargeCardCashbackDetailState:y,cardInfoTitleStyles:{...U.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:p?"addToWalletDrawer":"cardDetail"}),t.jsx(Ba,{children:t.jsx(Bn,{children:t.jsx(Wa,{scaleFactor:M})})})]}):null]})]})]}),R?t.jsx(bn,{children:ve.cardClosedMessage}):ze&&!e?t.jsx(yn,{children:ve.cardLockedByAdminMessage}):pe?t.jsx(Gt,{children:ve.cardLockedMessage}):g===!0&&!Me?v.cvv===!0&&v.number===!0?t.jsx(Pn,{children:Sn.loading}):b?t.jsx($n,{}):t.jsx(Gt,{children:c?wt:xt}):Me?t.jsx(Gt,{children:ve.loading}):null]})},bn=r(ge)`
191
+ `,{common:Sn,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])},Hr=({isChargeCardAdmin:e,chargeCardDetailView:i,productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,isOwnCard:g,vgsVaultId:m,showSecretInfo:x,controllerEmails:S,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,chargeCardCashbackDetailState:y,creditAccount:k,creditAccountRepayment:L,isShowingInDrawer:p,isSandboxEnv:E,isCardDetailErrored:b,signedInUserToken:O,selectedColor:H,cardDetailsFetchState:v,setCardDetailsFetchState:Y,setIsCardDetailErrored:K,setShowSecretInfo:_,setSecretRevealed:D,setShowPhoneNumberForOtp:oe,isCardDetailFetching:Q,handleColorCodeClick:ne,onFireOnClickAnalytics:N,onUnlockChargeCard:G})=>{const[W,ae]=o.useState(!1),[ee,re]=o.useState(!1),[se,P]=o.useState(!1),[de,Z]=o.useState(!1),[$,q]=o.useState(!1),[B,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),Fe=i.chargeCard?.type.code??"business_virtual_credit_card",{isMobileOrTabletScreen:X}=xr(),te=Ie(),M=p?.75:te==="small"?.85:1,Se=i.lockChargeCardsFetchState.fetchState,Ae=et(Se),me=i.unlockChargeCardsFetchState.fetchState,He=et(me),Ye=i.closeChargeCardsFetchState.fetchState,at=et(Ye),pe=i.chargeCard?.status.code==="locked",R=i.chargeCard?.status.code==="closed"||i.chargeCard?.status.code==="closed_by_customer",[he]=Wt("UnlockCard"),[F]=Wt("LockCard"),[qe]=Wt("CloseCard");o.useEffect(()=>{if(!(ee&&pe)){P(!1);return}const fe=setTimeout(()=>{P(!0)},400);return()=>clearTimeout(fe)},[ee,pe]),o.useEffect(()=>{(pe||R)&&!A&&(z(!0),ie(!1))},[pe,R]),o.useEffect(()=>{Ae==="In-Progress"&&Se==="Completed"&&(Ce.current&&clearTimeout(Ce.current),Z(!1),z(!1),ie(!0),setTimeout(()=>{Z(!0)},0),Ce.current=setTimeout(()=>{Z(!1),z(!0),re(!1)},1e3))},[Se,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=X?ve.tapCardCopyText:ve.scanNowAndAddToWallet,dt=X?ve.tapCardCopyText:t.jsxs(vn,{children:[t.jsx(Yn,{}),ve.clickTheCardToFetchDetailsText]}),ze=i.chargeCard?.isLockedByAdmin??!1,ft=te==="small"?ve.tapCardCopyText:ve.clickTheCardToCopyDetailsText,ct=te==="small"?ve.tapCardCopyText:ve.clickTheCardToFetchDetailsText,wt=p?Pe:ft,xt=p?dt:ct,Me=Q(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(An,{windowSize:te,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)&&G(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(Un,{}),t.jsx(_n,{}),t.jsx(Gn,{}),t.jsx(Zn,{})]}):null,t.jsx(En,{play:A,animate:ce,fadeOut:I,unlockInProgress:me==="In-Progress"||I||He==="In-Progress"&&me==="Completed"}),$&&he!=null?t.jsx(Ut,{style:{width:a.sp9,height:a.sp9,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,backgroundColor:d.lockCardOverlayBackground,borderRadius:a.sp11},animationData:he,loop:!1,play:$,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):B&&qe!=null?t.jsx(Ut,{style:{width:56,height:56,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:qe,loop:!1,play:B,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):A?R?t.jsx(Hn,{}):me==="In-Progress"?t.jsx(zn,{}):I||He==="In-Progress"&&me==="Completed"?null:t.jsx(On,{isHovered:ee&&pe,children:t.jsxs(Vn,{isHovered:ee&&pe,children:[t.jsx(Nr,{}),t.jsx(Mn,{isVisible:ee&&pe,shouldEnterLayout:se,children:ve.moreOptions.unlock})]})}):de&&F!=null?t.jsx(Ut,{style:{width:72,height:72,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},animationData:F,loop:!1,play:de,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null,Fe.includes("virtual")?t.jsxs(Fn,{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&&Q(v)===!1&&me!=="In-Progress"&&pe===!1&&Fa({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:N,setShowSecretInfo:_})},enableClick:lt&&!pe&&!R||pe&&me!=="In-Progress",cardDetailsFetchState:Me||i.chargeCard?.cardColorCode===void 0,children:[t.jsx(Na,{scaleFactor:M,shouldAppear:Me||i.chargeCard?.cardColorCode===void 0}),t.jsx(Uo,{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(Wn,{scaleFactor:M}),t.jsx(Oa,{productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,setSecretRevealed:D,onFireOnClickAnalytics:N,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:v,setCardDetailsFetchState:Y,isCardDetailErrored:b,setIsCardDetailErrored:K,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,creditAccountRepayment:L,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:S,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:k,chargeCardCashbackDetailState:y,cardInfoTitleStyles:{...U.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:p?"addToWalletDrawer":"cardDetail"}),t.jsxs(Ba,{children:[t.jsxs(Nn,{children:[t.jsx(Wa,{scaleFactor:M}),t.jsx(Dn,{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(kn,{scaleFactor:M})]})]}):t.jsxs(qn,{scaleFactor:M,enableClick:lt&&!pe&&!R||pe&&me!=="In-Progress",isOwnCard:g,isShowingInDrawer:p,onClick:()=>{g===!0&&pe===!1&&me!=="In-Progress"&&Q(v)===!1&&Fa({signedInUserToken:O,showSecretInfo:x,setShowPhoneNumberPopup:oe,onFireOnClickAnalytics:N,setShowSecretInfo:_})},"data-testid":J("physical-charge-card-detail"),children:[t.jsx(Na,{scaleFactor:M,shouldAppear:Me}),t.jsxs(Xn,{flipCard:c,children:[t.jsx(Jn,{children:t.jsx($r,{scaleFactor:M,isClickable:lt,isLoading:Me,isDebitCard:Te})}),x?t.jsxs(Kn,{isDebitCard:Te,children:[t.jsx(Oa,{productInformation:s,cashbackInformation:u,creditAccountInformation:h,debitAccountInformation:f,secretRevealed:c,setSecretRevealed:D,onFireOnClickAnalytics:N,isCardColorUndefined:i.chargeCard?.cardColorCode==null,isCardColorUpdating:i.updateFetchState.fetchState==="In-Progress",isSandboxEnv:E,cardDetailsFetchState:v,setCardDetailsFetchState:Y,isCardDetailErrored:b,setIsCardDetailErrored:K,chargeCard:i.chargeCard,vgsVaultId:m,showSecretInfo:x,token:O?.token,isDebitCard:Te,depositAccountLimitFetchState:i.depositAccountLimitFetchState.fetchState,controllerEmails:S,isChargeCardFeatureEnabled:n,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:j,creditAccount:i.creditAccount,creditAccountRepayment:L,chargeCardCashbackDetailState:y,cardInfoTitleStyles:{...U.extraSmallRegular.cssObject},styles:{gap:`${a.sp3}`,paddingLeft:`${a.sp4}`},cvvSecStyles:{minWidth:"39px",marginRight:`${a.sp3}`},sourceId:p?"addToWalletDrawer":"cardDetail"}),t.jsx(Ba,{children:t.jsx(Bn,{children:t.jsx(Wa,{scaleFactor:M})})})]}):null]})]})]}),R?t.jsx(bn,{children:ve.cardClosedMessage}):ze&&!e?t.jsx(yn,{children:ve.cardLockedByAdminMessage}):pe?t.jsx(Zt,{children:ve.cardLockedMessage}):g===!0&&!Me?v.cvv===!0&&v.number===!0?t.jsx(Pn,{children:Sn.loading}):b?t.jsx($n,{}):t.jsx(Zt,{children:c?wt:xt}):Me?t.jsx(Zt,{children:ve.loading}):null]})},bn=r(ge)`
192
192
  color: ${d.important};
193
193
  `,yn=r(ge)`
194
194
  color: ${e=>e.theme.colors.primary};
@@ -228,7 +228,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
228
228
  align-items: center;
229
229
  flex-direction: column;
230
230
  gap: ${e=>xe.cardContainerContentGap.valuePx(e.windowSize)};
231
- `,Gt=r(ge)`
231
+ `,Zt=r(ge)`
232
232
  color: ${e=>e.theme.colors.primary};
233
233
  `,Tn=Mr`
234
234
  0% {
@@ -418,13 +418,13 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
418
418
  position: absolute;
419
419
  left: -${a.sp3};
420
420
  top: -${a.sp3};
421
- `,Zn=r(Do)`
421
+ `,Gn=r(Do)`
422
422
  height: 36px;
423
423
  width: 36px;
424
424
  position: absolute;
425
425
  right: -${a.sp3};
426
426
  bottom: -${a.sp3};
427
- `,Gn=r(Ao)`
427
+ `,Zn=r(Ao)`
428
428
  height: 36px;
429
429
  width: 36px;
430
430
  position: absolute;
@@ -497,7 +497,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
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 Pa("largeRegular","largeMedium"),spentAmount:new Pa("h5Regular","h5Regular")},{common:_e,dateFormat:ut,spendManagement:Qn}=ke.getLocalizedStrings(),Ze=Qn.chargeCard,es=({chargeCardDetailView:e,spent:i,controllerEmails:s,chargeCardCashbackDetailState:u,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,creditAccount:m,creditAccountRepayment:x,productInformation:S,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,classListFetchState:p,cardOwnerName:E,secretRevealed:b,appleWalletLink:O,googleWalletLink:H,isCardNotPending:v,isOwnerNameCopied:Y,isAddressCopied:K,addressToShow:_,isOwnCard:D,vgsVaultId:oe,showSecretInfo:Q,isSandboxEnv:ne,isCardDetailErrored:N,signedInUserToken:Z,selectedColor:W,showUpdateSpendLimitAction:ae,setShowPhoneNumberPopup:ee,setShowChangeSpendLimitPopup:re,cardDetailsFetchState:se,setCardDetailsFetchState:P,setIsCardDetailErrored:de,setShowSecretInfo:G,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:B,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):$o().startOf("month").add(1,"month").format(ut.visual.MMMDFormat),Fe=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:X}=Fi(),te=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),M=It(),Se=At(M?.loggedInUserRoleMap);return t.jsxs(Cs,{windowSize:I,children:[t.jsxs(gs,{windowSize:I,children:[t.jsxs(fs,{windowSize:I,children:[t.jsx(os,{children:_e.texts.spent}),t.jsx(Ga,{children:t.jsx(ws,{windowSize:I,children:Ge("0,0.[00]",i)})}),t.jsx(js,{windowSize:I,children:t.jsx(Ls,{style:{width:`${Fe}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(Ga,{children:[t.jsxs(Is,{children:[t.jsxs(rs,{windowSize:I,children:[t.jsx(Ya,{windowSize:I,children:Ge("0,0.[00]",e.chargeCard.available)}),t.jsx(qa,{windowSize:I,children:_e.texts.remaining})]}),ae?t.jsxs(Ss,{windowSize:I,children:[t.jsx(bs,{children:Ze.updateSpendLimitPopup.unlockSpending}),t.jsx(ys,{onClick:()=>{as({chargeCardDetailView:e,classListFetchState:p,isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x,isDebitCard:ie,productInformation:S,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(xs,{windowSize:I,children:[t.jsxs(ns,{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($s,{children:[t.jsx(vs,{children:_e.texts.limitReset}),t.jsx(ks,{children:Ce})]}):null]})]}):null]}),t.jsx(ts,{chargeCardDetailView:e,classListFetchState:p,cardOwnerName:E,addressToShow:_,isAddressCopied:K,isOwnerNameCopied:Y,onOwnerNameCopyClick:A,onAddressCopyClick:z})]}),t.jsx(us,{windowSize:I,isOwnCard:D,children:I==="small"&&!D?null:t.jsxs(t.Fragment,{children:[t.jsx(ms,{windowSize:I,children:te?t.jsx($r,{}):t.jsx(Hr,{isChargeCardAdmin:Se,chargeCardDetailView:e,productInformation:S,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,creditAccount:e.creditAccount,setShowSecretInfo:G,secretRevealed:b,isOwnCard:D,isShowingInDrawer:!1,vgsVaultId:oe,showSecretInfo:Q,isSandboxEnv:ne,controllerEmails:s,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,chargeCardCashbackDetailState:u,isCardDetailErrored:N,signedInUserToken:Z,selectedColor:W,cardDetailsFetchState:se,setCardDetailsFetchState:P,setIsCardDetailErrored:de,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:B,onFireOnClickAnalytics:le,setShowPhoneNumberForOtp:ee,onUnlockChargeCard:ce,creditAccountRepayment:x})}),!D&&e.chargeCard?.status.code!=="closed"&&e.chargeCard?.status.code!=="closed_by_customer"&&e.chargeCard?.status.code!=="locked"?t.jsx(is,{children:Ze.cardDetails.adminsCannotAccess}):null,I==="small"&&D&&v&&ie===!1?X?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:Se,productInformation:S,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(Jt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:Se,productInformation:S,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]})})]})},ts=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:s,addressToShow:u,isOwnerNameCopied:h,isAddressCopied:f,onOwnerNameCopyClick:c,onAddressCopyClick:g})=>{const m=Ie(),x=tt(),[S,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 b=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(ss,{children:[t.jsxs(ds,{windowSize:m,children:[t.jsxs(cs,{shouldBounce:p,isActive:S==0,isAutoSlide:C,windowSize:m,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(Ua,{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(Xa,{children:h===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:j})}),h||j?t.jsx(Ja,{children:h?_e.copyToClipBoard.copied:_e.copyToClipBoard.copy}):null]})]}),t.jsx(_a,{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(Xa,{children:f===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:k})}),f||k?t.jsx(Ja,{children:f?_e.copyToClipBoard.copied:_e.copyToClipBoard.copy}):null]})]}),t.jsx(ps,{windowSize:m,children:t.jsx(eo,{address:u,isDisabled:"readonly",style:{padding:a.sp0,...U.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(ls,{isActive:S==1,isAutoSlide:C,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(Ua,{windowSize:m,children:[t.jsx(kt,{children:Ze.connectedAccount}),t.jsxs(hs,{children:[t.jsx(Ds,{children:t.jsx(As,{})}),t.jsx(Yt,{children:b})]})]}):null,t.jsxs(Za,{windowSize:m,children:[t.jsx(kt,{children:Ze.department}),t.jsx(_a,{children:t.jsx(Yt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(mt,{size:"Small",start:!0}):e.chargeCard?.department?.className??_e.strings.hyphen})})]})]})]}),t.jsx(ko,{numberOfDots:2,activeIndex:S,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})]})},as=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:s,creditAccount:u,creditAccountRepayment:h,isDebitCard:f,controllerEmails:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,cardIssuedByRoles:S,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:Ki(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:Ji(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:pt(Qi(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:S,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)}},rs=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:_e,dateFormat:ut,spendManagement:Qn}=ke.getLocalizedStrings(),Ge=Qn.chargeCard,es=({chargeCardDetailView:e,spent:i,controllerEmails:s,chargeCardCashbackDetailState:u,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,creditAccount:m,creditAccountRepayment:x,productInformation:S,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,cardIssuedByRoles:j,cardIssuedByDepartmentName:y,cardHolderRoles:k,cardHolderDepartmentName:L,classListFetchState:p,cardOwnerName:E,secretRevealed:b,appleWalletLink:O,googleWalletLink:H,isCardNotPending:v,isOwnerNameCopied:Y,isAddressCopied:K,addressToShow:_,isOwnCard:D,vgsVaultId:oe,showSecretInfo:Q,isSandboxEnv:ne,isCardDetailErrored:N,signedInUserToken:G,selectedColor:W,showUpdateSpendLimitAction:ae,setShowPhoneNumberPopup:ee,setShowChangeSpendLimitPopup:re,cardDetailsFetchState:se,setCardDetailsFetchState:P,setIsCardDetailErrored:de,setShowSecretInfo:Z,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:B,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):$o().startOf("month").add(1,"month").format(ut.visual.MMMDFormat),Fe=e.chargeCard!=null?Math.round(i.amount*100/e.chargeCard.limit.amount):0,{isIPhoneScreen:X}=Fi(),te=e.chargeCard?.type.code==="business_physical_credit_card"&&(e.chargeCard?.status.code==="inactive"||e.chargeCard?.status.code==="request_on_hold"),M=It(),Se=At(M?.loggedInUserRoleMap);return t.jsxs(Cs,{windowSize:I,children:[t.jsxs(gs,{windowSize:I,children:[t.jsxs(fs,{windowSize:I,children:[t.jsx(os,{children:_e.texts.spent}),t.jsx(Za,{children:t.jsx(ws,{windowSize:I,children:Ze("0,0.[00]",i)})}),t.jsx(js,{windowSize:I,children:t.jsx(Ls,{style:{width:`${Fe}%`,borderRadius:a.sp1}})}),e.chargeCard!=null?t.jsxs(Za,{children:[t.jsxs(Is,{children:[t.jsxs(rs,{windowSize:I,children:[t.jsx(Ya,{windowSize:I,children:Ze("0,0.[00]",e.chargeCard.available)}),t.jsx(qa,{windowSize:I,children:_e.texts.remaining})]}),ae?t.jsxs(Ss,{windowSize:I,children:[t.jsx(bs,{children:Ge.updateSpendLimitPopup.unlockSpending}),t.jsx(ys,{onClick:()=>{as({chargeCardDetailView:e,classListFetchState:p,isChargeCardFeatureEnabled:h,creditAccount:m,creditAccountRepayment:x,isDebitCard:ie,productInformation:S,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:Ge.updateSpendLimitPopup.updateSpendLimit})]}):null]}),t.jsxs(xs,{windowSize:I,children:[t.jsxs(ns,{children:[t.jsx(Ya,{windowSize:I,children:Ze("0,0.[00]",e.chargeCard.limit)}),t.jsx(qa,{windowSize:I,children:Ge.cardList.slashMonth})]}),e.chargeCard.status.code!=="request_on_hold"?t.jsxs($s,{children:[t.jsx(vs,{children:_e.texts.limitReset}),t.jsx(ks,{children:Ce})]}):null]})]}):null]}),t.jsx(ts,{chargeCardDetailView:e,classListFetchState:p,cardOwnerName:E,addressToShow:_,isAddressCopied:K,isOwnerNameCopied:Y,onOwnerNameCopyClick:A,onAddressCopyClick:z})]}),t.jsx(us,{windowSize:I,isOwnCard:D,children:I==="small"&&!D?null:t.jsxs(t.Fragment,{children:[t.jsx(ms,{windowSize:I,children:te?t.jsx($r,{}):t.jsx(Hr,{isChargeCardAdmin:Se,chargeCardDetailView:e,productInformation:S,cashbackInformation:n,creditAccountInformation:C,debitAccountInformation:w,creditAccount:e.creditAccount,setShowSecretInfo:Z,secretRevealed:b,isOwnCard:D,isShowingInDrawer:!1,vgsVaultId:oe,showSecretInfo:Q,isSandboxEnv:ne,controllerEmails:s,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:f,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:g,chargeCardCashbackDetailState:u,isCardDetailErrored:N,signedInUserToken:G,selectedColor:W,cardDetailsFetchState:se,setCardDetailsFetchState:P,setIsCardDetailErrored:de,setSecretRevealed:$,isCardDetailFetching:q,handleColorCodeClick:B,onFireOnClickAnalytics:le,setShowPhoneNumberForOtp:ee,onUnlockChargeCard:ce,creditAccountRepayment:x})}),!D&&e.chargeCard?.status.code!=="closed"&&e.chargeCard?.status.code!=="closed_by_customer"&&e.chargeCard?.status.code!=="locked"?t.jsx(is,{children:Ge.cardDetails.adminsCannotAccess}):null,I==="small"&&D&&v&&ie===!1?X?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:Se,productInformation:S,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(Jt,{onClick:()=>{ot({chargeCardDetailView:e,classListFetchState:p,analytics:je,isDebitCard:ie,isChargeCardAdmin:Se,productInformation:S,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]})})]})},ts=({chargeCardDetailView:e,classListFetchState:i,cardOwnerName:s,addressToShow:u,isOwnerNameCopied:h,isAddressCopied:f,onOwnerNameCopyClick:c,onAddressCopyClick:g})=>{const m=Ie(),x=tt(),[S,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 b=`${e.connectedAccount?.accountName} ${e.connectedAccount?.maskedAccountNumber}`;return t.jsxs(ss,{children:[t.jsxs(ds,{windowSize:m,children:[t.jsxs(cs,{shouldBounce:p,isActive:S==0,isAutoSlide:C,windowSize:m,children:[e.chargeCard?.cardHolderUser!=null?t.jsxs(Ua,{windowSize:m,onClick:c,"data-testid":J("owner-name-copy-click"),onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(kt,{children:[Ge.cardDetails.owner,t.jsxs(er,{children:[t.jsx(Xa,{children:h===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:j})}),h||j?t.jsx(Ja,{children:h?_e.copyToClipBoard.copied:_e.copyToClipBoard.copy}):null]})]}),t.jsx(_a,{children:t.jsx(Yt,{children:s})})]}):null,u!=null?t.jsxs(Ga,{windowSize:m,onClick:g,"data-testid":J("address-copy-click"),onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:[t.jsxs(kt,{children:[Ge.cardDetails.address,t.jsxs(er,{children:[t.jsx(Xa,{children:f===!0?t.jsx(Qa,{}):t.jsx(Ka,{isHover:k})}),f||k?t.jsx(Ja,{children:f?_e.copyToClipBoard.copied:_e.copyToClipBoard.copy}):null]})]}),t.jsx(ps,{windowSize:m,children:t.jsx(eo,{address:u,isDisabled:"readonly",style:{padding:a.sp0,...U.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(ls,{isActive:S==1,isAutoSlide:C,children:[e.chargeCard?.type.code.includes("debit")===!0?t.jsxs(Ua,{windowSize:m,children:[t.jsx(kt,{children:Ge.connectedAccount}),t.jsxs(hs,{children:[t.jsx(Ds,{children:t.jsx(As,{})}),t.jsx(Yt,{children:b})]})]}):null,t.jsxs(Ga,{windowSize:m,children:[t.jsx(kt,{children:Ge.department}),t.jsx(_a,{children:t.jsx(Yt,{children:i==="In-Progress"||i==="Not-Started"?t.jsx(mt,{size:"Small",start:!0}):e.chargeCard?.department?.className??_e.strings.hyphen})})]})]})]}),t.jsx(ko,{numberOfDots:2,activeIndex:S,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})]})},as=({chargeCardDetailView:e,classListFetchState:i,isChargeCardFeatureEnabled:s,creditAccount:u,creditAccountRepayment:h,isDebitCard:f,controllerEmails:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,cardIssuedByRoles:S,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:Ki(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:Ji(e.chargeCard.limit.amount,e.chargeCard.available.amount),cardUtilizationAmount:pt(Qi(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:S,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)}},rs=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)};
@@ -561,7 +561,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
561
561
  `,Yt=r(ge)`
562
562
  color: ${e=>e.theme.colors.primary};
563
563
  text-transform: capitalize;
564
- `,Za=r.div`
564
+ `,Ga=r.div`
565
565
  display: flex;
566
566
  flex-direction: column;
567
567
  align-items: "baseline";
@@ -606,7 +606,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
606
606
  flex-direction: column;
607
607
  width: 100%;
608
608
  margin-bottom: ${({windowSize:e})=>$e.cardBalanceSectionMarginBottom.valuePx(e)};
609
- `,Ga=r.div`
609
+ `,Za=r.div`
610
610
  display: flex;
611
611
  flex-direction: row;
612
612
  justify-content: space-between;
@@ -780,7 +780,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
780
780
  &:hover {
781
781
  color: ${e=>e.hideSorting?e.theme.colors.hero:e.theme.colors.primary};
782
782
  }
783
- `;function Wr(e,i,s){return Zs(e,i,s)}async function Zs(e,i,s,u){const h=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,f=ke.getLocalizedStrings().downloadReport;try{const c=await xo(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();bo(m,g)}else console.error(`${f.reportErrorMessage} ${c.statusText}`)}catch(c){console.error(`${f.reportErrorMessage} ${JSON.stringify(c)}`)}}async function Ur(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 Gs=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"})),Zr=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M16.7656 6.60254H8.51562C8.10142 6.60254 7.76562 6.91434 7.76562 7.29897V20.357C7.76562 20.7416 8.10142 21.0534 8.51562 21.0534H16.7656C17.1798 21.0534 17.5156 20.7416 17.5156 20.357V7.29897C17.5156 6.91434 17.1798 6.60254 16.7656 6.60254Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M12.6875 9.5C13.1017 9.5 13.4375 9.83676 13.4375 10.251V10.416C13.7384 10.4808 13.9968 10.5753 14.2031 10.6699C14.3853 10.7536 14.5315 10.8389 14.6348 10.9053C14.6862 10.9383 14.7281 10.967 14.7588 10.9893L14.8096 11.0283C14.8112 11.0296 14.8131 11.0311 14.8145 11.0322L14.8174 11.0332L14.8184 11.0342V11.0352C15.1412 11.2946 15.1931 11.767 14.9336 12.0898C14.6742 12.4122 14.2026 12.4632 13.8799 12.2041L13.8789 12.2051L13.8779 12.2041C13.8683 12.1971 13.8493 12.1838 13.8232 12.167C13.7703 12.133 13.6869 12.0832 13.5781 12.0332C13.3579 11.9321 13.0482 11.834 12.6826 11.834C12.4165 11.8341 12.1531 11.9229 11.9727 12.0518C11.7904 12.182 11.7656 12.2912 11.7656 12.334C11.7656 12.4332 11.7869 12.4702 11.7939 12.4814C11.8035 12.4966 11.8301 12.5304 11.9082 12.5752C12.0988 12.6841 12.389 12.754 12.8398 12.8506C13.222 12.9325 13.766 13.042 14.2002 13.29C14.4338 13.4235 14.6681 13.613 14.8408 13.8877C15.0164 14.1672 15.0986 14.4883 15.0986 14.834C15.0986 15.5055 14.7062 16.0208 14.2637 16.3369C14.0193 16.5114 13.7364 16.6423 13.4375 16.7266V16.917C13.4375 17.3312 13.1017 17.667 12.6875 17.667C12.2735 17.6668 11.9375 17.3311 11.9375 16.917V16.7539C11.6322 16.689 11.3697 16.5938 11.1611 16.498C10.9789 16.4144 10.8327 16.329 10.7295 16.2627C10.678 16.2296 10.6361 16.201 10.6055 16.1787L10.5547 16.1396C10.553 16.1383 10.5512 16.1368 10.5498 16.1357L10.5479 16.1348L10.5459 16.1328C10.2233 15.8734 10.1715 15.4009 10.4307 15.0781C10.6898 14.7557 11.1615 14.7046 11.4844 14.9629L11.4814 14.96C11.4826 14.9608 11.4843 14.9624 11.4863 14.9639C11.4959 14.9708 11.5148 14.9841 11.541 15.001C11.594 15.035 11.678 15.0846 11.7871 15.1348C12.0073 15.2359 12.317 15.3339 12.6826 15.334C12.9487 15.3339 13.2121 15.245 13.3926 15.1162C13.5747 14.986 13.5986 14.8768 13.5986 14.834C13.5986 14.7337 13.5771 14.6974 13.5703 14.6865C13.5607 14.6712 13.5343 14.6375 13.4561 14.5928C13.2655 14.484 12.976 14.414 12.5254 14.3174C12.1431 14.2355 11.5983 14.1261 11.1641 13.8779C10.9306 13.7444 10.696 13.5549 10.5234 13.2803C10.3479 13.0008 10.2656 12.6796 10.2656 12.334C10.2656 11.6627 10.6582 11.1472 11.1006 10.8311C11.3477 10.6545 11.6347 10.5226 11.9375 10.4385V10.251C11.9375 9.8369 12.2735 9.50022 12.6875 9.5Z",fill:"currentColor"}),o.createElement("path",{d:"M3.27344 2.94629H20.3534C20.5381 2.94629 20.7152 3.01966 20.8459 3.15027C20.9764 3.28087 21.0498 3.45801 21.0498 3.64272V7.82129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M3.24994 5.81982C3.6641 5.81989 3.99994 6.15565 3.99994 6.56982V19.0337L4.72748 18.3062C5.02038 18.0133 5.49514 18.0133 5.78803 18.3062C6.08091 18.599 6.08091 19.0738 5.78803 19.3667L3.7851 21.3696C3.49221 21.6625 3.01745 21.6625 2.72455 21.3696C2.71669 21.3618 2.70953 21.3533 2.70209 21.3452C2.68584 21.3315 2.66955 21.3175 2.65424 21.3022L0.711857 19.3599C0.418964 19.067 0.418964 18.5912 0.711857 18.2983C1.00469 18.0058 1.47957 18.0058 1.7724 18.2983L2.49994 19.0259V6.56982C2.49994 6.15561 2.83573 5.81982 3.24994 5.81982Z",fill:"currentColor"})),{dateFormat:Ys,spendManagement:{chargeCard:{cardDetails:ir}},common:{strings:{hyphen:qs},tooltips:{addMissingReceipt:Xs,addReceipt:Js,viewReceipt:Ks}}}=ke.getLocalizedStrings(),Ue={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)},Qs=(e,i)=>e.attachments!=null&&e.attachments.length>0?Ks:e.amount.amount<=i.amount?Js:Xs,Gr=(e,i,s,u)=>e.attachments!=null&&e.attachments.length>0?t.jsx(Sd,{onClick:h=>{h.stopPropagation(),u()},"data-testid":J("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx($d,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(yd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-upload-receipt",e.id)}),ed=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,uploadReceiptsFetchState:g,uploadReceiptsShowTick:m,isViewReceiptClickedImmediatelyAfterUpload:x,authParams:S,transaction:n,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const b=Ie(),[O,H]=o.useState(!1),[v,Y]=o.useState([]),[K,_]=o.useState(null);o.useEffect(()=>{!s&&x&&(Q(D[0]),ee())},[s,x]);const D=n.attachments?.filter(X=>X.contentType!=null&&Tr.includes(X.contentType))??[],[oe,Q]=o.useState(D[0]),[ne,N]=o.useState([]),[Z,W]=o.useState(void 0);o.useEffect(()=>{async function X(te){ne.includes(te.attachment_id)?console.warn(`Attachment with ID ${te.attachment_id} is already getting downloaded`):(N([te.attachment_id,...ne]),await Wr(f,S,te),N(Pr(ne,M=>M==te.attachment_id)))}Z!=null&&(X({card_id:c,transaction_id:n.id,attachment_id:Z}),W(void 0))},[Z]);const ae=()=>{L(n.id,c,!1),H(!1),_(null),Y([]),D.length>0&&Q(D[0])},ee=()=>{H(!0);const X=D.map(M=>M.id);async function te(M){return await Ur(h,S,M)}te({card_id:c,transaction_id:n.id,attachment_ids:X}).then(M=>{Y(M),M.length>0&&_(M[0])})},{merchant:re,createTime:se,transactionType:P,thirdPartyTransactionId:de}=n,G=()=>{s?(p(),L(n.id,c,!0)):(Q(D[0]),ee())},$=o.useRef(null);async function q(X,te){y(n.id,c,"In-Progress"),await Vr(`${e}/1.0/cards/transactions/${n.id}/attachments`,S,X,te).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 B=()=>{$.current?.click()},le=X=>{if(X.target.files!=null){const te=X.target.files,M=[],Se=[];for(let Ae=0;Ae<te.length;Ae++)M.push(te[Ae].name),Se.push(te[Ae]);q?.(Se,M)}},A=Br(),z=Rr(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",Fe=I&&n.direction==="credit";return t.jsxs(od,{windowSize:b,isClickable:je,"data-testid":J("card-transaction-row",n.id),onClick:X=>{X.stopPropagation(),je&&E(P.code,de)},children:[t.jsx(nd,{children:t.jsxs(sd,{children:[t.jsxs(dd,{windowSize:b,responsiveWidth:A[0].width,children:[Ce?t.jsx(ud,{}):Fe?t.jsx(md,{}):t.jsx(gd,{src:re.logo?.url?.toString()}),t.jsx(cd,{windowSize:b,hasMarginRight:z.code==="paid",children:ce}),z.code!=="paid"?t.jsxs(ad,{children:[t.jsx(id,{windowSize:b}),t.jsx(rd,{color:z.color,windowSize:b,children:z.value})]}):null]}),t.jsx(pd,{windowSize:b,responsiveWidth:A[1].width,children:t.jsx(Cd,{children:se.format(Ys.visual.MMMDCommaYYYYformat)})}),t.jsx(wd,{windowSize:b,responsiveWidth:A[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?qs:g?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx(bd,{}):t.jsxs(Qt,{enterDelay:600,display:"flex",placement:"bottom",title:Qs(n,C),children:[t.jsx(td,{"data-testid":J("card-transaction-row-upload-receipt",n.id),onClick:X=>{X.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:$,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:le,multiple:!0,onFileSizeError:(X,te)=>{X&&j(!1,{code:500,message:te===!0?ir.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):ir.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,C,B,G)]})}),t.jsx(fd,{windowSize:b,responsiveWidth:A[3].width,children:t.jsx(xd,{title:P.name,children:P.name})}),t.jsx(ld,{windowSize:b,responsiveWidth:A[4].width,children:t.jsx(hd,{windowSize:b,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:K,file:oe,title:oe.fileName,attachments:D,setFileSource:_,setShowFullScreenView:H,onCrossClick:ae,setSelectedFileAttachment:Q,onDownloadClick:X=>{W(X.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},td=r.div``,ad=r.div`
783
+ `;function Wr(e,i,s){return Gs(e,i,s)}async function Gs(e,i,s,u){const h=`${e}?query=${encodeURIComponent(JSON.stringify(s))}`,f=ke.getLocalizedStrings().downloadReport;try{const c=await xo(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();bo(m,g)}else console.error(`${f.reportErrorMessage} ${c.statusText}`)}catch(c){console.error(`${f.reportErrorMessage} ${JSON.stringify(c)}`)}}async function Ur(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 Zs=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"})),Gr=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:Ys,spendManagement:{chargeCard:{cardDetails:ir}},common:{strings:{hyphen:qs},tooltips:{addMissingReceipt:Xs,addReceipt:Js,viewReceipt:Ks}}}=ke.getLocalizedStrings(),Ue={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)},Qs=(e,i)=>e.attachments!=null&&e.attachments.length>0?Ks:e.amount.amount<=i.amount?Js:Xs,Zr=(e,i,s,u)=>e.attachments!=null&&e.attachments.length>0?t.jsx(Sd,{onClick:h=>{h.stopPropagation(),u()},"data-testid":J("card-transaction-row-view-receipt",e.id)}):e.amount.amount<=i.amount?t.jsx($d,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-optional-upload-receipt",e.id)}):t.jsx(yd,{onClick:h=>{h.stopPropagation(),s()},"data-testid":J("card-transaction-row-upload-receipt",e.id)}),ed=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,uploadReceiptsFetchState:g,uploadReceiptsShowTick:m,isViewReceiptClickedImmediatelyAfterUpload:x,authParams:S,transaction:n,receiptRequiredAboveAmount:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const b=Ie(),[O,H]=o.useState(!1),[v,Y]=o.useState([]),[K,_]=o.useState(null);o.useEffect(()=>{!s&&x&&(Q(D[0]),ee())},[s,x]);const D=n.attachments?.filter(X=>X.contentType!=null&&Tr.includes(X.contentType))??[],[oe,Q]=o.useState(D[0]),[ne,N]=o.useState([]),[G,W]=o.useState(void 0);o.useEffect(()=>{async function X(te){ne.includes(te.attachment_id)?console.warn(`Attachment with ID ${te.attachment_id} is already getting downloaded`):(N([te.attachment_id,...ne]),await Wr(f,S,te),N(Pr(ne,M=>M==te.attachment_id)))}G!=null&&(X({card_id:c,transaction_id:n.id,attachment_id:G}),W(void 0))},[G]);const ae=()=>{L(n.id,c,!1),H(!1),_(null),Y([]),D.length>0&&Q(D[0])},ee=()=>{H(!0);const X=D.map(M=>M.id);async function te(M){return await Ur(h,S,M)}te({card_id:c,transaction_id:n.id,attachment_ids:X}).then(M=>{Y(M),M.length>0&&_(M[0])})},{merchant:re,createTime:se,transactionType:P,thirdPartyTransactionId:de}=n,Z=()=>{s?(p(),L(n.id,c,!0)):(Q(D[0]),ee())},$=o.useRef(null);async function q(X,te){y(n.id,c,"In-Progress"),await Vr(`${e}/1.0/cards/transactions/${n.id}/attachments`,S,X,te).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 B=()=>{$.current?.click()},le=X=>{if(X.target.files!=null){const te=X.target.files,M=[],Se=[];for(let Ae=0;Ae<te.length;Ae++)M.push(te[Ae].name),Se.push(te[Ae]);q?.(Se,M)}},A=Br(),z=Rr(n.transactionStatus),ce=u?re.brandName??re.name:re.name,ie=Ze("0,0.00",n.amount),I=P.code==="transfer",je=de!=null&&u,Ce=I&&n.direction==="debit",Fe=I&&n.direction==="credit";return t.jsxs(od,{windowSize:b,isClickable:je,"data-testid":J("card-transaction-row",n.id),onClick:X=>{X.stopPropagation(),je&&E(P.code,de)},children:[t.jsx(nd,{children:t.jsxs(sd,{children:[t.jsxs(dd,{windowSize:b,responsiveWidth:A[0].width,children:[Ce?t.jsx(ud,{}):Fe?t.jsx(md,{}):t.jsx(gd,{src:re.logo?.url?.toString()}),t.jsx(cd,{windowSize:b,hasMarginRight:z.code==="paid",children:ce}),z.code!=="paid"?t.jsxs(ad,{children:[t.jsx(id,{windowSize:b}),t.jsx(rd,{color:z.color,windowSize:b,children:z.value})]}):null]}),t.jsx(pd,{windowSize:b,responsiveWidth:A[1].width,children:t.jsx(Cd,{children:se.format(Ys.visual.MMMDCommaYYYYformat)})}),t.jsx(wd,{windowSize:b,responsiveWidth:A[2].width,children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?qs:g?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx(bd,{}):t.jsxs(Qt,{enterDelay:600,display:"flex",placement:"bottom",title:Qs(n,C),children:[t.jsx(td,{"data-testid":J("card-transaction-row-upload-receipt",n.id),onClick:X=>{X.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:$,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:le,multiple:!0,onFileSizeError:(X,te)=>{X&&j(!1,{code:500,message:te===!0?ir.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):ir.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Zr(n,C,B,Z)]})}),t.jsx(fd,{windowSize:b,responsiveWidth:A[3].width,children:t.jsx(xd,{title:P.name,children:P.name})}),t.jsx(ld,{windowSize:b,responsiveWidth:A[4].width,children:t.jsx(hd,{windowSize:b,title:Ze("0,0.[00]",n.amount),children:n.direction==="debit"?ie:`-${ie}`})})]})}),O&&D.length>0?zr.createPortal(t.jsx(Fr,{allFiles:v,fileSource:K,file:oe,title:oe.fileName,attachments:D,setFileSource:_,setShowFullScreenView:H,onCrossClick:ae,setSelectedFileAttachment:Q,onDownloadClick:X=>{W(X.id)},handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},td=r.div``,ad=r.div`
784
784
  display: flex;
785
785
  flex-direction: row;
786
786
  align-items: center;
@@ -867,7 +867,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
867
867
  width: ${a.sp4};
868
868
  height: ${a.sp4};
869
869
  color: ${e.colors.hero};
870
- `,ud=r(Zr)`
870
+ `,ud=r(Gr)`
871
871
  ${({theme:e})=>Yr(e)}
872
872
  `,md=r(_r)`
873
873
  ${({theme:e})=>Yr(e)}
@@ -922,7 +922,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
922
922
  &:hover {
923
923
  color: ${e=>e.theme.colors.primary};
924
924
  }
925
- `,$d=r(Gs)`
925
+ `,$d=r(Zs)`
926
926
  height: ${a.sp4};
927
927
  width: ${a.sp4};
928
928
  cursor: pointer;
@@ -930,11 +930,11 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
930
930
  &:hover {
931
931
  color: ${e=>e.theme.colors.primary};
932
932
  }
933
- `,{dateFormat:vd,spendManagement:{chargeCard:{cardDetails:qt}},common:{strings:{hyphen:kd}}}=ke.getLocalizedStrings(),jd={webkitLineClamp:new T(2,1,1,1,1)},Id=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,isViewReceiptClickedImmediatelyAfterUpload:g,uploadReceiptsShowTick:m,uploadReceiptsFetchState:x,authParams:S,transaction:n,receiptRequiredAboveAmount:C,onUploadReceiptComplete:w,updateChargeCardTransactionAttachments:j,updateChargeCardTransactionReceiptsShowTick:y,updateChargeCardTransactionIsViewReceiptClicked:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const b=Ie(),[O,H]=o.useState(0),[v,Y]=o.useState(0),[K,_]=o.useState(0),D=R=>{_(R),W(!0),G(P[R]),se(ae[R])};function oe(R){H(R.targetTouches[0].clientX)}function Q(R){Y(R.targetTouches[0].clientX)}function ne(R){return R<0?P.length+R:R%P.length}function N(){O-v>50&&v!==0&&K<P.length-1?(D(ne(K+1)),H(0),Y(0)):O-v<-50&&v!==0&&K>0&&(D(ne(K-1)),H(0),Y(0))}const[Z,W]=o.useState(!1),[ae,ee]=o.useState([]),[re,se]=o.useState(null);o.useEffect(()=>{!s&&g&&(G(P[0]),z())},[s,g]);const P=n.attachments?.filter(R=>R.contentType!=null&&Tr.includes(R.contentType))??[],[de,G]=o.useState(P[0]),[$,q]=o.useState([]),[B,le]=o.useState(void 0);o.useEffect(()=>{async function R(he){$.includes(he.attachment_id)?console.warn(`Attachment with ID ${he.attachment_id} is already getting downloaded`):(q([he.attachment_id,...$]),await Wr(f,S,he),q(Pr($,F=>F==he.attachment_id)))}B!=null&&(R({card_id:c,transaction_id:n.id,attachment_id:B}),le(void 0))},[B]);const A=()=>{k(n.id,c,!1),W(!1),se(null),ee([]),P.length>0&&G(P[0])},z=()=>{W(!0);const R=P.map(F=>F.id);async function he(F){return await Ur(h,S,F)}he({card_id:c,transaction_id:n.id,attachment_ids:R}).then(F=>{ee(F),F.length>0&&se(F[0])})},{merchant:ce,createTime:ie,transactionType:I,thirdPartyTransactionId:je}=n,Ce=()=>{s?(p(),k(n.id,c,!0)):(G(P[0]),z())},Fe=o.useRef(null);async function X(R,he){L(n.id,c,"In-Progress"),await Vr(`${e}/1.0/cards/transactions/${n.id}/attachments`,S,R,he).then(F=>{F!=null&&j(n.id,F),L(n.id,c,"Completed"),w(!0),y(n.id,c,!0),setTimeout(()=>y(n.id,c,!1),2e3)}).catch(F=>{L(n.id,c,"Error"),w(!1,F)})}const te=()=>{Fe.current?.click()},M=R=>{if(R.target.files!=null){const he=R.target.files,F=[],qe=[];for(let Pe=0;Pe<he.length;Pe++)F.push(he[Pe].name),qe.push(he[Pe]);X?.(qe,F)}},Se=Rr(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(Vd,{windowSize:b,"data-testid":J("card-transaction-row-small",n.id),onClick:R=>{R.stopPropagation(),Ye&&E(I.code,je)},children:[t.jsx(Od,{children:t.jsxs(Hd,{children:[t.jsxs(Wd,{children:[t.jsx(Pd,{children:at?t.jsx(Ld,{}):pe?t.jsx(Dd,{}):t.jsx(_d,{src:ce.logo?.url?.toString()})}),t.jsxs(Zd,{children:[t.jsxs(Ad,{children:[t.jsx(Nd,{windowSize:b,children:Ae}),Se.code!=="paid"?t.jsxs(Td,{children:[t.jsx(Ed,{windowSize:b}),t.jsx(Rd,{color:Se.color,windowSize:b,children:Se.value})]}):null]}),t.jsx(Bd,{children:`${qt.paymentDate} ${ie.format(vd.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(Ud,{children:[t.jsx(Gd,{children:n.direction==="debit"?me:`-${me}`}),t.jsx(Md,{title:I.name,children:I.name}),t.jsx(zd,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?kd:x?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx(Fd,{}):t.jsxs(or,{children:[t.jsx(or,{"data-testid":J("card-transaction-row-small-upload-receipt",n.id),onClick:R=>{R.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:Fe,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:M,multiple:!0,onFileSizeError:(R,he)=>{R&&w(!1,{code:500,message:he===!0?qt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):qt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Gr(n,C,te,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:R=>{le(R.id)},handleTouchStart:oe,handleTouchMove:Q,handleTouchEnd:N}),document.body):null]})},qr=e=>we`
933
+ `,{dateFormat:vd,spendManagement:{chargeCard:{cardDetails:qt}},common:{strings:{hyphen:kd}}}=ke.getLocalizedStrings(),jd={webkitLineClamp:new T(2,1,1,1,1)},Id=({cardsEndPoint:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:h,transactionAttachmentEndpointToDownload:f,cardId:c,isViewReceiptClickedImmediatelyAfterUpload:g,uploadReceiptsShowTick:m,uploadReceiptsFetchState:x,authParams:S,transaction:n,receiptRequiredAboveAmount:C,onUploadReceiptComplete:w,updateChargeCardTransactionAttachments:j,updateChargeCardTransactionReceiptsShowTick:y,updateChargeCardTransactionIsViewReceiptClicked:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,removeSnackbar:p,onChargeCardTransactionRowClick:E})=>{const b=Ie(),[O,H]=o.useState(0),[v,Y]=o.useState(0),[K,_]=o.useState(0),D=R=>{_(R),W(!0),Z(P[R]),se(ae[R])};function oe(R){H(R.targetTouches[0].clientX)}function Q(R){Y(R.targetTouches[0].clientX)}function ne(R){return R<0?P.length+R:R%P.length}function N(){O-v>50&&v!==0&&K<P.length-1?(D(ne(K+1)),H(0),Y(0)):O-v<-50&&v!==0&&K>0&&(D(ne(K-1)),H(0),Y(0))}const[G,W]=o.useState(!1),[ae,ee]=o.useState([]),[re,se]=o.useState(null);o.useEffect(()=>{!s&&g&&(Z(P[0]),z())},[s,g]);const P=n.attachments?.filter(R=>R.contentType!=null&&Tr.includes(R.contentType))??[],[de,Z]=o.useState(P[0]),[$,q]=o.useState([]),[B,le]=o.useState(void 0);o.useEffect(()=>{async function R(he){$.includes(he.attachment_id)?console.warn(`Attachment with ID ${he.attachment_id} is already getting downloaded`):(q([he.attachment_id,...$]),await Wr(f,S,he),q(Pr($,F=>F==he.attachment_id)))}B!=null&&(R({card_id:c,transaction_id:n.id,attachment_id:B}),le(void 0))},[B]);const A=()=>{k(n.id,c,!1),W(!1),se(null),ee([]),P.length>0&&Z(P[0])},z=()=>{W(!0);const R=P.map(F=>F.id);async function he(F){return await Ur(h,S,F)}he({card_id:c,transaction_id:n.id,attachment_ids:R}).then(F=>{ee(F),F.length>0&&se(F[0])})},{merchant:ce,createTime:ie,transactionType:I,thirdPartyTransactionId:je}=n,Ce=()=>{s?(p(),k(n.id,c,!0)):(Z(P[0]),z())},Fe=o.useRef(null);async function X(R,he){L(n.id,c,"In-Progress"),await Vr(`${e}/1.0/cards/transactions/${n.id}/attachments`,S,R,he).then(F=>{F!=null&&j(n.id,F),L(n.id,c,"Completed"),w(!0),y(n.id,c,!0),setTimeout(()=>y(n.id,c,!1),2e3)}).catch(F=>{L(n.id,c,"Error"),w(!1,F)})}const te=()=>{Fe.current?.click()},M=R=>{if(R.target.files!=null){const he=R.target.files,F=[],qe=[];for(let Pe=0;Pe<he.length;Pe++)F.push(he[Pe].name),qe.push(he[Pe]);X?.(qe,F)}},Se=Rr(n.transactionStatus),Ae=u?ce.brandName??ce.name:ce.name,me=Ze("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(Vd,{windowSize:b,"data-testid":J("card-transaction-row-small",n.id),onClick:R=>{R.stopPropagation(),Ye&&E(I.code,je)},children:[t.jsx(Od,{children:t.jsxs(Hd,{children:[t.jsxs(Wd,{children:[t.jsx(Pd,{children:at?t.jsx(Ld,{}):pe?t.jsx(Dd,{}):t.jsx(_d,{src:ce.logo?.url?.toString()})}),t.jsxs(Gd,{children:[t.jsxs(Ad,{children:[t.jsx(Nd,{windowSize:b,children:Ae}),Se.code!=="paid"?t.jsxs(Td,{children:[t.jsx(Ed,{windowSize:b}),t.jsx(Rd,{color:Se.color,windowSize:b,children:Se.value})]}):null]}),t.jsx(Bd,{children:`${qt.paymentDate} ${ie.format(vd.visual.MMMDCommaYYYYformat)}`})]})]}),t.jsxs(Ud,{children:[t.jsx(Zd,{children:n.direction==="debit"?me:`-${me}`}),t.jsx(Md,{title:I.name,children:I.name}),t.jsx(zd,{children:n.transactionStatus.code==="declined"||n.transactionStatus.code==="canceled"?kd:x?.fetchState==="In-Progress"?t.jsx(mt,{size:"Small",start:!0}):m?t.jsx(Fd,{}):t.jsxs(or,{children:[t.jsx(or,{"data-testid":J("card-transaction-row-small-upload-receipt",n.id),onClick:R=>{R.stopPropagation()},children:t.jsx(Er,{name:"transactionLineAttachment",fileRef:Fe,sizeLimit:i,isSizeLimitForEachFile:!0,onFileChange:M,multiple:!0,onFileSizeError:(R,he)=>{R&&w(!1,{code:500,message:he===!0?qt.singleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0)):qt.multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",jt(i,0))})}})}),Zr(n,C,te,Ce)]})})]})]})}),G&&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:Z,onDownloadClick:R=>{le(R.id)},handleTouchStart:oe,handleTouchMove:Q,handleTouchEnd:N}),document.body):null]})},qr=e=>we`
934
934
  width: ${a.sp4};
935
935
  height: ${a.sp4};
936
936
  color: ${e.colors.hero};
937
- `,Ld=r(Zr)`
937
+ `,Ld=r(Gr)`
938
938
  ${({theme:e})=>qr(e)}
939
939
  `,Dd=r(_r)`
940
940
  ${({theme:e})=>qr(e)}
@@ -1020,11 +1020,11 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
1020
1020
  display: flex;
1021
1021
  width: ${a.sp4};
1022
1022
  height: ${a.sp4};
1023
- `,Zd=r.div`
1023
+ `,Gd=r.div`
1024
1024
  margin-bottom: 6px;
1025
- `,Gd=r(Oe)`
1025
+ `,Zd=r(Oe)`
1026
1026
  color: inherit;
1027
- `,Yd=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"})))),qd=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:Xd}=ke.getLocalizedStrings();function Jd({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,receiptRequiredAboveAmount:g,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:S,cardsEndPoint:n,authParams:C,hideSorting:w,isOwnCard:j,uiState:y,fetchState:k,cardHolderUser:L,cardStatusCode:p="active",cardCodeType:E="business_virtual_credit_card",onReloadTransactions:b,onFetchChargeCardTransactionList:O,onColumnSortConfigChanged:H,removeSnackbar:v,onChargeCardTransactionRowClick:Y,onUploadReceiptComplete:K,onUpdateScrollYOffset:_,updateChargeCardTransactionAttachments:D,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:Q,updateChargeCardTransactionIsViewReceiptClicked:ne}){const N=Ie(),Z=o.useRef(null),[W,ae]=o.useState(!1);o.useEffect(()=>{Z.current?.resetAfterIndex(0)},[N,Z]),o.useEffect(()=>{k==="Completed"&&ae(!1)},[k]);const ee=()=>N!=="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(oc,{isOwnCard:j,windowSize:N,isEmptyTransaction:e.length===0,children:[t.jsx(nc,{windowSize:N,children:k==="Error"?t.jsxs(cc,{children:[t.jsx(lc,{onClick:b,"data-testid":J("card-transaction-list-reload"),children:t.jsx(yr,{})}),t.jsx(hc,{children:Xd.reloadPage.label})]}):k==="Not-Started"||k==="In-Progress"&&e.length===0?t.jsx(uc,{children:t.jsx(mt,{size:"ExtraLarge",start:!0})}):k==="Completed"||k==="In-Progress"&&e.length>0?p==="request_on_hold"?t.jsx(Qd,{cardType:E,cardHolderUser:L}):p==="inactive"?t.jsx(ec,{cardHolderUser:L}):e.length===0?t.jsx(Kd,{}):t.jsx(dc,{windowSize:N,children:t.jsx(Ni,{children:({height:G,width:$})=>t.jsx(Bi,{isItemLoaded:P,itemCount:e.length+1,loadMoreItems:de,children:({onItemsRendered:q})=>t.jsx(Wi,{ref:Z,height:G,itemCount:e.length,onItemsRendered:q,itemSize:ee,itemKey:B=>e[B].id,width:$,style:{willChange:"auto"},innerElementType:B=>ic(B,w,y,k,H),onScroll:({scrollOffset:B})=>{_?.(B)},initialScrollOffset:y.scrollYOffset,children:B=>t.jsx(tc,{...B,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:S,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,authParams:C,transactions:e,receiptRequiredAboveAmount:g,updateChargeCardTransactionAttachments:D,onUploadReceiptComplete:K,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:Q,updateChargeCardTransactionIsViewReceiptClicked:ne,onChargeCardTransactionRowClick:Y,removeSnackbar:v})})})})}):null}),W===!0?t.jsx(mc,{children:t.jsx(mt,{size:"Small",start:!0})}):null]})}const Kd=()=>{const e=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Jr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.emptyTransactions.title}),t.jsx(sa,{windowSize:e,children:nt.transactionTable.emptyTransactions.subTitle})]})]})},Qd=({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(Cc,{})}),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)})]})]})},ec=({cardHolderUser:e})=>{const i=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Jr,{})}),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??"")})]})]})},tc=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,style:u,transactions:h,isAiCategorizationEnabledForCardsTransactions:f,uploadReceiptsFetchStateByTransactionId:c,uploadReceiptsShowTickByTransactionId:g,isViewReceiptClickedImmediatelyAfterUploadTransactionId:m,cardId:x,cardsEndPoint:S,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,receiptRequiredAboveAmount:w,authParams:j,updateChargeCardTransactionAttachments:y,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:b,removeSnackbar:O})=>t.jsx(pc,{style:{...u,width:"100%"},className:"spend-management-list-item",children:t.jsx(rc,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardId:x,isAiCategorizationEnabledForCardsTransactions:f,cardsEndPoint:S,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:b,removeSnackbar:O},h[e].id)}),ac=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,cardsEndPoint:g,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,cardId:S,receiptRequiredAboveAmount:n,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,onChargeCardTransactionRowClick:p,removeSnackbar:E})=>{const b=Ie()==="small"?Id:ed;return t.jsx(b,{isSnackbarOpen:s,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,transaction:e,cardId:S,receiptRequiredAboveAmount:n,cardsEndPoint:g,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,onChargeCardTransactionRowClick:p,removeSnackbar:E})},rc=o.memo(ac),ic=(e,i,s,u,h)=>t.jsx(Xr,{...e,onColumnSortConfigChanged:h,hideSorting:i,uiState:{sortKey:s.sortKey,sortOrder:s.sortOrder},fetchState:u}),Xr=o.forwardRef((e,i)=>{const{children:s,style:u,uiState:h,onColumnSortConfigChanged:f,hideSorting:c,...g}=e;return t.jsxs(gc,{ref:i,style:{...u,width:"auto"},...g,children:[t.jsx(Ms,{onColumnSortConfigChanged:f,sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},hideSorting:c}),t.jsx(sc,{children:s})]})});Xr.displayName="Charge Card Transaction list View inner element type";const oc=r.div`
1027
+ `,Yd=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"})))),qd=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:Xd}=ke.getLocalizedStrings();function Jd({transactions:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,receiptRequiredAboveAmount:g,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:S,cardsEndPoint:n,authParams:C,hideSorting:w,isOwnCard:j,uiState:y,fetchState:k,cardHolderUser:L,cardStatusCode:p="active",cardCodeType:E="business_virtual_credit_card",onReloadTransactions:b,onFetchChargeCardTransactionList:O,onColumnSortConfigChanged:H,removeSnackbar:v,onChargeCardTransactionRowClick:Y,onUploadReceiptComplete:K,onUpdateScrollYOffset:_,updateChargeCardTransactionAttachments:D,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:Q,updateChargeCardTransactionIsViewReceiptClicked:ne}){const N=Ie(),G=o.useRef(null),[W,ae]=o.useState(!1);o.useEffect(()=>{G.current?.resetAfterIndex(0)},[N,G]),o.useEffect(()=>{k==="Completed"&&ae(!1)},[k]);const ee=()=>N!=="small"?74:128,re=(Z,$)=>{O(Z,$)},se=()=>{ae(!0),re(y.pageToken,y.pageTokenType)},P=Z=>Z<e.length,de=()=>{y.pageToken!=null&&k==="Completed"&&se()};return t.jsxs(oc,{isOwnCard:j,windowSize:N,isEmptyTransaction:e.length===0,children:[t.jsx(nc,{windowSize:N,children:k==="Error"?t.jsxs(cc,{children:[t.jsx(lc,{onClick:b,"data-testid":J("card-transaction-list-reload"),children:t.jsx(yr,{})}),t.jsx(hc,{children:Xd.reloadPage.label})]}):k==="Not-Started"||k==="In-Progress"&&e.length===0?t.jsx(uc,{children:t.jsx(mt,{size:"ExtraLarge",start:!0})}):k==="Completed"||k==="In-Progress"&&e.length>0?p==="request_on_hold"?t.jsx(Qd,{cardType:E,cardHolderUser:L}):p==="inactive"?t.jsx(ec,{cardHolderUser:L}):e.length===0?t.jsx(Kd,{}):t.jsx(dc,{windowSize:N,children:t.jsx(Ni,{children:({height:Z,width:$})=>t.jsx(Bi,{isItemLoaded:P,itemCount:e.length+1,loadMoreItems:de,children:({onItemsRendered:q})=>t.jsx(Wi,{ref:G,height:Z,itemCount:e.length,onItemsRendered:q,itemSize:ee,itemKey:B=>e[B].id,width:$,style:{willChange:"auto"},innerElementType:B=>ic(B,w,y,k,H),onScroll:({scrollOffset:B})=>{_?.(B)},initialScrollOffset:y.scrollYOffset,children:B=>t.jsx(tc,{...B,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardsEndPoint:n,isAiCategorizationEnabledForCardsTransactions:m,transactionAttachmentsEndpointToFetch:x,transactionAttachmentEndpointToDownload:S,uploadReceiptsFetchStateByTransactionId:u,uploadReceiptsShowTickByTransactionId:h,isViewReceiptClickedImmediatelyAfterUploadTransactionId:f,cardId:c,authParams:C,transactions:e,receiptRequiredAboveAmount:g,updateChargeCardTransactionAttachments:D,onUploadReceiptComplete:K,updateChargeCardTransactionUploadReceiptsFetchStatus:oe,updateChargeCardTransactionReceiptsShowTick:Q,updateChargeCardTransactionIsViewReceiptClicked:ne,onChargeCardTransactionRowClick:Y,removeSnackbar:v})})})})}):null}),W===!0?t.jsx(mc,{children:t.jsx(mt,{size:"Small",start:!0})}):null]})}const Kd=()=>{const e=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Jr,{})}),t.jsxs(oa,{children:[t.jsx(na,{children:nt.transactionTable.emptyTransactions.title}),t.jsx(sa,{windowSize:e,children:nt.transactionTable.emptyTransactions.subTitle})]})]})},Qd=({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(Cc,{})}),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)})]})]})},ec=({cardHolderUser:e})=>{const i=Ie();return t.jsxs(ia,{children:[t.jsx(da,{children:t.jsx(Jr,{})}),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??"")})]})]})},tc=({index:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,style:u,transactions:h,isAiCategorizationEnabledForCardsTransactions:f,uploadReceiptsFetchStateByTransactionId:c,uploadReceiptsShowTickByTransactionId:g,isViewReceiptClickedImmediatelyAfterUploadTransactionId:m,cardId:x,cardsEndPoint:S,transactionAttachmentsEndpointToFetch:n,transactionAttachmentEndpointToDownload:C,receiptRequiredAboveAmount:w,authParams:j,updateChargeCardTransactionAttachments:y,onUploadReceiptComplete:k,updateChargeCardTransactionUploadReceiptsFetchStatus:L,updateChargeCardTransactionReceiptsShowTick:p,updateChargeCardTransactionIsViewReceiptClicked:E,onChargeCardTransactionRowClick:b,removeSnackbar:O})=>t.jsx(pc,{style:{...u,width:"100%"},className:"spend-management-list-item",children:t.jsx(rc,{documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,cardId:x,isAiCategorizationEnabledForCardsTransactions:f,cardsEndPoint:S,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:b,removeSnackbar:O},h[e].id)}),ac=({transaction:e,documentAiReceiptMaxSizeLimit:i,isSnackbarOpen:s,isAiCategorizationEnabledForCardsTransactions:u,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,cardsEndPoint:g,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,cardId:S,receiptRequiredAboveAmount:n,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,onChargeCardTransactionRowClick:p,removeSnackbar:E})=>{const b=Ie()==="small"?Id:ed;return t.jsx(b,{isSnackbarOpen:s,documentAiReceiptMaxSizeLimit:i,isAiCategorizationEnabledForCardsTransactions:u,transactionAttachmentsEndpointToFetch:m,transactionAttachmentEndpointToDownload:x,uploadReceiptsFetchState:h,uploadReceiptsShowTick:f,isViewReceiptClickedImmediatelyAfterUpload:c,transaction:e,cardId:S,receiptRequiredAboveAmount:n,cardsEndPoint:g,authParams:C,updateChargeCardTransactionAttachments:w,onUploadReceiptComplete:j,updateChargeCardTransactionUploadReceiptsFetchStatus:y,updateChargeCardTransactionReceiptsShowTick:k,updateChargeCardTransactionIsViewReceiptClicked:L,onChargeCardTransactionRowClick:p,removeSnackbar:E})},rc=o.memo(ac),ic=(e,i,s,u,h)=>t.jsx(Xr,{...e,onColumnSortConfigChanged:h,hideSorting:i,uiState:{sortKey:s.sortKey,sortOrder:s.sortOrder},fetchState:u}),Xr=o.forwardRef((e,i)=>{const{children:s,style:u,uiState:h,onColumnSortConfigChanged:f,hideSorting:c,...g}=e;return t.jsxs(gc,{ref:i,style:{...u,width:"auto"},...g,children:[t.jsx(Ms,{onColumnSortConfigChanged:f,sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},hideSorting:c}),t.jsx(sc,{children:s})]})});Xr.displayName="Charge Card Transaction list View inner element type";const oc=r.div`
1028
1028
  display: block;
1029
1029
  height: ${e=>e.isEmptyTransaction?"calc(100vh - 436px)":"calc(100vh - 224px)"};
1030
1030
  width: 100%;
@@ -1120,7 +1120,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
1120
1120
  height: inherit;
1121
1121
  `,bc=r(Sc)`
1122
1122
  animation: ${e=>xc(e.className)} 0.3s forwards;
1123
- `,yc=({isChargeCardAdmin:e,chargeCardDetailView:i,walletType:s,secretRevealed:u,isDrawerOpen:h,vgsVaultId:f,showSecretInfo:c,changePinInProcess:g,isSandboxEnv:m,controllerEmails:x,isChargeCardFeatureEnabled:S,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:w,chargeCardCashbackDetailState:j,isCardDetailErrored:y,creditAccountRepayment:k,productInformation:L,creditAccountInformation:p,debitAccountInformation:E,cashbackInformation:b,signedInUserToken:O,selectedColor:H,showDrawerAnimation:v,cardDetailsFetchState:Y,setCardDetailsFetchState:K,setIsCardDetailErrored:_,setShowSecretInfo:D,setSecretRevealed:oe,setShowChangePinPopup:Q,setIsAddToWalletDrawerOpen:ne,isCardDetailFetching:N,handleColorCodeClick:Z,onFireOnClickAnalytics:W,onVerifyOtp:ae,onVerifyOtpSuccess:ee,onResendOtp:re,onFireVerifyPopOnClickAnalytics:se,onGetOtp:P})=>{const de=tt(),[G,$]=o.useState(!1),[q,B]=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(Sr,{phoneNumberPopupDescription:Ne.verifyPhoneNumberDescription,showOtpPopup:G,showPhoneNumberPopup:q,twoFactorAuthenticationView:i.twoFAView,loggedInUserPhone:i.loggedInUserPhone,onVerifyOtp:ae,onVerifyOtpSuccess:A=>{ee(A),g?Q(!0):D(!0)},onFireVerifyPopOnClickAnalytics:se,setShowOtpPopup:$,onResendOtp:re,setShowPhoneNumberPopup:B,onGetOtp:P}),t.jsxs(bc,{className:le,children:[t.jsx(Ti,{title:s==="apple"?Ne.addCardToAppleWallet:Ne.addCardToGoogleWallet,style:{zIndex:4},backgroundColor:de.colors.grey4,onCloseClick:()=>ne(!1)}),t.jsxs(vc,{children:[t.jsxs(Lc,{children:[t.jsxs(kc,{children:[t.jsx(Pc,{children:t.jsx(Mc,{})}),t.jsx(Ac,{children:Ne.openWalletAppOnPhone})]}),t.jsx(Tc,{children:s==="apple"?Ne.openWalletDescriptionApple:Ne.openWalletDescriptionGoogle}),t.jsx(Hr,{isChargeCardAdmin:e,onUnlockChargeCard:()=>{},chargeCardDetailView:i,creditAccountRepayment:k,creditAccount:i.creditAccount,setShowSecretInfo:D,secretRevealed:u,isOwnCard:!0,controllerEmails:x,isChargeCardFeatureEnabled:S,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:b,selectedColor:H,cardDetailsFetchState:Y,setCardDetailsFetchState:K,setIsCardDetailErrored:_,setSecretRevealed:oe,isCardDetailFetching:N,handleColorCodeClick:Z,onFireOnClickAnalytics:W,setShowPhoneNumberForOtp:B})]}),t.jsx(Ic,{}),t.jsxs(Dc,{children:[t.jsxs(jc,{children:[t.jsx(Fc,{children:t.jsx(zc,{})}),t.jsx(Rc,{children:Ne.verifyCard})]}),t.jsx($c,{children:t.jsx(Ec,{children:s==="apple"?Ne.VerifyCardDescriptionApple:Ne.VerifyCardDescriptionGoogle})})]})]})]})]})})},$c=r.div`
1123
+ `,yc=({isChargeCardAdmin:e,chargeCardDetailView:i,walletType:s,secretRevealed:u,isDrawerOpen:h,vgsVaultId:f,showSecretInfo:c,changePinInProcess:g,isSandboxEnv:m,controllerEmails:x,isChargeCardFeatureEnabled:S,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:C,isChargeCardSetupEnabled:w,chargeCardCashbackDetailState:j,isCardDetailErrored:y,creditAccountRepayment:k,productInformation:L,creditAccountInformation:p,debitAccountInformation:E,cashbackInformation:b,signedInUserToken:O,selectedColor:H,showDrawerAnimation:v,cardDetailsFetchState:Y,setCardDetailsFetchState:K,setIsCardDetailErrored:_,setShowSecretInfo:D,setSecretRevealed:oe,setShowChangePinPopup:Q,setIsAddToWalletDrawerOpen:ne,isCardDetailFetching:N,handleColorCodeClick:G,onFireOnClickAnalytics:W,onVerifyOtp:ae,onVerifyOtpSuccess:ee,onResendOtp:re,onFireVerifyPopOnClickAnalytics:se,onGetOtp:P})=>{const de=tt(),[Z,$]=o.useState(!1),[q,B]=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(Sr,{phoneNumberPopupDescription:Ne.verifyPhoneNumberDescription,showOtpPopup:Z,showPhoneNumberPopup:q,twoFactorAuthenticationView:i.twoFAView,loggedInUserPhone:i.loggedInUserPhone,onVerifyOtp:ae,onVerifyOtpSuccess:A=>{ee(A),g?Q(!0):D(!0)},onFireVerifyPopOnClickAnalytics:se,setShowOtpPopup:$,onResendOtp:re,setShowPhoneNumberPopup:B,onGetOtp:P}),t.jsxs(bc,{className:le,children:[t.jsx(Ti,{title:s==="apple"?Ne.addCardToAppleWallet:Ne.addCardToGoogleWallet,style:{zIndex:4},backgroundColor:de.colors.grey4,onCloseClick:()=>ne(!1)}),t.jsxs(vc,{children:[t.jsxs(Lc,{children:[t.jsxs(kc,{children:[t.jsx(Pc,{children:t.jsx(Mc,{})}),t.jsx(Ac,{children:Ne.openWalletAppOnPhone})]}),t.jsx(Tc,{children:s==="apple"?Ne.openWalletDescriptionApple:Ne.openWalletDescriptionGoogle}),t.jsx(Hr,{isChargeCardAdmin:e,onUnlockChargeCard:()=>{},chargeCardDetailView:i,creditAccountRepayment:k,creditAccount:i.creditAccount,setShowSecretInfo:D,secretRevealed:u,isOwnCard:!0,controllerEmails:x,isChargeCardFeatureEnabled:S,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:b,selectedColor:H,cardDetailsFetchState:Y,setCardDetailsFetchState:K,setIsCardDetailErrored:_,setSecretRevealed:oe,isCardDetailFetching:N,handleColorCodeClick:G,onFireOnClickAnalytics:W,setShowPhoneNumberForOtp:B})]}),t.jsx(Ic,{}),t.jsxs(Dc,{children:[t.jsxs(jc,{children:[t.jsx(Fc,{children:t.jsx(zc,{})}),t.jsx(Rc,{children:Ne.verifyCard})]}),t.jsx($c,{children:t.jsx(Ec,{children:s==="apple"?Ne.VerifyCardDescriptionApple:Ne.VerifyCardDescriptionGoogle})})]})]})]})]})})},$c=r.div`
1124
1124
  display: flex;
1125
1125
  justify-content: end;
1126
1126
  `,vc=r.div`
@@ -1180,7 +1180,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
1180
1180
  width: ${a.sp4};
1181
1181
  height: ${a.sp4};
1182
1182
  color: ${e=>e.theme.colors.graphColor16Dark};
1183
- `,{spendManagement:{chargeCard:{cardDetails:Je}},common:{strings:Vc}}=ke.getLocalizedStrings(),ca={iFrameWidth:new T(188,188)};function Oc({isSandboxEnv:e,cardProviderID:i,vgsVaultId:s,signedInUserToken:u,onCancelClick:h,onUpdateDebitCardPinAttempt:f,onChangePinSuccess:c}){const g=Ie(),m=tt(),[x,S]=o.useState({}),[n,C]=o.useState(!1),[w,j]=o.useState(!1),[y,k]=o.useState(!0),[L,p]=o.useState(!0),[E,b]=o.useState(!1),[O,H]=o.useState(!1),[v,Y]=o.useState(!1),[K,_]=o.useState(!1),[D,oe]=o.useState(!1),[Q,ne]=o.useState(!1),[N,Z]=o.useState(!1),[W,ae]=o.useState(null),[ee,re]=o.useState(null),[se]=br("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?_(!0):(A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!1||A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!0)&&(_(!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:{...U.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,...U.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`}}}),B=$.field("#newPin",{type:"text",name:"data.attributes.newPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{...U.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,...U.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(B),S($),Promise.all([q.promise,B.promise]).then(function(){j(!0)})}},[se]),o.useEffect(()=>{W?.update({hideValue:y})},[W,y]),o.useEffect(()=>{ee?.update({hideValue:L})},[ee,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,B){q===200?(b(!1),H(!1),c(),f("success")):(_(!0),f("failed"),B.errors?.[0].title.toLowerCase().includes("max")?ne(!0):B.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(Hc,{children:Je.moreOptions.changePin}),descriptionComponent:t.jsxs(Nc,{children:[t.jsxs(Zc,{children:[t.jsxs(pr,{showFieldError:K,windowSize:g,isFirstField:!0,validation:v,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),oldPinInputHighlighted:E,children:[t.jsx(cr,{children:Je.existingPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(_c,{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(Wc,{}),t.jsxs(pr,{showFieldError:D,windowSize:g,isFirstField:!1,validation:v,onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),newPinInputHighlighted:O,children:[t.jsx(cr,{children:Je.newPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(Uc,{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,{})})]})]})]}),N?t.jsx(hr,{children:Je.incorrectCurrentPIN}):null,Q?t.jsx(hr,{children:Je.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:w===!1||Q,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:G,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(Di,{children:[t.jsx(Bc,{children:Je.forgotYourPin}),Vc.space,Je.callTollFree]})})}const Hc=r(Gi)`
1183
+ `,{spendManagement:{chargeCard:{cardDetails:Je}},common:{strings:Vc}}=ke.getLocalizedStrings(),ca={iFrameWidth:new T(188,188)};function Oc({isSandboxEnv:e,cardProviderID:i,vgsVaultId:s,signedInUserToken:u,onCancelClick:h,onUpdateDebitCardPinAttempt:f,onChangePinSuccess:c}){const g=Ie(),m=tt(),[x,S]=o.useState({}),[n,C]=o.useState(!1),[w,j]=o.useState(!1),[y,k]=o.useState(!0),[L,p]=o.useState(!0),[E,b]=o.useState(!1),[O,H]=o.useState(!1),[v,Y]=o.useState(!1),[K,_]=o.useState(!1),[D,oe]=o.useState(!1),[Q,ne]=o.useState(!1),[N,G]=o.useState(!1),[W,ae]=o.useState(null),[ee,re]=o.useState(null),[se]=br("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?_(!0):(A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!1||A?.isTouched===!0&&A?.isValid===!0&&A?.isFocused===!0)&&(_(!1),G(!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:{...U.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,...U.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`}}}),B=$.field("#newPin",{type:"text",name:"data.attributes.newPin",placeholder:"0000",autoComplete:"off",maxLength:4,hideValue:!0,validations:["required","/^([0-9]{4})$/"],css:{...U.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,...U.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(B),S($),Promise.all([q.promise,B.promise]).then(function(){j(!0)})}},[se]),o.useEffect(()=>{W?.update({hideValue:y})},[W,y]),o.useEffect(()=>{ee?.update({hideValue:L})},[ee,L]);const de=$=>{C(!0),G(!1),x.submit?.("/cards/"+i+"/secure-data/pin",{method:"PUT",mapDotToObject:"true",headers:{"Content-Type":"application/vnd.api+json",Authorization:"Bearer "+$?.token}},function(q,B){q===200?(b(!1),H(!1),c(),f("success")):(_(!0),f("failed"),B.errors?.[0].title.toLowerCase().includes("max")?ne(!0):B.errors?.[0].title.toLowerCase().includes("invalid")&&G(!0),C(!1))},q=>{console.log("error",q),C(!1)})},Z={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(Hc,{children:Je.moreOptions.changePin}),descriptionComponent:t.jsxs(Nc,{children:[t.jsxs(Gc,{children:[t.jsxs(pr,{showFieldError:K,windowSize:g,isFirstField:!0,validation:v,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),oldPinInputHighlighted:E,children:[t.jsx(cr,{children:Je.existingPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(_c,{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(Wc,{}),t.jsxs(pr,{showFieldError:D,windowSize:g,isFirstField:!1,validation:v,onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),newPinInputHighlighted:O,children:[t.jsx(cr,{children:Je.newPin}),t.jsxs(lr,{windowSize:g,children:[t.jsx(Uc,{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,{})})]})]})]}),N?t.jsx(hr,{children:Je.incorrectCurrentPIN}):null,Q?t.jsx(hr,{children:Je.pinAttemptsReached}):null]}),primaryButtonText:"Change",primaryButtonWidth:87,isLoading:n,isDisabled:w===!1||Q,secondaryButtonWidth:87,buttonContainerStyle:{paddingTop:a.sp3,paddingBottom:a.sp2},secondaryButtonText:"Cancel",action:Z,containerStyle:{maxWidth:"544px"},footerHelperComponent:t.jsxs(Di,{children:[t.jsx(Bc,{children:Je.forgotYourPin}),Vc.space,Je.callTollFree]})})}const Hc=r(Zi)`
1184
1184
  margin-top: ${a.sp7};
1185
1185
  padding-left: ${a.sp8};
1186
1186
  padding-right: ${a.sp8};
@@ -1198,7 +1198,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
1198
1198
  height: ${a.sp4};
1199
1199
  width: ${a.sp4};
1200
1200
  color: ${e=>e.theme.colors.hero};
1201
- `,dr=r(Zi)`
1201
+ `,dr=r(Gi)`
1202
1202
  height: ${a.sp4};
1203
1203
  width: ${a.sp4};
1204
1204
  color: ${e=>e.theme.colors.hero};
@@ -1230,7 +1230,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
1230
1230
  border-radius: ${a.sp1};
1231
1231
  height: ${a.sp6};
1232
1232
  width: ${e=>ca.iFrameWidth.valuePx(e.windowSize)};
1233
- `,Zc=r.div`
1233
+ `,Gc=r.div`
1234
1234
  border: 1px solid ${e=>e.theme.colors.grey3};
1235
1235
  border-radius: ${a.sp2};
1236
1236
  `,pr=r.div`
@@ -1272,7 +1272,7 @@ import{e as tt,Q as Ie,av as It,a7 as Lt,gQ as wr,hu as ki,aS as Qe,F as ke,gR a
1272
1272
  background: ${e.theme.colors.background};
1273
1273
  }
1274
1274
  `:null}
1275
- `,Ee={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:Gc,dateFormat:Yc}=ke.getLocalizedStrings(),ue=Gc.chargeCard,Nl=({chargeCardDetailView:e,onUnlockChargeCard:i,onCloseChargeCard:s,cardsEndPoint:u,classListFetchState:h,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,cardId:x,vgsVaultId:S,controllerEmails:n,isCardControlsEnabled:C,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:L,onFetchChargeCardsRecurringExpenses:p,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,cardIssuedByRoles:Y,cardIssuedByDepartmentName:K,cardHolderRoles:_,cardHolderDepartmentName:D,loggedInUserRole:oe,appleWalletLink:Q,googleWalletLink:ne,signedInUser:N,signedInUserToken:Z,chargeCardsRecurringExpensesState:W,isSandboxEnv:ae,isEarlyPayEnabled:ee,documentAiReceiptMaxSizeLimit:re,isSnackbarOpen:se,onFireOnClickAnalytics:P,onUpdateDebitCardPinAttempt:de,onFireVerifyPopOnClickAnalytics:G,onBackClick:$,onReloadTransactions:q,onFetchChargeCardTransactionList:B,onGetOtp:le,onLockChargeCard:A,onResendOtp:z,onVerifyOtp:ce,updateChargeCardName:ie,onVerifyOtpSuccess:I,onColorCodeChange:je,onColumnSortConfigChanged:Ce,updateChargeCardTransactionAttachments:Fe,updateChargeCardTransactionUploadReceiptsFetchStatus:X,updateChargeCardTransactionReceiptsShowTick:te,updateChargeCardTransactionIsViewReceiptClicked:M,onUploadReceiptComplete:Se,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onChargeCardRevokeInviteClick:He,onUpdateScrollYOffset:Ye,updateSpendLimit:at,shouldOpenCreditCardPaymentDrawer:pe})=>{const R=o.useRef(!0),he=tt(),F=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,St]=o.useState(!1),[ri,Rt]=o.useState(!1),[ii,bt]=o.useState(!1),[oi,yt]=o.useState(!1),[rt,Et]=o.useState(!1),[pa,Ft]=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&&Ft(!1)},[rt]);const wa=o.useRef("noAnimation"),Be=e.chargeCard?.cardHolderUserId===N.userId,Pt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,xa=e.chargeCard?.billingAddress,be=At(qe.loggedInUserRoleMap),{text1:ci,text2:li}=ki(xa),Sa=`${ci} ${li}`,zt=e.chargeCard?.isDeclinedTransaction===!0,hi=()=>{Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:be,analytics:Pe,controllerEmails:n,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),dt(e.chargeCardConfig.receiptBotEmail),ft(!0)},pi=()=>{P("card owner copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:be,analytics:Pe,controllerEmails:n,actionField:"Card Owner",actionDetails:Pt}),dt(Pt),ht(!0)},ui=()=>{P("billing address copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:be,analytics:Pe,controllerEmails:n,actionField:"Billing Address",actionDetails:Sa}),dt(Sa),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[$l,mi]=o.useState(!1),[ba,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(()=>{R.current===!0?R.current=!1:P(rt===!1?"card details hidden":"card detail revealed")},[rt]);const va=(V,ye)=>{if(ye===!0){const We=Ri(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,Nt=e.closeChargeCardsFetchState.fetchState,Ia=et(Vt),La=et(Ot),Da=et(Ht),Aa=et(Nt);o.useEffect(()=>{Ia==="In-Progress"&&Vt==="Completed"?St(!1):La==="In-Progress"&&Ot==="Completed"?Rt(!1):Da==="In-Progress"&&Ht==="Completed"?bt(!1):Aa==="In-Progress"&&Nt==="Completed"&&yt(!1)},[Vt,Ot,Ht,Nt,Ia,La,Da,Aa]);const De=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",gi=be&&(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&&be&&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",bi=ye==="inactive",yi=ye==="request_on_hold",$i=e.chargeCard?.isLockedByAdmin===!0,Ea=De&&Be,$t=be;if(yi){const Ve=[];return $t&&Ve.push("revokeInvite"),Ve.push("rename"),V.filter(Bt=>Ve.includes(Bt.value))}if(bi){const Ve=[];return Ve.push("rename"),Ea&&Ve.push("changePin"),$t&&Ve.push("close"),V.filter(Bt=>Ve.includes(Bt.value))}const vi={changePin:Ea&&!We,lock:!We,unlock:We&&(be||!$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"?St(!0):V==="rename"?Rt(!0):V==="lock"?(bt(!0),p()):V==="close"?(yt(!0),p()):V==="unlock"?i(be):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"})}})}),Ra=V=>V.reasonType==="other"?V.reason:V.reasonType,wi=V=>{const ye=Ra(V);A(be,ye)},xi=V=>{const ye=Ra(V);s(ye)},Si=()=>{const V=e.chargeCard?.status.code;if(V==="closed"||V==="closed_by_customer")return null;if(!C)return Be&&De?Ta:null;if(!Be&&!be)return null;const ye=e.chargeCard?.isLockedByAdmin===!0;return Be&&!be&&ye&&V==="locked"?null:Ta};return t.jsxs(dl,{children:[ii&&e.chargeCard!=null&&t.jsx(Fo,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>bt(!1),isChargeCardAdmin:be,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:wi,onDismissClick:()=>bt(!1),onRemoveCardClick:()=>{}}),oi&&e.chargeCard!=null&&t.jsx(Po,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>yt(!1),isChargeCardAdmin:be,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(Oc,{signedInUserToken:Z,vgsVaultId:S,onCancelClick:()=>{Te(!1),Me(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{Te(!1),Me(!0)},onUpdateDebitCardPinAttempt:de}):null,ja?null:t.jsx(yc,{isChargeCardAdmin:be,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:L,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,creditAccount:e.creditAccount,selectedColor:ba,walletType:si,onFireOnClickAnalytics:P,isSandboxEnv:ae,chargeCardDetailView:e,vgsVaultId:S,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:Et,secretRevealed:pa,setSecretRevealed:Ft,onGetOtp:le,showDrawerAnimation:wa}),t.jsx(Ii,{rightSideComponent:Si(),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(Eo,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:he.colors.grey5,style:{zIndex:3},onBackClick:$,titleStyle:{marginTop:l[0],...F==="small"&&{textAlign:"left"}},leftComponentStyle:F==="small"?{width:"10%"}:void 0,middleComponentStyle:F==="small"?{width:"80%"}:void 0,rightComponentStyle:F==="small"?{width:"10%"}:void 0}),t.jsx(Sr,{phoneNumberPopupDescription:ue.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Qr,showPhoneNumberPopup:ti,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:ce,onVerifyOtpSuccess:V=>{I(V),xt?Te(!0):Et(!0)},onFireVerifyPopOnClickAnalytics:G,setShowOtpPopup:ei,onResendOtp:z,setShowPhoneNumberPopup:ha,onGetOtp:le}),ri&&t.jsx(zo,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Rt(!1),onSubmitClick:V=>{e.chargeCard&&ie(be,V)}}),ai&&e.chargeCard!=null?t.jsx(Mo,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,cardDetail:e.chargeCard,transactionStatistics:e.transactionStatistics,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,signedInUser:N,isDebitCard:De,cardIssuedByRoles:Y,cardHolderRoles:_,loggedInUserRole:oe,cardIssuedByDepartmentName:K,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:()=>St(!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(al,{windowSize:F,children:[t.jsx(ol,{onClick:q,"data-testid":J("reload-card-detail"),children:t.jsx(sl,{})}),t.jsx(nl,{children:Le.reloadPage.label})]}):t.jsxs(qc,{children:[t.jsx(es,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,isDebitCard:De,chargeCardCashbackDetailState:L,cardIssuedByRoles:Y,cardIssuedByDepartmentName:K,cardHolderRoles:_,cardHolderDepartmentName:D,classListFetchState:h,chargeCardDetailView:e,spent:$a,isCardNotPending:Mt,cardOwnerName:Pt,appleWalletLink:Q,googleWalletLink:ne,addressToShow:xa,secretRevealed:pa,isOwnCard:Be,vgsVaultId:S,showSecretInfo:rt,isSandboxEnv:ae,isCardDetailErrored:ua,signedInUserToken:Z,selectedColor:ba,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,setSecretRevealed:Ft,isCardDetailFetching:ka,handleColorCodeClick:va,onFireOnClickAnalytics:P,setShowPhoneNumberPopup:ha,setShowChangeSpendLimitPopup:St,setShowSecretInfo:Et,isOwnerNameCopied:fe,isAddressCopied:Tt,onOwnerNameCopyClick:pi,onAddressCopyClick:ui,showUpdateSpendLimitAction:gi,onUnlockChargeCard:i}),ee?Ci?t.jsxs(Jc,{windowSize:F,children:[t.jsx(pl,{}),t.jsx(Qc,{children:` ${ue.payEarly.paymentOf} ${Ge("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${ue.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(Yc.visual.MMMDFormat)} ${ue.payEarly.isProcessing} ${ue.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):zt?be?t.jsxs(Kr,{onClick:()=>{pe(!0)},windowSize:F,children:[t.jsx(ur,{windowSize:F}),t.jsxs(rl,{children:[t.jsx(mr,{children:ue.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(el,{className:"pay-now-button",children:[ue.payEarly.payNow,t.jsx(Kc,{})]})]})]}):t.jsxs(Xc,{windowSize:F,children:[t.jsx(ur,{windowSize:F}),t.jsx(il,{children:t.jsx(mr,{children:ue.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,Be&&F!=="small"&&Mt&&De===!1?t.jsx(Vo,{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:b,creditAccountInformation:O,debitAccountInformation:H,cardIssuedByRoles:Y,cardHolderRoles:_,cardIssuedByDepartmentName:K,cardHolderDepartmentName:D,isDebitCard:De,appleWalletLink:Q,googleWalletLink:ne,setWalletType:di,setIsAddToWalletDrawerOpen:ga,showDrawerAnimation:wa}):null,t.jsxs(yl,{windowSize:F,isOwnCard:Be,isMobileOrTabletScreen:ja,children:[Mt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(ll,{windowSize:F,children:[ue.cardDetails.transactionListTitle,t.jsx(Qt,{display:"flex",placement:"right",title:t.jsx(ul,{children:ue.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(hl,{})})]}),t.jsxs(ml,{windowSize:F,children:[t.jsx(wl,{windowSize:F,children:t.jsx(xl,{})}),t.jsxs(cl,{windowSize:F,children:[t.jsxs(gl,{children:[t.jsx(tl,{children:ue.aiCardAgentText}),Le.strings.space,ue.receiptBotMessage,Le.strings.space]}),t.jsxs(fl,{"data-testid":J("charge-card-detail-copy-email"),onClick:hi,onMouseEnter:()=>wt(!0),onMouseLeave:()=>wt(!1),children:[t.jsx(Cl,{children:e.chargeCardConfig.receiptBotEmail}),ze===!0?t.jsxs(Cr,{children:[t.jsx(bl,{}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct||ze,color:d.primaryDark,children:Le.copyToClipBoard.copied})})]}):t.jsxs(Cr,{children:[t.jsx(Sl,{color:ct?he.colors.primary:void 0}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct&&F!=="small",children:Le.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(Jd,{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:B,isOwnCard:Be,onColumnSortConfigChanged:Ce,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onUpdateScrollYOffset:Ye,onUploadReceiptComplete:Se,updateChargeCardTransactionAttachments:Fe,updateChargeCardTransactionUploadReceiptsFetchStatus:X,updateChargeCardTransactionReceiptsShowTick:te,updateChargeCardTransactionIsViewReceiptClicked:M})]})]})]})},Xt=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:s,productInformation:u,cashbackInformation:h,creditAccountInformation:f,debitAccountInformation:c,creditAccount:g,creditAccountRepayment:m,isDebitCard:x,isChargeCardAdmin:S,analytics:n,controllerEmails:C,actionDetails:w,actionField:j})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!s||g.fetchState==="Completed"&&m.fetchState==="Completed")&&(!(x&&S)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(C,u,"Cards Detail","Copy","copied",j,w,h,f,c)},qc=r.div``,Kr=r.div`
1275
+ `,Ee={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:Zc,dateFormat:Yc}=ke.getLocalizedStrings(),ue=Zc.chargeCard,Nl=({chargeCardDetailView:e,onUnlockChargeCard:i,onCloseChargeCard:s,cardsEndPoint:u,classListFetchState:h,transactionAttachmentsEndpointToFetch:f,transactionAttachmentEndpointToDownload:c,authParams:g,hideSorting:m,cardId:x,vgsVaultId:S,controllerEmails:n,isCardControlsEnabled:C,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:L,onFetchChargeCardsRecurringExpenses:p,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,cardIssuedByRoles:Y,cardIssuedByDepartmentName:K,cardHolderRoles:_,cardHolderDepartmentName:D,loggedInUserRole:oe,appleWalletLink:Q,googleWalletLink:ne,signedInUser:N,signedInUserToken:G,chargeCardsRecurringExpensesState:W,isSandboxEnv:ae,isEarlyPayEnabled:ee,documentAiReceiptMaxSizeLimit:re,isSnackbarOpen:se,onFireOnClickAnalytics:P,onUpdateDebitCardPinAttempt:de,onFireVerifyPopOnClickAnalytics:Z,onBackClick:$,onReloadTransactions:q,onFetchChargeCardTransactionList:B,onGetOtp:le,onLockChargeCard:A,onResendOtp:z,onVerifyOtp:ce,updateChargeCardName:ie,onVerifyOtpSuccess:I,onColorCodeChange:je,onColumnSortConfigChanged:Ce,updateChargeCardTransactionAttachments:Fe,updateChargeCardTransactionUploadReceiptsFetchStatus:X,updateChargeCardTransactionReceiptsShowTick:te,updateChargeCardTransactionIsViewReceiptClicked:M,onUploadReceiptComplete:Se,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onChargeCardRevokeInviteClick:He,onUpdateScrollYOffset:Ye,updateSpendLimit:at,shouldOpenCreditCardPaymentDrawer:pe})=>{const R=o.useRef(!0),he=tt(),F=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,St]=o.useState(!1),[ri,Rt]=o.useState(!1),[ii,bt]=o.useState(!1),[oi,yt]=o.useState(!1),[rt,Et]=o.useState(!1),[pa,Ft]=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&&Ft(!1)},[rt]);const wa=o.useRef("noAnimation"),Be=e.chargeCard?.cardHolderUserId===N.userId,Pt=`${e.chargeCard?.cardHolderUser?.firstName??""} ${e.chargeCard?.cardHolderUser?.lastName??""}`,xa=e.chargeCard?.billingAddress,be=At(qe.loggedInUserRoleMap),{text1:ci,text2:li}=ki(xa),Sa=`${ci} ${li}`,zt=e.chargeCard?.isDeclinedTransaction===!0,hi=()=>{Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:be,analytics:Pe,controllerEmails:n,actionField:"Receipt Email",actionDetails:e.chargeCardConfig.receiptBotEmail}),dt(e.chargeCardConfig.receiptBotEmail),ft(!0)},pi=()=>{P("card owner copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:be,analytics:Pe,controllerEmails:n,actionField:"Card Owner",actionDetails:Pt}),dt(Pt),ht(!0)},ui=()=>{P("billing address copied"),Xt({chargeCardDetailView:e,chargeCardCashbackDetailState:L,isChargeCardFeatureEnabled:w,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,isDebitCard:De,isChargeCardAdmin:be,analytics:Pe,controllerEmails:n,actionField:"Billing Address",actionDetails:Sa}),dt(Sa),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[$l,mi]=o.useState(!1),[ba,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(()=>{R.current===!0?R.current=!1:P(rt===!1?"card details hidden":"card detail revealed")},[rt]);const va=(V,ye)=>{if(ye===!0){const We=Ri(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,Nt=e.closeChargeCardsFetchState.fetchState,Ia=et(Vt),La=et(Ot),Da=et(Ht),Aa=et(Nt);o.useEffect(()=>{Ia==="In-Progress"&&Vt==="Completed"?St(!1):La==="In-Progress"&&Ot==="Completed"?Rt(!1):Da==="In-Progress"&&Ht==="Completed"?bt(!1):Aa==="In-Progress"&&Nt==="Completed"&&yt(!1)},[Vt,Ot,Ht,Nt,Ia,La,Da,Aa]);const De=e.chargeCard?.type.code==="business_physical_debit_card"||e.chargeCard?.type.code==="business_virtual_debit_card",gi=be&&(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&&be&&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",bi=ye==="inactive",yi=ye==="request_on_hold",$i=e.chargeCard?.isLockedByAdmin===!0,Ea=De&&Be,$t=be;if(yi){const Ve=[];return $t&&Ve.push("revokeInvite"),Ve.push("rename"),V.filter(Bt=>Ve.includes(Bt.value))}if(bi){const Ve=[];return Ve.push("rename"),Ea&&Ve.push("changePin"),$t&&Ve.push("close"),V.filter(Bt=>Ve.includes(Bt.value))}const vi={changePin:Ea&&!We,lock:!We,unlock:We&&(be||!$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"?(G==null||G.expiry.isBefore(new Date)?le(e.loggedInUserPhone):Te(!0),Me(!0)):V==="updateSpendLimit"?St(!0):V==="rename"?Rt(!0):V==="lock"?(bt(!0),p()):V==="close"?(yt(!0),p()):V==="unlock"?i(be):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"})}})}),Ra=V=>V.reasonType==="other"?V.reason:V.reasonType,wi=V=>{const ye=Ra(V);A(be,ye)},xi=V=>{const ye=Ra(V);s(ye)},Si=()=>{const V=e.chargeCard?.status.code;if(V==="closed"||V==="closed_by_customer")return null;if(!C)return Be&&De?Ta:null;if(!Be&&!be)return null;const ye=e.chargeCard?.isLockedByAdmin===!0;return Be&&!be&&ye&&V==="locked"?null:Ta};return t.jsxs(dl,{children:[ii&&e.chargeCard!=null&&t.jsx(Fo,{showLockCardDrawer:!0,onCloseLockCardDrawer:()=>bt(!1),isChargeCardAdmin:be,chargeCardsByCardId:{[e.chargeCard.id]:e.chargeCard},cardRecurringExpensesByCardId:{[e.chargeCard.id]:W.recurringExpenses},cardRecurringExpenseFetchState:W.fetchState,lockCardFetchState:e.lockChargeCardsFetchState.fetchState,onConfirmClick:wi,onDismissClick:()=>bt(!1),onRemoveCardClick:()=>{}}),oi&&e.chargeCard!=null&&t.jsx(Po,{showCloseCardDrawer:!0,onCloseCloseCardDrawer:()=>yt(!1),isChargeCardAdmin:be,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(Oc,{signedInUserToken:G,vgsVaultId:S,onCancelClick:()=>{Te(!1),Me(!0)},isSandboxEnv:!0,cardProviderID:e.chargeCard?.cardProviderID,onChangePinSuccess:()=>{Te(!1),Me(!0)},onUpdateDebitCardPinAttempt:de}):null,ja?null:t.jsx(yc,{isChargeCardAdmin:be,controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,chargeCardCashbackDetailState:L,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,creditAccount:e.creditAccount,selectedColor:ba,walletType:si,onFireOnClickAnalytics:P,isSandboxEnv:ae,chargeCardDetailView:e,vgsVaultId:S,signedInUserToken:G,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:Z,onResendOtp:z,setShowSecretInfo:Et,secretRevealed:pa,setSecretRevealed:Ft,onGetOtp:le,showDrawerAnimation:wa}),t.jsx(Ii,{rightSideComponent:Si(),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(Eo,{cardDetail:e.chargeCard,forDetailPage:!0}):void 0,showBackButton:!0,showMenuIcon:!1,backgroundColor:he.colors.grey5,style:{zIndex:3},onBackClick:$,titleStyle:{marginTop:l[0],...F==="small"&&{textAlign:"left"}},leftComponentStyle:F==="small"?{width:"10%"}:void 0,middleComponentStyle:F==="small"?{width:"80%"}:void 0,rightComponentStyle:F==="small"?{width:"10%"}:void 0}),t.jsx(Sr,{phoneNumberPopupDescription:ue.cardDetails.verifyPhoneNumberDescription,showOtpPopup:Qr,showPhoneNumberPopup:ti,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.loggedInUserPhone,onVerifyOtp:ce,onVerifyOtpSuccess:V=>{I(V),xt?Te(!0):Et(!0)},onFireVerifyPopOnClickAnalytics:Z,setShowOtpPopup:ei,onResendOtp:z,setShowPhoneNumberPopup:ha,onGetOtp:le}),ri&&t.jsx(zo,{currentCardName:e.chargeCard?.cardName??"",renameFetchState:e.updateChargeCardNameFetchState.fetchState,onCancelClick:()=>Rt(!1),onSubmitClick:V=>{e.chargeCard&&ie(be,V)}}),ai&&e.chargeCard!=null?t.jsx(Mo,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,cardDetail:e.chargeCard,transactionStatistics:e.transactionStatistics,depositAccountLimitFetchState:e.depositAccountLimitFetchState.fetchState,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,signedInUser:N,isDebitCard:De,cardIssuedByRoles:Y,cardHolderRoles:_,loggedInUserRole:oe,cardIssuedByDepartmentName:K,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:()=>St(!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,Ze("0,0.[00]",ye))}},recommendations:e?.chargeCard?.recommendations}):null,e.fetchState==="Error"?t.jsxs(al,{windowSize:F,children:[t.jsx(ol,{onClick:q,"data-testid":J("reload-card-detail"),children:t.jsx(sl,{})}),t.jsx(nl,{children:Le.reloadPage.label})]}):t.jsxs(qc,{children:[t.jsx(es,{controllerEmails:n,isChargeCardFeatureEnabled:w,isDebitCardFeatureEnabled:j,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:k,creditAccount:v,creditAccountRepayment:e.creditAccountRepayment,productInformation:E,cashbackInformation:b,creditAccountInformation:O,debitAccountInformation:H,isDebitCard:De,chargeCardCashbackDetailState:L,cardIssuedByRoles:Y,cardIssuedByDepartmentName:K,cardHolderRoles:_,cardHolderDepartmentName:D,classListFetchState:h,chargeCardDetailView:e,spent:$a,isCardNotPending:Mt,cardOwnerName:Pt,appleWalletLink:Q,googleWalletLink:ne,addressToShow:xa,secretRevealed:pa,isOwnCard:Be,vgsVaultId:S,showSecretInfo:rt,isSandboxEnv:ae,isCardDetailErrored:ua,signedInUserToken:G,selectedColor:ba,cardDetailsFetchState:Ca,setCardDetailsFetchState:fa,setIsCardDetailErrored:ma,setSecretRevealed:Ft,isCardDetailFetching:ka,handleColorCodeClick:va,onFireOnClickAnalytics:P,setShowPhoneNumberPopup:ha,setShowChangeSpendLimitPopup:St,setShowSecretInfo:Et,isOwnerNameCopied:fe,isAddressCopied:Tt,onOwnerNameCopyClick:pi,onAddressCopyClick:ui,showUpdateSpendLimitAction:gi,onUnlockChargeCard:i}),ee?Ci?t.jsxs(Jc,{windowSize:F,children:[t.jsx(pl,{}),t.jsx(Qc,{children:` ${ue.payEarly.paymentOf} ${Ze("0,0.[00]",e.creditAccountRepayment.initiatedRepayments)} ${ue.payEarly.madeOn} ${e.creditAccountRepayment.initiatedRepaymentDate?.format(Yc.visual.MMMDFormat)} ${ue.payEarly.isProcessing} ${ue.payEarly.theCompanyCreditLimitWillUpdateIn23BusinessDays}`})]}):zt?be?t.jsxs(Kr,{onClick:()=>{pe(!0)},windowSize:F,children:[t.jsx(ur,{windowSize:F}),t.jsxs(rl,{children:[t.jsx(mr,{children:ue.payEarly.transactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLow}),t.jsxs(el,{className:"pay-now-button",children:[ue.payEarly.payNow,t.jsx(Kc,{})]})]})]}):t.jsxs(Xc,{windowSize:F,children:[t.jsx(ur,{windowSize:F}),t.jsx(il,{children:t.jsx(mr,{children:ue.payEarly.yourTransactionsMayBeDeclinedBecauseTheCompanyCreditLimitIsRunningLowWeHaveNotifiedYourAdmin})})]}):null:null,Be&&F!=="small"&&Mt&&De===!1?t.jsx(Vo,{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:b,creditAccountInformation:O,debitAccountInformation:H,cardIssuedByRoles:Y,cardHolderRoles:_,cardIssuedByDepartmentName:K,cardHolderDepartmentName:D,isDebitCard:De,appleWalletLink:Q,googleWalletLink:ne,setWalletType:di,setIsAddToWalletDrawerOpen:ga,showDrawerAnimation:wa}):null,t.jsxs(yl,{windowSize:F,isOwnCard:Be,isMobileOrTabletScreen:ja,children:[Mt&&e.transactions.length>0?t.jsxs(t.Fragment,{children:[t.jsxs(ll,{windowSize:F,children:[ue.cardDetails.transactionListTitle,t.jsx(Qt,{display:"flex",placement:"right",title:t.jsx(ul,{children:ue.cardDetails.transactionListTooltip.replace("__receiptRequiredAboveAmount__",e.chargeCardConfig.receiptRequiredAboveAmount.amount.toString())}),children:t.jsx(hl,{})})]}),t.jsxs(ml,{windowSize:F,children:[t.jsx(wl,{windowSize:F,children:t.jsx(xl,{})}),t.jsxs(cl,{windowSize:F,children:[t.jsxs(gl,{children:[t.jsx(tl,{children:ue.aiCardAgentText}),Le.strings.space,ue.receiptBotMessage,Le.strings.space]}),t.jsxs(fl,{"data-testid":J("charge-card-detail-copy-email"),onClick:hi,onMouseEnter:()=>wt(!0),onMouseLeave:()=>wt(!1),children:[t.jsx(Cl,{children:e.chargeCardConfig.receiptBotEmail}),ze===!0?t.jsxs(Cr,{children:[t.jsx(bl,{}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct||ze,color:d.primaryDark,children:Le.copyToClipBoard.copied})})]}):t.jsxs(Cr,{children:[t.jsx(Sl,{color:ct?he.colors.primary:void 0}),t.jsx(gr,{children:t.jsx(fr,{shouldDisplay:ct&&F!=="small",children:Le.copyToClipBoard.copy})})]})]})]})]})]}):null,t.jsx(Jd,{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:B,isOwnCard:Be,onColumnSortConfigChanged:Ce,removeSnackbar:Ae,onChargeCardTransactionRowClick:me,onUpdateScrollYOffset:Ye,onUploadReceiptComplete:Se,updateChargeCardTransactionAttachments:Fe,updateChargeCardTransactionUploadReceiptsFetchStatus:X,updateChargeCardTransactionReceiptsShowTick:te,updateChargeCardTransactionIsViewReceiptClicked:M})]})]})]})},Xt=({chargeCardDetailView:e,chargeCardCashbackDetailState:i,isChargeCardFeatureEnabled:s,productInformation:u,cashbackInformation:h,creditAccountInformation:f,debitAccountInformation:c,creditAccount:g,creditAccountRepayment:m,isDebitCard:x,isChargeCardAdmin:S,analytics:n,controllerEmails:C,actionDetails:w,actionField:j})=>{e.chargeCard!=null&&i.fetchState==="Completed"&&(!s||g.fetchState==="Completed"&&m.fetchState==="Completed")&&(!(x&&S)||e.depositAccountLimitFetchState.fetchState==="Completed")&&n.trackCardsCopyIconClick(C,u,"Cards Detail","Copy","copied",j,w,h,f,c)},qc=r.div``,Kr=r.div`
1276
1276
  background: ${d.important};
1277
1277
  display: flex;
1278
1278
  align-items: center;