@zeniai/web-cockpit-ui 1.13.83-dev → 1.13.83-qa

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 (220) hide show
  1. package/dist/assets/{ACHDetailsPage-_VHVuqJw-Doq1oZyo.js → ACHDetailsPage-_VHVuqJw-Bymc8CZ3.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-C89zANQm-Bsl24y8I.js → AIPerformancePage-C89zANQm-DAbfunq3.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-DygdgdmU-3JH7j-i_.js → AccountInfoPage-DygdgdmU-DOUY2WTN.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B8SOX9i5-BCZgg4J1.js → AccountInfoPageContent-B8SOX9i5-7d4Bt0bR.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-BVnXwxD4-Cf92xfvn.js → AccountReconDetailsDrawerPage-BVnXwxD4-DEurx_N4.js} +1 -1
  6. package/dist/assets/{AccountRow-CpUAoVFw-HMGE2G2G.js → AccountRow-CpUAoVFw-BuMEboIn.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-9UqzeTvF-D_htA_iB.js → AccountsPromoCardStack-9UqzeTvF-CzL1CjSW.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-flYKIptj-DEezXSYv.js → AddAddressForCardDrawer-flYKIptj-CZXNkdja.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-qMFXqjhm-CU24a73Q.js → AddToWalletPage-qMFXqjhm-BLIVGZdo.js} +1 -1
  10. package/dist/assets/{AgingReportsPage-CdVOTjjc-oI1sUgwp.js → AgingReportsPage-CdVOTjjc-BjXskb5q.js} +1 -1
  11. package/dist/assets/{AllUserItems-6g-IFiDP-BpYRP2V4.js → AllUserItems-6g-IFiDP-BF7NBOrr.js} +1 -1
  12. package/dist/assets/{ApAgingDetailPage-DNG6y6eT-BuMaoAUg.js → ApAgingDetailPage-DNG6y6eT-DhHZsXHm.js} +1 -1
  13. package/dist/assets/{AppBasePage-C0Sy0oae-CY_9KM8v.js → AppBasePage-C0Sy0oae-DvEJ-ATe.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-BAYPGtYY-CFxdv-nr.js → AppDrawerContent-BAYPGtYY-CUnHM7PZ.js} +1 -1
  15. package/dist/assets/{ApprovalRulesSettingsPage-D52kq1hZ-DthZHs0s.js → ApprovalRulesSettingsPage-D52kq1hZ-BYg8vnKt.js} +1 -1
  16. package/dist/assets/{ArAgingChart-Bso6mAzK-BVreFIvH.js → ArAgingChart-Bso6mAzK-j6sfc3fv.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-BxtXGjOk-DiZNGNon.js → ArAgingDetailPage-BxtXGjOk-CBtuYc3L.js} +1 -1
  18. package/dist/assets/{AttachmentView-cjbbz-rh-CV6MlHII.js → AttachmentView-cjbbz-rh-BnkWjld0.js} +1 -1
  19. package/dist/assets/{BankAccountSection-Cf1NyJua-1RZ9y6Q8.js → BankAccountSection-Cf1NyJua-CA0IxE0G.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-hZNBR8bC-M9s6rTPg.js → BankAccountWarningSection-hZNBR8bC-DgrV5hrK.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-C42Z61VJ-BUJAWfzF.js → BankConnectionsSettingsPage-C42Z61VJ-BjXrRucN.js} +1 -1
  22. package/dist/assets/{BillDetailPage-C9ABXSip-BzhejHXt.js → BillDetailPage-C9ABXSip-Dyhvss4T.js} +1 -1
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-C_P8uDLH-Bb-1TSd8.js → BillPayApprovalRuleDetailPage-C_P8uDLH-c09oNfGD.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-B-e1bydX-D3rOZ0TO.js → BillPayApprovalRulesPage-B-e1bydX-37-nfPS6.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-CdGuDH1_-BJNNurbE.js → BillPayPromoPage-CdGuDH1_-DoTWyE5k.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-BJzAf5ei-BLpUm7YZ.js → BillPaySetUpPage-BJzAf5ei-BfqA1r1q.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-CqFQk_xm-NwFTkJQr.js → BillingSettingsPage-CqFQk_xm-Wzi8-Pxm.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-Bo9JcC7R-CKi6vtjs.js → BillsBulkReviewDrawerPage-Bo9JcC7R-D0jNWqxU.js} +1 -1
  29. package/dist/assets/{BoxItem-BMejIo17-DYaYpAty.js → BoxItem-BMejIo17-DfTWFZ7_.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-B4T4eKqS-BxOKHQn4.js → BusinessVerificationPage-B4T4eKqS-Bye3WrQZ.js} +1 -1
  31. package/dist/assets/{CardNumberSubText-DU4-NQyz-CxmQbHAh.js → CardNumberSubText-DU4-NQyz-186D7nSj.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-gEd-o4kR-CRml17tc.js → CashbackDetailPage-gEd-o4kR-C4wVKPgt.js} +1 -1
  33. package/dist/assets/{ChargeCardDetailPage-Bi0lqA56-CepICoHz.js → ChargeCardDetailPage-Bi0lqA56-BFxB7GLk.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-D0DuXZ7e-CnP96JSD.js → ChargeCardListPage-D0DuXZ7e-DlfCFnes.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-C1RWnfY_-dZQZ_0O0.js → ChargeCardListTable-C1RWnfY_-CHbl4tuS.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-CIboCUSV-CPRzKXVU.js → ChargeCardPromoPage-CIboCUSV-y-DLxjGT.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-DNUctoFI-DP8fEZNW.js → ChargeCardSetupPage-DNUctoFI-CLAGahbp.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-B565dWKi-CwenRWpE.js → ChargeCardStatementsPage-B565dWKi-BNK7rWNj.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-BN7bbdUB-BDnfEJHK.js → ChargeCardUtils-BN7bbdUB-BbkRwxs1.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-BrHcqwQQ-9yUtYaFO.js → ChaseOverlay-BrHcqwQQ-D5p6lw7W.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-K9NmaIpu-DlmpMmn8.js → CheckDepositDrawerPage-K9NmaIpu-DOGNQqAq.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-C5VV-Hqz-B9BitG9z.js → CollapsableReportTable-C5VV-Hqz-BgVDm2Ba.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-DHqtLqa--CKQpSpe2.js → CompanyOfficerDetailsSection-DHqtLqa--DkQW91X6.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BtC806n1-BALDSz8U.js → CompanyPassportCard-BtC806n1-BE2Vutw3.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-CZBZoHu3-BtN1mYZH.js → CompanyPassportPage-CZBZoHu3-CVdv1vFg.js} +1 -1
  46. package/dist/assets/{CompleteProfile-CwZtbTzm-Hv8d7_cg.js → CompleteProfile-CwZtbTzm-B0JwwIUN.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-Bvvql-8k-BLubY-K5.js → ConfettiBurst-Bvvql-8k-BorMAewb.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-B43jo6gf-BltFef69.js → CreateOrEditVendorPage-B43jo6gf-XWR76dqm.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-1litLdxa-Cica9BgE.js → CreditCardPaymentDrawerPage-1litLdxa-C6R9hrSu.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-CEjV1ee_-CJS3AWLV.js → CreditCardPaymentPlgSection-CEjV1ee_-C66jG_cF.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-DMPtPzwJ-IAj1-v3T.js → CurrencySelectField-DMPtPzwJ-CVyHXZxa.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-DUQPZIJW-D0gnLyMf.js → CustomerOnboardingActivationPage-DUQPZIJW-C2-ZWnw3.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-BsErtHzd-BdcZe_io.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D-MkZIDQ-C4W6FsQp.js → CustomerOnboardingDetailPageSkeleton-D-MkZIDQ-DF5QLwbE.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-JnxUTXUI-C0BXlgNr.js → CustomerOnboardingNoStepsPage-JnxUTXUI-92Zb-Tm2.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-C1pKcpFC-CjisTXvM.js → CustomerOnboardingPage-C1pKcpFC-CGanCl6o.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-C47rlXpl-BpsZoYuk.js → CustomerOnboardingProductSuitePage-C47rlXpl-wD-8riam.js} +1 -1
  58. package/dist/assets/{Dashboard-CyZG5DEY-DYIx6Vxx.js → Dashboard-CyZG5DEY-C3KfWHk8.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-B8sZBvi0-MntV2bW8.js → DashboardReportPage-B8sZBvi0-Bkka6zpc.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-SBvKiZUo-CFyTK5QE.js → DepositAccTransactionItem-SBvKiZUo-DJaX4dE5.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-DxyOodRG-B1Ax9NZC.js → DepositAccTransactionListPage-DxyOodRG-CDy1pV7B.js} +1 -1
  62. package/dist/assets/{DocumentSecurityBanner-2RwwRIbj-BcoXD7TB.js → DocumentSecurityBanner-2RwwRIbj-KpNSpuh7.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-BbmbS2h3-B-Fp80IM.js → DomesticWireDetailsPage-BbmbS2h3-Ch-Vtjq-.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-D_7Q3gwF-DswP3IpQ.js → DownloadOverlay-D_7Q3gwF-BtTWiRYh.js} +1 -1
  65. package/dist/assets/{DrawerPage-D7ZExidR-tBC3-6XU.js → DrawerPage-D7ZExidR-CIWuPHJ5.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-QsjUi5_S-CMzgJvTX.js → EditPeoplePage-QsjUi5_S-DkWH1BmJ.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-CZWIuR9q-D_w3pTP5.js → EditReimbursementDetailPage-CZWIuR9q-DiQem3xT.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-liLBcaFa-DI756bbn.js → EntityDetailPage-liLBcaFa-BbblawRB.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-BEubg_Ke-6YYDcZeu.js → EntitySummarySection-BEubg_Ke-Bdvy7iaP.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-De7pJxb1-D6-9-KsF.js → ExpenseAutomationOverviewPage-De7pJxb1--Us_wwQ9.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-JGlqvmW0-CfsHhd6-.js → ExpenseAutomationPage-JGlqvmW0-DGGQ5kes.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-DMuL6rjt-CI_seo4u.js → ExpressPayPage-DMuL6rjt-BbpZP04j.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-eU2Fncgw-B413ENKD.js → FeaturePreviewPage-eU2Fncgw-Df6t4vlN.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-CIOJXyXO-C5O_8PHi.js → FollowStepsSection-CIOJXyXO-Ck9BhOv7.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-DbGsAMQF-AyuyUoqI.js → GlobalReviewListPage-DbGsAMQF-DEii590Y.js} +1 -1
  76. package/dist/assets/{HelpButton-DYFzwkI3-DGXEm476.js → HelpButton-DYFzwkI3-Cel7B9gC.js} +1 -1
  77. package/dist/assets/{InformationCardStack-DBC0PIB2-CmpAx7XX.js → InformationCardStack-DBC0PIB2-ZpzVR8Pu.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-BiyzY54v-F4HrJJ4c.js → InsightsCardStack-BiyzY54v-DjzlYvXC.js} +1 -1
  79. package/dist/assets/{InsightsSection-CB95rM5E-D4gjoxVk.js → InsightsSection-CB95rM5E-D6F0bC-C.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-IozP8XCs-5FtLdrC7.js → IntegrationsSettingsPage-IozP8XCs-Covl1ghU.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-CBLjT_qk-5otsD6wN.js → InternationalWireSwiftDetailsPage-CBLjT_qk-C24yuZmd.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-BDHKKPIV-BkmnuuAq.js → InternationalWireVerificationPage-BDHKKPIV-Kq4wZhMp.js} +1 -1
  83. package/dist/assets/{InviteFormPage-DcVcYJU0-B0eCfhkp.js → InviteFormPage-DcVcYJU0-CpPhN43t.js} +1 -1
  84. package/dist/assets/{InvitePageListView-CtGrvvWG-DekOBDFL.js → InvitePageListView-CtGrvvWG-DUC9eyzx.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-CV75uhrr-CGjIS6qt.js → InvitePeoplePage-CV75uhrr-B1Hdsrwm.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-CzeBCw69-CiUxF3GU.js → InvoiceUploadSection-CzeBCw69-MIl0YoqM.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-DywMnIW9-BXZp2X8H.js → IssueChargeCardPage-DywMnIW9-DZC1TtsH.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-aXAfyy6x-CezEtPGS.js → LabeledAddressValue-aXAfyy6x-zuxWHZ35.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-BdNErK0u-CARcO6oK.js → LabeledAddressValueField-BdNErK0u-BCVVhFLg.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-DPoSmzJi-Dd2UAlNr.js → LabeledControlledCheckBoxField-DPoSmzJi-B9fcjMs6.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-DsyZw9q6-Lcg9eXyG.js → LabeledCreatableSingleSelectField-DsyZw9q6-BgU9LeRU.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-IC75UO-m-0LGLKZw-.js → LabeledDocumentField-IC75UO-m-BR65Je6h.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-DRdoEEXa-Bng-S4cZ.js → LabeledDropDownFormattedTextField-DRdoEEXa-ihK1IWBq.js} +1 -1
  94. package/dist/assets/{LabeledText-CcIJZUuh-D8M-KPoq.js → LabeledText-CcIJZUuh-CPcjfLXi.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CPJQjrJK-DoPiN1WW.js → LabeledUserSingleSelectWithSubtitlesField-CPJQjrJK-DWx8mI1V.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-WCoZXbuy-BisUheWK.js → LabeledZeniRolesDropDownField-WCoZXbuy-DHAUidGL.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-jB4x6YYH-CSGqTLyV.js → LinkJETransactionPage-jB4x6YYH-CygKAijz.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-c-6SC1hh-BBkYDAme.js → LowBalancePopup-c-6SC1hh-B9wQAJ9M.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage-Cm98tK2_-ihGaaKuv.js → MagicLinkACHDetailsPage-Cm98tK2_-7ec-cqHZ.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-26S-99Ie-SxU7dCDj.js → MagicLinkDomesticWireDetailsPage-26S-99Ie-D3QNyjAa.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-CY-hI3QM-C1qljcrA.js → MagicLinkInternationalWireDetailsPage-CY-hI3QM-D4hmDiEg.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-1VMpD_t0-B3eoAsAb.js → MagicLinkSuccessPage-1VMpD_t0-YoPoa1Fs.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-BiZ9MGYp-DDgpPz9o.js → MagicLinkTitleSection-BiZ9MGYp-Cl_WugVD.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-DfxeX2uy-yWo1tCEg.js → MailingDetailsSection-DfxeX2uy-D2drNkzT.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-ifcJuMu9-CWfHFman.js → MeetingCalenderPopup-ifcJuMu9-ByO1X2Hh.js} +1 -1
  106. package/dist/assets/{Menu-B4Q04CAH-BOktILCZ.js → Menu-B4Q04CAH-4XWj_HwH.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-rM_qhevU-C-BOjqBd.js → MyBankConnectionsSettingsPage-rM_qhevU-DITmqjDy.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CwwpQgC6-TWnqZoKB.js → MyPendingActivationChargeCardListPage-CwwpQgC6-iU-kUMq9.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DbkgXE3d-C6qe13B1.js → MyProfileSettingsPage-DbkgXE3d-BGJQs-jC.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-CHrbDC5H-CJNDnkGd.js → NavBarWithPicker-CHrbDC5H-DmfI4NHq.js} +1 -1
  111. package/dist/assets/{NavigationArrow-B68QyyUR-DHT0p34d.js → NavigationArrow-B68QyyUR-DJ2p6cca.js} +1 -1
  112. package/dist/assets/{NavigationDots-DYkUvR3H-CBy1tYVO.js → NavigationDots-DYkUvR3H-CWQugA3e.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-CEZgARa1-HqI4Eyq-.js → NewGlobalMerchantPage-CEZgARa1-Oq3mm2EE.js} +1 -1
  114. package/dist/assets/{NoDataChart-CEPkoKCh-CcKGQC2R.js → NoDataChart-CEPkoKCh-CJB-ycSI.js} +1 -1
  115. package/dist/assets/{NoDataTable-Z4rV9ZBK-CImHkpSP.js → NoDataTable-Z4rV9ZBK-p_2JIShf.js} +1 -1
  116. package/dist/assets/{NotFoundPage-DGbe5Rh8-g7Fjw_fi.js → NotFoundPage-DGbe5Rh8-DP7xmEtU.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-SovYc7X1-BmbFRzrc.js → NotificationSettingsPage-SovYc7X1-B3BS2dbe.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-8oQmiFyf-BZWUVy7J.js → NotificationsListConfig-8oQmiFyf-BOGk1_4Q.js} +1 -1
  119. package/dist/assets/{NotificationsPage-D1uWQ3_a-DUkxidQ5.js → NotificationsPage-D1uWQ3_a-DxSIxDxP.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-bwyUuTg3-DSvY8WCJ.js → OpExByVendorPage-bwyUuTg3-r5i2RybY.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-B6wvg3Bg.js → OverlayContainerPage-C0rUb6-5-DlNZMe2A.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-C316N1hQ-CBdwjnXu.js → PandLWithForecastPage-C316N1hQ-aHIR4J9h.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-07laMoUE-DzuFwQ6_.js → PaymentAccountSetupBillingAddressSection-07laMoUE-vyb_PzAc.js} +1 -1
  124. package/dist/assets/{PeoplePage-nMBpp-i7-Cphq47-f.js → PeoplePage-nMBpp-i7-C_FzQc4I.js} +1 -1
  125. package/dist/assets/{PortfolioAllocationFormPage-BNM5_3mQ-DCZ3Ri55.js → PortfolioAllocationFormPage-BNM5_3mQ-DaO3Xs0l.js} +1 -1
  126. package/dist/assets/{PortfolioDetails-Cxr764um-L6xz8K5Y.js → PortfolioDetails-Cxr764um-DhzbvH6Q.js} +1 -1
  127. package/dist/assets/{ProductsCarousel-W3-LEsKP-CaS9UlKo.js → ProductsCarousel-W3-LEsKP-DbLcA25z.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-zZLO1ftd-DkIb0qhk.js → PromoBaseCards-zZLO1ftd-CE6hJoyp.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-027QZpKQ-1LwHjepz.js → QBOConnectionDialog-027QZpKQ-BMM6Z1LZ.js} +1 -1
  130. package/dist/assets/{QBOSetupSection-BT0OZMcW-hke6RwYE.js → QBOSetupSection-BT0OZMcW-35drr2J_.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DsBcRdLI-BrMyjsQN.js → ReimbursementApprovalRuleDetailPage-DsBcRdLI-4vSu0HBp.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-DFUfuIiJ-2pOBk6-j.js → ReimbursementApprovalRulesPage-DFUfuIiJ-CI-ZWabB.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-8b3khOnV-CWYJCADt.js → ReimbursementDetailPage-8b3khOnV-B2Q02bEe.js} +1 -1
  134. package/dist/assets/{ReimbursementPromoPage-BDuxIiMu-UhwnzW6o.js → ReimbursementPromoPage-BDuxIiMu-BQx3j8pw.js} +1 -1
  135. package/dist/assets/{ReimbursementSetUpPage-CQnnv-Km-D-dISoxH.js → ReimbursementSetUpPage-CQnnv-Km-dR4LVsPp.js} +1 -1
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B42Iy6Wl-Bh93-0Gj.js → ReimbursementsBulkReviewDrawerPage-B42Iy6Wl-CPgHrEv8.js} +1 -1
  137. package/dist/assets/{ReloadCard-BRfBNfTQ-eP7dgdK0.js → ReloadCard-BRfBNfTQ-BU52RUhd.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-CsIuIfQF-D12PWHrP.js → ReportTableViewSelector-CsIuIfQF-CglQQFO3.js} +1 -1
  139. package/dist/assets/{ReportsPage-BgjHAROL-CrNorjT2.js → ReportsPage-BgjHAROL-CDbPtbWw.js} +1 -1
  140. package/dist/assets/{RevenueChart-DSSPucUL-BLWciwBc.js → RevenueChart-DSSPucUL-BpbrhJFv.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-DRTS4tm7-TnTy19dG.js → ReviewDetailsPage-DRTS4tm7-GkJsi7Yf.js} +1 -1
  142. package/dist/assets/{ReviewOverlay-fCgnrRah-MbFAibJO.js → ReviewOverlay-fCgnrRah-tZ00a0Uu.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-aKLOITw0-B_wUcYFA.js → RoleWithToolTip-aKLOITw0-B48eYV-X.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-ChR3tFhH-CINiUHf4.js → ScheduleDetailsFixedAssetsPage-ChR3tFhH-e-z1NRNI.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsPage-DmVZaX9M-BlOTefgl.js → ScheduleDetailsPage-DmVZaX9M-CeCNgksq.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-CqrIr7OX-Di2Yxke2.js → ScheduleSequenceTable-CqrIr7OX-Cen2QelK.js} +1 -1
  147. package/dist/assets/{ScreenRoutes-B1Mol68Z.js → ScreenRoutes-ByaRWdsC.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-DkqyfYdP-Dz6HFNOt.js → SetUpAccountSection-DkqyfYdP-DWiWb20O.js} +1 -1
  149. package/dist/assets/{SetUpDefaultSection-CEcqnqlD-DPfEVIk8.js → SetUpDefaultSection-CEcqnqlD-BSjLZl3B.js} +1 -1
  150. package/dist/assets/{SignIn-BKCeqJmF-DmG1PJSS.js → SignIn-BKCeqJmF-B6GB44w2.js} +1 -1
  151. package/dist/assets/{SignInScreen-DU6Agp7w.js → SignInScreen-BY-NI1BX.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-DWrIY48Y-1vFRBwYe.js → SpendManagementListViewPage-DWrIY48Y-1thafgez.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-BIK3QfAG-pYAixnik.js → SpendManagementPerTabPage-BIK3QfAG-BprzbGtF.js} +1 -1
  154. package/dist/assets/{SpendManagementSection-BibcrHiQ--2bDUvmg.js → SpendManagementSection-BibcrHiQ-ojX7OXv7.js} +1 -1
  155. package/dist/assets/{SpendMgmtSetupAccountSection-BZzCEn49-BUW9h1w4.js → SpendMgmtSetupAccountSection-BZzCEn49-xlvJK4VE.js} +1 -1
  156. package/dist/assets/{StatementItem-DujQ-hfS-2WQEwmfV.js → StatementItem-DujQ-hfS-Co0MjdA1.js} +1 -1
  157. package/dist/assets/{StatementsPage-BEBaWRll-H-YxrH6p.js → StatementsPage-BEBaWRll-Dv0qqBwe.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-CmoFEW3h-CIyI0Nsc.js → StatusSwitcher-CmoFEW3h-B8khGWcG.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-CZqJSgrt-CGR-n_mv.js → SubTabSwitcher-CZqJSgrt-BzzBfBEV.js} +1 -1
  160. package/dist/assets/{SummaryCard-BC_pbmca-D0zssbaM.js → SummaryCard-BC_pbmca-BA-2CDI2.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-IrjSDISn-CdhpO43W.js → TaskManagementPage-IrjSDISn-Cdu4CkH2.js} +1 -1
  162. package/dist/assets/{TimeRangeSwitcher-6HHMsbMu-D4NMZyzh.js → TimeRangeSwitcher-6HHMsbMu-BJeGDam3.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcher-9Tl1lDvO-D7UrJiFa.js → TimeframeSwitcher-9Tl1lDvO-2gI3pMJ6.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-L5acx38l-Bz68abNK.js → TimeframeSwitcherWithToggle-L5acx38l-CrZfZFxd.js} +1 -1
  165. package/dist/assets/{TopExCard-BRR6W73W-CAHMXlOc.js → TopExCard-BRR6W73W-BCkskQ6y.js} +1 -1
  166. package/dist/assets/{TopExDetailPage-DzqG7MND-DJ7pAhMq.js → TopExDetailPage-DzqG7MND-r9FRTnlF.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-DD-5Uhso-Be0gb3Q1.js → TransactionDetailPage-DD-5Uhso-5-XIEojv.js} +1 -1
  168. package/dist/assets/{TransactionList-B_1X_r62-C-2WHkWB.js → TransactionList-B_1X_r62-D6FSjlP-.js} +1 -1
  169. package/dist/assets/{TransactionListBig-CUOjhYmg-DbCncTb4.js → TransactionListBig-CUOjhYmg-CQ2RJ0bc.js} +1 -1
  170. package/dist/assets/{TransactionListPage-Ck8dLdRo-BOZC0KIS.js → TransactionListPage-Ck8dLdRo-F9HAGy3S.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-C2_Yo1np-BPwdA8Pe.js → TransactionVendorDetailPage-C2_Yo1np-DO9ni0JA.js} +1 -1
  172. package/dist/assets/{TransferDrawerPage-D9sHV8Dz-BuLtSZMC.js → TransferDrawerPage-D9sHV8Dz-C3BJeiz0.js} +1 -1
  173. package/dist/assets/{TreasuryOverviewPage-Co2mrPcn-BbO-_U69.js → TreasuryOverviewPage-Co2mrPcn-BY4IGK6R.js} +1 -1
  174. package/dist/assets/{TreasuryPromoPage-x3aBAAof-C2kBLQ6F.js → TreasuryPromoPage-x3aBAAof-CzINUoky.js} +1 -1
  175. package/dist/assets/{TreasurySetupPage-COLv35Sa-DTkym-mM.js → TreasurySetupPage-COLv35Sa-D7XzYH1g.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-BIxlBphR-DRHuEgCF.js → TreasuryStatementsPage-BIxlBphR-CLkwORFF.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-00l2eDaD-BFA1kVX5.js → TreasuryTaxLetterPage-00l2eDaD-D4R_SIte.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-8kYRXJ8--BKRykugB.js → TreasuryTransferOrReviewPage-8kYRXJ8--BXlfWwAt.js} +1 -1
  179. package/dist/assets/{TrendChart-CnawkdG8-D0gaYLAL.js → TrendChart-CnawkdG8-C1f54OIB.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-CNNCV2hi-BzmkwguS.js → TrendWithTransactions-CNNCV2hi-Lc8Mvmvx.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-6dSPWwUH-C0Zb3Sk7.js → UncategorizedAccountsMappingPage-6dSPWwUH-BNmql1oS.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-CQz8bAr--W4Gj2kM5.js → UnitIntegrationPage-CQz8bAr--Be6E8wgt.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-qVx1t-kK-ZeoH0JJj.js → UploadAdditionalDocumentOverlay-qVx1t-kK-BfnzSXgO.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-BwICX5Jo-BHYYMSgZ.js → Vendor2FAPopup-BwICX5Jo-DRxdFSoT.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-U9vQ2YO1-w7279Sum.js → VendorACHDetailsPage-U9vQ2YO1-C3wP_7rP.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-v3AJufvV-D0UsqfhW.js → VendorDetailPage-v3AJufvV-B6BEQrJw.js} +1 -1
  187. package/dist/assets/{VendorDomesticWireDetailsPage-DY5Enpxz-HT9ICdCc.js → VendorDomesticWireDetailsPage-DY5Enpxz-CMAOISi3.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-BJ1K4EB2-DPkozOkE.js → VendorFiling1099EditablePage-BJ1K4EB2-CnqK8eQN.js} +1 -1
  189. package/dist/assets/{VendorFirstReviewPage-Dqu2JeBh-DlZ73fuA.js → VendorFirstReviewPage-Dqu2JeBh-BTSOdkvj.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-B3jL5IpJ-CNfrsnT2.js → VendorInternationalWireDetailsPage-B3jL5IpJ-Ge2HUtcT.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-OyW2sXjN-z3OsyQgS.js → VendorInternationalWireSwiftDetailsPage-OyW2sXjN-BaDu_Rbp.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-CnVky8J2-Bz7x-ViJ.js → VendorsAccountsSection-CnVky8J2-BnxyHrsh.js} +1 -1
  193. package/dist/assets/{WarningsDrawerPage-Bc8HwhJZ-Dq8yy3xN.js → WarningsDrawerPage-Bc8HwhJZ-CoRSEL1r.js} +1 -1
  194. package/dist/assets/{ZeniAccountDetailPage-I3Qn-mIV-BmMPdZoo.js → ZeniAccountDetailPage-I3Qn-mIV-D6WbzhnA.js} +1 -1
  195. package/dist/assets/{ZeniAccountListViewPage-BFUoGrvu-CS6K1EOB.js → ZeniAccountListViewPage-BFUoGrvu-CvFvWDHE.js} +1 -1
  196. package/dist/assets/{ZeniAccountNavBarPieces-B6K9Q5ca-gXXLq7cH.js → ZeniAccountNavBarPieces-B6K9Q5ca-BG64SHxp.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-B_Kt_gIx-CSUh0Sr6.js → ZeniAccountPromoPage-B_Kt_gIx-BmUo-cHo.js} +1 -1
  198. package/dist/assets/{ZeniAccountSetupPage-BvzXgVNr-CcE1WVfy.js → ZeniAccountSetupPage-BvzXgVNr-Cojq6XAe.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-B5gFkT_K-BFj2LAUW.js → ZeniCopyright-B5gFkT_K-Bd1To88b.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-dNQVv3xh-Bcvmg6KK.js → ZeniTransferAmountSlider-dNQVv3xh-Dj4F9WJ8.js} +1 -1
  201. package/dist/assets/{analyticsHelper-CiRIn2W--Bj5XSzUV.js → analyticsHelper-CiRIn2W--BxtgqDE2.js} +1 -1
  202. package/dist/assets/{analyticsHelper-_e8RtUK3.js → analyticsHelper-DaI4EFSR.js} +1 -1
  203. package/dist/assets/{chartTypes-om8APqYr-BdMnUQN2.js → chartTypes-om8APqYr-BLTaCwIq.js} +1 -1
  204. package/dist/assets/{commonDimensions-CnEuBCL0-D6rQGPBV.js → commonDimensions-CnEuBCL0-BaKrm6VO.js} +1 -1
  205. package/dist/assets/{detailCommon-B8snZE0k-CIas2oT6.js → detailCommon-B8snZE0k-CD_QEBke.js} +1 -1
  206. package/dist/assets/{downloadPdf-UYNSbWcH-B89JkTwa.js → downloadPdf-UYNSbWcH-CCjYi8d_.js} +1 -1
  207. package/dist/assets/{index-BZX8UIkU.js → index-C5RQ_I4f.js} +3 -3
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-Ct5Hw9GL-CObIwYD2.js → mapLoadingInProgressToTreeNode-Ct5Hw9GL-CIhY2PIH.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DAi-q9qz-CpGZon39.js → mapSectionWithAcOnlyToTreeNode-DAi-q9qz-uRnsjJzp.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-NdVrr_Rq-BDAUEVg7.js → mapSpacerToTreeNode-NdVrr_Rq-h2jl1W7n.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-Bq1k2j24-C7XOVz69.js → mapTimeframeBalancesToTreeNode-Bq1k2j24-C-EGB4JJ.js} +1 -1
  212. package/dist/assets/{play-icon-cU_HA46u-CiNaqKmR.js → play-icon-cU_HA46u-DKk-rWaT.js} +1 -1
  213. package/dist/assets/{toCOABalancesWithID-D8CsJNcd-BYA_5TFD.js → toCOABalancesWithID-D8CsJNcd-D3oEVThj.js} +1 -1
  214. package/dist/assets/{toChartData-DUoI4wMR-C1yVXjYU.js → toChartData-DUoI4wMR-BpwvMCd8.js} +1 -1
  215. package/dist/assets/{treasuryColorHelper-X9PYqjk_-CXegHpZD.js → treasuryColorHelper-X9PYqjk_-B0f97nM8.js} +1 -1
  216. package/dist/assets/{uploadAttachment-BHcSLQXP-C3rDLKGT.js → uploadAttachment-BHcSLQXP-Dd6nHf0l.js} +1 -1
  217. package/dist/assets/{uploadReceipts-Buvz7DfG-BR5vBOuA.js → uploadReceipts-Buvz7DfG-TsfYrPiB.js} +1 -1
  218. package/dist/index.html +1 -1
  219. package/package.json +1 -1
  220. package/dist/assets/CustomerOnboardingContainerPage-BsErtHzd-Bq0LgqLp.js +0 -1
