@zeniai/web-cockpit-ui 1.14.22-dev → 1.14.23-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 (244) hide show
  1. package/dist/assets/{ACHDetailsPage-Csc8UPGK-C5DTl14D.js → ACHDetailsPage-DZv7I3Jm-zPHhT4Vj.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-BNK1zghX-CXpkKBhu.js → AIPerformancePage-DCq95N_N-DO8MzOBI.js} +26 -26
  3. package/dist/assets/{AccountInfoPage-WoQj1Knu-Cxdf_g3B.js → AccountInfoPage-wfDS5ToF-BkRJ-lxL.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BsiMZrTm-DfeZwew1.js → AccountInfoPageContent-dgeBtGlm-BSaBGsXw.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-CaIpZQOZ-DUBexURk.js → AccountLockedInfoModal-CqjvVPUE-Cma-cVvt.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BQTm9Igh-bRUuCvDt.js → AccountReconDetailsDrawerPage-BJ1TTvni-CnFKI7ya.js} +11 -11
  7. package/dist/assets/{AccountRow-mHhwnvVT-61DHuT3I.js → AccountRow-99zfxKet-iP3hUTyF.js} +19 -19
  8. package/dist/assets/{AccountsPromoCardStack-jk87J-uY-CYM3oaB-.js → AccountsPromoCardStack-CZwrQBcr-BLPwkeVU.js} +8 -8
  9. package/dist/assets/{AddAddressForCardDrawer-BY-ABNiB-C1fgvotd.js → AddAddressForCardDrawer-BcOX27nY-CA-KCO8n.js} +2 -2
  10. package/dist/assets/{AddToWalletPage-BmaqhQ_z-fr9KNRwo.js → AddToWalletPage-CoW0Ppg4-WAfWgl1v.js} +14 -14
  11. package/dist/assets/{AgingReportsPage-B2tfefId-BY1ufaPI.js → AgingReportsPage-Dgi5oFl4-Cao6O7NF.js} +10 -10
  12. package/dist/assets/{AllUserItems-C5jB4yc_-bcEnXv8A.js → AllUserItems-6iESftSq-BBGiJxHd.js} +9 -9
  13. package/dist/assets/{ApAgingDetailPage-B-ZHX3JJ-Dm0NOaoH.js → ApAgingDetailPage-jEL75hOV-BLy4yEPM.js} +3 -3
  14. package/dist/assets/{AppBasePage-DOXcrTCE-BU2ssx1Y.js → AppBasePage-CMHbFdBh-DTT6hgO7.js} +3 -3
  15. package/dist/assets/{AppDrawerContent-Cav4Sy09-XmmoSBRe.js → AppDrawerContent-NAyrnDCL-B7ak2Xor.js} +40 -19
  16. package/dist/assets/{ApprovalRulesSettingsPage-rzr9k2jA-BhZWVqKA.js → ApprovalRulesSettingsPage-BWraRVsT-BRbAilw6.js} +5 -5
  17. package/dist/assets/{ArAgingChart-B3NtEWh--G5H5BTO1.js → ArAgingChart-DPrIHwSE-ym_zT_Xu.js} +9 -9
  18. package/dist/assets/{ArAgingDetailPage-uX2oVxj4-B2CH08AV.js → ArAgingDetailPage-CdNiD7uR-DccUXEIa.js} +4 -4
  19. package/dist/assets/{AttachmentView-BQMzs_UT-DjbZBXs7.js → AttachmentView-Cmh726Zl-C82E74gy.js} +3 -3
  20. package/dist/assets/{BankAccountSection-MWGcLsKa-DYMEitGJ.js → BankAccountSection-jRnEB-Ut-BpoXdxMl.js} +4 -4
  21. package/dist/assets/{BankAccountWarningSection-CBlOG9xN-KyoF0Xjl.js → BankAccountWarningSection-KznYA-cf-CV3aOKhB.js} +3 -3
  22. package/dist/assets/{BankConnectionsSettingsPage-PagAlxUn-CnNwI2lQ.js → BankConnectionsSettingsPage-BXrsOxcg-CZU1wEnM.js} +15 -15
  23. package/dist/assets/{BillDetailPage-DU3KKWCI-Dgx7cNS3.js → BillDetailPage-glKjF2MJ-CxnS8ehW.js} +5 -5
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DzfhQmLn-0k3Mkm1z.js → BillPayApprovalRuleDetailPage-DyH2jp6G-BgnVnU6E.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-B051t9Mv-Bz466D-_.js → BillPayApprovalRulesPage-jctlpXwj-sMvcDhpz.js} +11 -11
  26. package/dist/assets/{BillPayPromoPage-DvBp9dFZ-DT65a4C3.js → BillPayPromoPage-DGyWwW1t-B2E2k4g7.js} +32 -32
  27. package/dist/assets/{BillPaySetUpPage-D7335PCo-lcC21Rm6.js → BillPaySetUpPage-UfM6FOqW-wZRanfNP.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-PsWVXatK-Df6MXAqh.js → BillingSettingsPage-BfMIxeqM-C_WtlbYK.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-Dkq-bCpf-QfTbq_6Y.js → BillsBulkReviewDrawerPage-DhoLC2aT-Cih70QQk.js} +1 -1
  30. package/dist/assets/{BoxItem-Bf9DDBGl-B4tzyane.js → BoxItem-CIOib-WX-Cvut8WLk.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DZpS0b_1-DhH_xv3P.js → BusinessVerificationPage-Czf-y16x-BBZA7C_w.js} +14 -14
  32. package/dist/assets/{CardNumberSubText-8FNDlBHV-xefYK_FQ.js → CardNumberSubText-B8CivrXd-CzHZkmhR.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-CUc07auE-CayGCDQt.js → CashbackDetailPage-BOTxd8DW-CNmZsYqR.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-D84v0WwQ-Drf4gFgi.js → ChargeCardDetailPage-DbtvRfDc-CRGJceoy.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-BFssQAQg-Dr6YIgl1.js → ChargeCardListPage-Q1zat_TQ-BbazZeau.js} +18 -18
  36. package/dist/assets/{ChargeCardListTable-BuI0T0Bn-DXKO7Y7U.js → ChargeCardListTable-CKH-EZW4-CiPC1KQt.js} +28 -28
  37. package/dist/assets/{ChargeCardPromoPage-CRqyciNL-FrtjBhKN.js → ChargeCardPromoPage-BRkny-dl-BA8MhBiS.js} +30 -30
  38. package/dist/assets/ChargeCardSetupPage-DM15gWD1-rI_IQnGw.js +36 -0
  39. package/dist/assets/{ChargeCardStatementsPage-BtImi0Pc-D6s-jUZ3.js → ChargeCardStatementsPage-xedf3XEE-CzGfRvhd.js} +7 -7
  40. package/dist/assets/{ChargeCardUtils-DQztOSYJ-DZxY6wV1.js → ChargeCardUtils-D4KmVUMt-Bgc7_40s.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-BaGgoJZk-L4zZNkyz.js → ChaseOverlay-IbWtzNzT-CiTCJc7A.js} +10 -10
  42. package/dist/assets/{CheckDepositDrawerPage-90KwCes_-BFVP9Xnd.js → CheckDepositDrawerPage-BCIvt4pQ-BUO3GGvc.js} +6 -6
  43. package/dist/assets/{CollapsableReportTable-dCUjgg1X-DLs7OVqc.js → CollapsableReportTable-jOFcWQi9-BD7j44zD.js} +109 -109
  44. package/dist/assets/{CompanyOfficerDetailsSection-B5d06n1B-shOCzvZi.js → CompanyOfficerDetailsSection-DMCZTk1e-CevbfEQw.js} +20 -20
  45. package/dist/assets/{CompanyPassportCard-BOuhptIV-CVEQtf9Q.js → CompanyPassportCard-BbJLMFqe-CAuk2TxY.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-CPxR1IKu-B6sc0yZA.js → CompanyPassportPage-BwCMcjB9-C5l65FSQ.js} +25 -25
  47. package/dist/assets/{CompleteProfile-BIN-sI3M-1L7bxHe9.js → CompleteProfile-Dz4laW45-D0LCAfKu.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-nTrV9Xfw-D3DkhcOF.js → ConfettiBurst-B2j3QxzW-BoOT7g5H.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-CQH4Gfy0-DBGaDkEf.js → CreateOrEditVendorPage-z2chPZUl-moxdaTde.js} +12 -12
  50. package/dist/assets/{CreditCardPaymentDrawerPage-C3PvfNmm-amz8Ne7l.js → CreditCardPaymentDrawerPage-Z9RiL1h7-BimNMSu_.js} +17 -17
  51. package/dist/assets/{CreditCardPaymentPlgSection-Cz-CSdKg-DO4yi827.js → CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js} +10 -10
  52. package/dist/assets/{CurrencySelectField-ltt1zExP-D2omcj4n.js → CurrencySelectField-CxNprN2u-CPSD5Bje.js} +2 -2
  53. package/dist/assets/{CustomerOnboardingActivationPage-Cst56yLP-ejyq0w3C.js → CustomerOnboardingActivationPage-diAJ07bX-sBysngto.js} +4 -4
  54. package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-CSzku5k4.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-H59MLCwU-KBQed5cV.js → CustomerOnboardingDetailPageSkeleton--8DBjaCm-B9kNPkv6.js} +11 -11
  56. package/dist/assets/CustomerOnboardingNoStepsPage-Ccq8kI-v-D3QEvGB2.js +66 -0
  57. package/dist/assets/{CustomerOnboardingPage-1o2R-ghV-DIOBtRSu.js → CustomerOnboardingPage-s3GNwP8c-p7WLMkGR.js} +6 -6
  58. package/dist/assets/CustomerOnboardingProductSuitePage-C-tToXNK-4Ab_CkNQ.js +202 -0
  59. package/dist/assets/{Dashboard-CptSiho6-CYuyH4KA.js → Dashboard-BtcnzaY6-gJck50nw.js} +230 -230
  60. package/dist/assets/{DashboardReportPage-G32NOQFe-BOVMH67u.js → DashboardReportPage-C6jLfLtF-BPfMWD5H.js} +9 -8
  61. package/dist/assets/DashboardSidebarBackgroundAnimation-s8Nl8CmH-Dm61fSUI.js +12 -0
  62. package/dist/assets/{DepositAccTransactionItem-CQX9MBK--x7S3np6v.js → DepositAccTransactionItem-Bm63W_1e-5FIgWMcL.js} +1 -1
  63. package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-1uhB2yjw.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-Bgm_YYHM-C2zlQj9Q.js → DomesticWireDetailsPage-DX0BA5i3-Ea2aCTYV.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DN4zwFl5-BWBizCPI.js → DownloadOverlay-BcH72YTL-B8MaexAj.js} +1 -1
  66. package/dist/assets/{DrawerPage-B-jrvyA1-D5alUPyS.js → DrawerPage-CzHhh0IP-BIFSEwpr.js} +10 -10
  67. package/dist/assets/{EditPeoplePage-BTXEd5bm-DPBckywd.js → EditPeoplePage-Z5btEDax-BKTta_xp.js} +7 -7
  68. package/dist/assets/{EditReimbursementDetailPage-5-BeM3DC-BRw6nxEw.js → EditReimbursementDetailPage-D_FsqRgU-DhM4BWkK.js} +74 -74
  69. package/dist/assets/{EntityDetailPage-CCTwe1iu-DAg47Prp.js → EntityDetailPage-Bc4YVpPC-DWs1zPrx.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-B7uoP2ou-DZ_drzmW.js → EntitySummarySection-Ba6AWxNi-BdQCQZ3F.js} +4 -4
  71. package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-vkhdPOgy.js +222 -0
  72. package/dist/assets/{ExpenseAutomationPage-o8ox1q0R-W0eDJCTN.js → ExpenseAutomationPage-EjI20a6v-rIac0d4o.js} +90 -90
  73. package/dist/assets/{ExpressPayPage-BdUERste-C5P04O3w.js → ExpressPayPage-562vstqT-BTrZQzDN.js} +10 -10
  74. package/dist/assets/{FeaturePreviewPage-B6_exSoS-Do4_f9l1.js → FeaturePreviewPage-eUvRNjsx-D93wu9_Y.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-BoA-EzkO-CtKbn8f6.js → FollowStepsSection-D60JM8h_-WgnL9DSD.js} +11 -11
  76. package/dist/assets/{GlobalReviewListPage-CYjobk5Y-BRiHcGuf.js → GlobalReviewListPage-BpXEtrb4-CJJjyGfo.js} +6 -6
  77. package/dist/assets/HelpButton-hflpTkYP-BxxKYxfC.js +28 -0
  78. package/dist/assets/{InformationCardStack-Dvu4sQsc-BlKJwxKC.js → InformationCardStack-BsxmscQq-CSrArWRb.js} +3 -3
  79. package/dist/assets/{InsightsCardStack-DffcRWuM-BTqxOdqS.js → InsightsCardStack-5JDl2mCA-CZ5TshWK.js} +7 -7
  80. package/dist/assets/{InsightsSection-C8Oi6wcZ-D3wuyBHx.js → InsightsSection-DsO5tfQL-CBUNqXt7.js} +4 -4
  81. package/dist/assets/{IntegrationsSettingsPage-C0VZQfG_-ks1Gh_uy.js → IntegrationsSettingsPage-MQDeidS6-BKVTNE0x.js} +6 -6
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-SAcvo9BB-BCh0Bmwt.js → InternationalWireSwiftDetailsPage-CpT4WPn3-b0nQCCWc.js} +14 -14
  83. package/dist/assets/{InternationalWireVerificationPage-8Ff3v4gu-BQsNCeNp.js → InternationalWireVerificationPage-DlBFLwxy-BIViCBlF.js} +5 -5
  84. package/dist/assets/InviteFormPage-D0QCEMkX-DZr12vmY.js +312 -0
  85. package/dist/assets/{InvitePageListView-DG91-L1w-HUdilJLK.js → InvitePageListView-CVf8HrhY-cBhycZNO.js} +24 -24
  86. package/dist/assets/{InvitePeoplePage-6ANmf4z2-D3l-3sjy.js → InvitePeoplePage-Dg7iuq2i-Cx5QFhMU.js} +4 -4
  87. package/dist/assets/{InvoiceUploadSection-C4O7GGrv-DEO_7ppT.js → InvoiceUploadSection-BuwWumE2-CTijWOqK.js} +5 -5
  88. package/dist/assets/{IssueChargeCardPage-gohjPIRu-KdDkWZ0o.js → IssueChargeCardPage-DL23WAiQ-CCNHr1-9.js} +26 -26
  89. package/dist/assets/{LabeledAddressValue-C6EUPzNB-f8CKs718.js → LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-DLou-2Lm-30_LmoCw.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-TB_2rc3R-DL54XhuW.js → LabeledControlledCheckBoxField-DqrqiFhz-GyWAbp3D.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CdgNcgTu-CwOMlXoT.js → LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js} +8 -8
  93. package/dist/assets/{LabeledDocumentField-CzTqgS97-CVWMa21M.js → LabeledDocumentField-By7zV2VD-Deh87JH9.js} +4 -4
  94. package/dist/assets/{LabeledDropDownFormattedTextField-CVzL0J5a-D5_Y7iWl.js → LabeledDropDownFormattedTextField-BF37XlAJ-B3ToXjDJ.js} +6 -6
  95. package/dist/assets/{LabeledText-BICN3vpf-Lk4PuYrJ.js → LabeledText-D4fC1Hz2-Cxv5m94v.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-VeWNep8c-tP0CG0Iv.js → LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-B9c0Mx1N.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField--Jr1KizL-SyZHoQyC.js → LabeledZeniRolesDropDownField-CTA3JLz4-D4MXXizm.js} +17 -17
  98. package/dist/assets/{LinkJETransactionPage-BNWOmBHj-C6dNtx3m.js → LinkJETransactionPage-CLAyFAJh-Dm40KZjj.js} +5 -5
  99. package/dist/assets/{LowBalancePopup-Dhrtsv_E-B0rnJzet.js → LowBalancePopup-TCSP5zrD-BmN6CG0D.js} +7 -7
  100. package/dist/assets/{MagicLinkACHDetailsPage-Brt9q6YZ-ByLyPANb.js → MagicLinkACHDetailsPage-C9sNEDPT-D6e_XUAG.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CkSEgmKP-DxqY0_R2.js → MagicLinkDomesticWireDetailsPage-D4C-a5QY-DOB7ds5g.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-CqYC7uu7-CV88Q6h1.js → MagicLinkInternationalWireDetailsPage-oKAXWkRz-ICvIdgn3.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-VR-HSAYZ-DUCuiXm5.js → MagicLinkSuccessPage-DTKe1Hxk-D3l_qzGn.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-T6m2zH4A-C4uTRZc1.js → MagicLinkTitleSection-BZ9PbTY5-DGA-Kfl0.js} +4 -4
  105. package/dist/assets/{MailingDetailsSection-B6ZCAac5-CjQ8hXZb.js → MailingDetailsSection-DOuPh_kK-CJdFvtR9.js} +6 -6
  106. package/dist/assets/{MeetingCalenderPopup-CgzTeE14-BMiIqHVm.js → MeetingCalenderPopup-Bn5picNg-BZadZTcq.js} +1 -1
  107. package/dist/assets/{Menu-DOJJ_REW-BwD6B3Nk.js → Menu-D_vf2LDo-39KwK8wM.js} +3 -3
  108. package/dist/assets/{MyBankConnectionsSettingsPage-C_NrRV7T-BjsWlM7P.js → MyBankConnectionsSettingsPage-DJZVD_j4-CYkcPYeU.js} +14 -14
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-CNHCZPs--fg7FpZSk.js → MyPendingActivationChargeCardListPage-DyhXBMCi-DtFEW_4I.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-CIfFufvo-uBNLzBNw.js → MyProfileSettingsPage-gPNoKP10-gCIICwqR.js} +10 -10
  111. package/dist/assets/{NavBarWithPicker-CvhnGryh-CauN1w5W.js → NavBarWithPicker-BlYfbDi0-BiD5rNBH.js} +5 -5
  112. package/dist/assets/{NavigationArrow-CXkUidH6-fqvGvSGZ.js → NavigationArrow-CQ_K0Bon-C-8VFiTg.js} +1 -1
  113. package/dist/assets/{NavigationDots-hBq7kHVj-Vj1p5Rqn.js → NavigationDots-CI0cjpQA-B6oVaxeu.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-DORHvz4D-CYDIdofb.js → NewGlobalMerchantPage-BHQiRWO8-or4Uc_HY.js} +6 -6
  115. package/dist/assets/{NoDataChart-C4KqN3ua-6H0vHNsB.js → NoDataChart-Dg1_sU_O-flEThGvM.js} +1 -1
  116. package/dist/assets/{NoDataTable-DaX07HI0-B6ZwwCAM.js → NoDataTable-qTYBbL2H-BGrSHe_q.js} +1 -1
  117. package/dist/assets/{NotFoundPage-BIh20jzm-BXLRcjFX.js → NotFoundPage-DYjrSF7l-D7C6Z_Gh.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-gU3g8rJ2-Au_WueGH.js → NotificationSettingsPage-DZHlnrbH-D8paihJx.js} +13 -13
  119. package/dist/assets/NotificationsListConfig-BSBZHM3y-CGdVXHfi.js +1 -0
  120. package/dist/assets/{NotificationsPage-oy3LHVU2-C0LKRRGq.js → NotificationsPage-QgnztPHs-CnFUIBHp.js} +35 -35
  121. package/dist/assets/{OpExByVendorPage-D8jXzTd6-CpwZHxBM.js → OpExByVendorPage-_AMvFFwS-DGSt9CNm.js} +7 -7
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-Drnebvl5.js → OverlayContainerPage-Bmu909Fo-CI9x-FUu.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-BQW2_QDB-BVhcDW_t.js → PandLWithForecastPage-D_3EfFjd-JoBuR2Ry.js} +10 -10
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CY9QJXXs-ByBDQvaD.js → PaymentAccountSetupBillingAddressSection-Ch5yJBuG-Czoqfz5V.js} +5 -5
  125. package/dist/assets/{PeoplePage-B7s3mjRX-BNB49xB2.js → PeoplePage-DZr3Lusf-M76DhnJE.js} +23 -23
  126. package/dist/assets/PortfolioAllocationFormPage-Byu_8Js7-CWAHnet9.js +207 -0
  127. package/dist/assets/{PortfolioDetails-BFqRNjFs-DdtIdWXw.js → PortfolioDetails-BH-sfG9j-CdKUfZw3.js} +19 -19
  128. package/dist/assets/{ProductsCarousel-BaTq9uMB-DT3_7m1I.js → ProductsCarousel-C4J19mb--DcgR5jdw.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-Bf3Dizji-DFvWixK1.js → PromoBaseCards-Bj4SLu8_-CC7a127A.js} +7 -7
  130. package/dist/assets/{QBOConnectionDialog-DhOSSZ5O-BcCZx_dG.js → QBOConnectionDialog-Bx6ZDEvY-BRYqXjwh.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-BWJoUKzu-DC5g6xXu.js → QBOSetupSection-BCdoUjwK-BF2gwacX.js} +9 -9
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CiebC6vq-B0xwHjcZ.js → ReimbursementApprovalRuleDetailPage-DsTMXav9-B1Ngpniy.js} +2 -2
  133. package/dist/assets/{ReimbursementApprovalRulesPage-gKLkrIyV-DxnMuJiA.js → ReimbursementApprovalRulesPage-CJLcH9Ov--aMB2wIm.js} +9 -9
  134. package/dist/assets/{ReimbursementDetailPage-BF4vlfIm-A5yNZHmb.js → ReimbursementDetailPage-Ctgt3Dcz-Bah5s5HT.js} +11 -11
  135. package/dist/assets/{ReimbursementPromoPage-BFwztEak-CceCs1UK.js → ReimbursementPromoPage-DCmevd5G-RVnIiUe8.js} +14 -14
  136. package/dist/assets/{ReimbursementSetUpPage-D1AVnqd4-CKntMkOU.js → ReimbursementSetUpPage-Dc9xJUbM-BRgUtgcr.js} +4 -4
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BsqdpOS_-B3Pgz4a_.js → ReimbursementsBulkReviewDrawerPage-CKjHGxjw-DAh9TKrH.js} +1 -1
  138. package/dist/assets/{ReloadCard-BmYf1NZf-DhNr8urp.js → ReloadCard-DxJMY9If-DFVN_BWj.js} +1 -1
  139. package/dist/assets/{ReportTableViewSelector-yTxheyC3-CSqeEY6U.js → ReportTableViewSelector-lMBROmrI-C57N0Ev_.js} +11 -11
  140. package/dist/assets/{ReportsPage-DZtCp9CP-GUEOyiOt.js → ReportsPage-DMYLnwc7-C986BuH8.js} +10 -10
  141. package/dist/assets/{RevenueChart-CXSh5l_p-dQ5RnZTk.js → RevenueChart-DD8vb3zi-DI64DZjn.js} +1 -1
  142. package/dist/assets/ReviewDetailsPage-C-6hNb3q-Bs8iB-Q6.js +290 -0
  143. package/dist/assets/{ReviewOverlay-B2jf6tfG-D_9vNPuM.js → ReviewOverlay-sqbjCjkE-BYmWnWTV.js} +10 -10
  144. package/dist/assets/{RoleWithToolTip-DHdLJcWR-GnlXHGj6.js → RoleWithToolTip-BpMhPbAJ-D4xuhbtR.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CY0i2n7i-9GRv9Sh2.js → ScheduleDetailsFixedAssetsPage-D1uRcS4p-n5wC_akR.js} +8 -8
  146. package/dist/assets/{ScheduleDetailsPage-CVh8-Sc9-BcDI1QHR.js → ScheduleDetailsPage-D8Cvxd7m-bSm3GRae.js} +4 -4
  147. package/dist/assets/{ScheduleSequenceTable-8qqeMhAk-COgow_cL.js → ScheduleSequenceTable-CvqXlh31-iJzQjEX9.js} +50 -50
  148. package/dist/assets/{ScreenRoutes-HggFEvBU.js → ScreenRoutes-CG3ALmQe.js} +1 -1
  149. package/dist/assets/SetUpAccountSection-CDXmRiGQ-DykmFmYq.js +378 -0
  150. package/dist/assets/{SetUpDefaultSection-BM57n5BV-BGP1G39B.js → SetUpDefaultSection-VPie4JZS-CUUkgLvy.js} +6 -6
  151. package/dist/assets/SignIn-9DfCxy9Q-D5TOW1KJ.js +407 -0
  152. package/dist/assets/{SignInScreen-BP8BTBPi.js → SignInScreen-C5ZC9m_8.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-BphSarNr-olaU5e62.js → SpendManagementListViewPage-Q5bQb3hk-BwLto-DN.js} +4 -4
  154. package/dist/assets/{SpendManagementPerTabPage-DCkS4HuZ-BoJws23h.js → SpendManagementPerTabPage-CD-kDdxa-BPnAzojr.js} +26 -26
  155. package/dist/assets/{SpendManagementSection-DKqHikhq-CsTWl7zh.js → SpendManagementSection-DGGOMGEz-BERrqLUW.js} +6 -6
  156. package/dist/assets/{SpendMgmtSetupAccountSection-BF7bb5O_-DSPc6rRK.js → SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js} +21 -21
  157. package/dist/assets/{StatementItem-Ki_Mzpf9-D38JqRpj.js → StatementItem-1vBLASxl-Bg-WCzCW.js} +4 -4
  158. package/dist/assets/{StatementsPage-B6XMWWpt-Dr9BGLnN.js → StatementsPage-cCluGN33-CUSb15rA.js} +1 -1
  159. package/dist/assets/{StatusSwitcher-BkAnAbyd-DQZA1a3w.js → StatusSwitcher-efLzDuyw-yZjEoNnl.js} +2 -2
  160. package/dist/assets/{SubTabSwitcher-Au3snima-DElPxhu-.js → SubTabSwitcher-BfYlJKJ6-0yeg6J8n.js} +1 -1
  161. package/dist/assets/{SummaryCard-B-IXQpJ7-Dg8CCNrn.js → SummaryCard-BsPejHZG-DSp7yYcI.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-BPNEy-p0-BIbh7B8y.js → TaskManagementPage-CkdITpbn-BnN3mtBv.js} +31 -31
  163. package/dist/assets/{TimeRangeSwitcher-DpDC0FGn-CoKhjSY7.js → TimeRangeSwitcher-DVB0vP5W-Bka-ygDj.js} +5 -5
  164. package/dist/assets/{TimeframeSwitcher-D1cuigpc-D9PCDoa0.js → TimeframeSwitcher-BmhH741X-Bq2UrAGM.js} +2 -2
  165. package/dist/assets/{TimeframeSwitcherWithToggle-_2U17Wg0-Cc6NrQTz.js → TimeframeSwitcherWithToggle-B1bMIGal-PXrqXkjU.js} +1 -1
  166. package/dist/assets/{TopExCard-BWOozDK3-GMojpRJp.js → TopExCard-DBuo1QUF-Bqy_yS0O.js} +6 -6
  167. package/dist/assets/{TopExDetailPage-DpYLakrO-vsCGpsy3.js → TopExDetailPage-CGPgaWRb-BefBmW9C.js} +20 -20
  168. package/dist/assets/TransactionDetailPage-BUP-dxVE-Bluz2ZEA.js +912 -0
  169. package/dist/assets/TransactionList-DP9cEVya-Dnf5dIML.js +147 -0
  170. package/dist/assets/{TransactionListBig-CefZbd83-D9G3vxbN.js → TransactionListBig-B_s15U1P-DxO9dvuT.js} +15 -15
  171. package/dist/assets/{TransactionListPage-CM319tsV-DkNHohDS.js → TransactionListPage-DpYLFl8A-CtiLL9up.js} +6 -6
  172. package/dist/assets/{TransactionVendorDetailPage-Z7O-juRN-D3T9JsrE.js → TransactionVendorDetailPage-DqqSV533-DMSzEnyq.js} +4 -4
  173. package/dist/assets/{TransferDrawerPage-0vQtF6ID-fpHDlHlf.js → TransferDrawerPage-CxdQzo0m-DrhEn9ys.js} +79 -79
  174. package/dist/assets/{TreasuryOverviewPage-DaCuL9FX-BtE7UAml.js → TreasuryOverviewPage-D7vqj60i-DA26_cse.js} +22 -22
  175. package/dist/assets/{TreasuryPromoPage-BQ6Cuqoa-DpBYobqK.js → TreasuryPromoPage-BuxEHMpT-BDwacXK1.js} +12 -12
  176. package/dist/assets/{TreasurySetupPage-BJRBNCvY-DTKYqc-u.js → TreasurySetupPage-BIfbbeL3-V_YXLN-n.js} +4 -4
  177. package/dist/assets/{TreasuryStatementsPage-z6cg-MO_-B6xE_NLh.js → TreasuryStatementsPage-BeUdQZBc-XNPULVYt.js} +1 -1
  178. package/dist/assets/{TreasuryTaxLetterPage-DP-c4Sqo-DJ913yYo.js → TreasuryTaxLetterPage-uFRMjqLn-CGfm28c4.js} +1 -1
  179. package/dist/assets/{TreasuryTransferOrReviewPage-BGfIlPXx-DSEBAJOM.js → TreasuryTransferOrReviewPage-BWybwqhc-Cp5gifXq.js} +27 -27
  180. package/dist/assets/{TrendChart-BAMRDfp7-BazRtItt.js → TrendChart-7kPgcETh-CZhHOMVt.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-CgbouMHP-BeJkYy2u.js → TrendWithTransactions-DPby1I5u-yXfJ3Iyk.js} +8 -8
  182. package/dist/assets/{UncategorizedAccountsMappingPage-DUVjNpg2--ZQ9jdii.js → UncategorizedAccountsMappingPage-DEkSWWRY-BWS3cZYH.js} +11 -11
  183. package/dist/assets/{UnitIntegrationPage-DSWbn8gm-BF5pvmYs.js → UnitIntegrationPage-B5yzIJDg-DXMgkfWr.js} +3 -3
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-BFn9gixM-TNCvf1wH.js → UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js} +8 -8
  185. package/dist/assets/{Vendor2FAPopup-CA-cVVNX-Br4ikl9I.js → Vendor2FAPopup-DUyiI_-r-CLW3sS1X.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-Hdw6gHNB-D1EJLe9f.js → VendorACHDetailsPage-DycUU3MN-Bh437Vzf.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-CceVHonS-DTF5QB-w.js → VendorDetailPage-B9pWIvXP-p9O1B1Vq.js} +21 -21
  188. package/dist/assets/{VendorDomesticWireDetailsPage-ChF-hj1o-CRNdIBeH.js → VendorDomesticWireDetailsPage-Cs35uQOp-DDOAIhlv.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BnMmu8g4-D-QjmAYA.js → VendorFiling1099EditablePage-BeuSWFCY-Ca6Gux7v.js} +11 -11
  190. package/dist/assets/{VendorFirstReviewPage-C9LNBxKs-iubpjCjr.js → VendorFirstReviewPage-ANhBsl69-D02KU5IA.js} +63 -63
  191. package/dist/assets/{VendorInternationalWireDetailsPage-B8F_1TYL-CehAU7df.js → VendorInternationalWireDetailsPage-BShiEKaz-BZSIpE6n.js} +31 -31
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-HuCjhvn4-DolPnQw8.js → VendorInternationalWireSwiftDetailsPage-B_NlK1ak-UtHTf4LD.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-Cj3NFdKN-B9ouaYU2.js → VendorsAccountsSection-BclWgEaB-DOMr50bF.js} +4 -4
  194. package/dist/assets/VerifyDevice-CRrOo66b-ZlA7gEbg.js +97 -0
  195. package/dist/assets/{VideoPopup-0LSxcyRX-CeJLs_Z5.js → VideoPopup-qS-ig_U0-VKyag34q.js} +3 -3
  196. package/dist/assets/{WarningsDrawerPage-DR9oeIuj-B1HHe12t.js → WarningsDrawerPage-DgRtxLoa-C9d8WcDP.js} +2 -2
  197. package/dist/assets/{ZeniAccountDetailPage-DHl0vyQ0-D4m750Dj.js → ZeniAccountDetailPage-B66nIr0V-6bf8tksW.js} +21 -21
  198. package/dist/assets/{ZeniAccountListViewPage-BC1yUQbd-DA-thvu8.js → ZeniAccountListViewPage-CWhZKmoP-42K6r0wR.js} +10 -10
  199. package/dist/assets/{ZeniAccountNavBarPieces-CpKh4Vxw-CQBSadEV.js → ZeniAccountNavBarPieces-C6MQhfnU-CnbDnx7e.js} +2 -2
  200. package/dist/assets/{ZeniAccountPromoPage-BaRzPlIW-DDgMDs51.js → ZeniAccountPromoPage-C-oF3-HO-DisOzRKq.js} +16 -16
  201. package/dist/assets/{ZeniAccountSetupPage-CveI2__B-BL7QVBOR.js → ZeniAccountSetupPage-DY-nCuiT-B3gBHMad.js} +4 -4
  202. package/dist/assets/{ZeniCopyright-D6e3OekQ-3nIDquq3.js → ZeniCopyright-rY1T9xhh-Dfov-yky.js} +1 -1
  203. package/dist/assets/{ZeniTransferAmountSlider-BqyHxYBn-DOVMp_BS.js → ZeniTransferAmountSlider-Bh5zkWst-Bed32C-4.js} +1 -1
  204. package/dist/assets/analytics-B3n5JGPc.js +7 -0
  205. package/dist/assets/{analyticsHelper-q5gZKv1q.js → analyticsHelper-B0L0ncmN.js} +1 -1
  206. package/dist/assets/{analyticsHelper-CYiy63P3-BIFQ1l_N.js → analyticsHelper-BcJgRhqY-D6z677ff.js} +1 -1
  207. package/dist/assets/chartTypes-BoblEsVF-BVffEXCf.js +1 -0
  208. package/dist/assets/{commonDimensions-DbTYS1hy-sQ0jQuuT.js → commonDimensions-CFd7y7qU-C7Jvc2Ks.js} +1 -1
  209. package/dist/assets/{detailCommon-BeqWtSZF-C3x-L6T7.js → detailCommon-MYixZ3RD-BFmVTLGA.js} +6 -6
  210. package/dist/assets/{downloadPdf-CLTp2aZt-DDw4mfQ_.js → downloadPdf-CgupyHRa-D9AEGU0d.js} +1 -1
  211. package/dist/assets/{index-P_4M6V8j.js → index-B8OsEhOZ.js} +753 -749
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-Dl_IFb2l-Dr2U1vob.js → mapLoadingInProgressToTreeNode-B8Y_euQR-DOx1e8cj.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BAhSN9Et-BvR2g837.js → mapSectionWithAcOnlyToTreeNode-jBSc45Na-BDZbXmNV.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-3b46l63c-C8ssHh5s.js → mapSpacerToTreeNode-COy8gZAM-BaCmq5hE.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-3pTXOISe-CgCBO3AW.js → mapTimeframeBalancesToTreeNode-BodkMcFj-QmE2hfm4.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-DJqcH4tL-s-wMhKIa.js → mapTimeframeBalancesToTreeNode-DXla81BF-zj0mJKeb.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-yhbtLbK2-Buokl7Z0.js → mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-BHeVK-te.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-D49XFhoj-DjL9meL6.js → toCOABalancesWithID-CndsNNsv-CWYFJv_O.js} +1 -1
  219. package/dist/assets/{toChartData-C9pHl0xA-CKVc0-Yj.js → toChartData-B9eYLI57-CKqynvrs.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-CkjbPhqI-PraXB90r.js → treasuryColorHelper-D4iDeX95-DVOhzALi.js} +1 -1
  221. package/dist/assets/{uploadAttachment-BniS82zn-BreMBxbN.js → uploadAttachment-C2I6mBBB-CPoUzWwI.js} +14 -14
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-wO4Dla2j.js → uploadReceipts-dxsKhm9I-YtN4h-4H.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +4 -4
  225. package/dist/assets/ChargeCardSetupPage-BzqdaEET-j6EBeAK_.js +0 -36
  226. package/dist/assets/CustomerOnboardingContainerPage-B9rA9JXM-C9nb1PSk.js +0 -1
  227. package/dist/assets/CustomerOnboardingNoStepsPage-B8cf9wWc-DoeA9g-j.js +0 -66
  228. package/dist/assets/CustomerOnboardingProductSuitePage-Dfv86gVc-xcmudBbw.js +0 -202
  229. package/dist/assets/DashboardSidebarBackgroundAnimation-DTkdczBR-Dm25xp1J.js +0 -12
  230. package/dist/assets/DepositAccTransactionListPage-C6lB4Qyv-67Okcjlq.js +0 -66
  231. package/dist/assets/ExpenseAutomationOverviewPage-Bz-2JPdW-DaIoHdOM.js +0 -222
  232. package/dist/assets/HelpButton-DEwtg0Ez-BLNCXJFp.js +0 -28
  233. package/dist/assets/InviteFormPage-CRRvruND-BlSp_6On.js +0 -312
  234. package/dist/assets/LabeledAddressValueField-CC4nYBb8-CmuRvhjZ.js +0 -45
  235. package/dist/assets/NotificationsListConfig-C14JCaD1-cAHM1Kht.js +0 -1
  236. package/dist/assets/PortfolioAllocationFormPage-eonsRKDg-CW4TIBlU.js +0 -207
  237. package/dist/assets/ReviewDetailsPage-DG7ms5Hy-bXyI7cqb.js +0 -290
  238. package/dist/assets/SetUpAccountSection-CKdSkMBO-Dgf4iucH.js +0 -378
  239. package/dist/assets/SignIn-BMjCrrGx-DVM_TdnN.js +0 -407
  240. package/dist/assets/TransactionDetailPage-Bxzam_ho-gn2TcHkj.js +0 -878
  241. package/dist/assets/TransactionList-CEfjoVPA-DR1uAuMl.js +0 -147
  242. package/dist/assets/VerifyDevice-dg83_W2W-DmiPoszu.js +0 -96
  243. package/dist/assets/analytics-CBL_L82S.js +0 -7
  244. package/dist/assets/chartTypes-sx4859ds-GbS6VOEl.js +0 -1
