@zeniai/web-cockpit-ui 1.14.98-qa → 1.14.99-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 (329) hide show
  1. package/dist/assets/ACHDetailsPage-BRWOdhMx-B-izv--D.js +21 -0
  2. package/dist/assets/{AIPerformancePage-TtdFArUl-uXser-uf.js → AIPerformancePage-4v4Fkm9f-8H5taohv.js} +108 -108
  3. package/dist/assets/AccountInfoPage-Ca_vKG58--BfC_vXh.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BXX4TyeS-C4EJ3VMJ.js → AccountInfoPageContent-Dv1IPcdF-BHWFRnzI.js} +19 -19
  5. package/dist/assets/AccountLockedInfoModal-CEk5d9hq-BMstREsN.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BZsVhDyw-B570cCNk.js → AccountReconDetailsDrawerPage-DYKjrPwN-Drg0SGIJ.js} +54 -54
  7. package/dist/assets/{AccountRow-COxNWv3J-B4EUrg0i.js → AccountRow-BM3xLbeh-BSdpkM-d.js} +30 -30
  8. package/dist/assets/{AccountsPromoCardStack-BW7r2R96-D8N78ah8.js → AccountsPromoCardStack-CTkwARBJ-Cy5pYNXf.js} +30 -30
  9. package/dist/assets/AddAddressForCardDrawer-DfOyebHX-DhjpIE6j.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CXhBOHda-BeDX9RGw.js → AddToWalletPage-OJBvAKUj-B4ZmMeKh.js} +13 -13
  11. package/dist/assets/{AgingReportsPage-CX3Te0mD-BIMPcWZD.js → AgingReportsPage-n-UKn3Ei-CZEEMMir.js} +10 -10
  12. package/dist/assets/{AllUserItems-Cd2jEIM9-B9hdjONU.js → AllUserItems-BsvKEVcx-lxn8aic0.js} +13 -13
  13. package/dist/assets/{ApAgingDetailPage-BCBhgQDY-C0EKPdXU.js → ApAgingDetailPage-Duu2uAEr-DUMvdGKK.js} +5 -5
  14. package/dist/assets/{AppBasePage-BRcQ7IPJ-DutcAwno.js → AppBasePage-DoCF494Z-qPWVG34b.js} +16 -16
  15. package/dist/assets/{AppDrawerContent-DQlHQEcs-DLSmKyRJ.js → AppDrawerContent-DM1t0oLS-9US_DgsB.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-Cqt8FvLJ-Dcokd50I.js → ApprovalRulesSettingsPage-GZCo6_i2-CJH6P32S.js} +6 -6
  17. package/dist/assets/{ArAgingChart-BvAQf_dB-DuZvWO-Q.js → ArAgingChart-CsFDVdeO-C4PujVrW.js} +4 -4
  18. package/dist/assets/ArAgingDetailPage-CaOr6vAU-B5uL9zyI.js +46 -0
  19. package/dist/assets/{AttachmentView-e6OZT5St-DqYOouQl.js → AttachmentView-B0d42oAf-DVHm34mB.js} +6 -6
  20. package/dist/assets/{BankAccountSection-DWKYMZid-VBEJaF0G.js → BankAccountSection-Bgdk93V0-Cg5PjZDc.js} +7 -7
  21. package/dist/assets/BankAccountWarningSection-DMRmF2yM-BgfDzJHZ.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-DLnQeHtD-BXUv6CG7.js → BankConnectionsSettingsPage-BpwKq93l-Brctq4SF.js} +16 -16
  23. package/dist/assets/BillDetailPage-BG7FhHEq-DUv2nuJK.js +266 -0
  24. package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-A9_oblKa.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-BjMEKdHG.js +235 -0
  26. package/dist/assets/BillPayPromoPage-aGKOv8Ur-eBwd93N4.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-CneIMbul-BFdnuBwg.js → BillPaySetUpPage-DRCjyEfB-XKTwWmRS.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-35KDGxi0-CUXbiJI4.js → BillingSettingsPage-CdYb74V7-HQVzU-6G.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-B2SeSM_K-KjC1YEHo.js → BillsBulkReviewDrawerPage-D8EGfY5P-B0Wqyx4s.js} +1 -1
  30. package/dist/assets/{BoxItem-BGDuiQll-SbLnCH_S.js → BoxItem-WOrvBzns-DN4WYKEf.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-GZnJ9G9I-BIwYlUUz.js → BusinessVerificationPage-CbqJIVpz-DVX5hTQl.js} +10 -10
  32. package/dist/assets/{CardNumberSubText-COHmqgEx-CwfhKSB3.js → CardNumberSubText-DBOH0_yP-3HOBgKpF.js} +8 -8
  33. package/dist/assets/{CashbackDetailPage-DvA_0POP-zs6KXs-G.js → CashbackDetailPage-D-kXy6LW-CbbkR_T0.js} +26 -26
  34. package/dist/assets/{ChargeCardDetailPage-DF69jsTG-hPfyciQI.js → ChargeCardDetailPage-BQnJsfn5-C0NtbZa-.js} +244 -244
  35. package/dist/assets/ChargeCardListPage-130ILwkr-ZB2yzsHG.js +412 -0
  36. package/dist/assets/{ChargeCardListTable-BEYWfP5G-BRCBGTIM.js → ChargeCardListTable-EGkwcy7i-DEc29h5o.js} +67 -67
  37. package/dist/assets/ChargeCardPromoPage-BwqrXrY--IstKF_Na.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-BsTAJGSf-CKUm4_l7.js → ChargeCardSetupPage-DRzB7Rt4-DmQFjafd.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-BwuOooT4-CHM4k28L.js → ChargeCardStatementsPage-C3NxKjmB-C8FsLWHJ.js} +8 -8
  40. package/dist/assets/{CheckDepositDrawerPage-CC3EUXpO-CF5fGfSc.js → CheckDepositDrawerPage-ClxKj2js-Do24RzJh.js} +17 -17
  41. package/dist/assets/{CollapsableReportTable-Bju2JSCg-BSE4kNvo.js → CollapsableReportTable-xkNXkjfh-CtzSwjPt.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-CtHtINKb-CFehJGSv.js → CompanyOfficerDetailsSection-BtUBatbQ-Con3Jm3w.js} +30 -30
  43. package/dist/assets/{CompanyPassportCard-ClihOV6I-GVUlJP8e.js → CompanyPassportCard-BOxM716U-TVvNmGP9.js} +7 -7
  44. package/dist/assets/{CompanyPassportPage-Bzbp9vtj-4dA0AY_q.js → CompanyPassportPage-DzE7sm8S-Bu9tLN80.js} +40 -40
  45. package/dist/assets/{CompleteProfile-C88rpvIR-DxWKc-5-.js → CompleteProfile-BjGSPASa-AWB6Qzlv.js} +3 -3
  46. package/dist/assets/ConfettiBurst-1rYKpbAj-DRsprSNw.js +1 -0
  47. package/dist/assets/{CreateOrEditVendorPage-DJWcJCPR-Dl9O0TVh.js → CreateOrEditVendorPage-WQeDCj-E-D6Y6HtQ7.js} +20 -20
  48. package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-CloaEiop.js +224 -0
  49. package/dist/assets/{CurrencySelectField-9MMlAXHh-ORBioImf.js → CurrencySelectField-AjAWhg6e-BY-FVQ5N.js} +4 -4
  50. package/dist/assets/CustomerOnboardingActivationPage-BJhw-PvI-BRcGbX9s.js +88 -0
  51. package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-ByC2CvtB.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-EBEAYH3x-XKk3Vj6i.js → CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-DKx0xsM-.js} +15 -15
  53. package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-pyXbZEvq.js +66 -0
  54. package/dist/assets/{CustomerOnboardingPage-BWvGF8wk-BF0Atf4b.js → CustomerOnboardingPage-CvN9Jrdy-CzriWSkS.js} +4 -4
  55. package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-7zbQywoe.js +202 -0
  56. package/dist/assets/{Dashboard-Zq5BpBhF-Clq5EYRk.js → Dashboard-_o0Ftdv8-_2fT5Ubv.js} +55 -55
  57. package/dist/assets/{DashboardReportPage-Pie-FQ1e-WfSD6Vb-.js → DashboardReportPage-Cu5wqWkj-BHVvAcwu.js} +20 -20
  58. package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-Ds_VkWfq.js +12 -0
  59. package/dist/assets/{DepositAccTransactionItem-C6o7UraM-13lTBs69.js → DepositAccTransactionItem-BOPK7-7P-CUK10p36.js} +2 -2
  60. package/dist/assets/{DepositAccTransactionListPage-DWIzj9EC-aUyx_5K-.js → DepositAccTransactionListPage-oj9tntbI-BS3VI9z2.js} +4 -4
  61. package/dist/assets/{DomesticWireDetailsPage-BbuaFhlm-Dq9oLE4F.js → DomesticWireDetailsPage-FGdEilUB-DiafQBWa.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-smXqu_-_-HaHQ4oPo.js → DownloadOverlay-c57lEf_V-LFGP7g4c.js} +39 -39
  63. package/dist/assets/{DrawerPage-C-NGhaFc-C_xh6M62.js → DrawerPage-inbhWwND-Db0y8xmo.js} +18 -18
  64. package/dist/assets/EditPeoplePage-DJthuIP4-C5mu6ajz.js +55 -0
  65. package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-CsQHoeMv.js +865 -0
  66. package/dist/assets/EntityDetailPage-DbTiF9Hs-C-1lJOCB.js +18 -0
  67. package/dist/assets/{EntitySummarySection-D7ui3VxW-CERyjpXQ.js → EntitySummarySection-CHgrPo86-DQf0eS91.js} +9 -9
  68. package/dist/assets/{ExpenseAutomationOverviewPage-Cci1pEY4-1sL_AHg7.js → ExpenseAutomationOverviewPage-QZT_UFXf-CqWIAvtS.js} +27 -27
  69. package/dist/assets/{ExpenseAutomationPage-DsPGEQpL-DKHafJ5b.js → ExpenseAutomationPage-Y7V_Z8rd-BtMIiHAT.js} +63 -63
  70. package/dist/assets/{ExpressPayPage-ddPMg7wE-DPR1g8Lc.js → ExpressPayPage-CIp_R6ZQ-bLqdW2c-.js} +10 -10
  71. package/dist/assets/{FeaturePreviewPage-B7rx89MJ-D3LB_wGw.js → FeaturePreviewPage-qsUO3mUu-Bg5tciIN.js} +3 -3
  72. package/dist/assets/{FollowStepsSection-WUNvyjJh-B3nIPwPh.js → FollowStepsSection-ebmR-eLP-DUvk8yUe.js} +49 -49
  73. package/dist/assets/{GlobalReviewListPage-CrEL8cxP-qAlR9aFX.js → GlobalReviewListPage-9V-xoqvs-DgQFHT5d.js} +14 -14
  74. package/dist/assets/{InformationCardStack-cYN7bwE3-sO0pAOzz.js → InformationCardStack-DnB7TmOk-DRRzuuUg.js} +8 -8
  75. package/dist/assets/{InsightsCardStack-CAuhoPST-B5pOanGY.js → InsightsCardStack-BBczCYEz-DTWoyTqN.js} +12 -12
  76. package/dist/assets/InsightsSection-BTXj5WUe-ByTIWrkc.js +27 -0
  77. package/dist/assets/{IntegrationsSettingsPage-CBqEJpyq-GRgtPKr0.js → IntegrationsSettingsPage-CByj2tO4-C70tL_8j.js} +10 -10
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-Bg2_G0O4-BSPnTjV8.js → InternationalWireSwiftDetailsPage-4-pl1ozv-BerAwOXU.js} +17 -17
  79. package/dist/assets/{InternationalWireVerificationPage-BdaKAePs-CkGYQoGn.js → InternationalWireVerificationPage-kIajgPZt-CeT00ZG8.js} +26 -26
  80. package/dist/assets/{InviteFormPage-a7CtHDQi-DSGkeOn0.js → InviteFormPage-XsnZcAvb-CP-m9x5T.js} +24 -24
  81. package/dist/assets/{InvitePageListView-D0flsJMi-0Jk6a2Yk.js → InvitePageListView-HfsehyxK-NVvr8Ith.js} +78 -78
  82. package/dist/assets/InvitePeoplePage-DrBtwpMH-CbYg413Q.js +12 -0
  83. package/dist/assets/{InvoiceUploadSection-D6gMuygS-DsLHKXnW.js → InvoiceUploadSection-DPd4VmqZ-CDlXjsFg.js} +4 -4
  84. package/dist/assets/{IssueChargeCardPage-_zy-SJN0-pxLtKqbn.js → IssueChargeCardPage-xbfFhV0O-D9cPo91Q.js} +34 -34
  85. package/dist/assets/{LabeledAddressValue-CXqpyfBQ-C92S2n2L.js → LabeledAddressValue-CB_KH7v5-BfaoCJC2.js} +2 -2
  86. package/dist/assets/{LabeledAddressValueField-D-0wb98p-CikvqVxv.js → LabeledAddressValueField-Bt41wdNQ-C-99cOeY.js} +4 -4
  87. package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-BqFptUno.js +16 -0
  88. package/dist/assets/{LabeledCreatableSingleSelectField-B-OgiRpS-OWY6lxtT.js → LabeledCreatableSingleSelectField-fycRE7PX-Hf4cCYiq.js} +4 -4
  89. package/dist/assets/LabeledDocumentField-C73vQNgq-BAncal8r.js +41 -0
  90. package/dist/assets/{LabeledDropDownFormattedTextField-D54g8qxW-StSaD31c.js → LabeledDropDownFormattedTextField-DGb_bDyp-BCPR37EJ.js} +7 -7
  91. package/dist/assets/{LabeledText-BJi28Cmu-D9lfYP7U.js → LabeledText-yhm8qxrA-Bs5CTGJn.js} +3 -3
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dgn_WK0p-DWc0c9MZ.js → LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-DC0r0kWN.js} +23 -23
  93. package/dist/assets/{LabeledZeniRolesDropDownField--9AjGtEh-BGkQVvtD.js → LabeledZeniRolesDropDownField-DGkU72cd-ub025LyJ.js} +25 -25
  94. package/dist/assets/LinkJETransactionPage-C0onrP5t-BH-iwj4o.js +98 -0
  95. package/dist/assets/{LockCardPage-4ihNCAhG-BCEngBp6.js → LockCardPage-DaVzuRMw-Dq4q5Qyn.js} +21 -21
  96. package/dist/assets/{LowBalancePopup-YdUL24Wb-Cp0qxN-v.js → LowBalancePopup-Dd9HLWlh-9AO78nGr.js} +4 -4
  97. package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-CbO6Gy8N.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-6hv3VXVe.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-DGyc9KKZ.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-B-YTZWYj-Dgy0fFVg.js → MagicLinkSuccessPage-DbhdGmhh-Dlqur3CF.js} +5 -5
  101. package/dist/assets/{MagicLinkTitleSection-RHv_GuEq-y4Cr3bt2.js → MagicLinkTitleSection-Bx92291D-eyJD0RqY.js} +4 -4
  102. package/dist/assets/MailingDetailsSection-D-tnK244-DkMA7qYY.js +21 -0
  103. package/dist/assets/Menu-0YHUdU0n-DClJzSBJ.js +17 -0
  104. package/dist/assets/{MyBankConnectionsSettingsPage-CryrCaA2-BKVxzlg0.js → MyBankConnectionsSettingsPage-Dn9AT8p1-DOZcDQsI.js} +4 -4
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-DmmwfwjV-D-UqXttD.js → MyPendingActivationChargeCardListPage-DrQu6s7j-CuceVEXz.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-BspAqqsh-DUIa5pOA.js → MyProfileSettingsPage-CBvjEd7r-BTYXHZnd.js} +10 -10
  107. package/dist/assets/{NavBarWithPicker-C7xr7tTs-CXcnIkbM.js → NavBarWithPicker-aXn2QYh1-wbQMsyuO.js} +5 -5
  108. package/dist/assets/{NavigationArrow-rBOsZ92g-fpwJrM5H.js → NavigationArrow-JLUXaIrz-Dqbhc2Cm.js} +8 -8
  109. package/dist/assets/{NavigationDots-CautbD-g-BZ85pLrg.js → NavigationDots-B0_dDbgu-D0YfkCXB.js} +4 -4
  110. package/dist/assets/{NewGlobalMerchantPage-DD4raaWT-DqQ8tI0s.js → NewGlobalMerchantPage-B_019EtP-DM6Ow8UK.js} +12 -12
  111. package/dist/assets/NoDataChart-DLKHNXD4-tDLmbg2P.js +26 -0
  112. package/dist/assets/NoDataTable-BMD2qygC-BimI42bf.js +8 -0
  113. package/dist/assets/{NotFoundPage-D-nIKeoL-BrOOdcPB.js → NotFoundPage-BEya4LS2-BAtVahFo.js} +7 -7
  114. package/dist/assets/{NotificationSettingsPage-DP3xTLvr-D68mpAoX.js → NotificationSettingsPage-C9SjRKCu-AB1K2bpw.js} +23 -23
  115. package/dist/assets/NotificationsListConfig-OCeJNw1G-D_0tuWLm.js +1 -0
  116. package/dist/assets/{NotificationsPage-DkDGBzhT-BJUrRrH6.js → NotificationsPage-FJHx_WBG-DVMmN4nH.js} +49 -49
  117. package/dist/assets/{OpExByVendorPage-CtcdC3f9-2hXVNqVf.js → OpExByVendorPage-Dxk68R6U-DAiWfakx.js} +12 -12
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-DZQfrAEK.js → OverlayContainerPage-Daz3A7cI-8v0sqF2w.js} +1 -1
  119. package/dist/assets/PandLWithForecastPage-Bu49FbWD-CfqbniUD.js +107 -0
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BjcqKBLG-CUIvRQIH.js → PaymentAccountSetupBillingAddressSection-s9EEHxoG-ByN70cgf.js} +8 -8
  121. package/dist/assets/{PeoplePage-DCI7v6ru-BGUJ5TP9.js → PeoplePage-DN5VtG7Q-BobeSyfg.js} +29 -29
  122. package/dist/assets/Preview-B4cYjk3Q.js +1 -0
  123. package/dist/assets/{ProductsCarousel-Dqm1bC2_-D6IxIf3S.js → ProductsCarousel-6gthLCkf-CBWUX5-H.js} +8 -8
  124. package/dist/assets/{PromoBaseCards-dqE7GIJ6-D0yVIiC6.js → PromoBaseCards-CzPzj69A-VNtWOXHP.js} +6 -6
  125. package/dist/assets/{QBOConnectionDialog-CGPNOde4-CR0zHLvc.js → QBOConnectionDialog-BFy0lMZd-DQ6dF1fn.js} +6 -6
  126. package/dist/assets/{QBOSetupSection-HhIe91hw-DHN5dIMI.js → QBOSetupSection-DcLYyQ5m-BZmieU8G.js} +16 -16
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-DMhGskvy.js +26 -0
  128. package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-17BV5IdU.js +237 -0
  129. package/dist/assets/ReimbursementDetailPage-DatcF8rt-DDHL4NDq.js +314 -0
  130. package/dist/assets/{ReimbursementPromoPage-BZoZAydM-gLfgxCqS.js → ReimbursementPromoPage-MweW-4DO-DOu17agw.js} +10 -10
  131. package/dist/assets/{ReimbursementSetUpPage-C8Oat8g_-B0DjcA85.js → ReimbursementSetUpPage-BD2LWlbW-CPGJalxA.js} +10 -10
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BSXV7fzi-DX28exoT.js → ReimbursementsBulkReviewDrawerPage-DV_PLm_g-C-hMp3nk.js} +1 -1
  133. package/dist/assets/{ReloadCard-BMn_7fNI-yFHo4tad.js → ReloadCard-9KpQCrce-CJxth4v-.js} +5 -5
  134. package/dist/assets/{ReportTableViewSelector-BE2BuEqj-BMoVH1Lv.js → ReportTableViewSelector-BPliEsuo-CYSspAKt.js} +8 -8
  135. package/dist/assets/{ReportsPage-C4HDLBDq-Dbvzy9RX.js → ReportsPage-h2DAaQfK-BbjLhSlv.js} +14 -14
  136. package/dist/assets/{RevenueChart-q15U89i8-9Vc-OWiF.js → RevenueChart-DY2s_upY-BrlpK408.js} +2 -2
  137. package/dist/assets/{ReviewDetailsPage-4mhC2jOb-Dm0CnUM2.js → ReviewDetailsPage-BiYxRnvA-B6yUj6Im.js} +20 -20
  138. package/dist/assets/{ReviewOverlay-Co22Cju1-CN_x1DtX.js → ReviewOverlay-BvPN7IKD-Dzf2W2o-.js} +12 -12
  139. package/dist/assets/RoleWithToolTip-aW95rpRe-BSqBI82l.js +22 -0
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DkKSZ0sJ-2Be8yY-W.js → ScheduleDetailsFixedAssetsPage-DlXqz1QQ-DCo0J0MC.js} +13 -13
  141. package/dist/assets/{ScheduleDetailsPage-B98XJtoQ-C92Z9nEO.js → ScheduleDetailsPage-DebosLND-Dr3_f1Ao.js} +3 -3
  142. package/dist/assets/{ScheduleSequenceTable-DXLxjeWw-D6kfx-k4.js → ScheduleSequenceTable-Dd4Ep_c0-BGLZarfG.js} +36 -36
  143. package/dist/assets/ScreenRoutes-RCtfctxM.js +201 -0
  144. package/dist/assets/{SetUpAccountSection-AZk8_IC3-BgpEt7W0.js → SetUpAccountSection-Dhb8A0Oe-DTgzquEa.js} +8 -8
  145. package/dist/assets/SignIn-DQBJB5ad-Df-bXPXY.js +448 -0
  146. package/dist/assets/{SignInScreen-BeMNwV2Z.js → SignInScreen-ymJeGv_l.js} +1 -1
  147. package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-DDL7odAh.js +123 -0
  148. package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-B-iCv2wr.js +754 -0
  149. package/dist/assets/SpendManagementSection-Ci2yOCJ9-Cl4Y2hmX.js +230 -0
  150. package/dist/assets/StatementItem-hcBoe79o-3MewkfUT.js +31 -0
  151. package/dist/assets/{StatementsPage-CBIa00EK-CDNYK1KG.js → StatementsPage-DVR5LhTi-yR6sBvKB.js} +3 -3
  152. package/dist/assets/{StatusSwitcher-Blc3-MDg-DCe5aCTB.js → StatusSwitcher-Cy5ITFgi-BPjCuaKT.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-3oir5lzq-BbfbzkBT.js → SubTabSwitcher-DhsES2OW-Bo9PDg54.js} +4 -4
  154. package/dist/assets/{SummaryCard-DO09QLUp-Cm1UBlTE.js → SummaryCard-Byv4Hw8Q-CRXX5OyN.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-C_EZJRtM-DEHqnRmR.js → TaskManagementPage-CVXMOPf2-BPgLGH37.js} +42 -42
  156. package/dist/assets/TimeRangeSwitcher-jct2_5PE-CLdBT1H-.js +64 -0
  157. package/dist/assets/{TimeframeSwitcher-BsGp8KOv-CZ-VtILM.js → TimeframeSwitcher-BK-qliOX-H_AqcOc6.js} +6 -6
  158. package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-B90xLHLZ.js +31 -0
  159. package/dist/assets/{TopExCard-Cn8iW3fO-CG_XDz13.js → TopExCard-o4Q3ze1b-BhWZC02k.js} +12 -12
  160. package/dist/assets/{TopExDetailPage-BS8qCkLq-DlPS1xGU.js → TopExDetailPage-BsCwwwDi-CQb-1xKa.js} +12 -12
  161. package/dist/assets/{TransactionDetailPage-CUeVImfA-FAGZgaG8.js → TransactionDetailPage-rpCG65yC-DrwxmLfQ.js} +36 -36
  162. package/dist/assets/{TransactionList-CnjoEn7K-C0NzRtWS.js → TransactionList-YI4oZaim-BA7WlPL4.js} +15 -15
  163. package/dist/assets/{TransactionListBig-xVKV1MCm-BPazwMDR.js → TransactionListBig-D_Jw9Ip2-D2rLxw32.js} +12 -12
  164. package/dist/assets/TransactionListPage-B2yWm7eA-DHwvAIPN.js +35 -0
  165. package/dist/assets/TransactionVendorDetailPage-Dr5C4-7q-cB0L9hlJ.js +80 -0
  166. package/dist/assets/{TransferDrawerPage-uBmvyc-P-26b9HxZW.js → TransferDrawerPage-BnEVH7Mc-BoQvOiLs.js} +34 -34
  167. package/dist/assets/{TreasuryOverviewPage-DJcUyLa4-BnA9LVmq.js → TreasuryOverviewPage-C927Rdkg-CauQRw4k.js} +47 -47
  168. package/dist/assets/{TreasuryPromoPage-DymCO6nN-YVkYCZi3.js → TreasuryPromoPage-C6D3bF2f-OrOyQ7OO.js} +14 -14
  169. package/dist/assets/{TreasuryStatementsPage-YEgI38zU-CTshBTHF.js → TreasuryStatementsPage-BE54gWl6-D5_ViYZY.js} +4 -4
  170. package/dist/assets/{TreasuryTaxLetterPage-CYO6JXCO-C06DT4sF.js → TreasuryTaxLetterPage-BaHut8Wc-CEbpmHg1.js} +3 -3
  171. package/dist/assets/{TrendChart-Dzc9yPKs-DCcvZ56Z.js → TrendChart-BI4Tz813-fFdjYEGq.js} +4 -4
  172. package/dist/assets/{TrendWithTransactions-C2HIrxbU-DAMM6QVL.js → TrendWithTransactions-BicIDSlC-CR1UupOW.js} +7 -7
  173. package/dist/assets/{UncategorizedAccountsMappingPage-CN3CI6bw-CpvcuXEX.js → UncategorizedAccountsMappingPage-sbn4Sdr2-Cp0yxgAi.js} +13 -13
  174. package/dist/assets/{UnitIntegrationPage-EaVWz4pX-Bz0x6lsY.js → UnitIntegrationPage-CZUyjeh5-CHXW7rW2.js} +11 -11
  175. package/dist/assets/UploadAdditionalDocumentOverlay-4AWDV_HK-BN630Ftn.js +38 -0
  176. package/dist/assets/Vendor2FAPopup-C_PmEAQ7-CPcuM1Lv.js +1 -0
  177. package/dist/assets/VendorACHDetailsPage-DMMoCytX-D0o8agib.js +1 -0
  178. package/dist/assets/{VendorDetailPage-C_B_CmoV-DhDUfade.js → VendorDetailPage-CLFKkF8I-C1yDRJ_V.js} +87 -87
  179. package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-C47siTp3.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-Dzgzl_4E-C6CtI7F3.js → VendorFiling1099EditablePage-CrWrhHZl-jwDcG4lR.js} +17 -17
  181. package/dist/assets/{VendorFirstReviewPage-mfIvCyFK-BDtrVL1t.js → VendorFirstReviewPage-C6MnbIan-DEgAFFp_.js} +60 -60
  182. package/dist/assets/{VendorInternationalWireDetailsPage-CNs1VqUa-AxRoZVqc.js → VendorInternationalWireDetailsPage-CzPRK4E2-DPbUqt-0.js} +17 -17
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-OZPxcMNL.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection-B6DkSP2a-TGZHJo6b.js → VendorsAccountsSection-CVh1n81R-DKMXaRY8.js} +5 -5
  185. package/dist/assets/{VerifyDevice-Cu9P83rS-BXogqvvq.js → VerifyDevice-BHocExfO-BBG3ubvW.js} +7 -7
  186. package/dist/assets/{VideoPlayer-Dml6r7Q7-kG7O2GEB.js → VideoPlayer-9rYRtSLf-BqgUiaDS.js} +2 -2
  187. package/dist/assets/{VideoPopup-B7E5ZfFp-2GwUp8oI.js → VideoPopup-D1o92dj6-CPKE8Mhx.js} +4 -4
  188. package/dist/assets/{WarningsDrawerPage-BZU8XDHH-5F-nZ5Wh.js → WarningsDrawerPage-CzufXgaN-PU9KYQuW.js} +3 -3
  189. package/dist/assets/{ZeniAccountDetailPage-Do5LJYN4-C5VZ1IHc.js → ZeniAccountDetailPage-ZZ3Ra-Jf-C6vBQEO7.js} +31 -31
  190. package/dist/assets/{ZeniAccountListViewPage-Be5rl4e6-B2LuzKy3.js → ZeniAccountListViewPage-Cxid0mfh-BWdmN1tO.js} +10 -10
  191. package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-CakYiqJV.js +14 -0
  192. package/dist/assets/{ZeniAccountPromoPage-BMULic13-DqiBlrLz.js → ZeniAccountPromoPage-YIYFkPIB-DeTeBxx_.js} +22 -22
  193. package/dist/assets/{ZeniAccountSetupPage-D_doc0Sf-DbkyYaRI.js → ZeniAccountSetupPage-BJ9UJ0dP-BVBV8wvJ.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-CDfvakjf-DdFXxWan.js → ZeniCopyright-CztmWsFm-BfzonAhy.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-BdZ5l3Hh-B0z6Ak2I.js → ZeniTransferAmountSlider-g9qU5Lsq-Xlt7u852.js} +7 -7
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-Bp_adk0W.js → add-to-wallet-DgdBD8_G-C9HdEEg2.js} +1 -1
  197. package/dist/assets/{analytics-GoB8GGlk.js → analytics-DHoFVrJa.js} +1 -1
  198. package/dist/assets/{analyticsHelper-C164AjRf-BUQv6elD.js → analyticsHelper-D4lKCWjQ-D3kvyQYi.js} +1 -1
  199. package/dist/assets/analyticsHelper-ogjXN0a1.js +1 -0
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-BlptIYjS.js → arrow-south-east-round-PEovUgvH-DTpfnp7v.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-DNmdc0t7.js → auto-transfer-rule-mbafm5D3-Drj2iH_J.js} +1 -1
  202. package/dist/assets/{chartTypes-DQ1OffIu-DkB5GpFi.js → chartTypes-BPPSjkhb-B7nnCmyE.js} +1 -1
  203. package/dist/assets/{commonDimensions-j5_IHOmP-BbAWTMhB.js → commonDimensions-Ds75pRzR-BWQNp0GW.js} +1 -1
  204. package/dist/assets/{constants-DTxI1rHn.js → constants-JMxq3kKJ.js} +1 -1
  205. package/dist/assets/{core-cG0U1y2d.js → core-DbjebHB2.js} +2 -2
  206. package/dist/assets/{dash.all.min-CKz_ZRDI.js → dash.all.min-DW9Kl4IB.js} +1 -1
  207. package/dist/assets/{detailCommon-BdYIBs8o-C7RP83q0.js → detailCommon-DdZdfmYT-DKTM1aWX.js} +6 -6
  208. package/dist/assets/downloadPdf-B8UMaJCC-DUveB_dN.js +1 -0
  209. package/dist/assets/{empty-DAIP1XxB.js → empty-6lxZMaF0.js} +1 -1
  210. package/dist/assets/{index-BMQnSjFr.js → empty-wNjVfCDj.js} +1 -1
  211. package/dist/assets/epic-DThgZpcq.js +2 -0
  212. package/dist/assets/{gift-box-Cmt9OgIZ-CTtI5cXz.js → gift-box-Cmt9OgIZ-CNk2xYWr.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt-PUQeicgl.js → graphic-no-data-l-DU4J8fDt-ClpG2ri3.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BwRajxvj.js → graphic-no-data-net-burn-l-CzmycA0m-BOz-3nes.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-BXfsCAUf.js → handshake-BPg58FML-k1WIZYu1.js} +1 -1
  216. package/dist/assets/{index-BqrFe7eC.js → index-7ciVtOQ7.js} +1 -1
  217. package/dist/assets/{index-DL_zrSsq.js → index-BqVFY7NZ.js} +4410 -4418
  218. package/dist/assets/{index-DVGnYxP0.js → index-C1PhqSzi.js} +1 -1
  219. package/dist/assets/{index-uRSEmDsl.js → index-Cryszh5n.js} +1 -1
  220. package/dist/assets/{index-CpulHfxu.js → index-JDXIN5Fj.js} +1 -1
  221. package/dist/assets/index-JN-1XlIu.js +1 -0
  222. package/dist/assets/index-TZkjLPoA.js +1 -0
  223. package/dist/assets/{lexical-CUq6kk0g.js → lexical-B-aBuW2Y.js} +1 -1
  224. package/dist/assets/{liveblocks-BOlC_Koo.js → liveblocks-DBgNWxtT.js} +1 -1
  225. package/dist/assets/{lottie-DQ5EyuJ6.js → lottie-DbNQVAcx.js} +2 -2
  226. package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-DGzOqzir.js +1 -0
  227. package/dist/assets/mapSectionWithAcOnlyToTreeNode-rrJBbsC8-TBViCt8n.js +1 -0
  228. package/dist/assets/mapSpacerToTreeNode-CWvamMX2-HhIsCvlh.js +1 -0
  229. package/dist/assets/mapTimeframeBalancesToTreeNode-DfQk4Tsr-CrmG1KLX.js +1 -0
  230. package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-D-1vMkLl.js +1 -0
  231. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-DDk9yv3G.js +1 -0
  232. package/dist/assets/{mui-ByF8ZmHV.js → mui-BdKs9UwT.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-C2KjOx45.js → page-detail-CWX5S47F-Dil4tjIc.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-B7-vB3nP.js → radio-default-CiSgisfh-DIcxqpZX.js} +1 -1
  235. package/dist/assets/{react-B3-oq61_.js → react--GRYl8Vw.js} +2 -2
  236. package/dist/assets/{react-B1eYDq6e.js → react-1ymFMNft.js} +3 -3
  237. package/dist/assets/{react-B20ZDkLv.js → react-2NSNcP_P.js} +2 -2
  238. package/dist/assets/{react-osFWCkxJ.js → react-D1OXMWSN.js} +2 -2
  239. package/dist/assets/{react-D74rpLXu.js → react-DEyP-vQs.js} +1 -1
  240. package/dist/assets/{react-CeCukAHo.js → react-DaVNNE91.js} +1 -1
  241. package/dist/assets/{react-BU_tzuye.js → react-DfSxWhpD.js} +1 -1
  242. package/dist/assets/{react-iY_JqSpg.js → react-Dmst1txh.js} +2 -2
  243. package/dist/assets/{recharts-C9z9JCsM.js → recharts-CU0wfbyQ.js} +1 -1
  244. package/dist/assets/{sentry-DdXOXL3j.js → sentry-DfYwagp9.js} +2 -2
  245. package/dist/assets/{shield-DOlUxcFf-hMFlex27.js → shield-DOlUxcFf-C7eXS_DD.js} +1 -1
  246. package/dist/assets/toCOABalancesWithID-CkjRB0sJ-BaA2_x3K.js +1 -0
  247. package/dist/assets/toChartData-CMi2WgAy-JL4zgl5e.js +1 -0
  248. package/dist/assets/transaction-placeholder-CpOwZAMG-C6Cgts33.js +1 -0
  249. package/dist/assets/{uploadAttachment-DiJJciQx-CTJnPHjt.js → uploadAttachment-B4ddYCCL-BXwz-FZi.js} +27 -27
  250. package/dist/assets/{uploadReceipts-CPw64UYa-BiBffXJB.js → uploadReceipts-CPw64UYa-CTZvsl83.js} +1 -1
  251. package/dist/assets/{url-PLN9h9fH.js → url-CNQZElM1.js} +1 -1
  252. package/dist/assets/{url-DnfeNFje.js → url-K5H6qIZr.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-aie8BHVS.js → useLongPress-GCK2COYQ-hK0wtujH.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-nbZRH-xL.js → usp-line-BBd1wKwW-C0__t1n1.js} +1 -1
  255. package/dist/assets/{utils-BMrfBn9K.js → utils-DTmuLq6q.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-BiQIJCwr.js → zeni-epic-state-DcbIZGFH.js} +32 -32
  257. package/dist/index.html +1 -1
  258. package/package.json +4 -4
  259. package/dist/assets/ACHDetailsPage-DSdNOxQ9-BUDY7ebN.js +0 -21
  260. package/dist/assets/AccountInfoPage-BVK7wWF2-DkuUb7hY.js +0 -18
  261. package/dist/assets/AccountLockedInfoModal-CiHVEVZY-DS_3He1-.js +0 -59
  262. package/dist/assets/AddAddressForCardDrawer-BB7h_VuN-JKCzRF55.js +0 -6
  263. package/dist/assets/ArAgingDetailPage-BjvQEK0m-CiJw0H2M.js +0 -46
  264. package/dist/assets/BankAccountWarningSection-neFg-P9--TJDw43tL.js +0 -51
  265. package/dist/assets/BillDetailPage-Caang31I-DbNvy9BW.js +0 -266
  266. package/dist/assets/BillPayApprovalRuleDetailPage-4n9jmsl3-DclQvVS0.js +0 -27
  267. package/dist/assets/BillPayApprovalRulesPage-BPX-ygl8-D9MJjP_M.js +0 -241
  268. package/dist/assets/BillPayPromoPage-KojRs3th-BYB9Z023.js +0 -84
  269. package/dist/assets/ChargeCardListPage-BaxxkyMM-MzCs1Y26.js +0 -412
  270. package/dist/assets/ChargeCardPaymentHistoryPage-5dwl-3gt-B3dNp_0o.js +0 -534
  271. package/dist/assets/ChargeCardPromoPage-DXHFY90F-BtTao1XR.js +0 -222
  272. package/dist/assets/ConfettiBurst-fYnxwqdQ-C4yZDZVx.js +0 -1
  273. package/dist/assets/CreditCardPaymentDrawerPage-nshXhNlE-EyB92Kcq.js +0 -227
  274. package/dist/assets/CustomerOnboardingActivationPage-J6mQ99Q--Cb3ro4zs.js +0 -88
  275. package/dist/assets/CustomerOnboardingContainerPage-DHYXaV1V-C56kqXXZ.js +0 -1
  276. package/dist/assets/CustomerOnboardingNoStepsPage-_P1XRJy7-U2wzBaVr.js +0 -66
  277. package/dist/assets/CustomerOnboardingProductSuitePage-BWN72Maw-BM98ceTr.js +0 -202
  278. package/dist/assets/DashboardSidebarBackgroundAnimation-BCWBgFUn-Ch7XCa5X.js +0 -12
  279. package/dist/assets/EditPeoplePage-Ck6tbODS-ubBGSkLn.js +0 -55
  280. package/dist/assets/EditReimbursementDetailPage-CYCB7XUZ-BrP9Twu0.js +0 -865
  281. package/dist/assets/EntityDetailPage-DEzsWzSU-YUiOx1kj.js +0 -18
  282. package/dist/assets/InsightsSection-9xZ9BN4e-DNtCiXCr.js +0 -27
  283. package/dist/assets/InvitePeoplePage-xJZ4CmaB-z8ULVrxL.js +0 -12
  284. package/dist/assets/LabeledControlledCheckBoxField-CcPruRSO-CaFIYxzs.js +0 -16
  285. package/dist/assets/LabeledDocumentField-Bo6fnkUs-BiNfrt85.js +0 -41
  286. package/dist/assets/LinkJETransactionPage-CejrEmB0-CbM_tuHa.js +0 -98
  287. package/dist/assets/MagicLinkACHDetailsPage-BNATDZtB-DxEBt3UQ.js +0 -1
  288. package/dist/assets/MagicLinkDomesticWireDetailsPage-ZGyx0g5t-NsxxIUno.js +0 -1
  289. package/dist/assets/MagicLinkInternationalWireDetailsPage-CP5KtUSE-jXdIObjE.js +0 -1
  290. package/dist/assets/MailingDetailsSection-DAryNhi6-CuFuumI_.js +0 -21
  291. package/dist/assets/Menu-IHf_FfRX-BtY6fG9T.js +0 -17
  292. package/dist/assets/NoDataChart-58kSyixy-C8J9Kl-k.js +0 -26
  293. package/dist/assets/NoDataTable-aDUu8tCI-CaXH8kWv.js +0 -8
  294. package/dist/assets/NotificationsListConfig-CAW8P9gG-6D54Tubf.js +0 -1
  295. package/dist/assets/PandLWithForecastPage-CpCiLOIl-BiGua3ch.js +0 -107
  296. package/dist/assets/Preview-D56XCw0A.js +0 -1
  297. package/dist/assets/ReimbursementApprovalRuleDetailPage-Cx24E4je-xuDoSOD3.js +0 -32
  298. package/dist/assets/ReimbursementApprovalRulesPage-DRAkofwN-CwdWvhQr.js +0 -243
  299. package/dist/assets/ReimbursementDetailPage-DToZctqy-CNjKjgjE.js +0 -314
  300. package/dist/assets/RoleWithToolTip-DUEwWP4s-C_YDFJH-.js +0 -22
  301. package/dist/assets/ScreenRoutes-BbQAiTN4.js +0 -201
  302. package/dist/assets/SignIn-C5PcCpLW-U8wNP0Mh.js +0 -480
  303. package/dist/assets/SpendManagementListViewPage-BmZeAl5K-Dl61C1Zj.js +0 -134
  304. package/dist/assets/SpendManagementPerTabPage-BfJ_icLF-C0rTj6cX.js +0 -785
  305. package/dist/assets/SpendManagementSection-DoJcpweo-CSStq-Fq.js +0 -246
  306. package/dist/assets/StatementItem-Bw66NYeY-DPAgwnTs.js +0 -31
  307. package/dist/assets/TimeRangeSwitcher-mYZQR43P-B8L8C54A.js +0 -64
  308. package/dist/assets/TimeframeSwitcherWithToggle-wwIX-Q6T-DeXcelpz.js +0 -31
  309. package/dist/assets/TransactionListPage-DDNtUv3t-BvPpANOB.js +0 -35
  310. package/dist/assets/TransactionVendorDetailPage-BTufZurh-C2D6Zsr6.js +0 -80
  311. package/dist/assets/UploadAdditionalDocumentOverlay-DIL6E7Sd-nr87DyQG.js +0 -38
  312. package/dist/assets/Vendor2FAPopup-BxAm0k92-pzvF3dzq.js +0 -1
  313. package/dist/assets/VendorACHDetailsPage-DF0jHzqw-BjdrHpXc.js +0 -1
  314. package/dist/assets/VendorDomesticWireDetailsPage-a52VbRia-CuThrVrd.js +0 -1
  315. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BoEZ09xC-Cqzq-YZ_.js +0 -1
  316. package/dist/assets/ZeniAccountNavBarPieces-0h-vfuVY-C3yFjXgV.js +0 -14
  317. package/dist/assets/analyticsHelper-Cg6AQnia.js +0 -1
  318. package/dist/assets/downloadPdf-BduTAGPj-D606RiQz.js +0 -1
  319. package/dist/assets/empty-D_oWKko5.js +0 -1
  320. package/dist/assets/epic-4bGyY7Fz.js +0 -2
  321. package/dist/assets/index-D4nV_3XK.js +0 -1
  322. package/dist/assets/mapLoadingInProgressToTreeNode-kWMAzMb3-DMbKtDeY.js +0 -1
  323. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CSuXPDoO-DzJLlKZa.js +0 -1
  324. package/dist/assets/mapSpacerToTreeNode-BjnjpyM6-CTSMNsLI.js +0 -1
  325. package/dist/assets/mapTimeframeBalancesToTreeNode-CaRKUf6w-CJ4Nigud.js +0 -1
  326. package/dist/assets/mapTimeframeBalancesToTreeNode-XslT-q64-BTC8ZLHF.js +0 -1
  327. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-DQz_5jDI.js +0 -1
  328. package/dist/assets/toCOABalancesWithID-BA4WkU1y-IaWUt-zn.js +0 -1
  329. package/dist/assets/toChartData-DrvhJgTD-RZQRJ7Js.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o as d,y as N,aB as X,bC as Ke,bD as et,ai as oe,d as j,b2 as tt,aT as st,_ as Oe,n as Be,p as D,aq as Pe,aS as ot,b9 as at,an as nt,bE as it,au as rt,bF as ct,bG as ne,bH as lt,at as dt,am as pt,bI as ut,bJ as gt}from"./index-DL_zrSsq.js";import{a as y,S as K}from"./sentry-DdXOXL3j.js";import{n as u,k as Ie}from"./mui-ByF8ZmHV.js";import{bg as mt,EN as ht,E7 as ft,EO as bt,EP as xt,EQ as _t,ER as wt,ES as St,ET as yt,EU as vt,EV as Ct}from"./zeni-epic-state-BiQIJCwr.js";import{m as G,l as se}from"./analyticsHelper-C164AjRf-BUQv6elD.js";import{g as $t,x as jt}from"./ReportTableViewSelector-BE2BuEqj-BMoVH1Lv.js";import{q as kt}from"./InsightsSection-9xZ9BN4e-DNtCiXCr.js";import{k as Ot,q as Bt,Z as xe,H as ee,N as pe}from"./detailCommon-BdYIBs8o-C7RP83q0.js";import{G as Pt,P as It,Y as _e,X as we,H as Se}from"./RevenueChart-q15U89i8-9Vc-OWiF.js";import{C as Nt}from"./NoDataChart-58kSyixy-C8J9Kl-k.js";import{n as R}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{p as Lt}from"./TimeRangeSwitcher-mYZQR43P-B8L8C54A.js";import{b as Ne}from"./TimeframeSwitcher-BsGp8KOv-CZ-VtILM.js";import{I as Rt,R as F,x as Dt,l as ue,D as Tt}from"./CollapsableReportTable-Bju2JSCg-BSE4kNvo.js";import{S as zt,M as At,g as Et,C as te,L as Le,D as Re,T as De}from"./mapSectionWithAcOnlyToTreeNode-CSuXPDoO-DzJLlKZa.js";import{d as Mt}from"./NoDataTable-aDUu8tCI-CaXH8kWv.js";import{d as ge,l as me}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-DQz_5jDI.js";import{d as he}from"./mapLoadingInProgressToTreeNode-kWMAzMb3-DMbKtDeY.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";import"./NavigationDots-CautbD-g-BZ85pLrg.js";import"./chartTypes-DQ1OffIu-DkB5GpFi.js";import"./toCOABalancesWithID-BA4WkU1y-IaWUt-zn.js";import"./toChartData-DrvhJgTD-RZQRJ7Js.js";import"./AccountRow-COxNWv3J-B4EUrg0i.js";import"./graphic-no-data-l-DU4J8fDt-PUQeicgl.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]="a5fad44e-448e-4d54-9f38-fc6101f203af",e._sentryDebugIdIdentifier="sentry-dbid-a5fad44e-448e-4d54-9f38-fc6101f203af")}catch{}})();const Ft=e=>y.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),y.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),y.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),Vt=u.div`
1
+ import{q as B,d as Z,F as _,av as ke,V as s,bz as qe,m as Je,C as Qe,bA as Xe,o as d,y as L,aA as X,bB as Ke,bC as et,ag as oe,c as $,b1 as tt,aS as st,L as Oe,n as Be,p as D,ap as Pe,aR as ot,b8 as at,am as nt,bD as it,at as rt,bE as ct,bF as ne,bG as lt,as as dt,al as pt,bH as ut,bI as gt}from"./index-BqVFY7NZ.js";import{a as S,w as K}from"./sentry-DfYwagp9.js";import{n as u,k as Ie}from"./mui-BdKs9UwT.js";import{bg as mt,EH as ht,E1 as ft,EI as bt,EJ as xt,EK as _t,EL as wt,EM as yt,EN as St,EO as vt,EP as Ct}from"./zeni-epic-state-DcbIZGFH.js";import{m as G,l as se}from"./analyticsHelper-D4lKCWjQ-D3kvyQYi.js";import{g as jt,x as $t}from"./ReportTableViewSelector-BPliEsuo-CYSspAKt.js";import{q as kt}from"./InsightsSection-BTXj5WUe-ByTIWrkc.js";import{q as Ot,G as Bt,k as xe,H as ee,N as pe}from"./detailCommon-DdZdfmYT-DKTM1aWX.js";import{G as Pt,P as It,X as _e,Y as we,H as ye}from"./RevenueChart-DY2s_upY-BrlpK408.js";import{C as Lt}from"./NoDataChart-DLKHNXD4-tDLmbg2P.js";import{n as R}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{p as Nt}from"./TimeRangeSwitcher-jct2_5PE-CLdBT1H-.js";import{b as Le}from"./TimeframeSwitcher-BK-qliOX-H_AqcOc6.js";import{I as Rt,R as F,x as Dt,l as ue,D as Tt}from"./CollapsableReportTable-xkNXkjfh-CtzSwjPt.js";import{S as zt,M as At,g as Mt,C as te,L as Ne,D as Re,T as De}from"./mapSectionWithAcOnlyToTreeNode-rrJBbsC8-TBViCt8n.js";import{d as Et}from"./NoDataTable-BMD2qygC-BimI42bf.js";import{d as ge,l as me}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-DDk9yv3G.js";import{d as he}from"./mapLoadingInProgressToTreeNode-DGRrn6kh-DGzOqzir.js";import"./liveblocks-DBgNWxtT.js";import"./core-DbjebHB2.js";import"./recharts-CU0wfbyQ.js";import"./lottie-DbNQVAcx.js";import"./analytics-DHoFVrJa.js";import"./lexical-B-aBuW2Y.js";import"./utils-DTmuLq6q.js";import"./NavigationDots-B0_dDbgu-D0YfkCXB.js";import"./chartTypes-BPPSjkhb-B7nnCmyE.js";import"./toCOABalancesWithID-CkjRB0sJ-BaA2_x3K.js";import"./toChartData-CMi2WgAy-JL4zgl5e.js";import"./AccountRow-BM3xLbeh-BSdpkM-d.js";import"./graphic-no-data-l-DU4J8fDt-ClpG2ri3.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]="a5ed3c0f-aa27-4049-8bce-021c4993e65d",e._sentryDebugIdIdentifier="sentry-dbid-a5ed3c0f-aa27-4049-8bce-021c4993e65d")}catch{}})();const Ft=e=>S.createElement("svg",{viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{opacity:.2,d:"M105.021 115.208C105.021 116.479 104.516 117.698 103.617 118.596C102.718 119.495 101.5 120 100.229 120H28.3539C27.083 120 25.8643 119.495 24.9656 118.596C24.067 117.698 23.5622 116.479 23.5622 115.208V14.5832C23.5622 13.3123 24.067 12.0936 24.9656 11.195C25.8643 10.2963 27.083 9.7915 28.3539 9.7915H71.4789L105.021 43.3332V115.208Z",fill:"#97C3B9"}),S.createElement("path",{opacity:.2,d:"M71.4785 9.7915V38.5415C71.4785 39.8123 71.9834 41.0311 72.882 41.9297C73.7806 42.8283 74.9994 43.3332 76.2702 43.3332H105.02",fill:"#97C3B9"}),S.createElement("path",{d:"M33.6636 70.0449H37.2636",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M33.6635 81.2539H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M33.6635 92.4626H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M33.6635 103.671H37.2635",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M47.0987 70.0449L80.6987 70.0449",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M47.0987 81.2539L80.6987 81.2539",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M47.0987 92.4626L80.6987 92.4626",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M47.6084 103.671L81.2084 103.671",stroke:"#EEBA7D",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M100.729 110.313C100.729 111.583 100.224 112.802 99.3258 113.701C98.4272 114.6 97.2084 115.104 95.9375 115.104H24.0625C22.7917 115.104 21.5729 114.6 20.6743 113.701C19.7757 112.802 19.2709 111.583 19.2709 110.313V9.68766C19.2709 8.41683 19.7757 7.19805 20.6743 6.29944C21.5729 5.40083 22.7917 4.896 24.0625 4.896H67.1875L100.729 38.4377V110.313Z",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M67.1872 4.896V33.646C67.1872 34.9168 67.692 36.1356 68.5906 37.0342C69.4893 37.9328 70.708 38.4377 71.9789 38.4377H100.729",stroke:"#97C3B9",strokeWidth:1.00757,strokeLinecap:"round",strokeLinejoin:"round"}),S.createElement("path",{d:"M43.4564 21.9438V17.5398",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),S.createElement("path",{d:"M43.4564 54.3497V50.1257",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"}),S.createElement("path",{d:"M33.6635 40.7779C33.6635 42.8599 34.1555 45.0139 35.3975 46.7239C36.7415 48.5719 38.8595 49.5619 41.0735 49.9339C43.1375 50.2819 45.2855 50.1499 47.3135 49.6759C51.5135 48.6979 54.5675 44.3959 52.6955 40.1179C51.5795 37.5619 48.8855 36.4219 46.2635 36.1699C44.3675 35.9899 42.4294 35.9779 40.5334 35.7079C38.9374 35.4799 37.3475 34.9459 36.1895 33.7819C35.0315 32.6179 34.3895 30.8599 34.4495 29.1619C34.5335 26.6359 35.9915 24.4999 38.2415 23.3959C40.5995 22.2379 43.4675 22.1839 46.0115 22.6219C47.6855 22.9099 49.3294 23.6119 50.4994 24.8419C51.9694 26.3899 52.4555 28.5019 52.5275 30.5719",stroke:"#95C1B7",strokeWidth:1.00757,strokeMiterlimit:10,strokeLinecap:"round"})),Vt=u.div`
2
2
  justify-content: center;
