@zeniai/web-cockpit-ui 1.13.93-dev → 1.13.93-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/dist/assets/{ACHDetailsPage-B7Osqlyb-BwlnvX_d.js → ACHDetailsPage-B7Osqlyb-CqhBwUEe.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CEGqk2vj-DYer4sK1.js → AIPerformancePage-CEGqk2vj-iwipaRbL.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Dsi_xY1U-B-sH9O2B.js → AccountInfoPage-Dsi_xY1U-BeXn8rX5.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CmRpq4eF-B2DwYw45.js → AccountInfoPageContent-CmRpq4eF-BO6awQpy.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-Bwc-VZmp-CnpXttfi.js → AccountReconDetailsDrawerPage-Bwc-VZmp-CwyZc09k.js} +1 -1
  6. package/dist/assets/{AccountRow-DMeCdEPJ-0Td7rdjz.js → AccountRow-DMeCdEPJ-1uelMiUm.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-NYQHh0uE-De_Ps0gr.js → AccountsPromoCardStack-NYQHh0uE-BfptiCq2.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-3WPrDfNL-BmoU8xMj.js → AddAddressForCardDrawer-3WPrDfNL-DppL_czh.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-IjvBXyuu-LqJuRvIx.js → AddToWalletPage-IjvBXyuu-Clc80nVm.js} +1 -1
  10. package/dist/assets/{AgingReportsPage-CIJTKbrN-CVdoyKAO.js → AgingReportsPage-CIJTKbrN-B6EN7Gwl.js} +1 -1
  11. package/dist/assets/{AllUserItems-BuX43aPo-H0s42hTQ.js → AllUserItems-BuX43aPo-BZVdbYJW.js} +1 -1
  12. package/dist/assets/{ApAgingDetailPage-02ejdrQy-CkSV3Gpj.js → ApAgingDetailPage-02ejdrQy-DLRBu61V.js} +1 -1
  13. package/dist/assets/{AppBasePage-CC3bbnnu-Ciqf55R8.js → AppBasePage-CC3bbnnu-sBhTEcZo.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-B_EAPC9w-BdR_mtmP.js → AppDrawerContent-B_EAPC9w-BxvZKETP.js} +1 -1
  15. package/dist/assets/{ApprovalRulesSettingsPage-1AQm08qF-1bvo_sOv.js → ApprovalRulesSettingsPage-1AQm08qF-Cvk-qoSz.js} +1 -1
  16. package/dist/assets/{ArAgingChart-UnY648RV-B8ISkKOi.js → ArAgingChart-UnY648RV-QH71rZm_.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-CMUpR-2N-CqTh98Ou.js → ArAgingDetailPage-CMUpR-2N-BKMEEOXU.js} +1 -1
  18. package/dist/assets/{AttachmentView-sbbFtu9R-wkkd2tSH.js → AttachmentView-sbbFtu9R-CMxbGxbE.js} +1 -1
  19. package/dist/assets/{BankAccountSection-BJPkV-qV-DnIozyCI.js → BankAccountSection-BJPkV-qV-Boofa_-v.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-D9R1VhzE-GAcwzATB.js → BankAccountWarningSection-D9R1VhzE-W0-9kOFr.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-BG99PtV_-CvP1ZQFj.js → BankConnectionsSettingsPage-BG99PtV_-BCUjzt56.js} +1 -1
  22. package/dist/assets/{BillDetailPage-C_JDjRL0-Kxjam1W7.js → BillDetailPage-C_JDjRL0-BcKf-K5X.js} +1 -1
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-B_XMuvzZ-CuOSZOiJ.js → BillPayApprovalRuleDetailPage-B_XMuvzZ-CzbzKORs.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-CyZjNIsQ-DvR9HK7c.js → BillPayApprovalRulesPage-CyZjNIsQ-DJ0cf5WQ.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-ByDsqYfw-Bz6xfanS.js → BillPayPromoPage-ByDsqYfw-sKnAJBHm.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-yTO-xwRJ-D5LOIl5a.js → BillPaySetUpPage-yTO-xwRJ-BWCtUslF.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-BIAy1QHr-CdxSnuoN.js → BillingSettingsPage-BIAy1QHr-BZ2YNV86.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-Cw1XCs0q-BPMOI-f-.js → BillsBulkReviewDrawerPage-Cw1XCs0q-UqzbIwdI.js} +1 -1
  29. package/dist/assets/{BoxItem-UCX7eqiN-Bx4T9Ckg.js → BoxItem-UCX7eqiN-DyNsRgEL.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-CSsout2C-D0_Wr4yR.js → BusinessVerificationPage-CSsout2C-DoXcmAbC.js} +1 -1
  31. package/dist/assets/{CardNumberSubText-DuTv0ip1-BQ2cCq6Y.js → CardNumberSubText-DuTv0ip1-BfLMEqKn.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-KdHf-_ZF-DMwQoPE0.js → CashbackDetailPage-KdHf-_ZF-nPO6hUr0.js} +1 -1
  33. package/dist/assets/{ChargeCardDetailPage-DYGcQs0M-D9cSv6UR.js → ChargeCardDetailPage-DYGcQs0M-Y6bVTXs-.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-CNrRrNbd-BjkSAo-I.js → ChargeCardListPage-CNrRrNbd-DUypt8TC.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-B1a9-RYl-DFaeigKK.js → ChargeCardListTable-B1a9-RYl-8-NCK6N-.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-DZ1f8Sus-BW8ozxyr.js → ChargeCardPromoPage-DZ1f8Sus-CrAJDBWK.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-DOrs_Bw8-DgkoLihJ.js → ChargeCardSetupPage-DOrs_Bw8-BISU-vrt.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-xvq2HeEr-DOI6TXvC.js → ChargeCardStatementsPage-xvq2HeEr-SQWHVWlm.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-Dt303NN_-05QPLa2p.js → ChargeCardUtils-Dt303NN_-BtVs0nz_.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-BK2ISNjj-S6c-qliM.js → ChaseOverlay-BK2ISNjj-_cGEXU_Z.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-CbsRUWnx-BK3WXMqm.js → CheckDepositDrawerPage-CbsRUWnx-DZKuRA4W.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-D5D0ufUn-Bzt15FNd.js → CollapsableReportTable-D5D0ufUn-DR5Bxbbk.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-C7fuDGQk-IsFgAXuq.js → CompanyOfficerDetailsSection-C7fuDGQk-B7QDLQOm.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-DwUqLcAr-DSkb28QS.js → CompanyPassportCard-DwUqLcAr-B3CdpeOU.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-ClToBIAw-kZszHSwA.js → CompanyPassportPage-ClToBIAw-3YPa0tkr.js} +1 -1
  46. package/dist/assets/{CompleteProfile-CLDWG3QK-CfBVYMEP.js → CompleteProfile-CLDWG3QK-DpLwKo4P.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-DoZB9Us7-CMmPQCFc.js → ConfettiBurst-DoZB9Us7-MNuK-2X4.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-B837xw8A-BAYCbcGJ.js → CreateOrEditVendorPage-B837xw8A-PEzEloFX.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-zGaAOnnB-BsFRJBm4.js → CreditCardPaymentDrawerPage-zGaAOnnB-DiR9uUT2.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-BLbZFCcL-Bqc-C6eO.js → CreditCardPaymentPlgSection-BLbZFCcL-CmIMXEAw.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-DS3dOR3F-DalqX_lS.js → CurrencySelectField-DS3dOR3F-BHFkrhIu.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-WWVaQenb-B8ztly-z.js → CustomerOnboardingActivationPage-WWVaQenb-D_JVamnT.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-BmFfAaO1-DNy9LlZj.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BSXKMQ77-MLxx67vI.js → CustomerOnboardingDetailPageSkeleton-BSXKMQ77-DHYUj6hf.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-Dd5kCuRE-BcQg4Ohl.js → CustomerOnboardingNoStepsPage-Dd5kCuRE-lLBCKlew.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-CGJpD875-Dopxs2Zj.js → CustomerOnboardingPage-CGJpD875-CeheZ9KS.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-BFmVLk0l-Dqe6wu_O.js → CustomerOnboardingProductSuitePage-BFmVLk0l-DdyOZevT.js} +1 -1
  58. package/dist/assets/{Dashboard-BLIK_ZsD-D6wuOJAN.js → Dashboard-BLIK_ZsD-3T5YDsNh.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-BbYtKYEH-pc8ejgXI.js → DashboardReportPage-BbYtKYEH-jTasgHfP.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-BMXQpKVB-DaF1MUuy.js → DepositAccTransactionItem-BMXQpKVB-DADuFs_J.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-bwEdSihi-CXBTlKtY.js → DepositAccTransactionListPage-bwEdSihi-CD3IYfIg.js} +1 -1
  62. package/dist/assets/{DocumentSecurityBanner-DV9HE3MK-LQKK6f7V.js → DocumentSecurityBanner-DV9HE3MK-0JAHbgRm.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-OI-gqVNE-BqvWfcoc.js → DomesticWireDetailsPage-OI-gqVNE-DxExMMyR.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-De5uIGOt-g0Egf70Z.js → DownloadOverlay-De5uIGOt-mv4U-Njn.js} +1 -1
  65. package/dist/assets/{DrawerPage-n421ewDm-CnkmETxv.js → DrawerPage-n421ewDm-DLWuC6Ja.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-sO1qN6Uw-bGTiOwCj.js → EditPeoplePage-sO1qN6Uw-HRgJPq-c.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-D5iKVGl3--EFA7JxG.js → EditReimbursementDetailPage-D5iKVGl3-DWsSN3DV.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-CDk-oyYB-dhBDHyNo.js → EntityDetailPage-CDk-oyYB-DTc0WZ2l.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-C4cC9rOJ-D8GGYrtb.js → EntitySummarySection-C4cC9rOJ-Bq5ldxVU.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-BojhuW5i-BvXr37wt.js → ExpenseAutomationOverviewPage-BojhuW5i-DwrpfZ5D.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-D0BViJ7J-CWRMA15W.js → ExpenseAutomationPage-D0BViJ7J-ChHDprN2.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-DdgtFYep-CUOKOoiC.js → ExpressPayPage-DdgtFYep-COpz7P4w.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-CW0YmOgl-bNGEnD-g.js → FeaturePreviewPage-CW0YmOgl-D9gsnuPh.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-BfnTsu_D-DwG4wG8g.js → FollowStepsSection-BfnTsu_D-BlG7AzQB.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-C0U7Y6dI-BkEZ_PU4.js → GlobalReviewListPage-C0U7Y6dI-DQwgXHj4.js} +1 -1
  76. package/dist/assets/{HelpButton-DXFYhUL5-Co36EHOd.js → HelpButton-DXFYhUL5-DlkstZw7.js} +1 -1
  77. package/dist/assets/{InformationCardStack-6BD3n76T-CKu_A2Jh.js → InformationCardStack-6BD3n76T-DkVgCDy7.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-CwxJP-ic-nmTxa9wo.js → InsightsCardStack-CwxJP-ic-B_0VJkFN.js} +1 -1
  79. package/dist/assets/{InsightsSection-DYyHpcUE-N_KvwWiO.js → InsightsSection-DYyHpcUE-HYI1Vcwh.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-ZkvKZqwD-BFhl6nEA.js → IntegrationsSettingsPage-ZkvKZqwD-UcHHayzc.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-D3nyRM06-CLJCmyag.js → InternationalWireSwiftDetailsPage-D3nyRM06-DGh4-af_.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-BOdAP6dN-Bwjg3gOc.js → InternationalWireVerificationPage-BOdAP6dN-PVZbu5E1.js} +1 -1
  83. package/dist/assets/{InviteFormPage-HJMhfa_f-tkS1HQ9G.js → InviteFormPage-HJMhfa_f-FgBere1i.js} +1 -1
  84. package/dist/assets/{InvitePageListView-CjneWRfJ-Cqi-gRH8.js → InvitePageListView-CjneWRfJ-Ceo1JfeB.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-By6TWsVZ-DcezDHDA.js → InvitePeoplePage-By6TWsVZ-CfXnroD5.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-CfAnZsV9-DBOTURQ6.js → InvoiceUploadSection-CfAnZsV9-BqaFDudw.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-pKF4dRNw-CboqmQ0I.js → IssueChargeCardPage-pKF4dRNw-BPpNZiGw.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-UYEy_1W0-Ci2tufnL.js → LabeledAddressValue-UYEy_1W0-BxFTpnEe.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-BmSVDTMx-CBdRfhaZ.js → LabeledAddressValueField-BmSVDTMx-W4F3bMXy.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-BFnLx9E0-ozh3nGkA.js → LabeledControlledCheckBoxField-BFnLx9E0-BYIu7D3y.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-Bh-cfR9F-Cgfy3beB.js → LabeledCreatableSingleSelectField-Bh-cfR9F-SGD1YoYM.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-YBoeNDoD-DV_I5uPN.js → LabeledDocumentField-YBoeNDoD-BF5u2geR.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-jrOUW9Ig-BtNHTfAs.js → LabeledDropDownFormattedTextField-jrOUW9Ig-_E4x_RZf.js} +1 -1
  94. package/dist/assets/{LabeledText-BqO1wHro-DuRorhx4.js → LabeledText-BqO1wHro-B5m35Nur.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DiWgp4aE-C9gBIqih.js → LabeledUserSingleSelectWithSubtitlesField-DiWgp4aE-B-gZZLWT.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-Cgy0v5oD-DVkREz_1.js → LabeledZeniRolesDropDownField-Cgy0v5oD-wiUqAQ5R.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-PZAQ79zW-CK6GNIYR.js → LinkJETransactionPage-PZAQ79zW-CeAZPTXd.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-BYeSnxBp-BI_shW18.js → LowBalancePopup-BYeSnxBp-DQZcP54i.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage-D_FaPCmn-oM5m56GJ.js → MagicLinkACHDetailsPage-D_FaPCmn-CDoUQI_p.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-rnZdulCr-CM2OhcqO.js → MagicLinkDomesticWireDetailsPage-rnZdulCr-Bd7B_uvP.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-B7ScwCJc-hpVpOAMi.js → MagicLinkInternationalWireDetailsPage-B7ScwCJc-Di5QwSzR.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-DVhVWuCR-C1ELLMXO.js → MagicLinkSuccessPage-DVhVWuCR-g9aXqO0j.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-CjV-_WEQ-BZeg3Eo_.js → MagicLinkTitleSection-CjV-_WEQ-CL4G8HSq.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-CW6ShqHJ-CO_dTd-f.js → MailingDetailsSection-CW6ShqHJ-DG1FkASD.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js → MeetingCalenderPopup-BhC8pSjM-Cx1TqXY4.js} +1 -1
  106. package/dist/assets/{Menu-LDwLOgxI-DZ0xBJbp.js → Menu-LDwLOgxI-E3mMzAU7.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BzxtuXEu-B9IXFZww.js → MyBankConnectionsSettingsPage-BzxtuXEu-BFGrKKtr.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-9jGJWmds-BAoE5bWC.js → MyPendingActivationChargeCardListPage-9jGJWmds-RPFL7PD9.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-9yk4H_yu-D2-h3k3L.js → MyProfileSettingsPage-9yk4H_yu-B_v_JYH1.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-DUpJ0EXp-43gjuBbT.js → NavBarWithPicker-DUpJ0EXp-mW_ztOHu.js} +1 -1
  111. package/dist/assets/{NavigationArrow-lL3Ug8Mk-CKQ_08MZ.js → NavigationArrow-lL3Ug8Mk-CNpp4VpJ.js} +1 -1
  112. package/dist/assets/{NavigationDots-6Q5ZVqKl-C4jKPBGn.js → NavigationDots-6Q5ZVqKl-1NSygZW-.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-nrWvsRy4-DbM5W8Wn.js → NewGlobalMerchantPage-nrWvsRy4-C_6hDyMC.js} +1 -1
  114. package/dist/assets/{NoDataChart-DGbfWo33-CtNbg73S.js → NoDataChart-DGbfWo33-CF5iO_5h.js} +1 -1
  115. package/dist/assets/{NoDataTable-CsvWc_ok-iHpzgtD5.js → NoDataTable-CsvWc_ok-4qaUzSyE.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CzfiPkml-BQeqs7Av.js → NotFoundPage-CzfiPkml-CVv6GRKG.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-Dmfqzy1H-CXBPPrT7.js → NotificationSettingsPage-Dmfqzy1H-UzrJfCZr.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-Cc3hEei0-BUGnkVM7.js → NotificationsListConfig-Cc3hEei0-mh4g0HHA.js} +1 -1
  119. package/dist/assets/{NotificationsPage-BAj5p1zx-D_Mwv5JA.js → NotificationsPage-BAj5p1zx-DyN2Hr-n.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-CRt-VUTi-BSRoe6fS.js → OpExByVendorPage-CRt-VUTi-CjkEVnzz.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-CpXI0Wjw.js → OverlayContainerPage-C0rUb6-5-C69zcEOl.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-lT9GgcG2-Do2wpSYt.js → PandLWithForecastPage-lT9GgcG2-Bqls1PKy.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DY4eeS5C-DRjMzj0b.js → PaymentAccountSetupBillingAddressSection-DY4eeS5C-CbrGpXP6.js} +1 -1
  124. package/dist/assets/{PeoplePage-CDQl7HVr-BdnTCUNW.js → PeoplePage-CDQl7HVr-DvhBvN7l.js} +1 -1
  125. package/dist/assets/{PortfolioAllocationFormPage-StMDGc2G-BtdTMk__.js → PortfolioAllocationFormPage-StMDGc2G-Bu_OiCvF.js} +1 -1
  126. package/dist/assets/{PortfolioDetails-Dk_IIRuG-B_DxSJx7.js → PortfolioDetails-Dk_IIRuG-C9EDoTWV.js} +1 -1
  127. package/dist/assets/{ProductsCarousel-0-ksFQos-BOcG3c1-.js → ProductsCarousel-0-ksFQos-DLTGsQwS.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-DNSnqS61-Al7XKWVe.js → PromoBaseCards-DNSnqS61-CLhZIu7j.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-BmIUfW_i-DCw1_Zjz.js → QBOConnectionDialog-BmIUfW_i-D18CxZtF.js} +1 -1
  130. package/dist/assets/{QBOSetupSection-BaNFiEPB-BQTYBa9Y.js → QBOSetupSection-BaNFiEPB-BqZgkV60.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CtTk4HV2-BFn-5msn.js → ReimbursementApprovalRuleDetailPage-CtTk4HV2-YjLpxGu-.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-IhKSiGK_-xDcDckpI.js → ReimbursementApprovalRulesPage-IhKSiGK_-WQP9qwlr.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-B2rT1dKM-BvN3K25P.js → ReimbursementDetailPage-B2rT1dKM-MUexGSJS.js} +1 -1
  134. package/dist/assets/{ReimbursementPromoPage-d7XBUzip-Baqr_9HR.js → ReimbursementPromoPage-d7XBUzip-DIW9CVw7.js} +1 -1
  135. package/dist/assets/{ReimbursementSetUpPage-DWCUtN5c-B7jvTAZ2.js → ReimbursementSetUpPage-DWCUtN5c-FyKIcYPz.js} +1 -1
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-ByNvcTCn-CVr0tk48.js → ReimbursementsBulkReviewDrawerPage-ByNvcTCn-Bd9Fk2iQ.js} +1 -1
  137. package/dist/assets/{ReloadCard-DZy28iWR-fdBnNVQp.js → ReloadCard-DZy28iWR-UGaxTVZ0.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-DdZm4cOJ-noq_7l2G.js → ReportTableViewSelector-DdZm4cOJ-BbAQq77C.js} +1 -1
  139. package/dist/assets/{ReportsPage-CJDkY9FT-BvINYvTj.js → ReportsPage-CJDkY9FT-EWm4wUqB.js} +1 -1
  140. package/dist/assets/{RevenueChart-B_jdFFPm-BXFiwU14.js → RevenueChart-B_jdFFPm-CegEAZ5n.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-DjPVGzeL-DLDIfiIY.js → ReviewDetailsPage-DjPVGzeL-B1pehne-.js} +1 -1
  142. package/dist/assets/{ReviewOverlay-DGYnF07r-qnvuKuhQ.js → ReviewOverlay-DGYnF07r-CLP5FyL_.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-VlYG_GPv-D1yDUHv7.js → RoleWithToolTip-VlYG_GPv-OoaqrNWo.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-oPFQEE8g-DGu6MDH1.js → ScheduleDetailsFixedAssetsPage-oPFQEE8g-DDAQ9h_2.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsPage-BdBgJEAl-DNQIOTck.js → ScheduleDetailsPage-BdBgJEAl-6Jnh3xV7.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-Ncft3mZN-BP3nA4Wm.js → ScheduleSequenceTable-Ncft3mZN-5FrsUluc.js} +1 -1
  147. package/dist/assets/{ScreenRoutes-GKyBzI0O.js → ScreenRoutes-BT44PKhw.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-BrYiljyO-B0sFI8H-.js → SetUpAccountSection-BrYiljyO-Ddc9JCAg.js} +1 -1
  149. package/dist/assets/{SetUpDefaultSection-B361ojb9-CxOpM9AT.js → SetUpDefaultSection-B361ojb9-__eLpRVi.js} +1 -1
  150. package/dist/assets/{SignIn-B_-FUZwZ-DmmXPLIK.js → SignIn-B_-FUZwZ-ydi8GugN.js} +1 -1
  151. package/dist/assets/{SignInScreen-DXQE8i8n.js → SignInScreen-CSwA8Fgx.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-XbjqwHXx-DUJaDID4.js → SpendManagementListViewPage-XbjqwHXx-DaGTMzvB.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-D-4W-Ru9-BTwZxU7E.js → SpendManagementPerTabPage-D-4W-Ru9-Dlq_J9hn.js} +1 -1
  154. package/dist/assets/{SpendManagementSection-B7pMvj7Z-BAsdHFSu.js → SpendManagementSection-B7pMvj7Z-BevuB57w.js} +1 -1
  155. package/dist/assets/{SpendMgmtSetupAccountSection-DdUs96r9-BtVu2Jjy.js → SpendMgmtSetupAccountSection-DdUs96r9-CHrTpPue.js} +1 -1
  156. package/dist/assets/{StatementItem-B4DJRmwy-B3hGXxas.js → StatementItem-B4DJRmwy-DhfDDxcy.js} +1 -1
  157. package/dist/assets/{StatementsPage-DzFEOmFA-wer7iddM.js → StatementsPage-DzFEOmFA-D5WWXpQQ.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-DGOwA8qO-D_gDSZQm.js → StatusSwitcher-DGOwA8qO-D7z-rU18.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-Be-6o_mE-CbWpxIAQ.js → SubTabSwitcher-Be-6o_mE-DsdfriOO.js} +1 -1
  160. package/dist/assets/{SummaryCard-CD1amg78-BqcEBi2M.js → SummaryCard-CD1amg78-M55mKo3Z.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-C2UYhTtL-BjeaDszl.js → TaskManagementPage-C2UYhTtL-DS_qvi8I.js} +1 -1
  162. package/dist/assets/{TimeRangeSwitcher-DxAmlHGP-Bw1t8DbY.js → TimeRangeSwitcher-DxAmlHGP-D9edKiWD.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcher-ndYSpUa6-BlrKZqFe.js → TimeframeSwitcher-ndYSpUa6-G3vuOboV.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-B3bxr-_s-BNVy54lX.js → TimeframeSwitcherWithToggle-B3bxr-_s-B4odlBRh.js} +1 -1
  165. package/dist/assets/{TopExCard-CcpyunQ3-BaDgbdKx.js → TopExCard-CcpyunQ3-Cyv14Hcv.js} +1 -1
  166. package/dist/assets/{TopExDetailPage-C_B0c8iP-ByXi3xQ5.js → TopExDetailPage-C_B0c8iP-Bau7SiUM.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-DVPGLobu-DL-y5UIM.js → TransactionDetailPage-DVPGLobu-CDsAzI4F.js} +1 -1
  168. package/dist/assets/{TransactionList-CvGyadHZ-CKr6j1Ej.js → TransactionList-CvGyadHZ-7E1mQhvq.js} +1 -1
  169. package/dist/assets/{TransactionListBig-BeZjYsO0-CWaiI9xM.js → TransactionListBig-BeZjYsO0-nrBzbpJQ.js} +1 -1
  170. package/dist/assets/{TransactionListPage-C8h-sa3V-ISAOcRCi.js → TransactionListPage-C8h-sa3V-ByS_c29y.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-BcV8h3xR-BGD_XS9I.js → TransactionVendorDetailPage-BcV8h3xR-DJ2K8MZL.js} +1 -1
  172. package/dist/assets/{TransferDrawerPage-B_AJgZWp-BgCFpQ-3.js → TransferDrawerPage-B_AJgZWp-DigXPWqv.js} +1 -1
  173. package/dist/assets/{TreasuryOverviewPage-kG1jZF28-DFMfLtUz.js → TreasuryOverviewPage-kG1jZF28-DMKR1A4V.js} +1 -1
  174. package/dist/assets/{TreasuryPromoPage-Dy3ExIiy-DKLmlPyB.js → TreasuryPromoPage-Dy3ExIiy-Bp283OQU.js} +1 -1
  175. package/dist/assets/{TreasurySetupPage-Cjr-dp6O-D_HiOnt5.js → TreasurySetupPage-Cjr-dp6O-C-l-1H2J.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-CzOSIKGQ-CtcTNklQ.js → TreasuryStatementsPage-CzOSIKGQ-0WFG00QR.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-CWLf1Zxq-BkcKbbtq.js → TreasuryTaxLetterPage-CWLf1Zxq-CXWJ1-Qv.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-C5F3fmoI-C6lOcQ5d.js → TreasuryTransferOrReviewPage-C5F3fmoI-C8zMpbW2.js} +1 -1
  179. package/dist/assets/{TrendChart-CtjfgQ9g-DU-bY5qU.js → TrendChart-CtjfgQ9g-BJRjUXzH.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-SmcM2UIp-SwKmDId5.js → TrendWithTransactions-SmcM2UIp-C5d9ymd1.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-CXoadwja-CEPslaD_.js → UncategorizedAccountsMappingPage-CXoadwja-DzhfkXvx.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-wYQVQqP7-CMNCVZiN.js → UnitIntegrationPage-wYQVQqP7-v8RvUWji.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-8_c7UpvB-74BXxoUO.js → UploadAdditionalDocumentOverlay-8_c7UpvB-Bslt_vCk.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-DtNSOXbK-B54GFzKj.js → Vendor2FAPopup-DtNSOXbK-wNDJVJxi.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-zNbGGe4q-8GlI6jYy.js → VendorACHDetailsPage-zNbGGe4q-BwH65OEO.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-Cv-MG9iR-l4dRK0G1.js → VendorDetailPage-Cv-MG9iR-DOPDMGdG.js} +1 -1
  187. package/dist/assets/{VendorDomesticWireDetailsPage-BkqtoYAw-CtX9mSuC.js → VendorDomesticWireDetailsPage-BkqtoYAw-DW_ISxxR.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-DYJudj3c-DQ_wjKTT.js → VendorFiling1099EditablePage-DYJudj3c-BDmntwxy.js} +1 -1
  189. package/dist/assets/{VendorFirstReviewPage-BNFIAB9n-BN6v_Gep.js → VendorFirstReviewPage-BNFIAB9n-CMkjgPjr.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-DHa8JoNl-BRi2UVJj.js → VendorInternationalWireDetailsPage-DHa8JoNl-DXBGv9_l.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-a5nSOMXK-BxkY5s8d.js → VendorInternationalWireSwiftDetailsPage-a5nSOMXK-CtApUj4O.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-DwDGbjey-Bypo8ABo.js → VendorsAccountsSection-DwDGbjey-BnqT8gO5.js} +1 -1
  193. package/dist/assets/{WarningsDrawerPage-CaSTx_8h-B-9jNZQU.js → WarningsDrawerPage-CaSTx_8h-DPYwHNpJ.js} +1 -1
  194. package/dist/assets/{ZeniAccountDetailPage-BSOpxKiJ-Bcu_9TPK.js → ZeniAccountDetailPage-BSOpxKiJ-DiHX0Anp.js} +1 -1
  195. package/dist/assets/{ZeniAccountListViewPage-CZM1ODEE-CvbySLjB.js → ZeniAccountListViewPage-CZM1ODEE-7nwnDPnD.js} +1 -1
  196. package/dist/assets/{ZeniAccountNavBarPieces-CjNAr1N9-HkSrs5G-.js → ZeniAccountNavBarPieces-CjNAr1N9-D4X8kgkZ.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-PcyNGe7A-BLBuAvub.js → ZeniAccountPromoPage-PcyNGe7A-DZ8j7vXV.js} +1 -1
  198. package/dist/assets/{ZeniAccountSetupPage-DhJ2zm6A-CuFLGcXY.js → ZeniAccountSetupPage-DhJ2zm6A-1pgco52v.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-CSUSID-7-DBheoLGB.js → ZeniCopyright-CSUSID-7-iphaNpK6.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-DPl7porw-Dl84FVK1.js → ZeniTransferAmountSlider-DPl7porw-CzHQxSzq.js} +1 -1
  201. package/dist/assets/{analyticsHelper-Cex5LOMD-Dxu2vm4u.js → analyticsHelper-Cex5LOMD-6vfR9RDu.js} +1 -1
  202. package/dist/assets/{analyticsHelper-CpvxdbQV.js → analyticsHelper-DIWHj78s.js} +1 -1
  203. package/dist/assets/{chartTypes-Df8u7la0-CtDbCz1y.js → chartTypes-Df8u7la0-CW_-K6_d.js} +1 -1
  204. package/dist/assets/{commonDimensions-OJhakpB_-Bbp60BrB.js → commonDimensions-OJhakpB_-CrVNVIVe.js} +1 -1
  205. package/dist/assets/{detailCommon-4wAnHr6n-CdRaYMXz.js → detailCommon-4wAnHr6n-BRZx-hTR.js} +1 -1
  206. package/dist/assets/{downloadPdf-D02UNVHu-DqpjG06G.js → downloadPdf-D02UNVHu-B994CxlX.js} +1 -1
  207. package/dist/assets/{index-DTlzo6Yx.js → index-TKskHQ6G.js} +3 -3
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-HsZI6Bdg-DBYPe0Tb.js → mapLoadingInProgressToTreeNode-HsZI6Bdg-DoNb6nG3.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-B9KMXCTi-cXLO9gFn.js → mapSectionWithAcOnlyToTreeNode-B9KMXCTi-10MU74Pb.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-BIZ_jwXi-CRlgAghX.js → mapSpacerToTreeNode-BIZ_jwXi-DHxSvoPE.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-BOFrVlzJ-4iwTY3Ct.js → mapTimeframeBalancesToTreeNode-BOFrVlzJ-6EeFiLHX.js} +1 -1
  212. package/dist/assets/{play-icon-BDRoJBSV-DFuHei9M.js → play-icon-BDRoJBSV-ByA0Qy2T.js} +1 -1
  213. package/dist/assets/{toCOABalancesWithID-RJhTPgAt-Cci2ybt-.js → toCOABalancesWithID-RJhTPgAt-B2PsmGaT.js} +1 -1
  214. package/dist/assets/{toChartData-K68FB3Iy-nDeLE4ni.js → toChartData-K68FB3Iy-CD9Avk7S.js} +1 -1
  215. package/dist/assets/{treasuryColorHelper-DjASf5JB-DoMbQSj9.js → treasuryColorHelper-DjASf5JB-6mjtKSpM.js} +1 -1
  216. package/dist/assets/{uploadAttachment-D7Rju7jS-SY7cBnUt.js → uploadAttachment-D7Rju7jS-trcwisP2.js} +1 -1
  217. package/dist/assets/{uploadReceipts-Buvz7DfG-JDslMarZ.js → uploadReceipts-Buvz7DfG-CRSBbTop.js} +1 -1
  218. package/dist/index.html +1 -1
  219. package/package.json +1 -1
  220. package/dist/assets/CustomerOnboardingContainerPage-BmFfAaO1-BI9KTD4O.js +0 -1
