@zeniai/web-cockpit-ui 1.15.38-dev → 1.15.39-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-D2Xav-UW-gmz3eqze.js → ACHDetailsPage-D2Xav-UW-Dgnek3jF.js} +1 -1
- package/dist/assets/{AIPerformancePage-DlTdGosv-DyKbURC2.js → AIPerformancePage-DlTdGosv-CKELZu7q.js} +1 -1
- package/dist/assets/{AccountInfoPage-B8-8kUGD-pQMRLxBS.js → AccountInfoPage-B8-8kUGD-mN1GR9MV.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BS2TBUSE-DjSw5axw.js → AccountInfoPageContent-BS2TBUSE-DZcY4GCU.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-aukulrV7-DW4aghq-.js → AccountLockedInfoModal-aukulrV7-R5xm9EGa.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-kQJld6_N-B65yMW07.js → AccountReconDetailsDrawerPage-kQJld6_N-BPa3RUBS.js} +1 -1
- package/dist/assets/{AccountRow-BiEYR4Y1-ClTxn5CJ.js → AccountRow-BiEYR4Y1-BOkx20-Y.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DBQnDPXQ-Bven8hQt.js → AccountsPromoCardStack-DBQnDPXQ-DZukOJ98.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DTnfk8K7-BtB56seB.js → AddAddressForCardDrawer-DTnfk8K7-CVXgtNC-.js} +1 -1
- package/dist/assets/{AddToWalletPage-C4EwdLZJ-BEbcOqOR.js → AddToWalletPage-C4EwdLZJ-DDyohZc9.js} +1 -1
- package/dist/assets/{AgingReportsPage-vAvkUfOS-BtReYcdm.js → AgingReportsPage-vAvkUfOS-yma2tPTZ.js} +1 -1
- package/dist/assets/{AllUserItems-qrYg6Gdx-BwUq_luf.js → AllUserItems-qrYg6Gdx-B-VZAPCv.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BRYQMwo2-DVhdxG-Q.js → ApAgingDetailPage-BRYQMwo2-Dp74QGzk.js} +1 -1
- package/dist/assets/{AppBasePage-DrE-W6d7-Kq-aTwFf.js → AppBasePage-DrE-W6d7-CJIRr9Ku.js} +1 -1
- package/dist/assets/{AppDrawerContent-ATbZG_cu-CRi0IC7G.js → AppDrawerContent-ATbZG_cu-CeZJ0YsF.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-5MYC1I6k-BzSO-EGU.js → ApprovalRulesSettingsPage-5MYC1I6k-C5mli22C.js} +1 -1
- package/dist/assets/{ArAgingChart-CuzG9AZY-CNSUQdmd.js → ArAgingChart-CuzG9AZY-Cjy4jalD.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DwRkcLEu-I81vxQpd.js → ArAgingDetailPage-DwRkcLEu-D0JqSAXf.js} +1 -1
- package/dist/assets/{AttachmentView-BrQRChzc-mWFumGJq.js → AttachmentView-BrQRChzc-LVbQ9KV0.js} +1 -1
- package/dist/assets/{BankAccountSection-hcKEMs80-ujPW3TnU.js → BankAccountSection-hcKEMs80-DR7Ncj16.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CpxVDMSZ-BNQxexaw.js → BankAccountWarningSection-CpxVDMSZ-BQlEw8MH.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Bdw1K00m-Cl2UYywT.js → BankConnectionsSettingsPage-Bdw1K00m-eUycilPI.js} +1 -1
- package/dist/assets/{BillDetailPage-D0NLFZXA-DHU3hbq9.js → BillDetailPage-D0NLFZXA-BjkR3NN3.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DkpCvYvo-ufuiC-2k.js → BillPayApprovalRuleDetailPage-DkpCvYvo-DnhaSCPQ.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BEqZD0GU-CWNv7fB2.js → BillPayApprovalRulesPage-BEqZD0GU-D53perZH.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BMcP4EU5-BBffVCRN.js → BillPayPromoPage-BMcP4EU5-CVriywcQ.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-WdEdbf16-DIfXsyw3.js → BillPaySetUpPage-WdEdbf16-CyEAV5pw.js} +1 -1
- package/dist/assets/{BillingSettingsPage-GtRUqSZm-CK-50NW2.js → BillingSettingsPage-GtRUqSZm-C3HejWZS.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DAUoo9pq-BoZGtLPD.js → BillsBulkReviewDrawerPage-DAUoo9pq-dcxTF6za.js} +1 -1
- package/dist/assets/{BoxItem-CACRFWG2-DTCzjEaX.js → BoxItem-CACRFWG2-BWgjkL8U.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-9gZbBDL6-D4OeNnpg.js → BusinessVerificationPage-9gZbBDL6-DqkeZyNM.js} +1 -1
- package/dist/assets/{CardNumberSubText-C-oVdziK-BTlLGD-l.js → CardNumberSubText-C-oVdziK-BBPyyGDj.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BhFKSl4p-D1VJ-I5U.js → CashbackDetailPage-BhFKSl4p-Gyvl2exW.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-D8J6HINu-Djp8X5xt.js → ChargeCardDetailPage-D8J6HINu-BFLtF1Xz.js} +1 -1
- package/dist/assets/{ChargeCardListPage-tdUKyHdz-DA_gAum9.js → ChargeCardListPage-tdUKyHdz-BwUGCbo3.js} +1 -1
- package/dist/assets/{ChargeCardListTable-CByk3iqX-Ws-6RJ3y.js → ChargeCardListTable-CByk3iqX-DbWF3czQ.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-B8zRcrjo-BZol_uHa.js → ChargeCardPaymentHistoryPage-B8zRcrjo-BK7Hyb6E.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-C4cgx2gm-BjrgUKMy.js → ChargeCardPromoPage-C4cgx2gm-udbGGdmV.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DtwiTNKA-4J0P5zst.js → ChargeCardSetupPage-DtwiTNKA-D0xa-uIH.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-B0KPw52e-dCK6B2Ac.js → ChargeCardStatementsPage-B0KPw52e-FET4Siyj.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DKNAXI77-C5AvAeBp.js → CheckDepositDrawerPage-DKNAXI77-BlkVwVxR.js} +1 -1
- package/dist/assets/{CollapsableReportTable-Cq8bhaYC-LGo3rBU5.js → CollapsableReportTable-Cq8bhaYC-BJ9WQB-r.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Rk0B5cB5-BHN1U_wu.js → CompanyOfficerDetailsSection-Rk0B5cB5-Dl62muPU.js} +1 -1
- package/dist/assets/{CompanyPassportCard-CHaKk74P-Din-6OwH.js → CompanyPassportCard-CHaKk74P-BtzNn79O.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DXWXFFKM-DEGq9YOd.js → CompanyPassportPage-DXWXFFKM-CBlFInE8.js} +1 -1
- package/dist/assets/{CompleteProfile-ChaWsK6t-Dm1N-E47.js → CompleteProfile-ChaWsK6t-CEFyQMpd.js} +1 -1
- package/dist/assets/{ConfettiBurst-CdB5fRMt-BFN6S_bw.js → ConfettiBurst-CdB5fRMt-DDshlE3x.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-bG4eDk9o.js → ConstrainedInnerElement-BeIpAPjB-BsHieT3D.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C_8Jqubo-BUW_NZ_u.js → CreateOrEditVendorPage-C_8Jqubo-Cw7g42fQ.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-lOjOtk28-j0qKs3eR.js → CreditCardPaymentDrawerPage-lOjOtk28-CobVcdVW.js} +1 -1
- package/dist/assets/{CurrencySelectField-BDqU4HVy-_c0EjyDh.js → CurrencySelectField-BDqU4HVy-ZvW0DalY.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DO6NCakm-BohLreim.js → CustomerOnboardingActivationPage-DO6NCakm-YNF_GHPk.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-B__Tcf3m.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-BugxAqPd.js → CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-BjXrf6Pl.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CbG5WshV-N0QAWt53.js → CustomerOnboardingNoStepsPage-CbG5WshV-1xGtZSqf.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DyVyf8oK-lwDo-U4P.js → CustomerOnboardingPage-DyVyf8oK-1AyO-jWg.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-1F3JfCRp-Bb5bbAyM.js → CustomerOnboardingProductSuitePage-1F3JfCRp-Cmsj_Wx3.js} +1 -1
- package/dist/assets/{Dashboard-Csggwob0-B_kkr9l_.js → Dashboard-Csggwob0-3JHr7OO7.js} +1 -1
- package/dist/assets/{DashboardReportPage-DFIdi_I0-CIudpdoQ.js → DashboardReportPage-DFIdi_I0-ByyzRF1M.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C3Ovv-ob-CkHR7e1V.js → DashboardSidebarBackgroundAnimation-C3Ovv-ob-CdwBMZrn.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CZ7v1T4S-CDGkzdT3.js → DepositAccTransactionItem-CZ7v1T4S-dzCD3rgw.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-FldPGX6K-D4yjo7wN.js → DepositAccTransactionListPage-FldPGX6K-Uey6qI7-.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C--eZ-UG-aeN-j2-T.js → DomesticWireDetailsPage-C--eZ-UG-BrlkQ0SM.js} +1 -1
- package/dist/assets/{DownloadOverlay-4f9deyJS-BqMoJX-8.js → DownloadOverlay-4f9deyJS-CNo1Mr3O.js} +1 -1
- package/dist/assets/{DrawerPage-roO3xvRT-PSFK2zzW.js → DrawerPage-roO3xvRT-BMU1HxFj.js} +1 -1
- package/dist/assets/{EditPeoplePage-pi5RclAj-x9yNFzVP.js → EditPeoplePage-pi5RclAj-BFp5O8hR.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-CIUcImns-D0KrDI_a.js → EditReimbursementDetailPage-CIUcImns-DAo_nEiN.js} +1 -1
- package/dist/assets/{EntityDetailPage-OTKTVNMD-13C_FBL6.js → EntityDetailPage-OTKTVNMD-CcgqAdru.js} +1 -1
- package/dist/assets/{EntitySummarySection-fBL4TZpT-A_Fknt-h.js → EntitySummarySection-fBL4TZpT-CW2fx1AY.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CnhNINCc-KgO80FB-.js → ExpenseAutomationOverviewPage-CnhNINCc-Y1x_kQP2.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BDLCJbFw-Do8AQ5Tr.js → ExpenseAutomationPage-BDLCJbFw-C5eFAoq-.js} +1 -1
- package/dist/assets/{ExpressPayPage-c8oTCnBR-29U2DeVu.js → ExpressPayPage-c8oTCnBR-C6gOdJvt.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-DkiAajs2-a11xhmqD.js → FeaturePreviewPage-DkiAajs2-hhv-gP13.js} +1 -1
- package/dist/assets/{FollowStepsSection-GaWu1kt9-D7a6AHjG.js → FollowStepsSection-GaWu1kt9-oI6T5rKO.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DEzj0RVG-DjCNVwYb.js → GlobalReviewListPage-DEzj0RVG-NN2iqyG5.js} +1 -1
- package/dist/assets/{InformationCardStack-dMFbHUWM-1K2JUYs5.js → InformationCardStack-dMFbHUWM-C6xmS84S.js} +1 -1
- package/dist/assets/{InsightsCardStack-BlXkyuyz-DZ79gvs7.js → InsightsCardStack-BlXkyuyz-B1UhErkY.js} +1 -1
- package/dist/assets/{InsightsSection-D-oCmrir-CPKrgvm8.js → InsightsSection-D-oCmrir-CFJjb9_m.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-D-hfghuq-CuSnTyw1.js → IntegrationsSettingsPage-D-hfghuq-Cb1pwuR3.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DxdKE300-ChF2f0EA.js → InternationalWireSwiftDetailsPage-DxdKE300-B665DthR.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CkSmhOrS-NJeApJr8.js → InternationalWireVerificationPage-CkSmhOrS-IOEtOObW.js} +1 -1
- package/dist/assets/{InviteFormPage-BCdalqtP-Dy69iGu4.js → InviteFormPage-BCdalqtP-CSMKYvs-.js} +1 -1
- package/dist/assets/{InvitePageListView-B88FW48q-BKGuzbRb.js → InvitePageListView-B88FW48q-BbnvK_ie.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Z-2L7lWc-0pdGCXQT.js → InvitePeoplePage-Z-2L7lWc-Bvse8Ayg.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-C8hytmay-DFE-YOJW.js → InvoiceUploadSection-C8hytmay-S173KURp.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-B6wmvbEr-DO2TfaZv.js → IssueChargeCardPage-B6wmvbEr-DRjxVdtn.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CQrDCgNs-C6-5ig2u.js → LabeledAddressValue-CQrDCgNs-DXUrJ5wi.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BoHS44YO-2snjxiG6.js → LabeledAddressValueField-BoHS44YO-a8mrESu2.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BsFqjCpn-idZ4OPKP.js → LabeledControlledCheckBoxField-BsFqjCpn-JAyZBnRr.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-D1fVDYR_-DUR0-azH.js → LabeledCountryMultiSelectField-D1fVDYR_-DqI7ZKv0.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Bhka-Faj-lL2zJ3aA.js → LabeledCreatableSingleSelectField-Bhka-Faj-RfONz4io.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CnRk5aKZ-CMl01eck.js → LabeledDocumentField-CnRk5aKZ-BC3ZqU5B.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-ChgtJqPr-JYEhPcSE.js → LabeledDropDownFormattedTextField-ChgtJqPr-KdKPHzDz.js} +1 -1
- package/dist/assets/{LabeledText-2EDpuXZ4-BEv7vXSO.js → LabeledText-2EDpuXZ4-2ve8Bqok.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-VFejN6_t.js → LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-s-R0dR_A.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CpH0eDWO-BxhCmxLu.js → LabeledZeniRolesDropDownField-CpH0eDWO-CuB3PITz.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BhV2MnCY-X20SxNQt.js → LinkJETransactionPage-BhV2MnCY-CzefX2vi.js} +1 -1
- package/dist/assets/{LockCardPage-CHv1xi2J-DwYrblSV.js → LockCardPage-CHv1xi2J-K0K-jQCQ.js} +1 -1
- package/dist/assets/{LowBalancePopup-Cb55PGLc-8xdVWK14.js → LowBalancePopup-Cb55PGLc-C1maj-mF.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-Dnp01hnF-DHCMKKMo.js → MagicLinkACHDetailsPage-Dnp01hnF-B2Ckgn9G.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B36rsikS-DTcLhMoN.js → MagicLinkDomesticWireDetailsPage-B36rsikS-DuCwKV4j.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-Zo4oNZez-DPORyIsv.js → MagicLinkInternationalWireDetailsPage-Zo4oNZez-DKz7K5ym.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-09NLbjFG-DDk2ZACW.js → MagicLinkSuccessPage-09NLbjFG-rb5rJETu.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BA-i6vzA-BnqIfeCZ.js → MagicLinkTitleSection-BA-i6vzA-DcDiT_yT.js} +1 -1
- package/dist/assets/{MailingDetailsSection-EwtoQ2TZ-uOWaBvAh.js → MailingDetailsSection-EwtoQ2TZ-C2JKSQZp.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Aer6AWxY-C0T9wiMg.js → MyBankConnectionsSettingsPage-Aer6AWxY-BMOk1xGk.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Ddy4bAEY-C1TCKtBk.js → MyPendingActivationChargeCardListPage-Ddy4bAEY-baa-Sj9Y.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DMz-6h9F-Cf_llb4W.js → MyProfileSettingsPage-DMz-6h9F-EMsV09zB.js} +1 -1
- package/dist/assets/{NavBarWithPicker-D8WNahg--CB3fxQni.js → NavBarWithPicker-D8WNahg--VrhwYp58.js} +1 -1
- package/dist/assets/{NavigationArrow-kQWS5Pzb-DFRrRIxZ.js → NavigationArrow-kQWS5Pzb-ke2wlaJq.js} +1 -1
- package/dist/assets/{NavigationDots-BQb_Fodq-C9mSjIjx.js → NavigationDots-BQb_Fodq-RLsQy4ul.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-z86XZorn-CZCyVb5z.js → NewGlobalMerchantPage-z86XZorn-Cd3pUGkf.js} +1 -1
- package/dist/assets/{NoDataChart-CyYJ6icu-C4lbaNyZ.js → NoDataChart-CyYJ6icu-B1AWmnR3.js} +1 -1
- package/dist/assets/{NoDataTable-DVe7sQhD-Ce3Fn9a-.js → NoDataTable-DVe7sQhD-D9P6amol.js} +1 -1
- package/dist/assets/{NotFoundPage-B1XCmhSe-BLt3Z8lV.js → NotFoundPage-B1XCmhSe-pcfUTrLN.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BaN20EGV-DLtV9Q9B.js → NotificationSettingsPage-BaN20EGV-hukQHZBV.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BOW_TmPC-DKP0fKrC.js → NotificationsListConfig-BOW_TmPC-kSWsl-fP.js} +1 -1
- package/dist/assets/{NotificationsPage-C9efAgjo-ObRUiIF4.js → NotificationsPage-C9efAgjo-COFaNYhS.js} +1 -1
- package/dist/assets/{OpExByVendorPage-DXeBU3-z-86liMDWJ.js → OpExByVendorPage-DXeBU3-z-CKLE8YHu.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-UEM2WfCE.js → OverlayContainerPage-D4QU0p4o-6fkgrou8.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CXtJhnA_-Cu7UVLJ1.js → PandLWithForecastPage-CXtJhnA_-OxX081af.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Deb_ngk6-0-NbLYs1.js → PaymentAccountSetupBillingAddressSection-Deb_ngk6-8fmn1-xZ.js} +1 -1
- package/dist/assets/{PeoplePage-DXC2CtOt-DKKaYJrR.js → PeoplePage-DXC2CtOt-CqFORowx.js} +1 -1
- package/dist/assets/{Preview-AD2ECgEB.js → Preview-CcvQGjon.js} +1 -1
- package/dist/assets/{ProductsCarousel-ufZlh7Rx-BjpRaVjF.js → ProductsCarousel-ufZlh7Rx-C-rJahLf.js} +1 -1
- package/dist/assets/{PromoBaseCards-D2UbhBhT-Cp6L2J8-.js → PromoBaseCards-D2UbhBhT-hJ9B6ysz.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BrQ71F06-DkV9wT_l.js → QBOConnectionDialog-BrQ71F06-DL-LZUjV.js} +1 -1
- package/dist/assets/{QBOSetupSection-EOFscEW--QOktkObJ.js → QBOSetupSection-EOFscEW--HW_ldOda.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-C-HPI4Ng-DcQM8wGi.js → ReimbursementApprovalRuleDetailPage-C-HPI4Ng-TIqBJp13.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-CMpYn5y_-B8BlhUrJ.js → ReimbursementApprovalRulesPage-CMpYn5y_-BRiz6-Qd.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CfmICHZb-B601rTQ4.js → ReimbursementDetailPage-CfmICHZb-B6hiFJ9I.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DXTAY8c7-DzozUo-R.js → ReimbursementPromoPage-DXTAY8c7-Cvatm3Ys.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-KrGPXTCb-HUiNlfwH.js → ReimbursementSetUpPage-KrGPXTCb-D3FUiBfI.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-l2mYNEKn-DakNrMoa.js → ReimbursementsBulkReviewDrawerPage-l2mYNEKn-ynBkPFDa.js} +1 -1
- package/dist/assets/{ReloadCard-vAhL7B8U-B_goAZi9.js → ReloadCard-vAhL7B8U-DyJGySa5.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-Y97ney3W-oj1UWLmj.js → ReportTableViewSelector-Y97ney3W-66zdUERq.js} +1 -1
- package/dist/assets/{ReportsPage-DKM0gVzR-DYU9qTPf.js → ReportsPage-DKM0gVzR-D4alhP1o.js} +1 -1
- package/dist/assets/{RevenueChart-BEjDS1u4-DVyCgAK9.js → RevenueChart-BEjDS1u4-B5ubPiBI.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BlQLrN9z-9-UhGpZC.js → ReviewDetailsPage-BlQLrN9z-B59PqHPR.js} +1 -1
- package/dist/assets/{ReviewOverlay-Bn3TFqfi-B5pVl7FJ.js → ReviewOverlay-Bn3TFqfi-BMFBA_wW.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DhBFvJea-D5V_Zl_5.js → RoleWithToolTip-DhBFvJea-BmAdbJ4x.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BMkFjf9Y-Dr379Z6t.js → ScheduleDetailsFixedAssetsPage-BMkFjf9Y-BSLr2PQP.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BP0wdtoP-DQyiKHXe.js → ScheduleDetailsPage-BP0wdtoP-DHCivWDw.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-D-rZ4ftr-fPoJgv62.js → ScheduleSequenceTable-D-rZ4ftr-BAjIJPsB.js} +1 -1
- package/dist/assets/{ScreenRoutes-outCs0gE.js → ScreenRoutes-BT2lo_-V.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CoVrSSYL-CVLKd7cm.js → SetUpAccountSection-CoVrSSYL-CaPAZWIY.js} +1 -1
- package/dist/assets/{SignIn-BoAejo7r-BK0KNquT.js → SignIn-BoAejo7r-CQpsBZf6.js} +1 -1
- package/dist/assets/{SignInScreen-CU3TTapZ.js → SignInScreen-P3YiutLj.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-D3eISFuA-DO4OqdVE.js → SpendManagementListViewPage-D3eISFuA-BONrK2Uy.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BWDjZyLp-DoJN7cmk.js → SpendManagementPerTabPage-BWDjZyLp-C-u_dptp.js} +1 -1
- package/dist/assets/{SpendManagementSection-D8rBpC-y-DyxgHeCH.js → SpendManagementSection-D8rBpC-y-CuZOYPXj.js} +1 -1
- package/dist/assets/{StatementItem-Cu6dlAsl-DonsY76E.js → StatementItem-Cu6dlAsl-BkLuZl-Q.js} +1 -1
- package/dist/assets/{StatementsPage-DiY2BOcu-DylRreEj.js → StatementsPage-DiY2BOcu-DOMwi0Bq.js} +1 -1
- package/dist/assets/{StatusSwitcher-B9MARTyR-Cy7gefoh.js → StatusSwitcher-B9MARTyR-BuAL9YKK.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C3rtSwro-3EHI5jeE.js → SubTabSwitcher-C3rtSwro-CsBjI97D.js} +1 -1
- package/dist/assets/{SummaryCard-CShVbqhj-DB5MFQk3.js → SummaryCard-CShVbqhj-D-zZMf2a.js} +1 -1
- package/dist/assets/{TaskManagementPage-RVS8nv0n-tU9aogRh.js → TaskManagementPage-RVS8nv0n-5zXmcVeA.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DFnX6_WT-Bz52dN9I.js → TimeRangeSwitcher-DFnX6_WT-CtUIVjj6.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CW08yYgo-DVEU43aK.js → TimeframeSwitcher-CW08yYgo-DbzoQGD8.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DJOCWqpZ-CMIQ0MlZ.js → TimeframeSwitcherWithToggle-DJOCWqpZ-CEpqBk_q.js} +1 -1
- package/dist/assets/{TopExCard-dI_WEGWb-DmX93RkK.js → TopExCard-dI_WEGWb-CDO5Z60q.js} +1 -1
- package/dist/assets/{TopExDetailPage-BWy5E8Lp-C7PGN6Pe.js → TopExDetailPage-BWy5E8Lp-Cb4gwQJs.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-DjhEIUYm-BqAAyHkb.js → TransactionActivityLogPage-DjhEIUYm-Did9LSqS.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CuxqQd8U-BRhGr870.js → TransactionDetailPage-CuxqQd8U-DPjV_wCP.js} +1 -1
- package/dist/assets/{TransactionList-80KjM8Kg-nmpf3GsN.js → TransactionList-80KjM8Kg-CPSp7V2I.js} +1 -1
- package/dist/assets/{TransactionListBig-DWQXH4ID-gJO5FBwi.js → TransactionListBig-DWQXH4ID-Be38Jak0.js} +1 -1
- package/dist/assets/{TransactionListPage-DC08rCC9-DuuK7AK1.js → TransactionListPage-DC08rCC9-D_kGnUtd.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CzfJ5b_3-DQ5FHW98.js → TransactionVendorDetailPage-CzfJ5b_3-xTpNjGIU.js} +1 -1
- package/dist/assets/{TransferDrawerPage-6z-MoZZP-Cmyh1SPm.js → TransferDrawerPage-6z-MoZZP-D0kH8xKN.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CF_ter0o-BH_5I6Jt.js → TreasuryOverviewPage-CF_ter0o-CJtX9b1H.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-Do-PTcjI-xAPlLXRG.js → TreasuryPromoPage-Do-PTcjI-PfnNYdfq.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-l_HC4zsb-K7pXAcjZ.js → TreasuryStatementsPage-l_HC4zsb-BasTfWuR.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-B8YxWytK-QmzTN19X.js → TreasuryTaxLetterPage-B8YxWytK-B1SfQ_aT.js} +1 -1
- package/dist/assets/{TrendChart-C6B61CAm-B_B-BplL.js → TrendChart-C6B61CAm-BU5UmgIv.js} +1 -1
- package/dist/assets/{TrendWithTransactions-Bp3vhaPa-JockHNv7.js → TrendWithTransactions-Bp3vhaPa-DPublesd.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-cbFqKAv4-MTw76BLV.js → UncategorizedAccountsMappingPage-cbFqKAv4-D5ShtsZQ.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DZ0ZpE5p-CTZgGLL6.js → UnitIntegrationPage-DZ0ZpE5p-C_rGXkWF.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BKY6hK51-DmtqFwFy.js → UploadAdditionalDocumentOverlay-BKY6hK51-Bcz59cyy.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DezpDfp8-DyrWw3U0.js → Vendor2FAPopup-DezpDfp8-BzFXDZZf.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-C8TWKYfc-C5wvgZIc.js → VendorACHDetailsPage-C8TWKYfc-BwBLKWdX.js} +1 -1
- package/dist/assets/{VendorDetailPage-C4g_Gfsl-BuQd-4-F.js → VendorDetailPage-C4g_Gfsl-BlH3Pgdf.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-BhJQ-Vmn-Bt4Tg6JP.js → VendorDomesticWireDetailsPage-BhJQ-Vmn-DgdfV1WG.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Ckt2MiVN-Cg5nnhxx.js → VendorFiling1099EditablePage-Ckt2MiVN-Bhe4Vg1f.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CIKRaTax-DDgaRz12.js → VendorFirstReviewPage-CIKRaTax-M-if_4AX.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-Dz8mMD8d-CqGgy0Nm.js → VendorInternationalWireDetailsPage-Dz8mMD8d-D85mblNr.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-XcV7Ot44-Ca8TaPSl.js → VendorInternationalWireSwiftDetailsPage-XcV7Ot44-B3m0KfJH.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BT-RADSV-CA631Ry_.js → VendorsAccountsSection-BT-RADSV-BAyXZgFB.js} +1 -1
- package/dist/assets/{VerifyDevice-Cxc9CVMi-Db3MgQyP.js → VerifyDevice-Cxc9CVMi-DBr1jxYu.js} +1 -1
- package/dist/assets/{VideoPlayer-9UkKMhGy-Cg6ItP2B.js → VideoPlayer-9UkKMhGy-DaOMV5dS.js} +2 -2
- package/dist/assets/{VideoPopup-rfiYmtio-6YXU8HYY.js → VideoPopup-rfiYmtio-CHQ2zgmG.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DrUA4asI-K-jCsmCl.js → WarningsDrawerPage-DrUA4asI-BpZfuUFK.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-K016HgQt-OnaSURAZ.js → ZeniAccountDetailPage-K016HgQt-CN2ItNbd.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-1oZZynB1-D25y94LI.js → ZeniAccountListViewPage-1oZZynB1-SYQG8qpJ.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-C6Oicpue-CbYM8UHA.js → ZeniAccountNavBarPieces-C6Oicpue-BhLzG3Qy.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BCgys-YM-C1p6fJYe.js → ZeniAccountPromoPage-BCgys-YM-rAC8-QXl.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-BubBgkoa-DQgkTkoE.js → ZeniAccountSetupPage-BubBgkoa-CWumaVdx.js} +1 -1
- package/dist/assets/{ZeniCopyright-BxIwmms--B5a_nRJg.js → ZeniCopyright-BxIwmms--aYxvUoDH.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DVJ0puXA-Cwv6Kq-B.js → ZeniTransferAmountSlider-DVJ0puXA-CqAbOxrs.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DvTxkUd9.js → add-to-wallet-DgdBD8_G-Efm32DTm.js} +1 -1
- package/dist/assets/{analytics-BLsUySon.js → analytics-s0_8xIT2.js} +1 -1
- package/dist/assets/{analyticsHelper-B6usOI4v.js → analyticsHelper-BjGsIswe.js} +1 -1
- package/dist/assets/{analyticsHelper-CT5zOInj-D74VaN9I.js → analyticsHelper-CT5zOInj-OXN7BC3w.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-B8oQ40Hs.js → arrow-south-east-round-PEovUgvH-wFMUSqP7.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DHj1aaNg.js → auto-transfer-rule-mbafm5D3-Dg0R18Sy.js} +1 -1
- package/dist/assets/{chartTypes-Ddw_3-6f-DkCZUllf.js → chartTypes-Ddw_3-6f-Wo_AgZAl.js} +1 -1
- package/dist/assets/{commonDimensions-ClmbdehE-DR4Uvnd8.js → commonDimensions-ClmbdehE-DSwa4Xo6.js} +1 -1
- package/dist/assets/{commonTypes-B-foaEwJ-DVRX5AIJ.js → commonTypes-B-foaEwJ-C9vKNzvL.js} +1 -1
- package/dist/assets/{constants-HHaH0YWb.js → constants-o_5390I8.js} +1 -1
- package/dist/assets/{core-CTDonMeQ.js → core-B1uMJ9CB.js} +1 -1
- package/dist/assets/{dash.all.min-Dj2yo7jC.js → dash.all.min-C1RmZMZR.js} +1 -1
- package/dist/assets/{detailCommon-Cpgf9GLg-CtGm6jLV.js → detailCommon-Cpgf9GLg-VLzpRmSP.js} +1 -1
- package/dist/assets/{downloadPdf-DfRYmfsd-DxcMbdS5.js → downloadPdf-DfRYmfsd-Bc7q72En.js} +1 -1
- package/dist/assets/{empty-DaBFZ939.js → empty-CG0rULX5.js} +1 -1
- package/dist/assets/{empty-B8XqxOuZ.js → empty-Cz1-aqGp.js} +1 -1
- package/dist/assets/{epic-CEzcY_0B.js → epic-DfQTBrxF.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-cqnWvVTs.js → gift-box-Cmt9OgIZ-Brz5jF6-.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-D_lg6RW0.js → graphic-no-data-l-DU4J8fDt-BVofTCWy.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-HJBTpevF.js → graphic-no-data-net-burn-l-CzmycA0m-wvir-oGe.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BshKAJQk.js → handshake-BPg58FML-Tnw9zdhM.js} +1 -1
- package/dist/assets/{helper-DP3YY99s-BmrnBGWk.js → helper-DP3YY99s-DE8r_LHi.js} +1 -1
- package/dist/assets/{index-RSYdG57D.js → index-B69GN-T5.js} +331 -331
- package/dist/assets/{index-B_LiHFQR.js → index-BEpatFmm.js} +1 -1
- package/dist/assets/{index-BV5JdmRQ.js → index-BOdY43u7.js} +1 -1
- package/dist/assets/{index-KKEkjzf-.js → index-BX6e9izy.js} +1 -1
- package/dist/assets/{index-BUad5I9U.js → index-BsVHU8vq.js} +1 -1
- package/dist/assets/{index-CTpNMFsf.js → index-D3eGjn4b.js} +1 -1
- package/dist/assets/{index-D3GS4S-j.js → index-D7O9XFHx.js} +1 -1
- package/dist/assets/{lexical-CMaEqdkY.js → lexical-B3kN3Hl0.js} +1 -1
- package/dist/assets/{liveblocks-BR4rmGyf.js → liveblocks-zTGKWM9r.js} +1 -1
- package/dist/assets/{lottie-CZNmnTyG.js → lottie-qYFNg0vx.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-C0YIUOnb-BG5FbkDp.js → mapLoadingInProgressToTreeNode-C0YIUOnb-BAfPHh3u.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-QJI_OYzu-DvN2rhw-.js → mapSectionWithAcOnlyToTreeNode-QJI_OYzu-DwNdFUWX.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DKDsz0vw-BhCEqPJc.js → mapSpacerToTreeNode-DKDsz0vw-CMv9O0l7.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DqDJAeAj-T7zKYS9n.js → mapTimeframeBalancesToTreeNode-DqDJAeAj-uxUghJno.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-J3b1nb_T-AhkmN2Ki.js → mapTimeframeBalancesToTreeNode-J3b1nb_T-DBuh1NVC.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-shbs2rsi.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-2JlNGUop.js} +1 -1
- package/dist/assets/{mui-Bi6zxcZy.js → mui-DlOumnEw.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-CV7GOcsp.js → page-detail-CWX5S47F-B7--aTyy.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-C5IVh2u2.js → panelSelectedMixin-CzfD5-Zs-DexTmlZu.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-eXI1n3TG.js → radio-default-CiSgisfh-BwauZebq.js} +1 -1
- package/dist/assets/{react-DhjESN1j.js → react-Aw3fQhJd.js} +2 -2
- package/dist/assets/{react-DkrXHh1b.js → react-BKkjQvVv.js} +1 -1
- package/dist/assets/{react-DlxtP0O5.js → react-BZ7Y9Q3m.js} +1 -1
- package/dist/assets/{react-DUZwtObs.js → react-Czn9Vvw5.js} +1 -1
- package/dist/assets/{react-C52_Sjtt.js → react-QG_WXNV9.js} +1 -1
- package/dist/assets/{react-ShmrZj8p.js → react-gXbsFlf5.js} +1 -1
- package/dist/assets/{react-j7hSnnLx.js → react-tGtiYyoe.js} +1 -1
- package/dist/assets/{react-CgvFPXt7.js → react-uaVTNgk8.js} +1 -1
- package/dist/assets/{recharts-B4xbIQqu.js → recharts-C3OgFRQV.js} +1 -1
- package/dist/assets/{sentry-D087_5zX.js → sentry-uHW37Gx_.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CCEGxUtr.js → shield-DOlUxcFf-B6LUsRVA.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-AzKAZ-Cv-B8yD1irx.js → toCOABalancesWithID-AzKAZ-Cv-TqjhmGtr.js} +1 -1
- package/dist/assets/{toChartData-BEjMhb7--B1GasRGV.js → toChartData-BEjMhb7--CrRCzIip.js} +1 -1
- package/dist/assets/{uploadAttachment-DUpHzqMe-Cc_EdWBC.js → uploadAttachment-DUpHzqMe-DRZ1X-yU.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-B1feT8D_.js → uploadReceipts-Dge0cNF1-QAlMS_v8.js} +1 -1
- package/dist/assets/{url-Ctqy5RJD.js → url-CKY1G0hA.js} +1 -1
- package/dist/assets/{url-Cf5olbUo.js → url-aSyUzlEI.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-Dhr7C1Fb.js → useLongPress-GCK2COYQ-BYo0T_Dq.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-D37A1NrK.js → usp-line-BBd1wKwW-DL0v2FrH.js} +1 -1
- package/dist/assets/{utils-bkVcg2I6.js → utils-DGT9kDsm.js} +1 -1
- package/dist/assets/{zeni-epic-state-DnYFo_hK.js → zeni-epic-state-BxLxUFIl.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-DYDehdNi.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as W,u as L,d as G,J as M,F as U,a9 as J,aR as K,aK as X,cG as H,V as r,bD as Q,ac as Y,aS as Z,o as b,ga as ee}from"./index-
|
|
1
|
+
import{y as W,u as L,d as G,J as M,F as U,a9 as J,aR as K,aK as X,cG as H,V as r,bD as Q,ac as Y,aS as Z,o as b,ga as ee}from"./index-B69GN-T5.js";import{a as B}from"./sentry-uHW37Gx_.js";import{n as c}from"./mui-DlOumnEw.js";import{b as ae,f as te,o as T,l as _}from"./FollowStepsSection-GaWu1kt9-oI6T5rKO.js";import"./liveblocks-zTGKWM9r.js";import"./core-B1uMJ9CB.js";import"./recharts-C3OgFRQV.js";import"./zeni-epic-state-BxLxUFIl.js";import"./lottie-qYFNg0vx.js";import"./analytics-s0_8xIT2.js";import"./lexical-B3kN3Hl0.js";import"./utils-DGT9kDsm.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]="3e97d838-1ac7-4443-aa4f-280693d030dc",e._sentryDebugIdIdentifier="sentry-dbid-3e97d838-1ac7-4443-aa4f-280693d030dc")}catch{}})();const $="reimbursementApprovalRuleDetailPage",C="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:i=!1,onBackClick:s,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:w}){const F=G(),A=M(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=J({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=K(u?.fetchState),{upperBound:P}=x,{allApprovalRules:d,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=d.length>1?d.length-1:0,v=d.length>0?d[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=d.findIndex(p=>p.approvalRuleId===n),v=f>0?d[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,p)=>{g(p)};return B.useEffect(()=>{const n=y.watch((p,{name:D})=>{if(D!=null&&p!=null){const O=X(p);H(()=>z(D,O))}});return()=>{n.unsubscribe()}}),B.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&w()},[R,u?.fetchState,w]),r.jsxs(ie,{children:[r.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{s()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:k($),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:i?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:i,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:I,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[I],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:k($),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"&&d.length===0?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:A==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(A)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{},i=e.allApprovalRules.length===0;return{[h]:i?[]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),T(e.allAttributes),T(e.filteredAttributes),o??[])??[],[C]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,i)=>i&&i.length>0?i.map((s,g)=>({stepIndex:g,stepType:{selectedOption:s.action,allOptions:_},actors:{allUsers:t,selectedUsers:se(e,s.actors),allNonUsers:o,selectedNonUsers:ne(a,s.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:_},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),k=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as F,J as N,F as j,V as t,bD as G,T as V,aQ as m,o,y as r,al as H,aO as P,bU as T,cq as q,cr as O,cs as K,d0 as J,u as l,ba as Q,H as k,b9 as X,p as z,c$ as Y,bu as Z,b as ee}from"./index-
|
|
1
|
+
import{d as F,J as N,F as j,V as t,bD as G,T as V,aQ as m,o,y as r,al as H,aO as P,bU as T,cq as q,cr as O,cs as K,d0 as J,u as l,ba as Q,H as k,b9 as X,p as z,c$ as Y,bu as Z,b as ee}from"./index-B69GN-T5.js";import{n as i}from"./mui-DlOumnEw.js";import{a as te}from"./sentry-uHW37Gx_.js";import"./liveblocks-zTGKWM9r.js";import"./core-B1uMJ9CB.js";import"./recharts-C3OgFRQV.js";import"./zeni-epic-state-BxLxUFIl.js";import"./lottie-qYFNg0vx.js";import"./analytics-s0_8xIT2.js";import"./lexical-B3kN3Hl0.js";import"./utils-DGT9kDsm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="007f38e6-9fc3-4047-8bc5-7a73b203722e",e._sentryDebugIdIdentifier="sentry-dbid-007f38e6-9fc3-4047-8bc5-7a73b203722e")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},M={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:x=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[g,w]=te.useState(!1),n=N(),{range:h}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},U={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(D,{}),t.jsx(se,{}),t.jsx(D,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,E)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(L,{children:[t.jsx(R,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(L,{children:[t.jsxs(R,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},d.userId))]},E))})}),g?t.jsx(q,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(O,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as Mt,a8 as Rt,J as Pt,d as Bt,ce as Nt,y as m,F as et,gk as Lt,gm as _t,gn as Ot,V as t,cq as Ae,cr as Me,cs as Re,bD as Pe,aQ as y,bp as Wt,dw as Et,go as Ft,gz as Be,o as a,gp as Ne,fl as b,gs as w,fo as x,aO as Le,fk as _e,b as V,gu as Oe,aS as Kt,ao as Ut,gv as Vt,gw as re,by as Ht,gx as Gt,x as Yt,H as qt,a as Jt,al as tt,ba as it,p as H,am as Qt,bW as Xt,ai as Zt,gR as ei,gN as ti,u as c,cj as ii,c_ as ai}from"./index-RSYdG57D.js";import{a as p}from"./sentry-D087_5zX.js";import{n as r}from"./mui-Bi6zxcZy.js";import{a as ri}from"./liveblocks-BR4rmGyf.js";import{bL as oi,bP as ni,FR as li}from"./zeni-epic-state-DnYFo_hK.js";import si from"./InvoiceUploadSection-C8hytmay-DFE-YOJW.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CTDonMeQ.js";import"./lottie-CZNmnTyG.js";import"./recharts-B4xbIQqu.js";import"./analytics-BLsUySon.js";import"./lexical-CMaEqdkY.js";import"./utils-bkVcg2I6.js";import"./AttachmentView-BrQRChzc-mWFumGJq.js";import"./uploadReceipts-Dge0cNF1-B1feT8D_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},k=new e.Error().stack;k&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[k]="4b18fd64-9e2c-435c-9011-c618f7ec7a7f",e._sentryDebugIdIdentifier="sentry-dbid-4b18fd64-9e2c-435c-9011-c618f7ec7a7f")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new qt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:k,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:G,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,q]=p.useState(!1),[ct,J]=p.useState(!1),[Q,X]=p.useState("approved"),N=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&G()},[e,G]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{G()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ye?.():j.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,Se=e.remiDetails?.amount,je=e.remiDetails?.amount.amount??0,Ie=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(X("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(X("delete"),Ie()):(X("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,ke=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,kt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,Ct=di(e.duplicateLineByLineId),Ce=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:j.title}),descriptionComponent:t.jsx(Me,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(qe,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):Ce?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Ze,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:k,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):Ce?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Ze,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&q(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>q(!1),children:t.jsxs(ki,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&ke?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&kt===!0?t.jsx(Si,{windowSize:o,showEditIcon:ke,children:t.jsx(Ti,{onClick:()=>q(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const k=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:k.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
1
|
+
import{aw as Mt,a8 as Rt,J as Pt,d as Bt,ce as Nt,y as m,F as et,gk as Lt,gm as _t,gn as Ot,V as t,cq as Ae,cr as Me,cs as Re,bD as Pe,aQ as y,bp as Wt,dw as Et,go as Ft,gz as Be,o as a,gp as Ne,fl as b,gs as w,fo as x,aO as Le,fk as _e,b as V,gu as Oe,aS as Kt,ao as Ut,gv as Vt,gw as re,by as Ht,gx as Gt,x as Yt,H as qt,a as Jt,al as tt,ba as it,p as H,am as Qt,bW as Xt,ai as Zt,gR as ei,gN as ti,u as c,cj as ii,c_ as ai}from"./index-B69GN-T5.js";import{a as p}from"./sentry-uHW37Gx_.js";import{n as r}from"./mui-DlOumnEw.js";import{a as ri}from"./liveblocks-zTGKWM9r.js";import{bL as oi,bP as ni,FR as li}from"./zeni-epic-state-BxLxUFIl.js";import si from"./InvoiceUploadSection-C8hytmay-S173KURp.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-B1uMJ9CB.js";import"./lottie-qYFNg0vx.js";import"./recharts-C3OgFRQV.js";import"./analytics-s0_8xIT2.js";import"./lexical-B3kN3Hl0.js";import"./utils-DGT9kDsm.js";import"./AttachmentView-BrQRChzc-LVbQ9KV0.js";import"./uploadReceipts-Dge0cNF1-QAlMS_v8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},k=new e.Error().stack;k&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[k]="4b18fd64-9e2c-435c-9011-c618f7ec7a7f",e._sentryDebugIdIdentifier="sentry-dbid-4b18fd64-9e2c-435c-9011-c618f7ec7a7f")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new qt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:k,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:G,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,q]=p.useState(!1),[ct,J]=p.useState(!1),[Q,X]=p.useState("approved"),N=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&G()},[e,G]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{G()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ye?.():j.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,Se=e.remiDetails?.amount,je=e.remiDetails?.amount.amount??0,Ie=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(X("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(X("delete"),Ie()):(X("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,ke=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,kt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,Ct=di(e.duplicateLineByLineId),Ce=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:j.title}),descriptionComponent:t.jsx(Me,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(qe,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):Ce?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Ze,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:k,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):Ce?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Ze,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&q(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>q(!1),children:t.jsxs(ki,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&ke?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&kt===!0?t.jsx(Si,{windowSize:o,showEditIcon:ke,children:t.jsx(Ti,{onClick:()=>q(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const k=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:k.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as ne,d as S,J as k,aR as le,V as e,aQ as a,fw as ae,bD as de,i as u,ae as d,F,o as r,aq as ce,R as me,aU as V,am as pe,y as xe,p as z,cF as he,aV as ue,bb as ge,u as we}from"./index-
|
|
1
|
+
import{aw as ne,d as S,J as k,aR as le,V as e,aQ as a,fw as ae,bD as de,i as u,ae as d,F,o as r,aq as ce,R as me,aU as V,am as pe,y as xe,p as z,cF as he,aV as ue,bb as ge,u as we}from"./index-B69GN-T5.js";import{a as j}from"./sentry-uHW37Gx_.js";import{n as s}from"./mui-DlOumnEw.js";import{FQ as je,bT as be}from"./zeni-epic-state-BxLxUFIl.js";import{C as fe}from"./VideoPopup-rfiYmtio-CHQ2zgmG.js";import{M as v}from"./usp-line-BBd1wKwW-DL0v2FrH.js";import"./liveblocks-zTGKWM9r.js";import"./core-B1uMJ9CB.js";import"./recharts-C3OgFRQV.js";import"./lottie-qYFNg0vx.js";import"./analytics-s0_8xIT2.js";import"./lexical-B3kN3Hl0.js";import"./utils-DGT9kDsm.js";import"./VideoPlayer-9UkKMhGy-DaOMV5dS.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="ad3bc86e-6a56-4992-b7b9-6f521cd97ffc",i._sentryDebugIdIdentifier="sentry-dbid-ad3bc86e-6a56-4992-b7b9-6f521cd97ffc")}catch{}})();const E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Ee,J as Ie,aR as N,a9 as Ge,cG as Je,F as Te,aW as Ce,V as t,fe as qe,p as q,y as s,bD as Ze,T as Ye,ac as Ke,fx as ve,dR as Qe,fy as Xe,bx as et,dH as tt,aS as it,o as a,fA as nt,u as n,cj as ot,cK as at,ew as lt,fJ as ke,fK as $e,gj as st,i as rt,aQ as Pe,H as Ae,bN as ct,ai as dt,bu as ut}from"./index-
|
|
1
|
+
import{d as Ee,J as Ie,aR as N,a9 as Ge,cG as Je,F as Te,aW as Ce,V as t,fe as qe,p as q,y as s,bD as Ze,T as Ye,ac as Ke,fx as ve,dR as Qe,fy as Xe,bx as et,dH as tt,aS as it,o as a,fA as nt,u as n,cj as ot,cK as at,ew as lt,fJ as ke,fK as $e,gj as st,i as rt,aQ as Pe,H as Ae,bN as ct,ai as dt,bu as ut}from"./index-B69GN-T5.js";import{a as o}from"./sentry-uHW37Gx_.js";import{n as i}from"./mui-DlOumnEw.js";import{bJ as mt}from"./zeni-epic-state-BxLxUFIl.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BKY6hK51-Bcz59cyy.js";import"./liveblocks-zTGKWM9r.js";import"./core-B1uMJ9CB.js";import"./recharts-C3OgFRQV.js";import"./lottie-qYFNg0vx.js";import"./analytics-s0_8xIT2.js";import"./lexical-B3kN3Hl0.js";import"./utils-DGT9kDsm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="9dbcaf41-e788-473e-9882-b4cc7638daec",e._sentryDebugIdIdentifier="sentry-dbid-9dbcaf41-e788-473e-9882-b4cc7638daec")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:c,updateStatus:F,mileageStatus:b}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,I]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Q,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,cq as V,cr as M,cs as q,kd as K,aZ as W,F as Z}from"./index-
|
|
1
|
+
import{V as f,cq as V,cr as M,cs as q,kd as K,aZ as W,F as Z}from"./index-B69GN-T5.js";import{a as b}from"./sentry-uHW37Gx_.js";import{Go as z}from"./zeni-epic-state-BxLxUFIl.js";import{u as G}from"./ReviewOverlay-Bn3TFqfi-BMFBA_wW.js";import"./liveblocks-zTGKWM9r.js";import"./core-B1uMJ9CB.js";import"./recharts-C3OgFRQV.js";import"./mui-DlOumnEw.js";import"./lottie-qYFNg0vx.js";import"./analytics-s0_8xIT2.js";import"./lexical-B3kN3Hl0.js";import"./utils-DGT9kDsm.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]="34b0687c-6493-45cd-b0fa-e8f342859645",e._sentryDebugIdIdentifier="sentry-dbid-34b0687c-6493-45cd-b0fa-e8f342859645")}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),[m,_]=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===m.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[m.length,B,h,e.fetchState,v,e,o]);const D=m.length,S=m.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:C}=X(S);A({type:"reject",title:d,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:d=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,z(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",d)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Y(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},N=()=>{let d=a.footer.approve;return T?d=a.texts.close:t==="send_for_approval"&&(d=a.footer.submit),{label:d,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(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(G,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,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=K(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:W("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},X=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)}},Y=(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 m="",_="";return e==="Completed"&&!u?(m=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)}`):(m=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as l,V as r,aN as c,b3 as f,F as y,aQ as m,aT as h,bF as g,ai as u,o as a,b4 as b}from"./index-
|
|
1
|
+
import{d as l,V as r,aN as c,b3 as f,F as y,aQ as m,aT as h,bF as g,ai as u,o as a,b4 as b}from"./index-B69GN-T5.js";import{n as s}from"./mui-DlOumnEw.js";import{a as d}from"./sentry-uHW37Gx_.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]="ebf148f5-e09b-4c42-a312-cecc529bac4c",e._sentryDebugIdIdentifier="sentry-dbid-ebf148f5-e09b-4c42-a312-cecc529bac4c")}catch{}})();function w({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=s(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(c,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(c,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(b,{children:({height:n,width:i})=>r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=s(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ee,J as de,ce as be,a9 as ye,V as o,ao as _e,cf as te,ac as we,y as P,aS as $e,o as n,F as oe,cg as ve,ch as ke,ci as Ce,cj as je,ck as Ie,am as he,cl as Se,ai as Ne,aE as X,bF as Pe,u as f,aW as De,al as Oe,at as Fe}from"./index-
|
|
1
|
+
import{d as ee,J as de,ce as be,a9 as ye,V as o,ao as _e,cf as te,ac as we,y as P,aS as $e,o as n,F as oe,cg as ve,ch as ke,ci as Ce,cj as je,ck as Ie,am as he,cl as Se,ai as Ne,aE as X,bF as Pe,u as f,aW as De,al as Oe,at as Fe}from"./index-B69GN-T5.js";import{a as u,P as ue}from"./sentry-uHW37Gx_.js";import{n as d}from"./mui-DlOumnEw.js";import{R as D,I as Ae}from"./CollapsableReportTable-Cq8bhaYC-BJ9WQB-r.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]="e6653a46-0646-479a-afa5-5c7347cc75ea",e._sentryDebugIdIdentifier="sentry-dbid-e6653a46-0646-479a-afa5-5c7347cc75ea")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),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:Te(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,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,d as G,F as y,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o as w,aU as we,T as ye,y as B,bQ as Ce,u as S,w as A,aE as K,v as xe,aW as Oe,as as Re,bM as Ae}from"./index-RSYdG57D.js";import{a as T,P as X}from"./sentry-D087_5zX.js";import{n as _}from"./mui-Bi6zxcZy.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Te,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-DnYFo_hK.js";import{m as z,l as q}from"./analyticsHelper-CT5zOInj-D74VaN9I.js";import{x as Ne}from"./ReportTableViewSelector-Y97ney3W-oj1UWLmj.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-DFnX6_WT-Bz52dN9I.js";import{M as Me}from"./TimeframeSwitcherWithToggle-DJOCWqpZ-CMIQ0MlZ.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-4f9deyJS-BqMoJX-8.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-Cq8bhaYC-LGo3rBU5.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-QJI_OYzu-DvN2rhw-.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-J3b1nb_T-AhkmN2Ki.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-shbs2rsi.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-C0YIUOnb-BG5FbkDp.js";import"./liveblocks-BR4rmGyf.js";import"./core-CTDonMeQ.js";import"./recharts-B4xbIQqu.js";import"./lottie-CZNmnTyG.js";import"./analytics-BLsUySon.js";import"./lexical-CMaEqdkY.js";import"./utils-bkVcg2I6.js";import"./TimeframeSwitcher-CW08yYgo-DVEU43aK.js";import"./page-detail-CWX5S47F-CV7GOcsp.js";import"./AccountRow-BiEYR4Y1-ClTxn5CJ.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]="eb43d29c-4ef4-42ae-9d32-7339cf8e20d3",e._sentryDebugIdIdentifier="sentry-dbid-eb43d29c-4ef4-42ae-9d32-7339cf8e20d3")}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})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,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,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o as w,aU as we,T as ye,y as B,bQ as Ce,u as S,w as A,aE as K,v as xe,aW as Oe,as as Re,bM as Ae}from"./index-B69GN-T5.js";import{a as T,P as X}from"./sentry-uHW37Gx_.js";import{n as _}from"./mui-DlOumnEw.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Te,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-BxLxUFIl.js";import{m as z,l as q}from"./analyticsHelper-CT5zOInj-OXN7BC3w.js";import{x as Ne}from"./ReportTableViewSelector-Y97ney3W-66zdUERq.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-DFnX6_WT-CtUIVjj6.js";import{M as Me}from"./TimeframeSwitcherWithToggle-DJOCWqpZ-CEpqBk_q.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-4f9deyJS-CNo1Mr3O.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-Cq8bhaYC-BJ9WQB-r.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-QJI_OYzu-DwNdFUWX.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-J3b1nb_T-DBuh1NVC.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-2JlNGUop.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-C0YIUOnb-BAfPHh3u.js";import"./liveblocks-zTGKWM9r.js";import"./core-B1uMJ9CB.js";import"./recharts-C3OgFRQV.js";import"./lottie-qYFNg0vx.js";import"./analytics-s0_8xIT2.js";import"./lexical-B3kN3Hl0.js";import"./utils-DGT9kDsm.js";import"./TimeframeSwitcher-CW08yYgo-DbzoQGD8.js";import"./page-detail-CWX5S47F-B7--aTyy.js";import"./AccountRow-BiEYR4Y1-BOkx20-Y.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]="eb43d29c-4ef4-42ae-9d32-7339cf8e20d3",e._sentryDebugIdIdentifier="sentry-dbid-eb43d29c-4ef4-42ae-9d32-7339cf8e20d3")}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})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,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,b4 as Q,u as I,b as M,aZ as J,o as m,aQ as Ae,p as g,aE as Ve,y as xe,bN as ge,al as R,bO as V,bb as F}from"./index-
|
|
1
|
+
import{d as A,V as a,F as D,J as de,b4 as Q,u as I,b as M,aZ as J,o as m,aQ as Ae,p as g,aE as Ve,y as xe,bN as ge,al as R,bO as V,bb as F}from"./index-B69GN-T5.js";import{a as P,P as ee}from"./sentry-uHW37Gx_.js";import{n as x}from"./mui-DlOumnEw.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-Wo_AgZAl.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-AzKAZ-Cv-TqjhmGtr.js";import{V as Z}from"./toChartData-BEjMhb7--CrRCzIip.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-C3OgFRQV.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]="d3c83f41-6663-4930-a184-1faae1a7082b",e._sentryDebugIdIdentifier="sentry-dbid-d3c83f41-6663-4930-a184-1faae1a7082b")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as oe,fc as At,fd as Mt,fe as Bt,ff as Ft,aO as A,fg as Lt,aQ as v,fh as Rt,fi as Be,fj as Fe,fk as Le,b as U,fl as O,p as j,fm as zt,fn as E,fo as _,fp as Nt,fq as Ot,bU as Re,o as n,aS as Et,u as d,F as _t,ag as Wt,c3 as Zt,H as Vt,a as Yt,fr as Ht,cj as qt,al as ce,am as me,fs as Ut,ft as Gt,bj as Kt,c as Jt,ba as Xt,fu as Qt,aq as tt,bL as en,ai as nt,bu as tn,fv as nn}from"./index-RSYdG57D.js";import{a as Z}from"./sentry-D087_5zX.js";import{n as a}from"./mui-Bi6zxcZy.js";import{bo as ze,bm as Ne,bH as I,bN as an,FF as ln,bL as re,bP as on}from"./zeni-epic-state-DnYFo_hK.js";import{t as rn,o as sn}from"./LowBalancePopup-Cb55PGLc-8xdVWK14.js";import{S as W}from"./LabeledText-2EDpuXZ4-BEv7vXSO.js";import"./liveblocks-BR4rmGyf.js";import"./core-CTDonMeQ.js";import"./recharts-B4xbIQqu.js";import"./lottie-CZNmnTyG.js";import"./analytics-BLsUySon.js";import"./lexical-CMaEqdkY.js";import"./utils-bkVcg2I6.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]="564349a8-4e12-4ad7-9758-e669ea5b7bf5",e._sentryDebugIdIdentifier="sentry-dbid-564349a8-4e12-4ad7-9758-e669ea5b7bf5")}catch{}})();const at=["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 Vt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:_e}=mn,We=({attachment:e})=>{const[y,g]=Z.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(Ut,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Gt,{contentType:e.contentType})})]})},da=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:it,style:lt,analytics:w,isRecurringBillsFeatureEnabled:ot,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,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),P=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(S,it,e.billPayConfigList.filter(l=>l.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:o?.method.includes("international")===!0?It(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:o?.method.includes("international")===!0?Pt(ge,o):o?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(P?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[P,Q,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&V?.code?V:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&V?.code?V:N,ae=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,ie=oe(o?.method??""),ve=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:ve,onClick:pt}):i.addedByZeni,H=y.allApprovalRules.length>0,gt=ze(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-z.amount:p.amount,o?.fee.currencyCode??Ne.currencyCode,o?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,l)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ze(h,H,e.isBillMarkedForRetry),wt=()=>x?h?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,le=st&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),o?.method!=null&&l!=null){const St=x?i.paymentOutsideZeni.offline:oe(o.method);if(w.trackBillPaySendForApproval(St,l.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}),le!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Ae=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===i.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Ae,Me):Se===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Ae,Me)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=Z.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ae()},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:Lt(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:lt,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ke,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:s,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(He,{windowSize:s,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Hn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.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:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Rt(l);return l!=null?t.jsx(Vn,{children:at.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.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:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsxs(Wn,{"data-testid":v("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.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})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ue,{children:i.pay}),t.jsx(Ge,{children:t.jsx(Le,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:i.to}),t.jsx(Ge,{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:L,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:i.withdrawFrom,width:R},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:le})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,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:i.paymentMethod,width:R},style:{width:"auto"},value:oe(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(G,{}),!x&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,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:i.paymentDate,width:R},style:{width:"auto"},value:Y.format(T),additionalInfoLabel:`${i.estimatedArrival}${re(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ie.length>0?`${ie} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,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:i.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||ot?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,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:i.paymentType,width:R},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&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ye,{children:[t.jsx(de,{children:o.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(Le,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ve(!1,C,h,H,s)}},primaryBtn:{label:Ze(h,H,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&le!=null?q(!0):Te()},style:{width:Ve(!0,C,h,H,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Re,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Gn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},Ze=(e,y,g)=>e?i.paymentOutsideZeni.markAsPaid:g===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ve=(e,y,g,M,S)=>g?128:y&&!e&&S==="small"?"auto":M?165:m.footerButtonWidth.value(S),pn=a(en)`
|
|
1
|
+
import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as oe,fc as At,fd as Mt,fe as Bt,ff as Ft,aO as A,fg as Lt,aQ as v,fh as Rt,fi as Be,fj as Fe,fk as Le,b as U,fl as O,p as j,fm as zt,fn as E,fo as _,fp as Nt,fq as Ot,bU as Re,o as n,aS as Et,u as d,F as _t,ag as Wt,c3 as Zt,H as Vt,a as Yt,fr as Ht,cj as qt,al as ce,am as me,fs as Ut,ft as Gt,bj as Kt,c as Jt,ba as Xt,fu as Qt,aq as tt,bL as en,ai as nt,bu as tn,fv as nn}from"./index-B69GN-T5.js";import{a as Z}from"./sentry-uHW37Gx_.js";import{n as a}from"./mui-DlOumnEw.js";import{bo as ze,bm as Ne,bH as I,bN as an,FF as ln,bL as re,bP as on}from"./zeni-epic-state-BxLxUFIl.js";import{t as rn,o as sn}from"./LowBalancePopup-Cb55PGLc-C1maj-mF.js";import{S as W}from"./LabeledText-2EDpuXZ4-2ve8Bqok.js";import"./liveblocks-zTGKWM9r.js";import"./core-B1uMJ9CB.js";import"./recharts-C3OgFRQV.js";import"./lottie-qYFNg0vx.js";import"./analytics-s0_8xIT2.js";import"./lexical-B3kN3Hl0.js";import"./utils-DGT9kDsm.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]="564349a8-4e12-4ad7-9758-e669ea5b7bf5",e._sentryDebugIdIdentifier="sentry-dbid-564349a8-4e12-4ad7-9758-e669ea5b7bf5")}catch{}})();const at=["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 Vt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:_e}=mn,We=({attachment:e})=>{const[y,g]=Z.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(Ut,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Gt,{contentType:e.contentType})})]})},da=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:it,style:lt,analytics:w,isRecurringBillsFeatureEnabled:ot,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,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),P=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(S,it,e.billPayConfigList.filter(l=>l.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:o?.method.includes("international")===!0?It(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:o?.method.includes("international")===!0?Pt(ge,o):o?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(P?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[P,Q,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&V?.code?V:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&V?.code?V:N,ae=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,ie=oe(o?.method??""),ve=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:ve,onClick:pt}):i.addedByZeni,H=y.allApprovalRules.length>0,gt=ze(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-z.amount:p.amount,o?.fee.currencyCode??Ne.currencyCode,o?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,l)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ze(h,H,e.isBillMarkedForRetry),wt=()=>x?h?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,le=st&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),o?.method!=null&&l!=null){const St=x?i.paymentOutsideZeni.offline:oe(o.method);if(w.trackBillPaySendForApproval(St,l.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}),le!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Ae=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===i.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Ae,Me):Se===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Ae,Me)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=Z.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ae()},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:Lt(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:lt,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ke,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:s,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(He,{windowSize:s,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Hn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.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:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Rt(l);return l!=null?t.jsx(Vn,{children:at.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.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:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsxs(Wn,{"data-testid":v("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.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})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ue,{children:i.pay}),t.jsx(Ge,{children:t.jsx(Le,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:i.to}),t.jsx(Ge,{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:L,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:i.withdrawFrom,width:R},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:le})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,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:i.paymentMethod,width:R},style:{width:"auto"},value:oe(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(G,{}),!x&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,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:i.paymentDate,width:R},style:{width:"auto"},value:Y.format(T),additionalInfoLabel:`${i.estimatedArrival}${re(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ie.length>0?`${ie} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,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:i.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||ot?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,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:i.paymentType,width:R},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&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ye,{children:[t.jsx(de,{children:o.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(Le,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ve(!1,C,h,H,s)}},primaryBtn:{label:Ze(h,H,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&le!=null?q(!0):Te()},style:{width:Ve(!0,C,h,H,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Re,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Gn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},Ze=(e,y,g)=>e?i.paymentOutsideZeni.markAsPaid:g===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ve=(e,y,g,M,S)=>g?128:y&&!e&&S==="small"?"auto":M?165:m.footerButtonWidth.value(S),pn=a(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-Bn3TFqfi-B5pVl7FJ.js → ReviewOverlay-Bn3TFqfi-BMFBA_wW.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as P,V as i,aQ as m,o as r,aS as L,y as d,x as M,H as I,a as C,p as s,al as j,cD as D,T as W,ai as S,bi as R,u as n,en as G,h as _,i$ as H,kc as J}from"./index-
|
|
1
|
+
import{J as P,V as i,aQ as m,o as r,aS as L,y as d,x as M,H as I,a as C,p as s,al as j,cD as D,T as W,ai as S,bi as R,u as n,en as G,h as _,i$ as H,kc as J}from"./index-B69GN-T5.js";import{n as t}from"./mui-DlOumnEw.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]="60eafe58-3a11-43df-8ff4-c92579c2f20f",e._sentryDebugIdIdentifier="sentry-dbid-60eafe58-3a11-43df-8ff4-c92579c2f20f")}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:b,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(Q,{children:i.jsx(K,{windowSize:a,children:e})}),i.jsx(N,{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)})})]}),b?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(W,{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-D5V_Zl_5.js → RoleWithToolTip-DhBFvJea-BmAdbJ4x.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eS as f,eT as h,V as s,bU as g,o,aQ as l,F as y,an as x,ai as p}from"./index-
|
|
1
|
+
import{eS as f,eT as h,V as s,bU as g,o,aQ as l,F as y,an as x,ai as p}from"./index-B69GN-T5.js";import{n}from"./mui-DlOumnEw.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]="92a752a1-d99a-4091-b2a4-fa46f9e41bf1",e._sentryDebugIdIdentifier="sentry-dbid-92a752a1-d99a-4091-b2a4-fa46f9e41bf1")}catch{}})();const{hyphen:d}=y.getLocalizedStrings().common.strings,b=n.div``,m=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aR as K,ir as te,gK as me,eE as Je,is as Me,a9 as _e,it as Ve,cG as Pe,cH as Fe,V as a,ac as Ne,cq as qe,cr as Re,cs as Be,aS as We,iu as ze,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cK as Ge,J as Ke,iL as He,gP as ue,u as B,p as De,y as ye,cL as Xe,iy as Ye,iz as Ze,iA as Qe,o as V}from"./index-
|
|
1
|
+
import{aR as K,ir as te,gK as me,eE as Je,is as Me,a9 as _e,it as Ve,cG as Pe,cH as Fe,V as a,ac as Ne,cq as qe,cr as Re,cs as Be,aS as We,iu as ze,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cK as Ge,J as Ke,iL as He,gP as ue,u as B,p as De,y as ye,cL as Xe,iy as Ye,iz as Ze,iA as Qe,o as V}from"./index-B69GN-T5.js";import{a as f}from"./sentry-uHW37Gx_.js";import{n as z}from"./mui-DlOumnEw.js";import{G8 as et,G9 as tt}from"./zeni-epic-state-BxLxUFIl.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-D-rZ4ftr-BAjIJPsB.js";import"./liveblocks-zTGKWM9r.js";import"./core-B1uMJ9CB.js";import"./recharts-C3OgFRQV.js";import"./lottie-qYFNg0vx.js";import"./analytics-s0_8xIT2.js";import"./lexical-B3kN3Hl0.js";import"./utils-DGT9kDsm.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]="66cc61b3-048a-4305-8f99-59c59321c6d3",e._sentryDebugIdIdentifier="sentry-dbid-66cc61b3-048a-4305-8f99-59c59321c6d3")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aR as F,ir as Q,gK as Ie,eE as Je,is as we,a9 as Le,it as Me,cG as Ve,cH as Pe,V as a,ac as _e,cq as Fe,cr as $e,cs as Ne,aS as ze,iu as Be,iv as Re,F as ye,aa as re,iw as pe,ix as Ue,cK as We,J as qe,gP as me,u as Z,p as Ke,y as Ge,iy as He,iz as Xe,iA as Ye,o as w}from"./index-
|
|
1
|
+
import{aR as F,ir as Q,gK as Ie,eE as Je,is as we,a9 as Le,it as Me,cG as Ve,cH as Pe,V as a,ac as _e,cq as Fe,cr as $e,cs as Ne,aS as ze,iu as Be,iv as Re,F as ye,aa as re,iw as pe,ix as Ue,cK as We,J as qe,gP as me,u as Z,p as Ke,y as Ge,iy as He,iz as Xe,iA as Ye,o as w}from"./index-B69GN-T5.js";import{a as y}from"./sentry-uHW37Gx_.js";import{n as P}from"./mui-DlOumnEw.js";import{G8 as Qe,G9 as Ze,bL as et}from"./zeni-epic-state-BxLxUFIl.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-D-rZ4ftr-BAjIJPsB.js";import"./liveblocks-zTGKWM9r.js";import"./core-B1uMJ9CB.js";import"./recharts-C3OgFRQV.js";import"./lottie-qYFNg0vx.js";import"./analytics-s0_8xIT2.js";import"./lexical-B3kN3Hl0.js";import"./utils-DGT9kDsm.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]="c349b246-681d-41cc-bad0-9c3275cc3aa8",e._sentryDebugIdIdentifier="sentry-dbid-c349b246-681d-41cc-bad0-9c3275cc3aa8")}catch{}})();const B={labelWidth:new Ge(160,160,160)},nt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as F,d as Z,V as t,iB as ie,iC as le,H as oe,iD as xe,dT as fe,fk as ye,b as I,F as R,iE as we,iA as be,o as i,y as b,p as j,c as $e,aa as re,dO as je,cq as Se,cs as ke,cK as Q,ew as ee,cP as ve,iF as K,iG as De,b4 as Ce,iH as Me,cu as ze,iI as Oe,u as h,al as O,ba as Ee,cr as Le,ao as pe,eF as Ie,b2 as ne,er as Fe,aS as Ae,iJ as A,gj as Te,aO as Ve,iK as Je,aW as q,d0 as Be,bi as Pe}from"./index-
|
|
1
|
+
import{J as F,d as Z,V as t,iB as ie,iC as le,H as oe,iD as xe,dT as fe,fk as ye,b as I,F as R,iE as we,iA as be,o as i,y as b,p as j,c as $e,aa as re,dO as je,cq as Se,cs as ke,cK as Q,ew as ee,cP as ve,iF as K,iG as De,b4 as Ce,iH as Me,cu as ze,iI as Oe,u as h,al as O,ba as Ee,cr as Le,ao as pe,eF as Ie,b2 as ne,er as Fe,aS as Ae,iJ as A,gj as Te,aO as Ve,iK as Je,aW as q,d0 as Be,bi as Pe}from"./index-B69GN-T5.js";import{n as o,c as B}from"./mui-DlOumnEw.js";import{a as C}from"./sentry-uHW37Gx_.js";import{bh as G,Ga as Re}from"./zeni-epic-state-BxLxUFIl.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]="b8f4667f-bd1e-4df1-bfc4-52a4bac49f2e",e._sentryDebugIdIdentifier="sentry-dbid-b8f4667f-bd1e-4df1-bfc4-52a4bac49f2e")}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}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=F(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(Ye,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(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(He,{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 We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(H,{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(H,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(_,{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;
|