@zeniai/web-cockpit-ui 1.14.31-qa → 1.14.32-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-Fde1dKEE-ClHuiozj.js → ACHDetailsPage-MP6kdpXK-Cin5vYxN.js} +1 -1
- package/dist/assets/{AIPerformancePage-Bs5THWYc-CWq9DSLI.js → AIPerformancePage-BhOaFmfv-DCRtVIyb.js} +1 -1
- package/dist/assets/{AccountInfoPage-RfSxSqwO-BMADZRXK.js → AccountInfoPage-D9Ft_CT9-CUD4qbPd.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-B71R-Zwv-DWuLEc7_.js → AccountInfoPageContent-DvWx52e0-D9gXo091.js} +30 -30
- package/dist/assets/{AccountLockedInfoModal-DlGy7hCO-DaOeHJFS.js → AccountLockedInfoModal-B1_3C1ER-DGCTA7OW.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DTrfkE6D-ZLXAo2bS.js → AccountReconDetailsDrawerPage-D9e7qhm0-B1t_x7P2.js} +1 -1
- package/dist/assets/{AccountRow-BvVLesQX-DuM9h4QN.js → AccountRow-CiIWoLq3-F6m6e5Xn.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CTnnvK5j-BnL8_Ume.js → AccountsPromoCardStack-CC72plKm-DV-DNWnY.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CLUhuFqF-BTm-E20j.js → AddAddressForCardDrawer-CIj76DoU-BugVt0Ax.js} +1 -1
- package/dist/assets/{AddToWalletPage-CaFsage9-CsgOt18R.js → AddToWalletPage-B3vdkyWl-C3sTnRDu.js} +1 -1
- package/dist/assets/{AgingReportsPage-CSXklvpd-K_dEqaiS.js → AgingReportsPage-CbkMxxO_-bDdYzvvz.js} +1 -1
- package/dist/assets/{AllUserItems-CmUQ8TXS-DoodbUV5.js → AllUserItems-DJo9kLSI-aOrBm21L.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-84cXDU4G-BgNcIori.js → ApAgingDetailPage-DcAh6DLg-YRnOeaE1.js} +1 -1
- package/dist/assets/{AppBasePage-BDbp1AwL-YEKaRs6j.js → AppBasePage-DztnPkfs-_Sh0VXAS.js} +1 -1
- package/dist/assets/{AppDrawerContent-DsHWZHTq-C9EaHR_P.js → AppDrawerContent-DDmKn21i-C68rKgNZ.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-CUyYkAnf-AmoKaY38.js → ApprovalRulesSettingsPage-Di8tAJ8K-CDv_E-0W.js} +3 -3
- package/dist/assets/{ArAgingChart-DCm6irVY-C1wWLFp8.js → ArAgingChart-tm5ZiNuY-C229BTlQ.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BH6S-Bw1-Yv3Xk9wg.js → ArAgingDetailPage-B3JQ08nH-C3xUIMRe.js} +1 -1
- package/dist/assets/{AttachmentView-Brzj2Q5Z-D2jswIXL.js → AttachmentView-p8mBqYjm-BaF-qc0k.js} +1 -1
- package/dist/assets/{BankAccountSection-BzU60cnl-apkw5tnU.js → BankAccountSection-AuQLRvdb-Bwa0DuGQ.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CIOH3Mki-DYCjBJr0.js → BankAccountWarningSection-HvUMABu0-DrqrNnez.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-foX6AYJv-DAcwccoz.js → BankConnectionsSettingsPage-D61w90F9-DCAF3Rvl.js} +1 -1
- package/dist/assets/{BillDetailPage-8oT9j8aF-CO0FLlvQ.js → BillDetailPage-nqHoph6T-BaIucFqg.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BbP7w3Le-8LpAqFPY.js → BillPayApprovalRuleDetailPage-fZnmOmyN-BE94bEje.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-qc9iC-NQ-DnQo6JKr.js → BillPayApprovalRulesPage-Bd87v4ca-D8uVymLg.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BN2d0mzN-CObJeBUP.js → BillPayPromoPage-CNiTD_mM-Dj_ToxT_.js} +2 -2
- package/dist/assets/{BillPaySetUpPage-ClwhGooY-CqAC3jVL.js → BillPaySetUpPage-BUSwkzqv-0u4Y1nRn.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BuzFBmJe-BGiAJeIa.js → BillingSettingsPage-aPRvtlqA-D2cPcuYt.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DwoVLT2E-BTCNWiqY.js → BillsBulkReviewDrawerPage-BU3VuxEm-ByErXz92.js} +1 -1
- package/dist/assets/{BoxItem-DGcDpjPH-UBu8GXel.js → BoxItem-CZKWkdxd-BeOlY6b0.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DCK5vw9z-CeFxGjU_.js → BusinessVerificationPage-CeDGi-RH-DBq4N4qO.js} +1 -1
- package/dist/assets/{CardNumberSubText-1UH6gxDX-CCzlwEZ-.js → CardNumberSubText-1BRQQyfd-DTVfoanD.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DfgZwHJ5-QowQLYMB.js → CashbackDetailPage-V-W_U5k1-BFabFlQi.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-CfJpv6eX-BXZHf63X.js → ChargeCardDetailPage-BP-zAMYI-CpMkI6_j.js} +1 -1
- package/dist/assets/{ChargeCardListPage-KG5T96QT-C4mLrGEU.js → ChargeCardListPage-DORW9YE4-C9A5hHUd.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BA_SavRN-m71IS5pO.js → ChargeCardListTable-C32mZrwY-C-_ZN5EL.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BvvI_FI_-DhF-AvfF.js → ChargeCardPromoPage-CE4kH4Js-C0K_9IRw.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DlGonXXj-8JllBEhH.js → ChargeCardSetupPage-CumpB2GQ-D9_LS2bE.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Dc5L_OJs-DAiVGDIS.js → ChargeCardStatementsPage-DPIAjww0-qtfYIF5i.js} +1 -1
- package/dist/assets/{ChargeCardUtils-BWziLkjh-SgUqEb-w.js → ChargeCardUtils-Wp4Ko18L-zmLd-lJK.js} +1 -1
- package/dist/assets/{ChaseOverlay-DLWANypx-Cf9veaT3.js → ChaseOverlay-BGZfbx0H-Cy6SXtpe.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-kZYhPHtf-BixqrruP.js → CheckDepositDrawerPage-Bl52b4SW-D474gpb4.js} +4 -4
- package/dist/assets/{CollapsableReportTable-DVqHzGEX-DagKqASf.js → CollapsableReportTable-B0wI9SM1-DLN2kcqg.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BqYIssuG-DID8hhZ-.js → CompanyOfficerDetailsSection-DyOVRvtQ-D3TSBaYy.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BxslzStL-CmJAKGch.js → CompanyPassportCard-C_YUK3R3-Tw3Mhb57.js} +1 -1
- package/dist/assets/{CompanyPassportPage-CPi8RAvl-DCKi4eub.js → CompanyPassportPage-QFJ0G7X7-9FRZMTlm.js} +1 -1
- package/dist/assets/{CompleteProfile-DlFsU14w-CuPXB5O1.js → CompleteProfile-DVE16v3y-JdgrMYZk.js} +1 -1
- package/dist/assets/{ConfettiBurst-B1kAMEUd-D-UQFMzw.js → ConfettiBurst-BA8BvtO--ChjQJAxk.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Cy1BGhSa-CO2qDjik.js → CreateOrEditVendorPage-ncBGwfXK-DYgCQOxT.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-COr9Gv3G-8ZIi8qKU.js → CreditCardPaymentDrawerPage-DqEVQgMx-DmTsuXGo.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-Bz7dFqgv-C6j_bIvk.js → CreditCardPaymentPlgSection-vmErttTD-BxhyQLa5.js} +1 -1
- package/dist/assets/{CurrencySelectField-7NKtn0l3-BzDlIdmo.js → CurrencySelectField-BEb19UaA-ayd8ypxk.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Cy4XCic4-CIXslByd.js → CustomerOnboardingActivationPage-L4l1ybmh-CjOAphEc.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BB4D77z8-22xRu68e.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BO7UbSi2-BlcuZ_6w.js → CustomerOnboardingDetailPageSkeleton-D3Zm658F-BjyCIV27.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CT6sP-9h-oqmXd9CM.js → CustomerOnboardingNoStepsPage-BXsJFpEX-BO1c66C-.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-5MYk64aq-DuOzuEPb.js → CustomerOnboardingPage-D3zpI1df-BpsmxlbR.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-3Xn4YWer-VEFJGfWU.js → CustomerOnboardingProductSuitePage-DjVZfC2C-rASo3ZM3.js} +1 -1
- package/dist/assets/{Dashboard-Cj54Ajvh-B9rQ4Xvx.js → Dashboard-wY0FneRs-K0H1LO4c.js} +1 -1
- package/dist/assets/{DashboardReportPage-1Xxwd7r4-BsC5YqC-.js → DashboardReportPage-CMgr0CSc-CTqQy7Z3.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BDdekw-W-jWRc7fzP.js → DashboardSidebarBackgroundAnimation-B73UBY5T-DxfAcbVQ.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-O0Y1Uyev-3rxk2Tgd.js → DepositAccTransactionItem-DrqBG940-U_s0mHE8.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BM7cCQ80-BrXXmrWS.js → DepositAccTransactionListPage-2xDjOUwm-CmHU0p_6.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DBfeJpd6-nncEc59g.js → DomesticWireDetailsPage-vRHD5DmW-v4Oe5SWK.js} +1 -1
- package/dist/assets/{DownloadOverlay-Bdcf_eNH-Bkfdj7iF.js → DownloadOverlay-D_UoB4Xy-DPm0LxIQ.js} +1 -1
- package/dist/assets/{DrawerPage-C6yRyHN0-B8-vWTaD.js → DrawerPage-ijHe0bCp-CyRbPalv.js} +1 -1
- package/dist/assets/{EditPeoplePage-BQOF3_3e-D8iTXs4A.js → EditPeoplePage-BehcmP1s-CtCgWObL.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-AaCfgSvl-BslHANfT.js → EditReimbursementDetailPage-Cz82Vz26-BkH-yQZq.js} +1 -1
- package/dist/assets/{EntityDetailPage-CpnhNxUj-CRvkb1_r.js → EntityDetailPage-CN-ewzjy-D8rWv-Yn.js} +1 -1
- package/dist/assets/{EntitySummarySection-Cbs2sVOA-DrT3jALD.js → EntitySummarySection-B4ozhtlU-BbJmZsFm.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-DsFaV21--ClUAWS-x.js → ExpenseAutomationOverviewPage-BmNuSoUs-B4ZMF43g.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-Qqxr0c85-CUxWe2oW.js → ExpenseAutomationPage-Cz3JsW-E-Cz15ZpzI.js} +1 -1
- package/dist/assets/{ExpressPayPage-DnirOg4L-C26EtR5y.js → ExpressPayPage-CgrGtZ4F-BicqIV-J.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-FUhbdAun-CXsgzHAe.js → FeaturePreviewPage-Dk_c37Rm-CXHB1WFu.js} +1 -1
- package/dist/assets/{FollowStepsSection-yRPH-oPE-CMLCJ38B.js → FollowStepsSection-BVi7m38_-C99RMZ_B.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CehKF4E7-nZCexIVG.js → GlobalReviewListPage-DiZGC9B1-DIzsLBmo.js} +1 -1
- package/dist/assets/{HelpButton-RZ-fwr_E-eP-4djbC.js → HelpButton-DiIoYeXn-FbkReN34.js} +1 -1
- package/dist/assets/{InformationCardStack-xPyrNDbD-DDlu5ECK.js → InformationCardStack-C8-4dhWR-Bdte_JFA.js} +1 -1
- package/dist/assets/{InsightsCardStack-C3gaVuK--CE5QLlZL.js → InsightsCardStack-BKm0dSeJ-YxbfeRpK.js} +1 -1
- package/dist/assets/{InsightsSection-B0gP1Xg5-CJ0Gs-I_.js → InsightsSection-C9MHOCQd-B3v5Vy0i.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BaIo3swC-DjTky8Wi.js → IntegrationsSettingsPage-4qlL5Dsx-NL-7Vuhq.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-D7ZvdVsm-CwzKh-yZ.js → InternationalWireSwiftDetailsPage-DqCtPykV-BUWM-1ua.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-DTfGAwue-Cgj3u0TF.js → InternationalWireVerificationPage-Cl-p0inO-BPrmH8Q-.js} +1 -1
- package/dist/assets/{InviteFormPage-DyzvHp8v-kDyjvezP.js → InviteFormPage-L6j0rOBW-DZzXMjr6.js} +1 -1
- package/dist/assets/{InvitePageListView-B-b2PHGs-BVPOkpYN.js → InvitePageListView-KYjMIc4q-LkWl7l25.js} +1 -1
- package/dist/assets/{InvitePeoplePage-BVkYBm1J-eqZHQKTR.js → InvitePeoplePage-CbZqVsTp-CPZYz4n0.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DmzesLS5-Dk01H7Ou.js → InvoiceUploadSection-DZC4oscG-DoaD8XBg.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-bcbmrthc-FDh3XwIO.js → IssueChargeCardPage-DMdZCfqA-2_AAwzJw.js} +13 -13
- package/dist/assets/{LabeledAddressValue-CUaHyhJT-DdDiFr9J.js → LabeledAddressValue-CBOrzSsG-zl4Cn7F6.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BEUKGthW-C8lsxiuW.js → LabeledAddressValueField-YuLcra47-D1rCVkct.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-YwxCct8v-CCups8s4.js → LabeledControlledCheckBoxField-BoXsUqpR-BDprT0oc.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BwuHrmMF-DPFjF8LG.js → LabeledCreatableSingleSelectField-CQPkrdRe-BP0IH1kb.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Crj7HUr5-BkdyE6xm.js → LabeledDocumentField-DEeeTuVw-DjAbPGjO.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-j8eNOZBF-CSRH3P6x.js → LabeledDropDownFormattedTextField-DYRkxlY--C9ZM89bQ.js} +1 -1
- package/dist/assets/{LabeledText-CcsYXPb4-B58XqKOy.js → LabeledText-DQiR_FIX-Co4J3TbF.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-J9Ybd_t9-CMIhbuK2.js → LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-CjWMU4DS.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DAOsML-L-COLQFuLq.js → LabeledZeniRolesDropDownField-azPB8idg-BmyhVq5l.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-Cu1v-PcZ-DBwzlepY.js → LinkJETransactionPage-Ct0HcxvN-C9ALJkXZ.js} +1 -1
- package/dist/assets/{LowBalancePopup-D3mELrTy-CnKYZsH2.js → LowBalancePopup-Zvy2iURT-BHU6RUxm.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-C0hwIA8x-n8JI9CF1.js → MagicLinkACHDetailsPage-BY6pEieF-BnE5qaIA.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Bx83l_JI-BxXLW41K.js → MagicLinkDomesticWireDetailsPage-BK5RZSiS-DZf3dWg8.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CQ4Pq9QI-Cyc7Uzb9.js → MagicLinkInternationalWireDetailsPage-hK5cNiNB-B4J-Gaxj.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-KFxBnEjw-h2rrUy2B.js → MagicLinkSuccessPage-Drn_p982-z_mnlocR.js} +1 -1
- package/dist/assets/MagicLinkTitleSection-DRMHVOzF-vSOOyfRm.js +17 -0
- package/dist/assets/{MailingDetailsSection-BTR5bOR--BQ9TdoEC.js → MailingDetailsSection-DgdAYgpS-CzYOsfT_.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-BNtVtFVI-Bsr5uBwE.js → MeetingCalenderPopup-CAh7iae0-BpiINuek.js} +1 -1
- package/dist/assets/{Menu-DVvDI8Jz-B76cFDDo.js → Menu-bleLgSLu-Ccrr2YDB.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DtY7k6Q--DfBdzbsJ.js → MyBankConnectionsSettingsPage-DRxmQCbq-7MgmeMyL.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BcV3jD6N-D3ZGOWGM.js → MyPendingActivationChargeCardListPage-BYLhb47G-DdwAZhiS.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-C_I-ZF8X-BSQxZK43.js → MyProfileSettingsPage-eVfCRTfx-BNmP0sTQ.js} +1 -1
- package/dist/assets/{NavBarWithPicker-yC-TZsaQ--iIkt0SI.js → NavBarWithPicker-BE2MW7hB-DXAufzd3.js} +1 -1
- package/dist/assets/{NavigationArrow-Dj_JudmU-DWHJxhos.js → NavigationArrow-eEaMttBX-B_OAAp0o.js} +1 -1
- package/dist/assets/{NavigationDots-wokcxTuT-Jnn_aP6R.js → NavigationDots-CNwL0a7I-CifVGTqc.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-ZUbl958u-DrGnLLpu.js → NewGlobalMerchantPage-CSWqCqAC-CM5vKN1K.js} +1 -1
- package/dist/assets/{NoDataChart-CNM5HRST-Cb0_HVvk.js → NoDataChart-DNmdY5gQ-I17nHhNI.js} +1 -1
- package/dist/assets/{NoDataTable-PvZK52kg-BbhsoEPo.js → NoDataTable-DW2wAX3o-CmvIHNA2.js} +1 -1
- package/dist/assets/{NotFoundPage-5niaWMmN-BYd4k-PC.js → NotFoundPage-BMJTG-tj-KX8Yl0C8.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-dk-0bMn8-B6rrRAGy.js → NotificationSettingsPage-Vd3UvdLu-CYwoglab.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BV6TvuCb-C6sQO4sA.js → NotificationsListConfig-DbHYPEWZ-CWezw8M_.js} +1 -1
- package/dist/assets/{NotificationsPage-DuztWAM1-DyXLVAav.js → NotificationsPage-BaekDEw7-DM6qz84i.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CUBGH2s1-u-7VgXtF.js → OpExByVendorPage-DNyTA9nx-AqH3jm4s.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-gqJlDGl7.js → OverlayContainerPage-Bmu909Fo-D0brL_nl.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-1ZHc1RpS-CtWRgJ3R.js → PandLWithForecastPage-DbP4ybN4-CjX2B57O.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BSQvdoBU-CXoLALBs.js → PaymentAccountSetupBillingAddressSection-Dd4Aen8j-DhFeVMmy.js} +1 -1
- package/dist/assets/{PeoplePage-Ylcuj5d1-CM81vG5O.js → PeoplePage-B3n7ek2h-Bozbjh3K.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-Dj4IS3Cj-BDzhmoj8.js → PortfolioAllocationFormPage-CzA_c7hR-CWaP7kP_.js} +1 -1
- package/dist/assets/{PortfolioDetails-B7jTJLM1-BQZHz-th.js → PortfolioDetails-Drgv4Osg-n5MRYPkF.js} +27 -27
- package/dist/assets/{ProductsCarousel-Bf9PPJUv-CP5tmy0_.js → ProductsCarousel-BnnfJR0o-69mJVwF1.js} +1 -1
- package/dist/assets/{PromoBaseCards-D9qSvWgh-BeoDN07o.js → PromoBaseCards-BGHJivI8-iKisrOi3.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-cz-nKKlg-Da_z8-lU.js → QBOConnectionDialog-uiW9eeZu-BUSCcjkj.js} +1 -1
- package/dist/assets/{QBOSetupSection-CmXMHj44-Cjyrk7iZ.js → QBOSetupSection-DPb0VAii-CawJiqRt.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BnEe21S3-DkA2sUeZ.js → ReimbursementApprovalRuleDetailPage-Cvok7KBA-CNtIL-aY.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BccORWLU-DfU7obXe.js → ReimbursementApprovalRulesPage-C1AFF_DM-JcrRx1zz.js} +27 -27
- package/dist/assets/{ReimbursementDetailPage-Yg8E7IhJ-CQelJXlS.js → ReimbursementDetailPage-Du6R1zje-DFFAPJro.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-CHgbPWVC-BVQ5-Z6v.js → ReimbursementPromoPage-CW9eyjp9-D3Pfks5-.js} +2 -2
- package/dist/assets/{ReimbursementSetUpPage-B1kj8LDn-DD92MaO0.js → ReimbursementSetUpPage-CbPwgIqt-DD9o1r2m.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BQ5qi9Dn-BuomR8Hg.js → ReimbursementsBulkReviewDrawerPage-DmRIywf6-CkqM4nh9.js} +1 -1
- package/dist/assets/{ReloadCard-DlIrnTsb-BY_vNUij.js → ReloadCard-Dvn17Oxl-CBzKop0_.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CqDaoS8c-CQAcdaAJ.js → ReportTableViewSelector-C5_qr5qe-lIXMBIXQ.js} +1 -1
- package/dist/assets/{ReportsPage-ByiWzafl-BRkgExzQ.js → ReportsPage-BNcymVwf-ClQkz7Qq.js} +1 -1
- package/dist/assets/{RevenueChart-DWmm3p15-BueyAsgK.js → RevenueChart-DILkui6c-Bn7jhZor.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-CyF6MGeT-C1O1XCpw.js → ReviewDetailsPage-ZYzvK95X-CostS9P2.js} +1 -1
- package/dist/assets/{ReviewOverlay-yRerKmkc-D38t4as_.js → ReviewOverlay-DhUFI1ES-LUmDitH1.js} +1 -1
- package/dist/assets/{RoleWithToolTip-RCbf3dEn-Codo8TWr.js → RoleWithToolTip-_W95JBwt-D4GQ0PLV.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CqtgtYlR-ZNT8UuH_.js → ScheduleDetailsFixedAssetsPage-iQXV-V_H-BVQFXrep.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-fk9pufDB-0VIFpI1o.js → ScheduleDetailsPage-KgHwQGrw-DNkLJeLN.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-CDBYhB6L-CvRKxyV3.js → ScheduleSequenceTable-Bixq8Q7W-DZJIVO-x.js} +1 -1
- package/dist/assets/{ScreenRoutes-X6L3hNp2.js → ScreenRoutes-Ce8X3bBt.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DV1beMK--BW7sx9kw.js → SetUpAccountSection-D8FMVhkL-0Pe99EFt.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-B1XmM3EX-1Qwg7XNe.js → SetUpDefaultSection-CI0mxu3H-DcvSJDVc.js} +1 -1
- package/dist/assets/SignIn-DslenepV-CPPxlLcj.js +329 -0
- package/dist/assets/{SignInScreen-CIdqXeA7.js → SignInScreen-B1GYtWiH.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Cvin8Y_T-BUKhZj2q.js → SpendManagementListViewPage-D7SzmCmM-BJf-og4i.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Bxb8k_re-Bk7viaZL.js → SpendManagementPerTabPage-DKaDr4mu-DxptYFft.js} +1 -1
- package/dist/assets/{SpendManagementSection-hzZfy7MP-DZjUTu_u.js → SpendManagementSection-Ddfq2u6H-DmMZ9eyK.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-Vt_01EdY-DVFXzAh_.js → SpendMgmtSetupAccountSection-CPnNzjr--B78i6hxA.js} +1 -1
- package/dist/assets/{StatementItem-CtedGSII-2OTvGczb.js → StatementItem-B2uPIFUk-BwrPLJ8M.js} +1 -1
- package/dist/assets/{StatementsPage-DF3lH7Qc-B5tBXf8-.js → StatementsPage-o7MvNKvd-C1dFevGn.js} +1 -1
- package/dist/assets/{StatusSwitcher-CaRcPksH-1QSM_NSa.js → StatusSwitcher-kWLQCCwS-BcuNtj6J.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BKygkJJT-D2dogmUR.js → SubTabSwitcher-BKm9FxhL-euRzTmRU.js} +1 -1
- package/dist/assets/{SummaryCard-CYeF4N1y-qIW2m6NR.js → SummaryCard-DBMfNfN2-plAS3Det.js} +1 -1
- package/dist/assets/{TaskManagementPage-COLuZmCS-C2DnpJwK.js → TaskManagementPage-D_wjK-S2-ckyJVLkK.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-C644ynxp-JjsjQl-V.js → TimeRangeSwitcher-2vDR_AEV-D-I6mwQS.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BbW_Qw7Y-pNBsh36O.js → TimeframeSwitcher-BB3_i5V0-DSWHJLc3.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CB1wBI-I-DFHl-R1T.js → TimeframeSwitcherWithToggle-CdP0ViK8-CSTf2noq.js} +1 -1
- package/dist/assets/{TopExCard-DPpGaZIn-Bk67EDbR.js → TopExCard-BGgGFzmK-Bh9OLnE6.js} +1 -1
- package/dist/assets/{TopExDetailPage-DfOpiJZC-BiKxO0mn.js → TopExDetailPage-CbzYG54M-DO9gCz75.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CtdDWfk0-Djk1Y20T.js → TransactionDetailPage-C-CfEtCO-BGrY5UL4.js} +1 -1
- package/dist/assets/{TransactionList-DSfqo0y6-Bq9mNFmI.js → TransactionList-C0xK6_zI-BWkO5U-i.js} +1 -1
- package/dist/assets/{TransactionListBig-BzAIRZib-BIY-zcl1.js → TransactionListBig-CIX6CdX--LTkFgM7t.js} +1 -1
- package/dist/assets/{TransactionListPage-BxzuESFP-CJz917Ow.js → TransactionListPage-B7ppBJig-uGcfhXLt.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BeuTJ-Su-DrGsRf21.js → TransactionVendorDetailPage---HGdQiZ-CZOQ9lvG.js} +1 -1
- package/dist/assets/{TransferDrawerPage-C7LFULuE-C6CihRw8.js → TransferDrawerPage-DerGmul8-62lI-YY8.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-Bq8RrIjd-r3aB7El0.js → TreasuryOverviewPage-DW2gZwip-DVFW4hhW.js} +1 -1
- package/dist/assets/TreasuryPromoPage-DzqdEmPJ-CoyHUnTy.js +439 -0
- package/dist/assets/{TreasurySetupPage-GRAo0apg-DiQLyufk.js → TreasurySetupPage-Bo0HQeeU-A0y2k-4p.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-UXW5cY1W-Bw5CTSTO.js → TreasuryStatementsPage-DS_VK4WN-DmTwCwC0.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-CKVdAngp-DqHYyKPs.js → TreasuryTaxLetterPage-DgwqyL6v-B7MPhwnZ.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-DAd22QWO-Cif19tGw.js → TreasuryTransferOrReviewPage-ZrSACgLJ-CShzQj1Z.js} +1 -1
- package/dist/assets/{TrendChart-CJgYoABu-XyHdmL_e.js → TrendChart-D07k3uRr-DkExi6rv.js} +1 -1
- package/dist/assets/{TrendWithTransactions-BM-tcGwT-Cf3gyAEZ.js → TrendWithTransactions-ibwuOssC-C0qp9MFm.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DZyIF9qf-BaXQyhJx.js → UncategorizedAccountsMappingPage-D1m2Ok2e-DbU6jOlH.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-7TZUYYxR-DLBOkXL9.js → UnitIntegrationPage-BJxRjjfK-DtvhQiip.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-Dd3Y2pAp-BU820_SF.js → UploadAdditionalDocumentOverlay-DI_GZA8A-DOiCRzdE.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DrTLop5J-Dk7Qhn-B.js → Vendor2FAPopup-80vvc7gE-CZyjqzsA.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-B8_PfeKa-Dp0izCBf.js → VendorACHDetailsPage-CQcuiNPr-ZTYmcvJP.js} +1 -1
- package/dist/assets/{VendorDetailPage-C9iBBDqY-Bvy-58ny.js → VendorDetailPage-Dx_yfZDH-Dm378Xm3.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-fysbmje4-Dv547acd.js → VendorDomesticWireDetailsPage-DN5x3F_Z-XOWyPxP1.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C2X3EzEi-DS2vB2Q1.js → VendorFiling1099EditablePage-8Jz187lD-0m7mNuWb.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CSGgltVk-BwZZTtna.js → VendorFirstReviewPage-CokvYaRq-Cb9NI798.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-BwVmFwIZ-BsPBKDRE.js → VendorInternationalWireDetailsPage-lo9l2Q88-DFczs5XD.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DutDovf0-br1pq_X-.js → VendorInternationalWireSwiftDetailsPage-CPj3zrDk-DRMFLwZ9.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Cm7N7Ldk-BcoJ6IGY.js → VendorsAccountsSection-BqoW4DlP-K9mGVuVh.js} +1 -1
- package/dist/assets/{VerifyDevice-BCOflYqL-Bp0ez0yF.js → VerifyDevice-D8iPRJ3k-Didr6pca.js} +1 -1
- package/dist/assets/{VideoPopup-CkxJ6paT-C259RKqA.js → VideoPopup-SdlRHLkM-0X18VPqO.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-zuWPq5QF-WhtcMkn7.js → WarningsDrawerPage-qYWFsE3s-PgntUxKS.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-sAZ9e8xj-5GBcE6bx.js → ZeniAccountDetailPage-BL2a5Dmz-iag3jdsk.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-fDo8bxTk-DzHXogt7.js → ZeniAccountListViewPage-CWqzDWcO-BoCUgkRw.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Eybs9XUc-BmwAg5Ri.js → ZeniAccountNavBarPieces-C0MyICK2-D9pY_iW0.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-x0P7d_K_-DbStEBni.js → ZeniAccountPromoPage-CBm3w0kN-ZGm0kki_.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-VB0gAdaX-Dwj0XJaK.js → ZeniAccountSetupPage-C5VzT9lH-CmNUeSAP.js} +1 -1
- package/dist/assets/{ZeniCopyright-CnUhwDCM-CzTndN2s.js → ZeniCopyright-BUctH39C-DplfFfSP.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BfYzXeOx-zSh6qriq.js → ZeniTransferAmountSlider-q37z6XvR-Baob6Y6l.js} +1 -1
- package/dist/assets/{analyticsHelper-CTZ-nL-a-CFzAnn0o.js → analyticsHelper-B3uAu0es-QTXf1Ev3.js} +1 -1
- package/dist/assets/{analyticsHelper-uPMnBBC5.js → analyticsHelper-CXIp8rdA.js} +1 -1
- package/dist/assets/{chartTypes-OWLnffAJ-D_m8PvsV.js → chartTypes-CJmQ6FtI-XyTHIuvE.js} +1 -1
- package/dist/assets/{commonDimensions-c8aw-zb7-CFBH4gf0.js → commonDimensions-WRL2ZVK_-BkSU0Zqq.js} +1 -1
- package/dist/assets/{detailCommon-DBUzj3zg-FdAeHP_6.js → detailCommon-Dfxas1Kf-Cs5j6wK3.js} +1 -1
- package/dist/assets/{downloadPdf-B0aR-h2X-CdET6pdZ.js → downloadPdf-B1f0mDl2-DR3N1swU.js} +1 -1
- package/dist/assets/{index-BtvVIKbO.js → index-C3eIsUEB.js} +3 -3
- package/dist/assets/{mapLoadingInProgressToTreeNode-CJax_YtZ-CV6lneBT.js → mapLoadingInProgressToTreeNode-BG784RuM-D-SsN93J.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-VqMJTDgx-B1zYw951.js → mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-DFzyPyCl.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BviVg3N_-Cj2o5Gkh.js → mapSpacerToTreeNode-CcgVbOH5-C822drj0.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BwAFOLS9-Bj3_fMda.js → mapTimeframeBalancesToTreeNode-CU583ICK-BsI9dw9j.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BYa6RIX_-BMrmeby_.js → mapTimeframeBalancesToTreeNode-DTlwFauL-BnT0AYvx.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CeZ-0x9L-CNLCJsXY.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-CxzLxNpV.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-C--6IKqu-BR3uQ-Pc.js → toCOABalancesWithID-DTfegixr-INQY6aSS.js} +1 -1
- package/dist/assets/{toChartData-BVPNj-W5-CO2upoGP.js → toChartData-CH5DcWUY-CUE_ejao.js} +1 -1
- package/dist/assets/{treasuryColorHelper-C09nDlTF-DlegyoNl.js → treasuryColorHelper-BdPkQoh7-DNZcPnEX.js} +1 -1
- package/dist/assets/{uploadAttachment-BHwB8y4y-w_Eg3Mwe.js → uploadAttachment-COwu5Mqo-5xUhTy_F.js} +1 -1
- package/dist/assets/{uploadReceipts-dxsKhm9I-DtBuYK8i.js → uploadReceipts-dxsKhm9I-BfDIlt9K.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CustomerOnboardingContainerPage-BM2nnAFs-BUCWxOwW.js +0 -1
- package/dist/assets/MagicLinkTitleSection-BWWupffD-B8cCTbGV.js +0 -17
- package/dist/assets/SignIn-Cg2-0wdl-CiYZfHt5.js +0 -407
- package/dist/assets/TreasuryPromoPage-DmRzzbHr-CUepyvG0.js +0 -476
- package/dist/assets/VideoPlayer-DBJ5pGsr-BwQWf-ZE.js +0 -38
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as M,e as I,B as b,j as
|
|
1
|
+
import{u as M,e as I,B as b,j as t,aX as H,m as E,$ as S,o,C as r,t as L,a0 as z,bV as G,bX as q,bY as U,cx as V,q as l,ao as F,J as P,an as J,g as j,cu as O,aP as X,v as Y}from"./index-C3eIsUEB.js";import{n as i,b as _}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},Q=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=_.useState(!1),n=I(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return t.jsxs(Z,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(ae,{children:[t.jsxs(B,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),t.jsxs(ee,{children:[t.jsx(k,{}),t.jsx(te,{}),t.jsx(k,{})]}),c.max==null?t.jsx(ce,{}):t.jsx(B,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e?t.jsx(pe,{onClick:$}):null,t.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),t.jsx(oe,{windowSize:n,children:t.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,N)=>t.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(le,{children:a.requireText}):t.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>t.jsxs(R,{children:[t.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),h.actors.map(p=>t.jsxs(R,{children:[t.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?t.jsx(G,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Z=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -21,13 +21,13 @@ import{u as M,e as I,B as b,j as o,aX as H,m as E,$ as S,o as t,C as r,s as L,a0
|
|
|
21
21
|
justify-content: space-between;
|
|
22
22
|
text-align: center;
|
|
23
23
|
width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
|
|
24
|
-
gap: ${
|
|
24
|
+
gap: ${o.sp2};
|
|
25
25
|
`,ee=i.div`
|
|
26
26
|
align-items: center;
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: center;
|
|
29
|
-
`,
|
|
30
|
-
width: ${
|
|
29
|
+
`,te=i.div`
|
|
30
|
+
width: ${o.sp8};
|
|
31
31
|
height: 2px;
|
|
32
32
|
background-color: ${e=>e.theme.colors.primary};
|
|
33
33
|
`,k=i.div`
|
|
@@ -35,7 +35,7 @@ import{u as M,e as I,B as b,j as o,aX as H,m as E,$ as S,o as t,C as r,s as L,a0
|
|
|
35
35
|
height: 6px;
|
|
36
36
|
border-radius: 3px;
|
|
37
37
|
background-color: ${e=>e.theme.colors.primary};
|
|
38
|
-
`,
|
|
38
|
+
`,oe=i.div`
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
align-items: flex-start;
|
|
@@ -47,8 +47,8 @@ import{u as M,e as I,B as b,j as o,aX as H,m as E,$ as S,o as t,C as r,s as L,a0
|
|
|
47
47
|
|
|
48
48
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
49
49
|
|
|
50
|
-
box-shadow: ${e=>`${
|
|
51
|
-
border-radius: ${
|
|
50
|
+
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
51
|
+
border-radius: ${o.sp2};
|
|
52
52
|
|
|
53
53
|
flex: none;
|
|
54
54
|
order: 1;
|
|
@@ -59,7 +59,7 @@ import{u as M,e as I,B as b,j as o,aX as H,m as E,$ as S,o as t,C as r,s as L,a0
|
|
|
59
59
|
`,ie=i.ul`
|
|
60
60
|
${e=>`${W.stepper.style(e.windowSize)}`};
|
|
61
61
|
position: relative;
|
|
62
|
-
padding-left: ${
|
|
62
|
+
padding-left: ${o.sp6};
|
|
63
63
|
list-style: none;
|
|
64
64
|
box-sizing: initial;
|
|
65
65
|
margin: 0;
|
|
@@ -81,7 +81,7 @@ import{u as M,e as I,B as b,j as o,aX as H,m as E,$ as S,o as t,C as r,s as L,a0
|
|
|
81
81
|
justify-content: flex-start;
|
|
82
82
|
align-items: center;
|
|
83
83
|
padding-left: ${e=>s.stepperItemPaddingLeft.valuePx(e.windowSize)};
|
|
84
|
-
gap: ${
|
|
84
|
+
gap: ${o.sp1};
|
|
85
85
|
|
|
86
86
|
> div:last-of-type > span.operator:last-of-type {
|
|
87
87
|
visibility: hidden;
|
|
@@ -116,7 +116,7 @@ import{u as M,e as I,B as b,j as o,aX as H,m as E,$ as S,o as t,C as r,s as L,a0
|
|
|
116
116
|
width: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
|
|
117
117
|
height: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
|
|
118
118
|
top: ${e=>s.stepperContentTop.valuePx(e.windowSize)};
|
|
119
|
-
left: -${
|
|
119
|
+
left: -${o.sp6};
|
|
120
120
|
${Y.standardMedium.css};
|
|
121
121
|
text-align: center;
|
|
122
122
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -137,29 +137,29 @@ import{u as M,e as I,B as b,j as o,aX as H,m as E,$ as S,o as t,C as r,s as L,a0
|
|
|
137
137
|
`,ae=i.div`
|
|
138
138
|
display: flex;
|
|
139
139
|
align-items: center;
|
|
140
|
-
gap: ${
|
|
140
|
+
gap: ${o.sp2};
|
|
141
141
|
`,ne=i.div`
|
|
142
142
|
display: flex;
|
|
143
|
-
gap: ${
|
|
143
|
+
gap: ${o.sp5};
|
|
144
144
|
`,pe=i(O)`
|
|
145
|
-
width: ${
|
|
146
|
-
height: ${
|
|
145
|
+
width: ${o.sp3};
|
|
146
|
+
height: ${o.sp3};
|
|
147
147
|
cursor: pointer;
|
|
148
148
|
color: ${e=>e.theme.colors.hero};
|
|
149
149
|
&:hover {
|
|
150
150
|
color: ${j.important};
|
|
151
151
|
}
|
|
152
152
|
`,de=i(X)`
|
|
153
|
-
width: ${
|
|
154
|
-
height: ${
|
|
153
|
+
width: ${o.sp3};
|
|
154
|
+
height: ${o.sp3};
|
|
155
155
|
cursor: pointer;
|
|
156
156
|
color: ${e=>e.theme.colors.hero};
|
|
157
157
|
&:hover {
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
159
159
|
}
|
|
160
160
|
`,ce=i(J)`
|
|
161
|
-
width: ${
|
|
162
|
-
height: ${
|
|
161
|
+
width: ${o.sp4};
|
|
162
|
+
height: ${o.sp4};
|
|
163
163
|
color: ${e=>e.theme.colors.hero};
|
|
164
164
|
`,C=i.span`
|
|
165
165
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -170,13 +170,13 @@ import{u as M,e as I,B as b,j as o,aX as H,m as E,$ as S,o as t,C as r,s as L,a0
|
|
|
170
170
|
${e=>`${W.amount.style(e.windowSize)}`};
|
|
171
171
|
color: ${e=>e.theme.colors.primary};
|
|
172
172
|
word-break: break-word;
|
|
173
|
-
`,u={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Te=({approvalView:e,onBackClick:f,onEditRuleClick:x,onDeleteRuleClick:v})=>{const y=M(),g=I(),{fetchState:d,deleteStatus:n}=e,c=b.getLocalizedStrings().commonSetUp.approval,w=b.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,m=n.fetchState;return
|
|
173
|
+
`,u={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Te=({approvalView:e,onBackClick:f,onEditRuleClick:x,onDeleteRuleClick:v})=>{const y=M(),g=I(),{fetchState:d,deleteStatus:n}=e,c=b.getLocalizedStrings().commonSetUp.approval,w=b.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,m=n.fetchState;return t.jsxs(he,{children:[t.jsx(H,{title:c.approvalPageHeader,backgroundColor:y.colors.grey4,style:{zIndex:4},onBackClick:()=>{f()},source:"ReimbursementApprovalRulesPage"}),t.jsxs(me,{children:[t.jsx(we,{windowSize:g,children:w.approvalPageSubTitle}),d==="In-Progress"||d==="Not-Started"||m==="In-Progress"?t.jsx(xe,{children:t.jsx(E,{size:"ExtraLarge",start:!0})}):d==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((a,$)=>t.jsx(Q,{showDeleteBtn:$!==0,approvalRule:a,isLastSection:$===e.allApprovalRules.length-1,onEditRuleClick:x,onDeleteRuleClick:v},a.approvalRuleId)),t.jsxs(ue,{windowSize:g,onClick:()=>{x()},"data-testid":S("add-approval-rule"),children:[t.jsx(ge,{}),t.jsx($e,{children:c.addApprovalText})]})]}):null]})]})},he=i.div`
|
|
174
174
|
display: flex;
|
|
175
175
|
min-height: 100%;
|
|
176
176
|
flex-direction: column;
|
|
177
177
|
width: 100%;
|
|
178
178
|
background-color: ${e=>e.theme.colors.grey4};
|
|
179
|
-
box-shadow: ${e=>`${
|
|
179
|
+
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1}
|
|
180
180
|
${e.theme.colors.dropShadowNormal}`};
|
|
181
181
|
`,me=i.div`
|
|
182
182
|
display: flex;
|
|
@@ -206,19 +206,19 @@ import{u as M,e as I,B as b,j as o,aX as H,m as E,$ as S,o as t,C as r,s as L,a0
|
|
|
206
206
|
flex-direction: row;
|
|
207
207
|
justify-content: center;
|
|
208
208
|
align-items: center;
|
|
209
|
-
padding: ${
|
|
209
|
+
padding: ${o.sp3} ${o.sp4};
|
|
210
210
|
gap: ${e=>u.addApprovalGap.valuePx(e.windowSize)};
|
|
211
211
|
|
|
212
212
|
width: ${e=>u.width.valuePx(e.windowSize)};
|
|
213
|
-
height: ${
|
|
213
|
+
height: ${o.sp8};
|
|
214
214
|
|
|
215
215
|
background: ${e=>e.theme.colors.grey5};
|
|
216
216
|
|
|
217
217
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
218
218
|
|
|
219
|
-
box-shadow: ${e=>`${
|
|
219
|
+
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1}
|
|
220
220
|
${e.theme.colors.dropShadowNormal}`};
|
|
221
|
-
border-radius: ${
|
|
221
|
+
border-radius: ${o.sp2};
|
|
222
222
|
color: ${e=>e.theme.colors.hero};
|
|
223
223
|
box-sizing: border-box;
|
|
224
224
|
&:hover {
|
|
@@ -228,10 +228,10 @@ import{u as M,e as I,B as b,j as o,aX as H,m as E,$ as S,o as t,C as r,s as L,a0
|
|
|
228
228
|
color: ${e=>e.theme.colors.primary};
|
|
229
229
|
border-color: ${e=>e.theme.colors.primary};
|
|
230
230
|
}
|
|
231
|
-
margin-bottom: ${
|
|
231
|
+
margin-bottom: ${o.sp6};
|
|
232
232
|
`,ge=i(V)`
|
|
233
|
-
width: ${
|
|
234
|
-
height: ${
|
|
233
|
+
width: ${o.sp3};
|
|
234
|
+
height: ${o.sp3};
|
|
235
235
|
`,$e=i.div`
|
|
236
236
|
color: ${e=>e.theme.colors.hero};
|
|
237
237
|
`;export{Te as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Y as At,x as Mt,e as Rt,u as Pt,bJ as Bt,C as m,B as Ze,l as ie,fO as Nt,fQ as Lt,fR as _t,j as t,bV as ze,bX as Ae,bY as Me,$ as y,aX as Re,aK as Ot,dt as Wt,fS as Et,g1 as Pe,o as a,fT as Be,cW as b,cY as w,fW as x,a0 as Ne,cV as Le,v as F,fY as _e,a4 as Ft,p as Kt,fZ as Ut,f_ as ae,aT as Vt,f$ as Yt,a3 as Gt,J as Ht,y as Jt,s as et,ao as tt,g as K,k as qt,br as Xt,w as Qt,gg as Zt,gc as ei,q as c,bO as ti,cs as ii}from"./index-BtvVIKbO.js";import{b as p,n as r}from"./vendor-rkTZJa59.js";import{_ as ai}from"./liveblocks-CP09Cz-7.js";import ri from"./InvoiceUploadSection-DmzesLS5-Dk01H7Ou.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-BDNqpTKX.js";import"./AttachmentView-Brzj2Q5Z-D2jswIXL.js";import"./uploadReceipts-dxsKhm9I-DtBuYK8i.js";const l={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])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[J,q]=p.useState("approved"),P=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,_=e.remiDetails?.reimbursementInfo.billStatus,O=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:_?.code=="approved"&&O?.code?O:_,$=si(e.remiDetails),A=_?.code=="approved"&&O?.code?O:_,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(_t)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?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:ht}):null,ct?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:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{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(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):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(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.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(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{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,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.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(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.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:"receipt"})})}),t.jsxs(_i,{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,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.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(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.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,s.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(x,{label:{label:i.reimbursementType,width:z},text:s.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,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.department,width:I},text:s.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:w({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(x,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.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})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.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(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!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:jt,style:{width:l.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:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
1
|
+
import{Y as At,x as Mt,e as Rt,u as Pt,bJ as Bt,C as m,B as Ze,l as ie,fO as Nt,fQ as Lt,fR as _t,j as t,bV as ze,bX as Ae,bY as Me,$ as y,aX as Re,aK as Ot,dt as Wt,fS as Et,g1 as Pe,o as a,fT as Be,cW as b,cY as w,fW as x,a0 as Ne,cV as Le,v as F,fY as _e,a4 as Ft,p as Kt,fZ as Ut,f_ as ae,aT as Vt,f$ as Yt,a3 as Gt,J as Ht,y as Jt,t as et,ao as tt,g as K,n as qt,br as Xt,w as Qt,gg as Zt,gc as ei,q as c,bO as ti,cs as ii}from"./index-C3eIsUEB.js";import{b as p,n as r}from"./vendor-rkTZJa59.js";import{_ as ai}from"./liveblocks-CP09Cz-7.js";import ri from"./InvoiceUploadSection-DZC4oscG-DoaD8XBg.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-BDNqpTKX.js";import"./AttachmentView-p8mBqYjm-BaF-qc0k.js";import"./uploadReceipts-dxsKhm9I-BfDIlt9K.js";const l={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])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[J,q]=p.useState("approved"),P=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,_=e.remiDetails?.reimbursementInfo.billStatus,O=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:_?.code=="approved"&&O?.code?O:_,$=si(e.remiDetails),A=_?.code=="approved"&&O?.code?O:_,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(_t)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?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:ht}):null,ct?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:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{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(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):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(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.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(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{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,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.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(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.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:"receipt"})})}),t.jsxs(_i,{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,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.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(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.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,s.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(x,{label:{label:i.reimbursementType,width:z},text:s.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,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.department,width:I},text:s.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:w({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(x,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({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(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.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})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.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(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!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:jt,style:{width:l.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:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Y as le,u as S,e as k,a2 as ae,l as L,B as E,j as e,$ as a,aX as me,K as u,c as m,o as t,r as ce,c7 as de,a6 as Z,
|
|
1
|
+
import{Y as le,u as S,e as k,a2 as ae,l as L,B as E,j as e,$ as a,aX as me,K as u,c as m,o as t,r as ce,c7 as de,a6 as Z,n as pe,C as xe,g as z,c9 as he,a7 as ue,ap as ge,q as we}from"./index-C3eIsUEB.js";import{b as j,n as r}from"./vendor-rkTZJa59.js";import{x as je}from"./MeetingCalenderPopup-CAh7iae0-BpiINuek.js";import{m as be}from"./VideoPopup-SdlRHLkM-0X18VPqO.js";import{M as v}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",K="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",$e={midContainerMarginBottom:new xe(we[5],44)},fe=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -81,4 +81,4 @@ import{Y as le,u as S,e as k,a2 as ae,l as L,B as E,j as e,$ as a,aX as me,K as
|
|
|
81
81
|
margin: ${t.sp3} auto;
|
|
82
82
|
max-width: 772px;
|
|
83
83
|
color: ${i=>i.theme.colors.hero};
|
|
84
|
-
`,s=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,ve=()=>{const i=S(),o=k();return e.jsxs(N,{windowSize:o,children:[e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:K,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(V,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.simplestText.bold}),e.jsx(f,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.aiPoweredText.bold}),e.jsx(f,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.multiLevelApprovalText.bold}),e.jsx(f,{children:s.multiLevelApprovalText.regular})]})]})]})]})},
|
|
84
|
+
`,s=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,ve=()=>{const i=S(),o=k();return e.jsxs(N,{windowSize:o,children:[e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:K,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(V,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.simplestText.bold}),e.jsx(f,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.aiPoweredText.bold}),e.jsx(f,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.multiLevelApprovalText.bold}),e.jsx(f,{children:s.multiLevelApprovalText.regular})]})]})]})]})},Te=()=>{const i=S(),o=k();return e.jsxs(N,{windowSize:o,children:[e.jsxs(V,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.simplestText.bold}),e.jsx(b,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.aiPoweredText.bold}),e.jsx(b,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.multiLevelApprovalText.bold}),e.jsx(b,{children:s.multiLevelApprovalText.regular})]})]})]}),e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:K,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},Fe=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:W,videoUrl:X,analytics:x,onSetupButtonClick:H,onCreateNewRemiButtonClick:J,onBackClick:_,onSetupReimbursementSuccess:T,onClickMenuIcon:ee})=>{const C=le(),[ie,se]=j.useState(!1),[te,P]=j.useState(!1),re=S(),l=k(),{remiTermsDetails:h}=i,R=ae(h?.fetchStatus.fetchState),oe=L.hasReimbursementAdminLevelAccess(C.loggedInUserRoleMap),w=L.hasReimbursementAccess(C.loggedInUserRoleMap)&&!oe,ne=!!o?.isReimbursementTOSAccepted,B=!!i.companyRemiInfo?.isReimbursementEnabled,U=w?B?s.employeeAcceptPromoText:s.employeePendingPromoText:s.promoText;j.useEffect(()=>{R==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&T?.()},[R,T,h?.fetchStatus]);const A=()=>{x?.trackReimbursementPromoScheduleDemo(),P(!0)};return e.jsxs(fe,{children:[ie===!0?e.jsx(be,{onCancelClick:()=>{se(!1)},videoUrl:X,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(je,{onCancelClick:()=>{P(!1)},meetingUrl:W,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(me,{title:s.title,backgroundColor:re.colors.grey4,onBackClick:_,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:ee,source:"ReimbursementPromoPage"}),e.jsxs(ye,{windowSize:l,children:[l==="small"?e.jsx(ke,{children:U}):e.jsx(Se,{children:U}),l==="small"?e.jsx(ve,{}):e.jsx(Te,{}),e.jsx(ze,{children:w?e.jsx(e.Fragment,{children:B&&!ne?e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:s.scheduleDemoButton,onClick:A,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:s.orText}),e.jsx(u,{variant:"primary",label:s.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:J,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[s.terms.createTerms1,e.jsx(m,{href:s.terms.tosUrl,linkText:s.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),s.terms.terms2,e.jsx(m,{href:s.terms.privacyPolicyUrl,linkText:s.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),s.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:s.scheduleDemoButton,onClick:A,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:s.orText}),e.jsx(u,{variant:"primary",label:s.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:H,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[s.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,s.terms.terms3]})]})})]})]})};export{Fe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ee,e as Ve,a2 as N,a as qe,ca as Ge,B as Te,l as Je,a8 as be,j as t,cP as Ke,g as J,C as r,aX as Ze,m as Ye,F as Xe,dO as Qe,aS as et,dE as tt,a4 as it,o as a,q as n,bO as nt,cn as ot,cv as at,f2 as ve,f3 as ke,fN as lt,K as rt,$ as $e,J as Pe,be as st,w as ct,aP as dt}from"./index-
|
|
1
|
+
import{u as Ee,e as Ve,a2 as N,a as qe,ca as Ge,B as Te,l as Je,a8 as be,j as t,cP as Ke,g as J,C as r,aX as Ze,m as Ye,F as Xe,dO as Qe,aS as et,dE as tt,a4 as it,o as a,q as n,bO as nt,cn as ot,cv as at,f2 as ve,f3 as ke,fN as lt,K as rt,$ as $e,J as Pe,be as st,w as ct,aP as dt}from"./index-C3eIsUEB.js";import{b as o,n as i}from"./vendor-rkTZJa59.js";import{D as ut}from"./HelpButton-DiIoYeXn-FbkReN34.js";import{q as je}from"./SetUpDefaultSection-CI0mxu3H-DcvSJDVc.js";import{f as mt}from"./SpendMgmtSetupAccountSection-CPnNzjr--B78i6hxA.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DI_GZA8A-DOiCRzdE.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-CAh7iae0-BpiINuek.js";import"./ChargeCardUtils-Wp4Ko18L-zmLd-lJK.js";import"./CreditCardPaymentPlgSection-vmErttTD-BxhyQLa5.js";import"./ChaseOverlay-BGZfbx0H-Cy6SXtpe.js";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 r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:K}){const l=Ve(),D=Ee(),{formState:{errors:Z},trigger:Y}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:R,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[C,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=C===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:ke(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:S.name,textColor:ke(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:C||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Lt,{children:C?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,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{B as M,j as b,bV as V,bX as q,bY as W,jk as X,ab as Y,l as z}from"./index-
|
|
1
|
+
import{B as M,j as b,bV as V,bX as q,bY as W,jk as X,ab as Y,l as z}from"./index-C3eIsUEB.js";import{b as f}from"./vendor-rkTZJa59.js";import{p as H}from"./ReviewOverlay-DhUFI1ES-LUmDitH1.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:n,spendManagement:{reimbursement:B}}=M.getLocalizedStrings(),o=B.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[j,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(j===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,j,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,$=()=>{const{title:u,description:T}=Z(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},F={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,z.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:U}=G(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},N=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:$,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(V,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(H,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=X(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:Y("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},G=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as h,j as r,_ as a,$ as m,ai as j,B as w,a5 as l,a_ as x,w as g,o as c,aj as C}from"./index-
|
|
1
|
+
import{u as h,j as r,_ as a,$ as m,ai as j,B as w,a5 as l,a_ as x,w as g,o as c,aj as C}from"./index-C3eIsUEB.js";import{n as s,b as d}from"./vendor-rkTZJa59.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function S({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(C,{children:({height:i,width:n})=>r.jsx(f,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Q,e as ie,bJ as me,a as fe,j as o,p as ge,B as X,bK as ee,F as xe,C as O,a4 as be,o as n,bL as ye,bM as we,bN as _e,bO as $e,bP as ve,
|
|
1
|
+
import{u as Q,e as ie,bJ as me,a as fe,j as o,p as ge,B as X,bK as ee,F as xe,C as O,a4 as be,o as n,bL as ye,bM as we,bN as _e,bO as $e,bP as ve,n as ce,bQ as Ce,q as p,w as ke,O as K,a_ as je,a8 as Ne,t as Se,b2 as Ie}from"./index-C3eIsUEB.js";import{b as f,f as de,n as d}from"./vendor-rkTZJa59.js";import{W as P,R as Oe}from"./CollapsableReportTable-B0wI9SM1-DLN2kcqg.js";const z=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function Be(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(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Fe=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{e as U,u as G,B as y,Y as he,l as _,j as r,$ as k,bg as fe,aZ as me,aX as ge,C as v,o as C,a6 as _e,m as be,bh as Se,q as w,N as B,O as J,bi as we,a8 as Ce,aD as ye,b0 as xe}from"./index-BtvVIKbO.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as H}from"./analyticsHelper-CTZ-nL-a-CFzAnn0o.js";import{h as Oe}from"./ReportTableViewSelector-CqDaoS8c-CQAcdaAJ.js";import{a as K,p as Re}from"./TimeRangeSwitcher-C644ynxp-JjsjQl-V.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-CB1wBI-I-DFHl-R1T.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-Bdcf_eNH-Bkfdj7iF.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-DVqHzGEX-DagKqASf.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-VqMJTDgx-B1zYw951.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BwAFOLS9-Bj3_fMda.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CeZ-0x9L-CNLCJsXY.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-CJax_YtZ-CV6lneBT.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-BbW_Qw7Y-pNBsh36O.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-BvVLesQX-DuM9h4QN.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ne({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ne({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({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 ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({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 ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ie(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=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 Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(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=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(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 Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(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=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(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 je(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=Le({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=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}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(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(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 Ee(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(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(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 v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
1
|
+
import{e as U,u as G,B as y,Y as he,l as _,j as r,$ as k,bg as fe,aZ as me,aX as ge,C as v,o as C,a6 as _e,m as be,bh as Se,q as w,N as B,O as J,bi as we,a8 as Ce,aD as ye,b0 as xe}from"./index-C3eIsUEB.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as H}from"./analyticsHelper-B3uAu0es-QTXf1Ev3.js";import{h as Oe}from"./ReportTableViewSelector-C5_qr5qe-lIXMBIXQ.js";import{a as K,p as Re}from"./TimeRangeSwitcher-2vDR_AEV-D-I6mwQS.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-CdP0ViK8-CSTf2noq.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-D_UoB4Xy-DPm0LxIQ.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-B0wI9SM1-DLN2kcqg.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-DFzyPyCl.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CU583ICK-BsI9dw9j.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-CxzLxNpV.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-BG784RuM-D-SsN93J.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-BB3_i5V0-DSWHJLc3.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-CiIWoLq3-F6m6e5Xn.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ne({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ne({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({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 ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({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 ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ie(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=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 Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(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=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(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 Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(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=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(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 je(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=Le({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=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}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(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(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 Ee(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(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(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 v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${C.sp2};
|