3
3
  align-items: center;
4
4
  display: flex;
@@ -17,7 +17,7 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
17
17
  justify-content: center;
18
18
  flex-direction: column;
19
19
  margin-top: ${d.sp3};
20
- `,Yt=({style:e,emptyContentText:t,EmptyContentImage:a})=>{const n=B();return s.jsxs(Vt,{windowSize:n,style:{...e},children:[s.jsx(Wt,{children:s.jsx(a,{})}),s.jsx(Ht,{children:t})]})};function Gt(e){const{reportId:t}=e.report,a=e.filter.balancesRange.orderBy;let n,i,r=0;switch(t){case"cash_in_cash_out":{const p=e.report,{cashIn:o,cashOut:l}=p,c=o.balances.length>0?o:l;c.balances.length>0&&(a==="ascending_date"&&(r=c.balances.length-1),n=c.balances[r]);break}case"cash_position":{const p=e.report,{cashPosition:o}=p;o.balances.length>0&&(a==="ascending_date"&&(r=o.balances.length-1),n=o.balances[r]);break}case"net_burn_or_income":{const p=e.report,{expenses:o,income:l}=p.sections,c=o?.balances.length>0?o:l;c?.balances!=null&&c.balances.length>0&&(a==="ascending_date"&&(r=c.balances.length-1),n=c.balances[r]);break}case"net_burn_or_income_by_classes":{const p=e.report,{expenses:o,income:l,cogs:c}=p.sections,h=l.balances.length>0?l:c,g=o.balances.length>0?o:h;g.balances.length>0&&(a==="ascending_date"&&(r=g.balances.length-1),n=g.balances[r]);break}case"operating_expenses":{const p=e.report,{expenses:o}=p.sections;o.balances.length>0&&(a==="ascending_date"&&(r=o.balances.length-1),n=o.balances[r]);break}case"operating_expenses_by_classes":{const p=e.report,{expenses:o}=p.sections;o.balances.length>0&&(a==="ascending_date"&&(r=o.balances.length-1),n=o.balances[r]);break}case"revenue":{const p=e.report,{income:o,cogs:l}=p.sections,c=o.balances.length>0?o:l;c?.balances!=null&&c.balances.length>0&&(a==="ascending_date"&&(r=c.balances.length-1),n=c.balances[r]);break}case"revenue_by_classes":{const p=e.report,{income:o,cogs:l}=p.sections,c=o.balances.length>0?o:l;c.balances.length>0&&(a==="ascending_date"&&(r=c.balances.length-1),n=c.balances[r]);break}}return n!=null&&(i={startDate:n.startDate,endDate:n.endDate}),i}function Ut(e){const{isCompareModeOn:t,filter:a,coaBalancesRange:n,report:i,currentTenantCompanyName:r,reportView:p,classesToFilterOut:o}=e,{reportId:l}=i;let c=a.balancesRange.thisPeriod;c==null&&(c=Gt({report:i,filter:a}));const h=[];if(t?(h.push("this_period_vs_last_period_percent"),h.push("this_period_vs_last_period")):!t&&l!=="cash_position"&&h.push("free_range_total"),i.reportId!=="cash_position"&&h.push("year_to_date_total"),c!=null)return{localeId:_.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!1,companyName:r,statementFileType:"excel",statements:[l],firstMonthOfFY:e.report.firstMonthOfFY,bookCloseDate:e.report.bookCloseDate,timeframe:a.timeframe,additionalBalances:h,format:e.reportType,balancesFilter:{thisPeriod:c,numberOfPeriods:t?a.balancesRange.numberOfPeriods:n.numberOfPeriods,orderBy:n.orderBy},accountViewMode:p,classesToFilterOut:o,isZeniCOAUsed:e.isZeniCOAUsed}}function Zt(e){const t=Ut(e);if(t!=null)return $t(e.statementEndPoint,e.authParams,t)}const qt=u.div`
20
+ `,Yt=({style:e,emptyContentText:t,EmptyContentImage:a})=>{const n=B();return s.jsxs(Vt,{windowSize:n,style:{...e},children:[s.jsx(Wt,{children:s.jsx(a,{})}),s.jsx(Ht,{children:t})]})};function Gt(e){const{reportId:t}=e.report,a=e.filter.balancesRange.orderBy;let n,i,r=0;switch(t){case"cash_in_cash_out":{const p=e.report,{cashIn:o,cashOut:l}=p,c=o.balances.length>0?o:l;c.balances.length>0&&(a==="ascending_date"&&(r=c.balances.length-1),n=c.balances[r]);break}case"cash_position":{const p=e.report,{cashPosition:o}=p;o.balances.length>0&&(a==="ascending_date"&&(r=o.balances.length-1),n=o.balances[r]);break}case"net_burn_or_income":{const p=e.report,{expenses:o,income:l}=p.sections,c=o?.balances.length>0?o:l;c?.balances!=null&&c.balances.length>0&&(a==="ascending_date"&&(r=c.balances.length-1),n=c.balances[r]);break}case"net_burn_or_income_by_classes":{const p=e.report,{expenses:o,income:l,cogs:c}=p.sections,h=l.balances.length>0?l:c,g=o.balances.length>0?o:h;g.balances.length>0&&(a==="ascending_date"&&(r=g.balances.length-1),n=g.balances[r]);break}case"operating_expenses":{const p=e.report,{expenses:o}=p.sections;o.balances.length>0&&(a==="ascending_date"&&(r=o.balances.length-1),n=o.balances[r]);break}case"operating_expenses_by_classes":{const p=e.report,{expenses:o}=p.sections;o.balances.length>0&&(a==="ascending_date"&&(r=o.balances.length-1),n=o.balances[r]);break}case"revenue":{const p=e.report,{income:o,cogs:l}=p.sections,c=o.balances.length>0?o:l;c?.balances!=null&&c.balances.length>0&&(a==="ascending_date"&&(r=c.balances.length-1),n=c.balances[r]);break}case"revenue_by_classes":{const p=e.report,{income:o,cogs:l}=p.sections,c=o.balances.length>0?o:l;c.balances.length>0&&(a==="ascending_date"&&(r=c.balances.length-1),n=c.balances[r]);break}}return n!=null&&(i={startDate:n.startDate,endDate:n.endDate}),i}function Ut(e){const{isCompareModeOn:t,filter:a,coaBalancesRange:n,report:i,currentTenantCompanyName:r,reportView:p,classesToFilterOut:o}=e,{reportId:l}=i;let c=a.balancesRange.thisPeriod;c==null&&(c=Gt({report:i,filter:a}));const h=[];if(t?(h.push("this_period_vs_last_period_percent"),h.push("this_period_vs_last_period")):!t&&l!=="cash_position"&&h.push("free_range_total"),i.reportId!=="cash_position"&&h.push("year_to_date_total"),c!=null)return{localeId:_.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!1,companyName:r,statementFileType:"excel",statements:[l],firstMonthOfFY:e.report.firstMonthOfFY,bookCloseDate:e.report.bookCloseDate,timeframe:a.timeframe,additionalBalances:h,format:e.reportType,balancesFilter:{thisPeriod:c,numberOfPeriods:t?a.balancesRange.numberOfPeriods:n.numberOfPeriods,orderBy:n.orderBy},accountViewMode:p,classesToFilterOut:o,isZeniCOAUsed:e.isZeniCOAUsed}}function Zt(e){const t=Ut(e);if(t!=null)return jt(e.statementEndPoint,e.authParams,t)}const qt=u.div`
21
21
  padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
