@zeniai/web-cockpit-ui 1.14.52-qa → 1.14.53-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-DDRe8R-F-D7h9irWQ.js → ACHDetailsPage-DDRe8R-F-Bt-bp2i8.js} +1 -1
- package/dist/assets/{AIPerformancePage-DtkKxBdR-B3ncnsMl.js → AIPerformancePage-DtkKxBdR-BRcgeKbl.js} +1 -1
- package/dist/assets/{AccountInfoPage-e2T6oeIx-SMGJi9w6.js → AccountInfoPage-e2T6oeIx-BgYjXTlb.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BjwKeIP_-BKfTuBa9.js → AccountInfoPageContent-BjwKeIP_-DK4Og01f.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-xBjf45Td-Cdqxc8Af.js → AccountLockedInfoModal-xBjf45Td-BEOFFMGS.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-3RKo-yyZ-CKVc5SH6.js → AccountReconDetailsDrawerPage-3RKo-yyZ-Xj-wx_BL.js} +1 -1
- package/dist/assets/{AccountRow-CLodl3sk-rKp4eA6Q.js → AccountRow-CLodl3sk-CusWtpcw.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-HH2BRWDw-H6vNY8I5.js → AccountsPromoCardStack-HH2BRWDw-7hFCLDxa.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-B4tkNRNJ-70MOV6sP.js → AddAddressForCardDrawer-B4tkNRNJ-DR_4UMta.js} +1 -1
- package/dist/assets/{AddToWalletPage-BUmpl49G-2pqco7ko.js → AddToWalletPage-BUmpl49G-DfEtQ7Wd.js} +1 -1
- package/dist/assets/{AgingReportsPage-CPjGBjKQ-DDt3yvEs.js → AgingReportsPage-CPjGBjKQ-DZ_wZ28M.js} +1 -1
- package/dist/assets/{AllUserItems-DcF1ZyN--D9LQ3zfQ.js → AllUserItems-DcF1ZyN--DL8PgCy3.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-i3pTuRJe-Cf9iD8Vv.js → ApAgingDetailPage-i3pTuRJe-CimLmApz.js} +1 -1
- package/dist/assets/{AppBasePage-Dm141-zi-VuCXddfj.js → AppBasePage-Dm141-zi-DTaFlzwu.js} +1 -1
- package/dist/assets/{AppDrawerContent-CT7DYTu8-Dj5NKgvS.js → AppDrawerContent-CT7DYTu8-CH-E5oHE.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-CsKNKVWk-D9Hrle7D.js → ApprovalRulesSettingsPage-CsKNKVWk-BrA4YSz2.js} +1 -1
- package/dist/assets/{ArAgingChart-C3BoCy8V-Byc1COF7.js → ArAgingChart-C3BoCy8V-DM2n4E2v.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-p7Sx3QcX-BLV0nPma.js → ArAgingDetailPage-p7Sx3QcX-ERcPd_Ys.js} +1 -1
- package/dist/assets/{AttachmentView-DZqwc21s-CsWhXHwu.js → AttachmentView-DZqwc21s-CGlA8Ck9.js} +1 -1
- package/dist/assets/{BankAccountSection-Bw2NSgNV-M8H57xLs.js → BankAccountSection-Bw2NSgNV-CQgv2w2R.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-DYc9G8bV-BU4879fO.js → BankAccountWarningSection-DYc9G8bV-C0-vT7q_.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-D-xvJh6X-BYj1CgI1.js → BankConnectionsSettingsPage-D-xvJh6X-iwc5OvrC.js} +1 -1
- package/dist/assets/{BillDetailPage-DI4p83bN-DsSGq7P9.js → BillDetailPage-DI4p83bN-BXoj_7QD.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-JEK4CJ6r-Dx7PtsPZ.js → BillPayApprovalRuleDetailPage-JEK4CJ6r-Dk_wV7CZ.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CZj9RcI2-B4B2EkKe.js → BillPayApprovalRulesPage-CZj9RcI2-CSEPhG_4.js} +1 -1
- package/dist/assets/{BillPayPromoPage-Cem8O8Zz-pfA-kmgg.js → BillPayPromoPage-Cem8O8Zz-C4DO93H0.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-06e_GZGJ-Cepdrjx4.js → BillPaySetUpPage-06e_GZGJ-DMb1C1BX.js} +1 -1
- package/dist/assets/{BillingSettingsPage-qa2hgDz_-CHRTi-Bp.js → BillingSettingsPage-qa2hgDz_-DWo6jZ70.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-3zpJXx1h-C8Cwvdvb.js → BillsBulkReviewDrawerPage-3zpJXx1h-BmPhOY8O.js} +1 -1
- package/dist/assets/{BoxItem-CDOSjQIf-DcmyzBMd.js → BoxItem-CDOSjQIf-CJCbwKlX.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Dr718NxZ-CTlxf5gS.js → BusinessVerificationPage-Dr718NxZ-C6jJJYW1.js} +1 -1
- package/dist/assets/{CardNumberSubText-Bf6KqvP0-CyJhZe3_.js → CardNumberSubText-Bf6KqvP0-BjC8Y73p.js} +1 -1
- package/dist/assets/{CashbackDetailPage-Dn_rWlql-Ttj6OGAc.js → CashbackDetailPage-Dn_rWlql-CRzV2FQr.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-ahR7iCT1-DJc2IDdz.js → ChargeCardDetailPage-ahR7iCT1-po2Cjgxe.js} +1 -1
- package/dist/assets/{ChargeCardListPage-B3v2uRvR-D917V3G-.js → ChargeCardListPage-B3v2uRvR-Bx_jP_ej.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DoIQWUoe-BJRu7QvX.js → ChargeCardListTable-DoIQWUoe-CUmUxReh.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CjOhIQT3-DZAWVO_Q.js → ChargeCardPromoPage-CjOhIQT3-cxZBNnmD.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DD5cBYrJ-HFWBKsod.js → ChargeCardSetupPage-DD5cBYrJ-Df_VK_y7.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BDw7AL1M-CGDwKsj-.js → ChargeCardStatementsPage-BDw7AL1M-CEWWbHbh.js} +1 -1
- package/dist/assets/{ChargeCardUtils-BgCK0dfc-DrWgA1vt.js → ChargeCardUtils-BgCK0dfc-C7i0IOoX.js} +1 -1
- package/dist/assets/{ChaseOverlay-0vGEbm3S-Yd_KO12K.js → ChaseOverlay-0vGEbm3S-grITfH8J.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-1_cQKlWk-DrWgpFjk.js → CheckDepositDrawerPage-1_cQKlWk-D3jB-uDZ.js} +1 -1
- package/dist/assets/{CollapsableReportTable-DGAyFO41-CUiTMCCC.js → CollapsableReportTable-DGAyFO41-DkSGZ87G.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-T0E1inx--BBTrgOYJ.js → CompanyOfficerDetailsSection-T0E1inx--DL2oxnP4.js} +1 -1
- package/dist/assets/{CompanyPassportCard-ClVNk_vJ-DVmMHYci.js → CompanyPassportCard-ClVNk_vJ-ClGw1d70.js} +1 -1
- package/dist/assets/{CompanyPassportPage-B-tMwsYa-D14q4Tmk.js → CompanyPassportPage-B-tMwsYa-kcJ78R9u.js} +1 -1
- package/dist/assets/{CompleteProfile-DWA3g-xD-D_GkWyNx.js → CompleteProfile-DWA3g-xD-8rWtFno9.js} +1 -1
- package/dist/assets/{ConfettiBurst-LtR4--y0-DZTHg9uf.js → ConfettiBurst-LtR4--y0-BaPaQNFl.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-ChR16H7h-D7BbvyL3.js → CreateOrEditVendorPage-ChR16H7h-D_QP4jei.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-DPCigi3A-xnXELIfx.js → CreditCardPaymentDrawerPage-DPCigi3A-DdrhC1YE.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-DxNQ-KmN-BY4cRgv-.js → CreditCardPaymentPlgSection-DxNQ-KmN-B_rlLzkl.js} +1 -1
- package/dist/assets/{CurrencySelectField-BAHRdBQD-BBF_kb_9.js → CurrencySelectField-BAHRdBQD-DA5fvTQH.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-D4gsv4eL-BHVZlonK.js → CustomerOnboardingActivationPage-D4gsv4eL-DpYiipac.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CQmZ0e8x-CZcEr6oq.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-6OY3R8IK-CgLNlXeH.js → CustomerOnboardingDetailPageSkeleton-6OY3R8IK-3jVNl1vP.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-683KgkER-CFuHFpzg.js → CustomerOnboardingNoStepsPage-683KgkER-C8rZmY1O.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-CnpkJxFX-JETQKw_l.js → CustomerOnboardingPage-CnpkJxFX-CLQeKxn1.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BujbI1j--OoClg5JY.js → CustomerOnboardingProductSuitePage-BujbI1j--CONoZLBv.js} +1 -1
- package/dist/assets/{Dashboard-D8Z9Xn_o-Cu7jzCwF.js → Dashboard-D8Z9Xn_o-qn-01Tko.js} +1 -1
- package/dist/assets/{DashboardReportPage-xiBYFSeV-CtpfTFBq.js → DashboardReportPage-xiBYFSeV-LLetpz80.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Db9iuZli-BWvWxknT.js → DashboardSidebarBackgroundAnimation-Db9iuZli-D_8NZPmW.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CWrrHE7S-BEKXeHh6.js → DepositAccTransactionItem-CWrrHE7S-EtqMSeZg.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-D83EgfRt-YHiBlaeN.js → DepositAccTransactionListPage-D83EgfRt-CsxV3gWG.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-W4jaQzI6-rgDbsj9p.js → DomesticWireDetailsPage-W4jaQzI6-BdaVfPFS.js} +1 -1
- package/dist/assets/{DownloadOverlay-DUz_s1NC-CmpO_92-.js → DownloadOverlay-DUz_s1NC-Dt2oo92r.js} +1 -1
- package/dist/assets/{DrawerPage-eoBqN66O-N1xIxEyt.js → DrawerPage-eoBqN66O-DyTAxRPS.js} +1 -1
- package/dist/assets/{EditPeoplePage-B7JxYDAy-CFDI5GnM.js → EditPeoplePage-B7JxYDAy-oC0J8m-c.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-VKRWSQec-DOU_9XOi.js → EditReimbursementDetailPage-VKRWSQec-DKB7i1lc.js} +1 -1
- package/dist/assets/{EntityDetailPage-CcintM3U-Dx5G9RTF.js → EntityDetailPage-CcintM3U-CrUjzFGw.js} +1 -1
- package/dist/assets/{EntitySummarySection-DCdm20Sg-CQs4dEJA.js → EntitySummarySection-DCdm20Sg-f5EB6BJ6.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Aqgs1PCK-2evGsHz8.js → ExpenseAutomationOverviewPage-Aqgs1PCK-DDsblAEd.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-D2zUpe4g-CxjhO-PC.js → ExpenseAutomationPage-D2zUpe4g-s1T_TS_T.js} +1 -1
- package/dist/assets/{ExpressPayPage-Cnq--MJv-D9HVYBHS.js → ExpressPayPage-Cnq--MJv-CI7TjCxM.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-MAPqhKzq-BznIFam1.js → FeaturePreviewPage-MAPqhKzq-B1I5kaIB.js} +1 -1
- package/dist/assets/{FollowStepsSection-C6G-TvEf-CMR-bd7f.js → FollowStepsSection-C6G-TvEf-pOL3gtbW.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BfSB0VjE-B0CTqzFZ.js → GlobalReviewListPage-BfSB0VjE-Cf-K4PFQ.js} +1 -1
- package/dist/assets/{HelpButton-D6-xnq8R-B7Esl1eN.js → HelpButton-D6-xnq8R-B7Yjawto.js} +1 -1
- package/dist/assets/{InformationCardStack-IGZ7Nkni-DQzbmEAc.js → InformationCardStack-IGZ7Nkni-DOTgbOAB.js} +1 -1
- package/dist/assets/{InsightsCardStack-C3ddYN-Q-CB3A1BhT.js → InsightsCardStack-C3ddYN-Q-7nvUo7s4.js} +1 -1
- package/dist/assets/{InsightsSection-Tqo7NTVV-DptTpQRV.js → InsightsSection-Tqo7NTVV-DqOnr-bV.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-7I3pXnES-CTqueKtk.js → IntegrationsSettingsPage-7I3pXnES-DS3oF0Mg.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-rBvmcx9N-BfCYTFwC.js → InternationalWireSwiftDetailsPage-rBvmcx9N-BPv0XoYd.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BW4c-XdS-3X67KsZR.js → InternationalWireVerificationPage-BW4c-XdS-hPcvR4xt.js} +1 -1
- package/dist/assets/{InviteFormPage-1peYTuMQ-DUkzvI-2.js → InviteFormPage-1peYTuMQ-CwJvZkP2.js} +1 -1
- package/dist/assets/{InvitePageListView-DtG3wxwm-BgVMNece.js → InvitePageListView-DtG3wxwm-BKMkwLDy.js} +1 -1
- package/dist/assets/{InvitePeoplePage-M_CDwda8-BRFuhOrt.js → InvitePeoplePage-M_CDwda8-Bwy4udKN.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-B8JEASzZ-DT8Vmew2.js → InvoiceUploadSection-B8JEASzZ-DtL8QQIy.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-8FHVPcd3-CduG1VXM.js → IssueChargeCardPage-8FHVPcd3-DCTMb26I.js} +1 -1
- package/dist/assets/{LabeledAddressValue-4Z_HqLEs-BuHtdjwX.js → LabeledAddressValue-4Z_HqLEs-DaseuiwF.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-T2zUztDN-BjlfdLij.js → LabeledAddressValueField-T2zUztDN-LGoET2XZ.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DOOc6OZ4-JgoHs502.js → LabeledControlledCheckBoxField-DOOc6OZ4-B9eOJRqI.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BYHyUNlT-DEMEjD3B.js → LabeledCreatableSingleSelectField-BYHyUNlT-DUykMUFr.js} +1 -1
- package/dist/assets/{LabeledDocumentField-8SV_IuVA-BP8rml-i.js → LabeledDocumentField-8SV_IuVA-BLqjNxbt.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-aw4AWbJv-BtfYvR37.js → LabeledDropDownFormattedTextField-aw4AWbJv-Cr-eZFo9.js} +1 -1
- package/dist/assets/{LabeledText-Br6D44cd-Cu61Yowg.js → LabeledText-Br6D44cd-E57hu619.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Drz2BoXV-BV27Neva.js → LabeledUserSingleSelectWithSubtitlesField-Drz2BoXV-BId0L7Hx.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Cl_lG3C4-DtxiKcTT.js → LabeledZeniRolesDropDownField-Cl_lG3C4-BhssEcQY.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-GlfDfp8a-CBny33OZ.js → LinkJETransactionPage-GlfDfp8a-KW3EaABX.js} +1 -1
- package/dist/assets/{LowBalancePopup-DL09jFzg-CyjG6oh8.js → LowBalancePopup-DL09jFzg-DoAl-SoK.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BJkiZKIZ-BoJwC9zZ.js → MagicLinkACHDetailsPage-BJkiZKIZ-C0hzlQM0.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-KSPEzUa7-BBZYU_0I.js → MagicLinkDomesticWireDetailsPage-KSPEzUa7-DeyD-ww2.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DYq6IjCO-C1VKFBAu.js → MagicLinkInternationalWireDetailsPage-DYq6IjCO-B92ocQZS.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BRBqx_HR-D8oN4Vp7.js → MagicLinkSuccessPage-BRBqx_HR-B8TttEPQ.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Ch-kaM4i-CWaa0I1J.js → MagicLinkTitleSection-Ch-kaM4i-s-NoId2m.js} +1 -1
- package/dist/assets/{MailingDetailsSection-C3JqXSK_-D4ByIc-C.js → MailingDetailsSection-C3JqXSK_-BdbOUFR2.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-C-QdK1eB-rxe_L8BC.js → MeetingCalenderPopup-C-QdK1eB-I2FWDDt5.js} +1 -1
- package/dist/assets/{Menu-Dwfvhfom-CwTCc3PN.js → Menu-Dwfvhfom-D7VO7Ohf.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BY4W2WDp-DJpGSj2D.js → MyBankConnectionsSettingsPage-BY4W2WDp-Cyoq_FxP.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-DPb01Uh_-C8fyxiM9.js → MyPendingActivationChargeCardListPage-DPb01Uh_-CpTI46-w.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-ByXdsVkj-2unNKrIq.js → MyProfileSettingsPage-ByXdsVkj-Lm5WVjIV.js} +1 -1
- package/dist/assets/{NavBarWithPicker-B9K75eZj-BpUsXuzU.js → NavBarWithPicker-B9K75eZj-CShF5Op_.js} +1 -1
- package/dist/assets/{NavigationArrow-Bq-6ZuNW-Dj4VkEQ9.js → NavigationArrow-Bq-6ZuNW-BFfOq0DY.js} +1 -1
- package/dist/assets/{NavigationDots-CG19c5E0-CRwFuQ1r.js → NavigationDots-CG19c5E0-bRuIMHF0.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CilYvqN_-Qga0nwqO.js → NewGlobalMerchantPage-CilYvqN_-BPZsi7dB.js} +1 -1
- package/dist/assets/{NoDataChart-BqzaDL6U-CEm48KyS.js → NoDataChart-BqzaDL6U-Dk0pHuDv.js} +1 -1
- package/dist/assets/{NoDataTable-CrJgsAxs-TxeNCkKH.js → NoDataTable-CrJgsAxs-Ry0eDJMZ.js} +1 -1
- package/dist/assets/{NotFoundPage-o8jGXrS6-DgVqZY44.js → NotFoundPage-o8jGXrS6-CkpNcWXS.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CpL21wrx-7mcmrTdB.js → NotificationSettingsPage-CpL21wrx-DY4Fw8hO.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BILoXX8h-UlCMUXNZ.js → NotificationsListConfig-BILoXX8h-0flLf5wB.js} +1 -1
- package/dist/assets/{NotificationsPage-CF0izIYw-Do8DWRJB.js → NotificationsPage-CF0izIYw-DEpb-daF.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CzirFPfE-CdEDJwfw.js → OpExByVendorPage-CzirFPfE-D65labDU.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D0AnG2aV-DptgSi9Y.js → OverlayContainerPage-D0AnG2aV-CNH_hFl-.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Dv4ukuOh-CMh8DwdU.js → PandLWithForecastPage-Dv4ukuOh-tKoZ1DqV.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-xRNKGQK7-DMQOyJ-i.js → PaymentAccountSetupBillingAddressSection-xRNKGQK7-DutGvM6C.js} +1 -1
- package/dist/assets/{PeoplePage-BS-WEFWB-Bncn4oBd.js → PeoplePage-BS-WEFWB-2vWUHGU0.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-BqstPgzi-BbZ1uxQe.js → PortfolioAllocationFormPage-BqstPgzi-mMJXcrzt.js} +1 -1
- package/dist/assets/{PortfolioDetails-vFxtsdUm-Blvzf42n.js → PortfolioDetails-vFxtsdUm-DGoDL6Fa.js} +1 -1
- package/dist/assets/{ProductsCarousel-DCyB1B2i-CIYm8OV-.js → ProductsCarousel-DCyB1B2i-D0xcKrOQ.js} +1 -1
- package/dist/assets/{PromoBaseCards-BqDX1LK0-CbZdow3C.js → PromoBaseCards-BqDX1LK0-H5SZogLj.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DwDffCnd-BNYnUGLz.js → QBOConnectionDialog-DwDffCnd-Do3Vu7JK.js} +1 -1
- package/dist/assets/{QBOSetupSection-D98MTD4s-DHzHtjgS.js → QBOSetupSection-D98MTD4s-D-9StreL.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-StbOyUWl-DqSkEZl4.js → ReimbursementApprovalRuleDetailPage-StbOyUWl-DJc3lA4L.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DvHqE_Y4-DUUlyap1.js → ReimbursementApprovalRulesPage-DvHqE_Y4-Bsi76rf3.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-B5Y88oLp-Di2Q9dVJ.js → ReimbursementDetailPage-B5Y88oLp-7xvGvVHU.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-CgJlMkwg-CAXfuoBM.js → ReimbursementPromoPage-CgJlMkwg-CLoGA7lQ.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-CPtknu9o-BMftHdPg.js → ReimbursementSetUpPage-CPtknu9o-VaiNAjjx.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CrxT3ktz-CyOiKfsr.js → ReimbursementsBulkReviewDrawerPage-CrxT3ktz-CH9_V5iE.js} +1 -1
- package/dist/assets/{ReloadCard-m4NkTIt8-qWxwr1pb.js → ReloadCard-m4NkTIt8-B3zRQKXY.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DS_XaOgf-D4PjiEPE.js → ReportTableViewSelector-DS_XaOgf-2uiHRf3a.js} +1 -1
- package/dist/assets/{ReportsPage-CmbmBvss-BszLDiPk.js → ReportsPage-CmbmBvss-B3sGZEJD.js} +1 -1
- package/dist/assets/{RevenueChart-e9_ECae4-i1hR8xN3.js → RevenueChart-e9_ECae4-Dr4DUZyS.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BwXJiFy3-C5fCQ_Wm.js → ReviewDetailsPage-BwXJiFy3-BTa-gJ4x.js} +1 -1
- package/dist/assets/{ReviewOverlay-CoU1Zdlr-C_35bcUj.js → ReviewOverlay-CoU1Zdlr-pPHE4WQA.js} +1 -1
- package/dist/assets/{RoleWithToolTip-B0ksgZNX-BXDkVDyN.js → RoleWithToolTip-B0ksgZNX-C4LaCBmY.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Dyi1HqQJ--mW1UI7J.js → ScheduleDetailsFixedAssetsPage-Dyi1HqQJ-D8C5sK9I.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-CLTUhuq2-dLS1EbbP.js → ScheduleDetailsPage-CLTUhuq2-lB0vjNEg.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-CFvuCill-DQBmJHOp.js → ScheduleSequenceTable-CFvuCill-BurAJNAH.js} +1 -1
- package/dist/assets/{ScreenRoutes-BUfK301Y.js → ScreenRoutes-BAqTdzDv.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C3_ZtYa5-5XFHYUbe.js → SetUpAccountSection-C3_ZtYa5-e2iHRFW0.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-CDTf48Sb-CqmPuatn.js → SetUpDefaultSection-CDTf48Sb-SLC8HzQO.js} +1 -1
- package/dist/assets/{SignIn-Du-ulVF5-CeXDLeDP.js → SignIn-Du-ulVF5-wm_z93Z-.js} +1 -1
- package/dist/assets/{SignInScreen-Dl-Wmtli.js → SignInScreen-B8mRHKzh.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DUpDQMns-efzaYN1_.js → SpendManagementListViewPage-DUpDQMns-UaozE5x0.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BLOXsxrx-hSLWJXri.js → SpendManagementPerTabPage-BLOXsxrx-CBV89eRI.js} +1 -1
- package/dist/assets/{SpendManagementSection-D7sf7SeD-DR_tAIlf.js → SpendManagementSection-D7sf7SeD-D65sOJDO.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-CvbRCGT3-fc81_dxr.js → SpendMgmtSetupAccountSection-CvbRCGT3-BHdPIEQr.js} +1 -1
- package/dist/assets/{StatementItem-CWLkBF_T-WNVKfqND.js → StatementItem-CWLkBF_T-D1rtX1Ud.js} +1 -1
- package/dist/assets/{StatementsPage-BwQmtz3m-BLNQk_nI.js → StatementsPage-BwQmtz3m-BIy0CiTJ.js} +1 -1
- package/dist/assets/{StatusSwitcher-BPG5yT0r-B6xc6um_.js → StatusSwitcher-BPG5yT0r-SpXvxI9U.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BewMmlvb-CLdrYWXx.js → SubTabSwitcher-BewMmlvb-DhZ9BjP8.js} +1 -1
- package/dist/assets/{SummaryCard-rwrE0c4q-HZZcrQE9.js → SummaryCard-rwrE0c4q-UeA5gLhZ.js} +1 -1
- package/dist/assets/{TaskManagementPage-DLpkol3e-CZwQJjwy.js → TaskManagementPage-DLpkol3e-WdYj7iB7.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DREn027B-4M1N4caR.js → TimeRangeSwitcher-DREn027B-CR-3pwaA.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CG25EnHQ-BzUTZv4R.js → TimeframeSwitcher-CG25EnHQ-D7gw9ELI.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CRKKZ2ZA-C8_TaIBV.js → TimeframeSwitcherWithToggle-CRKKZ2ZA-LMN-r2XM.js} +1 -1
- package/dist/assets/{TopExCard-DB87WAVl-BVGs7cOM.js → TopExCard-DB87WAVl-DXRV71RL.js} +1 -1
- package/dist/assets/{TopExDetailPage-CLANHUKr-CrgbOAPO.js → TopExDetailPage-CLANHUKr-CHGx82cI.js} +1 -1
- package/dist/assets/{TransactionDetailPage-BvC7ortv-CtNzT7z7.js → TransactionDetailPage-BvC7ortv-CN_7u84F.js} +1 -1
- package/dist/assets/{TransactionList-uOUugKVb-hYSSV3pD.js → TransactionList-uOUugKVb-zO1FITPJ.js} +1 -1
- package/dist/assets/{TransactionListBig-Ch_o0gHs-DElBpEvj.js → TransactionListBig-Ch_o0gHs-D3PX9H4o.js} +1 -1
- package/dist/assets/{TransactionListPage-BOCeH_I--kqCt0Qrw.js → TransactionListPage-BOCeH_I--01P661Bx.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CHoL0k1Y-saVO2znm.js → TransactionVendorDetailPage-CHoL0k1Y-DHktz1w_.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DSeKIosp-C1sXYbcx.js → TransferDrawerPage-DSeKIosp-0D4Dxb7b.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-Crn1RK0t-CBDAnkxw.js → TreasuryOverviewPage-Crn1RK0t-BIkfEZrB.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-CHEPNS2F-C1gwj4__.js → TreasuryPromoPage-CHEPNS2F-Si9IgoTg.js} +1 -1
- package/dist/assets/{TreasurySetupPage-ByS3Q3rx-BNp4vefV.js → TreasurySetupPage-ByS3Q3rx-hk6XLJYK.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-BQgavpBC-Bzxlkhk-.js → TreasuryStatementsPage-BQgavpBC-DpGxHRBu.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-A2K0qEuo-Dp0Alflv.js → TreasuryTaxLetterPage-A2K0qEuo-BaX5yOb5.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-C4cE9ykL-CWFP8w5o.js → TreasuryTransferOrReviewPage-C4cE9ykL-CYuFmBL_.js} +1 -1
- package/dist/assets/{TrendChart-BPx69s6w-C54caf00.js → TrendChart-BPx69s6w-Bsdmdm1p.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DGrYER05-CzbDRqAW.js → TrendWithTransactions-DGrYER05-CPtwIs65.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-D6TnbZro-Cd3A1Au2.js → UncategorizedAccountsMappingPage-D6TnbZro-rUPR2V4g.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-CQBSzErf-ld9qs3qV.js → UnitIntegrationPage-CQBSzErf-DXD5pG3w.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CngeF3hu-C5Xf6mSz.js → UploadAdditionalDocumentOverlay-CngeF3hu-VngdJaMF.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DX0fVCg7-CG1Oavl5.js → Vendor2FAPopup-DX0fVCg7-Bo8Lj9kc.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-tvACcgwN-Cyy6w06I.js → VendorACHDetailsPage-tvACcgwN-Cu0pIM5V.js} +1 -1
- package/dist/assets/{VendorDetailPage-YL7KJT0e-dOjjIlFG.js → VendorDetailPage-YL7KJT0e-eCTow_WK.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-ydnlkYQr-A8ghqCjU.js → VendorDomesticWireDetailsPage-ydnlkYQr-B6omw1Nf.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DtK-dP6w-BoJlZf5G.js → VendorFiling1099EditablePage-DtK-dP6w-BShuyJdC.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-ZIrl95TL-Cy-T64SB.js → VendorFirstReviewPage-ZIrl95TL-D33eCV1t.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-D3lhu4cb-CeGZ1fCy.js → VendorInternationalWireDetailsPage-D3lhu4cb-BLZAcGyJ.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Ch9bZvp3-DRq6__bb.js → VendorInternationalWireSwiftDetailsPage-Ch9bZvp3-DaamNzP0.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DZSmqIN2-DA223WXy.js → VendorsAccountsSection-DZSmqIN2-MZuYfFku.js} +1 -1
- package/dist/assets/{VerifyDevice-CMeuheTR--kYgKkYD.js → VerifyDevice-CMeuheTR-SztBsf5z.js} +1 -1
- package/dist/assets/{VideoPlayer-DFyz7Puo-BlV3Z8cx.js → VideoPlayer-DFyz7Puo-D3md354V.js} +1 -1
- package/dist/assets/{VideoPopup-Ddg6ianH-B08H-Nsf.js → VideoPopup-Ddg6ianH-h5XRrepK.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-BSveDRtA-Cr_9AddK.js → WarningsDrawerPage-BSveDRtA-DsS-UmhP.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-nC2Srvkn-BZYo2NW8.js → ZeniAccountDetailPage-nC2Srvkn-lriwHian.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BC9ndWsY-B8cntPqx.js → ZeniAccountListViewPage-BC9ndWsY-DOT9gDEx.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-r_SoPE-D-VPyTmUCW.js → ZeniAccountNavBarPieces-r_SoPE-D-BTUJejSR.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-nZ_yTF0T-Ch1YHX9d.js → ZeniAccountPromoPage-nZ_yTF0T-B4MakfdU.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-V8WZ1SIT-CgpBBRVR.js → ZeniAccountSetupPage-V8WZ1SIT-B3X9GZw2.js} +1 -1
- package/dist/assets/{ZeniCopyright-DkEE9Fkf-CEbRa0Tx.js → ZeniCopyright-DkEE9Fkf-D2gtc9Mg.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CP4DXRSQ-DYCbssXa.js → ZeniTransferAmountSlider-CP4DXRSQ-D-qI5RnK.js} +1 -1
- package/dist/assets/{analyticsHelper-BsAbhFhb-KrL481tM.js → analyticsHelper-BsAbhFhb-DYpeFUFH.js} +1 -1
- package/dist/assets/{analyticsHelper-k3FWBuMr.js → analyticsHelper-D-cbbCeB.js} +1 -1
- package/dist/assets/{chartTypes-Cdcd3er7-GUhlIK4O.js → chartTypes-Cdcd3er7-DR1nsm-2.js} +1 -1
- package/dist/assets/{commonDimensions-D2awlh2V-_OxUkEof.js → commonDimensions-D2awlh2V-DGRJK6zD.js} +1 -1
- package/dist/assets/{detailCommon-CI0CJf_K-Bxp-kmjQ.js → detailCommon-CI0CJf_K-wfPYhhqd.js} +1 -1
- package/dist/assets/{downloadPdf-DKAAiZ9Q-B-454ch_.js → downloadPdf-DKAAiZ9Q-BrYmGqin.js} +1 -1
- package/dist/assets/{index-DMdPrhoW.js → index-BgY2d5WE.js} +5 -5
- package/dist/assets/{mapLoadingInProgressToTreeNode-D1vxyJ10-ZIRqV4B0.js → mapLoadingInProgressToTreeNode-D1vxyJ10-B6tXgSES.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BzOUZmQm-ClptzLT6.js → mapSectionWithAcOnlyToTreeNode-BzOUZmQm-B2NilGOK.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CkRIugiZ-D3tt75qz.js → mapSpacerToTreeNode-CkRIugiZ-Dh_rgVA7.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Blq3vSo3-CBMWyYPW.js → mapTimeframeBalancesToTreeNode-Blq3vSo3-CDNuDqkx.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CQH6xjkN-hmdHCMHY.js → mapTimeframeBalancesToTreeNode-CQH6xjkN-B0oZnGeb.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DeAakfXf-CdS6f0qv.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DeAakfXf-DB7uEh5I.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-N0H1doqM-JpFsU7mj.js → toCOABalancesWithID-N0H1doqM-Co_NSAVF.js} +1 -1
- package/dist/assets/{toChartData-BQrGasxp-CkdG-m8w.js → toChartData-BQrGasxp-BBK_kcLb.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BQZcNhOr-BvktInAz.js → treasuryColorHelper-BQZcNhOr-BuqUdy3E.js} +1 -1
- package/dist/assets/{uploadAttachment-B4upGNxs-CyeMSH3w.js → uploadAttachment-B4upGNxs-DgsHeZH9.js} +1 -1
- package/dist/assets/{uploadReceipts-D7QFCUNT-Cx8HvdYO.js → uploadReceipts-D7QFCUNT-DfPmHYjT.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-CQmZ0e8x-Cf_yzrns.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as M,j as b,bV as V,bX as W,bY as X,jl as Y,ab as q,l as z}from"./index-
|
|
1
|
+
import{R as M,j as b,bV as V,bX as W,bY as X,jl as Y,ab as q,l as z}from"./index-BgY2d5WE.js";import{b as f}from"./vendor-rkTZJa59.js";import{p as H}from"./ReviewOverlay-CoU1Zdlr-pPHE4WQA.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const{common:n,spendManagement:{reimbursement:k}}=M.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:h}=e,g=!1,[w,a]=f.useState(!1),[m,_]=f.useState(R(e,g,l)),[x,P]=f.useState(g),[B,G]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(P(!1),clearInterval(I)),e.fetchState==="Completed"&&_(R(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,g,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=K(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,h),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,h,z.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=Z(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,h),d(t)},N=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(V,{titleComponent:b.jsx(X,{children:y.title}),descriptionComponent:b.jsx(W,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(H,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:C}})]})},R=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=Y(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:q("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},K=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:h,does:g}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?h:g):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as h,j as r,Z as a,W as m,ai as j,R as w,a5 as l,a_ as x,w as g,o as c,aj as C}from"./index-
|
|
1
|
+
import{u as h,j as r,Z as a,W as m,ai as j,R as w,a5 as l,a_ as x,w as g,o as c,aj as C}from"./index-BgY2d5WE.js";import{n as s,b as d}from"./vendor-rkTZJa59.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 R({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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as K,e as ie,bJ as me,a as fe,j as o,p as ge,R as X,bK as ee,F as xe,C as P,a4 as be,o as n,bL as ye,bM as we,bN as _e,bO as $e,bP as ve,n as ce,bQ as Ce,q as p,w as ke,J as Q,a_ as je,a8 as Ne,x as Se,b2 as Ie}from"./index-
|
|
1
|
+
import{u as K,e as ie,bJ as me,a as fe,j as o,p as ge,R as X,bK as ee,F as xe,C as P,a4 as be,o as n,bL as ye,bM as we,bN as _e,bO as $e,bP as ve,n as ce,bQ as Ce,q as p,w as ke,J as Q,a_ as je,a8 as Ne,x as Se,b2 as Ie}from"./index-BgY2d5WE.js";import{b as f,f as de,n as d}from"./vendor-rkTZJa59.js";import{W as O,R as Pe}from"./CollapsableReportTable-DGAyFO41-DkSGZ87G.js";const z=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Oe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function Fe(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Oe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(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 Be=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as G,u as U,R as y,Y as he,l as _,j as r,W as k,bg as fe,aZ as me,aX as ge,C as v,o as C,a6 as _e,m as be,bh as Se,q as w,I as B,J as Q,bi as we,a8 as Ce,aD as ye,b0 as xe}from"./index-DMdPrhoW.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as H}from"./analyticsHelper-BsAbhFhb-KrL481tM.js";import{h as Oe}from"./ReportTableViewSelector-DS_XaOgf-D4PjiEPE.js";import{a as K,p as Re}from"./TimeRangeSwitcher-DREn027B-4M1N4caR.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-CRKKZ2ZA-C8_TaIBV.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-DUz_s1NC-CmpO_92-.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-DGAyFO41-CUiTMCCC.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-BzOUZmQm-ClptzLT6.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-Blq3vSo3-CBMWyYPW.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DeAakfXf-CdS6f0qv.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-D1vxyJ10-ZIRqV4B0.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./TimeframeSwitcher-CG25EnHQ-BzUTZv4R.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-CLodl3sk-rKp4eA6Q.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
1
|
+
import{e as G,u as U,R as y,Y as he,l as _,j as r,W as k,bg as fe,aZ as me,aX as ge,C as v,o as C,a6 as _e,m as be,bh as Se,q as w,I as B,J as Q,bi as we,a8 as Ce,aD as ye,b0 as xe}from"./index-BgY2d5WE.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as H}from"./analyticsHelper-BsAbhFhb-DYpeFUFH.js";import{h as Oe}from"./ReportTableViewSelector-DS_XaOgf-2uiHRf3a.js";import{a as K,p as Re}from"./TimeRangeSwitcher-DREn027B-CR-3pwaA.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-CRKKZ2ZA-LMN-r2XM.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-DUz_s1NC-Dt2oo92r.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-DGAyFO41-DkSGZ87G.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-BzOUZmQm-B2NilGOK.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-Blq3vSo3-CDNuDqkx.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DeAakfXf-DB7uEh5I.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-D1vxyJ10-B6tXgSES.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./TimeframeSwitcher-CG25EnHQ-D7gw9ELI.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-CLodl3sk-CusWtpcw.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${C.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as A,j as a,R as S,e as de,W as Ae,aj as Q,b7 as Te,q as E,b8 as J,aw as ee,v as M,av as ae,ab as re,b9 as oe,ba as ge,o as m,bb as te,f as g,J as Fe,bc as pe,bd as me,C as xe,be as fe,x as P,bf as F,ap as V}from"./index-
|
|
1
|
+
import{u as A,j as a,R as S,e as de,W as Ae,aj as Q,b7 as Te,q as E,b8 as J,aw as ee,v as M,av as ae,ab as re,b9 as oe,ba as ge,o as m,bb as te,f as g,J as Fe,bc as pe,bd as me,C as xe,be as fe,x as P,bf as F,ap as V}from"./index-BgY2d5WE.js";import{b as R,f as le,n as x}from"./vendor-rkTZJa59.js";import{p as b,d as ne,y as W,b as N,g as se,u as T}from"./chartTypes-Cdcd3er7-DR1nsm-2.js";import{i as K,h as ce,c as I}from"./toCOABalancesWithID-N0H1doqM-Co_NSAVF.js";import{V as Z}from"./toChartData-BQrGasxp-BBK_kcLb.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{e as Tt,Y as vt,C as y,cI as jt,R as St,cJ as Ct,cK as Dt,j as t,cL as It,cM as le,cN as Pt,l as d,cO as kt,cP as At,W as j,cQ as Mt,a0 as A,cR as Bt,cS as Nt,cT as Ae,cU as Me,cV as Be,v as q,cW as O,cX as z,cY as _,f as S,cZ as Rt,c_ as Et,c$ as Ft,d0 as Lt,bp as Ne,o as n,a4 as Ot,q as c,y as zt,by as _t,X as Wt,g as Ut,d1 as Yt,bO as Zt,x as se,n as de,d2 as Ht,d3 as Vt,aC as qt,T as Gt,ao as Kt,r as Xe,b6 as Xt,w as Je,aP as Jt,d4 as Qt}from"./index-DMdPrhoW.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-DL09jFzg-CyjG6oh8.js";import{S as W}from"./LabeledText-Br6D44cd-Cu61Yowg.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const Qe=["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:v,labels:Ee,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Fe}=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(Ht,{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:J,retryPayment:ot})=>{const s=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,E=p.largeLabelWidth.value(s),F=e.saveStatus,Q=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:v.currencyCode,currencySymbol:v.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.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(kn,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(F?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(me(),ue(),ye())},[F,Q,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&Y?.code?Y:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,H=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",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},k=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=k&&!it,Te=Oe(b,H,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===v.currencyCode?Et(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?kt(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=T?.code??"draft",Ce=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Qt(m.loggedInUser),ke=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,ke):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,ke)}}},ve=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.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:F?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(At,{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:A("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(He,{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(He,{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(vn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Fn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Qe.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:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(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?Ae.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(En,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?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:A("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?Ae.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(Ye,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(Ye,{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:E},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:E},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:E},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:E},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:E},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Ft(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!==v.currencyCode?Fe.conversionAmountColon:Ee.invoiceAmount}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Fe.transactionFee}),t.jsx(oe,{children:A("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Ee.total}),t.jsx(oe,{children:A("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:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?$e:ne,style:{width:ze(!1,k,b,H,s)}},primaryBtn:{label:Oe(b,H,e.isBillMarkedForRetry),isLoading:F?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):ve()},style:{width:ze(!0,k,b,H,s)}},rightSideComponent:k&&!b&&F.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(An,{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{e as Tt,Y as vt,C as y,cI as jt,R as St,cJ as Ct,cK as Dt,j as t,cL as It,cM as le,cN as Pt,l as d,cO as kt,cP as At,W as j,cQ as Mt,a0 as A,cR as Bt,cS as Nt,cT as Ae,cU as Me,cV as Be,v as q,cW as O,cX as z,cY as _,f as S,cZ as Rt,c_ as Et,c$ as Ft,d0 as Lt,bp as Ne,o as n,a4 as Ot,q as c,y as zt,by as _t,X as Wt,g as Ut,d1 as Yt,bO as Zt,x as se,n as de,d2 as Ht,d3 as Vt,aC as qt,T as Gt,ao as Kt,r as Xe,b6 as Xt,w as Je,aP as Jt,d4 as Qt}from"./index-BgY2d5WE.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-DL09jFzg-DoAl-SoK.js";import{S as W}from"./LabeledText-Br6D44cd-E57hu619.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const Qe=["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:v,labels:Ee,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Fe}=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(Ht,{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:J,retryPayment:ot})=>{const s=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,E=p.largeLabelWidth.value(s),F=e.saveStatus,Q=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:v.currencyCode,currencySymbol:v.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.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(kn,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(F?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(me(),ue(),ye())},[F,Q,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&Y?.code?Y:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,H=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",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},k=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=k&&!it,Te=Oe(b,H,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===v.currencyCode?Et(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?kt(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=T?.code??"draft",Ce=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Qt(m.loggedInUser),ke=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,ke):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,ke)}}},ve=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.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:F?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(At,{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:A("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(He,{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(He,{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(vn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Fn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Qe.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:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(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?Ae.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(En,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?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:A("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?Ae.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(Ye,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(Ye,{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:E},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:E},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:E},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:E},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:E},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Ft(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!==v.currencyCode?Fe.conversionAmountColon:Ee.invoiceAmount}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Fe.transactionFee}),t.jsx(oe,{children:A("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Ee.total}),t.jsx(oe,{children:A("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:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?$e:ne,style:{width:ze(!1,k,b,H,s)}},primaryBtn:{label:Oe(b,H,e.isBillMarkedForRetry),isLoading:F?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):ve()},style:{width:ze(!0,k,b,H,s)}},rightSideComponent:k&&!b&&F.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(An,{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};
|
package/dist/assets/{ReviewOverlay-CoU1Zdlr-C_35bcUj.js → ReviewOverlay-CoU1Zdlr-pPHE4WQA.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as B,j as e,W as x,o as r,a4 as L,C as d,a3 as M,X as C,g as W,f as s,x as j,c6 as R,m as I,w as y,aB as D,q as n,ej as G,az as A,jj as F,jk as J}from"./index-
|
|
1
|
+
import{e as B,j as e,W as x,o as r,a4 as L,C as d,a3 as M,X as C,g as W,f as s,x as j,c6 as R,m as I,w as y,aB as D,q as n,ej as G,az as A,jj as F,jk as J}from"./index-BgY2d5WE.js";import{n as t}from"./vendor-rkTZJa59.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])},X={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(H,{children:[e.jsx(V,{windowSize:l,children:e.jsx(Y,{children:e.jsx(Z,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(O,{windowSize:l,children:[e.jsxs(Q,{windowSize:l,children:[e.jsx(_,{children:e.jsx(K,{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,{}),H=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-B0ksgZNX-BXDkVDyN.js → RoleWithToolTip-B0ksgZNX-C4LaCBmY.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eO as h,eP as x,j as t,bp as m,o as n,W as o,R as g,s as j,w as p}from"./index-
|
|
1
|
+
import{eO as h,eP as x,j as t,bp as m,o as n,W as o,R as g,s as j,w as p}from"./index-BgY2d5WE.js";import{n as r}from"./vendor-rkTZJa59.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=r.div``,f=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as Y,l as me,hK as ee,ga as fe,ey as we,hL as Je,a as Me,hM as Ve,ca as _e,cb as Pe,j as a,R as be,F as Fe,bV as Ne,bX as qe,bY as Re,a4 as We,hN as Be,hO as Ue,_ as he,hP as Se,hQ as $e,cn as ze,e as Ke,i2 as Ye,gf as re,q as W,f as De,C as Ce,cd as Ge,hR as He,hS as Qe,hT as Xe,o as _}from"./index-
|
|
1
|
+
import{a2 as Y,l as me,hK as ee,ga as fe,ey as we,hL as Je,a as Me,hM as Ve,ca as _e,cb as Pe,j as a,R as be,F as Fe,bV as Ne,bX as qe,bY as Re,a4 as We,hN as Be,hO as Ue,_ as he,hP as Se,hQ as $e,cn as ze,e as Ke,i2 as Ye,gf as re,q as W,f as De,C as Ce,cd as Ge,hR as He,hS as Qe,hT as Xe,o as _}from"./index-BgY2d5WE.js";import{b as m,n as U}from"./vendor-rkTZJa59.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CFvuCill-BurAJNAH.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const B={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as $,l as ie,hK as G,ga as Ae,ey as Je,hL as Ie,a as Le,hM as we,ca as Me,cb as Ve,j as a,R as De,F as Pe,bV as Fe,bX as $e,bY as _e,a4 as Ne,hN as Be,hO as ze,_ as re,hP as pe,hQ as Re,cn as Ue,e as qe,gf as me,q as Q,f as We,C as Ke,hR as Xe,hS as He,hT as Ye,o as L}from"./index-
|
|
1
|
+
import{a2 as $,l as ie,hK as G,ga as Ae,ey as Je,hL as Ie,a as Le,hM as we,ca as Me,cb as Ve,j as a,R as De,F as Pe,bV as Fe,bX as $e,bY as _e,a4 as Ne,hN as Be,hO as ze,_ as re,hP as pe,hQ as Re,cn as Ue,e as qe,gf as me,q as Q,f as We,C as Ke,hR as Xe,hS as He,hT as Ye,o as L}from"./index-BgY2d5WE.js";import{b as D,n as P}from"./vendor-rkTZJa59.js";import{i as Ge,r as Qe,n as Ze,o as et}from"./ScheduleSequenceTable-CFvuCill-BurAJNAH.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const z={labelWidth:new Ke(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{e as T,u as Q,j as t,hU as ie,R,hV as le,X as oe,hW as ge,dQ as fe,cV as we,v as A,hX as ye,hT as be,o as i,C as b,f as j,T as $e,_ as re,dL as je,bV as Se,bY as ke,cn as Z,cv as ee,ct as ve,hY as X,hZ as Ce,aj as De,h_ as Me,b_ as ze,h$ as Le,q as u,x as L,ao as Ee,bX as Oe,p as pe,cw as Ae,ah as ne,cH as Te,a4 as Ve,l as H,i0 as V,fO as Ie,a0 as Fe,i1 as Je,a8 as G,cx as Be,aB as Pe}from"./index-
|
|
1
|
+
import{e as T,u as Q,j as t,hU as ie,R,hV as le,X as oe,hW as ge,dQ as fe,cV as we,v as A,hX as ye,hT as be,o as i,C as b,f as j,T as $e,_ as re,dL as je,bV as Se,bY as ke,cn as Z,cv as ee,ct as ve,hY as X,hZ as Ce,aj as De,h_ as Me,b_ as ze,h$ as Le,q as u,x as L,ao as Ee,bX as Oe,p as pe,cw as Ae,ah as ne,cH as Te,a4 as Ve,l as H,i0 as V,fO as Ie,a0 as Fe,i1 as Je,a8 as G,cx as Be,aB as Pe}from"./index-BgY2d5WE.js";import{b as D,n as o,j as B}from"./vendor-rkTZJa59.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,h]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Z(),v=()=>{k||(c(),h(!1))},w=()=>{y(),h(!1)},k=ee(g,l),x=T(),a=Q();return t.jsx(pe,{onClickAway:()=>{h(!1)},children:t.jsx(Ke,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&h(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(_e,{children:[t.jsx(Ne,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(qe,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name: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(Xe,{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(Ve,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(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(He,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Ue,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(_,{isSelected:r===e,onClick:()=>l(H.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},_e=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,He=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ut,e as en,l as Y,kc as Ke,kd as tt,C as dt,ke as cd,kf as fd,kg as tn,kh as ld,ki as Tt,R as ir,kj as Bt,kk as qt,m as rn,o as kt,kl as hd,km as dd,aE as Ft,aF as Kl,dP as Lt,kn as pd,ko as md,q as yn,kp as gd,kq as Yl,kr as vd,ks as Jl,bi as Xl,I as zo,kt as yd,ku as _d,kv as bd,kw as Ql,kx as wd,ky as Sd,kz as Ed,kA as Rd,kB as Od,kC as Td,kD as xd,kE as Cd,kF as Id,kG as Ad,kH as Pd,kI as kd,kJ as Ld,gr as qd}from"./index-
|
|
1
|
+
import{u as Ut,e as en,l as Y,kc as Ke,kd as tt,C as dt,ke as cd,kf as fd,kg as tn,kh as ld,ki as Tt,R as ir,kj as Bt,kk as qt,m as rn,o as kt,kl as hd,km as dd,aE as Ft,aF as Kl,dP as Lt,kn as pd,ko as md,q as yn,kp as gd,kq as Yl,kr as vd,ks as Jl,bi as Xl,I as zo,kt as yd,ku as _d,kv as bd,kw as Ql,kx as wd,ky as Sd,kz as Ed,kA as Rd,kB as Od,kC as Td,kD as xd,kE as Cd,kF as Id,kG as Ad,kH as Pd,kI as kd,kJ as Ld,gr as qd}from"./index-BgY2d5WE.js";import{j as X,D as nn,S as Vt}from"./mui-C42whWwM.js";import{b as Se,n as ut,c as Ve,i as eh,g as jd}from"./vendor-rkTZJa59.js";import{f as Dd}from"./analyticsHelper-D-cbbCeB.js";import{g as rt,u as Ae,f as Ye}from"./redux-2gfZRks6.js";import{a as Je,d as pt,e as Nd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-CH3KJxCW.js";import{B as ze}from"./analytics-CcevxdRy.js";import{p as Oe}from"./sentry-osuhWjvS.js";import{a as Qe,b as $d,c as Wo,d as Md,e as Ko,f as Yo,g as Fd,h as Ud,i as zt,j as th,k as rr,l as an,m as Bd,n as Vd,o as zd,p as Gd,q as Hd,s as Zd,t as Wd,u as rh,v as on,w as ar}from"./crypto-CK3r1iTV.js";import{r as Kd}from"./lodash-BWJmwMit.js";import"./liveblocks-CP09Cz-7.js";const Yd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Jd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ke.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ke.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(Y.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Y.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Y.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(Y.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Xd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Qd=Ye(Xd,Jd)(ld);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Nd(),[p,l]=Se.useState(!1),u=Ae(b=>Y.getCompanyHealthMetricView(b)),f=Ae(b=>Y.getCompanyManagementView(b)),{additionalChurnFactors:d}=Ae(b=>Y.getCompanyHealthMetricConfig(b)),{selectedCompanyDetail:w,selectedCompanyId:h,localFormDataAndStatusByCompanyId:v}=u,m=Ae(b=>b.companyViewState.zeniUsers.fetchState),c=Ae(b=>b.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const b=y=>y==="Not-Started"||y==="Error";u.fetchState==="Completed"?a(Y.fetchAllCockpitViews(!1)):b(u.fetchState)&&(a(Y.fetchCompanyHealthMetricView()),b(m)&&a(Y.fetchZeniUsers()),b(c.fetchState)&&a(Y.fetchCompanyHealthMetricConfig()))},[u.fetchState,c.fetchState]),Se.useEffect(()=>{t!=null&&u.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Y.initializeCompanyHealthMetricViewLocalData(t)),w!=null&&(Ke.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[u.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||h!=null&&w!=null?X.jsx(nn,{anchor:"right",open:h!=null,PaperProps:{style:{width:Yd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Y.removeSelectedCompanyId()),children:X.jsx(cd,{roomId:`cockpit_${h}`,autoConnect:!0,children:X.jsx(fd,{onSaveClick:()=>{h!=null&&a(Y.saveCompanyHealthMetricById(h))},onSaveChangesToLocalStore:b=>{u.selectedCompanyId!=null&&a(Y.updateCompanyHealthMetricLocalStore({companyId:u.selectedCompanyId,updatedLocalData:b}))},localData:v?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:u,onCloseDrawer:()=>a(Y.removeSelectedCompanyId()),analytics:Ke,urlSource:p,additionalChurnFactorsOptions:d})})}):null,X.jsx(Qd,{healthView:u,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},ep=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},tp=(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 rp(){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 np={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)??np.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 ip=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ap,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ap=ut.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|