@zeniai/web-cockpit-ui 1.15.7-dev → 1.15.7-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-CGG2Hx4v-BW7Ihkof.js → ACHDetailsPage-CGG2Hx4v-DcZR7_vn.js} +1 -1
- package/dist/assets/{AIPerformancePage-XDCygRgj-CEqrEuBs.js → AIPerformancePage-XDCygRgj-hdlgd13I.js} +1 -1
- package/dist/assets/{AccountInfoPage-CSf3J58F-DCyXpiFs.js → AccountInfoPage-CSf3J58F-BkcQo2mt.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-wjaeVokT-CiNOfJ02.js → AccountInfoPageContent-wjaeVokT-C-45Yg7h.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DJnj--uc-BJgnvrcM.js → AccountLockedInfoModal-DJnj--uc-Dq2NlQZ3.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-a2stjcsR-Ds8R_X-n.js → AccountReconDetailsDrawerPage-a2stjcsR-4rY26kUH.js} +1 -1
- package/dist/assets/{AccountRow-DlccmtgU-foUdbmvG.js → AccountRow-DlccmtgU-BQGGaNll.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BE0vjkiK-DEN0OmWn.js → AccountsPromoCardStack-BE0vjkiK-CeVEOdAj.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-D3mMFgO8-8PMwaa8Q.js → AddAddressForCardDrawer-D3mMFgO8-Cm7qhFhu.js} +1 -1
- package/dist/assets/{AddToWalletPage-6OCJaNcg-EoATwn7j.js → AddToWalletPage-6OCJaNcg-ITVcFac9.js} +1 -1
- package/dist/assets/{AgingReportsPage-hgg1L3pv-DEJ_mF4m.js → AgingReportsPage-hgg1L3pv-BhweCGFG.js} +1 -1
- package/dist/assets/{AllUserItems-BmNtc-69-BsLa0Y8T.js → AllUserItems-BmNtc-69-BUFmUH1X.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-DAZAnfcs-zxr1sXnX.js → ApAgingDetailPage-DAZAnfcs-Bp8rgAS8.js} +1 -1
- package/dist/assets/{AppBasePage-D7_krMlm-D-9wFTdh.js → AppBasePage-D7_krMlm-DcFcxR-x.js} +1 -1
- package/dist/assets/{AppDrawerContent-DWL57wUk-DZ6AAyNy.js → AppDrawerContent-DWL57wUk-CTYMDaFW.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-CiX2Xx3--YCvl1YZm.js → ApprovalRulesSettingsPage-CiX2Xx3--BZ5nuANR.js} +1 -1
- package/dist/assets/{ArAgingChart-CeaYIqlX-BUR2NiTJ.js → ArAgingChart-CeaYIqlX-B-c2fH7O.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-Is5kv2-P-CDH0tn0m.js → ArAgingDetailPage-Is5kv2-P-Idr08jfG.js} +1 -1
- package/dist/assets/{AttachmentView-BsNhULL3-C-ca695p.js → AttachmentView-BsNhULL3-7q0lWt8U.js} +1 -1
- package/dist/assets/{BankAccountSection-ZWR_hXjD-mYMACSQd.js → BankAccountSection-ZWR_hXjD-Bnv3FrfK.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-C-2eE9pL-BhkH4zkd.js → BankAccountWarningSection-C-2eE9pL-DKuXOLZK.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CjbaVbou-BNqlym9z.js → BankConnectionsSettingsPage-CjbaVbou-B57I3keE.js} +1 -1
- package/dist/assets/{BillDetailPage-B_zbQLLp-Dsf72rKA.js → BillDetailPage-B_zbQLLp-Cg57CSLM.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CtJLn_JO-BVtB6sJH.js → BillPayApprovalRuleDetailPage-CtJLn_JO-BTon9GOj.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-vvgGBmoM-C7iW15VO.js → BillPayApprovalRulesPage-vvgGBmoM-b8Z4iaIk.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DkyMRquU-6vAZUzNc.js → BillPayPromoPage-DkyMRquU-Dj-z2at-.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-m15SlV0c-C_W7-nyr.js → BillPaySetUpPage-m15SlV0c-BLNMmoS5.js} +1 -1
- package/dist/assets/{BillingSettingsPage-C4P_B31U-Dbv-0XdG.js → BillingSettingsPage-C4P_B31U-uL_oo_Zi.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-C_Nmv34F-s0EetHC0.js → BillsBulkReviewDrawerPage-C_Nmv34F-D_Z65MbK.js} +1 -1
- package/dist/assets/{BoxItem-Cmrt_yxF-Cr2cxrKm.js → BoxItem-Cmrt_yxF-BPyV6-KP.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Dr_YFkLN-5SYND8JY.js → BusinessVerificationPage-Dr_YFkLN-CsZ0tuPs.js} +1 -1
- package/dist/assets/{CardNumberSubText-B6Fprh6S-CEzRIr67.js → CardNumberSubText-B6Fprh6S-C6tOk0Lk.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CWExYaIT-BmImExjs.js → CashbackDetailPage-CWExYaIT-ITJ376x0.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-B3hr0WBI-X68NSBCl.js → ChargeCardDetailPage-B3hr0WBI-BIIArQci.js} +1 -1
- package/dist/assets/{ChargeCardListPage-g9gCfpoh-BTqPP-pZ.js → ChargeCardListPage-g9gCfpoh-C-F1Nwo-.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BoDSmzn_-CpSnyHh2.js → ChargeCardListTable-BoDSmzn_-2MCNPmJS.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-xs346JMC-CvFrTbeZ.js → ChargeCardPaymentHistoryPage-xs346JMC-C25t78nk.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DwiDNiRF-BfEfjZd3.js → ChargeCardPromoPage-DwiDNiRF-K0q5uz19.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-Dbz_GdRL-ClxdYJ_F.js → ChargeCardSetupPage-Dbz_GdRL-CRLc6gQA.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Da9NY51a-ChevXKmL.js → ChargeCardStatementsPage-Da9NY51a-DnJ8ojfJ.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-CcSRXOv7-DM7Ey8xT.js → CheckDepositDrawerPage-CcSRXOv7-Juu27Lw1.js} +1 -1
- package/dist/assets/{CollapsableReportTable-D1b80h2R-CMeyXG6i.js → CollapsableReportTable-D1b80h2R-LejvM9E0.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BMYQ8Qcq-vyiocP81.js → CompanyOfficerDetailsSection-BMYQ8Qcq-G5AT8Jma.js} +1 -1
- package/dist/assets/{CompanyPassportCard-vAocVa7X-Bg4vrJh5.js → CompanyPassportCard-vAocVa7X-sdVt02vr.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Dva5Le3j-D1jREPm8.js → CompanyPassportPage-Dva5Le3j-BF4TiZxy.js} +1 -1
- package/dist/assets/{CompleteProfile-B-Hhosch-DRCiMIXe.js → CompleteProfile-B-Hhosch-BRpwq9iK.js} +1 -1
- package/dist/assets/{ConfettiBurst-BV8M1GTR-DJjoIhlI.js → ConfettiBurst-BV8M1GTR-RAUhJD9L.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Bgc7zC_D-CfO9iUSb.js → CreateOrEditVendorPage-Bgc7zC_D-dZEyhQI1.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-Bs5RpFes-CgklXCqv.js → CreditCardPaymentDrawerPage-Bs5RpFes-DVEF4YEs.js} +1 -1
- package/dist/assets/{CurrencySelectField-BC9QkDwI-BEtmNe90.js → CurrencySelectField-BC9QkDwI-ZY801dGb.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Br4RFzGo-DgY7VWoB.js → CustomerOnboardingActivationPage-Br4RFzGo-B_c7W-9H.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BRs0LPZ0-BnerVEUo.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DLKJINnV-B2tg0XBT.js → CustomerOnboardingDetailPageSkeleton-DLKJINnV-CXBeq7hP.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CjvQ3PFZ-BN9B2AZm.js → CustomerOnboardingNoStepsPage-CjvQ3PFZ-cDT9ZkYW.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-3ECCqY1a-CL7QxZ3D.js → CustomerOnboardingPage-3ECCqY1a-DWQ8bB05.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-Dx3FU6Fe-CAm2edHR.js → CustomerOnboardingProductSuitePage-Dx3FU6Fe-Dxy6dCTd.js} +1 -1
- package/dist/assets/{Dashboard-EWWj1Uby-C8-SPpUF.js → Dashboard-EWWj1Uby-DMIEIziu.js} +1 -1
- package/dist/assets/{DashboardReportPage-D4kzdnvI-BKOw_sqx.js → DashboardReportPage-D4kzdnvI-CvIJlFA1.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BSwRgXFk-CJAI0MPE.js → DashboardSidebarBackgroundAnimation-BSwRgXFk-DALjbi7i.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-xvCtIj9v-7jCouOnq.js → DepositAccTransactionItem-xvCtIj9v-DBcHWpkM.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-B8UpFh_9-DlvHxyY3.js → DepositAccTransactionListPage-B8UpFh_9-BMyU0nvJ.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DF8bLeDL-Be0QfLbt.js → DomesticWireDetailsPage-DF8bLeDL-BFafDF0u.js} +1 -1
- package/dist/assets/{DownloadOverlay-wlAXZwF0-B68SEe8G.js → DownloadOverlay-wlAXZwF0-BNQRr8lI.js} +1 -1
- package/dist/assets/{DrawerPage-DroW95LB-DgRu7-up.js → DrawerPage-DroW95LB-CoKXHHeP.js} +1 -1
- package/dist/assets/{EditPeoplePage-CgUM9UYI-_7L-v32x.js → EditPeoplePage-CgUM9UYI-rgVohKoi.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BgcII79s-qEpt9Cs6.js → EditReimbursementDetailPage-BgcII79s-tce-zmrl.js} +1 -1
- package/dist/assets/{EntityDetailPage-ByHvXL2c-DbNraeh4.js → EntityDetailPage-ByHvXL2c-DSH894jm.js} +1 -1
- package/dist/assets/{EntitySummarySection-D6HekhK7-CEx8SebE.js → EntitySummarySection-D6HekhK7-BORleZVG.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-VN-P6f2z-D9XayAVC.js → ExpenseAutomationOverviewPage-VN-P6f2z-CDPrdyoh.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CvnkIuMf-BzVTKngy.js → ExpenseAutomationPage-CvnkIuMf-D25uWaSP.js} +1 -1
- package/dist/assets/{ExpressPayPage-C_yRTeDh-CXT1jZ8h.js → ExpressPayPage-C_yRTeDh-CM47LFVq.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BLRhajFn-BfH5LrVG.js → FeaturePreviewPage-BLRhajFn-fV76_z2K.js} +1 -1
- package/dist/assets/{FollowStepsSection-DhiGIylh-dcsWOGAc.js → FollowStepsSection-DhiGIylh-Bz6rK0A1.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-Tg986b2s-BcraUWMG.js → GlobalReviewListPage-Tg986b2s-BmDCouKN.js} +1 -1
- package/dist/assets/{InformationCardStack-3Lmn6LJr-BzzpUQZE.js → InformationCardStack-3Lmn6LJr-CdNUOhiA.js} +1 -1
- package/dist/assets/{InsightsCardStack-Dc6OL9Od-D89joaRU.js → InsightsCardStack-Dc6OL9Od-SZvJ5Nd2.js} +1 -1
- package/dist/assets/{InsightsSection-Drr3r1BL-BjPy8A4H.js → InsightsSection-Drr3r1BL-CjxdUNmP.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-DACHBlEm-DaFs14XG.js → IntegrationsSettingsPage-DACHBlEm-VDMgbIZU.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-BaqSqvWh-BwJgPcJE.js → InternationalWireSwiftDetailsPage-BaqSqvWh-D1C7B-D5.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-Daxni4YY-BKNsaA95.js → InternationalWireVerificationPage-Daxni4YY-yezw_UZd.js} +1 -1
- package/dist/assets/{InviteFormPage-CXcHy9Sz-C3-iU8eM.js → InviteFormPage-CXcHy9Sz-klLpDiNw.js} +1 -1
- package/dist/assets/{InvitePageListView-tu82Q2y6-CzjWJAgY.js → InvitePageListView-tu82Q2y6-4pxVVI8c.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Bbv2pjhR-BZJHvIvS.js → InvitePeoplePage-Bbv2pjhR-BlWUtLTm.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-CO34IhU8-1rxbAjFS.js → InvoiceUploadSection-CO34IhU8-BXYPHug3.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DuqGEs5b-DVXuxnuF.js → IssueChargeCardPage-DuqGEs5b-D98hW9vB.js} +1 -1
- package/dist/assets/{LabeledAddressValue-D0Gu5Mgp-CuHBod6j.js → LabeledAddressValue-D0Gu5Mgp-CzkRuTit.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DPisU2iY-3oGO3c9v.js → LabeledAddressValueField-DPisU2iY-CPcKZAK1.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BKqCiNdy-CKGxo72C.js → LabeledControlledCheckBoxField-BKqCiNdy-DkWki9zE.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DLVxVffe-RkcfyIgp.js → LabeledCreatableSingleSelectField-DLVxVffe-CEWgxYKX.js} +1 -1
- package/dist/assets/{LabeledDocumentField-DtOCNiEg-DdNet_Ri.js → LabeledDocumentField-DtOCNiEg-D9JTOSzg.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CsbwG9At-Cie_r1vg.js → LabeledDropDownFormattedTextField-CsbwG9At-cQNLvsmj.js} +1 -1
- package/dist/assets/{LabeledText-C4GeOHM8-ChfVujh4.js → LabeledText-C4GeOHM8-qYERC5VL.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-gwRpED7x-BzoJSlO5.js → LabeledUserSingleSelectWithSubtitlesField-gwRpED7x-DkNwuyer.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Bj8qcvuK-mHT__PRC.js → LabeledZeniRolesDropDownField-Bj8qcvuK-o-znBNks.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CdWWV_7u-CTynd4m9.js → LinkJETransactionPage-CdWWV_7u-ZBEYffG3.js} +1 -1
- package/dist/assets/{LockCardPage-BTxCWQ6_-bPbvvlRf.js → LockCardPage-BTxCWQ6_-BW7Yi1Nk.js} +1 -1
- package/dist/assets/{LowBalancePopup-Dt9KCWOU-CfGVa0nY.js → LowBalancePopup-Dt9KCWOU-BcyhH4EM.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-C2z4VD4x-yC-7xafy.js → MagicLinkACHDetailsPage-C2z4VD4x-BwwgWArG.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Dxd73sj8-Dnp7p7eT.js → MagicLinkDomesticWireDetailsPage-Dxd73sj8-ByN_sw48.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-Ct-REVbS-CPUlXtmL.js → MagicLinkInternationalWireDetailsPage-Ct-REVbS-DmiUUFsh.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-D45Lu2cc-Co6kTR8X.js → MagicLinkSuccessPage-D45Lu2cc-DYyfXOeF.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BdiSVi0V-B1KEw-n6.js → MagicLinkTitleSection-BdiSVi0V-lQUmZ3Gd.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CjO5OVZN-CsIdvq8c.js → MailingDetailsSection-CjO5OVZN-DegHUXeJ.js} +1 -1
- package/dist/assets/{Menu-C_kotivE-FvhfNRdu.js → Menu-C_kotivE-D6is806z.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CN9EKlOy-B7KFdOdn.js → MyBankConnectionsSettingsPage-CN9EKlOy-DmwMBVnf.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-rmpT6HFS-CAP6sOzW.js → MyPendingActivationChargeCardListPage-rmpT6HFS-B4Qs0oZF.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CTmDuFNJ-KfiZ2ouo.js → MyProfileSettingsPage-CTmDuFNJ-BGz88h0l.js} +1 -1
- package/dist/assets/{NavBarWithPicker-VzNJnXX3-D_mYpcQU.js → NavBarWithPicker-VzNJnXX3-CVk1XYhM.js} +1 -1
- package/dist/assets/{NavigationArrow-B9ZEhJdg-DZDpNuL-.js → NavigationArrow-B9ZEhJdg-DyQKs-_2.js} +1 -1
- package/dist/assets/{NavigationDots-C_N16I15-CgfbbWpb.js → NavigationDots-C_N16I15-nRl89PRP.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DICWFjCu-B9FIBlfd.js → NewGlobalMerchantPage-DICWFjCu-CJ0tgWsu.js} +1 -1
- package/dist/assets/{NoDataChart-CCCkzfa4-CZ1VHThr.js → NoDataChart-CCCkzfa4-Dh2W5-XZ.js} +1 -1
- package/dist/assets/{NoDataTable-DVW_simO-CiETBp14.js → NoDataTable-DVW_simO-BPAtGFBn.js} +1 -1
- package/dist/assets/{NotFoundPage-BHrUY910-CB4emWh9.js → NotFoundPage-BHrUY910-DXPp8Z-6.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-alUKfWWf-BIIzsf_j.js → NotificationSettingsPage-alUKfWWf-DXyHLtqX.js} +1 -1
- package/dist/assets/{NotificationsListConfig-QOeX1KBS-BXuzGZYq.js → NotificationsListConfig-QOeX1KBS-B8g9WUU8.js} +1 -1
- package/dist/assets/{NotificationsPage-BjhHCUzl-CL_1S-pu.js → NotificationsPage-BjhHCUzl-Dzhmx0cj.js} +1 -1
- package/dist/assets/{OpExByVendorPage-h_QozoZk-rvk-4kbQ.js → OpExByVendorPage-h_QozoZk-DmH9Fro4.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-DZnbS2el.js → OverlayContainerPage-Daz3A7cI-CcCskPTz.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DdiEIHC--BvKI5oME.js → PandLWithForecastPage-DdiEIHC--BpL8mXa1.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CIlQ-MgM-D9smrX3o.js → PaymentAccountSetupBillingAddressSection-CIlQ-MgM-YN3cB1pG.js} +1 -1
- package/dist/assets/{PeoplePage-BaOppi8Y-C-YATJdW.js → PeoplePage-BaOppi8Y-GtqBYtJq.js} +1 -1
- package/dist/assets/{Preview-yiJBApzl.js → Preview-BT1uEhaC.js} +1 -1
- package/dist/assets/{ProductsCarousel-E65X4lGB-DH2SteEv.js → ProductsCarousel-E65X4lGB-J82ISVXF.js} +1 -1
- package/dist/assets/{PromoBaseCards-O66NGGWD-BKbCdKhK.js → PromoBaseCards-O66NGGWD-B2yNqXTe.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BrMv7xjB-DlUN7Kz1.js → QBOConnectionDialog-BrMv7xjB-BmPNEJAk.js} +1 -1
- package/dist/assets/{QBOSetupSection-B5D4uUOv-CGhKBwg7.js → QBOSetupSection-B5D4uUOv-DeAmYAmF.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DJNl2oqj-B4OdqkFs.js → ReimbursementApprovalRuleDetailPage-DJNl2oqj-B8rnb7-M.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-tnc2z3Es-yyigySmO.js → ReimbursementApprovalRulesPage-tnc2z3Es--VbK-JjX.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CO8Wv5-c-qlCsVXqq.js → ReimbursementDetailPage-CO8Wv5-c-DovV70Lx.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-04Cqe8zH--NCi_DFM.js → ReimbursementPromoPage-04Cqe8zH-KzTT32Jt.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-2VrhpV75-Bv2sY3Y4.js → ReimbursementSetUpPage-2VrhpV75-CmY_3axQ.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CEZlRH0_-CC2d3Iit.js → ReimbursementsBulkReviewDrawerPage-CEZlRH0_-CVW8lX-D.js} +1 -1
- package/dist/assets/{ReloadCard-BakyoznA-DmnMlohL.js → ReloadCard-BakyoznA-C8yn3CFu.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-C7w_WVnY-C6Okt0Gv.js → ReportTableViewSelector-C7w_WVnY-Bb9l1cLU.js} +1 -1
- package/dist/assets/{ReportsPage-BeZqGQ2i-2BlXIjgp.js → ReportsPage-BeZqGQ2i-CdZhwBFE.js} +1 -1
- package/dist/assets/{RevenueChart-BcRkSSWz-D5XPPSEX.js → RevenueChart-BcRkSSWz-CMuJy4Wf.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CA5CBeB7-DN9fIS4d.js → ReviewDetailsPage-CA5CBeB7-BPwN0XIG.js} +1 -1
- package/dist/assets/{ReviewOverlay-DNjbv6Ir-BYUbQDSw.js → ReviewOverlay-DNjbv6Ir-Y9Nwz-tB.js} +1 -1
- package/dist/assets/{RoleWithToolTip-CSoHoT3u-vTwGI01K.js → RoleWithToolTip-CSoHoT3u-DRKfkJe4.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CLjpednn-81YU8z_r.js → ScheduleDetailsFixedAssetsPage-CLjpednn-ByFaGIVF.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-MEVdw-l_-gtCnaFgw.js → ScheduleDetailsPage-MEVdw-l_-BTjMh_dn.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BGx2un0o-CTi3pu3D.js → ScheduleSequenceTable-BGx2un0o-C7oCwBLq.js} +1 -1
- package/dist/assets/{ScreenRoutes-DUbNYmu4.js → ScreenRoutes-BH-V4Ul9.js} +1 -1
- package/dist/assets/{SetUpAccountSection-Blriup16-W2fx2DgC.js → SetUpAccountSection-Blriup16-D53R4AvU.js} +1 -1
- package/dist/assets/{SignIn-DqVQU08d-BerCpw9H.js → SignIn-DqVQU08d-raucMcoq.js} +1 -1
- package/dist/assets/{SignInScreen-B5Y03mpU.js → SignInScreen-Bjl3XgK5.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Cd88asmE-CB759VbW.js → SpendManagementListViewPage-Cd88asmE-B8IyHW0C.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-DyPyPQjh-CeHpfSNV.js → SpendManagementPerTabPage-DyPyPQjh-CmDf-SgA.js} +1 -1
- package/dist/assets/{SpendManagementSection-C5fvFmdh-D7vZlQqH.js → SpendManagementSection-C5fvFmdh-DPDNHpYr.js} +1 -1
- package/dist/assets/{StatementItem-CBGi9f9C-DW_QCJ6P.js → StatementItem-CBGi9f9C-BZ7BW0Y9.js} +1 -1
- package/dist/assets/{StatementsPage-De1wPDzS-BpyLzEUf.js → StatementsPage-De1wPDzS-DovYzULQ.js} +1 -1
- package/dist/assets/{StatusSwitcher-BS4h8SJh-CcRGAnPy.js → StatusSwitcher-BS4h8SJh-Brdbwzh_.js} +1 -1
- package/dist/assets/{SubTabSwitcher-vsehXtEO-aHnk9ME_.js → SubTabSwitcher-vsehXtEO-Cr2MNrNg.js} +1 -1
- package/dist/assets/{SummaryCard-gehzCCsW-cRlcrWMR.js → SummaryCard-gehzCCsW-CJ0XksM9.js} +1 -1
- package/dist/assets/{TaskManagementPage-DlzHdHSu-DMSrvQ05.js → TaskManagementPage-DlzHdHSu-DFjnzzbT.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-CFZq5KoG-DvA1T4tX.js → TimeRangeSwitcher-CFZq5KoG-BqhHy_k0.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-Bb7JwirM-DT_nE5Dd.js → TimeframeSwitcher-Bb7JwirM-DbUiB9yF.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-BXIevpvE-CV8LNwYU.js → TimeframeSwitcherWithToggle-BXIevpvE-C1kQ0PNL.js} +1 -1
- package/dist/assets/{TopExCard-BQIHsi_z-CJAyN5Zr.js → TopExCard-BQIHsi_z-C7gIvEmp.js} +1 -1
- package/dist/assets/{TopExDetailPage-BYCn9hZ2-DC2P4FKF.js → TopExDetailPage-BYCn9hZ2-CBSbTRu5.js} +1 -1
- package/dist/assets/{TransactionDetailPage-BMYeFZH7-BFKwH-pD.js → TransactionDetailPage-BMYeFZH7-CcFC_MhV.js} +1 -1
- package/dist/assets/{TransactionList-BMfwxUes-i8oCJgrA.js → TransactionList-BMfwxUes-CxHcqhQj.js} +1 -1
- package/dist/assets/{TransactionListBig-CSjliLzH-5P3TN04x.js → TransactionListBig-CSjliLzH-9r8gcXgp.js} +1 -1
- package/dist/assets/{TransactionListPage-C2Iz7CDJ-CDbQhMhs.js → TransactionListPage-C2Iz7CDJ-u9O34ri-.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-OXcpSTxA-ogeFkWo8.js → TransactionVendorDetailPage-OXcpSTxA-BwuBEauv.js} +1 -1
- package/dist/assets/{TransferDrawerPage-4lrBrmvC-BzHEhXmo.js → TransferDrawerPage-4lrBrmvC-CGSBINUl.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DNUrwQ-l-CtbTN09Y.js → TreasuryOverviewPage-DNUrwQ-l-ZYZl-CQN.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-CjjmLEyR-Jw9_r6c2.js → TreasuryPromoPage-CjjmLEyR-BjUP5bnV.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CGax-FVg-CB9f88VO.js → TreasuryStatementsPage-CGax-FVg-BvwvVRF0.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DapKFecA-Ckfl6mTT.js → TreasuryTaxLetterPage-DapKFecA-BN6fHIxE.js} +1 -1
- package/dist/assets/{TrendChart-t_2mlnuR-C3EpG69G.js → TrendChart-t_2mlnuR-HCVCCSN-.js} +1 -1
- package/dist/assets/{TrendWithTransactions-BjQX1uvO-CXSH8SoK.js → TrendWithTransactions-BjQX1uvO-BMCye4yK.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-C9DJ4P_n-Da3On2ZP.js → UncategorizedAccountsMappingPage-C9DJ4P_n-D9u8J5u2.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-CzfmBBVs-ea0q-ics.js → UnitIntegrationPage-CzfmBBVs-BgNO_8xt.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BJiBj5mg-Cktdlkx4.js → UploadAdditionalDocumentOverlay-BJiBj5mg-CDwsEW8T.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Jhuzv3Fs-CDaFjIcb.js → Vendor2FAPopup-Jhuzv3Fs-BhEm4Fbs.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BRmIiet8-C_w2yQJy.js → VendorACHDetailsPage-BRmIiet8-axoWoSXZ.js} +1 -1
- package/dist/assets/{VendorDetailPage-D_ia0GnG-EjDxeWPl.js → VendorDetailPage-D_ia0GnG-BfJ1_7EA.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-DTx8HL4V-ypi2AXXw.js → VendorDomesticWireDetailsPage-DTx8HL4V-DwPwMoty.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-6mV7WBuT-BWwNGaDM.js → VendorFiling1099EditablePage-6mV7WBuT-CaTcCwoG.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-BIh28s7e-DSbo4VGu.js → VendorFirstReviewPage-BIh28s7e-CdL8A5je.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CXmAXDcB-BBI1eBRw.js → VendorInternationalWireDetailsPage-CXmAXDcB-CwrKPPC2.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DITo3td6-DtabXm0e.js → VendorInternationalWireSwiftDetailsPage-DITo3td6-CmWvcICc.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-kJAKmxCN-DLYMQH1s.js → VendorsAccountsSection-kJAKmxCN-BC5KWJK4.js} +1 -1
- package/dist/assets/{VerifyDevice-Cclxcvod-LionuPr6.js → VerifyDevice-Cclxcvod-DSH5hVwN.js} +1 -1
- package/dist/assets/{VideoPlayer-B0jJK498-Bbxsuaup.js → VideoPlayer-B0jJK498-CBq4cry7.js} +2 -2
- package/dist/assets/{VideoPopup-BUq4CaWy-BN4RkIzc.js → VideoPopup-BUq4CaWy-Du-khlzT.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-B7Pmv7_n-DMtwZsM9.js → WarningsDrawerPage-B7Pmv7_n-Ctay0hs2.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-l5IuVidF-9qcHcEDf.js → ZeniAccountDetailPage-l5IuVidF-CDvsj4_b.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CtOCukoi-BrJGMSMd.js → ZeniAccountListViewPage-CtOCukoi-Bl5wvidS.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DHpWht7s-DoN45Kif.js → ZeniAccountNavBarPieces-DHpWht7s-CDISCH3G.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-DhuZowvX-C0CMafiM.js → ZeniAccountPromoPage-DhuZowvX-CBKBgVbN.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DXmdPnU2-Od8qQEgW.js → ZeniAccountSetupPage-DXmdPnU2-CCgQ_AYa.js} +1 -1
- package/dist/assets/{ZeniCopyright-CxIm7c5S-BQ5EemJ1.js → ZeniCopyright-CxIm7c5S-BkxmprYE.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-7nRSeYbl-qFHjxePx.js → ZeniTransferAmountSlider-7nRSeYbl-DBi4mLv5.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DTqFjlvW.js → add-to-wallet-DgdBD8_G-knutDy2z.js} +1 -1
- package/dist/assets/{analytics-nCDopMZa.js → analytics-ph3I6UF8.js} +1 -1
- package/dist/assets/{analyticsHelper-BXN2EdPH-DXUFohOz.js → analyticsHelper-BXN2EdPH-CUFI6aDK.js} +1 -1
- package/dist/assets/{analyticsHelper-DFj-3TWh.js → analyticsHelper-CL_xT2dh.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-C9v2daeL.js → arrow-south-east-round-PEovUgvH-BhoouXjS.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-C9ojomBW.js → auto-transfer-rule-mbafm5D3-PlqYA5OS.js} +1 -1
- package/dist/assets/{chartTypes-qqLvT6t1-BAzagmMG.js → chartTypes-qqLvT6t1-D3seEArQ.js} +1 -1
- package/dist/assets/{commonDimensions-CDU138wy-0KaFqMmK.js → commonDimensions-CDU138wy-79Hol1nq.js} +1 -1
- package/dist/assets/{constants-CiSoUYAy.js → constants-DfKPJuTm.js} +1 -1
- package/dist/assets/{core-B8o5Jj6O.js → core-BlFYyFWj.js} +1 -1
- package/dist/assets/{dash.all.min-D-Z5Ee1V.js → dash.all.min-HRVIDHsG.js} +1 -1
- package/dist/assets/{detailCommon-DP02lgW9-DwZYcDAj.js → detailCommon-DP02lgW9-CVVv7J5g.js} +1 -1
- package/dist/assets/{downloadPdf-Dl5UuOv_-DcSCv9vJ.js → downloadPdf-Dl5UuOv_-BGIDi-0L.js} +1 -1
- package/dist/assets/{empty-CGwQB5sP.js → empty-_dq3VELZ.js} +1 -1
- package/dist/assets/{empty-dVLDjrZY.js → empty-xtHEY_EC.js} +1 -1
- package/dist/assets/{epic-gk6U9kCP.js → epic-CCTfsn6p.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-C7uoRs4g.js → gift-box-Cmt9OgIZ-hu9S66Nm.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-DxQEyL6u.js → graphic-no-data-l-DU4J8fDt-Bxt9rjGU.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BeDfyPz6.js → graphic-no-data-net-burn-l-CzmycA0m-4TkMA2IL.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-C6I69X2f.js → handshake-BPg58FML-C8tVKQvA.js} +1 -1
- package/dist/assets/{index-CJSgchrb.js → index-CU8OwMKR.js} +1 -1
- package/dist/assets/{index-B62kMDsj.js → index-CZWdhSUY.js} +1 -1
- package/dist/assets/{index-CofZqiyy.js → index-DGXb1ebD.js} +1 -1
- package/dist/assets/{index-l9FViNoO.js → index-DJXopH2J.js} +7 -7
- package/dist/assets/{index-BlhMiimg.js → index-D_eYqjth.js} +1 -1
- package/dist/assets/{index-2UT2PoLz.js → index-hqjPtlOq.js} +1 -1
- package/dist/assets/{index-mRKAcklk.js → index-j-ZjnssZ.js} +1 -1
- package/dist/assets/{lexical-B19SDutg.js → lexical-4_NwEswu.js} +1 -1
- package/dist/assets/{liveblocks-BKCvXoiA.js → liveblocks-D4lQZ0Dd.js} +1 -1
- package/dist/assets/{lottie-CTuuushW.js → lottie-CJs0yEIm.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DL4wGcX6-qKcz8o_r.js → mapLoadingInProgressToTreeNode-DL4wGcX6-B35wwXyB.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DLeyrCPV-CBeUvfG-.js → mapSectionWithAcOnlyToTreeNode-DLeyrCPV-xUISO_IT.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Bl4MSBc9-DsaOHsUd.js → mapSpacerToTreeNode-Bl4MSBc9-DVBsOi3c.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BNP8a_pF-DA-Kt9CP.js → mapTimeframeBalancesToTreeNode-BNP8a_pF-Dpb18Gvj.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cx4O7W7V-C8qea7Z2.js → mapTimeframeBalancesToTreeNode-Cx4O7W7V-2QrpLTAl.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BvxVvq-i-B7P1WFjn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BvxVvq-i-BDihKnuD.js} +1 -1
- package/dist/assets/{mui-cKt0zt2w.js → mui-BgmDzmqw.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-hDrW8rOj.js → page-detail-CWX5S47F-jOuxf32S.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-D4wl_ybJ.js → radio-default-CiSgisfh-tgtd5ncg.js} +1 -1
- package/dist/assets/{react-3b8QVeng.js → react-9bfKhUIj.js} +1 -1
- package/dist/assets/{react-D811AKIl.js → react-BJ7cD3M_.js} +2 -2
- package/dist/assets/{react-Drezwue3.js → react-BTDaG0Dg.js} +1 -1
- package/dist/assets/{react-D2QCQuEO.js → react-Bi5oHOJd.js} +1 -1
- package/dist/assets/{react-CUDeH5fw.js → react-CI41TnKA.js} +1 -1
- package/dist/assets/{react-BcpaDQXf.js → react-DXoN358y.js} +1 -1
- package/dist/assets/{react-85WN45Y4.js → react-dcby0fvh.js} +1 -1
- package/dist/assets/{react-DycPsf8e.js → react-rUBlfRo6.js} +1 -1
- package/dist/assets/{recharts-DKlDhqpA.js → recharts-BJoArE6V.js} +1 -1
- package/dist/assets/{sentry-DWELwT5u.js → sentry-BxdgcWna.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DcDDcztl.js → shield-DOlUxcFf-BfQxUi1t.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BM2RMkm6-8ztVlUAS.js → toCOABalancesWithID-BM2RMkm6-CvqZt-7P.js} +1 -1
- package/dist/assets/{toChartData-xURa2wgf-D5Tvqegg.js → toChartData-xURa2wgf-DMY8hRBN.js} +1 -1
- package/dist/assets/{uploadAttachment-DfTOIWsX-DQL7CPp6.js → uploadAttachment-DfTOIWsX-2h7aHtTY.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-BXgFs59O.js → uploadReceipts-CPw64UYa-BVrPxFT_.js} +1 -1
- package/dist/assets/{url-BO73xRx2.js → url-C2ww6YDf.js} +1 -1
- package/dist/assets/{url-dLu3i57y.js → url-CGezB5_b.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BJatk2tg.js → useLongPress-GCK2COYQ-CA8Vl5VK.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DG080FPi.js → usp-line-BBd1wKwW-CP6yrCOY.js} +1 -1
- package/dist/assets/{utils-Db67jZaM.js → utils--sN-q-ak.js} +1 -1
- package/dist/assets/{zeni-epic-state-atBaoFS-.js → zeni-epic-state-Da_JgXOA.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BRs0LPZ0-y5fJ25mS.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as W,d as L,e as M,q as G,F as U,a9 as H,aO as X,aH as J,cC as K,V as r,bA as Q,ac as Y,aP as Z,o as b,g3 as ee}from"./index-
|
|
1
|
+
import{y as W,d as L,e as M,q as G,F as U,a9 as H,aO as X,aH as J,cC as K,V as r,bA as Q,ac as Y,aP as Z,o as b,g3 as ee}from"./index-DJXopH2J.js";import{a as T}from"./sentry-BxdgcWna.js";import{n as c}from"./mui-BgmDzmqw.js";import{b as ae,f as te,o as k,l as B}from"./FollowStepsSection-DhiGIylh-Bz6rK0A1.js";import"./liveblocks-D4lQZ0Dd.js";import"./core-BlFYyFWj.js";import"./recharts-BJoArE6V.js";import"./zeni-epic-state-Da_JgXOA.js";import"./lottie-CJs0yEIm.js";import"./analytics-ph3I6UF8.js";import"./lexical-4_NwEswu.js";import"./utils--sN-q-ak.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]="dccdb394-f6a2-4056-a9fa-975aaefc49e8",e._sentryDebugIdIdentifier="sentry-dbid-dccdb394-f6a2-4056-a9fa-975aaefc49e8")}catch{}})();const C="reimbursementApprovalRuleDetailPage",$="lowerBound",j="upperBound",A="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Pe({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:I}){const F=M(),w=G(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=X(u?.fetchState),{upperBound:R}=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 q=y.handleSubmit(()=>{N()}),z=async(n,d)=>{g(d)};return T.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=J(d);K(()=>z(D,O))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&I()},[P,u?.fetchState,I]),r.jsxs(ie,{children:[r.jsx(Q,{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:_(C),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:$,placeholder:"$0",options:{required:!0,max:R===1/0?Number.MAX_SAFE_INTEGER-1:R-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:A,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[A],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?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:w==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(w)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[A]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),k(e.allAttributes),k(e.filteredAttributes),o??[])??[],[$]: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:B},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:B},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`,Re=e=>`${e}`,ie=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as M,q as A,F as S,V as t,bA as _,A as E,aN as j,o,y as r,al as z,aL as k,cn as H,co as V,cp as G,cZ as U,d as l,b8 as q,M as T,b7 as F,p as P,cW as Z,bs as J,b as K}from"./index-
|
|
1
|
+
import{e as M,q as A,F as S,V as t,bA as _,A as E,aN as j,o,y as r,al as z,aL as k,cn as H,co as V,cp as G,cZ as U,d as l,b8 as q,M as T,b7 as F,p as P,cW as Z,bs as J,b as K}from"./index-DJXopH2J.js";import{n as i}from"./mui-BgmDzmqw.js";import{a as O}from"./sentry-BxdgcWna.js";import"./liveblocks-D4lQZ0Dd.js";import"./core-BlFYyFWj.js";import"./recharts-BJoArE6V.js";import"./zeni-epic-state-Da_JgXOA.js";import"./lottie-CJs0yEIm.js";import"./analytics-ph3I6UF8.js";import"./lexical-4_NwEswu.js";import"./utils--sN-q-ak.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="6f713766-a0f6-4356-b4e1-b9d28b603a60",e._sentryDebugIdIdentifier="sentry-dbid-6f713766-a0f6-4356-b4e1-b9d28b603a60")}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)},W={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},Q=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:u,onEditRuleClick:b,onDeleteRuleClick:v})=>{const[w,c]=O.useState(!1),a=A(),{range:d}=u.criteria[0],{steps:g,approvalRuleId:x}=u,n=S.getLocalizedStrings().commonSetUp.approval,f=()=>{c(!0)},y={onOkClick:()=>{c(!1),v?.(x)},onCancelClick:()=>{c(!1)}};return t.jsxs(Y,{windowSize:a,isLastSection:m,"data-testid":j("approval-rule-section",x),children:[t.jsxs(X,{windowSize:a,children:[t.jsxs(ne,{children:[t.jsxs(L,{windowSize:a,children:[n.from," ",k("0,0",d.min)]}),t.jsxs(ee,{children:[t.jsx(I,{}),t.jsx(te,{}),t.jsx(I,{})]}),d.max==null?t.jsx(ce,{}):t.jsx(L,{windowSize:a,children:k("0,0",{...d.min,amount:d.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e?t.jsx(pe,{onClick:f}):null,t.jsx(de,{onClick:()=>{b(x)},"data-testid":j("edit-approval-rule",x)})]})]}),t.jsx(oe,{windowSize:a,children:t.jsx(ie,{isSingleStep:g.length===1,windowSize:a,children:g.map((h,D)=>t.jsxs(re,{isSingleStep:g.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?t.jsx(le,{children:n.requireText}):t.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(B,{children:[t.jsx(C,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(R,{className:"operator",children:h.operator}):null]},`${p.subType}_${N}`)),h.actors.map(p=>t.jsxs(B,{children:[t.jsxs(C,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(R,{className:"operator",children:h.operator}):null]},p.userId))]},D))})}),w?t.jsx(H,{titleComponent:t.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:y}):null]})},Y=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,q as Pt,e as Bt,cb as Nt,y as m,F as et,gd as Lt,gf as _t,gg as Ot,V as t,cn as Ae,co as Me,cp as Re,bA as Pe,aN as y,bn as Wt,ds as Et,gh as Ft,gs as Be,o as a,gi as Ne,fe as b,gl as w,fh as x,aL as Le,fd as _e,b as V,gn as Oe,aP as Kt,ao as Ut,go as Vt,gp as re,bw as Gt,gq as Ht,_ as Jt,M as Yt,a as qt,al as tt,b8 as it,p as G,am as Qt,bT as Zt,ai as Xt,gJ as ei,gF as ti,d as c,cg as ii,cU as ai}from"./index-l9FViNoO.js";import{a as p}from"./sentry-DWELwT5u.js";import{n as r}from"./mui-cKt0zt2w.js";import{a as ri}from"./liveblocks-BKCvXoiA.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-atBaoFS-.js";import si from"./InvoiceUploadSection-CO34IhU8-1rxbAjFS.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-B8o5Jj6O.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./recharts-DKlDhqpA.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";import"./AttachmentView-BsNhULL3-C-ca695p.js";import"./uploadReceipts-CPw64UYa-BXgFs59O.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]="a5785d9d-601f-413a-bcf6-7ec6787d75c5",e._sentryDebugIdIdentifier="sentry-dbid-a5785d9d-601f-413a-bcf6-7ec6787d75c5")}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 Yt("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),[J,Y]=p.useState(!1),[ct,q]=p.useState(!1),[Q,Z]=p.useState("approved"),N=p.useRef(null),[j,X]=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=()=>{X({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=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({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():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("rejected"),q(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children: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(Ye,{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(Je,{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(Xe,{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(Ye,{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(Je,{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(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),J===!0&&Y(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&J?t.jsx(Ut,{onClickAway:()=>Y(!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:()=>Y(!J),"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,q as Pt,e as Bt,cb as Nt,y as m,F as et,gd as Lt,gf as _t,gg as Ot,V as t,cn as Ae,co as Me,cp as Re,bA as Pe,aN as y,bn as Wt,ds as Et,gh as Ft,gs as Be,o as a,gi as Ne,fe as b,gl as w,fh as x,aL as Le,fd as _e,b as V,gn as Oe,aP as Kt,ao as Ut,go as Vt,gp as re,bw as Gt,gq as Ht,_ as Jt,M as Yt,a as qt,al as tt,b8 as it,p as G,am as Qt,bT as Zt,ai as Xt,gJ as ei,gF as ti,d as c,cg as ii,cU as ai}from"./index-DJXopH2J.js";import{a as p}from"./sentry-BxdgcWna.js";import{n as r}from"./mui-BgmDzmqw.js";import{a as ri}from"./liveblocks-D4lQZ0Dd.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-Da_JgXOA.js";import si from"./InvoiceUploadSection-CO34IhU8-BXYPHug3.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-BlFYyFWj.js";import"./lottie-CJs0yEIm.js";import"./analytics-ph3I6UF8.js";import"./recharts-BJoArE6V.js";import"./lexical-4_NwEswu.js";import"./utils--sN-q-ak.js";import"./AttachmentView-BsNhULL3-7q0lWt8U.js";import"./uploadReceipts-CPw64UYa-BVrPxFT_.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]="a5785d9d-601f-413a-bcf6-7ec6787d75c5",e._sentryDebugIdIdentifier="sentry-dbid-a5785d9d-601f-413a-bcf6-7ec6787d75c5")}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 Yt("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),[J,Y]=p.useState(!1),[ct,q]=p.useState(!1),[Q,Z]=p.useState("approved"),N=p.useRef(null),[j,X]=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=()=>{X({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=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({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():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("rejected"),q(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children: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(Ye,{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(Je,{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(Xe,{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(Ye,{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(Je,{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(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),J===!0&&Y(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&J?t.jsx(Ut,{onClickAway:()=>Y(!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:()=>Y(!J),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as ne,e as S,q as k,aO as le,V as e,aN as a,fp as ae,bA as de,n as u,ae as d,F,o as s,aq as ce,c as me,aR as E,am as pe,y as xe,p as z,cB as he,aS as ue,b9 as ge,d as we}from"./index-
|
|
1
|
+
import{aw as ne,e as S,q as k,aO as le,V as e,aN as a,fp as ae,bA as de,n as u,ae as d,F,o as s,aq as ce,c as me,aR as E,am as pe,y as xe,p as z,cB as he,aS as ue,b9 as ge,d as we}from"./index-DJXopH2J.js";import{a as j}from"./sentry-BxdgcWna.js";import{n as r}from"./mui-BgmDzmqw.js";import{FG as je,bT as be}from"./zeni-epic-state-Da_JgXOA.js";import{f as fe}from"./VideoPopup-BUq4CaWy-Du-khlzT.js";import{M as v}from"./usp-line-BBd1wKwW-CP6yrCOY.js";import"./liveblocks-D4lQZ0Dd.js";import"./core-BlFYyFWj.js";import"./recharts-BJoArE6V.js";import"./lottie-CJs0yEIm.js";import"./analytics-ph3I6UF8.js";import"./lexical-4_NwEswu.js";import"./utils--sN-q-ak.js";import"./VideoPlayer-B0jJK498-CBq4cry7.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]="09d40c73-462d-4333-9ee8-80408659d2d6",i._sentryDebugIdIdentifier="sentry-dbid-09d40c73-462d-4333-9ee8-80408659d2d6")}catch{}})();const N="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as Je,p as J,y as s,bA as Ze,A as Ye,ac as Ke,fq as ve,dN as Xe,fr as Qe,bv as et,dD as tt,aP as it,o as a,ft as nt,d as n,cg as ot,cP as at,cX as lt,fC as ke,fD as $e,gc as st,n as rt,aN as Pe,M as Ae,bK as dt,ai as ct,bs as ut}from"./index-
|
|
1
|
+
import{e as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as Je,p as J,y as s,bA as Ze,A as Ye,ac as Ke,fq as ve,dN as Xe,fr as Qe,bv as et,dD as tt,aP as it,o as a,ft as nt,d as n,cg as ot,cP as at,cX as lt,fC as ke,fD as $e,gc as st,n as rt,aN as Pe,M as Ae,bK as dt,ai as ct,bs as ut}from"./index-DJXopH2J.js";import{a as o}from"./sentry-BxdgcWna.js";import{n as i}from"./mui-BgmDzmqw.js";import{bJ as mt}from"./zeni-epic-state-Da_JgXOA.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BJiBj5mg-CDwsEW8T.js";import"./liveblocks-D4lQZ0Dd.js";import"./core-BlFYyFWj.js";import"./recharts-BJoArE6V.js";import"./lottie-CJs0yEIm.js";import"./analytics-ph3I6UF8.js";import"./lexical-4_NwEswu.js";import"./utils--sN-q-ak.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]="8eea6315-2150-4a98-9b7a-d7530db43a28",e._sentryDebugIdIdentifier="sentry-dbid-8eea6315-2150-4a98-9b7a-d7530db43a28")}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=Ee(),D=Te(),{formState:{errors:Y},trigger:K}=at(),T=ht(P,"mileageAmountInDenomination"),x=lt(Y,T),{localData:d,updateStatus:F,mileageStatus:w}=p,W=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ie.getLocalizedStrings(),{reimbursement:ee}=Q,[C,E]=o.useState(W),[te,U]=o.useState(!1);o.useEffect(()=>{x||K(T)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&E(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||U(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(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(Ct,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(St,{})]})]}),t.jsxs(Tt,{children:[t.jsxs(Et,{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:T,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&&W&&!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(),E(!0),U(!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,cn as V,co as M,cp as W,k4 as q,aW as z,F as G}from"./index-
|
|
1
|
+
import{V as b,cn as V,co as M,cp as W,k4 as q,aW as z,F as G}from"./index-DJXopH2J.js";import{a as f}from"./sentry-BxdgcWna.js";import{Ge as K}from"./zeni-epic-state-Da_JgXOA.js";import{u as Q}from"./ReviewOverlay-DNjbv6Ir-Y9Nwz-tB.js";import"./liveblocks-D4lQZ0Dd.js";import"./core-BlFYyFWj.js";import"./recharts-BJoArE6V.js";import"./mui-BgmDzmqw.js";import"./lottie-CJs0yEIm.js";import"./analytics-ph3I6UF8.js";import"./lexical-4_NwEswu.js";import"./utils--sN-q-ak.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]="a996b700-6b33-448c-bd22-03b91a03f929",e._sentryDebugIdIdentifier="sentry-dbid-a996b700-6b33-448c-bd22-03b91a03f929")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=f.useState(!1),[m,_]=f.useState(P(e,v,o)),[h,R]=f.useState(v),[B,H]=f.useState(0),[w,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[m.length,B,h,e.fetchState,v,e,o]);const D=m.length,S=m.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:C}=X(S);A({type:"reject",title:d,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:d=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",d)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},N=()=>{let d=a.footer.approve;return T?d=a.texts.close:t==="send_for_approval"&&(d=a.footer.submit),{label:d,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[x?b.jsx(V,{titleComponent:b.jsx(W,{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(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=q(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:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},X=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let m="",_="";return e==="Completed"&&!u?(m=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(m=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as l,V as r,aK as a,b1 as x,F as y,aN as m,aQ as h,bC as g,ai as u,o as c,b2 as w}from"./index-
|
|
1
|
+
import{e as l,V as r,aK as a,b1 as x,F as y,aN as m,aQ as h,bC as g,ai as u,o as c,b2 as w}from"./index-DJXopH2J.js";import{n as s}from"./mui-BgmDzmqw.js";import{a as d}from"./sentry-BxdgcWna.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]="8a643595-d2ef-478e-ae37-ef6c11212759",e._sentryDebugIdIdentifier="sentry-dbid-8a643595-d2ef-478e-ae37-ef6c11212759")}catch{}})();function p({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function j({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const f=s(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(f,{children:r.jsx(j,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(f,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const C=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),b=s(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ee,q as de,cb as xe,a9 as ye,V as o,ao as _e,cc as te,ac as we,y as D,aP as $e,o as n,F as oe,cd as ve,ce as ke,cf as Ce,cg as je,ch as Ie,am as he,ci as Se,ai as Ne,aB as X,bC as De,d as f,aT as Pe,al as Oe,au as Fe}from"./index-
|
|
1
|
+
import{e as ee,q as de,cb as xe,a9 as ye,V as o,ao as _e,cc as te,ac as we,y as D,aP as $e,o as n,F as oe,cd as ve,ce as ke,cf as Ce,cg as je,ch as Ie,am as he,ci as Se,ai as Ne,aB as X,bC as De,d as f,aT as Pe,al as Oe,au as Fe}from"./index-DJXopH2J.js";import{a as u,S as ue}from"./sentry-BxdgcWna.js";import{n as d}from"./mui-BgmDzmqw.js";import{R as P,I as Be}from"./CollapsableReportTable-D1b80h2R-LejvM9E0.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]="95fe54fa-d6fc-4519-b0b3-95192751d62d",e._sentryDebugIdIdentifier="sentry-dbid-95fe54fa-d6fc-4519-b0b3-95192751d62d")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Te(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as W,e as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o as w,aR as we,A as ye,y as B,bN as Ce,d as S,I as R,aB as X,H as xe,aT as Oe,at as Ae,bJ as Re}from"./index-l9FViNoO.js";import{a as T,S as K}from"./sentry-DWELwT5u.js";import{n as _}from"./mui-cKt0zt2w.js";import{bg as Z,EN as Be,EW as ve,EX as E,EY as Le,EZ as Te,E_ as Pe,E$ as Ne,F0 as Ie,F1 as ee,F2 as te}from"./zeni-epic-state-atBaoFS-.js";import{m as z,l as q}from"./analyticsHelper-BXN2EdPH-DXUFohOz.js";import{x as ke}from"./ReportTableViewSelector-C7w_WVnY-C6Okt0Gv.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-CFZq5KoG-DvA1T4tX.js";import{M as Me}from"./TimeframeSwitcherWithToggle-BXIevpvE-CV8LNwYU.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-wlAXZwF0-B68SEe8G.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-D1b80h2R-CMeyXG6i.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DLeyrCPV-CBeUvfG-.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BNP8a_pF-DA-Kt9CP.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BvxVvq-i-B7P1WFjn.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-DL4wGcX6-qKcz8o_r.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.js";import"./TimeframeSwitcher-Bb7JwirM-DT_nE5Dd.js";import"./page-detail-CWX5S47F-hDrW8rOj.js";import"./AccountRow-DlccmtgU-foUdbmvG.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]="6379e5ac-056c-446a-bd09-1ed4a8c4a2ce",e._sentryDebugIdIdentifier="sentry-dbid-6379e5ac-056c-446a-bd09-1ed4a8c4a2ce")}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($({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 Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push($({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($({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($({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{q as W,e as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o as w,aR as we,A as ye,y as B,bN as Ce,d as S,I as R,aB as X,H as xe,aT as Oe,at as Ae,bJ as Re}from"./index-DJXopH2J.js";import{a as T,S as K}from"./sentry-BxdgcWna.js";import{n as _}from"./mui-BgmDzmqw.js";import{bg as Z,EN as Be,EW as ve,EX as E,EY as Le,EZ as Te,E_ as Pe,E$ as Ne,F0 as Ie,F1 as ee,F2 as te}from"./zeni-epic-state-Da_JgXOA.js";import{m as z,l as q}from"./analyticsHelper-BXN2EdPH-CUFI6aDK.js";import{x as ke}from"./ReportTableViewSelector-C7w_WVnY-Bb9l1cLU.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-CFZq5KoG-BqhHy_k0.js";import{M as Me}from"./TimeframeSwitcherWithToggle-BXIevpvE-C1kQ0PNL.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-wlAXZwF0-BNQRr8lI.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-D1b80h2R-LejvM9E0.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DLeyrCPV-xUISO_IT.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BNP8a_pF-Dpb18Gvj.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BvxVvq-i-BDihKnuD.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-DL4wGcX6-B35wwXyB.js";import"./liveblocks-D4lQZ0Dd.js";import"./core-BlFYyFWj.js";import"./recharts-BJoArE6V.js";import"./lottie-CJs0yEIm.js";import"./analytics-ph3I6UF8.js";import"./lexical-4_NwEswu.js";import"./utils--sN-q-ak.js";import"./TimeframeSwitcher-Bb7JwirM-DbUiB9yF.js";import"./page-detail-CWX5S47F-jOuxf32S.js";import"./AccountRow-DlccmtgU-BQGGaNll.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]="6379e5ac-056c-446a-bd09-1ed4a8c4a2ce",e._sentryDebugIdIdentifier="sentry-dbid-6379e5ac-056c-446a-bd09-1ed4a8c4a2ce")}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($({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 Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push($({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($({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($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as A,V as a,F as D,q as de,b2 as Q,d as I,b as M,aW as J,o as m,aN as Ae,p as g,aB as Ve,y as xe,bK as ge,al as R,bL as V,b9 as F}from"./index-
|
|
1
|
+
import{e as A,V as a,F as D,q as de,b2 as Q,d as I,b as M,aW as J,o as m,aN as Ae,p as g,aB as Ve,y as xe,bK as ge,al as R,bL as V,b9 as F}from"./index-DJXopH2J.js";import{a as P,S as ee}from"./sentry-BxdgcWna.js";import{n as x}from"./mui-BgmDzmqw.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-qqLvT6t1-D3seEArQ.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-BM2RMkm6-CvqZt-7P.js";import{V as Z}from"./toChartData-xURa2wgf-DMY8hRBN.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-BJoArE6V.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]="d6afe20f-5a00-4865-8ad2-58ef2680ce4e",e._sentryDebugIdIdentifier="sentry-dbid-d6afe20f-5a00-4865-8ad2-58ef2680ce4e")}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{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as Mt,f6 as At,f7 as Bt,f8 as Ft,aL as M,f9 as Rt,aN as j,fa as Lt,fb as Ae,fc as Be,fd as Fe,b as K,fe as O,p as S,ff as zt,fg as E,fh as W,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,d as s,F as Wt,ag as Zt,c0 as _t,M as qt,a as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Kt,fm as Ht,bh as Ut,l as Qt,b8 as Jt,fn as Xt,aq as et,bI as en,ai as tt,bs as tn,fo as nn}from"./index-l9FViNoO.js";import{a as _}from"./sentry-DWELwT5u.js";import{n as a}from"./mui-cKt0zt2w.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-atBaoFS-.js";import{t as rn,o as dn}from"./LowBalancePopup-Dt9KCWOU-CfGVa0nY.js";import{S as Z}from"./LabeledText-C4GeOHM8-ChfVujh4.js";import"./liveblocks-BKCvXoiA.js";import"./core-B8o5Jj6O.js";import"./recharts-DKlDhqpA.js";import"./lottie-CTuuushW.js";import"./analytics-nCDopMZa.js";import"./lexical-B19SDutg.js";import"./utils-Db67jZaM.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]="5ce8ac24-25cb-4c05-9b6b-0d447aad4ef5",e._sentryDebugIdIdentifier="sentry-dbid-5ce8ac24-25cb-4c05-9b6b-0d447aad4ef5")}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 qt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,g]=_.useState(!1),A=()=>{g(!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?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ht,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,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=g&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(ge,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,fe]=_.useState(!1),[mt,xe]=_.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);_.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,q=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&q?.code?q:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&q?.code?q:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,V=y.allApprovalRules.length>0,ft=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),f=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=f&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=Ze(b,V,e.isBillMarkedForRetry),wt=()=>f?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(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=f?i.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}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&Y(!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,Y]=_.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:()=>{Y(!1),ne()},onClickAway:()=>{Y(!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(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(He,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.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:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(_n,{children:[t.jsx(Gn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(qn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Qe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("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?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Qe,{})}),t.jsxs(Zn,{"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?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ye,{children:i.pay}),t.jsx(Ke,{children:t.jsx(Fe,{amount:ft,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ye,{children:i.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[f?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(Z,{label:{label:i.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:ie})}),t.jsx(H,{})]}),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(Z,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!f&&G!=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(Z,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,f?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(Z,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),f||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),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(Z,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(fn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(gn,{children:[t.jsxs(qe,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(qe,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("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:M("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:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:_e(!1,k,b,V,d)}},primaryBtn:{label:Ze(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?Y(!0):Se()},style:{width:_e(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},Ze=(e,y,g)=>e?i.paymentOutsideZeni.markAsPaid:g===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,_e=(e,y,g,A,T)=>g?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
|
|
1
|
+
import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as Mt,f6 as At,f7 as Bt,f8 as Ft,aL as M,f9 as Rt,aN as j,fa as Lt,fb as Ae,fc as Be,fd as Fe,b as K,fe as O,p as S,ff as zt,fg as E,fh as W,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,d as s,F as Wt,ag as Zt,c0 as _t,M as qt,a as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Kt,fm as Ht,bh as Ut,l as Qt,b8 as Jt,fn as Xt,aq as et,bI as en,ai as tt,bs as tn,fo as nn}from"./index-DJXopH2J.js";import{a as _}from"./sentry-BxdgcWna.js";import{n as a}from"./mui-BgmDzmqw.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-Da_JgXOA.js";import{t as rn,o as dn}from"./LowBalancePopup-Dt9KCWOU-BcyhH4EM.js";import{S as Z}from"./LabeledText-C4GeOHM8-qYERC5VL.js";import"./liveblocks-D4lQZ0Dd.js";import"./core-BlFYyFWj.js";import"./recharts-BJoArE6V.js";import"./lottie-CJs0yEIm.js";import"./analytics-ph3I6UF8.js";import"./lexical-4_NwEswu.js";import"./utils--sN-q-ak.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]="5ce8ac24-25cb-4c05-9b6b-0d447aad4ef5",e._sentryDebugIdIdentifier="sentry-dbid-5ce8ac24-25cb-4c05-9b6b-0d447aad4ef5")}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 qt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,g]=_.useState(!1),A=()=>{g(!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?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ht,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,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=g&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(ge,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,fe]=_.useState(!1),[mt,xe]=_.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);_.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,q=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&q?.code?q:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&q?.code?q:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,V=y.allApprovalRules.length>0,ft=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),f=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=f&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=Ze(b,V,e.isBillMarkedForRetry),wt=()=>f?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(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=f?i.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}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&Y(!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,Y]=_.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:()=>{Y(!1),ne()},onClickAway:()=>{Y(!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(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(He,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.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:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(_n,{children:[t.jsx(Gn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(qn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Qe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("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?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Qe,{})}),t.jsxs(Zn,{"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?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ye,{children:i.pay}),t.jsx(Ke,{children:t.jsx(Fe,{amount:ft,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ye,{children:i.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[f?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(Z,{label:{label:i.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:ie})}),t.jsx(H,{})]}),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(Z,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!f&&G!=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(Z,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,f?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(Z,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),f||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),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(Z,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(fn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(gn,{children:[t.jsxs(qe,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(qe,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("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:M("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:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:_e(!1,k,b,V,d)}},primaryBtn:{label:Ze(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?Y(!0):Se()},style:{width:_e(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},Ze=(e,y,g)=>e?i.paymentOutsideZeni.markAsPaid:g===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,_e=(e,y,g,A,T)=>g?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-DNjbv6Ir-BYUbQDSw.js → ReviewOverlay-DNjbv6Ir-Y9Nwz-tB.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as P,V as i,aN as m,o as r,aP as B,y as d,_ as L,M as I,a as C,p as s,al as j,cz as W,A as D,ai as b,bg as R,d as n,eh as _,u as G,iS as A,k3 as V}from"./index-
|
|
1
|
+
import{q as P,V as i,aN as m,o as r,aP as B,y as d,_ as L,M as I,a as C,p as s,al as j,cz as W,A as D,ai as b,bg as R,d as n,eh as _,u as G,iS as A,k3 as V}from"./index-DJXopH2J.js";import{n as t}from"./mui-BgmDzmqw.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]="2c8f5d2b-95c1-40fe-96f4-15f3165f4cea",e._sentryDebugIdIdentifier="sentry-dbid-2c8f5d2b-95c1-40fe-96f4-15f3165f4cea")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},q={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const a=P();return i.jsxs(H,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:a,children:[i.jsxs(N,{windowSize:a,children:[i.jsx(O,{children:i.jsx(K,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:F(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(B,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-CSoHoT3u-vTwGI01K.js → RoleWithToolTip-CSoHoT3u-DRKfkJe4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eM as f,eN as h,V as s,bR as g,o,aN as l,F as x,an as y,ai as p}from"./index-
|
|
1
|
+
import{eM as f,eN as h,V as s,bR as g,o,aN as l,F as x,an as y,ai as p}from"./index-DJXopH2J.js";import{n}from"./mui-BgmDzmqw.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]="f86fa440-b5fd-484d-b49c-22e819696857",e._sentryDebugIdIdentifier="sentry-dbid-f86fa440-b5fd-484d-b49c-22e819696857")}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{aO as G,ih as ee,gC as fe,ex as Le,ii as we,a9 as Je,ij as Me,cC as Ve,cD as _e,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,ik as Re,il as We,F as ge,aa as he,im as me,io as Ue,cP as ze,q as $e,iC as He,gH as re,d as R,p as Se,y as De,cF as Ge,ip as Ke,iq as Qe,ir as Ye,o as _}from"./index-
|
|
1
|
+
import{aO as G,ih as ee,gC as fe,ex as Le,ii as we,a9 as Je,ij as Me,cC as Ve,cD as _e,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,ik as Re,il as We,F as ge,aa as he,im as me,io as Ue,cP as ze,q as $e,iC as He,gH as re,d as R,p as Se,y as De,cF as Ge,ip as Ke,iq as Qe,ir as Ye,o as _}from"./index-DJXopH2J.js";import{a as f}from"./sentry-BxdgcWna.js";import{n as U}from"./mui-BgmDzmqw.js";import{F_ as Ze,F$ as Xe}from"./zeni-epic-state-Da_JgXOA.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-BGx2un0o-C7oCwBLq.js";import"./liveblocks-D4lQZ0Dd.js";import"./core-BlFYyFWj.js";import"./recharts-BJoArE6V.js";import"./lottie-CJs0yEIm.js";import"./analytics-ph3I6UF8.js";import"./lexical-4_NwEswu.js";import"./utils--sN-q-ak.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="48889663-d3a6-4d5e-85b5-399ed28f1fe0",e._sentryDebugIdIdentifier="sentry-dbid-48889663-d3a6-4d5e-85b5-399ed28f1fe0")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aO as F,ih as Y,gC as ke,ex as Ae,ii as Ie,a9 as Je,ij as we,cC as Le,cD as Me,V as a,ac as Ve,cn as Pe,co as _e,cp as Fe,aP as $e,ik as Be,il as Ne,F as Se,aa as ie,im as he,io as qe,cP as Ue,q as ze,gH as pe,d as X,p as We,y as Re,ip as Ke,iq as Qe,ir as Ge,o as w}from"./index-
|
|
1
|
+
import{aO as F,ih as Y,gC as ke,ex as Ae,ii as Ie,a9 as Je,ij as we,cC as Le,cD as Me,V as a,ac as Ve,cn as Pe,co as _e,cp as Fe,aP as $e,ik as Be,il as Ne,F as Se,aa as ie,im as he,io as qe,cP as Ue,q as ze,gH as pe,d as X,p as We,y as Re,ip as Ke,iq as Qe,ir as Ge,o as w}from"./index-DJXopH2J.js";import{a as D}from"./sentry-BxdgcWna.js";import{n as P}from"./mui-BgmDzmqw.js";import{F_ as He,F$ as Ye,bL as Xe}from"./zeni-epic-state-Da_JgXOA.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-BGx2un0o-C7oCwBLq.js";import"./liveblocks-D4lQZ0Dd.js";import"./core-BlFYyFWj.js";import"./recharts-BJoArE6V.js";import"./lottie-CJs0yEIm.js";import"./analytics-ph3I6UF8.js";import"./lexical-4_NwEswu.js";import"./utils--sN-q-ak.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]="6d2a7be8-1d13-449c-a171-69e12fa167a5",e._sentryDebugIdIdentifier="sentry-dbid-6d2a7be8-1d13-449c-a171-69e12fa167a5")}catch{}})();const q={labelWidth:new Re(160,160,160)},at=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as A,e as X,V as t,is as ie,it as le,M as oe,iu as xe,dO as fe,fd as ye,b as I,F as R,iv as we,ir as be,o as i,y as b,p as j,l as $e,aa as re,dK as je,cn as Se,cp as ke,cP as Z,cX as ee,cV as ve,iw as K,ix as De,b2 as Ce,iy as Me,cr as ze,iz as Le,d as h,al as L,b8 as Ee,co as Oe,ao as pe,cY as Ie,b0 as ne,el as Ae,aP as Te,iA as T,gc as Ve,aL as Fe,iB as Be,aT as H,cZ as Je,bg as Pe}from"./index-
|
|
1
|
+
import{q as A,e as X,V as t,is as ie,it as le,M as oe,iu as xe,dO as fe,fd as ye,b as I,F as R,iv as we,ir as be,o as i,y as b,p as j,l as $e,aa as re,dK as je,cn as Se,cp as ke,cP as Z,cX as ee,cV as ve,iw as K,ix as De,b2 as Ce,iy as Me,cr as ze,iz as Le,d as h,al as L,b8 as Ee,co as Oe,ao as pe,cY as Ie,b0 as ne,el as Ae,aP as Te,iA as T,gc as Ve,aL as Fe,iB as Be,aT as H,cZ as Je,bg as Pe}from"./index-DJXopH2J.js";import{n as o,c as J}from"./mui-BgmDzmqw.js";import{a as C}from"./sentry-BxdgcWna.js";import{bh as G,G0 as Re}from"./zeni-epic-state-Da_JgXOA.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]="e79cf958-e743-415f-9e2a-3894afe5a186",e._sentryDebugIdIdentifier="sentry-dbid-e79cf958-e743-415f-9e2a-3894afe5a186")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{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(qe,{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(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(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(Qe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(Ye,{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(Te,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:_e(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(He,{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 Ye({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(_,{isSelected:r===e,onClick:()=>l(Re(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const _e=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,He=o.div`
|
|
4
4
|
display: flex;
|