@zeniai/web-cockpit-ui 1.14.89-qa → 1.14.90-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 (292) hide show
  1. package/dist/assets/{ACHDetailsPage-BBq7KpbY-D459fVD1.js → ACHDetailsPage-BUP-_2-W-BxsdzxJg.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-Djq6mgKa-CoW3VwJ4.js → AIPerformancePage-DHF_70JI-BB0m0Wmb.js} +22 -22
  3. package/dist/assets/AccountInfoPage-pmUIckJ9-ClFTcWKH.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-DO6aVqBW-NM1136mH.js → AccountInfoPageContent-DLSL1NNm-ysW8pq2z.js} +9 -9
  5. package/dist/assets/AccountLockedInfoModal-Bq3y0K0F-DT_bUQ3U.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-BuiGpDgm.js → AccountReconDetailsDrawerPage-CGcZO_qz-Cy1Ijv5f.js} +16 -16
  7. package/dist/assets/{AccountRow-Ck53DDbT-DWMrYTR2.js → AccountRow-D2Ypckgj-DU9kFXuE.js} +26 -26
  8. package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-t6F8QAnS.js → AccountsPromoCardStack-BVVDCW1H-DJjdfLGW.js} +23 -23
  9. package/dist/assets/AddAddressForCardDrawer-C8aENofu-DA1NQK9C.js +6 -0
  10. package/dist/assets/{AddToWalletPage-DA6AmuaY-CmFVVEiw.js → AddToWalletPage-CmT5jSb5-D2YVbVt5.js} +11 -11
  11. package/dist/assets/{AgingReportsPage-B_Hhl_Is-B3LI-4Jv.js → AgingReportsPage-BeUGvj3b-CHP-b-K4.js} +6 -6
  12. package/dist/assets/{AllUserItems-BV22Ibpn-Cn4Po_RI.js → AllUserItems-CmlMyz-f-C0puagwR.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-DqV1vOVH-C9HZaqeP.js → ApAgingDetailPage-Dz1_N0Yw-iyEKxxlG.js} +3 -3
  14. package/dist/assets/{AppBasePage-LrgCcvIv-D0C3kYnC.js → AppBasePage-DX4EGGcT-DxyBlsaI.js} +11 -11
  15. package/dist/assets/{AppDrawerContent-aZG5Qc_X-BTCDRaet.js → AppDrawerContent-Brg3Rw4K-DWiehP3E.js} +5 -5
  16. package/dist/assets/ApprovalRulesSettingsPage-Bn7KrUl2-CvKRvgo_.js +47 -0
  17. package/dist/assets/{ArAgingChart-Am7LTkqG-ChRjJ3UX.js → ArAgingChart-DQZtCsHS-CSTDLkfC.js} +4 -4
  18. package/dist/assets/ArAgingDetailPage-BtF6K5dA-VZeY_ZUJ.js +46 -0
  19. package/dist/assets/{AttachmentView-Bujbmx1d-DTmJzSNU.js → AttachmentView-DgPySmB8-B0CUUwUu.js} +8 -8
  20. package/dist/assets/{BankAccountSection-C5rYUW3V-DGt3bEf8.js → BankAccountSection-BVZK5jmO-oboSifeA.js} +7 -7
  21. package/dist/assets/{BankAccountWarningSection-DakysSbk-6wJeRIrk.js → BankAccountWarningSection-DHdeDi15-DsdgRhNS.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-BiPdq8-x.js → BankConnectionsSettingsPage-BN3lAARB-UlnRR8CQ.js} +31 -31
  23. package/dist/assets/{BillDetailPage-DYc_nZRU-Cv-3eSux.js → BillDetailPage-BuUm6vdf-DEUKUhee.js} +13 -13
  24. package/dist/assets/BillPayApprovalRuleDetailPage-BXSdsF2E-CYUFVErE.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-B8HbVvc9-DpzHPmZp.js +241 -0
  26. package/dist/assets/{BillPayPromoPage-BK2J56U5-CnqDBUB8.js → BillPayPromoPage-DkoqXDNt-FNHctwfQ.js} +7 -7
  27. package/dist/assets/{BillPaySetUpPage-Jic5E25q-BFBJyheg.js → BillPaySetUpPage-BommXkLS-DOKgmPVm.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CKZVChEm-Cuz40Itk.js → BillingSettingsPage-gHbc5Kq3-CFDIJf8G.js} +10 -10
  29. package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-BPVTB2M3.js → BillsBulkReviewDrawerPage-C541rBnx-DPMvwxh2.js} +1 -1
  30. package/dist/assets/{BoxItem-8PfNfaHq-CoDiwyqr.js → BoxItem-usHxaONy-BSYmkNdH.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-JGge-Iiw-CFAqeRW8.js → BusinessVerificationPage-CLsxXy9d-ClcyVS-f.js} +10 -10
  32. package/dist/assets/{CardNumberSubText-W81SQ4GF-Bqu_rml1.js → CardNumberSubText-D_fWhc_K-BxJ3GoBc.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-DnOcmx2i-BEl7J3hp.js → CashbackDetailPage-D3WylWVP-CydwwFdH.js} +19 -19
  34. package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-DkV5Ob3a.js → ChargeCardDetailPage-BUsGBwBf-DhD5ouX9.js} +27 -27
  35. package/dist/assets/{ChargeCardListPage-Dgj-WWWI-CbwqZtRf.js → ChargeCardListPage-Jhx05dVV-DjDdThgH.js} +24 -24
  36. package/dist/assets/{ChargeCardListTable-uJZKWoh7-DhZ8QmJ_.js → ChargeCardListTable-D-eYWaxh-CZeSVtIX.js} +26 -26
  37. package/dist/assets/ChargeCardPromoPage-CzR82VtA-DoVVgv51.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-DUDTmQvB.js → ChargeCardSetupPage-Ctz8PCuu-Dmh0C1fi.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-BOQhT3Eo.js → ChargeCardStatementsPage-EUtRTAX2-CIQRTxBN.js} +6 -6
  40. package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-Di3gSIJN.js → CheckDepositDrawerPage-B7DC0HAi-DPwOJJS7.js} +17 -17
  41. package/dist/assets/{CollapsableReportTable-Crihcv_z-Dz-RLuna.js → CollapsableReportTable-I40BZv7o-RBVPkQ58.js} +233 -233
  42. package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-CgBxbEOZ.js → CompanyOfficerDetailsSection-ChsNKXbx-Dk7vpi01.js} +24 -24
  43. package/dist/assets/{CompanyPassportCard-DMRQkRPb-C4cE2wuT.js → CompanyPassportCard-82bbFwk--C3mnYk4t.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-D3XvbSF_-CAA4hMAo.js → CompanyPassportPage-DG1Fa_Uw-B4wsnqA2.js} +18 -18
  45. package/dist/assets/{CompleteProfile-BqjXO5ze-D8LP_nnA.js → CompleteProfile-B7bQqLQH-DwtJrHr4.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-DtwLo4WZ-CAgZ-6DA.js → ConfettiBurst-DUyIBnw4-BZY51mbD.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-FFsZZvsv.js → CreateOrEditVendorPage-DVzMO96w-CjeOn0Zu.js} +6 -6
  48. package/dist/assets/CreditCardPaymentDrawerPage-C03hfKGc-BI7dTqV7.js +224 -0
  49. package/dist/assets/{CurrencySelectField-ClOg6nnS-BqF8GQ_v.js → CurrencySelectField-2hU3oIp_-CnccIVlk.js} +3 -3
  50. package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-DRuZjTjM.js → CustomerOnboardingActivationPage-Dt-Nml2t-CQyv3wO4.js} +8 -8
  51. package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-B7ffmmrc.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-CaAElGhv.js → CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-CS261SSd.js} +11 -11
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-CmLhznz-.js → CustomerOnboardingNoStepsPage-CwI8nL61-Xg6qQ6Ku.js} +4 -4
  54. package/dist/assets/CustomerOnboardingPage-C3FgZjAN-C75cnlLW.js +107 -0
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-2I-6Jp_o.js → CustomerOnboardingProductSuitePage-BOYu-82S-uR17VQjV.js} +4 -4
  56. package/dist/assets/{Dashboard-CdYlvep--DUCbDeKg.js → Dashboard-D_oTtu1--CP9XS1zf.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-c6q027Qp-VmbWeRH9.js → DashboardReportPage-Dprj3eUQ-BK5e1r9g.js} +20 -20
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-C2glc1OE.js → DashboardSidebarBackgroundAnimation-C6SQaB7q-C2qHBViE.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-D8kL8enp-Dmv2QmwN.js → DepositAccTransactionItem-C2oP415b-B5ygx6vl.js} +6 -6
  60. package/dist/assets/DepositAccTransactionListPage-DCvdqAz1-Df_FOAOf.js +66 -0
  61. package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-4nt88Wq7.js → DomesticWireDetailsPage-Da_3EveP-Bjb9K-P-.js} +2 -2
  62. package/dist/assets/{DownloadOverlay-Dr4uLNpZ-CSP7n0ty.js → DownloadOverlay-BwddFmV2-BqOR54wm.js} +26 -26
  63. package/dist/assets/{DrawerPage-CbKBsc7w-Czd32d3w.js → DrawerPage-CGrnrvf2-BvrxfWnf.js} +12 -12
  64. package/dist/assets/EditPeoplePage-DMgxG2Gd-C3BsPnxU.js +55 -0
  65. package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-B_mgHJUC.js → EditReimbursementDetailPage-DwCiVkeu-B4w5FVLx.js} +25 -25
  66. package/dist/assets/EntityDetailPage-BcRVEfi5-Cnj_gM9q.js +18 -0
  67. package/dist/assets/{EntitySummarySection-BIV9aAq2-CISETdsS.js → EntitySummarySection-BaHHLLkE-D3Ip19-Y.js} +28 -28
  68. package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-BoXO6RyV.js → ExpenseAutomationOverviewPage-hl_3Pc0g-gY12ACUr.js} +27 -27
  69. package/dist/assets/ExpenseAutomationPage-D70ghitX-EafeQT3m.js +1650 -0
  70. package/dist/assets/{ExpressPayPage-DnpQuDmt-Nmc0dbGr.js → ExpressPayPage-BpfkmJ_I-B4izq8YR.js} +13 -13
  71. package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-BhRm4xx9.js → FeaturePreviewPage-Bzi8Bpk3-DtSpKYbK.js} +3 -3
  72. package/dist/assets/{FollowStepsSection-B2I9SddL-CxOpeC7P.js → FollowStepsSection-Bu3RG_GH-DmaIgxgE.js} +10 -10
  73. package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-CB1HWDWu.js → GlobalReviewListPage-D4BD7q-I-BHZQG-gN.js} +11 -11
  74. package/dist/assets/{InformationCardStack-mEhasBqu-CreS8hEy.js → InformationCardStack-B9wnkR3p-CjpaX6cg.js} +3 -3
  75. package/dist/assets/{InsightsCardStack-Mj7QcQnH-ZWcbply5.js → InsightsCardStack-C1_rd2Sb-uYkz47Dy.js} +11 -11
  76. package/dist/assets/InsightsSection-7-T67WeF-BlMRO9Ba.js +27 -0
  77. package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-DugcuKws.js → IntegrationsSettingsPage-C9YpvDgg-DjW-A2Ra.js} +11 -11
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-CJS_ucM1.js → InternationalWireSwiftDetailsPage-C5mI8dEh-MFTemI3R.js} +12 -12
  79. package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-CrYQdSU8.js → InternationalWireVerificationPage-B8AOwcSX-HJr1qwVZ.js} +23 -23
  80. package/dist/assets/{InviteFormPage-DK6X9Zwi-BmvvCw3D.js → InviteFormPage-DuBhhnre-DKK8UkI0.js} +22 -22
  81. package/dist/assets/{InvitePageListView-CwKbcKlM-C3aARAlE.js → InvitePageListView-Dw8kwEFd-zXFzVUiq.js} +41 -41
  82. package/dist/assets/InvitePeoplePage-BI_vd7xw-BSlMVd1C.js +12 -0
  83. package/dist/assets/{InvoiceUploadSection-CokNNkKu-C3YItMb9.js → InvoiceUploadSection-9DaovMq8-DOf6F-xG.js} +3 -3
  84. package/dist/assets/IssueChargeCardPage-fumweN4Y-Ie_niRER.js +532 -0
  85. package/dist/assets/{LabeledAddressValue-BhwrrtZX-CXia5eoe.js → LabeledAddressValue-cNf6hI1l-C1IgZGiS.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DzmwP7hP-rTSkkk1A.js → LabeledAddressValueField-CoTtV0RQ-CTJHm8Dm.js} +8 -8
  87. package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-BO9IVhKI.js → LabeledControlledCheckBoxField-DQwUvKR2-BFeYWYOG.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-CKXiWbBE.js → LabeledCreatableSingleSelectField-CnQsTYWe-BxSldgLD.js} +7 -7
  89. package/dist/assets/LabeledDocumentField-MkryOLQ8-ZmKcbrkd.js +41 -0
  90. package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-t40SKG-g.js → LabeledDropDownFormattedTextField-B-yUtgxR-CkZPhULB.js} +7 -7
  91. package/dist/assets/{LabeledText-Db46hFZY-DW3nTMl_.js → LabeledText-BJ3Zvb5p-yc50ilCa.js} +2 -2
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-CwPLh_do.js → LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-B7kyEAM_.js} +17 -17
  93. package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-CTQGzlhW.js → LabeledZeniRolesDropDownField-CS_oKjBG-CatyVbOL.js} +11 -11
  94. package/dist/assets/{LinkJETransactionPage-BZSRaZqY-uJGURN6e.js → LinkJETransactionPage-BsszwFNq-BtKpHm2U.js} +10 -10
  95. package/dist/assets/{LockCardPage-KTyESoXL-YHe6YgOp.js → LockCardPage-DqQGGac2-Bntrtxvn.js} +42 -42
  96. package/dist/assets/{LowBalancePopup-B0BDCEui-Boc2ml-j.js → LowBalancePopup-BFo5zRk3-BLFy36gu.js} +6 -6
  97. package/dist/assets/MagicLinkACHDetailsPage-wYa3cyyZ-Cn9Ml7SS.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-CW4RNKOV-Bj3CP8hj.js +1 -0
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-D3lbgGYX.js → MagicLinkInternationalWireDetailsPage-CX9SeCLl-Bato55Wl.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-CojCEkBp.js → MagicLinkSuccessPage-Dipq1-St-C4ZMZxw5.js} +2 -2
  101. package/dist/assets/{MagicLinkTitleSection-CWw516D8-D0jQqmvx.js → MagicLinkTitleSection-DnN52Uwb-aNaCMrDN.js} +7 -7
  102. package/dist/assets/{MailingDetailsSection-CugAM90r-DEwALK-q.js → MailingDetailsSection-DwNF-L2Y-DJJZ9RqI.js} +1 -1
  103. package/dist/assets/{Menu-CGN2qO6T-BTKtVwIK.js → Menu-D0jF6uaE-AMW53cTN.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-C9Wn2ND9.js → MyBankConnectionsSettingsPage-DpM6MKBq-CmnrHUZV.js} +7 -7
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-Sg0KcH3B.js → MyPendingActivationChargeCardListPage-BaT55Pwg-BdKjhqSf.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-BOr5u8wJ.js → MyProfileSettingsPage-kD1dY6P6-BAgE1Tqp.js} +6 -6
  107. package/dist/assets/{NavBarWithPicker-DLLvivn4-C2EMLk4R.js → NavBarWithPicker-D-WQJ-tG-C6mGlKIr.js} +4 -4
  108. package/dist/assets/{NavigationArrow-B4j2t8Qu-ApLGyN2d.js → NavigationArrow-Z9PgxZ-c-DrPA9Vgt.js} +1 -1
  109. package/dist/assets/{NavigationDots-DyMqwpgy-BlQ4OF1d.js → NavigationDots-BT-m0FmS-CJdtX5bS.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-BXKBuyek.js → NewGlobalMerchantPage-YsnX4uQU-7PwHdB8y.js} +36 -36
  111. package/dist/assets/{NoDataChart-Ce1_TZ5w-rlYBF6PD.js → NoDataChart-DMivligx-DVgr9SAl.js} +1 -1
  112. package/dist/assets/{NoDataTable-l2T5Hw3t-BDh4JUXv.js → NoDataTable-DwOJY23X-BMIpXvJR.js} +1 -1
  113. package/dist/assets/{NotFoundPage-msdN-Eu6-CnnlrsU4.js → NotFoundPage-DuKXpHos-BIXgl60z.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-_ovcjr8E-DY9p6U88.js → NotificationSettingsPage-DlU2NxiC-DDx7Rraa.js} +22 -22
  115. package/dist/assets/NotificationsListConfig-BQCb9x9X-C3jJIn48.js +1 -0
  116. package/dist/assets/{NotificationsPage-Ddxb5kE0-CDVU5W_a.js → NotificationsPage-q0bK_5gs-C_zZBYkJ.js} +37 -37
  117. package/dist/assets/{OpExByVendorPage-BLAHey0l-f-WjImJe.js → OpExByVendorPage-Boc7U8eu-BxBRsCtx.js} +24 -24
  118. package/dist/assets/OverlayContainerPage-CrZuT2Jj-DDO8EgYZ.js +11 -0
  119. package/dist/assets/{PandLWithForecastPage-B7Z73Sq--8S6z0rAz.js → PandLWithForecastPage-B2eGvFPp-CEl0eyCC.js} +10 -10
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-DD7f9yVw.js → PaymentAccountSetupBillingAddressSection-BP-_59EO-KoltH9y1.js} +9 -9
  121. package/dist/assets/{PeoplePage-BHRFiM0D-BagkceCs.js → PeoplePage-YMfZIga6-BPMCy-eb.js} +23 -23
  122. package/dist/assets/{Preview-Bnbo8Nq1.js → Preview-BszQHI_F.js} +1 -1
  123. package/dist/assets/{ProductsCarousel-D2bf_6Gb-B-FAzu9h.js → ProductsCarousel-CUaU5-V7-CFq7I05R.js} +6 -6
  124. package/dist/assets/{PromoBaseCards-CI7UOpeY-BbdxV6ii.js → PromoBaseCards-CmOYEhSO-D3yPErwW.js} +2 -2
  125. package/dist/assets/{QBOConnectionDialog-D7MeKn1t-TYawHVny.js → QBOConnectionDialog-BNiXUEAk-B55AIWRo.js} +3 -3
  126. package/dist/assets/{QBOSetupSection-DWhfA4Xv--q8kidUR.js → QBOSetupSection-CjjNFfgF-CIhiV9Dd.js} +9 -9
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-tP7WcKvd-CCMfftol.js +26 -0
  128. package/dist/assets/ReimbursementApprovalRulesPage-BkuYJ6qb-BIx385RC.js +243 -0
  129. package/dist/assets/{ReimbursementDetailPage-COIRwy7i-DZGfkzvc.js → ReimbursementDetailPage-D5IzqJS5-BklJr7jT.js} +13 -13
  130. package/dist/assets/ReimbursementPromoPage-D7n6lZNo-BpT8Ss67.js +84 -0
  131. package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-cG1PPIji.js → ReimbursementSetUpPage-E1elWU5Z-VC2DwUtC.js} +15 -15
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-CxW2G_F4.js → ReimbursementsBulkReviewDrawerPage-HzYNji-G-DGG79plx.js} +1 -1
  133. package/dist/assets/{ReloadCard-B2sJR97f-BG30B7lD.js → ReloadCard-DMWwNZ1z-CIbg2f6Q.js} +3 -3
  134. package/dist/assets/{ReportTableViewSelector-_IO343vS-DarLVXtz.js → ReportTableViewSelector-EU36E1lv-XPDH-qLc.js} +11 -11
  135. package/dist/assets/{ReportsPage-C-aQ1bdd-DCIgVjO8.js → ReportsPage-iJDifG6q-BnnQKn2l.js} +4 -4
  136. package/dist/assets/{RevenueChart-Bgq6My4J-D1wqXuV1.js → RevenueChart-BbOK-HCB-UtcLA02J.js} +22 -22
  137. package/dist/assets/ReviewDetailsPage-Bk2vvBn3-C2KvPaPZ.js +290 -0
  138. package/dist/assets/{ReviewOverlay-CPU7RPiJ-BhFB4uqb.js → ReviewOverlay-CJlk2MNH-s-FncxF6.js} +14 -14
  139. package/dist/assets/{RoleWithToolTip-DSSGBzvw-Ca10uH2X.js → RoleWithToolTip-B7woUKhj-CCCbdbHN.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-UyHqt-88.js → ScheduleDetailsFixedAssetsPage-B-WjqQN_-BZxRVl4y.js} +3 -3
  141. package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-BzTbS9K2.js → ScheduleDetailsPage-ocFBINM3-BwGXsqpK.js} +4 -4
  142. package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-BL4_zz48.js → ScheduleSequenceTable-Bb7MJ-zJ-GmSlZz8a.js} +24 -24
  143. package/dist/assets/{ScreenRoutes-DKJDWrq-.js → ScreenRoutes-Bs2X1R3V.js} +42 -42
  144. package/dist/assets/{SetUpAccountSection-DrMCC1IY-DEHd1Ql0.js → SetUpAccountSection-9zELif-q-xWCkQEz2.js} +4 -4
  145. package/dist/assets/{SignIn-Ij6tlYI5-CcVqI-K7.js → SignIn-BHHUcLal-BDutKsDY.js} +17 -17
  146. package/dist/assets/{SignInScreen-BZlFDA0S.js → SignInScreen-DqJeiieA.js} +1 -1
  147. package/dist/assets/SpendManagementListViewPage-BAdSW-49-C0b0e4ib.js +123 -0
  148. package/dist/assets/SpendManagementPerTabPage-HzCmGr0--BrKmnwTS.js +785 -0
  149. package/dist/assets/{SpendManagementSection-BqWbsmBW-C71zMSb0.js → SpendManagementSection-LzT-Bnhy-DcyEJGSm.js} +15 -15
  150. package/dist/assets/StatementItem-BnxTFgdM-ncI51LoG.js +31 -0
  151. package/dist/assets/{StatementsPage-BG_pNQzc-FNk9HF4E.js → StatementsPage-B8X2un5p-CiIvEzAF.js} +4 -4
  152. package/dist/assets/{StatusSwitcher-DYRXaLvx-erQqAcc2.js → StatusSwitcher-BPKr5BUW-lb0m6Cbr.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-C75XU1EG-khmziXpM.js → SubTabSwitcher-4dvyyQSv-BdqA6ZlC.js} +1 -1
  154. package/dist/assets/{SummaryCard-DEnzgi31-BCFloXQE.js → SummaryCard-CiNkV7uy-BHimAYKo.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-BacWm0wS-C9oPqJX0.js → TaskManagementPage-BiyyDIWi-DCcTniX2.js} +15 -15
  156. package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-DleTftrv.js → TimeRangeSwitcher-DEEhq2Us-D64DWBCZ.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcher-BVgI_VZw-DeIWrcpL.js → TimeframeSwitcher-u606tI8Z-DKc_Ov1z.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-CMvHnrOH.js → TimeframeSwitcherWithToggle-D2sBGHXQ-Dp4KGiW_.js} +1 -1
  159. package/dist/assets/{TopExCard-ImUx-vXr-CKpHxxKg.js → TopExCard-DbPlohSJ-YKd6FEuQ.js} +4 -4
  160. package/dist/assets/{TopExDetailPage-Dg_8DQk8-zNlOv5On.js → TopExDetailPage-Cla8Hd-1-1fpYe-lT.js} +9 -9
  161. package/dist/assets/{TransactionDetailPage-BzaDB50S-6K-8nkD6.js → TransactionDetailPage-BbjtQvBr-DNyUqobk.js} +45 -45
  162. package/dist/assets/{TransactionList-DMd3dgoK-CLgrj5t0.js → TransactionList-BRiHadkm-BVpjF8up.js} +14 -14
  163. package/dist/assets/{TransactionListBig-BxHqh8u6-_P9SDt8S.js → TransactionListBig-BOeu4-R4-Cua70V6_.js} +20 -20
  164. package/dist/assets/TransactionListPage-ByVvx6ON-C32shKZQ.js +35 -0
  165. package/dist/assets/TransactionVendorDetailPage-DMweGn3b-CelejD-M.js +80 -0
  166. package/dist/assets/{TransferDrawerPage-oV7ickRP-5Eww1c_s.js → TransferDrawerPage-BTqCR3Hb-CYdeK3jF.js} +12 -12
  167. package/dist/assets/{TreasuryOverviewPage-CECDKjNn-DsPaT5wp.js → TreasuryOverviewPage-CDJtsQsC-ns0b2xlD.js} +42 -42
  168. package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-DbUuqsJn.js → TreasuryPromoPage-Bqt6DcqL-DbWZMgaj.js} +131 -131
  169. package/dist/assets/TreasuryStatementsPage-2PsC-PWa-MMDwIX2Z.js +58 -0
  170. package/dist/assets/TreasuryTaxLetterPage-D6MoHMAo-MFFnXqVo.js +58 -0
  171. package/dist/assets/{TrendChart-C_6ob-SX-CNkMjJ7x.js → TrendChart-DiutckSt-CgHLzJj6.js} +4 -4
  172. package/dist/assets/{TrendWithTransactions-lMD2sZ-C-DdlZeAtv.js → TrendWithTransactions-rPwZKHfV-DNKy45Dj.js} +9 -9
  173. package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-Cgic9eeC.js → UncategorizedAccountsMappingPage-CFx4P194-CH9WyFGN.js} +11 -11
  174. package/dist/assets/{UnitIntegrationPage-D9Pzxqju-Cl7tn05L.js → UnitIntegrationPage-DO8dMzVg-DvbEuGmN.js} +6 -6
  175. package/dist/assets/UploadAdditionalDocumentOverlay-Ug3kL02_-B3G6i9sn.js +38 -0
  176. package/dist/assets/{Vendor2FAPopup-D-r0NVE--BqeJAf6W.js → Vendor2FAPopup-BdG-Ywma-QkJvZ609.js} +1 -1
  177. package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-Dh7VC92k.js → VendorACHDetailsPage-BUNmE_s6-5dZ0tO5y.js} +1 -1
  178. package/dist/assets/{VendorDetailPage-BhfawsBd-8Uqpk4ze.js → VendorDetailPage-Dy9McuGu-BueeE3oi.js} +19 -19
  179. package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-7VOlTeLI.js → VendorDomesticWireDetailsPage-DvACrh7C-fv6qIbh-.js} +1 -1
  180. package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-BXYIOtNt.js → VendorFiling1099EditablePage-Y0hGO4RH-Bkykk5NB.js} +21 -21
  181. package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-DqUSgRG9.js → VendorFirstReviewPage-C-pT1M36-D21-SWZN.js} +50 -50
  182. package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-Bp9LJlPA.js → VendorInternationalWireDetailsPage-CCMramET-CvrUOrMX.js} +15 -15
  183. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-DLcr_p5Y.js → VendorInternationalWireSwiftDetailsPage-lxD_Z5W--BAaZ1iJw.js} +1 -1
  184. package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-DPKbgQ3f.js → VendorsAccountsSection-D-3fhQvy-ODF-nF1J.js} +2 -2
  185. package/dist/assets/{VerifyDevice-DE3UbLEe-8CXh-0a9.js → VerifyDevice-DDZdWfa8-C2_zooti.js} +7 -7
  186. package/dist/assets/{VideoPlayer-Gw_PLr8F-DVeDzAlW.js → VideoPlayer-D0GZ_Yml-CzUqkm8K.js} +2 -2
  187. package/dist/assets/{VideoPopup-DPZYhLgy-BzGmVjpY.js → VideoPopup-CEdhfU31-CRc_PqEa.js} +1 -1
  188. package/dist/assets/{WarningsDrawerPage-CZvToguS-GWzWrxrB.js → WarningsDrawerPage-CIK9lkT2-4Dbh3gee.js} +7 -7
  189. package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-Dy1WX8Sh.js → ZeniAccountDetailPage-BF8cg2oa-D23upslb.js} +36 -36
  190. package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-DyYliYsL.js → ZeniAccountListViewPage-BkdkYY8j-BsJgCgRQ.js} +9 -9
  191. package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-DX40_WfT.js → ZeniAccountNavBarPieces-FAxN1QDY-BljetA4S.js} +3 -3
  192. package/dist/assets/{ZeniAccountPromoPage-DA611IgH-CAN8a9xp.js → ZeniAccountPromoPage-COAOIU03-Bkst1764.js} +31 -31
  193. package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-BLYsiWRn.js → ZeniAccountSetupPage-QMBiVius-DdJzbNoZ.js} +6 -6
  194. package/dist/assets/{ZeniCopyright-FFqiWypL-ClNN14Sj.js → ZeniCopyright-CgfP-kcy-BQ8g3w-z.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-CY6pLC2m.js → ZeniTransferAmountSlider-B1fmc3f9-BXoBksgM.js} +3 -3
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-CmJT13gp.js → add-to-wallet-DgdBD8_G-BctcirlU.js} +1 -1
  197. package/dist/assets/{analytics-XaDXTZcq.js → analytics-DGBWhVbe.js} +1 -1
  198. package/dist/assets/{analyticsHelper-CczQLvkM-CCZefn7k.js → analyticsHelper-BKtlFOJm-DFeq4K6y.js} +1 -1
  199. package/dist/assets/analyticsHelper-BY515BEN.js +1 -0
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-7DsZUZDF.js → arrow-south-east-round-PEovUgvH-DFZl4BUT.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-iFkTgScT.js → auto-transfer-rule-mbafm5D3-BCnmjSj0.js} +1 -1
  202. package/dist/assets/{chartTypes-CwQl8aoN-vis3Ppko.js → chartTypes-BZYC5y5J-fsutalT0.js} +1 -1
  203. package/dist/assets/{commonDimensions-B1u_MhON-B6mWoroN.js → commonDimensions-B-aZt-hB-CyMsSMR_.js} +1 -1
  204. package/dist/assets/{core-3dlyNYRL.js → core-B-FNbYlu.js} +12 -12
  205. package/dist/assets/{dash.all.min-DBAY9LgI.js → dash.all.min-BBsvkPzr.js} +1 -1
  206. package/dist/assets/{detailCommon-nYxvvV_i-w2-qTde1.js → detailCommon-DCtkwfR8-BBwf5Sk5.js} +2 -2
  207. package/dist/assets/{downloadPdf-yGlKpV2--Y8lOVYTP.js → downloadPdf-BhQlJMh0-BaxCiwAc.js} +1 -1
  208. package/dist/assets/{empty-DeBX16Fq.js → empty-TjEo4rDg.js} +1 -1
  209. package/dist/assets/epic-DMZtehrN.js +2 -0
  210. package/dist/assets/{gift-box-Cmt9OgIZ-CvUdutGd.js → gift-box-Cmt9OgIZ-aujv_noX.js} +1 -1
  211. package/dist/assets/{graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js → graphic-no-data-l-DU4J8fDt-DTSR9TM8.js} +1 -1
  212. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js → graphic-no-data-net-burn-l-CzmycA0m-Bw4ambPw.js} +1 -1
  213. package/dist/assets/{handshake-BPg58FML-D7G7L1P7.js → handshake-BPg58FML-BjSDfVm7.js} +1 -1
  214. package/dist/assets/{index-BzfDeuOT.js → index-BhteR_e0.js} +3325 -3235
  215. package/dist/assets/{index-DYDdrdFx.js → index-CFi0iD-l.js} +1 -1
  216. package/dist/assets/{index-CEtuJXY3.js → index-CL_7G35J.js} +1 -1
  217. package/dist/assets/{index-DrmeEdvK.js → index-DdJI4MMd.js} +1 -1
  218. package/dist/assets/{index-CdTBIE6I.js → index-dPPP2cWo.js} +1 -1
  219. package/dist/assets/{index-DQmBF4-D.js → index-piC0sJHK.js} +1 -1
  220. package/dist/assets/{liveblocks-CNYVvsag.js → liveblocks-BBTLClA6.js} +1 -1
  221. package/dist/assets/{lottie-22bRan8M.js → lottie-gmZDfwf4.js} +2 -2
  222. package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-CE171aMF.js → mapLoadingInProgressToTreeNode-B8iO-fIh-RTAx_JGt.js} +1 -1
  223. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-DrWPogDr.js → mapSectionWithAcOnlyToTreeNode-PLUfKBDd-B2JV3NdC.js} +1 -1
  224. package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-C7NOdCBj.js → mapSpacerToTreeNode-BPbkmHFY-Ce33KPvG.js} +1 -1
  225. package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-r-xCXIcX.js → mapTimeframeBalancesToTreeNode-B-kK0AfR-BuUApKLg.js} +1 -1
  226. package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-Rww75weA.js → mapTimeframeBalancesToTreeNode-BvN4m9TA-kT_avyio.js} +1 -1
  227. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-BHUC6JHc.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-CoGG1EsI.js} +1 -1
  228. package/dist/assets/{mui-bYXq4XMS.js → mui-DLNyBjYF.js} +1 -1
  229. package/dist/assets/{page-detail-CWX5S47F-Bc8Xpsuq.js → page-detail-CWX5S47F-Dn7FEY9U.js} +1 -1
  230. package/dist/assets/{radio-default-CiSgisfh-Clpw2LWj.js → radio-default-CiSgisfh-B6CtarQ8.js} +1 -1
  231. package/dist/assets/{react-BpmEXSTM.js → react-2VG2yH4x.js} +1 -1
  232. package/dist/assets/{react-B84192hO.js → react-BiH01iGK.js} +2 -2
  233. package/dist/assets/{react-BvHTyLQY.js → react-Bqj7JUF5.js} +1 -1
  234. package/dist/assets/{react-Egsc5mMa.js → react-CeCWo9lx.js} +3 -3
  235. package/dist/assets/{react-BUQtf2po.js → react-CwPTei9W.js} +2 -2
  236. package/dist/assets/{react-CA3XI5Yc.js → react-CxPSrq5B.js} +1 -1
  237. package/dist/assets/{react-BuvI16A0.js → react-VfkIuzgx.js} +1 -1
  238. package/dist/assets/{react-Cz0zQhlY.js → react-sPv488Z5.js} +1 -1
  239. package/dist/assets/{recharts-h5iNQbFd.js → recharts-Cnl2EvUV.js} +1 -1
  240. package/dist/assets/{sentry-cYFeB6Pw.js → sentry-EYLV4XmG.js} +1 -1
  241. package/dist/assets/{shield-DOlUxcFf-BXuToJ7O.js → shield-DOlUxcFf-DYYbm8md.js} +1 -1
  242. package/dist/assets/{toCOABalancesWithID-rZFEkHuM-E72ORuv4.js → toCOABalancesWithID-ChMShONK-DKVddnaL.js} +1 -1
  243. package/dist/assets/{toChartData-C-dHC-Oz-OuMMtKUa.js → toChartData-BUweupH8-9P9fGujj.js} +1 -1
  244. package/dist/assets/{transaction-placeholder-CpOwZAMG-0pwHfQC6.js → transaction-placeholder-CpOwZAMG-R9RAntKW.js} +1 -1
  245. package/dist/assets/{uploadAttachment-D3clfqPu-BmVWSSt_.js → uploadAttachment-CeUHLpzO-CvskAe_e.js} +23 -23
  246. package/dist/assets/{uploadReceipts-Bkf_PaOH-C3QTKEAv.js → uploadReceipts-Bkf_PaOH-B-Qf32vH.js} +1 -1
  247. package/dist/assets/{url-DPKHmOp_.js → url-DzcuVjHh.js} +1 -1
  248. package/dist/assets/{url-B-8T_WZb.js → url-dmxYLsoS.js} +1 -1
  249. package/dist/assets/{useLongPress-GCK2COYQ-8uipnze8.js → useLongPress-GCK2COYQ-BC43nxgO.js} +1 -1
  250. package/dist/assets/{usp-line-BBd1wKwW-ClwDS-nj.js → usp-line-BBd1wKwW-_aHpaGit.js} +1 -1
  251. package/dist/assets/utils-D1zwltK3.js +70 -0
  252. package/dist/assets/{zeni-epic-state-BwKvATgd.js → zeni-epic-state-HWtMOH-U.js} +3 -3
  253. package/dist/index.html +1 -1
  254. package/package.json +4 -4
  255. package/dist/assets/AccountInfoPage-CxWBk_t_-qPYiFJSq.js +0 -18
  256. package/dist/assets/AccountLockedInfoModal-DVvzKHJQ-kmmeDebU.js +0 -59
  257. package/dist/assets/AddAddressForCardDrawer-e8qbO2Y5-DsaJZQWB.js +0 -6
  258. package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-CnLGJ0xc.js +0 -47
  259. package/dist/assets/ArAgingDetailPage-BEKsyA9Q-7a6TaIXp.js +0 -46
  260. package/dist/assets/BillPayApprovalRuleDetailPage-ppU1Epmy-BVL7a4hF.js +0 -27
  261. package/dist/assets/BillPayApprovalRulesPage-UblNi2mR-C84KMJKz.js +0 -235
  262. package/dist/assets/ChargeCardPromoPage-uqT96W3_-CeqDR53z.js +0 -222
  263. package/dist/assets/CreditCardPaymentDrawerPage-BvifQpD3-CKtkQXFi.js +0 -224
  264. package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-Dtf3INy1.js +0 -1
  265. package/dist/assets/CustomerOnboardingPage-DUMQKVfM-BM9txdIv.js +0 -107
  266. package/dist/assets/DepositAccTransactionListPage-BS-OReem-DDmHQNjM.js +0 -66
  267. package/dist/assets/EditPeoplePage-BgsR09q8-CEehYeHu.js +0 -55
  268. package/dist/assets/EntityDetailPage-Cvd4MG0F-HlxSZMDv.js +0 -18
  269. package/dist/assets/ExpenseAutomationPage-DW6Pxoah-Ctf3nYeu.js +0 -1650
  270. package/dist/assets/InsightsSection-B3xD0SZ9-Bq9pMcss.js +0 -27
  271. package/dist/assets/InvitePeoplePage-BqzJOjVI-BuNYyatr.js +0 -12
  272. package/dist/assets/IssueChargeCardPage-CRtJDmrZ-YScD5lVM.js +0 -532
  273. package/dist/assets/LabeledDocumentField-p3pI5qLu-DEgMORLm.js +0 -41
  274. package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-B9i-tfwt.js +0 -1
  275. package/dist/assets/MagicLinkDomesticWireDetailsPage-CDB2igue-D0JS60DY.js +0 -1
  276. package/dist/assets/NotificationsListConfig-BJm7A9Mz-DNN8xXMd.js +0 -1
  277. package/dist/assets/OverlayContainerPage-CrZuT2Jj-C4_lIvBh.js +0 -11
  278. package/dist/assets/ReimbursementApprovalRuleDetailPage-C_dTOk5P-Bf4aX0F8.js +0 -26
  279. package/dist/assets/ReimbursementApprovalRulesPage-B5lca4qx-B6B_PqnR.js +0 -237
  280. package/dist/assets/ReimbursementPromoPage-Bjm0UHcm-Ds7mgpFk.js +0 -84
  281. package/dist/assets/ReviewDetailsPage-COx9R71r-DWjftc73.js +0 -290
  282. package/dist/assets/SpendManagementListViewPage-AI676Urw-Dg56Cd43.js +0 -123
  283. package/dist/assets/SpendManagementPerTabPage-D79c3Xqh-BBXH9q0t.js +0 -754
  284. package/dist/assets/StatementItem-Aal79YaO-rV9Mr1N9.js +0 -31
  285. package/dist/assets/TransactionListPage-CN9fZznd-D7O-RTyH.js +0 -35
  286. package/dist/assets/TransactionVendorDetailPage-CykcquSh-C9KUicY5.js +0 -80
  287. package/dist/assets/TreasuryStatementsPage-QyWxshsI-ix86c1ud.js +0 -58
  288. package/dist/assets/TreasuryTaxLetterPage-BLmfU0VD-DlyZ-4ZM.js +0 -58
  289. package/dist/assets/UploadAdditionalDocumentOverlay-CJYvOjh0-B8P8CMZI.js +0 -38
  290. package/dist/assets/analyticsHelper-9zRS_Y19.js +0 -1
  291. package/dist/assets/epic-BLwHhkRJ.js +0 -2
  292. package/dist/assets/utils-fBOyu0sO.js +0 -70
