@zeniai/web-cockpit-ui 1.14.91-qa → 1.14.92-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/dist/assets/ACHDetailsPage-B6sY0jN6-BewHWiw_.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BWK9fXrz-rCBrp1JL.js → AIPerformancePage-BWK9fXrz-XnvE7-6d.js} +2 -2
  3. package/dist/assets/{AccountInfoPage-DfT5DDiZ-D0CVlv97.js → AccountInfoPage-DfT5DDiZ-DND7ENQF.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-nUi26Aww-D32CRcv0.js → AccountInfoPageContent-nUi26Aww-Bwa-HIUO.js} +11 -11
  5. package/dist/assets/{AccountLockedInfoModal-BROj4bmE-DFG-AArf.js → AccountLockedInfoModal-BROj4bmE-DDKXU8OA.js} +5 -5
  6. package/dist/assets/{AccountReconDetailsDrawerPage-C-3FFCQZ-DSRssRwi.js → AccountReconDetailsDrawerPage-C-3FFCQZ-D-TpqzuY.js} +7 -7
  7. package/dist/assets/{AccountRow-BM2kGWyR-CUEabI22.js → AccountRow-BM2kGWyR-CEX7zEFS.js} +10 -10
  8. package/dist/assets/{AccountsPromoCardStack-CNCG5uPJ-D2Rks2IH.js → AccountsPromoCardStack-CNCG5uPJ-Y2aCPflf.js} +5 -5
  9. package/dist/assets/AddAddressForCardDrawer-BuAtFO1w-e0LZrU5l.js +6 -0
  10. package/dist/assets/{AddToWalletPage-DyrcWdBZ-BOmGChQh.js → AddToWalletPage-DyrcWdBZ-CkK2fnuE.js} +17 -17
  11. package/dist/assets/{AgingReportsPage-CmluxKG3-CDFaJsCv.js → AgingReportsPage-CmluxKG3-B2hpJNM3.js} +7 -7
  12. package/dist/assets/{AllUserItems-CVZZU-J3-CQYclBqY.js → AllUserItems-CVZZU-J3-Ce2827d_.js} +6 -6
  13. package/dist/assets/{ApAgingDetailPage-CoNxqskm-D1SMh_uB.js → ApAgingDetailPage-CoNxqskm-Bna_-NVA.js} +1 -1
  14. package/dist/assets/{AppBasePage-CTGNzUtN-CsSqlHFb.js → AppBasePage-CTGNzUtN--WSyuM8w.js} +4 -4
  15. package/dist/assets/{AppDrawerContent-59dQVUxu-BK18x8lU.js → AppDrawerContent-59dQVUxu-Bv7_BAFF.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-XEW5sdNg-B6n0n-AH.js → ApprovalRulesSettingsPage-XEW5sdNg-DmNI-bwP.js} +1 -1
  17. package/dist/assets/{ArAgingChart-D3Ym4gVE-BMi6xDeV.js → ArAgingChart-D3Ym4gVE-DmsLk005.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-BLEJSLJJ-Cks0yhvG.js → ArAgingDetailPage-BLEJSLJJ-C4CejQvS.js} +1 -1
  19. package/dist/assets/{AttachmentView-DSP80cjm-CgZkBq6h.js → AttachmentView-DSP80cjm-BrHb-fdX.js} +7 -7
  20. package/dist/assets/{BankAccountSection-DRrNcA79-CfWXJkCL.js → BankAccountSection-DRrNcA79-DN0L_Nus.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-Ub-gsfhE-pYaBnYwo.js → BankAccountWarningSection-Ub-gsfhE-CWRw85Ya.js} +9 -9
  22. package/dist/assets/{BankConnectionsSettingsPage-BcTtJTbg-Bmy_bjMC.js → BankConnectionsSettingsPage-BcTtJTbg-Cq7UhfIX.js} +9 -9
  23. package/dist/assets/{BillDetailPage-D7AQyxwr-DdsAIdzy.js → BillDetailPage-D7AQyxwr-C4hQ51aV.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BQWGENO8-B3YKN5mU.js → BillPayApprovalRuleDetailPage-BQWGENO8-UqNryn1Y.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BbA1Nwqe-Clw-2wlC.js → BillPayApprovalRulesPage-BbA1Nwqe-8oC6drGE.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DSTS_vBW-CQQQB354.js → BillPayPromoPage-DSTS_vBW-D4bhyD9i.js} +4 -4
  27. package/dist/assets/{BillPaySetUpPage-CvlVPVCA-NjhuI3UN.js → BillPaySetUpPage-CvlVPVCA-CckOfR6h.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-nKpHtd4C-Dt0uXp5Q.js → BillingSettingsPage-nKpHtd4C-BrQxt-Or.js} +2 -2
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DNHAoceL-Cb4kf05q.js → BillsBulkReviewDrawerPage-DNHAoceL-CcLmGKWP.js} +1 -1
  30. package/dist/assets/{BoxItem-Bjv3WNXO-BmJyEo8P.js → BoxItem-Bjv3WNXO-CbkK_BvO.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Bj4D9bX2-BwDZ1SF1.js → BusinessVerificationPage-Bj4D9bX2-CSqpS47f.js} +7 -7
  32. package/dist/assets/CardNumberSubText-BYY-Inxd-B5eDSuWq.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-D9UiTqp9-KfzGeeHg.js → CashbackDetailPage-D9UiTqp9-CYWVGaEH.js} +14 -14
  34. package/dist/assets/{ChargeCardDetailPage-C5EdiIyl-DtWHXqSs.js → ChargeCardDetailPage-C5EdiIyl-BRwuM_9a.js} +24 -24
  35. package/dist/assets/{ChargeCardListPage-DZwz1qoD-DbcJS4HW.js → ChargeCardListPage-DZwz1qoD-CqjW0D5U.js} +14 -14
  36. package/dist/assets/{ChargeCardListTable-D5B05Z1F-CeQiSd9i.js → ChargeCardListTable-D5B05Z1F-D4hpaga1.js} +13 -13
  37. package/dist/assets/{ChargeCardPromoPage-CDJMtGJb-BhpbAa0E.js → ChargeCardPromoPage-CDJMtGJb-hssoPQjs.js} +10 -10
  38. package/dist/assets/{ChargeCardSetupPage-CVV24gS9-DEZ65n_v.js → ChargeCardSetupPage-CVV24gS9-BAOQ2Xly.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-CmjBoi5e-snf3xLLe.js → ChargeCardStatementsPage-CmjBoi5e-DLlPm7j6.js} +3 -3
  40. package/dist/assets/{CheckDepositDrawerPage-CYOhT5Qz-DksjSdSX.js → CheckDepositDrawerPage-CYOhT5Qz-NvWlDiXp.js} +10 -10
  41. package/dist/assets/{CollapsableReportTable-hL_Ycouc-BeVhCFjP.js → CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js} +32 -32
  42. package/dist/assets/{CompanyOfficerDetailsSection-DR_6TlQa-CRHkdATL.js → CompanyOfficerDetailsSection-DR_6TlQa-SwPBTgrA.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-B4chn7-Q-C5MlH5vF.js → CompanyPassportCard-B4chn7-Q-Bv_vr7JG.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-oT9HnnPQ-Cn_rUM0x.js → CompanyPassportPage-oT9HnnPQ-BroxBLc-.js} +1 -1
  45. package/dist/assets/{CompleteProfile-BgH4v76Z-CMAlYJ7H.js → CompleteProfile-BgH4v76Z-CN661m7_.js} +1 -1
  46. package/dist/assets/ConfettiBurst-Cl6jHJ8H-gdYynPR6.js +1 -0
  47. package/dist/assets/{CreateOrEditVendorPage-CW-u7pJU-BbNmJCzp.js → CreateOrEditVendorPage-CW-u7pJU-D_V5jy6j.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-D30M7ol4-DHMoXleH.js → CreditCardPaymentDrawerPage-D30M7ol4-Cmy98i97.js} +101 -101
  49. package/dist/assets/{CurrencySelectField-DOCEstMc-lt77fvq3.js → CurrencySelectField-DOCEstMc-DLDifnD2.js} +3 -3
  50. package/dist/assets/{CustomerOnboardingActivationPage-DMPNjFL_-Di2Nadj1.js → CustomerOnboardingActivationPage-DMPNjFL_-DXtNUrdA.js} +5 -5
  51. package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-DTN0ucTw.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CBYo4VQn-BXbbBAgo.js → CustomerOnboardingDetailPageSkeleton-CBYo4VQn-lNg5MP87.js} +8 -8
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-EBVRCYfJ-D_7GUO1D.js → CustomerOnboardingNoStepsPage-EBVRCYfJ-D9C_SyFY.js} +3 -3
  54. package/dist/assets/{CustomerOnboardingPage-TJK6s-LM-C-OnNjx4.js → CustomerOnboardingPage-TJK6s-LM-CoIVtMVm.js} +1 -1
  55. package/dist/assets/CustomerOnboardingProductSuitePage-lNIP5gSu-Bg8Yb8JM.js +202 -0
  56. package/dist/assets/{Dashboard-WiE9IRrh-DLy2oEV6.js → Dashboard-WiE9IRrh-DvtSkHmk.js} +14 -14
  57. package/dist/assets/{DashboardReportPage-BKHl_IVD--5FXkbx2.js → DashboardReportPage-BKHl_IVD-CtxBGv_B.js} +11 -11
  58. package/dist/assets/DashboardSidebarBackgroundAnimation-B1mJObim-DOqCN-CI.js +12 -0
  59. package/dist/assets/{DepositAccTransactionItem-C8tChaJS-C2YE4gmN.js → DepositAccTransactionItem-C8tChaJS-BcNs6Wmj.js} +1 -1
  60. package/dist/assets/DepositAccTransactionListPage-B6px7upV-C_h4mZC3.js +66 -0
  61. package/dist/assets/DomesticWireDetailsPage-BFQJmzYm-Cigs9AsB.js +21 -0
  62. package/dist/assets/{DownloadOverlay-DB-qx46O-QQjLHCMg.js → DownloadOverlay-DB-qx46O-Di0XX-7b.js} +1 -1
  63. package/dist/assets/{DrawerPage-Bha9ElcW-DYWZbR7w.js → DrawerPage-Bha9ElcW-tQCg2vNB.js} +6 -6
  64. package/dist/assets/{EditPeoplePage-B6QD5Vld-CisYF3Ng.js → EditPeoplePage-B6QD5Vld-H7oW4yPE.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-EplOf2mP-D1RbirS3.js → EditReimbursementDetailPage-EplOf2mP-DR3ob0bq.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-5Cu1qehd-D07nT3Te.js → EntityDetailPage-5Cu1qehd-BdCQHbCi.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-D6z6-dM7-DEGQNQVO.js → EntitySummarySection-D6z6-dM7-iY3GcshB.js} +2 -2
  68. package/dist/assets/{ExpenseAutomationOverviewPage-DkoxczRc-NF6HtctB.js → ExpenseAutomationOverviewPage-DkoxczRc-Dj3WEFmv.js} +15 -15
  69. package/dist/assets/{ExpenseAutomationPage-Na3XKgcg-Cmx09CtX.js → ExpenseAutomationPage-Na3XKgcg-DopOn429.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-DWGl_gml-D5XRTVzj.js → ExpressPayPage-DWGl_gml-hFOTsy6y.js} +12 -12
  71. package/dist/assets/{FeaturePreviewPage-BgkpUPMm-DzDv67fj.js → FeaturePreviewPage-BgkpUPMm-BgRBmXUD.js} +3 -3
  72. package/dist/assets/{FollowStepsSection-64oy2OLD-7-LclZyo.js → FollowStepsSection-64oy2OLD-BEGrGMi_.js} +7 -7
  73. package/dist/assets/{GlobalReviewListPage-DHfTyj2C-OAyr9UAc.js → GlobalReviewListPage-DHfTyj2C-C3EEWPiO.js} +12 -12
  74. package/dist/assets/{InformationCardStack-Dw3lhl2I-2Y0pRe_r.js → InformationCardStack-Dw3lhl2I-Bs6_LbeZ.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-BiEswY1Z-CQn7ZFVZ.js → InsightsCardStack-BiEswY1Z-Db6FFDpQ.js} +9 -9
  76. package/dist/assets/{InsightsSection-DvqCilqy-BvIpOsD6.js → InsightsSection-DvqCilqy-BQT_s43S.js} +3 -3
  77. package/dist/assets/{IntegrationsSettingsPage-DzVYf5ff-K49nYAJL.js → IntegrationsSettingsPage-DzVYf5ff-DvdqA5Qq.js} +2 -2
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-DTHcuQsH-C8RSfXK9.js → InternationalWireSwiftDetailsPage-DTHcuQsH-B-a9NSLn.js} +11 -11
  79. package/dist/assets/{InternationalWireVerificationPage-BzyRqd-m-BPPlgLxU.js → InternationalWireVerificationPage-BzyRqd-m-slndLY5A.js} +7 -7
  80. package/dist/assets/{InviteFormPage-CaJB3ss1-C7CdP0jU.js → InviteFormPage-CaJB3ss1-HHZxjRMu.js} +17 -17
  81. package/dist/assets/{InvitePageListView-8Ltt8tHx-Dpx_AdxA.js → InvitePageListView-8Ltt8tHx-BPR7jVHX.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-A7oKAD7M-BX9kPS5-.js → InvitePeoplePage-A7oKAD7M-DkNn-Tux.js} +2 -2
  83. package/dist/assets/{InvoiceUploadSection-DomquLut-BX54FmZz.js → InvoiceUploadSection-DomquLut-CutCF8wG.js} +5 -5
  84. package/dist/assets/{IssueChargeCardPage-DtIQ1Buk-BN7RzIYF.js → IssueChargeCardPage-DtIQ1Buk-QOM0ijcK.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-B_9lh-_a-DrM7vU1s.js → LabeledAddressValue-B_9lh-_a-B22yf0PW.js} +2 -2
  86. package/dist/assets/{LabeledAddressValueField-CC7T3qZQ-1BY0JFnr.js → LabeledAddressValueField-CC7T3qZQ-5fkS_FuY.js} +2 -2
  87. package/dist/assets/LabeledControlledCheckBoxField-CeMM7Ci3-RHUW6sf_.js +16 -0
  88. package/dist/assets/{LabeledCreatableSingleSelectField-DKD0oEl8-TvdaP8Vv.js → LabeledCreatableSingleSelectField-DKD0oEl8-Bqf3gDxT.js} +3 -3
  89. package/dist/assets/{LabeledDocumentField-Dy3jwAiL-CCiYsV9S.js → LabeledDocumentField-Dy3jwAiL-FmwpCOt6.js} +3 -3
  90. package/dist/assets/{LabeledDropDownFormattedTextField-DDzM3r6s-CluakS-U.js → LabeledDropDownFormattedTextField-DDzM3r6s-CPxa5iPj.js} +1 -1
  91. package/dist/assets/{LabeledText-axaAGyUS-CcC7jZEk.js → LabeledText-axaAGyUS-B-Q4astZ.js} +2 -2
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-BKf09x4e.js → LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-DlTnDPsW.js} +17 -17
  93. package/dist/assets/{LabeledZeniRolesDropDownField-dpz7g9jK-OaRP8J18.js → LabeledZeniRolesDropDownField-dpz7g9jK-BDxh4AaM.js} +9 -9
  94. package/dist/assets/{LinkJETransactionPage-CJniqVcu-CEg5TESY.js → LinkJETransactionPage-CJniqVcu-C9nn50Ye.js} +3 -3
  95. package/dist/assets/{LockCardPage-CjO8cr2a-D35PEeDH.js → LockCardPage-CjO8cr2a-C3aOpkLz.js} +12 -12
  96. package/dist/assets/{LowBalancePopup-DVS-w3b7-B-J4NCtT.js → LowBalancePopup-DVS-w3b7-DZeFvNAP.js} +2 -2
  97. package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-BWS1eLIz.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-BkvhGPqZ.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-DYCM1cCk.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-DAAoq3iT-RnQYScep.js → MagicLinkSuccessPage-DAAoq3iT-s_k-As2A.js} +6 -6
  101. package/dist/assets/MagicLinkTitleSection-FMRBLlRJ-Dq0HXyeM.js +17 -0
  102. package/dist/assets/MailingDetailsSection-CiJ5JLA6-ClA0Rhay.js +21 -0
  103. package/dist/assets/Menu-wpP8R1br-BkJyq7Tb.js +17 -0
  104. package/dist/assets/{MyBankConnectionsSettingsPage-DIIFgnkE-S9MhwXB4.js → MyBankConnectionsSettingsPage-DIIFgnkE-BpGRsOdm.js} +2 -2
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-Di_KYRgS-CK6YDHgF.js → MyPendingActivationChargeCardListPage-Di_KYRgS-1GEJ-RE_.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-m6vaeGgZ-Dsfb8_5o.js → MyProfileSettingsPage-m6vaeGgZ-CBRk31EZ.js} +4 -4
  107. package/dist/assets/{NavBarWithPicker-C_qO8mgD-BXQJ2aBI.js → NavBarWithPicker-C_qO8mgD-DeDCa5cM.js} +4 -4
  108. package/dist/assets/{NavigationArrow-BXYIj6Wz-D0J_smpz.js → NavigationArrow-BXYIj6Wz-CANss6wI.js} +8 -8
  109. package/dist/assets/{NavigationDots-BvKSgdgh-BqXI1Dvt.js → NavigationDots-BvKSgdgh-ChF9WLMp.js} +4 -4
  110. package/dist/assets/{NewGlobalMerchantPage-Dc3xEoiZ-DLsg8Naf.js → NewGlobalMerchantPage-Dc3xEoiZ-BeCQwEx7.js} +2 -2
  111. package/dist/assets/NoDataChart-C5ZP32zB-BxSJ1j_J.js +26 -0
  112. package/dist/assets/NoDataTable-BnBYE8p_-CFZLFfEo.js +8 -0
  113. package/dist/assets/{NotFoundPage-CZ25GWwU-_oSr8iWX.js → NotFoundPage-CZ25GWwU-BICqInbF.js} +4 -4
  114. package/dist/assets/{NotificationSettingsPage-DHvgj7Hu-BdTBQFAp.js → NotificationSettingsPage-DHvgj7Hu-BDiE5wjx.js} +3 -3
  115. package/dist/assets/{NotificationsListConfig-BBLSv0sd-CyiwE-QZ.js → NotificationsListConfig-BBLSv0sd-CBsOo8lP.js} +1 -1
  116. package/dist/assets/{NotificationsPage-CGVEC-Zc-DTkwGX6T.js → NotificationsPage-CGVEC-Zc-CICQW2D8.js} +14 -14
  117. package/dist/assets/{OpExByVendorPage-D55JZne--CJqRGQiy.js → OpExByVendorPage-D55JZne--Cr5n73UL.js} +6 -6
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-DQE32HEH.js → OverlayContainerPage-Daz3A7cI-DLdPkPwc.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-fVmttEKP-BDMz5n2J.js → PandLWithForecastPage-fVmttEKP-aWCR7ttl.js} +11 -11
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BiU8tQnm-Dbfq-Q5l.js → PaymentAccountSetupBillingAddressSection-BiU8tQnm-CY8MBOF0.js} +5 -5
  121. package/dist/assets/{PeoplePage-QuuuX2AS-BRICHczf.js → PeoplePage-QuuuX2AS-CDxGSCUE.js} +12 -12
  122. package/dist/assets/Preview-D_TLok3M.js +1 -0
  123. package/dist/assets/{ProductsCarousel-zdZkfaiY-_T4nYSYs.js → ProductsCarousel-zdZkfaiY-D8MGFtGX.js} +3 -3
  124. package/dist/assets/{PromoBaseCards-flFtcbIg-m_Kz4ZRp.js → PromoBaseCards-flFtcbIg-C0jZRRzU.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog-DNB2C1vQ-DhNQ7g0E.js → QBOConnectionDialog-DNB2C1vQ-DPJHlPHX.js} +2 -2
  126. package/dist/assets/{QBOSetupSection-B59etoGz-_sJLDOFX.js → QBOSetupSection-B59etoGz-DxrgQvvQ.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRuleDetailPage-D7do3o0A-BCz-fjPF.js → ReimbursementApprovalRuleDetailPage-D7do3o0A-DiBw1aK-.js} +1 -1
  128. package/dist/assets/{ReimbursementApprovalRulesPage-BJ6GewQ2-CIt97LH3.js → ReimbursementApprovalRulesPage-BJ6GewQ2-CMxGgRQ3.js} +1 -1
  129. package/dist/assets/{ReimbursementDetailPage-DKAtYSOy-CiNVqXoI.js → ReimbursementDetailPage-DKAtYSOy-C1CMn4bM.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-DKcSHlHp-5hV7x373.js → ReimbursementPromoPage-DKcSHlHp-gi8b3D2U.js} +9 -9
  131. package/dist/assets/{ReimbursementSetUpPage-Y1e_hna--D_F0MA0d.js → ReimbursementSetUpPage-Y1e_hna--L4dNaOo2.js} +5 -5
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-fgz8s4w9-VUP64soN.js → ReimbursementsBulkReviewDrawerPage-fgz8s4w9-TK1XJV4S.js} +1 -1
  133. package/dist/assets/{ReloadCard-DjtdPHq5-k80dn-sY.js → ReloadCard-DjtdPHq5-D_RTB189.js} +3 -3
  134. package/dist/assets/{ReportTableViewSelector-C8e6IEWt-C9oSqHHS.js → ReportTableViewSelector-C8e6IEWt-B1X6y91F.js} +1 -1
  135. package/dist/assets/{ReportsPage-BIe0eDLC-BkK5XGLi.js → ReportsPage-BIe0eDLC-DJAgrzKt.js} +3 -3
  136. package/dist/assets/{RevenueChart-Cc0XrxLL-CKhxzTm3.js → RevenueChart-Cc0XrxLL-BSXP5Fpe.js} +30 -30
  137. package/dist/assets/{ReviewDetailsPage-CU1AYWgR-BwWw8nzF.js → ReviewDetailsPage-CU1AYWgR-Aa7a5LiH.js} +17 -17
  138. package/dist/assets/{ReviewOverlay-CruJ9O84-tthxypv2.js → ReviewOverlay-CruJ9O84-C1Nn7-W1.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-fC3byzzv-h3kSlu0j.js → RoleWithToolTip-fC3byzzv-DvgcIN_v.js} +6 -6
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CE3tUYhk-BF1406RS.js → ScheduleDetailsFixedAssetsPage-CE3tUYhk-COrIX6jB.js} +3 -3
  141. package/dist/assets/{ScheduleDetailsPage-BhAqJ1Of-BbWry4yd.js → ScheduleDetailsPage-BhAqJ1Of-aIc3huKD.js} +3 -3
  142. package/dist/assets/{ScheduleSequenceTable-NSt1juSD-B6P-vowS.js → ScheduleSequenceTable-NSt1juSD-DIpN7xpp.js} +21 -21
  143. package/dist/assets/{ScreenRoutes-CPwJf5AY.js → ScreenRoutes-jO5HDDDI.js} +75 -75
  144. package/dist/assets/SetUpAccountSection-C1EnJv1V-BqOATLaf.js +378 -0
  145. package/dist/assets/{SignIn-BhIof_Cm-BQjlVN_5.js → SignIn-BhIof_Cm-BVhCYPyL.js} +1 -1
  146. package/dist/assets/SignInScreen-DYrtrzQo.js +1 -0
  147. package/dist/assets/{SpendManagementListViewPage-BEWNNX_Z-LpCmCl9n.js → SpendManagementListViewPage-BEWNNX_Z-DYJVhy13.js} +4 -4
  148. package/dist/assets/{SpendManagementPerTabPage-Vs1Eoxgd-B-R3eaH5.js → SpendManagementPerTabPage-Vs1Eoxgd-BJBD6w0V.js} +20 -20
  149. package/dist/assets/{SpendManagementSection-C38Zpi1z-CSd7Ra1P.js → SpendManagementSection-C38Zpi1z-zTQSB9zV.js} +10 -10
  150. package/dist/assets/{StatementItem-bHInVThd-CvDlOdeO.js → StatementItem-bHInVThd-Bfw9F8uL.js} +2 -2
  151. package/dist/assets/{StatementsPage-CGQhmaXx-R_F9KvHl.js → StatementsPage-CGQhmaXx-BIuU-4wu.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-7fiKLb5g-BflTgrEp.js → StatusSwitcher-7fiKLb5g-IubUY6EX.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-9AnfZiNy-CnEO-V48.js → SubTabSwitcher-9AnfZiNy-DBEVnhtX.js} +3 -3
  154. package/dist/assets/{SummaryCard-DOycYLs1-BBnGU2Uh.js → SummaryCard-DOycYLs1-C5OfLiIW.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-CehyMnY0-DxKz3xjn.js → TaskManagementPage-CehyMnY0-LzT8-CCR.js} +10 -10
  156. package/dist/assets/{TimeRangeSwitcher-Dq2FEgFR-BGlD5dTQ.js → TimeRangeSwitcher-Dq2FEgFR-CxbtXrjR.js} +11 -11
  157. package/dist/assets/{TimeframeSwitcher-By3xz_-m-C7-16i-O.js → TimeframeSwitcher-By3xz_-m-4vvkqeCS.js} +6 -6
  158. package/dist/assets/{TimeframeSwitcherWithToggle-a3fmbzNR-BNAWd54k.js → TimeframeSwitcherWithToggle-a3fmbzNR-DF955u5N.js} +3 -3
  159. package/dist/assets/{TopExCard-GEQpp_KY-IB_77Mna.js → TopExCard-GEQpp_KY-BsC8DQsa.js} +4 -4
  160. package/dist/assets/{TopExDetailPage-hid1dQYl-kxPti7uc.js → TopExDetailPage-hid1dQYl-o5BnuopY.js} +9 -9
  161. package/dist/assets/{TransactionDetailPage-CX4JW9WM-BDaPm8U3.js → TransactionDetailPage-CX4JW9WM-gkT488m-.js} +3 -3
  162. package/dist/assets/{TransactionList-BixeXh4Y-D5p8k6VE.js → TransactionList-BixeXh4Y-CBLpnxhT.js} +13 -13
  163. package/dist/assets/{TransactionListBig-CGMMJQBd-DtMoV0wS.js → TransactionListBig-CGMMJQBd-Bi6fPPO-.js} +7 -7
  164. package/dist/assets/{TransactionListPage-CBVUTX4y-B8N6WUAF.js → TransactionListPage-CBVUTX4y-DvUQlgTG.js} +5 -5
  165. package/dist/assets/{TransactionVendorDetailPage-CEbHH_0r-B5vno7Kx.js → TransactionVendorDetailPage-CEbHH_0r-vhA6GFtl.js} +4 -4
  166. package/dist/assets/{TransferDrawerPage-BFd7uQnF-DiQCCcuy.js → TransferDrawerPage-BFd7uQnF-CdQTDGt-.js} +32 -32
  167. package/dist/assets/{TreasuryOverviewPage-Bd58hOy8-CiIm-PN1.js → TreasuryOverviewPage-Bd58hOy8-DrtmZ_fp.js} +28 -28
  168. package/dist/assets/{TreasuryPromoPage-BvArufHi-H2j749vC.js → TreasuryPromoPage-BvArufHi-zGiWS1XQ.js} +6 -6
  169. package/dist/assets/{TreasuryStatementsPage-YLCEBbRh-CcMOOxjw.js → TreasuryStatementsPage-YLCEBbRh-rIAdAl8t.js} +1 -1
  170. package/dist/assets/{TreasuryTaxLetterPage-D_6mgQqi-yYkV0iu8.js → TreasuryTaxLetterPage-D_6mgQqi-DYRPEoC2.js} +1 -1
  171. package/dist/assets/{TrendChart-D3dT6hUb-BHuMWYoT.js → TrendChart-D3dT6hUb-DkxaRhLn.js} +3 -3
  172. package/dist/assets/{TrendWithTransactions-Gj-u5KXi-81d3HYcO.js → TrendWithTransactions-Gj-u5KXi-BXQxjthK.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-B3eRYolj-BVdGDC68.js → UncategorizedAccountsMappingPage-B3eRYolj-CDmprZps.js} +3 -3
  174. package/dist/assets/{UnitIntegrationPage-DpjR9hUu-BLAHxX13.js → UnitIntegrationPage-DpjR9hUu-B-HccwC1.js} +4 -4
  175. package/dist/assets/UploadAdditionalDocumentOverlay-COtszXUY-BbmaGPRn.js +38 -0
  176. package/dist/assets/Vendor2FAPopup-C85mhuSb-CEUsiGHn.js +1 -0
  177. package/dist/assets/VendorACHDetailsPage-DeexeWpV-CWx4yTGx.js +1 -0
  178. package/dist/assets/{VendorDetailPage-BrbKfsL4-DjpTEW-F.js → VendorDetailPage-BrbKfsL4-Cj99XIhO.js} +86 -86
  179. package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-CPIfYbL9.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-DgBLn3fd-BFued49C.js → VendorFiling1099EditablePage-DgBLn3fd-BC-C_gXr.js} +32 -32
  181. package/dist/assets/{VendorFirstReviewPage-jc7-OExI-G9JlI2Cf.js → VendorFirstReviewPage-jc7-OExI-B_u4wn_i.js} +58 -58
  182. package/dist/assets/{VendorInternationalWireDetailsPage-c6isgwH2-jfoBKQiW.js → VendorInternationalWireDetailsPage-c6isgwH2-G6KTzCh7.js} +7 -7
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-BuJYqFug.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection--VfdAF3H-D5xEFwOn.js → VendorsAccountsSection--VfdAF3H-CNAOxlvC.js} +2 -2
  185. package/dist/assets/{VerifyDevice-CaifjdR8-C5gOkIzM.js → VerifyDevice-CaifjdR8-B6dVM-BL.js} +1 -1
  186. package/dist/assets/VideoPlayer-BVR9LPmm-B4UxpKEs.js +78 -0
  187. package/dist/assets/{VideoPopup-BEXc8o78-CVV-ILBt.js → VideoPopup-BEXc8o78-DJiZW-Cs.js} +5 -5
  188. package/dist/assets/{WarningsDrawerPage-CboqfxzC-DFYQ5K3H.js → WarningsDrawerPage-CboqfxzC-gF7sCXHr.js} +4 -4
  189. package/dist/assets/{ZeniAccountDetailPage-Dujj0-XC-CqcpFC6J.js → ZeniAccountDetailPage-Dujj0-XC-V9rgFIsn.js} +21 -21
  190. package/dist/assets/{ZeniAccountListViewPage--SMJDGvC-CM-NK1x4.js → ZeniAccountListViewPage--SMJDGvC-CZS6XXwc.js} +1 -1
  191. package/dist/assets/ZeniAccountNavBarPieces-DqLJVQ5t-CkX8FMny.js +14 -0
  192. package/dist/assets/{ZeniAccountPromoPage-BVjJvWsA-C-Z-wjK6.js → ZeniAccountPromoPage-BVjJvWsA-B4Bz7FjR.js} +6 -6
  193. package/dist/assets/{ZeniAccountSetupPage-Dvxst8RT-DMWDIaa0.js → ZeniAccountSetupPage-Dvxst8RT-Dv9aj6me.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-B88k3pkr-BZVlJOkG.js → ZeniCopyright-B88k3pkr-BvEC_X2s.js} +1 -1
  195. package/dist/assets/ZeniTransferAmountSlider-1DS0MsTI-DXZHqv18.js +63 -0
  196. package/dist/assets/add-to-wallet-DgdBD8_G-D178ysGy.js +1 -0
  197. package/dist/assets/{analytics-CHPpxU3b.js → analytics-D090O6Wm.js} +1 -1
  198. package/dist/assets/analyticsHelper-CW9XC1-j.js +1 -0
  199. package/dist/assets/{analyticsHelper-DmujELNG-CREtjHan.js → analyticsHelper-DmujELNG-CdoVsqKC.js} +1 -1
  200. package/dist/assets/arrow-south-east-round-PEovUgvH-Ccxih1KW.js +1 -0
  201. package/dist/assets/auto-transfer-rule-mbafm5D3-CaIDNTCx.js +1 -0
  202. package/dist/assets/{chartTypes-DRiSljvE-CV6dAhnU.js → chartTypes-DRiSljvE-DHGd6p3G.js} +1 -1
  203. package/dist/assets/{commonDimensions-BDftm0gJ-BmGAU2Ka.js → commonDimensions-BDftm0gJ-CtNxdt96.js} +1 -1
  204. package/dist/assets/constants-B1WOPvRN.js +1 -0
  205. package/dist/assets/core-BCGhSsNP.js +62 -0
  206. package/dist/assets/{dash.all.min-Bzta_mrR.js → dash.all.min-DQU9jzwW.js} +1 -1
  207. package/dist/assets/{detailCommon-BGgE4mE3-DcwKCO51.js → detailCommon-BGgE4mE3-BIZKCRTc.js} +3 -3
  208. package/dist/assets/{downloadPdf-DCQ9vVZs-BHlJTitV.js → downloadPdf-DCQ9vVZs-BAK1KQub.js} +1 -1
  209. package/dist/assets/empty-BFpyIT14.js +1 -0
  210. package/dist/assets/empty-Db_Oj0CQ.js +1 -0
  211. package/dist/assets/epic-BhAddVo8.js +2 -0
  212. package/dist/assets/gift-box-Cmt9OgIZ-BVmGGIyo.js +1 -0
  213. package/dist/assets/graphic-no-data-l-DU4J8fDt-BUSuwQOu.js +1 -0
  214. package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-9rVTKZNa.js +1 -0
  215. package/dist/assets/handshake-BPg58FML-DBfm_e1t.js +1 -0
  216. package/dist/assets/{hls-SyH7Grr1.js → hls-DifHSkbp.js} +1 -1
  217. package/dist/assets/{index-DDpxinoY.js → index-BGhFLU7w.js} +582 -582
  218. package/dist/assets/index-BpEXgtW2.js +1 -0
  219. package/dist/assets/index-CrL4860P.js +1 -0
  220. package/dist/assets/index-DOvOS8E_.js +1 -0
  221. package/dist/assets/{index-BG_bOyH4.js → index-DT-oXxhz.js} +3 -3
  222. package/dist/assets/index-DuKH4leN.js +1 -0
  223. package/dist/assets/{index-BiiqfeFx.js → index-RjyLdqZN.js} +1 -1
  224. package/dist/assets/{lexical-dZFDzIA1.js → lexical-CtZYfzDm.js} +1 -1
  225. package/dist/assets/{liveblocks-C2I4vRCJ.js → liveblocks-DjrSQGDL.js} +28 -20
  226. package/dist/assets/lottie-QlMyEFez.js +9 -0
  227. package/dist/assets/{mapLoadingInProgressToTreeNode-CXP8ZZTG-CTGwDEAX.js → mapLoadingInProgressToTreeNode-CXP8ZZTG-DEpSFHGZ.js} +1 -1
  228. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZSP-VcP-DnxPTr5m.js → mapSectionWithAcOnlyToTreeNode-BZSP-VcP-woXs_v4t.js} +1 -1
  229. package/dist/assets/{mapSpacerToTreeNode-Bc1S_1ej-CYjFYdJ9.js → mapSpacerToTreeNode-Bc1S_1ej-D8Xyxewi.js} +1 -1
  230. package/dist/assets/{mapTimeframeBalancesToTreeNode-ClgcHX26-NiO57h1_.js → mapTimeframeBalancesToTreeNode-ClgcHX26-CH6aCNop.js} +1 -1
  231. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cwp98PMa-D8SBCace.js → mapTimeframeBalancesToTreeNode-Cwp98PMa-D47kQKR9.js} +1 -1
  232. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-2wcYi7O-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-ExH9IzF0.js} +1 -1
  233. package/dist/assets/mui-8xKzSljO.js +17 -0
  234. package/dist/assets/page-detail-CWX5S47F-DjAUkIIu.js +1 -0
  235. package/dist/assets/radio-default-CiSgisfh-DioVIMbJ.js +1 -0
  236. package/dist/assets/{react-KsUvriAa.js → react-1fNkcXJk.js} +2 -2
  237. package/dist/assets/react-5bc96E7k.js +17 -0
  238. package/dist/assets/{react-PdDuKQQV.js → react-BpMq70Jz.js} +1 -1
  239. package/dist/assets/{react-BuuImry8.js → react-C26MaKuf.js} +1 -1
  240. package/dist/assets/{react-C5CamjHm.js → react-CQVfZdRf.js} +2 -2
  241. package/dist/assets/{react-B2Dtpj08.js → react-CvSzLYZW.js} +2 -2
  242. package/dist/assets/{react-D9gRIIQJ.js → react-DEufTa0Y.js} +2 -2
  243. package/dist/assets/{react-CurU10nF.js → react-euUD_2CS.js} +3 -3
  244. package/dist/assets/recharts-BnXj3KRI.js +73 -0
  245. package/dist/assets/sentry-C9BQzslk.js +515 -0
  246. package/dist/assets/shield-DOlUxcFf-DfgTXsyM.js +1 -0
  247. package/dist/assets/{toCOABalancesWithID--oEGymMJ-DR0b-mdX.js → toCOABalancesWithID--oEGymMJ-DkNt3ShR.js} +1 -1
  248. package/dist/assets/toChartData-CavJzP6f-MNPPYJmI.js +1 -0
  249. package/dist/assets/transaction-placeholder-CpOwZAMG-DvtWJS0D.js +1 -0
  250. package/dist/assets/{uploadAttachment-BuVCsq0Q-zKioks8R.js → uploadAttachment-BuVCsq0Q-S-SyFEfz.js} +7 -7
  251. package/dist/assets/{uploadReceipts-CPw64UYa-C0--mSOy.js → uploadReceipts-CPw64UYa-BH5K-sl5.js} +1 -1
  252. package/dist/assets/url-MazUlenF.js +1 -0
  253. package/dist/assets/{url-RUB1rBsd.js → url-WfClTpIP.js} +1 -1
  254. package/dist/assets/useLongPress-GCK2COYQ-DGIP6WpU.js +1 -0
  255. package/dist/assets/usp-line-BBd1wKwW-CVrOUZlu.js +1 -0
  256. package/dist/assets/{utils-DUsHM-Uc.js → utils-zYB6z_it.js} +19 -19
  257. package/dist/assets/{zeni-epic-state-CQt4n3Xe.js → zeni-epic-state-D9zDRHOK.js} +34 -34
  258. package/dist/index.html +1 -1
  259. package/package.json +3 -3
  260. package/dist/assets/ACHDetailsPage-B6sY0jN6-QcJjVZLW.js +0 -21
  261. package/dist/assets/AddAddressForCardDrawer-BuAtFO1w-DfK93MR3.js +0 -6
  262. package/dist/assets/CardNumberSubText-BYY-Inxd-BF9mueWC.js +0 -21
  263. package/dist/assets/ConfettiBurst-Cl6jHJ8H-CSCZc3Am.js +0 -1
  264. package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-BcjiZZxB.js +0 -1
  265. package/dist/assets/CustomerOnboardingProductSuitePage-lNIP5gSu-DYmoezK0.js +0 -202
  266. package/dist/assets/DashboardSidebarBackgroundAnimation-B1mJObim-DmY76tPV.js +0 -12
  267. package/dist/assets/DepositAccTransactionListPage-B6px7upV-Cv-bpsAZ.js +0 -66
  268. package/dist/assets/DomesticWireDetailsPage-BFQJmzYm-Dc980arD.js +0 -21
  269. package/dist/assets/LabeledControlledCheckBoxField-CeMM7Ci3-LBs1AfJr.js +0 -16
  270. package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-C1Uh1KWH.js +0 -1
  271. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-DlGiUpRU.js +0 -1
  272. package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-BJ6bmenf.js +0 -1
  273. package/dist/assets/MagicLinkTitleSection-FMRBLlRJ-Cd8bErwn.js +0 -17
  274. package/dist/assets/MailingDetailsSection-CiJ5JLA6-Cv8N5toW.js +0 -21
  275. package/dist/assets/Menu-wpP8R1br-C8t8BK70.js +0 -17
  276. package/dist/assets/NoDataChart-C5ZP32zB-DUId3_Lj.js +0 -26
  277. package/dist/assets/NoDataTable-BnBYE8p_-3MJZp5mC.js +0 -8
  278. package/dist/assets/Preview-D0lKYz6_.js +0 -1
  279. package/dist/assets/SetUpAccountSection-C1EnJv1V-xzskbN4f.js +0 -378
  280. package/dist/assets/SignInScreen-FZ4QwHzk.js +0 -1
  281. package/dist/assets/UploadAdditionalDocumentOverlay-COtszXUY-CEOzWsBe.js +0 -38
  282. package/dist/assets/Vendor2FAPopup-C85mhuSb-C6pzaZ31.js +0 -1
  283. package/dist/assets/VendorACHDetailsPage-DeexeWpV-CCXex94-.js +0 -1
  284. package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-eyjP7Ln-.js +0 -1
  285. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-C4ZxXJOV.js +0 -1
  286. package/dist/assets/VideoPlayer-BVR9LPmm-CvUJV07D.js +0 -78
  287. package/dist/assets/ZeniAccountNavBarPieces-DqLJVQ5t-C8FJNePa.js +0 -14
  288. package/dist/assets/ZeniTransferAmountSlider-1DS0MsTI-B25HwNSf.js +0 -63
  289. package/dist/assets/add-to-wallet-DgdBD8_G-DvwlYBb0.js +0 -1
  290. package/dist/assets/analyticsHelper-lfrGqA3D.js +0 -1
  291. package/dist/assets/arrow-south-east-round-PEovUgvH-D9klpzRU.js +0 -1
  292. package/dist/assets/auto-transfer-rule-mbafm5D3-CHCjFoIN.js +0 -1
  293. package/dist/assets/constants-B4Ak6U9p.js +0 -1
  294. package/dist/assets/core-CA3j8Axi.js +0 -77
  295. package/dist/assets/empty-CrPfQgao.js +0 -1
  296. package/dist/assets/empty-Dn000SHy.js +0 -1
  297. package/dist/assets/epic-C_I3d-Sx.js +0 -2
  298. package/dist/assets/gift-box-Cmt9OgIZ-eSACml6z.js +0 -1
  299. package/dist/assets/graphic-no-data-l-DU4J8fDt-BzIPOWHn.js +0 -1
  300. package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-CtBcTNoa.js +0 -1
  301. package/dist/assets/handshake-BPg58FML-DvA7MfJg.js +0 -1
  302. package/dist/assets/index-BWZriWwb.js +0 -1
  303. package/dist/assets/index-C-ypGNlB.js +0 -1
  304. package/dist/assets/index-C4-PHmb9.js +0 -1
  305. package/dist/assets/index-C5fdNIhc.js +0 -1
  306. package/dist/assets/lottie-B7mXQ-R-.js +0 -9
  307. package/dist/assets/mui-DpJXlk4t.js +0 -25
  308. package/dist/assets/page-detail-CWX5S47F-Byx36A1h.js +0 -1
  309. package/dist/assets/radio-default-CiSgisfh-HcY1qXLg.js +0 -1
  310. package/dist/assets/react-B7zczQTC.js +0 -17
  311. package/dist/assets/recharts-BGdJnVo5.js +0 -73
  312. package/dist/assets/sentry-BA4piVNf.js +0 -500
  313. package/dist/assets/shield-DOlUxcFf-DciCHlJY.js +0 -1
  314. package/dist/assets/toChartData-CavJzP6f-KkbBsImT.js +0 -1
  315. package/dist/assets/transaction-placeholder-CpOwZAMG-2yCTNaDx.js +0 -1
  316. package/dist/assets/url-Bq2XNMnM.js +0 -1
  317. package/dist/assets/useLongPress-GCK2COYQ-Ch-mrcwO.js +0 -1
  318. package/dist/assets/usp-line-BBd1wKwW-BZdA9pHf.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as X,q as le,ca as de,F as k,V as t,aK as v,g1 as Q,bL as ce,p as a,bQ as F,o as r,bz as he,k2 as pe,b as d,hI as _,hH as T,n as me,bu as ue,ah as ge,k3 as Ce,ch as ke,D as xe,bI as fe,ag as h,au as U,ak as je,l as ye,b5 as ve,aZ as $e,b7 as ee}from"./index-DDpxinoY.js";import{a as n}from"./core-CA3j8Axi.js";import{n as o,b as te,k as be}from"./mui-DpJXlk4t.js";import{bj as re,bO as Le}from"./zeni-epic-state-CQt4n3Xe.js";import{o as we}from"./transaction-placeholder-CpOwZAMG-2yCTNaDx.js";import{h as Ee,A as Me,X as We,Y as Se,T as De,a as He}from"./recharts-BGdJnVo5.js";import"./sentry-BA4piVNf.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./lexical-dZFDzIA1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="06729af6-3076-40a1-9230-5f46c8f194be",e._sentryDebugIdIdentifier="sentry-dbid-06729af6-3076-40a1-9230-5f46c8f194be")}catch{}})();const Ve=k.getLocalizedStrings().expenseAutomation,Pe=k.getLocalizedStrings().dateFormat.visual,{common:{strings:{percentage:ze},texts:{score:Fe}}}=k.getLocalizedStrings(),_e=({active:e,payload:i})=>{if(e===!1||e===void 0||!i||i.length===0)return null;const c=i[0]?.value;return c==null?null:t.jsxs(Ie,{children:[t.jsx(Ze,{children:Fe}),t.jsxs(Ne,{children:[c,ze]})]})};function Te({data:e,height:i}){const c=X(),L=e.map(x=>({month:Le(`${x.period.year}-${String(x.period.month).padStart(2,"0")}-01`).format(Pe.MMMYYFormat),count:Math.round(x.auditScore)}));return t.jsxs(Ye,{children:[t.jsx(Re,{children:Ve.overview.monthEndCloseTrend}),t.jsx(Ee,{height:i,width:"100%",children:t.jsxs(Me,{data:L,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"scoreGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:a.brandColorJade,stopOpacity:.8}),t.jsx("stop",{offset:"100%",stopColor:a.brandColorJade,stopOpacity:.1})]})}),t.jsx(We,{dataKey:"month",axisLine:{stroke:c.colors.grey3},tickLine:!1,interval:"preserveStartEnd",label:{color:c.colors.hero,fontSize:d.smallRegular.fontSize,fontWeight:d.smallRegular.fontWeight,fontFamily:d.smallRegular.fontFamily}}),t.jsx(Se,{hide:!0}),t.jsx(De,{content:_e,cursor:{stroke:c.colors.primary,strokeDasharray:"3 3",strokeWidth:1},allowEscapeViewBox:{x:!1,y:!0}}),t.jsx(He,{type:"monotone",dataKey:"count",stroke:a.brandColorJade,strokeWidth:2,fill:"url(#scoreGradient)",dot:!1,activeDot:{r:5,fill:a.neutralGrey4Light,stroke:a.brandColorJade,strokeWidth:2}})]})})]})}const Re=o(h)`
1
+ import{d as K,q as le,ca as de,V as t,g1 as Q,aM as v,bL as ce,p as a,bQ as F,o as r,bz as he,k2 as pe,b as d,hI as _,hH as R,n as me,bu as ue,ah as ge,k3 as Ce,F as k,ch as ke,D as xe,bH as fe,ag as h,au as U,ak as je,l as ye,b5 as ve,aZ as $e,b7 as ee}from"./index-BGhFLU7w.js";import{a as n}from"./sentry-C9BQzslk.js";import{n as o,c as te,k as be}from"./mui-8xKzSljO.js";import{bh as re,bL as Le}from"./zeni-epic-state-D9zDRHOK.js";import{o as we}from"./transaction-placeholder-CpOwZAMG-DvtWJS0D.js";import{U as Me,F as Ee,X as We,Y as Se,J as De,G as He}from"./recharts-BnXj3KRI.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="6c97d1a0-7de5-4db7-a79d-69074484c45b",e._sentryDebugIdIdentifier="sentry-dbid-6c97d1a0-7de5-4db7-a79d-69074484c45b")}catch{}})();const Ve=k.getLocalizedStrings().expenseAutomation,Pe=k.getLocalizedStrings().dateFormat.visual,{common:{strings:{percentage:ze},texts:{score:Fe}}}=k.getLocalizedStrings(),_e=({active:e,payload:i})=>{if(e===!1||e===void 0||!i||i.length===0)return null;const c=i[0]?.value;return c==null?null:t.jsxs(Ze,{children:[t.jsx(Ie,{children:Fe}),t.jsxs(Ne,{children:[c,ze]})]})};function Re({data:e,height:i}){const c=K(),L=e.map(x=>({month:Le(`${x.period.year}-${String(x.period.month).padStart(2,"0")}-01`).format(Pe.MMMYYFormat),count:Math.round(x.auditScore)}));return t.jsxs(Ye,{children:[t.jsx(Te,{children:Ve.overview.monthEndCloseTrend}),t.jsx(Me,{height:i,width:"100%",children:t.jsxs(Ee,{data:L,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"scoreGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:a.brandColorJade,stopOpacity:.8}),t.jsx("stop",{offset:"100%",stopColor:a.brandColorJade,stopOpacity:.1})]})}),t.jsx(We,{dataKey:"month",axisLine:{stroke:c.colors.grey3},tickLine:!1,interval:"preserveStartEnd",label:{color:c.colors.hero,fontSize:d.smallRegular.fontSize,fontWeight:d.smallRegular.fontWeight,fontFamily:d.smallRegular.fontFamily}}),t.jsx(Se,{hide:!0}),t.jsx(De,{content:_e,cursor:{stroke:c.colors.primary,strokeDasharray:"3 3",strokeWidth:1},allowEscapeViewBox:{x:!1,y:!0}}),t.jsx(He,{type:"monotone",dataKey:"count",stroke:a.brandColorJade,strokeWidth:2,fill:"url(#scoreGradient)",dot:!1,activeDot:{r:5,fill:a.neutralGrey4Light,stroke:a.brandColorJade,strokeWidth:2}})]})})]})}const Te=o(h)`
2
2
  color: ${e=>e.theme.colors.champion};