22
22
  `;function Jt({highlightedRangeReport:e}){const{availableNumberOfPeriods:t,netCashFlow:a}=e,n=a.balances;if(t==null||t===0||n.length===0)return null;const i=n.reduce((l,c)=>l+c.balance.amount,0),r=n[n.length-1],p={...r,balance:{...r.balance,amount:i}},o=_.getLocalizedStrings().chartCard.cashInCashOut.net_cash_flow;return s.jsx(qt,{children:s.jsx(ee,{balance:p,dateText:o,showInfotip:!1})})}const Qt=u.div`
23
23
  padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
@@ -36,14 +36,14 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
36
36
  `,is=u.div`
37
37
  padding: ${d.sp4} ${d.sp0} ${d.sp5} ${d.sp0};
38
38
  height: ${d.sp6};
39
- `;function rs({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:a,sections:n}=e,{selectedAdditionalBalances:i}=t,r=n.income.balances;if(a==null||a===0||r.length===0)return s.jsx(is,{});const p=i.includes("this_period_vs_last_period")||i.includes("this_period_vs_last_period_percent"),o=r.reduce((m,f)=>m+f.balance.amount,0),l=r[r.length-1],c=r[0],h={...l,balance:{...l.balance,amount:o},startDate:c.startDate},g=pe(h,p);return s.jsx(ns,{children:s.jsx(ee,{balance:h,dateText:g,showInfotip:!1})})}const cs=({highlightedRangeReport:e,uiState:t})=>{switch(e.reportId){case"net_burn_or_income":return s.jsx(ts,{highlightedRangeReport:e,uiState:t});case"revenue":return s.jsx(rs,{highlightedRangeReport:e,uiState:t});case"operating_expenses":return s.jsx(as,{highlightedRangeReport:e,uiState:t});case"cash_position":return s.jsx(Xt,{highlightedRangeReport:e});case"cash_in_cash_out":return s.jsx(Jt,{highlightedRangeReport:e});default:return null}},Q={wrapperPadding:new N(j[3],j[3],j[8]),chartHeight:new N(288,360)},ls=u.div`
39
+ `;function rs({highlightedRangeReport:e,uiState:t}){const{availableNumberOfPeriods:a,sections:n}=e,{selectedAdditionalBalances:i}=t,r=n.income.balances;if(a==null||a===0||r.length===0)return s.jsx(is,{});const p=i.includes("this_period_vs_last_period")||i.includes("this_period_vs_last_period_percent"),o=r.reduce((m,f)=>m+f.balance.amount,0),l=r[r.length-1],c=r[0],h={...l,balance:{...l.balance,amount:o},startDate:c.startDate},g=pe(h,p);return s.jsx(ns,{children:s.jsx(ee,{balance:h,dateText:g,showInfotip:!1})})}const cs=({highlightedRangeReport:e,uiState:t})=>{switch(e.reportId){case"net_burn_or_income":return s.jsx(ts,{highlightedRangeReport:e,uiState:t});case"revenue":return s.jsx(rs,{highlightedRangeReport:e,uiState:t});case"operating_expenses":return s.jsx(as,{highlightedRangeReport:e,uiState:t});case"cash_position":return s.jsx(Xt,{highlightedRangeReport:e});case"cash_in_cash_out":return s.jsx(Jt,{highlightedRangeReport:e});default:return null}},Q={wrapperPadding:new L($[3],$[3],$[8]),chartHeight:new L(288,360)},ls=u.div`
40
40
  display: flex;
