@zeniai/web-cockpit-ui 1.13.92-qa → 1.13.93-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 (222) hide show
  1. package/dist/assets/{ACHDetailsPage-DSxVnTLA-D1-iHIV_.js → ACHDetailsPage-B7Osqlyb-BwlnvX_d.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DpJmdFIS-ptP-VwzZ.js → AIPerformancePage-CEGqk2vj-DYer4sK1.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-UxE6vaxM-Cd6nbcJE.js → AccountInfoPage-Dsi_xY1U-B-sH9O2B.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B8luWP8D-CZHd9VXv.js → AccountInfoPageContent-CmRpq4eF-B2DwYw45.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-CRuSLa04-C78XHZlh.js → AccountReconDetailsDrawerPage-Bwc-VZmp-CnpXttfi.js} +1 -1
  6. package/dist/assets/{AccountRow-DVnBiB7_-CPXvnObH.js → AccountRow-DMeCdEPJ-0Td7rdjz.js} +14 -14
  7. package/dist/assets/{AccountsPromoCardStack-oPvi6hmo-DZpnXhtG.js → AccountsPromoCardStack-NYQHh0uE-De_Ps0gr.js} +13 -13
  8. package/dist/assets/{AddAddressForCardDrawer-Bl8FShie-B95Xnw-A.js → AddAddressForCardDrawer-3WPrDfNL-BmoU8xMj.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-BykgUTfa-D4vrpQJK.js → AddToWalletPage-IjvBXyuu-LqJuRvIx.js} +18 -18
  10. package/dist/assets/{AgingReportsPage-CtpuS77Y-CE6txtIZ.js → AgingReportsPage-CIJTKbrN-CVdoyKAO.js} +5 -5
  11. package/dist/assets/{AllUserItems-zqRosy03-COR9NR1n.js → AllUserItems-BuX43aPo-H0s42hTQ.js} +4 -4
  12. package/dist/assets/{ApAgingDetailPage-B4dHhJE1-CaWZMWGh.js → ApAgingDetailPage-02ejdrQy-CkSV3Gpj.js} +2 -2
  13. package/dist/assets/{AppBasePage-ntAldChd-CbIHEw9R.js → AppBasePage-CC3bbnnu-Ciqf55R8.js} +2 -2
  14. package/dist/assets/{AppDrawerContent-LRG0OW3a-B799K3xV.js → AppDrawerContent-B_EAPC9w-BdR_mtmP.js} +5 -5
  15. package/dist/assets/ApprovalRulesSettingsPage-1AQm08qF-1bvo_sOv.js +47 -0
  16. package/dist/assets/{ArAgingChart-BmfMCB8_-fY0QEK4n.js → ArAgingChart-UnY648RV-B8ISkKOi.js} +6 -6
  17. package/dist/assets/{ArAgingDetailPage-C2lhYsGV-BYs1bmSh.js → ArAgingDetailPage-CMUpR-2N-CqTh98Ou.js} +3 -3
  18. package/dist/assets/{AttachmentView-CQlsMYN3-USK3brEH.js → AttachmentView-sbbFtu9R-wkkd2tSH.js} +1 -1
  19. package/dist/assets/{BankAccountSection-D1tQzNSO-gEkCF92l.js → BankAccountSection-BJPkV-qV-DnIozyCI.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-Dj_S6brX-3ftY6npO.js → BankAccountWarningSection-D9R1VhzE-GAcwzATB.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-UQAJXShM-DCO59eAm.js → BankConnectionsSettingsPage-BG99PtV_-CvP1ZQFj.js} +1 -1
  22. package/dist/assets/{BillDetailPage-BOy1MkMT-yl7syVQH.js → BillDetailPage-C_JDjRL0-Kxjam1W7.js} +6 -6
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-C7c04fyW-gv93wavc.js → BillPayApprovalRuleDetailPage-B_XMuvzZ-CuOSZOiJ.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-D7vn36vA-DVT6BH5J.js → BillPayApprovalRulesPage-CyZjNIsQ-DvR9HK7c.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-VCQ0v0Ko-k0l6XCko.js → BillPayPromoPage-ByDsqYfw-Bz6xfanS.js} +3 -3
  26. package/dist/assets/{BillPaySetUpPage-MD1PbTMB-Mj8YwN2-.js → BillPaySetUpPage-yTO-xwRJ-D5LOIl5a.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-B0U9RKLC-CxniqQ_i.js → BillingSettingsPage-BIAy1QHr-CdxSnuoN.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-CStmvhgL-BfpFJcjC.js → BillsBulkReviewDrawerPage-Cw1XCs0q-BPMOI-f-.js} +1 -1
  29. package/dist/assets/{BoxItem-D3v5T6bP-Ccyj0z_e.js → BoxItem-UCX7eqiN-Bx4T9Ckg.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-BIba2-zs-baesBtzL.js → BusinessVerificationPage-CSsout2C-D0_Wr4yR.js} +3 -3
  31. package/dist/assets/{CardNumberSubText-DoWj5vAy-CAfScSz4.js → CardNumberSubText-DuTv0ip1-BQ2cCq6Y.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-CPz0J2HA-DnWSOdcg.js → CashbackDetailPage-KdHf-_ZF-DMwQoPE0.js} +9 -9
  33. package/dist/assets/{ChargeCardDetailPage-DxE5h1S5-BSn9I5tq.js → ChargeCardDetailPage-DYGcQs0M-D9cSv6UR.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-fXayrykw-C4eDLONF.js → ChargeCardListPage-CNrRrNbd-BjkSAo-I.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-C-WxFg6W-Bxx8UmMq.js → ChargeCardListTable-B1a9-RYl-DFaeigKK.js} +103 -103
  36. package/dist/assets/ChargeCardPromoPage-DZ1f8Sus-BW8ozxyr.js +175 -0
  37. package/dist/assets/{ChargeCardSetupPage-ByLkUH5I-BPvN7kpq.js → ChargeCardSetupPage-DOrs_Bw8-DgkoLihJ.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-Dsv5AXrZ-DoY0Jw4d.js → ChargeCardStatementsPage-xvq2HeEr-DOI6TXvC.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-CVC43_6w-C9AAkcIV.js → ChargeCardUtils-Dt303NN_-05QPLa2p.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-CHWBgNa9-DBU-aocS.js → ChaseOverlay-BK2ISNjj-S6c-qliM.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-DySu5_BH-C65eaIWg.js → CheckDepositDrawerPage-CbsRUWnx-BK3WXMqm.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-ZObwzBbY-AvFmJfte.js → CollapsableReportTable-D5D0ufUn-Bzt15FNd.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-DVG0lvX--Wg40Blwv.js → CompanyOfficerDetailsSection-C7fuDGQk-IsFgAXuq.js} +6 -6
  44. package/dist/assets/{CompanyPassportCard-DBZRV0g0-JDJxemYn.js → CompanyPassportCard-DwUqLcAr-DSkb28QS.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-BoaNol0L-D8V2l9pw.js → CompanyPassportPage-ClToBIAw-kZszHSwA.js} +10 -10
  46. package/dist/assets/{CompleteProfile-nkRKLJTF-kma5tNZE.js → CompleteProfile-CLDWG3QK-CfBVYMEP.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-BYoGZ66F-CE0o8Vhl.js → ConfettiBurst-DoZB9Us7-CMmPQCFc.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-C1Yx8t4M-BuM4U0t0.js → CreateOrEditVendorPage-B837xw8A-BAYCbcGJ.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-DlnR16jr-ChhzdCb0.js → CreditCardPaymentDrawerPage-zGaAOnnB-BsFRJBm4.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-CZ2vyMiF-ClsOZPvU.js → CreditCardPaymentPlgSection-BLbZFCcL-Bqc-C6eO.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-vH1oB0K8-Dr64IPr4.js → CurrencySelectField-DS3dOR3F-DalqX_lS.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-rpZmgNZo-DuEHpoc1.js → CustomerOnboardingActivationPage-WWVaQenb-B8ztly-z.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-BmFfAaO1-BI9KTD4O.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CFIeHxxw-UU0mUCiu.js → CustomerOnboardingDetailPageSkeleton-BSXKMQ77-MLxx67vI.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BueMiyFl-DUOR8jGf.js → CustomerOnboardingNoStepsPage-Dd5kCuRE-BcQg4Ohl.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-CmHXtB9v-CXmQf7U7.js → CustomerOnboardingPage-CGJpD875-Dopxs2Zj.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-I9pftf_j-B_gnkO1d.js → CustomerOnboardingProductSuitePage-BFmVLk0l-Dqe6wu_O.js} +3 -3
  58. package/dist/assets/{Dashboard-DcfkiicK-q4fxRwyW.js → Dashboard-BLIK_ZsD-D6wuOJAN.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-B7J8yZR6-DRm7363E.js → DashboardReportPage-BbYtKYEH-pc8ejgXI.js} +8 -8
  60. package/dist/assets/{DepositAccTransactionItem-CP_2AL3M-UriJgTZ8.js → DepositAccTransactionItem-BMXQpKVB-DaF1MUuy.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-C4o1y1mJ-vDVIGMR1.js → DepositAccTransactionListPage-bwEdSihi-CXBTlKtY.js} +2 -2
  62. package/dist/assets/{DocumentSecurityBanner-C5w0d_S8-qYbxtRj6.js → DocumentSecurityBanner-DV9HE3MK-LQKK6f7V.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-t0Ebo518-C2FWXYt8.js → DomesticWireDetailsPage-OI-gqVNE-BqvWfcoc.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CPW9ebxu-C4HHQYK0.js → DownloadOverlay-De5uIGOt-g0Egf70Z.js} +1 -1
  65. package/dist/assets/{DrawerPage-Xc2rQipJ-DVYxRAtt.js → DrawerPage-n421ewDm-CnkmETxv.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-CF5UleI0-CUGe8Cnt.js → EditPeoplePage-sO1qN6Uw-bGTiOwCj.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-DGCkOykv-ClMeSVrD.js → EditReimbursementDetailPage-D5iKVGl3--EFA7JxG.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-BykQZo8S-KrJZ5syb.js → EntityDetailPage-CDk-oyYB-dhBDHyNo.js} +2 -2
  69. package/dist/assets/{EntitySummarySection-Dw4PBcg_-CvhgPnGt.js → EntitySummarySection-C4cC9rOJ-D8GGYrtb.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-BwAaZVq3-lC8f8L2T.js → ExpenseAutomationOverviewPage-BojhuW5i-BvXr37wt.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-Cqiyk-AY-BD5tyT7-.js → ExpenseAutomationPage-D0BViJ7J-CWRMA15W.js} +44 -44
  72. package/dist/assets/{ExpressPayPage-D0lCczvw-B2Rp-VPl.js → ExpressPayPage-DdgtFYep-CUOKOoiC.js} +7 -7
  73. package/dist/assets/{FeaturePreviewPage-CxZIUB8l-Bcfcu7bL.js → FeaturePreviewPage-CW0YmOgl-bNGEnD-g.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-CILr1_vc-CLgm2Hne.js → FollowStepsSection-BfnTsu_D-DwG4wG8g.js} +7 -7
  75. package/dist/assets/{GlobalReviewListPage-DL6H7PZG-U8XS5aLk.js → GlobalReviewListPage-C0U7Y6dI-BkEZ_PU4.js} +1 -1
  76. package/dist/assets/{HelpButton-CkSfhBfN-BPWTXFdl.js → HelpButton-DXFYhUL5-Co36EHOd.js} +1 -1
  77. package/dist/assets/{InformationCardStack-i76c5dym-DFWwTZfO.js → InformationCardStack-6BD3n76T-CKu_A2Jh.js} +2 -2
  78. package/dist/assets/{InsightsCardStack-wcWhovKK-DnGgdxv6.js → InsightsCardStack-CwxJP-ic-nmTxa9wo.js} +3 -3
  79. package/dist/assets/{InsightsSection-CCzgI0uK-VJ3ZyfK9.js → InsightsSection-DYyHpcUE-N_KvwWiO.js} +4 -4
  80. package/dist/assets/{IntegrationsSettingsPage-B2CDE2Xd-ohhBb_xY.js → IntegrationsSettingsPage-ZkvKZqwD-BFhl6nEA.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-DNT75nXv-vcMWpbBe.js → InternationalWireSwiftDetailsPage-D3nyRM06-CLJCmyag.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-BDxujQK--D_AwvW9Z.js → InternationalWireVerificationPage-BOdAP6dN-Bwjg3gOc.js} +1 -1
  83. package/dist/assets/{InviteFormPage-BnLBPR7X-Dr7Az14X.js → InviteFormPage-HJMhfa_f-tkS1HQ9G.js} +1 -1
  84. package/dist/assets/{InvitePageListView-7mhz_Fyy-DnVzZkxM.js → InvitePageListView-CjneWRfJ-Cqi-gRH8.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-B8gb9N_8-BkOhV9LS.js → InvitePeoplePage-By6TWsVZ-DcezDHDA.js} +2 -2
  86. package/dist/assets/{InvoiceUploadSection-Bes1nCJn-cQbyoy31.js → InvoiceUploadSection-CfAnZsV9-DBOTURQ6.js} +4 -4
  87. package/dist/assets/{IssueChargeCardPage-DC3yIsQd-CKHm2aDr.js → IssueChargeCardPage-pKF4dRNw-CboqmQ0I.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-Dtw8vM0g-Lr7x20Yy.js → LabeledAddressValue-UYEy_1W0-Ci2tufnL.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-D72yUpQl-Df1WQsGJ.js → LabeledAddressValueField-BmSVDTMx-CBdRfhaZ.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-BFaru2xf-BjoAdjoa.js → LabeledControlledCheckBoxField-BFnLx9E0-ozh3nGkA.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-CCXfjgxP-5vcIQ2Mo.js → LabeledCreatableSingleSelectField-Bh-cfR9F-Cgfy3beB.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-aYYBY16j-Bae_VgX4.js → LabeledDocumentField-YBoeNDoD-DV_I5uPN.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-Co7u6hHL-B32MBaMN.js → LabeledDropDownFormattedTextField-jrOUW9Ig-BtNHTfAs.js} +1 -1
  94. package/dist/assets/{LabeledText-BrOLGzO5-rL0tneCB.js → LabeledText-BqO1wHro-DuRorhx4.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D-Huhkbq-BEOyGiLV.js → LabeledUserSingleSelectWithSubtitlesField-DiWgp4aE-C9gBIqih.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-WXH8xLJq-Dib2Yw_B.js → LabeledZeniRolesDropDownField-Cgy0v5oD-DVkREz_1.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-NFV4Vo3i-9GCZH5U0.js → LinkJETransactionPage-PZAQ79zW-CK6GNIYR.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-Bxkd2pBR-unK4Ye9z.js → LowBalancePopup-BYeSnxBp-BI_shW18.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage-BJFlUq7i-DCFJc6GZ.js → MagicLinkACHDetailsPage-D_FaPCmn-oM5m56GJ.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CTuaNol6-DlXeuNXQ.js → MagicLinkDomesticWireDetailsPage-rnZdulCr-CM2OhcqO.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-L2dPsfWM-C9gEpXm2.js → MagicLinkInternationalWireDetailsPage-B7ScwCJc-hpVpOAMi.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-DutanrSJ-CZQdge1Z.js → MagicLinkSuccessPage-DVhVWuCR-C1ELLMXO.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-5B8jYoBn-vdest58S.js → MagicLinkTitleSection-CjV-_WEQ-BZeg3Eo_.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-DwWeiSC0-pGk3-tya.js → MailingDetailsSection-CW6ShqHJ-CO_dTd-f.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-rC3PQdjG-B_4Eh-Cw.js → MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js} +1 -1
  106. package/dist/assets/{Menu-CrSQ1yNo-c9Hi2HXE.js → Menu-LDwLOgxI-DZ0xBJbp.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-CJjW9ymP-BCaJojyo.js → MyBankConnectionsSettingsPage-BzxtuXEu-B9IXFZww.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CvxqOjc7-BzSOTZYH.js → MyPendingActivationChargeCardListPage-9jGJWmds-BAoE5bWC.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BX5dXulH-m3N29QaR.js → MyProfileSettingsPage-9yk4H_yu-D2-h3k3L.js} +7 -7
  110. package/dist/assets/{NavBarWithPicker-CuVAj7o5-CP10D7f9.js → NavBarWithPicker-DUpJ0EXp-43gjuBbT.js} +1 -1
  111. package/dist/assets/{NavigationArrow-BPQ9vRqR-CBW2ZEmU.js → NavigationArrow-lL3Ug8Mk-CKQ_08MZ.js} +1 -1
  112. package/dist/assets/{NavigationDots-Toh5TKEv-OSyhnKRF.js → NavigationDots-6Q5ZVqKl-C4jKPBGn.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-B4r1haCm-Ce2LoB6H.js → NewGlobalMerchantPage-nrWvsRy4-DbM5W8Wn.js} +1 -1
  114. package/dist/assets/{NoDataChart-CVM-QPHf-D5psvAcN.js → NoDataChart-DGbfWo33-CtNbg73S.js} +1 -1
  115. package/dist/assets/{NoDataTable-CM-tApqo-BIz-jCYp.js → NoDataTable-CsvWc_ok-iHpzgtD5.js} +1 -1
  116. package/dist/assets/{NotFoundPage-I-EBmx2b-CuWqLUY8.js → NotFoundPage-CzfiPkml-BQeqs7Av.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-CtZ7hdMN-Wo1EzU2G.js → NotificationSettingsPage-Dmfqzy1H-CXBPPrT7.js} +6 -6
  118. package/dist/assets/{NotificationsListConfig-BAKipCDG-Cv91iO15.js → NotificationsListConfig-Cc3hEei0-BUGnkVM7.js} +1 -1
  119. package/dist/assets/{NotificationsPage-xyLmK3l7-BEJKDLky.js → NotificationsPage-BAj5p1zx-D_Mwv5JA.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-B63DEuJM-BDxjaGzg.js → OpExByVendorPage-CRt-VUTi-BSRoe6fS.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-Ntu6HlKQ.js → OverlayContainerPage-C0rUb6-5-CpXI0Wjw.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-uY-ajYp4-V0SHSx_P.js → PandLWithForecastPage-lT9GgcG2-Do2wpSYt.js} +5 -5
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DM9NYbmX-DUzBMAJl.js → PaymentAccountSetupBillingAddressSection-DY4eeS5C-DRjMzj0b.js} +4 -4
  124. package/dist/assets/{PeoplePage-DPZj6XeQ-CAELlX33.js → PeoplePage-CDQl7HVr-BdnTCUNW.js} +1 -1
  125. package/dist/assets/{PortfolioAllocationFormPage-De56plDa-DJkYrYNG.js → PortfolioAllocationFormPage-StMDGc2G-BtdTMk__.js} +3 -3
  126. package/dist/assets/{PortfolioDetails-DiITguNZ-Cq29R7Zz.js → PortfolioDetails-Dk_IIRuG-B_DxSJx7.js} +3 -3
  127. package/dist/assets/{ProductsCarousel-BojgZxY7-cwoMBxX7.js → ProductsCarousel-0-ksFQos-BOcG3c1-.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-DPAkjdDp-Ep5C_mS4.js → PromoBaseCards-DNSnqS61-Al7XKWVe.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-CzuH4c1o-ZsjLY4Mn.js → QBOConnectionDialog-BmIUfW_i-DCw1_Zjz.js} +4 -4
  130. package/dist/assets/{QBOSetupSection-DJBfLeXn-DeLZ9-CI.js → QBOSetupSection-BaNFiEPB-BQTYBa9Y.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CAcLCt68-z4GKwxQt.js → ReimbursementApprovalRuleDetailPage-CtTk4HV2-BFn-5msn.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-edz_6MDX-ElMfP5AN.js → ReimbursementApprovalRulesPage-IhKSiGK_-xDcDckpI.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-DD_GbfiV-CY9HB-Ai.js → ReimbursementDetailPage-B2rT1dKM-BvN3K25P.js} +4 -4
  134. package/dist/assets/{ReimbursementPromoPage-B_HZWdXi-YAVdtzTS.js → ReimbursementPromoPage-d7XBUzip-Baqr_9HR.js} +18 -18
  135. package/dist/assets/{ReimbursementSetUpPage-C0SNbg5D-BNH2r07u.js → ReimbursementSetUpPage-DWCUtN5c-B7jvTAZ2.js} +1 -1
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-NOK5jPjr-YNxBe6Vb.js → ReimbursementsBulkReviewDrawerPage-ByNvcTCn-CVr0tk48.js} +1 -1
  137. package/dist/assets/{ReloadCard-CqyGWGqs-6_Cif2Ll.js → ReloadCard-DZy28iWR-fdBnNVQp.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-B8ZW0kxU-EaZ_XIvS.js → ReportTableViewSelector-DdZm4cOJ-noq_7l2G.js} +5 -5
  139. package/dist/assets/{ReportsPage-DdqQgvJt-f0a_FJwO.js → ReportsPage-CJDkY9FT-BvINYvTj.js} +1 -1
  140. package/dist/assets/{RevenueChart-QoBLII7z-Q1hk28a9.js → RevenueChart-B_jdFFPm-BXFiwU14.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-BVoI7xF7-CnpSx4Tw.js → ReviewDetailsPage-DjPVGzeL-DLDIfiIY.js} +9 -9
  142. package/dist/assets/{ReviewOverlay-CbpylyCx-DTIV4D_3.js → ReviewOverlay-DGYnF07r-qnvuKuhQ.js} +6 -6
  143. package/dist/assets/{RoleWithToolTip-TxLTa63q-DKveW2Ky.js → RoleWithToolTip-VlYG_GPv-D1yDUHv7.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CuwxZJjj-BYS2pDbG.js → ScheduleDetailsFixedAssetsPage-oPFQEE8g-DGu6MDH1.js} +3 -3
  145. package/dist/assets/{ScheduleDetailsPage-u0VNz7hA-BjWj5NhD.js → ScheduleDetailsPage-BdBgJEAl-DNQIOTck.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-usJjTfAn-D29S5hbD.js → ScheduleSequenceTable-Ncft3mZN-BP3nA4Wm.js} +5 -5
  147. package/dist/assets/{ScreenRoutes-rw1o8MQs.js → ScreenRoutes-GKyBzI0O.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-DDe06VBR-DLpiHVvI.js → SetUpAccountSection-BrYiljyO-B0sFI8H-.js} +1 -1
  149. package/dist/assets/{SetUpDefaultSection-B6pcOXMO-CRtYcMT6.js → SetUpDefaultSection-B361ojb9-CxOpM9AT.js} +1 -1
  150. package/dist/assets/{SignIn-BdhV8PbY-BRh-EFuz.js → SignIn-B_-FUZwZ-DmmXPLIK.js} +1 -1
  151. package/dist/assets/{SignInScreen-BdMez8fF.js → SignInScreen-DXQE8i8n.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-DNgC__pX-Cd7FbCgo.js → SpendManagementListViewPage-XbjqwHXx-DUJaDID4.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-BkiWOMch-CwEHEBT9.js → SpendManagementPerTabPage-D-4W-Ru9-BTwZxU7E.js} +8 -8
  154. package/dist/assets/{SpendManagementSection-DuR3sx7V-JrRKdD4x.js → SpendManagementSection-B7pMvj7Z-BAsdHFSu.js} +8 -8
  155. package/dist/assets/{SpendMgmtSetupAccountSection-DoUKX4Sf-DwQmG6qy.js → SpendMgmtSetupAccountSection-DdUs96r9-BtVu2Jjy.js} +1 -1
  156. package/dist/assets/{StatementItem-VYK0Vtgt-BBKdzXaY.js → StatementItem-B4DJRmwy-B3hGXxas.js} +1 -1
  157. package/dist/assets/{StatementsPage-CLxned7l-C4PScILv.js → StatementsPage-DzFEOmFA-wer7iddM.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-Jqpvk1VX-CdG2mjou.js → StatusSwitcher-DGOwA8qO-D_gDSZQm.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-C7_JB54g-DSaKTJri.js → SubTabSwitcher-Be-6o_mE-CbWpxIAQ.js} +1 -1
  160. package/dist/assets/{SummaryCard-oqK_zyxl-DYQ4YzrX.js → SummaryCard-CD1amg78-BqcEBi2M.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-BDOhB7Ny-DCim2j5x.js → TaskManagementPage-C2UYhTtL-BjeaDszl.js} +12 -12
  162. package/dist/assets/{TimeRangeSwitcher-AWKZ7PNb-sMHjfJ3K.js → TimeRangeSwitcher-DxAmlHGP-Bw1t8DbY.js} +2 -2
  163. package/dist/assets/{TimeframeSwitcher-BlL5woGb-B1qdJISl.js → TimeframeSwitcher-ndYSpUa6-BlrKZqFe.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-CRnWI6xW-P8bjGMFI.js → TimeframeSwitcherWithToggle-B3bxr-_s-BNVy54lX.js} +1 -1
  165. package/dist/assets/{TopExCard-B4T3kqhZ-Q7tG_J2k.js → TopExCard-CcpyunQ3-BaDgbdKx.js} +2 -2
  166. package/dist/assets/{TopExDetailPage-Cx9T3i9O-fVM1l1lt.js → TopExDetailPage-C_B0c8iP-ByXi3xQ5.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-CAGxHcQ9-BuC2Vxi4.js → TransactionDetailPage-DVPGLobu-DL-y5UIM.js} +23 -23
  168. package/dist/assets/{TransactionList-CVrK_-YB-CyqUr8En.js → TransactionList-CvGyadHZ-CKr6j1Ej.js} +1 -1
  169. package/dist/assets/{TransactionListBig-BnI6EofP-DpJRFiC_.js → TransactionListBig-BeZjYsO0-CWaiI9xM.js} +14 -14
  170. package/dist/assets/{TransactionListPage-vK6DdhrP-C7d8mvAu.js → TransactionListPage-C8h-sa3V-ISAOcRCi.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-IyAfkyMv-BwtflFlU.js → TransactionVendorDetailPage-BcV8h3xR-BGD_XS9I.js} +6 -6
  172. package/dist/assets/{TransferDrawerPage-Bp0TG8fm-959WX7gB.js → TransferDrawerPage-B_AJgZWp-BgCFpQ-3.js} +1 -1
  173. package/dist/assets/{TreasuryOverviewPage-Cr1liTpc-CTqtlCQy.js → TreasuryOverviewPage-kG1jZF28-DFMfLtUz.js} +17 -17
  174. package/dist/assets/{TreasuryPromoPage-Da7l7gv8-DPF1lFAp.js → TreasuryPromoPage-Dy3ExIiy-DKLmlPyB.js} +9 -9
  175. package/dist/assets/{TreasurySetupPage-DLNsPnS8-S_4_ECXQ.js → TreasurySetupPage-Cjr-dp6O-D_HiOnt5.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-CNXxykvB-CBw5AysV.js → TreasuryStatementsPage-CzOSIKGQ-CtcTNklQ.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-DUbt8ItG-8rvpK6x5.js → TreasuryTaxLetterPage-CWLf1Zxq-BkcKbbtq.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-qxabbCrK-rO7uR-ni.js → TreasuryTransferOrReviewPage-C5F3fmoI-C6lOcQ5d.js} +8 -8
  179. package/dist/assets/{TrendChart-SOAxSpv2-BEwC2fOj.js → TrendChart-CtjfgQ9g-DU-bY5qU.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-BSQ2TJvu-DKoznMBK.js → TrendWithTransactions-SmcM2UIp-SwKmDId5.js} +5 -5
  181. package/dist/assets/{UncategorizedAccountsMappingPage-Caf242zp-C5DipiQT.js → UncategorizedAccountsMappingPage-CXoadwja-CEPslaD_.js} +7 -7
  182. package/dist/assets/{UnitIntegrationPage-Bvc4wx_r-BnaXEQW-.js → UnitIntegrationPage-wYQVQqP7-CMNCVZiN.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-BTEhwmVL-BU3VE2l2.js → UploadAdditionalDocumentOverlay-8_c7UpvB-74BXxoUO.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-DimcegQ_-ZwSJtWxA.js → Vendor2FAPopup-DtNSOXbK-B54GFzKj.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-BOIRRgCy-BviefvlH.js → VendorACHDetailsPage-zNbGGe4q-8GlI6jYy.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-CWcqMMpT-qMwE-rI0.js → VendorDetailPage-Cv-MG9iR-l4dRK0G1.js} +1 -1
  187. package/dist/assets/{VendorDomesticWireDetailsPage-9C2CIkhB-BOtPtDU5.js → VendorDomesticWireDetailsPage-BkqtoYAw-CtX9mSuC.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-Crz_WLRG-Bw34V4gU.js → VendorFiling1099EditablePage-DYJudj3c-DQ_wjKTT.js} +5 -5
  189. package/dist/assets/{VendorFirstReviewPage-hQ0U61KD-BzfMdPso.js → VendorFirstReviewPage-BNFIAB9n-BN6v_Gep.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-mm1qIXTf-Byl1FySa.js → VendorInternationalWireDetailsPage-DHa8JoNl-BRi2UVJj.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BaOsJGNO-DK_12j59.js → VendorInternationalWireSwiftDetailsPage-a5nSOMXK-BxkY5s8d.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-CGbDIAMd-DWeBvssx.js → VendorsAccountsSection-DwDGbjey-Bypo8ABo.js} +2 -2
  193. package/dist/assets/{WarningsDrawerPage-7DzlUfv7-DXPYNehY.js → WarningsDrawerPage-CaSTx_8h-B-9jNZQU.js} +1 -1
  194. package/dist/assets/{ZeniAccountDetailPage-B_U4d2iv-DJdTSWpj.js → ZeniAccountDetailPage-BSOpxKiJ-Bcu_9TPK.js} +6 -6
  195. package/dist/assets/{ZeniAccountListViewPage-C2Yej3tG-BZm1pAj2.js → ZeniAccountListViewPage-CZM1ODEE-CvbySLjB.js} +6 -6
  196. package/dist/assets/{ZeniAccountNavBarPieces-DsWyZL7N-CM8u2fkO.js → ZeniAccountNavBarPieces-CjNAr1N9-HkSrs5G-.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-D6S3o6xA-C5TfP5fB.js → ZeniAccountPromoPage-PcyNGe7A-BLBuAvub.js} +9 -9
  198. package/dist/assets/{ZeniAccountSetupPage-YpW9LEB1-CT5yKJDM.js → ZeniAccountSetupPage-DhJ2zm6A-CuFLGcXY.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-Buv4_0jF-etRFVvK1.js → ZeniCopyright-CSUSID-7-DBheoLGB.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-CvuOgkEg-DnX0NID_.js → ZeniTransferAmountSlider-DPl7porw-Dl84FVK1.js} +1 -1
  201. package/dist/assets/{analyticsHelper-B3QVnfWf-H0h_HtBm.js → analyticsHelper-Cex5LOMD-Dxu2vm4u.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BV5qlrBL.js → analyticsHelper-CpvxdbQV.js} +1 -1
  203. package/dist/assets/{chartTypes-DYAHlgKd-CIoUHagw.js → chartTypes-Df8u7la0-CtDbCz1y.js} +1 -1
  204. package/dist/assets/{commonDimensions-Pkc8qIrn-C51PkztX.js → commonDimensions-OJhakpB_-Bbp60BrB.js} +1 -1
  205. package/dist/assets/{detailCommon-CsukAL3T-C9Odjb8X.js → detailCommon-4wAnHr6n-CdRaYMXz.js} +4 -4
  206. package/dist/assets/{downloadPdf-DlKRXI5W-DRbhwI4R.js → downloadPdf-D02UNVHu-DqpjG06G.js} +1 -1
  207. package/dist/assets/{index-CChR0tlr.js → index-DTlzo6Yx.js} +512 -512
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-KYsp1YPe-DkDU3yOy.js → mapLoadingInProgressToTreeNode-HsZI6Bdg-DBYPe0Tb.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-t5fK12Uc-BPcBM_s6.js → mapSectionWithAcOnlyToTreeNode-B9KMXCTi-cXLO9gFn.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-1YBqnFwa-BCpUJJfk.js → mapSpacerToTreeNode-BIZ_jwXi-CRlgAghX.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-DD1v-gTG-CovxzaSA.js → mapTimeframeBalancesToTreeNode-BOFrVlzJ-4iwTY3Ct.js} +1 -1
  212. package/dist/assets/{play-icon-19dLaWkG-DVrAniBi.js → play-icon-BDRoJBSV-DFuHei9M.js} +1 -1
  213. package/dist/assets/{toCOABalancesWithID-B8NxsLlK-BQM05QqO.js → toCOABalancesWithID-RJhTPgAt-Cci2ybt-.js} +1 -1
  214. package/dist/assets/{toChartData-CxZEcdj_-DkdJt_zk.js → toChartData-K68FB3Iy-nDeLE4ni.js} +1 -1
  215. package/dist/assets/{treasuryColorHelper-BqwCUN2u-u6_A3p-Z.js → treasuryColorHelper-DjASf5JB-DoMbQSj9.js} +1 -1
  216. package/dist/assets/{uploadAttachment-CHFo3qZI-D3BXDi9p.js → uploadAttachment-D7Rju7jS-SY7cBnUt.js} +1 -1
  217. package/dist/assets/{uploadReceipts-Buvz7DfG-CWJGX5ku.js → uploadReceipts-Buvz7DfG-JDslMarZ.js} +1 -1
  218. package/dist/index.html +1 -1
  219. package/package.json +2 -2
  220. package/dist/assets/ApprovalRulesSettingsPage-CFCbNOcB-DTKgg2MT.js +0 -47
  221. package/dist/assets/ChargeCardPromoPage-CiwWzvym-DqCOZpsp.js +0 -175
  222. package/dist/assets/CustomerOnboardingContainerPage-DEDQrgtq-CEuEcH5A.js +0 -1
