@zeniai/web-cockpit-ui 1.15.18-dev → 1.15.18-qa
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-BrjUad4D-BobK3aVB.js → ACHDetailsPage-BrjUad4D-DVu0c3WC.js} +1 -1
- package/dist/assets/{AIPerformancePage-Dx1ituql-CUuKvJ8n.js → AIPerformancePage-Dx1ituql-Dt1NFIpI.js} +1 -1
- package/dist/assets/{AccountInfoPage-BGcQ2kEJ-awOqo-nC.js → AccountInfoPage-BGcQ2kEJ-gDnnvWkL.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BQxwZcii-DAnRLliM.js → AccountInfoPageContent-BQxwZcii-CS_H3L-b.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-Q_WY8V5e-CDYJtJV8.js → AccountLockedInfoModal-Q_WY8V5e-s0KrQ9ck.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DuI7qAkr-CohDb_Vn.js → AccountReconDetailsDrawerPage-DuI7qAkr-C4C6O4Rx.js} +1 -1
- package/dist/assets/{AccountRow-D3aEGfjh-CGXQQRag.js → AccountRow-D3aEGfjh-Bqr3BTQn.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BrTIGRUz-SlTiOsFA.js → AccountsPromoCardStack-BrTIGRUz-ULXHulA_.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-D12dN-9m-CqdZIDlk.js → AddAddressForCardDrawer-D12dN-9m-D5vAZkB0.js} +1 -1
- package/dist/assets/{AddToWalletPage-DWMdtsY0-CgmcM53j.js → AddToWalletPage-DWMdtsY0-uqQpP9cI.js} +1 -1
- package/dist/assets/{AgingReportsPage-CeFWs8X1-rGaFbgkD.js → AgingReportsPage-CeFWs8X1-CescBHEQ.js} +1 -1
- package/dist/assets/{AllUserItems-PN_oWzOC-Cfg4W7I4.js → AllUserItems-PN_oWzOC-B6w7a_KZ.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CQtY9j4b-xFY56tWP.js → ApAgingDetailPage-CQtY9j4b-CtrITpbK.js} +1 -1
- package/dist/assets/{AppBasePage-D0S7OYzO-CJcI9UYp.js → AppBasePage-D0S7OYzO-BI_IMjAn.js} +1 -1
- package/dist/assets/{AppDrawerContent-TIRPcJoE-BOUb6qnD.js → AppDrawerContent-TIRPcJoE-Drtb9Pe5.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-CosIHJ5R-BB8nW0VM.js → ApprovalRulesSettingsPage-CosIHJ5R-BdHNTl09.js} +1 -1
- package/dist/assets/{ArAgingChart-CiNirxU7-C_J23wNp.js → ArAgingChart-CiNirxU7-DCzAffbb.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CKBOlCcF-B9yZn5Tp.js → ArAgingDetailPage-CKBOlCcF-Dnej6L7o.js} +1 -1
- package/dist/assets/{AttachmentView-MqDuu6PB-C1zlk39q.js → AttachmentView-MqDuu6PB-DMzTqafr.js} +1 -1
- package/dist/assets/{BankAccountSection-DXFRyqzV-Bg8zqqhX.js → BankAccountSection-DXFRyqzV-BKGsFhsO.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-DJhHTBuh-D20FRc-x.js → BankAccountWarningSection-DJhHTBuh-BMc0TGng.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CQe2upIp-Cv47vnoF.js → BankConnectionsSettingsPage-CQe2upIp-BH5DIeHv.js} +1 -1
- package/dist/assets/{BillDetailPage-B0ajOYxz-CTy3XK0i.js → BillDetailPage-B0ajOYxz-Cpg19lL9.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BcWQYqjU-CZdskYSr.js → BillPayApprovalRuleDetailPage-BcWQYqjU-CD-1QuAA.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-mS00kg1n-C05g3Cpf.js → BillPayApprovalRulesPage-mS00kg1n-B-sz1lYr.js} +1 -1
- package/dist/assets/{BillPayPromoPage-tUxWWqMY-t6w7JDnT.js → BillPayPromoPage-tUxWWqMY-VNLboU15.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-w47HuYkp-CbWSaNcn.js → BillPaySetUpPage-w47HuYkp-DeV6Tzem.js} +1 -1
- package/dist/assets/{BillingSettingsPage-Bsm7ZzIW-BChNCOOo.js → BillingSettingsPage-Bsm7ZzIW-Cx8DHvc4.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DdI0OCuE-DjrQvH-7.js → BillsBulkReviewDrawerPage-DdI0OCuE-BRvOFNLD.js} +1 -1
- package/dist/assets/{BoxItem-BGrgQ_sW-cYQcyKu_.js → BoxItem-BGrgQ_sW-C8p7wf23.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-p1cUyL8l-DeaLZxZn.js → BusinessVerificationPage-p1cUyL8l-BN8WKgww.js} +1 -1
- package/dist/assets/{CardNumberSubText-yVfOUJpr-DRIDUYcf.js → CardNumberSubText-yVfOUJpr-D5XQ2n29.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DAX8aTFq-CX_nfeg0.js → CashbackDetailPage-DAX8aTFq-YW4WJIzs.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-CTdVu2LX-CXvKoTcM.js → ChargeCardDetailPage-CTdVu2LX-DSwgzTlc.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BTf2sf_r-BIeWCtwJ.js → ChargeCardListPage-BTf2sf_r-C5-L9_Qa.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DEYusOGZ-BR9KGK-S.js → ChargeCardListTable-DEYusOGZ-MtRV5Xl2.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-BhIiSigy-CmcVMykk.js → ChargeCardPaymentHistoryPage-BhIiSigy-ID1bA4EQ.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-SMg6Bkmx-BIBCjTA5.js → ChargeCardPromoPage-SMg6Bkmx-BjPNbBgU.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-8jA-EjWA-SUTAHgR8.js → ChargeCardSetupPage-8jA-EjWA-DbKEc3_7.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CrsqrTNw-cq-ohGFk.js → ChargeCardStatementsPage-CrsqrTNw-DVYrYQ2b.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BnMEa1gU-D4KA1YbO.js → CheckDepositDrawerPage-BnMEa1gU-73A9vEEw.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BQsDuqwg-D4PksJ7s.js → CollapsableReportTable-BQsDuqwg-sJm6L2DR.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CxeWrQJH-XfC5iWX1.js → CompanyOfficerDetailsSection-CxeWrQJH-GcFrHlFv.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DUX32IvW-wDP-ayWY.js → CompanyPassportCard-DUX32IvW-Dpt7-JOV.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Cp0oulai-BQFU8qYi.js → CompanyPassportPage-Cp0oulai-Ci73yqJY.js} +1 -1
- package/dist/assets/{CompleteProfile-BdeEu2dc-DABogw0l.js → CompleteProfile-BdeEu2dc-BmnFGLZV.js} +1 -1
- package/dist/assets/{ConfettiBurst-C1IgWBaA-CL1o9dY6.js → ConfettiBurst-C1IgWBaA-Bl91CI5_.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-Cr0pUg_S.js → ConstrainedInnerElement-BeIpAPjB-BtrsEIyp.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-iFE1nb0J-tpGth2AK.js → CreateOrEditVendorPage-iFE1nb0J-BvIeaRhj.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CaTanv1T-DKlglNsr.js → CreditCardPaymentDrawerPage-CaTanv1T-BhpaEGCu.js} +1 -1
- package/dist/assets/{CurrencySelectField-BNcLy0zv-DUL30Rmr.js → CurrencySelectField-BNcLy0zv-div466fS.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-D_0kSaYs-DmoaOtfG.js → CustomerOnboardingActivationPage-D_0kSaYs-DTK1WHyA.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-YZ4WpsDD-CiqrDaPd.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B1jJ1XJX-Ec31gEaK.js → CustomerOnboardingDetailPageSkeleton-B1jJ1XJX-B-4hMoXO.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CyxHQxxQ-B3uyPHi-.js → CustomerOnboardingNoStepsPage-CyxHQxxQ-BZDgR2I2.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-Cj_k0rfN-dr4fZ7As.js → CustomerOnboardingPage-Cj_k0rfN-De0GRQSb.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BPRN6xyM-BLvLQxxG.js → CustomerOnboardingProductSuitePage-BPRN6xyM-CeViDZfk.js} +1 -1
- package/dist/assets/{Dashboard-DYpE_H2b-WMqZzzuP.js → Dashboard-DYpE_H2b-BOm3oeZY.js} +1 -1
- package/dist/assets/{DashboardReportPage-BB6dW8kR-BVA8DQgX.js → DashboardReportPage-BB6dW8kR-DNxVpy_r.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-DDLCSC57-BJ_WASPh.js → DashboardSidebarBackgroundAnimation-DDLCSC57-Ao5s0Ihd.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CxXM_Pse-aMnsSeAe.js → DepositAccTransactionItem-CxXM_Pse-D1S7x3dN.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-flz5jtjj-Tj1qKkuc.js → DepositAccTransactionListPage-flz5jtjj-Bz4v9BsN.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CswDexXc-CwmUyTco.js → DomesticWireDetailsPage-CswDexXc-BJIW-QwA.js} +1 -1
- package/dist/assets/{DownloadOverlay-Ck84lTok-DoSlSguE.js → DownloadOverlay-Ck84lTok-aSFJ0c0d.js} +1 -1
- package/dist/assets/{DrawerPage-Ctqr9Qke-DbWbSJy7.js → DrawerPage-Ctqr9Qke-URUnxXcO.js} +1 -1
- package/dist/assets/{EditPeoplePage-BiGeDyr0-BP5iQ9eS.js → EditPeoplePage-BiGeDyr0-BZ75ytwH.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DHIg51AQ-Du0u5yPi.js → EditReimbursementDetailPage-DHIg51AQ-Cnw1XcOG.js} +1 -1
- package/dist/assets/{EntityDetailPage-BsCWH1Al-WFaE0WQF.js → EntityDetailPage-BsCWH1Al-BK7eayl1.js} +1 -1
- package/dist/assets/{EntitySummarySection-ntuao-VM-fobvDD6S.js → EntitySummarySection-ntuao-VM-C84QCGM6.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-lptxncga-rbFk8U51.js → ExpenseAutomationOverviewPage-lptxncga-DTeGK-kQ.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-S1iaOuA5-DRC_L2v_.js → ExpenseAutomationPage-S1iaOuA5-B4nJhT16.js} +1 -1
- package/dist/assets/{ExpressPayPage-3UaLqRo7-BW2LLrbf.js → ExpressPayPage-3UaLqRo7-CeTmD7E_.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CLHp1LHp-eKI7eeEH.js → FeaturePreviewPage-CLHp1LHp-BnVQMdv0.js} +1 -1
- package/dist/assets/{FollowStepsSection-BY0dw_SN-iqWfg0Bg.js → FollowStepsSection-BY0dw_SN--Q4GHF9c.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CltHFSzG-CQET8EIq.js → GlobalReviewListPage-CltHFSzG-DSp6h9aU.js} +1 -1
- package/dist/assets/{InformationCardStack-CVoS_Bni-DRMXWlfL.js → InformationCardStack-CVoS_Bni-Ck8YsiKW.js} +1 -1
- package/dist/assets/{InsightsCardStack-YcKupOZZ-BYS9QdSX.js → InsightsCardStack-YcKupOZZ-CSJtH4A8.js} +1 -1
- package/dist/assets/{InsightsSection-BuCEgcAh-DX4KP6Gi.js → InsightsSection-BuCEgcAh-GnlaYKZ_.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-r_VwvwxS-D2fIzpgb.js → IntegrationsSettingsPage-r_VwvwxS-CVRHv-Ie.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-B2x6g-rb-BG86r2Q_.js → InternationalWireSwiftDetailsPage-B2x6g-rb-D21vi6Sz.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-B-sxkGbq-BzbYdtzf.js → InternationalWireVerificationPage-B-sxkGbq-DhsQ7fQT.js} +1 -1
- package/dist/assets/{InviteFormPage-CrFWGpJE-DomTNTMP.js → InviteFormPage-CrFWGpJE-86vzu8WF.js} +1 -1
- package/dist/assets/{InvitePageListView-BsGwCg5B-DlrJVwFE.js → InvitePageListView-BsGwCg5B-DFVe3Ibq.js} +1 -1
- package/dist/assets/{InvitePeoplePage-D0-MjKb2-B1ShEIts.js → InvitePeoplePage-D0-MjKb2-BK8Ukfta.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-BUF7Ko_U-1xPxHQJp.js → InvoiceUploadSection-BUF7Ko_U-3g_GggvD.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-D5sn5jt4-BWcpzIYT.js → IssueChargeCardPage-D5sn5jt4-bqK6aCuV.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Ds1BeyG_-FoXd8L7U.js → LabeledAddressValue-Ds1BeyG_-Bf5S3Y19.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D_Ztmm7--tsnB0bq1.js → LabeledAddressValueField-D_Ztmm7--Bvi_g-V-.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DGV1Bz6o-CCbHpDl4.js → LabeledControlledCheckBoxField-DGV1Bz6o-O1RvYLy5.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CTmUlcyk-Dx11AHn5.js → LabeledCreatableSingleSelectField-CTmUlcyk-99oSpLd_.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BwHjf12U-ti56UUdB.js → LabeledDocumentField-BwHjf12U-BbHVIemM.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BaAHosJI-CDWZK3Xu.js → LabeledDropDownFormattedTextField-BaAHosJI-Cqs01SSL.js} +1 -1
- package/dist/assets/{LabeledText-CVYTNBOt-LIAQJcbl.js → LabeledText-CVYTNBOt-B3czXRQl.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CnK0wLL0-CdsEapB3.js → LabeledUserSingleSelectWithSubtitlesField-CnK0wLL0-cXxhJQvr.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-B2eu9WQ_-CXTTkytl.js → LabeledZeniRolesDropDownField-B2eu9WQ_-_yYwUBUy.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-DTU4Piv4-CzTizu8e.js → LinkJETransactionPage-DTU4Piv4-GSgL7s8y.js} +1 -1
- package/dist/assets/{LockCardPage-9rnmj-hG-Dgtzvq-m.js → LockCardPage-9rnmj-hG-CiEUnWU1.js} +1 -1
- package/dist/assets/{LowBalancePopup-CCl7fzh9-CRJeCFG3.js → LowBalancePopup-CCl7fzh9-BqHHkJTM.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-B5oowluv-pi_Q89s3.js → MagicLinkACHDetailsPage-B5oowluv-Deo_sGrN.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BohAWQ_F-BBgkEcbM.js → MagicLinkDomesticWireDetailsPage-BohAWQ_F-DquvuUXE.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CRx-EIj--rUZQXW3V.js → MagicLinkInternationalWireDetailsPage-CRx-EIj--FIdT3qwC.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-q5XLFFKd-IcgduK3D.js → MagicLinkSuccessPage-q5XLFFKd-U7XKvwRE.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-ClWFjqQr-B7_1AUkD.js → MagicLinkTitleSection-ClWFjqQr-BrtJj4Tz.js} +1 -1
- package/dist/assets/{MailingDetailsSection-Dle_aLif-C9MEuFNg.js → MailingDetailsSection-Dle_aLif-Bkizo4_u.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BC47a22v-9PSEA4Wu.js → MyBankConnectionsSettingsPage-BC47a22v-Y8S0squG.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BJ_kQQGd-lBfLcXgn.js → MyPendingActivationChargeCardListPage-BJ_kQQGd-CPeJ9MgF.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-C70z69ea-CMxdjCdW.js → MyProfileSettingsPage-C70z69ea-Bn-oEdl7.js} +1 -1
- package/dist/assets/{NavBarWithPicker-CRQ9DzK7-Cs0J7mYU.js → NavBarWithPicker-CRQ9DzK7-DeXdumSu.js} +1 -1
- package/dist/assets/{NavigationArrow-CWRgkV1y-5nUqXc-t.js → NavigationArrow-CWRgkV1y-DGuYRue3.js} +1 -1
- package/dist/assets/{NavigationDots-BDKBgUe6-CeOovYs1.js → NavigationDots-BDKBgUe6-D6OiIpc_.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-B_mViG5F-TkGICDRh.js → NewGlobalMerchantPage-B_mViG5F-DJDTV5Bu.js} +1 -1
- package/dist/assets/{NoDataChart-CJyaj_wD-Ceo15OJ6.js → NoDataChart-CJyaj_wD-CLCfggTW.js} +1 -1
- package/dist/assets/{NoDataTable-BroHHbsa-C2KBPOR3.js → NoDataTable-BroHHbsa-DNifFBEh.js} +1 -1
- package/dist/assets/{NotFoundPage-B-CdwYLM-04zajBZ5.js → NotFoundPage-B-CdwYLM-CKuMR38Q.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DrMp-0h0-CNJC7C_o.js → NotificationSettingsPage-DrMp-0h0-DVnr2vZM.js} +1 -1
- package/dist/assets/{NotificationsListConfig-Cl713fZg-qRofkxh7.js → NotificationsListConfig-Cl713fZg-B--pN0t0.js} +1 -1
- package/dist/assets/{NotificationsPage-Dh4xulau-_5iAw31w.js → NotificationsPage-Dh4xulau-smvSlE_7.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BslfnDh3-53j8zSVl.js → OpExByVendorPage-BslfnDh3-BJLp4ZLq.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-CW30kf30.js → OverlayContainerPage-D4QU0p4o-DQTGCjse.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BYnaGvO3-Bs93z5El.js → PandLWithForecastPage-BYnaGvO3-ClLqFtVo.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CR6xX1bB-BwbAQyjl.js → PaymentAccountSetupBillingAddressSection-CR6xX1bB-DNewQkOJ.js} +1 -1
- package/dist/assets/{PeoplePage-BRC7-Yol-C9rira3P.js → PeoplePage-BRC7-Yol-B1vXMbU8.js} +1 -1
- package/dist/assets/{Preview-BY6UeCTa.js → Preview-Db4b5z-L.js} +1 -1
- package/dist/assets/{ProductsCarousel-BgltUKwq-Dj-tP9zJ.js → ProductsCarousel-BgltUKwq-Bcl679ug.js} +1 -1
- package/dist/assets/{PromoBaseCards-DMleWayu-BFTkh-l1.js → PromoBaseCards-DMleWayu-BWK8Hl9V.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BSKkJDPD-CJILPjk5.js → QBOConnectionDialog-BSKkJDPD-CA_heqte.js} +1 -1
- package/dist/assets/{QBOSetupSection-YQ4TKOTA-B5TQNN0G.js → QBOSetupSection-YQ4TKOTA-BiZsedzI.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BFxCrrVt-CFZDA3-E.js → ReimbursementApprovalRuleDetailPage-BFxCrrVt-pXX55aiy.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DQDbyY1K-B5lF3vkz.js → ReimbursementApprovalRulesPage-DQDbyY1K-BsQBNWDY.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-gAg8C98b-DuQNQ-y5.js → ReimbursementDetailPage-gAg8C98b-C67lcEXb.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DtKtr2rP-C8cL3Mv7.js → ReimbursementPromoPage-DtKtr2rP-Dg6olzyI.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-BdUoR2HM-CIGHv-6r.js → ReimbursementSetUpPage-BdUoR2HM-C6yi61Sl.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BL6oI4fi-DUFvxQjQ.js → ReimbursementsBulkReviewDrawerPage-BL6oI4fi-CBxqctty.js} +1 -1
- package/dist/assets/{ReloadCard-B3OtOvVI-DVK4TeBa.js → ReloadCard-B3OtOvVI-C3x9vrdG.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-Cmv2xs7h-CJ6mu-Rp.js → ReportTableViewSelector-Cmv2xs7h-1VEhBO1Q.js} +1 -1
- package/dist/assets/{ReportsPage-SWC6uIs--DupC08g-.js → ReportsPage-SWC6uIs--Dh5kXMlO.js} +1 -1
- package/dist/assets/{RevenueChart-CZlAswBG-DPlV94YS.js → RevenueChart-CZlAswBG-wAQAE3oU.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BW3pZ3ws-BH9zDrcw.js → ReviewDetailsPage-BW3pZ3ws-BdPCHCud.js} +1 -1
- package/dist/assets/{ReviewOverlay-BhFwGG6t-C0m5jD2s.js → ReviewOverlay-BhFwGG6t-BX9_V7mr.js} +1 -1
- package/dist/assets/{RoleWithToolTip-D74SWfZd-B2mOCrt1.js → RoleWithToolTip-D74SWfZd-AFxnb1mN.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CdmehDsJ-Dd48HqBm.js → ScheduleDetailsFixedAssetsPage-CdmehDsJ-B5_YsYgB.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-DA1eGkzI-a0yDswoo.js → ScheduleDetailsPage-DA1eGkzI-BMydzX2w.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BvGIwZmi-Br-m9rdL.js → ScheduleSequenceTable-BvGIwZmi-D7qMwAGE.js} +1 -1
- package/dist/assets/{ScreenRoutes-D3PxnqOE.js → ScreenRoutes-DDpZSUL_.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DM4CvIFN-CPQ8K94t.js → SetUpAccountSection-DM4CvIFN-9Hc1EHt9.js} +1 -1
- package/dist/assets/{SignIn-DU3HuwJr-CXMwOpi4.js → SignIn-DU3HuwJr-DNrEbsRr.js} +1 -1
- package/dist/assets/{SignInScreen-PoBHP4-4.js → SignInScreen-BmjyEVe2.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-VR4dPKBw-DHyDM03E.js → SpendManagementListViewPage-VR4dPKBw-DE4c8o5w.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CdYRrtcC-DFgavPhh.js → SpendManagementPerTabPage-CdYRrtcC-RadaAbCP.js} +1 -1
- package/dist/assets/{SpendManagementSection-C2Uw6UXF-BRw2L3H1.js → SpendManagementSection-C2Uw6UXF-MNub63uc.js} +1 -1
- package/dist/assets/{StatementItem-CS0N92J0-BsnAviIB.js → StatementItem-CS0N92J0-Dp0wIxfU.js} +1 -1
- package/dist/assets/{StatementsPage-DL8W4WLu-BH9E8ATR.js → StatementsPage-DL8W4WLu-cApkeuQn.js} +1 -1
- package/dist/assets/{StatusSwitcher-RY35Qzlp-DPptYPVp.js → StatusSwitcher-RY35Qzlp-oQrJGXDs.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CIhSt1_V-BGyVDCoP.js → SubTabSwitcher-CIhSt1_V-CoZl86-V.js} +1 -1
- package/dist/assets/{SummaryCard-iIQISRZL-Cx0NyzVM.js → SummaryCard-iIQISRZL-B7O4xItW.js} +1 -1
- package/dist/assets/{TaskManagementPage-CCC1QlZS-BHBkMyad.js → TaskManagementPage-CCC1QlZS-JBvE-T25.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BIA3BW1g-Bty5Ch9x.js → TimeRangeSwitcher-BIA3BW1g-rSuMPQyC.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BhV0yrj0-CbCl4A9y.js → TimeframeSwitcher-BhV0yrj0-BL8zVwr7.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CIAZXHb2-orP1uTMH.js → TimeframeSwitcherWithToggle-CIAZXHb2-E3MJxBK4.js} +1 -1
- package/dist/assets/{TopExCard-CPsxq74q-662cwF8z.js → TopExCard-CPsxq74q-C49y6jG2.js} +1 -1
- package/dist/assets/{TopExDetailPage-BGoq66Fs-0PJ8BVQb.js → TopExDetailPage-BGoq66Fs-CwwMwMZI.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-BW-qVpWu-D-8WEz2X.js → TransactionActivityLogPage-BW-qVpWu-bhkIBdNi.js} +1 -1
- package/dist/assets/{TransactionDetailPage-D0tW8GIH-C00b9e62.js → TransactionDetailPage-D0tW8GIH-8Bjw7ASm.js} +1 -1
- package/dist/assets/{TransactionList-T8gAOJc0-Dw9G55NV.js → TransactionList-T8gAOJc0-DRcmo7fh.js} +1 -1
- package/dist/assets/{TransactionListBig-CMjxUKt2-BhSVq9fm.js → TransactionListBig-CMjxUKt2-CTjRdpZ2.js} +1 -1
- package/dist/assets/{TransactionListPage-Bx6qszUl-B-5CDbC_.js → TransactionListPage-Bx6qszUl-z_ep6YnH.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-Ca7bgryb-CmVBYko3.js → TransactionVendorDetailPage-Ca7bgryb-BV3oKA_A.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DG6q94Ch-Cqord4XL.js → TransferDrawerPage-DG6q94Ch-pu0vH6ck.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-YNlUL3px-B_35sSeA.js → TreasuryOverviewPage-YNlUL3px-jVPZLuau.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-CBSYXvme-DpMWnl6i.js → TreasuryPromoPage-CBSYXvme-O_7jR4ww.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-D0YaCwv3-PNzj_mHV.js → TreasuryStatementsPage-D0YaCwv3-CGR_6VKm.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-Bln01PPe-DpJfleJK.js → TreasuryTaxLetterPage-Bln01PPe-CZAVerE4.js} +1 -1
- package/dist/assets/{TrendChart-DjKmnpsm-CS6VXx1C.js → TrendChart-DjKmnpsm-CNJiy6SH.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D2CSrQJG-DdbpQrSL.js → TrendWithTransactions-D2CSrQJG-DZA3eMEF.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-BhgJFJvY-Cs1YOJIy.js → UncategorizedAccountsMappingPage-BhgJFJvY-CiZ1MRsE.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-CtNIGtOS-DZq9w7mC.js → UnitIntegrationPage-CtNIGtOS-tpf5stHB.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-D44jXTDW-DwZWfezE.js → UploadAdditionalDocumentOverlay-D44jXTDW-Bm2et-3G.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BogFaSYy-BlnTHqfY.js → Vendor2FAPopup-BogFaSYy-D6e8fjkq.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Di9QJ0hA-BNrZk8u_.js → VendorACHDetailsPage-Di9QJ0hA-DJE_Wwf4.js} +1 -1
- package/dist/assets/{VendorDetailPage-DRr5ci0V-Du2p3ojh.js → VendorDetailPage-DRr5ci0V-lRn5ho6w.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-DCdG-eGI-IQvY9pai.js → VendorDomesticWireDetailsPage-DCdG-eGI-Due1x-7b.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C6mptSEx-B_hdSwqB.js → VendorFiling1099EditablePage-C6mptSEx-DKIY5sFf.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CLBTSreq-DCVG1u2-.js → VendorFirstReviewPage-CLBTSreq-N_OixmZA.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-oMdWj41X-CmZF5xAN.js → VendorInternationalWireDetailsPage-oMdWj41X-A8ODxGa-.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CM2bFEbE-B7IN2oYH.js → VendorInternationalWireSwiftDetailsPage-CM2bFEbE-SfDYAYxn.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Cr_m8Jyi-CiH59Azu.js → VendorsAccountsSection-Cr_m8Jyi-0Qp4rq2N.js} +1 -1
- package/dist/assets/{VerifyDevice-DrXK_7gG-CEX4QcR9.js → VerifyDevice-DrXK_7gG-Dn8Ayek5.js} +1 -1
- package/dist/assets/{VideoPlayer-BZe4PqnR-CX1XPKSp.js → VideoPlayer-BZe4PqnR-Dkxm8OQa.js} +2 -2
- package/dist/assets/{VideoPopup-BaEQAfak-DFKT4R55.js → VideoPopup-BaEQAfak-zc_xVUAu.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-COJ1hjAD-BEWCjyIu.js → WarningsDrawerPage-COJ1hjAD-BDGnJbmR.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Chx3JWsc-DUW0nJwl.js → ZeniAccountDetailPage-Chx3JWsc-Dh8FGA44.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-6RhsoQzy-B1q4otvI.js → ZeniAccountListViewPage-6RhsoQzy-BBKCpzS8.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-10K_Qgxx-DnALebZP.js → ZeniAccountNavBarPieces-10K_Qgxx-DWCqbyAV.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-ClXA4h8f-BJADOlI6.js → ZeniAccountPromoPage-ClXA4h8f--uJJOW-F.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-7YlBF0nq-BMd9Jfil.js → ZeniAccountSetupPage-7YlBF0nq-jwzQWSDs.js} +1 -1
- package/dist/assets/{ZeniCopyright-k2F7p5Nn-CWJt4f_H.js → ZeniCopyright-k2F7p5Nn-UlYiTzda.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CJY_ei3T-BQBKQlY-.js → ZeniTransferAmountSlider-CJY_ei3T-DYnBkBGW.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CNvnwL2z.js → add-to-wallet-DgdBD8_G-31qE8sbQ.js} +1 -1
- package/dist/assets/{analytics-rms9goNI.js → analytics-C4ZEAnU7.js} +1 -1
- package/dist/assets/{analyticsHelper-e2zBYls0-DsW-gRIg.js → analyticsHelper-e2zBYls0-Dvw2IXmr.js} +1 -1
- package/dist/assets/{analyticsHelper-DTNFmelW.js → analyticsHelper-fmqZ5AIa.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DpZb0ICZ.js → arrow-south-east-round-PEovUgvH-RFK5ZfVF.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CBISKKCi.js → auto-transfer-rule-mbafm5D3-3HkGI8i2.js} +1 -1
- package/dist/assets/{chartTypes-D0t0a86R-VgxTrMCK.js → chartTypes-D0t0a86R-BGcgLYNl.js} +1 -1
- package/dist/assets/{commonDimensions-BwCds81U-kEodPKRG.js → commonDimensions-BwCds81U-B_oOkA-X.js} +1 -1
- package/dist/assets/{constants-C3kp1fkP.js → constants-CV58qqTz.js} +1 -1
- package/dist/assets/{core-B_30foAD.js → core-wqFBlxng.js} +1 -1
- package/dist/assets/{dash.all.min-3-z_MPR8.js → dash.all.min-C8_0GLZL.js} +1 -1
- package/dist/assets/{detailCommon-CFEglqRw-DcI3Dm8c.js → detailCommon-CFEglqRw-DsNpAynS.js} +1 -1
- package/dist/assets/{downloadPdf-BfjQscZh-CeCugFTI.js → downloadPdf-BfjQscZh-DCh5sJYq.js} +1 -1
- package/dist/assets/{empty-DyZfcN1I.js → empty-Dpo74x3U.js} +1 -1
- package/dist/assets/{empty-BB-5X2tp.js → empty-J6XEjmtN.js} +1 -1
- package/dist/assets/{epic-CXeU0a14.js → epic-DeVyKDCM.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-tVleHIYS.js → gift-box-Cmt9OgIZ-Bx3r4Rmo.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CYR0rF_u.js → graphic-no-data-l-DU4J8fDt-Bobqy_Dj.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DI-E_991.js → graphic-no-data-net-burn-l-CzmycA0m-EzoWZv3m.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DRFlkqA2.js → handshake-BPg58FML-BsKb6bUZ.js} +1 -1
- package/dist/assets/{index-BoyomC_-.js → index-BA8YzNg_.js} +1 -1
- package/dist/assets/{index-BhfvNbOl.js → index-BImriIxC.js} +1 -1
- package/dist/assets/{index-DgHTMbc3.js → index-BTHHawqU.js} +1 -1
- package/dist/assets/{index-DVfmIUIY.js → index-B_aJ-4gk.js} +1 -1
- package/dist/assets/{index-BR9aIv1A.js → index-CO-bMRwP.js} +7 -7
- package/dist/assets/{index-4xstgUx1.js → index-CgSbMXsr.js} +1 -1
- package/dist/assets/{index-BCh0qUkM.js → index-DOY_IL-h.js} +1 -1
- package/dist/assets/{lexical-CcL2Fd1i.js → lexical-BoeLZMBG.js} +1 -1
- package/dist/assets/{liveblocks-B8f0lmpe.js → liveblocks-C_0uFgnE.js} +1 -1
- package/dist/assets/{lottie-CbICbNKh.js → lottie-vX2aCiHC.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-D-j3xrlE-C3TmZv3p.js → mapLoadingInProgressToTreeNode-D-j3xrlE-BuSM26pJ.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D84rlDgo-CA3ifSFr.js → mapSectionWithAcOnlyToTreeNode-D84rlDgo-BXicrSZo.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode--_h7d27O-sxGNKTOK.js → mapSpacerToTreeNode--_h7d27O-3AH87Y-5.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BqoG_HF--CRhmAO8j.js → mapTimeframeBalancesToTreeNode-BqoG_HF--CWdLbYAe.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DPb6o33r-DFBVfNq3.js → mapTimeframeBalancesToTreeNode-DPb6o33r-CcAO4fKB.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-CTBKyUYq.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-BYTfQRPS.js} +1 -1
- package/dist/assets/{mui-C7Q1opAD.js → mui-DST9v61R.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DfEuZBUZ.js → page-detail-CWX5S47F-CX2_pnLQ.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-Udxivyx_.js → panelSelectedMixin-CzfD5-Zs-DzfKhb-V.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-VWYNvRzB.js → radio-default-CiSgisfh-DWuLeWvl.js} +1 -1
- package/dist/assets/{react-CEhgfqKO.js → react-Bdbb-qpI.js} +2 -2
- package/dist/assets/{react-B1skuV78.js → react-C-gUpVr3.js} +1 -1
- package/dist/assets/{react-DODYMrDc.js → react-CqcDCg28.js} +1 -1
- package/dist/assets/{react-zf2AM5gr.js → react-CuFuRIqn.js} +1 -1
- package/dist/assets/{react-D-QPbFx5.js → react-DeL1h_04.js} +1 -1
- package/dist/assets/{react-OE6vDDlS.js → react-DyzEkHyB.js} +1 -1
- package/dist/assets/{react-gaSEjZmU.js → react-JbqcdLL9.js} +1 -1
- package/dist/assets/{react-C5VDu1Xe.js → react-r5jJPXE4.js} +1 -1
- package/dist/assets/{recharts-v_b66Qfi.js → recharts-C0oa8tki.js} +1 -1
- package/dist/assets/{sentry-BwoJfpTa.js → sentry-NCyz3Pql.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DlZ9ml05.js → shield-DOlUxcFf-6ObOq3VF.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-mNZ5ym9S-BQfS02g5.js → toCOABalancesWithID-mNZ5ym9S-7xMnMYJK.js} +1 -1
- package/dist/assets/{toChartData-BVSCRQYT-CU2W4nbR.js → toChartData-BVSCRQYT-BUK8BAEI.js} +1 -1
- package/dist/assets/{uploadAttachment-D3ybtHtR-D84dG_-j.js → uploadAttachment-D3ybtHtR-BzZPNb4S.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-C6WyXewN.js → uploadReceipts-Dge0cNF1-BA-8RUe2.js} +1 -1
- package/dist/assets/{url-BcaeVwpg.js → url-CdYlnTNu.js} +1 -1
- package/dist/assets/{url-o9j2r9Zq.js → url-DRj48dKg.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-CM12epgA.js → useLongPress-GCK2COYQ-iwHf_rSN.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-Cyu4xp0r.js → usp-line-BBd1wKwW-D52dvUDc.js} +1 -1
- package/dist/assets/{utils-C75CTJHa.js → utils-CjOWHIlw.js} +1 -1
- package/dist/assets/{zeni-epic-state-Deo9yJpd.js → zeni-epic-state-CyVq3DT4.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-YZ4WpsDD-CT9Ps13n.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as F,J as N,F as j,V as t,bC as G,T as V,aP as m,o,y as r,al as M,aN as P,bT as T,cp as q,cq as J,cr as K,d0 as O,u as l,b9 as Z,R as k,b8 as Q,p as z,cZ as X,bt as Y,b as ee}from"./index-
|
|
1
|
+
import{e as F,J as N,F as j,V as t,bC as G,T as V,aP as m,o,y as r,al as M,aN as P,bT as T,cp as q,cq as J,cr as K,d0 as O,u as l,b9 as Z,R as k,b8 as Q,p as z,cZ as X,bt as Y,b as ee}from"./index-CO-bMRwP.js";import{n as i}from"./mui-DST9v61R.js";import{a as te}from"./sentry-NCyz3Pql.js";import"./liveblocks-C_0uFgnE.js";import"./core-wqFBlxng.js";import"./recharts-C0oa8tki.js";import"./zeni-epic-state-CyVq3DT4.js";import"./lottie-vX2aCiHC.js";import"./analytics-C4ZEAnU7.js";import"./lexical-BoeLZMBG.js";import"./utils-CjOWHIlw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="74bc97a5-5b84-48c8-8d31-c0173b135f4a",e._sentryDebugIdIdentifier="sentry-dbid-74bc97a5-5b84-48c8-8d31-c0173b135f4a")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},E={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:x=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[g,w]=te.useState(!1),n=N(),{range:h}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},U={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},d.userId))]},H))})}),g?t.jsx(q,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(J,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as Mt,a8 as Rt,J as Pt,e as Bt,cd as Nt,y as m,F as et,gh as Lt,gj as _t,gk as Ot,V as t,cp as Ae,cq as Me,cr as Re,bC as Pe,aP as y,bo as Wt,dw as Et,gl as Ft,gw as Be,o as a,gm as Ne,fi as b,gp as w,fl as x,aN as Le,fh as _e,b as V,gr as Oe,aR as Kt,ao as Ut,gs as Vt,gt as re,bx as Gt,gu as Ht,C as Yt,R as Jt,a as qt,al as tt,b9 as it,p as G,am as Xt,bV as Zt,ai as Qt,gO as ei,gK as ti,u as c,ci as ii,cX as ai}from"./index-BR9aIv1A.js";import{a as p}from"./sentry-BwoJfpTa.js";import{n as r}from"./mui-C7Q1opAD.js";import{a as ri}from"./liveblocks-B8f0lmpe.js";import{bL as oi,bP as ni,FL as li}from"./zeni-epic-state-Deo9yJpd.js";import si from"./InvoiceUploadSection-BUF7Ko_U-1xPxHQJp.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-B_30foAD.js";import"./lottie-CbICbNKh.js";import"./recharts-v_b66Qfi.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.js";import"./AttachmentView-MqDuu6PB-C1zlk39q.js";import"./uploadReceipts-Dge0cNF1-C6WyXewN.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="a03280c6-9538-4a75-b533-69b48dfeb5f3",e._sentryDebugIdIdentifier="sentry-dbid-a03280c6-9538-4a75-b533-69b48dfeb5f3")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new Jt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,J]=p.useState(!1),[ct,q]=p.useState(!1),[X,Z]=p.useState("approved"),N=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ye?.():S.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{q(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("rejected"),q(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:S.title}),descriptionComponent:t.jsx(Me,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Je,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,j.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),j.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&J(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:X==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||X==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:X==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>J(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!B&&Ct===!0?t.jsx(ji,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>J(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
1
|
+
import{aw as Mt,a8 as Rt,J as Pt,e as Bt,cd as Nt,y as m,F as et,gh as Lt,gj as _t,gk as Ot,V as t,cp as Ae,cq as Me,cr as Re,bC as Pe,aP as y,bo as Wt,dw as Et,gl as Ft,gw as Be,o as a,gm as Ne,fi as b,gp as w,fl as x,aN as Le,fh as _e,b as V,gr as Oe,aR as Kt,ao as Ut,gs as Vt,gt as re,bx as Gt,gu as Ht,C as Yt,R as Jt,a as qt,al as tt,b9 as it,p as G,am as Xt,bV as Zt,ai as Qt,gO as ei,gK as ti,u as c,ci as ii,cX as ai}from"./index-CO-bMRwP.js";import{a as p}from"./sentry-NCyz3Pql.js";import{n as r}from"./mui-DST9v61R.js";import{a as ri}from"./liveblocks-C_0uFgnE.js";import{bL as oi,bP as ni,FL as li}from"./zeni-epic-state-CyVq3DT4.js";import si from"./InvoiceUploadSection-BUF7Ko_U-3g_GggvD.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-wqFBlxng.js";import"./lottie-vX2aCiHC.js";import"./recharts-C0oa8tki.js";import"./analytics-C4ZEAnU7.js";import"./lexical-BoeLZMBG.js";import"./utils-CjOWHIlw.js";import"./AttachmentView-MqDuu6PB-DMzTqafr.js";import"./uploadReceipts-Dge0cNF1-BA-8RUe2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="a03280c6-9538-4a75-b533-69b48dfeb5f3",e._sentryDebugIdIdentifier="sentry-dbid-a03280c6-9538-4a75-b533-69b48dfeb5f3")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new Jt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,J]=p.useState(!1),[ct,q]=p.useState(!1),[X,Z]=p.useState("approved"),N=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ye?.():S.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{q(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("rejected"),q(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:S.title}),descriptionComponent:t.jsx(Me,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Je,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,j.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),j.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&J(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:X==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||X==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:X==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>J(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!B&&Ct===!0?t.jsx(ji,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>J(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as ne,e as S,J as k,aQ as le,V as e,aP as a,ft as ae,bC as de,r as u,ae as d,F,o as r,aq as ce,c as me,aT as E,am as pe,y as xe,p as z,cE as he,aU as ue,ba as ge,u as we}from"./index-
|
|
1
|
+
import{aw as ne,e as S,J as k,aQ as le,V as e,aP as a,ft as ae,bC as de,r as u,ae as d,F,o as r,aq as ce,c as me,aT as E,am as pe,y as xe,p as z,cE as he,aU as ue,ba as ge,u as we}from"./index-CO-bMRwP.js";import{a as j}from"./sentry-NCyz3Pql.js";import{n as s}from"./mui-DST9v61R.js";import{FK as je,bT as fe}from"./zeni-epic-state-CyVq3DT4.js";import{C as be}from"./VideoPopup-BaEQAfak-zc_xVUAu.js";import{M as v}from"./usp-line-BBd1wKwW-D52dvUDc.js";import"./liveblocks-C_0uFgnE.js";import"./core-wqFBlxng.js";import"./recharts-C0oa8tki.js";import"./lottie-vX2aCiHC.js";import"./analytics-C4ZEAnU7.js";import"./lexical-BoeLZMBG.js";import"./utils-CjOWHIlw.js";import"./VideoPlayer-BZe4PqnR-Dkxm8OQa.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="6f43c6ff-7c8a-466d-b425-aa67367d06f6",i._sentryDebugIdIdentifier="sentry-dbid-6f43c6ff-7c8a-466d-b425-aa67367d06f6")}catch{}})();const V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Ee,J as Te,aQ as N,a9 as Ge,cF as qe,F as Ve,aV as Ce,V as t,fb as Je,p as J,y as s,bC as Ze,T as Qe,ac as Ke,fu as ve,dR as Xe,fv as Ye,bw as et,dH as tt,aR as it,o as a,fx as nt,u as n,ci as ot,cS as at,c_ as lt,fG as ke,fH as $e,gg as st,r as rt,aP as Pe,R as Ae,bM as ct,ai as dt,bt as ut}from"./index-
|
|
1
|
+
import{e as Ee,J as Te,aQ as N,a9 as Ge,cF as qe,F as Ve,aV as Ce,V as t,fb as Je,p as J,y as s,bC as Ze,T as Qe,ac as Ke,fu as ve,dR as Xe,fv as Ye,bw as et,dH as tt,aR as it,o as a,fx as nt,u as n,ci as ot,cS as at,c_ as lt,fG as ke,fH as $e,gg as st,r as rt,aP as Pe,R as Ae,bM as ct,ai as dt,bt as ut}from"./index-CO-bMRwP.js";import{a as o}from"./sentry-NCyz3Pql.js";import{n as i}from"./mui-DST9v61R.js";import{bJ as mt}from"./zeni-epic-state-CyVq3DT4.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-D44jXTDW-Bm2et-3G.js";import"./liveblocks-C_0uFgnE.js";import"./core-wqFBlxng.js";import"./recharts-C0oa8tki.js";import"./lottie-vX2aCiHC.js";import"./analytics-C4ZEAnU7.js";import"./lexical-BoeLZMBG.js";import"./utils-CjOWHIlw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="0594bd32-8073-4ea0-a5af-0745c088a9e0",e._sentryDebugIdIdentifier="sentry-dbid-0594bd32-8073-4ea0-a5af-0745c088a9e0")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Te(),D=Ee(),{formState:{errors:Q},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:F,mileageStatus:b}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Ve.getLocalizedStrings(),{reimbursement:ee}=Y,[S,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,cp as V,cq as M,cr as q,ka as W,aY as Y,F as z}from"./index-
|
|
1
|
+
import{V as f,cp as V,cq as M,cr as q,ka as W,aY as Y,F as z}from"./index-CO-bMRwP.js";import{a as b}from"./sentry-NCyz3Pql.js";import{Gi as G}from"./zeni-epic-state-CyVq3DT4.js";import{u as J}from"./ReviewOverlay-BhFwGG6t-BX9_V7mr.js";import"./liveblocks-C_0uFgnE.js";import"./core-wqFBlxng.js";import"./recharts-C0oa8tki.js";import"./mui-DST9v61R.js";import"./lottie-vX2aCiHC.js";import"./analytics-C4ZEAnU7.js";import"./lexical-BoeLZMBG.js";import"./utils-CjOWHIlw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="f740d78f-a015-4a71-9cb3-ed16730169a9",e._sentryDebugIdIdentifier="sentry-dbid-f740d78f-a015-4a71-9cb3-ed16730169a9")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=z.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[S,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,Z]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,x=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=K(x);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,G(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=X(p,x,D,h),T=e.fetchState==="Completed"&&x===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},N=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[S?f.jsx(V,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(J,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&x===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:Y("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},K=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},X=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,S=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",S?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as l,V as r,aM as a,b2 as f,F as y,aP as m,aS as h,bE as g,ai as u,o as c,b3 as b}from"./index-
|
|
1
|
+
import{e as l,V as r,aM as a,b2 as f,F as y,aP as m,aS as h,bE as g,ai as u,o as c,b3 as b}from"./index-CO-bMRwP.js";import{n as d}from"./mui-DST9v61R.js";import{a as s}from"./sentry-NCyz3Pql.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="03ad42ea-b198-4eb9-b5f2-cdf0aa146976",e._sentryDebugIdIdentifier="sentry-dbid-03ad42ea-b198-4eb9-b5f2-cdf0aa146976")}catch{}})();function w({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=d(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(b,{children:({height:n,width:i})=>r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as P,aR as $e,o as a,F as oe,cf as ve,cg as ke,ch as Ce,ci as je,cj as Ie,am as he,ck as Se,ai as Ne,aD as X,bE as Pe,u as f,aV as De,al as Oe,at as Fe}from"./index-
|
|
1
|
+
import{e as ee,J as de,cd as xe,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as P,aR as $e,o as a,F as oe,cf as ve,cg as ke,ch as Ce,ci as je,cj as Ie,am as he,ck as Se,ai as Ne,aD as X,bE as Pe,u as f,aV as De,al as Oe,at as Fe}from"./index-CO-bMRwP.js";import{a as u,P as ue}from"./sentry-NCyz3Pql.js";import{n as d}from"./mui-DST9v61R.js";import{R as D,I as Te}from"./CollapsableReportTable-BQsDuqwg-sJm6L2DR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b18185d3-f007-4e54-8c6b-363d1e5e7f27",e._sentryDebugIdIdentifier="sentry-dbid-b18185d3-f007-4e54-8c6b-363d1e5e7f27")}catch{}})();const R=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ee=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Ae(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(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ee(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,n){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ae(n)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:n.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
2
|
padding: 0 ${a.sp3} 0 ${a.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{J as W,e as G,F as y,aw as ge,V as r,bO as _e,aP as P,bD as be,bC as Se,o as w,aT as we,T as ye,y as B,bP as Ce,u as S,D as A,aD as K,A as xe,aV as Oe,as as Re,bL as Ae}from"./index-BR9aIv1A.js";import{a as T,P as X}from"./sentry-BwoJfpTa.js";import{n as _}from"./mui-C7Q1opAD.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Te,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-Deo9yJpd.js";import{m as z,l as q}from"./analyticsHelper-e2zBYls0-DsW-gRIg.js";import{x as Ne}from"./ReportTableViewSelector-Cmv2xs7h-CJ6mu-Rp.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-BIA3BW1g-Bty5Ch9x.js";import{M as Me}from"./TimeframeSwitcherWithToggle-CIAZXHb2-orP1uTMH.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-Ck84lTok-DoSlSguE.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-BQsDuqwg-D4PksJ7s.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-D84rlDgo-CA3ifSFr.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BqoG_HF--CRhmAO8j.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-CTBKyUYq.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-D-j3xrlE-C3TmZv3p.js";import"./liveblocks-B8f0lmpe.js";import"./core-B_30foAD.js";import"./recharts-v_b66Qfi.js";import"./lottie-CbICbNKh.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.js";import"./TimeframeSwitcher-BhV0yrj0-CbCl4A9y.js";import"./page-detail-CWX5S47F-DfEuZBUZ.js";import"./AccountRow-D3aEGfjh-CGXQQRag.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d2554279-83ec-429c-999a-e6d2a06195b3",e._sentryDebugIdIdentifier="sentry-dbid-d2554279-83ec-429c-999a-e6d2a06195b3")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
1
|
+
import{J as W,e as G,F as y,aw as ge,V as r,bO as _e,aP as P,bD as be,bC as Se,o as w,aT as we,T as ye,y as B,bP as Ce,u as S,D as A,aD as K,A as xe,aV as Oe,as as Re,bL as Ae}from"./index-CO-bMRwP.js";import{a as T,P as X}from"./sentry-NCyz3Pql.js";import{n as _}from"./mui-DST9v61R.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Te,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-CyVq3DT4.js";import{m as z,l as q}from"./analyticsHelper-e2zBYls0-Dvw2IXmr.js";import{x as Ne}from"./ReportTableViewSelector-Cmv2xs7h-1VEhBO1Q.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-BIA3BW1g-rSuMPQyC.js";import{M as Me}from"./TimeframeSwitcherWithToggle-CIAZXHb2-E3MJxBK4.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-Ck84lTok-aSFJ0c0d.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-BQsDuqwg-sJm6L2DR.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-D84rlDgo-BXicrSZo.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BqoG_HF--CWdLbYAe.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-BYTfQRPS.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-D-j3xrlE-BuSM26pJ.js";import"./liveblocks-C_0uFgnE.js";import"./core-wqFBlxng.js";import"./recharts-C0oa8tki.js";import"./lottie-vX2aCiHC.js";import"./analytics-C4ZEAnU7.js";import"./lexical-BoeLZMBG.js";import"./utils-CjOWHIlw.js";import"./TimeframeSwitcher-BhV0yrj0-BL8zVwr7.js";import"./page-detail-CWX5S47F-CX2_pnLQ.js";import"./AccountRow-D3aEGfjh-Bqr3BTQn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d2554279-83ec-429c-999a-e6d2a06195b3",e._sentryDebugIdIdentifier="sentry-dbid-d2554279-83ec-429c-999a-e6d2a06195b3")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bM as ge,al as R,bN as V,ba as F}from"./index-
|
|
1
|
+
import{e as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bM as ge,al as R,bN as V,ba as F}from"./index-CO-bMRwP.js";import{a as P,P as ee}from"./sentry-NCyz3Pql.js";import{n as x}from"./mui-DST9v61R.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-D0t0a86R-BGcgLYNl.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-mNZ5ym9S-7xMnMYJK.js";import{V as Q}from"./toChartData-BVSCRQYT-BUK8BAEI.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-C0oa8tki.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="349c91e9-ec72-4cbc-ba1f-4e17f797d24f",e._sentryDebugIdIdentifier="sentry-dbid-349c91e9-ec72-4cbc-ba1f-4e17f797d24f")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Ct,aw as Tt,y as u,f4 as Dt,f5 as It,f6 as Pt,V as t,f7 as kt,f8 as le,f9 as At,fa as Mt,fb as Bt,fc as Ft,aN as A,fd as Rt,aP as j,fe as Lt,ff as Me,fg as Be,fh as Fe,b as U,fi as O,p as S,fj as zt,fk as E,fl as _,fm as Nt,fn as Ot,bT as Re,o as n,aR as Et,u as s,F as _t,ag as Wt,c2 as Zt,R as Vt,a as Yt,fo as Gt,ci as Ht,al as se,am as ce,fp as Ut,fq as qt,bi as Kt,d as Jt,b9 as Xt,fr as Qt,aq as et,bK as en,ai as tt,bt as tn,fs as nn}from"./index-BR9aIv1A.js";import{a as Z}from"./sentry-BwoJfpTa.js";import{n as i}from"./mui-C7Q1opAD.js";import{bo as Le,bm as ze,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-Deo9yJpd.js";import{t as rn,o as dn}from"./LowBalancePopup-CCl7fzh9-CRJeCFG3.js";import{S as W}from"./LabeledText-CVYTNBOt-LIAQJcbl.js";import"./liveblocks-B8f0lmpe.js";import"./core-B_30foAD.js";import"./recharts-v_b66Qfi.js";import"./lottie-CbICbNKh.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="d480a05d-729f-4816-bc6d-2ab235b63b60",e._sentryDebugIdIdentifier="sentry-dbid-d480a05d-729f-4816-bc6d-2ab235b63b60")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),M=()=>{f(!1)},C=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(qt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:st})=>{const d=Ct(),c=Tt(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(C,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,G,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(T),endDate:oe(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Te=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Te,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Te,De,Ie,Pe,ke,Ae)}}},Se=()=>{Ce===!0&&H(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,H]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{H(!1),ne()},onClickAway:()=>{H(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(T)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(qe,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(qe,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(Ge,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(T)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ge,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>X(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(T)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ue,{children:t.jsx(Fe,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ue,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(q,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(T),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,G,d)}},primaryBtn:{label:We(b,G,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?H(!0):Se()},style:{width:Ze(!0,k,b,G,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Hn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(qn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},We=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,f,M,C)=>f?128:y&&!e&&C==="small"?"auto":M?165:m.footerButtonWidth.value(C),pn=i(en)`
|
|
1
|
+
import{J as Ct,aw as Tt,y as u,f4 as Dt,f5 as It,f6 as Pt,V as t,f7 as kt,f8 as le,f9 as At,fa as Mt,fb as Bt,fc as Ft,aN as A,fd as Rt,aP as j,fe as Lt,ff as Me,fg as Be,fh as Fe,b as U,fi as O,p as S,fj as zt,fk as E,fl as _,fm as Nt,fn as Ot,bT as Re,o as n,aR as Et,u as s,F as _t,ag as Wt,c2 as Zt,R as Vt,a as Yt,fo as Gt,ci as Ht,al as se,am as ce,fp as Ut,fq as qt,bi as Kt,d as Jt,b9 as Xt,fr as Qt,aq as et,bK as en,ai as tt,bt as tn,fs as nn}from"./index-CO-bMRwP.js";import{a as Z}from"./sentry-NCyz3Pql.js";import{n as i}from"./mui-DST9v61R.js";import{bo as Le,bm as ze,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-CyVq3DT4.js";import{t as rn,o as dn}from"./LowBalancePopup-CCl7fzh9-BqHHkJTM.js";import{S as W}from"./LabeledText-CVYTNBOt-B3czXRQl.js";import"./liveblocks-C_0uFgnE.js";import"./core-wqFBlxng.js";import"./recharts-C0oa8tki.js";import"./lottie-vX2aCiHC.js";import"./analytics-C4ZEAnU7.js";import"./lexical-BoeLZMBG.js";import"./utils-CjOWHIlw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="d480a05d-729f-4816-bc6d-2ab235b63b60",e._sentryDebugIdIdentifier="sentry-dbid-d480a05d-729f-4816-bc6d-2ab235b63b60")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),M=()=>{f(!1)},C=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(qt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:st})=>{const d=Ct(),c=Tt(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(C,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,G,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(T),endDate:oe(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Te=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Te,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Te,De,Ie,Pe,ke,Ae)}}},Se=()=>{Ce===!0&&H(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,H]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{H(!1),ne()},onClickAway:()=>{H(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(T)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(qe,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(qe,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(Ge,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(T)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ge,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>X(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(T)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ue,{children:t.jsx(Fe,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ue,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(q,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(T),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,G,d)}},primaryBtn:{label:We(b,G,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?H(!0):Se()},style:{width:Ze(!0,k,b,G,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Hn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(qn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},We=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,f,M,C)=>f?128:y&&!e&&C==="small"?"auto":M?165:m.footerButtonWidth.value(C),pn=i(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-BhFwGG6t-C0m5jD2s.js → ReviewOverlay-BhFwGG6t-BX9_V7mr.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as B,V as i,aP as m,o as r,aR as C,y as d,C as L,R as M,a as R,p as s,al as j,cC as D,T as I,ai as b,bh as W,u as n,en as G,h as _,iY as J,k9 as A}from"./index-
|
|
1
|
+
import{J as B,V as i,aP as m,o as r,aR as C,y as d,C as L,R as M,a as R,p as s,al as j,cC as D,T as I,ai as b,bh as W,u as n,en as G,h as _,iY as J,k9 as A}from"./index-CO-bMRwP.js";import{n as t}from"./mui-DST9v61R.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="6adc0502-6f28-4716-9683-b625fa327c01",e._sentryDebugIdIdentifier="sentry-dbid-6adc0502-6f28-4716-9683-b625fa327c01")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new M("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=B();return i.jsxs(H,{children:[i.jsx(U,{windowSize:a,children:i.jsx(X,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(O,{windowSize:a,children:[i.jsxs(Y,{windowSize:a,children:[i.jsx(q,{children:i.jsx(K,{windowSize:a,children:e})}),i.jsx(N,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(Q,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(C,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(I,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-D74SWfZd-B2mOCrt1.js → RoleWithToolTip-D74SWfZd-AFxnb1mN.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eQ as f,eR as h,V as s,bT as g,o as a,aP as l,F as y,an as x,ai as p}from"./index-
|
|
1
|
+
import{eQ as f,eR as h,V as s,bT as g,o as a,aP as l,F as y,an as x,ai as p}from"./index-CO-bMRwP.js";import{n}from"./mui-DST9v61R.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ea792fe8-a90a-4bf0-85a9-3e6f1740c556",e._sentryDebugIdIdentifier="sentry-dbid-ea792fe8-a90a-4bf0-85a9-3e6f1740c556")}catch{}})();const{hyphen:d}=y.getLocalizedStrings().common.strings,m=n.div``,b=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aQ as K,io as te,gH as me,eD as Je,ip as Me,a9 as Ve,iq as _e,cF as Pe,cG as Fe,V as a,ac as qe,cp as Ne,cq as Re,cr as Be,aR as We,ir as ze,is as Ue,F as be,aa as pe,it as Se,iu as $e,cS as Ge,J as Ke,iI as He,gM as ue,u as B,p as De,y as ye,cI as Ye,iv as Ze,iw as Qe,ix as Xe,o as _}from"./index-
|
|
1
|
+
import{aQ as K,io as te,gH as me,eD as Je,ip as Me,a9 as Ve,iq as _e,cF as Pe,cG as Fe,V as a,ac as qe,cp as Ne,cq as Re,cr as Be,aR as We,ir as ze,is as Ue,F as be,aa as pe,it as Se,iu as $e,cS as Ge,J as Ke,iI as He,gM as ue,u as B,p as De,y as ye,cI as Ye,iv as Ze,iw as Qe,ix as Xe,o as _}from"./index-CO-bMRwP.js";import{a as f}from"./sentry-NCyz3Pql.js";import{n as z}from"./mui-DST9v61R.js";import{G2 as et,G3 as tt}from"./zeni-epic-state-CyVq3DT4.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-BvGIwZmi-D7qMwAGE.js";import"./liveblocks-C_0uFgnE.js";import"./core-wqFBlxng.js";import"./recharts-C0oa8tki.js";import"./lottie-vX2aCiHC.js";import"./analytics-C4ZEAnU7.js";import"./lexical-BoeLZMBG.js";import"./utils-CjOWHIlw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="77ff7432-882f-43da-a7eb-dd4099466552",e._sentryDebugIdIdentifier="sentry-dbid-77ff7432-882f-43da-a7eb-dd4099466552")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aQ as F,io as X,gH as Ie,eD as Je,ip as we,a9 as Le,iq as Me,cF as Ve,cG as Pe,V as a,ac as _e,cp as Fe,cq as $e,cr as Be,aR as Ne,ir as Re,is as qe,F as De,aa as re,it as pe,iu as ze,cS as Ue,J as We,gM as me,u as Z,p as Ke,y as Ge,iv as He,iw as Ye,ix as Qe,o as w}from"./index-
|
|
1
|
+
import{aQ as F,io as X,gH as Ie,eD as Je,ip as we,a9 as Le,iq as Me,cF as Ve,cG as Pe,V as a,ac as _e,cp as Fe,cq as $e,cr as Be,aR as Ne,ir as Re,is as qe,F as De,aa as re,it as pe,iu as ze,cS as Ue,J as We,gM as me,u as Z,p as Ke,y as Ge,iv as He,iw as Ye,ix as Qe,o as w}from"./index-CO-bMRwP.js";import{a as D}from"./sentry-NCyz3Pql.js";import{n as P}from"./mui-DST9v61R.js";import{G2 as Xe,G3 as Ze,bL as et}from"./zeni-epic-state-CyVq3DT4.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-BvGIwZmi-D7qMwAGE.js";import"./liveblocks-C_0uFgnE.js";import"./core-wqFBlxng.js";import"./recharts-C0oa8tki.js";import"./lottie-vX2aCiHC.js";import"./analytics-C4ZEAnU7.js";import"./lexical-BoeLZMBG.js";import"./utils-CjOWHIlw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="85c00a19-7e0d-4146-82d3-b9af3bb6963d",e._sentryDebugIdIdentifier="sentry-dbid-85c00a19-7e0d-4146-82d3-b9af3bb6963d")}catch{}})();const R={labelWidth:new Ge(160,160,160)},nt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as A,e as Z,V as t,iy as ie,iz as le,R as oe,iA as xe,dT as fe,fh as ye,b as I,F as P,iB as we,ix as be,o as i,y as b,p as j,d as $e,aa as re,dO as je,cp as Se,cr as ke,cS as Q,c_ as ee,cY as ve,iC as K,iD as De,b3 as Ce,iE as Me,ct as ze,iF as Le,u as h,al as L,b9 as Ee,cq as Oe,ao as pe,c$ as Ie,b1 as ne,er as Ae,aR as Fe,iG as F,gg as Te,aN as Ve,iH as Be,aV as q,d0 as Je,bh as Re}from"./index-
|
|
1
|
+
import{J as A,e as Z,V as t,iy as ie,iz as le,R as oe,iA as xe,dT as fe,fh as ye,b as I,F as P,iB as we,ix as be,o as i,y as b,p as j,d as $e,aa as re,dO as je,cp as Se,cr as ke,cS as Q,c_ as ee,cY as ve,iC as K,iD as De,b3 as Ce,iE as Me,ct as ze,iF as Le,u as h,al as L,b9 as Ee,cq as Oe,ao as pe,c$ as Ie,b1 as ne,er as Ae,aR as Fe,iG as F,gg as Te,aN as Ve,iH as Be,aV as q,d0 as Je,bh as Re}from"./index-CO-bMRwP.js";import{n as o,c as J}from"./mui-DST9v61R.js";import{a as C}from"./sentry-NCyz3Pql.js";import{bh as G,G4 as Pe}from"./zeni-epic-state-CyVq3DT4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="56666a81-9027-4141-a5e8-f7639cdc56ff",e._sentryDebugIdIdentifier="sentry-dbid-56666a81-9027-4141-a5e8-f7639cdc56ff")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=P.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(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:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ae,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Fe,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{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 _e({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(Pe(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,qe=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{DY as Xf,DZ as Lt,D_ as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,D$ as Pa,hB as th,hC as rh,E0 as Gt,E1 as kt,h0 as nh,E2 as xr,E3 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E4 as kl,E5 as Nl,hQ as ah,hN as sh,E6 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E7 as hh,dJ as dh,cU as ph,i$ as Dl,E8 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E9 as Ne,ib as na,Ea as yh,j5 as vh,B as Re,Eb as ia,Ec as bh,gZ as wh,Ed as Eh,Ee as Fl,Ef as Sh,nj as qa,mQ as _h,Eg as Rh,mW as Zr,Eh as Oh,mY as Th,Ei as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ej as Ph,nm as jh,Ek as xh,n3 as qh,ng as Lh,El as kh,n7 as Nh,Em as Dh,En as _t,Eo as sa,Ep as Mh,Eq as Fh,lQ as Uh,lW as $l,Er as Vl,gu as Bh,D2 as Gl,Es as $h,CY as Vh,Et as Gh,Eu as zh,lZ as Hh,Ev as Zh,D7 as Wh,CX as Yh,qg as zl,Ew as Wr,Ex as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Ey as Xh,A0 as Qh,zO as ed,zR as td,Ez as rd,Ad as nd,A3 as id,c4 as od,bd as ad,EA as sd,EB as ft,EC as ud,ED as cd,EE as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-
|
|
1
|
+
import{DY as Xf,DZ as Lt,D_ as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,D$ as Pa,hB as th,hC as rh,E0 as Gt,E1 as kt,h0 as nh,E2 as xr,E3 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E4 as kl,E5 as Nl,hQ as ah,hN as sh,E6 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E7 as hh,dJ as dh,cU as ph,i$ as Dl,E8 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E9 as Ne,ib as na,Ea as yh,j5 as vh,B as Re,Eb as ia,Ec as bh,gZ as wh,Ed as Eh,Ee as Fl,Ef as Sh,nj as qa,mQ as _h,Eg as Rh,mW as Zr,Eh as Oh,mY as Th,Ei as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ej as Ph,nm as jh,Ek as xh,n3 as qh,ng as Lh,El as kh,n7 as Nh,Em as Dh,En as _t,Eo as sa,Ep as Mh,Eq as Fh,lQ as Uh,lW as $l,Er as Vl,gu as Bh,D2 as Gl,Es as $h,CY as Vh,Et as Gh,Eu as zh,lZ as Hh,Ev as Zh,D7 as Wh,CX as Yh,qg as zl,Ew as Wr,Ex as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Ey as Xh,A0 as Qh,zO as ed,zR as td,Ez as rd,Ad as nd,A3 as id,c4 as od,bd as ad,EA as sd,EB as ft,EC as ud,ED as cd,EE as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-CyVq3DT4.js";import{j as N}from"./liveblocks-C_0uFgnE.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-NCyz3Pql.js";import{P as dd,e as dt,J as Lr,f as pe,z as be,g as pd,W as md,y as Pe,i as kr,j as gd,E as Je,F as Nt,k as pt,m as at,T as Nr,o as tt,X as yd,n as vd,I as nt,M as ca,q as it,s as bd,Y as wd,u as Yr,t as Ed,v as Jl,w as Sd,x as Kl,A as Xl,D as Xo,G as _d,O as Rd,H as Od,K as Ql,L as Td,N as Id,Q as Ad,S as Cd,U as Pd,_ as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md}from"./index-CO-bMRwP.js";import{f as Fd}from"./analyticsHelper-fmqZ5AIa.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-wqFBlxng.js";import{D as Dr,n as Te,S as mt}from"./mui-DST9v61R.js";import{a as ve,b as Ud,c as Bd,d as $d,e as fa,f as Vd,g as Gd,h as zd,i as gt,j as Hd,k as xt,l as Mr,m as Zd,n as Dt,o as Wd}from"./utils-CjOWHIlw.js";import{r as ha}from"./empty-Dpo74x3U.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-CV58qqTz.js";import{r as Mt,a as Qd}from"./index-BImriIxC.js";import{r as ep}from"./index-BA8YzNg_.js";import"./recharts-C0oa8tki.js";import"./lottie-vX2aCiHC.js";import"./analytics-C4ZEAnU7.js";import"./lexical-BoeLZMBG.js";import"./url-DRj48dKg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9d3efe14-95b5-4048-90a2-6cc026af535e",e._sentryDebugIdIdentifier="sentry-dbid-9d3efe14-95b5-4048-90a2-6cc026af535e")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},tp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function rp(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function np(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const ip=ge(np,rp)(gd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:tp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(pd,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(md,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(ip,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},op=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ap=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function sp(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const up={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??up.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const cp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(lp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,lp=Te.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|