@zeniai/web-cockpit-ui 1.14.11-dev → 1.14.11-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 (223) hide show
  1. package/dist/assets/{ACHDetailsPage-D6-Uk4xr-CqCQg7ha.js → ACHDetailsPage-D6-Uk4xr-jFv1GnoI.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-pQP8EI_S-DOdJRYuT.js → AIPerformancePage-pQP8EI_S-BmqjuJLP.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-DxAa9GD7-BDuKQBCM.js → AccountInfoPage-DxAa9GD7-D7apIJBS.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-tNTpX5pA-DZsnTAw6.js → AccountInfoPageContent-tNTpX5pA-Dq_hVydq.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-CbZaDfU0-D6InUwmP.js → AccountReconDetailsDrawerPage-CbZaDfU0-DaawWCL4.js} +1 -1
  6. package/dist/assets/{AccountRow-BpBK8mVs-D3-rIOZV.js → AccountRow-BpBK8mVs-CWKKWdc9.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-DBCYok4Z-BX2c8K6j.js → AccountsPromoCardStack-DBCYok4Z-A49ZhRDR.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-BP8sDedz-fAvU3zAk.js → AddAddressForCardDrawer-BP8sDedz-DSB40bVC.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-Dsw1GIbh-C-TkI1oG.js → AddToWalletPage-Dsw1GIbh-BSm9RiLd.js} +1 -1
  10. package/dist/assets/{AgingReportsPage-COC3iACh-ihUmY_za.js → AgingReportsPage-COC3iACh-C5F0xJIX.js} +1 -1
  11. package/dist/assets/{AllUserItems-DKoDASKq-BK1HOlxO.js → AllUserItems-DKoDASKq-DdNtnSb4.js} +1 -1
  12. package/dist/assets/{ApAgingDetailPage-BKAJMyRm-D4FAXjMB.js → ApAgingDetailPage-BKAJMyRm-BNLhw8rC.js} +1 -1
  13. package/dist/assets/{AppBasePage-6fgXwSBv-PwB9ZP6-.js → AppBasePage-6fgXwSBv-D_v1hA25.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-DnYw60Xv-DEM6VfAx.js → AppDrawerContent-DnYw60Xv-B7MgYjtO.js} +1 -1
  15. package/dist/assets/{ApprovalRulesSettingsPage-X4EYoBfl-BbXFDQ_-.js → ApprovalRulesSettingsPage-X4EYoBfl-KdnTY675.js} +1 -1
  16. package/dist/assets/{ArAgingChart-CNghm3pm-Dc-aS72N.js → ArAgingChart-CNghm3pm-BgpJccmt.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-DD4M5tUJ-CHn9GwO8.js → ArAgingDetailPage-DD4M5tUJ-BlYSsYlo.js} +1 -1
  18. package/dist/assets/{AttachmentView-Bp678glv-Bz7vnOLP.js → AttachmentView-Bp678glv-q5i7KaEA.js} +1 -1
  19. package/dist/assets/{BankAccountSection-DCHOrv1O-CHEMQ8hk.js → BankAccountSection-DCHOrv1O-5bvqtg8o.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-Bof6a4Ai-D6cSyNpo.js → BankAccountWarningSection-Bof6a4Ai-D_X_UYgf.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-KWPfd_oN-Cw1WYpDv.js → BankConnectionsSettingsPage-KWPfd_oN-Bz0yQRf6.js} +1 -1
  22. package/dist/assets/{BillDetailPage-D5FyJKQZ-F16Zazrc.js → BillDetailPage-D5FyJKQZ-BDKG0T5L.js} +1 -1
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-C17DUKc8-dVTzDWJq.js → BillPayApprovalRuleDetailPage-C17DUKc8-uDIFTPco.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-C6b0Dx9D-GKQByTVv.js → BillPayApprovalRulesPage-C6b0Dx9D-DhxHdUJx.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-BhbcKNjD-Dc50ymZA.js → BillPayPromoPage-BhbcKNjD-CvojuwFp.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-DFkYsW2C-ejvkAWu2.js → BillPaySetUpPage-DFkYsW2C-BYQSIQ2q.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-DQ-GDRoK-DLGZh1Tj.js → BillingSettingsPage-DQ-GDRoK-DXTBvn4K.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-DzTwDeIy-Ds5BqJGh.js → BillsBulkReviewDrawerPage-DzTwDeIy-DqYYhO09.js} +1 -1
  29. package/dist/assets/{BoxItem-a04JWA45-DJp9lW-u.js → BoxItem-a04JWA45-C1LNy4lJ.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-BCr_ObVJ-OqegkAuZ.js → BusinessVerificationPage-BCr_ObVJ-B8FzYlfZ.js} +1 -1
  31. package/dist/assets/{CardNumberSubText-B5ejHnml-CLY9anWS.js → CardNumberSubText-B5ejHnml-C3WWdznE.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DX_XsNhS-BMZOysYo.js → CashbackDetailPage-DX_XsNhS-BZkWZvJX.js} +1 -1
  33. package/dist/assets/{ChargeCardDetailPage-Ckbi7U9j-D_fwMr5K.js → ChargeCardDetailPage-Ckbi7U9j-DV5ro9Lj.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-CglfbPqr-D7muWz7z.js → ChargeCardListPage-CglfbPqr-DkdBMcPW.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-BxAeA97m-C-BUBRdZ.js → ChargeCardListTable-BxAeA97m-DhK6iFhq.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-BfsQUUYb-D4zqkYsh.js → ChargeCardPromoPage-BfsQUUYb-Dgj-8gSG.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-Bq953HsV-BJMN-xIh.js → ChargeCardSetupPage-Bq953HsV-J6EdPALC.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-B_5uvkaq-QS7pzZOg.js → ChargeCardStatementsPage-B_5uvkaq-GOsKFOMZ.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-Bivw83fy-L79bEW0e.js → ChargeCardUtils-Bivw83fy-DoKh_ipP.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-LcVAgdoT-D1Jb2EIj.js → ChaseOverlay-LcVAgdoT-9JR0Zv57.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-SpI62oU7-Q03dZELD.js → CheckDepositDrawerPage-SpI62oU7-ay-ttmIe.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-CKmPwC_x-DvM2BIk1.js → CollapsableReportTable-CKmPwC_x-QhRCql-r.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-BlLsNJaD-grOU-fb_.js → CompanyOfficerDetailsSection-BlLsNJaD-DFeWFucX.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-ElwK6uOD-uKq6JSMM.js → CompanyPassportCard-ElwK6uOD-F6JuKciR.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-B6mGjsJZ-QyXjNlOK.js → CompanyPassportPage-B6mGjsJZ-D4tm48-a.js} +1 -1
  46. package/dist/assets/{CompleteProfile-C1PIn6EM-BoaPrgBO.js → CompleteProfile-C1PIn6EM-Ir6BV2zK.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-CjhkW_Be-tE_S1zJ3.js → ConfettiBurst-CjhkW_Be-BI15fZq4.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-DHvmRSee-B7H_LsnK.js → CreateOrEditVendorPage-DHvmRSee-CxkBhh6M.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BIaTYAUf-Rj5ttUPd.js → CreditCardPaymentDrawerPage-BIaTYAUf-B7y-9nys.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-mUqReF9z-IZFYMes7.js → CreditCardPaymentPlgSection-mUqReF9z-BfHxZrsE.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-DS-pGcuE-DLCIpnvb.js → CurrencySelectField-DS-pGcuE-BGqiVYG1.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-CIOyRd8r-BQMewqvn.js → CustomerOnboardingActivationPage-CIOyRd8r-FLMbZZc8.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-Lh0xH_Pl-BrVAUFsT.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-A_l9Qen8-BtaF5eWl.js → CustomerOnboardingDetailPageSkeleton-A_l9Qen8-C1oSOHVg.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-D5BcbVEK-CYF4Do82.js → CustomerOnboardingNoStepsPage-D5BcbVEK-pj30prKU.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-N-8Zd7M_-BLw-RmQq.js → CustomerOnboardingPage-N-8Zd7M_-DNIqvHf3.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DZwacur5-CHyEWXN_.js → CustomerOnboardingProductSuitePage-DZwacur5-hGJUPhue.js} +1 -1
  58. package/dist/assets/{Dashboard-CQoNm84Z-CGt51QX0.js → Dashboard-CQoNm84Z-Cs2ZdkxJ.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-D4BoWobJ-DB51j3mA.js → DashboardReportPage-D4BoWobJ-yZjHxD4A.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-C6_OrohL-DcY3deV_.js → DepositAccTransactionItem-C6_OrohL-BGfaLs6w.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-Cxvs7tMg-CslTnL-f.js → DepositAccTransactionListPage-Cxvs7tMg-CZX95_vZ.js} +1 -1
  62. package/dist/assets/{DocumentSecurityBanner-Bo9Hgo-I-DBmSgZgH.js → DocumentSecurityBanner-Bo9Hgo-I-rtEtCt6Y.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-DzKlJFvy-D6rsk0GH.js → DomesticWireDetailsPage-DzKlJFvy-C-BExS4G.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-BoIyiJ9R-BzDhGwzl.js → DownloadOverlay-BoIyiJ9R-DsBfFiz4.js} +1 -1
  65. package/dist/assets/{DrawerPage-C_kxrXIc-CYxcqhiW.js → DrawerPage-C_kxrXIc-DVV_RfYu.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-auUWC3gB-DhunvsTv.js → EditPeoplePage-auUWC3gB-eVdswl0e.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-C-Lj-_YG-D3CWZXPH.js → EditReimbursementDetailPage-C-Lj-_YG-CD5iBKwa.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-Cqkhzu9O-CQdpKsUY.js → EntityDetailPage-Cqkhzu9O-D4nSYNpc.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-Dqgxknt6-CcorkWsq.js → EntitySummarySection-Dqgxknt6-BJXynL5O.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CEsyeJ9u-IlYsieJj.js → ExpenseAutomationOverviewPage-CEsyeJ9u-BgjJamdE.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-DxpK2JR5-b76Jf9fI.js → ExpenseAutomationPage-DxpK2JR5-Bno6HNVc.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-DBWJERD9-DkcgiQRL.js → ExpressPayPage-DBWJERD9-C99_7DYc.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-CwGJVCMk-c-nKLWL3.js → FeaturePreviewPage-CwGJVCMk-C88NXisE.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-BrJecw-e-CQdWJjWJ.js → FollowStepsSection-BrJecw-e-DxiUX8Lf.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-Duoi9mD_-Der2mhxZ.js → GlobalReviewListPage-Duoi9mD_-xu3W8826.js} +1 -1
  76. package/dist/assets/{HelpButton-C1djo0zO-BW6NBTNW.js → HelpButton-C1djo0zO-CxYW3QWQ.js} +1 -1
  77. package/dist/assets/{InformationCardStack-BE5eaq-x-7TOfUxxA.js → InformationCardStack-BE5eaq-x-jnl5_r_P.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-EzAsNm_U-Cm_xrDcd.js → InsightsCardStack-EzAsNm_U-DOxieK32.js} +1 -1
  79. package/dist/assets/{InsightsSection-nzKuS0T9-CcXyZxZ8.js → InsightsSection-nzKuS0T9-DxBuHfNE.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-45ETlpC6-ClhfPkcQ.js → IntegrationsSettingsPage-45ETlpC6-Ceg3xdUn.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-B21X5YFS-DWJjZuCw.js → InternationalWireSwiftDetailsPage-B21X5YFS-DUJjwzMe.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-BzagdPaG-Cl81RiNZ.js → InternationalWireVerificationPage-BzagdPaG-ETH-TFJ4.js} +1 -1
  83. package/dist/assets/{InviteFormPage-BNdBP-Mm-BdFbqKES.js → InviteFormPage-BNdBP-Mm-DdF7yrct.js} +1 -1
  84. package/dist/assets/{InvitePageListView-ChzmK7Rt-D29gFXI6.js → InvitePageListView-ChzmK7Rt-CsxcBmQK.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-DgqE2Y-0-DKu709Rv.js → InvitePeoplePage-DgqE2Y-0-CrbUVUxy.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-B8o-l15n-Da7WgU-0.js → InvoiceUploadSection-B8o-l15n-DT5xRRC2.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-BW0cXQqh-BmbmlACe.js → IssueChargeCardPage-BW0cXQqh-Am6endI_.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-BioQUVCV-fsudcvfQ.js → LabeledAddressValue-BioQUVCV-BQVyTN5W.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-Cw-p18du-D9T5QqTG.js → LabeledAddressValueField-Cw-p18du-ncMTWBsz.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-CGT7KsYZ-jRPtCjyI.js → LabeledControlledCheckBoxField-CGT7KsYZ-8Yk74ikH.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-nys9pbO0-0SJcSq-w.js → LabeledCreatableSingleSelectField-nys9pbO0-Cdtj6tvs.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-Y6TKpyZ8-CW27Za_m.js → LabeledDocumentField-Y6TKpyZ8-CxE5GTn1.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-DWP9oUzM-TYwr2dWi.js → LabeledDropDownFormattedTextField-DWP9oUzM-Bq2gS2Tu.js} +1 -1
  94. package/dist/assets/{LabeledText-QrjXGWwJ-Csl1kB9E.js → LabeledText-QrjXGWwJ-CNRYgiQJ.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BK9XCXKo-CRz-dhMo.js → LabeledUserSingleSelectWithSubtitlesField-BK9XCXKo-piBn824J.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-C2PAZOPW-ChSwcxj4.js → LabeledZeniRolesDropDownField-C2PAZOPW-BazOR2LB.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-BF6-BdWE-DO5i53f_.js → LinkJETransactionPage-BF6-BdWE-DwavLRyr.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-ZZ8Ap8Ls-CO5moJjL.js → LowBalancePopup-ZZ8Ap8Ls-8KOv0WBL.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage-BDXiOwx_-D5AHGKn1.js → MagicLinkACHDetailsPage-BDXiOwx_-CO5NrWbz.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-B1-CK91r-BBsb3LWh.js → MagicLinkDomesticWireDetailsPage-B1-CK91r-CLFCWolP.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-D2rnWzME-pHczJsmC.js → MagicLinkInternationalWireDetailsPage-D2rnWzME-CH-1IkqQ.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-IHajRicG-TvKR0rcg.js → MagicLinkSuccessPage-IHajRicG-BibYk803.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-CmTUPCA1-crT0_cjI.js → MagicLinkTitleSection-CmTUPCA1-CdDbl1jW.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-AiehjqI1-CrcmbjEa.js → MailingDetailsSection-AiehjqI1-DltTuNAp.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-COpKcBhx-C1b7HyPI.js → MeetingCalenderPopup-COpKcBhx-DUhr4aqa.js} +1 -1
  106. package/dist/assets/{Menu-frAXxk4e-ChxiZJil.js → Menu-frAXxk4e-CEl4TWuB.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BtC6C9fL-CIbylXW-.js → MyBankConnectionsSettingsPage-BtC6C9fL-Du0eSPRF.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-tXIpyxdq-DyLbYr-a.js → MyPendingActivationChargeCardListPage-tXIpyxdq-Be08cRIN.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BmMskLyK-BRbEv4qP.js → MyProfileSettingsPage-BmMskLyK-BhR2LYzK.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-ByLynfu6-DkhTP5l5.js → NavBarWithPicker-ByLynfu6-BwveajND.js} +1 -1
  111. package/dist/assets/{NavigationArrow-D5-YpdfE-BYBuxDoB.js → NavigationArrow-D5-YpdfE-BwY9x4L-.js} +1 -1
  112. package/dist/assets/{NavigationDots-MA8SVlUT-BNaROjbH.js → NavigationDots-MA8SVlUT-xHbUxadi.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DtTW2Du8-teWW5fR7.js → NewGlobalMerchantPage-DtTW2Du8-DMQT2zFb.js} +1 -1
  114. package/dist/assets/{NoDataChart-BdzVnx59-Zwl7GRg0.js → NoDataChart-BdzVnx59-oKIht6u7.js} +1 -1
  115. package/dist/assets/{NoDataTable-B4J5Ou18-BjRs61V8.js → NoDataTable-B4J5Ou18-Cw0Ivws_.js} +1 -1
  116. package/dist/assets/{NotFoundPage-BeAXQOme-HRJfFoZt.js → NotFoundPage-BeAXQOme-CuhCQaCm.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-CRZRet42-B4tscA88.js → NotificationSettingsPage-CRZRet42-ChT5Efdt.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-CkSDaMij-aj-ed0aI.js → NotificationsListConfig-CkSDaMij-BWI9bnS_.js} +1 -1
  119. package/dist/assets/{NotificationsPage-Dqe96fU8-DGXpNPVr.js → NotificationsPage-Dqe96fU8-B4GRmHU9.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-CXtkN87m-D6OjOLM9.js → OpExByVendorPage-CXtkN87m-9RF5RbBE.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Cy_Jxf8N-B2CxgCWd.js → OverlayContainerPage-Cy_Jxf8N-Bv7YPFQu.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-DTOqkynU-9NyuYxx1.js → PandLWithForecastPage-DTOqkynU-DcIpR3TG.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-C6WFeB3A-C9tSnFrF.js → PaymentAccountSetupBillingAddressSection-C6WFeB3A-JhDc6t0k.js} +1 -1
  124. package/dist/assets/{PeoplePage-D-j114xg-s5ngzrYI.js → PeoplePage-D-j114xg-BxamB_kT.js} +1 -1
  125. package/dist/assets/{PortfolioAllocationFormPage-C4XzSjzr-AaZTXsTp.js → PortfolioAllocationFormPage-C4XzSjzr-Ckb17xct.js} +1 -1
  126. package/dist/assets/{PortfolioDetails-Bbfo0XDo-F8wi_TkN.js → PortfolioDetails-Bbfo0XDo-CpIyByD0.js} +1 -1
  127. package/dist/assets/{ProductsCarousel-COUx0Xdj-Bk25WJ5z.js → ProductsCarousel-COUx0Xdj-C589g0zM.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-DG1CAZvU-Kp-BaaPo.js → PromoBaseCards-DG1CAZvU-DDe9HUmw.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-DLVcifji-BzsFl8lU.js → QBOConnectionDialog-DLVcifji-0Jo7Zt8G.js} +1 -1
  130. package/dist/assets/{QBOSetupSection-BeRZZ-Q_-a6rhf4W-.js → QBOSetupSection-BeRZZ-Q_-sC98B-t_.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CrbiufS3-Bj0-a-7-.js → ReimbursementApprovalRuleDetailPage-CrbiufS3-CDL6aFMg.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-CTk2aZMz-oZhsGYfa.js → ReimbursementApprovalRulesPage-CTk2aZMz-P7YlSIWb.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-BofsP0W--DVgChjvg.js → ReimbursementDetailPage-BofsP0W--3SXuCoLt.js} +1 -1
  134. package/dist/assets/{ReimbursementPromoPage-CA2cUBsx-DqpwfsT0.js → ReimbursementPromoPage-CA2cUBsx-DTv3uM9b.js} +1 -1
  135. package/dist/assets/{ReimbursementSetUpPage-Em6S1wkj-DAxU1I0b.js → ReimbursementSetUpPage-Em6S1wkj-DUaBVZlT.js} +1 -1
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DpWChhvB-CNq5fdbL.js → ReimbursementsBulkReviewDrawerPage-DpWChhvB-Bbi3QmlG.js} +1 -1
  137. package/dist/assets/{ReloadCard-CZ1Ix5em-CJhVpNi9.js → ReloadCard-CZ1Ix5em-ntwCW2pN.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-BRA3CT_O-BWHSw_d5.js → ReportTableViewSelector-BRA3CT_O-5B_3yPmG.js} +1 -1
  139. package/dist/assets/{ReportsPage-CauV3wnZ-Bfok01xk.js → ReportsPage-CauV3wnZ-JaeNla79.js} +1 -1
  140. package/dist/assets/{RevenueChart-BeM_1hYw-DP9fkCbH.js → RevenueChart-BeM_1hYw-BC40z0R8.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-C5xC8Cf1-Bcj2cFMw.js → ReviewDetailsPage-C5xC8Cf1-BAevb1zN.js} +1 -1
  142. package/dist/assets/{ReviewOverlay-DdWa7GLG-YdWdWayu.js → ReviewOverlay-DdWa7GLG-BGKsJw6X.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-BP8MTZdU-BOm9Us2_.js → RoleWithToolTip-BP8MTZdU-DnEd53cN.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BlhhW9A6-Cgf6Hq7_.js → ScheduleDetailsFixedAssetsPage-BlhhW9A6-ttxCT2nP.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsPage-BKWKZuAL-CQ6iSQsN.js → ScheduleDetailsPage-BKWKZuAL-Dj0cWygj.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-BzWPTqDM-Dgu5c0RS.js → ScheduleSequenceTable-BzWPTqDM-6FAFWl-T.js} +1 -1
  147. package/dist/assets/{ScreenRoutes-BBcvidtT.js → ScreenRoutes-DjRy_uCy.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-Trj1x2HL-CiAxSNYR.js → SetUpAccountSection-Trj1x2HL-BZyG0FUR.js} +1 -1
  149. package/dist/assets/{SetUpDefaultSection-BQzNGjO7-an74W3Da.js → SetUpDefaultSection-BQzNGjO7-C6ny-1cl.js} +1 -1
  150. package/dist/assets/{SignIn-Duk9PNwU-Y2eo5FDG.js → SignIn-Duk9PNwU-XgHu7-OU.js} +1 -1
  151. package/dist/assets/{SignInScreen-BDl851xo.js → SignInScreen-BZwFN3GK.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-CREdM633-Cg0NFbb7.js → SpendManagementListViewPage-CREdM633-X97fArWe.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-BZ6ISWXe-BYNegFz5.js → SpendManagementPerTabPage-BZ6ISWXe--gdxlwsD.js} +1 -1
  154. package/dist/assets/{SpendManagementSection-bMsztUap-upI-ZdzC.js → SpendManagementSection-bMsztUap-ChI9xiC5.js} +1 -1
  155. package/dist/assets/{SpendMgmtSetupAccountSection-Btdtp-ry-M7exC_NJ.js → SpendMgmtSetupAccountSection-Btdtp-ry-25hbeX41.js} +1 -1
  156. package/dist/assets/{StatementItem-XLqlrHIu-VoU4RUpG.js → StatementItem-XLqlrHIu-VUIrNJz9.js} +1 -1
  157. package/dist/assets/{StatementsPage-DWiXiOFU-DZPVh_4x.js → StatementsPage-DWiXiOFU-DpX-5t-Y.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-D1XZ-pbx-DwwsmfkA.js → StatusSwitcher-D1XZ-pbx-cB_dyto4.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-Bt3F7ANv-e4DBICdr.js → SubTabSwitcher-Bt3F7ANv-HbYWozk_.js} +1 -1
  160. package/dist/assets/{SummaryCard-edbbHOmb-DIbjh5sC.js → SummaryCard-edbbHOmb-BEN1lpgF.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-BhtJBdco-CawcFnLk.js → TaskManagementPage-BhtJBdco-BwmkQiB4.js} +1 -1
  162. package/dist/assets/{TimeRangeSwitcher-D9KzhRYO-DSUt4L30.js → TimeRangeSwitcher-D9KzhRYO-CGt3UmvC.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcher-CbEHKZvd-CUipNC15.js → TimeframeSwitcher-CbEHKZvd-BCN5TvqV.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-Cb91RXpD-Bqbdu9xs.js → TimeframeSwitcherWithToggle-Cb91RXpD-DUY2ERxI.js} +1 -1
  165. package/dist/assets/{TopExCard-DD9Rf9T6-CfNVkG6m.js → TopExCard-DD9Rf9T6-CUD3JVc3.js} +1 -1
  166. package/dist/assets/{TopExDetailPage-DaDuwFrj-BOsQHlTA.js → TopExDetailPage-DaDuwFrj-ClnsDrKm.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-0fIW4o-6-BKhKFulx.js → TransactionDetailPage-0fIW4o-6-BtL9d2ga.js} +1 -1
  168. package/dist/assets/{TransactionList-CLjBadiP-By9OtkVt.js → TransactionList-CLjBadiP-DaI1JPM6.js} +1 -1
  169. package/dist/assets/{TransactionListBig-CwBxP1xB-DEm91bPU.js → TransactionListBig-CwBxP1xB-Clk1cQcr.js} +1 -1
  170. package/dist/assets/{TransactionListPage-S1nTM7Yy-Hu_PcxrN.js → TransactionListPage-S1nTM7Yy-BXDsYhyh.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-CTTTAais-CKKUnVWe.js → TransactionVendorDetailPage-CTTTAais-D9_4MDSM.js} +1 -1
  172. package/dist/assets/{TransferDrawerPage-BJDNWagE-B5RBpIT8.js → TransferDrawerPage-BJDNWagE-ClPD7-YE.js} +1 -1
  173. package/dist/assets/{TreasuryOverviewPage-DB-ZH19K-0cVLv_tv.js → TreasuryOverviewPage-DB-ZH19K-DqpiFB-5.js} +1 -1
  174. package/dist/assets/{TreasuryPromoPage-3MwRPpCt-B5X2lU4M.js → TreasuryPromoPage-3MwRPpCt-BfvkdVaO.js} +1 -1
  175. package/dist/assets/{TreasurySetupPage--G4JCzdh-Ck5w0LPU.js → TreasurySetupPage--G4JCzdh-DA6_HWAL.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-DBykLGfz-gFLjSnAI.js → TreasuryStatementsPage-DBykLGfz-C9eS4qdh.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-DgbrzE9u-BsWgo8r5.js → TreasuryTaxLetterPage-DgbrzE9u-BEbCeRNe.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-ByM1UIiU-CjSaFqgC.js → TreasuryTransferOrReviewPage-ByM1UIiU-Bl3BH8HM.js} +1 -1
  179. package/dist/assets/{TrendChart-B0CS3MXT-D7qhkgQT.js → TrendChart-B0CS3MXT-D4ZaQVdh.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-D4OAA6yK-BF-AbaMY.js → TrendWithTransactions-D4OAA6yK-CZGys78m.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-C6jaWqrE-zTG-_1nm.js → UncategorizedAccountsMappingPage-C6jaWqrE-C-92ar8F.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-5LOvIFvr-Bzw8mu6B.js → UnitIntegrationPage-5LOvIFvr-BluS5BB9.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-CLQLrn0v-SNsFu9LY.js → UploadAdditionalDocumentOverlay-CLQLrn0v-DY-77k9g.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-BOl520xa-LnECkqk5.js → Vendor2FAPopup-BOl520xa-Dt6F8E1q.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-B5jKUOjo-CQSiDv6a.js → VendorACHDetailsPage-B5jKUOjo-B4yUV9Ye.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-B0GRXPKg--VPcZWOw.js → VendorDetailPage-B0GRXPKg-CA80qYWU.js} +1 -1
  187. package/dist/assets/{VendorDomesticWireDetailsPage-CeI3QihK-q_cf3oNF.js → VendorDomesticWireDetailsPage-CeI3QihK-B8yONSic.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-aNGSdZBf-MeHUgDES.js → VendorFiling1099EditablePage-aNGSdZBf-CyZQ-IxR.js} +1 -1
  189. package/dist/assets/{VendorFirstReviewPage-CjwnZLcm-DmkymrJ0.js → VendorFirstReviewPage-CjwnZLcm-Cs4x3rcX.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-w-46Xxg--xMskWvbV.js → VendorInternationalWireDetailsPage-w-46Xxg--Cvm17HTp.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C5dogij9-DD3MG-8Z.js → VendorInternationalWireSwiftDetailsPage-C5dogij9-Dga7zQTh.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-DBYoP6us-C4im8TRF.js → VendorsAccountsSection-DBYoP6us-DpK6bEzn.js} +1 -1
  193. package/dist/assets/{VerifyDevice-C-ZVbaIJ-BL0Q3Y3x.js → VerifyDevice-C-ZVbaIJ-BKz0GUVP.js} +1 -1
  194. package/dist/assets/{WarningsDrawerPage-CZcR7kH4-sqfZfsTI.js → WarningsDrawerPage-CZcR7kH4-CIXMQAfX.js} +1 -1
  195. package/dist/assets/{ZeniAccountDetailPage-C-NQEE2--DiLlSCD5.js → ZeniAccountDetailPage-C-NQEE2--BEYCTo6P.js} +1 -1
  196. package/dist/assets/{ZeniAccountListViewPage-Cb8Ptf-w-Bz8qB5Gm.js → ZeniAccountListViewPage-Cb8Ptf-w-pA8-UWgA.js} +1 -1
  197. package/dist/assets/{ZeniAccountNavBarPieces-DX2iXF2E-CQG9bWdR.js → ZeniAccountNavBarPieces-DX2iXF2E-BAAXHmSZ.js} +1 -1
  198. package/dist/assets/{ZeniAccountPromoPage-D5ihjbrM-uye9J5Yp.js → ZeniAccountPromoPage-D5ihjbrM-CXHTXM3S.js} +1 -1
  199. package/dist/assets/{ZeniAccountSetupPage-BRxz_tnh-hDbWbkKw.js → ZeniAccountSetupPage-BRxz_tnh-CYEsC3w5.js} +1 -1
  200. package/dist/assets/{ZeniCopyright-Bi82glrb-Dz0CNsex.js → ZeniCopyright-Bi82glrb-BRrA0AqO.js} +1 -1
  201. package/dist/assets/{ZeniTransferAmountSlider-B4d4bp7D-Cs4p2KhU.js → ZeniTransferAmountSlider-B4d4bp7D-Bp4AH9yD.js} +1 -1
  202. package/dist/assets/{analyticsHelper-D3DK7bgU-BvVFcTDm.js → analyticsHelper-D3DK7bgU-D0sMi45U.js} +1 -1
  203. package/dist/assets/{analyticsHelper-DijVlDk5.js → analyticsHelper-pUiXW9f6.js} +1 -1
  204. package/dist/assets/{chartTypes-DJY-6KK0-Bzq8Fcov.js → chartTypes-DJY-6KK0-SGOoEyJZ.js} +1 -1
  205. package/dist/assets/{commonDimensions-DRK1vfDX-CO7PCzy1.js → commonDimensions-DRK1vfDX-BlL6juoL.js} +1 -1
  206. package/dist/assets/{detailCommon-6K-6m9pv-2y9fI_2t.js → detailCommon-6K-6m9pv-1H1N15Tv.js} +1 -1
  207. package/dist/assets/{downloadPdf-DAA4T-qo-CPXN54rf.js → downloadPdf-DAA4T-qo-DGFaMd6S.js} +1 -1
  208. package/dist/assets/{index-CIAgrDi2.js → index-CiKxqrxk.js} +3 -3
  209. package/dist/assets/{mapLoadingInProgressToTreeNode-BAlOrI07-CQVT-QlQ.js → mapLoadingInProgressToTreeNode-BAlOrI07-Bu5AjmSW.js} +1 -1
  210. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bk-EXs-E-B9fPZZTu.js → mapSectionWithAcOnlyToTreeNode-Bk-EXs-E-CmXnWtv4.js} +1 -1
  211. package/dist/assets/{mapSpacerToTreeNode-Cxd9BEJr--PDlNxOC.js → mapSpacerToTreeNode-Cxd9BEJr-Bo_chRJz.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-BzFUtqqU-DR76PT1e.js → mapTimeframeBalancesToTreeNode-BzFUtqqU-BVi3Z0h1.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cf8fsAZJ-D1uR1QLu.js → mapTimeframeBalancesToTreeNode-Cf8fsAZJ-BkPpGHJf.js} +1 -1
  214. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CZMzZg1q-oHDpC_ju.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CZMzZg1q-DwuR5tyN.js} +1 -1
  215. package/dist/assets/{play-icon-DY_hSiAf-DitmQkz7.js → play-icon-DY_hSiAf-56dnsDLb.js} +1 -1
  216. package/dist/assets/{toCOABalancesWithID-BaqBVqJ_-1rnUe3A4.js → toCOABalancesWithID-BaqBVqJ_-CGRkqNDS.js} +1 -1
  217. package/dist/assets/{toChartData-7MYPev1U-zJcYDtq1.js → toChartData-7MYPev1U-_Gg3mLDi.js} +1 -1
  218. package/dist/assets/{treasuryColorHelper-CDhLDRLr-CltoUNO8.js → treasuryColorHelper-CDhLDRLr-COVWjAtV.js} +1 -1
  219. package/dist/assets/{uploadAttachment-DqCoxBNU-CxpASWHI.js → uploadAttachment-DqCoxBNU-m18_9GhV.js} +1 -1
  220. package/dist/assets/{uploadReceipts-CU1mDxNv-0vPSSd-N.js → uploadReceipts-CU1mDxNv-D_CYTfGX.js} +1 -1
  221. package/dist/index.html +1 -1
  222. package/package.json +1 -1
  223. package/dist/assets/CustomerOnboardingContainerPage-Lh0xH_Pl-cw9bBAdD.js +0 -1