3
3
  `,Ye=o.div`
4
4
  display: flex;
@@ -6,7 +6,7 @@ import{d as X,q as le,ca as de,F as k,V as t,aK as v,g1 as Q,bL as ce,p as a,bQ
6
6
  row-gap: ${r.sp3};
7
7
  align-items: center;
8
8
  width: 100%;
9
- `,Ie=o.div`
9
+ `,Ze=o.div`
10
10
  background-color: ${a.primaryLight};
11
11
  border-radius: ${r.sp1};
12
12
  padding: ${r.sp2} ${r.sp3};
@@ -15,11 +15,11 @@ import{d as X,q as le,ca as de,F as k,V as t,aK as v,g1 as Q,bL as ce,p as a,bQ
15
15
  justify-content: space-between;
16
16
  gap: ${r.sp2};
17
17
  min-width: 80px;
18
- `,Ze=o(h)`
18
+ `,Ie=o(h)`
19
19
  color: ${e=>e.theme.colors.brandColorJade};
20
20
  `,Ne=o(h)`
21
21
  color: ${e=>e.theme.colors.brandColorPearl};
22
- `,E=k.getLocalizedStrings().expenseAutomation,Ae=k.getLocalizedStrings().dateFormat.visual;function Be(){const e=Array.from({length:6},(i,c)=>re().subtract(5-c,"month").format(Ae.MMMYYFormat));return t.jsxs(Ge,{children:[t.jsx(Je,{children:E.overview.monthEndCloseTrend}),t.jsxs(Oe,{children:[t.jsx(qe,{children:t.jsxs(Ke,{children:[E.overview.monthEndCloseTrendNoData,t.jsx("br",{}),E.overview.monthEndCloseTrendNoDataDescription]})}),t.jsxs(Xe,{children:[t.jsx(Qe,{}),t.jsx(Ue,{children:e.map(i=>t.jsx(et,{children:i},i))})]})]})]})}const Je=o(h)`
22
+ `,M=k.getLocalizedStrings().expenseAutomation,Be=k.getLocalizedStrings().dateFormat.visual;function Ae(){const e=Array.from({length:6},(i,c)=>re().subtract(5-c,"month").format(Be.MMMYYFormat));return t.jsxs(Ge,{children:[t.jsx(Je,{children:M.overview.monthEndCloseTrend}),t.jsxs(Oe,{children:[t.jsx(qe,{children:t.jsxs(Xe,{children:[M.overview.monthEndCloseTrendNoData,t.jsx("br",{}),M.overview.monthEndCloseTrendNoDataDescription]})}),t.jsxs(Ke,{children:[t.jsx(Qe,{}),t.jsx(Ue,{children:e.map(i=>t.jsx(et,{children:i},i))})]})]})]})}const Je=o(h)`
23
23
  color: ${e=>e.theme.colors.champion};
24
24
  `,Ge=o.div`
25
25
  display: flex;
@@ -42,10 +42,10 @@ import{d as X,q as le,ca as de,F as k,V as t,aK as v,g1 as Q,bL as ce,p as a,bQ
42
42
  display: flex;
43
43
  align-items: center;
44
44
  justify-content: center;
45
- `,Ke=o(h)`
45
+ `,Xe=o(h)`
46
46
  color: ${e=>e.theme.colors.hero};
47
47
  text-align: center;
48
- `,Xe=o.div`
48
+ `,Ke=o.div`
49
49
  width: 100%;
50
50
  `,Qe=o.div`
51
51
  width: 100%;
@@ -58,7 +58,7 @@ import{d as X,q as le,ca as de,F as k,V as t,aK as v,g1 as Q,bL as ce,p as a,bQ
58
58
  width: 100%;
59
59
  `,et=o(h)`
60
60
  color: ${e=>e.theme.colors.hero};
61
- `;function tt({monthClosePerformanceTrendFetchStatus:e,monthClosePerformanceTrend:i}){return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?t.jsx(Q,{styles:{margin:r.sp0},size:"Small",fetchState:"In-Progress"}):i.length===0?t.jsx(Be,{}):t.jsx(Te,{data:i.slice(-6),height:160})}const rt=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.96875 19.5C4.96875 19.3757 4.91936 19.2565 4.83146 19.1685C4.74355 19.0806 4.62432 19.0312 4.5 19.0312H2.625C2.50068 19.0312 2.38145 19.0806 2.29354 19.1685C2.20564 19.2565 2.15625 19.3757 2.15625 19.5V22.7812H4.96875V19.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.5938 14.8125C10.5938 14.6882 10.5444 14.569 10.4565 14.481C10.3685 14.3931 10.2493 14.3438 10.125 14.3438H8.25C8.12568 14.3438 8.00645 14.3931 7.91854 14.481C7.83064 14.569 7.78125 14.6882 7.78125 14.8125V22.7812H10.5938V14.8125Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M16.2188 17.625C16.2188 17.5007 16.1694 17.3815 16.0815 17.2935C15.9935 17.2056 15.8743 17.1562 15.75 17.1562H13.875C13.7507 17.1562 13.6315 17.2056 13.5435 17.2935C13.4556 17.3815 13.4062 17.5007 13.4062 17.625V22.7812H16.2188V17.625Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M21.8438 10.125C21.8438 10.0007 21.7944 9.88145 21.7065 9.79354C21.6185 9.70564 21.4993 9.65625 21.375 9.65625H19.5C19.3757 9.65625 19.2565 9.70564 19.1685 9.79354C19.0806 9.88145 19.0312 10.0007 19.0312 10.125V22.7812H21.8438V10.125Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M1.2225 22.7812H22.785",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M4.42285 8.79992L6.92785 6.29492",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M9.87402 5.91406L12.259 7.30531",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.3535 7.0907L18.9666 4.25195",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5664 3.09375C18.5664 3.59103 18.764 4.06794 19.1156 4.41958C19.4672 4.77121 19.9441 4.96875 20.4414 4.96875C20.9387 4.96875 21.4156 4.77121 21.7672 4.41958C22.1189 4.06794 22.3164 3.59103 22.3164 3.09375C22.3164 2.59647 22.1189 2.11956 21.7672 1.76792C21.4156 1.41629 20.9387 1.21875 20.4414 1.21875C19.9441 1.21875 19.4672 1.41629 19.1156 1.76792C18.764 2.11956 18.5664 2.59647 18.5664 3.09375Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.0039 8.25C12.0039 8.74728 12.2015 9.22419 12.5531 9.57583C12.9047 9.92746 13.3816 10.125 13.8789 10.125C14.3762 10.125 14.8531 9.92746 15.2047 9.57583C15.5564 9.22419 15.7539 8.74728 15.7539 8.25C15.7539 7.75272 15.5564 7.27581 15.2047 6.92417C14.8531 6.57254 14.3762 6.375 13.8789 6.375C13.3816 6.375 12.9047 6.57254 12.5531 6.92417C12.2015 7.27581 12.0039 7.75272 12.0039 8.25Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M6.37891 4.96875C6.37891 5.46603 6.57645 5.94294 6.92808 6.29458C7.27971 6.64621 7.75663 6.84375 8.25391 6.84375C8.75119 6.84375 9.2281 6.64621 9.57973 6.29458C9.93136 5.94294 10.1289 5.46603 10.1289 4.96875C10.1289 4.72252 10.0804 4.4787 9.98618 4.25122C9.89195 4.02373 9.75384 3.81703 9.57973 3.64292C9.40562 3.46881 9.19892 3.3307 8.97144 3.23648C8.74395 3.14225 8.50013 3.09375 8.25391 3.09375C8.00768 3.09375 7.76386 3.14225 7.53638 3.23648C7.30889 3.3307 7.10219 3.46881 6.92808 3.64292C6.75397 3.81703 6.61586 4.02373 6.52163 4.25122C6.4274 4.4787 6.37891 4.72252 6.37891 4.96875Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M1.22266 10.125C1.22266 10.6223 1.4202 11.0992 1.77183 11.4508C2.12346 11.8025 2.60038 12 3.09766 12C3.59494 12 4.07185 11.8025 4.42348 11.4508C4.77511 11.0992 4.97266 10.6223 4.97266 10.125C4.97266 9.62772 4.77511 9.15081 4.42348 8.79917C4.07185 8.44754 3.59494 8.25 3.09766 8.25C2.60038 8.25 2.12346 8.44754 1.77183 8.79917C1.4202 9.15081 1.22266 9.62772 1.22266 10.125Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ot=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M22.5604 11.0002V5.32031C22.5604 4.21574 21.665 3.32031 20.5604 3.32031H3.40039C2.29582 3.32031 1.40039 4.21574 1.40039 5.32031V16.5002C1.40039 17.6048 2.2964 18.5002 3.40097 18.5002C5.79811 18.5002 6.65584 18.5002 10.0005 18.5002",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),n.createElement("path",{d:"M7 1.40039L7 5.25039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),n.createElement("path",{d:"M17 1.40039L17 5.25039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),n.createElement("path",{d:"M1.41138 7.78125H22.1144",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.9167 18.8398H13V21.7565",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M22.5142 19.8662C22.1722 20.8688 21.4977 21.7244 20.6026 22.2909C19.7075 22.8574 18.6456 23.1008 17.5931 22.9807C16.5406 22.8606 15.5609 22.3843 14.8163 21.6308C14.0718 20.8772 13.6074 19.8917 13.5 18.8379",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M20.083 17.1725H22.9997V14.2559",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.4854 16.1448C13.8272 15.1422 14.5015 14.2867 15.3965 13.7201C16.2915 13.1535 17.3532 12.91 18.4057 13.0298C19.4581 13.1497 20.4379 13.6258 21.1826 14.3791C21.9272 15.1324 22.3919 16.1177 22.4995 17.1715",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})),nt=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M8.60956 10.3995L13.5175 15.3075",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M6.69507 20.8607C5.11904 22.4368 2.0939 21.9185 2.0939 21.9185C2.0939 21.9185 1.5333 18.8933 3.15164 17.3173C3.3661 17.0602 3.63638 16.8555 3.94192 16.7187C4.24746 16.5819 4.58018 16.5166 4.91476 16.5278C5.24934 16.5391 5.57695 16.6265 5.87263 16.7835C6.16831 16.9404 6.42428 17.1628 6.62103 17.4337C6.87992 17.6354 7.09064 17.8923 7.23789 18.1856C7.38513 18.479 7.4652 18.8014 7.47229 19.1296C7.47938 19.4578 7.41331 19.7834 7.27887 20.0828C7.14444 20.3822 6.94501 20.648 6.69507 20.8607Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M21.8313 2.08577C12.8617 1.18669 10.1962 7.52255 7.02295 13.2978L10.6087 16.8836C16.3945 13.6998 22.7304 11.0554 21.8313 2.08577Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M8.9692 9.77558L7.58356 9.31018C7.11291 9.18266 6.61676 9.18307 6.14632 9.31138C5.67589 9.43968 5.24822 9.69121 4.90748 10.04L3.41606 11.5314C3.33077 11.6175 3.2686 11.7237 3.23532 11.8402C3.20203 11.9567 3.19871 12.0797 3.22567 12.1978C3.25893 12.3079 3.32198 12.4067 3.40784 12.4832C3.4937 12.5597 3.59904 12.6111 3.71223 12.6315L7.03354 13.2979",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M14.1733 14.9373L14.607 16.3335C14.7345 16.8041 14.7341 17.3003 14.6058 17.7707C14.4775 18.2411 14.226 18.6688 13.8771 19.0096L12.3963 20.501C12.3137 20.588 12.2094 20.6515 12.0942 20.6849C11.9789 20.7184 11.8569 20.7206 11.7405 20.6914C11.6279 20.6609 11.5262 20.599 11.4475 20.5128C11.3688 20.4266 11.3164 20.3198 11.2963 20.2048L10.6299 16.8835",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M16.4475 9.37366C17.499 9.37366 18.3514 8.52124 18.3514 7.46973C18.3514 6.41822 17.499 5.5658 16.4475 5.5658C15.3959 5.5658 14.5435 6.41822 14.5435 7.46973C14.5435 8.52124 15.3959 9.37366 16.4475 9.37366Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),st=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M5.14285 7.34697C5.00759 7.34697 4.89795 7.23733 4.89795 7.10208C4.89795 6.96682 5.00759 6.85718 5.14285 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M5.14288 7.34697C5.27814 7.34697 5.38778 7.23733 5.38778 7.10208C5.38778 6.96682 5.27814 6.85718 5.14288 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M5.14285 10.7754C5.00759 10.7754 4.89795 10.6658 4.89795 10.5305C4.89795 10.3953 5.00759 10.2856 5.14285 10.2856",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M5.14288 10.7754C5.27814 10.7754 5.38778 10.6658 5.38778 10.5305C5.38778 10.3953 5.27814 10.2856 5.14288 10.2856",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M5.14285 14.2042C5.00759 14.2042 4.89795 14.0945 4.89795 13.9593C4.89795 13.824 5.00759 13.7144 5.14285 13.7144",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M5.14288 14.2042C5.27814 14.2042 5.38778 14.0945 5.38778 13.9593C5.38778 13.824 5.27814 13.7144 5.14288 13.7144",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M9.06124 10.7754C8.92599 10.7754 8.81635 10.6658 8.81635 10.5305C8.81635 10.3953 8.92599 10.2856 9.06124 10.2856",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M9.06122 10.7754C9.19647 10.7754 9.30612 10.6658 9.30612 10.5305C9.30612 10.3953 9.19647 10.2856 9.06122 10.2856",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M9.06124 7.34697C8.92599 7.34697 8.81635 7.23733 8.81635 7.10208C8.81635 6.96682 8.92599 6.85718 9.06124 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M9.06122 7.34697C9.19647 7.34697 9.30612 7.23733 9.30612 7.10208C9.30612 6.96682 9.19647 6.85718 9.06122 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M12.9796 7.34697C12.8443 7.34697 12.7347 7.23733 12.7347 7.10208C12.7347 6.96682 12.8443 6.85718 12.9796 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M12.9796 7.34697C13.1149 7.34697 13.2245 7.23733 13.2245 7.10208C13.2245 6.96682 13.1149 6.85718 12.9796 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M8.32655 17.1429H2.449C2.0593 17.1429 1.68555 16.9881 1.40999 16.7125C1.13442 16.437 0.979614 16.0631 0.979614 15.6735V3.91836C0.979614 3.52866 1.13442 3.15491 1.40999 2.87935C1.68555 2.60379 2.0593 2.44897 2.449 2.44897H15.6735C16.0632 2.44897 16.437 2.60379 16.7125 2.87935C16.9881 3.15491 17.1429 3.52866 17.1429 3.91836V8.32653",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M5.38776 3.91827V0.979492",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.7347 3.91827V0.979492",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M17.1429 23.0205C20.3889 23.0205 23.0204 20.389 23.0204 17.1429C23.0204 13.8969 20.3889 11.2654 17.1429 11.2654C13.8968 11.2654 11.2653 13.8969 11.2653 17.1429C11.2653 20.389 13.8968 23.0205 17.1429 23.0205Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.7408 17.1428H17.1429V14.5459",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),R={transaction_categorization:we,missing_receipts:Ce,flux_analysis:rt,je_schedules:ot,month_end_insights:ge,reconciliation:ue},it=e=>e.filter(i=>i.id!=="month_end_insights"),at=e=>e.filter(i=>i.id==="month_end_insights"),lt=({string:e,count:i})=>t.jsxs(zt,{children:[i,t.jsx(h,{children:e})]}),{expenseAutomation:p,common:m,dateFormat:Y}=k.getLocalizedStrings();function Ot({monthEndCloseChecksView:e,isRealtimeInsightsFeatureEnabled:i,onMonthEndCheckClick:c,onBackClick:L,handleReviewButtonClick:x,onPeriodChange:oe,onReload:D}){const u=X(),ne=le();de({componentName:"expense_automation.overview"});const se=n.useMemo(()=>{if(e.monthEndCloseChecks?.targetCloseDate==null)return m.strings.hyphen;const s=e.monthEndCloseChecks.targetCloseDate.startOf("day"),j=re().startOf("day"),l=s.diff(j,"days");return Math.max(l,0)},[e.monthEndCloseChecks?.targetCloseDate]);if(e.monthEndCloseChecks==null||["Not-Started","In-Progress"].includes(e.fetchState))return t.jsx(q,{"data-testid":v("expense-automation-overview-page-activity-indicator"),children:t.jsx(Q,{fetchState:"In-Progress"})});if(e.monthEndCloseChecks==null||e.fetchState==="Error")return t.jsx(q,{children:t.jsx($t,{"data-testid":v("expense-automation-overview-page-reload-page"),onClick:D,children:t.jsx(ce,{})})});const{monthEndCloseChecks:{auditSummary:g,monthEndCloseCheckList:H,reportEmailSentDate:V},refreshStatus:ie}=e;let $,f;g.auditScorePercentage<=50?($=a.important,f=a.importantLight):g.auditScorePercentage<=75?($=a.alert,f=a.alertLight):($=a.success,f=a.successLight);const ae=t.jsx(jt,{"data-testid":v("expense-automation-overview-page-refresh-icon"),onClick:D,children:t.jsx(F,{style:{marginTop:r.sp1},placement:"bottom",title:m.texts.refresh,enterDelay:600,children:t.jsx(Lt,{$spinning:ie.fetchState==="In-Progress"})})}),P=it(H),z=at(H);return t.jsxs(dt,{children:[t.jsx(he,{title:t.jsx(pe,{pickerLabelStyle:{...d.largeSemiBold.cssObject},onPeriodChange:oe,monthEndCloseChecksView:e}),showBackButton:!0,onBackClick:L,source:"ExpenseAutomationOverviewPage",rightSideComponent:ae}),t.jsxs(Ct,{children:[t.jsx(ct,{children:t.jsx(ht,{windowSize:ne,children:t.jsxs(pt,{children:[t.jsxs(ut,{children:[t.jsx(ft,{children:t.jsx(_,{background:!0,value:Math.floor(g.auditScorePercentage),text:`${Math.floor(g.auditScorePercentage)}${m.strings.percentage}`,strokeWidth:10,styles:{...T({strokeLinecap:"butt",pathColor:$,textColor:u.colors.primary,trailColor:u.colors.grey2,backgroundColor:f}),root:{width:"96px",height:"96px",backgroundColor:f,borderRadius:"50%"},text:{fontSize:d.h6Medium.fontSize,fontFamily:d.h6Medium.fontFamily,lineHeight:d.h6Medium.lineHeight,fontWeight:d.h6Medium.fontWeight,letterSpacing:d.h6Medium.letterSpacing,fill:a.primaryLight}}})}),t.jsx(Wt,{children:t.jsxs(gt,{children:[t.jsxs(St,{children:[t.jsxs(yt,{children:[t.jsx(mt,{children:p.overview.confidenceScoreTitle}),t.jsx(F,{display:"block",placement:"top",position:"relative",title:p.overview.confidenceScoreTooltip,style:{top:"-2px"},enterDelay:600,children:t.jsx(Pt,{})}),g.auditReportLastGeneratedDate!=null?t.jsx(vt,{children:g.auditReportLastGeneratedDate.utc(!0).fromNow()}):null]}),t.jsx(M,{children:p.overview.auditScoreDescription})]}),t.jsxs(Vt,{children:[t.jsxs(K,{children:[t.jsx(Dt,{}),t.jsx(M,{children:p.overview.targetClose}),e.monthEndCloseChecks.targetCloseDate!=null?t.jsx(S,{children:e.monthEndCloseChecks.targetCloseDate.format(Y.visual.MMMDCommaYYYYformat)}):t.jsx(S,{children:m.strings.hyphen})]}),t.jsxs(K,{children:[t.jsx(Ht,{}),t.jsx(M,{children:p.overview.daysToClose}),t.jsx(S,{children:se})]})]}),t.jsx(me,{style:{alignSelf:"flex-start"},variant:"primary",label:m.texts.review,onClick:x})]})})]}),t.jsx(tt,{monthClosePerformanceTrend:e.monthClosePerformanceTrend,monthClosePerformanceTrendFetchStatus:e.monthClosePerformanceTrendFetchStatus})]})})}),t.jsxs(kt,{children:[t.jsxs(I,{children:[t.jsx(b,{cardDisabled:!1,children:p.overview.checklist}),t.jsx(Z,{children:P.map((s,j)=>{const l=s.isDisabled;let C,y;return s.progress<=50?(C=a.important,y=a.importantLight):s.progress<=75?(C=a.alert,y=a.alertLight):(C=a.success,y=a.successLight),t.jsxs(N,{index:j,totalCards:P.length,"data-testid":v("expense-automation-overview-page-month-end-close-check-card",s.id),cardDisabled:l,onClick:()=>{l===!1&&c(s.id)},children:[t.jsxs(O,{children:[t.jsx(G,{cardDisabled:l,isDarkMode:u.mode==="dark",children:t.jsx(J,{as:R[s.id]??null})}),t.jsxs(W,{children:[t.jsx(b,{cardDisabled:l,children:s.title}),t.jsx(A,{className:"card-description",cardDisabled:l,children:s.description})]})]}),s.metrics.map(w=>t.jsx(lt,{string:w.label,count:w.value},w.columnIndex)),t.jsx(_,{background:!0,value:Math.floor(s.progress),text:`${Math.floor(s.progress)}${m.strings.percentage}`,strokeWidth:10,styles:{...T({strokeLinecap:"butt",pathColor:C,textColor:u.colors.primary,trailColor:u.colors.grey2,backgroundColor:y}),root:{width:r.sp7,height:r.sp7,backgroundColor:y,borderRadius:"50%"},text:{fontSize:d.h6Medium.fontSize,fontFamily:d.h6Medium.fontFamily,lineHeight:d.h6Medium.lineHeight,fontWeight:d.h6Medium.fontWeight,letterSpacing:d.h6Medium.letterSpacing,fill:a.primaryLight}}}),t.jsx(B,{className:"card-right-chevron",disabled:l})]},s.id)})})]}),t.jsxs(I,{children:[t.jsx(b,{cardDisabled:!1,children:p.overview.checklistReport}),t.jsx(Z,{children:z.map((s,j)=>{const l=!i||s.isDisabled,C=l===!0||s.id==="month_end_insights"&&e.monthEndCloseChecks?.reportEmailSentDate!=null;return t.jsxs(N,{index:j,totalCards:z.length,"data-testid":v("expense-automation-overview-page-month-end-close-check-card",s.id),cardDisabled:l,onClick:()=>{C===!1&&c(s.id)},children:[t.jsxs(O,{children:[t.jsx(G,{cardDisabled:l,isDarkMode:u.mode==="dark",children:t.jsx(J,{as:R[s.id]??null})}),t.jsxs(W,{children:[t.jsx(b,{cardDisabled:l,children:s.title}),t.jsx(A,{className:"card-description",cardDisabled:l,children:s.description})]})]}),t.jsxs(xt,{children:[s.id==="month_end_insights"&&V!=null?t.jsxs(Mt,{children:[t.jsx(wt,{children:m.texts.closed}),t.jsx(Et,{children:V.format(Y.visual.MMMDCommaYYYYformat)})]}):null,t.jsx(W,{children:t.jsx(B,{className:"card-right-chevron",disabled:l})})]})]},s.id)})})]})]})]})]})}const dt=o.div`
61
+ `;function tt({monthClosePerformanceTrendFetchStatus:e,monthClosePerformanceTrend:i}){return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?t.jsx(Q,{styles:{margin:r.sp0},size:"Small",fetchState:"In-Progress"}):i.length===0?t.jsx(Ae,{}):t.jsx(Re,{data:i.slice(-6),height:160})}const rt=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.96875 19.5C4.96875 19.3757 4.91936 19.2565 4.83146 19.1685C4.74355 19.0806 4.62432 19.0312 4.5 19.0312H2.625C2.50068 19.0312 2.38145 19.0806 2.29354 19.1685C2.20564 19.2565 2.15625 19.3757 2.15625 19.5V22.7812H4.96875V19.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.5938 14.8125C10.5938 14.6882 10.5444 14.569 10.4565 14.481C10.3685 14.3931 10.2493 14.3438 10.125 14.3438H8.25C8.12568 14.3438 8.00645 14.3931 7.91854 14.481C7.83064 14.569 7.78125 14.6882 7.78125 14.8125V22.7812H10.5938V14.8125Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M16.2188 17.625C16.2188 17.5007 16.1694 17.3815 16.0815 17.2935C15.9935 17.2056 15.8743 17.1562 15.75 17.1562H13.875C13.7507 17.1562 13.6315 17.2056 13.5435 17.2935C13.4556 17.3815 13.4062 17.5007 13.4062 17.625V22.7812H16.2188V17.625Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M21.8438 10.125C21.8438 10.0007 21.7944 9.88145 21.7065 9.79354C21.6185 9.70564 21.4993 9.65625 21.375 9.65625H19.5C19.3757 9.65625 19.2565 9.70564 19.1685 9.79354C19.0806 9.88145 19.0312 10.0007 19.0312 10.125V22.7812H21.8438V10.125Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M1.2225 22.7812H22.785",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M4.42285 8.79992L6.92785 6.29492",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M9.87402 5.91406L12.259 7.30531",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.3535 7.0907L18.9666 4.25195",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5664 3.09375C18.5664 3.59103 18.764 4.06794 19.1156 4.41958C19.4672 4.77121 19.9441 4.96875 20.4414 4.96875C20.9387 4.96875 21.4156 4.77121 21.7672 4.41958C22.1189 4.06794 22.3164 3.59103 22.3164 3.09375C22.3164 2.59647 22.1189 2.11956 21.7672 1.76792C21.4156 1.41629 20.9387 1.21875 20.4414 1.21875C19.9441 1.21875 19.4672 1.41629 19.1156 1.76792C18.764 2.11956 18.5664 2.59647 18.5664 3.09375Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.0039 8.25C12.0039 8.74728 12.2015 9.22419 12.5531 9.57583C12.9047 9.92746 13.3816 10.125 13.8789 10.125C14.3762 10.125 14.8531 9.92746 15.2047 9.57583C15.5564 9.22419 15.7539 8.74728 15.7539 8.25C15.7539 7.75272 15.5564 7.27581 15.2047 6.92417C14.8531 6.57254 14.3762 6.375 13.8789 6.375C13.3816 6.375 12.9047 6.57254 12.5531 6.92417C12.2015 7.27581 12.0039 7.75272 12.0039 8.25Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M6.37891 4.96875C6.37891 5.46603 6.57645 5.94294 6.92808 6.29458C7.27971 6.64621 7.75663 6.84375 8.25391 6.84375C8.75119 6.84375 9.2281 6.64621 9.57973 6.29458C9.93136 5.94294 10.1289 5.46603 10.1289 4.96875C10.1289 4.72252 10.0804 4.4787 9.98618 4.25122C9.89195 4.02373 9.75384 3.81703 9.57973 3.64292C9.40562 3.46881 9.19892 3.3307 8.97144 3.23648C8.74395 3.14225 8.50013 3.09375 8.25391 3.09375C8.00768 3.09375 7.76386 3.14225 7.53638 3.23648C7.30889 3.3307 7.10219 3.46881 6.92808 3.64292C6.75397 3.81703 6.61586 4.02373 6.52163 4.25122C6.4274 4.4787 6.37891 4.72252 6.37891 4.96875Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M1.22266 10.125C1.22266 10.6223 1.4202 11.0992 1.77183 11.4508C2.12346 11.8025 2.60038 12 3.09766 12C3.59494 12 4.07185 11.8025 4.42348 11.4508C4.77511 11.0992 4.97266 10.6223 4.97266 10.125C4.97266 9.62772 4.77511 9.15081 4.42348 8.79917C4.07185 8.44754 3.59494 8.25 3.09766 8.25C2.60038 8.25 2.12346 8.44754 1.77183 8.79917C1.4202 9.15081 1.22266 9.62772 1.22266 10.125Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ot=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M22.5604 11.0002V5.32031C22.5604 4.21574 21.665 3.32031 20.5604 3.32031H3.40039C2.29582 3.32031 1.40039 4.21574 1.40039 5.32031V16.5002C1.40039 17.6048 2.2964 18.5002 3.40097 18.5002C5.79811 18.5002 6.65584 18.5002 10.0005 18.5002",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),n.createElement("path",{d:"M7 1.40039L7 5.25039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),n.createElement("path",{d:"M17 1.40039L17 5.25039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),n.createElement("path",{d:"M1.41138 7.78125H22.1144",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.9167 18.8398H13V21.7565",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M22.5142 19.8662C22.1722 20.8688 21.4977 21.7244 20.6026 22.2909C19.7075 22.8574 18.6456 23.1008 17.5931 22.9807C16.5406 22.8606 15.5609 22.3843 14.8163 21.6308C14.0718 20.8772 13.6074 19.8917 13.5 18.8379",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M20.083 17.1725H22.9997V14.2559",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.4854 16.1448C13.8272 15.1422 14.5015 14.2867 15.3965 13.7201C16.2915 13.1535 17.3532 12.91 18.4057 13.0298C19.4581 13.1497 20.4379 13.6258 21.1826 14.3791C21.9272 15.1324 22.3919 16.1177 22.4995 17.1715",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})),nt=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M8.60956 10.3995L13.5175 15.3075",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M6.69507 20.8607C5.11904 22.4368 2.0939 21.9185 2.0939 21.9185C2.0939 21.9185 1.5333 18.8933 3.15164 17.3173C3.3661 17.0602 3.63638 16.8555 3.94192 16.7187C4.24746 16.5819 4.58018 16.5166 4.91476 16.5278C5.24934 16.5391 5.57695 16.6265 5.87263 16.7835C6.16831 16.9404 6.42428 17.1628 6.62103 17.4337C6.87992 17.6354 7.09064 17.8923 7.23789 18.1856C7.38513 18.479 7.4652 18.8014 7.47229 19.1296C7.47938 19.4578 7.41331 19.7834 7.27887 20.0828C7.14444 20.3822 6.94501 20.648 6.69507 20.8607Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M21.8313 2.08577C12.8617 1.18669 10.1962 7.52255 7.02295 13.2978L10.6087 16.8836C16.3945 13.6998 22.7304 11.0554 21.8313 2.08577Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M8.9692 9.77558L7.58356 9.31018C7.11291 9.18266 6.61676 9.18307 6.14632 9.31138C5.67589 9.43968 5.24822 9.69121 4.90748 10.04L3.41606 11.5314C3.33077 11.6175 3.2686 11.7237 3.23532 11.8402C3.20203 11.9567 3.19871 12.0797 3.22567 12.1978C3.25893 12.3079 3.32198 12.4067 3.40784 12.4832C3.4937 12.5597 3.59904 12.6111 3.71223 12.6315L7.03354 13.2979",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M14.1733 14.9373L14.607 16.3335C14.7345 16.8041 14.7341 17.3003 14.6058 17.7707C14.4775 18.2411 14.226 18.6688 13.8771 19.0096L12.3963 20.501C12.3137 20.588 12.2094 20.6515 12.0942 20.6849C11.9789 20.7184 11.8569 20.7206 11.7405 20.6914C11.6279 20.6609 11.5262 20.599 11.4475 20.5128C11.3688 20.4266 11.3164 20.3198 11.2963 20.2048L10.6299 16.8835",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M16.4475 9.37366C17.499 9.37366 18.3514 8.52124 18.3514 7.46973C18.3514 6.41822 17.499 5.5658 16.4475 5.5658C15.3959 5.5658 14.5435 6.41822 14.5435 7.46973C14.5435 8.52124 15.3959 9.37366 16.4475 9.37366Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),st=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M5.14285 7.34697C5.00759 7.34697 4.89795 7.23733 4.89795 7.10208C4.89795 6.96682 5.00759 6.85718 5.14285 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M5.14288 7.34697C5.27814 7.34697 5.38778 7.23733 5.38778 7.10208C5.38778 6.96682 5.27814 6.85718 5.14288 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M5.14285 10.7754C5.00759 10.7754 4.89795 10.6658 4.89795 10.5305C4.89795 10.3953 5.00759 10.2856 5.14285 10.2856",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M5.14288 10.7754C5.27814 10.7754 5.38778 10.6658 5.38778 10.5305C5.38778 10.3953 5.27814 10.2856 5.14288 10.2856",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M5.14285 14.2042C5.00759 14.2042 4.89795 14.0945 4.89795 13.9593C4.89795 13.824 5.00759 13.7144 5.14285 13.7144",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M5.14288 14.2042C5.27814 14.2042 5.38778 14.0945 5.38778 13.9593C5.38778 13.824 5.27814 13.7144 5.14288 13.7144",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M9.06124 10.7754C8.92599 10.7754 8.81635 10.6658 8.81635 10.5305C8.81635 10.3953 8.92599 10.2856 9.06124 10.2856",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M9.06122 10.7754C9.19647 10.7754 9.30612 10.6658 9.30612 10.5305C9.30612 10.3953 9.19647 10.2856 9.06122 10.2856",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M9.06124 7.34697C8.92599 7.34697 8.81635 7.23733 8.81635 7.10208C8.81635 6.96682 8.92599 6.85718 9.06124 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M9.06122 7.34697C9.19647 7.34697 9.30612 7.23733 9.30612 7.10208C9.30612 6.96682 9.19647 6.85718 9.06122 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M12.9796 7.34697C12.8443 7.34697 12.7347 7.23733 12.7347 7.10208C12.7347 6.96682 12.8443 6.85718 12.9796 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M12.9796 7.34697C13.1149 7.34697 13.2245 7.23733 13.2245 7.10208C13.2245 6.96682 13.1149 6.85718 12.9796 6.85718",stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{d:"M8.32655 17.1429H2.449C2.0593 17.1429 1.68555 16.9881 1.40999 16.7125C1.13442 16.437 0.979614 16.0631 0.979614 15.6735V3.91836C0.979614 3.52866 1.13442 3.15491 1.40999 2.87935C1.68555 2.60379 2.0593 2.44897 2.449 2.44897H15.6735C16.0632 2.44897 16.437 2.60379 16.7125 2.87935C16.9881 3.15491 17.1429 3.52866 17.1429 3.91836V8.32653",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M5.38776 3.91827V0.979492",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.7347 3.91827V0.979492",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M17.1429 23.0205C20.3889 23.0205 23.0204 20.389 23.0204 17.1429C23.0204 13.8969 20.3889 11.2654 17.1429 11.2654C13.8968 11.2654 11.2653 13.8969 11.2653 17.1429C11.2653 20.389 13.8968 23.0205 17.1429 23.0205Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.7408 17.1428H17.1429V14.5459",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),T={transaction_categorization:we,missing_receipts:Ce,flux_analysis:rt,je_schedules:ot,month_end_insights:ge,reconciliation:ue},it=e=>e.filter(i=>i.id!=="month_end_insights"),at=e=>e.filter(i=>i.id==="month_end_insights"),lt=({string:e,count:i})=>t.jsxs(zt,{children:[i,t.jsx(h,{children:e})]}),{expenseAutomation:p,common:m,dateFormat:Y}=k.getLocalizedStrings();function Ot({monthEndCloseChecksView:e,isRealtimeInsightsFeatureEnabled:i,onMonthEndCheckClick:c,onBackClick:L,handleReviewButtonClick:x,onPeriodChange:oe,onReload:D}){const u=K(),ne=le();de({componentName:"expense_automation.overview"});const se=n.useMemo(()=>{if(e.monthEndCloseChecks?.targetCloseDate==null)return m.strings.hyphen;const s=e.monthEndCloseChecks.targetCloseDate.startOf("day"),j=re().startOf("day"),l=s.diff(j,"days");return Math.max(l,0)},[e.monthEndCloseChecks?.targetCloseDate]);if(e.monthEndCloseChecks==null||["Not-Started","In-Progress"].includes(e.fetchState))return t.jsx(q,{"data-testid":v("expense-automation-overview-page-activity-indicator"),children:t.jsx(Q,{fetchState:"In-Progress"})});if(e.monthEndCloseChecks==null||e.fetchState==="Error")return t.jsx(q,{children:t.jsx($t,{"data-testid":v("expense-automation-overview-page-reload-page"),onClick:D,children:t.jsx(ce,{})})});const{monthEndCloseChecks:{auditSummary:g,monthEndCloseCheckList:H,reportEmailSentDate:V},refreshStatus:ie}=e;let $,f;g.auditScorePercentage<=50?($=a.important,f=a.importantLight):g.auditScorePercentage<=75?($=a.alert,f=a.alertLight):($=a.success,f=a.successLight);const ae=t.jsx(jt,{"data-testid":v("expense-automation-overview-page-refresh-icon"),onClick:D,children:t.jsx(F,{style:{marginTop:r.sp1},placement:"bottom",title:m.texts.refresh,enterDelay:600,children:t.jsx(Lt,{$spinning:ie.fetchState==="In-Progress"})})}),P=it(H),z=at(H);return t.jsxs(dt,{children:[t.jsx(he,{title:t.jsx(pe,{pickerLabelStyle:{...d.largeSemiBold.cssObject},onPeriodChange:oe,monthEndCloseChecksView:e}),showBackButton:!0,onBackClick:L,source:"ExpenseAutomationOverviewPage",rightSideComponent:ae}),t.jsxs(Ct,{children:[t.jsx(ct,{children:t.jsx(ht,{windowSize:ne,children:t.jsxs(pt,{children:[t.jsxs(ut,{children:[t.jsx(ft,{children:t.jsx(_,{background:!0,value:Math.floor(g.auditScorePercentage),text:`${Math.floor(g.auditScorePercentage)}${m.strings.percentage}`,strokeWidth:10,styles:{...R({strokeLinecap:"butt",pathColor:$,textColor:u.colors.primary,trailColor:u.colors.grey2,backgroundColor:f}),root:{width:"96px",height:"96px",backgroundColor:f,borderRadius:"50%"},text:{fontSize:d.h6Medium.fontSize,fontFamily:d.h6Medium.fontFamily,lineHeight:d.h6Medium.lineHeight,fontWeight:d.h6Medium.fontWeight,letterSpacing:d.h6Medium.letterSpacing,fill:a.primaryLight}}})}),t.jsx(Wt,{children:t.jsxs(gt,{children:[t.jsxs(St,{children:[t.jsxs(yt,{children:[t.jsx(mt,{children:p.overview.confidenceScoreTitle}),t.jsx(F,{display:"block",placement:"top",position:"relative",title:p.overview.confidenceScoreTooltip,style:{top:"-2px"},enterDelay:600,children:t.jsx(Pt,{})}),g.auditReportLastGeneratedDate!=null?t.jsx(vt,{children:g.auditReportLastGeneratedDate.utc(!0).fromNow()}):null]}),t.jsx(E,{children:p.overview.auditScoreDescription})]}),t.jsxs(Vt,{children:[t.jsxs(X,{children:[t.jsx(Dt,{}),t.jsx(E,{children:p.overview.targetClose}),e.monthEndCloseChecks.targetCloseDate!=null?t.jsx(S,{children:e.monthEndCloseChecks.targetCloseDate.format(Y.visual.MMMDCommaYYYYformat)}):t.jsx(S,{children:m.strings.hyphen})]}),t.jsxs(X,{children:[t.jsx(Ht,{}),t.jsx(E,{children:p.overview.daysToClose}),t.jsx(S,{children:se})]})]}),t.jsx(me,{style:{alignSelf:"flex-start"},variant:"primary",label:m.texts.review,onClick:x})]})})]}),t.jsx(tt,{monthClosePerformanceTrend:e.monthClosePerformanceTrend,monthClosePerformanceTrendFetchStatus:e.monthClosePerformanceTrendFetchStatus})]})})}),t.jsxs(kt,{children:[t.jsxs(Z,{children:[t.jsx(b,{cardDisabled:!1,children:p.overview.checklist}),t.jsx(I,{children:P.map((s,j)=>{const l=s.isDisabled;let C,y;return s.progress<=50?(C=a.important,y=a.importantLight):s.progress<=75?(C=a.alert,y=a.alertLight):(C=a.success,y=a.successLight),t.jsxs(N,{index:j,totalCards:P.length,"data-testid":v("expense-automation-overview-page-month-end-close-check-card",s.id),cardDisabled:l,onClick:()=>{l===!1&&c(s.id)},children:[t.jsxs(O,{children:[t.jsx(G,{cardDisabled:l,isDarkMode:u.mode==="dark",children:t.jsx(J,{as:T[s.id]??null})}),t.jsxs(W,{children:[t.jsx(b,{cardDisabled:l,children:s.title}),t.jsx(B,{className:"card-description",cardDisabled:l,children:s.description})]})]}),s.metrics.map(w=>t.jsx(lt,{string:w.label,count:w.value},w.columnIndex)),t.jsx(_,{background:!0,value:Math.floor(s.progress),text:`${Math.floor(s.progress)}${m.strings.percentage}`,strokeWidth:10,styles:{...R({strokeLinecap:"butt",pathColor:C,textColor:u.colors.primary,trailColor:u.colors.grey2,backgroundColor:y}),root:{width:r.sp7,height:r.sp7,backgroundColor:y,borderRadius:"50%"},text:{fontSize:d.h6Medium.fontSize,fontFamily:d.h6Medium.fontFamily,lineHeight:d.h6Medium.lineHeight,fontWeight:d.h6Medium.fontWeight,letterSpacing:d.h6Medium.letterSpacing,fill:a.primaryLight}}}),t.jsx(A,{className:"card-right-chevron",disabled:l})]},s.id)})})]}),t.jsxs(Z,{children:[t.jsx(b,{cardDisabled:!1,children:p.overview.checklistReport}),t.jsx(I,{children:z.map((s,j)=>{const l=!i||s.isDisabled,C=l===!0||s.id==="month_end_insights"&&e.monthEndCloseChecks?.reportEmailSentDate!=null;return t.jsxs(N,{index:j,totalCards:z.length,"data-testid":v("expense-automation-overview-page-month-end-close-check-card",s.id),cardDisabled:l,onClick:()=>{C===!1&&c(s.id)},children:[t.jsxs(O,{children:[t.jsx(G,{cardDisabled:l,isDarkMode:u.mode==="dark",children:t.jsx(J,{as:T[s.id]??null})}),t.jsxs(W,{children:[t.jsx(b,{cardDisabled:l,children:s.title}),t.jsx(B,{className:"card-description",cardDisabled:l,children:s.description})]})]}),t.jsxs(xt,{children:[s.id==="month_end_insights"&&V!=null?t.jsxs(Et,{children:[t.jsx(wt,{children:m.texts.closed}),t.jsx(Mt,{children:V.format(Y.visual.MMMDCommaYYYYformat)})]}):null,t.jsx(W,{children:t.jsx(A,{className:"card-right-chevron",disabled:l})})]})]},s.id)})})]})]})]})]})}const dt=o.div`
62
62
  display: flex;
63
63
  flex-direction: column;
64
64
  background-color: ${e=>e.theme.colors.grey5};
@@ -83,7 +83,7 @@ import{d as X,q as le,ca as de,F as k,V as t,aK as v,g1 as Q,bL as ce,p as a,bQ
83
83
  height: 100%;
84
84
  `,mt=o(xe)`
85
85
  color: ${e=>e.theme.colors.primary};
86
- `,M=o(je)`
86
+ `,E=o(je)`
87
87
  color: ${e=>e.theme.colors.hero};
88
88
  font-family: ${U.Roboto};
89
89
  `,ut=o.div`
@@ -110,11 +110,11 @@ import{d as X,q as le,ca as de,F as k,V as t,aK as v,g1 as Q,bL as ce,p as a,bQ
110
110
  padding-right: ${r.sp8};
111
111
  `,b=o(ve)`
112
112
  color: ${e=>e.cardDisabled?e.theme.colors.grey2:e.theme.colors.primary};
113
- `,I=o.div`
113
+ `,Z=o.div`
114
114
  display: flex;
115
115
  flex-direction: column;
116
116
  row-gap: ${r.sp3};
117
- `,Z=o.div`
117
+ `,I=o.div`
118
118
  display: flex;
119
119
  flex-direction: column;
120
120
  `,N=o.div`
@@ -141,13 +141,13 @@ import{d as X,q as le,ca as de,F as k,V as t,aK as v,g1 as Q,bL as ce,p as a,bQ
141
141
  }
142
142
  }
143
143
  `:null}
144
- `,A=o(h)`
144
+ `,B=o(h)`
145
145
  color: ${e=>e.cardDisabled?e.theme.colors.grey2:e.theme.colors.hero};
146
146
  `,xt=o.div`
147
147
  display: flex;
148
148
  align-items: center;
149
149
  column-gap: ${r.sp7};
150
- `,W=o.div``,B=o($e)`
150
+ `,W=o.div``,A=o($e)`
151
151
  color: ${e=>e.disabled?e.theme.colors.grey2:e.theme.colors.hero};
152
152
  width: ${r.sp4};
153
153
  height: ${r.sp4};
@@ -231,9 +231,9 @@ import{d as X,q as le,ca as de,F as k,V as t,aK as v,g1 as Q,bL as ce,p as a,bQ
231
231
  }
232
232
  `,wt=o(ee)`
233
233
  color: ${e=>e.theme.colors.success};
234
- `,Et=o(h)`
234
+ `,Mt=o(h)`
235
235
  color: ${e=>e.theme.colors.success};
236
- `,Mt=o.div`
236
+ `,Et=o.div`
237
237
  width: 82px;
238
238
  text-align: center;
239
239
  `,Wt=o.div`
@@ -244,7 +244,7 @@ import{d as X,q as le,ca as de,F as k,V as t,aK as v,g1 as Q,bL as ce,p as a,bQ
244
244
  display: flex;
245
245
  flex-direction: column;
246
246
  row-gap: ${r.sp1};
247
- `,K=o.div`
247
+ `,X=o.div`
248
248
  display: flex;
249
249
  align-items: center;
250
250
  column-gap: ${r.sp2};
@@ -1,4 +1,4 @@
1
- import{o,bS as ca,q as ke,gc as es,gd as ts,F as Ie,V as t,cm as da,a9 as Pe,aO as ns,c as g,cn as ua,d as bt,bz as ha,h$ as pa,aL as Ue,bQ as ye,y as ee,bt as ma,aK as B,hZ as ga,ak as ze,gS as xa,gL as os,bu as fa,bM as Dt,b5 as is,ag as vt,bI as ss,p as Xe,k9 as ya,g1 as Ca,al as pt,L as wa,ge as ba,gf as as,bm as va,ch as Sa,b$ as ja,ey as gn,bY as jo,a8 as qt,bL as ko,ab as Jt,ka,kb as Ia,kc as $a,kd as ln,ke as rs,kf as ls,kg as La,kh as No,ki as Ta,dh as cs,kj as Aa,kk as Ea,kl as Ra,km as Da,kn as Oa,ko as Ma,kp as za,kq as Fa,kr as _a,ks as Ba,kt as ds,ku as Pa,kv as Na,kw as Va,kx as Ha,gt as us,b1 as zn,cq as Fn,m as hs,R as ps,v as ms,cB as xn,dP as Io,gp as Wa,fK as Ua,gU as qa,ap as Ja,l as Ka,fv as Ga,aA as gs,ky as Ya,aS as $o,aN as Vo,kz as Za,kA as Xa,gN as xs,kB as Qa,bC as fs,aQ as er,gB as Rt,hN as Vn,ew as En,cO as Lo,ax as tr,cX as ys,dj as nr,iL as or,dp as To,cv as _n,cy as Bn,is as nt,b as At,hC as ir,gu as Hn,jc as Ho,df as Cs,c_ as hn,kC as sr,aY as ar,dn as ws,n as pn,ii as bs,it as yo,kD as tn,dV as vs,dW as Ss,iO as js,iP as ks,kE as rr,cY as Pn,ij as Is,fk as $s,eo as Wn,aH as Ao,kF as lr,cU as cr,aV as Ls,iA as dr,dN as ur,an as ft,kG as hr,kH as pr,a$ as Un,ek as mr,a7 as gr,el as xr,em as fr,en as yr,ep as Wo,eq as Uo,er as Cr,kI as wr,aZ as br,eA as vr,eB as Sr,eC as jr}from"./index-DDpxinoY.js";import{a as s,S as Ts}from"./core-CA3j8Axi.js";import{n as a,b as Ze,k as Eo}from"./mui-DpJXlk4t.js";import{bj as qn,Ga as qo,Gb as mn,Gc as kr,Gd as Ir,cy as $r,bO as Co,cz as Lr,EI as Jo,cA as Tr,cB as Ar,c3 as As,la as cn,bG as Nt,Ge as Ko,Gf as Er,b_ as Rr,bp as Vt,Gg as Dr,Gh as Es,Gi as Rs,Gj as Ds,Gk as Os,Gl as Ms,Gm as Ro,kP as Or}from"./zeni-epic-state-CQt4n3Xe.js";import{r as zs,I as Fs,n as nn,R as ht}from"./CollapsableReportTable-hL_Ycouc-BeVhCFjP.js";import{N as Jn}from"./AccountRow-BM2kGWyR-CUEabI22.js";import{o as _s}from"./mapTimeframeBalancesToTreeNode-Cwp98PMa-D8SBCace.js";import{d as Go}from"./mapLoadingInProgressToTreeNode-CXP8ZZTG-CTGwDEAX.js";import{h as Mr}from"./VendorsAccountsSection--VfdAF3H-D5xEFwOn.js";import{u as zr,c as Yo,d as Fr,m as _r}from"./uploadAttachment-BuVCsq0Q-zKioks8R.js";import"./sentry-BA4piVNf.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="59938195-b831-4686-a616-83c9b2ec963f",e._sentryDebugIdIdentifier="sentry-dbid-59938195-b831-4686-a616-83c9b2ec963f")}catch{}})();const{common:{navBar:{back:Br},texts:{refresh:Pr,close:Nr,copy:Vr,copied:Hr,open:Wr}},expenseAutomation:{common:{numbers:{maximumCount:Ur}}}}=Ie.getLocalizedStrings(),qr=a(Wa)`
1
+ import{o,bS as ca,q as ke,gc as es,gd as ts,V as t,cm as da,a9 as Pe,aO as ns,c as g,F as Ie,cn as ua,d as bt,bz as ha,h$ as pa,aK as Ue,bQ as ye,y as ee,bt as ma,aM as B,hZ as ga,ak as ze,gR as xa,gL as os,bu as fa,bM as Dt,b5 as is,ag as vt,bH as ss,p as Xe,k9 as ya,g1 as Ca,al as pt,L as wa,ge as ba,gf as as,bm as va,ch as Sa,b$ as ja,ey as gn,bY as jo,a8 as qt,bL as ko,ab as Jt,ka,kb as Ia,kc as $a,kd as ln,ke as rs,kf as ls,kg as La,kh as No,ki as Ta,dh as cs,kj as Aa,kk as Ea,kl as Ra,km as Da,kn as Oa,ko as Ma,kp as za,kq as Fa,kr as _a,ks as Ba,kt as ds,ku as Pa,kv as Na,kw as Va,kx as Ha,gt as us,b1 as zn,cq as Fn,m as hs,R as ps,v as ms,cB as xn,dP as Io,gp as Wa,fK as Ua,gU as qa,ap as Ja,l as Ka,fv as Ga,aA as gs,ky as Ya,aS as $o,aN as Vo,gN as xs,kz as Za,kA as Xa,kB as Qa,bC as fs,aQ as er,gB as Rt,hP as Vn,ew as En,cO as Lo,ax as tr,cX as ys,dj as nr,iL as or,dp as To,cv as _n,cy as Bn,is as nt,b as At,hC as ir,gu as Hn,jc as Ho,df as Cs,c_ as hn,kC as sr,aX as ar,dn as ws,n as pn,ii as bs,it as yo,kD as tn,e9 as vs,eb as Ss,iO as js,iP as ks,kE as rr,cY as Pn,ij as Is,fj as $s,eo as Wn,aG as Ao,kF as lr,cU as cr,aV as Ls,iA as dr,dN as ur,an as ft,kG as hr,kH as pr,a$ as Un,ek as mr,a7 as gr,el as xr,em as fr,en as yr,ep as Wo,eq as Uo,er as Cr,kI as wr,aZ as br,eA as vr,eB as Sr,eC as jr}from"./index-BGhFLU7w.js";import{a as s,S as Ts}from"./sentry-C9BQzslk.js";import{n as a,c as Ze,k as Eo}from"./mui-8xKzSljO.js";import{bh as qn,G9 as qo,Ga as mn,Gb as kr,Gc as Ir,cx as $r,bL as Co,cy as Lr,EH as Jo,cz as Tr,cA as Ar,l8 as cn,bE as Nt,Gd as Ko,c4 as As,Ge as Er,bY as Rr,bo as Vt,Gf as Dr,Gg as Es,Gh as Rs,Gi as Ds,Gj as Os,Gk as Ms,Gl as Ro,kU as Or}from"./zeni-epic-state-D9zDRHOK.js";import{r as zs,I as Fs,n as nn,R as ht}from"./CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js";import{N as Jn}from"./AccountRow-BM2kGWyR-CEX7zEFS.js";import{o as _s}from"./mapTimeframeBalancesToTreeNode-Cwp98PMa-D47kQKR9.js";import{d as Go}from"./mapLoadingInProgressToTreeNode-CXP8ZZTG-DEpSFHGZ.js";import{h as Mr}from"./VendorsAccountsSection--VfdAF3H-CNAOxlvC.js";import{u as zr,c as Yo,d as Fr,m as _r}from"./uploadAttachment-BuVCsq0Q-S-SyFEfz.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4e5ff3fd-32f5-4698-8033-7432d243a407",e._sentryDebugIdIdentifier="sentry-dbid-4e5ff3fd-32f5-4698-8033-7432d243a407")}catch{}})();const{common:{navBar:{back:Br},texts:{refresh:Pr,close:Nr,copy:Vr,copied:Hr,open:Wr}},expenseAutomation:{common:{numbers:{maximumCount:Ur}}}}=Ie.getLocalizedStrings(),qr=a(Wa)`
2
2
  display: flex;
3
3
  width: ${o.sp4};
4
4
  height: ${o.sp4};
@@ -1,4 +1,4 @@
1
- import{d as Re,q as G,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at,aO as nt,y as f,o as n,kL as lt,kM as ot,kN as rt,cH as Ve,cE as dt,eX as st,fz as ct,fA as pt,cG as Ae,g7 as mt,kO as ut,cK as ht,f2 as ze,cL as yt,f3 as ke,fc as Oe,b as ge,fg as gt,c as u,b8 as ft,b5 as be,p as Ee,al as xt,aq as We}from"./index-DDpxinoY.js";import{a as J}from"./core-CA3j8Axi.js";import{n as d}from"./mui-DpJXlk4t.js";import{bO as qe,bj as le,bS as _e,bK as bt,bp as wt}from"./zeni-epic-state-CQt4n3Xe.js";import{Y as vt}from"./LabeledDocumentField-Dy3jwAiL-CCiYsV9S.js";import{S as te}from"./LabeledText-axaAGyUS-CcC7jZEk.js";import"./sentry-BA4piVNf.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="f34b51b1-1887-4a46-aedd-58c0ccd06fff",e._sentryDebugIdIdentifier="sentry-dbid-f34b51b1-1887-4a46-aedd-58c0ccd06fff")}catch{}})();const St={progressBarWidth:new f(343,726)},jt=({pageIndex:e})=>{const i=G(),a=Re(),s=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs($t,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Pt,{children:h.map((p,l)=>t.jsx(Ft,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(Ct,{windowSize:i,children:[t.jsx(ot,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(It,{children:h.map((p,l)=>t.jsx(Tt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},Ct=d.div`
1
+ import{d as Re,q as K,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at,aO as nt,y as f,o as n,kL as lt,kM as ot,kN as rt,cH as Ve,cE as dt,eX as st,fz as ct,fA as pt,cG as Ae,g7 as mt,kO as ut,cK as ht,cL as yt,f2 as ze,f3 as ke,fc as Oe,b as ge,c as u,fe as gt,b8 as ft,b5 as xe,p as Ee,al as bt,aq as We}from"./index-BGhFLU7w.js";import{a as J}from"./sentry-C9BQzslk.js";import{n as d}from"./mui-8xKzSljO.js";import{bL as qe,bh as le,bP as _e,bH as xt,bo as wt}from"./zeni-epic-state-D9zDRHOK.js";import{Y as vt}from"./LabeledDocumentField-Dy3jwAiL-FmwpCOt6.js";import{S as te}from"./LabeledText-axaAGyUS-B-Q4astZ.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="538fba51-43e2-43b1-b3ef-cb917ca02962",e._sentryDebugIdIdentifier="sentry-dbid-538fba51-43e2-43b1-b3ef-cb917ca02962")}catch{}})();const St={progressBarWidth:new f(343,726)},jt=({pageIndex:e})=>{const i=K(),a=Re(),s=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs($t,{children:[t.jsx(lt,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Tt,{children:h.map((p,l)=>t.jsx(Ft,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(Ct,{windowSize:i,children:[t.jsx(ot,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(It,{children:h.map((p,l)=>t.jsx(Pt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},Ct=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${n.sp3};
@@ -18,13 +18,13 @@ import{d as Re,q as G,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
18
18
  margin: ${n.sp3} ${n.sp0};
19
19
  justify-content: space-between;
20
20
  height: ${n.sp6};
21
- `,Tt=d.div`
21
+ `,Pt=d.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  align-items: center;
25
25
  text-align: ${e=>e.stateIndex===0?"left":e.stateIndex===1?"center":"right"};
26
26
  color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
27
- `,Le=d(ft)``,Pt=d.div`
27
+ `,Le=d(ft)``,Tt=d.div`
28
28
  display: flex;
29
29
  flex-direction: column;
30
30
  width: 100%;
@@ -38,7 +38,7 @@ import{d as Re,q as G,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
38
38
  position: relative;
39
39
  height: ${e=>`${e.perSectionHeight}%`};
40
40
  color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
41
- `,T={containerWidth:new f(343,580,726),labelWidth:new f(120,160,160),largeLabelWidth:new f(150,228,228),largeLabelPickerWidth:new f(100,180,180),paddingBottom:new f(u[3],u[2]),labelMarginLeftPicker:new f(u[3],u[4]),labelMarginRightPicker:new f(u[3],u[4]),labelMarginTopPicker:new f(u[2],u[2]),labeledFieldPaddingLeft:new f(u[0],u[0]),labeledFieldPaddingRight:new f(u[2],u[2]),labeledFieldPaddingTop:new f(u[2],u[2]),labeledFieldPaddingBottom:new f(u[2],u[2]),infoLabelPaddingRight:new f(u[0],u[3]),infoLabelMarginTop:new f(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Dt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:P,deleteFileStatusById:I,updateFileStatusById:x,onClickAddAccount:w})=>{const o=G(),{spendManagement:D,dateFormat:y,common:C}=q.getLocalizedStrings(),$=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,_=T.largeLabelWidth.value(o),[g,K]=J.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(bt)===!1),A=r=>s.find(m=>m.id===r),L=r=>ze(A(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=A(r),j=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(fe,{children:m?.piLabels.map(U=>t.jsxs(W,{children:[t.jsxs(z,{children:[U.name,j.paymentDetails.colon]}),t.jsx(E,{children:U.value})]},U.name))}):t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(At,{children:$.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(st,{label:{label:$.withdrawFrom,width:_,style:{marginLeft:T.labelMarginLeftPicker.valuePx(o),marginTop:T.labelMarginTopPicker.valuePx(o),marginRight:T.labelMarginRightPicker.valuePx(o),width:T.largeLabelPickerWidth.value(o)}},style:{paddingTop:T.labeledFieldPaddingTop.valuePx(o),paddingBottom:T.labeledFieldPaddingBottom.valuePx(o),paddingLeft:T.labeledFieldPaddingLeft.valuePx(o),paddingRight:T.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:T.infoLabelPaddingRight.valuePx(o),marginTop:T.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:Ae($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>pt(h,r,m),valueToSubLabels:(r,m)=>ct(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(Y,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:_},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:Ae($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(Y,{}),t.jsx(ut,{label:{label:$.paymentMethod,width:T.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(Y,{}),t.jsx(ht,{label:{label:$.paymentDate,width:T.labelWidth.value(o)},style:{paddingBottom:T.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:X,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(Y,{}),t.jsx(Ve,{label:{label:$.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:L},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(Y,{}),t.jsx(vt,{name:V(e,"receipt"),sizeLimit:yt,deleteFileStatusById:I,updateFileStatusById:x,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:_},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:P,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:g,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:r=>K(r),isOptional:!0,style:P!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),P==null?t.jsx(Ot,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(Y,{})]})]})},At=d(be)`
41
+ `,P={containerWidth:new f(343,580,726),labelWidth:new f(120,160,160),largeLabelWidth:new f(150,228,228),largeLabelPickerWidth:new f(100,180,180),paddingBottom:new f(u[3],u[2]),labelMarginLeftPicker:new f(u[3],u[4]),labelMarginRightPicker:new f(u[3],u[4]),labelMarginTopPicker:new f(u[2],u[2]),labeledFieldPaddingLeft:new f(u[0],u[0]),labeledFieldPaddingRight:new f(u[2],u[2]),labeledFieldPaddingTop:new f(u[2],u[2]),labeledFieldPaddingBottom:new f(u[2],u[2]),infoLabelPaddingRight:new f(u[0],u[3]),infoLabelMarginTop:new f(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Dt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:I,updateFileStatusById:b,onClickAddAccount:w})=>{const o=K(),{spendManagement:D,dateFormat:y,common:C}=q.getLocalizedStrings(),$=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,_=P.largeLabelWidth.value(o),[g,Z]=J.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(xt)===!1),A=r=>s.find(m=>m.id===r),L=r=>ze(A(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=A(r),j=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(fe,{children:m?.piLabels.map(U=>t.jsxs(W,{children:[t.jsxs(z,{children:[U.name,j.paymentDetails.colon]}),t.jsx(E,{children:U.value})]},U.name))}):t.jsxs(fe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(E,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(At,{children:$.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(st,{label:{label:$.withdrawFrom,width:_,style:{marginLeft:P.labelMarginLeftPicker.valuePx(o),marginTop:P.labelMarginTopPicker.valuePx(o),marginRight:P.labelMarginRightPicker.valuePx(o),width:P.largeLabelPickerWidth.value(o)}},style:{paddingTop:P.labeledFieldPaddingTop.valuePx(o),paddingBottom:P.labeledFieldPaddingBottom.valuePx(o),paddingLeft:P.labeledFieldPaddingLeft.valuePx(o),paddingRight:P.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:P.infoLabelPaddingRight.valuePx(o),marginTop:P.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:Ae($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>pt(h,r,m),valueToSubLabels:(r,m)=>ct(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(Y,{}),t.jsx(mt,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:_},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:Ae($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(Y,{}),t.jsx(ut,{label:{label:$.paymentMethod,width:P.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(Y,{}),t.jsx(ht,{label:{label:$.paymentDate,width:P.labelWidth.value(o)},style:{paddingBottom:P.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:X,autoComplete:"off",minDate:le(),registerOptions:{required:!0}}}),t.jsx(Y,{}),t.jsx(Ve,{label:{label:$.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:L},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(Y,{}),t.jsx(vt,{name:V(e,"receipt"),sizeLimit:yt,deleteFileStatusById:I,updateFileStatusById:b,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:_},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:T,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:g,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:r=>Z(r),isOptional:!0,style:T!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),T==null?t.jsx(Ot,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(Y,{})]})]})},At=d(xe)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
44
  `,kt=d.div`
@@ -48,7 +48,7 @@ import{d as Re,q as G,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
48
48
  border: 1px solid ${e=>e.theme.colors.grey3};
49
49
  box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
50
50
  border-radius: ${n.sp2};
51
- width: ${e=>T.containerWidth.valuePx(e.windowSize)};
51
+ width: ${e=>P.containerWidth.valuePx(e.windowSize)};
52
52
  `,Y=d.div`
53
53
  display: flex;
54
54
  flex: 1;
@@ -73,13 +73,13 @@ import{d as Re,q as G,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
73
73
  display: flex;
74
74
  justify-content: space-between;
75
75
  width: 100%;
76
- `,Ot=d(xt)`
76
+ `,Ot=d(bt)`
77
77
  padding: ${n.sp1} ${n.sp4};
78
78
  background: ${e=>e.theme.colors.grey4};
79
79
  border-radius: ${n.sp0} ${n.sp0} ${n.sp2} ${n.sp2};
80
80
  text-align: ${e=>e.windowSize==="small"?"initial":"right"};
81
81
  color: ${e=>e.isError?Ee.important:e.theme.colors.grey1};
82
- `,Lt={largeLabelWidth:new f(150,210,210)},ie=(e,i)=>`${e}.${i}`,Nt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=G(),l=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,P=Lt.largeLabelWidth.value(p),I=J.useRef();J.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(Mt(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const x={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),I.current=C}},w=x?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||x?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:He(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},D={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Bt,{children:l.recipientSectionTitle}),t.jsx(Rt,{children:t.jsxs(Vt,{children:[t.jsx(rt,{label:{label:l.recipientName,width:P},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ie(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:x?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ie(e,"recipient")),t.jsx(Ne,{}),t.jsx(Ve,{label:{label:l.recipientType,width:P},singleSelectField:{singleSelect:{name:ie(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(dt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:P},text:{type:"email",name:ie(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},He=(e,i,a)=>{if(e==null)return[];const s=a?.vendor?.find(h=>h.id===e);return s!=null||e!=null?[{label:s?.name??i??e??"",value:e??i??""}]:[]},Mt=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Bt=d(be)`
82
+ `,Lt={largeLabelWidth:new f(150,210,210)},ie=(e,i)=>`${e}.${i}`,Nt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=K(),l=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Lt.largeLabelWidth.value(p),I=J.useRef();J.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(Mt(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const b={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),I.current=C}},w=b?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(b?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||b?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:He(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},D={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Bt,{children:l.recipientSectionTitle}),t.jsx(Rt,{children:t.jsxs(Vt,{children:[t.jsx(rt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ie(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:b?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ie(e,"recipient")),t.jsx(Ne,{}),t.jsx(Ve,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ie(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(dt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ie(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},He=(e,i,a)=>{if(e==null)return[];const s=a?.vendor?.find(h=>h.id===e);return s!=null||e!=null?[{label:s?.name??i??e??"",value:e??i??""}]:[]},Mt=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Bt=d(xe)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${n.sp3};
85
85
  `,Rt=d.div`
@@ -98,7 +98,7 @@ import{d as Re,q as G,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
98
98
  background-color: ${e=>e.theme.colors.grey3};
99
99
  min-height: 1px;
100
100
  max-height: 1px;
101
- `,oe={containerWidth:new f(343,580,726),largeLabelWidth:new f(150,215,215),reviewContainerMarginLeft:new f(u[3],u[6]),reviewContainerMarginRight:new f(u[3],u[8])},zt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=G(),p=oe.largeLabelWidth.value(h),{billPay:l}=q.getLocalizedStrings().spendManagement,{dateFormat:P,common:I}=q.getLocalizedStrings(),x=l.billDetails,w=i?.paymentType,o=P.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:I.currency.currencyCode,currencySymbol:I.currency.currencySymbol},y=ze(a.find(X=>X.id===i?.paymentToAccountId)),C=i?.paymentDate,$=ke(w?.method??"");return t.jsx(Ut,{children:t.jsxs(Yt,{windowSize:h,style:s,children:[t.jsxs(Xt,{children:[t.jsx(ae,{children:x.pay}),t.jsx(ae,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:x.to}),t.jsx(ae,{children:e})]}),t.jsxs(Jt,{windowSize:h,children:[t.jsx(te,{label:{label:x.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?gt(i.withdrawFrom,h):I.strings.empty}),t.jsx(xe,{}),t.jsx(te,{label:{label:x.paymentMethod,width:p},style:{width:"auto"},value:ke(w?.method??"")}),t.jsx(xe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(te,{label:{label:x.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${x.estimatedArrival}${qe(_e(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${x.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${x.deliveryTimeUnits})`}),t.jsx(xe,{})]}):null,t.jsx(te,{label:{label:x.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,children:[t.jsx(_t,{children:t.jsx(Et,{children:l.paymentDetails.total})}),t.jsx(Ht,{children:t.jsx(Oe,{amount:wt(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Et=d.div``,Wt=d.div`
101
+ `,oe={containerWidth:new f(343,580,726),largeLabelWidth:new f(150,215,215),reviewContainerMarginLeft:new f(u[3],u[6]),reviewContainerMarginRight:new f(u[3],u[8])},zt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=K(),p=oe.largeLabelWidth.value(h),{billPay:l}=q.getLocalizedStrings().spendManagement,{dateFormat:T,common:I}=q.getLocalizedStrings(),b=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:I.currency.currencyCode,currencySymbol:I.currency.currencySymbol},y=ze(a.find(X=>X.id===i?.paymentToAccountId)),C=i?.paymentDate,$=ke(w?.method??"");return t.jsx(Ut,{children:t.jsxs(Yt,{windowSize:h,style:s,children:[t.jsxs(Xt,{children:[t.jsx(ae,{children:b.pay}),t.jsx(ae,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:b.to}),t.jsx(ae,{children:e})]}),t.jsxs(Jt,{windowSize:h,children:[t.jsx(te,{label:{label:b.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?gt(i.withdrawFrom,h):I.strings.empty}),t.jsx(be,{}),t.jsx(te,{label:{label:b.paymentMethod,width:p},style:{width:"auto"},value:ke(w?.method??"")}),t.jsx(be,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(te,{label:{label:b.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${b.estimatedArrival}${qe(_e(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${b.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${b.deliveryTimeUnits})`}),t.jsx(be,{})]}):null,t.jsx(te,{label:{label:b.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,children:[t.jsx(_t,{children:t.jsx(Et,{children:l.paymentDetails.total})}),t.jsx(Ht,{children:t.jsx(Oe,{amount:wt(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Et=d.div``,Wt=d.div`
102
102
  display: flex;
103
103
  width: 100%;
104
104
  box-sizing: border-box;
@@ -145,7 +145,7 @@ import{d as Re,q as G,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
145
145
  margin-bottom: ${n.sp3};
146
146
  margin-top: ${n.sp3};
147
147
  width: ${e=>oe.containerWidth.valuePx(e.windowSize)};
148
- `,xe=d.div`
148
+ `,be=d.div`
149
149
  display: flex;
150
150
  flex: 1;
151
151
  background-color: ${e=>e.theme.colors.grey3};
@@ -153,11 +153,11 @@ import{d as Re,q as G,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
153
153
  max-height: 1px;
154
154
  `,Xt=d.div`
155
155
  display: flex;
156
- `,ae=d(be)`
156
+ `,ae=d(xe)`
157
157
  display: flex;
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  margin-right: ${n.sp1};
160
- `,Me="expressPayPage",Kt=e=>`${e}_form`,O="recipientDetails",F="paymentDetails",ne={buttonWidth:new f(160,140),largeButtonWidth:new f(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:P,onBackClick:I,saveVendorDetailLocalData:x,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:_,expressPayLocalData:g,vendorTypeList:K,allPaymentMethods:H,paymentToOptions:A,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:U}=e,[v,Q]=J.useState(0),Ue=Re(),Z=G(),{common:we,spendManagement:Ye}=q.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Ye.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=_,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Je=N?.vendorName,$e=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(K,L,A,$e,H,N,g,j,C?.entityAutoCompleteView),values:Be(K,L,A,$e,H,N,g,j,C?.entityAutoCompleteView)}),Ie=De(Ce.saveStatus?.fetchState),Te=De(m);J.useEffect(()=>{const c=ee.watch((S,{name:b})=>{b!=null&&S!=null&&tt(()=>Xe(b,S))});return()=>{c.unsubscribe()}}),J.useEffect(()=>{Ie==="In-Progress"&&U==="Completed"&&(v===0?(Q(1),o?.(g?.vendorId)):v===1&&Q(2)),Te==="In-Progress"&&m==="Completed"&&I(g?.vendorId)},[Ie,U,v,o,g?.vendorId,Te,m,I]);const Xe=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[O].recipient.selectedOption,k=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===b);Ke(S),y(),N?.vendorId!==b&&k!=null&&(l?.(b),he(S,!1,A,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,k=g?.paymentType?.method,M=b!=null&&k!=null&&(b.toLowerCase().includes("ach")&&k.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&k.toLowerCase().includes("ach"));he(S,M,A,g?.vendorId)}},Ke=c=>{const S=c[O].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(k=>k.id===S)!=null;if(S!=null&&b===!0){P?.(S),he(c,!1,A,S);return}ue(c,!0)},ue=(c,S)=>{const b=N?.vendorId,k=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,M=Zt(c,k===!0?b:void 0,N,S);x?.(M,b)},he=(c,S,b,k)=>{const M=(()=>{let B=[];return c[F].paymentMethod?.method.includes("wire")===!0?B=b.filter(R=>!!R.bankRoutingNumberWireTransfer).map(R=>R.id):B=b.filter(R=>!!R.bankRoutingNumberAch).map(R=>R.id),B})(),ye=b.find(B=>B.id===c[F]?.paymentTo?.selectedOption),Qe={vendorId:k,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?qe(c[F].paymentDate.toString()):le(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?M[0]:ye?.id,withdrawFrom:L.find(B=>B.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Qe)},Pe=ee.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=ee.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ze=()=>{v===2?Q(1):I(g?.vendorId)},Ge=()=>{v===0?I(g?.vendorId):Q(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?A.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??H?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(it,{title:me.pageTitle,onBackClick:Ge,backgroundColor:Ue.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Gt,{windowSize:Z,children:[t.jsx(jt,{pageIndex:v}),t.jsx(at,{...ee,children:t.jsx("form",{id:Me,onSubmit:Pe,children:v===0?t.jsx(Nt,{sectionId:O,vendorTypeList:K,formLocalData:N,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Dt,{sectionId:F,paymentDetails:Fe,paymentToOptions:A,allPaymentMethods:H,withdrawFromList:L,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=Fe?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(zt,{reviewDetails:g,paymentToOptions:A,vendorName:Je}):null})})]}),t.jsx(nt,{formId:Kt(Me),style:{width:"100%"},primaryBtn:{label:v===2?le().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?Ce.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?ne.largeButtonWidth.value(Z):ne.buttonWidth.value(Z),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Pe()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(Z):ne.buttonWidth.value(Z),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ze}})]})},Be=(e,i,a,s,h,p,l,P,I)=>{const x=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[O]:{recipient:{defaultOptions:He(p?.vendorId,p?.vendorName,I),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[F]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??_e(le().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?x:[],selectedOption:l?.paymentToAccountId??x[0]},receipt:P}}};function Zt(e,i,a,s){const h=e[O].recipient.defaultOptions.find(p=>p.value===e[O].recipient.selectedOption);return{vendorType:s===!0?void 0:e[O].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[O].recipientEmail,phone:""}],bankAccountIds:s===!0?[]:a?.bankAccountIds??[],paymentInstrumentIds:s===!0?[]:a?.paymentInstrumentIds??[],vendorOwner:s===!0?void 0:a?.vendorOwner,isVendor1099:a?.isVendor1099,documentIds:a?.documentIds??[],fileIdsToBeDeleted:a?.fileIdsToBeDeleted??[],countryCode:s===!0?void 0:a?.countryCode,currencyCode:a?.currencyCode,currencySymbol:s===!0?void 0:a?.currencySymbol,deleteFileStatusById:a?.deleteFileStatusById??{},updateFileStatusById:a?.updateFileStatusById??{},recommendedCategory:a?.recommendedCategory,recommendedClass:a?.recommendedClass,isCategoryUpdateSelected:a?.isCategoryUpdateSelected??!1,isClassUpdateSelected:a?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:a?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:a?.isClassRecommendationPrefilled??!0}}const Gt=d.div`
160
+ `,Me="expressPayPage",Zt=e=>`${e}_form`,O="recipientDetails",F="paymentDetails",ne={buttonWidth:new f(160,140),largeButtonWidth:new f(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:I,saveVendorDetailLocalData:b,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:_,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:H,paymentToOptions:A,withdrawFromList:L,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:U}=e,[v,Q]=J.useState(0),Ue=Re(),G=K(),{common:we,spendManagement:Ye}=q.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=Ye.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=_,N=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),Je=N?.vendorName,$e=L.find(c=>c.id===s),ee=et({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,L,A,$e,H,N,g,j,C?.entityAutoCompleteView),values:Be(Z,L,A,$e,H,N,g,j,C?.entityAutoCompleteView)}),Ie=De(Ce.saveStatus?.fetchState),Pe=De(m);J.useEffect(()=>{const c=ee.watch((S,{name:x})=>{x!=null&&S!=null&&tt(()=>Xe(x,S))});return()=>{c.unsubscribe()}}),J.useEffect(()=>{Ie==="In-Progress"&&U==="Completed"&&(v===0?(Q(1),o?.(g?.vendorId)):v===1&&Q(2)),Pe==="In-Progress"&&m==="Completed"&&I(g?.vendorId)},[Ie,U,v,o,g?.vendorId,Pe,m,I]);const Xe=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const x=S[O].recipient.selectedOption,k=C?.entityAutoCompleteView.vendor.find(M=>M.zeniId===x);Ze(S),y(),N?.vendorId!==x&&k!=null&&(l?.(x),he(S,!1,A,x))}else if(c.includes("recipient"))ue(S);else{const x=S[F].paymentMethod?.method,k=g?.paymentType?.method,M=x!=null&&k!=null&&(x.toLowerCase().includes("ach")&&k.toLowerCase().includes("wire")||x.toLowerCase().includes("wire")&&k.toLowerCase().includes("ach"));he(S,M,A,g?.vendorId)}},Ze=c=>{const S=c[O].recipient.selectedOption,x=C?.entityAutoCompleteView.vendor.find(k=>k.id===S)!=null;if(S!=null&&x===!0){T?.(S),he(c,!1,A,S);return}ue(c,!0)},ue=(c,S)=>{const x=N?.vendorId,k=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===x)!=null,M=Gt(c,k===!0?x:void 0,N,S);b?.(M,x)},he=(c,S,x,k)=>{const M=(()=>{let B=[];return c[F].paymentMethod?.method.includes("wire")===!0?B=x.filter(R=>!!R.bankRoutingNumberWireTransfer).map(R=>R.id):B=x.filter(R=>!!R.bankRoutingNumberAch).map(R=>R.id),B})(),ye=x.find(B=>B.id===c[F]?.paymentTo?.selectedOption),Qe={vendorId:k,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?qe(c[F].paymentDate.toString()):le(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?M[0]:ye?.id,withdrawFrom:L.find(B=>B.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Qe)},Te=ee.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=ee.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ge=()=>{v===2?Q(1):I(g?.vendorId)},Ke=()=>{v===0?I(g?.vendorId):Q(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?A.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??H?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(it,{title:me.pageTitle,onBackClick:Ke,backgroundColor:Ue.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Kt,{windowSize:G,children:[t.jsx(jt,{pageIndex:v}),t.jsx(at,{...ee,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(Nt,{sectionId:O,vendorTypeList:Z,formLocalData:N,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Dt,{sectionId:F,paymentDetails:Fe,paymentToOptions:A,allPaymentMethods:H,withdrawFromList:L,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=Fe?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(zt,{reviewDetails:g,paymentToOptions:A,vendorName:Je}):null})})]}),t.jsx(nt,{formId:Zt(Me),style:{width:"100%"},primaryBtn:{label:v===2?le().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?Ce.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?ne.largeButtonWidth.value(G):ne.buttonWidth.value(G),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?ne.largeButtonWidth.value(G):ne.buttonWidth.value(G),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ge}})]})},Be=(e,i,a,s,h,p,l,T,I)=>{const b=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[O]:{recipient:{defaultOptions:He(p?.vendorId,p?.vendorName,I),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[F]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??_e(le().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?b:[],selectedOption:l?.paymentToAccountId??b[0]},receipt:T}}};function Gt(e,i,a,s){const h=e[O].recipient.defaultOptions.find(p=>p.value===e[O].recipient.selectedOption);return{vendorType:s===!0?void 0:e[O].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[O].recipientEmail,phone:""}],bankAccountIds:s===!0?[]:a?.bankAccountIds??[],paymentInstrumentIds:s===!0?[]:a?.paymentInstrumentIds??[],vendorOwner:s===!0?void 0:a?.vendorOwner,isVendor1099:a?.isVendor1099,documentIds:a?.documentIds??[],fileIdsToBeDeleted:a?.fileIdsToBeDeleted??[],countryCode:s===!0?void 0:a?.countryCode,currencyCode:a?.currencyCode,currencySymbol:s===!0?void 0:a?.currencySymbol,deleteFileStatusById:a?.deleteFileStatusById??{},updateFileStatusById:a?.updateFileStatusById??{},recommendedCategory:a?.recommendedCategory,recommendedClass:a?.recommendedClass,isCategoryUpdateSelected:a?.isCategoryUpdateSelected??!1,isClassUpdateSelected:a?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:a?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:a?.isClassRecommendationPrefilled??!0}}const Kt=d.div`
161
161
  display: flex;
162
162
  flex-wrap: wrap;
163
163
  height: 100%;
@@ -165,4 +165,4 @@ import{d as Re,q as G,F as q,a8 as et,aN as De,cB as tt,V as t,bz as it,ab as at
165
165
  align-items: center;
166
166
  background-color: ${e=>e.theme.colors.grey4};
167
167
  margin-top: ${e=>e.windowSize==="small"?n.sp3:0};
168
- `;export{mi as default,Kt as formUniqueName};
168
+ `;export{mi as default,Zt as formUniqueName};
@@ -1,11 +1,11 @@
1
- import{d as w,q as v,F as y,aS as n,p,V as i,cm as _,y as r,cn as k,co as x,c as g}from"./index-DDpxinoY.js";import{n as d}from"./mui-DpJXlk4t.js";import"./core-CA3j8Axi.js";import"./sentry-BA4piVNf.js";import"./zeni-epic-state-CQt4n3Xe.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="9ca9cb85-5053-4a20-a431-8bd7221cead1",o._sentryDebugIdIdentifier="sentry-dbid-9ca9cb85-5053-4a20-a431-8bd7221cead1")}catch{}})();const a={popupWidth:new r(200,468,468,468),buttonWidth:new r(140,160,160,160),popupContainerLeft:new r(g[0],g[0],255),popupContainerWidth:new r(100,100,85)},z=d.div`
1
+ import{d as w,q as v,F as y,aS as n,p,V as i,cm as _,y as r,cn as k,co as x,c as g}from"./index-BGhFLU7w.js";import{n as d}from"./mui-8xKzSljO.js";import"./sentry-C9BQzslk.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="8b341dea-3692-4c30-bea0-3d3be7c574fc",e._sentryDebugIdIdentifier="sentry-dbid-8b341dea-3692-4c30-bea0-3d3be7c574fc")}catch{}})();const t={popupWidth:new r(200,468,468,468),buttonWidth:new r(140,160,160,160),popupContainerLeft:new r(g[0],g[0],255),popupContainerWidth:new r(100,100,85)},z=d.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
5
5
  width: 100%;
6
6
  flex-direction: column;
7
- background-color: ${o=>o.theme.colors.grey4};
7
+ background-color: ${e=>e.theme.colors.grey4};
8
8
  `,W=d.img`
9
9
  width: 100%;
10
10
  height: 100%;
11
- `,C={mobile:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""},normal:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""}};function F({menuItem:o,onDemoClick:t,onGoBack:m}){const s=w(),e=v(),u=`${C[e==="small"?"mobile":"normal"][o]}-${s.mode}.png`,{featurePreview:c}=y.getLocalizedStrings(),l=c.popups[o],b=s.mode==="light"?new n(p.backgroundGradient1Light):new n(p.backgroundGradient1Dark),h=s.mode==="light"?new n(p.backgroundGradient2Light):new n(p.backgroundGradient2Dark),f={onOkClick:()=>{t()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(W,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(_,{titleComponent:i.jsx(x,{children:l.title}),descriptionComponent:i.jsx(k,{children:l.text}),primaryButtonText:c.scheduleDemo,secondaryButtonText:c.goBack,action:f,primaryButtonWidth:a.buttonWidth.value(e),secondaryButtonWidth:a.buttonWidth.value(e),style:{background:`radial-gradient(50% 50% at 50% 50%, ${b} 0%, ${h} 100%)`,backdropFilter:"blur(2px)",width:a.popupContainerWidth.valuePercentage(e),left:a.popupContainerLeft.value(e)},containerStyle:{border:`1px solid ${s.colors.grey1}`,minWidth:a.popupWidth.valuePx(e)}})]})}export{F as default};
11
+ `,C={mobile:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""},normal:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_accountant:"",ai_cfo:""}};function F({menuItem:e,onDemoClick:a,onGoBack:m}){const s=w(),o=v(),u=`${C[o==="small"?"mobile":"normal"][e]}-${s.mode}.png`,{featurePreview:c}=y.getLocalizedStrings(),l=c.popups[e],b=s.mode==="light"?new n(p.backgroundGradient1Light):new n(p.backgroundGradient1Dark),h=s.mode==="light"?new n(p.backgroundGradient2Light):new n(p.backgroundGradient2Dark),f={onOkClick:()=>{a()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(W,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(_,{titleComponent:i.jsx(x,{children:l.title}),descriptionComponent:i.jsx(k,{children:l.text}),primaryButtonText:c.scheduleDemo,secondaryButtonText:c.goBack,action:f,primaryButtonWidth:t.buttonWidth.value(o),secondaryButtonWidth:t.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${b} 0%, ${h} 100%)`,backdropFilter:"blur(2px)",width:t.popupContainerWidth.valuePercentage(o),left:t.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${s.colors.grey1}`,minWidth:t.popupWidth.valuePx(o)}})]})}export{F as default};
@@ -1,4 +1,4 @@
1
- import{V as l,q as H,F as Y,cO as q,cW as G,d as ee,cU as K,y as L,gb as Z,o as i,aK as M,eh as ce,aA as le,g3 as pe,g4 as ue,n as he,p as u,c as g,gy as ge,cV as be,cX as ye,an as ve,bF as we,b as W,dh as $e,bG as fe,bE as ke}from"./index-DDpxinoY.js";import{n as d}from"./mui-DpJXlk4t.js";import{a as V}from"./core-CA3j8Axi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="e0527f9b-0ef7-497e-8ff6-2fa9755e0ca7",e._sentryDebugIdIdentifier="sentry-dbid-e0527f9b-0ef7-497e-8ff6-2fa9755e0ca7")}catch{}})();const v={width:new L(343,580,726),height:new L(g[6],g[6]),controlHeight:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTop:new L(g[3],g[3]),paddingBottom:new L(g[3],g[2]),labelMarginRight:new L(g[3],g[4])};function je({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=q(),m=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Te,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(K,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:r.colors.champion}}),l.jsxs(Oe,{labelWidth:s.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||m&&t.additionalErrorLabel?l.jsx(oe,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Ie,{children:[l.jsx(se,{}),l.jsx(Le,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
1
+ import{q as H,V as l,F as Y,cO as q,cW as G,d as ee,cU as Q,y as L,gb as Z,o as i,aM as M,eh as ce,aA as le,g3 as pe,g4 as ue,n as he,p as u,c as g,gy as ge,cV as be,cX as ye,an as ve,bE as we,b as W,dh as $e,bF as fe,bD as ke}from"./index-BGhFLU7w.js";import{n as d}from"./mui-8xKzSljO.js";import{a as V}from"./sentry-C9BQzslk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="fed26e7a-fe25-4cc9-a3b6-4bd31a38230b",e._sentryDebugIdIdentifier="sentry-dbid-fed26e7a-fe25-4cc9-a3b6-4bd31a38230b")}catch{}})();const v={width:new L(343,580,726),height:new L(g[6],g[6]),controlHeight:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTop:new L(g[3],g[3]),paddingBottom:new L(g[3],g[2]),labelMarginRight:new L(g[3],g[4])};function je({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=q(),m=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Te,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(Q,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:r.colors.champion}}),l.jsxs(Oe,{labelWidth:s.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||m&&t.additionalErrorLabel?l.jsx(oe,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Ie,{children:[l.jsx(se,{}),l.jsx(Le,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -95,7 +95,7 @@ import{V as l,q as H,F as Y,cO as q,cW as G,d as ee,cU as K,y as L,gb as Z,o as
95
95
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
96
96
  white-space: pre-line;
97
97
  margin-top: ${i.sp1};
98
- `;function Se({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=q(),m=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(De,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,children:[l.jsx(K,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:r.colors.champion}}),l.jsxs(Ee,{labelWidth:s.width,children:[p.hideField?null:l.jsxs(ze,{children:[l.jsx(de,{}),l.jsx(Ce,{isAdditionalLabel:(!!t.additionalInfoLabel&&t.isDisabled)===!0}),l.jsx(de,{})]}),l.jsxs(Ue,{children:[l.jsxs(ae,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||m&&t.additionalErrorLabel?l.jsx(ne,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(ae,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(ne,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const De=d.div`
98
+ `;function Se({isDisabled:e,label:s,firstText:t,secondText:p,style:$,isFieldError:k}){const f=H(),{formState:{errors:j}}=q(),m=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(De,{size:f,style:$,isDisabled:e!=null,isErrorFirstText:m,isErrorSecondText:T,children:[l.jsx(Q,{isDisabled:e,label:s.label,style:{marginRight:v.labelMarginRight.value(f),width:s.width??"auto",color:r.colors.champion}}),l.jsxs(Ee,{labelWidth:s.width,children:[p.hideField?null:l.jsxs(ze,{children:[l.jsx(de,{}),l.jsx(Ce,{isAdditionalLabel:(!!t.additionalInfoLabel&&t.isDisabled)===!0}),l.jsx(de,{})]}),l.jsxs(Ue,{children:[l.jsxs(ae,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||m&&t.additionalErrorLabel?l.jsx(ne,{isError:m,children:m?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(ae,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(f),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(ne,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const De=d.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  align-items: flex-start;
@@ -225,7 +225,7 @@ import{V as l,q as H,F as Y,cO as q,cW as G,d as ee,cU as K,y as L,gb as Z,o as
225
225
  height: ${i.sp3};
226
226
  cursor: pointer;
227
227
  color: ${e=>e.theme.colors.primary};
228
- `,qe=()=>null,Ae=()=>null,_e=({name:e,registerOptions:s,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:f}=q(),j=t.allOptions.map(r=>r.value??""),m=r=>t.allOptions.filter(I=>I.value===r)[0]?.label??"",T=r=>t.allOptions.find(I=>I.value===r.value)?.value;return l.jsx(ye,{name:e,control:f,defaultValue:t,rules:s,"data-testid":M("single-select-field",e),render:({field:{value:r,onChange:I}})=>l.jsx(Fe,{allOptions:j,onSelectedValueChanged:D=>{I({allOptions:t.allOptions,selectedOption:T(D)})},valueToLabel:D=>m(D),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},me=V.memo(_e,(e,s)=>le(e,s)),O={width:new L(343,580,726),height:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTopBottom:new L(g[3],g[3]),labelMarginRight:new L(g[3],g[4])},J=(e,s)=>`${e}.${s}`;function We({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:r,filteredAttributes:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:F}}=Y.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:B,setValue:N}=q(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);N(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);N(t,h)};V.useEffect(()=>{const o=E.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(o,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[S,b,E,R,r]);const U=b[b.length-1],z=s!=null||_===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(Ge,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(K,{label:e.label,style:{marginRight:O.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Ye,{children:[h+1,"."]}),l.jsx(Qe,{children:l.jsx(me,{name:J(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j})}),l.jsxs(Xe,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||s!=null},valueToSubtitle:a=>{const c=m.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=D.find(X=>X.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}}),o.stepIndex>0&&l.jsx(Je,{onClick:()=>w(h)})]})]},E[h]?.id||h)),l.jsx(Ke,{disabled:z,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:F.addStep,size:"small",disabled:z,"data-testid":M("add-step-button-web")})})]})}const xe=(e,s,t)=>({stepIndex:e,actors:{allUsers:s,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const s=Y.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:s[t].label,value:t,position:"top",subtitles:[s[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],Ge=d.div`
228
+ `,qe=()=>null,Ae=()=>null,_e=({name:e,registerOptions:s,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:f}=q(),j=t.allOptions.map(r=>r.value??""),m=r=>t.allOptions.filter(I=>I.value===r)[0]?.label??"",T=r=>t.allOptions.find(I=>I.value===r.value)?.value;return l.jsx(ye,{name:e,control:f,defaultValue:t,rules:s,"data-testid":M("single-select-field",e),render:({field:{value:r,onChange:I}})=>l.jsx(Fe,{allOptions:j,onSelectedValueChanged:D=>{I({allOptions:t.allOptions,selectedOption:T(D)})},valueToLabel:D=>m(D),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},me=V.memo(_e,(e,s)=>le(e,s)),O={width:new L(343,580,726),height:new L(g[6],g[6]),paddingLeftRight:new L(g[3],g[4]),paddingTopBottom:new L(g[3],g[3]),labelMarginRight:new L(g[3],g[4])},J=(e,s)=>`${e}.${s}`;function We({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:r,filteredAttributes:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:F}}=Y.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:B,setValue:N}=q(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);N(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);N(t,h)};V.useEffect(()=>{const o=E.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(o,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[S,b,E,R,r]);const U=b[b.length-1],z=s!=null||_===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(Ge,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Q,{label:e.label,style:{marginRight:O.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Ye,{children:[h+1,"."]}),l.jsx(Xe,{children:l.jsx(me,{name:J(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j})}),l.jsxs(Ke,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||s!=null},valueToSubtitle:a=>{const c=m.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(X=>{const P=D.find(K=>K.classId===X);P!=null&&P.className&&y.push(P.className)})}return y}}),o.stepIndex>0&&l.jsx(Je,{onClick:()=>w(h)})]})]},E[h]?.id||h)),l.jsx(Qe,{disabled:z,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:F.addStep,size:"small",disabled:z,"data-testid":M("add-step-button-web")})})]})}const xe=(e,s,t)=>({stepIndex:e,actors:{allUsers:s,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const s=Y.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:s[t].label,value:t,position:"top",subtitles:[s[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],Ge=d.div`
229
229
  display: flex;
230
230
  flex-direction: column;
231
231
  align-items: flex-start;
@@ -281,7 +281,7 @@ import{V as l,q as H,F as Y,cO as q,cW as G,d as ee,cU as K,y as L,gb as Z,o as
281
281
  &:hover {
282
282
  color: ${u.important};
283
283
  }
284
- `,Ke=d.div`
284
+ `,Qe=d.div`
285
285
  width: 100%;
286
286
  display: flex;
287
287
  justify-content: flex-end;
@@ -290,11 +290,11 @@ import{V as l,q as H,F as Y,cO as q,cW as G,d as ee,cU as K,y as L,gb as Z,o as
290
290
  color: ${e=>e.disabled?e.theme.colors.grey1:e.theme.colors.primary};
291
291
  }
292
292
  }
293
- `,Qe=d.div`
293
+ `,Xe=d.div`
294
294
  display: flex;
295
295
  align-items: center;
296
296
  width: 174px;
297
- `,Xe=d.div`
297
+ `,Ke=d.div`
298
298
  flex: 2;
299
299
  display: flex;
300
300
  gap: ${i.sp3};
@@ -303,7 +303,7 @@ import{V as l,q as H,F as Y,cO as q,cW as G,d as ee,cU as K,y as L,gb as Z,o as
303
303
  `,Ye=d.div`
304
304
  width: ${i.sp5};
305
305
  color: ${e=>e.theme.colors.hero};
306
- `;function el({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:r,filteredAttributes:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:F}}=Y.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:B,setValue:N}=q(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);N(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);N(t,h)};V.useEffect(()=>{const o=E.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(o,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[S,b,E,R,r]);const U=b[b.length-1],z=s!=null||_===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(K,{label:e.label,style:{marginRight:O.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(me,{name:J(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||s!=null},valueToSubtitle:a=>{const c=m.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(Q=>{const P=D.find(X=>X.classId===Q);P!=null&&P.className&&y.push(P.className)})}return y}})}),o.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":M("delete-step",h.toString())})]})]})]},E[h]?.id||h)),l.jsx(il,{disabled:z,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:F.addStep,size:"standard",variant:"light_transparent",disabled:z,"data-testid":M("add-step-button-small")})})]})}const ll=d.div`
306
+ `;function el({label:e,isDisabled:s,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:f,approveNotifyPlaceholder:j,allUserWithRoles:m,filteredApprovers:T,allAttributes:r,filteredAttributes:I,allAccountingClasses:D,stepsInfo:b,productType:A}){const C=H(),{commonSetUp:{approval:F}}=Y.getLocalizedStrings(),_=T.length+I.length,S=m.map(o=>o.user),{control:B,setValue:N}=q(),{fields:E,replace:R}=ce({name:t,control:B}),n=()=>{const o=b[b.length-1].stepIndex,h=xe(o+1,S,r);N(t,[...b,h])},w=o=>{const h=b.filter((a,c)=>c!==o);N(t,h)};V.useEffect(()=>{const o=E.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(o,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:S,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[S,b,E,R,r]);const U=b[b.length-1],z=s!=null||_===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:C,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Q,{label:e.label,style:{marginRight:O.labelMarginRight.value(C),width:"auto"}}),b.map((o,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(me,{name:J(`${t}.${o.stepIndex}`,"stepType"),value:o.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&o.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||s!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:o.stepType.selectedOption==null?f:o.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${o.stepIndex}`,"actors"),value:o.actors,operator:o.stepType!=null&&o.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||s!=null},valueToSubtitle:a=>{const c=m.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,A);x.length>0&&y.push(x),c.accountingClassIDs.forEach(X=>{const P=D.find(K=>K.classId===X);P!=null&&P.className&&y.push(P.className)})}return y}})}),o.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":M("delete-step",h.toString())})]})]})]},E[h]?.id||h)),l.jsx(il,{disabled:z,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:F.addStep,size:"standard",variant:"light_transparent",disabled:z,"data-testid":M("add-step-button-small")})})]})}const ll=d.div`
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  align-items: flex-start;