@zeniai/web-cockpit-ui 1.15.48-dev → 1.15.49-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 (344) hide show
  1. package/dist/assets/ACHDetailsPage-CXIFSMnN-Coq6wI87.js +21 -0
  2. package/dist/assets/{AIPerformancePage-DlTdGosv-C-O0nWEk.js → AIPerformancePage-DgrMh-mY-Bylt20RS.js} +104 -104
  3. package/dist/assets/AccountInfoPage-WkSEcWJL-CkOnNoKS.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BS2TBUSE-yixZKJJd.js → AccountInfoPageContent-DeptuP1q-CsYE_k70.js} +20 -20
  5. package/dist/assets/{AccountLockedInfoModal-aukulrV7-BghUJRSx.js → AccountLockedInfoModal-CYYkjr3Y-BcAzzzM4.js} +11 -11
  6. package/dist/assets/{AccountReconDetailsDrawerPage-kQJld6_N-CTXzE170.js → AccountReconDetailsDrawerPage-jN8KgM4V-yAl3_OHe.js} +19 -19
  7. package/dist/assets/AccountRow-C7_pSX9U-C_uj4ob-.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-DBQnDPXQ-BsmcJo7C.js → AccountsPromoCardStack-CB2gPVUw-D3B_FWzu.js} +32 -32
  9. package/dist/assets/AddAddressForCardDrawer-BiaLjcnj-DwcRtJ6c.js +6 -0
  10. package/dist/assets/{AddToWalletPage-C4EwdLZJ-DPPfaq4h.js → AddToWalletPage-BlExjuu4-B196FBl9.js} +18 -18
  11. package/dist/assets/{AgingReportsPage-vAvkUfOS-eLupiUU4.js → AgingReportsPage-D9UyMHCS-CUKIok_T.js} +7 -7
  12. package/dist/assets/{AllUserItems-qrYg6Gdx-CexfoJXZ.js → AllUserItems-DGGAZCTH-DA8Osx0t.js} +11 -11
  13. package/dist/assets/ApAgingDetailPage-C-whdj9K-JXlpGLx8.js +46 -0
  14. package/dist/assets/{AppBasePage-DrE-W6d7-Bq2ai-ng.js → AppBasePage-ANWa38-v-Dui1Sxci.js} +8 -8
  15. package/dist/assets/{AppDrawerContent-ATbZG_cu-C_LUaX21.js → AppDrawerContent-UhQJdUmA-CkRUhLQ3.js} +5 -5
  16. package/dist/assets/ApprovalRulesSettingsPage-BdNNS-TS-C1VrdMxf.js +47 -0
  17. package/dist/assets/{ArAgingChart-CuzG9AZY-CBzkLPD8.js → ArAgingChart-CuFQTCRF-BBoOHiTE.js} +6 -6
  18. package/dist/assets/ArAgingDetailPage-CQRhI5Z_-Db-Z6Fvw.js +46 -0
  19. package/dist/assets/{AttachmentView-BrQRChzc-gMo83IaQ.js → AttachmentView-D6K3YHdZ-Bap3B_dh.js} +6 -6
  20. package/dist/assets/{BankAccountSection-hcKEMs80-C67in8I4.js → BankAccountSection-B51-Hpnt-BDzmY8Fy.js} +6 -6
  21. package/dist/assets/BankAccountWarningSection-Bqrm3j-y-DAe6VsjZ.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-Bdw1K00m-CZPCyWyx.js → BankConnectionsSettingsPage-BeTdU1D7-CvYt_ADS.js} +30 -30
  23. package/dist/assets/BillDetailPage-GenRHQg3-fgN7wk2K.js +266 -0
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DkpCvYvo-D8q32jGy.js → BillPayApprovalRuleDetailPage-CVBTvKC--CjXFb5TX.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BEqZD0GU-CAnnaIQP.js → BillPayApprovalRulesPage-COiOi09y-D-B4gYTJ.js} +19 -19
  26. package/dist/assets/BillPayPromoPage-C-lZ36kT-Cmn31Ydv.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-WdEdbf16-BT3nFT0U.js → BillPaySetUpPage-3O1UBtgm-Dsg0n8rt.js} +9 -9
  28. package/dist/assets/BillingSettingsPage-ButDt4sV-CDAA93m9.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-DngjFR3H-BSt2ez3P.js +1 -0
  30. package/dist/assets/{BoxItem-CACRFWG2-ByiTZQgF.js → BoxItem-C-VST523-DMPXmLe8.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-CnF2Rkda-BxUtCmxb.js +138 -0
  32. package/dist/assets/{CardNumberSubText-C-oVdziK-Cq3VPImW.js → CardNumberSubText-BUvXykSn-DR27wA6E.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-BhFKSl4p-ewrE6dWH.js → CashbackDetailPage-BhHWEtnP-BIMVCNfp.js} +27 -27
  34. package/dist/assets/{ChargeCardDetailPage-D8J6HINu-CzxUCqhO.js → ChargeCardDetailPage-BGqaGwV3-AFT-HAkP.js} +20 -20
  35. package/dist/assets/{ChargeCardListPage-tdUKyHdz--1Qr1SRx.js → ChargeCardListPage-D5H9U0h8-DeNsZOzv.js} +16 -16
  36. package/dist/assets/{ChargeCardListTable-CByk3iqX-BeCD5LdA.js → ChargeCardListTable-Byme0rAu-ych_Qx-x.js} +55 -55
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-B8zRcrjo-CkVYMc70.js → ChargeCardPaymentHistoryPage-DKW98ipI-DfncT-JI.js} +34 -34
  38. package/dist/assets/{ChargeCardPromoPage-C4cgx2gm-CkQvUCt_.js → ChargeCardPromoPage-VSqN0247-7AKJMP0k.js} +30 -30
  39. package/dist/assets/{ChargeCardSetupPage-DtwiTNKA-WssSZZMh.js → ChargeCardSetupPage-BMitkkOv-DqB6_gbE.js} +4 -4
  40. package/dist/assets/{ChargeCardStatementsPage-B0KPw52e-CjOL8QcR.js → ChargeCardStatementsPage-C_iQ5kBD-CzlgcFfP.js} +8 -8
  41. package/dist/assets/{CheckDepositDrawerPage-DKNAXI77-CwWWbDuR.js → CheckDepositDrawerPage-BaRz0MD0-fXpFUSD5.js} +15 -15
  42. package/dist/assets/{CollapsableReportTable-Cq8bhaYC-sMsxrigZ.js → CollapsableReportTable-C4hqC6Uj-CeOhK0qJ.js} +272 -272
  43. package/dist/assets/{CompanyOfficerDetailsSection-Rk0B5cB5-JGxyR29X.js → CompanyOfficerDetailsSection-DA62JWZF-28wXvrh9.js} +32 -32
  44. package/dist/assets/{CompanyPassportCard-CHaKk74P-B2_ZiFli.js → CompanyPassportCard-CDQgqgtJ-Cs-zlaQi.js} +12 -12
  45. package/dist/assets/{CompanyPassportPage-DXWXFFKM-BSWnHzV_.js → CompanyPassportPage-DoOtHRwj-7bnAHUeu.js} +20 -20
  46. package/dist/assets/{CompleteProfile-ChaWsK6t-BWU7y1Ur.js → CompleteProfile-DsEoizlG-DOegmHNH.js} +2 -2
  47. package/dist/assets/ConfettiBurst-D_bNA5jm-AxnjtqGp.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DNicMQ8z.js → ConstrainedInnerElement-BeIpAPjB-yhWFdRSc.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-C_8Jqubo-Dp_EGm5j.js → CreateOrEditVendorPage-CQGF8m1c-Km9d2S1Z.js} +11 -11
  50. package/dist/assets/{CreditCardPaymentDrawerPage-lOjOtk28-DUDc8hji.js → CreditCardPaymentDrawerPage-DK_T0qbN-Bvmfy85N.js} +15 -15
  51. package/dist/assets/CurrencySelectField-7to_rmTp-D1r0SB0Y.js +139 -0
  52. package/dist/assets/{CustomerOnboardingActivationPage-DO6NCakm-DJ0wwxyO.js → CustomerOnboardingActivationPage-DCQ_KqzB-DJtTHAcy.js} +29 -29
  53. package/dist/assets/CustomerOnboardingContainerPage-DMF9BtF3-COJ-Wyve.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-DzZiwltK.js → CustomerOnboardingDetailPageSkeleton-ZTBIaml1-DBfEZVdM.js} +17 -17
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CbG5WshV-Ih9fR2Ck.js → CustomerOnboardingNoStepsPage-DEq1Mm1I-Dp_05KKK.js} +6 -6
  56. package/dist/assets/{CustomerOnboardingPage-DyVyf8oK-BPk9Ux7h.js → CustomerOnboardingPage-BXch3GVe-Ba_gMD_F.js} +16 -16
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-1F3JfCRp-8xZH_qGW.js → CustomerOnboardingProductSuitePage-D7PFi42F-C_seXYMG.js} +8 -8
  58. package/dist/assets/{Dashboard-Csggwob0-BEFQIWvp.js → Dashboard-BcjA6DTL-B8wtUrMY.js} +66 -66
  59. package/dist/assets/{DashboardReportPage-DFIdi_I0-CkaE8ALl.js → DashboardReportPage-Ce-jnQbs-CfmLV1Yt.js} +22 -22
  60. package/dist/assets/DashboardSidebarBackgroundAnimation-JT601qzy-CkG1z_mx.js +12 -0
  61. package/dist/assets/{DepositAccTransactionItem-CZ7v1T4S-DmLfirr4.js → DepositAccTransactionItem-COgr8Xw5-NWAgf7bV.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-FldPGX6K-B5JNFWiD.js → DepositAccTransactionListPage-zhPDzJoK-AejpnIWF.js} +4 -4
  63. package/dist/assets/{DomesticWireDetailsPage-C--eZ-UG-UT6ULanE.js → DomesticWireDetailsPage-2MqIFQbM-BGwsfDe-.js} +2 -2
  64. package/dist/assets/{DownloadOverlay-4f9deyJS-BVIQGklQ.js → DownloadOverlay-CfWDWIbC-DcGZOT8A.js} +26 -26
  65. package/dist/assets/{DrawerPage-roO3xvRT-BOp9n67_.js → DrawerPage-CfIhiBhn-A5CC3xdl.js} +11 -11
  66. package/dist/assets/EditPeoplePage-D25vo51x-BKCEnPp5.js +55 -0
  67. package/dist/assets/EditReimbursementDetailPage-DnFC_tCw-Cr7fsauQ.js +865 -0
  68. package/dist/assets/EntityDetailPage-C9vgxsh4-Dg0LhTdP.js +18 -0
  69. package/dist/assets/{EntitySummarySection-fBL4TZpT-Do-s3IXr.js → EntitySummarySection-Bie5ZOV3-BZu2b-HP.js} +32 -32
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CnhNINCc-kjQ2nbJ0.js → ExpenseAutomationOverviewPage-BEKF8mo3-DI5Un6My.js} +47 -47
  71. package/dist/assets/ExpenseAutomationPage-DiJoZGeD-lfenglhX.js +3001 -0
  72. package/dist/assets/{ExpressPayPage-c8oTCnBR-B1eI11Un.js → ExpressPayPage-C6Jb6WrN-BeqBD08K.js} +19 -19
  73. package/dist/assets/{FeaturePreviewPage-DkiAajs2-DbJCCTbJ.js → FeaturePreviewPage-ev9V1Riy-BV3fE1G1.js} +3 -3
  74. package/dist/assets/{FollowStepsSection-GaWu1kt9-BRvlMtUk.js → FollowStepsSection-BlgHPyvL-BhwHykaB.js} +44 -44
  75. package/dist/assets/GlobalReviewListPage-Ck-LItUj-B8rLujq7.js +291 -0
  76. package/dist/assets/{InformationCardStack-dMFbHUWM-C-FgUaQe.js → InformationCardStack-BkuCjydF-ClSDOapP.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-BlXkyuyz-DfwZenu8.js → InsightsCardStack-BFrwV0PC-CZ45PRa1.js} +10 -10
  78. package/dist/assets/InsightsSection-BdLDesVF-oVNFlqx0.js +27 -0
  79. package/dist/assets/IntegrationsSettingsPage-skBb_52w-D47eLHv2.js +57 -0
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DxdKE300-Cc24FhVA.js → InternationalWireSwiftDetailsPage-DUNu57zU-B6FHq7_F.js} +20 -20
  81. package/dist/assets/InternationalWireVerificationPage-D1_fj0MG-Bu9SiBen.js +65 -0
  82. package/dist/assets/{InviteFormPage-BCdalqtP-CWNB58up.js → InviteFormPage-D8zySzlG-B662YNtS.js} +21 -21
  83. package/dist/assets/{InvitePageListView-B88FW48q-DLYg-1DF.js → InvitePageListView-DUng4fOl-Bw5RtSsX.js} +63 -63
  84. package/dist/assets/InvitePeoplePage-C0bQFMoO-C-nWyYL8.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-CVOHcfdx-FSNHIS5V.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-B6wmvbEr-VuO_1ug1.js → IssueChargeCardPage-Vzj9appY-09K43VT7.js} +18 -18
  87. package/dist/assets/{LabeledAddressValue-CQrDCgNs-DLETXjJP.js → LabeledAddressValue-inaQliHs-Dg9xTHiz.js} +2 -2
  88. package/dist/assets/LabeledAddressValueField-B6IDZIGK-SXi-bQ86.js +45 -0
  89. package/dist/assets/{LabeledControlledCheckBoxField-BsFqjCpn-Drc3Qnd9.js → LabeledControlledCheckBoxField-DNMqJzBC-BPs_pf7S.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-D1fVDYR_-Bj5X4vuH.js → LabeledCountryMultiSelectField--JYMnWIw-Dm5jwrCs.js} +12 -12
  91. package/dist/assets/{LabeledCreatableSingleSelectField-Bhka-Faj-BL3DwXW8.js → LabeledCreatableSingleSelectField-C5A14hjp-Dp3zoxD2.js} +8 -8
  92. package/dist/assets/LabeledDocumentField-DXd7BAH7-EzfLYbDV.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-ChgtJqPr-BuWBYrn7.js → LabeledDropDownFormattedTextField-BVtRyAo1-706o2HXB.js} +7 -7
  94. package/dist/assets/LabeledText-B0bwznDi-CbaJVeOz.js +42 -0
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-QFZXJ5Cv.js → LabeledUserSingleSelectWithSubtitlesField-DXTzXLuP-C7ZxqrMf.js} +19 -19
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CpH0eDWO-CJTlz3Mt.js → LabeledZeniRolesDropDownField-C0AamFZX-DtH7B1QB.js} +28 -28
  97. package/dist/assets/{LinkJETransactionPage-BhV2MnCY-OOF2_Kqe.js → LinkJETransactionPage-DWjs72Wp-CUQI1Z1j.js} +16 -16
  98. package/dist/assets/{LockCardPage-CHv1xi2J-CdU6oKR8.js → LockCardPage-CPUbpfrv-3LEgf1Eq.js} +217 -217
  99. package/dist/assets/{LowBalancePopup-Cb55PGLc-D5jF-boV.js → LowBalancePopup-Cg-JRo7A-zj6pzOkP.js} +6 -6
  100. package/dist/assets/MagicLinkACHDetailsPage-CUhe4LF8-C2tbOI9Z.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-DRiOxSts-fgdDLLEw.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwCrgk9X-BJyrM3xf.js +1 -0
  103. package/dist/assets/MagicLinkSuccessPage-UOywm1sp-BBCToRwV.js +31 -0
  104. package/dist/assets/{MagicLinkTitleSection-BA-i6vzA-CcuMLSrK.js → MagicLinkTitleSection-D5RIlimx-5X1vjx5k.js} +5 -5
  105. package/dist/assets/MailingDetailsSection-OYOVCPaq-B5APfdaG.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-Aer6AWxY-ImakKrC1.js → MyBankConnectionsSettingsPage-D55M4Yo6-DWI72gIp.js} +14 -14
  107. package/dist/assets/MyPendingActivationChargeCardListPage-SxpMobOC-QJU8xHLH.js +6 -0
  108. package/dist/assets/MyProfileSettingsPage-DLvCW9dl-3UYEbBEM.js +85 -0
  109. package/dist/assets/NavBarWithPicker-zd1BopIw-dYFUtFeu.js +30 -0
  110. package/dist/assets/{NavigationArrow-kQWS5Pzb-CpYsSVtE.js → NavigationArrow-CqK2Gxhj-JoTM067o.js} +7 -7
  111. package/dist/assets/{NavigationDots-BQb_Fodq-C4MvpAYN.js → NavigationDots-C7DGhAsk-BigsWf2H.js} +4 -4
  112. package/dist/assets/{NewGlobalMerchantPage-z86XZorn-MrP90led.js → NewGlobalMerchantPage-BH4SIY-b-IspkGBWL.js} +40 -40
  113. package/dist/assets/NoDataChart-Vz2Z_iIL-BHz7pPoV.js +26 -0
  114. package/dist/assets/{NoDataTable-DVe7sQhD-B4Won1bo.js → NoDataTable-B355xDAT-DcAZ4j4d.js} +1 -1
  115. package/dist/assets/{NotFoundPage-B1XCmhSe-BbSR46rN.js → NotFoundPage-Bfp9Pyxw-DVJn2b4k.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-BaN20EGV-BApCLVwG.js → NotificationSettingsPage-1OEolmCL-DbOSpAhH.js} +20 -20
  117. package/dist/assets/NotificationsListConfig-B5Ei8fVY-6YLjvq8F.js +1 -0
  118. package/dist/assets/NotificationsPage-ChGr8-XF-VM1F0z8s.js +685 -0
  119. package/dist/assets/OpExByVendorPage-ae4FK1p6-CuNG361W.js +100 -0
  120. package/dist/assets/{OverlayContainerPage-D4QU0p4o-ZCgtvNt_.js → OverlayContainerPage-D4QU0p4o-CR2TYg0o.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-CXtJhnA_-BuxPvuJl.js → PandLWithForecastPage-ChIPvp4R-qyv7RUis.js} +11 -11
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Deb_ngk6-D78UP0fJ.js → PaymentAccountSetupBillingAddressSection-CnpmZxaM-COq_RoPw.js} +13 -13
  123. package/dist/assets/PeoplePage-D8pfeVRK-n6UzH76T.js +727 -0
  124. package/dist/assets/{Preview-D0sjWWj-.js → Preview-qBYtkSAF.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-ufZlh7Rx-CeYUIWta.js → ProductsCarousel-eVPl5t0I-BGcfqmV6.js} +7 -7
  126. package/dist/assets/{PromoBaseCards-D2UbhBhT-Bd7EQvVS.js → PromoBaseCards-HrcAWM4W-BKT0vHPP.js} +4 -4
  127. package/dist/assets/{QBOConnectionDialog-BrQ71F06-SmKPuRPN.js → QBOConnectionDialog-DgyYkEYY-Cpn7NAss.js} +6 -6
  128. package/dist/assets/QBOSetupSection-C4KJ5iyA-DQVhDTXa.js +79 -0
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-C-HPI4Ng-BAJOw6TG.js → ReimbursementApprovalRuleDetailPage-BbEMTVlp-CzXU9rgb.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-CMpYn5y_-DkCRmTkh.js → ReimbursementApprovalRulesPage-B_1m9CBx-CabMdysS.js} +18 -18
  131. package/dist/assets/ReimbursementDetailPage-8i30hIr0-Dsm2Dpy8.js +314 -0
  132. package/dist/assets/{ReimbursementPromoPage-DXTAY8c7-DX5gy_0D.js → ReimbursementPromoPage-C4bxCDcc-yn3a9m-2.js} +32 -32
  133. package/dist/assets/{ReimbursementSetUpPage-KrGPXTCb-B1V8RiyF.js → ReimbursementSetUpPage-BkJ1-eNw-DtguijtQ.js} +12 -12
  134. package/dist/assets/ReimbursementsBulkReviewDrawerPage-CYZGBUms--1POKdZc.js +1 -0
  135. package/dist/assets/{ReloadCard-vAhL7B8U-t1zAQv25.js → ReloadCard-DrAfrMOy-Dp01MRiJ.js} +8 -8
  136. package/dist/assets/ReportTableViewSelector-DM_Em4lI-DVoP-nO6.js +150 -0
  137. package/dist/assets/{ReportsPage-DKM0gVzR-Bx9Ahq8r.js → ReportsPage-E9MU25NS-BG-K0aaI.js} +4 -4
  138. package/dist/assets/{RevenueChart-BEjDS1u4-CJFUFXPf.js → RevenueChart-CzVs6lFB-CetzZFOl.js} +13 -13
  139. package/dist/assets/{ReviewDetailsPage-BlQLrN9z-Dd93PdNx.js → ReviewDetailsPage-DR0MCIgO-DeTv48zq.js} +53 -53
  140. package/dist/assets/{ReviewOverlay-Bn3TFqfi-Cm7uPP59.js → ReviewOverlay-jDgQyzfL-CrHwzWa9.js} +24 -24
  141. package/dist/assets/RoleWithToolTip-zLU58xb1-CSAiI1iT.js +22 -0
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BMkFjf9Y-BeDlaHIk.js → ScheduleDetailsFixedAssetsPage-D47R-Lyr-CZpPEcr2.js} +13 -13
  143. package/dist/assets/{ScheduleDetailsPage-BP0wdtoP-DST5i2IG.js → ScheduleDetailsPage-DYNnVOEv-D18lxUWs.js} +3 -3
  144. package/dist/assets/ScheduleSequenceTable-CCHqmNhS-C5vei5ej.js +324 -0
  145. package/dist/assets/{ScreenRoutes-B2hsHPEr.js → ScreenRoutes-CyJpBFvr.js} +48 -48
  146. package/dist/assets/{SetUpAccountSection-CoVrSSYL-7U497n--.js → SetUpAccountSection-Bq2qSGml-DouG9J1c.js} +7 -7
  147. package/dist/assets/SignIn-Lqp6Uw4I--saqLsOx.js +491 -0
  148. package/dist/assets/SignInScreen-Crh_lnSg.js +1 -0
  149. package/dist/assets/SpendManagementListViewPage-DUBWXnF--DVg116ep.js +134 -0
  150. package/dist/assets/{SpendManagementPerTabPage-BWDjZyLp-VDOF69nw.js → SpendManagementPerTabPage-RLv6LS-z-CYo8kes0.js} +114 -114
  151. package/dist/assets/{SpendManagementSection-D8rBpC-y-FHAIQmms.js → SpendManagementSection-DJfAJzAL-ig4GL1ZT.js} +22 -22
  152. package/dist/assets/StatementItem-DWaejUx_-C8v9F3EQ.js +31 -0
  153. package/dist/assets/{StatementsPage-DiY2BOcu-APBz42WN.js → StatementsPage-BgYeg1T4-C88dmgbV.js} +5 -5
  154. package/dist/assets/{StatusSwitcher-B9MARTyR-P7RIwFRO.js → StatusSwitcher-C4MmXvmy-xYxIiuBt.js} +4 -4
  155. package/dist/assets/{SubTabSwitcher-C3rtSwro-DGcZkDgz.js → SubTabSwitcher-UW2b0f3g-Dn63h3aS.js} +2 -2
  156. package/dist/assets/{SummaryCard-CShVbqhj-D8ckNEht.js → SummaryCard-BLqrfWMN-BoOQqfaJ.js} +1 -1
  157. package/dist/assets/TaskManagementPage-BmOv6jb0-DMzDUJnW.js +508 -0
  158. package/dist/assets/{TimeRangeSwitcher-DFnX6_WT-CF5mv12I.js → TimeRangeSwitcher-NHpll2Zg-Dr20odtf.js} +4 -4
  159. package/dist/assets/TimeframeSwitcher-DR4B6ENA-CD0Ac63k.js +31 -0
  160. package/dist/assets/TimeframeSwitcherWithToggle-DlZ34Erl-BkLOXZy3.js +31 -0
  161. package/dist/assets/{TopExCard-dI_WEGWb-Dg0iyuar.js → TopExCard-BKUm1fVu-CdS4qfxw.js} +6 -6
  162. package/dist/assets/{TopExDetailPage-BWy5E8Lp-z65VL4y3.js → TopExDetailPage-BpaKGiXB-_eDwMn8-.js} +18 -18
  163. package/dist/assets/TransactionActivityLogPage-C4oS0b8d-5ZoA1pgW.js +195 -0
  164. package/dist/assets/TransactionDetailPage-Dz5UCI7c-DCbRyu-c.js +903 -0
  165. package/dist/assets/TransactionList-7sC4Vvux-BdQNJsG3.js +153 -0
  166. package/dist/assets/{TransactionListBig-DWQXH4ID-BXeSpaXE.js → TransactionListBig-C1i2HOEm-BoHPxhV4.js} +18 -18
  167. package/dist/assets/TransactionListPage-CTzZTWJh-rMP8UEHn.js +35 -0
  168. package/dist/assets/{TransactionVendorDetailPage-CzfJ5b_3-5A99k1pe.js → TransactionVendorDetailPage-BhEUsSHE-DWkVZWnN.js} +15 -15
  169. package/dist/assets/{TransferDrawerPage-6z-MoZZP-BDrE92fY.js → TransferDrawerPage-enFS8KsH-pWKe3GIV.js} +29 -29
  170. package/dist/assets/{TreasuryOverviewPage-CF_ter0o-C1Xt_81i.js → TreasuryOverviewPage-BT--Br6F-DZD_F62z.js} +36 -36
  171. package/dist/assets/{TreasuryPromoPage-Do-PTcjI-CNI9ltkm.js → TreasuryPromoPage-DsUxXGv2-CbCXpGfI.js} +27 -27
  172. package/dist/assets/{TreasuryStatementsPage-l_HC4zsb-B6l_d1_x.js → TreasuryStatementsPage-D7NeRKLM-FnJOs5A5.js} +3 -3
  173. package/dist/assets/{TreasuryTaxLetterPage-B8YxWytK-4a2peJ00.js → TreasuryTaxLetterPage-Cj6nJmhq-eRbAIBG9.js} +3 -3
  174. package/dist/assets/{TrendChart-C6B61CAm-DSOogQNb.js → TrendChart-CWaL1-sD-jHXMg1Jt.js} +4 -4
  175. package/dist/assets/{TrendWithTransactions-Bp3vhaPa-ltcNaAHT.js → TrendWithTransactions-ULrBa2b0-DV504Izy.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-cbFqKAv4-CYzZB7up.js → UncategorizedAccountsMappingPage-D8b01XUy-DqqC0SGI.js} +18 -18
  177. package/dist/assets/{UnitIntegrationPage-DZ0ZpE5p-DeFm36Ch.js → UnitIntegrationPage-KbEwifey-DfbiDH3c.js} +5 -5
  178. package/dist/assets/UploadAdditionalDocumentOverlay-Cxxuws-w-q1izSlj8.js +38 -0
  179. package/dist/assets/Vendor2FAPopup-Dm6Ot_5k-CeyePLNN.js +1 -0
  180. package/dist/assets/VendorACHDetailsPage-DMhwUboX-DW77y7-e.js +1 -0
  181. package/dist/assets/{VendorDetailPage-C4g_Gfsl-PDTA30fp.js → VendorDetailPage-BwbESVFq-BHZW_2ez.js} +89 -89
  182. package/dist/assets/VendorDomesticWireDetailsPage-DU47133D-BNz0vLWP.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-Ckt2MiVN-DkK-z8t4.js → VendorFiling1099EditablePage-Dycvl3IG-DtHtcSbL.js} +15 -15
  184. package/dist/assets/VendorFirstReviewPage-COk5-4Mm-BUPA8fWX.js +730 -0
  185. package/dist/assets/{VendorInternationalWireDetailsPage-Dz8mMD8d-gzpiXQNr.js → VendorInternationalWireDetailsPage-Di0TU5Db-B1HiqwDL.js} +22 -22
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Do345R_v-M_TSksW9.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-BT-RADSV-DmS6BFzF.js → VendorsAccountsSection-BPuqPLC8-CD6vaKdE.js} +4 -4
  188. package/dist/assets/{VerifyDevice-Cxc9CVMi-Brvk1hge.js → VerifyDevice-BRCRNTf1-Dw4vKeVk.js} +11 -11
  189. package/dist/assets/{VideoPlayer-9UkKMhGy-QE0dUH77.js → VideoPlayer-BgWCDJp3-CbPNc--2.js} +2 -2
  190. package/dist/assets/{VideoPopup-rfiYmtio-CZD9BvVe.js → VideoPopup-ckAw3yZZ-CPBR9ffY.js} +2 -2
  191. package/dist/assets/{WarningsDrawerPage-DrUA4asI-BplyTtEg.js → WarningsDrawerPage-D0VOjlPL-Cmk9Gclc.js} +7 -7
  192. package/dist/assets/{ZeniAccountDetailPage-K016HgQt-AvGfMJEL.js → ZeniAccountDetailPage-DxdKUJ_i-8Rps5gMW.js} +24 -24
  193. package/dist/assets/{ZeniAccountListViewPage-1oZZynB1-i09iw6my.js → ZeniAccountListViewPage-DxCB40sG-D7wpBJpb.js} +17 -17
  194. package/dist/assets/{ZeniAccountNavBarPieces-C6Oicpue-BKtADLa5.js → ZeniAccountNavBarPieces-D7o4_8jk-DU75NHos.js} +3 -3
  195. package/dist/assets/{ZeniAccountPromoPage-BCgys-YM-COB-XAgg.js → ZeniAccountPromoPage-BlfBjcVV-D8slteBQ.js} +22 -22
  196. package/dist/assets/ZeniAccountSetupPage-akgqrbmw-xtslv-BN.js +36 -0
  197. package/dist/assets/ZeniCopyright-BrtqzLbb-BE2v7OcH.js +1 -0
  198. package/dist/assets/{ZeniTransferAmountSlider-DVJ0puXA-eVW41JkY.js → ZeniTransferAmountSlider-yfG_RSE5-Chw30zZt.js} +11 -11
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-Cs3ZFbTn.js → add-to-wallet-DgdBD8_G-DgloNLoG.js} +1 -1
  200. package/dist/assets/{analytics-hCfYtzJT.js → analytics-BxsZVqMD.js} +30 -30
  201. package/dist/assets/{analyticsHelper-DKGNBdrX.js → analyticsHelper-BROaWFlP.js} +1 -1
  202. package/dist/assets/{analyticsHelper-CT5zOInj-Du0DTPF_.js → analyticsHelper-YXL3oVeL-st_q3oRE.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-CzrrwgSg.js → arrow-south-east-round-PEovUgvH-Cgw5LgRs.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-B_xw5P5j.js → auto-transfer-rule-mbafm5D3-DEP8Cseu.js} +1 -1
  205. package/dist/assets/{chartTypes-Ddw_3-6f-BMc10nJG.js → chartTypes-BPQ65VEE-6yZpeJsO.js} +1 -1
  206. package/dist/assets/commonDimensions-DY0eA-Tl-D8wklKVF.js +1 -0
  207. package/dist/assets/{commonTypes-B-foaEwJ-DqsczfuL.js → commonTypes-WZYufpaN-dYh7B5Qi.js} +1 -1
  208. package/dist/assets/{constants-y09M8DFT.js → constants-cBgt-jnp.js} +1 -1
  209. package/dist/assets/{core-Ce1HnmCU.js → core-CCdM5htn.js} +1 -1
  210. package/dist/assets/{dash.all.min-BLN3VaU-.js → dash.all.min-BhdX5A-b.js} +1 -1
  211. package/dist/assets/{detailCommon-Cpgf9GLg-CC3Vv-5k.js → detailCommon-cqZF9ZV8-CcqFhiCw.js} +6 -6
  212. package/dist/assets/downloadPdf-3uDsBfRK-CGEKdVDQ.js +1 -0
  213. package/dist/assets/{empty-BjLibp41.js → empty-21UCvCWa.js} +1 -1
  214. package/dist/assets/{empty-CHvpDZ25.js → empty-Ci7PTPdn.js} +1 -1
  215. package/dist/assets/epic-DjY7Y3Uv.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-tPfmdYN9.js → gift-box-Cmt9OgIZ-fL_gav59.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DgWqYmly.js → graphic-no-data-l-DU4J8fDt-CsPk6hIb.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-X9wgEFDB.js → graphic-no-data-net-burn-l-CzmycA0m-CK0OnqK_.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-CvblpTUh.js → handshake-BPg58FML-CJV_gJfO.js} +1 -1
  220. package/dist/assets/{helper-DP3YY99s-D6TxHUGT.js → helper-GwFcgf4f-QTj7P4Bk.js} +3 -3
  221. package/dist/assets/{index-Dwr9jsgf.js → index-8HE4yJ5t.js} +1 -1
  222. package/dist/assets/{index-DV0-LoHG.js → index-BsaB-Va2.js} +1 -1
  223. package/dist/assets/{index-BWlQ-rZN.js → index-C96UtQPZ.js} +1 -1
  224. package/dist/assets/{index-CbBDw148.js → index-Cq3X29cS.js} +4594 -4589
  225. package/dist/assets/{index-DXatjVel.js → index-D2yPgh5G.js} +1 -1
  226. package/dist/assets/{index-BMSo18eq.js → index-DBail5F5.js} +1 -1
  227. package/dist/assets/{index-CnMDhZ-z.js → index-DQtDqiLj.js} +1 -1
  228. package/dist/assets/{lexical-Dk2CPrxk.js → lexical-BfjdJw9p.js} +1 -1
  229. package/dist/assets/{liveblocks-ivZsDCw2.js → liveblocks-hPir54fv.js} +1 -1
  230. package/dist/assets/{lottie-solWV_WO.js → lottie-B9oE3WTk.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-CkbJ6R1I-DIVOAa5P.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-QJI_OYzu-DfVKFmO9.js → mapSectionWithAcOnlyToTreeNode-BR34hkWh-Dcg0Ex62.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-BDHpjDEs-DAaIJCY0.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-B-58xc9r-DNQTilLS.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-DNryKtmS-D24Y9ZFz.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-6kNSnV0m-BkRLjeRM.js +1 -0
  237. package/dist/assets/{mui-BLUOobNq.js → mui-DzE-7sTl.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-mLiSYxOb.js → page-detail-CWX5S47F-CU2PSbaV.js} +1 -1
  239. package/dist/assets/panelSelectedMixin-Cddsb26L-CcYFb3nR.js +3 -0
  240. package/dist/assets/{radio-default-CiSgisfh-BwLFYKqj.js → radio-default-CiSgisfh-Bxc-V1Pu.js} +1 -1
  241. package/dist/assets/{react-gwEklu5z.js → react-BZ8J0jw1.js} +2 -2
  242. package/dist/assets/{react-DiVyX7it.js → react-BldneNt8.js} +1 -1
  243. package/dist/assets/{react-DwW_czRA.js → react-CCRxUGC8.js} +3 -3
  244. package/dist/assets/{react-nPRE2jd8.js → react-CI8KeqtZ.js} +1 -1
  245. package/dist/assets/{react-BR1Eke5i.js → react-CrnvOta1.js} +1 -1
  246. package/dist/assets/{react-ChJntTSM.js → react-DukPPAPu.js} +1 -1
  247. package/dist/assets/{react-BZ0TRoDf.js → react-IwpftXW_.js} +1 -1
  248. package/dist/assets/{react-OybbRboE.js → react-iFe9VXnX.js} +1 -1
  249. package/dist/assets/{recharts-J8hRG6fl.js → recharts-CiLmNGsl.js} +1 -1
  250. package/dist/assets/{sentry-ClS5bwGc.js → sentry-DQ_HstYV.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-DyyzcGvz.js → shield-DOlUxcFf-B21f1_cN.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-CU-N01Ne-BfeZ-0De.js +1 -0
  253. package/dist/assets/toChartData-BIERIIE--CxJg6nKe.js +1 -0
  254. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-DWftVCta.js +1 -0
  255. package/dist/assets/{uploadAttachment-DUpHzqMe-BojPE85u.js → uploadAttachment-htF-2xC2-BK-WmHcD.js} +21 -21
  256. package/dist/assets/uploadReceipts-Dge0cNF1-DNapZCC1.js +1 -0
  257. package/dist/assets/{url-VN-yF4_H.js → url-D8jqtRfm.js} +1 -1
  258. package/dist/assets/{url-ckMdLfnk.js → url-vYaM0QEj.js} +1 -1
  259. package/dist/assets/{useLongPress-GCK2COYQ-BBsdk_o7.js → useLongPress-GCK2COYQ-BEGNcNvC.js} +1 -1
  260. package/dist/assets/{usp-line-BBd1wKwW-DYPeqq64.js → usp-line-BBd1wKwW-R5RCG5WU.js} +1 -1
  261. package/dist/assets/{utils-DG8PAOHO.js → utils-wDk5ojg7.js} +1 -1
  262. package/dist/assets/{zeni-epic-state-W0HMFHDj.js → zeni-epic-state-B4gyGBI3.js} +34 -34
  263. package/dist/index.html +1 -1
  264. package/package.json +4 -4
  265. package/dist/assets/ACHDetailsPage-D2Xav-UW-Bfz777OP.js +0 -21
  266. package/dist/assets/AccountInfoPage-B8-8kUGD-BK55XEFQ.js +0 -18
  267. package/dist/assets/AccountRow-BiEYR4Y1-CNf1wUw2.js +0 -298
  268. package/dist/assets/AddAddressForCardDrawer-DTnfk8K7-BnQvSUBa.js +0 -6
  269. package/dist/assets/ApAgingDetailPage-BRYQMwo2-s_dBzDV6.js +0 -46
  270. package/dist/assets/ApprovalRulesSettingsPage-5MYC1I6k-BnQPq9AM.js +0 -47
  271. package/dist/assets/ArAgingDetailPage-DwRkcLEu-BW0txT0n.js +0 -46
  272. package/dist/assets/BankAccountWarningSection-CpxVDMSZ-Ch8LfSH9.js +0 -51
  273. package/dist/assets/BillDetailPage-D0NLFZXA-B588FQUy.js +0 -266
  274. package/dist/assets/BillPayPromoPage-BMcP4EU5-Bsnvs3ku.js +0 -84
  275. package/dist/assets/BillingSettingsPage-GtRUqSZm-C4t1HRnl.js +0 -44
  276. package/dist/assets/BillsBulkReviewDrawerPage-DAUoo9pq-DtA8Ct8E.js +0 -1
  277. package/dist/assets/BusinessVerificationPage-9gZbBDL6-CHA00m4Y.js +0 -138
  278. package/dist/assets/ConfettiBurst-CdB5fRMt-BpKzQcdE.js +0 -1
  279. package/dist/assets/CurrencySelectField-BDqU4HVy-C2JVgM83.js +0 -139
  280. package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-3rxX8yl4.js +0 -1
  281. package/dist/assets/DashboardSidebarBackgroundAnimation-C3Ovv-ob-BQ7iP2W9.js +0 -12
  282. package/dist/assets/EditPeoplePage-pi5RclAj-aeWIx4uA.js +0 -55
  283. package/dist/assets/EditReimbursementDetailPage-CIUcImns-mFlw6SLO.js +0 -865
  284. package/dist/assets/EntityDetailPage-OTKTVNMD-D-mJ3GEZ.js +0 -18
  285. package/dist/assets/ExpenseAutomationPage-BDLCJbFw-CupfErQE.js +0 -1703
  286. package/dist/assets/GlobalReviewListPage-DEzj0RVG-BBBmhZlV.js +0 -291
  287. package/dist/assets/InsightsSection-D-oCmrir-wvwFdRQ1.js +0 -27
  288. package/dist/assets/IntegrationsSettingsPage-D-hfghuq-2m6MIXGG.js +0 -57
  289. package/dist/assets/InternationalWireVerificationPage-CkSmhOrS-CaFCfg4n.js +0 -65
  290. package/dist/assets/InvitePeoplePage-Z-2L7lWc-1iMjMN9Y.js +0 -12
  291. package/dist/assets/InvoiceUploadSection-C8hytmay-CTpYBdkI.js +0 -140
  292. package/dist/assets/LabeledAddressValueField-BoHS44YO-35DxIth1.js +0 -45
  293. package/dist/assets/LabeledDocumentField-CnRk5aKZ-DcxblEUp.js +0 -41
  294. package/dist/assets/LabeledText-2EDpuXZ4-BVmqJGFx.js +0 -42
  295. package/dist/assets/MagicLinkACHDetailsPage-Dnp01hnF-BFHG0jRe.js +0 -1
  296. package/dist/assets/MagicLinkDomesticWireDetailsPage-B36rsikS-DcnN13AA.js +0 -1
  297. package/dist/assets/MagicLinkInternationalWireDetailsPage-Zo4oNZez-BAtejZPN.js +0 -1
  298. package/dist/assets/MagicLinkSuccessPage-09NLbjFG-DFIfT_H_.js +0 -31
  299. package/dist/assets/MailingDetailsSection-EwtoQ2TZ-BHY-JTcx.js +0 -21
  300. package/dist/assets/MyPendingActivationChargeCardListPage-Ddy4bAEY-fdzETguQ.js +0 -6
  301. package/dist/assets/MyProfileSettingsPage-DMz-6h9F-IpwM4wHQ.js +0 -85
  302. package/dist/assets/NavBarWithPicker-D8WNahg--CFu9mkBL.js +0 -30
  303. package/dist/assets/NoDataChart-CyYJ6icu-CuklCFBU.js +0 -26
  304. package/dist/assets/NotificationsListConfig-BOW_TmPC-BGtwKQH4.js +0 -1
  305. package/dist/assets/NotificationsPage-C9efAgjo-CFPf0lT0.js +0 -685
  306. package/dist/assets/OpExByVendorPage-DXeBU3-z-F-6uCCSP.js +0 -100
  307. package/dist/assets/PeoplePage-DXC2CtOt-DkUGvRPZ.js +0 -675
  308. package/dist/assets/QBOSetupSection-EOFscEW--B1BK3OKQ.js +0 -79
  309. package/dist/assets/ReimbursementDetailPage-CfmICHZb-Cf4HY_lZ.js +0 -314
  310. package/dist/assets/ReimbursementsBulkReviewDrawerPage-l2mYNEKn-wbpm_uz3.js +0 -1
  311. package/dist/assets/ReportTableViewSelector-Y97ney3W-Dg_MzkQZ.js +0 -150
  312. package/dist/assets/RoleWithToolTip-DhBFvJea-kKwCSQso.js +0 -22
  313. package/dist/assets/ScheduleSequenceTable-D-rZ4ftr-C0RmvNPI.js +0 -324
  314. package/dist/assets/SignIn-BoAejo7r-n6KjQ5Ul.js +0 -491
  315. package/dist/assets/SignInScreen-DeJvfsin.js +0 -1
  316. package/dist/assets/SpendManagementListViewPage-D3eISFuA-BPINZ7i2.js +0 -134
  317. package/dist/assets/StatementItem-Cu6dlAsl-DRYmB2mf.js +0 -31
  318. package/dist/assets/TaskManagementPage-RVS8nv0n-B2vVJK8U.js +0 -508
  319. package/dist/assets/TimeframeSwitcher-CW08yYgo-kAXguHFR.js +0 -31
  320. package/dist/assets/TimeframeSwitcherWithToggle-DJOCWqpZ-BsIrdDc5.js +0 -31
  321. package/dist/assets/TransactionActivityLogPage-DjhEIUYm-BaKCdH85.js +0 -195
  322. package/dist/assets/TransactionDetailPage-CuxqQd8U-CcjegigH.js +0 -903
  323. package/dist/assets/TransactionList-80KjM8Kg-CGTGojKw.js +0 -153
  324. package/dist/assets/TransactionListPage-DC08rCC9-DlnDb8ev.js +0 -35
  325. package/dist/assets/UploadAdditionalDocumentOverlay-BKY6hK51-EpFUtbZq.js +0 -38
  326. package/dist/assets/Vendor2FAPopup-DezpDfp8-Y9jdKibf.js +0 -1
  327. package/dist/assets/VendorACHDetailsPage-C8TWKYfc-uTPUEvcG.js +0 -1
  328. package/dist/assets/VendorDomesticWireDetailsPage-BhJQ-Vmn-CVY3V18u.js +0 -1
  329. package/dist/assets/VendorFirstReviewPage-CIKRaTax-DYL9Vnpu.js +0 -730
  330. package/dist/assets/VendorInternationalWireSwiftDetailsPage-XcV7Ot44-BeZ-zVI3.js +0 -1
  331. package/dist/assets/ZeniAccountSetupPage-BubBgkoa-CqgM5g3P.js +0 -36
  332. package/dist/assets/ZeniCopyright-BxIwmms--CqjNcAjr.js +0 -1
  333. package/dist/assets/commonDimensions-ClmbdehE-KHSo1WEP.js +0 -1
  334. package/dist/assets/downloadPdf-DfRYmfsd-0BtHMfPn.js +0 -1
  335. package/dist/assets/epic-CIKGU6HT.js +0 -2
  336. package/dist/assets/mapLoadingInProgressToTreeNode-C0YIUOnb-CktDojF3.js +0 -1
  337. package/dist/assets/mapSpacerToTreeNode-DKDsz0vw-NSXq93HU.js +0 -1
  338. package/dist/assets/mapTimeframeBalancesToTreeNode-DqDJAeAj-qlQ8jZsM.js +0 -1
  339. package/dist/assets/mapTimeframeBalancesToTreeNode-J3b1nb_T-BWh1BdCI.js +0 -1
  340. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-BsKSlOwq.js +0 -1
  341. package/dist/assets/panelSelectedMixin-CzfD5-Zs-BwkAFvgw.js +0 -4
  342. package/dist/assets/toCOABalancesWithID-AzKAZ-Cv-B-XUgDD0.js +0 -1
  343. package/dist/assets/toChartData-BEjMhb7--BmOva86j.js +0 -1
  344. package/dist/assets/uploadReceipts-Dge0cNF1-B2u8Ku84.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as Ee,J as Ie,aR as N,a9 as Ge,cG as Je,F as Te,aW as Ce,V as t,fe as qe,p as q,y as s,bD as Ze,T as Ye,ac as Ke,fx as ve,dR as Qe,fy as Xe,bx as et,dH as tt,aS as it,o as a,fA as nt,u as n,cj as ot,cK as at,ew as lt,fJ as ke,fK as $e,gj as st,i as rt,aQ as Pe,H as Ae,bN as ct,ai as dt,bu as ut}from"./index-CbBDw148.js";import{a as o}from"./sentry-ClS5bwGc.js";import{n as i}from"./mui-BLUOobNq.js";import{bJ as mt}from"./zeni-epic-state-W0HMFHDj.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BKY6hK51-EpFUtbZq.js";import"./liveblocks-ivZsDCw2.js";import"./core-Ce1HnmCU.js";import"./recharts-J8hRG6fl.js";import"./lottie-solWV_WO.js";import"./analytics-hCfYtzJT.js";import"./lexical-Dk2CPrxk.js";import"./utils-DG8PAOHO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="9dbcaf41-e788-473e-9882-b4cc7638daec",e._sentryDebugIdIdentifier="sentry-dbid-9dbcaf41-e788-473e-9882-b4cc7638daec")}catch{}})();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 ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:c,updateStatus:F,mileageStatus:b}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,I]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Q,ne=S===!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:[y.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(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{y as Ee,J as Ie,aS as N,aa as qe,cI as Ge,b as Ve,aX as Ce,V as t,fg as Je,p as J,x as s,bE as Ze,L as Ye,ae as Qe,fz as ve,dS as Xe,fA as Ke,by as et,dI as tt,aT as it,o as a,fC as nt,u as n,ck as ot,cM as at,ey as lt,fL as ke,fM as $e,gl as st,a as rt,ac as Pe,c as Ae,bO as ct,ak as dt,bv as ut}from"./index-Cq3X29cS.js";import{a as o}from"./sentry-DQ_HstYV.js";import{n as i}from"./mui-DzE-7sTl.js";import{bJ as mt}from"./zeni-epic-state-B4gyGBI3.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Cxxuws-w-q1izSlj8.js";import"./liveblocks-hPir54fv.js";import"./core-CCdM5htn.js";import"./recharts-CiLmNGsl.js";import"./lottie-B9oE3WTk.js";import"./analytics-BxsZVqMD.js";import"./lexical-BfjdJw9p.js";import"./utils-wDk5ojg7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="67ac3c1f-3960-4089-88e7-aff0bf60b419",e._sentryDebugIdIdentifier="sentry-dbid-67ac3c1f-3960-4089-88e7-aff0bf60b419")}catch{}})();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 ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:Q}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:c,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:K}=Ve.getLocalizedStrings(),{reimbursement:ee}=K,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||Q(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!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:[y.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(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Lt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Tt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:V=>{V.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,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"};
@@ -9,11 +9,11 @@ import{d as Ee,J as Ie,aR as N,a9 as Ge,cG as Je,F as Te,aW as Ce,V as t,fe as q
9
9
  width: 100%;
10
10
  flex-direction: column;
11
11
  justify-content: flex-start;
12
- `,wt=i.div`
13
- display: flex;
14
12
  `,bt=i.div`
13
+ display: flex;
14
+ `,wt=i.div`
15
15
  ${e=>`${ge.title.style(e.windowSize)}`};
16
- color: ${e=>e.isError===!0?q.important:e.theme.colors.primary};
16
+ color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
17
17
  `,St=i(dt)`
18
18
  display: flex;
19
19
  align-items: center;
@@ -33,7 +33,7 @@ import{d as Ee,J as Ie,aR as N,a9 as Ge,cG as Je,F as Te,aW as Ce,V as t,fe as q
33
33
  border-radius: ${a.sp11};
34
34
  width: fit-content;
35
35
  height: fit-content;
36
- color: ${e=>e.isDarkMode?q.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
36
+ color: ${e=>e.isDarkMode?J.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
37
37
  max-width: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
38
38
  max-height: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
39
39
  margin-right: ${e=>h.iconContainerMarginRight.valuePx(e.windowSize)};
@@ -82,19 +82,19 @@ import{d as Ee,J as Ie,aR as N,a9 as Ge,cG as Je,F as Te,aW as Ce,V as t,fe as q
82
82
  height: ${a.sp6};
83
83
  width: 100%;
84
84
  position: relative;
85
- `,Tt=i.label`
85
+ `,Vt=i.label`
86
86
  display: flex;
87
87
  padding-left: ${e=>h.infoLabelPaddingLeft.valuePx(e.size)};
88
- color: ${e=>e.hasError===!0?q.important:e.additionalInfoTextColor??e.theme.colors.hero};
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};
91
- `,Vt=i.div`
91
+ `,Lt=i.div`
92
92
  display: flex;
93
93
  position: absolute;
94
94
  top: 50%;
95
95
  transform: translateY(-50%);
96
96
  right: ${a.sp3};
97
- `,Lt=i(ut)`
97
+ `,Tt=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,J as Ie,aR as N,a9 as Ge,cG as Je,F as Te,aW as Ce,V as t,fe as q
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,g={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",G="remiAccount",J="remiMileage",Qt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:b,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Q,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:I,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ie(),[B,V]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ve,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:he,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),we=N(se.fetchState),be=N(re.fetchState),z=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&V(!0),B&&_==="In-Progress"&&v==="Completed"&&V(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||we==="In-Progress"&&se.fetchState==="Completed"||be==="In-Progress"&&re.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,we,se.fetchState,be,re.fetchState]);const Ue=z.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),He=async(A,R)=>{const m=R[G];if(A.includes(G)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const w=fe.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&Q(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.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,C.id,C.accType)}}else if(A.includes(J)){const w=R[J];b(w)}};o.useEffect(()=>{const A=z.watch((R,{name:m})=>{m!=null&&R!=null&&Je(()=>He(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&I()},[I,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Se,ce=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Se.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new Ce(W.colors.brandColorJadeLight):new Ce(W.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?V(!0):K?.()};return t.jsxs(zt,{children:[t.jsx(qe,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>V(!1),style:{backgroundColor:q.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:d,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>V(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:Y,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(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Ke,{...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(Qe,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Xe,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:G,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:J,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:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.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:L.fetchState==="In-Progress"||Ve.fetchState==="In-Progress",isDisabled:p!=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"})]})},zt=i.div`
106
+ `,g={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:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:Q,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:w,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:K,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:I,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:V})=>{const H=Ee(),u=Ie(),[O,L]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:T,accountUpdateStatus:Le,plaidConnectionDetails:le,allBankAccounts:Te,companyRemiInfo:Me,companyBillPayInfo:he,mileageRateConfig:ze,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:B,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(T.fetchState),be=N(se.fetchState),we=N(re.fetchState),M=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!O&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&L(!0),O&&_==="In-Progress"&&v==="Completed"&&L(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||be==="In-Progress"&&se.fetchState==="Completed"||we==="In-Progress"&&re.fetchState==="Completed")&&M.reset(pe(e))},[_,v,M,e,be,se.fetchState,we,re.fetchState]);const Ue=M.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),We=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const b=fe.find(me=>me.id===m.fundingAccount.selectedOption);b!=null&&X(m.fundingAccount.selectedOption,b.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.zeniAccountId!=m.account.selectedOption){const b=m.account.allOptions.find(me=>me.value===m.account.selectedOption);b!=null&&typeof b.label=="string"&&l.trackConnectBankLink(b.value,b.label,"reimbursement"),U(m.account.selectedOption,C.id,C.accType)}}else if(A.includes(G)){const b=R[G];w(b)}};o.useEffect(()=>{const A=M.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>We(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&T.fetchState==="Completed"&&I()},[I,ye,T.fetchState]);const{commonSetUp:Se,spendManagement:He}=Ve.getLocalizedStrings(),{reimbursement:Oe}=He,{reimbursementSetup:z}=Oe,{setUp:k}=Se,ce=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&ze?.denominationConversions.amount!=null,de=Me?.isReimbursementEnabled===!0,Be=ce?Se.setUp.setupVerifiedSubTitle:z.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new Ce(H.colors.brandColorJadeLight):new Ce(H.colors.brandColorJadeDark),Ne=()=>{!O&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?L(!0):Q?.()};return t.jsxs(Mt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:O,onClose:()=>L(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:d,updateStatus:T,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>L(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:z.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Be}),_e?t.jsx(Ft,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Qe,{...M,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:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Ke,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Te,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:K,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:V,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:B.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:z.approvalSubTitle,header:B.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:B.length>0?Fe:void 0})]})})})]}),ce&&!de&&B.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:z.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:T.fetchState==="In-Progress"||Le.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:z.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},Mt=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
+ `,zt=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,J as Ie,aR as N,a9 as Ge,cG as Je,F as Te,aW as Ce,V as t,fe as q
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  row-gap: ${e=>g.sectionRowGap.valuePx(e.windowSize)};
140
- `,pe=e=>{const{allBankAccounts:p,allFundingAccounts:$,mileageDetails:j,primaryFundingAccount:P}=e,{localData:d}=j;return{[G]:{fundingAccount:{selectedOption:P?.id,allOptions:$.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:P?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[J]:{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:p,allFundingAccounts:$,mileageDetails:j,primaryFundingAccount:P}=e,{localData:d}=j;return{[q]:{fundingAccount:{selectedOption:P?.id,allOptions:$.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:P?.zeniAccountId,allOptions:p.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};
@@ -0,0 +1 @@
1
+ import{ay as W,fZ as J,V as _,cs as q,ct as z,cu as H,kj as K,a_ as Z,b as G}from"./index-Cq3X29cS.js";import{a as f}from"./sentry-DQ_HstYV.js";import{H5 as Q}from"./zeni-epic-state-B4gyGBI3.js";import{u as X}from"./ReviewOverlay-jDgQyzfL-CrHwzWa9.js";import"./liveblocks-hPir54fv.js";import"./core-CCdM5htn.js";import"./recharts-CiLmNGsl.js";import"./mui-DzE-7sTl.js";import"./lottie-B9oE3WTk.js";import"./analytics-BxsZVqMD.js";import"./lexical-BfjdJw9p.js";import"./utils-wDk5ojg7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e1ffa4e4-3507-492f-ab2a-9ddb4693417b",e._sentryDebugIdIdentifier="sentry-dbid-e1ffa4e4-3507-492f-ab2a-9ddb4693417b")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=G.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:u,onCloseOverlay:t})=>{const{fetchState:s,bulkSubmissionFetchState:p,bulkOperationTypeSelected:r,currentTab:b,currentSubTab:y}=e,g=!1,T=W(),l=J(T),[v,m]=f.useState(!1),[h,A]=f.useState(j(e,g,o,l)),[w,D]=f.useState(g),[P,te]=f.useState(0),[S,$]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(P===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(j(e,!1,o,l)),()=>{clearInterval(R)}),[h.length,P,w,e.fetchState,g,e,o,l]);const E=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,F=()=>{const{title:c,description:k}=Y(x);$({type:"reject",title:c,description:k,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(r,b,y),m(!0)},L={onOkClick:c=>{m(!1);const k=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(r,b,y,Q(k.map(I=>I?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{m(!1)}},{title:O,description:U}=ee(s,x,E,w),C=e.fetchState==="Completed"&&x===0,N=()=>{i.trackReimbursementBulkSubmit(r,b,y),d(r)},V=()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:s!=="Completed"||r==="reject"&&p==="In-Progress",isLoading:p==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:N,style:r==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&p==="In-Progress",isLoading:r==="reject"&&p==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:F,style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(q,{titleComponent:_.jsx(H,{children:S.title}),descriptionComponent:_.jsx(z,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:L,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(X,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:u,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:V(),cancelButton:M,hideCancel:C}})]})},j=(e,o,i,d)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const s=K(i,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${a.by} ${s?.firstName} ${s?.lastName}`:a.strings.empty},rightSideText:{title:Z("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:t.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:d,reports:u,payment:t,payments:s}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",s).replaceAll("__report__",u)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},ee=(e,o,i,d)=>{const{has:u,have:t,report:s,reports:p,are:r,is:b,do_:y,does:g}=a.texts,T=o>1,l=i>1;let v="",m="";return e==="Completed"&&!d?(v=n.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:n.report).replace("<_has_>",l?t:u),o===0?m=n.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?p:s).replace("<_do_>",l?y:g):m=`${o}/${i} ${n.reviewPage.reportsReviewed.description.replace("__report__",i>1?p:s).replace("<_is_>",T?r:b)}`):(v=n.reviewPage.reportsReviewing.title.replace("__report__",l?p:s),m=n.reviewPage.reportsReviewing.description.replace("__report__",l?p:s)),{title:v,description:m}};export{_e as default};
@@ -1,10 +1,10 @@
1
- import{d as l,V as r,aN as c,b3 as f,F as y,aQ as m,aT as h,bF as g,ai as u,o as a,b4 as b}from"./index-CbBDw148.js";import{n as s}from"./mui-BLUOobNq.js";import{a as d}from"./sentry-ClS5bwGc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ebf148f5-e09b-4c42-a312-cecc529bac4c",e._sentryDebugIdIdentifier="sentry-dbid-ebf148f5-e09b-4c42-a312-cecc529bac4c")}catch{}})();function w({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{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 x=s(h)`
1
+ import{y as l,V as r,aP as a,b4 as x,b as y,ac as m,aU as h,bG as g,ak as f,o as c,b5 as b}from"./index-Cq3X29cS.js";import{n as d}from"./mui-DzE-7sTl.js";import{a as s}from"./sentry-DQ_HstYV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="5f1cbb62-3102-4a9e-a11f-ad1cfc921ed2",e._sentryDebugIdIdentifier="sentry-dbid-5f1cbb62-3102-4a9e-a11f-ad1cfc921ed2")}catch{}})();function w({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{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=d(h)`
2
2
  justify-content: flex-start;
3
- `;function T({dimension:e,animated:o}){const t=l();return r.jsx(c,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(c,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(b,{children:({height:n,width:i})=>r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=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"})),C=s(h)`
3
+ `;function T({dimension:e,animated:o}){const t=l();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 D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(b,{children:({height:n,width:i})=>r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.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"})),C=d(h)`
4
4
  justify-content: space-between;
5
- `,k=s.div`
6
- height: ${a.sp10};
7
- width: ${a.sp10};
5
+ `,k=d.div`
6
+ height: ${c.sp10};
7
+ width: ${c.sp10};
8
8
  background: ${e=>e.theme.colors.background};
9
9
  border-radius: 50%;
10
10
  cursor: pointer;
@@ -19,8 +19,8 @@ import{d as l,V as r,aN as c,b3 as f,F as y,aQ as m,aT as h,bF as g,ai as u,o as
19
19
  color: ${e=>e.theme.colors.primary};
20
20
  }
21
21
  }
22
- `,v=s(u)`
22
+ `,v=d(f)`
23
23
  color: ${e=>e.theme.colors.champion};
24
- `,$=s(u)`
24
+ `,$=d(f)`
25
25
  color: ${e=>e.theme.colors.hero};
26
- `,E=s(j)``;function K({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(c,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(C,{children:[r.jsxs(v,{children:[n??f(o)," "]}),r.jsx(k,{children:r.jsx(E,{})}),r.jsx($,{children:y.getLocalizedStrings().card.failedText})]})})}export{T as E,D as I,K as T};
26
+ `,E=d(j)``;function V({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(C,{children:[r.jsxs(v,{children:[n??x(o)," "]}),r.jsx(k,{children:r.jsx(E,{})}),r.jsx($,{children:y.getLocalizedStrings().card.failedText})]})})}export{T as E,D as I,V as T};
@@ -0,0 +1,150 @@
1
+ import{y as ee,J as de,cf as xe,aa as ye,V as o,aq as _e,cg as te,ae as we,x as P,aT as $e,o as a,b as oe,ch as ve,ci as ke,cj as Ce,ck as je,cl as Ie,ao as he,cm as Se,ak as Ne,aG as X,bG as Pe,u as f,aX as Oe,an as De,av as Fe}from"./index-Cq3X29cS.js";import{a as u,P as ue}from"./sentry-DQ_HstYV.js";import{n as d}from"./mui-DzE-7sTl.js";import{R as O,I as Te}from"./CollapsableReportTable-C4hqC6Uj-CeOhK0qJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="70ef95b7-0687-4f45-a3ed-620df4839085",e._sentryDebugIdIdentifier="sentry-dbid-70ef95b7-0687-4f45-a3ed-620df4839085")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=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}),Ee=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ae(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:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ee(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,n){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ae(n)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:n.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
2
+ padding: 0 ${a.sp3} 0 ${a.sp3};
3
+ border: 1px solid ${e=>e.theme.colors.primary};
4
+ background: ${e=>e.theme.colors.grey5};
5
+ border-radius: ${a.sp1};
6
+ display: flex;
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ position: relative;
10
+ height: ${a.sp8};
11
+ cursor: pointer;
12
+ `,Me=d(De)`
13
+ color: ${e=>e.theme.colors.primary};
14
+ margin-top: -2px;
15
+ `,Re=d(Fe)`
16
+ color: ${e=>e.theme.colors.hero};
17
+ width: 12px;
18
+ height: 12px;
19
+ margin: auto ${a.sp0};
20
+ :hover {
21
+ color: ${e=>e.theme.colors.primary};
22
+ }
23
+ `,Ve=e=>{const{value:r,onClick:n}=e,t=ee();return o.jsxs(Le,{onClick:n,children:[o.jsx(Me,{style:{color:t.colors.primary},children:r}),o.jsx(Re,{})]})},ze=ue.memo(Ve);function Ye({backgroundColor:e,foregroundColor:r,animated:n,width:t,height:l}){return o.jsxs(Pe,{speed:2,width:t,height:l,viewBox:`0 0 ${t} ${l}`,animate:n!=!1,backgroundColor:e,foregroundColor:r,style:{marginBottom:a.sp2},children:[o.jsx("rect",{x:"45",y:f[3],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:f[8],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:f[4]})]})}function pe({nestedClass:e,isLastNode:r,config:n,parentNodeIDs:t}){const l=O("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:l,isLastNode:r,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:n}};return h.children=e.children.map((y,_)=>pe({nestedClass:y,config:n,isLastNode:_===e.children.length-1,parentNodeIDs:[...t,l]})),h}function Ge(e,r){const n=e.map((t,l)=>{const h=O("checkbox_and_name_only",[],t.classId[0]),y={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:r}},_=t.children.map(D=>pe({nestedClass:D,config:r,isLastNode:l===t.children.length-1,parentNodeIDs:[h]}));return y.children.push(..._),y});return{config:r,headerNodes:[],contentNodes:[...n]}}function He(e,r){Object.assign(e.config,r);const n=e.contentNodes;return n.forEach(t=>fe(t,r)),{config:r,headerNodes:[],contentNodes:[...n]}}function fe(e,r){Object.assign(e.reportElementData.config,r),e.children.forEach(n=>fe(n,r))}const se={contentPaddingLeft:new P(f[3],f[3],f[2]),contentPaddingRight:new P(f[3],f[3],f[2])},We=d.div`
24
+ height: ${e=>e.height}px;
25
+ width: 100%;
26
+ `,qe=({reportId:e,firstMonthOfFY:r,nestedClassHierarchy:n,classesToBeFilteredOut:t,selectedView:l,showClassAccountNumber:h,scrollPosition:y,onScroll:_,nodeOpenStatus:D,onNodeCollapseToggled:U,onToggleCheck:F})=>{const z=ee(),Y=de(),[v,j]=u.useState(void 0),[A,w]=u.useState(!1),[L,T]=u.useState({}),[g,M]=u.useState(void 0),[B,k]=u.useState(l),G="none",E=c=>l==="account_group"?!0:t?.length>0?t.find(i=>i[0]===c[0])!=null:!1,I=(c,i)=>{w(!0),T(c),F?.(c,i,l==="account_group"?!0:void 0),$(c,i)},$=(c,i)=>{const m=H(c);for(const b of m.children)F?.(b.classId,i),$(b.classId,i)},H=c=>{let i=n.filter(m=>m.classId[0]===c[c.length-1])[0];for(let m=c.length-2;m>=0;m--)i=i.children.filter(b=>b.classId[0]===c[m])[0];return i},W=c=>{if(c.length>1){const i=H(c.slice(1));let m=!1;for(const b of i.children)if(t.find(q=>q[0]===b.classId[0])===void 0){m=!0;break}m===!0?F?.(i.classId,!0):F?.(i.classId,!1),T(i.classId)}};u.useEffect(()=>{A&&W(L)}),u.useEffect(()=>{const c={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:G,firstMonthOfFY:r,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:E,showClassAccountNumber:h};if(v==null||!X(g,n)||!X(B,l)||A===!0){const i=Ge(n,c);M(n),j(i),k(l)}else{const i=He(v,c);j(i),k(l)}},[n,l,t]);const[J,K]=u.useState(5),Z=c=>{const i=c+f[6];K(i)};return v!=null?o.jsx(We,{height:J,children:o.jsx(Te,{backgroundColor:l==="classes"?new Oe(z.colors.background):void 0,rootNodes:v,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(Y),right:se.contentPaddingRight.value(Y)},scrollPosition:y,onScroll:_,nodeOpenStatus:D,onNodeCollapseToggled:U,onToggleCheck:I,onReportTableHeightChanged:Z})}):null},C={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(f[5],f[5]),containerWidth:new P(150,400,400)},Ue=d.div`
27
+ position: relative;
28
+ pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
29
+ `,Je=d.div`
30
+ display: flex;
31
+ flex-direction: column;
32
+ width: ${e=>C.containerWidth.valuePx(e.windowSize)};
33
+ `,Ke=d(je)`
34
+ display: flex;
35
+ flex-direction: row;
36
+ width: fit-content;
37
+ cursor: pointer;
38
+ color: ${e=>e.theme.colors.primary};
39
+ .dropdownIcon {
40
+ color: ${e=>e.theme.colors.hero};
41
+ }
42
+ &:hover {
43
+ .dropdownIcon {
44
+ color: ${e=>e.theme.colors.primary};
45
+ }
46
+ }
47
+ gap: ${a.sp2};
48
+ margin-top: 12px;
49
+ align-items: center;
50
+ `,Ze=d(Ie)`
51
+ color: ${e=>e.theme.colors.hero};
52
+ width: ${a.sp4};
53
+ height: ${a.sp4};
54
+ &:hover {
55
+ color: ${e=>e.theme.colors.primary};
56
+ }
57
+ `,Qe=d.div`
58
+ display: flex;
59
+ width: ${e=>e.width}px;
60
+ align-items: flex-start;
61
+ justify-content: space-between;
62
+ flex-direction: column;
63
+ border: 1px solid ${e=>e.theme.colors.grey5};
64
+ border-radius: ${a.sp1};
65
+ box-shadow: ${e=>`${a.sp0} 2px ${a.sp2} ${e.theme.colors.dropShadowHover}`};
66
+ margin-top: 10px;
67
+ padding-top: ${a.sp1};
68
+ background: ${e=>e.theme.colors.grey5};
69
+ `,ne=d.div`
70
+ display: flex;
71
+ align-items: flex-start;
72
+ justify-content: space-between;
73
+ flex-direction: column;
74
+ width: 100%;
75
+ background-color: ${e=>e.checked===!0?e.theme.colors.background:"transparent"};
76
+ & input[type="radio"] {
77
+ -webkit-appearance: none;
78
+ -moz-appearance: none;
79
+ appearance: none;
80
+ display: inline-block;
81
+ width: ${a.sp3};
82
+ height: ${a.sp3};
83
+ padding: 2px;
84
+ background-clip: content-box;
85
+ border: 1px solid ${e=>e.theme.colors.primary};
86
+ border-radius: 50%;
87
+ margin: ${a.sp0} ${a.sp2} ${a.sp0} ${a.sp2};
88
+ cursor: pointer;
89
+ }
90
+
91
+ input[type="radio"]:checked {
92
+ background-color: ${e=>e.theme.colors.primary};
93
+ }
94
+
95
+ input[type="radio"]:disabled {
96
+ cursor: default;
97
+ }
98
+
99
+ &:hover {
100
+ background: ${e=>e.theme.colors.background};
101
+ }
102
+ `,ae=d(Ne)`
103
+ height: ${a.sp6};
104
+ display: flex;
105
+ justify-content: center;
106
+ align-items: center;
107
+ `,Xe=d.div`
108
+ display: flex;
109
+ flex-wrap: wrap;
110
+ justify-content: flex-start;
111
+ height: 100%;
112
+ width: inherit;
113
+ overflow-y: auto;
114
+ .hide-icon {
115
+ display: none;
116
+ }
117
+ min-height: 165px;
118
+ max-height: 353px;
119
+ overscroll-behavior: contain;
120
+ `,eo=d.div`
121
+ width: 100%;
122
+ height: 65px;
123
+ `,re=d.label`
124
+ color: ${e=>e.theme.colors.primary};
125
+ cursor: ${e=>e.disabled===!0?"default":"pointer"};
126
+ `,oo=d(he)`
127
+ display: flex;
128
+ align-items: center;
129
+ column-gap: ${a.sp2};
130
+ margin-left: ${a.sp5};
131
+ color: ${e=>e.theme.colors.hero};
132
+ &:hover {
133
+ cursor: pointer;
134
+ color: ${e=>e.theme.colors.primary};
135
+ }
136
+ `,to=d.div`
137
+ display: flex;
138
+ flex: 1;
139
+ width: inherit;
140
+ background-color: ${e=>e.theme.colors.grey3};
141
+ min-height: 1px;
142
+ max-height: 1px;
143
+ `,so=d(Se)`
144
+ width: ${a.sp3};
145
+ height: ${a.sp3};
146
+ `,no=d(he)`
147
+ margin-left: ${a.sp5};
148
+ margin-top: -12px;
149
+ color: ${e=>e.theme.colors.hero};
150
+ `,{reportViewSelector:N,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:n,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:D,isClassViewDisabled:U,downloadPage:F,showAccountGroups:z=!0,onResyncReports:Y,isPageFetchInProgress:v=!1,lastRefreshSuccessTime:j}){const A=ee(),w=de(),[L,T]=u.useState(!1),[g,M]=u.useState(l),[B,k]=u.useState({}),G=(s,p)=>(s.forEach(x=>{p.push(x.classId),p=G(x.children,p)}),p),E=G(n,[]),[I,$]=u.useState(g==="classes"?h:E),H=t!=="Completed"||g==="classes"&&I.length===E.length,W=u.useRef(!1),[J,K]=u.useState(!1),Z=u.useRef(s=>{s&&!W.current&&(W.current=!0,K(!0))});xe({componentName:`reports.${e}`,enabled:J});const c=s=>s==="classes"?N.classes.label:z===!0?N.accountGroups.label:N.accounts.label,i=ye({mode:"all"}),m=i.handleSubmit(()=>{T(!1),g==="classes"?D?.("classes",I):D?.("account_group")}),b=s=>{if(M(s),s==="classes")k({}),$([]);else{$(E);let p={};n.forEach(x=>{const S=O("checkbox_and_name_only",[],x.classId[0]);p=Object.assign({},p,{[S]:!1})}),k(p)}},q=()=>{L===!0&&Q(),T(!L);let s={};n.forEach(p=>{const x=O("checkbox_and_name_only",[],p.classId[0]);l==="account_group"||I.find(S=>S[0]===p.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),k(s)},ge=(s,p,x)=>{if(x===!0&&(M("classes"),$(E)),p===!0){const S=O("checkbox_and_name_only",[],s[0]);B[S]=!0,k(B),$(R=>R.filter(be=>be[0]!==s[0]))}else{const S=O("checkbox_and_name_only",[],s[0]);B[S]=!1,I.find(R=>R[0]===s[0])===void 0&&$(R=>[...R,s])}},Q=()=>{T(!1),M(l),$(h)},me=()=>{v===!1&&Y?.()};return u.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};n.forEach(p=>{const x=O("checkbox_and_name_only",[],p.classId[0]);s=Object.assign({},s,{[x]:!1})}),k(s)}},[t]),o.jsx(_e,{onClickAway:Q,children:o.jsxs(Ue,{ref:Z.current,isDisabled:U??!1,children:[F===!0?o.jsx(ze,{value:c(l),onClick:()=>{_?.(),q()}}):o.jsxs(Je,{windowSize:w,children:[o.jsxs(Ke,{onClick:s=>{s.preventDefault(),_?.(),q()},children:[o.jsx(Ze,{className:"dropdownIcon"}),c(l)]}),l==="classes"?o.jsx(oo,{onClick:me,children:v?N.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${te(j)}`,o.jsx(so,{})]})}):null]}),L?o.jsx(we,{...i,children:o.jsx("form",{id:ce(ie),onSubmit:m,children:o.jsxs(Qe,{width:C.width.value(w),children:[o.jsx(ne,{checked:g==="account_group",children:o.jsxs(ae,{onClick:()=>g!=="account_group"?b("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>b(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:z===!0?N.accountGroups.dropdownLabel:N.accounts.dropdownLabel})]})}),o.jsx(to,{}),o.jsxs(ne,{checked:g==="classes",children:[o.jsxs(ae,{onClick:()=>t==="Completed"?b("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?b(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:N.classes.dropdownLabel})]}),v||t!=="Completed"?null:o.jsx(no,{children:j&&`${te(j)}`}),t==="Completed"?o.jsx(Xe,{id:"sectionformcontainer",children:o.jsx(ao,{reportId:e,firstMonthOfFY:r,nestedClassHierarchy:n,classesToBeFilteredOut:I,selectedView:g,nodeOpenStatus:B,showClassAccountNumber:y,onToggleCheck:ge})}):o.jsx(Ye,{backgroundColor:A.colors.grey3,foregroundColor:A.colors.grey4,width:C.width.value(w),height:C.height.value(w),animated:!0})]}),o.jsx(eo,{children:o.jsx($e,{formId:ce(ie),primaryBtn:{label:le.save,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:H,size:"small"},showCancel:!0,cancelBtn:{label:le.cancel,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},onClick:Q,size:"small",shouldResetOnCancel:!0},style:{padding:a.sp3}})})]})})}):null]})})}const ao=ue.memo(qe,X);export{ho as g,uo as x};
@@ -1,9 +1,9 @@
1
- import{J as W,d as G,F as y,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o as w,aU as we,T as ye,y as B,bQ as Ce,u as S,w as A,aE as K,v as xe,aW as Oe,as as Re,bM as Ae}from"./index-CbBDw148.js";import{a as T,P as X}from"./sentry-ClS5bwGc.js";import{n as _}from"./mui-BLUOobNq.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Te,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-W0HMFHDj.js";import{m as z,l as q}from"./analyticsHelper-CT5zOInj-Du0DTPF_.js";import{x as Ne}from"./ReportTableViewSelector-Y97ney3W-Dg_MzkQZ.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-DFnX6_WT-CF5mv12I.js";import{M as Me}from"./TimeframeSwitcherWithToggle-DJOCWqpZ-BsIrdDc5.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-4f9deyJS-BVIQGklQ.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-Cq8bhaYC-sMsxrigZ.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-QJI_OYzu-DfVKFmO9.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-J3b1nb_T-BWh1BdCI.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-BsKSlOwq.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-C0YIUOnb-CktDojF3.js";import"./liveblocks-ivZsDCw2.js";import"./core-Ce1HnmCU.js";import"./recharts-J8hRG6fl.js";import"./lottie-solWV_WO.js";import"./analytics-hCfYtzJT.js";import"./lexical-Dk2CPrxk.js";import"./utils-DG8PAOHO.js";import"./TimeframeSwitcher-CW08yYgo-kAXguHFR.js";import"./page-detail-CWX5S47F-mLiSYxOb.js";import"./AccountRow-BiEYR4Y1-CNf1wUw2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="eb43d29c-4ef4-42ae-9d32-7339cf8e20d3",e._sentryDebugIdIdentifier="sentry-dbid-eb43d29c-4ef4-42ae-9d32-7339cf8e20d3")}catch{}})();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=F("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,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===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??F("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=Y({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=y.getLocalizedStrings().reports.sections,n=y.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=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),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(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.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=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),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 Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({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=y.getLocalizedStrings().reports,d=y.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,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}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=Y({balances:u,config:t}),f=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:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.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=Y({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(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
1
+ import{J as W,y as G,b as y,ay as ge,V as r,bQ as _e,ac as T,bF as be,bE as Se,o as w,aV as we,L as ye,x as B,bR as Ce,u as S,K as A,aG as Q,H as xe,aX as Oe,au as Re,bN as Ae}from"./index-Cq3X29cS.js";import{a as P,P as X}from"./sentry-DQ_HstYV.js";import{n as _}from"./mui-DzE-7sTl.js";import{bg as Z,Fy as Be,FH as ve,FI as $,FJ as Le,FK as Pe,FL as Te,FM as Ie,FN as Ne,FO as ee,FP as te}from"./zeni-epic-state-B4gyGBI3.js";import{m as z,l as q}from"./analyticsHelper-YXL3oVeL-st_q3oRE.js";import{x as ke}from"./ReportTableViewSelector-DM_Em4lI-DVoP-nO6.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-NHpll2Zg-Dr20odtf.js";import{I as Me}from"./TimeframeSwitcherWithToggle-DlZ34Erl-BkLOXZy3.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-CfWDWIbC-DcGZOT8A.js";import{I as je,R as F,p as ne}from"./CollapsableReportTable-C4hqC6Uj-CeOhK0qJ.js";import{D as oe,T as ae,C as j,L as Ee,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BR34hkWh-Dcg0Ex62.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-DNryKtmS-D24Y9ZFz.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-6kNSnV0m-BkRLjeRM.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-CkbJ6R1I-DIVOAa5P.js";import"./liveblocks-hPir54fv.js";import"./core-CCdM5htn.js";import"./recharts-CiLmNGsl.js";import"./lottie-B9oE3WTk.js";import"./analytics-BxsZVqMD.js";import"./lexical-BfjdJw9p.js";import"./utils-wDk5ojg7.js";import"./TimeframeSwitcher-DR4B6ENA-CD0Ac63k.js";import"./page-detail-CWX5S47F-CU2PSbaV.js";import"./AccountRow-C7_pSX9U-C_uj4ob-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3112cb11-93b4-4f8e-9f42-7afcf59f5b6b",e._sentryDebugIdIdentifier="sentry-dbid-3112cb11-93b4-4f8e-9f42-7afcf59f5b6b")}catch{}})();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=F("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,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===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??F("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=y.getLocalizedStrings().reports.sections,n=y.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=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),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(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:F("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=y.getLocalizedStrings().reports.sections,n=y.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=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),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 Ie(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=y.getLocalizedStrings().reports,d=y.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,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}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}),f=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(Ee({section:c,sectionType:s,numOfBalances:f,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:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.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 J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.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 Qe({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const f=W(),s=G(),[c,C]=T.useState(void 0),[x,j]=T.useState(void 0),v=!(f==="small"||f==="medium-compact"),V="name+balances_actual",M=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(D=>$(D));break}case"profit_and_loss_by_classes":{const h=e,D=(h.sections.expenses?.balances?.length??0)>0?h.sections.expenses:null,he=(h.sections.income?.balances?.length??0)>0?h.sections.income:null,H=D??he;H?.additionalBalances!=null&&(m=H.additionalBalances.map(me=>$(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>$(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>$(h));break}}return m.length>0&&m.find(h=>h.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!K(x,e)||g===!0){const h=Ke(e,m,v,g);j(e),C(h)}else{const h=We(c,m,e,v);C(h)}},[u,e,g]);const[R,k]=T.useState(5),N=m=>{const h=m+135;k(h)},fe=m=>m?.trackPageLoaded(Xe(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:fe}),r.jsx(Je,{height:R,children:r.jsx(Ee,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:J.contentPaddingLeft.value(f),right:J.contentPaddingRight.value(f)},onAccountClick:p==null?void 0:(m,h)=>{p(m,h)},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,h)=>i?.(e.reportId,m,h),onReportTableHeightChanged:N,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 He(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 A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},et=_.div`
6
+ `;function Ke({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const f=W(),s=G(),[c,C]=P.useState(void 0),[x,E]=P.useState(void 0),v=!(f==="small"||f==="medium-compact"),V="name+balances_actual",M=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(D=>$(D));break}case"profit_and_loss_by_classes":{const h=e,D=(h.sections.expenses?.balances?.length??0)>0?h.sections.expenses:null,he=(h.sections.income?.balances?.length??0)>0?h.sections.income:null,Y=D??he;Y?.additionalBalances!=null&&(m=Y.additionalBalances.map(me=>$(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>$(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>$(h));break}}return m.length>0&&m.find(h=>h.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};P.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!Q(x,e)||g===!0){const h=Qe(e,m,v,g);E(e),C(h)}else{const h=We(c,m,e,v);C(h)}},[u,e,g]);const[R,N]=P.useState(5),k=m=>{const h=m+135;N(h)},fe=m=>m?.trackPageLoaded(Xe(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:fe}),r.jsx(Je,{height:R,children:r.jsx(je,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:J.contentPaddingLeft.value(f),right:J.contentPaddingRight.value(f)},onAccountClick:p==null?void 0:(m,h)=>{p(m,h)},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,h)=>i?.(e.reportId,m,h),onReportTableHeightChanged:k,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Qe=(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 A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.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{J as W,d as G,F as y,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o
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 y.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 I={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 y.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 I={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{J as W,d as G,F as y,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o
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(ye,{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 Jt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==f?.accountViewMode&&a?.(O),R&&n?.(R)};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 f=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&f?.accountViewMode==="account_group"&&x.push("detailed");const[j,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:j,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ft,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ht,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:f!=null&&e.dataAvailable!=null?r.jsx($e,{defaultOptions:f,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:(R,k,N)=>{d(l,R,k,N)},onTimeframeSelectionChanged:(R,k,N)=>{p?.(R,k,N)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.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 C=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,C,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??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",f=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Me,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.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(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Q(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(Rt,{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:f}):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(Ne,{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 Q=(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:y.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 A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=X.memo(Qe,(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),yt=_.div`
101
+ `,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{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 Jt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==f?.accountViewMode&&a?.(O),R&&n?.(R)};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 f=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&f?.accountViewMode==="account_group"&&x.push("detailed");const[E,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:E,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ft,{"data-testid":T("report-page-error-reload-page"),children:[r.jsx(ht,{"data-testid":T("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:f!=null&&e.dataAvailable!=null?r.jsx($e,{defaultOptions:f,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:(R,N,k)=>{d(l,R,N,k)},onTimeframeSelectionChanged:(R,N,k)=>{p?.(R,N,k)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.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 C=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,C,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??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",f=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":T("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Me,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.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(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:K(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:K(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(Rt,{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:f}):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(ke,{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 K=(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:y.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 A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=X.memo(Ke,(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&&Q(e[`${n}`],t[`${n}`]),!0),yt=_.div`
102
102
  padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
103
103
  `,Ct=_.div`
104
104
  margin-top: ${w.sp3};