@zeniai/web-app-ui 4.14.30-dev → 4.14.31-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/dist/assets/{ACHDetailsPage-CQdbfxHV-BW88pIYa.js → ACHDetailsPage-CFhoboVe-JodbwPsQ.js} +2 -2
  2. package/dist/assets/{AIPerformancePage-jyNXVGMj-Bs4Wcfnt.js → AIPerformancePage-DB-fTWME-CgGQsnV1.js} +1 -1
  3. package/dist/assets/AccountInfoPage-pEEhPqOb-BzcKyQfW.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-eYEsv7ac-vCK7G4bh.js +149 -0
  5. package/dist/assets/{AccountLockedInfoModal-EbQpyRJx-DeA2eRRt.js → AccountLockedInfoModal-jYWr_8TD-q_Ikf2Tn.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CK1QV13E-BSUxm7rf.js → AccountReconDetailsDrawerPage-3Q0EPYhL-BH4of7uu.js} +2 -2
  7. package/dist/assets/{AccountRow-B3Sz6a-V-GlNhkavB.js → AccountRow-CdgvnPG8-Cz30EYLJ.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DJtz56-u-D5uyYQuY.js → AccountsPromoCardStack-DHo59LLN-SJuuNn3m.js} +13 -13
  9. package/dist/assets/{AddAddressForCardDrawer-BDtxj9h6-Xx-rQDHp.js → AddAddressForCardDrawer-BzO1FXUa-Fyg_NOS1.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-Czepun8f-MGSdB8OM.js → AddToWalletPage-BfXFbHjk-CMzYyYW2.js} +1 -1
  11. package/dist/assets/{AddressRoutes-CmvRhhab.js → AddressRoutes-B6KyTWyT.js} +1 -1
  12. package/dist/assets/{AddressScreen-Cb00RwYZ.js → AddressScreen-ZPcySSaO.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-DzAVDq_i-BP-WG6Wy.js → AgingReportsPage-C1hFq4KH-Zi5GTQ1z.js} +8 -8
  14. package/dist/assets/{AiCfoScreen-CZVtCrsQ.js → AiCfoScreen-C7jQo3LZ.js} +1 -1
  15. package/dist/assets/{AllUserItems-BEoRQT-v-9OnCgvS-.js → AllUserItems-B6pnKByY-z-llp8Ld.js} +5 -5
  16. package/dist/assets/{ApAgingDetailPage-55JdoIHh-kk28-9yG.js → ApAgingDetailPage-CxLVGnpY-BrZpRxc6.js} +8 -8
  17. package/dist/assets/{AppBasePage-CLye29uw-B08L49eb.js → AppBasePage-DiVxF606-DEIAJtmX.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-CDawrmfz-DqagnYqP.js → AppDrawerContent-B_EWsf8O-nCzxlMlY.js} +5 -5
  19. package/dist/assets/{ApprovalRulesSettingsPage-BHUZdWCO-tMTnXaFd.js → ApprovalRulesSettingsPage-HHjDp_NQ-Dk_su188.js} +1 -1
  20. package/dist/assets/{ArAgingChart-DeL9nNI7-Bj8y0fT6.js → ArAgingChart-Ba4A-i2N-DVKxnxLC.js} +4 -4
  21. package/dist/assets/{ArAgingDetailPage-CuG65EQs-CXt16x8B.js → ArAgingDetailPage-prgcvsS4-B6KvY1N_.js} +1 -1
  22. package/dist/assets/{AttachmentView-C5anq6-B-BkQi2I92.js → AttachmentView-SsWJw4A8-CiFA7Mtk.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-1PK_fwhP-BOcx7wZs.js → BalancesInsightWithToolTip-DE6gDjGA-CuriAdQu.js} +4 -4
  24. package/dist/assets/{BankAccountSection-BUJoSOk8-BG4ByPDH.js → BankAccountSection-B4jmT0lb-D2VaI5gJ.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-BQaoV2yQ-BLOJsai8.js → BankAccountWarningSection-Bz2itMx0-EQdFts4P.js} +1 -1
  26. package/dist/assets/{BankConnectionsSettingsPage-DRDS5xzS-CGYqJS-4.js → BankConnectionsSettingsPage-BcVk7bTt-CcJ2zW2K.js} +9 -9
  27. package/dist/assets/{BillDetailPage-CtVVaqTN-BwEQZwAf.js → BillDetailPage-Dkqmi4H1-BFTmBvTz.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-DwRul1Fq.js → BillPayApprovalRoutes-CB_WVdNG.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-6GHCsDkX-ClsaXk5H.js → BillPayApprovalRuleDetailPage-Blxlv3pa-NuWc5jPY.js} +4 -4
  30. package/dist/assets/{BillPayApprovalRulesPage-QKjq-qVP-DTJcefrH.js → BillPayApprovalRulesPage-B_QwggJS-Csxvsi8z.js} +1 -1
  31. package/dist/assets/{BillPayPromoPage-_n9uoXTN-DW34nsnh.js → BillPayPromoPage-Bx2AXpWe-DWku5Qhm.js} +11 -11
  32. package/dist/assets/{BillPayRoutes-D22Q6pQL.js → BillPayRoutes-9FjXpkgQ.js} +1 -1
  33. package/dist/assets/{BillPaySetUpPage-DNYX24VA-DLV9gKNt.js → BillPaySetUpPage-CM7_DkHC-B8MycdyA.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-Btv3yiNs-M_OusRvc.js → BillingSettingsPage-DM0OIfxa-B3DQmXkS.js} +3 -3
  35. package/dist/assets/{BillsBulkReviewDrawerPage-BiLLeGke-Bs5f4SMl.js → BillsBulkReviewDrawerPage-C3xmQ7wz-DgU-ZFK3.js} +1 -1
  36. package/dist/assets/{BoxItem-Dqp4SNlI-EUjyx5Zm.js → BoxItem-CvCo0wr6-QhJ82HMO.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPage-_8Wg_S5G-ChiNdD4I.js → BusinessVerificationPage-BAZmkR4a-DKUcO_Rf.js} +3 -3
  38. package/dist/assets/{BusinessVerificationPageScreen-B_00ICvM.js → BusinessVerificationPageScreen-BKBP5CJh.js} +1 -1
  39. package/dist/assets/{BusyIndication-BZLVwIo8-6s8wSi7T.js → BusyIndication-Cp8KWKB2-C3oZ8Ini.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-12zyW5qQ-c22fv1fM.js → CardNumberSubText-DHtSIcZZ-kHFdQu5S.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-B8-TDuv8-Dd6aEuJQ.js → CashbackDetailPage-CNS1FA6b-Clcw1gL0.js} +1 -1
  42. package/dist/assets/{ChargeCardDetailPage-Bdz5L2ko-CaBbXfBZ.js → ChargeCardDetailPage-C4NeG7IM-CcgpSGTB.js} +1 -1
  43. package/dist/assets/{ChargeCardListPage-EuJ1VXck-BU5r2hWM.js → ChargeCardListPage-DNYiWaEf-BZBAcxPe.js} +6 -6
  44. package/dist/assets/{ChargeCardListTable-SgjwYd8W-EVdaCbR4.js → ChargeCardListTable-DdnyzdFf-D27zGMD0.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-BC2DkmZT--xdPwk1t.js → ChargeCardPaymentHistoryPage-CXlqzaUt-Cw-q5fHs.js} +10 -10
  46. package/dist/assets/ChargeCardPromoPage-D4canPX9-B2gMZ94L.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-DV8TKacG.js → ChargeCardRoutes-B9ifIaPD.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-ByLoLZE_-DIekUpHc.js → ChargeCardSetupPage-BtikPFOq-B1Q5Q-k4.js} +2 -2
  49. package/dist/assets/{ChargeCardStatementsPage-C4XdqPO1-BSM3bO35.js → ChargeCardStatementsPage-RepWBbvJ-BeTG3xG9.js} +2 -2
  50. package/dist/assets/{CheckDepositDrawerPage-D5X61CKc-CyEf-jUu.js → CheckDepositDrawerPage-BCqg3irO-LJQj-9cr.js} +1 -1
  51. package/dist/assets/{CollapsableReportTable-D7zD4-h0-CdsTnLhf.js → CollapsableReportTable-gy7Ue_fk-xkuj86hA.js} +2 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-w86_5FXJ-CDmgqN3N.js → CompanyOfficerDetailsSection-BsCx7q-g-C5hfQprP.js} +11 -11
  53. package/dist/assets/{CompanyPassportCard-tpE1lXug-CLl-IbcU.js → CompanyPassportCard-BbUWOs1U-Dw1HMrsN.js} +6 -6
  54. package/dist/assets/{CompanyPassportPage-bND99CJN-D7hjvVvQ.js → CompanyPassportPage-BnP2oA1U-BahIQeuB.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-DR-zdvAJ.js → CompanyPassportScreen-CT9c7lvA.js} +1 -1
  56. package/dist/assets/{CompleteProfile-B5W07hcs-mOeGRg8M.js → CompleteProfile-TiRsm2Fm-fE1NUszo.js} +1 -1
  57. package/dist/assets/ConfettiBurst-D7J36hZf-CSVT9V2q.js +1 -0
  58. package/dist/assets/{ConnectionAuthScreen-D4VaoAIy.js → ConnectionAuthScreen-D6BkdM1l.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-bMF_z_bc.js → ConstrainedInnerElement-CgdnMeoA-vBI13ZbI.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-CrQh8JCh-BX5wTD-m.js → CreateOrEditVendorPage-Dihzr1D5-BUR2QFLa.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-BoVmLCHh-Blea7AvV.js → CreditCardPaymentDrawerPage-CZGzDuxC-BUIdND4_.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-D2azwi1T-CSrQI1j0.js → CurrencySelectField-BTAmIqPa-rlZjvsTh.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-DxuEGe6X-BPuiwcIL.js → CustomerOnboardingActivationPage-MVI7kqIh-JD8ZqQ1I.js} +3 -3
  64. package/dist/assets/CustomerOnboardingAuthScreen-DsZqZ3Im.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-DV3z4pR--zNlFTkjO.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DRGKainD-Y7JaILNu.js → CustomerOnboardingDetailPageSkeleton-CaI_0pCb-D_9R8ntI.js} +8 -8
  67. package/dist/assets/CustomerOnboardingNoStepsPage-CO_c2COV-CTf7zsp5.js +66 -0
  68. package/dist/assets/{CustomerOnboardingPage-BXZSl2im-DDrc-wX_.js → CustomerOnboardingPage-BF0vuYaJ-DB-M7FrJ.js} +16 -16
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-BJmYX0kI-C3qX-GBN.js → CustomerOnboardingProductSuitePage-BGFdLX1i-C8cOT0zx.js} +3 -3
  70. package/dist/assets/{CustomerOnboardingRoutes-DqfIHwc7.js → CustomerOnboardingRoutes-BiogvBuq.js} +1 -1
  71. package/dist/assets/{Dashboard-yhqyXPbZ-CPcltsfF.js → Dashboard-Qjedd4r--CRbsfODt.js} +26 -26
  72. package/dist/assets/{DashboardReportPage-BG4StCjY-CzFGaujV.js → DashboardReportPage-Deith_ON-D8fEi8Zc.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-Bawz4pw0.js → DashboardRoutes-BQeGUCAH.js} +1 -1
  74. package/dist/assets/DashboardSidebarBackgroundAnimation-C7DfUDio-C16c7XTp.js +12 -0
  75. package/dist/assets/{DefaultTenantHome-B10KVon4.js → DefaultTenantHome-DDgedZUJ.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-5ZEPnNxa-3AfijWCl.js → DepositAccTransactionItem-7kYotKov-QpJvWZ45.js} +7 -7
  77. package/dist/assets/{DepositAccTransactionListPage-BR8d0Kun-DVyGTLJU.js → DepositAccTransactionListPage-Bop4Uj5w-oeif2Id9.js} +3 -3
  78. package/dist/assets/{DomesticWireDetailScreen-CMEoUywc.js → DomesticWireDetailScreen-6HCK_7TE.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-wGIWvhgQ-CmjPpsLr.js → DomesticWireDetailsPage-_TyXsqEx-BYHoiTtM.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-SLvxfa6B-CQ7BxjF9.js → DownloadOverlay-Cmd727bN-C-PzxP5F.js} +14 -14
  81. package/dist/assets/{DrawerPage-CFdTV10k-BenpSUGv.js → DrawerPage-DmGwfnGp-soZmQNN_.js} +1 -1
  82. package/dist/assets/{DrawerScreen-B7BWNi51.js → DrawerScreen-C_1QezB2.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-C-Y62PJ0-BgijqRCf.js → EditPeoplePage-YyluIC6R-B0i1VKsb.js} +5 -5
  84. package/dist/assets/{EditReimbursementDetailPage-BYpXof8e-CdyZTm2g.js → EditReimbursementDetailPage-DeMid2Ko-B5ltV9Cy.js} +14 -14
  85. package/dist/assets/EntityDetailPage-DPTSSZdS-CPjJOO2E.js +18 -0
  86. package/dist/assets/{EntityDetailRoutes-nFrPna9t.js → EntityDetailRoutes--mZVfECz.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-B2uG3-Zh-DoF2hAYB.js → EntitySummarySection-5NbutA8l-DL6jpdFo.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-CrtNuarm-C8tGkYQU.js → ExpenseAutomationOverviewPage-CQ_3WluW-CCAAzH1q.js} +6 -6
  89. package/dist/assets/{ExpenseAutomationPage-CWPnIMSu-BUnHNcGe.js → ExpenseAutomationPage-VuU4acYd-BNMHy7wa.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-DxRmXEnL.js → ExpenseAutomationRoutes-DyeVLVvz.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-CsI_DUc6-BKAOKKa9.js → ExpressPayPage-DhoNmyC2-BM7D8t94.js} +10 -10
  92. package/dist/assets/{FeaturePreviewPage-B67a68N9-BPSn99tM.js → FeaturePreviewPage-GSwhPxgP-CknFQRpv.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-D_cOMPjM.js → FeaturePreviewScreen-DcXxWeeZ.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-CgjzMm02-DPMc3VYJ.js → FollowStepsSection-DaueHRo4-R5WhFSRV.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-CIfK-0rd-F3X4MQ4k.js → GlobalReviewListPage-DG7_1HOT-BY_P61_d.js} +1 -1
  96. package/dist/assets/{InformationCardStack-qKld10kr-IVC5wYc5.js → InformationCardStack-zc-BxR7F-Dc1qaC3e.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-Bbh77o6f-Dr_8r9pW.js → InsightsCardStack-DxCA5sFh-BcClR9fT.js} +5 -5
  98. package/dist/assets/{InsightsSection-DgfCOO4F-rd7xZxVI.js → InsightsSection-BdFG3j3R-D7JeFV31.js} +7 -7
  99. package/dist/assets/{IntegrationsSettingsPage-BRQFeOLt-2BecY83T.js → IntegrationsSettingsPage-CaiL3kqS-BK30afn3.js} +3 -3
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-DPemNncS-Datvi8oR.js → InternationalWireSwiftDetailsPage-BrQVSzeS-BpNTGybF.js} +1 -1
  101. package/dist/assets/{InternationalWireVerificationPage-BOxXfIY5-D1lMmBlP.js → InternationalWireVerificationPage-NaLnhW9C-xEbEY4G_.js} +10 -10
  102. package/dist/assets/{InviteFormPage-BbbPCdh--Cb0-_CQ6.js → InviteFormPage-fjqv2l7h-CN7vzCNz.js} +1 -1
  103. package/dist/assets/{InvitePageListView-DqfrAulo-BtCqgsIl.js → InvitePageListView-CQecQhxr-D7nG5RDJ.js} +1 -1
  104. package/dist/assets/{InvitePeoplePage-CgTpZp4M-CYe0nmg8.js → InvitePeoplePage-DAEBuOnk-etA_btSE.js} +1 -1
  105. package/dist/assets/{InvoiceUploadSection-DZOzTShz-BFwyUvOT.js → InvoiceUploadSection-58l6ePuH-DGEZcLC_.js} +8 -8
  106. package/dist/assets/{IssueChargeCardPage-x6dLcd-P-D7R8buXv.js → IssueChargeCardPage-Bkxqsgax-BZ-SKXi3.js} +8 -8
  107. package/dist/assets/{LabeledAddressValue-CY4Fn72d-VdKSkT_l.js → LabeledAddressValue-CZfFV97h-Bb57sB9z.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-D47ofJFV-CGqdgTnp.js → LabeledAddressValueField-D66XOhMx-DAzGEgKS.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-C_c8Rs-i-Cz1fNsx_.js → LabeledControlledCheckBoxField-BtnsqE4D-pO3EStbM.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-vRw9drBe-Bw1loTny.js → LabeledCountryMultiSelectField-kopByxLB-CVmx734o.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-CdF97ljM-DTrzefeb.js → LabeledCreatableSingleSelectField-B6An-cwq-ZwV4dPE-.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-Dn25Ru1C-CLM-i9xW.js → LabeledDocumentField-D_ZD8JTn-EgNCcbbj.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-C2sZjA-q-Bkuc_5w_.js → LabeledDropDownFormattedTextField-CJ7ncCzH-yHUhBReW.js} +1 -1
  114. package/dist/assets/{LabeledEmailInputField-DzAdekQn-BkQ7kdJx.js → LabeledEmailInputField-CSfzMDYO-Ccf6Bxv0.js} +1 -1
  115. package/dist/assets/{LabeledNameField-Dxx0xwMv-DBRkdNqp.js → LabeledNameField-DZJXGYR9-C9Z5T7ep.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-EO8TA_z_-C26qdLJU.js → LabeledSingleSelectField-D_LoOMiZ-CAsbCcep.js} +1 -1
  117. package/dist/assets/{LabeledText-Bo7B-LrF-DECCi3EJ.js → LabeledText-A1h_ionS-CcjmiFmI.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DD11_Map-ZtH1v-68.js → LabeledUserSingleSelectWithSubtitlesField-IYaUvqgY-EIyuSMIG.js} +4 -4
  119. package/dist/assets/{LabeledZeniRolesDropDownField-BJ99uBt1-DGvakh0f.js → LabeledZeniRolesDropDownField-DmynBXbJ-DglcXxDL.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-BiDoUKQW-xgKDBdnj.js → LinkJETransactionPage-D6-fL4a6-DlR8vjGO.js} +13 -13
  121. package/dist/assets/{LockCardPage-B1QOSByp-BfsUhZIZ.js → LockCardPage-BDlnh_zf-64lzFlF5.js} +10 -10
  122. package/dist/assets/{LowBalancePopup-Bl_PaIUx-yOClgIGf.js → LowBalancePopup-CBPl_udd-Nqllub28.js} +1 -1
  123. package/dist/assets/MagicLinkACHDetailsPage-eq8wlXQr-DwBTA9or.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-BcNOhJgL-M9e4wRPN.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-Df8XYlkg-BKUO0J46.js +1 -0
  126. package/dist/assets/{MagicLinkRoutes-B-WHuq25.js → MagicLinkRoutes-B4rSGEA5.js} +1 -1
  127. package/dist/assets/{MagicLinkSignInScreen-BBwmXYDm.js → MagicLinkSignInScreen-DL54w9kv.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-CuL-7CWN-C2vVBJ4S.js → MagicLinkSuccessPage-Cl461HWp-DrFI3SFX.js} +6 -6
  129. package/dist/assets/{MagicLinkTitleSection-RYhrN820-BbeWYlVu.js → MagicLinkTitleSection-DoIMYrRv-BmkYYs3S.js} +1 -1
  130. package/dist/assets/MailingDetailsSection-NdwWGQ88-M0GYvrro.js +21 -0
  131. package/dist/assets/{MobileAppDrawer-CTcTm5tx.js → MobileAppDrawer-D4KAg1N8.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-5MZl4h9B-BympoCwa.js → MoreMenuButton-CkkW1atP-BhjeSlOV.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CBw6kNsm-DlddyW1w.js → MyBankConnectionsSettingsPage-BU6TBzI1-D2Qaudqr.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-BC4YjZtP-DfpXnRCt.js → MyPendingActivationChargeCardListPage-DcunCDU6-NjjjBd7F.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-DZ5M2BUN-CQ7zk2gg.js → MyProfileSettingsPage-DF7ahyXE-BjXkIrz2.js} +1 -1
  136. package/dist/assets/{NavBarWithPicker-C6FiaLu5-BVvTIBUE.js → NavBarWithPicker-D2v1fhLS-CH1wdNXM.js} +1 -1
  137. package/dist/assets/{NavigationArrow-BnAgR0wH-BYYktF7B.js → NavigationArrow-CWUL-6kN-DVve579d.js} +1 -1
  138. package/dist/assets/{NavigationDots-WUDG_g8M-CSwlLBTM.js → NavigationDots-c-XSrFzE-eujVKwdH.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-gAsCusVw-CA6lhup4.js → NewGlobalMerchantPage-FGEO68I8-XZyzhNzP.js} +1 -1
  140. package/dist/assets/{NoDataChart-BBYUjdKn-CaszePO0.js → NoDataChart-DJhSgtLu-BSak9fMr.js} +1 -1
  141. package/dist/assets/{NoDataTable-D3750d25-CC_2gGkK.js → NoDataTable-BZiwo2qK-Cb8q0aH6.js} +1 -1
  142. package/dist/assets/{NotFoundPage-C4D8Rn9E--AJk-xer.js → NotFoundPage-BN5unYX8-CqJlv_oy.js} +3 -3
  143. package/dist/assets/{NotFoundScreen-SRDW4_mE.js → NotFoundScreen-DxyQKnff.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-BSrkx0LD.js → NotificationRoutes-DqG-dvkw.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-CD-t91ia-DJoX_UtT.js → NotificationSettingsPage-d8kHDj0M-Beqgksyi.js} +1 -1
  146. package/dist/assets/{NotificationsListConfig-C7JSE-eQ-DyT-ZhYk.js → NotificationsListConfig-ThKLok_w-B2H6cGPA.js} +1 -1
  147. package/dist/assets/{NotificationsPage-Be1v8niA-BlgDo9nE.js → NotificationsPage-Uvu6XESA-B1Rgn8VW.js} +1 -1
  148. package/dist/assets/{OpExByVendorPage-D1f1lQbs-BnyzfFJz.js → OpExByVendorPage-QyqRkD2_-D5R40Gs5.js} +5 -5
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-DTorHW75.js → OverlayContainerPage-BG9y5C0t-C7rxXRm5.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-DIYb7BWp-B3vKwRhN.js → PandLWithForecastPage-DJ2v5qbE-BEs_yDo8.js} +2 -2
  151. package/dist/assets/{PandLWithForecastRoutes-CsL0r0I3.js → PandLWithForecastRoutes-CRImnf0E.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-tGkjxbjY-CHrQD7Oe.js → PaymentAccountSetupBillingAddressSection-q5z8XZFC-DgyJWqIO.js} +6 -6
  153. package/dist/assets/{PeoplePage-xwAOX4Jk-BnzId5aB.js → PeoplePage-C5ZdpVyR-DYtjpv4S.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-D-yY-A49.js → PeopleRoutes-BODLG-b6.js} +1 -1
  155. package/dist/assets/{PerformanceRoutes-DUxeAB_T.js → PerformanceRoutes-BqLOjKSO.js} +1 -1
  156. package/dist/assets/{Preview-k4ohm46R.js → Preview-C2UYzTeJ.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-OHbYasaa-Bps9QCYO.js → ProductsCarousel-CXjLTOLy-BLUY71s0.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-B_0dccCZ-BeKRkhdX.js → PromoBaseCards-CN9uZfG4-BbNgX9Bb.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-5ItNvdCA-D1LNYclF.js → QBOConnectionDialog-CXSi1Pd9-dALyjXGw.js} +2 -2
  160. package/dist/assets/{QBOConnectionScreen-BDwso3KZ.js → QBOConnectionScreen-Ac9DU04j.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-CHZgQppe-Fu_QXCEh.js → QBOSetupSection-BrtLMvEP-DHfwqwJo.js} +3 -3
  162. package/dist/assets/{ReferralListScreen-DPkRtA1r.js → ReferralListScreen-BaUv0jQW.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRoutes-DyX9YlA9.js → ReimbursementApprovalRoutes-B3As-zjk.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CqZT111l-Th1QLQg3.js → ReimbursementApprovalRuleDetailPage-CS1BQ7pL-DnepdUba.js} +6 -6
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BR6Wdj2J.js → ReimbursementApprovalRuleDetailScreen-gUYecGxU.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BzTe2nqd-DFHyb7gY.js → ReimbursementApprovalRulesPage-aLRkhkZB-BEmJZKcM.js} +1 -1
  167. package/dist/assets/{ReimbursementDetailPage-DM650uCR-BZojPp4W.js → ReimbursementDetailPage-Dr5BTvEq-mnlxt9h1.js} +7 -7
  168. package/dist/assets/{ReimbursementPromoPage-CitTg9s4-C6Ht-4dW.js → ReimbursementPromoPage-C5Z0mVhQ-nERw0M4a.js} +10 -10
  169. package/dist/assets/{ReimbursementRoutes-C4Yz_jbS.js → ReimbursementRoutes-vASJxFJ_.js} +1 -1
  170. package/dist/assets/{ReimbursementSetUpPage-qphyaCoX-CvNz9jXQ.js → ReimbursementSetUpPage-CXhOBErm-CR6Shq7r.js} +5 -5
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CCJvQKip-BQLPbz53.js → ReimbursementsBulkReviewDrawerPage-CA0n0mau-Dwnq8e4l.js} +1 -1
  172. package/dist/assets/{ReloadCard-DMNbI6QE-C1j_tgy-.js → ReloadCard-Bjp8ygC2-fExG7Dij.js} +1 -1
  173. package/dist/assets/{ReportTableViewSelector-CUG4hVI9-Bjuyu4DH.js → ReportTableViewSelector-DTk1dNWC-tS3w4hoK.js} +5 -5
  174. package/dist/assets/{ReportsPage-nuM-ub1p-CKOT47VZ.js → ReportsPage-DrjOGopt-CEvm9-2-.js} +4 -4
  175. package/dist/assets/{ReportsRoutes-DohAZqsL.js → ReportsRoutes-DYYeCY0N.js} +1 -1
  176. package/dist/assets/{RevenueChart-BL5Wb2UT-JQVA4c7e.js → RevenueChart-CqGvXDr4-BYM89H6k.js} +1 -1
  177. package/dist/assets/{ReviewDetailsPage-CUolLJ6s-I5bNk9-1.js → ReviewDetailsPage-CWBP7FBN-D5XTlGGP.js} +17 -17
  178. package/dist/assets/{ReviewOverlay-A1OYNSqG-DCeKL3J7.js → ReviewOverlay-Cxkp85Kw-DWi1LLwl.js} +1 -1
  179. package/dist/assets/{RewardsRoutes-BjB7FD9l.js → RewardsRoutes-BcQjimjg.js} +1 -1
  180. package/dist/assets/{RoleWithToolTip-VOllzDDB-BXr_ucO6.js → RoleWithToolTip-CqLxmtj6-BxFgYmxI.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-By3U1RYU-Dut2stb8.js → ScheduleDetailsFixedAssetsPage-CYvlB3Nf-BjmGalLA.js} +3 -3
  182. package/dist/assets/{ScheduleDetailsPage-ButJHPUw-XhuUVDsI.js → ScheduleDetailsPage-CZXJ15tN-Cvz9LjHh.js} +1 -1
  183. package/dist/assets/{ScheduleSequenceTable-Dv831gVJ-OIQZXWKl.js → ScheduleSequenceTable-DNPID_7F-Dpy7XGsr.js} +14 -14
  184. package/dist/assets/{ScreenRoutes-B6WQ9uqs.js → ScreenRoutes-DMiG7sGl.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-BcNG0nDh-C2x0keC_.js → SetUpAccountSection-_WPR-q2V-D1in60I8.js} +1 -1
  186. package/dist/assets/{SettingsRoutes-U8aLQkxi.js → SettingsRoutes-Cq0IT0xM.js} +1 -1
  187. package/dist/assets/{SetupPagesScreen-KLzrKq5d.js → SetupPagesScreen-By_64UnM.js} +1 -1
  188. package/dist/assets/{SignIn-D80UITQm-CVsAto0V.js → SignIn-CDEsZw_T-CdZG3KKx.js} +7 -7
  189. package/dist/assets/{SignInScreen-g1CD9jiJ.js → SignInScreen-BbMIUMVO.js} +1 -1
  190. package/dist/assets/{SignOutScreen-Cclrjb6Y.js → SignOutScreen-D0CN7EZM.js} +1 -1
  191. package/dist/assets/{SpendManagementListViewPage-DSG6Son_-3Woa8ZKL.js → SpendManagementListViewPage-MOCWuROI-B6XDQZbP.js} +8 -8
  192. package/dist/assets/{SpendManagementPerTabPage-DiSu0RS1-Dj2U_5YO.js → SpendManagementPerTabPage-BeK0SCeE-uu94FLdi.js} +1 -1
  193. package/dist/assets/{SpendManagementSection-BXU3RGG8-BwEQ7fN8.js → SpendManagementSection-DZFPfKNi-a6NNMz0d.js} +14 -14
  194. package/dist/assets/StatementItem-DjvU5wiI-BbvkEOCR.js +31 -0
  195. package/dist/assets/{StatementsPage-Ck1xzA0w-CdWUN6DK.js → StatementsPage-DYLp_e7W-DQJFRbex.js} +1 -1
  196. package/dist/assets/{StatusSwitcher-_Cs3CzJl-D1XlTHt5.js → StatusSwitcher-jxaonB4S-BRWCrppB.js} +1 -1
  197. package/dist/assets/{SubTabSwitcher-D3ltE_yc-Ry1ed6uf.js → SubTabSwitcher-CudjNlsi-B0ZvqQ02.js} +1 -1
  198. package/dist/assets/SuccessAnimation-DE_x1Zz_-CSRw6QzL.js +13 -0
  199. package/dist/assets/SummaryCard-DPOhBmkr-Bkvd2_eX.js +1 -0
  200. package/dist/assets/{TaskDetailPage-CJKga1vr-ciDskCCR.js → TaskDetailPage-CXexRKAY-PJYd8Hc8.js} +1 -1
  201. package/dist/assets/{TaskListScreen-ksTObC06.js → TaskListScreen-D5r5oVZW.js} +1 -1
  202. package/dist/assets/{TaskManagementPage-BMwMSG1j-D-VvypFm.js → TaskManagementPage-CTMoHv0R-DqoYVk-e.js} +28 -28
  203. package/dist/assets/{TaskRoutes-C_cjp_9o.js → TaskRoutes-ByOGwdlB.js} +1 -1
  204. package/dist/assets/{TimeRangeSwitcher-B1Wx03tG-Br6TSwpo.js → TimeRangeSwitcher-SqY2MHGs-vaeYYQAs.js} +2 -2
  205. package/dist/assets/{TimeframeSwitcher-Dmtsdwi9-Ce3iuH6w.js → TimeframeSwitcher-BlJ2fuHy-C0bwk8vS.js} +1 -1
  206. package/dist/assets/{TimeframeSwitcherWithToggle-P5CfgTUd-DXOPf3Bj.js → TimeframeSwitcherWithToggle-Dgc1odUH-6AO25YrU.js} +2 -2
  207. package/dist/assets/{TopExCard-DQkr9Xhh-CEMSG53J.js → TopExCard-CG8YLsYe-Dhi0dyPE.js} +1 -1
  208. package/dist/assets/{TopExDetailPage-5Di6WUfV-hilBOr7-.js → TopExDetailPage-TvYCbzSP-CwBViHGc.js} +5 -5
  209. package/dist/assets/{TransactionActivityLogPage-R9LoW4DL-C_Mhlr8m.js → TransactionActivityLogPage-BL3vEAdU-CS7vD3qG.js} +1 -1
  210. package/dist/assets/{TransactionDetailPage-B-blHtkn-CbeGtCIa.js → TransactionDetailPage-DUouBL0o-BaXoqvey.js} +32 -32
  211. package/dist/assets/{TransactionDetailRoutes-CG9Ya3UI.js → TransactionDetailRoutes-B-UBtWLp.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-DG1rRYuu.js → TransactionDetailScreen-B7XWRVbF.js} +1 -1
  213. package/dist/assets/{TransactionList-FQvTXSzy-oI0UZGJM.js → TransactionList-B16NONME-CRFiM4VM.js} +9 -9
  214. package/dist/assets/{TransactionListBig-CNDw7zRw-DTLpPxaS.js → TransactionListBig-CItPbTRV-UNSverIa.js} +1 -1
  215. package/dist/assets/TransactionListPage-DNecYY8M-BHlckINI.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-BbWNwfVS.js → TransactionListRoutes-CMu9kV3q.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-Ch2UUF1f-DGdjSa3g.js → TransactionVendorDetailPage-DpqisXN8-D2bHcxtn.js} +1 -1
  218. package/dist/assets/{TransferDrawerPage-C1Ly_xKj-DX3atlS9.js → TransferDrawerPage-Dsmbswu0-uDwjyCTF.js} +21 -21
  219. package/dist/assets/{TreasuryOverviewPage-Zt5w8zfp-CedvlZd9.js → TreasuryOverviewPage-BcRpcYmB-OKQJLbcE.js} +21 -21
  220. package/dist/assets/{TreasuryPromoPage-BsP73kf7-etf9xlFS.js → TreasuryPromoPage-DOO_OMRa-8BGrxptq.js} +14 -14
  221. package/dist/assets/{TreasuryRoutes-CuQ3uJ15.js → TreasuryRoutes-Cb-myn_k.js} +1 -1
  222. package/dist/assets/TreasuryStatementsPage-A_U7bEy5-CYr3tH5Z.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-tHkQvX2V-pYxXn6xj.js → TreasuryTaxLetterPage-BsJn-BgX-D1G4s_HP.js} +3 -3
  224. package/dist/assets/TrendChart-GMMat-NG-DkIjx5iX.js +16 -0
  225. package/dist/assets/{TrendWithTransactions-DP1jZL1i-2bOe0VtV.js → TrendWithTransactions-CrA4opNV-BCS_tNQW.js} +7 -7
  226. package/dist/assets/{UncategorizedAccountsMappingPage-4mHyt2P6-BwcucbSK.js → UncategorizedAccountsMappingPage-CrzbFGOi-7c9nQkHm.js} +1 -1
  227. package/dist/assets/{UnitIntegrationPage-BymmWe1G-DFsBuiFb.js → UnitIntegrationPage-XZY6zJa7-Bog6bLZs.js} +3 -3
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-DUO2ZoU--ozi0LNFT.js → UploadAdditionalDocumentOverlay-eqwSLigx-Cfv8NRXy.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-8kpMx5RI-CGazITGN.js → Vendor2FAPopup-BHDivuPB-CB8oiip3.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-DJ4Crnr0-ChbQ_fot.js +1 -0
  231. package/dist/assets/{VendorDetailPage-C-JJfR0u-DCJ_f7dN.js → VendorDetailPage-DEu-yS8w-BHxBRvla.js} +7 -7
  232. package/dist/assets/VendorDomesticWireDetailsPage-WFcOmpiN-0MxyPK7N.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-B4vFgSwb-DDTykyPn.js → VendorFiling1099EditablePage-C461SzO0-Cw1duzzR.js} +6 -6
  234. package/dist/assets/{VendorFirstReviewPage-CUwdrbjH-DPvTVvHI.js → VendorFirstReviewPage-klbCHS04-yDjeltgT.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireDetailsPage-BzP1zqhw-CAXXQP5N.js → VendorInternationalWireDetailsPage-DY0V-VbO-BJcPP-gp.js} +1 -1
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B8sx02I_-CFJY5gem.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-Drue-Lvz-DQRReXtk.js → VendorsAccountsSection-Cqcr-ArD-BIHA7sqx.js} +1 -1
  238. package/dist/assets/{VendorsRoutes-Buw6G1yr.js → VendorsRoutes-CgJOnYMS.js} +1 -1
  239. package/dist/assets/{VerifyDevice-B_NNzkjT-BkggAu3P.js → VerifyDevice-Dhu5iywf-CpE-kgrB.js} +9 -9
  240. package/dist/assets/{VideoPlayer-Bc4tAd79-Crbsq9LQ.js → VideoPlayer-ZGjx_Hp7-BHgQYkml.js} +1 -1
  241. package/dist/assets/VideoPopup-R3u0N_if-SR7jlWFi.js +31 -0
  242. package/dist/assets/{WiseConfirmationScreen-CEIT9jMF.js → WiseConfirmationScreen-BTkxegx5.js} +1 -1
  243. package/dist/assets/{ZeniAccountDetailPage-BW6G2voE-DBU5fQds.js → ZeniAccountDetailPage-DQB7sXU9-ZmSVhLSw.js} +12 -12
  244. package/dist/assets/{ZeniAccountListViewPage-gNszI2XV-BLZmP_oZ.js → ZeniAccountListViewPage-BwXKgf6g-Ctizh7he.js} +1 -1
  245. package/dist/assets/{ZeniAccountNavBarPieces-BP1IxZ18-ABeEpX-y.js → ZeniAccountNavBarPieces-CHUTFAWG-BmLRxXwk.js} +4 -4
  246. package/dist/assets/{ZeniAccountPromoPage-LsZxIdX9-D62PvtLZ.js → ZeniAccountPromoPage-BkfJuMNV-Ckl9m4pN.js} +1 -1
  247. package/dist/assets/{ZeniAccountRoutes-Bp_1In61.js → ZeniAccountRoutes-D71bZRux.js} +1 -1
  248. package/dist/assets/{ZeniAccountSetupPage-BExQA9Cz-D04LOVK1.js → ZeniAccountSetupPage-C3drM4Zs-B_sQz9qJ.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-6LzJoR1o.js → ZeniAccountStatementScreen-BI6AQKJr.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-5wP6sb3W-CKgtWCng.js → ZeniAvatar-C38T0-5--BSN8GGLN.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-CMjFbDBQ-So_Gi_8l.js → ZeniCopyright-CznSgVJF-B8RRSTgM.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-C_YQpGe--CXBBhIwN.js → ZeniDatePicker-Bw9RlgoL-BmT27weB.js} +1 -1
  253. package/dist/assets/{ZeniTransferAmountSlider-CIu35Xz9-BCHS6-b-.js → ZeniTransferAmountSlider-C77DEl-C-CruP3RMa.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-Ctd7yuH3.js → accountMappingHelper-B1SwIfFo.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-q_ZatOIu.js → add-to-wallet-DgdBD8_G-2vbkyqzY.js} +1 -1
  256. package/dist/assets/{analytics-Ci5SIN4_.js → analytics-Qgv3Fhaa.js} +1 -1
  257. package/dist/assets/{analyticsHelper-CG-L3dO7-WIHh4rd-.js → analyticsHelper-Bh8o1v3y-DbxZaMDt.js} +1 -1
  258. package/dist/assets/{analyticsHelper-CBcY8lmv.js → analyticsHelper-BtB7CtC3.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-BXAmISmi.js → arrow-south-east-round-PEovUgvH-CHgaZ-yo.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-Qtr813uy.js → auto-transfer-rule-mbafm5D3-BdBsn5Ol.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-lVrrjTFE.js → avatar-Dz7aEm3d-CxU8IzEu.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-a5lcVCZG.js → bank-letter-BOcVjN6J-DhC6VHDB.js} +1 -1
  263. package/dist/assets/{calculateSize-CAxK0dN_-6AyeRPo8.js → calculateSize-QoQyn_Ku-BQL_mWcG.js} +1 -1
  264. package/dist/assets/{chartTypes-_AEkJ5Cg-CVupoc41.js → chartTypes-C14YY2Rq--XZc2xV6.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-CBVPxBka.js → clock-CJkylEKt-BBrb7jeK.js} +1 -1
  266. package/dist/assets/common-Cu5K0AJk-Cxd55kqL.js +1 -0
  267. package/dist/assets/{commonDimensions-_Dpm4Anv-BHT-EeW2.js → commonDimensions-CVpc-NCw-CA0m656N.js} +1 -1
  268. package/dist/assets/{commonTypes-C64XobC6-BTobasZR.js → commonTypes-Ec-PxfpT-DzRDGsuT.js} +1 -1
  269. package/dist/assets/{core-oEkj6b51.js → core-CaikJZHD.js} +1 -1
  270. package/dist/assets/{dash.all.min-DZu0W7MW.js → dash.all.min-CteFsaah.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-AFO0vA4L.js → decodeURIComponentSafe-DcEFJStp.js} +1 -1
  272. package/dist/assets/{dnd-DwLm2ZWc.js → dnd-CzsffKNn.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-BxzwYsJa.js → dollar-round-D18u7nlm-BF4Thvjs.js} +1 -1
  274. package/dist/assets/{downloadPdf-BAZhe2iR-C4ju3Lqh.js → downloadPdf-BuPJ6cfr-Bn04BzVs.js} +1 -1
  275. package/dist/assets/{empty-fwRWXj2G.js → empty-B5B-FKq1.js} +1 -1
  276. package/dist/assets/{empty-CpgB6ACX.js → empty-CTO6rJhq.js} +1 -1
  277. package/dist/assets/{epic-qeTSmk29.js → epic-DtTDCbBB.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-Cn5LR_-W.js → filter-cZIFUNvj-CWbeOwgA.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-DZi5Q22y.js → getLocaleForTenant-dwEXf4rX.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-CByaMYJG.js → gift-box-Cmt9OgIZ-BfzCBGHZ.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-bzI3_a8w.js → graphic-no-data-l-DU4J8fDt-DEuKmvBU.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CaA33M1d.js → graphic-no-data-net-burn-l-CzmycA0m-CIA_wKU3.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-BxWewJRH.js → handshake-BPg58FML-Z_I5plJl.js} +1 -1
  284. package/dist/assets/{helper-D3UIpXq7-DCH1HBMI.js → helper-AgH8nJln-BDBxe9FK.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-Dt5l5kWs.js → hyperlink-DQyCeXx2-Bwqrw7ES.js} +1 -1
  286. package/dist/assets/{index-Cpbn6-TN.js → index-B7wRNic7.js} +1 -1
  287. package/dist/assets/{index-DRNExedw.js → index-B9eknY8q.js} +1 -1
  288. package/dist/assets/{index-B5c5iTId.js → index-B9myuWEH.js} +1 -1
  289. package/dist/assets/{index-BE_133so.js → index-BL34svil.js} +1 -1
  290. package/dist/assets/{index-CjBlNHKF.js → index-CLf01Vy8.js} +1 -1
  291. package/dist/assets/{index-BHAcVHeH.js → index-CuxRoVvZ.js} +2726 -2726
  292. package/dist/assets/{lexical-BLFyyXBr.js → lexical-CXNTSpM4.js} +1 -1
  293. package/dist/assets/{liveblocks-Ia5FU_Xu.js → liveblocks--AdozwCz.js} +1 -1
  294. package/dist/assets/{lottie-DEK510sX.js → lottie-D86WIi_0.js} +1 -1
  295. package/dist/assets/{mapLoadingInProgressToTreeNode-C_DjhqLk-Ct7OsbEi.js → mapLoadingInProgressToTreeNode-DTyQHWMc-tj_AEx0m.js} +1 -1
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B_J7hTEH.js → mapSectionWithAcOnlyToTreeNode-D7pjBGp6-bV4CDhWS.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-Cd4FCXAf-9PB61B4X.js +1 -0
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode--FHVcIix-D7muHBWz.js → mapTimeframeBalancesToTreeNode-Drhl_lnP-DCqw81Fp.js} +1 -1
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-UsawmMLa-CPc-fd5T.js +1 -0
  300. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-DMQQGP6s.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-BaY2mTy_.js} +1 -1
  301. package/dist/assets/{media-player-uto_Jl5G.js → media-player-OnsEq_AY.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-BmcWx6In.js → money-2cg1MuG4-CfgKOIyt.js} +1 -1
  303. package/dist/assets/{mui-Cni6P-fz.js → mui-G2MlMTlr.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-B9qcUnuN.js → page-detail-CWX5S47F-CWJ8fnGp.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-ZSqDN0WI.js → page-summary-D7_VQHwN-CaK_VLEF.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-BCo5ICo2.js → panelSelectedMixin-Cddsb26L-XfdQwEMM.js} +1 -1
  307. package/dist/assets/{pathToGoBack-BpMzEQ5A.js → pathToGoBack-Dh6AhADv.js} +1 -1
  308. package/dist/assets/{pdf-CTJ16aEe.js → pdf-DwfifS04.js} +3 -3
  309. package/dist/assets/{pdf-lib-BZoHbIry.js → pdf-lib-CuGtb6jg.js} +1 -1
  310. package/dist/assets/{plaid-B2vW8NaN.js → plaid-CcxzSXZd.js} +1 -1
  311. package/dist/assets/{pusher-DFtcQaPW.js → pusher-BNSVRSP_.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh--JwnmKdf.js → radio-default-CiSgisfh-CF7OSKL1.js} +1 -1
  313. package/dist/assets/{react-C70tWLg5.js → react-BEcxr4nX.js} +1 -1
  314. package/dist/assets/{react-cn6O__9s.js → react-BUDcsgZo.js} +1 -1
  315. package/dist/assets/{react-DZ1_qQub.js → react-C0Whd_8a.js} +1 -1
  316. package/dist/assets/{react-B0u9lmTz.js → react-Chqt_ss-.js} +1 -1
  317. package/dist/assets/{react-DKkpOD3_.js → react-Cobj-_wp.js} +3 -3
  318. package/dist/assets/{react-Cohr3oKl.js → react-DOvM9ag3.js} +1 -1
  319. package/dist/assets/{react-BxE_BeY2.js → react-V3TERlfD.js} +1 -1
  320. package/dist/assets/{react-jjkPSe6Z.js → react-WpjiT9jD.js} +1 -1
  321. package/dist/assets/{recharts-LlOU9oLm.js → recharts-3tylCZU1.js} +1 -1
  322. package/dist/assets/{routePaths-WWdcktge.js → routePaths-CkO80-xL.js} +1 -1
  323. package/dist/assets/{sentry-CY6wsJT-.js → sentry-Cm8I7E9J.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-CGZqPLdL.js → shield-DOlUxcFf-tt-dORuJ.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-DAZsY_K2.js → spend-limit-D6SyboD4-d-tIWfnn.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-wh35N3no-D_L2t0iR.js +1 -0
  327. package/dist/assets/{toChartData-BODe4y2V-CHAJ4Jnp.js → toChartData-G5y-N82I-CpDZEMyX.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-B7lzeBRq.js → transaction-placeholder-CpOwZAMG-CXIruzlf.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-okXLDguZ.js → undo-b_3XZ5CX-5VNbpbUY.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-BcwMx3a4.js → unlock-BPWn2I5L-8UNw8MhM.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BLqHMVJK.js → upload-reimbursement-receipt-O2N8vcO7-BhCuFTsT.js} +1 -1
  332. package/dist/assets/{uploadAttachment-Dbumcc_g-LXlwbhth.js → uploadAttachment-RbkIBMGO-DWkpV7gc.js} +1 -1
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-FU2oOS1s.js → uploadReceipts-CIgkuVpu-BxCHb2mc.js} +1 -1
  334. package/dist/assets/{url-Cv3aJ--T.js → url-BMzuxPwA.js} +1 -1
  335. package/dist/assets/{url-B5kkbwRv.js → url-CvhemPUG.js} +1 -1
  336. package/dist/assets/{useDeviceId-BWAR3Wtl.js → useDeviceId-BzlY8kf5.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-DTIHWJqF.js → useInitialThreadRequest-CtiCksTW.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-BX_5sahW.js → useLongPress-GCK2COYQ-BgmUYGJ7.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-CuU9mWQv.js → usp-line-BBd1wKwW-BqojtCEK.js} +1 -1
  340. package/dist/assets/{utils-ChLimP28.js → utils-BhOlvYO8.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-X05Jc0ej.js → withTransactionSidePanel-DXYKCsTM.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-cFF_NqwA.js → zeni-epic-state-lC5X-sam.js} +7 -7
  343. package/dist/assets/{zeni-icon-only-jOM3nMPU.js → zeni-icon-only-DZ6h0uLr.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +3 -3
  346. package/dist/assets/AccountInfoPage-CiPtog_o-B4btRIXv.js +0 -18
  347. package/dist/assets/AccountInfoPageContent-Bj0kaRHv-CjMeZGo_.js +0 -149
  348. package/dist/assets/ChargeCardPromoPage-C-z0xtuN-qFHF_adM.js +0 -222
  349. package/dist/assets/ConfettiBurst-C0DFgWJj-DC0n_rE6.js +0 -1
  350. package/dist/assets/CustomerOnboardingAuthScreen-DLH-rYdF.js +0 -1
  351. package/dist/assets/CustomerOnboardingContainerPage-DS0-65s7-CeH0I7wN.js +0 -1
  352. package/dist/assets/CustomerOnboardingNoStepsPage-C--jDBQq-BgvTeh9S.js +0 -66
  353. package/dist/assets/DashboardSidebarBackgroundAnimation-DsWKmIXY-BuOmk2Nk.js +0 -12
  354. package/dist/assets/EntityDetailPage-CgDHg6g5-B_vQblwz.js +0 -18
  355. package/dist/assets/MagicLinkACHDetailsPage-l76_Y3sO-DBz5GRKZ.js +0 -1
  356. package/dist/assets/MagicLinkDomesticWireDetailsPage-D_z_Q-jz-DriIOIxl.js +0 -1
  357. package/dist/assets/MagicLinkInternationalWireDetailsPage-D276lsq_-ColrMYZA.js +0 -1
  358. package/dist/assets/MailingDetailsSection-D9_I-DTk-Cdb1WRS_.js +0 -21
  359. package/dist/assets/StatementItem-B1M65xN--D_j2q7nS.js +0 -31
  360. package/dist/assets/SuccessAnimation-RuQd1S4B-C9QgxngQ.js +0 -13
  361. package/dist/assets/SummaryCard-buadhnmc-COTvxgGf.js +0 -1
  362. package/dist/assets/TransactionListPage-BkZLtwmQ-DzH0F7Wk.js +0 -35
  363. package/dist/assets/TreasuryStatementsPage-DhXESeOi-uJElEPeD.js +0 -58
  364. package/dist/assets/TrendChart-B7Pox_TQ-7BkibFBY.js +0 -16
  365. package/dist/assets/VendorACHDetailsPage-BODHiiUQ-DmAQiimf.js +0 -1
  366. package/dist/assets/VendorDomesticWireDetailsPage-CVfEcUFJ-8ddL7pEj.js +0 -1
  367. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dgz0TPoZ-CYv9JR1l.js +0 -1
  368. package/dist/assets/VideoPopup-BYo5bzpU-BthyvsgQ.js +0 -31
  369. package/dist/assets/common-B74Sb4iG-Ba1Dna3Q.js +0 -1
  370. package/dist/assets/mapSpacerToTreeNode-Dq4CasLR-BKZfs44u.js +0 -1
  371. package/dist/assets/mapTimeframeBalancesToTreeNode-BP0iF3Of-BZXMdjjY.js +0 -1
  372. package/dist/assets/toCOABalancesWithID-CuxwOBs0-D4IOrabU.js +0 -1
@@ -1,4 +1,4 @@
1
- import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt,b as I,a$ as ft,aM as ut,a_ as gt,be as bt,o as C,ab as _t,L as yt,bf as xt,x as Y,bg as wt,m as L,k as ye,J as z,bh as xe,C as ue,bi as $e,S as Ie,bj as St,ad as Ct,l as Fe,r as Rt,b7 as Ot}from"./index-BHAcVHeH.js";import{a as v,b as Pe}from"./sentry-CY6wsJT-.js";import{n as b}from"./mui-Cni6P-fz.js";import{_ as vt}from"./liveblocks-Ia5FU_Xu.js";import{bt as we,F6 as Tt,Ff as At,Fg as Bt,Fh as K,Fi as kt,Fj as Lt,Fk as jt,Fl as Nt,Fm as Mt,Fn as re,Fo as le,Fp as Se}from"./zeni-epic-state-cFF_NqwA.js";import{j as $t,z as ce}from"./mapTimeframeBalancesToTreeNode-BP0iF3Of-BZXMdjjY.js";import{m as Q,l as de}from"./analyticsHelper-CG-L3dO7-WIHh4rd-.js";import{b as It}from"./ReportTableViewSelector-CUG4hVI9-Bjuyu4DH.js";import{S as oe,y as Ft,M as Pt,$ as Et,v as Vt}from"./TimeRangeSwitcher-B1Wx03tG-Br6TSwpo.js";import{X as zt}from"./TimeframeSwitcherWithToggle-P5CfgTUd-DXOPf3Bj.js";import{DownloadOverlayButton as Dt}from"./DownloadOverlay-SLvxfa6B-CQ7BxjF9.js";import{Z as Ut,n as Yt,t as P,j as Ce}from"./CollapsableReportTable-D7zD4-h0-CdsTnLhf.js";import{D as Re,T as Oe,C as te,L as Wt,g as Ee}from"./mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B_J7hTEH.js";import{d as Gt,l as Ht}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-DMQQGP6s.js";import{d as Zt}from"./mapLoadingInProgressToTreeNode-C_DjhqLk-Ct7OsbEi.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./recharts-LlOU9oLm.js";import"./utils-ChLimP28.js";import"./filter-cZIFUNvj-Cn5LR_-W.js";import"./TimeframeSwitcher-Dmtsdwi9-Ce3iuH6w.js";import"./page-detail-CWX5S47F-B9qcUnuN.js";import"./page-summary-D7_VQHwN-ZSqDN0WI.js";import"./AccountRow-B3Sz6a-V-GlNhkavB.js";import"./clock-CJkylEKt-CBVPxBka.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="25eea7ae-d5d6-4045-9cd9-2f6775057b23",e._sentryDebugIdIdentifier="sentry-dbid-25eea7ae-d5d6-4045-9cd9-2f6775057b23")}catch{}})();const qt=b.div`
1
+ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt,b as I,a$ as ft,aM as ut,a_ as gt,be as bt,o as C,ab as _t,L as yt,bf as xt,x as Y,bg as wt,m as j,k as ye,J as z,bh as xe,C as ue,bi as $e,S as Ie,bj as St,ad as Ct,l as Fe,t as Rt,b7 as Ot}from"./index-CuxRoVvZ.js";import{a as v,b as Pe}from"./sentry-Cm8I7E9J.js";import{n as b}from"./mui-G2MlMTlr.js";import{_ as vt}from"./liveblocks--AdozwCz.js";import{bt as we,F6 as Tt,Ff as At,Fg as Bt,Fh as K,Fi as kt,Fj as Lt,Fk as jt,Fl as Nt,Fm as Mt,Fn as re,Fo as le,Fp as Se}from"./zeni-epic-state-lC5X-sam.js";import{j as $t,z as ce}from"./mapTimeframeBalancesToTreeNode-UsawmMLa-CPc-fd5T.js";import{m as Q,l as de}from"./analyticsHelper-Bh8o1v3y-DbxZaMDt.js";import{b as It}from"./ReportTableViewSelector-DTk1dNWC-tS3w4hoK.js";import{S as oe,y as Ft,M as Pt,$ as Et,v as Vt}from"./TimeRangeSwitcher-SqY2MHGs-vaeYYQAs.js";import{X as zt}from"./TimeframeSwitcherWithToggle-Dgc1odUH-6AO25YrU.js";import{DownloadOverlayButton as Dt}from"./DownloadOverlay-Cmd727bN-C-PzxP5F.js";import{Z as Ut,n as Yt,t as P,j as Ce}from"./CollapsableReportTable-gy7Ue_fk-xkuj86hA.js";import{D as Re,T as Oe,C as te,L as Wt,g as Ee}from"./mapSectionWithAcOnlyToTreeNode-D7pjBGp6-bV4CDhWS.js";import{d as Gt,l as Ht}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-BaY2mTy_.js";import{d as Zt}from"./mapLoadingInProgressToTreeNode-DTyQHWMc-tj_AEx0m.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./recharts-3tylCZU1.js";import"./utils-BhOlvYO8.js";import"./filter-cZIFUNvj-CWbeOwgA.js";import"./TimeframeSwitcher-BlJ2fuHy-C0bwk8vS.js";import"./page-detail-CWX5S47F-CWJ8fnGp.js";import"./page-summary-D7_VQHwN-CaK_VLEF.js";import"./AccountRow-CdgvnPG8-Cz30EYLJ.js";import"./clock-CJkylEKt-BBrb7jeK.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]="7b7a14c5-a9fb-4ed9-bb03-5cbbb4768bb1",e._sentryDebugIdIdentifier="sentry-dbid-7b7a14c5-a9fb-4ed9-bb03-5cbbb4768bb1")}catch{}})();const qt=b.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  `,Xt=b.div`
@@ -114,7 +114,7 @@ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt
114
114
  border-top: 1px solid ${e=>e.theme.colors.grey3};
115
115
  width: 100%;
116
116
  margin: ${C.sp2} 0;
117
- `;function ee(e){const{dateFormat:{analytics:t}}=B.getLocalizedStrings();return e.startDate.format(t.YYYYFormat)}function q(e,t,r){return Ut(r,e,t)}const po=({allTimeframeTicks:e,bookCloseDate:t,firstMonthOfFY:r,fromIndex:l,selectedTimeframe:o,toIndex:n,onFromSelected:p,onToSelected:x})=>{const{dateFormat:{analytics:u}}=B.getLocalizedStrings(),m=B.getLocalizedStrings().reports,[f,h]=v.useState("from"),i=[...new Set(e.map(ee))],[d,y]=v.useState(()=>ee(e[l]??e[0])),s=T=>{h(T),y(ee(e[T==="from"?l:n]))},c=e.map((T,O)=>({tick:T,index:O})).filter(({tick:T})=>ee(T)===d),S=e.length-1,R=S>=0&&Bt(e[S]),k=q(e[l],o,r),M=q(e[n],o,r);return a.jsxs(so,{children:[a.jsxs(io,{children:[a.jsxs(ve,{active:f==="from",onClick:()=>s("from"),children:[a.jsx(Te,{children:m.periodRangeFrom}),a.jsx(Ae,{children:k})]}),a.jsx(ro,{children:"→"}),a.jsxs(ve,{active:f==="to",onClick:()=>s("to"),children:[a.jsx(Te,{children:m.periodRangeTo}),a.jsx(Ae,{children:M})]})]}),a.jsxs(lo,{children:[a.jsx(Be,{children:i.map(T=>a.jsx(xe,{id:T,text:T,checked:T===d,textVariant:"small",onClick:O=>y(O)},T))}),a.jsx(co,{}),a.jsx(Be,{children:c.map(({tick:T,index:O})=>{const _=function(E,D,ne,X){return D==="month"?E.startDate.format(X):q(E,D,ne)}(T,o,r,u.MMMFormat),w=f==="from"?O===l:O===n,A=t!=null&&T.startDate.isAfter(t),$=O===S,N=A&&!(R&&$),F=A&&R&&$;return a.jsx(xe,{id:String(O),text:_,checked:w,starred:N,doubleStarred:F,textVariant:"small",onClick:E=>(D=>{f==="from"?p(D):x(D)})(Number.parseInt(E,10))},O)})})]})]})};function ho(e){const{allTimeframeTicks:t,bookCloseDate:r,firstMonthOfFY:l,onCOABalancesRangeChanged:o,onDateRangeAnalytics:n,isCompareMode:p,referrer:x,selectedCOABalancesRange:u,selectedTimeframe:m,variant:f="default"}=e,[h,i]=v.useState(!1),d=t??[];if(m==="week"||m==="free_range"||d.length===0)return null;const y=Pt(d,u),s=u.numberOfPeriods??1,c=y.startIndex,S=Math.max(0,Math.min(c,d.length-1)),R=Math.min(Math.max(S+y.length-1,0),d.length-1),k=q(d[S],m,l),M=q(d[R],m,l),T=(_,w)=>{const A=w-_+1,$={offsetFromEnd:d.length-1-w,length:A},N={startIndex:_,length:A},F=Et(d,$),E=Vt(d,N);F.thisPeriod!=null&&n!=null&&n(x,p,de(l,m,F.thisPeriod)),o(F,E),i(!1)},O=h&&d.length>0?a.jsx(po,{allTimeframeTicks:d,bookCloseDate:r,firstMonthOfFY:l,selectedTimeframe:m,fromIndex:S,toIndex:R,onFromSelected:_=>{const w=_,A=Math.min(w+s-1,d.length-1);T(w,A)},onToSelected:_=>{const w=Math.min(S,_),A=Math.max(S,_);T(w,A)}}):null;return f==="timeRangeSlider"?a.jsx(Xt,{children:a.jsx(ye,{onClickAway:()=>i(!1),children:a.jsxs(Jt,{"data-testid":I("reports-period-range-calendar"),children:[a.jsxs(eo,{onClick:()=>i(_=>!_),children:[a.jsxs(Kt,{className:"reports-period-slider-label",children:[k," – ",M]}),a.jsx(Qt,{className:"reports-period-slider-chevron"})]}),O!=null?a.jsx(ao,{children:O}):null]})})}):a.jsx(ye,{onClickAway:()=>i(!1),children:a.jsxs(qt,{"data-testid":I("reports-period-range-calendar"),children:[a.jsxs(to,{onClick:()=>i(_=>!_),children:[a.jsxs(oo,{children:[k," – ",M]}),a.jsx(no,{})]}),O!=null?a.jsx(Ve,{children:O}):null]})})}function ze({section:e,sectionId:t,numOfBalances:r,config:l}){return Ce("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(o=>function({accountGroup:n,sectionType:p,numOfBalances:x,title:u,isLastNode:m,config:f}){const h=P("section",[],u+p),i={children:[],id:h,isLastNode:m,reportElementData:{element:{kind:"section",title:u,sectionType:p,data:n,numOfBalances:x},config:f}},d=Ce("no_filter",f.filterAccountsWithNilBalances,f.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(n.accounts),y=d.map((s,c)=>Ee({account:s,sectionType:p,numOfBalances:x,title:s.account.accountName,config:f,isLastNode:c===d.length-1,parentNodeIDs:[h],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:d.length>1,hasChildren:s.children.length>0,isLastNode:c===d.length-1}]}}));return i.children.push(...y),i}({accountGroup:o,sectionType:t,numOfBalances:r,title:o.accountGroupName,isLastNode:!0,config:l}))}function De({sectionWithAcOnly:e,sectionType:t,numOfBalances:r,config:l}){return e.accounts.map((o,n)=>Ee({account:o,sectionType:t,numOfBalances:r,title:o.account.accountName,config:l,isLastNode:n===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:o.children.length>0,isLastNode:n===e.accounts.length-1}]}}))}function Ue({balances:e,config:t,nodeId:r}){return{children:[],id:r??P("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function pe(e,t){for(const r of e)r.reportElementData={...r.reportElementData,config:t},pe(r.children,t)}function mo(e,t,r,l=!0){if(Object.assign(e.config,t),function(p){return p.reportId==="profit_and_loss_by_classes"&&"headerBalances"in p&&Array.isArray(p.headerBalances)}(r))return pe(e.headerNodes,t),pe(e.contentNodes,t),{config:t,headerNodes:e.headerNodes,contentNodes:e.contentNodes};const o=Ye(r),n=ce({balances:o,config:t});return{config:t,headerNodes:l?[n]:[],contentNodes:[n,...e.contentNodes.slice(1)]}}const Ye=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e,r=t.sections?.expenses?.balances,l=t.sections?.income?.balances,o=t.sections?.expenses?.additionalBalances??[],n=t.sections?.income?.additionalBalances??[];return(r?.length??0)>0?[...r,...o]:(l?.length??0)>0?[...l,...n]:[]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let r=[];return Object.keys(t.sections).forEach(l=>{t.sections[l].balances.length>0&&(r=[...t.sections[l].balances,...t.sections[l].additionalBalances])}),r}default:return[]}};function fo(e,t,r=!0){const l=B.getLocalizedStrings().reports.sections,o=B.getLocalizedStrings().reports.cashFlow,n=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,x=Ue({balances:n,config:t}),u=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(m=>{const f={children:[],id:P("title_string_only",[],m),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:l[m],data:void 0,numOfBalances:0},config:t}};u.push(f),e.rootSectionsWithSubSectionIds[m].forEach(h=>{if(jt(h)===!0)if(e.sections[h].accountGroups.length>0){const i=ze({sectionId:h,section:e.sections[h],numOfBalances:p,config:t});u.push(...i)}else{const i=De({sectionWithAcOnly:e.sections[h],sectionType:h,numOfBalances:p,config:t});u.push(...i)}else Nt(h)===!0?u.push(function({calculatedSection:i,numOfBalances:d,title:y,isLastNode:s,config:c}){return{children:[],id:P("calculated_section_type1",[],y),isLastNode:s,reportElementData:{element:{kind:"calculated_section_type1",title:y,data:i,numOfBalances:d},config:c}}}({calculatedSection:e.calculatedSections[h],numOfBalances:p,title:o[h],isLastNode:!0,config:t})):Mt(h)===!0&&u.push(te({calculatedSection:e.calculatedSections[h],numOfBalances:p,title:o[h],isLastNode:!0,config:t}))})}),{config:t,headerNodes:r?[x]:[],contentNodes:[x,...u]}}function uo(e,t){const r=[];let l=[];const o=e.classColumns.length+1,n={children:[],id:P("class_headers",[]),isLastNode:!1,reportElementData:{element:{kind:"class_headers",title:"",data:e.classColumns,numOfBalances:o},config:t}};return r.push(n),l=[n],e.idsInOrder.forEach(p=>{if(re(p)){const x=e.sections[p];x!=null&&r.push(function(u,m,f,h,i){const d=P("section",[],u.title),y=u.treeLayout,s=u.sectionHeaderBalancesSlice??Se(i.firstMonthOfFY),c={children:[],id:d,isLastNode:!0,reportElementData:{element:{kind:"section",title:u.title,sectionType:m,data:s,numOfBalances:f},config:h}};if(y==null)return c;const S=new Map;for(const[R,k]of Object.entries(y.childrenRowIndicesByParent))S.set(Number(R),k);return y.rootAccountRowIndices.forEach((R,k)=>{c.children.push(We(R,u.accounts,S,f,h,[d],k===y.rootAccountRowIndices.length-1))}),c}(x,p,o,t,e))}else if(le(p)){const x=e.calculatedSections[p];x!=null&&r.push(function(u,m,f,h){const i=u.sectionHeaderBalancesSlice??Se(h.firstMonthOfFY);return{children:[],id:P("calculated_section",[],u.title),isLastNode:!0,reportElementData:{element:{kind:"calculated_section",title:u.title,data:i,numOfBalances:m},config:f}}}(x,o,t,e))}}),{config:t,headerNodes:l,contentNodes:r}}function We(e,t,r,l,o,n,p){const x=t[e],u=x.accountReportData,m=r.get(e)??[],f=P("ac_report",n,x.accountId);return{children:m.map((h,i)=>We(h,t,r,l,o,[...n,f],i===m.length-1)),id:f,isLastNode:p,reportElementData:{element:{kind:"ac_report",title:x.accountName,data:u,numOfBalances:l},config:o}}}const ke={contentPaddingLeft:new Y(L[0],L[0],L[0]),contentPaddingRight:new Y(L[3],L[3],L[8])},go=b.div`
117
+ `;function ee(e){const{dateFormat:{analytics:t}}=B.getLocalizedStrings();return e.startDate.format(t.YYYYFormat)}function q(e,t,r){return Ut(r,e,t)}const po=({allTimeframeTicks:e,bookCloseDate:t,firstMonthOfFY:r,fromIndex:l,selectedTimeframe:o,toIndex:n,onFromSelected:p,onToSelected:x})=>{const{dateFormat:{analytics:u}}=B.getLocalizedStrings(),m=B.getLocalizedStrings().reports,[f,h]=v.useState("from"),i=[...new Set(e.map(ee))],[d,y]=v.useState(()=>ee(e[l]??e[0])),s=T=>{h(T),y(ee(e[T==="from"?l:n]))},c=e.map((T,O)=>({tick:T,index:O})).filter(({tick:T})=>ee(T)===d),S=e.length-1,R=S>=0&&Bt(e[S]),k=q(e[l],o,r),M=q(e[n],o,r);return a.jsxs(so,{children:[a.jsxs(io,{children:[a.jsxs(ve,{active:f==="from",onClick:()=>s("from"),children:[a.jsx(Te,{children:m.periodRangeFrom}),a.jsx(Ae,{children:k})]}),a.jsx(ro,{children:"→"}),a.jsxs(ve,{active:f==="to",onClick:()=>s("to"),children:[a.jsx(Te,{children:m.periodRangeTo}),a.jsx(Ae,{children:M})]})]}),a.jsxs(lo,{children:[a.jsx(Be,{children:i.map(T=>a.jsx(xe,{id:T,text:T,checked:T===d,textVariant:"small",onClick:O=>y(O)},T))}),a.jsx(co,{}),a.jsx(Be,{children:c.map(({tick:T,index:O})=>{const _=function(E,D,ne,X){return D==="month"?E.startDate.format(X):q(E,D,ne)}(T,o,r,u.MMMFormat),w=f==="from"?O===l:O===n,A=t!=null&&T.startDate.isAfter(t),$=O===S,N=A&&!(R&&$),F=A&&R&&$;return a.jsx(xe,{id:String(O),text:_,checked:w,starred:N,doubleStarred:F,textVariant:"small",onClick:E=>(D=>{f==="from"?p(D):x(D)})(Number.parseInt(E,10))},O)})})]})]})};function ho(e){const{allTimeframeTicks:t,bookCloseDate:r,firstMonthOfFY:l,onCOABalancesRangeChanged:o,onDateRangeAnalytics:n,isCompareMode:p,referrer:x,selectedCOABalancesRange:u,selectedTimeframe:m,variant:f="default"}=e,[h,i]=v.useState(!1),d=t??[];if(m==="week"||m==="free_range"||d.length===0)return null;const y=Pt(d,u),s=u.numberOfPeriods??1,c=y.startIndex,S=Math.max(0,Math.min(c,d.length-1)),R=Math.min(Math.max(S+y.length-1,0),d.length-1),k=q(d[S],m,l),M=q(d[R],m,l),T=(_,w)=>{const A=w-_+1,$={offsetFromEnd:d.length-1-w,length:A},N={startIndex:_,length:A},F=Et(d,$),E=Vt(d,N);F.thisPeriod!=null&&n!=null&&n(x,p,de(l,m,F.thisPeriod)),o(F,E),i(!1)},O=h&&d.length>0?a.jsx(po,{allTimeframeTicks:d,bookCloseDate:r,firstMonthOfFY:l,selectedTimeframe:m,fromIndex:S,toIndex:R,onFromSelected:_=>{const w=_,A=Math.min(w+s-1,d.length-1);T(w,A)},onToSelected:_=>{const w=Math.min(S,_),A=Math.max(S,_);T(w,A)}}):null;return f==="timeRangeSlider"?a.jsx(Xt,{children:a.jsx(ye,{onClickAway:()=>i(!1),children:a.jsxs(Jt,{"data-testid":I("reports-period-range-calendar"),children:[a.jsxs(eo,{onClick:()=>i(_=>!_),children:[a.jsxs(Kt,{className:"reports-period-slider-label",children:[k," – ",M]}),a.jsx(Qt,{className:"reports-period-slider-chevron"})]}),O!=null?a.jsx(ao,{children:O}):null]})})}):a.jsx(ye,{onClickAway:()=>i(!1),children:a.jsxs(qt,{"data-testid":I("reports-period-range-calendar"),children:[a.jsxs(to,{onClick:()=>i(_=>!_),children:[a.jsxs(oo,{children:[k," – ",M]}),a.jsx(no,{})]}),O!=null?a.jsx(Ve,{children:O}):null]})})}function ze({section:e,sectionId:t,numOfBalances:r,config:l}){return Ce("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(o=>function({accountGroup:n,sectionType:p,numOfBalances:x,title:u,isLastNode:m,config:f}){const h=P("section",[],u+p),i={children:[],id:h,isLastNode:m,reportElementData:{element:{kind:"section",title:u,sectionType:p,data:n,numOfBalances:x},config:f}},d=Ce("no_filter",f.filterAccountsWithNilBalances,f.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(n.accounts),y=d.map((s,c)=>Ee({account:s,sectionType:p,numOfBalances:x,title:s.account.accountName,config:f,isLastNode:c===d.length-1,parentNodeIDs:[h],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:d.length>1,hasChildren:s.children.length>0,isLastNode:c===d.length-1}]}}));return i.children.push(...y),i}({accountGroup:o,sectionType:t,numOfBalances:r,title:o.accountGroupName,isLastNode:!0,config:l}))}function De({sectionWithAcOnly:e,sectionType:t,numOfBalances:r,config:l}){return e.accounts.map((o,n)=>Ee({account:o,sectionType:t,numOfBalances:r,title:o.account.accountName,config:l,isLastNode:n===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:o.children.length>0,isLastNode:n===e.accounts.length-1}]}}))}function Ue({balances:e,config:t,nodeId:r}){return{children:[],id:r??P("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function pe(e,t){for(const r of e)r.reportElementData={...r.reportElementData,config:t},pe(r.children,t)}function mo(e,t,r,l=!0){if(Object.assign(e.config,t),function(p){return p.reportId==="profit_and_loss_by_classes"&&"headerBalances"in p&&Array.isArray(p.headerBalances)}(r))return pe(e.headerNodes,t),pe(e.contentNodes,t),{config:t,headerNodes:e.headerNodes,contentNodes:e.contentNodes};const o=Ye(r),n=ce({balances:o,config:t});return{config:t,headerNodes:l?[n]:[],contentNodes:[n,...e.contentNodes.slice(1)]}}const Ye=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e,r=t.sections?.expenses?.balances,l=t.sections?.income?.balances,o=t.sections?.expenses?.additionalBalances??[],n=t.sections?.income?.additionalBalances??[];return(r?.length??0)>0?[...r,...o]:(l?.length??0)>0?[...l,...n]:[]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let r=[];return Object.keys(t.sections).forEach(l=>{t.sections[l].balances.length>0&&(r=[...t.sections[l].balances,...t.sections[l].additionalBalances])}),r}default:return[]}};function fo(e,t,r=!0){const l=B.getLocalizedStrings().reports.sections,o=B.getLocalizedStrings().reports.cashFlow,n=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,x=Ue({balances:n,config:t}),u=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(m=>{const f={children:[],id:P("title_string_only",[],m),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:l[m],data:void 0,numOfBalances:0},config:t}};u.push(f),e.rootSectionsWithSubSectionIds[m].forEach(h=>{if(jt(h)===!0)if(e.sections[h].accountGroups.length>0){const i=ze({sectionId:h,section:e.sections[h],numOfBalances:p,config:t});u.push(...i)}else{const i=De({sectionWithAcOnly:e.sections[h],sectionType:h,numOfBalances:p,config:t});u.push(...i)}else Nt(h)===!0?u.push(function({calculatedSection:i,numOfBalances:d,title:y,isLastNode:s,config:c}){return{children:[],id:P("calculated_section_type1",[],y),isLastNode:s,reportElementData:{element:{kind:"calculated_section_type1",title:y,data:i,numOfBalances:d},config:c}}}({calculatedSection:e.calculatedSections[h],numOfBalances:p,title:o[h],isLastNode:!0,config:t})):Mt(h)===!0&&u.push(te({calculatedSection:e.calculatedSections[h],numOfBalances:p,title:o[h],isLastNode:!0,config:t}))})}),{config:t,headerNodes:r?[x]:[],contentNodes:[x,...u]}}function uo(e,t){const r=[];let l=[];const o=e.classColumns.length+1,n={children:[],id:P("class_headers",[]),isLastNode:!1,reportElementData:{element:{kind:"class_headers",title:"",data:e.classColumns,numOfBalances:o},config:t}};return r.push(n),l=[n],e.idsInOrder.forEach(p=>{if(re(p)){const x=e.sections[p];x!=null&&r.push(function(u,m,f,h,i){const d=P("section",[],u.title),y=u.treeLayout,s=u.sectionHeaderBalancesSlice??Se(i.firstMonthOfFY),c={children:[],id:d,isLastNode:!0,reportElementData:{element:{kind:"section",title:u.title,sectionType:m,data:s,numOfBalances:f},config:h}};if(y==null)return c;const S=new Map;for(const[R,k]of Object.entries(y.childrenRowIndicesByParent))S.set(Number(R),k);return y.rootAccountRowIndices.forEach((R,k)=>{c.children.push(We(R,u.accounts,S,f,h,[d],k===y.rootAccountRowIndices.length-1))}),c}(x,p,o,t,e))}else if(le(p)){const x=e.calculatedSections[p];x!=null&&r.push(function(u,m,f,h){const i=u.sectionHeaderBalancesSlice??Se(h.firstMonthOfFY);return{children:[],id:P("calculated_section",[],u.title),isLastNode:!0,reportElementData:{element:{kind:"calculated_section",title:u.title,data:i,numOfBalances:m},config:f}}}(x,o,t,e))}}),{config:t,headerNodes:l,contentNodes:r}}function We(e,t,r,l,o,n,p){const x=t[e],u=x.accountReportData,m=r.get(e)??[],f=P("ac_report",n,x.accountId);return{children:m.map((h,i)=>We(h,t,r,l,o,[...n,f],i===m.length-1)),id:f,isLastNode:p,reportElementData:{element:{kind:"ac_report",title:x.accountName,data:u,numOfBalances:l},config:o}}}const ke={contentPaddingLeft:new Y(j[0],j[0],j[0]),contentPaddingRight:new Y(j[3],j[3],j[8])},go=b.div`
118
118
  height: ${e=>e.height}px;
119
119
  width: 99.9%;
120
120
  margin-top: ${C.sp2};
@@ -165,7 +165,7 @@ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt
165
165
  width: 160px;
166
166
  left: 63%;
167
167
  }
168
- `,Co=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return B.getLocalizedStrings().reportTitleById[e];default:throw new Error("Unsupported report")}};function Ro({reportId:e,isSelected:t,onClick:r}){return a.jsx(wo,{"data-testid":I("reportSwitcher",e),onClick:()=>{t===!1&&r(e)},isSelected:t,spaceAround:e==="balance_sheet",children:Co(e)})}function Oo({reportIds:e,selectedReport:t,onReportSelectionChanged:r}){const l=o=>{r?.(o)};return a.jsx(yo,{"data-testid":I("report-switcher-container"),children:a.jsx(xo,{"data-testid":I("report-switcher-content"),children:e.map(o=>o!=="profit_and_loss_by_classes"&&a.jsxs("div",{children:[a.jsx(Ro,{reportId:o,isSelected:t===o,onClick:l}),a.jsx(So,{className:`Slider ${t}`})]},`reportSegment-${o}`))})})}const G={contentContainerLeftRightMargin:new Y(L[3],L[3],L[8]),contentRightPadding:new Y(L[3],L[3],L[8]),tickSkeletonContainerWidth:new Y(343,600,905,1240)},{collaboration:{threads:{placeholder:Le,tooltip:je,title:{comments:vo}}}}=B.getLocalizedStrings(),To=new Y(4,4),Ao=new Y(4,4),Bo=(e,t)=>e?Ao.value(t):To.value(t),ko=b.div`
168
+ `,Co=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return B.getLocalizedStrings().reportTitleById[e];default:throw new Error("Unsupported report")}};function Ro({reportId:e,isSelected:t,onClick:r}){return a.jsx(wo,{"data-testid":I("reportSwitcher",e),onClick:()=>{t===!1&&r(e)},isSelected:t,spaceAround:e==="balance_sheet",children:Co(e)})}function Oo({reportIds:e,selectedReport:t,onReportSelectionChanged:r}){const l=o=>{r?.(o)};return a.jsx(yo,{"data-testid":I("report-switcher-container"),children:a.jsx(xo,{"data-testid":I("report-switcher-content"),children:e.map(o=>o!=="profit_and_loss_by_classes"&&a.jsxs("div",{children:[a.jsx(Ro,{reportId:o,isSelected:t===o,onClick:l}),a.jsx(So,{className:`Slider ${t}`})]},`reportSegment-${o}`))})})}const G={contentContainerLeftRightMargin:new Y(j[3],j[3],j[8]),contentRightPadding:new Y(j[3],j[3],j[8]),tickSkeletonContainerWidth:new Y(343,600,905,1240)},{collaboration:{threads:{placeholder:Le,tooltip:je,title:{comments:vo}}}}=B.getLocalizedStrings(),To=new Y(4,4),Ao=new Y(4,4),Bo=(e,t)=>e?Ao.value(t):To.value(t),ko=b.div`
169
169
  display: flex;
170
170
  flex: 1 1 auto;
171
171
  min-height: 100%;
@@ -214,7 +214,7 @@ import{e as me,y as fe,_ as ct,ba as dt,bb as pt,bc as ht,O as B,V as a,bd as mt
214
214
  `,Io=b(_t)`
215
215
  margin-top: ${C.sp3};
216
216
  color: ${e=>e.theme.colors.hero};
217
- `,Ge=({style:e,isLoading:t})=>t?a.jsx(jo,{style:e,children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):null,W=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;default:return e.profitAndLossReport}},He=e=>{if(e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState.classViewLayout==="horizontal"){const t=e.profitAndLossByClassHorizontalReport;return t.selectedPeriod!=null?t:W(e)}return W(e)},he=({selectedReport:e,isCompareModeOn:t,windowSize:r})=>{const l=e.availableNumberOfPeriods;let o=Bo(t,r);return l!=null&&(o=Math.min(o,l)),o};function Rn(e){const t=me(),r=fe(),l=ct(),{onUpdateAccountViewMode:o,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:x,isCompareMode:u,selectedReportAndTimeframeFetchState:m,onClickMenuIcon:f,isReportsCommentingEnabled:h,initialOpenThreadRequest:i}=e,d=e.isZeniUser??!1,y=l?.currentTenant?.companyId,s=l?.currentTenant?.companyName??"",c=h===!0&&y!=null,S=`dashboard_${y}`,R=d?dt:pt,{threads:k,isLoading:M,requestToOpenThread:T,setRequestToOpenThread:O,setOpenThread:_}=v.useContext(R);v.useEffect(()=>{i?.threadId!=null&&i?.companyId!=null&&i?.entityType!=null&&O(i)},[i,O]);const[w,A]=v.useState(!1),$=v.useMemo(()=>({application:"dashboard",companyId:y,tab:"standard_report",isGlobalComment:!1}),[y]),N=v.useMemo(()=>{const g=ht(k,$,"both");return Array.from(g.values())},[k,$]),F=v.useMemo(()=>N.filter(g=>g.resolved===!1),[N]).length,E=v.useCallback((g,j)=>{A(!1),O({threadId:j,companyId:g.companyId,entityType:g.entityType,threadMetadata:g})},[O]),[D,ne]=v.useState(void 0),X=v.useRef(null),qe=v.useCallback(g=>{ne(g)},[]),Xe=v.useCallback(g=>{X.current?.scrollToItem(g,"center")},[]);$t({requestToOpenThread:T,setRequestToOpenThread:O,setOpenThread:_,allThreads:N,selectedReport:e.selectedReport,onReportSelectionChanged:e.onReportSelectionChanged,reportTreeRootNodes:D,nodeCollapseState:He(e).uiState.nodeCollapseState,onExpandNode:e.onElementCollapseStateChanged,scrollToNode:Xe});const Je=v.useMemo(()=>({companyId:y??"",companyName:s,entityType:"standard_report.details",entityId:y??"",isGlobalComment:!1,application:"dashboard",tab:"standard_report",url:window.location.href}),[y,s]),Ke=(g,j)=>{g!==J?.accountViewMode&&o?.(g),j&&n?.(j)};v.useEffect(()=>{if(e.fetchState==="Completed"){const g=W(e).filter?.additionalBalances??[];e.onUpdateHighlightedNumberOfPeriods?.(g,e.isCompareMode,he({selectedReport:W(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe??[])}},[t,e.fetchState]);const J=function(g){let j=g.selectedCOABalancesRange.thisPeriod;if(j==null){const it=g.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"&&g.profitAndLossClassesViewReport.uiState.classViewLayout==="horizontal",be=g.profitAndLossByClassHorizontalReport.headerBalances[0];if(it===!0&&be!=null)j=be;else{const rt=g.displayOrder,se=g.profitAndLossReport.sections.expenses,lt=g.profitAndLossReport.sections.income,ie=se!=null&&(se?.balances?.length??0)>0?se:lt;if(ie!=null&&(ie.balances?.length??0)>0){const _e=ie.balances??[];j=_e[rt==="ascending_date"?_e.length-1:0]}}}const V=W(g),H=V.firstMonthOfFY,Z=V.bookCloseDate,at=V.dataAvailable,st=V.filter.additionalBalances;if(j!=null)return{localeId:B.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:g.currentTenantCompanyName,statementFileType:"pdf",statements:g.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:H,bookCloseDate:Z,dataAvailable:at,timeframe:g.selectedTimeframe,additionalBalances:st,format:g.reportFormat,balancesFilter:{thisPeriod:j,numberOfPeriods:g.selectedCOABalancesRange.numberOfPeriods,orderBy:g.displayOrder},accountViewMode:g.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:g.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:g.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:g.isZeniUser,isZeniCOAUsed:g.isZeniCOAUsed,classViewLayout:g.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"?g.profitAndLossClassesViewReport.uiState.classViewLayout:"vertical"}}(e),Qe=B.getLocalizedStrings().reports.common,et=l!=null&&we(l.loggedInUserRole)?"detailed":"more_detailed",ae=l!=null&&we(l.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&J?.accountViewMode==="account_group"&&ae.push("detailed");const[tt,ot]=Pe.useState(ae.includes("more_detailed")?"detailed":"more_detailed"),nt={selectedFormat:tt,disabledFormatForRole:ae,roleBasedClassesSelectedFormat:et,setSelectedFormat:ot};if(m.fetchState==="Error"||e.fetchState==="Error")return a.jsxs(Mo,{"data-testid":I("report-page-error-reload-page"),children:[a.jsx($o,{"data-testid":I("report-page-error-reload-icon"),onClick:e.onReloadReport,children:a.jsx(mt,{})}),a.jsx(Io,{children:Qe.failed})]});const ge=e.fetchState;if(m.fetchState!=="Completed"&&(ge==="In-Progress"||ge==="Not-Started"))return a.jsx(Ge,{isLoading:!0});{const g=a.jsx(ft,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:J!=null&&e.dataAvailable!=null?a.jsx(Dt,{defaultOptions:J,analytics:e.analytics,referrer:U(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:nt,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:Ke,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(V,H,Z)=>{p(u,V,H,Z)},onTimeframeSelectionChanged:(V,H,Z)=>{x?.(V,H,Z)}}):a.jsx(a.Fragment,{})}}}),j=a.jsxs(Wo,{children:[c?a.jsxs(Go,{onClick:()=>A(!0),"data-testid":I("reports-page-comment-button"),children:[a.jsx(ut,{count:M?void 0:F,isLoading:M,style:{left:"12px"}}),a.jsx(Ho,{})]}):null,g]});return a.jsxs(a.Fragment,{children:[a.jsxs(ko,{children:[a.jsx(gt,{title:B.getLocalizedStrings().reports.title,backgroundColor:r.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:f,rightSideComponent:j,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),a.jsx(Fo,{...e,onTreeNodesReady:qe,treeRef:X})]}),c?a.jsx(vt,{id:S,children:a.jsx(bt,{isDrawerOpen:w,allowComposer:!0,drawerTitle:vo,threads:N,filter:$,autoExpand:!0,autoFocus:!1,isLoading:M,textOverrides:{composerPlaceholder:Le.addANewComment,replyComposerPlaceholder:Le.replyAComment,threadResolve:je.resolveComment,threadUnResolve:je.unResolveComment},threadMetadata:Je,onThreadClick:E,onCloseAllThreadsDrawer:()=>A(!1),drawerSectionStyle:{width:t==="small"?"100%":"400px",boxSizing:t==="small"?"border-box":"content-box"},collapsibleThreadStyle:{width:t==="small"?"100%":"360px"}})}):null]})}}function Fo(e){const t=me(),r=fe(),l=v.useRef(null),{selectedReportAndTimeframeFetchState:o}=e,n=W(e),p=l.current?.clientWidth??G.tickSkeletonContainerWidth.value(t),x=Tt([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",u=o.fetchState==="In-Progress",m=e.profitAndLossClassesViewReport?.uiState,f=e.isHorizontalClassReportSwitchEnabled!==!1&&e.selectedReport==="profit_and_loss_by_classes"&&m?.accountViewMode==="classes",h=f&&m?.classViewLayout==="horizontal"&&e.onCOABalancesRangeChanged!=null&&o.fetchState==="Completed",i=f&&m?.classViewLayout==="horizontal",d=B.getLocalizedStrings().reports,y=e.analytics!=null?(s,c,S)=>{c===!0&&e.analytics?.trackCompareFilterTimeFrame(s,Q(e.selectedTimeframe),"range filter",S),e.analytics?.trackDateRangeFilterChange(s,"range filter",c,S)}:void 0;return a.jsxs(Lo,{windowSize:t,"data-testid":I("reports-page-content-container"),children:[a.jsx(zo,{windowSize:t,ref:l,children:a.jsx(zt,{timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(Q(s),U(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:B.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,isToggleDisabled:i,onValueChanged:s=>{e.analytics?.trackCompareMode(s,U(e.selectedReport),Q(e.selectedTimeframe));const c=n.filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}},secondaryToggle:f?{label:d.horizontalClassLayoutSwitch,isOn:m?.classViewLayout==="horizontal",onValueChanged:s=>{e.onUpdateClassViewLayout?.(s?"horizontal":"vertical")}}:void 0,secondaryToggleDataTestId:I("reports-horizontal-class-layout-switch")})}),o.fetchState==="Not-Started"||o.fetchState==="In-Progress"?a.jsx(Do,{windowSize:t,children:a.jsx(Uo,{children:a.jsx(wt,{width:p,height:oe-L[2],backgroundColor:r.colors.grey3,style:{borderRadius:C.sp2}})})}):h&&e.onCOABalancesRangeChanged!=null?a.jsx(Me,{windowSize:t,children:a.jsx(ho,{allTimeframeTicks:e.allTimeframeTicks,bookCloseDate:n.bookCloseDate,firstMonthOfFY:n.firstMonthOfFY,onCOABalancesRangeChanged:e.onCOABalancesRangeChanged,onDateRangeAnalytics:y,isCompareMode:e.isCompareMode,referrer:U(e.selectedReport),selectedCOABalancesRange:e.selectedCOABalancesRange,selectedTimeframe:e.selectedTimeframe,variant:"timeRangeSlider"})}):a.jsx(Me,{windowSize:t,children:a.jsx(Ft,{firstMonthOfFY:n.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Ne(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Ne(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(U(e.selectedReport),"range filter",e.isCompareMode,de(n.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,he({selectedReport:n,isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=Po(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(U(e.selectedReport),"range filter",e.isCompareMode,de(n.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),a.jsx(Yo,{windowSize:t,children:a.jsx(Oo,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(Eo(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),o.fetchState==="Not-Started"||o.fetchState==="In-Progress"?a.jsx(Ge,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:u}):a.jsxs(a.Fragment,{children:[a.jsx(Ze,{report:He(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",U(e.selectedReport),Q(e.selectedTimeframe),c);const S=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...n.filter.additionalBalances,"this_period_vs_last_period_percent"].filter(R=>R!=="this_period_vs_last_period"):[...n.filter.additionalBalances,"this_period_vs_last_period"].filter(R=>R!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,S,he({selectedReport:n,isCompareModeOn:e.isCompareMode,windowSize:t}))},onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:x,onTreeNodesReady:e.onTreeNodesReady,treeRef:e.treeRef}),At(e.selectedReport)?a.jsx(No,{windowSize:t,children:a.jsx(It,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:x,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Ne=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let r=e.length-1;return t.thisPeriod!=null&&(r=e.findIndex(l=>l.startDate.isSame(t.thisPeriod.startDate,"date")&&l.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(r+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},Po=(e,t)=>({thisPeriod:e[e.length-1-t.offsetFromEnd],numberOfPeriods:t.length,orderBy:"ascending_date"}),U=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},Eo=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return z.Event.profitAndLoss;case"cash_flow":return z.Event.cashFlow;case"balance_sheet":return z.Event.balanceSheet;default:return z.Event.reports}},Ze=Pe.memo(function({report:e,displayOrder:t,reportFormat:r,analytics:l,isZeniUser:o,onAdditionalBalanceSelectionChanged:n,onAccountBalanceClick:p,onTableScroll:x,onElementCollapseStateChanged:u,isCompareModeOn:m,isPageFetchInProgress:f=!1,onTreeNodesReady:h,treeRef:i}){const d=me(),y=fe(),[s,c]=v.useState(void 0),[S,R]=v.useState(void 0),k=!(d==="small"||d==="medium-compact"),M=m===!0?"this_period_vs_period_before":"none";v.useEffect(()=>{const _={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:r,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ot(),showClassAccountNumber:o};if(s!=null&&Ie(S,e)&&f!==!0){const w=mo(s,_,e,k);c(w)}else{const w=bo(e,_,k,f);R(e),c(w)}},[m,e,f]),v.useEffect(()=>{s?.contentNodes!=null&&h?.(s.contentNodes)},[s,h]);const[T,O]=v.useState(5);return s!=null?a.jsxs(a.Fragment,{children:[a.jsx(St,{analytics:l,onLoad:_=>_?.trackPageLoaded(_o(e))}),a.jsx(go,{height:T,children:a.jsx(Yt,{backgroundColor:new Ct(y.colors.grey4),rootNodes:s,type:"name+balances_actual",compareMode:(()=>{let _=[];switch(e.reportId){case"profit_and_loss":{const w=e;_=(w.sections.expenses.balances.length>0?w.sections.expenses:w.sections.income).additionalBalances.map(A=>K(A));break}case"profit_and_loss_by_classes":{const w=e,A=(w.sections.expenses?.balances?.length??0)>0?w.sections.expenses:null,$=(w.sections.income?.balances?.length??0)>0?w.sections.income:null,N=A??$;N?.additionalBalances!=null&&(_=N.additionalBalances.map(F=>K(F)));break}case"cash_flow":_=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(w=>K(w));break;case"balance_sheet":_=e.sections.equity.additionalBalances.map(w=>K(w))}return _.length>0&&_.find(w=>w.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"})(),isSticky:{isStickyHeader:k,isStickyName:k},treeNodePadding:{left:ke.contentPaddingLeft.value(d),right:ke.contentPaddingRight.value(d)},treeRef:i,onAccountClick:p==null?void 0:(_,w,A)=>{p(_,w,A)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:_=>n?.(_==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(_,w)=>u?.(e.reportId,_,w),onReportTableHeightChanged:_=>{O(_+135)},onScroll:_=>x?.(e.reportId,_)})})]}):null},(e,t)=>Vo(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));Ze.displayName="Reports table";const Vo=(e,t,r)=>r.reduce((l,o)=>l===!0&&Ie(e[`${o}`],t[`${o}`]),!0),zo=b.div`
217
+ `,Ge=({style:e,isLoading:t})=>t?a.jsx(jo,{style:e,children:a.jsx(yt,{size:"ExtraLarge",start:!0})}):null,W=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;default:return e.profitAndLossReport}},He=e=>{if(e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState.classViewLayout==="horizontal"){const t=e.profitAndLossByClassHorizontalReport;return t.selectedPeriod!=null?t:W(e)}return W(e)},he=({selectedReport:e,isCompareModeOn:t,windowSize:r})=>{const l=e.availableNumberOfPeriods;let o=Bo(t,r);return l!=null&&(o=Math.min(o,l)),o};function Rn(e){const t=me(),r=fe(),l=ct(),{onUpdateAccountViewMode:o,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:x,isCompareMode:u,selectedReportAndTimeframeFetchState:m,onClickMenuIcon:f,isReportsCommentingEnabled:h,initialOpenThreadRequest:i}=e,d=e.isZeniUser??!1,y=l?.currentTenant?.companyId,s=l?.currentTenant?.companyName??"",c=h===!0&&y!=null,S=`dashboard_${y}`,R=d?dt:pt,{threads:k,isLoading:M,requestToOpenThread:T,setRequestToOpenThread:O,setOpenThread:_}=v.useContext(R);v.useEffect(()=>{i?.threadId!=null&&i?.companyId!=null&&i?.entityType!=null&&O(i)},[i,O]);const[w,A]=v.useState(!1),$=v.useMemo(()=>({application:"dashboard",companyId:y,tab:"standard_report",isGlobalComment:!1}),[y]),N=v.useMemo(()=>{const g=ht(k,$,"both");return Array.from(g.values())},[k,$]),F=v.useMemo(()=>N.filter(g=>g.resolved===!1),[N]).length,E=v.useCallback((g,L)=>{A(!1),O({threadId:L,companyId:g.companyId,entityType:g.entityType,threadMetadata:g})},[O]),[D,ne]=v.useState(void 0),X=v.useRef(null),qe=v.useCallback(g=>{ne(g)},[]),Xe=v.useCallback(g=>{X.current?.scrollToItem(g,"center")},[]);$t({requestToOpenThread:T,setRequestToOpenThread:O,setOpenThread:_,allThreads:N,selectedReport:e.selectedReport,onReportSelectionChanged:e.onReportSelectionChanged,reportTreeRootNodes:D,nodeCollapseState:He(e).uiState.nodeCollapseState,onExpandNode:e.onElementCollapseStateChanged,scrollToNode:Xe});const Je=v.useMemo(()=>({companyId:y??"",companyName:s,entityType:"standard_report.details",entityId:y??"",isGlobalComment:!1,application:"dashboard",tab:"standard_report",url:window.location.href}),[y,s]),Ke=(g,L)=>{g!==J?.accountViewMode&&o?.(g),L&&n?.(L)};v.useEffect(()=>{const g=e.selectedReport==="profit_and_loss_by_classes"&&e.profitAndLossClassesViewReport?.uiState?.classViewLayout==="horizontal";if(e.fetchState==="Completed"&&!g){const L=W(e).filter?.additionalBalances??[];e.onUpdateHighlightedNumberOfPeriods?.(L,e.isCompareMode,he({selectedReport:W(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe??[])}},[t,e.fetchState]);const J=function(g){let L=g.selectedCOABalancesRange.thisPeriod;if(L==null){const it=g.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"&&g.profitAndLossClassesViewReport.uiState.classViewLayout==="horizontal",be=g.profitAndLossByClassHorizontalReport.headerBalances[0];if(it===!0&&be!=null)L=be;else{const rt=g.displayOrder,se=g.profitAndLossReport.sections.expenses,lt=g.profitAndLossReport.sections.income,ie=se!=null&&(se?.balances?.length??0)>0?se:lt;if(ie!=null&&(ie.balances?.length??0)>0){const _e=ie.balances??[];L=_e[rt==="ascending_date"?_e.length-1:0]}}}const V=W(g),H=V.firstMonthOfFY,Z=V.bookCloseDate,at=V.dataAvailable,st=V.filter.additionalBalances;if(L!=null)return{localeId:B.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:g.currentTenantCompanyName,statementFileType:"pdf",statements:g.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:H,bookCloseDate:Z,dataAvailable:at,timeframe:g.selectedTimeframe,additionalBalances:st,format:g.reportFormat,balancesFilter:{thisPeriod:L,numberOfPeriods:g.selectedCOABalancesRange.numberOfPeriods,orderBy:g.displayOrder},accountViewMode:g.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:g.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:g.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:g.isZeniUser,isZeniCOAUsed:g.isZeniCOAUsed,classViewLayout:g.profitAndLossClassesViewReport.uiState.accountViewMode==="classes"?g.profitAndLossClassesViewReport.uiState.classViewLayout:"vertical"}}(e),Qe=B.getLocalizedStrings().reports.common,et=l!=null&&we(l.loggedInUserRole)?"detailed":"more_detailed",ae=l!=null&&we(l.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&J?.accountViewMode==="account_group"&&ae.push("detailed");const[tt,ot]=Pe.useState(ae.includes("more_detailed")?"detailed":"more_detailed"),nt={selectedFormat:tt,disabledFormatForRole:ae,roleBasedClassesSelectedFormat:et,setSelectedFormat:ot};if(m.fetchState==="Error"||e.fetchState==="Error")return a.jsxs(Mo,{"data-testid":I("report-page-error-reload-page"),children:[a.jsx($o,{"data-testid":I("report-page-error-reload-icon"),onClick:e.onReloadReport,children:a.jsx(mt,{})}),a.jsx(Io,{children:Qe.failed})]});const ge=e.fetchState;if(m.fetchState!=="Completed"&&(ge==="In-Progress"||ge==="Not-Started"))return a.jsx(Ge,{isLoading:!0});{const g=a.jsx(ft,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:J!=null&&e.dataAvailable!=null?a.jsx(Dt,{defaultOptions:J,analytics:e.analytics,referrer:U(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:nt,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:Ke,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(V,H,Z)=>{p(u,V,H,Z)},onTimeframeSelectionChanged:(V,H,Z)=>{x?.(V,H,Z)}}):a.jsx(a.Fragment,{})}}}),L=a.jsxs(Wo,{children:[c?a.jsxs(Go,{onClick:()=>A(!0),"data-testid":I("reports-page-comment-button"),children:[a.jsx(ut,{count:M?void 0:F,isLoading:M,style:{left:"12px"}}),a.jsx(Ho,{})]}):null,g]});return a.jsxs(a.Fragment,{children:[a.jsxs(ko,{children:[a.jsx(gt,{title:B.getLocalizedStrings().reports.title,backgroundColor:r.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:f,rightSideComponent:L,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),a.jsx(Fo,{...e,onTreeNodesReady:qe,treeRef:X})]}),c?a.jsx(vt,{id:S,children:a.jsx(bt,{isDrawerOpen:w,allowComposer:!0,drawerTitle:vo,threads:N,filter:$,autoExpand:!0,autoFocus:!1,isLoading:M,textOverrides:{composerPlaceholder:Le.addANewComment,replyComposerPlaceholder:Le.replyAComment,threadResolve:je.resolveComment,threadUnResolve:je.unResolveComment},threadMetadata:Je,onThreadClick:E,onCloseAllThreadsDrawer:()=>A(!1),drawerSectionStyle:{width:t==="small"?"100%":"400px",boxSizing:t==="small"?"border-box":"content-box"},collapsibleThreadStyle:{width:t==="small"?"100%":"360px"}})}):null]})}}function Fo(e){const t=me(),r=fe(),l=v.useRef(null),{selectedReportAndTimeframeFetchState:o}=e,n=W(e),p=l.current?.clientWidth??G.tickSkeletonContainerWidth.value(t),x=Tt([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",u=o.fetchState==="In-Progress",m=e.profitAndLossClassesViewReport?.uiState,f=e.isHorizontalClassReportSwitchEnabled!==!1&&e.selectedReport==="profit_and_loss_by_classes"&&m?.accountViewMode==="classes",h=f&&m?.classViewLayout==="horizontal"&&e.onCOABalancesRangeChanged!=null&&o.fetchState==="Completed",i=f&&m?.classViewLayout==="horizontal",d=B.getLocalizedStrings().reports,y=e.analytics!=null?(s,c,S)=>{c===!0&&e.analytics?.trackCompareFilterTimeFrame(s,Q(e.selectedTimeframe),"range filter",S),e.analytics?.trackDateRangeFilterChange(s,"range filter",c,S)}:void 0;return a.jsxs(Lo,{windowSize:t,"data-testid":I("reports-page-content-container"),children:[a.jsx(zo,{windowSize:t,ref:l,children:a.jsx(zt,{timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(Q(s),U(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:B.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,isToggleDisabled:i,onValueChanged:s=>{e.analytics?.trackCompareMode(s,U(e.selectedReport),Q(e.selectedTimeframe));const c=n.filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}},secondaryToggle:f?{label:d.horizontalClassLayoutSwitch,isOn:m?.classViewLayout==="horizontal",onValueChanged:s=>{e.onUpdateClassViewLayout?.(s?"horizontal":"vertical")}}:void 0,secondaryToggleDataTestId:I("reports-horizontal-class-layout-switch")})}),o.fetchState==="Not-Started"||o.fetchState==="In-Progress"?a.jsx(Do,{windowSize:t,children:a.jsx(Uo,{children:a.jsx(wt,{width:p,height:oe-j[2],backgroundColor:r.colors.grey3,style:{borderRadius:C.sp2}})})}):h&&e.onCOABalancesRangeChanged!=null?a.jsx(Me,{windowSize:t,children:a.jsx(ho,{allTimeframeTicks:e.allTimeframeTicks,bookCloseDate:n.bookCloseDate,firstMonthOfFY:n.firstMonthOfFY,onCOABalancesRangeChanged:e.onCOABalancesRangeChanged,onDateRangeAnalytics:y,isCompareMode:e.isCompareMode,referrer:U(e.selectedReport),selectedCOABalancesRange:e.selectedCOABalancesRange,selectedTimeframe:e.selectedTimeframe,variant:"timeRangeSlider"})}):a.jsx(Me,{windowSize:t,children:a.jsx(Ft,{firstMonthOfFY:n.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Ne(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Ne(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(U(e.selectedReport),"range filter",e.isCompareMode,de(n.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,he({selectedReport:n,isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=Po(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(U(e.selectedReport),"range filter",e.isCompareMode,de(n.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),a.jsx(Yo,{windowSize:t,children:a.jsx(Oo,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(Eo(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),o.fetchState==="Not-Started"||o.fetchState==="In-Progress"?a.jsx(Ge,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:u}):a.jsxs(a.Fragment,{children:[a.jsx(Ze,{report:He(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",U(e.selectedReport),Q(e.selectedTimeframe),c);const S=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...n.filter.additionalBalances,"this_period_vs_last_period_percent"].filter(R=>R!=="this_period_vs_last_period"):[...n.filter.additionalBalances,"this_period_vs_last_period"].filter(R=>R!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,S,he({selectedReport:n,isCompareModeOn:e.isCompareMode,windowSize:t}))},onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:x,onTreeNodesReady:e.onTreeNodesReady,treeRef:e.treeRef}),At(e.selectedReport)?a.jsx(No,{windowSize:t,children:a.jsx(It,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:x,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Ne=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let r=e.length-1;return t.thisPeriod!=null&&(r=e.findIndex(l=>l.startDate.isSame(t.thisPeriod.startDate,"date")&&l.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(r+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},Po=(e,t)=>({thisPeriod:e[e.length-1-t.offsetFromEnd],numberOfPeriods:t.length,orderBy:"ascending_date"}),U=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},Eo=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return z.Event.profitAndLoss;case"cash_flow":return z.Event.cashFlow;case"balance_sheet":return z.Event.balanceSheet;default:return z.Event.reports}},Ze=Pe.memo(function({report:e,displayOrder:t,reportFormat:r,analytics:l,isZeniUser:o,onAdditionalBalanceSelectionChanged:n,onAccountBalanceClick:p,onTableScroll:x,onElementCollapseStateChanged:u,isCompareModeOn:m,isPageFetchInProgress:f=!1,onTreeNodesReady:h,treeRef:i}){const d=me(),y=fe(),[s,c]=v.useState(void 0),[S,R]=v.useState(void 0),k=!(d==="small"||d==="medium-compact"),M=m===!0?"this_period_vs_period_before":"none";v.useEffect(()=>{const _={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:r,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ot(),showClassAccountNumber:o};if(s!=null&&Ie(S,e)&&f!==!0){const w=mo(s,_,e,k);c(w)}else{const w=bo(e,_,k,f);R(e),c(w)}},[m,e,f]),v.useEffect(()=>{s?.contentNodes!=null&&h?.(s.contentNodes)},[s,h]);const[T,O]=v.useState(5);return s!=null?a.jsxs(a.Fragment,{children:[a.jsx(St,{analytics:l,onLoad:_=>_?.trackPageLoaded(_o(e))}),a.jsx(go,{height:T,children:a.jsx(Yt,{backgroundColor:new Ct(y.colors.grey4),rootNodes:s,type:"name+balances_actual",compareMode:(()=>{let _=[];switch(e.reportId){case"profit_and_loss":{const w=e;_=(w.sections.expenses.balances.length>0?w.sections.expenses:w.sections.income).additionalBalances.map(A=>K(A));break}case"profit_and_loss_by_classes":{const w=e,A=(w.sections.expenses?.balances?.length??0)>0?w.sections.expenses:null,$=(w.sections.income?.balances?.length??0)>0?w.sections.income:null,N=A??$;N?.additionalBalances!=null&&(_=N.additionalBalances.map(F=>K(F)));break}case"cash_flow":_=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(w=>K(w));break;case"balance_sheet":_=e.sections.equity.additionalBalances.map(w=>K(w))}return _.length>0&&_.find(w=>w.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"})(),isSticky:{isStickyHeader:k,isStickyName:k},treeNodePadding:{left:ke.contentPaddingLeft.value(d),right:ke.contentPaddingRight.value(d)},treeRef:i,onAccountClick:p==null?void 0:(_,w,A)=>{p(_,w,A)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:_=>n?.(_==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(_,w)=>u?.(e.reportId,_,w),onReportTableHeightChanged:_=>{O(_+135)},onScroll:_=>x?.(e.reportId,_)})})]}):null},(e,t)=>Vo(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));Ze.displayName="Reports table";const Vo=(e,t,r)=>r.reduce((l,o)=>l===!0&&Ie(e[`${o}`],t[`${o}`]),!0),zo=b.div`
218
218
  padding-right: ${e=>G.contentRightPadding.valuePx(e.windowSize)};
219
219
  `,Me=b.div`
220
220
  margin-top: ${C.sp3};
@@ -1 +1 @@
1
- import{j as c}from"./pdf-CTJ16aEe.js";import{j as ee,i as ae,h as se,l as te,u as f,k as oe,R as ne,m as j}from"./core-oEkj6b51.js";import{ct as L,cR as C,HA as re,mO as F,gB as le,fF as ie,mT as ce,bt as de,HB as pe,bm as me,r7 as fe,HC as ue,HD as _e,q5 as he,HE as v,HF as be,HG as ye,HH as T,HI as O,HJ as D,HK as k,HL as H,Fh as ge,qP as Ce,qD as U,qE as V,qV as Ie,qI as x,q$ as we,HM as Se,HN as Te,HO as Re,HP as Fe,HQ as Oe,cA as De,cy as ke}from"./zeni-epic-state-cFF_NqwA.js";import{e as He,aE as G,aG as A,js as Y,k2 as Ae,_ as Ee,bj as Le,jz as E,J as Me,k3 as Pe,k4 as Be,jO as je}from"./index-BHAcVHeH.js";import"./mui-Cni6P-fz.js";import ve from"./NotFoundScreen-SRDW4_mE.js";import{F as Ue}from"./FeaturePreviewScreen-D_cOMPjM.js";import{a as y}from"./sentry-CY6wsJT-.js";import{u as Ve}from"./useInitialThreadRequest-DTIHWJqF.js";import{t as z,a as q}from"./routePaths-WWdcktge.js";import{M as xe}from"./MobileAppDrawer-CTcTm5tx.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ccfd1f53-7a41-4c0d-8487-f8a5f4de7751",e._sentryDebugIdIdentifier="sentry-dbid-ccfd1f53-7a41-4c0d-8487-f8a5f4de7751")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},ze=e=>{e(Te()),e(Re()),e(Fe()),e(Oe())},qe=oe(function(e){const o=Y.getSignedInUser(),i=e.tenantState.currentTenantId,u=L(e),a=u?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},t=C(e),n=pe(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:s,isZeniCOAUsed:n}},function(e,o){const{navigate:i,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Se(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(we(a)),s){const{isCompareModeOn:n,filter:l}=o,{additionalBalances:p,balancesRange:d}=l;let m=[...p];a==="year"&&(m=m.filter(_=>_!=="this_period_vs_same_period_last_year"&&_!=="this_period_vs_same_period_last_year_percent"&&_!=="same_period_last_year")),e(U(o.firstMonthOfFY,n,d.numberOfPeriods<4?4:d.numberOfPeriods,m)),p.length>0&&e(V(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}t!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,s)=>{e(x(a,s)),g(e)},onThisPeriodChanged:(a,s,t)=>{e(Ie(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,s,t,n)=>{e(U(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(V(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let n,l;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(n=s.balanceTimeFrame,l=ge(s)):s.balanceTimeFrame==="year"?(n="quarter",l={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),l!=null&&n!=null){const p=a.accountName===""?a.accountDescription:a.accountName,d=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(t?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,s.id,p,n,l)}return a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?q(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],p,n,l):a.accountType!=null?z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l):void 0})();if(d!=null){const m=je(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(k({scrollPosition:s}));break;case"balance_sheet":e(D({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{i("../../")},onUpdateAccountViewMode:a=>{e(ye({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",R(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",R(o.selectedReportID)),e(T("profit_and_loss"))),g(e)},onUpdateClassesToFilterOut:a=>{e(be({classesToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(v({classViewLayout:a}))},onOpenAccountViewMode:()=>{e(he())},onUpdateDisplayOrder:a=>{e(_e(a))},onUpdateReportFormat:a=>{ze(e),e(ue(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(fe("profit_and_loss_by_classes"))}}})(Pe);function Ge(){const e=He(),o=ee(),i=ae(),u=se(),{tenantEmailDomain:a}=te(),{useFeatureGate:s}=G(),{isFeatureEnabled:t}=s(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=s(A.isReportsCommentingEnabled);if(n==null)throw Error("Can't access reports page without signing in...");const M=f(r=>L(r)),N=M.company?.companyInfo.firstMonthOfFY??1,$=Ve(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),J=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),Z=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),K=f(r=>r.profitAndLossClassesViewState.uiState.classViewLayout);y.useEffect(()=>{!l&&h&&(p(!0),i(F(n.userId,!0,!0,!1)))},[l,n,i,h]),y.useEffect(()=>{l&&!d&&I==="Completed"&&h&&(i(F(n.userId,!1,!0,!1)),m(!0))},[l,d,I,h]),y.useEffect(()=>{if(l&&S.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&h)switch(w){case"profit_and_loss":case"profit_and_loss_by_classes":i(ce(b.timeframe));break;case"balance_sheet":i(ie(b.timeframe));break;case"cash_flow":i(le(b.timeframe))}},[l,w,S,h]);const P=Ee(),Q=P?.loggedInUserRole!=null&&de(P?.loggedInUserRole)!==!0,[W,X]=y.useState(!1),B=r=>{X(r)};return c.jsxs(c.Fragment,{children:[I==="Completed"?c.jsx(Le,{analytics:E,onLoad:r=>r.trackPageLoaded(Me.Event.reports)}):null,c.jsx(xe,{isAppContentDrawerOpen:W,handleDrawerToggle:B}),c.jsx(qe,{firstMonthOfFY:N,tenantEmailDomain:a,location:u,navigate:o,windowSize:e,classViewLayout:K,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:Z,hasTransactionAccess:Q,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:J.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:t,isReportsCommentingEnabled:_,initialOpenThreadRequest:$})]})}const R=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function ca(){const e=f(s=>L(s)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=De(i,e),a=ke(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(j,{path:"/",element:c.jsx(Ge,{})}),c.jsx(j,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
1
+ import{j as c}from"./pdf-DwfifS04.js";import{j as ee,i as ae,h as se,l as te,u as f,k as oe,R as ne,m as j}from"./core-CaikJZHD.js";import{ct as L,cR as C,HA as re,mO as F,gB as le,fF as ie,mT as ce,bt as de,HB as pe,bm as me,r7 as fe,HC as ue,HD as _e,q5 as he,HE as v,HF as be,HG as ye,HH as T,HI as O,HJ as D,HK as k,HL as H,Fh as ge,qP as Ce,qD as U,qE as V,qV as Ie,qI as x,q$ as we,HM as Se,HN as Te,HO as Re,HP as Fe,HQ as Oe,cA as De,cy as ke}from"./zeni-epic-state-lC5X-sam.js";import{e as He,aE as G,aG as A,js as Y,k2 as Ae,_ as Ee,bj as Le,jz as E,J as Me,k3 as Pe,k4 as Be,jO as je}from"./index-CuxRoVvZ.js";import"./mui-G2MlMTlr.js";import ve from"./NotFoundScreen-DxyQKnff.js";import{F as Ue}from"./FeaturePreviewScreen-DcXxWeeZ.js";import{a as y}from"./sentry-Cm8I7E9J.js";import{u as Ve}from"./useInitialThreadRequest-CtiCksTW.js";import{t as z,a as q}from"./routePaths-CkO80-xL.js";import{M as xe}from"./MobileAppDrawer-D4KAg1N8.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ccfd1f53-7a41-4c0d-8487-f8a5f4de7751",e._sentryDebugIdIdentifier="sentry-dbid-ccfd1f53-7a41-4c0d-8487-f8a5f4de7751")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},ze=e=>{e(Te()),e(Re()),e(Fe()),e(Oe())},qe=oe(function(e){const o=Y.getSignedInUser(),i=e.tenantState.currentTenantId,u=L(e),a=u?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},t=C(e),n=pe(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:s,isZeniCOAUsed:n}},function(e,o){const{navigate:i,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Se(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(we(a)),s){const{isCompareModeOn:n,filter:l}=o,{additionalBalances:p,balancesRange:d}=l;let m=[...p];a==="year"&&(m=m.filter(_=>_!=="this_period_vs_same_period_last_year"&&_!=="this_period_vs_same_period_last_year_percent"&&_!=="same_period_last_year")),e(U(o.firstMonthOfFY,n,d.numberOfPeriods<4?4:d.numberOfPeriods,m)),p.length>0&&e(V(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}t!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,s)=>{e(x(a,s)),g(e)},onThisPeriodChanged:(a,s,t)=>{e(Ie(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,s,t,n)=>{e(U(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(V(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let n,l;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(n=s.balanceTimeFrame,l=ge(s)):s.balanceTimeFrame==="year"?(n="quarter",l={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),l!=null&&n!=null){const p=a.accountName===""?a.accountDescription:a.accountName,d=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(t?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,s.id,p,n,l)}return a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?q(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],p,n,l):a.accountType!=null?z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l):void 0})();if(d!=null){const m=je(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(k({scrollPosition:s}));break;case"balance_sheet":e(D({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{i("../../")},onUpdateAccountViewMode:a=>{e(ye({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",R(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",R(o.selectedReportID)),e(T("profit_and_loss"))),g(e)},onUpdateClassesToFilterOut:a=>{e(be({classesToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(v({classViewLayout:a}))},onOpenAccountViewMode:()=>{e(he())},onUpdateDisplayOrder:a=>{e(_e(a))},onUpdateReportFormat:a=>{ze(e),e(ue(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(fe("profit_and_loss_by_classes"))}}})(Pe);function Ge(){const e=He(),o=ee(),i=ae(),u=se(),{tenantEmailDomain:a}=te(),{useFeatureGate:s}=G(),{isFeatureEnabled:t}=s(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=s(A.isReportsCommentingEnabled);if(n==null)throw Error("Can't access reports page without signing in...");const M=f(r=>L(r)),N=M.company?.companyInfo.firstMonthOfFY??1,$=Ve(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),J=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),Z=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),K=f(r=>r.profitAndLossClassesViewState.uiState.classViewLayout);y.useEffect(()=>{!l&&h&&(p(!0),i(F(n.userId,!0,!0,!1)))},[l,n,i,h]),y.useEffect(()=>{l&&!d&&I==="Completed"&&h&&(i(F(n.userId,!1,!0,!1)),m(!0))},[l,d,I,h]),y.useEffect(()=>{if(l&&S.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&h)switch(w){case"profit_and_loss":case"profit_and_loss_by_classes":i(ce(b.timeframe));break;case"balance_sheet":i(ie(b.timeframe));break;case"cash_flow":i(le(b.timeframe))}},[l,w,S,h]);const P=Ee(),Q=P?.loggedInUserRole!=null&&de(P?.loggedInUserRole)!==!0,[W,X]=y.useState(!1),B=r=>{X(r)};return c.jsxs(c.Fragment,{children:[I==="Completed"?c.jsx(Le,{analytics:E,onLoad:r=>r.trackPageLoaded(Me.Event.reports)}):null,c.jsx(xe,{isAppContentDrawerOpen:W,handleDrawerToggle:B}),c.jsx(qe,{firstMonthOfFY:N,tenantEmailDomain:a,location:u,navigate:o,windowSize:e,classViewLayout:K,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:Z,hasTransactionAccess:Q,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:J.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:t,isReportsCommentingEnabled:_,initialOpenThreadRequest:$})]})}const R=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function ca(){const e=f(s=>L(s)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=De(i,e),a=ke(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(j,{path:"/",element:c.jsx(Ge,{})}),c.jsx(j,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
@@ -1,4 +1,4 @@
1
- import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de,o as x,b as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-BHAcVHeH.js";import{a as z,b as ee}from"./sentry-CY6wsJT-.js";import{n as f}from"./mui-Cni6P-fz.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-_AEkJ5Cg-CVupoc41.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-CuxwOBs0-D4IOrabU.js";import{V as J}from"./toChartData-BODe4y2V-CHAJ4Jnp.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-LlOU9oLm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="914b91ea-0983-4f37-8023-48097005c719",e._sentryDebugIdIdentifier="sentry-dbid-914b91ea-0983-4f37-8023-48097005c719")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
1
+ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de,o as x,b as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-CuxRoVvZ.js";import{a as z,b as ee}from"./sentry-Cm8I7E9J.js";import{n as f}from"./mui-G2MlMTlr.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-C14YY2Rq--XZc2xV6.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-wh35N3no-D_L2t0iR.js";import{V as J}from"./toChartData-G5y-N82I-CpDZEMyX.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-3tylCZU1.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]="28996539-e366-44b3-94f6-c0e09b9ddf41",e._sentryDebugIdIdentifier="sentry-dbid-28996539-e366-44b3-94f6-c0e09b9ddf41")}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,23 +1,23 @@
1
- import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as ie,eG as Tt,eH as Dt,eI as It,eJ as Pt,a5 as k,eK as kt,b as v,eL as Mt,eM as Be,eN as Fe,eO as Re,w as H,c$ as O,f as j,eP as At,eQ as E,d5 as V,eR as Bt,eS as Ft,bn as Le,o as n,a9 as Rt,m as d,O as Lt,u as zt,bw as Nt,d as Ot,M as Et,eT as Vt,bH as Zt,l as ce,H as me,eU as Gt,eV as Yt,aD as _t,n as Ut,at as qt,eW as Ht,D as tt,b6 as Kt,C as nt,aR as Wt,eX as Qt}from"./index-BHAcVHeH.js";import{a as G}from"./sentry-CY6wsJT-.js";import{n as a}from"./mui-Cni6P-fz.js";import{cp as ze,cj as Ne,bX as D,c4 as Xt,FW as Jt,bG as re,c6 as en}from"./zeni-epic-state-cFF_NqwA.js";import{t as tn,o as nn}from"./LowBalancePopup-Bl_PaIUx-yOClgIGf.js";import{S as Z}from"./LabeledText-Bo7B-LrF-DECCi3EJ.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="f1abcbc8-7b6e-4fe7-b5e0-204fa47004b8",e._sentryDebugIdIdentifier="sentry-dbid-f1abcbc8-7b6e-4fe7-b5e0-204fa47004b8")}catch{}})();const at=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:Ve}=ln,Ze=({attachment:e})=>{const[y,x]=G.useState(!1),M=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>M===!1?x(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Gt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Yt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:X,retryPayment:ct})=>{const s=wt(),c=$t(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),I=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,i=vt(A,ot,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),S=Oe.visual.MMMDCommaYYYYformat,xe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:i?.method.includes("international")===!0?jt(xe,i):e.recipientTotalAmount.amount+(i?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=G.useState(!1),[te,be]=G.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:s,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);G.useEffect(()=>{(I?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),ge())},[I,J,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&Y?.code?Y:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&Y?.code?Y:N,ae=()=>{pe()},$e=()=>{pe()},_=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,U=y.allApprovalRules.length>0,gt=ze(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-z.amount:p.amount,i?.fee.currencyCode??Ne.currencyCode,i?.fee.currencySymbol??Ne.currencySymbol),f=Xt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ge(h,U,e.isBillMarkedForRetry),le=st&&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??"",Me=Qt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}})(),ye(!1,{}))},xt=Jt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,q]=G.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{dt(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{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(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:_?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:s,style:lt,children:[s==="small"?t.jsxs(Pn,{windowSize:s,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ue,{windowSize:s,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),s!=="small"?t.jsx(bn,{children:t.jsx(Ue,{windowSize:s,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(Vn,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Nn,{children:[t.jsx(En,{children:o.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Mt(l);return l!=null?t.jsx(On,{children:at.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(W,{children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(W,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?o.invoiceNo:null," ",l.documentId]})}),t.jsxs(W,{style:{width:"25%"},children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(He,{children:o.pay}),t.jsx(Ke,{children:t.jsx(Re,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(He,{children:o.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(fn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Z,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,s):g,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Z,{label:{label:o.paymentMethod,width:L},style:{width:"auto"},value:ie(i?.method??""),additionalInfoLabel:f?h?void 0:o.paymentOutsideZeni.reviewInfo:i?.method!=null&&i.method.includes(D)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&A&&ee===$.currencyCode?Ht(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(K,{}),f||_==null?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Z,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:_.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(_.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(K,{})]}),f?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Z,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Z,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(s,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:s,children:[t.jsxs(yn,{children:[t.jsx(dn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(_e,{children:[t.jsx(de,{children:i.method.includes(D)&&ee!==$.currencyCode?Ve.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(de,{children:Ve.transactionFee}),t.jsx(se,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(sn,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Rt,{cancelBtn:{label:C&&!h?o.paymentOutsideZeni.markAsPaid:o.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&I?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ye(!1,C,h,U,s)}},primaryBtn:{label:Ge(h,U,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?q(!0):Ce()},style:{width:Ye(!0,C,h,U,s)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Zn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Yn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Gn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?t.jsxs(An,{children:[o.internationalText1,t.jsx(Bn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:o.internationalTerms}),o.internationalText2]}):null})]})},Ge=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ye=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(Kt)`
1
+ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as ie,eG as Tt,eH as Dt,eI as It,eJ as Pt,a5 as k,eK as kt,b as v,eL as Mt,eM as Be,eN as Fe,eO as Re,w as K,c$ as O,f as j,eP as At,eQ as E,d5 as _,eR as Bt,eS as Ft,bn as Le,o as n,a9 as Rt,m as s,O as Lt,u as zt,bw as Nt,d as Ot,M as Et,eT as _t,bH as Vt,l as ce,H as me,eU as Zt,eV as Gt,aD as Yt,n as qt,at as Ht,eW as Kt,D as tt,b6 as Ut,C as nt,aR as Wt,eX as Qt}from"./index-CuxRoVvZ.js";import{a as Z}from"./sentry-Cm8I7E9J.js";import{n as a}from"./mui-G2MlMTlr.js";import{cp as ze,cj as Ne,bX as D,c4 as Xt,FW as Jt,bG as re,c6 as en}from"./zeni-epic-state-lC5X-sam.js";import{t as tn,o as nn}from"./LowBalancePopup-CBPl_udd-Nqllub28.js";import{S as V}from"./LabeledText-A1h_ionS-CcjmiFmI.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.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]="fdd25088-f82b-499a-a482-00dc334c5b98",e._sentryDebugIdIdentifier="sentry-dbid-fdd25088-f82b-499a-a482-00dc334c5b98")}catch{}})();const at=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:_e}=ln,Ve=({attachment:e})=>{const[y,x]=Z.useState(!1),M=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>M===!1?x(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Gt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:dt,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:X,retryPayment:ct})=>{const d=wt(),c=$t(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),I=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,i=vt(A,ot,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),S=Oe.visual.MMMDCommaYYYYformat,xe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:i?.method.includes("international")===!0?jt(xe,i):e.recipientTotalAmount.amount+(i?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:d,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(I?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),ge())},[I,J,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,G=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&G?.code?G:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&G?.code?G:N,ae=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,oe=ie(i?.method??""),ve=oe.replace("Same Day",""),ht=e.isCollectToAccountInfoFromVendorContact?t.jsx(Tt,{paymentTypeLabel:ve,onClick:()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)}}):o.addedByZeni,q=y.allApprovalRules.length>0,gt=ze(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-z.amount:p.amount,i?.fee.currencyCode??Ne.currencyCode,i?.fee.currencySymbol??Ne.currencySymbol),f=Xt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ze(h,q,e.isBillMarkedForRetry),le=dt&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&H(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",yt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&((()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,T=e.recurringConfig,ft=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),i?.method!=null&&l!=null){const bt=f?o.paymentOutsideZeni.offline:ie(i.method);if(w.trackBillPaySendForApproval(bt,l.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(T?.startDate?.toString()??"").format(S),endDate:re(T?.endDate?.toString()??"").format(S),frequency:T?.frequency??"monthly",totalAmount:ft.amount,totalPaymentCycles:T?.totalPaymentCycles??0,isApprovalRequired:T?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?T?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?T?.updateRecurringBills==="all":void 0}),le!=null){const De=P?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Qt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}})(),ye(!1,{}))},xt=Jt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,H]=Z.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{st(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{H(!1),ae()},onClickAway:()=>{H(!1)}}):null,t.jsx(It,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Pt,{companyName:kt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:d,style:lt,children:[d==="small"?t.jsxs(Pn,{windowSize:d,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(qe,{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(qe,{windowSize:d,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(_n,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Nn,{children:[t.jsx(En,{children:o.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Mt(l);return l!=null?t.jsx(On,{children:at.includes(d)?t.jsxs(He,{windowSize:d,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(W,{children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(He,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(W,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?o.invoiceNo:null," ",l.documentId]})}),t.jsxs(W,{style:{width:"25%"},children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:k("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(Ke,{children:o.pay}),t.jsx(Ue,{children:t.jsx(Re,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ke,{children:o.to}),t.jsx(Ue,{children:e.vendor?.name})]}),t.jsxs(fn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(V,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,d):g,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(V,{label:{label:o.paymentMethod,width:L},style:{width:"auto"},value:ie(i?.method??""),additionalInfoLabel:f?h?void 0:o.paymentOutsideZeni.reviewInfo:i?.method!=null&&i.method.includes(D)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&A&&ee===$.currencyCode?Kt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(U,{}),f||Y==null?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(V,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:Y.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(Y.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(U,{})]}),f?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(V,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(V,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:d,children:[t.jsxs(yn,{children:[t.jsx(sn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ye,{children:[t.jsx(se,{children:i.method.includes(D)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(se,{children:_e.transactionFee}),t.jsx(de,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(dn,{children:[t.jsx(se,{children:Ee.total}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Rt,{cancelBtn:{label:C&&!h?o.paymentOutsideZeni.markAsPaid:o.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&I?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ge(!1,C,h,q,d)}},primaryBtn:{label:Ze(h,q,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?H(!0):Ce()},style:{width:Ge(!0,C,h,q,d)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Vn,{windowSize:d,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Gn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Zn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?t.jsxs(An,{children:[o.internationalText1,t.jsx(Bn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:o.internationalTerms}),o.internationalText2]}):null})]})},Ze=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ge=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(Ut)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
5
5
  &:hover {
6
6
  color: ${e=>e.theme.colors.primary};
7
7
  }
8
- `,_e=a(nt)`
8
+ `,Ye=a(nt)`
9
9
  display: flex;
10
10
  justify-content: space-between;
11
11
  padding-bottom: ${n.sp1};
12
- `,se=a.div`
13
- color: ${e=>e.theme.colors.brandColorPearl};
14
12
  `,de=a.div`
13
+ color: ${e=>e.theme.colors.brandColorPearl};
14
+ `,se=a.div`
15
15
  color: ${e=>e.theme.colors.hero};
16
- `,sn=a(nt)`
16
+ `,dn=a(nt)`
17
17
  display: flex;
18
18
  justify-content: space-between;
19
19
  padding-top: ${n.sp1};
20
- `,dn=a.div``,cn=a.div`
20
+ `,sn=a.div``,cn=a.div`
21
21
  background-color: ${j.neutralGrey3Dark};
22
22
  height: 1px;
23
23
  width: 280px;
@@ -68,13 +68,13 @@ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as i
68
68
  border-radius: ${n.sp2};
69
69
  margin-bottom: ${n.sp3};
70
70
  margin-top: ${n.sp3};
71
- `,K=a.div`
71
+ `,U=a.div`
72
72
  display: flex;
73
73
  flex: 1;
74
74
  background-color: ${e=>e.theme.colors.grey3};
75
75
  min-height: 1px;
76
76
  max-height: 1px;
77
- `,Ue=a(Et)`
77
+ `,qe=a(Et)`
78
78
  color: ${e=>e.theme.colors.primary};
79
79
  ${e=>`${an.sectionTitle.style(e.windowSize)}`};
80
80
  margin-left: ${e=>m.sectionTitleMarginLeft.valuePx(e.windowSize)};
@@ -102,10 +102,10 @@ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as i
102
102
  `,jn=a(ce)`
103
103
  padding-bottom: ${n.sp3};
104
104
  color: ${j.brandColorGoldDark};
105
- `,Sn=a(Zt)`
105
+ `,Sn=a(Vt)`
106
106
  padding-top: ${n.sp3};
107
107
  color: ${j.brandColorGoldDark};
108
- `,qe=a.div`
108
+ `,He=a.div`
109
109
  display: flex;
110
110
  flex-direction: ${e=>at.includes(e.windowSize)?"column":"row"};
111
111
  width: 100%;
@@ -121,11 +121,11 @@ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as i
121
121
  `,Dn=a.div`
122
122
  display: flex;
123
123
  padding-top: ${n.sp3};
124
- `,He=a(Ut)`
124
+ `,Ke=a(qt)`
125
125
  display: flex;
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  margin-right: ${n.sp1};
128
- `,Ke=a(qt)`
128
+ `,Ue=a(Ht)`
129
129
  display: flex;
130
130
  color: ${e=>e.theme.colors.primary};
131
131
  margin-right: ${n.sp1};
@@ -198,7 +198,7 @@ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as i
198
198
  display: flex;
199
199
  align-items: center;
200
200
  margin-right: ${n.sp1};
201
- `,Xe=a(_t)`
201
+ `,Xe=a(Yt)`
202
202
  cursor: pointer;
203
203
  width: ${n.sp4};
204
204
  height: ${n.sp4};
@@ -260,18 +260,18 @@ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as i
260
260
  `,En=a(me)`
261
261
  margin-top: ${n.sp3};
262
262
  color: ${j.alert};
263
- `,Vn=a(Vt)`
263
+ `,_n=a(_t)`
264
264
  min-width: ${n.sp4};
265
265
  height: ${n.sp4};
266
266
  width: ${n.sp4};
267
267
  margin-top: ${n.sp3};
268
268
  margin-left: ${n.sp4};
269
269
  color: ${j.brandColorGoldDark};
270
- `,Zn=a.div`
270
+ `,Vn=a.div`
271
271
  display: flex;
272
272
  justify-content: flex-end;
273
273
  margin-right: ${e=>m.footerRightIconMarginRight.valuePx(e.windowSize)};
274
- `,Gn=a(Wt)`
274
+ `,Zn=a(Wt)`
275
275
  cursor: pointer;
276
276
  color: ${e=>e.theme.colors.hero};
277
277
  width: ${n.sp4};
@@ -279,7 +279,7 @@ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as i
279
279
  &:hover {
280
280
  color: ${e=>e.theme.colors.primary};
281
281
  }
282
- `,Yn=a.div`
282
+ `,Gn=a.div`
283
283
  display: flex;
284
284
  cursor: pointer;
285
285
  color: ${e=>e.theme.colors.grey1};
@@ -1,4 +1,4 @@
1
- import{e as P,V as i,b as x,o as r,a9 as B,x as d,a8 as L,d as I,M as W,f as s,l as b,c1 as D,L as R,C as S,aC as G,m as o,dO as A,aA as _,i9 as F}from"./index-BHAcVHeH.js";import{n as t}from"./mui-Cni6P-fz.js";import{a as w}from"./sentry-CY6wsJT-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="699f086a-7225-4684-91b8-ebe09172dae6",e._sentryDebugIdIdentifier="sentry-dbid-699f086a-7225-4684-91b8-ebe09172dae6")}catch{}})();const a={containerMarginTop:new d(0,o[2]),containerMarginLeft:new d(o[3],o[8]),containerMarginRight:new d(o[3],o[8]),subTitleMarginBottom:new d(o[2],o[2]),titleMarginBotom:new d(o[0],o[2]),titleMarginRight:new d(o[0],o[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(o[3],o[3],o[8]),navBarPaddingRight:new d(o[3],o[3],o[8])},H={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:m,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":x("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(V,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:m.map(n=>{const h=n.reviewStatus.code==="error",c=n.reviewStatus.code==="warning"||n.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(n.id),"data-testid":x("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:O(n)}),i.jsxs(ne,{children:[i.jsxs(u,{children:[i.jsx($,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:n.leftSideText.title}),i.jsx($,{isWarning:c,isError:h,children:n.rightSideText.title})]}),i.jsxs(u,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:n.leftSideText.subTitle}),l!=="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:n.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:n.rightSideText.additonalInfo})]}):null]})]},n.id)})})]}),z?i.jsx(B,{primaryBtn:C,cancelBtn:T,showCancel:!E}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),Z=t.div`
1
+ import{e as P,V as i,b as x,o as r,a9 as B,x as d,a8 as L,d as I,M as W,f as s,l as b,c1 as D,L as R,C as S,aC as G,m as o,dO as A,aA as _,i9 as F}from"./index-CuxRoVvZ.js";import{n as t}from"./mui-G2MlMTlr.js";import{a as w}from"./sentry-Cm8I7E9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="699f086a-7225-4684-91b8-ebe09172dae6",e._sentryDebugIdIdentifier="sentry-dbid-699f086a-7225-4684-91b8-ebe09172dae6")}catch{}})();const a={containerMarginTop:new d(0,o[2]),containerMarginLeft:new d(o[3],o[8]),containerMarginRight:new d(o[3],o[8]),subTitleMarginBottom:new d(o[2],o[2]),titleMarginBotom:new d(o[0],o[2]),titleMarginRight:new d(o[0],o[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(o[3],o[3],o[8]),navBarPaddingRight:new d(o[3],o[3],o[8])},H={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:m,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":x("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(V,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:m.map(n=>{const h=n.reviewStatus.code==="error",c=n.reviewStatus.code==="warning"||n.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(n.id),"data-testid":x("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:O(n)}),i.jsxs(ne,{children:[i.jsxs(u,{children:[i.jsx($,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:n.leftSideText.title}),i.jsx($,{isWarning:c,isError:h,children:n.rightSideText.title})]}),i.jsxs(u,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:n.leftSideText.subTitle}),l!=="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:n.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:n.rightSideText.additonalInfo})]}):null]})]},n.id)})})]}),z?i.jsx(B,{primaryBtn:C,cancelBtn:T,showCancel:!E}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),Z=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1 +1 @@
1
- import{j as a}from"./pdf-CTJ16aEe.js";import{aE as x,js as w,aF as b,bj as I,jz as p,J as F,mj as L,aG as P}from"./index-BHAcVHeH.js";import"./mui-Cni6P-fz.js";import m from"./NotFoundScreen-SRDW4_mE.js";import{a as d}from"./sentry-CY6wsJT-.js";import{i as R,u as y,j as T,h as V,k as O,R as U,m as u}from"./core-oEkj6b51.js";import{ct as z,O3 as C,KZ as A,O4 as k,qu as G,cG as q,O5 as Y,qs as J}from"./zeni-epic-state-cFF_NqwA.js";import{R as j}from"./ReferralListScreen-DPkRtA1r.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./MobileAppDrawer-CTcTm5tx.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]="754cbeee-0102-40b4-9745-982d78d44d2b",e._sentryDebugIdIdentifier="sentry-dbid-754cbeee-0102-40b4-9745-982d78d44d2b")}catch{}})();const K=O(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(J())},onUpdateInviteFormLocalData:s=>{e(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),Z=()=>{const e=R(),[t,n]=d.useState(!1),[o,s]=d.useState(!1),r=y(i=>z(i)),c=T(),D=V(),{useDynamicConfig:g}=x(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const l=y(i=>C(i)),_=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:v}=g(b.zeniAccountsConfig),E=A(v);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&o===!1&&(e(G()),s(!0))},[]),d.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(q(!0)))},[l.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.jsx(K,{navigate:c,location:D,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:E.maxAnnualPercentageYield})]})};function le(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(P.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(j,{}):a.jsx(m,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(j,{isReferralDrawerOpen:!0}):a.jsx(m,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(Z,{}):a.jsx(m,{})}),a.jsx(u,{path:"*",element:a.jsx(m,{})})]})}export{le as default};
1
+ import{j as a}from"./pdf-DwfifS04.js";import{aE as x,js as w,aF as b,bj as I,jz as p,J as F,mj as L,aG as P}from"./index-CuxRoVvZ.js";import"./mui-G2MlMTlr.js";import m from"./NotFoundScreen-DxyQKnff.js";import{a as d}from"./sentry-Cm8I7E9J.js";import{i as R,u as y,j as T,h as V,k as O,R as U,m as u}from"./core-CaikJZHD.js";import{ct as z,O3 as C,KZ as A,O4 as k,qu as G,cG as q,O5 as Y,qs as J}from"./zeni-epic-state-lC5X-sam.js";import{R as j}from"./ReferralListScreen-BaUv0jQW.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./MobileAppDrawer-D4KAg1N8.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]="754cbeee-0102-40b4-9745-982d78d44d2b",e._sentryDebugIdIdentifier="sentry-dbid-754cbeee-0102-40b4-9745-982d78d44d2b")}catch{}})();const K=O(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(J())},onUpdateInviteFormLocalData:s=>{e(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),Z=()=>{const e=R(),[t,n]=d.useState(!1),[o,s]=d.useState(!1),r=y(i=>z(i)),c=T(),D=V(),{useDynamicConfig:g}=x(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const l=y(i=>C(i)),_=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:v}=g(b.zeniAccountsConfig),E=A(v);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&o===!1&&(e(G()),s(!0))},[]),d.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(q(!0)))},[l.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.jsx(K,{navigate:c,location:D,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:E.maxAnnualPercentageYield})]})};function le(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(P.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(j,{}):a.jsx(m,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(j,{isReferralDrawerOpen:!0}):a.jsx(m,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(Z,{}):a.jsx(m,{})}),a.jsx(u,{path:"*",element:a.jsx(m,{})})]})}export{le as default};
@@ -1,4 +1,4 @@
1
- import{eg as c,eh as f,V as s,bn as h,o as d,b as l,O as g,j as x,C as p}from"./index-BHAcVHeH.js";import{n}from"./mui-Cni6P-fz.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]="015e2f1f-770c-4da9-973f-41a1274d167f",e._sentryDebugIdIdentifier="sentry-dbid-015e2f1f-770c-4da9-973f-41a1274d167f")}catch{}})();const{hyphen:i}=g.getLocalizedStrings().common.strings,m=n.div``,y=n.div`
1
+ import{eg as c,eh as f,V as s,bn as h,o as d,b as l,O as g,j as x,C as p}from"./index-CuxRoVvZ.js";import{n}from"./mui-G2MlMTlr.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]="015e2f1f-770c-4da9-973f-41a1274d167f",e._sentryDebugIdIdentifier="sentry-dbid-015e2f1f-770c-4da9-973f-41a1274d167f")}catch{}})();const{hyphen:i}=g.getLocalizedStrings().common.strings,m=n.div``,y=n.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{a7 as U,hI as X,g4 as fe,e3 as Le,hJ as we,T as Je,hK as Me,c8 as _e,c9 as Ve,V as a,A as Pe,bR as Fe,bS as Ne,bT as $e,a9 as qe,hL as Re,hM as Be,O as xe,E as ue,hN as Se,hO as We,cc as Ue,e as ze,h$ as He,ga as ie,m as q,f as De,x as ye,cd as Ke,hP as Ge,hQ as Qe,hR as Ye,o as V}from"./index-BHAcVHeH.js";import{a as D}from"./sentry-CY6wsJT-.js";import{n as B}from"./mui-Cni6P-fz.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-cFF_NqwA.js";import{l as et,a as tt,s as lt,r as at}from"./ScheduleSequenceTable-Dv831gVJ-OIQZXWKl.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="89d2975d-12f9-49db-97ee-26c371652e9d",e._sentryDebugIdIdentifier="sentry-dbid-89d2975d-12f9-49db-97ee-26c371652e9d")}catch{}})();const R={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=B.div`
1
+ import{a7 as U,hI as X,g4 as fe,e3 as Le,hJ as we,T as Je,hK as Me,c8 as _e,c9 as Ve,V as a,A as Pe,bR as Fe,bS as Ne,bT as $e,a9 as qe,hL as Re,hM as Be,O as xe,E as ue,hN as Se,hO as We,cc as Ue,e as ze,h$ as He,ga as ie,m as q,f as De,x as ye,cd as Ke,hP as Ge,hQ as Qe,hR as Ye,o as V}from"./index-CuxRoVvZ.js";import{a as D}from"./sentry-Cm8I7E9J.js";import{n as B}from"./mui-G2MlMTlr.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-lC5X-sam.js";import{l as et,a as tt,s as lt,r as at}from"./ScheduleSequenceTable-DNPID_7F-Dpy7XGsr.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.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]="85df651f-bb0c-4c28-939e-923c3ff768b2",e._sentryDebugIdIdentifier="sentry-dbid-85df651f-bb0c-4c28-939e-923c3ff768b2")}catch{}})();const R={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=B.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -18,7 +18,7 @@ import{a7 as U,hI as X,g4 as fe,e3 as Le,hJ as we,T as Je,hK as Me,c8 as _e,c9 a
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  margin: ${V.sp4} ${V.sp8} ${V.sp0} ${V.sp8};
21
- `,_=(e,o)=>`${e}.${o}`;function ot({sectionId:e,jeScheduledTransaction:o,updateStatus:y,allAccountOptions:l,allAccountList:s,allClassList:h,allClassOptions:c,allDepreciationAccountList:m,allDepreciationAccountOptions:x,allMonthOptions:v,uncategorizedAccounts:I,selectedAccount:A,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:j,selectedDate:k,selectedMonths:O,selectedPostingDay:C,lastDayOfMonth:T,isDisabled:p,allowCreateSchedule:L,onCreateSchedule:d,onDelete:te,onMarkAsComplete:K}){const{resetField:g}=Ue(),le=_(e,"scheduleExpenseCategory"),ae=_(e,"scheduleClass"),se=_(e,"accumulatedDepreciationCategory"),ne=_(e,"assetId"),G=_(e,"startDate"),b=_(e,"postingDate"),u=_(e,"months"),t=xe.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,f={valueContainer:n=>({...n,overflow:"unset"})},i=ze(),oe=He({startDate:o.baseTransaction.date,endDate:o.baseTransaction.date.add(1,"year")}),W=C==null&&T==null?void 0:T===!0?"lastDayOfMonth":"day",N=n=>[I.expense?.qboId,I.income?.qboId].includes(n),E=o.scheduledJournalEntry.flatMap(n=>n.error);return a.jsxs(nt,{children:[a.jsx(lt,{scheduleType:"fixed_assets",status:o.status.code,jeScheduleId:o.jeScheduleId,allowCreateSchedule:L,onDelete:()=>{o.jeScheduleId!=null&&te(o.jeScheduleId)},isUpdating:y==="In-Progress",onMarkAsComplete:K,onCreateSchedule:d}),a.jsx(ue,{controller:L===!0,children:a.jsxs(st,{children:[a.jsx(ie,{isDisabled:E.includes("debit_category_deleted")?void 0:p,isLoading:!1,label:{label:t.expenseCategory,width:R.labelWidth.value(i)},groupedSingleSelectField:{customPlaceholderColor:E.includes("debit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:le,placeholder:t.expenseCategoryPlaceholder,valueToId:n=>(w=>s.filter(S=>S.qboId===w)[0]?.qboId)(n),defaultValue:{selectedOption:A,allOptions:l},registerOptions:{required:!0,validate:n=>!!n.selectedOption},customStyleConfig:f},disableCurrentOption:N,style:{borderTopLeftRadius:q[2],borderTopRightRadius:q[2]}}),a.jsx(z,{}),a.jsx(ie,{isDisabled:p,isLoading:!1,label:{label:t.class,width:R.labelWidth.value(i)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ae,placeholder:t.classPlaceholder,valueToId:n=>(w=>h.filter(S=>S.classId===w)[0]?.accountingClassNumber)(n),defaultValue:{selectedOption:P,allOptions:c},registerOptions:{required:!0,validate:n=>!!n.selectedOption},customStyleConfig:f},style:{borderTopLeftRadius:q[0],borderTopRightRadius:q[0]}}),a.jsx(z,{}),a.jsx(ie,{isDisabled:E.includes("credit_category_deleted")?void 0:p,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:R.depCategoryLabelWidth.value(i)},groupedSingleSelectField:{customPlaceholderColor:E.includes("credit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:n=>(w=>m.filter(S=>S.qboId===w)[0]?.qboId)(n),defaultValue:{selectedOption:F,allOptions:x},registerOptions:{required:!0,validate:n=>!!n.selectedOption},customStyleConfig:f},disableCurrentOption:N,style:{borderTopLeftRadius:q[0],borderTopRightRadius:q[0]}}),a.jsx(z,{}),a.jsx(Ke,{label:{label:t.assetId,width:R.labelWidth.value(i)},style:{width:"auto"},text:{type:"text",name:ne,defaultValue:j,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:q[3],required:!0,validate:n=>!!n}},isDisabled:p}),a.jsx(z,{}),a.jsx(Ge,{label:{label:t.startMonth,width:R.labelWidth.value(i)},monthSelectorField:{name:G,placeholder:t.startMonthPlaceholder,defaultValue:k,showDownChevron:!1,isDisabled:p,monthsAndYears:oe},isDisabled:p}),a.jsx(z,{}),a.jsx(at,{label:{label:t.postingDate,width:R.labelWidth.value(i)},isDisabled:p,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:b,defaultValue:{type:W,dayOfMonth:C},onSaveClick:()=>{},onCancelClick:()=>{g(b)}}}),a.jsx(z,{}),a.jsx(Qe,{label:{label:t.months,width:R.labelWidth.value(i)},singleSelectNumericField:{name:u,isDisabled:p,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:O!=null?v[O-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:n=>!!n.selectedOption}}})]})}),a.jsx(ue,{controller:L===!1,children:a.jsx(Ye,{text:t.scheduleMarkedAsCompleted})})]})}const dt=B.div`
21
+ `,_=(e,o)=>`${e}.${o}`;function ot({sectionId:e,jeScheduledTransaction:o,updateStatus:y,allAccountOptions:l,allAccountList:s,allClassList:h,allClassOptions:c,allDepreciationAccountList:m,allDepreciationAccountOptions:x,allMonthOptions:v,uncategorizedAccounts:I,selectedAccount:A,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:j,selectedDate:k,selectedMonths:O,selectedPostingDay:C,lastDayOfMonth:T,isDisabled:p,allowCreateSchedule:L,onCreateSchedule:d,onDelete:te,onMarkAsComplete:K}){const{resetField:b}=Ue(),le=_(e,"scheduleExpenseCategory"),ae=_(e,"scheduleClass"),se=_(e,"accumulatedDepreciationCategory"),ne=_(e,"assetId"),G=_(e,"startDate"),g=_(e,"postingDate"),u=_(e,"months"),t=xe.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,f={valueContainer:n=>({...n,overflow:"unset"})},i=ze(),oe=He({startDate:o.baseTransaction.date,endDate:o.baseTransaction.date.add(1,"year")}),W=C==null&&T==null?void 0:T===!0?"lastDayOfMonth":"day",N=n=>[I.expense?.qboId,I.income?.qboId].includes(n),E=o.scheduledJournalEntry.flatMap(n=>n.error);return a.jsxs(nt,{children:[a.jsx(lt,{scheduleType:"fixed_assets",status:o.status.code,jeScheduleId:o.jeScheduleId,allowCreateSchedule:L,onDelete:()=>{o.jeScheduleId!=null&&te(o.jeScheduleId)},isUpdating:y==="In-Progress",onMarkAsComplete:K,onCreateSchedule:d}),a.jsx(ue,{controller:L===!0,children:a.jsxs(st,{children:[a.jsx(ie,{isDisabled:E.includes("debit_category_deleted")?void 0:p,isLoading:!1,label:{label:t.expenseCategory,width:R.labelWidth.value(i)},groupedSingleSelectField:{customPlaceholderColor:E.includes("debit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:le,placeholder:t.expenseCategoryPlaceholder,valueToId:n=>(w=>s.filter(S=>S.qboId===w)[0]?.qboId)(n),defaultValue:{selectedOption:A,allOptions:l},registerOptions:{required:!0,validate:n=>!!n.selectedOption},customStyleConfig:f},disableCurrentOption:N,style:{borderTopLeftRadius:q[2],borderTopRightRadius:q[2]}}),a.jsx(z,{}),a.jsx(ie,{isDisabled:p,isLoading:!1,label:{label:t.class,width:R.labelWidth.value(i)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ae,placeholder:t.classPlaceholder,valueToId:n=>(w=>h.filter(S=>S.classId===w)[0]?.accountingClassNumber)(n),defaultValue:{selectedOption:P,allOptions:c},registerOptions:{required:!0,validate:n=>!!n.selectedOption},customStyleConfig:f},style:{borderTopLeftRadius:q[0],borderTopRightRadius:q[0]}}),a.jsx(z,{}),a.jsx(ie,{isDisabled:E.includes("credit_category_deleted")?void 0:p,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:R.depCategoryLabelWidth.value(i)},groupedSingleSelectField:{customPlaceholderColor:E.includes("credit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:n=>(w=>m.filter(S=>S.qboId===w)[0]?.qboId)(n),defaultValue:{selectedOption:F,allOptions:x},registerOptions:{required:!0,validate:n=>!!n.selectedOption},customStyleConfig:f},disableCurrentOption:N,style:{borderTopLeftRadius:q[0],borderTopRightRadius:q[0]}}),a.jsx(z,{}),a.jsx(Ke,{label:{label:t.assetId,width:R.labelWidth.value(i)},style:{width:"auto"},text:{type:"text",name:ne,defaultValue:j,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:q[3],required:!0,validate:n=>!!n}},isDisabled:p}),a.jsx(z,{}),a.jsx(Ge,{label:{label:t.startMonth,width:R.labelWidth.value(i)},monthSelectorField:{name:G,placeholder:t.startMonthPlaceholder,defaultValue:k,showDownChevron:!1,isDisabled:p,monthsAndYears:oe},isDisabled:p}),a.jsx(z,{}),a.jsx(at,{label:{label:t.postingDate,width:R.labelWidth.value(i)},isDisabled:p,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:g,defaultValue:{type:W,dayOfMonth:C},onSaveClick:()=>{},onCancelClick:()=>{b(g)}}}),a.jsx(z,{}),a.jsx(Qe,{label:{label:t.months,width:R.labelWidth.value(i)},singleSelectNumericField:{name:u,isDisabled:p,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:O!=null?v[O-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:n=>!!n.selectedOption}}})]})}),a.jsx(ue,{controller:L===!1,children:a.jsx(Ye,{text:t.scheduleMarkedAsCompleted})})]})}const dt=B.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
@@ -34,4 +34,4 @@ import{a7 as U,hI as X,g4 as fe,e3 as Le,hJ as we,T as Je,hK as Me,c8 as _e,c9 a
34
34
  `,rt=B.div`
35
35
  display: flex;
36
36
  justify-content: center;
37
- `,ge="scheduleDetailsPage",Z="scheduleDetailsFixedAssetsSection",ee="scheduleDetailsListSection",ut=xe.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ht}}=ut;function jt({analytics:e,controllerUserDetails:o,expenseAutomationSelectedPeriod:y,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:h,usedInExpenseAutomation:c,onNavigateBack:m,onEditAmount:x,onJELinkClick:v,onSave:I,onDelete:A,onDetailPageChange:P,onViewLinkedJE:F,onTransactionClick:j,onMarkAsComplete:k,removeJeScheduleTransactionKey:O}){const[C,T]=D.useState(!1),p=U(l.updateStatus.fetchState),L=U(l.selectedJEScheduleTransaction?.status.code),d=U(l.deleteStatus.fetchState),[te,K]=D.useState(!1),g=l.scheduleDetailsLocalData.fixed_assets,le=U(g.jeScheduleDetails.length),ae=U(g.selectedDate),se=U(g.selectedDayOfMonth),[ne,G]=D.useState(!0),b=l.selectedJEScheduleTransaction?.vendor,u=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,f=Xe(o.controllers),i=Ze(o.controllerUserIds),oe={onOkClick:()=>{T(!1),m()},onCancelClick:()=>{T(!1)}};D.useEffect(()=>{p==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(u!=null&&t!=null&&e.trackScheduleDetailsSaved(X({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:u,vendor:b,controllerEmails:f,controllerUserIds:i})),c===!0&&t?.jeScheduleTransactionKey!=null&&L==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&O(t.jeScheduleTransactionKey,{month:y.month,year:y.year}),m())},[y,L,l.selectedJEScheduleTransaction?.status.code,e,m,p,O,c,l.updateStatus,t,u,b,f,i]),D.useEffect(()=>{d==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&m()},[d,l.deleteStatus,m]);const W=fe(l.accountListNestedAccountHierarchy),N=fe(l.allDepreciationAccountListNestedAccountHierarchy),E=Le(l.classListNestedAccountHierarchy),n=we("fixed_assets"),w=D.useRef(),S=Je({mode:"all",reValidateMode:"onChange",defaultValues:re(l,W,E,N,n,h.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:re(l,W,E,N,n,h.entityAutoCompleteView)}),de=S.watch("scheduleDetailsFixedAssetsSection.vendor");D.useEffect(()=>{h.entityAutoCompleteView.fetchState==="Completed"&&w.current?.(Me(h.entityAutoCompleteView))},[h.entityAutoCompleteView.fetchState]);const ve=S.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)});D.useEffect(()=>{let r=!0;const J=S.watch((H,{name:pe})=>{pe!=null&&H!=null&&_e(()=>{r&&(async(Q,me)=>{const Y=me[Z].vendor;if(Q.includes("vendor")){const ce=Y?.defaultOptions.map($=>$.value);if(Y?.selectedOption!=null&&ce?.includes(Y.selectedOption)!==!0){const $=h.entityAutoCompleteView.vendor.find(ke=>ke.id===Y.selectedOption);$!=null&&S.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:$.name??"",value:$.id}])}}const je=Q.includes("amount");if(P(me,je),Q.includes("amount")){const ce=Q.split(".")[1],$=parseInt(ce);K(!0),x($,l.selectedJEScheduleTransaction?.jeScheduleId)}})(pe,H)})});return()=>{r=!1,J.unsubscribe()}}),D.useEffect(()=>{(le!==g.jeScheduleDetails.length||ae!==g.selectedDate||se!==g.selectedDayOfMonth)&&te===!0&&(S.resetField(ee,{defaultValue:re(l,W,E,N,n,h.entityAutoCompleteView)[ee],keepDirty:!1}),K(!1))},[g.jeScheduleDetails.length,g.selectedDate,g.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&G(!1)},[l.selectedJEScheduleTransaction?.status.code]);const he=(Ve(S.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&g.jeScheduleDetails.length>0,Ce=D.useCallback(()=>{G(!0)},[]),Te=D.useCallback(()=>{u!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(X({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:u,vendor:b,controllerEmails:f,controllerUserIds:i})),k()},[e,f,i,t,k,u,b]),Ae=D.useCallback(r=>{u!=null&&t!=null&&e.trackScheduleDetailsDeleted(X({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:u,vendor:b,controllerEmails:f,controllerUserIds:i})),A(r)},[e,f,i,t,A,u,b]),Oe=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(r=>r.error??[]).filter(r=>!!r)??[])?.includes("vendor_deleted")===!0?de?.defaultOptions.find(r=>r.value===de?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,Ee=a.jsx(pt,{title:Oe??M.strings.empty,onNavigateBack:()=>{he===!0?T(!0):(u!=null&&t!=null&&e.trackScheduleDetailsCanceled(X({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:u,vendor:b,controllerEmails:f,controllerUserIds:i})),m())},onTransactionClick:()=>{l.selectedJEScheduleTransaction!=null&&j({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})}}),Ie=a.jsx(ct,{children:a.jsx(Pe,{...S,children:a.jsxs("form",{style:{width:"100%"},id:be(ge),onSubmit:ve,children:[a.jsx(mt,{vendorLoadOptions:(r,J)=>{s.onAutoCompleteInputChange?.(r,"vendor"),w.current=J},vendorField:de,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:h,scheduleDetailsView:l,allAccountOptions:W,allClassOptions:E,allMonthOptions:n,allDepAccountOptions:N,onEditAmount:x,onDelete:Ae,onJELinkClick:r=>{const J=t?.scheduledJournalEntry[r];u!=null&&J!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...We(u)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(J)},vendorName:b!=null?b.name:M.strings.hyphen,controllerEmails:f,controllerUserIds:i,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(r)},onViewLinkedJE:(r,J)=>{const H=t?.scheduledJournalEntry[J];u!=null&&H!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(H),controllerEmails:f,controllerUserIds:i,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),F(r)},onMarkAsComplete:Te,allowCreateSchedule:ne,onCreateSchedule:Ce}),C===!0?a.jsx(Fe,{titleComponent:a.jsx($e,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Ne,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:oe}):null,he===!0?a.jsx(qe,{formId:be(ge),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{T(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(dt,{children:[Ee,Ie]})}function pt({onNavigateBack:e,onTransactionClick:o,title:y}){return a.jsx(Be,{title:y,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:e,onLaunchClick:o,style:{zIndex:3}})}function mt({vendorField:e,vendorLoadOptions:o,vendorSearchAutoCompleteActions:y,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:h,allClassOptions:c,allDepAccountOptions:m,allMonthOptions:x,allowCreateSchedule:v,onCreateSchedule:I,onEditAmount:A,onDelete:P,onJELinkClick:F,onViewLinkedJE:j,onMarkAsComplete:k}){const O=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(C=>C.error).filter(C=>!!C)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(it,{children:[a.jsx(rt,{children:a.jsx(et,{vendorLoadOptions:o,vendorField:e,vendorFieldName:_(Z,"vendor"),vendorSearchAutoCompleteActions:y,vendorSearchAutoCompleteData:l,errors:O,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(ot,{sectionId:Z,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:h,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:m,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:x,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:P,onMarkAsComplete:k,onCreateSchedule:I}),a.jsx(ue,{controller:v===!0,children:a.jsx(tt,{sectionId:ee,scheduleType:"fixed_assets",totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:A,onJELinkClick:F,onViewLinkedJE:j,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const be=e=>`${e}_form`,re=(e,o,y,l,s,h)=>{const c=e.scheduleDetailsLocalData.fixed_assets,m=c.selectedAccount,x=c.selectedVendor,v=x!=null?h.vendor.find(d=>d.zeniId===x.id):void 0,I=m!=null?e.allAccountList.find(d=>d.accountId===m):void 0,A=c.selectedAccumulatedDepreciationCategory,P=A!=null?e.allDepreciationAccountList.find(d=>d.accountId===A):void 0,F=c.assetId,j=c.selectedClass,k=j!=null?e.allClassList.find(d=>d.classId===j):void 0,O=c.selectedMonths,C=c.jeScheduleDetails.map(d=>({postingDate:d.postingDate,amount:d.amount.amount,runningBalance:d.runningBalance.amount,postingStatus:d.postingStatus,jeLink:d.jeLink.thirdPartyTransactionId})),T=c.selectedDayOfMonth,p=c.lastDayOfMonth,L=T==null&&p==null?void 0:p===!0?"lastDayOfMonth":"day";return{[Z]:{scheduleExpenseCategory:{selectedOption:I?.qboId,allOptions:o},accumulatedDepreciationCategory:{selectedOption:P?.qboId,allOptions:l},assetId:F,scheduleClass:{selectedOption:k?.classId,allOptions:y},startDate:c.selectedDate,months:{selectedOption:O,allOptions:s},vendor:{selectedOption:v?.id??x?.id,defaultOptions:Re(h,v??x)},postingDate:{type:L,dayOfMonth:T}},[ee]:C}};export{jt as default};
37
+ `,be="scheduleDetailsPage",Z="scheduleDetailsFixedAssetsSection",ee="scheduleDetailsListSection",ut=xe.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ht}}=ut;function jt({analytics:e,controllerUserDetails:o,expenseAutomationSelectedPeriod:y,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:h,usedInExpenseAutomation:c,onNavigateBack:m,onEditAmount:x,onJELinkClick:v,onSave:I,onDelete:A,onDetailPageChange:P,onViewLinkedJE:F,onTransactionClick:j,onMarkAsComplete:k,removeJeScheduleTransactionKey:O}){const[C,T]=D.useState(!1),p=U(l.updateStatus.fetchState),L=U(l.selectedJEScheduleTransaction?.status.code),d=U(l.deleteStatus.fetchState),[te,K]=D.useState(!1),b=l.scheduleDetailsLocalData.fixed_assets,le=U(b.jeScheduleDetails.length),ae=U(b.selectedDate),se=U(b.selectedDayOfMonth),[ne,G]=D.useState(!0),g=l.selectedJEScheduleTransaction?.vendor,u=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,f=Xe(o.controllers),i=Ze(o.controllerUserIds),oe={onOkClick:()=>{T(!1),m()},onCancelClick:()=>{T(!1)}};D.useEffect(()=>{p==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(u!=null&&t!=null&&e.trackScheduleDetailsSaved(X({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:u,vendor:g,controllerEmails:f,controllerUserIds:i})),c===!0&&t?.jeScheduleTransactionKey!=null&&L==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&O(t.jeScheduleTransactionKey,{month:y.month,year:y.year}),m())},[y,L,l.selectedJEScheduleTransaction?.status.code,e,m,p,O,c,l.updateStatus,t,u,g,f,i]),D.useEffect(()=>{d==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&m()},[d,l.deleteStatus,m]);const W=fe(l.accountListNestedAccountHierarchy),N=fe(l.allDepreciationAccountListNestedAccountHierarchy),E=Le(l.classListNestedAccountHierarchy),n=we("fixed_assets"),w=D.useRef(),S=Je({mode:"all",reValidateMode:"onChange",defaultValues:re(l,W,E,N,n,h.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:re(l,W,E,N,n,h.entityAutoCompleteView)}),de=S.watch("scheduleDetailsFixedAssetsSection.vendor");D.useEffect(()=>{h.entityAutoCompleteView.fetchState==="Completed"&&w.current?.(Me(h.entityAutoCompleteView))},[h.entityAutoCompleteView.fetchState]);const ve=S.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)});D.useEffect(()=>{let r=!0;const J=S.watch((H,{name:pe})=>{pe!=null&&H!=null&&_e(()=>{r&&(async(Q,me)=>{const Y=me[Z].vendor;if(Q.includes("vendor")){const ce=Y?.defaultOptions.map($=>$.value);if(Y?.selectedOption!=null&&ce?.includes(Y.selectedOption)!==!0){const $=h.entityAutoCompleteView.vendor.find(ke=>ke.id===Y.selectedOption);$!=null&&S.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:$.name??"",value:$.id}])}}const je=Q.includes("amount");if(P(me,je),Q.includes("amount")){const ce=Q.split(".")[1],$=parseInt(ce);K(!0),x($,l.selectedJEScheduleTransaction?.jeScheduleId)}})(pe,H)})});return()=>{r=!1,J.unsubscribe()}}),D.useEffect(()=>{(le!==b.jeScheduleDetails.length||ae!==b.selectedDate||se!==b.selectedDayOfMonth)&&te===!0&&(S.resetField(ee,{defaultValue:re(l,W,E,N,n,h.entityAutoCompleteView)[ee],keepDirty:!1}),K(!1))},[b.jeScheduleDetails.length,b.selectedDate,b.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&G(!1)},[l.selectedJEScheduleTransaction?.status.code]);const he=(Ve(S.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&b.jeScheduleDetails.length>0,Ce=D.useCallback(()=>{G(!0)},[]),Te=D.useCallback(()=>{u!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(X({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:u,vendor:g,controllerEmails:f,controllerUserIds:i})),k()},[e,f,i,t,k,u,g]),Ae=D.useCallback(r=>{u!=null&&t!=null&&e.trackScheduleDetailsDeleted(X({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:u,vendor:g,controllerEmails:f,controllerUserIds:i})),A(r)},[e,f,i,t,A,u,g]),Oe=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(r=>r.error??[]).filter(r=>!!r)??[])?.includes("vendor_deleted")===!0?de?.defaultOptions.find(r=>r.value===de?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,Ee=a.jsx(pt,{title:Oe??M.strings.empty,onNavigateBack:()=>{he===!0?T(!0):(u!=null&&t!=null&&e.trackScheduleDetailsCanceled(X({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:u,vendor:g,controllerEmails:f,controllerUserIds:i})),m())},onTransactionClick:()=>{l.selectedJEScheduleTransaction!=null&&j({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})}}),Ie=a.jsx(ct,{children:a.jsx(Pe,{...S,children:a.jsxs("form",{style:{width:"100%"},id:ge(be),onSubmit:ve,children:[a.jsx(mt,{vendorLoadOptions:(r,J)=>{s.onAutoCompleteInputChange?.(r,"vendor"),w.current=J},vendorField:de,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:h,scheduleDetailsView:l,allAccountOptions:W,allClassOptions:E,allMonthOptions:n,allDepAccountOptions:N,onEditAmount:x,onDelete:Ae,onJELinkClick:r=>{const J=t?.scheduledJournalEntry[r];u!=null&&J!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...We(u)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(J)},vendorName:g!=null?g.name:M.strings.hyphen,controllerEmails:f,controllerUserIds:i,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(r)},onViewLinkedJE:(r,J)=>{const H=t?.scheduledJournalEntry[J];u!=null&&H!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(H),controllerEmails:f,controllerUserIds:i,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),F(r)},onMarkAsComplete:Te,allowCreateSchedule:ne,onCreateSchedule:Ce}),C===!0?a.jsx(Fe,{titleComponent:a.jsx($e,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Ne,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:oe}):null,he===!0?a.jsx(qe,{formId:ge(be),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{T(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(dt,{children:[Ee,Ie]})}function pt({onNavigateBack:e,onTransactionClick:o,title:y}){return a.jsx(Be,{title:y,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:e,onLaunchClick:o,style:{zIndex:3}})}function mt({vendorField:e,vendorLoadOptions:o,vendorSearchAutoCompleteActions:y,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:h,allClassOptions:c,allDepAccountOptions:m,allMonthOptions:x,allowCreateSchedule:v,onCreateSchedule:I,onEditAmount:A,onDelete:P,onJELinkClick:F,onViewLinkedJE:j,onMarkAsComplete:k}){const O=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(C=>C.error).filter(C=>!!C)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(it,{children:[a.jsx(rt,{children:a.jsx(et,{vendorLoadOptions:o,vendorField:e,vendorFieldName:_(Z,"vendor"),vendorSearchAutoCompleteActions:y,vendorSearchAutoCompleteData:l,errors:O,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(ot,{sectionId:Z,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:h,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:m,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:x,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:P,onMarkAsComplete:k,onCreateSchedule:I}),a.jsx(ue,{controller:v===!0,children:a.jsx(tt,{sectionId:ee,scheduleType:"fixed_assets",totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:A,onJELinkClick:F,onViewLinkedJE:j,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ge=e=>`${e}_form`,re=(e,o,y,l,s,h)=>{const c=e.scheduleDetailsLocalData.fixed_assets,m=c.selectedAccount,x=c.selectedVendor,v=x!=null?h.vendor.find(d=>d.zeniId===x.id):void 0,I=m!=null?e.allAccountList.find(d=>d.accountId===m):void 0,A=c.selectedAccumulatedDepreciationCategory,P=A!=null?e.allDepreciationAccountList.find(d=>d.accountId===A):void 0,F=c.assetId,j=c.selectedClass,k=j!=null?e.allClassList.find(d=>d.classId===j):void 0,O=c.selectedMonths,C=c.jeScheduleDetails.map(d=>({postingDate:d.postingDate,amount:d.amount.amount,runningBalance:d.runningBalance.amount,postingStatus:d.postingStatus,jeLink:d.jeLink.thirdPartyTransactionId})),T=c.selectedDayOfMonth,p=c.lastDayOfMonth,L=T==null&&p==null?void 0:p===!0?"lastDayOfMonth":"day";return{[Z]:{scheduleExpenseCategory:{selectedOption:I?.qboId,allOptions:o},accumulatedDepreciationCategory:{selectedOption:P?.qboId,allOptions:l},assetId:F,scheduleClass:{selectedOption:k?.classId,allOptions:y},startDate:c.selectedDate,months:{selectedOption:O,allOptions:s},vendor:{selectedOption:v?.id??x?.id,defaultOptions:Re(h,v??x)},postingDate:{type:L,dayOfMonth:T}},[ee]:C}};export{jt as default};
@@ -1,4 +1,4 @@
1
- import{a7 as P,hI as Y,g4 as ke,e3 as Ae,hJ as Ie,T as Je,hK as we,c8 as Le,c9 as Me,V as a,A as Ve,bR as Pe,bS as _e,bT as $e,a9 as Fe,hL as Ne,hM as Be,O as De,E as ce,hN as pe,hO as Re,cc as Ue,e as qe,ga as me,m as X,f as ze,x as We,hP as Ke,hQ as Ge,hR as He,o as A}from"./index-BHAcVHeH.js";import{a as D}from"./sentry-CY6wsJT-.js";import{n as M}from"./mui-Cni6P-fz.js";import{bH as Qe,bI as Ye,bG as Xe}from"./zeni-epic-state-cFF_NqwA.js";import{l as Ze,a as et,s as tt,r as lt}from"./ScheduleSequenceTable-Dv831gVJ-OIQZXWKl.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6c890fc1-8ca9-4a73-bf1a-42015d21124b",e._sentryDebugIdIdentifier="sentry-dbid-6c890fc1-8ca9-4a73-bf1a-42015d21124b")}catch{}})();const N={labelWidth:new We(160,160,160)},at=M.div`
1
+ import{a7 as P,hI as Y,g4 as ke,e3 as Ae,hJ as Ie,T as Je,hK as we,c8 as Le,c9 as Me,V as a,A as Ve,bR as Pe,bS as _e,bT as $e,a9 as Fe,hL as Ne,hM as Be,O as De,E as ce,hN as pe,hO as Re,cc as Ue,e as qe,ga as me,m as X,f as ze,x as We,hP as Ke,hQ as Ge,hR as He,o as A}from"./index-CuxRoVvZ.js";import{a as D}from"./sentry-Cm8I7E9J.js";import{n as M}from"./mui-G2MlMTlr.js";import{bH as Qe,bI as Ye,bG as Xe}from"./zeni-epic-state-lC5X-sam.js";import{l as Ze,a as et,s as tt,r as lt}from"./ScheduleSequenceTable-DNPID_7F-Dpy7XGsr.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.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]="3a76d92a-2031-4952-900b-1255a5766125",e._sentryDebugIdIdentifier="sentry-dbid-3a76d92a-2031-4952-900b-1255a5766125")}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%;