41
41
  flex: 1 1 auto;
42
42
  flex-direction: column;
43
43
  height: ${e=>Q.chartHeight.valuePx(e.windowSize)};
44
44
  `,ds=u.div`
45
45
  display: flex;
46
- `,ps=e=>{const t=B(),{selectedRangeReport:a,selectedClassesViewRangeReport:n,uiState:i,onCOABalancesRangeChanged:r}=e,p=a.availableNumberOfPeriods==null||a.availableNumberOfPeriods===0,{selectedCOABalancesRange:o,selectedAdditionalBalances:l,highlightedCOABalancesRange:c,timeframe:h}=i,g=n!==void 0&&n.uiState.accountViewMode==="classes"?n:a;return p?s.jsx(ds,{children:s.jsx(Nt,{title:_.getLocalizedStrings().chartCard.no_data_available})}):s.jsx(ls,{windowSize:t,children:s.jsx(tt,{children:({height:m,width:f})=>{const x={showBarHoverBackground:!0,onCOABalancesRangeChanged:(w,S,b)=>{us(a.firstMonthOfFY,l,a.reportId,S,w,e.analytics),r(o,b)},highlightedRange:c,isDetailPage:!0,timeframe:h,width:f,height:m};switch(g.reportId){case"net_burn_or_income":return s.jsx(Se,{selectedRangeReport:a,...x,mode:e.uiState.mode});case"net_burn_or_income_by_classes":return s.jsx(Se,{selectedRangeReport:n,...x,mode:e.uiState.mode});case"revenue":return s.jsx(we,{selectedRangeReport:a,...x,mode:e.uiState.mode});case"revenue_by_classes":return s.jsx(we,{selectedRangeReport:n,...x,mode:e.uiState.mode});case"operating_expenses":return s.jsx(_e,{selectedRangeReport:a,...x,mode:e.uiState.mode});case"operating_expenses_by_classes":return s.jsx(_e,{selectedRangeReport:n,...x,mode:e.uiState.mode});case"cash_position":return s.jsx(It,{selectedRangeReport:a,...x});case"cash_in_cash_out":return s.jsx(Pt,{selectedRangeReport:a,...x});default:return null}}})})},us=(e,t,a,n,i,r)=>{const p=t.includes("this_period_vs_last_period")||t.includes("this_period_vs_last_period_percent");p===!0&&r?.trackCompareFilterTimeFrame(R(a),G(n),"bar",se(e,n,i)),r?.trackDateRangeFilterChange(R(a),"bar",p,void 0,se(e,n,i))},Te={net_burn_or_income:{light:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/netburn-forecast.png",dark:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/netburn-forecast-dark.png"},revenue:{light:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/revenue-forecast.png",dark:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/revenue-forecast-dark.png"},operating_expenses:{light:"https://storage.googleapis.com/zeni-apis.appspot.com/images/icons/opex-forecast.png",dark:"https://storage.googleapis.com/zeni-apis.appspot.com/images/icons/opex-forecast-dark.png"}},ze=Ie`
46
+ `,ps=e=>{const t=B(),{selectedRangeReport:a,selectedClassesViewRangeReport:n,uiState:i,onCOABalancesRangeChanged:r}=e,p=a.availableNumberOfPeriods==null||a.availableNumberOfPeriods===0,{selectedCOABalancesRange:o,selectedAdditionalBalances:l,highlightedCOABalancesRange:c,timeframe:h}=i,g=n!==void 0&&n.uiState.accountViewMode==="classes"?n:a;return p?s.jsx(ds,{children:s.jsx(Lt,{title:_.getLocalizedStrings().chartCard.no_data_available})}):s.jsx(ls,{windowSize:t,children:s.jsx(tt,{children:({height:m,width:f})=>{const x={showBarHoverBackground:!0,onCOABalancesRangeChanged:(w,y,b)=>{us(a.firstMonthOfFY,l,a.reportId,y,w,e.analytics),r(o,b)},highlightedRange:c,isDetailPage:!0,timeframe:h,width:f,height:m};switch(g.reportId){case"net_burn_or_income":return s.jsx(ye,{selectedRangeReport:a,...x,mode:e.uiState.mode});case"net_burn_or_income_by_classes":return s.jsx(ye,{selectedRangeReport:n,...x,mode:e.uiState.mode});case"revenue":return s.jsx(we,{selectedRangeReport:a,...x,mode:e.uiState.mode});case"revenue_by_classes":return s.jsx(we,{selectedRangeReport:n,...x,mode:e.uiState.mode});case"operating_expenses":return s.jsx(_e,{selectedRangeReport:a,...x,mode:e.uiState.mode});case"operating_expenses_by_classes":return s.jsx(_e,{selectedRangeReport:n,...x,mode:e.uiState.mode});case"cash_position":return s.jsx(It,{selectedRangeReport:a,...x});case"cash_in_cash_out":return s.jsx(Pt,{selectedRangeReport:a,...x});default:return null}}})})},us=(e,t,a,n,i,r)=>{const p=t.includes("this_period_vs_last_period")||t.includes("this_period_vs_last_period_percent");p===!0&&r?.trackCompareFilterTimeFrame(R(a),G(n),"bar",se(e,n,i)),r?.trackDateRangeFilterChange(R(a),"bar",p,void 0,se(e,n,i))},Te={net_burn_or_income:{light:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/netburn-forecast.png",dark:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/netburn-forecast-dark.png"},revenue:{light:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/revenue-forecast.png",dark:"https://storage.cloud.google.com/zeni-apis.appspot.com/images/icons/revenue-forecast-dark.png"},operating_expenses:{light:"https://storage.googleapis.com/zeni-apis.appspot.com/images/icons/opex-forecast.png",dark:"https://storage.googleapis.com/zeni-apis.appspot.com/images/icons/opex-forecast-dark.png"}},ze=Ie`
47
47
  0% {
48
48
  transform: translateY(100%)
49
49
  }
@@ -89,12 +89,12 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
89
89
  width: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?"100%":"620px"};
90
90
  height: 544px;
91
91
  text-align: center;
92
- `,Ee=u.div`
92
+ `,Me=u.div`
93
93
  display: flex;
94
94
  justify-content: flex-end;
95
95
  width: 100%;
96
96
  padding: ${d.sp3} ${d.sp4};
97
- `,Me=u.div`
97
+ `,Ee=u.div`
98
98
  color: ${e=>e.theme.colors.hero};
99
99
  width: ${d.sp3};
100
100
  height: ${d.sp3};
@@ -140,10 +140,10 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
140
140
  position: absolute;
141
141
  right: 30px;
142
142
  margin-top: 200px;
143
- `,Ss=u.div`
143
+ `,ys=u.div`
144
144
  width: 140px;
145
145
  transform: rotate(-22.31deg);
146
- `,ys=u.div`
146
+ `,Ss=u.div`
147
147
  position: absolute;
148
148
  width: 130px;
149
149
  height: ${d.sp0};
@@ -163,7 +163,7 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
163
163
  margin-top: ${d.sp7};
164
164
  margin: auto;
165
165
  color: ${e=>e.theme.colors.primary};
166
- `,$s=u(Pe)`
166
+ `,js=u(Pe)`
167
167
  max-width: 330px;
168
168
  margin: auto;
169
169
  color: ${D.primaryDark};
@@ -171,7 +171,7 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
171
171
  margin: ${d.sp3} auto;
172
172
  max-width: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?"330px":"422px"};
173
173
  color: ${e=>e.windowSize==="small"||e.windowSize==="medium-compact"?D.heroDark:e.theme.colors.hero};
174
- `,js=u.div`
174
+ `,$s=u.div`
175
175
  display: flex;
176
176
  flex-direction: column;
177
177
  align-items: center;
@@ -197,7 +197,7 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
197
197
  border-radius: 12px;
198
198
  border: ${e=>`1px solid ${e.theme.colors.grey5}`};
199
199
  padding: ${d.sp2};
