@zeniai/web-cockpit-ui 1.13.94-qa → 1.13.95-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-C77hriAS-epHr8z2g.js → ACHDetailsPage-CTeCxcke-DEZ1DdXH.js} +1 -1
- package/dist/assets/{AIPerformancePage-DWLZz5fl-Dm7QRJj4.js → AIPerformancePage-DHndW6Jx-BmfxnNcs.js} +16 -16
- package/dist/assets/{AccountInfoPage-CHH8xpX7-BHYJnROD.js → AccountInfoPage-DX6r16Bm-C_0exxSE.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CslCCxyA-D2tLaaG2.js → AccountInfoPageContent-DuUO6Fmo-ChKBTH6K.js} +7 -7
- package/dist/assets/{AccountReconDetailsDrawerPage-Bg65723V-D_ZML_kQ.js → AccountReconDetailsDrawerPage-XjxpxHaM-BlVBZ7kJ.js} +1 -1
- package/dist/assets/{AccountRow-CBhTc-CO-BjcmviyZ.js → AccountRow-BUDNnxLp-lnjPiXai.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-C1FN6ldb-CN7XbnjJ.js → AccountsPromoCardStack-BkYuVRiC-CxxRy5F_.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DKbwVrFG-C30N_SSc.js → AddAddressForCardDrawer-CaKymF5H-Dj9EwadM.js} +1 -1
- package/dist/assets/{AddToWalletPage-BLH7hMIs-w5hZoUjL.js → AddToWalletPage-CO_ranRc-Y0gvdbgy.js} +9 -9
- package/dist/assets/{AgingReportsPage-iXp5N9xa-C2HbeoRB.js → AgingReportsPage-CmvGohzQ-CnwGJP78.js} +4 -4
- package/dist/assets/{AllUserItems-SiwAGR6X-DyfdiVWI.js → AllUserItems-Bcd_lx2s-D5cL7TJF.js} +5 -5
- package/dist/assets/{ApAgingDetailPage-CSv-Yx3u-_eGctaGZ.js → ApAgingDetailPage-B6h9L4qX-C7HrCT0Q.js} +2 -2
- package/dist/assets/{AppBasePage-BVhJh2iM-CsZKSSoU.js → AppBasePage-bPmQIx1U-LDUbxoeo.js} +1 -1
- package/dist/assets/{AppDrawerContent-TBHNokFo-HdMO-5cD.js → AppDrawerContent-D4e_1ju1-Dhj_wy1v.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-DmPsbDZd-DJttXulK.js → ApprovalRulesSettingsPage-D7d0RwUR-D1d_wH6A.js} +1 -1
- package/dist/assets/{ArAgingChart-CPyAljB5-CLy2h2n0.js → ArAgingChart-CfBXj53W-SUndSl9y.js} +7 -7
- package/dist/assets/{ArAgingDetailPage-BLc5FDm2-Be-OlsGd.js → ArAgingDetailPage-D-HZa9vX-DvZl4P3_.js} +1 -1
- package/dist/assets/{AttachmentView-sMKTopf8-BrSABus_.js → AttachmentView-BF2v7v3I-BI4HJynu.js} +1 -1
- package/dist/assets/{BankAccountSection-DoGfRREZ-C_O3HwHq.js → BankAccountSection-Cm_J2y31-CDMRL_3y.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-BhSSRCzK-cqdLPfFO.js → BankAccountWarningSection-BnsmtuKk-DP1_s4k_.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-DIKMwQoQ-mwbG1_6c.js → BankConnectionsSettingsPage-BawBUQ6M-CMfekVh9.js} +22 -22
- package/dist/assets/{BillDetailPage-DSYeib0o-B-SbZjhQ.js → BillDetailPage-DFHM1n3a-CZEScqpR.js} +5 -5
- package/dist/assets/{BillPayApprovalRuleDetailPage-DDFr9CL_-1JlYMwAi.js → BillPayApprovalRuleDetailPage-PGRG0N6y-BxcnUNyI.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-3Yak-MB--abeek7Sw.js → BillPayApprovalRulesPage-ByawtRCM-DDp-vV61.js} +1 -1
- package/dist/assets/{BillPayPromoPage-nRvSJMZU-Rhcrtpcf.js → BillPayPromoPage-BvA5aJV2-CaYtY57T.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BWrp4v6b-CihMrJIy.js → BillPaySetUpPage-D4dtDoPF-pJA12_gD.js} +1 -1
- package/dist/assets/{BillingSettingsPage-DtBZmdxq-Cy48ODMg.js → BillingSettingsPage-C0c3igP5-ap-9LOcf.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DCz41OgH-i28Lv2An.js → BillsBulkReviewDrawerPage-ChobILB2-GJEoEUgd.js} +1 -1
- package/dist/assets/{BoxItem-DBi8kqn3-D5LjrUcM.js → BoxItem-qV71vsVl-DibKZa0V.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BfPqcCH3-BqsIOqpP.js → BusinessVerificationPage-CYL-J6jv-Dor_XGL3.js} +1 -1
- package/dist/assets/{CardNumberSubText-CkmaTF_l-DvsnqpP8.js → CardNumberSubText-BkMaMdcB-ChxBB6AF.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BlcEXdet-GeQCDP8V.js → CashbackDetailPage-Bkvu7uCA-BYpe0YrA.js} +9 -9
- package/dist/assets/{ChargeCardDetailPage-BARovLsv-LaoQ2YQy.js → ChargeCardDetailPage-B8JhA6aM-0cEMZGgL.js} +1 -1
- package/dist/assets/{ChargeCardListPage-C1XbbZJ2-BmIRbwwO.js → ChargeCardListPage-DayFsVdx-7umY7GOL.js} +1 -1
- package/dist/assets/{ChargeCardListTable-HXAc8Lqx-D1dyarlQ.js → ChargeCardListTable-Ck15ShIF-B2Jd56oy.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-B8aTlJ8l-CnziFXNJ.js → ChargeCardPromoPage-ZvHc9uZ8-BCAw2lta.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-XI-WplXI-CYL9y3aW.js → ChargeCardSetupPage-QROShfxq-C4kf_hhx.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CYopWAg4-BO-P7Ch8.js → ChargeCardStatementsPage-DlFimewo-dsUOLazz.js} +1 -1
- package/dist/assets/{ChargeCardUtils-BEtXxds6-_ZInojp1.js → ChargeCardUtils-Buf1Xa4X-CfiY3Rp3.js} +1 -1
- package/dist/assets/{ChaseOverlay-BySoceqB-CUyJY5pE.js → ChaseOverlay-Cp5-sc7K-q-w46Qrq.js} +2 -2
- package/dist/assets/CheckDepositDrawerPage-ClJh5smc-CaqzSYGu.js +206 -0
- package/dist/assets/CollapsableReportTable-CKu2AawV-BR9Jh8-F.js +2932 -0
- package/dist/assets/{CompanyOfficerDetailsSection-QQIIHW41-d_NYr_cs.js → CompanyOfficerDetailsSection-CHi8zT6M-2vvUSfpo.js} +1 -1
- package/dist/assets/{CompanyPassportCard-D2b6Ztes-BFHyredr.js → CompanyPassportCard-DW8AIAcy-ChQaVIG_.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Bkd2l8Xj-Dicp0LXN.js → CompanyPassportPage-CG1U8xfQ-z31zr_09.js} +1 -1
- package/dist/assets/{CompleteProfile-DYv1reCa-BSD0oAlQ.js → CompleteProfile-Lnfcm8Mq-A9UckRww.js} +1 -1
- package/dist/assets/{ConfettiBurst-CDUVssuw-Bnrrgzra.js → ConfettiBurst-Ca6cfnuf-0CP5GWxx.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-mlx8B4Jv-CrG_41vA.js → CreateOrEditVendorPage-BuBYOkXS-C5Z5SPL2.js} +5 -5
- package/dist/assets/{CreditCardPaymentDrawerPage-DBTT4Ptu-B_5MLdSD.js → CreditCardPaymentDrawerPage-8d6cEGBi-DeW_T_vn.js} +6 -6
- package/dist/assets/{CreditCardPaymentPlgSection-CH8Ic2sK-B9lriErU.js → CreditCardPaymentPlgSection-B9DUkdWm-rJN3aibi.js} +5 -5
- package/dist/assets/{CurrencySelectField-BpuAi_Wp-B-bKRrpe.js → CurrencySelectField-BUtL_oMC-vjfdBgAC.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CJn_cLk6-DH-o3_5G.js → CustomerOnboardingActivationPage-BZIt8djd-6s7QTCQc.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DLE82ybr-CRS91glj.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cr10sdrX-qJeOaFkC.js → CustomerOnboardingDetailPageSkeleton-n8n9mzuh-1Pj7fv61.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-9Jl0VpUx-DIQ-Emh9.js → CustomerOnboardingNoStepsPage-f_PloOrf-B7YeJUhG.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-OCG7AjuD-BH-cZdFY.js → CustomerOnboardingPage-B_vGVChf-BBpgC_P8.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-vXKRghjP-Dl2MuVA6.js → CustomerOnboardingProductSuitePage-hXloSEH1-tV_sIlVM.js} +1 -1
- package/dist/assets/{Dashboard-BOJNXopc-bSZdmbj5.js → Dashboard-DN58fmab-BSfq0dju.js} +1 -1
- package/dist/assets/DashboardReportPage-DIx6h5UA-DE9i6tXD.js +370 -0
- package/dist/assets/{DepositAccTransactionItem-BVGKoyyZ-oxdduuwb.js → DepositAccTransactionItem-DNv9nV2t-sabH0i0g.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-kkdrU5Mo-C9LuI_bm.js → DepositAccTransactionListPage-CWEabc_8-D6J4mdt4.js} +1 -1
- package/dist/assets/{DocumentSecurityBanner-C_LxmFZ8-Q_2DF47a.js → DocumentSecurityBanner-B6VGrs_d-jwQl4fBm.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BhE0GcbL-bcvkA4iI.js → DomesticWireDetailsPage-BYIbT0cd-MsB82_Nr.js} +1 -1
- package/dist/assets/{DownloadOverlay-LH6MXphu-C5hU8KdL.js → DownloadOverlay-RhRX-Goq-0pJzo8tq.js} +1 -1
- package/dist/assets/{DrawerPage-C3wbST4Q-shEpZUr-.js → DrawerPage-C01myF5D-L_T-Mi_O.js} +1 -1
- package/dist/assets/{EditPeoplePage-C53vRVhe-CzbvSTok.js → EditPeoplePage-BMm08q5E-B2z1Cy4i.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BBQIYJrj-q88G9Yb-.js → EditReimbursementDetailPage-C5FnQpPh-sK_g6wjY.js} +1 -1
- package/dist/assets/{EntityDetailPage-Ba0fzVNR-IqVNFn9T.js → EntityDetailPage-BkpeRVR1-B6XILqHa.js} +1 -1
- package/dist/assets/{EntitySummarySection-DA6Vsjwj-BAvsommc.js → EntitySummarySection-DpxcfRng-Umu6Fw_D.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-glEgQT6c-SrdF-MNl.js → ExpenseAutomationOverviewPage-BJ1ba0Oz-BAbt9eHm.js} +3 -3
- package/dist/assets/{ExpenseAutomationPage-CsJiE1ap-DphoVjtl.js → ExpenseAutomationPage-C7GKFlgt-B1fB3w-U.js} +3 -3
- package/dist/assets/{ExpressPayPage-i9LGeqy_-BY_7W3kL.js → ExpressPayPage-pgy9CEaP-C4tOK1_E.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Bl2C_tQd-CKwGYgno.js → FeaturePreviewPage-Bpnn3Eao-DWGadm42.js} +1 -1
- package/dist/assets/{FollowStepsSection-KcgZahKS-CFYzCfr3.js → FollowStepsSection-D4Do4Mtd-Bgez_ajJ.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-D2NH1omi-BAcPfulT.js → GlobalReviewListPage-D_50hOfK-D74gQQCX.js} +8 -8
- package/dist/assets/{HelpButton-YqQNv-UM-Cr9H_2qh.js → HelpButton-BBLa-U8R-5BfdLJDT.js} +1 -1
- package/dist/assets/{InformationCardStack-OhjUoNBj-wQIEpyF_.js → InformationCardStack-CNCEEO1z-BPT-WizN.js} +1 -1
- package/dist/assets/{InsightsCardStack-CDrOBeoJ-D2_U2exZ.js → InsightsCardStack-BangbyzX-C-dfE00z.js} +1 -1
- package/dist/assets/{InsightsSection-CBaItqYN-CICeCHeL.js → InsightsSection-DNfDisn9-CMHRFpDc.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-CuPS5otW-CPeXnDum.js → IntegrationsSettingsPage-ColuS6Tk-CdBeqhKb.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-DQsW7Uzb-B3eW1tDG.js → InternationalWireSwiftDetailsPage-BG4x1tCL-5AAkqkwh.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BE1xcmQo-B2CmYqd7.js → InternationalWireVerificationPage-B22ThS6Q-B85Ehc7_.js} +1 -1
- package/dist/assets/{InviteFormPage-CUDsc0Y3-CQHW8huZ.js → InviteFormPage-Cixm85d1-N6lcykk5.js} +15 -15
- package/dist/assets/{InvitePageListView-DJildrs1-D8BkazXd.js → InvitePageListView-DBcwM1lk-DLgO5vEV.js} +1 -1
- package/dist/assets/{InvitePeoplePage-6upCRZjT-D3FVLYQY.js → InvitePeoplePage-DIq28HlK-DxgsZvQF.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-CyacFv78-B5mvyX1V.js → InvoiceUploadSection-D5vmrKLq-CaJvqPBS.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-6iTrYJEM-GZ3SqXP5.js → IssueChargeCardPage-DjW6ZTWB-DVAoNzJY.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CDy1Q4J--BYLGzIE_.js → LabeledAddressValue-CDidTB7_-BYCZE34N.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DbR_ehJJ-DhvqYYqM.js → LabeledAddressValueField-CVVc36IB-mrR3y5nG.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CXNDX5oe-B87w-Mys.js → LabeledControlledCheckBoxField-CGN805d2-BvA9NcSn.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B_TreAUT-CQAo_PVZ.js → LabeledCreatableSingleSelectField-PunIRbD6-DSy2bCTv.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CUTXDuQL-C_2Z86ZM.js → LabeledDocumentField-DgGIyJH_-hDHBkxrT.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-yPu_zrn8-BUFKtUfX.js → LabeledDropDownFormattedTextField-BDVtmFqG-j2xXgXWn.js} +1 -1
- package/dist/assets/{LabeledText-gvxUV2ku-DUsv1Tg3.js → LabeledText-BW7VKf6E-PGkPpMVO.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Bh1Ts3Yn-zvRfFSR2.js → LabeledUserSingleSelectWithSubtitlesField-Cmc8qo-r-M7EEhfxE.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-xA0_8wFb-DPAY6GB_.js → LabeledZeniRolesDropDownField-Cl6BAapU-DdwZAoZU.js} +9 -9
- package/dist/assets/{LinkJETransactionPage-f4-YwvQe-B098ON-u.js → LinkJETransactionPage-CtYsRhte-gAytw1dS.js} +1 -1
- package/dist/assets/{LowBalancePopup-C7oCDqcx-DEQSXlzt.js → LowBalancePopup-C_c9t4ho-r8GHfwbA.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-Bqe3RDsV-CIlhSzhZ.js → MagicLinkACHDetailsPage-KZmNuH71-eLFzvgps.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DPU-8FAH-91upKqrx.js → MagicLinkDomesticWireDetailsPage-DCkibDQs-DjBoqAab.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DeXZfP0h-B3Fe9sAP.js → MagicLinkInternationalWireDetailsPage-CR1BJE-p-BVc964tl.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CArToNjz-iytAkmyP.js → MagicLinkSuccessPage-D9VscY-N-BvVpg8o7.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CP0OhLNZ-BvI71Hw2.js → MagicLinkTitleSection-DwxRtyUO-Dj3CNxLB.js} +1 -1
- package/dist/assets/{MailingDetailsSection-TgN7VRhK-DHVERiTV.js → MailingDetailsSection-B3AtsI4y-Cg3vKD8Z.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-vr7DE2aj-D_6bTorg.js → MeetingCalenderPopup-5ibEhgcm-p1sBC8Am.js} +1 -1
- package/dist/assets/{Menu-DNn9-W-C-4a4WLl_B.js → Menu-B3jEZq8P-CBWyxFfA.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-TawXQ1Zb-DvzW5ml0.js → MyBankConnectionsSettingsPage-BLqGgTGR-DFR7-MdN.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CPgV9E8n-B8UHYJyP.js → MyPendingActivationChargeCardListPage-GXGFSZqe-DQBMtuje.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DuXTV0pM-BUEudvSx.js → MyProfileSettingsPage-CwBD0rUF-Bso1ueKy.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Cdali7jG-CZxJ0sMq.js → NavBarWithPicker-wTsy1SAG-B0aq1ozI.js} +1 -1
- package/dist/assets/{NavigationArrow-DaoZtCA8-CCGN51vq.js → NavigationArrow-PxVotVGU-BN6LQQ8z.js} +2 -2
- package/dist/assets/{NavigationDots-BhF2AV0Y-DlgWFx6V.js → NavigationDots-BhLlf9IS-Cc6rFgNx.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BaoJ7yB8-CAVyspba.js → NewGlobalMerchantPage-BnXD_AkF-7b5iQIvJ.js} +1 -1
- package/dist/assets/{NoDataChart-IPJ1xGPZ-BxHj0A2f.js → NoDataChart-DLfKZ9J--1T9pg2HM.js} +1 -1
- package/dist/assets/{NoDataTable-D5U81gbD-C1gpddUk.js → NoDataTable-BRKuhxS0-sx0oHeyw.js} +1 -1
- package/dist/assets/{NotFoundPage-C7BswX2A-C9lHyXTs.js → NotFoundPage-BD417YGL-rToNH_nB.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BQyqFWby-CU2cWhAA.js → NotificationSettingsPage-Mb9ed249-CQss7Tea.js} +1 -1
- package/dist/assets/{NotificationsListConfig-kLqWFg2Q-CGD5rAvQ.js → NotificationsListConfig-CISUs4yA-Up6zrNe0.js} +1 -1
- package/dist/assets/{NotificationsPage-DjRkTZVT-CmwgHKC8.js → NotificationsPage-WTGOES7C-D5gXR2ud.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CSasi7Uo-CpF03xbR.js → OpExByVendorPage-D4Ur1QRV-CtpvGOvR.js} +6 -6
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-BNaMtK2f.js → OverlayContainerPage-C0rUb6-5-DLDjA1WL.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D8YwSYiz-Dmh0WzGR.js → PandLWithForecastPage-DSvdGyym-C1hZzOpv.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BWwcQZfk-lDsDJFAt.js → PaymentAccountSetupBillingAddressSection-Bs8f-d_P-BeYSvOrY.js} +1 -1
- package/dist/assets/{PeoplePage-mrXiZ4VG-olvrm2qK.js → PeoplePage-ByFdUCgV-C-dQ5ifc.js} +17 -17
- package/dist/assets/PortfolioAllocationFormPage-BY5JJCu--Db_AJDDA.js +207 -0
- package/dist/assets/PortfolioDetails-Du2wncho-DR6hA4On.js +218 -0
- package/dist/assets/{ProductsCarousel-DpevGHyq-BgTQFmaG.js → ProductsCarousel-6mui8g8D-BXwmVYBD.js} +1 -1
- package/dist/assets/{PromoBaseCards-BreO0rHq-BEQoVHCh.js → PromoBaseCards-CASb_Nf9-BmTbWgM7.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BCWc6AK--BjS8lhnT.js → QBOConnectionDialog-AF50P_eR-DhzipR7w.js} +5 -5
- package/dist/assets/{QBOSetupSection-D_doa7hh-DBMB3UsE.js → QBOSetupSection-hObNFdKz-3XFNnwv5.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BSFxsbcx-DiMrtevs.js → ReimbursementApprovalRuleDetailPage-NuprN06r-BkFlu4jO.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-X9bJFM6L-Bydqg-gE.js → ReimbursementApprovalRulesPage-DP8frTz1-BIghkZwb.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BJmSB65P-DKzdVUkm.js → ReimbursementDetailPage-B9F6pND6-DNevCo1s.js} +3 -3
- package/dist/assets/{ReimbursementPromoPage-DO7dI9S7-DYK25m4Q.js → ReimbursementPromoPage-CUNbpcAP-BJXAeXWj.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Wjj6aNpc-CuJqBvGc.js → ReimbursementSetUpPage-ihfYAhDw-BJyrWltl.js} +2 -2
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-GPuEjGqi-BEo9uzX9.js → ReimbursementsBulkReviewDrawerPage-CafTodEa-vUUwSS79.js} +1 -1
- package/dist/assets/{ReloadCard-cApojDpl-CORBkU9q.js → ReloadCard-aQ5Ma2ne-srF7XfGP.js} +1 -1
- package/dist/assets/ReportTableViewSelector-CjZe9dc3-B94C9OUt.js +150 -0
- package/dist/assets/ReportsPage-PDTasuAQ-CD592IPM.js +121 -0
- package/dist/assets/{RevenueChart-xoOc_3W3-B5t9XtXu.js → RevenueChart-CJYsWcyb-COXSVzci.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CF-R6wwN-DUw9JDlV.js → ReviewDetailsPage-47Qg28PV-DD0ehHxI.js} +8 -8
- package/dist/assets/{ReviewOverlay-Bora7h_H-Dbg4Ccge.js → ReviewOverlay-DvYSZ8u9-D1sec7oa.js} +1 -1
- package/dist/assets/{RoleWithToolTip-k62RaqAZ-CqsyYYHM.js → RoleWithToolTip-DoD_vW-E-xeMdlQFI.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bd6qfpob-CpWHZIr1.js → ScheduleDetailsFixedAssetsPage-BMX7jbBN-B126g4bO.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-scOS36lS-uWq_jX8t.js → ScheduleDetailsPage-CNtV2SVn-Ddz0O5ah.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BIhbFnjb-LCuZm1qd.js → ScheduleSequenceTable-CMrsG_y3-ZI5_od4y.js} +1 -1
- package/dist/assets/{ScreenRoutes-BVnz5jkt.js → ScreenRoutes-Xqggk2Tm.js} +1 -1
- package/dist/assets/{SetUpAccountSection-ehZfUFEf-C1rT3hvC.js → SetUpAccountSection-D3nUQAk8-DKZLa9Zq.js} +37 -37
- package/dist/assets/{SetUpDefaultSection-DnYtx3XN-CyhzApD5.js → SetUpDefaultSection-C2MgZHUf-x0_RVnLC.js} +1 -1
- package/dist/assets/{SignIn-k9MFplB1-D7A5rQL5.js → SignIn-Bud28HbX-Xl-uNzmG.js} +1 -1
- package/dist/assets/{SignInScreen-BAVVV3T9.js → SignInScreen-BV0zmhf7.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-B11exjM8-BIuiIskJ.js → SpendManagementListViewPage-B8R0PEMD-BbaRv050.js} +6 -6
- package/dist/assets/{SpendManagementPerTabPage-ByXU-omE-p0GZ8nMK.js → SpendManagementPerTabPage-CTdgMCHu-CAOhzan7.js} +1 -1
- package/dist/assets/{SpendManagementSection-CAewVL0Z-C93aoqiW.js → SpendManagementSection-CnD0V00y-Dmq0cMig.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-BY2LT0qv-NxcSCOP_.js → SpendMgmtSetupAccountSection-D7LHyfpa-46XD5tWn.js} +5 -6
- package/dist/assets/{StatementItem-BJoMxmJY-DdWJk3p9.js → StatementItem-Dn796WZD-1Rb-SXfR.js} +4 -4
- package/dist/assets/{StatementsPage-C_O76V3t-Ddr8hlSd.js → StatementsPage-L75Co_mK-C_J6xieF.js} +1 -1
- package/dist/assets/{StatusSwitcher-39NGxygM-BPhOaGQc.js → StatusSwitcher-CxbcO6mR-C4PCbece.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BcL8UKX8-CKNW3Pw7.js → SubTabSwitcher-mCKmnU9--jUtM0Bft.js} +1 -1
- package/dist/assets/{SummaryCard-VT7YJ6jy-tBlhatMr.js → SummaryCard-BoA0mdbI-C3rDEBSG.js} +1 -1
- package/dist/assets/{TaskManagementPage-p-3BLn0_-Bcx7Pxb9.js → TaskManagementPage-CbSLSOpI-BFGgqlJt.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-Cjs5znYy-D4kRF9_6.js → TimeRangeSwitcher-DIszv8B4-D-1vIZUO.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-BJrFD5A7-CAhgNQgf.js → TimeframeSwitcher-C8tn7HgF-Db6tSjO9.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CrWRqA_S-D9lemXj0.js → TimeframeSwitcherWithToggle-DqvG5zv2-DqYusAPI.js} +1 -1
- package/dist/assets/{TopExCard-DAwlJbbc-DbZ2c89C.js → TopExCard-B2pg-xWB-DR721esp.js} +1 -1
- package/dist/assets/{TopExDetailPage-BgUJytuV-Bsa_Vd6D.js → TopExDetailPage-Ch-SwhrE-C3B3fW9M.js} +1 -1
- package/dist/assets/{TransactionDetailPage-C8yIuCvF-B6_GYtAj.js → TransactionDetailPage-4ehnnMwj-CxGtpuw5.js} +1 -1
- package/dist/assets/{TransactionList-DG-KZUjZ-CuJBXO4t.js → TransactionList-Bds8YVxl-eo-qwfAU.js} +1 -1
- package/dist/assets/{TransactionListBig-iGiOjwVK-D2c6mnYz.js → TransactionListBig-YrccrGWK-DQRVfhmg.js} +1 -1
- package/dist/assets/{TransactionListPage-C9Z_z4mC-IehdBGn-.js → TransactionListPage-EBZJJ3Bb-C5h_p4zd.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-5uo1FPul-CqZDwRJV.js → TransactionVendorDetailPage-DIvXenmH-BygJi1pY.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BKzo-4Wj-SHQa14qt.js → TransferDrawerPage-CK9V-5BR-DZ9c1lfC.js} +20 -20
- package/dist/assets/{TreasuryOverviewPage-C6kTg0L3-CPdQqTRa.js → TreasuryOverviewPage-Dhm7htH5-BUj5D_CB.js} +3 -3
- package/dist/assets/{TreasuryPromoPage-CAS0pdES-B2XViccf.js → TreasuryPromoPage-CiE4S4u6-qiSczFzX.js} +1 -1
- package/dist/assets/{TreasurySetupPage-CcLiQWOT-COavxyNk.js → TreasurySetupPage-WygAmXcw-WQiA9bVD.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-Dm-3SPtA-DswTDr0G.js → TreasuryStatementsPage-zycSYzUL-CE8VEsG8.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-0RsINpqA-BqimRkRt.js → TreasuryTaxLetterPage-l_CSMKSV-CFFwa7b-.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-C_4CQVIe-BB3eLDB4.js → TreasuryTransferOrReviewPage-CkHJE0PT-CVfr6xd-.js} +7 -7
- package/dist/assets/{TrendChart-CkPRxjLa-rT4Fx4jx.js → TrendChart-Buu-BMJt-1SixfBeO.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DJYMqIOI-C71ViENi.js → TrendWithTransactions-C6sLZFPh-CJcdwvxU.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-BapLceo--ClXmsPLA.js → UncategorizedAccountsMappingPage-Ct1KSgHe-BkPn1VDr.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-C9zNzH3B-CzAMSb0g.js → UnitIntegrationPage-DeG7GwFV-BTOJ5_nM.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BNaV6i2S-BTRoYpWx.js → UploadAdditionalDocumentOverlay-BBEBrd1k-C8YmGx6j.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-_Cn9FJ7D-DkBu3XqN.js → Vendor2FAPopup-B2qGbIlK-CbqUscDE.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-B1vHY6rG-CRWSfKnu.js → VendorACHDetailsPage-CIb3Lffi-IjDSrk-_.js} +1 -1
- package/dist/assets/{VendorDetailPage-Dkl7AlIZ-BvHdeerK.js → VendorDetailPage-DrZlWYNf-CitGu9Ha.js} +7 -7
- package/dist/assets/{VendorDomesticWireDetailsPage-Co8Uc_OS-BmnLexzN.js → VendorDomesticWireDetailsPage-BGfsxhx5-BBlyKElB.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-M0gQJLkE-Bf3W7Lh5.js → VendorFiling1099EditablePage-DpYIPFDo-Cny4xMig.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-Bte87pqn-03KnLKUj.js → VendorFirstReviewPage-JJMuxJAj-CEkUZQNo.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DdfkKEFx-BTKk0Hux.js → VendorInternationalWireDetailsPage-B7IVMovj-B5VUl76d.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CtQifsRT-CTsn85No.js → VendorInternationalWireSwiftDetailsPage-C7y7HA0_-iAtQaOvZ.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-CxyObm3T-BVYChzQx.js → VendorsAccountsSection-CKizD1gN-BJJ_j-nc.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-D5nPLGJh-CIkog_Md.js → WarningsDrawerPage-REjc7j42-TgqIuesy.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CKS9mcn3-Cjdhp9IX.js → ZeniAccountDetailPage-BYQt_cqt-B9TUZXOz.js} +3 -3
- package/dist/assets/{ZeniAccountListViewPage-CORl7azj-Cd-ZJFdh.js → ZeniAccountListViewPage-DPLQmd2c-BJzMmpCX.js} +7 -7
- package/dist/assets/{ZeniAccountNavBarPieces-88z7CFPI-BfmK5qgt.js → ZeniAccountNavBarPieces-CB_hOCVm-Dgt-KBoE.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-Car62P8Q-CUkUqbSZ.js → ZeniAccountPromoPage-DjbDqqNB-DbFXyEm9.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-B5uOzSDL-C788uiEV.js → ZeniAccountSetupPage-BKgmStQ8-DvOkzvTm.js} +1 -1
- package/dist/assets/{ZeniCopyright-BcMyDAdQ-DFA6qmc2.js → ZeniCopyright-gnzM8wV--B3wiitHw.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Css3_ojA-m4ib9kly.js → ZeniTransferAmountSlider-D5uBFeau-CCzhbeOi.js} +1 -1
- package/dist/assets/{analyticsHelper-X-GRY9hH-BvOopcRl.js → analyticsHelper-Cdzg4Zjw-BD3QBCs9.js} +1 -1
- package/dist/assets/{analyticsHelper-Mvl-blWA.js → analyticsHelper-g-8qlEdt.js} +1 -1
- package/dist/assets/{chartTypes-C5XZr0AA-D9SG3OGZ.js → chartTypes-BTdgphvt-COUgSR4v.js} +1 -1
- package/dist/assets/{commonDimensions-DBedC6J7-DP0Wahv_.js → commonDimensions-Ctzi29iY-mgtHXo4p.js} +1 -1
- package/dist/assets/{detailCommon-CIjWXBC2-D71_miWl.js → detailCommon-SwpJm2mb--HDCa1ev.js} +3 -3
- package/dist/assets/{downloadPdf-B21yi0DO-DRHbr36D.js → downloadPdf-YcATpN2g-D3XIUalG.js} +1 -1
- package/dist/assets/{index-CGBUJKSm.js → index-QTXYT_IZ.js} +6 -6
- package/dist/assets/mapLoadingInProgressToTreeNode-C8MSAhen-AfMjxweq.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-XPbCtxen-B2Oh8oRB.js → mapSectionWithAcOnlyToTreeNode-C0LfGztS-DTztJDdH.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-BBfTCdRQ-bgZlN15f.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-ClOTGsb4-B5ylNJVM.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DcljRs6K-orb0-qTl.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BL3c3wFj-BCJhDRyN.js +1 -0
- package/dist/assets/{play-icon-D7s0M2vV-3hPond_q.js → play-icon-DaxUpyZT-ss_3TDIT.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CWk-QcRU-CC-X8z50.js → toCOABalancesWithID-Vfz3d1qt-Dmwd2xoZ.js} +1 -1
- package/dist/assets/{toChartData-BMMsnVqz-BwZCb2RK.js → toChartData-CiTmOVzN-DBayRNk7.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CDRG_Dxk-BRW5d1-O.js → treasuryColorHelper-BbkDcDKI-pPmAbCLc.js} +1 -1
- package/dist/assets/{uploadAttachment-5FffgOcW-C6eynsbj.js → uploadAttachment-BLQvpBKI-CHSynwi0.js} +1 -1
- package/dist/assets/{uploadReceipts-Buvz7DfG-D7vEqZns.js → uploadReceipts-Buvz7DfG-D7H47NIP.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/CheckDepositDrawerPage-DOyXGzFg-FFdsEDTs.js +0 -206
- package/dist/assets/CollapsableReportTable-FShSCFEn-BL6XmmKf.js +0 -2860
- package/dist/assets/CustomerOnboardingContainerPage-Dln-_Yb0-DsL81Hx1.js +0 -1
- package/dist/assets/DashboardReportPage-Cuiynx8W-CPlRExnA.js +0 -349
- package/dist/assets/PortfolioAllocationFormPage-DAFisXnQ-DGwA3tha.js +0 -207
- package/dist/assets/PortfolioDetails-BBOVIetI-lceZN-Gt.js +0 -218
- package/dist/assets/ReportTableViewSelector-BVUqQ9hl-wtnAxUVW.js +0 -150
- package/dist/assets/ReportsPage-CdiHHtXH-NQUf3nnZ.js +0 -120
- package/dist/assets/mapLoadingInProgressToTreeNode-CPDYMovk-Dx35_lJM.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CJ13HyFX-Byq8Z4W-.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-D8UCPznF-CVfbdB0r.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as h,j as r,W as a,Y as m,ah as j,M as w,a4 as l,
|
|
1
|
+
import{u as h,j as r,W as a,Y as m,ah as j,M as w,a4 as l,aZ as x,w as g,o as c,ai as C}from"./index-QTXYT_IZ.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function M({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(C,{children:({height:i,width:n})=>r.jsx(f,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import{u as Q,X as ie,aV as me,a as fe,j as o,m as ge,M as X,bD as ee,F as xe,C as P,a3 as be,o as n,bE as ye,bF as we,bG as _e,bH as $e,bI as ve,f as ce,bJ as Ce,n as p,w as ke,H as K,aZ as je,a7 as Se,q as Ne,b1 as Ie}from"./index-QTXYT_IZ.js";import{b as f,f as de,n as d}from"./vendor-CnQcJ2Lu.js";import{W as F,R as Pe}from"./CollapsableReportTable-CKu2AawV-BR9Jh8-F.js";const z=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Fe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Oe=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function De(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Fe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Oe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Ee=d.div`
|
|
2
|
+
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
|
+
background: ${e=>e.theme.colors.grey5};
|
|
5
|
+
border-radius: ${n.sp1};
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-items: center;
|
|
9
|
+
position: relative;
|
|
10
|
+
height: ${n.sp8};
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
`,Be=d(Ne)`
|
|
13
|
+
color: ${e=>e.theme.colors.primary};
|
|
14
|
+
margin-top: -2px;
|
|
15
|
+
`,Le=d(Ie)`
|
|
16
|
+
color: ${e=>e.theme.colors.hero};
|
|
17
|
+
width: 12px;
|
|
18
|
+
height: 12px;
|
|
19
|
+
margin: auto ${n.sp0};
|
|
20
|
+
:hover {
|
|
21
|
+
color: ${e=>e.theme.colors.primary};
|
|
22
|
+
}
|
|
23
|
+
`,Ae=e=>{const{value:c,onClick:a}=e,t=Q();return o.jsxs(Ee,{onClick:a,children:[o.jsx(Be,{style:{color:t.colors.primary},children:c}),o.jsx(Le,{})]})},Te=de.memo(Ae);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=F("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const a=e.map((t,r)=>{const h=F("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(O=>he({nestedClass:O,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function Re(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new P(p[3],p[3],p[2]),contentPaddingRight:new P(p[3],p[3],p[2])},ze=d.div`
|
|
24
|
+
height: ${e=>e.height}px;
|
|
25
|
+
width: 100%;
|
|
26
|
+
`,He=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:D})=>{const H=Q(),Y=ie(),[$,j]=f.useState(void 0),[T,w]=f.useState(!1),[M,E]=f.useState({}),[g,W]=f.useState(void 0),[B,v]=f.useState(r),G="none",L=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,S=(i,l)=>{w(!0),E(i),D?.(i,l,r==="account_group"?!0:void 0),_(i,l)},_=(i,l)=>{const m=V(i);for(const C of m.children)D?.(C.classId,l),_(C.classId,l)},V=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(C=>C.classId[0]===i[m])[0];return l},q=i=>{if(i.length>1){const l=V(i.slice(1));let m=!1;for(const C of l.children)if(t.find(s=>s[0]===C.classId[0])===void 0){m=!0;break}m===!0?D?.(l.classId,!0):D?.(l.classId,!1),E(l.classId)}};f.useEffect(()=>{T&&q(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:G,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:L,showClassAccountNumber:h};if($==null||!K(g,a)||!K(B,r)||T===!0){const l=We(a,i);W(a),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[a,r,t]);const[Z,J]=f.useState(5),A=i=>{const l=i+p[6];J(l)};return $!=null?o.jsx(ze,{height:Z,children:o.jsx(Pe,{backgroundColor:r==="classes"?new Se(H.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(Y),right:oe.contentPaddingRight.value(Y)},scrollPosition:b,onScroll:y,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:S,onReportTableHeightChanged:A})}):null},k={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(p[5],p[5]),containerWidth:new P(150,400,400)},Ye=d.div`
|
|
27
|
+
position: relative;
|
|
28
|
+
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
|
+
`,Ge=d.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
width: ${e=>k.containerWidth.valuePx(e.windowSize)};
|
|
33
|
+
`,Ve=d($e)`
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
width: fit-content;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
color: ${e=>e.theme.colors.primary};
|
|
39
|
+
.dropdownIcon {
|
|
40
|
+
color: ${e=>e.theme.colors.hero};
|
|
41
|
+
}
|
|
42
|
+
&:hover {
|
|
43
|
+
.dropdownIcon {
|
|
44
|
+
color: ${e=>e.theme.colors.primary};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
gap: ${n.sp2};
|
|
48
|
+
margin-top: 12px;
|
|
49
|
+
align-items: center;
|
|
50
|
+
`,qe=d(ve)`
|
|
51
|
+
color: ${e=>e.theme.colors.hero};
|
|
52
|
+
width: ${n.sp4};
|
|
53
|
+
height: ${n.sp4};
|
|
54
|
+
&:hover {
|
|
55
|
+
color: ${e=>e.theme.colors.primary};
|
|
56
|
+
}
|
|
57
|
+
`,Ze=d.div`
|
|
58
|
+
display: flex;
|
|
59
|
+
width: ${e=>e.width}px;
|
|
60
|
+
align-items: flex-start;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
border: 1px solid ${e=>e.theme.colors.grey5};
|
|
64
|
+
border-radius: ${n.sp1};
|
|
65
|
+
box-shadow: ${e=>`${n.sp0} 2px ${n.sp2} ${e.theme.colors.dropShadowHover}`};
|
|
66
|
+
margin-top: 10px;
|
|
67
|
+
padding-top: ${n.sp1};
|
|
68
|
+
background: ${e=>e.theme.colors.grey5};
|
|
69
|
+
`,te=d.div`
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: flex-start;
|
|
72
|
+
justify-content: space-between;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
width: 100%;
|
|
75
|
+
background-color: ${e=>e.checked===!0?e.theme.colors.background:"transparent"};
|
|
76
|
+
& input[type="radio"] {
|
|
77
|
+
-webkit-appearance: none;
|
|
78
|
+
-moz-appearance: none;
|
|
79
|
+
appearance: none;
|
|
80
|
+
display: inline-block;
|
|
81
|
+
width: ${n.sp3};
|
|
82
|
+
height: ${n.sp3};
|
|
83
|
+
padding: 2px;
|
|
84
|
+
background-clip: content-box;
|
|
85
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
margin: ${n.sp0} ${n.sp2} ${n.sp0} ${n.sp2};
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
input[type="radio"]:checked {
|
|
92
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
input[type="radio"]:disabled {
|
|
96
|
+
cursor: default;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:hover {
|
|
100
|
+
background: ${e=>e.theme.colors.background};
|
|
101
|
+
}
|
|
102
|
+
`,se=d(ke)`
|
|
103
|
+
height: ${n.sp6};
|
|
104
|
+
display: flex;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
align-items: center;
|
|
107
|
+
`,Ue=d.div`
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-wrap: wrap;
|
|
110
|
+
justify-content: flex-start;
|
|
111
|
+
height: 100%;
|
|
112
|
+
width: inherit;
|
|
113
|
+
overflow-y: auto;
|
|
114
|
+
.hide-icon {
|
|
115
|
+
display: none;
|
|
116
|
+
}
|
|
117
|
+
min-height: 165px;
|
|
118
|
+
max-height: 353px;
|
|
119
|
+
overscroll-behavior: contain;
|
|
120
|
+
`,Je=d.div`
|
|
121
|
+
width: 100%;
|
|
122
|
+
height: 65px;
|
|
123
|
+
`,ae=d.label`
|
|
124
|
+
color: ${e=>e.theme.colors.primary};
|
|
125
|
+
cursor: ${e=>e.disabled===!0?"default":"pointer"};
|
|
126
|
+
`,Ke=d(ce)`
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
column-gap: ${n.sp2};
|
|
130
|
+
margin-left: ${n.sp5};
|
|
131
|
+
color: ${e=>e.theme.colors.hero};
|
|
132
|
+
&:hover {
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
color: ${e=>e.theme.colors.primary};
|
|
135
|
+
}
|
|
136
|
+
`,Qe=d.div`
|
|
137
|
+
display: flex;
|
|
138
|
+
flex: 1;
|
|
139
|
+
width: inherit;
|
|
140
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
141
|
+
min-height: 1px;
|
|
142
|
+
max-height: 1px;
|
|
143
|
+
`,Xe=d(Ce)`
|
|
144
|
+
width: ${n.sp3};
|
|
145
|
+
height: ${n.sp3};
|
|
146
|
+
`,eo=d(ce)`
|
|
147
|
+
margin-left: ${n.sp5};
|
|
148
|
+
margin-top: -12px;
|
|
149
|
+
color: ${e=>e.theme.colors.hero};
|
|
150
|
+
`,{reportViewSelector:I,common:{footer:ne}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:O,isClassViewDisabled:U,downloadPage:D,showAccountGroups:H=!0,onResyncReports:Y,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=Q(),w=ie(),[M,E]=f.useState(!1),[g,W]=f.useState(r),[B,v]=f.useState({}),G=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=G(x.children,u)}),u),L=G(a,[]),[S,_]=f.useState(g==="classes"?h:L),V=t!=="Completed"||g==="classes"&&S.length===L.length;me({componentName:`reports.${e}`});const q=s=>s==="classes"?I.classes.label:H===!0?I.accountGroups.label:I.accounts.label,Z=fe({mode:"all"}),J=Z.handleSubmit(()=>{E(!1),g==="classes"?O?.("classes",S):O?.("account_group")}),A=s=>{if(W(s),s==="classes")v({}),_([]);else{_(L);let u={};a.forEach(x=>{const N=F("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[N]:!1})}),v(u)}},i=()=>{M===!0&&m(),E(!M);let s={};a.forEach(u=>{const x=F("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||S.find(N=>N[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),_(L)),u===!0){const N=F("checkbox_and_name_only",[],s[0]);B[N]=!0,v(B),_(R=>R.filter(pe=>pe[0]!==s[0]))}else{const N=F("checkbox_and_name_only",[],s[0]);B[N]=!1,S.find(R=>R[0]===s[0])===void 0&&_(R=>[...R,s])}},m=()=>{E(!1),W(r),_(h)},C=()=>{$===!1&&Y?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=F("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(Ye,{isDisabled:U??!1,children:[D===!0?o.jsx(Te,{value:q(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ge,{windowSize:w,children:[o.jsxs(Ve,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(qe,{className:"dropdownIcon"}),q(r)]}),r==="classes"?o.jsx(Ke,{onClick:C,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Xe,{})]})}):null]}),M?o.jsx(xe,{...Z,children:o.jsx("form",{id:le(re),onSubmit:J,children:o.jsxs(Ze,{width:k.width.value(w),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?A("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>A(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:H===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Qe,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?A("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?A(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$===!1&&j?o.jsx(eo,{children:ee(j)}):null,t==="Completed"?o.jsx(Ue,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:S,selectedView:g,nodeOpenStatus:B,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:T.colors.grey3,foregroundColor:T.colors.grey4,width:k.width.value(w),height:k.height.value(w),animated:!0})]}),o.jsx(Je,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:V,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(He,K);export{no as c,ro as h};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import{X as U,u as G,M as y,t as he,l as _,j as r,Y as k,bf as fe,aY as me,aW as ge,C as v,o as C,a5 as _e,d as be,bg as Se,n as w,D as B,H as K,bh as we,a7 as Ce,aB as ye,a$ as xe}from"./index-QTXYT_IZ.js";import{b as P,f as Q,n as b}from"./vendor-CnQcJ2Lu.js";import{m as z,l as Z}from"./analyticsHelper-Cdzg4Zjw-BD3QBCs9.js";import{h as Oe}from"./ReportTableViewSelector-CjZe9dc3-B94C9OUt.js";import{a as X,p as Re}from"./TimeRangeSwitcher-DIszv8B4-D-1vIZUO.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-DqvG5zv2-DqYusAPI.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-RhRX-Goq-0pJzo8tq.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-CKu2AawV-BR9Jh8-F.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-C0LfGztS-DTztJDdH.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-ClOTGsb4-B5ylNJVM.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BL3c3wFj-BCJhDRyN.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-C8MSAhen-AfMjxweq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-C8tn7HgF-Db6tSjO9.js";import"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./AccountRow-BUDNnxLp-lnjPiXai.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Te({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Le({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
2
|
+
height: ${e=>e.height}px;
|
|
3
|
+
width: 99.9%;
|
|
4
|
+
margin-top: ${C.sp2};
|
|
5
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
6
|
+
`;function De({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=U(),s=G(),[c,x]=P.useState(void 0),[O,E]=P.useState(void 0),L=!(h==="small"||h==="medium-compact"),V="name+balances_actual",$=u===!0?"this_period_vs_period_before":"none",R=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>_.toTimeframeTick(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,pe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,H=D??pe;H?.additionalBalances!=null&&(m=H.additionalBalances.map(ue=>_.toTimeframeTick(ue)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>_.toTimeframeTick(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>_.toTimeframeTick(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};P.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:$,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:xe(),showClassAccountNumber:n};if(c==null||!K(O,e)||g===!0){const f=ze(e,m,L,g);E(e),x(f)}else{const f=Ne(c,m,e,L);x(f)}},[u,e,g]);const[A,N]=P.useState(5),M=m=>{const f=m+135;N(f)},de=m=>m?.trackPageLoaded(We(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(we,{analytics:a,onLoad:de}),r.jsx(Ve,{height:A,children:r.jsx(ve,{backgroundColor:new Ce(s.colors.grey4),rootNodes:c,type:V,compareMode:R(),isSticky:{isStickyHeader:L,isStickyName:L},treeNodePadding:{left:q.contentPaddingLeft.value(h),right:q.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:M,onScroll:m=>l?.(e.reportId,m)})})]}):null}const ze=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return Ee(e,t,o);case"profit_and_loss_by_classes":return je(e,t,o,a);case"cash_flow":return $e(e,t,o);case"balance_sheet":return Me(e,t,o);default:return}},We=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},Ue=b.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
10
|
+
justify-content: center;
|
|
11
|
+
width: 100%;
|
|
12
|
+
align-items: center;
|
|
13
|
+
`,Ge=b.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
position: relative;
|
|
16
|
+
`,Ye=b(ye)`
|
|
17
|
+
padding: 12px;
|
|
18
|
+
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
|
|
19
|
+
cursor: ${e=>e.isSelected?"default":"pointer"};
|
|
20
|
+
margin: ${e=>e.spaceAround?`0 ${C.sp4}`:0};
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
&:hover {
|
|
25
|
+
color: ${e=>e.theme.colors.primary};
|
|
26
|
+
}
|
|
27
|
+
`,He=b.div`
|
|
28
|
+
height: 2px;
|
|
29
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
30
|
+
border-radius: 1px;
|
|
31
|
+
position: absolute;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
transition: left 0.35s;
|
|
35
|
+
&.profit_and_loss {
|
|
36
|
+
width: 106px;
|
|
37
|
+
left: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.profit_and_loss_by_classes {
|
|
41
|
+
width: 106px;
|
|
42
|
+
left: 0;
|
|
43
|
+
}
|
|
44
|
+
&.balance_sheet {
|
|
45
|
+
width: 114px;
|
|
46
|
+
left: 30%;
|
|
47
|
+
}
|
|
48
|
+
&.cash_flow {
|
|
49
|
+
width: 160px;
|
|
50
|
+
left: 63%;
|
|
51
|
+
}
|
|
52
|
+
`;function Ze({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(Ye,{"data-testid":k("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function qe({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(Ue,{"data-testid":k("report-switcher-container"),children:r.jsx(Ge,{"data-testid":k("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(Ze,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(He,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const I={contentContainerLeftRightMargin:new v(w[3],w[3],w[8]),contentRightPadding:new v(w[3],w[3],w[8]),tickSkelectionContainerWidth:new v(343,600,905,1240)},Je=new v(4,4),Ke=new v(4,4),Qe={selectedNumberOfPeriods:(e,t)=>e?Ke.value(t):Je.value(t)},Xe=b.div`
|
|
53
|
+
display: flex;
|
|
54
|
+
flex: 1 1 auto;
|
|
55
|
+
min-height: 100%;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
58
|
+
`,et=b.div`
|
|
59
|
+
display: flex;
|
|
60
|
+
flex: 1 1 auto;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
height: calc(100vh - ${C.sp10});
|
|
63
|
+
margin: ${e=>`${C.sp2} ${C.sp0} ${C.sp0} ${I.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
|
|
64
|
+
`,tt=b.div`
|
|
65
|
+
display: flex;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
flex-direction: row;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
align-items: center;
|
|
71
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
72
|
+
`,st=b.div`
|
|
73
|
+
position: absolute;
|
|
74
|
+
margin-top: ${e=>e.windowSize==="small"?"230px":"195px"};
|
|
75
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
76
|
+
`,nt=b.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: calc(100% - 60px);
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
align-items: center;
|
|
83
|
+
`,ot=b.div`
|
|
84
|
+
height: 96px;
|
|
85
|
+
width: 96px;
|
|
86
|
+
background: ${e=>e.theme.colors.background};
|
|
87
|
+
border-radius: 50%;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
& svg {
|
|
90
|
+
margin: ${C.sp5};
|
|
91
|
+
color: ${e=>e.theme.colors.grey1};
|
|
92
|
+
}
|
|
93
|
+
&:hover {
|
|
94
|
+
& svg {
|
|
95
|
+
color: ${e=>e.theme.colors.primary};
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`,at=b(_e)`
|
|
99
|
+
margin-top: ${C.sp3};
|
|
100
|
+
color: ${e=>e.theme.colors.hero};
|
|
101
|
+
`,re=({style:e,isLoading:t})=>t?r.jsx(tt,{style:e,children:r.jsx(be,{size:"ExtraLarge",start:!0})}):null,S=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},W=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=Qe.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function jt(e){const t=U(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(R,A)=>{R!==h?.accountViewMode&&a?.(R),A&&n?.(A)};P.useEffect(()=>{if(e.fetchState==="Completed"){const R=S(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(R,e.isCompareMode,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=rt(e),s=y.getLocalizedStrings().reports.common,c=he(),x=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?"detailed":"more_detailed",O=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&O.push("detailed");const[E,L]=Q.useState(O.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:E,disabledFormatForRole:O,roleBasedClassesSelectedFormat:x,setSelectedFormat:L};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(nt,{"data-testid":k("report-page-error-reload-page"),children:[r.jsx(ot,{"data-testid":k("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(fe,{})}),r.jsx(at,{children:s.failed})]});const $=e.fetchState;if(i.fetchState!=="Completed"&&($==="In-Progress"||$==="Not-Started"))return r.jsx(re,{isLoading:!0});{const R=r.jsx(me,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Be,{defaultOptions:h,analytics:e.analytics,referrer:T(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(A,N,M)=>{d(l,A,N,M)},onTimeframeSelectionChanged:(A,N,M)=>{p?.(A,N,M)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(Xe,{children:[r.jsx(ge,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:R,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(it,{...e})]})}}function it(e){const t=U(),o=G(),a=P.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",T(e.selectedReport),z(e.selectedTimeframe),c);const x=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...S(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(O=>O!=="this_period_vs_last_period"):[...S(e).filter.additionalBalances,"this_period_vs_last_period"].filter(O=>O!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,x,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=S(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=_.reduceAllFetchState([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(et,{windowSize:t,"data-testid":k("reports-page-content-container"),children:[r.jsx(pt,{windowSize:t,ref:a,children:r.jsx(Ae,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),T(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,T(e.selectedReport),z(e.selectedTimeframe));const c=S(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(ht,{windowSize:t,children:r.jsx(ft,{children:r.jsx(Se,{width:u,height:X-w[2],backgroundColor:o.colors.grey3,style:{borderRadius:C.sp2}})})}):r.jsx(ut,{windowSize:t,children:r.jsx(Re,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(T(e.selectedReport),"range filter",e.isCompareMode,Z(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=ct(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(T(e.selectedReport),"range filter",e.isCompareMode,Z(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(mt,{windowSize:t,children:r.jsx(qe,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(lt(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(re,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(le,{report:S(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),_.isPAndLReport(e.selectedReport)?r.jsx(st,{windowSize:t,children:r.jsx(Oe,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},ct=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function rt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=S(e).firstMonthOfFY,a=S(e).bookCloseDate,n=S(e).dataAvailable,d=S(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const T=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},lt=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},le=Q.memo(De,(e,t)=>dt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));le.displayName="Reports table";const dt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),pt=b.div`
|
|
102
|
+
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
103
|
+
`,ut=b.div`
|
|
104
|
+
margin-top: ${C.sp3};
|
|
105
|
+
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
106
|
+
`,ht=b.div`
|
|
107
|
+
margin-top: ${C.sp3};
|
|
108
|
+
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
109
|
+
`,ft=b.div`
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: row;
|
|
112
|
+
justify-content: flex-start;
|
|
113
|
+
min-height: ${X}px;
|
|
114
|
+
box-sizing: content-box;
|
|
115
|
+
width: 100%;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
`,mt=b.div`
|
|
119
|
+
margin-top: ${C.sp4};
|
|
120
|
+
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
121
|
+
`;export{jt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as A,j as a,M as S,X as de,Y as Ae,ai as Q,
|
|
1
|
+
import{u as A,j as a,M as S,X as de,Y as Ae,ai as Q,b6 as Te,n as E,b7 as J,au as ee,v as M,at as ae,aa as re,b8 as oe,b9 as ge,o as m,ba as te,g,H as Fe,bb as pe,bc as me,C as xe,bd as fe,q as R,be as F,ao as V}from"./index-QTXYT_IZ.js";import{b as P,f as le,n as x}from"./vendor-CnQcJ2Lu.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-BTdgphvt-COUgSR4v.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-Vfz3d1qt-Dmwd2xoZ.js";import{V as Z}from"./toChartData-CiTmOVzN-DBayRNk7.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as vt,t as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It,cF as le,cG as At,l as d,cH as Pt,cI as kt,Y as j,cJ as Mt,_ as k,cK as Bt,cL as Nt,cM as ke,cN as Me,cO as Be,v as G,cP as O,cQ as z,cR as _,g as S,cS as Rt,cT as Ft,cU as Et,cV as Lt,bs as Ne,o as n,a3 as Ot,n as c,b as zt,bo as _t,Q as Wt,h as Ut,cW as Zt,bG as Ht,q as se,f as de,cX as Yt,cY as Vt,aA as Gt,k as qt,an as Kt,Z as Xe,b4 as Xt,w as Qe,aN as Qt,cZ as Jt}from"./index-CGBUJKSm.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-C7oCDqcx-DEQSXlzt.js";import{S as W}from"./LabeledText-gvxUV2ku-DUsv1Tg3.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Re,common:{currency:T,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=vt(),m=Tt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Re.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const v=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:A?.code=="approved"&&Z?.code?Z:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&Z?.code?Z:A,ne=()=>{ce()},be=()=>{ce()},H=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Y=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",v?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(v?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(v?.code!=null?v.code==="draft"||A?.code==="approved":!0),b=P&&!it,ve=Oe(b,Y,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===T.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Re.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=v?.code??"draft",Ce=A?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Ae=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Ae,Pe):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Ae,Pe)}}},Te=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",v?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:H?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ye,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ye,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(Tn,{children:a.duplicateBillPayWarning}),t.jsxs(vn,{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(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ge,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(qe,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ge,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(qe,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ze,{children:a.pay}),t.jsx(He,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(Ze,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Rt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(q,{}),!g&&H!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:H.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(H.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==T.currencyCode?Ee.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:G.h6Medium.cssObject,decimalStyles:G.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,Y,s)}},primaryBtn:{label:Oe(b,Y,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):Te()},style:{width:ze(!0,P,b,Y,s)}},rightSideComponent:P&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
1
|
+
import{X as vt,t as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It,cF as le,cG as At,l as d,cH as Pt,cI as kt,Y as j,cJ as Mt,_ as k,cK as Bt,cL as Nt,cM as ke,cN as Me,cO as Be,v as q,cP as O,cQ as z,cR as _,g as S,cS as Rt,cT as Ft,cU as Et,cV as Lt,bt as Ne,o as n,a3 as Ot,n as c,b as zt,bp as _t,Q as Wt,h as Ut,cW as Ht,bH as Zt,q as se,f as de,cX as Yt,cY as Vt,aA as qt,k as Gt,an as Kt,Z as Xe,b5 as Xt,w as Qe,aN as Qt,cZ as Jt}from"./index-QTXYT_IZ.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-C_c9t4ho-r8GHfwbA.js";import{S as W}from"./LabeledText-BW7VKf6E-PGkPpMVO.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Re,common:{currency:T,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=vt(),m=Tt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Re.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const v=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:A?.code=="approved"&&H?.code?H:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&H?.code?H:A,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Y=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",v?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(v?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(v?.code!=null?v.code==="draft"||A?.code==="approved":!0),b=P&&!it,ve=Oe(b,Y,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===T.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Re.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=v?.code??"draft",Ce=A?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Ae=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Ae,Pe):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Ae,Pe)}}},Te=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",v?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ye,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ye,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(Tn,{children:a.duplicateBillPayWarning}),t.jsxs(vn,{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(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ge,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Rt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(G,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==T.currencyCode?Ee.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,Y,s)}},primaryBtn:{label:Oe(b,Y,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):Te()},style:{width:ze(!0,P,b,Y,s)}},rightSideComponent:P&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -68,7 +68,7 @@ import{X as vt,t as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
68
68
|
border-radius: ${n.sp2};
|
|
69
69
|
margin-bottom: ${n.sp3};
|
|
70
70
|
margin-top: ${n.sp3};
|
|
71
|
-
`,
|
|
71
|
+
`,G=i.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
flex: 1;
|
|
74
74
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -102,7 +102,7 @@ import{X as vt,t as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
102
102
|
`,vn=i(se)`
|
|
103
103
|
padding-bottom: ${n.sp3};
|
|
104
104
|
color: ${S.brandColorGoldDark};
|
|
105
|
-
`,Tn=i(
|
|
105
|
+
`,Tn=i(Zt)`
|
|
106
106
|
padding-top: ${n.sp3};
|
|
107
107
|
color: ${S.brandColorGoldDark};
|
|
108
108
|
`,Ue=i.div`
|
|
@@ -121,11 +121,11 @@ import{X as vt,t as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
121
121
|
`,Cn=i.div`
|
|
122
122
|
display: flex;
|
|
123
123
|
padding-top: ${n.sp3};
|
|
124
|
-
`,
|
|
124
|
+
`,He=i(Gt)`
|
|
125
125
|
display: flex;
|
|
126
126
|
color: ${e=>e.theme.colors.hero};
|
|
127
127
|
margin-right: ${n.sp1};
|
|
128
|
-
`,
|
|
128
|
+
`,Ze=i(Kt)`
|
|
129
129
|
display: flex;
|
|
130
130
|
color: ${e=>e.theme.colors.primary};
|
|
131
131
|
margin-right: ${n.sp1};
|
|
@@ -198,7 +198,7 @@ import{X as vt,t as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
198
198
|
display: flex;
|
|
199
199
|
align-items: center;
|
|
200
200
|
margin-right: ${n.sp1};
|
|
201
|
-
`,
|
|
201
|
+
`,qe=i(qt)`
|
|
202
202
|
cursor: pointer;
|
|
203
203
|
width: ${n.sp4};
|
|
204
204
|
height: ${n.sp4};
|
|
@@ -209,7 +209,7 @@ import{X as vt,t as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
209
209
|
align-items: center;
|
|
210
210
|
min-width: 142px;
|
|
211
211
|
flex-grow: 1;
|
|
212
|
-
`,
|
|
212
|
+
`,Ge=i(se)`
|
|
213
213
|
display: flex;
|
|
214
214
|
color: ${e=>e.theme.colors.primary};
|
|
215
215
|
align-items: center;
|
|
@@ -260,7 +260,7 @@ import{X as vt,t as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
260
260
|
`,On=i(de)`
|
|
261
261
|
margin-top: ${n.sp3};
|
|
262
262
|
color: ${S.alert};
|
|
263
|
-
`,zn=i(
|
|
263
|
+
`,zn=i(Ht)`
|
|
264
264
|
min-width: ${n.sp4};
|
|
265
265
|
height: ${n.sp4};
|
|
266
266
|
width: ${n.sp4};
|
package/dist/assets/{ReviewOverlay-Bora7h_H-Dbg4Ccge.js → ReviewOverlay-DvYSZ8u9-D1sec7oa.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as B,j as e,Y as x,o as r,a3 as L,C as d,a2 as M,Q as C,h as W,g as s,q as y,b$ as R,d as I,w as j,az as D,n,ed as G,ax as A,jj as F,jk as H}from"./index-
|
|
1
|
+
import{X as B,j as e,Y as x,o as r,a3 as L,C as d,a2 as M,Q as C,h as W,g as s,q as y,b$ as R,d as I,w as j,az as D,n,ed as G,ax as A,jj as F,jk as H}from"./index-QTXYT_IZ.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const a={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])},J={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return e.jsxs(X,{children:[e.jsx(V,{windowSize:l,children:e.jsx(Z,{children:e.jsx(_,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(q,{windowSize:l,children:[e.jsxs(K,{windowSize:l,children:[e.jsx(O,{children:e.jsx(Y,{windowSize:l,children:i})}),e.jsx(N,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(U,{windowSize:l,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>P(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:Q(o)}),e.jsxs(oi,{children:[e.jsxs(m,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(m,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},Q=i=>i.reviewStatus.isLoading?e.jsx(I,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(li,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(ai,{}),X=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-k62RaqAZ-CqsyYYHM.js → RoleWithToolTip-DoD_vW-E-xeMdlQFI.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eI as h,eJ as x,j as t,
|
|
1
|
+
import{eI as h,eJ as x,j as t,bt as m,o as n,Y as o,M as g,r as j,w as p}from"./index-QTXYT_IZ.js";import{n as s}from"./vendor-CnQcJ2Lu.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a1 as K,l as me,hK as ee,g3 as fe,es as we,hL as Je,a as Me,hM as Ve,c3 as _e,c4 as Fe,j as a,M as be,F as Pe,bO as $e,bQ as Ne,bR as qe,a3 as Re,hN as Be,hO as ze,T as he,hP as Se,hQ as Ue,cg as We,X as He,i2 as Ke,g8 as re,n as R,g as De,C as Ce,c6 as Ge,hR as Xe,hS as Qe,hT as Ye,o as _}from"./index-
|
|
1
|
+
import{a1 as K,l as me,hK as ee,g3 as fe,es as we,hL as Je,a as Me,hM as Ve,c3 as _e,c4 as Fe,j as a,M as be,F as Pe,bO as $e,bQ as Ne,bR as qe,a3 as Re,hN as Be,hO as ze,T as he,hP as Se,hQ as Ue,cg as We,X as He,i2 as Ke,g8 as re,n as R,g as De,C as Ce,c6 as Ge,hR as Xe,hS as Qe,hT as Ye,o as _}from"./index-QTXYT_IZ.js";import{b as m,n as z}from"./vendor-CnQcJ2Lu.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CMrsG_y3-ZI5_od4y.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const B={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a1 as _,l as ie,hK as Y,g3 as Ae,es as Ie,hL as Je,a as Le,hM as we,c3 as Me,c4 as Ve,j as a,M as De,F as Pe,bO as Fe,bQ as _e,bR as $e,a3 as Ne,hN as ze,hO as Be,T as re,hP as pe,hQ as Re,cg as Ue,X as qe,g8 as me,n as X,g as We,C as He,hR as Ke,hS as Ge,hT as Qe,o as L}from"./index-
|
|
1
|
+
import{a1 as _,l as ie,hK as Y,g3 as Ae,es as Ie,hL as Je,a as Le,hM as we,c3 as Me,c4 as Ve,j as a,M as De,F as Pe,bO as Fe,bQ as _e,bR as $e,a3 as Ne,hN as ze,hO as Be,T as re,hP as pe,hQ as Re,cg as Ue,X as qe,g8 as me,n as X,g as We,C as He,hR as Ke,hS as Ge,hT as Qe,o as L}from"./index-QTXYT_IZ.js";import{b as D,n as P}from"./vendor-CnQcJ2Lu.js";import{i as Ye,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-CMrsG_y3-ZI5_od4y.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const B={labelWidth:new He(160,160,160)},tt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as T,u as K,j as t,hU as ie,M as R,hV as le,Q as oe,hW as xe,dK as fe,cO as we,v as A,hX as ye,hT as be,o as i,C as b,g as j,k as $e,T as re,dH as je,bO as Se,bR as ke,cg as Z,co as ee,cm as ve,hY as Q,hZ as Ce,ai as De,h_ as Me,bT as ze,h$ as Le,n as h,q as L,an as Oe,bQ as Ee,m as pe,cp as Ae,ag as ne,cA as Te,a3 as Ie,l as q,i0 as I,fH as Fe,_ as Je,i1 as Ve,a7 as G,cq as Be,az as Pe}from"./index-
|
|
1
|
+
import{X as T,u as K,j as t,hU as ie,M as R,hV as le,Q as oe,hW as xe,dK as fe,cO as we,v as A,hX as ye,hT as be,o as i,C as b,g as j,k as $e,T as re,dH as je,bO as Se,bR as ke,cg as Z,co as ee,cm as ve,hY as Q,hZ as Ce,ai as De,h_ as Me,bT as ze,h$ as Le,n as h,q as L,an as Oe,bQ as Ee,m as pe,cp as Ae,ag as ne,cA as Te,a3 as Ie,l as q,i0 as I,fH as Fe,_ as Je,i1 as Ve,a7 as G,cq as Be,az as Pe}from"./index-QTXYT_IZ.js";import{b as D,n as o,j as B}from"./vendor-CnQcJ2Lu.js";const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=D.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=T(),a=K();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(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(Ye,{children:[t.jsx(Ne,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ke,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.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(Te,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Qe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:He(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Ne({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(q.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const He=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,qe=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ut,X as en,l as K,kd as Ye,ke as tt,C as dt,kf as ud,kg as cd,kh as tn,ki as fd,kj as Tt,M as ir,kk as Bt,kl as qt,d as rn,o as kt,km as ld,kn as hd,aC as Ft,aD as Yl,jS as Lt,ko as dd,kp as pd,n as yn,kq as md,kr as Kl,ks as gd,kt as Jl,
|
|
1
|
+
import{u as Ut,X as en,l as K,kd as Ye,ke as tt,C as dt,kf as ud,kg as cd,kh as tn,ki as fd,kj as Tt,M as ir,kk as Bt,kl as qt,d as rn,o as kt,km as ld,kn as hd,aC as Ft,aD as Yl,jS as Lt,ko as dd,kp as pd,n as yn,kq as md,kr as Kl,ks as gd,kt as Jl,bh as Xl,D as zo,ku as vd,kv as yd,kw as _d,kx as Ql,ky as bd,kz as wd,kA as Sd,kB as Ed,kC as Rd,kD as Od,kE as Td,kF as xd,kG as Cd,kH as Ad,kI as Id,kJ as Pd,kK as kd,gj as Ld}from"./index-QTXYT_IZ.js";import{j as X,D as nn,S as Vt}from"./mui-C5LQ0bMa.js";import{b as Se,n as ut,c as Ve,i as eh,g as qd}from"./vendor-CnQcJ2Lu.js";import{f as jd}from"./analyticsHelper-g-8qlEdt.js";import{g as rt,u as Ie,f as Ke}from"./redux-ByjIRbhZ.js";import{a as Je,d as pt,e as Dd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-Cpaypegg.js";import{B as ze,a as Qe,b as Nd,c as Wo,d as $d,e as Yo,f as Ko,g as Md,h as Fd,i as zt,j as th,k as rr,l as an,m as Ud,n as Bd,o as Vd,p as zd,q as Gd,s as Hd,t as Zd,u as rh,v as on,w as ar}from"./crypto-BURQLTgV.js";import{p as Oe}from"./sentry-HDxG13yk.js";import{r as Wd}from"./lodash-Dq_mKlGB.js";import"./analytics-CBL_L82S.js";import"./liveblocks-sSQ9JElv.js";const Yd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Kd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ye.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(K.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ye.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(K.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(K.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(K.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(K.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(K.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Jd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Xd=Ke(Jd,Kd)(fd);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Dd(),[d,l]=Se.useState(!1),c=Ie(w=>K.getCompanyHealthMetricView(w)),f=Ie(w=>K.getCompanyManagementView(w)),{additionalChurnFactors:h}=Ie(w=>K.getCompanyHealthMetricConfig(w)),{selectedCompanyDetail:_,selectedCompanyId:m,localFormDataAndStatusByCompanyId:b}=c,p=Ie(w=>w.companyViewState.zeniUsers.fetchState),u=Ie(w=>w.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const w=v=>v==="Not-Started"||v==="Error";c.fetchState==="Completed"?a(K.fetchAllCockpitViews(!1)):w(c.fetchState)&&(a(K.fetchCompanyHealthMetricView()),w(p)&&a(K.fetchZeniUsers()),w(u.fetchState)&&a(K.fetchCompanyHealthMetricConfig()))},[c.fetchState,u.fetchState]),Se.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(K.initializeCompanyHealthMetricViewLocalData(t)),_!=null&&(Ye.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:_.companyInfo.companyId,companyName:_.companyInfo.name,churnProbability:_.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[c.fetchState,_?.companyInfo.companyId,_?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||m!=null&&_!=null?X.jsx(nn,{anchor:"right",open:m!=null,PaperProps:{style:{width:Yd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(K.removeSelectedCompanyId()),children:X.jsx(ud,{roomId:`cockpit_${m}`,autoConnect:!0,children:X.jsx(cd,{onSaveClick:()=>{m!=null&&a(K.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(K.updateCompanyHealthMetricLocalStore({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:b?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(K.removeSelectedCompanyId()),analytics:Ye,urlSource:d,additionalChurnFactorsOptions:h})})}):null,X.jsx(Xd,{healthView:c,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},Qd=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ep=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function tp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const rp={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??rp.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const np=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ip,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ip=ut.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|