@zeniai/web-cockpit-ui 1.15.2-prod → 1.15.3-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-DQqbcrtQ-CCMDBGCH.js → ACHDetailsPage-BTeL5y4g-DmxfsRQJ.js} +1 -1
- package/dist/assets/{AIPerformancePage-C-s0Z84w-BaiKs086.js → AIPerformancePage-DbUM6qs6-D5l8F8OE.js} +103 -103
- package/dist/assets/AccountInfoPage-C-UvpjYp-BfDokQ_n.js +18 -0
- package/dist/assets/{AccountInfoPageContent-DRhE__FT-DEYYF2py.js → AccountInfoPageContent-BwD3P36S-cR_aO4lg.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-Ck5k4sN0-CLd28X38.js → AccountLockedInfoModal-CLssvxib-S2XQajFi.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CinniH8P-BVAyvgSR.js → AccountReconDetailsDrawerPage-BB1W1GCn-JBvb4AkG.js} +1 -1
- package/dist/assets/{AccountRow-DqfBv7EN-BeG8cAK8.js → AccountRow-Dqp3eLws-CZ01ryFZ.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-ClhDPo8Z-B3Z11wzv.js → AccountsPromoCardStack-NTUKe73a-CsNkhdvj.js} +3 -3
- package/dist/assets/{AddAddressForCardDrawer-Bp7X9u3M-BHvIIcm_.js → AddAddressForCardDrawer-BRWhfaUV-Ba-99nxY.js} +1 -1
- package/dist/assets/{AddToWalletPage-BUltXgk9-Ccv-2ess.js → AddToWalletPage-eU9RlrX2-FgU8i9Mj.js} +1 -1
- package/dist/assets/{AgingReportsPage-C1CpbCow-DK-fRyj8.js → AgingReportsPage-Dbj75D7L-xth3ocr5.js} +3 -3
- package/dist/assets/{AllUserItems-CpiUni9v-BFPn5iHP.js → AllUserItems-C8o0ftGM-CFaZIEbK.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-ByNn2ALz-COBQe3iE.js → ApAgingDetailPage-oU_NMgYv-CGquB6FE.js} +4 -4
- package/dist/assets/{AppBasePage-DmW3KQcg-_8j72A2D.js → AppBasePage-Bb2EfHmS-CLmciAgt.js} +1 -1
- package/dist/assets/{AppDrawerContent-B1y_D31O-DTvWEupK.js → AppDrawerContent-UxABc1Xq-D4RK1ZMx.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-GxAZWP7M-BfXge6dd.js → ApprovalRulesSettingsPage-ITDu42uI-DNwfvvz-.js} +1 -1
- package/dist/assets/{ArAgingChart-BNoQoaPh-lRsQmeKM.js → ArAgingChart-BxAOsEvx-CZANIJr6.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CMcAarbW-B_hjxKGG.js → ArAgingDetailPage-DhHW1GHw-D9pgqngA.js} +5 -5
- package/dist/assets/{AttachmentView-BixDE2EA-DRjInPsi.js → AttachmentView-BnFvMAGW--ld7Hx8c.js} +1 -1
- package/dist/assets/{BankAccountSection-D85EMzvD-Cy9wR090.js → BankAccountSection-C0ZBcrDN-Bfiopxim.js} +1 -1
- package/dist/assets/{BankAccountWarningSection--CI3tctJ-BN8p7sJD.js → BankAccountWarningSection-BAMjtbnn-BO47Vh4w.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BAPo9xu--BnXgc_io.js → BankConnectionsSettingsPage-Ckpo_VYA-DevmalQL.js} +1 -1
- package/dist/assets/{BillDetailPage-DdJoziKf-CEcecUT8.js → BillDetailPage-D3lgSK4F-CqZ5opRC.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CdoDPSYo-kYyXr5Ez.js → BillPayApprovalRuleDetailPage--UxMsaII-9Mon0_XY.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-Cfo4L2hk-B6BOyHQN.js → BillPayApprovalRulesPage-BgokSweY-Baf5ik-5.js} +1 -1
- package/dist/assets/{BillPayPromoPage-cK5O7lqH-DQQb6UlM.js → BillPayPromoPage-Cmfp8aZE-BV2y4Y7C.js} +10 -10
- package/dist/assets/{BillPaySetUpPage-BuF8vy9q-D10ERzdT.js → BillPaySetUpPage-BmtV-Zr2-665ldgAn.js} +3 -3
- package/dist/assets/{BillingSettingsPage-B_l_z9VO-LX90nb8v.js → BillingSettingsPage-BRJELj5Y-DfZDJ2vZ.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-CoKwrfed-WCFfwJgS.js → BillsBulkReviewDrawerPage-D0HYL5UR-CgxN2BYX.js} +1 -1
- package/dist/assets/{BoxItem-CWj-NRo_-DfImv0N2.js → BoxItem-BO8CYlnI-cifRan7C.js} +3 -3
- package/dist/assets/{BusinessVerificationPage-Jl0yhiLd-u27H_ro_.js → BusinessVerificationPage-DNOBs_OD-DQqvz7MY.js} +1 -1
- package/dist/assets/{CardNumberSubText-CYyCmwah-N3ZNpNXF.js → CardNumberSubText-BgxVtjBP-C0H_h-nK.js} +1 -1
- package/dist/assets/{CashbackDetailPage-VVXYftFo-DA5biums.js → CashbackDetailPage-uVqHfc3a-BNj1YqmX.js} +8 -8
- package/dist/assets/{ChargeCardDetailPage-C-KKQCQP-BvJs0WVX.js → ChargeCardDetailPage-urxX5Ksv-CZSy2_VU.js} +1 -1
- package/dist/assets/{ChargeCardListPage--SIQ7a3u-DirVuIxK.js → ChargeCardListPage-uyLpvqZN-4MDug-O6.js} +1 -1
- package/dist/assets/{ChargeCardListTable-ddk5IppO-DD5fphHx.js → ChargeCardListTable-CWBqYx4D-DrYCM4wp.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-mA_IVVFy-D_SODbGx.js → ChargeCardPaymentHistoryPage-CrJRk1Yl-BocNQqlU.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BCb2xl-m-DtbvGaQc.js → ChargeCardPromoPage-8p2rEuSL-n08-aUHH.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DAVM2czH-CCWCL3Ai.js → ChargeCardSetupPage-Dk3kFOe8-wkX2oTY9.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Cgl7DfV2-DsomBIg7.js → ChargeCardStatementsPage-BgVV9glv-DMljO5w-.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DIDXNWS--DQSFQls6.js → CheckDepositDrawerPage-D-yLGTdP-EWK8cQRH.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BnxJMwQF-CwLzNnoE.js → CollapsableReportTable-9GyG9N_I-1n67583b.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CtFvma7e-MbXW-_Vp.js → CompanyOfficerDetailsSection-CTO9aR2f-zjfI2eeq.js} +1 -1
- package/dist/assets/{CompanyPassportCard-If9-KFRF-CaC0Y-8J.js → CompanyPassportCard-DRMGgEym-D6sxAXgE.js} +3 -3
- package/dist/assets/{CompanyPassportPage-ByLL4IdN-CnI3nq95.js → CompanyPassportPage-CgEtnvFs-DChKfhd7.js} +1 -1
- package/dist/assets/{CompleteProfile-D39MG_aE-B41MC9Ea.js → CompleteProfile-B8B0WHlc-DH-VSsuX.js} +1 -1
- package/dist/assets/{ConfettiBurst-CqS9iRS--ROj6h0-y.js → ConfettiBurst-Cf9tVPaI-BM2huSXV.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C0lTJ9RB-FcmrSgRF.js → CreateOrEditVendorPage-BRoA1J_e-CzBBu5Bw.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BMlE0JgE-CihYUP6F.js → CreditCardPaymentDrawerPage-DfLgUaL5-DfR_IJlY.js} +1 -1
- package/dist/assets/{CurrencySelectField-Cqh1PAAW-4WT7C3hx.js → CurrencySelectField-P0hAgQCu-CY3e6U6t.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CExJcqXe-CagjWug8.js → CustomerOnboardingActivationPage-B8Q88AWZ-CPF7lzvF.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-YGCksJfr-DfNXfn85.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-zHDAnR9J-BC7B-JwU.js → CustomerOnboardingDetailPageSkeleton-CHfRyWDx-D-MRkSd0.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CgblGoOL-CjZnNYEq.js → CustomerOnboardingNoStepsPage-AHaRcpU7-BdpSp0P9.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DSGfwtw5-RfiXPD7J.js → CustomerOnboardingPage-M-yohbX--BjV2j59I.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-C2YlsXt9-DY_N6QvQ.js → CustomerOnboardingProductSuitePage-DqQ7Lcwq-Bc6ND6Bx.js} +1 -1
- package/dist/assets/{Dashboard-C52yIGy8-DOJmJQIR.js → Dashboard-BG4b-9G4-sAqrpBJG.js} +1 -1
- package/dist/assets/{DashboardReportPage-iZVhpQQc-BBhEF-Qy.js → DashboardReportPage-BzRypSME-jjHWrXwM.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-mksYvmzi-_taEN-ko.js → DashboardSidebarBackgroundAnimation-iToqk56B-BtLraFPT.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-Ct9UKq01-CEMKAJXr.js → DepositAccTransactionItem-LqdXkh9A-hSRnCvZB.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-Q-rYYEAZ-DW0SGlGF.js → DepositAccTransactionListPage-CdvLbfLi-Cn9opxkq.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-D8MlbitH-BTP6uT40.js → DomesticWireDetailsPage-B42h6sda-DX1LXutY.js} +1 -1
- package/dist/assets/{DownloadOverlay-DooSRB2s-BF2uTdHp.js → DownloadOverlay-BaDe2oAY-D9mRkHN7.js} +1 -1
- package/dist/assets/{DrawerPage-COB3hDS_-Bvd864ff.js → DrawerPage-CstJJdfo-VidMxfx9.js} +1 -1
- package/dist/assets/{EditPeoplePage-BLRAgjPa-CawDu4Ct.js → EditPeoplePage-DnOwrdDz-BaklMVpc.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-D1d8qzXB-Bgb-cnHl.js → EditReimbursementDetailPage-CibEtPqY-CoDSnx1m.js} +1 -1
- package/dist/assets/{EntityDetailPage-BDqbedFw-CSRgOFGM.js → EntityDetailPage-DkdoV8Td-C0bI9nzr.js} +2 -2
- package/dist/assets/{EntitySummarySection-DOkXIw-J-YofxAv_T.js → EntitySummarySection-mA5rFNgr-DuPTnXno.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BSXCkfKT-CO_qIZgD.js → ExpenseAutomationOverviewPage-Cdb_ye_U-j_owJ_aN.js} +9 -9
- package/dist/assets/{ExpenseAutomationPage-Di3n8DMk-B2jagxZP.js → ExpenseAutomationPage-C8BdII8_-DimJYcUA.js} +1 -1
- package/dist/assets/{ExpressPayPage-B-SwvM4I-DZUgODco.js → ExpressPayPage-D-q6m2Sl-DvfkMqPz.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Dz42ojYl-dlyXXVzt.js → FeaturePreviewPage-Brmih5xQ-TclSPSN_.js} +1 -1
- package/dist/assets/{FollowStepsSection-BS4M36H4-VbTMLw8c.js → FollowStepsSection-C0R9691z-CJI6UuPB.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-C1Tn5Cwx-1V9BYJcq.js → GlobalReviewListPage-wZ4Kv7Km-DjGHeOHK.js} +1 -1
- package/dist/assets/{InformationCardStack-DTWUPxhs-BACtP104.js → InformationCardStack-C_Vo9lw4-BJdE4aZQ.js} +2 -2
- package/dist/assets/{InsightsCardStack-CklTB6N7-D4H9Re1R.js → InsightsCardStack-B18tApRg-CDcqQ9iZ.js} +2 -2
- package/dist/assets/{InsightsSection-g58q0fm4-CEq2Ig_3.js → InsightsSection-BT1h9fEy-BRfU7zNX.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-Bs3ZvOVJ-BHG9Ua2i.js → IntegrationsSettingsPage-BXihQUgf-Ca4kyKn3.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-CC0aZ_Ht-Bwxskut8.js → InternationalWireSwiftDetailsPage-s2KDdELd-DCL_N0b1.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-Bb8q9_XZ-CLNY8DKz.js → InternationalWireVerificationPage-seQdCIHj-B9N63yTL.js} +3 -3
- package/dist/assets/{InviteFormPage-Bh9zpIMu-Bu3B9PuZ.js → InviteFormPage-DORYlkDF-C-UyiOzw.js} +1 -1
- package/dist/assets/{InvitePageListView-Da5n8FWG-B6stlVcN.js → InvitePageListView-__0_bfoj-C56A_BTa.js} +1 -1
- package/dist/assets/{InvitePeoplePage-B1jmVXj9-D2WPRn0N.js → InvitePeoplePage-BPU0cUoJ-C_9RmlUy.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DN31nPpE-D9eKp_cR.js → InvoiceUploadSection-Cf_VG6ou-BXiqeaLr.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-Ev17uGYx-ChYFdDJP.js → IssueChargeCardPage-Ak_ZYHLC-Brr4uJLW.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CZvcCn7x-DlgPS4BM.js → LabeledAddressValue-Dv_iNmJ1-CSsnKiIv.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-CJel6ymq-CuDyNJEA.js → LabeledAddressValueField-BOu3phtO-DUC2jENU.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-COHS18nA-C3gA822t.js → LabeledControlledCheckBoxField-CPIKQ-CK-jxS0CHZ_.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-CcJheGwX-Yh_Rso5A.js → LabeledCountryMultiSelectField-BfXHGTpW-vM7yZBRT.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-C9p8xRkh-YLSUm9Dy.js → LabeledCreatableSingleSelectField-xk2HC5O8-CvpcCD48.js} +1 -1
- package/dist/assets/{LabeledDocumentField-DC4TbHE8-BjpcX3fs.js → LabeledDocumentField-D8RhxYIe-DAnLkE2V.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BcSAJy2I-2PBpSsNP.js → LabeledDropDownFormattedTextField-ClNFgUx5-Bx0rybn1.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-D-N343dq-DyYnCM_P.js → LabeledMultiSelectField-BpLilatj-DTbTUWW6.js} +1 -1
- package/dist/assets/{LabeledText-DHLOUxK_-DDl0PsGQ.js → LabeledText-Xnlcoee7-DQVISFOu.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BOM4OGJn-D98ERW9T.js → LabeledUserSingleSelectWithSubtitlesField-DSu4gVyZ-CJXT3-Sj.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CqZGfBlk-CWwKC4j_.js → LabeledZeniRolesDropDownField-Dm6FC_X5-CKRgwBOq.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BLleyJg_-Dicf3kDd.js → LinkJETransactionPage-D0tsT5TK-D-eEZv6m.js} +2 -2
- package/dist/assets/{LockCardPage-dHmjahEB-C2QZpy-5.js → LockCardPage-DYNFfr7G-CPZbfc9t.js} +1 -1
- package/dist/assets/{LowBalancePopup-D5xx56fY-CazatBff.js → LowBalancePopup-BHUFtl2y-rf0GZ141.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-D1Yrf6I3-xn828nNY.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DF4qlmsy-DJfJXSHY.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BNeI6INt-yjK2JJED.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-De4m7E-W-DcLxM1zk.js → MagicLinkSuccessPage-B-8mtcQ5-C3o9YJHE.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Bka3Yd1_-C6aP8e1t.js → MagicLinkTitleSection-DHU7VtF2-Bedubn59.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BbWfR6ob-D7W1tLXO.js → MailingDetailsSection-B-bODwAg-DzrWy-jk.js} +1 -1
- package/dist/assets/{Menu-CCfXjS2S-C9ZoSEn7.js → Menu-BumlrBWb-DpVhZSGr.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-NwFd4S7O-CC9eVha_.js → MyBankConnectionsSettingsPage-BP8ahgjX-5saVRqtp.js} +5 -5
- package/dist/assets/{MyPendingActivationChargeCardListPage-B2fGNuM2-B1XcoEjv.js → MyPendingActivationChargeCardListPage-DL6ZI6yW-BoGJ1TyM.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-C2xgzfZf-DsRcxwZ8.js → MyProfileSettingsPage-D0t4K8ns-Bm-ItkSW.js} +2 -2
- package/dist/assets/{NavBarWithPicker-DUqVkR_y-BknqAH_u.js → NavBarWithPicker-BtWbUncS-DB3n1R3v.js} +1 -1
- package/dist/assets/{NavigationArrow-Ctt_H8KP-E_uIkHaf.js → NavigationArrow-CxgIRSy6-CugP8MA7.js} +1 -1
- package/dist/assets/{NavigationDots-Dgudddqx-C4orZ-yB.js → NavigationDots-B3pcllxp-BTtZpldx.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D1hNFzTS-Ub29Nbxg.js → NewGlobalMerchantPage-cvM5npvx-Cu4rYaF2.js} +1 -1
- package/dist/assets/{NoDataChart-DbLSGWgH-B8Qyn34z.js → NoDataChart-CkbRqqmB-BdaQaq20.js} +1 -1
- package/dist/assets/{NoDataTable-BYLV7sLq-DdPuChf3.js → NoDataTable-D5uU7rww-DMI3TCce.js} +1 -1
- package/dist/assets/{NotFoundPage-CIeF09o9-DmVTU-Tc.js → NotFoundPage-CQ43hKOe-Cdrz4d6W.js} +8 -8
- package/dist/assets/{NotificationSettingsPage-CEhFnaxj-lxhMeLrR.js → NotificationSettingsPage-B1Lup2VT-Mysd9rJj.js} +3 -3
- package/dist/assets/{NotificationsListConfig-PHESCv2f-CV_5a971.js → NotificationsListConfig-DbMLqAOq-BbLTIknO.js} +1 -1
- package/dist/assets/{NotificationsPage-hIohQ7En-CSeli1Ds.js → NotificationsPage-AB3KsQi7-CsoOAVaW.js} +18 -18
- package/dist/assets/{OpExByVendorPage-C1RcJ4Q3-Dg382B2-.js → OpExByVendorPage-SzuZwalp-E6WJ2wnK.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-DPuKVI4d.js → OverlayContainerPage-Daz3A7cI-Dgh3TUuK.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-B-uQyVwQ-3UdMsNqp.js → PandLWithForecastPage-SYjTIobN-BFTSUg2z.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CGqYs83b-C-2L3l6N.js → PaymentAccountSetupBillingAddressSection-Bsx0mGaZ-E4w6U3C0.js} +7 -7
- package/dist/assets/{PeoplePage-Db0MhBko-BMsQRy7R.js → PeoplePage-B5JrcDNI-oFYxDkBG.js} +1 -1
- package/dist/assets/{Preview-DMjeJjnA.js → Preview-DA-xbr8A.js} +1 -1
- package/dist/assets/{ProductsCarousel-CYwIm8nQ-B5mle3Vr.js → ProductsCarousel-CVoL_xl4-DEZsKrdB.js} +1 -1
- package/dist/assets/{PromoBaseCards-B2ZC8OUT-BVAvKfhQ.js → PromoBaseCards-C8qSUCzq-dm6HKZ5W.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-B0E1xE9I-DgBSSzHh.js → QBOConnectionDialog-QFZbkFOA-CuMPgrHC.js} +1 -1
- package/dist/assets/{QBOSetupSection-IGV1sm9x-CNjIjXKF.js → QBOSetupSection-B2qiAlYU-CibzVKaP.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CwJkaZqa-CFNkMVya.js → ReimbursementApprovalRuleDetailPage-iqzN8yeY-ChbC4qky.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-C0D2DYVf-D_WeUtGn.js → ReimbursementApprovalRulesPage-BWFxJ80S-PIGBQETH.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DV7eDd9t-DbTKQbSm.js → ReimbursementDetailPage-Cb9BOq4R-Dl--S5zY.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DNM2mNbV-HkmfuMOc.js → ReimbursementPromoPage-D-NSe4nk-Ceb4vSNq.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-CVuQyfku-DngAhgwz.js → ReimbursementSetUpPage-zUHUxId8-C_2E6m1y.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DAvUmNKc-CnHe92Kc.js → ReimbursementsBulkReviewDrawerPage-CMupP_NB-lhVpZhwT.js} +1 -1
- package/dist/assets/{ReloadCard-BsOjPgsc-D5DLDKDR.js → ReloadCard-Dh0SYKvO-BfN50eLc.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BJNFsOJq-DR4jF5iW.js → ReportTableViewSelector-0H1aO3_G-By7dUXRW.js} +1 -1
- package/dist/assets/{ReportsPage-GYEaSw4z-DT0i_pp7.js → ReportsPage-DsFJrJ9D-DvSCX2Ph.js} +5 -5
- package/dist/assets/{RevenueChart-DXgZ34NU-D4IStz6f.js → RevenueChart-BlQnByKx-DXS5eLR_.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-VBCKACNQ-DeDwYpai.js → ReviewDetailsPage-CV-J7_FZ-DEsUSLNK.js} +2 -2
- package/dist/assets/{ReviewOverlay-D1dHNrqu-DXfCDLdz.js → ReviewOverlay-CwyShttD-COz1RonR.js} +1 -1
- package/dist/assets/{RoleWithToolTip-BE5aZQ2g-DYLY92hX.js → RoleWithToolTip-CeOpT_6v-DAXLsTDF.js} +5 -5
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-p2jwjhfb-19YgTPE7.js → ScheduleDetailsFixedAssetsPage-G0FPNF5V-CzalI8zM.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-CuGgAAlk-BtosIJ_j.js → ScheduleDetailsPage-D3WXeMzk-putFQ_Xj.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DS5xyWPM-CEwFuV1B.js → ScheduleSequenceTable-DdrN0kHc-HFF16mEy.js} +1 -1
- package/dist/assets/{ScreenRoutes-DrNdYiWh.js → ScreenRoutes-B3_PwFlc.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CgV-DpbH-BEL6ML_h.js → SetUpAccountSection-DjGIyGqz-2NoSMGYE.js} +1 -1
- package/dist/assets/SignIn-KN2wUeWN-DjuNGmXD.js +448 -0
- package/dist/assets/{SignInScreen-Ci3Hds-p.js → SignInScreen-DPHbD9R0.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-7hmUDsTR-CH6VUHE7.js → SpendManagementListViewPage-DA0yJkNS-i-QGqalr.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-r4Ivr4ml-zJ5DEEjw.js → SpendManagementPerTabPage-CIiwcTHn-k-WByauQ.js} +1 -1
- package/dist/assets/{SpendManagementSection-4bPNXnAu-Dgr9HP7J.js → SpendManagementSection-BLZOU6Ll--jqjSwJn.js} +7 -7
- package/dist/assets/{StatementItem-D7MXVGEy-B_tCrpyB.js → StatementItem-DfbvINGt-gujVkFyU.js} +5 -5
- package/dist/assets/{StatementsPage-mK9b-oez-oTY-nOXX.js → StatementsPage-DCjD7tSA-C1eD0_4q.js} +1 -1
- package/dist/assets/{StatusSwitcher-VeYkrDM7-DvOZ5Ysl.js → StatusSwitcher-CiOSpmnA-COfWLIsO.js} +1 -1
- package/dist/assets/{SubTabSwitcher-j2oEcPev-DhKmASxl.js → SubTabSwitcher-CfxBS2oi-DCjTTD4N.js} +4 -4
- package/dist/assets/SummaryCard-YakCHMD--BAgjII8U.js +1 -0
- package/dist/assets/{TaskManagementPage-Cmx-Dg-h-D0nmr1b9.js → TaskManagementPage-q5-Uh7TS-DB2W1_cZ.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DIM1SPbu-D-AL5YUb.js → TimeRangeSwitcher-B7_2Hok--aUvRF5BX.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-DKqN8iPa-BKKOAU8T.js → TimeframeSwitcher-nC3rnif3-C0iP6Cu3.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-DkOcWDwA-C8Z8JOD-.js +31 -0
- package/dist/assets/{TopExCard-Bng5AuNw-Dpc0LAx-.js → TopExCard-aqOoqjT0-BhL7e5nv.js} +10 -10
- package/dist/assets/{TopExDetailPage-C1UAPRay-C1udWpXC.js → TopExDetailPage-DIzdQ0cx-BfhcN7Ik.js} +6 -6
- package/dist/assets/{TransactionDetailPage-Ds7V1qr_-Chm5sLA8.js → TransactionDetailPage-B_hEEP8t-BqDk_xjH.js} +1 -1
- package/dist/assets/{TransactionList-Dq2orY9N-BLkQ0KnQ.js → TransactionList-UYBDB4bd-k1_T5uTi.js} +1 -1
- package/dist/assets/{TransactionListBig-BrDxcbHJ-D8A5Nn60.js → TransactionListBig-OdFVjIup-CPvP7HbH.js} +5 -5
- package/dist/assets/{TransactionListPage-D5v8TxYx-BGUL-pIU.js → TransactionListPage-BXYB5l79-SOItiSWS.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-DnZGwCbw-DsBLVtQF.js → TransactionVendorDetailPage-kDn1yhpe-C9RYtS0M.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DUdjOy9R-DGehrtgC.js → TransferDrawerPage-CtSQvv-q-CE0jnW7Y.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-XYkCDBio-CTs1ZQ8b.js → TreasuryOverviewPage-Dwp-RAwa-C3dvsu51.js} +9 -9
- package/dist/assets/{TreasuryPromoPage-CWtp3S9L-BeAE7yNb.js → TreasuryPromoPage-CqiGJJb1-BglMmMxR.js} +1 -1
- package/dist/assets/TreasuryStatementsPage-BvjfEhwz-D396YqJA.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-CNogHL4A-8kkb3Y5P.js → TreasuryTaxLetterPage-C3B6iff1-D2ZzHU1R.js} +2 -2
- package/dist/assets/{TrendChart-DBRT1lZ3-B-htJoWB.js → TrendChart-DwPnEwyO-DPu-_Br2.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CcjPNeY8-C7YkJfgr.js → TrendWithTransactions-B3oV0JPi-BgM9tzOd.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-BuMm5-pm-BPh026s-.js → UncategorizedAccountsMappingPage-bGvTx0Pv-0iP9QJ85.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-Dxb00NtN-fbPG5NNa.js → UnitIntegrationPage-CGqGix7l-ZI3ie0F3.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-H6nIiMo6-DVOWJHOy.js → UploadAdditionalDocumentOverlay-DYbC57rE-BoJPSMM7.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Opk2NgSs-B-SNFntT.js → Vendor2FAPopup-CF5GvGtl-Ged496hn.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-CKmq7yOU-BUMI9M8T.js +1 -0
- package/dist/assets/{VendorDetailPage-YUk-g7t--DTiwK45D.js → VendorDetailPage-LmgMG0tb-CmIxBGR9.js} +86 -86
- package/dist/assets/VendorDomesticWireDetailsPage-CBYW97OY-YsMZuav5.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-Ctx-C6OL-B72kAMzP.js → VendorFiling1099EditablePage-DZYtpPRR-C1LB-Vko.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-Biy4xcIs-Cwt7UxLk.js → VendorFirstReviewPage-DDj-Rw2b-Ce9lcxSE.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-B-ZKvwGN-Ba5mGEBL.js → VendorInternationalWireDetailsPage-VBJ-6ETL-DZn4-Y6u.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-dc3xswld-nEGzd21C.js +1 -0
- package/dist/assets/{VendorsAccountsSection-DztKh7dz-CknhPsMt.js → VendorsAccountsSection-CAygTvfU-jdUssBVa.js} +3 -3
- package/dist/assets/{VerifyDevice-fvWfQQnC-BxOk1Krp.js → VerifyDevice-CxLFy5GU-DSfbtygH.js} +7 -7
- package/dist/assets/{VideoPlayer-CfLdj-r8-DJCIDiIM.js → VideoPlayer-DKj4Ii21-D-xRLeKX.js} +2 -2
- package/dist/assets/{VideoPopup-B-N0Wv9f-Y7nOShlZ.js → VideoPopup-CFvt5o_3-4FAYuh93.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-UpSDjRDQ-C9YZ_3Aj.js → WarningsDrawerPage-BiBeB75Y-9pKl7aHf.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Bd_RNPxh-DtJlC9fu.js → ZeniAccountDetailPage-CTrz5iPv-Cs9Kmo8Y.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CE5BfFah-95q1Xa77.js → ZeniAccountListViewPage-DUfa9C7y-C3uPLkwI.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-C0ydgImW-ZKAEeCQS.js → ZeniAccountNavBarPieces-knHeWdLO-hJFDQ77K.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-EX9sTaQM-CQbWpaum.js → ZeniAccountPromoPage-BnGvEYqf-CP4Dtvvd.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DX2DvcQa-DF8n-dgt.js → ZeniAccountSetupPage-JnPZalVG-Q5c0Jn7k.js} +1 -1
- package/dist/assets/{ZeniCopyright-8vmkzP8u-BisYtvhc.js → ZeniCopyright-B4Tk2oOq-ZFjf_F4z.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BgIOeOee-B3Obr-jz.js → ZeniTransferAmountSlider-bXoRbaVx-CfzHPGE8.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-eNY_OCBo.js → add-to-wallet-DgdBD8_G-CDAinlR9.js} +1 -1
- package/dist/assets/{analytics-BUFSKutl.js → analytics-ko5civJt.js} +1 -1
- package/dist/assets/{analyticsHelper-NyCKStTJ.js → analyticsHelper-BaDAJS_h.js} +1 -1
- package/dist/assets/{analyticsHelper-DePSHzJ2-nrjGc1oj.js → analyticsHelper-Bow8lzQJ-BWC8GDGb.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-V8I-0M1B.js → arrow-south-east-round-PEovUgvH-8jzV931-.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-mF5BQZHi.js → auto-transfer-rule-mbafm5D3-CWH5b5CM.js} +1 -1
- package/dist/assets/{chartTypes-9YOqgm9X-Clxi05XW.js → chartTypes-C6j6oBoS-9mwDDGJP.js} +1 -1
- package/dist/assets/{commonDimensions-DMXq3s0u-BADLWz6W.js → commonDimensions-Dw7YNTQN-P35Kp_kM.js} +1 -1
- package/dist/assets/{commonTypes-BquPusaw-DLtkLlpr.js → commonTypes-Bq0C5-39-CLeN3lEf.js} +1 -1
- package/dist/assets/{constants-BrWPxO9h.js → constants-DMtNz7l9.js} +1 -1
- package/dist/assets/{core-Cxz4HUbn.js → core-BkA0GZqz.js} +1 -1
- package/dist/assets/{dash.all.min-DWlNcwdp.js → dash.all.min-BK4XJrTW.js} +1 -1
- package/dist/assets/{detailCommon-OHV8uIJY-CLMsoPHB.js → detailCommon-DaTlK7zO-DaqNQHzz.js} +5 -5
- package/dist/assets/{downloadPdf-AQqdv24M-C9YmEEAG.js → downloadPdf-CF50NGDy-B6sZII-t.js} +1 -1
- package/dist/assets/{empty-Cl_QN3bw.js → empty-CId982SJ.js} +1 -1
- package/dist/assets/{empty-C9a2QmXB.js → empty-D2MN7f91.js} +1 -1
- package/dist/assets/{epic-DhwNBWxm.js → epic-CaoEyh-G.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-C_LKLdav.js → gift-box-Cmt9OgIZ-PYBKomZ_.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-B_d4-WeO.js → graphic-no-data-l-DU4J8fDt-UswSWtT8.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BkdEDcDD.js → graphic-no-data-net-burn-l-CzmycA0m-CaXeE4do.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BvcxsP-R.js → handshake-BPg58FML-07xDz1It.js} +1 -1
- package/dist/assets/{index-CmQkfogd.js → index-BBDWUZKM.js} +1 -1
- package/dist/assets/{index-DLZhfXcT.js → index-BMluH1lc.js} +1 -1
- package/dist/assets/{index-BE73Kh7z.js → index-BN936vRr.js} +9 -9
- package/dist/assets/{index-DgerQhY-.js → index-BqsvcEQ2.js} +1 -1
- package/dist/assets/{index-Dil46tET.js → index-DHmXVUBw.js} +1 -1
- package/dist/assets/{index-DOVLHzE1.js → index-D_oDAIsa.js} +1 -1
- package/dist/assets/{index-Cs902Hx1.js → index-bGtXIeZp.js} +1 -1
- package/dist/assets/{lexical-Bnz9O97W.js → lexical-NKD2Ns4v.js} +1 -1
- package/dist/assets/{liveblocks-BUxiobW7.js → liveblocks-CUzvdZes.js} +1 -1
- package/dist/assets/{lottie-DskIkVJY.js → lottie-BXNphAUg.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-bnjefl-h-D04rm9wP.js → mapLoadingInProgressToTreeNode-BogZGPG9-BAboISSk.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DlHnT2so-T_NOrfhE.js → mapSectionWithAcOnlyToTreeNode-DioWEF-R-B1XLCEKS.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-pvGPhRLA-C7p9AjQP.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Z_evAkYB-r22eIMId.js → mapTimeframeBalancesToTreeNode-BNu8T9PW-DDSfuQEg.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CiB5iztB-CYCRkQV8.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CKpBoKTl-CuAe97gu.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DwGOxYFm-o3iB9CR0.js} +1 -1
- package/dist/assets/{mui-fuwOYnWD.js → mui-DQOtlcvt.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-CgvUKYzu.js → page-detail-CWX5S47F-TWXd7PAw.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-BF8Z5Rr4.js → radio-default-CiSgisfh-ZZNrqHqY.js} +1 -1
- package/dist/assets/{react-C01TZsN0.js → react-B0_FOKjj.js} +1 -1
- package/dist/assets/{react-DRg89qJU.js → react-CbZrw9iN.js} +1 -1
- package/dist/assets/{react-CvsbHuxq.js → react-D6ScaBnu.js} +1 -1
- package/dist/assets/{react-Q8SqCqQm.js → react-DjFHDY9f.js} +1 -1
- package/dist/assets/{react-BeLesOs2.js → react-GFMAp5sF.js} +1 -1
- package/dist/assets/{react-COhEtpa2.js → react-cPDaL2yO.js} +2 -2
- package/dist/assets/{react-B8BZPej1.js → react-etsPKK59.js} +1 -1
- package/dist/assets/{react-DdgtCQpc.js → react-w6MNCIg-.js} +1 -1
- package/dist/assets/{recharts-BnEZevRO.js → recharts-DEFzfhhe.js} +1 -1
- package/dist/assets/{sentry-CtwtDFb0.js → sentry-BCzFscbx.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CGMi0dES.js → shield-DOlUxcFf-BS_yEuW2.js} +1 -1
- package/dist/assets/toCOABalancesWithID-BxzNBK9u-CqDKc9Mj.js +1 -0
- package/dist/assets/{toChartData-BtwV0Kpo-Bw-R2Ick.js → toChartData-CnjrCi9i-CYxTVX3t.js} +1 -1
- package/dist/assets/{uploadAttachment-C69IP2HG-CBGzZBnZ.js → uploadAttachment-Ce0sdSDo-C1OEaf5S.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-BBwPaFJK.js → uploadReceipts-CPw64UYa-BgLSr3Wu.js} +1 -1
- package/dist/assets/{url-DOK-7QZR.js → url-A8j0yL_0.js} +1 -1
- package/dist/assets/{url-LaALb5Vd.js → url-DyyJ-K5V.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BXkmgMAX.js → useLongPress-GCK2COYQ-DdGlrNjq.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-C7lUdbbj.js → usp-line-BBd1wKwW-DeyJTd7u.js} +1 -1
- package/dist/assets/{utils-BZ73yfDv.js → utils-CGlY-GM2.js} +1 -1
- package/dist/assets/{zeni-epic-state-BFhqH0Xa.js → zeni-epic-state-DIO-8j7m.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-EW5OCEW3-BFt5mDaH.js +0 -18
- package/dist/assets/CustomerOnboardingContainerPage-E5XX6tJL-BRihrOCX.js +0 -1
- package/dist/assets/MagicLinkACHDetailsPage-DHIsrr2U-CqO-QM0k.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-B1ehlPCP-BlzVLj9c.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-C-Tv413E-CmD9gw7I.js +0 -1
- package/dist/assets/SignIn-BVICuIxS-C1aohJbi.js +0 -491
- package/dist/assets/SummaryCard-Bn8n64F6-CxBQi9ch.js +0 -1
- package/dist/assets/TimeframeSwitcherWithToggle-DcrnzLoy-Cakj6_nd.js +0 -31
- package/dist/assets/TreasuryStatementsPage-C1-iJ5X--9jbYN5Kx.js +0 -58
- package/dist/assets/VendorACHDetailsPage-C-uyGtu7-DV_EHBKQ.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-D0Vd0jjO-zZeOQP49.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Bg26p8FH-BidrIKR3.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-UVFWXY4N-BMStPnCG.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BQXXyttX-DRqc7NUb.js +0 -1
- package/dist/assets/toCOABalancesWithID-DcgESHck-DVS2fTFp.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as h,V as r,aK as a,b1 as f,F as y,aN as m,aQ as l,bC as g,ah as u,o as c,b2 as w}from"./index-BN936vRr.js";import{n as d}from"./mui-DQOtlcvt.js";import{a as s}from"./sentry-BCzFscbx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="513ae06a-7fb0-431b-a347-5e96e0dd906e",e._sentryDebugIdIdentifier="sentry-dbid-513ae06a-7fb0-431b-a347-5e96e0dd906e")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=d(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
|
-
`;function D({dimension:e,animated:o}){const t=
|
|
3
|
+
`;function D({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(l)`
|
|
4
4
|
justify-content: space-between;
|
|
5
5
|
`,k=d.div`
|
|
6
6
|
height: ${c.sp10};
|
|
@@ -19,8 +19,8 @@ import{d as l,V as r,aK as a,b1 as x,F as y,aN as m,aQ as h,bC as g,ai as f,o as
|
|
|
19
19
|
color: ${e=>e.theme.colors.primary};
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
`,$=d(
|
|
22
|
+
`,$=d(u)`
|
|
23
23
|
color: ${e=>e.theme.colors.champion};
|
|
24
|
-
`,v=d(
|
|
24
|
+
`,v=d(u)`
|
|
25
25
|
color: ${e=>e.theme.colors.hero};
|
|
26
|
-
`,B=d(j)``;function V({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(C,{children:[r.jsxs($,{children:[n??
|
|
26
|
+
`,B=d(j)``;function V({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(C,{children:[r.jsxs($,{children:[n??f(o)," "]}),r.jsx(k,{children:r.jsx(B,{})}),r.jsx(v,{children:y.getLocalizedStrings().card.failedText})]})})}export{V as A,D as E,T as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ee,q as de,cb as xe,a9 as ye,V as o,ao as _e,cc as te,ac as we,y as D,aP as $e,o as n,F as oe,cd as ve,ce as ke,cf as Ce,cg as je,ch as Ie,am as he,ci as Se,
|
|
1
|
+
import{d as ee,q as de,cb as xe,a9 as ye,V as o,ao as _e,cc as te,ac as we,y as D,aP as $e,o as n,F as oe,cd as ve,ce as ke,cf as Ce,cg as je,ch as Ie,am as he,ci as Se,ah as Ne,aB as X,bC as De,c as f,aT as Pe,al as Oe,au as Fe}from"./index-BN936vRr.js";import{a as u,S as ue}from"./sentry-BCzFscbx.js";import{n as d}from"./mui-DQOtlcvt.js";import{R as P,I as Be}from"./CollapsableReportTable-9GyG9N_I-1n67583b.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]="a0bf6a4e-37c0-40e9-b24c-25390100b42b",e._sentryDebugIdIdentifier="sentry-dbid-a0bf6a4e-37c0-40e9-b24c-25390100b42b")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Te(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{q as W,d as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o as w,aR as we,k as ye,y as B,bN as Ce,c as S,H as A,aB as X,G as xe,aT as Oe,at as Re,bJ as Ae}from"./index-BE73Kh7z.js";import{a as T,S as K}from"./sentry-CtwtDFb0.js";import{n as _}from"./mui-fuwOYnWD.js";import{bg as Z,EN as Be,EW as ve,EX as E,EY as Le,EZ as Te,E_ as Pe,E$ as Ne,F0 as ke,F1 as ee,F2 as te}from"./zeni-epic-state-BFhqH0Xa.js";import{m as z,l as q}from"./analyticsHelper-DePSHzJ2-nrjGc1oj.js";import{x as Ie}from"./ReportTableViewSelector-BJNFsOJq-DR4jF5iW.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-DIM1SPbu-D-AL5YUb.js";import{M as Me}from"./TimeframeSwitcherWithToggle-DcrnzLoy-Cakj6_nd.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-DooSRB2s-BF2uTdHp.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-BnxJMwQF-CwLzNnoE.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DlHnT2so-T_NOrfhE.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BQXXyttX-DRqc7NUb.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CKpBoKTl-CuAe97gu.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-bnjefl-h-D04rm9wP.js";import"./liveblocks-BUxiobW7.js";import"./core-Cxz4HUbn.js";import"./recharts-BnEZevRO.js";import"./lottie-DskIkVJY.js";import"./analytics-BUFSKutl.js";import"./lexical-Bnz9O97W.js";import"./utils-BZ73yfDv.js";import"./TimeframeSwitcher-DKqN8iPa-BKKOAU8T.js";import"./page-detail-CWX5S47F-CgvUKYzu.js";import"./AccountRow-DqfBv7EN-BeG8cAK8.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]="844a6513-c0a1-44b8-86a7-2c42f822c619",e._sentryDebugIdIdentifier="sentry-dbid-844a6513-c0a1-44b8-86a7-2c42f822c619")}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=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=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??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function 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=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(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($({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:F("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=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(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 Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push($({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(je({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($({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($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
1
|
+
import{q as W,d as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o as w,aR as we,k as ye,y as B,bN as Ce,c as S,H as A,aB as X,G as xe,aT as Oe,at as Re,bJ as Ae}from"./index-BN936vRr.js";import{a as T,S as K}from"./sentry-BCzFscbx.js";import{n as _}from"./mui-DQOtlcvt.js";import{bg as Z,EN as Be,EW as ve,EX as E,EY as Le,EZ as Te,E_ as Pe,E$ as Ne,F0 as ke,F1 as ee,F2 as te}from"./zeni-epic-state-DIO-8j7m.js";import{m as z,l as q}from"./analyticsHelper-Bow8lzQJ-BWC8GDGb.js";import{x as Ie}from"./ReportTableViewSelector-0H1aO3_G-By7dUXRW.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-B7_2Hok--aUvRF5BX.js";import{M as Me}from"./TimeframeSwitcherWithToggle-DkOcWDwA-C8Z8JOD-.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-BaDe2oAY-D9mRkHN7.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-9GyG9N_I-1n67583b.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DioWEF-R-B1XLCEKS.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CiB5iztB-CYCRkQV8.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DwGOxYFm-o3iB9CR0.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-BogZGPG9-BAboISSk.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.js";import"./TimeframeSwitcher-nC3rnif3-C0iP6Cu3.js";import"./page-detail-CWX5S47F-TWXd7PAw.js";import"./AccountRow-Dqp3eLws-CZ01ryFZ.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]="1fbea2cb-9ecb-4f05-93eb-a6b2ef1635b9",e._sentryDebugIdIdentifier="sentry-dbid-1fbea2cb-9ecb-4f05-93eb-a6b2ef1635b9")}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=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=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??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function 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=F("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($({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:F("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=F("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 Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push($({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(je({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($({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($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.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 Qe({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 Qe({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const f=W(),s=G(),[c,C]=T.useState(void 0),[x,j]=T.useState(void 0),v=!(f==="small"||f==="medium-compact"),V="name+balances_actual",M=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(D=>E(D));break}case"profit_and_loss_by_classes":{const h=e,D=(h.sections.expenses?.balances?.length??0)>0?h.sections.expenses:null,he=(h.sections.income?.balances?.length??0)>0?h.sections.income:null,H=D??he;H?.additionalBalances!=null&&(m=H.additionalBalances.map(me=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>E(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>E(h));break}}return m.length>0&&m.find(h=>h.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!X(x,e)||g===!0){const h=Xe(e,m,v,g);j(e),C(h)}else{const h=We(c,m,e,v);C(h)}},[u,e,g]);const[R,k]=T.useState(5),I=m=>{const h=m+135;k(h)},fe=m=>m?.trackPageLoaded(Ke(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:fe}),r.jsx(Je,{height:R,children:r.jsx($e,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:J.contentPaddingLeft.value(f),right:J.contentPaddingRight.value(f)},onAccountClick:p==null?void 0:(m,h)=>{p(m,h)},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,h)=>i?.(e.reportId,m,h),onReportTableHeightChanged:I,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,aw as ge,V as r,bM as _e,aN as P,bB as be,bA 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
|
+
`,ft=_.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
|
+
`,ht=_.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,aw as ge,V as r,bM as _e,aN as P,bB as be,bA 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 Jt(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[j,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:j,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 M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="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,I)=>{d(l,R,k,I)},onTimeframeSelectionChanged:(R,k,I)=>{p?.(R,k,I)}}):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??N.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(Me,{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(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Q(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(Ie,{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 Q=(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(Qe,(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 Jt(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[j,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:j,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 M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="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,I)=>{d(l,R,k,I)},onTimeframeSelectionChanged:(R,k,I)=>{p?.(R,k,I)}}):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??N.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(Me,{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(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Q(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(Ie,{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 Q=(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(Qe,(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=>N.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,b2 as Q,c as I,b as M,aW as J,o as m,aN as Ae,p as g,aB as Ve,y as xe,bK as ge,al as R,bL as V,b9 as F}from"./index-
|
|
1
|
+
import{d as A,V as a,F as D,q as de,b2 as Q,c as I,b as M,aW as J,o as m,aN as Ae,p as g,aB as Ve,y as xe,bK as ge,al as R,bL as V,b9 as F}from"./index-BN936vRr.js";import{a as P,S as ee}from"./sentry-BCzFscbx.js";import{n as x}from"./mui-DQOtlcvt.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-C6j6oBoS-9mwDDGJP.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-BxzNBK9u-CqDKc9Mj.js";import{V as Z}from"./toChartData-CnjrCi9i-CYxTVX3t.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-DEFzfhhe.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]="c573b5a7-5994-40de-a14c-6cf42353be63",e._sentryDebugIdIdentifier="sentry-dbid-c573b5a7-5994-40de-a14c-6cf42353be63")}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,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as At,f6 as Mt,f7 as Bt,f8 as Ft,aL as A,f9 as Rt,aN as j,fa as Lt,fb as Me,fc as Be,fd as Fe,b as H,fe as O,p as S,ff as zt,fg as E,fh as Z,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,c as s,F as Zt,ag as _t,c0 as qt,R as Wt,M as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Ht,fm as Kt,bh as Ut,l as Jt,b8 as Qt,fn as Xt,aq as et,bI as en,ai as tt,bs as tn,fo as nn}from"./index-BE73Kh7z.js";import{a as q}from"./sentry-CtwtDFb0.js";import{n as i}from"./mui-fuwOYnWD.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-BFhqH0Xa.js";import{t as rn,o as dn}from"./LowBalancePopup-D5xx56fY-CazatBff.js";import{S as _}from"./LabeledText-DHLOUxK_-DDl0PsGQ.js";import"./liveblocks-BUxiobW7.js";import"./core-Cxz4HUbn.js";import"./recharts-BnEZevRO.js";import"./lottie-DskIkVJY.js";import"./analytics-BUFSKutl.js";import"./lexical-Bnz9O97W.js";import"./utils-BZ73yfDv.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]="1ac5c172-59bb-4e04-995b-ed65beda9641",e._sentryDebugIdIdentifier="sentry-dbid-1ac5c172-59bb-4e04-995b-ed65beda9641")}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 Wt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Zt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,Ze=({attachment:e})=>{const[y,g]=q.useState(!1),M=()=>{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:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:Q,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,it,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]=q.useState(!1),[mt,xe]=q.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);q.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,W=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&W?.code?W:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&W?.code?W:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,V=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=_e(b,V,e.isBillMarkedForRetry),wt=()=>f?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(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?a.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}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&Y(!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,Y]=q.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:()=>{Y(!1),ne()},onClickAway:()=>{Y(!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(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(qn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Wn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Zn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:ft,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ye,{children:a.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:Z({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(_,{label:{label:a.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:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({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(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!f&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({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(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,f?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({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(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),f||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({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(_,{label:{label:a.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:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(gn,{children:[t.jsxs(We,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(We,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("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:A("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?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:qe(!1,k,b,V,d)}},primaryBtn:{label:_e(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?Y(!0):Se()},style:{width:qe(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{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:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,qe=(e,y,g,M,T)=>g?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
|
|
1
|
+
import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as At,f6 as Mt,f7 as Bt,f8 as Ft,aL as A,f9 as Rt,aN as j,fa as Lt,fb as Me,fc as Be,fd as Fe,b as H,fe as O,p as S,ff as zt,fg as E,fh as Z,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,c as s,F as Zt,ai as _t,c0 as qt,R as Wt,M as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Ht,fm as Kt,bh as Ut,l as Jt,b8 as Qt,fn as Xt,aq as et,bI as en,ah as tt,bs as tn,fo as nn}from"./index-BN936vRr.js";import{a as q}from"./sentry-BCzFscbx.js";import{n as i}from"./mui-DQOtlcvt.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-DIO-8j7m.js";import{t as rn,o as dn}from"./LowBalancePopup-BHUFtl2y-rf0GZ141.js";import{S as _}from"./LabeledText-Xnlcoee7-DQVISFOu.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="bf70588f-eb92-4c64-ba28-65db52836287",e._sentryDebugIdIdentifier="sentry-dbid-bf70588f-eb92-4c64-ba28-65db52836287")}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 Wt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Zt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,Ze=({attachment:e})=>{const[y,f]=q.useState(!1),M=()=>{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:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:Q,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,it,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]=q.useState(!1),[mt,xe]=q.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);q.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,W=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&W?.code?W:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&W?.code?W:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,V=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=_e(b,V,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(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?a.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}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&Y(!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,Y]=q.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:()=>{Y(!1),ne()},onClickAway:()=>{Y(!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(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(qn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Wn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Zn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ye,{children:a.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:Z({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(_,{label:{label:a.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:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({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(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({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(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({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(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({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(_,{label:{label:a.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:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(We,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(We,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("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:A("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?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:qe(!1,k,b,V,d)}},primaryBtn:{label:_e(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?Y(!0):Se()},style:{width:qe(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{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:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,qe=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(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,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
|
|
|
21
21
|
background-color: ${S.neutralGrey3Dark};
|
|
22
22
|
height: 1px;
|
|
23
23
|
width: 280px;
|
|
24
|
-
`,
|
|
24
|
+
`,fn=i.div``,gn=i.div`
|
|
25
25
|
display: flex;
|
|
26
26
|
width: 100%;
|
|
27
27
|
box-sizing: border-box;
|
package/dist/assets/{ReviewOverlay-D1dHNrqu-DXfCDLdz.js → ReviewOverlay-CwyShttD-COz1RonR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as L,V as i,aN as m,o as r,aP as M,y as d,L as B,R as I,M as W,p as s,al as j,cz as C,k as R,
|
|
1
|
+
import{q as L,V as i,aN as m,o as r,aP as M,y as d,L as B,R as I,M as W,p as s,al as j,cz as C,k as R,ah as b,bg as D,c as n,ef as G,u as _,iU as q,k5 as A}from"./index-BN936vRr.js";import{n as t}from"./mui-DQOtlcvt.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]="b701d06f-384e-48fe-9e70-c4ad0dc98be7",e._sentryDebugIdIdentifier="sentry-dbid-b701d06f-384e-48fe-9e70-c4ad0dc98be7")}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 I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=L();return i.jsxs(H,{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:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:a,children:[i.jsxs(N,{windowSize:a,children:[i.jsx(O,{children:i.jsx(U,{windowSize:a,children:e})}),i.jsx(K,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(Q,{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:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(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(M,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=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,{}),H=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-BE5aZQ2g-DYLY92hX.js → RoleWithToolTip-CeOpT_6v-DAXLsTDF.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{eM as h,eN as
|
|
1
|
+
import{eM as h,eN as f,V as s,bR as g,o as d,aN as l,F as x,an as y,ah as p}from"./index-BN936vRr.js";import{n}from"./mui-DQOtlcvt.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]="008e4e06-c87f-4251-978b-9fda1e724b13",e._sentryDebugIdIdentifier="sentry-dbid-008e4e06-c87f-4251-978b-9fda1e724b13")}catch{}})();const{hyphen:i}=x.getLocalizedStrings().common.strings,b=n.div``,m=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
5
|
-
`,u=n(
|
|
5
|
+
`,u=n(p)`
|
|
6
6
|
color: ${e=>e.theme.colors.hero};
|
|
7
|
-
`,j=n(
|
|
7
|
+
`,j=n(p)`
|
|
8
8
|
color: ${e=>e.theme.colors.brandColorPearl};
|
|
9
9
|
`,a=n.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
|
-
`,w=n(
|
|
12
|
+
`,w=n(y)`
|
|
13
13
|
border-radius: ${d.sp12};
|
|
14
14
|
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
15
15
|
display: flex;
|
|
@@ -19,4 +19,4 @@ import{eM as h,eN as b,V as s,bR as f,o as d,aN as l,F as g,an as x,ai as c}from
|
|
|
19
19
|
justify-content: center;
|
|
20
20
|
color: 1px solid ${e=>e.theme.colors.grey1};
|
|
21
21
|
margin-left: ${d.sp1};
|
|
22
|
-
`,I=({roles:e})=>{let t=i,r=[];t=h(e),r=
|
|
22
|
+
`,I=({roles:e})=>{let t=i,r=[];t=h(e),r=f(e);const c=()=>r.length>0?s.jsx(b,{children:r.map(o=>s.jsxs(m,{children:[s.jsx(u,{children:o[0]}),s.jsx(j,{children:o[1]})]},o.join(",")))}):s.jsx(s.Fragment,{children:i});return r.length>0?s.jsx(g,{enterDelay:600,"data-testid":l("roles-tooltip",t),title:c(),placement:"top-end",style:{marginLeft:d.sp1,padding:"6px 12px"},maxWidth:"264px",children:s.jsxs(a,{"data-testid":l("roles-label-wrapper",t),children:[t,s.jsx(w,{className:"roles-count-wrapper","data-testid":l("roles-count-wrapper",t),children:r.length})]})}):s.jsx(a,{"data-testid":l("roles-label-wrapper",t),children:t})};export{I as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD as Ve,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,im as Re,io as We,F as Ce,aa as he,ip as me,iq as ze,cP as Ue,q as $e,iE as Ge,gJ as re,c as R,p as Se,y as De,cF as Ke,ir as He,is as Qe,it as Ye,o as V}from"./index-
|
|
1
|
+
import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD as Ve,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,im as Re,io as We,F as Ce,aa as he,ip as me,iq as ze,cP as Ue,q as $e,iE as Ge,gJ as re,c as R,p as Se,y as De,cF as Ke,ir as He,is as Qe,it as Ye,o as V}from"./index-BN936vRr.js";import{a as f}from"./sentry-BCzFscbx.js";import{n as z}from"./mui-DQOtlcvt.js";import{F_ as Ze,F$ as Xe}from"./zeni-epic-state-DIO-8j7m.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-DdrN0kHc-HFF16mEy.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="942a677b-4d50-4d91-ae2a-6cd17e7dfd63",e._sentryDebugIdIdentifier="sentry-dbid-942a677b-4d50-4d91-ae2a-6cd17e7dfd63")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aO as F,ij as Y,gE as ke,ew as Ae,ik as Ie,a9 as Je,il as we,cC as Le,cD as Me,V as a,ac as Ve,cn as Pe,co as _e,cp as Fe,aP as $e,im as Be,io as Ne,F as Se,aa as ie,ip as he,iq as qe,cP as ze,q as Ue,gJ as pe,c as X,p as We,y as Re,ir as Ke,is as Ge,it as He,o as w}from"./index-
|
|
1
|
+
import{aO as F,ij as Y,gE as ke,ew as Ae,ik as Ie,a9 as Je,il as we,cC as Le,cD as Me,V as a,ac as Ve,cn as Pe,co as _e,cp as Fe,aP as $e,im as Be,io as Ne,F as Se,aa as ie,ip as he,iq as qe,cP as ze,q as Ue,gJ as pe,c as X,p as We,y as Re,ir as Ke,is as Ge,it as He,o as w}from"./index-BN936vRr.js";import{a as D}from"./sentry-BCzFscbx.js";import{n as P}from"./mui-DQOtlcvt.js";import{F_ as Qe,F$ as Ye,bL as Xe}from"./zeni-epic-state-DIO-8j7m.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-DdrN0kHc-HFF16mEy.js";import"./liveblocks-CUzvdZes.js";import"./core-BkA0GZqz.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./utils-CGlY-GM2.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]="d2057f52-bcbd-4cb0-a5b5-55479900aceb",e._sentryDebugIdIdentifier="sentry-dbid-d2057f52-bcbd-4cb0-a5b5-55479900aceb")}catch{}})();const q={labelWidth:new Re(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 X,V as t,iu as ie,iv as oe,R as le,iw as xe,dM as fe,fd as ye,b as I,F as R,ix as we,it as be,o as i,y as b,p as j,l as $e,aa as re,dI as je,cn as Se,cp as ke,cP as Z,eo as ee,cV as ve,iy as K,iz as De,b2 as Ce,iA as Me,cr as ze,iB as Le,c as h,al as L,b8 as Ee,co as Oe,ao as pe,ex as Ie,b0 as ne,ej as Ae,aP as Te,iC as T,ge as Ve,aL as Fe,iD as Je,aT as H,cX as Be,bg as Pe}from"./index-
|
|
1
|
+
import{q as A,d as X,V as t,iu as ie,iv as oe,R as le,iw as xe,dM as fe,fd as ye,b as I,F as R,ix as we,it as be,o as i,y as b,p as j,l as $e,aa as re,dI as je,cn as Se,cp as ke,cP as Z,eo as ee,cV as ve,iy as K,iz as De,b2 as Ce,iA as Me,cr as ze,iB as Le,c as h,al as L,b8 as Ee,co as Oe,ao as pe,ex as Ie,b0 as ne,ej as Ae,aP as Te,iC as T,ge as Ve,aL as Fe,iD as Je,aT as H,cX as Be,bg as Pe}from"./index-BN936vRr.js";import{n as l,c as B}from"./mui-DQOtlcvt.js";import{a as C}from"./sentry-BCzFscbx.js";import{bh as G,G0 as Re}from"./zeni-epic-state-DIO-8j7m.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="0658ac7a-81f3-46c1-8855-66bd86c4cfb4",e._sentryDebugIdIdentifier="sentry-dbid-0658ac7a-81f3-46c1-8855-66bd86c4cfb4")}catch{}})();const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:o,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}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,o),g=A(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"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:N(o,"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(Qe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(o,"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(Te,{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:o,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ke,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:o}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(Re(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=l.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,He=l.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{DU as Xf,DV as Lt,DW as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,DX as Pa,hB as th,hC as rh,DY as Gt,DZ as kt,h0 as nh,D_ as xr,D$ as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E0 as kl,E1 as Nl,hQ as ah,hN as sh,E2 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E3 as hh,dJ as dh,cU as ph,i$ as Dl,E4 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E5 as Ne,ib as na,E6 as yh,j5 as vh,B as Re,E7 as ia,E8 as bh,gZ as wh,E9 as Eh,Ea as Fl,Eb as Sh,nj as qa,mQ as _h,Ec as Rh,mW as Zr,Ed as Oh,mY as Th,Ee as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ef as Ph,nm as jh,Eg as xh,n3 as qh,ng as Lh,Eh as kh,n7 as Nh,Ei as Dh,Ej as _t,Ek as sa,El as Mh,Em as Fh,lQ as Uh,lW as $l,En as Vl,gu as Bh,C_ as Gl,Eo as $h,CU as Vh,Ep as Gh,Eq as zh,lZ as Hh,Er as Zh,D3 as Wh,CT as Yh,qg as zl,Es as Wr,Et as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Eu as Xh,A0 as Qh,zO as ed,zR as td,Ev as rd,Ad as nd,A3 as id,c4 as od,bd as ad,Ew as sd,Ex as ft,Ey as ud,Ez as cd,EA as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-
|
|
1
|
+
import{DU as Xf,DV as Lt,DW as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,DX as Pa,hB as th,hC as rh,DY as Gt,DZ as kt,h0 as nh,D_ as xr,D$ as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E0 as kl,E1 as Nl,hQ as ah,hN as sh,E2 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E3 as hh,dJ as dh,cU as ph,i$ as Dl,E4 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E5 as Ne,ib as na,E6 as yh,j5 as vh,B as Re,E7 as ia,E8 as bh,gZ as wh,E9 as Eh,Ea as Fl,Eb as Sh,nj as qa,mQ as _h,Ec as Rh,mW as Zr,Ed as Oh,mY as Th,Ee as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ef as Ph,nm as jh,Eg as xh,n3 as qh,ng as Lh,Eh as kh,n7 as Nh,Ei as Dh,Ej as _t,Ek as sa,El as Mh,Em as Fh,lQ as Uh,lW as $l,En as Vl,gu as Bh,C_ as Gl,Eo as $h,CU as Vh,Ep as Gh,Eq as zh,lZ as Hh,Er as Zh,D3 as Wh,CT as Yh,qg as zl,Es as Wr,Et as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Eu as Xh,A0 as Qh,zO as ed,zR as td,Ev as rd,Ad as nd,A3 as id,c4 as od,bd as ad,Ew as sd,Ex as ft,Ey as ud,Ez as cd,EA as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-DIO-8j7m.js";import{j as N}from"./liveblocks-CUzvdZes.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-BCzFscbx.js";import{v as dd,d as dt,q as Lr,e as pe,z as be,m as pd,W as md,y as Pe,f as kr,h as gd,E as Je,F as Nt,i as pt,j as at,k as Nr,o as tt,X as yd,r as vd,N as nt,t as ca,w as it,Z as bd,Y as wd,c as Yr,x as Ed,A as Jl,C as Sd,D as Kl,G as Xl,H as Xo,I as _d,J as Rd,K as Od,O as Ql,P as Td,Q as Id,S as Ad,T as Cd,U as Pd,_ as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md}from"./index-BN936vRr.js";import{f as Fd}from"./analyticsHelper-BaDAJS_h.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-BkA0GZqz.js";import{D as Dr,n as Te,S as mt}from"./mui-DQOtlcvt.js";import{a as ve,b as Ud,c as Bd,d as $d,e as fa,f as Vd,g as Gd,h as zd,i as gt,j as Hd,k as xt,l as Mr,m as Zd,n as Dt,o as Wd}from"./utils-CGlY-GM2.js";import{r as ha}from"./empty-CId982SJ.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-DMtNz7l9.js";import{r as Mt,a as Qd}from"./index-bGtXIeZp.js";import{r as ep}from"./index-BBDWUZKM.js";import"./recharts-DEFzfhhe.js";import"./lottie-BXNphAUg.js";import"./analytics-ko5civJt.js";import"./lexical-NKD2Ns4v.js";import"./url-A8j0yL_0.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]="e4ef933b-2bdb-45c9-80f6-466a5934d8c7",e._sentryDebugIdIdentifier="sentry-dbid-e4ef933b-2bdb-45c9-80f6-466a5934d8c7")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},tp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function rp(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function np(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const ip=ge(np,rp)(gd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:tp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(pd,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(md,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(ip,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},op=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ap=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function sp(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const up={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??up.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const cp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(lp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,lp=Te.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|