@zeniai/web-cockpit-ui 1.15.53-qa → 1.15.54-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-_MS3Dbs8.js → ACHDetailsPage-D2Xav-UW-Qg9KmM1J.js} +1 -1
- package/dist/assets/{AIPerformancePage-DlTdGosv-D9K7xeED.js → AIPerformancePage-DlTdGosv-Cm3Mp4Ij.js} +1 -1
- package/dist/assets/{AccountInfoPage-B8-8kUGD-tlC0Bi2R.js → AccountInfoPage-B8-8kUGD-BasVn8pp.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BS2TBUSE-CM1jjEAn.js → AccountInfoPageContent-BS2TBUSE-CLPMkGHT.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-aukulrV7-7E9I77o3.js → AccountLockedInfoModal-aukulrV7-B3RnytHh.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-kQJld6_N-BEIicJSf.js → AccountReconDetailsDrawerPage-kQJld6_N-BI4KDB6U.js} +3 -3
- package/dist/assets/{AccountRow-BiEYR4Y1-K1NDuQb6.js → AccountRow-BiEYR4Y1-C9bV-VJJ.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DBQnDPXQ-D2qv7EpN.js → AccountsPromoCardStack-DBQnDPXQ-BC7xAkRe.js} +6 -6
- package/dist/assets/{AddAddressForCardDrawer-DTnfk8K7-CatvMLJa.js → AddAddressForCardDrawer-DTnfk8K7-BreM9Gsb.js} +1 -1
- package/dist/assets/{AddToWalletPage-C4EwdLZJ-Dbo52T5y.js → AddToWalletPage-C4EwdLZJ-VBws5aqc.js} +11 -11
- package/dist/assets/{AgingReportsPage-vAvkUfOS-DOtieopz.js → AgingReportsPage-vAvkUfOS-DFuQAC2I.js} +1 -1
- package/dist/assets/{AllUserItems-qrYg6Gdx-DGLMc4Ea.js → AllUserItems-qrYg6Gdx-B3OIKnJo.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BRYQMwo2-Bx1uK2ID.js → ApAgingDetailPage-BRYQMwo2-CYZVbNYW.js} +1 -1
- package/dist/assets/{AppBasePage-DrE-W6d7-BLasnT39.js → AppBasePage-DrE-W6d7-CTdjVQGy.js} +1 -1
- package/dist/assets/{AppDrawerContent-ATbZG_cu-B0p0REDy.js → AppDrawerContent-ATbZG_cu-Ddm9lxLJ.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-5MYC1I6k-29gx1_sx.js → ApprovalRulesSettingsPage-5MYC1I6k-Cc66UBZg.js} +6 -6
- package/dist/assets/{ArAgingChart-CuzG9AZY-sMoSQKQM.js → ArAgingChart-CuzG9AZY-zbnvDcY1.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DwRkcLEu-BbH7utAd.js → ArAgingDetailPage-DwRkcLEu-DRFArK6d.js} +1 -1
- package/dist/assets/{AttachmentView-BrQRChzc-BPL0XTAx.js → AttachmentView-BrQRChzc-uiw2DPZW.js} +1 -1
- package/dist/assets/{BankAccountSection-hcKEMs80-BU43XCzu.js → BankAccountSection-hcKEMs80-B_7x03fQ.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CpxVDMSZ-Cd0VrLFE.js → BankAccountWarningSection-CpxVDMSZ-CzExELRC.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Bdw1K00m-CTp0Zcax.js → BankConnectionsSettingsPage-Bdw1K00m-DccCEkIk.js} +1 -1
- package/dist/assets/{BillDetailPage-D0NLFZXA-BhmSttsy.js → BillDetailPage-D0NLFZXA-CnaW9EO9.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DkpCvYvo-DZUsIMzm.js → BillPayApprovalRuleDetailPage-DkpCvYvo-CT0Os_Zy.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BEqZD0GU-BNM0CL1U.js → BillPayApprovalRulesPage-BEqZD0GU-CdjJT8mp.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BMcP4EU5-a_ssGz0T.js → BillPayPromoPage-BMcP4EU5-CfE2_TGE.js} +6 -6
- package/dist/assets/{BillPaySetUpPage-WdEdbf16-TkqOuwgT.js → BillPaySetUpPage-WdEdbf16-BMLL6j3q.js} +1 -1
- package/dist/assets/{BillingSettingsPage-GtRUqSZm-CrfYbiy6.js → BillingSettingsPage-GtRUqSZm-CJIarZd-.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DAUoo9pq-DNap9DWO.js → BillsBulkReviewDrawerPage-DAUoo9pq-DGXSx6AQ.js} +1 -1
- package/dist/assets/{BoxItem-CACRFWG2-BB7KWtP2.js → BoxItem-CACRFWG2-DUMZBWzz.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-9gZbBDL6-BPjZUS_X.js → BusinessVerificationPage-9gZbBDL6-BiZWXFlI.js} +2 -2
- package/dist/assets/{CardNumberSubText-C-oVdziK-DsJNwxlk.js → CardNumberSubText-C-oVdziK-CNdm0o_p.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BhFKSl4p-DfOrkK1f.js → CashbackDetailPage-BhFKSl4p-Dkaiw9E_.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-D8J6HINu-CNRhhw1b.js → ChargeCardDetailPage-D8J6HINu-BHr_Yylr.js} +26 -26
- package/dist/assets/{ChargeCardListPage-tdUKyHdz-CVk9IeAy.js → ChargeCardListPage-tdUKyHdz-BPbUlj_4.js} +1 -1
- package/dist/assets/{ChargeCardListTable-CByk3iqX-BZfvVsAb.js → ChargeCardListTable-CByk3iqX-BT6o3vDc.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-B8zRcrjo-Bm08l8mB.js → ChargeCardPaymentHistoryPage-B8zRcrjo-BwhMfhXy.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-C4cgx2gm-X_f8Uw2k.js → ChargeCardPromoPage-C4cgx2gm-CcfcnQop.js} +14 -14
- package/dist/assets/{ChargeCardSetupPage-DtwiTNKA-D_Cn2vhP.js → ChargeCardSetupPage-DtwiTNKA-ChAdhbCU.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-B0KPw52e-RetYFPUe.js → ChargeCardStatementsPage-B0KPw52e-CCgT_BKu.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DKNAXI77-CREWt2i7.js → CheckDepositDrawerPage-DKNAXI77-C7lds4J9.js} +1 -1
- package/dist/assets/{CollapsableReportTable-Cq8bhaYC-C9u2JLOd.js → CollapsableReportTable-Cq8bhaYC-Ujx1GJOf.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Rk0B5cB5-Diddq3D6.js → CompanyOfficerDetailsSection-Rk0B5cB5-C0IZ5szF.js} +1 -1
- package/dist/assets/{CompanyPassportCard-CHaKk74P-CcDYfW2A.js → CompanyPassportCard-CHaKk74P-BVtbTVag.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DXWXFFKM-6Dbnjn3d.js → CompanyPassportPage-DXWXFFKM-D9MC_Bo-.js} +1 -1
- package/dist/assets/{CompleteProfile-ChaWsK6t-B97QNuLL.js → CompleteProfile-ChaWsK6t-bu0jnc14.js} +1 -1
- package/dist/assets/{ConfettiBurst-CdB5fRMt-CoqJmaBB.js → ConfettiBurst-CdB5fRMt-CIzjwHnv.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-2nYINCi5.js → ConstrainedInnerElement-BeIpAPjB-Cv6zV673.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C_8Jqubo-DZRxOCTJ.js → CreateOrEditVendorPage-C_8Jqubo-CWou3-7a.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-lOjOtk28-D4Z9YuFI.js → CreditCardPaymentDrawerPage-lOjOtk28-tK9qUV-H.js} +1 -1
- package/dist/assets/{CurrencySelectField-BDqU4HVy-x6dsjsw1.js → CurrencySelectField-BDqU4HVy-DwEarU92.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DO6NCakm-jfd_UipR.js → CustomerOnboardingActivationPage-DO6NCakm-t-JLGbfV.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-BRE4lysv.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-D4L9yqKc.js → CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-D-s8t6ri.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CbG5WshV-C0cIUA33.js → CustomerOnboardingNoStepsPage-CbG5WshV-gJc5SJgc.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DyVyf8oK-P_Vvk1ga.js → CustomerOnboardingPage-DyVyf8oK-_9gyCcxN.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-1F3JfCRp-CjetVE6h.js → CustomerOnboardingProductSuitePage-1F3JfCRp-C_uN4HgV.js} +1 -1
- package/dist/assets/{Dashboard-Csggwob0-XGLjB31v.js → Dashboard-Csggwob0-CkKOxFPp.js} +1 -1
- package/dist/assets/{DashboardReportPage-DFIdi_I0-DOBj8BM6.js → DashboardReportPage-DFIdi_I0-B1mTyLry.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C3Ovv-ob-BHKaXSba.js → DashboardSidebarBackgroundAnimation-C3Ovv-ob-B5OP-B4I.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CZ7v1T4S-CYNI8YhK.js → DepositAccTransactionItem-CZ7v1T4S-CQvhxMi2.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-FldPGX6K-CZ6j7jLe.js → DepositAccTransactionListPage-FldPGX6K-C_uA3w3F.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C--eZ-UG-BVeDTM8b.js → DomesticWireDetailsPage-C--eZ-UG-Mxsf66Bz.js} +1 -1
- package/dist/assets/{DownloadOverlay-4f9deyJS-EICSDMoH.js → DownloadOverlay-4f9deyJS-BSI2hAvk.js} +1 -1
- package/dist/assets/{DrawerPage-roO3xvRT-M0GBNoWH.js → DrawerPage-roO3xvRT-CGGhEL5F.js} +1 -1
- package/dist/assets/{EditPeoplePage-pi5RclAj-CKnQT0Ux.js → EditPeoplePage-pi5RclAj-pfYPT_VC.js} +3 -3
- package/dist/assets/{EditReimbursementDetailPage-CIUcImns-CVxoM56o.js → EditReimbursementDetailPage-CIUcImns-DcoVubyD.js} +1 -1
- package/dist/assets/{EntityDetailPage-OTKTVNMD-DMHVkS2a.js → EntityDetailPage-OTKTVNMD-adwqIyWQ.js} +1 -1
- package/dist/assets/{EntitySummarySection-fBL4TZpT-BFju8nQm.js → EntitySummarySection-fBL4TZpT-D7wkgp-a.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CnhNINCc-CxNxg9dU.js → ExpenseAutomationOverviewPage-CnhNINCc-Dli7RRLy.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BDLCJbFw-KqztxljN.js → ExpenseAutomationPage-BDLCJbFw-1KO3CMej.js} +1 -1
- package/dist/assets/{ExpressPayPage-c8oTCnBR-B-HoySFx.js → ExpressPayPage-c8oTCnBR-BXmzf5Uy.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-DkiAajs2-BJcd_edm.js → FeaturePreviewPage-DkiAajs2-IydRKNFw.js} +1 -1
- package/dist/assets/{FollowStepsSection-GaWu1kt9-Dac8UX-h.js → FollowStepsSection-GaWu1kt9-BVHL41Jb.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DEzj0RVG-BWMVJIHc.js → GlobalReviewListPage-DEzj0RVG-nBOLLb61.js} +1 -1
- package/dist/assets/{InformationCardStack-dMFbHUWM-G7a-UMJS.js → InformationCardStack-dMFbHUWM-C2wRbB6p.js} +1 -1
- package/dist/assets/{InsightsCardStack-BlXkyuyz-7zwNqnyc.js → InsightsCardStack-BlXkyuyz-B4OX5_7l.js} +1 -1
- package/dist/assets/{InsightsSection-D-oCmrir-zwdAlcVd.js → InsightsSection-D-oCmrir-BSx2VeKU.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-D-hfghuq-BVcofzzj.js → IntegrationsSettingsPage-D-hfghuq-Bp-0H88m.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DxdKE300-BAhiCZtA.js → InternationalWireSwiftDetailsPage-DxdKE300-DHFTD16I.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CkSmhOrS-DEyLBA5A.js → InternationalWireVerificationPage-CkSmhOrS-CVsCnKKl.js} +1 -1
- package/dist/assets/{InviteFormPage-BCdalqtP-DvWknn44.js → InviteFormPage-BCdalqtP-DKh7L2Sm.js} +1 -1
- package/dist/assets/{InvitePageListView-B88FW48q-Bm3QF_Yx.js → InvitePageListView-B88FW48q-CXkqQYlA.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Z-2L7lWc-DFev5HvB.js → InvitePeoplePage-Z-2L7lWc-CK4VlvZI.js} +4 -4
- package/dist/assets/{InvoiceUploadSection-C8hytmay-B9oVp1v8.js → InvoiceUploadSection-C8hytmay-BLOWx67x.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-B6wmvbEr-Bl83LR42.js → IssueChargeCardPage-B6wmvbEr-DXeeJUlY.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CQrDCgNs-ngfVs4C6.js → LabeledAddressValue-CQrDCgNs-pzINZxmu.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BoHS44YO-Bob3pkds.js → LabeledAddressValueField-BoHS44YO-DTrVpXEk.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BsFqjCpn-CKjTDhsz.js → LabeledControlledCheckBoxField-BsFqjCpn-D3fNKAIX.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-D1fVDYR_-pKkP60Kn.js → LabeledCountryMultiSelectField-D1fVDYR_-CyehacHQ.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Bhka-Faj-CCFbRNWN.js → LabeledCreatableSingleSelectField-Bhka-Faj-j-LA5cB8.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CnRk5aKZ-CWrIkusZ.js → LabeledDocumentField-CnRk5aKZ-BLPH0bCm.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-ChgtJqPr-BeTvOZvm.js → LabeledDropDownFormattedTextField-ChgtJqPr-iLOroUl9.js} +1 -1
- package/dist/assets/{LabeledText-2EDpuXZ4-BfAHyQUy.js → LabeledText-2EDpuXZ4-D9Lc7z1n.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-Ca3kyKh2.js → LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-BU13Lrvj.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CpH0eDWO-CWb7Poua.js → LabeledZeniRolesDropDownField-CpH0eDWO-Cxup6JwI.js} +8 -8
- package/dist/assets/{LinkJETransactionPage-BhV2MnCY-B93FExBV.js → LinkJETransactionPage-BhV2MnCY-DFTRCWhL.js} +1 -1
- package/dist/assets/{LockCardPage-CHv1xi2J-D9zH1CYi.js → LockCardPage-CHv1xi2J-BWG37HMS.js} +6 -6
- package/dist/assets/{LowBalancePopup-Cb55PGLc-DJaQ2d7B.js → LowBalancePopup-Cb55PGLc-C8NZMVGO.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-Dnp01hnF-DLEv4Hck.js → MagicLinkACHDetailsPage-Dnp01hnF-4f89SlZa.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B36rsikS-ByxlZ4Q4.js → MagicLinkDomesticWireDetailsPage-B36rsikS-LLMqNHY7.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-Zo4oNZez-DuN7y5fH.js → MagicLinkInternationalWireDetailsPage-Zo4oNZez-DDiVUQRg.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-09NLbjFG-ZnMng-Jj.js → MagicLinkSuccessPage-09NLbjFG-CW-X5RMu.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BA-i6vzA-_69P063R.js → MagicLinkTitleSection-BA-i6vzA-CYBavCDH.js} +1 -1
- package/dist/assets/{MailingDetailsSection-EwtoQ2TZ-ifrSOG66.js → MailingDetailsSection-EwtoQ2TZ-LI0y4mBJ.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Aer6AWxY-BE-Q6nRH.js → MyBankConnectionsSettingsPage-Aer6AWxY-CuyPBRvz.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Ddy4bAEY-Di4ZO52Y.js → MyPendingActivationChargeCardListPage-Ddy4bAEY-CWM80C9z.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-DMz-6h9F-CuhazKF_.js → MyProfileSettingsPage-DMz-6h9F-CeEAIQ0T.js} +1 -1
- package/dist/assets/{NavBarWithPicker-D8WNahg--kgpFMbZJ.js → NavBarWithPicker-D8WNahg--ZQJt0jhX.js} +1 -1
- package/dist/assets/{NavigationArrow-kQWS5Pzb-Bn2gzJsz.js → NavigationArrow-kQWS5Pzb-Bmz73CyZ.js} +1 -1
- package/dist/assets/{NavigationDots-BQb_Fodq-C676OOhh.js → NavigationDots-BQb_Fodq-DGHg-XPw.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-z86XZorn-BI7ZaiJs.js → NewGlobalMerchantPage-z86XZorn-72MLj5sA.js} +1 -1
- package/dist/assets/{NoDataChart-CyYJ6icu-UFnH1bQE.js → NoDataChart-CyYJ6icu-BGrJ0dxK.js} +1 -1
- package/dist/assets/{NoDataTable-DVe7sQhD-ugfGxCQf.js → NoDataTable-DVe7sQhD-D01UQalg.js} +1 -1
- package/dist/assets/{NotFoundPage-B1XCmhSe-DebnEALd.js → NotFoundPage-B1XCmhSe-ClJov-vk.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BaN20EGV-CxWiSCH2.js → NotificationSettingsPage-BaN20EGV-CRbziqST.js} +12 -12
- package/dist/assets/{NotificationsListConfig-BOW_TmPC-Cu2orVJH.js → NotificationsListConfig-BOW_TmPC-D3PYkPzl.js} +1 -1
- package/dist/assets/{NotificationsPage-C9efAgjo-bD9M0hhw.js → NotificationsPage-C9efAgjo-RjPyyT0q.js} +1 -1
- package/dist/assets/{OpExByVendorPage-DXeBU3-z-Bu6l0TiB.js → OpExByVendorPage-DXeBU3-z-DOskH6tO.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-Dxo8qiAq.js → OverlayContainerPage-D4QU0p4o-DfcYfj9I.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CXtJhnA_-Vc_lT7Bs.js → PandLWithForecastPage-CXtJhnA_-DiIco4Yi.js} +2 -2
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Deb_ngk6-kTC9f4zM.js → PaymentAccountSetupBillingAddressSection-Deb_ngk6-VwXepOfB.js} +1 -1
- package/dist/assets/{PeoplePage-DXC2CtOt-jglRXuAU.js → PeoplePage-DXC2CtOt-Bdp4QywP.js} +13 -13
- package/dist/assets/{Preview-DLSswg8i.js → Preview-C_scJ0LA.js} +1 -1
- package/dist/assets/{ProductsCarousel-ufZlh7Rx-QxXMcnzU.js → ProductsCarousel-ufZlh7Rx-CVm981GO.js} +1 -1
- package/dist/assets/{PromoBaseCards-D2UbhBhT-CKuo_xyF.js → PromoBaseCards-D2UbhBhT-uOFnp-4I.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BrQ71F06-BxGAQN3l.js → QBOConnectionDialog-BrQ71F06-AzQWwAtU.js} +1 -1
- package/dist/assets/{QBOSetupSection-EOFscEW--caOZ4mOT.js → QBOSetupSection-EOFscEW--NVc0ejxZ.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-C-HPI4Ng-HGqK4_6T.js → ReimbursementApprovalRuleDetailPage-C-HPI4Ng-D-iB_52F.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-CMpYn5y_-BDImgN8u.js → ReimbursementApprovalRulesPage-CMpYn5y_-ClImBwJb.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CfmICHZb-DCELL3Jj.js → ReimbursementDetailPage-CfmICHZb-elcZOrMn.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DXTAY8c7-DVYIUiIc.js → ReimbursementPromoPage-DXTAY8c7-7C3gCnRu.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-KrGPXTCb-DljBAjp7.js → ReimbursementSetUpPage-KrGPXTCb-DQ-XytVS.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-l2mYNEKn-Br80Kz3u.js → ReimbursementsBulkReviewDrawerPage-l2mYNEKn-CZfr1E1q.js} +1 -1
- package/dist/assets/{ReloadCard-vAhL7B8U-Cgus7erx.js → ReloadCard-vAhL7B8U-C7D11pQg.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-Y97ney3W-D7F8Figc.js → ReportTableViewSelector-Y97ney3W-jWWgIP_J.js} +1 -1
- package/dist/assets/{ReportsPage-DKM0gVzR-nmSyduXP.js → ReportsPage-DKM0gVzR-sNMocqQY.js} +1 -1
- package/dist/assets/{RevenueChart-BEjDS1u4-CSVYKV0y.js → RevenueChart-BEjDS1u4-C3yac_pt.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BlQLrN9z-BnfRtnTo.js → ReviewDetailsPage-BlQLrN9z-Dh8B7Ysm.js} +6 -6
- package/dist/assets/{ReviewOverlay-Bn3TFqfi-fhFFeQ61.js → ReviewOverlay-Bn3TFqfi-D6E2loSx.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DhBFvJea-gODf7-hE.js → RoleWithToolTip-DhBFvJea-Dgz4vQkX.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BMkFjf9Y-k5-sEVqH.js → ScheduleDetailsFixedAssetsPage-BMkFjf9Y-DwpSWYLV.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-BP0wdtoP-CAXsoeUv.js → ScheduleDetailsPage-BP0wdtoP-CjgxsIYK.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-D-rZ4ftr-kGWch2W0.js → ScheduleSequenceTable-D-rZ4ftr-aitk-8Mk.js} +1 -1
- package/dist/assets/{ScreenRoutes-BrIM8A1p.js → ScreenRoutes-BLEdjKb7.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CoVrSSYL-BirtNl9h.js → SetUpAccountSection-CoVrSSYL-DiujdYoE.js} +1 -1
- package/dist/assets/{SignIn-BoAejo7r-DhkZ2CuU.js → SignIn-BoAejo7r-PuJlj8Mq.js} +6 -6
- package/dist/assets/{SignInScreen-q7f54phH.js → SignInScreen-B_VXRHI7.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-D3eISFuA-CJycx0Zc.js → SpendManagementListViewPage-D3eISFuA-COuHisVc.js} +7 -7
- package/dist/assets/{SpendManagementPerTabPage-BWDjZyLp-BUgMzHX3.js → SpendManagementPerTabPage-BWDjZyLp-RbFC5Do1.js} +34 -34
- package/dist/assets/{SpendManagementSection-D8rBpC-y-Lugdskyo.js → SpendManagementSection-D8rBpC-y-DQQhx2Xa.js} +7 -7
- package/dist/assets/{StatementItem-Cu6dlAsl-DerHhv3i.js → StatementItem-Cu6dlAsl-BerGXuRv.js} +1 -1
- package/dist/assets/{StatementsPage-DiY2BOcu-DFQww83X.js → StatementsPage-DiY2BOcu-BxFY6ioB.js} +1 -1
- package/dist/assets/{StatusSwitcher-B9MARTyR-Bd4MBQeV.js → StatusSwitcher-B9MARTyR-DmEculcy.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C3rtSwro-BFXLgQG1.js → SubTabSwitcher-C3rtSwro-CD-oYAPp.js} +1 -1
- package/dist/assets/{SummaryCard-CShVbqhj-g8V_c36y.js → SummaryCard-CShVbqhj-C6jVeTIc.js} +1 -1
- package/dist/assets/{TaskManagementPage-RVS8nv0n-sq8H_E-9.js → TaskManagementPage-RVS8nv0n-COwnCLsL.js} +13 -13
- package/dist/assets/{TimeRangeSwitcher-DFnX6_WT-BmsC8wpz.js → TimeRangeSwitcher-DFnX6_WT-BAyfgggy.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CW08yYgo-Byy81mMi.js → TimeframeSwitcher-CW08yYgo-8vdqQbDR.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DJOCWqpZ-BP_yz81G.js → TimeframeSwitcherWithToggle-DJOCWqpZ-utPOZmzZ.js} +1 -1
- package/dist/assets/{TopExCard-dI_WEGWb-DHrASS4Q.js → TopExCard-dI_WEGWb-DQ0a1B-p.js} +1 -1
- package/dist/assets/{TopExDetailPage-BWy5E8Lp-DosxAD6z.js → TopExDetailPage-BWy5E8Lp-CH3uXpM1.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-DjhEIUYm-CTSUyijq.js → TransactionActivityLogPage-DjhEIUYm-B9IfdM5q.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CuxqQd8U-Dt1rWnVY.js → TransactionDetailPage-CuxqQd8U-C7HaHQgc.js} +1 -1
- package/dist/assets/{TransactionList-80KjM8Kg-BHuPkwXo.js → TransactionList-80KjM8Kg-yWcw7Xvy.js} +1 -1
- package/dist/assets/{TransactionListBig-DWQXH4ID-B3DGuMye.js → TransactionListBig-DWQXH4ID-DwDp-KdB.js} +4 -4
- package/dist/assets/{TransactionListPage-DC08rCC9-Bhjoj0pu.js → TransactionListPage-DC08rCC9-D3Cy0p7j.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CzfJ5b_3-DueE_9zr.js → TransactionVendorDetailPage-CzfJ5b_3-BoWlXDih.js} +1 -1
- package/dist/assets/{TransferDrawerPage-6z-MoZZP-BlfKQ7hb.js → TransferDrawerPage-6z-MoZZP-Bu91SQjn.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CF_ter0o-BgOTd3mX.js → TreasuryOverviewPage-CF_ter0o-C4V908yo.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-Do-PTcjI-hteu9yQt.js → TreasuryPromoPage-Do-PTcjI-BhpVWXqG.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-l_HC4zsb-CTgkSfj0.js → TreasuryStatementsPage-l_HC4zsb-OlwbyynI.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-B8YxWytK-D64UM-OT.js → TreasuryTaxLetterPage-B8YxWytK-D7CPKEkg.js} +1 -1
- package/dist/assets/{TrendChart-C6B61CAm-bXXragiZ.js → TrendChart-C6B61CAm-siwog8qJ.js} +1 -1
- package/dist/assets/{TrendWithTransactions-Bp3vhaPa-ZS_RG_DW.js → TrendWithTransactions-Bp3vhaPa-e76VZDlM.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-cbFqKAv4-tfpQdIjx.js → UncategorizedAccountsMappingPage-cbFqKAv4-_N19TXgF.js} +6 -6
- package/dist/assets/{UnitIntegrationPage-DZ0ZpE5p-Bjt3mIfH.js → UnitIntegrationPage-DZ0ZpE5p-C8dxwLt9.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BKY6hK51-BjoPNevN.js → UploadAdditionalDocumentOverlay-BKY6hK51-y-fz9noY.js} +4 -4
- package/dist/assets/{Vendor2FAPopup-DezpDfp8-RFvPiWDa.js → Vendor2FAPopup-DezpDfp8-wvjmetSL.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-C8TWKYfc-BrQZEG-V.js → VendorACHDetailsPage-C8TWKYfc-CLh_He1D.js} +1 -1
- package/dist/assets/{VendorDetailPage-C4g_Gfsl-cfzvYJ9k.js → VendorDetailPage-C4g_Gfsl-gAl6AQiQ.js} +9 -9
- package/dist/assets/{VendorDomesticWireDetailsPage-BhJQ-Vmn-DAqfYhFQ.js → VendorDomesticWireDetailsPage-BhJQ-Vmn-CXw-nX5E.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Ckt2MiVN-D079pRbJ.js → VendorFiling1099EditablePage-Ckt2MiVN-BwmhSJwI.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CIKRaTax-ruTov0yD.js → VendorFirstReviewPage-CIKRaTax-CoRAyvQo.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-Dz8mMD8d-BvzGzcpv.js → VendorInternationalWireDetailsPage-Dz8mMD8d-DyxRi8OU.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-XcV7Ot44-BWIFx2bC.js → VendorInternationalWireSwiftDetailsPage-XcV7Ot44-Br-V9Ms7.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BT-RADSV-CKh-nWLp.js → VendorsAccountsSection-BT-RADSV-Cggl-rQg.js} +1 -1
- package/dist/assets/{VerifyDevice-Cxc9CVMi-rFyBi4Y7.js → VerifyDevice-Cxc9CVMi-BfmCJlPA.js} +1 -1
- package/dist/assets/{VideoPlayer-9UkKMhGy-DLo10Ipx.js → VideoPlayer-9UkKMhGy-B3TbligX.js} +2 -2
- package/dist/assets/{VideoPopup-rfiYmtio-DqZb38Wf.js → VideoPopup-rfiYmtio-DTzyP3EH.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DrUA4asI-yVycA0Ua.js → WarningsDrawerPage-DrUA4asI-CGOd9KLu.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-K016HgQt-CH_u5tmb.js → ZeniAccountDetailPage-K016HgQt-CHQYyMvD.js} +7 -7
- package/dist/assets/{ZeniAccountListViewPage-1oZZynB1-BeTnaRlR.js → ZeniAccountListViewPage-1oZZynB1-B8wIFo45.js} +7 -7
- package/dist/assets/{ZeniAccountNavBarPieces-C6Oicpue-Crw_LmUH.js → ZeniAccountNavBarPieces-C6Oicpue-CWA-3mz6.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BCgys-YM-oDx3xq8Z.js → ZeniAccountPromoPage-BCgys-YM-CDo3p8GM.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-BubBgkoa-BUflxDEA.js → ZeniAccountSetupPage-BubBgkoa-pxnHtdbo.js} +1 -1
- package/dist/assets/{ZeniCopyright-BxIwmms--C8fQjezy.js → ZeniCopyright-BxIwmms--CI9yS63f.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DVJ0puXA-DflfdXEj.js → ZeniTransferAmountSlider-DVJ0puXA-CBa-WxKr.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DrzGEZUO.js → add-to-wallet-DgdBD8_G-UcbWekjH.js} +1 -1
- package/dist/assets/{analytics-BB7e_ruj.js → analytics-T3rNNQ2m.js} +1 -1
- package/dist/assets/{analyticsHelper-CT5zOInj-CLTaCUMK.js → analyticsHelper-CT5zOInj-DoqyoFKO.js} +1 -1
- package/dist/assets/{analyticsHelper--QOmPWcZ.js → analyticsHelper-Dwo-ncj8.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DYD4P8U3.js → arrow-south-east-round-PEovUgvH-olgOFIka.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-Cx19s1IV.js → auto-transfer-rule-mbafm5D3-OAp9gfx6.js} +1 -1
- package/dist/assets/{chartTypes-Ddw_3-6f-Csaj7V69.js → chartTypes-Ddw_3-6f-CfWoV01X.js} +1 -1
- package/dist/assets/{commonDimensions-ClmbdehE-C4kq5775.js → commonDimensions-ClmbdehE-CI63aI0W.js} +1 -1
- package/dist/assets/{commonTypes-B-foaEwJ-CFGkbWWX.js → commonTypes-B-foaEwJ-DW3G1NS6.js} +1 -1
- package/dist/assets/{constants-WZhEa7dG.js → constants-C6THrgLW.js} +1 -1
- package/dist/assets/{core-ynj-rcGI.js → core-Cgphrdqi.js} +1 -1
- package/dist/assets/{dash.all.min-CbTBF1nm.js → dash.all.min-CO8eAuLp.js} +1 -1
- package/dist/assets/{detailCommon-Cpgf9GLg-BT_EhNYu.js → detailCommon-Cpgf9GLg-CZXpr6Ou.js} +1 -1
- package/dist/assets/{downloadPdf-DfRYmfsd-B_VLkj-_.js → downloadPdf-DfRYmfsd-BofmxfcJ.js} +1 -1
- package/dist/assets/{empty-ghkwToUg.js → empty-BwSS8C26.js} +1 -1
- package/dist/assets/{empty-DOnnW6ps.js → empty-C8tkeh8X.js} +1 -1
- package/dist/assets/{epic-n7OsXwIY.js → epic-25jnn6zT.js} +2 -2
- package/dist/assets/{gift-box-Cmt9OgIZ-IkS_PRlU.js → gift-box-Cmt9OgIZ-DbPQXtKu.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-B-vjfNa1.js → graphic-no-data-l-DU4J8fDt-BCQF8DO3.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-C-Lgg2zB.js → graphic-no-data-net-burn-l-CzmycA0m-C6bp_xvO.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-B3_wZwig.js → handshake-BPg58FML-CXWtMOZc.js} +1 -1
- package/dist/assets/{helper-DP3YY99s-Ba64ClTl.js → helper-DP3YY99s-D-PL5wk1.js} +1 -1
- package/dist/assets/{index-BTLnMSBu.js → index--_rdliV7.js} +1 -1
- package/dist/assets/{index-BjiMkPNd.js → index-Bh4f2Teb.js} +1 -1
- package/dist/assets/{index-WBPDS3-Z.js → index-CDUn2Emk.js} +1 -1
- package/dist/assets/{index-BkgFwDrN.js → index-CE4a3GDT.js} +7 -7
- package/dist/assets/{index-Ct14P_QF.js → index-C_6Z7efJ.js} +1 -1
- package/dist/assets/{index-BEy87smT.js → index-D3PatgcD.js} +1 -1
- package/dist/assets/{index-v6BtqX9b.js → index-DMJM1J8R.js} +1 -1
- package/dist/assets/{lexical-f2bgmP7p.js → lexical-B-NT_OOU.js} +1 -1
- package/dist/assets/{liveblocks-Fce3U47w.js → liveblocks-mJOf9rAw.js} +1 -1
- package/dist/assets/{lottie-DfQwbfZe.js → lottie-CH7yL4lR.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-C0YIUOnb-pGmyZ5k8.js → mapLoadingInProgressToTreeNode-C0YIUOnb-DtMCCLe4.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-QJI_OYzu-BcM0_MMx.js → mapSectionWithAcOnlyToTreeNode-QJI_OYzu-Bc99xQK8.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DKDsz0vw-DrfhqLUC.js → mapSpacerToTreeNode-DKDsz0vw-C00tHB1T.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DqDJAeAj-D90hoIRT.js → mapTimeframeBalancesToTreeNode-DqDJAeAj-Bb2v0uWi.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-J3b1nb_T-DJ4YBp4i.js → mapTimeframeBalancesToTreeNode-J3b1nb_T-C60OkAbY.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-Dn_bFC9p.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-COXJNYz6.js} +1 -1
- package/dist/assets/{mui-B8eJ9Mf-.js → mui-4aI62okM.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DHzFrl8D.js → page-detail-CWX5S47F-DNNHDs11.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-CiHp6UKy.js → panelSelectedMixin-CzfD5-Zs-C5j9Taxu.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-DJRkcPvg.js → radio-default-CiSgisfh-DBK2UBgp.js} +1 -1
- package/dist/assets/{react-CFlKsGqS.js → react-14tgf1ik.js} +1 -1
- package/dist/assets/{react-KPbq6YvL.js → react-B4F47UeE.js} +1 -1
- package/dist/assets/{react-DGuEmiZJ.js → react-Bx8qq35O.js} +1 -1
- package/dist/assets/{react-X8-6TOPN.js → react-BxtZMNkY.js} +2 -2
- package/dist/assets/{react-1AASI5B3.js → react-D2-N_PY-.js} +1 -1
- package/dist/assets/{react-dxyEk0M0.js → react-pcnMIbV9.js} +1 -1
- package/dist/assets/{react-BmpaTIjZ.js → react-tQd3sk8G.js} +1 -1
- package/dist/assets/{react-DTkKR0hX.js → react-uhreOVUJ.js} +1 -1
- package/dist/assets/{recharts-DcXbW3wD.js → recharts-D-YAfDZj.js} +1 -1
- package/dist/assets/{sentry-DG5QSuAU.js → sentry-wpLc0w9b.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CPsw4sab.js → shield-DOlUxcFf-DeyPctcI.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-AzKAZ-Cv-CCwxF2fh.js → toCOABalancesWithID-AzKAZ-Cv-CQOX84Xq.js} +1 -1
- package/dist/assets/toChartData-BEjMhb7--hwFvZNwn.js +1 -0
- package/dist/assets/{uploadAttachment-DUpHzqMe-CZ5MQPFU.js → uploadAttachment-DUpHzqMe-DfPSBMVO.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-9bGZSaw_.js → uploadReceipts-Dge0cNF1-CG_JuBSh.js} +1 -1
- package/dist/assets/{url-D76wlScu.js → url-cU6drSVy.js} +1 -1
- package/dist/assets/{url-bzK3lhiJ.js → url-vFuKL29u.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DXAzB75a.js → useLongPress-GCK2COYQ-DYzZ4MNW.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-lgGVTPyO.js → usp-line-BBd1wKwW-Sh2YvFJY.js} +1 -1
- package/dist/assets/{utils-BaLrPeRI.js → utils-DCLZL4US.js} +1 -1
- package/dist/assets/{zeni-epic-state-DJMVsfEo.js → zeni-epic-state-BwFYSQY8.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-CfrOyVnL.js +0 -1
- package/dist/assets/toChartData-BEjMhb7--DYoES1lW.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as be,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co as _e,T as B,aV as G,cp as we,i as Le,b as $e,cq as Ae,aS as Ve,cr as Me,aq as We,cs as He,ct as Ue,b5 as Be,aF as H,cu as Ke,y as b,cv as Ee,cw as je,u as $,cx as ee,cg as N,cy as Se,aa as Fe,ad as Ze,cz as qe,cA as Je,aL as Qe,aj as D,cB as Xe,am as O,an as te,p as A,cC as Ye,ck as ke,bc as ie,cD as Ie,bO as Ge,cE as et}from"./index-CE4a3GDT.js";import{P as ce,a as v}from"./sentry-wpLc0w9b.js";import{n as i}from"./mui-4aI62okM.js";import{oW as Ce,bg as X}from"./zeni-epic-state-BwFYSQY8.js";import{T as Re}from"./RoleWithToolTip-DhBFvJea-Dgz4vQkX.js";import"./liveblocks-mJOf9rAw.js";import"./core-Cgphrdqi.js";import"./recharts-D-YAfDZj.js";import"./lottie-CH7yL4lR.js";import"./analytics-T3rNNQ2m.js";import"./lexical-B-NT_OOU.js";import"./utils-DCLZL4US.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]="5914f721-715c-423b-b7b8-c149014d93aa",e._sentryDebugIdIdentifier="sentry-dbid-5914f721-715c-423b-b7b8-c149014d93aa")}catch{}})();const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new b(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new b(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new b(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new b(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new b(10,17,17,11,9)}],U=[{key:"name",value:P.name,sortOrder:"ascending",width:new b(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new b(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new b(10,17,17,11,9)}],tt=58;function it({userNameSticky:e,sortConfig:o,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Qe(d==="off"?S:U));v.useEffect(()=>{const n=[...p];for(const r of n)r.key===o.sortKey?r.sortOrder=o.sortOrder:r.sortOrder="ascending";x(n)},[o.sortKey,o.sortOrder]);const h=(n,r)=>{let u=r;o.sortKey===n&&(u=r==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(rt,{height:tt,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(lt,{userNameSticky:!!e&&n.key==="name",sortDataValue:o.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(dt,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(ot,{sortDataValue:o.sortKey,headerdata:n,children:t.jsx(Xe,{width:12,height:12})})]}),t.jsx(at,{isVisible:o.sortKey===n.key&&n.key!=="name",children:t.jsx(nt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const st=ce.memo(it),ot=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
@@ -81,7 +81,7 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
81
81
|
justify-content: flex-start;
|
|
82
82
|
.single-select-field__single-value {
|
|
83
83
|
color: ${e=>e.theme.colors.hero};
|
|
84
|
-
${
|
|
84
|
+
${$e.smallRegular.css};
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -103,7 +103,7 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
103
103
|
}
|
|
104
104
|
`,wt=i(D)`
|
|
105
105
|
color: ${e=>e.theme.colors.hero};
|
|
106
|
-
`,{peoplePage:T}=y.getLocalizedStrings(),vt=({peopleData:e,userNameSticky:o,allClasses:l,allManagers:d,onResendInvite:m,onDeleteUser:p,onRowClick:x})=>{const[h,n]=v.useState(!1),r=I(),u=ft(e,d,l),w=e.userRole.userRoles.filter(g=>!Ce(g)),f=()=>{p?.(e)},j=()=>{x?.(e.userId)};return t.jsxs(yt,{windowSize:r,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:j,"data-testid":a("people-list-row",e.userId),children:[t.jsx(
|
|
106
|
+
`,{peoplePage:T}=y.getLocalizedStrings(),vt=({peopleData:e,userNameSticky:o,allClasses:l,allManagers:d,onResendInvite:m,onDeleteUser:p,onRowClick:x})=>{const[h,n]=v.useState(!1),r=I(),u=ft(e,d,l),w=e.userRole.userRoles.filter(g=>!Ce(g)),f=()=>{p?.(e)},j=()=>{x?.(e.userId)};return t.jsxs(yt,{windowSize:r,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:j,"data-testid":a("people-list-row",e.userId),children:[t.jsx(bt,{wrapperWidth:S[0].width,windowSize:r,userNameSticky:o,children:t.jsxs(jt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(St,{children:[e.user?.firstName?t.jsxs(kt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(Ct,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(It,{wrapperWidth:S[1].width,windowSize:r,children:t.jsx(Re,{roles:w})}),t.jsxs(t.Fragment,{children:[X(e.userRole.userRoles)?t.jsx(Z,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.manager?t.jsx(ve,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:u.manager})}):t.jsx(Z,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:T.noManager})})}),X(e.userRole.userRoles)?t.jsx(Z,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.department?t.jsx(ve,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:u.department})}):t.jsx(Z,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:T.emptyDepartmentPlaceholderText})})})]}),t.jsxs(Rt,{"data-testid":a("last-seen-container",e.userId),wrapperWidth:S[4].width,windowSize:r,children:[e.userRole.invitationStatus==="accepted"?t.jsx($t,{children:u.lastSeen}):t.jsx(Tt,{children:e.update==="resendInvite"?t.jsx(B,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Pt,{"data-testid":a("resend-invite-text",e.userId),onClick:g=>{g.stopPropagation(),m?.(e.userId)},children:T.resendInvite.label}),t.jsx(Nt,{children:t.jsx(Dt,{children:`${T.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx(zt,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Se,{menuItems:t.jsxs(Ot,{"data-testid":a("menu-items-container",e.userId),children:[t.jsx(fe,{"data-testid":a("edit-people-list-row"),onClick:()=>{n(!1),j()},children:T.invitePage.editTitle}),t.jsx(fe,{"data-testid":a("delete-people-list-row",e.userId),isDelete:!0,onClick:g=>{g.stopPropagation(),n(!1),f()},children:T.deleteOverlay.title})]}),setIsMenuOpen:n,isMenuOpen:h})})]})]})};function ft(e,o,l){const d=l.find(p=>e.userRole.accountingClassIDs[0]===p.classId),m=o.find(p=>p.userId===e.userRole.managerUserId);return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:Ye},manager:m?.user?`${m?.user?.firstName} ${m?.user?.lastName}`:void 0,department:d?d?.className:void 0,lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const yt=i.div`
|
|
107
107
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
108
108
|
border-radius: ${s.sp2};
|
|
109
109
|
display: flex;
|
|
@@ -157,7 +157,7 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
157
157
|
}
|
|
158
158
|
background-color: ${e=>e.theme.colors.grey5};
|
|
159
159
|
cursor: pointer;
|
|
160
|
-
|
|
160
|
+
`,bt=i(ke)`
|
|
161
161
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
162
162
|
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
163
163
|
height: 100%;
|
|
@@ -177,7 +177,7 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
177
177
|
-webkit-box-orient: vertical;
|
|
178
178
|
text-overflow: ellipsis;
|
|
179
179
|
overflow: hidden;
|
|
180
|
-
|
|
180
|
+
`,$t=i(O)`
|
|
181
181
|
overflow: hidden;
|
|
182
182
|
display: -webkit-box;
|
|
183
183
|
-webkit-line-clamp: 1;
|
|
@@ -272,7 +272,7 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
272
272
|
:hover {
|
|
273
273
|
color: ${e=>e.theme.colors.primary};
|
|
274
274
|
}
|
|
275
|
-
`,_t={width:new
|
|
275
|
+
`,_t={width:new b(343,580,726)},{peoplePage:k}=y.getLocalizedStrings(),Lt=({peopleData:e,allClasses:o,allManagers:l,onRowClick:d,onResendInvite:m})=>{const p=I(),x=e.userRole.userRoles.filter(r=>!Ce(r)),h=si(l,e.userRole.managerUserId),n=oi(o,e.userRole.accountingClassIDs);return t.jsxs(At,{windowSize:p,isInviteAccepted:e.userRole.invitationStatus==="accepted","data-testid":a("people-list-row-small",e.userId),onClick:()=>{d?.(e.userId)},children:[t.jsxs(Vt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(Wt,{children:t.jsxs(Ht,{children:[t.jsxs(Ut,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Bt,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Kt,{className:"lastSeen",children:[t.jsx(Et,{className:"lastSeenDateTxt",children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Ft,{children:k.header.lastSeen})]}):t.jsx(Zt,{"data-testid":a("resend-invite-wrapper",e.userId),children:e.update==="resendInvite"?t.jsx(B,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(qt,{"data-testid":a("resend-invite-text",e.userId),onClick:r=>{r.stopPropagation(),m?.(e.userId)},children:k.resendInvite.label}),t.jsx(Jt,{children:t.jsx(Qt,{children:`${k.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Mt,{children:t.jsxs(se,{className:"personDetails",children:[t.jsxs(pe,{children:[t.jsxs(he,{children:[k.header.role,":"]}),t.jsx(oe,{children:t.jsx(Re,{roles:x})})]}),t.jsxs(Xt,{children:[t.jsxs(Gt,{children:[k.header.manager,":"]}),X(e.userRole.userRoles)?t.jsx(q,{children:k.notApplicable}):t.jsx(t.Fragment,{children:h?t.jsx(ti,{children:h}):t.jsx(q,{children:k.noManager})})]}),t.jsxs(Yt,{children:[t.jsxs(ei,{children:[k.header.department,":"]}),X(e.userRole.userRoles)?t.jsx(q,{children:k.notApplicable}):t.jsx(t.Fragment,{children:n?t.jsx(ii,{children:n}):t.jsx(q,{children:k.emptyDepartmentPlaceholderText})})]})]})})]})},At=i.div`
|
|
276
276
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
277
277
|
border-radius: ${s.sp2};
|
|
278
278
|
display: flex;
|
|
@@ -358,7 +358,7 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
358
358
|
width: 70%;
|
|
359
359
|
`,ti=i(oe)``,ii=i(oe)``,q=i(oe)`
|
|
360
360
|
color: ${e=>e.theme.colors.grey1};
|
|
361
|
-
`,si=(e,o)=>{const l=e.find(d=>d.userId===o);return l?.user?`${l?.user?.firstName} ${l?.user?.lastName}`:void 0},oi=(e,o)=>{const l=e.find(d=>o[0]===d.classId);return l?l.className:void 0},ri=e=>I()==="small"?t.jsx(Lt,{...e}):t.jsx(vt,{...e}),J=y.getLocalizedStrings().peoplePage,li=({peopleData:e,userNameSticky:o,onResendInvite:l,onDeleteUser:d,onRowClick:m})=>{const[p,x]=v.useState(!1),h=I(),n=ni(e),r=f=>{const j=[];return f.map(g=>{const R=Ie.roles.find(V=>V.value===g);return R!=null&&j.push(R?.label??""),j}),j.length>0?j.join(", "):"-"},u=()=>{d?.(e)},w=()=>{m?.(e.userId)};return t.jsxs(ai,{"data-testid":a("zeni-people-list-row-medium",e.userId),windowSize:h,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:w,children:[t.jsx(di,{wrapperWidth:U[0].width,windowSize:h,userNameSticky:o,children:t.jsxs(pi,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(hi,{children:[e.user?.firstName?t.jsxs(mi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"personNameTxt",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(xi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(ui,{widthNumber:U[1].width,windowSize:h,children:t.jsx(ci,{wrapperWidth:new
|
|
361
|
+
`,si=(e,o)=>{const l=e.find(d=>d.userId===o);return l?.user?`${l?.user?.firstName} ${l?.user?.lastName}`:void 0},oi=(e,o)=>{const l=e.find(d=>o[0]===d.classId);return l?l.className:void 0},ri=e=>I()==="small"?t.jsx(Lt,{...e}):t.jsx(vt,{...e}),J=y.getLocalizedStrings().peoplePage,li=({peopleData:e,userNameSticky:o,onResendInvite:l,onDeleteUser:d,onRowClick:m})=>{const[p,x]=v.useState(!1),h=I(),n=ni(e),r=f=>{const j=[];return f.map(g=>{const R=Ie.roles.find(V=>V.value===g);return R!=null&&j.push(R?.label??""),j}),j.length>0?j.join(", "):"-"},u=()=>{d?.(e)},w=()=>{m?.(e.userId)};return t.jsxs(ai,{"data-testid":a("zeni-people-list-row-medium",e.userId),windowSize:h,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:w,children:[t.jsx(di,{wrapperWidth:U[0].width,windowSize:h,userNameSticky:o,children:t.jsxs(pi,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(hi,{children:[e.user?.firstName?t.jsxs(mi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"personNameTxt",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(xi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(ui,{widthNumber:U[1].width,windowSize:h,children:t.jsx(ci,{wrapperWidth:new b(100,100),windowSize:h,children:r(e.userRole.userRoles)})}),t.jsxs(yi,{"data-testid":a("people-list-row-medium-last-seen",e.userId),wrapperWidth:U[2].width,windowSize:h,children:[e.userRole.invitationStatus==="accepted"?t.jsx(bi,{children:n.lastSeen}):t.jsx(gi,{"data-testid":a("people-list-row-medium-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(B,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(wi,{"data-testid":a("people-list-row-medium-resend-invite-text",e.userId),onClick:f=>{f.stopPropagation(),l?.(e.userId)},children:J.resendInvite.label}),t.jsx(vi,{children:t.jsx(fi,{children:`${J.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx($i,{"data-testid":a("people-list-row-medium-menu",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Se,{menuItems:t.jsxs(ji,{children:[t.jsx(ye,{"data-testid":a("people-list-row-medium-menu-edit",e.userId),onClick:()=>{x(!1),w()},children:J.invitePage.editTitle}),t.jsx(ye,{"data-testid":a("people-list-row-menu-delete",e.userId),isDelete:!0,onClick:f=>{f.stopPropagation(),x(!1),u()},children:J.deleteOverlay.title})]}),setIsMenuOpen:x,isMenuOpen:p})})]})]})};function ni(e){return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:Ie.roles},lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const ai=i.div`
|
|
362
362
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
363
363
|
border-radius: ${s.sp2};
|
|
364
364
|
display: flex;
|
|
@@ -487,13 +487,13 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
487
487
|
`,yi=i.div`
|
|
488
488
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
489
489
|
position: relative;
|
|
490
|
-
|
|
490
|
+
`,bi=i(O)`
|
|
491
491
|
overflow: hidden;
|
|
492
492
|
display: -webkit-box;
|
|
493
493
|
-webkit-line-clamp: 1;
|
|
494
494
|
-webkit-box-orient: vertical;
|
|
495
495
|
text-overflow: ellipsis;
|
|
496
|
-
|
|
496
|
+
`,$i=i.div`
|
|
497
497
|
position: absolute;
|
|
498
498
|
right: ${`-${s.sp2}`};
|
|
499
499
|
top: ${e=>e.isInviteAccepted?"6%":"30%"};
|
|
@@ -509,7 +509,7 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
509
509
|
:hover {
|
|
510
510
|
color: ${e=>e.theme.colors.primary};
|
|
511
511
|
}
|
|
512
|
-
`,Si={width:new
|
|
512
|
+
`,Si={width:new b(343,580,726)},Q=y.getLocalizedStrings().peoplePage,ki=({peopleData:e,onRowClick:o,onResendInvite:l})=>{const d=I();return t.jsxs(Ii,{windowSize:d,"data-testid":a("zeni-people-list-row-small",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:()=>{o?.(e.userId)},children:[t.jsxs(Ci,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(zi,{children:t.jsxs(Ti,{children:[t.jsxs(Pi,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Ni,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Li,{className:"lastSeen","data-testid":a("people-list-row-small-last-seen",e.userId),children:[t.jsx(Ai,{className:"lastSeenDateTxt","data-testid":a("people-list-row-small-last-seen-content",e.userId),children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Vi,{children:Q.header.lastSeen})]}):t.jsx(Mi,{"data-testid":a("people-list-row-small-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(B,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Wi,{"data-testid":a("people-list-row-small-resend-invite-text",e.userId),onClick:m=>{m.stopPropagation(),l?.(e.userId)},children:Q.resendInvite.label}),t.jsx(Hi,{children:t.jsx(Ui,{children:`${Q.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Ri,{children:t.jsx(re,{className:"personDetails",children:t.jsxs(Di,{style:{display:"flex"},children:[t.jsxs(Oi,{style:{},children:[Q.header.role,":"]}),t.jsx(_i,{children:je(e.userRole.userRoles,"zeni_only")})]})})})]})},Ii=i.div`
|
|
513
513
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
514
514
|
border-radius: ${s.sp2};
|
|
515
515
|
display: flex;
|
|
@@ -587,7 +587,7 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
587
587
|
justify-content: flex-end;
|
|
588
588
|
`,Ui=i(re)`
|
|
589
589
|
color: ${e=>e.theme.colors.grey1};
|
|
590
|
-
`,Bi=e=>I()==="small"?t.jsx(ki,{...e}):t.jsx(li,{...e}),M={overscanCount:1,rowNameLimit:55,listItemHeight:88},ne={peopleListItemHeight:138,zeniPeopleListItemHeight:106,zeniPeopleExtendedListItemHeight:130},Y={listItemPaddingRight:new $
|
|
590
|
+
`,Bi=e=>I()==="small"?t.jsx(ki,{...e}):t.jsx(li,{...e}),M={overscanCount:1,rowNameLimit:55,listItemHeight:88},ne={peopleListItemHeight:138,zeniPeopleListItemHeight:106,zeniPeopleExtendedListItemHeight:130},Y={listItemPaddingRight:new b($[3],$[8]),listItemPaddingLeft:new b($[3],$[8]),zeniLastRowHeight:new b(154,136),nonZeniLastRowHeight:new b(200,136)},W=y.getLocalizedStrings().peoplePage,Ki=({peopleView:e,allManagers:o,allClasses:l,analytics:d,onColumnSortConfigChanged:m,onDeleteClick:p,onResendInvite:x,onRowClick:h,isZeniTenant:n})=>{const r=I(),u=v.useRef(null),w=!(r==="small"||r==="medium-compact"),[f,j]=v.useState(!1),[g,R]=v.useState(),V=be(),z=e.people.findIndex(c=>c.userRole.invitationStatus==="invited"),me=c=>{j(!0),R(c)},ue=v.memo(({index:c,style:C})=>t.jsx(t.Fragment,{children:t.jsxs(Zi,{"data-testid":a("people-list-item",e.people[c].user?.userId),style:{...C,width:"fit-content",minWidth:"100%"},windowSize:r,isFirstResendInviteUser:z===c,className:"people-list-item",children:[z===c?t.jsx(Yi,{}):null,e.uiState.mode==="off"?t.jsx(ri,{allManagers:o,allClasses:l,userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n}):t.jsx(Bi,{userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n})]})}),Ae);ue.displayName="ListItem";const xe=v.forwardRef((c,C)=>{const{children:_,style:E,...F}=c;return t.jsxs("div",{ref:C,style:{...E,width:"auto"},...F,children:[r==="small"?t.jsx(ht,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}):t.jsx(st,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}),t.jsx(qi,{children:_})]})});xe.displayName="People list view inner element type";const ze=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,_=z===c;return C>M.rowNameLimit?M.listItemHeight+$[5]+(_?$[3]:$[0]):M.listItemHeight+(_?$[3]:$[0])},Te=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,_=je(e.people[c].userRole.userRoles,e.uiState.mode).length,E=z===c,F=e.uiState.mode==="zeni_only"?_>33?ne.zeniPeopleExtendedListItemHeight:ne.zeniPeopleListItemHeight:ne.peopleListItemHeight;return C>M.rowNameLimit?F+$[5]+(E?$[3]:$[0]):F+(E?$[3]:$[0])},Pe={onOkClick:()=>{const c=g;d?.trackRemoveUserAccess(c.userRole.userRoles,c.userRole.userEmail),p?.(c.userId,c.userRole.userRoleId)},onCancelClick:()=>{j(!1),R(void 0)}},ge=Ve(e.people.find(c=>c.userId===g?.userId)?.update),K=e.people.find(c=>c.userId===g?.userId)?.update,Ne=g!=null?W.deleteOverlay.description.replace("‘_user-name_’",`"${Ei(g)}"`):W.deleteOverlay.description;return v.useEffect(()=>{u.current&&u.current.resetAfterIndex(0)},[e,r]),v.useEffect(()=>{K==null&&ge==="removeUsers"&&(j(!1),R(void 0))},[K,ge]),t.jsxs(Fi,{"data-testid":a("people-list-view-container"),windowSize:r,mode:e.uiState.mode,children:[f===!0?t.jsx(Me,{titleComponent:t.jsx(Ue,{children:W.deleteOverlay.title}),descriptionComponent:t.jsx(He,{children:Ne}),primaryButtonText:W.deleteOverlay.remove,secondaryButtonText:W.deleteOverlay.cancel,action:Pe,proceedButtonVariant:"danger",isLoading:K==="removeUsers",isDisabled:K==="removeUsers",style:{background:V.colors.overlayColor},children:g?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Xi,{}),t.jsx(Ji,{children:t.jsx(Qi,{src:g?.user.photo?.toString()??We,alt:g?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(Be,{children:({height:c,width:C})=>t.jsx(Gi,{height:c,innerElementType:xe,itemCount:e.people.length,itemSize:r==="small"?Te:ze,width:C,ref:u,overscanCount:M.overscanCount,children:ue})})]})},Ei=e=>e.user?.firstName?`${e.user?.firstName} ${e.user?.lastName}`:e.user?.email??"",Fi=i.div`
|
|
591
591
|
/** Subtract top so list can occupy remaining available height */
|
|
592
592
|
min-height: ${`calc(100vh - ${s.sp9})`};
|
|
593
593
|
max-width: 99.9%;
|
|
@@ -624,7 +624,7 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
624
624
|
`,Yi=i.div`
|
|
625
625
|
padding-top: ${s.sp3};
|
|
626
626
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
627
|
-
`,Gi=i(Ee)``,es=(e,o)=>{const{user:l,userId:d,userRole:m,update:p}=e,{user:x,userId:h,userRole:n,update:r}=o;return H(l,x)&&H(d,h)&&H(m,n)&&H(p,r)},ts=(e,o)=>{if(e.peopleView.people.length!=o.peopleView.people.length||e.allManagers.length!=o.allManagers.length)return!1;let l=!0;for(let d=0;d<e.peopleView.people.length;++d){const m=e.peopleView.people[d],p=o.peopleView.people[d];if(l=es(m,p),!l)break}return l=l&&H(e.peopleView.invitePeopleState,o.peopleView.invitePeopleState),l=l&&e.peopleView.uiState.sortKey===o.peopleView.uiState.sortKey&&e.peopleView.uiState.sortOrder===o.peopleView.uiState.sortOrder,l},is=v.memo(Ki,ts);function ss({peopleInviteSectionProps:e}){const o=I();return t.jsx(os,{isSearchOpen:e.isSearchOpen&&o==="small",windowsize:o,children:o!=="small"?t.jsxs(t.Fragment,{children:[e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"unset",right:"120px"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen}),t.jsx(Le,{variant:"primary",size:"small","data-testid":a("invite-people-button"),style:{height:"29px"
|
|
627
|
+
`,Gi=i(Ee)``,es=(e,o)=>{const{user:l,userId:d,userRole:m,update:p}=e,{user:x,userId:h,userRole:n,update:r}=o;return H(l,x)&&H(d,h)&&H(m,n)&&H(p,r)},ts=(e,o)=>{if(e.peopleView.people.length!=o.peopleView.people.length||e.allManagers.length!=o.allManagers.length)return!1;let l=!0;for(let d=0;d<e.peopleView.people.length;++d){const m=e.peopleView.people[d],p=o.peopleView.people[d];if(l=es(m,p),!l)break}return l=l&&H(e.peopleView.invitePeopleState,o.peopleView.invitePeopleState),l=l&&e.peopleView.uiState.sortKey===o.peopleView.uiState.sortKey&&e.peopleView.uiState.sortOrder===o.peopleView.uiState.sortOrder,l},is=v.memo(Ki,ts);function ss({peopleInviteSectionProps:e}){const o=I();return t.jsx(os,{isSearchOpen:e.isSearchOpen&&o==="small",windowsize:o,children:o!=="small"?t.jsxs(t.Fragment,{children:[e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"unset",right:"120px"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen}),t.jsx(Le,{variant:"primary",size:"small","data-testid":a("invite-people-button"),style:{height:"29px",...$e.smallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"},label:e.invitePeopleLabel,onClick:e.onInvitePeopleClick})]}):t.jsxs(t.Fragment,{children:[e.hideInviteBtn?null:t.jsx(rs,{"data-testid":a("invite-people-button"),onClick:e.onInvitePeopleClick}),e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"5px",right:o!=="small"?"120px":"unset",top:"44px",width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,"data-testid":a("people-invite-search"),onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0})]})})}const os=i.div`
|
|
628
628
|
display: flex;
|
|
629
629
|
flex-direction: column;
|
|
630
630
|
justify-content: ${e=>e.windowsize==="small"?"unset":"center"};
|
|
@@ -672,4 +672,4 @@ import{d as $e,J as I,F as y,V as t,bE as le,aR as a,bQ as De,o as s,cn as Oe,co
|
|
|
672
672
|
`,cs=i(G)`
|
|
673
673
|
margin-top: ${s.sp3};
|
|
674
674
|
color: ${e=>e.theme.colors.hero};
|
|
675
|
-
`,ps=()=>t.jsx(ns,{children:t.jsx(B,{size:"ExtraLarge",start:!0})});function hs(e){const o
|
|
675
|
+
`,ps=()=>t.jsx(ns,{children:t.jsx(B,{size:"ExtraLarge",start:!0})});function hs(e){const o=be(),l=I(),{mode:d,searchText:m}=e.peopleView.uiState,{fetchState:p}=e.peopleView,{fetchState:x}=e.managersView,{fetchState:h}=e.classList,[n,r]=v.useState(!1),u={isSearchOpen:n,onSearchOpen:z=>{r(z)},onSearchTextChanged:e.personAction.onSearchTextChanged,searchPlaceHolder:y.getLocalizedStrings().peoplePage.searchPlaceHolder,searchText:m,invitePeopleLabel:y.getLocalizedStrings().peoplePage.invitePeopleText,onInvitePeopleClick:e.onInvitePeopleClick,onClickMenuIcon:e.onClickMenuIcon},w=e?.isZeniTenant!==!0&&e?.isZeniAdminUser===!0,f=()=>{const z=d==="off"?"zeni_only":"off";e.personAction.onModeChange?.(z)},j=p==="Completed"?`(${e.peopleView.people.length})`:"",g=`${d==="off"?y.getLocalizedStrings().peoplePage.peopleTitle:y.getLocalizedStrings().peoplePage.zeniPeopleTitle} ${j}`,R=v.useMemo(()=>p==="In-Progress"||p==="Not-Started"||x==="In-Progress"||x==="Not-Started"||e.shouldFetchClasses&&(h==="In-Progress"||h==="Not-Started"),[p,x,e.shouldFetchClasses,h]);function V(){return R?t.jsxs(ae,{"data-testid":a("people-page-loading"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:e.onClickMenuIcon,onZeniLogoClick:f,showZeniLogo:w,zeniLogoVisiblity:d==="zeni_only"?"visible":"hidden",isSearchOpen:n,backgroundColor:o.colors.grey4,source:"PeoplePage"}),t.jsx(ps,{})]}):p==="Error"||h==="Error"||x==="Error"?t.jsxs(ae,{"data-testid":a("people-page-error"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,backgroundColor:o.colors.grey4,source:"PeoplePage"}),t.jsxs(as,{children:[t.jsx(ds,{"data-testid":a("people-page-error-reload-icon"),onClick:e.personAction.onReloadPeople,children:t.jsx(De,{width:s.sp6,height:s.sp6})}),t.jsx(cs,{children:y.getLocalizedStrings().peoplePage.reloadPage.label})]})]}):t.jsxs(ae,{"data-testid":a("people-page-content-container"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,source:"PeoplePage",backgroundColor:o.colors.grey4}),t.jsx(ls,{"data-testid":a("people-page-content"),windowSize:l,children:e.peopleView.people.length>0?t.jsx(is,{peopleView:e.peopleView,allManagers:e.managersView.users,allClasses:e.classList.classes,onDeleteClick:e.personAction.onPersonDelete,analytics:e.analytics,onResendInvite:e.personAction.onResendInvite,onColumnSortConfigChanged:e.onColumnSortConfigChanged,onRowClick:e.onRowClick,isZeniTenant:e.isZeniTenant}):m!==""?t.jsx(Oe,{emptySearchTextFirstLine:y.getLocalizedStrings().peoplePage.emptySearchTextFirstLine,emptySearchTextSecondLine:y.getLocalizedStrings().peoplePage.emptySearchTextSecondLine}):t.jsx(_e,{message:y.getLocalizedStrings().peoplePage.emptyResultsMessage})})]})}return t.jsx("div",{children:V()})}const de=e=>t.jsx(ss,{peopleInviteSectionProps:e}),ks=ce.memo(hs);export{ks as MemoPeople,hs as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,P as n}from"./sentry-
|
|
1
|
+
import{a as h,P as n}from"./sentry-wpLc0w9b.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="1e21bcae-92bc-4f72-b3b7-b9f34ad2806c",t._sentryDebugIdIdentifier="sentry-dbid-1e21bcae-92bc-4f72-b3b7-b9f34ad2806c")}catch{}})();const c="64px",u={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:f})=>{const[b,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(u[e]){o(u[e]);return}o(null);const y=await(await fetch(E.replace("{url}",e))).json();if(y.thumbnail_url){const g=y.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),u[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),p={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:b&&!l?`url(${b})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...p},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:l?"absolute":void 0,...p},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:d.shadow,className:"react-player__shadow"},n.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:d.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...f?{"aria-label":f}:{}},l?a:null,m||x)};var P=k;export{P as default};
|
package/dist/assets/{ProductsCarousel-ufZlh7Rx-QxXMcnzU.js → ProductsCarousel-ufZlh7Rx-CVm981GO.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as I,V as t,a9 as B,o as c,c4 as N,b1 as U,u as V,d9 as G,ar as H,am as T,da as J,p as v}from"./index-
|
|
1
|
+
import{F as I,V as t,a9 as B,o as c,c4 as N,b1 as U,u as V,d9 as G,ar as H,am as T,da as J,p as v}from"./index-CE4a3GDT.js";import{a as y}from"./sentry-wpLc0w9b.js";import{n as i}from"./mui-4aI62okM.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]="404fcd27-d4d8-47d1-8d45-3047ef360995",e._sentryDebugIdIdentifier="sentry-dbid-404fcd27-d4d8-47d1-8d45-3047ef360995")}catch{}})();const u=I.getLocalizedStrings(),w={large:{labelComp:G,title:H,subtitle:T,seeMoreLink:T}},Y={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=Y.large,q=i.div`
|
|
2
2
|
width: ${e=>e.scale*r.width}px;
|
|
3
3
|
height: ${e=>e.scale*r.height}px;
|
|
4
4
|
overflow: hidden;
|
package/dist/assets/{PromoBaseCards-D2UbhBhT-CKuo_xyF.js → PromoBaseCards-D2UbhBhT-uOFnp-4I.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as m,V as r,de as b,df as v,dg as y,bz as z,o as e,p as d,y as a,H as c,u as p}from"./index-
|
|
1
|
+
import{J as m,V as r,de as b,df as v,dg as y,bz as z,o as e,p as d,y as a,H as c,u as p}from"./index-CE4a3GDT.js";import{c as i,n as g,k as f}from"./mui-4aI62okM.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new o.Error().stack;h&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="8cf62577-8488-4faf-9867-e53f30b1b542",o._sentryDebugIdIdentifier="sentry-dbid-8cf62577-8488-4faf-9867-e53f30b1b542")}catch{}})();const t={plasticCardMarginLeft:new a(p[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(p[2],13),businessTextBottom:new a(p[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(p[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(p[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(p[2],13),visaLogoBottom:new a(p[2],13)},u={businessText:new c("extraSmallRegular","largeRegular"),promoBusinessText:new c("tinyLight","tinyLight")},R=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(B,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(H,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(k,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},C=f`
|
|
2
2
|
0%{
|
|
3
3
|
transform: rotate(12.4deg);
|
|
4
4
|
translate: ${e.sp0} ${e.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as b,F as r,V as n,bU as y,i as l,y as c,o as i,ar as w,am as $,ag as j,bx as P,eS as v,u as t}from"./index-
|
|
1
|
+
import{J as b,F as r,V as n,bU as y,i as l,y as c,o as i,ar as w,am as $,ag as j,bx as P,eS as v,u as t}from"./index-CE4a3GDT.js";import{n as o}from"./mui-4aI62okM.js";import"./sentry-wpLc0w9b.js";import"./liveblocks-mJOf9rAw.js";import"./core-Cgphrdqi.js";import"./recharts-D-YAfDZj.js";import"./zeni-epic-state-BwFYSQY8.js";import"./lottie-CH7yL4lR.js";import"./analytics-T3rNNQ2m.js";import"./lexical-B-NT_OOU.js";import"./utils-DCLZL4US.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="211e7af8-613b-4414-89af-d4c7f40d57b6",e._sentryDebugIdIdentifier="sentry-dbid-211e7af8-613b-4414-89af-d4c7f40d57b6")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},S=o.div`
|
|
2
2
|
border-radius: inherit;
|
|
3
3
|
max-width: 520px;
|
|
4
4
|
text-align: center;
|
package/dist/assets/{QBOSetupSection-EOFscEW--caOZ4mOT.js → QBOSetupSection-EOFscEW--NVc0ejxZ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as O,F as u,V as i,i as k,o,y as a,p as c,fT as I,H as T,ag as D,bx as B,eS as H,fK as W,aX as w,aj as f,u as r}from"./index-
|
|
1
|
+
import{J as O,F as u,V as i,i as k,o,y as a,p as c,fT as I,H as T,ag as D,bx as B,eS as H,fK as W,aX as w,aj as f,u as r}from"./index-CE4a3GDT.js";import{n}from"./mui-4aI62okM.js";import _ from"./QBOConnectionDialog-BrQ71F06-AzQWwAtU.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]="9cea55f6-1532-4152-b36b-8d8618a6d672",e._sentryDebugIdIdentifier="sentry-dbid-9cea55f6-1532-4152-b36b-8d8618a6d672")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},E={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:h,handleOnConnectClick:b})=>{const s=O(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(A,{windowSize:s,children:[i.jsxs(F,{windowSize:s,children:[s==="small"?i.jsx(L,{children:d?i.jsx(R,{}):i.jsx(U,{})}):null,i.jsx(G,{windowSize:s,children:S})]}),i.jsxs(N,{windowSize:s,children:[i.jsxs(Q,{windowSize:s,children:[i.jsxs(q,{children:[i.jsx(J,{}),i.jsx(M,{windowSize:s}),i.jsx(K,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(V,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(_,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(W,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new w(c.successDark),borderColor:new w(c.successDark)}})},A=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as W,u as L,d as M,J as G,F as U,aa as H,aS as J,aL as X,cH as K,V as r,bE as Q,ad as Y,aT as Z,o as b,gb as ee}from"./index-
|
|
1
|
+
import{y as W,u as L,d as M,J as G,F as U,aa as H,aS as J,aL as X,cH as K,V as r,bE as Q,ad as Y,aT as Z,o as b,gb as ee}from"./index-CE4a3GDT.js";import{a as T}from"./sentry-wpLc0w9b.js";import{n as c}from"./mui-4aI62okM.js";import{b as te,f as ae,o as B,l as _}from"./FollowStepsSection-GaWu1kt9-BVHL41Jb.js";import"./liveblocks-mJOf9rAw.js";import"./core-Cgphrdqi.js";import"./recharts-D-YAfDZj.js";import"./zeni-epic-state-BwFYSQY8.js";import"./lottie-CH7yL4lR.js";import"./analytics-T3rNNQ2m.js";import"./lexical-B-NT_OOU.js";import"./utils-DCLZL4US.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ddf5c15d-d3b0-46e7-b5e0-b0a938214a24",e._sentryDebugIdIdentifier="sentry-dbid-ddf5c15d-d3b0-46e7-b5e0-b0a938214a24")}catch{}})();const $="reimbursementApprovalRuleDetailPage",C="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:a,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:i=!1,onBackClick:s,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:w}){const F=M(),A=G(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,a==="approval_create"&&!t),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=J(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 T.useEffect(()=>{const n=y.watch((p,{name:D})=>{if(D!=null&&p!=null){const O=X(p);K(()=>z(D,O))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&w()},[R,u?.fetchState,w]),r.jsxs(ie,{children:[r.jsx(Q,{title:a==="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(te,{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=>t?!0:n!=null&&n>v},isDisabled:t,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(ae,{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:a==="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,a)=>{const{criteria:t,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),B(e.allAttributes),B(e.filteredAttributes),o??[])??[],[C]:a?void 0:t!=null?t.range.min.amount??0:0,[j]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},oe=(e,a,t,o,i)=>i&&i.length>0?i.map((s,g)=>({stepIndex:g,stepType:{selectedOption:s.action,allOptions:_},actors:{allUsers:a,selectedUsers:se(e,s.actors),allNonUsers:o,selectedNonUsers:ne(t,s.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:_},actors:{allUsers:a,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,a)=>e.filter(t=>t.userId!=null&&a.findIndex(o=>o.userId===t.userId)>-1),ne=(e,a)=>e.filter(t=>a.findIndex(o=>o.subType===t.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 V,J as N,F as j,V as t,bE as F,T as G,aR as m,o,y as r,am as H,aP as P,bV as T,cr as q,cs as K,ct as O,d1 as J,u as l,bb as Q,H as k,ba as X,p as z,d0 as Y,bv as Z,b as ee}from"./index-
|
|
1
|
+
import{d as V,J as N,F as j,V as t,bE as F,T as G,aR as m,o,y as r,am as H,aP as P,bV as T,cr as q,cs as K,ct as O,d1 as J,u as l,bb as Q,H as k,ba as X,p as z,d0 as Y,bv as Z,b as ee}from"./index-CE4a3GDT.js";import{n as i}from"./mui-4aI62okM.js";import{a as te}from"./sentry-wpLc0w9b.js";import"./liveblocks-mJOf9rAw.js";import"./core-Cgphrdqi.js";import"./recharts-D-YAfDZj.js";import"./zeni-epic-state-BwFYSQY8.js";import"./lottie-CH7yL4lR.js";import"./analytics-T3rNNQ2m.js";import"./lexical-B-NT_OOU.js";import"./utils-DCLZL4US.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]="0745c9cb-2ccd-463f-99ec-46b3737fd796",e._sentryDebugIdIdentifier="sentry-dbid-0745c9cb-2ccd-463f-99ec-46b3737fd796")}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)},E={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,U)=>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(D,{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(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},d.userId))]},U))})}),g?t.jsx(q,{titleComponent:t.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(K,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:E}):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{ax as Mt,a9 as Rt,J as Pt,d as Bt,cf as Nt,y as m,F as et,gl as Lt,gn as _t,go as Ot,V as t,cr as Ae,cs as Me,ct as Re,bE as Pe,aR as y,bq as Wt,dx as Et,gp as Ft,gA as Be,o as a,gq as Ne,fm as b,gt as w,fp as x,aP as Le,fl as _e,b as V,gv as Oe,aT as Kt,ap as Ut,gw as Vt,gx as re,bz as Ht,gy as Gt,x as Yt,H as qt,a as Jt,am as tt,bb as it,p as H,an as Xt,bX as Zt,aj as Qt,gS as ei,gO as ti,u as c,ck as ii,c$ as ai}from"./index-BkgFwDrN.js";import{a as p}from"./sentry-DG5QSuAU.js";import{n as r}from"./mui-B8eJ9Mf-.js";import{a as ri}from"./liveblocks-Fce3U47w.js";import{bL as oi,bP as ni,FR as li}from"./zeni-epic-state-DJMVsfEo.js";import si from"./InvoiceUploadSection-C8hytmay-B9oVp1v8.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-ynj-rcGI.js";import"./lottie-DfQwbfZe.js";import"./recharts-DcXbW3wD.js";import"./analytics-BB7e_ruj.js";import"./lexical-f2bgmP7p.js";import"./utils-BaLrPeRI.js";import"./AttachmentView-BrQRChzc-BPL0XTAx.js";import"./uploadReceipts-Dge0cNF1-9bGZSaw_.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]="4ea1676b-239c-4ff5-a0e2-d18d3d5414be",e._sentryDebugIdIdentifier="sentry-dbid-4ea1676b-239c-4ff5-a0e2-d18d3d5414be")}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),[X,Z]=p.useState("approved"),N=p.useRef(null),[j,Q]=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=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("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(Qe,{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(Xe,{windowSize:o,children:[t.jsx(Ze,{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(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount: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:X==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||X==="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:X==="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{ax as Mt,a9 as Rt,J as Pt,d as Bt,cf as Nt,y as m,F as et,gl as Lt,gn as _t,go as Ot,V as t,cr as Ae,cs as Me,ct as Re,bE as Pe,aR as y,bq as Wt,dx as Et,gp as Ft,gA as Be,o as a,gq as Ne,fm as b,gt as w,fp as x,aP as Le,fl as _e,b as V,gv as Oe,aT as Kt,ap as Ut,gw as Vt,gx as re,bz as Ht,gy as Gt,x as Yt,H as qt,a as Jt,am as tt,bb as it,p as H,an as Xt,bX as Zt,aj as Qt,gS as ei,gO as ti,u as c,ck as ii,c$ as ai}from"./index-CE4a3GDT.js";import{a as p}from"./sentry-wpLc0w9b.js";import{n as r}from"./mui-4aI62okM.js";import{a as ri}from"./liveblocks-mJOf9rAw.js";import{bL as oi,bP as ni,FS as li}from"./zeni-epic-state-BwFYSQY8.js";import si from"./InvoiceUploadSection-C8hytmay-BLOWx67x.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-Cgphrdqi.js";import"./lottie-CH7yL4lR.js";import"./recharts-D-YAfDZj.js";import"./analytics-T3rNNQ2m.js";import"./lexical-B-NT_OOU.js";import"./utils-DCLZL4US.js";import"./AttachmentView-BrQRChzc-uiw2DPZW.js";import"./uploadReceipts-Dge0cNF1-CG_JuBSh.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]="22e9ad82-d9de-4084-99fe-2f0c6391ba60",e._sentryDebugIdIdentifier="sentry-dbid-22e9ad82-d9de-4084-99fe-2f0c6391ba60")}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),[X,Z]=p.useState("approved"),N=p.useRef(null),[j,Q]=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=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("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(Qe,{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(Xe,{windowSize:o,children:[t.jsx(Ze,{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(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount: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:X==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||X==="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:X==="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{ax as ne,d as S,J as k,aS as le,V as e,aR as a,fx as ae,bE as de,i as u,af as d,F,o as r,ar as ce,R as me,aV as V,an as pe,y as xe,p as z,cG as he,aW as ue,bc as ge,u as we}from"./index-
|
|
1
|
+
import{ax as ne,d as S,J as k,aS as le,V as e,aR as a,fx as ae,bE as de,i as u,af as d,F,o as r,ar as ce,R as me,aV as V,an as pe,y as xe,p as z,cG as he,aW as ue,bc as ge,u as we}from"./index-CE4a3GDT.js";import{a as j}from"./sentry-wpLc0w9b.js";import{n as s}from"./mui-4aI62okM.js";import{FR as je,bT as fe}from"./zeni-epic-state-BwFYSQY8.js";import{C as be}from"./VideoPopup-rfiYmtio-DTzyP3EH.js";import{M as v}from"./usp-line-BBd1wKwW-Sh2YvFJY.js";import"./liveblocks-mJOf9rAw.js";import"./core-Cgphrdqi.js";import"./recharts-D-YAfDZj.js";import"./lottie-CH7yL4lR.js";import"./analytics-T3rNNQ2m.js";import"./lexical-B-NT_OOU.js";import"./utils-DCLZL4US.js";import"./VideoPlayer-9UkKMhGy-B3TbligX.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]="09f787cb-4692-49a2-ae46-4408a1e73fda",i._sentryDebugIdIdentifier="sentry-dbid-09f787cb-4692-49a2-ae46-4408a1e73fda")}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%;
|
|
@@ -58,9 +58,9 @@ import{ax as ne,d as S,J as k,aS as le,V as e,aR as a,fx as ae,bE as de,i as u,a
|
|
|
58
58
|
align-items: center;
|
|
59
59
|
text-align: start;
|
|
60
60
|
box-sizing: border-box;
|
|
61
|
-
`,
|
|
61
|
+
`,f=s(ge)`
|
|
62
62
|
color: ${i=>i.theme.colors.champion};
|
|
63
|
-
`,
|
|
63
|
+
`,b=s(ue)`
|
|
64
64
|
color: ${i=>i.theme.colors.champion};
|
|
65
65
|
`,y=s(V)`
|
|
66
66
|
color: ${i=>i.theme.colors.champion};
|
|
@@ -81,4 +81,4 @@ import{ax as ne,d as S,J as k,aS as le,V as e,aR as a,fx as ae,bE as de,i as u,a
|
|
|
81
81
|
margin: ${r.sp3} auto;
|
|
82
82
|
max-width: 772px;
|
|
83
83
|
color: ${i=>i.theme.colors.hero};
|
|
84
|
-
`,t=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsx(W,{windowSize:o,children:e.jsx(G,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(
|
|
84
|
+
`,t=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsx(W,{windowSize:o,children:e.jsx(G,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.simplestText.bold}),e.jsx(f,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.aiPoweredText.bold}),e.jsx(f,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.multiLevelApprovalText.bold}),e.jsx(f,{children:t.multiLevelApprovalText.regular})]})]})]}),e.jsx(W,{windowSize:o,children:e.jsx(G,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},Ne=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:J,analytics:x,onSetupButtonClick:K,onCreateNewRemiButtonClick:Q,onBackClick:X,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[te,R]=j.useState(!1),re=S(),l=k(),{remiTermsDetails:h}=i,I=le(h?.fetchStatus.fetchState),se=je(P.loggedInUserRoleMap),w=fe(P.loggedInUserRoleMap)&&!se,oe=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=w?U?t.employeeAcceptPromoText:t.employeePendingPromoText:t.promoText;j.useEffect(()=>{I==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[I,C,h?.fetchStatus]);const B=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(be,{onCancelClick:()=>{ie(!1)},videoUrl:J,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:t.title,backgroundColor:re.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:A}):e.jsx(ke,{children:A}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:U&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(D,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:Q,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(M,{children:[t.terms.createTerms1,e.jsx(d,{href:t.terms.tosUrl,linkText:t.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),t.terms.terms2,e.jsx(d,{href:t.terms.privacyPolicyUrl,linkText:t.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),t.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(D,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(M,{children:[t.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,t.terms.terms3]})]})})]})]})};export{Ne as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Ee,J as Ie,aS as N,aa as qe,cH as Ge,F as Te,aX as Ce,V as t,ff as Je,p as J,y as s,bE as Ze,T as Ye,ad as Xe,fy as ve,dS as Ke,fz as Qe,by as et,dI as tt,aT as it,o as a,fB as nt,u as n,ck as ot,cL as at,ex as lt,fK as ke,fL as $e,gk as st,i as rt,aR as Pe,H as Ae,bO as dt,aj as ct,bv as ut}from"./index-
|
|
1
|
+
import{d as Ee,J as Ie,aS as N,aa as qe,cH as Ge,F as Te,aX as Ce,V as t,ff as Je,p as J,y as s,bE as Ze,T as Ye,ad as Xe,fy as ve,dS as Ke,fz as Qe,by as et,dI as tt,aT as it,o as a,fB as nt,u as n,ck as ot,cL as at,ex as lt,fK as ke,fL as $e,gk as st,i as rt,aR as Pe,H as Ae,bO as dt,aj as ct,bv as ut}from"./index-CE4a3GDT.js";import{a as o}from"./sentry-wpLc0w9b.js";import{n as i}from"./mui-4aI62okM.js";import{bJ as mt}from"./zeni-epic-state-BwFYSQY8.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BKY6hK51-y-fz9noY.js";import"./liveblocks-mJOf9rAw.js";import"./core-Cgphrdqi.js";import"./recharts-D-YAfDZj.js";import"./lottie-CH7yL4lR.js";import"./analytics-T3rNNQ2m.js";import"./lexical-B-NT_OOU.js";import"./utils-DCLZL4US.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]="9274c870-1501-4d4a-b265-66a9a5b4bab3",e._sentryDebugIdIdentifier="sentry-dbid-9274c870-1501-4d4a-b265-66a9a5b4bab3")}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:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!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(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.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:d?.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:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.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()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.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"};
|