@@ -1,4 +1,4 @@
1
- import{X as I,M as y,j as t,aW as D,e as H,Y as b,C as r,t as B,_ as j,bO as E,bQ as q,bR as U,o as i,cq as G,q as l,as as O,Q as z,ar as Q,g as S,cn as V,aN as X,r as Y}from"./index-DTlzo6Yx.js";import{n as o,b as _}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},F=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=_.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(J,{windowSize:n,isLastSection:f,children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},J=o.div`
1
+ import{X as I,M as y,j as t,aW as D,e as H,Y as b,C as r,t as B,_ as j,bO as E,bQ as q,bR as U,o as i,cq as G,q as l,as as O,Q as z,ar as Q,g as S,cn as V,aN as X,r as Y}from"./index-TKskHQ6G.js";import{n as o,b as _}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},F=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=_.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(J,{windowSize:n,isLastSection:f,children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},J=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{V as se,X as b,a5 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as x,o as s,Z as te,c0 as re,u as A,a9 as D,m as ae,C as ne,g as u,c2 as ce,aa as de,av as me,q as pe}from"./index-DTlzo6Yx.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js";import{f as ge,C as V}from"./play-icon-BDRoJBSV-DFuHei9M.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const E="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
1
+ import{V as se,X as b,a5 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as x,o as s,Z as te,c0 as re,u as A,a9 as D,m as ae,C as ne,g as u,c2 as ce,aa as de,av as me,q as pe}from"./index-TKskHQ6G.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-BhC8pSjM-Cx1TqXY4.js";import{f as ge,C as V}from"./play-icon-BDRoJBSV-ByA0Qy2T.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const E="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as _e,X as Oe,a5 as B,a as De,c3 as Re,M as Ue,ab as Q,j as t,cI as He,Y as ze,g as Le,C as u,aW as qe,e as Me,F as Ne,c$ as Ge,aQ as Je,d0 as Xe,bt as Ke,d1 as Qe,a7 as Ye,o as L,q as a,t as Ze,b5 as et}from"./index-DTlzo6Yx.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{F as tt}from"./HelpButton-DXFYhUL5-Co36EHOd.js";import"./SetUpAccountSection-BrYiljyO-B0sFI8H-.js";import{J as H}from"./SetUpDefaultSection-B361ojb9-CxOpM9AT.js";import{p as it}from"./SpendMgmtSetupAccountSection-DdUs96r9-BtVu2Jjy.js";import{g as nt}from"./UploadAdditionalDocumentOverlay-8_c7UpvB-74BXxoUO.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js";import"./ChaseOverlay-BK2ISNjj-S6c-qliM.js";import"./ChargeCardUtils-Dt303NN_-05QPLa2p.js";import"./CreditCardPaymentPlgSection-BLbZFCcL-Bqc-C6eO.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",Ft=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:r,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:q,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=_e(),i=Oe(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,_=$.link_account.updateStatus,O=$.update_account.updateStatus,F=B(p),J=B(b.fetchState),X=B(_.fetchState),K=B(O.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&S(!0),k&&F==="In-Progress"&&p==="Completed"&&S(!1)},[s,p,F]),m.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||X==="In-Progress"&&_.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&x.reset(z(e))},[F,p,x,e,X,_.fetchState,K,O.fetchState]);const Fe=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Ie=async(P,V)=>{const o=V[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&l?.id!=o.fundingAccount.selectedOption){const f=N.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,l.id,l.accType)}}};m.useEffect(()=>{const P=x.watch((V,{name:o})=>{o!=null&&V!=null&&Re(()=>Ie(o,V))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&q()},[q,J,b.fetchState]);const{commonSetUp:Ve,spendManagement:Be}=Ue.getLocalizedStrings(),{setUp:d}=Ve,{billPaySetup:c}=Be.billPay,D=A?.isBusinessVerified===!0&&(l?.accType==="depositAccount"||l?.providerVerificationStatus?.code==="verified"||l?.providerVerificationStatus?.code==="manually_verified"||l?.providerVerificationStatus?.code==="automatically_verified"||l?.providerVerificationStatus?.code==="database_matched"),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:c.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new Q(C.colors.brandColorJadeLight):new Q(C.colors.brandColorJadeDark),$e=()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(at,{ref:M,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(nt,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:s,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:c.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:M,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(st,{windowSize:i,children:[t.jsx(ct,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(ot,{children:[t.jsx(Ne,{...x,children:t.jsx("form",{id:Z(Y),onSubmit:Fe,children:t.jsxs(dt,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(it,{connectedAccountProvider:ee,primaryFundingAccount:l,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Je,{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:c.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Xe,{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})]})})}),r===!0?t.jsx(H,{title:T?c.enableInternationalWireTitle:c.internationWireTitle,subTitle:c.internationalWireSubTitle2,header:c.internationalWireHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color: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(Ke,{title:h.code==="verification_pending"?c.tooltipTexts.pendingInternationalVerificationText:c.tooltipTexts.internationalVerificationFailed,children:t.jsx(lt,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ye,{formId:Z(Y),primaryBtn:{label:c.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:c.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},ot=g.div``,at=g.div`
1
+ import{u as _e,X as Oe,a5 as B,a as De,c3 as Re,M as Ue,ab as Q,j as t,cI as He,Y as ze,g as Le,C as u,aW as qe,e as Me,F as Ne,c$ as Ge,aQ as Je,d0 as Xe,bt as Ke,d1 as Qe,a7 as Ye,o as L,q as a,t as Ze,b5 as et}from"./index-TKskHQ6G.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{F as tt}from"./HelpButton-DXFYhUL5-DlkstZw7.js";import"./SetUpAccountSection-BrYiljyO-Ddc9JCAg.js";import{J as H}from"./SetUpDefaultSection-B361ojb9-__eLpRVi.js";import{p as it}from"./SpendMgmtSetupAccountSection-DdUs96r9-CHrTpPue.js";import{g as nt}from"./UploadAdditionalDocumentOverlay-8_c7UpvB-Bslt_vCk.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-BhC8pSjM-Cx1TqXY4.js";import"./ChaseOverlay-BK2ISNjj-_cGEXU_Z.js";import"./ChargeCardUtils-Dt303NN_-BtVs0nz_.js";import"./CreditCardPaymentPlgSection-BLbZFCcL-CmIMXEAw.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",Ft=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:r,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:q,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=_e(),i=Oe(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,_=$.link_account.updateStatus,O=$.update_account.updateStatus,F=B(p),J=B(b.fetchState),X=B(_.fetchState),K=B(O.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&S(!0),k&&F==="In-Progress"&&p==="Completed"&&S(!1)},[s,p,F]),m.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||X==="In-Progress"&&_.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&x.reset(z(e))},[F,p,x,e,X,_.fetchState,K,O.fetchState]);const Fe=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Ie=async(P,V)=>{const o=V[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&l?.id!=o.fundingAccount.selectedOption){const f=N.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,l.id,l.accType)}}};m.useEffect(()=>{const P=x.watch((V,{name:o})=>{o!=null&&V!=null&&Re(()=>Ie(o,V))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&q()},[q,J,b.fetchState]);const{commonSetUp:Ve,spendManagement:Be}=Ue.getLocalizedStrings(),{setUp:d}=Ve,{billPaySetup:c}=Be.billPay,D=A?.isBusinessVerified===!0&&(l?.accType==="depositAccount"||l?.providerVerificationStatus?.code==="verified"||l?.providerVerificationStatus?.code==="manually_verified"||l?.providerVerificationStatus?.code==="automatically_verified"||l?.providerVerificationStatus?.code==="database_matched"),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:c.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new Q(C.colors.brandColorJadeLight):new Q(C.colors.brandColorJadeDark),$e=()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(at,{ref:M,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(nt,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:s,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:c.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:M,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(st,{windowSize:i,children:[t.jsx(ct,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(ot,{children:[t.jsx(Ne,{...x,children:t.jsx("form",{id:Z(Y),onSubmit:Fe,children:t.jsxs(dt,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(it,{connectedAccountProvider:ee,primaryFundingAccount:l,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Je,{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:c.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Xe,{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})]})})}),r===!0?t.jsx(H,{title:T?c.enableInternationalWireTitle:c.internationWireTitle,subTitle:c.internationalWireSubTitle2,header:c.internationalWireHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color: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(Ke,{title:h.code==="verification_pending"?c.tooltipTexts.pendingInternationalVerificationText:c.tooltipTexts.internationalVerificationFailed,children:t.jsx(lt,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ye,{formId:Z(Y),primaryBtn:{label:c.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:c.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},ot=g.div``,at=g.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{u as fe,X as Ce,a as xe,c3 as Pe,ab as k,M as be,j as t,C as P,aW as Ae,e as Ie,F as ve,aQ as je,c4 as ke,a7 as $e,o as s,h2 as Oe,cw as Be,cx as Ee,q as b,t as Te,gh as Ve,Q as ze,g as Le}from"./index-DTlzo6Yx.js";import{b as W,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as H,e as Me}from"./PaymentAccountSetupBillingAddressSection-DY4eeS5C-DRjMzj0b.js";import{O as Re}from"./SetUpAccountSection-BrYiljyO-B0sFI8H-.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-B361ojb9-CxOpM9AT.js";import"./ChaseOverlay-BK2ISNjj-S6c-qliM.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])},We={title:new ze("standardSemiBold","largeSemiBold")},_="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:J,onUpdateAccountClick:G,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(a),values:F(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(J)}),E=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Be(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Ee(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&G(h.account.selectedOption,y.paymentAccountId)};W.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:V}=be.getLocalizedStrings(),ge=V.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,x=De(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src: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]=W.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:V.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(Fe,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Ge,{children:t.jsx("form",{id:U(_),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(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:B?.code==="require_info"||B?.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}),Ne(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(_),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:E?.fetchState==="In-Progress",isDisabled:E?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:R,setCardSetupInProgress:we})]})},F=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(n,e.subscriptionBillingAddress)[n]}},He=r.div`
1
+ import{u as fe,X as Ce,a as xe,c3 as Pe,ab as k,M as be,j as t,C as P,aW as Ae,e as Ie,F as ve,aQ as je,c4 as ke,a7 as $e,o as s,h2 as Oe,cw as Be,cx as Ee,q as b,t as Te,gh as Ve,Q as ze,g as Le}from"./index-TKskHQ6G.js";import{b as W,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as H,e as Me}from"./PaymentAccountSetupBillingAddressSection-DY4eeS5C-CbrGpXP6.js";import{O as Re}from"./SetUpAccountSection-BrYiljyO-Ddc9JCAg.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-B361ojb9-__eLpRVi.js";import"./ChaseOverlay-BK2ISNjj-_cGEXU_Z.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])},We={title:new ze("standardSemiBold","largeSemiBold")},_="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:J,onUpdateAccountClick:G,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(a),values:F(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(J)}),E=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Be(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Ee(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&G(h.account.selectedOption,y.paymentAccountId)};W.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:V}=be.getLocalizedStrings(),ge=V.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,x=De(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src: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]=W.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:V.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(Fe,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Ge,{children:t.jsx("form",{id:U(_),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(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:B?.code==="require_info"||B?.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}),Ne(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(_),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:E?.fetchState==="In-Progress",isDisabled:E?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:R,setCardSetupInProgress:we})]})},F=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(n,e.subscriptionBillingAddress)[n]}},He=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{M as V,j as b,bO as q,bQ as M,bR as W,jk as z,l as H,aJ as J}from"./index-DTlzo6Yx.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as Q}from"./ReviewOverlay-DGYnF07r-qnvuKuhQ.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{billPay:C}}=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(j(t,u)),[p,k]=_.useState(u),[P,E]=_.useState(0),[f,T]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),P===s.length&&p&&(k(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(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}=Y(y);T({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,X(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=Z(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"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(q,{titleComponent:b.jsx(W,{children:f.title}),descriptionComponent:b.jsx(M,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:O,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:J("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&H.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:G(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??""}}))},X=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=z([...l,e.isRecurring?"recurring":"one-time"])}),l},Y=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)}},Z=(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}},G=(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,X as getBillsUniqueType};
1
+ import{M as V,j as b,bO as q,bQ as M,bR as W,jk as z,l as H,aJ as J}from"./index-TKskHQ6G.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as Q}from"./ReviewOverlay-DGYnF07r-CLP5FyL_.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{billPay:C}}=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(j(t,u)),[p,k]=_.useState(u),[P,E]=_.useState(0),[f,T]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),P===s.length&&p&&(k(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(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}=Y(y);T({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,X(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=Z(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"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(q,{titleComponent:b.jsx(W,{children:f.title}),descriptionComponent:b.jsx(M,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:O,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:J("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&H.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:G(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??""}}))},X=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=z([...l,e.isRecurring?"recurring":"one-time"])}),l},Y=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)}},Z=(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}},G=(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,X as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{X as a,j as s,Y as b,o as r}from"./index-DTlzo6Yx.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-OJhakpB_-Bbp60BrB.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=a();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const h=p.div`
1
+ import{X as a,j as s,Y as b,o as r}from"./index-TKskHQ6G.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-OJhakpB_-CrVNVIVe.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,a5 as Se,j as i,M as Te,i as G,a as it,ch as at,l as L,z as st,c3 as nt,aJ as ot,a0 as rt,K as lt,aW as ct,Y as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,e as yt,F as ht,a7 as gt,o as r,C as P,m as $e,fE as xt,fc as Ce,cw as wt,c0 as St,a6 as Ct,t as ke,Q as bt,h as vt,q as k}from"./index-DTlzo6Yx.js";import{b as j,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-C7fuDGQk-IsFgAXuq.js";import{r as $t}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-BmSVDTMx-CBdRfhaZ.js";import"./LabeledCreatableSingleSelectField-Bh-cfR9F-Cgfy3beB.js";import"./LabeledDocumentField-YBoeNDoD-DV_I5uPN.js";import"./DocumentSecurityBanner-DV9HE3MK-LQKK6f7V.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,k[3]),subTitlePaddingBottom:new P(k[3],k[3]),verificationDetailsRowGap:new P(12,k[5],k[5]),termsPaddingLeftRight:new P(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:It,currency:Nt,footer:ve,strings:{empty:Pt}}}=Te.getLocalizedStrings(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:B,productType:y,allIndustries:z,companyTitles:E,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:Ne,onBackClick:O,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,onSendForVerificationClick:Oe,onEditFileName:ee,onCompanyDetailsChanged:Ve,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:Be})=>{const ze=et(),m=tt(),{updateStatus:R,companyView:V,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=V?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(zt,{children:[s.terms.term1,i.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,W]=j.useState(!1),[M,se]=j.useState("save"),[Z,Me]=j.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:jt(t,z,E,A)}),{isValid:Ge}=u.formState,q=V?.company.company.companyBillPayInfo,K=V?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?K?.companyVerificationStatus:q?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,We=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,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,we=Y?.email;a!=null&&f!=null&&C!=null&&$!=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&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,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:we},y,n?"Settings":void 0)},Ze=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",$=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!$?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},qe=()=>{const e=S[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},Ke=u.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){u.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Ge&&(We(),Oe?.(T))}),Qe=async(e,a)=>{e.includes(b)?Ve?.(a[b]):e.includes(v)&&Ae?.(a[v])},Xe=j.useCallback(st((e,a)=>{Qe(e,a)},300),[]);j.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>Xe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(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=V?.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),O();const e=[],a=V?.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($=>{C.includes($)||e.push($)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{W(!1)}},He=ot(rt(p),p,Nt.currencySymbol).toUpperCase(),X=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(Kt,{children:[i.jsx($t,{}),i.jsx(Qt,{windowSize:m,children:s.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:O,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Pt:s.header,backgroundColor:ze.colors.grey5,style:{zIndex:Z?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?W(!0):O()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?i.jsx(Xt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{O()}}):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||w===!1)&&i.jsx(Vt,{windowSize:m,children:n?It.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...u,children:i.jsxs("form",{id:De(be),onSubmit:Ke,children:[h&&w===!0&&i.jsxs(Ot,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:X?s.businessVerificationDetails:s.verifyBusinessDetails}),!X&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Wt,{})]})})]}),i.jsx(Ie,{isReadonly:X,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:S,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:B,isPopupOpen:Z,openPopup:Me,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,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:B,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:Ne,connectedAccountProvider:U,allIndustries:z})]}),y==="zeni_accounts"?i.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)O();else{const e=S[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ze(),C=qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:Z?0:4}}):null]})},jt=(t,A,F,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:B,companyView:y}=t,z=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:z.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(B).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:wt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.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`,Ft=d.div`
1
+ import{u as et,X as tt,a5 as Se,j as i,M as Te,i as G,a as it,ch as at,l as L,z as st,c3 as nt,aJ as ot,a0 as rt,K as lt,aW as ct,Y as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,e as yt,F as ht,a7 as gt,o as r,C as P,m as $e,fE as xt,fc as Ce,cw as wt,c0 as St,a6 as Ct,t as ke,Q as bt,h as vt,q as k}from"./index-TKskHQ6G.js";import{b as j,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-C7fuDGQk-B7QDLQOm.js";import{r as $t}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-BmSVDTMx-W4F3bMXy.js";import"./LabeledCreatableSingleSelectField-Bh-cfR9F-SGD1YoYM.js";import"./LabeledDocumentField-YBoeNDoD-BF5u2geR.js";import"./DocumentSecurityBanner-DV9HE3MK-0JAHbgRm.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,k[3]),subTitlePaddingBottom:new P(k[3],k[3]),verificationDetailsRowGap:new P(12,k[5],k[5]),termsPaddingLeftRight:new P(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:It,currency:Nt,footer:ve,strings:{empty:Pt}}}=Te.getLocalizedStrings(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:B,productType:y,allIndustries:z,companyTitles:E,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:Ne,onBackClick:O,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,onSendForVerificationClick:Oe,onEditFileName:ee,onCompanyDetailsChanged:Ve,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:Be})=>{const ze=et(),m=tt(),{updateStatus:R,companyView:V,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=V?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(zt,{children:[s.terms.term1,i.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,W]=j.useState(!1),[M,se]=j.useState("save"),[Z,Me]=j.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:jt(t,z,E,A)}),{isValid:Ge}=u.formState,q=V?.company.company.companyBillPayInfo,K=V?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?K?.companyVerificationStatus:q?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,We=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,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,we=Y?.email;a!=null&&f!=null&&C!=null&&$!=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&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,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:we},y,n?"Settings":void 0)},Ze=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",$=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!$?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},qe=()=>{const e=S[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},Ke=u.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){u.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Ge&&(We(),Oe?.(T))}),Qe=async(e,a)=>{e.includes(b)?Ve?.(a[b]):e.includes(v)&&Ae?.(a[v])},Xe=j.useCallback(st((e,a)=>{Qe(e,a)},300),[]);j.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>Xe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(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=V?.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),O();const e=[],a=V?.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($=>{C.includes($)||e.push($)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{W(!1)}},He=ot(rt(p),p,Nt.currencySymbol).toUpperCase(),X=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(Kt,{children:[i.jsx($t,{}),i.jsx(Qt,{windowSize:m,children:s.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:O,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Pt:s.header,backgroundColor:ze.colors.grey5,style:{zIndex:Z?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?W(!0):O()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?i.jsx(Xt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{O()}}):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||w===!1)&&i.jsx(Vt,{windowSize:m,children:n?It.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...u,children:i.jsxs("form",{id:De(be),onSubmit:Ke,children:[h&&w===!0&&i.jsxs(Ot,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:X?s.businessVerificationDetails:s.verifyBusinessDetails}),!X&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Wt,{})]})})]}),i.jsx(Ie,{isReadonly:X,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:S,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:B,isPopupOpen:Z,openPopup:Me,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,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:B,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:Ne,connectedAccountProvider:U,allIndustries:z})]}),y==="zeni_accounts"?i.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)O();else{const e=S[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ze(),C=qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:Z?0:4}}):null]})},jt=(t,A,F,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:B,companyView:y}=t,z=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:z.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(B).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:wt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.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`,Ft=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{X as g,M as w,j as t,r as x,Q as $,o as s,h as C}from"./index-DTlzo6Yx.js";import{n as o,b as d}from"./vendor-CnQcJ2Lu.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
1
+ import{X as g,M as w,j as t,r as x,Q as $,o as s,h as C}from"./index-TKskHQ6G.js";import{n as o,b as d}from"./vendor-CnQcJ2Lu.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
2
2
  ${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;
@@ -1,4 +1,4 @@
1
- import{u as k,X as f,j as t,aW as te,M as w,cO as L,r as u,ao as q,bC as ie,o as i,g as B,C as h,t as v,de as oe,l as y,q as l,b6 as re,b7 as ae,aB as se,aA as ne,aJ as de,b8 as le,ba as ce,ix as he,_ as O,bm as pe,Y as P,v as $,iy as X,iz as _,ig as me,bY as ge,b$ as xe,m as T,ih as we,ii as ue}from"./index-DTlzo6Yx.js";import{n as o,f as Y,b as V}from"./vendor-CnQcJ2Lu.js";import{F as ye}from"./InsightsSection-DYyHpcUE-N_KvwWiO.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-6Q5ZVqKl-C4jKPBGn.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,aW as te,M as w,cO as L,r as u,ao as q,bC as ie,o as i,g as B,C as h,t as v,de as oe,l as y,q as l,b6 as re,b7 as ae,aB as se,aA as ne,aJ as de,b8 as le,ba as ce,ix as he,_ as O,bm as pe,Y as P,v as $,iy as X,iz as _,ig as me,bY as ge,b$ as xe,m as T,ih as we,ii as ue}from"./index-TKskHQ6G.js";import{n as o,f as Y,b as V}from"./vendor-CnQcJ2Lu.js";import{F as ye}from"./InsightsSection-DYyHpcUE-HYI1Vcwh.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-6Q5ZVqKl-1NSygZW-.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 Ye,X as Ce,V as st,d3 as dt,fe as Ka,l as Ze,gY as qr,ab as _e,M as he,ff as Xa,j as t,gm as Gr,aW as Kr,q as c,fn as Ja,_ as xe,Y,o as a,bt as Pt,g as p,ij as Qa,r as Z,bO as Xr,ik as Jr,cI as Qr,gd as ei,a as ti,gg as ai,co as ri,C as I,p as ii,F as oi,fF as ni,K as ft,aZ as si,bf as er,a9 as Mt,il as di,im as tr,b5 as ar,av as Vt,eS as ci,aa as rr,ak as li,io as hi,ip as pi,aq as Ot,v as me,ew as ui,ie as mi,ee as ct,fg as ir,e as nt,ao as gi,dj as Ci,bT as fi,bQ as wi,cv as xi,gV as yi,t as ye,eY as or,iq as bi,fh as je,dr as wt,c_ as Si,Q as ha,h as nr,as as $i,ir as vi,eQ as ki,bY as sr,is as Li,w as mt,bC as pa,aR as ji,db as Ii,eB as Di,m as at,fb as Ai,Z as Ti,k as Ri,a6 as Fi,a$ as Ei,it as yt,cW as zi,bm as Pi,iu as dr,iv as cr,f$ as lr,iw as xt,hH as hr,ig as Mi,b$ as Vi,eb as pr,ih as Oi,ii as Hi,c$ as Ni,cq as Bi,ei as Wi,bF as Ui,bG as _i}from"./index-DTlzo6Yx.js";import{b as o,n as r,j as pe,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-6Q5ZVqKl-C4jKPBGn.js";import{L as qi,H as et,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-Dt303NN_-05QPLa2p.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-DuTv0ip1-BQ2cCq6Y.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-Buvz7DfG-JDslMarZ.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=he.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:D,setWalletType:v,setIsAddToWalletDrawerOpen:O,isDebitCard:T})=>{const z=dt().analytics,{isIPadScreen:G}=hi(),{isAndroidScreen:J}=pi(),U=st(),A=Ze.hasChargeCardAdminLevelAccess(U.loggedInUserRoleMap);return t.jsx(io,{style:g,children:G===!0?t.jsx(zt,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):J===!0?t.jsx(Et,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{v("apple"),D.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Et,{onClick:()=>{v("google"),D.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Et=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Y("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Y("add-to-apple-wallet-button")})},io=r.div`
1
+ import{u as Ye,X as Ce,V as st,d3 as dt,fe as Ka,l as Ze,gY as qr,ab as _e,M as he,ff as Xa,j as t,gm as Gr,aW as Kr,q as c,fn as Ja,_ as xe,Y,o as a,bt as Pt,g as p,ij as Qa,r as Z,bO as Xr,ik as Jr,cI as Qr,gd as ei,a as ti,gg as ai,co as ri,C as I,p as ii,F as oi,fF as ni,K as ft,aZ as si,bf as er,a9 as Mt,il as di,im as tr,b5 as ar,av as Vt,eS as ci,aa as rr,ak as li,io as hi,ip as pi,aq as Ot,v as me,ew as ui,ie as mi,ee as ct,fg as ir,e as nt,ao as gi,dj as Ci,bT as fi,bQ as wi,cv as xi,gV as yi,t as ye,eY as or,iq as bi,fh as je,dr as wt,c_ as Si,Q as ha,h as nr,as as $i,ir as vi,eQ as ki,bY as sr,is as Li,w as mt,bC as pa,aR as ji,db as Ii,eB as Di,m as at,fb as Ai,Z as Ti,k as Ri,a6 as Fi,a$ as Ei,it as yt,cW as zi,bm as Pi,iu as dr,iv as cr,f$ as lr,iw as xt,hH as hr,ig as Mi,b$ as Vi,eb as pr,ih as Oi,ii as Hi,c$ as Ni,cq as Bi,ei as Wi,bF as Ui,bG as _i}from"./index-TKskHQ6G.js";import{b as o,n as r,j as pe,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-6Q5ZVqKl-1NSygZW-.js";import{L as qi,H as et,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-Dt303NN_-BtVs0nz_.js";import{A as Gi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-DuTv0ip1-BfLMEqKn.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-Buvz7DfG-CRSBbTop.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=he.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:D,setWalletType:v,setIsAddToWalletDrawerOpen:O,isDebitCard:T})=>{const z=dt().analytics,{isIPadScreen:G}=hi(),{isAndroidScreen:J}=pi(),U=st(),A=Ze.hasChargeCardAdminLevelAccess(U.loggedInUserRoleMap);return t.jsx(io,{style:g,children:G===!0?t.jsx(zt,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):J===!0?t.jsx(Et,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{v("apple"),D.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Et,{onClick:()=>{v("google"),D.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Et=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Y("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Y("add-to-apple-wallet-button")})},io=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{d3 as $t,V as St,fm as jt,l as T,fh as v,X as he,M as Be,o as a,u as _e,j as t,aW as vt,fA as kt,cO as A,r as C,bt as le,g as n,_ as Pt,aJ as de,Y as pe,C as B,v as L,Q as It,h as Mt,cl as Tt,b4 as Fe,b5 as At,ak as me,a9 as Lt,m as ue,q as I,d4 as Et,Z as Rt,t as Dt,c0 as zt,ck as Ot,aP as Nt}from"./index-DTlzo6Yx.js";import{b as N,n as i,j as ge,k as Bt}from"./vendor-CnQcJ2Lu.js";import{Y as _t}from"./SpendManagementSection-B7pMvj7Z-BAsdHFSu.js";import{ChargeCardPromoUserContent as Ft}from"./ChargeCardPromoPage-DZ1f8Sus-BW8ozxyr.js";import{A as Ut,J as Wt}from"./PromoBaseCards-DNSnqS61-Al7XKWVe.js";import{M as Yt}from"./ChargeCardListTable-B1a9-RYl-DFaeigKK.js";import{r as Gt,i as Jt}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Ht,o as Vt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js";import"./NavigationDots-6Q5ZVqKl-C4jKPBGn.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-LDwLOgxI-DZ0xBJbp.js";import"./RoleWithToolTip-VlYG_GPv-D1yDUHv7.js";import"./CardNumberSubText-DuTv0ip1-BQ2cCq6Y.js";import"./ChargeCardUtils-Dt303NN_-05QPLa2p.js";const xe={infoSubheadingTextMarginTop:new B(I[0],I[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:d,title:h,subTitle:r,slidingTextList:u,onClick:l})=>{const p=he();return t.jsxs(Qt,{windowSize:p,cardPromoType:e,"data-testid":pe("list-page-promo-card",e),onClick:()=>l(e),children:[t.jsxs(Ue,{children:[t.jsxs(Ye,{children:[t.jsx(We,{children:d}),t.jsx(Xt,{children:h}),t.jsx(aa,{children:r})]}),t.jsxs(ia,{children:[t.jsx(ra,{}),u.length>0&&t.jsx(ce,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(na,{})]})]}),t.jsx(oa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(sa,{children:t.jsx(Wt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:d,creditLimit:h,onCreateNowClick:r})=>{const u=he();return t.jsx(Zt,{windowSize:u,cardType:e,children:t.jsxs(Kt,{children:[t.jsxs(Ye,{children:[t.jsx(We,{children:s}),t.jsx(ta,{children:t.jsx(ea,{children:d})}),t.jsx(la,{windowSize:u,children:t.jsxs(da,{windowSize:u,onClick:()=>r(e),"data-testid":pe("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ca,{})]})})]}),e==="creditCard"?t.jsxs(ha,{children:[t.jsx(pa,{children:ve.creditLimit}),t.jsx(ma,{children:h})]}):null]})})},qt=e=>{const s=e-1;let d=`
1
+ import{d3 as $t,V as St,fm as jt,l as T,fh as v,X as he,M as Be,o as a,u as _e,j as t,aW as vt,fA as kt,cO as A,r as C,bt as le,g as n,_ as Pt,aJ as de,Y as pe,C as B,v as L,Q as It,h as Mt,cl as Tt,b4 as Fe,b5 as At,ak as me,a9 as Lt,m as ue,q as I,d4 as Et,Z as Rt,t as Dt,c0 as zt,ck as Ot,aP as Nt}from"./index-TKskHQ6G.js";import{b as N,n as i,j as ge,k as Bt}from"./vendor-CnQcJ2Lu.js";import{Y as _t}from"./SpendManagementSection-B7pMvj7Z-BevuB57w.js";import{ChargeCardPromoUserContent as Ft}from"./ChargeCardPromoPage-DZ1f8Sus-CrAJDBWK.js";import{A as Ut,J as Wt}from"./PromoBaseCards-DNSnqS61-CLhZIu7j.js";import{M as Yt}from"./ChargeCardListTable-B1a9-RYl-8-NCK6N-.js";import{r as Gt,i as Jt}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Ht,o as Vt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-BhC8pSjM-Cx1TqXY4.js";import"./NavigationDots-6Q5ZVqKl-1NSygZW-.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-LDwLOgxI-E3mMzAU7.js";import"./RoleWithToolTip-VlYG_GPv-OoaqrNWo.js";import"./CardNumberSubText-DuTv0ip1-BfLMEqKn.js";import"./ChargeCardUtils-Dt303NN_-BtVs0nz_.js";const xe={infoSubheadingTextMarginTop:new B(I[0],I[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:d,title:h,subTitle:r,slidingTextList:u,onClick:l})=>{const p=he();return t.jsxs(Qt,{windowSize:p,cardPromoType:e,"data-testid":pe("list-page-promo-card",e),onClick:()=>l(e),children:[t.jsxs(Ue,{children:[t.jsxs(Ye,{children:[t.jsx(We,{children:d}),t.jsx(Xt,{children:h}),t.jsx(aa,{children:r})]}),t.jsxs(ia,{children:[t.jsx(ra,{}),u.length>0&&t.jsx(ce,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(na,{})]})]}),t.jsx(oa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(sa,{children:t.jsx(Wt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:d,creditLimit:h,onCreateNowClick:r})=>{const u=he();return t.jsx(Zt,{windowSize:u,cardType:e,children:t.jsxs(Kt,{children:[t.jsxs(Ye,{children:[t.jsx(We,{children:s}),t.jsx(ta,{children:t.jsx(ea,{children:d})}),t.jsx(la,{windowSize:u,children:t.jsxs(da,{windowSize:u,onClick:()=>r(e),"data-testid":pe("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ca,{})]})})]}),e==="creditCard"?t.jsxs(ha,{children:[t.jsx(pa,{children:ve.creditLimit}),t.jsx(ma,{children:h})]}):null]})})},qt=e=>{const s=e-1;let d=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{j as i,X as V,V as ee,d3 as fi,u as de,fe as $i,i9 as vi,ia as Ci,ib as yi,Y as b,M as _,bL as ji,r as oe,g as y,ao as bi,bT as ki,ic as Si,id as Ii,o as r,bf as zi,a9 as Li,C as p,ew as Ri,av as Pi,ie as Di,aa as Ui,ee as Ni,v as O,fg as Ti,q as a,dr as Vi,_ as T,bV as De,e as Ue,bt as le,bm as _i,m as k,bY as we,t as U,i4 as ue,b5 as Ne,bd as Te,ig as Mi,b$ as Ei,ab as Q,ih as Fi,ii as Oi}from"./index-DTlzo6Yx.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{A as Ve}from"./Menu-LDwLOgxI-DZ0xBJbp.js";import{T as _e}from"./RoleWithToolTip-VlYG_GPv-D1yDUHv7.js";import{R as ce}from"./CardNumberSubText-DuTv0ip1-BQ2cCq6Y.js";import{_ as Me}from"./ChargeCardUtils-Dt303NN_-05QPLa2p.js";const W=_.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=_.getLocalizedStrings().common.strings.empty,$e={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Ee=e=>e===!0?[{...$e,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[$e,ve,Ce,ye,je,be],z={containerPaddingLeft:r.sp2,containerPaddingRight:r.sp3,containerPaddingTop:r.sp3,containerPaddingBottom:r.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Fi,Oi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=V(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Ee(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===t.sortKey?g.sortOrder=t.sortOrder:g.sortOrder="ascending";w(s)},[t.sortKey,t.sortOrder]);const u=(s,g)=>{let $=g;t.sortKey===s&&($=g==="ascending"?"descending":"ascending"),h(s,$)},f=c.find(s=>s.key===t.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=_.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Qi,{children:[i.jsx(Zi,{children:i.jsx(Xi,{})}),i.jsx(_i,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:t.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:oe.extraSmallRegular,titleTextStyle:oe.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rr,{onClick:()=>u(f.key,f.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:f.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:f,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Bi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Yi,{companyNameSticky:e,sortDataValue:t.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(ir,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(er,{sortDataValue:t.sortKey,windowSize:l,isVisible:t.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Gi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Wi.memo(Hi),qi=o.div`
1
+ import{j as i,X as V,V as ee,d3 as fi,u as de,fe as $i,i9 as vi,ia as Ci,ib as yi,Y as b,M as _,bL as ji,r as oe,g as y,ao as bi,bT as ki,ic as Si,id as Ii,o as r,bf as zi,a9 as Li,C as p,ew as Ri,av as Pi,ie as Di,aa as Ui,ee as Ni,v as O,fg as Ti,q as a,dr as Vi,_ as T,bV as De,e as Ue,bt as le,bm as _i,m as k,bY as we,t as U,i4 as ue,b5 as Ne,bd as Te,ig as Mi,b$ as Ei,ab as Q,ih as Fi,ii as Oi}from"./index-TKskHQ6G.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{A as Ve}from"./Menu-LDwLOgxI-E3mMzAU7.js";import{T as _e}from"./RoleWithToolTip-VlYG_GPv-OoaqrNWo.js";import{R as ce}from"./CardNumberSubText-DuTv0ip1-BfLMEqKn.js";import{_ as Me}from"./ChargeCardUtils-Dt303NN_-BtVs0nz_.js";const W=_.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=_.getLocalizedStrings().common.strings.empty,$e={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Ee=e=>e===!0?[{...$e,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[$e,ve,Ce,ye,je,be],z={containerPaddingLeft:r.sp2,containerPaddingRight:r.sp3,containerPaddingTop:r.sp3,containerPaddingBottom:r.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Fi,Oi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=V(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Ee(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===t.sortKey?g.sortOrder=t.sortOrder:g.sortOrder="ascending";w(s)},[t.sortKey,t.sortOrder]);const u=(s,g)=>{let $=g;t.sortKey===s&&($=g==="ascending"?"descending":"ascending"),h(s,$)},f=c.find(s=>s.key===t.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=_.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Qi,{children:[i.jsx(Zi,{children:i.jsx(Xi,{})}),i.jsx(_i,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:t.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:oe.extraSmallRegular,titleTextStyle:oe.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rr,{onClick:()=>u(f.key,f.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:f.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:f,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Bi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Yi,{companyNameSticky:e,sortDataValue:t.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(ir,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(er,{sortDataValue:t.sortKey,windowSize:l,isVisible:t.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Gi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Wi.memo(Hi),qi=o.div`
2
2
  top: ${r.sp0};
3
3
  left: ${r.sp0};
4
4
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{X as f,M as Z,j as r,u as F,V as ce,d3 as me,a5 as pe,_ as ue,l as xe,fm as he,aW as ge,o as t,c0 as we,k as Y,c1 as fe,Z as $e,C as x,bP as ye,bt as Ce,K as V,Y as K,i8 as be,r as Se,q as p,Q as C,g as y,av as je,aa as ze}from"./index-DTlzo6Yx.js";import{b,n as a,j as Te}from"./vendor-CnQcJ2Lu.js";import{x as ve}from"./MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js";import{f as Pe}from"./NavigationDots-6Q5ZVqKl-C4jKPBGn.js";import{J as D,A as E}from"./PromoBaseCards-DNSnqS61-Al7XKWVe.js";import{M as L}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const m={midContainerMarginBottom:new x(p[5],p[7]),containerPaddingTopBottom:new x(p[0],p[0]),containerPaddingLeftRight:new x(p[3],p[8]),uspContainerMarginX:new x(p[6],p[0]),buttonTrayGap:new x(12,p[4]),midContainerGap:new x(p[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(p[6],43),navigationBottom:new x(p[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,p[4]),carouselMarginLeft:new x(120,p[12])},S={promoBadgeText:new C("standardRegular","largeRegular"),promoBadgeTextBold:new C("standardBold","largeBold"),cardsContent:new C("extraSmallRegular","smallRegular"),contactAdmin:new C("extraSmallRegular","smallRegular"),uspText:new C("smallRegular","standardRegular"),uspBoldText:new C("smallMedium","standardMedium")},{spendManagement:{chargeCard:{chargeCardsPromo:s}}}=Z.getLocalizedStrings(),wr=({meetingUrl:e,companyLegalName:n,chargeCardSetupView:d,showEnableCardButton:i,controllerEmails:o,isCardsOnlyTenantOrCreditCardFeatureEnabled:h,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:j,isChargeCardSetupEnabled:g,admins:z,cashbackRate:M,cardPromoType:$="credit",onSetupButtonClick:c,onBackClick:l,onClickMenuIcon:ie,onSetupChargeCardSuccess:N})=>{const ae=F(),O=ce(),A=f(),H=me().analytics,{chargeCardTermsDetails:_,companyChargeCardInfo:U,companyLocaleInfo:I}=d,G=pe(_?.fetchStatus.fetchState),[oe,J]=b.useState(!1),ne=()=>{H.trackCardsPromoPageClicked("schedule demo"),H.trackCardsScheduleDemoClick(o,{isCreditCardOffered:h,isDebitCardOffered:u,isDebitCardEnabled:j,isCreditCardEnabled:g},"Cards Promo"),J(!0)},se=U!=null&&I!=null?ue("0,0",{amount:U.chargeCardsCreditAccountLimit,currencyCode:I.currencyCode,currencySymbol:I.currencySymbol}):void 0;b.useEffect(()=>{G==="In-Progress"&&_?.fetchStatus.fetchState==="Completed"&&N()},[G,N,_?.fetchStatus]);const de=xe.hasChargeCardAdminLevelAccess(O.loggedInUserRoleMap),le=he(O);return r.jsxs(Ie,{children:[r.jsx(ge,{title:s.title[$],backgroundColor:ae.colors.grey4,onBackClick:l,showBackButton:!0,showMenuIcon:A==="medium-compact"||A==="small",onClickMenuIcon:ie,style:{zIndex:9},source:"ChargeCardPromoPage"}),oe===!0?r.jsx(ve,{onCancelClick:()=>{J(!1)},meetingUrl:e}):null,r.jsx(Re,{windowSize:A,children:de===!0?r.jsxs(r.Fragment,{children:[r.jsx(Le,{creditAmount:se,cardPromoType:$}),r.jsx(q,{forAdmin:!0,cardPromoType:$,cashbackRate:M}),r.jsx(Be,{showEnableCardButton:i,chargeCardSetupView:d,handleSecondaryBtnClick:ne,onSetupButtonClick:()=>c($)})]}):r.jsx(Me,{companyLegalName:n,cards:[],admins:z,hasZeniFinopsRoles:le,cardPromoType:$})})]})},ke=({admins:e})=>{const n=e.flatMap(i=>i.user?.firstName+" "+i.user?.lastName).join(", "),d=f();return r.jsxs(Ye,{windowSize:d,children:[r.jsx(R,{underline:!1,windowSize:d,children:s.noCardAssigned.pre}),r.jsx(Ce,{title:n,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(R,{underline:!0,windowSize:d,children:s.noCardAssigned.tooltip})}),r.jsx(R,{underline:!1,windowSize:d,children:s.noCardAssigned.post})]})},Be=({showEnableCardButton:e,chargeCardSetupView:n,handleSecondaryBtnClick:d,onSetupButtonClick:i})=>{const o=f();return r.jsxs(He,{windowSize:o,children:[r.jsxs(Ue,{windowSize:o,children:[r.jsx(V,{variant:"secondary",label:s.scheduleDemoButton,onClick:d,"data-testid":K("schedule-demo-button")}),r.jsx(V,{variant:"primary",label:e?s.enableCardsButton:s.setupCardsButton,loading:n.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress",onClick:i,style:{width:"146px"},"data-testid":K("enable-card-button")})]}),r.jsx(be,{textStyle:Se.smallRegular.cssObject,buttonTermLabel:e?s.terms.alternateTerm1:s.terms.terms1,showEndIcon:!0})]})},Le=({cardPromoType:e,creditAmount:n})=>{const d=f(),i=e==="debit_and_credit"?s.promoTextDebitCreditCard:e==="debit"?s.promoTextDebitCard:s.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:d==="small"?r.jsxs(r.Fragment,{children:[r.jsx(re,{children:i}),r.jsx(te,{children:s.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(Q,{children:i}),r.jsx(ee,{children:s.promoSubText})]})}),r.jsx(Ee,{cardPromoType:e,hideBadge:n==null||e==="debit",windowSize:d,children:r.jsxs(Fe,{windowSize:d,children:[s.promoBadgeText,r.jsx(Ne,{children:n}),s.creditLimit]})})]})},Me=({companyLegalName:e,cards:n,admins:d,hasZeniFinopsRoles:i,cardPromoType:o="credit"})=>{const h=f(),u=o==="debit_and_credit"?s.promoTextDebitCreditCard:o==="debit"?s.promoTextDebitCard:s.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[h==="small"?r.jsxs(r.Fragment,{children:[r.jsx(re,{children:u}),r.jsx(te,{children:s.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(Q,{children:u}),r.jsx(ee,{children:s.promoSubText})]}),n.length===0?r.jsx(Ze,{windowSize:h}):r.jsx(Ae,{cards:n,companyLegalName:e}),r.jsx(q,{forAdmin:!1,cardPromoType:o}),i?null:r.jsx(ke,{admins:d})]})},Ae=({cards:e,companyLegalName:n})=>{const d=F(),i=f();let o="",h;if(e.length===1){h=e[0].cardCreatedByUser.photo;const u=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;o=s.cardAssigned.singleCreditCard.replace("__issuing-user__",u).replace("__company-name__",n)}else o=s.cardAssigned.multipleCreditCards.replace("__company-name__",n);return r.jsxs(Qe,{children:[h!=null?r.jsx(De,{width:t.sp5,height:t.sp5,style:{paddingTop:i==="small"?t.sp1:t.sp0},src:h.href,alt:Z.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:u})=>{u.onerror=null,u.src=ye},loading:"lazy"}):null,r.jsx(qe,{windowSize:i,mode:d.mode,children:r.jsx(er,{windowSize:i,children:o})})]})},W=({windowSize:e,cardPromoType:n})=>{let d=s.businessText;return n==="debit"&&(d=`${d} ${s.debit}`),r.jsx(r.Fragment,{children:n==="debit_and_credit"?r.jsx(_e,{}):r.jsxs(Je,{windowSize:e,children:[r.jsx(D,{cardPromoType:n,cardText:d,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(E,{cardPromoType:n,cardText:d,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},q=({forAdmin:e,cardPromoType:n,cashbackRate:d})=>{const i=f(),o=e?s.admin:s.nonAdmin;return r.jsxs(Oe,{windowSize:i,children:[i==="small"?r.jsx(W,{windowSize:i,cardPromoType:n}):null,r.jsxs(Ge,{windowSize:i,children:[r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(We,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item1.pre}),r.jsx(P,{windowSize:i,children:e&&d!=null?o.item1.bold.replace("__cashback__",(d*100).toFixed(2)):o.item1.bold}),r.jsx(w,{windowSize:i,children:o.item1.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Ve,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item2.pre}),r.jsx(P,{windowSize:i,children:o.item2.bold}),r.jsx(w,{windowSize:i,children:o.item2.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Xe,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item3.pre}),r.jsx(P,{windowSize:i,children:o.item3.bold}),r.jsx(w,{windowSize:i,children:o.item3.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Ke,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item4.pre}),r.jsx(P,{windowSize:i,children:o.item4.bold}),r.jsx(w,{windowSize:i,children:o.item4.post})]})]})]}),i==="small"?null:r.jsx(W,{windowSize:i,cardPromoType:n})]})};let T;const _e=()=>{const e=f(),n=F(),[d,i]=b.useState(0),[o,h]=b.useState(!1),u=s.businessText,j=`${u} ${s.debit}`,g=[{id:1,cardType:"debit",cardText:j},{id:2,cardType:"debit",cardText:j},{id:3,cardType:"credit",cardText:u},{id:4,cardType:"credit",cardText:u}];b.useEffect(()=>(o||(T=setInterval(()=>{i(c=>{const l=c+1;return l===g.length?(h(!0),0):l})},2e3)),()=>clearInterval(T)),[o,g.length]),b.useEffect(()=>{o&&T!=null&&clearInterval(T)},[o]);const z=(c,l)=>{switch((c-d+g.length)%g.length){case 0:return{transform:`translate(0,${l?"100%":0}) scale(1)`,zIndex:l?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${l?"80%":"5%"}) scale(0.75)`,zIndex:l?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};default:return}},M=c=>{const l=z(c,!0);return{...l,transform:`${l?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},$=c=>{o||h(!0),i(c)};return r.jsxs(rr,{windowSize:e,children:[r.jsx(tr,{windowSize:e,children:g.map((c,l)=>r.jsxs(ir,{children:[r.jsx(X,{isReflection:!1,style:{...z(l,!1)},onClick:()=>$(l),children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:n.colors.grey2,...n.mode==="light"&&{borderBottom:"none"}}}):r.jsx(E,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:n.colors.grey2,...n.mode==="light"&&{borderBottom:"none"}}})},c.id),r.jsx(X,{isReflection:!0,style:{...M(l)},children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(E,{cardPromoType:c.cardType,cardText:c.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${c.id}`)]},c.id))}),o&&r.jsx(Pe,{numberOfDots:g.length,activeIndex:d,handleClick:i,promoColor:n.colors.primary,promoColorHover:n.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:m.navigationBottom.valuePx(e),left:m.navigationLeft.valuePx(e),zIndex:7}})]})},Ie=a.div`
1
+ import{X as f,M as Z,j as r,u as F,V as ce,d3 as me,a5 as pe,_ as ue,l as xe,fm as he,aW as ge,o as t,c0 as we,k as Y,c1 as fe,Z as $e,C as x,bP as ye,bt as Ce,K as V,Y as K,i8 as be,r as Se,q as p,Q as C,g as y,av as je,aa as ze}from"./index-TKskHQ6G.js";import{b,n as a,j as Te}from"./vendor-CnQcJ2Lu.js";import{x as ve}from"./MeetingCalenderPopup-BhC8pSjM-Cx1TqXY4.js";import{f as Pe}from"./NavigationDots-6Q5ZVqKl-1NSygZW-.js";import{J as D,A as E}from"./PromoBaseCards-DNSnqS61-CLhZIu7j.js";import{M as L}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const m={midContainerMarginBottom:new x(p[5],p[7]),containerPaddingTopBottom:new x(p[0],p[0]),containerPaddingLeftRight:new x(p[3],p[8]),uspContainerMarginX:new x(p[6],p[0]),buttonTrayGap:new x(12,p[4]),midContainerGap:new x(p[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(p[6],43),navigationBottom:new x(p[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,p[4]),carouselMarginLeft:new x(120,p[12])},S={promoBadgeText:new C("standardRegular","largeRegular"),promoBadgeTextBold:new C("standardBold","largeBold"),cardsContent:new C("extraSmallRegular","smallRegular"),contactAdmin:new C("extraSmallRegular","smallRegular"),uspText:new C("smallRegular","standardRegular"),uspBoldText:new C("smallMedium","standardMedium")},{spendManagement:{chargeCard:{chargeCardsPromo:s}}}=Z.getLocalizedStrings(),wr=({meetingUrl:e,companyLegalName:n,chargeCardSetupView:d,showEnableCardButton:i,controllerEmails:o,isCardsOnlyTenantOrCreditCardFeatureEnabled:h,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:j,isChargeCardSetupEnabled:g,admins:z,cashbackRate:M,cardPromoType:$="credit",onSetupButtonClick:c,onBackClick:l,onClickMenuIcon:ie,onSetupChargeCardSuccess:N})=>{const ae=F(),O=ce(),A=f(),H=me().analytics,{chargeCardTermsDetails:_,companyChargeCardInfo:U,companyLocaleInfo:I}=d,G=pe(_?.fetchStatus.fetchState),[oe,J]=b.useState(!1),ne=()=>{H.trackCardsPromoPageClicked("schedule demo"),H.trackCardsScheduleDemoClick(o,{isCreditCardOffered:h,isDebitCardOffered:u,isDebitCardEnabled:j,isCreditCardEnabled:g},"Cards Promo"),J(!0)},se=U!=null&&I!=null?ue("0,0",{amount:U.chargeCardsCreditAccountLimit,currencyCode:I.currencyCode,currencySymbol:I.currencySymbol}):void 0;b.useEffect(()=>{G==="In-Progress"&&_?.fetchStatus.fetchState==="Completed"&&N()},[G,N,_?.fetchStatus]);const de=xe.hasChargeCardAdminLevelAccess(O.loggedInUserRoleMap),le=he(O);return r.jsxs(Ie,{children:[r.jsx(ge,{title:s.title[$],backgroundColor:ae.colors.grey4,onBackClick:l,showBackButton:!0,showMenuIcon:A==="medium-compact"||A==="small",onClickMenuIcon:ie,style:{zIndex:9},source:"ChargeCardPromoPage"}),oe===!0?r.jsx(ve,{onCancelClick:()=>{J(!1)},meetingUrl:e}):null,r.jsx(Re,{windowSize:A,children:de===!0?r.jsxs(r.Fragment,{children:[r.jsx(Le,{creditAmount:se,cardPromoType:$}),r.jsx(q,{forAdmin:!0,cardPromoType:$,cashbackRate:M}),r.jsx(Be,{showEnableCardButton:i,chargeCardSetupView:d,handleSecondaryBtnClick:ne,onSetupButtonClick:()=>c($)})]}):r.jsx(Me,{companyLegalName:n,cards:[],admins:z,hasZeniFinopsRoles:le,cardPromoType:$})})]})},ke=({admins:e})=>{const n=e.flatMap(i=>i.user?.firstName+" "+i.user?.lastName).join(", "),d=f();return r.jsxs(Ye,{windowSize:d,children:[r.jsx(R,{underline:!1,windowSize:d,children:s.noCardAssigned.pre}),r.jsx(Ce,{title:n,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(R,{underline:!0,windowSize:d,children:s.noCardAssigned.tooltip})}),r.jsx(R,{underline:!1,windowSize:d,children:s.noCardAssigned.post})]})},Be=({showEnableCardButton:e,chargeCardSetupView:n,handleSecondaryBtnClick:d,onSetupButtonClick:i})=>{const o=f();return r.jsxs(He,{windowSize:o,children:[r.jsxs(Ue,{windowSize:o,children:[r.jsx(V,{variant:"secondary",label:s.scheduleDemoButton,onClick:d,"data-testid":K("schedule-demo-button")}),r.jsx(V,{variant:"primary",label:e?s.enableCardsButton:s.setupCardsButton,loading:n.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress",onClick:i,style:{width:"146px"},"data-testid":K("enable-card-button")})]}),r.jsx(be,{textStyle:Se.smallRegular.cssObject,buttonTermLabel:e?s.terms.alternateTerm1:s.terms.terms1,showEndIcon:!0})]})},Le=({cardPromoType:e,creditAmount:n})=>{const d=f(),i=e==="debit_and_credit"?s.promoTextDebitCreditCard:e==="debit"?s.promoTextDebitCard:s.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:d==="small"?r.jsxs(r.Fragment,{children:[r.jsx(re,{children:i}),r.jsx(te,{children:s.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(Q,{children:i}),r.jsx(ee,{children:s.promoSubText})]})}),r.jsx(Ee,{cardPromoType:e,hideBadge:n==null||e==="debit",windowSize:d,children:r.jsxs(Fe,{windowSize:d,children:[s.promoBadgeText,r.jsx(Ne,{children:n}),s.creditLimit]})})]})},Me=({companyLegalName:e,cards:n,admins:d,hasZeniFinopsRoles:i,cardPromoType:o="credit"})=>{const h=f(),u=o==="debit_and_credit"?s.promoTextDebitCreditCard:o==="debit"?s.promoTextDebitCard:s.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[h==="small"?r.jsxs(r.Fragment,{children:[r.jsx(re,{children:u}),r.jsx(te,{children:s.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(Q,{children:u}),r.jsx(ee,{children:s.promoSubText})]}),n.length===0?r.jsx(Ze,{windowSize:h}):r.jsx(Ae,{cards:n,companyLegalName:e}),r.jsx(q,{forAdmin:!1,cardPromoType:o}),i?null:r.jsx(ke,{admins:d})]})},Ae=({cards:e,companyLegalName:n})=>{const d=F(),i=f();let o="",h;if(e.length===1){h=e[0].cardCreatedByUser.photo;const u=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;o=s.cardAssigned.singleCreditCard.replace("__issuing-user__",u).replace("__company-name__",n)}else o=s.cardAssigned.multipleCreditCards.replace("__company-name__",n);return r.jsxs(Qe,{children:[h!=null?r.jsx(De,{width:t.sp5,height:t.sp5,style:{paddingTop:i==="small"?t.sp1:t.sp0},src:h.href,alt:Z.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:u})=>{u.onerror=null,u.src=ye},loading:"lazy"}):null,r.jsx(qe,{windowSize:i,mode:d.mode,children:r.jsx(er,{windowSize:i,children:o})})]})},W=({windowSize:e,cardPromoType:n})=>{let d=s.businessText;return n==="debit"&&(d=`${d} ${s.debit}`),r.jsx(r.Fragment,{children:n==="debit_and_credit"?r.jsx(_e,{}):r.jsxs(Je,{windowSize:e,children:[r.jsx(D,{cardPromoType:n,cardText:d,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(E,{cardPromoType:n,cardText:d,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},q=({forAdmin:e,cardPromoType:n,cashbackRate:d})=>{const i=f(),o=e?s.admin:s.nonAdmin;return r.jsxs(Oe,{windowSize:i,children:[i==="small"?r.jsx(W,{windowSize:i,cardPromoType:n}):null,r.jsxs(Ge,{windowSize:i,children:[r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(We,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item1.pre}),r.jsx(P,{windowSize:i,children:e&&d!=null?o.item1.bold.replace("__cashback__",(d*100).toFixed(2)):o.item1.bold}),r.jsx(w,{windowSize:i,children:o.item1.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Ve,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item2.pre}),r.jsx(P,{windowSize:i,children:o.item2.bold}),r.jsx(w,{windowSize:i,children:o.item2.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Xe,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item3.pre}),r.jsx(P,{windowSize:i,children:o.item3.bold}),r.jsx(w,{windowSize:i,children:o.item3.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Ke,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item4.pre}),r.jsx(P,{windowSize:i,children:o.item4.bold}),r.jsx(w,{windowSize:i,children:o.item4.post})]})]})]}),i==="small"?null:r.jsx(W,{windowSize:i,cardPromoType:n})]})};let T;const _e=()=>{const e=f(),n=F(),[d,i]=b.useState(0),[o,h]=b.useState(!1),u=s.businessText,j=`${u} ${s.debit}`,g=[{id:1,cardType:"debit",cardText:j},{id:2,cardType:"debit",cardText:j},{id:3,cardType:"credit",cardText:u},{id:4,cardType:"credit",cardText:u}];b.useEffect(()=>(o||(T=setInterval(()=>{i(c=>{const l=c+1;return l===g.length?(h(!0),0):l})},2e3)),()=>clearInterval(T)),[o,g.length]),b.useEffect(()=>{o&&T!=null&&clearInterval(T)},[o]);const z=(c,l)=>{switch((c-d+g.length)%g.length){case 0:return{transform:`translate(0,${l?"100%":0}) scale(1)`,zIndex:l?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${l?"80%":"5%"}) scale(0.75)`,zIndex:l?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};default:return}},M=c=>{const l=z(c,!0);return{...l,transform:`${l?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},$=c=>{o||h(!0),i(c)};return r.jsxs(rr,{windowSize:e,children:[r.jsx(tr,{windowSize:e,children:g.map((c,l)=>r.jsxs(ir,{children:[r.jsx(X,{isReflection:!1,style:{...z(l,!1)},onClick:()=>$(l),children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:n.colors.grey2,...n.mode==="light"&&{borderBottom:"none"}}}):r.jsx(E,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:n.colors.grey2,...n.mode==="light"&&{borderBottom:"none"}}})},c.id),r.jsx(X,{isReflection:!0,style:{...M(l)},children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(E,{cardPromoType:c.cardType,cardText:c.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${c.id}`)]},c.id))}),o&&r.jsx(Pe,{numberOfDots:g.length,activeIndex:d,handleClick:i,promoColor:n.colors.primary,promoColorHover:n.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:m.navigationBottom.valuePx(e),left:m.navigationLeft.valuePx(e),zIndex:7}})]})},Ie=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 Ie,d3 as De,a5 as N,a as Oe,c3 as Be,M as Ue,ab as q,j as t,cI as _e,g as $e,C as r,aW as ze,e as Re,F as We,c$ as Le,o as B,r as Ne,aQ as qe,a7 as He,q as c,t as Me}from"./index-DTlzo6Yx.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{F as Ge}from"./HelpButton-DXFYhUL5-Co36EHOd.js";import{J as Je}from"./SetUpDefaultSection-B361ojb9-CxOpM9AT.js";import{p as Ke,y as H}from"./SpendMgmtSetupAccountSection-DdUs96r9-BtVu2Jjy.js";import{x as Qe}from"./LabeledControlledCheckBoxField-BFnLx9E0-ozh3nGkA.js";import{g as Xe}from"./UploadAdditionalDocumentOverlay-8_c7UpvB-74BXxoUO.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js";import"./ChargeCardUtils-Dt303NN_-05QPLa2p.js";import"./CreditCardPaymentPlgSection-BLbZFCcL-Bqc-C6eO.js";import"./ChaseOverlay-BK2ISNjj-S6c-qliM.js";const l={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,c[5],c[5]),sectionRowGap:new r(c[5],c[9],c[9]),iconWidthHeight:new r(20,c[4]),subTitlePaddingTop:new r(12,c[3]),subTitlePaddingBottom:new r(c[3],c[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(c[1],c[0])},M="chargeCardSetUpPage",f="payAccount",{commonSetUp:Ye,spendManagement:Ze}=Ue.getLocalizedStrings(),{chargeCard:K}=Ze,{chargeCardSetUp:m}=K,{setUp:U}=Ye,wt=({autoPayThreshold:e,isDisabled:x,meetingUrl:v,isEarlyPayEnabled:h,chargeCardSetUpView:o,connectedAccountProvider:Q,filesEndPoint:X,authParams:Y,isAccountsEnabled:Z,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ee,accountsPromoConfig:te,onFetchLinkTokenClick:ie,onBackClick:ne,onEnableChargeCardClick:oe,onUpdateChargeCardClick:ae,onBusinessVerificationSectionClick:ce,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,onUpdatePrimaryFundingAccount:re,onUpdateAutoPayClick:de,onEstablishConnectionClick:ue,onEstablishConnectionSuccess:pe,onClickMenuIcon:me,onEnableChargeCardSuccess:P,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,onCompanyOfficerUpdated:ye,onSendForVerificationClick:be,onSignUpClick:Ce})=>{const g=Ve(),n=Ie(),T=De().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:_,isRefreshingViewInBackground:Se,updateStatus:d,accountUpdateStatus:xe,plaidConnectionDetails:Pe,allBankAccounts:we,companyChargeCardInfo:$,companyDebitCardInfo:Ae,selectedCompanyOfficer:s,primaryFundingAccount:a,allFundingAccounts:z}=o,R=N(b),A=N(d.fetchState),F=Oe({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>G(o),[o]),values:G(o)}),ke=F.handleSubmit(oe),ve=async(C,k)=>{const i=k[f];if(C.includes(f))if(C.includes("fundingAccount")){if(i.fundingAccount.selectedOption!=null&&a?.id!=i.fundingAccount.selectedOption){const u=z.find(O=>O.id===i.fundingAccount.selectedOption);u!=null&&re(i.fundingAccount.selectedOption,u.accType)}}else if(i.account.selectedOption!=null&&a?.id!=null&&a?.zeniAccountId!=i.account.selectedOption){const u=i.account.allOptions.find(O=>O.value===i.account.selectedOption);u!=null&&typeof u.label=="string"&&T.trackConnectBankLink(u.value,u.label,"charge_cards"),ae(i.account.selectedOption,a.id,a.accType)}else C.includes("enableAutoPay")&&i.enableAutoPay!=null&&de(i.enableAutoPay)};p.useEffect(()=>{const C=F.watch((k,{name:i})=>{i!=null&&k!=null&&Be(()=>ve(i,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&y(!0),w&&R==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,R]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const j=$?.isChargeCardEnabled===!0,V=Ae?.isDebitCardEnabled===!0,W=_?.isBusinessVerified===!0,Ee=a?.accType==="depositAccount"||a?.providerVerificationStatus?.code==="verified"||a?.providerVerificationStatus?.code==="manually_verified"||a?.providerVerificationStatus?.code==="automatically_verified"||a?.providerVerificationStatus?.code==="database_matched",I=E?W:W&&Ee,Te=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const D=E?I&&!V:ee?I&&!j:I&&!(j&&V),Fe=D?m.setupSubTitleNotEnabled:m.setupSubTitle,L=g.mode==="light"?new q(g.colors.brandColorJadeLight):new q(g.colors.brandColorJadeDark),je=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(tt,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:l.overlayWidth.valuePercentage(n),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:$e.drawerBackground},transitionDuration:250,children:t.jsx(Xe,{authParams:Y,filesEndPoint:X,updateStatus:d,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:ye,onSendForVerificationClick:be})}),t.jsx(ze,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ne,showMenuIcon:!j&&!V&&(n==="medium-compact"||n==="small"),onClickMenuIcon:me,source:"ChargeCardSetupPage"}),t.jsxs(et,{windowSize:n,children:[t.jsx(it,{windowSize:n,children:Fe}),Te?t.jsx(nt,{children:t.jsx(Re,{size:"ExtraLarge",start:!0})}):t.jsx(We,{...F,children:t.jsx("form",{id:J(M),onSubmit:ke,children:t.jsxs(ot,{windowSize:n,children:[t.jsx(Je,{onClick:je,title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(Le,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},status:_?.businessVerificationStatus,isLoading:Se,isActiveWhileLoading:!0}),E?null:t.jsx(Ke,{connectedAccountProvider:Q,primaryFundingAccount:a,allFundingAccounts:z,plaidConnectionDetails:Pe,allBankAccounts:we,sectionId:f,isDisabled:x,onFetchLinkTokenClick:ie,onEstablishConnectionClick:ue,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:pe,icon:{element:t.jsx(qe,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},analytics:T,productType:"charge_cards",isAccountsEnabled:Z,onSignUpClick:Ce,pageName:m.pageName,accountsPromoConfig:te,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Qe,{label:{label:K.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...Ne.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:n==="small"?"flex-start":"center"},checkBoxField:{name:H(f,"enableAutoPay"),checkBoxValue:H(f,"enableAutoPay"),defaultChecked:$?.isAutoPayEnabled,style:{top:l.checkBoxTop.valuePx(n)}}})})]})})})]}),D?t.jsx(He,{formId:J(M),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:n==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||xe.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Ge,{isFooterRendered:D,meetingUrl:v,analytics:T,productType:"charge_cards"})]})},G=e=>{const{allBankAccounts:x,allFundingAccounts:v,primaryFundingAccount:h}=e;return{[f]:{fundingAccount:{selectedOption:h?.id,allOptions:v.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},J=e=>`${e}_form`,et=S.div`
1
+ import{u as Ve,X as Ie,d3 as De,a5 as N,a as Oe,c3 as Be,M as Ue,ab as q,j as t,cI as _e,g as $e,C as r,aW as ze,e as Re,F as We,c$ as Le,o as B,r as Ne,aQ as qe,a7 as He,q as c,t as Me}from"./index-TKskHQ6G.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{F as Ge}from"./HelpButton-DXFYhUL5-DlkstZw7.js";import{J as Je}from"./SetUpDefaultSection-B361ojb9-__eLpRVi.js";import{p as Ke,y as H}from"./SpendMgmtSetupAccountSection-DdUs96r9-CHrTpPue.js";import{x as Qe}from"./LabeledControlledCheckBoxField-BFnLx9E0-BYIu7D3y.js";import{g as Xe}from"./UploadAdditionalDocumentOverlay-8_c7UpvB-Bslt_vCk.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-BhC8pSjM-Cx1TqXY4.js";import"./ChargeCardUtils-Dt303NN_-BtVs0nz_.js";import"./CreditCardPaymentPlgSection-BLbZFCcL-CmIMXEAw.js";import"./ChaseOverlay-BK2ISNjj-_cGEXU_Z.js";const l={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,c[5],c[5]),sectionRowGap:new r(c[5],c[9],c[9]),iconWidthHeight:new r(20,c[4]),subTitlePaddingTop:new r(12,c[3]),subTitlePaddingBottom:new r(c[3],c[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(c[1],c[0])},M="chargeCardSetUpPage",f="payAccount",{commonSetUp:Ye,spendManagement:Ze}=Ue.getLocalizedStrings(),{chargeCard:K}=Ze,{chargeCardSetUp:m}=K,{setUp:U}=Ye,wt=({autoPayThreshold:e,isDisabled:x,meetingUrl:v,isEarlyPayEnabled:h,chargeCardSetUpView:o,connectedAccountProvider:Q,filesEndPoint:X,authParams:Y,isAccountsEnabled:Z,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ee,accountsPromoConfig:te,onFetchLinkTokenClick:ie,onBackClick:ne,onEnableChargeCardClick:oe,onUpdateChargeCardClick:ae,onBusinessVerificationSectionClick:ce,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,onUpdatePrimaryFundingAccount:re,onUpdateAutoPayClick:de,onEstablishConnectionClick:ue,onEstablishConnectionSuccess:pe,onClickMenuIcon:me,onEnableChargeCardSuccess:P,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,onCompanyOfficerUpdated:ye,onSendForVerificationClick:be,onSignUpClick:Ce})=>{const g=Ve(),n=Ie(),T=De().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:_,isRefreshingViewInBackground:Se,updateStatus:d,accountUpdateStatus:xe,plaidConnectionDetails:Pe,allBankAccounts:we,companyChargeCardInfo:$,companyDebitCardInfo:Ae,selectedCompanyOfficer:s,primaryFundingAccount:a,allFundingAccounts:z}=o,R=N(b),A=N(d.fetchState),F=Oe({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>G(o),[o]),values:G(o)}),ke=F.handleSubmit(oe),ve=async(C,k)=>{const i=k[f];if(C.includes(f))if(C.includes("fundingAccount")){if(i.fundingAccount.selectedOption!=null&&a?.id!=i.fundingAccount.selectedOption){const u=z.find(O=>O.id===i.fundingAccount.selectedOption);u!=null&&re(i.fundingAccount.selectedOption,u.accType)}}else if(i.account.selectedOption!=null&&a?.id!=null&&a?.zeniAccountId!=i.account.selectedOption){const u=i.account.allOptions.find(O=>O.value===i.account.selectedOption);u!=null&&typeof u.label=="string"&&T.trackConnectBankLink(u.value,u.label,"charge_cards"),ae(i.account.selectedOption,a.id,a.accType)}else C.includes("enableAutoPay")&&i.enableAutoPay!=null&&de(i.enableAutoPay)};p.useEffect(()=>{const C=F.watch((k,{name:i})=>{i!=null&&k!=null&&Be(()=>ve(i,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&y(!0),w&&R==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,R]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const j=$?.isChargeCardEnabled===!0,V=Ae?.isDebitCardEnabled===!0,W=_?.isBusinessVerified===!0,Ee=a?.accType==="depositAccount"||a?.providerVerificationStatus?.code==="verified"||a?.providerVerificationStatus?.code==="manually_verified"||a?.providerVerificationStatus?.code==="automatically_verified"||a?.providerVerificationStatus?.code==="database_matched",I=E?W:W&&Ee,Te=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const D=E?I&&!V:ee?I&&!j:I&&!(j&&V),Fe=D?m.setupSubTitleNotEnabled:m.setupSubTitle,L=g.mode==="light"?new q(g.colors.brandColorJadeLight):new q(g.colors.brandColorJadeDark),je=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(tt,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:l.overlayWidth.valuePercentage(n),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:$e.drawerBackground},transitionDuration:250,children:t.jsx(Xe,{authParams:Y,filesEndPoint:X,updateStatus:d,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:ye,onSendForVerificationClick:be})}),t.jsx(ze,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ne,showMenuIcon:!j&&!V&&(n==="medium-compact"||n==="small"),onClickMenuIcon:me,source:"ChargeCardSetupPage"}),t.jsxs(et,{windowSize:n,children:[t.jsx(it,{windowSize:n,children:Fe}),Te?t.jsx(nt,{children:t.jsx(Re,{size:"ExtraLarge",start:!0})}):t.jsx(We,{...F,children:t.jsx("form",{id:J(M),onSubmit:ke,children:t.jsxs(ot,{windowSize:n,children:[t.jsx(Je,{onClick:je,title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(Le,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},status:_?.businessVerificationStatus,isLoading:Se,isActiveWhileLoading:!0}),E?null:t.jsx(Ke,{connectedAccountProvider:Q,primaryFundingAccount:a,allFundingAccounts:z,plaidConnectionDetails:Pe,allBankAccounts:we,sectionId:f,isDisabled:x,onFetchLinkTokenClick:ie,onEstablishConnectionClick:ue,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:pe,icon:{element:t.jsx(qe,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},analytics:T,productType:"charge_cards",isAccountsEnabled:Z,onSignUpClick:Ce,pageName:m.pageName,accountsPromoConfig:te,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Qe,{label:{label:K.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...Ne.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:n==="small"?"flex-start":"center"},checkBoxField:{name:H(f,"enableAutoPay"),checkBoxValue:H(f,"enableAutoPay"),defaultChecked:$?.isAutoPayEnabled,style:{top:l.checkBoxTop.valuePx(n)}}})})]})})})]}),D?t.jsx(He,{formId:J(M),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:n==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||xe.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Ge,{isFooterRendered:D,meetingUrl:v,analytics:T,productType:"charge_cards"})]})},G=e=>{const{allBankAccounts:x,allFundingAccounts:v,primaryFundingAccount:h}=e;return{[f]:{fundingAccount:{selectedOption:h?.id,allOptions:v.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},J=e=>`${e}_form`,et=S.div`
2
2
  display: flex;
3
3
  justify-content: flex-start;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as W,X as T,j as t,aW as F,M as R,o as h,C as g,t as B,as as O,d3 as q,h1 as V,Y as J,e as K,q as s,bq as Q}from"./index-DTlzo6Yx.js";import{n as i,b as U}from"./vendor-CnQcJ2Lu.js";import{$ as X,g as _}from"./BoxItem-UCX7eqiN-Bx4T9Ckg.js";import{w as G}from"./downloadPdf-D02UNVHu-DqpjG06G.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./commonDimensions-OJhakpB_-Bbp60BrB.js";const z=R.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},H=i.div`
1
+ import{u as W,X as T,j as t,aW as F,M as R,o as h,C as g,t as B,as as O,d3 as q,h1 as V,Y as J,e as K,q as s,bq as Q}from"./index-TKskHQ6G.js";import{n as i,b as U}from"./vendor-CnQcJ2Lu.js";import{$ as X,g as _}from"./BoxItem-UCX7eqiN-DyNsRgEL.js";import{w as G}from"./downloadPdf-D02UNVHu-B994CxlX.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./commonDimensions-OJhakpB_-CrVNVIVe.js";const z=R.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},H=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,M as S,dr as c,l as B}from"./index-DTlzo6Yx.js";function U(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const A=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(B.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=S.getLocalizedStrings(),L=({chargeCardDetailView:e,classListFetchState:a,analytics:r,isChargeCardFeatureEnabled:d,creditAccount:t,pageName:o,addToWalletType:i,creditAccountRepayment:l,isDebitCard:n,isChargeCardAdmin:m,cardIssuedByRoles:u,cardIssuedByDepartmentName:h,cardHolderRoles:C,cardHolderDepartmentName:g,controllerEmails:p,productInformation:y,creditAccountInformation:f,debitAccountInformation:I})=>{e.chargeCard!=null&&a==="Completed"&&(!d||t.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(n&&m)||e.depositAccountLimitFetchState.fetchState==="Completed")&&r.trackCardsAddToWalletClick(p,y,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:F(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:D(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name},{cardIssuedByName:c(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:u,cardIssuedByDepartment:h},{cardholderName:c(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},o,i,f,I)},N=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},Y=e=>e.limit.amount-e.available.amount,b="1.75";export{F,L as H,U as L,N as M,b as S,A as U,Y as _};
1
+ import{fh as D,M as S,dr as c,l as B}from"./index-TKskHQ6G.js";function U(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const A=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(B.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=S.getLocalizedStrings(),L=({chargeCardDetailView:e,classListFetchState:a,analytics:r,isChargeCardFeatureEnabled:d,creditAccount:t,pageName:o,addToWalletType:i,creditAccountRepayment:l,isDebitCard:n,isChargeCardAdmin:m,cardIssuedByRoles:u,cardIssuedByDepartmentName:h,cardHolderRoles:C,cardHolderDepartmentName:g,controllerEmails:p,productInformation:y,creditAccountInformation:f,debitAccountInformation:I})=>{e.chargeCard!=null&&a==="Completed"&&(!d||t.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(n&&m)||e.depositAccountLimitFetchState.fetchState==="Completed")&&r.trackCardsAddToWalletClick(p,y,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:F(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:D(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name},{cardIssuedByName:c(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:u,cardIssuedByDepartment:h},{cardholderName:c(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},o,i,f,I)},N=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},Y=e=>e.limit.amount-e.available.amount,b="1.75";export{F,L as H,U as L,N as M,b as S,A as U,Y as _};
@@ -1,4 +1,4 @@
1
- import{X as H,fe as X,ff as Q,M as W,j as t,g as x,p as ee,K as I,Y as c,o as s,C as m,Z as te,t as ie,as as se,bC as oe,d0 as re,q as l,av as A,ee as K,aa as ne,fg as le,v as ae,cq as de,aP as ce}from"./index-DTlzo6Yx.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(),[,N]=X(),{isMobileOrTabletScreen:g}=Q(),[j,k]=p.useState(!0),[y,S]=p.useState(!0),[z,C]=p.useState(!1),[T,M]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,Y=r.title,_=r.description,q=()=>{window.open(r.chaseVideoUrl,"_blank")},L=[0,1,2,3],P=i=>i<L.length-1,D=(i,n)=>{N(i??""),n?k(!1):S(!1)},B=i=>{i?C(!0):M(!0)},E=i=>{i?C(!1):M(!1)};p.useEffect(()=>{j===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[j,y]);const V=()=>{const i=r.step1;return t.jsxs($,{children:[t.jsx(Ce,{"data-testid":c("chase-overlay-signin-link"),href:r.chaseSigninUrl,target:"_blank",rel:"noreferrer noopener",children:i.text1}),i.text2,t.jsxs(a,{children:[" ",i.text3]}),i.text4,t.jsxs(a,{children:[" ",i.text5]}),i.text6]})},F=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},J=()=>{const i=r.step3,n=e.connectedAccountProvider==="stripe"?i.payeeIdStripe:i.payeeIdUnit;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(Te,{children:[t.jsxs(f,{onClick:()=>D(n,!0),onMouseOver:()=>B(!0),onMouseLeave:()=>E(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),j?t.jsxs(h,{children:[t.jsx(U,{showCopyText:z&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>D(i.payeeName,!1),onMouseOver:()=>B(!1),onMouseLeave:()=>E(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),y?t.jsxs(h,{children:[t.jsx(U,{showCopyText:T&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Me,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},Z=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},G=i=>{switch(i){case 0:return t.jsx(V,{});case 1:return t.jsx(F,{});case 2:return t.jsx(J,{});default:return t.jsx(Z,{})}};return t.jsx(pe,{windowSize:d,role:"presentation",style:{background:x.overlayDark,...e.style},children:t.jsx(ee,{onClickAway:()=>e.action.onBackClick?.(),children:t.jsxs(he,{windowSize:d,isEditPopup:!1,children:[t.jsxs(Le,{children:[t.jsx(xe,{children:Y}),t.jsx(ge,{children:_}),t.jsx(je,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:L.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:P(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),P(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(I,{variant:"secondary",label:r.primaryButtonText,onClick: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 X,ff as Q,M as W,j as t,g as x,p as ee,K as I,Y as c,o as s,C as m,Z as te,t as ie,as as se,bC as oe,d0 as re,q as l,av as A,ee as K,aa as ne,fg as le,v as ae,cq as de,aP as ce}from"./index-TKskHQ6G.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(),[,N]=X(),{isMobileOrTabletScreen:g}=Q(),[j,k]=p.useState(!0),[y,S]=p.useState(!0),[z,C]=p.useState(!1),[T,M]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,Y=r.title,_=r.description,q=()=>{window.open(r.chaseVideoUrl,"_blank")},L=[0,1,2,3],P=i=>i<L.length-1,D=(i,n)=>{N(i??""),n?k(!1):S(!1)},B=i=>{i?C(!0):M(!0)},E=i=>{i?C(!1):M(!1)};p.useEffect(()=>{j===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[j,y]);const V=()=>{const i=r.step1;return t.jsxs($,{children:[t.jsx(Ce,{"data-testid":c("chase-overlay-signin-link"),href:r.chaseSigninUrl,target:"_blank",rel:"noreferrer noopener",children:i.text1}),i.text2,t.jsxs(a,{children:[" ",i.text3]}),i.text4,t.jsxs(a,{children:[" ",i.text5]}),i.text6]})},F=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},J=()=>{const i=r.step3,n=e.connectedAccountProvider==="stripe"?i.payeeIdStripe:i.payeeIdUnit;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(Te,{children:[t.jsxs(f,{onClick:()=>D(n,!0),onMouseOver:()=>B(!0),onMouseLeave:()=>E(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),j?t.jsxs(h,{children:[t.jsx(U,{showCopyText:z&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>D(i.payeeName,!1),onMouseOver:()=>B(!1),onMouseLeave:()=>E(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),y?t.jsxs(h,{children:[t.jsx(U,{showCopyText:T&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Me,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},Z=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},G=i=>{switch(i){case 0:return t.jsx(V,{});case 1:return t.jsx(F,{});case 2:return t.jsx(J,{});default:return t.jsx(Z,{})}};return t.jsx(pe,{windowSize:d,role:"presentation",style:{background:x.overlayDark,...e.style},children:t.jsx(ee,{onClickAway:()=>e.action.onBackClick?.(),children:t.jsxs(he,{windowSize:d,isEditPopup:!1,children:[t.jsxs(Le,{children:[t.jsx(xe,{children:Y}),t.jsx(ge,{children:_}),t.jsx(je,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:L.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:P(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),P(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(I,{variant:"secondary",label:r.primaryButtonText,onClick: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;
@@ -1,4 +1,4 @@
1
- import{X as Z,j as t,Y as $,g$ as pe,M as ee,_ as M,K as W,o,a7 as he,C as l,a6 as oe,k as ue,as as me,c0 as te,v as ge,t as F,a5 as xe,a as ke,c3 as fe,g as w,F as De,fF as $e,c6 as we,eP as Y,cd as G,q as s,cW as be,ah as ye,bn as je,cz as Pe,f9 as Se,m as q,fb as Le}from"./index-DTlzo6Yx.js";import{b as f,n as a}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",R="selectDocument",I=e=>{const p=[];return e.checkFront!=null&&p.push(e.checkFront.fileId),e.checkBack!=null&&p.push(e.checkBack.fileId),{[g]:{[Fe]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Te]:e.checkDepositLocalData.source,[Ce]:{allOptions:e.depositAccounts.depositAccounts.map(x=>({label:x.accountName,value:x.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[ie]:p,[R]:{front:e.checkFront,back:e.checkBack}}}},D=(e,p)=>`${e}.${p}`,ze=e=>`${e}_form`,u={largeLabelWidth:new l(160,160,160),rowContentPaddingLeft:new l(s[3],s[4]),checkPicRowContentPaddingXAxis:new l(s[3],s[4]),labeleMarginLeft:new l(s[0],s[0]),labeleMarginBottom:new l(s[2],s[0]),labelMarginRight:new l(s[3],s[3]),labeledFieldPaddingLeft:new l(s[3],s[0]),labeledFieldPaddingRight:new l(s[3],s[2]),labeledFieldPaddingTop:new l(s[3],s[3]),labeledFieldPaddingBottom:new l(s[3],s[2]),infoLabelPaddingRight:new l(s[0],s[3]),infoLabelMarginTop:new l(s[1],s[0])},{spendManagement:Be,common:V}=ee.getLocalizedStrings(),c=Be.zeniAccounts.zeniAccountList,Ae=V.documents;function Ee({checkDeposit:e,analytics:p,filesEndPoint:x,openPopup:b,authParams:y,onSaveChangesToLocalStore:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T}){const r=Z(),n=e.fetchState,L=xe(n),[v,X]=f.useState(!1),[se,z]=f.useState(!1),B=u.largeLabelWidth.value(r),k=ke({mode:"all",reValidateMode:"onBlur",defaultValues:I(e),values:I(e)}),{isValid:re}=k.formState,K=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:V.currency.currencyCode,currencySymbol:V.currency.currencySymbol},source:i[g].source,depositTo:e.depositAccounts.depositAccounts.find(h=>h.id===i[g].depositTo.selectedOption),fileIds:i[g][ie]};C(d)},ce=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);K(h)}};f.useEffect(()=>{const i=k.watch((d,{name:h})=>{h!=null&&d!=null&&fe(()=>ce(h,d))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{L==="Completed"&&n==="Not-Started"&&k.reset(I(e))},[L,n,k,e]),f.useEffect(()=>{e.error!=null?z(!0):z(!1)},[e.error]);const le=k.handleSubmit(()=>{if(re){p.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const i=k.getValues();K(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(E=>E.id===i),A=e.depositAccounts.depositAccounts.findIndex(E=>E.id===i);return h?t.jsx(Ve,{color:Se(A),isSelectedValue:d}):null},de=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(A=>A.id===i);return h?d===!0?t.jsx(Re,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(J,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(J,{children:M("0,0[.]00",h?.accountBalance?.available)})]}):null};return t.jsxs(t.Fragment,{children:[se?t.jsx(Oe,{children:t.jsxs(qe,{children:[t.jsxs(Xe,{children:[t.jsx(We,{}),t.jsxs(Ye,{children:[t.jsx(Ge,{children:e.error?.title}),t.jsx(Je,{children:e.error?.message})]})]}),t.jsx(Ke,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),z(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(_e,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...k,children:t.jsx("form",{id:ze(ve),onSubmit:le,children:t.jsxs(He,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:c.checkDepositDrawer.amountLabel,width:B},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:c.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:i=>!!i&&i>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(N,{}),t.jsx(we,{label:{label:c.checkDepositDrawer.sourceLabel,width:B},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:c.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:i=>i!=null}}}),t.jsx(N,{}),t.jsx(ae,{size:r,children:t.jsx(eo,{size:r,children:t.jsx(Ue,{label:{label:c.checkDepositDrawer.depositToLabel,width:B,style:{marginLeft:u.labeleMarginLeft.valuePx(r),marginBottom:u.labeleMarginBottom.valuePx(r),marginRight:u.labelMarginRight.valuePx(r)}},style:{paddingTop:u.labeledFieldPaddingTop.valuePx(r),paddingBottom:u.labeledFieldPaddingBottom.valuePx(r),paddingLeft:u.labeledFieldPaddingLeft.valuePx(r),paddingRight:u.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:u.infoLabelPaddingRight.valuePx(r),marginTop:u.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(i,d)=>ne(i,d),valueToSubLabels:(i,d)=>de(i,d),name:D(g,"depositTo"),placeholder:c.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(i=>({label:i.accountName,value:i.id}))},textAlignment:"right",registerOptions:{required:!0,validate:i=>!!(i!=null&&i.selectedOption)}}})})}),t.jsx(N,{}),t.jsxs(Qe,{size:r,children:[t.jsxs(Ze,{size:r,children:[t.jsx(Ie,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(_,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(Y,{name:`${D(g,R)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:G,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>X(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(_,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(Y,{name:`${D(g,R)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:G,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>X(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:c.checkDepositDrawer.picGuides.map(i=>t.jsxs(ao,{children:[t.jsx(oo,{}),t.jsx(Ne,{children:i})]},i))})]}),t.jsx(so,{windowSize:r,children:Ae.formatJPGText10MB})]})]})})})]})}const Ie=a(F)`
1
+ import{X as Z,j as t,Y as $,g$ as pe,M as ee,_ as M,K as W,o,a7 as he,C as l,a6 as oe,k as ue,as as me,c0 as te,v as ge,t as F,a5 as xe,a as ke,c3 as fe,g as w,F as De,fF as $e,c6 as we,eP as Y,cd as G,q as s,cW as be,ah as ye,bn as je,cz as Pe,f9 as Se,m as q,fb as Le}from"./index-TKskHQ6G.js";import{b as f,n as a}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",R="selectDocument",I=e=>{const p=[];return e.checkFront!=null&&p.push(e.checkFront.fileId),e.checkBack!=null&&p.push(e.checkBack.fileId),{[g]:{[Fe]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Te]:e.checkDepositLocalData.source,[Ce]:{allOptions:e.depositAccounts.depositAccounts.map(x=>({label:x.accountName,value:x.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[ie]:p,[R]:{front:e.checkFront,back:e.checkBack}}}},D=(e,p)=>`${e}.${p}`,ze=e=>`${e}_form`,u={largeLabelWidth:new l(160,160,160),rowContentPaddingLeft:new l(s[3],s[4]),checkPicRowContentPaddingXAxis:new l(s[3],s[4]),labeleMarginLeft:new l(s[0],s[0]),labeleMarginBottom:new l(s[2],s[0]),labelMarginRight:new l(s[3],s[3]),labeledFieldPaddingLeft:new l(s[3],s[0]),labeledFieldPaddingRight:new l(s[3],s[2]),labeledFieldPaddingTop:new l(s[3],s[3]),labeledFieldPaddingBottom:new l(s[3],s[2]),infoLabelPaddingRight:new l(s[0],s[3]),infoLabelMarginTop:new l(s[1],s[0])},{spendManagement:Be,common:V}=ee.getLocalizedStrings(),c=Be.zeniAccounts.zeniAccountList,Ae=V.documents;function Ee({checkDeposit:e,analytics:p,filesEndPoint:x,openPopup:b,authParams:y,onSaveChangesToLocalStore:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T}){const r=Z(),n=e.fetchState,L=xe(n),[v,X]=f.useState(!1),[se,z]=f.useState(!1),B=u.largeLabelWidth.value(r),k=ke({mode:"all",reValidateMode:"onBlur",defaultValues:I(e),values:I(e)}),{isValid:re}=k.formState,K=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:V.currency.currencyCode,currencySymbol:V.currency.currencySymbol},source:i[g].source,depositTo:e.depositAccounts.depositAccounts.find(h=>h.id===i[g].depositTo.selectedOption),fileIds:i[g][ie]};C(d)},ce=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);K(h)}};f.useEffect(()=>{const i=k.watch((d,{name:h})=>{h!=null&&d!=null&&fe(()=>ce(h,d))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{L==="Completed"&&n==="Not-Started"&&k.reset(I(e))},[L,n,k,e]),f.useEffect(()=>{e.error!=null?z(!0):z(!1)},[e.error]);const le=k.handleSubmit(()=>{if(re){p.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const i=k.getValues();K(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(E=>E.id===i),A=e.depositAccounts.depositAccounts.findIndex(E=>E.id===i);return h?t.jsx(Ve,{color:Se(A),isSelectedValue:d}):null},de=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(A=>A.id===i);return h?d===!0?t.jsx(Re,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(J,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(J,{children:M("0,0[.]00",h?.accountBalance?.available)})]}):null};return t.jsxs(t.Fragment,{children:[se?t.jsx(Oe,{children:t.jsxs(qe,{children:[t.jsxs(Xe,{children:[t.jsx(We,{}),t.jsxs(Ye,{children:[t.jsx(Ge,{children:e.error?.title}),t.jsx(Je,{children:e.error?.message})]})]}),t.jsx(Ke,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),z(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(_e,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...k,children:t.jsx("form",{id:ze(ve),onSubmit:le,children:t.jsxs(He,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:c.checkDepositDrawer.amountLabel,width:B},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:c.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:i=>!!i&&i>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(N,{}),t.jsx(we,{label:{label:c.checkDepositDrawer.sourceLabel,width:B},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:c.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:i=>i!=null}}}),t.jsx(N,{}),t.jsx(ae,{size:r,children:t.jsx(eo,{size:r,children:t.jsx(Ue,{label:{label:c.checkDepositDrawer.depositToLabel,width:B,style:{marginLeft:u.labeleMarginLeft.valuePx(r),marginBottom:u.labeleMarginBottom.valuePx(r),marginRight:u.labelMarginRight.valuePx(r)}},style:{paddingTop:u.labeledFieldPaddingTop.valuePx(r),paddingBottom:u.labeledFieldPaddingBottom.valuePx(r),paddingLeft:u.labeledFieldPaddingLeft.valuePx(r),paddingRight:u.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:u.infoLabelPaddingRight.valuePx(r),marginTop:u.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(i,d)=>ne(i,d),valueToSubLabels:(i,d)=>de(i,d),name:D(g,"depositTo"),placeholder:c.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(i=>({label:i.accountName,value:i.id}))},textAlignment:"right",registerOptions:{required:!0,validate:i=>!!(i!=null&&i.selectedOption)}}})})}),t.jsx(N,{}),t.jsxs(Qe,{size:r,children:[t.jsxs(Ze,{size:r,children:[t.jsx(Ie,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(_,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(Y,{name:`${D(g,R)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:G,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>X(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(_,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(Y,{name:`${D(g,R)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:G,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>X(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:c.checkDepositDrawer.picGuides.map(i=>t.jsxs(ao,{children:[t.jsx(oo,{}),t.jsx(Ne,{children:i})]},i))})]}),t.jsx(so,{windowSize:r,children:Ae.formatJPGText10MB})]})]})})})]})}const Ie=a(F)`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  `,Ne=a(F)`
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X as N,D as co,z as cn,di as so,dj as sn,l as A,M as O,q as w,dk as zo,dl as Lt,ab as _,dm as At,bz as Bt,dn as Ot,C as D,cs as Mt,V as Po,T as qe,dp as To,bg as X,e as dn,u as se,ak as Vo,dq as Do,ac as V,n as Le,dr as hn,ds as ce,by as Wt,bC as ho,v as un,m as we,dt as Je,du as Ae,dv as Xe,t as S,ah as ie,dw as pn,r as Nt,dx as Ve,dy as uo,dz as po,dA as gn,dB as fn,as as Ro,ap as xn,bY as It,bX as Ft,d0 as mn,aq as Go,b$ as Eo,bm as wn,dC as yn,dD as go,dE as fo,dF as bn,dG as kn,bt as Cn,b5 as jn,dH as Sn}from"./index-DTlzo6Yx.js";import{n as a,b as I,f as vn,j as F}from"./vendor-CnQcJ2Lu.js";import{L as et,N as $n,D as _n,B as ye,u as $}from"./AccountRow-DMeCdEPJ-0Td7rdjz.js";function Z(e,o){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function Ho(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function xt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const o=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const o=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:o}))}else return U("0,0",null)}function Ko(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const o=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function Yo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const o=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:o}))}else return U("0,0",null)}const We=(e,o,i)=>{const{startDate:n,balanceType:r}=o,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.MMMYYYYFormat,e)}`:ht(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(n,l.QYYYYformat,e)}`:ht(r,i);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.YYYYformat,e)}`:ht(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ht(e,o){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[o][e]}const Mp=(e,o,i)=>{const n=o.length==0?e:`${e}_${o.join("_")}`;return i!=null&&i.trim().length>0?`${n}_${i}`:`${n}_${ln(10)}`},Ln=a.div`
1
+ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X as N,D as co,z as cn,di as so,dj as sn,l as A,M as O,q as w,dk as zo,dl as Lt,ab as _,dm as At,bz as Bt,dn as Ot,C as D,cs as Mt,V as Po,T as qe,dp as To,bg as X,e as dn,u as se,ak as Vo,dq as Do,ac as V,n as Le,dr as hn,ds as ce,by as Wt,bC as ho,v as un,m as we,dt as Je,du as Ae,dv as Xe,t as S,ah as ie,dw as pn,r as Nt,dx as Ve,dy as uo,dz as po,dA as gn,dB as fn,as as Ro,ap as xn,bY as It,bX as Ft,d0 as mn,aq as Go,b$ as Eo,bm as wn,dC as yn,dD as go,dE as fo,dF as bn,dG as kn,bt as Cn,b5 as jn,dH as Sn}from"./index-TKskHQ6G.js";import{n as a,b as I,f as vn,j as F}from"./vendor-CnQcJ2Lu.js";import{L as et,N as $n,D as _n,B as ye,u as $}from"./AccountRow-DMeCdEPJ-1uelMiUm.js";function Z(e,o){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function Ho(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function xt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const o=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const o=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:o}))}else return U("0,0",null)}function Ko(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const o=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function Yo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const o=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:o}))}else return U("0,0",null)}const We=(e,o,i)=>{const{startDate:n,balanceType:r}=o,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.MMMYYYYFormat,e)}`:ht(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(n,l.QYYYYformat,e)}`:ht(r,i);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.YYYYformat,e)}`:ht(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ht(e,o){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[o][e]}const Mp=(e,o,i)=>{const n=o.length==0?e:`${e}_${o.join("_")}`;return i!=null&&i.trim().length>0?`${n}_${i}`:`${n}_${ln(10)}`},Ln=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;