@zeniai/web-app-ui 4.14.29-dev → 4.14.30-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 (386) hide show
  1. package/dist/assets/ACHDetailsPage-CQdbfxHV-BW88pIYa.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BCxF5hNI-DwsSzcsx.js → AIPerformancePage-jyNXVGMj-Bs4Wcfnt.js} +13 -13
  3. package/dist/assets/AccountInfoPage-CiPtog_o-B4btRIXv.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-Bj0kaRHv-CjMeZGo_.js +149 -0
  5. package/dist/assets/{AccountLockedInfoModal-CKODwo_y-D1V0TVL_.js → AccountLockedInfoModal-EbQpyRJx-DeA2eRRt.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-B2m7w0mL-C5Y15orT.js → AccountReconDetailsDrawerPage-CK1QV13E-BSUxm7rf.js} +3 -3
  7. package/dist/assets/{AccountRow-G9Hw9KCo-CT1w9ZhF.js → AccountRow-B3Sz6a-V-GlNhkavB.js} +7 -7
  8. package/dist/assets/{AccountsPromoCardStack-C1-hQWvB-BQ8MpMFD.js → AccountsPromoCardStack-DJtz56-u-D5uyYQuY.js} +6 -6
  9. package/dist/assets/AddAddressForCardDrawer-BDtxj9h6-Xx-rQDHp.js +6 -0
  10. package/dist/assets/{AddToWalletPage-BLdfTvYw-1DCwK82d.js → AddToWalletPage-Czepun8f-MGSdB8OM.js} +4 -4
  11. package/dist/assets/{AddressRoutes-BQkJFfvp.js → AddressRoutes-CmvRhhab.js} +1 -1
  12. package/dist/assets/{AddressScreen-Dl895CZ9.js → AddressScreen-Cb00RwYZ.js} +2 -2
  13. package/dist/assets/{AgingReportsPage-C6aasTzQ-C63SyJmI.js → AgingReportsPage-DzAVDq_i-BP-WG6Wy.js} +5 -5
  14. package/dist/assets/{AiCfoScreen-IdwAAJXG.js → AiCfoScreen-CZVtCrsQ.js} +2 -2
  15. package/dist/assets/{AllUserItems-CjeF5SWi-CeRsiH4z.js → AllUserItems-BEoRQT-v-9OnCgvS-.js} +4 -4
  16. package/dist/assets/{ApAgingDetailPage-BWtvu1dO-Br56Wlkb.js → ApAgingDetailPage-55JdoIHh-kk28-9yG.js} +8 -8
  17. package/dist/assets/{AppBasePage-MKRsDpmx-DMLcxkrr.js → AppBasePage-CLye29uw-B08L49eb.js} +2 -2
  18. package/dist/assets/{AppDrawerContent-DN2hf6ff-5NhbUBos.js → AppDrawerContent-CDawrmfz-DqagnYqP.js} +6 -6
  19. package/dist/assets/{ApprovalRulesSettingsPage-0XbPzs2a-C8UoHZRv.js → ApprovalRulesSettingsPage-BHUZdWCO-tMTnXaFd.js} +1 -1
  20. package/dist/assets/{ArAgingChart-DSx_E9ZM-RnIrRkZm.js → ArAgingChart-DeL9nNI7-Bj8y0fT6.js} +2 -2
  21. package/dist/assets/{ArAgingDetailPage-C8h1id5v-HwBRgj9f.js → ArAgingDetailPage-CuG65EQs-CXt16x8B.js} +3 -3
  22. package/dist/assets/{AttachmentView-CqKnI6Xt-AOGCu7iZ.js → AttachmentView-C5anq6-B-BkQi2I92.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-CSaW4oJh-DywAYbnn.js → BalancesInsightWithToolTip-1PK_fwhP-BOcx7wZs.js} +6 -6
  24. package/dist/assets/{BankAccountSection-Dhp7GLZA-FNVqovjK.js → BankAccountSection-BUJoSOk8-BG4ByPDH.js} +2 -2
  25. package/dist/assets/BankAccountWarningSection-BQaoV2yQ-BLOJsai8.js +51 -0
  26. package/dist/assets/{BankConnectionsSettingsPage-CDPUFu2k-BBx4P7dZ.js → BankConnectionsSettingsPage-DRDS5xzS-CGYqJS-4.js} +14 -14
  27. package/dist/assets/{BillDetailPage-BWBGE0pg-CYoOWtCP.js → BillDetailPage-CtVVaqTN-BwEQZwAf.js} +4 -4
  28. package/dist/assets/{BillPayApprovalRoutes-BvnC9SqN.js → BillPayApprovalRoutes-DwRul1Fq.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-B_XoB7xi-CXJBKdTH.js → BillPayApprovalRuleDetailPage-6GHCsDkX-ClsaXk5H.js} +4 -4
  30. package/dist/assets/{BillPayApprovalRulesPage-5okdFn01-D6fpe4cT.js → BillPayApprovalRulesPage-QKjq-qVP-DTJcefrH.js} +6 -6
  31. package/dist/assets/{BillPayPromoPage-GoR4wxn7-Cd3jtttJ.js → BillPayPromoPage-_n9uoXTN-DW34nsnh.js} +1 -1
  32. package/dist/assets/{BillPayRoutes-DqZf2rOO.js → BillPayRoutes-D22Q6pQL.js} +8 -8
  33. package/dist/assets/{BillPaySetUpPage-CKWIFJ92-Dr75QuFi.js → BillPaySetUpPage-DNYX24VA-DLV9gKNt.js} +6 -6
  34. package/dist/assets/{BillingSettingsPage-AjSQYumd-GqgYiFI4.js → BillingSettingsPage-Btv3yiNs-M_OusRvc.js} +6 -6
  35. package/dist/assets/{BillsBulkReviewDrawerPage-DsNKfhkT-CXzE-Qir.js → BillsBulkReviewDrawerPage-BiLLeGke-Bs5f4SMl.js} +1 -1
  36. package/dist/assets/{BoxItem-BWNurtfc-J9WJ61G4.js → BoxItem-Dqp4SNlI-EUjyx5Zm.js} +1 -1
  37. package/dist/assets/BusinessVerificationPage-_8Wg_S5G-ChiNdD4I.js +138 -0
  38. package/dist/assets/{BusinessVerificationPageScreen-CJ17INUy.js → BusinessVerificationPageScreen-B_00ICvM.js} +2 -2
  39. package/dist/assets/{BusyIndication-H_iNZOWd-BNmJKxof.js → BusyIndication-BZLVwIo8-6s8wSi7T.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-BAWc12F9-CekGLfjU.js → CardNumberSubText-12zyW5qQ-c22fv1fM.js} +8 -8
  41. package/dist/assets/{CashbackDetailPage-BhCHvGxj-nllESilf.js → CashbackDetailPage-B8-TDuv8-Dd6aEuJQ.js} +11 -11
  42. package/dist/assets/{ChargeCardDetailPage-D9-V0pjZ-CTp6LwRI.js → ChargeCardDetailPage-Bdz5L2ko-CaBbXfBZ.js} +44 -44
  43. package/dist/assets/{ChargeCardListPage-CZFi8l0_-CO-jS4Wx.js → ChargeCardListPage-EuJ1VXck-BU5r2hWM.js} +19 -19
  44. package/dist/assets/{ChargeCardListTable-DiJUp9-c-hw3gHlrw.js → ChargeCardListTable-SgjwYd8W-EVdaCbR4.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-CW9gtO0w-oF9Kbl5Z.js → ChargeCardPaymentHistoryPage-BC2DkmZT--xdPwk1t.js} +1 -1
  46. package/dist/assets/{ChargeCardPromoPage-CiZDV925-B7JK6cJL.js → ChargeCardPromoPage-C-z0xtuN-qFHF_adM.js} +6 -6
  47. package/dist/assets/{ChargeCardRoutes-BumOjc7r.js → ChargeCardRoutes-DV8TKacG.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-C5jXY5P--Da4gT9DT.js → ChargeCardSetupPage-ByLoLZE_-DIekUpHc.js} +2 -2
  49. package/dist/assets/{ChargeCardStatementsPage-CetLgQ8l-CHHBhChm.js → ChargeCardStatementsPage-C4XdqPO1-BSM3bO35.js} +2 -2
  50. package/dist/assets/{CheckDepositDrawerPage-BYfqgSGk-58W0gPrS.js → CheckDepositDrawerPage-D5X61CKc-CyEf-jUu.js} +8 -8
  51. package/dist/assets/{CollapsableReportTable-BhbPzkAB-C83Y_pXv.js → CollapsableReportTable-D7zD4-h0-CdsTnLhf.js} +1 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-CMcuDe-X-CNo7Ot8a.js → CompanyOfficerDetailsSection-w86_5FXJ-CDmgqN3N.js} +93 -93
  53. package/dist/assets/{CompanyPassportCard-DImW2Dm8-pP6x_qCR.js → CompanyPassportCard-tpE1lXug-CLl-IbcU.js} +9 -9
  54. package/dist/assets/{CompanyPassportPage-DT2W9QE1-DJLwOOR3.js → CompanyPassportPage-bND99CJN-D7hjvVvQ.js} +23 -23
  55. package/dist/assets/{CompanyPassportScreen-Ckk3Aa0n.js → CompanyPassportScreen-DR-zdvAJ.js} +1 -1
  56. package/dist/assets/{CompleteProfile-BOabRQRQ-Cdf3T9vg.js → CompleteProfile-B5W07hcs-mOeGRg8M.js} +1 -1
  57. package/dist/assets/ConfettiBurst-C0DFgWJj-DC0n_rE6.js +1 -0
  58. package/dist/assets/{ConnectionAuthScreen-CJIuvxwT.js → ConnectionAuthScreen-D4VaoAIy.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-CUV-Iost.js → ConstrainedInnerElement-CgdnMeoA-bMF_z_bc.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-D86akQ-H-a9byVQeU.js → CreateOrEditVendorPage-CrQh8JCh-BX5wTD-m.js} +6 -6
  61. package/dist/assets/{CreditCardPaymentDrawerPage-MS34Pxyw-S-FNpO-K.js → CreditCardPaymentDrawerPage-BoVmLCHh-Blea7AvV.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-BsuzTGXR-DG4V_Nis.js → CurrencySelectField-D2azwi1T-CSrQI1j0.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-BP-GIrmI-cXKCGBAv.js → CustomerOnboardingActivationPage-DxuEGe6X-BPuiwcIL.js} +5 -5
  64. package/dist/assets/CustomerOnboardingAuthScreen-DLH-rYdF.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-DS0-65s7-CeH0I7wN.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CISAUodZ-DSVMFFq4.js → CustomerOnboardingDetailPageSkeleton-DRGKainD-Y7JaILNu.js} +7 -7
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-DgMQ5prq-DEUVMq4v.js → CustomerOnboardingNoStepsPage-C--jDBQq-BgvTeh9S.js} +10 -10
  68. package/dist/assets/{CustomerOnboardingPage-QvCZDMFw-pwPfUUii.js → CustomerOnboardingPage-BXZSl2im-DDrc-wX_.js} +6 -6
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-Bt1cV23--C-IqxjRL.js → CustomerOnboardingProductSuitePage-BJmYX0kI-C3qX-GBN.js} +1 -1
  70. package/dist/assets/{CustomerOnboardingRoutes-GPk7JXLd.js → CustomerOnboardingRoutes-DqfIHwc7.js} +4 -4
  71. package/dist/assets/{Dashboard-DdAePVSx-CyfCOyra.js → Dashboard-yhqyXPbZ-CPcltsfF.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-ccn0JYfk-DfPZgIh7.js → DashboardReportPage-BG4StCjY-CzFGaujV.js} +8 -8
  73. package/dist/assets/{DashboardRoutes-DbCVxvoA.js → DashboardRoutes-Bawz4pw0.js} +3 -3
  74. package/dist/assets/DashboardSidebarBackgroundAnimation-DsWKmIXY-BuOmk2Nk.js +12 -0
  75. package/dist/assets/{DefaultTenantHome-DnjlKX8o.js → DefaultTenantHome-B10KVon4.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-BijpyBiZ-CNN7AUw4.js → DepositAccTransactionItem-5ZEPnNxa-3AfijWCl.js} +6 -6
  77. package/dist/assets/DepositAccTransactionListPage-BR8d0Kun-DVyGTLJU.js +66 -0
  78. package/dist/assets/{DomesticWireDetailScreen-CMHXbUdU.js → DomesticWireDetailScreen-CMEoUywc.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-B10Vx6K5-BgPOj6ev.js → DomesticWireDetailsPage-wGIWvhgQ-CmjPpsLr.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-BiIbEvq6-DkggD5hU.js → DownloadOverlay-SLvxfa6B-CQ7BxjF9.js} +16 -16
  81. package/dist/assets/{DrawerPage-4aE01eRo-CbGkLlgW.js → DrawerPage-CFdTV10k-BenpSUGv.js} +4 -4
  82. package/dist/assets/{DrawerScreen-Bqlol_ka.js → DrawerScreen-B7BWNi51.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-BWjOJqch-DMjcjWgK.js → EditPeoplePage-C-Y62PJ0-BgijqRCf.js} +7 -7
  84. package/dist/assets/{EditReimbursementDetailPage-Dcw8QlH6-CKpHH0Rb.js → EditReimbursementDetailPage-BYpXof8e-CdyZTm2g.js} +14 -14
  85. package/dist/assets/{EntityDetailPage-DseDMalq-D030AWbJ.js → EntityDetailPage-CgDHg6g5-B_vQblwz.js} +2 -2
  86. package/dist/assets/{EntityDetailRoutes-DKPg6KvF.js → EntityDetailRoutes-nFrPna9t.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-D1o-WKT9-B4D8PhFo.js → EntitySummarySection-B2uG3-Zh-DoF2hAYB.js} +4 -4
  88. package/dist/assets/{ExpenseAutomationOverviewPage-BIGlSzsy-DDeWTiVS.js → ExpenseAutomationOverviewPage-CrtNuarm-C8tGkYQU.js} +7 -7
  89. package/dist/assets/{ExpenseAutomationPage-BUARFwSx-BgUO5pJv.js → ExpenseAutomationPage-CWPnIMSu-BUnHNcGe.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-CFAuM0iq.js → ExpenseAutomationRoutes-DxRmXEnL.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-BKpxo5VW-BeZ2tWeR.js → ExpressPayPage-CsI_DUc6-BKAOKKa9.js} +8 -8
  92. package/dist/assets/{FeaturePreviewPage-CfqYjofS-Dw_fXJXh.js → FeaturePreviewPage-B67a68N9-BPSn99tM.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-Ctx49exK.js → FeaturePreviewScreen-D_cOMPjM.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-CJzIGe2N-q0pn7uac.js → FollowStepsSection-CgjzMm02-DPMc3VYJ.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-B4qWm75N-BekP71Yj.js → GlobalReviewListPage-CIfK-0rd-F3X4MQ4k.js} +5 -5
  96. package/dist/assets/{InformationCardStack-BXWxFJnm-DZneOpmz.js → InformationCardStack-qKld10kr-IVC5wYc5.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-iUppdWya-IGcayZ6m.js → InsightsCardStack-Bbh77o6f-Dr_8r9pW.js} +8 -8
  98. package/dist/assets/InsightsSection-DgfCOO4F-rd7xZxVI.js +27 -0
  99. package/dist/assets/{IntegrationsSettingsPage-DthkTtT9-BfWjdmm5.js → IntegrationsSettingsPage-BRQFeOLt-2BecY83T.js} +2 -2
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-hYeFGjj4-De4TNLmU.js → InternationalWireSwiftDetailsPage-DPemNncS-Datvi8oR.js} +4 -4
  101. package/dist/assets/{InternationalWireVerificationPage-0TZuCAzZ-DstpGM2q.js → InternationalWireVerificationPage-BOxXfIY5-D1lMmBlP.js} +3 -3
  102. package/dist/assets/{InviteFormPage-BC1PH63r-DAB3gVVK.js → InviteFormPage-BbbPCdh--Cb0-_CQ6.js} +1 -1
  103. package/dist/assets/{InvitePageListView-BJDfCvno-Sk3rc3V-.js → InvitePageListView-DqfrAulo-BtCqgsIl.js} +13 -13
  104. package/dist/assets/{InvitePeoplePage-Bl-WUfXO-DagADS45.js → InvitePeoplePage-CgTpZp4M-CYe0nmg8.js} +3 -3
  105. package/dist/assets/{InvoiceUploadSection-BgVvYytR-DjoTneQr.js → InvoiceUploadSection-DZOzTShz-BFwyUvOT.js} +1 -1
  106. package/dist/assets/{IssueChargeCardPage-0JEZpfCu-DLK0riSj.js → IssueChargeCardPage-x6dLcd-P-D7R8buXv.js} +17 -17
  107. package/dist/assets/{LabeledAddressValue-BCsadhSu-lscFDQOa.js → LabeledAddressValue-CY4Fn72d-VdKSkT_l.js} +1 -1
  108. package/dist/assets/LabeledAddressValueField-D47ofJFV-CGqdgTnp.js +45 -0
  109. package/dist/assets/{LabeledControlledCheckBoxField-Do7rlK6F-CTyXPdV4.js → LabeledControlledCheckBoxField-C_c8Rs-i-Cz1fNsx_.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-BHwXHYPO-CYnRn6eD.js → LabeledCountryMultiSelectField-vRw9drBe-Bw1loTny.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-gMUp1tXY-y1kl4nd-.js → LabeledCreatableSingleSelectField-CdF97ljM-DTrzefeb.js} +3 -3
  112. package/dist/assets/{LabeledDocumentField-DxUq-7nr-DAyGmAsR.js → LabeledDocumentField-Dn25Ru1C-CLM-i9xW.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-D51ly333-CZ2VlJWO.js → LabeledDropDownFormattedTextField-C2sZjA-q-Bkuc_5w_.js} +6 -6
  114. package/dist/assets/{LabeledEmailInputField-Cd9p7Kj0-DZf49c8n.js → LabeledEmailInputField-DzAdekQn-BkQ7kdJx.js} +3 -3
  115. package/dist/assets/{LabeledNameField-364jsrFK-CaN5hIDf.js → LabeledNameField-Dxx0xwMv-DBRkdNqp.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-B3pMIEfZ-C8i8zlDG.js → LabeledSingleSelectField-EO8TA_z_-C26qdLJU.js} +6 -6
  117. package/dist/assets/{LabeledText-uFTi1qOo-Dh31QRqg.js → LabeledText-Bo7B-LrF-DECCi3EJ.js} +2 -2
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-XD6D3r0Y-Ce4jb_BF.js → LabeledUserSingleSelectWithSubtitlesField-DD11_Map-ZtH1v-68.js} +8 -8
  119. package/dist/assets/{LabeledZeniRolesDropDownField-CbJ3OtWK-CN-nwhu5.js → LabeledZeniRolesDropDownField-BJ99uBt1-DGvakh0f.js} +18 -18
  120. package/dist/assets/{LinkJETransactionPage-B5M6Ojt--C7jEEQdH.js → LinkJETransactionPage-BiDoUKQW-xgKDBdnj.js} +9 -9
  121. package/dist/assets/{LockCardPage-DN2dvQA9-ptj6YCPt.js → LockCardPage-B1QOSByp-BfsUhZIZ.js} +25 -25
  122. package/dist/assets/{LowBalancePopup-CXTWwEyb-DHi-7FjF.js → LowBalancePopup-Bl_PaIUx-yOClgIGf.js} +2 -2
  123. package/dist/assets/MagicLinkACHDetailsPage-l76_Y3sO-DBz5GRKZ.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-D_z_Q-jz-DriIOIxl.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-D276lsq_-ColrMYZA.js +1 -0
  126. package/dist/assets/MagicLinkRoutes-B-WHuq25.js +72 -0
  127. package/dist/assets/{MagicLinkSignInScreen-hqZFIhM7.js → MagicLinkSignInScreen-BBwmXYDm.js} +1 -1
  128. package/dist/assets/MagicLinkSuccessPage-CuL-7CWN-C2vVBJ4S.js +31 -0
  129. package/dist/assets/{MagicLinkTitleSection-BnzImXCX-DsNqMADc.js → MagicLinkTitleSection-RYhrN820-BbeWYlVu.js} +10 -10
  130. package/dist/assets/{MailingDetailsSection-aNMVpaF0-Mi3ceriD.js → MailingDetailsSection-D9_I-DTk-Cdb1WRS_.js} +1 -1
  131. package/dist/assets/{MobileAppDrawer-CXepfp6e.js → MobileAppDrawer-CTcTm5tx.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-C_jqM-Ix-D5fFt93A.js → MoreMenuButton-5MZl4h9B-BympoCwa.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CdW-lOqB-CQAYDmx1.js → MyBankConnectionsSettingsPage-CBw6kNsm-DlddyW1w.js} +4 -4
  134. package/dist/assets/MyPendingActivationChargeCardListPage-BC4YjZtP-DfpXnRCt.js +6 -0
  135. package/dist/assets/{MyProfileSettingsPage-ZmPfSk3b-CekXUU4A.js → MyProfileSettingsPage-DZ5M2BUN-CQ7zk2gg.js} +4 -4
  136. package/dist/assets/{NavBarWithPicker-BYosIzfk-CHzZbup1.js → NavBarWithPicker-C6FiaLu5-BVvTIBUE.js} +5 -5
  137. package/dist/assets/{NavigationArrow-CMLkPq47-BPg7he64.js → NavigationArrow-BnAgR0wH-BYYktF7B.js} +1 -1
  138. package/dist/assets/{NavigationDots-maxhYltq-IyF42HyI.js → NavigationDots-WUDG_g8M-CSwlLBTM.js} +3 -3
  139. package/dist/assets/{NewGlobalMerchantPage-BkDFFysB-BMj84SI3.js → NewGlobalMerchantPage-gAsCusVw-CA6lhup4.js} +1 -1
  140. package/dist/assets/{NoDataChart-CKqR_T30-DZpYrIq4.js → NoDataChart-BBYUjdKn-CaszePO0.js} +3 -3
  141. package/dist/assets/{NoDataTable-BQLSA76V-CA1kwcWh.js → NoDataTable-D3750d25-CC_2gGkK.js} +1 -1
  142. package/dist/assets/{NotFoundPage-rtS33FV3-CW80Ae7U.js → NotFoundPage-C4D8Rn9E--AJk-xer.js} +6 -6
  143. package/dist/assets/{NotFoundScreen-86VjMapP.js → NotFoundScreen-SRDW4_mE.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-WpVyAd3n.js → NotificationRoutes-BSrkx0LD.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-JJ5a6f1u-Dg5nWtfu.js → NotificationSettingsPage-CD-t91ia-DJoX_UtT.js} +4 -4
  146. package/dist/assets/NotificationsListConfig-C7JSE-eQ-DyT-ZhYk.js +1 -0
  147. package/dist/assets/{NotificationsPage-9vgLoVxJ-CqhoB5mC.js → NotificationsPage-Be1v8niA-BlgDo9nE.js} +14 -14
  148. package/dist/assets/{OpExByVendorPage-Dy7Ll1zE-CncYLP1q.js → OpExByVendorPage-D1f1lQbs-BnyzfFJz.js} +7 -7
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-o9B6MYdd.js → OverlayContainerPage-BG9y5C0t-DTorHW75.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-D-V3dD71-2GY3G9_S.js → PandLWithForecastPage-DIYb7BWp-B3vKwRhN.js} +11 -11
  151. package/dist/assets/{PandLWithForecastRoutes-NKWly9at.js → PandLWithForecastRoutes-CsL0r0I3.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-B_4cMrVT-DX0VhwXR.js → PaymentAccountSetupBillingAddressSection-tGkjxbjY-CHrQD7Oe.js} +6 -6
  153. package/dist/assets/{PeoplePage-B9bxxtaC-BUc8a2C6.js → PeoplePage-xwAOX4Jk-BnzId5aB.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-LIAWa-ry.js → PeopleRoutes-D-yY-A49.js} +3 -3
  155. package/dist/assets/PerformanceRoutes-DUxeAB_T.js +1 -0
  156. package/dist/assets/{Preview-C63MOKlS.js → Preview-k4ohm46R.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-BnezAuLA-CWNs-1wI.js → ProductsCarousel-OHbYasaa-Bps9QCYO.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-B5vRjrOp-DZnXvun2.js → PromoBaseCards-B_0dccCZ-BeKRkhdX.js} +3 -3
  159. package/dist/assets/{QBOConnectionDialog-mVAyONiQ-BFw_Aijs.js → QBOConnectionDialog-5ItNvdCA-D1LNYclF.js} +13 -13
  160. package/dist/assets/{QBOConnectionScreen-DPXluGT3.js → QBOConnectionScreen-BDwso3KZ.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-Co4tc3sO-UEf5y5yj.js → QBOSetupSection-CHZgQppe-Fu_QXCEh.js} +14 -14
  162. package/dist/assets/ReferralListScreen-DPkRtA1r.js +5 -0
  163. package/dist/assets/{ReimbursementApprovalRoutes-DBPigEkQ.js → ReimbursementApprovalRoutes-DyX9YlA9.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-t48xfVQ_-DSouPzhL.js → ReimbursementApprovalRuleDetailPage-CqZT111l-Th1QLQg3.js} +5 -5
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-iL2FRiSL.js → ReimbursementApprovalRuleDetailScreen-BR6Wdj2J.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BuOE0xKm-CyQAGb5D.js → ReimbursementApprovalRulesPage-BzTe2nqd-DFHyb7gY.js} +1 -1
  167. package/dist/assets/{ReimbursementDetailPage-oD88KyGk-Z26luXjw.js → ReimbursementDetailPage-DM650uCR-BZojPp4W.js} +7 -7
  168. package/dist/assets/{ReimbursementPromoPage-DC6vQNFr-Df-JQbVt.js → ReimbursementPromoPage-CitTg9s4-C6Ht-4dW.js} +7 -7
  169. package/dist/assets/{ReimbursementRoutes-DP3Zyw9z.js → ReimbursementRoutes-C4Yz_jbS.js} +3 -3
  170. package/dist/assets/{ReimbursementSetUpPage-ClkPQCRt-3XXwJA8a.js → ReimbursementSetUpPage-qphyaCoX-CvNz9jXQ.js} +5 -5
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DiWW85PW-CdKgZHg6.js → ReimbursementsBulkReviewDrawerPage-CCJvQKip-BQLPbz53.js} +1 -1
  172. package/dist/assets/{ReloadCard-DcyZqZO5-CwUMwJXU.js → ReloadCard-DMNbI6QE-C1j_tgy-.js} +4 -4
  173. package/dist/assets/{ReportTableViewSelector-Be_385i6-D1d1hisQ.js → ReportTableViewSelector-CUG4hVI9-Bjuyu4DH.js} +5 -5
  174. package/dist/assets/{ReportsPage-Dp_uEJ2H-DsQqyldd.js → ReportsPage-nuM-ub1p-CKOT47VZ.js} +8 -8
  175. package/dist/assets/{ReportsRoutes-CQDTEzwi.js → ReportsRoutes-DohAZqsL.js} +1 -1
  176. package/dist/assets/{RevenueChart-B-iMe_PD-Bi6Ok69j.js → RevenueChart-BL5Wb2UT-JQVA4c7e.js} +1 -1
  177. package/dist/assets/{ReviewDetailsPage--0ZUpEVp-CQmlT2je.js → ReviewDetailsPage-CUolLJ6s-I5bNk9-1.js} +21 -21
  178. package/dist/assets/{ReviewOverlay-D_JI48L0-CyNlOwFh.js → ReviewOverlay-A1OYNSqG-DCeKL3J7.js} +6 -6
  179. package/dist/assets/RewardsRoutes-BjB7FD9l.js +1 -0
  180. package/dist/assets/{RoleWithToolTip-Bqdsc31P-CNmkPW05.js → RoleWithToolTip-VOllzDDB-BXr_ucO6.js} +2 -2
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-vFbciuuA-Diyke3YU.js → ScheduleDetailsFixedAssetsPage-By3U1RYU-Dut2stb8.js} +3 -3
  182. package/dist/assets/{ScheduleDetailsPage-BUxgvyKT-Xmkq7RcC.js → ScheduleDetailsPage-ButJHPUw-XhuUVDsI.js} +3 -3
  183. package/dist/assets/ScheduleSequenceTable-Dv831gVJ-OIQZXWKl.js +326 -0
  184. package/dist/assets/{ScreenRoutes-IYIFGbR5.js → ScreenRoutes-B6WQ9uqs.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-Bk3RGJCY-2x7H96z3.js → SetUpAccountSection-BcNG0nDh-C2x0keC_.js} +1 -1
  186. package/dist/assets/{SettingsRoutes-CEWrZV9M.js → SettingsRoutes-U8aLQkxi.js} +5 -5
  187. package/dist/assets/{SetupPagesScreen-BFZeWYvZ.js → SetupPagesScreen-KLzrKq5d.js} +1 -1
  188. package/dist/assets/{SignIn-DbvYG8OW-DIGSru0r.js → SignIn-D80UITQm-CVsAto0V.js} +22 -22
  189. package/dist/assets/{SignInScreen-B27QEE_5.js → SignInScreen-g1CD9jiJ.js} +1 -1
  190. package/dist/assets/SignOutScreen-Cclrjb6Y.js +9 -0
  191. package/dist/assets/{SpendManagementListViewPage-CSGYJyZu-BweWpc_X.js → SpendManagementListViewPage-DSG6Son_-3Woa8ZKL.js} +6 -6
  192. package/dist/assets/{SpendManagementPerTabPage-DuGeuTYQ-DataZT66.js → SpendManagementPerTabPage-DiSu0RS1-Dj2U_5YO.js} +13 -13
  193. package/dist/assets/{SpendManagementSection-CZ_i360S-BWGL8ndc.js → SpendManagementSection-BXU3RGG8-BwEQ7fN8.js} +12 -12
  194. package/dist/assets/StatementItem-B1M65xN--D_j2q7nS.js +31 -0
  195. package/dist/assets/{StatementsPage-BMFYpAPA-D3BvQu9P.js → StatementsPage-Ck1xzA0w-CdWUN6DK.js} +2 -2
  196. package/dist/assets/{StatusSwitcher-CDnarHSf-meshGWkH.js → StatusSwitcher-_Cs3CzJl-D1XlTHt5.js} +6 -6
  197. package/dist/assets/{SubTabSwitcher-DhIXVTVI-Dm-A1aML.js → SubTabSwitcher-D3ltE_yc-Ry1ed6uf.js} +3 -3
  198. package/dist/assets/SuccessAnimation-RuQd1S4B-C9QgxngQ.js +13 -0
  199. package/dist/assets/SummaryCard-buadhnmc-COTvxgGf.js +1 -0
  200. package/dist/assets/{TaskDetailPage-rWt-QUEv-DH6XgxNN.js → TaskDetailPage-CJKga1vr-ciDskCCR.js} +1 -1
  201. package/dist/assets/{TaskListScreen-CWIPHTTl.js → TaskListScreen-ksTObC06.js} +2 -2
  202. package/dist/assets/{TaskManagementPage-D3YvKWVJ-DM0xoyo4.js → TaskManagementPage-BMwMSG1j-D-VvypFm.js} +27 -27
  203. package/dist/assets/TaskRoutes-C_cjp_9o.js +9 -0
  204. package/dist/assets/{TimeRangeSwitcher-CFJrPhfZ-Bh0bakQI.js → TimeRangeSwitcher-B1Wx03tG-Br6TSwpo.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcher-DS6zgSjT-D1R0FMKh.js → TimeframeSwitcher-Dmtsdwi9-Ce3iuH6w.js} +6 -6
  206. package/dist/assets/{TimeframeSwitcherWithToggle-Did8-Dj7-CGwKh4M0.js → TimeframeSwitcherWithToggle-P5CfgTUd-DXOPf3Bj.js} +3 -3
  207. package/dist/assets/{TopExCard-ByF-svYM-Ctw9EYS9.js → TopExCard-DQkr9Xhh-CEMSG53J.js} +3 -3
  208. package/dist/assets/{TopExDetailPage-ABVezwCx-DzhDJZA8.js → TopExDetailPage-5Di6WUfV-hilBOr7-.js} +9 -9
  209. package/dist/assets/{TransactionActivityLogPage-B8ytNODX-DVytAoU9.js → TransactionActivityLogPage-R9LoW4DL-C_Mhlr8m.js} +1 -1
  210. package/dist/assets/{TransactionDetailPage-CunkyIXB-CNc17TsU.js → TransactionDetailPage-B-blHtkn-CbeGtCIa.js} +34 -34
  211. package/dist/assets/{TransactionDetailRoutes-CK-34SUt.js → TransactionDetailRoutes-CG9Ya3UI.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-DDeYMLmN.js → TransactionDetailScreen-DG1rRYuu.js} +1 -1
  213. package/dist/assets/{TransactionList-CEPVnfZD-ClBHZqTs.js → TransactionList-FQvTXSzy-oI0UZGJM.js} +13 -13
  214. package/dist/assets/{TransactionListBig-BYFv0irc-pAbEVbC_.js → TransactionListBig-CNDw7zRw-DTLpPxaS.js} +6 -6
  215. package/dist/assets/TransactionListPage-BkZLtwmQ-DzH0F7Wk.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-DCJ5Lweu.js → TransactionListRoutes-BbWNwfVS.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-DYvgQFQS-DSlx2b8r.js → TransactionVendorDetailPage-Ch2UUF1f-DGdjSa3g.js} +3 -3
  218. package/dist/assets/{TransferDrawerPage-gDUiIE-g-Bvvjaklx.js → TransferDrawerPage-C1Ly_xKj-DX3atlS9.js} +21 -21
  219. package/dist/assets/{TreasuryOverviewPage-DXIqVBWp-B9pyuKCe.js → TreasuryOverviewPage-Zt5w8zfp-CedvlZd9.js} +21 -21
  220. package/dist/assets/{TreasuryPromoPage-oERSujnm-ClN1OTf6.js → TreasuryPromoPage-BsP73kf7-etf9xlFS.js} +14 -14
  221. package/dist/assets/{TreasuryRoutes-BjolvDGd.js → TreasuryRoutes-CuQ3uJ15.js} +1 -1
  222. package/dist/assets/{TreasuryStatementsPage-GWCCDPvf-_h3417p3.js → TreasuryStatementsPage-DhXESeOi-uJElEPeD.js} +4 -4
  223. package/dist/assets/{TreasuryTaxLetterPage-pTRWyNYH-BQ_qi0uM.js → TreasuryTaxLetterPage-tHkQvX2V-pYxXn6xj.js} +4 -4
  224. package/dist/assets/{TrendChart-B2oLQN05-BkrG4BVH.js → TrendChart-B7Pox_TQ-7BkibFBY.js} +4 -4
  225. package/dist/assets/{TrendWithTransactions-Bx63fv0P-BQ8GiA8P.js → TrendWithTransactions-DP1jZL1i-2bOe0VtV.js} +6 -6
  226. package/dist/assets/{UncategorizedAccountsMappingPage-D_QwlpkW-CEr8coR8.js → UncategorizedAccountsMappingPage-4mHyt2P6-BwcucbSK.js} +7 -7
  227. package/dist/assets/{UnitIntegrationPage-EeIQyR4L-D0Uey0gi.js → UnitIntegrationPage-BymmWe1G-DFsBuiFb.js} +3 -3
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-B8_7dtgO-BVpFWtFr.js → UploadAdditionalDocumentOverlay-DUO2ZoU--ozi0LNFT.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-DwTNfggI-QO3FNLHc.js → Vendor2FAPopup-8kpMx5RI-CGazITGN.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-BODHiiUQ-DmAQiimf.js +1 -0
  231. package/dist/assets/{VendorDetailPage-k42A_Pv1-C-eMTgO6.js → VendorDetailPage-C-JJfR0u-DCJ_f7dN.js} +12 -12
  232. package/dist/assets/VendorDomesticWireDetailsPage-CVfEcUFJ-8ddL7pEj.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-BUuhWv_U-D-yHNm5T.js → VendorFiling1099EditablePage-B4vFgSwb-DDTykyPn.js} +6 -6
  234. package/dist/assets/{VendorFirstReviewPage-bN7DO44j-DzTJUqvm.js → VendorFirstReviewPage-CUwdrbjH-DPvTVvHI.js} +7 -7
  235. package/dist/assets/{VendorInternationalWireDetailsPage-DjkOrgs7-CUIWISK5.js → VendorInternationalWireDetailsPage-BzP1zqhw-CAXXQP5N.js} +4 -4
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dgz0TPoZ-CYv9JR1l.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-D-7K4aZA-BPnUt7kZ.js → VendorsAccountsSection-Drue-Lvz-DQRReXtk.js} +4 -4
  238. package/dist/assets/{VendorsRoutes-Dh458IQK.js → VendorsRoutes-Buw6G1yr.js} +1 -1
  239. package/dist/assets/{VerifyDevice-VPfuXUzH-AU1zuQlS.js → VerifyDevice-B_NNzkjT-BkggAu3P.js} +9 -9
  240. package/dist/assets/VideoPlayer-Bc4tAd79-Crbsq9LQ.js +77 -0
  241. package/dist/assets/VideoPopup-BYo5bzpU-BthyvsgQ.js +31 -0
  242. package/dist/assets/WiseConfirmationScreen-CEIT9jMF.js +12 -0
  243. package/dist/assets/{ZeniAccountDetailPage-CJrpkcjr-CBwTak_Y.js → ZeniAccountDetailPage-BW6G2voE-DBU5fQds.js} +19 -19
  244. package/dist/assets/{ZeniAccountListViewPage-DvJI3LGF-CKLfdqdE.js → ZeniAccountListViewPage-gNszI2XV-BLZmP_oZ.js} +30 -30
  245. package/dist/assets/{ZeniAccountNavBarPieces-UCydmVe7-CXtDBFLP.js → ZeniAccountNavBarPieces-BP1IxZ18-ABeEpX-y.js} +1 -1
  246. package/dist/assets/{ZeniAccountPromoPage-DiGsabvm-C_SqwLVl.js → ZeniAccountPromoPage-LsZxIdX9-D62PvtLZ.js} +5 -5
  247. package/dist/assets/{ZeniAccountRoutes-CAAxW9JY.js → ZeniAccountRoutes-Bp_1In61.js} +5 -5
  248. package/dist/assets/{ZeniAccountSetupPage-hVmIT6tO-tFtJgQAT.js → ZeniAccountSetupPage-BExQA9Cz-D04LOVK1.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-BaoiJX5h.js → ZeniAccountStatementScreen-6LzJoR1o.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-C2LxBTZ4-YOmVMm4j.js → ZeniAvatar-5wP6sb3W-CKgtWCng.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-BTIaEGE9-Di2RxJTA.js → ZeniCopyright-CMjFbDBQ-So_Gi_8l.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-9JxwH7J5-CcV9D7gC.js → ZeniDatePicker-C_YQpGe--CXBBhIwN.js} +4 -4
  253. package/dist/assets/{ZeniTransferAmountSlider-BlEFrC-Z-rEEslC0z.js → ZeniTransferAmountSlider-CIu35Xz9-BCHS6-b-.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-CZHlLVR_.js → accountMappingHelper-Ctd7yuH3.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-BgQLRlhS.js → add-to-wallet-DgdBD8_G-q_ZatOIu.js} +1 -1
  256. package/dist/assets/{analytics-CDQ7tGpV.js → analytics-Ci5SIN4_.js} +1 -1
  257. package/dist/assets/{analyticsHelper-jTnRtCKB.js → analyticsHelper-CBcY8lmv.js} +1 -1
  258. package/dist/assets/{analyticsHelper-CYp9h-KW-6KJErEZC.js → analyticsHelper-CG-L3dO7-WIHh4rd-.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-CvfiHTRY.js → arrow-south-east-round-PEovUgvH-BXAmISmi.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-8rMpx5do.js → auto-transfer-rule-mbafm5D3-Qtr813uy.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-BdKWS97a.js → avatar-Dz7aEm3d-lVrrjTFE.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-ydWr7ZOI.js → bank-letter-BOcVjN6J-a5lcVCZG.js} +1 -1
  263. package/dist/assets/{calculateSize-DecSvt-d-CIfCbqel.js → calculateSize-CAxK0dN_-6AyeRPo8.js} +1 -1
  264. package/dist/assets/{chartTypes-D2s_Hwo9-BbhqSw8p.js → chartTypes-_AEkJ5Cg-CVupoc41.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-CjcyjUt4.js → clock-CJkylEKt-CBVPxBka.js} +1 -1
  266. package/dist/assets/common-B74Sb4iG-Ba1Dna3Q.js +1 -0
  267. package/dist/assets/{commonDimensions-u85vL09f-D9VH5FSj.js → commonDimensions-_Dpm4Anv-BHT-EeW2.js} +1 -1
  268. package/dist/assets/{commonTypes-DKKiPW4t-BlYaUk1n.js → commonTypes-C64XobC6-BTobasZR.js} +1 -1
  269. package/dist/assets/{core-B0nKoasK.js → core-oEkj6b51.js} +1 -1
  270. package/dist/assets/{dash.all.min-CXMi5GlA.js → dash.all.min-DZu0W7MW.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-CHDtTf3Z.js → decodeURIComponentSafe-AFO0vA4L.js} +1 -1
  272. package/dist/assets/{dnd-NNN-4w0O.js → dnd-DwLm2ZWc.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-CQw1tD8J.js → dollar-round-D18u7nlm-BxzwYsJa.js} +1 -1
  274. package/dist/assets/{downloadPdf-CnXPMbwm-BjEW_jtg.js → downloadPdf-BAZhe2iR-C4ju3Lqh.js} +1 -1
  275. package/dist/assets/{empty-DA-JSLu3.js → empty-CpgB6ACX.js} +1 -1
  276. package/dist/assets/{empty-CVZTZ-q9.js → empty-fwRWXj2G.js} +1 -1
  277. package/dist/assets/{epic-D0yDPv8O.js → epic-qeTSmk29.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-DAakc3sS.js → filter-cZIFUNvj-Cn5LR_-W.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-DGG0tVFT.js → getLocaleForTenant-DZi5Q22y.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-C6pLHK0s.js → gift-box-Cmt9OgIZ-CByaMYJG.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-Dn4I-rOX.js → graphic-no-data-l-DU4J8fDt-bzI3_a8w.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DO0fHtUP.js → graphic-no-data-net-burn-l-CzmycA0m-CaA33M1d.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-C47iPdmd.js → handshake-BPg58FML-BxWewJRH.js} +1 -1
  284. package/dist/assets/{helper-C7sZs2qJ-DE63clA9.js → helper-D3UIpXq7-DCH1HBMI.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-BOSMM7uX.js → hyperlink-DQyCeXx2-Dt5l5kWs.js} +1 -1
  286. package/dist/assets/{index-CEBFS-eA.js → index-B5c5iTId.js} +1 -1
  287. package/dist/assets/{index-DrsMeyfs.js → index-BE_133so.js} +1 -1
  288. package/dist/assets/{index-ByxsQZNo.js → index-BHAcVHeH.js} +643 -641
  289. package/dist/assets/{index-CQJQXzZY.js → index-CjBlNHKF.js} +1 -1
  290. package/dist/assets/{index-BIjZljJR.js → index-Cpbn6-TN.js} +1 -1
  291. package/dist/assets/{index-zhMcpxMF.js → index-DRNExedw.js} +1 -1
  292. package/dist/assets/{lexical-Fl-AogKa.js → lexical-BLFyyXBr.js} +1 -1
  293. package/dist/assets/{liveblocks-DskTqGyX.js → liveblocks-Ia5FU_Xu.js} +1 -1
  294. package/dist/assets/{lottie-BzV8yd9z.js → lottie-DEK510sX.js} +1 -1
  295. package/dist/assets/mapLoadingInProgressToTreeNode-C_DjhqLk-Ct7OsbEi.js +1 -0
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Okgefznu-CJAMwNIO.js → mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B_J7hTEH.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-Dq4CasLR-BKZfs44u.js +1 -0
  298. package/dist/assets/mapTimeframeBalancesToTreeNode--FHVcIix-D7muHBWz.js +1 -0
  299. package/dist/assets/{mapTimeframeBalancesToTreeNode-sCX2cRnL-BfAjp3to.js → mapTimeframeBalancesToTreeNode-BP0iF3Of-BZXMdjjY.js} +1 -1
  300. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-ww9DgKFP-Cu0SrzZe.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-DMQQGP6s.js} +1 -1
  301. package/dist/assets/{media-player-eLGyvMHZ.js → media-player-uto_Jl5G.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-rv31fLm6.js → money-2cg1MuG4-BmcWx6In.js} +1 -1
  303. package/dist/assets/{mui-40xepic5.js → mui-Cni6P-fz.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-BrbO3gtI.js → page-detail-CWX5S47F-B9qcUnuN.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-bNTaLAow.js → page-summary-D7_VQHwN-ZSqDN0WI.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-DgahycaC.js → panelSelectedMixin-Cddsb26L-BCo5ICo2.js} +1 -1
  307. package/dist/assets/{pathToGoBack-D0UTUGlT.js → pathToGoBack-BpMzEQ5A.js} +1 -1
  308. package/dist/assets/{pdf-A8jRKyoC.js → pdf-CTJ16aEe.js} +3 -3
  309. package/dist/assets/{pdf-lib-mQnebn-k.js → pdf-lib-BZoHbIry.js} +1 -1
  310. package/dist/assets/{plaid-cfgjTkr8.js → plaid-B2vW8NaN.js} +1 -1
  311. package/dist/assets/{pusher-1O2fsDZq.js → pusher-DFtcQaPW.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-Cy5-Jl8l.js → radio-default-CiSgisfh--JwnmKdf.js} +1 -1
  313. package/dist/assets/{react-BEctO-ia.js → react-B0u9lmTz.js} +1 -1
  314. package/dist/assets/{react-D8s_m7Vn.js → react-BxE_BeY2.js} +1 -1
  315. package/dist/assets/{react-QF7HiPHo.js → react-C70tWLg5.js} +1 -1
  316. package/dist/assets/{react-CidUU4N9.js → react-Cohr3oKl.js} +1 -1
  317. package/dist/assets/{react-DcRcFJEU.js → react-DKkpOD3_.js} +3 -3
  318. package/dist/assets/{react-C6o6ScF5.js → react-DZ1_qQub.js} +1 -1
  319. package/dist/assets/{react-BEcUyG01.js → react-cn6O__9s.js} +1 -1
  320. package/dist/assets/{react-CQm7lU_-.js → react-jjkPSe6Z.js} +1 -1
  321. package/dist/assets/{recharts-Bbdho9Pi.js → recharts-LlOU9oLm.js} +1 -1
  322. package/dist/assets/{routePaths-CpPoI1xs.js → routePaths-WWdcktge.js} +1 -1
  323. package/dist/assets/{sentry-COYnhuxW.js → sentry-CY6wsJT-.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-wVomU2ew.js → shield-DOlUxcFf-CGZqPLdL.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-BruIkKZj.js → spend-limit-D6SyboD4-DAZsY_K2.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-CuxwOBs0-D4IOrabU.js +1 -0
  327. package/dist/assets/{toChartData-DrYGpr_j-D2GR-55Z.js → toChartData-BODe4y2V-CHAJ4Jnp.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-C-J0dsgn.js → transaction-placeholder-CpOwZAMG-B7lzeBRq.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-Chu3klyO.js → undo-b_3XZ5CX-okXLDguZ.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-BGatCFPm.js → unlock-BPWn2I5L-BcwMx3a4.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-GfUJ6f_w.js → upload-reimbursement-receipt-O2N8vcO7-BLqHMVJK.js} +1 -1
  332. package/dist/assets/{uploadAttachment-DPYv4udq-CXZc-rXm.js → uploadAttachment-Dbumcc_g-LXlwbhth.js} +5 -5
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-Mr0MhYx1.js → uploadReceipts-CIgkuVpu-FU2oOS1s.js} +1 -1
  334. package/dist/assets/{url-XCmE-JaB.js → url-B5kkbwRv.js} +1 -1
  335. package/dist/assets/{url-C27bOf0k.js → url-Cv3aJ--T.js} +1 -1
  336. package/dist/assets/{useDeviceId-UXlBHXyB.js → useDeviceId-BWAR3Wtl.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-BIFRjZze.js → useInitialThreadRequest-DTIHWJqF.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-CqE4OIEm.js → useLongPress-GCK2COYQ-BX_5sahW.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-vz296XX2.js → usp-line-BBd1wKwW-CuU9mWQv.js} +1 -1
  340. package/dist/assets/{utils-DMEPgX6w.js → utils-ChLimP28.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-BDgDxNYJ.js → withTransactionSidePanel-X05Jc0ej.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-DCforPdM.js → zeni-epic-state-cFF_NqwA.js} +3 -3
  343. package/dist/assets/{zeni-icon-only-BkUYNged.js → zeni-icon-only-jOM3nMPU.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +2 -2
  346. package/dist/assets/ACHDetailsPage-DdI8Zlpr-DP3Ijrzf.js +0 -21
  347. package/dist/assets/AccountInfoPage-D_PrQwlp-DcHjYUET.js +0 -18
  348. package/dist/assets/AccountInfoPageContent-jLGn4-UA-BlSpfvCV.js +0 -149
  349. package/dist/assets/AddAddressForCardDrawer-Dd-0o1b--B4hUfY9b.js +0 -6
  350. package/dist/assets/BankAccountWarningSection-C_OfdR1O-BMVJxE-j.js +0 -51
  351. package/dist/assets/BusinessVerificationPage-DN88j0Rn-DzH0PVhP.js +0 -138
  352. package/dist/assets/ConfettiBurst-Ix0vYpu--B-yjeAz3.js +0 -1
  353. package/dist/assets/CustomerOnboardingAuthScreen-C_Q_XIl1.js +0 -1
  354. package/dist/assets/CustomerOnboardingContainerPage-D4BMPshV-BEJOCQX6.js +0 -1
  355. package/dist/assets/DashboardSidebarBackgroundAnimation-DPDd6e7b-ClZHrJ6l.js +0 -12
  356. package/dist/assets/DepositAccTransactionListPage-DOuU7gGT-CxNst2Ko.js +0 -66
  357. package/dist/assets/InsightsSection-CPg_uo3H-DaY57Nkj.js +0 -27
  358. package/dist/assets/LabeledAddressValueField-D-AO8-Me-DR8Qyzx1.js +0 -45
  359. package/dist/assets/MagicLinkACHDetailsPage-6iW79Hsc-BuBCCqa7.js +0 -1
  360. package/dist/assets/MagicLinkDomesticWireDetailsPage-KPRoVnEc-9k2m3ge7.js +0 -1
  361. package/dist/assets/MagicLinkInternationalWireDetailsPage-DjB2bi8k-BA612N6w.js +0 -1
  362. package/dist/assets/MagicLinkRoutes-0gOcNpgv.js +0 -72
  363. package/dist/assets/MagicLinkSuccessPage-JRpuY47p-CZGcRvVV.js +0 -31
  364. package/dist/assets/MyPendingActivationChargeCardListPage-DKvDUyn7-Cn7MG0Rp.js +0 -6
  365. package/dist/assets/NotificationsListConfig-CWWrsRBB-BQkEfnwX.js +0 -1
  366. package/dist/assets/PerformanceRoutes-647LNvtJ.js +0 -1
  367. package/dist/assets/ReferralListScreen-C9t9-uma.js +0 -5
  368. package/dist/assets/RewardsRoutes-BiuOGirU.js +0 -1
  369. package/dist/assets/ScheduleSequenceTable-CPf50z9S-CLdzdoca.js +0 -324
  370. package/dist/assets/SignOutScreen-DfH6txYx.js +0 -9
  371. package/dist/assets/StatementItem-CDx2knrL-D3uOvDYp.js +0 -31
  372. package/dist/assets/SuccessAnimation-C-AHWH-M-DYko07lj.js +0 -13
  373. package/dist/assets/SummaryCard-4S9PQQ5W-B2YKQ_55.js +0 -1
  374. package/dist/assets/TaskRoutes-CgARLANx.js +0 -9
  375. package/dist/assets/TransactionListPage-CEVs8CRQ-DxaQpOMD.js +0 -35
  376. package/dist/assets/VendorACHDetailsPage-KDUuJi9g-SMC7hwJD.js +0 -1
  377. package/dist/assets/VendorDomesticWireDetailsPage-Dotx5CDo-B6fOSB2X.js +0 -1
  378. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BRtCcxHm-BL32YiVm.js +0 -1
  379. package/dist/assets/VideoPlayer-2MQyZqi6-DqklpbYT.js +0 -77
  380. package/dist/assets/VideoPopup-ZFwt4A81-Ch4C2tup.js +0 -31
  381. package/dist/assets/WiseConfirmationScreen-Bat277PD.js +0 -12
  382. package/dist/assets/common-BGuhvMjF-Ry4gfI81.js +0 -1
  383. package/dist/assets/mapLoadingInProgressToTreeNode-CG-v5g2M-DTh9tKjd.js +0 -1
  384. package/dist/assets/mapSpacerToTreeNode-Cehw-jOG-pPZFbPSE.js +0 -1
  385. package/dist/assets/mapTimeframeBalancesToTreeNode-yMo9FeMO-BQEyuzFH.js +0 -1
  386. package/dist/assets/toCOABalancesWithID-DinJUeg4-DkE5puj7.js +0 -1
@@ -1,4 +1,4 @@
1
- import{y as Le,e as Ve,a7 as O,T as Ge,c8 as Ze,O as Me,ad as $e,V as i,eI as Je,d as q,x as s,a_ as Xe,L as Ye,A as Ke,eZ as Pe,de as Qe,e_ as ei,aU as ii,d4 as ti,a9 as ni,o as a,f0 as oi,k as n,bH as ai,cc as li,dX as si,f8 as Ae,f9 as je,fH as ri,a as ci,P as Ie,N as De,b8 as di,C as ui,aR as mi}from"./index-ByxsQZNo.js";import{a as o}from"./sentry-COYnhuxW.js";import{n as t}from"./mui-40xepic5.js";import{cg as pi}from"./zeni-epic-state-DCforPdM.js";import{g as gi}from"./UploadAdditionalDocumentOverlay-B8_7dtgO-BVpFWtFr.js";import"./pdf-A8jRKyoC.js";import"./core-B0nKoasK.js";import"./lottie-BzV8yd9z.js";import"./liveblocks-DskTqGyX.js";import"./recharts-Bbdho9Pi.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./plaid-cfgjTkr8.js";import"./utils-DMEPgX6w.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="f3b2ad89-1ba7-4fa7-ab08-e06fb2248391",e._sentryDebugIdIdentifier="sentry-dbid-f3b2ad89-1ba7-4fa7-ab08-e06fb2248391")}catch{}})();const hi=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])},pe={title:new De("standardSemiBold","largeSemiBold"),infoLabel:new De("extraSmallRegular","smallRegular")};function fi({companyMileageConfigInfo:e,mileageDetails:m,analytics:$,style:A,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:G}){const l=Ve(),j=Le(),{formState:{errors:Z},trigger:J}=li(),I=xi(P,"mileageAmountInDenomination"),f=si(Z,I),{localData:c,updateStatus:z,mileageStatus:b}=m,R=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Me.getLocalizedStrings(),{reimbursement:K}=Y,[C,D]=o.useState(R),[Q,U]=o.useState(!1);o.useEffect(()=>{f||J(I)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&D(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||U(C)},[C]);const{reimbursementSetup:x}=K,{setUp:ee}=X,ie=C===!1||z.fetchState==="In-Progress"?"readonly":r,te=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ne=c&&c?.mileageUnit?c?.mileageUnit:"";return i.jsxs(yi,{windowSize:l,style:A,isActive:d&&r==null,children:[i.jsxs(Ai,{windowSize:l,children:[x.mileageHeader,d===!1?i.jsx(Di,{children:ee.comingSoon}):null]}),i.jsxs($i,{windowSize:l,children:[i.jsx(ki,{windowSize:l,isDarkMode:j.mode==="dark",children:i.jsx(hi,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),i.jsxs(wi,{children:[i.jsxs(Pi,{children:[i.jsxs(ji,{children:[i.jsxs(Ii,{children:[i.jsx(Ci,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),i.jsx(Si,{children:x.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?i.jsx(Ae,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:je(b.code)}):null]}),i.jsxs(bi,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?i.jsx(Ae,{style:{width:"max-content"},tagTitle:b.name,textColor:je(b.code)}):null,i.jsx(vi,{})]})]}),i.jsxs(Ei,{children:[i.jsxs(Ti,{children:[i.jsx(ri,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:j.colors.background,color:C||f?void 0:j.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:Q,name:I,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:te,suffix:` ${x.perText} ${ne}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:E=>E!=null||r!=null,required:r==null},isDisabled:ie}),i.jsx(Vi,{children:C?i.jsx(ci,{label:x.save,"data-testid":Ie("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&R&&!f&&G?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:z.fetchState==="In-Progress"}):i.jsx(Mi,{isDisabled:r,"data-testid":Ie("edit-mileage"),onClick:E=>{E.stopPropagation(),D(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?i.jsx(Li,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(100*e.defaultMileageUnitAmount).toString()):c.description}):null]})]})]})]})}const xi=(e,m)=>`${e}.${m}`,yi=t.div`
1
+ import{y as Le,e as Ve,a7 as O,T as Ge,c8 as Ze,O as Me,ad as $e,V as i,eI as Je,f as q,x as s,a_ as Xe,L as Ye,A as Ke,eZ as Pe,de as Qe,e_ as ei,aU as ii,d4 as ti,a9 as ni,o as a,f0 as oi,m as n,bH as ai,cc as li,dX as si,f8 as Ae,f9 as je,fH as ri,a as ci,b as Ie,d as De,b8 as di,C as ui,aR as mi}from"./index-BHAcVHeH.js";import{a as o}from"./sentry-CY6wsJT-.js";import{n as t}from"./mui-Cni6P-fz.js";import{cg as pi}from"./zeni-epic-state-cFF_NqwA.js";import{g as gi}from"./UploadAdditionalDocumentOverlay-DUO2ZoU--ozi0LNFT.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="8f0d292c-6d4d-458c-9677-c242def661c3",e._sentryDebugIdIdentifier="sentry-dbid-8f0d292c-6d4d-458c-9677-c242def661c3")}catch{}})();const hi=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])},pe={title:new De("standardSemiBold","largeSemiBold"),infoLabel:new De("extraSmallRegular","smallRegular")};function fi({companyMileageConfigInfo:e,mileageDetails:m,analytics:$,style:A,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:G}){const l=Ve(),j=Le(),{formState:{errors:Z},trigger:J}=li(),I=xi(P,"mileageAmountInDenomination"),f=si(Z,I),{localData:c,updateStatus:z,mileageStatus:C}=m,R=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Me.getLocalizedStrings(),{reimbursement:K}=Y,[S,D]=o.useState(R),[Q,U]=o.useState(!1);o.useEffect(()=>{f||J(I)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&D(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||U(S)},[S]);const{reimbursementSetup:x}=K,{setUp:ee}=X,ie=S===!1||z.fetchState==="In-Progress"?"readonly":r,te=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ne=c&&c?.mileageUnit?c?.mileageUnit:"";return i.jsxs(yi,{windowSize:l,style:A,isActive:d&&r==null,children:[i.jsxs(Ai,{windowSize:l,children:[x.mileageHeader,d===!1?i.jsx(Di,{children:ee.comingSoon}):null]}),i.jsxs($i,{windowSize:l,children:[i.jsx(ki,{windowSize:l,isDarkMode:j.mode==="dark",children:i.jsx(hi,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),i.jsxs(wi,{children:[i.jsxs(Pi,{children:[i.jsxs(ji,{children:[i.jsxs(Ii,{children:[i.jsx(Si,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),i.jsx(bi,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?i.jsx(Ae,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:je(C.code)}):null]}),i.jsxs(Ci,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?i.jsx(Ae,{style:{width:"max-content"},tagTitle:C.name,textColor:je(C.code)}):null,i.jsx(vi,{})]})]}),i.jsxs(Ei,{children:[i.jsxs(Ti,{children:[i.jsx(ri,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:j.colors.background,color:S||f?void 0:j.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:Q,name:I,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:te,suffix:` ${x.perText} ${ne}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:E=>E!=null||r!=null,required:r==null},isDisabled:ie}),i.jsx(Vi,{children:S?i.jsx(ci,{label:x.save,"data-testid":Ie("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&R&&!f&&G?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:z.fetchState==="In-Progress"}):i.jsx(Mi,{isDisabled:r,"data-testid":Ie("edit-mileage"),onClick:E=>{E.stopPropagation(),D(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?i.jsx(Li,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(100*e.defaultMileageUnitAmount).toString()):c.description}):null]})]})]})]})}const xi=(e,m)=>`${e}.${m}`,yi=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -9,12 +9,12 @@ import{y as Le,e as Ve,a7 as O,T as Ge,c8 as Ze,O as Me,ad as $e,V as i,eI as Je
9
9
  width: 100%;
10
10
  flex-direction: column;
11
11
  justify-content: flex-start;
12
- `,bi=t.div`
13
- display: flex;
14
12
  `,Ci=t.div`
13
+ display: flex;
14
+ `,Si=t.div`
15
15
  ${e=>`${pe.title.style(e.windowSize)}`};
16
16
  color: ${e=>e.isError===!0?q.important:e.theme.colors.primary};
17
- `,Si=t(ui)`
17
+ `,bi=t(ui)`
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-start;
@@ -103,7 +103,7 @@ import{y as Le,e as Ve,a7 as O,T as Ge,c8 as Ze,O as Me,ad as $e,V as i,eI as Je
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,p={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},Ee="remiSetupPage",_="remiAccount",N="remiMileage",it=({remiSetupView:e,isDisabled:m,remiApprovalView:$,connectedAccountProvider:A,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:G,analytics:l,accountsPromoConfig:j,onBackClick:Z,onBusinessVerificationSectionClick:J,onSetupApprovalRulesSectionClick:I,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:z,updateMileageDetails:b,onUpdateAccountClick:R,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:K,onEnableRemiClick:C,onEnableRemiSuccess:D,onSaveMileageClick:Q,onClickMenuIcon:U,onEditFileName:x,onDeleteFile:ee,updateFilesEntity:ie,onCompanyOfficerUpdated:te,onSendForVerificationClick:ne,onSignUpClick:E})=>{const F=Le(),u=Ve(),[H,T]=o.useState(!1),{fetchState:v,primaryFundingAccount:S,allFundingAccounts:ge,updateStatus:L,accountUpdateStatus:ze,plaidConnectionDetails:oe,allBankAccounts:Re,companyRemiInfo:Ue,companyBillPayInfo:he,mileageRateConfig:Fe,isRefreshingViewInBackground:He,selectedCompanyOfficer:g}=e,{fetchState:fe,allApprovalRules:W,approvalRulesStatus:We}=$,ae=oe.link_account.updateStatus,le=oe.update_account.updateStatus,B=O(v),xe=O(L.fetchState),ye=O(ae.fetchState),we=O(le.fetchState),V=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>me(e),[e]),values:me(e)});o.useEffect(()=>{!H&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&T(!0),H&&B==="In-Progress"&&v==="Completed"&&T(!1)},[g,v,B]),o.useEffect(()=>{(B==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&ae.fetchState==="Completed"||we==="In-Progress"&&le.fetchState==="Completed")&&V.reset(me(e))},[B,v,V,e,ye,ae.fetchState,we,le.fetchState]);const Be=V.handleSubmit(Ce=>{l.trackEnableReimbursement(),C()});o.useEffect(()=>{const Ce=V.watch((Se,{name:ve})=>{ve!=null&&Se!=null&&Ze(()=>(async(de,ke)=>{const y=ke[_];if(de.includes(_)){if(de.includes("fundingAccount")){if(y.fundingAccount.selectedOption!=null&&S?.id!=y.fundingAccount.selectedOption){const w=ge.find(ue=>ue.id===y.fundingAccount.selectedOption);w!=null&&X(y.fundingAccount.selectedOption,w.accType)}}else if(y.account.selectedOption!=null&&S?.id!=null&&S?.zeniAccountId!=y.account.selectedOption){const w=y.account.allOptions.find(ue=>ue.value===y.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),R(y.account.selectedOption,S.id,S.accType)}}else if(de.includes(N)){const w=ke[N];b(w)}})(ve,Se))});return()=>{Ce.unsubscribe()}}),o.useEffect(()=>{xe==="In-Progress"&&L.fetchState==="Completed"&&D()},[D,xe,L.fetchState]);const{commonSetUp:be,spendManagement:Oe}=Me.getLocalizedStrings(),{reimbursement:_e}=Oe,{reimbursementSetup:M}=_e,{setUp:k}=be,se=he?.isBusinessVerified===!0&&(S?.accType==="depositAccount"||pi(S?.providerVerificationStatus?.code??""))&&Fe?.denominationConversions.amount!=null,re=Ue?.isReimbursementEnabled===!0,Ne=se?be.setUp.setupVerifiedSubTitle:M.setupSubTitle,qe=v==="In-Progress"||v==="Not-Started"||fe==="In-Progress"||fe==="Not-Started",ce=F.mode==="light"?new $e(F.colors.brandColorJadeLight):new $e(F.colors.brandColorJadeDark);return i.jsxs(zi,{children:[i.jsx(Je,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:H,onClose:()=>T(!1),style:{backgroundColor:q.drawerBackground},transitionDuration:250,children:i.jsx(gi,{authParams:r,filesEndPoint:d,updateStatus:L,onEditFileName:x,onDeleteFile:ee,updateFilesEntity:ie,companyOfficer:g,onClose:()=>T(!1),onCompanyOfficerUpdated:te,onSendForVerificationClick:ne})}),i.jsx(Xe,{title:M.setupTitle,backgroundColor:F.colors.grey4,style:{zIndex:3},onBackClick:Z,showMenuIcon:!re&&(u==="medium-compact"||u==="small"),onClickMenuIcon:U,source:"ReimbursementSetUpPage"}),i.jsxs(Ui,{windowSize:u,children:[i.jsx(Ri,{windowSize:u,children:Ne}),qe?i.jsx(Fi,{children:i.jsx(Ye,{size:"ExtraLarge",start:!0})}):i.jsx(Ke,{...V,children:i.jsx("form",{id:Te(Ee),onSubmit:Be,children:i.jsxs(Hi,{windowSize:u,children:[i.jsx(Pe,{onClick:()=>{H||g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!g.areAdditionalDocumentsRequestedForVerification||g.areAdditionalDocumentsSubmittedForVerification||g.userVerificationStatus?.code!=="require_info"?J?.():T(!0)},title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:i.jsx(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ce},status:he?.businessVerificationStatus,isTagLoading:He}),i.jsx(ei,{connectedAccountProvider:A,primaryFundingAccount:S,plaidConnectionDetails:oe,allBankAccounts:Re,allFundingAccounts:ge,sectionId:_,isDisabled:m,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:K,onEstablishConnectionSuccess:z,icon:{element:i.jsx(ii,{width:p.iconWidthHeight.valuePx(u)}),color:ce},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:E,pageName:"Reimbursement Setup",accountsPromoConfig:j}),i.jsx(fi,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:N,onSaveMileageClick:Q,analytics:l}),i.jsx(Pe,{title:W.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:W.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:i.jsx(ti,{height:p.iconWidthHeight.valuePx(u)}),color:ce},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:I,status:W.length>0?We:void 0})]})})})]}),se&&!re&&W.length>0?i.jsx(ni,{formId:Te(Ee),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||ze.fetchState==="In-Progress",isDisabled:m!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,i.jsx(oi,{isFooterRendered:se&&!re,meetingUrl:G,analytics:l,productType:"reimbursement"})]})},zi=t.div`
106
+ `,p={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},Ee="remiSetupPage",_="remiAccount",N="remiMileage",it=({remiSetupView:e,isDisabled:m,remiApprovalView:$,connectedAccountProvider:A,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:G,analytics:l,accountsPromoConfig:j,onBackClick:Z,onBusinessVerificationSectionClick:J,onSetupApprovalRulesSectionClick:I,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:z,updateMileageDetails:C,onUpdateAccountClick:R,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:K,onEnableRemiClick:S,onEnableRemiSuccess:D,onSaveMileageClick:Q,onClickMenuIcon:U,onEditFileName:x,onDeleteFile:ee,updateFilesEntity:ie,onCompanyOfficerUpdated:te,onSendForVerificationClick:ne,onSignUpClick:E})=>{const F=Le(),u=Ve(),[H,T]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:ge,updateStatus:L,accountUpdateStatus:ze,plaidConnectionDetails:oe,allBankAccounts:Re,companyRemiInfo:Ue,companyBillPayInfo:he,mileageRateConfig:Fe,isRefreshingViewInBackground:He,selectedCompanyOfficer:g}=e,{fetchState:fe,allApprovalRules:W,approvalRulesStatus:We}=$,ae=oe.link_account.updateStatus,le=oe.update_account.updateStatus,B=O(v),xe=O(L.fetchState),ye=O(ae.fetchState),we=O(le.fetchState),V=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>me(e),[e]),values:me(e)});o.useEffect(()=>{!H&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&T(!0),H&&B==="In-Progress"&&v==="Completed"&&T(!1)},[g,v,B]),o.useEffect(()=>{(B==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&ae.fetchState==="Completed"||we==="In-Progress"&&le.fetchState==="Completed")&&V.reset(me(e))},[B,v,V,e,ye,ae.fetchState,we,le.fetchState]);const Be=V.handleSubmit(Se=>{l.trackEnableReimbursement(),S()});o.useEffect(()=>{const Se=V.watch((be,{name:ve})=>{ve!=null&&be!=null&&Ze(()=>(async(de,ke)=>{const y=ke[_];if(de.includes(_)){if(de.includes("fundingAccount")){if(y.fundingAccount.selectedOption!=null&&b?.id!=y.fundingAccount.selectedOption){const w=ge.find(ue=>ue.id===y.fundingAccount.selectedOption);w!=null&&X(y.fundingAccount.selectedOption,w.accType)}}else if(y.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=y.account.selectedOption){const w=y.account.allOptions.find(ue=>ue.value===y.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),R(y.account.selectedOption,b.id,b.accType)}}else if(de.includes(N)){const w=ke[N];C(w)}})(ve,be))});return()=>{Se.unsubscribe()}}),o.useEffect(()=>{xe==="In-Progress"&&L.fetchState==="Completed"&&D()},[D,xe,L.fetchState]);const{commonSetUp:Ce,spendManagement:Oe}=Me.getLocalizedStrings(),{reimbursement:_e}=Oe,{reimbursementSetup:M}=_e,{setUp:k}=Ce,se=he?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||pi(b?.providerVerificationStatus?.code??""))&&Fe?.denominationConversions.amount!=null,re=Ue?.isReimbursementEnabled===!0,Ne=se?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,qe=v==="In-Progress"||v==="Not-Started"||fe==="In-Progress"||fe==="Not-Started",ce=F.mode==="light"?new $e(F.colors.brandColorJadeLight):new $e(F.colors.brandColorJadeDark);return i.jsxs(zi,{children:[i.jsx(Je,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:H,onClose:()=>T(!1),style:{backgroundColor:q.drawerBackground},transitionDuration:250,children:i.jsx(gi,{authParams:r,filesEndPoint:d,updateStatus:L,onEditFileName:x,onDeleteFile:ee,updateFilesEntity:ie,companyOfficer:g,onClose:()=>T(!1),onCompanyOfficerUpdated:te,onSendForVerificationClick:ne})}),i.jsx(Xe,{title:M.setupTitle,backgroundColor:F.colors.grey4,style:{zIndex:3},onBackClick:Z,showMenuIcon:!re&&(u==="medium-compact"||u==="small"),onClickMenuIcon:U,source:"ReimbursementSetUpPage"}),i.jsxs(Ui,{windowSize:u,children:[i.jsx(Ri,{windowSize:u,children:Ne}),qe?i.jsx(Fi,{children:i.jsx(Ye,{size:"ExtraLarge",start:!0})}):i.jsx(Ke,{...V,children:i.jsx("form",{id:Te(Ee),onSubmit:Be,children:i.jsxs(Hi,{windowSize:u,children:[i.jsx(Pe,{onClick:()=>{H||g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!g.areAdditionalDocumentsRequestedForVerification||g.areAdditionalDocumentsSubmittedForVerification||g.userVerificationStatus?.code!=="require_info"?J?.():T(!0)},title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:i.jsx(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ce},status:he?.businessVerificationStatus,isTagLoading:He}),i.jsx(ei,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:oe,allBankAccounts:Re,allFundingAccounts:ge,sectionId:_,isDisabled:m,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:K,onEstablishConnectionSuccess:z,icon:{element:i.jsx(ii,{width:p.iconWidthHeight.valuePx(u)}),color:ce},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:E,pageName:"Reimbursement Setup",accountsPromoConfig:j}),i.jsx(fi,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:N,onSaveMileageClick:Q,analytics:l}),i.jsx(Pe,{title:W.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:W.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:i.jsx(ti,{height:p.iconWidthHeight.valuePx(u)}),color:ce},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:I,status:W.length>0?We:void 0})]})})})]}),se&&!re&&W.length>0?i.jsx(ni,{formId:Te(Ee),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||ze.fetchState==="In-Progress",isDisabled:m!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,i.jsx(oi,{isFooterRendered:se&&!re,meetingUrl:G,analytics:l,productType:"reimbursement"})]})},zi=t.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
@@ -1 +1 @@
1
- import{_ as V,fm as M,V as _,bR as W,bS as z,bT as G,iU as K,ag as q,O as H}from"./index-ByxsQZNo.js";import{a as b}from"./sentry-COYnhuxW.js";import{GK as J}from"./zeni-epic-state-DCforPdM.js";import{u as Q}from"./ReviewOverlay-D_JI48L0-CyNlOwFh.js";import"./pdf-A8jRKyoC.js";import"./core-B0nKoasK.js";import"./mui-40xepic5.js";import"./recharts-Bbdho9Pi.js";import"./lottie-BzV8yd9z.js";import"./liveblocks-DskTqGyX.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./plaid-cfgjTkr8.js";import"./utils-DMEPgX6w.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]="3ec7baa0-003b-48f0-bf67-eeaeacbc7a6b",e._sentryDebugIdIdentifier="sentry-dbid-3ec7baa0-003b-48f0-bf67-eeaeacbc7a6b")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=H.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:m,onCloseReviewItem:d,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:l,bulkOperationTypeSelected:r,currentTab:f,currentSubTab:g}=e,y=!1,T=V(),p=M(T),[v,u]=b.useState(!1),[h,A]=b.useState(P(e,y,o,p)),[w,D]=b.useState(y),[j,Z]=b.useState(0),[S,F]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(j===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(P(e,!1,o,p)),()=>{clearInterval(R)}),[h.length,j,w,e.fetchState,y,e,o,p]);const $=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,E={onOkClick:c=>{u(!1);const I=e.remisForReview.map(k=>k.reimbursement);s.trackReimbursementBulkPopupConfirm(r,f,g,J(I.map(k=>k?.reimbursementTypesIncluded??[]))),m("reject",c)},onCancelClick:()=>{u(!1)}},{title:O,description:U}=Y(i,x,$,w),C=e.fetchState==="Completed"&&x===0,L=()=>{s.trackReimbursementBulkSubmit(r,f,g),m(r)},N={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&l==="In-Progress",isLoading:r==="reject"&&l==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:()=>{const{title:c,description:I}=X(x);F({type:"reject",title:c,description:I,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,f,g),u(!0)},style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(G,{children:S.title}),descriptionComponent:_.jsx(z,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Q,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:d,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:(()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&l==="In-Progress",isLoading:l==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:L,style:r==="send_for_approval"?{minWidth:"92px"}:{}}})(),cancelButton:N,hideCancel:C}})]})},P=(e,o,s,m)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=K(s,t.submittedBy,m);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:q("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:t.reviewStatus??""}}})},X=e=>{const{this_:o,these:s,report:m,reports:d,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",d)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",m)}},Y=(e,o,s,m)=>{const{has:d,have:t,report:i,reports:l,are:r,is:f,do_:g,does:y}=a.texts,T=o>1,p=s>1;let v="",u="";return e!=="Completed"||m?(v=n.reviewPage.reportsReviewing.title.replace("__report__",p?l:i),u=n.reviewPage.reportsReviewing.description.replace("__report__",p?l:i)):(v=n.reviewPage.reportsReviewed.title.replace("__report__",p?B.bulkActions.reports:n.report).replace("<_has_>",p?t:d),u=o===0?n.reviewPage.reportsReviewed.descriptionError.replace("__report__",p?l:i).replace("<_do_>",p?g:y):`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?l:i).replace("<_is_>",T?r:f)}`),{title:v,description:u}};export{_e as default};
1
+ import{_ as V,fm as M,V as _,bR as W,bS as z,bT as G,iU as K,ag as q,O as H}from"./index-BHAcVHeH.js";import{a as b}from"./sentry-CY6wsJT-.js";import{GK as J}from"./zeni-epic-state-cFF_NqwA.js";import{u as Q}from"./ReviewOverlay-A1OYNSqG-DCeKL3J7.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./mui-Cni6P-fz.js";import"./recharts-LlOU9oLm.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="98541661-6037-469c-882a-ebe9ec0a187f",e._sentryDebugIdIdentifier="sentry-dbid-98541661-6037-469c-882a-ebe9ec0a187f")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=H.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:m,onCloseReviewItem:d,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:l,bulkOperationTypeSelected:r,currentTab:f,currentSubTab:g}=e,y=!1,T=V(),p=M(T),[v,u]=b.useState(!1),[h,A]=b.useState(P(e,y,o,p)),[w,D]=b.useState(y),[j,Z]=b.useState(0),[S,F]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(j===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(P(e,!1,o,p)),()=>{clearInterval(R)}),[h.length,j,w,e.fetchState,y,e,o,p]);const $=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,E={onOkClick:c=>{u(!1);const I=e.remisForReview.map(k=>k.reimbursement);s.trackReimbursementBulkPopupConfirm(r,f,g,J(I.map(k=>k?.reimbursementTypesIncluded??[]))),m("reject",c)},onCancelClick:()=>{u(!1)}},{title:O,description:U}=Y(i,x,$,w),C=e.fetchState==="Completed"&&x===0,L=()=>{s.trackReimbursementBulkSubmit(r,f,g),m(r)},N={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&l==="In-Progress",isLoading:r==="reject"&&l==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:()=>{const{title:c,description:I}=X(x);F({type:"reject",title:c,description:I,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,f,g),u(!0)},style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(G,{children:S.title}),descriptionComponent:_.jsx(z,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Q,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:d,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:(()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&l==="In-Progress",isLoading:l==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:L,style:r==="send_for_approval"?{minWidth:"92px"}:{}}})(),cancelButton:N,hideCancel:C}})]})},P=(e,o,s,m)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=K(s,t.submittedBy,m);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:q("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:t.reviewStatus??""}}})},X=e=>{const{this_:o,these:s,report:m,reports:d,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",d)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",m)}},Y=(e,o,s,m)=>{const{has:d,have:t,report:i,reports:l,are:r,is:f,do_:g,does:y}=a.texts,T=o>1,p=s>1;let v="",u="";return e!=="Completed"||m?(v=n.reviewPage.reportsReviewing.title.replace("__report__",p?l:i),u=n.reviewPage.reportsReviewing.description.replace("__report__",p?l:i)):(v=n.reviewPage.reportsReviewed.title.replace("__report__",p?B.bulkActions.reports:n.report).replace("<_has_>",p?t:d),u=o===0?n.reviewPage.reportsReviewed.descriptionError.replace("__report__",p?l:i).replace("<_do_>",p?g:y):`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?l:i).replace("<_is_>",T?r:f)}`),{title:v,description:u}};export{_e as default};
@@ -1,8 +1,8 @@
1
- import{y as h,V as r,a4 as a,an as f,am as m,O as y,P as b,aa as l,b0 as g,C as u,o as c}from"./index-ByxsQZNo.js";import{n as s}from"./mui-40xepic5.js";import{a as d}from"./sentry-COYnhuxW.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]="4cb10190-c31c-4916-9949-048ec4d0b6fb",e._sentryDebugIdIdentifier="sentry-dbid-4cb10190-c31c-4916-9949-048ec4d0b6fb")}catch{}})();function j({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!=0,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 w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=0,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(l)`
1
+ import{y as h,V as r,a4 as a,an as f,am as m,O as y,b as j,aa as l,b0 as g,C as u,o as c}from"./index-BHAcVHeH.js";import{n as s}from"./mui-Cni6P-fz.js";import{a as d}from"./sentry-CY6wsJT-.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]="db413ffe-96a3-45e6-a289-13f06584e962",e._sentryDebugIdIdentifier="sentry-dbid-db413ffe-96a3-45e6-a289-13f06584e962")}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!=0,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!=0,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(l)`
2
2
  justify-content: flex-start;