@@ -1,15 +1,15 @@
1
- import{d as Ee,Q as Ve,aN as N,a8 as qe,cB as Ge,F as Te,aS as be,V as t,f6 as Je,p as J,y as s,bz as Ze,A as Ke,ab as Ye,fp as ve,dM as Qe,fq as Xe,bu as et,dC as tt,aO as it,o as a,fs as nt,u as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aK as Pe,B as Ae,bJ as ct,ag as dt,br as ut}from"./index-BzfDeuOT.js";import{a as o}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{bM as mt}from"./zeni-epic-state-BwKvATgd.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-CJYvOjh0-B8P8CMZI.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),f={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:w,analytics:A,style:j,sectionId:$,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:K},trigger:Y}=at(),E=ht($,"mileageAmountInDenomination"),h=lt(K,E),{localData:c,updateStatus:F,mileageStatus:S}=w,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[C,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{h||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=Q,ne=C===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:f.iconWidthHeight.valuePx(l),height:f.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:$e(S.code)}):null]}),t.jsxs(wt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:S.name,textColor:$e(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:h?void 0:D.colors.background,color:C||h?void 0:D.colors.grey1},isFieldError:h,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Lt,{children:C?t.jsx(rt,{label:x.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!h&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(zt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),A.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:h,children:h&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,w)=>`${e}.${w}`,xt=i.div`
1
+ import{e as Ee,q as Ve,aN as N,a8 as qe,cB as Ge,F as Te,aS as be,V as t,f6 as Je,p as J,y as s,bz as Ze,m as Ke,ab as Ye,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,d as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aK as Pe,a as Ae,bJ as ct,ag as dt,br as ut}from"./index-BhteR_e0.js";import{a as o}from"./core-B-FNbYlu.js";import{n as i}from"./mui-DLNyBjYF.js";import{bM as mt}from"./zeni-epic-state-HWtMOH-U.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Ug3kL02_-B3G6i9sn.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:A,style:j,sectionId:$,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:K},trigger:Y}=at(),E=ft($,"mileageAmountInDenomination"),f=lt(K,E),{localData:c,updateStatus:F,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[C,V]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{f||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||W(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=C===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:$e(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:S.name,textColor:$e(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:C||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Lt,{children:C?t.jsx(rt,{label:x.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Mt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),W(!0),A.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
5
5
  opacity: ${e=>e.isActive?1:.32};
