@zeniai/web-cockpit-ui 1.15.18-dev → 1.15.19-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-BrjUad4D-BobK3aVB.js → ACHDetailsPage-Bj4J02PO-C4Q2xy4-.js} +1 -1
- package/dist/assets/{AIPerformancePage-Dx1ituql-CUuKvJ8n.js → AIPerformancePage-kqP-8GTq-BJF4ETfH.js} +12 -12
- package/dist/assets/AccountInfoPage-Bl-lXVdR-BrlwC_GK.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BQxwZcii-DAnRLliM.js → AccountInfoPageContent-BfoA1Gse-C7eC0yBE.js} +10 -10
- package/dist/assets/AccountLockedInfoModal-CapmN1xL-DmXdIqXb.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-DuI7qAkr-CohDb_Vn.js → AccountReconDetailsDrawerPage-y7iV6_PQ-D_ojlIG6.js} +16 -16
- package/dist/assets/{AccountRow-D3aEGfjh-CGXQQRag.js → AccountRow-BNdGXZbT-B-w9AEY5.js} +11 -11
- package/dist/assets/{AccountsPromoCardStack-BrTIGRUz-SlTiOsFA.js → AccountsPromoCardStack-BxQc3Ksg-BEzuSdPZ.js} +35 -35
- package/dist/assets/AddAddressForCardDrawer-DAcT8-PD-oJwne3Gy.js +6 -0
- package/dist/assets/{AddToWalletPage-DWMdtsY0-CgmcM53j.js → AddToWalletPage-CY-2tfXj-D4kgZ0ls.js} +18 -18
- package/dist/assets/{AgingReportsPage-CeFWs8X1-rGaFbgkD.js → AgingReportsPage-DG-IzhqU-D5iQytZw.js} +4 -4
- package/dist/assets/{AllUserItems-PN_oWzOC-Cfg4W7I4.js → AllUserItems-BLdx0SLb-D35470or.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-CQtY9j4b-xFY56tWP.js → ApAgingDetailPage-UhXmkAke-DuPdvgym.js} +5 -5
- package/dist/assets/{AppBasePage-D0S7OYzO-CJcI9UYp.js → AppBasePage-BdqHkxAE-ClgCYonW.js} +11 -11
- package/dist/assets/{AppDrawerContent-TIRPcJoE-BOUb6qnD.js → AppDrawerContent-DLLABFVO-Z7eIU8wQ.js} +7 -7
- package/dist/assets/{ApprovalRulesSettingsPage-CosIHJ5R-BB8nW0VM.js → ApprovalRulesSettingsPage-2Xy362hA-lw7cG823.js} +3 -3
- package/dist/assets/{ArAgingChart-CiNirxU7-C_J23wNp.js → ArAgingChart-DUyxm4oV-BDzCa7w_.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CKBOlCcF-B9yZn5Tp.js → ArAgingDetailPage-BtKh2Y7T-Befa7jSt.js} +4 -4
- package/dist/assets/{AttachmentView-MqDuu6PB-C1zlk39q.js → AttachmentView-gjYAbjdi-CLgD0hYn.js} +2 -2
- package/dist/assets/{BankAccountSection-DXFRyqzV-Bg8zqqhX.js → BankAccountSection-DQcfhQLN-Cf4CJKge.js} +3 -3
- package/dist/assets/{BankAccountWarningSection-DJhHTBuh-D20FRc-x.js → BankAccountWarningSection-XMpgCYBF-BD-ZRFYQ.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-CQe2upIp-Cv47vnoF.js → BankConnectionsSettingsPage-Bi5QjRHp-DZsjWuDY.js} +33 -33
- package/dist/assets/{BillDetailPage-B0ajOYxz-CTy3XK0i.js → BillDetailPage-CgEXd2T5-D3RRlJ_U.js} +9 -9
- package/dist/assets/{BillPayApprovalRuleDetailPage-BcWQYqjU-CZdskYSr.js → BillPayApprovalRuleDetailPage-CPKMjF0R-DkefuNtD.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-mS00kg1n-C05g3Cpf.js → BillPayApprovalRulesPage-CFJpmXE7-BS2SEmMd.js} +9 -9
- package/dist/assets/{BillPayPromoPage-tUxWWqMY-t6w7JDnT.js → BillPayPromoPage-nRHevclA-CJKWVsld.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-w47HuYkp-CbWSaNcn.js → BillPaySetUpPage-ynmgaK8Y-CjnJEFzj.js} +2 -2
- package/dist/assets/{BillingSettingsPage-Bsm7ZzIW-BChNCOOo.js → BillingSettingsPage-BNEvt1HK-BaSsXKiI.js} +6 -6
- package/dist/assets/{BillsBulkReviewDrawerPage-DdI0OCuE-DjrQvH-7.js → BillsBulkReviewDrawerPage-D6tbE3BQ-DocKjVGy.js} +1 -1
- package/dist/assets/BoxItem-BdgRTwgI-DiOTWl08.js +53 -0
- package/dist/assets/{BusinessVerificationPage-p1cUyL8l-DeaLZxZn.js → BusinessVerificationPage-CU38xCol-B4S_9jHP.js} +10 -10
- package/dist/assets/{CardNumberSubText-yVfOUJpr-DRIDUYcf.js → CardNumberSubText-g2_GoH9f-aD70vkbB.js} +7 -7
- package/dist/assets/{CashbackDetailPage-DAX8aTFq-CX_nfeg0.js → CashbackDetailPage-SvujpPEs-C8gXhM7B.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-CTdVu2LX-CXvKoTcM.js → ChargeCardDetailPage-oaVwvFKq-qgCXX26B.js} +35 -35
- package/dist/assets/{ChargeCardListPage-BTf2sf_r-BIeWCtwJ.js → ChargeCardListPage-CGyxQ8Dx-B1x8tEOp.js} +19 -19
- package/dist/assets/{ChargeCardListTable-DEYusOGZ-BR9KGK-S.js → ChargeCardListTable-DKQnkAJ7-CbA18PS4.js} +30 -30
- package/dist/assets/{ChargeCardPaymentHistoryPage-BhIiSigy-CmcVMykk.js → ChargeCardPaymentHistoryPage-JxdV2F32-B8QxqdNq.js} +17 -17
- package/dist/assets/{ChargeCardPromoPage-SMg6Bkmx-BIBCjTA5.js → ChargeCardPromoPage-BM7oOdWh-cLjTbA-r.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-8jA-EjWA-SUTAHgR8.js → ChargeCardSetupPage-DqjFBKb_-D2isSGQZ.js} +4 -4
- package/dist/assets/{ChargeCardStatementsPage-CrsqrTNw-cq-ohGFk.js → ChargeCardStatementsPage-DKicQRml-DNQKyuH-.js} +4 -4
- package/dist/assets/{CheckDepositDrawerPage-BnMEa1gU-D4KA1YbO.js → CheckDepositDrawerPage-BoMMC-PD-BbZFeQ0t.js} +12 -12
- package/dist/assets/{CollapsableReportTable-BQsDuqwg-D4PksJ7s.js → CollapsableReportTable-CvAF66CY-D2P5-EVV.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CxeWrQJH-XfC5iWX1.js → CompanyOfficerDetailsSection-ClnGjHwL-DjLuACPy.js} +7 -7
- package/dist/assets/{CompanyPassportCard-DUX32IvW-wDP-ayWY.js → CompanyPassportCard-De1ZqCMC-Co6Yn6Qv.js} +5 -5
- package/dist/assets/{CompanyPassportPage-Cp0oulai-BQFU8qYi.js → CompanyPassportPage-6281ivzv-B30kYLVx.js} +24 -24
- package/dist/assets/{CompleteProfile-BdeEu2dc-DABogw0l.js → CompleteProfile-C4YhvWhe-CIB56NG8.js} +2 -2
- package/dist/assets/ConfettiBurst-CR98FGfH-3rXf1OLF.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-Cr0pUg_S.js → ConstrainedInnerElement-BeIpAPjB-JviWwDyz.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-iFE1nb0J-tpGth2AK.js → CreateOrEditVendorPage-Dfq0ydKc-fAmE7u3u.js} +6 -6
- package/dist/assets/{CreditCardPaymentDrawerPage-CaTanv1T-DKlglNsr.js → CreditCardPaymentDrawerPage-D8Rs6j9F-CECIifL2.js} +6 -6
- package/dist/assets/{CurrencySelectField-BNcLy0zv-DUL30Rmr.js → CurrencySelectField-dqih82Wa-Bf5oGIgX.js} +2 -2
- package/dist/assets/{CustomerOnboardingActivationPage-D_0kSaYs-DmoaOtfG.js → CustomerOnboardingActivationPage-CPhBnk1y-CsEDDRZo.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-Dn7vOa-2-acu82bx-.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B1jJ1XJX-Ec31gEaK.js → CustomerOnboardingDetailPageSkeleton-D92o0cYb-f4j90fLJ.js} +4 -4
- package/dist/assets/{CustomerOnboardingNoStepsPage-CyxHQxxQ-B3uyPHi-.js → CustomerOnboardingNoStepsPage-D-TyXZjQ-1BbkgoBb.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-Cj_k0rfN-dr4fZ7As.js → CustomerOnboardingPage-D8s20fEH-Drh1St8-.js} +10 -10
- package/dist/assets/{CustomerOnboardingProductSuitePage-BPRN6xyM-BLvLQxxG.js → CustomerOnboardingProductSuitePage-B7v5nYAw--BKM9prl.js} +4 -4
- package/dist/assets/{Dashboard-DYpE_H2b-WMqZzzuP.js → Dashboard-DLhx6D0s-A89AzrUL.js} +1 -1
- package/dist/assets/{DashboardReportPage-BB6dW8kR-BVA8DQgX.js → DashboardReportPage-G-hbFFVd-duPSFRfE.js} +9 -9
- package/dist/assets/{DashboardSidebarBackgroundAnimation-DDLCSC57-BJ_WASPh.js → DashboardSidebarBackgroundAnimation-Dhb4iV2T-BYJc1IM0.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CxXM_Pse-aMnsSeAe.js → DepositAccTransactionItem-6BPvYynA-D1Ju63qU.js} +2 -2
- package/dist/assets/DepositAccTransactionListPage-CYqVm1Rm-FhuWm2tm.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-CswDexXc-CwmUyTco.js → DomesticWireDetailsPage-BOza2O-8-CYD7ppA5.js} +1 -1
- package/dist/assets/{DownloadOverlay-Ck84lTok-DoSlSguE.js → DownloadOverlay-cbNihDeI-BS6u10ct.js} +1 -1
- package/dist/assets/{DrawerPage-Ctqr9Qke-DbWbSJy7.js → DrawerPage-DhT58SBb-DaHEF-EV.js} +3 -3
- package/dist/assets/EditPeoplePage-BLNgVf-0-U2va95MO.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-DHIg51AQ-Du0u5yPi.js → EditReimbursementDetailPage-DmApxq-q-CyDk02YT.js} +61 -61
- package/dist/assets/{EntityDetailPage-BsCWH1Al-WFaE0WQF.js → EntityDetailPage-CvgcTamk-C6e8nDgM.js} +4 -4
- package/dist/assets/{EntitySummarySection-ntuao-VM-fobvDD6S.js → EntitySummarySection-C82U-rtJ-DmZyL6x2.js} +6 -6
- package/dist/assets/{ExpenseAutomationOverviewPage-lptxncga-rbFk8U51.js → ExpenseAutomationOverviewPage-Bgibjb2E-BaSAz2Y9.js} +10 -10
- package/dist/assets/{ExpenseAutomationPage-S1iaOuA5-DRC_L2v_.js → ExpenseAutomationPage-Be5-Yt8w-Cjj2nOen.js} +36 -36
- package/dist/assets/{ExpressPayPage-3UaLqRo7-BW2LLrbf.js → ExpressPayPage--mCSxEVH-BFs72UEO.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-CLHp1LHp-eKI7eeEH.js → FeaturePreviewPage-CFVDZyby-CGtGECgw.js} +2 -2
- package/dist/assets/{FollowStepsSection-BY0dw_SN-iqWfg0Bg.js → FollowStepsSection-CVWuuidV-DUG37jOA.js} +18 -18
- package/dist/assets/{GlobalReviewListPage-CltHFSzG-CQET8EIq.js → GlobalReviewListPage-vkNEl7d8-CiHg5TZf.js} +14 -14
- package/dist/assets/{InformationCardStack-CVoS_Bni-DRMXWlfL.js → InformationCardStack-LF_aKhhL-CKp0o9nn.js} +5 -5
- package/dist/assets/{InsightsCardStack-YcKupOZZ-BYS9QdSX.js → InsightsCardStack-BIcK-jeU-C5tLvdIq.js} +13 -13
- package/dist/assets/{InsightsSection-BuCEgcAh-DX4KP6Gi.js → InsightsSection-CIpbIEbv-CFt4IQKX.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-r_VwvwxS-D2fIzpgb.js → IntegrationsSettingsPage-CjP_3pkI-CnkkLjlB.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-B2x6g-rb-BG86r2Q_.js → InternationalWireSwiftDetailsPage--xhtyYY7-D4zcriQW.js} +7 -7
- package/dist/assets/{InternationalWireVerificationPage-B-sxkGbq-BzbYdtzf.js → InternationalWireVerificationPage-BpvZr-WI-jxE-vB-G.js} +7 -7
- package/dist/assets/{InviteFormPage-CrFWGpJE-DomTNTMP.js → InviteFormPage-9NFX-MhQ-BgZ7muUE.js} +9 -9
- package/dist/assets/{InvitePageListView-BsGwCg5B-DlrJVwFE.js → InvitePageListView-B-cAYAEj-DdX2Vf2f.js} +40 -40
- package/dist/assets/{InvitePeoplePage-D0-MjKb2-B1ShEIts.js → InvitePeoplePage-_lENDcHE-Cs4JWgnf.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-BUF7Ko_U-1xPxHQJp.js → InvoiceUploadSection-Md8EHqPI-B2FbeYFD.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-D5sn5jt4-BWcpzIYT.js → IssueChargeCardPage-DlBHg90l-CkIYZG8g.js} +14 -14
- package/dist/assets/{LabeledAddressValue-Ds1BeyG_-FoXd8L7U.js → LabeledAddressValue-BRVf6Gy8-DR_hCdER.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D_Ztmm7--tsnB0bq1.js → LabeledAddressValueField-Dm962nbv-CJctT64I.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-DGV1Bz6o-CCbHpDl4.js → LabeledControlledCheckBoxField-AuHfNy1--CYnnof78.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CTmUlcyk-Dx11AHn5.js → LabeledCreatableSingleSelectField-CZzPQt4P-q5eFoS7_.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BwHjf12U-ti56UUdB.js → LabeledDocumentField-Cj3wNN-j-DRfRBZq3.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BaAHosJI-CDWZK3Xu.js → LabeledDropDownFormattedTextField-DKi8UjgP-vgVqFIrz.js} +2 -2
- package/dist/assets/{LabeledText-CVYTNBOt-LIAQJcbl.js → LabeledText-C-8itgDI-CUp_0u3s.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CnK0wLL0-CdsEapB3.js → LabeledUserSingleSelectWithSubtitlesField-CyEiLq7_-CyR9dVw4.js} +5 -5
- package/dist/assets/{LabeledZeniRolesDropDownField-B2eu9WQ_-CXTTkytl.js → LabeledZeniRolesDropDownField-CoQcMW_--ClLOgm0I.js} +8 -8
- package/dist/assets/{LinkJETransactionPage-DTU4Piv4-CzTizu8e.js → LinkJETransactionPage-aTmlEn-Z-x31yl_Si.js} +10 -10
- package/dist/assets/{LockCardPage-9rnmj-hG-Dgtzvq-m.js → LockCardPage-nJeB0vKv-D0hlcn6G.js} +45 -45
- package/dist/assets/{LowBalancePopup-CCl7fzh9-CRJeCFG3.js → LowBalancePopup-aFCQSDc_-C6y1E7C0.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-CkEC7bfy-BTcHRx9h.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DXqRDZvA-Cof2FQM6.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CegOSNsV-D9w4qClx.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-RxCflvAg-z_sXnPco.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-ClWFjqQr-B7_1AUkD.js → MagicLinkTitleSection-CYaOQsiQ-Bmr50Dux.js} +3 -3
- package/dist/assets/MailingDetailsSection-KUvjhmZC-BH5Oyyjr.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-BC47a22v-9PSEA4Wu.js → MyBankConnectionsSettingsPage-SlfAD_ec-Cxn1_qTK.js} +7 -7
- package/dist/assets/{MyPendingActivationChargeCardListPage-BJ_kQQGd-lBfLcXgn.js → MyPendingActivationChargeCardListPage-BShzFR0m-CvOtafM-.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-C70z69ea-CMxdjCdW.js → MyProfileSettingsPage-CzGU1Gx7-Dqk_FQO0.js} +11 -11
- package/dist/assets/{NavBarWithPicker-CRQ9DzK7-Cs0J7mYU.js → NavBarWithPicker-NJ3tm2MI-oOlPyLbT.js} +4 -4
- package/dist/assets/{NavigationArrow-CWRgkV1y-5nUqXc-t.js → NavigationArrow-B145tYV_-C_6ukSuK.js} +1 -1
- package/dist/assets/{NavigationDots-BDKBgUe6-CeOovYs1.js → NavigationDots-DaOFOsFA-BBWJs6hX.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-B_mViG5F-TkGICDRh.js → NewGlobalMerchantPage-YTsNL6iu-Bz6Acdaw.js} +33 -33
- package/dist/assets/{NoDataChart-CJyaj_wD-Ceo15OJ6.js → NoDataChart-C7YUwwui-iNU45UoG.js} +2 -2
- package/dist/assets/NoDataTable-DolCx6QR-C89fB2OT.js +8 -0
- package/dist/assets/{NotFoundPage-B-CdwYLM-04zajBZ5.js → NotFoundPage-BBnisozE-ZTo3UmTG.js} +7 -7
- package/dist/assets/{NotificationSettingsPage-DrMp-0h0-CNJC7C_o.js → NotificationSettingsPage-DPg3FvvD-Bucvci8R.js} +21 -21
- package/dist/assets/{NotificationsListConfig-Cl713fZg-qRofkxh7.js → NotificationsListConfig-BkOX8iIv-DgCgfDhw.js} +1 -1
- package/dist/assets/{NotificationsPage-Dh4xulau-_5iAw31w.js → NotificationsPage-BUhLO_r9-37VbqnuY.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BslfnDh3-53j8zSVl.js → OpExByVendorPage-CHY5zg69-DBOqA9P_.js} +20 -20
- package/dist/assets/OverlayContainerPage-D4QU0p4o-Bn1glMo5.js +11 -0
- package/dist/assets/{PandLWithForecastPage-BYnaGvO3-Bs93z5El.js → PandLWithForecastPage-CeQr3WjJ-CzbnzXa-.js} +3 -3
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CR6xX1bB-BwbAQyjl.js → PaymentAccountSetupBillingAddressSection-B6xSczs6-BKvI8Xkx.js} +1 -1
- package/dist/assets/{PeoplePage-BRC7-Yol-C9rira3P.js → PeoplePage-fCF4vkUp-ufAU-1hs.js} +25 -25
- package/dist/assets/{Preview-BY6UeCTa.js → Preview-hLK8QRw8.js} +1 -1
- package/dist/assets/{ProductsCarousel-BgltUKwq-Dj-tP9zJ.js → ProductsCarousel-rA-O8_7D-CY5GfBBq.js} +6 -6
- package/dist/assets/{PromoBaseCards-DMleWayu-BFTkh-l1.js → PromoBaseCards-C37GX90J-DqWlf7fN.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-BSKkJDPD-CJILPjk5.js → QBOConnectionDialog-Dwog9AYZ-O8uWq45M.js} +4 -4
- package/dist/assets/{QBOSetupSection-YQ4TKOTA-B5TQNN0G.js → QBOSetupSection-uV3w7rHW-MEAdwA6a.js} +4 -4
- package/dist/assets/ReimbursementApprovalRuleDetailPage-CPZfTMx--hGh26AYS.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-DQDbyY1K-B5lF3vkz.js → ReimbursementApprovalRulesPage-IGpmh9zA-Bx94q0Ic.js} +4 -4
- package/dist/assets/{ReimbursementDetailPage-gAg8C98b-DuQNQ-y5.js → ReimbursementDetailPage-CnzK17M4-DQC0uxdE.js} +3 -3
- package/dist/assets/{ReimbursementPromoPage-DtKtr2rP-C8cL3Mv7.js → ReimbursementPromoPage-DSfL54Md-1ZVBlDma.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-BdUoR2HM-CIGHv-6r.js → ReimbursementSetUpPage-BoTn3JKw-CBdNL9HT.js} +8 -8
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BL6oI4fi-DUFvxQjQ.js → ReimbursementsBulkReviewDrawerPage-DBc7LS-n-Iqxb_53N.js} +1 -1
- package/dist/assets/{ReloadCard-B3OtOvVI-DVK4TeBa.js → ReloadCard-B5rmmfva-TUZ-Tkd2.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-Cmv2xs7h-CJ6mu-Rp.js → ReportTableViewSelector-0OEScWmm-Hga5bKqy.js} +29 -29
- package/dist/assets/{ReportsPage-SWC6uIs--DupC08g-.js → ReportsPage-BTkakKPX-BSzPNOYj.js} +6 -6
- package/dist/assets/{RevenueChart-CZlAswBG-DPlV94YS.js → RevenueChart-Ba8ZLje8-Drb014Fl.js} +15 -15
- package/dist/assets/{ReviewDetailsPage-BW3pZ3ws-BH9zDrcw.js → ReviewDetailsPage-BQDrm2yR-Bz5FazaS.js} +17 -17
- package/dist/assets/{ReviewOverlay-BhFwGG6t-C0m5jD2s.js → ReviewOverlay-8tBBKn9R-BZESXqSp.js} +5 -5
- package/dist/assets/RoleWithToolTip-YZusZfiJ-BELittL3.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CdmehDsJ-Dd48HqBm.js → ScheduleDetailsFixedAssetsPage-BN9hFnGC-I8BvJlgl.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-DA1eGkzI-a0yDswoo.js → ScheduleDetailsPage-DAr4tXe_-BZZ4Y69I.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BvGIwZmi-Br-m9rdL.js → ScheduleSequenceTable-DUfu-c6e-DBFpgT6F.js} +12 -12
- package/dist/assets/{ScreenRoutes-D3PxnqOE.js → ScreenRoutes-RdWdKKFl.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DM4CvIFN-CPQ8K94t.js → SetUpAccountSection-DqW4vmsx-CO06aLnp.js} +6 -6
- package/dist/assets/{SignIn-DU3HuwJr-CXMwOpi4.js → SignIn-CCqNj3tG-DRDC5Yhl.js} +17 -17
- package/dist/assets/{SignInScreen-PoBHP4-4.js → SignInScreen-BI4txts-.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-VR4dPKBw-DHyDM03E.js → SpendManagementListViewPage-s4dPd5hE-IanF8B1T.js} +11 -11
- package/dist/assets/{SpendManagementPerTabPage-CdYRrtcC-DFgavPhh.js → SpendManagementPerTabPage-NWc7uqw6-_rcGYzjd.js} +45 -45
- package/dist/assets/{SpendManagementSection-C2Uw6UXF-BRw2L3H1.js → SpendManagementSection-eYrLZK1E-KjAWYeIa.js} +17 -17
- package/dist/assets/StatementItem-CKK9vnC7-CB-e2CLd.js +31 -0
- package/dist/assets/StatementsPage-C0wI_tRw-BDtidNq4.js +58 -0
- package/dist/assets/{StatusSwitcher-RY35Qzlp-DPptYPVp.js → StatusSwitcher-DFluM61E-D9icc7U1.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CIhSt1_V-BGyVDCoP.js → SubTabSwitcher-Cin8x7wg-Dcdm2qpz.js} +1 -1
- package/dist/assets/{SummaryCard-iIQISRZL-Cx0NyzVM.js → SummaryCard-Bcw6fQTD-Do950Kyf.js} +1 -1
- package/dist/assets/{TaskManagementPage-CCC1QlZS-BHBkMyad.js → TaskManagementPage-B9qW2lvP-CVsVNeeW.js} +9 -9
- package/dist/assets/{TimeRangeSwitcher-BIA3BW1g-Bty5Ch9x.js → TimeRangeSwitcher-u57rzf78-Bgi2Q6bp.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BhV0yrj0-CbCl4A9y.js → TimeframeSwitcher-ClE4GOKf-CCgDF2y1.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CIAZXHb2-orP1uTMH.js → TimeframeSwitcherWithToggle-COre57iX-BQBghhwC.js} +2 -2
- package/dist/assets/{TopExCard-CPsxq74q-662cwF8z.js → TopExCard-DF3x7jLh-CRuE7H2y.js} +6 -6
- package/dist/assets/{TopExDetailPage-BGoq66Fs-0PJ8BVQb.js → TopExDetailPage-DmFsRNbY-CAPDLdK7.js} +5 -5
- package/dist/assets/{TransactionActivityLogPage-BW-qVpWu-D-8WEz2X.js → TransactionActivityLogPage-BJWKx4q0-BUpcnLzX.js} +3 -3
- package/dist/assets/{TransactionDetailPage-D0tW8GIH-C00b9e62.js → TransactionDetailPage-mtNlJQ2B-IRA0HZOa.js} +26 -26
- package/dist/assets/{TransactionList-T8gAOJc0-Dw9G55NV.js → TransactionList-CLb6vsAw-BNfVqp8k.js} +12 -12
- package/dist/assets/{TransactionListBig-CMjxUKt2-BhSVq9fm.js → TransactionListBig-BzBXZp6s-UPK6nK0b.js} +7 -7
- package/dist/assets/TransactionListPage-DoQrIKK0-cdAGgkOJ.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-Ca7bgryb-CmVBYko3.js → TransactionVendorDetailPage-D-wSEk3k-Bp7ZO9K6.js} +3 -3
- package/dist/assets/{TransferDrawerPage-DG6q94Ch-Cqord4XL.js → TransferDrawerPage-j8FDHpig-DvRwMkL8.js} +29 -29
- package/dist/assets/{TreasuryOverviewPage-YNlUL3px-B_35sSeA.js → TreasuryOverviewPage-2U807bhy-BY8VUFc9.js} +24 -24
- package/dist/assets/{TreasuryPromoPage-CBSYXvme-DpMWnl6i.js → TreasuryPromoPage-BYXuV9oH-vUIAQ6f4.js} +13 -13
- package/dist/assets/TreasuryStatementsPage-CeaExx3z-DsMw65vI.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-Bln01PPe-DpJfleJK.js → TreasuryTaxLetterPage-BrBEeHG1-u74MPbjQ.js} +2 -2
- package/dist/assets/{TrendChart-DjKmnpsm-CS6VXx1C.js → TrendChart-D0GWCIs5-BdQ26pcI.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D2CSrQJG-DdbpQrSL.js → TrendWithTransactions-DcCilwfx-_37SmAif.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-BhgJFJvY-Cs1YOJIy.js → UncategorizedAccountsMappingPage-D5oo8UHa-k_11pvpn.js} +13 -13
- package/dist/assets/{UnitIntegrationPage-CtNIGtOS-DZq9w7mC.js → UnitIntegrationPage-BQp7NQLB-CdKp5-34.js} +6 -6
- package/dist/assets/{UploadAdditionalDocumentOverlay-D44jXTDW-DwZWfezE.js → UploadAdditionalDocumentOverlay-DvAwuTYB-DJVdyOgq.js} +1 -1
- package/dist/assets/Vendor2FAPopup-BVuTJ4jh-Dmi8LqgF.js +1 -0
- package/dist/assets/VendorACHDetailsPage-DkXoubZC-RuWRXgBi.js +1 -0
- package/dist/assets/{VendorDetailPage-DRr5ci0V-Du2p3ojh.js → VendorDetailPage-BNr0Z5jN-B5vvqHLt.js} +23 -23
- package/dist/assets/VendorDomesticWireDetailsPage-CaaOskIa-DGRBzFDy.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-C6mptSEx-B_hdSwqB.js → VendorFiling1099EditablePage-D2_NM9OH-Cg7w3eGu.js} +38 -38
- package/dist/assets/{VendorFirstReviewPage-CLBTSreq-DCVG1u2-.js → VendorFirstReviewPage-DxhhgmEm-DydY5H1-.js} +17 -17
- package/dist/assets/{VendorInternationalWireDetailsPage-oMdWj41X-CmZF5xAN.js → VendorInternationalWireDetailsPage-CUIOT8vU-afAyjr3K.js} +9 -9
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dq9K171L-CWe5L2D4.js +1 -0
- package/dist/assets/{VendorsAccountsSection-Cr_m8Jyi-CiH59Azu.js → VendorsAccountsSection-eef70mQn-_RCZqtQz.js} +1 -1
- package/dist/assets/{VerifyDevice-DrXK_7gG-CEX4QcR9.js → VerifyDevice-CMvsjley-rC4gKQeJ.js} +12 -12
- package/dist/assets/{VideoPlayer-BZe4PqnR-CX1XPKSp.js → VideoPlayer-DKSZUXeK-H0wCm76T.js} +2 -2
- package/dist/assets/{VideoPopup-BaEQAfak-DFKT4R55.js → VideoPopup-BG0G1trN-J1tFoUPS.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-COJ1hjAD-BEWCjyIu.js → WarningsDrawerPage-g_KTQdH7-Br6CzJQ0.js} +8 -8
- package/dist/assets/{ZeniAccountDetailPage-Chx3JWsc-DUW0nJwl.js → ZeniAccountDetailPage-LkheAcW_-BBvGkAZe.js} +18 -18
- package/dist/assets/{ZeniAccountListViewPage-6RhsoQzy-B1q4otvI.js → ZeniAccountListViewPage-DVQHT8ma-B9oJhIl0.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-10K_Qgxx-DnALebZP.js → ZeniAccountNavBarPieces-_Xr6q9sA-BmDV-yHS.js} +4 -4
- package/dist/assets/{ZeniAccountPromoPage-ClXA4h8f-BJADOlI6.js → ZeniAccountPromoPage-C3LR6klI-gvX4BiZe.js} +8 -8
- package/dist/assets/{ZeniAccountSetupPage-7YlBF0nq-BMd9Jfil.js → ZeniAccountSetupPage-BtWnNkH7-Bw5ifbpG.js} +2 -2
- package/dist/assets/{ZeniCopyright-k2F7p5Nn-CWJt4f_H.js → ZeniCopyright-D36dbFYs-DbL5X4NH.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CJY_ei3T-BQBKQlY-.js → ZeniTransferAmountSlider-BYbDaVKJ-CzP9xAeJ.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CNvnwL2z.js → add-to-wallet-DgdBD8_G-CjuRM598.js} +1 -1
- package/dist/assets/{analytics-rms9goNI.js → analytics-DH0nG_g5.js} +1 -1
- package/dist/assets/analyticsHelper-B_RV_zIh.js +1 -0
- package/dist/assets/{analyticsHelper-e2zBYls0-DsW-gRIg.js → analyticsHelper-C4PZ1Adh-DNHzQdSq.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DpZb0ICZ.js → arrow-south-east-round-PEovUgvH-ezr-NUEt.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CBISKKCi.js → auto-transfer-rule-mbafm5D3-DCTaBPDp.js} +1 -1
- package/dist/assets/{chartTypes-D0t0a86R-VgxTrMCK.js → chartTypes-Bf1-edD8-CV1yysKw.js} +1 -1
- package/dist/assets/{commonDimensions-BwCds81U-kEodPKRG.js → commonDimensions-B60Qkfnz-DxGoTy6S.js} +1 -1
- package/dist/assets/{constants-C3kp1fkP.js → constants-HPf8XA_c.js} +1 -1
- package/dist/assets/{core-B_30foAD.js → core-yiE_iOc0.js} +1 -1
- package/dist/assets/{dash.all.min-3-z_MPR8.js → dash.all.min-ZaNNnJRa.js} +1 -1
- package/dist/assets/{detailCommon-CFEglqRw-DcI3Dm8c.js → detailCommon-B4aI_98A-CEMaqjeK.js} +6 -6
- package/dist/assets/{downloadPdf-BfjQscZh-CeCugFTI.js → downloadPdf-DVqVkV_p-CELECDCw.js} +1 -1
- package/dist/assets/{empty-DyZfcN1I.js → empty-BOna3nXl.js} +1 -1
- package/dist/assets/{empty-BB-5X2tp.js → empty-Be-7ZZNG.js} +1 -1
- package/dist/assets/{epic-CXeU0a14.js → epic-CGLWHopS.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-tVleHIYS.js → gift-box-Cmt9OgIZ-yO9QG4ws.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CYR0rF_u.js → graphic-no-data-l-DU4J8fDt-08AJBbmd.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DI-E_991.js → graphic-no-data-net-burn-l-CzmycA0m-BCEcNSIc.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DRFlkqA2.js → handshake-BPg58FML-CS6zI2jd.js} +1 -1
- package/dist/assets/{index-BCh0qUkM.js → index-B05X8Jld.js} +1 -1
- package/dist/assets/{index-BoyomC_-.js → index-BQKUEYMa.js} +1 -1
- package/dist/assets/{index-DVfmIUIY.js → index-DADoWRMM.js} +1 -1
- package/dist/assets/{index-BhfvNbOl.js → index-DEPZWJ5u.js} +1 -1
- package/dist/assets/{index-4xstgUx1.js → index-JQjyoaIW.js} +1 -1
- package/dist/assets/{index-DgHTMbc3.js → index-V6G13z1s.js} +1 -1
- package/dist/assets/{index-BR9aIv1A.js → index-o0j-GZyM.js} +1919 -1951
- package/dist/assets/{lexical-CcL2Fd1i.js → lexical-DlAOaxF0.js} +1 -1
- package/dist/assets/{liveblocks-B8f0lmpe.js → liveblocks-BZyZbty1.js} +1 -1
- package/dist/assets/{lottie-CbICbNKh.js → lottie-HBX4-MpS.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DuPcSiT5-DY73v-Wq.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D84rlDgo-CA3ifSFr.js → mapSectionWithAcOnlyToTreeNode-BZsGUDKa-4VCnAicV.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-br_rslOm-BB79AXDK.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-9dsEoKql-CTAmJm8r.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BpOPNyk--FPICGthL.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BMNyeJt9-CIYXC4NE.js +1 -0
- package/dist/assets/{mui-C7Q1opAD.js → mui-CAW43Z2L.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DfEuZBUZ.js → page-detail-CWX5S47F-Ga1rCJlu.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-Udxivyx_.js → panelSelectedMixin-CzfD5-Zs-C9yV2YE9.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-VWYNvRzB.js → radio-default-CiSgisfh-W2nwrqQ5.js} +1 -1
- package/dist/assets/{react-C5VDu1Xe.js → react-BURuhNYe.js} +1 -1
- package/dist/assets/{react-D-QPbFx5.js → react-BeHv7oF0.js} +1 -1
- package/dist/assets/{react-OE6vDDlS.js → react-C5kAuTha.js} +1 -1
- package/dist/assets/{react-CEhgfqKO.js → react-CkHAqWHd.js} +2 -2
- package/dist/assets/{react-B1skuV78.js → react-Cy_jHEin.js} +1 -1
- package/dist/assets/{react-DODYMrDc.js → react-D70Dpky3.js} +1 -1
- package/dist/assets/{react-zf2AM5gr.js → react-DFbroRVg.js} +1 -1
- package/dist/assets/{react-gaSEjZmU.js → react-QfjvWill.js} +1 -1
- package/dist/assets/{recharts-v_b66Qfi.js → recharts-Duslqfio.js} +1 -1
- package/dist/assets/{sentry-BwoJfpTa.js → sentry-DmQUfSE7.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DlZ9ml05.js → shield-DOlUxcFf-BSj8Drkk.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DOquK-Sn-1uwfHDc8.js +1 -0
- package/dist/assets/{toChartData-BVSCRQYT-CU2W4nbR.js → toChartData-CcG8i49E-invCvTu2.js} +1 -1
- package/dist/assets/{uploadAttachment-D3ybtHtR-D84dG_-j.js → uploadAttachment-B-y1--ww-BcIqRgDj.js} +19 -19
- package/dist/assets/{uploadReceipts-Dge0cNF1-C6WyXewN.js → uploadReceipts-Dge0cNF1-Df2fHyc-.js} +1 -1
- package/dist/assets/{url-o9j2r9Zq.js → url-R21EGndt.js} +1 -1
- package/dist/assets/{url-BcaeVwpg.js → url-hGfZCfig.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-CM12epgA.js → useLongPress-GCK2COYQ-DR25cb_3.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-Cyu4xp0r.js → usp-line-BBd1wKwW-D5-lu6m5.js} +1 -1
- package/dist/assets/{utils-C75CTJHa.js → utils-C-XuhdQM.js} +1 -1
- package/dist/assets/{zeni-epic-state-Deo9yJpd.js → zeni-epic-state-C4Tt6Qhq.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-BGcQ2kEJ-awOqo-nC.js +0 -18
- package/dist/assets/AccountLockedInfoModal-Q_WY8V5e-CDYJtJV8.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-D12dN-9m-CqdZIDlk.js +0 -6
- package/dist/assets/BoxItem-BGrgQ_sW-cYQcyKu_.js +0 -53
- package/dist/assets/ConfettiBurst-C1IgWBaA-CL1o9dY6.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-YZ4WpsDD-CT9Ps13n.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-flz5jtjj-Tj1qKkuc.js +0 -66
- package/dist/assets/EditPeoplePage-BiGeDyr0-BP5iQ9eS.js +0 -55
- package/dist/assets/MagicLinkACHDetailsPage-B5oowluv-pi_Q89s3.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BohAWQ_F-BBgkEcbM.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CRx-EIj--rUZQXW3V.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-q5XLFFKd-IcgduK3D.js +0 -31
- package/dist/assets/MailingDetailsSection-Dle_aLif-C9MEuFNg.js +0 -21
- package/dist/assets/NoDataTable-BroHHbsa-C2KBPOR3.js +0 -8
- package/dist/assets/OverlayContainerPage-D4QU0p4o-CW30kf30.js +0 -11
- package/dist/assets/ReimbursementApprovalRuleDetailPage-BFxCrrVt-CFZDA3-E.js +0 -32
- package/dist/assets/RoleWithToolTip-D74SWfZd-B2mOCrt1.js +0 -22
- package/dist/assets/StatementItem-CS0N92J0-BsnAviIB.js +0 -31
- package/dist/assets/StatementsPage-DL8W4WLu-BH9E8ATR.js +0 -58
- package/dist/assets/TransactionListPage-Bx6qszUl-B-5CDbC_.js +0 -35
- package/dist/assets/TreasuryStatementsPage-D0YaCwv3-PNzj_mHV.js +0 -58
- package/dist/assets/Vendor2FAPopup-BogFaSYy-BlnTHqfY.js +0 -1
- package/dist/assets/VendorACHDetailsPage-Di9QJ0hA-BNrZk8u_.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-DCdG-eGI-IQvY9pai.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CM2bFEbE-B7IN2oYH.js +0 -1
- package/dist/assets/analyticsHelper-DTNFmelW.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-D-j3xrlE-C3TmZv3p.js +0 -1
- package/dist/assets/mapSpacerToTreeNode--_h7d27O-sxGNKTOK.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BqoG_HF--CRhmAO8j.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DPb6o33r-DFBVfNq3.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-CTBKyUYq.js +0 -1
- package/dist/assets/toCOABalancesWithID-mNZ5ym9S-BQfS02g5.js +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import{J as B,
|
|
1
|
+
import{J as B,g as D,V as o,cn as H,o as r,aP as N,T as te,h1 as ue,u as R,r as he,b as oe,bH as re,F as S,y as ne,h2 as ge,c3 as me,h3 as ye,d0 as le,bI as T,ba as fe,ai as ae,h4 as xe,bG as se,aw as be,h5 as Ce,h6 as we,al as V,b9 as ve,h7 as $e,ay as Se,h8 as je,p as ke,cZ as Oe,bO as Le,g0 as Ie,h9 as Ee,c as W,C as _e,g1 as Te,aT as Fe}from"./index-o0j-GZyM.js";import{a}from"./sentry-DmQUfSE7.js";import{n as l,k as Ae}from"./mui-CAW43Z2L.js";import{FS as Me,FT as Re,FP as Be,FQ as De,FR as ze,FO as Pe}from"./zeni-epic-state-C4Tt6Qhq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e82bd3c8-54a1-4385-a4cf-625d6ca0d578",e._sentryDebugIdIdentifier="sentry-dbid-e82bd3c8-54a1-4385-a4cf-625d6ca0d578")}catch{}})();const He=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
5
|
-
`,Ne=l(
|
|
5
|
+
`,Ne=l(se)`
|
|
6
6
|
color: ${e=>e.theme.colors.primary};
|
|
7
7
|
width: ${r.sp3};
|
|
8
8
|
height: ${r.sp3};
|
|
9
|
-
`,U=({value:e,defaultMenuIsOpen:t=!1,options:n,placeHolder:
|
|
9
|
+
`,U=({value:e,defaultMenuIsOpen:t=!1,options:n,placeHolder:s,onChange:p,getOptionLabel:c})=>{const f=D(),y=a.useRef(null),g=Ue(f),w=n.find(m=>m.value===e);return a.useEffect(()=>{const m=setTimeout(()=>{y.current!=null&&t&&y.current.focus()},300);return()=>{clearTimeout(m)}},[t]),o.jsx(re,{ref:y,isMulti:!1,value:w,onChange:m=>{p(m)},placeholder:s,options:n,styles:g,openMenuOnFocus:!0,components:{Option:m=>We(m,c),SingleValue:m=>Ve(m,c)}})},Ve=(e,t)=>{const n=t?.(e.data.value)??e.data.label;return o.jsx(T.SingleValue,{...e,children:o.jsx(fe,{children:n})})},We=(e,t)=>{const{isSelected:n}=e,s=t?.(e.data.value)??e.data.label;return o.jsx(T.Option,{...e,children:o.jsxs(He,{children:[o.jsx(ae,{children:s}),n?o.jsx(Ne,{}):null]})})},Ue=e=>({placeholder:t=>({...t,color:e.colors.grey1,...oe.standardRegular.cssObject}),input:t=>({...t,color:e.colors.primary,margin:0,padding:0}),control:t=>({...t,backgroundColor:e.colors.background,border:"none",boxShadow:"none",height:r.sp6,cursor:"pointer"}),valueContainer:t=>({...t,height:"100%",padding:`${r.sp2} ${r.sp3}`}),indicatorSeparator:t=>({...t,display:"none"}),indicatorsContainer:t=>({...t,display:"none"}),option:(t,n)=>({...t,padding:`${r.sp2} ${r.sp3}`,cursor:"pointer",color:n.isSelected||n.isFocused?e.colors.primary:e.colors.hero,background:n.isSelected||n.isFocused?e.colors.background:e.colors.grey5,":hover":{color:e.colors.primary,backgroundColor:e.colors.background}}),singleValue:t=>({...t,color:e.colors.primary,margin:0}),menuList:t=>({...t,backgroundColor:e.colors.grey5,maxHeight:"320px"}),menu:t=>({...t,boxShadow:`${r.sp0} 2px ${r.sp2} ${e.colors.dropShadowHover}`})}),G="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.8999%205.04416L9.65575%2017.6653C9.48897%2017.8247%209.29152%2017.9484%209.07541%2018.0291C8.85929%2018.1097%208.62902%2018.1456%208.39862%2018.1345C8.17133%2018.1236%207.94853%2018.0673%207.7434%2017.9689C7.53827%2017.8704%207.35499%2017.7318%207.20439%2017.5612L1.17558%2010.7125'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ge=l.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: flex-start;
|
|
12
12
|
padding: ${r.sp2} ${r.sp3};
|
|
13
13
|
column-gap: ${r.sp2};
|
|
14
|
-
`,
|
|
14
|
+
`,Je=l.div`
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
column-gap: ${r.sp2};
|
|
18
18
|
width: 100%;
|
|
19
19
|
min-height: ${r.sp4};
|
|
20
|
-
`,
|
|
20
|
+
`,Ye=l.div`
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
column-gap: ${r.sp1};
|
|
24
|
-
`,
|
|
24
|
+
`,Qe=l.div`
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
column-gap: ${r.sp2};
|
|
28
28
|
word-break: break-all;
|
|
29
|
-
`,
|
|
29
|
+
`,Ze=l.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
column-gap: ${r.sp3};
|
|
33
33
|
justify-content: space-between;
|
|
34
|
-
`,
|
|
34
|
+
`,J=l.img`
|
|
35
35
|
height: ${r.sp3};
|
|
36
36
|
width: ${r.sp3};
|
|
37
37
|
border-radius: 50%;
|
|
@@ -41,7 +41,7 @@ import{J as B,e as D,V as o,cn as H,o as r,aP as N,T as te,h1 as ue,u as R,r as
|
|
|
41
41
|
color: ${e=>e.theme.colors.hero};
|
|
42
42
|
height: ${r.sp4};
|
|
43
43
|
width: ${r.sp4};
|
|
44
|
-
`,Ke=l(
|
|
44
|
+
`,Ke=l(se)`
|
|
45
45
|
color: ${e=>e.theme.colors.primary};
|
|
46
46
|
height: ${r.sp3};
|
|
47
47
|
min-width: ${r.sp3};
|
|
@@ -49,20 +49,20 @@ import{J as B,e as D,V as o,cn as H,o as r,aP as N,T as te,h1 as ue,u as R,r as
|
|
|
49
49
|
color: ${e=>e.theme.colors.primary};
|
|
50
50
|
height: 10px;
|
|
51
51
|
width: 10px;
|
|
52
|
-
`,et=l(
|
|
52
|
+
`,et=l(Fe)`
|
|
53
53
|
overflow: hidden;
|
|
54
54
|
text-overflow: ellipsis;
|
|
55
|
-
`,tt=({options:e,value:t,placeHolder:n,filterCategoryType:
|
|
55
|
+
`,tt=({options:e,value:t,placeHolder:n,filterCategoryType:s,searchAutoCompleteData:p,searchAutoCompleteActions:c,onChange:f,renderOptionIcon:y})=>{const g=D(),w=Ee(g),[m,E]=a.useState(e);a.useEffect(()=>{s==="searchAutocomplete"&&p?.entityAutoCompleteView.fetchState==="Completed"&&E(u=>$e([...u,...p?.entityAutoCompleteView!=null?ot(p?.entityAutoCompleteView):[]],"value"))},[p?.entityAutoCompleteView.fetchState]);const j=s==="searchAutocomplete"?t.map(u=>({label:u,value:u})):t.map(u=>m.find($=>$.value===u)),v=a.useRef(Se(u=>c?.onAutoCompleteInputChange?.(u),500,{trailing:!0})).current,k=p?.entityAutoCompleteView.fetchState,L={options:e,filterCategoryType:s,searchAutoCompleteStatus:k,renderOptionIcon:y},I=S.getLocalizedStrings().common.filters;return o.jsx(Ge,{children:s==="dateRange"?o.jsx(je,{onDateRangeChange:u=>{f([{label:I.startDate,value:u.startDate??""},{label:I.endDate,value:u.endDate??""}])},selectedDates:t}):o.jsxs(Je,{children:[j.length===0&&s==="user"&&o.jsx(qe,{}),o.jsx(re,{...L,isMulti:!0,hideSelectedOptions:!1,value:j,onInputChange:u=>{s==="searchAutocomplete"&&v(u)},onChange:u=>{f(u)},placeholder:n,options:m,styles:w,menuPosition:"fixed",components:{Option:nt,MultiValueLabel:rt,MultiValueRemove:lt},filterOption:(u,$)=>st(u,$,s),noOptionsMessage:()=>at(s,k)})]})})},ot=e=>(e?.vendor.map(t=>({label:t.name,value:t.name}))??[]).sort((t,n)=>(t.label??"").localeCompare(n.label??"")),rt=e=>{const{selectProps:t}=e,{options:n,filterCategoryType:s,renderOptionIcon:p}=t,c=n.findIndex(f=>f.value===e.data.value);return o.jsx(T.MultiValueLabel,{...e,children:o.jsxs(Ye,{children:[ie(e.data,c,s,p),o.jsx(et,{children:e.children})]})})},nt=e=>{const{onMouseMove:t,onMouseOver:n,isSelected:s,...p}=e.innerProps,{options:c,filterCategoryType:f,renderOptionIcon:y}=e.selectProps,g=c.findIndex(m=>m.value===e.data.value),w={...e,innerProps:p};return o.jsx(T.Option,{...w,children:o.jsxs(Ze,{children:[o.jsxs(Qe,{children:[ie(e.data,g,f,y),o.jsx(ae,{children:e.label})]}),e.isSelected&&o.jsx(Ke,{})]})})},lt=e=>o.jsx(T.MultiValueRemove,{...e,children:o.jsx(Xe,{})}),at=(e,t)=>{const n=S.getLocalizedStrings().common.filters;if(e==="searchAutocomplete"){if(t==="In-Progress")return o.jsx(te,{size:"Small-Compact",start:!0});if(t==="Not-Started")return null;if(t==="Completed")return o.jsx(W,{children:n.noMatchesFound})}return o.jsx(W,{children:n.noOptions})},ie=(e,t,n,s)=>{if(n==="dropdown")return(s!=null?s(e):null)??(e.photo!=null?o.jsx(J,{src:e.photo.href,alt:"",onError:({currentTarget:g})=>{g.onerror=null,g.src=G},loading:"lazy"}):null);if(n!=="user")return null;const p=(e.label??"").split(" "),c=p[0]??"",f=p[1]??"";return e.photo==null?o.jsx(Te,{firstName:c,lastName:f,size:`${r.sp3}`,index:t,fontSize:"9px"}):o.jsx(J,{src:e.photo.href,alt:S.getLocalizedStrings().common.filters.userProfileAltText,onError:({currentTarget:y})=>{y.onerror=null,y.src=G},loading:"lazy"})},st=(e,t,n)=>n==="user"&&e.data.email!=null?e.data.label.toLowerCase().includes(t.toLowerCase())||e.data.email.toLowerCase().includes(t.toLowerCase()):e.data.label.toLowerCase().includes(t.toLowerCase()),F={categoryCombinationOperator:"AND",categories:[]},ce={valuesCombinationOperator:"ANY",values:[],matchingOperator:"equal"},A=(e,t)=>{switch(e){case"bill_pay":return Pe;case"reimbursement":return ze(t)?Be:De;case"task_management":return Re;case"charge_card_payment_history":return Me}},M=(e,t)=>{if(e==="bill_pay"){const n=t;return S.getLocalizedStrings().spendManagement.filters.filterCategories.bills[n]}if(e==="reimbursement"){const n=t;return S.getLocalizedStrings().spendManagement.filters.filterCategories.reimbursements[n]}if(e==="task_management"){const n=t;return S.getLocalizedStrings().spendManagement.filters.filterCategories.taskManagement[n]}if(e==="charge_card_payment_history"){const n=t;return S.getLocalizedStrings().spendManagement.filters.filterCategories.chargeCardPaymentHistory[n]}return""},it=({currentFilters:e,selectedOption:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?{categoryCombinationOperator:"AND",categories:[{...ce,field:t.value}]}:{...e,categories:e.categories.map((s,p)=>p!==n?s:{...s,field:t.value,values:[]})},ct=({currentFilters:e,selectedOption:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?e:{...e,categories:e.categories.map((s,p)=>p!==n?s:{...s,matchingOperator:t.value})},dt=({currentFilters:e,selectedOptions:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?e:{...e,categories:e.categories.map((s,p)=>p!==n?s:{...s,values:t.map(c=>c.value)})},pt={width:new ne(215,315)},Y=l.div`
|
|
56
56
|
display: flex;
|
|
57
57
|
flex-direction: column;
|
|
58
58
|
row-gap: ${r.sp4};
|
|
59
|
-
`,
|
|
59
|
+
`,Q=l.div`
|
|
60
60
|
display: flex;
|
|
61
61
|
column-gap: ${r.sp3};
|
|
62
62
|
align-items: flex-start;
|
|
63
63
|
flex-wrap: ${e=>e.windowSize==="small"?"wrap":"nowrap"};
|
|
64
64
|
row-gap: ${e=>e.windowSize==="small"?r.sp3:r.sp0};
|
|
65
|
-
`,
|
|
65
|
+
`,Z=l.div`
|
|
66
66
|
width: 90px;
|
|
67
67
|
color: ${e=>e.theme.colors.primary};
|
|
68
68
|
`,q=l.div`
|
|
@@ -139,7 +139,7 @@ import{J as B,e as D,V as o,cn as H,o as r,aP as N,T as te,h1 as ue,u as R,r as
|
|
|
139
139
|
align-items: flex-start;
|
|
140
140
|
column-gap: ${r.sp3};
|
|
141
141
|
animation: ${Ct} 0.4s;
|
|
142
|
-
`,de=
|
|
142
|
+
`,de=a.forwardRef(({filters:e,filterValues:t,selectedEntity:n,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:p,onFiltersChange:c,renderDropdownOptionIcon:f},y)=>{const g=be(),w=B(),m=a.useCallback((d,h)=>{const C=it({currentFilters:e,selectedOption:d,categoryIndex:h});c(C)},[e,c]),E=a.useCallback((d,h)=>{const C=ct({currentFilters:e,selectedOption:d,categoryIndex:h});c(C)},[e,c]),j=a.useCallback(d=>{if(e!=null){const h={...e,categoryCombinationOperator:d};c(h)}},[e,c]),v=a.useCallback(d=>{if(d===0&&e.categories!=null&&e.categories.length===1){c(F);return}if(e.categories!=null&&e.categories.length!==0){if([...e.categories.slice(0,d),...e.categories.slice(d+1)].filter(h=>h.field!=null).length){const h={...e,categories:[...e.categories.slice(0,d),...e.categories.slice(d+1)]};c(h);return}c(F)}},[c,e]),k=()=>{e.categories!=null&&e.categories.length&&c({...e,categories:[...e.categories,{...ce}]})},L=()=>{c(F)},I=a.useCallback((d,h)=>{const C=dt({currentFilters:e,selectedOptions:d,categoryIndex:h});c(C)},[e,c]),u=S.getLocalizedStrings().spendManagement.filters,$=()=>e.categories!=null&&e.categories.length!==0?o.jsxs(mt,{children:[o.jsxs(K,{onClick:k,children:[o.jsx(ut,{}),o.jsx(V,{children:u.addFilterBtnText})]}),o.jsxs(K,{onClick:L,children:[o.jsx(ht,{}),o.jsx(V,{children:u.clearAllBtnText})]})]}):null,b=()=>e.categories==null||e.categories.length===0?o.jsx(Y,{children:o.jsx(Q,{children:o.jsxs(ee,{children:[o.jsx(Z,{children:o.jsx(X,{children:u.filterByLabel})}),o.jsx(q,{children:o.jsx(U,{defaultMenuIsOpen:!0,onChange:m,placeHolder:u.categoryPlaceholder,getOptionLabel:d=>M(n,d),options:A(n,g.loggedInUserRole)})})]})})}):o.jsx(a.Fragment,{children:e.categories.map((d,h)=>{const C=A(n,g.loggedInUserRole??[]).find(i=>i.value===d.field),x=C?.type,_=C!=null?M(n,C?.value):"";return o.jsxs(Q,{windowSize:w,children:[o.jsxs(ee,{children:[o.jsxs(Z,{children:[h===0&&o.jsx(X,{children:u.filterByLabel}),h!==0?o.jsx(Ce,{categoryCombinationOperator:e.categoryCombinationOperator,onChange:j,buttonsDisabled:h>1}):null]}),o.jsx(q,{children:o.jsx(U,{value:d.field,placeHolder:u.categoryPlaceholder,onChange:i=>m(i,h),getOptionLabel:i=>M(n,i),options:A(n,g.loggedInUserRole??[])})})]}),d.field?o.jsxs(wt,{children:[o.jsx(gt,{children:o.jsx(we,{categoryIndex:h,value:d.matchingOperator,onChange:E})}),o.jsxs(xt,{children:[o.jsx(bt,{windowSize:w,children:o.jsx(tt,{options:t[d.field]!=null?t[d.field]:[],placeHolder:x==="searchAutocomplete"?u.searchPlaceholder:`${u.select} ${_}`,value:d.values,filterCategoryType:x??"dropdown",onChange:i=>I(i,h),valuesCombinationOperator:d.valuesCombinationOperator,searchAutoCompleteData:s,searchAutoCompleteActions:p,renderOptionIcon:f})}),o.jsx(yt,{onClick:()=>v(h),windowSize:w,children:o.jsx(ft,{})})]})]}):null]},d.field?d.field+h:h)})});return o.jsxs(Y,{ref:y,children:[b(),$()]})});de.displayName="FiltersSelection";const vt=l.div`
|
|
143
143
|
padding-top: ${r.sp4};
|
|
144
144
|
padding-bottom: ${r.sp4};
|
|
145
145
|
box-sizing: border-box;
|
|
@@ -157,7 +157,7 @@ import{J as B,e as D,V as o,cn as H,o as r,aP as N,T as te,h1 as ue,u as R,r as
|
|
|
157
157
|
`,St=l.div`
|
|
158
158
|
padding-left: ${r.sp4};
|
|
159
159
|
padding-right: ${r.sp4};
|
|
160
|
-
`,jt=({entity:e,filters:t,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:
|
|
160
|
+
`,jt=({entity:e,filters:t,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:s,disableFilters:p=!1,transactionsLoaded:c=!0,createdByUserListLoaded:f=!0,analytics:y,groupByFiltersComponent:g,onFiltersChange:w,getCategoryWiseOptions:m,renderDropdownOptionIcon:E})=>{const j=a.useRef(null),[v,k]=a.useState(!1),L=a.useRef(!1),[I,u]=a.useState({bill_pay:{},reimbursement:{},task_management:{},charge_card_payment_history:{}}),[$,b]=a.useState("auto"),d=a.useRef(null),h=B(),C=a.useCallback(()=>{k(!1)},[]),x=S.getLocalizedStrings().common.strings.empty,_=a.useCallback(()=>{e!=="task_management"&&e!=="charge_card_payment_history"&&y?.trackSpendManagmentFilterClick(e),p===!1&&k(!0)},[p,y,e]);a.useEffect(()=>{m&&f&&c&&u(O=>Object.keys(O[e]??{}).length===0?{...O,[e]:m()}:O)},[e,c,f]);const i=a.useCallback(()=>{if(t?.categories==null||t.categories.length===0)return g!=null?88+g.height:88;const O=d.current,P=O!=null?O.clientHeight:0;return h==="small"?"auto":R[7]+(P>0?P:88)+(g!=null?g.height:0)},[t,h,g]);a.useEffect(()=>{if(v!==L.current){b("auto");return}b(i())},[i,v]),a.useEffect(()=>{L.current=v},[v]),a.useEffect(()=>{$==="auto"&&b(i())},[$,i]);const pe=()=>o.jsx(xe,{anchorEl:j.current,open:v,onClose:C,paperStyle:{overflow:"visible"},children:o.jsxs(vt,{height:$,windowSize:h,children:[g!=null?o.jsx($t,{children:g?.component}):null,o.jsx(St,{children:o.jsx(de,{filters:t,onFiltersChange:w,filterValues:I[e],selectedEntity:e,ref:d,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:n,renderDropdownOptionIcon:E})})]})},t?.categories==null||t.categories.length===0?"smallBox":"largeBox"),z=t?.categories==null||t?.categories.length===0?0:t.categories.filter(O=>O.field!=null&&O.values.length>0).length;return o.jsxs(a.Fragment,{children:[o.jsx(ge,{searchPlaceholder:x,isFilterBtnActive:v||z>0,ref:j,isFilterDisabled:p,onFilterButtonClick:_,filtersCount:z,includeSearch:!1,filterText:x}),p!=!0&&pe()]})},kt=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M18.8447 9.03137L22.4962 11.5418V21.127C22.4962 21.4902 22.3519 21.8385 22.0951 22.0953C21.8383 22.3521 21.4901 22.4963 21.1269 22.4963H2.86932C2.50615 22.4963 2.15786 22.3521 1.90106 22.0953C1.64427 21.8385 1.5 21.4902 1.5 21.127V11.5418L5.15151 9.03137",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M4.24207 19.7577L8.80646 16.1062H15.1966L19.761 19.7577",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M22.5 11.5416L17.0227 15.1931",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M1.50378 11.5416L6.98105 15.1931",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M18.8446 13.9754V2.41288C18.8446 2.17077 18.7484 1.93857 18.5772 1.76738C18.406 1.59618 18.1738 1.5 17.9317 1.5H6.06431C5.8222 1.5 5.59 1.59618 5.4188 1.76738C5.24761 1.93857 5.15143 2.17077 5.15143 2.41288V13.9754",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.23108 5.55005H14.7654",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.23108 8.83069H13.3818",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.23108 12.0398H10.9606",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{spendManagement:Ot}=S.getLocalizedStrings(),Lt={filterIconContainerPaddingRight:new ne(18,10)};function Wt({spendManagementSectionProps:e}){const{entity:t,moreIconContainerStyle:n,searchTextBoxStyle:s,disableDownloadButton:p,filters:c,searchText:f,downloadParams:y,downloadState:g,showSettingsIcon:w=!0,showSettingsIconOnNavbar:m,showDownloadButtonOnNavbar:E,showStatementButtonOnNavbar:j,showPayEarlyButtonOnNavbar:v,showPaymentHistoryButtonOnNavbar:k,groupByFiltersComponent:L,updateDownloadStateHandler:I,onMenuOpen:u,filterIconContainerStyle:$}=e,b=B(),d=D(),[h,C]=a.useState(void 0);a.useEffect(()=>{g!=="Error"&&C(!1)},[g]);let x=Ot.moreMenuOptions;m||(x=x.filter(i=>i.value!=="settings")),j||(x=x.filter(i=>i.value!=="statements")),v||(x=x.filter(i=>i.value!=="payEarly")),k||(x=x.filter(i=>i.value!=="paymentHistory")),E||(x=x.filter(i=>i.value!=="download"));const _={};return e.entity==="charge_cards"?_.width="275px":e.entity==="reimbursement"&&(_.width="208px"),o.jsxs(Ft,{children:[o.jsxs(Tt,{isSearchOpen:e.isSearchOpen&&b==="small",windowsize:b,children:[b!=="small"&&!e.hideSearchBtn?o.jsx(H,{"data-testid":N("list-page-search-input-box"),style:{position:"absolute",left:"unset",...s},placeholder:e.searchPlaceHolder,searchText:e.searchText,disabled:e.disableSearch,onSearchTextChanged:i=>{e.onSearchTextChanged?.(i)},onSearchOpen:e.onSearchOpen,inputWrapperStyle:_,searchIconMarginRight:e.entity==="charge_cards"?r.sp4:"10px"}):null,(e.entity==="bill_pay"||e.entity==="reimbursement"||e.entity==="task_management"||e.entity==="charge_card_payment_history")&&e.onFiltersChange!=null?o.jsx(Rt,{size:b,style:$,children:o.jsx(jt,{entity:e.entity,groupByFiltersComponent:L,onFiltersChange:e.onFiltersChange,filters:e.filters,disableFilters:e.disableFilters,getCategoryWiseOptions:e.getFilterOptions,vendorSearchAutoCompleteData:e.vendorSearchAutoCompleteData,vendorSearchAutoCompleteActions:e.vendorSearchAutoCompleteActions,createdByUserListLoaded:e.createdByUserListLoaded,analytics:e.analytics,renderDropdownOptionIcon:e.renderDropdownOptionIcon})}):null,e.showDownloadIcon===!0&&e.onDownloadClick!=null?o.jsx(_t,{onClick:e.onDownloadClick,disabled:p,children:g==="In-Progress"?o.jsx(te,{size:"Standard",start:!0}):o.jsx(Et,{"data-testid":N("spend-management-download-icon"),disabled:p})}):null,e.showEntityEmailInfoIconOnNavbar===!0?o.jsx(Mt,{onClick:e.onClickEmailInfoIcon,children:o.jsx(It,{})}):null,w?o.jsx(At,{onClick:()=>C(void 0),style:n,children:t==="bill_pay"||t==="reimbursement"||t==="charge_cards"?o.jsx(ue,{entity:t,isMoreOption:!0,closeMenuOnSelect:!1,isMenuOpen:b!=="small"?h:void 0,options:x,onMenuOpen:u,customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),menu:i=>({...i,left:"23px",top:"29px",transform:"translateX(-100%)",width:"auto",backgroundColor:d.colors.grey5,borderRadius:r.sp1,boxShadow:`${r.sp0} 2px ${r.sp2} ${d.colors.dropShadowHover}`,whiteSpace:"nowrap"}),container:()=>({marginLeft:R[0]}),valueContainer:()=>({display:"flex","#react-select-2-placeholder":{marginRight:R[0],marginLeft:-1}})},onOptionSelection:i=>{i==="settings"?e.onClickSetupIcon?.():i==="statements"?e.onClickStatementsIcon?.():i==="payEarly"?e.onClickPayEarlyIcon?.():i==="paymentHistory"&&e.onClickPaymentHistoryIcon?.()},downloadProps:(t==="bill_pay"||t==="reimbursement")&&y!=null?{entity:t,isDisabled:p,filter:{filters:c,searchText:f},downloadParams:y,downloadState:g,updateDownloadStateHandler:I}:void 0}):o.jsx(Dt,{onClick:e.onClickSetupIcon})}):null,e.showNewButtonOnNavbar===!0?o.jsx(o.Fragment,{children:b==="small"?o.jsx(Bt,{onClick:e.onNewButtonClick,children:o.jsx(zt,{})}):o.jsx(he,{variant:"primary",onClick:e.onNewButtonClick,label:e.newButtonLabel??"",size:"small",style:{height:"29px",paddingLeft:"12px",paddingRight:"12px",...oe.extraSmallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"}})}):null]}),b==="small"&&!e.hideSearchBtn?o.jsx(H,{style:{position:"absolute",left:"5px",right:b!=="small"?"120px":"unset",top:r.sp6,width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,disabled:e.disableSearch,onSearchTextChanged:i=>{e.onSearchTextChanged?.(i)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0,inputWrapperStyle:e.entity==="charge_cards"?{width:270}:{}}):null]})}const It=l(kt)`
|
|
161
161
|
height: ${r.sp4};
|
|
162
162
|
width: ${r.sp4};
|
|
163
163
|
`,Et=l(me)`
|
|
@@ -176,13 +176,13 @@ import{J as B,e as D,V as o,cn as H,o as r,aP as N,T as te,h1 as ue,u as R,r as
|
|
|
176
176
|
&:hover {
|
|
177
177
|
color: ${e=>e.disabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
178
178
|
}
|
|
179
|
-
`,
|
|
179
|
+
`,Tt=l.div`
|
|
180
180
|
display: flex;
|
|
181
181
|
justify-content: flex-end;
|
|
182
182
|
position: relative;
|
|
183
183
|
align-items: center;
|
|
184
184
|
width: ${e=>e.isSearchOpen?"100%":"unset"};
|
|
185
|
-
`,
|
|
185
|
+
`,Ft=l.div`
|
|
186
186
|
display: flex;
|
|
187
187
|
flex-direction: column;
|
|
188
188
|
`,At=l.div`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import{J as $,hK as b,V as o,F as g,T as S,o as r,al as v,y as z,c3 as j,u as k}from"./index-o0j-GZyM.js";import{a as I}from"./sentry-DmQUfSE7.js";import{n as a}from"./mui-CAW43Z2L.js";import{g as T}from"./BoxItem-BdgRTwgI-DiOTWl08.js";import{w as D}from"./downloadPdf-DVqVkV_p-CELECDCw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="2a3d6561-9a49-441d-a89a-48008afe9b27",e._sentryDebugIdIdentifier="sentry-dbid-2a3d6561-9a49-441d-a89a-48008afe9b27")}catch{}})();const l=g.getLocalizedStrings().months,d={downloadButtonSize:new z(k[4],20)},P=a.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: ${r.sp3} ${r.sp4};
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
width: 100%;
|
|
6
|
+
`,L=a.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
align-items: center;
|
|
10
|
+
width: 100%;
|
|
11
|
+
`,B=a(v)`
|
|
12
|
+
display: -webkit-box;
|
|
13
|
+
-webkit-box-orient: vertical;
|
|
14
|
+
-webkit-line-clamp: 1;
|
|
15
|
+
margin-left: ${r.sp2};
|
|
16
|
+
max-height: ${r.sp11};
|
|
17
|
+
text-overflow: ellipsis;
|
|
18
|
+
word-break: break-word;
|
|
19
|
+
text-align: left;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
`,C=a.div`
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
`,_=a(j)`
|
|
24
|
+
width: ${e=>d.downloadButtonSize.valuePx(e.windowSize)};
|
|
25
|
+
height: ${e=>d.downloadButtonSize.valuePx(e.windowSize)};
|
|
26
|
+
min-height: ${e=>d.downloadButtonSize.valuePx(e.windowSize)};
|
|
27
|
+
color: ${e=>e.theme.colors.hero};
|
|
28
|
+
&:hover {
|
|
29
|
+
color: ${e=>e.theme.colors.primary};
|
|
30
|
+
}
|
|
31
|
+
`;function R({accountLast4:e,currentTenantCompanyName:i,data:t,authParams:f,downloadEndPoint:s,documentType:n="statement",boxType:m}){const[p,w]=I.useState(!1),c=$(),u=n==="taxLetter"?`${t.title.year}`:`${l[t.title.month-1]} ${t.title.year}`,y=n==="taxLetter"?`${i}-treasury-tax-letter-${t.title.year}.pdf`:`${i}-${e}-monthly-statement-${l[t.title.month-1]}-${t.title.year}.pdf`,h={period:`${t.title.year}-${b(t.title.month)}`,format:"pdf"},x=o.jsx(P,{children:o.jsxs(L,{children:[o.jsx(B,{children:u}),o.jsx(C,{onClick:()=>D(n==="treasuryStatement"||n==="taxLetter"?`${s}/statements/${t.id}`:`${s}/statements?query=${encodeURIComponent(JSON.stringify(h))}`,y,f,w),children:p?o.jsx(S,{size:"Small",start:!0}):o.jsx(_,{windowSize:c})})]})});return o.jsx(T,{content:x,boxType:m,isDisabled:!1,isNotClickable:!0})}export{R as O};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import{g as S,J as I,V as t,bC as z,b3 as C,o as r,F as P,p,ct as D,y as E,u as b,al as T}from"./index-o0j-GZyM.js";import{a as u}from"./sentry-DmQUfSE7.js";import{n as o}from"./mui-CAW43Z2L.js";import{$ as B}from"./BoxItem-BdgRTwgI-DiOTWl08.js";import{o as L}from"./commonDimensions-B60Qkfnz-DxGoTy6S.js";import{O as M}from"./StatementItem-CKK9vnC7-CB-e2CLd.js";import"./liveblocks-BZyZbty1.js";import"./core-yiE_iOc0.js";import"./recharts-Duslqfio.js";import"./zeni-epic-state-C4Tt6Qhq.js";import"./lottie-HBX4-MpS.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.js";import"./downloadPdf-DVqVkV_p-CELECDCw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cb654d3e-c43c-4615-8b53-545988278bcd",e._sentryDebugIdIdentifier="sentry-dbid-cb654d3e-c43c-4615-8b53-545988278bcd")}catch{}})();const g=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,w={listItemMargin:new E(b[3],b[8])},oe=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:m,statementListView:i,accountLast4:x,onBackClick:y})=>{const $=S(),d=I(),k=u.createRef(),c=u.useRef(null),h=i.statements.length===0,j=()=>h===!1?L.transactionItemHeight:24,v=({index:s,style:a})=>{const l=i.statements[s];return h===!1?t.jsx(f,{windowSize:d,style:{...a,width:`calc(100% - 2*${w.listItemMargin.valuePx(d)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:x,data:l,authParams:n,downloadEndPoint:m,boxType:B(s,i.statements.length)},l.id)}):t.jsx(O,{style:{...a},children:t.jsx(_,{children:t.jsx(f,{windowSize:d,children:t.jsx(R,{children:g.noStatements})})})})};return t.jsxs(N,{children:[t.jsx(z,{title:g.title,backgroundColor:$.colors.grey4,style:{zIndex:3},onBackClick:y,scrollableContent:c.current!=null?c:void 0,source:"StatementsPage"}),t.jsx(V,{children:t.jsx(C,{children:({height:s,width:a})=>t.jsx(H,{ref:k,height:s,width:a,outerRef:c,itemKey:l=>l,itemCount:i.statements.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},O=o.div``,f=o.div`
|
|
2
|
+
margin: ${e=>`${r.sp0} ${w.listItemMargin.valuePx(e.windowSize)}`};
|
|
3
|
+
&:hover {
|
|
4
|
+
position: relative;
|
|
5
|
+
z-index: 2;
|
|
6
|
+
}
|
|
7
|
+
`,_=o.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
height: 100%;
|
|
10
|
+
flex: 1 1 auto;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: flex-end;
|
|
14
|
+
`,N=o.div`
|
|
15
|
+
display: flex;
|
|
16
|
+
height: 100%;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
width: 100%;
|
|
19
|
+
padding-bottom: ${r.sp7};
|
|
20
|
+
`,R=o(T)`
|
|
21
|
+
display: flex;
|
|
22
|
+
color: ${e=>e.theme.colors.grey2};
|
|
23
|
+
`,V=o.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
margin-top: ${r.sp6};
|
|
29
|
+
`,H=o(D)`
|
|
30
|
+
scrollbar-width: thin;
|
|
31
|
+
scrollbar-color: transparent transparent;
|
|
32
|
+
&::-webkit-scrollbar {
|
|
33
|
+
width: ${r.sp2};
|
|
34
|
+
height: ${r.sp0};
|
|
35
|
+
background-color: transparent;
|
|
36
|
+
}
|
|
37
|
+
&::-webkit-scrollbar-track {
|
|
38
|
+
box-shadow: inset 0 0 2px ${p.scrollbarBoxShadow};
|
|
39
|
+
-webkit-box-shadow: inset 0 0 2px ${p.scrollbarBoxShadow};
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
}
|
|
42
|
+
&::-webkit-scrollbar-thumb {
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:hover {
|
|
47
|
+
scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
|
|
48
|
+
&::-webkit-scrollbar {
|
|
49
|
+
width: ${r.sp2};
|
|
50
|
+
height: ${r.sp0};
|
|
51
|
+
background-color: transparent;
|
|
52
|
+
}
|
|
53
|
+
&::-webkit-scrollbar-thumb {
|
|
54
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
55
|
+
border-radius: 2px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`;export{oe as default};
|
package/dist/assets/{StatusSwitcher-RY35Qzlp-DPptYPVp.js → StatusSwitcher-DFluM61E-D9icc7U1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as $,cd as T,V as d,F as v,y as h,o as s,u as c,ai as _}from"./index-
|
|
1
|
+
import{J as $,cd as T,V as d,F as v,y as h,o as s,u as c,ai as _}from"./index-o0j-GZyM.js";import{n as u,c as m}from"./mui-CAW43Z2L.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4d968819-3bc5-41e3-ac00-e5eda3b27ff7",e._sentryDebugIdIdentifier="sentry-dbid-4d968819-3bc5-41e3-ac00-e5eda3b27ff7")}catch{}})();function g(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(" ").filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}const z=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function A(e,t){if(typeof e=="string")return e;if(e!=null&&typeof e=="object"){const r=Object.values(e)[0];return typeof r=="string"?r:g(t)}return g(t)}function p(e,t,r){const n=e[t];return n!=null?A(n,r):null}const L=(e,t)=>{const{spendManagement:{billPay:{billsByTabs:{tabsById:r}},reimbursement:{reimbursementByTabs:{tabsById:n}},zeniAccounts:{zeniAccountList:{tabsById:l}}}}=v.getLocalizedStrings(),a=String(e);if(t)switch(t){case"bill_pay":{const i=p(r,a,a);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"reimbursement":{const i=p(n,a,a);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"zeni_accounts":{const i=p(l,a,a);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}}return(p(r,a,a)??p(n,a,a)??p(l,a,a)??g(a)).replace(/\s+/g,"_").toLowerCase()},{spendManagement:{billPay:{billsByTabs:{tabsById:y}},reimbursement:{reimbursementByTabs:{tabsById:x}},zeniAccounts:{zeniAccountList:{tabsById:D}}}}=v.getLocalizedStrings(),w={containerMarginLeft:new h(c[4],c[8]),containerMarginRight:new h(c[4],c[8]),segmentContainerMarginLeft:new h(c[4],c[8])},M=u.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{SubTabSwitcher-CIhSt1_V-BGyVDCoP.js → SubTabSwitcher-Cin8x7wg-Dcdm2qpz.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as i,T as u,o as s,ai as g,aZ as b}from"./index-
|
|
1
|
+
import{V as i,T as u,o as s,ai as g,aZ as b}from"./index-o0j-GZyM.js";import{n as r,c}from"./mui-CAW43Z2L.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1b74941f-801d-4e05-b555-3ee48994915c",e._sentryDebugIdIdentifier="sentry-dbid-1b74941f-801d-4e05-b555-3ee48994915c")}catch{}})();function C({allTabs:e,selectedTab:n,containerStyle:o,rightComponent:l,onTabChange:p}){const h=l!=null;return i.jsxs(f,{style:o,hasRightComponent:h,children:[i.jsx(y,{children:e.map(t=>{const a=t.id===n,d=t.isDisabled!=null;return i.jsxs($,{onClick:()=>{a===!1&&!d&&p(t)},isSelected:a,isDisabled:d,children:[i.jsx(m,{children:t.label}),t.countDetails?.count!=null?i.jsx(D,{children:i.jsx(x,{isCircular:t.countDetails.count==null||t.countDetails.count<10,children:i.jsx(w,{children:t.countDetails.isFetching?i.jsx(u,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):t.countDetails.count})})}):null]},t.id)})}),l]})}const f=r.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 n}from"./index-
|
|
1
|
+
import{V as n}from"./index-o0j-GZyM.js";import{E as r,T as t}from"./ReloadCard-B5rmmfva-TUZ-Tkd2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="48627ae3-a209-4812-9899-6571bd663083",e._sentryDebugIdIdentifier="sentry-dbid-48627ae3-a209-4812-9899-6571bd663083")}catch{}})();const s=e=>{function d(){return e.card.fetchState==="In-Progress"||e.card.fetchState==="Not-Started"?n.jsx(r,{dimension:e.card.dimension,animated:!e.card.disableAnimations}):e.card.fetchState==="Error"?n.jsx(t,{dimension:e.card.dimension,cardType:e.card.cardType,cardIndex:e.card.cardIndex,onReloadData:e.actions.onReloadData}):n.jsx("div",{children:e.children})}return n.jsx("div",{children:d()})};export{s as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as gt,
|
|
1
|
+
import{aw as gt,g as Xe,V as t,jv as q,bC as kt,aa as _,cp as xt,al as K,aq as wt,F as se,o as s,jw as Ye,ci as Ie,cm as ft,g6 as Ct,b9 as Tt,bO as Ze,aT as $t,cd as jt,J as ie,a9 as yt,y as Je,cF as vt,ac as bt,b3 as St,ct as Gt,iS as Lt,iT as It,jx as Me,aR as Nt,r as De,bT as Ne,eN as Qe,jy as Et,d0 as et,jz as ce,jA as ke,jB as xe,jC as tt,jD as Dt,jE as st,jF as ot,jG as nt,jH as at,jI as rt,jJ as V,u as ge,jK as ae,ai as re,jL as Mt,jM as Bt,C as zt,an as Rt,jN as At,db as Ft,jO as Ot,cS as it,er as Wt,b as Pt,jP as Ht,jQ as _t,g7 as Ut,gy as Vt,jR as Kt,jS as Z,jT as Be,cv as qt,jU as Xt,jV as Yt,jW as Zt,jX as ze,p as Re,gv as Jt,am as Qt}from"./index-o0j-GZyM.js";import{a as n}from"./sentry-DmQUfSE7.js";import{n as o,c as we}from"./mui-CAW43Z2L.js";import{Ga as es,Gb as Ae,cd as lt,ce as dt,cf as ts}from"./zeni-epic-state-C4Tt6Qhq.js";import{J as ss,t as os}from"./SpendManagementSection-eYrLZK1E-KjAWYeIa.js";import{A as ns,t as as,a as rs,E as is}from"./NotificationsListConfig-BkOX8iIv-DgCgfDhw.js";import{a as ls}from"./SpendManagementListViewPage-s4dPd5hE-IanF8B1T.js";import"./liveblocks-BZyZbty1.js";import"./core-yiE_iOc0.js";import"./recharts-Duslqfio.js";import"./lottie-HBX4-MpS.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.js";import"./StatusSwitcher-DFluM61E-D9icc7U1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="8eec639f-62e8-4585-b8b1-bec54ad5c115",e._sentryDebugIdIdentifier="sentry-dbid-8eec639f-62e8-4585-b8b1-bec54ad5c115")}catch{}})();const ds=100,cs=100,ps=3,us=.7,hs=({scrollContainerRef:e,isEnabled:d=!0,edgeThreshold:r=ds,scrollSpeed:h=cs,minScrollAmount:m=ps,scrollCurveExponent:u=us})=>{n.useEffect(()=>{if(!d||typeof window>"u"||typeof document>"u")return;let a=!1,p=0,i=null;const c=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},b=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},E=x=>b(x),D=x=>{const S=Math.max(x,0)/c,j=Math.pow(S,u)*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=p;if(j<c&&j>0){const L=c-j,g=D(L);k(x,g,"up")}else if(j>S-c){const L=j-(S-c),g=D(L);k(x,g,"down")}i=requestAnimationFrame(w)},M=x=>{E(x)?a=!0:(a=!1,C())},B=()=>{a=!1,C()},z=x=>{a&&(p=x.clientY)},$=x=>{z(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",M),document.addEventListener("dragend",B),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",M),document.removeEventListener("dragend",B),document.removeEventListener("dragover",$),C()}},[r,d,m,e,u,h])},be=se.getLocalizedStrings(),ct=({count:e})=>t.jsx(ms,{isCircular:e<10,children:t.jsx(gs,{children:e>be.common.numbers.maximumCount?`${be.common.numbers.maximumCount}${be.common.strings.plus}`:e})}),ms=o.div`
|
|
2
2
|
${e=>e.isCircular?we`
|
|
3
3
|
height: 18px;
|
|
4
4
|
width: 18px;
|
|
@@ -44,7 +44,7 @@ import{aw as gt,e as Ye,V as t,jv as q,bC as kt,aa as _,cp as xt,al as K,aq as w
|
|
|
44
44
|
`,Ts=o(Ze)`
|
|
45
45
|
width: ${s.sp3};
|
|
46
46
|
height: ${s.sp3};
|
|
47
|
-
`,$s=se.getLocalizedStrings().taskManagement.taskList.footer;function js({taskGroupsList:e,anchorEl:d,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:u}){const a=()=>{u(),h()};return t.jsx(
|
|
47
|
+
`,$s=se.getLocalizedStrings().taskManagement.taskList.footer;function js({taskGroupsList:e,anchorEl:d,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:u}){const a=()=>{u(),h()};return t.jsx(Ye,{open:!!d,anchorEl:d,onClose:u,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(ys,{children:[t.jsx(vs,{children:e.map(p=>{const i=()=>{u(),m(p.id)};return t.jsx(Oe,{onClick:i,children:t.jsx(re,{children:p.groupName})},p.id)})}),t.jsx(_,{controller:r==="groupName",children:t.jsxs(Oe,{onClick:a,children:[t.jsx(bs,{}),t.jsx(re,{children:$s.createGroup})]})})]})})}const ys=o.div`
|
|
48
48
|
background-color: ${e=>e.theme.colors.grey5};
|
|
49
49
|
`,Oe=o.div`
|
|
50
50
|
padding: ${s.sp2} ${s.sp3};
|
|
@@ -97,7 +97,7 @@ import{aw as gt,e as Ye,V as t,jv as q,bC as kt,aa as _,cp as xt,al as K,aq as w
|
|
|
97
97
|
`,Es=o(zt)`
|
|
98
98
|
width: ${s.sp3};
|
|
99
99
|
height: ${s.sp3};
|
|
100
|
-
`,Ds=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"})),Bs=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:Rs}=se.getLocalizedStrings(),J=zs.taskList.newTaskOptions;function As({anchorEl:e,groupByKey:d,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:u,onExpandTemplate:a,onClose:p,onNewTaskClick:i,onNewGroupClick:c,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:b,onNewTaskInitialization:E}){const D=
|
|
100
|
+
`,Ds=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"})),Bs=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:Rs}=se.getLocalizedStrings(),J=zs.taskList.newTaskOptions;function As({anchorEl:e,groupByKey:d,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:u,onExpandTemplate:a,onClose:p,onNewTaskClick:i,onNewGroupClick:c,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:b,onNewTaskInitialization:E}){const D=Xe(),[k,f]=n.useState(null),[w,M]=n.useState(null);n.useEffect(()=>{h.fetchState==="Completed"&&(M(null),f(null),p())},[h.fetchState,p]);const B=n.useCallback(($,x)=>{f(x),b($,x)},[b]),z=n.useCallback($=>{M($),C($)},[C]);return t.jsx(Ye,{open:!!e,sx:{"& .MuiPaper-root":{border:`1px solid ${D.colors.grey3}`}},anchorEl:e,onClose:p,transformOrigin:{vertical:"top",horizontal:"right"},anchorOrigin:{vertical:"bottom",horizontal:"right"},children:t.jsxs(Os,{isTaskTemplatesEnabled:m,children:[t.jsxs(Hs,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(Ws,{}),t.jsx(Ie,{children:J.task})]}),t.jsx(_,{controller:d==="groupName",children:t.jsxs(Pe,{onClick:()=>c(""),children:[t.jsx(Ps,{}),t.jsx(Ie,{children:J.group})]})})]}),m?t.jsx(Fs,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:u,handleGroupTemplateClick:z,handleGroupTemplateTaskClick:B,onNewGroupClick:c,onNewTaskInitialization:E,onExpandTemplate:a}):null]})})}const Fs=({taskGroupTemplates:e,taskIdInCreation:d,groupIdInCreation:r,expandedTemplate:h,onExpandTemplate:m,handleGroupTemplateClick:u,handleGroupTemplateTaskClick:a,onNewGroupClick:p,onNewTaskInitialization:i})=>{const[c,C]=n.useState(""),b=n.useMemo(()=>{const k=[];return e.forEach(f=>{if(f.name.toLowerCase().includes(c.toLowerCase()))k.push(f);else{const w=f.tasks.filter(M=>M.name.toLowerCase().includes(c.toLowerCase()));w.length>0&&k.push({...f,tasks:w})}}),k},[e,c]),E=n.useCallback(()=>{i(c)},[c,i]),D=n.useCallback(()=>{p(c)},[c,p]);return t.jsxs(_s,{children:[t.jsx(Us,{children:t.jsxs(Ks,{children:[t.jsxs(Vs,{children:[t.jsx(qs,{}),t.jsx(Xs,{children:J.groupTemplates})]}),t.jsx(Ss,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:c,onSearchTextChanged:C,placeholder:J.searchPlaceholder})]})}),t.jsx(_,{controller:b.length>0,children:t.jsx(Ys,{children:b.map(k=>{const f=h===k.id;return t.jsxs(ao,{children:[t.jsxs(Zs,{onClick:()=>{m(k.id)},expanded:f,children:[t.jsxs(Js,{children:[t.jsx(_,{controller:f,children:t.jsx(no,{})}),t.jsx(_,{controller:!f,children:t.jsx(oo,{})}),t.jsx(K,{children:k.name}),t.jsx(ct,{count:k.tasks.length})]}),t.jsx(to,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:J.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),u(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(_,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Qs,{children:[t.jsxs(eo,{children:[t.jsx(ro,{className:"styled-dot"}),t.jsx(co,{className:"task-name-text",children:w.name})]}),t.jsx(so,{loading:d===w.name,className:"hidden-create-task-button",variant:"secondary",size:"xs-small",label:Rs.create,reverseSpinnerColor:!1,onClick:()=>a(k.id,w.name)})]},w.name))})})]},k.id)})})}),t.jsxs(_,{controller:b.length===0,children:[t.jsx(io,{children:t.jsx(lo,{children:J.noTaskGroup})}),t.jsxs(He,{onClick:E,children:[t.jsx(_e,{}),t.jsx(K,{children:J.newTaskOptionText.replace("__searchText__",c)})]}),t.jsxs(He,{onClick:D,children:[t.jsx(_e,{}),t.jsx(K,{children:J.newGroupOptionText.replace("__searchText__",c)})]})]})]})},Os=o.div`
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
width: ${e=>e.isTaskTemplatesEnabled?"408px":"unset"};
|
|
@@ -145,9 +145,9 @@ import{aw as gt,e as Ye,V as t,jv as q,bC as kt,aa as _,cp as xt,al as K,aq as w
|
|
|
145
145
|
width: ${s.sp3};
|
|
146
146
|
height: ${s.sp3};
|
|
147
147
|
color: ${e=>e.theme.colors.primary};
|
|
148
|
-
`,
|
|
148
|
+
`,Xs=o(Ie)`
|
|
149
149
|
color: ${e=>e.theme.colors.primary};
|
|
150
|
-
`,
|
|
150
|
+
`,Ys=o.div`
|
|
151
151
|
max-height: 320px;
|
|
152
152
|
overflow: auto;
|
|
153
153
|
`,Zs=o.div`
|
|
@@ -243,7 +243,7 @@ import{aw as gt,e as Ye,V as t,jv as q,bC as kt,aa as _,cp as xt,al as K,aq as w
|
|
|
243
243
|
text-overflow: ellipsis;
|
|
244
244
|
white-space: nowrap;
|
|
245
245
|
max-width: 336px;
|
|
246
|
-
`,{common:Ge,dateFormat:po,taskManagement:Ee}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new Je(125,170,170,250,300)},uo=({taskDetail:e,tagList:d,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:u})=>{const a=ie(),p=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,c=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Ge.strings.empty,{getValues:C,resetField:b,getFieldState:E}=it(),D=(k,f)=>{const w=ze(k,f,xe);E(w).invalid?b(w):m(e,{timeSpent:C(w)})};return t.jsxs(go,{children:[t.jsxs(So,{windowSize:a,onClick:h,responsiveWidth:Z[0].width,children:[t.jsxs(Go,{windowSize:a,children:[t.jsx(Io,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ne,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(Eo,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ne,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(Lo,{windowSize:a,responsiveWidth:Z[0].width,children:t.jsx(No,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:Z[1].width,children:Be(e.status.code)}),t.jsx(zo,{windowSize:a,responsiveWidth:Z[2].width,children:Be(e.priority.code)}),t.jsx(Ro,{windowSize:a,responsiveWidth:Z[3].width,children:e.dueDate!=null?e.dueDate.format(po.visual.MMMDCommaYYYYformat):t.jsx(ko,{children:Ge.strings.hyphen})}),t.jsx(Ue,{windowSize:a,responsiveWidth:Z[4].width,children:p>0?t.jsxs(xo,{children:[t.jsx(qt,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Do,{children:t.jsx(Mo,{children:c})}),p>1?t.jsx(wo,{children:`${Ge.strings.plus}${p-1}`}):null]}):null}),t.jsx(Ao,{windowSize:a,responsiveWidth:Z[5].width,children:e.tagIds.length>0?t.jsx(Bo,{children:
|
|
246
|
+
`,{common:Ge,dateFormat:po,taskManagement:Ee}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new Je(125,170,170,250,300)},uo=({taskDetail:e,tagList:d,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:u})=>{const a=ie(),p=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,c=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Ge.strings.empty,{getValues:C,resetField:b,getFieldState:E}=it(),D=(k,f)=>{const w=ze(k,f,xe);E(w).invalid?b(w):m(e,{timeSpent:C(w)})};return t.jsxs(go,{children:[t.jsxs(So,{windowSize:a,onClick:h,responsiveWidth:Z[0].width,children:[t.jsxs(Go,{windowSize:a,children:[t.jsx(Io,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ne,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(Eo,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ne,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(Lo,{windowSize:a,responsiveWidth:Z[0].width,children:t.jsx(No,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:Z[1].width,children:Be(e.status.code)}),t.jsx(zo,{windowSize:a,responsiveWidth:Z[2].width,children:Be(e.priority.code)}),t.jsx(Ro,{windowSize:a,responsiveWidth:Z[3].width,children:e.dueDate!=null?e.dueDate.format(po.visual.MMMDCommaYYYYformat):t.jsx(ko,{children:Ge.strings.hyphen})}),t.jsx(Ue,{windowSize:a,responsiveWidth:Z[4].width,children:p>0?t.jsxs(xo,{children:[t.jsx(qt,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Do,{children:t.jsx(Mo,{children:c})}),p>1?t.jsx(wo,{children:`${Ge.strings.plus}${p-1}`}):null]}):null}),t.jsx(Ao,{windowSize:a,responsiveWidth:Z[5].width,children:e.tagIds.length>0?t.jsx(Bo,{children:Xt(e.tagIds,d)}):null}),t.jsx(Oo,{windowSize:a,responsiveWidth:Z[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Wo,{className:"timeSpentField",children:t.jsx(Yt,{name:ze(r,e.id,xe),placeholder:Ee.common.timeSpentPlaceholder,timeSpentFormat:Ee.common.timeSpentFormat,registerOptions:{validate:k=>ts(k)>Zt?(u({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error"):!0},style:{padding:`${s.sp0} ${s.sp1}`,background:"unset"},onInputBlur:()=>{D(r,e.id)},inputStyle:{textAlign:"right",padding:`${s.sp0} ${s.sp2}`}})})})]})},ho=({taskGroup:e,tagList:d,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:u,isCollapsed:a,existingTaskGroupNamesByGroupId:p,onDeleteTaskGroup:i,onExpandAll:c,onCollapseAll:C,onAddNewTaskToTaskGroup:b,onCollapseToggle:E,onTaskManagementRowClick:D,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[M,B]=n.useState(null),z=ie(),{setFocus:$}=it(),x=n.useCallback(()=>{E(e.id)},[E,e.id]),S=n.useCallback(F=>{B(F.currentTarget)},[]),j=n.useCallback(()=>{B(null)},[]),L=n.useCallback(()=>{b(e.id)},[b,e.id]),g=n.useCallback(()=>{B(null),i(e.id)},[i,e.id]),y=n.useCallback(()=>{$(`${r}.groupName`),j()},[j,r,$]);return t.jsxs(mo,{windowSize:z,children:[t.jsx(_,{controller:h,children:t.jsxs(fo,{children:[t.jsxs(Co,{children:[t.jsx(To,{isOpen:a===!1,onClick:x,children:t.jsx($o,{})}),t.jsx(Wt,{style:{textAlign:"start",width:"100%",background:"unset",...Pt.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Ee.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:F=>Ht(F,e.id,p)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx(jo,{onClick:S,children:t.jsx(yo,{})}),t.jsx(_t,{onClose:j,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:c,onRename:y,isDefault:e.isDefault,anchorEl:M})]})}),t.jsx(_,{controller:a===!1,children:t.jsx(Ut,{mode:"checked_or_hover",isDisabled:u===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(F=>{const U=()=>{D(F.id)};return{label:t.jsx(uo,{taskDetail:F,onRowClick:U,tagList:d,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:z==="small"?null:t.jsx(vo,{children:t.jsx(bo,{})}),value:F.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})})]})},mo=o.div`
|
|
247
247
|
box-sizing: border-box;
|
|
248
248
|
display: flex;
|
|
249
249
|
flex-direction: column;
|
|
@@ -430,10 +430,10 @@ import{aw as gt,e as Ye,V as t,jv as q,bC as kt,aa as _,cp as xt,al as K,aq as w
|
|
|
430
430
|
column-gap: ${s.sp2};
|
|
431
431
|
`,Wo=o.div`
|
|
432
432
|
max-width: ${s.sp11};
|
|
433
|
-
`,Po=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(),Ve=e=>`${e}_form`,Ho={rowGap:new Je(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),yn=({taskListView:e,tagListView:d,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:u,onDeleteTaskGroup:a,updateLocalData:p,onTaskManagementRowClick:i,onReloadTasks:c,onColumnSortConfigChanged:C,onSearchTextChanged:b,onBackClick:E,onNewTaskClick:D,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:M,onAddNewTaskToTaskGroup:B,onGroupByFilterChange:z,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:j,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:y})=>{const[F,U]=n.useState(!1),[Q,W]=n.useState(null),[P,oe]=n.useState(null),[Y,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:X,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:je}=d,ye=Ye(),ve=A=>{ne(A)},he=n.useCallback(A=>{le(A.currentTarget)},[]),me=n.useCallback(A=>{z(A)},[z]),l=n.useCallback(()=>{z("groupName")},[z]),G=n.useCallback(A=>{y(A)},[y]),O=de.users.map(A=>A.user).filter(A=>A!=null),I={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:X.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:ve,onSearchTextChanged:b,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(ks,{value:X.groupByKey,resetDisabled:X.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>ls("task_management",O,Ce.loggedInUserRole??[],d.tagList)},N=n.useCallback(A=>{le(null),W(q),p({...e.localData,newTaskGroupName:A})},[e.localData,p]),R=n.useCallback(()=>{le(null)},[]),v=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{W(q)},[]),te=n.useCallback(A=>{pe(mt=>mt===A?null:A)},[]);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(Xo,{children:[t.jsx(Zo,{onClick:c,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(_o,{taskListView:e,tagList:je,renameActiveField:Q,updateTask:m,onDragNDrop:u,onAddNewTaskToTaskGroup:B,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:M,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:p,setActiveTaskGroupId:oe,setRenameActiveField:W,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:j,onCreateTagClick:h}),ht=t.jsx(os,{spendManagementSectionProps:I});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:E,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(As,{anchorEl:fe,groupByKey:X.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:R,onNewTaskClick:D,onNewGroupClick:N,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:Y}),t.jsx(qo,{children:ut()}),t.jsx(_,{controller:F===!0,children:t.jsx(xt,{action:{onOkClick:v,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(nn,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(an,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},_o=({taskListView:e,tagList:d,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:u,onDragNDrop:a,updateLocalData:p,setShowDeleteModal:i,handleCreateGroup:c,resetLocalData:C,assignGroupToTasks:b,setGroupCreationInProgress:E,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:M,onShowToast:B,onCreateTagClick:z})=>{const $=n.useRef(null);jt({componentName:"task.management.list"});const[x,S]=n.useState(null),j=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:y,uiState:F}=e,[U,Q]=n.useState([]),W=n.useRef(null);hs({scrollContainerRef:W,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=yt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>qe(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d]),values:n.useMemo(()=>qe(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d])}),Y=n.useMemo(()=>{if(r!==q)return y;const l=[],G=y.map(O=>{const I=O.tasks.filter(N=>{const R=g.selectedTaskIds.includes(N.id)===!0;return R&&l.push(N),R===!1});return{...O,tasks:I}});return G.unshift({groupName:"",isDefault:!1,id:q,tasks:l}),G},[r,y,g.selectedTaskIds]),pe=n.useCallback(l=>U.includes(Y[l].id)||Y[l].tasks.length===0?100:j.current?.[l]!=null?j.current[l]+Ho.rowGap.value(L):(ns*1+as)*3+rs+is,[U,Y,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=>{Q(G=>G.includes(l)?G.filter(O=>l!==O):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{Q(y.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[y]),ee=n.useCallback(()=>{Q([]),$.current?.resetAfterIndex(0,!0)},[]),X=n.useCallback(()=>{E(),$.current?.scrollTo(0),ne()},[ne,E]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==q?X():c(!0):r===q?c(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,X,c,m]),$e=n.useCallback(()=>{u(null),C()},[C,u]),je=n.useCallback(l=>{C(),u(l)},[C,u]),ye=n.useCallback(()=>{g.defaultTaskGroupId!=null&&b(g.defaultTaskGroupId)},[b,g.defaultTaskGroupId]),ve=async(l,G)=>{if(l.includes(nt)){const I=l.split(".")[2],N=y.flatMap(v=>v.tasks).find(v=>v.id===I),R=G[V][ae][I].priority.selectedOption;if(N!=null&&R!=null){const v=lt.find(T=>T.code===R);v!=null&&h(N,{priority:v})}return}if(l.includes(at)){const I=l.split(".")[2],N=y.flatMap(v=>v.tasks).find(v=>v.id===I),R=G[V][ae][I].status.selectedOption;if(N!=null&&R!=null){const v=dt.find(T=>T.code===R);N!=null&&v!=null&&h(N,{status:v})}return}if(l.includes(st)){const I=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===I),R=y.find(T=>T.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].assignees.selectedUsers.map(T=>T.userId);R!=null&&v!=null&&N!=null&&h(N,{assignees:v});return}if(l.includes(ot)){const I=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===I),R=y.find(T=>T.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].dueDate.date;R!=null&&v!=null&&N!=null&&h(N,{dueDate:v});return}if(l.includes(tt)){const I=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===I),R=y.find(T=>T.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].tags.selectedOptions;R!=null&&v!=null&&N!=null&&h(N,{tagIds:v});return}l.includes(xe)&&oe.trigger(l);const O=Ko(l,G,g);p(O)};n.useEffect(()=>{const l=oe.watch((G,{name:O})=>{O!=null&&G!=null&&vt(()=>ve(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupUpdateStatus.fetchState]);const he=y.length>1&&g.selectedTaskIds.length>0&&r!==q,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:Ve(Me),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(en,{isFooterVisible:me,windowSize:L,children:t.jsx(St,{children:({height:l,width:G})=>t.jsx(Gt,{ref:$,outerRef:W,height:l,itemCount:Y.length,itemSize:pe,estimatedItemSize:It,itemKey:O=>Y[O].id,width:G,overscanCount:Lt,itemData:{tagList:d,taskGroupsWithTasksList:Y,uiState:F,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:je,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:M,onShowToast:B,onCreateTagClick:z},initialScrollOffset:0,children:Uo})})})})}),me?t.jsx(Nt,{formId:Ve(Me),primaryBtn:{label:y.length===1&&g.selectedTaskIds.length>0&&r!==q?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(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(sn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(on,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(ln,{children:t.jsx(Ne,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(rn,{onClick:ye})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(De,{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(js,{taskGroupsList:y,anchorEl:x,groupByKey:F.groupByKey,onCreateNewGroup:X,onExistingGroupSelection:l=>{ne(),b(l)},onClose:ne})]}):void 0}):null]})},Uo=({index:e,style:d,data:r})=>{const h=n.useRef(null),m=ie(),{tagList:u,taskGroupsWithTasksList:a,uiState:p,renameActiveField:i,collapsedGroups:c,onCollapseToggle:C,onTaskManagementRowClick:b,setRowHeight:E,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,handleOnDragNDrop:B,onRenameClick:z,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&E(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const y=n.useCallback(W=>{const P=W.dataTransfer.getData("row");B(P,a[e].id)},[B,e,a]),F=n.useCallback(W=>{W.preventDefault()},[]),U=(W,P)=>{W.dataTransfer.setData("row",P)},Q=()=>{z(a[e].id)};return t.jsx(tn,{style:{...d,width:"100%"},ref:h,onDrop:y,onDragOver:F,children:t.jsx(Vo,{taskGroup:a[e],showGroupName:!0,tagList:u,uiState:p,isCollapsed:c.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:b,onColumnSortConfigChanged:D,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:U,onRenameClick:Q,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g},a[e].id)})},Vo=({taskGroup:e,tagList:d,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,userList:i,existingTaskGroupNamesByGroupId:c,onRenameClick:C,onTaskManagementRowClick:b,onCollapseToggle:E,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,onDragStart:B,onTimeSpentUpdate:z,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),j=S==="medium-regular"||S==="medium-compact"||S==="small"?ho:Ot;return t.jsx(j,{taskGroup:e,tagList:d,userList:i,sectionId:V,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,existingTaskGroupNamesByGroupId:c,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,onCollapseToggle:E,onTaskManagementRowClick:b,onColumnSortConfigChanged:D,onDragStart:B,onRenameClick:C,onTimeSpentUpdate:z,onShowToast:$,onCreateTagClick:x})},qe=(e,d,r,h)=>{const m={},u={};e.forEach(p=>{u[p.id]={[ke]:[],[ce]:d.existingTaskGroupNamesByGroupId[p.id]},p.tasks.forEach(i=>{d.selectedTaskIds.includes(i.id)&&u[p.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(c=>({label:c.name,value:c.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(c=>({label:c.name,value:c.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(c=>c.user)},[tt]:{allOptions:Dt(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[q]:{[ce]:d.newTaskGroupName,[ke]:[]},...u},[ae]:m};return{[V]:a}},Ko=(e,d,r)=>{if(e.includes(V)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(q)?{...r,newTaskGroupName:d[V].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:d[V].groupData[h][ce]}};if(e.includes(ke)){const m=At(Ft(Object.values(d[V][rt]),ke)).filter(u=>u!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},qo=o.div`
|
|
433
|
+
`,Po=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(),Ve=e=>`${e}_form`,Ho={rowGap:new Je(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),yn=({taskListView:e,tagListView:d,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:u,onDeleteTaskGroup:a,updateLocalData:p,onTaskManagementRowClick:i,onReloadTasks:c,onColumnSortConfigChanged:C,onSearchTextChanged:b,onBackClick:E,onNewTaskClick:D,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:M,onAddNewTaskToTaskGroup:B,onGroupByFilterChange:z,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:j,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:y})=>{const[F,U]=n.useState(!1),[Q,W]=n.useState(null),[P,oe]=n.useState(null),[X,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:Y,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:je}=d,ye=Xe(),ve=A=>{ne(A)},he=n.useCallback(A=>{le(A.currentTarget)},[]),me=n.useCallback(A=>{z(A)},[z]),l=n.useCallback(()=>{z("groupName")},[z]),G=n.useCallback(A=>{y(A)},[y]),O=de.users.map(A=>A.user).filter(A=>A!=null),I={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:Y.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:ve,onSearchTextChanged:b,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(ks,{value:Y.groupByKey,resetDisabled:Y.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>ls("task_management",O,Ce.loggedInUserRole??[],d.tagList)},N=n.useCallback(A=>{le(null),W(q),p({...e.localData,newTaskGroupName:A})},[e.localData,p]),R=n.useCallback(()=>{le(null)},[]),v=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{W(q)},[]),te=n.useCallback(A=>{pe(mt=>mt===A?null:A)},[]);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(Yo,{children:[t.jsx(Zo,{onClick:c,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(_o,{taskListView:e,tagList:je,renameActiveField:Q,updateTask:m,onDragNDrop:u,onAddNewTaskToTaskGroup:B,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:M,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:p,setActiveTaskGroupId:oe,setRenameActiveField:W,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:j,onCreateTagClick:h}),ht=t.jsx(os,{spendManagementSectionProps:I});return t.jsxs(Xo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ye.colors.grey4,style:{zIndex:3},onBackClick:E,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(As,{anchorEl:fe,groupByKey:Y.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:R,onNewTaskClick:D,onNewGroupClick:N,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:X}),t.jsx(qo,{children:ut()}),t.jsx(_,{controller:F===!0,children:t.jsx(xt,{action:{onOkClick:v,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(nn,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(an,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},_o=({taskListView:e,tagList:d,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:u,onDragNDrop:a,updateLocalData:p,setShowDeleteModal:i,handleCreateGroup:c,resetLocalData:C,assignGroupToTasks:b,setGroupCreationInProgress:E,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:M,onShowToast:B,onCreateTagClick:z})=>{const $=n.useRef(null);jt({componentName:"task.management.list"});const[x,S]=n.useState(null),j=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:y,uiState:F}=e,[U,Q]=n.useState([]),W=n.useRef(null);hs({scrollContainerRef:W,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=yt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>qe(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d]),values:n.useMemo(()=>qe(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d])}),X=n.useMemo(()=>{if(r!==q)return y;const l=[],G=y.map(O=>{const I=O.tasks.filter(N=>{const R=g.selectedTaskIds.includes(N.id)===!0;return R&&l.push(N),R===!1});return{...O,tasks:I}});return G.unshift({groupName:"",isDefault:!1,id:q,tasks:l}),G},[r,y,g.selectedTaskIds]),pe=n.useCallback(l=>U.includes(X[l].id)||X[l].tasks.length===0?100:j.current?.[l]!=null?j.current[l]+Ho.rowGap.value(L):(ns*1+as)*3+rs+is,[U,X,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=>{Q(G=>G.includes(l)?G.filter(O=>l!==O):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{Q(y.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[y]),ee=n.useCallback(()=>{Q([]),$.current?.resetAfterIndex(0,!0)},[]),Y=n.useCallback(()=>{E(),$.current?.scrollTo(0),ne()},[ne,E]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==q?Y():c(!0):r===q?c(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,Y,c,m]),$e=n.useCallback(()=>{u(null),C()},[C,u]),je=n.useCallback(l=>{C(),u(l)},[C,u]),ye=n.useCallback(()=>{g.defaultTaskGroupId!=null&&b(g.defaultTaskGroupId)},[b,g.defaultTaskGroupId]),ve=async(l,G)=>{if(l.includes(nt)){const I=l.split(".")[2],N=y.flatMap(v=>v.tasks).find(v=>v.id===I),R=G[V][ae][I].priority.selectedOption;if(N!=null&&R!=null){const v=lt.find(T=>T.code===R);v!=null&&h(N,{priority:v})}return}if(l.includes(at)){const I=l.split(".")[2],N=y.flatMap(v=>v.tasks).find(v=>v.id===I),R=G[V][ae][I].status.selectedOption;if(N!=null&&R!=null){const v=dt.find(T=>T.code===R);N!=null&&v!=null&&h(N,{status:v})}return}if(l.includes(st)){const I=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===I),R=y.find(T=>T.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].assignees.selectedUsers.map(T=>T.userId);R!=null&&v!=null&&N!=null&&h(N,{assignees:v});return}if(l.includes(ot)){const I=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===I),R=y.find(T=>T.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].dueDate.date;R!=null&&v!=null&&N!=null&&h(N,{dueDate:v});return}if(l.includes(tt)){const I=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===I),R=y.find(T=>T.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].tags.selectedOptions;R!=null&&v!=null&&N!=null&&h(N,{tagIds:v});return}l.includes(xe)&&oe.trigger(l);const O=Ko(l,G,g);p(O)};n.useEffect(()=>{const l=oe.watch((G,{name:O})=>{O!=null&&G!=null&&vt(()=>ve(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupUpdateStatus.fetchState]);const he=y.length>1&&g.selectedTaskIds.length>0&&r!==q,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:Ve(Me),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(en,{isFooterVisible:me,windowSize:L,children:t.jsx(St,{children:({height:l,width:G})=>t.jsx(Gt,{ref:$,outerRef:W,height:l,itemCount:X.length,itemSize:pe,estimatedItemSize:It,itemKey:O=>X[O].id,width:G,overscanCount:Lt,itemData:{tagList:d,taskGroupsWithTasksList:X,uiState:F,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:je,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:M,onShowToast:B,onCreateTagClick:z},initialScrollOffset:0,children:Uo})})})})}),me?t.jsx(Nt,{formId:Ve(Me),primaryBtn:{label:y.length===1&&g.selectedTaskIds.length>0&&r!==q?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(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(sn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(on,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(ln,{children:t.jsx(Ne,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(rn,{onClick:ye})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(De,{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(js,{taskGroupsList:y,anchorEl:x,groupByKey:F.groupByKey,onCreateNewGroup:Y,onExistingGroupSelection:l=>{ne(),b(l)},onClose:ne})]}):void 0}):null]})},Uo=({index:e,style:d,data:r})=>{const h=n.useRef(null),m=ie(),{tagList:u,taskGroupsWithTasksList:a,uiState:p,renameActiveField:i,collapsedGroups:c,onCollapseToggle:C,onTaskManagementRowClick:b,setRowHeight:E,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,handleOnDragNDrop:B,onRenameClick:z,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&E(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const y=n.useCallback(W=>{const P=W.dataTransfer.getData("row");B(P,a[e].id)},[B,e,a]),F=n.useCallback(W=>{W.preventDefault()},[]),U=(W,P)=>{W.dataTransfer.setData("row",P)},Q=()=>{z(a[e].id)};return t.jsx(tn,{style:{...d,width:"100%"},ref:h,onDrop:y,onDragOver:F,children:t.jsx(Vo,{taskGroup:a[e],showGroupName:!0,tagList:u,uiState:p,isCollapsed:c.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:b,onColumnSortConfigChanged:D,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:U,onRenameClick:Q,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g},a[e].id)})},Vo=({taskGroup:e,tagList:d,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,userList:i,existingTaskGroupNamesByGroupId:c,onRenameClick:C,onTaskManagementRowClick:b,onCollapseToggle:E,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,onDragStart:B,onTimeSpentUpdate:z,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),j=S==="medium-regular"||S==="medium-compact"||S==="small"?ho:Ot;return t.jsx(j,{taskGroup:e,tagList:d,userList:i,sectionId:V,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,existingTaskGroupNamesByGroupId:c,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,onCollapseToggle:E,onTaskManagementRowClick:b,onColumnSortConfigChanged:D,onDragStart:B,onRenameClick:C,onTimeSpentUpdate:z,onShowToast:$,onCreateTagClick:x})},qe=(e,d,r,h)=>{const m={},u={};e.forEach(p=>{u[p.id]={[ke]:[],[ce]:d.existingTaskGroupNamesByGroupId[p.id]},p.tasks.forEach(i=>{d.selectedTaskIds.includes(i.id)&&u[p.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(c=>({label:c.name,value:c.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(c=>({label:c.name,value:c.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(c=>c.user)},[tt]:{allOptions:Dt(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[q]:{[ce]:d.newTaskGroupName,[ke]:[]},...u},[ae]:m};return{[V]:a}},Ko=(e,d,r)=>{if(e.includes(V)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(q)?{...r,newTaskGroupName:d[V].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:d[V].groupData[h][ce]}};if(e.includes(ke)){const m=At(Ft(Object.values(d[V][rt]),ke)).filter(u=>u!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},qo=o.div`
|
|
434
434
|
display: block;
|
|
435
435
|
height: 100%;
|
|
436
|
-
`,
|
|
436
|
+
`,Xo=o.div`
|
|
437
437
|
width: 100%;
|
|
438
438
|
height: 100vh;
|
|
439
439
|
display: flex;
|
|
@@ -441,7 +441,7 @@ import{aw as gt,e as Ye,V as t,jv as q,bC as kt,aa as _,cp as xt,al as K,aq as w
|
|
|
441
441
|
row-gap: ${s.sp4};
|
|
442
442
|
background-color: ${e=>e.theme.colors.grey4};
|
|
443
443
|
overflow: hidden;
|
|
444
|
-
`,
|
|
444
|
+
`,Yo=o.div`
|
|
445
445
|
display: flex;
|
|
446
446
|
width: 100%;
|
|
447
447
|
height: calc(100% - 60px);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,b3 as _,aD as S,dl as B,br as H,o as a,ai as L}from"./index-
|
|
1
|
+
import{V as t,b3 as _,aD as S,dl as B,br as H,o as a,ai as L}from"./index-o0j-GZyM.js";import{a as n}from"./sentry-DmQUfSE7.js";import{n as g}from"./mui-CAW43Z2L.js";import{Y as q}from"./core-yiE_iOc0.js";import{V as U}from"./CollapsableReportTable-CvAF66CY-D2P5-EVV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="b46ae48f-cd06-4b8f-8f81-30f34b9cc3c1",e._sentryDebugIdIdentifier="sentry-dbid-b46ae48f-cd06-4b8f-8f81-30f34b9cc3c1")}catch{}})();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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as s,o,ai as f,F as p}from"./index-
|
|
1
|
+
import{V as s,o,ai as f,F as p}from"./index-o0j-GZyM.js";import{n as d}from"./mui-CAW43Z2L.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae25b2a9-e3e2-42a4-ad73-49f9fc69c2d4",e._sentryDebugIdIdentifier="sentry-dbid-ae25b2a9-e3e2-42a4-ad73-49f9fc69c2d4")}catch{}})();const u=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as d,V as t,y as n,ai as
|
|
1
|
+
import{J as d,V as t,y as n,ai as u,bJ as w}from"./index-o0j-GZyM.js";import{n as r}from"./mui-CAW43Z2L.js";import{b as l}from"./TimeframeSwitcher-ClE4GOKf-CCgDF2y1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="916da91f-ca7b-4c88-9064-1ba72d98e13f",e._sentryDebugIdIdentifier="sentry-dbid-916da91f-ca7b-4c88-9064-1ba72d98e13f")}catch{}})();const s="ZeniSwitch",i={root:`${s}-root`,switchBase:`${s}-switchBase`,track:`${s}-track`,thumb:`${s}-thumb`},b=({className:e,...o})=>t.jsx(w,{...o,className:e,classes:{...i}}),x=r(b)(({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}})),p=e=>t.jsx(x,{...e}),c={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},y=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -25,7 +25,7 @@ import{J as d,V as t,y as n,ai as b,bJ as u}from"./index-BR9aIv1A.js";import{n a
|
|
|
25
25
|
flex-direction: row;
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: flex-end;
|
|
28
|
-
`,C=r(
|
|
28
|
+
`,C=r(u)`
|
|
29
29
|
color: ${e=>e.isOn?e.theme.colors.primary:e.theme.colors.hero};
|
|
30
30
|
opacity: ${e=>e.isDisabled?.5:1};
|
|
31
31
|
`,f=({label:e,isOn:o,isToggleDisabled:a,onValueChanged:h})=>t.jsxs(t.Fragment,{children:[t.jsx(C,{isOn:o,isDisabled:a===!0,children:e}),t.jsx(p,{checked:o,edge:"end",disabled:a===!0,disableRipple:a===!0,onChange:g=>{h(g.target.checked)}})]}),T=e=>{const o=d();return t.jsxs(y,{children:[t.jsx(m,{windowSize:o,children:t.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),t.jsx(k,{children:t.jsx(f,{...e.toggle})})]})},v=e=>{const o=d();return t.jsxs($,{children:[t.jsx(m,{windowSize:o,children:t.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),t.jsx(j,{children:t.jsx(f,{...e.toggle})})]})};function L(e){const o=d();return o==="small"||o==="medium-compact"?t.jsx(T,{...e}):t.jsx(v,{...e})}export{L as M};
|