200
- `,le=()=>s.jsxs(Ss,{children:[s.jsx(ys,{}),s.jsx(vs,{})]}),We=({imgSrc:e})=>{const t=B();return s.jsxs(js,{windowSize:t,children:[s.jsx(Os,{windowSize:t,children:s.jsx(Bs,{windowSize:t,children:s.jsx("img",{src:e,alt:"forecast-promo",style:{width:"343px",height:"220px",borderRadius:d.sp2,display:"block"}})})}),s.jsxs(ks,{windowSize:t,children:[s.jsxs(ce,{children:[s.jsx(re,{children:_.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),s.jsx(ie,{children:_.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]}),s.jsxs(ce,{children:[s.jsx(re,{children:_.getLocalizedStrings().forecastPromoPage.trackText.bold}),s.jsx(ie,{children:_.getLocalizedStrings().forecastPromoPage.trackText.regular})]}),s.jsxs(ce,{children:[s.jsx(re,{children:_.getLocalizedStrings().forecastPromoPage.preciseText.bold}),s.jsx(ie,{children:_.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})},Ps=e=>{const{onClose:t,reportId:a,meetingUrl:n}=e,i=B(),r=Z(),p=c=>{c.stopPropagation(),t()},o=()=>{window.open(n.toString(),"_blank")},l=Te[a][r.mode];return s.jsxs(hs,{role:"presentation",onClick:c=>p(c),children:[s.jsx(Ee,{children:s.jsx(Me,{children:s.jsx(Oe,{style:{width:"18px",height:"18px"}})})}),s.jsx(bs,{onClick:c=>c.stopPropagation(),children:s.jsxs(Ae,{windowSize:i,children:[s.jsx($s,{children:_.getLocalizedStrings().forecastPromoPage.promoText}),s.jsx(We,{imgSrc:l}),s.jsxs(Fe,{children:[s.jsx(Be,{variant:"primary",label:_.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:o,style:{backgroundColor:D.primaryDark,borderColor:D.primaryDark,color:D.neutralGrey5Dark}}),s.jsx(Ve,{windowSize:i,children:_.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})})]})},Is=e=>{const{onClose:t,reportId:a,meetingUrl:n}=e,i=B(),r=Z(),p=c=>{c.stopPropagation(),t()},o=()=>{window.open(n.toString(),"_blank")},l=Te[a][r.mode];return s.jsxs(ms,{role:"presentation",onClick:c=>p(c),children:[s.jsx(Ee,{children:s.jsx(Me,{children:s.jsx(Oe,{style:{width:"18px",height:"18px"}})})}),s.jsxs(fs,{onClick:c=>c.stopPropagation(),children:[s.jsxs(Ae,{windowSize:i,children:[s.jsx(Cs,{children:_.getLocalizedStrings().forecastPromoPage.promoText}),s.jsx(We,{imgSrc:l}),s.jsxs(Fe,{children:[s.jsx(Be,{variant:"primary",label:_.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:o}),s.jsx(Ve,{windowSize:i,children:_.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]}),s.jsx(xs,{children:s.jsx(le,{})}),s.jsx(_s,{children:s.jsx(le,{})}),s.jsx(ws,{children:s.jsx(le,{})})]})]})};function Ns(e){const t=B();return t==="small"||t==="medium-compact"?s.jsx(Ps,{...e}):s.jsx(Is,{...e})}const de="ZeniSwitch",z={root:`${de}-root`,switchBase:`${de}-switchBase`,track:`${de}-track`},Ls=({className:e,...t})=>s.jsx(lt,{...t,className:e,classes:{...z}}),Rs=u(Ls)(({theme:e})=>({[`& .${z.switchBase}`]:{color:e.colors.grey2},[`& .${z.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${z.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${z.switchBase}.Mui-checked + .${z.track}`]:{backgroundColor:e.colors.grey1},[`& .${z.switchBase}.Mui-disabled`]:{color:e.colors.grey4},[`& .${z.switchBase}.Mui-disabled + .${z.track}`]:{opacity:.5,backgroundColor:e.colors.background}})),He=e=>s.jsx(Rs,{...e}),U={containerMaxWidth:new N(124,154),forecastNameInnerWidth:new N(75,105),forecastNameOuterWidth:new N(90,120),tooltipTopPosition:new N(51,51),tooltipWidth:new N(180,150)},ye=u.div``,Ds=u.div`
200
+ `,le=()=>s.jsxs(ys,{children:[s.jsx(Ss,{}),s.jsx(vs,{})]}),We=({imgSrc:e})=>{const t=B();return s.jsxs($s,{windowSize:t,children:[s.jsx(Os,{windowSize:t,children:s.jsx(Bs,{windowSize:t,children:s.jsx("img",{src:e,alt:"forecast-promo",style:{width:"343px",height:"220px",borderRadius:d.sp2,display:"block"}})})}),s.jsxs(ks,{windowSize:t,children:[s.jsxs(ce,{children:[s.jsx(re,{children:_.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),s.jsx(ie,{children:_.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]}),s.jsxs(ce,{children:[s.jsx(re,{children:_.getLocalizedStrings().forecastPromoPage.trackText.bold}),s.jsx(ie,{children:_.getLocalizedStrings().forecastPromoPage.trackText.regular})]}),s.jsxs(ce,{children:[s.jsx(re,{children:_.getLocalizedStrings().forecastPromoPage.preciseText.bold}),s.jsx(ie,{children:_.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})},Ps=e=>{const{onClose:t,reportId:a,meetingUrl:n}=e,i=B(),r=Z(),p=c=>{c.stopPropagation(),t()},o=()=>{window.open(n.toString(),"_blank")},l=Te[a][r.mode];return s.jsxs(hs,{role:"presentation",onClick:c=>p(c),children:[s.jsx(Me,{children:s.jsx(Ee,{children:s.jsx(Oe,{style:{width:"18px",height:"18px"}})})}),s.jsx(bs,{onClick:c=>c.stopPropagation(),children:s.jsxs(Ae,{windowSize:i,children:[s.jsx(js,{children:_.getLocalizedStrings().forecastPromoPage.promoText}),s.jsx(We,{imgSrc:l}),s.jsxs(Fe,{children:[s.jsx(Be,{variant:"primary",label:_.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:o,style:{backgroundColor:D.primaryDark,borderColor:D.primaryDark,color:D.neutralGrey5Dark}}),s.jsx(Ve,{windowSize:i,children:_.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})})]})},Is=e=>{const{onClose:t,reportId:a,meetingUrl:n}=e,i=B(),r=Z(),p=c=>{c.stopPropagation(),t()},o=()=>{window.open(n.toString(),"_blank")},l=Te[a][r.mode];return s.jsxs(ms,{role:"presentation",onClick:c=>p(c),children:[s.jsx(Me,{children:s.jsx(Ee,{children:s.jsx(Oe,{style:{width:"18px",height:"18px"}})})}),s.jsxs(fs,{onClick:c=>c.stopPropagation(),children:[s.jsxs(Ae,{windowSize:i,children:[s.jsx(Cs,{children:_.getLocalizedStrings().forecastPromoPage.promoText}),s.jsx(We,{imgSrc:l}),s.jsxs(Fe,{children:[s.jsx(Be,{variant:"primary",label:_.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:o}),s.jsx(Ve,{windowSize:i,children:_.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]}),s.jsx(xs,{children:s.jsx(le,{})}),s.jsx(_s,{children:s.jsx(le,{})}),s.jsx(ws,{children:s.jsx(le,{})})]})]})};function Ls(e){const t=B();return t==="small"||t==="medium-compact"?s.jsx(Ps,{...e}):s.jsx(Is,{...e})}const de="ZeniSwitch",z={root:`${de}-root`,switchBase:`${de}-switchBase`,track:`${de}-track`},Ns=({className:e,...t})=>s.jsx(lt,{...t,className:e,classes:{...z}}),Rs=u(Ns)(({theme:e})=>({[`& .${z.switchBase}`]:{color:e.colors.grey2},[`& .${z.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${z.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${z.switchBase}.Mui-checked + .${z.track}`]:{backgroundColor:e.colors.grey1},[`& .${z.switchBase}.Mui-disabled`]:{color:e.colors.grey4},[`& .${z.switchBase}.Mui-disabled + .${z.track}`]:{opacity:.5,backgroundColor:e.colors.background}})),He=e=>s.jsx(Rs,{...e}),U={containerMaxWidth:new L(124,154),forecastNameInnerWidth:new L(75,105),forecastNameOuterWidth:new L(90,120),tooltipTopPosition:new L(51,51),tooltipWidth:new L(180,150)},Se=u.div``,Ds=u.div`
201
201
  min-width: ${e=>U.forecastNameInnerWidth.valuePx(e.windowSize)};
202
202
  &:hover {
203
203
  .info-tooltip {
@@ -222,7 +222,7 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
222
222
  display: flex;
223
223
  color: ${e=>e.isValid===!0?e.theme.colors.primary:e.theme.colors.grey1};
224
224
  margin-bottom: ${d.sp1};
225
- `,Es=u.div``,Ms=u.div``,Fs=u(pt)`
225
+ `,Ms=u.div``,Es=u.div``,Fs=u(pt)`
226
226
  display: flex;
227
227
  color: ${D.alert};
228
228
  `,Vs=u(ut)`
@@ -263,14 +263,14 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
263
263
  top: ${e=>U.tooltipTopPosition.valuePx(e.windowSize)};
264
264
  `,Zs=u(nt)`
265
265
  color: ${e=>e.theme.colors.grey5};
266
- `;function qs({selectedForecastIndex:e,forecasts:t,isDisabled:a,isForecastValid:n,onForecastSelectionChanged:i}){const r=B(),{dateFormat:{visual:p}}=_.getLocalizedStrings(),o=g=>`${g.startDate.format(p.MMMYYYYFormat)} - ${g.endDate.format(p.MMMYYYYFormat)}`,l=g=>g.map((m,f)=>({label:m.name,value:f,forecastId:m.id,timeframeLabel:o(m.forecastPeriod),isValid:n(m)})),[c,h]=y.useState(l(t));return K.useEffect(()=>{h(l(t))},[t]),s.jsxs(Ds,{windowSize:r,children:[s.jsx(Gs,{children:s.jsx(Us,{className:"info-tooltip",windowSize:r,children:s.jsx(Zs,{children:c[e]!=null?c[e].label:""})})}),s.jsx(Js,{selectedForecast:c[e],forecastOptions:c,isDisabled:a,onForecastSelectionChanged:i})]})}const Js=({selectedForecast:e,forecastOptions:t,isDisabled:a,onForecastSelectionChanged:n})=>{const i=Z(),r=B(),[p,o]=y.useState(e),l=i.colors.grey5,c=i.colors.grey5,h=i.colors.grey3;y.useEffect(()=>{o(e)},[e]);const g=u(it)`
266
+ `;function qs({selectedForecastIndex:e,forecasts:t,isDisabled:a,isForecastValid:n,onForecastSelectionChanged:i}){const r=B(),{dateFormat:{visual:p}}=_.getLocalizedStrings(),o=g=>`${g.startDate.format(p.MMMYYYYFormat)} - ${g.endDate.format(p.MMMYYYYFormat)}`,l=g=>g.map((m,f)=>({label:m.name,value:f,forecastId:m.id,timeframeLabel:o(m.forecastPeriod),isValid:n(m)})),[c,h]=S.useState(l(t));return K.useEffect(()=>{h(l(t))},[t]),s.jsxs(Ds,{windowSize:r,children:[s.jsx(Gs,{children:s.jsx(Us,{className:"info-tooltip",windowSize:r,children:s.jsx(Zs,{children:c[e]!=null?c[e].label:""})})}),s.jsx(Js,{selectedForecast:c[e],forecastOptions:c,isDisabled:a,onForecastSelectionChanged:i})]})}const Js=({selectedForecast:e,forecastOptions:t,isDisabled:a,onForecastSelectionChanged:n})=>{const i=Z(),r=B(),[p,o]=S.useState(e),l=i.colors.grey5,c=i.colors.grey5,h=i.colors.grey3;S.useEffect(()=>{o(e)},[e]);const g=u(it)`
267
267
  height: ${d.sp3};
268
268
  width: ${d.sp3};
269
269
  `,m=u(rt)`
270
270
  height: 12px;
271
271
  width: 12px;
272
272
  margin-left: 6px;
273
- `,f=({children:b,...C})=>s.jsx(ne.SingleValue,{...C,children:s.jsxs(Hs,{children:[s.jsx(Ws,{windowSize:r,children:b}),s.jsx(m,{})]})}),x=b=>s.jsx(ne.DropdownIndicator,{...b,children:s.jsx(ye,{})}),w=b=>s.jsx(ye,{children:s.jsx(ne.Option,{...b,children:s.jsxs(Ts,{children:[s.jsxs(zs,{isValid:b.data.isValid,children:[b.label,b.isSelected?s.jsx(g,{}):null]}),s.jsxs(As,{isValid:b.data.isValid,children:[s.jsx(Es,{children:b.data.timeframeLabel}),s.jsx(Ys,{isValid:b.data.isValid}),s.jsx(Ms,{children:_.getLocalizedStrings().chartCard.forecast_dropdown.forecast_source})]}),b.data.isValid===!1?s.jsxs(Fs,{children:[s.jsx(Vs,{}),_.getLocalizedStrings().chartCard.forecast_dropdown.forecast_invalid_issue]}):null]})})}),S={control:(b,C)=>({...b,border:0,backgroundColor:c,color:C.selectProps.menuIsOpen===!0?i.colors.primary:i.colors.hero,boxShadow:c,":active":{backgroundColor:c},":hover":{color:i.colors.primary},"span::after":{content:"''",display:"block"},minHeight:"auto",cursor:"pointer"}),container:b=>({...b,backgroundColor:c,maxWidth:U.containerMaxWidth.valuePx(r),minWidth:U.containerMaxWidth.valuePx(r)}),singleValue:(b,C)=>({...b,color:C.selectProps.menuIsOpen===!0?i.colors.primary:i.colors.champion,maxWidth:"100%",minWidth:"100%",overflow:"auto",":hover":{color:i.colors.primary},marginLeft:0,position:"inherit",transform:"none",top:0,marginRight:0,opacity:"1"}),menu:b=>({...b,backgroundColor:l,borderRadius:j[1],boxShadow:`${d.sp0} 2px ${d.sp2} ${i.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:20}),menuList:b=>({...b,borderRadius:j[1],maxWidth:"350px"}),option:(b,{isDisabled:C,isSelected:k,isFocused:V})=>({...b,color:k?i.colors.champion:i.colors.hero,backgroundColor:k===!0?h:V===!0&&C!==!0?i.colors.background:l,cursor:C===!0?"not-allowed":"pointer",padding:`11px ${d.sp3}`,":hover":{backgroundColor:C===!1?k===!0?h:i.colors.background:l,color:i.colors.primary},borderBottom:"1px solid "+i.colors.grey3}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({})};return s.jsx(ct,{options:t,components:{SingleValue:f,DropdownIndicator:x,Option:w},styles:S,defaultValue:p,onChange:b=>{const C=b;o(C),n(C.forecastId,C.value)},isSearchable:!1,isClearable:!1,isOptionDisabled:b=>b.isValid===!1,theme:b=>({...b,colors:{...b.colors,primary:l}}),isDisabled:a})},ve={timeframePaddingLeft:new N(0,0,245),timeframePaddingBottom:new N(8,8,0)},Qs=u.div`
273
+ `,f=({children:b,...C})=>s.jsx(ne.SingleValue,{...C,children:s.jsxs(Hs,{children:[s.jsx(Ws,{windowSize:r,children:b}),s.jsx(m,{})]})}),x=b=>s.jsx(ne.DropdownIndicator,{...b,children:s.jsx(Se,{})}),w=b=>s.jsx(Se,{children:s.jsx(ne.Option,{...b,children:s.jsxs(Ts,{children:[s.jsxs(zs,{isValid:b.data.isValid,children:[b.label,b.isSelected?s.jsx(g,{}):null]}),s.jsxs(As,{isValid:b.data.isValid,children:[s.jsx(Ms,{children:b.data.timeframeLabel}),s.jsx(Ys,{isValid:b.data.isValid}),s.jsx(Es,{children:_.getLocalizedStrings().chartCard.forecast_dropdown.forecast_source})]}),b.data.isValid===!1?s.jsxs(Fs,{children:[s.jsx(Vs,{}),_.getLocalizedStrings().chartCard.forecast_dropdown.forecast_invalid_issue]}):null]})})}),y={control:(b,C)=>({...b,border:0,backgroundColor:c,color:C.selectProps.menuIsOpen===!0?i.colors.primary:i.colors.hero,boxShadow:c,":active":{backgroundColor:c},":hover":{color:i.colors.primary},"span::after":{content:"''",display:"block"},minHeight:"auto",cursor:"pointer"}),container:b=>({...b,backgroundColor:c,maxWidth:U.containerMaxWidth.valuePx(r),minWidth:U.containerMaxWidth.valuePx(r)}),singleValue:(b,C)=>({...b,color:C.selectProps.menuIsOpen===!0?i.colors.primary:i.colors.champion,maxWidth:"100%",minWidth:"100%",overflow:"auto",":hover":{color:i.colors.primary},marginLeft:0,position:"inherit",transform:"none",top:0,marginRight:0,opacity:"1"}),menu:b=>({...b,backgroundColor:l,borderRadius:$[1],boxShadow:`${d.sp0} 2px ${d.sp2} ${i.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:20}),menuList:b=>({...b,borderRadius:$[1],maxWidth:"350px"}),option:(b,{isDisabled:C,isSelected:k,isFocused:V})=>({...b,color:k?i.colors.champion:i.colors.hero,backgroundColor:k===!0?h:V===!0&&C!==!0?i.colors.background:l,cursor:C===!0?"not-allowed":"pointer",padding:`11px ${d.sp3}`,":hover":{backgroundColor:C===!1?k===!0?h:i.colors.background:l,color:i.colors.primary},borderBottom:"1px solid "+i.colors.grey3}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({})};return s.jsx(ct,{options:t,components:{SingleValue:f,DropdownIndicator:x,Option:w},styles:y,defaultValue:p,onChange:b=>{const C=b;o(C),n(C.forecastId,C.value)},isSearchable:!1,isClearable:!1,isOptionDisabled:b=>b.isValid===!1,theme:b=>({...b,colors:{...b.colors,primary:l}}),isDisabled:a})},ve={timeframePaddingLeft:new L(0,0,245),timeframePaddingBottom:new L(8,8,0)},Qs=u.div`
274
274
  display: flex;
275
275
  width: 100%;
276
276
  flex-direction: column;
@@ -306,10 +306,10 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
306
306
  `,Ge=u(oe)`
307
307
  color: ${e=>e.isOn?e.theme.colors.primary:e.theme.colors.hero};
308
308
  opacity: ${e=>e.isDisabled?.5:1};
309
- `,Ue=({label:e,isOn:t,isToggleDisabled:a,onValueChanged:n})=>s.jsxs(s.Fragment,{children:[s.jsx(Ge,{isOn:t,isDisabled:a===!0,children:e}),s.jsx(He,{checked:t,edge:"end",disabled:a===!0,disableRipple:a===!0,onChange:i=>{n(i.target.checked)}})]});function Ze({isOn:e,isDisabled:t,selectedForecastIndex:a,forecasts:n,isForecastValid:i,onForecastToggleChanged:r,onForecastSelectionChanged:p}){return s.jsxs(to,{children:[e===!0&&n!=null&&n.length!==0?s.jsx(qs,{selectedForecastIndex:a??0,forecasts:n,isForecastValid:i,onForecastSelectionChanged:p,isDisabled:!1}):s.jsx(Ge,{isOn:e,isDisabled:t===!0,children:_.getLocalizedStrings().reports.forecast.forecast}),s.jsx(He,{checked:e,edge:"end",disabled:t===!0,disableRipple:t===!0,onChange:o=>{r(o.target.checked)}})]})}const so=e=>{const t=B();return s.jsxs(Qs,{children:[s.jsx(Ye,{windowSize:t,children:s.jsx(Ne,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),s.jsxs(Ks,{children:[e.forecastListWithToggle!=null&&s.jsx(Ze,{...e.forecastListWithToggle}),s.jsx(Ue,{...e.compareToggle,label:_.getLocalizedStrings().compareSwitchLabel})]})]})},oo=e=>{const t=B();return s.jsxs(Xs,{children:[s.jsx(Ye,{windowSize:t,children:s.jsx(Ne,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),s.jsxs(eo,{children:[e.forecastListWithToggle!=null&&s.jsx(Ze,{...e.forecastListWithToggle}),s.jsx(Ue,{...e.compareToggle,label:_.getLocalizedStrings().compareSwitchLabel})]})]})};function ao(e){const t=B();return t==="small"||t==="medium-compact"?s.jsx(so,{...e}):s.jsx(oo,{...e})}const no=u.div`
309
+ `,Ue=({label:e,isOn:t,isToggleDisabled:a,onValueChanged:n})=>s.jsxs(s.Fragment,{children:[s.jsx(Ge,{isOn:t,isDisabled:a===!0,children:e}),s.jsx(He,{checked:t,edge:"end",disabled:a===!0,disableRipple:a===!0,onChange:i=>{n(i.target.checked)}})]});function Ze({isOn:e,isDisabled:t,selectedForecastIndex:a,forecasts:n,isForecastValid:i,onForecastToggleChanged:r,onForecastSelectionChanged:p}){return s.jsxs(to,{children:[e===!0&&n!=null&&n.length!==0?s.jsx(qs,{selectedForecastIndex:a??0,forecasts:n,isForecastValid:i,onForecastSelectionChanged:p,isDisabled:!1}):s.jsx(Ge,{isOn:e,isDisabled:t===!0,children:_.getLocalizedStrings().reports.forecast.forecast}),s.jsx(He,{checked:e,edge:"end",disabled:t===!0,disableRipple:t===!0,onChange:o=>{r(o.target.checked)}})]})}const so=e=>{const t=B();return s.jsxs(Qs,{children:[s.jsx(Ye,{windowSize:t,children:s.jsx(Le,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),s.jsxs(Ks,{children:[e.forecastListWithToggle!=null&&s.jsx(Ze,{...e.forecastListWithToggle}),s.jsx(Ue,{...e.compareToggle,label:_.getLocalizedStrings().compareSwitchLabel})]})]})},oo=e=>{const t=B();return s.jsxs(Xs,{children:[s.jsx(Ye,{windowSize:t,children:s.jsx(Le,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),s.jsxs(eo,{children:[e.forecastListWithToggle!=null&&s.jsx(Ze,{...e.forecastListWithToggle}),s.jsx(Ue,{...e.compareToggle,label:_.getLocalizedStrings().compareSwitchLabel})]})]})};function ao(e){const t=B();return t==="small"||t==="medium-compact"?s.jsx(so,{...e}):s.jsx(oo,{...e})}const no=u.div`
310
310
  display: flex;
311
311
  padding: ${d.sp2} ${d.sp0} ${d.sp4} ${d.sp0};
312
- `,io=u.div``,ro=u.div``,co=e=>{const{selectedRangeReport:t,uiState:a,analytics:n,onThisPeriodChanged:i,onTimeframeSelectionChanged:r,onCOABalancesRangeChanged:p,onAdditionalBalanceSelectionChanged:o}=e,l=ke(),{allTimeframeTicks:c}=t,{selectedCOABalancesRange:h,timeframe:g}=a,m=t.reportId==="cash_in_cash_out"?["month"]:["month","quarter","year"],f=t.availableNumberOfPeriods!=null&&t.availableNumberOfPeriods<2,x=a.mode==="compare_mode"&&!f,w=l.connectionName!=="netsuite"&&(t.reportId==="net_burn_or_income"||t.reportId==="operating_expenses"||t.reportId==="revenue");let S,b;switch(t.reportId){case"revenue":S=t.forecastList?.forecasts,b=t.forecastList?.fetchState;break;case"net_burn_or_income":S=t.forecastList?.forecasts,b=t.forecastList?.fetchState;break;case"operating_expenses":S=t.forecastList?.forecasts,b=t.forecastList?.fetchState;break;default:S=void 0}const C=t.availableNumberOfPeriods==null||t.availableNumberOfPeriods===0,k=C||t.availableNumberOfPeriods===1,V=v=>!!v.forecastPeriod.startDate.isBefore(t.dataAvailable?.endDate),[P,E]=y.useState(!1),H=ft("https://meetings.hubspot.com/svitlana-grankovska"),M=a.mode,L=a.selectedForecast;y.useEffect(()=>{M==="forecast_mode"&&b==="Completed"&&S?.length===0&&(E(!0),document.body.style.overflow="hidden")},[b,M,S]),y.useEffect(()=>{M==="forecast_mode"&&L!=null&&S!=null&&S.length>0&&e.analytics?.trackForecastSwitch(R(t.reportId),S[L.index].name)},[L]);const W=(v,$,Y)=>{$===!0&&e.analytics?.trackForecastVsActualMode(R(t.reportId),"",v==="forecast_mode"),e.onForecastToggle?.(v,Y)};return s.jsx(ro,{children:s.jsxs(io,{children:[s.jsx(no,{children:s.jsx(ao,{timeframe:{allowedTimeframes:m,selectedTimeframe:g,onTimeframeSelectionChanged:v=>{e.analytics?.trackTimeframeSwitch(G(v),R(t.reportId)),r?.(v),e.uiState.mode==="compare_mode"&&!x&&o(x,x?["this_period_vs_last_period_percent"]:[],x?3:1)}},compareToggle:{label:_.getLocalizedStrings().compareSwitchLabel,isOn:k?!1:x,isToggleDisabled:k,onValueChanged:v=>{const $=v===!0||a.mode==="forecast_mode"?3:1;n?.trackCompareMode(v,R(t.reportId),G(g)),o(v,v?["this_period_vs_last_period_percent","year_to_date_total"]:["year_to_date_total"],$)}},forecastListWithToggle:w===!0?{isOn:a.mode==="forecast_mode",isToggleDisabled:k,selectedForecastIndex:e.uiState.selectedForecast?.index,forecasts:S,isForecastValid:V,onForecastSelectionChanged:(v,$)=>W("forecast_mode",!1,{id:v,index:$}),onForecastToggleChanged:v=>{W(v===!0?"forecast_mode":"off",!0)}}:void 0})}),P==!0?s.jsx(Ns,{meetingUrl:H,reportId:t.reportId,onClose:()=>{E(!1),e.onForecastToggle?.("off");const v=1;document.body.style.overflow="auto",o(x,x?["this_period_vs_last_period_percent"]:[],v)}}):null,C?null:s.jsx(Lt,{firstMonthOfFY:t.firstMonthOfFY,timeframe:g,timeframeTicks:c,selection:{selectedTicks:xe(c,h),highlightedOfSelectedTicks:xe(c,h)},onClick:(v,$)=>{Ce(t.firstMonthOfFY,x,t.reportId,g,$,e.analytics),i($)},onSelectionChanged:(v,$)=>{const Y=Ot(c,v.fromEnd),q=Bt(c,$);Ce(t.firstMonthOfFY,x,t.reportId,g,q.thisPeriod,e.analytics),p(Y,q)}})]})})},Ce=(e,t,a,n,i,r)=>{t===!0&&r?.trackCompareFilterTimeFrame(R(a),G(n),"range filter",se(e,n,i)),r?.trackDateRangeFilterChange(R(a),"range filter",t,se(e,n,i))};function fe({account:e,sectionType:t,numOfBalances:a,title:n,isLastNode:i,config:r,parentNodeIDs:p}){return{children:[],id:F("ac_report",p,e.accountId),isLastNode:i,reportElementData:{element:{kind:"ac_report",title:n,sectionType:t,data:e,numOfBalances:a},config:r}}}function lo({acGroup:e,sectionType:t,numOfBalances:a,title:n,isLastNode:i,config:r,parentNodeIDs:p}){const o=F("ac_group_report",p,e.accountGroupId),l={children:[],id:o,isLastNode:i,reportElementData:{element:{kind:"ac_group_report",title:n,sectionType:t,data:e,numOfBalances:a},config:r}},c=ue(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances).compactedAccountsSelector(e);return l.children=c.map((h,g)=>fe({account:h,sectionType:t,numOfBalances:a,title:h.accountDescription,config:r,isLastNode:g===c.length-1,parentNodeIDs:[...p,o]})),l}function $e({section:e,sectionType:t,numOfBalances:a,title:n,isLastNode:i,config:r}){const p=F("section",[],n),o={children:[],id:p,isLastNode:i,reportElementData:{element:{kind:"section",title:n,sectionType:t,data:e,numOfBalances:a},config:r}},l=Tt(e,r.displayOrder,a,!1),c=po(l.balances),h=ue(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances),g=h.compactedAccountsSelectorVariant(e.accountsOrdered),m=h.compactedAccountGroupsSelector(e.accountGroupsOrdered);if(c===!0&&(m.length>0||e.accountsOrdered.length>0)){const f=m.map((w,S)=>lo({acGroup:w,sectionType:t,numOfBalances:a,title:w.accountGroupName,isLastNode:S===m.length-1,config:r,parentNodeIDs:[p]})),x=g.map((w,S)=>fe({account:w,sectionType:t,numOfBalances:a,title:w.accountDescription,isLastNode:S===e.accountsOrdered.length-1,config:r,parentNodeIDs:[p]}));o.children.push(...f),o.children.push(...x)}return o}function po(e){let t=!1;if(e!=null){for(const a of e)if(a!=null&&a.balance.amount!==0){t=!0;break}}return t}function A({balances:e,config:t,nodeId:a}){let n="timeframe_headers";return t.mode==="actual_vs_forecast"&&(n="timeframe_headers_with_forecast"),{children:[],id:a??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:n,title:"",data:e,numOfBalances:e.length},config:t}}}function uo(e,t,a=!0){const n=_.getLocalizedStrings().reports,i=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.cashIn.balances?[...e.cashIn.balances,...e.cashIn.additionalBalances]:e.cashOut.balances?[...e.cashOut.balances,...e.cashOut.additionalBalances]:[],p=A({balances:r,config:t}),o=$e({section:e.cashIn,sectionType:"cash_in",numOfBalances:i,title:n.sections.cashIn,isLastNode:!0,config:t}),l=$e({section:e.cashOut,sectionType:"cash_out",numOfBalances:i,title:n.sections.cashOut,isLastNode:!0,config:t}),c=te({calculatedSection:e.netCashFlow,numOfBalances:i,title:n.sections.netCashFlow,isLastNode:!0,config:t});return{config:t,headerNodes:a?[p]:[],contentNodes:[p,o,l,c]}}function be({title:e,balances:t,config:a,numOfBalances:n,nodeId:i}){return{children:[],id:i??F("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:t,numOfBalances:n},config:a}}}function go(e,t,a=!0){const n=_.getLocalizedStrings().reports,i=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.cashPosition.balances,...e.cashPosition.additionalBalances],p=e.cashPosition,o=A({balances:r,config:t}),l=be({title:_.getLocalizedStrings().chartCard.total,balances:p,config:t,numOfBalances:i}),c=F("section",[],n.sections.netCashFlow),h=ue("cash_position","no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.cashPosition.accountsOrdered).map((g,m)=>fe({account:g,sectionType:"cash_position",numOfBalances:i,title:g.accountDescription,isLastNode:m===e.cashPosition.accountsOrdered.length-1,config:t,parentNodeIDs:[c]}));return{config:t,headerNodes:a?[o]:[],contentNodes:[o,l,...h]}}function mo(e,t,a=!0,n=!1){const i=_.getLocalizedStrings().reports,r=_.getLocalizedStrings().common;let p=[];const o=[];let l=[];if(n===!0){const c=ge({title:r.loading,balances:[],config:t});a&&(c.reportElementData.element.numOfBalances=7,l=[c]),o.push(c),[...Array(8)].forEach((h,g)=>{const m=g%4;let f=me[m];const x=he({title:`${g}+${f}`,balances:p,config:t});x.reportElementData.element.numOfBalances=7,o.push(x)})}else{const c=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,h=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:[],g=A({balances:h,config:t});o.push(g),a&&(l=[g]),e.idsInOrder.forEach(m=>{if(St(m)===!0){const f=e.sections[m];f!=null&&o.push(Le({section:f,sectionType:m,numOfBalances:c,title:i.sections[m],isLastNode:!0,config:t}))}else if(yt(m)===!0){const f=e.calculatedSections[m];f!=null&&o.push(te({calculatedSection:f,numOfBalances:c,title:m==="netBurnOrIncome"?e.reportTitle:i.sections[m],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:l,contentNodes:o}}function ho(e,t,a=!0){const n=_.getLocalizedStrings().reports,i=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:[],p=A({balances:r,config:t}),o=[];return o.push(p),e.idsInOrder.forEach(l=>{vt(l)===!0?e.sections[l].accountGroups.length>0?o.push(Re({section:e.sections[l],sectionType:l,numOfBalances:i,title:n.sections[l],isLastNode:!0,config:t})):o.push(De({sectionWithAcOnly:e.sections[l],sectionType:l,numOfBalances:i,title:n.sections[l],isLastNode:!0,config:t})):Ct(l)===!0&&o.push(te({calculatedSection:e.calculatedSections[l],numOfBalances:i,title:l==="netBurnOrIncome"?e.reportTitle:n.sections[l],isLastNode:!0,config:t}))}),{config:t,headerNodes:a?[p]:[],contentNodes:o}}function fo(e,t,a=!0,n=!1){const i=_.getLocalizedStrings().reports,r=_.getLocalizedStrings().common;let p=[];const o=[];let l=[];if(n===!0){const c=ge({title:r.loading,balances:[],config:t});c.reportElementData.element.numOfBalances=10,a&&(l=[c]),o.push(c),[...Array(8)].forEach((h,g)=>{const m=g%4;let f=me[m];const x=he({title:`${g}+${f}`,balances:p,config:t});x.reportElementData.element.numOfBalances=10,o.push(x)})}else{const c=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,h=[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances],g=A({balances:h,config:t}),m=e.sections.expenses,f=be({title:_.getLocalizedStrings().chartCard.total,balances:m,config:t,numOfBalances:c});o.push(g),o.push(f),a&&(l=[g]);const x=F("section",[],i.sections.expenses);e.sections.expenses.classes.forEach((w,S)=>{o.push(zt({classNode:w,sectionType:"expenses",numOfBalances:c,title:w.class.className,isLastNode:w.isLeafClass,config:t,parentNodeIDs:[x],ancestorMetadata:{subAccountAncestorMetadata:[],classAncestorMetadata:[{depth:w.id.length-1,hasSibling:!1,hasChildren:w.children.length>0,isLastNode:S===e.sections.expenses.classes.length-1,name:w.class.className}]}}))})}return{config:t,headerNodes:l,contentNodes:o}}function bo(e,t,a=!0){const n=_.getLocalizedStrings().reports,i=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances],p=A({balances:r,config:t}),o=e.sections.expenses,l=be({title:_.getLocalizedStrings().chartCard.total,balances:o,config:t,numOfBalances:i}),c=F("section",[],n.sections.expenses),h=Dt("no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances),g=[];g.push(p),g.push(l);const m=h.compactedAccountGroupsSelector(e.sections.expenses.accountGroups);if(m.length!=0){const f=m.map((x,w)=>At({acGroup:x,sectionType:"expenses",numOfBalances:i,title:x.accountGroupName,isLastNode:w===m.length-1,config:t,parentNodeIDs:[c]}));g.push(...f)}else if(e.sections.expenses.accounts?.length!==0){const f=h.compactedAccountsSelectorVariant(e.sections.expenses.accounts),x=f.map((w,S)=>Et({account:w,sectionType:"expenses",numOfBalances:i,title:w.account.accountName,isLastNode:S===f.length-1,config:t,parentNodeIDs:[c],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:f.length>1,hasChildren:w.children.length>0,isLastNode:S===f.length-1}]}}));g.push(...x)}return{config:t,headerNodes:a?[p]:[],contentNodes:g}}function xo(e,t,a=!0,n=!1){const i=_.getLocalizedStrings().reports,r=_.getLocalizedStrings().common;let p=[];const o=[];let l=[];if(n===!0){const c=ge({title:r.loading,balances:[],config:t});c.reportElementData.element.numOfBalances=7,a&&(l=[c]),o.push(c),[...Array(8)].forEach((h,g)=>{const m=g%4;let f=me[m];const x=he({title:`${g}+${f}`,balances:p,config:t});x.reportElementData.element.numOfBalances=7,o.push(x)})}else{const c=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,h=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.calculatedSections.grossMargin.balances.length>0?[...e.calculatedSections.grossMargin.balances,...e.calculatedSections.grossMargin.additionalBalances]:[],g=A({balances:h,config:t});o.push(g),a&&(l=[g]),e.idsInOrder.forEach(m=>{if(bt(m)===!0){const f=e.sections[m];f!=null&&o.push(Le({section:f,sectionType:m,numOfBalances:c,title:i.sections[m],isLastNode:!0,config:t}))}else if(xt(m)===!0){const f=e.calculatedSections[m];f!=null&&o.push(te({calculatedSection:f,numOfBalances:c,title:i.sections.grossMargin,isLastNode:!0,config:t}))}})}return{config:t,headerNodes:l,contentNodes:o}}function _o(e,t,a=!0){const n=_.getLocalizedStrings().reports,i=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.calculatedSections.grossMargin.balances.length>0?[...e.calculatedSections.grossMargin.balances,...e.calculatedSections.grossMargin.additionalBalances]:[],p=A({balances:r,config:t}),o=[];return o.push(p),e.idsInOrder.forEach(l=>{_t(l)===!0?e.sections[l].accountGroups.length>0?o.push(Re({section:e.sections[l],sectionType:l,numOfBalances:i,title:n.sections[l],isLastNode:!0,config:t})):o.push(De({sectionWithAcOnly:e.sections[l],sectionType:l,numOfBalances:i,title:n.sections[l],isLastNode:!0,config:t})):wt(l)===!0&&o.push(te({calculatedSection:e.calculatedSections[l],numOfBalances:i,title:n.sections[l],isLastNode:!0,config:t}))}),{config:t,headerNodes:a?[p]:[],contentNodes:o}}function wo(e,t,a,n=!0){Object.assign(e.config,t);const i=So(a),r=A({balances:i,config:t});return{config:t,headerNodes:n?[r]:[],contentNodes:[r,...e.contentNodes.slice(1)]}}const So=e=>{switch(e.reportId){case"net_burn_or_income":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[]}case"net_burn_or_income_by_classes":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[]}case"revenue":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[]}case"revenue_by_classes":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[]}case"cash_position":{const t=e;return[...t.cashPosition.balances,...t.cashPosition.additionalBalances]}case"cash_in_cash_out":{const t=e;return t.cashIn.balances.length>0?[...t.cashIn.balances,...t.cashIn.additionalBalances]:[...t.cashOut.balances,...t.cashOut.additionalBalances]}case"operating_expenses":{const t=e;return[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]}case"operating_expenses_by_classes":{const t=e;return[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]}default:return[]}},je={contentPaddingLeft:new N(j[0],j[0],j[0]),contentPaddingRight:new N(j[3],j[3],j[8])},yo=u.div`
312
+ `,io=u.div``,ro=u.div``,co=e=>{const{selectedRangeReport:t,uiState:a,analytics:n,onThisPeriodChanged:i,onTimeframeSelectionChanged:r,onCOABalancesRangeChanged:p,onAdditionalBalanceSelectionChanged:o}=e,l=ke(),{allTimeframeTicks:c}=t,{selectedCOABalancesRange:h,timeframe:g}=a,m=t.reportId==="cash_in_cash_out"?["month"]:["month","quarter","year"],f=t.availableNumberOfPeriods!=null&&t.availableNumberOfPeriods<2,x=a.mode==="compare_mode"&&!f,w=l.connectionName!=="netsuite"&&(t.reportId==="net_burn_or_income"||t.reportId==="operating_expenses"||t.reportId==="revenue");let y,b;switch(t.reportId){case"revenue":y=t.forecastList?.forecasts,b=t.forecastList?.fetchState;break;case"net_burn_or_income":y=t.forecastList?.forecasts,b=t.forecastList?.fetchState;break;case"operating_expenses":y=t.forecastList?.forecasts,b=t.forecastList?.fetchState;break;default:y=void 0}const C=t.availableNumberOfPeriods==null||t.availableNumberOfPeriods===0,k=C||t.availableNumberOfPeriods===1,V=v=>!!v.forecastPeriod.startDate.isBefore(t.dataAvailable?.endDate),[P,M]=S.useState(!1),H=ft("https://meetings.hubspot.com/svitlana-grankovska"),E=a.mode,N=a.selectedForecast;S.useEffect(()=>{E==="forecast_mode"&&b==="Completed"&&y?.length===0&&(M(!0),document.body.style.overflow="hidden")},[b,E,y]),S.useEffect(()=>{E==="forecast_mode"&&N!=null&&y!=null&&y.length>0&&e.analytics?.trackForecastSwitch(R(t.reportId),y[N.index].name)},[N]);const W=(v,j,Y)=>{j===!0&&e.analytics?.trackForecastVsActualMode(R(t.reportId),"",v==="forecast_mode"),e.onForecastToggle?.(v,Y)};return s.jsx(ro,{children:s.jsxs(io,{children:[s.jsx(no,{children:s.jsx(ao,{timeframe:{allowedTimeframes:m,selectedTimeframe:g,onTimeframeSelectionChanged:v=>{e.analytics?.trackTimeframeSwitch(G(v),R(t.reportId)),r?.(v),e.uiState.mode==="compare_mode"&&!x&&o(x,x?["this_period_vs_last_period_percent"]:[],x?3:1)}},compareToggle:{label:_.getLocalizedStrings().compareSwitchLabel,isOn:k?!1:x,isToggleDisabled:k,onValueChanged:v=>{const j=v===!0||a.mode==="forecast_mode"?3:1;n?.trackCompareMode(v,R(t.reportId),G(g)),o(v,v?["this_period_vs_last_period_percent","year_to_date_total"]:["year_to_date_total"],j)}},forecastListWithToggle:w===!0?{isOn:a.mode==="forecast_mode",isToggleDisabled:k,selectedForecastIndex:e.uiState.selectedForecast?.index,forecasts:y,isForecastValid:V,onForecastSelectionChanged:(v,j)=>W("forecast_mode",!1,{id:v,index:j}),onForecastToggleChanged:v=>{W(v===!0?"forecast_mode":"off",!0)}}:void 0})}),P==!0?s.jsx(Ls,{meetingUrl:H,reportId:t.reportId,onClose:()=>{M(!1),e.onForecastToggle?.("off");const v=1;document.body.style.overflow="auto",o(x,x?["this_period_vs_last_period_percent"]:[],v)}}):null,C?null:s.jsx(Nt,{firstMonthOfFY:t.firstMonthOfFY,timeframe:g,timeframeTicks:c,selection:{selectedTicks:xe(c,h),highlightedOfSelectedTicks:xe(c,h)},onClick:(v,j)=>{Ce(t.firstMonthOfFY,x,t.reportId,g,j,e.analytics),i(j)},onSelectionChanged:(v,j)=>{const Y=Ot(c,v.fromEnd),q=Bt(c,j);Ce(t.firstMonthOfFY,x,t.reportId,g,q.thisPeriod,e.analytics),p(Y,q)}})]})})},Ce=(e,t,a,n,i,r)=>{t===!0&&r?.trackCompareFilterTimeFrame(R(a),G(n),"range filter",se(e,n,i)),r?.trackDateRangeFilterChange(R(a),"range filter",t,se(e,n,i))};function fe({account:e,sectionType:t,numOfBalances:a,title:n,isLastNode:i,config:r,parentNodeIDs:p}){return{children:[],id:F("ac_report",p,e.accountId),isLastNode:i,reportElementData:{element:{kind:"ac_report",title:n,sectionType:t,data:e,numOfBalances:a},config:r}}}function lo({acGroup:e,sectionType:t,numOfBalances:a,title:n,isLastNode:i,config:r,parentNodeIDs:p}){const o=F("ac_group_report",p,e.accountGroupId),l={children:[],id:o,isLastNode:i,reportElementData:{element:{kind:"ac_group_report",title:n,sectionType:t,data:e,numOfBalances:a},config:r}},c=ue(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances).compactedAccountsSelector(e);return l.children=c.map((h,g)=>fe({account:h,sectionType:t,numOfBalances:a,title:h.accountDescription,config:r,isLastNode:g===c.length-1,parentNodeIDs:[...p,o]})),l}function je({section:e,sectionType:t,numOfBalances:a,title:n,isLastNode:i,config:r}){const p=F("section",[],n),o={children:[],id:p,isLastNode:i,reportElementData:{element:{kind:"section",title:n,sectionType:t,data:e,numOfBalances:a},config:r}},l=Tt(e,r.displayOrder,a,!1),c=po(l.balances),h=ue(t,"no_filter",r.filterAccountsWithNilBalances,r.filterAccountGroupsWithNilBalances),g=h.compactedAccountsSelectorVariant(e.accountsOrdered),m=h.compactedAccountGroupsSelector(e.accountGroupsOrdered);if(c===!0&&(m.length>0||e.accountsOrdered.length>0)){const f=m.map((w,y)=>lo({acGroup:w,sectionType:t,numOfBalances:a,title:w.accountGroupName,isLastNode:y===m.length-1,config:r,parentNodeIDs:[p]})),x=g.map((w,y)=>fe({account:w,sectionType:t,numOfBalances:a,title:w.accountDescription,isLastNode:y===e.accountsOrdered.length-1,config:r,parentNodeIDs:[p]}));o.children.push(...f),o.children.push(...x)}return o}function po(e){let t=!1;if(e!=null){for(const a of e)if(a!=null&&a.balance.amount!==0){t=!0;break}}return t}function A({balances:e,config:t,nodeId:a}){let n="timeframe_headers";return t.mode==="actual_vs_forecast"&&(n="timeframe_headers_with_forecast"),{children:[],id:a??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:n,title:"",data:e,numOfBalances:e.length},config:t}}}function uo(e,t,a=!0){const n=_.getLocalizedStrings().reports,i=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.cashIn.balances?[...e.cashIn.balances,...e.cashIn.additionalBalances]:e.cashOut.balances?[...e.cashOut.balances,...e.cashOut.additionalBalances]:[],p=A({balances:r,config:t}),o=je({section:e.cashIn,sectionType:"cash_in",numOfBalances:i,title:n.sections.cashIn,isLastNode:!0,config:t}),l=je({section:e.cashOut,sectionType:"cash_out",numOfBalances:i,title:n.sections.cashOut,isLastNode:!0,config:t}),c=te({calculatedSection:e.netCashFlow,numOfBalances:i,title:n.sections.netCashFlow,isLastNode:!0,config:t});return{config:t,headerNodes:a?[p]:[],contentNodes:[p,o,l,c]}}function be({title:e,balances:t,config:a,numOfBalances:n,nodeId:i}){return{children:[],id:i??F("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:t,numOfBalances:n},config:a}}}function go(e,t,a=!0){const n=_.getLocalizedStrings().reports,i=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.cashPosition.balances,...e.cashPosition.additionalBalances],p=e.cashPosition,o=A({balances:r,config:t}),l=be({title:_.getLocalizedStrings().chartCard.total,balances:p,config:t,numOfBalances:i}),c=F("section",[],n.sections.netCashFlow),h=ue("cash_position","no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.cashPosition.accountsOrdered).map((g,m)=>fe({account:g,sectionType:"cash_position",numOfBalances:i,title:g.accountDescription,isLastNode:m===e.cashPosition.accountsOrdered.length-1,config:t,parentNodeIDs:[c]}));return{config:t,headerNodes:a?[o]:[],contentNodes:[o,l,...h]}}function mo(e,t,a=!0,n=!1){const i=_.getLocalizedStrings().reports,r=_.getLocalizedStrings().common;let p=[];const o=[];let l=[];if(n===!0){const c=ge({title:r.loading,balances:[],config:t});a&&(c.reportElementData.element.numOfBalances=7,l=[c]),o.push(c),[...Array(8)].forEach((h,g)=>{const m=g%4;let f=me[m];const x=he({title:`${g}+${f}`,balances:p,config:t});x.reportElementData.element.numOfBalances=7,o.push(x)})}else{const c=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,h=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:[],g=A({balances:h,config:t});o.push(g),a&&(l=[g]),e.idsInOrder.forEach(m=>{if(yt(m)===!0){const f=e.sections[m];f!=null&&o.push(Ne({section:f,sectionType:m,numOfBalances:c,title:i.sections[m],isLastNode:!0,config:t}))}else if(St(m)===!0){const f=e.calculatedSections[m];f!=null&&o.push(te({calculatedSection:f,numOfBalances:c,title:m==="netBurnOrIncome"?e.reportTitle:i.sections[m],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:l,contentNodes:o}}function ho(e,t,a=!0){const n=_.getLocalizedStrings().reports,i=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:[],p=A({balances:r,config:t}),o=[];return o.push(p),e.idsInOrder.forEach(l=>{vt(l)===!0?e.sections[l].accountGroups.length>0?o.push(Re({section:e.sections[l],sectionType:l,numOfBalances:i,title:n.sections[l],isLastNode:!0,config:t})):o.push(De({sectionWithAcOnly:e.sections[l],sectionType:l,numOfBalances:i,title:n.sections[l],isLastNode:!0,config:t})):Ct(l)===!0&&o.push(te({calculatedSection:e.calculatedSections[l],numOfBalances:i,title:l==="netBurnOrIncome"?e.reportTitle:n.sections[l],isLastNode:!0,config:t}))}),{config:t,headerNodes:a?[p]:[],contentNodes:o}}function fo(e,t,a=!0,n=!1){const i=_.getLocalizedStrings().reports,r=_.getLocalizedStrings().common;let p=[];const o=[];let l=[];if(n===!0){const c=ge({title:r.loading,balances:[],config:t});c.reportElementData.element.numOfBalances=10,a&&(l=[c]),o.push(c),[...Array(8)].forEach((h,g)=>{const m=g%4;let f=me[m];const x=he({title:`${g}+${f}`,balances:p,config:t});x.reportElementData.element.numOfBalances=10,o.push(x)})}else{const c=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,h=[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances],g=A({balances:h,config:t}),m=e.sections.expenses,f=be({title:_.getLocalizedStrings().chartCard.total,balances:m,config:t,numOfBalances:c});o.push(g),o.push(f),a&&(l=[g]);const x=F("section",[],i.sections.expenses);e.sections.expenses.classes.forEach((w,y)=>{o.push(zt({classNode:w,sectionType:"expenses",numOfBalances:c,title:w.class.className,isLastNode:w.isLeafClass,config:t,parentNodeIDs:[x],ancestorMetadata:{subAccountAncestorMetadata:[],classAncestorMetadata:[{depth:w.id.length-1,hasSibling:!1,hasChildren:w.children.length>0,isLastNode:y===e.sections.expenses.classes.length-1,name:w.class.className}]}}))})}return{config:t,headerNodes:l,contentNodes:o}}function bo(e,t,a=!0){const n=_.getLocalizedStrings().reports,i=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances],p=A({balances:r,config:t}),o=e.sections.expenses,l=be({title:_.getLocalizedStrings().chartCard.total,balances:o,config:t,numOfBalances:i}),c=F("section",[],n.sections.expenses),h=Dt("no_filter",t.filterAccountsWithNilBalances,t.filterAccountGroupsWithNilBalances),g=[];g.push(p),g.push(l);const m=h.compactedAccountGroupsSelector(e.sections.expenses.accountGroups);if(m.length!=0){const f=m.map((x,w)=>At({acGroup:x,sectionType:"expenses",numOfBalances:i,title:x.accountGroupName,isLastNode:w===m.length-1,config:t,parentNodeIDs:[c]}));g.push(...f)}else if(e.sections.expenses.accounts?.length!==0){const f=h.compactedAccountsSelectorVariant(e.sections.expenses.accounts),x=f.map((w,y)=>Mt({account:w,sectionType:"expenses",numOfBalances:i,title:w.account.accountName,isLastNode:y===f.length-1,config:t,parentNodeIDs:[c],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:f.length>1,hasChildren:w.children.length>0,isLastNode:y===f.length-1}]}}));g.push(...x)}return{config:t,headerNodes:a?[p]:[],contentNodes:g}}function xo(e,t,a=!0,n=!1){const i=_.getLocalizedStrings().reports,r=_.getLocalizedStrings().common;let p=[];const o=[];let l=[];if(n===!0){const c=ge({title:r.loading,balances:[],config:t});c.reportElementData.element.numOfBalances=7,a&&(l=[c]),o.push(c),[...Array(8)].forEach((h,g)=>{const m=g%4;let f=me[m];const x=he({title:`${g}+${f}`,balances:p,config:t});x.reportElementData.element.numOfBalances=7,o.push(x)})}else{const c=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,h=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.calculatedSections.grossMargin.balances.length>0?[...e.calculatedSections.grossMargin.balances,...e.calculatedSections.grossMargin.additionalBalances]:[],g=A({balances:h,config:t});o.push(g),a&&(l=[g]),e.idsInOrder.forEach(m=>{if(bt(m)===!0){const f=e.sections[m];f!=null&&o.push(Ne({section:f,sectionType:m,numOfBalances:c,title:i.sections[m],isLastNode:!0,config:t}))}else if(xt(m)===!0){const f=e.calculatedSections[m];f!=null&&o.push(te({calculatedSection:f,numOfBalances:c,title:i.sections.grossMargin,isLastNode:!0,config:t}))}})}return{config:t,headerNodes:l,contentNodes:o}}function _o(e,t,a=!0){const n=_.getLocalizedStrings().reports,i=t.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,r=e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.calculatedSections.grossMargin.balances.length>0?[...e.calculatedSections.grossMargin.balances,...e.calculatedSections.grossMargin.additionalBalances]:[],p=A({balances:r,config:t}),o=[];return o.push(p),e.idsInOrder.forEach(l=>{_t(l)===!0?e.sections[l].accountGroups.length>0?o.push(Re({section:e.sections[l],sectionType:l,numOfBalances:i,title:n.sections[l],isLastNode:!0,config:t})):o.push(De({sectionWithAcOnly:e.sections[l],sectionType:l,numOfBalances:i,title:n.sections[l],isLastNode:!0,config:t})):wt(l)===!0&&o.push(te({calculatedSection:e.calculatedSections[l],numOfBalances:i,title:n.sections[l],isLastNode:!0,config:t}))}),{config:t,headerNodes:a?[p]:[],contentNodes:o}}function wo(e,t,a,n=!0){Object.assign(e.config,t);const i=yo(a),r=A({balances:i,config:t});return{config:t,headerNodes:n?[r]:[],contentNodes:[r,...e.contentNodes.slice(1)]}}const yo=e=>{switch(e.reportId){case"net_burn_or_income":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[]}case"net_burn_or_income_by_classes":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:[]}case"revenue":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[]}case"revenue_by_classes":{const t=e;return t.sections.income.balances.length>0?[...t.sections.income.balances,...t.sections.income.additionalBalances]:t.sections.cogs.balances.length>0?[...t.sections.cogs.balances,...t.sections.cogs.additionalBalances]:t.calculatedSections.grossMargin.balances.length>0?[...t.calculatedSections.grossMargin.balances,...t.calculatedSections.grossMargin.additionalBalances]:[]}case"cash_position":{const t=e;return[...t.cashPosition.balances,...t.cashPosition.additionalBalances]}case"cash_in_cash_out":{const t=e;return t.cashIn.balances.length>0?[...t.cashIn.balances,...t.cashIn.additionalBalances]:[...t.cashOut.balances,...t.cashOut.additionalBalances]}case"operating_expenses":{const t=e;return[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]}case"operating_expenses_by_classes":{const t=e;return[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]}default:return[]}},$e={contentPaddingLeft:new L($[0],$[0],$[0]),contentPaddingRight:new L($[3],$[3],$[8])},So=u.div`
313
313
  width: 100%;
314
314
  height: calc(100vh - 70px);
315
315
  `,vo=u.div`
@@ -323,7 +323,7 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
323
323
  position: absolute;
324
324
  padding-top: ${d.sp3};
325
325
  background-color: ${e=>e.theme.colors.grey4};
326
- `,$o=e=>{const t=B(),a=Z(),{selectedRangeReport:n,selectedClassesViewRangeReport:i,uiState:r,scrollPosition:p,isZeniUser:o,onTableScroll:l,onElementCollapseStateChanged:c,onAccountBalanceClick:h,onUpdateAccountViewMode:g,onUpdateClassesToFilterOut:m,onOpenAccountViewMode:f}=e,{highlightedCOABalancesRange:x,mode:w}=r,S=n.availableNumberOfPeriods==null||n.availableNumberOfPeriods===0,b=n.availableNumberOfPeriods!=null&&n.availableNumberOfPeriods<2,C=r.mode==="compare_mode"&&!b,k=C||r.mode==="forecast_mode"?3:1,V=O=>{e.analytics?.trackCompareFilterChange(O==="compare_mode_percent"?"percentage":"amount",R(n.reportId),G(r.timeframe),"dropdown");const I=O==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period";e.onAdditionalBalanceSelectionChanged(C,[I],x?.numberOfPeriods??k)},[P,E]=y.useState(void 0),[H,M]=y.useState(void 0),L=!(t==="small"||t==="medium-compact"),W=w==="forecast_mode"?"name+balances_forecast":"name+balances_actual",v=ko(r.selectedAdditionalBalances),$=i!==void 0&&i.uiState.accountViewMode==="classes"?i:n,Y=w==="forecast_mode"?"actual_vs_forecast":C===!0?"this_period_vs_period_before":"none",q=n.reportId==="net_burn_or_income"||n.reportId==="operating_expenses"||n.reportId==="revenue",ae=(O,I)=>{O!==i?.uiState.accountViewMode&&g?.(O),I&&m?.(I)};return y.useEffect(()=>{const O={reportId:w==="forecast_mode"&&r.selectedForecast!=null?`${$.reportId}+${r.selectedForecast?.id}`:$.reportId,mode:Y,displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:$.bookCloseDate,firstMonthOfFY:$.firstMonthOfFY,filterAccountsWithNilBalances:w==="forecast_mode"?"filter_actual_forecast_nil_balances":"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",showNegativeAmountInParenthesis:gt(),showClassAccountNumber:o,isZeniCOAInUse:e.isZeniCOAUsed,dataAvailable:$.dataAvailable};if(P==null||!X(H,$)||e.isPageFetchInProgress===!0){const I=jo($,O,L,e.isPageFetchInProgress);M($),E(I)}else{const I=wo(P,O,$,L);E(I)}},[W,C,$,e.isPageFetchInProgress]),s.jsx(vo,{windowSize:t,children:S?s.jsx(Mt,{}):P!=null?s.jsxs(yo,{children:[s.jsx(Rt,{backgroundColor:new st(a.colors.grey4),rootNodes:P,type:W,compareMode:v,isSticky:{isStickyHeader:L,isStickyName:L},treeNodePadding:{left:je.contentPaddingLeft.value(t),right:je.contentPaddingRight.value(t)},onAccountClick:h==null?void 0:(O,I)=>{h(O,I)},nodeOpenStatus:r.nodeCollapseState,scrollPosition:p,onCompareModeChanged:V,onScroll:l,onNodeCollapseToggled:c}),q===!0&&i!==void 0?s.jsx(Co,{children:s.jsx(jt,{reportId:n.reportId,nodes:i.classHierarchy,classesListFetchState:i.fetchState,selectedView:i.uiState.accountViewMode,showClassAccountNumber:o,showAccountGroups:e.isZeniCOAUsed??!0,onSaveClick:ae,classesToBeFilteredOut:i.classesToFilterOut,isClassViewDisabled:r.mode==="forecast_mode",firstMonthOfFY:i.firstMonthOfFY,onOpenAccountViewMode:f,onResyncReports:e.onResyncReports,isPageFetchInProgress:e.isPageFetchInProgress,lastRefreshSuccessTime:i?.status?.lastRefreshSuccessTime})}):null]}):null})},jo=(e,t,a=!0,n=!1)=>{switch(e.reportId){case"net_burn_or_income":return ho(e,t,a);case"net_burn_or_income_by_classes":return mo(e,t,a,n);case"revenue":return _o(e,t,a);case"revenue_by_classes":return xo(e,t,a,n);case"cash_position":return go(e,t,a);case"cash_in_cash_out":return uo(e,t,a);case"operating_expenses":return bo(e,t,a);case"operating_expenses_by_classes":return fo(e,t,a,n);default:return}},ko=e=>e.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",J={chartWidth:"100%",barCount:8,barWidth:new N(j[6],j[8],j[10]),maxBarHeight:1},Oo=({customStyle:e,chartDefaultHeight:t,chartDefaultWidth:a=J.chartWidth,barCount:n=J.barCount,barHeights:i=[.4,.5,.6,1,.3,.5,.2,.7],backgroundColor:r})=>{const p=Z(),o=B(),l=t??Q.chartHeight.value(o),c=l-j[5],h=[...Array(n)].map((g,m)=>({height:(i?.[m]||J.maxBarHeight)*l,width:J.barWidth}));return s.jsx(Bo,{style:{...e,width:a,height:l,backgroundColor:r},children:s.jsx(Po,{children:h.map((g,m)=>s.jsx(Io,{children:s.jsx(Ke,{speed:2,width:J.barWidth.value(o),height:c,viewBox:`0 0 100 ${c}`,preserveAspectRatio:"none",animate:!0,backgroundColor:p.colors.grey3,foregroundColor:p.colors.grey4,children:s.jsx("rect",{x:"0",y:c-g.height-20,width:"100%",height:g.height,rx:"4",ry:"4"})})},`bar-loader-${m}-${g.height}`))})})},Bo=u.div`
326
+ `,jo=e=>{const t=B(),a=Z(),{selectedRangeReport:n,selectedClassesViewRangeReport:i,uiState:r,scrollPosition:p,isZeniUser:o,onTableScroll:l,onElementCollapseStateChanged:c,onAccountBalanceClick:h,onUpdateAccountViewMode:g,onUpdateClassesToFilterOut:m,onOpenAccountViewMode:f}=e,{highlightedCOABalancesRange:x,mode:w}=r,y=n.availableNumberOfPeriods==null||n.availableNumberOfPeriods===0,b=n.availableNumberOfPeriods!=null&&n.availableNumberOfPeriods<2,C=r.mode==="compare_mode"&&!b,k=C||r.mode==="forecast_mode"?3:1,V=O=>{e.analytics?.trackCompareFilterChange(O==="compare_mode_percent"?"percentage":"amount",R(n.reportId),G(r.timeframe),"dropdown");const I=O==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period";e.onAdditionalBalanceSelectionChanged(C,[I],x?.numberOfPeriods??k)},[P,M]=S.useState(void 0),[H,E]=S.useState(void 0),N=!(t==="small"||t==="medium-compact"),W=w==="forecast_mode"?"name+balances_forecast":"name+balances_actual",v=ko(r.selectedAdditionalBalances),j=i!==void 0&&i.uiState.accountViewMode==="classes"?i:n,Y=w==="forecast_mode"?"actual_vs_forecast":C===!0?"this_period_vs_period_before":"none",q=n.reportId==="net_burn_or_income"||n.reportId==="operating_expenses"||n.reportId==="revenue",ae=(O,I)=>{O!==i?.uiState.accountViewMode&&g?.(O),I&&m?.(I)};return S.useEffect(()=>{const O={reportId:w==="forecast_mode"&&r.selectedForecast!=null?`${j.reportId}+${r.selectedForecast?.id}`:j.reportId,mode:Y,displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:j.bookCloseDate,firstMonthOfFY:j.firstMonthOfFY,filterAccountsWithNilBalances:w==="forecast_mode"?"filter_actual_forecast_nil_balances":"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",showNegativeAmountInParenthesis:gt(),showClassAccountNumber:o,isZeniCOAInUse:e.isZeniCOAUsed,dataAvailable:j.dataAvailable};if(P==null||!X(H,j)||e.isPageFetchInProgress===!0){const I=$o(j,O,N,e.isPageFetchInProgress);E(j),M(I)}else{const I=wo(P,O,j,N);M(I)}},[W,C,j,e.isPageFetchInProgress]),s.jsx(vo,{windowSize:t,children:y?s.jsx(Et,{}):P!=null?s.jsxs(So,{children:[s.jsx(Rt,{backgroundColor:new st(a.colors.grey4),rootNodes:P,type:W,compareMode:v,isSticky:{isStickyHeader:N,isStickyName:N},treeNodePadding:{left:$e.contentPaddingLeft.value(t),right:$e.contentPaddingRight.value(t)},onAccountClick:h==null?void 0:(O,I)=>{h(O,I)},nodeOpenStatus:r.nodeCollapseState,scrollPosition:p,onCompareModeChanged:V,onScroll:l,onNodeCollapseToggled:c}),q===!0&&i!==void 0?s.jsx(Co,{children:s.jsx($t,{reportId:n.reportId,nodes:i.classHierarchy,classesListFetchState:i.fetchState,selectedView:i.uiState.accountViewMode,showClassAccountNumber:o,showAccountGroups:e.isZeniCOAUsed??!0,onSaveClick:ae,classesToBeFilteredOut:i.classesToFilterOut,isClassViewDisabled:r.mode==="forecast_mode",firstMonthOfFY:i.firstMonthOfFY,onOpenAccountViewMode:f,onResyncReports:e.onResyncReports,isPageFetchInProgress:e.isPageFetchInProgress,lastRefreshSuccessTime:i?.status?.lastRefreshSuccessTime})}):null]}):null})},$o=(e,t,a=!0,n=!1)=>{switch(e.reportId){case"net_burn_or_income":return ho(e,t,a);case"net_burn_or_income_by_classes":return mo(e,t,a,n);case"revenue":return _o(e,t,a);case"revenue_by_classes":return xo(e,t,a,n);case"cash_position":return go(e,t,a);case"cash_in_cash_out":return uo(e,t,a);case"operating_expenses":return bo(e,t,a);case"operating_expenses_by_classes":return fo(e,t,a,n);default:return}},ko=e=>e.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",J={chartWidth:"100%",barCount:8,barWidth:new L($[6],$[8],$[10]),maxBarHeight:1},Oo=({customStyle:e,chartDefaultHeight:t,chartDefaultWidth:a=J.chartWidth,barCount:n=J.barCount,barHeights:i=[.4,.5,.6,1,.3,.5,.2,.7],backgroundColor:r})=>{const p=Z(),o=B(),l=t??Q.chartHeight.value(o),c=l-$[5],h=[...Array(n)].map((g,m)=>({height:(i?.[m]||J.maxBarHeight)*l,width:J.barWidth}));return s.jsx(Bo,{style:{...e,width:a,height:l,backgroundColor:r},children:s.jsx(Po,{children:h.map((g,m)=>s.jsx(Io,{children:s.jsx(Ke,{speed:2,width:J.barWidth.value(o),height:c,viewBox:`0 0 100 ${c}`,preserveAspectRatio:"none",animate:!0,backgroundColor:p.colors.grey3,foregroundColor:p.colors.grey4,children:s.jsx("rect",{x:"0",y:c-g.height-20,width:"100%",height:g.height,rx:"4",ry:"4"})})},`bar-loader-${m}-${g.height}`))})})},Bo=u.div`
327
327
  width: 100%;
328
328
  height: 100%;
329
329
  border-radius: ${d.sp2};
@@ -343,14 +343,14 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
343
343
  display: flex;
344
344
  align-items: flex-end;
345
345
  justify-content: center;
346
- `,No=u.div`
346
+ `,Lo=u.div`
347
347
  display: flex;
348
348
  flex: 1 1 auto;
349
349
  min-height: 100%;
350
350
  flex-direction: column;
351
351
  width: 100%;
352
352
  background-color: ${e=>e.theme.colors.grey4};
353
- `,Lo=u.div`
353
+ `,No=u.div`
354
354
  position: relative;
355
355
  box-shadow: ${e=>`2px 0px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
356
356
  background-color: ${e=>e.theme.colors.grey5};
@@ -368,4 +368,4 @@ import{q as B,f as Z,F as _,aw as ke,V as s,bA as qe,A as Je,I as Qe,bB as Xe,o
368
368
  align-items: center;
369
369
  height: 100vh;
370
370
  margin-top: ${d.sp8};
371
- `,ba=e=>{const t=B(),a=Z(),[n,i]=y.useState(!1),r=_.getLocalizedStrings(),{reportLabels:p,selectedRangeReport:o,selectedClassesViewRangeReport:l,uiState:c,downloadParams:h,analytics:g,onBackClick:m,updateDownloadStateHandler:f,onAdditionalBalanceSelectionChanged:x}=e,{insights:w}=o,{selectedCOABalancesRange:S,timeframe:b,selectedAdditionalBalances:C,downloadState:k}=c,V=o.availableNumberOfPeriods!=null&&o.availableNumberOfPeriods<2,P=c.mode==="compare_mode"&&!V,E=ke(),H=E.loggedInUserRole!=null&&!mt(E.loggedInUserRole),M=e.selectedRangeReport.reportId==="cash_in_cash_out"||e.selectedRangeReport.reportId==="cash_position";y.useEffect(()=>{async function T(){await Zt({report:l!==void 0&&l.uiState.accountViewMode==="classes"?l:o,filter:o.filter,coaBalancesRange:S,isCompareModeOn:P,reportView:l!==void 0?l.uiState.accountViewMode:"account_group",classesToFilterOut:l!==void 0?l.uiState.classesToFilterOut:[],...h,reportType:H||M?"more_detailed":"detailed",isZeniCOAUsed:e.isZeniCOAUsed??!0}),g?.trackDownload(R(o.reportId),G(b),"excel",P),f("Completed")}n&&k!=="In-Progress"&&(i(!1),f("In-Progress"),T())},[h,k,o.filter,n,P,S,o,l,b,g,f,H,M,e.isZeniCOAUsed]);const L=o.availableNumberOfPeriods==null||o.availableNumberOfPeriods===0||o.allTimeframeTicks.length===0,W=o.fetchState==="In-Progress"||o.fetchState==="Not-Started",v=ht([e?.reportsResyncFetchState??{fetchState:"Not-Started"},l??{fetchState:"Not-Started"}]).fetchState==="In-Progress"&&l?.uiState.accountViewMode==="classes";y.useEffect(()=>{const T=P||c.mode==="forecast_mode"?3:1;x(P,C,T)},[t]);const $=T=>{e.autoCompleteData?.autoCompleteText!=null&&e.analytics?.trackSearch(Qe.Event.search,R(o.reportId),T.type,T.name,e.autoCompleteData?.autoCompleteText),e.autoCompleteActions?.onAutoCompleteEntity?.(T)},{autoCompleteData:Y,autoCompleteActions:q,scrollPosition:ae,...O}=e,I=s.jsx(Xe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:L,isDownloading:k==="In-Progress"}],onDownloadClick:async T=>{if(T==="excel")if(k==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}});return s.jsxs(No,{children:[s.jsx(qe,{title:p.reportTitle,backgroundColor:a.colors.grey5,onBackClick:m,rightSideComponent:I,downloadPresent:!0,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:$}},source:"DashboardReportPage",style:{zIndex:2}}),W?s.jsx(Do,{children:s.jsx(Je,{size:"Standard",start:!0})}):L?s.jsx(Yt,{style:{background:a.colors.grey5},emptyContentText:r.common.noReport.replace("_item-name_",`${r.reportTitleById.operating_expenses.toLowerCase()}`),EmptyContentImage:Ft}):s.jsxs(s.Fragment,{children:[s.jsxs(Lo,{windowSize:t,children:[s.jsx(Eo,{...O}),s.jsx(To,{highlightedRangeReport:o,uiState:c}),v?s.jsx(Oo,{}):s.jsx(zo,{...O}),s.jsx(Ro,{children:s.jsx(kt,{insights:w})})]}),s.jsx(Ao,{scrollPosition:ae,isPageFetchInProgress:v,...O})]})]})},To=K.memo(cs,X),zo=K.memo(ps,X),Ao=K.memo($o,X),Eo=K.memo(co,X);export{ba as default};
371
+ `,ba=e=>{const t=B(),a=Z(),[n,i]=S.useState(!1),r=_.getLocalizedStrings(),{reportLabels:p,selectedRangeReport:o,selectedClassesViewRangeReport:l,uiState:c,downloadParams:h,analytics:g,onBackClick:m,updateDownloadStateHandler:f,onAdditionalBalanceSelectionChanged:x}=e,{insights:w}=o,{selectedCOABalancesRange:y,timeframe:b,selectedAdditionalBalances:C,downloadState:k}=c,V=o.availableNumberOfPeriods!=null&&o.availableNumberOfPeriods<2,P=c.mode==="compare_mode"&&!V,M=ke(),H=M.loggedInUserRole!=null&&!mt(M.loggedInUserRole),E=e.selectedRangeReport.reportId==="cash_in_cash_out"||e.selectedRangeReport.reportId==="cash_position";S.useEffect(()=>{async function T(){await Zt({report:l!==void 0&&l.uiState.accountViewMode==="classes"?l:o,filter:o.filter,coaBalancesRange:y,isCompareModeOn:P,reportView:l!==void 0?l.uiState.accountViewMode:"account_group",classesToFilterOut:l!==void 0?l.uiState.classesToFilterOut:[],...h,reportType:H||E?"more_detailed":"detailed",isZeniCOAUsed:e.isZeniCOAUsed??!0}),g?.trackDownload(R(o.reportId),G(b),"excel",P),f("Completed")}n&&k!=="In-Progress"&&(i(!1),f("In-Progress"),T())},[h,k,o.filter,n,P,y,o,l,b,g,f,H,E,e.isZeniCOAUsed]);const N=o.availableNumberOfPeriods==null||o.availableNumberOfPeriods===0||o.allTimeframeTicks.length===0,W=o.fetchState==="In-Progress"||o.fetchState==="Not-Started",v=ht([e?.reportsResyncFetchState??{fetchState:"Not-Started"},l??{fetchState:"Not-Started"}]).fetchState==="In-Progress"&&l?.uiState.accountViewMode==="classes";S.useEffect(()=>{const T=P||c.mode==="forecast_mode"?3:1;x(P,C,T)},[t]);const j=T=>{e.autoCompleteData?.autoCompleteText!=null&&e.analytics?.trackSearch(Qe.Event.search,R(o.reportId),T.type,T.name,e.autoCompleteData?.autoCompleteText),e.autoCompleteActions?.onAutoCompleteEntity?.(T)},{autoCompleteData:Y,autoCompleteActions:q,scrollPosition:ae,...O}=e,I=s.jsx(Xe,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:N,isDownloading:k==="In-Progress"}],onDownloadClick:async T=>{if(T==="excel")if(k==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}});return s.jsxs(Lo,{children:[s.jsx(qe,{title:p.reportTitle,backgroundColor:a.colors.grey5,onBackClick:m,rightSideComponent:I,downloadPresent:!0,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:j}},source:"DashboardReportPage",style:{zIndex:2}}),W?s.jsx(Do,{children:s.jsx(Je,{size:"Standard",start:!0})}):N?s.jsx(Yt,{style:{background:a.colors.grey5},emptyContentText:r.common.noReport.replace("_item-name_",`${r.reportTitleById.operating_expenses.toLowerCase()}`),EmptyContentImage:Ft}):s.jsxs(s.Fragment,{children:[s.jsxs(No,{windowSize:t,children:[s.jsx(Mo,{...O}),s.jsx(To,{highlightedRangeReport:o,uiState:c}),v?s.jsx(Oo,{}):s.jsx(zo,{...O}),s.jsx(Ro,{children:s.jsx(kt,{insights:w})})]}),s.jsx(Ao,{scrollPosition:ae,isPageFetchInProgress:v,...O})]})]})},To=K.memo(cs,X),zo=K.memo(ps,X),Ao=K.memo(jo,X),Mo=K.memo(co,X);export{ba as default};
@@ -0,0 +1,12 @@
1
+ import{aW as f,V as o,b3 as u,o as p}from"./index-BqVFY7NZ.js";import{a as s}from"./sentry-DfYwagp9.js";import{a as h,n as m}from"./mui-BdKs9UwT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cf6d9dbe-fbdd-4e83-babb-65c30678c404",e._sentryDebugIdIdentifier="sentry-dbid-cf6d9dbe-fbdd-4e83-babb-65c30678c404")}catch{}})();const D=s.memo(function({christmasAnimationEnabled:e=!1,newYearAnimationEnabled:n=!1}){const i=h(),d=e||n,r=n?"DashboardNewYearShow":"DashboardChristmasSnow",[a,l]=f(r,d),[t,b]=s.useState(null);a!=null&&t==null&&!l&&b(a);const c=e&&i.mode==="light"?.7:.2;return(e||n)&&t!=null?o.jsx(y,{contextWiseOpacity:c,newYearAnimationEnabled:n,children:o.jsx(u,{style:{width:"inherit",height:"inherit",display:"block"},animationData:t,play:!0,loop:n?5:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),y=m.div`
2
+ display: flex;
3
+ flex: 1 1 auto;
4
+ flex-direction: column;
5
+ width: inherit;
6
+ position: absolute;
7
+ top: ${p.sp0};
8
+ z-index: 0;
9
+ height: ${e=>e.newYearAnimationEnabled?"100%":"60vh"};
10
+ opacity: ${e=>e.contextWiseOpacity};
11
+ pointer-events: none;
12
+ `;export{D as v};
@@ -1,4 +1,4 @@
1
- import{aL as y,hv as u,q as $,V as l,o as i,al as c,am as w}from"./index-DL_zrSsq.js";import{n as t}from"./mui-ByF8ZmHV.js";import{g as v}from"./BoxItem-BGDuiQll-SbLnCH_S.js";import{o as k}from"./commonDimensions-j5_IHOmP-BbAWTMhB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="aef392bf-bd2e-4ba9-bc43-5e8f7a8095d0",e._sentryDebugIdIdentifier="sentry-dbid-aef392bf-bd2e-4ba9-bc43-5e8f7a8095d0")}catch{}})();function H({data:e,boxType:n}){const{counterParty:r,typeName:d,amount:b,logo:f,summary:p,direction:x,status:m}=e,g=r.length>0?r:p,a=y("0,0.00",b),s=u(m),o=$(),h=l.jsxs(D,{children:[l.jsx(T,{src:f?.toString(),loading:"lazy"}),l.jsx(I,{children:l.jsxs(_,{windowSize:o,children:[l.jsx(N,{children:g}),s!=null?l.jsxs(q,{windowSize:o,children:[l.jsx(E,{windowSize:o}),l.jsx(C,{color:s?.color,children:s?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[d!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:d})}):null,l.jsx(P,{windowSize:o,children:x==="debit"?`-${a}`:a})]})]});return l.jsx(v,{content:h,boxType:n,isDisabled:!1,isNotClickable:!0})}const j=t.div`
1
+ import{aK as u,hu as y,q as $,V as l,o as i,ak as c,al as w}from"./index-BqVFY7NZ.js";import{n as t}from"./mui-BdKs9UwT.js";import{g as k}from"./BoxItem-WOrvBzns-DN4WYKEf.js";import{o as v}from"./commonDimensions-Ds75pRzR-BWQNp0GW.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c0dbf8a1-ce23-4690-bc05-ad61ee62141e",e._sentryDebugIdIdentifier="sentry-dbid-c0dbf8a1-ce23-4690-bc05-ad61ee62141e")}catch{}})();function H({data:e,boxType:n}){const{counterParty:r,typeName:d,amount:p,logo:x,summary:b,direction:f,status:m}=e,g=r.length>0?r:b,a=u("0,0.00",p),s=y(m),o=$(),h=l.jsxs(D,{children:[l.jsx(T,{src:x?.toString(),loading:"lazy"}),l.jsx(I,{children:l.jsxs(_,{windowSize:o,children:[l.jsx(N,{children:g}),s!=null?l.jsxs(q,{windowSize:o,children:[l.jsx(E,{windowSize:o}),l.jsx(C,{color:s?.color,children:s?.value})]}):null]})}),l.jsxs(j,{windowSize:o,children:[d!=null?l.jsx(z,{children:l.jsx(S,{className:"tag",children:d})}):null,l.jsx(P,{windowSize:o,children:f==="debit"?`-${a}`:a})]})]});return l.jsx(k,{content:h,boxType:n,isDisabled:!1,isNotClickable:!0})}const j=t.div`
2
2
  display: flex;
3
3
  flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
4
4
  align-items: ${e=>e.windowSize==="small"?"flex-end":"center"};
@@ -72,5 +72,5 @@ import{aL as y,hv as u,q as $,V as l,o as i,al as c,am as w}from"./index-DL_zrSs
72
72
  -webkit-line-clamp: 1;
73
73
  margin-left: ${i.sp3};
74
74
  text-align: right;
75
- width: ${e=>k.amountWidth.valuePx(e.windowSize)};
75
+ width: ${e=>v.amountWidth.valuePx(e.windowSize)};
76
76
  `;export{H};
