@zeniai/web-cockpit-ui 1.14.91-dev-betaRR0 → 1.14.92-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-B6sY0jN6-Dv_4G1XI.js → ACHDetailsPage-B6sY0jN6-BewHWiw_.js} +1 -1
- package/dist/assets/{AIPerformancePage-BWK9fXrz-tS1FxKid.js → AIPerformancePage-BWK9fXrz-XnvE7-6d.js} +1 -1
- package/dist/assets/{AccountInfoPage-DfT5DDiZ-CV2_yTPc.js → AccountInfoPage-DfT5DDiZ-DND7ENQF.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-nUi26Aww-CUuk_20a.js → AccountInfoPageContent-nUi26Aww-Bwa-HIUO.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BROj4bmE-Cfoe0YA9.js → AccountLockedInfoModal-BROj4bmE-DDKXU8OA.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-C-3FFCQZ-CxBX6qm4.js → AccountReconDetailsDrawerPage-C-3FFCQZ-D-TpqzuY.js} +1 -1
- package/dist/assets/{AccountRow-BM2kGWyR-CJCg6x0x.js → AccountRow-BM2kGWyR-CEX7zEFS.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CNCG5uPJ-m2eUaU2L.js → AccountsPromoCardStack-CNCG5uPJ-Y2aCPflf.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-BuAtFO1w-B9URXppK.js → AddAddressForCardDrawer-BuAtFO1w-e0LZrU5l.js} +1 -1
- package/dist/assets/{AddToWalletPage-DyrcWdBZ--nr8n_4Z.js → AddToWalletPage-DyrcWdBZ-CkK2fnuE.js} +1 -1
- package/dist/assets/{AgingReportsPage-CmluxKG3-BApj252U.js → AgingReportsPage-CmluxKG3-B2hpJNM3.js} +1 -1
- package/dist/assets/{AllUserItems-CVZZU-J3-COeMV7u0.js → AllUserItems-CVZZU-J3-Ce2827d_.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CoNxqskm-0EjHKnBi.js → ApAgingDetailPage-CoNxqskm-Bna_-NVA.js} +1 -1
- package/dist/assets/{AppBasePage-CTGNzUtN-BfaGtOzk.js → AppBasePage-CTGNzUtN--WSyuM8w.js} +1 -1
- package/dist/assets/{AppDrawerContent-59dQVUxu-BnKh28FR.js → AppDrawerContent-59dQVUxu-Bv7_BAFF.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-XEW5sdNg-LVlVZSHT.js → ApprovalRulesSettingsPage-XEW5sdNg-DmNI-bwP.js} +1 -1
- package/dist/assets/{ArAgingChart-D3Ym4gVE-DsJpAb8n.js → ArAgingChart-D3Ym4gVE-DmsLk005.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BLEJSLJJ-DBAkqt03.js → ArAgingDetailPage-BLEJSLJJ-C4CejQvS.js} +1 -1
- package/dist/assets/{AttachmentView-DSP80cjm-D7w4ZtT4.js → AttachmentView-DSP80cjm-BrHb-fdX.js} +1 -1
- package/dist/assets/{BankAccountSection-DRrNcA79-D0y5RgB_.js → BankAccountSection-DRrNcA79-DN0L_Nus.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Ub-gsfhE-pvCiKI7-.js → BankAccountWarningSection-Ub-gsfhE-CWRw85Ya.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BcTtJTbg-ehD3_4Dh.js → BankConnectionsSettingsPage-BcTtJTbg-Cq7UhfIX.js} +1 -1
- package/dist/assets/{BillDetailPage-D7AQyxwr-e7SQTUJW.js → BillDetailPage-D7AQyxwr-C4hQ51aV.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BQWGENO8-qq4pmey1.js → BillPayApprovalRuleDetailPage-BQWGENO8-UqNryn1Y.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BbA1Nwqe-3MsdZySS.js → BillPayApprovalRulesPage-BbA1Nwqe-8oC6drGE.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DSTS_vBW-Ce9u0nsw.js → BillPayPromoPage-DSTS_vBW-D4bhyD9i.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CvlVPVCA-CCbbdiQc.js → BillPaySetUpPage-CvlVPVCA-CckOfR6h.js} +1 -1
- package/dist/assets/{BillingSettingsPage-nKpHtd4C-DLiPc2FT.js → BillingSettingsPage-nKpHtd4C-BrQxt-Or.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DNHAoceL-CthJ8Dd6.js → BillsBulkReviewDrawerPage-DNHAoceL-CcLmGKWP.js} +1 -1
- package/dist/assets/{BoxItem-Bjv3WNXO-d_9opxkd.js → BoxItem-Bjv3WNXO-CbkK_BvO.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Bj4D9bX2-DWX5ckwL.js → BusinessVerificationPage-Bj4D9bX2-CSqpS47f.js} +1 -1
- package/dist/assets/{CardNumberSubText-BYY-Inxd-VoZJjuBC.js → CardNumberSubText-BYY-Inxd-B5eDSuWq.js} +1 -1
- package/dist/assets/{CashbackDetailPage-D9UiTqp9-9Lz5t64N.js → CashbackDetailPage-D9UiTqp9-CYWVGaEH.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-C5EdiIyl-C4UWTuR2.js → ChargeCardDetailPage-C5EdiIyl-BRwuM_9a.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DZwz1qoD-B146-EXW.js → ChargeCardListPage-DZwz1qoD-CqjW0D5U.js} +1 -1
- package/dist/assets/{ChargeCardListTable-D5B05Z1F-BBBvhTcZ.js → ChargeCardListTable-D5B05Z1F-D4hpaga1.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CDJMtGJb-3FYfKocS.js → ChargeCardPromoPage-CDJMtGJb-hssoPQjs.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-CVV24gS9-BSJi9V_M.js → ChargeCardSetupPage-CVV24gS9-BAOQ2Xly.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CmjBoi5e-maH5VKYN.js → ChargeCardStatementsPage-CmjBoi5e-DLlPm7j6.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-CYOhT5Qz-KAp7o68o.js → CheckDepositDrawerPage-CYOhT5Qz-NvWlDiXp.js} +1 -1
- package/dist/assets/{CollapsableReportTable-hL_Ycouc-CWDILu02.js → CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DR_6TlQa-CaPRdQzP.js → CompanyOfficerDetailsSection-DR_6TlQa-SwPBTgrA.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B4chn7-Q-DdxULjSC.js → CompanyPassportCard-B4chn7-Q-Bv_vr7JG.js} +1 -1
- package/dist/assets/{CompanyPassportPage-oT9HnnPQ-Ca6G5119.js → CompanyPassportPage-oT9HnnPQ-BroxBLc-.js} +1 -1
- package/dist/assets/{CompleteProfile-BgH4v76Z-J-mh56N2.js → CompleteProfile-BgH4v76Z-CN661m7_.js} +1 -1
- package/dist/assets/{ConfettiBurst-Cl6jHJ8H-C9SoFqPe.js → ConfettiBurst-Cl6jHJ8H-gdYynPR6.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CW-u7pJU-Bzg24rp1.js → CreateOrEditVendorPage-CW-u7pJU-D_V5jy6j.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-D30M7ol4-CwaBYQLR.js → CreditCardPaymentDrawerPage-D30M7ol4-Cmy98i97.js} +1 -1
- package/dist/assets/{CurrencySelectField-DOCEstMc-BkHxR5HA.js → CurrencySelectField-DOCEstMc-DLDifnD2.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DMPNjFL_-TbnD-4OG.js → CustomerOnboardingActivationPage-DMPNjFL_-DXtNUrdA.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-DTN0ucTw.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CBYo4VQn-BujXWuJC.js → CustomerOnboardingDetailPageSkeleton-CBYo4VQn-lNg5MP87.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-EBVRCYfJ-xtPONz37.js → CustomerOnboardingNoStepsPage-EBVRCYfJ-D9C_SyFY.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-TJK6s-LM-CsM-rW7t.js → CustomerOnboardingPage-TJK6s-LM-CoIVtMVm.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-lNIP5gSu-D8leFJAq.js → CustomerOnboardingProductSuitePage-lNIP5gSu-Bg8Yb8JM.js} +1 -1
- package/dist/assets/{Dashboard-WiE9IRrh-D3xuAsNG.js → Dashboard-WiE9IRrh-DvtSkHmk.js} +1 -1
- package/dist/assets/{DashboardReportPage-BKHl_IVD-CMH5dEgW.js → DashboardReportPage-BKHl_IVD-CtxBGv_B.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-B1mJObim-DaBPsyhD.js → DashboardSidebarBackgroundAnimation-B1mJObim-DOqCN-CI.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-C8tChaJS-_jmc_rYW.js → DepositAccTransactionItem-C8tChaJS-BcNs6Wmj.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-B6px7upV-CQ8W1uho.js → DepositAccTransactionListPage-B6px7upV-C_h4mZC3.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BFQJmzYm-DdIUFkni.js → DomesticWireDetailsPage-BFQJmzYm-Cigs9AsB.js} +1 -1
- package/dist/assets/{DownloadOverlay-DB-qx46O-BzRX_iWf.js → DownloadOverlay-DB-qx46O-Di0XX-7b.js} +1 -1
- package/dist/assets/{DrawerPage-Bha9ElcW-B91lWMHe.js → DrawerPage-Bha9ElcW-tQCg2vNB.js} +1 -1
- package/dist/assets/{EditPeoplePage-B6QD5Vld-DKZ4nB8f.js → EditPeoplePage-B6QD5Vld-H7oW4yPE.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-EplOf2mP-u2YMFjY5.js → EditReimbursementDetailPage-EplOf2mP-DR3ob0bq.js} +1 -1
- package/dist/assets/{EntityDetailPage-5Cu1qehd-DEcgoDIq.js → EntityDetailPage-5Cu1qehd-BdCQHbCi.js} +1 -1
- package/dist/assets/{EntitySummarySection-D6z6-dM7-C8vqyJE6.js → EntitySummarySection-D6z6-dM7-iY3GcshB.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-DkoxczRc-BFmIjbbK.js → ExpenseAutomationOverviewPage-DkoxczRc-Dj3WEFmv.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-Na3XKgcg-BOy-W5HC.js → ExpenseAutomationPage-Na3XKgcg-DopOn429.js} +1 -1
- package/dist/assets/{ExpressPayPage-DWGl_gml-BoP5Cs2z.js → ExpressPayPage-DWGl_gml-hFOTsy6y.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BgkpUPMm--0g5n3S4.js → FeaturePreviewPage-BgkpUPMm-BgRBmXUD.js} +1 -1
- package/dist/assets/{FollowStepsSection-64oy2OLD-D3h0tFyq.js → FollowStepsSection-64oy2OLD-BEGrGMi_.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DHfTyj2C-RnZ7xNb7.js → GlobalReviewListPage-DHfTyj2C-C3EEWPiO.js} +1 -1
- package/dist/assets/{InformationCardStack-Dw3lhl2I-i5Npg5-3.js → InformationCardStack-Dw3lhl2I-Bs6_LbeZ.js} +1 -1
- package/dist/assets/{InsightsCardStack-BiEswY1Z-DYRJcEae.js → InsightsCardStack-BiEswY1Z-Db6FFDpQ.js} +1 -1
- package/dist/assets/{InsightsSection-DvqCilqy-BsxjZx3R.js → InsightsSection-DvqCilqy-BQT_s43S.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-DzVYf5ff-Qz_64-AR.js → IntegrationsSettingsPage-DzVYf5ff-DvdqA5Qq.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DTHcuQsH-LkhNT71n.js → InternationalWireSwiftDetailsPage-DTHcuQsH-B-a9NSLn.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BzyRqd-m-Bs1sKcFl.js → InternationalWireVerificationPage-BzyRqd-m-slndLY5A.js} +1 -1
- package/dist/assets/{InviteFormPage-CaJB3ss1-DDpF9vZd.js → InviteFormPage-CaJB3ss1-HHZxjRMu.js} +1 -1
- package/dist/assets/{InvitePageListView-8Ltt8tHx-BVYRRTTO.js → InvitePageListView-8Ltt8tHx-BPR7jVHX.js} +1 -1
- package/dist/assets/{InvitePeoplePage-A7oKAD7M-0hQ58v_R.js → InvitePeoplePage-A7oKAD7M-DkNn-Tux.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DomquLut-C6XQxVf3.js → InvoiceUploadSection-DomquLut-CutCF8wG.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DtIQ1Buk-DVoIaqMD.js → IssueChargeCardPage-DtIQ1Buk-QOM0ijcK.js} +1 -1
- package/dist/assets/{LabeledAddressValue-B_9lh-_a-BQeLvRQa.js → LabeledAddressValue-B_9lh-_a-B22yf0PW.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-CC7T3qZQ-CjYkOklE.js → LabeledAddressValueField-CC7T3qZQ-5fkS_FuY.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CeMM7Ci3-DVaYpdZO.js → LabeledControlledCheckBoxField-CeMM7Ci3-RHUW6sf_.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DKD0oEl8-Cyxj1Kus.js → LabeledCreatableSingleSelectField-DKD0oEl8-Bqf3gDxT.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Dy3jwAiL-XoHwubm3.js → LabeledDocumentField-Dy3jwAiL-FmwpCOt6.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DDzM3r6s-Wztx4Tcl.js → LabeledDropDownFormattedTextField-DDzM3r6s-CPxa5iPj.js} +1 -1
- package/dist/assets/{LabeledText-axaAGyUS-BpEJBxD4.js → LabeledText-axaAGyUS-B-Q4astZ.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-CeEZ7NWG.js → LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-DlTnDPsW.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-dpz7g9jK-1OORssNe.js → LabeledZeniRolesDropDownField-dpz7g9jK-BDxh4AaM.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CJniqVcu-BUqqOVZ3.js → LinkJETransactionPage-CJniqVcu-C9nn50Ye.js} +1 -1
- package/dist/assets/{LockCardPage-CjO8cr2a-B7T-NUky.js → LockCardPage-CjO8cr2a-C3aOpkLz.js} +1 -1
- package/dist/assets/{LowBalancePopup-DVS-w3b7-CXJHrLHV.js → LowBalancePopup-DVS-w3b7-DZeFvNAP.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CUHMKmcj-DbWiJSy4.js → MagicLinkACHDetailsPage-CUHMKmcj-BWS1eLIz.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-S_MOFfkp.js → MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-BkvhGPqZ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-sBpQkYwP-B_hpFhv2.js → MagicLinkInternationalWireDetailsPage-sBpQkYwP-DYCM1cCk.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DAAoq3iT-C_Yyw67d.js → MagicLinkSuccessPage-DAAoq3iT-s_k-As2A.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-FMRBLlRJ-BJi3iHKO.js → MagicLinkTitleSection-FMRBLlRJ-Dq0HXyeM.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CiJ5JLA6-Dh-rh1lg.js → MailingDetailsSection-CiJ5JLA6-ClA0Rhay.js} +1 -1
- package/dist/assets/{Menu-wpP8R1br-CAapPWSw.js → Menu-wpP8R1br-BkJyq7Tb.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DIIFgnkE-BP3xfm53.js → MyBankConnectionsSettingsPage-DIIFgnkE-BpGRsOdm.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Di_KYRgS-Ci2uuBdO.js → MyPendingActivationChargeCardListPage-Di_KYRgS-1GEJ-RE_.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-m6vaeGgZ-CzB44LiA.js → MyProfileSettingsPage-m6vaeGgZ-CBRk31EZ.js} +1 -1
- package/dist/assets/{NavBarWithPicker-C_qO8mgD-BWszQoIE.js → NavBarWithPicker-C_qO8mgD-DeDCa5cM.js} +1 -1
- package/dist/assets/{NavigationArrow-BXYIj6Wz-B7qUUnjS.js → NavigationArrow-BXYIj6Wz-CANss6wI.js} +1 -1
- package/dist/assets/{NavigationDots-BvKSgdgh-BXw04_O_.js → NavigationDots-BvKSgdgh-ChF9WLMp.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Dc3xEoiZ-DB34-Ax1.js → NewGlobalMerchantPage-Dc3xEoiZ-BeCQwEx7.js} +1 -1
- package/dist/assets/{NoDataChart-C5ZP32zB-CMBnBikM.js → NoDataChart-C5ZP32zB-BxSJ1j_J.js} +1 -1
- package/dist/assets/{NoDataTable-BnBYE8p_-D99JCqJE.js → NoDataTable-BnBYE8p_-CFZLFfEo.js} +1 -1
- package/dist/assets/{NotFoundPage-CZ25GWwU-Bhr9smJg.js → NotFoundPage-CZ25GWwU-BICqInbF.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DHvgj7Hu-D70wdxPy.js → NotificationSettingsPage-DHvgj7Hu-BDiE5wjx.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BBLSv0sd-D3pDalXG.js → NotificationsListConfig-BBLSv0sd-CBsOo8lP.js} +1 -1
- package/dist/assets/{NotificationsPage-CGVEC-Zc-aEkue81y.js → NotificationsPage-CGVEC-Zc-CICQW2D8.js} +1 -1
- package/dist/assets/{OpExByVendorPage-D55JZne--BA2gN_9D.js → OpExByVendorPage-D55JZne--Cr5n73UL.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-B2pRyPAw.js → OverlayContainerPage-Daz3A7cI-DLdPkPwc.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-fVmttEKP-Cpmbp3qS.js → PandLWithForecastPage-fVmttEKP-aWCR7ttl.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BiU8tQnm-_fnUz-j3.js → PaymentAccountSetupBillingAddressSection-BiU8tQnm-CY8MBOF0.js} +1 -1
- package/dist/assets/{PeoplePage-QuuuX2AS-BJIGfeNN.js → PeoplePage-QuuuX2AS-CDxGSCUE.js} +1 -1
- package/dist/assets/{Preview-m-FcrQ0s.js → Preview-D_TLok3M.js} +1 -1
- package/dist/assets/{ProductsCarousel-zdZkfaiY-9riU76fC.js → ProductsCarousel-zdZkfaiY-D8MGFtGX.js} +1 -1
- package/dist/assets/{PromoBaseCards-flFtcbIg-hQ-cGzbT.js → PromoBaseCards-flFtcbIg-C0jZRRzU.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DNB2C1vQ-B-m0Orif.js → QBOConnectionDialog-DNB2C1vQ-DPJHlPHX.js} +1 -1
- package/dist/assets/{QBOSetupSection-B59etoGz-BjsJ5dP9.js → QBOSetupSection-B59etoGz-DxrgQvvQ.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-D7do3o0A-ZSNYROgC.js → ReimbursementApprovalRuleDetailPage-D7do3o0A-DiBw1aK-.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BJ6GewQ2-cn7dx9_x.js → ReimbursementApprovalRulesPage-BJ6GewQ2-CMxGgRQ3.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DKAtYSOy-rPi_28qO.js → ReimbursementDetailPage-DKAtYSOy-C1CMn4bM.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DKcSHlHp-B-x2_K1K.js → ReimbursementPromoPage-DKcSHlHp-gi8b3D2U.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Y1e_hna--CWaIrVmZ.js → ReimbursementSetUpPage-Y1e_hna--L4dNaOo2.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-fgz8s4w9-BgzjXAGE.js → ReimbursementsBulkReviewDrawerPage-fgz8s4w9-TK1XJV4S.js} +1 -1
- package/dist/assets/{ReloadCard-DjtdPHq5-qE-nJEXk.js → ReloadCard-DjtdPHq5-D_RTB189.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-C8e6IEWt--jlW7QpR.js → ReportTableViewSelector-C8e6IEWt-B1X6y91F.js} +1 -1
- package/dist/assets/{ReportsPage-BIe0eDLC-Cn2-db9t.js → ReportsPage-BIe0eDLC-DJAgrzKt.js} +1 -1
- package/dist/assets/{RevenueChart-Cc0XrxLL-RTOUbgfW.js → RevenueChart-Cc0XrxLL-BSXP5Fpe.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CU1AYWgR-BCcFVvxj.js → ReviewDetailsPage-CU1AYWgR-Aa7a5LiH.js} +1 -1
- package/dist/assets/{ReviewOverlay-CruJ9O84-CVyRQtbr.js → ReviewOverlay-CruJ9O84-C1Nn7-W1.js} +1 -1
- package/dist/assets/{RoleWithToolTip-fC3byzzv-Da5EXkAB.js → RoleWithToolTip-fC3byzzv-DvgcIN_v.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CE3tUYhk-NtG2QTRz.js → ScheduleDetailsFixedAssetsPage-CE3tUYhk-COrIX6jB.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BhAqJ1Of-D1IstsCs.js → ScheduleDetailsPage-BhAqJ1Of-aIc3huKD.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-NSt1juSD-BKLbxQMq.js → ScheduleSequenceTable-NSt1juSD-DIpN7xpp.js} +1 -1
- package/dist/assets/{ScreenRoutes-CWkpMCjL.js → ScreenRoutes-jO5HDDDI.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C1EnJv1V-Cvu34ipQ.js → SetUpAccountSection-C1EnJv1V-BqOATLaf.js} +1 -1
- package/dist/assets/{SignIn-BhIof_Cm-DeDZlCNC.js → SignIn-BhIof_Cm-BVhCYPyL.js} +1 -1
- package/dist/assets/{SignInScreen-Cihieu4J.js → SignInScreen-DYrtrzQo.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BEWNNX_Z-j_tiMoWb.js → SpendManagementListViewPage-BEWNNX_Z-DYJVhy13.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Vs1Eoxgd-DfGQnSHO.js → SpendManagementPerTabPage-Vs1Eoxgd-BJBD6w0V.js} +1 -1
- package/dist/assets/{SpendManagementSection-C38Zpi1z-B-GaQ2j9.js → SpendManagementSection-C38Zpi1z-zTQSB9zV.js} +1 -1
- package/dist/assets/{StatementItem-bHInVThd-CsJa48J1.js → StatementItem-bHInVThd-Bfw9F8uL.js} +1 -1
- package/dist/assets/{StatementsPage-CGQhmaXx-CawRkQvA.js → StatementsPage-CGQhmaXx-BIuU-4wu.js} +1 -1
- package/dist/assets/{StatusSwitcher-7fiKLb5g-B_2JeKNK.js → StatusSwitcher-7fiKLb5g-IubUY6EX.js} +1 -1
- package/dist/assets/{SubTabSwitcher-9AnfZiNy-vCnU7WF-.js → SubTabSwitcher-9AnfZiNy-DBEVnhtX.js} +1 -1
- package/dist/assets/{SummaryCard-DOycYLs1-CaQB1fqx.js → SummaryCard-DOycYLs1-C5OfLiIW.js} +1 -1
- package/dist/assets/{TaskManagementPage-CehyMnY0-Cue4tauF.js → TaskManagementPage-CehyMnY0-LzT8-CCR.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-Dq2FEgFR-D3AQaZI-.js → TimeRangeSwitcher-Dq2FEgFR-CxbtXrjR.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-By3xz_-m-Bv71ZHom.js → TimeframeSwitcher-By3xz_-m-4vvkqeCS.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-a3fmbzNR-DZx2FqjJ.js → TimeframeSwitcherWithToggle-a3fmbzNR-DF955u5N.js} +1 -1
- package/dist/assets/{TopExCard-GEQpp_KY-BIUWKmJn.js → TopExCard-GEQpp_KY-BsC8DQsa.js} +1 -1
- package/dist/assets/{TopExDetailPage-hid1dQYl-vzpcxnkQ.js → TopExDetailPage-hid1dQYl-o5BnuopY.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CX4JW9WM-BshlnJb5.js → TransactionDetailPage-CX4JW9WM-gkT488m-.js} +1 -1
- package/dist/assets/{TransactionList-BixeXh4Y-DpKuzYhu.js → TransactionList-BixeXh4Y-CBLpnxhT.js} +1 -1
- package/dist/assets/{TransactionListBig-CGMMJQBd-CPWLJgiW.js → TransactionListBig-CGMMJQBd-Bi6fPPO-.js} +1 -1
- package/dist/assets/{TransactionListPage-CBVUTX4y-CTzBsfwd.js → TransactionListPage-CBVUTX4y-DvUQlgTG.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CEbHH_0r-B2rNZ7e8.js → TransactionVendorDetailPage-CEbHH_0r-vhA6GFtl.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BFd7uQnF-BDnFaRJN.js → TransferDrawerPage-BFd7uQnF-CdQTDGt-.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-Bd58hOy8-COabKjkh.js → TreasuryOverviewPage-Bd58hOy8-DrtmZ_fp.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BvArufHi-mIhWyHJJ.js → TreasuryPromoPage-BvArufHi-zGiWS1XQ.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-YLCEBbRh-Hb92GX1G.js → TreasuryStatementsPage-YLCEBbRh-rIAdAl8t.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-D_6mgQqi-YEx3tems.js → TreasuryTaxLetterPage-D_6mgQqi-DYRPEoC2.js} +1 -1
- package/dist/assets/{TrendChart-D3dT6hUb-BmrIV_Lt.js → TrendChart-D3dT6hUb-DkxaRhLn.js} +1 -1
- package/dist/assets/{TrendWithTransactions-Gj-u5KXi-_cLHr6Sd.js → TrendWithTransactions-Gj-u5KXi-BXQxjthK.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-B3eRYolj-BupHpvxs.js → UncategorizedAccountsMappingPage-B3eRYolj-CDmprZps.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DpjR9hUu-Bkk7bekK.js → UnitIntegrationPage-DpjR9hUu-B-HccwC1.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-COtszXUY-DeW-OEQ-.js → UploadAdditionalDocumentOverlay-COtszXUY-BbmaGPRn.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-C85mhuSb-Ci-aokF3.js → Vendor2FAPopup-C85mhuSb-CEUsiGHn.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DeexeWpV-PyPL7qy9.js → VendorACHDetailsPage-DeexeWpV-CWx4yTGx.js} +1 -1
- package/dist/assets/{VendorDetailPage-BrbKfsL4-C5yq1wZE.js → VendorDetailPage-BrbKfsL4-Cj99XIhO.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-DBChSKlR-DfQ9uMtB.js → VendorDomesticWireDetailsPage-DBChSKlR-CPIfYbL9.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DgBLn3fd-yxfQxsgz.js → VendorFiling1099EditablePage-DgBLn3fd-BC-C_gXr.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-jc7-OExI-CXLfVnQg.js → VendorFirstReviewPage-jc7-OExI-B_u4wn_i.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-c6isgwH2-rWvjTHMm.js → VendorInternationalWireDetailsPage-c6isgwH2-G6KTzCh7.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CywCx8-0-toI88yyC.js → VendorInternationalWireSwiftDetailsPage-CywCx8-0-BuJYqFug.js} +1 -1
- package/dist/assets/{VendorsAccountsSection--VfdAF3H-C0MWVdaQ.js → VendorsAccountsSection--VfdAF3H-CNAOxlvC.js} +1 -1
- package/dist/assets/{VerifyDevice-CaifjdR8-oDnQadr1.js → VerifyDevice-CaifjdR8-B6dVM-BL.js} +1 -1
- package/dist/assets/{VideoPlayer-BVR9LPmm-C0OY9hGQ.js → VideoPlayer-BVR9LPmm-B4UxpKEs.js} +2 -2
- package/dist/assets/{VideoPopup-BEXc8o78-BfKdRFKO.js → VideoPopup-BEXc8o78-DJiZW-Cs.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CboqfxzC-Df6JGLWB.js → WarningsDrawerPage-CboqfxzC-gF7sCXHr.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Dujj0-XC-D3Dn9J7C.js → ZeniAccountDetailPage-Dujj0-XC-V9rgFIsn.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage--SMJDGvC-D8iSNbC5.js → ZeniAccountListViewPage--SMJDGvC-CZS6XXwc.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DqLJVQ5t-CpI_x0eJ.js → ZeniAccountNavBarPieces-DqLJVQ5t-CkX8FMny.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BVjJvWsA-eagcbJWN.js → ZeniAccountPromoPage-BVjJvWsA-B4Bz7FjR.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-Dvxst8RT-RZ48F_0V.js → ZeniAccountSetupPage-Dvxst8RT-Dv9aj6me.js} +1 -1
- package/dist/assets/{ZeniCopyright-B88k3pkr-CwZenhhP.js → ZeniCopyright-B88k3pkr-BvEC_X2s.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-1DS0MsTI-DcvYtFGr.js → ZeniTransferAmountSlider-1DS0MsTI-DXZHqv18.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-B14A9z81.js → add-to-wallet-DgdBD8_G-D178ysGy.js} +1 -1
- package/dist/assets/{analytics-C6L7hlHG.js → analytics-D090O6Wm.js} +1 -1
- package/dist/assets/{analyticsHelper-DKc66BYi.js → analyticsHelper-CW9XC1-j.js} +1 -1
- package/dist/assets/{analyticsHelper-DmujELNG-ClL2XzYx.js → analyticsHelper-DmujELNG-CdoVsqKC.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-4-pP5pik.js → arrow-south-east-round-PEovUgvH-Ccxih1KW.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-D30iL0YR.js → auto-transfer-rule-mbafm5D3-CaIDNTCx.js} +1 -1
- package/dist/assets/{chartTypes-DRiSljvE-CrLsLRjf.js → chartTypes-DRiSljvE-DHGd6p3G.js} +1 -1
- package/dist/assets/{commonDimensions-BDftm0gJ-Bk927TMF.js → commonDimensions-BDftm0gJ-CtNxdt96.js} +1 -1
- package/dist/assets/{constants-B1dh_xIn.js → constants-B1WOPvRN.js} +1 -1
- package/dist/assets/{core-CadaPWsO.js → core-BCGhSsNP.js} +1 -1
- package/dist/assets/{dash.all.min-BwAm2K21.js → dash.all.min-DQU9jzwW.js} +1 -1
- package/dist/assets/{detailCommon-BGgE4mE3-BEh9p6sH.js → detailCommon-BGgE4mE3-BIZKCRTc.js} +1 -1
- package/dist/assets/{downloadPdf-DCQ9vVZs-DnysTBvz.js → downloadPdf-DCQ9vVZs-BAK1KQub.js} +1 -1
- package/dist/assets/{empty-BVIRhP6J.js → empty-BFpyIT14.js} +1 -1
- package/dist/assets/{empty-Co20hejg.js → empty-Db_Oj0CQ.js} +1 -1
- package/dist/assets/epic-BhAddVo8.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-B8pnTsjV.js → gift-box-Cmt9OgIZ-BVmGGIyo.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CgpIivOh.js → graphic-no-data-l-DU4J8fDt-BUSuwQOu.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-Bbm3dmZD.js → graphic-no-data-net-burn-l-CzmycA0m-9rVTKZNa.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BttIiMDC.js → handshake-BPg58FML-DBfm_e1t.js} +1 -1
- package/dist/assets/{index-CiMyMhgu.js → index-BGhFLU7w.js} +6 -6
- package/dist/assets/{index-sRtT3LWH.js → index-BpEXgtW2.js} +1 -1
- package/dist/assets/{index-CnYBBjVQ.js → index-CrL4860P.js} +1 -1
- package/dist/assets/{index-sbaC-tND.js → index-DOvOS8E_.js} +1 -1
- package/dist/assets/{index-DBJcoW1J.js → index-DT-oXxhz.js} +1 -1
- package/dist/assets/{index-6sWe2DhR.js → index-DuKH4leN.js} +1 -1
- package/dist/assets/{index-4dPdvww9.js → index-RjyLdqZN.js} +1 -1
- package/dist/assets/{lexical-DEI4_j9X.js → lexical-CtZYfzDm.js} +1 -1
- package/dist/assets/{liveblocks-D92pTRaw.js → liveblocks-DjrSQGDL.js} +1 -1
- package/dist/assets/{lottie-Dv5hJ5mA.js → lottie-QlMyEFez.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-CXP8ZZTG-vSJ6j19m.js → mapLoadingInProgressToTreeNode-CXP8ZZTG-DEpSFHGZ.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZSP-VcP-CrMDUoxM.js → mapSectionWithAcOnlyToTreeNode-BZSP-VcP-woXs_v4t.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Bc1S_1ej-BemzQbL5.js → mapSpacerToTreeNode-Bc1S_1ej-D8Xyxewi.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-ClgcHX26-Bi0tXnM_.js → mapTimeframeBalancesToTreeNode-ClgcHX26-CH6aCNop.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cwp98PMa-DQxUPxNn.js → mapTimeframeBalancesToTreeNode-Cwp98PMa-D47kQKR9.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-FlWaHbgN.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-ExH9IzF0.js} +1 -1
- package/dist/assets/{mui-D2MqZYRi.js → mui-8xKzSljO.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-CycRTeYU.js → page-detail-CWX5S47F-DjAUkIIu.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-C3-g-fgb.js → radio-default-CiSgisfh-DioVIMbJ.js} +1 -1
- package/dist/assets/{react-D2dXMlhh.js → react-1fNkcXJk.js} +1 -1
- package/dist/assets/{react-Bbwv1dSd.js → react-5bc96E7k.js} +2 -2
- package/dist/assets/{react-UOVhoe0Z.js → react-BpMq70Jz.js} +1 -1
- package/dist/assets/{react-CeQlQsdb.js → react-C26MaKuf.js} +1 -1
- package/dist/assets/{react-CSxJXI_i.js → react-CQVfZdRf.js} +1 -1
- package/dist/assets/{react-Bv_vNAf8.js → react-CvSzLYZW.js} +1 -1
- package/dist/assets/{react-B3z6gyiL.js → react-DEufTa0Y.js} +1 -1
- package/dist/assets/{react-BnUDmuTB.js → react-euUD_2CS.js} +1 -1
- package/dist/assets/{recharts-t7V-Kaqf.js → recharts-BnXj3KRI.js} +1 -1
- package/dist/assets/{sentry-DMKAGVXl.js → sentry-C9BQzslk.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DKC5YbXI.js → shield-DOlUxcFf-DfgTXsyM.js} +1 -1
- package/dist/assets/{toCOABalancesWithID--oEGymMJ-DIxvxTaj.js → toCOABalancesWithID--oEGymMJ-DkNt3ShR.js} +1 -1
- package/dist/assets/{toChartData-CavJzP6f-Bu_YRbEM.js → toChartData-CavJzP6f-MNPPYJmI.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-BdGoUwcv.js → transaction-placeholder-CpOwZAMG-DvtWJS0D.js} +1 -1
- package/dist/assets/{uploadAttachment-BuVCsq0Q-C2wm0oAH.js → uploadAttachment-BuVCsq0Q-S-SyFEfz.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-BgNLcFfw.js → uploadReceipts-CPw64UYa-BH5K-sl5.js} +1 -1
- package/dist/assets/{url-CnqqWgIy.js → url-MazUlenF.js} +1 -1
- package/dist/assets/{url-DsW1BPwo.js → url-WfClTpIP.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DVYx_Wdi.js → useLongPress-GCK2COYQ-DGIP6WpU.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-D20AQITY.js → usp-line-BBd1wKwW-CVrOUZlu.js} +1 -1
- package/dist/assets/{utils-BWiizB9D.js → utils-zYB6z_it.js} +1 -1
- package/dist/assets/{zeni-epic-state-DjAFCaxy.js → zeni-epic-state-D9zDRHOK.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-zEIEcSQa.js +0 -1
- package/dist/assets/epic-IoIkBJiH.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as At,a7 as Mt,q as Rt,d as Pt,ca as Bt,y as m,F as Xe,gc as Nt,ge as Lt,gf as _t,V as t,cm as ze,cn as Ae,co as Me,bz as Re,aM as y,bm as Ot,dr as Wt,gg as Et,gr as Pe,o as a,gh as Be,fd as b,gk as w,fg as x,aK as Ne,fc as Le,b as K,gm as _e,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Gt,L as Yt,a as Ht,B as Jt,ak as et,b7 as tt,p as U,al as qt,bS as Zt,ag as Qt,gI as Xt,gE as ei,c,cf as ti,cT as ii}from"./index-CiMyMhgu.js";import{a as p}from"./sentry-DMKAGVXl.js";import{n as r}from"./mui-D2MqZYRi.js";import{a as ai}from"./liveblocks-D92pTRaw.js";import{bL as ri,bP as oi,FB as ni}from"./zeni-epic-state-DjAFCaxy.js";import li from"./InvoiceUploadSection-DomquLut-C6XQxVf3.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CadaPWsO.js";import"./lottie-Dv5hJ5mA.js";import"./analytics-C6L7hlHG.js";import"./recharts-t7V-Kaqf.js";import"./lexical-DEI4_j9X.js";import"./utils-BWiizB9D.js";import"./AttachmentView-DSP80cjm-D7w4ZtT4.js";import"./uploadReceipts-CPw64UYa-BgNLcFfw.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]="59b0722f-68b8-4ab3-88c5-839fe1f060c8",e._sentryDebugIdIdentifier="sentry-dbid-59b0722f-68b8-4ab3-88c5-839fe1f060c8")}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])},ci={formTitle:new Ht("h6Regular","h5Regular")},la=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:re,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:pe,deleteReimbursement:ot,cancelAndDeleteReport:ue,handleZeniLogoClick:nt,onAddNewRule:he})=>{const d=At(),lt=Mt().analytics,o=Rt(),ye=Pt(),[st,z]=p.useState(!1),[G,Y]=p.useState(!1),[dt,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ct]=p.useState(null),[mt,N]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>di(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const pt=()=>{V()};Bt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=s.labelWidth.value(o),A=s.largeLabelWidth.value(o),we=Xe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:L}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=_?.code==="paid",xt=$e?_:O?.code=="approved"&&W?.code?W:O,$=mi(e.remiDetails),M=O?.code=="approved"&&W?.code?W:O,E=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{at()},vt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},jt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ri(oi(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??jt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!It,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=xt?.code,Ct=si(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:F}=p.useContext(Nt),{threads:R,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>R.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[R]).length,zt=p.useCallback((l,n)=>{F(n),N(!1)},[F,N]);p.useEffect(()=>{te?.threadId!=null&&R.length>0&&!D&&(F(te.threadId),Ce(null))},[te,R,D,F,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},P=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:B,children:[st?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:vt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ai,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Mi,{onClick:()=>nt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Pi,{children:[u?t.jsxs(Bi,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),N(!0),lt.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ni,{})]}):null,t.jsx(Li,{size:o,onClick:()=>pt(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ri,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Vi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,M?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E}),P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ki,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(li,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:re,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(Ei,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,M?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null,P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(bi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(gi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(xi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(hi,{children:[i.thisExpenseReview," ",t.jsx(yi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&rt(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:A},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:A},text:l.transactionDate?.format(fe.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:A},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?Ne("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:A},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:A},text:l.transactionDate?.format(fe.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?Ne("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(Wi,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ui,{})]}),$e||E===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,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:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,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:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Tt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(fi,{children:t.jsxs(ki,{windowSize:o,children:[!P&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(Di,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(ae,{onClick:ft,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(ae,{onClick:$t,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ii,{windowSize:o,children:[!P&&Ie?t.jsx(ji,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!P&&Dt===!0?t.jsx(Ti,{windowSize:o,showEditIcon:Ie,children:t.jsx(vi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:mt,allowComposer:!0,drawerTitle:ht,threads:R,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??xe,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:yt,replyComposerPlaceholder:gt,threadResolve:bt,threadUnResolve:wt},onThreadClick:(l,n)=>zt(l,n),onCloseAllThreadsDrawer:()=>N(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},mi=e=>{const C=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:ie.deleted.color,bgColor:ie.deleted.bgColor,borderColor:ie.deleted.borderColor,code:"deleted"}},pi=r.div`
|
|
1
|
+
import{av as At,a7 as Mt,q as Rt,d as Pt,ca as Bt,y as m,F as Xe,gc as Nt,ge as Lt,gf as _t,V as t,cm as ze,cn as Ae,co as Me,bz as Re,aM as y,bm as Ot,dr as Wt,gg as Et,gr as Pe,o as a,gh as Be,fd as b,gk as w,fg as x,aK as Ne,fc as Le,b as K,gm as _e,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Gt,L as Yt,a as Ht,B as Jt,ak as et,b7 as tt,p as U,al as qt,bS as Zt,ag as Qt,gI as Xt,gE as ei,c,cf as ti,cT as ii}from"./index-BGhFLU7w.js";import{a as p}from"./sentry-C9BQzslk.js";import{n as r}from"./mui-8xKzSljO.js";import{a as ai}from"./liveblocks-DjrSQGDL.js";import{bL as ri,bP as oi,FB as ni}from"./zeni-epic-state-D9zDRHOK.js";import li from"./InvoiceUploadSection-DomquLut-CutCF8wG.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-BCGhSsNP.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./recharts-BnXj3KRI.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./AttachmentView-DSP80cjm-BrHb-fdX.js";import"./uploadReceipts-CPw64UYa-BH5K-sl5.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]="59b0722f-68b8-4ab3-88c5-839fe1f060c8",e._sentryDebugIdIdentifier="sentry-dbid-59b0722f-68b8-4ab3-88c5-839fe1f060c8")}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])},ci={formTitle:new Ht("h6Regular","h5Regular")},la=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:re,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:pe,deleteReimbursement:ot,cancelAndDeleteReport:ue,handleZeniLogoClick:nt,onAddNewRule:he})=>{const d=At(),lt=Mt().analytics,o=Rt(),ye=Pt(),[st,z]=p.useState(!1),[G,Y]=p.useState(!1),[dt,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ct]=p.useState(null),[mt,N]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>di(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const pt=()=>{V()};Bt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=s.labelWidth.value(o),A=s.largeLabelWidth.value(o),we=Xe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:L}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=_?.code==="paid",xt=$e?_:O?.code=="approved"&&W?.code?W:O,$=mi(e.remiDetails),M=O?.code=="approved"&&W?.code?W:O,E=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{at()},vt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},jt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ri(oi(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??jt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!It,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=xt?.code,Ct=si(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:F}=p.useContext(Nt),{threads:R,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>R.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[R]).length,zt=p.useCallback((l,n)=>{F(n),N(!1)},[F,N]);p.useEffect(()=>{te?.threadId!=null&&R.length>0&&!D&&(F(te.threadId),Ce(null))},[te,R,D,F,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},P=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:B,children:[st?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:vt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ai,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Mi,{onClick:()=>nt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Pi,{children:[u?t.jsxs(Bi,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),N(!0),lt.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ni,{})]}):null,t.jsx(Li,{size:o,onClick:()=>pt(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ri,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Vi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,M?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E}),P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ki,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(li,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:re,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(Ei,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,M?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null,P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(bi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(gi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(xi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(hi,{children:[i.thisExpenseReview," ",t.jsx(yi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&rt(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:A},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:A},text:l.transactionDate?.format(fe.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:A},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?Ne("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:A},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:A},text:l.transactionDate?.format(fe.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?Ne("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(Wi,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ui,{})]}),$e||E===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,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:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,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:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Tt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(fi,{children:t.jsxs(ki,{windowSize:o,children:[!P&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(Di,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(ae,{onClick:ft,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(ae,{onClick:$t,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ii,{windowSize:o,children:[!P&&Ie?t.jsx(ji,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!P&&Dt===!0?t.jsx(Ti,{windowSize:o,showEditIcon:Ie,children:t.jsx(vi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:mt,allowComposer:!0,drawerTitle:ht,threads:R,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??xe,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:yt,replyComposerPlaceholder:gt,threadResolve:bt,threadUnResolve:wt},onThreadClick:(l,n)=>zt(l,n),onCloseAllThreadsDrawer:()=>N(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},mi=e=>{const C=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:ie.deleted.color,bgColor:ie.deleted.bgColor,borderColor:ie.deleted.borderColor,code:"deleted"}},pi=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{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-
|
|
1
|
+
import{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-BGhFLU7w.js";import{a as j}from"./sentry-C9BQzslk.js";import{n as r}from"./mui-8xKzSljO.js";import{FA as je,bT as be}from"./zeni-epic-state-D9zDRHOK.js";import{f as fe}from"./VideoPopup-BEXc8o78-DJiZW-Cs.js";import{M as v}from"./usp-line-BBd1wKwW-CVrOUZlu.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./VideoPlayer-BVR9LPmm-B4UxpKEs.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]="2796cf0c-4848-410a-9a56-dd73a2a6d0b2",i._sentryDebugIdIdentifier="sentry-dbid-2796cf0c-4848-410a-9a56-dd73a2a6d0b2")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",E="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{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-
|
|
1
|
+
import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-BGhFLU7w.js";import{a as o}from"./sentry-C9BQzslk.js";import{n as i}from"./mui-8xKzSljO.js";import{bJ as mt}from"./zeni-epic-state-D9zDRHOK.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-COtszXUY-BbmaGPRn.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="3692d705-6575-4d0f-8391-33be6fed44f0",e._sentryDebugIdIdentifier="sentry-dbid-3692d705-6575-4d0f-8391-33be6fed44f0")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-
|
|
1
|
+
import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-BGhFLU7w.js";import{a as b}from"./sentry-C9BQzslk.js";import{G5 as K}from"./zeni-epic-state-D9zDRHOK.js";import{u as Q}from"./ReviewOverlay-CruJ9O84-C1Nn7-W1.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./mui-8xKzSljO.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="e916d6f0-7831-404d-8139-65bad502c33c",e._sentryDebugIdIdentifier="sentry-dbid-e916d6f0-7831-404d-8139-65bad502c33c")}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:g,currentSubTab:y}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,E=()=>{const{title:m,description:C}=Y(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={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:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-
|
|
1
|
+
import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-BGhFLU7w.js";import{n as d}from"./mui-8xKzSljO.js";import{a as s}from"./sentry-C9BQzslk.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]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=d(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as _e,cb as te,ab as we,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-
|
|
1
|
+
import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as _e,cb as te,ab as we,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-BGhFLU7w.js";import{a as u,S as ue}from"./sentry-C9BQzslk.js";import{n as d}from"./mui-8xKzSljO.js";import{R as O,I as Be}from"./CollapsableReportTable-hL_Ycouc-uf2_k_Pr.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]="eaf9b130-52c5-47c7-bc4f-42775b2fb916",e._sentryDebugIdIdentifier="sentry-dbid-eaf9b130-52c5-47c7-bc4f-42775b2fb916")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ae=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Te=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ae(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(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 ke({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ve(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,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-CiMyMhgu.js";import{a as T,S as K}from"./sentry-DMKAGVXl.js";import{n as _}from"./mui-D2MqZYRi.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-DjAFCaxy.js";import{m as z,l as q}from"./analyticsHelper-DmujELNG-ClL2XzYx.js";import{x as Ne}from"./ReportTableViewSelector-C8e6IEWt--jlW7QpR.js";import{a as se,p as Me}from"./TimeRangeSwitcher-Dq2FEgFR-D3AQaZI-.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-a3fmbzNR-DZx2FqjJ.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-DB-qx46O-BzRX_iWf.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-hL_Ycouc-CWDILu02.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BZSP-VcP-CrMDUoxM.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-ClgcHX26-Bi0tXnM_.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-FlWaHbgN.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-CXP8ZZTG-vSJ6j19m.js";import"./liveblocks-D92pTRaw.js";import"./core-CadaPWsO.js";import"./recharts-t7V-Kaqf.js";import"./lottie-Dv5hJ5mA.js";import"./analytics-C6L7hlHG.js";import"./lexical-DEI4_j9X.js";import"./utils-BWiizB9D.js";import"./TimeframeSwitcher-By3xz_-m-Bv71ZHom.js";import"./page-detail-CWX5S47F-CycRTeYU.js";import"./AccountRow-BM2kGWyR-CJCg6x0x.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]="32ce034d-0d1c-4dd4-a2a7-6420ea6d9fd5",e._sentryDebugIdIdentifier="sentry-dbid-32ce034d-0d1c-4dd4-a2a7-6420ea6d9fd5")}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=M("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??M("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=M("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(j({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:M("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=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(j({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($e({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(j({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(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
|
|
1
|
+
import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-BGhFLU7w.js";import{a as T,S as K}from"./sentry-C9BQzslk.js";import{n as _}from"./mui-8xKzSljO.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-D9zDRHOK.js";import{m as z,l as q}from"./analyticsHelper-DmujELNG-CdoVsqKC.js";import{x as Ne}from"./ReportTableViewSelector-C8e6IEWt-B1X6y91F.js";import{a as se,p as Me}from"./TimeRangeSwitcher-Dq2FEgFR-CxbtXrjR.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-a3fmbzNR-DF955u5N.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-DB-qx46O-Di0XX-7b.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BZSP-VcP-woXs_v4t.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-ClgcHX26-CH6aCNop.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-ExH9IzF0.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-CXP8ZZTG-DEpSFHGZ.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./TimeframeSwitcher-By3xz_-m-4vvkqeCS.js";import"./page-detail-CWX5S47F-DjAUkIIu.js";import"./AccountRow-BM2kGWyR-CEX7zEFS.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]="32ce034d-0d1c-4dd4-a2a7-6420ea6d9fd5",e._sentryDebugIdIdentifier="sentry-dbid-32ce034d-0d1c-4dd4-a2a7-6420ea6d9fd5")}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=M("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??M("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=M("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(j({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:M("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=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(j({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($e({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(j({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(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-
|
|
1
|
+
import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-BGhFLU7w.js";import{a as P,S as ee}from"./sentry-C9BQzslk.js";import{n as x}from"./mui-8xKzSljO.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-DRiSljvE-DHGd6p3G.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID--oEGymMJ-DkNt3ShR.js";import{V as Z}from"./toChartData-CavJzP6f-MNPPYJmI.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-BnXj3KRI.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]="116dbca2-0973-45bb-9dcb-f4d21bf0bc51",e._sentryDebugIdIdentifier="sentry-dbid-116dbca2-0973-45bb-9dcb-f4d21bf0bc51")}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,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as le,f4 as Mt,f5 as At,f6 as Bt,f7 as Ft,aK as M,f8 as Rt,aM as j,f9 as Lt,fa as Ae,fb as Be,fc as Fe,b as H,fd as O,p as S,fe as zt,ff as E,fg as _,fh as Nt,fi as Ot,bQ as Re,o as n,aO as Et,c as s,F as _t,ah as Wt,b$ as Zt,a as Vt,B as Yt,fj as qt,cf as Gt,ak as se,al as ce,fk as Ht,fl as Ut,bg as Kt,l as Qt,b7 as Jt,fm as Xt,ap as et,bH as en,ag as tt,br as tn,fn as nn}from"./index-CiMyMhgu.js";import{a as Z}from"./sentry-DMKAGVXl.js";import{n as a}from"./mui-D2MqZYRi.js";import{bo as Le,bm as ze,bH as I,bN as an,Fp as ln,bL as oe,bP as on}from"./zeni-epic-state-DjAFCaxy.js";import{t as rn,o as dn}from"./LowBalancePopup-DVS-w3b7-CXJHrLHV.js";import{S as W}from"./LabeledText-axaAGyUS-BpEJBxD4.js";import"./liveblocks-D92pTRaw.js";import"./core-CadaPWsO.js";import"./recharts-t7V-Kaqf.js";import"./lottie-Dv5hJ5mA.js";import"./analytics-C6L7hlHG.js";import"./lexical-DEI4_j9X.js";import"./utils-BWiizB9D.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]="f711a571-f7e3-4ce8-94da-6619ea2d80da",e._sentryDebugIdIdentifier="sentry-dbid-f711a571-f7e3-4ce8-94da-6619ea2d80da")}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 Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),A=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,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=f&&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,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!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);Z.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,q=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,q,e.isBillMarkedForRetry),wt=()=>g?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=g?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&&G(!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,G]=Z.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:()=>{G(!1),ne()},onClickAway:()=>{G(!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:Y?.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(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),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(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsx(K,{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(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{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(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(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(Ge,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(W,{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(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(W,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(W,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(W,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(W,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{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(Ve,{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:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,q,d)}},primaryBtn:{label:We(b,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,q,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[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})]})},We=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,f,A,T)=>f?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
|
|
1
|
+
import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as le,f4 as Mt,f5 as At,f6 as Bt,f7 as Ft,aK as M,f8 as Rt,aM as j,f9 as Lt,fa as Ae,fb as Be,fc as Fe,b as H,fd as O,p as S,fe as zt,ff as E,fg as _,fh as Nt,fi as Ot,bQ as Re,o as n,aO as Et,c as s,F as _t,ah as Wt,b$ as Zt,a as Vt,B as Yt,fj as qt,cf as Gt,ak as se,al as ce,fk as Ht,fl as Ut,bg as Kt,l as Qt,b7 as Jt,fm as Xt,ap as et,bH as en,ag as tt,br as tn,fn as nn}from"./index-BGhFLU7w.js";import{a as Z}from"./sentry-C9BQzslk.js";import{n as a}from"./mui-8xKzSljO.js";import{bo as Le,bm as ze,bH as I,bN as an,Fp as ln,bL as oe,bP as on}from"./zeni-epic-state-D9zDRHOK.js";import{t as rn,o as dn}from"./LowBalancePopup-DVS-w3b7-DZeFvNAP.js";import{S as W}from"./LabeledText-axaAGyUS-B-Q4astZ.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="f711a571-f7e3-4ce8-94da-6619ea2d80da",e._sentryDebugIdIdentifier="sentry-dbid-f711a571-f7e3-4ce8-94da-6619ea2d80da")}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 Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),A=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,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=f&&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,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!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);Z.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,q=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,q,e.isBillMarkedForRetry),wt=()=>g?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=g?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&&G(!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,G]=Z.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:()=>{G(!1),ne()},onClickAway:()=>{G(!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:Y?.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(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),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(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsx(K,{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(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{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(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(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(Ge,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(W,{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(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(W,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(W,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(W,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({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(W,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{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(Ve,{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:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,q,d)}},primaryBtn:{label:We(b,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,q,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[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})]})},We=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,f,A,T)=>f?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-CruJ9O84-CVyRQtbr.js → ReviewOverlay-CruJ9O84-C1Nn7-W1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,ak as j,cy as W,m as R,ag as b,bf as D,c as n,eg as G,u as _,iR as q,k0 as A}from"./index-
|
|
1
|
+
import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,ak as j,cy as W,m as R,ag as b,bf as D,c as n,eg as G,u as _,iR as q,k0 as A}from"./index-BGhFLU7w.js";import{n as t}from"./mui-8xKzSljO.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]="f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53",e._sentryDebugIdIdentifier="sentry-dbid-f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53")}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])},F={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:k},onCloseOverlay:E,onCloseReviewItem:M})=>{const a=B();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:E,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:a,children:[i.jsxs(J,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:O(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!k}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-fC3byzzv-Da5EXkAB.js → RoleWithToolTip-fC3byzzv-DvgcIN_v.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eL as f,eM as h,V as s,bQ as g,o as i,aM as n,F as x,am as y,ag as c}from"./index-
|
|
1
|
+
import{eL as f,eM as h,V as s,bQ as g,o as i,aM as n,F as x,am as y,ag as c}from"./index-BGhFLU7w.js";import{n as l}from"./mui-8xKzSljO.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]="f880c637-61c4-47f9-a13f-f4e73109bbc2",e._sentryDebugIdIdentifier="sentry-dbid-f880c637-61c4-47f9-a13f-f4e73109bbc2")}catch{}})();const{hyphen:d}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC as _e,V as a,ab as Fe,cm as Pe,cn as Be,co as Ne,aO as qe,ij as Re,ik as We,F as ge,a9 as he,il as me,im as Ue,cO as ze,q as $e,iB as Ge,gG as re,c as R,p as Se,y as De,cE as Ke,io as He,ip as Qe,iq as Ye,o as _}from"./index-
|
|
1
|
+
import{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC as _e,V as a,ab as Fe,cm as Pe,cn as Be,co as Ne,aO as qe,ij as Re,ik as We,F as ge,a9 as he,il as me,im as Ue,cO as ze,q as $e,iB as Ge,gG as re,c as R,p as Se,y as De,cE as Ke,io as He,ip as Qe,iq as Ye,o as _}from"./index-BGhFLU7w.js";import{a as f}from"./sentry-C9BQzslk.js";import{n as U}from"./mui-8xKzSljO.js";import{FT as Ze,FU as Xe}from"./zeni-epic-state-D9zDRHOK.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-NSt1juSD-DIpN7xpp.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="447daf8c-87b0-478a-9a63-82521a2d9139",e._sentryDebugIdIdentifier="sentry-dbid-447daf8c-87b0-478a-9a63-82521a2d9139")}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{aN as F,ig as Y,gB as ke,ew as Ie,ih as Ae,a8 as Je,ii as we,cB as Le,cC as Me,V as a,ab as Ve,cm as Pe,cn as _e,co as Fe,aO as Be,ij as $e,ik as Ne,F as Se,a9 as ie,il as he,im as Ue,cO as qe,q as ze,gG as pe,c as X,p as Re,y as We,io as Ke,ip as Ge,iq as He,o as w}from"./index-
|
|
1
|
+
import{aN as F,ig as Y,gB as ke,ew as Ie,ih as Ae,a8 as Je,ii as we,cB as Le,cC as Me,V as a,ab as Ve,cm as Pe,cn as _e,co as Fe,aO as Be,ij as $e,ik as Ne,F as Se,a9 as ie,il as he,im as Ue,cO as qe,q as ze,gG as pe,c as X,p as Re,y as We,io as Ke,ip as Ge,iq as He,o as w}from"./index-BGhFLU7w.js";import{a as D}from"./sentry-C9BQzslk.js";import{n as P}from"./mui-8xKzSljO.js";import{FT as Qe,FU as Ye,bL as Xe}from"./zeni-epic-state-D9zDRHOK.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-NSt1juSD-DIpN7xpp.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.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]="1549131b-2f79-4df2-9a1c-28efafca9fb1",e._sentryDebugIdIdentifier="sentry-dbid-1549131b-2f79-4df2-9a1c-28efafca9fb1")}catch{}})();const U={labelWidth:new We(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,d as Z,V as t,ir as ie,is as le,a as oe,it as xe,dN as fe,fc as ye,b as I,F as N,iu as we,iq as be,o as i,y as b,p as j,l as $e,a9 as re,dJ as je,cm as Se,co as ke,cO as Q,cW as ee,cU as ve,iv as G,iw as De,b1 as Ce,ix as Me,cq as ze,iy as Ee,c as h,ak as E,b7 as Le,cn as Oe,an as pe,cX as Ie,a$ as ne,ek as Ae,aO as Ve,iz as V,gb as Te,aK as Fe,iA as Je,aS as H,cY as Be,bf as Pe}from"./index-
|
|
1
|
+
import{q as A,d as Z,V as t,ir as ie,is as le,a as oe,it as xe,dN as fe,fc as ye,b as I,F as N,iu as we,iq as be,o as i,y as b,p as j,l as $e,a9 as re,dJ as je,cm as Se,co as ke,cO as Q,cW as ee,cU as ve,iv as G,iw as De,b1 as Ce,ix as Me,cq as ze,iy as Ee,c as h,ak as E,b7 as Le,cn as Oe,an as pe,cX as Ie,a$ as ne,ek as Ae,aO as Ve,iz as V,gb as Te,aK as Fe,iA as Je,aS as H,cY as Be,bf as Pe}from"./index-BGhFLU7w.js";import{n as o,c as B}from"./mui-8xKzSljO.js";import{a as C}from"./sentry-C9BQzslk.js";import{bh as U,FV as Ne}from"./zeni-epic-state-D9zDRHOK.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]="fd17678c-2cbf-4bfd-8d37-1122928ab47a",e._sentryDebugIdIdentifier="sentry-dbid-fd17678c-2cbf-4bfd-8d37-1122928ab47a")}catch{}})();const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(_e,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ue,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(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:R(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(Ke,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(qe,{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:R(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(Ve,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(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(Ge,{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 qe({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},_e=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,He=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{DO as Jf,DP as qt,DQ as Kf,iN as ot,hv as xl,iP as Ye,hs as Xf,hz as ql,DR as Ca,hB as Qf,hC as eh,DS as Vt,DT as Lt,h0 as th,DU as jr,DV as ea,cO as rh,f2 as ta,e$ as Ir,f7 as rt,f5 as nh,DW as Ll,DX as kl,hQ as ih,hN as oh,DY as ah,h$ as sh,hW as Pa,hT as uh,hI as ch,DZ as lh,dJ as fh,cU as hh,i$ as Nl,D_ as dh,bL as Or,hF as ja,hK as ph,oL as Dl,iO as xr,D$ as Ne,ib as ra,E0 as mh,j5 as gh,B as Re,E1 as na,E2 as yh,gZ as vh,E3 as bh,E4 as Ml,E5 as wh,nj as xa,mQ as Eh,E6 as Sh,mW as Hr,E7 as _h,mY as Rh,E8 as Ze,mN as Oh,cB as Ih,iS as Fl,iT as Ul,iR as ia,iQ as oa,iU as Th,E9 as Ah,nm as Ch,Ea as Ph,n3 as jh,ng as xh,Eb as qh,n7 as Lh,Ec as kh,Ed as St,Ee as aa,Ef as Nh,Eg as Dh,lQ as Mh,lW as Bl,Eh as $l,gu as Fh,CU as Vl,Ei as Uh,CO as Bh,Ej as $h,Ek as Vh,lZ as Gh,El as zh,CZ as Hh,CN as Zh,qg as Gl,Em as Zr,En as zl,A0 as sa,zO as Wh,A3 as Hl,zR as Yh,Eo as Jh,zW as Kh,zI as Xh,zL as Qh,Ep as ed,A7 as td,zZ as rd,c4 as nd,bd as id,Eq as od,Er as lt,Es as ad,Et as sd,Eu as ud,i3 as Jo,ba as cd}from"./zeni-epic-state-
|
|
1
|
+
import{DO as Jf,DP as qt,DQ as Kf,iN as ot,hv as xl,iP as Ye,hs as Xf,hz as ql,DR as Ca,hB as Qf,hC as eh,DS as Vt,DT as Lt,h0 as th,DU as jr,DV as ea,cO as rh,f2 as ta,e$ as Ir,f7 as rt,f5 as nh,DW as Ll,DX as kl,hQ as ih,hN as oh,DY as ah,h$ as sh,hW as Pa,hT as uh,hI as ch,DZ as lh,dJ as fh,cU as hh,i$ as Nl,D_ as dh,bL as Or,hF as ja,hK as ph,oL as Dl,iO as xr,D$ as Ne,ib as ra,E0 as mh,j5 as gh,B as Re,E1 as na,E2 as yh,gZ as vh,E3 as bh,E4 as Ml,E5 as wh,nj as xa,mQ as Eh,E6 as Sh,mW as Hr,E7 as _h,mY as Rh,E8 as Ze,mN as Oh,cB as Ih,iS as Fl,iT as Ul,iR as ia,iQ as oa,iU as Th,E9 as Ah,nm as Ch,Ea as Ph,n3 as jh,ng as xh,Eb as qh,n7 as Lh,Ec as kh,Ed as St,Ee as aa,Ef as Nh,Eg as Dh,lQ as Mh,lW as Bl,Eh as $l,gu as Fh,CU as Vl,Ei as Uh,CO as Bh,Ej as $h,Ek as Vh,lZ as Gh,El as zh,CZ as Hh,CN as Zh,qg as Gl,Em as Zr,En as zl,A0 as sa,zO as Wh,A3 as Hl,zR as Yh,Eo as Jh,zW as Kh,zI as Xh,zL as Qh,Ep as ed,A7 as td,zZ as rd,c4 as nd,bd as id,Eq as od,Er as lt,Es as ad,Et as sd,Eu as ud,i3 as Jo,ba as cd}from"./zeni-epic-state-D9zDRHOK.js";import{j as N}from"./liveblocks-DjrSQGDL.js";import{a as K,p as X,d as Zl,c as Wl,g as ld}from"./sentry-C9BQzslk.js";import{d as ht,q as qr,e as pe,z as be,f as fd,W as hd,y as Pe,g as Lr,i as dd,N as Je,F as kt,j as dt,k as at,m as kr,o as tt,r as pd,X as md,R as nt,t as ua,v as it,Z as gd,Y as yd,c as Wr,A as vd,w as Yl,K as bd,x as Jl,O as Kl,C as Ko,E as wd,S as Ed,H as Sd,G as Xl,I as _d,J as Rd,P as Od,Q as Id,T as Td,U as Ad,_ as Cd,$ as Pd,a0 as jd,a1 as xd,a2 as qd,a3 as Ld,a4 as kd}from"./index-BGhFLU7w.js";import{f as Nd}from"./analyticsHelper-CW9XC1-j.js";import{i as me,m as Ee,n as je,o as Dd,g as re,h as ge,N as Ct,R as Ve,k as se,u as ca,j as Xo}from"./core-BCGhSsNP.js";import{D as Nr,n as Ie,S as pt}from"./mui-8xKzSljO.js";import{a as ve,b as Md,c as Fd,d as Ud,e as la,f as Bd,g as $d,h as Vd,i as mt,j as Gd,k as jt,l as Dr,m as zd,n as Nt,o as Hd}from"./utils-zYB6z_it.js";import{r as fa}from"./empty-Db_Oj0CQ.js";import{r as Zd,a as Wd,b as Yd,c as Jd}from"./constants-B1WOPvRN.js";import{r as Dt,a as Kd}from"./index-CrL4860P.js";import{r as Xd}from"./index-DOvOS8E_.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./url-WfClTpIP.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]="c27c24f0-c524-4be5-a0c8-1a98cb1be497",e._sentryDebugIdIdentifier="sentry-dbid-c27c24f0-c524-4be5-a0c8-1a98cb1be497")}catch{}})();const Qd={overlayWidth:new Pe(100,100,50)},{common:{strings:qa}}=kt.getLocalizedStrings();function ep(e,n){return{headerActions:{onTabChange:o=>{const a=at(o),i=dt(o);pe.trackCockpitTabClicked(i),n.navigate(`../../${a}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,a)=>{e(Vt({uiState:{filterText:a}}))},onFiltersChange:(o,a)=>{a.categories!=null&&a.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:a.categories.map(i=>i.matchingOperator).join(qa.comma),logic:a.categoryCombinationOperator,parameter:a.categories.map(i=>i.field).join(qa.comma)}}),e(Vt({uiState:{filters:a}}))}}},healthPageActions:{onRowClick:o=>{e(ql(o))},onColumnSortConfigChanged:(o,a)=>{e(Vt({uiState:{sortKey:o,sortOrder:a}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(Vt({uiState:{filters:o}}))}}}}function tp(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const rp=ge(tp,ep)(dd);function Yr({isDrawerOpen:e}){const n=me(),o=Ee(),a=ht(),i=qr(),{companyId:t}=je(),[r,s]=Dd(),[d,l]=K.useState(!1),h=re(b=>Jf(b)),f=re(b=>qt(b)),{additionalChurnFactors:c}=re(b=>Kf(b)),{selectedCompanyDetail:w,selectedCompanyId:p,localFormDataAndStatusByCompanyId:y}=h,m=re(b=>b.companyViewState.zeniUsers.fetchState),u=re(b=>b.companyHealthMetricConfigViewState);if(K.useEffect(()=>{const b=g=>g==="Not-Started"||g==="Error";h.fetchState==="Completed"?o(ot(!1)):b(h.fetchState)&&(o(xl()),b(m)&&o(Ye()),b(u.fetchState)&&o(Xf()))},[h.fetchState,u.fetchState]),K.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(ql(t)),w!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[h.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||p!=null&&w!=null?N.jsx(Nr,{anchor:"right",open:p!=null,PaperProps:{style:{width:Qd.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(Ca()),children:N.jsx(fd,{roomId:`cockpit_${p}`,autoConnect:!0,children:N.jsx(hd,{onSaveClick:()=>{p!=null&&o(eh(p))},onSaveChangesToLocalStore:b=>{h.selectedCompanyId!=null&&o(Qf({companyId:h.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(Ca()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:c})})}):null,N.jsx(rp,{healthView:h,managementView:f,navigate:n,mixpanelHMUrl:Lr.mixpanelHMUrl})]})}const Ql=(e,n)=>{const o=[...e??[]];return o.push(n),o},np=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ip=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Ct,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function op(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Yr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Yr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Yr,{})})})]})}const ap={drawerLeftMargin:new Pe(0,0,240)};function Mt(e){const{isOpen:n,drawerLeftMargin:o,children:a,onClose:i}=e,t=qr(),r=o?.valuePx(t)??ap.drawerLeftMargin.valuePx(t),s=ht();return N.jsx(Nr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:a})}const sp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(up,{children:N.jsx(kr,{size:"ExtraLarge",start:!0})}):null,up=Ie.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|