@@ -1,4 +1,4 @@
1
- import{X as O,u as J,M as f,y as Ce,l as D,j as s,aW as Ge,e as Ue,D as Ze,aY as qe,o as d,C as R,H as K,aZ as Je,v as oe,q as N,ao as Ke,ab as Xe,a_ as Qe,a6 as je,K as $e,g as T,Z as ke,aa as et,av as tt,n as st,a$ as ot,b0 as at,b1 as nt,b2 as ne,b3 as it,b4 as rt,m as ct,b5 as lt}from"./index-CChR0tlr.js";import{b as _,f as X,n as u,k as Oe}from"./vendor-CnQcJ2Lu.js";import{m as U,l as te}from"./analyticsHelper-B3QVnfWf-H0h_HtBm.js";import{c as dt,h as pt}from"./ReportTableViewSelector-B8ZW0kxU-EaZ_XIvS.js";import{F as ut}from"./InsightsSection-CCzgI0uK-VJ3ZyfK9.js";import{N as he,k as mt,q as gt,H as Q,G as pe}from"./detailCommon-CsukAL3T-C9Odjb8X.js";import{N as ht,G as ft,H as fe,Y as be,P as xe}from"./RevenueChart-QoBLII7z-Q1hk28a9.js";import{C as bt}from"./NoDataChart-CVM-QPHf-D5psvAcN.js";import{n as I}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{p as xt}from"./TimeRangeSwitcher-AWKZ7PNb-sMHjfJ3K.js";import{b as Be}from"./TimeframeSwitcher-BlL5woGb-B1qdJISl.js";import{a as _t,r as V,b as wt,i as ue,D as St}from"./CollapsableReportTable-ZObwzBbY-AvFmJfte.js";import{S as yt,M as vt,g as Ct,L as ee,D as Pe,T as Le,I as Ne}from"./mapSectionWithAcOnlyToTreeNode-t5fK12Uc-BPcBM_s6.js";import{d as jt}from"./NoDataTable-CM-tApqo-BIz-jCYp.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-Toh5TKEv-OSyhnKRF.js";import"./chartTypes-DYAHlgKd-CIoUHagw.js";import"./toCOABalancesWithID-B8NxsLlK-BQM05QqO.js";import"./toChartData-CxZEcdj_-DkdJt_zk.js";import"./AccountRow-DVnBiB7_-CPXvnObH.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const $t=e=>_.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),_.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),_.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),_.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),_.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),kt=u.div`
1
+ import{X as O,u as J,M as f,V as Ce,l as D,j as s,aW as Ge,e as Ue,B as Ze,aY as qe,o as d,C as R,D as K,aZ as Je,v as oe,q as N,ao as Ke,ab as Xe,a_ as Qe,a6 as je,K as $e,g as T,Z as ke,aa as et,av as tt,n as st,a$ as ot,b0 as at,b1 as nt,b2 as ne,b3 as it,b4 as rt,m as ct,b5 as lt}from"./index-DTlzo6Yx.js";import{b as _,f as X,n as u,k as Oe}from"./vendor-CnQcJ2Lu.js";import{m as U,l as te}from"./analyticsHelper-Cex5LOMD-Dxu2vm4u.js";import{c as dt,h as pt}from"./ReportTableViewSelector-DdZm4cOJ-noq_7l2G.js";import{F as ut}from"./InsightsSection-DYyHpcUE-N_KvwWiO.js";import{N as he,k as mt,q as gt,H as Q,G as pe}from"./detailCommon-4wAnHr6n-CdRaYMXz.js";import{N as ht,G as ft,H as fe,Y as be,P as xe}from"./RevenueChart-B_jdFFPm-BXFiwU14.js";import{C as bt}from"./NoDataChart-DGbfWo33-CtNbg73S.js";import{n as I}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{p as xt}from"./TimeRangeSwitcher-DxAmlHGP-Bw1t8DbY.js";import{b as Be}from"./TimeframeSwitcher-ndYSpUa6-BlrKZqFe.js";import{a as _t,r as V,b as wt,i as ue,D as St}from"./CollapsableReportTable-D5D0ufUn-Bzt15FNd.js";import{S as yt,M as vt,g as Ct,L as ee,D as Pe,T as Le,I as Ne}from"./mapSectionWithAcOnlyToTreeNode-B9KMXCTi-cXLO9gFn.js";import{d as jt}from"./NoDataTable-CsvWc_ok-iHpzgtD5.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-6Q5ZVqKl-C4jKPBGn.js";import"./chartTypes-Df8u7la0-CtDbCz1y.js";import"./toCOABalancesWithID-RJhTPgAt-Cci2ybt-.js";import"./toChartData-K68FB3Iy-nDeLE4ni.js";import"./AccountRow-DMeCdEPJ-0Td7rdjz.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const $t=e=>_.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),_.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),_.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),_.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),_.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),kt=u.div`
2
2
  justify-content: center;
3
3
  align-items: center;
4
4
  display: flex;
