@zeniai/web-cockpit-ui 1.14.84-dev → 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-BuCiUEId.js → ACHDetailsPage-Dzk7YdoJ-Cuct0t6u.js} +2 -2
- package/dist/assets/{AIPerformancePage-BdDTidCL-D-IQ6p36.js → AIPerformancePage-DBCH9dJi-CYibQjrX.js} +19 -19
- package/dist/assets/{AccountInfoPage-w0STaK9a-BfMIBiEJ.js → AccountInfoPage-Mzw-22d_-Df5O2T5Z.js} +2 -2
- package/dist/assets/{AccountInfoPageContent-CsuUhHXU-DgiU-I5H.js → AccountInfoPageContent-Bjp81drF-Cqcv4hk8.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-iYb31wv7-CEyp2zKM.js → AccountLockedInfoModal-Zg2PAu1o-svgY2-MJ.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DmkLTIkW-DxChexc_.js → AccountReconDetailsDrawerPage-BTkrwp4Q-CWHV1qM1.js} +9 -9
- package/dist/assets/{AccountRow-BObEIy6l-CsCw-i7a.js → AccountRow-CIsbwvGp-J3oMxL3b.js} +10 -10
- package/dist/assets/{AccountsPromoCardStack-B8gJFsYh-DpzT8FNB.js → AccountsPromoCardStack-DrElZh-K-CUoBlW42.js} +13 -13
- package/dist/assets/{AddAddressForCardDrawer-vOgzMYWA-Bo72mQ01.js → AddAddressForCardDrawer-D5Kqxx0c-CDAVfdUf.js} +1 -1
- package/dist/assets/{AddToWalletPage-BhphXgem-DR4-yAJW.js → AddToWalletPage-B68eBsAU-Dnsjp7Oq.js} +5 -5
- package/dist/assets/{AgingReportsPage-DEgupWct-SJsZmYxE.js → AgingReportsPage-BlQHxYjL-Cr6yxtF3.js} +4 -4
- package/dist/assets/{AllUserItems-S2DAZpO6-Zcx2jN6k.js → AllUserItems-DsECKAGD-PW2UBBng.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-CvDD8-s7-k2W-N5me.js → ApAgingDetailPage-Bg0ZrGXm-CfXEq_5-.js} +2 -2
- package/dist/assets/{AppBasePage-C4z5I-xG-vGdvNBYI.js → AppBasePage-tPaBc2ei-WGoBSx1D.js} +7 -7
- package/dist/assets/{AppDrawerContent-Dka5HlPs-BfBKKeHh.js → AppDrawerContent-Cx4zDKi_-DO8upp4U.js} +2 -2
- package/dist/assets/ApprovalRulesSettingsPage-BcRZvSQH-BuukHz1z.js +47 -0
- package/dist/assets/{ArAgingChart-CJ7XKU9h-BSixtgVA.js → ArAgingChart-RdGwOP5k-DaN2WJzI.js} +1 -1
- package/dist/assets/ArAgingDetailPage-Bh7NAVZf-DauNApby.js +46 -0
- package/dist/assets/{AttachmentView-Dg6PizI7-BzoqKbZ4.js → AttachmentView-ClnTjRCg-CXQ9ySez.js} +6 -6
- package/dist/assets/{BankAccountSection-Chay7X-G-vPiVizDl.js → BankAccountSection-D3sQOQ-c-t8HGw1J0.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-CSChi1lw-BVD5BCv3.js → BankAccountWarningSection-CxLBPI_P-CQJWoDnI.js} +9 -9
- package/dist/assets/{BankConnectionsSettingsPage-DJV7q1Kp-DcUIdQZo.js → BankConnectionsSettingsPage-Bsix2nzV-BvUIdsy8.js} +6 -6
- package/dist/assets/{BillDetailPage-DM06uZnD-BOk9lw2_.js → BillDetailPage-B52FZrvM-BFE_NGrS.js} +10 -10
- package/dist/assets/{BillPayApprovalRuleDetailPage-MsPIxgUt-r4h6U7BK.js → BillPayApprovalRuleDetailPage-CswUbxdi-Cprf5Nyo.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BhDdco2x-B1oZ9jjD.js → BillPayApprovalRulesPage-B-8sIYjs-D2BSNMf9.js} +1 -1
- package/dist/assets/{BillPayPromoPage-Dy-opG76-CZ2iWLB7.js → BillPayPromoPage-B6jW_8rf-YW9uzBg5.js} +5 -5
- package/dist/assets/{BillPaySetUpPage-DUvwWlaD-Bg_qNGFx.js → BillPaySetUpPage-Rqxy02BM-CEkcaNcr.js} +2 -2
- package/dist/assets/{BillingSettingsPage-wj_sIJgc-Dy0iglvP.js → BillingSettingsPage-CPs5zrIc-DODFNfJu.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-DbC84oxR-CV4aNHIq.js → BillsBulkReviewDrawerPage-DLQsxJi8-DtW4kiE9.js} +1 -1
- package/dist/assets/{BoxItem-CdqDzfZN-BxmSstzM.js → BoxItem-CP9cPZQd-BW2Fv6YZ.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BMtHNNcG-CKxF3KMp.js → BusinessVerificationPage-Cayj-kYe-DIQRuHb0.js} +1 -1
- package/dist/assets/{CardNumberSubText-lh7fQJis-CKFkz1Hy.js → CardNumberSubText-FdCtSIHd-Cer2LzOo.js} +1 -1
- package/dist/assets/{CashbackDetailPage-KRbsYA09-DzsJTodf.js → CashbackDetailPage-CZICE37r-CchxXOB0.js} +11 -11
- package/dist/assets/{ChargeCardDetailPage--WP6KTfb-BgNGsK6v.js → ChargeCardDetailPage-Be2X4Rx8-DkQXGv5E.js} +27 -27
- package/dist/assets/{ChargeCardListPage-knAPmob6-CgVyQmJQ.js → ChargeCardListPage-DzfBzM8o-BpS6GwxX.js} +13 -13
- package/dist/assets/{ChargeCardListTable-DsfnKX3P-D0-TBhcC.js → ChargeCardListTable-Bc-4mcCz-DGGclb69.js} +44 -44
- package/dist/assets/{ChargeCardPromoPage-C9610LtW-GRwSeJ82.js → ChargeCardPromoPage-D_C7hXGy-jKodLkTT.js} +7 -7
- package/dist/assets/{ChargeCardSetupPage-Cy4JhjJW-BnQWcnli.js → ChargeCardSetupPage-BwNi9-pq-C4dK5zJO.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-C7uS1jEO-7cO1LhgS.js → ChargeCardStatementsPage-Bf04MOoK-k-sWDpeT.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-TfiJwtqN-CwfCisTT.js → CheckDepositDrawerPage-B-A9fkGZ-DZFZ2JbI.js} +7 -7
- package/dist/assets/{CollapsableReportTable-NYu8Bq-g-CCeLwwka.js → CollapsableReportTable-DdMyzUD0-BAoVL7wM.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CiVliExW-DzmWuQm0.js → CompanyOfficerDetailsSection-kRtuUd2c-Cm23V4kL.js} +18 -18
- package/dist/assets/{CompanyPassportCard-8zvCdmxt-CxjPiS1u.js → CompanyPassportCard-KhSJJMcy-Cll554T1.js} +1 -1
- package/dist/assets/{CompanyPassportPage-AS4N7oT2-Bv10VeId.js → CompanyPassportPage--ckOuqML-CPrNkQDu.js} +10 -10
- package/dist/assets/{CompleteProfile-Dj080UdJ-B2qMa6vk.js → CompleteProfile-D8egRg8d-QRh3PECw.js} +1 -1
- package/dist/assets/{ConfettiBurst-DcCUSSaX-yciACYT1.js → ConfettiBurst-CvRhNEAY-OaJ4gLIH.js} +1 -1
- package/dist/assets/CreateOrEditVendorPage-DrZh60Xs-DORgL7Gm.js +281 -0
- package/dist/assets/{CreditCardPaymentDrawerPage-BKvqMwnt-BuHB8ode.js → CreditCardPaymentDrawerPage-B7ssB1GM-DOObGC22.js} +8 -8
- package/dist/assets/{CurrencySelectField-ksMvik33-CjY_Sqhm.js → CurrencySelectField-BXp2mtZ7-BZ1r7qNY.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DfT_gkE4-Dk7tFjjw.js → CustomerOnboardingActivationPage-BX7STQsk-ClpFwMrN.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BkPTeV9_-YlZ2rpks.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DfOtXgss-1gud75px.js → CustomerOnboardingDetailPageSkeleton-C5tSpmSB-5KFMWV1l.js} +5 -5
- package/dist/assets/{CustomerOnboardingNoStepsPage-61UorFvn-DF0b8zE7.js → CustomerOnboardingNoStepsPage-CQUQlLbj-llUCphSN.js} +4 -4
- package/dist/assets/CustomerOnboardingPage-D0p8khnC-C1IdwvBx.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-CTowHB2X-DUFAd8wB.js → CustomerOnboardingProductSuitePage-BRk3TA9f-n37UhYFK.js} +1 -1
- package/dist/assets/{Dashboard-2RpETnqH-Dgva4ZAW.js → Dashboard-CBOma7mv-B9j8ewTM.js} +1 -1
- package/dist/assets/{DashboardReportPage-DRRWpGiJ-Z6RP-3ZH.js → DashboardReportPage-DRYx3AOy-D6rkizKp.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-0cCKM3E9-DV5Ukn4W.js → DashboardSidebarBackgroundAnimation-DYsp7Imm-CsY2ImuX.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DjbheijR-B7o468tr.js → DepositAccTransactionItem-BQU7vZKr-BOGssvEh.js} +1 -1
- package/dist/assets/DepositAccTransactionListPage-DQDt_2kb-D0tTF08R.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DuKrVIAL-BzRIhYO3.js → DomesticWireDetailsPage-B0KbC9m8-DSgkPJjx.js} +1 -1
- package/dist/assets/{DownloadOverlay-f6SOW8iK-DORigjXi.js → DownloadOverlay-D2vm9EYI-1UU-2gMF.js} +18 -18
- package/dist/assets/{DrawerPage-BkIQ6mLJ-DU9u6eQ0.js → DrawerPage-DHIaNEwf-DBdDE0YZ.js} +7 -7
- package/dist/assets/{EditPeoplePage-lZcM4Zfw-CzhpHcfF.js → EditPeoplePage-B4OaKX89-CxOdlVup.js} +2 -2
- package/dist/assets/{EditReimbursementDetailPage-WO3U-vVY-CTjbkhIP.js → EditReimbursementDetailPage-C_JOnUnR-BaFHONcZ.js} +1 -1
- package/dist/assets/{EntityDetailPage-AP27Niqu-DwUEbyHL.js → EntityDetailPage-DGq_Sr4I-DbAOqf4w.js} +2 -2
- package/dist/assets/{EntitySummarySection-B6khdAJg-7W3j7WRI.js → EntitySummarySection-CAKPRhm9-DT4p2FkX.js} +10 -10
- package/dist/assets/{ExpenseAutomationOverviewPage-CcTGou9x-D6xWlI6r.js → ExpenseAutomationOverviewPage-c4H81maP-DA77wvgo.js} +9 -9
- package/dist/assets/{ExpenseAutomationPage-DEleaYKs-SFko_-SO.js → ExpenseAutomationPage-DoI_XKeY-6CiggPiF.js} +160 -160
- package/dist/assets/{ExpressPayPage-CLYzefaM-CHfIN-TO.js → ExpressPayPage-CjhXfVeX-BOKCYwCy.js} +12 -12
- package/dist/assets/{FeaturePreviewPage-T78A34---Cfgg_jhN.js → FeaturePreviewPage-CwrW_5lN-DmGMYSsi.js} +1 -1
- package/dist/assets/{FollowStepsSection-B_mTbqHf-CcoWV2SW.js → FollowStepsSection-DwVibYwI-v9hEOCV9.js} +6 -6
- package/dist/assets/{GlobalReviewListPage-XfxDC9vP-Bi-7QMiL.js → GlobalReviewListPage-JUSXRKq4-DVN5r0h7.js} +45 -45
- package/dist/assets/{InformationCardStack-Buibt8cT-DzjFUhjp.js → InformationCardStack-CK1Ztw1n-C4th25N4.js} +1 -1
- package/dist/assets/{InsightsCardStack-Cj5iIm_T-CnLFxYVI.js → InsightsCardStack-BKAezFjz-Dc6HzMco.js} +2 -2
- package/dist/assets/{InsightsSection-DuPqQb5Z-C8m7clcN.js → InsightsSection-Bauri5yR-CKFEflqf.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-VZDSLMHK--2kEd_Ab.js → IntegrationsSettingsPage-CnRe_xH3-UkqXGmer.js} +9 -9
- package/dist/assets/{InternationalWireSwiftDetailsPage-BUa1svL--BjPRjytS.js → InternationalWireSwiftDetailsPage-BJkaLuNw-77-AaJID.js} +10 -10
- package/dist/assets/{InternationalWireVerificationPage-C1qKNhqJ-D8-rYzvp.js → InternationalWireVerificationPage-pPH2bNM7-BKQZ3C2I.js} +1 -1
- package/dist/assets/{InviteFormPage-GPXu2hLn-Dlxczoo1.js → InviteFormPage-CsL2egNG-DnYkx7hA.js} +1 -1
- package/dist/assets/{InvitePageListView-FEFeEFZJ-fGYpyL6r.js → InvitePageListView-rt3KC_c5-JZPrjnvG.js} +33 -33
- package/dist/assets/{InvitePeoplePage-C6E594rf-DZBpEScz.js → InvitePeoplePage-Cdr0dhtJ-QaKpYzAx.js} +4 -4
- package/dist/assets/{InvoiceUploadSection-uvB-_dyl-BnrUYuvf.js → InvoiceUploadSection-NVvtQvoL-B8iP_R_q.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DSPlu840-3aXsgWJG.js → IssueChargeCardPage-D5KenKnm-I0qHogFn.js} +13 -13
- package/dist/assets/{LabeledAddressValue-CzDn9ZY4-bnEz1Jxt.js → LabeledAddressValue-Bwkw-Ez_-QZs1bcqC.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C_8kPzjy-5OUHMeqd.js → LabeledAddressValueField-BgkRIdwJ-D68tBsFt.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-LwfkGeF--D4JaYe7v.js → LabeledControlledCheckBoxField-RzyuT5ZX-BsFbzCeg.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-sEf-9BOE-pPbJFdXC.js → LabeledCreatableSingleSelectField-BP_p62Nk-BGV5p2pd.js} +2 -2
- package/dist/assets/{LabeledDocumentField-rGzXpShn-Cfh7MC5-.js → LabeledDocumentField-DGncRe-Q-BM_MF9Yy.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CIQk7Jhu-BODJHkfO.js → LabeledDropDownFormattedTextField-DWUVcIR8-DmvGwPXC.js} +7 -7
- package/dist/assets/{LabeledText-Dc-697nR-dyJ4TshB.js → LabeledText-BzD_-lgI-Br_7nwt2.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B0D7IWfA-CLizobZu.js → LabeledUserSingleSelectWithSubtitlesField-D3kjxF9V-C7cFlAui.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-BO8f1yqV-POb2k_D_.js → LabeledZeniRolesDropDownField-BlmybTGB-C8vefnXI.js} +25 -25
- package/dist/assets/{LinkJETransactionPage-DDSo8zJn-CupLOAYQ.js → LinkJETransactionPage-CUnfHHeT-BQ0Gfxk0.js} +9 -9
- package/dist/assets/{LockCardPage-CvZcUUc8-B6VLJ-gr.js → LockCardPage-2jOFCVkW-Cd-7Cld7.js} +19 -19
- package/dist/assets/{LowBalancePopup-DJQCz0Ed-B8IDUNee.js → LowBalancePopup-Du0kX_mJ-B-0Hf7BW.js} +2 -2
- package/dist/assets/{MagicLinkACHDetailsPage-CEtaoWk8-CST49L9m.js → MagicLinkACHDetailsPage-CkbNMu7Z-B4drRgdG.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-qdgMQR3_-DWvT9O1j.js → MagicLinkDomesticWireDetailsPage-D0XBf5_X-D4YEFAaf.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DNwtPZ-u-Bk0G3IwE.js → MagicLinkInternationalWireDetailsPage-Bl93T-SF-DbfMD1IO.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-60TBVrSw-CKgQ4p6j.js → MagicLinkSuccessPage-C26glp7T-BbSy9weN.js} +2 -2
- package/dist/assets/{MagicLinkTitleSection-D2fXbnDV-CA6SEdmn.js → MagicLinkTitleSection-B4nxLzap-CM0lHGYk.js} +1 -1
- package/dist/assets/{MailingDetailsSection-C6cVooC3-CCSD5vtq.js → MailingDetailsSection-Cou_W8JF-D0QplON-.js} +1 -1
- package/dist/assets/Menu-CdF7UWPF-DT1TTbqS.js +17 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-D2EPH9WZ-DhQP4OT2.js → MyBankConnectionsSettingsPage-BAjjxA98-P3jZBDkg.js} +5 -5
- package/dist/assets/{MyPendingActivationChargeCardListPage-Bidsd2bk-DJBBvD6g.js → MyPendingActivationChargeCardListPage-DsRGcA8F-BiAy3gfH.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BH2ZVQTk-DMG3qFrn.js → MyProfileSettingsPage-y-iZgUqL-Cmq9Fbc9.js} +6 -6
- package/dist/assets/{NavBarWithPicker-Cg2TZjBi-DZVc5NBz.js → NavBarWithPicker-ph4heJns-CH6-ZGCk.js} +4 -4
- package/dist/assets/{NavigationArrow-CYserS2B-DdYPXfvg.js → NavigationArrow-BojAUI53-DuIW3OB3.js} +1 -1
- package/dist/assets/{NavigationDots-CT_oO_7z-Bt9KzB5Z.js → NavigationDots-Bf66leAL-DWvE0Tr9.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D3MQU5Sh-BUpZMSnV.js → NewGlobalMerchantPage-D43XJhIa-CGBQEE1e.js} +5 -5
- package/dist/assets/{NoDataChart-BItQZAQ9-a5HKjWqu.js → NoDataChart-6R5pxJVo-CWkI_hu9.js} +1 -1
- package/dist/assets/{NoDataTable-R8OCdB2c-cDhvp6Rg.js → NoDataTable-CNx0KCKn-Yxxqzyz6.js} +1 -1
- package/dist/assets/{NotFoundPage-DLHYdRdN-xXzpa00n.js → NotFoundPage-CE9BW_aV-BJq9qwHQ.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CIwxb6c9-FsYdgXX7.js → NotificationSettingsPage-etN6HEwO-CPu8hoID.js} +12 -12
- package/dist/assets/{NotificationsListConfig-DSgUS0hE-mwmsOI0p.js → NotificationsListConfig-15ae4nik-CPKCivw4.js} +1 -1
- package/dist/assets/{NotificationsPage-W5ZhprRe-DZn-eWsJ.js → NotificationsPage-BwbxqKxd-CJ_w7jhJ.js} +23 -23
- package/dist/assets/{OpExByVendorPage-DIi58wXa-nKCVWs3g.js → OpExByVendorPage-FR3oloXp-BIjz5fFP.js} +24 -24
- package/dist/assets/{OverlayContainerPage-BsY9_22w-CFGZ7LWs.js → OverlayContainerPage-CrZuT2Jj-BFQOGYGF.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BvMxFrqo-D4f9n7Zm.js → PandLWithForecastPage-Bx3ZyA3l-DeFHP0VX.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-kUAm-v-A-BSna9XIu.js → PaymentAccountSetupBillingAddressSection-R1O20DhA-C65ZHllw.js} +6 -6
- package/dist/assets/{PeoplePage-CtnWc0LE-B3_lhERY.js → PeoplePage-B3HRaJWz-DZIUGp3j.js} +15 -15
- package/dist/assets/{ProductsCarousel-n0ZNrr7--DQIbkMZp.js → ProductsCarousel-Dn4vuZwM-XZC4Gi6v.js} +4 -4
- package/dist/assets/{PromoBaseCards-CeS0HoCZ-CICve0tH.js → PromoBaseCards-BKo4wO-U-UIjavA07.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BxSTc99Z-DVq4lO-s.js → QBOConnectionDialog-CPq0aUew-DHwaU-lE.js} +5 -5
- package/dist/assets/{QBOSetupSection-FrO9rgct-B0n-bnvz.js → QBOSetupSection-BjImTh7O-Cf73veGI.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BjtdatXs-DvpYlYpI.js → ReimbursementApprovalRuleDetailPage-DD1HwLO0-DBTNMi4-.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-B0_FgpJf-BSGUtiNs.js → ReimbursementApprovalRulesPage-DHQHS0eD-l5f43j6l.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BWhPxHY--DgkbtFUt.js → ReimbursementDetailPage-DiMXs0_o-C-Gngkni.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-CFG0yxOE-CNHt16Bv.js → ReimbursementPromoPage-BinqJ3lR-Dkzvoe2N.js} +5 -5
- package/dist/assets/{ReimbursementSetUpPage-BmUdLEa9-uEaDyTyL.js → ReimbursementSetUpPage-BD6B-0CO-Dhg43o5f.js} +17 -17
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CkJqhXEf-B4qPeVNR.js → ReimbursementsBulkReviewDrawerPage-DK-nCoay-BC-GO3CD.js} +1 -1
- package/dist/assets/{ReloadCard-CNKwqjPJ-C6w7GHJG.js → ReloadCard-Bt8qxAUx-C0FiLSzB.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-B0DXgLgJ-B3X9gS-3.js → ReportTableViewSelector-Dv7BwM1q-DZ-FOl5q.js} +6 -6
- package/dist/assets/{ReportsPage-C5iOQU55-DamkEztw.js → ReportsPage-BOY8oCAr-BwR5MVzD.js} +5 -5
- package/dist/assets/{RevenueChart-C2CMFAQ--BirLMW85.js → RevenueChart-D_yexiAR-D3rVopXP.js} +16 -16
- package/dist/assets/{ReviewDetailsPage-5vOZ0rd7-B41AzmWH.js → ReviewDetailsPage-Czrlb8BL-DTI9py46.js} +14 -14
- package/dist/assets/{ReviewOverlay-BAG_6iyV-B2w-MEIV.js → ReviewOverlay-BHUy3fWf-DhycJa32.js} +10 -10
- package/dist/assets/{RoleWithToolTip-GUYLjJwW-DVSFtUus.js → RoleWithToolTip-BxI2nAro-CHrHR5C8.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-sPjMfOtt-m5JvZNFh.js → ScheduleDetailsFixedAssetsPage-DsNhFGrc-C7120rgv.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-DI4C0o6b-B7Dooc-N.js → ScheduleDetailsPage-Dy2poGsp-B72mEOku.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-DhXwtG-x-C20E6-vV.js → ScheduleSequenceTable-Bv1feMZc-DEmwzIZ-.js} +47 -47
- package/dist/assets/{ScreenRoutes-B_yySVlk.js → ScreenRoutes-aw0OxNGj.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DOavnCkG-CmcaONdQ.js → SetUpAccountSection-SSkLhU2W-Bdvkba2v.js} +14 -14
- package/dist/assets/{SignIn-DqrG5nEJ-8MVRrbiA.js → SignIn-Chuf9_2E-Dg9U6pWl.js} +10 -10
- package/dist/assets/{SignInScreen-CSh4OzXN.js → SignInScreen-heeiIDQc.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DHY_hZQm-C3jihmoK.js → SpendManagementListViewPage-BpCZzQ7I-CeMMhyUX.js} +8 -8
- package/dist/assets/{SpendManagementPerTabPage-CoKTIQ2b-D2j2J6zW.js → SpendManagementPerTabPage-DbXTM50B-DF3kTGNr.js} +32 -32
- package/dist/assets/{SpendManagementSection-UkTY6qX0-CST6kY6m.js → SpendManagementSection-BMU1BTEo-BBFzWPwD.js} +12 -12
- package/dist/assets/{StatementItem-Bx6mxa3U-C42zKfqY.js → StatementItem-qLZEMVrM-C5sUBNaG.js} +5 -5
- package/dist/assets/{StatementsPage-ULjFE30P-BGU6QX6B.js → StatementsPage-B3qY1D4K-C1V6A2Qk.js} +1 -1
- package/dist/assets/{StatusSwitcher-DlBY_FC1-C1Bsm00T.js → StatusSwitcher-xQ_AW7ze-DWj9eTCE.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DjEElTWE-5Wo1Obau.js → SubTabSwitcher-w8vLc-35-BeFKfmS8.js} +1 -1
- package/dist/assets/{SummaryCard-BNESDUnN-ChwTCNZM.js → SummaryCard-CTq_yqTg-Bw75z4He.js} +1 -1
- package/dist/assets/{TaskManagementPage-BFF3ATPV-BYvPz4hv.js → TaskManagementPage-keXFNmIv-BEMVU9l6.js} +33 -33
- package/dist/assets/{TimeRangeSwitcher-xILz-EO6-DqqNb5IN.js → TimeRangeSwitcher-C4Tph63B-D9xSXRlF.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-CZhQm7rH-D5h04PEF.js → TimeframeSwitcher-LLgotbh8-X4qFRStD.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CduB3ZjN-PiqhKHhY.js → TimeframeSwitcherWithToggle-Cw3a9d0I-BlbsDDpn.js} +1 -1
- package/dist/assets/{TopExCard-C_HWsAL1-DphCzqA5.js → TopExCard-Dj0wtF6g-CdD53hxs.js} +3 -3
- package/dist/assets/{TopExDetailPage-BEKo6juU-CUrrRqCk.js → TopExDetailPage-JutaMmtR-koGwO2ev.js} +5 -5
- package/dist/assets/{TransactionDetailPage-Bzgtmi3U-DCXvClem.js → TransactionDetailPage-BdFHqSCv-Bc3ggi0n.js} +30 -30
- package/dist/assets/{TransactionList-Dw78Q0Sx-BHAN7axA.js → TransactionList-C85wyFeI-C41EirGp.js} +4 -4
- package/dist/assets/{TransactionListBig-BofakL17-k36ZTqo_.js → TransactionListBig-DPev2-Mm-BpW_w096.js} +6 -6
- package/dist/assets/{TransactionListPage-tpOg0ax5-aeL9weeE.js → TransactionListPage-D127NU4T-BPyAfJzu.js} +4 -4
- package/dist/assets/{TransactionVendorDetailPage-BqIcXz6b-tGgvKqD0.js → TransactionVendorDetailPage-BJ1YnPif-SJ1gb7FN.js} +5 -5
- package/dist/assets/{TransferDrawerPage-DnnZBOyK-y1PDtTFY.js → TransferDrawerPage-DcrfmXH1-DiL_C6V9.js} +21 -21
- package/dist/assets/{TreasuryOverviewPage-C9ROzNHl-Cn6eazlN.js → TreasuryOverviewPage-D-Zw4Npq-K2RbtXZZ.js} +22 -22
- package/dist/assets/{TreasuryPromoPage--j_2YjQn-DHIwXCO0.js → TreasuryPromoPage-BhBPhhbb-DM-0mrYZ.js} +131 -131
- package/dist/assets/{TreasuryStatementsPage-BLrceDQm-vMicHzmk.js → TreasuryStatementsPage-Dxjg_QN7-C_fsR-Na.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BoqkgdLm-DAQeQUTC.js → TreasuryTaxLetterPage-Dm552RDZ-BLLWDMsm.js} +7 -7
- package/dist/assets/{TrendChart-KnFi8NXQ-DHzaDtQY.js → TrendChart-_c8z5Kxm-DarAZz3o.js} +1 -1
- package/dist/assets/{TrendWithTransactions-C_T0I9xe-DqS7m8LH.js → TrendWithTransactions-B2rde1MW-D1twJg_e.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-DOuzy2aS-DnfCgWVE.js → UncategorizedAccountsMappingPage-77nkQFar-Bn3Ibb9A.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DxhlNHvt-CHN5Qw88.js → UnitIntegrationPage-3_YMV_f4-yfDaiCvi.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-BAvSyhDW-D4KE1Kke.js → UploadAdditionalDocumentOverlay-D72fkcgM-BkIuCEEz.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BFjVFON8-Dl6jzAdP.js → Vendor2FAPopup-DLbGF5_q-DmCvA6XI.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-8BG5DD-0-p3vm6zDD.js → VendorACHDetailsPage-CaNQylEA-CMyzxyGW.js} +1 -1
- package/dist/assets/{VendorDetailPage-C16CrNJo-D86vTvj2.js → VendorDetailPage-DqdH4UMj-tM-8a-UX.js} +18 -18
- package/dist/assets/{VendorDomesticWireDetailsPage-DXhugXZa-DeVAnksE.js → VendorDomesticWireDetailsPage-9pyV_r_g-CREdXXXG.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-2QPpdbuN-ozpxZwEp.js → VendorFiling1099EditablePage-nb9_V73Z-CwrDCXoq.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-DLshEh_s-DbpLTolM.js → VendorFirstReviewPage-C2RjaA8x-C3EURG-_.js} +58 -58
- package/dist/assets/{VendorInternationalWireDetailsPage-_WoNgw66-DANrlPFU.js → VendorInternationalWireDetailsPage-VOAgofls-DxNfQmbI.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dyt1ZPOh-DoVwF0sT.js → VendorInternationalWireSwiftDetailsPage-CcRuLO-_-CRRJCsCk.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Dxq0YSgP-Bt8xoh_f.js → VendorsAccountsSection-RzVUJ8IV-CIdzas-R.js} +14 -14
- package/dist/assets/{VerifyDevice-DEwEqoHA-CylVN9FP.js → VerifyDevice-DUxQHfLf-DyoufOtx.js} +1 -1
- package/dist/assets/{VideoPlayer-_1Msrww9-DaiS1R42.js → VideoPlayer-BxuhQQfM-CSaCo4fi.js} +1 -1
- package/dist/assets/{VideoPopup-BzQ_Dl9b-mwrODjDA.js → VideoPopup-DdtmLcPB-9kSPQrRF.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CMBST3p1-ujIyTaCb.js → WarningsDrawerPage-DC5ophK0-B9MWpL_5.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-DVLYYC-q-DeZb5ud9.js → ZeniAccountDetailPage-C1KKeyYC-AmZ_-UbH.js} +14 -14
- package/dist/assets/{ZeniAccountListViewPage-BHkoMOx5-CtDb7Bzx.js → ZeniAccountListViewPage-Bw5_2Q-c-Zl0NVbWL.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CCFzNOcx-CuAvs6Mv.js → ZeniAccountNavBarPieces-DlfwFtOB-BhG7WDho.js} +3 -3
- package/dist/assets/{ZeniAccountPromoPage-C3Rl-hWL-DwIvVxTo.js → ZeniAccountPromoPage-B8cXf7Ni-BGYao9Jv.js} +13 -13
- package/dist/assets/{ZeniAccountSetupPage-Bf1OOF0Q-DBu-8Ie5.js → ZeniAccountSetupPage-Cae0pB-b-Blr8FOsP.js} +3 -3
- package/dist/assets/{ZeniCopyright-CdqD8vO4-DYRLQn9Q.js → ZeniCopyright-gTS4uZlF-BTYFdkhV.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BTudpQjV-CvoGRB0t.js → ZeniTransferAmountSlider-17kY7kNO-DEs9IrPm.js} +1 -1
- package/dist/assets/{analyticsHelper-_u1yj9ge-DxpjUhrt.js → analyticsHelper-DXVBA0aW-q_4bVB8v.js} +1 -1
- package/dist/assets/analyticsHelper-kRUwHHg6.js +1 -0
- package/dist/assets/{chartTypes-vQ8GTDEq-DTt3gea6.js → chartTypes-BXBHlosV-DY5SgOjH.js} +1 -1
- package/dist/assets/{commonDimensions-znFHURNY-BydE4i8M.js → commonDimensions-Bm2CSHrw-S9XM9nhL.js} +1 -1
- package/dist/assets/{detailCommon-DmLhlrjU-ShYTQ7m2.js → detailCommon-VW4xegQy-1DhxNuRe.js} +3 -3
- package/dist/assets/{downloadPdf-CCUPfpyu-Cq1M0ik1.js → downloadPdf-DUAAPKqC-BN9D0Y0M.js} +1 -1
- package/dist/assets/{index-XNBiWrYj.js → index-BS0RW8dr.js} +3698 -3698
- package/dist/assets/{mapLoadingInProgressToTreeNode-Cw74bTou-BDMlWcL7.js → mapLoadingInProgressToTreeNode-D5WZ1WGx-B7azUcXb.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CWFxnMpB-BCzyYlDf.js → mapSectionWithAcOnlyToTreeNode-BxzLwMCb-DSGmyD1M.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-JUrBuZAz-wZclqNi-.js → mapSpacerToTreeNode-CScyNZ9s-wlC4VP1v.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B2iYfeF3-B53qunPl.js → mapTimeframeBalancesToTreeNode-Caj8eqsL-Kzqcpw75.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BbQHYZk7-DpCyCcLg.js → mapTimeframeBalancesToTreeNode-CdVqeC27-Dxhi6BEZ.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BeqGSN9x-CoS9pLIE.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CUFXYz6j-YXXdz_Ql.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DeZfEmbT-vM-pgltN.js → toCOABalancesWithID-CqzWoD-C-D32cGljj.js} +1 -1
- package/dist/assets/{toChartData-KibzV7pa-DRJVLoY0.js → toChartData-X878W8tN-DZEeyq4i.js} +1 -1
- package/dist/assets/{uploadAttachment-U9nX0Ka9-1qW3wdO3.js → uploadAttachment-DNKgJox4-CH4FqFzC.js} +13 -13
- package/dist/assets/{uploadReceipts-CDPM7zcb-DEOGBGdq.js → uploadReceipts-Bkf_PaOH-DrwBt5Yx.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/ApprovalRulesSettingsPage-BOJE5Fb_-DykJvECT.js +0 -47
- package/dist/assets/ArAgingDetailPage-ZjaiAH-C-DY8qSTjK.js +0 -46
- package/dist/assets/CreateOrEditVendorPage-flCFtC2N-Dsf2hlMT.js +0 -281
- package/dist/assets/CustomerOnboardingContainerPage-DZ9vkiEO-ah6dg727.js +0 -1
- package/dist/assets/CustomerOnboardingPage-C12XXjv0-mi5gJ6u3.js +0 -107
- package/dist/assets/DepositAccTransactionListPage-keSFBKDU-qnysSla9.js +0 -66
- package/dist/assets/Menu-D_6Dje0H-Ar5SwcnV.js +0 -17
- package/dist/assets/analyticsHelper-D23HZgYu.js +0 -1
package/dist/assets/{StatementsPage-ULjFE30P-BGU6QX6B.js → StatementsPage-B3qY1D4K-C1V6A2Qk.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as S,Q as z,V as t,bz as C,F as P,b1 as I,o as r,p as m,cq as B,y as E,u as h,ak as L}from"./index-BS0RW8dr.js";import{a as p}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import{$ as M}from"./BoxItem-CP9cPZQd-BW2Fv6YZ.js";import{o as O}from"./commonDimensions-Bm2CSHrw-S9XM9nhL.js";import{O as N}from"./StatementItem-qLZEMVrM-C5sUBNaG.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.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"./downloadPdf-DUAAPKqC-BN9D0Y0M.js";const x=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,b={listItemMargin:new E(h[3],h[8])},ot=({currentTenantCompanyName:e,authParams:g,downloadEndPoint:w,statementListView:a,accountLast4:f,onBackClick:y})=>{const k=S(),l=z(),$=p.createRef(),c=p.useRef(null),d=a.statements.length===0,j=()=>d===!1?O.transactionItemHeight:24,v=({index:i,style:n})=>{const s=a.statements[i];return d===!1?t.jsx(u,{windowSize:l,style:{...n,width:`calc(100% - 2*${b.listItemMargin.valuePx(l)})`},children:t.jsx(N,{currentTenantCompanyName:e,accountLast4:f,data:s,authParams:g,downloadEndPoint:w,boxType:M(i,a.statements.length)},s.id)}):t.jsx(R,{style:{...n},children:t.jsx(T,{children:t.jsx(u,{windowSize:l,children:t.jsx(H,{children:x.noStatements})})})})};return t.jsxs(V,{children:[t.jsx(C,{title:x.title,backgroundColor:k.colors.grey4,style:{zIndex:3},onBackClick:y,scrollableContent:c.current!=null?c:void 0,source:"StatementsPage"}),t.jsx(K,{children:t.jsx(I,{children:({height:i,width:n})=>t.jsx(q,{ref:$,height:i,width:n,outerRef:c,itemKey:s=>s,itemCount:a.statements.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},R=o.div``,u=o.div`
|
|
2
2
|
margin: ${e=>`${r.sp0} ${b.listItemMargin.valuePx(e.windowSize)}`};
|
|
3
3
|
&:hover {
|
|
4
4
|
position: relative;
|
package/dist/assets/{StatusSwitcher-DlBY_FC1-C1Bsm00T.js → StatusSwitcher-xQ_AW7ze-DWj9eTCE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as $,V as d,ca as T,F as v,y as f,o as s,u as c,ag as z}from"./index-
|
|
1
|
+
import{Q as $,V as d,ca as T,F as v,y as f,o as s,u as c,ag as z}from"./index-BS0RW8dr.js";import{n as u,b as g}from"./mui-bYXq4XMS.js";function w(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(" ").filter(Boolean).map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}const _=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function A(e,a){if(typeof e=="string")return e;if(e!=null&&typeof e=="object"){const r=Object.values(e)[0];return typeof r=="string"?r:w(a)}return w(a)}function p(e,a,r){const n=e[a];return n!=null?A(n,r):null}const L=(e,a)=>{const{spendManagement:{billPay:{billsByTabs:{tabsById:r}},reimbursement:{reimbursementByTabs:{tabsById:n}},zeniAccounts:{zeniAccountList:{tabsById:l}}}}=v.getLocalizedStrings(),t=String(e);if(a)switch(a){case"bill_pay":{const i=p(r,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"reimbursement":{const i=p(n,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"zeni_accounts":{const i=p(l,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}}return(p(r,t,t)??p(n,t,t)??p(l,t,t)??w(t)).replace(/\s+/g,"_").toLowerCase()},{spendManagement:{billPay:{billsByTabs:{tabsById:x}},reimbursement:{reimbursementByTabs:{tabsById:y}},zeniAccounts:{zeniAccountList:{tabsById:M}}}}=v.getLocalizedStrings(),m={containerMarginLeft:new f(c[4],c[8]),containerMarginRight:new f(c[4],c[8]),segmentContainerMarginLeft:new f(c[4],c[8])},j=u.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{SubTabSwitcher-DjEElTWE-5Wo1Obau.js → SubTabSwitcher-w8vLc-35-BeFKfmS8.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as r,A as g,o as s,ag as u,aY as m}from"./index-
|
|
1
|
+
import{V as r,A as g,o as s,ag as u,aY as m}from"./index-BS0RW8dr.js";import{n as i,b as a}from"./mui-bYXq4XMS.js";function v({allTabs:e,selectedTab:c,containerStyle:d,rightComponent:o,onTabChange:p}){const h=o!=null;return r.jsxs($,{style:d,hasRightComponent:h,children:[r.jsx(x,{children:e.map(t=>{const l=t.id===c,n=t.isDisabled!=null;return r.jsxs(y,{onClick:()=>{l===!1&&!n&&p(t)},isSelected:l,isDisabled:n,children:[r.jsx(b,{children:t.label}),t.countDetails?.count!=null?r.jsx(j,{children:r.jsx(f,{isCircular:t.countDetails.count==null||t.countDetails.count<10,children:r.jsx(D,{children:t.countDetails.isFetching?r.jsx(g,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):t.countDetails.count})})}):null]},t.id)})}),o]})}const $=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
justify-content: ${e=>e.hasRightComponent?"space-between":"flex-start"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as d}from"./index-
|
|
1
|
+
import{V as d}from"./index-BS0RW8dr.js";import{E as n,T as t}from"./ReloadCard-Bt8qxAUx-C0FiLSzB.js";const o=r=>{function e(){return r.card.fetchState==="In-Progress"||r.card.fetchState==="Not-Started"?d.jsx(n,{dimension:r.card.dimension,animated:!r.card.disableAnimations}):r.card.fetchState==="Error"?d.jsx(t,{dimension:r.card.dimension,cardType:r.card.cardType,cardIndex:r.card.cardIndex,onReloadData:r.actions.onReloadData}):d.jsx("div",{children:r.children})}return d.jsx("div",{children:e()})};export{o as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as gt,
|
|
1
|
+
import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K,ap as wt,o as s,eO as Ze,cf as Ne,cj as ft,g1 as Ct,b7 as Tt,bL as Xe,aQ as $t,Q as ie,a8 as jt,y as Qe,cB as yt,ab as bt,b1 as vt,cq as St,iK as Gt,iL as Lt,jn as De,aO as Nt,n as Me,bQ as Ee,eK as Je,jo as Et,cY as et,jp as ce,jq as ke,jr as It,js as xe,jt as tt,ju as st,jv as ot,jw as nt,jx as at,jy as rt,jz as _,u as ge,jA as ae,ag as re,jB as Mt,jC as Dt,_ as zt,am as Bt,jD as At,dc as Rt,jE as Wt,cO as it,d7 as Ot,b as Ft,jF as Pt,jG as Ht,g2 as Vt,eN as Ut,jH as _t,jI as X,jJ as ze,cs as Kt,jK as Yt,jL as qt,jM as Be,jN as Zt,p as Ae,gq as Xt,al as Qt}from"./index-BS0RW8dr.js";import{a as n}from"./core-3dlyNYRL.js";import{n as o,b as we}from"./mui-bYXq4XMS.js";import{g4 as Jt,g5 as Re,ce as lt,cf as dt,cg as es}from"./zeni-epic-state-LPACxnXP.js";import{J as ts,K as ss}from"./SpendManagementSection-BMU1BTEo-BBFzWPwD.js";import{A as os,t as ns,a as as,E as rs}from"./NotificationsListConfig-15ae4nik-CPKCivw4.js";import{getDashboardFilterCategoryValues as is}from"./SpendManagementListViewPage-BpCZzQ7I-CeMMhyUX.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"./StatusSwitcher-xQ_AW7ze-DWj9eTCE.js";const ls=100,ds=100,cs=3,ps=.7,us=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ls,scrollSpeed:h=ds,minScrollAmount:m=cs,scrollCurveExponent:p=ps})=>{n.useEffect(()=>{if(!u||typeof window>"u"||typeof document>"u")return;let a=!1,c=0,i=null;const d=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},v=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>v(x),M=x=>{const S=Math.max(x,0)/d,j=Math.pow(S,p)*h;return Math.max(m,j)},k=(x,S,j)=>{const L=j==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,j=c;if(j<d&&j>0){const L=d-j,g=M(L);k(x,g,"up")}else if(j>S-d){const L=j-(S-d),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(c=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,u,m,e,p,h])},ve=se.getLocalizedStrings(),ct=({count:e})=>t.jsx(hs,{isCircular:e<10,children:t.jsx(ms,{children:e>ve.common.numbers.maximumCount?`${ve.common.numbers.maximumCount}${ve.common.strings.plus}`:e})}),hs=o.div`
|
|
2
2
|
${e=>e.isCircular?we`
|
|
3
3
|
height: 18px;
|
|
4
4
|
width: 18px;
|
|
@@ -16,7 +16,7 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
16
16
|
outline-color: inherit;
|
|
17
17
|
`,ms=o(Bt)`
|
|
18
18
|
color: inherit;
|
|
19
|
-
`,{taskManagement:We,common:Se}=se.getLocalizedStrings();function gs(e){const{onChange:u,value:r,resetDisabled:h,onReset:m}=e,p=()=>{h!==!0&&m()};return t.jsxs(ks,{children:[t.jsx(fs,{children:We.taskList.groupingFilters.groupBy}),t.jsx(xs,{children:t.jsx(ts,{value:r,placeHolder:We.taskList.groupingFilters.placeholder,onChange:a=>{const c=Re(a.value);if(c!=null)u(c);else throw new Error("Invalid taskListGroupByKey")},options:
|
|
19
|
+
`,{taskManagement:We,common:Se}=se.getLocalizedStrings();function gs(e){const{onChange:u,value:r,resetDisabled:h,onReset:m}=e,p=()=>{h!==!0&&m()};return t.jsxs(ks,{children:[t.jsx(fs,{children:We.taskList.groupingFilters.groupBy}),t.jsx(xs,{children:t.jsx(ts,{value:r,placeHolder:We.taskList.groupingFilters.placeholder,onChange:a=>{const c=Re(a.value);if(c!=null)u(c);else throw new Error("Invalid taskListGroupByKey")},options:Jt,getOptionLabel:a=>{const c=Se.texts,i=Re(a);return i!=null?c[i]:Se.strings.empty}})}),t.jsxs(ws,{onClick:p,isDisabled:h,children:[t.jsx(Cs,{}),t.jsx(K,{children:Se.reset})]})]})}const ks=o.div`
|
|
20
20
|
display: flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
column-gap: ${s.sp4};
|
|
@@ -41,10 +41,10 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
41
41
|
column-gap: ${s.sp1};
|
|
42
42
|
`,fs=o(Tt)`
|
|
43
43
|
color: ${e=>e.theme.colors.primary};
|
|
44
|
-
`,Cs=o(
|
|
44
|
+
`,Cs=o(Xe)`
|
|
45
45
|
width: ${s.sp3};
|
|
46
46
|
height: ${s.sp3};
|
|
47
|
-
`,Ts=se.getLocalizedStrings().taskManagement.taskList.footer;function $s({taskGroupsList:e,anchorEl:u,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:p}){const a=()=>{p(),h()};return t.jsx(
|
|
47
|
+
`,Ts=se.getLocalizedStrings().taskManagement.taskList.footer;function $s({taskGroupsList:e,anchorEl:u,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:p}){const a=()=>{p(),h()};return t.jsx(Ze,{open:!!u,anchorEl:u,onClose:p,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(js,{children:[t.jsx(ys,{children:e.map(c=>{const i=()=>{p(),m(c.id)};return t.jsx(Oe,{onClick:i,children:t.jsx(re,{children:c.groupName})},c.id)})}),t.jsx(V,{controller:r==="groupName",children:t.jsxs(Oe,{onClick:a,children:[t.jsx(bs,{}),t.jsx(re,{children:Ts.createGroup})]})})]})})}const js=o.div`
|
|
48
48
|
background-color: ${e=>e.theme.colors.grey5};
|
|
49
49
|
`,Oe=o.div`
|
|
50
50
|
padding: ${s.sp2} ${s.sp3};
|
|
@@ -62,9 +62,9 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
62
62
|
`,bs=o(et)`
|
|
63
63
|
width: ${s.sp3};
|
|
64
64
|
height: ${s.sp3};
|
|
65
|
-
`;function vs({placeholder:e,searchText:u,inputContainerStyles:r,onSearchTextChanged:h}){const[m,p]=n.useState(!1),a=n.useRef(null),c=ie(),i=()=>{u||p(!1)};return t.jsxs(Ss,{children:[m?null:t.jsx(
|
|
65
|
+
`;function vs({placeholder:e,searchText:u,inputContainerStyles:r,onSearchTextChanged:h}){const[m,p]=n.useState(!1),a=n.useRef(null),c=ie(),i=()=>{u||p(!1)};return t.jsxs(Ss,{children:[m?null:t.jsx(Ls,{onMouseEnter:()=>p(!0),onClick:()=>{p(!0),a.current?.focus()},children:t.jsx(Fe,{})}),m?t.jsxs(Gs,{style:r,isOpen:m,children:[t.jsx(Fe,{}),t.jsx(Ns,{windowSize:c,autoFocus:c!=="small",placeholder:e,value:u,onBlur:i,onChange:d=>{const C=d.target;h(C.value)},ref:a}),u?t.jsx(Es,{}):null]}):null]})}const Ss=o.div`
|
|
66
66
|
position: relative;
|
|
67
|
-
`,
|
|
67
|
+
`,Gs=o.div`
|
|
68
68
|
position: absolute;
|
|
69
69
|
right: 0;
|
|
70
70
|
display: flex;
|
|
@@ -81,9 +81,9 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
81
81
|
&:hover {
|
|
82
82
|
color: ${e=>e.theme.colors.primary};
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,Ls=o.div`
|
|
85
85
|
cursor: pointer;
|
|
86
|
-
`,
|
|
86
|
+
`,Ns=o(Dt)`
|
|
87
87
|
display: flex;
|
|
88
88
|
border-width: ${s.sp0};
|
|
89
89
|
outline-width: ${s.sp0};
|
|
@@ -94,10 +94,10 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
94
94
|
::placeholder {
|
|
95
95
|
color: ${e=>e.theme.colors.grey1};
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,Es=o(zt)`
|
|
98
98
|
width: ${s.sp3};
|
|
99
99
|
height: ${s.sp3};
|
|
100
|
-
`,Is=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.6011 5.42688H3.10107",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 9.60004L7.92188 12.4125L6.51562 11.0063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 11.0063H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 15.4125L7.92188 18.225L6.51562 16.8188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 16.8188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ms=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 8.1001L7.92188 10.9126L6.51562 9.50635",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 9.50635H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 13.9126L7.92188 16.7251L6.51562 15.3188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 15.3188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ds=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},n.createElement("path",{d:"M4.49908 1.50001H12.0015H19.5039C19.5039 1.50001 20.868 1.50001 20.868 2.86409V21.1359C20.868 21.1359 20.868 22.5 19.5039 22.5H4.49908C4.49908 22.5 3.13501 22.5 3.13501 21.1359V2.86409C3.13501 2.86409 3.13501 1.50001 4.49908 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.5 11.9996L8.598 14.1953C8.70072 14.4016 8.85107 14.5804 9.03662 14.7171C9.22217 14.8538 9.43759 14.9443 9.66506 14.9812C9.89254 15.0182 10.1255 15.0004 10.3448 14.9295C10.5641 14.8585 10.7633 14.7364 10.926 14.5733L16.5 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{taskManagement:zs,common:Bs}=se.getLocalizedStrings(),Q=zs.taskList.newTaskOptions;function As({anchorEl:e,groupByKey:u,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:p,onExpandTemplate:a,onClose:c,onNewTaskClick:i,onNewGroupClick:d,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:v,onNewTaskInitialization:I}){const M=
|
|
100
|
+
`,Is=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.6011 5.42688H3.10107",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 9.60004L7.92188 12.4125L6.51562 11.0063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 11.0063H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 15.4125L7.92188 18.225L6.51562 16.8188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 16.8188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ms=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 8.1001L7.92188 10.9126L6.51562 9.50635",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 9.50635H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 13.9126L7.92188 16.7251L6.51562 15.3188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 15.3188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ds=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},n.createElement("path",{d:"M4.49908 1.50001H12.0015H19.5039C19.5039 1.50001 20.868 1.50001 20.868 2.86409V21.1359C20.868 21.1359 20.868 22.5 19.5039 22.5H4.49908C4.49908 22.5 3.13501 22.5 3.13501 21.1359V2.86409C3.13501 2.86409 3.13501 1.50001 4.49908 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.5 11.9996L8.598 14.1953C8.70072 14.4016 8.85107 14.5804 9.03662 14.7171C9.22217 14.8538 9.43759 14.9443 9.66506 14.9812C9.89254 15.0182 10.1255 15.0004 10.3448 14.9295C10.5641 14.8585 10.7633 14.7364 10.926 14.5733L16.5 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{taskManagement:zs,common:Bs}=se.getLocalizedStrings(),Q=zs.taskList.newTaskOptions;function As({anchorEl:e,groupByKey:u,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:p,onExpandTemplate:a,onClose:c,onNewTaskClick:i,onNewGroupClick:d,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:v,onNewTaskInitialization:I}){const M=qe(),[k,f]=n.useState(null),[w,D]=n.useState(null);n.useEffect(()=>{h.fetchState==="Completed"&&(D(null),f(null),c())},[h.fetchState,c]);const z=n.useCallback(($,x)=>{f(x),v($,x)},[v]),B=n.useCallback($=>{D($),C($)},[C]);return t.jsx(Ze,{open:!!e,sx:{"& .MuiPaper-root":{border:`1px solid ${M.colors.grey3}`}},anchorEl:e,onClose:c,transformOrigin:{vertical:"top",horizontal:"right"},anchorOrigin:{vertical:"bottom",horizontal:"right"},children:t.jsxs(Ws,{isTaskTemplatesEnabled:m,children:[t.jsxs(Ps,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(Os,{}),t.jsx(Ne,{children:Q.task})]}),t.jsx(V,{controller:u==="groupName",children:t.jsxs(Pe,{onClick:()=>d(""),children:[t.jsx(Fs,{}),t.jsx(Ne,{children:Q.group})]})})]}),m?t.jsx(Rs,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:p,handleGroupTemplateClick:B,handleGroupTemplateTaskClick:z,onNewGroupClick:d,onNewTaskInitialization:I,onExpandTemplate:a}):null]})})}const Rs=({taskGroupTemplates:e,taskIdInCreation:u,groupIdInCreation:r,expandedTemplate:h,onExpandTemplate:m,handleGroupTemplateClick:p,handleGroupTemplateTaskClick:a,onNewGroupClick:c,onNewTaskInitialization:i})=>{const[d,C]=n.useState(""),v=n.useMemo(()=>{const k=[];return e.forEach(f=>{if(f.name.toLowerCase().includes(d.toLowerCase()))k.push(f);else{const w=f.tasks.filter(D=>D.name.toLowerCase().includes(d.toLowerCase()));w.length>0&&k.push({...f,tasks:w})}}),k},[e,d]),I=n.useCallback(()=>{i(d)},[d,i]),M=n.useCallback(()=>{c(d)},[d,c]);return t.jsxs(Hs,{children:[t.jsx(Vs,{children:t.jsxs(_s,{children:[t.jsxs(Us,{children:[t.jsx(Ks,{}),t.jsx(Ys,{children:Q.groupTemplates})]}),t.jsx(vs,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:d,onSearchTextChanged:C,placeholder:Q.searchPlaceholder})]})}),t.jsx(V,{controller:v.length>0,children:t.jsx(qs,{children:v.map(k=>{const f=h===k.id;return t.jsxs(no,{children:[t.jsxs(Zs,{onClick:()=>{m(k.id)},expanded:f,children:[t.jsxs(Xs,{children:[t.jsx(V,{controller:f,children:t.jsx(oo,{})}),t.jsx(V,{controller:!f,children:t.jsx(so,{})}),t.jsx(K,{children:k.name}),t.jsx(ct,{count:k.tasks.length})]}),t.jsx(eo,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:Q.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),p(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(V,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Qs,{children:[t.jsxs(Js,{children:[t.jsx(ao,{className:"styled-dot"}),t.jsx(lo,{className:"task-name-text",children:w.name})]}),t.jsx(to,{loading:u===w.name,className:"hidden-create-task-button",variant:"secondary",size:"xs-small",label:Bs.create,reverseSpinnerColor:!1,onClick:()=>a(k.id,w.name)})]},w.name))})})]},k.id)})})}),t.jsxs(V,{controller:v.length===0,children:[t.jsx(ro,{children:t.jsx(io,{children:Q.noTaskGroup})}),t.jsxs(He,{onClick:I,children:[t.jsx(Ve,{}),t.jsx(K,{children:Q.newTaskOptionText.replace("__searchText__",d)})]}),t.jsxs(He,{onClick:M,children:[t.jsx(Ve,{}),t.jsx(K,{children:Q.newGroupOptionText.replace("__searchText__",d)})]})]})]})},Ws=o.div`
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
width: ${e=>e.isTaskTemplatesEnabled?"408px":"unset"};
|
|
@@ -126,12 +126,12 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
126
126
|
`,Hs=o.div`
|
|
127
127
|
background-color: ${e=>e.theme.colors.grey5};
|
|
128
128
|
padding-bottom: ${s.sp2};
|
|
129
|
-
`,
|
|
129
|
+
`,Vs=o.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
justify-content: space-between;
|
|
132
132
|
align-items: center;
|
|
133
133
|
padding: ${s.sp2} ${s.sp3};
|
|
134
|
-
`,
|
|
134
|
+
`,Us=o.div`
|
|
135
135
|
display: flex;
|
|
136
136
|
column-gap: ${s.sp2};
|
|
137
137
|
align-items: center;
|
|
@@ -145,12 +145,12 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
145
145
|
width: ${s.sp3};
|
|
146
146
|
height: ${s.sp3};
|
|
147
147
|
color: ${e=>e.theme.colors.primary};
|
|
148
|
-
`,Ys=o(
|
|
148
|
+
`,Ys=o(Ne)`
|
|
149
149
|
color: ${e=>e.theme.colors.primary};
|
|
150
|
-
`,
|
|
150
|
+
`,qs=o.div`
|
|
151
151
|
max-height: 320px;
|
|
152
152
|
overflow: auto;
|
|
153
|
-
`,
|
|
153
|
+
`,Zs=o.div`
|
|
154
154
|
display: flex;
|
|
155
155
|
justify-content: space-between;
|
|
156
156
|
align-items: center;
|
|
@@ -164,7 +164,7 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
164
164
|
display: block;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
`,
|
|
167
|
+
`,Xs=o.div`
|
|
168
168
|
display: flex;
|
|
169
169
|
align-items: center;
|
|
170
170
|
padding: ${s.sp2} ${s.sp0};
|
|
@@ -188,7 +188,7 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
188
188
|
display: block;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
`,
|
|
191
|
+
`,Js=o.div`
|
|
192
192
|
display: flex;
|
|
193
193
|
align-items: center;
|
|
194
194
|
cursor: pointer;
|
|
@@ -205,10 +205,10 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
205
205
|
display: ${e=>e.expanded===!0?"block":"none"};
|
|
206
206
|
`,to=o(Me)`
|
|
207
207
|
display: none;
|
|
208
|
-
`,so=o(
|
|
208
|
+
`,so=o(Et)`
|
|
209
209
|
width: ${s.sp3};
|
|
210
210
|
height: ${s.sp3};
|
|
211
|
-
`,oo=o(
|
|
211
|
+
`,oo=o(Je)`
|
|
212
212
|
width: ${s.sp3};
|
|
213
213
|
height: ${s.sp3};
|
|
214
214
|
`,no=o.div``,ao=o.div`
|
|
@@ -234,7 +234,7 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
234
234
|
background-color: ${e=>e.theme.colors.background};
|
|
235
235
|
color: ${e=>e.theme.colors.primary};
|
|
236
236
|
}
|
|
237
|
-
`,
|
|
237
|
+
`,Ve=o(et)`
|
|
238
238
|
width: ${s.sp3};
|
|
239
239
|
height: ${s.sp3};
|
|
240
240
|
`,lo=o(K)`
|
|
@@ -243,7 +243,7 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
243
243
|
text-overflow: ellipsis;
|
|
244
244
|
white-space: nowrap;
|
|
245
245
|
max-width: 336px;
|
|
246
|
-
`,{common:
|
|
246
|
+
`,{common:Ge,dateFormat:co,taskManagement:Ie}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new Qe(125,170,170,250,300)},po=({taskDetail:e,tagList:u,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:p})=>{const a=ie(),c=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,d=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Ge.strings.empty,{getValues:C,resetField:v,getFieldState:I}=it(),M=(k,f)=>{const w=Be(k,f,xe);I(w).invalid?v(w):m(e,{timeSpent:C(w)})};return t.jsxs(mo,{children:[t.jsxs(vo,{windowSize:a,onClick:h,responsiveWidth:X[0].width,children:[t.jsxs(So,{windowSize:a,children:[t.jsx(Lo,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ee,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(Eo,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ee,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(Go,{windowSize:a,responsiveWidth:X[0].width,children:t.jsx(No,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[1].width,children:ze(e.status.code)}),t.jsx(zo,{windowSize:a,responsiveWidth:X[2].width,children:ze(e.priority.code)}),t.jsx(Bo,{windowSize:a,responsiveWidth:X[3].width,children:e.dueDate!=null?e.dueDate.format(co.visual.MMMDCommaYYYYformat):t.jsx(go,{children:Ge.strings.hyphen})}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[4].width,children:c>0?t.jsxs(ko,{children:[t.jsx(Kt,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Io,{children:t.jsx(Mo,{children:d})}),c>1?t.jsx(xo,{children:`${Ge.strings.plus}${c-1}`}):null]}):null}),t.jsx(Ao,{windowSize:a,responsiveWidth:X[5].width,children:e.tagIds.length>0?t.jsx(Do,{children:Yt(e.tagIds,u)}):null}),t.jsx(Wo,{windowSize:a,responsiveWidth:X[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Oo,{className:"timeSpentField",children:t.jsx(qt,{name:Be(r,e.id,xe),placeholder:Ie.common.timeSpentPlaceholder,timeSpentFormat:Ie.common.timeSpentFormat,registerOptions:{validate:k=>es(k)>Zt?(p({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error"):!0},style:{padding:`${s.sp0} ${s.sp1}`,background:"unset"},onInputBlur:()=>{M(r,e.id)},inputStyle:{textAlign:"right",padding:`${s.sp0} ${s.sp2}`}})})})]})},uo=({taskGroup:e,tagList:u,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:p,isCollapsed:a,existingTaskGroupNamesByGroupId:c,onDeleteTaskGroup:i,onExpandAll:d,onCollapseAll:C,onAddNewTaskToTaskGroup:v,onCollapseToggle:I,onTaskManagementRowClick:M,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[D,z]=n.useState(null),B=ie(),{setFocus:$}=it(),x=n.useCallback(()=>{I(e.id)},[I,e.id]),S=n.useCallback(W=>{z(W.currentTarget)},[]),j=n.useCallback(()=>{z(null)},[]),L=n.useCallback(()=>{v(e.id)},[v,e.id]),g=n.useCallback(()=>{z(null),i(e.id)},[i,e.id]),y=n.useCallback(()=>{$(`${r}.groupName`),j()},[j,r,$]);return t.jsxs(ho,{windowSize:B,children:[t.jsx(V,{controller:h,children:t.jsxs(wo,{children:[t.jsxs(fo,{children:[t.jsx(Co,{isOpen:a===!1,onClick:x,children:t.jsx(To,{})}),t.jsx(Ot,{style:{textAlign:"start",width:"100%",background:"unset",...Ft.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Ie.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:W=>Pt(W,e.id,c)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx($o,{onClick:S,children:t.jsx(jo,{})}),t.jsx(Ht,{onClose:j,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:d,onRename:y,isDefault:e.isDefault,anchorEl:D})]})}),t.jsx(V,{controller:a===!1,children:t.jsx(Vt,{mode:"checked_or_hover",isDisabled:p===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(W=>{const U=()=>{M(W.id)};return{label:t.jsx(po,{taskDetail:W,onRowClick:U,tagList:u,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:B==="small"?null:t.jsx(yo,{children:t.jsx(bo,{})}),value:W.id,defaultChecked:!1,groupLabel:!1}})],name:`${r}.selectedIds`,style:{width:"100%",rowGap:s.sp3},checkBoxStyle:{padding:s.sp3},labelCheckBoxStyle:{padding:s.sp3},onDragStart:k,draggable:!0})})]})},ho=o.div`
|
|
247
247
|
box-sizing: border-box;
|
|
248
248
|
display: flex;
|
|
249
249
|
flex-direction: column;
|
|
@@ -305,13 +305,13 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
305
305
|
`,Co=o.div`
|
|
306
306
|
cursor: pointer;
|
|
307
307
|
transform: ${e=>e.isOpen?"rotate(0deg)":"rotate(-90deg)"};
|
|
308
|
-
`,To=o(
|
|
308
|
+
`,To=o(Je)`
|
|
309
309
|
width: ${s.sp3};
|
|
310
310
|
height: ${s.sp3};
|
|
311
311
|
color: ${e=>e.theme.colors.primary};
|
|
312
312
|
`,$o=o.div`
|
|
313
313
|
cursor: pointer;
|
|
314
|
-
`,jo=o(
|
|
314
|
+
`,jo=o(Ut)`
|
|
315
315
|
width: ${s.sp3};
|
|
316
316
|
height: ${s.sp3};
|
|
317
317
|
`,yo=o.div`
|
|
@@ -333,11 +333,11 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
333
333
|
flex-direction: row;
|
|
334
334
|
column-gap: ${s.sp2};
|
|
335
335
|
align-items: flex-start;
|
|
336
|
-
`,
|
|
336
|
+
`,Go=o(K)`
|
|
337
337
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
338
338
|
max-height: ${s.sp4};
|
|
339
339
|
width: 100%;
|
|
340
|
-
`,
|
|
340
|
+
`,Lo=o.div`
|
|
341
341
|
max-width: ${e=>`${pt.taskNameMaxWidth.value(e.windowSize)-ge[4]}px`};
|
|
342
342
|
color: ${e=>e.theme.colors.hero};
|
|
343
343
|
width: ${e=>e.isIconPresent?"80%":"90%"};
|
|
@@ -345,13 +345,13 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
345
345
|
overflow: hidden;
|
|
346
346
|
text-overflow: ellipsis;
|
|
347
347
|
display: inline-block;
|
|
348
|
-
`,
|
|
348
|
+
`,No=o(re)`
|
|
349
349
|
color: ${e=>e.theme.colors.grey1};
|
|
350
350
|
max-width: ${e=>pt.taskNameMaxWidth.valuePx(e.windowSize)};
|
|
351
351
|
white-space: nowrap;
|
|
352
352
|
overflow: hidden;
|
|
353
353
|
text-overflow: ellipsis;
|
|
354
|
-
`,
|
|
354
|
+
`,Eo=o(Xt)`
|
|
355
355
|
display: flex;
|
|
356
356
|
align-items: center;
|
|
357
357
|
margin-left: ${s.sp1};
|
|
@@ -375,7 +375,7 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
375
375
|
flex-direction: row;
|
|
376
376
|
align-items: center;
|
|
377
377
|
column-gap: ${s.sp2};
|
|
378
|
-
`,
|
|
378
|
+
`,Ue=o.div`
|
|
379
379
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
380
380
|
min-width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
381
381
|
overflow: hidden;
|
|
@@ -430,7 +430,7 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
430
430
|
column-gap: ${s.sp2};
|
|
431
431
|
`,Oo=o.div`
|
|
432
432
|
max-width: ${s.sp11};
|
|
433
|
-
`,Fo=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),H=se.getLocalizedStrings(),_e=e=>`${e}_form`,Po={rowGap:new Qe(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Ge}=se.getLocalizedStrings(),jn=({taskListView:e,tagListView:u,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:p,onDeleteTaskGroup:a,updateLocalData:c,onTaskManagementRowClick:i,onReloadTasks:d,onColumnSortConfigChanged:C,onSearchTextChanged:v,onBackClick:I,onNewTaskClick:M,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:D,onAddNewTaskToTaskGroup:z,onGroupByFilterChange:B,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:j,handleGroupTemplateClick:G,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:y})=>{const[W,V]=n.useState(!1),[X,F]=n.useState(null),[P,oe]=n.useState(null),[Z,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:q,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:je}=u,ye=Ze(),be=R=>{ne(R)},he=n.useCallback(R=>{le(R.currentTarget)},[]),me=n.useCallback(R=>{B(R)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),L=n.useCallback(R=>{y(R)},[y]),O=de.users.map(R=>R.user).filter(R=>R!=null),E={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:q.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:be,onSearchTextChanged:v,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(gs,{value:q.groupByKey,resetDisabled:q.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>is("task_management",O,Ce.loggedInUserRole??[],u.tagList)},N=n.useCallback(R=>{le(null),F(Y),c({...e.localData,newTaskGroupName:R})},[e.localData,c]),A=n.useCallback(()=>{le(null)},[]),b=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{F(Y)},[]),te=n.useCallback(R=>{pe(mt=>mt===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&V(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&pe(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ut=()=>ee==="Error"?t.jsxs(Zo,{children:[t.jsx(qo,{onClick:d,children:t.jsx(Jo,{})}),t.jsx(Qo,{children:H.common.reloadPage.label})]}):ee==="Completed"&&$e.length===0?t.jsx(ft,{message:H.taskManagement.taskList.noDataText}):ee==="Not-Started"||ee==="In-Progress"?t.jsx(Ct,{fetchState:ee}):t.jsx(Ho,{taskListView:e,tagList:je,renameActiveField:X,updateTask:m,onDragNDrop:p,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:V,updateLocalData:c,setActiveTaskGroupId:oe,setRenameActiveField:F,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:j,onCreateTagClick:h}),ht=t.jsx(ss,{spendManagementSectionProps:E});return t.jsxs(Yo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ye.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(As,{anchorEl:fe,groupByKey:q.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:M,onNewGroupClick:N,handleGroupTemplateClick:G,handleGroupTemplateTaskClick:g,onNewTaskInitialization:L,onExpandTemplate:te,expandedTemplate:Z}),t.jsx(Ko,{children:ut()}),t.jsx(U,{controller:W===!0,children:t.jsx(xt,{action:{onOkClick:b,onCancelClick:()=>{V(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(on,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(nn,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Ho=({taskListView:e,tagList:u,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:p,onDragNDrop:a,updateLocalData:c,setShowDeleteModal:i,handleCreateGroup:d,resetLocalData:C,assignGroupToTasks:v,setGroupCreationInProgress:I,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B})=>{const $=n.useRef(null),[x,S]=n.useState(null),j=n.useRef({}),G=ie(),{localData:g,taskGroupsWithTasksList:y,uiState:W}=e,[V,X]=n.useState([]),F=n.useRef(null);us({scrollContainerRef:F,isEnabled:G!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=jt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,u),[g,e.taskGroupsWithTasksList,P,u]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,u),[g,e.taskGroupsWithTasksList,P,u])}),Z=n.useMemo(()=>{if(r!==Y)return y;const l=[],L=y.map(O=>{const E=O.tasks.filter(N=>{const A=g.selectedTaskIds.includes(N.id)===!0;return A&&l.push(N),A===!1});return{...O,tasks:E}});return L.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),L},[r,y,g.selectedTaskIds]),pe=n.useCallback(l=>V.includes(Z[l].id)||Z[l].tasks.length===0?100:j.current?.[l]!=null?j.current[l]+Po.rowGap.value(G):(os*1+ns)*3+as+rs,[V,Z,G]),fe=n.useCallback(l=>{S(l.currentTarget)},[]),le=n.useCallback((l,L)=>{j.current={...j.current,[l]:L},$.current?.resetAfterIndex(0,!0)},[G,$,y]),ue=n.useCallback(l=>{X(L=>L.includes(l)?L.filter(O=>l!==O):[...L,l]),$.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{X(y.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[y]),ee=n.useCallback(()=>{X([]),$.current?.resetAfterIndex(0,!0)},[]),q=n.useCallback(()=>{I(),$.current?.scrollTo(0),ne()},[ne,I]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==Y?q():d(!0):r===Y?d(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,q,d,m]),$e=n.useCallback(()=>{p(null),C()},[C,p]),je=n.useCallback(l=>{C(),p(l)},[C,p]),ye=n.useCallback(()=>{g.defaultTaskGroupId!=null&&v(g.defaultTaskGroupId)},[v,g.defaultTaskGroupId]),be=async(l,L)=>{if(l.includes(nt)){const E=l.split(".")[2],N=y.flatMap(b=>b.tasks).find(b=>b.id===E),A=L[_][ae][E].priority.selectedOption;if(N!=null&&A!=null){const b=lt.find(T=>T.code===A);b!=null&&h(N,{priority:b})}return}if(l.includes(at)){const E=l.split(".")[2],N=y.flatMap(b=>b.tasks).find(b=>b.id===E),A=L[_][ae][E].status.selectedOption;if(N!=null&&A!=null){const b=dt.find(T=>T.code===A);N!=null&&b!=null&&h(N,{status:b})}return}if(l.includes(st)){const E=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===E),A=y.find(T=>T.tasks.find(te=>te.id===E))?.id,b=L[_][ae][E].assignees.selectedUsers.map(T=>T.userId);A!=null&&b!=null&&N!=null&&h(N,{assignees:b});return}if(l.includes(ot)){const E=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===E),A=y.find(T=>T.tasks.find(te=>te.id===E))?.id,b=L[_][ae][E].dueDate.date;A!=null&&b!=null&&N!=null&&h(N,{dueDate:b});return}if(l.includes(tt)){const E=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===E),A=y.find(T=>T.tasks.find(te=>te.id===E))?.id,b=L[_][ae][E].tags.selectedOptions;A!=null&&b!=null&&N!=null&&h(N,{tagIds:b});return}l.includes(xe)&&oe.trigger(l);const O=_o(l,L,g);c(O)};n.useEffect(()=>{const l=oe.watch((L,{name:O})=>{O!=null&&L!=null&&yt(()=>be(O,L))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupUpdateStatus.fetchState]);const he=y.length>1&&g.selectedTaskIds.length>0&&r!==Y,me=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(bt,{...oe,children:t.jsx("form",{id:_e(De),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(Xo,{isFooterVisible:me,windowSize:G,children:t.jsx(vt,{children:({height:l,width:L})=>t.jsx(St,{ref:$,outerRef:F,height:l,itemCount:Z.length,itemSize:pe,estimatedItemSize:Gt,itemKey:O=>Z[O].id,width:L,overscanCount:Lt,itemData:{tagList:u,taskGroupsWithTasksList:Z,uiState:W,collapsedGroups:V,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:je,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:Uo})})})})}),me?t.jsx(Et,{formId:_e(De),primaryBtn:{label:y.length===1&&g.selectedTaskIds.length>0&&r!==Y?Ge.taskList.footer.createGroup:Ke.save,style:{width:"135px"},isLoading:e.taskGroupCreationStatus.fetchState==="In-Progress"||e.taskGroupUpdateStatus.fetchState==="In-Progress"},cancelBtn:{label:Ke.cancel,style:{width:"135px"},onClick:$e},helperContainerStyle:G==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(U,{controller:G!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(tn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(sn,{children:g.selectedTaskIds.length>1?Ge.taskList.footer.tasksSelected:Ge.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(U,{controller:G!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(rn,{children:t.jsx(Ne,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(an,{onClick:ye})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(Me,{variant:"secondary",label:H.taskManagement.taskList.footer.moveTo,onClick:fe,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx($s,{taskGroupsList:y,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:q,onExistingGroupSelection:l=>{ne(),v(l)},onClose:ne})]}):void 0}):null]})},Uo=({index:e,style:u,data:r})=>{const h=n.useRef(null),m=ie(),{tagList:p,taskGroupsWithTasksList:a,uiState:c,renameActiveField:i,collapsedGroups:d,onCollapseToggle:C,onTaskManagementRowClick:v,setRowHeight:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,handleOnDragNDrop:z,onRenameClick:B,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:j,onShowToast:G,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&I(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const y=n.useCallback(F=>{const P=F.dataTransfer.getData("row");z(P,a[e].id)},[z,e,a]),W=n.useCallback(F=>{F.preventDefault()},[]),V=(F,P)=>{F.dataTransfer.setData("row",P)},X=()=>{B(a[e].id)};return t.jsx(en,{style:{...u,width:"100%"},ref:h,onDrop:y,onDragOver:W,children:t.jsx(Vo,{taskGroup:a[e],showGroupName:!0,tagList:p,uiState:c,isCollapsed:d.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:V,onRenameClick:X,onTimeSpentUpdate:j,onShowToast:G,onCreateTagClick:g},a[e].id)})},Vo=({taskGroup:e,tagList:u,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,userList:i,existingTaskGroupNamesByGroupId:d,onRenameClick:C,onTaskManagementRowClick:v,onCollapseToggle:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),j=S==="medium-regular"||S==="medium-compact"||S==="small"?uo:Wt;return t.jsx(j,{taskGroup:e,tagList:u,userList:i,sectionId:_,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,existingTaskGroupNamesByGroupId:d,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,onCollapseToggle:I,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onDragStart:z,onRenameClick:C,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})},Ye=(e,u,r,h)=>{const m={},p={};e.forEach(c=>{p[c.id]={[ke]:[],[ce]:u.existingTaskGroupNamesByGroupId[c.id]},c.tasks.forEach(i=>{u.selectedTaskIds.includes(i.id)&&p[c.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(d=>({label:d.name,value:d.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(d=>({label:d.name,value:d.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(d=>d.user)},[tt]:{allOptions:It(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[Y]:{[ce]:u.newTaskGroupName,[ke]:[]},...p},[ae]:m};return{[_]:a}},_o=(e,u,r)=>{if(e.includes(_)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(Y)?{...r,newTaskGroupName:u[_].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:u[_].groupData[h][ce]}};if(e.includes(ke)){const m=At(Rt(Object.values(u[_][rt]),ke)).filter(p=>p!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Ko=o.div`
|
|
433
|
+
`,Fo=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),H=se.getLocalizedStrings(),_e=e=>`${e}_form`,Po={rowGap:new Qe(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),jn=({taskListView:e,tagListView:u,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:p,onDeleteTaskGroup:a,updateLocalData:c,onTaskManagementRowClick:i,onReloadTasks:d,onColumnSortConfigChanged:C,onSearchTextChanged:v,onBackClick:I,onNewTaskClick:M,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:D,onAddNewTaskToTaskGroup:z,onGroupByFilterChange:B,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:j,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:y})=>{const[W,U]=n.useState(!1),[J,F]=n.useState(null),[P,oe]=n.useState(null),[q,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:Z,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:je}=u,ye=qe(),be=R=>{ne(R)},he=n.useCallback(R=>{le(R.currentTarget)},[]),me=n.useCallback(R=>{B(R)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(R=>{y(R)},[y]),O=de.users.map(R=>R.user).filter(R=>R!=null),N={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:Z.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:be,onSearchTextChanged:v,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(gs,{value:Z.groupByKey,resetDisabled:Z.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>is("task_management",O,Ce.loggedInUserRole??[],u.tagList)},E=n.useCallback(R=>{le(null),F(Y),c({...e.localData,newTaskGroupName:R})},[e.localData,c]),A=n.useCallback(()=>{le(null)},[]),b=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{F(Y)},[]),te=n.useCallback(R=>{pe(mt=>mt===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&pe(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ut=()=>ee==="Error"?t.jsxs(qo,{children:[t.jsx(Zo,{onClick:d,children:t.jsx(Xo,{})}),t.jsx(Qo,{children:H.common.reloadPage.label})]}):ee==="Completed"&&$e.length===0?t.jsx(ft,{message:H.taskManagement.taskList.noDataText}):ee==="Not-Started"||ee==="In-Progress"?t.jsx(Ct,{fetchState:ee}):t.jsx(Ho,{taskListView:e,tagList:je,renameActiveField:J,updateTask:m,onDragNDrop:p,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:c,setActiveTaskGroupId:oe,setRenameActiveField:F,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:j,onCreateTagClick:h}),ht=t.jsx(ss,{spendManagementSectionProps:N});return t.jsxs(Yo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ye.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(As,{anchorEl:fe,groupByKey:Z.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:M,onNewGroupClick:E,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:q}),t.jsx(Ko,{children:ut()}),t.jsx(V,{controller:W===!0,children:t.jsx(xt,{action:{onOkClick:b,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(on,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(nn,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Ho=({taskListView:e,tagList:u,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:p,onDragNDrop:a,updateLocalData:c,setShowDeleteModal:i,handleCreateGroup:d,resetLocalData:C,assignGroupToTasks:v,setGroupCreationInProgress:I,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B})=>{const $=n.useRef(null),[x,S]=n.useState(null),j=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:y,uiState:W}=e,[U,J]=n.useState([]),F=n.useRef(null);us({scrollContainerRef:F,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=jt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,u),[g,e.taskGroupsWithTasksList,P,u]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,u),[g,e.taskGroupsWithTasksList,P,u])}),q=n.useMemo(()=>{if(r!==Y)return y;const l=[],G=y.map(O=>{const N=O.tasks.filter(E=>{const A=g.selectedTaskIds.includes(E.id)===!0;return A&&l.push(E),A===!1});return{...O,tasks:N}});return G.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),G},[r,y,g.selectedTaskIds]),pe=n.useCallback(l=>U.includes(q[l].id)||q[l].tasks.length===0?100:j.current?.[l]!=null?j.current[l]+Po.rowGap.value(L):(os*1+ns)*3+as+rs,[U,q,L]),fe=n.useCallback(l=>{S(l.currentTarget)},[]),le=n.useCallback((l,G)=>{j.current={...j.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,y]),ue=n.useCallback(l=>{J(G=>G.includes(l)?G.filter(O=>l!==O):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{J(y.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[y]),ee=n.useCallback(()=>{J([]),$.current?.resetAfterIndex(0,!0)},[]),Z=n.useCallback(()=>{I(),$.current?.scrollTo(0),ne()},[ne,I]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==Y?Z():d(!0):r===Y?d(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,Z,d,m]),$e=n.useCallback(()=>{p(null),C()},[C,p]),je=n.useCallback(l=>{C(),p(l)},[C,p]),ye=n.useCallback(()=>{g.defaultTaskGroupId!=null&&v(g.defaultTaskGroupId)},[v,g.defaultTaskGroupId]),be=async(l,G)=>{if(l.includes(nt)){const N=l.split(".")[2],E=y.flatMap(b=>b.tasks).find(b=>b.id===N),A=G[_][ae][N].priority.selectedOption;if(E!=null&&A!=null){const b=lt.find(T=>T.code===A);b!=null&&h(E,{priority:b})}return}if(l.includes(at)){const N=l.split(".")[2],E=y.flatMap(b=>b.tasks).find(b=>b.id===N),A=G[_][ae][N].status.selectedOption;if(E!=null&&A!=null){const b=dt.find(T=>T.code===A);E!=null&&b!=null&&h(E,{status:b})}return}if(l.includes(st)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[_][ae][N].assignees.selectedUsers.map(T=>T.userId);A!=null&&b!=null&&E!=null&&h(E,{assignees:b});return}if(l.includes(ot)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[_][ae][N].dueDate.date;A!=null&&b!=null&&E!=null&&h(E,{dueDate:b});return}if(l.includes(tt)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[_][ae][N].tags.selectedOptions;A!=null&&b!=null&&E!=null&&h(E,{tagIds:b});return}l.includes(xe)&&oe.trigger(l);const O=_o(l,G,g);c(O)};n.useEffect(()=>{const l=oe.watch((G,{name:O})=>{O!=null&&G!=null&&yt(()=>be(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupUpdateStatus.fetchState]);const he=y.length>1&&g.selectedTaskIds.length>0&&r!==Y,me=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(bt,{...oe,children:t.jsx("form",{id:_e(De),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(Jo,{isFooterVisible:me,windowSize:L,children:t.jsx(vt,{children:({height:l,width:G})=>t.jsx(St,{ref:$,outerRef:F,height:l,itemCount:q.length,itemSize:pe,estimatedItemSize:Lt,itemKey:O=>q[O].id,width:G,overscanCount:Gt,itemData:{tagList:u,taskGroupsWithTasksList:q,uiState:W,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:je,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:Vo})})})})}),me?t.jsx(Nt,{formId:_e(De),primaryBtn:{label:y.length===1&&g.selectedTaskIds.length>0&&r!==Y?Le.taskList.footer.createGroup:Ke.save,style:{width:"135px"},isLoading:e.taskGroupCreationStatus.fetchState==="In-Progress"||e.taskGroupUpdateStatus.fetchState==="In-Progress"},cancelBtn:{label:Ke.cancel,style:{width:"135px"},onClick:$e},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(V,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(tn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(sn,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(V,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(rn,{children:t.jsx(Ee,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(an,{onClick:ye})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(Me,{variant:"secondary",label:H.taskManagement.taskList.footer.moveTo,onClick:fe,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx($s,{taskGroupsList:y,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ne(),v(l)},onClose:ne})]}):void 0}):null]})},Vo=({index:e,style:u,data:r})=>{const h=n.useRef(null),m=ie(),{tagList:p,taskGroupsWithTasksList:a,uiState:c,renameActiveField:i,collapsedGroups:d,onCollapseToggle:C,onTaskManagementRowClick:v,setRowHeight:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,handleOnDragNDrop:z,onRenameClick:B,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&I(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const y=n.useCallback(F=>{const P=F.dataTransfer.getData("row");z(P,a[e].id)},[z,e,a]),W=n.useCallback(F=>{F.preventDefault()},[]),U=(F,P)=>{F.dataTransfer.setData("row",P)},J=()=>{B(a[e].id)};return t.jsx(en,{style:{...u,width:"100%"},ref:h,onDrop:y,onDragOver:W,children:t.jsx(Uo,{taskGroup:a[e],showGroupName:!0,tagList:p,uiState:c,isCollapsed:d.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:U,onRenameClick:J,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g},a[e].id)})},Uo=({taskGroup:e,tagList:u,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,userList:i,existingTaskGroupNamesByGroupId:d,onRenameClick:C,onTaskManagementRowClick:v,onCollapseToggle:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),j=S==="medium-regular"||S==="medium-compact"||S==="small"?uo:Wt;return t.jsx(j,{taskGroup:e,tagList:u,userList:i,sectionId:_,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,existingTaskGroupNamesByGroupId:d,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,onCollapseToggle:I,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onDragStart:z,onRenameClick:C,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})},Ye=(e,u,r,h)=>{const m={},p={};e.forEach(c=>{p[c.id]={[ke]:[],[ce]:u.existingTaskGroupNamesByGroupId[c.id]},c.tasks.forEach(i=>{u.selectedTaskIds.includes(i.id)&&p[c.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(d=>({label:d.name,value:d.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(d=>({label:d.name,value:d.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(d=>d.user)},[tt]:{allOptions:It(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[Y]:{[ce]:u.newTaskGroupName,[ke]:[]},...p},[ae]:m};return{[_]:a}},_o=(e,u,r)=>{if(e.includes(_)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(Y)?{...r,newTaskGroupName:u[_].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:u[_].groupData[h][ce]}};if(e.includes(ke)){const m=At(Rt(Object.values(u[_][rt]),ke)).filter(p=>p!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Ko=o.div`
|
|
434
434
|
display: block;
|
|
435
435
|
height: 100%;
|
|
436
436
|
`,Yo=o.div`
|
|
@@ -441,14 +441,14 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
441
441
|
row-gap: ${s.sp4};
|
|
442
442
|
background-color: ${e=>e.theme.colors.grey4};
|
|
443
443
|
overflow: hidden;
|
|
444
|
-
`,
|
|
444
|
+
`,qo=o.div`
|
|
445
445
|
display: flex;
|
|
446
446
|
width: 100%;
|
|
447
447
|
height: calc(100% - 60px);
|
|
448
448
|
flex-direction: column;
|
|
449
449
|
justify-content: center;
|
|
450
450
|
align-items: center;
|
|
451
|
-
`,
|
|
451
|
+
`,Zo=o.div`
|
|
452
452
|
height: 96px;
|
|
453
453
|
width: 96px;
|
|
454
454
|
display: flex;
|
|
@@ -457,7 +457,7 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
457
457
|
background: ${e=>e.theme.colors.background};
|
|
458
458
|
border-radius: 50%;
|
|
459
459
|
cursor: pointer;
|
|
460
|
-
`,
|
|
460
|
+
`,Xo=o(Xe)`
|
|
461
461
|
height: ${s.sp5};
|
|
462
462
|
width: ${s.sp5};
|
|
463
463
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -467,7 +467,7 @@ import{av as gt,e as Ze,V as t,F as se,jl as Y,bz as kt,a9 as U,cm as xt,ak as K
|
|
|
467
467
|
`,Qo=o($t)`
|
|
468
468
|
margin-top: ${s.sp3};
|
|
469
469
|
color: ${e=>e.theme.colors.hero};
|
|
470
|
-
`,
|
|
470
|
+
`,Jo=o.div`
|
|
471
471
|
/** Subtract top so list can occupy remaining available height */
|
|
472
472
|
height: ${e=>e.isFooterVisible===!0?"calc(100vh - 152px)":"calc(100vh - 88px)"}; // total - header
|
|
473
473
|
max-width: 99.9%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,b1 as H,aA as S,
|
|
1
|
+
import{V as t,b1 as H,aA as S,dl as L,bp as q,o as a,ag as A}from"./index-BS0RW8dr.js";import{a as n,Y as D}from"./core-3dlyNYRL.js";import{n as g}from"./mui-bYXq4XMS.js";import{V as U}from"./CollapsableReportTable-DdMyzUD0-BAoVL7wM.js";const W=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),X=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,Z=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
justify-content: flex-start;
|
|
@@ -61,4 +61,4 @@ import{V as t,b1 as H,aA as S,dk as L,bp as q,o as a,ag as A}from"./index-XNBiWr
|
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
pointer-events: all;
|
|
63
63
|
color: ${e=>e.theme.colors.grey5};
|
|
64
|
-
`;function j({iconPosition:e}){switch(e){case"left":return t.jsx(W,{className:"slider-icon",fill:"currentColor"});case"right":return t.jsx(X,{className:"slider-icon",fill:"currentColor"});default:throw Error("Invalid iconPosition")}}function te(e){return D.createPortal(e.children,e.parentNode)}function re({enabled:e,firstMonthOfFY:c,timeframe:o,tick:r,tickIndex:x,isSelected:s,onClick:f}){return t.jsx(_,{isEnabled:e,isSelected:s,onClick:()=>{f(r,x,o)},children:t.jsx(J,{children:U(c,r,o)})})}function ne(e,c,o,r,x){const s=c-e,f=Math.floor(e/h)+Math.round(s/h),w=f+o.length-r.length,u=f+o.length,b=x-u;return{selectedTicks:{fromStart:{startIndex:f,length:o.length},fromEnd:{offsetFromEnd:b,length:o.length}},highlightedOfSelectedTicks:{startIndex:w,length:r.length}}}function le(e){return e.startIndex!=null}function z(e,c){let o={startIndex:0,length:0};if(le(e))o=e;else{const r=e.length;o={startIndex:c.length-e.offsetFromEnd-r+1,length:e.length}}return o}function oe({width:e,firstMonthOfFY:c,timeframe:o,timeframeTicks:r,isEnabled:x,selection:s,onClick:f,onSelectionChanged:w}){const u=n.createRef(),b=n.useRef(null),[I,M]=n.useState(!1),[i,T]=n.useState(z(s.selectedTicks,r)),y=n.useRef(i.startIndex);n.useEffect(()=>{y.current=i.startIndex});const[$,C]=n.useState(s.highlightedOfSelectedTicks),O=(i.startIndex+i.length>r.length?Math.max(r.length-i.length,0):i.startIndex)*h,[
|
|
64
|
+
`;function j({iconPosition:e}){switch(e){case"left":return t.jsx(W,{className:"slider-icon",fill:"currentColor"});case"right":return t.jsx(X,{className:"slider-icon",fill:"currentColor"});default:throw Error("Invalid iconPosition")}}function te(e){return D.createPortal(e.children,e.parentNode)}function re({enabled:e,firstMonthOfFY:c,timeframe:o,tick:r,tickIndex:x,isSelected:s,onClick:f}){return t.jsx(_,{isEnabled:e,isSelected:s,onClick:()=>{f(r,x,o)},children:t.jsx(J,{children:U(c,r,o)})})}function ne(e,c,o,r,x){const s=c-e,f=Math.floor(e/h)+Math.round(s/h),w=f+o.length-r.length,u=f+o.length,b=x-u;return{selectedTicks:{fromStart:{startIndex:f,length:o.length},fromEnd:{offsetFromEnd:b,length:o.length}},highlightedOfSelectedTicks:{startIndex:w,length:r.length}}}function le(e){return e.startIndex!=null}function z(e,c){let o={startIndex:0,length:0};if(le(e))o=e;else{const r=e.length;o={startIndex:c.length-e.offsetFromEnd-r+1,length:e.length}}return o}function oe({width:e,firstMonthOfFY:c,timeframe:o,timeframeTicks:r,isEnabled:x,selection:s,onClick:f,onSelectionChanged:w}){const u=n.createRef(),b=n.useRef(null),[I,M]=n.useState(!1),[i,T]=n.useState(z(s.selectedTicks,r)),y=n.useRef(i.startIndex);n.useEffect(()=>{y.current=i.startIndex});const[$,C]=n.useState(s.highlightedOfSelectedTicks),O=(i.startIndex+i.length>r.length?Math.max(r.length-i.length,0):i.startIndex)*h,[E,F]=n.useState({x:O,y:0});n.useEffect(()=>{M(!0)},[]),n.useEffect(()=>{const l=z(s.selectedTicks,r);if(!S(i,l)){T(l);const d=l.startIndex*h;F({x:d,y:0})}S($,s.highlightedOfSelectedTicks)||C(s.highlightedOfSelectedTicks)},[i,$,s,r]),n.useLayoutEffect(()=>{const{startIndex:l,length:d}=i;u.current?.scrollToItem(y.current<=l?l+d-1:l)},[u,i]);const N=x!==!1,P=(l,d,m)=>{f?.(m,l)},V=(l,d)=>{const m=ne(E.x,d.x,i,$,r.length);w?.(m.selectedTicks,m.highlightedOfSelectedTicks,o,r)},R=({index:l,style:d})=>{const m=r[l],{startIndex:v,length:Y}=$,B=l>=v&&l<v+Y;return t.jsx("div",{style:{...d},children:t.jsx(re,{enabled:N,firstMonthOfFY:c,timeframe:o,tick:m,tickIndex:l,isSelected:B,onClick:P},l)})},k=document.getElementsByClassName("date-range-list")[0];return t.jsxs(t.Fragment,{children:[t.jsx(G,{ref:u,height:p,width:e,itemCount:r.length,itemSize:h,layout:"horizontal",className:"date-range-list",style:{overflowY:"hidden"},children:R}),I===!0&&k!=null?t.jsx(te,{parentNode:k,children:t.jsx(L,{axis:"x",defaultPosition:{x:0,y:0},position:E,bounds:{left:0,right:(r.length-i.length)*h},grid:[1,0],scale:1,onStop:V,nodeRef:b,children:t.jsxs(K,{numberOfTicksSelected:i.length,ref:b,children:[t.jsx(Q,{children:t.jsx(j,{iconPosition:"left"})}),t.jsx(ee,{children:t.jsx(j,{iconPosition:"right"})})]})})}):null]})}function de(e){return t.jsx(Z,{children:t.jsx(H,{children:({width:c})=>t.jsx(oe,{...e,width:c})})})}export{p as a,de as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,o,ag as p,F as f}from"./index-
|
|
1
|
+
import{V as t,o,ag as p,F as f}from"./index-BS0RW8dr.js";import{n as i}from"./mui-bYXq4XMS.js";const u=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as c,V as o,y as n,ag as w,bH as x}from"./index-
|
|
1
|
+
import{Q as c,V as o,y as n,ag as w,bH as x}from"./index-BS0RW8dr.js";import{n as r}from"./mui-bYXq4XMS.js";import{b as l}from"./TimeframeSwitcher-LLgotbh8-X4qFRStD.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...t})=>o.jsx(x,{...t,className:e,classes:{...i}}),p=r(u)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),b=e=>o.jsx(p,{...e}),d={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},$=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aA as M,Q as _,V as t,
|
|
1
|
+
import{aA as M,Q as _,V as t,d as x,u as f,aV as q,b as T,aL as R,aI as H,o as p,ag as C,b7 as X,ak as F,F as S,aJ as G,aK as J,aP as E,b0 as Q,b1 as Y,aQ as N,bO as U}from"./index-BS0RW8dr.js";import{w,a as W}from"./core-3dlyNYRL.js";import{f0 as Z}from"./zeni-epic-state-LPACxnXP.js";import{n as g}from"./mui-bYXq4XMS.js";import{I as ee,T as te}from"./ReloadCard-Bt8qxAUx-C0FiLSzB.js";import{o as ae,r as re}from"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";import{B as k,X as L,Y as $,b as O,e as A,f as ne,g as oe}from"./recharts-BHhx6CLo.js";const ie=g(E)`
|
|
2
2
|
justify-content: space-between;
|
|
3
3
|
margin: 0;
|
|
4
4
|
height: ${e=>e.height!=null?e.height+"px":"auto"};
|
|
@@ -6,7 +6,7 @@ import{aA as M,Q as _,V as t,e as x,u as f,aV as q,b as T,aL as R,aI as H,o as p
|
|
|
6
6
|
`,se=g.div``,le=g(C)`
|
|
7
7
|
color: ${e=>e.theme.colors.hero};
|
|
8
8
|
margin: ${p.sp2} ${p.sp0} ${p.sp2} ${p.sp0};
|
|
9
|
-
`,ce=({width:e,height:i,label:r})=>{const l=x();return t.jsxs(ie,{height:i,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(ae,{style:{marginBottom:p.sp4}}):t.jsx(re,{style:{marginBottom:p.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:i,onTimeframeChanged:r,textStyle:l}){const o=n=>S.getLocalizedStrings().timeframe[n];return t.jsx(de,{onClick:n=>n.stopPropagation(),children:t.jsx(
|
|
9
|
+
`,ce=({width:e,height:i,label:r})=>{const l=x();return t.jsxs(ie,{height:i,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(ae,{style:{marginBottom:p.sp4}}):t.jsx(re,{style:{marginBottom:p.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:i,onTimeframeChanged:r,textStyle:l}){const o=n=>S.getLocalizedStrings().timeframe[n];return t.jsx(de,{onClick:n=>n.stopPropagation(),children:t.jsx(U,{pickerValues:e,valueToLabel:o,selectedValue:i,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(N)`
|
|
10
10
|
color: ${e=>e.theme.colors.champion};
|
|
11
11
|
`,v=g.div`
|
|
12
12
|
display: flex;
|
|
@@ -35,4 +35,4 @@ import{aA as M,Q as _,V as t,e as x,u as f,aV as q,b as T,aL as R,aI as H,o as p
|
|
|
35
35
|
`,be=g(F)`
|
|
36
36
|
flex: 1 1 0;
|
|
37
37
|
margin-right: ${p.sp2};
|
|
38
|
-
`;function je({report:e,width:i,height:r,showBarHoverBackground:l}){const o=x(),n=B(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx(O,{dataKey:c=>{const a=c[h]!=null?c[h]:void 0;return a!=null&&a.amount>0?a.amount:0},isAnimationActive:!0,animationDuration:800,background:{fill:o.colors.background},children:s.map(c=>t.jsx(A,{fill:o.colors.topExCustomColor},h))},Math.random());return n.chartItems.length===0?null:t.jsx(ve,{chartItemArray:n.chartItems,showBarHoverBackground:l,barElement:d(n.chartItems,n.chartItems[0].barKey),width:i,height:r})}const we=e=>{const{barKey:i,payload:r,chartItems:l,width:o,y:n}=e,d=r.value,s=l.find(h=>h.accountId==d);return s==null||s.accountDescription==null?null:t.jsx("foreignObject",{y:n-r.offset+j,width:o,height:b,children:t.jsxs(ge,{children:[t.jsxs(pe,{children:[t.jsx(fe,{src:s.logo,alt:s.accountDescription,loading:"lazy"}),t.jsx(xe,{children:s.accountDescription})]}),t.jsx(ye,{children:"⟶"}),t.jsx(be,{children:R("0,0",s[i])})]})})},ve=({chartItemArray:e,barElement:i,width:r,height:l})=>{const o=e[0],n=o.total,d=o.barKey;return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:j,height:e.length?(b+2*j)*e.length:l,barSize:b,margin:{top:0,right:0,left:0,bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:"default"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),n?.amount??0]}),t.jsx($,{orientation:"left",yAxisId:0,dataKey:s=>s.accountId,type:"category",axisLine:!1,tickLine:!1,width:r/2,mirror:!1,tick:t.jsx(we,{width:r/2,chartItems:e,barKey:d})}),i]})},D=41,I=4;function De({report:e,width:i,height:r,showBarHoverBackground:l,isDetailPage:o}){const n=x(),d=B(o===!0?e.topExpenses.accountsOrdered.length:6,e.allTimePeriods,e.topExpenses),s=(h,c,a)=>t.jsxs(O,{dataKey:m=>{const u=m[c]!=null?m[c]:void 0;return u!=null&&u.amount>0?u.amount:0},isAnimationActive:!0,animationDuration:o===!0?800:void 0,background:void 0,children:[t.jsx(ne,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:K,height:V,offset:z}=m;return t.jsx(oe,{x:u+z,y:y+V/2,fill:n.colors.hero,fontSize:T.smallRegular.fontSize,verticalAnchor:"middle",width:a-110,maxLines:1,children:K})}}),h.map(m=>t.jsx(A,{fill:m.accountDescription!==""?n.colors.graphColor29:n.colors.grey3,fillOpacity:m.accountDescription!==""?.32:1},c))]},Math.random());return d.chartItems.length===0?null:t.jsx(Ie,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,i),width:i,height:r,isDetailPage:o===!0})}const Ie=({chartItemArray:e,barElement:i,width:r,height:l,isDetailPage:o})=>{const n=x(),d=e[0],s=d.total,h=d.barKey,c=s?.currencySymbol??"";return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:o?I:2,height:o?e.length?(D+2*I)*e.length:l:l+5,barSize:o?D:38,margin:{top:0,right:o?f[0]:f[3],left:o?f[0]:f[3],bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:o?"default":"pointer"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx($,{orientation:"right",yAxisId:0,dataKey:a=>{const m=a[h]!=null?a[h]:void 0,{accountDescription:u}=a;return u!==""&&m!=null?m.amount:0},type:"category",axisLine:!1,tickLine:!1,width:r,mirror:!0,tick:{fill:n.colors.hero,...T.smallRegular.cssObject},tickFormatter:a=>a!==0?q("0,0.[00]a",a,c):""}),i]})};function Te(e){const i=_();return i!=="small"&&i!=="medium-compact"&&e.isDetailPage===!0?t.jsx(je,{...e}):t.jsx(De,{...e})}const Ce=w.memo(Te,M);function Se(e){if(e==null||e.length===0)return!0;let i=!0;for(const r of e)if(r.balance.available.amount!==0){i=!1;break}return i}function Ee({card:e,actions:i,data:r,dndProps:l}){const[o,n]=
|
|
38
|
+
`;function je({report:e,width:i,height:r,showBarHoverBackground:l}){const o=x(),n=B(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx(O,{dataKey:c=>{const a=c[h]!=null?c[h]:void 0;return a!=null&&a.amount>0?a.amount:0},isAnimationActive:!0,animationDuration:800,background:{fill:o.colors.background},children:s.map(c=>t.jsx(A,{fill:o.colors.topExCustomColor},h))},Math.random());return n.chartItems.length===0?null:t.jsx(ve,{chartItemArray:n.chartItems,showBarHoverBackground:l,barElement:d(n.chartItems,n.chartItems[0].barKey),width:i,height:r})}const we=e=>{const{barKey:i,payload:r,chartItems:l,width:o,y:n}=e,d=r.value,s=l.find(h=>h.accountId==d);return s==null||s.accountDescription==null?null:t.jsx("foreignObject",{y:n-r.offset+j,width:o,height:b,children:t.jsxs(ge,{children:[t.jsxs(pe,{children:[t.jsx(fe,{src:s.logo,alt:s.accountDescription,loading:"lazy"}),t.jsx(xe,{children:s.accountDescription})]}),t.jsx(ye,{children:"⟶"}),t.jsx(be,{children:R("0,0",s[i])})]})})},ve=({chartItemArray:e,barElement:i,width:r,height:l})=>{const o=e[0],n=o.total,d=o.barKey;return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:j,height:e.length?(b+2*j)*e.length:l,barSize:b,margin:{top:0,right:0,left:0,bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:"default"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),n?.amount??0]}),t.jsx($,{orientation:"left",yAxisId:0,dataKey:s=>s.accountId,type:"category",axisLine:!1,tickLine:!1,width:r/2,mirror:!1,tick:t.jsx(we,{width:r/2,chartItems:e,barKey:d})}),i]})},D=41,I=4;function De({report:e,width:i,height:r,showBarHoverBackground:l,isDetailPage:o}){const n=x(),d=B(o===!0?e.topExpenses.accountsOrdered.length:6,e.allTimePeriods,e.topExpenses),s=(h,c,a)=>t.jsxs(O,{dataKey:m=>{const u=m[c]!=null?m[c]:void 0;return u!=null&&u.amount>0?u.amount:0},isAnimationActive:!0,animationDuration:o===!0?800:void 0,background:void 0,children:[t.jsx(ne,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:K,height:V,offset:z}=m;return t.jsx(oe,{x:u+z,y:y+V/2,fill:n.colors.hero,fontSize:T.smallRegular.fontSize,verticalAnchor:"middle",width:a-110,maxLines:1,children:K})}}),h.map(m=>t.jsx(A,{fill:m.accountDescription!==""?n.colors.graphColor29:n.colors.grey3,fillOpacity:m.accountDescription!==""?.32:1},c))]},Math.random());return d.chartItems.length===0?null:t.jsx(Ie,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,i),width:i,height:r,isDetailPage:o===!0})}const Ie=({chartItemArray:e,barElement:i,width:r,height:l,isDetailPage:o})=>{const n=x(),d=e[0],s=d.total,h=d.barKey,c=s?.currencySymbol??"";return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:o?I:2,height:o?e.length?(D+2*I)*e.length:l:l+5,barSize:o?D:38,margin:{top:0,right:o?f[0]:f[3],left:o?f[0]:f[3],bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:o?"default":"pointer"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx($,{orientation:"right",yAxisId:0,dataKey:a=>{const m=a[h]!=null?a[h]:void 0,{accountDescription:u}=a;return u!==""&&m!=null?m.amount:0},type:"category",axisLine:!1,tickLine:!1,width:r,mirror:!0,tick:{fill:n.colors.hero,...T.smallRegular.cssObject},tickFormatter:a=>a!==0?q("0,0.[00]a",a,c):""}),i]})};function Te(e){const i=_();return i!=="small"&&i!=="medium-compact"&&e.isDetailPage===!0?t.jsx(je,{...e}):t.jsx(De,{...e})}const Ce=w.memo(Te,M);function Se(e){if(e==null||e.length===0)return!0;let i=!0;for(const r of e)if(r.balance.available.amount!==0){i=!1;break}return i}function Ee({card:e,actions:i,data:r,dndProps:l}){const[o,n]=W.useState(r?.topExTimePeriod??"last_month"),d=[...Z],s=e.fetchState==="Completed"?Se(r?.topExpenses.accountsOrdered):!1,h=(c,a)=>s===!1?t.jsx(Ce,{report:r,width:c,height:a,timeframe:o}):t.jsx(ce,{width:c,height:a,label:S.getLocalizedStrings().chartCard.no_data.top_expenses[o]});return t.jsx(H,{isDragging:l?.draggedCardType!=null,isDragOver:l?.dragOverCard===e.cardType,draggable:!0,onDragStart:c=>l?.onDragStart(e.cardType,c),onDragOver:c=>l?.onDragOver(c,e.cardType),onDragLeave:c=>l?.onDragLeave(c),onDrop:c=>l?.onDrop(c,e.cardType),dimension:e.dimension,children:t.jsx(P,{card:e,actions:i,timeframe:o,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>n(a)})},e.cardIndex)}w.memo(Ee);export{Se as E,Ce as I,Ee as L,P as O,ce as c};
|
package/dist/assets/{TopExDetailPage-BEKo6juU-CUrrRqCk.js → TopExDetailPage-JutaMmtR-koGwO2ev.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as v,Q as S,V as t,bz as A,F as u,aL as b,b1 as B,x as H,o as i,y as E,bN as z,bq as P,u as c,p as V,ak as $,aK as F,aZ as T}from"./index-BS0RW8dr.js";import{n as l}from"./mui-bYXq4XMS.js";import{f0 as D}from"./zeni-epic-state-LPACxnXP.js";import{E as M,I as L}from"./TopExCard-Dj0wtF6g-CdD53hxs.js";import{b as Z}from"./TimeframeSwitcher-LLgotbh8-X4qFRStD.js";import{d as _}from"./NoDataTable-CNx0KCKn-Yxxqzyz6.js";import{w as I,a as o}from"./core-3dlyNYRL.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"./ReloadCard-Bt8qxAUx-C0FiLSzB.js";import"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";const j="141px",O=i.sp4,N="123px",Q=l(T)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
width: ${i.sp3};
|
|
4
4
|
height: ${i.sp3};
|
|
@@ -26,8 +26,8 @@ import{e as j,Q as S,V as t,bz as A,F as u,aL as b,b1 as B,C as H,o as i,y as E,
|
|
|
26
26
|
justify-content: flex-end;
|
|
27
27
|
`,J=l($)`
|
|
28
28
|
user-select: none;
|
|
29
|
-
width: ${
|
|
30
|
-
min-width: ${
|
|
29
|
+
width: ${j};
|
|
30
|
+
min-width: ${j};
|
|
31
31
|
text-align: right;
|
|
32
32
|
margin-left: ${O};
|
|
33
33
|
`,K=l.div`
|
|
@@ -84,7 +84,7 @@ import{e as j,Q as S,V as t,bz as A,F as u,aL as b,b1 as B,C as H,o as i,y as E,
|
|
|
84
84
|
`,ce=l($)`
|
|
85
85
|
color: ${V.alert};
|
|
86
86
|
margin: ${i.sp3} ${i.sp0} ${i.sp5} ${i.sp0};
|
|
87
|
-
`;function de(){switch(
|
|
87
|
+
`;function de(){switch(v().mode){case"light":return t.jsx(oe,{width:"100%",preserveAspectRatio:"none"});case"dark":default:return t.jsx(ne,{width:"100%",preserveAspectRatio:"none"})}}function pe({title:e}){return t.jsxs(re,{children:[e!=null?t.jsx(ce,{children:e}):null,t.jsx(ae,{children:t.jsx(se,{children:t.jsx(de,{})})})]})}const f={wrapperPadding:new E(c[3],c[3],c[8]),chartContainerMinHeight:new E(c[12],c[11])},he=l.div`
|
|
88
88
|
display: flex;
|
|
89
89
|
flex: 1 1 auto;
|
|
90
90
|
min-height: 100%;
|
|
@@ -129,4 +129,4 @@ import{e as j,Q as S,V as t,bz as A,F as u,aL as b,b1 as B,C as H,o as i,y as E,
|
|
|
129
129
|
margin-bottom: ${i.sp5};
|
|
130
130
|
`,$e=l.div`
|
|
131
131
|
display: flex;
|
|
132
|
-
`;function Le(e){const n=
|
|
132
|
+
`;function Le(e){const n=v(),{report:s,onTimeframeSelectionChanged:a,onAccountBalanceClick:r,onBackClick:g}=e,d=S(),w=[...D],h=M(s.topExpenses.accountsOrdered),{topExTimePeriod:m,topExpenses:C}=s,y=C.total,x=p=>{e.autoCompleteData.autoCompleteText!=null&&e.analytics?.trackSearch(H.Event.search,"Top Expenses",p.type,p.name,e.autoCompleteData.autoCompleteText),e.autoCompleteActions.onAutoCompleteEntity?.(p)};return t.jsxs(he,{children:[t.jsx(A,{source:"TopExDetailPage",title:u.getLocalizedStrings().reportTitleById.top_expenses,backgroundColor:n.colors.grey5,onBackClick:g,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:x}}}),t.jsxs(me,{windowSize:d,children:[t.jsx(ue,{children:t.jsx(xe,{children:t.jsx(Z,{timeframes:w,selectedTimeframe:m,onTimeframeSelectionChanged:p=>{a?.(p)}})})}),h?null:t.jsxs(ge,{children:[t.jsx(we,{children:b("0,0",y)}),t.jsx(Ce,{children:u.getLocalizedStrings().reports.detail.topEx.insightLabel})]}),h?t.jsx($e,{children:t.jsx(pe,{title:`${u.getLocalizedStrings().chartCard.no_data_available_for} ${u.getLocalizedStrings().timeframe[m]}`})}):t.jsx(ye,{windowSize:d,children:t.jsx(B,{style:{height:"fit-content"},children:({height:p,width:k})=>t.jsx(L,{report:s,timeframe:m,showBarHoverBackground:!1,width:k,height:p,isDetailPage:!0})})})]}),t.jsx(fe,{windowSize:d,children:h?t.jsx(_,{}):t.jsx(le,{report:s,onAccountBalanceClick:r})})]})}export{Le as default};
|