6
- row-gap: ${e=>f.rowGap.valuePx(e.windowSize)};
7
- `,yt=i.div`
6
+ row-gap: ${e=>h.rowGap.valuePx(e.windowSize)};
7
+ `,wt=i.div`
8
8
  display: flex;
9
9
  width: 100%;
10
10
  flex-direction: column;
11
11
  justify-content: flex-start;
12
- `,wt=i.div`
12
+ `,yt=i.div`
13
13
  display: flex;
14
14
  `,St=i.div`
15
15
  ${e=>`${ge.title.style(e.windowSize)}`};
@@ -28,20 +28,20 @@ import{d as Ee,Q as Ve,aN as N,a8 as qe,cB as Ge,F as Te,aS as be,V as t,f6 as J
28
28
  display: flex;
29
29
  flex-direction: row;
30
30
  align-items: flex-start;
31
- padding: ${e=>f.iconPadding.valuePx(e.windowSize)};
31
+ padding: ${e=>h.iconPadding.valuePx(e.windowSize)};
32
32
  background: ${e=>e.isDarkMode?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
33
33
  border-radius: ${a.sp11};
34
34
  width: fit-content;
35
35
  height: fit-content;
36
36
  color: ${e=>e.isDarkMode?J.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
37
- max-width: ${e=>f.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
38
- max-height: ${e=>f.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
39
- margin-right: ${e=>f.iconContainerMarginRight.valuePx(e.windowSize)};
37
+ max-width: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
38
+ max-height: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
39
+ margin-right: ${e=>h.iconContainerMarginRight.valuePx(e.windowSize)};
40
40
  `,kt=i.div`
41
41
  display: flex;
42
42
  flex-direction: row;
43
- padding: ${e=>f.containerPadding.valuePx(e.windowSize)};
44
- width: ${e=>f.sectionWidth.valuePx(e.windowSize)};
43
+ padding: ${e=>h.containerPadding.valuePx(e.windowSize)};
44
+ width: ${e=>h.sectionWidth.valuePx(e.windowSize)};
45
45
  background-color: ${e=>e.theme.colors.grey5};
46
46
  border: 1px solid ${e=>e.theme.colors.grey3};
47
47
  box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
@@ -84,7 +84,7 @@ import{d as Ee,Q as Ve,aN as N,a8 as qe,cB as Ge,F as Te,aS as be,V as t,f6 as J
84
84
  position: relative;
85
85
  `,Tt=i.label`
86
86
  display: flex;
87
- padding-left: ${e=>f.infoLabelPaddingLeft.valuePx(e.size)};
87
+ padding-left: ${e=>h.infoLabelPaddingLeft.valuePx(e.size)};
88
88
  color: ${e=>e.hasError===!0?J.important:e.additionalInfoTextColor??e.theme.colors.hero};
89
89
  ${e=>`${ge.infoLabel.style(e.size)}`};
90
90
  margin-top: ${a.sp1};
@@ -94,7 +94,7 @@ import{d as Ee,Q as Ve,aN as N,a8 as qe,cB as Ge,F as Te,aS as be,V as t,f6 as J
94
94
  top: 50%;
95
95
  transform: translateY(-50%);
96
96
  right: ${a.sp3};
97
- `,zt=i(ut)`
97
+ `,Mt=i(ut)`
98
98
  width: ${a.sp3};
99
99
  height: ${a.sp3};
100
100
  cursor: ${e=>e.isDisabled==null?"pointer":"default"};
@@ -103,13 +103,13 @@ import{d as Ee,Q as Ve,aN as N,a8 as qe,cB as Ge,F as Te,aS as be,V as t,f6 as J
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,p={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Qt=({remiSetupView:e,isDisabled:w,remiApprovalView:A,connectedAccountProvider:j,isAccountsEnabled:$,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:K,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:h,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:S,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Q,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:C,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const B=Ee(),u=Ve(),[W,L]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:fe,updateStatus:z,accountUpdateStatus:Le,plaidConnectionDetails:le,allBankAccounts:ze,companyRemiInfo:Ie,companyBillPayInfo:he,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=A,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(z.fetchState),we=N(se.fetchState),Se=N(re.fetchState),I=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!W&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&L(!0),W&&_==="In-Progress"&&v==="Completed"&&L(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||we==="In-Progress"&&se.fetchState==="Completed"||Se==="In-Progress"&&re.fetchState==="Completed")&&I.reset(pe(e))},[_,v,I,e,we,se.fetchState,Se,re.fetchState]);const Ue=I.handleSubmit(P=>{l.trackEnableReimbursement(),C()}),He=async(P,R)=>{const m=R[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const y=fe.find(me=>me.id===m.fundingAccount.selectedOption);y!=null&&Q(m.fundingAccount.selectedOption,y.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const y=m.account.allOptions.find(me=>me.value===m.account.selectedOption);y!=null&&typeof y.label=="string"&&l.trackConnectBankLink(y.value,y.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(G)){const y=R[G];S(y)}};o.useEffect(()=>{const P=I.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>He(m,R))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&z.fetchState==="Completed"&&V()},[V,ye,z.fetchState]);const{commonSetUp:Ce,spendManagement:Be}=Te.getLocalizedStrings(),{reimbursement:We}=Be,{reimbursementSetup:M}=We,{setUp:k}=Ce,ce=he?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||mt(b?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=Ie?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=B.mode==="light"?new be(B.colors.brandColorJadeLight):new be(B.colors.brandColorJadeDark),Ne=()=>{!W&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?L(!0):Y?.()};return t.jsxs(It,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:W,onClose:()=>L(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:d,updateStatus:z,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>L(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:B.colors.grey4,style:{zIndex:3},onBackClick:K,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ke,{size:"ExtraLarge",start:!0})}):t.jsx(Ye,{...I,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Xe,{connectedAccountProvider:j,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:ze,allFundingAccounts:fe,sectionId:q,isDisabled:w,onFetchLinkTokenClick:h,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:z.fetchState==="In-Progress"||Le.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},It=i.div`
106
+ `,p={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:y,remiApprovalView:A,connectedAccountProvider:j,isAccountsEnabled:$,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:K,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:S,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:C,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const H=Ee(),u=Ve(),[B,L]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:M,accountUpdateStatus:Le,plaidConnectionDetails:le,allBankAccounts:Me,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Ie,isRefreshingViewInBackground:Re,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=A,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),we=N(M.fetchState),ye=N(se.fetchState),Se=N(re.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&L(!0),B&&_==="In-Progress"&&v==="Completed"&&L(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&se.fetchState==="Completed"||Se==="In-Progress"&&re.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,se.fetchState,Se,re.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),C()}),We=async(P,R)=>{const m=R[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(G)){const w=R[G];S(w)}};o.useEffect(()=>{const P=z.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>We(m,R))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&M.fetchState==="Completed"&&V()},[V,we,M.fetchState]);const{commonSetUp:Ce,spendManagement:He}=Te.getLocalizedStrings(),{reimbursement:Be}=He,{reimbursementSetup:I}=Be,{setUp:k}=Ce,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||mt(b?.providerVerificationStatus?.code??""))&&Ie?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:I.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new be(H.colors.brandColorJadeLight):new be(H.colors.brandColorJadeDark),Ne=()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?L(!0):Y?.()};return t.jsxs(zt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>L(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:d,updateStatus:M,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>L(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:I.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:K,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(It,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ke,{size:"ExtraLarge",start:!0})}):t.jsx(Ye,{...z,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Qe,{connectedAccountProvider:j,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Me,allFundingAccounts:he,sectionId:q,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:I.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:I.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:M.fetchState==="In-Progress"||Le.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:I.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
110
110
  width: 100%;
111
111
  background-color: ${e=>e.theme.colors.grey4};
112
- `,Mt=i(ot)`
112
+ `,It=i(ot)`
113
113
  color: ${e=>e.theme.colors.hero};
114
114
  display: flex;
115
115
  justify-content: center;
@@ -137,4 +137,4 @@ import{d as Ee,Q as Ve,aN as N,a8 as qe,cB as Ge,F as Te,aS as be,V as t,f6 as J
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  row-gap: ${e=>p.sectionRowGap.valuePx(e.windowSize)};
140
- `,pe=e=>{const{allBankAccounts:w,allFundingAccounts:A,mileageDetails:j,primaryFundingAccount:$}=e,{localData:d}=j;return{[q]:{fundingAccount:{selectedOption:$?.id,allOptions:A.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:w.map(r=>({label:r.accountName,value:r.accountId}))}},[G]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{Qt as default,De as uniqueName};
140
+ `,pe=e=>{const{allBankAccounts:y,allFundingAccounts:A,mileageDetails:j,primaryFundingAccount:$}=e,{localData:d}=j;return{[q]:{fundingAccount:{selectedOption:$?.id,allOptions:A.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:y.map(r=>({label:r.accountName,value:r.accountId}))}},[G]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{Xt as default,De as uniqueName};
@@ -1 +1 @@
1
- import{F as O,V as f,cm as M,cn as W,co as Y,k0 as q,aV as z}from"./index-BzfDeuOT.js";import{a as b}from"./core-3dlyNYRL.js";import{FT as G}from"./zeni-epic-state-BwKvATgd.js";import{u as X}from"./ReviewOverlay-CPU7RPiJ-BhFB4uqb.js";import"./mui-bYXq4XMS.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const{common:n,spendManagement:{reimbursement:B}}=O.getLocalizedStrings(),o=B.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=b.useState(!1),[m,_]=b.useState(P(e,h,a)),[y,R]=b.useState(h),[I,J]=b.useState(0),[S,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(I===m.length&&y&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(j)}),[m.length,I,y,e.fetchState,h,e,a]);const F=m.length,x=m.filter(u=>u.reviewStatus.code!=="error").length,L=()=>{const{title:u,description:C}=Z(x);A({type:"reject",title:u,description:C,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const C=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,G(C.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:E,description:U}=H(p,x,F,y),T=e.fetchState==="Completed"&&x===0,V=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return T?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?s:V,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:L,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[w?f.jsx(M,{titleComponent:f.jsx(Y,{children:S.title}),descriptionComponent:f.jsx(W,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(X,{title:E,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!y,footerProps:{primaryButton:D(),cancelButton:N,hideCancel:T}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
1
+ import{F as O,V as f,cm as M,cn as W,co as q,k0 as z,aV as G}from"./index-BhteR_e0.js";import{a as b}from"./core-B-FNbYlu.js";import{FT as Q}from"./zeni-epic-state-HWtMOH-U.js";import{u as X}from"./ReviewOverlay-CJlk2MNH-s-FncxF6.js";import"./mui-DLNyBjYF.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const{common:n,spendManagement:{reimbursement:B}}=O.getLocalizedStrings(),o=B.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=b.useState(!1),[m,_]=b.useState(P(e,h,a)),[y,R]=b.useState(h),[I,H]=b.useState(0),[S,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(I===m.length&&y&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(j)}),[m.length,I,y,e.fetchState,h,e,a]);const F=m.length,x=m.filter(u=>u.reviewStatus.code!=="error").length,E=()=>{const{title:u,description:C}=Y(x);A({type:"reject",title:u,description:C,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const C=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,Q(C.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:U}=Z(p,x,F,y),T=e.fetchState==="Completed"&&x===0,V=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return T?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?s:V,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[w?f.jsx(M,{titleComponent:f.jsx(q,{children:S.title}),descriptionComponent:f.jsx(W,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(X,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!y,footerProps:{primaryButton:D(),cancelButton:N,hideCancel:T}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:G("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
@@ -1,6 +1,6 @@
1
- import{d as h,V as r,aJ as a,aK as m,b0 as f,F as j,aP as l,bB as x,ag as g,o as c,b1 as p}from"./index-BzfDeuOT.js";import{n as s}from"./mui-bYXq4XMS.js";import{a as d}from"./core-3dlyNYRL.js";function y({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function C({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{e as h,V as r,aJ as a,aK as m,b0 as f,F as j,aP as l,bB as x,ag as g,o as c,b1 as y}from"./index-BhteR_e0.js";import{n as s}from"./mui-DLNyBjYF.js";import{a as d}from"./core-B-FNbYlu.js";function C({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
- `;function V({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(C,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function q({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(p,{children:({height:i,width:n})=>r.jsx(y,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const w=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
3
+ `;function V({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function q({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(y,{children:({height:i,width:n})=>r.jsx(C,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const w=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;
5
5
  `,b=s.div`
6
6
  height: ${c.sp10};
@@ -23,4 +23,4 @@ import{d as h,V as r,aJ as a,aK as m,b0 as f,F as j,aP as l,bB as x,ag as g,o as
23
23
  color: ${e=>e.theme.colors.champion};
24
24
  `,v=s(g)`
25
25
  color: ${e=>e.theme.colors.hero};
26
- `,B=s(w)``;function D({dimension:e,cardType:o,cardIndex:t,reportTitle:i,onReloadData:n}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>n(t,o),children:r.jsxs(k,{children:[r.jsxs($,{children:[i??f(o)," "]}),r.jsx(b,{children:r.jsx(B,{})}),r.jsx(v,{children:j.getLocalizedStrings().card.failedText})]})})}export{V as E,q as I,D as T};
26
+ `,B=s(w)``;function M({dimension:e,cardType:o,cardIndex:t,reportTitle:i,onReloadData:n}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>n(t,o),children:r.jsxs(k,{children:[r.jsxs($,{children:[i??f(o)," "]}),r.jsx(b,{children:r.jsx(B,{})}),r.jsx(v,{children:j.getLocalizedStrings().card.failedText})]})})}export{V as E,q as I,M as T};
@@ -1,4 +1,4 @@
1
- import{d as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe,y as O,aO as be,o as n,cc as ye,cd as we,ce as _e,cf as $e,cg as ve,al as ce,ch as ke,u as p,ag as Ce,aA as Q,bB as je,aS as Se,ak as Ne,at as Ie}from"./index-BzfDeuOT.js";import{a as f,w as de}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import{R as P,I as Oe}from"./CollapsableReportTable-Crihcv_z-Dz-RLuna.js";const R=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Fe(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ro(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
1
+ import{e as Q,q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe,y as O,aO as be,o as n,cc as ye,cd as _e,ce as we,cf as $e,cg as ve,al as ce,ch as ke,d as p,ag as Ce,aA as K,bB as je,aS as Se,ak as Ne,at as Ie}from"./index-BhteR_e0.js";import{a as f,S as de}from"./core-B-FNbYlu.js";import{n as d}from"./mui-DLNyBjYF.js";import{R as P,I as Oe}from"./CollapsableReportTable-I40BZv7o-RBVPkQ58.js";const V=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Be(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ro(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=_e(h.headers,t.defaultFileName),y=await h.arrayBuffer();we(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Fe=d.div`
2
2
  padding: 0 ${n.sp3} 0 ${n.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -20,17 +20,17 @@ import{d as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe
20
20
  :hover {
21
21
  color: ${e=>e.theme.colors.primary};
22
22
  }
23
- `,Te=e=>{const{value:c,onClick:a}=e,t=K();return o.jsxs(Be,{onClick:a,children:[o.jsx(Ae,{style:{color:t.colors.primary},children:c}),o.jsx(Ee,{})]})},Le=de.memo(Te);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=P("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const a=e.map((t,r)=>{const h=P("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(D=>he({nestedClass:D,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function ze(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new O(p[3],p[3],p[2]),contentPaddingRight:new O(p[3],p[3],p[2])},Re=d.div`
23
+ `,Te=e=>{const{value:c,onClick:a}=e,t=Q();return o.jsxs(Fe,{onClick:a,children:[o.jsx(Ae,{style:{color:t.colors.primary},children:c}),o.jsx(Ee,{})]})},Le=de.memo(Te);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=P("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function ze(e,c){const a=e.map((t,r)=>{const h=P("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(D=>he({nestedClass:D,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function Re(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new O(p[3],p[3],p[2]),contentPaddingRight:new O(p[3],p[3],p[2])},Ve=d.div`
24
24
  height: ${e=>e.height}px;
25
25
  width: 100%;
26
- `,Ve=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:q,onToggleCheck:F})=>{const V=K(),H=ie(),[$,j]=f.useState(void 0),[L,w]=f.useState(!1),[M,B]=f.useState({}),[g,W]=f.useState(void 0),[A,v]=f.useState(r),Y="none",E=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,S=(i,l)=>{w(!0),B(i),F?.(i,l,r==="account_group"?!0:void 0),_(i,l)},_=(i,l)=>{const m=G(i);for(const k of m.children)F?.(k.classId,l),_(k.classId,l)},G=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(k=>k.classId[0]===i[m])[0];return l},J=i=>{if(i.length>1){const l=G(i.slice(1));let m=!1;for(const k of l.children)if(t.find(s=>s[0]===k.classId[0])===void 0){m=!0;break}m===!0?F?.(l.classId,!0):F?.(l.classId,!1),B(l.classId)}};f.useEffect(()=>{L&&J(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:Y,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:E,showClassAccountNumber:h};if($==null||!Q(g,a)||!Q(A,r)||L===!0){const l=We(a,i);W(a),j(l),v(r)}else{const l=ze($,i);j(l),v(r)}},[a,r,t]);const[U,Z]=f.useState(5),T=i=>{const l=i+p[6];Z(l)};return $!=null?o.jsx(Re,{height:U,children:o.jsx(Oe,{backgroundColor:r==="classes"?new Se(V.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(H),right:oe.contentPaddingRight.value(H)},scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:q,onToggleCheck:S,onReportTableHeightChanged:T})}):null},C={width:new O(350,400,400),height:new O(165,165,165),buttonWidth:new O(62,62),buttonHeight:new O(p[5],p[5]),containerWidth:new O(150,400,400)},He=d.div`
26
+ `,We=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:J,onToggleCheck:B})=>{const W=Q(),Y=ie(),[$,j]=f.useState(void 0),[L,_]=f.useState(!1),[M,F]=f.useState({}),[g,z]=f.useState(void 0),[A,v]=f.useState(r),G="none",E=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,S=(i,l)=>{_(!0),F(i),B?.(i,l,r==="account_group"?!0:void 0),w(i,l)},w=(i,l)=>{const m=H(i);for(const k of m.children)B?.(k.classId,l),w(k.classId,l)},H=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(k=>k.classId[0]===i[m])[0];return l},U=i=>{if(i.length>1){const l=H(i.slice(1));let m=!1;for(const k of l.children)if(t.find(s=>s[0]===k.classId[0])===void 0){m=!0;break}m===!0?B?.(l.classId,!0):B?.(l.classId,!1),F(l.classId)}};f.useEffect(()=>{L&&U(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:G,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:E,showClassAccountNumber:h};if($==null||!K(g,a)||!K(A,r)||L===!0){const l=ze(a,i);z(a),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[a,r,t]);const[q,Z]=f.useState(5),T=i=>{const l=i+p[6];Z(l)};return $!=null?o.jsx(Ve,{height:q,children:o.jsx(Oe,{backgroundColor:r==="classes"?new Se(W.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(Y),right:oe.contentPaddingRight.value(Y)},scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:J,onToggleCheck:S,onReportTableHeightChanged:T})}):null},C={width:new O(350,400,400),height:new O(165,165,165),buttonWidth:new O(62,62),buttonHeight:new O(p[5],p[5]),containerWidth:new O(150,400,400)},Ye=d.div`
27
27
  position: relative;
28
28
  pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
29
- `,Ye=d.div`
29
+ `,Ge=d.div`
30
30
  display: flex;
31
31
  flex-direction: column;
32
32
  width: ${e=>C.containerWidth.valuePx(e.windowSize)};
33
- `,Ge=d($e)`
33
+ `,He=d($e)`
34
34
  display: flex;
35
35
  flex-direction: row;
36
36
  width: fit-content;
@@ -47,14 +47,14 @@ import{d as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe
47
47
  gap: ${n.sp2};
48
48
  margin-top: 12px;
49
49
  align-items: center;
50
- `,Je=d(ve)`
50
+ `,Ue=d(ve)`
51
51
  color: ${e=>e.theme.colors.hero};
52
52
  width: ${n.sp4};
53
53
  height: ${n.sp4};
54
54
  &:hover {
55
55
  color: ${e=>e.theme.colors.primary};
56
56
  }
57
- `,Ue=d.div`
57
+ `,qe=d.div`
58
58
  display: flex;
59
59
  width: ${e=>e.width}px;
60
60
  align-items: flex-start;
@@ -104,7 +104,7 @@ import{d as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe
104
104
  display: flex;
105
105
  justify-content: center;
106
106
  align-items: center;
107
- `,qe=d.div`
107
+ `,Je=d.div`
108
108
  display: flex;
109
109
  flex-wrap: wrap;
110
110
  justify-content: flex-start;
@@ -123,7 +123,7 @@ import{d as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe
123
123
  `,ae=d.label`
124
124
  color: ${e=>e.theme.colors.primary};
125
125
  cursor: ${e=>e.disabled===!0?"default":"pointer"};
126
- `,Qe=d(ce)`
126
+ `,Ke=d(ce)`
127
127
  display: flex;
128
128
  align-items: center;
129
129
  column-gap: ${n.sp2};
@@ -133,7 +133,7 @@ import{d as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.primary};
135
135
  }
136
- `,Ke=d.div`
136
+ `,Qe=d.div`
137
137
  display: flex;
138
138
  flex: 1;
139
139
  width: inherit;
@@ -147,4 +147,4 @@ import{d as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe
147
147
  margin-left: ${n.sp5};
148
148
  margin-top: -12px;
149
149
  color: ${e=>e.theme.colors.hero};
150
- `,{reportViewSelector:I,common:{footer:ne}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function lo({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:D,isClassViewDisabled:q,downloadPage:F,showAccountGroups:V=!0,onResyncReports:H,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const L=K(),w=ie(),[M,B]=f.useState(!1),[g,W]=f.useState(r),[A,v]=f.useState({}),Y=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=Y(x.children,u)}),u),E=Y(a,[]),[S,_]=f.useState(g==="classes"?h:E),G=t!=="Completed"||g==="classes"&&S.length===E.length;me({componentName:`reports.${e}`});const J=s=>s==="classes"?I.classes.label:V===!0?I.accountGroups.label:I.accounts.label,U=fe({mode:"all"}),Z=U.handleSubmit(()=>{B(!1),g==="classes"?D?.("classes",S):D?.("account_group")}),T=s=>{if(W(s),s==="classes")v({}),_([]);else{_(E);let u={};a.forEach(x=>{const N=P("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[N]:!1})}),v(u)}},i=()=>{M===!0&&m(),B(!M);let s={};a.forEach(u=>{const x=P("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||S.find(N=>N[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),_(E)),u===!0){const N=P("checkbox_and_name_only",[],s[0]);A[N]=!0,v(A),_(z=>z.filter(pe=>pe[0]!==s[0]))}else{const N=P("checkbox_and_name_only",[],s[0]);A[N]=!1,S.find(z=>z[0]===s[0])===void 0&&_(z=>[...z,s])}},m=()=>{B(!1),W(r),_(h)},k=()=>{$===!1&&H?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=P("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(He,{isDisabled:q??!1,children:[F===!0?o.jsx(Le,{value:J(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ye,{windowSize:w,children:[o.jsxs(Ge,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(Je,{className:"dropdownIcon"}),J(r)]}),r==="classes"?o.jsx(Qe,{onClick:k,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Xe,{})]})}):null]}),M?o.jsx(xe,{...U,children:o.jsx("form",{id:le(re),onSubmit:Z,children:o.jsxs(Ue,{width:C.width.value(w),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?T("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>T(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:V===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Ke,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?T("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?T(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(qe,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:S,selectedView:g,nodeOpenStatus:A,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:L.colors.grey3,foregroundColor:L.colors.grey4,width:C.width.value(w),height:C.height.value(w),animated:!0})]}),o.jsx(Ze,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:G,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(Ve,Q);export{ro as h,lo as u};
150
+ `,{reportViewSelector:I,common:{footer:ne}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function lo({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:D,isClassViewDisabled:J,downloadPage:B,showAccountGroups:W=!0,onResyncReports:Y,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const L=Q(),_=ie(),[M,F]=f.useState(!1),[g,z]=f.useState(r),[A,v]=f.useState({}),G=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=G(x.children,u)}),u),E=G(a,[]),[S,w]=f.useState(g==="classes"?h:E),H=t!=="Completed"||g==="classes"&&S.length===E.length;me({componentName:`reports.${e}`});const U=s=>s==="classes"?I.classes.label:W===!0?I.accountGroups.label:I.accounts.label,q=fe({mode:"all"}),Z=q.handleSubmit(()=>{F(!1),g==="classes"?D?.("classes",S):D?.("account_group")}),T=s=>{if(z(s),s==="classes")v({}),w([]);else{w(E);let u={};a.forEach(x=>{const N=P("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[N]:!1})}),v(u)}},i=()=>{M===!0&&m(),F(!M);let s={};a.forEach(u=>{const x=P("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||S.find(N=>N[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(z("classes"),w(E)),u===!0){const N=P("checkbox_and_name_only",[],s[0]);A[N]=!0,v(A),w(R=>R.filter(pe=>pe[0]!==s[0]))}else{const N=P("checkbox_and_name_only",[],s[0]);A[N]=!1,S.find(R=>R[0]===s[0])===void 0&&w(R=>[...R,s])}},m=()=>{F(!1),z(r),w(h)},k=()=>{$===!1&&Y?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=P("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(Ye,{isDisabled:J??!1,children:[B===!0?o.jsx(Le,{value:U(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ge,{windowSize:_,children:[o.jsxs(He,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(Ue,{className:"dropdownIcon"}),U(r)]}),r==="classes"?o.jsx(Ke,{onClick:k,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Xe,{})]})}):null]}),M?o.jsx(xe,{...q,children:o.jsx("form",{id:le(re),onSubmit:Z,children:o.jsxs(qe,{width:C.width.value(_),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?T("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>T(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:W===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Qe,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?T("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?T(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(Je,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:S,selectedView:g,nodeOpenStatus:A,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:L.colors.grey3,foregroundColor:L.colors.grey4,width:C.width.value(_),height:C.height.value(_),animated:!0})]}),o.jsx(Ze,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:C.buttonWidth.valuePx(_),height:C.buttonHeight.valuePx(_)},isLoading:!1,isDisabled:H,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:C.buttonWidth.valuePx(_),height:C.buttonHeight.valuePx(_)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(We,K);export{ro as h,lo as u};
@@ -1,9 +1,9 @@
1
- import{Q as W,d as G,F as C,av as ge,V as r,aK as T,bL as _e,bA as be,bz as Se,y as B,o as w,aQ as we,A as Ce,bM as ye,u as S,x as R,aA as K,t as xe,aS as Oe,as as Ae,bD as Re}from"./index-BzfDeuOT.js";import{a as P,w as X}from"./core-3dlyNYRL.js";import{n as _}from"./mui-bYXq4XMS.js";import{bh as Z,Et as Be,EC as ve,ED as E,EE as Le,EF as Pe,EG as Te,EH as ke,EI as Ne,EJ as ee,EK as te}from"./zeni-epic-state-BwKvATgd.js";import{m as z,l as q}from"./analyticsHelper-CczQLvkM-CCZefn7k.js";import{u as Ie}from"./ReportTableViewSelector-_IO343vS-DarLVXtz.js";import{a as se,p as Me}from"./TimeRangeSwitcher-BOzR-0O6-DleTftrv.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-CPVSAvFa-CMvHnrOH.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-Dr4uLNpZ-CSP7n0ty.js";import{I as $e,R as M,x as ne}from"./CollapsableReportTable-Crihcv_z-Dz-RLuna.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DRSmQ56_-DrWPogDr.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-DkrEWOxt-Rww75weA.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-BHUC6JHc.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-DIAuL28N-CE171aMF.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-BVgI_VZw-DeIWrcpL.js";import"./page-detail-CWX5S47F-Bc8Xpsuq.js";import"./AccountRow-Ck53DDbT-DWMrYTR2.js";function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=C.getLocalizedStrings().reports.sections,n=C.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Pe(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function He({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ye(e,t,o=!0){const a=C.getLocalizedStrings().reports.sections,n=C.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else ke(s)===!0?i.push(He({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=C.getLocalizedStrings().reports,d=C.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const y=ze({title:`${h}+${c}`,balances:p,config:t});y.reportElementData.element.numOfBalances=6,l.push(y)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]: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.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=H({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push($({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=C.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
1
+ import{q as W,e as G,F as C,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y as B,o as w,aQ as we,m as Ce,bM as ye,d as S,E as R,aA as K,T as xe,aS as Oe,as as Ae,bD as Re}from"./index-BhteR_e0.js";import{a as T,S as X}from"./core-B-FNbYlu.js";import{n as _}from"./mui-DLNyBjYF.js";import{bh as Z,Et as Be,EC as ve,ED as E,EE as Le,EF as Te,EG as Pe,EH as ke,EI as Ne,EJ as ee,EK as te}from"./zeni-epic-state-HWtMOH-U.js";import{m as z,l as q}from"./analyticsHelper-BKtlFOJm-DFeq4K6y.js";import{u as Ie}from"./ReportTableViewSelector-EU36E1lv-XPDH-qLc.js";import{a as se,p as Me}from"./TimeRangeSwitcher-DEEhq2Us-D64DWBCZ.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-D2sBGHXQ-Dp4KGiW_.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-BwddFmV2-BqOR54wm.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-I40BZv7o-RBVPkQ58.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-PLUfKBDd-B2JV3NdC.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-BvN4m9TA-kT_avyio.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-CoGG1EsI.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-B8iO-fIh-RTAx_JGt.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-u606tI8Z-DKc_Ov1z.js";import"./page-detail-CWX5S47F-Dn7FEY9U.js";import"./AccountRow-D2Ypckgj-DU9kFXuE.js";function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=C.getLocalizedStrings().reports.sections,n=C.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function He({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ye(e,t,o=!0){const a=C.getLocalizedStrings().reports.sections,n=C.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else ke(s)===!0?i.push(He({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=C.getLocalizedStrings().reports,d=C.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const y=ze({title:`${h}+${c}`,balances:p,config:t});y.reportElementData.element.numOfBalances=6,l.push(y)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]: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.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=H({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=C.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${w.sp2};
5
5
  background-color: ${e=>e.theme.colors.grey4};
6
- `;function Je({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=W(),s=G(),[c,y]=P.useState(void 0),[x,j]=P.useState(void 0),v=!(h==="small"||h==="medium-compact"),V="name+balances_actual",F=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>E(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,fe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,Y=D??fe;Y?.additionalBalances!=null&&(m=Y.additionalBalances.map(me=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>E(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>E(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};P.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:F,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Re(),showClassAccountNumber:n};if(c==null||!K(x,e)||g===!0){const f=Ke(e,m,v,g);j(e),y(f)}else{const f=We(c,m,e,v);y(f)}},[u,e,g]);const[A,N]=P.useState(5),I=m=>{const f=m+135;N(f)},he=m=>m?.trackPageLoaded(Xe(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:he}),r.jsx(Qe,{height:A,children:r.jsx($e,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:Q.contentPaddingLeft.value(h),right:Q.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:I,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Ke=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return Ze(e,t,o,a);case"cash_flow":return Ye(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Xe=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return R.Event.profitAndLoss;case"cash_flow":return R.Event.cashFlow;case"balance_sheet":return R.Event.balanceSheet;default:return R.Event.reports}},et=_.div`
6
+ `;function Je({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=W(),s=G(),[c,y]=T.useState(void 0),[x,$]=T.useState(void 0),v=!(h==="small"||h==="medium-compact"),V="name+balances_actual",F=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>E(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,fe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,Y=D??fe;Y?.additionalBalances!=null&&(m=Y.additionalBalances.map(me=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>E(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>E(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:F,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Re(),showClassAccountNumber:n};if(c==null||!K(x,e)||g===!0){const f=Ke(e,m,v,g);$(e),y(f)}else{const f=We(c,m,e,v);y(f)}},[u,e,g]);const[A,N]=T.useState(5),I=m=>{const f=m+135;N(f)},he=m=>m?.trackPageLoaded(Xe(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:he}),r.jsx(Qe,{height:A,children:r.jsx(je,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:Q.contentPaddingLeft.value(h),right:Q.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:I,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Ke=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return Ze(e,t,o,a);case"cash_flow":return Ye(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Xe=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return R.Event.profitAndLoss;case"cash_flow":return R.Event.cashFlow;case"balance_sheet":return R.Event.balanceSheet;default:return R.Event.reports}},et=_.div`
7
7
  display: flex;
8
8
  flex-direction: row;
9
9
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
@@ -49,7 +49,7 @@ import{Q as W,d as G,F as C,av as ge,V as r,aK as T,bL as _e,bA as be,bz as Se,y
49
49
  width: 160px;
50
50
  left: 63%;
51
51
  }
52
- `;function ot({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return C.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(st,{"data-testid":T("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function at({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(et,{"data-testid":T("report-switcher-container"),children:r.jsx(tt,{"data-testid":T("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(ot,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(nt,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const k={contentContainerLeftRightMargin:new B(S[3],S[3],S[8]),contentRightPadding:new B(S[3],S[3],S[8]),tickSkelectionContainerWidth:new B(343,600,905,1240)},it=new B(4,4),ct=new B(4,4),rt={selectedNumberOfPeriods:(e,t)=>e?ct.value(t):it.value(t)},lt=_.div`
52
+ `;function ot({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return C.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(st,{"data-testid":P("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function at({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(et,{"data-testid":P("report-switcher-container"),children:r.jsx(tt,{"data-testid":P("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(ot,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(nt,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const k={contentContainerLeftRightMargin:new B(S[3],S[3],S[8]),contentRightPadding:new B(S[3],S[3],S[8]),tickSkelectionContainerWidth:new B(343,600,905,1240)},it=new B(4,4),ct=new B(4,4),rt={selectedNumberOfPeriods:(e,t)=>e?ct.value(t):it.value(t)},lt=_.div`
53
53
  display: flex;
54
54
  flex: 1 1 auto;
55
55
  min-height: 100%;
@@ -98,7 +98,7 @@ import{Q as W,d as G,F as C,av as ge,V as r,aK as T,bL as _e,bA as be,bz as Se,y
98
98
  `,mt=_(we)`
99
99
  margin-top: ${w.sp3};
100
100
  color: ${e=>e.theme.colors.hero};
101
- `,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(Ce,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Qt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,A)=>{O!==h?.accountViewMode&&a?.(O),A&&n?.(A)};P.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=C.getLocalizedStrings().reports.common,c=ge(),y=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[j,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:j,disabledFormatForRole:x,roleBasedClassesSelectedFormat:y,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":T("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":T("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:h,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(A,N,I)=>{d(l,A,N,I)},onTimeframeSelectionChanged:(A,N,I)=>{p?.(A,N,I)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:C.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=P.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const y=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,y,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??k.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":T("reports-page-content-container"),children:[r.jsx(Ct,{windowSize:t,ref:a,children:r.jsx(Fe,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:C.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(ye,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(yt,{windowSize:t,children:r.jsx(Me,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(At,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ie,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:C.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return R.Event.profitAndLoss;case"cash_flow":return R.Event.cashFlow;case"balance_sheet":return R.Event.balanceSheet;default:return R.Event.reports}},ue=X.memo(Je,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),Ct=_.div`
101
+ `,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(Ce,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Qt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,A)=>{O!==h?.accountViewMode&&a?.(O),A&&n?.(A)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=C.getLocalizedStrings().reports.common,c=ge(),y=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[$,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:$,disabledFormatForRole:x,roleBasedClassesSelectedFormat:y,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:h,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(A,N,I)=>{d(l,A,N,I)},onTimeframeSelectionChanged:(A,N,I)=>{p?.(A,N,I)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:C.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const y=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,y,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??k.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(Ct,{windowSize:t,ref:a,children:r.jsx(Fe,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:C.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(ye,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(yt,{windowSize:t,children:r.jsx(Me,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(At,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ie,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:C.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return R.Event.profitAndLoss;case"cash_flow":return R.Event.cashFlow;case"balance_sheet":return R.Event.balanceSheet;default:return R.Event.reports}},ue=X.memo(Je,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),Ct=_.div`
102
102
  padding-right: ${e=>k.contentRightPadding.valuePx(e.windowSize)};
103
103
  `,yt=_.div`
104
104
  margin-top: ${w.sp3};