@zeniai/web-cockpit-ui 1.14.88-qa → 1.14.89-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-BBq7KpbY-CZpHxE8o.js → ACHDetailsPage-BBq7KpbY-DmD51smT.js} +1 -1
- package/dist/assets/{AIPerformancePage-Djq6mgKa-BXA2rEQ3.js → AIPerformancePage-Djq6mgKa-C2iGvIUP.js} +11 -11
- package/dist/assets/{AccountInfoPage-CxWBk_t_-C2BQHsrc.js → AccountInfoPage-CxWBk_t_-BI9wbnyE.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DO6aVqBW-BHlSBq6C.js → AccountInfoPageContent-DO6aVqBW-6U18ww_h.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DVvzKHJQ-XsgYaZ9s.js → AccountLockedInfoModal-DVvzKHJQ-BlItIAEt.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-IJ1uxgeX.js → AccountReconDetailsDrawerPage-DEKzSPCP-DohPnhDC.js} +14 -14
- package/dist/assets/{AccountRow-Ck53DDbT-CKEPVSTV.js → AccountRow-Ck53DDbT-BeebPIea.js} +21 -21
- package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-DBGri4Ao.js → AccountsPromoCardStack-BYjuB-4I-DMxflS-k.js} +8 -8
- package/dist/assets/{AddAddressForCardDrawer-e8qbO2Y5-CCW44Lbp.js → AddAddressForCardDrawer-e8qbO2Y5-CvQDLLw2.js} +1 -1
- package/dist/assets/{AddToWalletPage-DA6AmuaY-D_ysmfWw.js → AddToWalletPage-DA6AmuaY-e01eq7ol.js} +5 -5
- package/dist/assets/{AgingReportsPage-B_Hhl_Is-yJ7Ku3Be.js → AgingReportsPage-B_Hhl_Is-4sV-u-EE.js} +5 -5
- package/dist/assets/{AllUserItems-BV22Ibpn-D42Co1mB.js → AllUserItems-BV22Ibpn-WegHhloq.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-DqV1vOVH-BwJKl2yK.js → ApAgingDetailPage-DqV1vOVH-DDYGtIes.js} +1 -1
- package/dist/assets/{AppBasePage-LrgCcvIv-CEyT0Ays.js → AppBasePage-LrgCcvIv-CPbTcwwM.js} +4 -4
- package/dist/assets/{AppDrawerContent-aZG5Qc_X-DQOHVYFR.js → AppDrawerContent-aZG5Qc_X-0oLi5_ah.js} +1 -1
- package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-BEsS6TL7.js +47 -0
- package/dist/assets/{ArAgingChart-Am7LTkqG-GS7CQpoV.js → ArAgingChart-Am7LTkqG-CEoxIo8X.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-BEKsyA9Q-CT83CSJd.js → ArAgingDetailPage-BEKsyA9Q-DyjljPZX.js} +1 -1
- package/dist/assets/{AttachmentView-Bujbmx1d-DpzwMH5w.js → AttachmentView-Bujbmx1d-B9I0wNAl.js} +1 -1
- package/dist/assets/{BankAccountSection-C5rYUW3V-BgvhKGl7.js → BankAccountSection-C5rYUW3V-B24i3wVy.js} +3 -3
- package/dist/assets/{BankAccountWarningSection-DakysSbk-BRLKAJ0a.js → BankAccountWarningSection-DakysSbk-CfJ3ZIAx.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-CFbf0DLJ.js → BankConnectionsSettingsPage-BjZDNgZG-CWXR52fl.js} +7 -7
- package/dist/assets/{BillDetailPage-DYc_nZRU-vRHIz2Fv.js → BillDetailPage-DYc_nZRU-BRz45yqn.js} +2 -2
- package/dist/assets/{BillPayApprovalRuleDetailPage-ppU1Epmy-DfzEevsW.js → BillPayApprovalRuleDetailPage-ppU1Epmy-CKu9yeh6.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-UblNi2mR-CaoPaa4o.js → BillPayApprovalRulesPage-UblNi2mR-DDdlB9l6.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BK2J56U5-BLwpq2ym.js → BillPayPromoPage-BK2J56U5-BV_HtQh9.js} +5 -5
- package/dist/assets/{BillPaySetUpPage-Jic5E25q-C2agN1u5.js → BillPaySetUpPage-Jic5E25q-B-iLCf2O.js} +2 -2
- package/dist/assets/{BillingSettingsPage-CKZVChEm-CWf23wA3.js → BillingSettingsPage-CKZVChEm-D4ayDBSH.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-C3uBULFR.js → BillsBulkReviewDrawerPage-C4Ra5e82-Ci4V1_TC.js} +1 -1
- package/dist/assets/{BoxItem-8PfNfaHq-Bc55g4Kz.js → BoxItem-8PfNfaHq-CqIGaIYz.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-JGge-Iiw-CLy_qcXB.js → BusinessVerificationPage-JGge-Iiw-DkN8E6Gl.js} +5 -5
- package/dist/assets/{CardNumberSubText-W81SQ4GF-OueRQ73F.js → CardNumberSubText-W81SQ4GF-D5AG2b-c.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DnOcmx2i-BioqpiiB.js → CashbackDetailPage-DnOcmx2i-DuXs2k0a.js} +7 -7
- package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-MbZAmWWA.js → ChargeCardDetailPage-DNVMsxzE-W83HRYcY.js} +1 -1
- package/dist/assets/{ChargeCardListPage-Dgj-WWWI-BMNMnKI1.js → ChargeCardListPage-Dgj-WWWI-C1jII8Vl.js} +14 -14
- package/dist/assets/{ChargeCardListTable-uJZKWoh7-dd8_7oJW.js → ChargeCardListTable-uJZKWoh7-DGMj8Kk8.js} +16 -16
- package/dist/assets/{ChargeCardPromoPage-uqT96W3_-C4nna9JN.js → ChargeCardPromoPage-uqT96W3_-DGpf3zxD.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-KUujiV9J.js → ChargeCardSetupPage-BDbJU-vm-DZJfRa0I.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-CbTc5gcW.js → ChargeCardStatementsPage-DImRqpH1-BlCyBAS3.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-BZCRYtgW.js → CheckDepositDrawerPage-BVtOOPoa-CKWcHjV6.js} +6 -6
- package/dist/assets/{CollapsableReportTable-Crihcv_z-D0yVWEtn.js → CollapsableReportTable-Crihcv_z-B6sIoSI3.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-JM7EOPYb.js → CompanyOfficerDetailsSection-CNxtAkKM-D2joEvpM.js} +8 -8
- package/dist/assets/{CompanyPassportCard-DMRQkRPb-BfQft15t.js → CompanyPassportCard-DMRQkRPb-BLaDLsxp.js} +1 -1
- package/dist/assets/{CompanyPassportPage-D3XvbSF_-QtfQkOgs.js → CompanyPassportPage-D3XvbSF_-BPFOIUV0.js} +16 -16
- package/dist/assets/{CompleteProfile-BqjXO5ze-BVANkRD5.js → CompleteProfile-BqjXO5ze-fJjklbCs.js} +1 -1
- package/dist/assets/{ConfettiBurst-DtwLo4WZ-pKVn1Zt5.js → ConfettiBurst-DtwLo4WZ-DhNKCJ7F.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-BsYkqMbG.js → CreateOrEditVendorPage-FrGRJxMy-lyDeY9QD.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BvifQpD3-rvm5_a2M.js → CreditCardPaymentDrawerPage-BvifQpD3-CJD0XzyN.js} +6 -6
- package/dist/assets/{CurrencySelectField-ClOg6nnS-Cnr3YkBv.js → CurrencySelectField-ClOg6nnS-wUZ5kAZB.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-DMbpslbv.js → CustomerOnboardingActivationPage-Du-zzeL2-DGgRqDAq.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-ly2XWpHL.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-DZVW17dp.js → CustomerOnboardingDetailPageSkeleton-BgY95XeU-Dah0hLGQ.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-C8ENw_2g.js → CustomerOnboardingNoStepsPage-BsKoqUta-D3bS1mcO.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DUMQKVfM-0ltubWJk.js → CustomerOnboardingPage-DUMQKVfM-C7dz_0GY.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-Brs1Bm9U.js → CustomerOnboardingProductSuitePage-DGVV8Tkk-CiyIz1Ai.js} +5 -5
- package/dist/assets/{Dashboard-CdYlvep--C2xiBWGf.js → Dashboard-CdYlvep--B2Vkh5DQ.js} +1 -1
- package/dist/assets/{DashboardReportPage-c6q027Qp-ZzS_4DbW.js → DashboardReportPage-c6q027Qp-B9wSLZAf.js} +16 -16
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-DO3K14XB.js → DashboardSidebarBackgroundAnimation-BdDVYK19-COjDYEak.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-D8kL8enp-DQfKwDtZ.js → DepositAccTransactionItem-D8kL8enp-J-22cTZM.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BS-OReem-CrvBML8Q.js → DepositAccTransactionListPage-BS-OReem-Daf8x2X1.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-BZAEhYC3.js → DomesticWireDetailsPage-CjM1DXnn-ByLr_bfJ.js} +1 -1
- package/dist/assets/{DownloadOverlay-Dr4uLNpZ-_3KxAqK4.js → DownloadOverlay-Dr4uLNpZ-PWDmhVak.js} +38 -38
- package/dist/assets/{DrawerPage-CbKBsc7w-7kpCQGH8.js → DrawerPage-CbKBsc7w-BANqCEyN.js} +1 -1
- package/dist/assets/{EditPeoplePage-BgsR09q8-YfoObQW1.js → EditPeoplePage-BgsR09q8-DQro3ypx.js} +3 -3
- package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-DvpBdlkg.js → EditReimbursementDetailPage-BTrwOX_s-Bpc20RR2.js} +25 -25
- package/dist/assets/{EntityDetailPage-Cvd4MG0F-ZDX--4dV.js → EntityDetailPage-Cvd4MG0F-Uu1ExrMV.js} +1 -1
- package/dist/assets/{EntitySummarySection-BIV9aAq2-DSoSDfHH.js → EntitySummarySection-BIV9aAq2-CUHksODf.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-OLmj-clQ.js → ExpenseAutomationOverviewPage-B5MtjO2p-B5sSDEu8.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-DW6Pxoah-DSaMh9BZ.js → ExpenseAutomationPage-DW6Pxoah-DpT-FAIA.js} +62 -62
- package/dist/assets/{ExpressPayPage-DnpQuDmt-CuecqGBU.js → ExpressPayPage-DnpQuDmt-CY033VTz.js} +5 -5
- package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-BzM8qDQI.js → FeaturePreviewPage-BmwBZ7ZP-kerQig1g.js} +1 -1
- package/dist/assets/{FollowStepsSection-B2I9SddL-B9ISQuf-.js → FollowStepsSection-B2I9SddL-BxrnE678.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-bCzUhauh.js → GlobalReviewListPage-D3GCP5Xd-Bht9J0K_.js} +6 -6
- package/dist/assets/{InformationCardStack-mEhasBqu-MnmadQgE.js → InformationCardStack-mEhasBqu-BZ_Gox0K.js} +1 -1
- package/dist/assets/{InsightsCardStack-Mj7QcQnH-w9iVNjOS.js → InsightsCardStack-Mj7QcQnH-CT4vpE1x.js} +1 -1
- package/dist/assets/{InsightsSection-B3xD0SZ9-CtB9l6g9.js → InsightsSection-B3xD0SZ9-CKtY4Hiz.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-CFVHIylV.js → IntegrationsSettingsPage-CsI_agJB-CclnkA74.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-DaN3QXGf.js → InternationalWireSwiftDetailsPage-Dszmi69h-BjjhlMpG.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-CZa6BkZb.js → InternationalWireVerificationPage-DG9Enrpo-DEQAkYYx.js} +11 -11
- package/dist/assets/{InviteFormPage-DK6X9Zwi-57NKh16b.js → InviteFormPage-DK6X9Zwi-DR66hPVd.js} +1 -1
- package/dist/assets/{InvitePageListView-CwKbcKlM-DEEV83h1.js → InvitePageListView-CwKbcKlM-BOO2EOMw.js} +32 -32
- package/dist/assets/{InvitePeoplePage-BqzJOjVI-bufXErI1.js → InvitePeoplePage-BqzJOjVI-hAq8wZOI.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-CokNNkKu-zGBNoDhJ.js → InvoiceUploadSection-CokNNkKu-CL4OwcxH.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CRtJDmrZ-2SCD9IjH.js → IssueChargeCardPage-CRtJDmrZ-CFmNSL2f.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BhwrrtZX-lh4MyI8q.js → LabeledAddressValue-BhwrrtZX-BVe1F8jA.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DzmwP7hP-CVmcFCuL.js → LabeledAddressValueField-DzmwP7hP-7gvUeBGH.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-DiUrfDZv.js → LabeledControlledCheckBoxField-B6ndrF2e-LWUc8yBI.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-e_gzDVel.js → LabeledCreatableSingleSelectField-CfzLlkho-CxZaZJZN.js} +1 -1
- package/dist/assets/{LabeledDocumentField-p3pI5qLu-BpHx3wM1.js → LabeledDocumentField-p3pI5qLu-I9C3lX6x.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-CDrN8oV2.js → LabeledDropDownFormattedTextField-oQX33Fim-Bbplhays.js} +1 -1
- package/dist/assets/{LabeledText-Db46hFZY-ZpSE14Xk.js → LabeledText-Db46hFZY-CvrCjgF_.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-CrNtOmbd.js → LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-f0PElM5i.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-ByksgDAC.js → LabeledZeniRolesDropDownField-Docjgj8Y-C6xxx7IQ.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-BZSRaZqY-BCB3zTz9.js → LinkJETransactionPage-BZSRaZqY-9NIG46T3.js} +6 -6
- package/dist/assets/{LockCardPage-KTyESoXL-Do9Bp07f.js → LockCardPage-KTyESoXL-C_hGUeR9.js} +12 -12
- package/dist/assets/{LowBalancePopup-B0BDCEui-GkcadyQj.js → LowBalancePopup-B0BDCEui-BMVW4mzF.js} +4 -4
- package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-C2ShsQ5E.js +1 -0
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CDB2igue-B5PAHJHU.js → MagicLinkDomesticWireDetailsPage-CDB2igue-CMZ17cvq.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-DJsJrwdj.js → MagicLinkInternationalWireDetailsPage-C2kxncrD-DZt4WyHf.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-Br2ktzLe.js → MagicLinkSuccessPage-DNVe2qMu-BMSr-yiU.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CWw516D8-Di58AkiA.js → MagicLinkTitleSection-CWw516D8-CjWjg4GW.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CugAM90r-CKMbSrBC.js → MailingDetailsSection-CugAM90r-CMuXq6mA.js} +1 -1
- package/dist/assets/{Menu-CGN2qO6T-BavKt1PZ.js → Menu-CGN2qO6T-CKP1jX2H.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-s0_zy8mz.js → MyBankConnectionsSettingsPage-CQUfVa0r-9xTXMtPS.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-FPw-YJRK.js → MyPendingActivationChargeCardListPage-TOQWRGjp-DCcWmjzI.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-BSTkZT7y.js → MyProfileSettingsPage-lCG03Uoh-DnrGHNt2.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DLLvivn4-B4wus8BB.js → NavBarWithPicker-DLLvivn4-6K-3U9T7.js} +1 -1
- package/dist/assets/{NavigationArrow-B4j2t8Qu-I1tY1ram.js → NavigationArrow-B4j2t8Qu-C8IxiTof.js} +1 -1
- package/dist/assets/{NavigationDots-DyMqwpgy-DUFU9pI4.js → NavigationDots-DyMqwpgy-DXf5bt3G.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-Bgk-R_8-.js → NewGlobalMerchantPage-Bx7iBsCP-DGrKqfpE.js} +1 -1
- package/dist/assets/{NoDataChart-Ce1_TZ5w-D3OEJqVU.js → NoDataChart-Ce1_TZ5w-BfNH_4T8.js} +1 -1
- package/dist/assets/{NoDataTable-l2T5Hw3t-BocZJJ0_.js → NoDataTable-l2T5Hw3t-Bh_N31mD.js} +1 -1
- package/dist/assets/{NotFoundPage-msdN-Eu6-DYqWaTYB.js → NotFoundPage-msdN-Eu6-BKPOdh9t.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-_ovcjr8E-DaKenjvb.js → NotificationSettingsPage-_ovcjr8E-Bj-DE2Dk.js} +15 -15
- package/dist/assets/{NotificationsListConfig-BJm7A9Mz-B1bUr4jp.js → NotificationsListConfig-BJm7A9Mz-Dg3_VsE9.js} +1 -1
- package/dist/assets/{NotificationsPage-Ddxb5kE0-DZUgUKAm.js → NotificationsPage-Ddxb5kE0-DzIBWdK5.js} +13 -13
- package/dist/assets/{OpExByVendorPage-BLAHey0l-Bvld9G1i.js → OpExByVendorPage-BLAHey0l-neBDRa7k.js} +4 -4
- package/dist/assets/{OverlayContainerPage-CrZuT2Jj-BZc1jNiE.js → OverlayContainerPage-CrZuT2Jj-DMNYxA7f.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-B7Z73Sq--CxOY2hjk.js → PandLWithForecastPage-B7Z73Sq--BDluLKs7.js} +5 -5
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-DPhW5Sbo.js → PaymentAccountSetupBillingAddressSection-pL7omrJk-Cgju1Qqc.js} +1 -1
- package/dist/assets/{PeoplePage-BHRFiM0D-Dz2giOXs.js → PeoplePage-BHRFiM0D-FOmgjcav.js} +1 -1
- package/dist/assets/{ProductsCarousel-D2bf_6Gb-oPFxud0a.js → ProductsCarousel-D2bf_6Gb-NT7Dhd8p.js} +1 -1
- package/dist/assets/{PromoBaseCards-CI7UOpeY-DSvwfl16.js → PromoBaseCards-CI7UOpeY-DI52WXKx.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-D7MeKn1t-CNNQde90.js → QBOConnectionDialog-D7MeKn1t-DelTIGIf.js} +4 -4
- package/dist/assets/{QBOSetupSection-DWhfA4Xv-DYYPH7Pl.js → QBOSetupSection-DWhfA4Xv-kSdJytyB.js} +7 -7
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-C_dTOk5P-B0mAq5_-.js → ReimbursementApprovalRuleDetailPage-C_dTOk5P-Dc_LvsYr.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-B5lca4qx-DfQkh2sN.js → ReimbursementApprovalRulesPage-B5lca4qx-DAjvVIOI.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-COIRwy7i-BbuWUy3N.js → ReimbursementDetailPage-COIRwy7i-W0eUs7nE.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-Bjm0UHcm-9396bQ9z.js → ReimbursementPromoPage-Bjm0UHcm-Crjakfj5.js} +8 -8
- package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-6GKMqjZm.js → ReimbursementSetUpPage-CMYR8CcH-B6Pjnu_N.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-CHdDYICO.js → ReimbursementsBulkReviewDrawerPage-BDdhVfaz-Qu76KNt7.js} +1 -1
- package/dist/assets/{ReloadCard-B2sJR97f-BUZQgyMC.js → ReloadCard-B2sJR97f-4aiyry-A.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-_IO343vS-DPhVSmcQ.js → ReportTableViewSelector-_IO343vS-DFegVWwX.js} +1 -1
- package/dist/assets/{ReportsPage-C-aQ1bdd-B_xkTwrl.js → ReportsPage-C-aQ1bdd-DQkYUdHM.js} +5 -5
- package/dist/assets/{RevenueChart-Bgq6My4J-Dt6XAZjz.js → RevenueChart-Bgq6My4J-Bd7qmjtO.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-COx9R71r-B7xkHaMk.js → ReviewDetailsPage-COx9R71r-BNEXmQ6j.js} +1 -1
- package/dist/assets/{ReviewOverlay-CPU7RPiJ-L4td8Zqd.js → ReviewOverlay-CPU7RPiJ-LkDgAnlD.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DSSGBzvw-BjW_p5Ey.js → RoleWithToolTip-DSSGBzvw-1jeqwzcs.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-BIQ3dSHo.js → ScheduleDetailsFixedAssetsPage-DKGBfhAM-DIiqwEOV.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-BuuquQqY.js → ScheduleDetailsPage-B-fKJ7Ct-DSkiCN2O.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-CIlJaOtf.js → ScheduleSequenceTable-Dh_aT47H-BHM_c04w.js} +15 -15
- package/dist/assets/{ScreenRoutes-C6VP09xT.js → ScreenRoutes-DuXEW70Q.js} +48 -48
- package/dist/assets/{SetUpAccountSection-DrMCC1IY-C-3Yhp84.js → SetUpAccountSection-DrMCC1IY-D33epaX0.js} +4 -4
- package/dist/assets/{SignIn-Ij6tlYI5-CCumTqCW.js → SignIn-Ij6tlYI5-DeE6t8Fq.js} +7 -7
- package/dist/assets/{SignInScreen-DJ4Bo1S_.js → SignInScreen-LCpnq8M3.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-AI676Urw-Bz122sOj.js → SpendManagementListViewPage-AI676Urw-DJru7ByR.js} +13 -13
- package/dist/assets/{SpendManagementPerTabPage-D79c3Xqh-rmjY-vmf.js → SpendManagementPerTabPage-D79c3Xqh-D8DfakVn.js} +1 -1
- package/dist/assets/{SpendManagementSection-BqWbsmBW-td2Sn0pd.js → SpendManagementSection-BqWbsmBW-BhpclPa8.js} +7 -7
- package/dist/assets/{StatementItem-Aal79YaO-XQmaXixd.js → StatementItem-Aal79YaO-3cBWg-5i.js} +1 -1
- package/dist/assets/{StatementsPage-BG_pNQzc-dvNXNLMV.js → StatementsPage-BG_pNQzc-C7UMTTVJ.js} +1 -1
- package/dist/assets/{StatusSwitcher-DYRXaLvx-DnQc7FsU.js → StatusSwitcher-DYRXaLvx-GT20DbHu.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C75XU1EG-UKyrqTMF.js → SubTabSwitcher-C75XU1EG-BZOngUzL.js} +1 -1
- package/dist/assets/{SummaryCard-DEnzgi31-DEAiBXSy.js → SummaryCard-DEnzgi31-BhOErS-o.js} +1 -1
- package/dist/assets/{TaskManagementPage-BacWm0wS-B7bDEupg.js → TaskManagementPage-BacWm0wS-tQV5bDZ1.js} +12 -12
- package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-Bz_-4Vd_.js → TimeRangeSwitcher-BOzR-0O6-8myc4JmX.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BVgI_VZw-BbnNXYMm.js → TimeframeSwitcher-BVgI_VZw-Re-kZX07.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-PHeDWcYh.js → TimeframeSwitcherWithToggle-CPVSAvFa-Bg7OmG92.js} +1 -1
- package/dist/assets/{TopExCard-ImUx-vXr-DLryJPJU.js → TopExCard-ImUx-vXr--haKJkNG.js} +1 -1
- package/dist/assets/{TopExDetailPage-Dg_8DQk8-RpIGLliz.js → TopExDetailPage-Dg_8DQk8-4TF178rD.js} +2 -2
- package/dist/assets/{TransactionDetailPage-BzaDB50S-DF5gn3Ir.js → TransactionDetailPage-BzaDB50S-CJmLmWoQ.js} +31 -31
- package/dist/assets/{TransactionList-DMd3dgoK-CBav3Qka.js → TransactionList-DMd3dgoK-DFvlE42h.js} +5 -5
- package/dist/assets/{TransactionListBig-BxHqh8u6-BYNOxGT0.js → TransactionListBig-BxHqh8u6-eMcF_DZh.js} +1 -1
- package/dist/assets/{TransactionListPage-CN9fZznd-Cy5ZEf_j.js → TransactionListPage-CN9fZznd-DZJjs91-.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CykcquSh-DmB7J4Ve.js → TransactionVendorDetailPage-CykcquSh-UwSp0CrJ.js} +1 -1
- package/dist/assets/{TransferDrawerPage-oV7ickRP-Bq_Xcqnx.js → TransferDrawerPage-oV7ickRP-yOers3_6.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CECDKjNn-BzVtu32L.js → TreasuryOverviewPage-CECDKjNn-HTBJsJ5M.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-YS83Frko.js → TreasuryPromoPage-Bgt7uGAE-oIwaWu5X.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-QyWxshsI-CQPDqfyA.js → TreasuryStatementsPage-QyWxshsI-BxKUXQKE.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BLmfU0VD-CSvnMnxI.js → TreasuryTaxLetterPage-BLmfU0VD-CZkFVEWV.js} +1 -1
- package/dist/assets/{TrendChart-C_6ob-SX-D7KWuN6Y.js → TrendChart-C_6ob-SX-BWR7UfmP.js} +2 -2
- package/dist/assets/{TrendWithTransactions-lMD2sZ-C-KD4WKX16.js → TrendWithTransactions-lMD2sZ-C-B_BL8w82.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-01TUtrQ3.js → UncategorizedAccountsMappingPage-DEgz17_R-CooBTMrf.js} +7 -7
- package/dist/assets/{UnitIntegrationPage-D9Pzxqju-BOLWJuwD.js → UnitIntegrationPage-D9Pzxqju-CvrKT10L.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CJYvOjh0-D_FvrAyp.js → UploadAdditionalDocumentOverlay-CJYvOjh0-D-S1zfGQ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-D-r0NVE--B3f5wBDW.js → Vendor2FAPopup-D-r0NVE--CwiNcgO0.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-OnrOc4ob.js → VendorACHDetailsPage-Dv6bTD6Y-13eGKSpU.js} +1 -1
- package/dist/assets/{VendorDetailPage-BhfawsBd-n1Xsq3nw.js → VendorDetailPage-BhfawsBd-Caqe1lVz.js} +11 -11
- package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-CKSdgGUn.js → VendorDomesticWireDetailsPage-BjmlrfTQ-t6Qb8_Zl.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-DLw68imQ.js → VendorFiling1099EditablePage-glvi0GTU-Ctoy4jdk.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-UIFfUs4N.js → VendorFirstReviewPage-DUuUM8ZT-CU9frkxN.js} +23 -23
- package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-CCF4TMxK.js → VendorInternationalWireDetailsPage--Lb-TviQ-DUgeyPBL.js} +13 -13
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-D3kLFHcQ.js → VendorInternationalWireSwiftDetailsPage-C6KviV2Z-CuCByIJB.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-CEeuSUbZ.js → VendorsAccountsSection-EmHO3wQ0-CSPWzKcg.js} +2 -2
- package/dist/assets/{VerifyDevice-DE3UbLEe--Pskj1Mq.js → VerifyDevice-DE3UbLEe-DJm7Kfur.js} +1 -1
- package/dist/assets/{VideoPlayer-Gw_PLr8F-BcXYYheO.js → VideoPlayer-Gw_PLr8F-BcD3Qyt1.js} +2 -2
- package/dist/assets/{VideoPopup-DPZYhLgy-DukYJkLb.js → VideoPopup-DPZYhLgy-CJt98Dbq.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CZvToguS-BXOU7iCW.js → WarningsDrawerPage-CZvToguS-Ba7pscqf.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-HKLobKLw.js → ZeniAccountDetailPage-CQhqngBz-CmRc3epW.js} +6 -6
- package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-D5cFrlFO.js → ZeniAccountListViewPage-CpX8vqYa-CrcimjI_.js} +5 -5
- package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-DUllEiZw.js → ZeniAccountNavBarPieces-DsUwG15z-DiPlFFTl.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-DA611IgH-C3rU7vC2.js → ZeniAccountPromoPage-DA611IgH-CipxvQgU.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-D14nFBbc.js → ZeniAccountSetupPage-CJv2Fk1i-BEZSbbPm.js} +3 -3
- package/dist/assets/{ZeniCopyright-FFqiWypL-DffEEOor.js → ZeniCopyright-FFqiWypL-DiiU36pR.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-BK28gg1V.js → ZeniTransferAmountSlider-DSrBZUbA-BFqVxMPD.js} +1 -1
- package/dist/assets/{analytics-CThNEnNw.js → analytics-XaDXTZcq.js} +1 -1
- package/dist/assets/{analyticsHelper-DZktPTuO.js → analyticsHelper-CPNXs_BN.js} +1 -1
- package/dist/assets/{analyticsHelper-CczQLvkM-DIUzCxU0.js → analyticsHelper-CczQLvkM-BG3MqU2b.js} +1 -1
- package/dist/assets/{chartTypes-CwQl8aoN-BvppJ7T_.js → chartTypes-CwQl8aoN-DVag5uGx.js} +1 -1
- package/dist/assets/{commonDimensions-B1u_MhON-C0I2HTNT.js → commonDimensions-B1u_MhON-D3_HfKhE.js} +1 -1
- package/dist/assets/{dash.all.min-BUPngCw6.js → dash.all.min-DBAY9LgI.js} +1 -1
- package/dist/assets/{detailCommon-nYxvvV_i-Uo4bq2Po.js → detailCommon-nYxvvV_i-CatRpXM4.js} +1 -1
- package/dist/assets/{downloadPdf-yGlKpV2--C-eO59Y8.js → downloadPdf-yGlKpV2--PjZSq5HD.js} +1 -1
- package/dist/assets/{epic-Bko4IStj.js → epic-BLwHhkRJ.js} +2 -2
- package/dist/assets/{index-KtBRorGi.js → index-CEtuJXY3.js} +1 -1
- package/dist/assets/{index-BxXAQ-Kq.js → index-CdTBIE6I.js} +1 -1
- package/dist/assets/{index-DKkab5BS.js → index-Ci63exms.js} +6 -6
- package/dist/assets/{index-BV-YAw0P.js → index-DYDdrdFx.js} +1 -1
- package/dist/assets/{index-CwsnnJzI.js → index-DrmeEdvK.js} +1 -1
- package/dist/assets/{liveblocks-B3KbWbMM.js → liveblocks-CNYVvsag.js} +1 -1
- package/dist/assets/{lottie-CaGAfnTY.js → lottie-22bRan8M.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-xsS0oiYX.js → mapLoadingInProgressToTreeNode-DIAuL28N-uQ9ZpPGq.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-CG4Donkj.js → mapSectionWithAcOnlyToTreeNode-DRSmQ56_-BfuaGrUM.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-DvFYvzSg.js → mapSpacerToTreeNode-DOEVwUIo-DiQ0KiMB.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-DwP6n0dB.js → mapTimeframeBalancesToTreeNode-DbnAvW1M-DvZ_ljbo.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-C5viXNzP.js → mapTimeframeBalancesToTreeNode-DkrEWOxt-u1VbFdjk.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-DI0_1Fs5.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-DJb78S-u.js} +1 -1
- package/dist/assets/{react-C2wGlvWj.js → react-BUQtf2po.js} +2 -2
- package/dist/assets/{recharts-CXSQ4XPK.js → recharts-h5iNQbFd.js} +1 -1
- package/dist/assets/{sentry-DxvQlcJu.js → sentry-cYFeB6Pw.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-rZFEkHuM-BoVabqyh.js → toCOABalancesWithID-rZFEkHuM-BjqaEj9u.js} +1 -1
- package/dist/assets/{toChartData-C-dHC-Oz-BVDbQmqa.js → toChartData-C-dHC-Oz-CLJWjMkx.js} +1 -1
- package/dist/assets/{uploadAttachment-D3clfqPu-BH3cXou6.js → uploadAttachment-D3clfqPu-NbmOED_L.js} +15 -15
- package/dist/assets/{uploadReceipts-Bkf_PaOH-BF2MpIUs.js → uploadReceipts-Bkf_PaOH-DuaAGaHX.js} +1 -1
- package/dist/assets/{url-DuX7Wo4B.js → url-B-8T_WZb.js} +1 -1
- package/dist/assets/{url-y5lCWhwX.js → url-DPKHmOp_.js} +1 -1
- package/dist/assets/{utils-C70QTjQC.js → utils-fBOyu0sO.js} +1 -1
- package/dist/assets/{zeni-epic-state-xFtF3OLs.js → zeni-epic-state-BwKvATgd.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-BhIGD0MP.js +0 -47
- package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-KhP9qsWJ.js +0 -1
- package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-B16BKcOV.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SpendManagementPerTabPage-D79c3Xqh-
|
|
2
|
-
import{
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SpendManagementPerTabPage-D79c3Xqh-D8DfakVn.js","assets/index-Ci63exms.js","assets/mui-bYXq4XMS.js","assets/core-3dlyNYRL.js","assets/sentry-cYFeB6Pw.js","assets/zeni-epic-state-BwKvATgd.js","assets/lottie-22bRan8M.js","assets/liveblocks-CNYVvsag.js","assets/utils-fBOyu0sO.js","assets/analytics-XaDXTZcq.js","assets/recharts-h5iNQbFd.js","assets/lexical-DPEnH3HH.js","assets/index-t8y498Dk.css","assets/StatusSwitcher-DYRXaLvx-GT20DbHu.js","assets/useLongPress-GCK2COYQ-8uipnze8.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{Fd as Ue,Fc as He,Fm as Ge,Fq as N,Fr as Ve,Fs as We,Ft as Ke,Fu as qe,ce as Je,cf as Qe,bb as Ye}from"./zeni-epic-state-BwKvATgd.js";import{d as Ze,av as Xe,Q as z,F as U,gc as et,ge as tt,V as o,gy as ot,bz as at,b as it,o as t,dw as nt,gP as O,bg as st,gn as lt,y as f,gQ as rt,gR as ct,gS as dt,p as x,an as mt,u as C,_ as ut,bS as pt,ak as ht,cf as bt,gT as yt,s as gt,al as wt}from"./index-Ci63exms.js";import{a as u}from"./core-3dlyNYRL.js";import{n as r,k as H}from"./mui-bYXq4XMS.js";import{a as ft}from"./liveblocks-CNYVvsag.js";import{K as Ct}from"./SpendManagementSection-BqWbsmBW-BhpclPa8.js";import{K as xt}from"./StatusSwitcher-DYRXaLvx-GT20DbHu.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./utils-fBOyu0sO.js";import"./lexical-DPEnH3HH.js";const D=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},u.createElement("path",{d:"M22.781 11.8215C22.7883 14.6988 21.6612 17.4629 19.6441 19.5146C17.627 21.5664 14.8825 22.7404 12.0055 22.7822C10.6005 22.8033 9.20515 22.5453 7.90056 22.023C6.59596 21.5008 5.40804 20.7247 4.40567 19.7399C3.40331 18.755 2.60645 17.5809 2.06132 16.2857C1.51619 14.9905 1.23362 13.6 1.23002 12.1948C1.22199 9.31703 2.34875 6.55215 4.36593 4.49975C6.38312 2.44735 9.1281 1.27292 12.0055 1.23117C13.4108 1.21016 14.8063 1.46837 16.111 1.99085C17.4158 2.51332 18.6038 3.28965 19.6061 4.27481C20.6085 5.25996 21.4053 6.43433 21.9503 7.72981C22.4953 9.02529 22.7777 10.4161 22.781 11.8215Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M17.1573 10.374H9.83934C9.05979 10.374 8.31216 10.6766 7.76093 11.2151C7.2097 11.7537 6.90002 12.4841 6.90002 13.2457C6.90002 14.0074 7.2097 14.7378 7.76093 15.2764C8.31216 15.8149 9.05979 16.1175 9.83934 16.1175H11.309",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M14.2151 13.2434L17.1544 10.3717L14.2151 7.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),w={width:new f(343,545,545),containerTop:new f(17,25,25),containerPaddingLeftRight:new f(C[4],C[7])},St=r.div`
|
|
3
3
|
position: fixed;
|
|
4
4
|
top: 0;
|
|
5
5
|
left: 0;
|
|
@@ -18,11 +18,11 @@ import{fy as Ue,fx as He,fH as Ge,fL as N,fM as Ve,fN as We,fO as Ke,fP as qe,ce
|
|
|
18
18
|
top: 100%;
|
|
19
19
|
}
|
|
20
20
|
100% {
|
|
21
|
-
top: ${
|
|
21
|
+
top: ${w.containerTop.valuePercentage(e)};
|
|
22
22
|
}
|
|
23
23
|
`,vt=({windowSize:e})=>H`
|
|
24
24
|
0% {
|
|
25
|
-
top: ${
|
|
25
|
+
top: ${w.containerTop.valuePercentage(e)};
|
|
26
26
|
}
|
|
27
27
|
100% {
|
|
28
28
|
top: 100%;
|
|
@@ -36,9 +36,9 @@ import{fy as Ue,fx as He,fH as Ge,fL as N,fM as Ve,fN as We,fO as Ke,fP as qe,ce
|
|
|
36
36
|
background: ${e=>e.theme.colors.grey5};
|
|
37
37
|
border-radius: ${t.sp2};
|
|
38
38
|
position: relative;
|
|
39
|
-
top: ${e=>e.fade?"100%":
|
|
40
|
-
padding: ${e=>`${t.sp7} ${
|
|
41
|
-
width: ${e=>
|
|
39
|
+
top: ${e=>e.fade?"100%":w.containerTop.valuePercentage(e.windowSize)};
|
|
40
|
+
padding: ${e=>`${t.sp7} ${w.containerPaddingLeftRight.valuePx(e.windowSize)}`};
|
|
41
|
+
width: ${e=>w.width.valuePx(e.windowSize)};
|
|
42
42
|
animation: ${e=>Tt(e)} 0.25s linear;
|
|
43
43
|
box-shadow: ${x.Elevation2Dark};
|
|
44
44
|
`,It=r(pt)`
|
|
@@ -82,14 +82,14 @@ import{fy as Ue,fx as He,fH as Ge,fL as N,fM as Ve,fN as We,fO as Ke,fP as qe,ce
|
|
|
82
82
|
display: flex;
|
|
83
83
|
align-items: center;
|
|
84
84
|
color: ${e=>e.showCopyText?e.theme.colors.primary:e.theme.colors.grey1};
|
|
85
|
-
`,
|
|
85
|
+
`,Rt=r(bt)`
|
|
86
86
|
margin-right: ${t.sp2};
|
|
87
87
|
color: ${e=>e.showCopyText?e.theme.colors.champion:e.theme.colors.primary};
|
|
88
|
-
`,
|
|
88
|
+
`,Pt=r(gt)`
|
|
89
89
|
width: ${t.sp3};
|
|
90
90
|
height: ${t.sp3};
|
|
91
91
|
color: ${x.success};
|
|
92
|
-
`,
|
|
92
|
+
`,Ft=r(ut)`
|
|
93
93
|
width: ${t.sp4};
|
|
94
94
|
height: ${t.sp4};
|
|
95
95
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -100,13 +100,13 @@ import{fy as Ue,fx as He,fH as Ge,fL as N,fM as Ve,fN as We,fO as Ke,fP as qe,ce
|
|
|
100
100
|
&:hover {
|
|
101
101
|
color: ${e=>e.theme.colors.primary};
|
|
102
102
|
}
|
|
103
|
-
`,
|
|
103
|
+
`,_t=r.div`
|
|
104
104
|
width: 100%;
|
|
105
|
-
`,
|
|
105
|
+
`,Ot=r(wt)`
|
|
106
106
|
color: ${e=>e.theme.colors.primary};
|
|
107
107
|
position: absolute;
|
|
108
108
|
bottom: 22px;
|
|
109
|
-
`,M=U.getLocalizedStrings().common.copyToClipBoard;function
|
|
109
|
+
`,M=U.getLocalizedStrings().common.copyToClipBoard;function Dt(e){const p=z(),[,h]=ct(),[c,d]=u.useState(!0),[i,a]=u.useState(!1),[s,n]=u.useState(!1),{isMobileOrTabletScreen:y}=dt(),S=()=>{if(c){const g=e.botEmail;h(g),d(!1)}},T=()=>{a(!0)},v=()=>{a(!1)};return u.useEffect(()=>{c===!1&&setTimeout(()=>{d(!0)},2e3)},[c]),o.jsx(St,{windowSize:p,role:"presentation",style:{background:x.overlayDark,...e.style},children:o.jsx(mt,{onClickAway:()=>{n(!0),setTimeout(()=>e.onCancelClick?.(),250)},children:o.jsxs(kt,{windowSize:p,className:s?"fade":"",fade:s,children:[o.jsx(Ft,{onClick:()=>{n(!0),setTimeout(()=>e.onCancelClick?.(),250)}}),o.jsx(It,{children:e.title}),o.jsx(_t,{children:e.descriptionLines.map((g,l)=>o.jsxs(Et,{children:[o.jsx($t,{children:g.icon}),o.jsx(Bt,{windowSize:p,children:g.text})]},l))}),o.jsxs(Lt,{onClick:S,onMouseOver:T,onMouseLeave:v,showCopyIcon:c,showCopyText:i,children:[o.jsx(Rt,{showCopyText:i,children:e.botEmail}),c?o.jsx(jt,{windowSize:p,showCopyText:i&&!y,children:o.jsx(At,{})}):o.jsx(Pt,{})]}),o.jsx(Ot,{children:c?i&&!y?M.copy:null:M.copied})]})})})}const G=U.getLocalizedStrings(),m=G.spendManagement,{common:{texts:{comments:Mt}},collaboration:{threads:{placeholder:{addANewComment:Nt,replyAComment:zt},tooltip:{resolveComment:Ut,unResolveComment:Ht}}}}=G,Gt={drawerSectionPaddingLeftRight:new f(C[4],C[5])},Vt=rt(()=>Ye(()=>import("./SpendManagementPerTabPage-D79c3Xqh-D8DfakVn.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),co=e=>{const p=Ze(),h=Xe(),c=z(),{transactionList:d,allSubTabs:i,isAdmin:a,botEmail:s,isEmployee:n=!1,currentTab:y,currentSubTab:S,approvalCount:T,fetchState:v,analytics:g,entity:l,uiState:V,searchText:$,filters:W,vendorSearchAutoCompleteData:K,vendorSearchAutoCompleteActions:q,createdByUserList:J,createdByUserListFetchState:B,downloadParams:Q,downloadState:Y,isDownloadEnabled:Z,isShowDeletedBillsEnabled:X,isShowDeletedReimbursementEnabled:ee,isBillPayCommentingEnabled:E,isReimbursementCommentingEnabled:L,isDetectInsufficientFundsEnabled:te=!1,updateTabToState:oe,onSubtabChange:A,onReloadTransactions:ae,onTransactionClick:j,onClickSetupIcon:R,onBackClick:ie,onAddTransactionClick:ne,onColumnSortConfigChanged:se,onSearchTextChanged:le,onClickMenuIcon:re,onFiltersChange:ce,updateDownloadStateHandler:de,bulkSubmissionLimit:me=10,isBulkActionAllowed:ue=!1,isRecurringBillInBulkActionList:pe=!1,transactionsSelectedForBulkAction:he=[],allowedBulkActions:be=[],bulkSubmissionFetchState:ye,updateBulkActionList:ge,removeAllTransactionsFromBulkActionList:we,onProceedForBulkActionClick:fe}=e,Ce=["draft","pending_approval","scheduled","paid"],xe=b=>{j(b,y)},Se=o.jsx(Vt,{botEmail:s,transactionList:d,allSubTabs:i,isAdmin:a,selectedTab:y,selectedSubTab:S,fetchState:v,onSubtabChange:A,onTransactionRowClick:xe,onReloadTransactions:ae,onColumnSortConfigChanged:se,analytics:g,entity:l,uiState:V,searchText:$,isShowDeletedBillsEnabled:X,isShowDeletedReimbursementEnabled:ee,isBillPayCommentingEnabled:E,isReimbursementCommentingEnabled:L,bulkSubmissionLimit:me,isBulkActionAllowed:ue,isRecurringBillInBulkActionList:pe,transactionsSelectedForBulkAction:he,isDetectInsufficientFundsEnabled:te,allowedBulkActions:be,bulkSubmissionFetchState:ye,updateBulkActionList:ge,removeAllTransactionsFromBulkActionList:we,onProceedForBulkActionClick:fe}),Te=b=>{oe(b),A("all")},ve=Ue(h.loggedInUserRoleMap),[P,ke]=u.useState(!1),[Ie,F]=u.useState(!1),$e=b=>{ke(b)},Be=l==="bill_pay"?He(h.loggedInUserRoleMap):Ge(h.loggedInUserRoleMap),Ee={entity:l,showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!0,newButtonLabel:"New",isSearchOpen:P,searchPlaceHolder:l==="bill_pay"?m.billPay.billsByTabs.searchPlaceHolder:m.reimbursement.reimbursementByTabs.searchPlaceHolder,searchText:$,searchTextBoxStyle:{right:"204px"},showSettingsIconOnNavbar:Be,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!0,disableDownloadButton:Z===!1,downloadParams:Q,downloadState:Y,filters:W,vendorSearchAutoCompleteData:K,vendorSearchAutoCompleteActions:q,createdByUserListLoaded:l==="bill_pay"||N(h.loggedInUserRole??[])?!0:B==="Completed"||B==="Error",analytics:g,onNewButtonClick:ne,onSearchOpen:$e,onSearchTextChanged:le,onClickSetupIcon:R,onClickEmailInfoIcon:()=>F(!0),onFiltersChange:ce,getFilterOptions:l==="bill_pay"||l==="reimbursement"?()=>Wt(l,J??[],h.loggedInUserRole??[],[]):void 0,updateDownloadStateHandler:de},Le=o.jsx(Ct,{spendManagementSectionProps:Ee}),[Ae,je]=u.useState(null),[Re,k]=u.useState(!1),{setRequestToOpenThread:Pe}=u.useContext(et),Fe=`dashboard_${h.currentTenant?.companyId}`,_=l==="bill_pay"?"bill":"reimbursement",{threads:_e}=tt({application:"dashboard",companyId:h.currentTenant?.companyId,tab:_,entityId:Ae?.entityId,isGlobalComment:!1},"both",!1),Oe={openAllThreadsDrawer:b=>{je({...b}),k(!0)}},De=(b,I)=>{const{companyId:Me,entityId:Ne,entityType:ze}=b;k(!1),Pe({threadId:I,companyId:Me,entityType:ze}),j(Ne,y)};return o.jsx(ot,{sharedItems:{sharedFunctions:{subtreeFunctions:Oe},sharedRef:void 0},children:o.jsxs(Kt,{children:[o.jsx(at,{source:"SpendManagementListViewPage",title:l==="bill_pay"?m.billPay.billsByTabs.pageTitle:m.reimbursement.reimbursementByTabs.pageTitle,showBackButton:!n&&!ve,showMenuIcon:c==="medium-compact"||c==="small",backgroundColor:p.colors.grey4,style:{zIndex:3,...it.largeSemiBold.cssObject},onBackClick:ie,rightSideComponent:Le,onClickMenuIcon:re,isSearchOpen:P}),o.jsxs(qt,{children:[o.jsx(Jt,{children:o.jsx(xt,{tabIds:Ce,approvalCount:T,selectedTab:y,entity:l,enablePerformanceTracking:!1,onTabSelectedChange:Te,onClickSetupIcon:R})}),Se]}),Ie?o.jsx(Dt,{botEmail:s,onCancelClick:()=>F(!1),title:l==="bill_pay"?m.billPay.billsByTabs.emailInfoTitle:m.reimbursement.reimbursementByTabs.emailInfoTitle,descriptionLines:l==="bill_pay"?[{icon:o.jsx(D,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription1},{icon:o.jsx(nt,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription2},{icon:o.jsx(O,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription3}]:[{icon:o.jsx(D,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription1},{icon:o.jsx(st,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription2},{icon:o.jsx(O,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription3}]}):null,l==="bill_pay"&&E||l==="reimbursement"&&L?o.jsx(ft,{id:Fe,children:o.jsx(lt,{isDrawerOpen:Re,allowComposer:!1,drawerTitle:Mt,threads:_e,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:h.currentTenant?.companyId,isGlobalComment:!1,tab:_},isLoading:!1,textOverrides:{composerPlaceholder:Nt,replyComposerPlaceholder:zt,threadResolve:Ut,threadUnResolve:Ht},onThreadClick:(b,I)=>De(b,I),onCloseAllThreadsDrawer:()=>k(!1),drawerSectionStyle:{width:c==="small"?"100%":"400px",boxSizing:c==="small"?"border-box":"content-box",padding:`${t.sp0} ${Gt.drawerSectionPaddingLeftRight.valuePx(c)}`,backgroundColor:p.colors.background},collapsibleThreadStyle:{width:c==="small"?"100%":"360px"}})}):null]})})},Wt=(e,p,h,c)=>{const d=m.filters.filterOptions;return e==="bill_pay"?Ve.reduce((i,a)=>{switch(a.value){case"amount":return{...i,[a.value]:d.billAmountOptions};case"paymentMethod":return{...i,[a.value]:d.paymentMethodOptions};case"status":return{...i,[a.value]:[...d.commonStatusOptions,...d.billStatusOptions]};case"paymentType":return{...i,[a.value]:d.billPaymentTypeOptions};default:return{...i,[a.value]:[]}}},{}):e==="reimbursement"?(N(h)?We:Ke).reduce((i,a)=>{switch(a.value){case"createdBy":{if(p?.length===0)return{...i,[a.value]:[]};const s=p.map(n=>({label:n?.firstName||n?.lastName?`${n?.firstName} ${n?.lastName}`:n?.email??"",value:n.userId,photo:n?.photo,email:n?.email}));return{...i,[a.value]:s}}case"paymentMethod":return{...i,[a.value]:d.paymentMethodOptions};case"status":return{...i,[a.value]:d.commonStatusOptions};case"amount":return{...i,[a.value]:d.reimbursementAmountOptions};default:return{...i,[a.value]:[]}}},{}):qe.reduce((i,a)=>{switch(a.value){case"assignee":{if(p?.length===0)return{...i,[a.value]:[]};const s=p.map(n=>({label:n?.firstName||n?.lastName?`${n?.firstName} ${n?.lastName}`:n?.email??"",value:n.userId,photo:n?.photo,email:n?.email}));return{...i,[a.value]:s}}case"status":return{...i,[a.value]:[...Qe.map(s=>({label:s.name,value:s.code}))]};case"priority":return{...i,[a.value]:[...Je.map(s=>({label:s.name,value:s.code}))]};case"tag":return{...i,[a.value]:[...c.map(s=>({label:s.name,value:s.tagId}))]};default:return{...i,[a.value]:[]}}},{})},Kt=r.div`
|
|
110
110
|
display: flex;
|
|
111
111
|
min-height: 100%;
|
|
112
112
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a8 as Ot,cB as Mt,F as ee,Q,kQ as Vt,V as t,ab as Wt,cm as Kt,cn as Ut,co as Gt,aO as Ht,o as i,ca as Xt,cj as it,g1 as Zt,b1 as qt,cq as Qt,iK as Yt,iL as Jt,A as ei,bQ as Z,bL as ti,aQ as ii,y as g,d as Ge,g2 as oi,kR as ni,p as q,cV as li,al as W,ak as O,ag as re,kS as ri,f5 as si,kT as ai,kU as gt,kV as bt,k0 as di,kW as ci,kX as pi,bO as yt,b as Ce,aK as J,av as He,gC as Xe,a7 as Ze,ge as qe,cO as xt,kY as wt,kZ as Be,aL as _e,k_ as Qe,aH as xe,iT as ft,iU as $t,k$ as vt,iS as St,cv as kt,cy as Tt,l0 as R,l1 as Pt,gq as jt,cT as Ct,
|
|
1
|
+
import{a8 as Ot,cB as Mt,F as ee,Q,kQ as Vt,V as t,ab as Wt,cm as Kt,cn as Ut,co as Gt,aO as Ht,o as i,ca as Xt,cj as it,g1 as Zt,b1 as qt,cq as Qt,iK as Yt,iL as Jt,A as ei,bQ as Z,bL as ti,aQ as ii,y as g,d as Ge,g2 as oi,kR as ni,p as q,cV as li,al as W,ak as O,ag as re,kS as ri,f5 as si,kT as ai,kU as gt,kV as bt,k0 as di,kW as ci,kX as pi,bO as yt,b as Ce,aK as J,av as He,gC as Xe,a7 as Ze,ge as qe,cO as xt,kY as wt,kZ as Be,aL as _e,k_ as Qe,aH as xe,iT as ft,iU as $t,k$ as vt,iS as St,cv as kt,cy as Tt,l0 as R,l1 as Pt,gq as jt,cT as Ct,dr as Ye,u as p}from"./index-Ci63exms.js";import{a as P,w as Bt}from"./core-3dlyNYRL.js";import{n as o,b as X}from"./mui-bYXq4XMS.js";import{Gb as Se,FT as ke,Fn as Le,bq as _t}from"./zeni-epic-state-BwKvATgd.js";import{K as mi,L as ui,_ as hi}from"./StatusSwitcher-DYRXaLvx-GT20DbHu.js";import{d as Lt}from"./useLongPress-GCK2COYQ-8uipnze8.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";const me=ee.getLocalizedStrings().spendManagement.billPay.billsByTabs.header,ze={key:"name",value:me.name,sortOrder:"ascending",width:new g(p[5],p[5])},De={key:"invoiceDate",value:me.invoiceDate,sortOrder:"ascending",width:new g(20,20)},gi={key:"dueDate",value:me.dueDate,sortOrder:"ascending",width:new g(20,20)},Je={key:"dueDate",value:me.paymentDate,sortOrder:"ascending",width:new g(20,20)},et={key:"status",value:me.status,sortOrder:"ascending",width:new g(18,18)},bi={key:"paymentMethod",value:me.paymentMethod,sortOrder:"ascending",width:new g(18,18)},Ie={key:"amount",value:me.amount,sortOrder:"ascending",width:new g(10,10)},be=[ze,De,gi,et,Ie],yi=[ze,De,Je,et,Ie],xi=[ze,De,Je,et,Ie],wi=[ze,De,Je,bi,Ie],ge={headerLastColumnTopPadding:new g(p[0],p[4]),headerLastColumnRightPadding:new g(p[3],p[11]),headerLastColumnBottomPadding:new g(p[0],p[4]),headerLastColumnLeftPadding:new g(p[0],p[4]),headerHeight:new g(ft,$t)};function fi({companyNameSticky:e,currentTab:n,onColumnSortConfigChanged:c,sortConfig:l}){const d=Ge(),b=Q(),[y,x]=P.useState(_i(n));P.useEffect(()=>{const a=[...y];for(const s of a)s.key===l.sortKey?s.sortOrder=l.sortOrder:s.sortOrder="ascending";x(a)},[l.sortKey,l.sortOrder]);const f=(a,s)=>{let $=s;l.sortKey===a&&($=s==="ascending"?"descending":"ascending"),c?.(a,$)},u=y.find(a=>a.key===l.sortKey)??y[0],h=a=>y.find(s=>s.key===a)?.value??"",m=y.map(a=>a.key),w=ee.getLocalizedStrings().spendManagement.billPay.billsByTabs;return b==="small"?t.jsxs(ot,{windowSize:b,companyNameSticky:!1,children:[t.jsxs(ki,{children:[t.jsx(Pi,{children:t.jsx(Ti,{})}),t.jsx(yt,{title:w.sortBy,placeholder:w.sortBy,pickerValues:m,valueToLabel:h,selectedValue:l.sortKey,onPickerSelectionChanged:a=>{f(a,"ascending")},optionTextStyle:Ce.smallRegular,titleTextStyle:Ce.smallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.background})]}),t.jsxs(Bi,{onClick:()=>f(u.key,u.sortOrder),"data-testid":J("bill-pay-list-header-mobile",l.sortKey),children:[t.jsx(re,{children:u.value}),t.jsx(nt,{sortDataValue:l.sortKey,headerdata:u,children:t.jsx(lt,{})})]})]}):t.jsx(ot,{companyNameSticky:e,windowSize:b,children:y.map(a=>t.jsxs(vi,{companyNameSticky:e&&a.key==="name",sortDataValue:l.sortKey,actualDataValue:a.key,wrapperWidth:a.width,windowSize:b,children:[t.jsxs(Ci,{onClick:()=>f(a.key,a.sortOrder),"data-testid":J("bill-pay-list-header",l.sortKey),children:[t.jsx(re,{children:a.value}),t.jsx(nt,{sortDataValue:l.sortKey,headerdata:a,children:t.jsx(lt,{})})]}),t.jsx(ji,{sortDataValue:l.sortKey,windowSize:b,isVisible:l.sortKey===a.key&&a.key!=="dueDate",children:t.jsx(Si,{onClick:()=>f("dueDate","ascending"),"data-testid":J("bill-pay-list-header-sort-close",l.sortKey)})})]},a.key))})}const $i=Bt.memo(fi),ot=o(re)`
|
|
2
2
|
width: 100%;
|
|
3
3
|
top: ${i.sp0};
|
|
4
4
|
left: ${i.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as B,d as _,F as L,V as o,ck as V,o as r,gU as se,u as R,n as ie,b as
|
|
1
|
+
import{Q as B,d as _,F as L,V as o,ck as V,o as r,gU as se,u as R,n as ie,b as q,bF as Z,y as J,gV as ce,gW as de,cY as ee,bG as I,b8 as pe,ag as te,gX as ue,bE as oe,av as he,gY as ge,gZ as me,ak as D,b7 as fe,g_ as xe,ax as ye,g$ as Ce,h0 as be,p as ve,cV as we,bL as $e,fX as Se,A as je,M as H,_ as ke,fY as Le,aQ as Oe}from"./index-Ci63exms.js";import{a}from"./core-3dlyNYRL.js";import{n as l,k as Ee}from"./mui-bYXq4XMS.js";import{Fu as Ae,Fs as Ie,Ft as Fe,Fq as Me,Fr as Te}from"./zeni-epic-state-BwKvATgd.js";const Re=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -6,7 +6,7 @@ import{Q as B,d as _,F as L,V as o,ck as V,o as r,gU as se,u as R,n as ie,b as Z
|
|
|
6
6
|
color: ${e=>e.theme.colors.primary};
|
|
7
7
|
width: ${r.sp3};
|
|
8
8
|
height: ${r.sp3};
|
|
9
|
-
`,N=({value:e,defaultMenuIsOpen:t=!1,options:n,placeHolder:i,onChange:p,getOptionLabel:s})=>{const C=_(),y=a.useRef(null),h=Pe(C),b=n.find(f=>f.value===e);return a.useEffect(()=>{const f=setTimeout(()=>{y.current!=null&&t&&y.current.focus()},300);return()=>{clearTimeout(f)}},[t]),o.jsx(
|
|
9
|
+
`,N=({value:e,defaultMenuIsOpen:t=!1,options:n,placeHolder:i,onChange:p,getOptionLabel:s})=>{const C=_(),y=a.useRef(null),h=Pe(C),b=n.find(f=>f.value===e);return a.useEffect(()=>{const f=setTimeout(()=>{y.current!=null&&t&&y.current.focus()},300);return()=>{clearTimeout(f)}},[t]),o.jsx(Z,{ref:y,isMulti:!1,value:b,onChange:f=>{p(f)},placeholder:i,options:n,styles:h,openMenuOnFocus:!0,components:{Option:f=>ze(f,s),SingleValue:f=>_e(f,s)}})},_e=(e,t)=>{const n=t?.(e.data.value)??e.data.label;return o.jsx(I.SingleValue,{...e,children:o.jsx(pe,{children:n})})},ze=(e,t)=>{const{isSelected:n}=e,i=t?.(e.data.value)??e.data.label;return o.jsx(I.Option,{...e,children:o.jsxs(Re,{children:[o.jsx(te,{children:i}),n?o.jsx(Be,{}):null]})})},Pe=e=>({placeholder:t=>({...t,color:e.colors.grey1,...q.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}`})}),Ve="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",De=l.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: flex-start;
|
|
12
12
|
padding: ${r.sp2} ${r.sp3};
|
|
@@ -52,7 +52,7 @@ import{Q as B,d as _,F as L,V as o,ck as V,o as r,gU as se,u as R,n as ie,b as Z
|
|
|
52
52
|
`,Xe=l(Oe)`
|
|
53
53
|
overflow: hidden;
|
|
54
54
|
text-overflow: ellipsis;
|
|
55
|
-
`,
|
|
55
|
+
`,qe=({options:e,value:t,placeHolder:n,filterCategoryType:i,searchAutoCompleteData:p,searchAutoCompleteActions:s,onChange:C})=>{const y=_(),h=be(y),[b,f]=a.useState(e);a.useEffect(()=>{i==="searchAutocomplete"&&p?.entityAutoCompleteView.fetchState==="Completed"&&f(d=>xe([...d,...p?.entityAutoCompleteView!=null?Ze(p?.entityAutoCompleteView):[]],"value"))},[p?.entityAutoCompleteView.fetchState]);const S=i==="searchAutocomplete"?t.map(d=>({label:d,value:d})):t.map(d=>b.find(x=>x.value===d)),v=a.useRef(ye(d=>s?.onAutoCompleteInputChange?.(d),500,{trailing:!0})).current,j=p?.entityAutoCompleteView.fetchState,O={options:e,filterCategoryType:i,searchAutoCompleteStatus:j},$=L.getLocalizedStrings().common.filters;return o.jsx(De,{children:i==="dateRange"?o.jsx(Ce,{onDateRangeChange:d=>{C([{label:$.startDate,value:d.startDate??""},{label:$.endDate,value:d.endDate??""}])},selectedDates:t}):o.jsxs(He,{children:[S.length===0&&i==="user"&&o.jsx(Qe,{}),o.jsx(Z,{...O,isMulti:!0,hideSelectedOptions:!1,value:S,onInputChange:d=>{i==="searchAutocomplete"&&v(d)},onChange:d=>{C(d)},placeholder:n,options:b,styles:h,menuPosition:"fixed",components:{Option:et,MultiValueLabel:Je,MultiValueRemove:tt},filterOption:(d,x)=>rt(d,x,i),noOptionsMessage:()=>ot(i,j)})]})})},Ze=e=>(e?.vendor.map(t=>({label:t.name,value:t.name}))??[]).sort((t,n)=>(t.label??"").localeCompare(n.label??"")),Je=e=>{const{selectProps:t}=e,{options:n,filterCategoryType:i}=t,p=n.findIndex(s=>s.value===e.data.value);return o.jsx(I.MultiValueLabel,{...e,children:o.jsxs(Ne,{children:[re(e.data.photo,e.data.label.split(" ")[0],e.data.label.split(" ")[1]!=null?e.data.label.split(" ")[1]:"",p,i),o.jsx(Xe,{children:e.children})]})})},et=e=>{const{onMouseMove:t,onMouseOver:n,isSelected:i,...p}=e.innerProps,{options:s,filterCategoryType:C}=e.selectProps,y=s.findIndex(b=>b.value===e.data.value),h={...e,innerProps:p};return o.jsx(I.Option,{...h,children:o.jsxs(Ue,{children:[o.jsxs(We,{children:[re(e.data.photo,e.data.label.split(" ")[0],e.data.label.split(" ")[1]!=null?e.data.label.split(" ")[1]:"",y,C),o.jsx(te,{children:e.label})]}),e.isSelected&&o.jsx(Ye,{})]})})},tt=e=>o.jsx(I.MultiValueRemove,{...e,children:o.jsx(Ke,{})}),ot=(e,t)=>{const n=L.getLocalizedStrings().common.filters;if(e==="searchAutocomplete"){if(t==="In-Progress")return o.jsx(je,{size:"Small-Compact",start:!0});if(t==="Not-Started")return null;if(t==="Completed")return o.jsx(H,{children:n.noMatchesFound})}return o.jsx(H,{children:n.noOptions})},re=(e,t,n,i,p)=>p!=="user"?null:e==null?o.jsx(Le,{firstName:t,lastName:n,size:`${r.sp3}`,index:i,fontSize:"9px"}):o.jsx(Ge,{src:e.href,alt:L.getLocalizedStrings().common.filters.userProfileAltText,onError:({currentTarget:s})=>{s.onerror=null,s.src=Ve},loading:"lazy"}),rt=(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:[]},ne={valuesCombinationOperator:"ANY",values:[],matchingOperator:"equal"},M=(e,t)=>{switch(e){case"bill_pay":return Te;case"reimbursement":return Me(t)?Ie:Fe;case"task_management":return Ae}},T=(e,t)=>{if(e==="bill_pay"){const n=t;return L.getLocalizedStrings().spendManagement.filters.filterCategories.bills[n]}if(e==="reimbursement"){const n=t;return L.getLocalizedStrings().spendManagement.filters.filterCategories.reimbursements[n]}if(e==="task_management"){const n=t;return L.getLocalizedStrings().spendManagement.filters.filterCategories.taskManagement[n]}return""},nt=({currentFilters:e,selectedOption:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?{categoryCombinationOperator:"AND",categories:[{...ne,field:t.value}]}:{...e,categories:e.categories.map((i,p)=>p!==n?i:{...i,field:t.value,values:[]})},lt=({currentFilters:e,selectedOption:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?e:{...e,categories:e.categories.map((i,p)=>p!==n?i:{...i,matchingOperator:t.value})},at=({currentFilters:e,selectedOptions:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?e:{...e,categories:e.categories.map((i,p)=>p!==n?i:{...i,values:t.map(s=>s.value)})},st={width:new J(215,315)},W=l.div`
|
|
56
56
|
display: flex;
|
|
57
57
|
flex-direction: column;
|
|
58
58
|
row-gap: ${r.sp4};
|
|
@@ -139,7 +139,7 @@ import{Q as B,d as _,F as L,V as o,ck as V,o as r,gU as se,u as R,n as ie,b as Z
|
|
|
139
139
|
align-items: flex-start;
|
|
140
140
|
column-gap: ${r.sp3};
|
|
141
141
|
animation: ${ft} 0.4s;
|
|
142
|
-
`,le=a.forwardRef(({filters:e,filterValues:t,selectedEntity:n,vendorSearchAutoCompleteData:i,vendorSearchAutoCompleteActions:p,onFiltersChange:s},C)=>{const y=he(),h=B(),b=a.useCallback((c,u)=>{const g=nt({currentFilters:e,selectedOption:c,categoryIndex:u});s(g)},[e,s]),f=a.useCallback((c,u)=>{const g=lt({currentFilters:e,selectedOption:c,categoryIndex:u});s(g)},[e,s]),S=a.useCallback(c=>{if(e!=null){const u={...e,categoryCombinationOperator:c};s(u)}},[e,s]),v=a.useCallback(c=>{if(c===0&&e.categories!=null&&e.categories.length===1){s(
|
|
142
|
+
`,le=a.forwardRef(({filters:e,filterValues:t,selectedEntity:n,vendorSearchAutoCompleteData:i,vendorSearchAutoCompleteActions:p,onFiltersChange:s},C)=>{const y=he(),h=B(),b=a.useCallback((c,u)=>{const g=nt({currentFilters:e,selectedOption:c,categoryIndex:u});s(g)},[e,s]),f=a.useCallback((c,u)=>{const g=lt({currentFilters:e,selectedOption:c,categoryIndex:u});s(g)},[e,s]),S=a.useCallback(c=>{if(e!=null){const u={...e,categoryCombinationOperator:c};s(u)}},[e,s]),v=a.useCallback(c=>{if(c===0&&e.categories!=null&&e.categories.length===1){s(F);return}if(e.categories!=null&&e.categories.length!==0){if([...e.categories.slice(0,c),...e.categories.slice(c+1)].filter(u=>u.field!=null).length){const u={...e,categories:[...e.categories.slice(0,c),...e.categories.slice(c+1)]};s(u);return}s(F)}},[s,e]),j=()=>{e.categories!=null&&e.categories.length&&s({...e,categories:[...e.categories,{...ne}]})},O=()=>{s(F)},$=a.useCallback((c,u)=>{const g=at({currentFilters:e,selectedOptions:c,categoryIndex:u});s(g)},[e,s]),d=L.getLocalizedStrings().spendManagement.filters,x=()=>e.categories!=null&&e.categories.length!==0?o.jsxs(pt,{children:[o.jsxs(Y,{onClick:j,children:[o.jsx(it,{}),o.jsx(D,{children:d.addFilterBtnText})]}),o.jsxs(Y,{onClick:O,children:[o.jsx(ct,{}),o.jsx(D,{children:d.clearAllBtnText})]})]}):null,E=()=>e.categories==null||e.categories.length===0?o.jsx(W,{children:o.jsx(U,{children:o.jsxs(X,{children:[o.jsx(G,{children:o.jsx(K,{children:d.filterByLabel})}),o.jsx(Q,{children:o.jsx(N,{defaultMenuIsOpen:!0,onChange:b,placeHolder:d.categoryPlaceholder,getOptionLabel:c=>T(n,c),options:M(n,y.loggedInUserRole)})})]})})}):o.jsx(a.Fragment,{children:e.categories.map((c,u)=>{const g=M(n,y.loggedInUserRole??[]).find(w=>w.value===c.field),k=g?.type,m=g!=null?T(n,g?.value):"";return o.jsxs(U,{windowSize:h,children:[o.jsxs(X,{children:[o.jsxs(G,{children:[u===0&&o.jsx(K,{children:d.filterByLabel}),u!==0?o.jsx(ge,{categoryCombinationOperator:e.categoryCombinationOperator,onChange:S,buttonsDisabled:u>1}):null]}),o.jsx(Q,{children:o.jsx(N,{value:c.field,placeHolder:d.categoryPlaceholder,onChange:w=>b(w,u),getOptionLabel:w=>T(n,w),options:M(n,y.loggedInUserRole??[])})})]}),c.field?o.jsxs(xt,{children:[o.jsx(dt,{children:o.jsx(me,{categoryIndex:u,value:c.matchingOperator,onChange:f})}),o.jsxs(gt,{children:[o.jsx(mt,{windowSize:h,children:o.jsx(qe,{options:t[c.field]!=null?t[c.field]:[],placeHolder:k==="searchAutocomplete"?d.searchPlaceholder:`${d.select} ${m}`,value:c.values,filterCategoryType:k??"dropdown",onChange:w=>$(w,u),valuesCombinationOperator:c.valuesCombinationOperator,searchAutoCompleteData:i,searchAutoCompleteActions:p})}),o.jsx(ut,{onClick:()=>v(u),windowSize:h,children:o.jsx(ht,{})})]})]}):null]},c.field?c.field+u:u)})});return o.jsxs(W,{ref:C,children:[E(),x()]})});le.displayName="FiltersSelection";const yt=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{Q as B,d as _,F as L,V as o,ck as V,o as r,gU as se,u as R,n as ie,b as Z
|
|
|
157
157
|
`,bt=l.div`
|
|
158
158
|
padding-left: ${r.sp4};
|
|
159
159
|
padding-right: ${r.sp4};
|
|
160
|
-
`,vt=({entity:e,filters:t,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:i,disableFilters:p=!1,transactionsLoaded:s=!0,createdByUserListLoaded:C=!0,analytics:y,groupByFiltersComponent:h,onFiltersChange:b,getCategoryWiseOptions:f})=>{const S=a.useRef(null),[v,j]=a.useState(!1),O=a.useRef(!1),[$,d]=a.useState({bill_pay:{},reimbursement:{},task_management:{}}),[x,E]=a.useState("auto"),c=a.useRef(null),u=B(),g=a.useCallback(()=>{j(!1)},[]),k=L.getLocalizedStrings().common.strings.empty,m=a.useCallback(()=>{e!=="task_management"&&y?.trackSpendManagmentFilterClick(e),p===!1&&j(!0)},[p,y,e]);a.useEffect(()=>{f&&Object.keys($[e]).length===0&&C&&s&&d(A=>({...A,[e]:f()}))},[e,$,s,C]);const w=a.useCallback(()=>{if(t?.categories==null||t.categories.length===0)return h!=null?88+h.height:88;const A=c.current,P=A!=null?A.clientHeight:0;return u==="small"?"auto":R[7]+(P>0?P:88)+(h!=null?h.height:0)},[t,u,h]);a.useEffect(()=>{if(v!==O.current){E("auto");return}E(w())},[w,v]),a.useEffect(()=>{O.current=v},[v]),a.useEffect(()=>{x==="auto"&&E(w())},[x,w]);const ae=()=>o.jsx(ue,{anchorEl:S.current,open:v,onClose:g,paperStyle:{overflow:"visible"},children:o.jsxs(yt,{height:x,windowSize:u,children:[h!=null?o.jsx(Ct,{children:h?.component}):null,o.jsx(bt,{children:o.jsx(le,{filters:t,onFiltersChange:b,filterValues:$[e],selectedEntity:e,ref:c,vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n})})]})},t?.categories==null||t.categories.length===0?"smallBox":"largeBox"),z=t?.categories==null||t?.categories.length===0?0:t.categories.filter(A=>A.field!=null&&A.values.length>0).length;return o.jsxs(a.Fragment,{children:[o.jsx(ce,{searchPlaceholder:k,isFilterBtnActive:v||z>0,ref:S,isFilterDisabled:p,onFilterButtonClick:m,filtersCount:z,includeSearch:!1,filterText:k}),p!=!0&&ae()]})},wt=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:$t}=L.getLocalizedStrings(),St={filterIconContainerPaddingRight:new J(18,10)};function zt({spendManagementSectionProps:e}){const{entity:t,moreIconContainerStyle:n,searchTextBoxStyle:i,disableDownloadButton:p,filters:s,searchText:C,downloadParams:y,downloadState:h,showSettingsIcon:b=!0,showSettingsIconOnNavbar:f,showDownloadButtonOnNavbar:S,showStatementButtonOnNavbar:v,showPayEarlyButtonOnNavbar:j,groupByFiltersComponent:O,updateDownloadStateHandler:$,onMenuOpen:d}=e,x=B(),E=_(),[c,u]=a.useState(void 0);a.useEffect(()=>{h!=="Error"&&u(!1)},[h]);let g=$t.moreMenuOptions;f||(g=g.filter(m=>m.value!=="settings")),v||(g=g.filter(m=>m.value!=="statements")),j||(g=g.filter(m=>m.value!=="payEarly")),S||(g=g.filter(m=>m.value!=="download"));const k={};return e.entity==="charge_cards"?k.width="275px":e.entity==="reimbursement"&&(k.width="208px"),o.jsxs(Lt,{children:[o.jsxs(kt,{isSearchOpen:e.isSearchOpen&&x==="small",windowsize:x,children:[x!=="small"&&!e.hideSearchBtn?o.jsx(V,{style:{position:"absolute",left:"unset",...i},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:m=>{e.onSearchTextChanged?.(m)},onSearchOpen:e.onSearchOpen,inputWrapperStyle:k,searchIconMarginRight:e.entity==="charge_cards"?r.sp4:"10px"}):null,(e.entity==="bill_pay"||e.entity==="reimbursement"||e.entity==="task_management")&&e.onFiltersChange!=null?o.jsx(At,{size:x,children:o.jsx(vt,{entity:e.entity,groupByFiltersComponent:O,onFiltersChange:e.onFiltersChange,filters:e.filters,getCategoryWiseOptions:e.getFilterOptions,vendorSearchAutoCompleteData:e.vendorSearchAutoCompleteData,vendorSearchAutoCompleteActions:e.vendorSearchAutoCompleteActions,createdByUserListLoaded:e.createdByUserListLoaded,analytics:e.analytics})}):null,e.showEntityEmailInfoIconOnNavbar===!0?o.jsx(Et,{onClick:e.onClickEmailInfoIcon,children:o.jsx(jt,{})}):null,b?o.jsx(Ot,{onClick:()=>u(void 0),style:n,children:t==="bill_pay"||t==="reimbursement"||t==="charge_cards"?o.jsx(se,{entity:t,isMoreOption:!0,closeMenuOnSelect:!1,isMenuOpen:x!=="small"?c:void 0,options:g,onMenuOpen:d,customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),menu:m=>({...m,left:"23px",top:"29px",transform:"translateX(-100%)",width:"auto",backgroundColor:E.colors.grey5,borderRadius:r.sp1,boxShadow:`${r.sp0} 2px ${r.sp2} ${E.colors.dropShadowHover}`,whiteSpace:"nowrap"}),container:()=>({marginLeft:R[0]}),valueContainer:()=>({display:"flex","#react-select-2-placeholder":{marginRight:R[0],marginLeft:-1}})},onOptionSelection:m=>{m==="settings"?e.onClickSetupIcon?.():m==="statements"?e.onClickStatementsIcon?.():m==="payEarly"&&e.onClickPayEarlyIcon?.()},downloadProps:(t==="bill_pay"||t==="reimbursement")&&y!=null?{entity:t,isDisabled:p,filter:{filters:s,searchText:C},downloadParams:y,downloadState:h,updateDownloadStateHandler:$}:void 0}):o.jsx(
|
|
160
|
+
`,vt=({entity:e,filters:t,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:i,disableFilters:p=!1,transactionsLoaded:s=!0,createdByUserListLoaded:C=!0,analytics:y,groupByFiltersComponent:h,onFiltersChange:b,getCategoryWiseOptions:f})=>{const S=a.useRef(null),[v,j]=a.useState(!1),O=a.useRef(!1),[$,d]=a.useState({bill_pay:{},reimbursement:{},task_management:{}}),[x,E]=a.useState("auto"),c=a.useRef(null),u=B(),g=a.useCallback(()=>{j(!1)},[]),k=L.getLocalizedStrings().common.strings.empty,m=a.useCallback(()=>{e!=="task_management"&&y?.trackSpendManagmentFilterClick(e),p===!1&&j(!0)},[p,y,e]);a.useEffect(()=>{f&&Object.keys($[e]).length===0&&C&&s&&d(A=>({...A,[e]:f()}))},[e,$,s,C]);const w=a.useCallback(()=>{if(t?.categories==null||t.categories.length===0)return h!=null?88+h.height:88;const A=c.current,P=A!=null?A.clientHeight:0;return u==="small"?"auto":R[7]+(P>0?P:88)+(h!=null?h.height:0)},[t,u,h]);a.useEffect(()=>{if(v!==O.current){E("auto");return}E(w())},[w,v]),a.useEffect(()=>{O.current=v},[v]),a.useEffect(()=>{x==="auto"&&E(w())},[x,w]);const ae=()=>o.jsx(ue,{anchorEl:S.current,open:v,onClose:g,paperStyle:{overflow:"visible"},children:o.jsxs(yt,{height:x,windowSize:u,children:[h!=null?o.jsx(Ct,{children:h?.component}):null,o.jsx(bt,{children:o.jsx(le,{filters:t,onFiltersChange:b,filterValues:$[e],selectedEntity:e,ref:c,vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n})})]})},t?.categories==null||t.categories.length===0?"smallBox":"largeBox"),z=t?.categories==null||t?.categories.length===0?0:t.categories.filter(A=>A.field!=null&&A.values.length>0).length;return o.jsxs(a.Fragment,{children:[o.jsx(ce,{searchPlaceholder:k,isFilterBtnActive:v||z>0,ref:S,isFilterDisabled:p,onFilterButtonClick:m,filtersCount:z,includeSearch:!1,filterText:k}),p!=!0&&ae()]})},wt=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:$t}=L.getLocalizedStrings(),St={filterIconContainerPaddingRight:new J(18,10)};function zt({spendManagementSectionProps:e}){const{entity:t,moreIconContainerStyle:n,searchTextBoxStyle:i,disableDownloadButton:p,filters:s,searchText:C,downloadParams:y,downloadState:h,showSettingsIcon:b=!0,showSettingsIconOnNavbar:f,showDownloadButtonOnNavbar:S,showStatementButtonOnNavbar:v,showPayEarlyButtonOnNavbar:j,groupByFiltersComponent:O,updateDownloadStateHandler:$,onMenuOpen:d}=e,x=B(),E=_(),[c,u]=a.useState(void 0);a.useEffect(()=>{h!=="Error"&&u(!1)},[h]);let g=$t.moreMenuOptions;f||(g=g.filter(m=>m.value!=="settings")),v||(g=g.filter(m=>m.value!=="statements")),j||(g=g.filter(m=>m.value!=="payEarly")),S||(g=g.filter(m=>m.value!=="download"));const k={};return e.entity==="charge_cards"?k.width="275px":e.entity==="reimbursement"&&(k.width="208px"),o.jsxs(Lt,{children:[o.jsxs(kt,{isSearchOpen:e.isSearchOpen&&x==="small",windowsize:x,children:[x!=="small"&&!e.hideSearchBtn?o.jsx(V,{style:{position:"absolute",left:"unset",...i},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:m=>{e.onSearchTextChanged?.(m)},onSearchOpen:e.onSearchOpen,inputWrapperStyle:k,searchIconMarginRight:e.entity==="charge_cards"?r.sp4:"10px"}):null,(e.entity==="bill_pay"||e.entity==="reimbursement"||e.entity==="task_management")&&e.onFiltersChange!=null?o.jsx(At,{size:x,children:o.jsx(vt,{entity:e.entity,groupByFiltersComponent:O,onFiltersChange:e.onFiltersChange,filters:e.filters,getCategoryWiseOptions:e.getFilterOptions,vendorSearchAutoCompleteData:e.vendorSearchAutoCompleteData,vendorSearchAutoCompleteActions:e.vendorSearchAutoCompleteActions,createdByUserListLoaded:e.createdByUserListLoaded,analytics:e.analytics})}):null,e.showEntityEmailInfoIconOnNavbar===!0?o.jsx(Et,{onClick:e.onClickEmailInfoIcon,children:o.jsx(jt,{})}):null,b?o.jsx(Ot,{onClick:()=>u(void 0),style:n,children:t==="bill_pay"||t==="reimbursement"||t==="charge_cards"?o.jsx(se,{entity:t,isMoreOption:!0,closeMenuOnSelect:!1,isMenuOpen:x!=="small"?c:void 0,options:g,onMenuOpen:d,customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),menu:m=>({...m,left:"23px",top:"29px",transform:"translateX(-100%)",width:"auto",backgroundColor:E.colors.grey5,borderRadius:r.sp1,boxShadow:`${r.sp0} 2px ${r.sp2} ${E.colors.dropShadowHover}`,whiteSpace:"nowrap"}),container:()=>({marginLeft:R[0]}),valueContainer:()=>({display:"flex","#react-select-2-placeholder":{marginRight:R[0],marginLeft:-1}})},onOptionSelection:m=>{m==="settings"?e.onClickSetupIcon?.():m==="statements"?e.onClickStatementsIcon?.():m==="payEarly"&&e.onClickPayEarlyIcon?.()},downloadProps:(t==="bill_pay"||t==="reimbursement")&&y!=null?{entity:t,isDisabled:p,filter:{filters:s,searchText:C},downloadParams:y,downloadState:h,updateDownloadStateHandler:$}:void 0}):o.jsx(Ft,{onClick:e.onClickSetupIcon})}):null,e.showNewButtonOnNavbar===!0?o.jsx(o.Fragment,{children:x==="small"?o.jsx(It,{onClick:e.onNewButtonClick,children:o.jsx(Mt,{})}):o.jsx(ie,{variant:"primary",onClick:e.onNewButtonClick,label:e.newButtonLabel??"",size:"small",style:{height:"29px",paddingLeft:"12px",paddingRight:"12px",...q.extraSmallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"}})}):null]}),x==="small"&&!e.hideSearchBtn?o.jsx(V,{style:{position:"absolute",left:"5px",right:x!=="small"?"120px":"unset",top:r.sp6,width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:m=>{e.onSearchTextChanged?.(m)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0,inputWrapperStyle:e.entity==="charge_cards"?{width:270}:{}}):null]})}const jt=l(wt)`
|
|
161
161
|
height: ${r.sp4};
|
|
162
162
|
width: ${r.sp4};
|
|
163
163
|
`,kt=l.div`
|
|
@@ -215,7 +215,7 @@ import{Q as B,d as _,F as L,V as o,ck as V,o as r,gU as se,u as R,n as ie,b as Z
|
|
|
215
215
|
&:hover {
|
|
216
216
|
color: ${e=>e.theme.colors.primary};
|
|
217
217
|
}
|
|
218
|
-
`,
|
|
218
|
+
`,Ft=l(de)`
|
|
219
219
|
color: ${e=>e.theme.colors.hero};
|
|
220
220
|
width: ${r.sp4};
|
|
221
221
|
height: ${r.sp4};
|
|
@@ -223,7 +223,7 @@ import{Q as B,d as _,F as L,V as o,ck as V,o as r,gU as se,u as R,n as ie,b as Z
|
|
|
223
223
|
&:hover {
|
|
224
224
|
color: ${e=>e.theme.colors.primary};
|
|
225
225
|
}
|
|
226
|
-
`,
|
|
226
|
+
`,Mt=l(ee)`
|
|
227
227
|
height: ${r.sp4};
|
|
228
228
|
width: ${r.sp4};
|
|
229
229
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{StatementItem-Aal79YaO-XQmaXixd.js → StatementItem-Aal79YaO-3cBWg-5i.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as y,F as S,hD as b,V as o,A as g,o as r,ak as v,y as z,c0 as j,u as k}from"./index-
|
|
1
|
+
import{Q as y,F as S,hD as b,V as o,A as g,o as r,ak as v,y as z,c0 as j,u as k}from"./index-Ci63exms.js";import{a as P}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{g as L}from"./BoxItem-8PfNfaHq-CqIGaIYz.js";import{w as B}from"./downloadPdf-yGlKpV2--PjZSq5HD.js";const d=S.getLocalizedStrings().months,n={downloadButtonSize:new z(k[4],20)},C=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: ${r.sp3} ${r.sp4};
|
|
4
4
|
flex-direction: row;
|
package/dist/assets/{StatementsPage-BG_pNQzc-dvNXNLMV.js → StatementsPage-BG_pNQzc-C7UMTTVJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as S,Q as z,V as t,bz as C,F as P,b1 as I,o as r,p as m,cq as B,y as E,u as h,ak as L}from"./index-
|
|
1
|
+
import{d as S,Q as z,V as t,bz as C,F as P,b1 as I,o as r,p as m,cq as B,y as E,u as h,ak as L}from"./index-Ci63exms.js";import{a as p}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import{$ as M}from"./BoxItem-8PfNfaHq-CqIGaIYz.js";import{o as O}from"./commonDimensions-B1u_MhON-D3_HfKhE.js";import{O as N}from"./StatementItem-Aal79YaO-3cBWg-5i.js";import"./sentry-cYFeB6Pw.js";import"./zeni-epic-state-BwKvATgd.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./downloadPdf-yGlKpV2--PjZSq5HD.js";const x=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,b={listItemMargin:new E(h[3],h[8])},ot=({currentTenantCompanyName:e,authParams:g,downloadEndPoint:w,statementListView:a,accountLast4:f,onBackClick:y})=>{const k=S(),l=z(),$=p.createRef(),c=p.useRef(null),d=a.statements.length===0,j=()=>d===!1?O.transactionItemHeight:24,v=({index:i,style:n})=>{const s=a.statements[i];return d===!1?t.jsx(u,{windowSize:l,style:{...n,width:`calc(100% - 2*${b.listItemMargin.valuePx(l)})`},children:t.jsx(N,{currentTenantCompanyName:e,accountLast4:f,data:s,authParams:g,downloadEndPoint:w,boxType:M(i,a.statements.length)},s.id)}):t.jsx(R,{style:{...n},children:t.jsx(T,{children:t.jsx(u,{windowSize:l,children:t.jsx(H,{children:x.noStatements})})})})};return t.jsxs(V,{children:[t.jsx(C,{title:x.title,backgroundColor:k.colors.grey4,style:{zIndex:3},onBackClick:y,scrollableContent:c.current!=null?c:void 0,source:"StatementsPage"}),t.jsx(K,{children:t.jsx(I,{children:({height:i,width:n})=>t.jsx(q,{ref:$,height:i,width:n,outerRef:c,itemKey:s=>s,itemCount:a.statements.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},R=o.div``,u=o.div`
|
|
2
2
|
margin: ${e=>`${r.sp0} ${b.listItemMargin.valuePx(e.windowSize)}`};
|
|
3
3
|
&:hover {
|
|
4
4
|
position: relative;
|
package/dist/assets/{StatusSwitcher-DYRXaLvx-DnQc7FsU.js → StatusSwitcher-DYRXaLvx-GT20DbHu.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as $,V as d,ca as T,F as v,y as f,o as s,u as c,ag as z}from"./index-
|
|
1
|
+
import{Q as $,V as d,ca as T,F as v,y as f,o as s,u as c,ag as z}from"./index-Ci63exms.js";import{n as u,b as g}from"./mui-bYXq4XMS.js";function w(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(" ").filter(Boolean).map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}const _=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function A(e,a){if(typeof e=="string")return e;if(e!=null&&typeof e=="object"){const r=Object.values(e)[0];return typeof r=="string"?r:w(a)}return w(a)}function p(e,a,r){const n=e[a];return n!=null?A(n,r):null}const L=(e,a)=>{const{spendManagement:{billPay:{billsByTabs:{tabsById:r}},reimbursement:{reimbursementByTabs:{tabsById:n}},zeniAccounts:{zeniAccountList:{tabsById:l}}}}=v.getLocalizedStrings(),t=String(e);if(a)switch(a){case"bill_pay":{const i=p(r,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"reimbursement":{const i=p(n,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"zeni_accounts":{const i=p(l,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}}return(p(r,t,t)??p(n,t,t)??p(l,t,t)??w(t)).replace(/\s+/g,"_").toLowerCase()},{spendManagement:{billPay:{billsByTabs:{tabsById:x}},reimbursement:{reimbursementByTabs:{tabsById:y}},zeniAccounts:{zeniAccountList:{tabsById:M}}}}=v.getLocalizedStrings(),m={containerMarginLeft:new f(c[4],c[8]),containerMarginRight:new f(c[4],c[8]),segmentContainerMarginLeft:new f(c[4],c[8])},j=u.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{SubTabSwitcher-C75XU1EG-UKyrqTMF.js → SubTabSwitcher-C75XU1EG-BZOngUzL.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as r,A as g,o as s,ag as u,aY as m}from"./index-
|
|
1
|
+
import{V as r,A as g,o as s,ag as u,aY as m}from"./index-Ci63exms.js";import{n as i,b as a}from"./mui-bYXq4XMS.js";function v({allTabs:e,selectedTab:c,containerStyle:d,rightComponent:o,onTabChange:p}){const h=o!=null;return r.jsxs($,{style:d,hasRightComponent:h,children:[r.jsx(x,{children:e.map(t=>{const l=t.id===c,n=t.isDisabled!=null;return r.jsxs(y,{onClick:()=>{l===!1&&!n&&p(t)},isSelected:l,isDisabled:n,children:[r.jsx(b,{children:t.label}),t.countDetails?.count!=null?r.jsx(j,{children:r.jsx(f,{isCircular:t.countDetails.count==null||t.countDetails.count<10,children:r.jsx(D,{children:t.countDetails.isFetching?r.jsx(g,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):t.countDetails.count})})}):null]},t.id)})}),o]})}const $=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
justify-content: ${e=>e.hasRightComponent?"space-between":"flex-start"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as d}from"./index-
|
|
1
|
+
import{V as d}from"./index-Ci63exms.js";import{E as n,T as t}from"./ReloadCard-B2sJR97f-4aiyry-A.js";const o=r=>{function e(){return r.card.fetchState==="In-Progress"||r.card.fetchState==="Not-Started"?d.jsx(n,{dimension:r.card.dimension,animated:!r.card.disableAnimations}):r.card.fetchState==="Error"?d.jsx(t,{dimension:r.card.dimension,cardType:r.card.cardType,cardIndex:r.card.cardIndex,onReloadData:r.actions.onReloadData}):d.jsx("div",{children:r.children})}return d.jsx("div",{children:e()})};export{o as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K,ap as wt,o as s,
|
|
1
|
+
import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K,ap as wt,o as s,eK as Ze,cf as Ne,cj as ft,g1 as Ct,b7 as Tt,bL as Xe,aQ as $t,Q as ie,a8 as jt,y as Je,cB as yt,ab as bt,b1 as vt,cq as St,iK as Gt,iL as Lt,jn as De,aO as Nt,n as Me,bQ as Ee,eG as Qe,jo as Et,cY as et,jp as ce,jq as ke,jr as It,js as xe,jt as tt,ju as st,jv as ot,jw as nt,jx as at,jy as rt,jz as _,u as ge,jA as ae,ag as re,jB as Mt,jC as Dt,_ as zt,am as Bt,jD as At,d7 as Rt,jE as Wt,cO as it,ek as Ot,b as Ft,jF as Pt,jG as Ht,g2 as Vt,eJ as Ut,jH as _t,jI as X,jJ as ze,cs as Kt,jK as Yt,jL as qt,jM as Be,jN as Zt,p as Ae,gq as Xt,al as Jt}from"./index-Ci63exms.js";import{a as n}from"./core-3dlyNYRL.js";import{n as o,b as we}from"./mui-bYXq4XMS.js";import{FL as Qt,FM as Re,ce as lt,cf as dt,cg as es}from"./zeni-epic-state-BwKvATgd.js";import{J as ts,K as ss}from"./SpendManagementSection-BqWbsmBW-BhpclPa8.js";import{A as os,t as ns,a as as,E as rs}from"./NotificationsListConfig-BJm7A9Mz-Dg3_VsE9.js";import{getDashboardFilterCategoryValues as is}from"./SpendManagementListViewPage-AI676Urw-DJru7ByR.js";import"./sentry-cYFeB6Pw.js";import"./lottie-22bRan8M.js";import"./liveblocks-CNYVvsag.js";import"./utils-fBOyu0sO.js";import"./analytics-XaDXTZcq.js";import"./recharts-h5iNQbFd.js";import"./lexical-DPEnH3HH.js";import"./StatusSwitcher-DYRXaLvx-GT20DbHu.js";const ls=100,ds=100,cs=3,ps=.7,us=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ls,scrollSpeed:h=ds,minScrollAmount:m=cs,scrollCurveExponent:p=ps})=>{n.useEffect(()=>{if(!u||typeof window>"u"||typeof document>"u")return;let a=!1,c=0,i=null;const d=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},v=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>v(x),M=x=>{const S=Math.max(x,0)/d,j=Math.pow(S,p)*h;return Math.max(m,j)},k=(x,S,j)=>{const L=j==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,j=c;if(j<d&&j>0){const L=d-j,g=M(L);k(x,g,"up")}else if(j>S-d){const L=j-(S-d),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(c=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,u,m,e,p,h])},ve=se.getLocalizedStrings(),ct=({count:e})=>t.jsx(hs,{isCircular:e<10,children:t.jsx(ms,{children:e>ve.common.numbers.maximumCount?`${ve.common.numbers.maximumCount}${ve.common.strings.plus}`:e})}),hs=o.div`
|
|
2
2
|
${e=>e.isCircular?we`
|
|
3
3
|
height: 18px;
|
|
4
4
|
width: 18px;
|
|
@@ -16,7 +16,7 @@ import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K
|
|
|
16
16
|
outline-color: inherit;
|
|
17
17
|
`,ms=o(Bt)`
|
|
18
18
|
color: inherit;
|
|
19
|
-
`,{taskManagement:We,common:Se}=se.getLocalizedStrings();function gs(e){const{onChange:u,value:r,resetDisabled:h,onReset:m}=e,p=()=>{h!==!0&&m()};return t.jsxs(ks,{children:[t.jsx(fs,{children:We.taskList.groupingFilters.groupBy}),t.jsx(xs,{children:t.jsx(ts,{value:r,placeHolder:We.taskList.groupingFilters.placeholder,onChange:a=>{const c=Re(a.value);if(c!=null)u(c);else throw new Error("Invalid taskListGroupByKey")},options:
|
|
19
|
+
`,{taskManagement:We,common:Se}=se.getLocalizedStrings();function gs(e){const{onChange:u,value:r,resetDisabled:h,onReset:m}=e,p=()=>{h!==!0&&m()};return t.jsxs(ks,{children:[t.jsx(fs,{children:We.taskList.groupingFilters.groupBy}),t.jsx(xs,{children:t.jsx(ts,{value:r,placeHolder:We.taskList.groupingFilters.placeholder,onChange:a=>{const c=Re(a.value);if(c!=null)u(c);else throw new Error("Invalid taskListGroupByKey")},options:Qt,getOptionLabel:a=>{const c=Se.texts,i=Re(a);return i!=null?c[i]:Se.strings.empty}})}),t.jsxs(ws,{onClick:p,isDisabled:h,children:[t.jsx(Cs,{}),t.jsx(K,{children:Se.reset})]})]})}const ks=o.div`
|
|
20
20
|
display: flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
column-gap: ${s.sp4};
|
|
@@ -97,7 +97,7 @@ import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K
|
|
|
97
97
|
`,Es=o(zt)`
|
|
98
98
|
width: ${s.sp3};
|
|
99
99
|
height: ${s.sp3};
|
|
100
|
-
`,Is=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.6011 5.42688H3.10107",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 9.60004L7.92188 12.4125L6.51562 11.0063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 11.0063H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 15.4125L7.92188 18.225L6.51562 16.8188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 16.8188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ms=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 8.1001L7.92188 10.9126L6.51562 9.50635",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 9.50635H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 13.9126L7.92188 16.7251L6.51562 15.3188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 15.3188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ds=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},n.createElement("path",{d:"M4.49908 1.50001H12.0015H19.5039C19.5039 1.50001 20.868 1.50001 20.868 2.86409V21.1359C20.868 21.1359 20.868 22.5 19.5039 22.5H4.49908C4.49908 22.5 3.13501 22.5 3.13501 21.1359V2.86409C3.13501 2.86409 3.13501 1.50001 4.49908 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.5 11.9996L8.598 14.1953C8.70072 14.4016 8.85107 14.5804 9.03662 14.7171C9.22217 14.8538 9.43759 14.9443 9.66506 14.9812C9.89254 15.0182 10.1255 15.0004 10.3448 14.9295C10.5641 14.8585 10.7633 14.7364 10.926 14.5733L16.5 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{taskManagement:zs,common:Bs}=se.getLocalizedStrings(),
|
|
100
|
+
`,Is=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.6011 5.42688H3.10107",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 9.60004L7.92188 12.4125L6.51562 11.0063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 11.0063H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 15.4125L7.92188 18.225L6.51562 16.8188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 16.8188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ms=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 8.1001L7.92188 10.9126L6.51562 9.50635",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 9.50635H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 13.9126L7.92188 16.7251L6.51562 15.3188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 15.3188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ds=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},n.createElement("path",{d:"M4.49908 1.50001H12.0015H19.5039C19.5039 1.50001 20.868 1.50001 20.868 2.86409V21.1359C20.868 21.1359 20.868 22.5 19.5039 22.5H4.49908C4.49908 22.5 3.13501 22.5 3.13501 21.1359V2.86409C3.13501 2.86409 3.13501 1.50001 4.49908 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.5 11.9996L8.598 14.1953C8.70072 14.4016 8.85107 14.5804 9.03662 14.7171C9.22217 14.8538 9.43759 14.9443 9.66506 14.9812C9.89254 15.0182 10.1255 15.0004 10.3448 14.9295C10.5641 14.8585 10.7633 14.7364 10.926 14.5733L16.5 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{taskManagement:zs,common:Bs}=se.getLocalizedStrings(),J=zs.taskList.newTaskOptions;function As({anchorEl:e,groupByKey:u,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:p,onExpandTemplate:a,onClose:c,onNewTaskClick:i,onNewGroupClick:d,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:v,onNewTaskInitialization:I}){const M=qe(),[k,f]=n.useState(null),[w,D]=n.useState(null);n.useEffect(()=>{h.fetchState==="Completed"&&(D(null),f(null),c())},[h.fetchState,c]);const z=n.useCallback(($,x)=>{f(x),v($,x)},[v]),B=n.useCallback($=>{D($),C($)},[C]);return t.jsx(Ze,{open:!!e,sx:{"& .MuiPaper-root":{border:`1px solid ${M.colors.grey3}`}},anchorEl:e,onClose:c,transformOrigin:{vertical:"top",horizontal:"right"},anchorOrigin:{vertical:"bottom",horizontal:"right"},children:t.jsxs(Ws,{isTaskTemplatesEnabled:m,children:[t.jsxs(Ps,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(Os,{}),t.jsx(Ne,{children:J.task})]}),t.jsx(V,{controller:u==="groupName",children:t.jsxs(Pe,{onClick:()=>d(""),children:[t.jsx(Fs,{}),t.jsx(Ne,{children:J.group})]})})]}),m?t.jsx(Rs,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:p,handleGroupTemplateClick:B,handleGroupTemplateTaskClick:z,onNewGroupClick:d,onNewTaskInitialization:I,onExpandTemplate:a}):null]})})}const Rs=({taskGroupTemplates:e,taskIdInCreation:u,groupIdInCreation:r,expandedTemplate:h,onExpandTemplate:m,handleGroupTemplateClick:p,handleGroupTemplateTaskClick:a,onNewGroupClick:c,onNewTaskInitialization:i})=>{const[d,C]=n.useState(""),v=n.useMemo(()=>{const k=[];return e.forEach(f=>{if(f.name.toLowerCase().includes(d.toLowerCase()))k.push(f);else{const w=f.tasks.filter(D=>D.name.toLowerCase().includes(d.toLowerCase()));w.length>0&&k.push({...f,tasks:w})}}),k},[e,d]),I=n.useCallback(()=>{i(d)},[d,i]),M=n.useCallback(()=>{c(d)},[d,c]);return t.jsxs(Hs,{children:[t.jsx(Vs,{children:t.jsxs(_s,{children:[t.jsxs(Us,{children:[t.jsx(Ks,{}),t.jsx(Ys,{children:J.groupTemplates})]}),t.jsx(vs,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:d,onSearchTextChanged:C,placeholder:J.searchPlaceholder})]})}),t.jsx(V,{controller:v.length>0,children:t.jsx(qs,{children:v.map(k=>{const f=h===k.id;return t.jsxs(no,{children:[t.jsxs(Zs,{onClick:()=>{m(k.id)},expanded:f,children:[t.jsxs(Xs,{children:[t.jsx(V,{controller:f,children:t.jsx(oo,{})}),t.jsx(V,{controller:!f,children:t.jsx(so,{})}),t.jsx(K,{children:k.name}),t.jsx(ct,{count:k.tasks.length})]}),t.jsx(eo,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:J.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),p(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(V,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Js,{children:[t.jsxs(Qs,{children:[t.jsx(ao,{className:"styled-dot"}),t.jsx(lo,{className:"task-name-text",children:w.name})]}),t.jsx(to,{loading:u===w.name,className:"hidden-create-task-button",variant:"secondary",size:"xs-small",label:Bs.create,reverseSpinnerColor:!1,onClick:()=>a(k.id,w.name)})]},w.name))})})]},k.id)})})}),t.jsxs(V,{controller:v.length===0,children:[t.jsx(ro,{children:t.jsx(io,{children:J.noTaskGroup})}),t.jsxs(He,{onClick:I,children:[t.jsx(Ve,{}),t.jsx(K,{children:J.newTaskOptionText.replace("__searchText__",d)})]}),t.jsxs(He,{onClick:M,children:[t.jsx(Ve,{}),t.jsx(K,{children:J.newGroupOptionText.replace("__searchText__",d)})]})]})]})},Ws=o.div`
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
width: ${e=>e.isTaskTemplatesEnabled?"408px":"unset"};
|
|
@@ -170,7 +170,7 @@ import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K
|
|
|
170
170
|
padding: ${s.sp2} ${s.sp0};
|
|
171
171
|
color: inherit;
|
|
172
172
|
column-gap: ${s.sp2};
|
|
173
|
-
`,
|
|
173
|
+
`,Js=o.div`
|
|
174
174
|
display: flex;
|
|
175
175
|
justify-content: space-between;
|
|
176
176
|
align-items: center;
|
|
@@ -188,7 +188,7 @@ import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K
|
|
|
188
188
|
display: block;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
`,
|
|
191
|
+
`,Qs=o.div`
|
|
192
192
|
display: flex;
|
|
193
193
|
align-items: center;
|
|
194
194
|
cursor: pointer;
|
|
@@ -208,7 +208,7 @@ import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K
|
|
|
208
208
|
`,so=o(Et)`
|
|
209
209
|
width: ${s.sp3};
|
|
210
210
|
height: ${s.sp3};
|
|
211
|
-
`,oo=o(
|
|
211
|
+
`,oo=o(Qe)`
|
|
212
212
|
width: ${s.sp3};
|
|
213
213
|
height: ${s.sp3};
|
|
214
214
|
`,no=o.div``,ao=o.div`
|
|
@@ -243,7 +243,7 @@ import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K
|
|
|
243
243
|
text-overflow: ellipsis;
|
|
244
244
|
white-space: nowrap;
|
|
245
245
|
max-width: 336px;
|
|
246
|
-
`,{common:Ge,dateFormat:co,taskManagement:Ie}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new
|
|
246
|
+
`,{common:Ge,dateFormat:co,taskManagement:Ie}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new Je(125,170,170,250,300)},po=({taskDetail:e,tagList:u,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:p})=>{const a=ie(),c=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,d=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Ge.strings.empty,{getValues:C,resetField:v,getFieldState:I}=it(),M=(k,f)=>{const w=Be(k,f,xe);I(w).invalid?v(w):m(e,{timeSpent:C(w)})};return t.jsxs(mo,{children:[t.jsxs(vo,{windowSize:a,onClick:h,responsiveWidth:X[0].width,children:[t.jsxs(So,{windowSize:a,children:[t.jsx(Lo,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ee,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(Eo,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ee,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(Go,{windowSize:a,responsiveWidth:X[0].width,children:t.jsx(No,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[1].width,children:ze(e.status.code)}),t.jsx(zo,{windowSize:a,responsiveWidth:X[2].width,children:ze(e.priority.code)}),t.jsx(Bo,{windowSize:a,responsiveWidth:X[3].width,children:e.dueDate!=null?e.dueDate.format(co.visual.MMMDCommaYYYYformat):t.jsx(go,{children:Ge.strings.hyphen})}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[4].width,children:c>0?t.jsxs(ko,{children:[t.jsx(Kt,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Io,{children:t.jsx(Mo,{children:d})}),c>1?t.jsx(xo,{children:`${Ge.strings.plus}${c-1}`}):null]}):null}),t.jsx(Ao,{windowSize:a,responsiveWidth:X[5].width,children:e.tagIds.length>0?t.jsx(Do,{children:Yt(e.tagIds,u)}):null}),t.jsx(Wo,{windowSize:a,responsiveWidth:X[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Oo,{className:"timeSpentField",children:t.jsx(qt,{name:Be(r,e.id,xe),placeholder:Ie.common.timeSpentPlaceholder,timeSpentFormat:Ie.common.timeSpentFormat,registerOptions:{validate:k=>es(k)>Zt?(p({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error"):!0},style:{padding:`${s.sp0} ${s.sp1}`,background:"unset"},onInputBlur:()=>{M(r,e.id)},inputStyle:{textAlign:"right",padding:`${s.sp0} ${s.sp2}`}})})})]})},uo=({taskGroup:e,tagList:u,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:p,isCollapsed:a,existingTaskGroupNamesByGroupId:c,onDeleteTaskGroup:i,onExpandAll:d,onCollapseAll:C,onAddNewTaskToTaskGroup:v,onCollapseToggle:I,onTaskManagementRowClick:M,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[D,z]=n.useState(null),B=ie(),{setFocus:$}=it(),x=n.useCallback(()=>{I(e.id)},[I,e.id]),S=n.useCallback(W=>{z(W.currentTarget)},[]),j=n.useCallback(()=>{z(null)},[]),L=n.useCallback(()=>{v(e.id)},[v,e.id]),g=n.useCallback(()=>{z(null),i(e.id)},[i,e.id]),y=n.useCallback(()=>{$(`${r}.groupName`),j()},[j,r,$]);return t.jsxs(ho,{windowSize:B,children:[t.jsx(V,{controller:h,children:t.jsxs(wo,{children:[t.jsxs(fo,{children:[t.jsx(Co,{isOpen:a===!1,onClick:x,children:t.jsx(To,{})}),t.jsx(Ot,{style:{textAlign:"start",width:"100%",background:"unset",...Ft.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Ie.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:W=>Pt(W,e.id,c)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx($o,{onClick:S,children:t.jsx(jo,{})}),t.jsx(Ht,{onClose:j,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:d,onRename:y,isDefault:e.isDefault,anchorEl:D})]})}),t.jsx(V,{controller:a===!1,children:t.jsx(Vt,{mode:"checked_or_hover",isDisabled:p===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(W=>{const U=()=>{M(W.id)};return{label:t.jsx(po,{taskDetail:W,onRowClick:U,tagList:u,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:B==="small"?null:t.jsx(yo,{children:t.jsx(bo,{})}),value:W.id,defaultChecked:!1,groupLabel:!1}})],name:`${r}.selectedIds`,style:{width:"100%",rowGap:s.sp3},checkBoxStyle:{padding:s.sp3},labelCheckBoxStyle:{padding:s.sp3},onDragStart:k,draggable:!0})})]})},ho=o.div`
|
|
247
247
|
box-sizing: border-box;
|
|
248
248
|
display: flex;
|
|
249
249
|
flex-direction: column;
|
|
@@ -285,7 +285,7 @@ import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K
|
|
|
285
285
|
flex-direction: row;
|
|
286
286
|
align-items: center;
|
|
287
287
|
color: ${e=>e.theme.colors.hero};
|
|
288
|
-
`,xo=o(
|
|
288
|
+
`,xo=o(Jt)`
|
|
289
289
|
border: 1px solid ${e=>e.theme.colors.hero};
|
|
290
290
|
width: calc(${s.sp3} + ${s.sp1});
|
|
291
291
|
height: calc(${s.sp3} + ${s.sp1});
|
|
@@ -305,7 +305,7 @@ import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K
|
|
|
305
305
|
`,Co=o.div`
|
|
306
306
|
cursor: pointer;
|
|
307
307
|
transform: ${e=>e.isOpen?"rotate(0deg)":"rotate(-90deg)"};
|
|
308
|
-
`,To=o(
|
|
308
|
+
`,To=o(Qe)`
|
|
309
309
|
width: ${s.sp3};
|
|
310
310
|
height: ${s.sp3};
|
|
311
311
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -430,7 +430,7 @@ import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K
|
|
|
430
430
|
column-gap: ${s.sp2};
|
|
431
431
|
`,Oo=o.div`
|
|
432
432
|
max-width: ${s.sp11};
|
|
433
|
-
`,Fo=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),H=se.getLocalizedStrings(),_e=e=>`${e}_form`,Po={rowGap:new Qe(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),jn=({taskListView:e,tagListView:u,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:p,onDeleteTaskGroup:a,updateLocalData:c,onTaskManagementRowClick:i,onReloadTasks:d,onColumnSortConfigChanged:C,onSearchTextChanged:v,onBackClick:I,onNewTaskClick:M,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:D,onAddNewTaskToTaskGroup:z,onGroupByFilterChange:B,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:j,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:y})=>{const[W,U]=n.useState(!1),[J,F]=n.useState(null),[P,oe]=n.useState(null),[q,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:Z,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:je}=u,ye=qe(),be=R=>{ne(R)},he=n.useCallback(R=>{le(R.currentTarget)},[]),me=n.useCallback(R=>{B(R)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(R=>{y(R)},[y]),O=de.users.map(R=>R.user).filter(R=>R!=null),N={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:Z.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:be,onSearchTextChanged:v,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(gs,{value:Z.groupByKey,resetDisabled:Z.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>is("task_management",O,Ce.loggedInUserRole??[],u.tagList)},E=n.useCallback(R=>{le(null),F(Y),c({...e.localData,newTaskGroupName:R})},[e.localData,c]),A=n.useCallback(()=>{le(null)},[]),b=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{F(Y)},[]),te=n.useCallback(R=>{pe(mt=>mt===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&pe(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ut=()=>ee==="Error"?t.jsxs(qo,{children:[t.jsx(Zo,{onClick:d,children:t.jsx(Xo,{})}),t.jsx(Qo,{children:H.common.reloadPage.label})]}):ee==="Completed"&&$e.length===0?t.jsx(ft,{message:H.taskManagement.taskList.noDataText}):ee==="Not-Started"||ee==="In-Progress"?t.jsx(Ct,{fetchState:ee}):t.jsx(Ho,{taskListView:e,tagList:je,renameActiveField:J,updateTask:m,onDragNDrop:p,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:c,setActiveTaskGroupId:oe,setRenameActiveField:F,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:j,onCreateTagClick:h}),ht=t.jsx(ss,{spendManagementSectionProps:N});return t.jsxs(Yo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ye.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(As,{anchorEl:fe,groupByKey:Z.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:M,onNewGroupClick:E,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:q}),t.jsx(Ko,{children:ut()}),t.jsx(V,{controller:W===!0,children:t.jsx(xt,{action:{onOkClick:b,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(on,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(nn,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Ho=({taskListView:e,tagList:u,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:p,onDragNDrop:a,updateLocalData:c,setShowDeleteModal:i,handleCreateGroup:d,resetLocalData:C,assignGroupToTasks:v,setGroupCreationInProgress:I,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B})=>{const $=n.useRef(null),[x,S]=n.useState(null),j=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:y,uiState:W}=e,[U,J]=n.useState([]),F=n.useRef(null);us({scrollContainerRef:F,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=jt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,u),[g,e.taskGroupsWithTasksList,P,u]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,u),[g,e.taskGroupsWithTasksList,P,u])}),q=n.useMemo(()=>{if(r!==Y)return y;const l=[],G=y.map(O=>{const N=O.tasks.filter(E=>{const A=g.selectedTaskIds.includes(E.id)===!0;return A&&l.push(E),A===!1});return{...O,tasks:N}});return G.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),G},[r,y,g.selectedTaskIds]),pe=n.useCallback(l=>U.includes(q[l].id)||q[l].tasks.length===0?100:j.current?.[l]!=null?j.current[l]+Po.rowGap.value(L):(os*1+ns)*3+as+rs,[U,q,L]),fe=n.useCallback(l=>{S(l.currentTarget)},[]),le=n.useCallback((l,G)=>{j.current={...j.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,y]),ue=n.useCallback(l=>{J(G=>G.includes(l)?G.filter(O=>l!==O):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{J(y.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[y]),ee=n.useCallback(()=>{J([]),$.current?.resetAfterIndex(0,!0)},[]),Z=n.useCallback(()=>{I(),$.current?.scrollTo(0),ne()},[ne,I]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==Y?Z():d(!0):r===Y?d(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,Z,d,m]),$e=n.useCallback(()=>{p(null),C()},[C,p]),je=n.useCallback(l=>{C(),p(l)},[C,p]),ye=n.useCallback(()=>{g.defaultTaskGroupId!=null&&v(g.defaultTaskGroupId)},[v,g.defaultTaskGroupId]),be=async(l,G)=>{if(l.includes(nt)){const N=l.split(".")[2],E=y.flatMap(b=>b.tasks).find(b=>b.id===N),A=G[_][ae][N].priority.selectedOption;if(E!=null&&A!=null){const b=lt.find(T=>T.code===A);b!=null&&h(E,{priority:b})}return}if(l.includes(at)){const N=l.split(".")[2],E=y.flatMap(b=>b.tasks).find(b=>b.id===N),A=G[_][ae][N].status.selectedOption;if(E!=null&&A!=null){const b=dt.find(T=>T.code===A);E!=null&&b!=null&&h(E,{status:b})}return}if(l.includes(st)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[_][ae][N].assignees.selectedUsers.map(T=>T.userId);A!=null&&b!=null&&E!=null&&h(E,{assignees:b});return}if(l.includes(ot)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[_][ae][N].dueDate.date;A!=null&&b!=null&&E!=null&&h(E,{dueDate:b});return}if(l.includes(tt)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[_][ae][N].tags.selectedOptions;A!=null&&b!=null&&E!=null&&h(E,{tagIds:b});return}l.includes(xe)&&oe.trigger(l);const O=_o(l,G,g);c(O)};n.useEffect(()=>{const l=oe.watch((G,{name:O})=>{O!=null&&G!=null&&yt(()=>be(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupUpdateStatus.fetchState]);const he=y.length>1&&g.selectedTaskIds.length>0&&r!==Y,me=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(bt,{...oe,children:t.jsx("form",{id:_e(De),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(Jo,{isFooterVisible:me,windowSize:L,children:t.jsx(vt,{children:({height:l,width:G})=>t.jsx(St,{ref:$,outerRef:F,height:l,itemCount:q.length,itemSize:pe,estimatedItemSize:Lt,itemKey:O=>q[O].id,width:G,overscanCount:Gt,itemData:{tagList:u,taskGroupsWithTasksList:q,uiState:W,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:je,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:Vo})})})})}),me?t.jsx(Nt,{formId:_e(De),primaryBtn:{label:y.length===1&&g.selectedTaskIds.length>0&&r!==Y?Le.taskList.footer.createGroup:Ke.save,style:{width:"135px"},isLoading:e.taskGroupCreationStatus.fetchState==="In-Progress"||e.taskGroupUpdateStatus.fetchState==="In-Progress"},cancelBtn:{label:Ke.cancel,style:{width:"135px"},onClick:$e},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(V,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(tn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(sn,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(V,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(rn,{children:t.jsx(Ee,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(an,{onClick:ye})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(Me,{variant:"secondary",label:H.taskManagement.taskList.footer.moveTo,onClick:fe,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx($s,{taskGroupsList:y,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ne(),v(l)},onClose:ne})]}):void 0}):null]})},Vo=({index:e,style:u,data:r})=>{const h=n.useRef(null),m=ie(),{tagList:p,taskGroupsWithTasksList:a,uiState:c,renameActiveField:i,collapsedGroups:d,onCollapseToggle:C,onTaskManagementRowClick:v,setRowHeight:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,handleOnDragNDrop:z,onRenameClick:B,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&I(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const y=n.useCallback(F=>{const P=F.dataTransfer.getData("row");z(P,a[e].id)},[z,e,a]),W=n.useCallback(F=>{F.preventDefault()},[]),U=(F,P)=>{F.dataTransfer.setData("row",P)},J=()=>{B(a[e].id)};return t.jsx(en,{style:{...u,width:"100%"},ref:h,onDrop:y,onDragOver:W,children:t.jsx(Uo,{taskGroup:a[e],showGroupName:!0,tagList:p,uiState:c,isCollapsed:d.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:U,onRenameClick:J,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g},a[e].id)})},Uo=({taskGroup:e,tagList:u,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,userList:i,existingTaskGroupNamesByGroupId:d,onRenameClick:C,onTaskManagementRowClick:v,onCollapseToggle:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),j=S==="medium-regular"||S==="medium-compact"||S==="small"?uo:Wt;return t.jsx(j,{taskGroup:e,tagList:u,userList:i,sectionId:_,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,existingTaskGroupNamesByGroupId:d,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,onCollapseToggle:I,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onDragStart:z,onRenameClick:C,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})},Ye=(e,u,r,h)=>{const m={},p={};e.forEach(c=>{p[c.id]={[ke]:[],[ce]:u.existingTaskGroupNamesByGroupId[c.id]},c.tasks.forEach(i=>{u.selectedTaskIds.includes(i.id)&&p[c.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(d=>({label:d.name,value:d.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(d=>({label:d.name,value:d.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(d=>d.user)},[tt]:{allOptions:It(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[Y]:{[ce]:u.newTaskGroupName,[ke]:[]},...p},[ae]:m};return{[_]:a}},_o=(e,u,r)=>{if(e.includes(_)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(Y)?{...r,newTaskGroupName:u[_].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:u[_].groupData[h][ce]}};if(e.includes(ke)){const m=At(Rt(Object.values(u[_][rt]),ke)).filter(p=>p!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Ko=o.div`
|
|
433
|
+
`,Fo=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),H=se.getLocalizedStrings(),_e=e=>`${e}_form`,Po={rowGap:new Je(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),jn=({taskListView:e,tagListView:u,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:p,onDeleteTaskGroup:a,updateLocalData:c,onTaskManagementRowClick:i,onReloadTasks:d,onColumnSortConfigChanged:C,onSearchTextChanged:v,onBackClick:I,onNewTaskClick:M,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:D,onAddNewTaskToTaskGroup:z,onGroupByFilterChange:B,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:j,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:y})=>{const[W,U]=n.useState(!1),[Q,F]=n.useState(null),[P,oe]=n.useState(null),[q,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:Z,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:je}=u,ye=qe(),be=R=>{ne(R)},he=n.useCallback(R=>{le(R.currentTarget)},[]),me=n.useCallback(R=>{B(R)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(R=>{y(R)},[y]),O=de.users.map(R=>R.user).filter(R=>R!=null),N={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:Z.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:be,onSearchTextChanged:v,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(gs,{value:Z.groupByKey,resetDisabled:Z.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>is("task_management",O,Ce.loggedInUserRole??[],u.tagList)},E=n.useCallback(R=>{le(null),F(Y),c({...e.localData,newTaskGroupName:R})},[e.localData,c]),A=n.useCallback(()=>{le(null)},[]),b=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{F(Y)},[]),te=n.useCallback(R=>{pe(mt=>mt===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&pe(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ut=()=>ee==="Error"?t.jsxs(qo,{children:[t.jsx(Zo,{onClick:d,children:t.jsx(Xo,{})}),t.jsx(Jo,{children:H.common.reloadPage.label})]}):ee==="Completed"&&$e.length===0?t.jsx(ft,{message:H.taskManagement.taskList.noDataText}):ee==="Not-Started"||ee==="In-Progress"?t.jsx(Ct,{fetchState:ee}):t.jsx(Ho,{taskListView:e,tagList:je,renameActiveField:Q,updateTask:m,onDragNDrop:p,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:c,setActiveTaskGroupId:oe,setRenameActiveField:F,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:j,onCreateTagClick:h}),ht=t.jsx(ss,{spendManagementSectionProps:N});return t.jsxs(Yo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ye.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(As,{anchorEl:fe,groupByKey:Z.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:M,onNewGroupClick:E,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:q}),t.jsx(Ko,{children:ut()}),t.jsx(V,{controller:W===!0,children:t.jsx(xt,{action:{onOkClick:b,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(on,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(nn,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Ho=({taskListView:e,tagList:u,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:p,onDragNDrop:a,updateLocalData:c,setShowDeleteModal:i,handleCreateGroup:d,resetLocalData:C,assignGroupToTasks:v,setGroupCreationInProgress:I,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B})=>{const $=n.useRef(null),[x,S]=n.useState(null),j=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:y,uiState:W}=e,[U,Q]=n.useState([]),F=n.useRef(null);us({scrollContainerRef:F,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=jt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,u),[g,e.taskGroupsWithTasksList,P,u]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,u),[g,e.taskGroupsWithTasksList,P,u])}),q=n.useMemo(()=>{if(r!==Y)return y;const l=[],G=y.map(O=>{const N=O.tasks.filter(E=>{const A=g.selectedTaskIds.includes(E.id)===!0;return A&&l.push(E),A===!1});return{...O,tasks:N}});return G.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),G},[r,y,g.selectedTaskIds]),pe=n.useCallback(l=>U.includes(q[l].id)||q[l].tasks.length===0?100:j.current?.[l]!=null?j.current[l]+Po.rowGap.value(L):(os*1+ns)*3+as+rs,[U,q,L]),fe=n.useCallback(l=>{S(l.currentTarget)},[]),le=n.useCallback((l,G)=>{j.current={...j.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,y]),ue=n.useCallback(l=>{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)},[]),Z=n.useCallback(()=>{I(),$.current?.scrollTo(0),ne()},[ne,I]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==Y?Z():d(!0):r===Y?d(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,Z,d,m]),$e=n.useCallback(()=>{p(null),C()},[C,p]),je=n.useCallback(l=>{C(),p(l)},[C,p]),ye=n.useCallback(()=>{g.defaultTaskGroupId!=null&&v(g.defaultTaskGroupId)},[v,g.defaultTaskGroupId]),be=async(l,G)=>{if(l.includes(nt)){const N=l.split(".")[2],E=y.flatMap(b=>b.tasks).find(b=>b.id===N),A=G[_][ae][N].priority.selectedOption;if(E!=null&&A!=null){const b=lt.find(T=>T.code===A);b!=null&&h(E,{priority:b})}return}if(l.includes(at)){const N=l.split(".")[2],E=y.flatMap(b=>b.tasks).find(b=>b.id===N),A=G[_][ae][N].status.selectedOption;if(E!=null&&A!=null){const b=dt.find(T=>T.code===A);E!=null&&b!=null&&h(E,{status:b})}return}if(l.includes(st)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[_][ae][N].assignees.selectedUsers.map(T=>T.userId);A!=null&&b!=null&&E!=null&&h(E,{assignees:b});return}if(l.includes(ot)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[_][ae][N].dueDate.date;A!=null&&b!=null&&E!=null&&h(E,{dueDate:b});return}if(l.includes(tt)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[_][ae][N].tags.selectedOptions;A!=null&&b!=null&&E!=null&&h(E,{tagIds:b});return}l.includes(xe)&&oe.trigger(l);const O=_o(l,G,g);c(O)};n.useEffect(()=>{const l=oe.watch((G,{name:O})=>{O!=null&&G!=null&&yt(()=>be(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupUpdateStatus.fetchState]);const he=y.length>1&&g.selectedTaskIds.length>0&&r!==Y,me=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(bt,{...oe,children:t.jsx("form",{id:_e(De),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(Qo,{isFooterVisible:me,windowSize:L,children:t.jsx(vt,{children:({height:l,width:G})=>t.jsx(St,{ref:$,outerRef:F,height:l,itemCount:q.length,itemSize:pe,estimatedItemSize:Lt,itemKey:O=>q[O].id,width:G,overscanCount:Gt,itemData:{tagList:u,taskGroupsWithTasksList:q,uiState:W,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:je,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:Vo})})})})}),me?t.jsx(Nt,{formId:_e(De),primaryBtn:{label:y.length===1&&g.selectedTaskIds.length>0&&r!==Y?Le.taskList.footer.createGroup:Ke.save,style:{width:"135px"},isLoading:e.taskGroupCreationStatus.fetchState==="In-Progress"||e.taskGroupUpdateStatus.fetchState==="In-Progress"},cancelBtn:{label:Ke.cancel,style:{width:"135px"},onClick:$e},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(V,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(tn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(sn,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(V,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(rn,{children:t.jsx(Ee,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(an,{onClick:ye})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(Me,{variant:"secondary",label:H.taskManagement.taskList.footer.moveTo,onClick:fe,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx($s,{taskGroupsList:y,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ne(),v(l)},onClose:ne})]}):void 0}):null]})},Vo=({index:e,style:u,data:r})=>{const h=n.useRef(null),m=ie(),{tagList:p,taskGroupsWithTasksList:a,uiState:c,renameActiveField:i,collapsedGroups:d,onCollapseToggle:C,onTaskManagementRowClick:v,setRowHeight:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,handleOnDragNDrop:z,onRenameClick:B,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&I(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const y=n.useCallback(F=>{const P=F.dataTransfer.getData("row");z(P,a[e].id)},[z,e,a]),W=n.useCallback(F=>{F.preventDefault()},[]),U=(F,P)=>{F.dataTransfer.setData("row",P)},Q=()=>{B(a[e].id)};return t.jsx(en,{style:{...u,width:"100%"},ref:h,onDrop:y,onDragOver:W,children:t.jsx(Uo,{taskGroup:a[e],showGroupName:!0,tagList:p,uiState:c,isCollapsed:d.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:U,onRenameClick:Q,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g},a[e].id)})},Uo=({taskGroup:e,tagList:u,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,userList:i,existingTaskGroupNamesByGroupId:d,onRenameClick:C,onTaskManagementRowClick:v,onCollapseToggle:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),j=S==="medium-regular"||S==="medium-compact"||S==="small"?uo:Wt;return t.jsx(j,{taskGroup:e,tagList:u,userList:i,sectionId:_,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,existingTaskGroupNamesByGroupId:d,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,onCollapseToggle:I,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onDragStart:z,onRenameClick:C,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})},Ye=(e,u,r,h)=>{const m={},p={};e.forEach(c=>{p[c.id]={[ke]:[],[ce]:u.existingTaskGroupNamesByGroupId[c.id]},c.tasks.forEach(i=>{u.selectedTaskIds.includes(i.id)&&p[c.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(d=>({label:d.name,value:d.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(d=>({label:d.name,value:d.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(d=>d.user)},[tt]:{allOptions:It(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[Y]:{[ce]:u.newTaskGroupName,[ke]:[]},...p},[ae]:m};return{[_]:a}},_o=(e,u,r)=>{if(e.includes(_)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(Y)?{...r,newTaskGroupName:u[_].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:u[_].groupData[h][ce]}};if(e.includes(ke)){const m=At(Rt(Object.values(u[_][rt]),ke)).filter(p=>p!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Ko=o.div`
|
|
434
434
|
display: block;
|
|
435
435
|
height: 100%;
|
|
436
436
|
`,Yo=o.div`
|
|
@@ -464,10 +464,10 @@ import{av as gt,d as qe,V as t,F as se,jm as Y,bz as kt,a9 as V,cm as xt,ak as K
|
|
|
464
464
|
&:hover {
|
|
465
465
|
color: ${e=>e.theme.colors.primary};
|
|
466
466
|
}
|
|
467
|
-
`,
|
|
467
|
+
`,Jo=o($t)`
|
|
468
468
|
margin-top: ${s.sp3};
|
|
469
469
|
color: ${e=>e.theme.colors.hero};
|
|
470
|
-
`,
|
|
470
|
+
`,Qo=o.div`
|
|
471
471
|
/** Subtract top so list can occupy remaining available height */
|
|
472
472
|
height: ${e=>e.isFooterVisible===!0?"calc(100vh - 152px)":"calc(100vh - 88px)"}; // total - header
|
|
473
473
|
max-width: 99.9%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,b1 as H,aA as S,
|
|
1
|
+
import{V as t,b1 as H,aA as S,dg as L,bp as q,o as a,ag as A}from"./index-Ci63exms.js";import{a as n,Y as D}from"./core-3dlyNYRL.js";import{n as g}from"./mui-bYXq4XMS.js";import{V as U}from"./CollapsableReportTable-Crihcv_z-B6sIoSI3.js";const W=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),X=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,Z=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
justify-content: flex-start;
|