@@ -1,4 +1,4 @@
1
- import{f as M,q as S,V as t,bA as I,b2 as E,hE as F,o as r,F as Y,p as b,cr as z,dd as C,de as _,d8 as L,df as T,y as A,ai as B,al as R,d as g}from"./index-DL_zrSsq.js";import{a as x}from"./sentry-DdXOXL3j.js";import{n as a}from"./mui-ByF8ZmHV.js";import{bh as V}from"./zeni-epic-state-BiQIJCwr.js";import{$ as q}from"./BoxItem-BGDuiQll-SbLnCH_S.js";import{o as N}from"./commonDimensions-j5_IHOmP-BbAWTMhB.js";import{H as P}from"./DepositAccTransactionItem-C6o7UraM-13lTBs69.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.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]="3674ea2a-e68e-46ec-9521-06564c1e82e2",e._sentryDebugIdIdentifier="sentry-dbid-3674ea2a-e68e-46ec-9521-06564c1e82e2")}catch{}})();const l=Y.getLocalizedStrings(),H={listItemMargin:new A(g[3],g[8])};function X(e){const i=C(e,o=>o.transactionDate.format(l.dateFormat.visual.MMMDCommaYYYYformat)),c=_(i,o=>o.length>0);return L(c,o=>({date:o[0].transactionDate,transactions:T(o,m=>m.transactionDate,"desc")}))}const G=F(X),pe=({transactionListView:e,onBackClick:i})=>{const c=M(),o=S(),m=x.createRef(),p=x.useRef(null),d=G(e.transactions),k=e.depositAccountName,f=d.length===0,j=n=>f===!1?d[n].transactions.length*N.transactionItemHeightResponsive.value(o)+45:24,v=({index:n,style:h})=>{if(f===!1){const s=d[n];return t.jsx(w,{style:{...h},children:t.jsx(y,{windowSize:o,children:t.jsxs($,{children:[t.jsx(Q,{children:V().year()===s.date.year()?s.date.format(l.dateFormat.visual.MMMDFormat):s.date.format(l.dateFormat.visual.MMMDCommaYYYYformat)}),t.jsx(U,{children:s.transactions.map((D,u)=>t.jsx(P,{data:D,boxType:q(u,s.transactions.length)},u))})]})})})}else return t.jsx(w,{style:{...h},children:t.jsx(J,{children:t.jsx(y,{windowSize:o,children:t.jsx(O,{children:l.transactionList.noTransactionsFoundForPrefix})})})})};return t.jsxs(K,{children:[t.jsx(I,{title:`${k} ${l.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:c.colors.grey4,style:{zIndex:3},onBackClick:i,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),t.jsx($,{children:t.jsx(E,{children:({height:n,width:h})=>t.jsx(Z,{ref:m,height:n,width:h,outerRef:p,itemKey:s=>s,itemCount:d.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},w=a.div``,y=a.div`
1
+ import{d as M,q as S,V as t,bz as I,b1 as z,hD as F,o as r,F as Y,p as u,cq as C,dc as E,dd as L,d7 as _,de as T,y as q,ag as B,ak as R,c as g}from"./index-BqVFY7NZ.js";import{a as x}from"./sentry-DfYwagp9.js";import{n as a}from"./mui-BdKs9UwT.js";import{bh as V}from"./zeni-epic-state-DcbIZGFH.js";import{$ as A}from"./BoxItem-WOrvBzns-DN4WYKEf.js";import{o as N}from"./commonDimensions-Ds75pRzR-BWQNp0GW.js";import{H as P}from"./DepositAccTransactionItem-BOPK7-7P-CUK10p36.js";import"./liveblocks-DBgNWxtT.js";import"./core-DbjebHB2.js";import"./recharts-CU0wfbyQ.js";import"./lottie-DbNQVAcx.js";import"./analytics-DHoFVrJa.js";import"./lexical-B-aBuW2Y.js";import"./utils-DTmuLq6q.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]="1017044b-1ecd-49ae-9649-009d55103bc9",e._sentryDebugIdIdentifier="sentry-dbid-1017044b-1ecd-49ae-9649-009d55103bc9")}catch{}})();const l=Y.getLocalizedStrings(),H={listItemMargin:new q(g[3],g[8])};function X(e){const i=E(e,o=>o.transactionDate.format(l.dateFormat.visual.MMMDCommaYYYYformat)),d=L(i,o=>o.length>0);return _(d,o=>({date:o[0].transactionDate,transactions:T(o,m=>m.transactionDate,"desc")}))}const G=F(X),pe=({transactionListView:e,onBackClick:i})=>{const d=M(),o=S(),m=x.createRef(),p=x.useRef(null),c=G(e.transactions),k=e.depositAccountName,b=c.length===0,j=n=>b===!1?c[n].transactions.length*N.transactionItemHeightResponsive.value(o)+45:24,v=({index:n,style:h})=>{if(b===!1){const s=c[n];return t.jsx(w,{style:{...h},children:t.jsx(y,{windowSize:o,children:t.jsxs($,{children:[t.jsx(Q,{children:V().year()===s.date.year()?s.date.format(l.dateFormat.visual.MMMDFormat):s.date.format(l.dateFormat.visual.MMMDCommaYYYYformat)}),t.jsx(U,{children:s.transactions.map((D,f)=>t.jsx(P,{data:D,boxType:A(f,s.transactions.length)},f))})]})})})}else return t.jsx(w,{style:{...h},children:t.jsx(J,{children:t.jsx(y,{windowSize:o,children:t.jsx(O,{children:l.transactionList.noTransactionsFoundForPrefix})})})})};return t.jsxs(K,{children:[t.jsx(I,{title:`${k} ${l.spendManagement.zeniAccounts.transactionList.title}`,backgroundColor:d.colors.grey4,style:{zIndex:3},onBackClick:i,scrollableContent:p.current!=null?p:void 0,source:"DepositAccTransactionListPage"}),t.jsx($,{children:t.jsx(z,{children:({height:n,width:h})=>t.jsx(Z,{ref:m,height:n,width:h,outerRef:p,itemKey:s=>s,itemCount:c.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},w=a.div``,y=a.div`
2
2
  margin: ${e=>`${r.sp0} ${H.listItemMargin.valuePx(e.windowSize)}`};
