@zeniai/web-cockpit-ui 1.15.23-dev → 1.15.23-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-BOZmOJHO-DA9D4iJH.js → ACHDetailsPage-BOZmOJHO-cEby8czd.js} +1 -1
- package/dist/assets/{AIPerformancePage-ZVCJizP9-D55hw0l8.js → AIPerformancePage-ZVCJizP9-Dtv35PtV.js} +1 -1
- package/dist/assets/{AccountInfoPage-DF6IU0EG-CK0AD-ot.js → AccountInfoPage-DF6IU0EG-DxCZYmdQ.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-D0wuuzMd-YMtVFfpn.js → AccountInfoPageContent-D0wuuzMd-B0xWHsG5.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-Cfx-lPAZ-B55UQ1W3.js → AccountLockedInfoModal-Cfx-lPAZ-DshiVPV5.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DbHX6rPG-BwmWp-T3.js → AccountReconDetailsDrawerPage-DbHX6rPG-DT6lFlWy.js} +1 -1
- package/dist/assets/{AccountRow-Bk_25FCy-D03inSab.js → AccountRow-Bk_25FCy-C16qMB4Z.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DAXRwY1f-DegwS44K.js → AccountsPromoCardStack-DAXRwY1f-BZwImYDU.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DNGQGGYg-AmBvQD8m.js → AddAddressForCardDrawer-DNGQGGYg-CLwDyH_f.js} +1 -1
- package/dist/assets/{AddToWalletPage-CzziHgi7-j3gMOtad.js → AddToWalletPage-CzziHgi7-BcDoFidX.js} +1 -1
- package/dist/assets/{AgingReportsPage-Bdi3krKK-Bf-4bvXh.js → AgingReportsPage-Bdi3krKK-D_TiZ-tF.js} +1 -1
- package/dist/assets/{AllUserItems-XWDuiug6-DkHHRN56.js → AllUserItems-XWDuiug6-BAkUBjEM.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CaM_AzrU-DCtFqylK.js → ApAgingDetailPage-CaM_AzrU-BfYzOpHB.js} +1 -1
- package/dist/assets/{AppBasePage-B7_L4R6d-DSvQT3A9.js → AppBasePage-B7_L4R6d-CdK-0SuM.js} +1 -1
- package/dist/assets/{AppDrawerContent-DSX1364T-CNP-B7uf.js → AppDrawerContent-DSX1364T-D_rsKUJJ.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-DrjPOeyp-BrhLSwXJ.js → ApprovalRulesSettingsPage-DrjPOeyp-CdYnJ9vy.js} +1 -1
- package/dist/assets/{ArAgingChart-M7KUNA4G-DKIpaPUv.js → ArAgingChart-M7KUNA4G-BBhQnHg6.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-7lby5mXn-BtLBFlEX.js → ArAgingDetailPage-7lby5mXn-Cn-mYvQ2.js} +1 -1
- package/dist/assets/{AttachmentView-Bsa0u92o-BEQFOxXv.js → AttachmentView-Bsa0u92o-CjvOotrN.js} +1 -1
- package/dist/assets/{BankAccountSection-BkOlwayA-DP864Lrq.js → BankAccountSection-BkOlwayA-BPcMBUXX.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-uMOXLH0B-ZXC_xQuj.js → BankAccountWarningSection-uMOXLH0B-BYzXyhFM.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-C_YytTke-B8k-pddW.js → BankConnectionsSettingsPage-C_YytTke-BzB9VzDB.js} +1 -1
- package/dist/assets/{BillDetailPage-DvU5_Rsp-C9dpUiI6.js → BillDetailPage-DvU5_Rsp-DU8CrmLb.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-UeVxIxfF-CFPoQw5A.js → BillPayApprovalRuleDetailPage-UeVxIxfF-DVjWIsxB.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CA9eufjt-BNyCnVeE.js → BillPayApprovalRulesPage-CA9eufjt-Dn60Oc6F.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DsXPWKAf-BqLcGJ_H.js → BillPayPromoPage-DsXPWKAf-DohS7qp6.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CeMhzZ_3-BI9-weFw.js → BillPaySetUpPage-CeMhzZ_3-vvoPdyI4.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BygJjDSp-C0Ia6obD.js → BillingSettingsPage-BygJjDSp-TUk3hFrg.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-WrR46NRa-CKI5pK1F.js → BillsBulkReviewDrawerPage-WrR46NRa-BoZt797E.js} +1 -1
- package/dist/assets/{BoxItem-C0M4PSXY-D0kSlmNN.js → BoxItem-C0M4PSXY-CL2s8rtu.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-C63pUk4d-C1yyAjbf.js → BusinessVerificationPage-C63pUk4d-O2_DYefs.js} +1 -1
- package/dist/assets/{CardNumberSubText-B4dAoYDE-B1SbTgmV.js → CardNumberSubText-B4dAoYDE-CA1yVbnM.js} +1 -1
- package/dist/assets/{CashbackDetailPage-B6xvn-y3-CO89J05d.js → CashbackDetailPage-B6xvn-y3-CWbA3umh.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-eJJ4MEE6-BXMqrqi9.js → ChargeCardDetailPage-eJJ4MEE6-Dqa1hLcL.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BYI2HIjA-B0giUbEV.js → ChargeCardListPage-BYI2HIjA-BxgrU4Bo.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DAVYmKCK-DEY8KXB2.js → ChargeCardListTable-DAVYmKCK-DhPjSkf0.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-BX5HtOxd-BV2ugIHB.js → ChargeCardPaymentHistoryPage-BX5HtOxd-By7opFFe.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DuQe7BpX-B1bYsTBb.js → ChargeCardPromoPage-DuQe7BpX-C4Pi99Eb.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DG1eKhYR-BVTvcCk1.js → ChargeCardSetupPage-DG1eKhYR-C5J1ZUCx.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CvtZtuVC-BbTDMJQ9.js → ChargeCardStatementsPage-CvtZtuVC-fVY1XVT7.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BdacGDpy-CN6aGowb.js → CheckDepositDrawerPage-BdacGDpy-_E8iHDvd.js} +1 -1
- package/dist/assets/{CollapsableReportTable-UADp1m_8-C887iUXZ.js → CollapsableReportTable-UADp1m_8-mWjI_leU.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CaAR0Wvk-CmXyx64P.js → CompanyOfficerDetailsSection-CaAR0Wvk-Y2CrJIeH.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BJN2GEVm-LlIc7P9q.js → CompanyPassportCard-BJN2GEVm-1-ckXmYg.js} +1 -1
- package/dist/assets/{CompanyPassportPage-D2ALJDF_-B0BzydTg.js → CompanyPassportPage-D2ALJDF_-BefJj8do.js} +1 -1
- package/dist/assets/{CompleteProfile-C8X8Z3C2-Bzf6-WNu.js → CompleteProfile-C8X8Z3C2-B5zH0Tmw.js} +1 -1
- package/dist/assets/{ConfettiBurst-DxHzdDPp-BHPKFQrr.js → ConfettiBurst-DxHzdDPp-B5gAhZ11.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-D4MBpZa1.js → ConstrainedInnerElement-BeIpAPjB-BxZ8LuDZ.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-y-COpdhs-CywEWB6a.js → CreateOrEditVendorPage-y-COpdhs-mKDFSPdj.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CntYJJ8v-CZ68p-k6.js → CreditCardPaymentDrawerPage-CntYJJ8v-CCrwQ0wx.js} +1 -1
- package/dist/assets/{CurrencySelectField-Dn-hE2az-n1RHeHxE.js → CurrencySelectField-Dn-hE2az-Bzyg81M-.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-B9MZHJVc-BxzBFrW0.js → CustomerOnboardingActivationPage-B9MZHJVc-BGGiyire.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-eR0yY2uX-BeFivMSV.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BCe8BvQF-DaEKstx7.js → CustomerOnboardingDetailPageSkeleton-BCe8BvQF-BNh6nQQn.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-BHk7rDAg-B5ZKgZir.js → CustomerOnboardingNoStepsPage-BHk7rDAg-DFqj8w76.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-1LvpVpHC-Cr4NP9fC.js → CustomerOnboardingPage-1LvpVpHC-CtZqBhcA.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DMYHMJXg-DeyKCfXK.js → CustomerOnboardingProductSuitePage-DMYHMJXg-DknXOQ4Z.js} +1 -1
- package/dist/assets/{Dashboard-CCV0_aCP-BoBmH13Z.js → Dashboard-CCV0_aCP-CQUZUy1N.js} +1 -1
- package/dist/assets/{DashboardReportPage-CmoH9Vrc-CzA5O7KO.js → DashboardReportPage-CmoH9Vrc-YRVh1xv0.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-hw3einS7-DUVXWx2a.js → DashboardSidebarBackgroundAnimation-hw3einS7-RBFGGSlR.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DgdkYGjP-BkMVZWVv.js → DepositAccTransactionItem-DgdkYGjP-CjXxm0tW.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-CF0WJn9M-DlPgp9dm.js → DepositAccTransactionListPage-CF0WJn9M-BU4eJyrh.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-B12tNa6e-DRCqor_l.js → DomesticWireDetailsPage-B12tNa6e-CNX84UV9.js} +1 -1
- package/dist/assets/{DownloadOverlay-Dt9yt4Fz-OGiiWSIN.js → DownloadOverlay-Dt9yt4Fz-CIXLzBI9.js} +1 -1
- package/dist/assets/{DrawerPage-Clki97FA-CqA84wbo.js → DrawerPage-Clki97FA-zwV1ORRL.js} +1 -1
- package/dist/assets/{EditPeoplePage-CKS_aEZm-B7Tw7FjE.js → EditPeoplePage-CKS_aEZm-3p7F4OmS.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-CXy2ZWfZ-BrOpTSUf.js → EditReimbursementDetailPage-CXy2ZWfZ-Ck_YPJ4k.js} +1 -1
- package/dist/assets/{EntityDetailPage-B3TQ5hCP-IVMsCeoo.js → EntityDetailPage-B3TQ5hCP-Ce-hU3r6.js} +1 -1
- package/dist/assets/{EntitySummarySection-D_YLsP_P-CSh4l-FA.js → EntitySummarySection-D_YLsP_P-BoWXtkG5.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-4z3yzHEA-ChRwE60S.js → ExpenseAutomationOverviewPage-4z3yzHEA-nTE-jWCA.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BJ4H_c2z-FgmOcOvc.js → ExpenseAutomationPage-BJ4H_c2z-BvYmjMqO.js} +1 -1
- package/dist/assets/{ExpressPayPage-CTBD4y1v-NYjAlIxO.js → ExpressPayPage-CTBD4y1v-DvSbDu0h.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CYuTQWpP-Bl8VAq6v.js → FeaturePreviewPage-CYuTQWpP-DOlo4xRY.js} +1 -1
- package/dist/assets/{FollowStepsSection-BrpI2HyW-DNSECr6B.js → FollowStepsSection-BrpI2HyW-XxzZFZcC.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BcvxLqIL-CD9rfA0-.js → GlobalReviewListPage-BcvxLqIL-BHB3eUmM.js} +1 -1
- package/dist/assets/{InformationCardStack-CU4Moqky-Bc_PhxNK.js → InformationCardStack-CU4Moqky-BIHm0VQL.js} +1 -1
- package/dist/assets/{InsightsCardStack-D8UQiuXZ-DRkswx9n.js → InsightsCardStack-D8UQiuXZ-DZQxCUN_.js} +1 -1
- package/dist/assets/{InsightsSection-C3X6ZNEt-CSaE3QjL.js → InsightsSection-C3X6ZNEt-DJG_Zmq4.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-CsLv00HW-c8_zALL5.js → IntegrationsSettingsPage-CsLv00HW-BCygOGPq.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DgrN5Xg7-ik2bKR2J.js → InternationalWireSwiftDetailsPage-DgrN5Xg7-ClZ3XWsC.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CvysJNBQ-Q67xp-Zv.js → InternationalWireVerificationPage-CvysJNBQ-ClnlKtmf.js} +1 -1
- package/dist/assets/{InviteFormPage-B3KmRWXd-DZboWDF0.js → InviteFormPage-B3KmRWXd-DulIQZ_M.js} +1 -1
- package/dist/assets/{InvitePageListView-DfpJBZru-8z8nAtFG.js → InvitePageListView-DfpJBZru-BHFIBF2O.js} +1 -1
- package/dist/assets/{InvitePeoplePage-C5Qgk24s-U6BHBwDh.js → InvitePeoplePage-C5Qgk24s-Dkn2B0kS.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-BO1i-e_D-S9qpWOlw.js → InvoiceUploadSection-BO1i-e_D-DgD0BWyr.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-mPsxt52d-PfQTvSAJ.js → IssueChargeCardPage-mPsxt52d-D6CBoByV.js} +1 -1
- package/dist/assets/{LabeledAddressValue-C4fnQSyi-BYyUYLsR.js → LabeledAddressValue-C4fnQSyi-qLRstEHA.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D6dEaI69-DANZLTzI.js → LabeledAddressValueField-D6dEaI69-B-8SJ_Vf.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-B1QdZmvd-DW7Mu6XT.js → LabeledControlledCheckBoxField-B1QdZmvd-YPRDAbf-.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-XeBih_-f-O6Y-iu_1.js → LabeledCountryMultiSelectField-XeBih_-f-fdD3iTtd.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BPX2Nrlf-VQgMHUfl.js → LabeledCreatableSingleSelectField-BPX2Nrlf-P1p4rR_W.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Bjg8sNsg-C-PR2ZST.js → LabeledDocumentField-Bjg8sNsg-ozNb8OQw.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-A-rgip1E-DXyiM_iz.js → LabeledDropDownFormattedTextField-A-rgip1E-DwXmP_dw.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-Di9Wnifv-CqQm8lOX.js → LabeledMultiSelectField-Di9Wnifv-Cu7d4aN2.js} +1 -1
- package/dist/assets/{LabeledText-38fqkkE--BV0pTSSz.js → LabeledText-38fqkkE--CWSGVUzZ.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BbF25dUP-Bm5BEKWh.js → LabeledUserSingleSelectWithSubtitlesField-BbF25dUP-n-b2igUs.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Dg9_Ww-A-6LCZnv3_.js → LabeledZeniRolesDropDownField-Dg9_Ww-A-DIXzLshF.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-66mQ4nrK-Blq1QPxg.js → LinkJETransactionPage-66mQ4nrK-BzSVrJXZ.js} +1 -1
- package/dist/assets/{LockCardPage-BCqN4K17-BFhQlELS.js → LockCardPage-BCqN4K17-CeCQzjIU.js} +1 -1
- package/dist/assets/{LowBalancePopup-BPk1-eAb-DPKxi1xa.js → LowBalancePopup-BPk1-eAb-B6NttzQA.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-DM7EUUU7-6n4CruRX.js → MagicLinkACHDetailsPage-DM7EUUU7-CP2qlsFS.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DKrGgFTu-DYmL1ff3.js → MagicLinkDomesticWireDetailsPage-DKrGgFTu-CxyKarhq.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B3OpSWB3-BbCH3bCn.js → MagicLinkInternationalWireDetailsPage-B3OpSWB3-Ka8HAAdC.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CphaJa4k-C1L3trsn.js → MagicLinkSuccessPage-CphaJa4k-ClRRHux0.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-77rxhjLm-DuK-hJU3.js → MagicLinkTitleSection-77rxhjLm-CJlwIBEZ.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BJfZvT0b-Cqv93bBS.js → MailingDetailsSection-BJfZvT0b-CfIiVZuJ.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-z0tHaSl1-D8NpXmDe.js → MyBankConnectionsSettingsPage-z0tHaSl1-C2cR_W8d.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CwGYwufd-BhPm_tq1.js → MyPendingActivationChargeCardListPage-CwGYwufd-8VTw2t9E.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-8yBXAre6-Bs5xqc-e.js → MyProfileSettingsPage-8yBXAre6-z1GTbXeP.js} +1 -1
- package/dist/assets/{NavBarWithPicker-C3LVyiC9-QHhc6aBd.js → NavBarWithPicker-C3LVyiC9-CjcZT1T-.js} +1 -1
- package/dist/assets/{NavigationArrow-NuJEpE7O-BsQF0lUP.js → NavigationArrow-NuJEpE7O-B5Q_1LoQ.js} +1 -1
- package/dist/assets/{NavigationDots-C7Na64B9-CHGprwD5.js → NavigationDots-C7Na64B9-DsPnGRfr.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Cus6zYV_-DyfxnG1c.js → NewGlobalMerchantPage-Cus6zYV_-B6Ar9J14.js} +1 -1
- package/dist/assets/{NoDataChart-B3s_7m2n-DuPBFXV2.js → NoDataChart-B3s_7m2n-ConKu00U.js} +1 -1
- package/dist/assets/{NoDataTable-CMpypnTw-C6S_V6d0.js → NoDataTable-CMpypnTw-Bpr4-Ujz.js} +1 -1
- package/dist/assets/{NotFoundPage-RjXioqc8-DMQ0F7IL.js → NotFoundPage-RjXioqc8-DhhNAhxs.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DrDW_LU_-mWZ117zO.js → NotificationSettingsPage-DrDW_LU_-CS2oaUQv.js} +1 -1
- package/dist/assets/{NotificationsListConfig-C6_ap0JT-D0MspRwp.js → NotificationsListConfig-C6_ap0JT-ByTHHJzO.js} +1 -1
- package/dist/assets/{NotificationsPage-DOM-Gf5P-BRdHJwOp.js → NotificationsPage-DOM-Gf5P-B5QjEdl2.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CTuBB827-Bbt1veu8.js → OpExByVendorPage-CTuBB827-bAvCbmPr.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-Bbmz6FH4.js → OverlayContainerPage-D4QU0p4o-D1piLlT1.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BXaENYdR-DDSkVfM3.js → PandLWithForecastPage-BXaENYdR-CIp55YUH.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DSnQX90O-Dx1jHuZ7.js → PaymentAccountSetupBillingAddressSection-DSnQX90O-1Q0Vgv-d.js} +1 -1
- package/dist/assets/{PeoplePage-BlyVVthI-fFVSXzpH.js → PeoplePage-BlyVVthI-B-EV5gcz.js} +1 -1
- package/dist/assets/{ProductsCarousel-CAcPH--E-BIuBBeKB.js → ProductsCarousel-CAcPH--E-rNhNCUol.js} +1 -1
- package/dist/assets/{PromoBaseCards-BVwZMVeE-DstwmvWv.js → PromoBaseCards-BVwZMVeE-sKF0t-Cs.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-C3OYyhYO-5hTjd5-l.js → QBOConnectionDialog-C3OYyhYO-R6UU_AEU.js} +1 -1
- package/dist/assets/{QBOSetupSection-DQjol-D0-05cxakPz.js → QBOSetupSection-DQjol-D0-AZZiDMHT.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-llw4ONPo-DjqdHx3S.js → ReimbursementApprovalRuleDetailPage-llw4ONPo-Ysis5LEV.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-Cx0gs7sS-B-krQa99.js → ReimbursementApprovalRulesPage-Cx0gs7sS-C6EpKLmO.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-Cs_rmkS8-DW1o_189.js → ReimbursementDetailPage-Cs_rmkS8-B_IsEOAd.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-CCFl0kQK-B9O9Pssf.js → ReimbursementPromoPage-CCFl0kQK-4i08L5Az.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-lf3xTVFh-COXeJ33g.js → ReimbursementSetUpPage-lf3xTVFh-DUT9d0Mn.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C5MTFJLG-CJIWqV-7.js → ReimbursementsBulkReviewDrawerPage-C5MTFJLG-CU5EXNX4.js} +1 -1
- package/dist/assets/{ReloadCard-V_tv6YLR-pIKKLA9H.js → ReloadCard-V_tv6YLR-DqFWQtu8.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CWEvGn8L-CcECbGsj.js → ReportTableViewSelector-CWEvGn8L-BJ8v1swV.js} +1 -1
- package/dist/assets/{ReportsPage-BJOH1wgv-CXqYsJPZ.js → ReportsPage-BJOH1wgv-BsrwNJ-k.js} +1 -1
- package/dist/assets/{RevenueChart-C_tSBw_N-Cwj-E2UP.js → RevenueChart-C_tSBw_N-mvbUBlrr.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CScPf4w3-Cz00WVXv.js → ReviewDetailsPage-CScPf4w3-Ctziy86b.js} +1 -1
- package/dist/assets/{ReviewOverlay-BQVwPzKa-BxRw_iSk.js → ReviewOverlay-BQVwPzKa-4F5TS8uf.js} +1 -1
- package/dist/assets/{RoleWithToolTip-GCV_l8Ly-GZKD9YbI.js → RoleWithToolTip-GCV_l8Ly-C91LsT_P.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cgqgn7nk-B00K9FnO.js → ScheduleDetailsFixedAssetsPage-Cgqgn7nk-BjZWT_sw.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-D1EJbzxN-l7ivTR2t.js → ScheduleDetailsPage-D1EJbzxN-tEZm6Ypr.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DDhoyPGX-CcxwU9B1.js → ScheduleSequenceTable-DDhoyPGX-DiqXc1Uz.js} +1 -1
- package/dist/assets/{ScreenRoutes-CbhRMGYb.js → ScreenRoutes-D8bPqH59.js} +1 -1
- package/dist/assets/{SetUpAccountSection-AVL_16HQ-CfJdXpM8.js → SetUpAccountSection-AVL_16HQ-BbYtft6_.js} +1 -1
- package/dist/assets/{SignIn-BLUwTp1l-Diu2Dl0P.js → SignIn-BLUwTp1l-DB5kyM9Q.js} +1 -1
- package/dist/assets/{SignInScreen-BAFcpgXM.js → SignInScreen-UMW9hVBZ.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DJbNFHvP-HVPQNsga.js → SpendManagementListViewPage-DJbNFHvP-zzqCy8fW.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-J5pIRm-Q-zn5Z_C9i.js → SpendManagementPerTabPage-J5pIRm-Q-BAHyEiz9.js} +1 -1
- package/dist/assets/{SpendManagementSection-DZaP5ai6-BivazJAu.js → SpendManagementSection-DZaP5ai6-DqwZ8uTy.js} +1 -1
- package/dist/assets/{StatementItem-D2Fx65LN-DEt1HHDA.js → StatementItem-D2Fx65LN-itwCNL7r.js} +1 -1
- package/dist/assets/{StatementsPage-BCh51lDW-DEzdN4yP.js → StatementsPage-BCh51lDW-BCn67G2d.js} +1 -1
- package/dist/assets/{StatusSwitcher-C5ZrzI8Y-RGx-Rq5m.js → StatusSwitcher-C5ZrzI8Y-Bh2yMPTS.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BXZxKeq9-N3T4zPQn.js → SubTabSwitcher-BXZxKeq9-CG8W65SL.js} +1 -1
- package/dist/assets/{SummaryCard-194UToy6-ZSyhRMcE.js → SummaryCard-194UToy6-BSV06CcW.js} +1 -1
- package/dist/assets/{TaskManagementPage-zcxDUo0t-CfkgE02v.js → TaskManagementPage-zcxDUo0t-D96gR07A.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-Bsv7zQmN-0uKzxEGk.js → TimeRangeSwitcher-Bsv7zQmN-B2ABAd6E.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-DtxsNy1Z-Dpwd2ynA.js → TimeframeSwitcher-DtxsNy1Z-biWVJ5xe.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-B5bFhbvL-C0I_F7ow.js → TimeframeSwitcherWithToggle-B5bFhbvL-CMKwEo3M.js} +1 -1
- package/dist/assets/{TopExCard-CBua66Cj-CBuXuQOS.js → TopExCard-CBua66Cj-CLdeyiEj.js} +1 -1
- package/dist/assets/{TopExDetailPage-DtMA-XMp-EMAyiYoo.js → TopExDetailPage-DtMA-XMp-eQWNkFxw.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-C3BPL8hi-rjH_p-06.js → TransactionActivityLogPage-C3BPL8hi-cf_AJXhm.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CeKaduBe-gc3Brzcv.js → TransactionDetailPage-CeKaduBe-CDZ2fkiy.js} +1 -1
- package/dist/assets/{TransactionList-CSx8ZCZ--BfPEmkgj.js → TransactionList-CSx8ZCZ--d2IrBP0a.js} +1 -1
- package/dist/assets/{TransactionListBig-B4cNQY2d-xUQ7gipo.js → TransactionListBig-B4cNQY2d-DsSMgpDJ.js} +1 -1
- package/dist/assets/{TransactionListPage-DHr64V-b-DDnZn40X.js → TransactionListPage-DHr64V-b-Dv4ZTiv4.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-DsxI8U5b-BIfZV2Ct.js → TransactionVendorDetailPage-DsxI8U5b-ndv151CC.js} +1 -1
- package/dist/assets/{TransferDrawerPage-C91TQwZi-B3ongtBQ.js → TransferDrawerPage-C91TQwZi-DG70uoUO.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-BoBn_gtF-1-z_98qx.js → TreasuryOverviewPage-BoBn_gtF-DRCeca-k.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-CQ-VYEQC-DBZ3Ca-z.js → TreasuryPromoPage-CQ-VYEQC-B8CYyPsQ.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-taTRE54D-s03VARjq.js → TreasuryStatementsPage-taTRE54D-C6eZxSm6.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-Cxhr51TD-DSRIuJm4.js → TreasuryTaxLetterPage-Cxhr51TD-XbjcHfk-.js} +1 -1
- package/dist/assets/{TrendChart-DATgAEKG-BGhvWXdf.js → TrendChart-DATgAEKG-Djx4U96K.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DqPFuOvC-Bu3TdK3s.js → TrendWithTransactions-DqPFuOvC-x4Algl45.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-BQjXazj4-BOpLaunW.js → UncategorizedAccountsMappingPage-BQjXazj4-Dqjd8HUK.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-BiRGRtpI-DxaSFD1H.js → UnitIntegrationPage-BiRGRtpI-CH_KjQo0.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DCldWCol-B3iVz4fI.js → UploadAdditionalDocumentOverlay-DCldWCol-52j80irm.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BpkAiYTA-99TJd7nU.js → Vendor2FAPopup-BpkAiYTA-EdR_K2lH.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-tUuZzJnN-BFUuaQ6q.js → VendorACHDetailsPage-tUuZzJnN-Ber2jwRD.js} +1 -1
- package/dist/assets/{VendorDetailPage-DY4iaLtz-AjIptjjy.js → VendorDetailPage-DY4iaLtz-qkdhxNgo.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-B5Nym5J9-CpOxRXxZ.js → VendorDomesticWireDetailsPage-B5Nym5J9-CNysSCSa.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Dep7O8Uz-Do-rxCWR.js → VendorFiling1099EditablePage-Dep7O8Uz-40wzCsHS.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CJQIZn8g-DkET_08K.js → VendorFirstReviewPage-CJQIZn8g-BnRcRr5L.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CJG5RIa2-DsTS-Uh9.js → VendorInternationalWireDetailsPage-CJG5RIa2-CMGp5yLv.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DZabfieM-a851bv0Y.js → VendorInternationalWireSwiftDetailsPage-DZabfieM-CzR_dRp5.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D65ewlO6-DU6ZIrZA.js → VendorsAccountsSection-D65ewlO6-CXkQj_-N.js} +1 -1
- package/dist/assets/{VerifyDevice-B1_jgwgY-DAz-KAtd.js → VerifyDevice-B1_jgwgY-Bn121ir_.js} +1 -1
- package/dist/assets/{VideoPlayer-vWSXteQ6-D5qS5__p.js → VideoPlayer-vWSXteQ6-Bhqtm51R.js} +1 -1
- package/dist/assets/{VideoPopup-CdsmU6H4-Du7UVtqu.js → VideoPopup-CdsmU6H4-CKubgiHN.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CjgOsD00-Denf4Sio.js → WarningsDrawerPage-CjgOsD00-DPo9HOu3.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-DiLnoonB-DZ1tpmUL.js → ZeniAccountDetailPage-DiLnoonB-Dt3FIT6q.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-YfPsO8ls-CfUQiafE.js → ZeniAccountListViewPage-YfPsO8ls-BVnH_XmJ.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CHStBvRa-5ll2dkEQ.js → ZeniAccountNavBarPieces-CHStBvRa-mP-Dj2Rz.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-cEfW88p8-BvUDgJZp.js → ZeniAccountPromoPage-cEfW88p8-DvvQgJIb.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-B20DHYex-DsTq1nG1.js → ZeniAccountSetupPage-B20DHYex-B3wsvhel.js} +1 -1
- package/dist/assets/{ZeniCopyright-BROHmszx-VivYqHvz.js → ZeniCopyright-BROHmszx-0R55d0Il.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DZZrrFXf-DAQs85Xb.js → ZeniTransferAmountSlider-DZZrrFXf-Dokv6rUo.js} +1 -1
- package/dist/assets/{analyticsHelper-FJ-cS8qS-Bs47KEMI.js → analyticsHelper-FJ-cS8qS-eGTXz9ur.js} +1 -1
- package/dist/assets/{analyticsHelper-CeC4SQzK.js → analyticsHelper-nIT7pIRZ.js} +1 -1
- package/dist/assets/{chartTypes-DJdbX13L-BnqLcj4-.js → chartTypes-DJdbX13L-CrV_XhuE.js} +1 -1
- package/dist/assets/{commonDimensions-BpYNnQtf-BVrF2eSg.js → commonDimensions-BpYNnQtf-BrWIfeCb.js} +1 -1
- package/dist/assets/{commonTypes-BVbA7QjV-rrrVgiRE.js → commonTypes-BVbA7QjV-Ym_NCrQO.js} +1 -1
- package/dist/assets/{detailCommon-BRja9H93-BgDpKJS8.js → detailCommon-BRja9H93-B06H9tRW.js} +1 -1
- package/dist/assets/{downloadPdf-WDHjFv79-x1y7Noz9.js → downloadPdf-WDHjFv79-pPdvILQx.js} +1 -1
- package/dist/assets/{index-CNJQ6T57.js → index-BsnL7ZTX.js} +5 -5
- package/dist/assets/{mapLoadingInProgressToTreeNode-C_5Bb47i-KSj20Sfu.js → mapLoadingInProgressToTreeNode-C_5Bb47i-BB5tvKPX.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BlrJTKah-BOJoZ8nO.js → mapSectionWithAcOnlyToTreeNode-BlrJTKah-CAIHDBtK.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DvdWKHfX-D62umWzQ.js → mapSpacerToTreeNode-DvdWKHfX-CpssydBI.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-88qIN3FA-CB8prKZU.js → mapTimeframeBalancesToTreeNode-88qIN3FA-COjHTdZT.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-AkxvYRty-Dd11welj.js → mapTimeframeBalancesToTreeNode-AkxvYRty-CiDsqvCZ.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-BEBQ7_uD.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-CKS-2PqY.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-Bq4Xe7az-D4N9dB70.js → toCOABalancesWithID-Bq4Xe7az-BxQaUEv2.js} +1 -1
- package/dist/assets/{toChartData-B3ouXKAd-thMI2fiV.js → toChartData-B3ouXKAd-D6dTQxs5.js} +1 -1
- package/dist/assets/{uploadAttachment-DNNG-CMy-D87O59Xy.js → uploadAttachment-DNNG-CMy-BbELmBL6.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-C_Z21T_D.js → uploadReceipts-Dge0cNF1-CyA0lW2P.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-eR0yY2uX-CZ-wHAQI.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as W,u as L,d as M,J as G,F as U,a9 as J,aQ as Q,aJ as X,cF as H,V as r,bC as K,ac as Y,aR as Z,o as b,g9 as ee}from"./index-
|
|
1
|
+
import{y as W,u as L,d as M,J as G,F as U,a9 as J,aQ as Q,aJ as X,cF as H,V as r,bC as K,ac as Y,aR as Z,o as b,g9 as ee}from"./index-BsnL7ZTX.js";import{a as $}from"./sentry-9b1mvxJ5.js";import{n as c}from"./mui-DsjrNjDe.js";import{b as ae,f as te,o as B,l as C}from"./FollowStepsSection-BrpI2HyW-XxzZFZcC.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./zeni-epic-state-DJX8u9R8.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.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]="6923814d-eccc-43da-ab35-e6d619291906",e._sentryDebugIdIdentifier="sentry-dbid-6923814d-eccc-43da-ab35-e6d619291906")}catch{}})();const T="reimbursementApprovalRuleDetailPage",k="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const F=M(),S=G(),l=U.getLocalizedStrings().commonSetUp.approval,w=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=J({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=Q(u?.fetchState),{upperBound:P}=x,{allApprovalRules:i,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=i.length>1?i.length-1:0,v=i.length>0?i[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=i.findIndex(d=>d.approvalRuleId===n),v=f>0?i[f-1].criteria[0].range.min.amount:0}const z=y.handleSubmit(()=>{N()}),q=async(n,d)=>{g(d)};return $.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=X(d);H(()=>q(D,O))}});return()=>{n.unsubscribe()}}),$.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&A()},[R,u?.fetchState,A]),r.jsxs(ie,{children:[r.jsx(K,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:_(T),onSubmit:z,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?w.amountPerRemiGreaterLabel:w.amountPerRemiLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:I,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[I],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(T),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"&&i.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:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),B(e.allAttributes),B(e.filteredAttributes),o??[])??[],[k]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:C},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:C},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),_=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as F,J as N,F as j,V as t,bC as G,T as O,aP as m,o,y as r,al as M,aN as P,bT as T,cp as V,cq as q,cr as J,c$ as K,u as l,b9 as Q,O as k,b8 as X,p as z,c_ as Y,bt as Z,b as ee}from"./index-
|
|
1
|
+
import{d as F,J as N,F as j,V as t,bC as G,T as O,aP as m,o,y as r,al as M,aN as P,bT as T,cp as V,cq as q,cr as J,c$ as K,u as l,b9 as Q,O as k,b8 as X,p as z,c_ as Y,bt as Z,b as ee}from"./index-BsnL7ZTX.js";import{n as i}from"./mui-DsjrNjDe.js";import{a as te}from"./sentry-9b1mvxJ5.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./zeni-epic-state-DJX8u9R8.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.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]="2ab27a3d-a14a-43da-aa78-2a61ae6c2d5d",e._sentryDebugIdIdentifier="sentry-dbid-2ab27a3d-a14a-43da-aa78-2a61ae6c2d5d")}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)},U={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,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},d.userId))]},H))})}),g?t.jsx(V,{titleComponent:t.jsx(J,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{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{aw as Mt,a8 as Rt,J as Pt,d as Bt,cd as Nt,y as m,F as et,gk as Lt,gm as _t,gn as Ot,V as t,cp as Ae,cq as Me,cr as Re,bC as Pe,aP as y,bo as Wt,dv as Et,go as Ft,gz as Be,o as a,gp as Ne,fk as b,gs as w,fn as x,aN as Le,fj as _e,b as V,gu as Oe,aR as Kt,ao as Ut,gv as Vt,gw as re,bx as Gt,gx as Ht,x as Yt,O as Jt,a as qt,al as tt,b9 as it,p as G,am as Zt,bV as Xt,ai as Qt,gR as ei,gN as ti,u as c,ci as ii,cZ as ai}from"./index-CNJQ6T57.js";import{a as p}from"./sentry-9b1mvxJ5.js";import{n as r}from"./mui-DsjrNjDe.js";import{a as ri}from"./liveblocks-CUDrE-0X.js";import{bL as oi,bP as ni,FL as li}from"./zeni-epic-state-DJX8u9R8.js";import si from"./InvoiceUploadSection-BO1i-e_D-S9qpWOlw.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-Be77t6wT.js";import"./lottie-C5G-hUN3.js";import"./recharts-CmZa-egc.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.js";import"./AttachmentView-Bsa0u92o-BEQFOxXv.js";import"./uploadReceipts-Dge0cNF1-C_Z21T_D.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]="b5c43f2f-9ec8-4aa1-a216-508519abeaf5",e._sentryDebugIdIdentifier="sentry-dbid-b5c43f2f-9ec8-4aa1-a216-508519abeaf5")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new Jt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,J]=p.useState(!1),[ct,q]=p.useState(!1),[Z,X]=p.useState("approved"),N=p.useRef(null),[j,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),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=>{q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{q(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(X("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(X("delete"),Ie()):(X("rejected"),q(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children: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(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Je,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,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:C,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(Je,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children: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(Ze,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&J(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="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:Z==="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:()=>J(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&Ct===!0?t.jsx(Si,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>J(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
1
|
+
import{aw as Mt,a8 as Rt,J as Pt,d as Bt,cd as Nt,y as m,F as et,gk as Lt,gm as _t,gn as Ot,V as t,cp as Ae,cq as Me,cr as Re,bC as Pe,aP as y,bo as Wt,dv as Et,go as Ft,gz as Be,o as a,gp as Ne,fk as b,gs as w,fn as x,aN as Le,fj as _e,b as V,gu as Oe,aR as Kt,ao as Ut,gv as Vt,gw as re,bx as Gt,gx as Ht,x as Yt,O as Jt,a as qt,al as tt,b9 as it,p as G,am as Zt,bV as Xt,ai as Qt,gR as ei,gN as ti,u as c,ci as ii,cZ as ai}from"./index-BsnL7ZTX.js";import{a as p}from"./sentry-9b1mvxJ5.js";import{n as r}from"./mui-DsjrNjDe.js";import{a as ri}from"./liveblocks-CUDrE-0X.js";import{bL as oi,bP as ni,FL as li}from"./zeni-epic-state-DJX8u9R8.js";import si from"./InvoiceUploadSection-BO1i-e_D-DgD0BWyr.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-Be77t6wT.js";import"./lottie-C5G-hUN3.js";import"./recharts-CmZa-egc.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.js";import"./AttachmentView-Bsa0u92o-CjvOotrN.js";import"./uploadReceipts-Dge0cNF1-CyA0lW2P.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]="b5c43f2f-9ec8-4aa1-a216-508519abeaf5",e._sentryDebugIdIdentifier="sentry-dbid-b5c43f2f-9ec8-4aa1-a216-508519abeaf5")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new Jt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,J]=p.useState(!1),[ct,q]=p.useState(!1),[Z,X]=p.useState("approved"),N=p.useRef(null),[j,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),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=>{q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{q(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(X("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(X("delete"),Ie()):(X("rejected"),q(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children: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(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Je,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,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:C,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(Je,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children: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(Ze,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&J(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="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:Z==="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:()=>J(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&Ct===!0?t.jsx(Si,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>J(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as ne,d as S,J as k,aQ as le,V as e,aP as a,fv as ae,bC as de,r as u,ae as d,F,o as r,aq as me,R as ce,aT as E,am as pe,y as xe,p as z,cE as he,aU as ue,ba as ge,u as we}from"./index-
|
|
1
|
+
import{aw as ne,d as S,J as k,aQ as le,V as e,aP as a,fv as ae,bC as de,r as u,ae as d,F,o as r,aq as me,R as ce,aT as E,am as pe,y as xe,p as z,cE as he,aU as ue,ba as ge,u as we}from"./index-BsnL7ZTX.js";import{a as j}from"./sentry-9b1mvxJ5.js";import{n as s}from"./mui-DsjrNjDe.js";import{FK as je,bT as fe}from"./zeni-epic-state-DJX8u9R8.js";import{C as be}from"./VideoPopup-CdsmU6H4-CKubgiHN.js";import{M as v}from"./usp-line-BBd1wKwW-5m5uF-Rf.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.js";import"./VideoPlayer-vWSXteQ6-Bhqtm51R.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]="3f16819f-6a2a-4e9b-9e00-721fff744247",i._sentryDebugIdIdentifier="sentry-dbid-3f16819f-6a2a-4e9b-9e00-721fff744247")}catch{}})();const V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Ee,J as Te,aQ as N,a9 as Je,cF as Ge,F as Ie,aV as Se,V as t,fd as qe,p as q,y as s,bC as Ze,T as Qe,ac as Ye,fw as ve,dQ as Xe,fx as Ke,bw as et,dG as tt,aR as it,o as a,fz as nt,u as n,ci as ot,cJ as at,ev as lt,fI as ke,fJ as $e,gj as st,r as rt,aP as Pe,O as Ae,bM as dt,ai as ct,bt as ut}from"./index-
|
|
1
|
+
import{d as Ee,J as Te,aQ as N,a9 as Je,cF as Ge,F as Ie,aV as Se,V as t,fd as qe,p as q,y as s,bC as Ze,T as Qe,ac as Ye,fw as ve,dQ as Xe,fx as Ke,bw as et,dG as tt,aR as it,o as a,fz as nt,u as n,ci as ot,cJ as at,ev as lt,fI as ke,fJ as $e,gj as st,r as rt,aP as Pe,O as Ae,bM as dt,ai as ct,bt as ut}from"./index-BsnL7ZTX.js";import{a as o}from"./sentry-9b1mvxJ5.js";import{n as i}from"./mui-DsjrNjDe.js";import{bJ as mt}from"./zeni-epic-state-DJX8u9R8.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DCldWCol-52j80irm.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.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]="7953e794-a89b-4de7-b79b-d40a84da6256",e._sentryDebugIdIdentifier="sentry-dbid-7953e794-a89b-4de7-b79b-d40a84da6256")}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=Te(),D=Ee(),{formState:{errors:Q},trigger:Y}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:d,updateStatus:F,mileageStatus:b}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:K}=Ie.getLocalizedStrings(),{reimbursement:ee}=K,[C,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=C===!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(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(Ct,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(St,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:C||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:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:C?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:I=>{I.stopPropagation(),T(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(It,{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"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as b,cp as V,cq as M,cr as q,kd as W,aY as Y,F as z}from"./index-
|
|
1
|
+
import{V as b,cp as V,cq as M,cr as q,kd as W,aY as Y,F as z}from"./index-BsnL7ZTX.js";import{a as f}from"./sentry-9b1mvxJ5.js";import{Gi as G}from"./zeni-epic-state-DJX8u9R8.js";import{u as J}from"./ReviewOverlay-BQVwPzKa-4F5TS8uf.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./mui-DsjrNjDe.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.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]="e32788b7-fb65-4d4d-a863-f0bb6bd1d88c",e._sentryDebugIdIdentifier="sentry-dbid-e32788b7-fb65-4d4d-a863-f0bb6bd1d88c")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=z.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[S,l]=f.useState(!1),[d,_]=f.useState(P(e,v,o)),[h,R]=f.useState(v),[B,Z]=f.useState(0),[w,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,x=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=K(x);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,G(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=X(p,x,D,h),T=e.fetchState==="Completed"&&x===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},N=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[S?b.jsx(V,{titleComponent:b.jsx(q,{children:w.title}),descriptionComponent:b.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(J,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&x===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:Y("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},K=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},X=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,S=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",S?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as l,V as r,aM as a,b2 as x,F as y,aP as m,aS as h,bE as f,ai as g,o as c,b3 as w}from"./index-
|
|
1
|
+
import{d as l,V as r,aM as a,b2 as x,F as y,aP as m,aS as h,bE as f,ai as g,o as c,b3 as w}from"./index-BsnL7ZTX.js";import{n as d}from"./mui-DsjrNjDe.js";import{a as s}from"./sentry-9b1mvxJ5.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]="a7fd93d3-b07f-48fb-a37f-07565687964f",e._sentryDebugIdIdentifier="sentry-dbid-a7fd93d3-b07f-48fb-a37f-07565687964f")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(f,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(f,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=d(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ee,J as de,cd as be,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as P,aR as $e,o as n,F as oe,cf as ve,cg as ke,ch as Ce,ci as je,cj as Ie,am as he,ck as Se,ai as Ne,aD as X,bE as Pe,u as f,aV as De,al as Oe,at as Fe}from"./index-
|
|
1
|
+
import{d as ee,J as de,cd as be,a9 as ye,V as o,ao as _e,ce as te,ac as we,y as P,aR as $e,o as n,F as oe,cf as ve,cg as ke,ch as Ce,ci as je,cj as Ie,am as he,ck as Se,ai as Ne,aD as X,bE as Pe,u as f,aV as De,al as Oe,at as Fe}from"./index-BsnL7ZTX.js";import{a as u,P as ue}from"./sentry-9b1mvxJ5.js";import{n as d}from"./mui-DsjrNjDe.js";import{R as D,I as Te}from"./CollapsableReportTable-UADp1m_8-mWjI_leU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="72261ef1-fcd7-431d-8577-6ac4a9de107e",e._sentryDebugIdIdentifier="sentry-dbid-72261ef1-fcd7-431d-8577-6ac4a9de107e")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ee=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ae(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ee(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ae(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,d as G,F as y,aw as ge,V as r,bO as _e,aP as P,bD as be,bC as Se,o as w,aT as we,T as ye,y as B,bP as Ce,u as S,C as A,aD as K,U as xe,aV as Oe,as as Re,bL as Ae}from"./index-CNJQ6T57.js";import{a as T,P as X}from"./sentry-9b1mvxJ5.js";import{n as _}from"./mui-DsjrNjDe.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Te,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-DJX8u9R8.js";import{m as z,l as q}from"./analyticsHelper-FJ-cS8qS-Bs47KEMI.js";import{x as Ne}from"./ReportTableViewSelector-CWEvGn8L-CcECbGsj.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-Bsv7zQmN-0uKzxEGk.js";import{M as Me}from"./TimeframeSwitcherWithToggle-B5bFhbvL-C0I_F7ow.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-Dt9yt4Fz-OGiiWSIN.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-UADp1m_8-C887iUXZ.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BlrJTKah-BOJoZ8nO.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-88qIN3FA-CB8prKZU.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-BEBQ7_uD.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-C_5Bb47i-KSj20Sfu.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.js";import"./TimeframeSwitcher-DtxsNy1Z-Dpwd2ynA.js";import"./page-detail-CWX5S47F--SwzhZlk.js";import"./AccountRow-Bk_25FCy-D03inSab.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]="19a1fe88-85c6-4ac9-ba5e-1ac77da58b14",e._sentryDebugIdIdentifier="sentry-dbid-19a1fe88-85c6-4ac9-ba5e-1ac77da58b14")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
1
|
+
import{J as W,d as G,F as y,aw as ge,V as r,bO as _e,aP as P,bD as be,bC as Se,o as w,aT as we,T as ye,y as B,bP as Ce,u as S,C as A,aD as K,U as xe,aV as Oe,as as Re,bL as Ae}from"./index-BsnL7ZTX.js";import{a as T,P as X}from"./sentry-9b1mvxJ5.js";import{n as _}from"./mui-DsjrNjDe.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Te,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-DJX8u9R8.js";import{m as z,l as q}from"./analyticsHelper-FJ-cS8qS-eGTXz9ur.js";import{x as Ne}from"./ReportTableViewSelector-CWEvGn8L-BJ8v1swV.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-Bsv7zQmN-B2ABAd6E.js";import{M as Me}from"./TimeframeSwitcherWithToggle-B5bFhbvL-CMKwEo3M.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-Dt9yt4Fz-CIXLzBI9.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-UADp1m_8-mWjI_leU.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BlrJTKah-CAIHDBtK.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-88qIN3FA-COjHTdZT.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-CKS-2PqY.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-C_5Bb47i-BB5tvKPX.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.js";import"./TimeframeSwitcher-DtxsNy1Z-biWVJ5xe.js";import"./page-detail-CWX5S47F--SwzhZlk.js";import"./AccountRow-Bk_25FCy-C16qMB4Z.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]="19a1fe88-85c6-4ac9-ba5e-1ac77da58b14",e._sentryDebugIdIdentifier="sentry-dbid-19a1fe88-85c6-4ac9-ba5e-1ac77da58b14")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bM as ge,al as R,bN as V,ba as F}from"./index-
|
|
1
|
+
import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bM as ge,al as R,bN as V,ba as F}from"./index-BsnL7ZTX.js";import{a as P,P as ee}from"./sentry-9b1mvxJ5.js";import{n as x}from"./mui-DsjrNjDe.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-DJdbX13L-CrV_XhuE.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-Bq4Xe7az-BxQaUEv2.js";import{V as Q}from"./toChartData-B3ouXKAd-D6dTQxs5.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-CmZa-egc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="175bda3c-acb1-461b-bc96-237f81152ca8",e._sentryDebugIdIdentifier="sentry-dbid-175bda3c-acb1-461b-bc96-237f81152ca8")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Tt,aw as Ct,y as u,f6 as Dt,f7 as It,f8 as Pt,V as t,f9 as kt,fa as le,fb as At,fc as Mt,fd as Bt,fe as Ft,aN as A,ff as Rt,aP as j,fg as Lt,fh as Me,fi as Be,fj as Fe,b as H,fk as O,p as S,fl as zt,fm as E,fn as W,fo as Nt,fp as Ot,bT as Re,o as n,aR as Et,u as s,F as Wt,ag as _t,c2 as Vt,O as Zt,a as Yt,fq as Gt,ci as qt,al as se,am as ce,fr as Ht,fs as Kt,bi as Ut,c as Xt,b9 as Jt,ft as Qt,aq as et,bK as en,ai as tt,bt as tn,fu as nn}from"./index-CNJQ6T57.js";import{a as V}from"./sentry-9b1mvxJ5.js";import{n as i}from"./mui-DsjrNjDe.js";import{bo as Le,bm as ze,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-DJX8u9R8.js";import{t as rn,o as dn}from"./LowBalancePopup-BPk1-eAb-DPKxi1xa.js";import{S as _}from"./LabeledText-38fqkkE--BV0pTSSz.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="5715d0d6-c48d-4e1d-bd66-3a822b5cfc36",e._sentryDebugIdIdentifier="sentry-dbid-5715d0d6-c48d-4e1d-bd66-3a822b5cfc36")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Zt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,f]=V.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=V.useState(!1),[mt,xe]=V.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&Z?.code?Z:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&Z?.code?Z:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,G,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&q(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,q]=V.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{q(!1),ne()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Zn,{children:nt.includes(d)?t.jsxs(Ge,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Xe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ge,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Xe,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(qe,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(qe,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ze,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ze,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ve(!1,k,b,G,d)}},primaryBtn:{label:_e(b,G,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?q(!0):Se()},style:{width:Ve(!0,k,b,G,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ve=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
|
|
1
|
+
import{J as Tt,aw as Ct,y as u,f6 as Dt,f7 as It,f8 as Pt,V as t,f9 as kt,fa as le,fb as At,fc as Mt,fd as Bt,fe as Ft,aN as A,ff as Rt,aP as j,fg as Lt,fh as Me,fi as Be,fj as Fe,b as H,fk as O,p as S,fl as zt,fm as E,fn as W,fo as Nt,fp as Ot,bT as Re,o as n,aR as Et,u as s,F as Wt,ag as _t,c2 as Vt,O as Zt,a as Yt,fq as Gt,ci as qt,al as se,am as ce,fr as Ht,fs as Kt,bi as Ut,c as Xt,b9 as Jt,ft as Qt,aq as et,bK as en,ai as tt,bt as tn,fu as nn}from"./index-BsnL7ZTX.js";import{a as V}from"./sentry-9b1mvxJ5.js";import{n as i}from"./mui-DsjrNjDe.js";import{bo as Le,bm as ze,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-DJX8u9R8.js";import{t as rn,o as dn}from"./LowBalancePopup-BPk1-eAb-B6NttzQA.js";import{S as _}from"./LabeledText-38fqkkE--CWSGVUzZ.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="5715d0d6-c48d-4e1d-bd66-3a822b5cfc36",e._sentryDebugIdIdentifier="sentry-dbid-5715d0d6-c48d-4e1d-bd66-3a822b5cfc36")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Zt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,f]=V.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=V.useState(!1),[mt,xe]=V.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&Z?.code?Z:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&Z?.code?Z:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,G,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&q(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,q]=V.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{q(!1),ne()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Zn,{children:nt.includes(d)?t.jsxs(Ge,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Xe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ge,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Xe,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(qe,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(qe,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ze,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ze,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ve(!1,k,b,G,d)}},primaryBtn:{label:_e(b,G,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?q(!0):Se()},style:{width:Ve(!0,k,b,G,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ve=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-BQVwPzKa-BxRw_iSk.js → ReviewOverlay-BQVwPzKa-4F5TS8uf.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,al as j,cC as I,T as W,ai as b,bh as R,u as n,em as G,h as _,i$ as J,kc as O}from"./index-
|
|
1
|
+
import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,al as j,cC as I,T as W,ai as b,bh as R,u as n,em as G,h as _,i$ as J,kc as O}from"./index-BsnL7ZTX.js";import{n as t}from"./mui-DsjrNjDe.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="b33e3df9-894b-4e63-9ddc-d0d3d8e9c375",e._sentryDebugIdIdentifier="sentry-dbid-b33e3df9-894b-4e63-9ddc-d0d3d8e9c375")}catch{}})();const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return i.jsxs(V,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:l,children:[i.jsxs(Z,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:F(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(W,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),V=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-GCV_l8Ly-GZKD9YbI.js → RoleWithToolTip-GCV_l8Ly-C91LsT_P.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eR as f,eS as h,V as s,bT as g,o,aP as l,F as x,an as y,ai as c}from"./index-
|
|
1
|
+
import{eR as f,eS as h,V as s,bT as g,o,aP as l,F as x,an as y,ai as c}from"./index-BsnL7ZTX.js";import{n}from"./mui-DsjrNjDe.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]="a0b32cac-f82a-4f55-80b5-24e9040de739",e._sentryDebugIdIdentifier="sentry-dbid-a0b32cac-f82a-4f55-80b5-24e9040de739")}catch{}})();const{hyphen:i}=x.getLocalizedStrings().common.strings,b=n.div``,m=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aQ as G,ir as te,gK as me,eD as Je,is as Me,a9 as _e,it as Ve,cF as Pe,cG as Fe,V as a,ac as Ne,cp as Re,cq as qe,cr as Be,aR as ze,iu as We,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cJ as Ke,J as Ge,iL as He,gP as ue,u as B,p as De,y as ye,cK as Ye,iy as Ze,iz as Qe,iA as Xe,o as V}from"./index-
|
|
1
|
+
import{aQ as G,ir as te,gK as me,eD as Je,is as Me,a9 as _e,it as Ve,cF as Pe,cG as Fe,V as a,ac as Ne,cp as Re,cq as qe,cr as Be,aR as ze,iu as We,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cJ as Ke,J as Ge,iL as He,gP as ue,u as B,p as De,y as ye,cK as Ye,iy as Ze,iz as Qe,iA as Xe,o as V}from"./index-BsnL7ZTX.js";import{a as f}from"./sentry-9b1mvxJ5.js";import{n as W}from"./mui-DsjrNjDe.js";import{G2 as et,G3 as tt}from"./zeni-epic-state-DJX8u9R8.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-DDhoyPGX-DiqXc1Uz.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="b12a7a43-767f-4e22-bc90-92ca21304830",e._sentryDebugIdIdentifier="sentry-dbid-b12a7a43-767f-4e22-bc90-92ca21304830")}catch{}})();const z={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=W.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aQ as F,ir as X,gK as Ie,eD as Je,is as we,a9 as Le,it as Me,cF as Ve,cG as Pe,V as a,ac as _e,cp as Fe,cq as $e,cr as Be,aR as Ne,iu as ze,iv as Re,F as De,aa as re,iw as pe,ix as Ue,cJ as We,J as qe,gP as me,u as Z,p as Ke,y as Ge,iy as He,iz as Ye,iA as Qe,o as w}from"./index-
|
|
1
|
+
import{aQ as F,ir as X,gK as Ie,eD as Je,is as we,a9 as Le,it as Me,cF as Ve,cG as Pe,V as a,ac as _e,cp as Fe,cq as $e,cr as Be,aR as Ne,iu as ze,iv as Re,F as De,aa as re,iw as pe,ix as Ue,cJ as We,J as qe,gP as me,u as Z,p as Ke,y as Ge,iy as He,iz as Ye,iA as Qe,o as w}from"./index-BsnL7ZTX.js";import{a as D}from"./sentry-9b1mvxJ5.js";import{n as P}from"./mui-DsjrNjDe.js";import{G2 as Xe,G3 as Ze,bL as et}from"./zeni-epic-state-DJX8u9R8.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-DDhoyPGX-DiqXc1Uz.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="b07d2b1a-e00c-4610-a5ac-b19bb5db00bc",e._sentryDebugIdIdentifier="sentry-dbid-b07d2b1a-e00c-4610-a5ac-b19bb5db00bc")}catch{}})();const z={labelWidth:new Ge(160,160,160)},nt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye,b as I,F as P,iE as we,iA as be,o as i,y as b,p as j,c as $e,aa as re,dN as je,cp as Se,cr as ke,cJ as Q,ev as ee,cO as ve,iF as K,iG as De,b3 as Ce,iH as Me,ct as ze,iI as Oe,u as h,al as O,b9 as Ee,cq as Le,ao as pe,eE as Ie,b1 as ne,eq as Ae,aR as Fe,iJ as F,gj as Ve,aN as Te,iK as Je,aV as Y,c$ as Be,bh as Re}from"./index-
|
|
1
|
+
import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye,b as I,F as P,iE as we,iA as be,o as i,y as b,p as j,c as $e,aa as re,dN as je,cp as Se,cr as ke,cJ as Q,ev as ee,cO as ve,iF as K,iG as De,b3 as Ce,iH as Me,ct as ze,iI as Oe,u as h,al as O,b9 as Ee,cq as Le,ao as pe,eE as Ie,b1 as ne,eq as Ae,aR as Fe,iJ as F,gj as Ve,aN as Te,iK as Je,aV as Y,c$ as Be,bh as Re}from"./index-BsnL7ZTX.js";import{n as o,c as B}from"./mui-DsjrNjDe.js";import{a as C}from"./sentry-9b1mvxJ5.js";import{bh as G,G4 as Pe}from"./zeni-epic-state-DJX8u9R8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="d830a6ac-76a1-468b-a3bf-8de5166f4b0d",e._sentryDebugIdIdentifier="sentry-dbid-d830a6ac-76a1-468b-a3bf-8de5166f4b0d")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=P.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ae,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Fe,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ye,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(q,{isSelected:r===e,onClick:()=>l(Pe(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,Ye=o.div`
|
|
4
4
|
display: flex;
|