@zeniai/web-cockpit-ui 1.14.91-qa → 1.14.92-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ACHDetailsPage-B6sY0jN6-BewHWiw_.js +21 -0
- package/dist/assets/{AIPerformancePage-BWK9fXrz-rCBrp1JL.js → AIPerformancePage-BWK9fXrz-XnvE7-6d.js} +2 -2
- package/dist/assets/{AccountInfoPage-DfT5DDiZ-D0CVlv97.js → AccountInfoPage-DfT5DDiZ-DND7ENQF.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-nUi26Aww-D32CRcv0.js → AccountInfoPageContent-nUi26Aww-Bwa-HIUO.js} +11 -11
- package/dist/assets/{AccountLockedInfoModal-BROj4bmE-DFG-AArf.js → AccountLockedInfoModal-BROj4bmE-DDKXU8OA.js} +5 -5
- package/dist/assets/{AccountReconDetailsDrawerPage-C-3FFCQZ-DSRssRwi.js → AccountReconDetailsDrawerPage-C-3FFCQZ-D-TpqzuY.js} +7 -7
- package/dist/assets/{AccountRow-BM2kGWyR-CUEabI22.js → AccountRow-BM2kGWyR-CEX7zEFS.js} +10 -10
- package/dist/assets/{AccountsPromoCardStack-CNCG5uPJ-D2Rks2IH.js → AccountsPromoCardStack-CNCG5uPJ-Y2aCPflf.js} +5 -5
- package/dist/assets/AddAddressForCardDrawer-BuAtFO1w-e0LZrU5l.js +6 -0
- package/dist/assets/{AddToWalletPage-DyrcWdBZ-BOmGChQh.js → AddToWalletPage-DyrcWdBZ-CkK2fnuE.js} +17 -17
- package/dist/assets/{AgingReportsPage-CmluxKG3-CDFaJsCv.js → AgingReportsPage-CmluxKG3-B2hpJNM3.js} +7 -7
- package/dist/assets/{AllUserItems-CVZZU-J3-CQYclBqY.js → AllUserItems-CVZZU-J3-Ce2827d_.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-CoNxqskm-D1SMh_uB.js → ApAgingDetailPage-CoNxqskm-Bna_-NVA.js} +1 -1
- package/dist/assets/{AppBasePage-CTGNzUtN-CsSqlHFb.js → AppBasePage-CTGNzUtN--WSyuM8w.js} +4 -4
- package/dist/assets/{AppDrawerContent-59dQVUxu-BK18x8lU.js → AppDrawerContent-59dQVUxu-Bv7_BAFF.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-XEW5sdNg-B6n0n-AH.js → ApprovalRulesSettingsPage-XEW5sdNg-DmNI-bwP.js} +1 -1
- package/dist/assets/{ArAgingChart-D3Ym4gVE-BMi6xDeV.js → ArAgingChart-D3Ym4gVE-DmsLk005.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-BLEJSLJJ-Cks0yhvG.js → ArAgingDetailPage-BLEJSLJJ-C4CejQvS.js} +1 -1
- package/dist/assets/{AttachmentView-DSP80cjm-CgZkBq6h.js → AttachmentView-DSP80cjm-BrHb-fdX.js} +7 -7
- package/dist/assets/{BankAccountSection-DRrNcA79-CfWXJkCL.js → BankAccountSection-DRrNcA79-DN0L_Nus.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Ub-gsfhE-pYaBnYwo.js → BankAccountWarningSection-Ub-gsfhE-CWRw85Ya.js} +9 -9
- package/dist/assets/{BankConnectionsSettingsPage-BcTtJTbg-Bmy_bjMC.js → BankConnectionsSettingsPage-BcTtJTbg-Cq7UhfIX.js} +9 -9
- package/dist/assets/{BillDetailPage-D7AQyxwr-DdsAIdzy.js → BillDetailPage-D7AQyxwr-C4hQ51aV.js} +2 -2
- package/dist/assets/{BillPayApprovalRuleDetailPage-BQWGENO8-B3YKN5mU.js → BillPayApprovalRuleDetailPage-BQWGENO8-UqNryn1Y.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BbA1Nwqe-Clw-2wlC.js → BillPayApprovalRulesPage-BbA1Nwqe-8oC6drGE.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DSTS_vBW-CQQQB354.js → BillPayPromoPage-DSTS_vBW-D4bhyD9i.js} +4 -4
- package/dist/assets/{BillPaySetUpPage-CvlVPVCA-NjhuI3UN.js → BillPaySetUpPage-CvlVPVCA-CckOfR6h.js} +1 -1
- package/dist/assets/{BillingSettingsPage-nKpHtd4C-Dt0uXp5Q.js → BillingSettingsPage-nKpHtd4C-BrQxt-Or.js} +2 -2
- package/dist/assets/{BillsBulkReviewDrawerPage-DNHAoceL-Cb4kf05q.js → BillsBulkReviewDrawerPage-DNHAoceL-CcLmGKWP.js} +1 -1
- package/dist/assets/{BoxItem-Bjv3WNXO-BmJyEo8P.js → BoxItem-Bjv3WNXO-CbkK_BvO.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Bj4D9bX2-BwDZ1SF1.js → BusinessVerificationPage-Bj4D9bX2-CSqpS47f.js} +7 -7
- package/dist/assets/CardNumberSubText-BYY-Inxd-B5eDSuWq.js +21 -0
- package/dist/assets/{CashbackDetailPage-D9UiTqp9-KfzGeeHg.js → CashbackDetailPage-D9UiTqp9-CYWVGaEH.js} +14 -14
- package/dist/assets/{ChargeCardDetailPage-C5EdiIyl-DtWHXqSs.js → ChargeCardDetailPage-C5EdiIyl-BRwuM_9a.js} +24 -24
- package/dist/assets/{ChargeCardListPage-DZwz1qoD-DbcJS4HW.js → ChargeCardListPage-DZwz1qoD-CqjW0D5U.js} +14 -14
- package/dist/assets/{ChargeCardListTable-D5B05Z1F-CeQiSd9i.js → ChargeCardListTable-D5B05Z1F-D4hpaga1.js} +13 -13
- package/dist/assets/{ChargeCardPromoPage-CDJMtGJb-BhpbAa0E.js → ChargeCardPromoPage-CDJMtGJb-hssoPQjs.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-CVV24gS9-DEZ65n_v.js → ChargeCardSetupPage-CVV24gS9-BAOQ2Xly.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-CmjBoi5e-snf3xLLe.js → ChargeCardStatementsPage-CmjBoi5e-DLlPm7j6.js} +3 -3
- package/dist/assets/{CheckDepositDrawerPage-CYOhT5Qz-DksjSdSX.js → CheckDepositDrawerPage-CYOhT5Qz-NvWlDiXp.js} +10 -10
- package/dist/assets/{CollapsableReportTable-hL_Ycouc-BeVhCFjP.js → CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js} +32 -32
- package/dist/assets/{CompanyOfficerDetailsSection-DR_6TlQa-CRHkdATL.js → CompanyOfficerDetailsSection-DR_6TlQa-SwPBTgrA.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B4chn7-Q-C5MlH5vF.js → CompanyPassportCard-B4chn7-Q-Bv_vr7JG.js} +1 -1
- package/dist/assets/{CompanyPassportPage-oT9HnnPQ-Cn_rUM0x.js → CompanyPassportPage-oT9HnnPQ-BroxBLc-.js} +1 -1
- package/dist/assets/{CompleteProfile-BgH4v76Z-CMAlYJ7H.js → CompleteProfile-BgH4v76Z-CN661m7_.js} +1 -1
- package/dist/assets/ConfettiBurst-Cl6jHJ8H-gdYynPR6.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-CW-u7pJU-BbNmJCzp.js → CreateOrEditVendorPage-CW-u7pJU-D_V5jy6j.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-D30M7ol4-DHMoXleH.js → CreditCardPaymentDrawerPage-D30M7ol4-Cmy98i97.js} +101 -101
- package/dist/assets/{CurrencySelectField-DOCEstMc-lt77fvq3.js → CurrencySelectField-DOCEstMc-DLDifnD2.js} +3 -3
- package/dist/assets/{CustomerOnboardingActivationPage-DMPNjFL_-Di2Nadj1.js → CustomerOnboardingActivationPage-DMPNjFL_-DXtNUrdA.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-DTN0ucTw.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CBYo4VQn-BXbbBAgo.js → CustomerOnboardingDetailPageSkeleton-CBYo4VQn-lNg5MP87.js} +8 -8
- package/dist/assets/{CustomerOnboardingNoStepsPage-EBVRCYfJ-D_7GUO1D.js → CustomerOnboardingNoStepsPage-EBVRCYfJ-D9C_SyFY.js} +3 -3
- package/dist/assets/{CustomerOnboardingPage-TJK6s-LM-C-OnNjx4.js → CustomerOnboardingPage-TJK6s-LM-CoIVtMVm.js} +1 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-lNIP5gSu-Bg8Yb8JM.js +202 -0
- package/dist/assets/{Dashboard-WiE9IRrh-DLy2oEV6.js → Dashboard-WiE9IRrh-DvtSkHmk.js} +14 -14
- package/dist/assets/{DashboardReportPage-BKHl_IVD--5FXkbx2.js → DashboardReportPage-BKHl_IVD-CtxBGv_B.js} +11 -11
- package/dist/assets/DashboardSidebarBackgroundAnimation-B1mJObim-DOqCN-CI.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-C8tChaJS-C2YE4gmN.js → DepositAccTransactionItem-C8tChaJS-BcNs6Wmj.js} +1 -1
- package/dist/assets/DepositAccTransactionListPage-B6px7upV-C_h4mZC3.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-BFQJmzYm-Cigs9AsB.js +21 -0
- package/dist/assets/{DownloadOverlay-DB-qx46O-QQjLHCMg.js → DownloadOverlay-DB-qx46O-Di0XX-7b.js} +1 -1
- package/dist/assets/{DrawerPage-Bha9ElcW-DYWZbR7w.js → DrawerPage-Bha9ElcW-tQCg2vNB.js} +6 -6
- package/dist/assets/{EditPeoplePage-B6QD5Vld-CisYF3Ng.js → EditPeoplePage-B6QD5Vld-H7oW4yPE.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-EplOf2mP-D1RbirS3.js → EditReimbursementDetailPage-EplOf2mP-DR3ob0bq.js} +1 -1
- package/dist/assets/{EntityDetailPage-5Cu1qehd-D07nT3Te.js → EntityDetailPage-5Cu1qehd-BdCQHbCi.js} +1 -1
- package/dist/assets/{EntitySummarySection-D6z6-dM7-DEGQNQVO.js → EntitySummarySection-D6z6-dM7-iY3GcshB.js} +2 -2
- package/dist/assets/{ExpenseAutomationOverviewPage-DkoxczRc-NF6HtctB.js → ExpenseAutomationOverviewPage-DkoxczRc-Dj3WEFmv.js} +15 -15
- package/dist/assets/{ExpenseAutomationPage-Na3XKgcg-Cmx09CtX.js → ExpenseAutomationPage-Na3XKgcg-DopOn429.js} +1 -1
- package/dist/assets/{ExpressPayPage-DWGl_gml-D5XRTVzj.js → ExpressPayPage-DWGl_gml-hFOTsy6y.js} +12 -12
- package/dist/assets/{FeaturePreviewPage-BgkpUPMm-DzDv67fj.js → FeaturePreviewPage-BgkpUPMm-BgRBmXUD.js} +3 -3
- package/dist/assets/{FollowStepsSection-64oy2OLD-7-LclZyo.js → FollowStepsSection-64oy2OLD-BEGrGMi_.js} +7 -7
- package/dist/assets/{GlobalReviewListPage-DHfTyj2C-OAyr9UAc.js → GlobalReviewListPage-DHfTyj2C-C3EEWPiO.js} +12 -12
- package/dist/assets/{InformationCardStack-Dw3lhl2I-2Y0pRe_r.js → InformationCardStack-Dw3lhl2I-Bs6_LbeZ.js} +1 -1
- package/dist/assets/{InsightsCardStack-BiEswY1Z-CQn7ZFVZ.js → InsightsCardStack-BiEswY1Z-Db6FFDpQ.js} +9 -9
- package/dist/assets/{InsightsSection-DvqCilqy-BvIpOsD6.js → InsightsSection-DvqCilqy-BQT_s43S.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-DzVYf5ff-K49nYAJL.js → IntegrationsSettingsPage-DzVYf5ff-DvdqA5Qq.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-DTHcuQsH-C8RSfXK9.js → InternationalWireSwiftDetailsPage-DTHcuQsH-B-a9NSLn.js} +11 -11
- package/dist/assets/{InternationalWireVerificationPage-BzyRqd-m-BPPlgLxU.js → InternationalWireVerificationPage-BzyRqd-m-slndLY5A.js} +7 -7
- package/dist/assets/{InviteFormPage-CaJB3ss1-C7CdP0jU.js → InviteFormPage-CaJB3ss1-HHZxjRMu.js} +17 -17
- package/dist/assets/{InvitePageListView-8Ltt8tHx-Dpx_AdxA.js → InvitePageListView-8Ltt8tHx-BPR7jVHX.js} +1 -1
- package/dist/assets/{InvitePeoplePage-A7oKAD7M-BX9kPS5-.js → InvitePeoplePage-A7oKAD7M-DkNn-Tux.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-DomquLut-BX54FmZz.js → InvoiceUploadSection-DomquLut-CutCF8wG.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-DtIQ1Buk-BN7RzIYF.js → IssueChargeCardPage-DtIQ1Buk-QOM0ijcK.js} +1 -1
- package/dist/assets/{LabeledAddressValue-B_9lh-_a-DrM7vU1s.js → LabeledAddressValue-B_9lh-_a-B22yf0PW.js} +2 -2
- package/dist/assets/{LabeledAddressValueField-CC7T3qZQ-1BY0JFnr.js → LabeledAddressValueField-CC7T3qZQ-5fkS_FuY.js} +2 -2
- package/dist/assets/LabeledControlledCheckBoxField-CeMM7Ci3-RHUW6sf_.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-DKD0oEl8-TvdaP8Vv.js → LabeledCreatableSingleSelectField-DKD0oEl8-Bqf3gDxT.js} +3 -3
- package/dist/assets/{LabeledDocumentField-Dy3jwAiL-CCiYsV9S.js → LabeledDocumentField-Dy3jwAiL-FmwpCOt6.js} +3 -3
- package/dist/assets/{LabeledDropDownFormattedTextField-DDzM3r6s-CluakS-U.js → LabeledDropDownFormattedTextField-DDzM3r6s-CPxa5iPj.js} +1 -1
- package/dist/assets/{LabeledText-axaAGyUS-CcC7jZEk.js → LabeledText-axaAGyUS-B-Q4astZ.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-BKf09x4e.js → LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-DlTnDPsW.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-dpz7g9jK-OaRP8J18.js → LabeledZeniRolesDropDownField-dpz7g9jK-BDxh4AaM.js} +9 -9
- package/dist/assets/{LinkJETransactionPage-CJniqVcu-CEg5TESY.js → LinkJETransactionPage-CJniqVcu-C9nn50Ye.js} +3 -3
- package/dist/assets/{LockCardPage-CjO8cr2a-D35PEeDH.js → LockCardPage-CjO8cr2a-C3aOpkLz.js} +12 -12
- package/dist/assets/{LowBalancePopup-DVS-w3b7-B-J4NCtT.js → LowBalancePopup-DVS-w3b7-DZeFvNAP.js} +2 -2
- package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-BWS1eLIz.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-BkvhGPqZ.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-DYCM1cCk.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-DAAoq3iT-RnQYScep.js → MagicLinkSuccessPage-DAAoq3iT-s_k-As2A.js} +6 -6
- package/dist/assets/MagicLinkTitleSection-FMRBLlRJ-Dq0HXyeM.js +17 -0
- package/dist/assets/MailingDetailsSection-CiJ5JLA6-ClA0Rhay.js +21 -0
- package/dist/assets/Menu-wpP8R1br-BkJyq7Tb.js +17 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-DIIFgnkE-S9MhwXB4.js → MyBankConnectionsSettingsPage-DIIFgnkE-BpGRsOdm.js} +2 -2
- package/dist/assets/{MyPendingActivationChargeCardListPage-Di_KYRgS-CK6YDHgF.js → MyPendingActivationChargeCardListPage-Di_KYRgS-1GEJ-RE_.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-m6vaeGgZ-Dsfb8_5o.js → MyProfileSettingsPage-m6vaeGgZ-CBRk31EZ.js} +4 -4
- package/dist/assets/{NavBarWithPicker-C_qO8mgD-BXQJ2aBI.js → NavBarWithPicker-C_qO8mgD-DeDCa5cM.js} +4 -4
- package/dist/assets/{NavigationArrow-BXYIj6Wz-D0J_smpz.js → NavigationArrow-BXYIj6Wz-CANss6wI.js} +8 -8
- package/dist/assets/{NavigationDots-BvKSgdgh-BqXI1Dvt.js → NavigationDots-BvKSgdgh-ChF9WLMp.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-Dc3xEoiZ-DLsg8Naf.js → NewGlobalMerchantPage-Dc3xEoiZ-BeCQwEx7.js} +2 -2
- package/dist/assets/NoDataChart-C5ZP32zB-BxSJ1j_J.js +26 -0
- package/dist/assets/NoDataTable-BnBYE8p_-CFZLFfEo.js +8 -0
- package/dist/assets/{NotFoundPage-CZ25GWwU-_oSr8iWX.js → NotFoundPage-CZ25GWwU-BICqInbF.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-DHvgj7Hu-BdTBQFAp.js → NotificationSettingsPage-DHvgj7Hu-BDiE5wjx.js} +3 -3
- package/dist/assets/{NotificationsListConfig-BBLSv0sd-CyiwE-QZ.js → NotificationsListConfig-BBLSv0sd-CBsOo8lP.js} +1 -1
- package/dist/assets/{NotificationsPage-CGVEC-Zc-DTkwGX6T.js → NotificationsPage-CGVEC-Zc-CICQW2D8.js} +14 -14
- package/dist/assets/{OpExByVendorPage-D55JZne--CJqRGQiy.js → OpExByVendorPage-D55JZne--Cr5n73UL.js} +6 -6
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-DQE32HEH.js → OverlayContainerPage-Daz3A7cI-DLdPkPwc.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-fVmttEKP-BDMz5n2J.js → PandLWithForecastPage-fVmttEKP-aWCR7ttl.js} +11 -11
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BiU8tQnm-Dbfq-Q5l.js → PaymentAccountSetupBillingAddressSection-BiU8tQnm-CY8MBOF0.js} +5 -5
- package/dist/assets/{PeoplePage-QuuuX2AS-BRICHczf.js → PeoplePage-QuuuX2AS-CDxGSCUE.js} +12 -12
- package/dist/assets/Preview-D_TLok3M.js +1 -0
- package/dist/assets/{ProductsCarousel-zdZkfaiY-_T4nYSYs.js → ProductsCarousel-zdZkfaiY-D8MGFtGX.js} +3 -3
- package/dist/assets/{PromoBaseCards-flFtcbIg-m_Kz4ZRp.js → PromoBaseCards-flFtcbIg-C0jZRRzU.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DNB2C1vQ-DhNQ7g0E.js → QBOConnectionDialog-DNB2C1vQ-DPJHlPHX.js} +2 -2
- package/dist/assets/{QBOSetupSection-B59etoGz-_sJLDOFX.js → QBOSetupSection-B59etoGz-DxrgQvvQ.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-D7do3o0A-BCz-fjPF.js → ReimbursementApprovalRuleDetailPage-D7do3o0A-DiBw1aK-.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BJ6GewQ2-CIt97LH3.js → ReimbursementApprovalRulesPage-BJ6GewQ2-CMxGgRQ3.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DKAtYSOy-CiNVqXoI.js → ReimbursementDetailPage-DKAtYSOy-C1CMn4bM.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DKcSHlHp-5hV7x373.js → ReimbursementPromoPage-DKcSHlHp-gi8b3D2U.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-Y1e_hna--D_F0MA0d.js → ReimbursementSetUpPage-Y1e_hna--L4dNaOo2.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-fgz8s4w9-VUP64soN.js → ReimbursementsBulkReviewDrawerPage-fgz8s4w9-TK1XJV4S.js} +1 -1
- package/dist/assets/{ReloadCard-DjtdPHq5-k80dn-sY.js → ReloadCard-DjtdPHq5-D_RTB189.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-C8e6IEWt-C9oSqHHS.js → ReportTableViewSelector-C8e6IEWt-B1X6y91F.js} +1 -1
- package/dist/assets/{ReportsPage-BIe0eDLC-BkK5XGLi.js → ReportsPage-BIe0eDLC-DJAgrzKt.js} +3 -3
- package/dist/assets/{RevenueChart-Cc0XrxLL-CKhxzTm3.js → RevenueChart-Cc0XrxLL-BSXP5Fpe.js} +30 -30
- package/dist/assets/{ReviewDetailsPage-CU1AYWgR-BwWw8nzF.js → ReviewDetailsPage-CU1AYWgR-Aa7a5LiH.js} +17 -17
- package/dist/assets/{ReviewOverlay-CruJ9O84-tthxypv2.js → ReviewOverlay-CruJ9O84-C1Nn7-W1.js} +1 -1
- package/dist/assets/{RoleWithToolTip-fC3byzzv-h3kSlu0j.js → RoleWithToolTip-fC3byzzv-DvgcIN_v.js} +6 -6
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CE3tUYhk-BF1406RS.js → ScheduleDetailsFixedAssetsPage-CE3tUYhk-COrIX6jB.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-BhAqJ1Of-BbWry4yd.js → ScheduleDetailsPage-BhAqJ1Of-aIc3huKD.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-NSt1juSD-B6P-vowS.js → ScheduleSequenceTable-NSt1juSD-DIpN7xpp.js} +21 -21
- package/dist/assets/{ScreenRoutes-CPwJf5AY.js → ScreenRoutes-jO5HDDDI.js} +75 -75
- package/dist/assets/SetUpAccountSection-C1EnJv1V-BqOATLaf.js +378 -0
- package/dist/assets/{SignIn-BhIof_Cm-BQjlVN_5.js → SignIn-BhIof_Cm-BVhCYPyL.js} +1 -1
- package/dist/assets/SignInScreen-DYrtrzQo.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-BEWNNX_Z-LpCmCl9n.js → SpendManagementListViewPage-BEWNNX_Z-DYJVhy13.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-Vs1Eoxgd-B-R3eaH5.js → SpendManagementPerTabPage-Vs1Eoxgd-BJBD6w0V.js} +20 -20
- package/dist/assets/{SpendManagementSection-C38Zpi1z-CSd7Ra1P.js → SpendManagementSection-C38Zpi1z-zTQSB9zV.js} +10 -10
- package/dist/assets/{StatementItem-bHInVThd-CvDlOdeO.js → StatementItem-bHInVThd-Bfw9F8uL.js} +2 -2
- package/dist/assets/{StatementsPage-CGQhmaXx-R_F9KvHl.js → StatementsPage-CGQhmaXx-BIuU-4wu.js} +1 -1
- package/dist/assets/{StatusSwitcher-7fiKLb5g-BflTgrEp.js → StatusSwitcher-7fiKLb5g-IubUY6EX.js} +1 -1
- package/dist/assets/{SubTabSwitcher-9AnfZiNy-CnEO-V48.js → SubTabSwitcher-9AnfZiNy-DBEVnhtX.js} +3 -3
- package/dist/assets/{SummaryCard-DOycYLs1-BBnGU2Uh.js → SummaryCard-DOycYLs1-C5OfLiIW.js} +1 -1
- package/dist/assets/{TaskManagementPage-CehyMnY0-DxKz3xjn.js → TaskManagementPage-CehyMnY0-LzT8-CCR.js} +10 -10
- package/dist/assets/{TimeRangeSwitcher-Dq2FEgFR-BGlD5dTQ.js → TimeRangeSwitcher-Dq2FEgFR-CxbtXrjR.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-By3xz_-m-C7-16i-O.js → TimeframeSwitcher-By3xz_-m-4vvkqeCS.js} +6 -6
- package/dist/assets/{TimeframeSwitcherWithToggle-a3fmbzNR-BNAWd54k.js → TimeframeSwitcherWithToggle-a3fmbzNR-DF955u5N.js} +3 -3
- package/dist/assets/{TopExCard-GEQpp_KY-IB_77Mna.js → TopExCard-GEQpp_KY-BsC8DQsa.js} +4 -4
- package/dist/assets/{TopExDetailPage-hid1dQYl-kxPti7uc.js → TopExDetailPage-hid1dQYl-o5BnuopY.js} +9 -9
- package/dist/assets/{TransactionDetailPage-CX4JW9WM-BDaPm8U3.js → TransactionDetailPage-CX4JW9WM-gkT488m-.js} +3 -3
- package/dist/assets/{TransactionList-BixeXh4Y-D5p8k6VE.js → TransactionList-BixeXh4Y-CBLpnxhT.js} +13 -13
- package/dist/assets/{TransactionListBig-CGMMJQBd-DtMoV0wS.js → TransactionListBig-CGMMJQBd-Bi6fPPO-.js} +7 -7
- package/dist/assets/{TransactionListPage-CBVUTX4y-B8N6WUAF.js → TransactionListPage-CBVUTX4y-DvUQlgTG.js} +5 -5
- package/dist/assets/{TransactionVendorDetailPage-CEbHH_0r-B5vno7Kx.js → TransactionVendorDetailPage-CEbHH_0r-vhA6GFtl.js} +4 -4
- package/dist/assets/{TransferDrawerPage-BFd7uQnF-DiQCCcuy.js → TransferDrawerPage-BFd7uQnF-CdQTDGt-.js} +32 -32
- package/dist/assets/{TreasuryOverviewPage-Bd58hOy8-CiIm-PN1.js → TreasuryOverviewPage-Bd58hOy8-DrtmZ_fp.js} +28 -28
- package/dist/assets/{TreasuryPromoPage-BvArufHi-H2j749vC.js → TreasuryPromoPage-BvArufHi-zGiWS1XQ.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-YLCEBbRh-CcMOOxjw.js → TreasuryStatementsPage-YLCEBbRh-rIAdAl8t.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-D_6mgQqi-yYkV0iu8.js → TreasuryTaxLetterPage-D_6mgQqi-DYRPEoC2.js} +1 -1
- package/dist/assets/{TrendChart-D3dT6hUb-BHuMWYoT.js → TrendChart-D3dT6hUb-DkxaRhLn.js} +3 -3
- package/dist/assets/{TrendWithTransactions-Gj-u5KXi-81d3HYcO.js → TrendWithTransactions-Gj-u5KXi-BXQxjthK.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-B3eRYolj-BVdGDC68.js → UncategorizedAccountsMappingPage-B3eRYolj-CDmprZps.js} +3 -3
- package/dist/assets/{UnitIntegrationPage-DpjR9hUu-BLAHxX13.js → UnitIntegrationPage-DpjR9hUu-B-HccwC1.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-COtszXUY-BbmaGPRn.js +38 -0
- package/dist/assets/Vendor2FAPopup-C85mhuSb-CEUsiGHn.js +1 -0
- package/dist/assets/VendorACHDetailsPage-DeexeWpV-CWx4yTGx.js +1 -0
- package/dist/assets/{VendorDetailPage-BrbKfsL4-DjpTEW-F.js → VendorDetailPage-BrbKfsL4-Cj99XIhO.js} +86 -86
- package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-CPIfYbL9.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DgBLn3fd-BFued49C.js → VendorFiling1099EditablePage-DgBLn3fd-BC-C_gXr.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-jc7-OExI-G9JlI2Cf.js → VendorFirstReviewPage-jc7-OExI-B_u4wn_i.js} +58 -58
- package/dist/assets/{VendorInternationalWireDetailsPage-c6isgwH2-jfoBKQiW.js → VendorInternationalWireDetailsPage-c6isgwH2-G6KTzCh7.js} +7 -7
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-BuJYqFug.js +1 -0
- package/dist/assets/{VendorsAccountsSection--VfdAF3H-D5xEFwOn.js → VendorsAccountsSection--VfdAF3H-CNAOxlvC.js} +2 -2
- package/dist/assets/{VerifyDevice-CaifjdR8-C5gOkIzM.js → VerifyDevice-CaifjdR8-B6dVM-BL.js} +1 -1
- package/dist/assets/VideoPlayer-BVR9LPmm-B4UxpKEs.js +78 -0
- package/dist/assets/{VideoPopup-BEXc8o78-CVV-ILBt.js → VideoPopup-BEXc8o78-DJiZW-Cs.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-CboqfxzC-DFYQ5K3H.js → WarningsDrawerPage-CboqfxzC-gF7sCXHr.js} +4 -4
- package/dist/assets/{ZeniAccountDetailPage-Dujj0-XC-CqcpFC6J.js → ZeniAccountDetailPage-Dujj0-XC-V9rgFIsn.js} +21 -21
- package/dist/assets/{ZeniAccountListViewPage--SMJDGvC-CM-NK1x4.js → ZeniAccountListViewPage--SMJDGvC-CZS6XXwc.js} +1 -1
- package/dist/assets/ZeniAccountNavBarPieces-DqLJVQ5t-CkX8FMny.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-BVjJvWsA-C-Z-wjK6.js → ZeniAccountPromoPage-BVjJvWsA-B4Bz7FjR.js} +6 -6
- package/dist/assets/{ZeniAccountSetupPage-Dvxst8RT-DMWDIaa0.js → ZeniAccountSetupPage-Dvxst8RT-Dv9aj6me.js} +1 -1
- package/dist/assets/{ZeniCopyright-B88k3pkr-BZVlJOkG.js → ZeniCopyright-B88k3pkr-BvEC_X2s.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-1DS0MsTI-DXZHqv18.js +63 -0
- package/dist/assets/add-to-wallet-DgdBD8_G-D178ysGy.js +1 -0
- package/dist/assets/{analytics-CHPpxU3b.js → analytics-D090O6Wm.js} +1 -1
- package/dist/assets/analyticsHelper-CW9XC1-j.js +1 -0
- package/dist/assets/{analyticsHelper-DmujELNG-CREtjHan.js → analyticsHelper-DmujELNG-CdoVsqKC.js} +1 -1
- package/dist/assets/arrow-south-east-round-PEovUgvH-Ccxih1KW.js +1 -0
- package/dist/assets/auto-transfer-rule-mbafm5D3-CaIDNTCx.js +1 -0
- package/dist/assets/{chartTypes-DRiSljvE-CV6dAhnU.js → chartTypes-DRiSljvE-DHGd6p3G.js} +1 -1
- package/dist/assets/{commonDimensions-BDftm0gJ-BmGAU2Ka.js → commonDimensions-BDftm0gJ-CtNxdt96.js} +1 -1
- package/dist/assets/constants-B1WOPvRN.js +1 -0
- package/dist/assets/core-BCGhSsNP.js +62 -0
- package/dist/assets/{dash.all.min-Bzta_mrR.js → dash.all.min-DQU9jzwW.js} +1 -1
- package/dist/assets/{detailCommon-BGgE4mE3-DcwKCO51.js → detailCommon-BGgE4mE3-BIZKCRTc.js} +3 -3
- package/dist/assets/{downloadPdf-DCQ9vVZs-BHlJTitV.js → downloadPdf-DCQ9vVZs-BAK1KQub.js} +1 -1
- package/dist/assets/empty-BFpyIT14.js +1 -0
- package/dist/assets/empty-Db_Oj0CQ.js +1 -0
- package/dist/assets/epic-BhAddVo8.js +2 -0
- package/dist/assets/gift-box-Cmt9OgIZ-BVmGGIyo.js +1 -0
- package/dist/assets/graphic-no-data-l-DU4J8fDt-BUSuwQOu.js +1 -0
- package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-9rVTKZNa.js +1 -0
- package/dist/assets/handshake-BPg58FML-DBfm_e1t.js +1 -0
- package/dist/assets/{hls-SyH7Grr1.js → hls-DifHSkbp.js} +1 -1
- package/dist/assets/{index-DDpxinoY.js → index-BGhFLU7w.js} +582 -582
- package/dist/assets/index-BpEXgtW2.js +1 -0
- package/dist/assets/index-CrL4860P.js +1 -0
- package/dist/assets/index-DOvOS8E_.js +1 -0
- package/dist/assets/{index-BG_bOyH4.js → index-DT-oXxhz.js} +3 -3
- package/dist/assets/index-DuKH4leN.js +1 -0
- package/dist/assets/{index-BiiqfeFx.js → index-RjyLdqZN.js} +1 -1
- package/dist/assets/{lexical-dZFDzIA1.js → lexical-CtZYfzDm.js} +1 -1
- package/dist/assets/{liveblocks-C2I4vRCJ.js → liveblocks-DjrSQGDL.js} +28 -20
- package/dist/assets/lottie-QlMyEFez.js +9 -0
- package/dist/assets/{mapLoadingInProgressToTreeNode-CXP8ZZTG-CTGwDEAX.js → mapLoadingInProgressToTreeNode-CXP8ZZTG-DEpSFHGZ.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZSP-VcP-DnxPTr5m.js → mapSectionWithAcOnlyToTreeNode-BZSP-VcP-woXs_v4t.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Bc1S_1ej-CYjFYdJ9.js → mapSpacerToTreeNode-Bc1S_1ej-D8Xyxewi.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-ClgcHX26-NiO57h1_.js → mapTimeframeBalancesToTreeNode-ClgcHX26-CH6aCNop.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cwp98PMa-D8SBCace.js → mapTimeframeBalancesToTreeNode-Cwp98PMa-D47kQKR9.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-2wcYi7O-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-ExH9IzF0.js} +1 -1
- package/dist/assets/mui-8xKzSljO.js +17 -0
- package/dist/assets/page-detail-CWX5S47F-DjAUkIIu.js +1 -0
- package/dist/assets/radio-default-CiSgisfh-DioVIMbJ.js +1 -0
- package/dist/assets/{react-KsUvriAa.js → react-1fNkcXJk.js} +2 -2
- package/dist/assets/react-5bc96E7k.js +17 -0
- package/dist/assets/{react-PdDuKQQV.js → react-BpMq70Jz.js} +1 -1
- package/dist/assets/{react-BuuImry8.js → react-C26MaKuf.js} +1 -1
- package/dist/assets/{react-C5CamjHm.js → react-CQVfZdRf.js} +2 -2
- package/dist/assets/{react-B2Dtpj08.js → react-CvSzLYZW.js} +2 -2
- package/dist/assets/{react-D9gRIIQJ.js → react-DEufTa0Y.js} +2 -2
- package/dist/assets/{react-CurU10nF.js → react-euUD_2CS.js} +3 -3
- package/dist/assets/recharts-BnXj3KRI.js +73 -0
- package/dist/assets/sentry-C9BQzslk.js +515 -0
- package/dist/assets/shield-DOlUxcFf-DfgTXsyM.js +1 -0
- package/dist/assets/{toCOABalancesWithID--oEGymMJ-DR0b-mdX.js → toCOABalancesWithID--oEGymMJ-DkNt3ShR.js} +1 -1
- package/dist/assets/toChartData-CavJzP6f-MNPPYJmI.js +1 -0
- package/dist/assets/transaction-placeholder-CpOwZAMG-DvtWJS0D.js +1 -0
- package/dist/assets/{uploadAttachment-BuVCsq0Q-zKioks8R.js → uploadAttachment-BuVCsq0Q-S-SyFEfz.js} +7 -7
- package/dist/assets/{uploadReceipts-CPw64UYa-C0--mSOy.js → uploadReceipts-CPw64UYa-BH5K-sl5.js} +1 -1
- package/dist/assets/url-MazUlenF.js +1 -0
- package/dist/assets/{url-RUB1rBsd.js → url-WfClTpIP.js} +1 -1
- package/dist/assets/useLongPress-GCK2COYQ-DGIP6WpU.js +1 -0
- package/dist/assets/usp-line-BBd1wKwW-CVrOUZlu.js +1 -0
- package/dist/assets/{utils-DUsHM-Uc.js → utils-zYB6z_it.js} +19 -19
- package/dist/assets/{zeni-epic-state-CQt4n3Xe.js → zeni-epic-state-D9zDRHOK.js} +34 -34
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/ACHDetailsPage-B6sY0jN6-QcJjVZLW.js +0 -21
- package/dist/assets/AddAddressForCardDrawer-BuAtFO1w-DfK93MR3.js +0 -6
- package/dist/assets/CardNumberSubText-BYY-Inxd-BF9mueWC.js +0 -21
- package/dist/assets/ConfettiBurst-Cl6jHJ8H-CSCZc3Am.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-BcjiZZxB.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-lNIP5gSu-DYmoezK0.js +0 -202
- package/dist/assets/DashboardSidebarBackgroundAnimation-B1mJObim-DmY76tPV.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-B6px7upV-Cv-bpsAZ.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-BFQJmzYm-Dc980arD.js +0 -21
- package/dist/assets/LabeledControlledCheckBoxField-CeMM7Ci3-LBs1AfJr.js +0 -16
- package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-C1Uh1KWH.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-DlGiUpRU.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-BJ6bmenf.js +0 -1
- package/dist/assets/MagicLinkTitleSection-FMRBLlRJ-Cd8bErwn.js +0 -17
- package/dist/assets/MailingDetailsSection-CiJ5JLA6-Cv8N5toW.js +0 -21
- package/dist/assets/Menu-wpP8R1br-C8t8BK70.js +0 -17
- package/dist/assets/NoDataChart-C5ZP32zB-DUId3_Lj.js +0 -26
- package/dist/assets/NoDataTable-BnBYE8p_-3MJZp5mC.js +0 -8
- package/dist/assets/Preview-D0lKYz6_.js +0 -1
- package/dist/assets/SetUpAccountSection-C1EnJv1V-xzskbN4f.js +0 -378
- package/dist/assets/SignInScreen-FZ4QwHzk.js +0 -1
- package/dist/assets/UploadAdditionalDocumentOverlay-COtszXUY-CEOzWsBe.js +0 -38
- package/dist/assets/Vendor2FAPopup-C85mhuSb-C6pzaZ31.js +0 -1
- package/dist/assets/VendorACHDetailsPage-DeexeWpV-CCXex94-.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-eyjP7Ln-.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-C4ZxXJOV.js +0 -1
- package/dist/assets/VideoPlayer-BVR9LPmm-CvUJV07D.js +0 -78
- package/dist/assets/ZeniAccountNavBarPieces-DqLJVQ5t-C8FJNePa.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-1DS0MsTI-B25HwNSf.js +0 -63
- package/dist/assets/add-to-wallet-DgdBD8_G-DvwlYBb0.js +0 -1
- package/dist/assets/analyticsHelper-lfrGqA3D.js +0 -1
- package/dist/assets/arrow-south-east-round-PEovUgvH-D9klpzRU.js +0 -1
- package/dist/assets/auto-transfer-rule-mbafm5D3-CHCjFoIN.js +0 -1
- package/dist/assets/constants-B4Ak6U9p.js +0 -1
- package/dist/assets/core-CA3j8Axi.js +0 -77
- package/dist/assets/empty-CrPfQgao.js +0 -1
- package/dist/assets/empty-Dn000SHy.js +0 -1
- package/dist/assets/epic-C_I3d-Sx.js +0 -2
- package/dist/assets/gift-box-Cmt9OgIZ-eSACml6z.js +0 -1
- package/dist/assets/graphic-no-data-l-DU4J8fDt-BzIPOWHn.js +0 -1
- package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-CtBcTNoa.js +0 -1
- package/dist/assets/handshake-BPg58FML-DvA7MfJg.js +0 -1
- package/dist/assets/index-BWZriWwb.js +0 -1
- package/dist/assets/index-C-ypGNlB.js +0 -1
- package/dist/assets/index-C4-PHmb9.js +0 -1
- package/dist/assets/index-C5fdNIhc.js +0 -1
- package/dist/assets/lottie-B7mXQ-R-.js +0 -9
- package/dist/assets/mui-DpJXlk4t.js +0 -25
- package/dist/assets/page-detail-CWX5S47F-Byx36A1h.js +0 -1
- package/dist/assets/radio-default-CiSgisfh-HcY1qXLg.js +0 -1
- package/dist/assets/react-B7zczQTC.js +0 -17
- package/dist/assets/recharts-BGdJnVo5.js +0 -73
- package/dist/assets/sentry-BA4piVNf.js +0 -500
- package/dist/assets/shield-DOlUxcFf-DciCHlJY.js +0 -1
- package/dist/assets/toChartData-CavJzP6f-KkbBsImT.js +0 -1
- package/dist/assets/transaction-placeholder-CpOwZAMG-2yCTNaDx.js +0 -1
- package/dist/assets/url-Bq2XNMnM.js +0 -1
- package/dist/assets/useLongPress-GCK2COYQ-Ch-mrcwO.js +0 -1
- package/dist/assets/usp-line-BBd1wKwW-BZdA9pHf.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as At,a7 as Mt,q as Rt,d as Pt,ca as Bt,y as m,F as Xe,gc as Nt,ge as Lt,gf as _t,V as t,cm as ze,cn as Ae,co as Me,aK as y,bz as Re,bm as Ot,dr as Wt,gg as Et,gr as Pe,o as a,gh as Be,fd as b,ff as w,gk as x,aL as Ne,fc as Le,b as K,gm as _e,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Gt,L as Yt,a as Ht,B as Jt,ak as et,b7 as tt,p as U,al as qt,bS as Zt,ag as Qt,gI as Xt,gE as ei,c,cf as ti,cT as ii}from"./index-DDpxinoY.js";import{a as p}from"./core-CA3j8Axi.js";import{n as r}from"./mui-DpJXlk4t.js";import{a as ai}from"./liveblocks-C2I4vRCJ.js";import{bO as ri,bS as oi,FC as ni}from"./zeni-epic-state-CQt4n3Xe.js";import li from"./InvoiceUploadSection-DomquLut-BX54FmZz.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-NFPm5TaG.js";import"./sentry-BA4piVNf.js";import"./lottie-B7mXQ-R-.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./utils-DUsHM-Uc.js";import"./lexical-dZFDzIA1.js";import"./AttachmentView-DSP80cjm-CgZkBq6h.js";import"./uploadReceipts-CPw64UYa-C0--mSOy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="96ac4536-80fb-4ce6-bed8-5ae1eba56666",e._sentryDebugIdIdentifier="sentry-dbid-96ac4536-80fb-4ce6-bed8-5ae1eba56666")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},ci={formTitle:new Ht("h6Regular","h5Regular")},la=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:re,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:pe,deleteReimbursement:ot,cancelAndDeleteReport:ue,handleZeniLogoClick:nt,onAddNewRule:he})=>{const d=At(),lt=Mt().analytics,o=Rt(),ye=Pt(),[st,z]=p.useState(!1),[G,Y]=p.useState(!1),[dt,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ct]=p.useState(null),[mt,N]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>di(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const pt=()=>{V()};Bt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=s.labelWidth.value(o),A=s.largeLabelWidth.value(o),we=Xe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:L}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=_?.code==="paid",xt=$e?_:O?.code=="approved"&&W?.code?W:O,$=mi(e.remiDetails),M=O?.code=="approved"&&W?.code?W:O,E=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{at()},vt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},jt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ri(oi(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??jt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!It,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=xt?.code,Ct=si(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:F}=p.useContext(Nt),{threads:R,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>R.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[R]).length,zt=p.useCallback((l,n)=>{F(n),N(!1)},[F,N]);p.useEffect(()=>{te?.threadId!=null&&R.length>0&&!D&&(F(te.threadId),Ce(null))},[te,R,D,F,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},P=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:B,children:[st?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:vt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ai,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Mi,{onClick:()=>nt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Pi,{children:[u?t.jsxs(Bi,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),N(!0),lt.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ni,{})]}):null,t.jsx(Li,{size:o,onClick:()=>pt(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ri,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Vi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,M?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E}),P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ki,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(li,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:re,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ei,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,M?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null,P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(bi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(gi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(xi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(hi,{children:[i.thisExpenseReview," ",t.jsx(yi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&rt(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:A},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey: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:A},text:l.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:A},text:l.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:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.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:l.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:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey: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:A},text:l.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:A},text:l.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:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.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:l.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:l.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:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ui,{})]}),$e||E===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Tt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(fi,{children:t.jsxs(ki,{windowSize:o,children:[!P&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(Di,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(ae,{onClick:ft,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(ae,{onClick:$t,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ii,{windowSize:o,children:[!P&&Ie?t.jsx(ji,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!P&&Dt===!0?t.jsx(Ti,{windowSize:o,showEditIcon:Ie,children:t.jsx(vi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:mt,allowComposer:!0,drawerTitle:ht,threads:R,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:yt,replyComposerPlaceholder:gt,threadResolve:bt,threadUnResolve:wt},onThreadClick:(l,n)=>zt(l,n),onCloseAllThreadsDrawer:()=>N(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},mi=e=>{const C=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:ie.deleted.color,bgColor:ie.deleted.bgColor,borderColor:ie.deleted.borderColor,code:"deleted"}},pi=r.div`
|
|
1
|
+
import{av as At,a7 as Mt,q as Rt,d as Pt,ca as Bt,y as m,F as Xe,gc as Nt,ge as Lt,gf as _t,V as t,cm as ze,cn as Ae,co as Me,bz as Re,aM as y,bm as Ot,dr as Wt,gg as Et,gr as Pe,o as a,gh as Be,fd as b,gk as w,fg as x,aK as Ne,fc as Le,b as K,gm as _e,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Gt,L as Yt,a as Ht,B as Jt,ak as et,b7 as tt,p as U,al as qt,bS as Zt,ag as Qt,gI as Xt,gE as ei,c,cf as ti,cT as ii}from"./index-BGhFLU7w.js";import{a as p}from"./sentry-C9BQzslk.js";import{n as r}from"./mui-8xKzSljO.js";import{a as ai}from"./liveblocks-DjrSQGDL.js";import{bL as ri,bP as oi,FB as ni}from"./zeni-epic-state-D9zDRHOK.js";import li from"./InvoiceUploadSection-DomquLut-CutCF8wG.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-BCGhSsNP.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./recharts-BnXj3KRI.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./AttachmentView-DSP80cjm-BrHb-fdX.js";import"./uploadReceipts-CPw64UYa-BH5K-sl5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="59b0722f-68b8-4ab3-88c5-839fe1f060c8",e._sentryDebugIdIdentifier="sentry-dbid-59b0722f-68b8-4ab3-88c5-839fe1f060c8")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},ci={formTitle:new Ht("h6Regular","h5Regular")},la=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:re,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:pe,deleteReimbursement:ot,cancelAndDeleteReport:ue,handleZeniLogoClick:nt,onAddNewRule:he})=>{const d=At(),lt=Mt().analytics,o=Rt(),ye=Pt(),[st,z]=p.useState(!1),[G,Y]=p.useState(!1),[dt,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ct]=p.useState(null),[mt,N]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>di(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const pt=()=>{V()};Bt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=s.labelWidth.value(o),A=s.largeLabelWidth.value(o),we=Xe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:L}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=_?.code==="paid",xt=$e?_:O?.code=="approved"&&W?.code?W:O,$=mi(e.remiDetails),M=O?.code=="approved"&&W?.code?W:O,E=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{at()},vt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},jt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ri(oi(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??jt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!It,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=xt?.code,Ct=si(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:F}=p.useContext(Nt),{threads:R,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>R.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[R]).length,zt=p.useCallback((l,n)=>{F(n),N(!1)},[F,N]);p.useEffect(()=>{te?.threadId!=null&&R.length>0&&!D&&(F(te.threadId),Ce(null))},[te,R,D,F,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},P=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:B,children:[st?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:vt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ai,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Mi,{onClick:()=>nt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Pi,{children:[u?t.jsxs(Bi,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),N(!0),lt.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ni,{})]}):null,t.jsx(Li,{size:o,onClick:()=>pt(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ri,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Vi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,M?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E}),P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ki,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(li,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:re,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ei,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,M?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null,P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(bi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(gi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(xi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(hi,{children:[i.thisExpenseReview," ",t.jsx(yi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&rt(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:A},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:A},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:A},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ui,{})]}),$e||E===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Tt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(fi,{children:t.jsxs(ki,{windowSize:o,children:[!P&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(Di,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(ae,{onClick:ft,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(ae,{onClick:$t,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ii,{windowSize:o,children:[!P&&Ie?t.jsx(ji,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!P&&Dt===!0?t.jsx(Ti,{windowSize:o,showEditIcon:Ie,children:t.jsx(vi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:mt,allowComposer:!0,drawerTitle:ht,threads:R,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:yt,replyComposerPlaceholder:gt,threadResolve:bt,threadUnResolve:wt},onThreadClick:(l,n)=>zt(l,n),onCloseAllThreadsDrawer:()=>N(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},mi=e=>{const C=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:ie.deleted.color,bgColor:ie.deleted.bgColor,borderColor:ie.deleted.borderColor,code:"deleted"}},pi=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as ne,d as S,q as k,aN as le,
|
|
1
|
+
import{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-BGhFLU7w.js";import{a as j}from"./sentry-C9BQzslk.js";import{n as r}from"./mui-8xKzSljO.js";import{FA as je,bT as be}from"./zeni-epic-state-D9zDRHOK.js";import{f as fe}from"./VideoPopup-BEXc8o78-DJiZW-Cs.js";import{M as v}from"./usp-line-BBd1wKwW-CVrOUZlu.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./VideoPlayer-BVR9LPmm-B4UxpKEs.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="2796cf0c-4848-410a-9a56-dd73a2a6d0b2",i._sentryDebugIdIdentifier="sentry-dbid-2796cf0c-4848-410a-9a56-dd73a2a6d0b2")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -58,9 +58,9 @@ import{av as ne,d as S,q as k,aN as le,F,V as e,aK as a,fo as ae,bz as de,n as u
|
|
|
58
58
|
align-items: center;
|
|
59
59
|
text-align: start;
|
|
60
60
|
box-sizing: border-box;
|
|
61
|
-
`,
|
|
61
|
+
`,b=r(ge)`
|
|
62
62
|
color: ${i=>i.theme.colors.champion};
|
|
63
|
-
`,
|
|
63
|
+
`,f=r(ue)`
|
|
64
64
|
color: ${i=>i.theme.colors.champion};
|
|
65
65
|
`,y=r(N)`
|
|
66
66
|
color: ${i=>i.theme.colors.champion};
|
|
@@ -68,17 +68,17 @@ import{av as ne,d as S,q as k,aN as le,F,V as e,aK as a,fo as ae,bz as de,n as u
|
|
|
68
68
|
color: ${i=>i.theme.colors.champion};
|
|
69
69
|
`,m=r.div``,p=r.div`
|
|
70
70
|
padding-left: ${s.sp3};
|
|
71
|
-
`,
|
|
71
|
+
`,M=r(N)`
|
|
72
72
|
margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
|
|
73
73
|
color: ${i=>i.theme.colors.grey1};
|
|
74
|
-
`,W=r(v)`
|
|
75
|
-
color: ${z.graphColor16Dark};
|
|
76
74
|
`,G=r(v)`
|
|
77
|
-
color: ${z.
|
|
75
|
+
color: ${z.graphColor16Dark};
|
|
78
76
|
`,H=r(v)`
|
|
77
|
+
color: ${z.graphColor09Dark};
|
|
78
|
+
`,Q=r(v)`
|
|
79
79
|
color: ${z.success};
|
|
80
|
-
`,
|
|
80
|
+
`,D=r(pe)`
|
|
81
81
|
margin: ${s.sp3} auto;
|
|
82
82
|
max-width: 772px;
|
|
83
83
|
color: ${i=>i.theme.colors.hero};
|
|
84
|
-
`,t=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(V,{windowSize:o,children:[e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(
|
|
84
|
+
`,t=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(V,{windowSize:o,children:[e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(V,{windowSize:o,children:[e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.simplestText.bold}),e.jsx(b,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.aiPoweredText.bold}),e.jsx(b,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.multiLevelApprovalText.bold}),e.jsx(b,{children:t.multiLevelApprovalText.regular})]})]})]}),e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},_e=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:W,analytics:x,onSetupButtonClick:J,onCreateNewRemiButtonClick:K,onBackClick:X,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[te,R]=j.useState(!1),se=S(),l=k(),{remiTermsDetails:h}=i,A=le(h?.fetchStatus.fetchState),re=je(P.loggedInUserRoleMap),w=be(P.loggedInUserRoleMap)&&!re,oe=!!o?.isReimbursementTOSAccepted,I=!!i.companyRemiInfo?.isReimbursementEnabled,U=w?I?t.employeeAcceptPromoText:t.employeePendingPromoText:t.promoText;j.useEffect(()=>{A==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[A,C,h?.fetchStatus]);const B=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(fe,{onCancelClick:()=>{ie(!1)},videoUrl:W,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:t.title,backgroundColor:se.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:U}):e.jsx(ke,{children:U}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:I&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.createTerms1,e.jsx(d,{href:t.terms.tosUrl,linkText:t.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),t.terms.terms2,e.jsx(d,{href:t.terms.privacyPolicyUrl,linkText:t.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),t.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:J,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,t.terms.terms3]})]})})]})]})};export{_e as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,m as
|
|
1
|
+
import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-BGhFLU7w.js";import{a as o}from"./sentry-C9BQzslk.js";import{n as i}from"./mui-8xKzSljO.js";import{bJ as mt}from"./zeni-epic-state-D9zDRHOK.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-COtszXUY-BbmaGPRn.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="3692d705-6575-4d0f-8391-33be6fed44f0",e._sentryDebugIdIdentifier="sentry-dbid-3692d705-6575-4d0f-8391-33be6fed44f0")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -14,7 +14,7 @@ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as J
|
|
|
14
14
|
`,wt=i.div`
|
|
15
15
|
${e=>`${ge.title.style(e.windowSize)}`};
|
|
16
16
|
color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
|
|
17
|
-
`,St=i(
|
|
17
|
+
`,St=i(ct)`
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
justify-content: flex-start;
|
|
@@ -68,7 +68,7 @@ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as J
|
|
|
68
68
|
`,At=i.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
|
-
`,jt=i.div``,Dt=i(
|
|
71
|
+
`,jt=i.div``,Dt=i(dt)`
|
|
72
72
|
color: ${e=>e.theme.colors.comingSoon};
|
|
73
73
|
margin-left: ${a.sp3};
|
|
74
74
|
`,Et=i.div`
|
|
@@ -103,7 +103,7 @@ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as J
|
|
|
103
103
|
&:hover {
|
|
104
104
|
color: ${e=>e.theme.colors.primary};
|
|
105
105
|
}
|
|
106
|
-
`,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:
|
|
106
|
+
`,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:c,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onEstablishConnectionSuccess:F,updateMileageDetails:w,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:I,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const H=Ee(),u=Ie(),[B,V]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ve,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:Me,companyBillPayInfo:he,mileageRateConfig:ze,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),be=N(se.fetchState),we=N(re.fetchState),M=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&V(!0),B&&_==="In-Progress"&&v==="Completed"&&V(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||be==="In-Progress"&&se.fetchState==="Completed"||we==="In-Progress"&&re.fetchState==="Completed")&&M.reset(pe(e))},[_,v,M,e,be,se.fetchState,we,re.fetchState]);const Ue=M.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),We=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const b=fe.find(me=>me.id===m.fundingAccount.selectedOption);b!=null&&X(m.fundingAccount.selectedOption,b.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.zeniAccountId!=m.account.selectedOption){const b=m.account.allOptions.find(me=>me.value===m.account.selectedOption);b!=null&&typeof b.label=="string"&&l.trackConnectBankLink(b.value,b.label,"reimbursement"),U(m.account.selectedOption,C.id,C.accType)}}else if(A.includes(G)){const b=R[G];w(b)}};o.useEffect(()=>{const A=M.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>We(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&I()},[I,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:He}=Te.getLocalizedStrings(),{reimbursement:Be}=He,{reimbursementSetup:z}=Be,{setUp:k}=Se,de=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&ze?.denominationConversions.amount!=null,ce=Me?.isReimbursementEnabled===!0,Oe=de?Se.setUp.setupVerifiedSubTitle:z.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new Ce(H.colors.brandColorJadeLight):new Ce(H.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?V(!0):K?.()};return t.jsxs(Mt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>V(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:c,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>V(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:z.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!ce&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Ke,{...M,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Qe,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:z.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),de&&!ce&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:z.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ve.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:z.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:de&&!ce,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},Mt=i.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
min-height: 100%;
|
|
109
109
|
flex-direction: column;
|
|
@@ -137,4 +137,4 @@ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as J
|
|
|
137
137
|
display: flex;
|
|
138
138
|
flex-direction: column;
|
|
139
139
|
row-gap: ${e=>g.sectionRowGap.valuePx(e.windowSize)};
|
|
140
|
-
`,pe=e=>{const{allBankAccounts:p,allFundingAccounts:$,mileageDetails:j,primaryFundingAccount:P}=e,{localData:
|
|
140
|
+
`,pe=e=>{const{allBankAccounts:p,allFundingAccounts:$,mileageDetails:j,primaryFundingAccount:P}=e,{localData:c}=j;return{[q]:{fundingAccount:{selectedOption:P?.id,allOptions:$.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:P?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[G]:{mileageAmount:c?.mileageUnitAmount?.amount,mileageCurrencyCode:c?.mileageCurrencyCode??"USD",mileageCurrencySymbol:c?.mileageCurrencySymbol??"$",mileageUnit:c?.mileageUnit??"",description:c?.description??"",mileageAmountInDenomination:c?.mileageAmountInDenomination,denomination:c?.denomination??"dollars",denominationSymbol:c?.denominationSymbol??""}}},De=e=>`${e}_form`;export{Xt as default,De as uniqueName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-BGhFLU7w.js";import{a as b}from"./sentry-C9BQzslk.js";import{G5 as K}from"./zeni-epic-state-D9zDRHOK.js";import{u as Q}from"./ReviewOverlay-CruJ9O84-C1Nn7-W1.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./mui-8xKzSljO.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e916d6f0-7831-404d-8139-65bad502c33c",e._sentryDebugIdIdentifier="sentry-dbid-e916d6f0-7831-404d-8139-65bad502c33c")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,E=()=>{const{title:m,description:C}=Y(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{d as l,V as r,aJ as a,
|
|
1
|
+
import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-BGhFLU7w.js";import{n as d}from"./mui-8xKzSljO.js";import{a as s}from"./sentry-C9BQzslk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=d(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
|
-
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(
|
|
3
|
+
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(h)`
|
|
4
4
|
justify-content: space-between;
|
|
5
5
|
`,k=d.div`
|
|
6
6
|
height: ${c.sp10};
|
|
@@ -23,4 +23,4 @@ import{d as l,V as r,aJ as a,aK as f,b0 as y,F as m,aP as h,bB as g,ag as u,o as
|
|
|
23
23
|
color: ${e=>e.theme.colors.champion};
|
|
24
24
|
`,$=d(u)`
|
|
25
25
|
color: ${e=>e.theme.colors.hero};
|
|
26
|
-
`,B=d(j)``;function
|
|
26
|
+
`,B=d(j)``;function M({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(C,{children:[r.jsxs(v,{children:[n??f(o)," "]}),r.jsx(k,{children:r.jsx(B,{})}),r.jsx($,{children:y.getLocalizedStrings().card.failedText})]})})}export{T as E,D as I,M as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as _e,
|
|
1
|
+
import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as _e,cb as te,ab as we,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-BGhFLU7w.js";import{a as u,S as ue}from"./sentry-C9BQzslk.js";import{n as d}from"./mui-8xKzSljO.js";import{R as O,I as Be}from"./CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="eaf9b130-52c5-47c7-bc4f-42775b2fb916",e._sentryDebugIdIdentifier="sentry-dbid-eaf9b130-52c5-47c7-bc4f-42775b2fb916")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ae=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Te=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ae(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ve(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{q as W,d as G,F as y,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y as B,o as w,aQ as we,m as ye,bM as Ce,c as S,C as A,aA as K,O as xe,aS as Oe,as as Re,bD as Ae}from"./index-DDpxinoY.js";import{a as T,S as X}from"./core-CA3j8Axi.js";import{n as _}from"./mui-DpJXlk4t.js";import{bh as H,EI as Be,ER as ve,ES as E,ET as Le,EU as Te,EV as Pe,EW as Ie,EX as ke,EY as ee,EZ as te}from"./zeni-epic-state-CQt4n3Xe.js";import{m as z,l as q}from"./analyticsHelper-DmujELNG-CREtjHan.js";import{x as Ne}from"./ReportTableViewSelector-C8e6IEWt-C9oSqHHS.js";import{a as se,p as Me}from"./TimeRangeSwitcher-Dq2FEgFR-BGlD5dTQ.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-a3fmbzNR-BNAWd54k.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-DB-qx46O-QQjLHCMg.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-hL_Ycouc-BeVhCFjP.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BZSP-VcP-DnxPTr5m.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-ClgcHX26-NiO57h1_.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-2wcYi7O-.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-CXP8ZZTG-CTGwDEAX.js";import"./sentry-BA4piVNf.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";import"./TimeframeSwitcher-By3xz_-m-C7-16i-O.js";import"./page-detail-CWX5S47F-Byx36A1h.js";import"./AccountRow-BM2kGWyR-CUEabI22.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8efcad77-b69d-4b6d-94ac-ca8d61fbaac6",e._sentryDebugIdIdentifier="sentry-dbid-8efcad77-b69d-4b6d-94ac-ca8d61fbaac6")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ze(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function He(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
|
|
1
|
+
import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-BGhFLU7w.js";import{a as T,S as K}from"./sentry-C9BQzslk.js";import{n as _}from"./mui-8xKzSljO.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-D9zDRHOK.js";import{m as z,l as q}from"./analyticsHelper-DmujELNG-CdoVsqKC.js";import{x as Ne}from"./ReportTableViewSelector-C8e6IEWt-B1X6y91F.js";import{a as se,p as Me}from"./TimeRangeSwitcher-Dq2FEgFR-CxbtXrjR.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-a3fmbzNR-DF955u5N.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-DB-qx46O-Di0XX-7b.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BZSP-VcP-woXs_v4t.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-ClgcHX26-CH6aCNop.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-ExH9IzF0.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-CXP8ZZTG-DEpSFHGZ.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./TimeframeSwitcher-By3xz_-m-4vvkqeCS.js";import"./page-detail-CWX5S47F-DjAUkIIu.js";import"./AccountRow-BM2kGWyR-CEX7zEFS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="32ce034d-0d1c-4dd4-a2a7-6420ea6d9fd5",e._sentryDebugIdIdentifier="sentry-dbid-32ce034d-0d1c-4dd4-a2a7-6420ea6d9fd5")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
5
5
|
background-color: ${e=>e.theme.colors.grey4};
|
|
6
|
-
`;function Je({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=W(),s=G(),[c,C]=T.useState(void 0),[x,$]=T.useState(void 0),v=!(h==="small"||h==="medium-compact"),V="name+balances_actual",F=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>E(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,fe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,
|
|
6
|
+
`;function Je({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=W(),s=G(),[c,C]=T.useState(void 0),[x,$]=T.useState(void 0),v=!(h==="small"||h==="medium-compact"),V="name+balances_actual",F=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>E(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,fe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,H=D??fe;H?.additionalBalances!=null&&(m=H.additionalBalances.map(me=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>E(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>E(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:F,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!X(x,e)||g===!0){const f=Xe(e,m,v,g);$(e),C(f)}else{const f=We(c,m,e,v);C(f)}},[u,e,g]);const[R,k]=T.useState(5),N=m=>{const f=m+135;k(f)},he=m=>m?.trackPageLoaded(Ke(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:he}),r.jsx(Qe,{height:R,children:r.jsx(je,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:Q.contentPaddingLeft.value(h),right:Q.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:N,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Xe=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return Ze(e,t,o,a);case"cash_flow":return He(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Ke=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},et=_.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -98,7 +98,7 @@ import{q as W,d as G,F as y,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y
|
|
|
98
98
|
`,mt=_(we)`
|
|
99
99
|
margin-top: ${w.sp3};
|
|
100
100
|
color: ${e=>e.theme.colors.hero};
|
|
101
|
-
`,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Qt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==h?.accountViewMode&&a?.(O),R&&n?.(R)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&H(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&H(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[$,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:$,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:h,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(R,k,N)=>{d(l,R,k,N)},onTimeframeSelectionChanged:(R,k,N)=>{p?.(R,k,N)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Fe,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Me,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ne,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=X.memo(Je,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),yt=_.div`
|
|
101
|
+
`,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Qt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==h?.accountViewMode&&a?.(O),R&&n?.(R)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[$,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:$,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:h,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(R,k,N)=>{d(l,R,k,N)},onTimeframeSelectionChanged:(R,k,N)=>{p?.(R,k,N)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Fe,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Me,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ne,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=K.memo(Je,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&X(e[`${n}`],t[`${n}`]),!0),yt=_.div`
|
|
102
102
|
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
103
103
|
`,Ct=_.div`
|
|
104
104
|
margin-top: ${w.sp3};
|