3
3
  `,J=a.div`
4
4
  display: flex;
@@ -34,7 +34,7 @@ import{f as M,q as S,V as t,bA as I,b2 as E,hE as F,o as r,F as Y,p as b,cr as z
34
34
  box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
35
35
  border-radius: ${r.sp2};
36
36
  background-color: ${e=>e.theme.colors.grey5};
37
- `,Z=a(z)`
37
+ `,Z=a(C)`
38
38
  scrollbar-width: thin;
39
39
  scrollbar-color: transparent transparent;
40
40
  &::-webkit-scrollbar {
@@ -43,8 +43,8 @@ import{f as M,q as S,V as t,bA as I,b2 as E,hE as F,o as r,F as Y,p as b,cr as z
43
43
  background-color: transparent;
44
44
  }
45
45
  &::-webkit-scrollbar-track {
46
- box-shadow: inset 0 0 2px ${b.scrollbarBoxShadow};
47
- -webkit-box-shadow: inset 0 0 2px ${b.scrollbarBoxShadow};
46
+ box-shadow: inset 0 0 2px ${u.scrollbarBoxShadow};
47
+ -webkit-box-shadow: inset 0 0 2px ${u.scrollbarBoxShadow};
48
48
  background-color: transparent;
49
49
  }
50
50
  &::-webkit-scrollbar-thumb {
@@ -1,4 +1,4 @@
1
- import{q as O,a9 as U,F as S,cC as q,aB as H,V as n,cn as Q,co as Z,cp as G,ac as J,aP as K,y as b,eS as X,o as Y,b8 as ee,d as o}from"./index-DL_zrSsq.js";import{a as w}from"./sentry-DdXOXL3j.js";import{n as h}from"./mui-ByF8ZmHV.js";import{bi as T}from"./zeni-epic-state-BiQIJCwr.js";import{e as ne}from"./BankAccountSection-DWKYMZid-VBEJaF0G.js";import{M as te}from"./MagicLinkTitleSection-RHv_GuEq-y4Cr3bt2.js";import{W as ae,A as oe}from"./BankAccountWarningSection-neFg-P9--TJDw43tL.js";import{T as ie}from"./MailingDetailsSection-DAryNhi6-CuFuumI_.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]="b35a49fb-c58d-4f5c-83f1-b68315669365",e._sentryDebugIdIdentifier="sentry-dbid-b35a49fb-c58d-4f5c-83f1-b68315669365")}catch{}})();const i={paddingTopBottom:new b(o[3],o[3]),paddingRight:new b(o[3],o[8]),paddingLeft:new b(o[3],o[6]),buttonWidth:new b(140,140),marginLeft:new b(o[4],o[6])},B="domesticWireDetailsPage",k="bankAccountSection",$="mailingAddressSection",D=e=>`${e}_form`,xe=e=>{const{bankAccountCreationState:t,fetchBankNameByRoutingStatus:l,addressType:y,bankAccountToCreate:s,addressToEdit:r,mailingAddress:x,isDisabled:A,companyName:j,isMagicLink:f,currencySymbol:v,amount:P,onSaveHandler:z,onWireDetailsUpdated:I,onFetchBankName:R,onAddressClick:L,onBackClick:C}=e,u=O(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:w.useMemo(()=>se(s,r),[s,r])}),[W,g]=w.useState(!1),a=S.getLocalizedStrings().spendManagement.billPay.vendorCreation,E=S.getLocalizedStrings().common.footer,M=a.wireDetails.domestic,F={onOkClick:()=>{g(!1),c.reset(),C?.()},onCancelClick:()=>{g(!1)}},_=async(p,m)=>{const d=m[k].bankRoutingNumber;I(m),p===`${k}.bankRoutingNumber`&&d?.length===9&&X.test(d)===!0&&R?.(d)};w.useEffect(()=>{const p=c.watch((m,{name:d})=>{d!=null&&m!=null&&q(()=>_(d,m))});return()=>{p.unsubscribe()}});const V=c.handleSubmit(p=>{l.fetchState!=="In-Progress"&&z("wire")}),N=!H(x!=null?T(x):x,r!=null?T(r):r)||re(s)||c.formState.isDirty;return n.jsxs(ue,{children:[n.jsxs(le,{size:u,children:[W===!0?n.jsx(Q,{titleComponent:n.jsx(G,{children:a.discardTitle}),descriptionComponent:n.jsx(Z,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:F}):null,n.jsx(ae,{header:f?n.jsx(te,{companyName:j??"",currencySymbol:v??"",amount:P??0}):M.addWireDetails,isMagicLink:f,isDirty:N,onBackClick:C,setShowConfirmationPopup:g}),t?.fetchState==="Error"&&t.error?.code===409?n.jsx(oe,{warningText:a.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:u,children:a.bankAccountCommon.accountDetailsTitle}),n.jsx(J,{...c,children:n.jsxs("form",{id:D(B),onSubmit:V,children:[n.jsx(ce,{size:u,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:l,sectionId:k,isDisabled:A})}),n.jsx(ie,{sectionId:$,isDisabled:A,addressType:y,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(K,{formId:D(B),primaryBtn:{label:f?a.bankAccountCommon.submitDetails:a.bankAccountCommon.saveAccount,isLoading:t.fetchState==="In-Progress",style:{width:i.buttonWidth.value(u)},isDisabled:A!=null},showCancel:!f,cancelBtn:{label:E.cancel,style:{width:i.buttonWidth.value(u)},shouldResetOnCancel:!1,onClick:()=>{N?g(!0):(c.reset(),C?.())}}})]})},se=(e,t)=>({[k]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[$]:{mailingAddress:t}}),re=e=>{if(e==null)return!1;const{bankAccountName:t,bankAccountNumber:l,bankName:y,bankRoutingNumber:s}=e;return!!t||!!l||!!y||!!s},ce=h.div`
1
+ import{q as O,a8 as U,F as S,cB as q,aA as H,V as n,cm as Q,cn as X,co as Z,ab as G,aO as J,y as b,eR as K,o as Y,b7 as ee,c as o}from"./index-BqVFY7NZ.js";import{a as C}from"./sentry-DfYwagp9.js";import{n as h}from"./mui-BdKs9UwT.js";import{bi as T}from"./zeni-epic-state-DcbIZGFH.js";import{e as ne}from"./BankAccountSection-Bgdk93V0-Cg5PjZDc.js";import{M as te}from"./MagicLinkTitleSection-Bx92291D-eyJD0RqY.js";import{W as ae,A as oe}from"./BankAccountWarningSection-DMRmF2yM-BgfDzJHZ.js";import{T as ie}from"./MailingDetailsSection-D-tnK244-DkMA7qYY.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]="88ea16f8-82aa-4b49-b5da-b9083c87530d",e._sentryDebugIdIdentifier="sentry-dbid-88ea16f8-82aa-4b49-b5da-b9083c87530d")}catch{}})();const i={paddingTopBottom:new b(o[3],o[3]),paddingRight:new b(o[3],o[8]),paddingLeft:new b(o[3],o[6]),buttonWidth:new b(140,140),marginLeft:new b(o[4],o[6])},B="domesticWireDetailsPage",k="bankAccountSection",$="mailingAddressSection",D=e=>`${e}_form`,xe=e=>{const{bankAccountCreationState:t,fetchBankNameByRoutingStatus:l,addressType:y,bankAccountToCreate:s,addressToEdit:r,mailingAddress:x,isDisabled:A,companyName:j,isMagicLink:g,currencySymbol:v,amount:R,onSaveHandler:z,onWireDetailsUpdated:I,onFetchBankName:P,onAddressClick:L,onBackClick:w}=e,u=O(),c=U({mode:"onBlur",reValidateMode:"onChange",defaultValues:C.useMemo(()=>se(s,r),[s,r])}),[E,f]=C.useState(!1),a=S.getLocalizedStrings().spendManagement.billPay.vendorCreation,W=S.getLocalizedStrings().common.footer,M=a.wireDetails.domestic,F={onOkClick:()=>{f(!1),c.reset(),w?.()},onCancelClick:()=>{f(!1)}},_=async(p,m)=>{const d=m[k].bankRoutingNumber;I(m),p===`${k}.bankRoutingNumber`&&d?.length===9&&K.test(d)===!0&&P?.(d)};C.useEffect(()=>{const p=c.watch((m,{name:d})=>{d!=null&&m!=null&&q(()=>_(d,m))});return()=>{p.unsubscribe()}});const V=c.handleSubmit(p=>{l.fetchState!=="In-Progress"&&z("wire")}),N=!H(x!=null?T(x):x,r!=null?T(r):r)||re(s)||c.formState.isDirty;return n.jsxs(ue,{children:[n.jsxs(le,{size:u,children:[E===!0?n.jsx(Q,{titleComponent:n.jsx(Z,{children:a.discardTitle}),descriptionComponent:n.jsx(X,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:F}):null,n.jsx(ae,{header:g?n.jsx(te,{companyName:j??"",currencySymbol:v??"",amount:R??0}):M.addWireDetails,isMagicLink:g,isDirty:N,onBackClick:w,setShowConfirmationPopup:f}),t?.fetchState==="Error"&&t.error?.code===409?n.jsx(oe,{warningText:a.bankAccountCommon.accountExistWarning}):null,n.jsx(de,{size:u,children:a.bankAccountCommon.accountDetailsTitle}),n.jsx(G,{...c,children:n.jsxs("form",{id:D(B),onSubmit:V,children:[n.jsx(ce,{size:u,children:n.jsx(ne,{bankAccountToCreate:s,fetchBankNameByRoutingStatus:l,sectionId:k,isDisabled:A})}),n.jsx(ie,{sectionId:$,isDisabled:A,addressType:y,addressToEdit:r,onAddressClick:L})]})})]}),n.jsx(J,{formId:D(B),primaryBtn:{label:g?a.bankAccountCommon.submitDetails:a.bankAccountCommon.saveAccount,isLoading:t.fetchState==="In-Progress",style:{width:i.buttonWidth.value(u)},isDisabled:A!=null},showCancel:!g,cancelBtn:{label:W.cancel,style:{width:i.buttonWidth.value(u)},shouldResetOnCancel:!1,onClick:()=>{N?f(!0):(c.reset(),w?.())}}})]})},se=(e,t)=>({[k]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,bankAccountType:e?.bankAccountType,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName},[$]:{mailingAddress:t}}),re=e=>{if(e==null)return!1;const{bankAccountName:t,bankAccountNumber:l,bankName:y,bankRoutingNumber:s}=e;return!!t||!!l||!!y||!!s},ce=h.div`
2
2
  padding-left: ${e=>i.paddingLeft.valuePx(e.size)};
3
3
  padding-right: ${e=>i.paddingRight.valuePx(e.size)};
4
4
  padding-top: ${e=>i.paddingTopBottom.valuePx(e.size)};