@zeniai/web-app-ui 4.14.36-next → 4.14.36-qa

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 (345) hide show
  1. package/dist/assets/{ACHDetailsPage-fOu5grd7-C7pw3Qei.js → ACHDetailsPage-fOu5grd7-BgitUCnK.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Da3gFo8A-C0hXrRck.js → AIPerformancePage-Da3gFo8A-B6fd9yMu.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-o7hTXtgZ-CI5vmQ8P.js → AccountInfoPage-o7hTXtgZ-NjcAzXFT.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DqErO8FH-DcRbBfvK.js → AccountInfoPageContent-DqErO8FH-BeoOImtE.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BJjCuLHa-Dcqy6dGS.js → AccountLockedInfoModal-BJjCuLHa-Dwc4Twfa.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CVjH1p0d-CYH-LEVG.js → AccountReconDetailsDrawerPage-CVjH1p0d-B1ewqXBW.js} +1 -1
  7. package/dist/assets/{AccountRow-CpftykFx-uD-f3g0V.js → AccountRow-CpftykFx-BJ3WZo2I.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-D7xvgmOH-BEn6fDEy.js → AccountsPromoCardStack-D7xvgmOH-B_Z0IcIc.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-vecchYEf-CV9NX_v9.js → AddAddressForCardDrawer-vecchYEf-lmlcPBf7.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-zJy9QCjx-CN4Gc2l7.js → AddToWalletPage-zJy9QCjx-CAgD66cB.js} +1 -1
  11. package/dist/assets/{AddressRoutes-DQolOeHT.js → AddressRoutes-BeSQWOrw.js} +1 -1
  12. package/dist/assets/{AddressScreen-Sz_h2Ufw.js → AddressScreen-CE8x2lDp.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-wAvQb1d8-CgWnsA_F.js → AgingReportsPage-wAvQb1d8-bRB2pbCU.js} +1 -1
  14. package/dist/assets/{AiCfoScreen-ChmPOKZy.js → AiCfoScreen-BszigZh8.js} +1 -1
  15. package/dist/assets/{AllUserItems-DEv_CXOA-hgSViaKc.js → AllUserItems-DEv_CXOA-D8XKRK3i.js} +1 -1
  16. package/dist/assets/{ApAgingDetailPage-BOV1WFVF-DPpUGWPI.js → ApAgingDetailPage-BOV1WFVF-Bn0q4RYM.js} +1 -1
  17. package/dist/assets/{AppBasePage-DMlomvFS-x3AC7Ikc.js → AppBasePage-DMlomvFS-CQMcvMHZ.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-Dc2sHnR3-KKwV4T9e.js → AppDrawerContent-Dc2sHnR3-B11HecZn.js} +1 -1
  19. package/dist/assets/{ApprovalRulesSettingsPage-BnbPSy4U-D9f68i3U.js → ApprovalRulesSettingsPage-BnbPSy4U-CIEnHFVH.js} +1 -1
  20. package/dist/assets/{ArAgingChart-m-Xp3HAW-D2W8RYii.js → ArAgingChart-m-Xp3HAW-CnkoHC-y.js} +1 -1
  21. package/dist/assets/{ArAgingDetailPage-b_NpDpWj-CYvO08T-.js → ArAgingDetailPage-b_NpDpWj-B3kCWqKT.js} +1 -1
  22. package/dist/assets/{AttachmentView-DB_V1qT1-ynsldz9P.js → AttachmentView-DB_V1qT1-CUnw9dFs.js} +1 -1
  23. package/dist/assets/{BankAccountSection-BabhrBM7-tNERGuyU.js → BankAccountSection-BabhrBM7-CjKNHuqx.js} +1 -1
  24. package/dist/assets/{BankAccountWarningSection-yT2UAd12-B_s6Cv5O.js → BankAccountWarningSection-yT2UAd12-DDru0TbG.js} +1 -1
  25. package/dist/assets/{BankConnectionsSettingsPage-CbxXykMM--uRUu7H7.js → BankConnectionsSettingsPage-CbxXykMM-DSyYDFRR.js} +1 -1
  26. package/dist/assets/{BillDetailPage-7TMkWo3V-BkEALTcS.js → BillDetailPage-7TMkWo3V-Bx_V8TNq.js} +1 -1
  27. package/dist/assets/{BillPayApprovalRoutes-DuHAqKTx.js → BillPayApprovalRoutes-D-Lr-knt.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRuleDetailPage-COyDRpaF-CfqZ8tC3.js → BillPayApprovalRuleDetailPage-COyDRpaF-Cw59nmg3.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRulesPage-9pxkgFAT-Do1nsgI9.js → BillPayApprovalRulesPage-9pxkgFAT-C0fukcC-.js} +1 -1
  30. package/dist/assets/{BillPayPromoPage-AGffhbY3-BRx4Bi83.js → BillPayPromoPage-AGffhbY3-CtBTCqHG.js} +1 -1
  31. package/dist/assets/{BillPayRoutes-DoxfX2T6.js → BillPayRoutes-CLxgVQoZ.js} +1 -1
  32. package/dist/assets/{BillPaySetUpPage-Cs5rkWBu-BhJ7KaHp.js → BillPaySetUpPage-Cs5rkWBu-uFttJJzg.js} +1 -1
  33. package/dist/assets/{BillingSettingsPage-CQ117tT9-B8U9v3YD.js → BillingSettingsPage-CQ117tT9-BttuaXcF.js} +1 -1
  34. package/dist/assets/{BillsBulkReviewDrawerPage-DRkGQQAe-Bi0Uk8xW.js → BillsBulkReviewDrawerPage-DRkGQQAe-DERm9Zoh.js} +1 -1
  35. package/dist/assets/{BoxItem-DRwx0M5a-Dnn7OtZ6.js → BoxItem-DRwx0M5a-CDlEJbUh.js} +1 -1
  36. package/dist/assets/{BusinessVerificationPage-1h0z3N9u-BHySFpyz.js → BusinessVerificationPage-1h0z3N9u-RMOZ1n1-.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPageScreen-BdThFZ9q.js → BusinessVerificationPageScreen-CsiX3KGh.js} +1 -1
  38. package/dist/assets/{BusyIndication-DizZe0Gu-LbAFsXLH.js → BusyIndication-DizZe0Gu-1EWobmeT.js} +1 -1
  39. package/dist/assets/{CardNumberSubText-DqtLT1w5-B-of7dU2.js → CardNumberSubText-DqtLT1w5-3-jd_gkY.js} +1 -1
  40. package/dist/assets/{CashbackDetailPage-ChdQcvkC-HPdNc4Y_.js → CashbackDetailPage-ChdQcvkC-ICsGmTUH.js} +1 -1
  41. package/dist/assets/{ChargeCardDetailPage-DFOKlPNG-Bq3JFtZ0.js → ChargeCardDetailPage-DFOKlPNG-DAT7wsUl.js} +1 -1
  42. package/dist/assets/{ChargeCardListPage-DhLUsUhd-BezWrrpD.js → ChargeCardListPage-DhLUsUhd-Cb0G0I2o.js} +1 -1
  43. package/dist/assets/{ChargeCardListTable-DE72YU_i-CVOGLWmK.js → ChargeCardListTable-DE72YU_i-CnPve3es.js} +1 -1
  44. package/dist/assets/{ChargeCardPaymentHistoryPage-CbGR18s--B7rNakYK.js → ChargeCardPaymentHistoryPage-CbGR18s--D1FALKZp.js} +1 -1
  45. package/dist/assets/{ChargeCardPromoPage-CPpNh89o-CFvrdct7.js → ChargeCardPromoPage-CPpNh89o-CvxWAl-t.js} +1 -1
  46. package/dist/assets/{ChargeCardRoutes-C01rd9YM.js → ChargeCardRoutes-B2VyUVyE.js} +1 -1
  47. package/dist/assets/{ChargeCardSetupPage-ITi25kUD-4I5XPlxg.js → ChargeCardSetupPage-ITi25kUD-DQrLuHzm.js} +1 -1
  48. package/dist/assets/{ChargeCardStatementsPage-CTJc1BCc-COSIU9xw.js → ChargeCardStatementsPage-CTJc1BCc-B3iOfWLi.js} +1 -1
  49. package/dist/assets/{CheckDepositDrawerPage-BrzeSj-3-C4sH9hpp.js → CheckDepositDrawerPage-BrzeSj-3-qP1HtOIM.js} +1 -1
  50. package/dist/assets/{CollapsableReportTable-CDEe9s_E-CWbosJ7t.js → CollapsableReportTable-CDEe9s_E-BVFWKHUA.js} +1 -1
  51. package/dist/assets/{CompanyOfficerDetailsSection-BaPhFsLx-Dk4NXxuC.js → CompanyOfficerDetailsSection-BaPhFsLx-DHUewusV.js} +1 -1
  52. package/dist/assets/{CompanyPassportCard-B9ymV6Az-FYtT8w0z.js → CompanyPassportCard-B9ymV6Az-CvyAeev5.js} +1 -1
  53. package/dist/assets/{CompanyPassportPage-BQ68t7oK-DIpqE1Jo.js → CompanyPassportPage-BQ68t7oK-BgIAIBvG.js} +1 -1
  54. package/dist/assets/{CompanyPassportScreen-CKvA-EmO.js → CompanyPassportScreen-UiOT42U6.js} +1 -1
  55. package/dist/assets/{CompleteProfile-C5n9b8gQ-puTHwoa4.js → CompleteProfile-C5n9b8gQ-BqfKsPPd.js} +1 -1
  56. package/dist/assets/{ConfettiBurst-BizTW0hz-ibKLuPEv.js → ConfettiBurst-BizTW0hz-BTsH0Adk.js} +1 -1
  57. package/dist/assets/{ConnectionAuthScreen-BaKBr2zg.js → ConnectionAuthScreen-hHSL4PoV.js} +1 -1
  58. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-s3-3Z-gA.js → ConstrainedInnerElement-BeIpAPjB-2qMgM4hb.js} +1 -1
  59. package/dist/assets/{CreateOrEditVendorPage-BIfOA5Nr-C94kLwSo.js → CreateOrEditVendorPage-BIfOA5Nr-DmMOi9Py.js} +1 -1
  60. package/dist/assets/{CreditCardPaymentDrawerPage-CCpS-31h-BkmEdayg.js → CreditCardPaymentDrawerPage-CCpS-31h-D2E09eId.js} +1 -1
  61. package/dist/assets/{CurrencySelectField-KvKyemY6-BCtUTOpg.js → CurrencySelectField-KvKyemY6-Bi0fspzF.js} +1 -1
  62. package/dist/assets/{CustomerOnboardingActivationPage-6VlMI4oY-DeMdKyDt.js → CustomerOnboardingActivationPage-6VlMI4oY-C6UkeafC.js} +1 -1
  63. package/dist/assets/CustomerOnboardingAuthScreen-DMW5eYly.js +1 -0
  64. package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-p4P1_J3p.js +1 -0
  65. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BzbZb27J-DIp-B8Eo.js → CustomerOnboardingDetailPageSkeleton-BzbZb27J-BjFDDxCU.js} +1 -1
  66. package/dist/assets/{CustomerOnboardingNoStepsPage-CWF_00EM-CLvcWk0H.js → CustomerOnboardingNoStepsPage-CWF_00EM-BKydcoC-.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingPage-DkW66A-p-BTo5QwFe.js → CustomerOnboardingPage-DkW66A-p-CqCCkCYq.js} +1 -1
  68. package/dist/assets/{CustomerOnboardingProductSuitePage-Ba0yotpP-DvvqHygF.js → CustomerOnboardingProductSuitePage-Ba0yotpP-B65VLjH4.js} +1 -1
  69. package/dist/assets/{CustomerOnboardingRoutes-DUHs6wCe.js → CustomerOnboardingRoutes-BbuQETSm.js} +1 -1
  70. package/dist/assets/{Dashboard-bX3cWkmP-Cc0jEbvZ.js → Dashboard-bX3cWkmP-D2iKKw2J.js} +1 -1
  71. package/dist/assets/{DashboardReportPage-DuZ4d4CE-Cd65Ddu3.js → DashboardReportPage-DuZ4d4CE-Cp1XRSMC.js} +1 -1
  72. package/dist/assets/{DashboardRoutes-DgAbb01S.js → DashboardRoutes-CXkTMDXA.js} +1 -1
  73. package/dist/assets/{DashboardSidebarBackgroundAnimation-UV2CZToG-kycl4Bed.js → DashboardSidebarBackgroundAnimation-UV2CZToG-BePjXuRd.js} +1 -1
  74. package/dist/assets/{DefaultTenantHome-NOng4kPe.js → DefaultTenantHome-DAGhRU2p.js} +1 -1
  75. package/dist/assets/{DepositAccTransactionItem-BY_OvuKg-vrn3jxtY.js → DepositAccTransactionItem-BY_OvuKg-BV-rFk5q.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionListPage-a__bpCOB-gP4j_R4A.js → DepositAccTransactionListPage-a__bpCOB-CF9PDDNQ.js} +1 -1
  77. package/dist/assets/{DomesticWireDetailScreen-D-80T6qK.js → DomesticWireDetailScreen-DacvZAfq.js} +1 -1
  78. package/dist/assets/{DomesticWireDetailsPage-BumMT4QM-BXynjfhi.js → DomesticWireDetailsPage-BumMT4QM-xDzQX0lF.js} +1 -1
  79. package/dist/assets/{DownloadOverlay-DqiL3-FB-HBtpf6ff.js → DownloadOverlay-DqiL3-FB-DATHjVq3.js} +1 -1
  80. package/dist/assets/{DrawerPage-CaG-xx5d-BH1rpbyw.js → DrawerPage-CaG-xx5d-DCOdzFu5.js} +1 -1
  81. package/dist/assets/{DrawerScreen-PuONww5M.js → DrawerScreen-B1Tmjk6I.js} +1 -1
  82. package/dist/assets/{EditPeoplePage-BcsdEp_d-DeMMzCYr.js → EditPeoplePage-BcsdEp_d-83JmqDcO.js} +1 -1
  83. package/dist/assets/{EditReimbursementDetailPage-DNUmwdsH-BqyuZrYu.js → EditReimbursementDetailPage-DNUmwdsH-BwDh21om.js} +1 -1
  84. package/dist/assets/{EntityDetailPage-DtX5TjBc-BWvKOwgG.js → EntityDetailPage-DtX5TjBc-C1gOmTYV.js} +1 -1
  85. package/dist/assets/{EntityDetailRoutes-C3aUb0lp.js → EntityDetailRoutes-DH6Oay7j.js} +1 -1
  86. package/dist/assets/{EntitySummarySection-LEA5m6mN-D82QzUIE.js → EntitySummarySection-LEA5m6mN-COsxmiXN.js} +1 -1
  87. package/dist/assets/{ExpenseAutomationOverviewPage-Dmhn7gfp-5RPQ-KAY.js → ExpenseAutomationOverviewPage-Dmhn7gfp-DRKfvdpQ.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationPage-B8C4BxoV-YQVNG4uz.js → ExpenseAutomationPage-B8C4BxoV-DDvaiJ6I.js} +1 -1
  89. package/dist/assets/{ExpenseAutomationRoutes-Jp2Kebgt.js → ExpenseAutomationRoutes-CVAejH_S.js} +1 -1
  90. package/dist/assets/{ExpressPayPage-C-nqret2-DNNXwMDO.js → ExpressPayPage-C-nqret2-KetoqTaI.js} +1 -1
  91. package/dist/assets/{FeaturePreviewPage-BHjUZ7s6-t0bIsEzl.js → FeaturePreviewPage-BHjUZ7s6-CDfaoOXm.js} +1 -1
  92. package/dist/assets/{FeaturePreviewScreen-fP1RCpGB.js → FeaturePreviewScreen-DqxtfQjE.js} +1 -1
  93. package/dist/assets/{FollowStepsSection-0eFMS0c5-BlZYARd4.js → FollowStepsSection-0eFMS0c5-BaucUfRt.js} +1 -1
  94. package/dist/assets/{GlobalReviewListPage-4eiopkzw-TKRoPg_U.js → GlobalReviewListPage-4eiopkzw-B9-MVo2q.js} +1 -1
  95. package/dist/assets/{InformationCardStack-C7XJCUlh-Dwq0vYPb.js → InformationCardStack-C7XJCUlh-DjdOTgGS.js} +1 -1
  96. package/dist/assets/{InsightsCardStack-fBAbQwhK-CClQ8prE.js → InsightsCardStack-fBAbQwhK-Ben65oUn.js} +1 -1
  97. package/dist/assets/{InsightsSection-De9zu_me-B3w5uHEa.js → InsightsSection-De9zu_me-BVBRSj8O.js} +1 -1
  98. package/dist/assets/{IntegrationsSettingsPage-BD5jqAv8-eTb5yFAM.js → IntegrationsSettingsPage-BD5jqAv8-jCqAB96Y.js} +1 -1
  99. package/dist/assets/{InternationalWireSwiftDetailsPage-BftrE612-DsOGbUKE.js → InternationalWireSwiftDetailsPage-BftrE612-C1oqAYKw.js} +1 -1
  100. package/dist/assets/{InternationalWireVerificationPage-CDf7equc-Bw5S4GCg.js → InternationalWireVerificationPage-CDf7equc-BWfDz-qh.js} +1 -1
  101. package/dist/assets/{InviteFormPage-E2igwKEh-DkTmeZKB.js → InviteFormPage-E2igwKEh-BfamEOA0.js} +1 -1
  102. package/dist/assets/{InvitePageListView-Cuq9dlgu-Y8JpMqvK.js → InvitePageListView-Cuq9dlgu-BswYJOcw.js} +1 -1
  103. package/dist/assets/{InvitePeoplePage-Db4P4ZEq-CepSKyhb.js → InvitePeoplePage-Db4P4ZEq-D8yQs7Vc.js} +1 -1
  104. package/dist/assets/{InvoiceUploadSection-DYCjz9CI-DsqvKiVT.js → InvoiceUploadSection-DYCjz9CI-CGqj6KTI.js} +1 -1
  105. package/dist/assets/{IssueChargeCardPage-CK6fnO24-DrpIpT7t.js → IssueChargeCardPage-CK6fnO24-CZaBXPmq.js} +1 -1
  106. package/dist/assets/{LabeledAddressValue-Ma1WURjK-PEkR4sMS.js → LabeledAddressValue-Ma1WURjK-SOyeFnDb.js} +1 -1
  107. package/dist/assets/{LabeledAddressValueField-C6-hVsPb-DpefLTXR.js → LabeledAddressValueField-C6-hVsPb-Cx3qxpIQ.js} +1 -1
  108. package/dist/assets/{LabeledControlledCheckBoxField-CgZg0uOW-tciXUImW.js → LabeledControlledCheckBoxField-CgZg0uOW-CRnqdJf1.js} +1 -1
  109. package/dist/assets/{LabeledCountryMultiSelectField-sj8p7Rne-BvAG6B9f.js → LabeledCountryMultiSelectField-sj8p7Rne-BB5IjdKT.js} +1 -1
  110. package/dist/assets/{LabeledCreatableSingleSelectField-DUTQh416-BmK87V1S.js → LabeledCreatableSingleSelectField-DUTQh416-C_C7TgJg.js} +1 -1
  111. package/dist/assets/{LabeledDocumentField-Bp9m-OrP-BKL6LfIV.js → LabeledDocumentField-Bp9m-OrP-BZJ1R-di.js} +1 -1
  112. package/dist/assets/{LabeledDropDownFormattedTextField-3-KekP79-BHQjQNME.js → LabeledDropDownFormattedTextField-3-KekP79-BFouZsyb.js} +1 -1
  113. package/dist/assets/{LabeledEmailInputField-BRJyFvVd-CWyEMpTm.js → LabeledEmailInputField-BRJyFvVd-CLFwXbdl.js} +1 -1
  114. package/dist/assets/{LabeledNameField--saAep-_-DOt6Hp9d.js → LabeledNameField--saAep-_-CReVVQpK.js} +1 -1
  115. package/dist/assets/{LabeledSingleSelectField-Ul4tlTiO-CxC4bb_M.js → LabeledSingleSelectField-Ul4tlTiO-B5-cTLoa.js} +1 -1
  116. package/dist/assets/{LabeledText-DvzVOku6-BTuTGL_7.js → LabeledText-DvzVOku6-C1r6b0lJ.js} +1 -1
  117. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-B-ShzOTy.js → LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-Dfj0gvkd.js} +1 -1
  118. package/dist/assets/{LabeledZeniRolesDropDownField-kWC0ShEy-Cov_KSbw.js → LabeledZeniRolesDropDownField-kWC0ShEy-BPt5mqTD.js} +1 -1
  119. package/dist/assets/{LinkJETransactionPage-WufhDGDQ-DJYaTU0L.js → LinkJETransactionPage-WufhDGDQ-CzSZY5Ji.js} +1 -1
  120. package/dist/assets/{LockCardPage-BBIVLYVD-5-idEiOd.js → LockCardPage-BBIVLYVD-CLo11134.js} +1 -1
  121. package/dist/assets/{LowBalancePopup-ScEqPY9J-DaHnHp3d.js → LowBalancePopup-ScEqPY9J-wCMhmKTa.js} +1 -1
  122. package/dist/assets/{MagicLinkACHDetailsPage-C494txw0-50tvGRCT.js → MagicLinkACHDetailsPage-C494txw0-B6Ad2Ian.js} +1 -1
  123. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CONBCbOQ-BJ0ZX254.js → MagicLinkDomesticWireDetailsPage-CONBCbOQ-BnDh5s_P.js} +1 -1
  124. package/dist/assets/{MagicLinkInternationalWireDetailsPage-fSY3JGpz-BA-UJ98j.js → MagicLinkInternationalWireDetailsPage-fSY3JGpz-DQpa109r.js} +1 -1
  125. package/dist/assets/{MagicLinkRoutes-CG7mBUHK.js → MagicLinkRoutes-DGEyZyp5.js} +1 -1
  126. package/dist/assets/{MagicLinkSignInScreen-DckuWYZS.js → MagicLinkSignInScreen-CeYyqoa0.js} +1 -1
  127. package/dist/assets/{MagicLinkSuccessPage-BDRXSAO4-CMnLHn5s.js → MagicLinkSuccessPage-BDRXSAO4-Te4RRaTi.js} +1 -1
  128. package/dist/assets/{MagicLinkTitleSection-ZnbKPIvJ-ckYpUfqV.js → MagicLinkTitleSection-ZnbKPIvJ-C28UB4ql.js} +1 -1
  129. package/dist/assets/{MailingDetailsSection-DZT7JPlI-LlM6fEiJ.js → MailingDetailsSection-DZT7JPlI-C38hqmub.js} +1 -1
  130. package/dist/assets/{MobileAppDrawer-sKiHtZDX.js → MobileAppDrawer-B2Fzw8F_.js} +1 -1
  131. package/dist/assets/{MoreMenuButton-CJue6xR9-BjKpSdxL.js → MoreMenuButton-CJue6xR9-DaOmUQCK.js} +1 -1
  132. package/dist/assets/{MyBankConnectionsSettingsPage-aQDVaEG1-Cik-SXmg.js → MyBankConnectionsSettingsPage-aQDVaEG1-BQj6U5VD.js} +1 -1
  133. package/dist/assets/{MyPendingActivationChargeCardListPage-BJrk56oA-BUd9MItV.js → MyPendingActivationChargeCardListPage-BJrk56oA-a4lk-FRm.js} +1 -1
  134. package/dist/assets/{MyProfileSettingsPage-L9WuP6HZ-DoU854nY.js → MyProfileSettingsPage-L9WuP6HZ-D4wjrOZn.js} +1 -1
  135. package/dist/assets/{NavBarWithPicker-zmvBmWS1-Clp_nkzI.js → NavBarWithPicker-zmvBmWS1-C1LKFsDL.js} +1 -1
  136. package/dist/assets/{NavigationArrow-D26UG3p--CHxAHU6k.js → NavigationArrow-D26UG3p--CCqiziIA.js} +1 -1
  137. package/dist/assets/{NavigationDots-Bv4tBDN3-ZVsHmMoe.js → NavigationDots-Bv4tBDN3-CX4VVQFS.js} +1 -1
  138. package/dist/assets/{NewGlobalMerchantPage-vOn2O6B9-CBs7ETJS.js → NewGlobalMerchantPage-vOn2O6B9-BmOnDaTo.js} +1 -1
  139. package/dist/assets/{NoDataChart-CgT19fV7-BssP0tzZ.js → NoDataChart-CgT19fV7-BnUaWo2A.js} +1 -1
  140. package/dist/assets/{NoDataTable-CPjJmo4s-BIZnjSxP.js → NoDataTable-CPjJmo4s-BDfqEXQj.js} +1 -1
  141. package/dist/assets/{NotFoundPage-CP2i3FTm-DZwZas3U.js → NotFoundPage-CP2i3FTm-DrcRl_rx.js} +1 -1
  142. package/dist/assets/{NotFoundScreen-BbpMMX9s.js → NotFoundScreen-BBemVqe2.js} +1 -1
  143. package/dist/assets/{NotificationRoutes-B4bfKvmi.js → NotificationRoutes-U-LaNI42.js} +1 -1
  144. package/dist/assets/{NotificationSettingsPage-CT9Dnb03-BKVlFjQr.js → NotificationSettingsPage-CT9Dnb03-Dm7KyS7f.js} +1 -1
  145. package/dist/assets/{NotificationsListConfig-Bn1zmx6b-7K548aOU.js → NotificationsListConfig-Bn1zmx6b-CgwI3kB8.js} +1 -1
  146. package/dist/assets/{NotificationsPage-DDwdR_Jq-BG2T279u.js → NotificationsPage-DDwdR_Jq-CLxtwJ7_.js} +1 -1
  147. package/dist/assets/{OpExByVendorPage-DukFYlqO-CfJl78Ca.js → OpExByVendorPage-DukFYlqO-DLkue9kB.js} +1 -1
  148. package/dist/assets/{OverlayContainerPage-D4QU0p4o-CNFeAXmN.js → OverlayContainerPage-D4QU0p4o-C-Icci7k.js} +1 -1
  149. package/dist/assets/{PandLWithForecastPage-Bgflh9Om-DZ3_yxwP.js → PandLWithForecastPage-Bgflh9Om-BLh8XrcC.js} +1 -1
  150. package/dist/assets/{PandLWithForecastRoutes-B4PiCC38.js → PandLWithForecastRoutes-D-HhWNvF.js} +1 -1
  151. package/dist/assets/{PaymentAccountSetupBillingAddressSection-JPO-rPAd-B-z2Hz_U.js → PaymentAccountSetupBillingAddressSection-JPO-rPAd-Dmaxec0g.js} +1 -1
  152. package/dist/assets/{PeoplePage-CDvKreQl-DarD0EGZ.js → PeoplePage-CDvKreQl-Br9fXMF2.js} +1 -1
  153. package/dist/assets/{PeopleRoutes-Bji1PDT3.js → PeopleRoutes-Dq51UjI9.js} +1 -1
  154. package/dist/assets/{PerformanceRoutes-C2QScidi.js → PerformanceRoutes-cKruQlcS.js} +1 -1
  155. package/dist/assets/{Preview-D4dux0eF.js → Preview-B_UHWYM5.js} +1 -1
  156. package/dist/assets/{ProductsCarousel-7R3cvGiS-D8P3xUrh.js → ProductsCarousel-7R3cvGiS-DmQ2H6G4.js} +1 -1
  157. package/dist/assets/{PromoBaseCards-DdCMZIc7-DBhgxdTj.js → PromoBaseCards-DdCMZIc7-Df8cZl94.js} +1 -1
  158. package/dist/assets/{QBOConnectionDialog-Ca36jKz2-DpeJsMkG.js → QBOConnectionDialog-Ca36jKz2-DAMkmB7c.js} +1 -1
  159. package/dist/assets/{QBOConnectionScreen-BBQqRB2z.js → QBOConnectionScreen-JiiEAGy2.js} +1 -1
  160. package/dist/assets/{QBOSetupSection-CzBfIVqR-D48AIQ6b.js → QBOSetupSection-CzBfIVqR-CbTARgMf.js} +1 -1
  161. package/dist/assets/{ReferralListScreen-SWZzL8_L.js → ReferralListScreen-CSsSh4ih.js} +1 -1
  162. package/dist/assets/{ReimbursementApprovalRoutes-CDcbSeCq.js → ReimbursementApprovalRoutes-CVWnCLDW.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DUVSGQJ6-CiKrn3L-.js → ReimbursementApprovalRuleDetailPage-DUVSGQJ6-DvpCvtrE.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C6QD0dHy.js → ReimbursementApprovalRuleDetailScreen-DZcx_Ou3.js} +1 -1
  165. package/dist/assets/{ReimbursementApprovalRulesPage-B48x1gPM-TyTym-o2.js → ReimbursementApprovalRulesPage-B48x1gPM-DxxLWTnS.js} +1 -1
  166. package/dist/assets/{ReimbursementDetailPage-oIC9QEyF-DD_nn8iA.js → ReimbursementDetailPage-oIC9QEyF-DlTQsBwh.js} +1 -1
  167. package/dist/assets/{ReimbursementPromoPage-BKgsJieE-ba8SRSKH.js → ReimbursementPromoPage-BKgsJieE-C2_bC473.js} +1 -1
  168. package/dist/assets/{ReimbursementRoutes-BDoS2Viq.js → ReimbursementRoutes-Djc8hIjc.js} +1 -1
  169. package/dist/assets/{ReimbursementSetUpPage-B_c-ZgFT-DsXy5T-i.js → ReimbursementSetUpPage-B_c-ZgFT-BBt2uEqx.js} +1 -1
  170. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CeyGWbKR-b2LCo2fP.js → ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CZtSd4TM.js} +1 -1
  171. package/dist/assets/{ReloadCard-DKGn1uxF-xV8m_TeH.js → ReloadCard-DKGn1uxF-CkrmOtQv.js} +1 -1
  172. package/dist/assets/{ReportTableViewSelector-CXDvZEbR-BEs3z0WU.js → ReportTableViewSelector-CXDvZEbR-B4WtL-_p.js} +1 -1
  173. package/dist/assets/{ReportsPage-BoUyXSBC-dKIbVO8t.js → ReportsPage-BoUyXSBC-D_vUbcSy.js} +1 -1
  174. package/dist/assets/{ReportsRoutes-c3YTFnRz.js → ReportsRoutes-tnBiH82P.js} +1 -1
  175. package/dist/assets/{RevenueChart-SvdhwBcE-DaeNieaE.js → RevenueChart-SvdhwBcE-DFVZ2SH4.js} +1 -1
  176. package/dist/assets/{ReviewDetailsPage-tT1l4R2r-EDW_-Vnp.js → ReviewDetailsPage-tT1l4R2r-DKl8wtRU.js} +1 -1
  177. package/dist/assets/{ReviewOverlay-BoM41t8W-DgI6cFXd.js → ReviewOverlay-BoM41t8W-Tjo8TsbC.js} +1 -1
  178. package/dist/assets/{RewardsRoutes-o1myXW2J.js → RewardsRoutes-DS51i8ZJ.js} +1 -1
  179. package/dist/assets/{RoleWithToolTip-C8x5yXaK-BPbsiT1k.js → RoleWithToolTip-C8x5yXaK-oTqAGBzT.js} +1 -1
  180. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bkp0mCOn-DQbz3Cef.js → ScheduleDetailsFixedAssetsPage-Bkp0mCOn-NjexzQQI.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsPage-Dg9rYJbn-CYqViARR.js → ScheduleDetailsPage-Dg9rYJbn-mJi37FRF.js} +1 -1
  182. package/dist/assets/{ScheduleSequenceTable-J6Eja8XA-CGs8BkOX.js → ScheduleSequenceTable-J6Eja8XA-uTDNIyeO.js} +1 -1
  183. package/dist/assets/{ScreenRoutes-CoSbVjnG.js → ScreenRoutes-DvoBFpYl.js} +2 -2
  184. package/dist/assets/{SetUpAccountSection-sfIB1h4i-DH94MVfE.js → SetUpAccountSection-sfIB1h4i-OQRP6w_s.js} +1 -1
  185. package/dist/assets/{SettingsRoutes-D4OVycdK.js → SettingsRoutes-_PBfx_CH.js} +1 -1
  186. package/dist/assets/{SetupPagesScreen-CP5xGQM-.js → SetupPagesScreen-Bjv1_530.js} +1 -1
  187. package/dist/assets/{SignIn-Cu2nzuEC-D0_FHV1l.js → SignIn-Cu2nzuEC-CgFcNFK3.js} +1 -1
  188. package/dist/assets/{SignInScreen-Dy_3TYSj.js → SignInScreen-CCXIdR_f.js} +1 -1
  189. package/dist/assets/{SignOutScreen-C-hbbdId.js → SignOutScreen-nUR_nQi4.js} +1 -1
  190. package/dist/assets/{SpendManagementListViewPage-9V9u1jPF-BAQuHXRH.js → SpendManagementListViewPage-9V9u1jPF-CAhShlf6.js} +3 -3
  191. package/dist/assets/{SpendManagementPerTabPage-COvEPq7V-DXoUtE5K.js → SpendManagementPerTabPage-COvEPq7V-Enwnkp6K.js} +1 -1
  192. package/dist/assets/{SpendManagementSection-dT-N4bSQ-BmAvBJeB.js → SpendManagementSection-dT-N4bSQ-BU7QcxyK.js} +1 -1
  193. package/dist/assets/{StatementItem-g5tfNBjV-D7Y_OR58.js → StatementItem-g5tfNBjV-B8DjDGkB.js} +1 -1
  194. package/dist/assets/{StatementsPage-DaFrVUeK-Bu9uXUe0.js → StatementsPage-DaFrVUeK-Bb78Acqy.js} +1 -1
  195. package/dist/assets/{StatusSwitcher-CaoFw0cf-LnRyZkPw.js → StatusSwitcher-CaoFw0cf-BSUpAcCG.js} +1 -1
  196. package/dist/assets/{SubTabSwitcher-zrkVj1aP-BpUcvhC2.js → SubTabSwitcher-zrkVj1aP-kI_QH-yK.js} +1 -1
  197. package/dist/assets/{SuccessAnimation-oz7yQ6H3-Bb_9Jyw4.js → SuccessAnimation-oz7yQ6H3-mzE9epVx.js} +1 -1
  198. package/dist/assets/{SummaryCard-B9wqNSwM-Z6FaAp8R.js → SummaryCard-B9wqNSwM-BiOPMjla.js} +1 -1
  199. package/dist/assets/{TaskDetailPage-044JwAvz-D-VMZNU5.js → TaskDetailPage-044JwAvz-CIchaLt5.js} +1 -1
  200. package/dist/assets/{TaskListScreen-rlkEoDCk.js → TaskListScreen-BTd0K2Ah.js} +1 -1
  201. package/dist/assets/{TaskManagementPage-dAK9tl2b-CRrkZYA1.js → TaskManagementPage-dAK9tl2b-B8eIax2u.js} +1 -1
  202. package/dist/assets/{TaskRoutes-Dv_crepW.js → TaskRoutes-C34_uNkE.js} +1 -1
  203. package/dist/assets/{TimeRangeSwitcher-r1TNqVRb-BAe1EuS0.js → TimeRangeSwitcher-r1TNqVRb-ca11ciDj.js} +1 -1
  204. package/dist/assets/{TimeframeSwitcher-DHfHCTa4-C-IgGi6u.js → TimeframeSwitcher-DHfHCTa4-CRY0pI2L.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcherWithToggle-DvBvguRl-DM8XfZ8P.js → TimeframeSwitcherWithToggle-DvBvguRl-zevKhD94.js} +1 -1
  206. package/dist/assets/{TopExCard-BUjnGDUB-Cixq3mwa.js → TopExCard-BUjnGDUB-HxwM-fNF.js} +1 -1
  207. package/dist/assets/{TopExDetailPage-CNDkfc3u-CuvB6qt5.js → TopExDetailPage-CNDkfc3u-IVplKWSE.js} +1 -1
  208. package/dist/assets/{TransactionActivityLogPage-kSQqJVpX-DyxJcJtf.js → TransactionActivityLogPage-kSQqJVpX-Dthtq0jn.js} +1 -1
  209. package/dist/assets/{TransactionDetailPage-f7vWtXWL-BTMnz0mH.js → TransactionDetailPage-f7vWtXWL-DFjYfEw-.js} +1 -1
  210. package/dist/assets/{TransactionDetailRoutes-BqPivaDh.js → TransactionDetailRoutes-D0IUp-c0.js} +1 -1
  211. package/dist/assets/{TransactionDetailScreen-DIenmNko.js → TransactionDetailScreen-DuZvqtgf.js} +1 -1
  212. package/dist/assets/{TransactionList-3-mUZOsw-Blz5H5Te.js → TransactionList-3-mUZOsw-kAZ-qL0T.js} +1 -1
  213. package/dist/assets/{TransactionListBig-Bx_Rm9ho-VXDaw90S.js → TransactionListBig-Bx_Rm9ho-Du7QkIGC.js} +1 -1
  214. package/dist/assets/{TransactionListPage-q6x4_jni-BeqHDEN7.js → TransactionListPage-q6x4_jni-D2QSW9vu.js} +1 -1
  215. package/dist/assets/{TransactionListRoutes-cXRM-Tzx.js → TransactionListRoutes-PB1J2m8T.js} +1 -1
  216. package/dist/assets/{TransactionVendorDetailPage-MjSH5hfq-CN5kkzkt.js → TransactionVendorDetailPage-MjSH5hfq-BRDls23z.js} +1 -1
  217. package/dist/assets/{TransferDrawerPage-BayVa6po-D8DjUeLp.js → TransferDrawerPage-BayVa6po-u89zHtOp.js} +1 -1
  218. package/dist/assets/{TreasuryOverviewPage-CuqWmrO5-9BoI5avx.js → TreasuryOverviewPage-CuqWmrO5-Duo1If9V.js} +1 -1
  219. package/dist/assets/{TreasuryPromoPage-BCjz1EKX-ZejnCIrp.js → TreasuryPromoPage-BCjz1EKX-9FM2wcwv.js} +1 -1
  220. package/dist/assets/{TreasuryRoutes-5Jq3PBCh.js → TreasuryRoutes-BFHIVJGR.js} +1 -1
  221. package/dist/assets/{TreasuryStatementsPage-CGr00SXF-BVn6YWI5.js → TreasuryStatementsPage-CGr00SXF-CPBafn5H.js} +1 -1
  222. package/dist/assets/{TreasuryTaxLetterPage-D9_qnlK4-BodQ0XOA.js → TreasuryTaxLetterPage-D9_qnlK4-BmLnB6xa.js} +1 -1
  223. package/dist/assets/{TrendChart-JTOG0a7B-B9PiPj4M.js → TrendChart-JTOG0a7B-B1HzEifS.js} +1 -1
  224. package/dist/assets/{TrendWithTransactions-CTJhTpAM-BO0IpBnV.js → TrendWithTransactions-CTJhTpAM-FxLucl6g.js} +1 -1
  225. package/dist/assets/{UncategorizedAccountsMappingPage-TGKYpC5A-4MUyjq3F.js → UncategorizedAccountsMappingPage-TGKYpC5A-DrDVb8s-.js} +1 -1
  226. package/dist/assets/{UnitIntegrationPage-mt2IjA5X-PkbkHBhf.js → UnitIntegrationPage-mt2IjA5X-B0h7UR57.js} +1 -1
  227. package/dist/assets/{UploadAdditionalDocumentOverlay-DZfpwE5J-CLFBiQB1.js → UploadAdditionalDocumentOverlay-DZfpwE5J-BZwjrrpj.js} +1 -1
  228. package/dist/assets/{Vendor2FAPopup-DAOf5cJD-CYwz1o5q.js → Vendor2FAPopup-DAOf5cJD-GFzHEit0.js} +1 -1
  229. package/dist/assets/{VendorACHDetailsPage-CCOupiSZ-H2ETipS-.js → VendorACHDetailsPage-CCOupiSZ-BPHL9d4l.js} +1 -1
  230. package/dist/assets/{VendorDetailPage-DufNphGD-2QGt-gwE.js → VendorDetailPage-DufNphGD-DqlByCd7.js} +1 -1
  231. package/dist/assets/{VendorDomesticWireDetailsPage-BayV34Rt-gRUl_StD.js → VendorDomesticWireDetailsPage-BayV34Rt-Du-36wGx.js} +1 -1
  232. package/dist/assets/{VendorFiling1099EditablePage-CRnO7Ubw-DxoPD9QC.js → VendorFiling1099EditablePage-CRnO7Ubw-CSnvYMK9.js} +1 -1
  233. package/dist/assets/{VendorFirstReviewPage-DA0EL4RJ-CGX7_u3z.js → VendorFirstReviewPage-DA0EL4RJ-CKfw2PVJ.js} +1 -1
  234. package/dist/assets/{VendorInternationalWireDetailsPage-HUtNyn9Z-DowqkaS4.js → VendorInternationalWireDetailsPage-HUtNyn9Z-C58PYE3l.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DRVMUeXi-Ci9mVR27.js → VendorInternationalWireSwiftDetailsPage-DRVMUeXi-ln7X-i9Z.js} +1 -1
  236. package/dist/assets/{VendorsAccountsSection-D6Qa1zf9-CW6sCLwr.js → VendorsAccountsSection-D6Qa1zf9-CVqHH4cq.js} +1 -1
  237. package/dist/assets/{VendorsRoutes-LjTGNk-2.js → VendorsRoutes-D3omEpvR.js} +1 -1
  238. package/dist/assets/{VerifyDevice-B6B_nk3v-BvincG_g.js → VerifyDevice-B6B_nk3v-7J7PFtZ-.js} +1 -1
  239. package/dist/assets/{VideoPlayer-BRAgZThr-XG4Rcfdj.js → VideoPlayer-BRAgZThr-BbqnCIc-.js} +1 -1
  240. package/dist/assets/{VideoPopup-C_SkBI9U-BhfvIuKF.js → VideoPopup-C_SkBI9U-BL3_M3X0.js} +1 -1
  241. package/dist/assets/{WiseConfirmationScreen-DxTpTvCN.js → WiseConfirmationScreen-DvushDs-.js} +1 -1
  242. package/dist/assets/{ZeniAccountDetailPage-Dp-eo-Vq-P6JFo8ah.js → ZeniAccountDetailPage-Dp-eo-Vq-B3WRlZyy.js} +1 -1
  243. package/dist/assets/{ZeniAccountListViewPage-S-XmAYqD-BeIhS-QI.js → ZeniAccountListViewPage-S-XmAYqD-BHUjzyQE.js} +1 -1
  244. package/dist/assets/{ZeniAccountNavBarPieces-DhjBxfEr-VVB6yev1.js → ZeniAccountNavBarPieces-DhjBxfEr-BkpO-_U2.js} +1 -1
  245. package/dist/assets/{ZeniAccountPromoPage-BgYCHYLO-LBXK2GgO.js → ZeniAccountPromoPage-BgYCHYLO-g5oLmJuT.js} +1 -1
  246. package/dist/assets/{ZeniAccountRoutes-DgIyNsYA.js → ZeniAccountRoutes-JNlaxrz8.js} +1 -1
  247. package/dist/assets/{ZeniAccountSetupPage-CvnIMdcY-D7CTKM8F.js → ZeniAccountSetupPage-CvnIMdcY-BSUOWmK4.js} +1 -1
  248. package/dist/assets/{ZeniAccountStatementScreen-DbUnng23.js → ZeniAccountStatementScreen-Df6Ut17b.js} +1 -1
  249. package/dist/assets/{ZeniAvatar-CwHVUcMc-BwzTw7hA.js → ZeniAvatar-CwHVUcMc-CqvMhhIi.js} +1 -1
  250. package/dist/assets/{ZeniCopyright-BlLvlGZV-CNQ_DnT5.js → ZeniCopyright-BlLvlGZV-D_cpkbcT.js} +1 -1
  251. package/dist/assets/{ZeniDatePicker-DCurorsW-IG-1gcsw.js → ZeniDatePicker-DCurorsW-D16AsniI.js} +1 -1
  252. package/dist/assets/{ZeniTransferAmountSlider-BNYgPwHs-CW1ejaod.js → ZeniTransferAmountSlider-BNYgPwHs-rAtxCD8c.js} +1 -1
  253. package/dist/assets/{accountMappingHelper-CiZg2tUy.js → accountMappingHelper-DaPjToYl.js} +1 -1
  254. package/dist/assets/{add-to-wallet-DgdBD8_G-BAOW4bEC.js → add-to-wallet-DgdBD8_G-DvLI4jaw.js} +1 -1
  255. package/dist/assets/{analytics-JKNMIPCj.js → analytics-BuacLKrs.js} +1 -1
  256. package/dist/assets/{analyticsHelper-UkV1zy0R.js → analyticsHelper-CHcSxJdc.js} +1 -1
  257. package/dist/assets/{analyticsHelper-CYr5V2MV-g3X61F5M.js → analyticsHelper-CYr5V2MV-DP0yfEiC.js} +1 -1
  258. package/dist/assets/{arrow-south-east-round-PEovUgvH-D3HxhDaV.js → arrow-south-east-round-PEovUgvH-90lG1L3u.js} +1 -1
  259. package/dist/assets/{auto-transfer-rule-mbafm5D3-B6zvDgGa.js → auto-transfer-rule-mbafm5D3-CL7RFrAP.js} +1 -1
  260. package/dist/assets/{avatar-Dz7aEm3d-D4Z6gXMA.js → avatar-Dz7aEm3d--QTMwhPr.js} +1 -1
  261. package/dist/assets/{calculateSize-Bn1NnCzV-DqzvW5QR.js → calculateSize-Bn1NnCzV-SxKA7C8w.js} +1 -1
  262. package/dist/assets/{chartTypes-40RenddT-xOl7ri4B.js → chartTypes-40RenddT-D0AbAyeZ.js} +1 -1
  263. package/dist/assets/{clock-CJkylEKt-DCVHdJv4.js → clock-CJkylEKt-Cp3w47l8.js} +1 -1
  264. package/dist/assets/{common-DEB71I4X-BLhN6mer.js → common-DEB71I4X-D2h2kF8O.js} +1 -1
  265. package/dist/assets/{commonDimensions-BMnB1-xU-CRcoh4cg.js → commonDimensions-BMnB1-xU-CuHaP4qo.js} +1 -1
  266. package/dist/assets/{commonTypes-DsWS6Ccc-DDqFel7Y.js → commonTypes-DsWS6Ccc-D27m4dJL.js} +1 -1
  267. package/dist/assets/{core-B0aIoG8L.js → core-twTS7Cne.js} +1 -1
  268. package/dist/assets/{dash.all.min-CD3iOFub.js → dash.all.min-BOiJW2p5.js} +1 -1
  269. package/dist/assets/{decodeURIComponentSafe-Bu6iKDPg.js → decodeURIComponentSafe-B0iGosVv.js} +1 -1
  270. package/dist/assets/{detailCommon-CrcyqWtZ-C0uLkBms.js → detailCommon-CrcyqWtZ-Co4x3-EY.js} +1 -1
  271. package/dist/assets/{dnd-CeLShHIc.js → dnd-BWijMgNi.js} +1 -1
  272. package/dist/assets/{dollar-round-D18u7nlm-CHRr1bf9.js → dollar-round-D18u7nlm-CiBCyYiG.js} +1 -1
  273. package/dist/assets/{downloadPdf-CUUx8PWn-yhiYByrR.js → downloadPdf-CUUx8PWn-B-oFkl1r.js} +1 -1
  274. package/dist/assets/{empty-C0YbYLjJ.js → empty-BAMh3RJk.js} +1 -1
  275. package/dist/assets/{empty-BkriGRuv.js → empty-BuEMRnA-.js} +1 -1
  276. package/dist/assets/{epic-DfRSOgde.js → epic-Dx6vN-UO.js} +1 -1
  277. package/dist/assets/{filter-cZIFUNvj-BwZeVD32.js → filter-cZIFUNvj-CH_l3zIc.js} +1 -1
  278. package/dist/assets/{getLocaleForTenant-Dk0k1evv.js → getLocaleForTenant-CY5R0VDK.js} +1 -1
  279. package/dist/assets/{gift-box-Cmt9OgIZ-bJl9WnG1.js → gift-box-Cmt9OgIZ-BCDDcFDZ.js} +1 -1
  280. package/dist/assets/{graphic-no-data-l-DU4J8fDt-Du06xfs-.js → graphic-no-data-l-DU4J8fDt-DVAyGHzA.js} +1 -1
  281. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CneFMbCy.js → graphic-no-data-net-burn-l-CzmycA0m-DlMg8P68.js} +1 -1
  282. package/dist/assets/{handshake-BPg58FML-wokdn9gB.js → handshake-BPg58FML-7TxvMz9v.js} +1 -1
  283. package/dist/assets/{helper-BMiMbXMj-CknnjhGs.js → helper-BMiMbXMj-B-wSFTz-.js} +1 -1
  284. package/dist/assets/{hyperlink-DQyCeXx2-C7S37aSh.js → hyperlink-DQyCeXx2-DhYPEFJi.js} +1 -1
  285. package/dist/assets/{index-uHN8COgu.js → index-BYeMrBg9.js} +1 -1
  286. package/dist/assets/{index-CDsMViUJ.js → index-DO6IEWSk.js} +1 -1
  287. package/dist/assets/{index-CImw4dkc.js → index-DoiSNwZH.js} +1 -1
  288. package/dist/assets/{index-BPALOhCr.js → index-Mx2SsGnu.js} +1 -1
  289. package/dist/assets/{index-EqHxd201.js → index-k1doZNFg.js} +444 -444
  290. package/dist/assets/{index-DtWTtd_D.js → index-zkfIzc9c.js} +1 -1
  291. package/dist/assets/{lexical-Cn2A1iXT.js → lexical-CZE2Lq-0.js} +1 -1
  292. package/dist/assets/{liveblocks-BGLG0ZRF.js → liveblocks-CM0QMS_I.js} +1 -1
  293. package/dist/assets/{lottie-C-63nSQ2.js → lottie-Bdr-9mLw.js} +1 -1
  294. package/dist/assets/{mapLoadingInProgressToTreeNode-DGnyXKBT-CfSF4d0q.js → mapLoadingInProgressToTreeNode-DGnyXKBT-BSjhxbWc.js} +1 -1
  295. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BkPRWtaj-Bbv9kxuB.js → mapSectionWithAcOnlyToTreeNode-BkPRWtaj-CxIv2d9v.js} +1 -1
  296. package/dist/assets/{mapSpacerToTreeNode-CvGdU9Ma-DqFRHMwL.js → mapSpacerToTreeNode-CvGdU9Ma-oI33_r0x.js} +1 -1
  297. package/dist/assets/{mapTimeframeBalancesToTreeNode-BCOsOvxo-C2o18LiT.js → mapTimeframeBalancesToTreeNode-BCOsOvxo-BejLDcnD.js} +1 -1
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode-DIqYP3NK-DZe5CwCl.js → mapTimeframeBalancesToTreeNode-DIqYP3NK-CPJM42M2.js} +1 -1
  299. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-CHWYk2eN.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-DquHI1rq.js} +1 -1
  300. package/dist/assets/{media-player-CqCqOlxE.js → media-player-DTa5D54u.js} +2 -2
  301. package/dist/assets/{money-2cg1MuG4-B1T8Uy6t.js → money-2cg1MuG4-B6SZvN8P.js} +1 -1
  302. package/dist/assets/{mui-2NnLxiU2.js → mui-Bi07oTwe.js} +1 -1
  303. package/dist/assets/{page-detail-CWX5S47F-CgGawfzp.js → page-detail-CWX5S47F-y9rokQDc.js} +1 -1
  304. package/dist/assets/{page-summary-D7_VQHwN-BOd9yG8Y.js → page-summary-D7_VQHwN-pIoT3Pmw.js} +1 -1
  305. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-DP2cNj_W.js → panelSelectedMixin-CzfD5-Zs-Bh-ojoWH.js} +1 -1
  306. package/dist/assets/{pathToGoBack-Bv92NQSQ.js → pathToGoBack-Md2zV7uG.js} +1 -1
  307. package/dist/assets/{pdf-CmlsF1Bq.js → pdf-emb33J2I.js} +3 -3
  308. package/dist/assets/{pdf-lib-BdZjuQvb.js → pdf-lib-CILJewzg.js} +1 -1
  309. package/dist/assets/{plaid-AStGMBRC.js → plaid-Dw_qIY4R.js} +1 -1
  310. package/dist/assets/{pusher-Dg5Fzp9t.js → pusher-DynBuu5N.js} +1 -1
  311. package/dist/assets/{radio-default-CiSgisfh-CaVf9O8j.js → radio-default-CiSgisfh-GKL562Zm.js} +1 -1
  312. package/dist/assets/{react-DGi5bvij.js → react-1mNX_DRd.js} +1 -1
  313. package/dist/assets/{react-lrEBBJno.js → react-Ar6ZOtfZ.js} +1 -1
  314. package/dist/assets/{react-DbU9hhuM.js → react-BL4qYNQl.js} +1 -1
  315. package/dist/assets/{react-BNcYqv24.js → react-CHxjXjfJ.js} +3 -3
  316. package/dist/assets/{react-BSLmZDh4.js → react-DiCJT7O0.js} +1 -1
  317. package/dist/assets/{react-DHpb7QC4.js → react-DvA2K4aW.js} +1 -1
  318. package/dist/assets/{react-BwZSAuz_.js → react-Xs8hOk7X.js} +1 -1
  319. package/dist/assets/{react-DKmRNMO0.js → react-vzV2OwEE.js} +1 -1
  320. package/dist/assets/{recharts-DLbOXl5Z.js → recharts-CS0s98U8.js} +1 -1
  321. package/dist/assets/{routePaths-D30DRN8c.js → routePaths-DiyiibEL.js} +1 -1
  322. package/dist/assets/{sentry-Q4kep6XN.js → sentry-CytkDQe2.js} +1 -1
  323. package/dist/assets/{shield-DOlUxcFf-DhZp-_BM.js → shield-DOlUxcFf-CuS9M_ww.js} +1 -1
  324. package/dist/assets/{spend-limit-D6SyboD4-BmY4osYa.js → spend-limit-D6SyboD4-DuCQ_jaT.js} +1 -1
  325. package/dist/assets/{toCOABalancesWithID-DkMGvlEt-rov467Ra.js → toCOABalancesWithID-DkMGvlEt-DFgINRIk.js} +1 -1
  326. package/dist/assets/{toChartData-C6s-eBzE-CuLISfRU.js → toChartData-C6s-eBzE-BfIZvn48.js} +1 -1
  327. package/dist/assets/{transaction-placeholder-CpOwZAMG-BgSxR8pp.js → transaction-placeholder-CpOwZAMG-DuWev16q.js} +1 -1
  328. package/dist/assets/{undo-b_3XZ5CX-BQ_ijdRp.js → undo-b_3XZ5CX-Cg47YjTI.js} +1 -1
  329. package/dist/assets/{unlock-BPWn2I5L-C-h2dTWL.js → unlock-BPWn2I5L-DplIQ8y4.js} +1 -1
  330. package/dist/assets/{uploadAttachment-BlLqRIXe-CHndkGCc.js → uploadAttachment-BlLqRIXe-B6ElpyTj.js} +1 -1
  331. package/dist/assets/{uploadReceipts-Dge0cNF1-DGJmbPrS.js → uploadReceipts-Dge0cNF1-Co75nE7C.js} +1 -1
  332. package/dist/assets/{url-Bic7cnA8.js → url-DlqX0g3J.js} +1 -1
  333. package/dist/assets/{url-DpsurdUI.js → url-wSyZyUAL.js} +1 -1
  334. package/dist/assets/{useDeviceId-B4g5tOwE.js → useDeviceId-CW9B9UlH.js} +1 -1
  335. package/dist/assets/{useInitialThreadRequest-odLUiJqj.js → useInitialThreadRequest-1tDzaux1.js} +1 -1
  336. package/dist/assets/{useLongPress-GCK2COYQ-BHyH9hMq.js → useLongPress-GCK2COYQ-DxXBKjrG.js} +1 -1
  337. package/dist/assets/{usp-line-BBd1wKwW-DXXOUebn.js → usp-line-BBd1wKwW-DHy4exHr.js} +1 -1
  338. package/dist/assets/{utils-Yz1HF93N.js → utils-CSjogEj5.js} +1 -1
  339. package/dist/assets/{withTransactionSidePanel-BBaDdbsh.js → withTransactionSidePanel-kYDF1Rc9.js} +1 -1
  340. package/dist/assets/{zeni-epic-state-DHqVwJ2L.js → zeni-epic-state-DyRbb6Q5.js} +3 -3
  341. package/dist/assets/{zeni-icon-only-fh8VXN1X.js → zeni-icon-only-C6-rv1y7.js} +1 -1
  342. package/dist/index.html +1 -1
  343. package/package.json +1 -1
  344. package/dist/assets/CustomerOnboardingAuthScreen-BpXFr5WU.js +0 -1
  345. package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-DbpGIGU3.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as G,y as Y,O,t as fe,V as a,ba as me,a6 as N,a$ as ge,a_ as _e,o as x,ab as be,f as Se,b as v,bb as we,u as C,G as B,Q as X,bc as ye,ad as Ce,N as xe,b7 as Oe}from"./index-EqHxd201.js";import{a as P,b as ee}from"./sentry-Q4kep6XN.js";import{n as S}from"./mui-2NnLxiU2.js";import{bt as Z,El as Ae,Eu as Re,Ev as j,Ew as Be,Ex as ve,Ey as Le,Ez as Te,EA as Pe,EB as te,EC as oe}from"./zeni-epic-state-DHqVwJ2L.js";import{m as U,l as q}from"./analyticsHelper-CYr5V2MV-g3X61F5M.js";import{x as Ne}from"./ReportTableViewSelector-CXDvZEbR-BEs3z0WU.js";import{a as se,p as ke}from"./TimeRangeSwitcher-r1TNqVRb-BAe1EuS0.js";import{M as Ie}from"./TimeframeSwitcherWithToggle-DvBvguRl-DM8XfZ8P.js";import{DownloadOverlayButton as Me}from"./DownloadOverlay-DqiL3-FB-HBtpf6ff.js";import{I as Ee,R as I,x as J}from"./CollapsableReportTable-CDEe9s_E-CWbosJ7t.js";import{D as ne,T as ae,C as $,L as Fe,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BkPRWtaj-Bbv9kxuB.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-BCOsOvxo-C2o18LiT.js";import{d as je,l as $e}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-CHWYk2eN.js";import{d as Ve}from"./mapLoadingInProgressToTreeNode-DGnyXKBT-CfSF4d0q.js";import"./pdf-CmlsF1Bq.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.js";import"./filter-cZIFUNvj-BwZeVD32.js";import"./TimeframeSwitcher-DHfHCTa4-C-IgGi6u.js";import"./page-detail-CWX5S47F-CgGawfzp.js";import"./page-summary-D7_VQHwN-BOd9yG8Y.js";import"./AccountRow-CpftykFx-uD-f3g0V.js";import"./clock-CJkylEKt-DCVHdJv4.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]="429cc72b-0508-4ad2-9649-498301e53bc4",e._sentryDebugIdIdentifier="sentry-dbid-429cc72b-0508-4ad2-9649-498301e53bc4")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:i,config:n}){return J("no_filter",n.filterAccountsWithNilBalances,n.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(o=>function({accountGroup:c,sectionType:b,numOfBalances:_,title:r,isLastNode:s,config:l}){const d=I("section",[],r+b),p={children:[],id:d,isLastNode:s,reportElementData:{element:{kind:"section",title:r,sectionType:b,data:c,numOfBalances:_},config:l}},f=J("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(c.accounts),A=f.map((m,w)=>ie({account:m,sectionType:b,numOfBalances:_,title:m.account.accountName,config:l,isLastNode:w===f.length-1,parentNodeIDs:[d],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:f.length>1,hasChildren:m.children.length>0,isLastNode:w===f.length-1}]}}));return p.children.push(...A),p}({accountGroup:o,sectionType:t,numOfBalances:i,title:o.accountGroupName,isLastNode:!0,config:n}))}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:i,config:n}){return e.accounts.map((o,c)=>ie({account:o,sectionType:t,numOfBalances:i,title:o.account.accountName,config:n,isLastNode:c===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:o.children.length>0,isLastNode:c===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:i}){return{children:[],id:i??I("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function ze(e,t,i,n=!0){Object.assign(e.config,t);const o=de(i),c=H({balances:o,config:t});return{config:t,headerNodes:n?[c]:[],contentNodes:[c,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let i=[];return Object.keys(t.sections).forEach(n=>{t.sections[n].balances.length>0&&(i=[...t.sections[n].balances,...t.sections[n].additionalBalances])}),i}default:return[]}};function De(e,t,i=!0){const n=O.getLocalizedStrings().reports.sections,o=O.getLocalizedStrings().reports.cashFlow,c=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],b=t.mode!=null&&t.mode==="this_period_vs_period_before"&&c.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,_=le({balances:c,config:t}),r=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(s=>{const l={children:[],id:I("title_string_only",[],s),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:n[s],data:void 0,numOfBalances:0},config:t}};r.push(l),e.rootSectionsWithSubSectionIds[s].forEach(d=>{if(Le(d)===!0)if(e.sections[d].accountGroups.length>0){const p=ce({sectionId:d,section:e.sections[d],numOfBalances:b,config:t});r.push(...p)}else{const p=re({sectionWithAcOnly:e.sections[d],sectionType:d,numOfBalances:b,config:t});r.push(...p)}else Te(d)===!0?r.push(function({calculatedSection:p,numOfBalances:f,title:A,isLastNode:m,config:w}){return{children:[],id:I("calculated_section_type1",[],A),isLastNode:m,reportElementData:{element:{kind:"calculated_section_type1",title:A,data:p,numOfBalances:f},config:w}}}({calculatedSection:e.calculatedSections[d],numOfBalances:b,title:o[d],isLastNode:!0,config:t})):Pe(d)===!0&&r.push($({calculatedSection:e.calculatedSections[d],numOfBalances:b,title:o[d],isLastNode:!0,config:t}))})}),{config:t,headerNodes:i?[_]:[],contentNodes:[_,...r]}}function Ue(e,t,i=!0,n=!1){const o=O.getLocalizedStrings().reports,c=O.getLocalizedStrings().common;let b=[];const _=[];let r=[];if(n===!0){const s=je({title:c.loading,balances:[],config:t});s.reportElementData.element.numOfBalances=6,i&&(r=[s]),_.push(s),[...Array(8)].forEach((l,d)=>{let p=$e[d%4];const f=Ve({title:`${d}+${p}`,balances:b,config:t});f.reportElementData.element.numOfBalances=6,_.push(f)})}else{const s=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],l=H({balances:s,config:t}),d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&s.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;_.push(l),i&&(r=[l]),e.idsInOrder.forEach(p=>{if(te(p)===!0){const f=e.sections[p];f!=null&&_.push(Fe({section:f,sectionType:p,numOfBalances:d,title:o.sections[p],isLastNode:!0,config:t}))}else if(oe(p)===!0){const f=e.calculatedSections[p];f!=null&&_.push($({calculatedSection:f,numOfBalances:d,title:o.sections[p],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:r,contentNodes:_}}function We(e,t,i=!0){const n=O.getLocalizedStrings().reports,o=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],c=t.mode!=null&&t.mode==="this_period_vs_period_before"&&o.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,b=H({balances:o,config:t}),_=[];return _.push(b),e.idsInOrder.forEach(r=>{if(te(r)===!0&&(e.sections[r].accountGroups.length>0?_.push(ne({section:e.sections[r],sectionType:r,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t})):_.push(ae({sectionWithAcOnly:e.sections[r],sectionType:r,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t}))),oe(r)===!0){const s=e.calculatedSections[r];s!=null&&_.push($({calculatedSection:s,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t}))}}),{config:t,headerNodes:i?[b]:[],contentNodes:_}}const Q={contentPaddingLeft:new v(C[0],C[0],C[0]),contentPaddingRight:new v(C[3],C[3],C[8])},Ge=S.div`
1
+ import{J as G,y as Y,O,t as fe,V as a,ba as me,a6 as N,a$ as ge,a_ as _e,o as x,ab as be,f as Se,b as v,bb as we,u as C,G as B,Q as X,bc as ye,ad as Ce,N as xe,b7 as Oe}from"./index-k1doZNFg.js";import{a as P,b as ee}from"./sentry-CytkDQe2.js";import{n as S}from"./mui-Bi07oTwe.js";import{bt as Z,El as Ae,Eu as Re,Ev as j,Ew as Be,Ex as ve,Ey as Le,Ez as Te,EA as Pe,EB as te,EC as oe}from"./zeni-epic-state-DyRbb6Q5.js";import{m as U,l as q}from"./analyticsHelper-CYr5V2MV-DP0yfEiC.js";import{x as Ne}from"./ReportTableViewSelector-CXDvZEbR-B4WtL-_p.js";import{a as se,p as ke}from"./TimeRangeSwitcher-r1TNqVRb-ca11ciDj.js";import{M as Ie}from"./TimeframeSwitcherWithToggle-DvBvguRl-zevKhD94.js";import{DownloadOverlayButton as Me}from"./DownloadOverlay-DqiL3-FB-DATHjVq3.js";import{I as Ee,R as I,x as J}from"./CollapsableReportTable-CDEe9s_E-BVFWKHUA.js";import{D as ne,T as ae,C as $,L as Fe,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BkPRWtaj-CxIv2d9v.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-BCOsOvxo-BejLDcnD.js";import{d as je,l as $e}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-DquHI1rq.js";import{d as Ve}from"./mapLoadingInProgressToTreeNode-DGnyXKBT-BSjhxbWc.js";import"./pdf-emb33J2I.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.js";import"./filter-cZIFUNvj-CH_l3zIc.js";import"./TimeframeSwitcher-DHfHCTa4-CRY0pI2L.js";import"./page-detail-CWX5S47F-y9rokQDc.js";import"./page-summary-D7_VQHwN-pIoT3Pmw.js";import"./AccountRow-CpftykFx-BJ3WZo2I.js";import"./clock-CJkylEKt-Cp3w47l8.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]="429cc72b-0508-4ad2-9649-498301e53bc4",e._sentryDebugIdIdentifier="sentry-dbid-429cc72b-0508-4ad2-9649-498301e53bc4")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:i,config:n}){return J("no_filter",n.filterAccountsWithNilBalances,n.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(o=>function({accountGroup:c,sectionType:b,numOfBalances:_,title:r,isLastNode:s,config:l}){const d=I("section",[],r+b),p={children:[],id:d,isLastNode:s,reportElementData:{element:{kind:"section",title:r,sectionType:b,data:c,numOfBalances:_},config:l}},f=J("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(c.accounts),A=f.map((m,w)=>ie({account:m,sectionType:b,numOfBalances:_,title:m.account.accountName,config:l,isLastNode:w===f.length-1,parentNodeIDs:[d],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:f.length>1,hasChildren:m.children.length>0,isLastNode:w===f.length-1}]}}));return p.children.push(...A),p}({accountGroup:o,sectionType:t,numOfBalances:i,title:o.accountGroupName,isLastNode:!0,config:n}))}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:i,config:n}){return e.accounts.map((o,c)=>ie({account:o,sectionType:t,numOfBalances:i,title:o.account.accountName,config:n,isLastNode:c===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:o.children.length>0,isLastNode:c===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:i}){return{children:[],id:i??I("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function ze(e,t,i,n=!0){Object.assign(e.config,t);const o=de(i),c=H({balances:o,config:t});return{config:t,headerNodes:n?[c]:[],contentNodes:[c,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let i=[];return Object.keys(t.sections).forEach(n=>{t.sections[n].balances.length>0&&(i=[...t.sections[n].balances,...t.sections[n].additionalBalances])}),i}default:return[]}};function De(e,t,i=!0){const n=O.getLocalizedStrings().reports.sections,o=O.getLocalizedStrings().reports.cashFlow,c=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],b=t.mode!=null&&t.mode==="this_period_vs_period_before"&&c.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,_=le({balances:c,config:t}),r=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(s=>{const l={children:[],id:I("title_string_only",[],s),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:n[s],data:void 0,numOfBalances:0},config:t}};r.push(l),e.rootSectionsWithSubSectionIds[s].forEach(d=>{if(Le(d)===!0)if(e.sections[d].accountGroups.length>0){const p=ce({sectionId:d,section:e.sections[d],numOfBalances:b,config:t});r.push(...p)}else{const p=re({sectionWithAcOnly:e.sections[d],sectionType:d,numOfBalances:b,config:t});r.push(...p)}else Te(d)===!0?r.push(function({calculatedSection:p,numOfBalances:f,title:A,isLastNode:m,config:w}){return{children:[],id:I("calculated_section_type1",[],A),isLastNode:m,reportElementData:{element:{kind:"calculated_section_type1",title:A,data:p,numOfBalances:f},config:w}}}({calculatedSection:e.calculatedSections[d],numOfBalances:b,title:o[d],isLastNode:!0,config:t})):Pe(d)===!0&&r.push($({calculatedSection:e.calculatedSections[d],numOfBalances:b,title:o[d],isLastNode:!0,config:t}))})}),{config:t,headerNodes:i?[_]:[],contentNodes:[_,...r]}}function Ue(e,t,i=!0,n=!1){const o=O.getLocalizedStrings().reports,c=O.getLocalizedStrings().common;let b=[];const _=[];let r=[];if(n===!0){const s=je({title:c.loading,balances:[],config:t});s.reportElementData.element.numOfBalances=6,i&&(r=[s]),_.push(s),[...Array(8)].forEach((l,d)=>{let p=$e[d%4];const f=Ve({title:`${d}+${p}`,balances:b,config:t});f.reportElementData.element.numOfBalances=6,_.push(f)})}else{const s=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],l=H({balances:s,config:t}),d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&s.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;_.push(l),i&&(r=[l]),e.idsInOrder.forEach(p=>{if(te(p)===!0){const f=e.sections[p];f!=null&&_.push(Fe({section:f,sectionType:p,numOfBalances:d,title:o.sections[p],isLastNode:!0,config:t}))}else if(oe(p)===!0){const f=e.calculatedSections[p];f!=null&&_.push($({calculatedSection:f,numOfBalances:d,title:o.sections[p],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:r,contentNodes:_}}function We(e,t,i=!0){const n=O.getLocalizedStrings().reports,o=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],c=t.mode!=null&&t.mode==="this_period_vs_period_before"&&o.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,b=H({balances:o,config:t}),_=[];return _.push(b),e.idsInOrder.forEach(r=>{if(te(r)===!0&&(e.sections[r].accountGroups.length>0?_.push(ne({section:e.sections[r],sectionType:r,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t})):_.push(ae({sectionWithAcOnly:e.sections[r],sectionType:r,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t}))),oe(r)===!0){const s=e.calculatedSections[r];s!=null&&_.push($({calculatedSection:s,numOfBalances:c,title:n.sections[r],isLastNode:!0,config:t}))}}),{config:t,headerNodes:i?[b]:[],contentNodes:_}}const Q={contentPaddingLeft:new v(C[0],C[0],C[0]),contentPaddingRight:new v(C[3],C[3],C[8])},Ge=S.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${x.sp2};
@@ -1 +1 @@
1
- import{j as i}from"./pdf-CmlsF1Bq.js";import{j as N,i as V,h as H,l as $,u as p,k as z,R as Z,m as j}from"./core-B0aIoG8L.js";import{cs as G,cQ as I,GO as Q,m2 as R,gA as J,fE as W,m7 as X,bt as K,GP as ee,bm as ae,qn as te,GQ as se,GR as oe,pl as ne,GS as re,GT as le,GU as T,GV as O,GW as F,GX as k,GY as D,Ev as ie,q4 as ce,pT as E,pU as U,qa as de,pY as pe,qf as me,GZ as fe,G_ as ue,G$ as he,H0 as _e,H1 as be,cz as ge,cx as Se}from"./zeni-epic-state-DHqVwJ2L.js";import{J as Ie,je as x,jR as Ce,t as ye,bc as Te,jl as A,G as we,jS as Re,jT as Oe,jA as Fe,aE as ke,aG as De}from"./index-EqHxd201.js";import"./mui-2NnLxiU2.js";import Ae from"./NotFoundScreen-BbpMMX9s.js";import{F as Ge}from"./FeaturePreviewScreen-fP1RCpGB.js";import{a as g}from"./sentry-Q4kep6XN.js";import{t as Me,a as Pe}from"./routePaths-D30DRN8c.js";import{M as je}from"./MobileAppDrawer-sKiHtZDX.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.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]="40a3b667-c7e2-462d-b4af-6a47e81b4048",e._sentryDebugIdIdentifier="sentry-dbid-40a3b667-c7e2-462d-b4af-6a47e81b4048")}catch{}})();const S=e=>{e(D({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(F({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},Ee=e=>{e(ue()),e(he()),e(_e()),e(be())},Ue=z(function(e){const o=x.getSignedInUser(),l=e.tenantState.currentTenantId,c=G(e),a=c?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:l??""},t=I(e),r=ee(c);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:A,isZeniUser:ae(o),showAccountGroups:r===!0,currentTenantCompanyName:a,statementEndPoint:`${Oe}/statement`,authParams:s,isZeniCOAUsed:r}},function(e,o){const{navigate:l,handleDrawerToggle:c}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(R(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(fe(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(me(a)),s){const{isCompareModeOn:r,filter:m}=o,{additionalBalances:h,balancesRange:d}=m;let f=[...h];a==="year"&&(f=f.filter(u=>u!=="this_period_vs_same_period_last_year"&&u!=="this_period_vs_same_period_last_year_percent"&&u!=="same_period_last_year")),e(E(o.firstMonthOfFY,r,d.numberOfPeriods<4?4:d.numberOfPeriods,f)),h.length>0&&e(U(o.firstMonthOfFY,f.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,f))}t!==!0&&setTimeout(()=>S(e),50)},onReportSelectionChanged:a=>{e(T(a)),S(e)},onCOABalancesRangeChanged:a=>{e(pe(a)),S(e)},onThisPeriodChanged:(a,s,t)=>{e(de(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&S(e)},onAdditionalBalanceSelectionChanged:(a,s,t,r)=>{e(E(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(U(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),r!==!0&&o.isCompareModeOn===a||setTimeout(()=>S(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,r)=>{e(ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:r}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s)=>{let t,r;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(t=s.balanceTimeFrame,r=ie(s)):s.balanceTimeFrame==="year"?(t="quarter",r={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),r!=null&&t!=null){const m=a.accountName===""?a.accountDescription:a.accountName,h=a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null?Me(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],m,t,r):Pe(o.tenantEmailDomain,a.accountId,a.accountType,m,t,r),d=Fe(o.location.state?.pathnameStackToGoBack,o.location.pathname);l(h,{state:{pathnameStackToGoBack:d,referrer:w(o.selectedReportID)}})}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(D({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(k({scrollPosition:s}));break;case"balance_sheet":e(F({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(F({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{l("../../")},onUpdateAccountViewMode:a=>{e(le({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",w(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",w(o.selectedReportID)),e(T("profit_and_loss"))),S(e)},onUpdateClassesToFilterOut:a=>{e(re({classesToFilterOut:a}))},onOpenAccountViewMode:()=>{e(ne())},onUpdateDisplayOrder:a=>{e(oe(a))},onUpdateReportFormat:a=>{Ee(e),e(se(a))},onClickMenuIcon:()=>{c(!0)},onResyncReports:()=>{e(te("profit_and_loss_by_classes"))}}})(Re);function xe(){const e=Ie(),o=N(),l=V(),c=H(),{tenantEmailDomain:a}=$(),s=x.getSignedInUser(),[t,r]=g.useState(!1),[m,h]=g.useState(!1);if(s==null)throw Error("Can't access reports page without signing in...");const d=p(n=>G(n)),f=d.company?.companyInfo.firstMonthOfFY??1,u=p(n=>I(n).fetchState),B=p(n=>Q(n)),{areTenantIdsInSync:_}=Ce(),C=p(n=>n.financeStatementState.selectedReportId),v=p(n=>I(n).isCompareModeOn),b=p(n=>I(n).filter),y=p(n=>I(n).selectedReportAndTimeframeFetchState);g.useEffect(()=>{!t&&_&&(r(!0),l(R(s.userId,!0,!0,!1)))},[t,s,l,_]),g.useEffect(()=>{t&&!m&&u==="Completed"&&_&&(l(R(s.userId,!1,!0,!1)),h(!0))},[t,m,u,_]),g.useEffect(()=>{if(t&&y.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&_)switch(C){case"profit_and_loss":case"profit_and_loss_by_classes":l(X(b.timeframe));break;case"balance_sheet":l(W(b.timeframe));break;case"cash_flow":l(J(b.timeframe))}},[t,C,y,_]);const M=ye(),L=M?.loggedInUserRole!=null&&K(M?.loggedInUserRole)!==!0,[Y,q]=g.useState(!1),P=n=>{q(n)};return i.jsxs(i.Fragment,{children:[u==="Completed"?i.jsx(Te,{analytics:A,onLoad:n=>n.trackPageLoaded(we.Event.reports)}):null,i.jsx(je,{isAppContentDrawerOpen:Y,handleDrawerToggle:P}),i.jsx(Ue,{firstMonthOfFY:f,tenantEmailDomain:a,location:c,navigate:o,windowSize:e,selectedReportID:C,analytics:A,filter:b,isCompareModeOn:v,hasTransactionAccess:L,signedInUser:s,selectedReportAndTimeframeFetchState:y,handleDrawerToggle:P,reportsResyncFetchState:B.reportsResyncFetchState})]})}const w=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function aa(){const e=p(s=>G(s)),{useFeatureGate:o}=ke(),{isFeatureEnabled:l}=o(De.isDebitCardFeatureEnabled),c=ge(l,e),a=Se(e);return c===!0||a===!0?i.jsx(Ge,{}):i.jsxs(Z,{children:[i.jsx(j,{path:"/",element:i.jsx(xe,{})}),i.jsx(j,{path:"*",element:i.jsx(Ae,{})})]})}export{aa as default};
1
+ import{j as i}from"./pdf-emb33J2I.js";import{j as N,i as V,h as H,l as $,u as p,k as z,R as Z,m as j}from"./core-twTS7Cne.js";import{cs as G,cQ as I,GO as Q,m2 as R,gA as J,fE as W,m7 as X,bt as K,GP as ee,bm as ae,qn as te,GQ as se,GR as oe,pl as ne,GS as re,GT as le,GU as T,GV as O,GW as F,GX as k,GY as D,Ev as ie,q4 as ce,pT as E,pU as U,qa as de,pY as pe,qf as me,GZ as fe,G_ as ue,G$ as he,H0 as _e,H1 as be,cz as ge,cx as Se}from"./zeni-epic-state-DyRbb6Q5.js";import{J as Ie,je as x,jR as Ce,t as ye,bc as Te,jl as A,G as we,jS as Re,jT as Oe,jA as Fe,aE as ke,aG as De}from"./index-k1doZNFg.js";import"./mui-Bi07oTwe.js";import Ae from"./NotFoundScreen-BBemVqe2.js";import{F as Ge}from"./FeaturePreviewScreen-DqxtfQjE.js";import{a as g}from"./sentry-CytkDQe2.js";import{t as Me,a as Pe}from"./routePaths-DiyiibEL.js";import{M as je}from"./MobileAppDrawer-B2Fzw8F_.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.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]="40a3b667-c7e2-462d-b4af-6a47e81b4048",e._sentryDebugIdIdentifier="sentry-dbid-40a3b667-c7e2-462d-b4af-6a47e81b4048")}catch{}})();const S=e=>{e(D({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(F({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},Ee=e=>{e(ue()),e(he()),e(_e()),e(be())},Ue=z(function(e){const o=x.getSignedInUser(),l=e.tenantState.currentTenantId,c=G(e),a=c?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:l??""},t=I(e),r=ee(c);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:A,isZeniUser:ae(o),showAccountGroups:r===!0,currentTenantCompanyName:a,statementEndPoint:`${Oe}/statement`,authParams:s,isZeniCOAUsed:r}},function(e,o){const{navigate:l,handleDrawerToggle:c}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(R(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(fe(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(me(a)),s){const{isCompareModeOn:r,filter:m}=o,{additionalBalances:h,balancesRange:d}=m;let f=[...h];a==="year"&&(f=f.filter(u=>u!=="this_period_vs_same_period_last_year"&&u!=="this_period_vs_same_period_last_year_percent"&&u!=="same_period_last_year")),e(E(o.firstMonthOfFY,r,d.numberOfPeriods<4?4:d.numberOfPeriods,f)),h.length>0&&e(U(o.firstMonthOfFY,f.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,f))}t!==!0&&setTimeout(()=>S(e),50)},onReportSelectionChanged:a=>{e(T(a)),S(e)},onCOABalancesRangeChanged:a=>{e(pe(a)),S(e)},onThisPeriodChanged:(a,s,t)=>{e(de(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&S(e)},onAdditionalBalanceSelectionChanged:(a,s,t,r)=>{e(E(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(U(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),r!==!0&&o.isCompareModeOn===a||setTimeout(()=>S(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,r)=>{e(ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:r}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s)=>{let t,r;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(t=s.balanceTimeFrame,r=ie(s)):s.balanceTimeFrame==="year"?(t="quarter",r={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),r!=null&&t!=null){const m=a.accountName===""?a.accountDescription:a.accountName,h=a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null?Me(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],m,t,r):Pe(o.tenantEmailDomain,a.accountId,a.accountType,m,t,r),d=Fe(o.location.state?.pathnameStackToGoBack,o.location.pathname);l(h,{state:{pathnameStackToGoBack:d,referrer:w(o.selectedReportID)}})}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(D({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(k({scrollPosition:s}));break;case"balance_sheet":e(F({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(F({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{l("../../")},onUpdateAccountViewMode:a=>{e(le({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",w(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",w(o.selectedReportID)),e(T("profit_and_loss"))),S(e)},onUpdateClassesToFilterOut:a=>{e(re({classesToFilterOut:a}))},onOpenAccountViewMode:()=>{e(ne())},onUpdateDisplayOrder:a=>{e(oe(a))},onUpdateReportFormat:a=>{Ee(e),e(se(a))},onClickMenuIcon:()=>{c(!0)},onResyncReports:()=>{e(te("profit_and_loss_by_classes"))}}})(Re);function xe(){const e=Ie(),o=N(),l=V(),c=H(),{tenantEmailDomain:a}=$(),s=x.getSignedInUser(),[t,r]=g.useState(!1),[m,h]=g.useState(!1);if(s==null)throw Error("Can't access reports page without signing in...");const d=p(n=>G(n)),f=d.company?.companyInfo.firstMonthOfFY??1,u=p(n=>I(n).fetchState),B=p(n=>Q(n)),{areTenantIdsInSync:_}=Ce(),C=p(n=>n.financeStatementState.selectedReportId),v=p(n=>I(n).isCompareModeOn),b=p(n=>I(n).filter),y=p(n=>I(n).selectedReportAndTimeframeFetchState);g.useEffect(()=>{!t&&_&&(r(!0),l(R(s.userId,!0,!0,!1)))},[t,s,l,_]),g.useEffect(()=>{t&&!m&&u==="Completed"&&_&&(l(R(s.userId,!1,!0,!1)),h(!0))},[t,m,u,_]),g.useEffect(()=>{if(t&&y.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&_)switch(C){case"profit_and_loss":case"profit_and_loss_by_classes":l(X(b.timeframe));break;case"balance_sheet":l(W(b.timeframe));break;case"cash_flow":l(J(b.timeframe))}},[t,C,y,_]);const M=ye(),L=M?.loggedInUserRole!=null&&K(M?.loggedInUserRole)!==!0,[Y,q]=g.useState(!1),P=n=>{q(n)};return i.jsxs(i.Fragment,{children:[u==="Completed"?i.jsx(Te,{analytics:A,onLoad:n=>n.trackPageLoaded(we.Event.reports)}):null,i.jsx(je,{isAppContentDrawerOpen:Y,handleDrawerToggle:P}),i.jsx(Ue,{firstMonthOfFY:f,tenantEmailDomain:a,location:c,navigate:o,windowSize:e,selectedReportID:C,analytics:A,filter:b,isCompareModeOn:v,hasTransactionAccess:L,signedInUser:s,selectedReportAndTimeframeFetchState:y,handleDrawerToggle:P,reportsResyncFetchState:B.reportsResyncFetchState})]})}const w=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function aa(){const e=p(s=>G(s)),{useFeatureGate:o}=ke(),{isFeatureEnabled:l}=o(De.isDebitCardFeatureEnabled),c=ge(l,e),a=Se(e);return c===!0||a===!0?i.jsx(Ge,{}):i.jsxs(Z,{children:[i.jsx(j,{path:"/",element:i.jsx(xe,{})}),i.jsx(j,{path:"*",element:i.jsx(Ae,{})})]})}export{aa as default};
@@ -1,4 +1,4 @@
1
- import{y as F,O as S,V as t,e as m,Q as Fe,an as Q,u as E,j as M,ag as Z,J as de,o as x,a6 as Ve,b as fe,b8 as ge,s as R,b9 as V,au as K}from"./index-EqHxd201.js";import{a as z,b as ee}from"./sentry-Q4kep6XN.js";import{n as f}from"./mui-2NnLxiU2.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-40RenddT-xOl7ri4B.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-DkMGvlEt-rov467Ra.js";import{V as X}from"./toChartData-C6s-eBzE-CuLISfRU.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-DLbOXl5Z.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]="1e353eac-9780-4d7b-9ae9-e19db764c046",e._sentryDebugIdIdentifier="sentry-dbid-1e353eac-9780-4d7b-9ae9-e19db764c046")}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,e as m,Q as Fe,an as Q,u as E,j as M,ag as Z,J as de,o as x,a6 as Ve,b as fe,b8 as ge,s as R,b9 as V,au as K}from"./index-k1doZNFg.js";import{a as z,b as ee}from"./sentry-CytkDQe2.js";import{n as f}from"./mui-Bi07oTwe.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-40RenddT-D0AbAyeZ.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-DkMGvlEt-DFgINRIk.js";import{V as X}from"./toChartData-C6s-eBzE-BfIZvn48.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-CS0s98U8.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]="1e353eac-9780-4d7b-9ae9-e19db764c046",e._sentryDebugIdIdentifier="sentry-dbid-1e353eac-9780-4d7b-9ae9-e19db764c046")}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};
@@ -1,4 +1,4 @@
1
- import{J as wt,t as $t,b as u,ep as vt,eq as jt,er as St,V as t,es as Ct,et as ie,eu as Tt,ev as Dt,ew as It,ex as Pt,a4 as k,ey as kt,a6 as v,ez as Mt,eA as Be,eB as Fe,eC as Re,j as H,eD as O,e as j,eE as At,eF as E,eG as _,eH as Bt,eI as Ft,bg as Le,o as n,a9 as Rt,u as d,O as Lt,K as zt,bp as Nt,H as Ot,B as Et,eJ as _t,bB as Zt,s as ce,W as me,eK as Gt,eL as Vt,aD as Yt,l as qt,at as Kt,eM as Ht,I as tt,b6 as Ut,x as nt,aR as Wt,eN as Jt}from"./index-EqHxd201.js";import{a as G}from"./sentry-Q4kep6XN.js";import{n as a}from"./mui-2NnLxiU2.js";import{cp as ze,ck as Ne,bX as D,bW as Qt,F9 as Xt,bG as re,b_ as en}from"./zeni-epic-state-DHqVwJ2L.js";import{t as tn,o as nn}from"./LowBalancePopup-ScEqPY9J-DaHnHp3d.js";import{S as Z}from"./LabeledText-DvzVOku6-BTuTGL_7.js";import"./pdf-CmlsF1Bq.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.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]="adcf2ee3-00ce-41c3-93a0-e5ac574262c9",e._sentryDebugIdIdentifier="sentry-dbid-adcf2ee3-00ce-41c3-93a0-e5ac574262c9")}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,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[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,Ze=({attachment:e})=>{const[y,x]=G.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(Gt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Vt,{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:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:Q,retryPayment:ct})=>{const s=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(s),I=e.saveStatus,X=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]=G.useState(!1),[te,be]=G.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:s,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);G.useEffect(()=>{(I?.fetchState==="Completed"||X?.fetchState==="Completed")&&(ue(),he(),ge())},[I,X,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&V?.code?V:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&V?.code?V: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,q=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=Qt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ge(h,q,e.isBillMarkedForRetry),le=st&&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=Jt(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=Xt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,K]=G.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{dt(),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:s,style:lt,children:[s==="small"?t.jsxs(Pn,{windowSize:s,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(qe,{windowSize:s,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),s!=="small"?t.jsx(bn,{children:t.jsx(qe,{windowSize:s,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:()=>Q(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(s)?t.jsxs(Ke,{windowSize:s,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Je,{children:t.jsx(Qe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(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(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ke,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Je,{children:t.jsx(Qe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>Q(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(Xe,{style:{width:"25%"},windowSize:s,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(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(He,{children:o.pay}),t.jsx(Ue,{children:t.jsx(Re,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(He,{children:o.to}),t.jsx(Ue,{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(Z,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,s):g,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(U,{})]}),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(Z,{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?Ht(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(U,{}),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(Z,{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(U,{})]}),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(Z,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),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(Z,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(s,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:s,children:[t.jsxs(yn,{children:[t.jsx(dn,{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(de,{children:i.method.includes(D)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(de,{children:_e.transactionFee}),t.jsx(se,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(sn,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{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:H.h6Medium.cssObject,decimalStyles:H.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:Ve(!1,C,h,q,s)}},primaryBtn:{label:Ge(h,q,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||X?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?K(!0):Ce()},style:{width:Ve(!0,C,h,q,s)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Zn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Vn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Gn,{})})})}):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})]})},Ge=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ve=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(Ut)`
1
+ import{J as wt,t as $t,b as u,ep as vt,eq as jt,er as St,V as t,es as Ct,et as ie,eu as Tt,ev as Dt,ew as It,ex as Pt,a4 as k,ey as kt,a6 as v,ez as Mt,eA as Be,eB as Fe,eC as Re,j as H,eD as O,e as j,eE as At,eF as E,eG as _,eH as Bt,eI as Ft,bg as Le,o as n,a9 as Rt,u as d,O as Lt,K as zt,bp as Nt,H as Ot,B as Et,eJ as _t,bB as Zt,s as ce,W as me,eK as Gt,eL as Vt,aD as Yt,l as qt,at as Kt,eM as Ht,I as tt,b6 as Ut,x as nt,aR as Wt,eN as Jt}from"./index-k1doZNFg.js";import{a as G}from"./sentry-CytkDQe2.js";import{n as a}from"./mui-Bi07oTwe.js";import{cp as ze,ck as Ne,bX as D,bW as Qt,F9 as Xt,bG as re,b_ as en}from"./zeni-epic-state-DyRbb6Q5.js";import{t as tn,o as nn}from"./LowBalancePopup-ScEqPY9J-wCMhmKTa.js";import{S as Z}from"./LabeledText-DvzVOku6-C1r6b0lJ.js";import"./pdf-emb33J2I.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.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]="adcf2ee3-00ce-41c3-93a0-e5ac574262c9",e._sentryDebugIdIdentifier="sentry-dbid-adcf2ee3-00ce-41c3-93a0-e5ac574262c9")}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,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[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,Ze=({attachment:e})=>{const[y,x]=G.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(Gt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Vt,{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:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:Q,retryPayment:ct})=>{const s=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(s),I=e.saveStatus,X=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]=G.useState(!1),[te,be]=G.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:s,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);G.useEffect(()=>{(I?.fetchState==="Completed"||X?.fetchState==="Completed")&&(ue(),he(),ge())},[I,X,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&V?.code?V:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&V?.code?V: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,q=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=Qt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ge(h,q,e.isBillMarkedForRetry),le=st&&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=Jt(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=Xt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,K]=G.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{dt(),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:s,style:lt,children:[s==="small"?t.jsxs(Pn,{windowSize:s,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(qe,{windowSize:s,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),s!=="small"?t.jsx(bn,{children:t.jsx(qe,{windowSize:s,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:()=>Q(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(s)?t.jsxs(Ke,{windowSize:s,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Je,{children:t.jsx(Qe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(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(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ke,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Je,{children:t.jsx(Qe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>Q(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(Xe,{style:{width:"25%"},windowSize:s,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(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(He,{children:o.pay}),t.jsx(Ue,{children:t.jsx(Re,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(He,{children:o.to}),t.jsx(Ue,{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(Z,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,s):g,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(U,{})]}),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(Z,{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?Ht(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(U,{}),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(Z,{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(U,{})]}),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(Z,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),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(Z,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(s,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:s,children:[t.jsxs(yn,{children:[t.jsx(dn,{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(de,{children:i.method.includes(D)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(de,{children:_e.transactionFee}),t.jsx(se,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(sn,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{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:H.h6Medium.cssObject,decimalStyles:H.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:Ve(!1,C,h,q,s)}},primaryBtn:{label:Ge(h,q,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||X?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?K(!0):Ce()},style:{width:Ve(!0,C,h,q,s)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Zn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Vn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Gn,{})})})}):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})]})},Ge=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ve=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(Ut)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{J as M,V as i,a6 as m,o as r,a9 as P,b as d,a8 as L,H as W,B as I,e as s,s as j,bW as D,f as R,x as S,aC as G,u as o,dC as A,aA as _,hZ as F}from"./index-EqHxd201.js";import{n as t}from"./mui-2NnLxiU2.js";import{a as w}from"./sentry-Q4kep6XN.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]="9d0ec0d7-b8c1-4bc8-9e3c-5bfce6c5d3b3",e._sentryDebugIdIdentifier="sentry-dbid-9d0ec0d7-b8c1-4bc8-9e3c-5bfce6c5d3b3")}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 W("h6Regular","h5Regular")},me=({title:e,description:g,reviewItems:x,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const l=M();return i.jsxs(J,{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":m("review-overlay-close",e)})})})})}),i.jsxs(O,{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:x.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:()=>B(n.id),"data-testid":m("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:Z(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(b,{})}):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(b,{})}):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(P,{primaryBtn:C,cancelBtn:T,showCancel:!E}):null]})},Z=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,{}),J=t.div`
1
+ import{J as M,V as i,a6 as m,o as r,a9 as P,b as d,a8 as L,H as W,B as I,e as s,s as j,bW as D,f as R,x as S,aC as G,u as o,dC as A,aA as _,hZ as F}from"./index-k1doZNFg.js";import{n as t}from"./mui-Bi07oTwe.js";import{a as w}from"./sentry-CytkDQe2.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]="9d0ec0d7-b8c1-4bc8-9e3c-5bfce6c5d3b3",e._sentryDebugIdIdentifier="sentry-dbid-9d0ec0d7-b8c1-4bc8-9e3c-5bfce6c5d3b3")}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 W("h6Regular","h5Regular")},me=({title:e,description:g,reviewItems:x,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const l=M();return i.jsxs(J,{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":m("review-overlay-close",e)})})})})}),i.jsxs(O,{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:x.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:()=>B(n.id),"data-testid":m("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:Z(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(b,{})}):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(b,{})}):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(P,{primaryBtn:C,cancelBtn:T,showCancel:!E}):null]})},Z=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,{}),J=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-CmlsF1Bq.js";import{aE as x,je as w,aF as b,bc as E,jl as p,G as F,m3 as L,aG as P}from"./index-EqHxd201.js";import"./mui-2NnLxiU2.js";import m from"./NotFoundScreen-BbpMMX9s.js";import{a as f}from"./sentry-Q4kep6XN.js";import{i as R,u as y,j as T,h as V,k as U,R as A,m as u}from"./core-B0aIoG8L.js";import{cs as G,Nb as C,Ka as z,Nc as N,pK as K,cF as Y,Nd as O,pI as q}from"./zeni-epic-state-DHqVwJ2L.js";import{R as j}from"./ReferralListScreen-SWZzL8_L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.js";import"./MobileAppDrawer-sKiHtZDX.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]="cb2eca61-bc39-49f9-8f04-aa8f9223fdae",a._sentryDebugIdIdentifier="sentry-dbid-cb2eca61-bc39-49f9-8f04-aa8f9223fdae")}catch{}})();const B=U(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(N()),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(q())},onUpdateInviteFormLocalData:s=>{a(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),H=()=>{const a=R(),[t,n]=f.useState(!1),[o,s]=f.useState(!1),r=y(i=>G(i)),c=T(),k=V(),{useDynamicConfig:g}=x(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const l=y(i=>C(i)),v=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:D}=g(b.zeniAccountsConfig),_=z(D);f.useEffect(()=>{a(N()),r?.rewardsLastViewedTime==null&&o===!1&&(a(K()),s(!0))},[]),f.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),a(Y(!0)))},[l.fetchState,a]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[l.fetchState==="Completed"?e.jsx(E,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,e.jsx(B,{navigate:c,location:k,currentTenant:r,companyName:I,userName:v,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:_.maxAnnualPercentageYield})]})};function la(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(P.isReferralFeatureEnabled);return e.jsxs(A,{children:[e.jsx(u,{path:"/",element:t?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(u,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(m,{})}),e.jsx(u,{path:"refer/*",element:t?e.jsx(H,{}):e.jsx(m,{})}),e.jsx(u,{path:"*",element:e.jsx(m,{})})]})}export{la as default};
1
+ import{j as e}from"./pdf-emb33J2I.js";import{aE as x,je as w,aF as b,bc as E,jl as p,G as F,m3 as L,aG as P}from"./index-k1doZNFg.js";import"./mui-Bi07oTwe.js";import m from"./NotFoundScreen-BBemVqe2.js";import{a as f}from"./sentry-CytkDQe2.js";import{i as R,u as y,j as T,h as V,k as U,R as A,m as u}from"./core-twTS7Cne.js";import{cs as G,Nb as C,Ka as z,Nc as N,pK as K,cF as Y,Nd as O,pI as q}from"./zeni-epic-state-DyRbb6Q5.js";import{R as j}from"./ReferralListScreen-CSsSh4ih.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.js";import"./MobileAppDrawer-B2Fzw8F_.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]="cb2eca61-bc39-49f9-8f04-aa8f9223fdae",a._sentryDebugIdIdentifier="sentry-dbid-cb2eca61-bc39-49f9-8f04-aa8f9223fdae")}catch{}})();const B=U(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(N()),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(q())},onUpdateInviteFormLocalData:s=>{a(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),H=()=>{const a=R(),[t,n]=f.useState(!1),[o,s]=f.useState(!1),r=y(i=>G(i)),c=T(),k=V(),{useDynamicConfig:g}=x(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const l=y(i=>C(i)),v=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:D}=g(b.zeniAccountsConfig),_=z(D);f.useEffect(()=>{a(N()),r?.rewardsLastViewedTime==null&&o===!1&&(a(K()),s(!0))},[]),f.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),a(Y(!0)))},[l.fetchState,a]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[l.fetchState==="Completed"?e.jsx(E,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,e.jsx(B,{navigate:c,location:k,currentTenant:r,companyName:I,userName:v,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:_.maxAnnualPercentageYield})]})};function la(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(P.isReferralFeatureEnabled);return e.jsxs(A,{children:[e.jsx(u,{path:"/",element:t?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(u,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(m,{})}),e.jsx(u,{path:"refer/*",element:t?e.jsx(H,{}):e.jsx(m,{})}),e.jsx(u,{path:"*",element:e.jsx(m,{})})]})}export{la as default};
@@ -1,4 +1,4 @@
1
- import{e4 as c,e5 as h,V as s,bg as g,o as d,a6 as n,O as x,k as f,x as p}from"./index-EqHxd201.js";import{n as l}from"./mui-2NnLxiU2.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]="b6821861-4674-4a7e-85ad-88196810edf4",e._sentryDebugIdIdentifier="sentry-dbid-b6821861-4674-4a7e-85ad-88196810edf4")}catch{}})();const{hyphen:i}=x.getLocalizedStrings().common.strings,m=l.div``,y=l.div`
1
+ import{e4 as c,e5 as h,V as s,bg as g,o as d,a6 as n,O as x,k as f,x as p}from"./index-k1doZNFg.js";import{n as l}from"./mui-Bi07oTwe.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]="b6821861-4674-4a7e-85ad-88196810edf4",e._sentryDebugIdIdentifier="sentry-dbid-b6821861-4674-4a7e-85ad-88196810edf4")}catch{}})();const{hyphen:i}=x.getLocalizedStrings().common.strings,m=l.div``,y=l.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,hv as X,fY as fe,dT as Le,hw as we,T as Je,hx as Me,b$ as _e,c0 as Ve,V as a,A as Pe,bK as Fe,bL as Ne,bM as $e,a9 as qe,hy as Be,hz as Re,O as ve,_ as ue,hA as Se,hB as We,c3 as Ue,J as ze,hP as He,g1 as ie,u as q,e as De,b as ye,c4 as Ke,hC as Ge,hD as Ye,hE as Qe,o as V}from"./index-EqHxd201.js";import{a as D}from"./sentry-Q4kep6XN.js";import{n as R}from"./mui-2NnLxiU2.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-DHqVwJ2L.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-J6Eja8XA-CGs8BkOX.js";import"./pdf-CmlsF1Bq.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.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]="12e7dfef-3f7d-4592-aaad-5bcae297e574",e._sentryDebugIdIdentifier="sentry-dbid-12e7dfef-3f7d-4592-aaad-5bcae297e574")}catch{}})();const B={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=R.div`
1
+ import{a7 as U,hv as X,fY as fe,dT as Le,hw as we,T as Je,hx as Me,b$ as _e,c0 as Ve,V as a,A as Pe,bK as Fe,bL as Ne,bM as $e,a9 as qe,hy as Be,hz as Re,O as ve,_ as ue,hA as Se,hB as We,c3 as Ue,J as ze,hP as He,g1 as ie,u as q,e as De,b as ye,c4 as Ke,hC as Ge,hD as Ye,hE as Qe,o as V}from"./index-k1doZNFg.js";import{a as D}from"./sentry-CytkDQe2.js";import{n as R}from"./mui-Bi07oTwe.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-DyRbb6Q5.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-J6Eja8XA-uTDNIyeO.js";import"./pdf-emb33J2I.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.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]="12e7dfef-3f7d-4592-aaad-5bcae297e574",e._sentryDebugIdIdentifier="sentry-dbid-12e7dfef-3f7d-4592-aaad-5bcae297e574")}catch{}})();const B={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=R.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{a7 as P,hv as Q,fY as ke,dT as Ae,hw as Ie,T as Je,hx as we,b$ as Le,c0 as Me,V as a,A as Ve,bK as Pe,bL as _e,bM as $e,a9 as Fe,hy as Ne,hz as Be,O as De,_ as ce,hA as pe,hB as ze,c3 as Re,J as Ue,g1 as me,u as X,e as qe,b as We,hC as Ke,hD as Ge,hE as He,o as A}from"./index-EqHxd201.js";import{a as D}from"./sentry-Q4kep6XN.js";import{n as M}from"./mui-2NnLxiU2.js";import{bH as Ye,bI as Qe,bG as Xe}from"./zeni-epic-state-DHqVwJ2L.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-J6Eja8XA-CGs8BkOX.js";import"./pdf-CmlsF1Bq.js";import"./core-B0aIoG8L.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.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]="2ef95839-3f31-4ff7-a93a-3f38c20d4346",e._sentryDebugIdIdentifier="sentry-dbid-2ef95839-3f31-4ff7-a93a-3f38c20d4346")}catch{}})();const N={labelWidth:new We(160,160,160)},at=M.div`
1
+ import{a7 as P,hv as Q,fY as ke,dT as Ae,hw as Ie,T as Je,hx as we,b$ as Le,c0 as Me,V as a,A as Ve,bK as Pe,bL as _e,bM as $e,a9 as Fe,hy as Ne,hz as Be,O as De,_ as ce,hA as pe,hB as ze,c3 as Re,J as Ue,g1 as me,u as X,e as qe,b as We,hC as Ke,hD as Ge,hE as He,o as A}from"./index-k1doZNFg.js";import{a as D}from"./sentry-CytkDQe2.js";import{n as M}from"./mui-Bi07oTwe.js";import{bH as Ye,bI as Qe,bG as Xe}from"./zeni-epic-state-DyRbb6Q5.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-J6Eja8XA-uTDNIyeO.js";import"./pdf-emb33J2I.js";import"./core-twTS7Cne.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.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]="2ef95839-3f31-4ff7-a93a-3f38c20d4346",e._sentryDebugIdIdentifier="sentry-dbid-2ef95839-3f31-4ff7-a93a-3f38c20d4346")}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{J as A,y as Q,V as i,hF as te,hG as oe,H as le,hH as xe,d5 as fe,eC as we,j as I,O as R,hI as ye,hE as be,o as t,b as $,e as S,l as $e,_ as ne,d1 as je,bK as Se,bM as ke,c3 as X,dL as ee,bZ as ve,hJ as K,hK as De,an as Ce,hL as Me,bO as ze,hM as Le,u,s as L,at as Oe,bL as Ee,m as pe,dU as Ie,al as re,dG as Ae,a9 as Fe,hN as F,fx as Te,a4 as Je,hO as Ve,ad as q,ch as Be,aC as Pe}from"./index-EqHxd201.js";import{n as l,c as B}from"./mui-2NnLxiU2.js";import{a as C}from"./sentry-Q4kep6XN.js";import{bs as G,FF as Re}from"./zeni-epic-state-DHqVwJ2L.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]="5268a9f7-bf1b-4fb7-a850-9c85d9f3ff69",e._sentryDebugIdIdentifier="sentry-dbid-5268a9f7-bf1b-4fb7-a850-9c85d9f3ff69")}catch{}})();const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:o,placeholder:s,alignLeft:n=!1,style:p,isDisabled:r,registerOptions:c,onSaveClick:h,onCancelClick:y}){const[w,a]=C.useState(!1),{control:g,formState:{errors:b},setValue:k}=X(),v=()=>{f||(h(),a(!1))},x=()=>{y(),a(!1)},f=ee(b,o),m=A(),d=Q();return i.jsx(pe,{onClickAway:()=>{a(!1)},children:i.jsx(Ze,{style:p,isDisabled:r!=null,windowSize:m,onClick:()=>{!w&&r==null&&a(!0)},children:i.jsx(Ie,{name:N(o,"dayOfMonth"),control:g,rules:{...c},render:()=>i.jsxs(Ye,{children:[i.jsx(We,{placeholder:s,defaultValue:e,isDisabled:r}),w?i.jsxs(Ge,{alignLeft:n===!0,children:[i.jsx(ei,{}),i.jsxs(ae,{isSelected:e.type==="day",children:[i.jsxs(Xe,{isError:e.type==="day"&&f,children:[i.jsx(re,{label:{label:M.pickDate},radioField:{id:"day",name:N(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"&&f?S.important:"inherit"}}),i.jsx(Ae,{name:N(o,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:j=>{j.key!=="Backspace"&&isNaN(parseInt(j.key))&&j.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"&&f?S.important:d.colors.grey2}`,borderRadius:t.sp1,...I.smallRegular.cssObject,padding:t.sp2,maxWidth:"35px",boxSizing:"border-box"}}),i.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),i.jsx(He,{defaultValue:e.dayOfMonth,onClick:j=>{k(`${o}.dayOfMonth`,j),k(`${o}.type`,"day")}})]}),i.jsx(ii,{}),i.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:i.jsx(re,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(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"&&f?S.important:"inherit"}})}),i.jsx(Fe,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:_e(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:x,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:o,isDisabled:s}){return i.jsxs(qe,{isDisabled:s!=null,children:[o?.type==null?i.jsx(Ke,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?i.jsxs(de,{children:[i.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),i.jsx(W,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?i.jsxs(de,{children:[i.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),i.jsx(W,{children:M.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:o}){return i.jsxs(Qe,{children:[i.jsx(H,{children:[...Array(7).keys()].map(s=>{const n=s+1;return i.jsx(_,{isSelected:n===e,onClick:()=>o(Re(n)),children:n},n)})}),i.jsx(H,{children:[...Array(7).keys()].map(s=>{const n=s+8;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(H,{children:[...Array(7).keys()].map(s=>{const n=s+15;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(H,{children:[...Array(7).keys()].map(s=>{const n=s+22;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})})]})}const _e=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=l.div`
1
+ import{J as A,y as Q,V as i,hF as te,hG as oe,H as le,hH as xe,d5 as fe,eC as we,j as I,O as R,hI as ye,hE as be,o as t,b as $,e as S,l as $e,_ as ne,d1 as je,bK as Se,bM as ke,c3 as X,dL as ee,bZ as ve,hJ as K,hK as De,an as Ce,hL as Me,bO as ze,hM as Le,u,s as L,at as Oe,bL as Ee,m as pe,dU as Ie,al as re,dG as Ae,a9 as Fe,hN as F,fx as Te,a4 as Je,hO as Ve,ad as q,ch as Be,aC as Pe}from"./index-k1doZNFg.js";import{n as l,c as B}from"./mui-Bi07oTwe.js";import{a as C}from"./sentry-CytkDQe2.js";import{bs as G,FF as Re}from"./zeni-epic-state-DyRbb6Q5.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]="5268a9f7-bf1b-4fb7-a850-9c85d9f3ff69",e._sentryDebugIdIdentifier="sentry-dbid-5268a9f7-bf1b-4fb7-a850-9c85d9f3ff69")}catch{}})();const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:o,placeholder:s,alignLeft:n=!1,style:p,isDisabled:r,registerOptions:c,onSaveClick:h,onCancelClick:y}){const[w,a]=C.useState(!1),{control:g,formState:{errors:b},setValue:k}=X(),v=()=>{f||(h(),a(!1))},x=()=>{y(),a(!1)},f=ee(b,o),m=A(),d=Q();return i.jsx(pe,{onClickAway:()=>{a(!1)},children:i.jsx(Ze,{style:p,isDisabled:r!=null,windowSize:m,onClick:()=>{!w&&r==null&&a(!0)},children:i.jsx(Ie,{name:N(o,"dayOfMonth"),control:g,rules:{...c},render:()=>i.jsxs(Ye,{children:[i.jsx(We,{placeholder:s,defaultValue:e,isDisabled:r}),w?i.jsxs(Ge,{alignLeft:n===!0,children:[i.jsx(ei,{}),i.jsxs(ae,{isSelected:e.type==="day",children:[i.jsxs(Xe,{isError:e.type==="day"&&f,children:[i.jsx(re,{label:{label:M.pickDate},radioField:{id:"day",name:N(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"&&f?S.important:"inherit"}}),i.jsx(Ae,{name:N(o,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:j=>{j.key!=="Backspace"&&isNaN(parseInt(j.key))&&j.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"&&f?S.important:d.colors.grey2}`,borderRadius:t.sp1,...I.smallRegular.cssObject,padding:t.sp2,maxWidth:"35px",boxSizing:"border-box"}}),i.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),i.jsx(He,{defaultValue:e.dayOfMonth,onClick:j=>{k(`${o}.dayOfMonth`,j),k(`${o}.type`,"day")}})]}),i.jsx(ii,{}),i.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:i.jsx(re,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(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"&&f?S.important:"inherit"}})}),i.jsx(Fe,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:_e(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:x,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:o,isDisabled:s}){return i.jsxs(qe,{isDisabled:s!=null,children:[o?.type==null?i.jsx(Ke,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?i.jsxs(de,{children:[i.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),i.jsx(W,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?i.jsxs(de,{children:[i.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),i.jsx(W,{children:M.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:o}){return i.jsxs(Qe,{children:[i.jsx(H,{children:[...Array(7).keys()].map(s=>{const n=s+1;return i.jsx(_,{isSelected:n===e,onClick:()=>o(Re(n)),children:n},n)})}),i.jsx(H,{children:[...Array(7).keys()].map(s=>{const n=s+8;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(H,{children:[...Array(7).keys()].map(s=>{const n=s+15;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})}),i.jsx(H,{children:[...Array(7).keys()].map(s=>{const n=s+22;return i.jsx(_,{isSelected:n===e,onClick:()=>o(n),children:n},n)})})]})}const _e=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=l.div`
2
2
  position: relative;
3
3
  `,qe=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-DgAbb01S.js","assets/pdf-CmlsF1Bq.js","assets/zeni-epic-state-DHqVwJ2L.js","assets/sentry-Q4kep6XN.js","assets/core-B0aIoG8L.js","assets/index-EqHxd201.js","assets/mui-2NnLxiU2.js","assets/recharts-DLbOXl5Z.js","assets/lottie-C-63nSQ2.js","assets/liveblocks-BGLG0ZRF.js","assets/dnd-CeLShHIc.js","assets/analytics-JKNMIPCj.js","assets/plaid-AStGMBRC.js","assets/utils-Yz1HF93N.js","assets/index-D-vub4_t.css","assets/withTransactionSidePanel-BBaDdbsh.js","assets/TransactionDetailScreen-DIenmNko.js","assets/decodeURIComponentSafe-Bu6iKDPg.js","assets/routePaths-D30DRN8c.js","assets/NotFoundScreen-BbpMMX9s.js","assets/analyticsHelper-UkV1zy0R.js","assets/CompanyPassportScreen-CKvA-EmO.js","assets/MobileAppDrawer-sKiHtZDX.js","assets/FeaturePreviewScreen-fP1RCpGB.js","assets/ReferralListScreen-SWZzL8_L.js","assets/BillPayRoutes-DoxfX2T6.js","assets/AddressScreen-Sz_h2Ufw.js","assets/DomesticWireDetailScreen-D-80T6qK.js","assets/useInitialThreadRequest-odLUiJqj.js","assets/zeni-icon-only-fh8VXN1X.js","assets/DrawerScreen-PuONww5M.js","assets/SetupPagesScreen-CP5xGQM-.js","assets/BusinessVerificationPageScreen-BdThFZ9q.js","assets/BillPayApprovalRoutes-DuHAqKTx.js","assets/ReimbursementApprovalRuleDetailScreen-C6QD0dHy.js","assets/getLocaleForTenant-Dk0k1evv.js","assets/ReimbursementRoutes-BDoS2Viq.js","assets/ReimbursementApprovalRoutes-CDcbSeCq.js","assets/TransactionListRoutes-cXRM-Tzx.js","assets/ZeniAccountStatementScreen-DbUnng23.js","assets/SettingsRoutes-D4OVycdK.js","assets/accountMappingHelper-CiZg2tUy.js","assets/ReportsRoutes-c3YTFnRz.js","assets/ChargeCardRoutes-C01rd9YM.js","assets/PeopleRoutes-Bji1PDT3.js","assets/ExpenseAutomationRoutes-Jp2Kebgt.js","assets/TreasuryRoutes-5Jq3PBCh.js","assets/VendorsRoutes-LjTGNk-2.js","assets/pathToGoBack-Bv92NQSQ.js","assets/ZeniAccountRoutes-DgIyNsYA.js","assets/AddressRoutes-DQolOeHT.js","assets/PandLWithForecastRoutes-B4PiCC38.js","assets/CustomerOnboardingRoutes-DUHs6wCe.js","assets/QBOConnectionScreen-BBQqRB2z.js","assets/empty-BkriGRuv.js","assets/pdf-lib-BdZjuQvb.js","assets/index-CImw4dkc.js","assets/url-DpsurdUI.js","assets/index-uHN8COgu.js","assets/TransactionDetailRoutes-BqPivaDh.js","assets/EntityDetailRoutes-C3aUb0lp.js","assets/NotificationRoutes-B4bfKvmi.js","assets/PerformanceRoutes-C2QScidi.js","assets/RewardsRoutes-o1myXW2J.js","assets/TaskRoutes-Dv_crepW.js","assets/AiCfoScreen-ChmPOKZy.js","assets/TaskListScreen-rlkEoDCk.js"])))=>i.map(i=>d[i]);
2
- import{_ as n,bm as cs,cs as ds,cz as ms,cx as us,cy as _s,dl as As,cu as Es,bP as Ee,Fb as ps,cR as Is,bF as gs,bG as xs,bs as js,cX as Ts,v as hs,Go as Us,bt as bs,Gp as Hs,Fk as Rs,cU as ys,Fa as Ds,Ej as Cs,Ek as fs,Gq as vs,Gr as Os,bM as Ps,bO as Fs,bN as ks,bK as Ls,bL as Bs,jA as pe,ct as Ie,Gs as Vs,c_ as ge,dq as xe,dr as je,c$ as Ss}from"./zeni-epic-state-DHqVwJ2L.js";import{j as e}from"./pdf-CmlsF1Bq.js";import{a as f}from"./sentry-Q4kep6XN.js";import{i as Ns,j as Gs,l as Ms,h as Zs,u as w,g as Te,N as c,R as ws,m as t}from"./core-B0aIoG8L.js";import{y as zs,jd as $s,je as b,aE as qs,jj as Ys,aH as Ws,aG as k,t as Ks,jf as L,O as he,jg as _,jk as Xs,jl as ee,jm as l}from"./index-EqHxd201.js";import"./mui-2NnLxiU2.js";import{f as Ue}from"./analyticsHelper-UkV1zy0R.js";import{t as Js}from"./getLocaleForTenant-Dk0k1evv.js";import"./lottie-C-63nSQ2.js";import"./liveblocks-BGLG0ZRF.js";import"./recharts-DLbOXl5Z.js";import"./dnd-CeLShHIc.js";import"./analytics-JKNMIPCj.js";import"./plaid-AStGMBRC.js";import"./utils-Yz1HF93N.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]="b958a821-751d-4625-985e-7857d3cb9a10",i._sentryDebugIdIdentifier="sentry-dbid-b958a821-751d-4625-985e-7857d3cb9a10")}catch{}})();const Qs={dashboard:()=>n(()=>import("./DashboardRoutes-DgAbb01S.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-DoxfX2T6.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-BDoS2Viq.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-cXRM-Tzx.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-D4OVycdK.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-c3YTFnRz.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,23,18,22])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-C01rd9YM.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-Bji1PDT3.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,22])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-Jp2Kebgt.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-5Jq3PBCh.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-LjTGNk-2.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-DgIyNsYA.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-c3YTFnRz.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,23,18,22]))),nn=l(()=>n(()=>import("./AddressRoutes-DQolOeHT.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-Bji1PDT3.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-B4PiCC38.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-DUHs6wCe.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-LjTGNk-2.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-BqPivaDh.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-C3aUb0lp.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-DgAbb01S.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-DoxfX2T6.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-D4OVycdK.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-BDoS2Viq.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-DgIyNsYA.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-5Jq3PBCh.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-cXRM-Tzx.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-C01rd9YM.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-B4bfKvmi.js"),__vite__mapDeps([61,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14]))),pn=l(()=>n(()=>import("./PerformanceRoutes-C2QScidi.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-Jp2Kebgt.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]))),gn=l(()=>n(()=>import("./RewardsRoutes-o1myXW2J.js"),__vite__mapDeps([63,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,24,22]))),xn=l(()=>n(()=>import("./TaskRoutes-Dv_crepW.js"),__vite__mapDeps([64,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,28,22]))),jn=l(()=>n(()=>import("./AiCfoScreen-ChmPOKZy.js"),__vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,48]))),y=l(()=>n(()=>import("./NotFoundScreen-BbpMMX9s.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),Tn=l(()=>n(()=>import("./TaskListScreen-rlkEoDCk.js"),__vite__mapDeps([66,1,2,3,4,5,6,7,8,9,10,11,12,13,14,22])));function Zn({setTenantEmailDomain:i,isAiCfoOpen:v=!1,setIsAiCfoOpen:V}){const O=Ns(),M=Gs(),{tenantEmailDomain:o}=Ms(),D=zs().mode,{setLoading:B,clearAllLoading:De,clearLoading:K}=$s(),R=b.getSignedInUserTenant(o)?.tenantId,T=b.getSignedInUser(),X=cs(T),z=Zs(),[N,Ce]=f.useState(!1),r=w(a=>ds(a)),{useFeatureGate:P}=qs(),J=Ys(),fe=Ws(),{isFeatureEnabled:ve}=P(k.isExpenseAutomationEnabled),{isFeatureEnabled:Oe}=P(k.isExpenseAutomationEnabledV2),Pe=Oe||ve&&X,{isFeatureEnabled:Fe}=P(k.isDepositAccountsFeatureEnabled),{isFeatureEnabled:ke}=P(k.isTreasuryEnabled),{isFeatureEnabled:Le}=P(k.isChargeCardFeatureEnabled),{isFeatureEnabled:ne}=P(k.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=Le||ne||!!Be||!!$||!!u,{isFeatureEnabled:Se}=P(k.isSettingsFeatureEnabled),{isFeatureEnabled:Ne}=P(k.isAiCfoFileUploadEnabled),q=w(a=>As(a));if(o!=null){const a=b.getSignedInUserTenant(o);T!=null&&a!=null&&Ue(T,r,D)}const Z={tenantId:R,userId:T?.userId,sessionId:T?.zeniSessionId},ae=Es(),A=Ks(),Ge=r.company==null||A?.loggedInUserRoleMap!=null&&Ee(A.loggedInUserRole),Me=ps(A?.loggedInUserRoleMap),te=f.useRef(!0),ie=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Ze=w(a=>Z.tenantId!=null?Is(a,Z.tenantId):void 0);f.useEffect(()=>{B(L.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=gs(Number(U[0])),s=Number(U[1]),m=xs(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),G=js();m.isAfter(G,"month")===!1?O(Ts(R,{month:d,year:s})):M("./month_end_close_checks/review")}}}},[Q,R]),f.useEffect(()=>{N||(Ce(!0),B(L.TENANT_FETCHING)),te.current?te.current=!1:!hs(ae,Z)&&b.isSignedIn()&&(B(L.TENANT_FETCHING),function(a,U,d,s){if(Ie(U?.userId,U?.zeniSessionId,a.tenantId),d(Vs(!0)),d(ge(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()}(Z,T,O,Ze))},[Z,ae,T,O,b]),f.useEffect(()=>{b.isSignedIn()&&(B(L.TENANT_FETCHING),function(a,U,d,s,m,G,S){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const Y=s!=null&&m?.zeniSessionId!=null,rs=d==null||d.tenantId!==s,os=d!=null&&d.excludedResources==null,ls=d!=null&&d.externalConnections==null;if(Y&&rs){S(ge(s));const W=b.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&b.saveActiveTenantDomainForUser(W?.tenantEmailDomain),Ie(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),S(xe(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),S(je(m.userId,s)))}else Y&&os&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),S(xe(m.userId,s))),Y&&ls&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),S(je(m.userId,s)));if(Y){ee.identify(m.userId,{tenant_id:s});const W=s==null||s!=null&&(U==="Completed"||U==="Error");a==="Completed"||U!=="Not-Started"&&U!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),G(L.TENANT_FETCHING),S(Ss(m.userId,s,m.zeniSessionId))),W&&(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"&&q.tenantsBaseInOrder.length>0&&(K(L.TENANT_FETCHING),b.saveSignedInUserTenants(Us(q.tenantsBaseInOrder)),T!=null&&Ue(T,r,D,void 0,q.tenantsBaseInOrder))},[q,h,r,T]),f.useEffect(()=>{E==="In-Progress"&&B(L.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&R!=null?(De(),_.markActiveTenantFetchCompleted(R)):E==="Error"&&R!=null&&(_.markActiveTenantFetchFailed(R),K(L.TENANT_FETCHING),K(L.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],G=Qs[m];G!=null?G().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(k.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,qe=Hs(A?.loggedInUserRoleMap),Ye=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,We=r.company!=null&&ys(r.company),Ke=ke&&We===!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),g=ks(A?.loggedInUserRoleMap),x=Ls(A?.loggedInUserRoleMap),j=Bs(A?.loggedInUserRoleMap),_e=oe&&x,Ae=de&&j,ns=ue&&p,as=Ke&&I,ts=le&&g,is=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Me===!0||qe===!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)&&Ye===!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:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(sn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(tn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,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(xn,{})}),e.jsx(t,{path:"address/*",element:Xe||me||Qe||Je?e.jsx(nn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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:Ge?e.jsx(on,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:_e?e.jsx(He,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:_e?e.jsx(He,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:Ae?e.jsx(Re,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:Ae?e.jsx(Re,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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(gn,{}):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:M,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"}):M?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),H=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:v,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:O,isUserHasTreasuryAccess:M,isTenantBankingOnly:o,tenantEmailDomain:D})=>o===!0||i?e.jsx(Rn,{tenantEmailDomain:D}):M?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,Zn as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-CXkTMDXA.js","assets/pdf-emb33J2I.js","assets/zeni-epic-state-DyRbb6Q5.js","assets/sentry-CytkDQe2.js","assets/core-twTS7Cne.js","assets/index-k1doZNFg.js","assets/mui-Bi07oTwe.js","assets/recharts-CS0s98U8.js","assets/lottie-Bdr-9mLw.js","assets/liveblocks-CM0QMS_I.js","assets/dnd-BWijMgNi.js","assets/analytics-BuacLKrs.js","assets/plaid-Dw_qIY4R.js","assets/utils-CSjogEj5.js","assets/index-D-vub4_t.css","assets/withTransactionSidePanel-kYDF1Rc9.js","assets/TransactionDetailScreen-DuZvqtgf.js","assets/decodeURIComponentSafe-B0iGosVv.js","assets/routePaths-DiyiibEL.js","assets/NotFoundScreen-BBemVqe2.js","assets/analyticsHelper-CHcSxJdc.js","assets/CompanyPassportScreen-UiOT42U6.js","assets/MobileAppDrawer-B2Fzw8F_.js","assets/FeaturePreviewScreen-DqxtfQjE.js","assets/ReferralListScreen-CSsSh4ih.js","assets/BillPayRoutes-CLxgVQoZ.js","assets/AddressScreen-CE8x2lDp.js","assets/DomesticWireDetailScreen-DacvZAfq.js","assets/useInitialThreadRequest-1tDzaux1.js","assets/zeni-icon-only-C6-rv1y7.js","assets/DrawerScreen-B1Tmjk6I.js","assets/SetupPagesScreen-Bjv1_530.js","assets/BusinessVerificationPageScreen-CsiX3KGh.js","assets/BillPayApprovalRoutes-D-Lr-knt.js","assets/ReimbursementApprovalRuleDetailScreen-DZcx_Ou3.js","assets/getLocaleForTenant-CY5R0VDK.js","assets/ReimbursementRoutes-Djc8hIjc.js","assets/ReimbursementApprovalRoutes-CVWnCLDW.js","assets/TransactionListRoutes-PB1J2m8T.js","assets/ZeniAccountStatementScreen-Df6Ut17b.js","assets/SettingsRoutes-_PBfx_CH.js","assets/accountMappingHelper-DaPjToYl.js","assets/ReportsRoutes-tnBiH82P.js","assets/ChargeCardRoutes-B2VyUVyE.js","assets/PeopleRoutes-Dq51UjI9.js","assets/ExpenseAutomationRoutes-CVAejH_S.js","assets/TreasuryRoutes-BFHIVJGR.js","assets/VendorsRoutes-D3omEpvR.js","assets/pathToGoBack-Md2zV7uG.js","assets/ZeniAccountRoutes-JNlaxrz8.js","assets/AddressRoutes-BeSQWOrw.js","assets/PandLWithForecastRoutes-D-HhWNvF.js","assets/CustomerOnboardingRoutes-BbuQETSm.js","assets/QBOConnectionScreen-JiiEAGy2.js","assets/empty-BuEMRnA-.js","assets/pdf-lib-CILJewzg.js","assets/index-DoiSNwZH.js","assets/url-wSyZyUAL.js","assets/index-BYeMrBg9.js","assets/TransactionDetailRoutes-D0IUp-c0.js","assets/EntityDetailRoutes-DH6Oay7j.js","assets/NotificationRoutes-U-LaNI42.js","assets/PerformanceRoutes-cKruQlcS.js","assets/RewardsRoutes-DS51i8ZJ.js","assets/TaskRoutes-C34_uNkE.js","assets/AiCfoScreen-BszigZh8.js","assets/TaskListScreen-BTd0K2Ah.js"])))=>i.map(i=>d[i]);
2
+ import{_ as n,bm as cs,cs as ds,cz as ms,cx as us,cy as _s,dl as As,cu as Es,bP as Ee,Fb as ps,cR as Is,bF as gs,bG as xs,bs as js,cX as Ts,v as hs,Go as Us,bt as bs,Gp as Hs,Fk as Rs,cU as ys,Fa as Ds,Ej as Cs,Ek as fs,Gq as vs,Gr as Os,bM as Ps,bO as Fs,bN as ks,bK as Ls,bL as Bs,jA as pe,ct as Ie,Gs as Vs,c_ as ge,dq as xe,dr as je,c$ as Ss}from"./zeni-epic-state-DyRbb6Q5.js";import{j as e}from"./pdf-emb33J2I.js";import{a as f}from"./sentry-CytkDQe2.js";import{i as Ns,j as Gs,l as Ms,h as Zs,u as w,g as Te,N as c,R as ws,m as t}from"./core-twTS7Cne.js";import{y as zs,jd as $s,je as b,aE as qs,jj as Ys,aH as Ws,aG as k,t as Ks,jf as L,O as he,jg as _,jk as Xs,jl as ee,jm as l}from"./index-k1doZNFg.js";import"./mui-Bi07oTwe.js";import{f as Ue}from"./analyticsHelper-CHcSxJdc.js";import{t as Js}from"./getLocaleForTenant-CY5R0VDK.js";import"./lottie-Bdr-9mLw.js";import"./liveblocks-CM0QMS_I.js";import"./recharts-CS0s98U8.js";import"./dnd-BWijMgNi.js";import"./analytics-BuacLKrs.js";import"./plaid-Dw_qIY4R.js";import"./utils-CSjogEj5.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]="b958a821-751d-4625-985e-7857d3cb9a10",i._sentryDebugIdIdentifier="sentry-dbid-b958a821-751d-4625-985e-7857d3cb9a10")}catch{}})();const Qs={dashboard:()=>n(()=>import("./DashboardRoutes-CXkTMDXA.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-CLxgVQoZ.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-Djc8hIjc.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-PB1J2m8T.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-_PBfx_CH.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-tnBiH82P.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,23,18,22])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-B2VyUVyE.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-Dq51UjI9.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,22])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-CVAejH_S.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-BFHIVJGR.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-D3omEpvR.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-JNlaxrz8.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-tnBiH82P.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,23,18,22]))),nn=l(()=>n(()=>import("./AddressRoutes-BeSQWOrw.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-Dq51UjI9.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-D-HhWNvF.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-BbuQETSm.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-D3omEpvR.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-D0IUp-c0.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-DH6Oay7j.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-CXkTMDXA.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-CLxgVQoZ.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-_PBfx_CH.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-Djc8hIjc.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-JNlaxrz8.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-BFHIVJGR.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-PB1J2m8T.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-B2VyUVyE.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-U-LaNI42.js"),__vite__mapDeps([61,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14]))),pn=l(()=>n(()=>import("./PerformanceRoutes-cKruQlcS.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-CVAejH_S.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]))),gn=l(()=>n(()=>import("./RewardsRoutes-DS51i8ZJ.js"),__vite__mapDeps([63,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,24,22]))),xn=l(()=>n(()=>import("./TaskRoutes-C34_uNkE.js"),__vite__mapDeps([64,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14,28,22]))),jn=l(()=>n(()=>import("./AiCfoScreen-BszigZh8.js"),__vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,48]))),y=l(()=>n(()=>import("./NotFoundScreen-BBemVqe2.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),Tn=l(()=>n(()=>import("./TaskListScreen-BTd0K2Ah.js"),__vite__mapDeps([66,1,2,3,4,5,6,7,8,9,10,11,12,13,14,22])));function Zn({setTenantEmailDomain:i,isAiCfoOpen:v=!1,setIsAiCfoOpen:V}){const O=Ns(),M=Gs(),{tenantEmailDomain:o}=Ms(),D=zs().mode,{setLoading:B,clearAllLoading:De,clearLoading:K}=$s(),R=b.getSignedInUserTenant(o)?.tenantId,T=b.getSignedInUser(),X=cs(T),z=Zs(),[N,Ce]=f.useState(!1),r=w(a=>ds(a)),{useFeatureGate:P}=qs(),J=Ys(),fe=Ws(),{isFeatureEnabled:ve}=P(k.isExpenseAutomationEnabled),{isFeatureEnabled:Oe}=P(k.isExpenseAutomationEnabledV2),Pe=Oe||ve&&X,{isFeatureEnabled:Fe}=P(k.isDepositAccountsFeatureEnabled),{isFeatureEnabled:ke}=P(k.isTreasuryEnabled),{isFeatureEnabled:Le}=P(k.isChargeCardFeatureEnabled),{isFeatureEnabled:ne}=P(k.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=Le||ne||!!Be||!!$||!!u,{isFeatureEnabled:Se}=P(k.isSettingsFeatureEnabled),{isFeatureEnabled:Ne}=P(k.isAiCfoFileUploadEnabled),q=w(a=>As(a));if(o!=null){const a=b.getSignedInUserTenant(o);T!=null&&a!=null&&Ue(T,r,D)}const Z={tenantId:R,userId:T?.userId,sessionId:T?.zeniSessionId},ae=Es(),A=Ks(),Ge=r.company==null||A?.loggedInUserRoleMap!=null&&Ee(A.loggedInUserRole),Me=ps(A?.loggedInUserRoleMap),te=f.useRef(!0),ie=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Ze=w(a=>Z.tenantId!=null?Is(a,Z.tenantId):void 0);f.useEffect(()=>{B(L.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=gs(Number(U[0])),s=Number(U[1]),m=xs(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),G=js();m.isAfter(G,"month")===!1?O(Ts(R,{month:d,year:s})):M("./month_end_close_checks/review")}}}},[Q,R]),f.useEffect(()=>{N||(Ce(!0),B(L.TENANT_FETCHING)),te.current?te.current=!1:!hs(ae,Z)&&b.isSignedIn()&&(B(L.TENANT_FETCHING),function(a,U,d,s){if(Ie(U?.userId,U?.zeniSessionId,a.tenantId),d(Vs(!0)),d(ge(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()}(Z,T,O,Ze))},[Z,ae,T,O,b]),f.useEffect(()=>{b.isSignedIn()&&(B(L.TENANT_FETCHING),function(a,U,d,s,m,G,S){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const Y=s!=null&&m?.zeniSessionId!=null,rs=d==null||d.tenantId!==s,os=d!=null&&d.excludedResources==null,ls=d!=null&&d.externalConnections==null;if(Y&&rs){S(ge(s));const W=b.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&b.saveActiveTenantDomainForUser(W?.tenantEmailDomain),Ie(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),S(xe(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),S(je(m.userId,s)))}else Y&&os&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),S(xe(m.userId,s))),Y&&ls&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),S(je(m.userId,s)));if(Y){ee.identify(m.userId,{tenant_id:s});const W=s==null||s!=null&&(U==="Completed"||U==="Error");a==="Completed"||U!=="Not-Started"&&U!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),G(L.TENANT_FETCHING),S(Ss(m.userId,s,m.zeniSessionId))),W&&(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"&&q.tenantsBaseInOrder.length>0&&(K(L.TENANT_FETCHING),b.saveSignedInUserTenants(Us(q.tenantsBaseInOrder)),T!=null&&Ue(T,r,D,void 0,q.tenantsBaseInOrder))},[q,h,r,T]),f.useEffect(()=>{E==="In-Progress"&&B(L.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&R!=null?(De(),_.markActiveTenantFetchCompleted(R)):E==="Error"&&R!=null&&(_.markActiveTenantFetchFailed(R),K(L.TENANT_FETCHING),K(L.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],G=Qs[m];G!=null?G().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(k.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,qe=Hs(A?.loggedInUserRoleMap),Ye=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,We=r.company!=null&&ys(r.company),Ke=ke&&We===!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),g=ks(A?.loggedInUserRoleMap),x=Ls(A?.loggedInUserRoleMap),j=Bs(A?.loggedInUserRoleMap),_e=oe&&x,Ae=de&&j,ns=ue&&p,as=Ke&&I,ts=le&&g,is=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Me===!0||qe===!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)&&Ye===!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:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(sn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(tn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,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:g,isUserHasBillPayAccess:x,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(xn,{})}),e.jsx(t,{path:"address/*",element:Xe||me||Qe||Je?e.jsx(nn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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:Ge?e.jsx(on,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:_e?e.jsx(He,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:_e?e.jsx(He,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:Ae?e.jsx(Re,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:j,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:Ae?e.jsx(Re,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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(gn,{}):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:M,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"}):M?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),H=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:v,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:O,isUserHasTreasuryAccess:M,isTenantBankingOnly:o,tenantEmailDomain:D})=>o===!0||i?e.jsx(Rn,{tenantEmailDomain:D}):M?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,Zn as default};