3
- `;function E({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:n,width:i})=>r.jsx(j,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const p=s(l)`
3
+ `;function E({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:n,width:i})=>r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const C=s(l)`
4
4
  justify-content: space-between;
5
- `,C=s.div`
5
+ `,b=s.div`
6
6
  height: ${c.sp10};
7
7
  width: ${c.sp10};
8
8
  background: ${e=>e.theme.colors.background};
@@ -23,4 +23,4 @@ import{y as h,V as r,a4 as a,an as f,am as m,O as y,P as b,aa as l,b0 as g,C as
23
23
  color: ${e=>e.theme.colors.champion};
24
24
  `,v=s(u)`
25
25
  color: ${e=>e.theme.colors.hero};
26
- `,$=s(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"})))``;function D({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":b("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(p,{children:[r.jsxs(k,{children:[n??m(o)," "]}),r.jsx(C,{children:r.jsx($,{})}),r.jsx(v,{children:y.getLocalizedStrings().card.failedText})]})})}export{E,T as I,D as T};
26
+ `,$=s(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"})))``;function D({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":j("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(C,{children:[r.jsxs(k,{children:[n??m(o)," "]}),r.jsx(b,{children:r.jsx($,{})}),r.jsx(v,{children:y.getLocalizedStrings().card.failedText})]})})}export{E,T as I,D as T};
@@ -1,4 +1,4 @@
1
- import{y as X,e as de,bF as fe,T as be,V as t,j as xe,bG as te,A as ye,x as S,a9 as _e,o as r,bH as we,H as he,O as ee,bI as $e,C as ve,S as Q,b0 as Ce,k as m,ad as ke,bJ as je,bK as Ne,bL as Ie,l as Se,$ as Oe}from"./index-ByxsQZNo.js";import{a as u,b as ue}from"./sentry-COYnhuxW.js";import{n as h}from"./mui-40xepic5.js";import{t as O,n as De}from"./CollapsableReportTable-BhbPzkAB-C83Y_pXv.js";import{t as Pe}from"./filter-cZIFUNvj-DAakc3sS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="e8c694c6-5e43-44e1-ad18-5826c6f12b90",e._sentryDebugIdIdentifier="sentry-dbid-e8c694c6-5e43-44e1-ad18-5826c6f12b90")}catch{}})();const z=ee.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;async function ro(e,i,n){const s=ee.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(function(o){return{locale_id:o.localeId,show_negative_amount_in_parenthesis:o.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:o.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:o.filterAccountGroupsWithNilBalances,include_cover_page:o.includeCoverPage,company_name:o.companyName,statement_file_type:o.statementFileType,statements:o.statements,first_month_of_fy:o.firstMonthOfFY,book_close_date:o.bookCloseDate!=null?o.bookCloseDate.format(z):void 0,timeframe:o.timeframe,additional_balances:o.additionalBalances,format:o.format,balances_filter:Te(o.balancesFilter),account_view_mode:o.accountViewMode,classes_to_filter_out:o.classesToFilterOut,data_available:Fe(o.dataAvailable),is_zeni_coa_used:o.isZeniCOAUsed,class_view_layout:o.accountViewMode==="classes"?o.classViewLayout:void 0}}(n)))}`;try{const o=await je({urlEndPoint:l,authParams:i,fileType:n.statementFileType});if(o.ok){const y=Ne(o.headers,s.defaultFileName),_=await o.arrayBuffer();Ie(_,y)}else console.error(`${s.reportErrorMessage} ${o.statusText}`)}catch(o){console.error(`${s.reportErrorMessage} ${JSON.stringify(o)}`)}}const Be=h.div`
1
+ import{y as X,e as de,bF as fe,T as be,V as t,k as xe,bG as te,A as ye,x as S,a9 as _e,o as r,bH as we,H as he,O as ee,bI as $e,C as ve,S as Q,b0 as ke,m,ad as Ce,bJ as je,bK as Ne,bL as Ie,l as Se,$ as Oe}from"./index-BHAcVHeH.js";import{a as u,b as ue}from"./sentry-CY6wsJT-.js";import{n as h}from"./mui-Cni6P-fz.js";import{t as O,n as De}from"./CollapsableReportTable-D7zD4-h0-CdsTnLhf.js";import{t as Pe}from"./filter-cZIFUNvj-Cn5LR_-W.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="3be4da45-5636-440e-855f-4115816e8348",e._sentryDebugIdIdentifier="sentry-dbid-3be4da45-5636-440e-855f-4115816e8348")}catch{}})();const z=ee.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;async function ro(e,i,n){const s=ee.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(function(o){return{locale_id:o.localeId,show_negative_amount_in_parenthesis:o.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:o.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:o.filterAccountGroupsWithNilBalances,include_cover_page:o.includeCoverPage,company_name:o.companyName,statement_file_type:o.statementFileType,statements:o.statements,first_month_of_fy:o.firstMonthOfFY,book_close_date:o.bookCloseDate!=null?o.bookCloseDate.format(z):void 0,timeframe:o.timeframe,additional_balances:o.additionalBalances,format:o.format,balances_filter:Te(o.balancesFilter),account_view_mode:o.accountViewMode,classes_to_filter_out:o.classesToFilterOut,data_available:Fe(o.dataAvailable),is_zeni_coa_used:o.isZeniCOAUsed,class_view_layout:o.accountViewMode==="classes"?o.classViewLayout:void 0}}(n)))}`;try{const o=await je({urlEndPoint:l,authParams:i,fileType:n.statementFileType});if(o.ok){const y=Ne(o.headers,s.defaultFileName),_=await o.arrayBuffer();Ie(_,y)}else console.error(`${s.reportErrorMessage} ${o.statusText}`)}catch(o){console.error(`${s.reportErrorMessage} ${JSON.stringify(o)}`)}}const Be=h.div`
2
2
  padding: 0 ${r.sp3} 0 ${r.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -20,16 +20,16 @@ import{y as X,e as de,bF as fe,T as be,V as t,j as xe,bG as te,A as ye,x as S,a9
20
20
  :hover {
21
21
  color: ${e=>e.theme.colors.primary};
22
22
  }
23
- `,Ee=ue.memo(e=>{const{value:i,onClick:n}=e,s=X();return t.jsxs(Be,{onClick:n,children:[t.jsx(Le,{style:{color:s.colors.primary},children:i}),t.jsx(Ae,{})]})});function Me({backgroundColor:e,foregroundColor:i,animated:n,width:s,height:l}){return t.jsxs(Ce,{speed:2,width:s,height:l,viewBox:`0 0 ${s} ${l}`,animate:n!=0,backgroundColor:e,foregroundColor:i,style:{marginBottom:r.sp2},children:[t.jsx("rect",{x:"45",y:m[3],rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:m[8],rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:m[4]})]})}function pe({nestedClass:e,isLastNode:i,config:n,parentNodeIDs:s}){const l=O("checkbox_and_name_only",[],e.classId[0]),o={children:[],id:l,isLastNode:i,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:n}};return o.children=e.children.map((y,_)=>pe({nestedClass:y,config:n,isLastNode:_===e.children.length-1,parentNodeIDs:[...s,l]})),o}function He(e,i){const n=e.map((s,l)=>{const o=O("checkbox_and_name_only",[],s.classId[0]),y={children:[],id:o,isLastNode:s.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:s.className,data:s,numOfBalances:0},config:i}},_=s.children.map(D=>pe({nestedClass:D,config:i,isLastNode:l===s.children.length-1,parentNodeIDs:[o]}));return y.children.push(..._),y});return{config:i,headerNodes:[],contentNodes:[...n]}}function Re(e,i){Object.assign(e.config,i);const n=e.contentNodes;return n.forEach(s=>me(s,i)),{config:i,headerNodes:[],contentNodes:[...n]}}function me(e,i){Object.assign(e.reportElementData.config,i),e.children.forEach(n=>me(n,i))}const se={contentPaddingLeft:new S(m[3],m[3],m[2]),contentPaddingRight:new S(m[3],m[3],m[2])},Ve=h.div`
23
+ `,Ee=ue.memo(e=>{const{value:i,onClick:n}=e,s=X();return t.jsxs(Be,{onClick:n,children:[t.jsx(Le,{style:{color:s.colors.primary},children:i}),t.jsx(Ae,{})]})});function Me({backgroundColor:e,foregroundColor:i,animated:n,width:s,height:l}){return t.jsxs(ke,{speed:2,width:s,height:l,viewBox:`0 0 ${s} ${l}`,animate:n!=0,backgroundColor:e,foregroundColor:i,style:{marginBottom:r.sp2},children:[t.jsx("rect",{x:"45",y:m[3],rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:m[8],rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:m[4]})]})}function pe({nestedClass:e,isLastNode:i,config:n,parentNodeIDs:s}){const l=O("checkbox_and_name_only",[],e.classId[0]),o={children:[],id:l,isLastNode:i,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:n}};return o.children=e.children.map((y,_)=>pe({nestedClass:y,config:n,isLastNode:_===e.children.length-1,parentNodeIDs:[...s,l]})),o}function He(e,i){const n=e.map((s,l)=>{const o=O("checkbox_and_name_only",[],s.classId[0]),y={children:[],id:o,isLastNode:s.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:s.className,data:s,numOfBalances:0},config:i}},_=s.children.map(D=>pe({nestedClass:D,config:i,isLastNode:l===s.children.length-1,parentNodeIDs:[o]}));return y.children.push(..._),y});return{config:i,headerNodes:[],contentNodes:[...n]}}function Re(e,i){Object.assign(e.config,i);const n=e.contentNodes;return n.forEach(s=>me(s,i)),{config:i,headerNodes:[],contentNodes:[...n]}}function me(e,i){Object.assign(e.reportElementData.config,i),e.children.forEach(n=>me(n,i))}const se={contentPaddingLeft:new S(m[3],m[3],m[2]),contentPaddingRight:new S(m[3],m[3],m[2])},Ve=h.div`
24
24
  height: ${e=>e.height}px;
25
25
  width: 100%;
26
- `,k={width:new S(350,400,400),height:new S(165,165,165),buttonWidth:new S(62,62),buttonHeight:new S(m[5],m[5]),containerWidth:new S(150,400,400)},ze=h.div`
26
+ `,C={width:new S(350,400,400),height:new S(165,165,165),buttonWidth:new S(62,62),buttonHeight:new S(m[5],m[5]),containerWidth:new S(150,400,400)},ze=h.div`
27
27
  position: relative;
28
28
  pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
29
29
  `,We=h.div`
30
30
  display: flex;
31
31
  flex-direction: column;
32
- width: ${e=>k.containerWidth.valuePx(e.windowSize)};
32
+ width: ${e=>C.containerWidth.valuePx(e.windowSize)};
33
33
  `,Ye=h(we)`
34
34
  display: flex;
35
35
  flex-direction: row;
@@ -148,4 +148,4 @@ import{y as X,e as de,bF as fe,T as be,V as t,j as xe,bG as te,A as ye,x as S,a9
148
148
  margin-left: ${r.sp5};
149
149
  margin-top: -12px;
150
150
  color: ${e=>e.theme.colors.hero};
151
- `,{reportViewSelector:I,common:{footer:ie}}=ee.getLocalizedStrings(),le="tableViewSelector",ce=e=>`${e}_form`;function io({reportId:e,firstMonthOfFY:i,nodes:n,classesListFetchState:s,selectedView:l,classesToBeFilteredOut:o,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:D,isClassViewDisabled:J,downloadPage:B,showAccountGroups:L=!0,onResyncReports:U,isPageFetchInProgress:P=!1,lastRefreshSuccessTime:w}){const A=X(),b=de(),[E,M]=u.useState(!1),[g,H]=u.useState(l),[T,j]=u.useState({}),R=(a,p)=>(a.forEach(x=>{p.push(x.classId),p=R(x.children,p)}),p),F=R(n,[]),[C,$]=u.useState(g==="classes"?o:F),W=s!=="Completed"||g==="classes"&&C.length===F.length,Y=u.useRef(!1),[q,d]=u.useState(!1),c=u.useRef(a=>{a&&!Y.current&&(Y.current=!0,d(!0))});fe({componentName:`reports.${e}`,enabled:q});const f=a=>a==="classes"?I.classes.label:L===!0?I.accountGroups.label:I.accounts.label,v=be({mode:"all"}),K=v.handleSubmit(()=>{M(!1),g==="classes"?D?.("classes",C):D?.("account_group")}),G=a=>{if(H(a),a==="classes")j({}),$([]);else{$(F);let p={};n.forEach(x=>{const N=O("checkbox_and_name_only",[],x.classId[0]);p=Object.assign({},p,{[N]:!1})}),j(p)}},oe=()=>{E===!0&&Z(),M(!E);let a={};n.forEach(p=>{const x=O("checkbox_and_name_only",[],p.classId[0]);a=l==="account_group"||C.find(N=>N[0]===p.classId[0])!==void 0?Object.assign({},a,{[x]:!1}):Object.assign({},a,{[x]:!0})}),j(a)},Z=()=>{M(!1),H(l),$(o)};return u.useEffect(()=>{if(s==="Completed"&&g==="account_group"){let a={};n.forEach(p=>{const x=O("checkbox_and_name_only",[],p.classId[0]);a=Object.assign({},a,{[x]:!1})}),j(a)}},[s]),t.jsx(xe,{onClickAway:Z,children:t.jsxs(ze,{ref:c.current,isDisabled:J??!1,children:[B===!0?t.jsx(Ee,{value:f(l),onClick:()=>{_?.(),oe()}}):t.jsxs(We,{windowSize:b,children:[t.jsxs(Ye,{onClick:a=>{a.preventDefault(),_?.(),oe()},children:[t.jsx(Ge,{className:"dropdownIcon"}),f(l)]}),l==="classes"?t.jsx(Ke,{onClick:()=>{P===!1&&U?.()},children:P?I.generatingReportByClass:t.jsxs(t.Fragment,{children:[w&&`${te(w)}`,t.jsx(Qe,{})]})}):null]}),E?t.jsx(ye,{...v,children:t.jsx("form",{id:ce(le),onSubmit:K,children:t.jsxs(Je,{width:k.width.value(b),children:[t.jsx(ne,{checked:g==="account_group",children:t.jsxs(ae,{onClick:()=>g!=="account_group"?G("account_group"):null,children:[t.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:a=>G(a.currentTarget.value),checked:g==="account_group",disabled:s!=="Completed"}),t.jsx(re,{disabled:s!=="Completed",children:L===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),t.jsx(Ze,{}),t.jsxs(ne,{checked:g==="classes",children:[t.jsxs(ae,{onClick:()=>s==="Completed"?G("classes"):null,children:[t.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:a=>s==="Completed"?G(a.currentTarget.value):null,checked:g==="classes",disabled:s!=="Completed"}),t.jsx(re,{disabled:s!=="Completed",children:I.classes.dropdownLabel})]}),P||s!=="Completed"?null:t.jsx(Xe,{children:w&&`${te(w)}`}),s==="Completed"?t.jsx(Ue,{id:"sectionformcontainer",children:t.jsx(eo,{reportId:e,firstMonthOfFY:i,nestedClassHierarchy:n,classesToBeFilteredOut:C,maxTreeHeightPx:353,selectedView:g,nodeOpenStatus:T,showClassAccountNumber:y,onToggleCheck:(a,p,x)=>{if(x===!0&&(H("classes"),$(F)),p===!0){const N=O("checkbox_and_name_only",[],a[0]);T[N]=!0,j(T),$(V=>V.filter(ge=>ge[0]!==a[0]))}else{const N=O("checkbox_and_name_only",[],a[0]);T[N]=!1,C.find(V=>V[0]===a[0])===void 0&&$(V=>[...V,a])}}})}):t.jsx(Me,{backgroundColor:A.colors.grey3,foregroundColor:A.colors.grey4,width:k.width.value(b),height:k.height.value(b),animated:!0})]}),t.jsx(qe,{children:t.jsx(_e,{formId:ce(le),primaryBtn:{label:ie.save,style:{width:k.buttonWidth.valuePx(b),height:k.buttonHeight.valuePx(b)},isLoading:!1,isDisabled:W,size:"small"},showCancel:!0,cancelBtn:{label:ie.cancel,style:{width:k.buttonWidth.valuePx(b),height:k.buttonHeight.valuePx(b)},onClick:Z,size:"small",shouldResetOnCancel:!0},style:{padding:r.sp3}})})]})})}):null]})})}const eo=ue.memo(({reportId:e,firstMonthOfFY:i,nestedClassHierarchy:n,classesToBeFilteredOut:s,selectedView:l,showClassAccountNumber:o,scrollPosition:y,onScroll:_,nodeOpenStatus:D,onNodeCollapseToggled:J,onToggleCheck:B,maxTreeHeightPx:L})=>{const U=X(),P=de(),[w,A]=u.useState(void 0),[b,E]=u.useState(!1),[M,g]=u.useState({}),[H,T]=u.useState(void 0),[j,R]=u.useState(l),F=d=>l==="account_group"||s?.length>0&&s.find(c=>c[0]===d[0])!=null,C=(d,c)=>{const f=$(d);for(const v of f.children)B?.(v.classId,c),C(v.classId,c)},$=d=>{let c=n.filter(f=>f.classId[0]===d[d.length-1])[0];for(let f=d.length-2;f>=0;f--)c=c.children.filter(v=>v.classId[0]===d[f])[0];return c};u.useEffect(()=>{b&&(d=>{if(d.length>1){const c=$(d.slice(1));let f=!1;for(const v of c.children)if(s.find(K=>K[0]===v.classId[0])===void 0){f=!0;break}B?.(c.classId,f===!0),g(c.classId)}})(M)}),u.useEffect(()=>{const d={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:"none",firstMonthOfFY:i,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:F,showClassAccountNumber:o};if(w!=null&&Q(H,n)&&Q(j,l)&&b!==!0){const c=Re(w,d);A(c),R(l)}else{const c=He(n,d);T(n),A(c),R(l)}},[n,l,s]);const[W,Y]=u.useState(5),q=L!=null?Math.min(W,L):W;return w!=null?t.jsx(Ve,{height:q,children:t.jsx(De,{backgroundColor:l==="classes"?new ke(U.colors.background):void 0,rootNodes:w,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(P),right:se.contentPaddingRight.value(P)},scrollPosition:y,onScroll:_,nodeOpenStatus:D,onNodeCollapseToggled:J,onToggleCheck:(d,c)=>{E(!0),g(d),B?.(d,c,l==="account_group"||void 0),C(d,c)},onReportTableHeightChanged:d=>{const c=d+m[6];Y(c)}})}):null},Q);export{io as b,ro as x};
151
+ `,{reportViewSelector:I,common:{footer:ie}}=ee.getLocalizedStrings(),le="tableViewSelector",ce=e=>`${e}_form`;function io({reportId:e,firstMonthOfFY:i,nodes:n,classesListFetchState:s,selectedView:l,classesToBeFilteredOut:o,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:D,isClassViewDisabled:J,downloadPage:B,showAccountGroups:L=!0,onResyncReports:U,isPageFetchInProgress:P=!1,lastRefreshSuccessTime:w}){const A=X(),b=de(),[E,M]=u.useState(!1),[g,H]=u.useState(l),[T,j]=u.useState({}),R=(a,p)=>(a.forEach(x=>{p.push(x.classId),p=R(x.children,p)}),p),F=R(n,[]),[k,$]=u.useState(g==="classes"?o:F),W=s!=="Completed"||g==="classes"&&k.length===F.length,Y=u.useRef(!1),[q,d]=u.useState(!1),c=u.useRef(a=>{a&&!Y.current&&(Y.current=!0,d(!0))});fe({componentName:`reports.${e}`,enabled:q});const f=a=>a==="classes"?I.classes.label:L===!0?I.accountGroups.label:I.accounts.label,v=be({mode:"all"}),K=v.handleSubmit(()=>{M(!1),g==="classes"?D?.("classes",k):D?.("account_group")}),G=a=>{if(H(a),a==="classes")j({}),$([]);else{$(F);let p={};n.forEach(x=>{const N=O("checkbox_and_name_only",[],x.classId[0]);p=Object.assign({},p,{[N]:!1})}),j(p)}},oe=()=>{E===!0&&Z(),M(!E);let a={};n.forEach(p=>{const x=O("checkbox_and_name_only",[],p.classId[0]);a=l==="account_group"||k.find(N=>N[0]===p.classId[0])!==void 0?Object.assign({},a,{[x]:!1}):Object.assign({},a,{[x]:!0})}),j(a)},Z=()=>{M(!1),H(l),$(o)};return u.useEffect(()=>{if(s==="Completed"&&g==="account_group"){let a={};n.forEach(p=>{const x=O("checkbox_and_name_only",[],p.classId[0]);a=Object.assign({},a,{[x]:!1})}),j(a)}},[s]),t.jsx(xe,{onClickAway:Z,children:t.jsxs(ze,{ref:c.current,isDisabled:J??!1,children:[B===!0?t.jsx(Ee,{value:f(l),onClick:()=>{_?.(),oe()}}):t.jsxs(We,{windowSize:b,children:[t.jsxs(Ye,{onClick:a=>{a.preventDefault(),_?.(),oe()},children:[t.jsx(Ge,{className:"dropdownIcon"}),f(l)]}),l==="classes"?t.jsx(Ke,{onClick:()=>{P===!1&&U?.()},children:P?I.generatingReportByClass:t.jsxs(t.Fragment,{children:[w&&`${te(w)}`,t.jsx(Qe,{})]})}):null]}),E?t.jsx(ye,{...v,children:t.jsx("form",{id:ce(le),onSubmit:K,children:t.jsxs(Je,{width:C.width.value(b),children:[t.jsx(ne,{checked:g==="account_group",children:t.jsxs(ae,{onClick:()=>g!=="account_group"?G("account_group"):null,children:[t.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:a=>G(a.currentTarget.value),checked:g==="account_group",disabled:s!=="Completed"}),t.jsx(re,{disabled:s!=="Completed",children:L===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),t.jsx(Ze,{}),t.jsxs(ne,{checked:g==="classes",children:[t.jsxs(ae,{onClick:()=>s==="Completed"?G("classes"):null,children:[t.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:a=>s==="Completed"?G(a.currentTarget.value):null,checked:g==="classes",disabled:s!=="Completed"}),t.jsx(re,{disabled:s!=="Completed",children:I.classes.dropdownLabel})]}),P||s!=="Completed"?null:t.jsx(Xe,{children:w&&`${te(w)}`}),s==="Completed"?t.jsx(Ue,{id:"sectionformcontainer",children:t.jsx(eo,{reportId:e,firstMonthOfFY:i,nestedClassHierarchy:n,classesToBeFilteredOut:k,maxTreeHeightPx:353,selectedView:g,nodeOpenStatus:T,showClassAccountNumber:y,onToggleCheck:(a,p,x)=>{if(x===!0&&(H("classes"),$(F)),p===!0){const N=O("checkbox_and_name_only",[],a[0]);T[N]=!0,j(T),$(V=>V.filter(ge=>ge[0]!==a[0]))}else{const N=O("checkbox_and_name_only",[],a[0]);T[N]=!1,k.find(V=>V[0]===a[0])===void 0&&$(V=>[...V,a])}}})}):t.jsx(Me,{backgroundColor:A.colors.grey3,foregroundColor:A.colors.grey4,width:C.width.value(b),height:C.height.value(b),animated:!0})]}),t.jsx(qe,{children:t.jsx(_e,{formId:ce(le),primaryBtn:{label:ie.save,style:{width:C.buttonWidth.valuePx(b),height:C.buttonHeight.valuePx(b)},isLoading:!1,isDisabled:W,size:"small"},showCancel:!0,cancelBtn:{label:ie.cancel,style:{width:C.buttonWidth.valuePx(b),height:C.buttonHeight.valuePx(b)},onClick:Z,size:"small",shouldResetOnCancel:!0},style:{padding:r.sp3}})})]})})}):null]})})}const eo=ue.memo(({reportId:e,firstMonthOfFY:i,nestedClassHierarchy:n,classesToBeFilteredOut:s,selectedView:l,showClassAccountNumber:o,scrollPosition:y,onScroll:_,nodeOpenStatus:D,onNodeCollapseToggled:J,onToggleCheck:B,maxTreeHeightPx:L})=>{const U=X(),P=de(),[w,A]=u.useState(void 0),[b,E]=u.useState(!1),[M,g]=u.useState({}),[H,T]=u.useState(void 0),[j,R]=u.useState(l),F=d=>l==="account_group"||s?.length>0&&s.find(c=>c[0]===d[0])!=null,k=(d,c)=>{const f=$(d);for(const v of f.children)B?.(v.classId,c),k(v.classId,c)},$=d=>{let c=n.filter(f=>f.classId[0]===d[d.length-1])[0];for(let f=d.length-2;f>=0;f--)c=c.children.filter(v=>v.classId[0]===d[f])[0];return c};u.useEffect(()=>{b&&(d=>{if(d.length>1){const c=$(d.slice(1));let f=!1;for(const v of c.children)if(s.find(K=>K[0]===v.classId[0])===void 0){f=!0;break}B?.(c.classId,f===!0),g(c.classId)}})(M)}),u.useEffect(()=>{const d={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:"none",firstMonthOfFY:i,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:F,showClassAccountNumber:o};if(w!=null&&Q(H,n)&&Q(j,l)&&b!==!0){const c=Re(w,d);A(c),R(l)}else{const c=He(n,d);T(n),A(c),R(l)}},[n,l,s]);const[W,Y]=u.useState(5),q=L!=null?Math.min(W,L):W;return w!=null?t.jsx(Ve,{height:q,children:t.jsx(De,{backgroundColor:l==="classes"?new Ce(U.colors.background):void 0,rootNodes:w,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(P),right:se.contentPaddingRight.value(P)},scrollPosition:y,onScroll:_,nodeOpenStatus:D,onNodeCollapseToggled:J,onToggleCheck:(d,c)=>{E(!0),g(d),B?.(d,c,l==="account_group"||void 0),k(d,c)},onReportTableHeightChanged:d=>{const c=d+m[6];Y(c)}})}):null},Q);export{io as b,ro as x};
@@ -1,4 +1,4 @@
1
- import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt,P as $,a$ as ft,aM as ut,a_ as gt,be as bt,o as C,ab as _t,L as yt,bf as xt,x as Y,bg as wt,k as L,j as ye,I as z,bh as xe,C as ue,bi as Ie,S as $e,bj as St,ad as Ct,l as Fe,q as Rt,b7 as Ot}from"./index-ByxsQZNo.js";import{a as v,b as Pe}from"./sentry-COYnhuxW.js";import{n as b}from"./mui-40xepic5.js";import{_ as vt}from"./liveblocks-DskTqGyX.js";import{bt as we,F6 as Tt,Ff as At,Fg as Bt,Fh as K,Fi as kt,Fj as Lt,Fk as jt,Fl as Nt,Fm as Mt,Fn as re,Fo as le,Fp as Se}from"./zeni-epic-state-DCforPdM.js";import{j as It,z as ce}from"./mapTimeframeBalancesToTreeNode-sCX2cRnL-BfAjp3to.js";import{m as Q,l as de}from"./analyticsHelper-CYp9h-KW-6KJErEZC.js";import{b as $t}from"./ReportTableViewSelector-Be_385i6-D1d1hisQ.js";import{S as oe,y as Ft,M as Pt,$ as Et,v as Vt}from"./TimeRangeSwitcher-CFJrPhfZ-Bh0bakQI.js";import{X as zt}from"./TimeframeSwitcherWithToggle-Did8-Dj7-CGwKh4M0.js";import{DownloadOverlayButton as Dt}from"./DownloadOverlay-BiIbEvq6-DkggD5hU.js";import{Z as Ut,n as Yt,t as P,j as Ce}from"./CollapsableReportTable-BhbPzkAB-C83Y_pXv.js";import{D as Re,T as Oe,C as te,L as Wt,g as Ee}from"./mapSectionWithAcOnlyToTreeNode-Okgefznu-CJAMwNIO.js";import{d as Gt,l as Ht}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-ww9DgKFP-Cu0SrzZe.js";import{d as Zt}from"./mapLoadingInProgressToTreeNode-CG-v5g2M-DTh9tKjd.js";import"./pdf-A8jRKyoC.js";import"./core-B0nKoasK.js";import"./lottie-BzV8yd9z.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./plaid-cfgjTkr8.js";import"./recharts-Bbdho9Pi.js";import"./utils-DMEPgX6w.js";import"./filter-cZIFUNvj-DAakc3sS.js";import"./TimeframeSwitcher-DS6zgSjT-D1R0FMKh.js";import"./page-detail-CWX5S47F-BrbO3gtI.js";import"./page-summary-D7_VQHwN-bNTaLAow.js";import"./AccountRow-G9Hw9KCo-CT1w9ZhF.js";import"./clock-CJkylEKt-CjcyjUt4.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]="feb22a5f-2a03-43c0-a673-77e4860f00fc",e._sentryDebugIdIdentifier="sentry-dbid-feb22a5f-2a03-43c0-a673-77e4860f00fc")}catch{}})();const qt=b.div`
1
+ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt,b as I,a$ as ft,aM as ut,a_ as gt,be as bt,o as C,ab as _t,L as yt,bf as xt,x as Y,bg as wt,m as L,k as ye,J as z,bh as xe,C as ue,bi as $e,S as Ie,bj as St,ad as Ct,l as Fe,r as Rt,b7 as Ot}from"./index-BHAcVHeH.js";import{a as v,b as Pe}from"./sentry-CY6wsJT-.js";import{n as b}from"./mui-Cni6P-fz.js";import{_ as vt}from"./liveblocks-Ia5FU_Xu.js";import{bt as we,F6 as Tt,Ff as At,Fg as Bt,Fh as K,Fi as kt,Fj as Lt,Fk as jt,Fl as Nt,Fm as Mt,Fn as re,Fo as le,Fp as Se}from"./zeni-epic-state-cFF_NqwA.js";import{j as $t,z as ce}from"./mapTimeframeBalancesToTreeNode-BP0iF3Of-BZXMdjjY.js";import{m as Q,l as de}from"./analyticsHelper-CG-L3dO7-WIHh4rd-.js";import{b as It}from"./ReportTableViewSelector-CUG4hVI9-Bjuyu4DH.js";import{S as oe,y as Ft,M as Pt,$ as Et,v as Vt}from"./TimeRangeSwitcher-B1Wx03tG-Br6TSwpo.js";import{X as zt}from"./TimeframeSwitcherWithToggle-P5CfgTUd-DXOPf3Bj.js";import{DownloadOverlayButton as Dt}from"./DownloadOverlay-SLvxfa6B-CQ7BxjF9.js";import{Z as Ut,n as Yt,t as P,j as Ce}from"./CollapsableReportTable-D7zD4-h0-CdsTnLhf.js";import{D as Re,T as Oe,C as te,L as Wt,g as Ee}from"./mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B_J7hTEH.js";import{d as Gt,l as Ht}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-DMQQGP6s.js";import{d as Zt}from"./mapLoadingInProgressToTreeNode-C_DjhqLk-Ct7OsbEi.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./recharts-LlOU9oLm.js";import"./utils-ChLimP28.js";import"./filter-cZIFUNvj-Cn5LR_-W.js";import"./TimeframeSwitcher-Dmtsdwi9-Ce3iuH6w.js";import"./page-detail-CWX5S47F-B9qcUnuN.js";import"./page-summary-D7_VQHwN-ZSqDN0WI.js";import"./AccountRow-B3Sz6a-V-GlNhkavB.js";import"./clock-CJkylEKt-CBVPxBka.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]="25eea7ae-d5d6-4045-9cd9-2f6775057b23",e._sentryDebugIdIdentifier="sentry-dbid-25eea7ae-d5d6-4045-9cd9-2f6775057b23")}catch{}})();const qt=b.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  `,Xt=b.div`
@@ -17,7 +17,7 @@ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt
17
17
  max-width: 100%;
18
18
  `,Kt=b(ue)`
19
19
  color: ${e=>e.theme.colors.primary};
20
- `,Qt=b(Ie)`
20
+ `,Qt=b($e)`
21
21
  color: ${e=>e.theme.colors.hero};
22
22
  width: 12px;
23
23
  height: 12px;
@@ -59,7 +59,7 @@ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt
59
59
  overflow: hidden;
60
60
  text-overflow: ellipsis;
61
61
  white-space: nowrap;
62
- `,no=b(Ie)`
62
+ `,no=b($e)`
63
63
  color: ${e=>e.theme.colors.hero};
64
64
  width: 12px;
65
65
  height: 12px;
@@ -114,7 +114,7 @@ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt
114
114
  border-top: 1px solid ${e=>e.theme.colors.grey3};
115
115
  width: 100%;
116
116
  margin: ${C.sp2} 0;
117
- `;function ee(e){const{dateFormat:{analytics:t}}=B.getLocalizedStrings();return e.startDate.format(t.YYYYFormat)}function q(e,t,r){return Ut(r,e,t)}const po=({allTimeframeTicks:e,bookCloseDate:t,firstMonthOfFY:r,fromIndex:l,selectedTimeframe:o,toIndex:n,onFromSelected:p,onToSelected:x})=>{const{dateFormat:{analytics:u}}=B.getLocalizedStrings(),m=B.getLocalizedStrings().reports,[f,h]=v.useState("from"),i=[...new Set(e.map(ee))],[d,y]=v.useState(()=>ee(e[l]??e[0])),s=T=>{h(T),y(ee(e[T==="from"?l:n]))},c=e.map((T,O)=>({tick:T,index:O})).filter(({tick:T})=>ee(T)===d),S=e.length-1,R=S>=0&&Bt(e[S]),k=q(e[l],o,r),M=q(e[n],o,r);return a.jsxs(so,{children:[a.jsxs(io,{children:[a.jsxs(ve,{active:f==="from",onClick:()=>s("from"),children:[a.jsx(Te,{children:m.periodRangeFrom}),a.jsx(Ae,{children:k})]}),a.jsx(ro,{children:"→"}),a.jsxs(ve,{active:f==="to",onClick:()=>s("to"),children:[a.jsx(Te,{children:m.periodRangeTo}),a.jsx(Ae,{children:M})]})]}),a.jsxs(lo,{children:[a.jsx(Be,{children:i.map(T=>a.jsx(xe,{id:T,text:T,checked:T===d,textVariant:"small",onClick:O=>y(O)},T))}),a.jsx(co,{}),a.jsx(Be,{children:c.map(({tick:T,index:O})=>{const _=function(E,D,ne,X){return D==="month"?E.startDate.format(X):q(E,D,ne)}(T,o,r,u.MMMFormat),w=f==="from"?O===l:O===n,A=t!=null&&T.startDate.isAfter(t),I=O===S,N=A&&!(R&&I),F=A&&R&&I;return a.jsx(xe,{id:String(O),text:_,checked:w,starred:N,doubleStarred:F,textVariant:"small",onClick:E=>(D=>{f==="from"?p(D):x(D)})(Number.parseInt(E,10))},O)})})]})]})};function ho(e){const{allTimeframeTicks:t,bookCloseDate:r,firstMonthOfFY:l,onCOABalancesRangeChanged:o,onDateRangeAnalytics:n,isCompareMode:p,referrer:x,selectedCOABalancesRange:u,selectedTimeframe:m,variant:f="default"}=e,[h,i]=v.useState(!1),d=t??[];if(m==="week"||m==="free_range"||d.length===0)return null;const y=Pt(d,u),s=u.numberOfPeriods??1,c=y.startIndex,S=Math.max(0,Math.min(c,d.length-1)),R=Math.min(Math.max(S+y.length-1,0),d.length-1),k=q(d[S],m,l),M=q(d[R],m,l),T=(_,w)=>{const A=w-_+1,I={offsetFromEnd:d.length-1-w,length:A},N={startIndex:_,length:A},F=Et(d,I),E=Vt(d,N);F.thisPeriod!=null&&n!=null&&n(x,p,de(l,m,F.thisPeriod)),o(F,E),i(!1)},O=h&&d.length>0?a.jsx(po,{allTimeframeTicks:d,bookCloseDate:r,firstMonthOfFY:l,selectedTimeframe:m,fromIndex:S,toIndex:R,onFromSelected:_=>{const w=_,A=Math.min(w+s-1,d.length-1);T(w,A)},onToSelected:_=>{const w=Math.min(S,_),A=Math.max(S,_);T(w,A)}}):null;return f==="timeRangeSlider"?a.jsx(Xt,{children:a.jsx(ye,{onClickAway:()=>i(!1),children:a.jsxs(Jt,{"data-testid":$("reports-period-range-calendar"),children:[a.jsxs(eo,{onClick:()=>i(_=>!_),children:[a.jsxs(Kt,{className:"reports-period-slider-label",children:[k," – ",M]}),a.jsx(Qt,{className:"reports-period-slider-chevron"})]}),O!=null?a.jsx(ao,{children:O}):null]})})}):a.jsx(ye,{onClickAway:()=>i(!1),children:a.jsxs(qt,{"data-testid":$("reports-period-range-calendar"),children:[a.jsxs(to,{onClick:()=>i(_=>!_),children:[a.jsxs(oo,{children:[k," – ",M]}),a.jsx(no,{})]}),O!=null?a.jsx(Ve,{children:O}):null]})})}function ze({section:e,sectionId:t,numOfBalances:r,config:l}){return Ce("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(o=>function({accountGroup:n,sectionType:p,numOfBalances:x,title:u,isLastNode:m,config:f}){const h=P("section",[],u+p),i={children:[],id:h,isLastNode:m,reportElementData:{element:{kind:"section",title:u,sectionType:p,data:n,numOfBalances:x},config:f}},d=Ce("no_filter",f.filterAccountsWithNilBalances,f.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(n.accounts),y=d.map((s,c)=>Ee({account:s,sectionType:p,numOfBalances:x,title:s.account.accountName,config:f,isLastNode:c===d.length-1,parentNodeIDs:[h],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:d.length>1,hasChildren:s.children.length>0,isLastNode:c===d.length-1}]}}));return i.children.push(...y),i}({accountGroup:o,sectionType:t,numOfBalances:r,title:o.accountGroupName,isLastNode:!0,config:l}))}function De({sectionWithAcOnly:e,sectionType:t,numOfBalances:r,config:l}){return e.accounts.map((o,n)=>Ee({account:o,sectionType:t,numOfBalances:r,title:o.account.accountName,config:l,isLastNode:n===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:o.children.length>0,isLastNode:n===e.accounts.length-1}]}}))}function Ue({balances:e,config:t,nodeId:r}){return{children:[],id:r??P("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 pe(e,t){for(const r of e)r.reportElementData={...r.reportElementData,config:t},pe(r.children,t)}function mo(e,t,r,l=!0){if(Object.assign(e.config,t),function(p){return p.reportId==="profit_and_loss_by_classes"&&"headerBalances"in p&&Array.isArray(p.headerBalances)}(r))return pe(e.headerNodes,t),pe(e.contentNodes,t),{config:t,headerNodes:e.headerNodes,contentNodes:e.contentNodes};const o=Ye(r),n=ce({balances:o,config:t});return{config:t,headerNodes:l?[n]:[],contentNodes:[n,...e.contentNodes.slice(1)]}}const Ye=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,r=t.sections?.expenses?.balances,l=t.sections?.income?.balances,o=t.sections?.expenses?.additionalBalances??[],n=t.sections?.income?.additionalBalances??[];return(r?.length??0)>0?[...r,...o]:(l?.length??0)>0?[...l,...n]:[]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let r=[];return Object.keys(t.sections).forEach(l=>{t.sections[l].balances.length>0&&(r=[...t.sections[l].balances,...t.sections[l].additionalBalances])}),r}default:return[]}};function fo(e,t,r=!0){const l=B.getLocalizedStrings().reports.sections,o=B.getLocalizedStrings().reports.cashFlow,n=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,x=Ue({balances:n,config:t}),u=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(m=>{const f={children:[],id:P("title_string_only",[],m),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:l[m],data:void 0,numOfBalances:0},config:t}};u.push(f),e.rootSectionsWithSubSectionIds[m].forEach(h=>{if(jt(h)===!0)if(e.sections[h].accountGroups.length>0){const i=ze({sectionId:h,section:e.sections[h],numOfBalances:p,config:t});u.push(...i)}else{const i=De({sectionWithAcOnly:e.sections[h],sectionType:h,numOfBalances:p,config:t});u.push(...i)}else Nt(h)===!0?u.push(function({calculatedSection:i,numOfBalances:d,title:y,isLastNode:s,config:c}){return{children:[],id:P("calculated_section_type1",[],y),isLastNode:s,reportElementData:{element:{kind:"calculated_section_type1",title:y,data:i,numOfBalances:d},config:c}}}({calculatedSection:e.calculatedSections[h],numOfBalances:p,title:o[h],isLastNode:!0,config:t})):Mt(h)===!0&&u.push(te({calculatedSection:e.calculatedSections[h],numOfBalances:p,title:o[h],isLastNode:!0,config:t}))})}),{config:t,headerNodes:r?[x]:[],contentNodes:[x,...u]}}function uo(e,t){const r=[];let l=[];const o=e.classColumns.length+1,n={children:[],id:P("class_headers",[]),isLastNode:!1,reportElementData:{element:{kind:"class_headers",title:"",data:e.classColumns,numOfBalances:o},config:t}};return r.push(n),l=[n],e.idsInOrder.forEach(p=>{if(re(p)){const x=e.sections[p];x!=null&&r.push(function(u,m,f,h,i){const d=P("section",[],u.title),y=u.treeLayout,s=u.sectionHeaderBalancesSlice??Se(i.firstMonthOfFY),c={children:[],id:d,isLastNode:!0,reportElementData:{element:{kind:"section",title:u.title,sectionType:m,data:s,numOfBalances:f},config:h}};if(y==null)return c;const S=new Map;for(const[R,k]of Object.entries(y.childrenRowIndicesByParent))S.set(Number(R),k);return y.rootAccountRowIndices.forEach((R,k)=>{c.children.push(We(R,u.accounts,S,f,h,[d],k===y.rootAccountRowIndices.length-1))}),c}(x,p,o,t,e))}else if(le(p)){const x=e.calculatedSections[p];x!=null&&r.push(function(u,m,f,h){const i=u.sectionHeaderBalancesSlice??Se(h.firstMonthOfFY);return{children:[],id:P("calculated_section",[],u.title),isLastNode:!0,reportElementData:{element:{kind:"calculated_section",title:u.title,data:i,numOfBalances:m},config:f}}}(x,o,t,e))}}),{config:t,headerNodes:l,contentNodes:r}}function We(e,t,r,l,o,n,p){const x=t[e],u=x.accountReportData,m=r.get(e)??[],f=P("ac_report",n,x.accountId);return{children:m.map((h,i)=>We(h,t,r,l,o,[...n,f],i===m.length-1)),id:f,isLastNode:p,reportElementData:{element:{kind:"ac_report",title:x.accountName,data:u,numOfBalances:l},config:o}}}const ke={contentPaddingLeft:new Y(L[0],L[0],L[0]),contentPaddingRight:new Y(L[3],L[3],L[8])},go=b.div`
117
+ `;function ee(e){const{dateFormat:{analytics:t}}=B.getLocalizedStrings();return e.startDate.format(t.YYYYFormat)}function q(e,t,r){return Ut(r,e,t)}const po=({allTimeframeTicks:e,bookCloseDate:t,firstMonthOfFY:r,fromIndex:l,selectedTimeframe:o,toIndex:n,onFromSelected:p,onToSelected:x})=>{const{dateFormat:{analytics:u}}=B.getLocalizedStrings(),m=B.getLocalizedStrings().reports,[f,h]=v.useState("from"),i=[...new Set(e.map(ee))],[d,y]=v.useState(()=>ee(e[l]??e[0])),s=T=>{h(T),y(ee(e[T==="from"?l:n]))},c=e.map((T,O)=>({tick:T,index:O})).filter(({tick:T})=>ee(T)===d),S=e.length-1,R=S>=0&&Bt(e[S]),k=q(e[l],o,r),M=q(e[n],o,r);return a.jsxs(so,{children:[a.jsxs(io,{children:[a.jsxs(ve,{active:f==="from",onClick:()=>s("from"),children:[a.jsx(Te,{children:m.periodRangeFrom}),a.jsx(Ae,{children:k})]}),a.jsx(ro,{children:"→"}),a.jsxs(ve,{active:f==="to",onClick:()=>s("to"),children:[a.jsx(Te,{children:m.periodRangeTo}),a.jsx(Ae,{children:M})]})]}),a.jsxs(lo,{children:[a.jsx(Be,{children:i.map(T=>a.jsx(xe,{id:T,text:T,checked:T===d,textVariant:"small",onClick:O=>y(O)},T))}),a.jsx(co,{}),a.jsx(Be,{children:c.map(({tick:T,index:O})=>{const _=function(E,D,ne,X){return D==="month"?E.startDate.format(X):q(E,D,ne)}(T,o,r,u.MMMFormat),w=f==="from"?O===l:O===n,A=t!=null&&T.startDate.isAfter(t),$=O===S,N=A&&!(R&&$),F=A&&R&&$;return a.jsx(xe,{id:String(O),text:_,checked:w,starred:N,doubleStarred:F,textVariant:"small",onClick:E=>(D=>{f==="from"?p(D):x(D)})(Number.parseInt(E,10))},O)})})]})]})};function ho(e){const{allTimeframeTicks:t,bookCloseDate:r,firstMonthOfFY:l,onCOABalancesRangeChanged:o,onDateRangeAnalytics:n,isCompareMode:p,referrer:x,selectedCOABalancesRange:u,selectedTimeframe:m,variant:f="default"}=e,[h,i]=v.useState(!1),d=t??[];if(m==="week"||m==="free_range"||d.length===0)return null;const y=Pt(d,u),s=u.numberOfPeriods??1,c=y.startIndex,S=Math.max(0,Math.min(c,d.length-1)),R=Math.min(Math.max(S+y.length-1,0),d.length-1),k=q(d[S],m,l),M=q(d[R],m,l),T=(_,w)=>{const A=w-_+1,$={offsetFromEnd:d.length-1-w,length:A},N={startIndex:_,length:A},F=Et(d,$),E=Vt(d,N);F.thisPeriod!=null&&n!=null&&n(x,p,de(l,m,F.thisPeriod)),o(F,E),i(!1)},O=h&&d.length>0?a.jsx(po,{allTimeframeTicks:d,bookCloseDate:r,firstMonthOfFY:l,selectedTimeframe:m,fromIndex:S,toIndex:R,onFromSelected:_=>{const w=_,A=Math.min(w+s-1,d.length-1);T(w,A)},onToSelected:_=>{const w=Math.min(S,_),A=Math.max(S,_);T(w,A)}}):null;return f==="timeRangeSlider"?a.jsx(Xt,{children:a.jsx(ye,{onClickAway:()=>i(!1),children:a.jsxs(Jt,{"data-testid":I("reports-period-range-calendar"),children:[a.jsxs(eo,{onClick:()=>i(_=>!_),children:[a.jsxs(Kt,{className:"reports-period-slider-label",children:[k," – ",M]}),a.jsx(Qt,{className:"reports-period-slider-chevron"})]}),O!=null?a.jsx(ao,{children:O}):null]})})}):a.jsx(ye,{onClickAway:()=>i(!1),children:a.jsxs(qt,{"data-testid":I("reports-period-range-calendar"),children:[a.jsxs(to,{onClick:()=>i(_=>!_),children:[a.jsxs(oo,{children:[k," – ",M]}),a.jsx(no,{})]}),O!=null?a.jsx(Ve,{children:O}):null]})})}function ze({section:e,sectionId:t,numOfBalances:r,config:l}){return Ce("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(o=>function({accountGroup:n,sectionType:p,numOfBalances:x,title:u,isLastNode:m,config:f}){const h=P("section",[],u+p),i={children:[],id:h,isLastNode:m,reportElementData:{element:{kind:"section",title:u,sectionType:p,data:n,numOfBalances:x},config:f}},d=Ce("no_filter",f.filterAccountsWithNilBalances,f.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(n.accounts),y=d.map((s,c)=>Ee({account:s,sectionType:p,numOfBalances:x,title:s.account.accountName,config:f,isLastNode:c===d.length-1,parentNodeIDs:[h],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:d.length>1,hasChildren:s.children.length>0,isLastNode:c===d.length-1}]}}));return i.children.push(...y),i}({accountGroup:o,sectionType:t,numOfBalances:r,title:o.accountGroupName,isLastNode:!0,config:l}))}function De({sectionWithAcOnly:e,sectionType:t,numOfBalances:r,config:l}){return e.accounts.map((o,n)=>Ee({account:o,sectionType:t,numOfBalances:r,title:o.account.accountName,config:l,isLastNode:n===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:o.children.length>0,isLastNode:n===e.accounts.length-1}]}}))}function Ue({balances:e,config:t,nodeId:r}){return{children:[],id:r??P("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 pe(e,t){for(const r of e)r.reportElementData={...r.reportElementData,config:t},pe(r.children,t)}function mo(e,t,r,l=!0){if(Object.assign(e.config,t),function(p){return p.reportId==="profit_and_loss_by_classes"&&"headerBalances"in p&&Array.isArray(p.headerBalances)}(r))return pe(e.headerNodes,t),pe(e.contentNodes,t),{config:t,headerNodes:e.headerNodes,contentNodes:e.contentNodes};const o=Ye(r),n=ce({balances:o,config:t});return{config:t,headerNodes:l?[n]:[],contentNodes:[n,...e.contentNodes.slice(1)]}}const Ye=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,r=t.sections?.expenses?.balances,l=t.sections?.income?.balances,o=t.sections?.expenses?.additionalBalances??[],n=t.sections?.income?.additionalBalances??[];return(r?.length??0)>0?[...r,...o]:(l?.length??0)>0?[...l,...n]:[]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let r=[];return Object.keys(t.sections).forEach(l=>{t.sections[l].balances.length>0&&(r=[...t.sections[l].balances,...t.sections[l].additionalBalances])}),r}default:return[]}};function fo(e,t,r=!0){const l=B.getLocalizedStrings().reports.sections,o=B.getLocalizedStrings().reports.cashFlow,n=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,x=Ue({balances:n,config:t}),u=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(m=>{const f={children:[],id:P("title_string_only",[],m),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:l[m],data:void 0,numOfBalances:0},config:t}};u.push(f),e.rootSectionsWithSubSectionIds[m].forEach(h=>{if(jt(h)===!0)if(e.sections[h].accountGroups.length>0){const i=ze({sectionId:h,section:e.sections[h],numOfBalances:p,config:t});u.push(...i)}else{const i=De({sectionWithAcOnly:e.sections[h],sectionType:h,numOfBalances:p,config:t});u.push(...i)}else Nt(h)===!0?u.push(function({calculatedSection:i,numOfBalances:d,title:y,isLastNode:s,config:c}){return{children:[],id:P("calculated_section_type1",[],y),isLastNode:s,reportElementData:{element:{kind:"calculated_section_type1",title:y,data:i,numOfBalances:d},config:c}}}({calculatedSection:e.calculatedSections[h],numOfBalances:p,title:o[h],isLastNode:!0,config:t})):Mt(h)===!0&&u.push(te({calculatedSection:e.calculatedSections[h],numOfBalances:p,title:o[h],isLastNode:!0,config:t}))})}),{config:t,headerNodes:r?[x]:[],contentNodes:[x,...u]}}function uo(e,t){const r=[];let l=[];const o=e.classColumns.length+1,n={children:[],id:P("class_headers",[]),isLastNode:!1,reportElementData:{element:{kind:"class_headers",title:"",data:e.classColumns,numOfBalances:o},config:t}};return r.push(n),l=[n],e.idsInOrder.forEach(p=>{if(re(p)){const x=e.sections[p];x!=null&&r.push(function(u,m,f,h,i){const d=P("section",[],u.title),y=u.treeLayout,s=u.sectionHeaderBalancesSlice??Se(i.firstMonthOfFY),c={children:[],id:d,isLastNode:!0,reportElementData:{element:{kind:"section",title:u.title,sectionType:m,data:s,numOfBalances:f},config:h}};if(y==null)return c;const S=new Map;for(const[R,k]of Object.entries(y.childrenRowIndicesByParent))S.set(Number(R),k);return y.rootAccountRowIndices.forEach((R,k)=>{c.children.push(We(R,u.accounts,S,f,h,[d],k===y.rootAccountRowIndices.length-1))}),c}(x,p,o,t,e))}else if(le(p)){const x=e.calculatedSections[p];x!=null&&r.push(function(u,m,f,h){const i=u.sectionHeaderBalancesSlice??Se(h.firstMonthOfFY);return{children:[],id:P("calculated_section",[],u.title),isLastNode:!0,reportElementData:{element:{kind:"calculated_section",title:u.title,data:i,numOfBalances:m},config:f}}}(x,o,t,e))}}),{config:t,headerNodes:l,contentNodes:r}}function We(e,t,r,l,o,n,p){const x=t[e],u=x.accountReportData,m=r.get(e)??[],f=P("ac_report",n,x.accountId);return{children:m.map((h,i)=>We(h,t,r,l,o,[...n,f],i===m.length-1)),id:f,isLastNode:p,reportElementData:{element:{kind:"ac_report",title:x.accountName,data:u,numOfBalances:l},config:o}}}const ke={contentPaddingLeft:new Y(L[0],L[0],L[0]),contentPaddingRight:new Y(L[3],L[3],L[8])},go=b.div`
118
118
  height: ${e=>e.height}px;
119
119
  width: 99.9%;
120
120
  margin-top: ${C.sp2};
@@ -165,7 +165,7 @@ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt
165
165
  width: 160px;
166
166
  left: 63%;
167
167
  }
168
- `,Co=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return B.getLocalizedStrings().reportTitleById[e];default:throw new Error("Unsupported report")}};function Ro({reportId:e,isSelected:t,onClick:r}){return a.jsx(wo,{"data-testid":$("reportSwitcher",e),onClick:()=>{t===!1&&r(e)},isSelected:t,spaceAround:e==="balance_sheet",children:Co(e)})}function Oo({reportIds:e,selectedReport:t,onReportSelectionChanged:r}){const l=o=>{r?.(o)};return a.jsx(yo,{"data-testid":$("report-switcher-container"),children:a.jsx(xo,{"data-testid":$("report-switcher-content"),children:e.map(o=>o!=="profit_and_loss_by_classes"&&a.jsxs("div",{children:[a.jsx(Ro,{reportId:o,isSelected:t===o,onClick:l}),a.jsx(So,{className:`Slider ${t}`})]},`reportSegment-${o}`))})})}const G={contentContainerLeftRightMargin:new Y(L[3],L[3],L[8]),contentRightPadding:new Y(L[3],L[3],L[8]),tickSkeletonContainerWidth:new Y(343,600,905,1240)},{collaboration:{threads:{placeholder:Le,tooltip:je,title:{comments:vo}}}}=B.getLocalizedStrings(),To=new Y(4,4),Ao=new Y(4,4),Bo=(e,t)=>e?Ao.value(t):To.value(t),ko=b.div`
168
+ `,Co=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return B.getLocalizedStrings().reportTitleById[e];default:throw new Error("Unsupported report")}};function Ro({reportId:e,isSelected:t,onClick:r}){return a.jsx(wo,{"data-testid":I("reportSwitcher",e),onClick:()=>{t===!1&&r(e)},isSelected:t,spaceAround:e==="balance_sheet",children:Co(e)})}function Oo({reportIds:e,selectedReport:t,onReportSelectionChanged:r}){const l=o=>{r?.(o)};return a.jsx(yo,{"data-testid":I("report-switcher-container"),children:a.jsx(xo,{"data-testid":I("report-switcher-content"),children:e.map(o=>o!=="profit_and_loss_by_classes"&&a.jsxs("div",{children:[a.jsx(Ro,{reportId:o,isSelected:t===o,onClick:l}),a.jsx(So,{className:`Slider ${t}`})]},`reportSegment-${o}`))})})}const G={contentContainerLeftRightMargin:new Y(L[3],L[3],L[8]),contentRightPadding:new Y(L[3],L[3],L[8]),tickSkeletonContainerWidth:new Y(343,600,905,1240)},{collaboration:{threads:{placeholder:Le,tooltip:je,title:{comments:vo}}}}=B.getLocalizedStrings(),To=new Y(4,4),Ao=new Y(4,4),Bo=(e,t)=>e?Ao.value(t):To.value(t),ko=b.div`
169
169
  display: flex;
170
170
  flex: 1 1 auto;
171
171
  min-height: 100%;
@@ -196,7 +196,7 @@ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt
196
196
  flex-direction: column;
197
197
  justify-content: center;
198
198
  align-items: center;
199
- `,Io=b.div`
199
+ `,$o=b.div`
200
200
  height: 96px;
201
201
  width: 96px;
202
202
  background: ${e=>e.theme.colors.background};
@@ -211,10 +211,10 @@ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt
211
211
  color: ${e=>e.theme.colors.primary};
212
212
  }
213
213
  }
214
- `,$o=b(_t)`
214
+ `,Io=b(_t)`
215
215
  margin-top: ${C.sp3};
216
216
  color: ${e=>e.theme.colors.hero};
217
- `,Ge=({style:e,isLoading:t})=>t?a.jsx(jo,{style:e,children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):null,W=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;default:return e.profitAndLossReport}},He=e=>{if(e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState.classViewLayout==="horizontal"){const t=e.profitAndLossByClassHorizontalReport;return t.selectedPeriod!=null?t:W(e)}return W(e)},he=({selectedReport:e,isCompareModeOn:t,windowSize:r})=>{const l=e.availableNumberOfPeriods;let o=Bo(t,r);return l!=null&&(o=Math.min(o,l)),o};function Rn(e){const t=me(),r=fe(),l=ct(),{onUpdateAccountViewMode:o,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:x,isCompareMode:u,selectedReportAndTimeframeFetchState:m,onClickMenuIcon:f,isReportsCommentingEnabled:h,initialOpenThreadRequest:i}=e,d=e.isZeniUser??!1,y=l?.currentTenant?.companyId,s=l?.currentTenant?.companyName??"",c=h===!0&&y!=null,S=`dashboard_${y}`,R=d?dt:pt,{threads:k,isLoading:M,requestToOpenThread:T,setRequestToOpenThread:O,setOpenThread:_}=v.useContext(R);v.useEffect(()=>{i?.threadId!=null&&i?.companyId!=null&&i?.entityType!=null&&O(i)},[i,O]);const[w,A]=v.useState(!1),I=v.useMemo(()=>({application:"dashboard",companyId:y,tab:"standard_report",isGlobalComment:!1}),[y]),N=v.useMemo(()=>{const g=ht(k,I,"both");return Array.from(g.values())},[k,I]),F=v.useMemo(()=>N.filter(g=>g.resolved===!1),[N]).length,E=v.useCallback((g,j)=>{A(!1),O({threadId:j,companyId:g.companyId,entityType:g.entityType,threadMetadata:g})},[O]),[D,ne]=v.useState(void 0),X=v.useRef(null),qe=v.useCallback(g=>{ne(g)},[]),Xe=v.useCallback(g=>{X.current?.scrollToItem(g,"center")},[]);It({requestToOpenThread:T,setRequestToOpenThread:O,setOpenThread:_,allThreads:N,selectedReport:e.selectedReport,onReportSelectionChanged:e.onReportSelectionChanged,reportTreeRootNodes:D,nodeCollapseState:He(e).uiState.nodeCollapseState,onExpandNode:e.onElementCollapseStateChanged,scrollToNode:Xe});const Je=v.useMemo(()=>({companyId:y??"",companyName:s,entityType:"standard_report.details",entityId:y??"",isGlobalComment:!1,application:"dashboard",tab:"standard_report",url:window.location.href}),[y,s]),Ke=(g,j)=>{g!==J?.accountViewMode&&o?.(g),j&&n?.(j)};v.useEffect(()=>{if(e.fetchState==="Completed"){const g=W(e).filter?.additionalBalances??[];e.onUpdateHighlightedNumberOfPeriods?.(g,e.isCompareMode,he({selectedReport:W(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe??[])}},[t,e.fetchState]);const J=function(g){let j=g.selectedCOABalancesRange.thisPeriod;if(j==null){const it=g.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"&&g.profitAndLossClassesViewReport.uiState.classViewLayout==="horizontal",be=g.profitAndLossByClassHorizontalReport.headerBalances[0];if(it===!0&&be!=null)j=be;else{const rt=g.displayOrder,se=g.profitAndLossReport.sections.expenses,lt=g.profitAndLossReport.sections.income,ie=se!=null&&(se?.balances?.length??0)>0?se:lt;if(ie!=null&&(ie.balances?.length??0)>0){const _e=ie.balances??[];j=_e[rt==="ascending_date"?_e.length-1:0]}}}const V=W(g),H=V.firstMonthOfFY,Z=V.bookCloseDate,at=V.dataAvailable,st=V.filter.additionalBalances;if(j!=null)return{localeId:B.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:g.currentTenantCompanyName,statementFileType:"pdf",statements:g.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:H,bookCloseDate:Z,dataAvailable:at,timeframe:g.selectedTimeframe,additionalBalances:st,format:g.reportFormat,balancesFilter:{thisPeriod:j,numberOfPeriods:g.selectedCOABalancesRange.numberOfPeriods,orderBy:g.displayOrder},accountViewMode:g.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:g.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:g.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:g.isZeniUser,isZeniCOAUsed:g.isZeniCOAUsed,classViewLayout:g.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"?g.profitAndLossClassesViewReport.uiState.classViewLayout:"vertical"}}(e),Qe=B.getLocalizedStrings().reports.common,et=l!=null&&we(l.loggedInUserRole)?"detailed":"more_detailed",ae=l!=null&&we(l.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&J?.accountViewMode==="account_group"&&ae.push("detailed");const[tt,ot]=Pe.useState(ae.includes("more_detailed")?"detailed":"more_detailed"),nt={selectedFormat:tt,disabledFormatForRole:ae,roleBasedClassesSelectedFormat:et,setSelectedFormat:ot};if(m.fetchState==="Error"||e.fetchState==="Error")return a.jsxs(Mo,{"data-testid":$("report-page-error-reload-page"),children:[a.jsx(Io,{"data-testid":$("report-page-error-reload-icon"),onClick:e.onReloadReport,children:a.jsx(mt,{})}),a.jsx($o,{children:Qe.failed})]});const ge=e.fetchState;if(m.fetchState!=="Completed"&&(ge==="In-Progress"||ge==="Not-Started"))return a.jsx(Ge,{isLoading:!0});{const g=a.jsx(ft,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:J!=null&&e.dataAvailable!=null?a.jsx(Dt,{defaultOptions:J,analytics:e.analytics,referrer:U(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:nt,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:Ke,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(V,H,Z)=>{p(u,V,H,Z)},onTimeframeSelectionChanged:(V,H,Z)=>{x?.(V,H,Z)}}):a.jsx(a.Fragment,{})}}}),j=a.jsxs(Wo,{children:[c?a.jsxs(Go,{onClick:()=>A(!0),"data-testid":$("reports-page-comment-button"),children:[a.jsx(ut,{count:M?void 0:F,isLoading:M,style:{left:"12px"}}),a.jsx(Ho,{})]}):null,g]});return a.jsxs(a.Fragment,{children:[a.jsxs(ko,{children:[a.jsx(gt,{title:B.getLocalizedStrings().reports.title,backgroundColor:r.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:f,rightSideComponent:j,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),a.jsx(Fo,{...e,onTreeNodesReady:qe,treeRef:X})]}),c?a.jsx(vt,{id:S,children:a.jsx(bt,{isDrawerOpen:w,allowComposer:!0,drawerTitle:vo,threads:N,filter:I,autoExpand:!0,autoFocus:!1,isLoading:M,textOverrides:{composerPlaceholder:Le.addANewComment,replyComposerPlaceholder:Le.replyAComment,threadResolve:je.resolveComment,threadUnResolve:je.unResolveComment},threadMetadata:Je,onThreadClick:E,onCloseAllThreadsDrawer:()=>A(!1),drawerSectionStyle:{width:t==="small"?"100%":"400px",boxSizing:t==="small"?"border-box":"content-box"},collapsibleThreadStyle:{width:t==="small"?"100%":"360px"}})}):null]})}}function Fo(e){const t=me(),r=fe(),l=v.useRef(null),{selectedReportAndTimeframeFetchState:o}=e,n=W(e),p=l.current?.clientWidth??G.tickSkeletonContainerWidth.value(t),x=Tt([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",u=o.fetchState==="In-Progress",m=e.profitAndLossClassesViewReport?.uiState,f=e.isHorizontalClassReportSwitchEnabled!==!1&&e.selectedReport==="profit_and_loss_by_classes"&&m?.accountViewMode==="classes",h=f&&m?.classViewLayout==="horizontal"&&e.onCOABalancesRangeChanged!=null&&o.fetchState==="Completed",i=f&&m?.classViewLayout==="horizontal",d=B.getLocalizedStrings().reports,y=e.analytics!=null?(s,c,S)=>{c===!0&&e.analytics?.trackCompareFilterTimeFrame(s,Q(e.selectedTimeframe),"range filter",S),e.analytics?.trackDateRangeFilterChange(s,"range filter",c,S)}:void 0;return a.jsxs(Lo,{windowSize:t,"data-testid":$("reports-page-content-container"),children:[a.jsx(zo,{windowSize:t,ref:l,children:a.jsx(zt,{timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(Q(s),U(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:B.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,isToggleDisabled:i,onValueChanged:s=>{e.analytics?.trackCompareMode(s,U(e.selectedReport),Q(e.selectedTimeframe));const c=n.filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}},secondaryToggle:f?{label:d.horizontalClassLayoutSwitch,isOn:m?.classViewLayout==="horizontal",onValueChanged:s=>{e.onUpdateClassViewLayout?.(s?"horizontal":"vertical")}}:void 0,secondaryToggleDataTestId:$("reports-horizontal-class-layout-switch")})}),o.fetchState==="Not-Started"||o.fetchState==="In-Progress"?a.jsx(Do,{windowSize:t,children:a.jsx(Uo,{children:a.jsx(wt,{width:p,height:oe-L[2],backgroundColor:r.colors.grey3,style:{borderRadius:C.sp2}})})}):h&&e.onCOABalancesRangeChanged!=null?a.jsx(Me,{windowSize:t,children:a.jsx(ho,{allTimeframeTicks:e.allTimeframeTicks,bookCloseDate:n.bookCloseDate,firstMonthOfFY:n.firstMonthOfFY,onCOABalancesRangeChanged:e.onCOABalancesRangeChanged,onDateRangeAnalytics:y,isCompareMode:e.isCompareMode,referrer:U(e.selectedReport),selectedCOABalancesRange:e.selectedCOABalancesRange,selectedTimeframe:e.selectedTimeframe,variant:"timeRangeSlider"})}):a.jsx(Me,{windowSize:t,children:a.jsx(Ft,{firstMonthOfFY:n.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Ne(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Ne(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(U(e.selectedReport),"range filter",e.isCompareMode,de(n.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,he({selectedReport:n,isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=Po(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(U(e.selectedReport),"range filter",e.isCompareMode,de(n.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),a.jsx(Yo,{windowSize:t,children:a.jsx(Oo,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(Eo(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),o.fetchState==="Not-Started"||o.fetchState==="In-Progress"?a.jsx(Ge,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:u}):a.jsxs(a.Fragment,{children:[a.jsx(Ze,{report:He(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",U(e.selectedReport),Q(e.selectedTimeframe),c);const S=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...n.filter.additionalBalances,"this_period_vs_last_period_percent"].filter(R=>R!=="this_period_vs_last_period"):[...n.filter.additionalBalances,"this_period_vs_last_period"].filter(R=>R!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,S,he({selectedReport:n,isCompareModeOn:e.isCompareMode,windowSize:t}))},onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:x,onTreeNodesReady:e.onTreeNodesReady,treeRef:e.treeRef}),At(e.selectedReport)?a.jsx(No,{windowSize:t,children:a.jsx($t,{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:(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:x,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Ne=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let r=e.length-1;return t.thisPeriod!=null&&(r=e.findIndex(l=>l.startDate.isSame(t.thisPeriod.startDate,"date")&&l.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(r+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},Po=(e,t)=>({thisPeriod:e[e.length-1-t.offsetFromEnd],numberOfPeriods:t.length,orderBy:"ascending_date"}),U=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"}},Eo=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return z.Event.profitAndLoss;case"cash_flow":return z.Event.cashFlow;case"balance_sheet":return z.Event.balanceSheet;default:return z.Event.reports}},Ze=Pe.memo(function({report:e,displayOrder:t,reportFormat:r,analytics:l,isZeniUser:o,onAdditionalBalanceSelectionChanged:n,onAccountBalanceClick:p,onTableScroll:x,onElementCollapseStateChanged:u,isCompareModeOn:m,isPageFetchInProgress:f=!1,onTreeNodesReady:h,treeRef:i}){const d=me(),y=fe(),[s,c]=v.useState(void 0),[S,R]=v.useState(void 0),k=!(d==="small"||d==="medium-compact"),M=m===!0?"this_period_vs_period_before":"none";v.useEffect(()=>{const _={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:r,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ot(),showClassAccountNumber:o};if(s!=null&&$e(S,e)&&f!==!0){const w=mo(s,_,e,k);c(w)}else{const w=bo(e,_,k,f);R(e),c(w)}},[m,e,f]),v.useEffect(()=>{s?.contentNodes!=null&&h?.(s.contentNodes)},[s,h]);const[T,O]=v.useState(5);return s!=null?a.jsxs(a.Fragment,{children:[a.jsx(St,{analytics:l,onLoad:_=>_?.trackPageLoaded(_o(e))}),a.jsx(go,{height:T,children:a.jsx(Yt,{backgroundColor:new Ct(y.colors.grey4),rootNodes:s,type:"name+balances_actual",compareMode:(()=>{let _=[];switch(e.reportId){case"profit_and_loss":{const w=e;_=(w.sections.expenses.balances.length>0?w.sections.expenses:w.sections.income).additionalBalances.map(A=>K(A));break}case"profit_and_loss_by_classes":{const w=e,A=(w.sections.expenses?.balances?.length??0)>0?w.sections.expenses:null,I=(w.sections.income?.balances?.length??0)>0?w.sections.income:null,N=A??I;N?.additionalBalances!=null&&(_=N.additionalBalances.map(F=>K(F)));break}case"cash_flow":_=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(w=>K(w));break;case"balance_sheet":_=e.sections.equity.additionalBalances.map(w=>K(w))}return _.length>0&&_.find(w=>w.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"})(),isSticky:{isStickyHeader:k,isStickyName:k},treeNodePadding:{left:ke.contentPaddingLeft.value(d),right:ke.contentPaddingRight.value(d)},treeRef:i,onAccountClick:p==null?void 0:(_,w,A)=>{p(_,w,A)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:_=>n?.(_==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(_,w)=>u?.(e.reportId,_,w),onReportTableHeightChanged:_=>{O(_+135)},onScroll:_=>x?.(e.reportId,_)})})]}):null},(e,t)=>Vo(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));Ze.displayName="Reports table";const Vo=(e,t,r)=>r.reduce((l,o)=>l===!0&&$e(e[`${o}`],t[`${o}`]),!0),zo=b.div`
217
+ `,Ge=({style:e,isLoading:t})=>t?a.jsx(jo,{style:e,children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):null,W=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;default:return e.profitAndLossReport}},He=e=>{if(e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState.classViewLayout==="horizontal"){const t=e.profitAndLossByClassHorizontalReport;return t.selectedPeriod!=null?t:W(e)}return W(e)},he=({selectedReport:e,isCompareModeOn:t,windowSize:r})=>{const l=e.availableNumberOfPeriods;let o=Bo(t,r);return l!=null&&(o=Math.min(o,l)),o};function Rn(e){const t=me(),r=fe(),l=ct(),{onUpdateAccountViewMode:o,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:x,isCompareMode:u,selectedReportAndTimeframeFetchState:m,onClickMenuIcon:f,isReportsCommentingEnabled:h,initialOpenThreadRequest:i}=e,d=e.isZeniUser??!1,y=l?.currentTenant?.companyId,s=l?.currentTenant?.companyName??"",c=h===!0&&y!=null,S=`dashboard_${y}`,R=d?dt:pt,{threads:k,isLoading:M,requestToOpenThread:T,setRequestToOpenThread:O,setOpenThread:_}=v.useContext(R);v.useEffect(()=>{i?.threadId!=null&&i?.companyId!=null&&i?.entityType!=null&&O(i)},[i,O]);const[w,A]=v.useState(!1),$=v.useMemo(()=>({application:"dashboard",companyId:y,tab:"standard_report",isGlobalComment:!1}),[y]),N=v.useMemo(()=>{const g=ht(k,$,"both");return Array.from(g.values())},[k,$]),F=v.useMemo(()=>N.filter(g=>g.resolved===!1),[N]).length,E=v.useCallback((g,j)=>{A(!1),O({threadId:j,companyId:g.companyId,entityType:g.entityType,threadMetadata:g})},[O]),[D,ne]=v.useState(void 0),X=v.useRef(null),qe=v.useCallback(g=>{ne(g)},[]),Xe=v.useCallback(g=>{X.current?.scrollToItem(g,"center")},[]);$t({requestToOpenThread:T,setRequestToOpenThread:O,setOpenThread:_,allThreads:N,selectedReport:e.selectedReport,onReportSelectionChanged:e.onReportSelectionChanged,reportTreeRootNodes:D,nodeCollapseState:He(e).uiState.nodeCollapseState,onExpandNode:e.onElementCollapseStateChanged,scrollToNode:Xe});const Je=v.useMemo(()=>({companyId:y??"",companyName:s,entityType:"standard_report.details",entityId:y??"",isGlobalComment:!1,application:"dashboard",tab:"standard_report",url:window.location.href}),[y,s]),Ke=(g,j)=>{g!==J?.accountViewMode&&o?.(g),j&&n?.(j)};v.useEffect(()=>{if(e.fetchState==="Completed"){const g=W(e).filter?.additionalBalances??[];e.onUpdateHighlightedNumberOfPeriods?.(g,e.isCompareMode,he({selectedReport:W(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe??[])}},[t,e.fetchState]);const J=function(g){let j=g.selectedCOABalancesRange.thisPeriod;if(j==null){const it=g.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"&&g.profitAndLossClassesViewReport.uiState.classViewLayout==="horizontal",be=g.profitAndLossByClassHorizontalReport.headerBalances[0];if(it===!0&&be!=null)j=be;else{const rt=g.displayOrder,se=g.profitAndLossReport.sections.expenses,lt=g.profitAndLossReport.sections.income,ie=se!=null&&(se?.balances?.length??0)>0?se:lt;if(ie!=null&&(ie.balances?.length??0)>0){const _e=ie.balances??[];j=_e[rt==="ascending_date"?_e.length-1:0]}}}const V=W(g),H=V.firstMonthOfFY,Z=V.bookCloseDate,at=V.dataAvailable,st=V.filter.additionalBalances;if(j!=null)return{localeId:B.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:g.currentTenantCompanyName,statementFileType:"pdf",statements:g.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:H,bookCloseDate:Z,dataAvailable:at,timeframe:g.selectedTimeframe,additionalBalances:st,format:g.reportFormat,balancesFilter:{thisPeriod:j,numberOfPeriods:g.selectedCOABalancesRange.numberOfPeriods,orderBy:g.displayOrder},accountViewMode:g.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:g.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:g.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:g.isZeniUser,isZeniCOAUsed:g.isZeniCOAUsed,classViewLayout:g.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"?g.profitAndLossClassesViewReport.uiState.classViewLayout:"vertical"}}(e),Qe=B.getLocalizedStrings().reports.common,et=l!=null&&we(l.loggedInUserRole)?"detailed":"more_detailed",ae=l!=null&&we(l.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&J?.accountViewMode==="account_group"&&ae.push("detailed");const[tt,ot]=Pe.useState(ae.includes("more_detailed")?"detailed":"more_detailed"),nt={selectedFormat:tt,disabledFormatForRole:ae,roleBasedClassesSelectedFormat:et,setSelectedFormat:ot};if(m.fetchState==="Error"||e.fetchState==="Error")return a.jsxs(Mo,{"data-testid":I("report-page-error-reload-page"),children:[a.jsx($o,{"data-testid":I("report-page-error-reload-icon"),onClick:e.onReloadReport,children:a.jsx(mt,{})}),a.jsx(Io,{children:Qe.failed})]});const ge=e.fetchState;if(m.fetchState!=="Completed"&&(ge==="In-Progress"||ge==="Not-Started"))return a.jsx(Ge,{isLoading:!0});{const g=a.jsx(ft,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:J!=null&&e.dataAvailable!=null?a.jsx(Dt,{defaultOptions:J,analytics:e.analytics,referrer:U(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:nt,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:Ke,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(V,H,Z)=>{p(u,V,H,Z)},onTimeframeSelectionChanged:(V,H,Z)=>{x?.(V,H,Z)}}):a.jsx(a.Fragment,{})}}}),j=a.jsxs(Wo,{children:[c?a.jsxs(Go,{onClick:()=>A(!0),"data-testid":I("reports-page-comment-button"),children:[a.jsx(ut,{count:M?void 0:F,isLoading:M,style:{left:"12px"}}),a.jsx(Ho,{})]}):null,g]});return a.jsxs(a.Fragment,{children:[a.jsxs(ko,{children:[a.jsx(gt,{title:B.getLocalizedStrings().reports.title,backgroundColor:r.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:f,rightSideComponent:j,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),a.jsx(Fo,{...e,onTreeNodesReady:qe,treeRef:X})]}),c?a.jsx(vt,{id:S,children:a.jsx(bt,{isDrawerOpen:w,allowComposer:!0,drawerTitle:vo,threads:N,filter:$,autoExpand:!0,autoFocus:!1,isLoading:M,textOverrides:{composerPlaceholder:Le.addANewComment,replyComposerPlaceholder:Le.replyAComment,threadResolve:je.resolveComment,threadUnResolve:je.unResolveComment},threadMetadata:Je,onThreadClick:E,onCloseAllThreadsDrawer:()=>A(!1),drawerSectionStyle:{width:t==="small"?"100%":"400px",boxSizing:t==="small"?"border-box":"content-box"},collapsibleThreadStyle:{width:t==="small"?"100%":"360px"}})}):null]})}}function Fo(e){const t=me(),r=fe(),l=v.useRef(null),{selectedReportAndTimeframeFetchState:o}=e,n=W(e),p=l.current?.clientWidth??G.tickSkeletonContainerWidth.value(t),x=Tt([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",u=o.fetchState==="In-Progress",m=e.profitAndLossClassesViewReport?.uiState,f=e.isHorizontalClassReportSwitchEnabled!==!1&&e.selectedReport==="profit_and_loss_by_classes"&&m?.accountViewMode==="classes",h=f&&m?.classViewLayout==="horizontal"&&e.onCOABalancesRangeChanged!=null&&o.fetchState==="Completed",i=f&&m?.classViewLayout==="horizontal",d=B.getLocalizedStrings().reports,y=e.analytics!=null?(s,c,S)=>{c===!0&&e.analytics?.trackCompareFilterTimeFrame(s,Q(e.selectedTimeframe),"range filter",S),e.analytics?.trackDateRangeFilterChange(s,"range filter",c,S)}:void 0;return a.jsxs(Lo,{windowSize:t,"data-testid":I("reports-page-content-container"),children:[a.jsx(zo,{windowSize:t,ref:l,children:a.jsx(zt,{timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(Q(s),U(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:B.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,isToggleDisabled:i,onValueChanged:s=>{e.analytics?.trackCompareMode(s,U(e.selectedReport),Q(e.selectedTimeframe));const c=n.filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}},secondaryToggle:f?{label:d.horizontalClassLayoutSwitch,isOn:m?.classViewLayout==="horizontal",onValueChanged:s=>{e.onUpdateClassViewLayout?.(s?"horizontal":"vertical")}}:void 0,secondaryToggleDataTestId:I("reports-horizontal-class-layout-switch")})}),o.fetchState==="Not-Started"||o.fetchState==="In-Progress"?a.jsx(Do,{windowSize:t,children:a.jsx(Uo,{children:a.jsx(wt,{width:p,height:oe-L[2],backgroundColor:r.colors.grey3,style:{borderRadius:C.sp2}})})}):h&&e.onCOABalancesRangeChanged!=null?a.jsx(Me,{windowSize:t,children:a.jsx(ho,{allTimeframeTicks:e.allTimeframeTicks,bookCloseDate:n.bookCloseDate,firstMonthOfFY:n.firstMonthOfFY,onCOABalancesRangeChanged:e.onCOABalancesRangeChanged,onDateRangeAnalytics:y,isCompareMode:e.isCompareMode,referrer:U(e.selectedReport),selectedCOABalancesRange:e.selectedCOABalancesRange,selectedTimeframe:e.selectedTimeframe,variant:"timeRangeSlider"})}):a.jsx(Me,{windowSize:t,children:a.jsx(Ft,{firstMonthOfFY:n.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Ne(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Ne(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(U(e.selectedReport),"range filter",e.isCompareMode,de(n.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,he({selectedReport:n,isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=Po(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(U(e.selectedReport),"range filter",e.isCompareMode,de(n.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),a.jsx(Yo,{windowSize:t,children:a.jsx(Oo,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(Eo(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),o.fetchState==="Not-Started"||o.fetchState==="In-Progress"?a.jsx(Ge,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:u}):a.jsxs(a.Fragment,{children:[a.jsx(Ze,{report:He(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",U(e.selectedReport),Q(e.selectedTimeframe),c);const S=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...n.filter.additionalBalances,"this_period_vs_last_period_percent"].filter(R=>R!=="this_period_vs_last_period"):[...n.filter.additionalBalances,"this_period_vs_last_period"].filter(R=>R!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,S,he({selectedReport:n,isCompareModeOn:e.isCompareMode,windowSize:t}))},onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:x,onTreeNodesReady:e.onTreeNodesReady,treeRef:e.treeRef}),At(e.selectedReport)?a.jsx(No,{windowSize:t,children:a.jsx(It,{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:(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:x,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Ne=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let r=e.length-1;return t.thisPeriod!=null&&(r=e.findIndex(l=>l.startDate.isSame(t.thisPeriod.startDate,"date")&&l.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(r+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},Po=(e,t)=>({thisPeriod:e[e.length-1-t.offsetFromEnd],numberOfPeriods:t.length,orderBy:"ascending_date"}),U=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"}},Eo=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return z.Event.profitAndLoss;case"cash_flow":return z.Event.cashFlow;case"balance_sheet":return z.Event.balanceSheet;default:return z.Event.reports}},Ze=Pe.memo(function({report:e,displayOrder:t,reportFormat:r,analytics:l,isZeniUser:o,onAdditionalBalanceSelectionChanged:n,onAccountBalanceClick:p,onTableScroll:x,onElementCollapseStateChanged:u,isCompareModeOn:m,isPageFetchInProgress:f=!1,onTreeNodesReady:h,treeRef:i}){const d=me(),y=fe(),[s,c]=v.useState(void 0),[S,R]=v.useState(void 0),k=!(d==="small"||d==="medium-compact"),M=m===!0?"this_period_vs_period_before":"none";v.useEffect(()=>{const _={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:r,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ot(),showClassAccountNumber:o};if(s!=null&&Ie(S,e)&&f!==!0){const w=mo(s,_,e,k);c(w)}else{const w=bo(e,_,k,f);R(e),c(w)}},[m,e,f]),v.useEffect(()=>{s?.contentNodes!=null&&h?.(s.contentNodes)},[s,h]);const[T,O]=v.useState(5);return s!=null?a.jsxs(a.Fragment,{children:[a.jsx(St,{analytics:l,onLoad:_=>_?.trackPageLoaded(_o(e))}),a.jsx(go,{height:T,children:a.jsx(Yt,{backgroundColor:new Ct(y.colors.grey4),rootNodes:s,type:"name+balances_actual",compareMode:(()=>{let _=[];switch(e.reportId){case"profit_and_loss":{const w=e;_=(w.sections.expenses.balances.length>0?w.sections.expenses:w.sections.income).additionalBalances.map(A=>K(A));break}case"profit_and_loss_by_classes":{const w=e,A=(w.sections.expenses?.balances?.length??0)>0?w.sections.expenses:null,$=(w.sections.income?.balances?.length??0)>0?w.sections.income:null,N=A??$;N?.additionalBalances!=null&&(_=N.additionalBalances.map(F=>K(F)));break}case"cash_flow":_=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(w=>K(w));break;case"balance_sheet":_=e.sections.equity.additionalBalances.map(w=>K(w))}return _.length>0&&_.find(w=>w.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"})(),isSticky:{isStickyHeader:k,isStickyName:k},treeNodePadding:{left:ke.contentPaddingLeft.value(d),right:ke.contentPaddingRight.value(d)},treeRef:i,onAccountClick:p==null?void 0:(_,w,A)=>{p(_,w,A)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:_=>n?.(_==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(_,w)=>u?.(e.reportId,_,w),onReportTableHeightChanged:_=>{O(_+135)},onScroll:_=>x?.(e.reportId,_)})})]}):null},(e,t)=>Vo(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));Ze.displayName="Reports table";const Vo=(e,t,r)=>r.reduce((l,o)=>l===!0&&Ie(e[`${o}`],t[`${o}`]),!0),zo=b.div`
218
218
  padding-right: ${e=>G.contentRightPadding.valuePx(e.windowSize)};
219
219
  `,Me=b.div`
220
220
  margin-top: ${C.sp3};
@@ -1 +1 @@
1
- import{j as c}from"./pdf-A8jRKyoC.js";import{j as ee,i as ae,h as se,l as te,u as f,k as oe,R as ne,m as j}from"./core-B0nKoasK.js";import{ct as L,cR as C,HA as re,mO as F,gB as le,fF as ie,mT as ce,bt as de,HB as pe,bm as me,r7 as fe,HC as ue,HD as _e,q5 as he,HE as v,HF as be,HG as ye,HH as T,HI as O,HJ as D,HK as k,HL as H,Fh as ge,qP as Ce,qD as U,qE as V,qV as Ie,qI as x,q$ as we,HM as Se,HN as Te,HO as Re,HP as Fe,HQ as Oe,cA as De,cy as ke}from"./zeni-epic-state-DCforPdM.js";import{e as He,aE as G,aG as A,js as Y,k2 as Ae,_ as Ee,bj as Le,jz as E,I as Me,k3 as Pe,k4 as Be,jO as je}from"./index-ByxsQZNo.js";import"./mui-40xepic5.js";import ve from"./NotFoundScreen-86VjMapP.js";import{F as Ue}from"./FeaturePreviewScreen-Ctx49exK.js";import{a as y}from"./sentry-COYnhuxW.js";import{u as Ve}from"./useInitialThreadRequest-BIFRjZze.js";import{t as z,a as q}from"./routePaths-CpPoI1xs.js";import{M as xe}from"./MobileAppDrawer-CXepfp6e.js";import"./lottie-BzV8yd9z.js";import"./liveblocks-DskTqGyX.js";import"./recharts-Bbdho9Pi.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./plaid-cfgjTkr8.js";import"./utils-DMEPgX6w.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]="530882ca-398b-48fa-988a-1123db762f47",e._sentryDebugIdIdentifier="sentry-dbid-530882ca-398b-48fa-988a-1123db762f47")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},ze=e=>{e(Te()),e(Re()),e(Fe()),e(Oe())},qe=oe(function(e){const o=Y.getSignedInUser(),i=e.tenantState.currentTenantId,u=L(e),a=u?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},t=C(e),n=pe(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:s,isZeniCOAUsed:n}},function(e,o){const{navigate:i,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Se(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(we(a)),s){const{isCompareModeOn:n,filter:l}=o,{additionalBalances:p,balancesRange:d}=l;let m=[...p];a==="year"&&(m=m.filter(_=>_!=="this_period_vs_same_period_last_year"&&_!=="this_period_vs_same_period_last_year_percent"&&_!=="same_period_last_year")),e(U(o.firstMonthOfFY,n,d.numberOfPeriods<4?4:d.numberOfPeriods,m)),p.length>0&&e(V(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}t!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,s)=>{e(x(a,s)),g(e)},onThisPeriodChanged:(a,s,t)=>{e(Ie(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,s,t,n)=>{e(U(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(V(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let n,l;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(n=s.balanceTimeFrame,l=ge(s)):s.balanceTimeFrame==="year"?(n="quarter",l={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),l!=null&&n!=null){const p=a.accountName===""?a.accountDescription:a.accountName,d=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(t?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,s.id,p,n,l)}return a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?q(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],p,n,l):a.accountType!=null?z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l):void 0})();if(d!=null){const m=je(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(k({scrollPosition:s}));break;case"balance_sheet":e(D({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{i("../../")},onUpdateAccountViewMode:a=>{e(ye({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",R(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",R(o.selectedReportID)),e(T("profit_and_loss"))),g(e)},onUpdateClassesToFilterOut:a=>{e(be({classesToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(v({classViewLayout:a}))},onOpenAccountViewMode:()=>{e(he())},onUpdateDisplayOrder:a=>{e(_e(a))},onUpdateReportFormat:a=>{ze(e),e(ue(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(fe("profit_and_loss_by_classes"))}}})(Pe);function Ge(){const e=He(),o=ee(),i=ae(),u=se(),{tenantEmailDomain:a}=te(),{useFeatureGate:s}=G(),{isFeatureEnabled:t}=s(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=s(A.isReportsCommentingEnabled);if(n==null)throw Error("Can't access reports page without signing in...");const M=f(r=>L(r)),N=M.company?.companyInfo.firstMonthOfFY??1,$=Ve(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),Z=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),J=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),K=f(r=>r.profitAndLossClassesViewState.uiState.classViewLayout);y.useEffect(()=>{!l&&h&&(p(!0),i(F(n.userId,!0,!0,!1)))},[l,n,i,h]),y.useEffect(()=>{l&&!d&&I==="Completed"&&h&&(i(F(n.userId,!1,!0,!1)),m(!0))},[l,d,I,h]),y.useEffect(()=>{if(l&&S.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&h)switch(w){case"profit_and_loss":case"profit_and_loss_by_classes":i(ce(b.timeframe));break;case"balance_sheet":i(ie(b.timeframe));break;case"cash_flow":i(le(b.timeframe))}},[l,w,S,h]);const P=Ee(),Q=P?.loggedInUserRole!=null&&de(P?.loggedInUserRole)!==!0,[W,X]=y.useState(!1),B=r=>{X(r)};return c.jsxs(c.Fragment,{children:[I==="Completed"?c.jsx(Le,{analytics:E,onLoad:r=>r.trackPageLoaded(Me.Event.reports)}):null,c.jsx(xe,{isAppContentDrawerOpen:W,handleDrawerToggle:B}),c.jsx(qe,{firstMonthOfFY:N,tenantEmailDomain:a,location:u,navigate:o,windowSize:e,classViewLayout:K,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:J,hasTransactionAccess:Q,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:Z.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:t,isReportsCommentingEnabled:_,initialOpenThreadRequest:$})]})}const R=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function ca(){const e=f(s=>L(s)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=De(i,e),a=ke(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(j,{path:"/",element:c.jsx(Ge,{})}),c.jsx(j,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
1
+ import{j as c}from"./pdf-CTJ16aEe.js";import{j as ee,i as ae,h as se,l as te,u as f,k as oe,R as ne,m as j}from"./core-oEkj6b51.js";import{ct as L,cR as C,HA as re,mO as F,gB as le,fF as ie,mT as ce,bt as de,HB as pe,bm as me,r7 as fe,HC as ue,HD as _e,q5 as he,HE as v,HF as be,HG as ye,HH as T,HI as O,HJ as D,HK as k,HL as H,Fh as ge,qP as Ce,qD as U,qE as V,qV as Ie,qI as x,q$ as we,HM as Se,HN as Te,HO as Re,HP as Fe,HQ as Oe,cA as De,cy as ke}from"./zeni-epic-state-cFF_NqwA.js";import{e as He,aE as G,aG as A,js as Y,k2 as Ae,_ as Ee,bj as Le,jz as E,J as Me,k3 as Pe,k4 as Be,jO as je}from"./index-BHAcVHeH.js";import"./mui-Cni6P-fz.js";import ve from"./NotFoundScreen-SRDW4_mE.js";import{F as Ue}from"./FeaturePreviewScreen-D_cOMPjM.js";import{a as y}from"./sentry-CY6wsJT-.js";import{u as Ve}from"./useInitialThreadRequest-DTIHWJqF.js";import{t as z,a as q}from"./routePaths-WWdcktge.js";import{M as xe}from"./MobileAppDrawer-CTcTm5tx.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="ccfd1f53-7a41-4c0d-8487-f8a5f4de7751",e._sentryDebugIdIdentifier="sentry-dbid-ccfd1f53-7a41-4c0d-8487-f8a5f4de7751")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},ze=e=>{e(Te()),e(Re()),e(Fe()),e(Oe())},qe=oe(function(e){const o=Y.getSignedInUser(),i=e.tenantState.currentTenantId,u=L(e),a=u?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},t=C(e),n=pe(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:s,isZeniCOAUsed:n}},function(e,o){const{navigate:i,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Se(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(we(a)),s){const{isCompareModeOn:n,filter:l}=o,{additionalBalances:p,balancesRange:d}=l;let m=[...p];a==="year"&&(m=m.filter(_=>_!=="this_period_vs_same_period_last_year"&&_!=="this_period_vs_same_period_last_year_percent"&&_!=="same_period_last_year")),e(U(o.firstMonthOfFY,n,d.numberOfPeriods<4?4:d.numberOfPeriods,m)),p.length>0&&e(V(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}t!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,s)=>{e(x(a,s)),g(e)},onThisPeriodChanged:(a,s,t)=>{e(Ie(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,s,t,n)=>{e(U(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(V(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let n,l;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(n=s.balanceTimeFrame,l=ge(s)):s.balanceTimeFrame==="year"?(n="quarter",l={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),l!=null&&n!=null){const p=a.accountName===""?a.accountDescription:a.accountName,d=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(t?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,s.id,p,n,l)}return a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?q(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],p,n,l):a.accountType!=null?z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l):void 0})();if(d!=null){const m=je(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(k({scrollPosition:s}));break;case"balance_sheet":e(D({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{i("../../")},onUpdateAccountViewMode:a=>{e(ye({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",R(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",R(o.selectedReportID)),e(T("profit_and_loss"))),g(e)},onUpdateClassesToFilterOut:a=>{e(be({classesToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(v({classViewLayout:a}))},onOpenAccountViewMode:()=>{e(he())},onUpdateDisplayOrder:a=>{e(_e(a))},onUpdateReportFormat:a=>{ze(e),e(ue(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(fe("profit_and_loss_by_classes"))}}})(Pe);function Ge(){const e=He(),o=ee(),i=ae(),u=se(),{tenantEmailDomain:a}=te(),{useFeatureGate:s}=G(),{isFeatureEnabled:t}=s(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=s(A.isReportsCommentingEnabled);if(n==null)throw Error("Can't access reports page without signing in...");const M=f(r=>L(r)),N=M.company?.companyInfo.firstMonthOfFY??1,$=Ve(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),J=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),Z=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),K=f(r=>r.profitAndLossClassesViewState.uiState.classViewLayout);y.useEffect(()=>{!l&&h&&(p(!0),i(F(n.userId,!0,!0,!1)))},[l,n,i,h]),y.useEffect(()=>{l&&!d&&I==="Completed"&&h&&(i(F(n.userId,!1,!0,!1)),m(!0))},[l,d,I,h]),y.useEffect(()=>{if(l&&S.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&h)switch(w){case"profit_and_loss":case"profit_and_loss_by_classes":i(ce(b.timeframe));break;case"balance_sheet":i(ie(b.timeframe));break;case"cash_flow":i(le(b.timeframe))}},[l,w,S,h]);const P=Ee(),Q=P?.loggedInUserRole!=null&&de(P?.loggedInUserRole)!==!0,[W,X]=y.useState(!1),B=r=>{X(r)};return c.jsxs(c.Fragment,{children:[I==="Completed"?c.jsx(Le,{analytics:E,onLoad:r=>r.trackPageLoaded(Me.Event.reports)}):null,c.jsx(xe,{isAppContentDrawerOpen:W,handleDrawerToggle:B}),c.jsx(qe,{firstMonthOfFY:N,tenantEmailDomain:a,location:u,navigate:o,windowSize:e,classViewLayout:K,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:Z,hasTransactionAccess:Q,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:J.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:t,isReportsCommentingEnabled:_,initialOpenThreadRequest:$})]})}const R=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function ca(){const e=f(s=>L(s)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=De(i,e),a=ke(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(j,{path:"/",element:c.jsx(Ge,{})}),c.jsx(j,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
@@ -1,4 +1,4 @@
1
- import{y as F,O as S,V as t,d as m,S as Fe,an as Q,k as E,w as M,ag as Z,e as de,o as x,P as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-ByxsQZNo.js";import{a as z,b as ee}from"./sentry-COYnhuxW.js";import{n as f}from"./mui-40xepic5.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-D2s_Hwo9-BbhqSw8p.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-DinJUeg4-DkE5puj7.js";import{V as J}from"./toChartData-DrYGpr_j-D2GR-55Z.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-Bbdho9Pi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="8377ff43-7d7a-4cc5-b042-bd78bcaa34ce",e._sentryDebugIdIdentifier="sentry-dbid-8377ff43-7d7a-4cc5-b042-bd78bcaa34ce")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
1
+ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de,o as x,b as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-BHAcVHeH.js";import{a as z,b as ee}from"./sentry-CY6wsJT-.js";import{n as f}from"./mui-Cni6P-fz.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-_AEkJ5Cg-CVupoc41.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-CuxwOBs0-D4IOrabU.js";import{V as J}from"./toChartData-BODe4y2V-CHAJ4Jnp.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-LlOU9oLm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="914b91ea-0983-4f37-8023-48097005c719",e._sentryDebugIdIdentifier="sentry-dbid-914b91ea-0983-4f37-8023-48097005c719")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
2
2
  display: flex;
3
3
  `,He=f.div`
4
4
  margin: ${x.sp2} ${x.sp0} ${x.sp2} ${x.sp0};