@@ -31,12 +31,12 @@ import{X as O,u as J,M as f,y as Ce,l as D,j as s,aW as Ge,e as Ue,D as Ze,aY as
31
31
  `,Vt=u.div`
32
32
  padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
33
33
  height: ${d.sp6};
34
- `;function Wt({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:o}=e,{selectedAdditionalBalances:n}=t,a=e.sections.expenses.balances??[];if(o==null||o===0||a.length===0)return s.jsx(Vt,{});const r=n.includes("this_period_vs_last_period")||n.includes("this_period_vs_last_period_percent"),p=a.reduce((m,b)=>m+b.balance.amount,0),i=a[a.length-1],c=a[0],l={...i,balance:{...i.balance,amount:p},startDate:c.startDate},g=pe(l,r);return s.jsx(Et,{children:s.jsx(Q,{balance:l,dateText:g,showInfotip:!1})})}const Ht=u.div`
34
+ `;function Wt({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:o}=e,{selectedAdditionalBalances:n}=t,a=e.sections.expenses.balances??[];if(o==null||o===0||a.length===0)return s.jsx(Vt,{});const r=n.includes("this_period_vs_last_period")||n.includes("this_period_vs_last_period_percent"),p=a.reduce((m,b)=>m+b.balance.amount,0),i=a[a.length-1],c=a[0],l={...i,balance:{...i.balance,amount:p},startDate:c.startDate},g=pe(l,r);return s.jsx(Et,{children:s.jsx(Q,{balance:l,dateText:g,showInfotip:!1})})}const Yt=u.div`
35
35
  padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
36
- `,Yt=u.div`
36
+ `,Ht=u.div`
37
37
  padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
38
38
  height: ${d.sp6};
39
- `;function Gt({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:o,sections:n}=e,{selectedAdditionalBalances:a}=t,r=n.income.balances;if(o==null||o===0||r.length===0)return s.jsx(Yt,{});const p=a.includes("this_period_vs_last_period")||a.includes("this_period_vs_last_period_percent"),i=r.reduce((b,w)=>b+w.balance.amount,0),c=r[r.length-1],l=r[0],g={...c,balance:{...c.balance,amount:i},startDate:l.startDate},m=pe(g,p);return s.jsx(Ht,{children:s.jsx(Q,{balance:g,dateText:m,showInfotip:!1})})}const Ut=({highlightedRangeReport:e,uiState:t})=>{switch(e.reportId){case"net_burn_or_income":return s.jsx(Ft,{highlightedRangeReport:e,uiState:t});case"revenue":return s.jsx(Gt,{highlightedRangeReport:e,uiState:t});case"operating_expenses":return s.jsx(Wt,{highlightedRangeReport:e,uiState:t});case"cash_position":return s.jsx(zt,{highlightedRangeReport:e});case"cash_in_cash_out":return s.jsx(Tt,{highlightedRangeReport:e});default:return null}},se={wrapperPadding:new R(N[3],N[3],N[8]),chartHeight:new R(288,360)},Zt=u.div`
39
+ `;function Gt({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:o,sections:n}=e,{selectedAdditionalBalances:a}=t,r=n.income.balances;if(o==null||o===0||r.length===0)return s.jsx(Ht,{});const p=a.includes("this_period_vs_last_period")||a.includes("this_period_vs_last_period_percent"),i=r.reduce((b,w)=>b+w.balance.amount,0),c=r[r.length-1],l=r[0],g={...c,balance:{...c.balance,amount:i},startDate:l.startDate},m=pe(g,p);return s.jsx(Yt,{children:s.jsx(Q,{balance:g,dateText:m,showInfotip:!1})})}const Ut=({highlightedRangeReport:e,uiState:t})=>{switch(e.reportId){case"net_burn_or_income":return s.jsx(Ft,{highlightedRangeReport:e,uiState:t});case"revenue":return s.jsx(Gt,{highlightedRangeReport:e,uiState:t});case"operating_expenses":return s.jsx(Wt,{highlightedRangeReport:e,uiState:t});case"cash_position":return s.jsx(zt,{highlightedRangeReport:e});case"cash_in_cash_out":return s.jsx(Tt,{highlightedRangeReport:e});default:return null}},se={wrapperPadding:new R(N[3],N[3],N[8]),chartHeight:new R(288,360)},Zt=u.div`
40
40
  display: flex;
41
41
  flex: 1 1 auto;
42
42
  flex-direction: column;
@@ -306,10 +306,10 @@ import{X as O,u as J,M as f,y as Ce,l as D,j as s,aW as Ge,e as Ue,D as Ze,aY as
306
306
  `,We=u(oe)`
307
307
  color: ${e=>e.isOn?e.theme.colors.primary:e.theme.colors.hero};
308
308
  opacity: ${e=>e.isDisabled?.5:1};
309
- `,He=({label:e,isOn:t,isToggleDisabled:o,onValueChanged:n})=>s.jsxs(s.Fragment,{children:[s.jsx(We,{isOn:t,isDisabled:o===!0,children:e}),s.jsx(Ee,{checked:t,edge:"end",disabled:o===!0,disableRipple:o===!0,onChange:a=>{n(a.target.checked)}})]});function Ye({isOn:e,isDisabled:t,selectedForecastIndex:o,forecasts:n,isForecastValid:a,onForecastToggleChanged:r,onForecastSelectionChanged:p}){return s.jsxs(Fs,{children:[e===!0&&n!=null&&n.length!==0?s.jsx(Is,{selectedForecastIndex:o??0,forecasts:n,isForecastValid:a,onForecastSelectionChanged:p,isDisabled:!1}):s.jsx(We,{isOn:e,isDisabled:t===!0,children:f.getLocalizedStrings().reports.forecast.forecast}),s.jsx(Ee,{checked:e,edge:"end",disabled:t===!0,disableRipple:t===!0,onChange:i=>{r(i.target.checked)}})]})}const Es=e=>{const t=O();return s.jsxs(Ds,{children:[s.jsx(Ve,{windowSize:t,children:s.jsx(Be,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),s.jsxs(Ms,{children:[e.forecastListWithToggle!=null&&s.jsx(Ye,{...e.forecastListWithToggle}),s.jsx(He,{...e.compareToggle,label:f.getLocalizedStrings().compareSwitchLabel})]})]})},Vs=e=>{const t=O();return s.jsxs(zs,{children:[s.jsx(Ve,{windowSize:t,children:s.jsx(Be,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),s.jsxs(As,{children:[e.forecastListWithToggle!=null&&s.jsx(Ye,{...e.forecastListWithToggle}),s.jsx(He,{...e.compareToggle,label:f.getLocalizedStrings().compareSwitchLabel})]})]})};function Ws(e){const t=O();return t==="small"||t==="medium-compact"?s.jsx(Es,{...e}):s.jsx(Vs,{...e})}const Hs=u.div`
309
+ `,Ye=({label:e,isOn:t,isToggleDisabled:o,onValueChanged:n})=>s.jsxs(s.Fragment,{children:[s.jsx(We,{isOn:t,isDisabled:o===!0,children:e}),s.jsx(Ee,{checked:t,edge:"end",disabled:o===!0,disableRipple:o===!0,onChange:a=>{n(a.target.checked)}})]});function He({isOn:e,isDisabled:t,selectedForecastIndex:o,forecasts:n,isForecastValid:a,onForecastToggleChanged:r,onForecastSelectionChanged:p}){return s.jsxs(Fs,{children:[e===!0&&n!=null&&n.length!==0?s.jsx(Is,{selectedForecastIndex:o??0,forecasts:n,isForecastValid:a,onForecastSelectionChanged:p,isDisabled:!1}):s.jsx(We,{isOn:e,isDisabled:t===!0,children:f.getLocalizedStrings().reports.forecast.forecast}),s.jsx(Ee,{checked:e,edge:"end",disabled:t===!0,disableRipple:t===!0,onChange:i=>{r(i.target.checked)}})]})}const Es=e=>{const t=O();return s.jsxs(Ds,{children:[s.jsx(Ve,{windowSize:t,children:s.jsx(Be,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),s.jsxs(Ms,{children:[e.forecastListWithToggle!=null&&s.jsx(He,{...e.forecastListWithToggle}),s.jsx(Ye,{...e.compareToggle,label:f.getLocalizedStrings().compareSwitchLabel})]})]})},Vs=e=>{const t=O();return s.jsxs(zs,{children:[s.jsx(Ve,{windowSize:t,children:s.jsx(Be,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),s.jsxs(As,{children:[e.forecastListWithToggle!=null&&s.jsx(He,{...e.forecastListWithToggle}),s.jsx(Ye,{...e.compareToggle,label:f.getLocalizedStrings().compareSwitchLabel})]})]})};function Ws(e){const t=O();return t==="small"||t==="medium-compact"?s.jsx(Es,{...e}):s.jsx(Vs,{...e})}const Ys=u.div`
310
310
  display: flex;
311
311
  padding: ${d.sp2} ${d.sp0} ${d.sp4} ${d.sp0};
312
- `,Ys=u.div``,Gs=u.div``,Us=e=>{const{selectedRangeReport:t,uiState:o,analytics:n,onThisPeriodChanged:a,onTimeframeSelectionChanged:r,onCOABalancesRangeChanged:p,onAdditionalBalanceSelectionChanged:i}=e,c=Ce(),{allTimeframeTicks:l}=t,{selectedCOABalancesRange:g,timeframe:m}=o,b=t.reportId==="cash_in_cash_out"?["month"]:["month","quarter","year"],w=t.availableNumberOfPeriods!=null&&t.availableNumberOfPeriods<2,x=o.mode==="compare_mode"&&!w,v=c.connectionName!=="netsuite"&&(t.reportId==="net_burn_or_income"||t.reportId==="operating_expenses"||t.reportId==="revenue");let S,h;switch(t.reportId){case"revenue":S=t.forecastList?.forecasts,h=t.forecastList?.fetchState;break;case"net_burn_or_income":S=t.forecastList?.forecasts,h=t.forecastList?.fetchState;break;case"operating_expenses":S=t.forecastList?.forecasts,h=t.forecastList?.fetchState;break;default:S=void 0}const C=t.availableNumberOfPeriods==null||t.availableNumberOfPeriods===0,$=C||t.availableNumberOfPeriods===1,W=y=>!!y.forecastPeriod.startDate.isBefore(t.dataAvailable?.endDate),[B,F]=_.useState(!1),Y=D.toZeniUrl("https://meetings.hubspot.com/svitlana-grankovska"),E=o.mode,L=o.selectedForecast;_.useEffect(()=>{E==="forecast_mode"&&h==="Completed"&&S?.length===0&&(F(!0),document.body.style.overflow="hidden")},[h,E,S]),_.useEffect(()=>{E==="forecast_mode"&&L!=null&&S!=null&&S.length>0&&e.analytics?.trackForecastSwitch(I(t.reportId),S[L.index].name)},[L]);const H=(y,j,G)=>{j===!0&&e.analytics?.trackForecastVsActualMode(I(t.reportId),"",y==="forecast_mode"),e.onForecastToggle?.(y,G)};return s.jsx(Gs,{children:s.jsxs(Ys,{children:[s.jsx(Hs,{children:s.jsx(Ws,{timeframe:{allowedTimeframes:b,selectedTimeframe:m,onTimeframeSelectionChanged:y=>{e.analytics?.trackTimeframeSwitch(U(y),I(t.reportId)),r?.(y),e.uiState.mode==="compare_mode"&&!x&&i(x,x?["this_period_vs_last_period_percent"]:[],x?3:1)}},compareToggle:{label:f.getLocalizedStrings().compareSwitchLabel,isOn:$?!1:x,isToggleDisabled:$,onValueChanged:y=>{const j=y===!0||o.mode==="forecast_mode"?3:1;n?.trackCompareMode(y,I(t.reportId),U(m)),i(y,y?["this_period_vs_last_period_percent","year_to_date_total"]:["year_to_date_total"],j)}},forecastListWithToggle:v===!0?{isOn:o.mode==="forecast_mode",isToggleDisabled:$,selectedForecastIndex:e.uiState.selectedForecast?.index,forecasts:S,isForecastValid:W,onForecastSelectionChanged:(y,j)=>H("forecast_mode",!1,{id:y,index:j}),onForecastToggleChanged:y=>{H(y===!0?"forecast_mode":"off",!0)}}:void 0})}),B==!0?s.jsx(bs,{meetingUrl:Y,reportId:t.reportId,onClose:()=>{F(!1),e.onForecastToggle?.("off");const y=1;document.body.style.overflow="auto",i(x,x?["this_period_vs_last_period_percent"]:[],y)}}):null,C?null:s.jsx(xt,{firstMonthOfFY:t.firstMonthOfFY,timeframe:m,timeframeTicks:l,selection:{selectedTicks:he(l,g),highlightedOfSelectedTicks:he(l,g)},onClick:(y,j)=>{Se(t.firstMonthOfFY,x,t.reportId,m,j,e.analytics),a(j)},onSelectionChanged:(y,j)=>{const G=mt(l,y.fromEnd),q=gt(l,j);Se(t.firstMonthOfFY,x,t.reportId,m,q.thisPeriod,e.analytics),p(G,q)}})]})})},Se=(e,t,o,n,a,r)=>{t===!0&&r?.trackCompareFilterTimeFrame(I(o),U(n),"range filter",te(e,n,a)),r?.trackDateRangeFilterChange(I(o),"range filter",t,te(e,n,a))};function me({account:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r,parentNodeIDs:p}){return{children:[],id:V("ac_report",p,e.accountId),isLastNode:a,reportElementData:{element:{kind:"ac_report",title:n,sectionType:t,data:e,numOfBalances:o},config:r}}}function Zs({acGroup:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r,parentNodeIDs:p}){const i=V("ac_group_report",p,e.accountGroupId),c={children:[],id:i,isLastNode:a,reportElementData:{element:{kind:"ac_group_report",title:n,sectionType:t,data:e,numOfBalances:o},config:r}},l=ue(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances).compactedAccountsSelector(e);return c.children=l.map((g,m)=>me({account:g,sectionType:t,numOfBalances:o,title:g.accountDescription,config:r,isLastNode:m===l.length-1,parentNodeIDs:[...p,i]})),c}function ye({section:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r}){const p=V("section",[],n),i={children:[],id:p,isLastNode:a,reportElementData:{element:{kind:"section",title:n,sectionType:t,data:e,numOfBalances:o},config:r}},c=St(e,r.displayOrder,o,!1),l=qs(c.balances),g=ue(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances),m=g.compactedAccountsSelectorVariant(e.accountsOrdered),b=g.compactedAccountGroupsSelector(e.accountGroupsOrdered);if(l===!0&&(b.length>0||e.accountsOrdered.length>0)){const w=b.map((v,S)=>Zs({acGroup:v,sectionType:t,numOfBalances:o,title:v.accountGroupName,isLastNode:S===b.length-1,config:r,parentNodeIDs:[p]})),x=m.map((v,S)=>me({account:v,sectionType:t,numOfBalances:o,title:v.accountDescription,isLastNode:S===e.accountsOrdered.length-1,config:r,parentNodeIDs:[p]}));i.children.push(...w),i.children.push(...x)}return i}function qs(e){let t=!1;if(e!=null){for(const o of e)if(o!=null&&o.balance.amount!==0){t=!0;break}}return t}function A({balances:e,config:t,nodeId:o}){let n="timeframe_headers";return t.mode==="actual_vs_forecast"&&(n="timeframe_headers_with_forecast"),{children:[],id:o??V("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:n,title:"",data:e,numOfBalances:e.length},config:t}}}function Js(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.cashIn.balances?[...e.cashIn.balances,...e.cashIn.additionalBalances]:e.cashOut.balances?[...e.cashOut.balances,...e.cashOut.additionalBalances]:[],p=A({balances:r,config:t}),i=ye({section:e.cashIn,sectionType:"cash_in",numOfBalances:a,title:n.sections.cashIn,isLastNode:!0,config:t}),c=ye({section:e.cashOut,sectionType:"cash_out",numOfBalances:a,title:n.sections.cashOut,isLastNode:!0,config:t}),l=ee({calculatedSection:e.netCashFlow,numOfBalances:a,title:n.sections.netCashFlow,isLastNode:!0,config:t});return{config:t,headerNodes:o?[p]:[],contentNodes:[p,i,c,l]}}function ge({title:e,balances:t,config:o,numOfBalances:n,nodeId:a}){return{children:[],id:a??V("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:t,numOfBalances:n},config:o}}}function Ks(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.cashPosition.balances,...e.cashPosition.additionalBalances],p=e.cashPosition,i=A({balances:r,config:t}),c=ge({title:f.getLocalizedStrings().chartCard.total,balances:p,config:t,numOfBalances:a}),l=V("section",[],n.sections.netCashFlow),g=ue("cash_position","no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.cashPosition.accountsOrdered).map((m,b)=>me({account:m,sectionType:"cash_position",numOfBalances:a,title:m.accountDescription,isLastNode:b===e.cashPosition.accountsOrdered.length-1,config:t,parentNodeIDs:[l]}));return{config:t,headerNodes:o?[i]:[],contentNodes:[i,c,...g]}}function Xs(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:[],p=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isNetBurnOrIncomeClassesViewSectionID(c)===!0?i.push(Pe({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isNetBurnOrIncomeClassesViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:c==="netBurnOrIncome"?e.reportTitle:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function Qs(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:[],p=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isNetBurnOrIncomeReportViewSectionID(c)===!0?e.sections[c].accountGroups.length>0?i.push(Le({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):i.push(Ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isNetBurnOrIncomeReportViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:c==="netBurnOrIncome"?e.reportTitle:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function eo(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances],p=A({balances:r,config:t}),i=e.sections.expenses,c=ge({title:f.getLocalizedStrings().chartCard.total,balances:i,config:t,numOfBalances:a}),l=[];l.push(p),l.push(c);const g=V("section",[],n.sections.expenses);return e.sections.expenses.classes.forEach((m,b)=>{l.push(yt({classNode:m,sectionType:"expenses",numOfBalances:a,title:m.class.className,isLastNode:m.isLeafClass,config:t,parentNodeIDs:[g],ancestorMetadata:{subAccountAncestorMetadata:[],classAncestorMetadata:[{depth:m.id.length-1,hasSibling:!1,hasChildren:m.children.length>0,isLastNode:b===e.sections.expenses.classes.length-1,name:m.class.className}]}}))}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}function to(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances],p=A({balances:r,config:t}),i=e.sections.expenses,c=ge({title:f.getLocalizedStrings().chartCard.total,balances:i,config:t,numOfBalances:a}),l=V("section",[],n.sections.expenses),g=wt("no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances),m=[];m.push(p),m.push(c);const b=g.compactedAccountGroupsSelector(e.sections.expenses.accountGroups);if(b.length!=0){const w=b.map((x,v)=>vt({acGroup:x,sectionType:"expenses",numOfBalances:a,title:x.accountGroupName,isLastNode:v===b.length-1,config:t,parentNodeIDs:[l]}));m.push(...w)}else if(e.sections.expenses.accounts?.length!==0){const w=g.compactedAccountsSelectorVariant(e.sections.expenses.accounts),x=w.map((v,S)=>Ct({account:v,sectionType:"expenses",numOfBalances:a,title:v.account.accountName,isLastNode:S===w.length-1,config:t,parentNodeIDs:[l],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:w.length>1,hasChildren:v.children.length>0,isLastNode:S===w.length-1}]}}));m.push(...x)}return{config:t,headerNodes:o?[p]:[],contentNodes:m}}function so(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.calculatedSections.grossMargin.balances.length>0?[...e.calculatedSections.grossMargin.balances,...e.calculatedSections.grossMargin.additionalBalances]:[],p=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isRevenueClassesViewSectionID(c)===!0?i.push(Pe({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isRevenueClassesViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:n.sections.grossMargin,isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function oo(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.calculatedSections.grossMargin.balances.length>0?[...e.calculatedSections.grossMargin.balances,...e.calculatedSections.grossMargin.additionalBalances]:[],p=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isRevenueSectionID(c)===!0?e.sections[c].accountGroups.length>0?i.push(Le({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):i.push(Ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isRevenueCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function ao(e,t,o,n=!0){Object.assign(e.config,t);const a=no(o),r=A({balances:a,config:t});return{config:t,headerNodes:n?[r]:[],contentNodes:[r,...e.contentNodes.slice(1)]}}const no=e=>{switch(e.reportId){case"net_burn_or_income":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[]}case"net_burn_or_income_by_classes":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[]}case"revenue":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[]}case"revenue_by_classes":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[]}case"cash_position":{const t=e;return[...t.cashPosition.balances,...t.cashPosition.additionalBalances]}case"cash_in_cash_out":{const t=e;return t.cashIn.balances.length>0?[...t.cashIn.balances,...t.cashIn.additionalBalances]:[...t.cashOut.balances,...t.cashOut.additionalBalances]}case"operating_expenses":{const t=e;return[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]}case"operating_expenses_by_classes":{const t=e;return[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]}default:return[]}},ve={contentPaddingLeft:new R(N[0],N[0],N[0]),contentPaddingRight:new R(N[3],N[3],N[8])},io=u.div`
312
+ `,Hs=u.div``,Gs=u.div``,Us=e=>{const{selectedRangeReport:t,uiState:o,analytics:n,onThisPeriodChanged:a,onTimeframeSelectionChanged:r,onCOABalancesRangeChanged:p,onAdditionalBalanceSelectionChanged:i}=e,c=Ce(),{allTimeframeTicks:l}=t,{selectedCOABalancesRange:g,timeframe:m}=o,b=t.reportId==="cash_in_cash_out"?["month"]:["month","quarter","year"],w=t.availableNumberOfPeriods!=null&&t.availableNumberOfPeriods<2,x=o.mode==="compare_mode"&&!w,v=c.connectionName!=="netsuite"&&(t.reportId==="net_burn_or_income"||t.reportId==="operating_expenses"||t.reportId==="revenue");let S,h;switch(t.reportId){case"revenue":S=t.forecastList?.forecasts,h=t.forecastList?.fetchState;break;case"net_burn_or_income":S=t.forecastList?.forecasts,h=t.forecastList?.fetchState;break;case"operating_expenses":S=t.forecastList?.forecasts,h=t.forecastList?.fetchState;break;default:S=void 0}const C=t.availableNumberOfPeriods==null||t.availableNumberOfPeriods===0,$=C||t.availableNumberOfPeriods===1,W=y=>!!y.forecastPeriod.startDate.isBefore(t.dataAvailable?.endDate),[B,F]=_.useState(!1),H=D.toZeniUrl("https://meetings.hubspot.com/svitlana-grankovska"),E=o.mode,L=o.selectedForecast;_.useEffect(()=>{E==="forecast_mode"&&h==="Completed"&&S?.length===0&&(F(!0),document.body.style.overflow="hidden")},[h,E,S]),_.useEffect(()=>{E==="forecast_mode"&&L!=null&&S!=null&&S.length>0&&e.analytics?.trackForecastSwitch(I(t.reportId),S[L.index].name)},[L]);const Y=(y,j,G)=>{j===!0&&e.analytics?.trackForecastVsActualMode(I(t.reportId),"",y==="forecast_mode"),e.onForecastToggle?.(y,G)};return s.jsx(Gs,{children:s.jsxs(Hs,{children:[s.jsx(Ys,{children:s.jsx(Ws,{timeframe:{allowedTimeframes:b,selectedTimeframe:m,onTimeframeSelectionChanged:y=>{e.analytics?.trackTimeframeSwitch(U(y),I(t.reportId)),r?.(y),e.uiState.mode==="compare_mode"&&!x&&i(x,x?["this_period_vs_last_period_percent"]:[],x?3:1)}},compareToggle:{label:f.getLocalizedStrings().compareSwitchLabel,isOn:$?!1:x,isToggleDisabled:$,onValueChanged:y=>{const j=y===!0||o.mode==="forecast_mode"?3:1;n?.trackCompareMode(y,I(t.reportId),U(m)),i(y,y?["this_period_vs_last_period_percent","year_to_date_total"]:["year_to_date_total"],j)}},forecastListWithToggle:v===!0?{isOn:o.mode==="forecast_mode",isToggleDisabled:$,selectedForecastIndex:e.uiState.selectedForecast?.index,forecasts:S,isForecastValid:W,onForecastSelectionChanged:(y,j)=>Y("forecast_mode",!1,{id:y,index:j}),onForecastToggleChanged:y=>{Y(y===!0?"forecast_mode":"off",!0)}}:void 0})}),B==!0?s.jsx(bs,{meetingUrl:H,reportId:t.reportId,onClose:()=>{F(!1),e.onForecastToggle?.("off");const y=1;document.body.style.overflow="auto",i(x,x?["this_period_vs_last_period_percent"]:[],y)}}):null,C?null:s.jsx(xt,{firstMonthOfFY:t.firstMonthOfFY,timeframe:m,timeframeTicks:l,selection:{selectedTicks:he(l,g),highlightedOfSelectedTicks:he(l,g)},onClick:(y,j)=>{Se(t.firstMonthOfFY,x,t.reportId,m,j,e.analytics),a(j)},onSelectionChanged:(y,j)=>{const G=mt(l,y.fromEnd),q=gt(l,j);Se(t.firstMonthOfFY,x,t.reportId,m,q.thisPeriod,e.analytics),p(G,q)}})]})})},Se=(e,t,o,n,a,r)=>{t===!0&&r?.trackCompareFilterTimeFrame(I(o),U(n),"range filter",te(e,n,a)),r?.trackDateRangeFilterChange(I(o),"range filter",t,te(e,n,a))};function me({account:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r,parentNodeIDs:p}){return{children:[],id:V("ac_report",p,e.accountId),isLastNode:a,reportElementData:{element:{kind:"ac_report",title:n,sectionType:t,data:e,numOfBalances:o},config:r}}}function Zs({acGroup:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r,parentNodeIDs:p}){const i=V("ac_group_report",p,e.accountGroupId),c={children:[],id:i,isLastNode:a,reportElementData:{element:{kind:"ac_group_report",title:n,sectionType:t,data:e,numOfBalances:o},config:r}},l=ue(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances).compactedAccountsSelector(e);return c.children=l.map((g,m)=>me({account:g,sectionType:t,numOfBalances:o,title:g.accountDescription,config:r,isLastNode:m===l.length-1,parentNodeIDs:[...p,i]})),c}function ye({section:e,sectionType:t,numOfBalances:o,title:n,isLastNode:a,config:r}){const p=V("section",[],n),i={children:[],id:p,isLastNode:a,reportElementData:{element:{kind:"section",title:n,sectionType:t,data:e,numOfBalances:o},config:r}},c=St(e,r.displayOrder,o,!1),l=qs(c.balances),g=ue(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances),m=g.compactedAccountsSelectorVariant(e.accountsOrdered),b=g.compactedAccountGroupsSelector(e.accountGroupsOrdered);if(l===!0&&(b.length>0||e.accountsOrdered.length>0)){const w=b.map((v,S)=>Zs({acGroup:v,sectionType:t,numOfBalances:o,title:v.accountGroupName,isLastNode:S===b.length-1,config:r,parentNodeIDs:[p]})),x=m.map((v,S)=>me({account:v,sectionType:t,numOfBalances:o,title:v.accountDescription,isLastNode:S===e.accountsOrdered.length-1,config:r,parentNodeIDs:[p]}));i.children.push(...w),i.children.push(...x)}return i}function qs(e){let t=!1;if(e!=null){for(const o of e)if(o!=null&&o.balance.amount!==0){t=!0;break}}return t}function A({balances:e,config:t,nodeId:o}){let n="timeframe_headers";return t.mode==="actual_vs_forecast"&&(n="timeframe_headers_with_forecast"),{children:[],id:o??V("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:n,title:"",data:e,numOfBalances:e.length},config:t}}}function Js(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.cashIn.balances?[...e.cashIn.balances,...e.cashIn.additionalBalances]:e.cashOut.balances?[...e.cashOut.balances,...e.cashOut.additionalBalances]:[],p=A({balances:r,config:t}),i=ye({section:e.cashIn,sectionType:"cash_in",numOfBalances:a,title:n.sections.cashIn,isLastNode:!0,config:t}),c=ye({section:e.cashOut,sectionType:"cash_out",numOfBalances:a,title:n.sections.cashOut,isLastNode:!0,config:t}),l=ee({calculatedSection:e.netCashFlow,numOfBalances:a,title:n.sections.netCashFlow,isLastNode:!0,config:t});return{config:t,headerNodes:o?[p]:[],contentNodes:[p,i,c,l]}}function ge({title:e,balances:t,config:o,numOfBalances:n,nodeId:a}){return{children:[],id:a??V("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:t,numOfBalances:n},config:o}}}function Ks(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.cashPosition.balances,...e.cashPosition.additionalBalances],p=e.cashPosition,i=A({balances:r,config:t}),c=ge({title:f.getLocalizedStrings().chartCard.total,balances:p,config:t,numOfBalances:a}),l=V("section",[],n.sections.netCashFlow),g=ue("cash_position","no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.cashPosition.accountsOrdered).map((m,b)=>me({account:m,sectionType:"cash_position",numOfBalances:a,title:m.accountDescription,isLastNode:b===e.cashPosition.accountsOrdered.length-1,config:t,parentNodeIDs:[l]}));return{config:t,headerNodes:o?[i]:[],contentNodes:[i,c,...g]}}function Xs(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:[],p=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isNetBurnOrIncomeClassesViewSectionID(c)===!0?i.push(Pe({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isNetBurnOrIncomeClassesViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:c==="netBurnOrIncome"?e.reportTitle:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function Qs(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:[],p=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isNetBurnOrIncomeReportViewSectionID(c)===!0?e.sections[c].accountGroups.length>0?i.push(Le({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):i.push(Ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isNetBurnOrIncomeReportViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:c==="netBurnOrIncome"?e.reportTitle:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function eo(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances],p=A({balances:r,config:t}),i=e.sections.expenses,c=ge({title:f.getLocalizedStrings().chartCard.total,balances:i,config:t,numOfBalances:a}),l=[];l.push(p),l.push(c);const g=V("section",[],n.sections.expenses);return e.sections.expenses.classes.forEach((m,b)=>{l.push(yt({classNode:m,sectionType:"expenses",numOfBalances:a,title:m.class.className,isLastNode:m.isLeafClass,config:t,parentNodeIDs:[g],ancestorMetadata:{subAccountAncestorMetadata:[],classAncestorMetadata:[{depth:m.id.length-1,hasSibling:!1,hasChildren:m.children.length>0,isLastNode:b===e.sections.expenses.classes.length-1,name:m.class.className}]}}))}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}function to(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances],p=A({balances:r,config:t}),i=e.sections.expenses,c=ge({title:f.getLocalizedStrings().chartCard.total,balances:i,config:t,numOfBalances:a}),l=V("section",[],n.sections.expenses),g=wt("no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances),m=[];m.push(p),m.push(c);const b=g.compactedAccountGroupsSelector(e.sections.expenses.accountGroups);if(b.length!=0){const w=b.map((x,v)=>vt({acGroup:x,sectionType:"expenses",numOfBalances:a,title:x.accountGroupName,isLastNode:v===b.length-1,config:t,parentNodeIDs:[l]}));m.push(...w)}else if(e.sections.expenses.accounts?.length!==0){const w=g.compactedAccountsSelectorVariant(e.sections.expenses.accounts),x=w.map((v,S)=>Ct({account:v,sectionType:"expenses",numOfBalances:a,title:v.account.accountName,isLastNode:S===w.length-1,config:t,parentNodeIDs:[l],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:w.length>1,hasChildren:v.children.length>0,isLastNode:S===w.length-1}]}}));m.push(...x)}return{config:t,headerNodes:o?[p]:[],contentNodes:m}}function so(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.calculatedSections.grossMargin.balances.length>0?[...e.calculatedSections.grossMargin.balances,...e.calculatedSections.grossMargin.additionalBalances]:[],p=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isRevenueClassesViewSectionID(c)===!0?i.push(Pe({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isRevenueClassesViewCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:n.sections.grossMargin,isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function oo(e,t,o=!0){const n=f.getLocalizedStrings().reports,a=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.calculatedSections.grossMargin.balances.length>0?[...e.calculatedSections.grossMargin.balances,...e.calculatedSections.grossMargin.additionalBalances]:[],p=A({balances:r,config:t}),i=[];return i.push(p),e.idsInOrder.forEach(c=>{D.isRevenueSectionID(c)===!0?e.sections[c].accountGroups.length>0?i.push(Le({section:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):i.push(Ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t})):D.isRevenueCalculatedSectionID(c)===!0&&i.push(ee({calculatedSection:e.calculatedSections[c],numOfBalances:a,title:n.sections[c],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:i}}function ao(e,t,o,n=!0){Object.assign(e.config,t);const a=no(o),r=A({balances:a,config:t});return{config:t,headerNodes:n?[r]:[],contentNodes:[r,...e.contentNodes.slice(1)]}}const no=e=>{switch(e.reportId){case"net_burn_or_income":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[]}case"net_burn_or_income_by_classes":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[]}case"revenue":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[]}case"revenue_by_classes":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[]}case"cash_position":{const t=e;return[...t.cashPosition.balances,...t.cashPosition.additionalBalances]}case"cash_in_cash_out":{const t=e;return t.cashIn.balances.length>0?[...t.cashIn.balances,...t.cashIn.additionalBalances]:[...t.cashOut.balances,...t.cashOut.additionalBalances]}case"operating_expenses":{const t=e;return[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]}case"operating_expenses_by_classes":{const t=e;return[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]}default:return[]}},ve={contentPaddingLeft:new R(N[0],N[0],N[0]),contentPaddingRight:new R(N[3],N[3],N[8])},io=u.div`
313
313
  width: 100%;
314
314
  height: calc(100vh - 70px);
315
315
  `,ro=u.div`
@@ -322,7 +322,7 @@ import{X as O,u as J,M as f,y as Ce,l as D,j as s,aW as Ge,e as Ue,D as Ze,aY as
322
322
  `,co=u.div`
323
323
  position: absolute;
324
324
  margin-top: ${d.sp3};
325
- `,lo=e=>{const t=O(),o=J(),{selectedRangeReport:n,selectedClassesViewRangeReport:a,uiState:r,scrollPosition:p,isZeniUser:i,onTableScroll:c,onElementCollapseStateChanged:l,onAccountBalanceClick:g,onUpdateAccountViewMode:m,onUpdateClassesToFilterOut:b,onOpenAccountViewMode:w}=e,{highlightedCOABalancesRange:x,mode:v}=r,S=n.availableNumberOfPeriods==null||n.availableNumberOfPeriods===0,h=n.availableNumberOfPeriods!=null&&n.availableNumberOfPeriods<2,C=r.mode==="compare_mode"&&!h,$=C||r.mode==="forecast_mode"?3:1,W=k=>{e.analytics?.trackCompareFilterChange(k==="compare_mode_percent"?"percentage":"amount",I(n.reportId),U(r.timeframe),"dropdown");const P=k==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period";e.onAdditionalBalanceSelectionChanged(C,[P],x?.numberOfPeriods??$)},[B,F]=_.useState(void 0),[Y,E]=_.useState(void 0),L=!(t==="small"||t==="medium-compact"),H=v==="forecast_mode"?"name+balances_forecast":"name+balances_actual",y=uo(r.selectedAdditionalBalances),j=a!==void 0&&a.uiState.accountViewMode==="classes"?a:n,G=v==="forecast_mode"?"actual_vs_forecast":C===!0?"this_period_vs_period_before":"none",q=n.reportId==="net_burn_or_income"||n.reportId==="operating_expenses"||n.reportId==="revenue",ae=(k,P)=>{k!==a?.uiState.accountViewMode&&m?.(k),P&&b?.(P)};return _.useEffect(()=>{const k={reportId:v==="forecast_mode"&&r.selectedForecast!=null?`${j.reportId}+${r.selectedForecast?.id}`:j.reportId,mode:G,displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:j.bookCloseDate,firstMonthOfFY:j.firstMonthOfFY,filterAccountsWithNilBalances:v==="forecast_mode"?"filter_actual_forecast_nil_balances":"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",showNegativeAmountInParenthesis:Qe(),showClassAccountNumber:i,isZeniCOAInUse:e.isZeniCOAUsed,dataAvailable:j.dataAvailable};if(B==null||!K(Y,j)){const P=po(j,k,L);E(j),F(P)}else{const P=ao(B,k,j,L);F(P)}},[H,C,j]),s.jsx(ro,{windowSize:t,children:S?s.jsx(jt,{}):B!=null?s.jsxs(io,{children:[s.jsx(_t,{backgroundColor:new Xe(o.colors.grey4),rootNodes:B,type:H,compareMode:y,isSticky:{isStickyHeader:L,isStickyName:L},treeNodePadding:{left:ve.contentPaddingLeft.value(t),right:ve.contentPaddingRight.value(t)},onAccountClick:g==null?void 0:(k,P)=>{g(k,P)},nodeOpenStatus:r.nodeCollapseState,scrollPosition:p,onCompareModeChanged:W,onScroll:c,onNodeCollapseToggled:l}),q===!0&&a!==void 0?s.jsx(co,{children:s.jsx(pt,{reportId:n.reportId,nodes:a.classHierarchy,classesListFetchState:a.fetchState,selectedView:a.uiState.accountViewMode,showClassAccountNumber:i,showAccountGroups:e.isZeniCOAUsed??!0,onSaveClick:ae,classesToBeFilteredOut:a.classesToFilterOut,isClassViewDisabled:r.mode==="forecast_mode",firstMonthOfFY:a.firstMonthOfFY,onOpenAccountViewMode:w,onResyncReports:e.onResyncReports,reportsResyncFetchState:e.reportsResyncFetchState,lastRefreshSuccessTime:a?.status?.lastRefreshSuccessTime})}):null]}):null})},po=(e,t,o=!0)=>{switch(e.reportId){case"net_burn_or_income":return Qs(e,t,o);case"net_burn_or_income_by_classes":return Xs(e,t,o);case"revenue":return oo(e,t,o);case"revenue_by_classes":return so(e,t,o);case"cash_position":return Ks(e,t,o);case"cash_in_cash_out":return Js(e,t,o);case"operating_expenses":return to(e,t,o);case"operating_expenses_by_classes":return eo(e,t,o);default:return}},uo=e=>e.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",mo=u.div`
325
+ `,lo=e=>{const t=O(),o=J(),{selectedRangeReport:n,selectedClassesViewRangeReport:a,uiState:r,scrollPosition:p,isZeniUser:i,onTableScroll:c,onElementCollapseStateChanged:l,onAccountBalanceClick:g,onUpdateAccountViewMode:m,onUpdateClassesToFilterOut:b,onOpenAccountViewMode:w}=e,{highlightedCOABalancesRange:x,mode:v}=r,S=n.availableNumberOfPeriods==null||n.availableNumberOfPeriods===0,h=n.availableNumberOfPeriods!=null&&n.availableNumberOfPeriods<2,C=r.mode==="compare_mode"&&!h,$=C||r.mode==="forecast_mode"?3:1,W=k=>{e.analytics?.trackCompareFilterChange(k==="compare_mode_percent"?"percentage":"amount",I(n.reportId),U(r.timeframe),"dropdown");const P=k==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period";e.onAdditionalBalanceSelectionChanged(C,[P],x?.numberOfPeriods??$)},[B,F]=_.useState(void 0),[H,E]=_.useState(void 0),L=!(t==="small"||t==="medium-compact"),Y=v==="forecast_mode"?"name+balances_forecast":"name+balances_actual",y=uo(r.selectedAdditionalBalances),j=a!==void 0&&a.uiState.accountViewMode==="classes"?a:n,G=v==="forecast_mode"?"actual_vs_forecast":C===!0?"this_period_vs_period_before":"none",q=n.reportId==="net_burn_or_income"||n.reportId==="operating_expenses"||n.reportId==="revenue",ae=(k,P)=>{k!==a?.uiState.accountViewMode&&m?.(k),P&&b?.(P)};return _.useEffect(()=>{const k={reportId:v==="forecast_mode"&&r.selectedForecast!=null?`${j.reportId}+${r.selectedForecast?.id}`:j.reportId,mode:G,displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:j.bookCloseDate,firstMonthOfFY:j.firstMonthOfFY,filterAccountsWithNilBalances:v==="forecast_mode"?"filter_actual_forecast_nil_balances":"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",showNegativeAmountInParenthesis:Qe(),showClassAccountNumber:i,isZeniCOAInUse:e.isZeniCOAUsed,dataAvailable:j.dataAvailable};if(B==null||!K(H,j)){const P=po(j,k,L);E(j),F(P)}else{const P=ao(B,k,j,L);F(P)}},[Y,C,j]),s.jsx(ro,{windowSize:t,children:S?s.jsx(jt,{}):B!=null?s.jsxs(io,{children:[s.jsx(_t,{backgroundColor:new Xe(o.colors.grey4),rootNodes:B,type:Y,compareMode:y,isSticky:{isStickyHeader:L,isStickyName:L},treeNodePadding:{left:ve.contentPaddingLeft.value(t),right:ve.contentPaddingRight.value(t)},onAccountClick:g==null?void 0:(k,P)=>{g(k,P)},nodeOpenStatus:r.nodeCollapseState,scrollPosition:p,onCompareModeChanged:W,onScroll:c,onNodeCollapseToggled:l}),q===!0&&a!==void 0?s.jsx(co,{children:s.jsx(pt,{reportId:n.reportId,nodes:a.classHierarchy,classesListFetchState:a.fetchState,selectedView:a.uiState.accountViewMode,showClassAccountNumber:i,showAccountGroups:e.isZeniCOAUsed??!0,onSaveClick:ae,classesToBeFilteredOut:a.classesToFilterOut,isClassViewDisabled:r.mode==="forecast_mode",firstMonthOfFY:a.firstMonthOfFY,onOpenAccountViewMode:w,onResyncReports:e.onResyncReports,reportsResyncFetchState:e.reportsResyncFetchState,lastRefreshSuccessTime:a?.status?.lastRefreshSuccessTime})}):null]}):null})},po=(e,t,o=!0)=>{switch(e.reportId){case"net_burn_or_income":return Qs(e,t,o);case"net_burn_or_income_by_classes":return Xs(e,t,o);case"revenue":return oo(e,t,o);case"revenue_by_classes":return so(e,t,o);case"cash_position":return Ks(e,t,o);case"cash_in_cash_out":return Js(e,t,o);case"operating_expenses":return to(e,t,o);case"operating_expenses_by_classes":return eo(e,t,o);default:return}},uo=e=>e.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",mo=u.div`
326
326
  display: flex;
327
327
  flex: 1 1 auto;
328
328
  min-height: 100%;
@@ -346,4 +346,4 @@ import{X as O,u as J,M as f,y as Ce,l as D,j as s,aW as Ge,e as Ue,D as Ze,aY as
346
346
  align-items: center;
347
347
  height: 100vh;
348
348
  margin-top: ${d.sp8};
349
- `,Zo=e=>{const t=O(),o=J(),[n,a]=_.useState(!1),r=f.getLocalizedStrings(),{reportLabels:p,selectedRangeReport:i,selectedClassesViewRangeReport:c,uiState:l,downloadParams:g,analytics:m,onBackClick:b,updateDownloadStateHandler:w,onAdditionalBalanceSelectionChanged:x}=e,{insights:v}=i,{selectedCOABalancesRange:S,timeframe:h,selectedAdditionalBalances:C,downloadState:$}=l,W=i.availableNumberOfPeriods!=null&&i.availableNumberOfPeriods<2,B=l.mode==="compare_mode"&&!W,F=Ce(),Y=F.loggedInUserRole!=null&&!D.hasInvestorBankerLevelAccess(F.loggedInUserRole),E=e.selectedRangeReport.reportId==="cash_in_cash_out"||e.selectedRangeReport.reportId==="cash_position";_.useEffect(()=>{async function z(){await Rt({report:c!==void 0&&c.uiState.accountViewMode==="classes"?c:i,filter:i.filter,coaBalancesRange:S,isCompareModeOn:B,reportView:c!==void 0?c.uiState.accountViewMode:"account_group",classesToFilterOut:c!==void 0?c.uiState.classesToFilterOut:[],...g,reportType:Y||E?"more_detailed":"detailed",isZeniCOAUsed:e.isZeniCOAUsed??!0}),m?.trackDownload(I(i.reportId),U(h),"excel",B),w("Completed")}n&&$!=="In-Progress"&&(a(!1),w("In-Progress"),z())},[g,$,i.filter,n,B,S,i,c,h,m,w,Y,E,e.isZeniCOAUsed]);const L=i.availableNumberOfPeriods==null||i.availableNumberOfPeriods===0||i.allTimeframeTicks.length===0,H=i.fetchState==="In-Progress"||i.fetchState==="Not-Started",y=(e.reportsResyncFetchState==="In-Progress"||c?.fetchState==="In-Progress")&&c?.uiState.accountViewMode==="classes";_.useEffect(()=>{const z=B||l.mode==="forecast_mode"?3:1;x(B,C,z)},[t]);const j=z=>{e.autoCompleteData?.autoCompleteText!=null&&e.analytics?.trackSearch(Ze.Event.search,I(i.reportId),z.type,z.name,e.autoCompleteData?.autoCompleteText),e.autoCompleteActions?.onAutoCompleteEntity?.(z)},{autoCompleteData:G,autoCompleteActions:q,scrollPosition:ae,...k}=e,P=s.jsx(qe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:L,isDownloading:$==="In-Progress"}],onDownloadClick:async z=>{if(z==="excel")if($==="In-Progress"){console.log("Download is already in progress!");return}else a(!0)}}}});return s.jsxs(mo,{children:[s.jsx(Ge,{title:p.reportTitle,backgroundColor:o.colors.grey5,onBackClick:b,rightSideComponent:P,downloadPresent:!0,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:j}},source:"DashboardReportPage"}),H||y?s.jsx(fo,{children:s.jsx(Ue,{size:"Standard",start:!0})}):L?s.jsx(Pt,{style:{background:o.colors.grey5},emptyContentText:r.common.noReport.replace("_item-name_",`${r.reportTitleById.operating_expenses.toLowerCase()}`),EmptyContentImage:$t}):s.jsxs(s.Fragment,{children:[s.jsxs(go,{windowSize:t,children:[s.jsx(wo,{...k}),s.jsx(bo,{highlightedRangeReport:i,uiState:l}),s.jsx(xo,{...k}),s.jsx(ho,{children:s.jsx(ut,{insights:v})})]}),s.jsx(_o,{scrollPosition:ae,...k})]})]})},bo=X.memo(Ut,K),xo=X.memo(Jt,K),_o=X.memo(lo,K),wo=X.memo(Us,K);export{Zo as default};
349
+ `,Zo=e=>{const t=O(),o=J(),[n,a]=_.useState(!1),r=f.getLocalizedStrings(),{reportLabels:p,selectedRangeReport:i,selectedClassesViewRangeReport:c,uiState:l,downloadParams:g,analytics:m,onBackClick:b,updateDownloadStateHandler:w,onAdditionalBalanceSelectionChanged:x}=e,{insights:v}=i,{selectedCOABalancesRange:S,timeframe:h,selectedAdditionalBalances:C,downloadState:$}=l,W=i.availableNumberOfPeriods!=null&&i.availableNumberOfPeriods<2,B=l.mode==="compare_mode"&&!W,F=Ce(),H=F.loggedInUserRole!=null&&!D.hasInvestorBankerLevelAccess(F.loggedInUserRole),E=e.selectedRangeReport.reportId==="cash_in_cash_out"||e.selectedRangeReport.reportId==="cash_position";_.useEffect(()=>{async function z(){await Rt({report:c!==void 0&&c.uiState.accountViewMode==="classes"?c:i,filter:i.filter,coaBalancesRange:S,isCompareModeOn:B,reportView:c!==void 0?c.uiState.accountViewMode:"account_group",classesToFilterOut:c!==void 0?c.uiState.classesToFilterOut:[],...g,reportType:H||E?"more_detailed":"detailed",isZeniCOAUsed:e.isZeniCOAUsed??!0}),m?.trackDownload(I(i.reportId),U(h),"excel",B),w("Completed")}n&&$!=="In-Progress"&&(a(!1),w("In-Progress"),z())},[g,$,i.filter,n,B,S,i,c,h,m,w,H,E,e.isZeniCOAUsed]);const L=i.availableNumberOfPeriods==null||i.availableNumberOfPeriods===0||i.allTimeframeTicks.length===0,Y=i.fetchState==="In-Progress"||i.fetchState==="Not-Started",y=(e.reportsResyncFetchState==="In-Progress"||c?.fetchState==="In-Progress")&&c?.uiState.accountViewMode==="classes";_.useEffect(()=>{const z=B||l.mode==="forecast_mode"?3:1;x(B,C,z)},[t]);const j=z=>{e.autoCompleteData?.autoCompleteText!=null&&e.analytics?.trackSearch(Ze.Event.search,I(i.reportId),z.type,z.name,e.autoCompleteData?.autoCompleteText),e.autoCompleteActions?.onAutoCompleteEntity?.(z)},{autoCompleteData:G,autoCompleteActions:q,scrollPosition:ae,...k}=e,P=s.jsx(qe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:L,isDownloading:$==="In-Progress"}],onDownloadClick:async z=>{if(z==="excel")if($==="In-Progress"){console.log("Download is already in progress!");return}else a(!0)}}}});return s.jsxs(mo,{children:[s.jsx(Ge,{title:p.reportTitle,backgroundColor:o.colors.grey5,onBackClick:b,rightSideComponent:P,downloadPresent:!0,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:j}},source:"DashboardReportPage"}),Y||y?s.jsx(fo,{children:s.jsx(Ue,{size:"Standard",start:!0})}):L?s.jsx(Pt,{style:{background:o.colors.grey5},emptyContentText:r.common.noReport.replace("_item-name_",`${r.reportTitleById.operating_expenses.toLowerCase()}`),EmptyContentImage:$t}):s.jsxs(s.Fragment,{children:[s.jsxs(go,{windowSize:t,children:[s.jsx(wo,{...k}),s.jsx(bo,{highlightedRangeReport:i,uiState:l}),s.jsx(xo,{...k}),s.jsx(ho,{children:s.jsx(ut,{insights:v})})]}),s.jsx(_o,{scrollPosition:ae,...k})]})]})},bo=X.memo(Ut,K),xo=X.memo(Jt,K),_o=X.memo(lo,K),wo=X.memo(Us,K);export{Zo as default};
@@ -1,4 +1,4 @@
1
- import{_ as $,gW as u,X as y,j as l,o as i,t as d,m as c}from"./index-CChR0tlr.js";import{n as t}from"./vendor-CnQcJ2Lu.js";import{g as k}from"./BoxItem-D3v5T6bP-Ccyj0z_e.js";import{o as v}from"./commonDimensions-Pkc8qIrn-C51PkztX.js";function M({data:e,boxType:w}){const{counterParty:r,typeName:s,amount:x,logo:p,summary:m,direction:b,status:g}=e,f=r.length>0?r:m,a=$("0,0.00",x),n=u(g),o=y(),h=l.jsxs(N,{children:[l.jsx(C,{src:p?.toString(),loading:"lazy"}),l.jsx(T,{children:l.jsxs(E,{windowSize:o,children:[l.jsx(D,{children:f}),n!=null?l.jsxs(P,{windowSize:o,children:[l.jsx(W,{windowSize:o}),l.jsx(R,{color:n?.color,children:n?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[s!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:s})}):null,l.jsx(A,{windowSize:o,children:b==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:w,isDisabled:!1,isNotClickable:!0})}const j=t.div`
1
+ import{_ as $,gW as u,X as y,j as l,o as i,t as d,m as c}from"./index-DTlzo6Yx.js";import{n as t}from"./vendor-CnQcJ2Lu.js";import{g as k}from"./BoxItem-UCX7eqiN-Bx4T9Ckg.js";import{o as v}from"./commonDimensions-OJhakpB_-Bbp60BrB.js";function M({data:e,boxType:w}){const{counterParty:r,typeName:s,amount:x,logo:p,summary:m,direction:b,status:g}=e,f=r.length>0?r:m,a=$("0,0.00",x),n=u(g),o=y(),h=l.jsxs(N,{children:[l.jsx(C,{src:p?.toString(),loading:"lazy"}),l.jsx(T,{children:l.jsxs(E,{windowSize:o,children:[l.jsx(D,{children:f}),n!=null?l.jsxs(P,{windowSize:o,children:[l.jsx(W,{windowSize:o}),l.jsx(R,{color:n?.color,children:n?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[s!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:s})}):null,l.jsx(A,{windowSize:o,children:b==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:w,isDisabled:!1,isNotClickable:!0})}const j=t.div`
2
2
  display: flex;
3
3
  flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
4
4
  align-items: ${e=>e.windowSize==="small"?"flex-end":"center"};
@@ -1,4 +1,4 @@
1
- import{u as S,X as z,h0 as C,j as e,aW as D,M as Y,ao as B,o as r,g,bT as F,l as L,C as R,v as T,t as A,q as b,dc as I,dd as E,d7 as N,de as O}from"./index-CChR0tlr.js";import{b as f,n as a}from"./vendor-CnQcJ2Lu.js";import{$ as P}from"./BoxItem-D3v5T6bP-Ccyj0z_e.js";import{o as V}from"./commonDimensions-Pkc8qIrn-C51PkztX.js";import{H as X}from"./DepositAccTransactionItem-CP_2AL3M-UriJgTZ8.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const n=Y.getLocalizedStrings(),q={listItemMargin:new R(b[3],b[8])};function H(t){const d=I(t,o=>o.transactionDate.format(n.dateFormat.visual.MMMDCommaYYYYformat)),m=E(d,o=>o.length>0);return N(m,o=>({date:o[0].transactionDate,transactions:O(o,h=>h.transactionDate,"desc")}))}const G=C(H),mt=({transactionListView:t,onBackClick:d})=>{const m=S(),o=z(),h=f.createRef(),p=f.useRef(null),l=G(t.transactions),j=t.depositAccountName,x=l.length===0,k=i=>x===!1?l[i].transactions.length*V.transactionItemHeightResponsive.value(o)+45:24,v=({index:i,style:c})=>{if(x===!1){const s=l[i];return e.jsx(w,{style:{...c},children:e.jsx($,{windowSize:o,children:e.jsxs(y,{children:[e.jsx(U,{children:L.dateNow().year()===s.date.year()?s.date.format(n.dateFormat.visual.MMMDFormat):s.date.format(n.dateFormat.visual.MMMDCommaYYYYformat)}),e.jsx(W,{children:s.transactions.map((M,u)=>e.jsx(X,{data:M,boxType:P(u,s.transactions.length)},u))})]})})})}else return e.jsx(w,{style:{...c},children:e.jsx(J,{children:e.jsx($,{windowSize:o,children:e.jsx(Q,{children:n.transactionList.noTransactionsFoundForPrefix})})})})};return e.jsxs(K,{children:[e.jsx(D,{title:`${j} ${n.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:m.colors.grey4,style:{zIndex:3},onBackClick:d,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),e.jsx(y,{children:e.jsx(B,{children:({height:i,width:c})=>e.jsx(Z,{ref:h,height:i,width:c,outerRef:p,itemKey:s=>s,itemCount:l.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},w=a.div``,$=a.div`
1
+ import{u as S,X as z,h0 as C,j as e,aW as D,M as Y,ao as B,o as r,g,bT as F,l as L,C as R,v as T,t as A,q as b,dc as I,dd as E,d7 as N,de as O}from"./index-DTlzo6Yx.js";import{b as f,n as a}from"./vendor-CnQcJ2Lu.js";import{$ as P}from"./BoxItem-UCX7eqiN-Bx4T9Ckg.js";import{o as V}from"./commonDimensions-OJhakpB_-Bbp60BrB.js";import{H as X}from"./DepositAccTransactionItem-BMXQpKVB-DaF1MUuy.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const n=Y.getLocalizedStrings(),q={listItemMargin:new R(b[3],b[8])};function H(t){const d=I(t,o=>o.transactionDate.format(n.dateFormat.visual.MMMDCommaYYYYformat)),h=E(d,o=>o.length>0);return N(h,o=>({date:o[0].transactionDate,transactions:O(o,m=>m.transactionDate,"desc")}))}const G=C(H),ht=({transactionListView:t,onBackClick:d})=>{const h=S(),o=z(),m=f.createRef(),p=f.useRef(null),l=G(t.transactions),j=t.depositAccountName,x=l.length===0,k=i=>x===!1?l[i].transactions.length*V.transactionItemHeightResponsive.value(o)+45:24,v=({index:i,style:c})=>{if(x===!1){const s=l[i];return e.jsx(w,{style:{...c},children:e.jsx($,{windowSize:o,children:e.jsxs(y,{children:[e.jsx(U,{children:L.dateNow().year()===s.date.year()?s.date.format(n.dateFormat.visual.MMMDFormat):s.date.format(n.dateFormat.visual.MMMDCommaYYYYformat)}),e.jsx(W,{children:s.transactions.map((M,u)=>e.jsx(X,{data:M,boxType:P(u,s.transactions.length)},u))})]})})})}else return e.jsx(w,{style:{...c},children:e.jsx(J,{children:e.jsx($,{windowSize:o,children:e.jsx(Q,{children:n.transactionList.noTransactionsFoundForPrefix})})})})};return e.jsxs(K,{children:[e.jsx(D,{title:`${j} ${n.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:h.colors.grey4,style:{zIndex:3},onBackClick:d,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),e.jsx(y,{children:e.jsx(B,{children:({height:i,width:c})=>e.jsx(Z,{ref:m,height:i,width:c,outerRef:p,itemKey:s=>s,itemCount:l.length,itemSize:k,initialScrollOffset:0,children:v})})})]})},w=a.div``,$=a.div`
2
2
  margin: ${t=>`${r.sp0} ${q.listItemMargin.valuePx(t.windowSize)}`};
3
3
  `,J=a.div`
4
4
  display: flex;
@@ -63,4 +63,4 @@ import{u as S,X as z,h0 as C,j as e,aW as D,M as Y,ao as B,o as r,g,bT as F,l as
63
63
  border-radius: 2px;
64
64
  }
65
65
  }
66
- `;export{mt as default};
66
+ `;export{ht as default};
@@ -1,4 +1,4 @@
1
- import{at as w,X as p,j as i,M as f,C as o,o as n,au as x,Q as s,h as d,q as a}from"./index-CChR0tlr.js";import{n as r,b as t}from"./vendor-CnQcJ2Lu.js";const C=e=>t.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M50.5391 6.01221C51.2636 6.01238 51.9584 6.29976 52.4707 6.81201L62.6016 16.9429C63.1141 17.4553 63.4022 18.1507 63.4023 18.8755V66.1353C63.4023 66.86 63.1149 67.5554 62.6025 68.0679C62.09 68.5804 61.3947 68.8686 60.6699 68.8687H14.2109C13.4862 68.8687 12.7908 68.5804 12.2783 68.0679C11.7658 67.5554 11.4775 66.8601 11.4775 66.1353V8.74463C11.4775 8.01982 11.7658 7.32453 12.2783 6.81201C12.7908 6.29962 13.4862 6.01221 14.2109 6.01221H50.5391Z",fill:"#97C3B9"}),t.createElement("path",{d:"M60.5227 61.2642V61.2318M60.5227 61.2318V15.9951C60.5226 15.2704 60.2346 14.5753 59.722 14.0629L49.5911 3.93209C49.0787 3.41953 48.3837 3.1315 47.659 3.13135H11.3306C10.6057 3.13135 9.91062 3.41928 9.3981 3.9318C8.88559 4.44431 8.59766 5.13944 8.59766 5.86425V63.2551C8.59766 63.9799 8.88559 64.6751 9.3981 65.1876C9.91062 65.7001 10.6057 65.988 11.3306 65.988H57.7898C58.5147 65.988 59.2098 65.7001 59.7223 65.1876C60.2348 64.6751 60.5227 64.0737 60.5227 63.2551C60.5227 62.4365 60.5227 61.2318 60.5227 61.2318Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M46.8682 3.13135V12.9335C46.8682 13.2545 46.9371 13.5724 47.0709 13.869C47.2048 14.1656 47.401 14.4351 47.6483 14.6621C47.8956 14.8891 48.1893 15.0692 48.5124 15.1921C48.8356 15.3149 49.1819 15.3781 49.5317 15.3781H60.2144",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("g",{clipPath:"url(#clip0_1350_23850)"},t.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),t.createElement("g",{clipPath:"url(#clip1_1350_23850)"},t.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),t.createElement("g",{clipPath:"url(#clip2_1350_23850)"},t.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),t.createElement("g",{clipPath:"url(#clip3_1350_23850)"},t.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_1350_23850"},t.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),t.createElement("clipPath",{id:"clip1_1350_23850"},t.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),t.createElement("clipPath",{id:"clip2_1350_23850"},t.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),t.createElement("clipPath",{id:"clip3_1350_23850"},t.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:g}=f.getLocalizedStrings(),{businessVerification:m}=g,c={iconSize:new o(a[6],a[10]),gap:new o(a[2],a[3])},h={title:new s("smallSemiBold","standardSemiBold"),description:new s("smallRegular","standardRegular")},P=()=>{const[e]=w("Secure"),l=p();return i.jsxs(E,{windowSize:l,children:[e!=null?i.jsx(u,{windowSize:l,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):i.jsx(S,{windowSize:l}),i.jsxs(y,{children:[i.jsx(z,{windowSize:l,children:m.securityMessageTitle}),i.jsx(B,{windowSize:l,children:m.securityMessageDescription})]})]})},E=r.div`
1
+ import{at as w,X as p,j as i,M as f,C as o,o as n,au as x,Q as s,h as d,q as a}from"./index-DTlzo6Yx.js";import{n as r,b as t}from"./vendor-CnQcJ2Lu.js";const C=e=>t.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M50.5391 6.01221C51.2636 6.01238 51.9584 6.29976 52.4707 6.81201L62.6016 16.9429C63.1141 17.4553 63.4022 18.1507 63.4023 18.8755V66.1353C63.4023 66.86 63.1149 67.5554 62.6025 68.0679C62.09 68.5804 61.3947 68.8686 60.6699 68.8687H14.2109C13.4862 68.8687 12.7908 68.5804 12.2783 68.0679C11.7658 67.5554 11.4775 66.8601 11.4775 66.1353V8.74463C11.4775 8.01982 11.7658 7.32453 12.2783 6.81201C12.7908 6.29962 13.4862 6.01221 14.2109 6.01221H50.5391Z",fill:"#97C3B9"}),t.createElement("path",{d:"M60.5227 61.2642V61.2318M60.5227 61.2318V15.9951C60.5226 15.2704 60.2346 14.5753 59.722 14.0629L49.5911 3.93209C49.0787 3.41953 48.3837 3.1315 47.659 3.13135H11.3306C10.6057 3.13135 9.91062 3.41928 9.3981 3.9318C8.88559 4.44431 8.59766 5.13944 8.59766 5.86425V63.2551C8.59766 63.9799 8.88559 64.6751 9.3981 65.1876C9.91062 65.7001 10.6057 65.988 11.3306 65.988H57.7898C58.5147 65.988 59.2098 65.7001 59.7223 65.1876C60.2348 64.6751 60.5227 64.0737 60.5227 63.2551C60.5227 62.4365 60.5227 61.2318 60.5227 61.2318Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M46.8682 3.13135V12.9335C46.8682 13.2545 46.9371 13.5724 47.0709 13.869C47.2048 14.1656 47.401 14.4351 47.6483 14.6621C47.8956 14.8891 48.1893 15.0692 48.5124 15.1921C48.8356 15.3149 49.1819 15.3781 49.5317 15.3781H60.2144",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("g",{clipPath:"url(#clip0_1350_23850)"},t.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),t.createElement("g",{clipPath:"url(#clip1_1350_23850)"},t.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),t.createElement("g",{clipPath:"url(#clip2_1350_23850)"},t.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),t.createElement("g",{clipPath:"url(#clip3_1350_23850)"},t.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),t.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),t.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_1350_23850"},t.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),t.createElement("clipPath",{id:"clip1_1350_23850"},t.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),t.createElement("clipPath",{id:"clip2_1350_23850"},t.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),t.createElement("clipPath",{id:"clip3_1350_23850"},t.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:g}=f.getLocalizedStrings(),{businessVerification:m}=g,c={iconSize:new o(a[6],a[10]),gap:new o(a[2],a[3])},h={title:new s("smallSemiBold","standardSemiBold"),description:new s("smallRegular","standardRegular")},P=()=>{const[e]=w("Secure"),l=p();return i.jsxs(E,{windowSize:l,children:[e!=null?i.jsx(u,{windowSize:l,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):i.jsx(S,{windowSize:l}),i.jsxs(y,{children:[i.jsx(z,{windowSize:l,children:m.securityMessageTitle}),i.jsx(B,{windowSize:l,children:m.securityMessageDescription})]})]})},E=r.div`
2
2
  display: flex;
3
3
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
4
4
  gap: ${e=>c.gap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{X as O,a as U,M as $,c3 as V,H as Q,l as j,j as n,bO as X,bQ as Y,bR as _,F as G,a7 as J,C as u,eR as K,o as Z,as as ee,q as a}from"./index-CChR0tlr.js";import{b as N,n as h}from"./vendor-CnQcJ2Lu.js";import{e as ne}from"./BankAccountSection-D1tQzNSO-gEkCF92l.js";import{M as te}from"./MagicLinkTitleSection-5B8jYoBn-vdest58S.js";import{W as ae,A as oe}from"./BankAccountWarningSection-Dj_S6brX-3ftY6npO.js";import{T as ie}from"./MailingDetailsSection-DwWeiSC0-pGk3-tya.js";const i={paddingTopBottom:new u(a[3],a[3]),paddingRight:new u(a[3],a[8]),paddingLeft:new u(a[3],a[6]),buttonWidth:new u(140,140),marginLeft:new u(a[4],a[6])},B="domesticWireDetailsPage",f="bankAccountSection",w="mailingAddressSection",T=e=>`${e}_form`,he=e=>{const{bankAccountCreationState:o,fetchBankNameByRoutingStatus:b,addressType:x,bankAccountToCreate:s,addressToEdit:r,mailingAddress:y,isDisabled:A,companyName:v,isMagicLink:g,currencySymbol:R,amount:D,onSaveHandler:P,onWireDetailsUpdated:z,onFetchBankName:E,onAddressClick:L,onBackClick:C}=e,l=O(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:N.useMemo(()=>se(s,r),[s,r])}),[M,p]=N.useState(!1),t=$.getLocalizedStrings().spendManagement.billPay.vendorCreation,W=$.getLocalizedStrings().common.footer,F=t.wireDetails.domestic,I={onOkClick:()=>{p(!1),c.reset(),C?.()},onCancelClick:()=>{p(!1)}},q=async(k,m)=>{const d=m[f].bankRoutingNumber;z(m),k===`${f}.bankRoutingNumber`&&d?.length===9&&K.test(d)===!0&&E?.(d)};N.useEffect(()=>{const k=c.watch((m,{name:d})=>{d!=null&&m!=null&&V(()=>q(d,m))});return()=>{k.unsubscribe()}});const H=c.handleSubmit(k=>{b.fetchState!=="In-Progress"&&P("wire")}),S=!Q(y!=null?j.getFormattedAddress(y):y,r!=null?j.getFormattedAddress(r):r)||re(s)||c.formState.isDirty;return n.jsxs(me,{children:[n.jsxs(le,{size:l,children:[M===!0?n.jsx(X,{titleComponent:n.jsx(_,{children:t.discardTitle}),descriptionComponent:n.jsx(Y,{children:t.discardDescription}),primaryButtonText:t.discard,secondaryButtonText:t.cancel,action:I}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:v??"",currencySymbol:R??"",amount:D??0}):F.addWireDetails,isMagicLink:g,isDirty:S,onBackClick:C,setShowConfirmationPopup:p}),o?.fetchState==="Error"&&o.error?.code===409?n.jsx(oe,{warningText:t.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:l,children:t.bankAccountCommon.accountDetailsTitle}),n.jsx(G,{...c,children:n.jsxs("form",{id:T(B),onSubmit:H,children:[n.jsx(ce,{size:l,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:b,sectionId:f,isDisabled:A})}),n.jsx(ie,{sectionId:w,isDisabled:A,addressType:x,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(J,{formId:T(B),primaryBtn:{label:g?t.bankAccountCommon.submitDetails:t.bankAccountCommon.saveAccount,isLoading:o.fetchState==="In-Progress",style:{width:i.buttonWidth.value(l)},isDisabled:A!=null},showCancel:!g,cancelBtn:{label:W.cancel,style:{width:i.buttonWidth.value(l)},shouldResetOnCancel:!1,onClick:()=>{S?p(!0):(c.reset(),C?.())}}})]})},se=(e,o)=>({[f]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[w]:{mailingAddress:o}}),re=e=>{if(e==null)return!1;const{bankAccountName:o,bankAccountNumber:b,bankName:x,bankRoutingNumber:s}=e;return!!o||!!b||!!x||!!s},ce=h.div`
1
+ import{X as H,a as U,M as $,c3 as V,D as Q,l as j,j as n,bO as X,bQ as Y,bR as _,F as G,a7 as J,C as u,eR as K,o as Z,as as ee,q as a}from"./index-DTlzo6Yx.js";import{b as N,n as h}from"./vendor-CnQcJ2Lu.js";import{e as ne}from"./BankAccountSection-BJPkV-qV-DnIozyCI.js";import{M as te}from"./MagicLinkTitleSection-CjV-_WEQ-BZeg3Eo_.js";import{W as ae,A as oe}from"./BankAccountWarningSection-D9R1VhzE-GAcwzATB.js";import{T as ie}from"./MailingDetailsSection-CW6ShqHJ-CO_dTd-f.js";const i={paddingTopBottom:new u(a[3],a[3]),paddingRight:new u(a[3],a[8]),paddingLeft:new u(a[3],a[6]),buttonWidth:new u(140,140),marginLeft:new u(a[4],a[6])},B="domesticWireDetailsPage",f="bankAccountSection",w="mailingAddressSection",T=e=>`${e}_form`,he=e=>{const{bankAccountCreationState:o,fetchBankNameByRoutingStatus:b,addressType:x,bankAccountToCreate:s,addressToEdit:r,mailingAddress:y,isDisabled:A,companyName:v,isMagicLink:g,currencySymbol:D,amount:R,onSaveHandler:P,onWireDetailsUpdated:z,onFetchBankName:E,onAddressClick:L,onBackClick:C}=e,l=H(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:N.useMemo(()=>se(s,r),[s,r])}),[M,p]=N.useState(!1),t=$.getLocalizedStrings().spendManagement.billPay.vendorCreation,W=$.getLocalizedStrings().common.footer,F=t.wireDetails.domestic,I={onOkClick:()=>{p(!1),c.reset(),C?.()},onCancelClick:()=>{p(!1)}},q=async(k,m)=>{const d=m[f].bankRoutingNumber;z(m),k===`${f}.bankRoutingNumber`&&d?.length===9&&K.test(d)===!0&&E?.(d)};N.useEffect(()=>{const k=c.watch((m,{name:d})=>{d!=null&&m!=null&&V(()=>q(d,m))});return()=>{k.unsubscribe()}});const O=c.handleSubmit(k=>{b.fetchState!=="In-Progress"&&P("wire")}),S=!Q(y!=null?j.getFormattedAddress(y):y,r!=null?j.getFormattedAddress(r):r)||re(s)||c.formState.isDirty;return n.jsxs(me,{children:[n.jsxs(le,{size:l,children:[M===!0?n.jsx(X,{titleComponent:n.jsx(_,{children:t.discardTitle}),descriptionComponent:n.jsx(Y,{children:t.discardDescription}),primaryButtonText:t.discard,secondaryButtonText:t.cancel,action:I}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:v??"",currencySymbol:D??"",amount:R??0}):F.addWireDetails,isMagicLink:g,isDirty:S,onBackClick:C,setShowConfirmationPopup:p}),o?.fetchState==="Error"&&o.error?.code===409?n.jsx(oe,{warningText:t.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:l,children:t.bankAccountCommon.accountDetailsTitle}),n.jsx(G,{...c,children:n.jsxs("form",{id:T(B),onSubmit:O,children:[n.jsx(ce,{size:l,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:b,sectionId:f,isDisabled:A})}),n.jsx(ie,{sectionId:w,isDisabled:A,addressType:x,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(J,{formId:T(B),primaryBtn:{label:g?t.bankAccountCommon.submitDetails:t.bankAccountCommon.saveAccount,isLoading:o.fetchState==="In-Progress",style:{width:i.buttonWidth.value(l)},isDisabled:A!=null},showCancel:!g,cancelBtn:{label:W.cancel,style:{width:i.buttonWidth.value(l)},shouldResetOnCancel:!1,onClick:()=>{S?p(!0):(c.reset(),C?.())}}})]})},se=(e,o)=>({[f]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[w]:{mailingAddress:o}}),re=e=>{if(e==null)return!1;const{bankAccountName:o,bankAccountNumber:b,bankName:x,bankRoutingNumber:s}=e;return!!o||!!b||!!x||!!s},ce=h.div`
2
2
  padding-left: ${e=>i.paddingLeft.valuePx(e.size)};
3
3
  padding-right: ${e=>i.paddingRight.valuePx(e.size)};
4
4
  padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};
@@ -1,4 +1,4 @@
1
- import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6 as tt,M as Y,bs as rt,bf as ze,q as z,as as Be,t as T,bm as we,r as G,m as ce,K as ee,u as Ne,bt as at,bu as me,bv as pe,e as Ee,bw as Qe,p as fe,bx as q,bd as ot,av as st,by as it,bz as nt,b5 as lt,bA as dt,Z as ct,bB as mt,bC as pt,b0 as ft}from"./index-CChR0tlr.js";import{b as u,n,k as Ve,f as he}from"./vendor-CnQcJ2Lu.js";import{m as ht}from"./analyticsHelper-B3QVnfWf-H0h_HtBm.js";import{c as ut,h as bt}from"./ReportTableViewSelector-B8ZW0kxU-EaZ_XIvS.js";import{t as gt}from"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./CollapsableReportTable-ZObwzBbY-AvFmJfte.js";import"./AccountRow-DVnBiB7_-CPXvnObH.js";const xt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function te(e,o,r,s){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/12);break}}return s!=null?Math.min(i,s):i}function J(e,o,r,s=1){if(s>1){const i=d.subtractPeriod(r,e,s-1,o),{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:l,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ye{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,s,i,l,p=s.endDate){if(s.endDate.isBefore(s.startDate))throw Error(`Invalid data available period ${JSON.stringify(s)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=s,this._numberOfPeriods=i,this._maxNumberOfPeriods=l,this._endDate=p}get value(){return J(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=d.addPeriod(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(s,i,null,"[]")&&r.isBetween(s,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let s=te(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(s>this.maxNumberOfPeriods){s=this._numberOfPeriods;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(d.addPeriod(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){s=1;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=s,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const ae=["1","2","3","4"],oe=d.dateNow().localeData().monthsShort(),P={pdf:12,excel:100,csv:100},N=(e,o,r)=>{const s=Y.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:l,endDate:p}=r;let f=l;for(;f.isSameOrBefore(p,"year");)i.push(f.format(s)),f=d.addPeriod(f,e,1,"year")}else{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");let{fyYear:f}=d.getFYQuarterAndYear(l,e);const{fyYear:b}=d.getFYQuarterAndYear(p,e);for(;f<=b;)i.push(`${f}`),f++}return i},yt=n.div`
1
+ import{j as t,bq as Je,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a6 as tt,M as Y,bs as rt,bf as ze,q as z,as as Be,t as T,bm as we,r as G,m as ce,K as ee,u as Ne,bt as at,bu as me,bv as pe,e as Ee,bw as Qe,p as fe,bx as q,bd as ot,av as st,by as it,bz as nt,b5 as lt,bA as dt,Z as ct,bB as mt,bC as pt,b0 as ft}from"./index-DTlzo6Yx.js";import{b as u,n,k as Ve,f as he}from"./vendor-CnQcJ2Lu.js";import{m as ht}from"./analyticsHelper-Cex5LOMD-Dxu2vm4u.js";import{c as ut,h as bt}from"./ReportTableViewSelector-DdZm4cOJ-noq_7l2G.js";import{t as gt}from"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./CollapsableReportTable-D5D0ufUn-Bzt15FNd.js";import"./AccountRow-DMeCdEPJ-0Td7rdjz.js";const xt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function te(e,o,r,s){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/12);break}}return s!=null?Math.min(i,s):i}function J(e,o,r,s=1){if(s>1){const i=d.subtractPeriod(r,e,s-1,o),{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:l,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ye{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,s,i,l,p=s.endDate){if(s.endDate.isBefore(s.startDate))throw Error(`Invalid data available period ${JSON.stringify(s)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=s,this._numberOfPeriods=i,this._maxNumberOfPeriods=l,this._endDate=p}get value(){return J(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=d.addPeriod(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(s,i,null,"[]")&&r.isBetween(s,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let s=te(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(s>this.maxNumberOfPeriods){s=this._numberOfPeriods;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(d.addPeriod(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){s=1;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=s,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const ae=["1","2","3","4"],oe=d.dateNow().localeData().monthsShort(),P={pdf:12,excel:100,csv:100},N=(e,o,r)=>{const s=Y.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:l,endDate:p}=r;let f=l;for(;f.isSameOrBefore(p,"year");)i.push(f.format(s)),f=d.addPeriod(f,e,1,"year")}else{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");let{fyYear:f}=d.getFYQuarterAndYear(l,e);const{fyYear:b}=d.getFYQuarterAndYear(p,e);for(;f<=b;)i.push(`${f}`),f++}return i},yt=n.div`
2
2
  padding: ${a.sp3};
3
3
  border: 1px solid ${e=>e.borderColor.default};
4
4
  border-radius: ${a.sp1};
@@ -1,4 +1,4 @@
1
- import{X as a,j as i,bt as P,o,M as h,C as s,bp as y,Q as c,h as g,a6 as b,q as t,_ as L,jc as k,jd as C,je as R}from"./index-CChR0tlr.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const l={drawerItemPadding:new s(t[3],t[3],t[4]),styledDivMarginLeft:new s(t[6],t[7]),verticalLineLeftMargin:new s(32,42),iconWidth:new s(t[5],t[6]),iconHeight:new s(t[5],t[6]),iconSize:new s(20,t[4])},v={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},x=h.getLocalizedStrings().rewardsPage.drawerPage,D=({rewardsPlan:e})=>{const r=[M(),_(),H({rewardsPlan:e})],d=a();return i.jsx(A,{children:r.map((f,j)=>i.jsxs(W,{children:[i.jsx(I,{children:f}),j<r.length-1?i.jsx(E,{windowSize:d}):null]},`step_${j}`))})},M=()=>{const e=a(),r=x.item1;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"link",children:i.jsx(X,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},_=()=>{const e=a(),r=x.item2;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"user",children:i.jsx(B,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},H=({rewardsPlan:e})=>{const r=a(),d=x.item3;return i.jsxs(p,{windowSize:r,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:r,icon:"money",children:i.jsx(N,{windowSize:r})}),i.jsx(S,{windowSize:r,children:d.title[e.planName]})]}),i.jsx($,{windowSize:r,children:i.jsx(u,{windowSize:r,children:d.content[e.planName].replace("__reward-amount__",L("0,0",e.referrerAmount))})})]})},p=n.div`
1
+ import{X as a,j as i,bt as P,o,M as h,C as s,bp as y,Q as c,h as g,a6 as b,q as t,_ as L,jc as k,jd as C,je as R}from"./index-DTlzo6Yx.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const l={drawerItemPadding:new s(t[3],t[3],t[4]),styledDivMarginLeft:new s(t[6],t[7]),verticalLineLeftMargin:new s(32,42),iconWidth:new s(t[5],t[6]),iconHeight:new s(t[5],t[6]),iconSize:new s(20,t[4])},v={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},x=h.getLocalizedStrings().rewardsPage.drawerPage,D=({rewardsPlan:e})=>{const r=[M(),_(),H({rewardsPlan:e})],d=a();return i.jsx(A,{children:r.map((f,j)=>i.jsxs(W,{children:[i.jsx(I,{children:f}),j<r.length-1?i.jsx(E,{windowSize:d}):null]},`step_${j}`))})},M=()=>{const e=a(),r=x.item1;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"link",children:i.jsx(X,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},_=()=>{const e=a(),r=x.item2;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"user",children:i.jsx(B,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},H=({rewardsPlan:e})=>{const r=a(),d=x.item3;return i.jsxs(p,{windowSize:r,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:r,icon:"money",children:i.jsx(N,{windowSize:r})}),i.jsx(S,{windowSize:r,children:d.title[e.planName]})]}),i.jsx($,{windowSize:r,children:i.jsx(u,{windowSize:r,children:d.content[e.planName].replace("__reward-amount__",L("0,0",e.referrerAmount))})})]})},p=n.div`
2
2
  border: 1px solid ${e=>e.theme.colors.grey3};
3
3
  border-radius: ${o.sp2};
4
4
  box-shadow: ${e=>`${o.sp0} 1px 2px ${o.sp0} ${e.theme.colors.dropShadowNormal}`};
@@ -1,4 +1,4 @@
1
- import{X as ae,M as de,fl as pe,u as ce,a as ue,a5 as me,j as t,bO as ge,bP as he,bQ as fe,bR as ye,gd as ve,Y as U,bV as xe,o as r,bt as be,F as $e,a7 as we,C as _,fo as Re,fp as Ce,fq as je,b_ as Oe,l as W,as as Pe,g as X,cn as ke,q as c}from"./index-CChR0tlr.js";import{b as $,n as o}from"./vendor-CnQcJ2Lu.js";import{x as Ie}from"./AllUserItems-zqRosy03-COR9NR1n.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledUserSingleSelectWithSubtitlesField-D-Huhkbq-BEOyGiLV.js";import"./RoleWithToolTip-TxLTa63q-DKveW2Ky.js";import"./LabeledZeniRolesDropDownField-WXH8xLJq-Dib2Yw_B.js";const j={containerPaddingTop:new _(c[3],c[3]),containerPaddingLeft:new _(c[3],c[6],c[6]),containerPaddingRight:new _(c[3],c[6],c[8]),buttonWidth:new _(85,85)},Y="editPeoplePage",w="userItems",a=de.getLocalizedStrings().peoplePage,He=({peopleDetails:e,managersList:u,classList:R,controllersList:O,mode:d,isZeniTenant:L,onCloseClick:P,onResetClick:k,onSaveClick:m,onDeleteUser:K,onPeopleLocalDataUpdated:Q,analytics:z,isReimbursementDisabled:D,isZeniAccountsDisabled:N,isChargeCardDisabled:Z,isTreasuryDisabled:q,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isLiteRoleDisabled:F})=>{const C=ae(),[G,T]=$.useState(!1),[H,ee]=$.useState(-1),te=d==="zeni_only"?a.invitePage.editZeniTitle:a.invitePage.editTitle,se=$.useRef(null),E=$.useMemo(()=>pe(D,N,Z,y,v,F,q),[D,N,Z,y,v,F,q]),A=ce(),l=ue({mode:"onBlur",reValidateMode:"onChange",defaultValues:J(e.people,u,R,d,E,y,v),values:J(e.people,u,R,d,E,y,v)}),re=l.handleSubmit(()=>{V()&&m()},()=>{V(),console.warn("Edit Profile form error")}),V=()=>{const g=l.getValues();let n=!0;return g.userItems.forEach((h,x)=>{const{role:S,department:i,nonZeniRole:f,manager:p}=h;if(d==="zeni_only"){const s=S.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(l.setError(`${w}.${x}.role`,{type:"required"}),n=!1)}else{const s=f?.userRole.selectedRole;(s!=null&&f!=null?f.productsByUserRole[s].map(b=>b.selectedOption).filter(b=>b!=null):[]).length<1&&(l.setError(`${w}.${x}.nonZeniRole.userRole.selectedRole`,{type:"required"}),n=!1),s!=="investor_or_banker"&&i?.selectedOption==null&&(y||v||(l.setError(`${w}.${x}.department`,{type:"required"}),n=!1)),p?.selectedUser==null&&s!=="investor_or_banker"&&(l.setError(`${w}.${x}.manager`,{type:"required"}),n=!1)}}),n},ne=async(g,n)=>{const h=[],{userItems:x}=n,S=e.person?.userRole?.userRoleId;x.forEach(i=>{let f={};if(S!=null){if(d==="zeni_only")f={email:i.email,role:i.role.selectedOptions};else{const p=i.nonZeniRole?.userRole.selectedRole;let s=[];p==="admin"||p==="investor_or_banker"?s.push(p):s=p!=null?(i.nonZeniRole?.productsByUserRole[p]??[]).map(B=>W.toUserRoleTypeStrict(B.selectedOption?.value)).filter(B=>B!=null):[],p==="employee"&&s.length===0&&s.push("reimbursements_user");const b=W.hasInvestorBankerLevelAccess(s);f={email:i.email,role:s,departmentId:b?void 0:i.department?.selectedOption?.value,managerId:b?void 0:i.manager?.selectedUser}}h.push(f)}}),Q(h)};$.useEffect(()=>{const g=l.watch((n,{name:h})=>{h!=null&&n!=null&&ne(h,n)});return()=>{g.unsubscribe()}});const oe=()=>{T(!0)},le={onOkClick:()=>{const g=e.person;z?.trackRemoveUserAccess(g.userRole.userRoles,g.userRole.userEmail),K?.(e.person)},onCancelClick:()=>{T(!1)}},M=me(e.person?.update),I=e.person?.update,ie=a.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return $.useEffect(()=>{I==null&&M==="removeUsers"&&(T(!1),k?.())},[I,M]),t.jsxs(t.Fragment,{children:[G===!0?t.jsx(ge,{titleComponent:t.jsx(ye,{children:a.deleteOverlay.title}),descriptionComponent:t.jsx(fe,{children:ie}),primaryButtonText:a.deleteOverlay.remove,secondaryButtonText:a.deleteOverlay.cancel,action:le,proceedButtonVariant:"danger",isLoading:I==="removeUsers",isDisabled:I==="removeUsers",style:{background:A.colors.overlayColor},children:e.person?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(ze,{}),t.jsx(Be,{children:t.jsx(Ue,{src:e.person?.user.photo?.toString()??he,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(ve,{title:te,backgroundColor:A.colors.grey4,style:{zIndex:4},onCloseClick:P,isTitleAlignLeft:C==="small"}),t.jsxs(_e,{"data-testid":U("edit-people-page-container"),windowSize:C,ref:se,children:[t.jsxs(Se,{children:[t.jsx(xe,{personBasic:e.person?.user,styles:{height:r.sp6,width:r.sp6}}),t.jsxs(Le,{children:[t.jsx(Te,{children:e.person?.user?.firstName?t.jsxs(Ee,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),t.jsx(Ne,{className:"delete-icon-wrapper","data-testid":U("edit-people-page-delete-icon-wrapper"),onClick:oe,children:t.jsx(be,{style:{padding:"2px 5px"},enterDelay:600,title:a.deleteOverlay.title,placement:"top",children:t.jsx(De,{windowsize:C})})})]})]}),t.jsx($e,{...l,children:t.jsx("form",{id:`${Y}_form`,onSubmit:re,children:t.jsx(Ie,{control:l.control,sectionId:w,deleteConfirmationIndex:H,updateDeleteConfirmationIndex:ee,mode:d,isZeniTenant:L,classList:R,managersList:u,controllersList:O,customerRoleOptions:E,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isEdit:!0,person:e.person,analytics:z})})})]}),t.jsx(we,{formId:`${Y}_form`,"data-testid":U("edit-people-page-footer"),primaryBtn:{label:a.invitePage.update,style:{width:j.buttonWidth.value(C)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:a.invitePage.cancel,style:{width:j.buttonWidth.value(C)},shouldResetOnCancel:!1,onClick:P},separatorStyle:{marginRight:r.sp4}})]})},J=(e,u,R,O,d,L,P)=>{const k=R.map(m=>({label:m.fullyQualifiedAccountingClassName??"",value:m.classId,hoverText:m.accountingClassNumber}));return{[w]:[{userIndex:0,email:e[0].email,role:O==="zeni_only"?{allOptions:Oe.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:O!=="zeni_only"?{userRole:{selectedRole:je(e[0]?.role),allRootRole:Ce(L,P)},productsByUserRole:Re(e[0]?.role,d)}:void 0,manager:{allUsers:u,selectedUser:e[0]?.managerId?e[0]?.managerId:"no_manager"},department:{allOptions:k,selectedOption:k.find(m=>m.value===e[0]?.departmentId)}}]}},et=(e,u)=>`${e}.${u}`,_e=o.div`
1
+ import{X as ae,M as de,fl as pe,u as ce,a as ue,a5 as me,j as t,bO as ge,bP as he,bQ as fe,bR as ye,gd as ve,Y as U,bV as xe,o as r,bt as be,F as $e,a7 as we,C as _,fo as Re,fp as Ce,fq as je,b_ as Oe,l as W,as as Pe,g as X,cn as ke,q as c}from"./index-DTlzo6Yx.js";import{b as $,n as o}from"./vendor-CnQcJ2Lu.js";import{x as Ie}from"./AllUserItems-BuX43aPo-H0s42hTQ.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledUserSingleSelectWithSubtitlesField-DiWgp4aE-C9gBIqih.js";import"./RoleWithToolTip-VlYG_GPv-D1yDUHv7.js";import"./LabeledZeniRolesDropDownField-Cgy0v5oD-DVkREz_1.js";const j={containerPaddingTop:new _(c[3],c[3]),containerPaddingLeft:new _(c[3],c[6],c[6]),containerPaddingRight:new _(c[3],c[6],c[8]),buttonWidth:new _(85,85)},Y="editPeoplePage",w="userItems",a=de.getLocalizedStrings().peoplePage,He=({peopleDetails:e,managersList:u,classList:R,controllersList:O,mode:d,isZeniTenant:L,onCloseClick:P,onResetClick:k,onSaveClick:m,onDeleteUser:K,onPeopleLocalDataUpdated:Q,analytics:z,isReimbursementDisabled:D,isZeniAccountsDisabled:N,isChargeCardDisabled:Z,isTreasuryDisabled:q,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isLiteRoleDisabled:F})=>{const C=ae(),[G,T]=$.useState(!1),[H,ee]=$.useState(-1),te=d==="zeni_only"?a.invitePage.editZeniTitle:a.invitePage.editTitle,se=$.useRef(null),E=$.useMemo(()=>pe(D,N,Z,y,v,F,q),[D,N,Z,y,v,F,q]),A=ce(),l=ue({mode:"onBlur",reValidateMode:"onChange",defaultValues:J(e.people,u,R,d,E,y,v),values:J(e.people,u,R,d,E,y,v)}),re=l.handleSubmit(()=>{V()&&m()},()=>{V(),console.warn("Edit Profile form error")}),V=()=>{const g=l.getValues();let n=!0;return g.userItems.forEach((h,x)=>{const{role:S,department:i,nonZeniRole:f,manager:p}=h;if(d==="zeni_only"){const s=S.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(l.setError(`${w}.${x}.role`,{type:"required"}),n=!1)}else{const s=f?.userRole.selectedRole;(s!=null&&f!=null?f.productsByUserRole[s].map(b=>b.selectedOption).filter(b=>b!=null):[]).length<1&&(l.setError(`${w}.${x}.nonZeniRole.userRole.selectedRole`,{type:"required"}),n=!1),s!=="investor_or_banker"&&i?.selectedOption==null&&(y||v||(l.setError(`${w}.${x}.department`,{type:"required"}),n=!1)),p?.selectedUser==null&&s!=="investor_or_banker"&&(l.setError(`${w}.${x}.manager`,{type:"required"}),n=!1)}}),n},ne=async(g,n)=>{const h=[],{userItems:x}=n,S=e.person?.userRole?.userRoleId;x.forEach(i=>{let f={};if(S!=null){if(d==="zeni_only")f={email:i.email,role:i.role.selectedOptions};else{const p=i.nonZeniRole?.userRole.selectedRole;let s=[];p==="admin"||p==="investor_or_banker"?s.push(p):s=p!=null?(i.nonZeniRole?.productsByUserRole[p]??[]).map(B=>W.toUserRoleTypeStrict(B.selectedOption?.value)).filter(B=>B!=null):[],p==="employee"&&s.length===0&&s.push("reimbursements_user");const b=W.hasInvestorBankerLevelAccess(s);f={email:i.email,role:s,departmentId:b?void 0:i.department?.selectedOption?.value,managerId:b?void 0:i.manager?.selectedUser}}h.push(f)}}),Q(h)};$.useEffect(()=>{const g=l.watch((n,{name:h})=>{h!=null&&n!=null&&ne(h,n)});return()=>{g.unsubscribe()}});const oe=()=>{T(!0)},le={onOkClick:()=>{const g=e.person;z?.trackRemoveUserAccess(g.userRole.userRoles,g.userRole.userEmail),K?.(e.person)},onCancelClick:()=>{T(!1)}},M=me(e.person?.update),I=e.person?.update,ie=a.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return $.useEffect(()=>{I==null&&M==="removeUsers"&&(T(!1),k?.())},[I,M]),t.jsxs(t.Fragment,{children:[G===!0?t.jsx(ge,{titleComponent:t.jsx(ye,{children:a.deleteOverlay.title}),descriptionComponent:t.jsx(fe,{children:ie}),primaryButtonText:a.deleteOverlay.remove,secondaryButtonText:a.deleteOverlay.cancel,action:le,proceedButtonVariant:"danger",isLoading:I==="removeUsers",isDisabled:I==="removeUsers",style:{background:A.colors.overlayColor},children:e.person?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(ze,{}),t.jsx(Be,{children:t.jsx(Ue,{src:e.person?.user.photo?.toString()??he,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(ve,{title:te,backgroundColor:A.colors.grey4,style:{zIndex:4},onCloseClick:P,isTitleAlignLeft:C==="small"}),t.jsxs(_e,{"data-testid":U("edit-people-page-container"),windowSize:C,ref:se,children:[t.jsxs(Se,{children:[t.jsx(xe,{personBasic:e.person?.user,styles:{height:r.sp6,width:r.sp6}}),t.jsxs(Le,{children:[t.jsx(Te,{children:e.person?.user?.firstName?t.jsxs(Ee,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),t.jsx(Ne,{className:"delete-icon-wrapper","data-testid":U("edit-people-page-delete-icon-wrapper"),onClick:oe,children:t.jsx(be,{style:{padding:"2px 5px"},enterDelay:600,title:a.deleteOverlay.title,placement:"top",children:t.jsx(De,{windowsize:C})})})]})]}),t.jsx($e,{...l,children:t.jsx("form",{id:`${Y}_form`,onSubmit:re,children:t.jsx(Ie,{control:l.control,sectionId:w,deleteConfirmationIndex:H,updateDeleteConfirmationIndex:ee,mode:d,isZeniTenant:L,classList:R,managersList:u,controllersList:O,customerRoleOptions:E,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isEdit:!0,person:e.person,analytics:z})})})]}),t.jsx(we,{formId:`${Y}_form`,"data-testid":U("edit-people-page-footer"),primaryBtn:{label:a.invitePage.update,style:{width:j.buttonWidth.value(C)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:a.invitePage.cancel,style:{width:j.buttonWidth.value(C)},shouldResetOnCancel:!1,onClick:P},separatorStyle:{marginRight:r.sp4}})]})},J=(e,u,R,O,d,L,P)=>{const k=R.map(m=>({label:m.fullyQualifiedAccountingClassName??"",value:m.classId,hoverText:m.accountingClassNumber}));return{[w]:[{userIndex:0,email:e[0].email,role:O==="zeni_only"?{allOptions:Oe.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:O!=="zeni_only"?{userRole:{selectedRole:je(e[0]?.role),allRootRole:Ce(L,P)},productsByUserRole:Re(e[0]?.role,d)}:void 0,manager:{allUsers:u,selectedUser:e[0]?.managerId?e[0]?.managerId:"no_manager"},department:{allOptions:k,selectedOption:k.find(m=>m.value===e[0]?.departmentId)}}]}},et=(e,u)=>`${e}.${u}`,_e=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{a5 as ai,u as bt,y as ft,a as en,A as Ci,l as ee,M as me,H as tn,X as Ie,fK as Xn,fM as Qn,fN as eo,j as t,g4 as to,F as nn,bO as li,bQ as on,bR as an,Y as q,o as i,C as c,aW as ki,aH as io,dr as no,fO as oo,fZ as rn,fU as Ii,a7 as ln,p as sn,fV as ao,eu as _e,g5 as At,eX as si,e as xt,g6 as ro,g as j,a6 as cn,Z as ci,q as a,aR as lo,fX as so,c4 as co,eB as di,g7 as zt,cP as fe,cR as xe,c6 as ui,cg as ct,eg as uo,cO as dn,r as Pt,c9 as un,c8 as Qe,co as st,v as mi,g8 as mo,eZ as po,c3 as ho,ab as Ti,aQ as go,av as mn,ee as yo,ef as bo,aq as Bt,fP as fo,eY as pn,Q as pi,h as hn,cq as gn,ah as Mt,eR as xo,as as wo,cu as So,cW as vo,t as hi,K as Di,bt as yn,am as ji,cn as $o,m as Co,cc as bn,_ as ko,g9 as fn,ga as ri,fF as Ri,gb as Ot,cm as Io,fJ as To,b5 as Do,cl as jo}from"./index-CChR0tlr.js";import{b as $,n,f as $t}from"./vendor-CnQcJ2Lu.js";import{_ as Ro}from"./liveblocks-sSQ9JElv.js";import xn from"./InvoiceUploadSection-Bes1nCJn-cQbyoy31.js";import{r as Po,f as Lt,d as yt,p as gi,u as Pi,h as $e}from"./types-DyvtCprH-BcZYcgaq.js";import{I as Oo}from"./LabeledCreatableSingleSelectField-CCXfjgxP-5vcIQ2Mo.js";import{S as Lo}from"./CurrencySelectField-vH1oB0K8-Dr64IPr4.js";import{J as Ao}from"./SetUpDefaultSection-B6pcOXMO-CRtYcMT6.js";import{e as zo}from"./BankAccountSection-D1tQzNSO-gEkCF92l.js";import{W as Bo,A as Mo}from"./BankAccountWarningSection-Dj_S6brX-3ftY6npO.js";import{o as Fo}from"./radio-default-CiSgisfh-ub7QGXr8.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-CQlsMYN3-USK3brEH.js";import"./uploadReceipts-Buvz7DfG-CWJGX5ku.js";const Je=(e,o)=>`${e}.${o}`,Oi={largeLabelWidth:new c(120,120,160),paddingBottom:new c(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Re}},dateFormat:Eo,common:No}=me.getLocalizedStrings(),Wo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:d,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:S,companyMileageConfigInfo:b,reimbursementId:l,classHierarchyList:k})=>{const f=Ie(),s=ft(),g=zt(),w=`dashboard_${s.currentTenant?.companyId}`,R=bt(),{getValues:T}=ct(),v=No.strings.empty,K=T(Je(p,"distanceInMiles")),L=Oi.largeLabelWidth.value(f),I={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},E=A=>r.filter(_=>_.classId===A)[0]?.accountingClassNumber,te=r.find(A=>A.classId===o.class),pe={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.transactionDate`}),roomId:w,companyId:s.currentTenant?.companyId??v,companyName:s.currentTenant?.companyName??v,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${$e("transactionDate",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:m,label:{label:Re.transactionDate,width:L},style:{paddingBottom:Oi.paddingBottom.valuePx(f),width:"auto"},dateField:{name:Je(p,"transactionDate"),placeholder:Re.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Eo.visual.defaultInput,autoComplete:"off",maxDate:ee.dateNow(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:w,companyId:s.currentTenant?.companyId??v,companyName:s.currentTenant?.companyName??v,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${$e("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:S?"disabled":void 0,style:{width:"auto"},label:{label:Re.distanceInMiles,width:L},formattedTextField:{type:"number",name:Je(p,"distanceInMiles"),placeholder:Re.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.amount`}),roomId:w,companyId:s.currentTenant?.companyId??v,companyName:s.currentTenant?.companyName??v,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${$e("amount",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:Re.amount,width:L},formattedTextField:{type:"number",name:Je(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:Qe(Re.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:K!=null&&b?.mileageUnitAmount!=null?`${d.currencySymbol}${b?.mileageUnitAmount} per mile x ${K}`:void 0})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.memo`}),roomId:w,companyId:s.currentTenant?.companyId??v,companyName:s.currentTenant?.companyName??v,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${$e("memo",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(ui,{isDisabled:m,label:{label:Re.memo,width:L},style:{width:"auto"},text:{type:"text",name:Je(p,"memo"),placeholder:Qe(Re.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:fn}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.class`}),roomId:w,companyId:s.currentTenant?.companyId??v,companyName:s.currentTenant?.companyName??v,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${$e("class",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ri,{isLoading:!1,label:{label:Re.department,width:L},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Je(p,"class"),placeholder:Qe(Re.department),valueToId:A=>E(A),defaultValue:{selectedOption:te?.classId,allOptions:_e(k,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:A=>!!A.selectedOption}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Je(p,"class"))})]})},Ct=n.div`
1
+ import{a5 as ai,u as bt,V as ft,a as en,z as Ci,l as ee,M as me,D as tn,X as Ie,fK as Xn,fM as Qn,fN as eo,j as t,g4 as to,F as nn,bO as li,bQ as on,bR as an,Y as q,o as i,C as c,aW as ki,aH as io,dr as no,fO as oo,fZ as rn,fU as Ii,a7 as ln,p as sn,fV as ao,eu as _e,g5 as At,eX as si,e as xt,g6 as ro,g as j,a6 as cn,Z as ci,q as a,aR as lo,fX as so,c4 as co,eB as di,g7 as zt,cP as fe,cR as xe,c6 as ui,cg as ct,eg as uo,cO as dn,r as Pt,c9 as un,c8 as Qe,co as st,v as mi,g8 as mo,eZ as po,c3 as ho,ab as Ti,aQ as go,av as mn,ee as yo,ef as bo,aq as Bt,fP as fo,eY as pn,Q as pi,h as hn,cq as gn,ah as Mt,eR as xo,as as wo,cu as So,cW as vo,t as hi,K as Di,bt as yn,am as ji,cn as $o,m as Co,cc as bn,_ as ko,g9 as fn,ga as ri,fF as Ri,gb as Ot,cm as Io,fJ as To,b5 as Do,cl as jo}from"./index-DTlzo6Yx.js";import{b as $,n,f as $t}from"./vendor-CnQcJ2Lu.js";import{_ as Ro}from"./liveblocks-sSQ9JElv.js";import xn from"./InvoiceUploadSection-CfAnZsV9-DBOTURQ6.js";import{r as Po,f as Lt,d as yt,p as gi,u as Pi,h as $e}from"./types-DyvtCprH-BcZYcgaq.js";import{I as Oo}from"./LabeledCreatableSingleSelectField-Bh-cfR9F-Cgfy3beB.js";import{S as Lo}from"./CurrencySelectField-DS3dOR3F-DalqX_lS.js";import{J as Ao}from"./SetUpDefaultSection-B361ojb9-CxOpM9AT.js";import{e as zo}from"./BankAccountSection-BJPkV-qV-DnIozyCI.js";import{W as Bo,A as Mo}from"./BankAccountWarningSection-D9R1VhzE-GAcwzATB.js";import{o as Fo}from"./radio-default-CiSgisfh-ub7QGXr8.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-sbbFtu9R-wkkd2tSH.js";import"./uploadReceipts-Buvz7DfG-JDslMarZ.js";const Je=(e,o)=>`${e}.${o}`,Oi={largeLabelWidth:new c(120,120,160),paddingBottom:new c(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Re}},dateFormat:Eo,common:No}=me.getLocalizedStrings(),Wo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:d,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:S,companyMileageConfigInfo:b,reimbursementId:l,classHierarchyList:k})=>{const f=Ie(),s=ft(),g=zt(),w=`dashboard_${s.currentTenant?.companyId}`,R=bt(),{getValues:T}=ct(),v=No.strings.empty,K=T(Je(p,"distanceInMiles")),L=Oi.largeLabelWidth.value(f),I={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},E=A=>r.filter(_=>_.classId===A)[0]?.accountingClassNumber,te=r.find(A=>A.classId===o.class),pe={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.transactionDate`}),roomId:w,companyId:s.currentTenant?.companyId??v,companyName:s.currentTenant?.companyName??v,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${$e("transactionDate",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:m,label:{label:Re.transactionDate,width:L},style:{paddingBottom:Oi.paddingBottom.valuePx(f),width:"auto"},dateField:{name:Je(p,"transactionDate"),placeholder:Re.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Eo.visual.defaultInput,autoComplete:"off",maxDate:ee.dateNow(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:w,companyId:s.currentTenant?.companyId??v,companyName:s.currentTenant?.companyName??v,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${$e("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:S?"disabled":void 0,style:{width:"auto"},label:{label:Re.distanceInMiles,width:L},formattedTextField:{type:"number",name:Je(p,"distanceInMiles"),placeholder:Re.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.amount`}),roomId:w,companyId:s.currentTenant?.companyId??v,companyName:s.currentTenant?.companyName??v,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${$e("amount",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:Re.amount,width:L},formattedTextField:{type:"number",name:Je(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:Qe(Re.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:K!=null&&b?.mileageUnitAmount!=null?`${d.currencySymbol}${b?.mileageUnitAmount} per mile x ${K}`:void 0})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.memo`}),roomId:w,companyId:s.currentTenant?.companyId??v,companyName:s.currentTenant?.companyName??v,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${$e("memo",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(ui,{isDisabled:m,label:{label:Re.memo,width:L},style:{width:"auto"},text:{type:"text",name:Je(p,"memo"),placeholder:Qe(Re.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:fn}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.class`}),roomId:w,companyId:s.currentTenant?.companyId??v,companyName:s.currentTenant?.companyName??v,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${$e("class",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ri,{isLoading:!1,label:{label:Re.department,width:L},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Je(p,"class"),placeholder:Qe(Re.department),valueToId:A=>E(A),defaultValue:{selectedOption:te?.classId,allOptions:_e(k,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:A=>!!A.selectedOption}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Je(p,"class"))})]})},Ct=n.div`
2
2
  display: flex;
3
3
  flex: 1;
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{u as T,M as y,ab as C,j as o,z as v,o as t,D as m}from"./index-CChR0tlr.js";import{n}from"./vendor-CnQcJ2Lu.js";import{R as k}from"./TrendWithTransactions-BSQ2TJvu-DKoznMBK.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TrendChart-SOAxSpv2-BEwC2fOj.js";import"./chartTypes-DYAHlgKd-CIoUHagw.js";import"./toCOABalancesWithID-B8NxsLlK-BQM05QqO.js";import"./toChartData-CxZEcdj_-DkdJt_zk.js";import"./NoDataChart-CVM-QPHf-D5psvAcN.js";import"./InsightsSection-CCzgI0uK-VJ3ZyfK9.js";import"./NavigationDots-Toh5TKEv-OSyhnKRF.js";import"./TransactionList-CVrK_-YB-CyqUr8En.js";import"./BoxItem-D3v5T6bP-Ccyj0z_e.js";import"./commonDimensions-Pkc8qIrn-C51PkztX.js";const $=n.div`
1
+ import{u as y,M as T,ab as C,j as o,y as v,o as t,B as m}from"./index-DTlzo6Yx.js";import{n}from"./vendor-CnQcJ2Lu.js";import{R as k}from"./TrendWithTransactions-SmcM2UIp-SwKmDId5.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TrendChart-CtjfgQ9g-DU-bY5qU.js";import"./chartTypes-Df8u7la0-CtDbCz1y.js";import"./toCOABalancesWithID-RJhTPgAt-Cci2ybt-.js";import"./toChartData-K68FB3Iy-nDeLE4ni.js";import"./NoDataChart-DGbfWo33-CtNbg73S.js";import"./InsightsSection-DYyHpcUE-N_KvwWiO.js";import"./NavigationDots-6Q5ZVqKl-C4jKPBGn.js";import"./TransactionList-CvGyadHZ-CKr6j1Ej.js";import"./BoxItem-UCX7eqiN-Bx4T9Ckg.js";import"./commonDimensions-OJhakpB_-Bbp60BrB.js";const $=n.div`
2
2
  display: flex;
3
3
  margin: ${t.sp0} ${t.sp0} ${t.sp0} ${t.sp0};
4
4
  flex-direction: column;
@@ -15,4 +15,4 @@ import{u as T,M as y,ab as C,j as o,z as v,o as t,D as m}from"./index-CChR0tlr.j
15
15
  top: ${t.sp0};
16
16
  `,M=n.div`
17
17
  flex: 1 1 auto;
18
- `;function J({firstMonthOfFY:i,selectedEntity:e,trendWithTransactionsReport:a,autoCompleteData:d,autoCompleteActions:l,analytics:s,onTransactionItemClick:c,onTrendSelectedPeriodChange:h}){const u=T(),{dateFormat:{analytics:f}}=y.getLocalizedStrings(),x=new C(u.colors.graphColor12),g=(p,r)=>{p==="Chart"&&r!=null&&s?.trackSpendIncomeTrend(e.type==="vendor"?m.Event.spendTrend:m.Event.incomeTrend,"Search",e.type,e.name,r?.addTimePeriod.startDate.format(f.MMMYYFormat)),p==="TransactionListLoadMore"&&s?.trackTransactionList(void 0,void 0,"Search",void 0,void 0,!0),h?.(r)};return o.jsxs($,{children:[o.jsx(j,{children:o.jsx(v,{viewType:"entity_search",searchAutoComplete:{autoCompleteData:d,autoCompleteActions:l},source:"EntityDetailPage"})}),e!=null&&a!=null&&o.jsx(M,{children:o.jsx(k,{firstMonthOfFY:i,trendWithTransactionsReport:a,isDetailPage:!1,graphColor:x,onTransactionItemClick:c,onTimePeriodChange:g})})]})}export{J as default};
18
+ `;function J({firstMonthOfFY:i,selectedEntity:e,trendWithTransactionsReport:a,autoCompleteData:d,autoCompleteActions:l,analytics:s,onTransactionItemClick:c,onTrendSelectedPeriodChange:h}){const u=y(),{dateFormat:{analytics:f}}=T.getLocalizedStrings(),x=new C(u.colors.graphColor12),g=(p,r)=>{p==="Chart"&&r!=null&&s?.trackSpendIncomeTrend(e.type==="vendor"?m.Event.spendTrend:m.Event.incomeTrend,"Search",e.type,e.name,r?.addTimePeriod.startDate.format(f.MMMYYFormat)),p==="TransactionListLoadMore"&&s?.trackTransactionList(void 0,void 0,"Search",void 0,void 0,!0),h?.(r)};return o.jsxs($,{children:[o.jsx(j,{children:o.jsx(v,{viewType:"entity_search",searchAutoComplete:{autoCompleteData:d,autoCompleteActions:l},source:"EntityDetailPage"})}),e!=null&&a!=null&&o.jsx(M,{children:o.jsx(k,{firstMonthOfFY:i,trendWithTransactionsReport:a,isDetailPage:!1,graphColor:x,onTransactionItemClick:c,onTimePeriodChange:g})})]})}export{J as default};
@@ -1,4 +1,4 @@
1
- import{X as z,M as L,j as i,dn as H,C as d,cs as _,o as s,T as S,_ as b,ao as R,bT as E,q as r,c0 as B,m as G,t as k,as as U,v as N,bY as F,g as D,b$ as q}from"./index-CChR0tlr.js";import{b as v,n as t}from"./vendor-CnQcJ2Lu.js";import{l as I}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const w=L.getLocalizedStrings().reports.aging.agingDetail.header,m=[{key:"date",value:w.date,sortOrder:"ascending",width:new d(212,212)},{key:"invoiceNumber",value:w.invoiceNumber,sortOrder:"ascending",width:new d(188,188)},{key:"dueDate",value:w.dueDate,sortOrder:"ascending",width:new d(188,188)},{key:"daysPastDue",value:w.daysPastDue,sortOrder:"ascending",width:new d(188,188)},{key:"amount",value:w.amount,sortOrder:"ascending",width:new d(188,188)},{key:"balance",value:w.balance,sortOrder:"ascending",width:new d(120,120)}],M={headerHeight:new d(45,58)},J=t.div`
1
+ import{X as z,M as L,j as i,dn as H,C as d,cs as _,o as s,T as S,_ as b,ao as R,bT as E,q as r,c0 as B,m as G,t as k,as as U,v as N,bY as F,g as D,b$ as q}from"./index-DTlzo6Yx.js";import{b as v,n as t}from"./vendor-CnQcJ2Lu.js";import{l as I}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const w=L.getLocalizedStrings().reports.aging.agingDetail.header,m=[{key:"date",value:w.date,sortOrder:"ascending",width:new d(212,212)},{key:"invoiceNumber",value:w.invoiceNumber,sortOrder:"ascending",width:new d(188,188)},{key:"dueDate",value:w.dueDate,sortOrder:"ascending",width:new d(188,188)},{key:"daysPastDue",value:w.daysPastDue,sortOrder:"ascending",width:new d(188,188)},{key:"amount",value:w.amount,sortOrder:"ascending",width:new d(188,188)},{key:"balance",value:w.balance,sortOrder:"ascending",width:new d(120,120)}],M={headerHeight:new d(45,58)},J=t.div`
2
2
  top: ${s.sp0};
3
3
  left: ${s.sp0};
4
4
  min-height: ${e=>M.headerHeight.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{u as Y,X as W,aV as I,j as r,Y as $,fA as O,bf as H,g as a,bt as J,M as K,o as s,aW as Z,jo as V,r as c,hc as q,hb as G,K as Q,_ as U,l as X,jp as D,c as ee,aQ as re,fj as oe,T as se,bI as te,c0 as ie,v as g,t as ae,ew as le,s as ne,eY as ce,gL as de,Z as he,aq as pe,as as _,ak as me}from"./index-CChR0tlr.js";import{n as o,j as m,k as ge}from"./vendor-CnQcJ2Lu.js";import{o as xe}from"./transaction-placeholder-CpOwZAMG-CJJQqrcA.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ue={transaction_categorization:xe,missing_receipts:oe,flux_analysis:re,je_schedules:D,month_end_insights:ee,reconciliation:D},fe=e=>{const x={Weekly:[],Monthly:[]};return e.forEach(u=>{x[u.frequency].push(u)}),x},{expenseAutomation:d,common:i,dateFormat:$e}=K.getLocalizedStrings();function xr({monthEndCloseChecksView:e,isRealtimeInsightsFeatureEnabled:x,onMonthEndCheckClick:u,onBackClick:M,handleReviewButtonClick:P,onPeriodChange:T,onReload:k}){const b=Y(),N=W();if(I({componentName:"expense_automation.overview"}),e.monthEndCloseChecks==null||e.fetchState==="Not-Started"||e.fetchState==="In-Progress")return r.jsx(L,{"data-testid":$("expense-automation-overview-page-activity-indicator"),children:r.jsx(O,{fetchState:"In-Progress"})});if(e.monthEndCloseChecks==null||e.fetchState==="Error")return r.jsx(L,{children:r.jsx(Ue,{"data-testid":$("expense-automation-overview-page-reload-page"),onClick:k,children:r.jsx(H,{})})});const{monthEndCloseChecks:{auditSummary:l,monthEndCloseCheckList:R,insights:h,reportEmailSentDate:S},refreshStatus:z}=e,A=fe(R);let f,p;l.auditScorePercentage<=50?(f=a.important,p=a.importantLight):l.auditScorePercentage<=75?(f=a.alert,p=a.alertLight):(f=a.success,p=a.successLight);const B=r.jsx(Ze,{"data-testid":$("expense-automation-overview-page-refresh-icon"),onClick:k,children:r.jsx(J,{style:{marginTop:s.sp1},placement:"bottom",title:i.texts.refresh,enterDelay:600,children:r.jsx(er,{$spinning:z.fetchState==="In-Progress"})})});return r.jsxs(ye,{children:[r.jsx(Z,{title:r.jsx(V,{labelSuffix:i.texts.close,pickerLabelStyle:{...c.largeSemiBold.cssObject},onPeriodChange:T,monthEndCloseChecksView:e}),showBackButton:!0,onBackClick:M,source:"ExpenseAutomationOverviewPage",rightSideComponent:B}),r.jsxs(Le,{children:[r.jsxs(je,{children:[r.jsx(ve,{windowSize:N,children:r.jsx(be,{children:r.jsxs(Se,{children:[r.jsx(Ke,{children:r.jsx(q,{background:!0,value:Math.floor(l.auditScorePercentage),text:`${Math.floor(l.auditScorePercentage)}${i.strings.percentage}`,strokeWidth:10,styles:{...G({strokeLinecap:"butt",pathColor:f,textColor:b.colors.primary,trailColor:b.colors.grey2,backgroundColor:p}),root:{width:"96px",height:"96px",backgroundColor:p,borderRadius:"50%"},text:{fontSize:c.h6Medium.fontSize,fontFamily:c.h6Medium.fontFamily,lineHeight:c.h6Medium.lineHeight,fontWeight:c.h6Medium.fontWeight,letterSpacing:c.h6Medium.letterSpacing,fill:a.primaryLight}}})}),r.jsxs(tr,{children:[r.jsxs(De,{children:[r.jsxs(C,{children:[r.jsxs(Ve,{children:[r.jsx(Ce,{children:d.overview.auditScoreTitle}),l.auditReportLastGeneratedDate!=null?r.jsx(qe,{children:l.auditReportLastGeneratedDate.utc(!0).fromNow()}):null]}),r.jsx(ke,{children:d.overview.auditScoreDescription})]}),r.jsx(Q,{style:{alignSelf:"flex-start"},variant:"primary",label:i.texts.review,onClick:P})]}),r.jsxs(Ee,{children:[r.jsxs(We,{children:[r.jsx(He,{}),r.jsx(Ie,{children:i.texts.aiAgents}),r.jsx(Oe,{children:i.texts.saved})]}),r.jsx(Je,{children:U("0,0",{amount:h.savedAmount,currencyCode:i.currency.countryCode,currencySymbol:i.currency.currencySymbol})})]})]})]})})}),r.jsxs(we,{children:[r.jsxs(y,{isLastTab:!1,children:[r.jsx(j,{children:h.vendorsWithFluctuations}),r.jsx(v,{children:d.overview.statistics.vendorsWithFluctuations})]}),r.jsxs(y,{isLastTab:!1,children:[r.jsx(j,{children:h.transactionsAutoCategorized}),r.jsx(v,{children:d.overview.statistics.transactionsAutoCategorized})]}),r.jsxs(y,{isLastTab:!1,children:[r.jsxs(j,{children:[h.efficiencyPercentage,i.strings.percentage]}),r.jsx(v,{children:d.overview.statistics.humanEfficiency})]}),r.jsxs(y,{isLastTab:!0,children:[r.jsxs(j,{children:[h.efficiency,"x"]}),r.jsx(v,{children:d.overview.statistics.fasterReviews})]})]})]}),r.jsx(_e,{children:X.ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY.map(w=>r.jsxs(Me,{children:[r.jsx(E,{cardDisabled:!1,children:w}),r.jsx(Pe,{children:A[w].map(t=>{const n=t.id==="month_end_insights"?!x:t.isDisabled,F=n===!0||t.id==="month_end_insights"&&e.monthEndCloseChecks?.reportEmailSentDate!=null;return r.jsxs(Te,{"data-testid":$("expense-automation-overview-page-month-end-close-check-card",t.id),cardDisabled:n,onClick:()=>{F===!1&&u(t.id)},children:[r.jsxs(Ye,{children:[r.jsx(Fe,{cardDisabled:n,isDarkMode:b.mode==="dark",children:r.jsx(Be,{as:ue[t.id]??null})}),r.jsxs(C,{children:[r.jsx(E,{cardDisabled:n,children:t.title}),r.jsx(Ne,{className:"card-description",cardDisabled:n,children:t.description})]})]}),r.jsxs(Re,{children:[r.jsx(se,{controller:t.id!=="month_end_insights",children:r.jsxs(ze,{children:[r.jsxs(Ge,{progress:t.progress,children:[Math.floor(t.progress),i.strings.percentage]}),r.jsx(Qe,{className:t.progress<100?"progress-complete-text":i.strings.empty,progress:t.progress,children:i.texts.complete})]})}),t.id==="month_end_insights"&&S!=null?r.jsxs(sr,{children:[r.jsx(rr,{children:i.texts.closed}),r.jsx(or,{children:S.format($e.visual.MMMDCommaYYYYformat)})]}):null,r.jsx(C,{children:r.jsx(Ae,{className:"card-right-chevron",disabled:n})})]})]},t.id)})})]},w))})]})]})}const ye=o.div`
1
+ import{u as Y,X as W,aV as I,j as r,Y as $,fA as O,bf as H,g as a,bt as J,M as K,o as s,aW as Z,jo as V,r as c,hc as q,hb as G,K as Q,_ as U,l as X,jp as D,c as ee,aQ as re,fj as oe,T as se,bI as te,c0 as ie,v as g,t as ae,ew as le,s as ne,eY as ce,gL as de,Z as he,aq as pe,as as _,ak as me}from"./index-DTlzo6Yx.js";import{n as o,j as m,k as ge}from"./vendor-CnQcJ2Lu.js";import{o as xe}from"./transaction-placeholder-CpOwZAMG-CJJQqrcA.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ue={transaction_categorization:xe,missing_receipts:oe,flux_analysis:re,je_schedules:D,month_end_insights:ee,reconciliation:D},fe=e=>{const x={Weekly:[],Monthly:[]};return e.forEach(u=>{x[u.frequency].push(u)}),x},{expenseAutomation:d,common:i,dateFormat:$e}=K.getLocalizedStrings();function xr({monthEndCloseChecksView:e,isRealtimeInsightsFeatureEnabled:x,onMonthEndCheckClick:u,onBackClick:M,handleReviewButtonClick:P,onPeriodChange:T,onReload:k}){const b=Y(),N=W();if(I({componentName:"expense_automation.overview"}),e.monthEndCloseChecks==null||e.fetchState==="Not-Started"||e.fetchState==="In-Progress")return r.jsx(L,{"data-testid":$("expense-automation-overview-page-activity-indicator"),children:r.jsx(O,{fetchState:"In-Progress"})});if(e.monthEndCloseChecks==null||e.fetchState==="Error")return r.jsx(L,{children:r.jsx(Ue,{"data-testid":$("expense-automation-overview-page-reload-page"),onClick:k,children:r.jsx(H,{})})});const{monthEndCloseChecks:{auditSummary:l,monthEndCloseCheckList:R,insights:h,reportEmailSentDate:S},refreshStatus:z}=e,A=fe(R);let f,p;l.auditScorePercentage<=50?(f=a.important,p=a.importantLight):l.auditScorePercentage<=75?(f=a.alert,p=a.alertLight):(f=a.success,p=a.successLight);const B=r.jsx(Ze,{"data-testid":$("expense-automation-overview-page-refresh-icon"),onClick:k,children:r.jsx(J,{style:{marginTop:s.sp1},placement:"bottom",title:i.texts.refresh,enterDelay:600,children:r.jsx(er,{$spinning:z.fetchState==="In-Progress"})})});return r.jsxs(ye,{children:[r.jsx(Z,{title:r.jsx(V,{labelSuffix:i.texts.close,pickerLabelStyle:{...c.largeSemiBold.cssObject},onPeriodChange:T,monthEndCloseChecksView:e}),showBackButton:!0,onBackClick:M,source:"ExpenseAutomationOverviewPage",rightSideComponent:B}),r.jsxs(Le,{children:[r.jsxs(je,{children:[r.jsx(ve,{windowSize:N,children:r.jsx(be,{children:r.jsxs(Se,{children:[r.jsx(Ke,{children:r.jsx(q,{background:!0,value:Math.floor(l.auditScorePercentage),text:`${Math.floor(l.auditScorePercentage)}${i.strings.percentage}`,strokeWidth:10,styles:{...G({strokeLinecap:"butt",pathColor:f,textColor:b.colors.primary,trailColor:b.colors.grey2,backgroundColor:p}),root:{width:"96px",height:"96px",backgroundColor:p,borderRadius:"50%"},text:{fontSize:c.h6Medium.fontSize,fontFamily:c.h6Medium.fontFamily,lineHeight:c.h6Medium.lineHeight,fontWeight:c.h6Medium.fontWeight,letterSpacing:c.h6Medium.letterSpacing,fill:a.primaryLight}}})}),r.jsxs(tr,{children:[r.jsxs(De,{children:[r.jsxs(C,{children:[r.jsxs(Ve,{children:[r.jsx(Ce,{children:d.overview.auditScoreTitle}),l.auditReportLastGeneratedDate!=null?r.jsx(qe,{children:l.auditReportLastGeneratedDate.utc(!0).fromNow()}):null]}),r.jsx(ke,{children:d.overview.auditScoreDescription})]}),r.jsx(Q,{style:{alignSelf:"flex-start"},variant:"primary",label:i.texts.review,onClick:P})]}),r.jsxs(Ee,{children:[r.jsxs(We,{children:[r.jsx(He,{}),r.jsx(Ie,{children:i.texts.aiAgents}),r.jsx(Oe,{children:i.texts.saved})]}),r.jsx(Je,{children:U("0,0",{amount:h.savedAmount,currencyCode:i.currency.countryCode,currencySymbol:i.currency.currencySymbol})})]})]})]})})}),r.jsxs(we,{children:[r.jsxs(y,{isLastTab:!1,children:[r.jsx(j,{children:h.vendorsWithFluctuations}),r.jsx(v,{children:d.overview.statistics.vendorsWithFluctuations})]}),r.jsxs(y,{isLastTab:!1,children:[r.jsx(j,{children:h.transactionsAutoCategorized}),r.jsx(v,{children:d.overview.statistics.transactionsAutoCategorized})]}),r.jsxs(y,{isLastTab:!1,children:[r.jsxs(j,{children:[h.efficiencyPercentage,i.strings.percentage]}),r.jsx(v,{children:d.overview.statistics.humanEfficiency})]}),r.jsxs(y,{isLastTab:!0,children:[r.jsxs(j,{children:[h.efficiency,"x"]}),r.jsx(v,{children:d.overview.statistics.fasterReviews})]})]})]}),r.jsx(_e,{children:X.ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY.map(w=>r.jsxs(Me,{children:[r.jsx(E,{cardDisabled:!1,children:w}),r.jsx(Pe,{children:A[w].map(t=>{const n=t.id==="month_end_insights"?!x:t.isDisabled,F=n===!0||t.id==="month_end_insights"&&e.monthEndCloseChecks?.reportEmailSentDate!=null;return r.jsxs(Te,{"data-testid":$("expense-automation-overview-page-month-end-close-check-card",t.id),cardDisabled:n,onClick:()=>{F===!1&&u(t.id)},children:[r.jsxs(Ye,{children:[r.jsx(Fe,{cardDisabled:n,isDarkMode:b.mode==="dark",children:r.jsx(Be,{as:ue[t.id]??null})}),r.jsxs(C,{children:[r.jsx(E,{cardDisabled:n,children:t.title}),r.jsx(Ne,{className:"card-description",cardDisabled:n,children:t.description})]})]}),r.jsxs(Re,{children:[r.jsx(se,{controller:t.id!=="month_end_insights",children:r.jsxs(ze,{children:[r.jsxs(Ge,{progress:t.progress,children:[Math.floor(t.progress),i.strings.percentage]}),r.jsx(Qe,{className:t.progress<100?"progress-complete-text":i.strings.empty,progress:t.progress,children:i.texts.complete})]})}),t.id==="month_end_insights"&&S!=null?r.jsxs(sr,{children:[r.jsx(rr,{children:i.texts.closed}),r.jsx(or,{children:S.format($e.visual.MMMDCommaYYYYformat)})]}):null,r.jsx(C,{children:r.jsx(Ae,{className:"card-right-chevron",disabled:n})})]})]},t.id)})})]},w))})]})]})}const ye=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};