@zeniai/web-cockpit-ui 1.14.84-qa → 1.14.85-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-BXgsd50c-RayuRG_c.js → ACHDetailsPage-Dzk7YdoJ-Cuct0t6u.js} +2 -2
- package/dist/assets/{AIPerformancePage-BdDTidCL-C4KAZN5D.js → AIPerformancePage-DBCH9dJi-CYibQjrX.js} +19 -19
- package/dist/assets/{AccountInfoPage-w0STaK9a-DtmPJmpY.js → AccountInfoPage-Mzw-22d_-Df5O2T5Z.js} +2 -2
- package/dist/assets/{AccountInfoPageContent-CsuUhHXU-BIJUOaA1.js → AccountInfoPageContent-Bjp81drF-Cqcv4hk8.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-iYb31wv7-BVoKu5K7.js → AccountLockedInfoModal-Zg2PAu1o-svgY2-MJ.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DmkLTIkW-Ctf-W4YD.js → AccountReconDetailsDrawerPage-BTkrwp4Q-CWHV1qM1.js} +9 -9
- package/dist/assets/{AccountRow-BObEIy6l-JC0yFhHa.js → AccountRow-CIsbwvGp-J3oMxL3b.js} +10 -10
- package/dist/assets/{AccountsPromoCardStack-B8gJFsYh-DI-Y_-Io.js → AccountsPromoCardStack-DrElZh-K-CUoBlW42.js} +13 -13
- package/dist/assets/{AddAddressForCardDrawer-vOgzMYWA-Cx4gewRv.js → AddAddressForCardDrawer-D5Kqxx0c-CDAVfdUf.js} +1 -1
- package/dist/assets/{AddToWalletPage-BhphXgem-BhW_6xuA.js → AddToWalletPage-B68eBsAU-Dnsjp7Oq.js} +5 -5
- package/dist/assets/{AgingReportsPage-DEgupWct-CpVx3Q04.js → AgingReportsPage-BlQHxYjL-Cr6yxtF3.js} +4 -4
- package/dist/assets/{AllUserItems-S2DAZpO6-kxAusdwm.js → AllUserItems-DsECKAGD-PW2UBBng.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-CvDD8-s7-DGquoD-J.js → ApAgingDetailPage-Bg0ZrGXm-CfXEq_5-.js} +2 -2
- package/dist/assets/{AppBasePage-C4z5I-xG-CtjY6TFp.js → AppBasePage-tPaBc2ei-WGoBSx1D.js} +7 -7
- package/dist/assets/{AppDrawerContent-Dka5HlPs-Bkb__PnR.js → AppDrawerContent-Cx4zDKi_-DO8upp4U.js} +2 -2
- package/dist/assets/ApprovalRulesSettingsPage-BcRZvSQH-BuukHz1z.js +47 -0
- package/dist/assets/{ArAgingChart-CJ7XKU9h-LfROBqc3.js → ArAgingChart-RdGwOP5k-DaN2WJzI.js} +1 -1
- package/dist/assets/ArAgingDetailPage-Bh7NAVZf-DauNApby.js +46 -0
- package/dist/assets/{AttachmentView-Dg6PizI7-hamHr9X2.js → AttachmentView-ClnTjRCg-CXQ9ySez.js} +6 -6
- package/dist/assets/{BankAccountSection-Chay7X-G-Z28HgbT-.js → BankAccountSection-D3sQOQ-c-t8HGw1J0.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-CSChi1lw-BsQ6oo-h.js → BankAccountWarningSection-CxLBPI_P-CQJWoDnI.js} +9 -9
- package/dist/assets/{BankConnectionsSettingsPage-DJV7q1Kp-V95L2p6f.js → BankConnectionsSettingsPage-Bsix2nzV-BvUIdsy8.js} +6 -6
- package/dist/assets/{BillDetailPage-DM06uZnD-F8ZzZkyq.js → BillDetailPage-B52FZrvM-BFE_NGrS.js} +10 -10
- package/dist/assets/{BillPayApprovalRuleDetailPage-MsPIxgUt-Sv6jZgUx.js → BillPayApprovalRuleDetailPage-CswUbxdi-Cprf5Nyo.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BhDdco2x-CnuVsiEs.js → BillPayApprovalRulesPage-B-8sIYjs-D2BSNMf9.js} +1 -1
- package/dist/assets/{BillPayPromoPage-Dy-opG76-CjecywkF.js → BillPayPromoPage-B6jW_8rf-YW9uzBg5.js} +5 -5
- package/dist/assets/{BillPaySetUpPage-DUvwWlaD-6bcs0JvT.js → BillPaySetUpPage-Rqxy02BM-CEkcaNcr.js} +2 -2
- package/dist/assets/{BillingSettingsPage-wj_sIJgc-alf7Yr1G.js → BillingSettingsPage-CPs5zrIc-DODFNfJu.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-DbC84oxR-D86-edxD.js → BillsBulkReviewDrawerPage-DLQsxJi8-DtW4kiE9.js} +1 -1
- package/dist/assets/{BoxItem-CdqDzfZN-C4lBJFfu.js → BoxItem-CP9cPZQd-BW2Fv6YZ.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BMtHNNcG-C4macZAB.js → BusinessVerificationPage-Cayj-kYe-DIQRuHb0.js} +1 -1
- package/dist/assets/{CardNumberSubText-lh7fQJis-DxcsJYtX.js → CardNumberSubText-FdCtSIHd-Cer2LzOo.js} +1 -1
- package/dist/assets/{CashbackDetailPage-KRbsYA09-B4B21rSt.js → CashbackDetailPage-CZICE37r-CchxXOB0.js} +11 -11
- package/dist/assets/{ChargeCardDetailPage--WP6KTfb-DBuFHobS.js → ChargeCardDetailPage-Be2X4Rx8-DkQXGv5E.js} +27 -27
- package/dist/assets/{ChargeCardListPage-knAPmob6-DSbwddj8.js → ChargeCardListPage-DzfBzM8o-BpS6GwxX.js} +13 -13
- package/dist/assets/{ChargeCardListTable-DsfnKX3P-Fh1-EuqB.js → ChargeCardListTable-Bc-4mcCz-DGGclb69.js} +44 -44
- package/dist/assets/{ChargeCardPromoPage-C9610LtW-4EBblZoV.js → ChargeCardPromoPage-D_C7hXGy-jKodLkTT.js} +7 -7
- package/dist/assets/{ChargeCardSetupPage-Cy4JhjJW-BY6uHVaB.js → ChargeCardSetupPage-BwNi9-pq-C4dK5zJO.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-C7uS1jEO-IexGEsRS.js → ChargeCardStatementsPage-Bf04MOoK-k-sWDpeT.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-TfiJwtqN-BjxF98AB.js → CheckDepositDrawerPage-B-A9fkGZ-DZFZ2JbI.js} +7 -7
- package/dist/assets/{CollapsableReportTable-NYu8Bq-g-CWsTIw0C.js → CollapsableReportTable-DdMyzUD0-BAoVL7wM.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CiVliExW-CcW3grWl.js → CompanyOfficerDetailsSection-kRtuUd2c-Cm23V4kL.js} +18 -18
- package/dist/assets/{CompanyPassportCard-8zvCdmxt-BRhXivWU.js → CompanyPassportCard-KhSJJMcy-Cll554T1.js} +1 -1
- package/dist/assets/{CompanyPassportPage-AS4N7oT2-DX218yxv.js → CompanyPassportPage--ckOuqML-CPrNkQDu.js} +10 -10
- package/dist/assets/{CompleteProfile-Dj080UdJ-CiN9P0TB.js → CompleteProfile-D8egRg8d-QRh3PECw.js} +1 -1
- package/dist/assets/{ConfettiBurst-DcCUSSaX-FzUSe03V.js → ConfettiBurst-CvRhNEAY-OaJ4gLIH.js} +1 -1
- package/dist/assets/CreateOrEditVendorPage-DrZh60Xs-DORgL7Gm.js +281 -0
- package/dist/assets/{CreditCardPaymentDrawerPage-BKvqMwnt-ViVbJgx9.js → CreditCardPaymentDrawerPage-B7ssB1GM-DOObGC22.js} +8 -8
- package/dist/assets/{CurrencySelectField-ksMvik33-X-oQzLxm.js → CurrencySelectField-BXp2mtZ7-BZ1r7qNY.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DfT_gkE4-Cu8egbhC.js → CustomerOnboardingActivationPage-BX7STQsk-ClpFwMrN.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BkPTeV9_-YlZ2rpks.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DfOtXgss-D9v3243e.js → CustomerOnboardingDetailPageSkeleton-C5tSpmSB-5KFMWV1l.js} +5 -5
- package/dist/assets/{CustomerOnboardingNoStepsPage-61UorFvn-CADfl9k6.js → CustomerOnboardingNoStepsPage-CQUQlLbj-llUCphSN.js} +4 -4
- package/dist/assets/CustomerOnboardingPage-D0p8khnC-C1IdwvBx.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-CTowHB2X-AwsQP1ww.js → CustomerOnboardingProductSuitePage-BRk3TA9f-n37UhYFK.js} +1 -1
- package/dist/assets/{Dashboard-2RpETnqH-AvqFex-D.js → Dashboard-CBOma7mv-B9j8ewTM.js} +1 -1
- package/dist/assets/{DashboardReportPage-DRRWpGiJ-BZ9L9iDT.js → DashboardReportPage-DRYx3AOy-D6rkizKp.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-0cCKM3E9-BNIN3OuI.js → DashboardSidebarBackgroundAnimation-DYsp7Imm-CsY2ImuX.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DjbheijR-CnFza0I7.js → DepositAccTransactionItem-BQU7vZKr-BOGssvEh.js} +1 -1
- package/dist/assets/DepositAccTransactionListPage-DQDt_2kb-D0tTF08R.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DuKrVIAL-CvBecXsA.js → DomesticWireDetailsPage-B0KbC9m8-DSgkPJjx.js} +1 -1
- package/dist/assets/{DownloadOverlay-f6SOW8iK-wYT98R7A.js → DownloadOverlay-D2vm9EYI-1UU-2gMF.js} +18 -18
- package/dist/assets/{DrawerPage-BkIQ6mLJ-B_5frYMF.js → DrawerPage-DHIaNEwf-DBdDE0YZ.js} +7 -7
- package/dist/assets/{EditPeoplePage-lZcM4Zfw-DUKuVkhQ.js → EditPeoplePage-B4OaKX89-CxOdlVup.js} +2 -2
- package/dist/assets/{EditReimbursementDetailPage-WO3U-vVY-GokOyVTd.js → EditReimbursementDetailPage-C_JOnUnR-BaFHONcZ.js} +1 -1
- package/dist/assets/{EntityDetailPage-AP27Niqu-kfqH8lU7.js → EntityDetailPage-DGq_Sr4I-DbAOqf4w.js} +2 -2
- package/dist/assets/{EntitySummarySection-B6khdAJg-DnNjy2K7.js → EntitySummarySection-CAKPRhm9-DT4p2FkX.js} +10 -10
- package/dist/assets/{ExpenseAutomationOverviewPage-CcTGou9x-8xIF0tTx.js → ExpenseAutomationOverviewPage-c4H81maP-DA77wvgo.js} +9 -9
- package/dist/assets/{ExpenseAutomationPage-DEleaYKs-DYnoea9F.js → ExpenseAutomationPage-DoI_XKeY-6CiggPiF.js} +160 -160
- package/dist/assets/{ExpressPayPage-CLYzefaM-Dk6YSFR2.js → ExpressPayPage-CjhXfVeX-BOKCYwCy.js} +12 -12
- package/dist/assets/{FeaturePreviewPage-T78A34---CWpen7rV.js → FeaturePreviewPage-CwrW_5lN-DmGMYSsi.js} +1 -1
- package/dist/assets/{FollowStepsSection-B_mTbqHf-vEAOrw2N.js → FollowStepsSection-DwVibYwI-v9hEOCV9.js} +6 -6
- package/dist/assets/{GlobalReviewListPage-XfxDC9vP-BoYHPWF9.js → GlobalReviewListPage-JUSXRKq4-DVN5r0h7.js} +45 -45
- package/dist/assets/{InformationCardStack-Buibt8cT-BAqP85Lc.js → InformationCardStack-CK1Ztw1n-C4th25N4.js} +1 -1
- package/dist/assets/{InsightsCardStack-Cj5iIm_T-C9OIEU2I.js → InsightsCardStack-BKAezFjz-Dc6HzMco.js} +2 -2
- package/dist/assets/{InsightsSection-DuPqQb5Z-B1_CJ6S1.js → InsightsSection-Bauri5yR-CKFEflqf.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-VZDSLMHK-7HkNgQus.js → IntegrationsSettingsPage-CnRe_xH3-UkqXGmer.js} +9 -9
- package/dist/assets/{InternationalWireSwiftDetailsPage-BUa1svL--D_p9pN5U.js → InternationalWireSwiftDetailsPage-BJkaLuNw-77-AaJID.js} +10 -10
- package/dist/assets/{InternationalWireVerificationPage-C1qKNhqJ-UJH47599.js → InternationalWireVerificationPage-pPH2bNM7-BKQZ3C2I.js} +1 -1
- package/dist/assets/{InviteFormPage-GPXu2hLn-nkRrWKH8.js → InviteFormPage-CsL2egNG-DnYkx7hA.js} +1 -1
- package/dist/assets/{InvitePageListView-FEFeEFZJ-DOB91LiD.js → InvitePageListView-rt3KC_c5-JZPrjnvG.js} +33 -33
- package/dist/assets/{InvitePeoplePage-C6E594rf-BfTOrmrG.js → InvitePeoplePage-Cdr0dhtJ-QaKpYzAx.js} +4 -4
- package/dist/assets/{InvoiceUploadSection-uvB-_dyl-ZtXwm7KR.js → InvoiceUploadSection-NVvtQvoL-B8iP_R_q.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DSPlu840-DkzSOMVm.js → IssueChargeCardPage-D5KenKnm-I0qHogFn.js} +13 -13
- package/dist/assets/{LabeledAddressValue-CzDn9ZY4-BvvJC2-h.js → LabeledAddressValue-Bwkw-Ez_-QZs1bcqC.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C_8kPzjy-B8qV6Urv.js → LabeledAddressValueField-BgkRIdwJ-D68tBsFt.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-LwfkGeF--C-sgFNDj.js → LabeledControlledCheckBoxField-RzyuT5ZX-BsFbzCeg.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-sEf-9BOE-D5r4inyT.js → LabeledCreatableSingleSelectField-BP_p62Nk-BGV5p2pd.js} +2 -2
- package/dist/assets/{LabeledDocumentField-rGzXpShn-ljpFtvvt.js → LabeledDocumentField-DGncRe-Q-BM_MF9Yy.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CIQk7Jhu-DnZPHcAA.js → LabeledDropDownFormattedTextField-DWUVcIR8-DmvGwPXC.js} +7 -7
- package/dist/assets/{LabeledText-Dc-697nR-64mK5bXs.js → LabeledText-BzD_-lgI-Br_7nwt2.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B0D7IWfA-BEObQALW.js → LabeledUserSingleSelectWithSubtitlesField-D3kjxF9V-C7cFlAui.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-BO8f1yqV-DQ1p6Tiz.js → LabeledZeniRolesDropDownField-BlmybTGB-C8vefnXI.js} +25 -25
- package/dist/assets/{LinkJETransactionPage-DDSo8zJn-DQmP81m2.js → LinkJETransactionPage-CUnfHHeT-BQ0Gfxk0.js} +9 -9
- package/dist/assets/{LockCardPage-CvZcUUc8-CdhzDjL-.js → LockCardPage-2jOFCVkW-Cd-7Cld7.js} +19 -19
- package/dist/assets/{LowBalancePopup-DJQCz0Ed-CIetm9UK.js → LowBalancePopup-Du0kX_mJ-B-0Hf7BW.js} +2 -2
- package/dist/assets/{MagicLinkACHDetailsPage-CEtaoWk8-wTULz4sv.js → MagicLinkACHDetailsPage-CkbNMu7Z-B4drRgdG.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-qdgMQR3_-uY1axbfX.js → MagicLinkDomesticWireDetailsPage-D0XBf5_X-D4YEFAaf.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DNwtPZ-u-B36fru_I.js → MagicLinkInternationalWireDetailsPage-Bl93T-SF-DbfMD1IO.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-60TBVrSw-C3Bb9puu.js → MagicLinkSuccessPage-C26glp7T-BbSy9weN.js} +2 -2
- package/dist/assets/{MagicLinkTitleSection-D2fXbnDV-CRSogR9y.js → MagicLinkTitleSection-B4nxLzap-CM0lHGYk.js} +1 -1
- package/dist/assets/{MailingDetailsSection-C6cVooC3-XQiKKaRJ.js → MailingDetailsSection-Cou_W8JF-D0QplON-.js} +1 -1
- package/dist/assets/Menu-CdF7UWPF-DT1TTbqS.js +17 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-D2EPH9WZ-Dv-ZkwPt.js → MyBankConnectionsSettingsPage-BAjjxA98-P3jZBDkg.js} +5 -5
- package/dist/assets/{MyPendingActivationChargeCardListPage-Bidsd2bk-BHUPwj-r.js → MyPendingActivationChargeCardListPage-DsRGcA8F-BiAy3gfH.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BH2ZVQTk-DkHMfeMP.js → MyProfileSettingsPage-y-iZgUqL-Cmq9Fbc9.js} +6 -6
- package/dist/assets/{NavBarWithPicker-Cg2TZjBi-BbjcZh07.js → NavBarWithPicker-ph4heJns-CH6-ZGCk.js} +4 -4
- package/dist/assets/{NavigationArrow-CYserS2B-BkLVNIMe.js → NavigationArrow-BojAUI53-DuIW3OB3.js} +1 -1
- package/dist/assets/{NavigationDots-CT_oO_7z-ClcpkikJ.js → NavigationDots-Bf66leAL-DWvE0Tr9.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D3MQU5Sh-JwYtYtso.js → NewGlobalMerchantPage-D43XJhIa-CGBQEE1e.js} +5 -5
- package/dist/assets/{NoDataChart-BItQZAQ9-S55_3TEG.js → NoDataChart-6R5pxJVo-CWkI_hu9.js} +1 -1
- package/dist/assets/{NoDataTable-R8OCdB2c-D6dlg8-F.js → NoDataTable-CNx0KCKn-Yxxqzyz6.js} +1 -1
- package/dist/assets/{NotFoundPage-DLHYdRdN-B8g0aKra.js → NotFoundPage-CE9BW_aV-BJq9qwHQ.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CIwxb6c9-BMHqzXB5.js → NotificationSettingsPage-etN6HEwO-CPu8hoID.js} +12 -12
- package/dist/assets/{NotificationsListConfig-DSgUS0hE-Blbvq0lf.js → NotificationsListConfig-15ae4nik-CPKCivw4.js} +1 -1
- package/dist/assets/{NotificationsPage-W5ZhprRe-lZrgymvK.js → NotificationsPage-BwbxqKxd-CJ_w7jhJ.js} +23 -23
- package/dist/assets/{OpExByVendorPage-DIi58wXa-C4-j8w-9.js → OpExByVendorPage-FR3oloXp-BIjz5fFP.js} +24 -24
- package/dist/assets/{OverlayContainerPage-BsY9_22w-Dt24t_bm.js → OverlayContainerPage-CrZuT2Jj-BFQOGYGF.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BvMxFrqo-ze7p6tuk.js → PandLWithForecastPage-Bx3ZyA3l-DeFHP0VX.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-kUAm-v-A-Df5ftzDu.js → PaymentAccountSetupBillingAddressSection-R1O20DhA-C65ZHllw.js} +6 -6
- package/dist/assets/{PeoplePage-CtnWc0LE-DMLbifxJ.js → PeoplePage-B3HRaJWz-DZIUGp3j.js} +15 -15
- package/dist/assets/{ProductsCarousel-n0ZNrr7--Cmsv1zu3.js → ProductsCarousel-Dn4vuZwM-XZC4Gi6v.js} +4 -4
- package/dist/assets/{PromoBaseCards-CeS0HoCZ-3hfiayC0.js → PromoBaseCards-BKo4wO-U-UIjavA07.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BxSTc99Z-CD6GLd65.js → QBOConnectionDialog-CPq0aUew-DHwaU-lE.js} +5 -5
- package/dist/assets/{QBOSetupSection-FrO9rgct-C_PUqy37.js → QBOSetupSection-BjImTh7O-Cf73veGI.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BjtdatXs-CVZb_80f.js → ReimbursementApprovalRuleDetailPage-DD1HwLO0-DBTNMi4-.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-B0_FgpJf-Ct41_HUm.js → ReimbursementApprovalRulesPage-DHQHS0eD-l5f43j6l.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BWhPxHY--BzwLeZBB.js → ReimbursementDetailPage-DiMXs0_o-C-Gngkni.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-CFG0yxOE-C35ZkWSa.js → ReimbursementPromoPage-BinqJ3lR-Dkzvoe2N.js} +5 -5
- package/dist/assets/{ReimbursementSetUpPage-BmUdLEa9-DPiaOwzY.js → ReimbursementSetUpPage-BD6B-0CO-Dhg43o5f.js} +17 -17
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CkJqhXEf-uKjpTOO-.js → ReimbursementsBulkReviewDrawerPage-DK-nCoay-BC-GO3CD.js} +1 -1
- package/dist/assets/{ReloadCard-CNKwqjPJ-YnH5lD2A.js → ReloadCard-Bt8qxAUx-C0FiLSzB.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-B0DXgLgJ-D7Qg6jRX.js → ReportTableViewSelector-Dv7BwM1q-DZ-FOl5q.js} +6 -6
- package/dist/assets/{ReportsPage-C5iOQU55-CNSsMo53.js → ReportsPage-BOY8oCAr-BwR5MVzD.js} +5 -5
- package/dist/assets/{RevenueChart-C2CMFAQ--9i0f6zk_.js → RevenueChart-D_yexiAR-D3rVopXP.js} +16 -16
- package/dist/assets/{ReviewDetailsPage-5vOZ0rd7-jxMwmXxW.js → ReviewDetailsPage-Czrlb8BL-DTI9py46.js} +14 -14
- package/dist/assets/{ReviewOverlay-BAG_6iyV-DVCub6Uq.js → ReviewOverlay-BHUy3fWf-DhycJa32.js} +10 -10
- package/dist/assets/{RoleWithToolTip-GUYLjJwW-r9JBfRcl.js → RoleWithToolTip-BxI2nAro-CHrHR5C8.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-sPjMfOtt-OtvS7n4m.js → ScheduleDetailsFixedAssetsPage-DsNhFGrc-C7120rgv.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-DI4C0o6b-BvXrDAyO.js → ScheduleDetailsPage-Dy2poGsp-B72mEOku.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-DhXwtG-x-BxYowFsO.js → ScheduleSequenceTable-Bv1feMZc-DEmwzIZ-.js} +47 -47
- package/dist/assets/{ScreenRoutes-DVcMzFrA.js → ScreenRoutes-aw0OxNGj.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DOavnCkG-CzCWMcok.js → SetUpAccountSection-SSkLhU2W-Bdvkba2v.js} +14 -14
- package/dist/assets/{SignIn-DqrG5nEJ-DIR1_BNj.js → SignIn-Chuf9_2E-Dg9U6pWl.js} +10 -10
- package/dist/assets/{SignInScreen-BvkcJf23.js → SignInScreen-heeiIDQc.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DHY_hZQm-BPwTUzGf.js → SpendManagementListViewPage-BpCZzQ7I-CeMMhyUX.js} +8 -8
- package/dist/assets/{SpendManagementPerTabPage-CoKTIQ2b-B3UZW97j.js → SpendManagementPerTabPage-DbXTM50B-DF3kTGNr.js} +32 -32
- package/dist/assets/{SpendManagementSection-UkTY6qX0-BIM5797j.js → SpendManagementSection-BMU1BTEo-BBFzWPwD.js} +12 -12
- package/dist/assets/{StatementItem-Bx6mxa3U-B9qGz6O-.js → StatementItem-qLZEMVrM-C5sUBNaG.js} +5 -5
- package/dist/assets/{StatementsPage-ULjFE30P-CBDZIU10.js → StatementsPage-B3qY1D4K-C1V6A2Qk.js} +1 -1
- package/dist/assets/{StatusSwitcher-DlBY_FC1-BZi0rJQ6.js → StatusSwitcher-xQ_AW7ze-DWj9eTCE.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DjEElTWE-BWM1ddey.js → SubTabSwitcher-w8vLc-35-BeFKfmS8.js} +1 -1
- package/dist/assets/{SummaryCard-BNESDUnN-B_OD9ZQR.js → SummaryCard-CTq_yqTg-Bw75z4He.js} +1 -1
- package/dist/assets/{TaskManagementPage-BFF3ATPV-CJl96IgY.js → TaskManagementPage-keXFNmIv-BEMVU9l6.js} +33 -33
- package/dist/assets/{TimeRangeSwitcher-xILz-EO6-CF6h2u8x.js → TimeRangeSwitcher-C4Tph63B-D9xSXRlF.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-CZhQm7rH-LhMnQPla.js → TimeframeSwitcher-LLgotbh8-X4qFRStD.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CduB3ZjN-Bc8snpDR.js → TimeframeSwitcherWithToggle-Cw3a9d0I-BlbsDDpn.js} +1 -1
- package/dist/assets/{TopExCard-C_HWsAL1-BNvPE6hk.js → TopExCard-Dj0wtF6g-CdD53hxs.js} +3 -3
- package/dist/assets/{TopExDetailPage-BEKo6juU-BpuXflks.js → TopExDetailPage-JutaMmtR-koGwO2ev.js} +5 -5
- package/dist/assets/{TransactionDetailPage-Bzgtmi3U-CUNsBAnj.js → TransactionDetailPage-BdFHqSCv-Bc3ggi0n.js} +30 -30
- package/dist/assets/{TransactionList-Dw78Q0Sx-Dd3Ecl2O.js → TransactionList-C85wyFeI-C41EirGp.js} +4 -4
- package/dist/assets/{TransactionListBig-BofakL17-CpCaYWGi.js → TransactionListBig-DPev2-Mm-BpW_w096.js} +6 -6
- package/dist/assets/{TransactionListPage-tpOg0ax5-DKkGWPvy.js → TransactionListPage-D127NU4T-BPyAfJzu.js} +4 -4
- package/dist/assets/{TransactionVendorDetailPage-BqIcXz6b-DFVXpfQo.js → TransactionVendorDetailPage-BJ1YnPif-SJ1gb7FN.js} +5 -5
- package/dist/assets/{TransferDrawerPage-DnnZBOyK-DHPnGpDx.js → TransferDrawerPage-DcrfmXH1-DiL_C6V9.js} +21 -21
- package/dist/assets/{TreasuryOverviewPage-C9ROzNHl-dAyZi1PP.js → TreasuryOverviewPage-D-Zw4Npq-K2RbtXZZ.js} +22 -22
- package/dist/assets/{TreasuryPromoPage--j_2YjQn-DrWu-589.js → TreasuryPromoPage-BhBPhhbb-DM-0mrYZ.js} +131 -131
- package/dist/assets/{TreasuryStatementsPage-BLrceDQm-B1HbugZ0.js → TreasuryStatementsPage-Dxjg_QN7-C_fsR-Na.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BoqkgdLm-B7t38h3i.js → TreasuryTaxLetterPage-Dm552RDZ-BLLWDMsm.js} +7 -7
- package/dist/assets/{TrendChart-KnFi8NXQ-BLbRutmX.js → TrendChart-_c8z5Kxm-DarAZz3o.js} +1 -1
- package/dist/assets/{TrendWithTransactions-C_T0I9xe-B2RFC6B8.js → TrendWithTransactions-B2rde1MW-D1twJg_e.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-DOuzy2aS-Cjy9zZxx.js → UncategorizedAccountsMappingPage-77nkQFar-Bn3Ibb9A.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DxhlNHvt-BFh73dHR.js → UnitIntegrationPage-3_YMV_f4-yfDaiCvi.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-BAvSyhDW-D9eq74iT.js → UploadAdditionalDocumentOverlay-D72fkcgM-BkIuCEEz.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BFjVFON8-D578XUKc.js → Vendor2FAPopup-DLbGF5_q-DmCvA6XI.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-8BG5DD-0-DML5nDiV.js → VendorACHDetailsPage-CaNQylEA-CMyzxyGW.js} +1 -1
- package/dist/assets/{VendorDetailPage-C16CrNJo-lfwKJzFE.js → VendorDetailPage-DqdH4UMj-tM-8a-UX.js} +18 -18
- package/dist/assets/{VendorDomesticWireDetailsPage-DXhugXZa-D2deiUxT.js → VendorDomesticWireDetailsPage-9pyV_r_g-CREdXXXG.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-2QPpdbuN-DmV9iFrX.js → VendorFiling1099EditablePage-nb9_V73Z-CwrDCXoq.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-DLshEh_s-29QEqBR3.js → VendorFirstReviewPage-C2RjaA8x-C3EURG-_.js} +58 -58
- package/dist/assets/{VendorInternationalWireDetailsPage-_WoNgw66-RXvmQY2U.js → VendorInternationalWireDetailsPage-VOAgofls-DxNfQmbI.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dyt1ZPOh-Dvv7mFPN.js → VendorInternationalWireSwiftDetailsPage-CcRuLO-_-CRRJCsCk.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Dxq0YSgP-CQ3Vw-hX.js → VendorsAccountsSection-RzVUJ8IV-CIdzas-R.js} +14 -14
- package/dist/assets/{VerifyDevice-DEwEqoHA-o-B1EyGV.js → VerifyDevice-DUxQHfLf-DyoufOtx.js} +1 -1
- package/dist/assets/{VideoPlayer-_1Msrww9-DzCjuwYG.js → VideoPlayer-BxuhQQfM-CSaCo4fi.js} +1 -1
- package/dist/assets/{VideoPopup-BzQ_Dl9b-CPjeGrGA.js → VideoPopup-DdtmLcPB-9kSPQrRF.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CMBST3p1-By1WKuQW.js → WarningsDrawerPage-DC5ophK0-B9MWpL_5.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-DVLYYC-q-C2IM3BG5.js → ZeniAccountDetailPage-C1KKeyYC-AmZ_-UbH.js} +14 -14
- package/dist/assets/{ZeniAccountListViewPage-BHkoMOx5--XEIxzf-.js → ZeniAccountListViewPage-Bw5_2Q-c-Zl0NVbWL.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CCFzNOcx-BTbwqUAG.js → ZeniAccountNavBarPieces-DlfwFtOB-BhG7WDho.js} +3 -3
- package/dist/assets/{ZeniAccountPromoPage-C3Rl-hWL-Dxr3qnyn.js → ZeniAccountPromoPage-B8cXf7Ni-BGYao9Jv.js} +13 -13
- package/dist/assets/{ZeniAccountSetupPage-Bf1OOF0Q-CVWU_nTY.js → ZeniAccountSetupPage-Cae0pB-b-Blr8FOsP.js} +3 -3
- package/dist/assets/{ZeniCopyright-CdqD8vO4-GOUGz5oO.js → ZeniCopyright-gTS4uZlF-BTYFdkhV.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BTudpQjV-C-ERY6Ys.js → ZeniTransferAmountSlider-17kY7kNO-DEs9IrPm.js} +1 -1
- package/dist/assets/{analyticsHelper-_u1yj9ge-CQN7AQjp.js → analyticsHelper-DXVBA0aW-q_4bVB8v.js} +1 -1
- package/dist/assets/analyticsHelper-kRUwHHg6.js +1 -0
- package/dist/assets/{chartTypes-vQ8GTDEq-Bzji-J7a.js → chartTypes-BXBHlosV-DY5SgOjH.js} +1 -1
- package/dist/assets/{commonDimensions-znFHURNY-BYw9nu0T.js → commonDimensions-Bm2CSHrw-S9XM9nhL.js} +1 -1
- package/dist/assets/{detailCommon-DmLhlrjU-QJ3x5gZG.js → detailCommon-VW4xegQy-1DhxNuRe.js} +3 -3
- package/dist/assets/{downloadPdf-CCUPfpyu-CLDRZEaM.js → downloadPdf-DUAAPKqC-BN9D0Y0M.js} +1 -1
- package/dist/assets/{index-DdsM_njZ.js → index-BS0RW8dr.js} +3698 -3698
- package/dist/assets/{mapLoadingInProgressToTreeNode-Cw74bTou-DytzWuKd.js → mapLoadingInProgressToTreeNode-D5WZ1WGx-B7azUcXb.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CWFxnMpB-CaiEsiC-.js → mapSectionWithAcOnlyToTreeNode-BxzLwMCb-DSGmyD1M.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-JUrBuZAz-CZWi6rgT.js → mapSpacerToTreeNode-CScyNZ9s-wlC4VP1v.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B2iYfeF3-DPdNoTaa.js → mapTimeframeBalancesToTreeNode-Caj8eqsL-Kzqcpw75.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BbQHYZk7-BsTucrUk.js → mapTimeframeBalancesToTreeNode-CdVqeC27-Dxhi6BEZ.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BeqGSN9x-CRBIGAA9.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CUFXYz6j-YXXdz_Ql.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DeZfEmbT-BYnyj8Vs.js → toCOABalancesWithID-CqzWoD-C-D32cGljj.js} +1 -1
- package/dist/assets/{toChartData-KibzV7pa-BIBW1wkQ.js → toChartData-X878W8tN-DZEeyq4i.js} +1 -1
- package/dist/assets/{uploadAttachment-U9nX0Ka9-ByggkyFe.js → uploadAttachment-DNKgJox4-CH4FqFzC.js} +13 -13
- package/dist/assets/{uploadReceipts-CDPM7zcb-Bl8TSXaa.js → uploadReceipts-Bkf_PaOH-DrwBt5Yx.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/ApprovalRulesSettingsPage-BOJE5Fb_-CtBvorfk.js +0 -47
- package/dist/assets/ArAgingDetailPage-ZjaiAH-C-P2cbl-8k.js +0 -46
- package/dist/assets/CreateOrEditVendorPage-flCFtC2N-AdYl79w3.js +0 -281
- package/dist/assets/CustomerOnboardingContainerPage-DZ9vkiEO--NuA2aDE.js +0 -1
- package/dist/assets/CustomerOnboardingPage-C12XXjv0-BcXZ0f7B.js +0 -107
- package/dist/assets/DepositAccTransactionListPage-keSFBKDU-DxyDpFrs.js +0 -66
- package/dist/assets/Menu-D_6Dje0H-BZ0tGHak.js +0 -17
- package/dist/assets/analyticsHelper-BHPP6wwz.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as ne,
|
|
1
|
+
import{av as ne,d as S,Q as k,aN as le,F as D,V as e,aK as a,fo as ae,bz as me,n as u,ad as m,o as t,ap as ce,E as de,aQ as E,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,u as we}from"./index-BS0RW8dr.js";import{a as j}from"./core-3dlyNYRL.js";import{n as s}from"./mui-bYXq4XMS.js";import{fH as je,bW as be}from"./zeni-epic-state-LPACxnXP.js";import{f as fe}from"./VideoPopup-DdtmLcPB-9kSPQrRF.js";import{M as v}from"./usp-line-BBd1wKwW-ClwDS-nj.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./VideoPlayer-BxuhQQfM-CSaCo4fi.js";const F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -23,7 +23,7 @@ import{av as ne,e as S,Q as k,aN as le,F as D,V as e,aK as a,fn as ae,bz as me,n
|
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
25
25
|
margin-bottom: ${i=>ye.midContainerMarginBottom.valuePx(i.windowSize)};
|
|
26
|
-
`,ve=s.div``,
|
|
26
|
+
`,ve=s.div``,L=s.div`
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
29
29
|
align-items: center;
|
|
@@ -68,7 +68,7 @@ import{av as ne,e as S,Q as k,aN as le,F as D,V as e,aK as a,fn as ae,bz as me,n
|
|
|
68
68
|
color: ${i=>i.theme.colors.champion};
|
|
69
69
|
`,d=s.div``,p=s.div`
|
|
70
70
|
padding-left: ${t.sp3};
|
|
71
|
-
`,
|
|
71
|
+
`,I=s(E)`
|
|
72
72
|
margin: ${i=>i.windowSize==="small"?t.sp1:`auto ${t.sp5}`};
|
|
73
73
|
color: ${i=>i.theme.colors.grey1};
|
|
74
74
|
`,O=s(v)`
|
|
@@ -77,8 +77,8 @@ import{av as ne,e as S,Q as k,aN as le,F as D,V as e,aK as a,fn as ae,bz as me,n
|
|
|
77
77
|
color: ${z.graphColor09Dark};
|
|
78
78
|
`,q=s(v)`
|
|
79
79
|
color: ${z.success};
|
|
80
|
-
`,
|
|
80
|
+
`,M=s(pe)`
|
|
81
81
|
margin: ${t.sp3} auto;
|
|
82
82
|
max-width: 772px;
|
|
83
83
|
color: ${i=>i.theme.colors.hero};
|
|
84
|
-
`,r=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=D.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(Z,{windowSize:o,children:[e.jsx(W,{windowSize:o,children:e.jsx(H,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.simplestText.bold}),e.jsx(y,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(Z,{windowSize:o,children:[e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.simplestText.bold}),e.jsx(b,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.aiPoweredText.bold}),e.jsx(b,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.multiLevelApprovalText.bold}),e.jsx(b,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsx(W,{windowSize:o,children:e.jsx(H,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},We=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:G,videoUrl:K,analytics:x,onSetupButtonClick:J,onCreateNewRemiButtonClick:X,onBackClick:Y,onSetupReimbursementSuccess:T,onClickMenuIcon:_})=>{const C=ne(),[ee,ie]=j.useState(!1),[re,P]=j.useState(!1),te=S(),l=k(),{remiTermsDetails:h}=i,R=le(h?.fetchStatus.fetchState),se=je(C.loggedInUserRoleMap),w=be(C.loggedInUserRoleMap)&&!se,oe=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=w?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;j.useEffect(()=>{R==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&T?.()},[R,T,h?.fetchStatus]);const
|
|
84
|
+
`,r=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=D.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(Z,{windowSize:o,children:[e.jsx(W,{windowSize:o,children:e.jsx(H,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.simplestText.bold}),e.jsx(y,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(Z,{windowSize:o,children:[e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.simplestText.bold}),e.jsx(b,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.aiPoweredText.bold}),e.jsx(b,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.multiLevelApprovalText.bold}),e.jsx(b,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsx(W,{windowSize:o,children:e.jsx(H,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},We=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:G,videoUrl:K,analytics:x,onSetupButtonClick:J,onCreateNewRemiButtonClick:X,onBackClick:Y,onSetupReimbursementSuccess:T,onClickMenuIcon:_})=>{const C=ne(),[ee,ie]=j.useState(!1),[re,P]=j.useState(!1),te=S(),l=k(),{remiTermsDetails:h}=i,R=le(h?.fetchStatus.fetchState),se=je(C.loggedInUserRoleMap),w=be(C.loggedInUserRoleMap)&&!se,oe=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=w?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;j.useEffect(()=>{R==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&T?.()},[R,T,h?.fetchStatus]);const B=()=>{x?.trackReimbursementPromoScheduleDemo(),P(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(fe,{onCancelClick:()=>{ie(!1)},videoUrl:K,"data-testid":a("remi-promo-page-video-popup")}):null,re===!0?e.jsx(ae,{onCancelClick:()=>{P(!1)},meetingUrl:G,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(me,{title:r.title,backgroundColor:te.colors.grey4,onBackClick:Y,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:_,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:A}):e.jsx(ke,{children:A}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:U&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:B,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:X,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(M,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:B,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:J,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(M,{children:[r.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{We as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as Ee,Q as Ve,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,A as Ke,ab as Ye,fp as ve,dR as Qe,fq as Xe,bu as et,dH as tt,aO as it,o as a,fs as nt,u as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aK as Pe,B as Ae,bJ as ct,ag as dt,br as ut}from"./index-BS0RW8dr.js";import{a as o}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{bM as mt}from"./zeni-epic-state-LPACxnXP.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-D72fkcgM-BkIuCEEz.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),f={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:w,analytics:A,style:j,sectionId:$,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:K},trigger:Y}=at(),E=ht($,"mileageAmountInDenomination"),h=lt(K,E),{localData:c,updateStatus:F,mileageStatus:S}=w,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[b,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{h||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{b||H(b)},[b]);const{reimbursementSetup:x}=ee,{setUp:ie}=Q,ne=b===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:f.iconWidthHeight.valuePx(l),height:f.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(bt,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:$e(S.code)}):null]}),t.jsxs(wt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:S.name,textColor:$e(S.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:h?void 0:D.colors.background,color:b||h?void 0:D.colors.grey1},isFieldError:h,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Lt,{children:b?t.jsx(rt,{label:x.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!h&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(zt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),A.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:h,children:h&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,w)=>`${e}.${w}`,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"};
|
|
5
5
|
opacity: ${e=>e.isActive?1:.32};
|
|
6
|
-
row-gap: ${e=>
|
|
6
|
+
row-gap: ${e=>f.rowGap.valuePx(e.windowSize)};
|
|
7
7
|
`,yt=i.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
width: 100%;
|
|
@@ -28,20 +28,20 @@ import{e as Ee,Q as Ve,aN as N,a8 as Ge,cB as qe,F as Le,aS as Ce,V as t,f5 as J
|
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: row;
|
|
30
30
|
align-items: flex-start;
|
|
31
|
-
padding: ${e=>
|
|
31
|
+
padding: ${e=>f.iconPadding.valuePx(e.windowSize)};
|
|
32
32
|
background: ${e=>e.isDarkMode?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
|
|
33
33
|
border-radius: ${a.sp11};
|
|
34
34
|
width: fit-content;
|
|
35
35
|
height: fit-content;
|
|
36
36
|
color: ${e=>e.isDarkMode?J.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
|
|
37
|
-
max-width: ${e=>
|
|
38
|
-
max-height: ${e=>
|
|
39
|
-
margin-right: ${e=>
|
|
37
|
+
max-width: ${e=>f.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
38
|
+
max-height: ${e=>f.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
39
|
+
margin-right: ${e=>f.iconContainerMarginRight.valuePx(e.windowSize)};
|
|
40
40
|
`,kt=i.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: row;
|
|
43
|
-
padding: ${e=>
|
|
44
|
-
width: ${e=>
|
|
43
|
+
padding: ${e=>f.containerPadding.valuePx(e.windowSize)};
|
|
44
|
+
width: ${e=>f.sectionWidth.valuePx(e.windowSize)};
|
|
45
45
|
background-color: ${e=>e.theme.colors.grey5};
|
|
46
46
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
47
47
|
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
@@ -60,12 +60,12 @@ import{e as Ee,Q as Ve,aN as N,a8 as Ge,cB as qe,F as Le,aS as Ce,V as t,f5 as J
|
|
|
60
60
|
align-items: center;
|
|
61
61
|
flex-direction: row;
|
|
62
62
|
justify-content: space-between;
|
|
63
|
-
`,
|
|
63
|
+
`,Pt=i.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
color: ${e=>e.theme.colors.primary};
|
|
67
67
|
${e=>`${ge.title.style(e.windowSize)}`};
|
|
68
|
-
`,
|
|
68
|
+
`,At=i.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
`,jt=i.div``,Dt=i(ct)`
|
|
@@ -82,13 +82,13 @@ import{e as Ee,Q as Ve,aN as N,a8 as Ge,cB as qe,F as Le,aS as Ce,V as t,f5 as J
|
|
|
82
82
|
height: ${a.sp6};
|
|
83
83
|
width: 100%;
|
|
84
84
|
position: relative;
|
|
85
|
-
`,
|
|
85
|
+
`,Tt=i.label`
|
|
86
86
|
display: flex;
|
|
87
|
-
padding-left: ${e=>
|
|
87
|
+
padding-left: ${e=>f.infoLabelPaddingLeft.valuePx(e.size)};
|
|
88
88
|
color: ${e=>e.hasError===!0?J.important:e.additionalInfoTextColor??e.theme.colors.hero};
|
|
89
89
|
${e=>`${ge.infoLabel.style(e.size)}`};
|
|
90
90
|
margin-top: ${a.sp1};
|
|
91
|
-
`,
|
|
91
|
+
`,Lt=i.div`
|
|
92
92
|
display: flex;
|
|
93
93
|
position: absolute;
|
|
94
94
|
top: 50%;
|
|
@@ -103,7 +103,7 @@ import{e as Ee,Q as Ve,aN as N,a8 as Ge,cB as qe,F as Le,aS as Ce,V as t,f5 as J
|
|
|
103
103
|
&:hover {
|
|
104
104
|
color: ${e=>e.theme.colors.primary};
|
|
105
105
|
}
|
|
106
|
-
`,p={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",
|
|
106
|
+
`,p={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",Qt=({remiSetupView:e,isDisabled:w,remiApprovalView:A,connectedAccountProvider:j,isAccountsEnabled:$,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:K,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:h,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:S,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Q,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:b,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const B=Ee(),u=Ve(),[W,L]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:z,accountUpdateStatus:Le,plaidConnectionDetails:le,allBankAccounts:ze,companyRemiInfo:Ie,companyBillPayInfo:he,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=A,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(z.fetchState),we=N(se.fetchState),Se=N(re.fetchState),I=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!W&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&L(!0),W&&_==="In-Progress"&&v==="Completed"&&L(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||we==="In-Progress"&&se.fetchState==="Completed"||Se==="In-Progress"&&re.fetchState==="Completed")&&I.reset(pe(e))},[_,v,I,e,we,se.fetchState,Se,re.fetchState]);const Ue=I.handleSubmit(P=>{l.trackEnableReimbursement(),b()}),He=async(P,R)=>{const m=R[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const y=fe.find(me=>me.id===m.fundingAccount.selectedOption);y!=null&&Q(m.fundingAccount.selectedOption,y.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.zeniAccountId!=m.account.selectedOption){const y=m.account.allOptions.find(me=>me.value===m.account.selectedOption);y!=null&&typeof y.label=="string"&&l.trackConnectBankLink(y.value,y.label,"reimbursement"),U(m.account.selectedOption,C.id,C.accType)}}else if(P.includes(G)){const y=R[G];S(y)}};o.useEffect(()=>{const P=I.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>He(m,R))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&z.fetchState==="Completed"&&V()},[V,ye,z.fetchState]);const{commonSetUp:be,spendManagement:Be}=Te.getLocalizedStrings(),{reimbursement:We}=Be,{reimbursementSetup:M}=We,{setUp:k}=be,ce=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=Ie?.isReimbursementEnabled===!0,Oe=ce?be.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=B.mode==="light"?new Ce(B.colors.brandColorJadeLight):new Ce(B.colors.brandColorJadeDark),Ne=()=>{!W&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?L(!0):Y?.()};return t.jsxs(It,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:W,onClose:()=>L(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:d,updateStatus:z,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>L(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:B.colors.grey4,style:{zIndex:3},onBackClick:K,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ke,{size:"ExtraLarge",start:!0})}):t.jsx(Ye,{...I,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(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Xe,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:ze,allFundingAccounts:fe,sectionId:q,isDisabled:w,onFetchLinkTokenClick:h,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,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:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:z.fetchState==="In-Progress"||Le.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},It=i.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
min-height: 100%;
|
|
109
109
|
flex-direction: column;
|
|
@@ -117,7 +117,7 @@ import{e as Ee,Q as Ve,aN as N,a8 as Ge,cB as qe,F as Le,aS as Ce,V as t,f5 as J
|
|
|
117
117
|
padding-top: ${e=>p.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
118
118
|
padding-bottom: ${e=>p.subTitlePaddingBottom.valuePx(e.windowSize)};
|
|
119
119
|
text-align: ${e=>e.windowSize==="small"?"initial":"center"};
|
|
120
|
-
`,
|
|
120
|
+
`,Rt=i.div`
|
|
121
121
|
display: flex;
|
|
122
122
|
justify-content: flex-start;
|
|
123
123
|
height: 100%;
|
|
@@ -125,7 +125,7 @@ import{e as Ee,Q as Ve,aN as N,a8 as Ge,cB as qe,F as Le,aS as Ce,V as t,f5 as J
|
|
|
125
125
|
flex-direction: column;
|
|
126
126
|
align-items: center;
|
|
127
127
|
row-gap: ${e=>p.setupDetailsRowGap.valuePx(e.windowSize)};
|
|
128
|
-
`,
|
|
128
|
+
`,Ft=i.div`
|
|
129
129
|
display: flex;
|
|
130
130
|
width: 100%;
|
|
131
131
|
height: calc(100vh - 110px);
|
|
@@ -137,4 +137,4 @@ import{e as Ee,Q as Ve,aN as N,a8 as Ge,cB as qe,F as Le,aS as Ce,V as t,f5 as J
|
|
|
137
137
|
display: flex;
|
|
138
138
|
flex-direction: column;
|
|
139
139
|
row-gap: ${e=>p.sectionRowGap.valuePx(e.windowSize)};
|
|
140
|
-
`,pe=e=>{const{allBankAccounts:w,allFundingAccounts:
|
|
140
|
+
`,pe=e=>{const{allBankAccounts:w,allFundingAccounts:A,mileageDetails:j,primaryFundingAccount:$}=e,{localData:d}=j;return{[q]:{fundingAccount:{selectedOption:$?.id,allOptions:A.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:w.map(r=>({label:r.accountName,value:r.accountId}))}},[G]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{Qt as default,De as uniqueName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as O,V as f,cm as M,cn as W,co as Y,
|
|
1
|
+
import{F as O,V as f,cm as M,cn as W,co as Y,k0 as q,aV as z}from"./index-BS0RW8dr.js";import{a as b}from"./core-3dlyNYRL.js";import{gc as G}from"./zeni-epic-state-LPACxnXP.js";import{u as X}from"./ReviewOverlay-BHUy3fWf-DhycJa32.js";import"./mui-bYXq4XMS.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const{common:n,spendManagement:{reimbursement:B}}=O.getLocalizedStrings(),o=B.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=b.useState(!1),[m,_]=b.useState(P(e,h,a)),[y,R]=b.useState(h),[I,J]=b.useState(0),[S,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(I===m.length&&y&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(j)}),[m.length,I,y,e.fetchState,h,e,a]);const F=m.length,x=m.filter(u=>u.reviewStatus.code!=="error").length,L=()=>{const{title:u,description:T}=Z(x);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,G(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:E,description:U}=H(p,x,F,y),C=e.fetchState==="Completed"&&x===0,V=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:V,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:L,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[w?f.jsx(M,{titleComponent:f.jsx(Y,{children:S.title}),descriptionComponent:f.jsx(W,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(X,{title:E,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!y,footerProps:{primaryButton:D(),cancelButton:N,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as h,V as r,aJ as a,aK as m,b0 as f,F as j,aP as l,bB as x,ag as g,o as c,b1 as p}from"./index-BS0RW8dr.js";import{n as s}from"./mui-bYXq4XMS.js";import{a as d}from"./core-3dlyNYRL.js";function y({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function C({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function V({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(C,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function q({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(p,{children:({height:i,width:n})=>r.jsx(y,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const w=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe,y as O,aO as be,o as n,cc as ye,cd as we,ce as _e,cf as $e,cg as ve,al as ce,ch as ke,u as p,ag as Ce,aA as Q,bB as je,aS as Se,ak as Ne,at as Ie}from"./index-BS0RW8dr.js";import{a as f,w as de}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import{R as P,I as Oe}from"./CollapsableReportTable-DdMyzUD0-BAoVL7wM.js";const R=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Fe(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(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ro(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=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};
|
|
@@ -20,17 +20,17 @@ import{e as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe
|
|
|
20
20
|
:hover {
|
|
21
21
|
color: ${e=>e.theme.colors.primary};
|
|
22
22
|
}
|
|
23
|
-
`,Te=e=>{const{value:c,onClick:a}=e,t=K();return o.jsxs(
|
|
23
|
+
`,Te=e=>{const{value:c,onClick:a}=e,t=K();return o.jsxs(Be,{onClick:a,children:[o.jsx(Ae,{style:{color:t.colors.primary},children:c}),o.jsx(Ee,{})]})},Le=de.memo(Te);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=P("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const a=e.map((t,r)=>{const h=P("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(D=>he({nestedClass:D,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function ze(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new O(p[3],p[3],p[2]),contentPaddingRight:new O(p[3],p[3],p[2])},Re=d.div`
|
|
24
24
|
height: ${e=>e.height}px;
|
|
25
25
|
width: 100%;
|
|
26
|
-
`,Ve=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:q,onToggleCheck:
|
|
26
|
+
`,Ve=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:q,onToggleCheck:F})=>{const V=K(),H=ie(),[$,j]=f.useState(void 0),[L,w]=f.useState(!1),[M,B]=f.useState({}),[g,W]=f.useState(void 0),[A,v]=f.useState(r),Y="none",E=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,S=(i,l)=>{w(!0),B(i),F?.(i,l,r==="account_group"?!0:void 0),_(i,l)},_=(i,l)=>{const m=G(i);for(const k of m.children)F?.(k.classId,l),_(k.classId,l)},G=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(k=>k.classId[0]===i[m])[0];return l},J=i=>{if(i.length>1){const l=G(i.slice(1));let m=!1;for(const k of l.children)if(t.find(s=>s[0]===k.classId[0])===void 0){m=!0;break}m===!0?F?.(l.classId,!0):F?.(l.classId,!1),B(l.classId)}};f.useEffect(()=>{L&&J(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:Y,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:E,showClassAccountNumber:h};if($==null||!Q(g,a)||!Q(A,r)||L===!0){const l=We(a,i);W(a),j(l),v(r)}else{const l=ze($,i);j(l),v(r)}},[a,r,t]);const[U,Z]=f.useState(5),T=i=>{const l=i+p[6];Z(l)};return $!=null?o.jsx(Re,{height:U,children:o.jsx(Oe,{backgroundColor:r==="classes"?new Se(V.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(H),right:oe.contentPaddingRight.value(H)},scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:q,onToggleCheck:S,onReportTableHeightChanged:T})}):null},C={width:new O(350,400,400),height:new O(165,165,165),buttonWidth:new O(62,62),buttonHeight:new O(p[5],p[5]),containerWidth:new O(150,400,400)},He=d.div`
|
|
27
27
|
position: relative;
|
|
28
28
|
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
|
-
`,
|
|
29
|
+
`,Ye=d.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: column;
|
|
32
32
|
width: ${e=>C.containerWidth.valuePx(e.windowSize)};
|
|
33
|
-
`,
|
|
33
|
+
`,Ge=d($e)`
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: row;
|
|
36
36
|
width: fit-content;
|
|
@@ -147,4 +147,4 @@ import{e as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe
|
|
|
147
147
|
margin-left: ${n.sp5};
|
|
148
148
|
margin-top: -12px;
|
|
149
149
|
color: ${e=>e.theme.colors.hero};
|
|
150
|
-
`,{reportViewSelector:I,common:{footer:ne}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function lo({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:D,isClassViewDisabled:q,downloadPage:
|
|
150
|
+
`,{reportViewSelector:I,common:{footer:ne}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function lo({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:D,isClassViewDisabled:q,downloadPage:F,showAccountGroups:V=!0,onResyncReports:H,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const L=K(),w=ie(),[M,B]=f.useState(!1),[g,W]=f.useState(r),[A,v]=f.useState({}),Y=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=Y(x.children,u)}),u),E=Y(a,[]),[S,_]=f.useState(g==="classes"?h:E),G=t!=="Completed"||g==="classes"&&S.length===E.length;me({componentName:`reports.${e}`});const J=s=>s==="classes"?I.classes.label:V===!0?I.accountGroups.label:I.accounts.label,U=fe({mode:"all"}),Z=U.handleSubmit(()=>{B(!1),g==="classes"?D?.("classes",S):D?.("account_group")}),T=s=>{if(W(s),s==="classes")v({}),_([]);else{_(E);let u={};a.forEach(x=>{const N=P("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[N]:!1})}),v(u)}},i=()=>{M===!0&&m(),B(!M);let s={};a.forEach(u=>{const x=P("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||S.find(N=>N[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),_(E)),u===!0){const N=P("checkbox_and_name_only",[],s[0]);A[N]=!0,v(A),_(z=>z.filter(pe=>pe[0]!==s[0]))}else{const N=P("checkbox_and_name_only",[],s[0]);A[N]=!1,S.find(z=>z[0]===s[0])===void 0&&_(z=>[...z,s])}},m=()=>{B(!1),W(r),_(h)},k=()=>{$===!1&&H?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=P("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(He,{isDisabled:q??!1,children:[F===!0?o.jsx(Le,{value:J(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ye,{windowSize:w,children:[o.jsxs(Ge,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(Je,{className:"dropdownIcon"}),J(r)]}),r==="classes"?o.jsx(Qe,{onClick:k,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Xe,{})]})}):null]}),M?o.jsx(xe,{...U,children:o.jsx("form",{id:le(re),onSubmit:Z,children:o.jsxs(Ue,{width:C.width.value(w),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?T("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>T(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:V===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Ke,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?T("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?T(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(qe,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:S,selectedView:g,nodeOpenStatus:A,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:L.colors.grey3,foregroundColor:L.colors.grey4,width:C.width.value(w),height:C.height.value(w),animated:!0})]}),o.jsx(Ze,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:G,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(Ve,Q);export{ro as h,lo as u};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{Q as W,e as G,F as C,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,A as Ce,bM as ye,u as S,C as R,aA as J,x as xe,aS as Oe,as as Ae,bD as Re}from"./index-DdsM_njZ.js";import{a as T,w as X}from"./core-3dlyNYRL.js";import{n as _}from"./mui-bYXq4XMS.js";import{bh as H,eK as Be,eT as ve,eU as $,eV as Le,eW as Te,eX as Pe,eY as ke,eZ as Ne,e_ as ee,e$ as te}from"./zeni-epic-state-LPACxnXP.js";import{m as z,l as q}from"./analyticsHelper-_u1yj9ge-CQN7AQjp.js";import{u as Ie}from"./ReportTableViewSelector-B0DXgLgJ-D7Qg6jRX.js";import{a as se,p as Me}from"./TimeRangeSwitcher-xILz-EO6-CF6h2u8x.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-CduB3ZjN-Bc8snpDR.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-f6SOW8iK-wYT98R7A.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-NYu8Bq-g-CWsTIw0C.js";import{D as oe,T as ae,C as j,L as Ee,g as ie}from"./mapSectionWithAcOnlyToTreeNode-CWFxnMpB-CaiEsiC-.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BbQHYZk7-BsTucrUk.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BeqGSN9x-CRBIGAA9.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-Cw74bTou-DytzWuKd.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-CZhQm7rH-LhMnQPla.js";import"./page-detail-CWX5S47F-Bc8Xpsuq.js";import"./AccountRow-BObEIy6l-JC0yFhHa.js";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=C.getLocalizedStrings().reports.sections,n=C.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=C.getLocalizedStrings().reports.sections,n=C.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 ke(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(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=C.getLocalizedStrings().reports,d=C.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 y=ze({title:`${h}+${c}`,balances:p,config:t});y.reportElementData.element.numOfBalances=6,l.push(y)})}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(Ee({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=C.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,aK as P,bL as _e,bA as be,bz as Se,y as B,o as w,aQ as we,A as ye,bM as Ce,u as S,x as R,aA as J,t as xe,aS as Oe,as as Ae,bD as Re}from"./index-BS0RW8dr.js";import{a as T,w as X}from"./core-3dlyNYRL.js";import{n as _}from"./mui-bYXq4XMS.js";import{bh as H,eK as Be,eT as ve,eU as $,eV as Le,eW as Te,eX as Pe,eY as ke,eZ as Ne,e_ as ee,e$ as te}from"./zeni-epic-state-LPACxnXP.js";import{m as z,l as q}from"./analyticsHelper-DXVBA0aW-q_4bVB8v.js";import{u as Ie}from"./ReportTableViewSelector-Dv7BwM1q-DZ-FOl5q.js";import{a as se,p as Me}from"./TimeRangeSwitcher-C4Tph63B-D9xSXRlF.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-Cw3a9d0I-BlbsDDpn.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-D2vm9EYI-1UU-2gMF.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-DdMyzUD0-BAoVL7wM.js";import{D as oe,T as ae,C as j,L as Ee,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BxzLwMCb-DSGmyD1M.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CdVqeC27-Dxhi6BEZ.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CUFXYz6j-YXXdz_Ql.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-D5WZ1WGx-B7azUcXb.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-LLgotbh8-X4qFRStD.js";import"./page-detail-CWX5S47F-Bc8Xpsuq.js";import"./AccountRow-CIsbwvGp-J3oMxL3b.js";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 ke(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(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(Ee({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 Ke({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,
|
|
6
|
+
`;function Ke({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,E]=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=>$(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,Z=D??fe;Z?.additionalBalances!=null&&(m=Z.additionalBalances.map(me=>$(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>$(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>$(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:Re(),showClassAccountNumber:n};if(c==null||!J(x,e)||g===!0){const f=Je(e,m,v,g);E(e),C(f)}else{const f=We(c,m,e,v);C(f)}},[u,e,g]);const[A,N]=T.useState(5),I=m=>{const f=m+135;N(f)},he=m=>m?.trackPageLoaded(Xe(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:he}),r.jsx(Qe,{height:A,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:I,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Je=(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 He(e,t,o,a);case"cash_flow":return Ze(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Xe=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return R.Event.profitAndLoss;case"cash_flow":return R.Event.cashFlow;case"balance_sheet":return R.Event.balanceSheet;default:return R.Event.reports}},et=_.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -49,7 +49,7 @@ import{Q as W,e as G,F as C,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y
|
|
|
49
49
|
width: 160px;
|
|
50
50
|
left: 63%;
|
|
51
51
|
}
|
|
52
|
-
`;function ot({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return
|
|
52
|
+
`;function ot({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(st,{"data-testid":P("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function at({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(et,{"data-testid":P("report-switcher-container"),children:r.jsx(tt,{"data-testid":P("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(ot,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(nt,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const k={contentContainerLeftRightMargin:new B(S[3],S[3],S[8]),contentRightPadding:new B(S[3],S[3],S[8]),tickSkelectionContainerWidth:new B(343,600,905,1240)},it=new B(4,4),ct=new B(4,4),rt={selectedNumberOfPeriods:(e,t)=>e?ct.value(t):it.value(t)},lt=_.div`
|
|
53
53
|
display: flex;
|
|
54
54
|
flex: 1 1 auto;
|
|
55
55
|
min-height: 100%;
|
|
@@ -98,9 +98,9 @@ import{Q as W,e as G,F as C,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(Ce,{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,A)=>{O!==h?.accountViewMode&&a?.(O),A&&n?.(A)};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=C.getLocalizedStrings().reports.common,c=ge(),y=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[E,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:E,disabledFormatForRole:x,roleBasedClassesSelectedFormat:y,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($e,{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:(A,N,I)=>{d(l,A,N,I)},onTimeframeSelectionChanged:(A,N,I)=>{p?.(A,N,I)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:C.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 y=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,y,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??k.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(Ct,{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:C.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(ye,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(yt,{windowSize:t,children:r.jsx(Me,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:K(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:K(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(At,{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(Ie,{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 K=(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:C.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 R.Event.profitAndLoss;case"cash_flow":return R.Event.cashFlow;case"balance_sheet":return R.Event.balanceSheet;default:return R.Event.reports}},ue=X.memo(Ke,(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&&J(e[`${n}`],t[`${n}`]),!0),Ct=_.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,A)=>{O!==h?.accountViewMode&&a?.(O),A&&n?.(A)};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[E,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:E,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($e,{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:(A,N,I)=>{d(l,A,N,I)},onTimeframeSelectionChanged:(A,N,I)=>{p?.(A,N,I)}}):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??k.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:K(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:K(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(At,{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(Ie,{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 K=(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 R.Event.profitAndLoss;case"cash_flow":return R.Event.cashFlow;case"balance_sheet":return R.Event.balanceSheet;default:return R.Event.reports}},ue=X.memo(Ke,(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&&J(e[`${n}`],t[`${n}`]),!0),yt=_.div`
|
|
102
102
|
padding-right: ${e=>k.contentRightPadding.valuePx(e.windowSize)};
|
|
103
|
-
`,
|
|
103
|
+
`,Ct=_.div`
|
|
104
104
|
margin-top: ${w.sp3};
|
|
105
105
|
padding-right: ${e=>k.contentRightPadding.valuePx(e.windowSize)};
|
|
106
106
|
`,xt=_.div`
|