@@ -1,4 +1,4 @@
1
- import{X as I,M as y,j as t,aW as D,d as H,Y as b,C as r,q as B,_ as j,bM as E,bO as U,bP as q,o as i,cp as G,p as l,an as O,Q as z,am as V,g as S,cm as X,aN as Y,v as _}from"./index-BZX8UIkU.js";import{n as o,b as F}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},Q=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=F.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(J,{windowSize:n,isLastSection:f,children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(E,{titleComponent:t.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},J=o.div`
1
+ import{X as I,M as y,j as t,aW as D,d as H,Y as b,C as r,q as B,_ as j,bM as E,bO as U,bP as q,o as i,cp as G,p as l,an as O,Q as z,am as V,g as S,cm as X,aN as Y,v as _}from"./index-C5RQ_I4f.js";import{n as o,b as F}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},Q=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=F.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(J,{windowSize:n,isLastSection:f,children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(E,{titleComponent:t.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},J=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{t as se,X as b,a1 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as x,o as s,Z as te,b$ as re,u as A,a5 as D,f as ae,C as ne,g as u,c1 as ce,a6 as de,ao as me,p as pe}from"./index-BZX8UIkU.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-ifcJuMu9-CWfHFman.js";import{f as ge,C as E}from"./play-icon-cU_HA46u-CiNaqKmR.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",R="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
1
+ import{t as se,X as b,a1 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as x,o as s,Z as te,b$ as re,u as A,a5 as D,f as ae,C as ne,g as u,c1 as ce,a6 as de,ao as me,p as pe}from"./index-C5RQ_I4f.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-ifcJuMu9-ByO1X2Hh.js";import{f as ge,C as E}from"./play-icon-cU_HA46u-DKk-rWaT.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",R="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as $e,X as Oe,a1 as I,a as De,c2 as Re,M as Ue,a7 as Q,j as t,cH as He,Y as ze,g as Le,C as u,aW as qe,d as Me,F as Ne,cZ as Ge,aQ as Ke,c_ as Je,bs as Xe,c$ as Qe,a3 as Ye,o as L,p as a,q as Ze,b4 as et}from"./index-BZX8UIkU.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{P as tt}from"./HelpButton-DYFzwkI3-DGXEm476.js";import"./SetUpAccountSection-DkqyfYdP-Dz6HFNOt.js";import{K as H}from"./SetUpDefaultSection-CEcqnqlD-DPfEVIk8.js";import{p as it}from"./SpendMgmtSetupAccountSection-BZzCEn49-BUW9h1w4.js";import{g as nt}from"./UploadAdditionalDocumentOverlay-qVx1t-kK-ZeoH0JJj.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-ifcJuMu9-CWfHFman.js";import"./ChaseOverlay-BrHcqwQQ-9yUtYaFO.js";import"./ChargeCardUtils-BN7bbdUB-BDnfEJHK.js";import"./CreditCardPaymentPlgSection-CEjV1ee_-CJS3AWLV.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",E="billPayAccount",Vt=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:r,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:q,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=$e(),i=Oe(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,$=_.link_account.updateStatus,O=_.update_account.updateStatus,V=I(p),K=I(b.fetchState),J=I($.fetchState),X=I(O.fetchState),P=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&S(!0),k&&V==="In-Progress"&&p==="Completed"&&S(!1)},[s,p,V]),m.useEffect(()=>{(V==="In-Progress"&&p==="Completed"||J==="In-Progress"&&$.fetchState==="Completed"||X==="In-Progress"&&O.fetchState==="Completed")&&P.reset(z(e))},[V,p,P,e,J,$.fetchState,X,O.fetchState]);const Ve=P.handleSubmit(x=>{y.trackEnableBillPay(),ge()}),Be=async(x,F)=>{const o=F[E];if(x.includes(E)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&l?.id!=o.fundingAccount.selectedOption){const f=N.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,l.id,l.accType)}}};m.useEffect(()=>{const x=P.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{K==="In-Progress"&&b.fetchState==="Completed"&&q()},[q,K,b.fetchState]);const{commonSetUp:Fe,spendManagement:Ie}=Ue.getLocalizedStrings(),{setUp:d}=Fe,{billPaySetup:c}=Ie.billPay,D=A?.isBusinessVerified===!0&&(l?.accType==="depositAccount"||l?.providerVerificationStatus?.code==="verified"||l?.providerVerificationStatus?.code==="manually_verified"||l?.providerVerificationStatus?.code==="automatically_verified"||l?.providerVerificationStatus?.code==="database_matched"),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:c.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=C.mode==="light"?new Q(C.colors.brandColorJadeLight):new Q(C.colors.brandColorJadeDark),_e=()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(at,{ref:M,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(nt,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,companyOfficer:s,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:c.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:M,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(st,{windowSize:i,children:[t.jsx(ct,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(ot,{children:[t.jsx(Ne,{...P,children:t.jsx("form",{id:Z(Y),onSubmit:Ve,children:t.jsxs(dt,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(it,{connectedAccountProvider:ee,primaryFundingAccount:l,allFundingAccounts:N,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:c.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),r===!0?t.jsx(H,{title:T?c.enableInternationalWireTitle:c.internationWireTitle,subTitle:c.internationalWireSubTitle2,header:c.internationalWireHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?c.tooltipTexts.pendingInternationalVerificationText:c.tooltipTexts.internationalVerificationFailed,children:t.jsx(lt,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ye,{formId:Z(Y),primaryBtn:{label:c.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:c.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},ot=g.div``,at=g.div`
1
+ import{u as $e,X as Oe,a1 as I,a as De,c2 as Re,M as Ue,a7 as Q,j as t,cH as He,Y as ze,g as Le,C as u,aW as qe,d as Me,F as Ne,cZ as Ge,aQ as Ke,c_ as Je,bs as Xe,c$ as Qe,a3 as Ye,o as L,p as a,q as Ze,b4 as et}from"./index-C5RQ_I4f.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{P as tt}from"./HelpButton-DYFzwkI3-Cel7B9gC.js";import"./SetUpAccountSection-DkqyfYdP-DWiWb20O.js";import{K as H}from"./SetUpDefaultSection-CEcqnqlD-BSjLZl3B.js";import{p as it}from"./SpendMgmtSetupAccountSection-BZzCEn49-xlvJK4VE.js";import{g as nt}from"./UploadAdditionalDocumentOverlay-qVx1t-kK-BfnzSXgO.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-ifcJuMu9-ByO1X2Hh.js";import"./ChaseOverlay-BrHcqwQQ-D5p6lw7W.js";import"./ChargeCardUtils-BN7bbdUB-BbkRwxs1.js";import"./CreditCardPaymentPlgSection-CEjV1ee_-C66jG_cF.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",E="billPayAccount",Vt=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:r,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:q,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=$e(),i=Oe(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,$=_.link_account.updateStatus,O=_.update_account.updateStatus,V=I(p),K=I(b.fetchState),J=I($.fetchState),X=I(O.fetchState),P=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&S(!0),k&&V==="In-Progress"&&p==="Completed"&&S(!1)},[s,p,V]),m.useEffect(()=>{(V==="In-Progress"&&p==="Completed"||J==="In-Progress"&&$.fetchState==="Completed"||X==="In-Progress"&&O.fetchState==="Completed")&&P.reset(z(e))},[V,p,P,e,J,$.fetchState,X,O.fetchState]);const Ve=P.handleSubmit(x=>{y.trackEnableBillPay(),ge()}),Be=async(x,F)=>{const o=F[E];if(x.includes(E)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&l?.id!=o.fundingAccount.selectedOption){const f=N.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,l.id,l.accType)}}};m.useEffect(()=>{const x=P.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{K==="In-Progress"&&b.fetchState==="Completed"&&q()},[q,K,b.fetchState]);const{commonSetUp:Fe,spendManagement:Ie}=Ue.getLocalizedStrings(),{setUp:d}=Fe,{billPaySetup:c}=Ie.billPay,D=A?.isBusinessVerified===!0&&(l?.accType==="depositAccount"||l?.providerVerificationStatus?.code==="verified"||l?.providerVerificationStatus?.code==="manually_verified"||l?.providerVerificationStatus?.code==="automatically_verified"||l?.providerVerificationStatus?.code==="database_matched"),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:c.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=C.mode==="light"?new Q(C.colors.brandColorJadeLight):new Q(C.colors.brandColorJadeDark),_e=()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(at,{ref:M,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(nt,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,companyOfficer:s,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:c.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:M,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(st,{windowSize:i,children:[t.jsx(ct,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(ot,{children:[t.jsx(Ne,{...P,children:t.jsx("form",{id:Z(Y),onSubmit:Ve,children:t.jsxs(dt,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(it,{connectedAccountProvider:ee,primaryFundingAccount:l,allFundingAccounts:N,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:c.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),r===!0?t.jsx(H,{title:T?c.enableInternationalWireTitle:c.internationWireTitle,subTitle:c.internationalWireSubTitle2,header:c.internationalWireHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?c.tooltipTexts.pendingInternationalVerificationText:c.tooltipTexts.internationalVerificationFailed,children:t.jsx(lt,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ye,{formId:Z(Y),primaryBtn:{label:c.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:c.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},ot=g.div``,at=g.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{u as fe,X as Ce,a as xe,c2 as Pe,a7 as k,M as be,j as t,C as P,aW as Ae,d as Ie,F as ve,aQ as je,c3 as ke,a3 as $e,o as s,h0 as Oe,cv as Be,cw as Te,p as b,q as Ve,gf as Ee,Q as ze,g as Le}from"./index-BZX8UIkU.js";import{b as R,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as W,e as Me}from"./PaymentAccountSetupBillingAddressSection-07laMoUE-DzuFwQ6_.js";import{O as Fe}from"./SetUpAccountSection-DkqyfYdP-Dz6HFNOt.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-CEcqnqlD-DPfEVIk8.js";import"./ChaseOverlay-BrHcqwQQ-9yUtYaFO.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},Re={title:new ze("standardSemiBold","largeSemiBold")},_="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:J,onUpdateAccountClick:G,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:H(a),values:H(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(J)}),T=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Be(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Te(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&G(h.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const V=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:E}=be.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,x=De(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(L).name}),color:new k(V)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[F,we]=R.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:i,children:[t.jsx(He,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Ge,{children:t.jsx("form",{id:U(_),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Fe,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:F}),Ne(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(_),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:T?.fetchState==="In-Progress",isDisabled:T?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:F,setCardSetupInProgress:we})]})},H=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(n,e.subscriptionBillingAddress)[n]}},We=r.div`
1
+ import{u as fe,X as Ce,a as xe,c2 as Pe,a7 as k,M as be,j as t,C as P,aW as Ae,d as Ie,F as ve,aQ as je,c3 as ke,a3 as $e,o as s,h0 as Oe,cv as Be,cw as Te,p as b,q as Ve,gf as Ee,Q as ze,g as Le}from"./index-C5RQ_I4f.js";import{b as R,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as W,e as Me}from"./PaymentAccountSetupBillingAddressSection-07laMoUE-vyb_PzAc.js";import{O as Fe}from"./SetUpAccountSection-DkqyfYdP-DWiWb20O.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-CEcqnqlD-BSjLZl3B.js";import"./ChaseOverlay-BrHcqwQQ-D5p6lw7W.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},Re={title:new ze("standardSemiBold","largeSemiBold")},_="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:J,onUpdateAccountClick:G,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:H(a),values:H(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(J)}),T=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Be(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Te(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&G(h.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const V=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:E}=be.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,x=De(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(L).name}),color:new k(V)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[F,we]=R.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:i,children:[t.jsx(He,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Ge,{children:t.jsx("form",{id:U(_),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Fe,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:F}),Ne(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(_),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:T?.fetchState==="In-Progress",isDisabled:T?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:F,setCardSetupInProgress:we})]})},H=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(n,e.subscriptionBillingAddress)[n]}},We=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{M,j as b,bM as V,bO as q,bP as W,jh as z,l as H,aa as X}from"./index-BZX8UIkU.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as Y}from"./ReviewOverlay-fCgnrRah-MbFAibJO.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{billPay:C}}=M.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:h}=t,u=i==="review",[P,w]=_.useState(!1),[s,v]=_.useState(j(t,u)),[p,E]=_.useState(u),[B,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),B===s.length&&p&&(E(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,B,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=G(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,h),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,h,Z(t)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:$}=J(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,h),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[P?b.jsx(V,{titleComponent:b.jsx(W,{children:f.title}),descriptionComponent:b.jsx(q,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:O,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:X("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&H.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Z=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=z([...l,e.isRecurring?"recurring":"one-time"])}),l},G=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},J=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:h,do_:u,does:P}=n.texts,w=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:P):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:h)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},K=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,Z as getBillsUniqueType};
1
+ import{M,j as b,bM as V,bO as q,bP as W,jh as z,l as H,aa as X}from"./index-C5RQ_I4f.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as Y}from"./ReviewOverlay-fCgnrRah-tZ00a0Uu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{billPay:C}}=M.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:h}=t,u=i==="review",[P,w]=_.useState(!1),[s,v]=_.useState(j(t,u)),[p,E]=_.useState(u),[B,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),B===s.length&&p&&(E(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,B,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=G(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,h),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,h,Z(t)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:$}=J(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,h),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[P?b.jsx(V,{titleComponent:b.jsx(W,{children:f.title}),descriptionComponent:b.jsx(q,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:O,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:X("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&H.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Z=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=z([...l,e.isRecurring?"recurring":"one-time"])}),l},G=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},J=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:h,do_:u,does:P}=n.texts,w=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:P):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:h)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},K=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,Z as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{X as a,j as s,Y as b,o as r}from"./index-BZX8UIkU.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-CnEuBCL0-D6rQGPBV.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=a();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const h=p.div`
1
+ import{X as a,j as s,Y as b,o as r}from"./index-C5RQ_I4f.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-CnEuBCL0-BaKrm6VO.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=a();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const h=p.div`
2
2
  box-sizing: border-box;
3
3
  cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
4
4
  min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
@@ -1,4 +1,4 @@
1
- import{u as et,X as tt,a1 as we,j as i,M as Te,i as G,a as it,cg as at,l as L,z as st,c2 as nt,aa as ot,a0 as rt,K as lt,aW as ct,Y as dt,c3 as mt,bM as pt,bO as ut,bP as ft,d as yt,F as ht,a3 as gt,o as r,C as N,f as $e,fC as xt,fa as Ce,cv as St,b$ as wt,a2 as Ct,q as ke,Q as bt,h as vt,p as k}from"./index-BZX8UIkU.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-DHqtLqa--CKQpSpe2.js";import{r as $t}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-BdNErK0u-CARcO6oK.js";import"./LabeledCreatableSingleSelectField-DsyZw9q6-Lcg9eXyG.js";import"./LabeledDocumentField-IC75UO-m-0LGLKZw-.js";import"./DocumentSecurityBanner-2RwwRIbj-BcoXD7TB.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:It,currency:Nt,footer:ve,strings:{empty:Pt}}}=Te.getLocalizedStrings(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:O,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:z,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,onAddressClick:J,onRegisteredAddressClick:Ne,onBackClick:j,onGetOtp:Pe,onVerifyOtp:Oe,onResendOtp:je,onSendForVerificationClick:Fe,onEditFileName:ee,onCompanyDetailsChanged:Ve,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:ze})=>{const Be=et(),m=tt(),{updateStatus:R,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Ee=we(R.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(Bt,{children:[s.terms.term1,i.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,W]=P.useState(!1),[M,se]=P.useState("save"),[Z,Me]=P.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:Ot(t,B,E,A)}),{isValid:Ge}=u.formState,q=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,V=y==="zeni_treasury"?K?.companyVerificationStatus:q?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,We=()=>{const e=w[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,Y=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,H=l?.primaryContactLocalData,ge=H?.firstName,xe=H?.lastName,Se=H?.email;a!=null&&f!=null&&C!=null&&$!=null&&c!=null&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&Y!=null&&fe!=null&&ye!=null&&ue!=null&&Y!=null&&he!=null&&ge!=null&&xe!=null&&Se!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:Y,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:Se},y,n?"Settings":void 0)},Ze=()=>{const e=w[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",$=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!$?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},qe=()=>{const e=w[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&u.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},Ke=u.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&w[T]?.isPhoneVerified!==!0){u.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Ge&&(We(),Fe?.(T))}),Xe=async(e,a)=>{e.includes(b)?Ve?.(a[b]):e.includes(v)&&Ae?.(a[v])},Qe=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>Qe(c,a))});return()=>{e.unsubscribe()}});const ne=we(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,u]);const oe=F?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=oe?.map(e=>e.user),Ye=oe?.map(e=>e.role),He={onOkClick:()=>{W(!1),j();const e=[],a=F?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Ye?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{W(!1)}},Je=ot(rt(p),p,Nt.currencySymbol).toUpperCase(),Q=V?.code==="pending_review"||V?.code==="verified";return y==="zeni_treasury"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(qt,{children:[i.jsxs(Kt,{children:[i.jsx($t,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:j,variant:"primary"})]}):i.jsxs(jt,{isSettings:n,children:[i.jsx(ct,{title:h&&S===!0?Pt:s.header,backgroundColor:Be.colors.grey5,style:{zIndex:Z?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?W(!0):j()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:ze,rightSideComponent:h?i.jsx(Qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{j()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:He}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||S===!1)&&i.jsx(Vt,{windowSize:m,children:n?It.infoText.businessVerification:s.title}),O==="In-Progress"||O==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...u,children:i.jsxs("form",{id:De(be),onSubmit:Ke,children:[h&&S===!0&&i.jsxs(Ft,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:Q?s.businessVerificationDetails:s.verifyBusinessDetails}),!Q&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Wt,{})]})})]}),i.jsx(Ie,{isReadonly:Q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:J,onDeleteFile:ie,isDisabled:I,filesEndPoint:o,authParams:z,isPopupOpen:Z,openPopup:Me,onGetOtp:Pe,onVerifyOtp:Oe,onResendOtp:je,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:V,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:V?.code==="pending_review"||V?.code==="verified"?"readonly":I,fileProps:{authParams:z,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:J,onRegisteredAddressClick:Ne,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?i.jsx(zt,{windowSize:m,children:s.threadText.replace("__amount__",Je)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:S?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)j();else{const e=w[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ze(),C=qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:Z?0:4}}):null]})},Ot=(t,A,O,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:z,companyView:y}=t,B=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(z).map((p,I)=>{const n=p,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:St(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:O?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,jt=d.div`
1
+ import{u as et,X as tt,a1 as we,j as i,M as Te,i as G,a as it,cg as at,l as L,z as st,c2 as nt,aa as ot,a0 as rt,K as lt,aW as ct,Y as dt,c3 as mt,bM as pt,bO as ut,bP as ft,d as yt,F as ht,a3 as gt,o as r,C as N,f as $e,fC as xt,fa as Ce,cv as St,b$ as wt,a2 as Ct,q as ke,Q as bt,h as vt,p as k}from"./index-C5RQ_I4f.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-DHqtLqa--DkQW91X6.js";import{r as $t}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-BdNErK0u-BCVVhFLg.js";import"./LabeledCreatableSingleSelectField-DsyZw9q6-BgU9LeRU.js";import"./LabeledDocumentField-IC75UO-m-BR65Je6h.js";import"./DocumentSecurityBanner-2RwwRIbj-KpNSpuh7.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:It,currency:Nt,footer:ve,strings:{empty:Pt}}}=Te.getLocalizedStrings(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:O,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:z,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,onAddressClick:J,onRegisteredAddressClick:Ne,onBackClick:j,onGetOtp:Pe,onVerifyOtp:Oe,onResendOtp:je,onSendForVerificationClick:Fe,onEditFileName:ee,onCompanyDetailsChanged:Ve,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:ze})=>{const Be=et(),m=tt(),{updateStatus:R,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Ee=we(R.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(Bt,{children:[s.terms.term1,i.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,W]=P.useState(!1),[M,se]=P.useState("save"),[Z,Me]=P.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:Ot(t,B,E,A)}),{isValid:Ge}=u.formState,q=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,V=y==="zeni_treasury"?K?.companyVerificationStatus:q?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,We=()=>{const e=w[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,Y=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,H=l?.primaryContactLocalData,ge=H?.firstName,xe=H?.lastName,Se=H?.email;a!=null&&f!=null&&C!=null&&$!=null&&c!=null&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&Y!=null&&fe!=null&&ye!=null&&ue!=null&&Y!=null&&he!=null&&ge!=null&&xe!=null&&Se!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:Y,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:Se},y,n?"Settings":void 0)},Ze=()=>{const e=w[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",$=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!$?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},qe=()=>{const e=w[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&u.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},Ke=u.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&w[T]?.isPhoneVerified!==!0){u.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Ge&&(We(),Fe?.(T))}),Xe=async(e,a)=>{e.includes(b)?Ve?.(a[b]):e.includes(v)&&Ae?.(a[v])},Qe=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>Qe(c,a))});return()=>{e.unsubscribe()}});const ne=we(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,u]);const oe=F?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=oe?.map(e=>e.user),Ye=oe?.map(e=>e.role),He={onOkClick:()=>{W(!1),j();const e=[],a=F?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Ye?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{W(!1)}},Je=ot(rt(p),p,Nt.currencySymbol).toUpperCase(),Q=V?.code==="pending_review"||V?.code==="verified";return y==="zeni_treasury"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(qt,{children:[i.jsxs(Kt,{children:[i.jsx($t,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:j,variant:"primary"})]}):i.jsxs(jt,{isSettings:n,children:[i.jsx(ct,{title:h&&S===!0?Pt:s.header,backgroundColor:Be.colors.grey5,style:{zIndex:Z?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?W(!0):j()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:ze,rightSideComponent:h?i.jsx(Qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{j()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:He}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||S===!1)&&i.jsx(Vt,{windowSize:m,children:n?It.infoText.businessVerification:s.title}),O==="In-Progress"||O==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...u,children:i.jsxs("form",{id:De(be),onSubmit:Ke,children:[h&&S===!0&&i.jsxs(Ft,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:Q?s.businessVerificationDetails:s.verifyBusinessDetails}),!Q&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Wt,{})]})})]}),i.jsx(Ie,{isReadonly:Q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:J,onDeleteFile:ie,isDisabled:I,filesEndPoint:o,authParams:z,isPopupOpen:Z,openPopup:Me,onGetOtp:Pe,onVerifyOtp:Oe,onResendOtp:je,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:V,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:V?.code==="pending_review"||V?.code==="verified"?"readonly":I,fileProps:{authParams:z,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:J,onRegisteredAddressClick:Ne,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?i.jsx(zt,{windowSize:m,children:s.threadText.replace("__amount__",Je)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:S?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)j();else{const e=w[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ze(),C=qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:Z?0:4}}):null]})},Ot=(t,A,O,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:z,companyView:y}=t,B=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(z).map((p,I)=>{const n=p,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:St(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:O?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,jt=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{X as g,M as w,j as t,v as x,Q as $,o as s,h as C}from"./index-BZX8UIkU.js";import{n as o,b as d}from"./vendor-CnQcJ2Lu.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
1
+ import{X as g,M as w,j as t,v as x,Q as $,o as s,h as C}from"./index-C5RQ_I4f.js";import{n as o,b as d}from"./vendor-CnQcJ2Lu.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
2
2
  ${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;
@@ -1,4 +1,4 @@
1
- import{u as k,X as f,j as t,aW as te,M as w,cN as L,v as u,ai as X,bB as ie,o as i,g as B,C as h,q as v,dc as oe,l as y,p as l,b5 as re,b6 as ae,au as se,at as ne,aa as de,b7 as le,b9 as ce,iu as he,_ as O,bl as pe,Y as P,w as $,iv as _,iw as q,ic as me,bX as ge,b_ as xe,f as T,id as we,ie as ue}from"./index-BZX8UIkU.js";import{n as o,f as R,b as V}from"./vendor-CnQcJ2Lu.js";import{F as ye}from"./InsightsSection-CB95rM5E-D4gjoxVk.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-DYkUvR3H-CBy1tYVO.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
1
+ import{u as k,X as f,j as t,aW as te,M as w,cN as L,v as u,ai as X,bB as ie,o as i,g as B,C as h,q as v,dc as oe,l as y,p as l,b5 as re,b6 as ae,au as se,at as ne,aa as de,b7 as le,b9 as ce,iu as he,_ as O,bl as pe,Y as P,w as $,iv as _,iw as q,ic as me,bX as ge,b_ as xe,f as T,id as we,ie as ue}from"./index-C5RQ_I4f.js";import{n as o,f as R,b as V}from"./vendor-CnQcJ2Lu.js";import{F as ye}from"./InsightsSection-CB95rM5E-D6F0bC-C.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-DYkUvR3H-CWQugA3e.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
2
2
  display: flex;
3
3
  gap: ${i.sp1};
4
4
  `,ve=o.div`
@@ -1,4 +1,4 @@
1
- import{u as Ye,X as Ce,t as st,d1 as dt,fc as Ka,l as Ze,gW as qr,a7 as _e,M as he,fd as Xa,j as t,gk as Gr,aW as Kr,p as c,fl as Ja,_ as xe,Y,o as a,bs as Pt,g as p,ig as Qa,v as Z,bM as Xr,ih as Jr,cH as Qr,gb as ei,a as ti,ge as ai,cn as ri,C as D,m as ii,F as oi,fD as ni,K as ft,aZ as si,be as er,a5 as Mt,ii as di,ij as tr,b4 as ar,ao as Vt,eQ as ci,a6 as rr,ae as li,ik as hi,il as pi,al as Ot,w as me,eu as ui,ib as mi,ax as ct,fe as ir,d as nt,ai as gi,dh as Ci,bR as fi,bO as wi,cu as xi,gT as yi,q as ye,eW as or,im as bi,ff as je,dp as wt,cY as Si,Q as ha,h as nr,an as $i,io as vi,eO as ki,bX as sr,ip as Li,s as mt,bB as pa,aR as ji,d9 as Di,ez as Ii,f as at,f9 as Ai,Z as Ti,k as Ri,a2 as Ei,a$ as Fi,iq as yt,cV as zi,bl as Pi,ir as dr,is as cr,fZ as lr,it as xt,hE as hr,ic as Mi,b_ as Vi,e9 as pr,id as Oi,ie as Hi,cZ as Ni,cp as Bi,eg as Wi,bD as Ui,bE as _i}from"./index-BZX8UIkU.js";import{b as o,n as r,j as pe,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-DYkUvR3H-CBy1tYVO.js";import{L as qi,H as et,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-BN7bbdUB-BDnfEJHK.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-DU4-NQyz-CxmQbHAh.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-Buvz7DfG-BR5vBOuA.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=he.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:I,setWalletType:v,setIsAddToWalletDrawerOpen:O,isDebitCard:T})=>{const z=dt().analytics,{isIPadScreen:G}=hi(),{isAndroidScreen:J}=pi(),U=st(),A=Ze.hasChargeCardAdminLevelAccess(U.loggedInUserRoleMap);return t.jsx(io,{style:g,children:G===!0?t.jsx(zt,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):J===!0?t.jsx(Ft,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{v("apple"),I.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Ft,{onClick:()=>{v("google"),I.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Ft=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Y("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Y("add-to-apple-wallet-button")})},io=r.div`
1
+ import{u as Ye,X as Ce,t as st,d1 as dt,fc as Ka,l as Ze,gW as qr,a7 as _e,M as he,fd as Xa,j as t,gk as Gr,aW as Kr,p as c,fl as Ja,_ as xe,Y,o as a,bs as Pt,g as p,ig as Qa,v as Z,bM as Xr,ih as Jr,cH as Qr,gb as ei,a as ti,ge as ai,cn as ri,C as D,m as ii,F as oi,fD as ni,K as ft,aZ as si,be as er,a5 as Mt,ii as di,ij as tr,b4 as ar,ao as Vt,eQ as ci,a6 as rr,ae as li,ik as hi,il as pi,al as Ot,w as me,eu as ui,ib as mi,ax as ct,fe as ir,d as nt,ai as gi,dh as Ci,bR as fi,bO as wi,cu as xi,gT as yi,q as ye,eW as or,im as bi,ff as je,dp as wt,cY as Si,Q as ha,h as nr,an as $i,io as vi,eO as ki,bX as sr,ip as Li,s as mt,bB as pa,aR as ji,d9 as Di,ez as Ii,f as at,f9 as Ai,Z as Ti,k as Ri,a2 as Ei,a$ as Fi,iq as yt,cV as zi,bl as Pi,ir as dr,is as cr,fZ as lr,it as xt,hE as hr,ic as Mi,b_ as Vi,e9 as pr,id as Oi,ie as Hi,cZ as Ni,cp as Bi,eg as Wi,bD as Ui,bE as _i}from"./index-C5RQ_I4f.js";import{b as o,n as r,j as pe,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-DYkUvR3H-CWQugA3e.js";import{L as qi,H as et,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-BN7bbdUB-BbkRwxs1.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-DU4-NQyz-186D7nSj.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-Buvz7DfG-TsfYrPiB.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=he.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:I,setWalletType:v,setIsAddToWalletDrawerOpen:O,isDebitCard:T})=>{const z=dt().analytics,{isIPadScreen:G}=hi(),{isAndroidScreen:J}=pi(),U=st(),A=Ze.hasChargeCardAdminLevelAccess(U.loggedInUserRoleMap);return t.jsx(io,{style:g,children:G===!0?t.jsx(zt,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):J===!0?t.jsx(Ft,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{v("apple"),I.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Ft,{onClick:()=>{v("google"),I.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Ft=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Y("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Y("add-to-apple-wallet-button")})},io=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{d1 as $t,t as St,fk as jt,l as M,ff as v,X as he,M as Be,o as a,u as _e,j as t,aW as vt,fy as kt,cN as A,v as C,bs as de,g as n,_ as Pt,aa as le,Y as pe,C as B,w as E,Q as It,h as Tt,ck as Mt,aB as Fe,b4 as At,ae as me,a5 as Et,f as ue,p as I,d2 as Lt,Z as Rt,q as Dt,b$ as zt,cj as Nt,aP as Ot}from"./index-BZX8UIkU.js";import{b as O,n as i,j as ge,k as Bt}from"./vendor-CnQcJ2Lu.js";import{Y as _t}from"./SpendManagementSection-BibcrHiQ--2bDUvmg.js";import{ChargeCardPromoUserContent as Ft}from"./ChargeCardPromoPage-CIboCUSV-CPRzKXVU.js";import{N as Ut,J as Wt}from"./PromoBaseCards-zZLO1ftd-DkIb0qhk.js";import{A as Yt}from"./ChargeCardListTable-C1RWnfY_-dZQZ_0O0.js";import{r as Gt,i as Jt}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Ht,o as Vt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-ifcJuMu9-CWfHFman.js";import"./NavigationDots-DYkUvR3H-CBy1tYVO.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-B4Q04CAH-BOktILCZ.js";import"./RoleWithToolTip-aKLOITw0-B_wUcYFA.js";import"./CardNumberSubText-DU4-NQyz-CxmQbHAh.js";import"./ChargeCardUtils-BN7bbdUB-BDnfEJHK.js";const xe={infoSubheadingTextMarginTop:new B(I[0],I[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:l,title:h,subTitle:r,slidingTextList:u,onClick:d})=>{const p=he();return t.jsxs(Xt,{windowSize:p,cardPromoType:e,"data-testid":pe("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(Ue,{children:[t.jsxs(Ye,{children:[t.jsx(We,{children:l}),t.jsx(Qt,{children:h}),t.jsx(aa,{children:r})]}),t.jsxs(ia,{children:[t.jsx(ra,{}),u.length>0&&t.jsx(ce,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(na,{})]})]}),t.jsx(oa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(sa,{children:t.jsx(Wt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:l,creditLimit:h,onCreateNowClick:r})=>{const u=he();return t.jsx(Zt,{windowSize:u,cardType:e,children:t.jsxs(Kt,{children:[t.jsxs(Ye,{children:[t.jsx(We,{children:s}),t.jsx(ta,{children:t.jsx(ea,{children:l})}),t.jsx(da,{windowSize:u,children:t.jsxs(la,{windowSize:u,onClick:()=>r(e),"data-testid":pe("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ca,{})]})})]}),e==="creditCard"?t.jsxs(ha,{children:[t.jsx(pa,{children:ve.creditLimit}),t.jsx(ma,{children:h})]}):null]})})},qt=e=>{const s=e-1;let l=`
1
+ import{d1 as $t,t as St,fk as jt,l as M,ff as v,X as he,M as Be,o as a,u as _e,j as t,aW as vt,fy as kt,cN as A,v as C,bs as de,g as n,_ as Pt,aa as le,Y as pe,C as B,w as E,Q as It,h as Tt,ck as Mt,aB as Fe,b4 as At,ae as me,a5 as Et,f as ue,p as I,d2 as Lt,Z as Rt,q as Dt,b$ as zt,cj as Nt,aP as Ot}from"./index-C5RQ_I4f.js";import{b as O,n as i,j as ge,k as Bt}from"./vendor-CnQcJ2Lu.js";import{Y as _t}from"./SpendManagementSection-BibcrHiQ-ojX7OXv7.js";import{ChargeCardPromoUserContent as Ft}from"./ChargeCardPromoPage-CIboCUSV-y-DLxjGT.js";import{N as Ut,J as Wt}from"./PromoBaseCards-zZLO1ftd-CE6hJoyp.js";import{A as Yt}from"./ChargeCardListTable-C1RWnfY_-CHbl4tuS.js";import{r as Gt,i as Jt}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Ht,o as Vt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-ifcJuMu9-ByO1X2Hh.js";import"./NavigationDots-DYkUvR3H-CWQugA3e.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-B4Q04CAH-4XWj_HwH.js";import"./RoleWithToolTip-aKLOITw0-B48eYV-X.js";import"./CardNumberSubText-DU4-NQyz-186D7nSj.js";import"./ChargeCardUtils-BN7bbdUB-BbkRwxs1.js";const xe={infoSubheadingTextMarginTop:new B(I[0],I[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:l,title:h,subTitle:r,slidingTextList:u,onClick:d})=>{const p=he();return t.jsxs(Xt,{windowSize:p,cardPromoType:e,"data-testid":pe("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(Ue,{children:[t.jsxs(Ye,{children:[t.jsx(We,{children:l}),t.jsx(Qt,{children:h}),t.jsx(aa,{children:r})]}),t.jsxs(ia,{children:[t.jsx(ra,{}),u.length>0&&t.jsx(ce,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(na,{})]})]}),t.jsx(oa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(sa,{children:t.jsx(Wt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:l,creditLimit:h,onCreateNowClick:r})=>{const u=he();return t.jsx(Zt,{windowSize:u,cardType:e,children:t.jsxs(Kt,{children:[t.jsxs(Ye,{children:[t.jsx(We,{children:s}),t.jsx(ta,{children:t.jsx(ea,{children:l})}),t.jsx(da,{windowSize:u,children:t.jsxs(la,{windowSize:u,onClick:()=>r(e),"data-testid":pe("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ca,{})]})})]}),e==="creditCard"?t.jsxs(ha,{children:[t.jsx(pa,{children:ve.creditLimit}),t.jsx(ma,{children:h})]}):null]})})},qt=e=>{const s=e-1;let l=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{j as i,X as _,t as ee,d1 as fi,u as de,fc as $i,i6 as vi,i7 as Ci,i8 as yi,Y as b,M as V,bJ as ji,v as oe,g as y,ai as bi,bR as ki,i9 as Si,ia as Ii,o as r,be as zi,a5 as Li,C as p,eu as Ri,ao as Pi,ib as Di,a6 as Ui,ax as Ni,w as F,fe as Ti,p as a,dp as _i,_ as T,bT as De,d as Ue,bs as le,bl as Vi,f as k,bX as we,q as U,i1 as ue,b4 as Ne,bc as Te,ic as Mi,b_ as Oi,a7 as G,id as Ei,ie as Fi}from"./index-BZX8UIkU.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{R as _e}from"./Menu-B4Q04CAH-BOktILCZ.js";import{T as Ve}from"./RoleWithToolTip-aKLOITw0-B_wUcYFA.js";import{R as ce}from"./CardNumberSubText-DU4-NQyz-CxmQbHAh.js";import{_ as Me}from"./ChargeCardUtils-BN7bbdUB-BDnfEJHK.js";const W=V.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=V.getLocalizedStrings().common.strings.empty,$e={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)},Oe=e=>e===!0?[{...$e,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[$e,ve,Ce,ye,je,be],z={containerPaddingLeft:r.sp2,containerPaddingRight:r.sp3,containerPaddingTop:r.sp3,containerPaddingBottom:r.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(Ei,Fi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=_(),x=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Oe(x));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===t.sortKey?g.sortOrder=t.sortOrder:g.sortOrder="ascending";w(s)},[t.sortKey,t.sortOrder]);const u=(s,g)=>{let $=g;t.sortKey===s&&($=g==="ascending"?"descending":"ascending"),h(s,$)},f=c.find(s=>s.key===t.sortKey)??(x?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",m=(x?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=V.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Gi,{children:[i.jsx(Zi,{children:i.jsx(Qi,{})}),i.jsx(Vi,{title:j.sortBy,placeholder:j.sortBy,pickerValues:m,valueToLabel:S,selectedValue:t.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:oe.extraSmallRegular,titleTextStyle:oe.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rr,{onClick:()=>u(f.key,f.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:f.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:f,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Bi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Yi,{companyNameSticky:e,sortDataValue:t.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(ir,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(er,{sortDataValue:t.sortKey,windowSize:l,isVisible:t.sortKey===s.key&&(x?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Xi,{onClick:()=>u(x?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Wi.memo(Hi),qi=o.div`
1
+ import{j as i,X as _,t as ee,d1 as fi,u as de,fc as $i,i6 as vi,i7 as Ci,i8 as yi,Y as b,M as V,bJ as ji,v as oe,g as y,ai as bi,bR as ki,i9 as Si,ia as Ii,o as r,be as zi,a5 as Li,C as p,eu as Ri,ao as Pi,ib as Di,a6 as Ui,ax as Ni,w as F,fe as Ti,p as a,dp as _i,_ as T,bT as De,d as Ue,bs as le,bl as Vi,f as k,bX as we,q as U,i1 as ue,b4 as Ne,bc as Te,ic as Mi,b_ as Oi,a7 as G,id as Ei,ie as Fi}from"./index-C5RQ_I4f.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{R as _e}from"./Menu-B4Q04CAH-4XWj_HwH.js";import{T as Ve}from"./RoleWithToolTip-aKLOITw0-B48eYV-X.js";import{R as ce}from"./CardNumberSubText-DU4-NQyz-186D7nSj.js";import{_ as Me}from"./ChargeCardUtils-BN7bbdUB-BbkRwxs1.js";const W=V.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=V.getLocalizedStrings().common.strings.empty,$e={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)},Oe=e=>e===!0?[{...$e,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[$e,ve,Ce,ye,je,be],z={containerPaddingLeft:r.sp2,containerPaddingRight:r.sp3,containerPaddingTop:r.sp3,containerPaddingBottom:r.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(Ei,Fi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=_(),x=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Oe(x));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===t.sortKey?g.sortOrder=t.sortOrder:g.sortOrder="ascending";w(s)},[t.sortKey,t.sortOrder]);const u=(s,g)=>{let $=g;t.sortKey===s&&($=g==="ascending"?"descending":"ascending"),h(s,$)},f=c.find(s=>s.key===t.sortKey)??(x?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",m=(x?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=V.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Gi,{children:[i.jsx(Zi,{children:i.jsx(Qi,{})}),i.jsx(Vi,{title:j.sortBy,placeholder:j.sortBy,pickerValues:m,valueToLabel:S,selectedValue:t.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:oe.extraSmallRegular,titleTextStyle:oe.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rr,{onClick:()=>u(f.key,f.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:f.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:f,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Bi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Yi,{companyNameSticky:e,sortDataValue:t.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(ir,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(er,{sortDataValue:t.sortKey,windowSize:l,isVisible:t.sortKey===s.key&&(x?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Xi,{onClick:()=>u(x?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Wi.memo(Hi),qi=o.div`
2
2
  top: ${r.sp0};
3
3
  left: ${r.sp0};
4
4
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{X as C,M as ee,j as r,u as N,t as ue,d1 as ge,a1 as we,_ as fe,l as ye,fk as $e,aW as Ce,o as t,b$ as be,k as re,c0 as je,Z as Se,C as h,bN as Te,bs as ze,g as f,K as W,Y as K,i5 as ve,p as u,Q as T,ao as Pe,a6 as ke}from"./index-BZX8UIkU.js";import{b as z,n,j as Be,k as Ie}from"./vendor-CnQcJ2Lu.js";import{x as Ae}from"./MeetingCalenderPopup-ifcJuMu9-CWfHFman.js";import{f as Le}from"./NavigationDots-DYkUvR3H-CBy1tYVO.js";import{J as D,N as F}from"./PromoBaseCards-zZLO1ftd-DkIb0qhk.js";import{M as L}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const x={midContainerMarginBottom:new h(u[5],u[7]),containerPaddingTopBottom:new h(u[0],u[0]),uspContainerMarginX:new h(u[6],u[0]),buttonTrayGap:new h(12,u[4]),midContainerGap:new h(u[4],84),iconContainerMinHeight:new h(236,396),emptySectionHeight:new h(u[6],43),navigationBottom:new h(u[4],94),navigationLeft:new h(192,244),carouselHeight:new h(268,396),carouselMarginTop:new h(54,u[4]),carouselMarginLeft:new h(120,u[12])},v={promoBadgeText:new T("standardRegular","largeRegular"),promoBadgeTextBold:new T("standardBold","largeBold"),cardsContent:new T("extraSmallRegular","smallRegular"),contactAdmin:new T("extraSmallRegular","smallRegular"),uspText:new T("smallRegular","standardRegular"),uspBoldText:new T("smallMedium","standardMedium")},{common:Re,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=ee.getLocalizedStrings(),Sr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:d,showEnableCardButton:i,controllerEmails:a,isCardsOnlyTenantOrCreditCardFeatureEnabled:p,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:g,admins:j,cashbackRate:S,cardPromoType:w="credit",onSetupButtonClick:c,onBackClick:l,onClickMenuIcon:se,onSetupChargeCardSuccess:U,onExpressInterestClick:de})=>{const le=N(),H=ue(),R=C(),O=ge().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:b,companyLocaleInfo:_}=d,G=we(M?.fetchStatus.fetchState),[ce,J]=z.useState(!1),me=()=>{O.trackCardsPromoPageClicked("schedule demo"),O.trackCardsScheduleDemoClick(a,{isCreditCardOffered:p,isDebitCardOffered:m,isDebitCardEnabled:y,isCreditCardEnabled:g},"Cards Promo"),J(!0)},pe=b!=null&&_!=null?fe("0,0",{amount:b.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;z.useEffect(()=>{G==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&U()},[G,U,M?.fetchStatus]);const xe=ye.hasChargeCardAdminLevelAccess(H.loggedInUserRoleMap),he=$e(H),X=w==="credit"&&b?.isCompanyInterestedInChargeCard===!1,Z=w==="credit"&&b?.isCompanyInterestedInChargeCard===!0&&b.chargeCardsCreditAccountLimit===-1,V=w==="credit"&&b?.isCompanyInterestedInChargeCard===!0&&b.chargeCardsCreditAccountLimit===0;return r.jsxs(Ue,{children:[r.jsx(Ce,{title:o.title[w],backgroundColor:le.colors.grey4,onBackClick:l,showBackButton:!0,showMenuIcon:R==="medium-compact"||R==="small",onClickMenuIcon:se,style:{zIndex:9},source:"ChargeCardPromoPage"}),ce===!0?r.jsx(Ae,{onCancelClick:()=>{J(!1)},meetingUrl:e}):null,r.jsx(He,{windowSize:R,children:xe===!0?r.jsxs(r.Fragment,{children:[r.jsx(Ee,{creditAmount:pe,cardPromoType:w,isUnderReview:V,isRejected:Z,showExpressInterest:X}),r.jsx(te,{forAdmin:!0,cardPromoType:w,cashbackRate:S}),r.jsx(_e,{showEnableCardButton:i,chargeCardSetupView:d,handleSecondaryBtnClick:me,onSetupButtonClick:()=>c(w),onExpressInterestClick:de,cardPromoType:w,isUnderReview:V,isRejected:Z,showExpressInterest:X})]}):r.jsx(De,{companyLegalName:s,cards:[],admins:j,hasZeniFinopsRoles:he,cardPromoType:w})})]})},Me=({admins:e})=>{const s=e.flatMap(i=>i.user?.firstName+" "+i.user?.lastName).join(", "),d=C();return r.jsxs(tr,{windowSize:d,children:[r.jsx(E,{underline:!1,windowSize:d,children:o.noCardAssigned.pre}),r.jsx(ze,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(E,{underline:!0,windowSize:d,children:o.noCardAssigned.tooltip})}),r.jsx(E,{underline:!1,windowSize:d,children:o.noCardAssigned.post})]})},_e=({showEnableCardButton:e,chargeCardSetupView:s,isUnderReview:d,isRejected:i,showExpressInterest:a,handleSecondaryBtnClick:p,onSetupButtonClick:m,onExpressInterestClick:y})=>{const g=C(),{expressInterestInChargeCardFetchState:j}=s,S=a?o.expressInterest:e?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Ze,{windowSize:g,children:[d||i?null:r.jsxs(Ve,{windowSize:g,children:[r.jsx(W,{variant:"secondary",label:o.scheduleDemoButton,onClick:p,"data-testid":K("schedule-demo-button")}),r.jsx(W,{variant:"primary",label:S,loading:s.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||j==="In-Progress",onClick:S===o.expressInterest?y:m,"data-testid":K("enable-card-button")})]}),r.jsx(ve,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:d||i?void 0:a?o.terms.approvalTerm:e?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:!a&&!d&&!i})]})},Ee=({cardPromoType:e,creditAmount:s,isUnderReview:d,isRejected:i,showExpressInterest:a})=>{const p=C(),m=e==="debit_and_credit"?o.promoTextDebitCreditCard:e==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,y=a?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(Q,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,o.promoBadgeText.nonPreApproved.higherLimits]}):d?o.promoBadgeText.underReview:i?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(Q,{color:f.success,children:s}),o.creditLimit,Re.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:p==="small"?r.jsxs(r.Fragment,{children:[r.jsx(ae,{children:m}),r.jsx(ne,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(ie,{children:m}),r.jsx(oe,{children:o.promoSubText})]})}),r.jsxs(Ge,{cardPromoType:e,hideBadge:s==null||e==="debit",windowSize:p,children:[d||i?null:r.jsx(cr,{}),r.jsx(Je,{windowSize:p,children:y})]})]})},De=({companyLegalName:e,cards:s,admins:d,hasZeniFinopsRoles:i,cardPromoType:a="credit"})=>{const p=C(),m=a==="debit_and_credit"?o.promoTextDebitCreditCard:a==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[p==="small"?r.jsxs(r.Fragment,{children:[r.jsx(ae,{children:m}),r.jsx(ne,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(ie,{children:m}),r.jsx(oe,{children:o.promoSubText})]}),s.length===0?r.jsx(rr,{windowSize:p}):r.jsx(Fe,{cards:s,companyLegalName:e}),r.jsx(te,{forAdmin:!1,cardPromoType:a}),i?null:r.jsx(Me,{admins:d})]})},Fe=({cards:e,companyLegalName:s})=>{const d=N(),i=C();let a="",p;if(e.length===1){p=e[0].cardCreatedByUser.photo;const m=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;a=o.cardAssigned.singleCreditCard.replace("__issuing-user__",m).replace("__company-name__",s)}else a=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(or,{children:[p!=null?r.jsx(Oe,{width:t.sp5,height:t.sp5,style:{paddingTop:i==="small"?t.sp1:t.sp0},src:p.href,alt:ee.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:m})=>{m.onerror=null,m.src=Te},loading:"lazy"}):null,r.jsx(ir,{windowSize:i,mode:d.mode,children:r.jsx(ar,{windowSize:i,children:a})})]})},Y=({windowSize:e,cardPromoType:s})=>{let d=o.businessText;return s==="debit"&&(d=`${d} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ne,{}):r.jsxs(Ke,{windowSize:e,children:[r.jsx(D,{cardPromoType:s,cardText:d,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(F,{cardPromoType:s,cardText:d,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},te=({forAdmin:e,cardPromoType:s,cashbackRate:d})=>{const i=C(),a=e?o.admin:o.nonAdmin;return r.jsxs(Xe,{windowSize:i,children:[i==="small"?r.jsx(Y,{windowSize:i,cardPromoType:s}):null,r.jsxs(We,{windowSize:i,children:[r.jsxs(k,{windowSize:i,children:[r.jsx(I,{children:r.jsx(qe,{})}),r.jsxs(A,{children:[r.jsx($,{windowSize:i,children:a.item1.pre}),r.jsx(B,{windowSize:i,children:e&&d!=null?a.item1.bold.replace("__cashback__",(d*100).toFixed(2)):a.item1.bold}),r.jsx($,{windowSize:i,children:a.item1.post})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(I,{children:r.jsx(Ye,{})}),r.jsxs(A,{children:[r.jsx($,{windowSize:i,children:a.item2.pre}),r.jsx(B,{windowSize:i,children:a.item2.bold}),r.jsx($,{windowSize:i,children:a.item2.post})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(I,{children:r.jsx(er,{})}),r.jsxs(A,{children:[r.jsx($,{windowSize:i,children:a.item3.pre}),r.jsx(B,{windowSize:i,children:a.item3.bold}),r.jsx($,{windowSize:i,children:a.item3.post})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(I,{children:r.jsx(Qe,{})}),r.jsxs(A,{children:[r.jsx($,{windowSize:i,children:a.item4.pre}),r.jsx(B,{windowSize:i,children:a.item4.bold}),r.jsx($,{windowSize:i,children:a.item4.post})]})]})]}),i==="small"?null:r.jsx(Y,{windowSize:i,cardPromoType:s})]})};let P;const Ne=()=>{const e=C(),s=N(),[d,i]=z.useState(0),[a,p]=z.useState(!1),m=o.businessText,y=`${m} ${o.debit}`,g=[{id:1,cardType:"debit",cardText:y},{id:2,cardType:"debit",cardText:y},{id:3,cardType:"credit",cardText:m},{id:4,cardType:"credit",cardText:m}];z.useEffect(()=>(a||(P=setInterval(()=>{i(c=>{const l=c+1;return l===g.length?(p(!0),0):l})},2e3)),()=>clearInterval(P)),[a,g.length]),z.useEffect(()=>{a&&P!=null&&clearInterval(P)},[a]);const j=(c,l)=>{switch((c-d+g.length)%g.length){case 0:return{transform:`translate(0,${l?"100%":0}) scale(1)`,zIndex:l?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${l?"80%":"5%"}) scale(0.75)`,zIndex:l?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};default:return}},S=c=>{const l=j(c,!0);return{...l,transform:`${l?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},w=c=>{a||p(!0),i(c)};return r.jsxs(nr,{windowSize:e,children:[r.jsx(sr,{windowSize:e,children:g.map((c,l)=>r.jsxs(dr,{children:[r.jsx(q,{isReflection:!1,style:{...j(l,!1)},onClick:()=>w(l),children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(F,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},c.id),r.jsx(q,{isReflection:!0,style:{...S(l)},children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.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(F,{cardPromoType:c.cardType,cardText:c.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-${c.id}`)]},c.id))}),a&&r.jsx(Le,{numberOfDots:g.length,activeIndex:d,handleClick:i,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:x.navigationBottom.valuePx(e),left:x.navigationLeft.valuePx(e),zIndex:7}})]})},Ue=n.div`
1
+ import{X as C,M as ee,j as r,u as N,t as ue,d1 as ge,a1 as we,_ as fe,l as ye,fk as $e,aW as Ce,o as t,b$ as be,k as re,c0 as je,Z as Se,C as h,bN as Te,bs as ze,g as f,K as W,Y as K,i5 as ve,p as u,Q as T,ao as Pe,a6 as ke}from"./index-C5RQ_I4f.js";import{b as z,n,j as Be,k as Ie}from"./vendor-CnQcJ2Lu.js";import{x as Ae}from"./MeetingCalenderPopup-ifcJuMu9-ByO1X2Hh.js";import{f as Le}from"./NavigationDots-DYkUvR3H-CWQugA3e.js";import{J as D,N as F}from"./PromoBaseCards-zZLO1ftd-CE6hJoyp.js";import{M as L}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const x={midContainerMarginBottom:new h(u[5],u[7]),containerPaddingTopBottom:new h(u[0],u[0]),uspContainerMarginX:new h(u[6],u[0]),buttonTrayGap:new h(12,u[4]),midContainerGap:new h(u[4],84),iconContainerMinHeight:new h(236,396),emptySectionHeight:new h(u[6],43),navigationBottom:new h(u[4],94),navigationLeft:new h(192,244),carouselHeight:new h(268,396),carouselMarginTop:new h(54,u[4]),carouselMarginLeft:new h(120,u[12])},v={promoBadgeText:new T("standardRegular","largeRegular"),promoBadgeTextBold:new T("standardBold","largeBold"),cardsContent:new T("extraSmallRegular","smallRegular"),contactAdmin:new T("extraSmallRegular","smallRegular"),uspText:new T("smallRegular","standardRegular"),uspBoldText:new T("smallMedium","standardMedium")},{common:Re,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=ee.getLocalizedStrings(),Sr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:d,showEnableCardButton:i,controllerEmails:a,isCardsOnlyTenantOrCreditCardFeatureEnabled:p,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:y,isChargeCardSetupEnabled:g,admins:j,cashbackRate:S,cardPromoType:w="credit",onSetupButtonClick:c,onBackClick:l,onClickMenuIcon:se,onSetupChargeCardSuccess:U,onExpressInterestClick:de})=>{const le=N(),H=ue(),R=C(),O=ge().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:b,companyLocaleInfo:_}=d,G=we(M?.fetchStatus.fetchState),[ce,J]=z.useState(!1),me=()=>{O.trackCardsPromoPageClicked("schedule demo"),O.trackCardsScheduleDemoClick(a,{isCreditCardOffered:p,isDebitCardOffered:m,isDebitCardEnabled:y,isCreditCardEnabled:g},"Cards Promo"),J(!0)},pe=b!=null&&_!=null?fe("0,0",{amount:b.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;z.useEffect(()=>{G==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&U()},[G,U,M?.fetchStatus]);const xe=ye.hasChargeCardAdminLevelAccess(H.loggedInUserRoleMap),he=$e(H),X=w==="credit"&&b?.isCompanyInterestedInChargeCard===!1,Z=w==="credit"&&b?.isCompanyInterestedInChargeCard===!0&&b.chargeCardsCreditAccountLimit===-1,V=w==="credit"&&b?.isCompanyInterestedInChargeCard===!0&&b.chargeCardsCreditAccountLimit===0;return r.jsxs(Ue,{children:[r.jsx(Ce,{title:o.title[w],backgroundColor:le.colors.grey4,onBackClick:l,showBackButton:!0,showMenuIcon:R==="medium-compact"||R==="small",onClickMenuIcon:se,style:{zIndex:9},source:"ChargeCardPromoPage"}),ce===!0?r.jsx(Ae,{onCancelClick:()=>{J(!1)},meetingUrl:e}):null,r.jsx(He,{windowSize:R,children:xe===!0?r.jsxs(r.Fragment,{children:[r.jsx(Ee,{creditAmount:pe,cardPromoType:w,isUnderReview:V,isRejected:Z,showExpressInterest:X}),r.jsx(te,{forAdmin:!0,cardPromoType:w,cashbackRate:S}),r.jsx(_e,{showEnableCardButton:i,chargeCardSetupView:d,handleSecondaryBtnClick:me,onSetupButtonClick:()=>c(w),onExpressInterestClick:de,cardPromoType:w,isUnderReview:V,isRejected:Z,showExpressInterest:X})]}):r.jsx(De,{companyLegalName:s,cards:[],admins:j,hasZeniFinopsRoles:he,cardPromoType:w})})]})},Me=({admins:e})=>{const s=e.flatMap(i=>i.user?.firstName+" "+i.user?.lastName).join(", "),d=C();return r.jsxs(tr,{windowSize:d,children:[r.jsx(E,{underline:!1,windowSize:d,children:o.noCardAssigned.pre}),r.jsx(ze,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(E,{underline:!0,windowSize:d,children:o.noCardAssigned.tooltip})}),r.jsx(E,{underline:!1,windowSize:d,children:o.noCardAssigned.post})]})},_e=({showEnableCardButton:e,chargeCardSetupView:s,isUnderReview:d,isRejected:i,showExpressInterest:a,handleSecondaryBtnClick:p,onSetupButtonClick:m,onExpressInterestClick:y})=>{const g=C(),{expressInterestInChargeCardFetchState:j}=s,S=a?o.expressInterest:e?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Ze,{windowSize:g,children:[d||i?null:r.jsxs(Ve,{windowSize:g,children:[r.jsx(W,{variant:"secondary",label:o.scheduleDemoButton,onClick:p,"data-testid":K("schedule-demo-button")}),r.jsx(W,{variant:"primary",label:S,loading:s.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||j==="In-Progress",onClick:S===o.expressInterest?y:m,"data-testid":K("enable-card-button")})]}),r.jsx(ve,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:d||i?void 0:a?o.terms.approvalTerm:e?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:!a&&!d&&!i})]})},Ee=({cardPromoType:e,creditAmount:s,isUnderReview:d,isRejected:i,showExpressInterest:a})=>{const p=C(),m=e==="debit_and_credit"?o.promoTextDebitCreditCard:e==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,y=a?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(Q,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,o.promoBadgeText.nonPreApproved.higherLimits]}):d?o.promoBadgeText.underReview:i?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(Q,{color:f.success,children:s}),o.creditLimit,Re.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:p==="small"?r.jsxs(r.Fragment,{children:[r.jsx(ae,{children:m}),r.jsx(ne,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(ie,{children:m}),r.jsx(oe,{children:o.promoSubText})]})}),r.jsxs(Ge,{cardPromoType:e,hideBadge:s==null||e==="debit",windowSize:p,children:[d||i?null:r.jsx(cr,{}),r.jsx(Je,{windowSize:p,children:y})]})]})},De=({companyLegalName:e,cards:s,admins:d,hasZeniFinopsRoles:i,cardPromoType:a="credit"})=>{const p=C(),m=a==="debit_and_credit"?o.promoTextDebitCreditCard:a==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[p==="small"?r.jsxs(r.Fragment,{children:[r.jsx(ae,{children:m}),r.jsx(ne,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(ie,{children:m}),r.jsx(oe,{children:o.promoSubText})]}),s.length===0?r.jsx(rr,{windowSize:p}):r.jsx(Fe,{cards:s,companyLegalName:e}),r.jsx(te,{forAdmin:!1,cardPromoType:a}),i?null:r.jsx(Me,{admins:d})]})},Fe=({cards:e,companyLegalName:s})=>{const d=N(),i=C();let a="",p;if(e.length===1){p=e[0].cardCreatedByUser.photo;const m=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;a=o.cardAssigned.singleCreditCard.replace("__issuing-user__",m).replace("__company-name__",s)}else a=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(or,{children:[p!=null?r.jsx(Oe,{width:t.sp5,height:t.sp5,style:{paddingTop:i==="small"?t.sp1:t.sp0},src:p.href,alt:ee.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:m})=>{m.onerror=null,m.src=Te},loading:"lazy"}):null,r.jsx(ir,{windowSize:i,mode:d.mode,children:r.jsx(ar,{windowSize:i,children:a})})]})},Y=({windowSize:e,cardPromoType:s})=>{let d=o.businessText;return s==="debit"&&(d=`${d} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ne,{}):r.jsxs(Ke,{windowSize:e,children:[r.jsx(D,{cardPromoType:s,cardText:d,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(F,{cardPromoType:s,cardText:d,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},te=({forAdmin:e,cardPromoType:s,cashbackRate:d})=>{const i=C(),a=e?o.admin:o.nonAdmin;return r.jsxs(Xe,{windowSize:i,children:[i==="small"?r.jsx(Y,{windowSize:i,cardPromoType:s}):null,r.jsxs(We,{windowSize:i,children:[r.jsxs(k,{windowSize:i,children:[r.jsx(I,{children:r.jsx(qe,{})}),r.jsxs(A,{children:[r.jsx($,{windowSize:i,children:a.item1.pre}),r.jsx(B,{windowSize:i,children:e&&d!=null?a.item1.bold.replace("__cashback__",(d*100).toFixed(2)):a.item1.bold}),r.jsx($,{windowSize:i,children:a.item1.post})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(I,{children:r.jsx(Ye,{})}),r.jsxs(A,{children:[r.jsx($,{windowSize:i,children:a.item2.pre}),r.jsx(B,{windowSize:i,children:a.item2.bold}),r.jsx($,{windowSize:i,children:a.item2.post})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(I,{children:r.jsx(er,{})}),r.jsxs(A,{children:[r.jsx($,{windowSize:i,children:a.item3.pre}),r.jsx(B,{windowSize:i,children:a.item3.bold}),r.jsx($,{windowSize:i,children:a.item3.post})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(I,{children:r.jsx(Qe,{})}),r.jsxs(A,{children:[r.jsx($,{windowSize:i,children:a.item4.pre}),r.jsx(B,{windowSize:i,children:a.item4.bold}),r.jsx($,{windowSize:i,children:a.item4.post})]})]})]}),i==="small"?null:r.jsx(Y,{windowSize:i,cardPromoType:s})]})};let P;const Ne=()=>{const e=C(),s=N(),[d,i]=z.useState(0),[a,p]=z.useState(!1),m=o.businessText,y=`${m} ${o.debit}`,g=[{id:1,cardType:"debit",cardText:y},{id:2,cardType:"debit",cardText:y},{id:3,cardType:"credit",cardText:m},{id:4,cardType:"credit",cardText:m}];z.useEffect(()=>(a||(P=setInterval(()=>{i(c=>{const l=c+1;return l===g.length?(p(!0),0):l})},2e3)),()=>clearInterval(P)),[a,g.length]),z.useEffect(()=>{a&&P!=null&&clearInterval(P)},[a]);const j=(c,l)=>{switch((c-d+g.length)%g.length){case 0:return{transform:`translate(0,${l?"100%":0}) scale(1)`,zIndex:l?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${l?"80%":"5%"}) scale(0.75)`,zIndex:l?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};default:return}},S=c=>{const l=j(c,!0);return{...l,transform:`${l?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},w=c=>{a||p(!0),i(c)};return r.jsxs(nr,{windowSize:e,children:[r.jsx(sr,{windowSize:e,children:g.map((c,l)=>r.jsxs(dr,{children:[r.jsx(q,{isReflection:!1,style:{...j(l,!1)},onClick:()=>w(l),children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(F,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},c.id),r.jsx(q,{isReflection:!0,style:{...S(l)},children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.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(F,{cardPromoType:c.cardType,cardText:c.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-${c.id}`)]},c.id))}),a&&r.jsx(Le,{numberOfDots:g.length,activeIndex:d,handleClick:i,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:x.navigationBottom.valuePx(e),left:x.navigationLeft.valuePx(e),zIndex:7}})]})},Ue=n.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as Ve,X as De,d1 as Ie,a1 as N,a as Oe,c2 as Be,M as Ue,a7 as q,j as t,cH as _e,g as $e,C as r,aW as ze,d as Re,F as We,cZ as Le,o as B,v as Ne,aQ as qe,a3 as He,p as c,q as Me}from"./index-BZX8UIkU.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{P as Ge}from"./HelpButton-DYFzwkI3-DGXEm476.js";import{K as Je}from"./SetUpDefaultSection-CEcqnqlD-DPfEVIk8.js";import{p as Ke,y as H}from"./SpendMgmtSetupAccountSection-BZzCEn49-BUW9h1w4.js";import{x as Qe}from"./LabeledControlledCheckBoxField-DPoSmzJi-Dd2UAlNr.js";import{g as Xe}from"./UploadAdditionalDocumentOverlay-qVx1t-kK-ZeoH0JJj.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-ifcJuMu9-CWfHFman.js";import"./ChargeCardUtils-BN7bbdUB-BDnfEJHK.js";import"./CreditCardPaymentPlgSection-CEjV1ee_-CJS3AWLV.js";import"./ChaseOverlay-BrHcqwQQ-9yUtYaFO.js";const l={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,c[5],c[5]),sectionRowGap:new r(c[5],c[9],c[9]),iconWidthHeight:new r(20,c[4]),subTitlePaddingTop:new r(12,c[3]),subTitlePaddingBottom:new r(c[3],c[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(c[1],c[0])},M="chargeCardSetUpPage",f="payAccount",{commonSetUp:Ze,spendManagement:Ye}=Ue.getLocalizedStrings(),{chargeCard:K}=Ye,{chargeCardSetUp:m}=K,{setUp:U}=Ze,wt=({autoPayThreshold:e,isDisabled:x,meetingUrl:v,isEarlyPayEnabled:h,chargeCardSetUpView:o,connectedAccountProvider:Q,filesEndPoint:X,authParams:Z,isAccountsEnabled:Y,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ee,accountsPromoConfig:te,onFetchLinkTokenClick:ie,onBackClick:ne,onEnableChargeCardClick:oe,onUpdateChargeCardClick:ae,onBusinessVerificationSectionClick:ce,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,onUpdatePrimaryFundingAccount:re,onUpdateAutoPayClick:de,onEstablishConnectionClick:ue,onEstablishConnectionSuccess:pe,onClickMenuIcon:me,onEnableChargeCardSuccess:P,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,onCompanyOfficerUpdated:ye,onSendForVerificationClick:be,onSignUpClick:Ce})=>{const g=Ve(),n=De(),T=Ie().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:_,isRefreshingViewInBackground:Se,updateStatus:d,accountUpdateStatus:xe,plaidConnectionDetails:Pe,allBankAccounts:we,companyChargeCardInfo:$,companyDebitCardInfo:Ae,selectedCompanyOfficer:s,primaryFundingAccount:a,allFundingAccounts:z}=o,R=N(b),A=N(d.fetchState),F=Oe({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>G(o),[o]),values:G(o)}),ke=F.handleSubmit(oe),ve=async(C,k)=>{const i=k[f];if(C.includes(f))if(C.includes("fundingAccount")){if(i.fundingAccount.selectedOption!=null&&a?.id!=i.fundingAccount.selectedOption){const u=z.find(O=>O.id===i.fundingAccount.selectedOption);u!=null&&re(i.fundingAccount.selectedOption,u.accType)}}else if(i.account.selectedOption!=null&&a?.id!=null&&a?.zeniAccountId!=i.account.selectedOption){const u=i.account.allOptions.find(O=>O.value===i.account.selectedOption);u!=null&&typeof u.label=="string"&&T.trackConnectBankLink(u.value,u.label,"charge_cards"),ae(i.account.selectedOption,a.id,a.accType)}else C.includes("enableAutoPay")&&i.enableAutoPay!=null&&de(i.enableAutoPay)};p.useEffect(()=>{const C=F.watch((k,{name:i})=>{i!=null&&k!=null&&Be(()=>ve(i,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&&R==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,R]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const j=$?.isChargeCardEnabled===!0,V=Ae?.isDebitCardEnabled===!0,W=_?.isBusinessVerified===!0,Ee=a?.accType==="depositAccount"||a?.providerVerificationStatus?.code==="verified"||a?.providerVerificationStatus?.code==="manually_verified"||a?.providerVerificationStatus?.code==="automatically_verified"||a?.providerVerificationStatus?.code==="database_matched",D=E?W:W&&Ee,Te=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const I=E?D&&!V:ee?D&&!j:D&&!(j&&V),Fe=I?m.setupSubTitleNotEnabled:m.setupSubTitle,L=g.mode==="light"?new q(g.colors.brandColorJadeLight):new q(g.colors.brandColorJadeDark),je=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(tt,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:l.overlayWidth.valuePercentage(n),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:$e.drawerBackground},transitionDuration:250,children:t.jsx(Xe,{authParams:Z,filesEndPoint:X,updateStatus:d,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:ye,onSendForVerificationClick:be})}),t.jsx(ze,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ne,showMenuIcon:!j&&!V&&(n==="medium-compact"||n==="small"),onClickMenuIcon:me,source:"ChargeCardSetupPage"}),t.jsxs(et,{windowSize:n,children:[t.jsx(it,{windowSize:n,children:Fe}),Te?t.jsx(nt,{children:t.jsx(Re,{size:"ExtraLarge",start:!0})}):t.jsx(We,{...F,children:t.jsx("form",{id:J(M),onSubmit:ke,children:t.jsxs(ot,{windowSize:n,children:[t.jsx(Je,{onClick:je,title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(Le,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},status:_?.businessVerificationStatus,isLoading:Se,isActiveWhileLoading:!0}),E?null:t.jsx(Ke,{connectedAccountProvider:Q,primaryFundingAccount:a,allFundingAccounts:z,plaidConnectionDetails:Pe,allBankAccounts:we,sectionId:f,isDisabled:x,onFetchLinkTokenClick:ie,onEstablishConnectionClick:ue,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:pe,icon:{element:t.jsx(qe,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},analytics:T,productType:"charge_cards",isAccountsEnabled:Y,onSignUpClick:Ce,pageName:m.pageName,accountsPromoConfig:te,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Qe,{label:{label:K.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...Ne.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:n==="small"?"flex-start":"center"},checkBoxField:{name:H(f,"enableAutoPay"),checkBoxValue:H(f,"enableAutoPay"),defaultChecked:$?.isAutoPayEnabled,style:{top:l.checkBoxTop.valuePx(n)}}})})]})})})]}),I?t.jsx(He,{formId:J(M),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:n==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||xe.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Ge,{isFooterRendered:I,meetingUrl:v,analytics:T,productType:"charge_cards"})]})},G=e=>{const{allBankAccounts:x,allFundingAccounts:v,primaryFundingAccount:h}=e;return{[f]:{fundingAccount:{selectedOption:h?.id,allOptions:v.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}}},J=e=>`${e}_form`,et=S.div`
1
+ import{u as Ve,X as De,d1 as Ie,a1 as N,a as Oe,c2 as Be,M as Ue,a7 as q,j as t,cH as _e,g as $e,C as r,aW as ze,d as Re,F as We,cZ as Le,o as B,v as Ne,aQ as qe,a3 as He,p as c,q as Me}from"./index-C5RQ_I4f.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{P as Ge}from"./HelpButton-DYFzwkI3-Cel7B9gC.js";import{K as Je}from"./SetUpDefaultSection-CEcqnqlD-BSjLZl3B.js";import{p as Ke,y as H}from"./SpendMgmtSetupAccountSection-BZzCEn49-xlvJK4VE.js";import{x as Qe}from"./LabeledControlledCheckBoxField-DPoSmzJi-B9fcjMs6.js";import{g as Xe}from"./UploadAdditionalDocumentOverlay-qVx1t-kK-BfnzSXgO.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-ifcJuMu9-ByO1X2Hh.js";import"./ChargeCardUtils-BN7bbdUB-BbkRwxs1.js";import"./CreditCardPaymentPlgSection-CEjV1ee_-C66jG_cF.js";import"./ChaseOverlay-BrHcqwQQ-D5p6lw7W.js";const l={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,c[5],c[5]),sectionRowGap:new r(c[5],c[9],c[9]),iconWidthHeight:new r(20,c[4]),subTitlePaddingTop:new r(12,c[3]),subTitlePaddingBottom:new r(c[3],c[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(c[1],c[0])},M="chargeCardSetUpPage",f="payAccount",{commonSetUp:Ze,spendManagement:Ye}=Ue.getLocalizedStrings(),{chargeCard:K}=Ye,{chargeCardSetUp:m}=K,{setUp:U}=Ze,wt=({autoPayThreshold:e,isDisabled:x,meetingUrl:v,isEarlyPayEnabled:h,chargeCardSetUpView:o,connectedAccountProvider:Q,filesEndPoint:X,authParams:Z,isAccountsEnabled:Y,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ee,accountsPromoConfig:te,onFetchLinkTokenClick:ie,onBackClick:ne,onEnableChargeCardClick:oe,onUpdateChargeCardClick:ae,onBusinessVerificationSectionClick:ce,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,onUpdatePrimaryFundingAccount:re,onUpdateAutoPayClick:de,onEstablishConnectionClick:ue,onEstablishConnectionSuccess:pe,onClickMenuIcon:me,onEnableChargeCardSuccess:P,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,onCompanyOfficerUpdated:ye,onSendForVerificationClick:be,onSignUpClick:Ce})=>{const g=Ve(),n=De(),T=Ie().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:_,isRefreshingViewInBackground:Se,updateStatus:d,accountUpdateStatus:xe,plaidConnectionDetails:Pe,allBankAccounts:we,companyChargeCardInfo:$,companyDebitCardInfo:Ae,selectedCompanyOfficer:s,primaryFundingAccount:a,allFundingAccounts:z}=o,R=N(b),A=N(d.fetchState),F=Oe({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>G(o),[o]),values:G(o)}),ke=F.handleSubmit(oe),ve=async(C,k)=>{const i=k[f];if(C.includes(f))if(C.includes("fundingAccount")){if(i.fundingAccount.selectedOption!=null&&a?.id!=i.fundingAccount.selectedOption){const u=z.find(O=>O.id===i.fundingAccount.selectedOption);u!=null&&re(i.fundingAccount.selectedOption,u.accType)}}else if(i.account.selectedOption!=null&&a?.id!=null&&a?.zeniAccountId!=i.account.selectedOption){const u=i.account.allOptions.find(O=>O.value===i.account.selectedOption);u!=null&&typeof u.label=="string"&&T.trackConnectBankLink(u.value,u.label,"charge_cards"),ae(i.account.selectedOption,a.id,a.accType)}else C.includes("enableAutoPay")&&i.enableAutoPay!=null&&de(i.enableAutoPay)};p.useEffect(()=>{const C=F.watch((k,{name:i})=>{i!=null&&k!=null&&Be(()=>ve(i,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&&R==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,R]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const j=$?.isChargeCardEnabled===!0,V=Ae?.isDebitCardEnabled===!0,W=_?.isBusinessVerified===!0,Ee=a?.accType==="depositAccount"||a?.providerVerificationStatus?.code==="verified"||a?.providerVerificationStatus?.code==="manually_verified"||a?.providerVerificationStatus?.code==="automatically_verified"||a?.providerVerificationStatus?.code==="database_matched",D=E?W:W&&Ee,Te=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const I=E?D&&!V:ee?D&&!j:D&&!(j&&V),Fe=I?m.setupSubTitleNotEnabled:m.setupSubTitle,L=g.mode==="light"?new q(g.colors.brandColorJadeLight):new q(g.colors.brandColorJadeDark),je=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(tt,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:l.overlayWidth.valuePercentage(n),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:$e.drawerBackground},transitionDuration:250,children:t.jsx(Xe,{authParams:Z,filesEndPoint:X,updateStatus:d,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:ye,onSendForVerificationClick:be})}),t.jsx(ze,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ne,showMenuIcon:!j&&!V&&(n==="medium-compact"||n==="small"),onClickMenuIcon:me,source:"ChargeCardSetupPage"}),t.jsxs(et,{windowSize:n,children:[t.jsx(it,{windowSize:n,children:Fe}),Te?t.jsx(nt,{children:t.jsx(Re,{size:"ExtraLarge",start:!0})}):t.jsx(We,{...F,children:t.jsx("form",{id:J(M),onSubmit:ke,children:t.jsxs(ot,{windowSize:n,children:[t.jsx(Je,{onClick:je,title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(Le,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},status:_?.businessVerificationStatus,isLoading:Se,isActiveWhileLoading:!0}),E?null:t.jsx(Ke,{connectedAccountProvider:Q,primaryFundingAccount:a,allFundingAccounts:z,plaidConnectionDetails:Pe,allBankAccounts:we,sectionId:f,isDisabled:x,onFetchLinkTokenClick:ie,onEstablishConnectionClick:ue,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:pe,icon:{element:t.jsx(qe,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},analytics:T,productType:"charge_cards",isAccountsEnabled:Y,onSignUpClick:Ce,pageName:m.pageName,accountsPromoConfig:te,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Qe,{label:{label:K.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...Ne.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:n==="small"?"flex-start":"center"},checkBoxField:{name:H(f,"enableAutoPay"),checkBoxValue:H(f,"enableAutoPay"),defaultChecked:$?.isAutoPayEnabled,style:{top:l.checkBoxTop.valuePx(n)}}})})]})})})]}),I?t.jsx(He,{formId:J(M),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:n==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||xe.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Ge,{isFooterRendered:I,meetingUrl:v,analytics:T,productType:"charge_cards"})]})},G=e=>{const{allBankAccounts:x,allFundingAccounts:v,primaryFundingAccount:h}=e;return{[f]:{fundingAccount:{selectedOption:h?.id,allOptions:v.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}}},J=e=>`${e}_form`,et=S.div`
2
2
  display: flex;
3
3
  justify-content: flex-start;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as W,X as T,j as t,aW as F,M as R,o as h,C as g,q as B,an as O,d1 as q,g$ as J,Y as K,d as Q,p as s,bp as U}from"./index-BZX8UIkU.js";import{n as i,b as V}from"./vendor-CnQcJ2Lu.js";import{$ as X,g as Z}from"./BoxItem-BMejIo17-DYaYpAty.js";import{w as _}from"./downloadPdf-UYNSbWcH-B89JkTwa.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./commonDimensions-CnEuBCL0-D6rQGPBV.js";const z=R.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},G=i.div`
1
+ import{u as W,X as T,j as t,aW as F,M as R,o as h,C as g,q as B,an as O,d1 as q,g$ as J,Y as K,d as Q,p as s,bp as U}from"./index-C5RQ_I4f.js";import{n as i,b as V}from"./vendor-CnQcJ2Lu.js";import{$ as X,g as Z}from"./BoxItem-BMejIo17-DfTWFZ7_.js";import{w as _}from"./downloadPdf-UYNSbWcH-CCjYi8d_.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./commonDimensions-CnEuBCL0-BaKrm6VO.js";const z=R.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},G=i.div`
2
2
  display: flex;
3
3
  padding: ${h.sp3} ${h.sp4};
4
4
  flex-direction: row;
@@ -1 +1 @@
1
- import{ff as D,M as S,dp as c,l as B}from"./index-BZX8UIkU.js";function U(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 A=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(B.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}=S.getLocalizedStrings(),L=({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)},N=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},Y=e=>e.limit.amount-e.available.amount,b="1.75";export{F,L as H,U as L,N as M,b as S,A as U,Y as _};
1
+ import{ff as D,M as S,dp as c,l as B}from"./index-C5RQ_I4f.js";function U(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 A=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(B.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}=S.getLocalizedStrings(),L=({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)},N=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},Y=e=>e.limit.amount-e.available.amount,b="1.75";export{F,L as H,U as L,N as M,b as S,A as U,Y as _};
@@ -1,4 +1,4 @@
1
- import{X as H,fc as X,fd as Q,M as W,j as t,g as x,m as ee,K as I,Y as c,o as s,C as m,Z as te,q as ie,an as se,bB as oe,c_ as re,p as l,ao as Y,ax as _,a6 as ne,fe as le,w as ae,cp as de,aP as ce}from"./index-BZX8UIkU.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.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 De(e){const d=H(),[,A]=X(),{isMobileOrTabletScreen:g}=Q(),[j,k]=p.useState(!0),[y,S]=p.useState(!0),[z,C]=p.useState(!1),[T,M]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,N=r.title,K=r.description,V=()=>{window.open(r.chaseVideoUrl,"_blank")},L=[0,1,2,3],P=i=>i<L.length-1,B=(i,n)=>{A(i??""),n?k(!1):S(!1)},D=i=>{i?C(!0):M(!0)},E=i=>{i?C(!1):M(!1)};p.useEffect(()=>{j===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[j,y]);const q=()=>{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]})},F=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},J=()=>{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:()=>B(n,!0),onMouseOver:()=>D(!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(U,{showCopyText:z&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>B(i.payeeName,!1),onMouseOver:()=>D(!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(U,{showCopyText:T&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Me,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},Z=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},G=i=>{switch(i){case 0:return t.jsx(q,{});case 1:return t.jsx(F,{});case 2:return t.jsx(J,{});default:return t.jsx(Z,{})}};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(Le,{children:[t.jsx(xe,{children:N}),t.jsx(ge,{children:K}),t.jsx(je,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:L.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:P(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),P(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(I,{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(I,{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{X as H,fc as X,fd as Q,M as W,j as t,g as x,m as ee,K as I,Y as c,o as s,C as m,Z as te,q as ie,an as se,bB as oe,c_ as re,p as l,ao as Y,ax as _,a6 as ne,fe as le,w as ae,cp as de,aP as ce}from"./index-C5RQ_I4f.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.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 De(e){const d=H(),[,A]=X(),{isMobileOrTabletScreen:g}=Q(),[j,k]=p.useState(!0),[y,S]=p.useState(!0),[z,C]=p.useState(!1),[T,M]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,N=r.title,K=r.description,V=()=>{window.open(r.chaseVideoUrl,"_blank")},L=[0,1,2,3],P=i=>i<L.length-1,B=(i,n)=>{A(i??""),n?k(!1):S(!1)},D=i=>{i?C(!0):M(!0)},E=i=>{i?C(!1):M(!1)};p.useEffect(()=>{j===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[j,y]);const q=()=>{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]})},F=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},J=()=>{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:()=>B(n,!0),onMouseOver:()=>D(!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(U,{showCopyText:z&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>B(i.payeeName,!1),onMouseOver:()=>D(!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(U,{showCopyText:T&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Me,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},Z=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},G=i=>{switch(i){case 0:return t.jsx(q,{});case 1:return t.jsx(F,{});case 2:return t.jsx(J,{});default:return t.jsx(Z,{})}};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(Le,{children:[t.jsx(xe,{children:N}),t.jsx(ge,{children:K}),t.jsx(je,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:L.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:P(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),P(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(I,{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(I,{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{X as U,j as t,Y as $,gZ as pe,M as ee,_ as M,K as _,o,a3 as he,C as l,a2 as oe,k as ue,an as me,b$ as te,w as ge,q as F,a1 as xe,a as fe,c2 as ke,g as w,F as De,fD as $e,c5 as we,eN as G,cc as J,p as s,cV as be,bF as ye,bm as je,cy as Pe,f7 as Se,f as q,f9 as Le}from"./index-BZX8UIkU.js";import{b as k,n as a}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",V="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,[V]:{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:R}=ee.getLocalizedStrings(),c=ze.zeniAccounts.zeniAccountList,Ae=R.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=U(),n=e.fetchState,L=xe(n),[v,Y]=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,K=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:R.currency.currencyCode,currencySymbol:R.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)}};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();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(Re,{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(Ve,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(X,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(X,{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(Ye,{children:[t.jsx(_e,{}),t.jsxs(Ge,{children:[t.jsx(Je,{children:e.error?.title}),t.jsx(Xe,{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(We,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...f,children:t.jsx("form",{id:Be(ve),onSubmit:le,children:t.jsxs(He,{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(Ze,{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(Qe,{size:r,children:[t.jsxs(Ue,{size:r,children:[t.jsx(Ie,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(W,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(G,{name:`${D(g,V)}.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=>Y(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(W,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(G,{name:`${D(g,V)}.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=>Y(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{X as U,j as t,Y as $,gZ as pe,M as ee,_ as M,K as _,o,a3 as he,C as l,a2 as oe,k as ue,an as me,b$ as te,w as ge,q as F,a1 as xe,a as fe,c2 as ke,g as w,F as De,fD as $e,c5 as we,eN as G,cc as J,p as s,cV as be,bF as ye,bm as je,cy as Pe,f7 as Se,f as q,f9 as Le}from"./index-C5RQ_I4f.js";import{b as k,n as a}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",V="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,[V]:{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:R}=ee.getLocalizedStrings(),c=ze.zeniAccounts.zeniAccountList,Ae=R.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=U(),n=e.fetchState,L=xe(n),[v,Y]=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,K=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:R.currency.currencyCode,currencySymbol:R.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)}};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();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(Re,{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(Ve,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(X,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(X,{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(Ye,{children:[t.jsx(_e,{}),t.jsxs(Ge,{children:[t.jsx(Je,{children:e.error?.title}),t.jsx(Xe,{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(We,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...f,children:t.jsx("form",{id:Be(ve),onSubmit:le,children:t.jsxs(He,{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(Ze,{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(Qe,{size:r,children:[t.jsxs(Ue,{size:r,children:[t.jsx(Ie,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(W,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(G,{name:`${D(g,V)}.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=>Y(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(W,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(G,{name:`${D(g,V)}.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=>Y(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};
@@ -1,4 +1,4 @@
1
- import{j as t,ai as an,Y as m,bd as fe,_ as U,df as ln,o as s,g as ee,a1 as lo,X as N,H as co,z as cn,dg as so,dh as sn,l as A,M as O,p as w,di as zo,dj as Lt,a7 as _,dk as At,by as Bt,dl as Ot,C as D,cr as Mt,t as Po,T as qe,dm as To,bf as X,d as dn,u as se,ae as Vo,dn as Do,a8 as V,r as Le,dp as hn,dq as ce,bx as Wt,bB as ho,w as un,f as we,dr as Je,ds as Ae,dt as Xe,q as S,bF as ie,du as pn,v as Nt,dv as Ve,dw as uo,dx as po,dy as gn,dz as fn,an as Ro,ak as xn,bX as It,bW as Ft,c_ as mn,al as Go,b_ as Eo,bl as wn,dA as yn,dB as go,dC as fo,dD as bn,dE as kn,bs as Cn,b4 as jn,dF as Sn}from"./index-BZX8UIkU.js";import{n as a,b as I,f as vn,j as F}from"./vendor-CnQcJ2Lu.js";import{L as et,N as $n,D as _n,B as ye,u as $}from"./AccountRow-CpUAoVFw-HMGE2G2G.js";function Z(e,o){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 U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function Ho(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 U("0,0",e?.totalBalance)}function xt(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 U("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const o=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const o=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:o}))}else return U("0,0",null)}function Ko(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const o=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function Yo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const o=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:o}))}else return U("0,0",null)}const We=(e,o,i)=>{const{startDate:n,balanceType:r}=o,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.MMMYYYYFormat,e)}`:ht(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(n,l.QYYYYformat,e)}`:ht(r,i);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.YYYYformat,e)}`:ht(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ht(e,o){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[o][e]}const Mp=(e,o,i)=>{const n=o.length==0?e:`${e}_${o.join("_")}`;return i!=null&&i.trim().length>0?`${n}_${i}`:`${n}_${ln(10)}`},Ln=a.div`
1
+ import{j as t,ai as an,Y as m,bd as fe,_ as U,df as ln,o as s,g as ee,a1 as lo,X as N,H as co,z as cn,dg as so,dh as sn,l as A,M as O,p as w,di as zo,dj as Lt,a7 as _,dk as At,by as Bt,dl as Ot,C as D,cr as Mt,t as Po,T as qe,dm as To,bf as X,d as dn,u as se,ae as Vo,dn as Do,a8 as V,r as Le,dp as hn,dq as ce,bx as Wt,bB as ho,w as un,f as we,dr as Je,ds as Ae,dt as Xe,q as S,bF as ie,du as pn,v as Nt,dv as Ve,dw as uo,dx as po,dy as gn,dz as fn,an as Ro,ak as xn,bX as It,bW as Ft,c_ as mn,al as Go,b_ as Eo,bl as wn,dA as yn,dB as go,dC as fo,dD as bn,dE as kn,bs as Cn,b4 as jn,dF as Sn}from"./index-C5RQ_I4f.js";import{n as a,b as I,f as vn,j as F}from"./vendor-CnQcJ2Lu.js";import{L as et,N as $n,D as _n,B as ye,u as $}from"./AccountRow-CpUAoVFw-BuMEboIn.js";function Z(e,o){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 U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function Ho(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 U("0,0",e?.totalBalance)}function xt(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 U("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const o=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const o=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:o}))}else return U("0,0",null)}function Ko(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const o=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function Yo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const o=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:o}))}else return U("0,0",null)}const We=(e,o,i)=>{const{startDate:n,balanceType:r}=o,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.MMMYYYYFormat,e)}`:ht(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(n,l.QYYYYformat,e)}`:ht(r,i);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.YYYYformat,e)}`:ht(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ht(e,o){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[o][e]}const Mp=(e,o,i)=>{const n=o.length==0?e:`${e}_${o.join("_")}`;return i!=null&&i.trim().length>0?`${n}_${i}`:`${n}_${ln(10)}`},Ln=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;