@@ -1,4 +1,4 @@
1
- import{C as z,s as U,X as q,B as D,a as M,a2 as W,j as o,V as G,c6 as X,aV as Z,F as H,a4 as J,o as c}from"./index-CIAgrDi2.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-BrJecw-e-CQdWJjWJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new z(U[2],U[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:A=!1,onSaveRuleClick:_,onSaveRuleSuccess:S}){const I=q(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const V=v.handleSubmit(()=>{_()}),F=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:B})=>{if(B!=null&&d!=null){const O=G(d);X(()=>F(B,O))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:V,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:A,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
1
+ import{C as z,s as U,X as q,B as D,a as M,a2 as W,j as o,V as G,c6 as X,aV as Z,F as H,a4 as J,o as c}from"./index-CiKxqrxk.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-BrJecw-e-DxiUX8Lf.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new z(U[2],U[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:A=!1,onSaveRuleClick:_,onSaveRuleSuccess:S}){const I=q(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const V=v.handleSubmit(()=>{_()}),F=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:B})=>{if(B!=null&&d!=null){const O=G(d);X(()=>F(B,O))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:V,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:A,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{X as I,B as y,j as t,aV as D,i as U,_ as b,C as r,n as B,a0 as j,bR as E,bT as H,bU as G,o as i,ct as Q,s as l,ao as V,Q as z,an as q,d as S,cq as O,aO as _,v as F}from"./index-CIAgrDi2.js";import{n as o,b as X}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.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")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=X.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:w,approvalRuleId:u}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(u)},onCancelClick:()=>{x(!1)}};return t.jsxs(Y,{windowSize:n,isLastSection:f,children:[t.jsxs(Z,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(K,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(C,{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(u)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:w.length===1,windowSize:n,children:w.map((d,M)=>t.jsxs(ie,{isSingleStep:w.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(R,{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(R,{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(G,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(H,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Y=o.div`
1
+ import{X as I,B as y,j as t,aV as D,i as U,_ as b,C as r,n as B,a0 as j,bR as E,bT as H,bU as G,o as i,ct as Q,s as l,ao as V,Q as z,an as q,d as S,cq as O,aO as _,v as F}from"./index-CiKxqrxk.js";import{n as o,b as X}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.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")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=X.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:w,approvalRuleId:u}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(u)},onCancelClick:()=>{x(!1)}};return t.jsxs(Y,{windowSize:n,isLastSection:f,children:[t.jsxs(Z,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(K,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(C,{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(u)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:w.length===1,windowSize:n,children:w.map((d,M)=>t.jsxs(ie,{isSingleStep:w.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(R,{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(R,{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(G,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(H,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Y=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{y as se,X as b,a2 as le,l as j,B as L,j as e,aV as oe,K as U,_ as h,b as x,o as s,Y as te,c3 as re,u as A,a6 as D,M as ae,C as ne,d as u,c5 as ce,a7 as de,ap as me,s as pe}from"./index-CIAgrDi2.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-COpKcBhx-C1b7HyPI.js";import{f as ge,C as E}from"./play-icon-DY_hSiAf-DitmQkz7.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const V="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{y as se,X as b,a2 as le,l as j,B as L,j as e,aV as oe,K as U,_ as h,b as x,o as s,Y as te,c3 as re,u as A,a6 as D,M as ae,C as ne,d as u,c5 as ce,a7 as de,ap as me,s as pe}from"./index-CiKxqrxk.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-COpKcBhx-DUhr4aqa.js";import{f as ge,C as E}from"./play-icon-DY_hSiAf-56dnsDLb.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const V="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 Oe,X as _e,a2 as V,a as De,c6 as Re,B as Ue,l as He,a8 as X,j as t,cL as ze,_ as Le,d as Ne,C as u,aV as Me,i as qe,F as Ge,d1 as Je,aR as Ke,d2 as Qe,bw as Xe,d3 as Ye,a4 as Ze,o as L,s as a,n as et,b4 as tt}from"./index-CIAgrDi2.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{I as it}from"./HelpButton-C1djo0zO-BW6NBTNW.js";import"./SetUpAccountSection-Trj1x2HL-CiAxSNYR.js";import{K as H}from"./SetUpDefaultSection-BQzNGjO7-an74W3Da.js";import{f as nt}from"./SpendMgmtSetupAccountSection-Btdtp-ry-M7exC_NJ.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-CLQLrn0v-SNsFu9LY.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-COpKcBhx-C1b7HyPI.js";import"./ChaseOverlay-LcVAgdoT-D1Jb2EIj.js";import"./ChargeCardUtils-Bivw83fy-L79bEW0e.js";import"./CreditCardPaymentPlgSection-mUqReF9z-IZFYMes7.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",It=({billPaySetupView:e,isDisabled:w,billpayApprovalView:$,meetingUrl:v,showIntlWiseWidget:s,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:N,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=_e(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:W,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:q}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=$,O=W.link_account.updateStatus,_=W.update_account.updateStatus,B=V(p),J=V(b.fetchState),K=V(O.fetchState),Q=V(_.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&B==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,B]),m.useEffect(()=>{(B==="In-Progress"&&p==="Completed"||K==="In-Progress"&&O.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&x.reset(z(e))},[B,p,x,e,K,O.fetchState,Q,_.fetchState]);const Be=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Ie=async(P,F)=>{const o=F[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=q.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.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,r.id,r.accType)}}};m.useEffect(()=>{const P=x.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Ie(o,F))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&N()},[N,J,b.fetchState]);const{commonSetUp:Fe,spendManagement:Ve}=Ue.getLocalizedStrings(),{setUp:d}=Fe,{billPaySetup:l}=Ve.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:l.setupSubTitle,$e=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new X(C.colors.brandColorJadeLight):new X(C.colors.brandColorJadeDark),We=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Ne.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.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(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),$e?t.jsx(dt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...x,children:t.jsx("form",{id:Z(Y),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:We,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:q,plaidConnectionDetails:W,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:I},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:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},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"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ze,{formId:Z(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
1
+ import{u as Oe,X as _e,a2 as V,a as De,c6 as Re,B as Ue,l as He,a8 as X,j as t,cL as ze,_ as Le,d as Ne,C as u,aV as Me,i as qe,F as Ge,d1 as Je,aR as Ke,d2 as Qe,bw as Xe,d3 as Ye,a4 as Ze,o as L,s as a,n as et,b4 as tt}from"./index-CiKxqrxk.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{I as it}from"./HelpButton-C1djo0zO-CxYW3QWQ.js";import"./SetUpAccountSection-Trj1x2HL-BZyG0FUR.js";import{K as H}from"./SetUpDefaultSection-BQzNGjO7-C6ny-1cl.js";import{f as nt}from"./SpendMgmtSetupAccountSection-Btdtp-ry-25hbeX41.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-CLQLrn0v-DY-77k9g.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-COpKcBhx-DUhr4aqa.js";import"./ChaseOverlay-LcVAgdoT-9JR0Zv57.js";import"./ChargeCardUtils-Bivw83fy-DoKh_ipP.js";import"./CreditCardPaymentPlgSection-mUqReF9z-BfHxZrsE.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",It=({billPaySetupView:e,isDisabled:w,billpayApprovalView:$,meetingUrl:v,showIntlWiseWidget:s,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:N,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=_e(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:W,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:q}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=$,O=W.link_account.updateStatus,_=W.update_account.updateStatus,B=V(p),J=V(b.fetchState),K=V(O.fetchState),Q=V(_.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&B==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,B]),m.useEffect(()=>{(B==="In-Progress"&&p==="Completed"||K==="In-Progress"&&O.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&x.reset(z(e))},[B,p,x,e,K,O.fetchState,Q,_.fetchState]);const Be=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Ie=async(P,F)=>{const o=F[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=q.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.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,r.id,r.accType)}}};m.useEffect(()=>{const P=x.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Ie(o,F))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&N()},[N,J,b.fetchState]);const{commonSetUp:Fe,spendManagement:Ve}=Ue.getLocalizedStrings(),{setUp:d}=Fe,{billPaySetup:l}=Ve.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:l.setupSubTitle,$e=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new X(C.colors.brandColorJadeLight):new X(C.colors.brandColorJadeDark),We=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Ne.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.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(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),$e?t.jsx(dt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...x,children:t.jsx("form",{id:Z(Y),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:We,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:q,plaidConnectionDetails:W,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:I},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:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},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"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ze,{formId:Z(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=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,c6 as Pe,a8 as k,B as be,j as t,C as P,aV as Ae,i as Ie,F as ve,aR as je,c7 as ke,a4 as $e,o as s,h3 as Be,cz as Ve,cA as Oe,s as b,n as Te,gi as ze,Q as Ee,d as Le}from"./index-CIAgrDi2.js";import{b as F,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as H,e as Me}from"./PaymentAccountSetupBillingAddressSection-C6WFeB3A-C9tSnFrF.js";import{O as Re}from"./SetUpAccountSection-Trj1x2HL-CiAxSNYR.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-BQzNGjO7-an74W3Da.js";import"./ChaseOverlay-LcVAgdoT-D1Jb2EIj.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])},Fe={title:new Ee("standardSemiBold","largeSemiBold")},W="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:U,stripeKey:K,googleAPIKey:q,companyId:G,onUpdateAccountClick:J,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:B},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=B.fetchState==="In-Progress"||B.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:_(a),values:_(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),O=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=Ve(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:Oe(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const T=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:z}=be.getLocalizedStrings(),ge=z.section.subTitle,{text:ye,subText:Se}=he,E=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;E&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:E===!0,icon:{element:t.jsx("img",{src:H(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:H(L).name}),color:new k(T)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=F.useState(!1);return t.jsxs(We,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:z.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(He,{windowSize:i,children:[t.jsx(_e,{windowSize:i,children:ge}),ue?t.jsx(Ne,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:N(W),onSubmit:pe,children:t.jsxs(Ue,{windowSize:i,children:[t.jsx(Re,{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:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:T},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:R}),Ke(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:N(W),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:O?.fetchState==="In-Progress",isDisabled:O?.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:U.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:R,setCardSetupInProgress:we})]})},_=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]:Be(n,e.subscriptionBillingAddress)[n]}},He=r.div`
1
+ import{u as fe,X as Ce,a as xe,c6 as Pe,a8 as k,B as be,j as t,C as P,aV as Ae,i as Ie,F as ve,aR as je,c7 as ke,a4 as $e,o as s,h3 as Be,cz as Ve,cA as Oe,s as b,n as Te,gi as ze,Q as Ee,d as Le}from"./index-CiKxqrxk.js";import{b as F,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as H,e as Me}from"./PaymentAccountSetupBillingAddressSection-C6WFeB3A-JhDc6t0k.js";import{O as Re}from"./SetUpAccountSection-Trj1x2HL-BZyG0FUR.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-BQzNGjO7-C6ny-1cl.js";import"./ChaseOverlay-LcVAgdoT-9JR0Zv57.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])},Fe={title:new Ee("standardSemiBold","largeSemiBold")},W="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:U,stripeKey:K,googleAPIKey:q,companyId:G,onUpdateAccountClick:J,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:B},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=B.fetchState==="In-Progress"||B.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:_(a),values:_(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),O=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=Ve(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:Oe(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const T=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:z}=be.getLocalizedStrings(),ge=z.section.subTitle,{text:ye,subText:Se}=he,E=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;E&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:E===!0,icon:{element:t.jsx("img",{src:H(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:H(L).name}),color:new k(T)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=F.useState(!1);return t.jsxs(We,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:z.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(He,{windowSize:i,children:[t.jsx(_e,{windowSize:i,children:ge}),ue?t.jsx(Ne,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:N(W),onSubmit:pe,children:t.jsxs(Ue,{windowSize:i,children:[t.jsx(Re,{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:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:T},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:R}),Ke(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:N(W),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:O?.fetchState==="In-Progress",isDisabled:O?.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:U.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:R,setCardSetupInProgress:we})]})},_=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]:Be(n,e.subscriptionBillingAddress)[n]}},He=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{B as V,j as b,bR as q,bT as W,bU as M,jl as z,l as G,ab as X}from"./index-CIAgrDi2.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as Y}from"./ReviewOverlay-DdWa7GLG-YdWdWayu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.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}}=V.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:w}=t,u=i==="review",[B,h]=_.useState(!1),[s,v]=_.useState(T(t,u)),[p,j]=_.useState(u),[P,E]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),P===s.length&&p&&(j(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(T(t,!1)),()=>{clearInterval(x)}),[s.length,P,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=H(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},F={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,Z(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=J(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,w),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"}:{}},L={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:[B?b.jsx(q,{titleComponent:b.jsx(M,{children:f.title}),descriptionComponent:b.jsx(W,{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:L,hideCancel:I}})]})},T=(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&&G.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},H=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:w,do_:u,does:B}=n.texts,h=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:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:w)}`):(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{B as V,j as b,bR as q,bT as W,bU as M,jl as z,l as G,ab as X}from"./index-CiKxqrxk.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as Y}from"./ReviewOverlay-DdWa7GLG-BGKsJw6X.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.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}}=V.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:w}=t,u=i==="review",[B,h]=_.useState(!1),[s,v]=_.useState(T(t,u)),[p,j]=_.useState(u),[P,E]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),P===s.length&&p&&(j(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(T(t,!1)),()=>{clearInterval(x)}),[s.length,P,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=H(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},F={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,Z(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=J(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,w),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"}:{}},L={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:[B?b.jsx(q,{titleComponent:b.jsx(M,{children:f.title}),descriptionComponent:b.jsx(W,{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:L,hideCancel:I}})]})},T=(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&&G.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},H=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:w,do_:u,does:B}=n.texts,h=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:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:w)}`):(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,_ as b,o as r}from"./index-CIAgrDi2.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-DRK1vfDX-CO7PCzy1.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,_ as b,o as r}from"./index-CiKxqrxk.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-DRK1vfDX-BlL6juoL.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,a2 as we,j as i,B as Te,b as M,a as it,ck as at,l as L,A as st,c6 as nt,ab as ot,a1 as rt,K as lt,aV as ct,_ as dt,c7 as mt,bR as pt,bT as ut,bU as ft,i as yt,F as ht,a4 as gt,o as r,C as P,M as ke,fE as xt,fc as Ce,cz as St,c3 as wt,a3 as Ct,n as $e,Q as bt,g as vt,s as $}from"./index-CIAgrDi2.js";import{b as j,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-BlLsNJaD-grOU-fb_.js";import{r as kt}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-Cw-p18du-D9T5QqTG.js";import"./LabeledCreatableSingleSelectField-nys9pbO0-0SJcSq-w.js";import"./LabeledDocumentField-Y6TKpyZ8-CW27Za_m.js";import"./DocumentSecurityBanner-Bo9Hgo-I-DBmSgZgH.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,$[3]),subTitlePaddingBottom:new P($[3],$[3]),verificationDetailsRowGap:new P(12,$[5],$[5]),termsPaddingLeftRight:new P($[0],$[3])},$t={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:H,onRegisteredAddressClick:Ne,onBackClick:V,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Oe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Fe,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(M,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(M,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(M,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(M,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,W]=j.useState(!1),[G,se]=j.useState("save"),[Z,Ge]=j.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:jt(t,B,E,A)}),{isValid:Me}=u.formState,Q=F?.company.company.companyBillPayInfo,X=F?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?X?.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,k=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,J=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Y=l?.primaryContactLocalData,ge=Y?.firstName,xe=Y?.lastName,Se=Y?.email;a!=null&&f!=null&&C!=null&&k!=null&&c!=null&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&J!=null&&fe!=null&&ye!=null&&ue!=null&&J!=null&&he!=null&&ge!=null&&xe!=null&&Se!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:k,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:J,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??"",k=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!k?((!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||q!=null&&q?.length>0)return u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},Xe=u.handleSubmit(()=>{if(G!=="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"&&Me&&(We(),Ve?.(T))}),qe=async(e,a)=>{e.includes(b)?Fe?.(a[b]):e.includes(v)&&Ae?.(a[v])},Ke=j.useCallback(st((e,a)=>{qe(e,a)},300),[]);j.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>Ke(c,a))});return()=>{e.unsubscribe()}});const ne=we(t.companyDetailsLocalData?.addressStatus);j.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),q=oe?.map(e=>e.user),Je=oe?.map(e=>e.role),Ye={onOkClick:()=>{W(!1),V();const e=[],a=F?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Je?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach(k=>{C.includes(k)||e.push(k)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{W(!1)}},He=ot(rt(p),p,Nt.currencySymbol).toUpperCase(),K=N?.code==="pending_review"||N?.code==="verified";return y==="zeni_treasury"&&N?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Qt,{children:[i.jsxs(Xt,{children:[i.jsx(kt,{}),i.jsx(qt,{windowSize:m,children:s.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):i.jsxs(Ot,{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):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:ze,rightSideComponent:h?i.jsx(Kt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):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:Ye}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||S===!1)&&i.jsx(Ft,{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:Xe,children:[h&&S===!0&&i.jsxs(Vt,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:K?s.businessVerificationDetails:s.verifyBusinessDetails}),!K&&i.jsx(Ut,{children:i.jsxs(Gt,{children:[i.jsx(Mt,{}),i.jsx(Wt,{})]})})]}),i.jsx(Ie,{isReadonly:K,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:q??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:I,filesEndPoint:o,authParams:z,isPopupOpen:Z,openPopup:Ge,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Oe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":I,fileProps:{authParams:z,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:Ne,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?i.jsx(zt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?X?.companyVerificationStatus?.code!=="pending_review"&&X?.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:G==="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:G==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[T],a=l?.primaryContactLocalData;G!=="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]})},jt=(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`,Ot=d.div`
1
+ import{u as et,X as tt,a2 as we,j as i,B as Te,b as M,a as it,ck as at,l as L,A as st,c6 as nt,ab as ot,a1 as rt,K as lt,aV as ct,_ as dt,c7 as mt,bR as pt,bT as ut,bU as ft,i as yt,F as ht,a4 as gt,o as r,C as P,M as ke,fE as xt,fc as Ce,cz as St,c3 as wt,a3 as Ct,n as $e,Q as bt,g as vt,s as $}from"./index-CiKxqrxk.js";import{b as j,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-BlLsNJaD-DFeWFucX.js";import{r as kt}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-Cw-p18du-ncMTWBsz.js";import"./LabeledCreatableSingleSelectField-nys9pbO0-Cdtj6tvs.js";import"./LabeledDocumentField-Y6TKpyZ8-CxE5GTn1.js";import"./DocumentSecurityBanner-Bo9Hgo-I-rtEtCt6Y.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,$[3]),subTitlePaddingBottom:new P($[3],$[3]),verificationDetailsRowGap:new P(12,$[5],$[5]),termsPaddingLeftRight:new P($[0],$[3])},$t={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:H,onRegisteredAddressClick:Ne,onBackClick:V,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Oe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Fe,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(M,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(M,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(M,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(M,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,W]=j.useState(!1),[G,se]=j.useState("save"),[Z,Ge]=j.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:jt(t,B,E,A)}),{isValid:Me}=u.formState,Q=F?.company.company.companyBillPayInfo,X=F?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?X?.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,k=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,J=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Y=l?.primaryContactLocalData,ge=Y?.firstName,xe=Y?.lastName,Se=Y?.email;a!=null&&f!=null&&C!=null&&k!=null&&c!=null&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&J!=null&&fe!=null&&ye!=null&&ue!=null&&J!=null&&he!=null&&ge!=null&&xe!=null&&Se!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:k,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:J,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??"",k=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!k?((!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||q!=null&&q?.length>0)return u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},Xe=u.handleSubmit(()=>{if(G!=="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"&&Me&&(We(),Ve?.(T))}),qe=async(e,a)=>{e.includes(b)?Fe?.(a[b]):e.includes(v)&&Ae?.(a[v])},Ke=j.useCallback(st((e,a)=>{qe(e,a)},300),[]);j.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>Ke(c,a))});return()=>{e.unsubscribe()}});const ne=we(t.companyDetailsLocalData?.addressStatus);j.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),q=oe?.map(e=>e.user),Je=oe?.map(e=>e.role),Ye={onOkClick:()=>{W(!1),V();const e=[],a=F?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Je?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach(k=>{C.includes(k)||e.push(k)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{W(!1)}},He=ot(rt(p),p,Nt.currencySymbol).toUpperCase(),K=N?.code==="pending_review"||N?.code==="verified";return y==="zeni_treasury"&&N?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Qt,{children:[i.jsxs(Xt,{children:[i.jsx(kt,{}),i.jsx(qt,{windowSize:m,children:s.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):i.jsxs(Ot,{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):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:ze,rightSideComponent:h?i.jsx(Kt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):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:Ye}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||S===!1)&&i.jsx(Ft,{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:Xe,children:[h&&S===!0&&i.jsxs(Vt,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:K?s.businessVerificationDetails:s.verifyBusinessDetails}),!K&&i.jsx(Ut,{children:i.jsxs(Gt,{children:[i.jsx(Mt,{}),i.jsx(Wt,{})]})})]}),i.jsx(Ie,{isReadonly:K,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:q??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:I,filesEndPoint:o,authParams:z,isPopupOpen:Z,openPopup:Ge,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Oe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":I,fileProps:{authParams:z,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:Ne,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?i.jsx(zt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?X?.companyVerificationStatus?.code!=="pending_review"&&X?.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:G==="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:G==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[T],a=l?.primaryContactLocalData;G!=="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]})},jt=(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`,Ot=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{X as m,B as w,j as t,v as x,Q as $,o as s,g as C}from"./index-CIAgrDi2.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=m(),g=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,u=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:`${u}`,children:[g,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 m,B as w,j as t,v as x,Q as $,o as s,g as C}from"./index-CiKxqrxk.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=m(),g=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,u=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:`${u}`,children:[g,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,aV as te,B as w,cR as P,v as u,aj as U,bE as ie,o as i,d as B,C as h,n as v,dg as oe,l as y,s as l,b5 as re,b6 as ae,av as se,au as ne,ab as de,b7 as le,b9 as ce,iy as he,a0 as O,bl as pe,_ as z,$,iz as q,iA as Q,ih as ge,b$ as me,c2 as xe,M as T,ii as we,ij as ue}from"./index-CIAgrDi2.js";import{n as o,f as R,b as V}from"./vendor-CnQcJ2Lu.js";import{B as ye}from"./InsightsSection-nzKuS0T9-CcXyZxZ8.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-MA8SVlUT-BNaROjbH.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(G,{children:W.month})," ",t.jsx(A,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(G,{children:W.cashback}),t.jsx(A,{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,aV as te,B as w,cR as P,v as u,aj as U,bE as ie,o as i,d as B,C as h,n as v,dg as oe,l as y,s as l,b5 as re,b6 as ae,av as se,au as ne,ab as de,b7 as le,b9 as ce,iy as he,a0 as O,bl as pe,_ as z,$,iz as q,iA as Q,ih as ge,b$ as me,c2 as xe,M as T,ii as we,ij as ue}from"./index-CiKxqrxk.js";import{n as o,f as R,b as V}from"./vendor-CnQcJ2Lu.js";import{B as ye}from"./InsightsSection-nzKuS0T9-DxBuHfNE.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-MA8SVlUT-xHbUxadi.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(G,{children:W.month})," ",t.jsx(A,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(G,{children:W.cashback}),t.jsx(A,{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 Be,X as fe,y as nt,d5 as st,fe as Ka,l as Ne,gZ as Gr,a8 as He,B as pe,ff as Xa,j as t,gn as qr,aV as Kr,s as c,fn as Ja,a0 as ye,_ as Z,o as a,bw as Pt,d as p,ik as Qa,v as _,bR as Xr,il as Jr,cL as Qr,gd as ei,a as ti,gg as ai,cr as ri,C as D,r as ii,F as oi,fF as ni,K as Ct,aZ as si,be as er,a6 as Mt,im as di,io as tr,b4 as ar,ap as Ot,eT as ci,a7 as rr,af as li,ip as hi,iq as pi,am as Vt,$ as ge,ex as ui,ig as mi,ay as dt,fg as ir,i as ot,aj as gi,dl as Ci,bW as fi,bT as wi,cy as xi,gW as yi,n as be,bp as or,ir as bi,fh as Le,dt as ft,d0 as Si,Q as ha,g as nr,ao as $i,is as vi,eR as ki,b$ as sr,it as ji,w as ut,bE as pa,aS as Li,dd as Di,eC as Ii,M as et,fb as Ai,Y as Ti,k as Ri,a3 as Fi,a$ as Ei,iu as xt,cZ as zi,bl as Pi,iv as dr,iw as cr,f$ as lr,ix as wt,hH as hr,ih as Mi,c2 as Oi,ed as pr,ii as Vi,ij as Hi,d1 as Ni,ct as Bi,ej as Wi,bI as Ui,bJ as _i}from"./index-CIAgrDi2.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-MA8SVlUT-BNaROjbH.js";import{L as Gi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-Bivw83fy-L79bEW0e.js";import{A as qi,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-B5ejHnml-CLY9anWS.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-CU1mDxNv-0vPSSd-N.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:O,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:G}=hi(),{isAndroidScreen:X}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:G===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):X===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-apple-wallet-button")})},io=r.div`
1
+ import{u as Be,X as fe,y as nt,d5 as st,fe as Ka,l as Ne,gZ as Gr,a8 as He,B as pe,ff as Xa,j as t,gn as qr,aV as Kr,s as c,fn as Ja,a0 as ye,_ as Z,o as a,bw as Pt,d as p,ik as Qa,v as _,bR as Xr,il as Jr,cL as Qr,gd as ei,a as ti,gg as ai,cr as ri,C as D,r as ii,F as oi,fF as ni,K as Ct,aZ as si,be as er,a6 as Mt,im as di,io as tr,b4 as ar,ap as Ot,eT as ci,a7 as rr,af as li,ip as hi,iq as pi,am as Vt,$ as ge,ex as ui,ig as mi,ay as dt,fg as ir,i as ot,aj as gi,dl as Ci,bW as fi,bT as wi,cy as xi,gW as yi,n as be,bp as or,ir as bi,fh as Le,dt as ft,d0 as Si,Q as ha,g as nr,ao as $i,is as vi,eR as ki,b$ as sr,it as ji,w as ut,bE as pa,aS as Li,dd as Di,eC as Ii,M as et,fb as Ai,Y as Ti,k as Ri,a3 as Fi,a$ as Ei,iu as xt,cZ as zi,bl as Pi,iv as dr,iw as cr,f$ as lr,ix as wt,hH as hr,ih as Mi,c2 as Oi,ed as pr,ii as Vi,ij as Hi,d1 as Ni,ct as Bi,ej as Wi,bI as Ui,bJ as _i}from"./index-CiKxqrxk.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-MA8SVlUT-xHbUxadi.js";import{L as Gi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-Bivw83fy-DoKh_ipP.js";import{A as qi,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-B5ejHnml-C3WWdznE.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-CU1mDxNv-D_CYTfGX.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:O,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:G}=hi(),{isAndroidScreen:X}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:G===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):X===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-apple-wallet-button")})},io=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{d5 as St,y as jt,fm as vt,l as M,fh as v,X as pe,B as Be,o as a,u as _e,j as t,aV as kt,fA as Pt,cR as A,v as C,bw as le,d as n,a0 as It,ab as ce,_ as me,C as B,$ as E,Q as Tt,g as Mt,co as At,aC as Fe,b4 as Et,af as ue,a6 as Lt,M as ge,s as I,d6 as Rt,Y as Dt,n as zt,c3 as Nt,cn as Ot,aQ as Bt}from"./index-CIAgrDi2.js";import{b as O,n as i,j as xe,k as _t}from"./vendor-CnQcJ2Lu.js";import{Y as Ft}from"./SpendManagementSection-bMsztUap-upI-ZdzC.js";import{ChargeCardPromoUserContent as Wt}from"./ChargeCardPromoPage-BfsQUUYb-D4zqkYsh.js";import{N as Yt,J as Ut}from"./PromoBaseCards-DG1CAZvU-Kp-BaaPo.js";import{E as Gt}from"./ChargeCardListTable-BxAeA97m-C-BUBRdZ.js";import{r as Jt,i as Ht}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Vt,o as qt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-COpKcBhx-C1b7HyPI.js";import"./NavigationDots-MA8SVlUT-BNaROjbH.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-frAXxk4e-ChxiZJil.js";import"./RoleWithToolTip-BP8MTZdU-BOm9Us2_.js";import"./CardNumberSubText-B5ejHnml-CLY9anWS.js";import"./ChargeCardUtils-Bivw83fy-L79bEW0e.js";const be={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=pe();return t.jsxs(Zt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(We,{children:[t.jsxs(Ue,{children:[t.jsx(Ye,{children:l}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Yt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(da,{children:t.jsx(Ut,{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=pe();return t.jsx(Kt,{windowSize:u,cardType:e,children:t.jsxs(Xt,{children:[t.jsxs(Ue,{children:[t.jsx(Ye,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:l})}),t.jsx(la,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},Qt=e=>{const s=e-1;let l=`
1
+ import{d5 as St,y as jt,fm as vt,l as M,fh as v,X as pe,B as Be,o as a,u as _e,j as t,aV as kt,fA as Pt,cR as A,v as C,bw as le,d as n,a0 as It,ab as ce,_ as me,C as B,$ as E,Q as Tt,g as Mt,co as At,aC as Fe,b4 as Et,af as ue,a6 as Lt,M as ge,s as I,d6 as Rt,Y as Dt,n as zt,c3 as Nt,cn as Ot,aQ as Bt}from"./index-CiKxqrxk.js";import{b as O,n as i,j as xe,k as _t}from"./vendor-CnQcJ2Lu.js";import{Y as Ft}from"./SpendManagementSection-bMsztUap-ChI9xiC5.js";import{ChargeCardPromoUserContent as Wt}from"./ChargeCardPromoPage-BfsQUUYb-Dgj-8gSG.js";import{N as Yt,J as Ut}from"./PromoBaseCards-DG1CAZvU-DDe9HUmw.js";import{E as Gt}from"./ChargeCardListTable-BxAeA97m-DhK6iFhq.js";import{r as Jt,i as Ht}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Vt,o as qt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-COpKcBhx-DUhr4aqa.js";import"./NavigationDots-MA8SVlUT-xHbUxadi.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-frAXxk4e-CEl4TWuB.js";import"./RoleWithToolTip-BP8MTZdU-DnEd53cN.js";import"./CardNumberSubText-B5ejHnml-C3WWdznE.js";import"./ChargeCardUtils-Bivw83fy-DoKh_ipP.js";const be={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=pe();return t.jsxs(Zt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(We,{children:[t.jsxs(Ue,{children:[t.jsx(Ye,{children:l}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Yt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(da,{children:t.jsx(Ut,{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=pe();return t.jsx(Kt,{windowSize:u,cardType:e,children:t.jsxs(Xt,{children:[t.jsxs(Ue,{children:[t.jsx(Ye,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:l})}),t.jsx(la,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},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 _,y as ee,d5 as $i,u as de,fe as fi,ia as vi,ib as Ci,ic as yi,_ as b,B as V,bO as ji,v as oe,d as y,aj as bi,bW as ki,id as Si,ie as Ii,o as r,be as zi,a6 as Li,C as p,ex as Ri,ap as Pi,ig as Di,a7 as Ui,ay as Ni,$ as F,fg as Ti,s as a,dt as _i,a0 as T,bY as De,i as Ue,bw as le,bl as Vi,M as k,b$ as we,n as U,i4 as ue,b4 as Ne,bc as Te,ih as Ei,c2 as Oi,a8 as Q,ii as Wi,ij as Fi}from"./index-CIAgrDi2.js";import{b as C,n as o,f as Mi,j as $e}from"./vendor-CnQcJ2Lu.js";import{R as _e}from"./Menu-frAXxk4e-ChxiZJil.js";import{T as Ve}from"./RoleWithToolTip-BP8MTZdU-BOm9Us2_.js";import{R as ce}from"./CardNumberSubText-B5ejHnml-CLY9anWS.js";import{_ as Ee}from"./ChargeCardUtils-Bivw83fy-L79bEW0e.js";const M=V.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=V.getLocalizedStrings().common.strings.empty,fe={key:"owner",value:M.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:M.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:M.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:M.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:M.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:M.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Oe=e=>e===!0?[{...fe,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[fe,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(Wi,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 f=g;t.sortKey===s&&(f=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(Xi,{windowSize:l,children:[i.jsxs(Qi,{children:[i.jsx(Zi,{children:i.jsx(Gi,{})}),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($.key,$.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:$.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:$,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(Bi,{windowSize:l,children:i.jsx(qi,{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(Ji,{onClick:()=>u(x?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Mi.memo(Hi),Bi=o.div`
1
+ import{j as i,X as _,y as ee,d5 as $i,u as de,fe as fi,ia as vi,ib as Ci,ic as yi,_ as b,B as V,bO as ji,v as oe,d as y,aj as bi,bW as ki,id as Si,ie as Ii,o as r,be as zi,a6 as Li,C as p,ex as Ri,ap as Pi,ig as Di,a7 as Ui,ay as Ni,$ as F,fg as Ti,s as a,dt as _i,a0 as T,bY as De,i as Ue,bw as le,bl as Vi,M as k,b$ as we,n as U,i4 as ue,b4 as Ne,bc as Te,ih as Ei,c2 as Oi,a8 as Q,ii as Wi,ij as Fi}from"./index-CiKxqrxk.js";import{b as C,n as o,f as Mi,j as $e}from"./vendor-CnQcJ2Lu.js";import{R as _e}from"./Menu-frAXxk4e-CEl4TWuB.js";import{T as Ve}from"./RoleWithToolTip-BP8MTZdU-DnEd53cN.js";import{R as ce}from"./CardNumberSubText-B5ejHnml-C3WWdznE.js";import{_ as Ee}from"./ChargeCardUtils-Bivw83fy-DoKh_ipP.js";const M=V.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=V.getLocalizedStrings().common.strings.empty,fe={key:"owner",value:M.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:M.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:M.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:M.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:M.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:M.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Oe=e=>e===!0?[{...fe,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[fe,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(Wi,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 f=g;t.sortKey===s&&(f=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(Xi,{windowSize:l,children:[i.jsxs(Qi,{children:[i.jsx(Zi,{children:i.jsx(Gi,{})}),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($.key,$.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:$.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:$,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(Bi,{windowSize:l,children:i.jsx(qi,{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(Ji,{onClick:()=>u(x?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Mi.memo(Hi),Bi=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 b,B as oe,j as r,u as H,y as $e,d5 as ye,a2 as be,a0 as je,l as Se,fm as Te,aV as ze,K as Z,_ as q,o as t,c3 as ve,k as J,c4 as Pe,Y as ke,C as g,bS as Be,bw as Ae,i8 as Ie,$ as Le,s as m,Q as j,d as $,ap as Re,a7 as Me,i9 as _e}from"./index-CIAgrDi2.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-CnQcJ2Lu.js";import{x as Fe}from"./MeetingCalenderPopup-COpKcBhx-C1b7HyPI.js";import{f as Ue}from"./NavigationDots-MA8SVlUT-BNaROjbH.js";import{J as N,N as G}from"./PromoBaseCards-DG1CAZvU-Kp-BaaPo.js";import{M as R}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const h={containerPaddingTopBottom:new g(m[0],m[0]),uspContainerMarginX:new g(m[6],m[0]),midContainerGap:new g(m[4],84),iconContainerMinHeight:new g(236,396),emptySectionHeight:new g(m[6],43),navigationBottom:new g(m[4],94),navigationLeft:new g(192,244),carouselHeight:new g(268,396),carouselMarginTop:new g(54,m[4]),carouselMarginLeft:new g(120,m[12]),buttonTrayGap:new g(m[3],m[5]),termsOfAgreementMarginTop:new g(m[5],m[10]),contactAdminContainerMarginTop:new g(m[0],m[10]),contactAdminContainerMarginBottom:new g(m[4],m[0]),contactAdminContainerMarginLeftRight:new g(m[3],m[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:ee,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Lr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:x,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:O,onExpressInterestClick:me})=>{const xe=H(),Q=$e(),z=b(),V=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,W=be(M?.fetchStatus.fetchState),[he,X]=S.useState(!1),ge=()=>{V.trackCardsPromoPageClicked("schedule demo"),V.trackCardsScheduleDemoClick(p,{isCreditCardOffered:x,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),X(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{W==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&O()},[W,O,M?.fetchStatus]);const K=Se.hasChargeCardAdminLevelAccess(Q.loggedInUserRoleMap),we=Te(Q),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Qe,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:xe.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),he===!0?r.jsx(Fe,{onCancelClick:()=>{X(!1)},meetingUrl:e}):null,r.jsx(Ke,{windowSize:z,children:K===!0?r.jsxs(Xe,{children:[r.jsxs(We,{children:[r.jsx(Ge,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(He,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),K&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Z,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ge,"data-testid":q("schedule-demo-button")}),r.jsx(Ve,{windowSize:z,children:o.orText}),r.jsx(Z,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===o.getPreApprovedNow?me:()=>l(u),"data-testid":q("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(U,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:x=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||x===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||x===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(c)}})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:x})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]}):x?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ze,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p?null:r.jsx(Cr,{}),r.jsx(qe,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:x="credit"})=>{const c=b(),w=x==="debit_and_credit"?o.promoTextDebitCreditCard:x==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Je,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:x,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:x})]})},Je=({cards:e,companyLegalName:s})=>{const i=H(),n=b();let p="",x;if(e.length===1){x=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(xr,{children:[x!=null?r.jsx(Ye,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:x.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(hr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Oe,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(N,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Oe=()=>{const e=b(),s=H(),[i,n]=S.useState(0),[p,x]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(x(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||x(!0),n(l)};return r.jsxs(gr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Qe=a.div`
1
+ import{X as b,B as oe,j as r,u as H,y as $e,d5 as ye,a2 as be,a0 as je,l as Se,fm as Te,aV as ze,K as Z,_ as q,o as t,c3 as ve,k as J,c4 as Pe,Y as ke,C as g,bS as Be,bw as Ae,i8 as Ie,$ as Le,s as m,Q as j,d as $,ap as Re,a7 as Me,i9 as _e}from"./index-CiKxqrxk.js";import{b as S,n as a,j as Ee,k as De}from"./vendor-CnQcJ2Lu.js";import{x as Fe}from"./MeetingCalenderPopup-COpKcBhx-DUhr4aqa.js";import{f as Ue}from"./NavigationDots-MA8SVlUT-xHbUxadi.js";import{J as N,N as G}from"./PromoBaseCards-DG1CAZvU-DDe9HUmw.js";import{M as R}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const h={containerPaddingTopBottom:new g(m[0],m[0]),uspContainerMarginX:new g(m[6],m[0]),midContainerGap:new g(m[4],84),iconContainerMinHeight:new g(236,396),emptySectionHeight:new g(m[6],43),navigationBottom:new g(m[4],94),navigationLeft:new g(192,244),carouselHeight:new g(268,396),carouselMarginTop:new g(54,m[4]),carouselMarginLeft:new g(120,m[12]),buttonTrayGap:new g(m[3],m[5]),termsOfAgreementMarginTop:new g(m[5],m[10]),contactAdminContainerMarginTop:new g(m[0],m[10]),contactAdminContainerMarginBottom:new g(m[4],m[0]),contactAdminContainerMarginLeftRight:new g(m[3],m[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:ee,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Lr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:x,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:O,onExpressInterestClick:me})=>{const xe=H(),Q=$e(),z=b(),V=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,W=be(M?.fetchStatus.fetchState),[he,X]=S.useState(!1),ge=()=>{V.trackCardsPromoPageClicked("schedule demo"),V.trackCardsScheduleDemoClick(p,{isCreditCardOffered:x,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),X(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{W==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&O()},[W,O,M?.fetchStatus]);const K=Se.hasChargeCardAdminLevelAccess(Q.loggedInUserRoleMap),we=Te(Q),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Qe,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:xe.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),he===!0?r.jsx(Fe,{onCancelClick:()=>{X(!1)},meetingUrl:e}):null,r.jsx(Ke,{windowSize:z,children:K===!0?r.jsxs(Xe,{children:[r.jsxs(We,{children:[r.jsx(Ge,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(He,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),K&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Z,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ge,"data-testid":q("schedule-demo-button")}),r.jsx(Ve,{windowSize:z,children:o.orText}),r.jsx(Z,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===o.getPreApprovedNow?me:()=>l(u),"data-testid":q("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(U,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(U,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:x=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||x===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||x===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(c)}})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:x})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]}):x?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,ee.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ze,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p?null:r.jsx(Cr,{}),r.jsx(qe,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:x="credit"})=>{const c=b(),w=x==="debit_and_credit"?o.promoTextDebitCreditCard:x==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Je,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:x,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:x})]})},Je=({cards:e,companyLegalName:s})=>{const i=H(),n=b();let p="",x;if(e.length===1){x=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(xr,{children:[x!=null?r.jsx(Ye,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:x.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(hr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Oe,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(N,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Oe=()=>{const e=b(),s=H(),[i,n]=S.useState(0),[p,x]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(x(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||x(!0),n(l)};return r.jsxs(gr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(N,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},Qe=a.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,d5 as Be,a2 as M,a as Ue,c6 as $e,l as ze,B as Re,a8 as G,j as t,cL as _e,d as Le,C as r,aV as We,i as Ne,F as qe,d1 as He,o as U,v as Me,aR as Ge,a4 as Ke,s as a,n as Xe}from"./index-CIAgrDi2.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{I as Je}from"./HelpButton-C1djo0zO-BW6NBTNW.js";import{K as Qe}from"./SetUpDefaultSection-BQzNGjO7-an74W3Da.js";import{f as Ye,y as K}from"./SpendMgmtSetupAccountSection-Btdtp-ry-M7exC_NJ.js";import{x as Ze}from"./LabeledControlledCheckBoxField-CGT7KsYZ-jRPtCjyI.js";import{g as et}from"./UploadAdditionalDocumentOverlay-CLQLrn0v-SNsFu9LY.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-COpKcBhx-C1b7HyPI.js";import"./ChargeCardUtils-Bivw83fy-L79bEW0e.js";import"./CreditCardPaymentPlgSection-mUqReF9z-IZFYMes7.js";import"./ChaseOverlay-LcVAgdoT-D1Jb2EIj.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},X="chargeCardSetUpPage",h="payAccount",{commonSetUp:tt,spendManagement:nt}=Re.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:$}=tt,Tt=({autoPayThreshold:e,isDisabled:x,meetingUrl:T,isEarlyPayEnabled:g,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:v,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:se,onUpdateChargeCardClick:le,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:he,onEstablishConnectionSuccess:ge,onClickMenuIcon:fe,onEnableChargeCardSuccess:w,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe,onSignUpClick:we})=>{const f=Ve(),i=De(),E=Be().analytics,[P,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:z,isRefreshingViewInBackground:Pe,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:R,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:_}=o,L=M(b),A=M(d.fetchState),j=Ue({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>J(o),[o]),values:J(o)}),ve=j.handleSubmit(se),Ee=async(C,k)=>{const n=k[h];if(C.includes(h))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&l?.id!=n.fundingAccount.selectedOption){const u=_.find(B=>B.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(B=>B.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&E.trackConnectBankLink(u.value,u.label,"charge_cards"),le(n.account.selectedOption,l.id,l.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=j.watch((k,{name:n})=>{n!=null&&k!=null&&$e(()=>Ee(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!P&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&y(!0),P&&L==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&w()},[w,A,d.fetchState]);const I=F?.isChargeCardEnabled===!0,O=R?.isDebitCardEnabled===!0,W=R?.isDebitCardTOSAccepted===!0,N=F?.isChargeCardTOSAccepted===!0,q=z?.isBusinessVerified===!0,Fe=l?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(l?.providerVerificationStatus?.code??""),V=v?q:q&&Fe,je=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&w()},[w,A,d.fetchState]);const D=v?V&&!O&&W:ie?V&&!I&&N:V&&!(I&&O)&&N&&W,Ie=D?m.setupSubTitleNotEnabled:m.setupSubTitle,H=f.mode==="light"?new G(f.colors.brandColorJadeLight):new G(f.colors.brandColorJadeDark),Oe=()=>{!P&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:P,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!I&&!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:fe,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:Ie}),je?t.jsx(ct,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsx(qe,{...j,children:t.jsx("form",{id:Q(X),onSubmit:ve,children:t.jsxs(st,{windowSize:i,children:[t.jsx(Qe,{onClick:Oe,title:$.businessVerificationTitle,subTitle:$.businessVerificationSubTitle,header:$.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:z?.businessVerificationStatus,isLoading:Pe,isActiveWhileLoading:!0}),v?null:t.jsx(Ye,{connectedAccountProvider:Z,primaryFundingAccount:l,allFundingAccounts:_,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:h,isDisabled:x,onFetchLinkTokenClick:ae,onEstablishConnectionClick:he,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:ge,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:E,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:we,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:g?{marginBottom:"20px"}:{},bottomComponent:g&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:f.colors.primary,...Me.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:U.sp4,marginTop:U.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:K(h,"enableAutoPay"),checkBoxValue:K(h,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),D?t.jsx(Ke,{formId:Q(X),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${U.sp3}`}}):null,t.jsx(Je,{isFooterRendered:D,meetingUrl:T,analytics:E,productType:"charge_cards"})]})},J=e=>{const{allBankAccounts:x,allFundingAccounts:T,primaryFundingAccount:g}=e;return{[h]:{fundingAccount:{selectedOption:g?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:g?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},Q=e=>`${e}_form`,it=S.div`
1
+ import{u as Ve,X as De,d5 as Be,a2 as M,a as Ue,c6 as $e,l as ze,B as Re,a8 as G,j as t,cL as _e,d as Le,C as r,aV as We,i as Ne,F as qe,d1 as He,o as U,v as Me,aR as Ge,a4 as Ke,s as a,n as Xe}from"./index-CiKxqrxk.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{I as Je}from"./HelpButton-C1djo0zO-CxYW3QWQ.js";import{K as Qe}from"./SetUpDefaultSection-BQzNGjO7-C6ny-1cl.js";import{f as Ye,y as K}from"./SpendMgmtSetupAccountSection-Btdtp-ry-25hbeX41.js";import{x as Ze}from"./LabeledControlledCheckBoxField-CGT7KsYZ-8Yk74ikH.js";import{g as et}from"./UploadAdditionalDocumentOverlay-CLQLrn0v-DY-77k9g.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-COpKcBhx-DUhr4aqa.js";import"./ChargeCardUtils-Bivw83fy-DoKh_ipP.js";import"./CreditCardPaymentPlgSection-mUqReF9z-BfHxZrsE.js";import"./ChaseOverlay-LcVAgdoT-9JR0Zv57.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},X="chargeCardSetUpPage",h="payAccount",{commonSetUp:tt,spendManagement:nt}=Re.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:$}=tt,Tt=({autoPayThreshold:e,isDisabled:x,meetingUrl:T,isEarlyPayEnabled:g,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:v,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:se,onUpdateChargeCardClick:le,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:he,onEstablishConnectionSuccess:ge,onClickMenuIcon:fe,onEnableChargeCardSuccess:w,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe,onSignUpClick:we})=>{const f=Ve(),i=De(),E=Be().analytics,[P,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:z,isRefreshingViewInBackground:Pe,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:R,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:_}=o,L=M(b),A=M(d.fetchState),j=Ue({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>J(o),[o]),values:J(o)}),ve=j.handleSubmit(se),Ee=async(C,k)=>{const n=k[h];if(C.includes(h))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&l?.id!=n.fundingAccount.selectedOption){const u=_.find(B=>B.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(B=>B.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&E.trackConnectBankLink(u.value,u.label,"charge_cards"),le(n.account.selectedOption,l.id,l.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=j.watch((k,{name:n})=>{n!=null&&k!=null&&$e(()=>Ee(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!P&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&y(!0),P&&L==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&w()},[w,A,d.fetchState]);const I=F?.isChargeCardEnabled===!0,O=R?.isDebitCardEnabled===!0,W=R?.isDebitCardTOSAccepted===!0,N=F?.isChargeCardTOSAccepted===!0,q=z?.isBusinessVerified===!0,Fe=l?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(l?.providerVerificationStatus?.code??""),V=v?q:q&&Fe,je=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&w()},[w,A,d.fetchState]);const D=v?V&&!O&&W:ie?V&&!I&&N:V&&!(I&&O)&&N&&W,Ie=D?m.setupSubTitleNotEnabled:m.setupSubTitle,H=f.mode==="light"?new G(f.colors.brandColorJadeLight):new G(f.colors.brandColorJadeDark),Oe=()=>{!P&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:P,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!I&&!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:fe,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:Ie}),je?t.jsx(ct,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsx(qe,{...j,children:t.jsx("form",{id:Q(X),onSubmit:ve,children:t.jsxs(st,{windowSize:i,children:[t.jsx(Qe,{onClick:Oe,title:$.businessVerificationTitle,subTitle:$.businessVerificationSubTitle,header:$.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:z?.businessVerificationStatus,isLoading:Pe,isActiveWhileLoading:!0}),v?null:t.jsx(Ye,{connectedAccountProvider:Z,primaryFundingAccount:l,allFundingAccounts:_,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:h,isDisabled:x,onFetchLinkTokenClick:ae,onEstablishConnectionClick:he,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:ge,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:E,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:we,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:g?{marginBottom:"20px"}:{},bottomComponent:g&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:f.colors.primary,...Me.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:U.sp4,marginTop:U.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:K(h,"enableAutoPay"),checkBoxValue:K(h,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),D?t.jsx(Ke,{formId:Q(X),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${U.sp3}`}}):null,t.jsx(Je,{isFooterRendered:D,meetingUrl:T,analytics:E,productType:"charge_cards"})]})},J=e=>{const{allBankAccounts:x,allFundingAccounts:T,primaryFundingAccount:g}=e;return{[h]:{fundingAccount:{selectedOption:g?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:g?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},Q=e=>`${e}_form`,it=S.div`
2
2
  display: flex;
3
3
  justify-content: flex-start;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as F,X as T,j as t,aV as W,B,o as h,C as w,n as R,ao as O,d5 as V,h2 as U,_,i as q,s,bt as J}from"./index-CIAgrDi2.js";import{n as i,b as Q}from"./vendor-CnQcJ2Lu.js";import{$ as X,g as G}from"./BoxItem-a04JWA45-DJp9lW-u.js";import{w as H}from"./downloadPdf-DAA4T-qo-CPXN54rf.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./commonDimensions-DRK1vfDX-CO7PCzy1.js";const Y=B.getLocalizedStrings().months,A={downloadButtonSize:new w(s[4],20)},K=i.div`
1
+ import{u as F,X as T,j as t,aV as W,B,o as h,C as w,n as R,ao as O,d5 as V,h2 as U,_,i as q,s,bt as J}from"./index-CiKxqrxk.js";import{n as i,b as Q}from"./vendor-CnQcJ2Lu.js";import{$ as X,g as G}from"./BoxItem-a04JWA45-C1LNy4lJ.js";import{w as H}from"./downloadPdf-DAA4T-qo-DGFaMd6S.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./commonDimensions-DRK1vfDX-BlL6juoL.js";const Y=B.getLocalizedStrings().months,A={downloadButtonSize:new w(s[4],20)},K=i.div`
2
2
  display: flex;
3
3
  padding: ${h.sp3} ${h.sp4};
4
4
  flex-direction: row;
@@ -1 +1 @@
1
- import{fh as D,B,dt as c,l as S}from"./index-CIAgrDi2.js";function A(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const L=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(S.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=B.getLocalizedStrings(),M=({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,M as H,A as L,N as M,L as U,Y as _,b as x};
1
+ import{fh as D,B,dt as c,l as S}from"./index-CiKxqrxk.js";function A(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const L=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(S.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=B.getLocalizedStrings(),M=({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,M as H,A as L,N as M,L as U,Y as _,b as x};
@@ -1,4 +1,4 @@
1
- import{X as H,fe as J,ff as W,B as Z,j as t,d as x,r as ee,K as I,_ as c,o as s,C as m,Y as te,n as ie,ao as se,bE as oe,d2 as re,s as l,ap as A,ay as R,a7 as ne,fg as le,$ as ae,ct as de,aQ as ce}from"./index-CIAgrDi2.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 Be(e){const d=H(),[,V]=J(),{isMobileOrTabletScreen:g}=W(),[y,k]=p.useState(!0),[j,S]=p.useState(!0),[z,C]=p.useState(!1),[T,L]=p.useState(!1),r=Z.getLocalizedStrings().commonSetUp.chaseOverlay,_=r.title,K=r.description,Q=()=>{window.open(r.chaseVideoUrl,"_blank")},D=[0,1,2,3],M=i=>i<D.length-1,P=(i,n)=>{V(i??""),n?k(!1):S(!1)},B=i=>{i?C(!0):L(!0)},E=i=>{i?C(!1):L(!1)};p.useEffect(()=>{y===!1&&setTimeout(()=>{k(!0)},2e3),j===!1&&setTimeout(()=>{S(!0)},2e3)},[y,j]);const X=()=>{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]})},Y=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},F=()=>{const i=r.step3,n=e.connectedAccountProvider==="stripe"?i.payeeIdStripe:i.payeeIdUnit;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(Te,{children:[t.jsxs(f,{onClick:()=>P(n,!0),onMouseOver:()=>B(!0),onMouseLeave:()=>E(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),y?t.jsxs(h,{children:[t.jsx(O,{showCopyText:z&&!g,windowSize:d,children:t.jsx(U,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(N,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>P(i.payeeName,!1),onMouseOver:()=>B(!1),onMouseLeave:()=>E(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),j?t.jsxs(h,{children:[t.jsx(O,{showCopyText:T&&!g,windowSize:d,children:t.jsx(U,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(N,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Le,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},q=()=>{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(X,{});case 1:return t.jsx(Y,{});case 2:return t.jsx(F,{});default:return t.jsx(q,{})}};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(De,{children:[t.jsx(xe,{children:_}),t.jsx(ge,{children:K}),t.jsx(ye,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:D.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:M(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),M(n)&&t.jsx(je,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(I,{variant:"secondary",label:r.primaryButtonText,onClick:Q,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,fe as J,ff as W,B as Z,j as t,d as x,r as ee,K as I,_ as c,o as s,C as m,Y as te,n as ie,ao as se,bE as oe,d2 as re,s as l,ap as A,ay as R,a7 as ne,fg as le,$ as ae,ct as de,aQ as ce}from"./index-CiKxqrxk.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 Be(e){const d=H(),[,V]=J(),{isMobileOrTabletScreen:g}=W(),[y,k]=p.useState(!0),[j,S]=p.useState(!0),[z,C]=p.useState(!1),[T,L]=p.useState(!1),r=Z.getLocalizedStrings().commonSetUp.chaseOverlay,_=r.title,K=r.description,Q=()=>{window.open(r.chaseVideoUrl,"_blank")},D=[0,1,2,3],M=i=>i<D.length-1,P=(i,n)=>{V(i??""),n?k(!1):S(!1)},B=i=>{i?C(!0):L(!0)},E=i=>{i?C(!1):L(!1)};p.useEffect(()=>{y===!1&&setTimeout(()=>{k(!0)},2e3),j===!1&&setTimeout(()=>{S(!0)},2e3)},[y,j]);const X=()=>{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]})},Y=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},F=()=>{const i=r.step3,n=e.connectedAccountProvider==="stripe"?i.payeeIdStripe:i.payeeIdUnit;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(Te,{children:[t.jsxs(f,{onClick:()=>P(n,!0),onMouseOver:()=>B(!0),onMouseLeave:()=>E(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),y?t.jsxs(h,{children:[t.jsx(O,{showCopyText:z&&!g,windowSize:d,children:t.jsx(U,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(N,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>P(i.payeeName,!1),onMouseOver:()=>B(!1),onMouseLeave:()=>E(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),j?t.jsxs(h,{children:[t.jsx(O,{showCopyText:T&&!g,windowSize:d,children:t.jsx(U,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(N,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Le,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},q=()=>{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(X,{});case 1:return t.jsx(Y,{});case 2:return t.jsx(F,{});default:return t.jsx(q,{})}};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(De,{children:[t.jsx(xe,{children:_}),t.jsx(ge,{children:K}),t.jsx(ye,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:D.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:M(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),M(n)&&t.jsx(je,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(I,{variant:"secondary",label:r.primaryButtonText,onClick:Q,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;