@zeniai/web-cockpit-ui 1.15.53-dev → 1.15.53-prod
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.
Potentially problematic release.
This version of @zeniai/web-cockpit-ui might be problematic. Click here for more details.
- package/dist/assets/{ACHDetailsPage-D2Xav-UW-DmDhM3Ya.js → ACHDetailsPage-D2Xav-UW-CNyXc2q1.js} +1 -1
- package/dist/assets/{AIPerformancePage-DlTdGosv-DQP6RhOc.js → AIPerformancePage-DlTdGosv-CoMZjNoX.js} +1 -1
- package/dist/assets/{AccountInfoPage-B8-8kUGD-CToACIO4.js → AccountInfoPage-B8-8kUGD-8w9j4dqk.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BS2TBUSE-CXMTjqRR.js → AccountInfoPageContent-BS2TBUSE-KTN9dU5f.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-aukulrV7-BdgVRhsa.js → AccountLockedInfoModal-aukulrV7-NIXWm48B.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-kQJld6_N-CswOv8sQ.js → AccountReconDetailsDrawerPage-kQJld6_N-C1vmK_-Z.js} +3 -3
- package/dist/assets/{AccountRow-BiEYR4Y1-CmfzC2gE.js → AccountRow-BiEYR4Y1-MB8pZeni.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DBQnDPXQ-D0z5TFOj.js → AccountsPromoCardStack-DBQnDPXQ-CwEqM90O.js} +6 -6
- package/dist/assets/{AddAddressForCardDrawer-DTnfk8K7-BFrcrnKm.js → AddAddressForCardDrawer-DTnfk8K7-B1Pu_NaB.js} +1 -1
- package/dist/assets/{AddToWalletPage-C4EwdLZJ-BInlB4A7.js → AddToWalletPage-C4EwdLZJ-CdqlY1S_.js} +11 -11
- package/dist/assets/{AgingReportsPage-vAvkUfOS-D7pZCvXq.js → AgingReportsPage-vAvkUfOS-DDqmwNch.js} +1 -1
- package/dist/assets/{AllUserItems-qrYg6Gdx-BCdM6c47.js → AllUserItems-qrYg6Gdx-59Jumbts.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BRYQMwo2-D_TMSgpW.js → ApAgingDetailPage-BRYQMwo2-B6tiaEyA.js} +1 -1
- package/dist/assets/{AppBasePage-DrE-W6d7-DvGq3J7n.js → AppBasePage-DrE-W6d7-3USQGPUO.js} +1 -1
- package/dist/assets/{AppDrawerContent-ATbZG_cu-BjnW7Nvp.js → AppDrawerContent-ATbZG_cu-BvvAfkxb.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-5MYC1I6k-Ds-SstoD.js → ApprovalRulesSettingsPage-5MYC1I6k-HVmBb4cv.js} +6 -6
- package/dist/assets/{ArAgingChart-CuzG9AZY-LyeeC-_F.js → ArAgingChart-CuzG9AZY-D78G_VVn.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DwRkcLEu-BwO8bg0D.js → ArAgingDetailPage-DwRkcLEu-D81WmJqn.js} +1 -1
- package/dist/assets/{AttachmentView-BrQRChzc-Dm5F4MLP.js → AttachmentView-BrQRChzc-C3UjjC9d.js} +1 -1
- package/dist/assets/{BankAccountSection-hcKEMs80-9386hWb2.js → BankAccountSection-hcKEMs80-DOB-QXa9.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CpxVDMSZ-DXfuEuGA.js → BankAccountWarningSection-CpxVDMSZ-ZxypBLGM.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Bdw1K00m-B0uSwnpP.js → BankConnectionsSettingsPage-Bdw1K00m-DSszExQn.js} +1 -1
- package/dist/assets/{BillDetailPage-D0NLFZXA-BAo9uy4y.js → BillDetailPage-D0NLFZXA-ohTix2QH.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DkpCvYvo-BXtcghrA.js → BillPayApprovalRuleDetailPage-DkpCvYvo-D0tz2mnp.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BEqZD0GU-BhjcWx9B.js → BillPayApprovalRulesPage-BEqZD0GU-DgMqvkn_.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BMcP4EU5-DK5zwMUs.js → BillPayPromoPage-BMcP4EU5-BaJUNmtb.js} +6 -6
- package/dist/assets/{BillPaySetUpPage-WdEdbf16-BdgMOYAB.js → BillPaySetUpPage-WdEdbf16-CZ2Ksorb.js} +1 -1
- package/dist/assets/{BillingSettingsPage-GtRUqSZm-JcS3RT-t.js → BillingSettingsPage-GtRUqSZm-CcpJuWAg.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DAUoo9pq-CGT1MF5v.js → BillsBulkReviewDrawerPage-DAUoo9pq-y1Zpd-6j.js} +1 -1
- package/dist/assets/{BoxItem-CACRFWG2-CnmPjRPK.js → BoxItem-CACRFWG2-BQt9NwOK.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-9gZbBDL6-Dso7HJiD.js → BusinessVerificationPage-9gZbBDL6-D8fEfHVC.js} +2 -2
- package/dist/assets/{CardNumberSubText-C-oVdziK-DnaANIDf.js → CardNumberSubText-C-oVdziK-ClZIyAyF.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BhFKSl4p-DFlKoeZU.js → CashbackDetailPage-BhFKSl4p-Zys0m4CO.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-D8J6HINu-Cy0gxJPT.js → ChargeCardDetailPage-D8J6HINu-Bo4cyXcw.js} +26 -26
- package/dist/assets/{ChargeCardListPage-tdUKyHdz-DaeStUfM.js → ChargeCardListPage-tdUKyHdz-C43sdD2G.js} +1 -1
- package/dist/assets/{ChargeCardListTable-CByk3iqX-BP_2jTx-.js → ChargeCardListTable-CByk3iqX-DLrnc4ae.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-B8zRcrjo-CqZTiCeW.js → ChargeCardPaymentHistoryPage-B8zRcrjo--Yr_BcfD.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-C4cgx2gm-EwMGXlYV.js → ChargeCardPromoPage-C4cgx2gm-BOWg0jUr.js} +14 -14
- package/dist/assets/{ChargeCardSetupPage-DtwiTNKA-CKdHxRmI.js → ChargeCardSetupPage-DtwiTNKA-BOc-DTjW.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-B0KPw52e-BNkqxRQ2.js → ChargeCardStatementsPage-B0KPw52e-6bM7ZyYY.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DKNAXI77-BSOutqAK.js → CheckDepositDrawerPage-DKNAXI77-C5L0tTGk.js} +1 -1
- package/dist/assets/{CollapsableReportTable-Cq8bhaYC-DXVGhc1U.js → CollapsableReportTable-Cq8bhaYC-D0tK5pUG.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Rk0B5cB5-DB11gG9H.js → CompanyOfficerDetailsSection-Rk0B5cB5-Bsmn3TDH.js} +1 -1
- package/dist/assets/{CompanyPassportCard-CHaKk74P-BdhNiQs5.js → CompanyPassportCard-CHaKk74P-C2b4TRPw.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DXWXFFKM-1Gz0LfNo.js → CompanyPassportPage-DXWXFFKM-B9DmK4RN.js} +1 -1
- package/dist/assets/{CompleteProfile-ChaWsK6t-CkLnv3sI.js → CompleteProfile-ChaWsK6t-Cd_DGhFO.js} +1 -1
- package/dist/assets/{ConfettiBurst-CdB5fRMt-CRqwwWlg.js → ConfettiBurst-CdB5fRMt-fSelFPlj.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CR-47kA2.js → ConstrainedInnerElement-BeIpAPjB-x6D80n7G.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C_8Jqubo-CAWRF5So.js → CreateOrEditVendorPage-C_8Jqubo-6MGeoxc5.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-lOjOtk28-2rzY7Y_f.js → CreditCardPaymentDrawerPage-lOjOtk28-BHR1lLcT.js} +1 -1
- package/dist/assets/{CurrencySelectField-BDqU4HVy-DUa8DDre.js → CurrencySelectField-BDqU4HVy-CvnjwBz1.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DO6NCakm-DB3F8kyi.js → CustomerOnboardingActivationPage-DO6NCakm-Bc2So-4X.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-D7fagFOM.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-DQwtiYKE.js → CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-DoWk80gY.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CbG5WshV-B6Cq5cCV.js → CustomerOnboardingNoStepsPage-CbG5WshV-CjbZA9c-.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DyVyf8oK-Bbvqfzve.js → CustomerOnboardingPage-DyVyf8oK-AuNA5ENc.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-1F3JfCRp-M5aWZTXB.js → CustomerOnboardingProductSuitePage-1F3JfCRp-CfTfV9zh.js} +1 -1
- package/dist/assets/{Dashboard-Csggwob0-e7KLrAzz.js → Dashboard-Csggwob0-gMoXi-EH.js} +1 -1
- package/dist/assets/{DashboardReportPage-DFIdi_I0-uYWfrIup.js → DashboardReportPage-DFIdi_I0-DSWXu8Hp.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C3Ovv-ob-DszHhGbA.js → DashboardSidebarBackgroundAnimation-C3Ovv-ob-CuTt44Dk.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CZ7v1T4S-e2AT80rO.js → DepositAccTransactionItem-CZ7v1T4S-4gI0mLyD.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-FldPGX6K-Db6KKzae.js → DepositAccTransactionListPage-FldPGX6K-B8F3xoqK.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C--eZ-UG-h0uzjMVt.js → DomesticWireDetailsPage-C--eZ-UG-6Crr2LoJ.js} +1 -1
- package/dist/assets/{DownloadOverlay-4f9deyJS-Bmz0ejyE.js → DownloadOverlay-4f9deyJS-ffKSKyws.js} +1 -1
- package/dist/assets/{DrawerPage-roO3xvRT-BGC_3oGn.js → DrawerPage-roO3xvRT-DSkqjL0x.js} +1 -1
- package/dist/assets/{EditPeoplePage-pi5RclAj-BAKsXmAv.js → EditPeoplePage-pi5RclAj-CuNY86dS.js} +3 -3
- package/dist/assets/{EditReimbursementDetailPage-CIUcImns-CpOeMOYM.js → EditReimbursementDetailPage-CIUcImns-DJEMwcM_.js} +1 -1
- package/dist/assets/{EntityDetailPage-OTKTVNMD-madC1I3v.js → EntityDetailPage-OTKTVNMD-CjIHF41D.js} +1 -1
- package/dist/assets/{EntitySummarySection-fBL4TZpT-DpmgFY5q.js → EntitySummarySection-fBL4TZpT-DhRCy8ou.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CnhNINCc-Ba-7I2q6.js → ExpenseAutomationOverviewPage-CnhNINCc-CeerlQ0C.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BDLCJbFw-B65uFwyw.js → ExpenseAutomationPage-BDLCJbFw-C7whqX-g.js} +1 -1
- package/dist/assets/{ExpressPayPage-c8oTCnBR-DLD1ESsm.js → ExpressPayPage-c8oTCnBR-CkDahyQt.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-DkiAajs2-jW7XTS4W.js → FeaturePreviewPage-DkiAajs2-BeoPPwLp.js} +1 -1
- package/dist/assets/{FollowStepsSection-GaWu1kt9-DPxSdgo3.js → FollowStepsSection-GaWu1kt9-GSG6Qzzx.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DEzj0RVG-CeRFieMj.js → GlobalReviewListPage-DEzj0RVG-ChNJAT_n.js} +1 -1
- package/dist/assets/{InformationCardStack-dMFbHUWM-xL6qax_7.js → InformationCardStack-dMFbHUWM-CP_SVYds.js} +1 -1
- package/dist/assets/{InsightsCardStack-BlXkyuyz-CSObZxx-.js → InsightsCardStack-BlXkyuyz-BXAqdcgw.js} +1 -1
- package/dist/assets/{InsightsSection-D-oCmrir-BDt4fRIh.js → InsightsSection-D-oCmrir-DsyYY69e.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-D-hfghuq-BXO5c_dn.js → IntegrationsSettingsPage-D-hfghuq-AjwfTwqu.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DxdKE300-B7KYCkcv.js → InternationalWireSwiftDetailsPage-DxdKE300-pEPcQv22.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CkSmhOrS-D-mLEGol.js → InternationalWireVerificationPage-CkSmhOrS-CkeJ0LNp.js} +1 -1
- package/dist/assets/{InviteFormPage-BCdalqtP-CaETHzpB.js → InviteFormPage-BCdalqtP-ReXaK5qV.js} +1 -1
- package/dist/assets/{InvitePageListView-B88FW48q-fpDsceSB.js → InvitePageListView-B88FW48q-D12AKiHm.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Z-2L7lWc-UD6n_Q7k.js → InvitePeoplePage-Z-2L7lWc-pIkWb_X4.js} +4 -4
- package/dist/assets/{InvoiceUploadSection-C8hytmay-HB4lI_N7.js → InvoiceUploadSection-C8hytmay-BewwZtqa.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-B6wmvbEr-JIsHDCkw.js → IssueChargeCardPage-B6wmvbEr-DwDxfaj_.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CQrDCgNs-3ouFKt7p.js → LabeledAddressValue-CQrDCgNs-Bb_lvnHX.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BoHS44YO-B3Azc_ND.js → LabeledAddressValueField-BoHS44YO-Cej4tiTJ.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BsFqjCpn-CNZwev0o.js → LabeledControlledCheckBoxField-BsFqjCpn-LcPyDi__.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-D1fVDYR_-BT0zs0Jm.js → LabeledCountryMultiSelectField-D1fVDYR_-D8CYIAsf.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Bhka-Faj-D8-1M_Br.js → LabeledCreatableSingleSelectField-Bhka-Faj-DHHwYijK.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CnRk5aKZ-CV8AaRRN.js → LabeledDocumentField-CnRk5aKZ-DdfXAd_A.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-ChgtJqPr-DExq8QI7.js → LabeledDropDownFormattedTextField-ChgtJqPr-DCv0FHDL.js} +1 -1
- package/dist/assets/{LabeledText-2EDpuXZ4-BLBQclH9.js → LabeledText-2EDpuXZ4-a1cjnLCX.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-CDUhkAJw.js → LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-BixByMwj.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CpH0eDWO-BN0y8uby.js → LabeledZeniRolesDropDownField-CpH0eDWO-VyBxrvle.js} +8 -8
- package/dist/assets/{LinkJETransactionPage-BhV2MnCY-UMeDagXs.js → LinkJETransactionPage-BhV2MnCY-BJYljY3g.js} +1 -1
- package/dist/assets/{LockCardPage-CHv1xi2J-mFvWtqsS.js → LockCardPage-CHv1xi2J-B44825f5.js} +6 -6
- package/dist/assets/{LowBalancePopup-Cb55PGLc-DRqPG0mh.js → LowBalancePopup-Cb55PGLc-CydyUGIH.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-Dnp01hnF-DQ8yr6uv.js → MagicLinkACHDetailsPage-Dnp01hnF-Hlk7OZ_7.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B36rsikS-BxHsYq7B.js → MagicLinkDomesticWireDetailsPage-B36rsikS-D6KyvBLt.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-Zo4oNZez-CpqMSy1N.js → MagicLinkInternationalWireDetailsPage-Zo4oNZez-BuyyCMqI.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-09NLbjFG-Co3vSy6t.js → MagicLinkSuccessPage-09NLbjFG-CHXQKBBq.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BA-i6vzA-RLm3mDeb.js → MagicLinkTitleSection-BA-i6vzA-B0gxKJAo.js} +1 -1
- package/dist/assets/{MailingDetailsSection-EwtoQ2TZ-CYDGTCnx.js → MailingDetailsSection-EwtoQ2TZ-BjLXvKCx.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Aer6AWxY-7WBcezSN.js → MyBankConnectionsSettingsPage-Aer6AWxY-DxzBIz2P.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Ddy4bAEY-D3ybcBV0.js → MyPendingActivationChargeCardListPage-Ddy4bAEY-l12r6UU4.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-DMz-6h9F-BcvPvdDW.js → MyProfileSettingsPage-DMz-6h9F-iy-PzTdE.js} +1 -1
- package/dist/assets/{NavBarWithPicker-D8WNahg--DzolItlM.js → NavBarWithPicker-D8WNahg--BaSp4Lxv.js} +1 -1
- package/dist/assets/{NavigationArrow-kQWS5Pzb-DnxK-xgA.js → NavigationArrow-kQWS5Pzb-DAZ3ZzOU.js} +1 -1
- package/dist/assets/{NavigationDots-BQb_Fodq-CVrmLvYQ.js → NavigationDots-BQb_Fodq-Dzju1vgj.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-z86XZorn-DxAD7tTY.js → NewGlobalMerchantPage-z86XZorn-C_co7jck.js} +1 -1
- package/dist/assets/{NoDataChart-CyYJ6icu-CHQY_bIW.js → NoDataChart-CyYJ6icu-B_ibj8yR.js} +1 -1
- package/dist/assets/{NoDataTable-DVe7sQhD-nqOrgT1n.js → NoDataTable-DVe7sQhD-Dkk7z7B9.js} +1 -1
- package/dist/assets/{NotFoundPage-B1XCmhSe-DJxMFFFe.js → NotFoundPage-B1XCmhSe-KkDDDabl.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BaN20EGV-BZKokXl_.js → NotificationSettingsPage-BaN20EGV-D6-JUrX1.js} +12 -12
- package/dist/assets/{NotificationsListConfig-BOW_TmPC-2OPYdfiF.js → NotificationsListConfig-BOW_TmPC-CZmsrUp-.js} +1 -1
- package/dist/assets/{NotificationsPage-C9efAgjo-Q1uCdSWG.js → NotificationsPage-C9efAgjo-CwOgVQZD.js} +1 -1
- package/dist/assets/{OpExByVendorPage-DXeBU3-z-ClrNqg-6.js → OpExByVendorPage-DXeBU3-z-DvPDeTkR.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-5C-NUnJ8.js → OverlayContainerPage-D4QU0p4o-DpB-tVSg.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CXtJhnA_-_B_OXjuI.js → PandLWithForecastPage-CXtJhnA_-DIwsS6DO.js} +2 -2
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Deb_ngk6-BYIDdJGi.js → PaymentAccountSetupBillingAddressSection-Deb_ngk6-IRTqVZCI.js} +1 -1
- package/dist/assets/{PeoplePage-DXC2CtOt-BmC0xa13.js → PeoplePage-DXC2CtOt-DoIt9eGe.js} +13 -13
- package/dist/assets/{Preview-DIhdxTnV.js → Preview-Bgcl0PJX.js} +1 -1
- package/dist/assets/{ProductsCarousel-ufZlh7Rx-BhPoplzW.js → ProductsCarousel-ufZlh7Rx-peK9rgeZ.js} +1 -1
- package/dist/assets/{PromoBaseCards-D2UbhBhT-DISJBAGU.js → PromoBaseCards-D2UbhBhT-CIYIbyF_.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BrQ71F06-CE8JPZ4E.js → QBOConnectionDialog-BrQ71F06-fF_yB2b_.js} +1 -1
- package/dist/assets/{QBOSetupSection-EOFscEW--D0QcMDeq.js → QBOSetupSection-EOFscEW--OVdnvEwV.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-C-HPI4Ng-1hqq3vgZ.js → ReimbursementApprovalRuleDetailPage-C-HPI4Ng-BBqtguYA.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-CMpYn5y_-PKr02NgU.js → ReimbursementApprovalRulesPage-CMpYn5y_-Cn33sGX0.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CfmICHZb-C0Vlu4pV.js → ReimbursementDetailPage-CfmICHZb-DIl5AJ6n.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DXTAY8c7-ijLyTKXj.js → ReimbursementPromoPage-DXTAY8c7-CShEb-F3.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-KrGPXTCb-Cndb3yRw.js → ReimbursementSetUpPage-KrGPXTCb-BSYkhzVc.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-l2mYNEKn-t36_7iYz.js → ReimbursementsBulkReviewDrawerPage-l2mYNEKn-BAdy79Lm.js} +1 -1
- package/dist/assets/{ReloadCard-vAhL7B8U-CXvjyFbd.js → ReloadCard-vAhL7B8U-Dw-PqaQf.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-Y97ney3W-BsXF5NSn.js → ReportTableViewSelector-Y97ney3W-9zOFv1BS.js} +1 -1
- package/dist/assets/{ReportsPage-DKM0gVzR-CWRqDWS7.js → ReportsPage-DKM0gVzR-QbWKIQxE.js} +1 -1
- package/dist/assets/{RevenueChart-BEjDS1u4-o0vV82hU.js → RevenueChart-BEjDS1u4-BcSZzy8l.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BlQLrN9z-CPNBWRFb.js → ReviewDetailsPage-BlQLrN9z-CtxwcPz-.js} +6 -6
- package/dist/assets/{ReviewOverlay-Bn3TFqfi-61PAxosm.js → ReviewOverlay-Bn3TFqfi-BNzIrw2d.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DhBFvJea-vHmZXp6q.js → RoleWithToolTip-DhBFvJea-CdVG2bUA.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BMkFjf9Y-jDSlk-pR.js → ScheduleDetailsFixedAssetsPage-BMkFjf9Y-BQvOafrC.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-BP0wdtoP-1II188uq.js → ScheduleDetailsPage-BP0wdtoP-Bk7y84OT.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-D-rZ4ftr-tSWSHWOw.js → ScheduleSequenceTable-D-rZ4ftr-kFr_wsWf.js} +1 -1
- package/dist/assets/{ScreenRoutes-DZZxoCM2.js → ScreenRoutes-DWP8GfVe.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CoVrSSYL-DbZWiYfU.js → SetUpAccountSection-CoVrSSYL-dR9JnLtS.js} +1 -1
- package/dist/assets/{SignIn-BoAejo7r-PQVivWYh.js → SignIn-BoAejo7r-NqO60YRr.js} +6 -6
- package/dist/assets/{SignInScreen-efHROixG.js → SignInScreen-BUyGhDDE.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-D3eISFuA-B7nSuLpf.js → SpendManagementListViewPage-D3eISFuA-CfUqu7cE.js} +7 -7
- package/dist/assets/{SpendManagementPerTabPage-BWDjZyLp-BKnsfe2z.js → SpendManagementPerTabPage-BWDjZyLp-BfFfsbJz.js} +34 -34
- package/dist/assets/{SpendManagementSection-D8rBpC-y-wjuhm2Gv.js → SpendManagementSection-D8rBpC-y-BK434VnL.js} +7 -7
- package/dist/assets/{StatementItem-Cu6dlAsl-BxjOZIKR.js → StatementItem-Cu6dlAsl-0BWW7RnN.js} +1 -1
- package/dist/assets/{StatementsPage-DiY2BOcu-jACVIQ7g.js → StatementsPage-DiY2BOcu-DOawG-nh.js} +1 -1
- package/dist/assets/{StatusSwitcher-B9MARTyR-CVrMK43S.js → StatusSwitcher-B9MARTyR-XJNlxoKq.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C3rtSwro-Bfv-jqX0.js → SubTabSwitcher-C3rtSwro-B2hxzitW.js} +1 -1
- package/dist/assets/{SummaryCard-CShVbqhj-C7VDYfDP.js → SummaryCard-CShVbqhj-WCnNiOeE.js} +1 -1
- package/dist/assets/{TaskManagementPage-RVS8nv0n-IfMaVZ79.js → TaskManagementPage-RVS8nv0n-CHLZTSJm.js} +13 -13
- package/dist/assets/{TimeRangeSwitcher-DFnX6_WT-B3NiZwLX.js → TimeRangeSwitcher-DFnX6_WT-GWR_ifB6.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CW08yYgo-DBfI-CDo.js → TimeframeSwitcher-CW08yYgo-BdSlU0Ze.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DJOCWqpZ-CxMWU2YP.js → TimeframeSwitcherWithToggle-DJOCWqpZ-DKc1B1qn.js} +1 -1
- package/dist/assets/{TopExCard-dI_WEGWb-C_ouXuJx.js → TopExCard-dI_WEGWb-DUuyhve4.js} +1 -1
- package/dist/assets/{TopExDetailPage-BWy5E8Lp-DHDoD8xK.js → TopExDetailPage-BWy5E8Lp-Bwbr7Qt_.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-DjhEIUYm-CDOSrUCy.js → TransactionActivityLogPage-DjhEIUYm-6W3R-LLw.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CuxqQd8U-DaUcyO77.js → TransactionDetailPage-CuxqQd8U-BOhDk3J3.js} +1 -1
- package/dist/assets/{TransactionList-80KjM8Kg-CP1kCzOZ.js → TransactionList-80KjM8Kg-BV4ncKOi.js} +1 -1
- package/dist/assets/{TransactionListBig-DWQXH4ID-C0AgFfET.js → TransactionListBig-DWQXH4ID-DUWv_VJr.js} +4 -4
- package/dist/assets/{TransactionListPage-DC08rCC9-CKoNbk76.js → TransactionListPage-DC08rCC9-BqFTHSSL.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CzfJ5b_3-D0WTBIN_.js → TransactionVendorDetailPage-CzfJ5b_3-UHsXDEF6.js} +1 -1
- package/dist/assets/{TransferDrawerPage-6z-MoZZP-DIDlNkaw.js → TransferDrawerPage-6z-MoZZP-TNe-9XNT.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CF_ter0o-D0FwCj4F.js → TreasuryOverviewPage-CF_ter0o-DsWAMpMo.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-Do-PTcjI-BdsWLtH0.js → TreasuryPromoPage-Do-PTcjI-61vLEiyA.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-l_HC4zsb-9mkdhIeY.js → TreasuryStatementsPage-l_HC4zsb-BSXp6OEx.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-B8YxWytK-Bvqd0Hp0.js → TreasuryTaxLetterPage-B8YxWytK-DNlHlMYT.js} +1 -1
- package/dist/assets/{TrendChart-C6B61CAm-BLOs7lid.js → TrendChart-C6B61CAm-C0UUKmUn.js} +1 -1
- package/dist/assets/{TrendWithTransactions-Bp3vhaPa-tGqMC5Vu.js → TrendWithTransactions-Bp3vhaPa-DvhstWt3.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-cbFqKAv4-D6JJ85e-.js → UncategorizedAccountsMappingPage-cbFqKAv4-BeQLJ6JT.js} +6 -6
- package/dist/assets/{UnitIntegrationPage-DZ0ZpE5p-FsM5I6N8.js → UnitIntegrationPage-DZ0ZpE5p-CLzOeV9G.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BKY6hK51-D5vRfL2N.js → UploadAdditionalDocumentOverlay-BKY6hK51-CKaAE93t.js} +4 -4
- package/dist/assets/{Vendor2FAPopup-DezpDfp8-CgUqUKgv.js → Vendor2FAPopup-DezpDfp8-C3RSYJKE.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-C8TWKYfc-BBHDUovS.js → VendorACHDetailsPage-C8TWKYfc-BgngBLqi.js} +1 -1
- package/dist/assets/{VendorDetailPage-C4g_Gfsl-DrbUQaMS.js → VendorDetailPage-C4g_Gfsl-_yTgShu0.js} +9 -9
- package/dist/assets/{VendorDomesticWireDetailsPage-BhJQ-Vmn-DAw-3yRj.js → VendorDomesticWireDetailsPage-BhJQ-Vmn-WGhnSar1.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Ckt2MiVN-C5Y0Hhpj.js → VendorFiling1099EditablePage-Ckt2MiVN-CgGB3YCN.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CIKRaTax-DZ_fWsTs.js → VendorFirstReviewPage-CIKRaTax-Bet_FF0a.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-Dz8mMD8d-5RolL7pk.js → VendorInternationalWireDetailsPage-Dz8mMD8d-Bf5r8Rj1.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-XcV7Ot44-C7gWvoAM.js → VendorInternationalWireSwiftDetailsPage-XcV7Ot44-Dm-2gYh2.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BT-RADSV-vp7VaRO6.js → VendorsAccountsSection-BT-RADSV-usRXN8LD.js} +1 -1
- package/dist/assets/{VerifyDevice-Cxc9CVMi-Cgu3mf8y.js → VerifyDevice-Cxc9CVMi-BcuPPiUE.js} +1 -1
- package/dist/assets/{VideoPlayer-9UkKMhGy-DJ6uBu61.js → VideoPlayer-9UkKMhGy-CrxItSVF.js} +2 -2
- package/dist/assets/{VideoPopup-rfiYmtio-_iCjbOm3.js → VideoPopup-rfiYmtio-Bu6GLzWj.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DrUA4asI-CcwFPuTA.js → WarningsDrawerPage-DrUA4asI-Be-AjJu4.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-K016HgQt-Cd131nKw.js → ZeniAccountDetailPage-K016HgQt-CuftklXs.js} +7 -7
- package/dist/assets/{ZeniAccountListViewPage-1oZZynB1-CjD6nbtT.js → ZeniAccountListViewPage-1oZZynB1-BrCdP2K7.js} +7 -7
- package/dist/assets/{ZeniAccountNavBarPieces-C6Oicpue-DGKKSqgJ.js → ZeniAccountNavBarPieces-C6Oicpue-DaSoaDat.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BCgys-YM-DwhnKx-9.js → ZeniAccountPromoPage-BCgys-YM-gaL56kq6.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-BubBgkoa-BFY0LSuz.js → ZeniAccountSetupPage-BubBgkoa-Bm0JKoat.js} +1 -1
- package/dist/assets/{ZeniCopyright-BxIwmms--BfYUogKF.js → ZeniCopyright-BxIwmms--BgbWhWIo.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DVJ0puXA-aYxPZEFI.js → ZeniTransferAmountSlider-DVJ0puXA-CMC395PX.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DZGmKyiB.js → add-to-wallet-DgdBD8_G-CEKtfmRG.js} +1 -1
- package/dist/assets/{analytics-D_c73QMR.js → analytics-6q2YPSTL.js} +1 -1
- package/dist/assets/{analyticsHelper-Di73_evd.js → analyticsHelper-B-0AfSPy.js} +1 -1
- package/dist/assets/{analyticsHelper-CT5zOInj-BgC6kfqx.js → analyticsHelper-CT5zOInj-BlrArCGj.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-Cl5bzAze.js → arrow-south-east-round-PEovUgvH-CtdbjVA2.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-Cgd1DzFo.js → auto-transfer-rule-mbafm5D3-CUXCiVxF.js} +1 -1
- package/dist/assets/{chartTypes-Ddw_3-6f-DDbD-D2D.js → chartTypes-Ddw_3-6f-DgrkzuCZ.js} +1 -1
- package/dist/assets/{commonDimensions-ClmbdehE-D3isPdv2.js → commonDimensions-ClmbdehE-CUqGbH6M.js} +1 -1
- package/dist/assets/{commonTypes-B-foaEwJ-B3kT4sSr.js → commonTypes-B-foaEwJ-71MnEnLC.js} +1 -1
- package/dist/assets/{constants-DYpW9FGW.js → constants-BrqJwe63.js} +1 -1
- package/dist/assets/{core-Cfmldnhs.js → core-DhTpg44s.js} +1 -1
- package/dist/assets/{dash.all.min-CRn-LRx6.js → dash.all.min-Dmz7QXb7.js} +1 -1
- package/dist/assets/{detailCommon-Cpgf9GLg-YHVPzUGh.js → detailCommon-Cpgf9GLg-Dq4BQywp.js} +1 -1
- package/dist/assets/{downloadPdf-DfRYmfsd-yijlpLuZ.js → downloadPdf-DfRYmfsd-DryKWAvL.js} +1 -1
- package/dist/assets/{empty-i3z-0iVf.js → empty-DY6ar3s9.js} +1 -1
- package/dist/assets/{empty-BKT9Ep8-.js → empty-vxQLOqQD.js} +1 -1
- package/dist/assets/{epic-DzSc1k1-.js → epic-CNug8mXh.js} +2 -2
- package/dist/assets/{gift-box-Cmt9OgIZ-DwiLPIzZ.js → gift-box-Cmt9OgIZ-CJbAYIkz.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CeAnn4nf.js → graphic-no-data-l-DU4J8fDt-B3EDq2My.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-QJP23LBP.js → graphic-no-data-net-burn-l-CzmycA0m-CBPFr7dD.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-D1HUbDRz.js → handshake-BPg58FML-c1uSNCqN.js} +1 -1
- package/dist/assets/{helper-DP3YY99s-BUuDECup.js → helper-DP3YY99s-BijNSKZL.js} +1 -1
- package/dist/assets/{index-8pN1_LrG.js → index-9fCfm4CN.js} +1 -1
- package/dist/assets/{index-4u2OqriH.js → index-B8umEkB_.js} +1 -1
- package/dist/assets/{index-BfeLc3Lr.js → index-CZqx70Qj.js} +1 -1
- package/dist/assets/{index-ByXRm0Fj.js → index-DBvg5JK1.js} +7 -7
- package/dist/assets/{index-vHvAicGU.js → index-DeEJJsiS.js} +1 -1
- package/dist/assets/{index-DJSq-oST.js → index-SLYoLNDj.js} +1 -1
- package/dist/assets/{index-BBjGKJIj.js → index-_jJPcK9Q.js} +1 -1
- package/dist/assets/{lexical-C8q9B2Uw.js → lexical-CUG-jFYn.js} +1 -1
- package/dist/assets/{liveblocks-DWegUhIu.js → liveblocks-ZYzhSRWz.js} +1 -1
- package/dist/assets/{lottie-BGI-L4nL.js → lottie-UCmESiQw.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-C0YIUOnb-BrISft7C.js → mapLoadingInProgressToTreeNode-C0YIUOnb-Dxgu-FhZ.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-QJI_OYzu-DiRfs5eL.js → mapSectionWithAcOnlyToTreeNode-QJI_OYzu-D3Eqbupt.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DKDsz0vw-DbMmCeng.js → mapSpacerToTreeNode-DKDsz0vw-ColpgIRb.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DqDJAeAj-CPfI0i_B.js → mapTimeframeBalancesToTreeNode-DqDJAeAj-D9K__yTx.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-J3b1nb_T-Bbpk49fN.js → mapTimeframeBalancesToTreeNode-J3b1nb_T-DNknS-D-.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-DVA96-CU.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-BdzxiHaP.js} +1 -1
- package/dist/assets/{mui-BtuxyOQU.js → mui-CVkStVfi.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-B7ep9GDp.js → page-detail-CWX5S47F-Dvf8rKRj.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-C9iYLSFp.js → panelSelectedMixin-CzfD5-Zs-DCvCCOVA.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CZZPsdKI.js → radio-default-CiSgisfh-CSFESyBW.js} +1 -1
- package/dist/assets/{react-DqQwPwcU.js → react-BXHGGvaS.js} +1 -1
- package/dist/assets/{react-CN9vRF0g.js → react-Bwe2ayJc.js} +1 -1
- package/dist/assets/{react-B9JOATsB.js → react-C3bIUhHS.js} +1 -1
- package/dist/assets/{react-CCOUBQ3I.js → react-C6_oHnDC.js} +2 -2
- package/dist/assets/{react-DyhjmuQS.js → react-CfSD8L4B.js} +1 -1
- package/dist/assets/{react-BGg3sLTV.js → react-DG79XCPu.js} +1 -1
- package/dist/assets/{react-DmXC6qjh.js → react-YKLZuWvS.js} +1 -1
- package/dist/assets/{react-_UdfJnwg.js → react-dNnoah74.js} +1 -1
- package/dist/assets/{recharts-B1UpAC2z.js → recharts-BLPoQhru.js} +1 -1
- package/dist/assets/{sentry-BfjekFHA.js → sentry-DlWPKrHR.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-Diohej-j.js → shield-DOlUxcFf-DFjEO7N1.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-AzKAZ-Cv-DrJ7D3cP.js → toCOABalancesWithID-AzKAZ-Cv-DEq296KH.js} +1 -1
- package/dist/assets/toChartData-BEjMhb7--SCIfyppR.js +1 -0
- package/dist/assets/{uploadAttachment-DUpHzqMe-5f9vnkfw.js → uploadAttachment-DUpHzqMe-DE9XSoTe.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-Bxip3o5m.js → uploadReceipts-Dge0cNF1-BCk8sEC-.js} +1 -1
- package/dist/assets/{url-BKWNACvj.js → url-C42JWgC1.js} +1 -1
- package/dist/assets/{url-CCV-Hsrv.js → url-D14qQQ_-.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-448Ji6V-.js → useLongPress-GCK2COYQ-Ck7PeJ1R.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-CdIO-gTm.js → usp-line-BBd1wKwW-frtVcEkM.js} +1 -1
- package/dist/assets/{utils-BhAlbbTk.js → utils-D4kXjSE5.js} +1 -1
- package/dist/assets/{zeni-epic-state-x1SruN8b.js → zeni-epic-state-BeWB6NzA.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-Q_KOJWYS.js +0 -1
- package/dist/assets/toChartData-BEjMhb7--Byh1Bg2r.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,cr as V,cs as M,ct as K,ke as W,a_ as q,F as z}from"./index-
|
|
1
|
+
import{V as f,cr as V,cs as M,ct as K,ke as W,a_ as q,F as z}from"./index-DBvg5JK1.js";import{a as b}from"./sentry-DlWPKrHR.js";import{Gp as G}from"./zeni-epic-state-BeWB6NzA.js";import{u as X}from"./ReviewOverlay-Bn3TFqfi-BNzIrw2d.js";import"./liveblocks-ZYzhSRWz.js";import"./core-DhTpg44s.js";import"./recharts-BLPoQhru.js";import"./mui-CVkStVfi.js";import"./lottie-UCmESiQw.js";import"./analytics-6q2YPSTL.js";import"./lexical-CUG-jFYn.js";import"./utils-D4kXjSE5.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]="b45df5bf-c785-4003-9a71-c764ab6e3ed2",e._sentryDebugIdIdentifier="sentry-dbid-b45df5bf-c785-4003-9a71-c764ab6e3ed2")}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:y,currentSubTab:g}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=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,S=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=Y(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,G(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),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:[x?f.jsx(V,{titleComponent:f.jsx(K,{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(X,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===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:q("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=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)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=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?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(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{d as l,V as r,aO as a,b4 as f,F as y,aR as m,aU as h,bG as g,aj as u,o as c,b5 as b}from"./index-
|
|
1
|
+
import{d as l,V as r,aO as a,b4 as f,F as y,aR as m,aU as h,bG as g,aj as u,o as c,b5 as b}from"./index-DBvg5JK1.js";import{n as d}from"./mui-CVkStVfi.js";import{a as s}from"./sentry-DlWPKrHR.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]="24936971-dd43-4bc9-83f5-d1f53008b75b",e._sentryDebugIdIdentifier="sentry-dbid-24936971-dd43-4bc9-83f5-d1f53008b75b")}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 j({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 D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(j,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({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 p=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{d as ee,J as de,cf as xe,aa as ye,V as o,ap as _e,cg as te,ad as we,y as P,aT as $e,o as a,F as oe,ch as ve,ci as ke,cj as Ce,ck as je,cl as Ie,an as he,cm as Se,aj as Ne,aF as X,bG as Pe,u as f,aX as De,am as Oe,au as Fe}from"./index-
|
|
1
|
+
import{d as ee,J as de,cf as xe,aa as ye,V as o,ap as _e,cg as te,ad as we,y as P,aT as $e,o as a,F as oe,ch as ve,ci as ke,cj as Ce,ck as je,cl as Ie,an as he,cm as Se,aj as Ne,aF as X,bG as Pe,u as f,aX as De,am as Oe,au as Fe}from"./index-DBvg5JK1.js";import{a as u,P as ue}from"./sentry-DlWPKrHR.js";import{n as d}from"./mui-CVkStVfi.js";import{R as D,I as Te}from"./CollapsableReportTable-Cq8bhaYC-D0tK5pUG.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]="958eb8d4-7293-4068-bf82-77f0ab71cc84",e._sentryDebugIdIdentifier="sentry-dbid-958eb8d4-7293-4068-bf82-77f0ab71cc84")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ae=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Be=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ae(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Be(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(Ee(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,d as G,F as y,ax as ge,V as r,bQ as _e,aR as P,bF as be,bE as Se,o as w,aV as we,T as ye,y as B,bR as Ce,u as S,A,aF as K,w as xe,aX as Oe,at as Re,bN as Ae}from"./index-ByXRm0Fj.js";import{a as T,P as X}from"./sentry-BfjekFHA.js";import{n as _}from"./mui-BtuxyOQU.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 Ne,F5 as ee,F6 as te}from"./zeni-epic-state-x1SruN8b.js";import{m as z,l as q}from"./analyticsHelper-CT5zOInj-BgC6kfqx.js";import{x as ke}from"./ReportTableViewSelector-Y97ney3W-BsXF5NSn.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-DFnX6_WT-B3NiZwLX.js";import{M as Me}from"./TimeframeSwitcherWithToggle-DJOCWqpZ-CxMWU2YP.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-4f9deyJS-Bmz0ejyE.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-Cq8bhaYC-DXVGhc1U.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-QJI_OYzu-DiRfs5eL.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-J3b1nb_T-Bbpk49fN.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-DVA96-CU.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-C0YIUOnb-BrISft7C.js";import"./liveblocks-DWegUhIu.js";import"./core-Cfmldnhs.js";import"./recharts-B1UpAC2z.js";import"./lottie-BGI-L4nL.js";import"./analytics-D_c73QMR.js";import"./lexical-C8q9B2Uw.js";import"./utils-BhAlbbTk.js";import"./TimeframeSwitcher-CW08yYgo-DBfI-CDo.js";import"./page-detail-CWX5S47F-B7ep9GDp.js";import"./AccountRow-BiEYR4Y1-CmfzC2gE.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]="2a02a9d1-a4f1-42a7-91f8-49cb58f266a4",e._sentryDebugIdIdentifier="sentry-dbid-2a02a9d1-a4f1-42a7-91f8-49cb58f266a4")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(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),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(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,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),f=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(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,d as G,F as y,ax as ge,V as r,bQ as _e,aR as P,bF as be,bE as Se,o as w,aV as we,T as ye,y as B,bR as Ce,u as S,A,aF as K,w as xe,aX as Oe,at as Re,bN as Ae}from"./index-DBvg5JK1.js";import{a as T,P as X}from"./sentry-DlWPKrHR.js";import{n as _}from"./mui-CVkStVfi.js";import{bg as Z,ES as Be,E$ as ve,F0 as $,F1 as Le,F2 as Te,F3 as Pe,F4 as Ie,F5 as Ne,F6 as ee,F7 as te}from"./zeni-epic-state-BeWB6NzA.js";import{m as z,l as q}from"./analyticsHelper-CT5zOInj-BlrArCGj.js";import{x as ke}from"./ReportTableViewSelector-Y97ney3W-9zOFv1BS.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-DFnX6_WT-GWR_ifB6.js";import{M as Me}from"./TimeframeSwitcherWithToggle-DJOCWqpZ-DKc1B1qn.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-4f9deyJS-ffKSKyws.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-Cq8bhaYC-D0tK5pUG.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-QJI_OYzu-D3Eqbupt.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-J3b1nb_T-DNknS-D-.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-BdzxiHaP.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-C0YIUOnb-Dxgu-FhZ.js";import"./liveblocks-ZYzhSRWz.js";import"./core-DhTpg44s.js";import"./recharts-BLPoQhru.js";import"./lottie-UCmESiQw.js";import"./analytics-6q2YPSTL.js";import"./lexical-CUG-jFYn.js";import"./utils-D4kXjSE5.js";import"./TimeframeSwitcher-CW08yYgo-BdSlU0Ze.js";import"./page-detail-CWX5S47F-Dvf8rKRj.js";import"./AccountRow-BiEYR4Y1-MB8pZeni.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]="697e55a5-0ef9-48b0-9524-75676e77a88f",e._sentryDebugIdIdentifier="sentry-dbid-697e55a5-0ef9-48b0-9524-75676e77a88f")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(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),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(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,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),f=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(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{d as A,V as a,F as D,J as de,b5 as J,u as I,b as M,a_ as Q,o as m,aR as Ae,p as g,aF as Fe,y as xe,bO as ge,am as R,bP as F,bc as V}from"./index-
|
|
1
|
+
import{d as A,V as a,F as D,J as de,b5 as J,u as I,b as M,a_ as Q,o as m,aR as Ae,p as g,aF as Fe,y as xe,bO as ge,am as R,bP as F,bc as V}from"./index-DBvg5JK1.js";import{a as P,P as ee}from"./sentry-DlWPKrHR.js";import{n as x}from"./mui-CVkStVfi.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-Ddw_3-6f-DgrkzuCZ.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-AzKAZ-Cv-DEq296KH.js";import{V as Z}from"./toChartData-BEjMhb7--SCIfyppR.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-BLPoQhru.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]="d218acf2-502c-40f1-8c8c-afc6c8eb0f37",e._sentryDebugIdIdentifier="sentry-dbid-d218acf2-502c-40f1-8c8c-afc6c8eb0f37")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Ve=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Tt,ax as Ct,y as u,f8 as Dt,f9 as It,fa as kt,V as t,fb as Pt,fc as le,fd as At,fe as Mt,ff as Bt,fg as Ft,aP as A,fh as Rt,aR as v,fi as Lt,fj as Be,fk as Fe,fl as Re,b as G,fm as O,p as j,fn as zt,fo as E,fp as _,fq as Nt,fr as Ot,bV as Le,o as n,aT as Et,u as d,F as _t,ah as Wt,c4 as Vt,H as Zt,a as Yt,fs as Ht,ck as qt,am as ce,an as me,ft as Gt,fu as Kt,bk as Ut,c as Jt,bb as Xt,fv as Qt,ar as tt,bM as en,aj as nt,bv as tn,fw as nn}from"./index-ByXRm0Fj.js";import{a as V}from"./sentry-BfjekFHA.js";import{n as i}from"./mui-BtuxyOQU.js";import{bo as ze,bm as Ne,bH as I,bN as an,FF as on,bL as re,bP as ln}from"./zeni-epic-state-x1SruN8b.js";import{t as rn,o as sn}from"./LowBalancePopup-Cb55PGLc-DRqPG0mh.js";import{S as W}from"./LabeledText-2EDpuXZ4-BLBQclH9.js";import"./liveblocks-DWegUhIu.js";import"./core-Cfmldnhs.js";import"./recharts-B1UpAC2z.js";import"./lottie-BGI-L4nL.js";import"./analytics-D_c73QMR.js";import"./lexical-C8q9B2Uw.js";import"./utils-BhAlbbTk.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]="1151b7e6-cc37-4f91-be45-4d1c89441c25",e._sentryDebugIdIdentifier="sentry-dbid-1151b7e6-cc37-4f91-be45-4d1c89441c25")}catch{}})();const it=["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,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Zt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:_e}=mn,We=({attachment:e})=>{const[y,g]=V.useState(!1),M=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Gt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:X,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),k=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?kt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=V.useState(!1),[te,be]=V.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(k?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[k,Q,fe,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&Z?.code?Z:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&Z?.code?Z:N,ie=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,H=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ve(h,H,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(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}),oe!=null){const De=P?.code??"draft",Ie=N?.code??"",ke=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",Ae=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,ke,Pe,Ae,Me):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,ke,Pe,Ae,Me)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=V.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:k?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ie()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(T)??"",paymentType:ve,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ue,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(He,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Hn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("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(Vn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Lt(o);return o!=null?t.jsx(Zn,{children:it.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(Pn,{children:[t.jsxs(An,{children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:A("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(o.id,o.billPayInfo.stage.code),children:[t.jsxs(U,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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(qe,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsxs(Wn,{"data-testid":v("review-detail-info"),onClick:()=>X(o.id,o.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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})]})},o.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ge,{children:a.pay}),t.jsx(Ke,{children:t.jsx(Re,{amount:gt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(Ge,{children:a.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,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,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!x&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,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}${re(ln(Y.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,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})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,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,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ye,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(de,{children:_e.transactionFee}),t.jsx(se,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{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(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:G.h6Medium.cssObject,decimalStyles:G.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&k?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ze(!1,C,h,H,s)}},primaryBtn:{label:Ve(h,H,e.isBillMarkedForRetry),isLoading:k?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?q(!0):Te()},style:{width:Ze(!0,C,h,H,s)}},rightSideComponent:C&&!h&&k.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Gn,{})})})}):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})]})},Ve=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,g,M,S)=>g?128:y&&!e&&S==="small"?"auto":M?165:m.footerButtonWidth.value(S),pn=i(en)`
|
|
1
|
+
import{J as Tt,ax as Ct,y as u,f8 as Dt,f9 as It,fa as kt,V as t,fb as Pt,fc as le,fd as At,fe as Mt,ff as Bt,fg as Ft,aP as A,fh as Rt,aR as v,fi as Lt,fj as Be,fk as Fe,fl as Re,b as q,fm as O,p as j,fn as zt,fo as E,fp as _,fq as Nt,fr as Ot,bV as Le,o as n,aT as Et,u as d,F as _t,ah as Wt,c4 as Vt,H as Zt,a as Yt,fs as Ht,ck as Gt,am as ce,an as me,ft as qt,fu as Kt,bk as Ut,c as Jt,bb as Xt,fv as Qt,ar as tt,bM as en,aj as nt,bv as tn,fw as nn}from"./index-DBvg5JK1.js";import{a as V}from"./sentry-DlWPKrHR.js";import{n as i}from"./mui-CVkStVfi.js";import{bo as ze,bm as Ne,bH as I,bN as an,FG as on,bL as re,bP as ln}from"./zeni-epic-state-BeWB6NzA.js";import{t as rn,o as sn}from"./LowBalancePopup-Cb55PGLc-CydyUGIH.js";import{S as W}from"./LabeledText-2EDpuXZ4-a1cjnLCX.js";import"./liveblocks-ZYzhSRWz.js";import"./core-DhTpg44s.js";import"./recharts-BLPoQhru.js";import"./lottie-UCmESiQw.js";import"./analytics-6q2YPSTL.js";import"./lexical-CUG-jFYn.js";import"./utils-D4kXjSE5.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]="4dce2911-ce49-45b4-a281-741c60bf02de",e._sentryDebugIdIdentifier="sentry-dbid-4dce2911-ce49-45b4-a281-741c60bf02de")}catch{}})();const it=["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,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Zt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:_e}=mn,We=({attachment:e})=>{const[y,g]=V.useState(!1),M=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:X,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),k=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?kt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=V.useState(!1),[te,be]=V.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(k?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[k,Q,fe,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&Z?.code?Z:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&Z?.code?Z:N,ie=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,H=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ve(h,H,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(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}),oe!=null){const De=P?.code??"draft",Ie=N?.code??"",ke=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",Ae=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,ke,Pe,Ae,Me):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,ke,Pe,Ae,Me)}}},Te=()=>{Ce===!0&&G(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,G]=V.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:k?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{G(!1),ie()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(T)??"",paymentType:ve,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ue,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(He,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Hn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("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(Vn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Lt(o);return o!=null?t.jsx(Zn,{children:it.includes(s)?t.jsxs(Ge,{windowSize:s,children:[t.jsxs(Pn,{children:[t.jsxs(An,{children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:A("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(o.id,o.billPayInfo.stage.code),children:[t.jsxs(U,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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:s,children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsxs(Wn,{"data-testid":v("review-detail-info"),onClick:()=>X(o.id,o.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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})]})},o.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(qe,{children:a.pay}),t.jsx(Ke,{children:t.jsx(Re,{amount:gt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(qe,{children:a.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,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,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!x&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,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}${re(ln(Y.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,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})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,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,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ye,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(de,{children:_e.transactionFee}),t.jsx(se,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{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(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&k?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ze(!1,C,h,H,s)}},primaryBtn:{label:Ve(h,H,e.isBillMarkedForRetry),isLoading:k?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?G(!0):Te()},style:{width:Ze(!0,C,h,H,s)}},rightSideComponent:C&&!h&&k.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(qn,{})})})}):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})]})},Ve=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,g,M,S)=>g?128:y&&!e&&S==="small"?"auto":M?165:m.footerButtonWidth.value(S),pn=i(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -102,10 +102,10 @@ import{J as Tt,ax as Ct,y as u,f8 as Dt,f9 as It,fa as kt,V as t,fb as Pt,fc as
|
|
|
102
102
|
`,In=i(ce)`
|
|
103
103
|
padding-bottom: ${n.sp3};
|
|
104
104
|
color: ${j.brandColorGoldDark};
|
|
105
|
-
`,kn=i(
|
|
105
|
+
`,kn=i(Gt)`
|
|
106
106
|
padding-top: ${n.sp3};
|
|
107
107
|
color: ${j.brandColorGoldDark};
|
|
108
|
-
`,
|
|
108
|
+
`,Ge=i.div`
|
|
109
109
|
display: flex;
|
|
110
110
|
flex-direction: ${e=>it.includes(e.windowSize)?"column":"row"};
|
|
111
111
|
width: 100%;
|
|
@@ -121,7 +121,7 @@ import{J as Tt,ax as Ct,y as u,f8 as Dt,f9 as It,fa as kt,V as t,fb as Pt,fc as
|
|
|
121
121
|
`,Mn=i.div`
|
|
122
122
|
display: flex;
|
|
123
123
|
padding-top: ${n.sp3};
|
|
124
|
-
`,
|
|
124
|
+
`,qe=i(Jt)`
|
|
125
125
|
display: flex;
|
|
126
126
|
color: ${e=>e.theme.colors.hero};
|
|
127
127
|
margin-right: ${n.sp1};
|
|
@@ -267,11 +267,11 @@ import{J as Tt,ax as Ct,y as u,f8 as Dt,f9 as It,fa as kt,V as t,fb as Pt,fc as
|
|
|
267
267
|
margin-top: ${n.sp3};
|
|
268
268
|
margin-left: ${n.sp4};
|
|
269
269
|
color: ${j.brandColorGoldDark};
|
|
270
|
-
`,
|
|
270
|
+
`,Gn=i.div`
|
|
271
271
|
display: flex;
|
|
272
272
|
justify-content: flex-end;
|
|
273
273
|
margin-right: ${e=>m.footerRightIconMarginRight.valuePx(e.windowSize)};
|
|
274
|
-
`,
|
|
274
|
+
`,qn=i(tn)`
|
|
275
275
|
cursor: pointer;
|
|
276
276
|
color: ${e=>e.theme.colors.hero};
|
|
277
277
|
width: ${n.sp4};
|
package/dist/assets/{ReviewOverlay-Bn3TFqfi-61PAxosm.js → ReviewOverlay-Bn3TFqfi-BNzIrw2d.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as P,V as i,aR as m,o as r,aT as L,y as d,x as M,H as I,a as C,p as s,am as j,cE as W,T as D,aj as b,bj as R,u as n,eo as G,h as _,j0 as H,kd as J}from"./index-
|
|
1
|
+
import{J as P,V as i,aR as m,o as r,aT as L,y as d,x as M,H as I,a as C,p as s,am as j,cE as W,T as D,aj as b,bj as R,u as n,eo as G,h as _,j0 as H,kd as J}from"./index-DBvg5JK1.js";import{n as t}from"./mui-CVkStVfi.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]="9a313888-77ef-471a-8723-499812a9353c",e._sentryDebugIdIdentifier="sentry-dbid-9a313888-77ef-471a-8723-499812a9353c")}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])},A={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=P();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(q,{windowSize:a,children:[i.jsxs(O,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:F(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-DhBFvJea-vHmZXp6q.js → RoleWithToolTip-DhBFvJea-CdVG2bUA.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eT as h,eU as f,V as s,bV as g,o as d,aR as l,F as y,ao as x,aj as p}from"./index-
|
|
1
|
+
import{eT as h,eU as f,V as s,bV as g,o as d,aR as l,F as y,ao as x,aj as p}from"./index-DBvg5JK1.js";import{n}from"./mui-CVkStVfi.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]="da535025-d3f3-4956-9865-e9f1e5a11588",e._sentryDebugIdIdentifier="sentry-dbid-da535025-d3f3-4956-9865-e9f1e5a11588")}catch{}})();const{hyphen:i}=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{aS as H,is as te,gL as me,eF as Je,it as Me,aa as _e,iu as Ve,cH as Fe,cI as Pe,V as a,ad as Ne,cr as qe,cs as Re,ct as Be,aT as We,iv as ze,iw as Ue,F as
|
|
1
|
+
import{aS as H,is as te,gL as me,eF as Je,it as Me,aa as _e,iu as Ve,cH as Fe,cI as Pe,V as a,ad as Ne,cr as qe,cs as Re,ct as Be,aT as We,iv as ze,iw as Ue,F as ge,ab as pe,ix as Se,iy as $e,cL as Ge,J as He,iM as Ke,gQ as ue,u as B,p as De,y as ye,cM as Xe,iz as Ye,iA as Ze,iB as Qe,o as V}from"./index-DBvg5JK1.js";import{a as f}from"./sentry-DlWPKrHR.js";import{n as z}from"./mui-CVkStVfi.js";import{G9 as et,Ga as tt}from"./zeni-epic-state-BeWB6NzA.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-D-rZ4ftr-kFr_wsWf.js";import"./liveblocks-ZYzhSRWz.js";import"./core-DhTpg44s.js";import"./recharts-BLPoQhru.js";import"./lottie-UCmESiQw.js";import"./analytics-6q2YPSTL.js";import"./lexical-CUG-jFYn.js";import"./utils-D4kXjSE5.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]="05270057-05b0-4bb7-b0a7-2b6d3c4dffe5",e._sentryDebugIdIdentifier="sentry-dbid-05270057-05b0-4bb7-b0a7-2b6d3c4dffe5")}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%;
|
|
@@ -18,7 +18,7 @@ import{aS as H,is as te,gL as me,eF as Je,it as Me,aa as _e,iu as Ve,cH as Fe,cI
|
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
margin: ${V.sp4} ${V.sp8} ${V.sp0} ${V.sp8};
|
|
21
|
-
`,_=(e,d)=>`${e}.${d}`;function it({sectionId:e,jeScheduledTransaction:d,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:
|
|
21
|
+
`,_=(e,d)=>`${e}.${d}`;function it({sectionId:e,jeScheduledTransaction:d,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:b,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:T,selectedClass:F,selectedAccumulatedDepreciationCategory:P,assetId:L,selectedDate:w,selectedMonths:j,selectedPostingDay:A,lastDayOfMonth:O,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:se,onMarkAsComplete:Y}){const{resetField:S}=Ge(),oe=_(e,"scheduleExpenseCategory"),ne=_(e,"scheduleClass"),de=_(e,"accumulatedDepreciationCategory"),ie=_(e,"assetId"),Z=_(e,"startDate"),D=_(e,"postingDate"),r=_(e,"months"),t=ge.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,C=o=>s.filter(q=>q.qboId===o)[0]?.qboId,g=o=>p.filter(q=>q.qboId===o)[0]?.qboId,ce=o=>u.filter(q=>q.classId===o)[0]?.accountingClassNumber,X={valueContainer:o=>({...o,overflow:"unset"})},I=He(),U=Ke({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),$=()=>{S(D)},G=A==null&&O==null?void 0:O===!0?"lastDayOfMonth":"day",N=o=>[k.expense?.qboId,k.income?.qboId].includes(o),Q=()=>{d.jeScheduleId!=null&&se(d.jeScheduleId)},y=d.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(dt,{children:[a.jsx(st,{status:d.status.code,jeScheduleId:d.jeScheduleId,allowCreateSchedule:J,onDelete:Q,isUpdating:m==="In-Progress",onMarkAsComplete:Y,onCreateSchedule:i}),a.jsx(pe,{controller:J===!0,children:a.jsxs(nt,{children:[a.jsx(ue,{isDisabled:y.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.expenseCategory,width:W.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:y.includes("debit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:oe,placeholder:t.expenseCategoryPlaceholder,valueToId:o=>C(o),defaultValue:{selectedOption:T,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},disableCurrentOption:N,style:{borderTopLeftRadius:B[2],borderTopRightRadius:B[2]}}),a.jsx(K,{}),a.jsx(ue,{isDisabled:h,isLoading:!1,label:{label:t.class,width:W.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ne,placeholder:t.classPlaceholder,valueToId:o=>ce(o),defaultValue:{selectedOption:F,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},style:{borderTopLeftRadius:B[0],borderTopRightRadius:B[0]}}),a.jsx(K,{}),a.jsx(ue,{isDisabled:y.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:y.includes("credit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:de,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>g(o),defaultValue:{selectedOption:P,allOptions:b},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},disableCurrentOption:N,style:{borderTopLeftRadius:B[0],borderTopRightRadius:B[0]}}),a.jsx(K,{}),a.jsx(Xe,{label:{label:t.assetId,width:W.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:ie,defaultValue:L,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:B[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(K,{}),a.jsx(Ye,{label:{label:t.startMonth,width:W.labelWidth.value(I)},monthSelectorField:{name:Z,placeholder:t.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:h,monthsAndYears:U},isDisabled:h}),a.jsx(K,{}),a.jsx(ot,{label:{label:t.postingDate,width:W.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:D,defaultValue:{type:G,dayOfMonth:A},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(K,{}),a.jsx(Ze,{label:{label:t.months,width:W.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:j!=null?v[j-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(pe,{controller:J===!1,children:a.jsx(Qe,{text:t.scheduleMarkedAsCompleted})})]})}const ct=z.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
width: 100%;
|
|
@@ -34,4 +34,4 @@ import{aS as H,is as te,gL as me,eF as Je,it as Me,aa as _e,iu as Ve,cH as Fe,cI
|
|
|
34
34
|
`,ht=z.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
justify-content: center;
|
|
37
|
-
`,Ce="scheduleDetailsPage",le="scheduleDetailsFixedAssetsSection",ae="scheduleDetailsListSection",pt=be.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ft}}=pt;function It({analytics:e,controllerUserDetails:d,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:C,onJELinkClick:v,onSave:k,onDelete:T,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:j}){const[A,O]=f.useState(!1),h=H(l.updateStatus.fetchState),J=H(l.selectedJEScheduleTransaction?.status.code),i=H(l.deleteStatus.fetchState),[se,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,oe=H(S.jeScheduleDetails.length),ne=H(S.selectedDate),de=H(S.selectedDayOfMonth),[ie,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,g=et(d.controllers),b=tt(d.controllerUserIds),ce={onOkClick:()=>{O(!1),p()},onCancelClick:()=>{O(!1)}},X=n=>{const x=t?.scheduledJournalEntry[n];r!=null&&x!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...$e(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(x)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:g,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(n)},I=(n,x)=>{const E=t?.scheduledJournalEntry[x];r!=null&&E!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(E),controllerEmails:g,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),P(n)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&j(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,j,c,l.updateStatus,t,r,D,g,b]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const U=me(l.accountListNestedAccountHierarchy),$=me(l.allDepreciationAccountListNestedAccountHierarchy),G=Je(l.classListNestedAccountHierarchy),N=Me("fixed_assets"),Q=f.useRef(),y=_e({mode:"all",reValidateMode:"onChange",defaultValues:he(l,U,G,$,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:he(l,U,G,$,N,u.entityAutoCompleteView)}),o=y.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&Q.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const q=(n,x)=>{s.onAutoCompleteInputChange?.(n,"vendor"),Q.current=x},xe=y.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,x)=>{const E=x[le].vendor;if(n.includes("vendor")){const re=E?.defaultOptions.map(R=>R.value);if(E?.selectedOption!=null&&re?.includes(E.selectedOption)!==!0){const R=u.entityAutoCompleteView.vendor.find(we=>we.id===E.selectedOption);R!=null&&y.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:R.name??"",value:R.id}])}}const ee=n.includes("amount");if(F(x,ee),n.includes("amount")){const re=n.split(".")[1],R=parseInt(re);Y(!0),C(R,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{let n=!0;const x=y.watch((E,{name:ee})=>{ee!=null&&E!=null&&Fe(()=>{n&&ve(ee,E)})});return()=>{n=!1,x.unsubscribe()}}),f.useEffect(()=>{(oe!==S.jeScheduleDetails.length||ne!==S.selectedDate||de!==S.selectedDayOfMonth)&&se===!0&&(y.resetField(ae,{defaultValue:he(l,U,G,$,N,u.entityAutoCompleteView)[ae],keepDirty:!1}),Y(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const fe=(Pe(y.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,Ae=()=>{fe===!0?O(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),p())},Oe=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Ee=f.useCallback(()=>{Z(!0)},[]),Te=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),w()},[e,g,b,t,w,r,D]),je=f.useCallback(n=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),T(n)},[e,g,b,t,T,r,D]),Ie=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(n=>n.error??[]).filter(n=>!!n)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(n=>n.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,ke=a.jsx(mt,{title:Ie??M.strings.empty,onNavigateBack:Ae,onTransactionClick:Oe}),Le=a.jsx(rt,{children:a.jsx(Ne,{...y,children:a.jsxs("form",{style:{width:"100%"},id:ge(Ce),onSubmit:xe,children:[a.jsx(St,{vendorLoadOptions:q,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:G,allMonthOptions:N,allDepAccountOptions:$,onEditAmount:C,onDelete:je,onJELinkClick:X,onViewLinkedJE:I,onMarkAsComplete:Te,allowCreateSchedule:ie,onCreateSchedule:Ee}),A===!0?a.jsx(qe,{titleComponent:a.jsx(Be,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Re,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ce}):null,fe===!0?a.jsx(We,{formId:ge(Ce),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{O(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(ct,{children:[ke,Le]})}function mt({onNavigateBack:e,onTransactionClick:d,title:m}){return a.jsx(Ue,{title:m,tooltipTextOnLaunch:ft.showTransactionTooltip,onBackClick:e,onLaunchClick:d,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:d,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:C,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:T,onDelete:F,onJELinkClick:P,onViewLinkedJE:L,onMarkAsComplete:w}){const j=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(A=>A.error).filter(A=>!!A)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(lt,{vendorLoadOptions:d,vendorField:e,vendorFieldName:_(le,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:j,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(it,{sectionId:le,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:C,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:F,onMarkAsComplete:w,onCreateSchedule:k}),a.jsx(pe,{controller:v===!0,children:a.jsx(at,{sectionId:ae,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:T,onJELinkClick:P,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ge=e=>`${e}_form`,he=(e,d,m,l,s,u)=>{const c=e.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,C=c.selectedVendor,v=C!=null?u.vendor.find(i=>i.zeniId===C.id):void 0,k=p!=null?e.allAccountList.find(i=>i.accountId===p):void 0,T=c.selectedAccumulatedDepreciationCategory,F=T!=null?e.allDepreciationAccountList.find(i=>i.accountId===T):void 0,P=c.assetId,L=c.selectedClass,w=L!=null?e.allClassList.find(i=>i.classId===L):void 0,j=c.selectedMonths,A=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),O=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=O==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[le]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:d},accumulatedDepreciationCategory:{selectedOption:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:j,allOptions:s},vendor:{selectedOption:v?.id??C?.id,defaultOptions:ze(u,v??C)},postingDate:{type:J,dayOfMonth:O}},[ae]:A}};export{It as default};
|
|
37
|
+
`,be="scheduleDetailsPage",le="scheduleDetailsFixedAssetsSection",ae="scheduleDetailsListSection",pt=ge.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ft}}=pt;function It({analytics:e,controllerUserDetails:d,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:b,onJELinkClick:v,onSave:k,onDelete:T,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:j}){const[A,O]=f.useState(!1),h=H(l.updateStatus.fetchState),J=H(l.selectedJEScheduleTransaction?.status.code),i=H(l.deleteStatus.fetchState),[se,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,oe=H(S.jeScheduleDetails.length),ne=H(S.selectedDate),de=H(S.selectedDayOfMonth),[ie,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,C=et(d.controllers),g=tt(d.controllerUserIds),ce={onOkClick:()=>{O(!1),p()},onCancelClick:()=>{O(!1)}},X=n=>{const x=t?.scheduledJournalEntry[n];r!=null&&x!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...$e(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(x)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:C,controllerUserIds:g,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(n)},I=(n,x)=>{const E=t?.scheduledJournalEntry[x];r!=null&&E!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(E),controllerEmails:C,controllerUserIds:g,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),P(n)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:C,controllerUserIds:g})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&j(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,j,c,l.updateStatus,t,r,D,C,g]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const U=me(l.accountListNestedAccountHierarchy),$=me(l.allDepreciationAccountListNestedAccountHierarchy),G=Je(l.classListNestedAccountHierarchy),N=Me("fixed_assets"),Q=f.useRef(),y=_e({mode:"all",reValidateMode:"onChange",defaultValues:he(l,U,G,$,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:he(l,U,G,$,N,u.entityAutoCompleteView)}),o=y.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&Q.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const q=(n,x)=>{s.onAutoCompleteInputChange?.(n,"vendor"),Q.current=x},xe=y.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,x)=>{const E=x[le].vendor;if(n.includes("vendor")){const re=E?.defaultOptions.map(R=>R.value);if(E?.selectedOption!=null&&re?.includes(E.selectedOption)!==!0){const R=u.entityAutoCompleteView.vendor.find(we=>we.id===E.selectedOption);R!=null&&y.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:R.name??"",value:R.id}])}}const ee=n.includes("amount");if(F(x,ee),n.includes("amount")){const re=n.split(".")[1],R=parseInt(re);Y(!0),b(R,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{let n=!0;const x=y.watch((E,{name:ee})=>{ee!=null&&E!=null&&Fe(()=>{n&&ve(ee,E)})});return()=>{n=!1,x.unsubscribe()}}),f.useEffect(()=>{(oe!==S.jeScheduleDetails.length||ne!==S.selectedDate||de!==S.selectedDayOfMonth)&&se===!0&&(y.resetField(ae,{defaultValue:he(l,U,G,$,N,u.entityAutoCompleteView)[ae],keepDirty:!1}),Y(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const fe=(Pe(y.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,Ae=()=>{fe===!0?O(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:C,controllerUserIds:g})),p())},Oe=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Ee=f.useCallback(()=>{Z(!0)},[]),Te=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:C,controllerUserIds:g})),w()},[e,C,g,t,w,r,D]),je=f.useCallback(n=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:C,controllerUserIds:g})),T(n)},[e,C,g,t,T,r,D]),Ie=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(n=>n.error??[]).filter(n=>!!n)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(n=>n.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,ke=a.jsx(mt,{title:Ie??M.strings.empty,onNavigateBack:Ae,onTransactionClick:Oe}),Le=a.jsx(rt,{children:a.jsx(Ne,{...y,children:a.jsxs("form",{style:{width:"100%"},id:Ce(be),onSubmit:xe,children:[a.jsx(St,{vendorLoadOptions:q,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:G,allMonthOptions:N,allDepAccountOptions:$,onEditAmount:b,onDelete:je,onJELinkClick:X,onViewLinkedJE:I,onMarkAsComplete:Te,allowCreateSchedule:ie,onCreateSchedule:Ee}),A===!0?a.jsx(qe,{titleComponent:a.jsx(Be,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Re,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ce}):null,fe===!0?a.jsx(We,{formId:Ce(be),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{O(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(ct,{children:[ke,Le]})}function mt({onNavigateBack:e,onTransactionClick:d,title:m}){return a.jsx(Ue,{title:m,tooltipTextOnLaunch:ft.showTransactionTooltip,onBackClick:e,onLaunchClick:d,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:d,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:b,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:T,onDelete:F,onJELinkClick:P,onViewLinkedJE:L,onMarkAsComplete:w}){const j=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(A=>A.error).filter(A=>!!A)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(lt,{vendorLoadOptions:d,vendorField:e,vendorFieldName:_(le,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:j,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(it,{sectionId:le,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:b,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:F,onMarkAsComplete:w,onCreateSchedule:k}),a.jsx(pe,{controller:v===!0,children:a.jsx(at,{sectionId:ae,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:T,onJELinkClick:P,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const Ce=e=>`${e}_form`,he=(e,d,m,l,s,u)=>{const c=e.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,b=c.selectedVendor,v=b!=null?u.vendor.find(i=>i.zeniId===b.id):void 0,k=p!=null?e.allAccountList.find(i=>i.accountId===p):void 0,T=c.selectedAccumulatedDepreciationCategory,F=T!=null?e.allDepreciationAccountList.find(i=>i.accountId===T):void 0,P=c.assetId,L=c.selectedClass,w=L!=null?e.allClassList.find(i=>i.classId===L):void 0,j=c.selectedMonths,A=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),O=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=O==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[le]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:d},accumulatedDepreciationCategory:{selectedOption:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:j,allOptions:s},vendor:{selectedOption:v?.id??b?.id,defaultOptions:ze(u,v??b)},postingDate:{type:J,dayOfMonth:O}},[ae]:A}};export{It as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aS as F,is as Q,gL as Ie,eF as Je,it as Le,aa as we,iu as Me,cH as Ve,cI as Pe,V as a,ad as _e,cr as Fe,cs as $e,ct as Ne,aT as Be,iv as ze,iw as Ue,F as ye,ab as re,ix as pe,iy as We,cL as Re,J as qe,gQ as
|
|
1
|
+
import{aS as F,is as Q,gL as Ie,eF as Je,it as Le,aa as we,iu as Me,cH as Ve,cI as Pe,V as a,ad as _e,cr as Fe,cs as $e,ct as Ne,aT as Be,iv as ze,iw as Ue,F as ye,ab as re,ix as pe,iy as We,cL as Re,J as qe,gQ as me,u as Z,p as Ge,y as Ke,iz as He,iA as Xe,iB as Ye,o as L}from"./index-DBvg5JK1.js";import{a as y}from"./sentry-DlWPKrHR.js";import{n as P}from"./mui-CVkStVfi.js";import{G9 as Qe,Ga as Ze,bL as et}from"./zeni-epic-state-BeWB6NzA.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-D-rZ4ftr-kFr_wsWf.js";import"./liveblocks-ZYzhSRWz.js";import"./core-DhTpg44s.js";import"./recharts-BLPoQhru.js";import"./lottie-UCmESiQw.js";import"./analytics-6q2YPSTL.js";import"./lexical-CUG-jFYn.js";import"./utils-D4kXjSE5.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]="d1741494-2035-451a-9031-a2189c3c65f2",e._sentryDebugIdIdentifier="sentry-dbid-d1741494-2035-451a-9031-a2189c3c65f2")}catch{}})();const z={labelWidth:new Ke(160,160,160)},nt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -18,7 +18,7 @@ import{aS as F,is as Q,gL as Ie,eF as Je,it as Le,aa as we,iu as Me,cH as Ve,cI
|
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
margin: ${L.sp4} ${L.sp8} ${L.sp0} ${L.sp8};
|
|
21
|
-
`,$=(e,s)=>`${e}.${s}`;function dt({sectionId:e,jeScheduledTransaction:s,updateStatus:p,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:
|
|
21
|
+
`,$=(e,s)=>`${e}.${s}`;function dt({sectionId:e,jeScheduledTransaction:s,updateStatus:p,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:m,selectedAccount:r,selectedClass:D,selectedDate:w,selectedMonths:I,selectedPostingDay:O,lastDayOfMonth:A,isDisabled:f,allowCreateSchedule:b,onCreateSchedule:u,onDelete:ae,onMarkAsComplete:_}){const{resetField:U}=Re(),W=$(e,"scheduleExpenseCategory"),R=$(e,"scheduleClass"),se=$(e,"startDate"),N=$(e,"postingDate"),C=$(e,"months"),S=ye.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,ne=c=>t.filter(B=>B.qboId===c)[0]?.qboId,oe=c=>i.filter(B=>B.classId===c)[0]?.accountingClassNumber,q={valueContainer:c=>({...c,overflow:"unset"})},J=qe(),v=ct({startDate:s.baseTransaction.date,endDate:s.baseTransaction.date.add(1,"year")}),h=()=>{U(N)},n=O==null&&A==null?void 0:A===!0?"lastDayOfMonth":"day",x=c=>[m.expense?.qboId,m.income?.qboId].includes(c),E=()=>{s.jeScheduleId!=null&&ae(s.jeScheduleId)},G=s.scheduledJournalEntry.flatMap(c=>c.error);return a.jsxs(ot,{children:[a.jsx(at,{isUpdating:p==="In-Progress",status:s.status.code,jeScheduleId:s.jeScheduleId,allowCreateSchedule:b,onDelete:E,onMarkAsComplete:_,onCreateSchedule:u}),a.jsx(re,{controller:b===!0,children:a.jsxs(nt,{children:[a.jsx(me,{isDisabled:G.includes("debit_category_deleted")?void 0:f,isLoading:!1,label:{label:S.expenseCategory,width:z.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:G.includes("debit_category_deleted")?Ge.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:W,placeholder:S.expenseCategoryPlaceholder,valueToId:c=>ne(c),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:q},disableCurrentOption:x,style:{borderTopLeftRadius:Z[2],borderTopRightRadius:Z[2]}}),a.jsx(ee,{}),a.jsx(me,{isDisabled:f,isLoading:!1,label:{label:S.class,width:z.labelWidth.value(J)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:R,placeholder:S.classPlaceholder,valueToId:c=>oe(c),defaultValue:{selectedOption:D,allOptions:g},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:q},style:{borderTopLeftRadius:Z[0],borderTopRightRadius:Z[0]}}),a.jsx(ee,{}),a.jsx(He,{label:{label:S.startMonth,width:z.labelWidth.value(J)},monthSelectorField:{name:se,placeholder:S.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:f,monthsAndYears:v},isDisabled:f}),a.jsx(ee,{}),a.jsx(st,{label:{label:S.postingDate,width:z.labelWidth.value(J)},isDisabled:f,dayOfMonthField:{placeholder:S.postingDatePlaceholder,name:N,defaultValue:{type:n,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(ee,{}),a.jsx(Xe,{label:{label:S.months,width:z.labelWidth.value(J)},singleSelectNumericField:{name:C,isDisabled:f,placeholder:S.monthsPlaceholder,defaultValue:{selectedOption:I!=null?o[I-1]:void 0,allOptions:o},registerOptions:{required:!0,validate:c=>!!c.selectedOption}}})]})}),a.jsx(re,{controller:b===!1,children:a.jsx(Ye,{text:S.scheduleMarkedAsCompleted})})]})}const ct=e=>{const s={},p=e.endDate.year()-e.startDate.year()+1,l=e.endDate.year(),t=e.startDate.year();return{years:Array(p).fill(l).map((i,g)=>{const o=i-g,m=o.toString();let r=[];if(o===t){const D=e.startDate.month();r=e.startDate.localeData().monthsShort(),D!==0&&r.splice(0,D)}else r=et(`${o}-01-01`).localeData().monthsShort();return s[m]=r,m}).reverse(),months:s}},it=P.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
width: 100%;
|
|
@@ -34,4 +34,4 @@ import{aS as F,is as Q,gL as Ie,eF as Je,it as Le,aa as we,iu as Me,cH as Ve,cI
|
|
|
34
34
|
`,ht=P.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
justify-content: center;
|
|
37
|
-
`,
|
|
37
|
+
`,fe="scheduleDetailsPage",te="scheduleDetailsSection",le="scheduleDetailsListSection",pt=ye.getLocalizedStrings(),{common:k,jeSchedules:{scheduleDetails:mt}}=pt;function kt({analytics:e,controllerUserDetails:s,expenseAutomationSelectedPeriod:p,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:o,onMarkAsComplete:m,onNavigateBack:r,onEditAmount:D,onJELinkClick:w,onSave:I,onDelete:O,onDetailPageChange:A,onViewLinkedJE:f,onTransactionClick:b,removeJeScheduleTransactionKey:u}){const[ae,_]=y.useState(!1),U=F(l.updateStatus.fetchState),W=F(l.selectedJEScheduleTransaction?.status.code),R=F(l.deleteStatus.fetchState),[se,N]=y.useState(!1),C=l.scheduleDetailsLocalData.prepaid_expenses,S=F(C.jeScheduleDetails.length),ne=F(C.selectedDate),oe=F(C.selectedDayOfMonth),[q,J]=y.useState(!0),v=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,n=l.selectedJEScheduleTransaction,x=Qe(s.controllers),E=Ze(s.controllerUserIds),G={onOkClick:()=>{_(!1),r()},onCancelClick:()=>{_(!1)}},c=d=>{const T=n?.scheduledJournalEntry[d];h!=null&&T!=null&&n!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...We(h)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...pe(T)},vendorName:v!=null?v.name:k.strings.hyphen,controllerEmails:x,controllerUserIds:E}),w(d)},B=(d,T)=>{const j=n?.scheduledJournalEntry[T];h!=null&&j!=null&&n!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(j),controllerEmails:x,controllerUserIds:E}),f(d)};y.useEffect(()=>{U==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&n!=null&&e.trackScheduleDetailsSaved(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),i===!0&&n?.jeScheduleTransactionKey!=null&&W==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(n.jeScheduleTransactionKey,{month:p.month,year:p.year}),r())},[W,l.selectedJEScheduleTransaction?.status.code,e,r,p,U,l.updateStatus,u,t,i,n,h,v,x,E]),y.useEffect(()=>{R==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[R,l.deleteStatus,r]);const K=Ie(l.accountListNestedAccountHierarchy),H=Je(l.classListNestedAccountHierarchy),X=Le(t),ue=y.useRef(),M=we({mode:"all",reValidateMode:"onChange",defaultValues:ie(l,K,H,X,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ie(l,K,H,X,o.entityAutoCompleteView)}),de=M.watch("scheduleDetailsSection.vendor");y.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&ue.current?.(Me(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const De=(d,T)=>{g.onAutoCompleteInputChange?.(d,"vendor"),ue.current=T},Ce=M.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)}),ge=async(d,T)=>{const j=T[te].vendor;if(d.includes("vendor")){const ce=j?.defaultOptions.map(V=>V.value);if(j?.selectedOption!=null&&ce?.includes(j.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(ke=>ke.id===j.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??k.strings.empty,value:V.id}])}}const Y=d.includes("amount");if(A(T,Y),d.includes("amount")){const ce=d.split(".")[1],V=parseInt(ce);N(!0),D(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};y.useEffect(()=>{let d=!0;const T=M.watch((j,{name:Y})=>{Y!=null&&j!=null&&Ve(()=>{d&&ge(Y,j)})});return()=>{d=!1,T.unsubscribe()}}),y.useEffect(()=>{(S!==C.jeScheduleDetails.length||ne!==C.selectedDate||oe!==C.selectedDayOfMonth)&&se===!0&&(M.resetField(le,{defaultValue:ie(l,K,H,X,o.entityAutoCompleteView)[le],keepDirty:!1}),N(!1))},[C.jeScheduleDetails.length,C.selectedDate,C.selectedDayOfMonth]),y.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&J(!1)},[l.selectedJEScheduleTransaction?.status.code]);const he=(Pe(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&C.jeScheduleDetails.length>0,be=()=>{he===!0?_(!0):(h!=null&&n!=null&&e.trackScheduleDetailsCanceled(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),r())},ve=()=>{l.selectedJEScheduleTransaction!=null&&b({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},xe=y.useCallback(()=>{J(!0)},[]),Ee=y.useCallback(()=>{h!=null&&n!=null&&e.trackScheduleDetailsMarkedAsCompleted(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),m()},[e,n,m,t,h,v,x,E]),Te=y.useCallback(d=>{h!=null&&n!=null&&e.trackScheduleDetailsDeleted(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),O(d)},[e,n,O,t,h,v,x,E]),je=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?de?.defaultOptions.find(d=>d.value===de?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,Oe=a.jsx(ft,{onNavigateBack:be,onTransactionClick:ve,title:je??k.strings.empty}),Ae=a.jsx(rt,{children:a.jsx(_e,{...M,children:a.jsxs("form",{style:{width:"100%"},id:Se(fe),onSubmit:Ce,children:[a.jsx(St,{vendorLoadOptions:De,vendorField:de,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:K,allClassOptions:H,allMonthOptions:X,allowCreateSchedule:q,onEditAmount:D,onDelete:Te,onJELinkClick:c,onViewLinkedJE:B,onMarkAsComplete:Ee,onCreateSchedule:xe}),ae===!0?a.jsx(Fe,{titleComponent:a.jsx(Ne,{children:k.confirmationPopup.discardTitle}),descriptionComponent:a.jsx($e,{children:k.confirmationPopup.discardDescription}),primaryButtonText:k.confirmationPopup.discard,secondaryButtonText:k.confirmationPopup.cancel,proceedButtonVariant:"danger",action:G}):null,he===!0?a.jsx(Be,{formId:Se(fe),primaryBtn:{label:k.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:k.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{_(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(it,{children:[Oe,Ae]})}function ft({title:e,onNavigateBack:s,onTransactionClick:p}){return a.jsx(Ue,{title:e,tooltipTextOnLaunch:mt.showTransactionTooltip,onBackClick:s,onLaunchClick:p,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:s,vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:g,allMonthOptions:o,allowCreateSchedule:m,onCreateSchedule:r,onMarkAsComplete:D,onEditAmount:w,onDelete:I,onJELinkClick:O,onViewLinkedJE:A}){const f=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(b=>b.error??[]).filter(b=>!!b)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(tt,{errors:f,vendorLoadOptions:s,vendorField:e,vendorFieldName:$(te,"vendor"),vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(dt,{sectionId:te,jeScheduledTransaction:t.selectedJEScheduleTransaction,allAccountOptions:i,allAccountList:t.allAccountList,allClassList:t.allClassList,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:t.uncategorizedAccounts,lastDayOfMonth:t.scheduleDetailsLocalData.prepaid_expenses.lastDayOfMonth,selectedPostingDay:t.scheduleDetailsLocalData.prepaid_expenses.selectedDayOfMonth,selectedMonths:t.scheduleDetailsLocalData.prepaid_expenses.selectedMonths,isDisabled:t.selectedJEScheduleTransaction.jeScheduleId!=null&&t.selectedJEScheduleTransaction.status.code!=="marked_as_completed"&&t.selectedJEScheduleTransaction.status.code!=="draft"?"disabled":void 0,allowCreateSchedule:m,onCreateSchedule:r,onDelete:I,onMarkAsComplete:D,updateStatus:t.deleteStatus.fetchState}),a.jsx(re,{controller:m===!0,children:a.jsx(lt,{sectionId:le,totalAmount:t.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:t.fetchState,scheduleJournalEntries:t.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:t.selectedJEScheduleTransaction.jeScheduleId==null,localData:t.scheduleDetailsLocalData.prepaid_expenses.jeScheduleDetails,uiState:t.uiState,onEditAmount:w,onJELinkClick:O,onViewLinkedJE:A,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const Se=e=>`${e}_form`,ie=(e,s,p,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,g=i.selectedAccount,o=i.selectedVendor,m=o!=null?t.vendor.find(u=>u.zeniId===o.id):void 0,r=g!=null?e.allAccountList.find(u=>u.accountId===g):void 0,D=i.selectedClass,w=D!=null?e.allClassList.find(u=>u.classId===D):void 0,I=i.selectedMonths,O=i.jeScheduleDetails.map(u=>({postingDate:u.postingDate,amount:u.amount.amount,runningBalance:u.runningBalance.amount,postingStatus:u.postingStatus,jeLink:u.jeLink.thirdPartyTransactionId})),A=i.selectedDayOfMonth,f=i.lastDayOfMonth,b=A==null&&f==null?void 0:f===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:s},scheduleClass:{selectedOption:w?.classId,allOptions:p},startDate:i.selectedDate,months:{selectedOption:I,allOptions:l},vendor:{selectedOption:m?.id??o?.id,defaultOptions:ze(t,m??o)},postingDate:{type:b,dayOfMonth:A}},[le]:O}};export{kt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as F,d as Q,V as t,iC as ie,iD as le,H as oe,iE as xe,dU as fe,fl as ye,b as I,F as R,iF as we,iB as be,o as i,y as b,p as j,c as $e,ab as re,dP as je,cr as Se,ct as ke,cL as Z,ex as ee,cQ as ve,iG as K,iH as De,b5 as Ce,iI as Me,cv as ze,iJ as Le,u as h,am as L,bb as Oe,cs as Ee,ap as pe,eG as Ie,b3 as ne,es as Fe,aT as Ae,iK as A,gk as Te,aP as Ve,iL as Je,aX as q,d1 as Be,bj as Pe}from"./index-
|
|
1
|
+
import{J as F,d as Q,V as t,iC as ie,iD as le,H as oe,iE as xe,dU as fe,fl as ye,b as I,F as R,iF as we,iB as be,o as i,y as b,p as j,c as $e,ab as re,dP as je,cr as Se,ct as ke,cL as Z,ex as ee,cQ as ve,iG as K,iH as De,b5 as Ce,iI as Me,cv as ze,iJ as Le,u as h,am as L,bb as Oe,cs as Ee,ap as pe,eG as Ie,b3 as ne,es as Fe,aT as Ae,iK as A,gk as Te,aP as Ve,iL as Je,aX as q,d1 as Be,bj as Pe}from"./index-DBvg5JK1.js";import{n as o,c as B}from"./mui-CVkStVfi.js";import{a as C}from"./sentry-DlWPKrHR.js";import{bh as G,Gb as Re}from"./zeni-epic-state-BeWB6NzA.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]="a1e61e4d-58b3-4327-afce-d79431f7ee2a",e._sentryDebugIdIdentifier="sentry-dbid-a1e61e4d-58b3-4327-afce-d79431f7ee2a")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.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}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=F(),a=Q();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(Ye,{children:[t.jsx(He,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(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(Fe,{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(We,{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(Ae,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:_e(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function He({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(H,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(H,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(H,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(H,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Qe,{children:[t.jsx(W,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(_,{isSelected:r===e,onClick:()=>l(Re(r)),children:r},r)})}),t.jsx(W,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(W,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(W,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const _e=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,qe=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{DZ as Xf,D_ as Lt,D$ as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,E0 as Pa,hB as th,hC as rh,E1 as Gt,E2 as kt,h0 as nh,E3 as xr,E4 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E5 as kl,E6 as Nl,hQ as ah,hN as sh,E7 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E8 as hh,dJ as dh,cU as ph,i$ as Dl,E9 as mh,bL as Tr,hF as xa,hK as gh,oM as Ml,iO as qr,Ea as Ne,ib as na,Eb as yh,j5 as vh,B as Re,Ec as ia,Ed as bh,gZ as wh,Ee as Eh,Ef as Fl,Eg as Sh,nk as qa,mR as _h,Eh as Rh,mX as Zr,Ei as Oh,mZ as Th,Ej as Ze,mO as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ek as Ph,nn as jh,El as xh,n4 as qh,nh as Lh,Em as kh,n8 as Nh,En as Dh,Eo as _t,Ep as sa,Eq as Mh,Er as Fh,lR as Uh,lX as $l,Es as Vl,gu as Bh,D3 as Gl,Et as $h,CZ as Vh,Eu as Gh,Ev as zh,l_ as Hh,Ew as Zh,D8 as Wh,CY as Yh,qh as zl,Ex as Wr,Ey as Hl,A7 as ua,zV as Jh,Aa as Zl,zY as Kh,Ez as Xh,A1 as Qh,zP as ed,zS as td,EA as rd,Ae as nd,A4 as id,c4 as od,bd as ad,EB as sd,EC as ft,ED as ud,EE as cd,EF as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-BeWB6NzA.js";import{j as N}from"./liveblocks-ZYzhSRWz.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-DlWPKrHR.js";import{D as dd,d as dt,J as Lr,e as pd,f as pe,z as be,O as md,W as gd,y as Pe,g as kr,j as yd,E as Je,F as Nt,k as pt,m as at,T as Nr,o as tt,X as vd,n as bd,I as nt,q as ca,P as it,Z as wd,Y as Ed,u as Yr,r as Sd,s as Jl,t as _d,v as Kl,w as Xl,A as Xo,C as Rd,K as Od,L as Td,M as Ql,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,a6 as Fd}from"./index-DBvg5JK1.js";import{f as Ud}from"./analyticsHelper-B-0AfSPy.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-DhTpg44s.js";import{D as Dr,n as Te,S as mt}from"./mui-CVkStVfi.js";import{a as ve,b as Bd,c as $d,d as Vd,e as fa,f as Gd,g as zd,h as Hd,i as gt,j as Zd,k as xt,l as Mr,m as Wd,n as Dt,o as Yd}from"./utils-D4kXjSE5.js";import{r as ha}from"./empty-vxQLOqQD.js";import{r as Jd,a as Kd,b as Xd,c as Qd}from"./constants-BrqJwe63.js";import{r as Mt,a as ep}from"./index-B8umEkB_.js";import{r as tp}from"./index-SLYoLNDj.js";import"./recharts-BLPoQhru.js";import"./lottie-UCmESiQw.js";import"./analytics-6q2YPSTL.js";import"./lexical-CUG-jFYn.js";import"./url-D14qQQ_-.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]="92c5236e-3b33-4bf3-84fb-8a6e001b1811",e._sentryDebugIdIdentifier="sentry-dbid-92c5236e-3b33-4bf3-84fb-8a6e001b1811")}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},rp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function np(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 ip(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const op=ge(ip,np)(yd);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&&(pd(),pe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(!0),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:rp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(md,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(gd,{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(op,{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},ap=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},sp=(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 up(){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 cp={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)??cp.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 lp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(fp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,fp=Te.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|