@@ -1,10 +1,10 @@
1
- import{Y as le,u as S,e as k,a1 as ae,l as A,M as E,j as e,_ as a,aW as me,J as u,c as m,o as t,s as ce,c6 as de,a5 as F,B as pe,C as xe,g as z,c8 as he,a6 as ue,ao as ge,q as we}from"./index-P_4M6V8j.js";import{b as j,n as r}from"./vendor-rkTZJa59.js";import{x as je}from"./MeetingCalenderPopup-CgzTeE14-BMiIqHVm.js";import{m as be}from"./VideoPopup-0LSxcyRX-CeJLs_Z5.js";import{M as v}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new xe(we[5],44)},ye=r.div`
1
+ import{Y as le,u as S,e as k,a2 as ae,m as A,M as E,j as e,$ as a,aX as me,J as u,c as m,o as t,t as ce,c7 as de,a6 as Z,B as pe,C as xe,g as z,c9 as he,a7 as ue,ap as ge,s as we}from"./index-B8OsEhOZ.js";import{b as j,n as r}from"./vendor-rkTZJa59.js";import{x as je}from"./MeetingCalenderPopup-Bn5picNg-BZadZTcq.js";import{m as be}from"./VideoPopup-qS-ig_U0-VKyag34q.js";import{M as v}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",J="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",$e={midContainerMarginBottom:new xe(we[5],44)},fe=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
5
5
  flex-direction: column;
6
6
  background-color: ${i=>i.theme.colors.grey4};
7
- `,$e=r.div`
7
+ `,ye=r.div`
8
8
  padding: ${i=>i.windowSize==="small"?`${t.sp0} ${t.sp3}`:`${t.sp0} ${t.sp8}`};
9
9
  text-align: center;
10
10
  `,Se=r(de)`
@@ -17,18 +17,18 @@ import{Y as le,u as S,e as k,a1 as ae,l as A,M as E,j as e,_ as a,aW as me,J as
17
17
  margin: auto;
18
18
  padding: ${t.sp5} ${t.sp0};
19
19
  color: ${i=>i.theme.colors.primary};
20
- `,J=r.div`
20
+ `,N=r.div`
21
21
  display: flex;
22
22
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
23
23
  align-items: center;
24
24
  justify-content: center;
25
- margin-bottom: ${i=>fe.midContainerMarginBottom.valuePx(i.windowSize)};
25
+ margin-bottom: ${i=>$e.midContainerMarginBottom.valuePx(i.windowSize)};
26
26
  `,ze=r.div``,L=r.div`
27
27
  display: flex;
28
28
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
29
29
  align-items: center;
30
30
  justify-content: center;
31
- `,g=r.img``,N=r.div`
31
+ `,g=r.img``,V=r.div`
32
32
  width: ${i=>i.windowSize==="small"?"auto":"376px"};
33
33
  display: flex;
34
34
  flex-direction: column;
@@ -40,7 +40,7 @@ import{Y as le,u as S,e as k,a1 as ae,l as A,M as E,j as e,_ as a,aW as me,J as
40
40
  align-content: center;
41
41
  justify-content: center;
42
42
  align-items: center;
43
- `,V=r.div`
43
+ `,Y=r.div`
44
44
  margin-left: ${i=>i.windowSize==="small"?t.sp0:t.sp6};
45
45
  margin-bottom: ${i=>i.windowSize==="small"?t.sp4:t.sp0};
46
46
  background: ${i=>i.theme.colors.grey3};
@@ -60,25 +60,25 @@ import{Y as le,u as S,e as k,a1 as ae,l as A,M as E,j as e,_ as a,aW as me,J as
60
60
  box-sizing: border-box;
61
61
  `,b=r(ge)`
62
62
  color: ${i=>i.theme.colors.champion};
63
- `,f=r(ue)`
63
+ `,$=r(ue)`
64
64
  color: ${i=>i.theme.colors.champion};
65
- `,y=r(F)`
65
+ `,f=r(Z)`
66
66
  color: ${i=>i.theme.colors.champion};
67
- `,$=r(he)`
67
+ `,y=r(he)`
68
68
  color: ${i=>i.theme.colors.champion};
69
69
  `,d=r.div``,p=r.div`
70
70
  padding-left: ${t.sp3};
71
- `,I=r(F)`
71
+ `,I=r(Z)`
72
72
  margin: ${i=>i.windowSize==="small"?t.sp1:`auto ${t.sp5}`};
73
73
  color: ${i=>i.theme.colors.grey1};
74
- `,W=r(v)`
74
+ `,q=r(v)`
75
75
  color: ${z.graphColor16Dark};
76
- `,Y=r(v)`
77
- color: ${z.graphColor09Dark};
78
76
  `,G=r(v)`
77
+ color: ${z.graphColor09Dark};
78
+ `,K=r(v)`
79
79
  color: ${z.success};
80
80
  `,D=r(pe)`
81
81
  margin: ${t.sp3} auto;
82
82
  max-width: 772px;
83
83
  color: ${i=>i.theme.colors.hero};
84
- `,s=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,ve=()=>{const i=S(),o=k();return e.jsxs(J,{windowSize:o,children:[e.jsx(O,{windowSize:o,children:e.jsx(V,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.simplestText.bold}),e.jsx(y,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.aiPoweredText.bold}),e.jsx(y,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.multiLevelApprovalText.bold}),e.jsx(y,{children:s.multiLevelApprovalText.regular})]})]})]})]})},Te=()=>{const i=S(),o=k();return e.jsxs(J,{windowSize:o,children:[e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx(f,{children:s.simplestText.bold}),e.jsx(b,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx(f,{children:s.aiPoweredText.bold}),e.jsx(b,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(f,{children:s.multiLevelApprovalText.bold}),e.jsx(b,{children:s.multiLevelApprovalText.regular})]})]})]}),e.jsx(O,{windowSize:o,children:e.jsx(V,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:q,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},Ze=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:_,videoUrl:H,analytics:x,onSetupButtonClick:K,onCreateNewRemiButtonClick:Q,onBackClick:X,onSetupReimbursementSuccess:T,onClickMenuIcon:ee})=>{const C=le(),[ie,se]=j.useState(!1),[te,P]=j.useState(!1),re=S(),l=k(),{remiTermsDetails:h}=i,R=ae(h?.fetchStatus.fetchState),oe=A.hasReimbursementAdminLevelAccess(C.loggedInUserRoleMap),w=A.hasReimbursementAccess(C.loggedInUserRoleMap)&&!oe,ne=!!o?.isReimbursementTOSAccepted,B=!!i.companyRemiInfo?.isReimbursementEnabled,M=w?B?s.employeeAcceptPromoText:s.employeePendingPromoText:s.promoText;j.useEffect(()=>{R==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&T?.()},[R,T,h?.fetchStatus]);const U=()=>{x?.trackReimbursementPromoScheduleDemo(),P(!0)};return e.jsxs(ye,{children:[ie===!0?e.jsx(be,{onCancelClick:()=>{se(!1)},videoUrl:H,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(je,{onCancelClick:()=>{P(!1)},meetingUrl:_,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(me,{title:s.title,backgroundColor:re.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:ee,source:"ReimbursementPromoPage"}),e.jsxs($e,{windowSize:l,children:[l==="small"?e.jsx(ke,{children:M}):e.jsx(Se,{children:M}),l==="small"?e.jsx(ve,{}):e.jsx(Te,{}),e.jsx(ze,{children:w?e.jsx(e.Fragment,{children:B&&!ne?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:s.scheduleDemoButton,onClick:U,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:s.orText}),e.jsx(u,{variant:"primary",label:s.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:Q,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[s.terms.createTerms1,e.jsx(m,{href:s.terms.tosUrl,linkText:s.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),s.terms.terms2,e.jsx(m,{href:s.terms.privacyPolicyUrl,linkText:s.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),s.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:s.scheduleDemoButton,onClick:U,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:s.orText}),e.jsx(u,{variant:"primary",label:s.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[s.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,s.terms.terms3]})]})})]})]})};export{Ze as default};
84
+ `,s=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,ve=()=>{const i=S(),o=k();return e.jsxs(N,{windowSize:o,children:[e.jsx(O,{windowSize:o,children:e.jsx(Y,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:J,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(V,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.simplestText.bold}),e.jsx(f,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.aiPoweredText.bold}),e.jsx(f,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(K,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.multiLevelApprovalText.bold}),e.jsx(f,{children:s.multiLevelApprovalText.regular})]})]})]})]})},Te=()=>{const i=S(),o=k();return e.jsxs(N,{windowSize:o,children:[e.jsxs(V,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.simplestText.bold}),e.jsx(b,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.aiPoweredText.bold}),e.jsx(b,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(K,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.multiLevelApprovalText.bold}),e.jsx(b,{children:s.multiLevelApprovalText.regular})]})]})]}),e.jsx(O,{windowSize:o,children:e.jsx(Y,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:J,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},Fe=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:W,videoUrl:X,analytics:x,onSetupButtonClick:H,onCreateNewRemiButtonClick:Q,onBackClick:_,onSetupReimbursementSuccess:T,onClickMenuIcon:ee})=>{const C=le(),[ie,se]=j.useState(!1),[te,P]=j.useState(!1),re=S(),l=k(),{remiTermsDetails:h}=i,R=ae(h?.fetchStatus.fetchState),oe=A.hasReimbursementAdminLevelAccess(C.loggedInUserRoleMap),w=A.hasReimbursementAccess(C.loggedInUserRoleMap)&&!oe,ne=!!o?.isReimbursementTOSAccepted,B=!!i.companyRemiInfo?.isReimbursementEnabled,M=w?B?s.employeeAcceptPromoText:s.employeePendingPromoText:s.promoText;j.useEffect(()=>{R==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&T?.()},[R,T,h?.fetchStatus]);const U=()=>{x?.trackReimbursementPromoScheduleDemo(),P(!0)};return e.jsxs(fe,{children:[ie===!0?e.jsx(be,{onCancelClick:()=>{se(!1)},videoUrl:X,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(je,{onCancelClick:()=>{P(!1)},meetingUrl:W,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(me,{title:s.title,backgroundColor:re.colors.grey4,onBackClick:_,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:ee,source:"ReimbursementPromoPage"}),e.jsxs(ye,{windowSize:l,children:[l==="small"?e.jsx(ke,{children:M}):e.jsx(Se,{children:M}),l==="small"?e.jsx(ve,{}):e.jsx(Te,{}),e.jsx(ze,{children:w?e.jsx(e.Fragment,{children:B&&!ne?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:s.scheduleDemoButton,onClick:U,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:s.orText}),e.jsx(u,{variant:"primary",label:s.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:Q,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[s.terms.createTerms1,e.jsx(m,{href:s.terms.tosUrl,linkText:s.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),s.terms.terms2,e.jsx(m,{href:s.terms.privacyPolicyUrl,linkText:s.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),s.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:s.scheduleDemoButton,onClick:U,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:s.orText}),e.jsx(u,{variant:"primary",label:s.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:H,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[s.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,s.terms.terms3]})]})})]})]})};export{Fe as default};
@@ -1,4 +1,4 @@
1
- import{u as Ee,e as Ve,a1 as N,a as qe,c9 as Ge,M as Te,l as Je,a7 as be,j as t,cO as Ze,g as J,C as r,aW as Ye,m as Xe,F as Ke,dO as Qe,aR as et,dE as tt,a3 as it,o as a,q as n,bN as nt,cm as ot,cu as at,f2 as ve,f3 as ke,fN as lt,J as rt,_ as $e,X as Pe,bd as st,i as ct,aO as dt}from"./index-P_4M6V8j.js";import{b as o,n as i}from"./vendor-rkTZJa59.js";import{F as ut}from"./HelpButton-DEwtg0Ez-BLNCXJFp.js";import{Y as je}from"./SetUpDefaultSection-BM57n5BV-BGP1G39B.js";import{f as mt}from"./SpendMgmtSetupAccountSection-BF7bb5O_-DSPc6rRK.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BFn9gixM-TNCvf1wH.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-CgzTeE14-BMiIqHVm.js";import"./ChargeCardUtils-DQztOSYJ-DZxY6wV1.js";import"./CreditCardPaymentPlgSection-Cz-CSdKg-DO4yi827.js";import"./ChaseOverlay-BaGgoJZk-L4zZNkyz.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:Y},trigger:X}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Y,E),{localData:c,updateStatus:R,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,V]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{f||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=K,ne=S===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:S||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Lt,{children:S?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),W(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
1
+ import{u as Ee,e as Ve,a2 as N,a as qe,ca as Ge,M as Te,m as Je,a8 as be,j as t,cP as Xe,g as J,C as r,aX as Ze,n as Ye,F as Ke,dO as Qe,aS as et,dE as tt,a4 as it,o as a,s as n,bO as nt,cn as ot,cv as at,f2 as ve,f3 as ke,fN as lt,J as rt,$ as $e,X as Pe,be as st,i as ct,aP as dt}from"./index-B8OsEhOZ.js";import{b as o,n as i}from"./vendor-rkTZJa59.js";import{D as ut}from"./HelpButton-hflpTkYP-BxxKYxfC.js";import{q as je}from"./SetUpDefaultSection-VPie4JZS-CUUkgLvy.js";import{f as mt}from"./SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-Bn5picNg-BZadZTcq.js";import"./ChargeCardUtils-D4KmVUMt-Bgc7_40s.js";import"./CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js";import"./ChaseOverlay-IbWtzNzT-CiTCJc7A.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:X}){const l=Ve(),D=Ee(),{formState:{errors:Z},trigger:Y}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:R,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[C,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=K,ne=C===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:ke(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:S.name,textColor:ke(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:C||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Lt,{children:C?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&X?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -11,10 +11,10 @@ import{u as Ee,e as Ve,a1 as N,a as qe,c9 as Ge,M as Te,l as Je,a7 as be,j as t,
11
11
  justify-content: flex-start;
12
12
  `,yt=i.div`
13
13
  display: flex;
14
- `,Ct=i.div`
14
+ `,St=i.div`
15
15
  ${e=>`${ge.title.style(e.windowSize)}`};
16
16
  color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
17
- `,St=i(ct)`
17
+ `,Ct=i(ct)`
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-start;
@@ -103,7 +103,7 @@ import{u as Ee,e as Ve,a1 as N,a as qe,c9 as Ge,M as Te,l as Je,a7 as be,j as t,
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",q="remiAccount",G="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:X,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:C,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:K,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const H=Ee(),u=Ve(),[O,L]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:I,accountUpdateStatus:Le,plaidConnectionDetails:le,allBankAccounts:Ie,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Fe,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:B,approvalRulesStatus:Re}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(I.fetchState),ye=N(re.fetchState),Ce=N(se.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!O&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&L(!0),O&&_==="In-Progress"&&v==="Completed"&&L(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Ce==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Ce,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),S()}),We=async(P,F)=>{const m=F[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&K(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(G)){const w=F[G];C(w)}};o.useEffect(()=>{const P=z.watch((F,{name:m})=>{m!=null&&F!=null&&Ge(()=>We(m,F))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&I.fetchState==="Completed"&&V()},[V,we,I.fetchState]);const{commonSetUp:Se,spendManagement:He}=Te.getLocalizedStrings(),{reimbursement:Oe}=He,{reimbursementSetup:M}=Oe,{setUp:k}=Se,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Je.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Be=ce?Se.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new be(H.colors.brandColorJadeLight):new be(H.colors.brandColorJadeDark),Ne=()=>{!O&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?L(!0):X?.()};return t.jsxs(zt,{children:[t.jsx(Ze,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:O,onClose:()=>L(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:I,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>L(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ye,{title:M.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,source:"ReimbursementSetUpPage"}),t.jsxs(Ft,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Be}),_e?t.jsx(Rt,{children:t.jsx(Xe,{size:"ExtraLarge",start:!0})}):t.jsx(Ke,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Fe}),t.jsx(mt,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Ie,allFundingAccounts:he,sectionId:q,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:R,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:B.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:B.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:B.length>0?Re:void 0})]})})})]}),ce&&!de&&B.length>0?t.jsx(it,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:I.fetchState==="In-Progress"||Le.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ut,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
106
+ `,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",q="remiAccount",G="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:X,analytics:l,accountsPromoConfig:D,onBackClick:Z,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:S,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:K,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:C,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,L]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:I,accountUpdateStatus:Le,plaidConnectionDetails:le,allBankAccounts:Ie,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Fe,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Re}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(I.fetchState),ye=N(re.fetchState),Se=N(se.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&L(!0),B&&_==="In-Progress"&&v==="Completed"&&L(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Se==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Se,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),C()}),He=async(P,F)=>{const m=F[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&K(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(G)){const w=F[G];S(w)}};o.useEffect(()=>{const P=z.watch((F,{name:m})=>{m!=null&&F!=null&&Ge(()=>He(m,F))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&I.fetchState==="Completed"&&V()},[V,we,I.fetchState]);const{commonSetUp:Ce,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Ce,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Je.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new be(W.colors.brandColorJadeLight):new be(W.colors.brandColorJadeDark),Ne=()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?L(!0):Y?.()};return t.jsxs(zt,{children:[t.jsx(Xe,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>L(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:I,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>L(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:Z,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Ft,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Rt,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Ke,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Fe}),t.jsx(mt,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Ie,allFundingAccounts:he,sectionId:q,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:R,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Re:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:I.fetchState==="In-Progress"||Le.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ut,{isFooterRendered:ce&&!de,meetingUrl:X,analytics:l,productType:"reimbursement"})]})},zt=i.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
@@ -1 +1 @@
1
- import{M as O,j as b,bU as W,bW as q,bX as V,jk as X,aa as z,l as H}from"./index-P_4M6V8j.js";import{b as f}from"./vendor-rkTZJa59.js";import{m as Y}from"./ReviewOverlay-B2jf6tfG-D_9vNPuM.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:n,spendManagement:{reimbursement:j}}=O.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Z(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},U={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,H.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=G(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},M=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(W,{titleComponent:b.jsx(V,{children:y.title}),descriptionComponent:b.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:U,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:M(),cancelButton:N,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=X(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},G=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
1
+ import{M as O,j as b,bV as V,bX as q,bY as W,jk as X,ab as Y,m as z}from"./index-B8OsEhOZ.js";import{b as f}from"./vendor-rkTZJa59.js";import{p as H}from"./ReviewOverlay-sqbjCjkE-BYmWnWTV.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:n,spendManagement:{reimbursement:j}}=O.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Z(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,z.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:U}=G(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},M=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(V,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(H,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:M(),cancelButton:N,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=X(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:Y("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},G=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
@@ -1,4 +1,4 @@
1
- import{u as h,j as r,Z as a,_ as m,ah as j,M as C,a4 as l,aZ as x,i as g,o as c,ai as f}from"./index-P_4M6V8j.js";import{n as s,b as d}from"./vendor-rkTZJa59.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{u as h,j as r,_ as a,$ as m,ai as j,M as C,a5 as l,a_ as x,i as g,o as c,aj as f}from"./index-B8OsEhOZ.js";import{n as s,b as d}from"./vendor-rkTZJa59.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function M({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:i,width:n})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{u as Q,e as ie,bI as me,a as fe,j as o,p as ge,M as X,bJ as ee,F as xe,C as P,a3 as be,o as n,bK as ye,bL as _e,bM as we,bN as $e,bO as ve,B as ce,bP as Ce,q as p,i as ke,K as Z,aZ as je,a7 as Ne,n as Se,b1 as Ie}from"./index-P_4M6V8j.js";import{b as f,f as de,n as d}from"./vendor-rkTZJa59.js";import{W as O,R as Pe}from"./CollapsableReportTable-dCUjgg1X-DLs7OVqc.js";const z=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Oe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function Be(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Oe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=_e(h.headers,t.defaultFileName),y=await h.arrayBuffer();we(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Fe=d.div`
1
+ import{u as K,e as ie,bJ as me,a as fe,j as o,q as ge,M as X,bK as ee,F as xe,C as P,a4 as be,o as n,bL as ye,bM as _e,bN as we,bO as $e,bP as ve,B as ce,bQ as Ce,s as p,i as ke,N as Q,a_ as je,a8 as Ne,p as Se,b2 as Ie}from"./index-B8OsEhOZ.js";import{b as f,f as de,n as d}from"./vendor-rkTZJa59.js";import{W as O,R as Pe}from"./CollapsableReportTable-jOFcWQi9-BD7j44zD.js";const z=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Oe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function Be(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Oe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=_e(h.headers,t.defaultFileName),y=await h.arrayBuffer();we(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Fe=d.div`
2
2
  padding: 0 ${n.sp3} 0 ${n.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -9,10 +9,10 @@ import{u as Q,e as ie,bI as me,a as fe,j as o,p as ge,M as X,bJ as ee,F as xe,C
9
9
  position: relative;
10
10
  height: ${n.sp8};
11
11
  cursor: pointer;
12
- `,Le=d(Se)`
12
+ `,Ee=d(Se)`
13
13
  color: ${e=>e.theme.colors.primary};
14
14
  margin-top: -2px;
15
- `,Ee=d(Ie)`
15
+ `,Le=d(Ie)`
16
16
  color: ${e=>e.theme.colors.hero};
17
17
  width: 12px;
18
18
  height: 12px;
@@ -20,17 +20,17 @@ import{u as Q,e as ie,bI as me,a as fe,j as o,p as ge,M as X,bJ as ee,F as xe,C
20
20
  :hover {
21
21
  color: ${e=>e.theme.colors.primary};
22
22
  }
23
- `,Ae=e=>{const{value:c,onClick:a}=e,t=Q();return o.jsxs(Fe,{onClick:a,children:[o.jsx(Le,{style:{color:t.colors.primary},children:c}),o.jsx(Ee,{})]})},Te=de.memo(Ae);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=O("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const a=e.map((t,r)=>{const h=O("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(D=>he({nestedClass:D,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function Re(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new P(p[3],p[3],p[2]),contentPaddingRight:new P(p[3],p[3],p[2])},ze=d.div`
23
+ `,Ae=e=>{const{value:c,onClick:a}=e,t=K();return o.jsxs(Fe,{onClick:a,children:[o.jsx(Ee,{style:{color:t.colors.primary},children:c}),o.jsx(Le,{})]})},Te=de.memo(Ae);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=O("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const a=e.map((t,r)=>{const h=O("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(D=>he({nestedClass:D,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function Re(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new P(p[3],p[3],p[2]),contentPaddingRight:new P(p[3],p[3],p[2])},ze=d.div`
24
24
  height: ${e=>e.height}px;
25
25
  width: 100%;
26
- `,Ve=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:U,onToggleCheck:B})=>{const V=Q(),Y=ie(),[$,j]=f.useState(void 0),[T,_]=f.useState(!1),[M,F]=f.useState({}),[g,W]=f.useState(void 0),[L,v]=f.useState(r),H="none",E=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,N=(i,l)=>{_(!0),F(i),B?.(i,l,r==="account_group"?!0:void 0),w(i,l)},w=(i,l)=>{const m=G(i);for(const C of m.children)B?.(C.classId,l),w(C.classId,l)},G=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(C=>C.classId[0]===i[m])[0];return l},q=i=>{if(i.length>1){const l=G(i.slice(1));let m=!1;for(const C of l.children)if(t.find(s=>s[0]===C.classId[0])===void 0){m=!0;break}m===!0?B?.(l.classId,!0):B?.(l.classId,!1),F(l.classId)}};f.useEffect(()=>{T&&q(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:H,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:E,showClassAccountNumber:h};if($==null||!Z(g,a)||!Z(L,r)||T===!0){const l=We(a,i);W(a),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[a,r,t]);const[J,K]=f.useState(5),A=i=>{const l=i+p[6];K(l)};return $!=null?o.jsx(ze,{height:J,children:o.jsx(Pe,{backgroundColor:r==="classes"?new Ne(V.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(Y),right:oe.contentPaddingRight.value(Y)},scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:U,onToggleCheck:N,onReportTableHeightChanged:A})}):null},k={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(p[5],p[5]),containerWidth:new P(150,400,400)},Ye=d.div`
26
+ `,Ye=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:U,onToggleCheck:B})=>{const Y=K(),H=ie(),[$,j]=f.useState(void 0),[T,_]=f.useState(!1),[M,F]=f.useState({}),[g,W]=f.useState(void 0),[E,v]=f.useState(r),G="none",L=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,N=(i,l)=>{_(!0),F(i),B?.(i,l,r==="account_group"?!0:void 0),w(i,l)},w=(i,l)=>{const m=V(i);for(const C of m.children)B?.(C.classId,l),w(C.classId,l)},V=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(C=>C.classId[0]===i[m])[0];return l},q=i=>{if(i.length>1){const l=V(i.slice(1));let m=!1;for(const C of l.children)if(t.find(s=>s[0]===C.classId[0])===void 0){m=!0;break}m===!0?B?.(l.classId,!0):B?.(l.classId,!1),F(l.classId)}};f.useEffect(()=>{T&&q(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:G,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:L,showClassAccountNumber:h};if($==null||!Q(g,a)||!Q(E,r)||T===!0){const l=We(a,i);W(a),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[a,r,t]);const[J,Z]=f.useState(5),A=i=>{const l=i+p[6];Z(l)};return $!=null?o.jsx(ze,{height:J,children:o.jsx(Pe,{backgroundColor:r==="classes"?new Ne(Y.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(H),right:oe.contentPaddingRight.value(H)},scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:U,onToggleCheck:N,onReportTableHeightChanged:A})}):null},k={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(p[5],p[5]),containerWidth:new P(150,400,400)},He=d.div`
27
27
  position: relative;
28
28
  pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
29
- `,He=d.div`
29
+ `,Ge=d.div`
30
30
  display: flex;
31
31
  flex-direction: column;
32
32
  width: ${e=>k.containerWidth.valuePx(e.windowSize)};
33
- `,Ge=d($e)`
33
+ `,Ve=d($e)`
34
34
  display: flex;
35
35
  flex-direction: row;
36
36
  width: fit-content;
@@ -117,13 +117,13 @@ import{u as Q,e as ie,bI as me,a as fe,j as o,p as ge,M as X,bJ as ee,F as xe,C
117
117
  min-height: 165px;
118
118
  max-height: 353px;
119
119
  overscroll-behavior: contain;
120
- `,Ke=d.div`
120
+ `,Ze=d.div`
121
121
  width: 100%;
122
122
  height: 65px;
123
123
  `,ae=d.label`
124
124
  color: ${e=>e.theme.colors.primary};
125
125
  cursor: ${e=>e.disabled===!0?"default":"pointer"};
126
- `,Ze=d(ce)`
126
+ `,Qe=d(ce)`
127
127
  display: flex;
128
128
  align-items: center;
129
129
  column-gap: ${n.sp2};
@@ -133,7 +133,7 @@ import{u as Q,e as ie,bI as me,a as fe,j as o,p as ge,M as X,bJ as ee,F as xe,C
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.primary};
135
135
  }
136
- `,Qe=d.div`
136
+ `,Ke=d.div`
137
137
  display: flex;
138
138
  flex: 1;
139
139
  width: inherit;
@@ -147,4 +147,4 @@ import{u as Q,e as ie,bI as me,a as fe,j as o,p as ge,M as X,bJ as ee,F as xe,C
147
147
  margin-left: ${n.sp5};
148
148
  margin-top: -12px;
149
149
  color: ${e=>e.theme.colors.hero};
150
- `,{reportViewSelector:I,common:{footer:ne}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:D,isClassViewDisabled:U,downloadPage:B,showAccountGroups:V=!0,onResyncReports:Y,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=Q(),_=ie(),[M,F]=f.useState(!1),[g,W]=f.useState(r),[L,v]=f.useState({}),H=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=H(x.children,u)}),u),E=H(a,[]),[N,w]=f.useState(g==="classes"?h:E),G=t!=="Completed"||g==="classes"&&N.length===E.length;me({componentName:`reports.${e}`});const q=s=>s==="classes"?I.classes.label:V===!0?I.accountGroups.label:I.accounts.label,J=fe({mode:"all"}),K=J.handleSubmit(()=>{F(!1),g==="classes"?D?.("classes",N):D?.("account_group")}),A=s=>{if(W(s),s==="classes")v({}),w([]);else{w(E);let u={};a.forEach(x=>{const S=O("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[S]:!1})}),v(u)}},i=()=>{M===!0&&m(),F(!M);let s={};a.forEach(u=>{const x=O("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||N.find(S=>S[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),w(E)),u===!0){const S=O("checkbox_and_name_only",[],s[0]);L[S]=!0,v(L),w(R=>R.filter(pe=>pe[0]!==s[0]))}else{const S=O("checkbox_and_name_only",[],s[0]);L[S]=!1,N.find(R=>R[0]===s[0])===void 0&&w(R=>[...R,s])}},m=()=>{F(!1),W(r),w(h)},C=()=>{$===!1&&Y?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=O("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(Ye,{isDisabled:U??!1,children:[B===!0?o.jsx(Te,{value:q(r),onClick:()=>{y?.(),i()}}):o.jsxs(He,{windowSize:_,children:[o.jsxs(Ge,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(qe,{className:"dropdownIcon"}),q(r)]}),r==="classes"?o.jsx(Ze,{onClick:C,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Xe,{})]})}):null]}),M?o.jsx(xe,{...J,children:o.jsx("form",{id:le(re),onSubmit:K,children:o.jsxs(Je,{width:k.width.value(_),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?A("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>A(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:V===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Qe,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?A("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?A(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(Ue,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:N,selectedView:g,nodeOpenStatus:L,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:T.colors.grey3,foregroundColor:T.colors.grey4,width:k.width.value(_),height:k.height.value(_),animated:!0})]}),o.jsx(Ke,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:k.buttonWidth.valuePx(_),height:k.buttonHeight.valuePx(_)},isLoading:!1,isDisabled:G,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:k.buttonWidth.valuePx(_),height:k.buttonHeight.valuePx(_)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(Ve,Z);export{no as c,ro as h};
150
+ `,{reportViewSelector:I,common:{footer:ne}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:D,isClassViewDisabled:U,downloadPage:B,showAccountGroups:Y=!0,onResyncReports:H,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=K(),_=ie(),[M,F]=f.useState(!1),[g,W]=f.useState(r),[E,v]=f.useState({}),G=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=G(x.children,u)}),u),L=G(a,[]),[N,w]=f.useState(g==="classes"?h:L),V=t!=="Completed"||g==="classes"&&N.length===L.length;me({componentName:`reports.${e}`});const q=s=>s==="classes"?I.classes.label:Y===!0?I.accountGroups.label:I.accounts.label,J=fe({mode:"all"}),Z=J.handleSubmit(()=>{F(!1),g==="classes"?D?.("classes",N):D?.("account_group")}),A=s=>{if(W(s),s==="classes")v({}),w([]);else{w(L);let u={};a.forEach(x=>{const S=O("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[S]:!1})}),v(u)}},i=()=>{M===!0&&m(),F(!M);let s={};a.forEach(u=>{const x=O("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||N.find(S=>S[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),w(L)),u===!0){const S=O("checkbox_and_name_only",[],s[0]);E[S]=!0,v(E),w(R=>R.filter(pe=>pe[0]!==s[0]))}else{const S=O("checkbox_and_name_only",[],s[0]);E[S]=!1,N.find(R=>R[0]===s[0])===void 0&&w(R=>[...R,s])}},m=()=>{F(!1),W(r),w(h)},C=()=>{$===!1&&H?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=O("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(He,{isDisabled:U??!1,children:[B===!0?o.jsx(Te,{value:q(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ge,{windowSize:_,children:[o.jsxs(Ve,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(qe,{className:"dropdownIcon"}),q(r)]}),r==="classes"?o.jsx(Qe,{onClick:C,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Xe,{})]})}):null]}),M?o.jsx(xe,{...J,children:o.jsx("form",{id:le(re),onSubmit:Z,children:o.jsxs(Je,{width:k.width.value(_),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?A("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>A(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:Y===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Ke,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?A("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?A(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(Ue,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:N,selectedView:g,nodeOpenStatus:E,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:T.colors.grey3,foregroundColor:T.colors.grey4,width:k.width.value(_),height:k.height.value(_),animated:!0})]}),o.jsx(Ze,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:k.buttonWidth.valuePx(_),height:k.buttonHeight.valuePx(_)},isLoading:!1,isDisabled:V,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:k.buttonWidth.valuePx(_),height:k.buttonHeight.valuePx(_)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(Ye,Q);export{no as c,ro as h};
@@ -1,9 +1,9 @@
1
- import{e as U,u as G,M as y,Y as he,l as _,j as r,_ as k,bf as fe,aY as me,aW as ge,C as v,o as C,a5 as _e,m as be,bg as Se,q as w,I as B,K,bh as we,a7 as Ce,aC as ye,a$ as xe}from"./index-P_4M6V8j.js";import{b as P,f as Q,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as Z}from"./analyticsHelper-CYiy63P3-BIFQ1l_N.js";import{h as Oe}from"./ReportTableViewSelector-yTxheyC3-CSqeEY6U.js";import{a as X,p as Re}from"./TimeRangeSwitcher-DpDC0FGn-CoKhjSY7.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-_2U17Wg0-Cc6NrQTz.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-DN4zwFl5-BWBizCPI.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-dCUjgg1X-DLs7OVqc.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-BAhSN9Et-BvR2g837.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-3pTXOISe-CgCBO3AW.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-yhbtLbK2-Buokl7Z0.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-Dl_IFb2l-Dr2U1vob.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-D1cuigpc-D9PCDoa0.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-mHhwnvVT-61DHuT3I.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("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 Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
1
+ import{e as U,u as G,M as y,Y as he,m as _,j as r,$ as k,bg as fe,aZ as me,aX as ge,C as v,o as C,a6 as _e,n as be,bh as Se,s as w,K as B,N as K,bi as we,a8 as Ce,aD as ye,b0 as xe}from"./index-B8OsEhOZ.js";import{b as P,f as Q,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as H}from"./analyticsHelper-BcJgRhqY-D6z677ff.js";import{h as Oe}from"./ReportTableViewSelector-lMBROmrI-C57N0Ev_.js";import{a as X,p as Re}from"./TimeRangeSwitcher-DVB0vP5W-Bka-ygDj.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-B1bMIGal-PXrqXkjU.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-BcH72YTL-B8MaexAj.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-jOFcWQi9-BD7j44zD.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-jBSc45Na-BDZbXmNV.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BodkMcFj-QmE2hfm4.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-BHeVK-te.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-B8Y_euQR-DOx1e8cj.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-BmhH741X-Bq2UrAGM.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-99zfxKet-iP3hUTyF.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ne({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ne({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("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 Ie(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${C.sp2};
5
5
  background-color: ${e=>e.theme.colors.grey4};
6
- `;function De({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=U(),s=G(),[c,x]=P.useState(void 0),[O,E]=P.useState(void 0),T=!(h==="small"||h==="medium-compact"),V="name+balances_actual",$=u===!0?"this_period_vs_period_before":"none",R=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>_.toTimeframeTick(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,pe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,H=D??pe;H?.additionalBalances!=null&&(m=H.additionalBalances.map(ue=>_.toTimeframeTick(ue)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>_.toTimeframeTick(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>_.toTimeframeTick(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};P.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:$,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:xe(),showClassAccountNumber:n};if(c==null||!K(O,e)||g===!0){const f=ze(e,m,T,g);E(e),x(f)}else{const f=Ne(c,m,e,T);x(f)}},[u,e,g]);const[A,N]=P.useState(5),M=m=>{const f=m+135;N(f)},de=m=>m?.trackPageLoaded(We(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(we,{analytics:a,onLoad:de}),r.jsx(Ve,{height:A,children:r.jsx(ve,{backgroundColor:new Ce(s.colors.grey4),rootNodes:c,type:V,compareMode:R(),isSticky:{isStickyHeader:T,isStickyName:T},treeNodePadding:{left:q.contentPaddingLeft.value(h),right:q.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:M,onScroll:m=>l?.(e.reportId,m)})})]}):null}const ze=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return Ee(e,t,o);case"profit_and_loss_by_classes":return je(e,t,o,a);case"cash_flow":return $e(e,t,o);case"balance_sheet":return Me(e,t,o);default:return}},We=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},Ue=b.div`
6
+ `;function De({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=U(),s=G(),[c,x]=P.useState(void 0),[O,E]=P.useState(void 0),T=!(h==="small"||h==="medium-compact"),V="name+balances_actual",$=u===!0?"this_period_vs_period_before":"none",R=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>_.toTimeframeTick(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,pe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,Z=D??pe;Z?.additionalBalances!=null&&(m=Z.additionalBalances.map(ue=>_.toTimeframeTick(ue)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>_.toTimeframeTick(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>_.toTimeframeTick(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};P.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:$,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:xe(),showClassAccountNumber:n};if(c==null||!K(O,e)||g===!0){const f=ze(e,m,T,g);E(e),x(f)}else{const f=Ie(c,m,e,T);x(f)}},[u,e,g]);const[A,I]=P.useState(5),M=m=>{const f=m+135;I(f)},de=m=>m?.trackPageLoaded(We(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(we,{analytics:a,onLoad:de}),r.jsx(Ve,{height:A,children:r.jsx(ve,{backgroundColor:new Ce(s.colors.grey4),rootNodes:c,type:V,compareMode:R(),isSticky:{isStickyHeader:T,isStickyName:T},treeNodePadding:{left:q.contentPaddingLeft.value(h),right:q.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:M,onScroll:m=>l?.(e.reportId,m)})})]}):null}const ze=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return Ee(e,t,o);case"profit_and_loss_by_classes":return je(e,t,o,a);case"cash_flow":return $e(e,t,o);case"balance_sheet":return Me(e,t,o);default:return}},We=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},Ue=b.div`
7
7
  display: flex;
8
8
  flex-direction: row;
9
9
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
@@ -24,7 +24,7 @@ import{e as U,u as G,M as y,Y as he,l as _,j as r,_ as k,bf as fe,aY as me,aW as
24
24
  &:hover {
25
25
  color: ${e=>e.theme.colors.primary};
26
26
  }
27
- `,He=b.div`
27
+ `,Ze=b.div`
28
28
  height: 2px;
29
29
  background-color: ${e=>e.theme.colors.primary};
30
30
  border-radius: 1px;
@@ -49,7 +49,7 @@ import{e as U,u as G,M as y,Y as he,l as _,j as r,_ as k,bf as fe,aY as me,aW as
49
49
  width: 160px;
50
50
  left: 63%;
51
51
  }
52
- `;function Ze({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(Ye,{"data-testid":k("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function qe({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(Ue,{"data-testid":k("report-switcher-container"),children:r.jsx(Ge,{"data-testid":k("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(Ze,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(He,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const I={contentContainerLeftRightMargin:new v(w[3],w[3],w[8]),contentRightPadding:new v(w[3],w[3],w[8]),tickSkelectionContainerWidth:new v(343,600,905,1240)},Je=new v(4,4),Ke=new v(4,4),Qe={selectedNumberOfPeriods:(e,t)=>e?Ke.value(t):Je.value(t)},Xe=b.div`
52
+ `;function He({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(Ye,{"data-testid":k("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function qe({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(Ue,{"data-testid":k("report-switcher-container"),children:r.jsx(Ge,{"data-testid":k("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(He,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(Ze,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const N={contentContainerLeftRightMargin:new v(w[3],w[3],w[8]),contentRightPadding:new v(w[3],w[3],w[8]),tickSkelectionContainerWidth:new v(343,600,905,1240)},Je=new v(4,4),Ke=new v(4,4),Qe={selectedNumberOfPeriods:(e,t)=>e?Ke.value(t):Je.value(t)},Xe=b.div`
53
53
  display: flex;
54
54
  flex: 1 1 auto;
55
55
  min-height: 100%;
@@ -60,7 +60,7 @@ import{e as U,u as G,M as y,Y as he,l as _,j as r,_ as k,bf as fe,aY as me,aW as
60
60
  flex: 1 1 auto;
61
61
  flex-direction: column;
62
62
  height: calc(100vh - ${C.sp10});
63
- margin: ${e=>`${C.sp2} ${C.sp0} ${C.sp0} ${I.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
63
+ margin: ${e=>`${C.sp2} ${C.sp0} ${C.sp0} ${N.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
64
64
  `,tt=b.div`
65
65
  display: flex;
66
66
  width: 100%;
@@ -98,14 +98,14 @@ import{e as U,u as G,M as y,Y as he,l as _,j as r,_ as k,bf as fe,aY as me,aW as
98
98
  `,at=b(_e)`
99
99
  margin-top: ${C.sp3};
100
100
  color: ${e=>e.theme.colors.hero};
101
- `,re=({style:e,isLoading:t})=>t?r.jsx(tt,{style:e,children:r.jsx(be,{size:"ExtraLarge",start:!0})}):null,S=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;case"profit_and_loss":default:return e.profitAndLossReport}},W=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=Qe.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function jt(e){const t=U(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(R,A)=>{R!==h?.accountViewMode&&a?.(R),A&&n?.(A)};P.useEffect(()=>{if(e.fetchState==="Completed"){const R=S(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(R,e.isCompareMode,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=rt(e),s=y.getLocalizedStrings().reports.common,c=he(),x=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?"detailed":"more_detailed",O=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&O.push("detailed");const[E,T]=Q.useState(O.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:E,disabledFormatForRole:O,roleBasedClassesSelectedFormat:x,setSelectedFormat:T};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(nt,{"data-testid":k("report-page-error-reload-page"),children:[r.jsx(ot,{"data-testid":k("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(fe,{})}),r.jsx(at,{children:s.failed})]});const $=e.fetchState;if(i.fetchState!=="Completed"&&($==="In-Progress"||$==="Not-Started"))return r.jsx(re,{isLoading:!0});{const R=r.jsx(me,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Be,{defaultOptions:h,analytics:e.analytics,referrer:L(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:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(A,N,M)=>{d(l,A,N,M)},onTimeframeSelectionChanged:(A,N,M)=>{p?.(A,N,M)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(Xe,{children:[r.jsx(ge,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:R,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(it,{...e})]})}}function it(e){const t=U(),o=G(),a=P.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const x=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...S(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(O=>O!=="this_period_vs_last_period"):[...S(e).filter.additionalBalances,"this_period_vs_last_period"].filter(O=>O!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,x,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=S(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=_.reduceAllFetchState([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(et,{windowSize:t,"data-testid":k("reports-page-content-container"),children:[r.jsx(pt,{windowSize:t,ref:a,children:r.jsx(Ae,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=S(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(ht,{windowSize:t,children:r.jsx(ft,{children:r.jsx(Se,{width:u,height:X-w[2],backgroundColor:o.colors.grey3,style:{borderRadius:C.sp2}})})}):r.jsx(ut,{windowSize:t,children:r.jsx(Re,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,Z(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=ct(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,Z(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(mt,{windowSize:t,children:r.jsx(qe,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(lt(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(re,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(le,{report:S(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),_.isPAndLReport(e.selectedReport)?r.jsx(st,{windowSize:t,children:r.jsx(Oe,{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:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},ct=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function rt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=S(e).firstMonthOfFY,a=S(e).bookCloseDate,n=S(e).dataAvailable,d=S(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=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"}},lt=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},le=Q.memo(De,(e,t)=>dt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));le.displayName="Reports table";const dt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),pt=b.div`
102
- padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
101
+ `,re=({style:e,isLoading:t})=>t?r.jsx(tt,{style:e,children:r.jsx(be,{size:"ExtraLarge",start:!0})}):null,S=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;case"profit_and_loss":default:return e.profitAndLossReport}},W=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=Qe.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function jt(e){const t=U(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(R,A)=>{R!==h?.accountViewMode&&a?.(R),A&&n?.(A)};P.useEffect(()=>{if(e.fetchState==="Completed"){const R=S(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(R,e.isCompareMode,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=rt(e),s=y.getLocalizedStrings().reports.common,c=he(),x=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?"detailed":"more_detailed",O=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&O.push("detailed");const[E,T]=Q.useState(O.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:E,disabledFormatForRole:O,roleBasedClassesSelectedFormat:x,setSelectedFormat:T};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(nt,{"data-testid":k("report-page-error-reload-page"),children:[r.jsx(ot,{"data-testid":k("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(fe,{})}),r.jsx(at,{children:s.failed})]});const $=e.fetchState;if(i.fetchState!=="Completed"&&($==="In-Progress"||$==="Not-Started"))return r.jsx(re,{isLoading:!0});{const R=r.jsx(me,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Be,{defaultOptions:h,analytics:e.analytics,referrer:L(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:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(A,I,M)=>{d(l,A,I,M)},onTimeframeSelectionChanged:(A,I,M)=>{p?.(A,I,M)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(Xe,{children:[r.jsx(ge,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:R,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(it,{...e})]})}}function it(e){const t=U(),o=G(),a=P.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const x=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...S(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(O=>O!=="this_period_vs_last_period"):[...S(e).filter.additionalBalances,"this_period_vs_last_period"].filter(O=>O!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,x,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=S(e),u=a.current?.clientWidth??N.tickSkelectionContainerWidth.value(t),g=_.reduceAllFetchState([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(et,{windowSize:t,"data-testid":k("reports-page-content-container"),children:[r.jsx(pt,{windowSize:t,ref:a,children:r.jsx(Ae,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=S(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(ht,{windowSize:t,children:r.jsx(ft,{children:r.jsx(Se,{width:u,height:X-w[2],backgroundColor:o.colors.grey3,style:{borderRadius:C.sp2}})})}):r.jsx(ut,{windowSize:t,children:r.jsx(Re,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,H(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=ct(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,H(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(mt,{windowSize:t,children:r.jsx(qe,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(lt(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(re,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(le,{report:S(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),_.isPAndLReport(e.selectedReport)?r.jsx(st,{windowSize:t,children:r.jsx(Oe,{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:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},ct=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function rt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=S(e).firstMonthOfFY,a=S(e).bookCloseDate,n=S(e).dataAvailable,d=S(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=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"}},lt=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},le=Q.memo(De,(e,t)=>dt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));le.displayName="Reports table";const dt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),pt=b.div`
102
+ padding-right: ${e=>N.contentRightPadding.valuePx(e.windowSize)};
103
103
  `,ut=b.div`
104
104
  margin-top: ${C.sp3};
105
- padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
105
+ padding-right: ${e=>N.contentRightPadding.valuePx(e.windowSize)};
106
106
  `,ht=b.div`
107
107
  margin-top: ${C.sp3};
108
- padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
108
+ padding-right: ${e=>N.contentRightPadding.valuePx(e.windowSize)};
109
109
  `,ft=b.div`
110
110
  display: flex;
111
111
  flex-direction: row;
@@ -117,5 +117,5 @@ import{e as U,u as G,M as y,Y as he,l as _,j as r,_ as k,bf as fe,aY as me,aW as
117
117
  justify-content: center;
118
118
  `,mt=b.div`
119
119
  margin-top: ${C.sp4};
120
- padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
120
+ padding-right: ${e=>N.contentRightPadding.valuePx(e.windowSize)};
121
121
  `;export{jt as default};
@@ -1,4 +1,4 @@
1
- import{u as A,j as a,M as S,e as de,_ as Ae,ai as Q,b6 as Te,q as E,b7 as J,av as ee,v as M,au as ae,aa as re,b8 as oe,b9 as ge,o as m,ba as te,g,K as Fe,bb as pe,bc as me,C as xe,bd as fe,n as R,be as F,ao as V}from"./index-P_4M6V8j.js";import{b as P,f as le,n as x}from"./vendor-rkTZJa59.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-sx4859ds-GbS6VOEl.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-D49XFhoj-DjL9meL6.js";import{V as Z}from"./toChartData-C9pHl0xA-CKVc0-Yj.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
1
+ import{u as A,j as a,M as S,e as de,$ as Ae,aj as Q,b7 as Te,s as E,b8 as J,aw as ee,v as M,av as ae,ab as re,b9 as oe,ba as ge,o as m,bb as te,g,N as Fe,bc as pe,bd as me,C as xe,be as fe,p as R,bf as F,ap as V}from"./index-B8OsEhOZ.js";import{b as P,f as le,n as x}from"./vendor-rkTZJa59.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-BoblEsVF-BVffEXCf.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-CndsNNsv-CWYFJv_O.js";import{V as Z}from"./toChartData-B9eYLI57-CKqynvrs.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};