@zeniai/web-app-ui 4.14.33-prod → 4.14.34-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 (368) hide show
  1. package/dist/assets/{ACHDetailsPage-DKTSwNyl-TXl1b9xz.js → ACHDetailsPage-iiVBlQka-kJJwShx9.js} +6 -6
  2. package/dist/assets/{AIPerformancePage-BzTlSxeg-BS_hlzNx.js → AIPerformancePage-MBAB5kgB-CllvurBN.js} +1 -1
  3. package/dist/assets/AccountInfoPage-Cz9yoVl8-yEC5AHJo.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-B0ZnsyrQ-KbE96BJf.js → AccountInfoPageContent-j85psx_A-B10pnZIl.js} +2 -2
  5. package/dist/assets/{AccountLockedInfoModal-B6A-nGIq-D-IFTFOu.js → AccountLockedInfoModal-B1JxHllU-zA2mS4xW.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BTmjrd8b-DiiqLtA-.js → AccountReconDetailsDrawerPage-DF-X46_u-DqFdxkfQ.js} +3 -3
  7. package/dist/assets/{AccountRow-C-Iunc36-YQldrlVW.js → AccountRow-DEtntSrL-CJ0B8bgS.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-D6xN5A4_-WA3fSxPL.js → AccountsPromoCardStack-Cvixqb_6-D97qRbqR.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-B6tLAOA_-CrWgXG6W.js → AddAddressForCardDrawer-B1Qfn44J-CPpzlUkA.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-Bw1oz9Y2-DkLHI9hz.js → AddToWalletPage-BLxUsh1Y-BlYpwefQ.js} +1 -1
  11. package/dist/assets/{AddressRoutes-CL0Pq_Ys.js → AddressRoutes-D9ypa9JP.js} +1 -1
  12. package/dist/assets/{AddressScreen-S2Le0Iyl.js → AddressScreen-7cFlirZg.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-BK3PXwnr-D17kQP-y.js → AgingReportsPage-XIzuLRE4-Ci3KQGlf.js} +8 -8
  14. package/dist/assets/{AiCfoScreen-Cg_pdlQK.js → AiCfoScreen-DoYaPaX9.js} +1 -1
  15. package/dist/assets/{AllUserItems-B42zEFpe-CIjlkzgM.js → AllUserItems-BGMZCYUO-D3nrnj9J.js} +4 -4
  16. package/dist/assets/{ApAgingDetailPage-vzW4qF2Y-BD1Qrsku.js → ApAgingDetailPage-B-1gVAu6-Bzjn8P1m.js} +8 -8
  17. package/dist/assets/{AppBasePage-yAU5vW5D-CQC_mBlM.js → AppBasePage-CYjdUgY4-B_GezOYf.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-nnh5cFf7-CD40ny3-.js → AppDrawerContent-CbF8TOjd-CJdJC4Gi.js} +5 -5
  19. package/dist/assets/{ApprovalRulesSettingsPage-B-Y2YjpT-Cmxno3qR.js → ApprovalRulesSettingsPage-RCtygkuw-D7FKTOUR.js} +1 -1
  20. package/dist/assets/{ArAgingChart-CCc6eh55-gFVrqmo_.js → ArAgingChart-ZwWwEBJ3-CYvKQAY1.js} +2 -2
  21. package/dist/assets/{ArAgingDetailPage-CYXVPEzK-DJfFgL4N.js → ArAgingDetailPage-DtqyngrA-dzglT1I2.js} +1 -1
  22. package/dist/assets/{AttachmentView-DqrQDEWc-xCZ214JL.js → AttachmentView-UxkSFZmq-Dr8yZ85U.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-D1_dZg5k-DQ_IxlP9.js → BalancesInsightWithToolTip-Co6ZUc5x-DLuw_h8-.js} +8 -8
  24. package/dist/assets/{BankAccountSection-4vXBKCFA-Clz7a1S8.js → BankAccountSection-DnBVOkJC-Bn2rFs67.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-Dhmxhwx--Yk0j00ZU.js → BankAccountWarningSection-D7OuLiLz-CD3SlEdY.js} +1 -1
  26. package/dist/assets/{BankConnectionsSettingsPage-z52fh-wH-3DxfIBNE.js → BankConnectionsSettingsPage-BDLTuNLu-BCTZxVaa.js} +13 -13
  27. package/dist/assets/{BillDetailPage-DRpctLxu-DXfbZDoG.js → BillDetailPage-V8us93cj-B0TwX2a_.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-BgvqlrUy.js → BillPayApprovalRoutes-DSmRUBge.js} +1 -1
  29. package/dist/assets/BillPayApprovalRuleDetailPage-C_REwEVS-CztPHOm6.js +27 -0
  30. package/dist/assets/{BillPayApprovalRulesPage-HG32jtX9-BUVTGWgu.js → BillPayApprovalRulesPage-C6G_eDX9-C8wM1oCi.js} +1 -1
  31. package/dist/assets/{BillPayPromoPage-DwxNDF0k-B5FuLPhY.js → BillPayPromoPage-CTQSknOB-CxSqRwoG.js} +12 -12
  32. package/dist/assets/{BillPayRoutes-YLpt2aCD.js → BillPayRoutes-DUDFuwtX.js} +1 -1
  33. package/dist/assets/{BillPaySetUpPage-B-kmDrpB-BcgtlVH-.js → BillPaySetUpPage-BmgMLaf--BkQms9Qs.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-CNZyUOpM-CkmyE4GR.js → BillingSettingsPage-IHY3ak0N-CL3RSkEP.js} +4 -4
  35. package/dist/assets/{BillsBulkReviewDrawerPage-DbIDTE51-BfhLnWA9.js → BillsBulkReviewDrawerPage-ZoFahXYa-BH-n-En_.js} +1 -1
  36. package/dist/assets/{BoxItem-CIyMdw2s-C09MUjaB.js → BoxItem-XoWq-tnh-BmrAcTRu.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPage-DQ34qLUA-DG-QnMwN.js → BusinessVerificationPage-D9HtnNOu-FQn5FW8q.js} +3 -3
  38. package/dist/assets/{BusinessVerificationPageScreen-CXN2pQXQ.js → BusinessVerificationPageScreen-DB2AuUe-.js} +1 -1
  39. package/dist/assets/{BusyIndication-YMYY0Pff-BT75hsR0.js → BusyIndication-BLGcHlgu-d1oE1KKV.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-CN1RN7Tf-D2xaj4U6.js → CardNumberSubText-Cn0EZrNE-tK-yujMO.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-CyYkVa0H-ZVP6lSdv.js → CashbackDetailPage-Bk5ssPnj-C8QC0Hig.js} +9 -9
  42. package/dist/assets/{ChargeCardDetailPage-DFUAF2OM-CMq79ons.js → ChargeCardDetailPage-Ge9Aw7PA-DZlpK6dI.js} +20 -20
  43. package/dist/assets/{ChargeCardListPage-BTHDGtJ6-Cf4tW6na.js → ChargeCardListPage-BNLOoSv3-DV7-d8CD.js} +9 -9
  44. package/dist/assets/{ChargeCardListTable-BiKjkqVs-DmEZHkoe.js → ChargeCardListTable-BoufojYF-Cnvek6YP.js} +26 -26
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-sPGU7qmY-De2tWjhC.js → ChargeCardPaymentHistoryPage-5lUxK8pF-eVmFgfvo.js} +14 -14
  46. package/dist/assets/ChargeCardPromoPage-CKl6K-nr-DnYu005E.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-Q_AcVfPK.js → ChargeCardRoutes-B4WS6JPM.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-DmhPAnYT-CZCQ5HNb.js → ChargeCardSetupPage-Dqoel2Do-DOmmeiiu.js} +1 -1
  49. package/dist/assets/{ChargeCardStatementsPage-DUXupPSN-5KsVWQ3X.js → ChargeCardStatementsPage-Dalrj66w-B8hsBg7k.js} +2 -2
  50. package/dist/assets/{CheckDepositDrawerPage-C8nbDVSz-KV4EdXpf.js → CheckDepositDrawerPage-mYjv1H0f-Cz8ArAIi.js} +7 -7
  51. package/dist/assets/{CollapsableReportTable-C_bWRP7w-B5XVOChU.js → CollapsableReportTable-CIaa7SIH-BTOs1ROa.js} +1 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-6LXCxWYP-BUFWf_Jt.js → CompanyOfficerDetailsSection-BSFNYauO-CNbg81GJ.js} +7 -7
  53. package/dist/assets/{CompanyPassportCard-DVJS9xE7-D3yBGMbD.js → CompanyPassportCard-B-mBb9Q5-DTZPiAcJ.js} +1 -1
  54. package/dist/assets/{CompanyPassportPage-FJ30paB0-DEw2KSMR.js → CompanyPassportPage-Blyl_Z-c-DaWkc5U5.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-7B6uf7gM.js → CompanyPassportScreen-DzV8epiZ.js} +1 -1
  56. package/dist/assets/{CompleteProfile-D3Im5rsm-UkElY7yx.js → CompleteProfile-ySk9I1Ut-Co_b7X5p.js} +1 -1
  57. package/dist/assets/{ConfettiBurst-BJrOe5Fg-zHdUBtAM.js → ConfettiBurst-CeAc4Ily-fAc6vAhM.js} +1 -1
  58. package/dist/assets/{ConnectionAuthScreen-LV19LrUf.js → ConnectionAuthScreen-XNPx_XcE.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-CIRoVGoS.js → ConstrainedInnerElement-CgdnMeoA-CQrlu1iR.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-C8dK3_XQ-B7BE5vbO.js → CreateOrEditVendorPage-BRkqkhfw-6tasCpNK.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-Dp5mS2Hc-CdWmI3zd.js → CreditCardPaymentDrawerPage-oUIakAtz-DpasI8GY.js} +6 -6
  62. package/dist/assets/{CurrencySelectField-BAQ5aoHk-CLSx3dj2.js → CurrencySelectField-CSPhUjwG-QMsL0N8I.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-D8T1akbN-CqBRQYAW.js → CustomerOnboardingActivationPage-CoOyWe6_-Dn0m9Q2e.js} +1 -1
  64. package/dist/assets/CustomerOnboardingAuthScreen-CPpHJyPJ.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-B4YFIOQJ-iH-ugk6E.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DSvvHqR_-DDxDa7To.js → CustomerOnboardingDetailPageSkeleton-CWNyUuRp-PCUtxDIZ.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-CSLO3M7E-DfrADWrN.js → CustomerOnboardingNoStepsPage-DWx46Z6R-Ba9gs9mp.js} +17 -17
  68. package/dist/assets/{CustomerOnboardingPage-weza3x24-89JMVlty.js → CustomerOnboardingPage-D86Sj2KP-BtfnNu-9.js} +3 -3
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-3YH4y1e1-aePXzh9B.js → CustomerOnboardingProductSuitePage-Bo0LFveG-BnqGrm-5.js} +1 -1
  70. package/dist/assets/{CustomerOnboardingRoutes-CIx1-GM_.js → CustomerOnboardingRoutes-Cii6REat.js} +1 -1
  71. package/dist/assets/{Dashboard-Bpuy-Pez-BVeBVlwV.js → Dashboard-DQLJzr16-BXSSEaEy.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-1p79NBF9-DWbFRbgX.js → DashboardReportPage-CwfTMXY5-CyyBZOOf.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-0ryBDIPF.js → DashboardRoutes-DPYTQsIc.js} +1 -1
  74. package/dist/assets/{DashboardSidebarBackgroundAnimation-CBg2tWHO-Cyc1B4hB.js → DashboardSidebarBackgroundAnimation-CUZGIAxW-Cr2AFDv0.js} +1 -1
  75. package/dist/assets/{DefaultTenantHome-CfqvxZPL.js → DefaultTenantHome-DShfBjyT.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-DlztlGZL-CezsIYfK.js → DepositAccTransactionItem-Ci-LxLsk-Ba_0JQSS.js} +5 -5
  77. package/dist/assets/{DepositAccTransactionListPage-BO43c3Uz-Zcue0IvK.js → DepositAccTransactionListPage-RG7P8vQS-DbfwdIAf.js} +3 -3
  78. package/dist/assets/{DomesticWireDetailScreen-Dt7o6kAb.js → DomesticWireDetailScreen-DdRhRffk.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-SEql3I0P-CwtZcgDr.js → DomesticWireDetailsPage-DsPFUOcE-CNM83Rj8.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-PhrwF2iZ-BOGlUpUv.js → DownloadOverlay-BjTf50Dz-DEzcOvm5.js} +14 -14
  81. package/dist/assets/{DrawerPage-Bf3AP3Lj-CuJ6OWfo.js → DrawerPage-0OFinUxM-CdrQ9TzW.js} +1 -1
  82. package/dist/assets/{DrawerScreen-BoLS3cEF.js → DrawerScreen-BgWdy-zB.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-B-rBzonN-CS3sxfIN.js → EditPeoplePage-BKcOmYVv-D9y240Gc.js} +5 -5
  84. package/dist/assets/{EditReimbursementDetailPage-CUiIHNgT-HAw3keDO.js → EditReimbursementDetailPage-BFIHhQbx-CqZ1c7qf.js} +1 -1
  85. package/dist/assets/EntityDetailPage-D8FzsqNk-DxrfKvnb.js +18 -0
  86. package/dist/assets/{EntityDetailRoutes-BToXXZKQ.js → EntityDetailRoutes-jLGbxUaz.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-mXeSjiuZ-BvfGPJV_.js → EntitySummarySection-ORJ2pE_k-BgNQmv_X.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-DQCoy1O9-DKKO1Jrc.js → ExpenseAutomationOverviewPage-Dzf7j2zV-gCWUW27x.js} +3 -3
  89. package/dist/assets/{ExpenseAutomationPage-BeAzQ7Qx-C48GQ06z.js → ExpenseAutomationPage-BRsKGeoM-BXGFdyb-.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-GuaeYvX3.js → ExpenseAutomationRoutes-D9vGLTe3.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-C-isOU1b-DYMWp0fl.js → ExpressPayPage-DlBFtMaR-C8b9Izur.js} +6 -6
  92. package/dist/assets/{FeaturePreviewPage-Cyre9YzV-DesOgA9M.js → FeaturePreviewPage-C31F3Gmz-DHInFJNz.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-DKVtqlmL.js → FeaturePreviewScreen-BUEayEBU.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-DZNWzSvo-CEWgMRa8.js → FollowStepsSection-BVT2K7mu-DYEgY8Jh.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-Dp--ugNc-CR5AVKkp.js → GlobalReviewListPage-0cZe1hh0-BPLQx8Xp.js} +1 -1
  96. package/dist/assets/{InformationCardStack-D7naFDX0-CJPEq7Jn.js → InformationCardStack-t8eELRLU-Fl6DqL5O.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-DexUl4h--Bl8IGBl8.js → InsightsCardStack-CJBPZbzD-DGmN2b_X.js} +6 -6
  98. package/dist/assets/InsightsSection-tUBzsCix-DIQLSRNu.js +27 -0
  99. package/dist/assets/{IntegrationsSettingsPage-hFTe3wiP-BbqUP31g.js → IntegrationsSettingsPage-Ce0yKUWI-Dbrmpo2j.js} +3 -3
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-DLkE5bXp-CVUjdU_d.js → InternationalWireSwiftDetailsPage-BzR-rKaL-DTkvcjTH.js} +9 -9
  101. package/dist/assets/{InternationalWireVerificationPage-DYGjEqNz-OdDFheAC.js → InternationalWireVerificationPage-7tCXdJ3Y-BOpLh7TD.js} +10 -10
  102. package/dist/assets/{InviteFormPage-CGAsWQn7-BQX11ciA.js → InviteFormPage-DePVC0CH-TfpQcbbS.js} +1 -1
  103. package/dist/assets/{InvitePageListView-BSPE9f03-CSYqsy-x.js → InvitePageListView-ChbvDKgQ-CxYzSS3J.js} +20 -20
  104. package/dist/assets/{InvitePeoplePage-ANvLB-mB-CwQaZHmv.js → InvitePeoplePage-DJiEzIeY-YtuIrr11.js} +2 -2
  105. package/dist/assets/{InvoiceUploadSection-OGMswY7c-JnVeVq04.js → InvoiceUploadSection-BjNMjhQR-B0WmHo8s.js} +12 -12
  106. package/dist/assets/{IssueChargeCardPage-sLInqAsW-Cl_MHNbe.js → IssueChargeCardPage-4xbGf5Ut-CG64H4WO.js} +11 -11
  107. package/dist/assets/{LabeledAddressValue-DBJ236tZ-DU9mrQ8B.js → LabeledAddressValue-Czt7QvSJ-ezeCCYD9.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-CAr-IiTa-Coj2vGIo.js → LabeledAddressValueField-Dl3atH92-CBuLNDhF.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-BdWZgcQc-CSRUO8Mc.js → LabeledControlledCheckBoxField-DT_nxhPN-DrCJem7I.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-C6z1v9S1-0fn76-gA.js → LabeledCountryMultiSelectField-BnljZpX0-CrALbnep.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-Dhi0n2ky-C4cpdoPU.js → LabeledCreatableSingleSelectField-CiInq9yD-B0A_NESz.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-B3QSq1eM-CQ4OV_q7.js → LabeledDocumentField-Ceb8vgVH-BzsX4WXj.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-B39DlufR-OSl5UgSA.js → LabeledDropDownFormattedTextField-B98gNWTE-rwd9doXk.js} +1 -1
  114. package/dist/assets/{LabeledEmailInputField-CY2mGhJG-DsHOn9-h.js → LabeledEmailInputField-C53P9fJl-BS-n0yyf.js} +1 -1
  115. package/dist/assets/{LabeledNameField-CYN5kdQi-C2knR9hx.js → LabeledNameField-BdVztq_8-Cc3_vzCa.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-CBXzDXMd-Be-7ukpv.js → LabeledSingleSelectField-sjDjhxfQ-DngJSR1z.js} +1 -1
  117. package/dist/assets/{LabeledText-GEbY3-bB-a8-4xrHX.js → LabeledText-CFJSoGtK-hLpZiX2C.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Do8fziYM-jZMMsugI.js → LabeledUserSingleSelectWithSubtitlesField-CDiG37rQ-CajsyJVF.js} +1 -1
  119. package/dist/assets/{LabeledZeniRolesDropDownField-DJfE1qQb-C9jHsUlw.js → LabeledZeniRolesDropDownField-CQiP2rEh-DpkAVgvo.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-B2ROo3VS-CD9ycgeo.js → LinkJETransactionPage-ANY7Ns42-CApOUFWk.js} +12 -12
  121. package/dist/assets/{LockCardPage-D2dUPnNL-CjHU-BzP.js → LockCardPage-0piclOz3-FnbsGUI5.js} +1 -1
  122. package/dist/assets/{LowBalancePopup-DTtl3SIc-aNudwoSx.js → LowBalancePopup-CplxkRHP-B1Znghgy.js} +1 -1
  123. package/dist/assets/MagicLinkACHDetailsPage-BKh8WrCR-Ee7s37LW.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-Cv19HbKi-ByrEtbtY.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-DbFxpWOg-BpTLsET9.js +1 -0
  126. package/dist/assets/{MagicLinkRoutes-B_At_wkT.js → MagicLinkRoutes-B8zheK-B.js} +1 -1
  127. package/dist/assets/{MagicLinkSignInScreen-CB2sh4Tk.js → MagicLinkSignInScreen-qtJuxxon.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-Ctt1pLiv-B1_3zL4I.js → MagicLinkSuccessPage-BA1LfhVb-By8HxESz.js} +1 -1
  129. package/dist/assets/{MagicLinkTitleSection-CtsQ_c44-DzfsAoNb.js → MagicLinkTitleSection-DLdaV8WG-BuvestSo.js} +1 -1
  130. package/dist/assets/MailingDetailsSection-BNVPaGFt-De-HK05Q.js +21 -0
  131. package/dist/assets/{MobileAppDrawer-D9B1riEd.js → MobileAppDrawer-CKcdPSDd.js} +1 -1
  132. package/dist/assets/{MoreMenuButton--MxUyTqX-DxfOtpkn.js → MoreMenuButton-DrAQ635T-BL2i_PBG.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-6ltpx62E-vyWVBa3l.js → MyBankConnectionsSettingsPage-BiDvyO_G-BqsVQnsn.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-CwDedcXl-BfNnXoNe.js → MyPendingActivationChargeCardListPage-Bb4_b9o6-DszbbtUq.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-Bmhu2lrK-BTNTNmEK.js → MyProfileSettingsPage-nY_eDqfm-aRf1sJOL.js} +1 -1
  136. package/dist/assets/{NavBarWithPicker-jqJCHGvR-dfmiqqqq.js → NavBarWithPicker-Dr5XHgP5-CjhNLCso.js} +1 -1
  137. package/dist/assets/{NavigationArrow-DY_BhITD-BQwiFtSS.js → NavigationArrow-DT82hMh--BnPRXoeX.js} +1 -1
  138. package/dist/assets/{NavigationDots-Kh5ODrCQ-DBa52_8H.js → NavigationDots-CwCZ9EAa-ovWuwmnJ.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-BYTROFvX-Bjv2RB8-.js → NewGlobalMerchantPage-D1lxnByE-D4tZVWQn.js} +1 -1
  140. package/dist/assets/{NoDataChart-CuiKDcAB-BwyLAmy8.js → NoDataChart-DCTRXLc7-C1K6noeS.js} +1 -1
  141. package/dist/assets/{NoDataTable-BpH8puX--CRikf6dL.js → NoDataTable-D8Xw5pAY-C0LyDZgH.js} +1 -1
  142. package/dist/assets/{NotFoundPage-BKvCYyvc-C4zGt610.js → NotFoundPage-B_zPUigU-CFd5sZ-j.js} +8 -8
  143. package/dist/assets/{NotFoundScreen-DGF4ewvh.js → NotFoundScreen-CJqSMVfb.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-BOCajdcJ.js → NotificationRoutes-j0M-AVSa.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-F2xXUCSE-Exk6EXhh.js → NotificationSettingsPage-aKLRiMp--Vy4Thl7S.js} +4 -4
  146. package/dist/assets/{NotificationsListConfig-C9r-O2kH-YO8sPuy3.js → NotificationsListConfig-CVEetkBc-BGp3geYy.js} +1 -1
  147. package/dist/assets/{NotificationsPage-CZZ9GTVy-BlxqoNKc.js → NotificationsPage-DEw6V83J-SkJPHzO4.js} +14 -14
  148. package/dist/assets/{OpExByVendorPage-Crvcsx0U-DV1gdTtR.js → OpExByVendorPage-DJMov6Ux-CzqjhunS.js} +5 -5
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-Bb0zlii5.js → OverlayContainerPage-BG9y5C0t-CuyJ8LZt.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-CkDCt5NK-BXsQyBSk.js → PandLWithForecastPage-RBTh1bFk-BwnpORkG.js} +7 -7
  151. package/dist/assets/{PandLWithForecastRoutes-DUjvSQn1.js → PandLWithForecastRoutes-J6LmjJ1B.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D1ZDh1GY-CQR83EXw.js → PaymentAccountSetupBillingAddressSection-D-kQI4nd-BoSQv9rJ.js} +1 -1
  153. package/dist/assets/{PeoplePage-D2CtRlrd-CyfJaF0_.js → PeoplePage-BEc-Oss7-DoZuQeL3.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-DWTFCJOs.js → PeopleRoutes-C0vyagIg.js} +1 -1
  155. package/dist/assets/{PerformanceRoutes-DAqkD2US.js → PerformanceRoutes-zXK3SrhB.js} +1 -1
  156. package/dist/assets/{Preview-BOuv1ApV.js → Preview-COp40RlO.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-sNagRI0c-CXROneWv.js → ProductsCarousel-BRo0P4GW-Bu_QsU8W.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-BUk-u73S-CdxIVd7h.js → PromoBaseCards-BrXJEufN-C4zOhiIC.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-C1rEAxUE-Bns4Q1dD.js → QBOConnectionDialog-BIg9Iais-CzdJGXEh.js} +1 -1
  160. package/dist/assets/{QBOConnectionScreen-BzZBkC05.js → QBOConnectionScreen-DROpihDX.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-iQJCHR-K-CCZ1VagE.js → QBOSetupSection-DDoUJ7L6-qtD1b_uv.js} +1 -1
  162. package/dist/assets/{ReferralListScreen-CRs7Pk4b.js → ReferralListScreen-Bkepb1RS.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRoutes-XjY3gDt6.js → ReimbursementApprovalRoutes-B_Qw-_-n.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BPIKZ9v1-CWKcEqcV.js → ReimbursementApprovalRuleDetailPage-CP0muUGK-B40CL0Ys.js} +3 -3
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CxSdKHi9.js → ReimbursementApprovalRuleDetailScreen-Ud4xo4RE.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-AE810nQZ-CChCQ3Ja.js → ReimbursementApprovalRulesPage-BpVWq3rk-pDKAG_dA.js} +1 -1
  167. package/dist/assets/{ReimbursementDetailPage-CYuZJL_J-BWOIR-bJ.js → ReimbursementDetailPage-pCg86_Ty-BwD3VA7C.js} +5 -5
  168. package/dist/assets/{ReimbursementPromoPage-CaxjSwrz-DwHvaE_-.js → ReimbursementPromoPage-BW6icjG5-CwTaRQC0.js} +6 -6
  169. package/dist/assets/{ReimbursementRoutes-CvpKnwwj.js → ReimbursementRoutes-kGf8y_Pc.js} +1 -1
  170. package/dist/assets/{ReimbursementSetUpPage-Bw77MBHF-CscUt_mO.js → ReimbursementSetUpPage-B6OhWEWH-CGJsBL7Z.js} +1 -1
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B-svIloS-B1Lp4xHp.js → ReimbursementsBulkReviewDrawerPage-DmDoqEZh-DV9AjOeD.js} +1 -1
  172. package/dist/assets/{ReloadCard-D5kxTfzJ-f2yTtdPG.js → ReloadCard-DIFXZM9U-DuI83eQl.js} +1 -1
  173. package/dist/assets/{ReportTableViewSelector-BZU8yltx-DSV7knFo.js → ReportTableViewSelector-BsIDwouQ-DLCe8EfR.js} +1 -1
  174. package/dist/assets/{ReportsPage-CdN9MEVy-DTQ_WR-z.js → ReportsPage-BFTuYQt2-BHmgPSl5.js} +5 -5
  175. package/dist/assets/{ReportsRoutes-CuJzeSSZ.js → ReportsRoutes-DaW9sMcm.js} +1 -1
  176. package/dist/assets/{RevenueChart-B_RMeweH-BaW-ee-H.js → RevenueChart-BoFq3ebd-B1Jmsn3P.js} +12 -12
  177. package/dist/assets/{ReviewDetailsPage-a73YIZSO-DpkHrzHu.js → ReviewDetailsPage-6kCQzaHm-Cn6HDwAl.js} +1 -1
  178. package/dist/assets/{ReviewOverlay-Ubmz06uP-BJLc1VC5.js → ReviewOverlay-Dhb-kL6G-BfSpCmKQ.js} +1 -1
  179. package/dist/assets/{RewardsRoutes-DR53o9JA.js → RewardsRoutes-ZPHX_bEI.js} +1 -1
  180. package/dist/assets/{RoleWithToolTip-BYO1YG6N-BFoZQpPA.js → RoleWithToolTip-BfM8Ltz4-DGj9-oQ7.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-vgqilDC8-DDQ83sDS.js → ScheduleDetailsFixedAssetsPage-Ccewwmwc-BRbRv99B.js} +1 -1
  182. package/dist/assets/{ScheduleDetailsPage-DdEeFryA-DsuykU2q.js → ScheduleDetailsPage-D4LK83qQ-C27rzfV2.js} +1 -1
  183. package/dist/assets/{ScheduleSequenceTable-poNEzbqS-CnUEqaUu.js → ScheduleSequenceTable-BZR2cL6z-BUCxLw4U.js} +1 -1
  184. package/dist/assets/{ScreenRoutes-Cj2iuXVM.js → ScreenRoutes-DUg5kVGG.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-BSOGwHCj-l5hcQr16.js → SetUpAccountSection-CxjYbrXu-D_xZkN4u.js} +1 -1
  186. package/dist/assets/{SettingsRoutes-BxSbNmrP.js → SettingsRoutes-BrYKFKqU.js} +1 -1
  187. package/dist/assets/{SetupPagesScreen-zQ3NX2lR.js → SetupPagesScreen-BDAmd8Nv.js} +1 -1
  188. package/dist/assets/{SignIn-q4J9wRx8-HA_1dqj8.js → SignIn-CVmtPGKL-BjZd_WFj.js} +6 -6
  189. package/dist/assets/{SignInScreen-CELs0Aza.js → SignInScreen-BwyzU0FU.js} +1 -1
  190. package/dist/assets/{SignOutScreen-Drnn4I9w.js → SignOutScreen-DIMehMGL.js} +1 -1
  191. package/dist/assets/{SpendManagementListViewPage-DKRkSADM-B4S5gwAW.js → SpendManagementListViewPage-BLjP9T8h-zDO_JYhV.js} +4 -4
  192. package/dist/assets/{SpendManagementPerTabPage-Cd30NnXU-Doh8LRUx.js → SpendManagementPerTabPage-Ck4brjun-DcKQnpZe.js} +21 -21
  193. package/dist/assets/{SpendManagementSection-CPBOh_J5-Cx9bexj6.js → SpendManagementSection-DAqR2c98-Cn1QTtEj.js} +1 -1
  194. package/dist/assets/{StatementItem-NyOORj5f-DBo43N4H.js → StatementItem-B_iG99XI-BTCPeQVA.js} +2 -2
  195. package/dist/assets/{StatementsPage-Cp77wyFS-DaxbhsSQ.js → StatementsPage-DcKziEfZ-Ckb4n5eQ.js} +2 -2
  196. package/dist/assets/{StatusSwitcher-DN-yYdli-Cu3f5bfq.js → StatusSwitcher-BI-dgnrK-D9HsJYc3.js} +1 -1
  197. package/dist/assets/{SubTabSwitcher-D1LNrhUn-CAQ9zzl5.js → SubTabSwitcher-BpNI5Wke-J6S5GWya.js} +1 -1
  198. package/dist/assets/{SuccessAnimation-DdyAYe1e-CEynHwH0.js → SuccessAnimation-AojDorqX-DelQrrOf.js} +1 -1
  199. package/dist/assets/SummaryCard-HW-1WXN9-DmGROxw-.js +1 -0
  200. package/dist/assets/{TaskDetailPage-DXTLNhtf-Bv_CIrcO.js → TaskDetailPage-Cwe193JO-B3mrz9Ub.js} +1 -1
  201. package/dist/assets/{TaskListScreen-DF7HvN9h.js → TaskListScreen-BkKSoC_l.js} +1 -1
  202. package/dist/assets/{TaskManagementPage-BaLJR4-7-CcdtHiNd.js → TaskManagementPage-Bz1uP5hK-CqiPZXfA.js} +28 -28
  203. package/dist/assets/{TaskRoutes-DxF_jRUO.js → TaskRoutes-BGbHdjST.js} +1 -1
  204. package/dist/assets/{TimeRangeSwitcher-CkgGEwEw-Cje_LjEs.js → TimeRangeSwitcher-oORYeFzN-Bcz5e_ib.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcher-B8fpnYS8-9PZp4BSK.js → TimeframeSwitcher-JcJSbn0--fOirrXtT.js} +1 -1
  206. package/dist/assets/{TimeframeSwitcherWithToggle-DwFo6jY4-D0eIiKbV.js → TimeframeSwitcherWithToggle-BEZU-KDj-P0Jp8ujn.js} +2 -2
  207. package/dist/assets/{TopExCard-PayAZZY--Bj-aVuk-.js → TopExCard-CF6z0JWk-aJxcszKV.js} +1 -1
  208. package/dist/assets/{TopExDetailPage-Mp2KcYf6-C_nzfxYJ.js → TopExDetailPage-DrcKlFuy-oABFUcUd.js} +3 -3
  209. package/dist/assets/{TransactionActivityLogPage-CnmL_hUz-DdEnXJ8f.js → TransactionActivityLogPage-BB4q0jan-DmLyvTEw.js} +1 -1
  210. package/dist/assets/{TransactionDetailPage-Bqlnmn8Y-JVQYT9QH.js → TransactionDetailPage-DRG_qosz-BtS_tJXW.js} +22 -22
  211. package/dist/assets/{TransactionDetailRoutes-Dsu-ghiL.js → TransactionDetailRoutes-BqT5fc1q.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-8GuKlcKa.js → TransactionDetailScreen-CAd4Ee0D.js} +1 -1
  213. package/dist/assets/{TransactionList-BOmlsfpv-qlUBYIHt.js → TransactionList-iw4pyMYF-DcV99PuO.js} +9 -9
  214. package/dist/assets/{TransactionListBig-CaMT-rq_-7hp5f6-i.js → TransactionListBig-BljAUwAB-CgBr6OF2.js} +6 -6
  215. package/dist/assets/TransactionListPage-ReGTmF43-DlTPQjmK.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-DVQtuZtB.js → TransactionListRoutes-BhvTNW6M.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-DlXuiPC5-DR6QT97k.js → TransactionVendorDetailPage-DXuYIj-p-BYLZbSnP.js} +1 -1
  218. package/dist/assets/{TransferDrawerPage-C2VcssbM-Cu4oX3M3.js → TransferDrawerPage-C3q8h8Zy-C9Bu2kIu.js} +10 -10
  219. package/dist/assets/{TreasuryOverviewPage-DyyoGY23-C8QrAhwL.js → TreasuryOverviewPage-DqjFEV9B-CYFYYxZY.js} +1 -1
  220. package/dist/assets/{TreasuryPromoPage-B9Hf7oxZ-exH2M4Kq.js → TreasuryPromoPage-ByeK0W_5-CfOqREZ0.js} +14 -14
  221. package/dist/assets/{TreasuryRoutes-NYBhe4Sz.js → TreasuryRoutes-CP_kclcP.js} +1 -1
  222. package/dist/assets/TreasuryStatementsPage-BjGwvMFL-CyFCCkuV.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-BcTBr9x9-DmWWAi8g.js → TreasuryTaxLetterPage-DwLyqS86-DUS4dLDe.js} +4 -4
  224. package/dist/assets/{TrendChart-BvXDrgUJ-DaPNeQha.js → TrendChart-Dgh_21FN-DldNMNLW.js} +2 -2
  225. package/dist/assets/{TrendWithTransactions-RCpzdPf3-xFzViS9J.js → TrendWithTransactions-BgIPapHk-yF3cpnF6.js} +6 -6
  226. package/dist/assets/{UncategorizedAccountsMappingPage-B1m3iXh5-CWDJigyo.js → UncategorizedAccountsMappingPage-DIIJcGrj-DpxmnOrf.js} +1 -1
  227. package/dist/assets/{UnitIntegrationPage-lVg_8mQ4-BqTrIaLn.js → UnitIntegrationPage-DIOZhQOZ-D5vOldwB.js} +1 -1
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-DrAWxBXn-CvQ8tJ-8.js → UploadAdditionalDocumentOverlay-qrcEQmkz-DEAH1rR2.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-C8m_OJEH-CGjK9uo8.js → Vendor2FAPopup-C58w6vC7-B6Whv7tb.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-BbxRwrEv-BMYPvmSB.js +1 -0
  231. package/dist/assets/{VendorDetailPage-Y9_hsgjs-Bs6JWCG0.js → VendorDetailPage-CEQFcNHr-CX9v8TJZ.js} +11 -11
  232. package/dist/assets/VendorDomesticWireDetailsPage-C02ZhGg3-CcLCcIv4.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-CPevpiim-Dbk4Mp2s.js → VendorFiling1099EditablePage-Dl7jZYBV-DZmwa4DL.js} +6 -6
  234. package/dist/assets/{VendorFirstReviewPage-CXftFNl_-_y9eg1t7.js → VendorFirstReviewPage-yVbtg_tG-vnisIb8R.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireDetailsPage-88NtGE3e-DhB1w2yC.js → VendorInternationalWireDetailsPage-DNDv_s8G-f9eGCIqU.js} +6 -6
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Bdt0UR_b-CeTlsL7U.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-DorsKXyL-DqIvcWpM.js → VendorsAccountsSection-Cscbgqrx-Zty_2Das.js} +1 -1
  238. package/dist/assets/{VendorsRoutes-KueNgBM0.js → VendorsRoutes-0dl7Omuv.js} +1 -1
  239. package/dist/assets/{VerifyDevice-DAym8rUN-M7g6H0jm.js → VerifyDevice-D1vsUSdJ-hlyDWjEh.js} +5 -5
  240. package/dist/assets/{VideoPlayer-53OvOC7l-RvSvHksJ.js → VideoPlayer-TlEy-oD0-DnsdEgv4.js} +1 -1
  241. package/dist/assets/{VideoPopup-v9quqdro-7jf9bldH.js → VideoPopup-3DD646kG-BEeSChGm.js} +4 -4
  242. package/dist/assets/{WiseConfirmationScreen-ZA8zS_nU.js → WiseConfirmationScreen-BW6hT1Lt.js} +1 -1
  243. package/dist/assets/{ZeniAccountDetailPage-CFEGqW5l-typbF83j.js → ZeniAccountDetailPage-BbsXzuHD-DIIfMLh3.js} +14 -14
  244. package/dist/assets/{ZeniAccountListViewPage-j85TO5tM-DjfKcyrL.js → ZeniAccountListViewPage-lmuVUpKS-DSNsPUPM.js} +21 -21
  245. package/dist/assets/ZeniAccountNavBarPieces-CQhwBKXD-CSe8C_Ya.js +33 -0
  246. package/dist/assets/{ZeniAccountPromoPage-DeHmh4My-DJyZmW1d.js → ZeniAccountPromoPage-CXEb9tRE-DBFLOPLE.js} +1 -1
  247. package/dist/assets/{ZeniAccountRoutes-_rESdYK7.js → ZeniAccountRoutes-CAjxqnTS.js} +1 -1
  248. package/dist/assets/{ZeniAccountSetupPage-ofkQR72l-DbUwbU98.js → ZeniAccountSetupPage-DPhYQu6u-B9IBOs3Q.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-CXTN4TcP.js → ZeniAccountStatementScreen-I7iDP5eY.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-Ct7MPW2X-Dr9Hk39M.js → ZeniAvatar-CCOD249Z-DHdRsr5H.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-CmCqmJmV-DYheSP80.js → ZeniCopyright-pvaggW6x-DhIa5hzn.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-RNJ2ukKC-CtKXessM.js → ZeniDatePicker-EhzRlpFY-Bagds5F3.js} +1 -1
  253. package/dist/assets/{ZeniTransferAmountSlider-BpfqM032-BwOaWtqI.js → ZeniTransferAmountSlider-Dlyom9dD-CMHS5vTr.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-BLU8hIq_.js → accountMappingHelper-DeA_Vzuk.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-Cv2WBwY-.js → add-to-wallet-DgdBD8_G-DSVHJQZ8.js} +1 -1
  256. package/dist/assets/{analytics-DuMT4wpV.js → analytics-hnA26KoH.js} +1 -1
  257. package/dist/assets/{analyticsHelper-qtejXlXH-d-w7uTbl.js → analyticsHelper-AeOsAjMK-B2elKvEV.js} +1 -1
  258. package/dist/assets/{analyticsHelper-CtwnuYac.js → analyticsHelper-C6d1RQIz.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-DWItiKv4.js → arrow-south-east-round-PEovUgvH-C7VEDzJz.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-DVkawdL2.js → auto-transfer-rule-mbafm5D3-CvacsS1B.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-VXKNqIyu.js → avatar-Dz7aEm3d-BBjMxgr_.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-v-zvGYkf.js → bank-letter-BOcVjN6J-BDC6rOv1.js} +1 -1
  263. package/dist/assets/{calculateSize-CzpGCfNE-DkEz7M5T.js → calculateSize-D-LzlJzs-DNCT8MgL.js} +1 -1
  264. package/dist/assets/{chartTypes-BqRsL6eJ-DnPOTdta.js → chartTypes-BLsP7rGF-Cjsgj_un.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-DTBXHHGh.js → clock-CJkylEKt-CTyWvBpx.js} +1 -1
  266. package/dist/assets/common-CAmBErdt-BVIeK7KA.js +1 -0
  267. package/dist/assets/{commonDimensions-CzWWgDTA-CkwNwI_N.js → commonDimensions-DIm7kTtR-DqNzhcTL.js} +1 -1
  268. package/dist/assets/{commonTypes-CF6UyWSv-CFnrHGdI.js → commonTypes-B3mnx2x_-C4g4js89.js} +1 -1
  269. package/dist/assets/{core-Dbakk1VU.js → core-DuCBl3U1.js} +1 -1
  270. package/dist/assets/{dash.all.min-C8PYPQo3.js → dash.all.min-DJBtyB-p.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-EYVZFaGG.js → decodeURIComponentSafe-B5ZlGWkv.js} +1 -1
  272. package/dist/assets/{dnd-CoZK9h43.js → dnd-BPJHdlPA.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-PE8nVeMR.js → dollar-round-D18u7nlm-C91Luiym.js} +1 -1
  274. package/dist/assets/{downloadPdf-BFFM3Hea-2RXX_qzA.js → downloadPdf-B5WrL0K1-C6-xl2en.js} +1 -1
  275. package/dist/assets/{empty-C3KqHyA9.js → empty-BcYVHaFA.js} +1 -1
  276. package/dist/assets/{empty-CjUOQS3C.js → empty-UwS7bCyx.js} +1 -1
  277. package/dist/assets/{epic-BGBLm-VW.js → epic-DAzl9zmQ.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-KJVxW4YT.js → filter-cZIFUNvj-CU1t2o_9.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-BAO89gke.js → getLocaleForTenant-B4PeqeqG.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-Bfn5R-O9.js → gift-box-Cmt9OgIZ-CTJlvd1T.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BFYI8sfE.js → graphic-no-data-l-DU4J8fDt-Gma2xMWq.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DgQOtljq.js → graphic-no-data-net-burn-l-CzmycA0m-D0m0NfVz.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-DOXeNqAW.js → handshake-BPg58FML-DVgbSASX.js} +1 -1
  284. package/dist/assets/{helper-COxPEvgL-DjqGilVF.js → helper-BVESv00--BfyFxQUD.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-BPv_vjnI.js → hyperlink-DQyCeXx2-i9FNT3rr.js} +1 -1
  286. package/dist/assets/{index-BG4JRo3L.js → index-5deWfiyy.js} +1 -1
  287. package/dist/assets/{index-dCAlFLzb.js → index-BO-jmwXl.js} +1 -1
  288. package/dist/assets/{index-DD0lDka6.js → index-C0E4etuS.js} +1 -1
  289. package/dist/assets/{index-BdbGtEP2.js → index-CqCwZ9Bo.js} +1 -1
  290. package/dist/assets/{index-CH6Xem9w.js → index-TFe4MZqS.js} +1 -1
  291. package/dist/assets/{index-iSEGT9xi.js → index-bPu7mlA1.js} +7 -7
  292. package/dist/assets/{lexical-Dk5TD4lX.js → lexical-Ct26b5l4.js} +1 -1
  293. package/dist/assets/{liveblocks-DdnYk2Co.js → liveblocks-UDiQs1XL.js} +1 -1
  294. package/dist/assets/{lottie-DBYzZfO9.js → lottie-DyJgmWhI.js} +1 -1
  295. package/dist/assets/mapLoadingInProgressToTreeNode-DJxRl0X1-CvJBQQvj.js +1 -0
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CcuLqf_I-D5MLuJek.js → mapSectionWithAcOnlyToTreeNode-BIiMj0sc-ByugsxAl.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-Bj3f2irs-Ngbliu4M.js +1 -0
  298. package/dist/assets/mapTimeframeBalancesToTreeNode-AI17uMHa-DAlg0uz7.js +1 -0
  299. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cql9mEn3-acr__MkP.js → mapTimeframeBalancesToTreeNode-CyO5pm8k-BJN9BucH.js} +1 -1
  300. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CIXgJHQz-DcnMdcWy.js → mapTimeframeHeaderLoadingInProgressToTreeNode-NKafOEXu-CbmdzU04.js} +1 -1
  301. package/dist/assets/{media-player-C20hpg6W.js → media-player-Bc2nje5G.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-DnxgWofF.js → money-2cg1MuG4-BqWS5D8h.js} +1 -1
  303. package/dist/assets/{mui-Bg5IRLA2.js → mui-CvPZa6D0.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-XQ_ZOvdt.js → page-detail-CWX5S47F-OEFqGWSt.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-DKN2ai-q.js → page-summary-D7_VQHwN-CzEvyMZF.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-C6CCGzAz.js → panelSelectedMixin-Cddsb26L-CcaPMjiP.js} +1 -1
  307. package/dist/assets/{pathToGoBack-BLk7pE4i.js → pathToGoBack-BdyVSZWc.js} +1 -1
  308. package/dist/assets/{pdf-2PUMrtF-.js → pdf-LR9rRMEe.js} +3 -3
  309. package/dist/assets/{pdf-lib-DlaDOnMS.js → pdf-lib-B2ywHAlU.js} +1 -1
  310. package/dist/assets/{plaid-DCRMdnUX.js → plaid-C4PyP873.js} +1 -1
  311. package/dist/assets/{pusher-DjPz7AVp.js → pusher-Cr29ksza.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-B6m2tow9.js → radio-default-CiSgisfh-CvJrfQYK.js} +1 -1
  313. package/dist/assets/{react-DPKlRGpY.js → react-B7DTlDjT.js} +1 -1
  314. package/dist/assets/{react-BRYNjAhe.js → react-BKUY-Nle.js} +1 -1
  315. package/dist/assets/{react-BpovbSPi.js → react-BpPHxptQ.js} +1 -1
  316. package/dist/assets/{react-BtvC2hyM.js → react-CC2kbVB0.js} +1 -1
  317. package/dist/assets/{react-C1B10AWi.js → react-D8ws7sMn.js} +1 -1
  318. package/dist/assets/{react-BtDFM6dw.js → react-DgBIg1r8.js} +1 -1
  319. package/dist/assets/{react-mssibIlX.js → react-S5J_OrT1.js} +3 -3
  320. package/dist/assets/{react-Cu5T4aA9.js → react-p9LV8Gbe.js} +1 -1
  321. package/dist/assets/{recharts-Bztd37V0.js → recharts-7AyWv7E-.js} +1 -1
  322. package/dist/assets/{routePaths-BxZ6qL2m.js → routePaths-rBllTjJq.js} +1 -1
  323. package/dist/assets/{sentry-DwNPvXBL.js → sentry-uXR4_KRo.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-BW1Lfeco.js → shield-DOlUxcFf-Bahpx3SF.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-BsKlbYVQ.js → spend-limit-D6SyboD4-lpJ_hpRn.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-BWMF0py6-CojDIytn.js +1 -0
  327. package/dist/assets/{toChartData-CWgd8E5c-vscPIv0G.js → toChartData-BkubFDq8-CyY5jx0a.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-BWj2A57R.js → transaction-placeholder-CpOwZAMG-Bn-8TRqx.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-CGq1U42f.js → undo-b_3XZ5CX-Bwi1P-k2.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-C6sn8W4Z.js → unlock-BPWn2I5L-BihjIVk1.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-DPTiDKCC.js → upload-reimbursement-receipt-O2N8vcO7-BrS_KRA7.js} +1 -1
  332. package/dist/assets/{uploadAttachment-D1ybl0Fy-DXUbgDE0.js → uploadAttachment-CzgakLtr-D9IiqYxz.js} +1 -1
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-b3VtRXVk.js → uploadReceipts-CIgkuVpu-7sbogiaq.js} +1 -1
  334. package/dist/assets/{url-Cxz1BfkB.js → url-DK_QsAj3.js} +1 -1
  335. package/dist/assets/{url-DIYU8sPo.js → url-DnJ-MRbo.js} +1 -1
  336. package/dist/assets/{useDeviceId-TTbuzrLv.js → useDeviceId-D6CPIX5r.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-BftSmmiq.js → useInitialThreadRequest-D7H0jhrF.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-Cv3WvBA2.js → useLongPress-GCK2COYQ-BV6rxzXX.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-DX-ha8_c.js → usp-line-BBd1wKwW-DYAH7Au1.js} +1 -1
  340. package/dist/assets/{utils-D8l6svaX.js → utils-DXqO5lkM.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-B9lAl4_T.js → withTransactionSidePanel-BzT1kjjx.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-DQF5EBoo.js → zeni-epic-state-BDdTNPzg.js} +3 -3
  343. package/dist/assets/{zeni-icon-only-CG_yKzSn.js → zeni-icon-only-Cldmtd10.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +2 -2
  346. package/dist/assets/AccountInfoPage-CrEEthms-CShh3lti.js +0 -18
  347. package/dist/assets/BillPayApprovalRuleDetailPage-CJtb4oOG-CtgAcmuQ.js +0 -27
  348. package/dist/assets/ChargeCardPromoPage-6JwKgWli-3qEX8CR5.js +0 -222
  349. package/dist/assets/CustomerOnboardingAuthScreen-7W5EArl5.js +0 -1
  350. package/dist/assets/CustomerOnboardingContainerPage-CGFQ4G4y-UuDDkSt5.js +0 -1
  351. package/dist/assets/EntityDetailPage-CvLzsrUE-Dr8rmeD7.js +0 -18
  352. package/dist/assets/InsightsSection-D9PJ55E6-Br2S_mzj.js +0 -27
  353. package/dist/assets/MagicLinkACHDetailsPage-BC6_cyO0-BH-mUM2m.js +0 -1
  354. package/dist/assets/MagicLinkDomesticWireDetailsPage-CdG5oCPl-BJlbALp7.js +0 -1
  355. package/dist/assets/MagicLinkInternationalWireDetailsPage-C046BNUz-B5CdjKd2.js +0 -1
  356. package/dist/assets/MailingDetailsSection-DiZwQ9QV-DS2ZtXrV.js +0 -21
  357. package/dist/assets/SummaryCard-DgIPSt4y-9lOT4ZI5.js +0 -1
  358. package/dist/assets/TransactionListPage-D_dgwnFp-ChsX6wWw.js +0 -35
  359. package/dist/assets/TreasuryStatementsPage-DOzJzfTG-D2BPEanX.js +0 -58
  360. package/dist/assets/VendorACHDetailsPage-JhO6KtMC-Vnc2qc0g.js +0 -1
  361. package/dist/assets/VendorDomesticWireDetailsPage-D0RsDHxf-BA4CpK_P.js +0 -1
  362. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BTh-VP1b-r4FuxoOX.js +0 -1
  363. package/dist/assets/ZeniAccountNavBarPieces-Bv34Vsqj-DzYraOow.js +0 -33
  364. package/dist/assets/common-BxjzMhDO-DjrSaNg9.js +0 -1
  365. package/dist/assets/mapLoadingInProgressToTreeNode-COOJxneh-C62pjQWQ.js +0 -1
  366. package/dist/assets/mapSpacerToTreeNode-Ci5bdH6P-1RH2DZQ7.js +0 -1
  367. package/dist/assets/mapTimeframeBalancesToTreeNode-CCZ9A7A6-C2Dl8nFW.js +0 -1
  368. package/dist/assets/toCOABalancesWithID-B70YK7cw-Cqus0iZx.js +0 -1
@@ -1,4 +1,4 @@
1
- import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de,o as x,b as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-iSEGT9xi.js";import{a as z,b as ee}from"./sentry-DwNPvXBL.js";import{n as f}from"./mui-Bg5IRLA2.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-BqRsL6eJ-DnPOTdta.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-B70YK7cw-Cqus0iZx.js";import{V as J}from"./toChartData-CWgd8E5c-vscPIv0G.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-Bztd37V0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e31dcb80-ed0f-4a7d-a433-efc82f34bb7d",e._sentryDebugIdIdentifier="sentry-dbid-e31dcb80-ed0f-4a7d-a433-efc82f34bb7d")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
1
+ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de,o as x,b as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-bPu7mlA1.js";import{a as z,b as ee}from"./sentry-uXR4_KRo.js";import{n as f}from"./mui-CvPZa6D0.js";import{p as y,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-BLsP7rGF-Cjsgj_un.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-BWMF0py6-CojDIytn.js";import{V as J}from"./toChartData-BkubFDq8-CyY5jx0a.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-7AyWv7E-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="8058ce96-8232-4716-a116-d31a726a1938",e._sentryDebugIdIdentifier="sentry-dbid-8058ce96-8232-4716-a116-d31a726a1938")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
2
2
  display: flex;
3
3
  `,He=f.div`
4
4
  margin: ${x.sp2} ${x.sp0} ${x.sp2} ${x.sp0};
@@ -29,7 +29,7 @@ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de
29
29
  text-align: left;
30
30
  `,Je=f(R)`
31
31
  text-align: right;
32
- `,be=e=>e.map((a,o)=>t.jsxs(qe,{color:a.color,children:[t.jsxs(Xe,{children:[t.jsx(Ue,{color:a.color}),`${a.barName}:`]}),t.jsx(Je,{children:`${W(a.value)}`})]},a.barName+o)),Qe=ee.memo(e=>{const a=(({active:o,payload:n})=>{const r=[];return n?.forEach(l=>{const i=l.name;if(o===!0){const u=l.payload,s=l.color,c=i!=null&&u.record[i]!=null?u.record[i].amount:void 0;r.push({barName:S.getLocalizedStrings().chartCard.cashInCashOut[T(i)],value:c,color:s})}}),r})({...e});return a.length===0?null:t.jsx(Ke,{children:t.jsxs(Ye,{children:[be(a.slice(0,a.length-1)),a.length?t.jsx(He,{}):null,be(a.slice(-1))]})})}),Ze=(e,a,o,n,r)=>{let l=[],i=[],u=[];o!=null&&o.balances.length>0&&(l=A("cash_in","actual",o)),n!=null&&n.balances.length>0&&(i=A("cash_out","actual",n)),r!=null&&r.balances.length>0&&(u=re("net_cash_flow","actual",r));const s=b("cash_in","actual"),c=b("cash_out","actual"),C=b("net_cash_flow","actual"),h=l.length>0?s:i.length>0?c:void 0,d={};return d[s]=l,d[c]=i,d[C]=u,h!=null?J(e,a,h,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],et=f.div`
32
+ `,ye=e=>e.map((a,o)=>t.jsxs(qe,{color:a.color,children:[t.jsxs(Xe,{children:[t.jsx(Ue,{color:a.color}),`${a.barName}:`]}),t.jsx(Je,{children:`${W(a.value)}`})]},a.barName+o)),Qe=ee.memo(e=>{const a=(({active:o,payload:n})=>{const r=[];return n?.forEach(l=>{const i=l.name;if(o===!0){const u=l.payload,s=l.color,c=i!=null&&u.record[i]!=null?u.record[i].amount:void 0;r.push({barName:S.getLocalizedStrings().chartCard.cashInCashOut[T(i)],value:c,color:s})}}),r})({...e});return a.length===0?null:t.jsx(Ke,{children:t.jsxs(Ye,{children:[ye(a.slice(0,a.length-1)),a.length?t.jsx(He,{}):null,ye(a.slice(-1))]})})}),Ze=(e,a,o,n,r)=>{let l=[],i=[],u=[];o!=null&&o.balances.length>0&&(l=A("cash_in","actual",o)),n!=null&&n.balances.length>0&&(i=A("cash_out","actual",n)),r!=null&&r.balances.length>0&&(u=re("net_cash_flow","actual",r));const s=y("cash_in","actual"),c=y("cash_out","actual"),C=y("net_cash_flow","actual"),h=l.length>0?s:i.length>0?c:void 0,d={};return d[s]=l,d[c]=i,d[C]=u,h!=null?J(e,a,h,d):void 0},be=[y("cash_in","actual"),y("cash_out","actual"),y("net_cash_flow","actual")],et=f.div`
33
33
  width: ${e=>e.width}px;
34
34
  height: ${e=>e.height}px;
35
35
 
@@ -42,7 +42,7 @@ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de
42
42
  `,tt=f(ge)`
43
43
  margin-left: ${e=>q.legendLabelMarginLeft.valuePx(e.windowSize)};
44
44
  color: ${e=>e.theme.colors.primary};
45
- `;function $a({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:u}){const s=F(),c=z.useRef(!1);z.useEffect(()=>{c.current=!0},[]);const C=[s.colors.graphColor33,s.colors.graphColor36,s.colors.graphColor35],h=(y,j=s.colors.graphColor08)=>y<C.length?C[y]:j,d=Ze(e.firstMonthOfFY,ye,e.cashIn,e.cashOut,e.netCashFlow);return d==null?null:t.jsx(at,{chartData:d,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const y=[];return ye.forEach((j,_)=>{const w=i===!0&&!c.current;y.push(t.jsx(oe,{name:j,animationDuration:w?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[j]!=null&&k[j].amount!=null?k[j].amount:void 0)?.amount??0},fill:h(_)},j))}),y})(),customToolTipContent:({active:y,payload:j})=>t.jsx(Qe,{active:y,payload:j}),width:n,height:r,onCOABalancesRangeChanged:u,highlightedRange:o,isDetailPage:i===!0})}const at=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=F(),d=e.timeseries,y=te(e),j=d.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,D=p.payload.timeLabel.label;if(r==null)return;const L=ae(D,j,r.numberOfPeriods),v=L[1]===void 0?j.length-1:j.indexOf(L[1]),B={...r,thisPeriod:{startDate:d[v].startDate,endDate:d[v].endDate}};c?.(d[g],a,B)},$=s?(l-60)/N.cash_in_cash_out*(N.cash_in_cash_out-e.recordByTimeseries.length):20;return t.jsx(et,{"data-testid":Ve("dashboard-cash-in-cash-out-timeframe",a),width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(We,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,y)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},formatter:g=>t.jsx(tt,{windowSize:C,children:S.getLocalizedStrings().chartCard.cashInCashOut[T(g)]})}):null]})})})},rt=f.div`
45
+ `;function $a({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:u}){const s=F(),c=z.useRef(!1);z.useEffect(()=>{c.current=!0},[]);const C=[s.colors.graphColor33,s.colors.graphColor36,s.colors.graphColor35],h=(b,j=s.colors.graphColor08)=>b<C.length?C[b]:j,d=Ze(e.firstMonthOfFY,be,e.cashIn,e.cashOut,e.netCashFlow);return d==null?null:t.jsx(at,{chartData:d,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const b=[];return be.forEach((j,_)=>{const w=i===!0&&!c.current;b.push(t.jsx(oe,{name:j,animationDuration:w?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[j]!=null&&k[j].amount!=null?k[j].amount:void 0)?.amount??0},fill:h(_)},j))}),b})(),customToolTipContent:({active:b,payload:j})=>t.jsx(Qe,{active:b,payload:j}),width:n,height:r,onCOABalancesRangeChanged:u,highlightedRange:o,isDetailPage:i===!0})}const at=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=F(),d=e.timeseries,b=te(e),j=d.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,D=p.payload.timeLabel.label;if(r==null)return;const L=ae(D,j,r.numberOfPeriods),v=L[1]===void 0?j.length-1:j.indexOf(L[1]),B={...r,thisPeriod:{startDate:d[v].startDate,endDate:d[v].endDate}};c?.(d[g],a,B)},$=s?(l-60)/N.cash_in_cash_out*(N.cash_in_cash_out-e.recordByTimeseries.length):20;return t.jsx(et,{"data-testid":Ve("dashboard-cash-in-cash-out-timeframe",a),width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(We,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,b)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},formatter:g=>t.jsx(tt,{windowSize:C,children:S.getLocalizedStrings().chartCard.cashInCashOut[T(g)]})}):null]})})})},rt=f.div`
46
46
  display: flex;
47
47
  `,ot=f.div`
48
48
  flex: display;
@@ -57,10 +57,10 @@ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de
57
57
  display: flex;
58
58
  align-items: center;
59
59
  justify-content: space-between;
60
- `,nt=ee.memo(e=>{const a=(({active:o,payload:n})=>{const r=[];return n?.forEach(l=>{const i=l.name;if(o===!0){const u=l.payload,s=l.color,c=i!=null&&u.record[i]!=null?u.record[i].amount:void 0;r.push({barName:S.getLocalizedStrings().reportTitleById.cash_position,value:c,color:s})}}),r})(e);return a.length===0?null:t.jsx(rt,{children:t.jsx(ot,{children:a.map((o,n)=>t.jsx(lt,{color:o.color,children:`${o.barName}: ${W(o.value)}`},o.barName+n))})})}),ct=(e,a,o)=>{let n=[];o!=null&&o.balances.length>0&&(n=I("cash_position","actual",o));const r=b("cash_position","actual"),l={};return l[r]=n,n.length>0?J(e,a,r,l):void 0},st=f.div`
60
+ `,nt=ee.memo(e=>{const a=(({active:o,payload:n})=>{const r=[];return n?.forEach(l=>{const i=l.name;if(o===!0){const u=l.payload,s=l.color,c=i!=null&&u.record[i]!=null?u.record[i].amount:void 0;r.push({barName:S.getLocalizedStrings().reportTitleById.cash_position,value:c,color:s})}}),r})(e);return a.length===0?null:t.jsx(rt,{children:t.jsx(ot,{children:a.map((o,n)=>t.jsx(lt,{color:o.color,children:`${o.barName}: ${W(o.value)}`},o.barName+n))})})}),ct=(e,a,o)=>{let n=[];o!=null&&o.balances.length>0&&(n=I("cash_position","actual",o));const r=y("cash_position","actual"),l={};return l[r]=n,n.length>0?J(e,a,r,l):void 0},st=f.div`
61
61
  width: ${e=>e.width}px;
62
62
  height: ${e=>e.height}px;
63
- `,Ce=[b("cash_position","actual")];function _a({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:u}){const s=F(),c=z.useRef(!1);z.useEffect(()=>{c.current=!0},[]);const C=ct(e.firstMonthOfFY,Ce,e.cashPosition);return C==null?null:t.jsx(it,{chartData:C,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const h=[];return Ce.forEach(d=>{const y=i===!0&&!c.current;h.push(t.jsx(oe,{name:d,animationDuration:y?500:void 0,style:{cursor:"pointer"},dataKey:j=>{const _=j.record;return(_[d]!=null&&_[d].amount!=null?_[d].amount:void 0)?.amount??0},fill:s.colors.graphColor17},d))}),h})(),customToolTipContent:({active:h,payload:d})=>t.jsx(nt,{active:h,payload:d}),width:n,height:r,onCOABalancesRangeChanged:u,highlightedRange:o,isDetailPage:i===!0})}const it=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=F(),h=e.timeseries,d=te(e),y=h.map($=>$.label),j=u!==!1,_=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const p=$.activeTooltipIndex,g=k.payload.timeLabel.label;if(r==null)return;const D=ae(g,y,r.numberOfPeriods),L=D[1]===void 0?y.length-1:y.indexOf(D[1]),v={...r,thisPeriod:{startDate:h[L].startDate,endDate:h[L].endDate}};c?.(h[p],a,v)},w=s?(l-60)/N.cash_position*(N.cash_position-e.recordByTimeseries.length):20;return t.jsx(st,{width:l,height:i,children:t.jsx(Q,{children:({height:$,width:k})=>t.jsxs(We,{width:k,height:$,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?E[10]:30,margin:{top:5,right:w,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:_,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:C.colors.grey3}),t.jsx(ne,{dataKey:p=>p.timeLabel.label,type:"category",axisLine:{stroke:C.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:p=>Z("0,0.[00]a",p,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!j&&{stroke:C.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:C.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})},ut=f.div`
63
+ `,Ce=[y("cash_position","actual")];function _a({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:u}){const s=F(),c=z.useRef(!1);z.useEffect(()=>{c.current=!0},[]);const C=ct(e.firstMonthOfFY,Ce,e.cashPosition);return C==null?null:t.jsx(it,{chartData:C,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const h=[];return Ce.forEach(d=>{const b=i===!0&&!c.current;h.push(t.jsx(oe,{name:d,animationDuration:b?500:void 0,style:{cursor:"pointer"},dataKey:j=>{const _=j.record;return(_[d]!=null&&_[d].amount!=null?_[d].amount:void 0)?.amount??0},fill:s.colors.graphColor17},d))}),h})(),customToolTipContent:({active:h,payload:d})=>t.jsx(nt,{active:h,payload:d}),width:n,height:r,onCOABalancesRangeChanged:u,highlightedRange:o,isDetailPage:i===!0})}const it=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=F(),h=e.timeseries,d=te(e),b=h.map($=>$.label),j=u!==!1,_=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const p=$.activeTooltipIndex,g=k.payload.timeLabel.label;if(r==null)return;const D=ae(g,b,r.numberOfPeriods),L=D[1]===void 0?b.length-1:b.indexOf(D[1]),v={...r,thisPeriod:{startDate:h[L].startDate,endDate:h[L].endDate}};c?.(h[p],a,v)},w=s?(l-60)/N.cash_position*(N.cash_position-e.recordByTimeseries.length):20;return t.jsx(st,{width:l,height:i,children:t.jsx(Q,{children:({height:$,width:k})=>t.jsxs(We,{width:k,height:$,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?E[10]:30,margin:{top:5,right:w,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:_,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:C.colors.grey3}),t.jsx(ne,{dataKey:p=>p.timeLabel.label,type:"category",axisLine:{stroke:C.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:p=>Z("0,0.[00]a",p,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!j&&{stroke:C.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:C.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})},ut=f.div`
64
64
  display: flex;
65
65
  `,ht=f.div`
66
66
  display: flex;
@@ -115,7 +115,7 @@ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de
115
115
  `,ft=f(R)`
116
116
  text-align: left;
117
117
  width: 120px;
118
- `,bt=f.div`
118
+ `,yt=f.div`
119
119
  display: flex;
120
120
  flex-direction: column;
121
121
  text-align: right;
@@ -128,7 +128,7 @@ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de
128
128
  `,ke=f(K)`
129
129
  display: flex;
130
130
  flex-direction: column;
131
- `,ve=f(H)``,yt=({active:e,payload:a,mode:o})=>{const n=[],r={barName:S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:m.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};b("income","actual");const u=b("cogs","actual"),s=b("expenses","actual"),c=b("net_burn_or_income","actual");return a?.forEach(C=>{const h=C.name;if(e===!0){const d=C.payload,y=C.color,j=h!=null&&d.record[h]!=null?d.record[h].amount:void 0;let _;if(h.includes("forecast")!==!0)switch(o==="forecast_mode"&&(_=d.record[h]!=null?((w,$)=>{const k=b(T(w),"forecast");if($.record[k]==null)return;const p=$.record[w].amount,g=$.record[k].amount,D=Math.floor(100*(p.amount-g.amount)/100);return{value:g,change:{...p,amount:D},percent:g.amount!==0?Math.floor((p.amount-g.amount)/g.amount*100)/100:void 0,forecastPercent:$.record[k].percentValue}})(h,d):void 0),h){case u:case s:j!=null&&(l.currencyCode===""?l={...j}:l.amount=l.amount+j.amount),_!=null&&(i.currencyCode===""?i={..._.value}:i.amount=i.amount+_.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(h)],actual:j,forecast:_,color:y});break;case c:{const w=j!=null&&j.amount>=0?S.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:S.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:w,actual:j,color:y,percent:d.record[h]?.percentValue,forecast:_});break}default:n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(h)],actual:j,color:y,forecast:_})}}}),r.actual=l,r.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor(100*(l.amount-i.amount)/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,r),n},we=e=>e.map((a,o)=>t.jsxs(Ne,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(xt,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsxs(bt,{children:[t.jsx(je,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(je,{children:V("0,0.0%",a.percent)}):null]})]},a.barName+o)),$e=e=>e.map((a,o)=>t.jsxs(Ne,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ft,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsx(H,{children:t.jsxs(ke,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ve,{children:a.percent!=null?V("0,0.0%",a.percent):null})]})}),t.jsx(H,{children:t.jsxs(ke,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ve,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?V("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(H,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(H,{children:"-"}),a.forecast!=null?t.jsx(H,{isChange:!0,children:V("0,0.0%",a.forecast.percent)}):t.jsx(H,{children:"-"})]},a.barName+o)),Ct=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},jt=({barLabelsWithValues:e})=>t.jsxs(ht,{children:[t.jsxs(dt,{children:[t.jsx(gt,{}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ie,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",Ct(e)]}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(mt,{children:[$e(e.slice(0,e.length-2)),e.length?t.jsx(Te,{}):null,$e(e.slice(-2))]})]}),kt=({barLabelsWithValues:e})=>t.jsx(ut,{children:t.jsxs(pt,{children:[we(e.slice(0,e.length-2)),e.length?t.jsx(Te,{}):null,we(e.slice(-2))]})}),vt=ee.memo(e=>{const a=yt({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(jt,{barLabelsWithValues:a}):t.jsx(kt,{barLabelsWithValues:a})})}),wt=(e,a,o,n,r,l,i)=>{let u=[],s=[],c=[],C=[];n!=null&&n.balances.length>0&&(u=A("income","actual",n)),r!=null&&r.balances.length>0&&(s=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(c=I("expenses","actual",l)),i!=null&&i.balances.length>0&&(C=re("net_burn_or_income","actual",i));const h=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),j=b("net_burn_or_income","actual"),_=u.length>0?h:s.length>0?d:c.length>0?y:void 0,w={};return w[h]=u,w[d]=s,w[y]=c,w[j]=C,o==="forecast_mode"&&Object.assign(w,$t(n,r,l,i)),_!=null?J(e,a,_,w):void 0},$t=(e,a,o,n)=>{let r=[],l=[],i=[],u=[];e!=null&&e.balances.length>0&&(r=A("income","forecast",e)),a!=null&&a.balances.length>0&&(l=A("cogs","forecast",a)),o!=null&&o.balances.length>0&&(i=I("expenses","forecast",o)),n!=null&&n.balances.length>0&&(u=re("net_burn_or_income","forecast",n));const s=b("income","forecast"),c=b("cogs","forecast"),C=b("expenses","forecast"),h=b("net_burn_or_income","forecast"),d={};return d[s]=r,d[c]=l,d[C]=i,d[h]=u,d},_t=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Lt=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual"),b("income","forecast"),b("cogs","forecast"),b("expenses","forecast"),b("net_burn_or_income","forecast")],Dt=f.div`
131
+ `,ve=f(H)``,bt=({active:e,payload:a,mode:o})=>{const n=[],r={barName:S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:m.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};y("income","actual");const u=y("cogs","actual"),s=y("expenses","actual"),c=y("net_burn_or_income","actual");return a?.forEach(C=>{const h=C.name;if(e===!0){const d=C.payload,b=C.color,j=h!=null&&d.record[h]!=null?d.record[h].amount:void 0;let _;if(h.includes("forecast")!==!0)switch(o==="forecast_mode"&&(_=d.record[h]!=null?((w,$)=>{const k=y(T(w),"forecast");if($.record[k]==null)return;const p=$.record[w].amount,g=$.record[k].amount,D=Math.floor(100*(p.amount-g.amount)/100);return{value:g,change:{...p,amount:D},percent:g.amount!==0?Math.floor((p.amount-g.amount)/g.amount*100)/100:void 0,forecastPercent:$.record[k].percentValue}})(h,d):void 0),h){case u:case s:j!=null&&(l.currencyCode===""?l={...j}:l.amount=l.amount+j.amount),_!=null&&(i.currencyCode===""?i={..._.value}:i.amount=i.amount+_.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(h)],actual:j,forecast:_,color:b});break;case c:{const w=j!=null&&j.amount>=0?S.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:S.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:w,actual:j,color:b,percent:d.record[h]?.percentValue,forecast:_});break}default:n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(h)],actual:j,color:b,forecast:_})}}}),r.actual=l,r.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor(100*(l.amount-i.amount)/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,r),n},we=e=>e.map((a,o)=>t.jsxs(Ne,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(xt,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsxs(yt,{children:[t.jsx(je,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(je,{children:V("0,0.0%",a.percent)}):null]})]},a.barName+o)),$e=e=>e.map((a,o)=>t.jsxs(Ne,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ft,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsx(H,{children:t.jsxs(ke,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ve,{children:a.percent!=null?V("0,0.0%",a.percent):null})]})}),t.jsx(H,{children:t.jsxs(ke,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ve,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?V("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(H,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(H,{children:"-"}),a.forecast!=null?t.jsx(H,{isChange:!0,children:V("0,0.0%",a.forecast.percent)}):t.jsx(H,{children:"-"})]},a.barName+o)),Ct=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},jt=({barLabelsWithValues:e})=>t.jsxs(ht,{children:[t.jsxs(dt,{children:[t.jsx(gt,{}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ie,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",Ct(e)]}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(mt,{children:[$e(e.slice(0,e.length-2)),e.length?t.jsx(Te,{}):null,$e(e.slice(-2))]})]}),kt=({barLabelsWithValues:e})=>t.jsx(ut,{children:t.jsxs(pt,{children:[we(e.slice(0,e.length-2)),e.length?t.jsx(Te,{}):null,we(e.slice(-2))]})}),vt=ee.memo(e=>{const a=bt({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(jt,{barLabelsWithValues:a}):t.jsx(kt,{barLabelsWithValues:a})})}),wt=(e,a,o,n,r,l,i)=>{let u=[],s=[],c=[],C=[];n!=null&&n.balances.length>0&&(u=A("income","actual",n)),r!=null&&r.balances.length>0&&(s=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(c=I("expenses","actual",l)),i!=null&&i.balances.length>0&&(C=re("net_burn_or_income","actual",i));const h=y("income","actual"),d=y("cogs","actual"),b=y("expenses","actual"),j=y("net_burn_or_income","actual"),_=u.length>0?h:s.length>0?d:c.length>0?b:void 0,w={};return w[h]=u,w[d]=s,w[b]=c,w[j]=C,o==="forecast_mode"&&Object.assign(w,$t(n,r,l,i)),_!=null?J(e,a,_,w):void 0},$t=(e,a,o,n)=>{let r=[],l=[],i=[],u=[];e!=null&&e.balances.length>0&&(r=A("income","forecast",e)),a!=null&&a.balances.length>0&&(l=A("cogs","forecast",a)),o!=null&&o.balances.length>0&&(i=I("expenses","forecast",o)),n!=null&&n.balances.length>0&&(u=re("net_burn_or_income","forecast",n));const s=y("income","forecast"),c=y("cogs","forecast"),C=y("expenses","forecast"),h=y("net_burn_or_income","forecast"),d={};return d[s]=r,d[c]=l,d[C]=i,d[h]=u,d},_t=[y("income","actual"),y("cogs","actual"),y("expenses","actual"),y("net_burn_or_income","actual")],Lt=[y("income","actual"),y("cogs","actual"),y("expenses","actual"),y("net_burn_or_income","actual"),y("income","forecast"),y("cogs","forecast"),y("expenses","forecast"),y("net_burn_or_income","forecast")],Dt=f.div`
132
132
  width: ${e=>e.width}px;
133
133
  height: ${e=>e.height}px;
134
134
 
@@ -141,7 +141,7 @@ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de
141
141
  `,St=f(ge)`
142
142
  margin-left: ${e=>q.legendLabelMarginLeft.valuePx(e.windowSize)};
143
143
  color: ${e=>e.theme.colors.primary};
144
- `;function La({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=F(),C=z.useRef(!1);z.useEffect(()=>{C.current=!0},[]);const h=[c.colors.graphColor36,c.colors.graphColor06,c.colors.graphColor31,c.colors.graphColor12],d=[c.colors.graphColor04,c.colors.graphColor10,c.colors.graphColor32,c.colors.graphColor13,c.colors.graphColor04Dark,c.colors.graphColor10Dark,c.colors.graphColor32Dark,c.colors.graphColor13Dark],y=u==="forecast_mode"?d:h,j=u==="forecast_mode"?Lt:_t,_=(p,g=c.colors.graphColor04)=>p<y.length?y[p]:g,w=(e.reportId,wt(e.firstMonthOfFY,j,u,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),$=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:4,stroke:L,strokeWidth:2,fill:v})},k=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:5,stroke:v,strokeWidth:2,fill:L})};return w==null?null:t.jsx(Bt,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const p=[];return j.forEach((g,D)=>{const L=i===!0&&!C.current;g.endsWith("_forecast")?p.push(((v,B)=>t.jsx(pe,{name:v,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:P=>{const O=P.record;return(O[v]!=null&&O[v].amount!=null?O[v].amount:void 0)?.amount},dot:t.jsx($,{}),strokeWidth:1.5,stroke:_(B),strokeDasharray:"3 3",activeDot:t.jsx(k,{})},v))(g,D)):p.push(((v,B,P)=>t.jsx(oe,{name:v,animationDuration:P?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:O=>{const G=O.record;return(G[v]!=null&&G[v].amount!=null?G[v].amount:void 0)?.amount??0},fill:_(B)},v))(g,D,L))}),p})(),customToolTipContent:({active:p,payload:g})=>t.jsx(vt,{active:p,payload:g,mode:u}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const Bt=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=F(),d=te(e),y=e.timeseries,j=y.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,D=p.payload.timeLabel.label;if(r==null)return;const L=ae(D,j,r.numberOfPeriods),v=L[1]===void 0?j.length-1:j.indexOf(L[1]),B={...r,thisPeriod:{startDate:y[v].startDate,endDate:y[v].endDate}};c?.(y[g],a,B)},$=s?(l-60)/N.net_burn_or_income*(N.net_burn_or_income-e.recordByTimeseries.length):20;return t.jsx(Dt,{width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(me,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeWidth:(p-60)/N.net_burn_or_income,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},iconSize:E[3],formatter:g=>t.jsx(St,{windowSize:C,children:g.endsWith("_forecast")===!0?S.getLocalizedStrings().chartCard.netBurnOrIncome[g]:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(g)]})}):null]})})})},zt=f.div`
144
+ `;function La({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=F(),C=z.useRef(!1);z.useEffect(()=>{C.current=!0},[]);const h=[c.colors.graphColor36,c.colors.graphColor06,c.colors.graphColor31,c.colors.graphColor12],d=[c.colors.graphColor04,c.colors.graphColor10,c.colors.graphColor32,c.colors.graphColor13,c.colors.graphColor04Dark,c.colors.graphColor10Dark,c.colors.graphColor32Dark,c.colors.graphColor13Dark],b=u==="forecast_mode"?d:h,j=u==="forecast_mode"?Lt:_t,_=(p,g=c.colors.graphColor04)=>p<b.length?b[p]:g,w=(e.reportId,wt(e.firstMonthOfFY,j,u,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),$=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:4,stroke:L,strokeWidth:2,fill:v})},k=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:5,stroke:v,strokeWidth:2,fill:L})};return w==null?null:t.jsx(Bt,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const p=[];return j.forEach((g,D)=>{const L=i===!0&&!C.current;g.endsWith("_forecast")?p.push(((v,B)=>t.jsx(pe,{name:v,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:P=>{const O=P.record;return(O[v]!=null&&O[v].amount!=null?O[v].amount:void 0)?.amount},dot:t.jsx($,{}),strokeWidth:1.5,stroke:_(B),strokeDasharray:"3 3",activeDot:t.jsx(k,{})},v))(g,D)):p.push(((v,B,P)=>t.jsx(oe,{name:v,animationDuration:P?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:O=>{const G=O.record;return(G[v]!=null&&G[v].amount!=null?G[v].amount:void 0)?.amount??0},fill:_(B)},v))(g,D,L))}),p})(),customToolTipContent:({active:p,payload:g})=>t.jsx(vt,{active:p,payload:g,mode:u}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const Bt=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=F(),d=te(e),b=e.timeseries,j=b.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,D=p.payload.timeLabel.label;if(r==null)return;const L=ae(D,j,r.numberOfPeriods),v=L[1]===void 0?j.length-1:j.indexOf(L[1]),B={...r,thisPeriod:{startDate:b[v].startDate,endDate:b[v].endDate}};c?.(b[g],a,B)},$=s?(l-60)/N.net_burn_or_income*(N.net_burn_or_income-e.recordByTimeseries.length):20;return t.jsx(Dt,{width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(me,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeWidth:(p-60)/N.net_burn_or_income,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},iconSize:E[3],formatter:g=>t.jsx(St,{windowSize:C,children:g.endsWith("_forecast")===!0?S.getLocalizedStrings().chartCard.netBurnOrIncome[g]:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(g)]})}):null]})})})},zt=f.div`
145
145
  display: flex;
146
146
  `,Pt=f.div`
147
147
  flex: display;
@@ -192,10 +192,10 @@ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de
192
192
  `,U=f(K)`
193
193
  text-align: right;
194
194
  flex: 1;
195
- `,Gt=(e,a)=>{const o=b(T(e),"forecast");if(a.record[o]==null)return;const n=a.record[e].amount,r=a.record[o].amount;return{value:r,change:{...n,amount:r!=null?Math.floor(100*(n.amount-r.amount)/100):n.amount},percent:r!=null&&r.amount!==0?Math.floor((n.amount-r.amount)/r.amount*100)/100:void 0}},Le=e=>t.jsxs(Ot,{color:e.color,children:[t.jsx(Et,{children:`${e.barName}:`}),t.jsx(U,{children:e.actual!=null?`${W(e.actual)}`:"-"}),t.jsx(U,{children:e.forecast!=null?`${W(e.forecast.value)}`:"-"}),e.forecast!=null?t.jsx(U,{isChange:!0,children:`${W(e.forecast.change)}`}):t.jsx(U,{children:"-"}),e.forecast!=null?t.jsx(U,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):t.jsx(U,{children:"-"})]}),It=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},Mt=({barLabelsWithValues:e})=>t.jsx(zt,{children:t.jsxs(Pt,{children:[t.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${W(e[0].actual)}`}),t.jsx(Ge,{}),t.jsx(_e,{children:`${S.getLocalizedStrings().chartCard.total}: ${W(e[1].actual)}`})]})}),At=({barLabelsWithValues:e})=>t.jsxs(Wt,{children:[t.jsxs(Tt,{children:[t.jsx(Rt,{}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ue,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",It(e)]}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(Nt,{children:[Le(e[0]),t.jsx(Ge,{}),Le(e[1])]})]}),Ft=ee.memo(e=>{const a=(({active:o,payload:n,barName:r})=>{const l=[];if(n!=null&&o===!0){const i=n.filter(C=>C.name==r)[0],u=i.payload,s=i.color,c=r!=null&&u.record[r]!=null?u.record[r].amount:void 0;if(!r?.endsWith("_forecast")){let C;if(r.includes("forecast")!==!0){C=u.record[r]!=null?Gt(r,u):void 0;const h={amount:0,currencyCode:"",currencySymbol:""},d={amount:0,currencyCode:"",currencySymbol:""};let y;for(y in u.record){const w=u.record[y].amount;y.endsWith("_actual")?(h.amount+=u.record[y].amount?.amount??0,h.currencyCode=w!=null?w.currencyCode:h.currencyCode,h.currencySymbol=w!=null?w.currencySymbol:h.currencySymbol):y.endsWith("_forecast")&&(d.amount+=u.record[y].amount?.amount??0,d.currencyCode=w!=null?w.currencyCode:d.currencyCode,d.currencySymbol=w!=null?w.currencySymbol:d.currencySymbol)}const j=Math.floor(100*(h?.amount-d?.amount)/100),_={value:d,change:{...h,amount:j},percent:d.amount!==0?Math.floor((h.amount-d.amount)/d.amount*100)/100:0};l.push({barName:T(r),actual:c,forecast:C,color:s}),l.push({barName:S.getLocalizedStrings().chartCard.total,actual:h,forecast:_,color:m.neutralGrey1Light})}}}return l})({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(At,{barLabelsWithValues:a}):t.jsx(Mt,{barLabelsWithValues:a})})}),Vt=(e,a)=>{const o=[],n={};let r;return a!=null&&a.classes.length!=0&&a.classes.forEach(l=>{const i=I(l.class.className,"actual",l.childrenBalancesTotal),u=b(l.class.className,"actual");n[u]=i,o.push(u),r==null&&i.length>0&&(r=b(l.class.className,"actual"))}),r!=null?J(e,o,r,n):void 0},De=[m.graphColor34,m.graphColor05,m.graphColor08,m.graphColor11,m.graphColor13,m.graphColor19,m.graphColor29,m.graphColor28,m.graphColor20,m.graphColor21,m.graphColor22,m.graphColor14,m.graphColor35,m.graphColor31,m.graphColor33,m.graphColor32,m.graphColor36,m.graphColor02,m.graphColor06,m.graphColor04,m.graphColor10,m.graphColor12,m.graphColor15,m.graphColor18,m.graphColor17,m.graphColor07,m.graphColor34Dark,m.graphColor05Dark,m.graphColor08Dark,m.graphColor11Dark,m.graphColor13Dark,m.graphColor19Dark,m.graphColor29Dark,m.graphColor28Dark,m.graphColor20Dark,m.graphColor21Dark,m.graphColor22Dark,m.graphColor14Dark,m.graphColor35Dark,m.graphColor31Dark,m.graphColor33Dark,m.graphColor32Dark,m.graphColor36Dark,m.graphColor02Dark,m.graphColor06Dark,m.graphColor04Dark,m.graphColor10Dark,m.graphColor12Dark,m.graphColor15Dark,m.graphColor18Dark,m.graphColor17Dark,m.graphColor07Dark];class Y{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=m.graphColor34,this._barColors=De.slice(),this._barColorsKeyWise=new Map}static#e=new Y;getBarColor(a){const o=Y.instance();return o._barColorsKeyWise.has(a)||(o._barColors.length===0&&(o._barColors=De.slice()),o._barColorsKeyWise.set(a,o._barColors.shift()??o._defaultColor)),o._barColorsKeyWise.get(a)}shouldUpdate(a){const o=Y.instance(),n=Array.from(o._barColorsKeyWise.keys()).sort();return!Fe(n,a)}static init(){return this.#e=new Y,this.#e}static instance(){return this.#e}}const Kt=Y.instance(),Ht=(e,a,o)=>{const n=[],r={};let l,i=!1;if(o!=null&&o.accountGroups.length!=0?o.accountGroups.forEach(u=>{const s=I(u.accountGroupName,"actual",u),c=b(u.accountGroupName,"actual");r[c]=s,n.push(c),l==null&&s.length>0&&(l=b(u.accountGroupName,"actual"))}):o!=null&&o.accounts.length!=0&&(i=!0,o.accounts.forEach(u=>{const s=I(u.account.accountName,"actual",u.account.balancesInTimeframe),c=b(u.account.accountName,"actual");r[c]=s,n.push(c),l==null&&s.length>0&&(l=b(u.account.accountName,"actual"))})),o!=null&&o.accountGroups.length===0&&o.accounts.length===0){const u=S.getLocalizedStrings().chartCard.total,s=I(u,"actual",o);if(s.length!==0){const c=b(u,"actual");r[c]=s,l=c,n.push(c)}}return a==="forecast_mode"&&Object.assign(r,Yt(n,o)),l!=null?J(e,n,l,r,i):void 0},Yt=(e,a)=>{const o={};let n;if(a!=null&&a.accountGroups.length!=0?a.accountGroups.forEach(r=>{const l=I(r.accountGroupName,"forecast",r),i=b(r.accountGroupName,"forecast");o[i]=l,e.push(i),n==null&&l.length>0&&(n=b(r.accountGroupName,"forecast"))}):a!=null&&a.accounts.length!=0&&a.accounts.forEach(r=>{const l=I(r.account.accountName,"forecast",r.account.balancesInTimeframe),i=b(r.account.accountName,"forecast");o[i]=l,e.push(i),n==null&&l.length>0&&(n=b(r.account.accountName,"forecast"))}),a!=null&&a.accountGroups.length===0&&a.accounts.length===0){const r=S.getLocalizedStrings().chartCard.total,l=I(r,"forecast",a);if(l.length!==0){const i=b(r,"forecast");o[i]=l,n=i,e.push(i)}}return o},qt=f.div`
195
+ `,Gt=(e,a)=>{const o=y(T(e),"forecast");if(a.record[o]==null)return;const n=a.record[e].amount,r=a.record[o].amount;return{value:r,change:{...n,amount:r!=null?Math.floor(100*(n.amount-r.amount)/100):n.amount},percent:r!=null&&r.amount!==0?Math.floor((n.amount-r.amount)/r.amount*100)/100:void 0}},Le=e=>t.jsxs(Ot,{color:e.color,children:[t.jsx(Et,{children:`${e.barName}:`}),t.jsx(U,{children:e.actual!=null?`${W(e.actual)}`:"-"}),t.jsx(U,{children:e.forecast!=null?`${W(e.forecast.value)}`:"-"}),e.forecast!=null?t.jsx(U,{isChange:!0,children:`${W(e.forecast.change)}`}):t.jsx(U,{children:"-"}),e.forecast!=null?t.jsx(U,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):t.jsx(U,{children:"-"})]}),It=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},Mt=({barLabelsWithValues:e})=>t.jsx(zt,{children:t.jsxs(Pt,{children:[t.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${W(e[0].actual)}`}),t.jsx(Ge,{}),t.jsx(_e,{children:`${S.getLocalizedStrings().chartCard.total}: ${W(e[1].actual)}`})]})}),At=({barLabelsWithValues:e})=>t.jsxs(Wt,{children:[t.jsxs(Tt,{children:[t.jsx(Rt,{}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ue,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",It(e)]}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(Nt,{children:[Le(e[0]),t.jsx(Ge,{}),Le(e[1])]})]}),Ft=ee.memo(e=>{const a=(({active:o,payload:n,barName:r})=>{const l=[];if(n!=null&&o===!0){const i=n.filter(C=>C.name==r)[0],u=i.payload,s=i.color,c=r!=null&&u.record[r]!=null?u.record[r].amount:void 0;if(!r?.endsWith("_forecast")){let C;if(r.includes("forecast")!==!0){C=u.record[r]!=null?Gt(r,u):void 0;const h={amount:0,currencyCode:"",currencySymbol:""},d={amount:0,currencyCode:"",currencySymbol:""};let b;for(b in u.record){const w=u.record[b].amount;b.endsWith("_actual")?(h.amount+=u.record[b].amount?.amount??0,h.currencyCode=w!=null?w.currencyCode:h.currencyCode,h.currencySymbol=w!=null?w.currencySymbol:h.currencySymbol):b.endsWith("_forecast")&&(d.amount+=u.record[b].amount?.amount??0,d.currencyCode=w!=null?w.currencyCode:d.currencyCode,d.currencySymbol=w!=null?w.currencySymbol:d.currencySymbol)}const j=Math.floor(100*(h?.amount-d?.amount)/100),_={value:d,change:{...h,amount:j},percent:d.amount!==0?Math.floor((h.amount-d.amount)/d.amount*100)/100:0};l.push({barName:T(r),actual:c,forecast:C,color:s}),l.push({barName:S.getLocalizedStrings().chartCard.total,actual:h,forecast:_,color:m.neutralGrey1Light})}}}return l})({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(At,{barLabelsWithValues:a}):t.jsx(Mt,{barLabelsWithValues:a})})}),Vt=(e,a)=>{const o=[],n={};let r;return a!=null&&a.classes.length!=0&&a.classes.forEach(l=>{const i=I(l.class.className,"actual",l.childrenBalancesTotal),u=y(l.class.className,"actual");n[u]=i,o.push(u),r==null&&i.length>0&&(r=y(l.class.className,"actual"))}),r!=null?J(e,o,r,n):void 0},De=[m.graphColor34,m.graphColor05,m.graphColor08,m.graphColor11,m.graphColor13,m.graphColor19,m.graphColor29,m.graphColor28,m.graphColor20,m.graphColor21,m.graphColor22,m.graphColor14,m.graphColor35,m.graphColor31,m.graphColor33,m.graphColor32,m.graphColor36,m.graphColor02,m.graphColor06,m.graphColor04,m.graphColor10,m.graphColor12,m.graphColor15,m.graphColor18,m.graphColor17,m.graphColor07,m.graphColor34Dark,m.graphColor05Dark,m.graphColor08Dark,m.graphColor11Dark,m.graphColor13Dark,m.graphColor19Dark,m.graphColor29Dark,m.graphColor28Dark,m.graphColor20Dark,m.graphColor21Dark,m.graphColor22Dark,m.graphColor14Dark,m.graphColor35Dark,m.graphColor31Dark,m.graphColor33Dark,m.graphColor32Dark,m.graphColor36Dark,m.graphColor02Dark,m.graphColor06Dark,m.graphColor04Dark,m.graphColor10Dark,m.graphColor12Dark,m.graphColor15Dark,m.graphColor18Dark,m.graphColor17Dark,m.graphColor07Dark];class Y{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=m.graphColor34,this._barColors=De.slice(),this._barColorsKeyWise=new Map}static#e=new Y;getBarColor(a){const o=Y.instance();return o._barColorsKeyWise.has(a)||(o._barColors.length===0&&(o._barColors=De.slice()),o._barColorsKeyWise.set(a,o._barColors.shift()??o._defaultColor)),o._barColorsKeyWise.get(a)}shouldUpdate(a){const o=Y.instance(),n=Array.from(o._barColorsKeyWise.keys()).sort();return!Fe(n,a)}static init(){return this.#e=new Y,this.#e}static instance(){return this.#e}}const Kt=Y.instance(),Ht=(e,a,o)=>{const n=[],r={};let l,i=!1;if(o!=null&&o.accountGroups.length!=0?o.accountGroups.forEach(u=>{const s=I(u.accountGroupName,"actual",u),c=y(u.accountGroupName,"actual");r[c]=s,n.push(c),l==null&&s.length>0&&(l=y(u.accountGroupName,"actual"))}):o!=null&&o.accounts.length!=0&&(i=!0,o.accounts.forEach(u=>{const s=I(u.account.accountName,"actual",u.account.balancesInTimeframe),c=y(u.account.accountName,"actual");r[c]=s,n.push(c),l==null&&s.length>0&&(l=y(u.account.accountName,"actual"))})),o!=null&&o.accountGroups.length===0&&o.accounts.length===0){const u=S.getLocalizedStrings().chartCard.total,s=I(u,"actual",o);if(s.length!==0){const c=y(u,"actual");r[c]=s,l=c,n.push(c)}}return a==="forecast_mode"&&Object.assign(r,Yt(n,o)),l!=null?J(e,n,l,r,i):void 0},Yt=(e,a)=>{const o={};let n;if(a!=null&&a.accountGroups.length!=0?a.accountGroups.forEach(r=>{const l=I(r.accountGroupName,"forecast",r),i=y(r.accountGroupName,"forecast");o[i]=l,e.push(i),n==null&&l.length>0&&(n=y(r.accountGroupName,"forecast"))}):a!=null&&a.accounts.length!=0&&a.accounts.forEach(r=>{const l=I(r.account.accountName,"forecast",r.account.balancesInTimeframe),i=y(r.account.accountName,"forecast");o[i]=l,e.push(i),n==null&&l.length>0&&(n=y(r.account.accountName,"forecast"))}),a!=null&&a.accountGroups.length===0&&a.accounts.length===0){const r=S.getLocalizedStrings().chartCard.total,l=I(r,"forecast",a);if(l.length!==0){const i=y(r,"forecast");o[i]=l,n=i,e.push(i)}}return o},qt=f.div`
196
196
  width: ${e=>e.width}px;
197
197
  height: ${e=>e.height}px;
198
- `,Ut=e=>{const{cx:a,cy:o,fill:n,stroke:r,value:l}=e;return l==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:a,cy:o,r:4,stroke:n,strokeWidth:2,fill:r})},Xt=e=>{const{cx:a,cy:o,fill:n,stroke:r,value:l}=e;return l==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:a,cy:o,r:5,stroke:r,strokeWidth:2,fill:n})};function Da({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=z.useRef(!1),[C,h]=z.useState(Kt),[d,y]=z.useState(void 0),j=F(),_=z.useRef([]);z.useEffect(()=>{c.current=!0},[]),z.useEffect(()=>{C.shouldUpdate(_.current)===!0&&h(Y.init())},[]),z.useEffect(()=>{let p=[];if(e.reportId==="operating_expenses"){const g=e.sections.expenses;g.accountGroups.length===0&&g.accounts.length===0?p.push(S.getLocalizedStrings().chartCard.total):p=g.accountGroups.length!=0?g.accountGroups.map(D=>D.accountGroupName).sort():g.accounts.map(D=>D.account).map(D=>D.accountName).sort()}else p=e.sections.expenses.classes.map(g=>g.class.className).sort();_.current=p},[e,C]);const w=z.useMemo(()=>e.reportId==="operating_expenses"?Ht(e.firstMonthOfFY,u,e.sections.expenses):Vt(e.firstMonthOfFY,e.sections.expenses),[e,u]),$=z.useCallback(()=>{const p=[];return w?.orderedKeys.forEach(g=>{const D=!c.current;g.endsWith("_forecast")?p.push((L=>t.jsx(pe,{name:L,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:t.jsx(Ut,{}),activeDot:t.jsx(Xt,{}),dataKey:v=>{const B=v.record;let P,O;for(O in B)if(O.endsWith("_forecast")){const G=B[O].amount;G!=null&&(P==null?P={...G}:P.amount+=G.amount)}return P?.amount},stroke:j.colors.grey1,strokeDasharray:"3 3",strokeWidth:1.5},L))(g)):p.push(((L,v)=>t.jsx(oe,{name:L,animationDuration:v?500:void 0,style:{cursor:"pointer"},dataKey:B=>{const P=B.record;return(P[L]!=null&&P[L].amount!=null?P[L].amount:void 0)?.amount??0},stackId:"a",fill:C.getBarColor(T(L)),onMouseEnter:()=>{d!==L&&y(L)},onMouseLeave:()=>{d!=null&&y(void 0)}},L))(g,D))}),p},[w]),k=({active:p,payload:g})=>g?.find(D=>D.name===d)!=null&&d!=null&&p===!0?t.jsx(Ft,{active:p,payload:g,mode:u,barName:d}):null;return w==null?null:t.jsx(Jt,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:$(),customToolTipContent:t.jsx(k,{}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const Jt=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=F(),h=te(e),d=e.timeseries,y=d.map($=>$.label),j=u!==!1,_=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const p=$.activeTooltipIndex,g=k.payload.timeLabel.label;if(r==null)return;const D=ae(g,y,r.numberOfPeriods),L=D[1]===void 0?y.length-1:y.indexOf(D[1]),v={...r,thisPeriod:{startDate:d[L].startDate,endDate:d[L].endDate}};c?.(d[p],a,v)},w=s?(l-60)/N.operating_expenses*(N.operating_expenses-e.recordByTimeseries.length):20;return t.jsx(qt,{width:l,height:i,children:t.jsx(Q,{children:({height:$,width:k})=>t.jsxs(me,{width:k,height:$,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?E[10]:30,margin:{top:5,right:w,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:_,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:C.colors.grey3}),t.jsx(ne,{dataKey:p=>p.timeLabel.label,type:"category",axisLine:{stroke:C.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:p=>Z("0,0.[00]a",p,h)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!j&&{stroke:C.colors.background,strokeWidth:(k-60)/N.operating_expenses,fill:C.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})},Qt=f.div`
198
+ `,Ut=e=>{const{cx:a,cy:o,fill:n,stroke:r,value:l}=e;return l==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:a,cy:o,r:4,stroke:n,strokeWidth:2,fill:r})},Xt=e=>{const{cx:a,cy:o,fill:n,stroke:r,value:l}=e;return l==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:a,cy:o,r:5,stroke:r,strokeWidth:2,fill:n})};function Da({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=z.useRef(!1),[C,h]=z.useState(Kt),[d,b]=z.useState(void 0),j=F(),_=z.useRef([]);z.useEffect(()=>{c.current=!0},[]),z.useEffect(()=>{C.shouldUpdate(_.current)===!0&&h(Y.init())},[]),z.useEffect(()=>{let p=[];if(e.reportId==="operating_expenses"){const g=e.sections.expenses;g.accountGroups.length===0&&g.accounts.length===0?p.push(S.getLocalizedStrings().chartCard.total):p=g.accountGroups.length!=0?g.accountGroups.map(D=>D.accountGroupName).sort():g.accounts.map(D=>D.account).map(D=>D.accountName).sort()}else p=e.sections.expenses.classes.map(g=>g.class.className).sort();_.current=p},[e,C]);const w=z.useMemo(()=>e.reportId==="operating_expenses"?Ht(e.firstMonthOfFY,u,e.sections.expenses):Vt(e.firstMonthOfFY,e.sections.expenses),[e,u]),$=z.useCallback(()=>{const p=[];return w?.orderedKeys.forEach(g=>{const D=!c.current;g.endsWith("_forecast")?p.push((L=>t.jsx(pe,{name:L,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:t.jsx(Ut,{}),activeDot:t.jsx(Xt,{}),dataKey:v=>{const B=v.record;let P,O;for(O in B)if(O.endsWith("_forecast")){const G=B[O].amount;G!=null&&(P==null?P={...G}:P.amount+=G.amount)}return P?.amount},stroke:j.colors.grey1,strokeDasharray:"3 3",strokeWidth:1.5},L))(g)):p.push(((L,v)=>t.jsx(oe,{name:L,animationDuration:v?500:void 0,style:{cursor:"pointer"},dataKey:B=>{const P=B.record;return(P[L]!=null&&P[L].amount!=null?P[L].amount:void 0)?.amount??0},stackId:"a",fill:C.getBarColor(T(L)),onMouseEnter:()=>{d!==L&&b(L)},onMouseLeave:()=>{d!=null&&b(void 0)}},L))(g,D))}),p},[w]),k=({active:p,payload:g})=>g?.find(D=>D.name===d)!=null&&d!=null&&p===!0?t.jsx(Ft,{active:p,payload:g,mode:u,barName:d}):null;return w==null?null:t.jsx(Jt,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:$(),customToolTipContent:t.jsx(k,{}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const Jt=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=F(),h=te(e),d=e.timeseries,b=d.map($=>$.label),j=u!==!1,_=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const p=$.activeTooltipIndex,g=k.payload.timeLabel.label;if(r==null)return;const D=ae(g,b,r.numberOfPeriods),L=D[1]===void 0?b.length-1:b.indexOf(D[1]),v={...r,thisPeriod:{startDate:d[L].startDate,endDate:d[L].endDate}};c?.(d[p],a,v)},w=s?(l-60)/N.operating_expenses*(N.operating_expenses-e.recordByTimeseries.length):20;return t.jsx(qt,{width:l,height:i,children:t.jsx(Q,{children:({height:$,width:k})=>t.jsxs(me,{width:k,height:$,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?E[10]:30,margin:{top:5,right:w,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:_,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:C.colors.grey3}),t.jsx(ne,{dataKey:p=>p.timeLabel.label,type:"category",axisLine:{stroke:C.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:p=>Z("0,0.[00]a",p,h)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!j&&{stroke:C.colors.background,strokeWidth:(k-60)/N.operating_expenses,fill:C.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})},Qt=f.div`
199
199
  display: flex;
200
200
  `,Zt=f.div`
201
201
  display: flex;
@@ -263,7 +263,7 @@ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de
263
263
  `,Be=f(K)`
264
264
  display: flex;
265
265
  flex-direction: column;
266
- `,ze=f(K)``,ca=({active:e,payload:a,mode:o})=>{const n=[];let r={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return a?.forEach(u=>{const s=u.name;if(e===!0){const c=u.payload,C=u.color,h=s!=null&&c.record[s]!=null?c.record[s].amount:void 0;let d;s.includes("forecast")!==!0&&(o==="forecast_mode"&&(d=c.record[s]!=null?((y,j)=>{const _=b(T(y),"forecast");if(j.record[_]==null)return;const w=j.record[y].amount,$=j.record[_].amount;return{value:$,change:{...w,amount:Math.floor(100*(w.amount-$.amount)/100)},percent:$.amount!==0?Math.floor((w.amount-$.amount)/$.amount*100)/100:void 0,forecastPercent:j.record[_].percentValue}})(s,c):void 0),s===i?(h!=null&&(r.currencyCode===""?r={...h}:r.amount=r.amount+h.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.revenue[T(s)],actual:h,forecast:d,percent:c.record[s]!=null?c.record[s].percentValue??0:0,color:C})):n.push({barName:S.getLocalizedStrings().chartCard.revenue[T(s)],actual:h,color:C,forecast:d}))}}),n},Pe=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(la,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsxs(na,{children:[t.jsx(Se,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(Se,{children:V("0,0.0%",a.percent)}):null]})]},a.barName+o)),Re=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ra,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsx(X,{children:t.jsxs(Be,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ze,{children:a.percent!=null?V("0,0.0%",a.percent):null})]})}),t.jsx(X,{children:t.jsxs(Be,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ze,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?V("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(X,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(X,{children:"-"}),a.forecast!=null?t.jsx(X,{isChange:!0,children:V("0,0.0%",a.forecast.percent)}):t.jsx(X,{children:"-"})]},a.barName+o)),sa=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},ia=({barLabelsWithValues:e})=>t.jsxs(Zt,{children:[t.jsxs(ea,{children:[t.jsx(ta,{}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(he,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",sa(e)]}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(aa,{children:[Re(e.slice(0,e.length-1)),e.length?t.jsx(Ie,{}):null,Re(e.slice(-1))]})]}),ua=({barLabelsWithValues:e})=>t.jsx(Qt,{children:t.jsxs(oa,{children:[Pe(e.slice(0,e.length-1)),e.length?t.jsx(Ie,{}):null,Pe(e.slice(-1))]})}),ha=ee.memo(e=>{const a=ca({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(ia,{barLabelsWithValues:a}):t.jsx(ua,{barLabelsWithValues:a})})}),Oe=(e,a,o,n,r,l)=>{let i=[],u=[],s=[];n!=null&&n.balances.length>0&&(i=A("income","actual",n)),r!=null&&r.balances.length>0&&(u=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(s=re("gross_margin","actual",l));const c=b("income","actual"),C=b("cogs","actual"),h=b("gross_margin","actual"),d=i.length>0?c:u.length>0?C:h,y={};return y[c]=i,y[C]=u,y[h]=s,o==="forecast_mode"&&Object.assign(y,da(n,r,l)),d!=null?J(e,a,d,y):void 0},da=(e,a,o)=>{let n=[],r=[],l=[];e!=null&&e.balances.length>0&&(n=A("income","forecast",e)),a!=null&&a.balances.length>0&&(r=A("cogs","forecast",a)),o!=null&&o.balances.length>0&&(l=re("gross_margin","forecast",o));const i=b("income","forecast"),u=b("cogs","forecast"),s=b("gross_margin","forecast"),c={};return c[i]=n,c[u]=r,c[s]=l,c},ga=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual")],pa=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual"),b("income","forecast"),b("cogs","forecast"),b("gross_margin","forecast")],ma=f.div`
266
+ `,ze=f(K)``,ca=({active:e,payload:a,mode:o})=>{const n=[];let r={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=y("gross_margin","actual");return a?.forEach(u=>{const s=u.name;if(e===!0){const c=u.payload,C=u.color,h=s!=null&&c.record[s]!=null?c.record[s].amount:void 0;let d;s.includes("forecast")!==!0&&(o==="forecast_mode"&&(d=c.record[s]!=null?((b,j)=>{const _=y(T(b),"forecast");if(j.record[_]==null)return;const w=j.record[b].amount,$=j.record[_].amount;return{value:$,change:{...w,amount:Math.floor(100*(w.amount-$.amount)/100)},percent:$.amount!==0?Math.floor((w.amount-$.amount)/$.amount*100)/100:void 0,forecastPercent:j.record[_].percentValue}})(s,c):void 0),s===i?(h!=null&&(r.currencyCode===""?r={...h}:r.amount=r.amount+h.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.revenue[T(s)],actual:h,forecast:d,percent:c.record[s]!=null?c.record[s].percentValue??0:0,color:C})):n.push({barName:S.getLocalizedStrings().chartCard.revenue[T(s)],actual:h,color:C,forecast:d}))}}),n},Pe=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(la,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsxs(na,{children:[t.jsx(Se,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(Se,{children:V("0,0.0%",a.percent)}):null]})]},a.barName+o)),Re=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ra,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsx(X,{children:t.jsxs(Be,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ze,{children:a.percent!=null?V("0,0.0%",a.percent):null})]})}),t.jsx(X,{children:t.jsxs(Be,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ze,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?V("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(X,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(X,{children:"-"}),a.forecast!=null?t.jsx(X,{isChange:!0,children:V("0,0.0%",a.forecast.percent)}):t.jsx(X,{children:"-"})]},a.barName+o)),sa=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},ia=({barLabelsWithValues:e})=>t.jsxs(Zt,{children:[t.jsxs(ea,{children:[t.jsx(ta,{}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(he,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",sa(e)]}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(aa,{children:[Re(e.slice(0,e.length-1)),e.length?t.jsx(Ie,{}):null,Re(e.slice(-1))]})]}),ua=({barLabelsWithValues:e})=>t.jsx(Qt,{children:t.jsxs(oa,{children:[Pe(e.slice(0,e.length-1)),e.length?t.jsx(Ie,{}):null,Pe(e.slice(-1))]})}),ha=ee.memo(e=>{const a=ca({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(ia,{barLabelsWithValues:a}):t.jsx(ua,{barLabelsWithValues:a})})}),Oe=(e,a,o,n,r,l)=>{let i=[],u=[],s=[];n!=null&&n.balances.length>0&&(i=A("income","actual",n)),r!=null&&r.balances.length>0&&(u=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(s=re("gross_margin","actual",l));const c=y("income","actual"),C=y("cogs","actual"),h=y("gross_margin","actual"),d=i.length>0?c:u.length>0?C:h,b={};return b[c]=i,b[C]=u,b[h]=s,o==="forecast_mode"&&Object.assign(b,da(n,r,l)),d!=null?J(e,a,d,b):void 0},da=(e,a,o)=>{let n=[],r=[],l=[];e!=null&&e.balances.length>0&&(n=A("income","forecast",e)),a!=null&&a.balances.length>0&&(r=A("cogs","forecast",a)),o!=null&&o.balances.length>0&&(l=re("gross_margin","forecast",o));const i=y("income","forecast"),u=y("cogs","forecast"),s=y("gross_margin","forecast"),c={};return c[i]=n,c[u]=r,c[s]=l,c},ga=[y("income","actual"),y("cogs","actual"),y("gross_margin","actual")],pa=[y("income","actual"),y("cogs","actual"),y("gross_margin","actual"),y("income","forecast"),y("cogs","forecast"),y("gross_margin","forecast")],ma=f.div`
267
267
  width: ${e=>e.width}px;
268
268
  height: ${e=>e.height}px;
269
269
 
@@ -277,4 +277,4 @@ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de
277
277
  margin-left: ${e=>q.legendLabelMarginLeft.valuePx(e.windowSize)};
278
278
  margin-right: ${e=>q.legendLabelMarginRight.valuePx(e.windowSize)};
279
279
  color: ${e=>e.theme.colors.primary};
280
- `;function Sa({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=F(),C=z.useRef(!1);z.useEffect(()=>{C.current=!0},[]);const h=[c.colors.graphColor26,c.colors.graphColor17,c.colors.graphColor12],d=[c.colors.graphColor28,c.colors.graphColor17,c.colors.graphColor10,c.colors.graphColor28Dark,c.colors.graphColor17Dark,c.colors.graphColor10Dark],y=u==="forecast_mode"?d:h,j=u==="forecast_mode"?pa:ga,_=(p,g=c.colors.graphColor28)=>p<y.length?y[p]:g,w=e.reportId==="revenue"?Oe(e.firstMonthOfFY,j,u,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Oe(e.firstMonthOfFY,j,u,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),$=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:4,stroke:L,strokeWidth:2,fill:v})},k=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:5,stroke:v,strokeWidth:2,fill:L})};return w==null?null:t.jsx(fa,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const p=[];return j.forEach((g,D)=>{const L=i===!0&&!C.current;g.endsWith("_forecast")?p.push(((v,B)=>t.jsx(pe,{name:v,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:t.jsx($,{}),activeDot:t.jsx(k,{}),dataKey:P=>{const O=P.record;return(O[v]!=null&&O[v].amount!=null?O[v].amount:void 0)?.amount},stroke:_(B),strokeDasharray:"3 3",strokeWidth:1.5},v))(g,D)):p.push(((v,B,P)=>t.jsx(oe,{name:v,animationDuration:P?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:O=>{const G=O.record;return(G[v]!=null&&G[v].amount!=null?G[v].amount:void 0)?.amount??0},fill:_(B)},v))(g,D,L))}),p})(),customToolTipContent:({active:p,payload:g})=>t.jsx(ha,{active:p,payload:g,mode:u}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const fa=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=F(),d=te(e),y=e.timeseries,j=y.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,D=p.payload.timeLabel.label;if(r==null)return;const L=ae(D,j,r.numberOfPeriods),v=L[1]===void 0?j.length-1:j.indexOf(L[1]),B={...r,thisPeriod:{startDate:y[v].startDate,endDate:y[v].endDate}};c?.(y[g],a,B)},$=s?(l-60)/N.revenue*(N.revenue-e.recordByTimeseries.length):20;return t.jsx(ma,{width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(me,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeWidth:(p-60)/N.revenue,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},iconSize:E[3],formatter:g=>t.jsx(xa,{windowSize:C,children:g.endsWith("_forecast")===!0?S.getLocalizedStrings().chartCard.revenue[g]:S.getLocalizedStrings().chartCard.revenue[T(g)]})}):null]})})})};export{$a as G,La as H,_a as P,Sa as X,Da as Y};
280
+ `;function Sa({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=F(),C=z.useRef(!1);z.useEffect(()=>{C.current=!0},[]);const h=[c.colors.graphColor26,c.colors.graphColor17,c.colors.graphColor12],d=[c.colors.graphColor28,c.colors.graphColor17,c.colors.graphColor10,c.colors.graphColor28Dark,c.colors.graphColor17Dark,c.colors.graphColor10Dark],b=u==="forecast_mode"?d:h,j=u==="forecast_mode"?pa:ga,_=(p,g=c.colors.graphColor28)=>p<b.length?b[p]:g,w=e.reportId==="revenue"?Oe(e.firstMonthOfFY,j,u,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Oe(e.firstMonthOfFY,j,u,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),$=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:4,stroke:L,strokeWidth:2,fill:v})},k=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:5,stroke:v,strokeWidth:2,fill:L})};return w==null?null:t.jsx(fa,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const p=[];return j.forEach((g,D)=>{const L=i===!0&&!C.current;g.endsWith("_forecast")?p.push(((v,B)=>t.jsx(pe,{name:v,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:t.jsx($,{}),activeDot:t.jsx(k,{}),dataKey:P=>{const O=P.record;return(O[v]!=null&&O[v].amount!=null?O[v].amount:void 0)?.amount},stroke:_(B),strokeDasharray:"3 3",strokeWidth:1.5},v))(g,D)):p.push(((v,B,P)=>t.jsx(oe,{name:v,animationDuration:P?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:O=>{const G=O.record;return(G[v]!=null&&G[v].amount!=null?G[v].amount:void 0)?.amount??0},fill:_(B)},v))(g,D,L))}),p})(),customToolTipContent:({active:p,payload:g})=>t.jsx(ha,{active:p,payload:g,mode:u}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const fa=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=F(),d=te(e),b=e.timeseries,j=b.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,D=p.payload.timeLabel.label;if(r==null)return;const L=ae(D,j,r.numberOfPeriods),v=L[1]===void 0?j.length-1:j.indexOf(L[1]),B={...r,thisPeriod:{startDate:b[v].startDate,endDate:b[v].endDate}};c?.(b[g],a,B)},$=s?(l-60)/N.revenue*(N.revenue-e.recordByTimeseries.length):20;return t.jsx(ma,{width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(me,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeWidth:(p-60)/N.revenue,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},iconSize:E[3],formatter:g=>t.jsx(xa,{windowSize:C,children:g.endsWith("_forecast")===!0?S.getLocalizedStrings().chartCard.revenue[g]:S.getLocalizedStrings().chartCard.revenue[T(g)]})}):null]})})})};export{$a as G,La as H,_a as P,Sa as X,Da as Y};
@@ -1,4 +1,4 @@
1
- import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as ie,eG as Tt,eH as Dt,eI as It,eJ as Pt,a5 as k,eK as kt,b as v,eL as Mt,eM as Be,eN as Fe,eO as Re,w as U,c$ as O,f as j,eP as At,eQ as E,d5 as _,eR as Bt,eS as Ft,bo as Le,o as n,a9 as Rt,m as s,O as Lt,u as zt,bx as Nt,d as Ot,M as Et,eT as _t,bH as Vt,l as ce,H as me,eU as Zt,eV as Gt,aD as Yt,n as Ht,at as Kt,eW as Ut,D as tt,b6 as qt,C as nt,aR as Wt,eX as Qt}from"./index-iSEGT9xi.js";import{a as Z}from"./sentry-DwNPvXBL.js";import{n as a}from"./mui-Bg5IRLA2.js";import{cp as ze,cj as Ne,bX as D,c4 as Xt,FW as Jt,bG as re,c6 as en}from"./zeni-epic-state-DQF5EBoo.js";import{t as tn,o as nn}from"./LowBalancePopup-DTtl3SIc-aNudwoSx.js";import{S as V}from"./LabeledText-GEbY3-bB-a8-4xrHX.js";import"./pdf-2PUMrtF-.js";import"./core-Dbakk1VU.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="5a00c839-5d59-450c-aebc-5d922d2b7ee9",e._sentryDebugIdIdentifier="sentry-dbid-5a00c839-5d59-450c-aebc-5d922d2b7ee9")}catch{}})();const at=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:_e}=ln,Ve=({attachment:e})=>{const[y,x]=Z.useState(!1),M=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>M===!1?x(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Gt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:dt,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:X,retryPayment:ct})=>{const d=wt(),c=$t(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),I=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,i=vt(A,ot,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),S=Oe.visual.MMMDCommaYYYYformat,xe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:i?.method.includes("international")===!0?jt(xe,i):e.recipientTotalAmount.amount+(i?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:d,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(I?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),ge())},[I,J,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,G=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&G?.code?G:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&G?.code?G:N,ae=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,oe=ie(i?.method??""),ve=oe.replace("Same Day",""),ht=e.isCollectToAccountInfoFromVendorContact?t.jsx(Tt,{paymentTypeLabel:ve,onClick:()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)}}):o.addedByZeni,H=y.allApprovalRules.length>0,gt=ze(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-z.amount:p.amount,i?.fee.currencyCode??Ne.currencyCode,i?.fee.currencySymbol??Ne.currencySymbol),f=Xt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ze(h,H,e.isBillMarkedForRetry),le=dt&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&K(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",yt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&((()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,T=e.recurringConfig,ft=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),i?.method!=null&&l!=null){const bt=f?o.paymentOutsideZeni.offline:ie(i.method);if(w.trackBillPaySendForApproval(bt,l.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(T?.startDate?.toString()??"").format(S),endDate:re(T?.endDate?.toString()??"").format(S),frequency:T?.frequency??"monthly",totalAmount:ft.amount,totalPaymentCycles:T?.totalPaymentCycles??0,isApprovalRequired:T?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?T?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?T?.updateRecurringBills==="all":void 0}),le!=null){const De=P?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Qt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}})(),ye(!1,{}))},xt=Jt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,K]=Z.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{st(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{K(!1),ae()},onClickAway:()=>{K(!1)}}):null,t.jsx(It,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Pt,{companyName:kt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:d,style:lt,children:[d==="small"?t.jsxs(Pn,{windowSize:d,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:d,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),d!=="small"?t.jsx(bn,{children:t.jsx(He,{windowSize:d,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(_n,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Nn,{children:[t.jsx(En,{children:o.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Mt(l);return l!=null?t.jsx(On,{children:at.includes(d)?t.jsxs(Ke,{windowSize:d,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(W,{children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ke,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(W,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?o.invoiceNo:null," ",l.documentId]})}),t.jsxs(W,{style:{width:"25%"},children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:k("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(Ue,{children:o.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:o.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(fn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(V,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,d):g,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(V,{label:{label:o.paymentMethod,width:L},style:{width:"auto"},value:ie(i?.method??""),additionalInfoLabel:f?h?void 0:o.paymentOutsideZeni.reviewInfo:i?.method!=null&&i.method.includes(D)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&A&&ee===$.currencyCode?Ut(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(q,{}),f||Y==null?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(V,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:Y.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(Y.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(q,{})]}),f?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(V,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(V,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:d,children:[t.jsxs(yn,{children:[t.jsx(sn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ye,{children:[t.jsx(se,{children:i.method.includes(D)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(se,{children:_e.transactionFee}),t.jsx(de,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(dn,{children:[t.jsx(se,{children:Ee.total}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Rt,{cancelBtn:{label:C&&!h?o.paymentOutsideZeni.markAsPaid:o.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&I?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ge(!1,C,h,H,d)}},primaryBtn:{label:Ze(h,H,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?K(!0):Ce()},style:{width:Ge(!0,C,h,H,d)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Vn,{windowSize:d,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Gn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Zn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?t.jsxs(An,{children:[o.internationalText1,t.jsx(Bn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:o.internationalTerms}),o.internationalText2]}):null})]})},Ze=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ge=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(qt)`
1
+ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as ie,eG as Tt,eH as Dt,eI as It,eJ as Pt,a5 as k,eK as kt,b as v,eL as Mt,eM as Be,eN as Fe,eO as Re,w as U,c$ as O,f as j,eP as At,eQ as E,d5 as _,eR as Bt,eS as Ft,bo as Le,o as n,a9 as Rt,m as s,O as Lt,u as zt,bx as Nt,d as Ot,M as Et,eT as _t,bH as Vt,l as ce,H as me,eU as Zt,eV as Gt,aD as Yt,n as Ht,at as Kt,eW as Ut,D as tt,b6 as qt,C as nt,aR as Wt,eX as Qt}from"./index-bPu7mlA1.js";import{a as Z}from"./sentry-uXR4_KRo.js";import{n as a}from"./mui-CvPZa6D0.js";import{cp as ze,cj as Ne,bX as D,c4 as Xt,FW as Jt,bG as re,c6 as en}from"./zeni-epic-state-BDdTNPzg.js";import{t as tn,o as nn}from"./LowBalancePopup-CplxkRHP-B1Znghgy.js";import{S as V}from"./LabeledText-CFJSoGtK-hLpZiX2C.js";import"./pdf-LR9rRMEe.js";import"./core-DuCBl3U1.js";import"./lottie-DyJgmWhI.js";import"./liveblocks-UDiQs1XL.js";import"./recharts-7AyWv7E-.js";import"./dnd-BPJHdlPA.js";import"./analytics-hnA26KoH.js";import"./plaid-C4PyP873.js";import"./utils-DXqO5lkM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="c3e78ad2-7eee-4d62-a986-4348aaa25e24",e._sentryDebugIdIdentifier="sentry-dbid-c3e78ad2-7eee-4d62-a986-4348aaa25e24")}catch{}})();const at=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:_e}=ln,Ve=({attachment:e})=>{const[y,x]=Z.useState(!1),M=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>M===!1?x(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Gt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:dt,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:X,retryPayment:ct})=>{const d=wt(),c=$t(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),I=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,i=vt(A,ot,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),S=Oe.visual.MMMDCommaYYYYformat,xe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:i?.method.includes("international")===!0?jt(xe,i):e.recipientTotalAmount.amount+(i?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:d,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(I?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),ge())},[I,J,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,G=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&G?.code?G:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&G?.code?G:N,ae=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,oe=ie(i?.method??""),ve=oe.replace("Same Day",""),ht=e.isCollectToAccountInfoFromVendorContact?t.jsx(Tt,{paymentTypeLabel:ve,onClick:()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)}}):o.addedByZeni,H=y.allApprovalRules.length>0,gt=ze(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-z.amount:p.amount,i?.fee.currencyCode??Ne.currencyCode,i?.fee.currencySymbol??Ne.currencySymbol),f=Xt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ze(h,H,e.isBillMarkedForRetry),le=dt&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&K(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",yt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&((()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,T=e.recurringConfig,ft=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),i?.method!=null&&l!=null){const bt=f?o.paymentOutsideZeni.offline:ie(i.method);if(w.trackBillPaySendForApproval(bt,l.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(T?.startDate?.toString()??"").format(S),endDate:re(T?.endDate?.toString()??"").format(S),frequency:T?.frequency??"monthly",totalAmount:ft.amount,totalPaymentCycles:T?.totalPaymentCycles??0,isApprovalRequired:T?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?T?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?T?.updateRecurringBills==="all":void 0}),le!=null){const De=P?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Qt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}})(),ye(!1,{}))},xt=Jt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,K]=Z.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{st(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{K(!1),ae()},onClickAway:()=>{K(!1)}}):null,t.jsx(It,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Pt,{companyName:kt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:d,style:lt,children:[d==="small"?t.jsxs(Pn,{windowSize:d,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:d,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),d!=="small"?t.jsx(bn,{children:t.jsx(He,{windowSize:d,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(_n,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Nn,{children:[t.jsx(En,{children:o.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Mt(l);return l!=null?t.jsx(On,{children:at.includes(d)?t.jsxs(Ke,{windowSize:d,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(W,{children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ke,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(W,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?o.invoiceNo:null," ",l.documentId]})}),t.jsxs(W,{style:{width:"25%"},children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:k("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(Ue,{children:o.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:o.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(fn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(V,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,d):g,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(V,{label:{label:o.paymentMethod,width:L},style:{width:"auto"},value:ie(i?.method??""),additionalInfoLabel:f?h?void 0:o.paymentOutsideZeni.reviewInfo:i?.method!=null&&i.method.includes(D)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&A&&ee===$.currencyCode?Ut(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(q,{}),f||Y==null?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(V,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:Y.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(Y.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(q,{})]}),f?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(V,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(V,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:d,children:[t.jsxs(yn,{children:[t.jsx(sn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ye,{children:[t.jsx(se,{children:i.method.includes(D)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(se,{children:_e.transactionFee}),t.jsx(de,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(dn,{children:[t.jsx(se,{children:Ee.total}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Rt,{cancelBtn:{label:C&&!h?o.paymentOutsideZeni.markAsPaid:o.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&I?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ge(!1,C,h,H,d)}},primaryBtn:{label:Ze(h,H,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?K(!0):Ce()},style:{width:Ge(!0,C,h,H,d)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Vn,{windowSize:d,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Gn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Zn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?t.jsxs(An,{children:[o.internationalText1,t.jsx(Bn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:o.internationalTerms}),o.internationalText2]}):null})]})},Ze=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ge=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(qt)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{e as P,V as i,b as x,o as r,a9 as B,x as d,a8 as L,d as I,M as W,f as s,l as b,c1 as D,L as R,C as S,aC as G,m as o,dO as A,aA as _,i9 as F}from"./index-iSEGT9xi.js";import{n as t}from"./mui-Bg5IRLA2.js";import{a as w}from"./sentry-DwNPvXBL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="699f086a-7225-4684-91b8-ebe09172dae6",e._sentryDebugIdIdentifier="sentry-dbid-699f086a-7225-4684-91b8-ebe09172dae6")}catch{}})();const a={containerMarginTop:new d(0,o[2]),containerMarginLeft:new d(o[3],o[8]),containerMarginRight:new d(o[3],o[8]),subTitleMarginBottom:new d(o[2],o[2]),titleMarginBotom:new d(o[0],o[2]),titleMarginRight:new d(o[0],o[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(o[3],o[3],o[8]),navBarPaddingRight:new d(o[3],o[3],o[8])},H={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:m,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":x("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(V,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:m.map(n=>{const h=n.reviewStatus.code==="error",c=n.reviewStatus.code==="warning"||n.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(n.id),"data-testid":x("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:O(n)}),i.jsxs(ne,{children:[i.jsxs(u,{children:[i.jsx($,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:n.leftSideText.title}),i.jsx($,{isWarning:c,isError:h,children:n.rightSideText.title})]}),i.jsxs(u,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:n.leftSideText.subTitle}),l!=="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:n.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:n.rightSideText.additonalInfo})]}):null]})]},n.id)})})]}),z?i.jsx(B,{primaryBtn:C,cancelBtn:T,showCancel:!E}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),Z=t.div`
1
+ import{e as P,V as i,b as x,o as r,a9 as B,x as d,a8 as L,d as I,M as W,f as s,l as b,c1 as D,L as R,C as S,aC as G,m as o,dO as A,aA as _,i9 as F}from"./index-bPu7mlA1.js";import{n as t}from"./mui-CvPZa6D0.js";import{a as w}from"./sentry-uXR4_KRo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="699f086a-7225-4684-91b8-ebe09172dae6",e._sentryDebugIdIdentifier="sentry-dbid-699f086a-7225-4684-91b8-ebe09172dae6")}catch{}})();const a={containerMarginTop:new d(0,o[2]),containerMarginLeft:new d(o[3],o[8]),containerMarginRight:new d(o[3],o[8]),subTitleMarginBottom:new d(o[2],o[2]),titleMarginBotom:new d(o[0],o[2]),titleMarginRight:new d(o[0],o[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(o[3],o[3],o[8]),navBarPaddingRight:new d(o[3],o[3],o[8])},H={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:m,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":x("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(V,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:m.map(n=>{const h=n.reviewStatus.code==="error",c=n.reviewStatus.code==="warning"||n.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(n.id),"data-testid":x("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:O(n)}),i.jsxs(ne,{children:[i.jsxs(u,{children:[i.jsx($,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:n.leftSideText.title}),i.jsx($,{isWarning:c,isError:h,children:n.rightSideText.title})]}),i.jsxs(u,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:n.leftSideText.subTitle}),l!=="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:n.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:n.rightSideText.additonalInfo})]}):null]})]},n.id)})})]}),z?i.jsx(B,{primaryBtn:C,cancelBtn:T,showCancel:!E}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),Z=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1 +1 @@
1
- import{j as e}from"./pdf-2PUMrtF-.js";import{aE as x,js as w,aF as y,bk as I,jz as p,J as F,mj as L,aG as P}from"./index-iSEGT9xi.js";import"./mui-Bg5IRLA2.js";import m from"./NotFoundScreen-DGF4ewvh.js";import{a as u}from"./sentry-DwNPvXBL.js";import{i as R,u as b,j as T,h as V,k as O,R as U,m as f}from"./core-Dbakk1VU.js";import{ct as z,O3 as C,KZ as A,O4 as k,qu as G,cG as q,O5 as Y,qs as J}from"./zeni-epic-state-DQF5EBoo.js";import{R as j}from"./ReferralListScreen-CRs7Pk4b.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.js";import"./MobileAppDrawer-D9B1riEd.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="234753b6-19af-48c1-8b48-7e4e913ceafa",a._sentryDebugIdIdentifier="sentry-dbid-234753b6-19af-48c1-8b48-7e4e913ceafa")}catch{}})();const K=O(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{a(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}a(J())},onUpdateInviteFormLocalData:s=>{a(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),Z=()=>{const a=R(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=b(i=>z(i)),c=T(),D=V(),{useDynamicConfig:g}=x(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const l=b(i=>C(i)),_=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:v}=g(y.zeniAccountsConfig),E=A(v);u.useEffect(()=>{a(k()),r?.rewardsLastViewedTime==null&&o===!1&&(a(G()),s(!0))},[]),u.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),a(q(!0)))},[l.fetchState,a]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[l.fetchState==="Completed"?e.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,e.jsx(K,{navigate:c,location:D,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:E.maxAnnualPercentageYield})]})};function la(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(P.isReferralFeatureEnabled);return e.jsxs(U,{children:[e.jsx(f,{path:"/",element:t?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(f,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(m,{})}),e.jsx(f,{path:"refer/*",element:t?e.jsx(Z,{}):e.jsx(m,{})}),e.jsx(f,{path:"*",element:e.jsx(m,{})})]})}export{la as default};
1
+ import{j as e}from"./pdf-LR9rRMEe.js";import{aE as x,js as w,aF as y,bk as I,jz as p,J as F,mj as L,aG as P}from"./index-bPu7mlA1.js";import"./mui-CvPZa6D0.js";import m from"./NotFoundScreen-CJqSMVfb.js";import{a as u}from"./sentry-uXR4_KRo.js";import{i as R,u as b,j as T,h as V,k as O,R as U,m as f}from"./core-DuCBl3U1.js";import{ct as z,O3 as C,KZ as A,O4 as k,qu as G,cG as q,O5 as Y,qs as J}from"./zeni-epic-state-BDdTNPzg.js";import{R as j}from"./ReferralListScreen-Bkepb1RS.js";import"./lottie-DyJgmWhI.js";import"./liveblocks-UDiQs1XL.js";import"./recharts-7AyWv7E-.js";import"./dnd-BPJHdlPA.js";import"./analytics-hnA26KoH.js";import"./plaid-C4PyP873.js";import"./utils-DXqO5lkM.js";import"./MobileAppDrawer-CKcdPSDd.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="234753b6-19af-48c1-8b48-7e4e913ceafa",a._sentryDebugIdIdentifier="sentry-dbid-234753b6-19af-48c1-8b48-7e4e913ceafa")}catch{}})();const K=O(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{a(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}a(J())},onUpdateInviteFormLocalData:s=>{a(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),Z=()=>{const a=R(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=b(i=>z(i)),c=T(),D=V(),{useDynamicConfig:g}=x(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const l=b(i=>C(i)),_=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:v}=g(y.zeniAccountsConfig),E=A(v);u.useEffect(()=>{a(k()),r?.rewardsLastViewedTime==null&&o===!1&&(a(G()),s(!0))},[]),u.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),a(q(!0)))},[l.fetchState,a]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[l.fetchState==="Completed"?e.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,e.jsx(K,{navigate:c,location:D,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:E.maxAnnualPercentageYield})]})};function la(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(P.isReferralFeatureEnabled);return e.jsxs(U,{children:[e.jsx(f,{path:"/",element:t?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(f,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(m,{})}),e.jsx(f,{path:"refer/*",element:t?e.jsx(Z,{}):e.jsx(m,{})}),e.jsx(f,{path:"*",element:e.jsx(m,{})})]})}export{la as default};
@@ -1,4 +1,4 @@
1
- import{eg as p,eh as h,V as s,bo as f,o as a,b as l,O as g,j as x,C as c}from"./index-iSEGT9xi.js";import{n as d}from"./mui-Bg5IRLA2.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]="c424fbd2-75d5-4d8f-a0eb-e2ce1add02dc",e._sentryDebugIdIdentifier="sentry-dbid-c424fbd2-75d5-4d8f-a0eb-e2ce1add02dc")}catch{}})();const{hyphen:o}=g.getLocalizedStrings().common.strings,b=d.div``,m=d.div`
1
+ import{eg as p,eh as h,V as s,bo as f,o as a,b as l,O as g,j as x,C as c}from"./index-bPu7mlA1.js";import{n as d}from"./mui-CvPZa6D0.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]="c424fbd2-75d5-4d8f-a0eb-e2ce1add02dc",e._sentryDebugIdIdentifier="sentry-dbid-c424fbd2-75d5-4d8f-a0eb-e2ce1add02dc")}catch{}})();const{hyphen:o}=g.getLocalizedStrings().common.strings,b=d.div``,m=d.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{a7 as U,hI as X,g4 as fe,e3 as Le,hJ as we,T as Je,hK as Me,c8 as _e,c9 as Ve,V as a,A as Pe,bR as Fe,bS as Ne,bT as $e,a9 as qe,hL as Re,hM as Be,O as xe,E as ue,hN as Se,hO as We,cc as Ue,e as ze,h$ as He,ga as ie,m as q,f as De,x as ye,cd as Ke,hP as Ge,hQ as Qe,hR as Ye,o as V}from"./index-iSEGT9xi.js";import{a as D}from"./sentry-DwNPvXBL.js";import{n as B}from"./mui-Bg5IRLA2.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-DQF5EBoo.js";import{l as et,a as tt,s as lt,r as at}from"./ScheduleSequenceTable-poNEzbqS-CnUEqaUu.js";import"./pdf-2PUMrtF-.js";import"./core-Dbakk1VU.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="3a7d9610-8688-4ffb-86fb-d747ad511413",e._sentryDebugIdIdentifier="sentry-dbid-3a7d9610-8688-4ffb-86fb-d747ad511413")}catch{}})();const R={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=B.div`
1
+ import{a7 as U,hI as X,g4 as fe,e3 as Le,hJ as we,T as Je,hK as Me,c8 as _e,c9 as Ve,V as a,A as Pe,bR as Fe,bS as Ne,bT as $e,a9 as qe,hL as Re,hM as Be,O as xe,E as ue,hN as Se,hO as We,cc as Ue,e as ze,h$ as He,ga as ie,m as q,f as De,x as ye,cd as Ke,hP as Ge,hQ as Qe,hR as Ye,o as V}from"./index-bPu7mlA1.js";import{a as D}from"./sentry-uXR4_KRo.js";import{n as B}from"./mui-CvPZa6D0.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-BDdTNPzg.js";import{l as et,a as tt,s as lt,r as at}from"./ScheduleSequenceTable-BZR2cL6z-BUCxLw4U.js";import"./pdf-LR9rRMEe.js";import"./core-DuCBl3U1.js";import"./lottie-DyJgmWhI.js";import"./liveblocks-UDiQs1XL.js";import"./recharts-7AyWv7E-.js";import"./dnd-BPJHdlPA.js";import"./analytics-hnA26KoH.js";import"./plaid-C4PyP873.js";import"./utils-DXqO5lkM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="33da9d6b-809c-426e-955a-8300a5efcbdc",e._sentryDebugIdIdentifier="sentry-dbid-33da9d6b-809c-426e-955a-8300a5efcbdc")}catch{}})();const R={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=B.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{a7 as P,hI as Y,g4 as ke,e3 as Ae,hJ as Ie,T as Je,hK as we,c8 as Le,c9 as Me,V as a,A as Ve,bR as Pe,bS as _e,bT as $e,a9 as Fe,hL as Ne,hM as Be,O as De,E as ce,hN as pe,hO as Re,cc as Ue,e as qe,ga as me,m as X,f as ze,x as We,hP as Ke,hQ as Ge,hR as He,o as A}from"./index-iSEGT9xi.js";import{a as D}from"./sentry-DwNPvXBL.js";import{n as M}from"./mui-Bg5IRLA2.js";import{bH as Qe,bI as Ye,bG as Xe}from"./zeni-epic-state-DQF5EBoo.js";import{l as Ze,a as et,s as tt,r as lt}from"./ScheduleSequenceTable-poNEzbqS-CnUEqaUu.js";import"./pdf-2PUMrtF-.js";import"./core-Dbakk1VU.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b18a5a11-0b26-417d-a4e2-1fd35fdb3aa2",e._sentryDebugIdIdentifier="sentry-dbid-b18a5a11-0b26-417d-a4e2-1fd35fdb3aa2")}catch{}})();const N={labelWidth:new We(160,160,160)},at=M.div`
1
+ import{a7 as P,hI as Y,g4 as ke,e3 as Ae,hJ as Ie,T as Je,hK as we,c8 as Le,c9 as Me,V as a,A as Ve,bR as Pe,bS as _e,bT as $e,a9 as Fe,hL as Ne,hM as Be,O as De,E as ce,hN as pe,hO as Re,cc as Ue,e as qe,ga as me,m as X,f as ze,x as We,hP as Ke,hQ as Ge,hR as He,o as A}from"./index-bPu7mlA1.js";import{a as D}from"./sentry-uXR4_KRo.js";import{n as M}from"./mui-CvPZa6D0.js";import{bH as Qe,bI as Ye,bG as Xe}from"./zeni-epic-state-BDdTNPzg.js";import{l as Ze,a as et,s as tt,r as lt}from"./ScheduleSequenceTable-BZR2cL6z-BUCxLw4U.js";import"./pdf-LR9rRMEe.js";import"./core-DuCBl3U1.js";import"./lottie-DyJgmWhI.js";import"./liveblocks-UDiQs1XL.js";import"./recharts-7AyWv7E-.js";import"./dnd-BPJHdlPA.js";import"./analytics-hnA26KoH.js";import"./plaid-C4PyP873.js";import"./utils-DXqO5lkM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="d5e9503b-5a9c-4ac4-9d43-5694d4fae1d1",e._sentryDebugIdIdentifier="sentry-dbid-d5e9503b-5a9c-4ac4-9d43-5694d4fae1d1")}catch{}})();const N={labelWidth:new We(160,160,160)},at=M.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{e as T,y as Q,V as i,hS as le,d3 as ne,d as se,hT as we,dh as fe,eO as be,w as I,O as N,hU as $e,hR as je,o as t,x as j,f as S,n as Se,b as q,E as re,dc as ke,bR as ve,bT as De,cc as ee,dX as ie,c6 as Ce,hV as X,hW as ze,an as Me,hX as Ee,bV as Le,hY as Oe,m as p,l as M,at as Ie,bS as Te,k as ge,e4 as Ae,al as ae,dS as Ve,a9 as Fe,hZ as V,fH as Je,a5 as Be,h_ as Pe,ad as G,cq as Re,aC as Ne}from"./index-iSEGT9xi.js";import{n as l,c as P}from"./mui-Bg5IRLA2.js";import{a as D}from"./sentry-DwNPvXBL.js";import{bs as U,Gq as We}from"./zeni-epic-state-DQF5EBoo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="17769978-b418-489c-997c-3c4c11712bbc",e._sentryDebugIdIdentifier="sentry-dbid-17769978-b418-489c-997c-3c4c11712bbc")}catch{}})();const W=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:C},common:de}=N.getLocalizedStrings();function He({defaultValue:e,name:o,placeholder:s,alignLeft:n=!1,style:g,isDisabled:d,registerOptions:r,onSaveClick:c,onCancelClick:$}){const[w,h]=D.useState(!1),{control:m,formState:{errors:f},setValue:b}=ee(),k=()=>{y||(c(),h(!1))},x=()=>{$(),h(!1)},y=ie(f,o),E=T(),a=Q();return i.jsx(ge,{onClickAway:()=>{h(!1)},children:i.jsx(Qe,{style:g,isDisabled:d!=null,windowSize:E,onClick:()=>{!w&&d==null&&h(!0)},children:i.jsx(Ae,{name:W(o,"dayOfMonth"),control:m,rules:{...r},render:()=>i.jsxs(Ge,{children:[i.jsx(Ye,{placeholder:s,defaultValue:e,isDisabled:d}),w?i.jsxs(Xe,{alignLeft:n===!0,children:[i.jsx(ti,{}),i.jsxs(ce,{isSelected:e.type==="day",children:[i.jsxs(ii,{isError:e.type==="day"&&y,children:[i.jsx(ae,{label:{label:C.pickDate},radioField:{id:"day",name:W(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${t.sp3} ${t.sp0}`,width:"fit-content",marginLeft:t.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&y?S.important:"inherit"}}),i.jsx(Ve,{name:W(o,"dayOfMonth"),type:"number",placeholder:C.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:u=>{u.key!=="Backspace"&&isNaN(parseInt(u.key))&&u.preventDefault()},defaultValue:e.dayOfMonth==null||isNaN(e.dayOfMonth)?0:e.dayOfMonth,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:t.sp1,marginRight:t.sp1},style:{border:`1px solid ${e.type==="day"&&y?S.important:a.colors.grey2}`,borderRadius:t.sp1,...I.smallRegular.cssObject,padding:t.sp2,maxWidth:"35px",boxSizing:"border-box"}}),i.jsx(Ke,{isSelected:e.type==="day",children:C.ofEveryMonth})]}),i.jsx(_e,{defaultValue:e.dayOfMonth,onClick:u=>{b(`${o}.dayOfMonth`,u),b(`${o}.type`,"day")}})]}),i.jsx(oi,{}),i.jsx(ce,{isSelected:e.type==="lastDayOfMonth",children:i.jsx(ae,{label:{label:C.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:W(o,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${t.sp3} ${t.sp0}`,width:"fit-content",marginLeft:t.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&y?S.important:"inherit"}})}),i.jsx(Fe,{primaryBtn:{label:de.footer.save,onClick:k,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:de.footer.cancel,onClick:x,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Ye({placeholder:e,defaultValue:o,isDisabled:s}){return i.jsxs(Ue,{isDisabled:s!=null,children:[o?.type==null?i.jsx(Ze,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?i.jsxs(he,{children:[i.jsx(H,{children:C.daysOfMonth[`${o.dayOfMonth}`]}),i.jsx(H,{children:C.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?i.jsxs(he,{children:[i.jsx(H,{children:C.daysOfMonth.lastDayOfMonth}),i.jsx(H,{children:C.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:o}){return i.jsxs(ei,{children:[i.jsx(Y,{children:[...Array(7).keys()].map(s=>{const n=s+1;return i.jsx(_,{isSelected:n===e,onClick:()=>o(We(n)),children:n},n)})}),i.jsx(Y,{children:[...Array(7).keys()].map(s=>{const n=s+8;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(Y,{children:[...Array(7).keys()].map(s=>{const n=s+15;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(Y,{children:[...Array(7).keys()].map(s=>{const n=s+22;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ge=l.div`
1
+ import{e as T,y as Q,V as i,hS as le,d3 as ne,d as se,hT as we,dh as fe,eO as be,w as I,O as N,hU as $e,hR as je,o as t,x as j,f as S,n as Se,b as q,E as re,dc as ke,bR as ve,bT as De,cc as ee,dX as ie,c6 as Ce,hV as X,hW as ze,an as Me,hX as Ee,bV as Le,hY as Oe,m as p,l as M,at as Ie,bS as Te,k as ge,e4 as Ae,al as ae,dS as Ve,a9 as Fe,hZ as V,fH as Je,a5 as Be,h_ as Pe,ad as G,cq as Re,aC as Ne}from"./index-bPu7mlA1.js";import{n as l,c as P}from"./mui-CvPZa6D0.js";import{a as D}from"./sentry-uXR4_KRo.js";import{bs as U,Gq as We}from"./zeni-epic-state-BDdTNPzg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="17769978-b418-489c-997c-3c4c11712bbc",e._sentryDebugIdIdentifier="sentry-dbid-17769978-b418-489c-997c-3c4c11712bbc")}catch{}})();const W=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:C},common:de}=N.getLocalizedStrings();function He({defaultValue:e,name:o,placeholder:s,alignLeft:n=!1,style:g,isDisabled:d,registerOptions:r,onSaveClick:c,onCancelClick:$}){const[w,h]=D.useState(!1),{control:m,formState:{errors:f},setValue:b}=ee(),k=()=>{y||(c(),h(!1))},x=()=>{$(),h(!1)},y=ie(f,o),E=T(),a=Q();return i.jsx(ge,{onClickAway:()=>{h(!1)},children:i.jsx(Qe,{style:g,isDisabled:d!=null,windowSize:E,onClick:()=>{!w&&d==null&&h(!0)},children:i.jsx(Ae,{name:W(o,"dayOfMonth"),control:m,rules:{...r},render:()=>i.jsxs(Ge,{children:[i.jsx(Ye,{placeholder:s,defaultValue:e,isDisabled:d}),w?i.jsxs(Xe,{alignLeft:n===!0,children:[i.jsx(ti,{}),i.jsxs(ce,{isSelected:e.type==="day",children:[i.jsxs(ii,{isError:e.type==="day"&&y,children:[i.jsx(ae,{label:{label:C.pickDate},radioField:{id:"day",name:W(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${t.sp3} ${t.sp0}`,width:"fit-content",marginLeft:t.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&y?S.important:"inherit"}}),i.jsx(Ve,{name:W(o,"dayOfMonth"),type:"number",placeholder:C.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:u=>{u.key!=="Backspace"&&isNaN(parseInt(u.key))&&u.preventDefault()},defaultValue:e.dayOfMonth==null||isNaN(e.dayOfMonth)?0:e.dayOfMonth,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:t.sp1,marginRight:t.sp1},style:{border:`1px solid ${e.type==="day"&&y?S.important:a.colors.grey2}`,borderRadius:t.sp1,...I.smallRegular.cssObject,padding:t.sp2,maxWidth:"35px",boxSizing:"border-box"}}),i.jsx(Ke,{isSelected:e.type==="day",children:C.ofEveryMonth})]}),i.jsx(_e,{defaultValue:e.dayOfMonth,onClick:u=>{b(`${o}.dayOfMonth`,u),b(`${o}.type`,"day")}})]}),i.jsx(oi,{}),i.jsx(ce,{isSelected:e.type==="lastDayOfMonth",children:i.jsx(ae,{label:{label:C.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:W(o,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${t.sp3} ${t.sp0}`,width:"fit-content",marginLeft:t.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&y?S.important:"inherit"}})}),i.jsx(Fe,{primaryBtn:{label:de.footer.save,onClick:k,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:de.footer.cancel,onClick:x,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Ye({placeholder:e,defaultValue:o,isDisabled:s}){return i.jsxs(Ue,{isDisabled:s!=null,children:[o?.type==null?i.jsx(Ze,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?i.jsxs(he,{children:[i.jsx(H,{children:C.daysOfMonth[`${o.dayOfMonth}`]}),i.jsx(H,{children:C.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?i.jsxs(he,{children:[i.jsx(H,{children:C.daysOfMonth.lastDayOfMonth}),i.jsx(H,{children:C.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:o}){return i.jsxs(ei,{children:[i.jsx(Y,{children:[...Array(7).keys()].map(s=>{const n=s+1;return i.jsx(_,{isSelected:n===e,onClick:()=>o(We(n)),children:n},n)})}),i.jsx(Y,{children:[...Array(7).keys()].map(s=>{const n=s+8;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(Y,{children:[...Array(7).keys()].map(s=>{const n=s+15;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(Y,{children:[...Array(7).keys()].map(s=>{const n=s+22;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ge=l.div`
2
2
  position: relative;
3
3
  `,Ue=l.div`
4
4
  display: flex;
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-0ryBDIPF.js","assets/pdf-2PUMrtF-.js","assets/zeni-epic-state-DQF5EBoo.js","assets/sentry-DwNPvXBL.js","assets/core-Dbakk1VU.js","assets/index-iSEGT9xi.js","assets/mui-Bg5IRLA2.js","assets/recharts-Bztd37V0.js","assets/lottie-DBYzZfO9.js","assets/liveblocks-DdnYk2Co.js","assets/dnd-CoZK9h43.js","assets/analytics-DuMT4wpV.js","assets/plaid-DCRMdnUX.js","assets/utils-D8l6svaX.js","assets/index-D-vub4_t.css","assets/withTransactionSidePanel-B9lAl4_T.js","assets/TransactionDetailScreen-8GuKlcKa.js","assets/decodeURIComponentSafe-EYVZFaGG.js","assets/routePaths-BxZ6qL2m.js","assets/NotFoundScreen-DGF4ewvh.js","assets/analyticsHelper-CtwnuYac.js","assets/CompanyPassportScreen-7B6uf7gM.js","assets/MobileAppDrawer-D9B1riEd.js","assets/FeaturePreviewScreen-DKVtqlmL.js","assets/ReferralListScreen-CRs7Pk4b.js","assets/BillPayRoutes-YLpt2aCD.js","assets/AddressScreen-S2Le0Iyl.js","assets/DomesticWireDetailScreen-Dt7o6kAb.js","assets/useInitialThreadRequest-BftSmmiq.js","assets/zeni-icon-only-CG_yKzSn.js","assets/DrawerScreen-BoLS3cEF.js","assets/SetupPagesScreen-zQ3NX2lR.js","assets/BusinessVerificationPageScreen-CXN2pQXQ.js","assets/BillPayApprovalRoutes-BgvqlrUy.js","assets/ReimbursementApprovalRuleDetailScreen-CxSdKHi9.js","assets/getLocaleForTenant-BAO89gke.js","assets/ReimbursementRoutes-CvpKnwwj.js","assets/ReimbursementApprovalRoutes-XjY3gDt6.js","assets/TransactionListRoutes-DVQtuZtB.js","assets/ZeniAccountStatementScreen-CXTN4TcP.js","assets/SettingsRoutes-BxSbNmrP.js","assets/accountMappingHelper-BLU8hIq_.js","assets/ReportsRoutes-CuJzeSSZ.js","assets/ChargeCardRoutes-Q_AcVfPK.js","assets/PeopleRoutes-DWTFCJOs.js","assets/ExpenseAutomationRoutes-GuaeYvX3.js","assets/TreasuryRoutes-NYBhe4Sz.js","assets/VendorsRoutes-KueNgBM0.js","assets/pathToGoBack-BLk7pE4i.js","assets/ZeniAccountRoutes-_rESdYK7.js","assets/AddressRoutes-CL0Pq_Ys.js","assets/PandLWithForecastRoutes-DUjvSQn1.js","assets/CustomerOnboardingRoutes-CIx1-GM_.js","assets/QBOConnectionScreen-BzZBkC05.js","assets/empty-C3KqHyA9.js","assets/pdf-lib-DlaDOnMS.js","assets/index-DD0lDka6.js","assets/url-DIYU8sPo.js","assets/index-CH6Xem9w.js","assets/TransactionDetailRoutes-Dsu-ghiL.js","assets/EntityDetailRoutes-BToXXZKQ.js","assets/NotificationRoutes-BOCajdcJ.js","assets/PerformanceRoutes-DAqkD2US.js","assets/RewardsRoutes-DR53o9JA.js","assets/TaskRoutes-DxF_jRUO.js","assets/TaskListScreen-DF7HvN9h.js","assets/AiCfoScreen-Cg_pdlQK.js"])))=>i.map(i=>d[i]);
2
- import{_ as n,bm as cs,ct as ds,cA as ms,cy as us,cz as _s,dm as As,cv as Es,bP as Ee,FY as ps,cS as Is,bF as xs,bG as gs,bs as js,cY as Ts,v as hs,Ha as Us,bt as bs,Hb as Hs,G5 as Rs,cV as ys,FX as Ds,F4 as Cs,F5 as fs,Hc as vs,Hd as Os,bM as Ps,bO as Fs,bN as Ls,bK as ks,bL as Bs,jC as pe,cu as Ie,He as Vs,c$ as xe,dr as ge,ds as je,d0 as Ss}from"./zeni-epic-state-DQF5EBoo.js";import{j as e}from"./pdf-2PUMrtF-.js";import{a as f}from"./sentry-DwNPvXBL.js";import{i as Ns,j as Ms,l as Zs,h as Gs,u as w,g as Te,N as c,R as ws,m as t}from"./core-Dbakk1VU.js";import{y as zs,jr as $s,js as b,aE as Ys,jx as Ws,aH as qs,aG as L,_ as Ks,jt as k,O as he,ju as _,jy as Xs,jz as ee,jA as l}from"./index-iSEGT9xi.js";import"./mui-Bg5IRLA2.js";import{f as Ue}from"./analyticsHelper-CtwnuYac.js";import{t as Js}from"./getLocaleForTenant-BAO89gke.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new i.Error().stack;v&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[v]="bd6f8e8d-f200-4f57-a19b-1a97407a80b7",i._sentryDebugIdIdentifier="sentry-dbid-bd6f8e8d-f200-4f57-a19b-1a97407a80b7")}catch{}})();const Qs={dashboard:()=>n(()=>import("./DashboardRoutes-0ryBDIPF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),bills:()=>n(()=>import("./BillPayRoutes-YLpt2aCD.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,26,19,27,28,29,30,22,23,31,20,18,32,33,34,35])),reimbursement:()=>n(()=>import("./ReimbursementRoutes-CvpKnwwj.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23,28,30,37,34,35])),transactions:()=>n(()=>import("./TransactionListRoutes-DVQtuZtB.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,39])),settings:()=>n(()=>import("./SettingsRoutes-BxSbNmrP.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,22,41,26,19,20,32,18,21,33,34,37])),reports:()=>n(()=>import("./ReportsRoutes-CuJzeSSZ.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,23,28,18,22])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-Q_AcVfPK.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,31,22,19,20,18,32,26])),people:()=>n(()=>import("./PeopleRoutes-DWTFCJOs.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,22])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-GuaeYvX3.js"),__vite__mapDeps([45,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,16,17,18,15,41,30])),treasury:()=>n(()=>import("./TreasuryRoutes-NYBhe4Sz.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23])),vendors:()=>n(()=>import("./VendorsRoutes-KueNgBM0.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,26,19,23,18,48,22,29,30,41])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes-_rESdYK7.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23,27,26,39]))},en=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],se=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},sn=l(()=>n(()=>import("./ReportsRoutes-CuJzeSSZ.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,23,28,18,22]))),nn=l(()=>n(()=>import("./AddressRoutes-CL0Pq_Ys.js"),__vite__mapDeps([50,1,2,3,4,26,5,6,7,8,9,10,11,12,13,14,19]))),an=l(()=>n(()=>import("./PeopleRoutes-DWTFCJOs.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,22]))),tn=l(()=>n(()=>import("./PandLWithForecastRoutes-DUjvSQn1.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,23,18,22]))),rn=l(()=>n(()=>import("./CustomerOnboardingRoutes-CIx1-GM_.js"),__vite__mapDeps([52,1,2,3,4,26,5,6,7,8,9,10,11,12,13,14,19,53,54,55,56,57,58,17]))),on=l(()=>n(()=>import("./VendorsRoutes-KueNgBM0.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,26,19,23,18,48,22,29,30,41]))),ln=l(()=>n(()=>import("./TransactionDetailRoutes-Dsu-ghiL.js"),__vite__mapDeps([59,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,16,17,18]))),be=l(()=>n(()=>import("./EntityDetailRoutes-BToXXZKQ.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,15,16,18]))),cn=l(()=>n(()=>import("./DashboardRoutes-0ryBDIPF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]))),He=l(()=>n(()=>import("./BillPayRoutes-YLpt2aCD.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,26,19,27,28,29,30,22,23,31,20,18,32,33,34,35]))),dn=l(()=>n(()=>import("./SettingsRoutes-BxSbNmrP.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,22,41,26,19,20,32,18,21,33,34,37]))),Re=l(()=>n(()=>import("./ReimbursementRoutes-CvpKnwwj.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23,28,30,37,34,35]))),mn=l(()=>n(()=>import("./ZeniAccountRoutes-_rESdYK7.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23,27,26,39]))),un=l(()=>n(()=>import("./TreasuryRoutes-NYBhe4Sz.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23]))),_n=l(()=>n(()=>import("./TransactionListRoutes-DVQtuZtB.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,39]))),An=l(()=>n(()=>import("./ChargeCardRoutes-Q_AcVfPK.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,31,22,19,20,18,32,26]))),En=l(()=>n(()=>import("./NotificationRoutes-BOCajdcJ.js"),__vite__mapDeps([61,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14]))),pn=l(()=>n(()=>import("./PerformanceRoutes-DAqkD2US.js"),__vite__mapDeps([62,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,22]))),In=l(()=>n(()=>import("./ExpenseAutomationRoutes-GuaeYvX3.js"),__vite__mapDeps([45,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,16,17,18,15,41,30]))),xn=l(()=>n(()=>import("./RewardsRoutes-DR53o9JA.js"),__vite__mapDeps([63,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,24,22]))),gn=l(()=>n(()=>import("./TaskRoutes-DxF_jRUO.js"),__vite__mapDeps([64,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,28,22,65]))),jn=l(()=>n(()=>import("./AiCfoScreen-Cg_pdlQK.js"),__vite__mapDeps([66,1,2,3,4,5,6,7,8,9,10,11,12,13,14,48]))),y=l(()=>n(()=>import("./NotFoundScreen-DGF4ewvh.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),Tn=l(()=>n(()=>import("./TaskListScreen-DF7HvN9h.js"),__vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,22])));function Gn({setTenantEmailDomain:i,isAiCfoOpen:v=!1,setIsAiCfoOpen:V}){const O=Ns(),Z=Ms(),{tenantEmailDomain:o}=Zs(),D=zs().mode,{setLoading:B,clearAllLoading:De,clearLoading:K}=$s(),R=b.getSignedInUserTenant(o)?.tenantId,T=b.getSignedInUser(),X=cs(T),z=Gs(),[N,Ce]=f.useState(!1),r=w(a=>ds(a)),{useFeatureGate:P}=Ys(),J=Ws(),fe=qs(),{isFeatureEnabled:ve}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Oe}=P(L.isExpenseAutomationEnabledV2),Pe=Oe||ve&&X,{isFeatureEnabled:Fe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Le}=P(L.isTreasuryEnabled),{isFeatureEnabled:ke}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:ne}=P(L.isDebitCardFeatureEnabled),h=w(a=>a.tenantState.fetchState),E=w(a=>a.tenantState.activeTenantFetchState.fetchState),u=E==="Completed"||h==="Completed"?ms(ne,r):void 0,$=E==="Completed"||h==="Completed"?us(r):void 0,Be=E==="Completed"||h==="Completed"?_s(r):void 0,Ve=ke||ne||!!Be||!!$||!!u,{isFeatureEnabled:Se}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ne}=P(L.isAiCfoFileUploadEnabled),Y=w(a=>As(a));if(o!=null){const a=b.getSignedInUserTenant(o);T!=null&&a!=null&&Ue(T,r,D)}const G={tenantId:R,userId:T?.userId,sessionId:T?.zeniSessionId},ae=Es(),A=Ks(),Me=r.company==null||A?.loggedInUserRoleMap!=null&&Ee(A.loggedInUserRole),Ze=ps(A?.loggedInUserRoleMap),te=f.useRef(!0),ie=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Ge=w(a=>G.tenantId!=null?Is(a,G.tenantId):void 0);f.useEffect(()=>{B(k.TENANT_FETCHING),i(o)},[o]),f.useEffect(()=>{if(Q!=null&&R!=null){const a=Q.params.selectedPeriod;if(a!=null){const U=a.split("-");if(U.length===2){const d=xs(Number(U[0])),s=Number(U[1]),m=gs(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=js();m.isAfter(M,"month")===!1?O(Ts(R,{month:d,year:s})):Z("./month_end_close_checks/review")}}}},[Q,R]),f.useEffect(()=>{N||(Ce(!0),B(k.TENANT_FETCHING)),te.current?te.current=!1:!hs(ae,G)&&b.isSignedIn()&&(B(k.TENANT_FETCHING),function(a,U,d,s){if(Ie(U?.userId,U?.zeniSessionId,a.tenantId),d(Vs(!0)),d(xe(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=b.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Js(s)),m?.tenantEmailDomain!=null&&b.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?ee.identify(a.userId,{tenant_id:a.tenantId}):ee.resetUserIdentity()}(G,T,O,Ge))},[G,ae,T,O,b]),f.useEffect(()=>{b.isSignedIn()&&(B(k.TENANT_FETCHING),function(a,U,d,s,m,M,S){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const W=s!=null&&m?.zeniSessionId!=null,rs=d==null||d.tenantId!==s,os=d!=null&&d.excludedResources==null,ls=d!=null&&d.externalConnections==null;if(W&&rs){S(xe(s));const q=b.getSignedInUserTenantWithId(s);q?.tenantEmailDomain!=null&&b.saveActiveTenantDomainForUser(q?.tenantEmailDomain),Ie(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),S(ge(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),S(je(m.userId,s)))}else W&&os&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),S(ge(m.userId,s))),W&&ls&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),S(je(m.userId,s)));if(W){ee.identify(m.userId,{tenant_id:s});const q=s==null||s!=null&&(U==="Completed"||U==="Error");a==="Completed"||U!=="Not-Started"&&U!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(k.TENANT_FETCHING),S(Ss(m.userId,s,m.zeniSessionId))),q&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),S(pe(m.userId,m.zeniSessionId)))}}(h,E,r,R,T,B,O))},[R,E]),f.useEffect(()=>{b.isSignedIn()&&h==="Completed"&&Y.tenantsBaseInOrder.length>0&&(K(k.TENANT_FETCHING),b.saveSignedInUserTenants(Us(Y.tenantsBaseInOrder)),T!=null&&Ue(T,r,D,void 0,Y.tenantsBaseInOrder))},[Y,h,r,T]),f.useEffect(()=>{E==="In-Progress"&&B(k.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&R!=null?(De(),_.markActiveTenantFetchCompleted(R)):E==="Error"&&R!=null&&(_.markActiveTenantFetchFailed(R),K(k.TENANT_FETCHING),K(k.TENANT_SWITCHING))),h!=="Completed"&&h!=="Error"||(h==="Completed"?_.markAllTenantsFetchCompleted():h==="Error"&&_.markAllTenantsFetchFailed())},[E,h,R,N]);const re=f.useRef(!1);f.useEffect(()=>{!re.current&&E==="Completed"&&N&&(re.current=!0,function(a=en,U=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Qs[m];M!=null?M().then(()=>se(()=>d(s+1))).catch(()=>se(()=>d(s+1))):d(s+1)};se(()=>d(0))},U)}())},[E,N]);const C=r?.userRole!=null&&bs(r?.userRole),{isFeatureEnabled:we}=P(L.isReferralFeatureEnabled),ze=r?.userRole!=null&&r.userRole.includes("charge_card_user"),$e=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ee(r.userRole),oe=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,le=Ve&&!C,Ye=Hs(A?.loggedInUserRoleMap),We=r.externalConnections?.accounting[0]?.isValid,ce=r.company?.companyOnboardingInfo.isOnboardingCompleted,de=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,me=de&&Rs(A?.loggedInUserRoleMap),ue=Fe&&!C,qe=r.company!=null&&ys(r.company),Ke=Le&&qe===!0&&!C,Xe=oe&&Ds(A?.loggedInUserRoleMap),Je=le&&Cs(A?.loggedInUserRoleMap),Qe=ue&&fs(A?.loggedInUserRoleMap),es=vs(A?.loggedInUserRoleMap),ss=Os(A?.loggedInUserRoleMap),p=Ps(A?.loggedInUserRoleMap),I=Fs(A?.loggedInUserRoleMap),x=Ls(A?.loggedInUserRoleMap),g=ks(A?.loggedInUserRoleMap),j=Bs(A?.loggedInUserRoleMap),_e=oe&&g,Ae=de&&j,ns=ue&&p,as=Ke&&I,ts=le&&x,is=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ze===!0||Ye===!0||es===!0||ss===!0;return b.isSignedIn()?R==null?h==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}):(T!=null&&h!=="In-Progress"&&O(pe(T.userId,T.zeniSessionId)),null):E!=="In-Progress"&&E!=="Not-Started"||h==="Completed"?(ce===!0||X&&!ie)&&We===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||ce!==!1||ie||X?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(A.loggedInUserRoleMap).length>0?e.jsx(ws,{children:e.jsxs(t,{element:e.jsx(Xs,{}),children:[e.jsx(t,{path:"/",element:e.jsx(hn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(cn,{isAiCfoOpen:v,setIsAiCfoOpen:V}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(sn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:is||F?e.jsx(an,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(tn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(rn,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||ze||$e?e.jsx(ln,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(_n,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(be,{entityType:"customer"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(be,{entityType:"vendor"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(Tn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(gn,{})}),e.jsx(t,{path:"address/*",element:Xe||me||Qe||Je?e.jsx(nn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:ns?e.jsx(mn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:as?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:fe?e.jsx(pn,{}):e.jsx(ye,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:Pe&&C===!1?e.jsx(In,{}):e.jsx(ye,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(En,{})}),e.jsx(t,{path:"vendors/*",element:Me?e.jsx(on,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:_e?e.jsx(He,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:_e?e.jsx(He,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:Ae?e.jsx(Re,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:Ae?e.jsx(Re,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:Se?e.jsx(dn,{hasAdminLevelAccess:me}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ts?e.jsx(An,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:we?e.jsx(xn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:J?e.jsx(jn,{setIsAiCfoOpen:V,isFileUploadEnabled:Ne}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}))}const hn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:v,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:O,isUserHasReimbursementAccess:Z,isUserHasTreasuryAccess:o,isTenantBankingOnly:D,isTenantCardsOnly:B})=>D===!0&&v?e.jsx(c,{to:"checking"}):B===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):v?e.jsx(c,{to:"checking"}):o?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):O?e.jsx(c,{to:"bills"}):Z?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),H=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:v,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:O,isUserHasTreasuryAccess:Z,isTenantBankingOnly:o,tenantEmailDomain:D})=>o===!0||i?e.jsx(Rn,{tenantEmailDomain:D}):Z?e.jsx(Hn,{tenantEmailDomain:D}):v?e.jsx(yn,{tenantEmailDomain:D}):V?e.jsx(bn,{tenantEmailDomain:D}):O?e.jsx(Un,{tenantEmailDomain:D}):e.jsx(y,{}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),bn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),Rn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),yn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),ye=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{H as FallBackRoute,Gn as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-DPYTQsIc.js","assets/pdf-LR9rRMEe.js","assets/zeni-epic-state-BDdTNPzg.js","assets/sentry-uXR4_KRo.js","assets/core-DuCBl3U1.js","assets/index-bPu7mlA1.js","assets/mui-CvPZa6D0.js","assets/recharts-7AyWv7E-.js","assets/lottie-DyJgmWhI.js","assets/liveblocks-UDiQs1XL.js","assets/dnd-BPJHdlPA.js","assets/analytics-hnA26KoH.js","assets/plaid-C4PyP873.js","assets/utils-DXqO5lkM.js","assets/index-D-vub4_t.css","assets/withTransactionSidePanel-BzT1kjjx.js","assets/TransactionDetailScreen-CAd4Ee0D.js","assets/decodeURIComponentSafe-B5ZlGWkv.js","assets/routePaths-rBllTjJq.js","assets/NotFoundScreen-CJqSMVfb.js","assets/analyticsHelper-C6d1RQIz.js","assets/CompanyPassportScreen-DzV8epiZ.js","assets/MobileAppDrawer-CKcdPSDd.js","assets/FeaturePreviewScreen-BUEayEBU.js","assets/ReferralListScreen-Bkepb1RS.js","assets/BillPayRoutes-DUDFuwtX.js","assets/AddressScreen-7cFlirZg.js","assets/DomesticWireDetailScreen-DdRhRffk.js","assets/useInitialThreadRequest-D7H0jhrF.js","assets/zeni-icon-only-Cldmtd10.js","assets/DrawerScreen-BgWdy-zB.js","assets/SetupPagesScreen-BDAmd8Nv.js","assets/BusinessVerificationPageScreen-DB2AuUe-.js","assets/BillPayApprovalRoutes-DSmRUBge.js","assets/ReimbursementApprovalRuleDetailScreen-Ud4xo4RE.js","assets/getLocaleForTenant-B4PeqeqG.js","assets/ReimbursementRoutes-kGf8y_Pc.js","assets/ReimbursementApprovalRoutes-B_Qw-_-n.js","assets/TransactionListRoutes-BhvTNW6M.js","assets/ZeniAccountStatementScreen-I7iDP5eY.js","assets/SettingsRoutes-BrYKFKqU.js","assets/accountMappingHelper-DeA_Vzuk.js","assets/ReportsRoutes-DaW9sMcm.js","assets/ChargeCardRoutes-B4WS6JPM.js","assets/PeopleRoutes-C0vyagIg.js","assets/ExpenseAutomationRoutes-D9vGLTe3.js","assets/TreasuryRoutes-CP_kclcP.js","assets/VendorsRoutes-0dl7Omuv.js","assets/pathToGoBack-BdyVSZWc.js","assets/ZeniAccountRoutes-CAjxqnTS.js","assets/AddressRoutes-D9ypa9JP.js","assets/PandLWithForecastRoutes-J6LmjJ1B.js","assets/CustomerOnboardingRoutes-Cii6REat.js","assets/QBOConnectionScreen-DROpihDX.js","assets/empty-BcYVHaFA.js","assets/pdf-lib-B2ywHAlU.js","assets/index-C0E4etuS.js","assets/url-DnJ-MRbo.js","assets/index-TFe4MZqS.js","assets/TransactionDetailRoutes-BqT5fc1q.js","assets/EntityDetailRoutes-jLGbxUaz.js","assets/NotificationRoutes-j0M-AVSa.js","assets/PerformanceRoutes-zXK3SrhB.js","assets/RewardsRoutes-ZPHX_bEI.js","assets/TaskRoutes-BGbHdjST.js","assets/TaskListScreen-BkKSoC_l.js","assets/AiCfoScreen-DoYaPaX9.js"])))=>i.map(i=>d[i]);
2
+ import{_ as n,bm as cs,ct as ds,cA as ms,cy as us,cz as _s,dm as As,cv as Es,bP as Ee,FY as ps,cS as Is,bF as xs,bG as gs,bs as js,cY as Ts,v as hs,Ha as Us,bt as bs,Hb as Hs,G5 as Rs,cV as ys,FX as Ds,F4 as Cs,F5 as fs,Hc as vs,Hd as Os,bM as Ps,bO as Fs,bN as Ls,bK as ks,bL as Bs,jC as pe,cu as Ie,He as Vs,c$ as xe,dr as ge,ds as je,d0 as Ss}from"./zeni-epic-state-BDdTNPzg.js";import{j as e}from"./pdf-LR9rRMEe.js";import{a as f}from"./sentry-uXR4_KRo.js";import{i as Ns,j as Ms,l as Zs,h as Gs,u as w,g as Te,N as c,R as ws,m as t}from"./core-DuCBl3U1.js";import{y as zs,jr as $s,js as b,aE as Ys,jx as Ws,aH as qs,aG as L,_ as Ks,jt as k,O as he,ju as _,jy as Xs,jz as ee,jA as l}from"./index-bPu7mlA1.js";import"./mui-CvPZa6D0.js";import{f as Ue}from"./analyticsHelper-C6d1RQIz.js";import{t as Js}from"./getLocaleForTenant-B4PeqeqG.js";import"./lottie-DyJgmWhI.js";import"./liveblocks-UDiQs1XL.js";import"./recharts-7AyWv7E-.js";import"./dnd-BPJHdlPA.js";import"./analytics-hnA26KoH.js";import"./plaid-C4PyP873.js";import"./utils-DXqO5lkM.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new i.Error().stack;v&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[v]="bd6f8e8d-f200-4f57-a19b-1a97407a80b7",i._sentryDebugIdIdentifier="sentry-dbid-bd6f8e8d-f200-4f57-a19b-1a97407a80b7")}catch{}})();const Qs={dashboard:()=>n(()=>import("./DashboardRoutes-DPYTQsIc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),bills:()=>n(()=>import("./BillPayRoutes-DUDFuwtX.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,26,19,27,28,29,30,22,23,31,20,18,32,33,34,35])),reimbursement:()=>n(()=>import("./ReimbursementRoutes-kGf8y_Pc.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23,28,30,37,34,35])),transactions:()=>n(()=>import("./TransactionListRoutes-BhvTNW6M.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,39])),settings:()=>n(()=>import("./SettingsRoutes-BrYKFKqU.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,22,41,26,19,20,32,18,21,33,34,37])),reports:()=>n(()=>import("./ReportsRoutes-DaW9sMcm.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,23,28,18,22])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-B4WS6JPM.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,31,22,19,20,18,32,26])),people:()=>n(()=>import("./PeopleRoutes-C0vyagIg.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,22])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-D9vGLTe3.js"),__vite__mapDeps([45,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,16,17,18,15,41,30])),treasury:()=>n(()=>import("./TreasuryRoutes-CP_kclcP.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23])),vendors:()=>n(()=>import("./VendorsRoutes-0dl7Omuv.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,26,19,23,18,48,22,29,30,41])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes-CAjxqnTS.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23,27,26,39]))},en=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],se=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},sn=l(()=>n(()=>import("./ReportsRoutes-DaW9sMcm.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,23,28,18,22]))),nn=l(()=>n(()=>import("./AddressRoutes-D9ypa9JP.js"),__vite__mapDeps([50,1,2,3,4,26,5,6,7,8,9,10,11,12,13,14,19]))),an=l(()=>n(()=>import("./PeopleRoutes-C0vyagIg.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,22]))),tn=l(()=>n(()=>import("./PandLWithForecastRoutes-J6LmjJ1B.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,23,18,22]))),rn=l(()=>n(()=>import("./CustomerOnboardingRoutes-Cii6REat.js"),__vite__mapDeps([52,1,2,3,4,26,5,6,7,8,9,10,11,12,13,14,19,53,54,55,56,57,58,17]))),on=l(()=>n(()=>import("./VendorsRoutes-0dl7Omuv.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,26,19,23,18,48,22,29,30,41]))),ln=l(()=>n(()=>import("./TransactionDetailRoutes-BqT5fc1q.js"),__vite__mapDeps([59,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,16,17,18]))),be=l(()=>n(()=>import("./EntityDetailRoutes-jLGbxUaz.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,15,16,18]))),cn=l(()=>n(()=>import("./DashboardRoutes-DPYTQsIc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]))),He=l(()=>n(()=>import("./BillPayRoutes-DUDFuwtX.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,26,19,27,28,29,30,22,23,31,20,18,32,33,34,35]))),dn=l(()=>n(()=>import("./SettingsRoutes-BrYKFKqU.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,11,12,13,14,22,41,26,19,20,32,18,21,33,34,37]))),Re=l(()=>n(()=>import("./ReimbursementRoutes-kGf8y_Pc.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23,28,30,37,34,35]))),mn=l(()=>n(()=>import("./ZeniAccountRoutes-CAjxqnTS.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23,27,26,39]))),un=l(()=>n(()=>import("./TreasuryRoutes-CP_kclcP.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,31,22,20,18,32,23]))),_n=l(()=>n(()=>import("./TransactionListRoutes-BhvTNW6M.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,39]))),An=l(()=>n(()=>import("./ChargeCardRoutes-B4WS6JPM.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,31,22,19,20,18,32,26]))),En=l(()=>n(()=>import("./NotificationRoutes-j0M-AVSa.js"),__vite__mapDeps([61,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14]))),pn=l(()=>n(()=>import("./PerformanceRoutes-zXK3SrhB.js"),__vite__mapDeps([62,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,22]))),In=l(()=>n(()=>import("./ExpenseAutomationRoutes-D9vGLTe3.js"),__vite__mapDeps([45,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,16,17,18,15,41,30]))),xn=l(()=>n(()=>import("./RewardsRoutes-ZPHX_bEI.js"),__vite__mapDeps([63,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,24,22]))),gn=l(()=>n(()=>import("./TaskRoutes-BGbHdjST.js"),__vite__mapDeps([64,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,28,22,65]))),jn=l(()=>n(()=>import("./AiCfoScreen-DoYaPaX9.js"),__vite__mapDeps([66,1,2,3,4,5,6,7,8,9,10,11,12,13,14,48]))),y=l(()=>n(()=>import("./NotFoundScreen-CJqSMVfb.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),Tn=l(()=>n(()=>import("./TaskListScreen-BkKSoC_l.js"),__vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,22])));function Gn({setTenantEmailDomain:i,isAiCfoOpen:v=!1,setIsAiCfoOpen:V}){const O=Ns(),Z=Ms(),{tenantEmailDomain:o}=Zs(),D=zs().mode,{setLoading:B,clearAllLoading:De,clearLoading:K}=$s(),R=b.getSignedInUserTenant(o)?.tenantId,T=b.getSignedInUser(),X=cs(T),z=Gs(),[N,Ce]=f.useState(!1),r=w(a=>ds(a)),{useFeatureGate:P}=Ys(),J=Ws(),fe=qs(),{isFeatureEnabled:ve}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Oe}=P(L.isExpenseAutomationEnabledV2),Pe=Oe||ve&&X,{isFeatureEnabled:Fe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Le}=P(L.isTreasuryEnabled),{isFeatureEnabled:ke}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:ne}=P(L.isDebitCardFeatureEnabled),h=w(a=>a.tenantState.fetchState),E=w(a=>a.tenantState.activeTenantFetchState.fetchState),u=E==="Completed"||h==="Completed"?ms(ne,r):void 0,$=E==="Completed"||h==="Completed"?us(r):void 0,Be=E==="Completed"||h==="Completed"?_s(r):void 0,Ve=ke||ne||!!Be||!!$||!!u,{isFeatureEnabled:Se}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ne}=P(L.isAiCfoFileUploadEnabled),Y=w(a=>As(a));if(o!=null){const a=b.getSignedInUserTenant(o);T!=null&&a!=null&&Ue(T,r,D)}const G={tenantId:R,userId:T?.userId,sessionId:T?.zeniSessionId},ae=Es(),A=Ks(),Me=r.company==null||A?.loggedInUserRoleMap!=null&&Ee(A.loggedInUserRole),Ze=ps(A?.loggedInUserRoleMap),te=f.useRef(!0),ie=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Ge=w(a=>G.tenantId!=null?Is(a,G.tenantId):void 0);f.useEffect(()=>{B(k.TENANT_FETCHING),i(o)},[o]),f.useEffect(()=>{if(Q!=null&&R!=null){const a=Q.params.selectedPeriod;if(a!=null){const U=a.split("-");if(U.length===2){const d=xs(Number(U[0])),s=Number(U[1]),m=gs(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=js();m.isAfter(M,"month")===!1?O(Ts(R,{month:d,year:s})):Z("./month_end_close_checks/review")}}}},[Q,R]),f.useEffect(()=>{N||(Ce(!0),B(k.TENANT_FETCHING)),te.current?te.current=!1:!hs(ae,G)&&b.isSignedIn()&&(B(k.TENANT_FETCHING),function(a,U,d,s){if(Ie(U?.userId,U?.zeniSessionId,a.tenantId),d(Vs(!0)),d(xe(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=b.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Js(s)),m?.tenantEmailDomain!=null&&b.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?ee.identify(a.userId,{tenant_id:a.tenantId}):ee.resetUserIdentity()}(G,T,O,Ge))},[G,ae,T,O,b]),f.useEffect(()=>{b.isSignedIn()&&(B(k.TENANT_FETCHING),function(a,U,d,s,m,M,S){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const W=s!=null&&m?.zeniSessionId!=null,rs=d==null||d.tenantId!==s,os=d!=null&&d.excludedResources==null,ls=d!=null&&d.externalConnections==null;if(W&&rs){S(xe(s));const q=b.getSignedInUserTenantWithId(s);q?.tenantEmailDomain!=null&&b.saveActiveTenantDomainForUser(q?.tenantEmailDomain),Ie(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),S(ge(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),S(je(m.userId,s)))}else W&&os&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),S(ge(m.userId,s))),W&&ls&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),S(je(m.userId,s)));if(W){ee.identify(m.userId,{tenant_id:s});const q=s==null||s!=null&&(U==="Completed"||U==="Error");a==="Completed"||U!=="Not-Started"&&U!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(k.TENANT_FETCHING),S(Ss(m.userId,s,m.zeniSessionId))),q&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),S(pe(m.userId,m.zeniSessionId)))}}(h,E,r,R,T,B,O))},[R,E]),f.useEffect(()=>{b.isSignedIn()&&h==="Completed"&&Y.tenantsBaseInOrder.length>0&&(K(k.TENANT_FETCHING),b.saveSignedInUserTenants(Us(Y.tenantsBaseInOrder)),T!=null&&Ue(T,r,D,void 0,Y.tenantsBaseInOrder))},[Y,h,r,T]),f.useEffect(()=>{E==="In-Progress"&&B(k.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&R!=null?(De(),_.markActiveTenantFetchCompleted(R)):E==="Error"&&R!=null&&(_.markActiveTenantFetchFailed(R),K(k.TENANT_FETCHING),K(k.TENANT_SWITCHING))),h!=="Completed"&&h!=="Error"||(h==="Completed"?_.markAllTenantsFetchCompleted():h==="Error"&&_.markAllTenantsFetchFailed())},[E,h,R,N]);const re=f.useRef(!1);f.useEffect(()=>{!re.current&&E==="Completed"&&N&&(re.current=!0,function(a=en,U=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Qs[m];M!=null?M().then(()=>se(()=>d(s+1))).catch(()=>se(()=>d(s+1))):d(s+1)};se(()=>d(0))},U)}())},[E,N]);const C=r?.userRole!=null&&bs(r?.userRole),{isFeatureEnabled:we}=P(L.isReferralFeatureEnabled),ze=r?.userRole!=null&&r.userRole.includes("charge_card_user"),$e=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ee(r.userRole),oe=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,le=Ve&&!C,Ye=Hs(A?.loggedInUserRoleMap),We=r.externalConnections?.accounting[0]?.isValid,ce=r.company?.companyOnboardingInfo.isOnboardingCompleted,de=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,me=de&&Rs(A?.loggedInUserRoleMap),ue=Fe&&!C,qe=r.company!=null&&ys(r.company),Ke=Le&&qe===!0&&!C,Xe=oe&&Ds(A?.loggedInUserRoleMap),Je=le&&Cs(A?.loggedInUserRoleMap),Qe=ue&&fs(A?.loggedInUserRoleMap),es=vs(A?.loggedInUserRoleMap),ss=Os(A?.loggedInUserRoleMap),p=Ps(A?.loggedInUserRoleMap),I=Fs(A?.loggedInUserRoleMap),x=Ls(A?.loggedInUserRoleMap),g=ks(A?.loggedInUserRoleMap),j=Bs(A?.loggedInUserRoleMap),_e=oe&&g,Ae=de&&j,ns=ue&&p,as=Ke&&I,ts=le&&x,is=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ze===!0||Ye===!0||es===!0||ss===!0;return b.isSignedIn()?R==null?h==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}):(T!=null&&h!=="In-Progress"&&O(pe(T.userId,T.zeniSessionId)),null):E!=="In-Progress"&&E!=="Not-Started"||h==="Completed"?(ce===!0||X&&!ie)&&We===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||ce!==!1||ie||X?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(A.loggedInUserRoleMap).length>0?e.jsx(ws,{children:e.jsxs(t,{element:e.jsx(Xs,{}),children:[e.jsx(t,{path:"/",element:e.jsx(hn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(cn,{isAiCfoOpen:v,setIsAiCfoOpen:V}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(sn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:is||F?e.jsx(an,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(tn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(rn,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||ze||$e?e.jsx(ln,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(_n,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(be,{entityType:"customer"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(be,{entityType:"vendor"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(Tn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(gn,{})}),e.jsx(t,{path:"address/*",element:Xe||me||Qe||Je?e.jsx(nn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:ns?e.jsx(mn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:as?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:fe?e.jsx(pn,{}):e.jsx(ye,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:Pe&&C===!1?e.jsx(In,{}):e.jsx(ye,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(En,{})}),e.jsx(t,{path:"vendors/*",element:Me?e.jsx(on,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:_e?e.jsx(He,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:_e?e.jsx(He,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:Ae?e.jsx(Re,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:Ae?e.jsx(Re,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:Se?e.jsx(dn,{hasAdminLevelAccess:me}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ts?e.jsx(An,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:we?e.jsx(xn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:J?e.jsx(jn,{setIsAiCfoOpen:V,isFileUploadEnabled:Ne}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}))}const hn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:v,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:O,isUserHasReimbursementAccess:Z,isUserHasTreasuryAccess:o,isTenantBankingOnly:D,isTenantCardsOnly:B})=>D===!0&&v?e.jsx(c,{to:"checking"}):B===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):v?e.jsx(c,{to:"checking"}):o?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):O?e.jsx(c,{to:"bills"}):Z?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),H=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:v,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:O,isUserHasTreasuryAccess:Z,isTenantBankingOnly:o,tenantEmailDomain:D})=>o===!0||i?e.jsx(Rn,{tenantEmailDomain:D}):Z?e.jsx(Hn,{tenantEmailDomain:D}):v?e.jsx(yn,{tenantEmailDomain:D}):V?e.jsx(bn,{tenantEmailDomain:D}):O?e.jsx(Un,{tenantEmailDomain:D}):e.jsx(y,{}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),bn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),Rn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),yn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),ye=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{H as FallBackRoute,Gn as default};