@zeniai/web-cockpit-ui 1.14.41-dev → 1.14.41-pune

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 (234) hide show
  1. package/dist/assets/{ACHDetailsPage-DZnFgkJZ-DOQT_66p.js → ACHDetailsPage-MP6kdpXK-BIWqR4TA.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DUz4HfZ1-DDsy5T-3.js → AIPerformancePage-BhOaFmfv-n728eNV2.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-YaZUNWd--O8LSUK2-.js → AccountInfoPage-D9Ft_CT9-B17Rt7-g.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CMDfYWOh-CAywpwvA.js → AccountInfoPageContent-DvWx52e0-BD6yj2u0.js} +10 -10
  5. package/dist/assets/{AccountLockedInfoModal-DVLQ0FPH-Dw0Mzs0S.js → AccountLockedInfoModal-B1_3C1ER-CDd0N92x.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D15tKD4N-BHFsM0at.js → AccountReconDetailsDrawerPage-D9e7qhm0-BSjkO2nB.js} +1 -1
  7. package/dist/assets/{AccountRow-D-CPGejv-3nsIGhlD.js → AccountRow-CiIWoLq3-edEx8OVG.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BP_NIYH9-CnC_JXAV.js → AccountsPromoCardStack-CC72plKm-B_EPEjmc.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CgUhQtxS-VJaGzpsw.js → AddAddressForCardDrawer-CIj76DoU-xvdtaZy0.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BJ1zD8Fp-DCVlRH8r.js → AddToWalletPage-B3vdkyWl-DfJiUX1g.js} +7 -7
  11. package/dist/assets/{AgingReportsPage-BC3a8enN-B0Ny64tL.js → AgingReportsPage-CbkMxxO_-DreLJO0h.js} +4 -4
  12. package/dist/assets/{AllUserItems-vM-R7kC6-Hc1XFGoe.js → AllUserItems-DJo9kLSI-7d78MjMn.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-C0soj3QL-D_H568JH.js → ApAgingDetailPage-DcAh6DLg-Cas0gcMn.js} +2 -2
  14. package/dist/assets/{AppBasePage-vYi6vqB3-DDEcP4KE.js → AppBasePage-DztnPkfs-CNOdLQuR.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-4OWU2TFD-Bm6VJ4Xc.js → AppDrawerContent-DDmKn21i-Dl3Yj_kj.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-D9sYwLt_-Cs1WdIMU.js → ApprovalRulesSettingsPage-Di8tAJ8K-0Kdg9P7n.js} +1 -1
  17. package/dist/assets/{ArAgingChart-B_o6w4NZ-BStmZoMY.js → ArAgingChart-tm5ZiNuY-bpLRwx8t.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CBVZytB--DljKmlr-.js → ArAgingDetailPage-B3JQ08nH-CrtMirIR.js} +1 -1
  19. package/dist/assets/{AttachmentView-B-4i3ruL-Ce5kJ15w.js → AttachmentView-p8mBqYjm-D3GaDDSA.js} +1 -1
  20. package/dist/assets/{BankAccountSection-BSpqPLea-jcjVQsx0.js → BankAccountSection-AuQLRvdb-gdyFccjw.js} +8 -8
  21. package/dist/assets/{BankAccountWarningSection-BS0dlrJ3-rFcejIdy.js → BankAccountWarningSection-HvUMABu0-DCgGbiJA.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-Bb8Ug1B7-Ca35_uKl.js → BankConnectionsSettingsPage-D61w90F9-7LXQWAP0.js} +8 -8
  23. package/dist/assets/{BillDetailPage-CuVdQqQW-D-MLjbqC.js → BillDetailPage-nqHoph6T-D7VwlDs_.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-zgj-w04l-BTC8-OQ-.js → BillPayApprovalRuleDetailPage-fZnmOmyN-CmlLJJjy.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-8Yu9sjNN-yFgRE--4.js → BillPayApprovalRulesPage-Bd87v4ca-B0mcHI06.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DwiZ7BtU-DTRzJ8nY.js → BillPayPromoPage-CNiTD_mM-Dh5MKcH1.js} +2 -2
  27. package/dist/assets/{BillPaySetUpPage-qkDjDwA2-DrjQkxCs.js → BillPaySetUpPage-BUSwkzqv-ZP6_2Tw6.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-CcAIOY2J-C4wd3CIP.js → BillingSettingsPage-aPRvtlqA-BQZRAF_j.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BONjbFFw-DH38bY9u.js → BillsBulkReviewDrawerPage-BU3VuxEm-JvEIeYLR.js} +1 -1
  30. package/dist/assets/{BoxItem-BebxqupW-HNk0cXZv.js → BoxItem-CZKWkdxd-D45EULBV.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DB134_1e-Dezt9bTI.js → BusinessVerificationPage-CeDGi-RH-DwsAZfqJ.js} +3 -3
  32. package/dist/assets/{CardNumberSubText-uxqTFnFX-CQWByZuH.js → CardNumberSubText-1BRQQyfd-B6rYIntF.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-CCb57-3P-CUiPVvsc.js → CashbackDetailPage-V-W_U5k1-C08AL6Q8.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-DZ53kEgD-C_F0yiZ_.js → ChargeCardDetailPage-BP-zAMYI-DEY2qEfm.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-67dSFsMj-DepagcAJ.js → ChargeCardListPage-DORW9YE4-CGJOJetl.js} +27 -27
  36. package/dist/assets/{ChargeCardListTable-Czriruk3-C77LTuYn.js → ChargeCardListTable-C32mZrwY-CyFa-RzP.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-DvMyjHD_-DV4g1daO.js → ChargeCardPromoPage-CE4kH4Js-BjaGUsOu.js} +4 -4
  38. package/dist/assets/{ChargeCardSetupPage-D6o-evfw-yIfm7wnj.js → ChargeCardSetupPage-CumpB2GQ-BxEutVnL.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-vmEZp2Gc-CjbNdRYn.js → ChargeCardStatementsPage-DPIAjww0-BUElYLlU.js} +1 -1
  40. package/dist/assets/{ChargeCardUtils-Bptae9Pt-VRxG6j3w.js → ChargeCardUtils-Wp4Ko18L-DTsLlepX.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-DU98sRYz-CSn5L-_V.js → ChaseOverlay-BGZfbx0H-C7wN1bY9.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-D559Iqfg-BRJjONky.js → CheckDepositDrawerPage-Bl52b4SW-DYsNIssz.js} +7 -7
  43. package/dist/assets/{CollapsableReportTable-C3JrOMbA-DTiYeWsA.js → CollapsableReportTable-B0wI9SM1-LqZDOdQu.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-ByPjcDhp-u1CRctkr.js → CompanyOfficerDetailsSection-DyOVRvtQ-HlMDKxIz.js} +12 -12
  45. package/dist/assets/{CompanyPassportCard-DtaT5LBX-DHjhoLiG.js → CompanyPassportCard-C_YUK3R3-C9vTVBKY.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-CYqtLLPi-_mqLwhoZ.js → CompanyPassportPage-QFJ0G7X7-CUHb39E7.js} +1 -1
  47. package/dist/assets/{CompleteProfile-bz1Sx_Ks-B8mrvwk-.js → CompleteProfile-DVE16v3y-hBzUk_Gy.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-DmQRRfzl-DBpCHM4T.js → ConfettiBurst-BA8BvtO--TQqeek3y.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-R5xXzTyF-D4Gg8o2e.js → CreateOrEditVendorPage-ncBGwfXK-B8OJlKSL.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CxFF-ITI-axtSCc88.js → CreditCardPaymentDrawerPage-DqEVQgMx-DHoIiLXN.js} +10 -10
  51. package/dist/assets/{CreditCardPaymentPlgSection-D5M15mry-DWikFIfL.js → CreditCardPaymentPlgSection-vmErttTD-9vo8N1WC.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-DdtldGsv-C_DHy72Q.js → CurrencySelectField-BEb19UaA-C6El5Pin.js} +4 -4
  53. package/dist/assets/{CustomerOnboardingActivationPage-S5ljEjEE-S9U3hOKj.js → CustomerOnboardingActivationPage-L4l1ybmh-zF98qamu.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-BB4D77z8-Cz-slCxQ.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B-aHwtTV-QlkEepQg.js → CustomerOnboardingDetailPageSkeleton-D3Zm658F-C2cudXzH.js} +7 -7
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-D_WXGOKQ-DFojtO8-.js → CustomerOnboardingNoStepsPage-BXsJFpEX-0G3ydnEy.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-D3GUyy20-CsL80Cou.js → CustomerOnboardingPage-D3zpI1df-BIo6TdL7.js} +6 -6
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BcpIczxe-BW3RcpAe.js → CustomerOnboardingProductSuitePage-DjVZfC2C-D_Uv8e8f.js} +1 -1
  59. package/dist/assets/{Dashboard-D19IvfgJ-CqIi77FL.js → Dashboard-wY0FneRs-V_wgDAP8.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DucQv3ZE-Bf5wQGY4.js → DashboardReportPage-CMgr0CSc-CJZ40GLi.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-zEtk_8x9-CYhwL7bq.js → DashboardSidebarBackgroundAnimation-B73UBY5T-D5kdRGqv.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-DG7JaTJY-BlkWgxrw.js → DepositAccTransactionItem-DrqBG940-DmUhrS8P.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-DEDzaAaX-CGESf2Ix.js → DepositAccTransactionListPage-2xDjOUwm-DMmIbUzF.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-DH4keptD-DPs2YbvR.js → DomesticWireDetailsPage-vRHD5DmW-HBzUNHyS.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DQZd_zyi-DgSvHPf2.js → DownloadOverlay-D_UoB4Xy-CC7gI-hn.js} +1 -1
  66. package/dist/assets/{DrawerPage-CtDNbXHp-BcVXCh6I.js → DrawerPage-ijHe0bCp-DYncBsQl.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-ZzjDJoTQ-BpAnOUqT.js → EditPeoplePage-BehcmP1s-DDHc5TZf.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-BxzB9b4R-BJWAWVjR.js → EditReimbursementDetailPage-Cz82Vz26-DPcrqC8q.js} +14 -14
  69. package/dist/assets/{EntityDetailPage-CuPr64cj-D-dluOpL.js → EntityDetailPage-CN-ewzjy-BcJyCXVM.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-CX-KbVbj-BmdnGgTg.js → EntitySummarySection-B4ozhtlU-CuhDVVbX.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-DRFk1z66-CpxChPr7.js → ExpenseAutomationOverviewPage-BmNuSoUs-BMzRB3nc.js} +11 -11
  72. package/dist/assets/ExpenseAutomationPage-Cz3JsW-E-CYqSG7FC.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-DWFyq0OM-EYpsZYgz.js → ExpressPayPage-CgrGtZ4F-UTaF4t9H.js} +5 -5
  74. package/dist/assets/{FeaturePreviewPage-Bdostf75-D83d6wpt.js → FeaturePreviewPage-Dk_c37Rm-C61SZl31.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-CFs_c9UA-DwJ5Dcso.js → FollowStepsSection-BVi7m38_-BZEw0T-E.js} +7 -7
  76. package/dist/assets/{GlobalReviewListPage-Cw8nJl7r-C6n2w9zr.js → GlobalReviewListPage-DiZGC9B1-DSlfiez8.js} +1 -1
  77. package/dist/assets/{HelpButton-DJeoop_B-BWwsX5D8.js → HelpButton-DiIoYeXn-Ctwzgsr_.js} +1 -1
  78. package/dist/assets/{InformationCardStack-DXqbwonQ-Ch0IQdkf.js → InformationCardStack-C8-4dhWR-BAea0hjm.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-7JsHAYeW-D3r0iuln.js → InsightsCardStack-BKm0dSeJ-tQyIIMQ-.js} +1 -1
  80. package/dist/assets/{InsightsSection-BkKqEnbT-C5gBUpeX.js → InsightsSection-C9MHOCQd-CQVD8k8O.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-DQ_GH1NV-DPEUMOD7.js → IntegrationsSettingsPage-4qlL5Dsx-CKoh9_oH.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-B6ER7qfQ-DZ7t3PY0.js → InternationalWireSwiftDetailsPage-DqCtPykV-BpfZECRK.js} +10 -10
  83. package/dist/assets/{InternationalWireVerificationPage-hb0w0-FP-DUPDNg6N.js → InternationalWireVerificationPage-Cl-p0inO-VmseixyP.js} +1 -1
  84. package/dist/assets/{InviteFormPage-1dBkKRKs-CDQVB47W.js → InviteFormPage-L6j0rOBW-DLKkOO8k.js} +8 -8
  85. package/dist/assets/{InvitePageListView-DhpXrg6S-DiOTLtvA.js → InvitePageListView-KYjMIc4q-C0zPnAaz.js} +11 -11
  86. package/dist/assets/{InvitePeoplePage-DrHGaYn6-m3npi43j.js → InvitePeoplePage-CbZqVsTp-BS_3fP8d.js} +4 -4
  87. package/dist/assets/{InvoiceUploadSection-D79UFJii-DdMFEYpH.js → InvoiceUploadSection-DZC4oscG-d9d1dfZw.js} +3 -3
  88. package/dist/assets/{IssueChargeCardPage-B_O7rJSC-BNC2oqUG.js → IssueChargeCardPage-DMdZCfqA-COBCCjlx.js} +10 -10
  89. package/dist/assets/{LabeledAddressValue-DWpOvFnM-DdQWoBGa.js → LabeledAddressValue-CBOrzSsG-D6Qyr-Vk.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-YuLcra47-CTq3RlNq.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-tNAjM4hM-UitCLVQY.js → LabeledControlledCheckBoxField-BoXsUqpR-DgBItIwu.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-yMTUEfLS-Cv3lgHkM.js → LabeledCreatableSingleSelectField-CQPkrdRe-rvbNjzNv.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-BQDoGQsy-CxOUU_-m.js → LabeledDocumentField-DEeeTuVw-urr6JJ8L.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-Dm1etnU5-CdmHAUde.js → LabeledDropDownFormattedTextField-DYRkxlY--7TQiMFql.js} +3 -3
  95. package/dist/assets/{LabeledText-BRS0e-dG-DDgPnctj.js → LabeledText-DQiR_FIX-B541lmGW.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Bml1bcSK-Dl62K6kk.js → LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-iw4cLdRr.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-l2veUn4k-Ua9gPYDx.js → LabeledZeniRolesDropDownField-azPB8idg-DtAOAxQ7.js} +6 -6
  98. package/dist/assets/{LinkJETransactionPage-VtgdRNhL-DaaUfchT.js → LinkJETransactionPage-Ct0HcxvN-D2JMsVsV.js} +7 -7
  99. package/dist/assets/{LowBalancePopup-Dg43FP8p-bwHMQG6q.js → LowBalancePopup-Zvy2iURT-MApuMzdY.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-UfT8yCmX-B5RfQ8BO.js → MagicLinkACHDetailsPage-BY6pEieF-CArOjoVa.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-Bgwf3qMA-b2zar2tm.js → MagicLinkDomesticWireDetailsPage-BK5RZSiS-B4gjxdg2.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-B9QWmf9B-Bb5S_u0d.js → MagicLinkInternationalWireDetailsPage-hK5cNiNB-DdOsbS3o.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-SjBCvTm5-BcKdcdCb.js → MagicLinkSuccessPage-Drn_p982-CK0hfrVo.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-b4t7XGb8-BMR9XZXP.js → MagicLinkTitleSection-DRMHVOzF-DEkSaohc.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-Dk8tP8LP-BVCvW6bo.js → MailingDetailsSection-DgdAYgpS-Fu_811Zm.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-gebcIIpu-BIluNFi_.js → MeetingCalenderPopup-CAh7iae0-C0eZhjUj.js} +1 -1
  107. package/dist/assets/{Menu-BeDBbRH8-tLhci4E2.js → Menu-bleLgSLu-DhDOH9zk.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-Bp6o9Mts-6a-EbmNN.js → MyBankConnectionsSettingsPage-DRxmQCbq-FjgevmOT.js} +1 -1
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-CEWRTVvz-Bo3iUOWs.js → MyPendingActivationChargeCardListPage-BYLhb47G-B8kCpSAe.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-Dvgp3Ycy-DeYdvPvN.js → MyProfileSettingsPage-eVfCRTfx-HA3kQuse.js} +3 -3
  111. package/dist/assets/{NavBarWithPicker-XmGu6RQR-BbvdjKwY.js → NavBarWithPicker-BE2MW7hB-CFo0-B41.js} +1 -1
  112. package/dist/assets/{NavigationArrow-DuEUVDwX-XuiXu7eu.js → NavigationArrow-eEaMttBX-CaVHzVzK.js} +1 -1
  113. package/dist/assets/{NavigationDots-BcP-rh-K-DgliXtlt.js → NavigationDots-CNwL0a7I-ycY998lH.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-CI0ohS8I-DfdTOBf5.js → NewGlobalMerchantPage-CSWqCqAC-IICuGFAC.js} +2 -2
  115. package/dist/assets/{NoDataChart-Cu34Y6fv-ZwI_dimc.js → NoDataChart-DNmdY5gQ-88rt-13k.js} +1 -1
  116. package/dist/assets/{NoDataTable-CPWzH0PE-CSbvPnTP.js → NoDataTable-DW2wAX3o-Ev4DYYSH.js} +1 -1
  117. package/dist/assets/{NotFoundPage-yZOAgP9f-C9ydYh9x.js → NotFoundPage-BMJTG-tj-C_w7KIUM.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-5bXbyP0i-B1Th7YXN.js → NotificationSettingsPage-Vd3UvdLu-BxFVurUR.js} +11 -11
  119. package/dist/assets/{NotificationsListConfig-DINVh9-P-DriwsKTQ.js → NotificationsListConfig-DbHYPEWZ-C6L3NOwJ.js} +1 -1
  120. package/dist/assets/{NotificationsPage-CKcEU-jy-BTZ54ha2.js → NotificationsPage-BaekDEw7-D8UaqDZg.js} +1 -1
  121. package/dist/assets/{OpExByVendorPage-3oQc7n37-DX80HzPe.js → OpExByVendorPage-DNyTA9nx-DMZqXgCr.js} +1 -1
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo--veNoskc.js → OverlayContainerPage-Bmu909Fo-CB3ZsNzf.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-BPcWHQXd-B7xWAJWZ.js → PandLWithForecastPage-DbP4ybN4-D1Uq3N0a.js} +1 -1
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D7JHebDo-BjGEY871.js → PaymentAccountSetupBillingAddressSection-Dd4Aen8j-BTDrKQZ5.js} +1 -1
  125. package/dist/assets/{PeoplePage-AdCHl8Rj-Dbloz6Zr.js → PeoplePage-B3n7ek2h-gYAXMh-L.js} +1 -1
  126. package/dist/assets/{PortfolioAllocationFormPage-DJVrByWQ-DsV-ltqP.js → PortfolioAllocationFormPage-CzA_c7hR--GR7cVwj.js} +1 -1
  127. package/dist/assets/{PortfolioDetails-DaiiBOps-H9tSp-Ev.js → PortfolioDetails-Drgv4Osg-BGswE48B.js} +1 -1
  128. package/dist/assets/{ProductsCarousel--PIp0Wwx-CQ4g-Ayf.js → ProductsCarousel-BnnfJR0o-DuEhjdG1.js} +1 -1
  129. package/dist/assets/{PromoBaseCards-hEn7m0Ea-DLWKi3td.js → PromoBaseCards-BGHJivI8-Bv4vo0R4.js} +1 -1
  130. package/dist/assets/{QBOConnectionDialog-DByNCCyR-CpV11equ.js → QBOConnectionDialog-uiW9eeZu-Dy2SH6Pc.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-NdDTo0GG-D9UR0G4X.js → QBOSetupSection-DPb0VAii-EQw2xdj5.js} +8 -8
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CCTo6kvJ-CrrezfdZ.js → ReimbursementApprovalRuleDetailPage-Cvok7KBA-BEqVqwsu.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRulesPage-D13xg5lU-pl4WkdF5.js → ReimbursementApprovalRulesPage-C1AFF_DM-CDJbXtJC.js} +1 -1
  134. package/dist/assets/{ReimbursementDetailPage-1S7-fp6x-BMDs_JfM.js → ReimbursementDetailPage-Du6R1zje-D1YFGaXV.js} +4 -4
  135. package/dist/assets/{ReimbursementPromoPage-TwSf4vIh-CKHGZ1xS.js → ReimbursementPromoPage-CW9eyjp9-B_SyOwLo.js} +2 -2
  136. package/dist/assets/{ReimbursementSetUpPage-D-g1h8Z7-bmV_B-LU.js → ReimbursementSetUpPage-CbPwgIqt-B2iO0-rg.js} +3 -3
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-nsM0DGyC-CPdG3QjQ.js → ReimbursementsBulkReviewDrawerPage-DmRIywf6-BZCVgyyR.js} +1 -1
  138. package/dist/assets/{ReloadCard-K9SGlmus-xxDfRKGg.js → ReloadCard-Dvn17Oxl-DR2ZGl4V.js} +1 -1
  139. package/dist/assets/{ReportTableViewSelector-BVw08xMR-CQWajHIh.js → ReportTableViewSelector-C5_qr5qe-CZbpaUM0.js} +1 -1
  140. package/dist/assets/{ReportsPage-DrbFSYgn-CA7KXsdI.js → ReportsPage-BNcymVwf-aacXTigB.js} +1 -1
  141. package/dist/assets/{RevenueChart-mib92BSo-Cc5NrYGu.js → RevenueChart-DILkui6c-DpfzJJzi.js} +1 -1
  142. package/dist/assets/{ReviewDetailsPage-C5f_GAjv-C0pMwG1h.js → ReviewDetailsPage-ZYzvK95X-D7eFuA9s.js} +1 -1
  143. package/dist/assets/{ReviewOverlay-CFgWwm-p-D8hMhtS7.js → ReviewOverlay-DhUFI1ES-DFxDvDH0.js} +1 -1
  144. package/dist/assets/{RoleWithToolTip-C5grx1DM-BwXp973u.js → RoleWithToolTip-_W95JBwt-CxTFR1LS.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BfqQFFiq-5WvFqXY1.js → ScheduleDetailsFixedAssetsPage-iQXV-V_H-BNWj5DjJ.js} +3 -3
  146. package/dist/assets/{ScheduleDetailsPage-DkNwuZzq-BSSvoyYH.js → ScheduleDetailsPage-KgHwQGrw-CRlFF6jz.js} +1 -1
  147. package/dist/assets/{ScheduleSequenceTable-CviQlsxi-rcHIY2AS.js → ScheduleSequenceTable-Bixq8Q7W-DWxDGmbt.js} +9 -9
  148. package/dist/assets/ScreenRoutes-Bkt52uu9.js +206 -0
  149. package/dist/assets/{SetUpAccountSection-d5HPps92-BumzpJ8H.js → SetUpAccountSection-D8FMVhkL-aEgEWNlh.js} +1 -1
  150. package/dist/assets/{SetUpDefaultSection-D1OXPM9M-Bq-_twjx.js → SetUpDefaultSection-CI0mxu3H-Bvc2GjWa.js} +8 -8
  151. package/dist/assets/{SignIn-tpfovElQ-BXVSO7aC.js → SignIn-DslenepV-kl9my2IL.js} +1 -1
  152. package/dist/assets/{SignInScreen-DFen9Hti.js → SignInScreen-Cy-NgVa_.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-B3t2U-Lq-gch2vKkU.js → SpendManagementListViewPage-D7SzmCmM-BkfFjMdB.js} +10 -10
  154. package/dist/assets/{SpendManagementPerTabPage-vATAr6zx-5aOLNMGw.js → SpendManagementPerTabPage-DKaDr4mu-DNFKBybs.js} +1 -1
  155. package/dist/assets/{SpendManagementSection-C8S1zv_Z-Bq5g1RtW.js → SpendManagementSection-Ddfq2u6H-AC-e6rPp.js} +1 -1
  156. package/dist/assets/{SpendMgmtSetupAccountSection-C3n3CKZp-DbtkgBKN.js → SpendMgmtSetupAccountSection-CPnNzjr--CgZWbJd7.js} +1 -1
  157. package/dist/assets/{StatementItem-C2VaQMdB-B_bYCc-E.js → StatementItem-B2uPIFUk-B11nZAae.js} +2 -2
  158. package/dist/assets/{StatementsPage-DD2PvuDv-BNWPUW2T.js → StatementsPage-o7MvNKvd-k8fvcoRU.js} +5 -5
  159. package/dist/assets/{StatusSwitcher-CI_4NJc0-tOBMLPnh.js → StatusSwitcher-kWLQCCwS-BQBzuvxV.js} +1 -1
  160. package/dist/assets/{SubTabSwitcher-CKh0fbAL-Da7g1KnT.js → SubTabSwitcher-BKm9FxhL-BBcjNos_.js} +1 -1
  161. package/dist/assets/{SummaryCard-56XeB7PA-BbL-SU9r.js → SummaryCard-DBMfNfN2-CxrLGKq4.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-el6vudQA-CXUyOw6Z.js → TaskManagementPage-D_wjK-S2-B0dcD4kA.js} +21 -21
  163. package/dist/assets/{TimeRangeSwitcher-X1sd0HJo-CYEpjFJY.js → TimeRangeSwitcher-2vDR_AEV-BbQMpJD3.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcher-TLcNg_CN-DNN75s7g.js → TimeframeSwitcher-BB3_i5V0-DVjpfJ9Q.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-Cnlgngu_-D51e1VCz.js → TimeframeSwitcherWithToggle-CdP0ViK8-CK7bqtK5.js} +1 -1
  166. package/dist/assets/{TopExCard-BuCdMdGn-DRiAtUxO.js → TopExCard-BGgGFzmK-DnxQur7z.js} +1 -1
  167. package/dist/assets/{TopExDetailPage-DJwK85mY-BYdD1UbV.js → TopExDetailPage-CbzYG54M-BUNlHIsb.js} +1 -1
  168. package/dist/assets/TransactionDetailPage-C-CfEtCO-DnX-nEe2.js +912 -0
  169. package/dist/assets/{TransactionList-vNVcmGH2-DosEnW24.js → TransactionList-C0xK6_zI-DYm4aJPL.js} +1 -1
  170. package/dist/assets/{TransactionListBig-C_1iHb-m-Bsz-XZMV.js → TransactionListBig-CIX6CdX--D9u9NYfr.js} +1 -1
  171. package/dist/assets/{TransactionListPage-vE1jowuA-CuFJUNVo.js → TransactionListPage-B7ppBJig-CoaPrddT.js} +1 -1
  172. package/dist/assets/{TransactionVendorDetailPage-C9wGiyJs-HgDi-00y.js → TransactionVendorDetailPage---HGdQiZ-C5JQCG_9.js} +3 -3
  173. package/dist/assets/{TransferDrawerPage-6AaaV1fR-8vGJfXB1.js → TransferDrawerPage-DerGmul8-Bdr4PeOt.js} +20 -20
  174. package/dist/assets/{TreasuryOverviewPage-8z3dgsQ--B_sHCcY2.js → TreasuryOverviewPage-DW2gZwip-BseT2B7e.js} +33 -33
  175. package/dist/assets/TreasuryPromoPage-DzqdEmPJ-RU_nI2LH.js +439 -0
  176. package/dist/assets/{TreasurySetupPage-BietgoUm-3MaRDUuZ.js → TreasurySetupPage-Bo0HQeeU-Dm5lF3MK.js} +1 -1
  177. package/dist/assets/{TreasuryStatementsPage-BrTZ2Tc9-B4w6Xx4L.js → TreasuryStatementsPage-DS_VK4WN-BS6QMDBS.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-Bm8Kh9ci-C6PUGs5K.js → TreasuryTaxLetterPage-DgwqyL6v-2VtCTpGq.js} +2 -2
  179. package/dist/assets/{TreasuryTransferOrReviewPage-DAsCB5hY-Feh6oxY-.js → TreasuryTransferOrReviewPage-ZrSACgLJ-CmJuP7nJ.js} +25 -25
  180. package/dist/assets/{TrendChart-CDuKYDbr-BRFmjbUx.js → TrendChart-D07k3uRr-pyZC_7Mp.js} +1 -1
  181. package/dist/assets/{TrendWithTransactions-CXFGBD3a-smyKZENi.js → TrendWithTransactions-ibwuOssC-CPQagKsz.js} +1 -1
  182. package/dist/assets/{UncategorizedAccountsMappingPage-CZp60Srt-DBL5g7Kh.js → UncategorizedAccountsMappingPage-D1m2Ok2e-D_7IL5Nn.js} +8 -8
  183. package/dist/assets/{UnitIntegrationPage-Bt3BsIP--je6E2n0g.js → UnitIntegrationPage-BJxRjjfK-VVowRBgS.js} +1 -1
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-CiKy5Nj7-DGG9Ke3q.js → UploadAdditionalDocumentOverlay-DI_GZA8A-TjqXSm1m.js} +1 -1
  185. package/dist/assets/{Vendor2FAPopup-mpeQ7vp6-DmvRVpSh.js → Vendor2FAPopup-80vvc7gE-LbAIArR6.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-DaH6D39U-CDaqOKLr.js → VendorACHDetailsPage-CQcuiNPr-D635l79F.js} +1 -1
  187. package/dist/assets/{VendorDetailPage--NEui4cR-Dsh5qXEt.js → VendorDetailPage-Dx_yfZDH-DDAcRoLZ.js} +4 -4
  188. package/dist/assets/{VendorDomesticWireDetailsPage-ZpWio-lR-PymBt9QS.js → VendorDomesticWireDetailsPage-DN5x3F_Z-oAoMoL47.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BH50orlv-DAjE_4Pl.js → VendorFiling1099EditablePage-8Jz187lD-DL8SV9bw.js} +5 -5
  190. package/dist/assets/{VendorFirstReviewPage-F3ufon8s-BSuS_kVY.js → VendorFirstReviewPage-CokvYaRq-IPe_9Yn8.js} +15 -15
  191. package/dist/assets/{VendorInternationalWireDetailsPage-BFCRIyx4-BBGJ9Cio.js → VendorInternationalWireDetailsPage-lo9l2Q88-eTaUd9gI.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Bsw5XWc5-DSXxlPRB.js → VendorInternationalWireSwiftDetailsPage-CPj3zrDk-k4liJGuO.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-DyEqMESi-CrSM-LDL.js → VendorsAccountsSection-BqoW4DlP-DYqIR5DE.js} +1 -1
  194. package/dist/assets/{VerifyDevice-Cghi40l4-CfyLKZtU.js → VerifyDevice-D8iPRJ3k-BjXCJxq-.js} +1 -1
  195. package/dist/assets/{VideoPopup-RZCI8_Gx-CHBqyqPM.js → VideoPopup-SdlRHLkM-Zrce0F9x.js} +5 -5
  196. package/dist/assets/{WarningsDrawerPage-ChJqfUoo-BI-fdXaI.js → WarningsDrawerPage-qYWFsE3s-BM1ljnnI.js} +7 -7
  197. package/dist/assets/{ZeniAccountDetailPage-BVl5QTX2-DgzxI6rk.js → ZeniAccountDetailPage-BL2a5Dmz-CRL7qZeh.js} +4 -4
  198. package/dist/assets/{ZeniAccountListViewPage-CsAF1Cyb-DrB02VR_.js → ZeniAccountListViewPage-CWqzDWcO-BNSEz0L-.js} +6 -6
  199. package/dist/assets/{ZeniAccountNavBarPieces-BlVvO8S4-C-rnZJlt.js → ZeniAccountNavBarPieces-C0MyICK2-DDdbu8lx.js} +1 -1
  200. package/dist/assets/{ZeniAccountPromoPage-Bdx-nwJO-CbljFu8O.js → ZeniAccountPromoPage-CBm3w0kN-UKTgby87.js} +5 -5
  201. package/dist/assets/{ZeniAccountSetupPage-vZ7vjnBw-BLwDLz1Z.js → ZeniAccountSetupPage-C5VzT9lH-CWOELI4p.js} +1 -1
  202. package/dist/assets/{ZeniCopyright-CpkvfVwM-CIZZBKov.js → ZeniCopyright-BUctH39C-DyFBA7jS.js} +1 -1
  203. package/dist/assets/{ZeniTransferAmountSlider-H-uhh5z4-D4J4KzZl.js → ZeniTransferAmountSlider-q37z6XvR-CpkNA_dl.js} +1 -1
  204. package/dist/assets/analytics-B3n5JGPc.js +7 -0
  205. package/dist/assets/{analyticsHelper-nzXGHX-f-BWACnrlc.js → analyticsHelper-B3uAu0es-D5bv_Tk4.js} +1 -1
  206. package/dist/assets/{analyticsHelper-DmlEDKWE.js → analyticsHelper-B8BZdghJ.js} +1 -1
  207. package/dist/assets/{chartTypes-DJwqK5Pl-zX622eWk.js → chartTypes-CJmQ6FtI-Ha5e563Y.js} +1 -1
  208. package/dist/assets/{commonDimensions-BI8wHGzb-a9YqUB1q.js → commonDimensions-WRL2ZVK_-DQ7f551Y.js} +1 -1
  209. package/dist/assets/crypto-BDNqpTKX.js +40 -0
  210. package/dist/assets/{detailCommon-BqVKB773-CqWd3YGb.js → detailCommon-Dfxas1Kf-B-9ceYeB.js} +1 -1
  211. package/dist/assets/{downloadPdf-BET_DSP9-C3sGc_xm.js → downloadPdf-B1f0mDl2-DZ9St6Zh.js} +1 -1
  212. package/dist/assets/{index-CAI8M7It.js → index-B3ZVYk1F.js} +15 -15
  213. package/dist/assets/{mapLoadingInProgressToTreeNode-BrrNGuAc-DonEuZ88.js → mapLoadingInProgressToTreeNode-BG784RuM-DGZs46wV.js} +1 -1
  214. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Dwov7nU5-Cj199IzK.js → mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-D8olWEXo.js} +1 -1
  215. package/dist/assets/{mapSpacerToTreeNode-CgMaqSi_-DMuiDG3V.js → mapSpacerToTreeNode-CcgVbOH5-DHPhmOVG.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-BrNgTlbp-CrLN8tKW.js → mapTimeframeBalancesToTreeNode-CU583ICK-D8rCHpI9.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-Brqz18bN-BJpH6WQn.js → mapTimeframeBalancesToTreeNode-DTlwFauL-CumQVWB0.js} +1 -1
  218. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-UT-UQHkH-DDASaeZZ.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-BfpwOR3K.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-CAwHN54Z-_XSCSjh7.js → toCOABalancesWithID-DTfegixr-78ZP1LOH.js} +1 -1
  220. package/dist/assets/{toChartData-pW2XLZo--xzwvSUvM.js → toChartData-CH5DcWUY-BzD5DRW0.js} +1 -1
  221. package/dist/assets/{treasuryColorHelper-CdOoL_vC-DNqgoHOS.js → treasuryColorHelper-BdPkQoh7-7gPPrX3_.js} +1 -1
  222. package/dist/assets/{uploadAttachment-nqQ-JycC-mCCDWYky.js → uploadAttachment-COwu5Mqo-DMKN-lEQ.js} +11 -11
  223. package/dist/assets/{uploadReceipts-dxsKhm9I-BsqmH2Ug.js → uploadReceipts-dxsKhm9I-BHZQ8cK5.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +1 -1
  226. package/dist/assets/CustomerOnboardingContainerPage-B8_LR61d-BZa4Gjqp.js +0 -1
  227. package/dist/assets/ExpenseAutomationPage-ugq4J-e3-s17oPPzF.js +0 -1650
  228. package/dist/assets/LabeledAddressValueField-DxW5wUY3-CQXZCw2q.js +0 -45
  229. package/dist/assets/ScreenRoutes-BvDw9jhZ.js +0 -206
  230. package/dist/assets/TransactionDetailPage-fKLOaC53-zxkVC7Oy.js +0 -912
  231. package/dist/assets/TreasuryPromoPage-BRZCU7u0-D1x2sLRP.js +0 -477
  232. package/dist/assets/VideoPlayer-BqxR2aZr-B01NlPcO.js +0 -38
  233. package/dist/assets/analytics-Dr_Q0qi5.js +0 -73
  234. package/dist/assets/crypto-Ccg-ICil.js +0 -35
@@ -1,4 +1,4 @@
1
- import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j as t,aX as kt,fF as Pt,cV as A,v as C,bp as de,g as n,a0 as Tt,ab as ce,$ as me,C as B,w as E,J as It,y as Mt,cs as At,aD as Fe,b6 as Et,af as ue,a6 as Lt,n as ge,q as T,d6 as Rt,r as Dt,t as zt,c7 as Nt,cr as Ot,aR as Bt}from"./index-CAI8M7It.js";import{b as O,n as i,j as xe,k as _t}from"./vendor-rkTZJa59.js";import{Y as Ft}from"./SpendManagementSection-C8S1zv_Z-Bq5g1RtW.js";import{ChargeCardPromoUserContent as Wt}from"./ChargeCardPromoPage-DvMyjHD_-DV4g1daO.js";import{N as Ut,J as Yt}from"./PromoBaseCards-hEn7m0Ea-DLWKi3td.js";import{O as Gt}from"./ChargeCardListTable-Czriruk3-C77LTuYn.js";import{r as Jt,i as Ht}from"./graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js";import{t as Vt,o as qt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./MeetingCalenderPopup-gebcIIpu-BIluNFi_.js";import"./NavigationDots-BcP-rh-K-DgliXtlt.js";import"./usp-line-BBd1wKwW-u-VMxix8.js";import"./Menu-BeDBbRH8-tLhci4E2.js";import"./RoleWithToolTip-C5grx1DM-BwXp973u.js";import"./CardNumberSubText-uxqTFnFX-CQWByZuH.js";import"./ChargeCardUtils-Bptae9Pt-VRxG6j3w.js";const be={infoSubheadingTextMarginTop:new B(T[0],T[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:d,title:h,subTitle:r,slidingTextList:u,onClick:l})=>{const p=pe();return t.jsxs(Qt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>l(e),children:[t.jsxs(We,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{children:d}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(la,{children:t.jsx(Yt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:d,creditLimit:h,onCreateNowClick:r})=>{const u=pe();return t.jsx(Xt,{windowSize:u,cardType:e,children:t.jsxs(Kt,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:d})}),t.jsx(da,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},Zt=e=>{const s=e-1;let d=`
1
+ import{x as St,Y as jt,fq as vt,l as A,fl as v,e as pe,B as Oe,o as a,u as _e,j as t,aX as kt,fE as Pt,cV as E,v as C,bp as de,g as n,a0 as Tt,ab as ce,$ as me,C as O,w as M,J as It,y as At,cs as Et,aD as Fe,b6 as Mt,af as ue,a6 as Lt,n as ge,q as T,d6 as Rt,r as Dt,t as zt,c7 as Bt,cr as Nt,aR as Ot}from"./index-B3ZVYk1F.js";import{b as N,n as i,j as xe,k as _t}from"./vendor-rkTZJa59.js";import{Y as Ft}from"./SpendManagementSection-Ddfq2u6H-AC-e6rPp.js";import{ChargeCardPromoUserContent as Wt}from"./ChargeCardPromoPage-CE4kH4Js-BjaGUsOu.js";import{N as Ut,J as Yt}from"./PromoBaseCards-BGHJivI8-Bv4vo0R4.js";import{O as Gt}from"./ChargeCardListTable-C32mZrwY-CyFa-RzP.js";import{r as Jt,i as Ht}from"./graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js";import{t as qt,o as Vt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-CAh7iae0-C0eZhjUj.js";import"./NavigationDots-CNwL0a7I-ycY998lH.js";import"./usp-line-BBd1wKwW-u-VMxix8.js";import"./Menu-bleLgSLu-DhDOH9zk.js";import"./RoleWithToolTip-_W95JBwt-CxTFR1LS.js";import"./CardNumberSubText-1BRQQyfd-B6rYIntF.js";import"./ChargeCardUtils-Wp4Ko18L-DTsLlepX.js";const be={infoSubheadingTextMarginTop:new O(T[0],T[0]),cardsMinWidth:new O(343,353)},ve=Oe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:d,title:h,subTitle:r,slidingTextList:u,onClick:l})=>{const p=pe();return t.jsxs(Qt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>l(e),children:[t.jsxs(We,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{children:d}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(la,{children:t.jsx(Yt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:d,creditLimit:h,onCreateNowClick:r})=>{const u=pe();return t.jsx(Xt,{windowSize:u,cardType:e,children:t.jsxs(Kt,{children:[t.jsxs(Ye,{children:[t.jsx(Ue,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:d})}),t.jsx(da,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},Zt=e=>{const s=e-1;let d=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }
@@ -73,7 +73,7 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
73
73
  justify-content: space-between;
74
74
  `,Ue=i(Rt)`
75
75
  color: ${e=>e.theme.colors.brandColorGold};
76
- `,ea=i(Nt)`
76
+ `,ea=i(Bt)`
77
77
  color: ${e=>e.theme.colors.brandColorJade};
78
78
  `,ta=i(Dt)`
79
79
  color: ${n.neutralGrey5Light};
@@ -81,7 +81,7 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
81
81
  `,aa=i.div`
82
82
  width: auto;
83
83
  text-align: left;
84
- `,ia=i(E)`
84
+ `,ia=i(M)`
85
85
  color: ${e=>e.theme.colors.brandColorJade};
86
86
  `,ra=i.div`
87
87
  display: flex;
@@ -89,7 +89,7 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
89
89
  gap: ${a.sp2};
90
90
  height: 21px;
91
91
  overflow: hidden;
92
- `,he=i(E)`
92
+ `,he=i(M)`
93
93
  display: flex;
94
94
  flex-direction: column;
95
95
  align-items: flex-start;
@@ -105,12 +105,12 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
105
105
  display: flex;
106
106
  flex-direction: column;
107
107
  align-items: flex-start;
108
- `,na=i(Ot)`
108
+ `,na=i(Nt)`
109
109
  width: ${a.sp3};
110
110
  height: ${a.sp3};
111
111
  color: ${n.success};
112
112
  border-radius: 50%;
113
- `,oa=i(Bt)`
113
+ `,oa=i(Ot)`
114
114
  width: ${a.sp4};
115
115
  height: ${a.sp4};
116
116
  color: ${e=>e.theme.colors.brandColorJade};
@@ -149,7 +149,7 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
149
149
  color: ${n.neutralGrey5Light};
150
150
  `,ua=i(zt)`
151
151
  color: ${n.neutralGrey5Light};
152
- `,_={contentContainerMargin:new B(T[3],T[4],T[8]),infoSubheadingTextMarginTop:new B(T[0],T[0]),cardsMinWidth:new B(343,353)},ga={remainingText:new It("largeRegular","largeRegular")},{spendManagement:{chargeCard:{payEarly:m,cardList:$,chargeCardsPromo:c}},common:y,dateFormat:V}=Be.getLocalizedStrings(),mi=({chargeCardListView:e,searchText:s,admins:d,companyLegalName:h,isCashbackFeatureEnabled:r,creditCardPayNowThreshold:u,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g,isChargeCardSetupEnabled:x,companyChargeCardInfoCreditAccountLimit:Ve,controllerEmails:Z,depositAccountListWithDebitCardIssued:k,chargeCardCashbackDetailState:P,uiState:qe,signedInUser:Ze,creditLimit:F,cashbackRate:Q,onSearchTextChanged:Qe,onClickSetupIcon:Xe,isEarlyPayEnabled:L,onClickStatementsIcon:Ke,onChargeCardRowClick:et,onChargeCardResendInviteClick:tt,onChargeCardRevokeInviteClick:at,onIssueCardClick:it,onBackClick:rt,onReloadCards:nt,onTotalCashbackClick:ot,onColumnSortConfigChanged:st,onClickMenuIcon:lt,onPromoCardClick:Ce,onCreateNowClick:ye,showPayNowInfoTooltip:dt,navigateToCreditCardPaymentPage:W,shouldShowPayNowInfoTooltip:X})=>{const U=St().analytics,[fe,ct]=O.useState(!1),{creditAccount:S,creditAccountRepayment:f}=e,K=jt(),I=!!K.loggedInUserRole.includes("charge_card_user"),Y=vt(K),w=M.hasChargeCardAdminLevelAccess(K.loggedInUserRoleMap),R=w===!0?{creditCardCashbackOffer:`${P.cashbackAnalytics.creditCardCashbackOffer}%`,debitCardCashbackOffer:`${P.cashbackAnalytics.debitCardCashbackOffer}%`,totalEarnedCashback:v(P.cashbackSummary.cashbackEarned.amount),redeemedCashback:v(P.cashbackSummary.cashbackRedeemed.amount),availableCashback:v(P.cashbackSummary.cashbackAvailable.amount),creditCardCashbackRedemptionMode:P.cashbackAnalytics.creditCardCashbackRedemptionMode,debitCardCashbackRedemptionMode:P.cashbackAnalytics.debitCardCashbackRedemptionMode}:void 0,ee=l&&x&&w===!0?{creditAccountId:S.id,creditAccountLimit:v(S.limit.amount),creditAccountAvailableAmount:v(S.available.amount),creditAccountSpentAmount:v(S.balance.amount+S.hold.amount),creditAccountStatus:S.status,outstandingBalance:v(f.remainingAmountDue.amount)}:void 0,te=p&&g?{debitAccountId:k.depositAccounts.map(o=>o.id),debitAccountName:k.depositAccounts.map(o=>o.accountName),debitAccountBalance:k.depositAccounts.map(o=>v(o.accountBalance.available.amount)),debitCardsSpend:v(e.debitCardSummary?.currentMonthSpends?.amount??0),debitAccountStatus:k.depositAccounts.map(o=>o.accountStatus)}:void 0,ae={isCreditCardOffered:l,isDebitCardOffered:p,isDebitCardEnabled:g,isCreditCardEnabled:x},ht=o=>{ct(o),o===!0&&(U.trackCardsListPageClicked("search"),(!l||S.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(p&&g)||k.fetchState==="Completed")&&R!=null&&U.trackCardsCardListSearchClick(Z,ae,R,ee,te))},b=pe(),we=Y&&!w,$e=e.creditAccount.balance.amount+e.creditAccount.hold.amount,D={amount:$e,currencyCode:e.creditAccount.balance.currencyCode,currencySymbol:e.creditAccount.balance.currencySymbol},ie=Math.round(D.amount*100/e.creditAccount.limit.amount),pt=isNaN(ie)?0:$e!==0&&ie===0?1:ie,z=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate,re=w&&D.amount>u*e.creditAccount.limit.amount/100,N=z!=null&&f.initiatedRepayments.amount>0,mt={entity:"charge_cards",showNewButtonOnNavbar:w,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:w?$.newBtnLabel:y.strings.empty,hideSearchBtn:I,searchTextBoxStyle:{right:we?a.sp4:"96px"},moreIconContainerStyle:{paddingRight:we?a.sp0:a.sp4},isSearchOpen:fe,searchPlaceHolder:$.searchPlaceHolder,searchText:s,showSettingsIcon:!I,showSettingsIconOnNavbar:w,showStatementButtonOnNavbar:l&&x,showPayEarlyButtonOnNavbar:L&&w&&D.amount>0&&!N&&!re,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,analytics:U,onSearchOpen:ht,onSearchTextChanged:Qe,onClickSetupIcon:Xe,onClickStatementsIcon:Ke,downloadState:"Not-Started",onNewButtonClick:it,onClickPayEarlyIcon:()=>W("More Button","Pay Early"),onMenuOpen:()=>{(!l||S.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(p&&g)||k.fetchState==="Completed")&&R!=null&&U.trackCardsCardListMoreMenuClick(Z,ae,R,ee,te)},filters:{categoryCombinationOperator:"AND",categories:[]}},ut=t.jsx(Ft,{spendManagementSectionProps:mt}),gt=e.cards.length===0?!1:I&&M.anyCardOnHold(e.cards),xt=e.fetchState==="Completed"?Sa({isChargeCardFeatureEnabled:l,isChargeCardSetupEnabled:x,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g}):"",G=e.debitCardSummary!=null?e.debitCardSummary.currentMonthSpends.amount-e.debitCardSummary.lastCompletedMonthSpends.amount:0,bt=l&&x&&e.hasCreditCard,Ct=p&&g&&e.hasDebitCard,yt=l&&x&&Y&&!w,ft=p&&g&&Y&&!w,J=e.chargeCardConfig.rePaymentInfo?.rePaymentDueDate?.diff(M.dateNow(),"days")??0,ne=[m.payNow,J>0&&J<11?`${m.billDueIn} ${J} ${J===1?y.timeStrings.day:y.timeStrings.days}`:m.creditLimitLow,m.payNow],Se=f.initiatedRepayments.amount===S.balance.amount+S.hold.amount,oe=[m.paymentInitiated,`${$.header.limit} ${Se?y.resets:y.updates} ${y.by} ${M.zeniDate(M.getNextNthWorkingDay(f.initiatedRepaymentDate?.toDate()??M.dateNow().toDate(),[0,6],3).toDateString()).format(V.visual.MMMDFormat)}`,m.paymentInitiated],se=O.useRef(null),le=O.useRef(null),wt=_e(),[$t,je]=O.useState(!0);return O.useEffect(()=>{const o=()=>{le.current&&(le.current.getBoundingClientRect().top<(b==="small"?68:40)?je(!1):je(!0))};o();const j=()=>{o()},H=se.current;return H&&H.addEventListener("scroll",j),window.addEventListener("scroll",j),()=>{H&&H.removeEventListener("scroll",j),window.removeEventListener("scroll",j)}},[b]),t.jsxs(Aa,{ref:se,children:[t.jsx(kt,{title:xt,showBackButton:!0,showMenuIcon:b==="medium-compact"||b==="small",onClickMenuIcon:lt,style:{zIndex:3},onBackClick:rt,rightSideComponent:ut,isSearchOpen:fe,hideSearchBtn:I,scrollableContent:se,source:"ChargeCardListPage",backgroundColor:wt.colors.grey4}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?t.jsx(Pt,{fetchState:e.fetchState,styles:{margin:"auto"}}):t.jsxs(t.Fragment,{children:[I?null:t.jsxs(Ea,{windowSize:b,children:[bt||yt?t.jsxs(Ee,{windowSize:b,children:[t.jsxs(ze,{children:[t.jsxs(Ne,{children:[t.jsxs(Oe,{children:[t.jsx(Re,{children:$.creditCardBalance}),t.jsx(A,{amount:D,integerStyles:{...C.h5Regular.cssObject},decimalStyles:{...C.largeSemiBold.cssObject}})]}),t.jsxs(Pa,{children:[t.jsx(q,{style:{textAlign:"end"},children:y.texts.limit}),t.jsx(A,{amount:e.creditAccount.limit,style:{justifyContent:"end"},integerStyles:C.largeRegular.cssObject,decimalStyles:C.smallRegular.cssObject})]})]}),t.jsx(Ba,{children:t.jsx(_a,{style:{width:`${pt}%`,borderRadius:a.sp1}})}),re&&!N&&L?t.jsx(de,{placement:"bottom",style:{color:n.heroDark,padding:`12px ${a.sp3}`},title:t.jsx(wa,{children:m.creditLimitIsRunningLow}),children:t.jsxs(Le,{children:[t.jsx(A,{amount:e.creditAccount.available,integerStyles:C.largeMedium.cssObject,decimalStyles:C.smallMedium.cssObject}),t.jsx(De,{windowSize:b,children:y.texts.remaining}),t.jsx($a,{children:t.jsx(fa,{})})]})}):t.jsxs(Le,{children:[t.jsx(A,{amount:e.creditAccount.available,integerStyles:C.largeMedium.cssObject,decimalStyles:C.smallMedium.cssObject}),t.jsx(De,{windowSize:b,children:y.texts.remaining})]})]}),t.jsxs(Ta,{showPaymentInitiatedInfo:N,isEarlyPayEnabled:L,children:[N&&L?null:t.jsx(q,{children:`${y.texts.limitReset} ${z!=null?z.format(V.visual.MMMDFormat):null}`}),w&&L&&(N?t.jsx("div",{children:t.jsx(de,{maxWidth:"242px",style:{padding:`12px ${a.sp3}`},title:t.jsxs(ja,{children:[t.jsx(Ae,{children:`${m.paymentOf} ${Tt("0,0.[00]",{amount:f.initiatedRepayments.amount,currencyCode:f.initiatedRepayments.currencyCode,currencySymbol:f.initiatedRepayments.currencySymbol})} ${m.madeOn} `}),t.jsx(va,{children:f.initiatedRepaymentDate?.format(V.visual.MMMDFormat)}),y.strings.space,t.jsx(Ae,{children:Se?m.isProcessingAndWillResetTheCreditLimitIn23BusinessDays:m.isProcessingAndWillUpdateTheCreditLimitIn23BusinessDays})]}),placement:"bottom",children:t.jsxs(Te,{hasPointer:!1,children:[oe.length>0&&t.jsx(he,{slideUpCount:oe.length,style:{alignItems:"flex-end",width:"auto"},children:oe.map((o,j)=>t.jsx(ba,{children:o},`card-payment-initiated-${j.toString()}`))}),t.jsx(ya,{})]})})}):re?t.jsx(de,{variant:"informative",arrow:!0,style:{top:a.sp2,left:"22px",position:"relative"},data:{preHeading:"URGENT",heading:m.creditLimitIsLow,description:m.transactionsMayBeDeclinedBecauseTheCreditLimitIsRunningLow,buttonText:m.payNow,tooltipContentStyle:{width:"240px",boxSizing:"content-box",gap:a.sp0},tooltipIntroductionStyle:{color:n.important},buttonStyle:{width:"31%"},onButtonClick:()=>{X(!1),W("Toast Button","Pay Now")},showCloseButton:!0,onClose:o=>{o.preventDefault(),o.stopPropagation(),X(!1)}},title:"informative",placement:"bottom-end",open:dt&&$t,children:t.jsxs(Te,{ref:le,onClick:()=>{X(!1),W("Text Button","Pay Now")},hasPointer:!0,children:[ne.length>0&&t.jsx(he,{slideUpCount:ne.length,style:{alignItems:"flex-end",width:"auto"},children:ne.map((o,j)=>t.jsx(xa,{isImportant:j===1,children:o},`card-pay-now-${j.toString()}`))}),t.jsx(Ie,{})]})}):D.amount>0?t.jsxs(Ca,{onClick:()=>W("Text Button","Pay Early"),children:[m.payEarly,t.jsx(Ie,{})]}):null)]})]}):l&&x?t.jsx(Pe,{cardType:"creditCard",header:c.listPage.spendSmarter,title:c.listPage.setUpText.replace("__cardType__",c.listPage.credit),creditLimit:ce("0,0",F.amount,F.currencySymbol),onCreateNowClick:ye}):l?t.jsx(ke,{cardPromoType:"credit",cardText:c.listPage.creditCards,header:c.listPage.getAccessTo,title:c.listPage.creditCards,subTitle:c.listPage.promoSubText.credit,slidingTextList:Me("credit",Q,{amount:Ve,currencyCode:F.currencyCode,currencySymbol:F.currencySymbol}),onClick:Ce}):null,Ct||ft?t.jsxs(Ee,{windowSize:b,children:[t.jsxs(ze,{children:[t.jsx(Ne,{children:t.jsxs(Oe,{children:[t.jsx(Re,{children:$.debitCardSpend}),t.jsx(A,{amount:e.debitCardSummary?.currentMonthSpends,integerStyles:{...C.h5Regular.cssObject},decimalStyles:{...C.largeSemiBold.cssObject}})]})}),t.jsx(Ra,{children:G!==0?t.jsxs(t.Fragment,{children:[G<0?t.jsx(za,{}):t.jsx(Na,{}),t.jsx(Da,{hasNegativeValue:G<0,children:ce("0,0.00",G,e.debitCardSummary?.currentMonthSpends.currencySymbol)}),t.jsx(He,{children:$.compareToLastMonth})]}):null})]}),t.jsx(Je,{children:t.jsx(q,{children:`${y.texts.limitReset} ${z!=null?z.format(V.visual.MMMDFormat):null}`})})]}):p&&g?t.jsx(Pe,{cardType:"debitCard",header:c.listPage.spendSmarter,title:c.listPage.setUpText.replace("__cardType__",c.listPage.debit),onCreateNowClick:ye}):p?t.jsx(ke,{cardPromoType:"debit",cardText:c.listPage.debitCards,header:c.listPage.getAccessTo,title:c.listPage.debitCards,subTitle:c.listPage.promoSubText.debit,slidingTextList:Me("debit",Q),onClick:Ce}):null,t.jsxs(La,{windowSize:b,children:[r?t.jsxs(ka,{children:[t.jsx(q,{style:{textAlign:"start"},children:$.totalCashback}),t.jsx(A,{amount:e.totalCashback,style:{justifyContent:"flex-start"},integerStyles:C.h5Regular.cssObject,decimalStyles:C.smallSemiBold.cssObject}),e.totalCashback.amount>0?t.jsx(Ma,{windowSize:b,children:t.jsxs(Oa,{windowSize:b,onClick:ot,"data-testid":me("total-cashback-info"),children:[t.jsx(Ia,{children:$.overview}),t.jsx(Fa,{})]})}):null]}):null,t.jsx(Ua,{children:t.jsx(Ya,{})})]})]}),e.cards.length===0&&I===!0||gt?t.jsx(Wa,{children:t.jsx(Wt,{companyLegalName:h,cards:e.cards,admins:d,hasZeniFinopsRoles:Y,cashbackRate:Q})}):t.jsx(Gt,{depositAccountListWithDebitCardIssued:k,cashbackInformation:R,creditAccountInformation:ee,debitAccountInformation:te,productInformation:ae,controllerEmails:Z,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g,isChargeCardSetupEnabled:x,creditAccount:e.creditAccount,creditAccountRepayment:f,cardList:e.cards,showViewForCardUser:!1,signedInUser:Ze,fetchState:e.fetchState,onReloadCards:nt,onChargeCardRowClick:et,searchText:s,receiptBotEmail:e.chargeCardConfig.receiptBotEmail,uiState:qe,resendInviteId:e?.resendCardInvite?.cardId,onColumnSortConfigChanged:st,onChargeCardResendInviteClick:tt,onChargeCardRevokeInviteClick:at})]})]})},xa=i(Fe)`
152
+ `,_={contentContainerMargin:new O(T[3],T[4],T[8]),infoSubheadingTextMarginTop:new O(T[0],T[0]),cardsMinWidth:new O(343,353)},ga={remainingText:new It("largeRegular","largeRegular")},{spendManagement:{chargeCard:{payEarly:m,cardList:$,chargeCardsPromo:c}},common:y,dateFormat:q}=Oe.getLocalizedStrings(),mi=({chargeCardListView:e,searchText:s,admins:d,companyLegalName:h,isCashbackFeatureEnabled:r,creditCardPayNowThreshold:u,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g,isChargeCardSetupEnabled:x,companyChargeCardInfoCreditAccountLimit:qe,controllerEmails:Z,depositAccountListWithDebitCardIssued:k,chargeCardCashbackDetailState:P,uiState:Ve,signedInUser:Ze,creditLimit:F,cashbackRate:Q,onSearchTextChanged:Qe,onClickSetupIcon:Xe,isEarlyPayEnabled:L,onClickStatementsIcon:Ke,onChargeCardRowClick:et,onChargeCardResendInviteClick:tt,onChargeCardRevokeInviteClick:at,onIssueCardClick:it,onBackClick:rt,onReloadCards:nt,onTotalCashbackClick:ot,onColumnSortConfigChanged:st,onClickMenuIcon:lt,onPromoCardClick:Ce,onCreateNowClick:ye,showPayNowInfoTooltip:dt,navigateToCreditCardPaymentPage:W,shouldShowPayNowInfoTooltip:X})=>{const U=St().analytics,[fe,ct]=N.useState(!1),{creditAccount:S,creditAccountRepayment:f}=e,K=jt(),I=!!K.loggedInUserRole.includes("charge_card_user"),Y=vt(K),w=A.hasChargeCardAdminLevelAccess(K.loggedInUserRoleMap),R=w===!0?{creditCardCashbackOffer:`${P.cashbackAnalytics.creditCardCashbackOffer}%`,debitCardCashbackOffer:`${P.cashbackAnalytics.debitCardCashbackOffer}%`,totalEarnedCashback:v(P.cashbackSummary.cashbackEarned.amount),redeemedCashback:v(P.cashbackSummary.cashbackRedeemed.amount),availableCashback:v(P.cashbackSummary.cashbackAvailable.amount),creditCardCashbackRedemptionMode:P.cashbackAnalytics.creditCardCashbackRedemptionMode,debitCardCashbackRedemptionMode:P.cashbackAnalytics.debitCardCashbackRedemptionMode}:void 0,ee=l&&x&&w===!0?{creditAccountId:S.id,creditAccountLimit:v(S.limit.amount),creditAccountAvailableAmount:v(S.available.amount),creditAccountSpentAmount:v(S.balance.amount+S.hold.amount),creditAccountStatus:S.status,outstandingBalance:v(f.remainingAmountDue.amount)}:void 0,te=p&&g?{debitAccountId:k.depositAccounts.map(o=>o.id),debitAccountName:k.depositAccounts.map(o=>o.accountName),debitAccountBalance:k.depositAccounts.map(o=>v(o.accountBalance.available.amount)),debitCardsSpend:v(e.debitCardSummary?.currentMonthSpends?.amount??0),debitAccountStatus:k.depositAccounts.map(o=>o.accountStatus)}:void 0,ae={isCreditCardOffered:l,isDebitCardOffered:p,isDebitCardEnabled:g,isCreditCardEnabled:x},ht=o=>{ct(o),o===!0&&(U.trackCardsListPageClicked("search"),(!l||S.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(p&&g)||k.fetchState==="Completed")&&R!=null&&U.trackCardsCardListSearchClick(Z,ae,R,ee,te))},b=pe(),we=Y&&!w,$e=e.creditAccount.balance.amount+e.creditAccount.hold.amount,D={amount:$e,currencyCode:e.creditAccount.balance.currencyCode,currencySymbol:e.creditAccount.balance.currencySymbol},ie=Math.round(D.amount*100/e.creditAccount.limit.amount),pt=isNaN(ie)?0:$e!==0&&ie===0?1:ie,z=e.chargeCardConfig.rePaymentInfo?.cardLimitResetDate,re=w&&D.amount>u*e.creditAccount.limit.amount/100,B=z!=null&&f.initiatedRepayments.amount>0,mt={entity:"charge_cards",showNewButtonOnNavbar:w,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:w?$.newBtnLabel:y.strings.empty,hideSearchBtn:I,searchTextBoxStyle:{right:we?a.sp4:"96px"},moreIconContainerStyle:{paddingRight:we?a.sp0:a.sp4},isSearchOpen:fe,searchPlaceHolder:$.searchPlaceHolder,searchText:s,showSettingsIcon:!I,showSettingsIconOnNavbar:w,showStatementButtonOnNavbar:l&&x,showPayEarlyButtonOnNavbar:L&&w&&D.amount>0&&!B&&!re,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,analytics:U,onSearchOpen:ht,onSearchTextChanged:Qe,onClickSetupIcon:Xe,onClickStatementsIcon:Ke,downloadState:"Not-Started",onNewButtonClick:it,onClickPayEarlyIcon:()=>W("More Button","Pay Early"),onMenuOpen:()=>{(!l||S.fetchState==="Completed"&&f.fetchState==="Completed")&&(!(p&&g)||k.fetchState==="Completed")&&R!=null&&U.trackCardsCardListMoreMenuClick(Z,ae,R,ee,te)},filters:{categoryCombinationOperator:"AND",categories:[]}},ut=t.jsx(Ft,{spendManagementSectionProps:mt}),gt=e.cards.length===0?!1:I&&A.anyCardOnHold(e.cards),xt=e.fetchState==="Completed"?Sa({isChargeCardFeatureEnabled:l,isChargeCardSetupEnabled:x,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g}):"",G=e.debitCardSummary!=null?e.debitCardSummary.currentMonthSpends.amount-e.debitCardSummary.lastCompletedMonthSpends.amount:0,bt=l&&x&&e.hasCreditCard,Ct=p&&g&&e.hasDebitCard,yt=l&&x&&Y&&!w,ft=p&&g&&Y&&!w,J=e.chargeCardConfig.rePaymentInfo?.rePaymentDueDate?.diff(A.dateNow(),"days")??0,ne=[m.payNow,J>0&&J<11?`${m.billDueIn} ${J} ${J===1?y.timeStrings.day:y.timeStrings.days}`:m.creditLimitLow,m.payNow],Se=f.initiatedRepayments.amount===S.balance.amount+S.hold.amount,oe=[m.paymentInitiated,`${$.header.limit} ${Se?y.resets:y.updates} ${y.by} ${A.zeniDate(A.getNextNthWorkingDay(f.initiatedRepaymentDate?.toDate()??A.dateNow().toDate(),[0,6],3).toDateString()).format(q.visual.MMMDFormat)}`,m.paymentInitiated],se=N.useRef(null),le=N.useRef(null),wt=_e(),[$t,je]=N.useState(!0);return N.useEffect(()=>{const o=()=>{le.current&&(le.current.getBoundingClientRect().top<(b==="small"?68:40)?je(!1):je(!0))};o();const j=()=>{o()},H=se.current;return H&&H.addEventListener("scroll",j),window.addEventListener("scroll",j),()=>{H&&H.removeEventListener("scroll",j),window.removeEventListener("scroll",j)}},[b]),t.jsxs(Ea,{ref:se,children:[t.jsx(kt,{title:xt,showBackButton:!0,showMenuIcon:b==="medium-compact"||b==="small",onClickMenuIcon:lt,style:{zIndex:3},onBackClick:rt,rightSideComponent:ut,isSearchOpen:fe,hideSearchBtn:I,scrollableContent:se,source:"ChargeCardListPage",backgroundColor:wt.colors.grey4}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?t.jsx(Pt,{fetchState:e.fetchState,styles:{margin:"auto"}}):t.jsxs(t.Fragment,{children:[I?null:t.jsxs(Ma,{windowSize:b,children:[bt||yt?t.jsxs(Me,{windowSize:b,children:[t.jsxs(ze,{children:[t.jsxs(Be,{children:[t.jsxs(Ne,{children:[t.jsx(Re,{children:$.creditCardBalance}),t.jsx(E,{amount:D,integerStyles:{...C.h5Regular.cssObject},decimalStyles:{...C.largeSemiBold.cssObject}})]}),t.jsxs(Pa,{children:[t.jsx(V,{style:{textAlign:"end"},children:y.texts.limit}),t.jsx(E,{amount:e.creditAccount.limit,style:{justifyContent:"end"},integerStyles:C.largeRegular.cssObject,decimalStyles:C.smallRegular.cssObject})]})]}),t.jsx(Oa,{children:t.jsx(_a,{style:{width:`${pt}%`,borderRadius:a.sp1}})}),re&&!B&&L?t.jsx(de,{placement:"bottom",style:{color:n.heroDark,padding:`12px ${a.sp3}`},title:t.jsx(wa,{children:m.creditLimitIsRunningLow}),children:t.jsxs(Le,{children:[t.jsx(E,{amount:e.creditAccount.available,integerStyles:C.largeMedium.cssObject,decimalStyles:C.smallMedium.cssObject}),t.jsx(De,{windowSize:b,children:y.texts.remaining}),t.jsx($a,{children:t.jsx(fa,{})})]})}):t.jsxs(Le,{children:[t.jsx(E,{amount:e.creditAccount.available,integerStyles:C.largeMedium.cssObject,decimalStyles:C.smallMedium.cssObject}),t.jsx(De,{windowSize:b,children:y.texts.remaining})]})]}),t.jsxs(Ta,{showPaymentInitiatedInfo:B,isEarlyPayEnabled:L,children:[B&&L?null:t.jsx(V,{children:`${y.texts.limitReset} ${z!=null?z.format(q.visual.MMMDFormat):null}`}),w&&L&&(B?t.jsx("div",{children:t.jsx(de,{maxWidth:"242px",style:{padding:`12px ${a.sp3}`},title:t.jsxs(ja,{children:[t.jsx(Ee,{children:`${m.paymentOf} ${Tt("0,0.[00]",{amount:f.initiatedRepayments.amount,currencyCode:f.initiatedRepayments.currencyCode,currencySymbol:f.initiatedRepayments.currencySymbol})} ${m.madeOn} `}),t.jsx(va,{children:f.initiatedRepaymentDate?.format(q.visual.MMMDFormat)}),y.strings.space,t.jsx(Ee,{children:Se?m.isProcessingAndWillResetTheCreditLimitIn23BusinessDays:m.isProcessingAndWillUpdateTheCreditLimitIn23BusinessDays})]}),placement:"bottom",children:t.jsxs(Te,{hasPointer:!1,children:[oe.length>0&&t.jsx(he,{slideUpCount:oe.length,style:{alignItems:"flex-end",width:"auto"},children:oe.map((o,j)=>t.jsx(ba,{children:o},`card-payment-initiated-${j.toString()}`))}),t.jsx(ya,{})]})})}):re?t.jsx(de,{variant:"informative",arrow:!0,style:{top:a.sp2,left:"22px",position:"relative"},data:{preHeading:"URGENT",heading:m.creditLimitIsLow,description:m.transactionsMayBeDeclinedBecauseTheCreditLimitIsRunningLow,buttonText:m.payNow,tooltipContentStyle:{width:"240px",boxSizing:"content-box",gap:a.sp0},tooltipIntroductionStyle:{color:n.important},buttonStyle:{width:"31%"},onButtonClick:()=>{X(!1),W("Toast Button","Pay Now")},showCloseButton:!0,onClose:o=>{o.preventDefault(),o.stopPropagation(),X(!1)}},title:"informative",placement:"bottom-end",open:dt&&$t,children:t.jsxs(Te,{ref:le,onClick:()=>{X(!1),W("Text Button","Pay Now")},hasPointer:!0,children:[ne.length>0&&t.jsx(he,{slideUpCount:ne.length,style:{alignItems:"flex-end",width:"auto"},children:ne.map((o,j)=>t.jsx(xa,{isImportant:j===1,children:o},`card-pay-now-${j.toString()}`))}),t.jsx(Ie,{})]})}):D.amount>0?t.jsxs(Ca,{onClick:()=>W("Text Button","Pay Early"),children:[m.payEarly,t.jsx(Ie,{})]}):null)]})]}):l&&x?t.jsx(Pe,{cardType:"creditCard",header:c.listPage.spendSmarter,title:c.listPage.setUpText.replace("__cardType__",c.listPage.credit),creditLimit:ce("0,0",F.amount,F.currencySymbol),onCreateNowClick:ye}):l?t.jsx(ke,{cardPromoType:"credit",cardText:c.listPage.creditCards,header:c.listPage.getAccessTo,title:c.listPage.creditCards,subTitle:c.listPage.promoSubText.credit,slidingTextList:Ae("credit",Q,{amount:qe,currencyCode:F.currencyCode,currencySymbol:F.currencySymbol}),onClick:Ce}):null,Ct||ft?t.jsxs(Me,{windowSize:b,children:[t.jsxs(ze,{children:[t.jsx(Be,{children:t.jsxs(Ne,{children:[t.jsx(Re,{children:$.debitCardSpend}),t.jsx(E,{amount:e.debitCardSummary?.currentMonthSpends,integerStyles:{...C.h5Regular.cssObject},decimalStyles:{...C.largeSemiBold.cssObject}})]})}),t.jsx(Ra,{children:G!==0?t.jsxs(t.Fragment,{children:[G<0?t.jsx(za,{}):t.jsx(Ba,{}),t.jsx(Da,{hasNegativeValue:G<0,children:ce("0,0.00",G,e.debitCardSummary?.currentMonthSpends.currencySymbol)}),t.jsx(He,{children:$.compareToLastMonth})]}):null})]}),t.jsx(Je,{children:t.jsx(V,{children:`${y.texts.limitReset} ${z!=null?z.format(q.visual.MMMDFormat):null}`})})]}):p&&g?t.jsx(Pe,{cardType:"debitCard",header:c.listPage.spendSmarter,title:c.listPage.setUpText.replace("__cardType__",c.listPage.debit),onCreateNowClick:ye}):p?t.jsx(ke,{cardPromoType:"debit",cardText:c.listPage.debitCards,header:c.listPage.getAccessTo,title:c.listPage.debitCards,subTitle:c.listPage.promoSubText.debit,slidingTextList:Ae("debit",Q),onClick:Ce}):null,t.jsxs(La,{windowSize:b,children:[r?t.jsxs(ka,{children:[t.jsx(V,{style:{textAlign:"start"},children:$.totalCashback}),t.jsx(E,{amount:e.totalCashback,style:{justifyContent:"flex-start"},integerStyles:C.h5Regular.cssObject,decimalStyles:C.smallSemiBold.cssObject}),e.totalCashback.amount>0?t.jsx(Aa,{windowSize:b,children:t.jsxs(Na,{windowSize:b,onClick:ot,"data-testid":me("total-cashback-info"),children:[t.jsx(Ia,{children:$.overview}),t.jsx(Fa,{})]})}):null]}):null,t.jsx(Ua,{children:t.jsx(Ya,{})})]})]}),e.cards.length===0&&I===!0||gt?t.jsx(Wa,{children:t.jsx(Wt,{companyLegalName:h,cards:e.cards,admins:d,hasZeniFinopsRoles:Y,cashbackRate:Q})}):t.jsx(Gt,{depositAccountListWithDebitCardIssued:k,cashbackInformation:R,creditAccountInformation:ee,debitAccountInformation:te,productInformation:ae,controllerEmails:Z,isChargeCardFeatureEnabled:l,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:g,isChargeCardSetupEnabled:x,creditAccount:e.creditAccount,creditAccountRepayment:f,cardList:e.cards,showViewForCardUser:!1,signedInUser:Ze,fetchState:e.fetchState,onReloadCards:nt,onChargeCardRowClick:et,searchText:s,receiptBotEmail:e.chargeCardConfig.receiptBotEmail,uiState:Ve,resendInviteId:e?.resendCardInvite?.cardId,onColumnSortConfigChanged:st,onChargeCardResendInviteClick:tt,onChargeCardRevokeInviteClick:at})]})]})},xa=i(Fe)`
153
153
  color: ${e=>e.isImportant?n.important:e.theme.colors.primary};
154
154
  text-align: end;
155
155
  `,ba=i(Fe)`
@@ -162,7 +162,7 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
162
162
  height: 21px;
163
163
  overflow: hidden;
164
164
  cursor: ${e=>e.hasPointer?"pointer":"default"};
165
- `,Ca=i(E)`
165
+ `,Ca=i(M)`
166
166
  color: ${e=>e.theme.colors.primary};
167
167
  cursor: pointer;
168
168
  display: flex;
@@ -172,15 +172,15 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
172
172
  color: ${e=>e.theme.colors.primary};
173
173
  width: 12px;
174
174
  height: 12px;
175
- `,ya=i(Et)`
175
+ `,ya=i(Mt)`
176
176
  color: ${n.brandColorGoldDark};
177
177
  width: ${a.sp3};
178
178
  height: ${a.sp3};
179
- `,fa=i(At)`
179
+ `,fa=i(Et)`
180
180
  color: ${n.important};
181
181
  width: ${a.sp3};
182
182
  height: ${a.sp3};
183
- `,wa=i(E)`
183
+ `,wa=i(M)`
184
184
  color: ${n.heroDark};
185
185
  white-space: pre-line;
186
186
  text-align: left;
@@ -188,9 +188,9 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
188
188
  display: flex;
189
189
  align-items: center;
190
190
  justify-content: center;
191
- `,Me=(e,s,d)=>{const h=(s*100).toFixed(2);if(e==="credit"){const r=c.listPage.promoMultiText.credit;return d&&(r[0]=r[0].replace("__creditLimit__",ce("0,0",d.amount,d.currencySymbol))),r[1]=r[1].replace("__cashBack__",h),[...r,r[0]]}else if(e==="debit"){const r=c.listPage.promoMultiText.debit;return r[0]=r[0].replace("__cashBack__",h),[...r,r[0]]}return[]},Sa=({isChargeCardFeatureEnabled:e,isChargeCardSetupEnabled:s,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:h})=>e&&s&&d&&h?$.title.cards:e&&s?$.title.credit:d&&h?$.title.debit:"",ja=i.div`
191
+ `,Ae=(e,s,d)=>{const h=(s*100).toFixed(2);if(e==="credit"){const r=c.listPage.promoMultiText.credit;return d&&(r[0]=r[0].replace("__creditLimit__",ce("0,0",d.amount,d.currencySymbol))),r[1]=r[1].replace("__cashBack__",h),[...r,r[0]]}else if(e==="debit"){const r=c.listPage.promoMultiText.debit;return r[0]=r[0].replace("__cashBack__",h),[...r,r[0]]}return[]},Sa=({isChargeCardFeatureEnabled:e,isChargeCardSetupEnabled:s,isDebitCardFeatureEnabled:d,isDebitCardSetupEnabled:h})=>e&&s&&d&&h?$.title.cards:e&&s?$.title.credit:d&&h?$.title.debit:"",ja=i.div`
192
192
  text-align: left;
193
- `,Ae=i.span``,va=i.span`
193
+ `,Ee=i.span``,va=i.span`
194
194
  white-space: nowrap;
195
195
  `,ka=i.div`
196
196
  min-width: 137px;
@@ -213,20 +213,20 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
213
213
  display: flex;
214
214
  `,Ta=i(Je)`
215
215
  justify-content: ${e=>e.showPaymentInitiatedInfo&&e.isEarlyPayEnabled?"flex-end":"space-between"};
216
- `,Ia=i.div``,Ma=i.div`
216
+ `,Ia=i.div``,Aa=i.div`
217
217
  border: 1px solid ${e=>e.theme.colors.hero};
218
218
  border-radius: ${a.sp12};
219
219
  width: fit-content;
220
220
  justify-self: ${e=>e.windowSize==="small"?"flex-start":"flex-end"};
221
221
  margin-top: ${a.sp1};
222
222
  padding: ${a.sp0} ${a.sp2};
223
- `,Aa=i.div`
223
+ `,Ea=i.div`
224
224
  display: flex;
225
225
  flex-direction: column;
226
226
  width: 100%;
227
227
  height: 100vh;
228
228
  overflow: auto;
229
- `,Ea=i.div`
229
+ `,Ma=i.div`
230
230
  display: flex;
231
231
  flex-direction: row;
232
232
  margin-top: ${a.sp3};
@@ -247,7 +247,7 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
247
247
  -ms-overflow-style: none;
248
248
  scrollbar-width: none;
249
249
  `}
250
- `,Ee=i.div`
250
+ `,Me=i.div`
251
251
  display: flex;
252
252
  flex-grow: 1;
253
253
  flex-direction: column;
@@ -285,12 +285,12 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
285
285
  align-items: baseline;
286
286
  gap: ${a.sp2};
287
287
  align-items: center;
288
- `,Re=i(E)`
288
+ `,Re=i(M)`
289
289
  color: ${e=>e.theme.colors.hero};
290
- `,De=i(Mt)`
290
+ `,De=i(At)`
291
291
  color: ${e=>e.theme.colors.primary};
292
292
  ${e=>`${ga.remainingText.style(e.windowSize)}`};
293
- `,q=i(E)`
293
+ `,V=i(M)`
294
294
  color: ${e=>e.theme.colors.hero};
295
295
  white-space: nowrap;
296
296
  `,Ra=i.div`
@@ -303,15 +303,15 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
303
303
  color: ${e=>e.theme.colors.hero};
304
304
  `,Da=i(He)`
305
305
  color: ${e=>e.hasNegativeValue?n.success:n.important};
306
- `,za=i(Vt)`
306
+ `,za=i(qt)`
307
307
  color: ${n.success};
308
308
  width: ${a.sp3};
309
309
  height: ${a.sp3};
310
- `,Na=i(qt)`
310
+ `,Ba=i(Vt)`
311
311
  color: ${n.important};
312
312
  width: ${a.sp3};
313
313
  height: ${a.sp3};
314
- `,Oa=i(ge)`
314
+ `,Na=i(ge)`
315
315
  color: ${e=>e.theme.colors.hero};
316
316
  margin-top: ${e=>_.infoSubheadingTextMarginTop.valuePx(e.windowSize)};
317
317
  gap: ${a.sp1};
@@ -322,7 +322,7 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
322
322
  &:hover {
323
323
  color: ${e=>e.theme.colors.primary};
324
324
  }
325
- `,Ba=i.div`
325
+ `,Oa=i.div`
326
326
  width: 100%;
327
327
  height: ${a.sp1};
328
328
  display: flex;
@@ -345,11 +345,11 @@ import{x as St,Y as jt,fr as vt,l as M,fm as v,e as pe,B as Be,o as a,u as _e,j
345
345
  `,ze=i.div`
346
346
  padding: ${a.sp4};
347
347
  padding-bottom: ${a.sp2};
348
- `,Ne=i.div`
348
+ `,Be=i.div`
349
349
  display: flex;
350
350
  justify-content: space-between;
351
351
  align-items: center;
352
- `,Oe=i.div``,Ua=i.div`
352
+ `,Ne=i.div``,Ua=i.div`
353
353
  height: ${a.sp10};
354
354
  width: ${a.sp10};
355
- `;function Ya(){switch(_e().mode){case"light":return t.jsx(Ht,{});case"dark":default:return t.jsx(Jt,{})}}export{mi as default,Me as getPromoSlidingTextList};
355
+ `;function Ya(){switch(_e().mode){case"light":return t.jsx(Ht,{});case"dark":default:return t.jsx(Jt,{})}}export{mi as default,Ae as getPromoSlidingTextList};
@@ -1,4 +1,4 @@
1
- import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fj as vi,i7 as Ci,i8 as yi,i9 as ji,$ as b,B as V,bS as bi,v as re,g as y,aj as ki,b_ as Si,ia as Ii,ib as zi,o as t,bg as Li,a6 as Ri,C as p,eA as Pi,ap as Di,ic as Ui,a7 as Ni,az as Ti,w as M,fl as _i,q as a,dt as Vi,a0 as T,c0 as De,m as Ue,bp as le,bn as Oi,n as k,c3 as we,t as U,i1 as ue,b6 as Ne,be as Te,id as Ei,c6 as Fi,a8 as G,ie as Mi,ig as Wi}from"./index-CAI8M7It.js";import{b as C,n as r,f as Ai,j as $e}from"./vendor-rkTZJa59.js";import{R as _e}from"./Menu-BeDBbRH8-tLhci4E2.js";import{T as Ve}from"./RoleWithToolTip-C5grx1DM-BwXp973u.js";import{f as ce}from"./CardNumberSubText-uxqTFnFX-CQWByZuH.js";import{_ as Oe}from"./ChargeCardUtils-Bptae9Pt-VRxG6j3w.js";const W=V.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Hi=V.getLocalizedStrings().common.strings.empty,fe={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Ee=e=>e===!0?[{...fe,width:new p(0,0),value:Hi},ve,Ce,ye,je,be]:[fe,ve,Ce,ye,je,be],z={containerPaddingLeft:t.sp2,containerPaddingRight:t.sp3,containerPaddingTop:t.sp3,containerPaddingBottom:t.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Mi,Wi)};function Ki({companyNameSticky:e,sortConfig:o,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=_(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Ee(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===o.sortKey?g.sortOrder=o.sortOrder:g.sortOrder="ascending";w(s)},[o.sortKey,o.sortOrder]);const u=(s,g)=>{let f=g;o.sortKey===s&&(f=g==="ascending"?"descending":"ascending"),h(s,f)},$=c.find(s=>s.key===o.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=V.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Yi,{windowSize:l,children:[i.jsxs(Xi,{children:[i.jsx(et,{children:i.jsx(Zi,{})}),i.jsx(Oi,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:o.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:re.extraSmallRegular,titleTextStyle:re.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rt,{onClick:()=>u($.key,$.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",o.sortKey),children:[i.jsx(k,{children:$.value}),i.jsx(ke,{windowSize:l,sortDataValue:o.sortKey,headerdata:$,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Qi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Ji,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(tt,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",o.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:o.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(it,{sortDataValue:o.sortKey,windowSize:l,isVisible:o.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Gi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",o.sortKey)})})]},s.key))})})}const Bi=Ai.memo(Ki),qi=r.div`
1
+ import{j as i,bJ as $i,e as _,Y as ee,x as fi,u as de,fi as vi,i6 as Ci,i7 as yi,i8 as ji,$ as b,B as V,bS as bi,v as re,g as y,aj as ki,b_ as Si,i9 as Ii,ia as zi,o as t,bg as Li,a6 as Ri,C as p,ez as Pi,ap as Di,ib as Ui,a7 as Ni,az as Ti,w as M,fk as _i,q as a,dt as Vi,a0 as T,c0 as De,m as Ue,bp as le,bn as Oi,n as k,c3 as we,t as U,i0 as ue,b6 as Ne,be as Te,ic as Ei,c6 as Fi,a8 as G,id as Mi,ie as Wi}from"./index-B3ZVYk1F.js";import{b as C,n as r,f as Ai,j as $e}from"./vendor-rkTZJa59.js";import{R as _e}from"./Menu-bleLgSLu-DhDOH9zk.js";import{T as Ve}from"./RoleWithToolTip-_W95JBwt-CxTFR1LS.js";import{f as ce}from"./CardNumberSubText-1BRQQyfd-B6rYIntF.js";import{_ as Oe}from"./ChargeCardUtils-Wp4Ko18L-DTsLlepX.js";const W=V.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Hi=V.getLocalizedStrings().common.strings.empty,fe={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Ee=e=>e===!0?[{...fe,width:new p(0,0),value:Hi},ve,Ce,ye,je,be]:[fe,ve,Ce,ye,je,be],z={containerPaddingLeft:t.sp2,containerPaddingRight:t.sp3,containerPaddingTop:t.sp3,containerPaddingBottom:t.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Mi,Wi)};function Ki({companyNameSticky:e,sortConfig:o,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=_(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Ee(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===o.sortKey?g.sortOrder=o.sortOrder:g.sortOrder="ascending";w(s)},[o.sortKey,o.sortOrder]);const u=(s,g)=>{let f=g;o.sortKey===s&&(f=g==="ascending"?"descending":"ascending"),h(s,f)},$=c.find(s=>s.key===o.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=V.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Yi,{windowSize:l,children:[i.jsxs(Xi,{children:[i.jsx(et,{children:i.jsx(Zi,{})}),i.jsx(Oi,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:o.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:re.extraSmallRegular,titleTextStyle:re.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rt,{onClick:()=>u($.key,$.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",o.sortKey),children:[i.jsx(k,{children:$.value}),i.jsx(ke,{windowSize:l,sortDataValue:o.sortKey,headerdata:$,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Qi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Ji,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(tt,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",o.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:o.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(it,{sortDataValue:o.sortKey,windowSize:l,isVisible:o.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Gi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",o.sortKey)})})]},s.key))})})}const Bi=Ai.memo(Ki),qi=r.div`
2
2
  top: ${t.sp0};
3
3
  left: ${t.sp0};
4
4
  z-index: 2;
@@ -1,16 +1,16 @@
1
- import{e as b,B as oe,j as r,u as J,Y as $e,x as ye,a2 as be,a0 as je,l as Se,fr as Te,aX as ze,K as Y,$ as ee,o as t,c7 as ve,T as O,c8 as Pe,r as ke,C as h,bW as Be,bp as Ae,i5 as Ie,w as Re,q as x,J as j,g as $,ap as Le,a7 as Me,i6 as _e}from"./index-CAI8M7It.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-rkTZJa59.js";import{x as Fe}from"./MeetingCalenderPopup-gebcIIpu-BIluNFi_.js";import{k as Ue}from"./NavigationDots-BcP-rh-K-DgliXtlt.js";import{J as H,N as G}from"./PromoBaseCards-hEn7m0Ea-DLWKi3td.js";import{M as L}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const g={containerPaddingTopBottom:new h(x[0],x[0]),uspContainerMarginX:new h(x[6],x[0]),midContainerGap:new h(x[4],84),iconContainerMinHeight:new h(236,396),emptySectionHeight:new h(x[6],43),navigationBottom:new h(x[4],94),navigationLeft:new h(192,244),carouselHeight:new h(268,396),carouselMarginTop:new h(54,x[4]),carouselMarginLeft:new h(120,x[12]),buttonTrayGap:new h(x[3],x[5]),termsOfAgreementMarginTop:new h(x[5],x[10]),contactAdminContainerMarginTop:new h(x[0],x[10]),contactAdminContainerMarginBottom:new h(x[4],x[0]),contactAdminContainerMarginLeftRight:new h(x[3],x[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Rr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:V,onExpressInterestClick:me})=>{const xe=J(),W=$e(),z=b(),X=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,q=be(M?.fetchStatus.fetchState),[ge,K]=S.useState(!1),he=()=>{X.trackCardsPromoPageClicked("schedule demo"),X.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),K(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{q==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&V()},[q,V,M?.fetchStatus]);const Z=Se.hasChargeCardAdminLevelAccess(W.loggedInUserRoleMap),we=Te(W),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Q=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Ve,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:xe.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),ge===!0?r.jsx(Fe,{onCancelClick:()=>{K(!1)},meetingUrl:e}):null,r.jsx(Ke,{windowSize:z,children:Z===!0?r.jsxs(qe,{children:[r.jsxs(Xe,{children:[r.jsx(He,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),Z&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:he,"data-testid":ee("schedule-demo-button")}),r.jsx(We,{windowSize:z,children:o.orText}),r.jsx(Y,{variant:"primary",label:Q,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Q===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(c)}})})},He=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Qe,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Ye,{windowSize:c,children:f})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Je,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Je=({cards:e,companyLegalName:s})=>{const i=J(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(xr,{children:[m!=null?r.jsx(Ze,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(gr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Oe,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Oe=()=>{const e=b(),s=J(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(hr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},Ve=a.div`
1
+ import{e as b,B as oe,j as r,u as J,Y as $e,x as ye,a2 as be,a0 as je,l as Se,fq as Te,aX as ze,K as Y,$ as ee,o as t,c7 as ve,T as O,c8 as Pe,r as ke,C as h,bW as Be,bp as Ae,i4 as Ie,w as Re,q as x,J as j,g as $,ap as Le,a7 as Me,i5 as _e}from"./index-B3ZVYk1F.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-rkTZJa59.js";import{x as Fe}from"./MeetingCalenderPopup-CAh7iae0-C0eZhjUj.js";import{k as Ue}from"./NavigationDots-CNwL0a7I-ycY998lH.js";import{J as H,N as G}from"./PromoBaseCards-BGHJivI8-Bv4vo0R4.js";import{M as L}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const g={containerPaddingTopBottom:new h(x[0],x[0]),uspContainerMarginX:new h(x[6],x[0]),midContainerGap:new h(x[4],84),iconContainerMinHeight:new h(236,396),emptySectionHeight:new h(x[6],43),navigationBottom:new h(x[4],94),navigationLeft:new h(192,244),carouselHeight:new h(268,396),carouselMarginTop:new h(54,x[4]),carouselMarginLeft:new h(120,x[12]),buttonTrayGap:new h(x[3],x[5]),termsOfAgreementMarginTop:new h(x[5],x[10]),contactAdminContainerMarginTop:new h(x[0],x[10]),contactAdminContainerMarginBottom:new h(x[4],x[0]),contactAdminContainerMarginLeftRight:new h(x[3],x[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Rr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:q,onExpressInterestClick:me})=>{const xe=J(),V=$e(),z=b(),W=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,X=be(M?.fetchStatus.fetchState),[ge,K]=S.useState(!1),he=()=>{W.trackCardsPromoPageClicked("schedule demo"),W.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),K(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{X==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&q()},[X,q,M?.fetchStatus]);const Z=Se.hasChargeCardAdminLevelAccess(V.loggedInUserRoleMap),we=Te(V),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Q=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(qe,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:xe.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),ge===!0?r.jsx(Fe,{onCancelClick:()=>{K(!1)},meetingUrl:e}):null,r.jsx(Ke,{windowSize:z,children:Z===!0?r.jsxs(Xe,{children:[r.jsxs(We,{children:[r.jsx(He,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),Z&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:he,"data-testid":ee("schedule-demo-button")}),r.jsx(Ve,{windowSize:z,children:o.orText}),r.jsx(Y,{variant:"primary",label:Q,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Q===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(c)}})})},He=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Qe,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Ye,{windowSize:c,children:f})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Je,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Je=({cards:e,companyLegalName:s})=>{const i=J(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(xr,{children:[m!=null?r.jsx(Ze,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(gr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Oe,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Oe=()=>{const e=b(),s=J(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(hr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},qe=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
5
5
  flex-direction: column;
6
6
  background-color: ${e=>e.theme.colors.grey4};
7
- `,We=a(Re)`
7
+ `,Ve=a(Re)`
8
8
  color: ${e=>e.theme.colors.hero};
9
- `,Xe=a.div`
9
+ `,We=a.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  align-items: center;
13
- `,qe=a.div`
13
+ `,Xe=a.div`
14
14
  display: flex;
15
15
  flex-direction: column;
16
16
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{u as Ie,e as Ve,x as Be,a2 as M,a as Ue,ca as $e,l as ze,B as _e,a8 as G,j as t,cP as Re,g as Le,C as r,aX as We,m as qe,F as Ne,dO as He,o as U,v as Me,aS as Ge,a4 as Je,q as a,t as Xe}from"./index-CAI8M7It.js";import{b as p,n as S}from"./vendor-rkTZJa59.js";import{D as Ke}from"./HelpButton-DJeoop_B-BWwsX5D8.js";import{q as Qe}from"./SetUpDefaultSection-D1OXPM9M-Bq-_twjx.js";import{f as Ye,y as J}from"./SpendMgmtSetupAccountSection-C3n3CKZp-DbtkgBKN.js";import{x as Ze}from"./LabeledControlledCheckBoxField-tNAjM4hM-UitCLVQY.js";import{g as et}from"./UploadAdditionalDocumentOverlay-CiKy5Nj7-DGG9Ke3q.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./MeetingCalenderPopup-gebcIIpu-BIluNFi_.js";import"./ChargeCardUtils-Bptae9Pt-VRxG6j3w.js";import"./CreditCardPaymentPlgSection-D5M15mry-DWikFIfL.js";import"./ChaseOverlay-DU98sRYz-CSn5L-_V.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},X="chargeCardSetUpPage",g="payAccount",{commonSetUp:tt,spendManagement:nt}=_e.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:$}=tt,Tt=({autoPayThreshold:e,isDisabled:x,meetingUrl:T,isEarlyPayEnabled:h,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:v,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:se,onUpdateChargeCardClick:le,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:ge,onEstablishConnectionSuccess:he,onClickMenuIcon:fe,onEnableChargeCardSuccess:P,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe,onSignUpClick:Pe})=>{const f=Ie(),i=Ve(),E=Be().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:z,isRefreshingViewInBackground:we,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:_,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:R}=o,L=M(b),A=M(d.fetchState),j=Ue({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>K(o),[o]),values:K(o)}),ve=j.handleSubmit(se),Ee=async(C,k)=>{const n=k[g];if(C.includes(g))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&l?.id!=n.fundingAccount.selectedOption){const u=R.find(B=>B.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(B=>B.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&E.trackConnectBankLink(u.value,u.label,"charge_cards"),le(n.account.selectedOption,l.id,l.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=j.watch((k,{name:n})=>{n!=null&&k!=null&&$e(()=>Ee(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&y(!0),w&&L==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const D=F?.isChargeCardEnabled===!0,O=_?.isDebitCardEnabled===!0,W=_?.isDebitCardTOSAccepted===!0,q=F?.isChargeCardTOSAccepted===!0,N=z?.isBusinessVerified===!0,Fe=l?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(l?.providerVerificationStatus?.code??""),I=v?N:N&&Fe,je=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const V=v?I&&!O&&W:ie?I&&!D&&q:I&&!(D&&O)&&q&&W,De=V?m.setupSubTitleNotEnabled:m.setupSubTitle,H=f.mode==="light"?new G(f.colors.brandColorJadeLight):new G(f.colors.brandColorJadeDark),Oe=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx(Re,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!D&&!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:fe,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:De}),je?t.jsx(ct,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ne,{...j,children:t.jsx("form",{id:Q(X),onSubmit:ve,children:t.jsxs(st,{windowSize:i,children:[t.jsx(Qe,{onClick:Oe,title:$.businessVerificationTitle,subTitle:$.businessVerificationSubTitle,header:$.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:z?.businessVerificationStatus,isLoading:we,isActiveWhileLoading:!0}),v?null:t.jsx(Ye,{connectedAccountProvider:Z,primaryFundingAccount:l,allFundingAccounts:R,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:g,isDisabled:x,onFetchLinkTokenClick:ae,onEstablishConnectionClick:ge,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:he,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:E,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:Pe,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:f.colors.primary,...Me.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:U.sp4,marginTop:U.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:J(g,"enableAutoPay"),checkBoxValue:J(g,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),V?t.jsx(Je,{formId:Q(X),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${U.sp3}`}}):null,t.jsx(Ke,{isFooterRendered:V,meetingUrl:T,analytics:E,productType:"charge_cards"})]})},K=e=>{const{allBankAccounts:x,allFundingAccounts:T,primaryFundingAccount:h}=e;return{[g]:{fundingAccount:{selectedOption:h?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},Q=e=>`${e}_form`,it=S.div`
1
+ import{u as Ie,e as Ve,x as Be,a2 as M,a as Ue,ca as $e,l as ze,B as _e,a8 as G,j as t,cP as Re,g as Le,C as r,aX as We,m as qe,F as Ne,dO as He,o as U,v as Me,aS as Ge,a4 as Je,q as a,t as Xe}from"./index-B3ZVYk1F.js";import{b as p,n as S}from"./vendor-rkTZJa59.js";import{D as Ke}from"./HelpButton-DiIoYeXn-Ctwzgsr_.js";import{q as Qe}from"./SetUpDefaultSection-CI0mxu3H-Bvc2GjWa.js";import{f as Ye,y as J}from"./SpendMgmtSetupAccountSection-CPnNzjr--CgZWbJd7.js";import{x as Ze}from"./LabeledControlledCheckBoxField-BoXsUqpR-DgBItIwu.js";import{g as et}from"./UploadAdditionalDocumentOverlay-DI_GZA8A-TjqXSm1m.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-CAh7iae0-C0eZhjUj.js";import"./ChargeCardUtils-Wp4Ko18L-DTsLlepX.js";import"./CreditCardPaymentPlgSection-vmErttTD-9vo8N1WC.js";import"./ChaseOverlay-BGZfbx0H-C7wN1bY9.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},X="chargeCardSetUpPage",g="payAccount",{commonSetUp:tt,spendManagement:nt}=_e.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:$}=tt,Tt=({autoPayThreshold:e,isDisabled:x,meetingUrl:T,isEarlyPayEnabled:h,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:v,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:se,onUpdateChargeCardClick:le,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:ge,onEstablishConnectionSuccess:he,onClickMenuIcon:fe,onEnableChargeCardSuccess:P,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe,onSignUpClick:Pe})=>{const f=Ie(),i=Ve(),E=Be().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:z,isRefreshingViewInBackground:we,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:_,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:R}=o,L=M(b),A=M(d.fetchState),j=Ue({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>K(o),[o]),values:K(o)}),ve=j.handleSubmit(se),Ee=async(C,k)=>{const n=k[g];if(C.includes(g))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&l?.id!=n.fundingAccount.selectedOption){const u=R.find(B=>B.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(B=>B.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&E.trackConnectBankLink(u.value,u.label,"charge_cards"),le(n.account.selectedOption,l.id,l.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=j.watch((k,{name:n})=>{n!=null&&k!=null&&$e(()=>Ee(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&y(!0),w&&L==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const D=F?.isChargeCardEnabled===!0,O=_?.isDebitCardEnabled===!0,W=_?.isDebitCardTOSAccepted===!0,q=F?.isChargeCardTOSAccepted===!0,N=z?.isBusinessVerified===!0,Fe=l?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(l?.providerVerificationStatus?.code??""),I=v?N:N&&Fe,je=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const V=v?I&&!O&&W:ie?I&&!D&&q:I&&!(D&&O)&&q&&W,De=V?m.setupSubTitleNotEnabled:m.setupSubTitle,H=f.mode==="light"?new G(f.colors.brandColorJadeLight):new G(f.colors.brandColorJadeDark),Oe=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx(Re,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!D&&!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:fe,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:De}),je?t.jsx(ct,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ne,{...j,children:t.jsx("form",{id:Q(X),onSubmit:ve,children:t.jsxs(st,{windowSize:i,children:[t.jsx(Qe,{onClick:Oe,title:$.businessVerificationTitle,subTitle:$.businessVerificationSubTitle,header:$.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:z?.businessVerificationStatus,isLoading:we,isActiveWhileLoading:!0}),v?null:t.jsx(Ye,{connectedAccountProvider:Z,primaryFundingAccount:l,allFundingAccounts:R,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:g,isDisabled:x,onFetchLinkTokenClick:ae,onEstablishConnectionClick:ge,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:he,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:E,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:Pe,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:f.colors.primary,...Me.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:U.sp4,marginTop:U.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:J(g,"enableAutoPay"),checkBoxValue:J(g,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),V?t.jsx(Je,{formId:Q(X),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${U.sp3}`}}):null,t.jsx(Ke,{isFooterRendered:V,meetingUrl:T,analytics:E,productType:"charge_cards"})]})},K=e=>{const{allBankAccounts:x,allFundingAccounts:T,primaryFundingAccount:h}=e;return{[g]:{fundingAccount:{selectedOption:h?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},Q=e=>`${e}_form`,it=S.div`
2
2
  display: flex;
3
3
  justify-content: flex-start;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as F,e as T,j as t,aX as W,B,o as h,C as w,t as R,ao as q,x as O,h7 as V,$ as G,m as J,q as s,bz as Q}from"./index-CAI8M7It.js";import{n as i,b as U}from"./vendor-rkTZJa59.js";import{$ as X,g as _}from"./BoxItem-BebxqupW-HNk0cXZv.js";import{w as H}from"./downloadPdf-BET_DSP9-C3sGc_xm.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./commonDimensions-BI8wHGzb-a9YqUB1q.js";const Y=B.getLocalizedStrings().months,A={downloadButtonSize:new w(s[4],20)},K=i.div`
1
+ import{u as F,e as T,j as t,aX as W,B,o as h,C as w,t as R,ao as q,x as O,h6 as V,$ as G,m as J,q as s,bz as Q}from"./index-B3ZVYk1F.js";import{n as i,b as U}from"./vendor-rkTZJa59.js";import{$ as X,g as _}from"./BoxItem-CZKWkdxd-D45EULBV.js";import{w as H}from"./downloadPdf-B1f0mDl2-DZ9St6Zh.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./commonDimensions-WRL2ZVK_-DQ7f551Y.js";const Y=B.getLocalizedStrings().months,A={downloadButtonSize:new w(s[4],20)},K=i.div`
2
2
  display: flex;
3
3
  padding: ${h.sp3} ${h.sp4};
4
4
  flex-direction: row;
@@ -1 +1 @@
1
- import{fm as D,B,dt as c,l as S}from"./index-CAI8M7It.js";function A(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const L=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(S.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=B.getLocalizedStrings(),N=({chargeCardDetailView:e,classListFetchState:a,analytics:r,isChargeCardFeatureEnabled:d,creditAccount:t,pageName:o,addToWalletType:i,creditAccountRepayment:l,isDebitCard:n,isChargeCardAdmin:m,cardIssuedByRoles:u,cardIssuedByDepartmentName:h,cardHolderRoles:C,cardHolderDepartmentName:g,controllerEmails:p,productInformation:y,creditAccountInformation:f,debitAccountInformation:I})=>{e.chargeCard!=null&&a==="Completed"&&(!d||t.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(n&&m)||e.depositAccountLimitFetchState.fetchState==="Completed")&&r.trackCardsAddToWalletClick(p,y,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:F(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:D(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name},{cardIssuedByName:c(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:u,cardIssuedByDepartment:h},{cardholderName:c(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},o,i,f,I)},b=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},M=e=>e.limit.amount-e.available.amount,Y="1.75";export{F,N as H,A as L,b as M,L as U,M as _,Y as b};
1
+ import{fl as D,B,dt as c,l as S}from"./index-B3ZVYk1F.js";function A(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const L=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(S.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=B.getLocalizedStrings(),N=({chargeCardDetailView:e,classListFetchState:a,analytics:r,isChargeCardFeatureEnabled:d,creditAccount:t,pageName:o,addToWalletType:i,creditAccountRepayment:l,isDebitCard:n,isChargeCardAdmin:m,cardIssuedByRoles:u,cardIssuedByDepartmentName:h,cardHolderRoles:C,cardHolderDepartmentName:g,controllerEmails:p,productInformation:y,creditAccountInformation:f,debitAccountInformation:I})=>{e.chargeCard!=null&&a==="Completed"&&(!d||t.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(n&&m)||e.depositAccountLimitFetchState.fetchState==="Completed")&&r.trackCardsAddToWalletClick(p,y,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:F(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:D(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name},{cardIssuedByName:c(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:u,cardIssuedByDepartment:h},{cardholderName:c(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},o,i,f,I)},b=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},M=e=>e.limit.amount-e.available.amount,Y="1.75";export{F,N as H,A as L,b as M,L as U,M as _,Y as b};
@@ -1,4 +1,4 @@
1
- import{e as J,fj as W,fk as Y,B as Z,j as t,g as x,p as ee,K as N,$ as c,o as s,C as m,r as te,t as ie,ao as se,bv as oe,dE as re,q as l,ap as A,az as K,a7 as ne,fl as le,w as ae,cx as de,aR as ce}from"./index-CAI8M7It.js";import{b as p,n as o}from"./vendor-rkTZJa59.js";const u={width:new m(350,624,624),height:new m(600,730,730),paddingLeft:new m(l[4],l[8],l[8]),paddingRight:new m(l[4],l[7],l[7])};function Be(e){const d=J(),[,U]=W(),{isMobileOrTabletScreen:g}=Y(),[j,k]=p.useState(!0),[y,S]=p.useState(!0),[z,C]=p.useState(!1),[T,L]=p.useState(!1),r=Z.getLocalizedStrings().commonSetUp.chaseOverlay,_=r.title,q=r.description,V=()=>{window.open(r.chaseVideoUrl,"_blank")},M=[0,1,2,3],D=i=>i<M.length-1,P=(i,n)=>{U(i??""),n?k(!1):S(!1)},B=i=>{i?C(!0):L(!0)},E=i=>{i?C(!1):L(!1)};p.useEffect(()=>{j===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[j,y]);const G=()=>{const i=r.step1;return t.jsxs($,{children:[t.jsx(Ce,{"data-testid":c("chase-overlay-signin-link"),href:r.chaseSigninUrl,target:"_blank",rel:"noreferrer noopener",children:i.text1}),i.text2,t.jsxs(a,{children:[" ",i.text3]}),i.text4,t.jsxs(a,{children:[" ",i.text5]}),i.text6]})},Q=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},F=()=>{const i=r.step3,n=e.connectedAccountProvider==="stripe"?i.payeeIdStripe:i.payeeIdUnit;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(Te,{children:[t.jsxs(f,{onClick:()=>P(n,!0),onMouseOver:()=>B(!0),onMouseLeave:()=>E(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),j?t.jsxs(h,{children:[t.jsx(R,{showCopyText:z&&!g,windowSize:d,children:t.jsx(I,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(O,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>P(i.payeeName,!1),onMouseOver:()=>B(!1),onMouseLeave:()=>E(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),y?t.jsxs(h,{children:[t.jsx(R,{showCopyText:T&&!g,windowSize:d,children:t.jsx(I,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(O,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Le,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},H=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},X=i=>{switch(i){case 0:return t.jsx(G,{});case 1:return t.jsx(Q,{});case 2:return t.jsx(F,{});default:return t.jsx(H,{})}};return t.jsx(pe,{windowSize:d,role:"presentation",style:{background:x.overlayDark,...e.style},children:t.jsx(ee,{onClickAway:()=>e.action.onBackClick?.(),children:t.jsxs(he,{windowSize:d,isEditPopup:!1,children:[t.jsxs(Me,{children:[t.jsx(xe,{children:_}),t.jsx(ge,{children:q}),t.jsx(je,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:M.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:D(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:X(n)}),D(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(N,{variant:"secondary",label:r.primaryButtonText,onClick:V,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-watch-video-button")}),t.jsx(ze,{}),t.jsx(N,{variant:e.proceedButtonVariant??"primary",label:r.secondaryButtonText,onClick:e.action.onBackClick,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-proceed-button")})]})]})})})}const pe=o.div`
1
+ import{e as J,fi as W,fj as Y,B as Z,j as t,g as x,p as ee,K as N,$ as c,o as s,C as m,r as te,t as ie,ao as se,bv as oe,dE as re,q as l,ap as A,az as K,a7 as ne,fk as le,w as ae,cx as de,aR as ce}from"./index-B3ZVYk1F.js";import{b as p,n as o}from"./vendor-rkTZJa59.js";const u={width:new m(350,624,624),height:new m(600,730,730),paddingLeft:new m(l[4],l[8],l[8]),paddingRight:new m(l[4],l[7],l[7])};function Be(e){const d=J(),[,U]=W(),{isMobileOrTabletScreen:g}=Y(),[j,k]=p.useState(!0),[y,S]=p.useState(!0),[z,C]=p.useState(!1),[T,L]=p.useState(!1),r=Z.getLocalizedStrings().commonSetUp.chaseOverlay,_=r.title,q=r.description,V=()=>{window.open(r.chaseVideoUrl,"_blank")},M=[0,1,2,3],D=i=>i<M.length-1,P=(i,n)=>{U(i??""),n?k(!1):S(!1)},B=i=>{i?C(!0):L(!0)},E=i=>{i?C(!1):L(!1)};p.useEffect(()=>{j===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[j,y]);const G=()=>{const i=r.step1;return t.jsxs($,{children:[t.jsx(Ce,{"data-testid":c("chase-overlay-signin-link"),href:r.chaseSigninUrl,target:"_blank",rel:"noreferrer noopener",children:i.text1}),i.text2,t.jsxs(a,{children:[" ",i.text3]}),i.text4,t.jsxs(a,{children:[" ",i.text5]}),i.text6]})},Q=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},F=()=>{const i=r.step3,n=e.connectedAccountProvider==="stripe"?i.payeeIdStripe:i.payeeIdUnit;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(Te,{children:[t.jsxs(f,{onClick:()=>P(n,!0),onMouseOver:()=>B(!0),onMouseLeave:()=>E(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),j?t.jsxs(h,{children:[t.jsx(R,{showCopyText:z&&!g,windowSize:d,children:t.jsx(I,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(O,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>P(i.payeeName,!1),onMouseOver:()=>B(!1),onMouseLeave:()=>E(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),y?t.jsxs(h,{children:[t.jsx(R,{showCopyText:T&&!g,windowSize:d,children:t.jsx(I,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(O,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Le,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},H=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},X=i=>{switch(i){case 0:return t.jsx(G,{});case 1:return t.jsx(Q,{});case 2:return t.jsx(F,{});default:return t.jsx(H,{})}};return t.jsx(pe,{windowSize:d,role:"presentation",style:{background:x.overlayDark,...e.style},children:t.jsx(ee,{onClickAway:()=>e.action.onBackClick?.(),children:t.jsxs(he,{windowSize:d,isEditPopup:!1,children:[t.jsxs(Me,{children:[t.jsx(xe,{children:_}),t.jsx(ge,{children:q}),t.jsx(je,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:M.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:D(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:X(n)}),D(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(N,{variant:"secondary",label:r.primaryButtonText,onClick:V,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-watch-video-button")}),t.jsx(ze,{}),t.jsx(N,{variant:e.proceedButtonVariant??"primary",label:r.secondaryButtonText,onClick:e.action.onBackClick,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-proceed-button")})]})]})})})}const pe=o.div`
2
2
  position: fixed;
3
3
  top: 0;
4
4
  left: 0;
@@ -1,4 +1,4 @@
1
- import{e as Z,j as t,$,h5 as pe,B as ee,a0 as M,K as Y,o,a4 as he,C as l,a3 as oe,T as ue,ao as me,c7 as te,w as ge,t as F,a2 as xe,a as ke,ca as fe,g as w,F as De,fK as $e,cd as we,eT as W,ck as J,q as s,d1 as be,bO as ye,bw as je,cG as Pe,fe as Se,n as q,fg as Le}from"./index-CAI8M7It.js";import{b as f,n as a}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",R="selectDocument",I=e=>{const p=[];return e.checkFront!=null&&p.push(e.checkFront.fileId),e.checkBack!=null&&p.push(e.checkBack.fileId),{[g]:{[Fe]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Te]:e.checkDepositLocalData.source,[Ce]:{allOptions:e.depositAccounts.depositAccounts.map(x=>({label:x.accountName,value:x.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[ie]:p,[R]:{front:e.checkFront,back:e.checkBack}}}},D=(e,p)=>`${e}.${p}`,Be=e=>`${e}_form`,u={largeLabelWidth:new l(160,160,160),rowContentPaddingLeft:new l(s[3],s[4]),checkPicRowContentPaddingXAxis:new l(s[3],s[4]),labeleMarginLeft:new l(s[0],s[0]),labeleMarginBottom:new l(s[2],s[0]),labelMarginRight:new l(s[3],s[3]),labeledFieldPaddingLeft:new l(s[3],s[0]),labeledFieldPaddingRight:new l(s[3],s[2]),labeledFieldPaddingTop:new l(s[3],s[3]),labeledFieldPaddingBottom:new l(s[3],s[2]),infoLabelPaddingRight:new l(s[0],s[3]),infoLabelMarginTop:new l(s[1],s[0])},{spendManagement:ze,common:V}=ee.getLocalizedStrings(),c=ze.zeniAccounts.zeniAccountList,Ae=V.documents;function Ee({checkDeposit:e,analytics:p,filesEndPoint:x,openPopup:b,authParams:y,onSaveChangesToLocalStore:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T}){const r=Z(),n=e.fetchState,L=xe(n),[v,G]=f.useState(!1),[se,B]=f.useState(!1),z=u.largeLabelWidth.value(r),k=ke({mode:"all",reValidateMode:"onBlur",defaultValues:I(e),values:I(e)}),{isValid:re}=k.formState,K=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:V.currency.currencyCode,currencySymbol:V.currency.currencySymbol},source:i[g].source,depositTo:e.depositAccounts.depositAccounts.find(h=>h.id===i[g].depositTo.selectedOption),fileIds:i[g][ie]};C(d)},ce=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);K(h)}};f.useEffect(()=>{const i=k.watch((d,{name:h})=>{h!=null&&d!=null&&fe(()=>ce(h,d))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{L==="Completed"&&n==="Not-Started"&&k.reset(I(e))},[L,n,k,e]),f.useEffect(()=>{e.error!=null?B(!0):B(!1)},[e.error]);const le=k.handleSubmit(()=>{if(re){p.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const i=k.getValues();K(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(E=>E.id===i),A=e.depositAccounts.depositAccounts.findIndex(E=>E.id===i);return h?t.jsx(Ve,{color:Se(A),isSelectedValue:d}):null},de=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(A=>A.id===i);return h?d===!0?t.jsx(Re,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(Q,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(Q,{children:M("0,0[.]00",h?.accountBalance?.available)})]}):null};return t.jsxs(t.Fragment,{children:[se?t.jsx(Oe,{children:t.jsxs(qe,{children:[t.jsxs(Ge,{children:[t.jsx(Ye,{}),t.jsxs(We,{children:[t.jsx(Je,{children:e.error?.title}),t.jsx(Qe,{children:e.error?.message})]})]}),t.jsx(Ke,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),B(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(Ue,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...k,children:t.jsx("form",{id:Be(ve),onSubmit:le,children:t.jsxs(_e,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:c.checkDepositDrawer.amountLabel,width:z},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:c.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:i=>!!i&&i>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(N,{}),t.jsx(we,{label:{label:c.checkDepositDrawer.sourceLabel,width:z},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:c.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:i=>i!=null}}}),t.jsx(N,{}),t.jsx(ae,{size:r,children:t.jsx(eo,{size:r,children:t.jsx(Xe,{label:{label:c.checkDepositDrawer.depositToLabel,width:z,style:{marginLeft:u.labeleMarginLeft.valuePx(r),marginBottom:u.labeleMarginBottom.valuePx(r),marginRight:u.labelMarginRight.valuePx(r)}},style:{paddingTop:u.labeledFieldPaddingTop.valuePx(r),paddingBottom:u.labeledFieldPaddingBottom.valuePx(r),paddingLeft:u.labeledFieldPaddingLeft.valuePx(r),paddingRight:u.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:u.infoLabelPaddingRight.valuePx(r),marginTop:u.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(i,d)=>ne(i,d),valueToSubLabels:(i,d)=>de(i,d),name:D(g,"depositTo"),placeholder:c.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(i=>({label:i.accountName,value:i.id}))},textAlignment:"right",registerOptions:{required:!0,validate:i=>!!(i!=null&&i.selectedOption)}}})})}),t.jsx(N,{}),t.jsxs(He,{size:r,children:[t.jsxs(Ze,{size:r,children:[t.jsx(Ie,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(U,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(W,{name:`${D(g,R)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:J,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>G(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(U,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(W,{name:`${D(g,R)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:J,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>G(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:c.checkDepositDrawer.picGuides.map(i=>t.jsxs(ao,{children:[t.jsx(oo,{}),t.jsx(Ne,{children:i})]},i))})]}),t.jsx(so,{windowSize:r,children:Ae.formatJPGText10MB})]})]})})})]})}const Ie=a(F)`
1
+ import{e as Z,j as t,$,h4 as pe,B as ee,a0 as M,K as J,o,a4 as he,C as l,a3 as oe,T as ue,ao as me,c7 as te,w as ge,t as F,a2 as xe,a as fe,ca as ke,g as w,F as De,fJ as $e,cd as we,eS as K,ck as W,q as s,d1 as be,bO as ye,bw as je,cG as Pe,fd as Se,n as q,ff as Le}from"./index-B3ZVYk1F.js";import{b as k,n as a}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",R="selectDocument",I=e=>{const p=[];return e.checkFront!=null&&p.push(e.checkFront.fileId),e.checkBack!=null&&p.push(e.checkBack.fileId),{[g]:{[Fe]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Te]:e.checkDepositLocalData.source,[Ce]:{allOptions:e.depositAccounts.depositAccounts.map(x=>({label:x.accountName,value:x.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[ie]:p,[R]:{front:e.checkFront,back:e.checkBack}}}},D=(e,p)=>`${e}.${p}`,Be=e=>`${e}_form`,u={largeLabelWidth:new l(160,160,160),rowContentPaddingLeft:new l(s[3],s[4]),checkPicRowContentPaddingXAxis:new l(s[3],s[4]),labeleMarginLeft:new l(s[0],s[0]),labeleMarginBottom:new l(s[2],s[0]),labelMarginRight:new l(s[3],s[3]),labeledFieldPaddingLeft:new l(s[3],s[0]),labeledFieldPaddingRight:new l(s[3],s[2]),labeledFieldPaddingTop:new l(s[3],s[3]),labeledFieldPaddingBottom:new l(s[3],s[2]),infoLabelPaddingRight:new l(s[0],s[3]),infoLabelMarginTop:new l(s[1],s[0])},{spendManagement:ze,common:V}=ee.getLocalizedStrings(),c=ze.zeniAccounts.zeniAccountList,Ae=V.documents;function Ee({checkDeposit:e,analytics:p,filesEndPoint:x,openPopup:b,authParams:y,onSaveChangesToLocalStore:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T}){const r=Z(),n=e.fetchState,L=xe(n),[v,G]=k.useState(!1),[se,B]=k.useState(!1),z=u.largeLabelWidth.value(r),f=fe({mode:"all",reValidateMode:"onBlur",defaultValues:I(e),values:I(e)}),{isValid:re}=f.formState,Y=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:V.currency.currencyCode,currencySymbol:V.currency.currencySymbol},source:i[g].source,depositTo:e.depositAccounts.depositAccounts.find(h=>h.id===i[g].depositTo.selectedOption),fileIds:i[g][ie]};C(d)},ce=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);Y(h)}};k.useEffect(()=>{const i=f.watch((d,{name:h})=>{h!=null&&d!=null&&ke(()=>ce(h,d))});return()=>{i.unsubscribe()}}),k.useEffect(()=>{L==="Completed"&&n==="Not-Started"&&f.reset(I(e))},[L,n,f,e]),k.useEffect(()=>{e.error!=null?B(!0):B(!1)},[e.error]);const le=f.handleSubmit(()=>{if(re){p.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const i=f.getValues();Y(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(E=>E.id===i),A=e.depositAccounts.depositAccounts.findIndex(E=>E.id===i);return h?t.jsx(Ve,{color:Se(A),isSelectedValue:d}):null},de=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(A=>A.id===i);return h?d===!0?t.jsx(Re,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(Q,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(Q,{children:M("0,0[.]00",h?.accountBalance?.available)})]}):null};return t.jsxs(t.Fragment,{children:[se?t.jsx(Oe,{children:t.jsxs(qe,{children:[t.jsxs(Ge,{children:[t.jsx(Je,{}),t.jsxs(Ke,{children:[t.jsx(We,{children:e.error?.title}),t.jsx(Qe,{children:e.error?.message})]})]}),t.jsx(Ye,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),B(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(Ue,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...f,children:t.jsx("form",{id:Be(ve),onSubmit:le,children:t.jsxs(_e,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:c.checkDepositDrawer.amountLabel,width:z},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:c.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:i=>!!i&&i>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(N,{}),t.jsx(we,{label:{label:c.checkDepositDrawer.sourceLabel,width:z},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:c.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:i=>i!=null}}}),t.jsx(N,{}),t.jsx(ae,{size:r,children:t.jsx(eo,{size:r,children:t.jsx(Xe,{label:{label:c.checkDepositDrawer.depositToLabel,width:z,style:{marginLeft:u.labeleMarginLeft.valuePx(r),marginBottom:u.labeleMarginBottom.valuePx(r),marginRight:u.labelMarginRight.valuePx(r)}},style:{paddingTop:u.labeledFieldPaddingTop.valuePx(r),paddingBottom:u.labeledFieldPaddingBottom.valuePx(r),paddingLeft:u.labeledFieldPaddingLeft.valuePx(r),paddingRight:u.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:u.infoLabelPaddingRight.valuePx(r),marginTop:u.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(i,d)=>ne(i,d),valueToSubLabels:(i,d)=>de(i,d),name:D(g,"depositTo"),placeholder:c.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(i=>({label:i.accountName,value:i.id}))},textAlignment:"right",registerOptions:{required:!0,validate:i=>!!(i!=null&&i.selectedOption)}}})})}),t.jsx(N,{}),t.jsxs(He,{size:r,children:[t.jsxs(Ze,{size:r,children:[t.jsx(Ie,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(U,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(K,{name:`${D(g,R)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:W,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>G(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(U,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(K,{name:`${D(g,R)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:W,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>G(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:c.checkDepositDrawer.picGuides.map(i=>t.jsxs(ao,{children:[t.jsx(oo,{}),t.jsx(Ne,{children:i})]},i))})]}),t.jsx(so,{windowSize:r,children:Ae.formatJPGText10MB})]})]})})})]})}const Ie=a(F)`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  `,Ne=a(F)`
4
4
  color: ${e=>e.theme.colors.hero};
@@ -34,15 +34,15 @@ import{e as Z,j as t,$,h5 as pe,B as ee,a0 as M,K as Y,o,a4 as he,C as l,a3 as o
34
34
  `,Ge=a.div`
35
35
  display: flex;
36
36
  align-items: flex-start;
37
- `,Ke=a.div``,Ye=a(be)`
37
+ `,Ye=a.div``,Je=a(be)`
38
38
  width: ${o.sp4};
39
39
  height: ${o.sp4};
40
40
  color: ${w.important};
41
- `,We=a.div`
41
+ `,Ke=a.div`
42
42
  display: flex;
43
43
  flex-direction: column;
44
44
  margin-left: ${o.sp2};
45
- `,Je=a(ye)`
45
+ `,We=a(ye)`
46
46
  color: ${w.important};
47
47
  `,Qe=a(F)`
48
48
  color: ${w.important};
@@ -145,7 +145,7 @@ import{e as Z,j as t,$,h5 as pe,B as ee,a0 as M,K as Y,o,a4 as he,C as l,a3 as o
145
145
  &:hover {
146
146
  color: ${e=>e.theme.colors.primary};
147
147
  }
148
- `,co="checkDepositDetailPage",lo={NavBarContainerPaddingYAxis:new l(10,s[3])},no=e=>`${e}_form`,O={containerPaddingLeft:new l(s[3],s[6],s[8]),containerPaddingRight:new l(s[3],s[6],s[8]),successContentMargin:new l(s[3],s[12])},{spendManagement:po}=ee.getLocalizedStrings(),m=po.zeniAccounts.zeniAccountList,Co=({checkDeposit:e,analytics:p,filesEndPoint:x,authParams:b,onSaveChangesToLocalStore:y,onAnotherTransferClick:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T,onDismissClick:r})=>{const n=Z(),[L,v]=f.useState(!1);return t.jsx(go,{windowSize:n,children:e.fetchState==="Completed"?t.jsxs(X,{windowSize:n,children:[t.jsx(_,{windowSize:n,children:t.jsx(H,{"data-testid":$("check-deposit-drawer-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),r?.()}})}),t.jsxs(fo,{windowSize:n,children:[t.jsx(pe,{width:150,height:150,shouldDisplay:!0,animationInLoop:!0}),t.jsxs(xo,{children:[m.checkDepositDrawer.transferSuccessMsgPrefix,t.jsx(mo,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),m.checkDepositDrawer.transferSuccessMsgSuffix]}),t.jsxs(ko,{children:[t.jsx(Y,{variant:"secondary",label:m.checkDepositDrawer.makeAnotherTransferBtn,onClick:C,"data-testid":$("check-deposit-drawer-another-transfer")}),t.jsx(Y,{variant:"primary",label:m.checkDepositDrawer.goToAccountBtn,onClick:r,style:{marginLeft:n==="small"?o.sp3:o.sp5},"data-testid":$("check-deposit-drawer-go-to-account")})]})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(X,{windowSize:n,children:[t.jsx(_,{windowSize:n,children:t.jsx(H,{"data-testid":$("check-deposit-drawer-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),r?.()}})}),n==="small"?t.jsx(Do,{windowSize:n,children:m.checkDepositDrawer.title}):t.jsx($o,{children:m.checkDepositDrawer.title}),n==="small"?t.jsx(uo,{children:m.checkDepositDrawer.subTitle}):t.jsx(ho,{children:m.checkDepositDrawer.subTitle}),t.jsx(Ee,{analytics:p,authParams:b,checkDeposit:e,filesEndPoint:x,onSaveChangesToLocalStore:y,openPopup:v,onCheckDpositClick:T,onDeleteFile:P,onEditFileName:S,updateFilesEntity:j})]}),t.jsx(he,{formId:no(co),helperText:m.checkDepositDrawer.footNote,helperStyle:{paddingTop:o.sp0,paddingBottom:o.sp0},style:{zIndex:L?0:4,paddingTop:o.sp3,paddingBottom:o.sp3},primaryBtn:{label:m.checkDepositDrawer.depositBtn,isLoading:e.fetchState==="In-Progress"},cancelBtn:{label:m.checkDepositDrawer.cancelBtn,onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cancel",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),r?.()}}})]})})},ho=a(F)`
148
+ `,co="checkDepositDetailPage",lo={NavBarContainerPaddingYAxis:new l(10,s[3])},no=e=>`${e}_form`,O={containerPaddingLeft:new l(s[3],s[6],s[8]),containerPaddingRight:new l(s[3],s[6],s[8]),successContentMargin:new l(s[3],s[12])},{spendManagement:po}=ee.getLocalizedStrings(),m=po.zeniAccounts.zeniAccountList,Co=({checkDeposit:e,analytics:p,filesEndPoint:x,authParams:b,onSaveChangesToLocalStore:y,onAnotherTransferClick:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T,onDismissClick:r})=>{const n=Z(),[L,v]=k.useState(!1);return t.jsx(go,{windowSize:n,children:e.fetchState==="Completed"?t.jsxs(X,{windowSize:n,children:[t.jsx(_,{windowSize:n,children:t.jsx(H,{"data-testid":$("check-deposit-drawer-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),r?.()}})}),t.jsxs(ko,{windowSize:n,children:[t.jsx(pe,{width:150,height:150,shouldDisplay:!0,animationInLoop:!0}),t.jsxs(xo,{children:[m.checkDepositDrawer.transferSuccessMsgPrefix,t.jsx(mo,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),m.checkDepositDrawer.transferSuccessMsgSuffix]}),t.jsxs(fo,{children:[t.jsx(J,{variant:"secondary",label:m.checkDepositDrawer.makeAnotherTransferBtn,onClick:C,"data-testid":$("check-deposit-drawer-another-transfer")}),t.jsx(J,{variant:"primary",label:m.checkDepositDrawer.goToAccountBtn,onClick:r,style:{marginLeft:n==="small"?o.sp3:o.sp5},"data-testid":$("check-deposit-drawer-go-to-account")})]})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(X,{windowSize:n,children:[t.jsx(_,{windowSize:n,children:t.jsx(H,{"data-testid":$("check-deposit-drawer-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),r?.()}})}),n==="small"?t.jsx(Do,{windowSize:n,children:m.checkDepositDrawer.title}):t.jsx($o,{children:m.checkDepositDrawer.title}),n==="small"?t.jsx(uo,{children:m.checkDepositDrawer.subTitle}):t.jsx(ho,{children:m.checkDepositDrawer.subTitle}),t.jsx(Ee,{analytics:p,authParams:b,checkDeposit:e,filesEndPoint:x,onSaveChangesToLocalStore:y,openPopup:v,onCheckDpositClick:T,onDeleteFile:P,onEditFileName:S,updateFilesEntity:j})]}),t.jsx(he,{formId:no(co),helperText:m.checkDepositDrawer.footNote,helperStyle:{paddingTop:o.sp0,paddingBottom:o.sp0},style:{zIndex:L?0:4,paddingTop:o.sp3,paddingBottom:o.sp3},primaryBtn:{label:m.checkDepositDrawer.depositBtn,isLoading:e.fetchState==="In-Progress"},cancelBtn:{label:m.checkDepositDrawer.cancelBtn,onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cancel",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),r?.()}}})]})})},ho=a(F)`
149
149
  color: ${e=>e.theme.colors.hero};
150
150
  `,uo=a(ge)`
151
151
  color: ${e=>e.theme.colors.hero};
@@ -165,11 +165,11 @@ import{e as Z,j as t,$,h5 as pe,B as ee,a0 as M,K as Y,o,a4 as he,C as l,a3 as o
165
165
  height: ${e=>e.windowSize==="small"?"auto":"100%"};
166
166
  padding-left: ${e=>`${O.containerPaddingLeft.valuePx(e.windowSize)}`};
167
167
  padding-right: ${e=>`${O.containerPaddingRight.valuePx(e.windowSize)}`};
168
- `,ko=a.div`
168
+ `,fo=a.div`
169
169
  display: flex;
170
170
  justify-content: center;
171
171
  margin-top: ${o.sp7};
172
- `,fo=a.div`
172
+ `,ko=a.div`
173
173
  height: 80%;
174
174
  display: flex;
175
175
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,e as M,O as ui,H as fo,dk as pi,dl as xo,l as A,B as W,q as w,dm as Vi,dn as Ot,a8 as _,dp as Mt,bH as Nt,dq as It,C as D,cz as Pt,Y as Di,b as Je,dr as Ne,bh as K,m as mo,u as ce,af as Ri,ds as Gi,a9 as V,k as Ae,dt as wo,du as se,bG as zt,bv as gi,w as yo,n as ye,dv as Xe,dw as Be,dx as tt,t as C,bO as ne,dy as bo,v as Ft,dz as Re,dA as fi,dB as xi,dC as ko,dD as jo,ao as Ei,al as So,c3 as Tt,c2 as Vt,dE as Co,am as Hi,c6 as Ki,bn as vo,dF as $o,dG as mi,dH as wi,dI as _o,dJ as Lo,bp as Ao,b6 as Bo,dK as Wo}from"./index-CAI8M7It.js";import{n as a,b as I,f as Oo,j as P}from"./vendor-rkTZJa59.js";import{L as it,N as Mo,D as No,B as be,u as $}from"./AccountRow-D-CPGejv-3nsIGhlD.js";function Z(e,i){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return q("0,0",e?.balance)}function J(e){return q("0,0",e?.forecast)}function Yi(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return q("0,0",e?.totalBalance)}function bt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return q("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const i=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const i=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return q("0,0",Object.assign({},e.forecast,{amount:i}))}else return q("0,0",null)}function Ui(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const i=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function qi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const i=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return q("0,0",Object.assign({},e.totalForecast,{amount:i}))}else return q("0,0",null)}const Ie=(e,i,n)=>{const{startDate:o,balanceType:r}=i,{dateFormat:{visual:l}}=W.getLocalizedStrings();switch(n){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.MMMYYYYFormat,e)}`:ft(r,n);case"quarter":return r==="default"||r==="default_with_percent"?`${W.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(o,l.QYYYYformat,e)}`:ft(r,n);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.YYYYformat,e)}`:ft(r,n);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ft(e,i){return W.getLocalizedStrings().downloadReport.additionalColumns.labels[i][e]}const eg=(e,i,n)=>{const o=i.length==0?e:`${e}_${i.join("_")}`;return n!=null&&n.trim().length>0?`${o}_${n}`:`${o}_${go(10)}`},Io=a.div`
1
+ import{j as t,aj as po,$ as m,bf as fe,a0 as q,dj as go,o as c,g as ee,a2 as hi,e as M,O as ui,H as fo,dk as pi,dl as xo,l as A,B as W,q as w,dm as Vi,dn as Ot,a8 as _,dp as Mt,bH as Nt,dq as It,C as D,cz as Pt,Y as Di,b as Je,dr as Ne,bh as K,m as mo,u as ce,af as Ri,ds as Gi,a9 as V,k as Ae,dt as wo,du as se,bG as zt,bv as gi,w as yo,n as ye,dv as Xe,dw as Be,dx as tt,t as C,bO as ne,dy as bo,v as Ft,dz as Re,dA as fi,dB as xi,dC as ko,dD as jo,ao as Ei,al as So,c3 as Tt,c2 as Vt,dE as Co,am as Hi,c6 as Ki,bn as vo,dF as $o,dG as mi,dH as wi,dI as _o,dJ as Lo,bp as Ao,b6 as Bo,dK as Wo}from"./index-B3ZVYk1F.js";import{n as a,b as I,f as Oo,j as P}from"./vendor-rkTZJa59.js";import{L as it,N as Mo,D as No,B as be,u as $}from"./AccountRow-CiIWoLq3-edEx8OVG.js";function Z(e,i){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return q("0,0",e?.balance)}function J(e){return q("0,0",e?.forecast)}function Yi(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return q("0,0",e?.totalBalance)}function bt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return q("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const i=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const i=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return q("0,0",Object.assign({},e.forecast,{amount:i}))}else return q("0,0",null)}function Ui(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const i=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function qi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const i=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return q("0,0",Object.assign({},e.totalForecast,{amount:i}))}else return q("0,0",null)}const Ie=(e,i,n)=>{const{startDate:o,balanceType:r}=i,{dateFormat:{visual:l}}=W.getLocalizedStrings();switch(n){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.MMMYYYYFormat,e)}`:ft(r,n);case"quarter":return r==="default"||r==="default_with_percent"?`${W.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(o,l.QYYYYformat,e)}`:ft(r,n);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.YYYYformat,e)}`:ft(r,n);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ft(e,i){return W.getLocalizedStrings().downloadReport.additionalColumns.labels[i][e]}const eg=(e,i,n)=>{const o=i.length==0?e:`${e}_${i.join("_")}`;return n!=null&&n.trim().length>0?`${o}_${n}`:`${o}_${go(10)}`},Io=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;