@zeniai/web-cockpit-ui 1.14.94-qa → 1.14.95-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.
- package/dist/assets/{ACHDetailsPage--3bIj7tB-DrDErnNL.js → ACHDetailsPage-OhfwzmDP-BxTDVOh1.js} +1 -1
- package/dist/assets/{AIPerformancePage-DBCeKLy6-By9DMVXx.js → AIPerformancePage-9OxanlvK-CgJqovaF.js} +1 -1
- package/dist/assets/AccountInfoPage-CDn5K_o2-Jz8ASTF3.js +18 -0
- package/dist/assets/{AccountInfoPageContent-Zb49sPy6-BxbI1uqA.js → AccountInfoPageContent-Bu-ZFVKf-Bzjfgq-w.js} +10 -10
- package/dist/assets/{AccountLockedInfoModal-BcokXO2D-Co3qEZOv.js → AccountLockedInfoModal-BqLkGmTA-BNXIZ-_c.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BWydimgX-CHT8CRlz.js → AccountReconDetailsDrawerPage-CyQ13mJl-FHiDm0XX.js} +1 -1
- package/dist/assets/{AccountRow-XnGMYfcj-DObYPAJJ.js → AccountRow-pJ59k4-J-byrgsZ5o.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BQeRFxKs-sxU_SQN3.js → AccountsPromoCardStack-Ukdm1VDj-LXzQVhgG.js} +8 -8
- package/dist/assets/{AddAddressForCardDrawer-DOXNDswm-CcCKCIGE.js → AddAddressForCardDrawer-CZ9kZK-_-BorvwiUS.js} +1 -1
- package/dist/assets/{AddToWalletPage-D4yEGRLZ-BkCaswnJ.js → AddToWalletPage-Bc0GY8mw-Bzy3APVO.js} +1 -1
- package/dist/assets/{AgingReportsPage-Bos6Ptg1-DFUrEqFA.js → AgingReportsPage-Cam_Ox67-esv0vh5e.js} +3 -3
- package/dist/assets/{AllUserItems-JjQPLLSr-DTpPvg0u.js → AllUserItems-CEBWfFac-DTqOorYc.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-Y4VWhY78-BVAmz3xM.js → ApAgingDetailPage-uy2AK45a-DNUi-nEy.js} +2 -2
- package/dist/assets/{AppBasePage-CaAadL3t-C3XqVSW3.js → AppBasePage-BBolfeYB-DNhslGFP.js} +1 -1
- package/dist/assets/{AppDrawerContent-BKsLlcGq-CZQ6749H.js → AppDrawerContent-Df0b3OK2-B2ahGZLO.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-sHR8nTbf-B4GmnvCX.js → ApprovalRulesSettingsPage-ChI1Wnf--Dl3-g6oX.js} +1 -1
- package/dist/assets/{ArAgingChart-Cn2M7EaL-rahkvPhe.js → ArAgingChart-PIQ_BFy4-BnDMbQVn.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-vdpIT5_o-4DnPrw53.js → ArAgingDetailPage-DpdUPb6--z8BZ4n5F.js} +1 -1
- package/dist/assets/{AttachmentView-QyMOK54a-yHfOa1ag.js → AttachmentView-mC246Bpw-BHWqGVkj.js} +1 -1
- package/dist/assets/{BankAccountSection-BexfgJ02-BdNur9UM.js → BankAccountSection-DehqZ04x-DO-HA5ys.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-MLEqvFgR-DBOH6zDo.js → BankAccountWarningSection-WkczfI75-CuH7tIxu.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-DP9KRNaJ-CNEOfPUf.js → BankConnectionsSettingsPage-CCEKqkfW-BfqVttB9.js} +1 -1
- package/dist/assets/{BillDetailPage-jNE4rg05-BBmr6_46.js → BillDetailPage-DA1djKtd-DyCGsfw-.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-C8hROA4_-C1c28UPR.js → BillPayApprovalRuleDetailPage-CLkMLaIk-C1v-sTgA.js} +4 -4
- package/dist/assets/{BillPayApprovalRulesPage-BQywFC8e-o7uF7NjZ.js → BillPayApprovalRulesPage-CZnYZ8cn-CAMKGQJy.js} +1 -1
- package/dist/assets/{BillPayPromoPage-D2OmNki0-C0AfkR54.js → BillPayPromoPage-M3bRYehy-SjsaKPSV.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-C81gx8-a-DDlMbDXO.js → BillPaySetUpPage-CJyPhrld-C0AU7hvY.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CIUisdZK-w3vJ1And.js → BillingSettingsPage-CQngU3lq-Dyxs7zHK.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DqjW9AqP-CmB_LcND.js → BillsBulkReviewDrawerPage-DlAOz-SY-3nnvXFIK.js} +1 -1
- package/dist/assets/{BoxItem-YBSbdQ7d-BwMDCITL.js → BoxItem-Cb4_ZBkK-Bkgg0u3k.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DeJbdegJ-CUYYGIL9.js → BusinessVerificationPage-D7btikKT-CvsI0MLJ.js} +1 -1
- package/dist/assets/{CardNumberSubText-Bq9G3f38-DLJhJoLi.js → CardNumberSubText-DQ6T2OKm-DvKU5ajv.js} +1 -1
- package/dist/assets/{CashbackDetailPage-C-0eaJVF-Cx6j_Uk4.js → CashbackDetailPage-ToN5ueBt-C9SvI1bn.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-CBB5up99-KXJuUvRz.js → ChargeCardDetailPage-BYNjlLQX-CdtS9CW8.js} +21 -21
- package/dist/assets/{ChargeCardListPage-52TDMfjH-DXcbVN4v.js → ChargeCardListPage-CTG6bNbA-CEyn9Rpg.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BdHKiQtr-gDqLA-sS.js → ChargeCardListTable-BRAAvmWW-D-sN9KpZ.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-D43dBHNx-sLgU5ULy.js → ChargeCardPromoPage-xhEvT_sU-BkSGNTuR.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-CgzI8qMq-CPQUeaXF.js → ChargeCardSetupPage-Be89R3A7-DtcPTkPM.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-C1PYOcuH-DBVxGbQ9.js → ChargeCardStatementsPage-CFNCOiLr-iPk9fUPX.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-CrYCkxKl-BeZkTazq.js → CheckDepositDrawerPage-Cy0NVgKc-D5Z7NEXx.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CvXUxopt-f_pwfY1A.js → CollapsableReportTable-CrR91Kpi-5o5TUvM_.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DYAECWJz-HKtVrqo7.js → CompanyOfficerDetailsSection-4FjXy6T9-BeFKaxwk.js} +1 -1
- package/dist/assets/{CompanyPassportCard-CLoIl-hE-wllBt2bZ.js → CompanyPassportCard-Bv6Aws7i-BHrtuPF7.js} +2 -2
- package/dist/assets/{CompanyPassportPage-B3opPlfY-CDzkB8k9.js → CompanyPassportPage-DRhnOgdd-CAYATeHw.js} +1 -1
- package/dist/assets/{CompleteProfile-DKCP0ZOq-DzVwkLls.js → CompleteProfile-CdVQdaB0-B5_lHcue.js} +1 -1
- package/dist/assets/{ConfettiBurst-Ccs36Y8q-DP6hv2Ja.js → ConfettiBurst-Cygb8bhF-BkIJka8y.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CC5jroI_-BZmnNHLX.js → CreateOrEditVendorPage-_jZBL7C2-LSCYEMsl.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BNSfaY2k-DZ94bqli.js → CreditCardPaymentDrawerPage-CWF47Q9G-DhX1QGtb.js} +101 -101
- package/dist/assets/{CurrencySelectField-CfFOlEnM-D66cwJ1s.js → CurrencySelectField-ppkSKTpN-C5rfRVft.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Cac_xdpd-BqkKylRA.js → CustomerOnboardingActivationPage-DbaC9Uy1-BFo_8GS3.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-qmrLtjkH-BBYdYWUC.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cktian-X-CQ7_PG1e.js → CustomerOnboardingDetailPageSkeleton-5PeyznvM-CWHXVqDg.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-BVW1Hd-G-D1PQRFKa.js → CustomerOnboardingNoStepsPage-CWvaI2vY-BMWDOChj.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-CSTODxiL-CnN2kXF1.js → CustomerOnboardingPage-DWmMR5Ke-DrHmimlq.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-dcjDfxm3-9tyO47vS.js → CustomerOnboardingProductSuitePage-CEOJEMdY-BJwF7tHC.js} +7 -7
- package/dist/assets/{Dashboard-DHwjF8AD-DMQt4Oy0.js → Dashboard-CJSMYKO7-DtTMv2YE.js} +1 -1
- package/dist/assets/{DashboardReportPage-BbFqvGcc-DoOcHGWw.js → DashboardReportPage-CcY-7-W_-B9Xu9Dc7.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Aepv0x8n-xzde-NIZ.js → DashboardSidebarBackgroundAnimation-D3qI_q0a-zE-tHYqy.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-B6bYU73--B_rVssO-.js → DepositAccTransactionItem-BpbS0SRE-4G4pZt9E.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DdCwnDuw-D17ygMOK.js → DepositAccTransactionListPage-C1EuUbFg-CipCQ4gA.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DXlw9Ok--DcCgS8G_.js → DomesticWireDetailsPage-DTrY_uHQ-Bx_xjnPA.js} +1 -1
- package/dist/assets/{DownloadOverlay-KKP34aVT-D21U0JpA.js → DownloadOverlay-gRH0FIa6-DKDTdwBo.js} +1 -1
- package/dist/assets/{DrawerPage-DXGL0DM7-Dnq1XdM2.js → DrawerPage-gsfboWa--BG-IsntA.js} +1 -1
- package/dist/assets/{EditPeoplePage-DWmJ1PpR-CqqlGsSI.js → EditPeoplePage-D3GenIke-fFVPNEu-.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-B_5V1IzS-CqQtKcYG.js → EditReimbursementDetailPage-CC4JbXua-BHQf6Tq_.js} +1 -1
- package/dist/assets/{EntityDetailPage-BUzV8V9O-DvXYUK9r.js → EntityDetailPage-dZ-H_-kO-B7ZtrjJi.js} +1 -1
- package/dist/assets/{EntitySummarySection-CdjupOWB-CL42t66x.js → EntitySummarySection-BaSzuw3T-LStVjn5r.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Bx47Uuzu-BN_R5YdO.js → ExpenseAutomationOverviewPage-CtBVIXza-jj81QXv0.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-aVCW740N-BDOWuVmm.js → ExpenseAutomationPage-BByZfMUo-5XiRqMlX.js} +1 -1
- package/dist/assets/{ExpressPayPage-xIDJP3---Fhlkf5xA.js → ExpressPayPage-Dx4Cc9w2-BPUrRRqb.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BeGkbhpj-Ci6nIkqK.js → FeaturePreviewPage-Us5W5Wo9-B9QYuRIC.js} +1 -1
- package/dist/assets/{FollowStepsSection-9Bp032CO-BwvbM2x2.js → FollowStepsSection-DDXRZdXi-SO_ZPpiI.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BKgbn5KU-BhKDlhzQ.js → GlobalReviewListPage-Ou4B6O28-BDWqy7nZ.js} +1 -1
- package/dist/assets/{InformationCardStack-DR09Frl5-BrWPXMqI.js → InformationCardStack-DEj81xCg-Co1eZBNX.js} +3 -3
- package/dist/assets/{InsightsCardStack-Bs9n7ddB-Bdea0gBC.js → InsightsCardStack-BSigEuRs-DTXlX0eo.js} +1 -1
- package/dist/assets/{InsightsSection-Bt4Z2mKl-CZhPVZdj.js → InsightsSection-BrjpMz4X-CQnyuoM5.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-Ce3RYvgj-DkQkGcVD.js → IntegrationsSettingsPage-BEBtsJ8z-CpdXXLPE.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-Dl6FL0Lc-CeTGQl65.js → InternationalWireSwiftDetailsPage-DqTA5UPe-Dh2m_ClR.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-MYSltOya-ChmzW4fF.js → InternationalWireVerificationPage-CGLyTJOX-CgqcwWhe.js} +1 -1
- package/dist/assets/{InviteFormPage-C0ezbQfC-zaOHUuBq.js → InviteFormPage-CHZVhrof-C1BLULVh.js} +1 -1
- package/dist/assets/{InvitePageListView-SMhlCNKA-pNiCbfR5.js → InvitePageListView-B0aN2fz0-CXq89Ggq.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Dna0gg0J-alegwu6Z.js → InvitePeoplePage-DLPupvdi-QL22x-_S.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-QGU5U32X-B3PQnhTF.js → InvoiceUploadSection-COIpUGEB-BbbQUA3q.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-jai5Nd4c-BfIWPw2C.js → IssueChargeCardPage-6LWMwuaq-9nL_K9SN.js} +1 -1
- package/dist/assets/{LabeledAddressValue-cvWoRExB-u9I1yfA6.js → LabeledAddressValue-BOPQCQtK-6Ctaq2uZ.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BewnvHGP-DjW6JnAq.js → LabeledAddressValueField-DxybAWPO-C8g5Q5Mh.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DFKeD5HK-CdGhkX3l.js → LabeledControlledCheckBoxField-BSciMX7_-DE5GxjWa.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-nc8iZ1C1-MhnCqODk.js → LabeledCreatableSingleSelectField-q23ARfG8-CHK3wFhd.js} +1 -1
- package/dist/assets/{LabeledDocumentField-DmRNRSkb-CXjo-H6x.js → LabeledDocumentField-Icg5_obX-Dhu5oRPx.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BP1jmZf7-C9V3iWtU.js → LabeledDropDownFormattedTextField-BiJOzT5B-mztVwrkZ.js} +1 -1
- package/dist/assets/{LabeledText-CIupsEGL-CntLICmG.js → LabeledText-Tn7u-Ek3-kHR2OkPB.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CeZEGuNW-PKKEd4h3.js → LabeledUserSingleSelectWithSubtitlesField-B_MWazM_-C56dsjd7.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CDmiz3py-BKOa8CSX.js → LabeledZeniRolesDropDownField-DyCxNVQD-BPCdN2r2.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BtUXXguK-CkI7dWOM.js → LinkJETransactionPage-NXVaaeQn-BpSun53t.js} +2 -2
- package/dist/assets/{LockCardPage-TzEwLGD1-BMDbMEzr.js → LockCardPage-DFFQF_XE-BFlJ9UKK.js} +1 -1
- package/dist/assets/{LowBalancePopup-BWD6Kz-D-Dt8WY0Kf.js → LowBalancePopup-T5Ms2v-E-BQ4WCPPF.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-DtxKOlmX-0863GAuu.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-C7DsI3GD-D5Dxo8vU.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BQtq93Cv-mQxkDvCy.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-DQAUDzEV-DlTJx_bf.js → MagicLinkSuccessPage-BU8oXuny-B0XijyZh.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-JcGSlbn4-Dj4t5Fz6.js → MagicLinkTitleSection-kbY8yTTa-Dn-LABVB.js} +1 -1
- package/dist/assets/MailingDetailsSection-CMekdUCQ-D6VV7KFJ.js +21 -0
- package/dist/assets/{Menu-B05IRjpP-BhJtN8lL.js → Menu-DTdVYIrC-BgV_8qov.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-D2a7LgLg-j2LsZ1Ah.js → MyBankConnectionsSettingsPage-B67G0-7Z-BU9I3M_U.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-pDexjhqy-tCtgPjWb.js → MyPendingActivationChargeCardListPage-Cbap6Vpr-CMtgu-Ia.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CRkrD2Bn-CcTXJl9y.js → MyProfileSettingsPage-TqtGXk0G-C5zioJrw.js} +1 -1
- package/dist/assets/{NavBarWithPicker-9HjZDzt5-DEXh3IFe.js → NavBarWithPicker-C4_SW0nA-C0GnDmGd.js} +1 -1
- package/dist/assets/{NavigationArrow-CgBj8o4H-D5s9b1YB.js → NavigationArrow-6jp6I9fp-CnBvKiHR.js} +1 -1
- package/dist/assets/{NavigationDots-BcSXYcwF-Cczng_71.js → NavigationDots-BSjG6OlY-BrwTxyv0.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Dv9JrWDT-Bt8bwJ69.js → NewGlobalMerchantPage-BXM36kwh-CpDwRLSC.js} +1 -1
- package/dist/assets/{NoDataChart-tkUQHi-b-DZbAkxZ7.js → NoDataChart-CRhOisS1-COtAQCUj.js} +1 -1
- package/dist/assets/{NoDataTable-DHZ1gQeV-BbFx8lrK.js → NoDataTable-bIZY56VS-CN217muV.js} +1 -1
- package/dist/assets/{NotFoundPage-D59UVi8i-B4bV_ayL.js → NotFoundPage-Y4UqiUrL-B4YsYETt.js} +7 -7
- package/dist/assets/{NotificationSettingsPage-xVOogGxf-DJDQL-Sy.js → NotificationSettingsPage-Ct1wYM98-B_bcsz6g.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CkDLXlK_-BPCzXUat.js → NotificationsListConfig-tD8IFVDs-ULU_nTGm.js} +1 -1
- package/dist/assets/{NotificationsPage-C8zx5kJx-CHZfhnLZ.js → NotificationsPage-C8PlG40Q-5AviDmKP.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BaUEnLMo-CDWdSOLP.js → OpExByVendorPage-B5dz3g_I-D-sfcCoC.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-BvpaBCAg.js → OverlayContainerPage-Daz3A7cI-BbvZjeSQ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BKWEOfwP-BP5W9RRw.js → PandLWithForecastPage-BzeV5E9J-DYpR0NHu.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Ddm0Q_3J-lFZuZpft.js → PaymentAccountSetupBillingAddressSection-C7ucXP-C-jaxMZozI.js} +1 -1
- package/dist/assets/{PeoplePage-ChBsx1YC-CMrxjBM5.js → PeoplePage-Di9LbUPG-gazTpQwX.js} +1 -1
- package/dist/assets/{Preview-BJlkYk4_.js → Preview-Blj_5IQY.js} +1 -1
- package/dist/assets/{ProductsCarousel-CaOQupY4-Cu3DJwCX.js → ProductsCarousel-IX34mwaP-K798zKfC.js} +1 -1
- package/dist/assets/{PromoBaseCards-DeJ4J5Lp-e7atVcj5.js → PromoBaseCards-DKl5hmY7-DFLcHPib.js} +1 -1
- package/dist/assets/{QBOConnectionDialog--nz5v12t-Chf_IKXr.js → QBOConnectionDialog-CFgV4ltt-CYpBxArF.js} +1 -1
- package/dist/assets/{QBOSetupSection-DQTH1dAT-BJAvF6ln.js → QBOSetupSection-3Igwysxj-sm9A6uU9.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BottOscg-Bt4k5jhg.js → ReimbursementApprovalRuleDetailPage-gUzCi41q-CGYjTbGQ.js} +3 -3
- package/dist/assets/{ReimbursementApprovalRulesPage-B46nrYDg-DzFdIkG-.js → ReimbursementApprovalRulesPage-CUQt2z6s-m3DmX-q3.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DvSn2LUG-CB3VUQyQ.js → ReimbursementDetailPage-CgwRpLnh-BKKRl5XL.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DRItpn0n-Cak4ocKY.js → ReimbursementPromoPage-BxBAhFM1-CCmdLSng.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-CRnE1XYI-BqgLXo1n.js → ReimbursementSetUpPage-CP8WtKvQ-BzwYqD-v.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C6Cn3AOg-CihJ6l3b.js → ReimbursementsBulkReviewDrawerPage-Ir7LV3Qg-FmB-IcoK.js} +1 -1
- package/dist/assets/{ReloadCard-CRQf0INS-gD-f0T0E.js → ReloadCard-DLKVg3Sx-CJGjLDvX.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-Dj9qmDS0-DoYBZUZ6.js → ReportTableViewSelector-BlpUjTMl-BDDVFcAy.js} +1 -1
- package/dist/assets/{ReportsPage-BJmkDtu3-B3jITcDv.js → ReportsPage-D-4SKTVF-1DspK86K.js} +5 -5
- package/dist/assets/{RevenueChart-LvTct9qg-D8P6KpT1.js → RevenueChart-C3cckydL-g0yPIBMk.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CDWKsdgl-5TmUOBd_.js → ReviewDetailsPage-Df882foz-CxLlFw3j.js} +2 -2
- package/dist/assets/{ReviewOverlay-Bh8LAnRM-CijIHXs6.js → ReviewOverlay-n3lZIztC-BaYE0CrF.js} +1 -1
- package/dist/assets/{RoleWithToolTip-BHHwWcYs-CKCMMtSI.js → RoleWithToolTip-jGxjGCFo-BZAgNS7O.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-C_nki9xG-DYaDxqOc.js → ScheduleDetailsFixedAssetsPage-cVGyXDC1-4W97BSmP.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-BXmAqbuh-Ds1ow-b7.js → ScheduleDetailsPage-Dcl5GREY-CSgH86CC.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BePVgFIB-BFq2oleG.js → ScheduleSequenceTable-CkqvmnzR-BkWT4A03.js} +1 -1
- package/dist/assets/{ScreenRoutes-GYx8ZR27.js → ScreenRoutes--Xu4aTei.js} +1 -1
- package/dist/assets/{SetUpAccountSection-B1mXaFmw-Bqwkop-y.js → SetUpAccountSection-bKk_0Pau-WnVMpA_D.js} +1 -1
- package/dist/assets/SignIn-BZXzRb1K-BrEU8WAx.js +448 -0
- package/dist/assets/{SignInScreen-DMwMCG9P.js → SignInScreen-DgTeNXoF.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-D-XwxN9o-Cnh30Orw.js → SpendManagementListViewPage-jdvSYQ4J-DsXAHxjb.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CF7D2umh-BDSqJ_qs.js → SpendManagementPerTabPage-BlyFIn6o-DJWoY1io.js} +1 -1
- package/dist/assets/{SpendManagementSection-CIqYxYxX-C_Ft2uxq.js → SpendManagementSection-Dzlokoym-2kDboE_-.js} +1 -1
- package/dist/assets/StatementItem-BMV39A0D-CK6a43sV.js +31 -0
- package/dist/assets/{StatementsPage-CB8LocUZ-D__0esHw.js → StatementsPage-Cw6GRd81-DnrYrFIX.js} +1 -1
- package/dist/assets/{StatusSwitcher-DetjWSRH-ClE_X_wX.js → StatusSwitcher-CcLiXtx4-Bk8L4YH5.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DNqrmpKa-BobpQ5zG.js → SubTabSwitcher-zpnLoSBy-Dt5pYptL.js} +1 -1
- package/dist/assets/{SummaryCard-CxlxmBvk-Cg9XbfeP.js → SummaryCard-C2KHXXwg-B46OJl_E.js} +1 -1
- package/dist/assets/{TaskManagementPage-zHTW1LJ--zNfzy78X.js → TaskManagementPage-C3M_HCXR-Dmk36h9D.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-8D64-X4u-BuyINl3m.js → TimeRangeSwitcher-COHAPH9b-Duk9Ni0x.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-YicRGCkf-DdRTJ8ZO.js → TimeframeSwitcher-5ql0bSzz-PyYhkmzr.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-mP6ezXyM-DyP-pynp.js → TimeframeSwitcherWithToggle-BXSkHN5Y-CXXTcEDU.js} +3 -3
- package/dist/assets/{TopExCard-BDEoKFUO-BVpgu9GN.js → TopExCard-BrodwfJq-Cb6RgMjA.js} +10 -10
- package/dist/assets/{TopExDetailPage-CLUf9sHg-qa7tyQqC.js → TopExDetailPage-B8-Zzr1B-uipHxmei.js} +8 -8
- package/dist/assets/{TransactionDetailPage-C-GKDIp2-BdGgljwI.js → TransactionDetailPage-D8v3KPrb-DUtpwjHc.js} +1 -1
- package/dist/assets/{TransactionList-BqQVYWs_-DNijPXIq.js → TransactionList-DMb2xYOV-B2oFoO-E.js} +1 -1
- package/dist/assets/{TransactionListBig-CDgdq8hU-Bskrx-MI.js → TransactionListBig-dUBjAacV-Bmm-sJh2.js} +5 -5
- package/dist/assets/{TransactionListPage-CyGTX1pW-DvPgD5Sm.js → TransactionListPage-x0r04hx4-CX-3Zldl.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-NKocfHyN-DNhYCQWS.js → TransactionVendorDetailPage-BqjeDf6Q-CKKZt-sE.js} +1 -1
- package/dist/assets/{TransferDrawerPage-qNh4Fww2-DIXnm2LT.js → TransferDrawerPage-LppLtT6A-UVTq-XXy.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-D1RQYkoX-DM6UEUbi.js → TreasuryOverviewPage-DNoQLXPn-I3GX0kn0.js} +9 -9
- package/dist/assets/{TreasuryPromoPage-najiDjYG-D2mn7FJp.js → TreasuryPromoPage--MgysW-J-C4qW5Hjb.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CRR-Df5x-B3YvHLgx.js → TreasuryStatementsPage-DRPB8HzF-Us1El1nE.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-vKXs7eCx-DUpsYipw.js → TreasuryTaxLetterPage-BeeNFRtm-BNRt42uj.js} +1 -1
- package/dist/assets/{TrendChart-DtubLSsW-qE4-f7Bj.js → TrendChart-C7DgNHh6-DWSLEK7h.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DB5hmoGk-DSVigW2k.js → TrendWithTransactions-CpQPkCN4-CjThbvYV.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-ldBfy4n9-CvpMxcT7.js → UncategorizedAccountsMappingPage-f9xrtur3-wJ4bdRvL.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-DPHlAm3E-D0_EYePL.js → UnitIntegrationPage-SiS8CA0g-LkCGZb5A.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-C2kqDNTp-BQNyaPQp.js → UploadAdditionalDocumentOverlay-Djnl6dYH-Cb6cznud.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-_DrX-sZ2-Byp_MVd3.js → Vendor2FAPopup-CYwD3yQ8-DteE76iF.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-ChZp1Db0-m74ooXZH.js +1 -0
- package/dist/assets/{VendorDetailPage-dh7UBGAL-CoEBMyw2.js → VendorDetailPage-CG0SxxIa-CErJAoDL.js} +86 -86
- package/dist/assets/VendorDomesticWireDetailsPage-Dfawpwuo-XWP9GiBd.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-CGEA0mkh-_Cjo4ySS.js → VendorFiling1099EditablePage-DQs8RP_2-Buxj_PiL.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-BGktoc9W-BgcPM6Uo.js → VendorFirstReviewPage-XaE6ddOQ-BWMGU3Tl.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DidLa6Yx-BCgl9-MR.js → VendorInternationalWireDetailsPage-CT75sZ0O-DqLwSNE1.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CBKqnkvK-D4x_F8qG.js +1 -0
- package/dist/assets/{VendorsAccountsSection-BtjrsclQ-C0gCUVyM.js → VendorsAccountsSection-C9NkRN0p-CxSkczTx.js} +1 -1
- package/dist/assets/{VerifyDevice-DkibYc6v-CXmOAARZ.js → VerifyDevice-c6uTgDIl-DXrax5KK.js} +1 -1
- package/dist/assets/{VideoPlayer-C8VeeJIx-CCPJnDsQ.js → VideoPlayer-BgTXP1p7-DSVVGcbk.js} +2 -2
- package/dist/assets/{VideoPopup-aA7dkXbZ-vpwP4W2W.js → VideoPopup-BD0vmbkL-B1pshKUR.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-CA0EogPY-BBcekFqB.js → WarningsDrawerPage-BS-TFvBs-CxQBdq8b.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Z7ZXcJ98-CFSyuPte.js → ZeniAccountDetailPage-CSVQF6vO-BPYfZJgl.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CllLl65J-glKaM01N.js → ZeniAccountListViewPage-BVGsjSB2-1PFcObmH.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CHXbVcQE-CiczUJNV.js → ZeniAccountNavBarPieces-B1l8Hjdg-DxwPdu4w.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-DAtyHUfj-C_xB6viA.js → ZeniAccountPromoPage-s-QGT-pZ-DicXAF4k.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-Cy6_fMVK-ousECeIh.js → ZeniAccountSetupPage-CqXokSq4-ZNS-0xul.js} +1 -1
- package/dist/assets/{ZeniCopyright-D5JfDH77-94Q62ubQ.js → ZeniCopyright-_f5jw1U0-D4XdQ2SF.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Bk2gg7DY-B7GGO8c9.js → ZeniTransferAmountSlider-yvd98l69-BEYj6C-O.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DgOR9SZD.js → add-to-wallet-DgdBD8_G-BUzE53FC.js} +1 -1
- package/dist/assets/{analytics-BBQGK0ON.js → analytics-CudETrrD.js} +1 -1
- package/dist/assets/{analyticsHelper-Cnk2OUU2-ibgkPVjO.js → analyticsHelper-BvohFLdK-Dy4GAyAC.js} +1 -1
- package/dist/assets/{analyticsHelper-BaekG9Nx.js → analyticsHelper-DO-eHSEi.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-UA9PyeH_.js → arrow-south-east-round-PEovUgvH-QknSTNl-.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-B82gnpmQ.js → auto-transfer-rule-mbafm5D3-Bj4AnUyI.js} +1 -1
- package/dist/assets/{chartTypes-CMIndIax-DT8rBK_x.js → chartTypes-h1GkAvwh-DeXrp29h.js} +1 -1
- package/dist/assets/{commonDimensions-DSS8XDHZ-CYH5L85f.js → commonDimensions-7B20r1RL-BsLeN16e.js} +1 -1
- package/dist/assets/{constants-BACNgsOZ.js → constants-qsYvqsp_.js} +1 -1
- package/dist/assets/{core-CeETxMam.js → core-CSvDBKbK.js} +1 -1
- package/dist/assets/{dash.all.min-0VJS93lH.js → dash.all.min-CXX6UwCX.js} +1 -1
- package/dist/assets/{detailCommon-DWd4agOz-Cbc42OXo.js → detailCommon-C28aeDGm-DXaZUKe3.js} +5 -5
- package/dist/assets/{downloadPdf-BCoq8NLc-BHyplGhh.js → downloadPdf-D1MhyCE3-Bl_kVnuy.js} +1 -1
- package/dist/assets/{empty-BZ_oISQJ.js → empty-BdJ2ubLR.js} +1 -1
- package/dist/assets/{empty-BfYLVmMJ.js → empty-BlN3pbr0.js} +1 -1
- package/dist/assets/{epic-DjSfInN0.js → epic-DoNCnWgY.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-CGKB1jme.js → gift-box-Cmt9OgIZ-CMjOsL5s.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-DK0zdKjX.js → graphic-no-data-l-DU4J8fDt-P_uJxgqv.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CI28iX2P.js → graphic-no-data-net-burn-l-CzmycA0m-DX8wy8i8.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BNAvf_Ce.js → handshake-BPg58FML-Cvq-V9c-.js} +1 -1
- package/dist/assets/{index-BFH76pPn.js → index-B3_vBBYe.js} +1 -1
- package/dist/assets/{index-1VfEZ1Gz.js → index-BRDgVxUL.js} +561 -561
- package/dist/assets/{index-DwywdP6e.js → index-B_ST3N1m.js} +1 -1
- package/dist/assets/{index-Dqzx8hMk.js → index-BmlsHaIe.js} +1 -1
- package/dist/assets/{index-CwSI7eqB.js → index-Bmog4VKy.js} +1 -1
- package/dist/assets/{index-CBJAVt7a.js → index-C_7vQmrg.js} +1 -1
- package/dist/assets/{index-B4B93LK6.js → index-DTPFP43Z.js} +1 -1
- package/dist/assets/{lexical-B3ldBehs.js → lexical-BmM_-J9_.js} +1 -1
- package/dist/assets/{liveblocks-C14gIpGs.js → liveblocks-B7l6-lVT.js} +1 -1
- package/dist/assets/{lottie-D8T-stDd.js → lottie-Cx9dNUMI.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-Dgkep7PZ-I9xziQoM.js → mapLoadingInProgressToTreeNode-B5fs_QGb-1RRRqxAS.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DF-WWO6U-Dp5WLs5r.js → mapSectionWithAcOnlyToTreeNode-DtwKYRnC-BG8zzg0l.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-BufNagSk-BerYj-N8.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CBfPdKyR-C3tNzgVY.js → mapTimeframeBalancesToTreeNode-BHbBvkxK-Sg9H38Nv.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BOahnk__-Bv8a8zZk.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-Ca65g1u9.js +1 -0
- package/dist/assets/{mui-XgHtLv9t.js → mui-Cm3rVrD-.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DsrWzhgT.js → page-detail-CWX5S47F-kxZACSVt.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-Bsr2gTRV.js → radio-default-CiSgisfh-rhwWstOk.js} +1 -1
- package/dist/assets/{react-C7sphqM3.js → react-Byv2U7h7.js} +1 -1
- package/dist/assets/{react-CZlRv3QX.js → react-BzJpcjr6.js} +1 -1
- package/dist/assets/{react-CeFScvvD.js → react-CPFSKMtT.js} +1 -1
- package/dist/assets/{react-2b1NYDOf.js → react-CgC6TIq9.js} +2 -2
- package/dist/assets/{react-jJQTuZbN.js → react-CkyQ_f7y.js} +1 -1
- package/dist/assets/{react-Dm40MgCX.js → react-DIbjB6T0.js} +1 -1
- package/dist/assets/{react-CB7OYEMc.js → react-h0mTaAoM.js} +1 -1
- package/dist/assets/{react-BmQlaNt9.js → react-yAx4DBuZ.js} +1 -1
- package/dist/assets/{recharts-DBix2kBp.js → recharts-CJP-6HgW.js} +1 -1
- package/dist/assets/{sentry-VCAzTDmi.js → sentry-BFGzyFr-.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-D0v76Uk3.js → shield-DOlUxcFf-DHIE85xb.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DScSc4rG-B7GkAgAH.js +1 -0
- package/dist/assets/{toChartData-DuH-6FTe-CWKDasR_.js → toChartData-BYQCR1Q4-DQjt-eqe.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-CDqBJeP5.js → transaction-placeholder-CpOwZAMG-CRJ-hgUa.js} +1 -1
- package/dist/assets/{uploadAttachment-BkoEZkOd-BiFyh28x.js → uploadAttachment-Cs2BAs2F-B7REmQX6.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-CWKWHJjU.js → uploadReceipts-CPw64UYa-MigMlgVj.js} +1 -1
- package/dist/assets/{url-C8zoIoT4.js → url-CN0vl3oZ.js} +1 -1
- package/dist/assets/{url-Bi-s7Ipz.js → url-Ql81cO0i.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-CRSIFNOy.js → useLongPress-GCK2COYQ-CLIsgKqx.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DB-RQmMs.js → usp-line-BBd1wKwW-BMJkTVjT.js} +1 -1
- package/dist/assets/{utils-C6Cd8yMa.js → utils-DG7RBBiT.js} +1 -1
- package/dist/assets/{zeni-epic-state-CQJq5Qi5.js → zeni-epic-state-C--9cPPx.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-CITo61GF-CS2OsQNl.js +0 -18
- package/dist/assets/CustomerOnboardingContainerPage-DOZu4r0V-BVwImPN3.js +0 -1
- package/dist/assets/MagicLinkACHDetailsPage-CZQ8tUTD-Bx-FJDSd.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DHZY9sKi-Ch68uRBG.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BJtMjz1M-C1R90UdM.js +0 -1
- package/dist/assets/MailingDetailsSection-Ch5XvR8o-DY-bODbC.js +0 -21
- package/dist/assets/SignIn-B8qL3jmy-rG5LC_5F.js +0 -463
- package/dist/assets/StatementItem-Cj9_LMwP-BhabUnoX.js +0 -31
- package/dist/assets/VendorACHDetailsPage-ims8AKLH-BH1g_TY7.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-C_28sDKW-nhppTuB2.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-YqE835gy-BEp-3Yms.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CumKhTYV-Ce9e4hW2.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BttFKWAb-Ll-SiCTs.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BREIWW8N-BE3WT0kC.js +0 -1
- package/dist/assets/toCOABalancesWithID-v28KjzUb-C7PU3g60.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-1VfEZ1Gz.js";import{a as T,w as K}from"./sentry-VCAzTDmi.js";import{n as _}from"./mui-XgHtLv9t.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-CQJq5Qi5.js";import{m as z,l as q}from"./analyticsHelper-Cnk2OUU2-ibgkPVjO.js";import{x as Ne}from"./ReportTableViewSelector-Dj9qmDS0-DoYBZUZ6.js";import{a as se,p as Me}from"./TimeRangeSwitcher-8D64-X4u-BuyINl3m.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-mP6ezXyM-DyP-pynp.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-KKP34aVT-D21U0JpA.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-CvXUxopt-f_pwfY1A.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DF-WWO6U-Dp5WLs5r.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CBfPdKyR-C3tNzgVY.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BREIWW8N-BE3WT0kC.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-Dgkep7PZ-I9xziQoM.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./TimeframeSwitcher-YicRGCkf-DdRTJ8ZO.js";import"./page-detail-CWX5S47F-DsrWzhgT.js";import"./AccountRow-XnGMYfcj-DObYPAJJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a5f97fab-3a95-4470-82ee-ff3d74e3c961",e._sentryDebugIdIdentifier="sentry-dbid-a5f97fab-3a95-4470-82ee-ff3d74e3c961")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({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 le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("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 We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let 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 Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(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=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(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 Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(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=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(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 Ze(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=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}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}),f=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(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(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(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(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 B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
|
|
1
|
+
import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-BRDgVxUL.js";import{a as T,w as K}from"./sentry-BFGzyFr-.js";import{n as _}from"./mui-Cm3rVrD-.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-C--9cPPx.js";import{m as z,l as q}from"./analyticsHelper-BvohFLdK-Dy4GAyAC.js";import{x as Ne}from"./ReportTableViewSelector-BlpUjTMl-BDDVFcAy.js";import{a as se,p as Me}from"./TimeRangeSwitcher-COHAPH9b-Duk9Ni0x.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-BXSkHN5Y-CXXTcEDU.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-gRH0FIa6-DKDTdwBo.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-CrR91Kpi-5o5TUvM_.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DtwKYRnC-BG8zzg0l.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BHbBvkxK-Sg9H38Nv.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-Ca65g1u9.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-B5fs_QGb-1RRRqxAS.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./TimeframeSwitcher-5ql0bSzz-PyYhkmzr.js";import"./page-detail-CWX5S47F-kxZACSVt.js";import"./AccountRow-pJ59k4-J-byrgsZ5o.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4d272a03-b6a6-4914-aa33-325f0d73050e",e._sentryDebugIdIdentifier="sentry-dbid-4d272a03-b6a6-4914-aa33-325f0d73050e")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({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 re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({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 le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("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 We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let 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 Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(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=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("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(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(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 Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(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=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("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(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(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 Ze(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=Ve({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=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}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(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(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 qe(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(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(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 B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
5
5
|
background-color: ${e=>e.theme.colors.grey4};
|
|
6
|
-
`;function Je({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const
|
|
6
|
+
`;function Je({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=W(),s=G(),[c,C]=T.useState(void 0),[x,$]=T.useState(void 0),v=!(h==="small"||h==="medium-compact"),V="name+balances_actual",F=u===!0?"this_period_vs_period_before":"none",O=()=>{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=>E(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,fe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,H=D??fe;H?.additionalBalances!=null&&(m=H.additionalBalances.map(me=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>E(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>E(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:F,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!X(x,e)||g===!0){const f=Xe(e,m,v,g);$(e),C(f)}else{const f=We(c,m,e,v);C(f)}},[u,e,g]);const[R,k]=T.useState(5),N=m=>{const f=m+135;k(f)},he=m=>m?.trackPageLoaded(Ke(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:he}),r.jsx(Qe,{height:R,children:r.jsx(je,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},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:N,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Xe=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return Ze(e,t,o,a);case"cash_flow":return He(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Ke=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},et=_.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -73,14 +73,14 @@ import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o
|
|
|
73
73
|
position: absolute;
|
|
74
74
|
margin-top: ${e=>e.windowSize==="small"?"230px":"195px"};
|
|
75
75
|
background-color: ${e=>e.theme.colors.grey4};
|
|
76
|
-
`,
|
|
76
|
+
`,ht=_.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
width: 100%;
|
|
79
79
|
height: calc(100% - 60px);
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
justify-content: center;
|
|
82
82
|
align-items: center;
|
|
83
|
-
`,
|
|
83
|
+
`,ft=_.div`
|
|
84
84
|
height: 96px;
|
|
85
85
|
width: 96px;
|
|
86
86
|
background: ${e=>e.theme.colors.background};
|
|
@@ -98,7 +98,7 @@ import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o
|
|
|
98
98
|
`,mt=_(we)`
|
|
99
99
|
margin-top: ${w.sp3};
|
|
100
100
|
color: ${e=>e.theme.colors.hero};
|
|
101
|
-
`,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=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}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Qt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==f?.accountViewMode&&a?.(O),R&&n?.(R)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const f=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&f?.accountViewMode==="account_group"&&x.push("detailed");const[$,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:$,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ft,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ht,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:f!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:f,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:(R,k,N)=>{d(l,R,k,N)},onTimeframeSelectionChanged:(R,k,N)=>{p?.(R,k,N)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.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 C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",f=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Fe,{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=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Me,{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,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(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(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:f}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(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}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ne,{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}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(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=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(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"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=K.memo(Je,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&X(e[`${n}`],t[`${n}`]),!0),yt=_.div`
|
|
101
|
+
`,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=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}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Qt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==h?.accountViewMode&&a?.(O),R&&n?.(R)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[$,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:$,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Ee,{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:(R,k,N)=>{d(l,R,k,N)},onTimeframeSelectionChanged:(R,k,N)=>{p?.(R,k,N)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.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 C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Fe,{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=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Me,{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,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(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(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(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}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ne,{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}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(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=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(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"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=K.memo(Je,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&X(e[`${n}`],t[`${n}`]),!0),yt=_.div`
|
|
102
102
|
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
103
103
|
`,Ct=_.div`
|
|
104
104
|
margin-top: ${w.sp3};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-
|
|
1
|
+
import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-BRDgVxUL.js";import{a as P,w as ee}from"./sentry-BFGzyFr-.js";import{n as x}from"./mui-Cm3rVrD-.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-h1GkAvwh-DeXrp29h.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-DScSc4rG-B7GkAgAH.js";import{V as Z}from"./toChartData-BYQCR1Q4-DQjt-eqe.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-CJP-6HgW.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c1558961-1804-4557-966f-edcc729dfd44",e._sentryDebugIdIdentifier="sentry-dbid-c1558961-1804-4557-966f-edcc729dfd44")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as le,f4 as Mt,f5 as At,f6 as Bt,f7 as Ft,aK as M,f8 as Rt,aM as j,f9 as Lt,fa as Ae,fb as Be,fc as Fe,b as H,fd as O,p as S,fe as zt,ff as E,fg as _,fh as Nt,fi as Ot,bQ as Re,o as n,aO as Et,c as s,F as _t,ah as Wt,b$ as Zt,a as Vt,B as Yt,fj as qt,cf as Gt,ak as se,al as ce,fk as Ht,fl as Ut,bg as Kt,l as Qt,b7 as Jt,fm as Xt,ap as et,bH as en,ag as tt,br as tn,fn as nn}from"./index-1VfEZ1Gz.js";import{a as Z}from"./sentry-VCAzTDmi.js";import{n as a}from"./mui-XgHtLv9t.js";import{bo as Le,bm as ze,bH as I,bN as an,Fp as ln,bL as oe,bP as on}from"./zeni-epic-state-CQJq5Qi5.js";import{t as rn,o as dn}from"./LowBalancePopup-BWD6Kz-D-Dt8WY0Kf.js";import{S as W}from"./LabeledText-CIupsEGL-CntLICmG.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="5b811477-959b-4771-b500-dacbcbe5d01e",e._sentryDebugIdIdentifier="sentry-dbid-5b811477-959b-4771-b500-dacbcbe5d01e")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,g]=Z.useState(!1),A=()=>{g(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=g&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(ge,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,fe]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,q=y.allApprovalRules.length>0,ft=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),f=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=f&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,q,e.isBillMarkedForRetry),wt=()=>f?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=f?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:ft,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!f&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,f?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),f||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(fn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(gn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,q,d)}},primaryBtn:{label:We(b,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,q,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},We=(e,y,g)=>e?i.paymentOutsideZeni.markAsPaid:g===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,g,A,T)=>g?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
|
|
1
|
+
import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as le,f4 as Mt,f5 as At,f6 as Bt,f7 as Ft,aK as M,f8 as Rt,aM as j,f9 as Lt,fa as Ae,fb as Be,fc as Fe,b as H,fd as O,p as S,fe as zt,ff as E,fg as _,fh as Nt,fi as Ot,bQ as Re,o as n,aO as Et,c as s,F as _t,ah as Wt,b$ as Zt,a as Vt,B as Yt,fj as qt,cf as Gt,ak as se,al as ce,fk as Ht,fl as Ut,bg as Kt,l as Qt,b7 as Jt,fm as Xt,ap as et,bH as en,ag as tt,br as tn,fn as nn}from"./index-BRDgVxUL.js";import{a as Z}from"./sentry-BFGzyFr-.js";import{n as a}from"./mui-Cm3rVrD-.js";import{bo as Le,bm as ze,bH as I,bN as an,Fp as ln,bL as oe,bP as on}from"./zeni-epic-state-C--9cPPx.js";import{t as rn,o as dn}from"./LowBalancePopup-T5Ms2v-E-BQ4WCPPF.js";import{S as W}from"./LabeledText-Tn7u-Ek3-kHR2OkPB.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="7043bc79-5205-4466-9209-ca68f33d66d2",e._sentryDebugIdIdentifier="sentry-dbid-7043bc79-5205-4466-9209-ca68f33d66d2")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),A=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,q=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,q,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,q,d)}},primaryBtn:{label:We(b,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,q,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},We=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,f,A,T)=>f?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -21,7 +21,7 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
|
|
|
21
21
|
background-color: ${S.neutralGrey3Dark};
|
|
22
22
|
height: 1px;
|
|
23
23
|
width: 280px;
|
|
24
|
-
`,
|
|
24
|
+
`,fn=a.div``,gn=a.div`
|
|
25
25
|
display: flex;
|
|
26
26
|
width: 100%;
|
|
27
27
|
box-sizing: border-box;
|
package/dist/assets/{ReviewOverlay-Bh8LAnRM-CijIHXs6.js → ReviewOverlay-n3lZIztC-BaYE0CrF.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,ak as j,cy as W,m as R,ag as b,bf as D,c as n,eg as G,u as _,iR as q,k0 as A}from"./index-
|
|
1
|
+
import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,ak as j,cy as W,m as R,ag as b,bf as D,c as n,eg as G,u as _,iR as q,k0 as A}from"./index-BRDgVxUL.js";import{n as t}from"./mui-Cm3rVrD-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53",e._sentryDebugIdIdentifier="sentry-dbid-f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:k},onCloseOverlay:E,onCloseReviewItem:M})=>{const a=B();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:E,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:a,children:[i.jsxs(J,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:O(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!k}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-BHHwWcYs-CKCMMtSI.js → RoleWithToolTip-jGxjGCFo-BZAgNS7O.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eL as f,eM as h,V as s,bQ as g,o as i,aM as n,F as x,am as y,ag as c}from"./index-
|
|
1
|
+
import{eL as f,eM as h,V as s,bQ as g,o as i,aM as n,F as x,am as y,ag as c}from"./index-BRDgVxUL.js";import{n as l}from"./mui-Cm3rVrD-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f880c637-61c4-47f9-a13f-f4e73109bbc2",e._sentryDebugIdIdentifier="sentry-dbid-f880c637-61c4-47f9-a13f-f4e73109bbc2")}catch{}})();const{hyphen:d}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC as _e,V as a,ab as Fe,cm as Pe,cn as Be,co as Ne,aO as qe,ij as Re,ik as We,F as
|
|
1
|
+
import{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC as _e,V as a,ab as Fe,cm as Pe,cn as Be,co as Ne,aO as qe,ij as Re,ik as We,F as ge,a9 as he,il as me,im as Ue,cO as ze,q as $e,iB as Ge,gG as re,c as R,p as Se,y as De,cE as Ke,io as He,ip as Qe,iq as Ye,o as _}from"./index-BRDgVxUL.js";import{a as f}from"./sentry-BFGzyFr-.js";import{n as U}from"./mui-Cm3rVrD-.js";import{FT as Ze,FU as Xe}from"./zeni-epic-state-C--9cPPx.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-CkqvmnzR-BkWT4A03.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="face273d-1d85-484c-8396-7076848dc04a",e._sentryDebugIdIdentifier="sentry-dbid-face273d-1d85-484c-8396-7076848dc04a")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -18,7 +18,7 @@ import{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC
|
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
margin: ${_.sp4} ${_.sp8} ${_.sp0} ${_.sp8};
|
|
21
|
-
`,V=(e,n)=>`${e}.${n}`;function nt({sectionId:e,jeScheduledTransaction:n,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:
|
|
21
|
+
`,V=(e,n)=>`${e}.${n}`;function nt({sectionId:e,jeScheduledTransaction:n,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:g,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:I,selectedClass:F,selectedAccumulatedDepreciationCategory:P,assetId:w,selectedDate:L,selectedMonths:T,selectedPostingDay:E,lastDayOfMonth:O,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Y}){const{resetField:S}=ze(),se=V(e,"scheduleExpenseCategory"),oe=V(e,"scheduleClass"),ne=V(e,"accumulatedDepreciationCategory"),de=V(e,"assetId"),Z=V(e,"startDate"),D=V(e,"postingDate"),r=V(e,"months"),t=ge.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,b=o=>s.filter(N=>N.qboId===o)[0]?.qboId,x=o=>p.filter(N=>N.qboId===o)[0]?.qboId,ie=o=>u.filter(N=>N.classId===o)[0]?.accountingClassNumber,Q={valueContainer:o=>({...o,overflow:"unset"})},j=$e(),z=Ge({startDate:n.baseTransaction.date,endDate:n.baseTransaction.date.add(1,"year")}),$=()=>{S(D)},G=E==null&&O==null?void 0:O===!0?"lastDayOfMonth":"day",B=o=>[k.expense?.qboId,k.income?.qboId].includes(o),X=()=>{n.jeScheduleId!=null&&ae(n.jeScheduleId)},y=n.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(ot,{children:[a.jsx(lt,{status:n.status.code,jeScheduleId:n.jeScheduleId,allowCreateSchedule:J,onDelete:X,isUpdating:m==="In-Progress",onMarkAsComplete:Y,onCreateSchedule:i}),a.jsx(he,{controller:J===!0,children:a.jsxs(st,{children:[a.jsx(re,{isDisabled:y.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.expenseCategory,width:W.labelWidth.value(j)},groupedSingleSelectField:{customPlaceholderColor:y.includes("debit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:t.expenseCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:I,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},disableCurrentOption:B,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:t.class,width:W.labelWidth.value(j)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:oe,placeholder:t.classPlaceholder,valueToId:o=>ie(o),defaultValue:{selectedOption:F,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:y.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(j)},groupedSingleSelectField:{customPlaceholderColor:y.includes("credit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:ne,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>x(o),defaultValue:{selectedOption:P,allOptions:g},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},disableCurrentOption:B,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(Ke,{label:{label:t.assetId,width:W.labelWidth.value(j)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:w,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:R[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(H,{}),a.jsx(He,{label:{label:t.startMonth,width:W.labelWidth.value(j)},monthSelectorField:{name:Z,placeholder:t.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:h,monthsAndYears:z},isDisabled:h}),a.jsx(H,{}),a.jsx(at,{label:{label:t.postingDate,width:W.labelWidth.value(j)},isDisabled:h,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:D,defaultValue:{type:G,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(H,{}),a.jsx(Qe,{label:{label:t.months,width:W.labelWidth.value(j)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:T!=null?v[T-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:J===!1,children:a.jsx(Ye,{text:t.scheduleMarkedAsCompleted})})]})}const dt=U.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
width: 100%;
|
|
@@ -34,4 +34,4 @@ import{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC
|
|
|
34
34
|
`,rt=U.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
justify-content: center;
|
|
37
|
-
`,be="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",ut=Ce.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ht}}=ut;function It({analytics:e,controllerUserDetails:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:C,onJELinkClick:v,onSave:k,onDelete:I,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:w,onMarkAsComplete:L,removeJeScheduleTransactionKey:T}){const[E,O]=f.useState(!1),h=K(l.updateStatus.fetchState),J=K(l.selectedJEScheduleTransaction?.status.code),i=K(l.deleteStatus.fetchState),[ae,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,se=K(S.jeScheduleDetails.length),oe=K(S.selectedDate),ne=K(S.selectedDayOfMonth),[de,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,g=Ze(n.controllers),x=Xe(n.controllerUserIds),ie={onOkClick:()=>{O(!1),p()},onCancelClick:()=>{O(!1)}},Q=d=>{const y=t?.scheduledJournalEntry[d];r!=null&&y!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...Ue(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...me(y)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:g,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(d)},j=(d,y)=>{const A=t?.scheduledJournalEntry[y];r!=null&&A!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:me(A),controllerEmails:g,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),P(d)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:x})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&T(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,T,c,l.updateStatus,t,r,D,g,x]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const z=fe(l.accountListNestedAccountHierarchy),$=fe(l.allDepreciationAccountListNestedAccountHierarchy),G=we(l.classListNestedAccountHierarchy),B=Le("fixed_assets"),X=f.useRef(),b=Je({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,z,G,$,B,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,z,G,$,B,u.entityAutoCompleteView)}),o=b.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&X.current?.(Me(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const N=(d,y)=>{s.onAutoCompleteInputChange?.(d,"vendor"),X.current=y},ge=b.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),xe=async(d,y)=>{const A=y[te].vendor;if(d.includes("vendor")){const ce=A?.defaultOptions.map(q=>q.value);if(A?.selectedOption!=null&&ce?.includes(A.selectedOption)!==!0){const q=u.entityAutoCompleteView.vendor.find(ke=>ke.id===A.selectedOption);q!=null&&b.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:q.name??"",value:q.id}])}}const je=d.includes("amount");if(F(y,je),d.includes("amount")){const ce=d.split(".")[1],q=parseInt(ce);Y(!0),C(q,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{const d=b.watch((y,{name:A})=>{A!=null&&y!=null&&Ve(()=>xe(A,y))});return()=>{d.unsubscribe()}}),f.useEffect(()=>{(se!==S.jeScheduleDetails.length||oe!==S.selectedDate||ne!==S.selectedDayOfMonth)&&ae===!0&&(b.resetField(le,{defaultValue:ue(l,z,G,$,B,u.entityAutoCompleteView)[le],keepDirty:!1}),Y(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(_e(b.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,ve=()=>{pe===!0?O(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:x})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&w({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=f.useCallback(()=>{Z(!0)},[]),Ae=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:x})),L()},[e,g,x,t,L,r,D]),Ie=f.useCallback(d=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:x})),I(d)},[e,g,x,t,I,r,D]),Te=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(d=>d.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(dt,{children:[a.jsx(pt,{title:Te??M.strings.empty,onNavigateBack:ve,onTransactionClick:Ee}),a.jsx(it,{children:a.jsx(Fe,{...b,children:a.jsxs("form",{style:{width:"100%"},id:ye(be),onSubmit:ge,children:[a.jsx(ft,{vendorLoadOptions:N,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:z,allClassOptions:G,allMonthOptions:B,allDepAccountOptions:$,onEditAmount:C,onDelete:Ie,onJELinkClick:Q,onViewLinkedJE:j,onMarkAsComplete:Ae,allowCreateSchedule:de,onCreateSchedule:Oe}),E===!0?a.jsx(Pe,{titleComponent:a.jsx(Ne,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Be,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ie}):null,pe===!0?a.jsx(qe,{formId:ye(be),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{O(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({onNavigateBack:e,onTransactionClick:n,title:m}){return a.jsx(We,{title:m,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:e,onLaunchClick:n,style:{zIndex:3}})}function ft({vendorField:e,vendorLoadOptions:n,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:C,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:I,onDelete:F,onJELinkClick:P,onViewLinkedJE:w,onMarkAsComplete:L}){const T=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ct,{children:[a.jsx(rt,{children:a.jsx(et,{vendorLoadOptions:n,vendorField:e,vendorFieldName:V(te,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:T,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(nt,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:C,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:F,onMarkAsComplete:L,onCreateSchedule:k}),a.jsx(he,{controller:v===!0,children:a.jsx(tt,{sectionId:le,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:I,onJELinkClick:P,onViewLinkedJE:w,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ye=e=>`${e}_form`,ue=(e,n,m,l,s,u)=>{const c=e.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,C=c.selectedVendor,v=C!=null?u.vendor.find(i=>i.zeniId===C.id):void 0,k=p!=null?e.allAccountList.find(i=>i.accountId===p):void 0,I=c.selectedAccumulatedDepreciationCategory,F=I!=null?e.allDepreciationAccountList.find(i=>i.accountId===I):void 0,P=c.assetId,w=c.selectedClass,L=w!=null?e.allClassList.find(i=>i.classId===w):void 0,T=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),O=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=O==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:L?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:T,allOptions:s},vendor:{selectedOption:v?.id??C?.id,defaultOptions:Re(u,v??C)},postingDate:{type:J,dayOfMonth:O}},[le]:E}};export{It as default};
|
|
37
|
+
`,ye="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",ut=ge.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ht}}=ut;function It({analytics:e,controllerUserDetails:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:g,onJELinkClick:v,onSave:k,onDelete:I,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:w,onMarkAsComplete:L,removeJeScheduleTransactionKey:T}){const[E,O]=f.useState(!1),h=K(l.updateStatus.fetchState),J=K(l.selectedJEScheduleTransaction?.status.code),i=K(l.deleteStatus.fetchState),[ae,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,se=K(S.jeScheduleDetails.length),oe=K(S.selectedDate),ne=K(S.selectedDayOfMonth),[de,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,b=Ze(n.controllers),x=Xe(n.controllerUserIds),ie={onOkClick:()=>{O(!1),p()},onCancelClick:()=>{O(!1)}},Q=d=>{const C=t?.scheduledJournalEntry[d];r!=null&&C!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...Ue(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...me(C)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(d)},j=(d,C)=>{const A=t?.scheduledJournalEntry[C];r!=null&&A!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:me(A),controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),P(d)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&T(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,T,c,l.updateStatus,t,r,D,b,x]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const z=fe(l.accountListNestedAccountHierarchy),$=fe(l.allDepreciationAccountListNestedAccountHierarchy),G=we(l.classListNestedAccountHierarchy),B=Le("fixed_assets"),X=f.useRef(),y=Je({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,z,G,$,B,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,z,G,$,B,u.entityAutoCompleteView)}),o=y.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&X.current?.(Me(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const N=(d,C)=>{s.onAutoCompleteInputChange?.(d,"vendor"),X.current=C},be=y.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),xe=async(d,C)=>{const A=C[te].vendor;if(d.includes("vendor")){const ce=A?.defaultOptions.map(q=>q.value);if(A?.selectedOption!=null&&ce?.includes(A.selectedOption)!==!0){const q=u.entityAutoCompleteView.vendor.find(ke=>ke.id===A.selectedOption);q!=null&&y.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:q.name??"",value:q.id}])}}const je=d.includes("amount");if(F(C,je),d.includes("amount")){const ce=d.split(".")[1],q=parseInt(ce);Y(!0),g(q,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{const d=y.watch((C,{name:A})=>{A!=null&&C!=null&&Ve(()=>xe(A,C))});return()=>{d.unsubscribe()}}),f.useEffect(()=>{(se!==S.jeScheduleDetails.length||oe!==S.selectedDate||ne!==S.selectedDayOfMonth)&&ae===!0&&(y.resetField(le,{defaultValue:ue(l,z,G,$,B,u.entityAutoCompleteView)[le],keepDirty:!1}),Y(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(_e(y.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,ve=()=>{pe===!0?O(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&w({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=f.useCallback(()=>{Z(!0)},[]),Ae=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),L()},[e,b,x,t,L,r,D]),Ie=f.useCallback(d=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),I(d)},[e,b,x,t,I,r,D]),Te=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(d=>d.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(dt,{children:[a.jsx(pt,{title:Te??M.strings.empty,onNavigateBack:ve,onTransactionClick:Ee}),a.jsx(it,{children:a.jsx(Fe,{...y,children:a.jsxs("form",{style:{width:"100%"},id:Ce(ye),onSubmit:be,children:[a.jsx(ft,{vendorLoadOptions:N,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:z,allClassOptions:G,allMonthOptions:B,allDepAccountOptions:$,onEditAmount:g,onDelete:Ie,onJELinkClick:Q,onViewLinkedJE:j,onMarkAsComplete:Ae,allowCreateSchedule:de,onCreateSchedule:Oe}),E===!0?a.jsx(Pe,{titleComponent:a.jsx(Ne,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Be,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ie}):null,pe===!0?a.jsx(qe,{formId:Ce(ye),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{O(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({onNavigateBack:e,onTransactionClick:n,title:m}){return a.jsx(We,{title:m,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:e,onLaunchClick:n,style:{zIndex:3}})}function ft({vendorField:e,vendorLoadOptions:n,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:g,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:I,onDelete:F,onJELinkClick:P,onViewLinkedJE:w,onMarkAsComplete:L}){const T=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ct,{children:[a.jsx(rt,{children:a.jsx(et,{vendorLoadOptions:n,vendorField:e,vendorFieldName:V(te,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:T,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(nt,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:g,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:F,onMarkAsComplete:L,onCreateSchedule:k}),a.jsx(he,{controller:v===!0,children:a.jsx(tt,{sectionId:le,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:I,onJELinkClick:P,onViewLinkedJE:w,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const Ce=e=>`${e}_form`,ue=(e,n,m,l,s,u)=>{const c=e.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,g=c.selectedVendor,v=g!=null?u.vendor.find(i=>i.zeniId===g.id):void 0,k=p!=null?e.allAccountList.find(i=>i.accountId===p):void 0,I=c.selectedAccumulatedDepreciationCategory,F=I!=null?e.allDepreciationAccountList.find(i=>i.accountId===I):void 0,P=c.assetId,w=c.selectedClass,L=w!=null?e.allClassList.find(i=>i.classId===w):void 0,T=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),O=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=O==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:L?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:T,allOptions:s},vendor:{selectedOption:v?.id??g?.id,defaultOptions:Re(u,v??g)},postingDate:{type:J,dayOfMonth:O}},[le]:E}};export{It as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aN as F,ig as Y,gB as ke,ew as Ie,ih as Ae,a8 as Je,ii as we,cB as Le,cC as Me,V as a,ab as Ve,cm as Pe,cn as _e,co as Fe,aO as Be,ij as $e,ik as Ne,F as Se,a9 as ie,il as he,im as Ue,cO as qe,q as ze,gG as pe,c as X,p as Re,y as We,io as Ke,ip as Ge,iq as He,o as w}from"./index-
|
|
1
|
+
import{aN as F,ig as Y,gB as ke,ew as Ie,ih as Ae,a8 as Je,ii as we,cB as Le,cC as Me,V as a,ab as Ve,cm as Pe,cn as _e,co as Fe,aO as Be,ij as $e,ik as Ne,F as Se,a9 as ie,il as he,im as Ue,cO as qe,q as ze,gG as pe,c as X,p as Re,y as We,io as Ke,ip as Ge,iq as He,o as w}from"./index-BRDgVxUL.js";import{a as D}from"./sentry-BFGzyFr-.js";import{n as P}from"./mui-Cm3rVrD-.js";import{FT as Qe,FU as Ye,bL as Xe}from"./zeni-epic-state-C--9cPPx.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CkqvmnzR-BkWT4A03.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="702e2cfe-05cc-4b5f-8e78-af476d2db523",e._sentryDebugIdIdentifier="sentry-dbid-702e2cfe-05cc-4b5f-8e78-af476d2db523")}catch{}})();const U={labelWidth:new We(160,160,160)},at=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as A,d as Z,V as t,ir as ie,is as le,a as oe,it as xe,dN as fe,fc as ye,b as I,F as N,iu as we,iq as be,o as i,y as b,p as j,l as $e,a9 as re,dJ as je,cm as Se,co as ke,cO as Q,cW as ee,cU as ve,iv as G,iw as De,b1 as Ce,ix as Me,cq as ze,iy as Ee,c as h,ak as E,b7 as Le,cn as Oe,an as pe,cX as Ie,a$ as ne,ek as Ae,aO as Ve,iz as V,gb as Te,aK as Fe,iA as Je,aS as H,cY as Be,bf as Pe}from"./index-
|
|
1
|
+
import{q as A,d as Z,V as t,ir as ie,is as le,a as oe,it as xe,dN as fe,fc as ye,b as I,F as N,iu as we,iq as be,o as i,y as b,p as j,l as $e,a9 as re,dJ as je,cm as Se,co as ke,cO as Q,cW as ee,cU as ve,iv as G,iw as De,b1 as Ce,ix as Me,cq as ze,iy as Ee,c as h,ak as E,b7 as Le,cn as Oe,an as pe,cX as Ie,a$ as ne,ek as Ae,aO as Ve,iz as V,gb as Te,aK as Fe,iA as Je,aS as H,cY as Be,bf as Pe}from"./index-BRDgVxUL.js";import{n as o,c as B}from"./mui-Cm3rVrD-.js";import{a as C}from"./sentry-BFGzyFr-.js";import{bh as U,FV as Ne}from"./zeni-epic-state-C--9cPPx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="fd17678c-2cbf-4bfd-8d37-1122928ab47a",e._sentryDebugIdIdentifier="sentry-dbid-fd17678c-2cbf-4bfd-8d37-1122928ab47a")}catch{}})();const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(_e,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ue,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ae,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ke,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(qe,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ve,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function qe({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},_e=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,He=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{DO as Jf,DP as qt,DQ as Kf,iN as ot,hv as xl,iP as Ye,hs as Xf,hz as ql,DR as Ca,hB as Qf,hC as eh,DS as Vt,DT as Lt,h0 as th,DU as jr,DV as ea,cO as rh,f2 as ta,e$ as Ir,f7 as rt,f5 as nh,DW as Ll,DX as kl,hQ as ih,hN as oh,DY as ah,h$ as sh,hW as Pa,hT as uh,hI as ch,DZ as lh,dJ as fh,cU as hh,i$ as Nl,D_ as dh,bL as Or,hF as ja,hK as ph,oL as Dl,iO as xr,D$ as Ne,ib as ra,E0 as mh,j5 as gh,B as Re,E1 as na,E2 as yh,gZ as vh,E3 as bh,E4 as Ml,E5 as wh,nj as xa,mQ as Eh,E6 as Sh,mW as Hr,E7 as _h,mY as Rh,E8 as Ze,mN as Oh,cB as Ih,iS as Fl,iT as Ul,iR as ia,iQ as oa,iU as Th,E9 as Ah,nm as Ch,Ea as Ph,n3 as jh,ng as xh,Eb as qh,n7 as Lh,Ec as kh,Ed as St,Ee as aa,Ef as Nh,Eg as Dh,lQ as Mh,lW as Bl,Eh as $l,gu as Fh,CU as Vl,Ei as Uh,CO as Bh,Ej as $h,Ek as Vh,lZ as Gh,El as zh,CZ as Hh,CN as Zh,qg as Gl,Em as Zr,En as zl,A0 as sa,zO as Wh,A3 as Hl,zR as Yh,Eo as Jh,zW as Kh,zI as Xh,zL as Qh,Ep as ed,A7 as td,zZ as rd,c4 as nd,bd as id,Eq as od,Er as lt,Es as ad,Et as sd,Eu as ud,i3 as Jo,ba as cd}from"./zeni-epic-state-
|
|
1
|
+
import{DO as Jf,DP as qt,DQ as Kf,iN as ot,hv as xl,iP as Ye,hs as Xf,hz as ql,DR as Ca,hB as Qf,hC as eh,DS as Vt,DT as Lt,h0 as th,DU as jr,DV as ea,cO as rh,f2 as ta,e$ as Ir,f7 as rt,f5 as nh,DW as Ll,DX as kl,hQ as ih,hN as oh,DY as ah,h$ as sh,hW as Pa,hT as uh,hI as ch,DZ as lh,dJ as fh,cU as hh,i$ as Nl,D_ as dh,bL as Or,hF as ja,hK as ph,oL as Dl,iO as xr,D$ as Ne,ib as ra,E0 as mh,j5 as gh,B as Re,E1 as na,E2 as yh,gZ as vh,E3 as bh,E4 as Ml,E5 as wh,nj as xa,mQ as Eh,E6 as Sh,mW as Hr,E7 as _h,mY as Rh,E8 as Ze,mN as Oh,cB as Ih,iS as Fl,iT as Ul,iR as ia,iQ as oa,iU as Th,E9 as Ah,nm as Ch,Ea as Ph,n3 as jh,ng as xh,Eb as qh,n7 as Lh,Ec as kh,Ed as St,Ee as aa,Ef as Nh,Eg as Dh,lQ as Mh,lW as Bl,Eh as $l,gu as Fh,CU as Vl,Ei as Uh,CO as Bh,Ej as $h,Ek as Vh,lZ as Gh,El as zh,CZ as Hh,CN as Zh,qg as Gl,Em as Zr,En as zl,A0 as sa,zO as Wh,A3 as Hl,zR as Yh,Eo as Jh,zW as Kh,zI as Xh,zL as Qh,Ep as ed,A7 as td,zZ as rd,c4 as nd,bd as id,Eq as od,Er as lt,Es as ad,Et as sd,Eu as ud,i3 as Jo,ba as cd}from"./zeni-epic-state-C--9cPPx.js";import{j as N}from"./liveblocks-B7l6-lVT.js";import{a as K,p as X,d as Zl,c as Wl,g as ld}from"./sentry-BFGzyFr-.js";import{d as ht,q as qr,e as pe,z as be,f as fd,W as hd,y as Pe,g as Lr,i as dd,N as Je,F as kt,j as dt,k as at,m as kr,o as tt,r as pd,X as md,R as nt,t as ua,v as it,Z as gd,Y as yd,c as Wr,A as vd,w as Yl,K as bd,x as Jl,O as Kl,C as Ko,E as wd,S as Ed,H as Sd,G as Xl,I as _d,J as Rd,P as Od,Q as Id,T as Td,U as Ad,_ as Cd,$ as Pd,a0 as jd,a1 as xd,a2 as qd,a3 as Ld,a4 as kd}from"./index-BRDgVxUL.js";import{f as Nd}from"./analyticsHelper-DO-eHSEi.js";import{i as me,m as Ee,n as je,o as Dd,g as re,h as ge,N as Ct,R as Ve,k as se,u as ca,j as Xo}from"./core-CSvDBKbK.js";import{D as Nr,n as Ie,S as pt}from"./mui-Cm3rVrD-.js";import{a as ve,b as Md,c as Fd,d as Ud,e as la,f as Bd,g as $d,h as Vd,i as mt,j as Gd,k as jt,l as Dr,m as zd,n as Nt,o as Hd}from"./utils-DG7RBBiT.js";import{r as fa}from"./empty-BdJ2ubLR.js";import{r as Zd,a as Wd,b as Yd,c as Jd}from"./constants-qsYvqsp_.js";import{r as Dt,a as Kd}from"./index-B_ST3N1m.js";import{r as Xd}from"./index-C_7vQmrg.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./url-CN0vl3oZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c27c24f0-c524-4be5-a0c8-1a98cb1be497",e._sentryDebugIdIdentifier="sentry-dbid-c27c24f0-c524-4be5-a0c8-1a98cb1be497")}catch{}})();const Qd={overlayWidth:new Pe(100,100,50)},{common:{strings:qa}}=kt.getLocalizedStrings();function ep(e,n){return{headerActions:{onTabChange:o=>{const a=at(o),i=dt(o);pe.trackCockpitTabClicked(i),n.navigate(`../../${a}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,a)=>{e(Vt({uiState:{filterText:a}}))},onFiltersChange:(o,a)=>{a.categories!=null&&a.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:a.categories.map(i=>i.matchingOperator).join(qa.comma),logic:a.categoryCombinationOperator,parameter:a.categories.map(i=>i.field).join(qa.comma)}}),e(Vt({uiState:{filters:a}}))}}},healthPageActions:{onRowClick:o=>{e(ql(o))},onColumnSortConfigChanged:(o,a)=>{e(Vt({uiState:{sortKey:o,sortOrder:a}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(Vt({uiState:{filters:o}}))}}}}function tp(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const rp=ge(tp,ep)(dd);function Yr({isDrawerOpen:e}){const n=me(),o=Ee(),a=ht(),i=qr(),{companyId:t}=je(),[r,s]=Dd(),[d,l]=K.useState(!1),h=re(b=>Jf(b)),f=re(b=>qt(b)),{additionalChurnFactors:c}=re(b=>Kf(b)),{selectedCompanyDetail:w,selectedCompanyId:p,localFormDataAndStatusByCompanyId:y}=h,m=re(b=>b.companyViewState.zeniUsers.fetchState),u=re(b=>b.companyHealthMetricConfigViewState);if(K.useEffect(()=>{const b=g=>g==="Not-Started"||g==="Error";h.fetchState==="Completed"?o(ot(!1)):b(h.fetchState)&&(o(xl()),b(m)&&o(Ye()),b(u.fetchState)&&o(Xf()))},[h.fetchState,u.fetchState]),K.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(ql(t)),w!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[h.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||p!=null&&w!=null?N.jsx(Nr,{anchor:"right",open:p!=null,PaperProps:{style:{width:Qd.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(Ca()),children:N.jsx(fd,{roomId:`cockpit_${p}`,autoConnect:!0,children:N.jsx(hd,{onSaveClick:()=>{p!=null&&o(eh(p))},onSaveChangesToLocalStore:b=>{h.selectedCompanyId!=null&&o(Qf({companyId:h.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(Ca()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:c})})}):null,N.jsx(rp,{healthView:h,managementView:f,navigate:n,mixpanelHMUrl:Lr.mixpanelHMUrl})]})}const Ql=(e,n)=>{const o=[...e??[]];return o.push(n),o},np=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ip=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Ct,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function op(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Yr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Yr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Yr,{})})})]})}const ap={drawerLeftMargin:new Pe(0,0,240)};function Mt(e){const{isOpen:n,drawerLeftMargin:o,children:a,onClose:i}=e,t=qr(),r=o?.valuePx(t)??ap.drawerLeftMargin.valuePx(t),s=ht();return N.jsx(Nr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:a})}const sp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(up,{children:N.jsx(kr,{size:"ExtraLarge",start:!0})}):null,up=Ie.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|