@zeniai/web-app-ui 4.14.28-dev → 4.14.28-prod

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-URcYg-_E-CMrUXh7n.js → ACHDetailsPage-URcYg-_E-CnKQi3u4.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-VILPvNCr-DoBW0TQe.js → AIPerformancePage-VILPvNCr-BPT7YRxu.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-BTogpO7M-BeBr7bH3.js → AccountInfoPage-BTogpO7M-BUQAmyzG.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-g_X840C3-Byz3DAPs.js → AccountInfoPageContent-g_X840C3-Bf7uv7Ip.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DDNvWMEQ-6SWWVHDx.js → AccountLockedInfoModal-DDNvWMEQ-D21ggUhc.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CydLoK6D-CZ9nLIe4.js → AccountReconDetailsDrawerPage-CydLoK6D-DgTwHDXu.js} +1 -1
  7. package/dist/assets/{AccountRow-Zjkju8uM-h-BJkTkR.js → AccountRow-Zjkju8uM-6N6Zy9oH.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-D8mOW1Wp-DZkmz2EZ.js → AccountsPromoCardStack-D8mOW1Wp-Bllhxb1U.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-BvGnuIf6-DB5uU020.js → AddAddressForCardDrawer-BvGnuIf6-DHHz24yV.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BMCgd2A5-2JYacy2K.js → AddToWalletPage-BMCgd2A5-DYYQJbMt.js} +1 -1
  11. package/dist/assets/{AddressRoutes-BuxeYADW.js → AddressRoutes-BRhTpo4o.js} +1 -1
  12. package/dist/assets/{AddressScreen-C8N1fPfJ.js → AddressScreen-DDbvTrW2.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-BL_aBNzL-Bw5_kBEe.js → AgingReportsPage-BL_aBNzL-Rfib8YTF.js} +1 -1
  14. package/dist/assets/{AiCfoScreen-DKeSXeDT.js → AiCfoScreen-BMeMMkhN.js} +1 -1
  15. package/dist/assets/{AllUserItems-b0wgd0Wz-Cmdhksre.js → AllUserItems-b0wgd0Wz-HghicmNo.js} +1 -1
  16. package/dist/assets/{ApAgingDetailPage-CD2EkZkg-EpN6BsXj.js → ApAgingDetailPage-CD2EkZkg-C3t2oIzS.js} +1 -1
  17. package/dist/assets/{AppBasePage-BM1NMPdI-BkcQFz9Y.js → AppBasePage-BM1NMPdI-DTjsrnRl.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-XR9dBd-C-BYsZG5_k.js → AppDrawerContent-XR9dBd-C-BEm_wBDf.js} +1 -1
  19. package/dist/assets/{ApprovalRulesSettingsPage-6unABLlP-C91QTWWo.js → ApprovalRulesSettingsPage-6unABLlP-Dy0-KpVU.js} +1 -1
  20. package/dist/assets/{ArAgingChart-DePiNxcV-B7MRrlOq.js → ArAgingChart-DePiNxcV-D_qXJGXM.js} +1 -1
  21. package/dist/assets/{ArAgingDetailPage-DiJ6PePf-YRaFOXlC.js → ArAgingDetailPage-DiJ6PePf-DNZvBCjF.js} +1 -1
  22. package/dist/assets/{AttachmentView-ENg9Osic-C_h00Xvo.js → AttachmentView-ENg9Osic-P9NYY_0P.js} +1 -1
  23. package/dist/assets/{BankAccountSection-oL-aN0I_-51rG79cf.js → BankAccountSection-oL-aN0I_-Dgtd5LW7.js} +1 -1
  24. package/dist/assets/{BankAccountWarningSection-CtRFcHTv-CaeCkm0V.js → BankAccountWarningSection-CtRFcHTv-D_XRICo4.js} +1 -1
  25. package/dist/assets/{BankConnectionsSettingsPage-B848OGHq-S0dsKmrE.js → BankConnectionsSettingsPage-B848OGHq-Cd04Ls8R.js} +1 -1
  26. package/dist/assets/{BillDetailPage-CPxVWXx6-LfVxiX7-.js → BillDetailPage-CPxVWXx6-1Oioq8DD.js} +1 -1
  27. package/dist/assets/{BillPayApprovalRoutes-BwVvI4WJ.js → BillPayApprovalRoutes-D2WhMQ-d.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRuleDetailPage-DtAj6RxA-B2poyBuX.js → BillPayApprovalRuleDetailPage-DtAj6RxA-cHLoC7d8.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRulesPage-DLHvMgeY-8GthXHpr.js → BillPayApprovalRulesPage-DLHvMgeY-o_RLMJzv.js} +1 -1
  30. package/dist/assets/{BillPayPromoPage-DQJAZi1a-DOwuaVpw.js → BillPayPromoPage-DQJAZi1a-nMEmkS30.js} +1 -1
  31. package/dist/assets/{BillPayRoutes-Bzx279Kq.js → BillPayRoutes-BUUZZuBG.js} +1 -1
  32. package/dist/assets/{BillPaySetUpPage-BVOLWF1M-CpEBt_P1.js → BillPaySetUpPage-BVOLWF1M-BteYr6zk.js} +1 -1
  33. package/dist/assets/{BillingSettingsPage-Cfe4Vmza-DSIJr3FK.js → BillingSettingsPage-Cfe4Vmza-BztoAmNg.js} +1 -1
  34. package/dist/assets/{BillsBulkReviewDrawerPage-7y9q0HF_-gFD4nZqL.js → BillsBulkReviewDrawerPage-7y9q0HF_-BQu7vS0s.js} +1 -1
  35. package/dist/assets/{BoxItem-CTEOx6Nh-BbDYdqVh.js → BoxItem-CTEOx6Nh-C4z3ogUT.js} +1 -1
  36. package/dist/assets/{BusinessVerificationPage-D05hRyo1-BMUS-iMK.js → BusinessVerificationPage-D05hRyo1-CBEBIqW_.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPageScreen-DfGLG3SR.js → BusinessVerificationPageScreen-Cmz7lCYf.js} +1 -1
  38. package/dist/assets/{BusyIndication-Nz8htndZ-ChVc54FQ.js → BusyIndication-Nz8htndZ-DYZEgBsh.js} +1 -1
  39. package/dist/assets/{CardNumberSubText-DijJqFXC-B69YEX78.js → CardNumberSubText-DijJqFXC-9bJRWO6u.js} +1 -1
  40. package/dist/assets/{CashbackDetailPage-BxIWU0z2-DcCubJwz.js → CashbackDetailPage-BxIWU0z2-5aSz_QAT.js} +1 -1
  41. package/dist/assets/{ChargeCardDetailPage-ClyQPqJf-BAQGqfmW.js → ChargeCardDetailPage-ClyQPqJf-1IHjkCeF.js} +1 -1
  42. package/dist/assets/{ChargeCardListPage-CYhY6c52-DRzxrfOL.js → ChargeCardListPage-CYhY6c52-CMF1P6xh.js} +1 -1
  43. package/dist/assets/{ChargeCardListTable-Dblodw9X-B-571jVW.js → ChargeCardListTable-Dblodw9X-CDugn7Oq.js} +1 -1
  44. package/dist/assets/{ChargeCardPaymentHistoryPage-wt6arCEL-5ryWm6WZ.js → ChargeCardPaymentHistoryPage-wt6arCEL-CW6KbxWs.js} +1 -1
  45. package/dist/assets/{ChargeCardPromoPage-AihUlwys-A1x9S-W0.js → ChargeCardPromoPage-AihUlwys-Dk9L2iB8.js} +1 -1
  46. package/dist/assets/{ChargeCardRoutes-4t9GJNvz.js → ChargeCardRoutes-Bi6qtFGx.js} +1 -1
  47. package/dist/assets/{ChargeCardSetupPage-C59WR7nm-CVteL9ef.js → ChargeCardSetupPage-C59WR7nm-BzmfqBsT.js} +1 -1
  48. package/dist/assets/{ChargeCardStatementsPage-DF5rt4B5-CiiFftIv.js → ChargeCardStatementsPage-DF5rt4B5-DgWKrTjO.js} +1 -1
  49. package/dist/assets/{CheckDepositDrawerPage-B9-ktuL_-Cnbi1t8C.js → CheckDepositDrawerPage-B9-ktuL_-qZS941d9.js} +1 -1
  50. package/dist/assets/{CollapsableReportTable-BAz0DbFh-Bx4HSBTd.js → CollapsableReportTable-BAz0DbFh-CAhAQGEZ.js} +1 -1
  51. package/dist/assets/{CompanyOfficerDetailsSection-BNSHkrC4-DZDeEGL9.js → CompanyOfficerDetailsSection-BNSHkrC4-ClzL1rA4.js} +1 -1
  52. package/dist/assets/{CompanyPassportCard-DTfKmcGv-kWFAQF4U.js → CompanyPassportCard-DTfKmcGv-De1PPEAL.js} +1 -1
  53. package/dist/assets/{CompanyPassportPage-DqhT6YL_-DjGLWJH_.js → CompanyPassportPage-DqhT6YL_-C387_Sbn.js} +1 -1
  54. package/dist/assets/{CompanyPassportScreen-COEYsT8F.js → CompanyPassportScreen-Bw3qq-Ht.js} +1 -1
  55. package/dist/assets/{CompleteProfile-DdA-FkwG-DNxHJftH.js → CompleteProfile-DdA-FkwG-CwuL_HZU.js} +1 -1
  56. package/dist/assets/{ConfettiBurst-Dc0iIaw3-Cdx9N-8d.js → ConfettiBurst-Dc0iIaw3-B7boQlLF.js} +1 -1
  57. package/dist/assets/{ConnectionAuthScreen-VX2ylo8v.js → ConnectionAuthScreen-Du50wdfI.js} +1 -1
  58. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-B0xEPT_b.js → ConstrainedInnerElement-BeIpAPjB-DRfa7meL.js} +1 -1
  59. package/dist/assets/{CreateOrEditVendorPage-CODInbfe-CWblGuXA.js → CreateOrEditVendorPage-CODInbfe-yXgVF4QO.js} +1 -1
  60. package/dist/assets/{CreditCardPaymentDrawerPage-DZNUIDa0-DYeUjTKl.js → CreditCardPaymentDrawerPage-DZNUIDa0-JL4MKrF6.js} +1 -1
  61. package/dist/assets/{CurrencySelectField-D_D8AUqS-W5q-11LT.js → CurrencySelectField-D_D8AUqS-BZdJIXWt.js} +1 -1
  62. package/dist/assets/{CustomerOnboardingActivationPage-CBlyvq0r-BIiex6sW.js → CustomerOnboardingActivationPage-CBlyvq0r-BGxcXIVy.js} +1 -1
  63. package/dist/assets/CustomerOnboardingAuthScreen-Bmfm6EF8.js +1 -0
  64. package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-C9np5L3h.js +1 -0
  65. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-Cm7w9wnG.js → CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-CnjT99uZ.js} +1 -1
  66. package/dist/assets/{CustomerOnboardingNoStepsPage-CLFh9K94-CVAWL8GH.js → CustomerOnboardingNoStepsPage-CLFh9K94-eo3A1qkf.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingPage-BJGDpI-d-BI8WTIh2.js → CustomerOnboardingPage-BJGDpI-d-BQ9XwM-v.js} +1 -1
  68. package/dist/assets/{CustomerOnboardingProductSuitePage-DmgQGvpp-BgPaXsEW.js → CustomerOnboardingProductSuitePage-DmgQGvpp-Bu9zcjpR.js} +1 -1
  69. package/dist/assets/{CustomerOnboardingRoutes-CDOn_9SO.js → CustomerOnboardingRoutes-C8nMZVtS.js} +1 -1
  70. package/dist/assets/{Dashboard-Cvmg-DzK-CDouUJlf.js → Dashboard-Cvmg-DzK-puV8ebMR.js} +1 -1
  71. package/dist/assets/{DashboardReportPage-C7bT-gmW-B7qKYPTM.js → DashboardReportPage-C7bT-gmW-B8nCLsAW.js} +1 -1
  72. package/dist/assets/{DashboardRoutes-Ca715xZt.js → DashboardRoutes-Cs6trW6R.js} +1 -1
  73. package/dist/assets/{DashboardSidebarBackgroundAnimation-CcTStx9W-CLXLQ3Wl.js → DashboardSidebarBackgroundAnimation-CcTStx9W-Bnz6LhkJ.js} +1 -1
  74. package/dist/assets/{DefaultTenantHome-zrpUM-2h.js → DefaultTenantHome-RFtlxhsO.js} +1 -1
  75. package/dist/assets/{DepositAccTransactionItem-XZgomj7v-pud7es11.js → DepositAccTransactionItem-XZgomj7v-Bhnnv8Ar.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionListPage-B11lcuip-BA6bJfDH.js → DepositAccTransactionListPage-B11lcuip-BIFNXmB4.js} +1 -1
  77. package/dist/assets/{DomesticWireDetailScreen-BGqZWgZd.js → DomesticWireDetailScreen-CDquLvw_.js} +1 -1
  78. package/dist/assets/{DomesticWireDetailsPage-Cw4aq8Ar-Bz2WPHpK.js → DomesticWireDetailsPage-Cw4aq8Ar-D7iaVqqU.js} +1 -1
  79. package/dist/assets/{DownloadOverlay-DE63RFQe-VsFfbW3d.js → DownloadOverlay-DE63RFQe-rm17dQJa.js} +1 -1
  80. package/dist/assets/{DrawerPage-DGuh6P-6-CJKJMwA-.js → DrawerPage-DGuh6P-6-BcyuUjYZ.js} +1 -1
  81. package/dist/assets/{DrawerScreen-V32qwnkz.js → DrawerScreen-C-gJlwdg.js} +1 -1
  82. package/dist/assets/{EditPeoplePage-Dmz2l8uY-CK4iVJZr.js → EditPeoplePage-Dmz2l8uY-DdG9SBff.js} +1 -1
  83. package/dist/assets/{EditReimbursementDetailPage-BrQ60mqq-BxmG6xVG.js → EditReimbursementDetailPage-BrQ60mqq-BnVEgdU7.js} +1 -1
  84. package/dist/assets/{EntityDetailPage-BbeHCNGS-C5UPIJtj.js → EntityDetailPage-BbeHCNGS-CuhXo5UK.js} +1 -1
  85. package/dist/assets/{EntityDetailRoutes-BxYqKDQd.js → EntityDetailRoutes-Bjmke2zn.js} +1 -1
  86. package/dist/assets/{EntitySummarySection-BgjWn9vX-ChJDfPvK.js → EntitySummarySection-BgjWn9vX-B3b1MF7S.js} +1 -1
  87. package/dist/assets/{ExpenseAutomationOverviewPage-V2cvYWxH-C16OEZnu.js → ExpenseAutomationOverviewPage-V2cvYWxH-CNs6UVeS.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationPage-BDZ6aX0q-DJ_VB_IO.js → ExpenseAutomationPage-BDZ6aX0q-DC7_gDiI.js} +1 -1
  89. package/dist/assets/{ExpenseAutomationRoutes-Dbfi_osP.js → ExpenseAutomationRoutes-N5IH8NJS.js} +1 -1
  90. package/dist/assets/{ExpressPayPage-5VdASApP-Po6fvmnX.js → ExpressPayPage-5VdASApP-D9MlPJBc.js} +1 -1
  91. package/dist/assets/{FeaturePreviewPage-CA_fxOHn-CMqOKpmQ.js → FeaturePreviewPage-CA_fxOHn-Bf1rij6M.js} +1 -1
  92. package/dist/assets/{FeaturePreviewScreen-C5OPsEGq.js → FeaturePreviewScreen-CLKJ2QAB.js} +1 -1
  93. package/dist/assets/{FollowStepsSection-CTSjTKjT-D1lTh6HA.js → FollowStepsSection-CTSjTKjT-BGVIDRAe.js} +1 -1
  94. package/dist/assets/{GlobalReviewListPage-DmrnXFgW-CX1Z-LFj.js → GlobalReviewListPage-DmrnXFgW-B57SMtSt.js} +1 -1
  95. package/dist/assets/{InformationCardStack-D_Z7Ebe0-CcLIhUuZ.js → InformationCardStack-D_Z7Ebe0-CrFTMoBP.js} +1 -1
  96. package/dist/assets/{InsightsCardStack-Dbpzjgf4-fdUWj0-e.js → InsightsCardStack-Dbpzjgf4-CmY1A9uH.js} +1 -1
  97. package/dist/assets/{InsightsSection-DgViiL7e-CyZzflwi.js → InsightsSection-DgViiL7e-D07WWVHm.js} +1 -1
  98. package/dist/assets/{IntegrationsSettingsPage-4OV7HFwe-DB-wBCWA.js → IntegrationsSettingsPage-4OV7HFwe-DZdJwIZ8.js} +1 -1
  99. package/dist/assets/{InternationalWireSwiftDetailsPage-B1nvNamF-Csz75ldD.js → InternationalWireSwiftDetailsPage-B1nvNamF-BTijFGVO.js} +1 -1
  100. package/dist/assets/{InternationalWireVerificationPage-HZgqUkj4-BeRgJyDk.js → InternationalWireVerificationPage-HZgqUkj4-BQdwtp6K.js} +1 -1
  101. package/dist/assets/{InviteFormPage-C5mS-6c8-DHEfB4pP.js → InviteFormPage-C5mS-6c8-CQ3pBA8X.js} +1 -1
  102. package/dist/assets/{InvitePageListView-Yj83_lDA-DG8kjHEN.js → InvitePageListView-Yj83_lDA-BObL1UwR.js} +1 -1
  103. package/dist/assets/{InvitePeoplePage-C7DlxHsy-CbV9Kfvk.js → InvitePeoplePage-C7DlxHsy-Ch_cCeBl.js} +1 -1
  104. package/dist/assets/{InvoiceUploadSection-DdIQCBkC-hgUkpCX_.js → InvoiceUploadSection-DdIQCBkC-B4QsOjKN.js} +1 -1
  105. package/dist/assets/{IssueChargeCardPage-BIOTVOMR-y141Zbnw.js → IssueChargeCardPage-BIOTVOMR-BjJzOdS5.js} +1 -1
  106. package/dist/assets/{LabeledAddressValue-Bb1x9jR--B6kyu-d_.js → LabeledAddressValue-Bb1x9jR--K66XVI1l.js} +1 -1
  107. package/dist/assets/{LabeledAddressValueField-D3_DsNPu-DBYOiYu9.js → LabeledAddressValueField-D3_DsNPu-DVmbiKLN.js} +1 -1
  108. package/dist/assets/{LabeledControlledCheckBoxField-DdHmj0q2-DFcQf8uf.js → LabeledControlledCheckBoxField-DdHmj0q2-BmQSyhgm.js} +1 -1
  109. package/dist/assets/{LabeledCountryMultiSelectField-LeubJT8b-DTiRo8mi.js → LabeledCountryMultiSelectField-LeubJT8b-DKahjV4C.js} +1 -1
  110. package/dist/assets/{LabeledCreatableSingleSelectField-CzrPLo-T-WU7xdxt6.js → LabeledCreatableSingleSelectField-CzrPLo-T-BnUMrxSH.js} +1 -1
  111. package/dist/assets/{LabeledDocumentField-CFtFroDl-BZ61zQ53.js → LabeledDocumentField-CFtFroDl-BAzH2vry.js} +1 -1
  112. package/dist/assets/{LabeledDropDownFormattedTextField-CFsuVVp3-BWloCe5f.js → LabeledDropDownFormattedTextField-CFsuVVp3-Cllg2-kq.js} +1 -1
  113. package/dist/assets/{LabeledEmailInputField-BOEHGgHy-DmP8tNRS.js → LabeledEmailInputField-BOEHGgHy-B8PcLj3U.js} +1 -1
  114. package/dist/assets/{LabeledNameField-DWKoivcI-CTKa3xQk.js → LabeledNameField-DWKoivcI-Bg7Loxzf.js} +1 -1
  115. package/dist/assets/{LabeledSingleSelectField-BkGsnV9P-L8vud565.js → LabeledSingleSelectField-BkGsnV9P-BmcuJIvo.js} +1 -1
  116. package/dist/assets/{LabeledText-CZMUFsPf-BSb4-Hu0.js → LabeledText-CZMUFsPf-BzxAzPVQ.js} +1 -1
  117. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-D96FBec7.js → LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-CA9RNgOe.js} +1 -1
  118. package/dist/assets/{LabeledZeniRolesDropDownField-C3LoYUh_-CUGSemOL.js → LabeledZeniRolesDropDownField-C3LoYUh_-B2cjpWvF.js} +1 -1
  119. package/dist/assets/{LinkJETransactionPage-BbpybbwD-BZQW-eEy.js → LinkJETransactionPage-BbpybbwD-CgRdsDGC.js} +1 -1
  120. package/dist/assets/{LockCardPage-C0XjGES8-Dv5p7F-M.js → LockCardPage-C0XjGES8-DzPwjGzp.js} +1 -1
  121. package/dist/assets/{LowBalancePopup-CkO97HGX-C-OMTelo.js → LowBalancePopup-CkO97HGX-nozhu0WG.js} +1 -1
  122. package/dist/assets/{MagicLinkACHDetailsPage-CcaWGIEm-CBJpUCPj.js → MagicLinkACHDetailsPage-CcaWGIEm-3uajWvNb.js} +1 -1
  123. package/dist/assets/{MagicLinkDomesticWireDetailsPage-6V37rCS5-DlEVkMTv.js → MagicLinkDomesticWireDetailsPage-6V37rCS5-Dxqj-iaP.js} +1 -1
  124. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BKWBDCxr-1pJwpVUJ.js → MagicLinkInternationalWireDetailsPage-BKWBDCxr-BHR9xOJ3.js} +1 -1
  125. package/dist/assets/{MagicLinkRoutes-0i3kRHtF.js → MagicLinkRoutes-D99wiuRu.js} +1 -1
  126. package/dist/assets/{MagicLinkSignInScreen-8oYCtfCr.js → MagicLinkSignInScreen-D9jNjUlX.js} +1 -1
  127. package/dist/assets/{MagicLinkSuccessPage-L5UJIvTe-Ds_uEzRm.js → MagicLinkSuccessPage-L5UJIvTe-BW7N1yCO.js} +1 -1
  128. package/dist/assets/{MagicLinkTitleSection-CEZGF8ER-CtJhgwJN.js → MagicLinkTitleSection-CEZGF8ER-DCWrw88D.js} +1 -1
  129. package/dist/assets/{MailingDetailsSection-CRsQVOYi-DVyOc3HW.js → MailingDetailsSection-CRsQVOYi-xwOtQnim.js} +1 -1
  130. package/dist/assets/{MobileAppDrawer-vjIJyx5N.js → MobileAppDrawer-D_OmB8VL.js} +1 -1
  131. package/dist/assets/{MoreMenuButton-BWNCapgP-CobtazoG.js → MoreMenuButton-BWNCapgP-BFDpJyIR.js} +1 -1
  132. package/dist/assets/{MyBankConnectionsSettingsPage-C6p5J_f5-aGTzDXcW.js → MyBankConnectionsSettingsPage-C6p5J_f5-2jAZ0hVQ.js} +1 -1
  133. package/dist/assets/{MyPendingActivationChargeCardListPage-CluWS3nS-3Mvvi7l1.js → MyPendingActivationChargeCardListPage-CluWS3nS-DHrdaNvb.js} +1 -1
  134. package/dist/assets/{MyProfileSettingsPage-Ctkx_sAQ-BJzrBUg_.js → MyProfileSettingsPage-Ctkx_sAQ-BiLtfbOe.js} +1 -1
  135. package/dist/assets/{NavBarWithPicker-ClP6LCUF-B_agyqrI.js → NavBarWithPicker-ClP6LCUF-D7FqbQNc.js} +1 -1
  136. package/dist/assets/{NavigationArrow-CUPvxfZv-DFdgHBv5.js → NavigationArrow-CUPvxfZv-CROxnh_J.js} +1 -1
  137. package/dist/assets/{NavigationDots-Cu9LZj7T-BaBE0dTx.js → NavigationDots-Cu9LZj7T-BoVhghfD.js} +1 -1
  138. package/dist/assets/{NewGlobalMerchantPage-g9JuX6MR-DfxwRkm2.js → NewGlobalMerchantPage-g9JuX6MR-Cddrtv6r.js} +1 -1
  139. package/dist/assets/{NoDataChart-DcMRzXHU-BWuTQSGS.js → NoDataChart-DcMRzXHU-DbjmTgYu.js} +1 -1
  140. package/dist/assets/{NoDataTable-D1v085Vv-TbZCkeJw.js → NoDataTable-D1v085Vv-CeExg0EA.js} +1 -1
  141. package/dist/assets/{NotFoundPage-Bf-EPtU9-B60UYrLG.js → NotFoundPage-Bf-EPtU9-DffpH6WC.js} +1 -1
  142. package/dist/assets/{NotFoundScreen-BlOJVroe.js → NotFoundScreen-DykxXNVn.js} +1 -1
  143. package/dist/assets/{NotificationRoutes-CKAGXrkl.js → NotificationRoutes-C-lRR8pY.js} +1 -1
  144. package/dist/assets/{NotificationSettingsPage-Zv4-2vEl-Dq8r17oD.js → NotificationSettingsPage-Zv4-2vEl-CP53OCrD.js} +1 -1
  145. package/dist/assets/{NotificationsListConfig-CO5uOSs7-B3Op3ktj.js → NotificationsListConfig-CO5uOSs7-aAnj3j2i.js} +1 -1
  146. package/dist/assets/{NotificationsPage-BH6B4Q8b-YOVbk2c7.js → NotificationsPage-BH6B4Q8b-D1IQhl37.js} +1 -1
  147. package/dist/assets/{OpExByVendorPage-EjyJRLhn-jezrc1pM.js → OpExByVendorPage-EjyJRLhn-BhVe3s3b.js} +1 -1
  148. package/dist/assets/{OverlayContainerPage-D4QU0p4o-DZKwQHwV.js → OverlayContainerPage-D4QU0p4o-C20bjbix.js} +1 -1
  149. package/dist/assets/{PandLWithForecastPage-UpDz4Qqu-fjMo0Gtf.js → PandLWithForecastPage-UpDz4Qqu-BN-vVvpP.js} +1 -1
  150. package/dist/assets/{PandLWithForecastRoutes-TX6P7Zrq.js → PandLWithForecastRoutes-zzKekdOK.js} +1 -1
  151. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CqavirRU-DO80n7FW.js → PaymentAccountSetupBillingAddressSection-CqavirRU-BkF9Y6IP.js} +1 -1
  152. package/dist/assets/{PeoplePage-D2N1XP-O-DKs_D4Fh.js → PeoplePage-D2N1XP-O-caSWGUZc.js} +1 -1
  153. package/dist/assets/{PeopleRoutes-C8mODapz.js → PeopleRoutes-CsdzM7DQ.js} +1 -1
  154. package/dist/assets/{PerformanceRoutes-DiU5fqKk.js → PerformanceRoutes-DoL3UdHs.js} +1 -1
  155. package/dist/assets/{Preview-CqLia4uG.js → Preview-BI7JdS0A.js} +1 -1
  156. package/dist/assets/{ProductsCarousel-Dx8bStwI-C44-19N7.js → ProductsCarousel-Dx8bStwI-DCDAdb91.js} +1 -1
  157. package/dist/assets/{PromoBaseCards-Bauxzwzt-Dgaaf2yK.js → PromoBaseCards-Bauxzwzt-D83UTBk-.js} +1 -1
  158. package/dist/assets/{QBOConnectionDialog-COlHLDTh-CjJgFUeC.js → QBOConnectionDialog-COlHLDTh-Ca5S7kv5.js} +1 -1
  159. package/dist/assets/{QBOConnectionScreen-AtAIA8jj.js → QBOConnectionScreen-Bdjj5_fC.js} +1 -1
  160. package/dist/assets/{QBOSetupSection-Cb4AlHU9-BpQhAPPt.js → QBOSetupSection-Cb4AlHU9-D57sQXWJ.js} +1 -1
  161. package/dist/assets/{ReferralListScreen-XiiAfJ90.js → ReferralListScreen-CmCz8zc8.js} +1 -1
  162. package/dist/assets/{ReimbursementApprovalRoutes-BocYdQhD.js → ReimbursementApprovalRoutes-Cei43fBO.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cb4wyiiA-PPkCr8xd.js → ReimbursementApprovalRuleDetailPage-Cb4wyiiA-5a2mo1SI.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DPE-kSBA.js → ReimbursementApprovalRuleDetailScreen-D1GmaX--.js} +1 -1
  165. package/dist/assets/{ReimbursementApprovalRulesPage-BEid42KU-DeLels1v.js → ReimbursementApprovalRulesPage-BEid42KU-CqL0yvKr.js} +1 -1
  166. package/dist/assets/{ReimbursementDetailPage-CuuOsKPv-BPEFJ0xe.js → ReimbursementDetailPage-CuuOsKPv-BmGXaLa_.js} +1 -1
  167. package/dist/assets/{ReimbursementPromoPage-fvIAhNdR-CSg5BemV.js → ReimbursementPromoPage-fvIAhNdR-CIqsc5v3.js} +1 -1
  168. package/dist/assets/{ReimbursementRoutes-ZXUNkUzw.js → ReimbursementRoutes-CtyvtqmD.js} +1 -1
  169. package/dist/assets/{ReimbursementSetUpPage-CBKANstD-CdxQGkDo.js → ReimbursementSetUpPage-CBKANstD-CS_Qn9By.js} +1 -1
  170. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BXO46shT-Ki-BIH8Q.js → ReimbursementsBulkReviewDrawerPage-BXO46shT-BXeQO4_5.js} +1 -1
  171. package/dist/assets/{ReloadCard-BKHKE8Pu-B3lPeTvz.js → ReloadCard-BKHKE8Pu-BkEOOlFz.js} +1 -1
  172. package/dist/assets/{ReportTableViewSelector-gYxUii1M-BhXMqYN6.js → ReportTableViewSelector-gYxUii1M-CxYX420D.js} +1 -1
  173. package/dist/assets/{ReportsPage-D7rEPLAa-CczMmifR.js → ReportsPage-D7rEPLAa-CTGwy7xH.js} +1 -1
  174. package/dist/assets/{ReportsRoutes-CZ3tnE-5.js → ReportsRoutes-DzvU0X2a.js} +1 -1
  175. package/dist/assets/{RevenueChart-BHrj8Dy9-Bgtbsht_.js → RevenueChart-BHrj8Dy9-CDfFyh6U.js} +1 -1
  176. package/dist/assets/{ReviewDetailsPage-B9SMV_va-PLuKyyKj.js → ReviewDetailsPage-B9SMV_va-DpCKxVZs.js} +1 -1
  177. package/dist/assets/{ReviewOverlay-Be_F1hd--Aq5DKqVU.js → ReviewOverlay-Be_F1hd--BbTRhL0o.js} +1 -1
  178. package/dist/assets/{RewardsRoutes-OB-0XHFr.js → RewardsRoutes-vGh4ydPL.js} +1 -1
  179. package/dist/assets/{RoleWithToolTip-D9DCHaph-Ct3ZRTHm.js → RoleWithToolTip-D9DCHaph-BK_HFdm8.js} +1 -1
  180. package/dist/assets/{ScheduleDetailsFixedAssetsPage-h1Ewtn5T-DRtWGNvu.js → ScheduleDetailsFixedAssetsPage-h1Ewtn5T-BEUluqGW.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsPage-Cr-KaH2D-B1Q1jbwo.js → ScheduleDetailsPage-Cr-KaH2D-BD6uE37t.js} +1 -1
  182. package/dist/assets/{ScheduleSequenceTable-BBbLa0gA-C54SUt--.js → ScheduleSequenceTable-BBbLa0gA-BpQ_H6dR.js} +1 -1
  183. package/dist/assets/{ScreenRoutes-Dj6yeCaN.js → ScreenRoutes-Ddt_3qWB.js} +2 -2
  184. package/dist/assets/{SetUpAccountSection-ULABF-Md-DYZnUdRJ.js → SetUpAccountSection-ULABF-Md-zu_CEzKT.js} +1 -1
  185. package/dist/assets/{SettingsRoutes-CK_IQzwc.js → SettingsRoutes-DjjTCzCe.js} +1 -1
  186. package/dist/assets/{SetupPagesScreen-B28b7eDr.js → SetupPagesScreen-n_J03kZN.js} +1 -1
  187. package/dist/assets/{SignIn-6YH_riJW-DzqdPViU.js → SignIn-6YH_riJW-CoJmoytJ.js} +1 -1
  188. package/dist/assets/{SignInScreen-Jslx5-TX.js → SignInScreen-C81bBqwd.js} +1 -1
  189. package/dist/assets/{SignOutScreen-D56BFgpr.js → SignOutScreen-CEuaozcz.js} +1 -1
  190. package/dist/assets/{SpendManagementListViewPage-D_RrkezV-ELAXLz4H.js → SpendManagementListViewPage-D_RrkezV-Gg_jrdXn.js} +3 -3
  191. package/dist/assets/{SpendManagementPerTabPage-BnugLA94-vwewauIW.js → SpendManagementPerTabPage-BnugLA94-ISau-F_A.js} +1 -1
  192. package/dist/assets/{SpendManagementSection-DCk1isQq-BuKHrb4M.js → SpendManagementSection-DCk1isQq-DqP3iWuL.js} +1 -1
  193. package/dist/assets/{StatementItem-BWKA6BsE-BBtXJaEH.js → StatementItem-BWKA6BsE-B8aggs_N.js} +1 -1
  194. package/dist/assets/{StatementsPage-C5KuiVH4-Cf4qB6ps.js → StatementsPage-C5KuiVH4-BGiHKDOi.js} +1 -1
  195. package/dist/assets/{StatusSwitcher-CgzMvf5t-ncrbliMU.js → StatusSwitcher-CgzMvf5t-BZOhbmQ7.js} +1 -1
  196. package/dist/assets/{SubTabSwitcher-gc5g6vV0-BudAZpBJ.js → SubTabSwitcher-gc5g6vV0-DPlVBwi9.js} +1 -1
  197. package/dist/assets/{SuccessAnimation-CcFXT4sg-BtvDv4Ac.js → SuccessAnimation-CcFXT4sg-BETTrulo.js} +1 -1
  198. package/dist/assets/{SummaryCard-DgPg2oPm-TIRnserH.js → SummaryCard-DgPg2oPm-DQSV3AJ_.js} +1 -1
  199. package/dist/assets/{TaskDetailPage-Brq3l5Lm-js01YZsk.js → TaskDetailPage-Brq3l5Lm-D1g8XH38.js} +1 -1
  200. package/dist/assets/{TaskListScreen-PaUFhtYL.js → TaskListScreen-D_rI0d2T.js} +1 -1
  201. package/dist/assets/{TaskManagementPage-Dyy-A0ij-kAppPPcp.js → TaskManagementPage-Dyy-A0ij-BRtOKHgc.js} +1 -1
  202. package/dist/assets/{TaskRoutes-DNKzAv87.js → TaskRoutes-CcAxScvl.js} +1 -1
  203. package/dist/assets/{TimeRangeSwitcher-PcHPZNOq-DyMi_xu3.js → TimeRangeSwitcher-PcHPZNOq-Bhy6ebhC.js} +1 -1
  204. package/dist/assets/{TimeframeSwitcher-XZjkUS_W-DEhbHF-x.js → TimeframeSwitcher-XZjkUS_W-L_xk8ffg.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcherWithToggle-KxCdrFMS-CmMYWc36.js → TimeframeSwitcherWithToggle-KxCdrFMS-aH0QwP3R.js} +1 -1
  206. package/dist/assets/{TopExCard-CRxFMC50-CucHTjUq.js → TopExCard-CRxFMC50-DI0Ys14u.js} +1 -1
  207. package/dist/assets/{TopExDetailPage-D7dCJGpQ-_APvVGdT.js → TopExDetailPage-D7dCJGpQ-0fQzChNa.js} +1 -1
  208. package/dist/assets/{TransactionActivityLogPage-ByyxovGE-B8-_ivhT.js → TransactionActivityLogPage-ByyxovGE-DjV_kYSi.js} +1 -1
  209. package/dist/assets/{TransactionDetailPage-D0_Tjv5D-BbvOSya5.js → TransactionDetailPage-D0_Tjv5D-BzMxrc83.js} +1 -1
  210. package/dist/assets/{TransactionDetailRoutes-BBeHV_Bn.js → TransactionDetailRoutes-CKp9VtFU.js} +1 -1
  211. package/dist/assets/{TransactionDetailScreen-BnLwFmdM.js → TransactionDetailScreen-BB7cA6Qz.js} +1 -1
  212. package/dist/assets/{TransactionList-DoYieHoy-MtmaAm18.js → TransactionList-DoYieHoy-Dq8Ds1Cb.js} +1 -1
  213. package/dist/assets/{TransactionListBig-BOKPby7d-BiHGWKXG.js → TransactionListBig-BOKPby7d-BEnm2yMd.js} +1 -1
  214. package/dist/assets/{TransactionListPage-Bfx0PW2V-Ko7n0w0K.js → TransactionListPage-Bfx0PW2V-Bv5CoGoz.js} +1 -1
  215. package/dist/assets/{TransactionListRoutes-D6vFloa7.js → TransactionListRoutes-C8lRyPOF.js} +1 -1
  216. package/dist/assets/{TransactionVendorDetailPage-BK4zpJ1F-BT9vQvKO.js → TransactionVendorDetailPage-BK4zpJ1F-CN3xlCoQ.js} +1 -1
  217. package/dist/assets/{TransferDrawerPage-B5ofYt0y-GCYB9I81.js → TransferDrawerPage-B5ofYt0y-GqcyFVry.js} +1 -1
  218. package/dist/assets/{TreasuryOverviewPage-D4LuhPMd-FpA9c7P5.js → TreasuryOverviewPage-D4LuhPMd-CAEUMavm.js} +1 -1
  219. package/dist/assets/{TreasuryPromoPage-ofZQDboF-BK7GFuNm.js → TreasuryPromoPage-ofZQDboF-CT-dKX0-.js} +1 -1
  220. package/dist/assets/{TreasuryRoutes-DQPlHyww.js → TreasuryRoutes-aZ6pdLcv.js} +1 -1
  221. package/dist/assets/{TreasuryStatementsPage-D4bGPC_n-C9CJ9i1a.js → TreasuryStatementsPage-D4bGPC_n-BmKF81fd.js} +1 -1
  222. package/dist/assets/{TreasuryTaxLetterPage-4aV14kQe-Bg3G6zgb.js → TreasuryTaxLetterPage-4aV14kQe-DVnspMQ5.js} +1 -1
  223. package/dist/assets/{TrendChart-BJLik8fK-C09X9QMT.js → TrendChart-BJLik8fK-B6jK66HA.js} +1 -1
  224. package/dist/assets/{TrendWithTransactions-R1FCSydB-Ci1yaQBG.js → TrendWithTransactions-R1FCSydB-BZtJh6Ko.js} +1 -1
  225. package/dist/assets/{UncategorizedAccountsMappingPage-mYSXtdgK-mpKZn3rt.js → UncategorizedAccountsMappingPage-mYSXtdgK-C0jjOEyX.js} +1 -1
  226. package/dist/assets/{UnitIntegrationPage-C44UiDRH-C1DPzFjn.js → UnitIntegrationPage-C44UiDRH-CnXGyk33.js} +1 -1
  227. package/dist/assets/{UploadAdditionalDocumentOverlay-CJmvE3y6-D4_Nm785.js → UploadAdditionalDocumentOverlay-CJmvE3y6-B0vgA0Ji.js} +1 -1
  228. package/dist/assets/{Vendor2FAPopup-Bt_phaZI-DRgs4wjV.js → Vendor2FAPopup-Bt_phaZI-DuVfk6Oy.js} +1 -1
  229. package/dist/assets/{VendorACHDetailsPage-CxlQSWGZ-Fo80chk3.js → VendorACHDetailsPage-CxlQSWGZ-CJCZBXzk.js} +1 -1
  230. package/dist/assets/{VendorDetailPage-BixXt95H-DDRHGc3v.js → VendorDetailPage-BixXt95H-CEzpHcoG.js} +1 -1
  231. package/dist/assets/{VendorDomesticWireDetailsPage-BmFZeCgu-3p9zequ6.js → VendorDomesticWireDetailsPage-BmFZeCgu-DciG2YXd.js} +1 -1
  232. package/dist/assets/{VendorFiling1099EditablePage-DIyS2YV_-CSGr8UHs.js → VendorFiling1099EditablePage-DIyS2YV_-BSd00dOl.js} +1 -1
  233. package/dist/assets/{VendorFirstReviewPage-DZ00XYRi-Bujg7mnV.js → VendorFirstReviewPage-DZ00XYRi-COzJ3EOL.js} +1 -1
  234. package/dist/assets/{VendorInternationalWireDetailsPage-DOYmaAmB-DkdpvBe3.js → VendorInternationalWireDetailsPage-DOYmaAmB-CP8642Mt.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BCafZBL5-O4Et_Cvx.js → VendorInternationalWireSwiftDetailsPage-BCafZBL5-De6VzWbh.js} +1 -1
  236. package/dist/assets/{VendorsAccountsSection-D6DinIAj-CJyfm4FF.js → VendorsAccountsSection-D6DinIAj-BpUOgRZp.js} +1 -1
  237. package/dist/assets/{VendorsRoutes-BzRnsTCQ.js → VendorsRoutes-BcdOO99u.js} +1 -1
  238. package/dist/assets/{VerifyDevice-DFug_o82-BbsyIuwM.js → VerifyDevice-DFug_o82-D9msA2pt.js} +1 -1
  239. package/dist/assets/{VideoPlayer-BuOlZW0M-DUvqMJGc.js → VideoPlayer-BuOlZW0M-BMl86S4m.js} +1 -1
  240. package/dist/assets/{VideoPopup-B03SM83j-CEO910rC.js → VideoPopup-B03SM83j--LOH40s0.js} +1 -1
  241. package/dist/assets/{WiseConfirmationScreen-Be46vSWM.js → WiseConfirmationScreen-D_LadT7o.js} +1 -1
  242. package/dist/assets/{ZeniAccountDetailPage-BJQvxY7D-0WnS8PEZ.js → ZeniAccountDetailPage-BJQvxY7D-DuzKrnCG.js} +1 -1
  243. package/dist/assets/{ZeniAccountListViewPage-CvwGdUPT-CLqSbTJn.js → ZeniAccountListViewPage-CvwGdUPT-Bay6wmzi.js} +1 -1
  244. package/dist/assets/{ZeniAccountNavBarPieces-OGXEdZmI-WHE_ZaHO.js → ZeniAccountNavBarPieces-OGXEdZmI-DsgZBmco.js} +1 -1
  245. package/dist/assets/{ZeniAccountPromoPage-iELT-FzW-B54bB-Au.js → ZeniAccountPromoPage-iELT-FzW-BjCD72m0.js} +1 -1
  246. package/dist/assets/{ZeniAccountRoutes-ked1y8nK.js → ZeniAccountRoutes-DBnPGXKs.js} +1 -1
  247. package/dist/assets/{ZeniAccountSetupPage-feqonZIV-DuQlAwjx.js → ZeniAccountSetupPage-feqonZIV-CG1KriVL.js} +1 -1
  248. package/dist/assets/{ZeniAccountStatementScreen-t9W5AfJc.js → ZeniAccountStatementScreen-Br16O1Ed.js} +1 -1
  249. package/dist/assets/{ZeniAvatar-CHmpyZc4-xmYCp34T.js → ZeniAvatar-CHmpyZc4-D3SEyYvU.js} +1 -1
  250. package/dist/assets/{ZeniCopyright-Cy7xQhak-DdKCW6EI.js → ZeniCopyright-Cy7xQhak-ScelyO6I.js} +1 -1
  251. package/dist/assets/{ZeniDatePicker--Wk1Y9-b-Ikkm7YIY.js → ZeniDatePicker--Wk1Y9-b-DVDC_pYc.js} +1 -1
  252. package/dist/assets/{ZeniTransferAmountSlider-BGK6jY7c-DnMJhxcK.js → ZeniTransferAmountSlider-BGK6jY7c-BE0jJw55.js} +1 -1
  253. package/dist/assets/{accountMappingHelper-B5TnMmqA.js → accountMappingHelper-CTk3qsZA.js} +1 -1
  254. package/dist/assets/{add-to-wallet-DgdBD8_G-Buw9XYbC.js → add-to-wallet-DgdBD8_G-DBixabBc.js} +1 -1
  255. package/dist/assets/{analytics-D7HtemTn.js → analytics-DeMdmyL7.js} +1 -1
  256. package/dist/assets/{analyticsHelper-CpXIJxUL.js → analyticsHelper-LPY3WkeX.js} +1 -1
  257. package/dist/assets/{analyticsHelper-MsboCQcB-ClYGtAlc.js → analyticsHelper-MsboCQcB-CSXrY7fF.js} +1 -1
  258. package/dist/assets/{arrow-south-east-round-PEovUgvH-BfE1l1sB.js → arrow-south-east-round-PEovUgvH-CpIzET1p.js} +1 -1
  259. package/dist/assets/{auto-transfer-rule-mbafm5D3-Dbmd4uJS.js → auto-transfer-rule-mbafm5D3-NghmWVqE.js} +1 -1
  260. package/dist/assets/{avatar-Dz7aEm3d-C2PjdQVT.js → avatar-Dz7aEm3d-bHemC5rL.js} +1 -1
  261. package/dist/assets/{calculateSize-DtEgyuiA-BJxqaIDz.js → calculateSize-DtEgyuiA-CjEqHti4.js} +1 -1
  262. package/dist/assets/{chartTypes-BZL6U2-d-UPGybQZE.js → chartTypes-BZL6U2-d-jpm0hHlK.js} +1 -1
  263. package/dist/assets/{clock-CJkylEKt-BhyIm3xG.js → clock-CJkylEKt-7F524_Wn.js} +1 -1
  264. package/dist/assets/{common-DspMM85g-eqBRfeMW.js → common-DspMM85g-CC6Rl9Du.js} +1 -1
  265. package/dist/assets/{commonDimensions-RZ10geET-CQLnP9WR.js → commonDimensions-RZ10geET-CKOh47Tk.js} +1 -1
  266. package/dist/assets/{commonTypes-lunwFIdl-BTgH3sp5.js → commonTypes-lunwFIdl-CvIuXwQA.js} +1 -1
  267. package/dist/assets/{core-ADrPabGT.js → core-CSCSHf4h.js} +1 -1
  268. package/dist/assets/{dash.all.min-B80Fjk6g.js → dash.all.min-DD8xAjYr.js} +1 -1
  269. package/dist/assets/{decodeURIComponentSafe-B2klyNYm.js → decodeURIComponentSafe-CjRggx5I.js} +1 -1
  270. package/dist/assets/{detailCommon-CxEOrtjx-XTML3r_I.js → detailCommon-CxEOrtjx-Ct263sBr.js} +1 -1
  271. package/dist/assets/{dnd-83aXbnEf.js → dnd-COr1F31f.js} +1 -1
  272. package/dist/assets/{dollar-round-D18u7nlm-DpqHsegv.js → dollar-round-D18u7nlm-jCztdMWk.js} +1 -1
  273. package/dist/assets/{downloadPdf-BpxrRqLr-Dq9Hm-Yk.js → downloadPdf-BpxrRqLr-DZAS6b5B.js} +1 -1
  274. package/dist/assets/{empty-BuW7JTEu.js → empty-BUd3exG5.js} +1 -1
  275. package/dist/assets/{empty-b7G9eJAG.js → empty-CxBrUVur.js} +1 -1
  276. package/dist/assets/{epic-PnA5OGYq.js → epic-DybEFF0H.js} +1 -1
  277. package/dist/assets/{filter-cZIFUNvj-FUBo8Jnl.js → filter-cZIFUNvj-CXXx4fNz.js} +1 -1
  278. package/dist/assets/{getLocaleForTenant-Bt4tLJ8B.js → getLocaleForTenant-CjEkOXZy.js} +1 -1
  279. package/dist/assets/{gift-box-Cmt9OgIZ-BGtl8O0W.js → gift-box-Cmt9OgIZ-CKc8hoEH.js} +1 -1
  280. package/dist/assets/{graphic-no-data-l-DU4J8fDt-ExJA3UCE.js → graphic-no-data-l-DU4J8fDt-C4iKOud4.js} +1 -1
  281. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BakRM2hs.js → graphic-no-data-net-burn-l-CzmycA0m-VLqn_raX.js} +1 -1
  282. package/dist/assets/{handshake-BPg58FML-DEzA3ltI.js → handshake-BPg58FML-DNYsMVIY.js} +1 -1
  283. package/dist/assets/{helper-2Z01-P8G-D7tgV0Ug.js → helper-2Z01-P8G-6WuzcTRW.js} +1 -1
  284. package/dist/assets/{hyperlink-DQyCeXx2-ky2ivvTP.js → hyperlink-DQyCeXx2-CQAWbGo_.js} +1 -1
  285. package/dist/assets/{index-BC_OqBzO.js → index-BOP14OKw.js} +1 -1
  286. package/dist/assets/{index-DjP1wQjH.js → index-BRX_XEL-.js} +1 -1
  287. package/dist/assets/{index-Bl4vUMlL.js → index-CCO5Gdps.js} +1 -1
  288. package/dist/assets/{index-DAaNy4V6.js → index-CWdL8pZi.js} +1 -1
  289. package/dist/assets/{index-DorX0WX8.js → index-DDbdy58V.js} +6 -6
  290. package/dist/assets/{index-B9b8RnaK.js → index-iatqQdID.js} +1 -1
  291. package/dist/assets/{lexical-BGYE9Sy4.js → lexical-O2a-WmAf.js} +1 -1
  292. package/dist/assets/{liveblocks-f_lxxH57.js → liveblocks-CxtxQte5.js} +1 -1
  293. package/dist/assets/{lottie-sNoV77jf.js → lottie-BQDwpIDJ.js} +1 -1
  294. package/dist/assets/{mapLoadingInProgressToTreeNode-BJRnX8Ir-CTwzTgVL.js → mapLoadingInProgressToTreeNode-BJRnX8Ir-U3ElZRzN.js} +1 -1
  295. package/dist/assets/{mapSectionWithAcOnlyToTreeNode--0eoufeA-BVEmfqf7.js → mapSectionWithAcOnlyToTreeNode--0eoufeA-Z11hNQZX.js} +1 -1
  296. package/dist/assets/{mapSpacerToTreeNode-CQvnRjWo-D94Aabob.js → mapSpacerToTreeNode-CQvnRjWo-CdPsLyjM.js} +1 -1
  297. package/dist/assets/{mapTimeframeBalancesToTreeNode-CY0Vs8kK-BW2bp0f8.js → mapTimeframeBalancesToTreeNode-CY0Vs8kK-DzlhNi2D.js} +1 -1
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cytg0KxN-BW6Ya40z.js → mapTimeframeBalancesToTreeNode-Cytg0KxN-BBQ4MiQI.js} +1 -1
  299. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DkTIrIkC.js → mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DB9phXRk.js} +1 -1
  300. package/dist/assets/{media-player-D1K6tfw6.js → media-player-En9R4zy-.js} +2 -2
  301. package/dist/assets/{money-2cg1MuG4-DajJjl7a.js → money-2cg1MuG4-Dg41nRSv.js} +1 -1
  302. package/dist/assets/{mui-gZ2J-2YO.js → mui-CVWe5m7x.js} +1 -1
  303. package/dist/assets/{page-detail-CWX5S47F-mMS9vUC4.js → page-detail-CWX5S47F-BOzcKZnj.js} +1 -1
  304. package/dist/assets/{page-summary-D7_VQHwN-DhjZazqO.js → page-summary-D7_VQHwN-CcrLQmlI.js} +1 -1
  305. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-DyRjm7kt.js → panelSelectedMixin-CzfD5-Zs-DlyoL7DQ.js} +1 -1
  306. package/dist/assets/{pathToGoBack-BvSUl7ma.js → pathToGoBack-DIP3w2mF.js} +1 -1
  307. package/dist/assets/{pdf-lib-uBsrmHT5.js → pdf-lib-JWzwvdNX.js} +1 -1
  308. package/dist/assets/{pdf-BNA4Ou8X.js → pdf-rNAmIEF5.js} +3 -3
  309. package/dist/assets/{plaid-DS3FargU.js → plaid-CiVnbkxs.js} +1 -1
  310. package/dist/assets/{pusher-fI6e2fO0.js → pusher-CfFxSIhQ.js} +1 -1
  311. package/dist/assets/{radio-default-CiSgisfh-BlGVs6W5.js → radio-default-CiSgisfh-dW1yKl4Q.js} +1 -1
  312. package/dist/assets/{react-PTvHN8FL.js → react-4TAXbemT.js} +3 -3
  313. package/dist/assets/{react-DGUD67o4.js → react-BLXPSNxU.js} +1 -1
  314. package/dist/assets/{react-aVJXH_ps.js → react-BQsk4BoF.js} +1 -1
  315. package/dist/assets/{react-pv23IQaZ.js → react-BeMs2FpL.js} +1 -1
  316. package/dist/assets/{react-DGs-yfEB.js → react-C8m8Qc1h.js} +1 -1
  317. package/dist/assets/{react-ihVT-KIV.js → react-CWo9VOAE.js} +1 -1
  318. package/dist/assets/{react-Dhg_7JXq.js → react-DRNApT94.js} +1 -1
  319. package/dist/assets/{react-2oa8mqCY.js → react-DreXWt5i.js} +1 -1
  320. package/dist/assets/{recharts-BKvR8EI0.js → recharts-C5pBg015.js} +1 -1
  321. package/dist/assets/{routePaths-BozUSOR4.js → routePaths-fz0y1bUD.js} +1 -1
  322. package/dist/assets/{sentry-tRTnR5ia.js → sentry-DXG8OAzW.js} +1 -1
  323. package/dist/assets/{shield-DOlUxcFf-c8MRbcLE.js → shield-DOlUxcFf-Cd3QAXsn.js} +1 -1
  324. package/dist/assets/{spend-limit-D6SyboD4-B-j1Sn9h.js → spend-limit-D6SyboD4-D2szeI3Z.js} +1 -1
  325. package/dist/assets/{toCOABalancesWithID-DzAIFjHl-Bv5FILWN.js → toCOABalancesWithID-DzAIFjHl-Dd4AXSDY.js} +1 -1
  326. package/dist/assets/{toChartData-BurvmO_S-tegfOE4s.js → toChartData-BurvmO_S-Dcja8_o1.js} +1 -1
  327. package/dist/assets/{transaction-placeholder-CpOwZAMG-B1W5bE7h.js → transaction-placeholder-CpOwZAMG-B2mLzfbH.js} +1 -1
  328. package/dist/assets/{undo-b_3XZ5CX-CWSUI7Te.js → undo-b_3XZ5CX-DSJzH_Tn.js} +1 -1
  329. package/dist/assets/{unlock-BPWn2I5L-DofDRoYu.js → unlock-BPWn2I5L-Do1fnqx6.js} +1 -1
  330. package/dist/assets/{uploadAttachment-DtJo5Tp4-I2f6VcnN.js → uploadAttachment-DtJo5Tp4-BZBGp8x9.js} +1 -1
  331. package/dist/assets/{uploadReceipts-Dge0cNF1-CtnQO8tO.js → uploadReceipts-Dge0cNF1-Bk3l52rk.js} +1 -1
  332. package/dist/assets/{url-DgsAV5vb.js → url-D1_xUHHk.js} +1 -1
  333. package/dist/assets/{url-C7onmSKg.js → url-DHNwFLzp.js} +1 -1
  334. package/dist/assets/{useDeviceId-DXjMFBrp.js → useDeviceId-CbEpWwMZ.js} +1 -1
  335. package/dist/assets/{useInitialThreadRequest-CVIIrf8B.js → useInitialThreadRequest-B_AZH90H.js} +1 -1
  336. package/dist/assets/{useLongPress-GCK2COYQ-BErt8Gng.js → useLongPress-GCK2COYQ-B5PGidsY.js} +1 -1
  337. package/dist/assets/{usp-line-BBd1wKwW-Vkz6UgtT.js → usp-line-BBd1wKwW-BIw6ZPFi.js} +1 -1
  338. package/dist/assets/{utils-VuBQoQGa.js → utils-CEFC9M68.js} +1 -1
  339. package/dist/assets/{withTransactionSidePanel-DCoGJOSb.js → withTransactionSidePanel-CV9mcG0R.js} +1 -1
  340. package/dist/assets/{zeni-epic-state-DiMW9axO.js → zeni-epic-state-B_a_iTrR.js} +3 -3
  341. package/dist/assets/{zeni-icon-only-soz6I0gO.js → zeni-icon-only-CqALPKNP.js} +1 -1
  342. package/dist/index.html +1 -1
  343. package/package.json +1 -1
  344. package/dist/assets/CustomerOnboardingAuthScreen-Cxwuh-5v.js +0 -1
  345. package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-SuSAzHFh.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as G,y as Y,O,t as he,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-DorX0WX8.js";import{a as P,b as ee}from"./sentry-tRTnR5ia.js";import{n as S}from"./mui-gZ2J-2YO.js";import{bt as Z,El as Ae,Eu as Re,Ev as j,Ew as Be,Ex as ve,Ey as Te,Ez as Le,EA as Pe,EB as te,EC as oe}from"./zeni-epic-state-DiMW9axO.js";import{m as U,l as q}from"./analyticsHelper-MsboCQcB-ClYGtAlc.js";import{x as Ne}from"./ReportTableViewSelector-gYxUii1M-BhXMqYN6.js";import{a as se,p as ke}from"./TimeRangeSwitcher-PcHPZNOq-DyMi_xu3.js";import{M as Ie}from"./TimeframeSwitcherWithToggle-KxCdrFMS-CmMYWc36.js";import{DownloadOverlayButton as Me}from"./DownloadOverlay-DE63RFQe-VsFfbW3d.js";import{I as Ee,R as I,x as J}from"./CollapsableReportTable-BAz0DbFh-Bx4HSBTd.js";import{D as ne,T as ae,C as $,L as Fe,g as ie}from"./mapSectionWithAcOnlyToTreeNode--0eoufeA-BVEmfqf7.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-Cytg0KxN-BW6Ya40z.js";import{d as je,l as $e}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DkTIrIkC.js";import{d as Ve}from"./mapLoadingInProgressToTreeNode-BJRnX8Ir-CTwzTgVL.js";import"./pdf-BNA4Ou8X.js";import"./core-ADrPabGT.js";import"./lottie-sNoV77jf.js";import"./liveblocks-f_lxxH57.js";import"./recharts-BKvR8EI0.js";import"./dnd-83aXbnEf.js";import"./analytics-D7HtemTn.js";import"./plaid-DS3FargU.js";import"./utils-VuBQoQGa.js";import"./filter-cZIFUNvj-FUBo8Jnl.js";import"./TimeframeSwitcher-XZjkUS_W-DEhbHF-x.js";import"./page-detail-CWX5S47F-mMS9vUC4.js";import"./page-summary-D7_VQHwN-DhjZazqO.js";import"./AccountRow-Zjkju8uM-h-BJkTkR.js";import"./clock-CJkylEKt-BhyIm3xG.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]="2bb5bb2b-53cc-4879-b8a4-f94951e72e8a",e._sentryDebugIdIdentifier="sentry-dbid-2bb5bb2b-53cc-4879-b8a4-f94951e72e8a")}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}},h=J("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(c.accounts),A=h.map((m,w)=>ie({account:m,sectionType:b,numOfBalances:_,title:m.account.accountName,config:l,isLastNode:w===h.length-1,parentNodeIDs:[d],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:h.length>1,hasChildren:m.children.length>0,isLastNode:w===h.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(Te(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 Le(d)===!0?r.push(function({calculatedSection:p,numOfBalances:h,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:h},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 h=Ve({title:`${d}+${p}`,balances:b,config:t});h.reportElementData.element.numOfBalances=6,_.push(h)})}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 h=e.sections[p];h!=null&&_.push(Fe({section:h,sectionType:p,numOfBalances:d,title:o.sections[p],isLastNode:!0,config:t}))}else if(oe(p)===!0){const h=e.calculatedSections[p];h!=null&&_.push($({calculatedSection:h,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 he,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-DDbdy58V.js";import{a as P,b as ee}from"./sentry-DXG8OAzW.js";import{n as S}from"./mui-CVWe5m7x.js";import{bt as Z,El as Ae,Eu as Re,Ev as j,Ew as Be,Ex as ve,Ey as Te,Ez as Le,EA as Pe,EB as te,EC as oe}from"./zeni-epic-state-B_a_iTrR.js";import{m as U,l as q}from"./analyticsHelper-MsboCQcB-CSXrY7fF.js";import{x as Ne}from"./ReportTableViewSelector-gYxUii1M-CxYX420D.js";import{a as se,p as ke}from"./TimeRangeSwitcher-PcHPZNOq-Bhy6ebhC.js";import{M as Ie}from"./TimeframeSwitcherWithToggle-KxCdrFMS-aH0QwP3R.js";import{DownloadOverlayButton as Me}from"./DownloadOverlay-DE63RFQe-rm17dQJa.js";import{I as Ee,R as I,x as J}from"./CollapsableReportTable-BAz0DbFh-CAhAQGEZ.js";import{D as ne,T as ae,C as $,L as Fe,g as ie}from"./mapSectionWithAcOnlyToTreeNode--0eoufeA-Z11hNQZX.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-Cytg0KxN-BBQ4MiQI.js";import{d as je,l as $e}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DB9phXRk.js";import{d as Ve}from"./mapLoadingInProgressToTreeNode-BJRnX8Ir-U3ElZRzN.js";import"./pdf-rNAmIEF5.js";import"./core-CSCSHf4h.js";import"./lottie-BQDwpIDJ.js";import"./liveblocks-CxtxQte5.js";import"./recharts-C5pBg015.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./plaid-CiVnbkxs.js";import"./utils-CEFC9M68.js";import"./filter-cZIFUNvj-CXXx4fNz.js";import"./TimeframeSwitcher-XZjkUS_W-L_xk8ffg.js";import"./page-detail-CWX5S47F-BOzcKZnj.js";import"./page-summary-D7_VQHwN-CcrLQmlI.js";import"./AccountRow-Zjkju8uM-6N6Zy9oH.js";import"./clock-CJkylEKt-7F524_Wn.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]="2bb5bb2b-53cc-4879-b8a4-f94951e72e8a",e._sentryDebugIdIdentifier="sentry-dbid-2bb5bb2b-53cc-4879-b8a4-f94951e72e8a")}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}},h=J("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(c.accounts),A=h.map((m,w)=>ie({account:m,sectionType:b,numOfBalances:_,title:m.account.accountName,config:l,isLastNode:w===h.length-1,parentNodeIDs:[d],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:h.length>1,hasChildren:m.children.length>0,isLastNode:w===h.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(Te(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 Le(d)===!0?r.push(function({calculatedSection:p,numOfBalances:h,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:h},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 h=Ve({title:`${d}+${p}`,balances:b,config:t});h.reportElementData.element.numOfBalances=6,_.push(h)})}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 h=e.sections[p];h!=null&&_.push(Fe({section:h,sectionType:p,numOfBalances:d,title:o.sections[p],isLastNode:!0,config:t}))}else if(oe(p)===!0){const h=e.calculatedSections[p];h!=null&&_.push($({calculatedSection:h,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-BNA4Ou8X.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-ADrPabGT.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-DiMW9axO.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-DorX0WX8.js";import"./mui-gZ2J-2YO.js";import Ae from"./NotFoundScreen-BlOJVroe.js";import{F as Ge}from"./FeaturePreviewScreen-C5OPsEGq.js";import{a as g}from"./sentry-tRTnR5ia.js";import{t as Me,a as Pe}from"./routePaths-BozUSOR4.js";import{M as je}from"./MobileAppDrawer-vjIJyx5N.js";import"./lottie-sNoV77jf.js";import"./liveblocks-f_lxxH57.js";import"./recharts-BKvR8EI0.js";import"./dnd-83aXbnEf.js";import"./analytics-D7HtemTn.js";import"./plaid-DS3FargU.js";import"./utils-VuBQoQGa.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-rNAmIEF5.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-CSCSHf4h.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-B_a_iTrR.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-DDbdy58V.js";import"./mui-CVWe5m7x.js";import Ae from"./NotFoundScreen-DykxXNVn.js";import{F as Ge}from"./FeaturePreviewScreen-CLKJ2QAB.js";import{a as g}from"./sentry-DXG8OAzW.js";import{t as Me,a as Pe}from"./routePaths-fz0y1bUD.js";import{M as je}from"./MobileAppDrawer-D_OmB8VL.js";import"./lottie-BQDwpIDJ.js";import"./liveblocks-CxtxQte5.js";import"./recharts-C5pBg015.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./plaid-CiVnbkxs.js";import"./utils-CEFC9M68.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-DorX0WX8.js";import{a as z,b as ee}from"./sentry-tRTnR5ia.js";import{n as f}from"./mui-gZ2J-2YO.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-BZL6U2-d-UPGybQZE.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-DzAIFjHl-Bv5FILWN.js";import{V as X}from"./toChartData-BurvmO_S-tegfOE4s.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-BKvR8EI0.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]="95d7257e-a75a-4d92-83c9-524094b0ca66",e._sentryDebugIdIdentifier="sentry-dbid-95d7257e-a75a-4d92-83c9-524094b0ca66")}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-DDbdy58V.js";import{a as z,b as ee}from"./sentry-DXG8OAzW.js";import{n as f}from"./mui-CVWe5m7x.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-BZL6U2-d-jpm0hHlK.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-DzAIFjHl-Dd4AXSDY.js";import{V as X}from"./toChartData-BurvmO_S-Dcja8_o1.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-C5pBg015.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]="95d7257e-a75a-4d92-83c9-524094b0ca66",e._sentryDebugIdIdentifier="sentry-dbid-95d7257e-a75a-4d92-83c9-524094b0ca66")}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 Bt,eA as Me,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 Mt,eI as Ft,bg as Le,o as n,a9 as Rt,u as s,O as Lt,K as zt,bp as Nt,H as Ot,B as Et,eJ as _t,bB as Yt,s as ce,W as me,eK as Gt,eL as Kt,aD as Vt,l as Zt,at as qt,eM as Ht,I as tt,b6 as Ut,x as nt,aR as Wt,eN as Jt}from"./index-DorX0WX8.js";import{a as G}from"./sentry-tRTnR5ia.js";import{n as a}from"./mui-gZ2J-2YO.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-DiMW9axO.js";import{t as tn,o as nn}from"./LowBalancePopup-CkO97HGX-C-OMTelo.js";import{S as Y}from"./LabeledText-CZMUFsPf-BSb4-Hu0.js";import"./pdf-BNA4Ou8X.js";import"./core-ADrPabGT.js";import"./lottie-sNoV77jf.js";import"./liveblocks-f_lxxH57.js";import"./recharts-BKvR8EI0.js";import"./dnd-83aXbnEf.js";import"./analytics-D7HtemTn.js";import"./plaid-DS3FargU.js";import"./utils-VuBQoQGa.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]="d9190046-32c9-4df9-9ad4-d82cdb571f06",e._sentryDebugIdIdentifier="sentry-dbid-d9190046-32c9-4df9-9ad4-d82cdb571f06")}catch{}})();const at=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:_e}=ln,Ye=({attachment:e})=>{const[y,x]=G.useState(!1),B=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>B===!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(Kt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:B,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:dt,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:Q,retryPayment:ct})=>{const d=wt(),c=$t(),M={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),I=e.saveStatus,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(Bn,{size:d,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,K=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&K?.code?K:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&K?.code?K:N,ae=()=>{pe()},$e=()=>{pe()},V=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,Z=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,Z,e.isBillMarkedForRetry),le=dt&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&q(!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??"",Be=Jt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Be,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Be,Ae)}}})(),ye(!1,{}))},xt=Xt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,q]=G.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{st(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{q(!1),ae()},onClickAway:()=>{q(!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(B.company?.companyInfo),vendor:e.vendor?.name,paymentDate:V?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:d,style:lt,children:[d==="small"?t.jsxs(Pn,{windowSize:d,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ze,{windowSize:d,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),d!=="small"?t.jsx(bn,{children:t.jsx(Ze,{windowSize:d,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(_n,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>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=Bt(l);return l!=null?t.jsx(On,{children:at.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ye,{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:d,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?Me.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(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ye,{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:d,children:k("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Me.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:{...M,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Y,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,d):g,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(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:{...M,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Y,{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||V==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:{...M,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Y,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:V.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(V.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:{...M,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Y,{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:{...M,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Y,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Mt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:d,children:[t.jsxs(yn,{children:[t.jsx(sn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ve,{children:[t.jsx(se,{children:i.method.includes(D)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(se,{children:_e.transactionFee}),t.jsx(de,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(dn,{children:[t.jsx(se,{children:Ee.total}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles: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:Ke(!1,C,h,Z,d)}},primaryBtn:{label:Ge(h,Z,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||X?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?q(!0):Ce()},style:{width:Ke(!0,C,h,Z,d)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Kn,{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(Mn,{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,Ke=(e,y,x,B,A)=>x?128:y&&!e&&A==="small"?"auto":B?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 Bt,eA as Me,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 Mt,eI as Ft,bg as Le,o as n,a9 as Rt,u as s,O as Lt,K as zt,bp as Nt,H as Ot,B as Et,eJ as _t,bB as Yt,s as ce,W as me,eK as Gt,eL as Kt,aD as Vt,l as Zt,at as qt,eM as Ht,I as tt,b6 as Ut,x as nt,aR as Wt,eN as Jt}from"./index-DDbdy58V.js";import{a as G}from"./sentry-DXG8OAzW.js";import{n as a}from"./mui-CVWe5m7x.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-B_a_iTrR.js";import{t as tn,o as nn}from"./LowBalancePopup-CkO97HGX-nozhu0WG.js";import{S as Y}from"./LabeledText-CZMUFsPf-BzxAzPVQ.js";import"./pdf-rNAmIEF5.js";import"./core-CSCSHf4h.js";import"./lottie-BQDwpIDJ.js";import"./liveblocks-CxtxQte5.js";import"./recharts-C5pBg015.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./plaid-CiVnbkxs.js";import"./utils-CEFC9M68.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]="d9190046-32c9-4df9-9ad4-d82cdb571f06",e._sentryDebugIdIdentifier="sentry-dbid-d9190046-32c9-4df9-9ad4-d82cdb571f06")}catch{}})();const at=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:_e}=ln,Ye=({attachment:e})=>{const[y,x]=G.useState(!1),B=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>B===!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(Kt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:B,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:dt,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:Q,retryPayment:ct})=>{const d=wt(),c=$t(),M={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),I=e.saveStatus,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(Bn,{size:d,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,K=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&K?.code?K:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&K?.code?K:N,ae=()=>{pe()},$e=()=>{pe()},V=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,Z=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,Z,e.isBillMarkedForRetry),le=dt&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&q(!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??"",Be=Jt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Be,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Be,Ae)}}})(),ye(!1,{}))},xt=Xt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,q]=G.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{st(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{q(!1),ae()},onClickAway:()=>{q(!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(B.company?.companyInfo),vendor:e.vendor?.name,paymentDate:V?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:d,style:lt,children:[d==="small"?t.jsxs(Pn,{windowSize:d,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ze,{windowSize:d,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),d!=="small"?t.jsx(bn,{children:t.jsx(Ze,{windowSize:d,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(_n,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>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=Bt(l);return l!=null?t.jsx(On,{children:at.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ye,{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:d,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?Me.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(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ye,{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:d,children:k("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Me.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:{...M,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Y,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,d):g,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(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:{...M,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Y,{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||V==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:{...M,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Y,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:V.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(V.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:{...M,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Y,{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:{...M,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Y,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Mt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:d,children:[t.jsxs(yn,{children:[t.jsx(sn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ve,{children:[t.jsx(se,{children:i.method.includes(D)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(se,{children:_e.transactionFee}),t.jsx(de,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(dn,{children:[t.jsx(se,{children:Ee.total}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles: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:Ke(!1,C,h,Z,d)}},primaryBtn:{label:Ge(h,Z,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||X?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?q(!0):Ce()},style:{width:Ke(!0,C,h,Z,d)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Kn,{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(Mn,{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,Ke=(e,y,x,B,A)=>x?128:y&&!e&&A==="small"?"auto":B?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-DorX0WX8.js";import{n as t}from"./mui-gZ2J-2YO.js";import{a as w}from"./sentry-tRTnR5ia.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-DDbdy58V.js";import{n as t}from"./mui-CVWe5m7x.js";import{a as w}from"./sentry-DXG8OAzW.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-BNA4Ou8X.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-DorX0WX8.js";import"./mui-gZ2J-2YO.js";import m from"./NotFoundScreen-BlOJVroe.js";import{a as f}from"./sentry-tRTnR5ia.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-ADrPabGT.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-DiMW9axO.js";import{R as j}from"./ReferralListScreen-XiiAfJ90.js";import"./lottie-sNoV77jf.js";import"./liveblocks-f_lxxH57.js";import"./recharts-BKvR8EI0.js";import"./dnd-83aXbnEf.js";import"./analytics-D7HtemTn.js";import"./plaid-DS3FargU.js";import"./utils-VuBQoQGa.js";import"./MobileAppDrawer-vjIJyx5N.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-rNAmIEF5.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-DDbdy58V.js";import"./mui-CVWe5m7x.js";import m from"./NotFoundScreen-DykxXNVn.js";import{a as f}from"./sentry-DXG8OAzW.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-CSCSHf4h.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-B_a_iTrR.js";import{R as j}from"./ReferralListScreen-CmCz8zc8.js";import"./lottie-BQDwpIDJ.js";import"./liveblocks-CxtxQte5.js";import"./recharts-C5pBg015.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./plaid-CiVnbkxs.js";import"./utils-CEFC9M68.js";import"./MobileAppDrawer-D_OmB8VL.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-DorX0WX8.js";import{n as l}from"./mui-gZ2J-2YO.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-DDbdy58V.js";import{n as l}from"./mui-CVWe5m7x.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 be,c4 as Ke,hC as Ge,hD as Ye,hE as Qe,o as V}from"./index-DorX0WX8.js";import{a as D}from"./sentry-tRTnR5ia.js";import{n as R}from"./mui-gZ2J-2YO.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-DiMW9axO.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-BBbLa0gA-C54SUt--.js";import"./pdf-BNA4Ou8X.js";import"./core-ADrPabGT.js";import"./lottie-sNoV77jf.js";import"./liveblocks-f_lxxH57.js";import"./recharts-BKvR8EI0.js";import"./dnd-83aXbnEf.js";import"./analytics-D7HtemTn.js";import"./plaid-DS3FargU.js";import"./utils-VuBQoQGa.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]="3012a4c0-a949-4bcb-961b-90fb471abf93",e._sentryDebugIdIdentifier="sentry-dbid-3012a4c0-a949-4bcb-961b-90fb471abf93")}catch{}})();const B={labelWidth:new be(160,160,160),depCategoryLabelWidth:new be(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 be,c4 as Ke,hC as Ge,hD as Ye,hE as Qe,o as V}from"./index-DDbdy58V.js";import{a as D}from"./sentry-DXG8OAzW.js";import{n as R}from"./mui-CVWe5m7x.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-B_a_iTrR.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-BBbLa0gA-BpQ_H6dR.js";import"./pdf-rNAmIEF5.js";import"./core-CSCSHf4h.js";import"./lottie-BQDwpIDJ.js";import"./liveblocks-CxtxQte5.js";import"./recharts-C5pBg015.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./plaid-CiVnbkxs.js";import"./utils-CEFC9M68.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]="3012a4c0-a949-4bcb-961b-90fb471abf93",e._sentryDebugIdIdentifier="sentry-dbid-3012a4c0-a949-4bcb-961b-90fb471abf93")}catch{}})();const B={labelWidth:new be(160,160,160),depCategoryLabelWidth:new be(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-DorX0WX8.js";import{a as D}from"./sentry-tRTnR5ia.js";import{n as M}from"./mui-gZ2J-2YO.js";import{bH as Ye,bI as Qe,bG as Xe}from"./zeni-epic-state-DiMW9axO.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-BBbLa0gA-C54SUt--.js";import"./pdf-BNA4Ou8X.js";import"./core-ADrPabGT.js";import"./lottie-sNoV77jf.js";import"./liveblocks-f_lxxH57.js";import"./recharts-BKvR8EI0.js";import"./dnd-83aXbnEf.js";import"./analytics-D7HtemTn.js";import"./plaid-DS3FargU.js";import"./utils-VuBQoQGa.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]="4fad9e83-b00d-40d8-910d-73b3f05bf61f",e._sentryDebugIdIdentifier="sentry-dbid-4fad9e83-b00d-40d8-910d-73b3f05bf61f")}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-DDbdy58V.js";import{a as D}from"./sentry-DXG8OAzW.js";import{n as M}from"./mui-CVWe5m7x.js";import{bH as Ye,bI as Qe,bG as Xe}from"./zeni-epic-state-B_a_iTrR.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-BBbLa0gA-BpQ_H6dR.js";import"./pdf-rNAmIEF5.js";import"./core-CSCSHf4h.js";import"./lottie-BQDwpIDJ.js";import"./liveblocks-CxtxQte5.js";import"./recharts-C5pBg015.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./plaid-CiVnbkxs.js";import"./utils-CEFC9M68.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]="4fad9e83-b00d-40d8-910d-73b3f05bf61f",e._sentryDebugIdIdentifier="sentry-dbid-4fad9e83-b00d-40d8-910d-73b3f05bf61f")}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-DorX0WX8.js";import{n as l,c as B}from"./mui-gZ2J-2YO.js";import{a as C}from"./sentry-tRTnR5ia.js";import{bs as G,FF as Re}from"./zeni-epic-state-DiMW9axO.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-DDbdy58V.js";import{n as l,c as B}from"./mui-CVWe5m7x.js";import{a as C}from"./sentry-DXG8OAzW.js";import{bs as G,FF as Re}from"./zeni-epic-state-B_a_iTrR.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-Ca715xZt.js","assets/pdf-BNA4Ou8X.js","assets/zeni-epic-state-DiMW9axO.js","assets/sentry-tRTnR5ia.js","assets/core-ADrPabGT.js","assets/index-DorX0WX8.js","assets/mui-gZ2J-2YO.js","assets/recharts-BKvR8EI0.js","assets/lottie-sNoV77jf.js","assets/liveblocks-f_lxxH57.js","assets/dnd-83aXbnEf.js","assets/analytics-D7HtemTn.js","assets/plaid-DS3FargU.js","assets/utils-VuBQoQGa.js","assets/index-D-vub4_t.css","assets/withTransactionSidePanel-DCoGJOSb.js","assets/TransactionDetailScreen-BnLwFmdM.js","assets/decodeURIComponentSafe-B2klyNYm.js","assets/routePaths-BozUSOR4.js","assets/NotFoundScreen-BlOJVroe.js","assets/analyticsHelper-CpXIJxUL.js","assets/CompanyPassportScreen-COEYsT8F.js","assets/MobileAppDrawer-vjIJyx5N.js","assets/FeaturePreviewScreen-C5OPsEGq.js","assets/ReferralListScreen-XiiAfJ90.js","assets/BillPayRoutes-Bzx279Kq.js","assets/AddressScreen-C8N1fPfJ.js","assets/DomesticWireDetailScreen-BGqZWgZd.js","assets/useInitialThreadRequest-CVIIrf8B.js","assets/zeni-icon-only-soz6I0gO.js","assets/DrawerScreen-V32qwnkz.js","assets/SetupPagesScreen-B28b7eDr.js","assets/BusinessVerificationPageScreen-DfGLG3SR.js","assets/BillPayApprovalRoutes-BwVvI4WJ.js","assets/ReimbursementApprovalRuleDetailScreen-DPE-kSBA.js","assets/getLocaleForTenant-Bt4tLJ8B.js","assets/ReimbursementRoutes-ZXUNkUzw.js","assets/ReimbursementApprovalRoutes-BocYdQhD.js","assets/TransactionListRoutes-D6vFloa7.js","assets/ZeniAccountStatementScreen-t9W5AfJc.js","assets/SettingsRoutes-CK_IQzwc.js","assets/accountMappingHelper-B5TnMmqA.js","assets/ReportsRoutes-CZ3tnE-5.js","assets/ChargeCardRoutes-4t9GJNvz.js","assets/PeopleRoutes-C8mODapz.js","assets/ExpenseAutomationRoutes-Dbfi_osP.js","assets/TreasuryRoutes-DQPlHyww.js","assets/VendorsRoutes-BzRnsTCQ.js","assets/pathToGoBack-BvSUl7ma.js","assets/ZeniAccountRoutes-ked1y8nK.js","assets/AddressRoutes-BuxeYADW.js","assets/PandLWithForecastRoutes-TX6P7Zrq.js","assets/CustomerOnboardingRoutes-CDOn_9SO.js","assets/QBOConnectionScreen-AtAIA8jj.js","assets/empty-b7G9eJAG.js","assets/pdf-lib-uBsrmHT5.js","assets/index-BC_OqBzO.js","assets/url-DgsAV5vb.js","assets/index-Bl4vUMlL.js","assets/TransactionDetailRoutes-BBeHV_Bn.js","assets/EntityDetailRoutes-BxYqKDQd.js","assets/NotificationRoutes-CKAGXrkl.js","assets/PerformanceRoutes-DiU5fqKk.js","assets/RewardsRoutes-OB-0XHFr.js","assets/TaskRoutes-DNKzAv87.js","assets/AiCfoScreen-DKeSXeDT.js","assets/TaskListScreen-PaUFhtYL.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-DiMW9axO.js";import{j as e}from"./pdf-BNA4Ou8X.js";import{a as f}from"./sentry-tRTnR5ia.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-ADrPabGT.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-DorX0WX8.js";import"./mui-gZ2J-2YO.js";import{f as Ue}from"./analyticsHelper-CpXIJxUL.js";import{t as Js}from"./getLocaleForTenant-Bt4tLJ8B.js";import"./lottie-sNoV77jf.js";import"./liveblocks-f_lxxH57.js";import"./recharts-BKvR8EI0.js";import"./dnd-83aXbnEf.js";import"./analytics-D7HtemTn.js";import"./plaid-DS3FargU.js";import"./utils-VuBQoQGa.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-Ca715xZt.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-Bzx279Kq.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-ZXUNkUzw.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-D6vFloa7.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-CK_IQzwc.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-CZ3tnE-5.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-4t9GJNvz.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-C8mODapz.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,22])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-Dbfi_osP.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-DQPlHyww.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-BzRnsTCQ.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-ked1y8nK.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-CZ3tnE-5.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-BuxeYADW.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-C8mODapz.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-TX6P7Zrq.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-CDOn_9SO.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-BzRnsTCQ.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-BBeHV_Bn.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-BxYqKDQd.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-Ca715xZt.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-Bzx279Kq.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-CK_IQzwc.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-ZXUNkUzw.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-ked1y8nK.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-DQPlHyww.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-D6vFloa7.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-4t9GJNvz.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-CKAGXrkl.js"),__vite__mapDeps([61,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14]))),pn=l(()=>n(()=>import("./PerformanceRoutes-DiU5fqKk.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-Dbfi_osP.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-OB-0XHFr.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-DNKzAv87.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-DKeSXeDT.js"),__vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,48]))),y=l(()=>n(()=>import("./NotFoundScreen-BlOJVroe.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),Tn=l(()=>n(()=>import("./TaskListScreen-PaUFhtYL.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-Cs6trW6R.js","assets/pdf-rNAmIEF5.js","assets/zeni-epic-state-B_a_iTrR.js","assets/sentry-DXG8OAzW.js","assets/core-CSCSHf4h.js","assets/index-DDbdy58V.js","assets/mui-CVWe5m7x.js","assets/recharts-C5pBg015.js","assets/lottie-BQDwpIDJ.js","assets/liveblocks-CxtxQte5.js","assets/dnd-COr1F31f.js","assets/analytics-DeMdmyL7.js","assets/plaid-CiVnbkxs.js","assets/utils-CEFC9M68.js","assets/index-D-vub4_t.css","assets/withTransactionSidePanel-CV9mcG0R.js","assets/TransactionDetailScreen-BB7cA6Qz.js","assets/decodeURIComponentSafe-CjRggx5I.js","assets/routePaths-fz0y1bUD.js","assets/NotFoundScreen-DykxXNVn.js","assets/analyticsHelper-LPY3WkeX.js","assets/CompanyPassportScreen-Bw3qq-Ht.js","assets/MobileAppDrawer-D_OmB8VL.js","assets/FeaturePreviewScreen-CLKJ2QAB.js","assets/ReferralListScreen-CmCz8zc8.js","assets/BillPayRoutes-BUUZZuBG.js","assets/AddressScreen-DDbvTrW2.js","assets/DomesticWireDetailScreen-CDquLvw_.js","assets/useInitialThreadRequest-B_AZH90H.js","assets/zeni-icon-only-CqALPKNP.js","assets/DrawerScreen-C-gJlwdg.js","assets/SetupPagesScreen-n_J03kZN.js","assets/BusinessVerificationPageScreen-Cmz7lCYf.js","assets/BillPayApprovalRoutes-D2WhMQ-d.js","assets/ReimbursementApprovalRuleDetailScreen-D1GmaX--.js","assets/getLocaleForTenant-CjEkOXZy.js","assets/ReimbursementRoutes-CtyvtqmD.js","assets/ReimbursementApprovalRoutes-Cei43fBO.js","assets/TransactionListRoutes-C8lRyPOF.js","assets/ZeniAccountStatementScreen-Br16O1Ed.js","assets/SettingsRoutes-DjjTCzCe.js","assets/accountMappingHelper-CTk3qsZA.js","assets/ReportsRoutes-DzvU0X2a.js","assets/ChargeCardRoutes-Bi6qtFGx.js","assets/PeopleRoutes-CsdzM7DQ.js","assets/ExpenseAutomationRoutes-N5IH8NJS.js","assets/TreasuryRoutes-aZ6pdLcv.js","assets/VendorsRoutes-BcdOO99u.js","assets/pathToGoBack-DIP3w2mF.js","assets/ZeniAccountRoutes-DBnPGXKs.js","assets/AddressRoutes-BRhTpo4o.js","assets/PandLWithForecastRoutes-zzKekdOK.js","assets/CustomerOnboardingRoutes-C8nMZVtS.js","assets/QBOConnectionScreen-Bdjj5_fC.js","assets/empty-CxBrUVur.js","assets/pdf-lib-JWzwvdNX.js","assets/index-BOP14OKw.js","assets/url-D1_xUHHk.js","assets/index-CCO5Gdps.js","assets/TransactionDetailRoutes-CKp9VtFU.js","assets/EntityDetailRoutes-Bjmke2zn.js","assets/NotificationRoutes-C-lRR8pY.js","assets/PerformanceRoutes-DoL3UdHs.js","assets/RewardsRoutes-vGh4ydPL.js","assets/TaskRoutes-CcAxScvl.js","assets/AiCfoScreen-BMeMMkhN.js","assets/TaskListScreen-D_rI0d2T.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-B_a_iTrR.js";import{j as e}from"./pdf-rNAmIEF5.js";import{a as f}from"./sentry-DXG8OAzW.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-CSCSHf4h.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-DDbdy58V.js";import"./mui-CVWe5m7x.js";import{f as Ue}from"./analyticsHelper-LPY3WkeX.js";import{t as Js}from"./getLocaleForTenant-CjEkOXZy.js";import"./lottie-BQDwpIDJ.js";import"./liveblocks-CxtxQte5.js";import"./recharts-C5pBg015.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./plaid-CiVnbkxs.js";import"./utils-CEFC9M68.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-Cs6trW6R.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-BUUZZuBG.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-CtyvtqmD.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-C8lRyPOF.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-DjjTCzCe.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-DzvU0X2a.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-Bi6qtFGx.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-CsdzM7DQ.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,19,22])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-N5IH8NJS.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-aZ6pdLcv.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-BcdOO99u.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-DBnPGXKs.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-DzvU0X2a.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-BRhTpo4o.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-CsdzM7DQ.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-zzKekdOK.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-C8nMZVtS.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-BcdOO99u.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-CKp9VtFU.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-Bjmke2zn.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-Cs6trW6R.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-BUUZZuBG.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-DjjTCzCe.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-CtyvtqmD.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-DBnPGXKs.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-aZ6pdLcv.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-C8lRyPOF.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-Bi6qtFGx.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-C-lRR8pY.js"),__vite__mapDeps([61,1,2,3,4,19,5,6,7,8,9,10,11,12,13,14]))),pn=l(()=>n(()=>import("./PerformanceRoutes-DoL3UdHs.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-N5IH8NJS.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-vGh4ydPL.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-CcAxScvl.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-BMeMMkhN.js"),__vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,48]))),y=l(()=>n(()=>import("./NotFoundScreen-DykxXNVn.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),Tn=l(()=>n(()=>import("./TaskListScreen-D_rI0d2T.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};