@zeniai/web-cockpit-ui 1.14.22-dev → 1.14.23-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.
Files changed (244) hide show
  1. package/dist/assets/{ACHDetailsPage-Csc8UPGK-C5DTl14D.js → ACHDetailsPage-DZv7I3Jm-zPHhT4Vj.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-BNK1zghX-CXpkKBhu.js → AIPerformancePage-DCq95N_N-DO8MzOBI.js} +26 -26
  3. package/dist/assets/{AccountInfoPage-WoQj1Knu-Cxdf_g3B.js → AccountInfoPage-wfDS5ToF-BkRJ-lxL.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BsiMZrTm-DfeZwew1.js → AccountInfoPageContent-dgeBtGlm-BSaBGsXw.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-CaIpZQOZ-DUBexURk.js → AccountLockedInfoModal-CqjvVPUE-Cma-cVvt.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BQTm9Igh-bRUuCvDt.js → AccountReconDetailsDrawerPage-BJ1TTvni-CnFKI7ya.js} +11 -11
  7. package/dist/assets/{AccountRow-mHhwnvVT-61DHuT3I.js → AccountRow-99zfxKet-iP3hUTyF.js} +19 -19
  8. package/dist/assets/{AccountsPromoCardStack-jk87J-uY-CYM3oaB-.js → AccountsPromoCardStack-CZwrQBcr-BLPwkeVU.js} +8 -8
  9. package/dist/assets/{AddAddressForCardDrawer-BY-ABNiB-C1fgvotd.js → AddAddressForCardDrawer-BcOX27nY-CA-KCO8n.js} +2 -2
  10. package/dist/assets/{AddToWalletPage-BmaqhQ_z-fr9KNRwo.js → AddToWalletPage-CoW0Ppg4-WAfWgl1v.js} +14 -14
  11. package/dist/assets/{AgingReportsPage-B2tfefId-BY1ufaPI.js → AgingReportsPage-Dgi5oFl4-Cao6O7NF.js} +10 -10
  12. package/dist/assets/{AllUserItems-C5jB4yc_-bcEnXv8A.js → AllUserItems-6iESftSq-BBGiJxHd.js} +9 -9
  13. package/dist/assets/{ApAgingDetailPage-B-ZHX3JJ-Dm0NOaoH.js → ApAgingDetailPage-jEL75hOV-BLy4yEPM.js} +3 -3
  14. package/dist/assets/{AppBasePage-DOXcrTCE-BU2ssx1Y.js → AppBasePage-CMHbFdBh-DTT6hgO7.js} +3 -3
  15. package/dist/assets/{AppDrawerContent-Cav4Sy09-XmmoSBRe.js → AppDrawerContent-NAyrnDCL-B7ak2Xor.js} +40 -19
  16. package/dist/assets/{ApprovalRulesSettingsPage-rzr9k2jA-BhZWVqKA.js → ApprovalRulesSettingsPage-BWraRVsT-BRbAilw6.js} +5 -5
  17. package/dist/assets/{ArAgingChart-B3NtEWh--G5H5BTO1.js → ArAgingChart-DPrIHwSE-ym_zT_Xu.js} +9 -9
  18. package/dist/assets/{ArAgingDetailPage-uX2oVxj4-B2CH08AV.js → ArAgingDetailPage-CdNiD7uR-DccUXEIa.js} +4 -4
  19. package/dist/assets/{AttachmentView-BQMzs_UT-DjbZBXs7.js → AttachmentView-Cmh726Zl-C82E74gy.js} +3 -3
  20. package/dist/assets/{BankAccountSection-MWGcLsKa-DYMEitGJ.js → BankAccountSection-jRnEB-Ut-BpoXdxMl.js} +4 -4
  21. package/dist/assets/{BankAccountWarningSection-CBlOG9xN-KyoF0Xjl.js → BankAccountWarningSection-KznYA-cf-CV3aOKhB.js} +3 -3
  22. package/dist/assets/{BankConnectionsSettingsPage-PagAlxUn-CnNwI2lQ.js → BankConnectionsSettingsPage-BXrsOxcg-CZU1wEnM.js} +15 -15
  23. package/dist/assets/{BillDetailPage-DU3KKWCI-Dgx7cNS3.js → BillDetailPage-glKjF2MJ-CxnS8ehW.js} +5 -5
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DzfhQmLn-0k3Mkm1z.js → BillPayApprovalRuleDetailPage-DyH2jp6G-BgnVnU6E.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-B051t9Mv-Bz466D-_.js → BillPayApprovalRulesPage-jctlpXwj-sMvcDhpz.js} +11 -11
  26. package/dist/assets/{BillPayPromoPage-DvBp9dFZ-DT65a4C3.js → BillPayPromoPage-DGyWwW1t-B2E2k4g7.js} +32 -32
  27. package/dist/assets/{BillPaySetUpPage-D7335PCo-lcC21Rm6.js → BillPaySetUpPage-UfM6FOqW-wZRanfNP.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-PsWVXatK-Df6MXAqh.js → BillingSettingsPage-BfMIxeqM-C_WtlbYK.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-Dkq-bCpf-QfTbq_6Y.js → BillsBulkReviewDrawerPage-DhoLC2aT-Cih70QQk.js} +1 -1
  30. package/dist/assets/{BoxItem-Bf9DDBGl-B4tzyane.js → BoxItem-CIOib-WX-Cvut8WLk.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DZpS0b_1-DhH_xv3P.js → BusinessVerificationPage-Czf-y16x-BBZA7C_w.js} +14 -14
  32. package/dist/assets/{CardNumberSubText-8FNDlBHV-xefYK_FQ.js → CardNumberSubText-B8CivrXd-CzHZkmhR.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-CUc07auE-CayGCDQt.js → CashbackDetailPage-BOTxd8DW-CNmZsYqR.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-D84v0WwQ-Drf4gFgi.js → ChargeCardDetailPage-DbtvRfDc-CRGJceoy.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-BFssQAQg-Dr6YIgl1.js → ChargeCardListPage-Q1zat_TQ-BbazZeau.js} +18 -18
  36. package/dist/assets/{ChargeCardListTable-BuI0T0Bn-DXKO7Y7U.js → ChargeCardListTable-CKH-EZW4-CiPC1KQt.js} +28 -28
  37. package/dist/assets/{ChargeCardPromoPage-CRqyciNL-FrtjBhKN.js → ChargeCardPromoPage-BRkny-dl-BA8MhBiS.js} +30 -30
  38. package/dist/assets/ChargeCardSetupPage-DM15gWD1-rI_IQnGw.js +36 -0
  39. package/dist/assets/{ChargeCardStatementsPage-BtImi0Pc-D6s-jUZ3.js → ChargeCardStatementsPage-xedf3XEE-CzGfRvhd.js} +7 -7
  40. package/dist/assets/{ChargeCardUtils-DQztOSYJ-DZxY6wV1.js → ChargeCardUtils-D4KmVUMt-Bgc7_40s.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-BaGgoJZk-L4zZNkyz.js → ChaseOverlay-IbWtzNzT-CiTCJc7A.js} +10 -10
  42. package/dist/assets/{CheckDepositDrawerPage-90KwCes_-BFVP9Xnd.js → CheckDepositDrawerPage-BCIvt4pQ-BUO3GGvc.js} +6 -6
  43. package/dist/assets/{CollapsableReportTable-dCUjgg1X-DLs7OVqc.js → CollapsableReportTable-jOFcWQi9-BD7j44zD.js} +109 -109
  44. package/dist/assets/{CompanyOfficerDetailsSection-B5d06n1B-shOCzvZi.js → CompanyOfficerDetailsSection-DMCZTk1e-CevbfEQw.js} +20 -20
  45. package/dist/assets/{CompanyPassportCard-BOuhptIV-CVEQtf9Q.js → CompanyPassportCard-BbJLMFqe-CAuk2TxY.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-CPxR1IKu-B6sc0yZA.js → CompanyPassportPage-BwCMcjB9-C5l65FSQ.js} +25 -25
  47. package/dist/assets/{CompleteProfile-BIN-sI3M-1L7bxHe9.js → CompleteProfile-Dz4laW45-D0LCAfKu.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-nTrV9Xfw-D3DkhcOF.js → ConfettiBurst-B2j3QxzW-BoOT7g5H.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-CQH4Gfy0-DBGaDkEf.js → CreateOrEditVendorPage-z2chPZUl-moxdaTde.js} +12 -12
  50. package/dist/assets/{CreditCardPaymentDrawerPage-C3PvfNmm-amz8Ne7l.js → CreditCardPaymentDrawerPage-Z9RiL1h7-BimNMSu_.js} +17 -17
  51. package/dist/assets/{CreditCardPaymentPlgSection-Cz-CSdKg-DO4yi827.js → CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js} +10 -10
  52. package/dist/assets/{CurrencySelectField-ltt1zExP-D2omcj4n.js → CurrencySelectField-CxNprN2u-CPSD5Bje.js} +2 -2
  53. package/dist/assets/{CustomerOnboardingActivationPage-Cst56yLP-ejyq0w3C.js → CustomerOnboardingActivationPage-diAJ07bX-sBysngto.js} +4 -4
  54. package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-CSzku5k4.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-H59MLCwU-KBQed5cV.js → CustomerOnboardingDetailPageSkeleton--8DBjaCm-B9kNPkv6.js} +11 -11
  56. package/dist/assets/CustomerOnboardingNoStepsPage-Ccq8kI-v-D3QEvGB2.js +66 -0
  57. package/dist/assets/{CustomerOnboardingPage-1o2R-ghV-DIOBtRSu.js → CustomerOnboardingPage-s3GNwP8c-p7WLMkGR.js} +6 -6
  58. package/dist/assets/CustomerOnboardingProductSuitePage-C-tToXNK-4Ab_CkNQ.js +202 -0
  59. package/dist/assets/{Dashboard-CptSiho6-CYuyH4KA.js → Dashboard-BtcnzaY6-gJck50nw.js} +230 -230
  60. package/dist/assets/{DashboardReportPage-G32NOQFe-BOVMH67u.js → DashboardReportPage-C6jLfLtF-BPfMWD5H.js} +9 -8
  61. package/dist/assets/DashboardSidebarBackgroundAnimation-s8Nl8CmH-Dm61fSUI.js +12 -0
  62. package/dist/assets/{DepositAccTransactionItem-CQX9MBK--x7S3np6v.js → DepositAccTransactionItem-Bm63W_1e-5FIgWMcL.js} +1 -1
  63. package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-1uhB2yjw.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-Bgm_YYHM-C2zlQj9Q.js → DomesticWireDetailsPage-DX0BA5i3-Ea2aCTYV.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DN4zwFl5-BWBizCPI.js → DownloadOverlay-BcH72YTL-B8MaexAj.js} +1 -1
  66. package/dist/assets/{DrawerPage-B-jrvyA1-D5alUPyS.js → DrawerPage-CzHhh0IP-BIFSEwpr.js} +10 -10
  67. package/dist/assets/{EditPeoplePage-BTXEd5bm-DPBckywd.js → EditPeoplePage-Z5btEDax-BKTta_xp.js} +7 -7
  68. package/dist/assets/{EditReimbursementDetailPage-5-BeM3DC-BRw6nxEw.js → EditReimbursementDetailPage-D_FsqRgU-DhM4BWkK.js} +74 -74
  69. package/dist/assets/{EntityDetailPage-CCTwe1iu-DAg47Prp.js → EntityDetailPage-Bc4YVpPC-DWs1zPrx.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-B7uoP2ou-DZ_drzmW.js → EntitySummarySection-Ba6AWxNi-BdQCQZ3F.js} +4 -4
  71. package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-vkhdPOgy.js +222 -0
  72. package/dist/assets/{ExpenseAutomationPage-o8ox1q0R-W0eDJCTN.js → ExpenseAutomationPage-EjI20a6v-rIac0d4o.js} +90 -90
  73. package/dist/assets/{ExpressPayPage-BdUERste-C5P04O3w.js → ExpressPayPage-562vstqT-BTrZQzDN.js} +10 -10
  74. package/dist/assets/{FeaturePreviewPage-B6_exSoS-Do4_f9l1.js → FeaturePreviewPage-eUvRNjsx-D93wu9_Y.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-BoA-EzkO-CtKbn8f6.js → FollowStepsSection-D60JM8h_-WgnL9DSD.js} +11 -11
  76. package/dist/assets/{GlobalReviewListPage-CYjobk5Y-BRiHcGuf.js → GlobalReviewListPage-BpXEtrb4-CJJjyGfo.js} +6 -6
  77. package/dist/assets/HelpButton-hflpTkYP-BxxKYxfC.js +28 -0
  78. package/dist/assets/{InformationCardStack-Dvu4sQsc-BlKJwxKC.js → InformationCardStack-BsxmscQq-CSrArWRb.js} +3 -3
  79. package/dist/assets/{InsightsCardStack-DffcRWuM-BTqxOdqS.js → InsightsCardStack-5JDl2mCA-CZ5TshWK.js} +7 -7
  80. package/dist/assets/{InsightsSection-C8Oi6wcZ-D3wuyBHx.js → InsightsSection-DsO5tfQL-CBUNqXt7.js} +4 -4
  81. package/dist/assets/{IntegrationsSettingsPage-C0VZQfG_-ks1Gh_uy.js → IntegrationsSettingsPage-MQDeidS6-BKVTNE0x.js} +6 -6
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-SAcvo9BB-BCh0Bmwt.js → InternationalWireSwiftDetailsPage-CpT4WPn3-b0nQCCWc.js} +14 -14
  83. package/dist/assets/{InternationalWireVerificationPage-8Ff3v4gu-BQsNCeNp.js → InternationalWireVerificationPage-DlBFLwxy-BIViCBlF.js} +5 -5
  84. package/dist/assets/InviteFormPage-D0QCEMkX-DZr12vmY.js +312 -0
  85. package/dist/assets/{InvitePageListView-DG91-L1w-HUdilJLK.js → InvitePageListView-CVf8HrhY-cBhycZNO.js} +24 -24
  86. package/dist/assets/{InvitePeoplePage-6ANmf4z2-D3l-3sjy.js → InvitePeoplePage-Dg7iuq2i-Cx5QFhMU.js} +4 -4
  87. package/dist/assets/{InvoiceUploadSection-C4O7GGrv-DEO_7ppT.js → InvoiceUploadSection-BuwWumE2-CTijWOqK.js} +5 -5
  88. package/dist/assets/{IssueChargeCardPage-gohjPIRu-KdDkWZ0o.js → IssueChargeCardPage-DL23WAiQ-CCNHr1-9.js} +26 -26
  89. package/dist/assets/{LabeledAddressValue-C6EUPzNB-f8CKs718.js → LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-DLou-2Lm-30_LmoCw.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-TB_2rc3R-DL54XhuW.js → LabeledControlledCheckBoxField-DqrqiFhz-GyWAbp3D.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CdgNcgTu-CwOMlXoT.js → LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js} +8 -8
  93. package/dist/assets/{LabeledDocumentField-CzTqgS97-CVWMa21M.js → LabeledDocumentField-By7zV2VD-Deh87JH9.js} +4 -4
  94. package/dist/assets/{LabeledDropDownFormattedTextField-CVzL0J5a-D5_Y7iWl.js → LabeledDropDownFormattedTextField-BF37XlAJ-B3ToXjDJ.js} +6 -6
  95. package/dist/assets/{LabeledText-BICN3vpf-Lk4PuYrJ.js → LabeledText-D4fC1Hz2-Cxv5m94v.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-VeWNep8c-tP0CG0Iv.js → LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-B9c0Mx1N.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField--Jr1KizL-SyZHoQyC.js → LabeledZeniRolesDropDownField-CTA3JLz4-D4MXXizm.js} +17 -17
  98. package/dist/assets/{LinkJETransactionPage-BNWOmBHj-C6dNtx3m.js → LinkJETransactionPage-CLAyFAJh-Dm40KZjj.js} +5 -5
  99. package/dist/assets/{LowBalancePopup-Dhrtsv_E-B0rnJzet.js → LowBalancePopup-TCSP5zrD-BmN6CG0D.js} +7 -7
  100. package/dist/assets/{MagicLinkACHDetailsPage-Brt9q6YZ-ByLyPANb.js → MagicLinkACHDetailsPage-C9sNEDPT-D6e_XUAG.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CkSEgmKP-DxqY0_R2.js → MagicLinkDomesticWireDetailsPage-D4C-a5QY-DOB7ds5g.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-CqYC7uu7-CV88Q6h1.js → MagicLinkInternationalWireDetailsPage-oKAXWkRz-ICvIdgn3.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-VR-HSAYZ-DUCuiXm5.js → MagicLinkSuccessPage-DTKe1Hxk-D3l_qzGn.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-T6m2zH4A-C4uTRZc1.js → MagicLinkTitleSection-BZ9PbTY5-DGA-Kfl0.js} +4 -4
  105. package/dist/assets/{MailingDetailsSection-B6ZCAac5-CjQ8hXZb.js → MailingDetailsSection-DOuPh_kK-CJdFvtR9.js} +6 -6
  106. package/dist/assets/{MeetingCalenderPopup-CgzTeE14-BMiIqHVm.js → MeetingCalenderPopup-Bn5picNg-BZadZTcq.js} +1 -1
  107. package/dist/assets/{Menu-DOJJ_REW-BwD6B3Nk.js → Menu-D_vf2LDo-39KwK8wM.js} +3 -3
  108. package/dist/assets/{MyBankConnectionsSettingsPage-C_NrRV7T-BjsWlM7P.js → MyBankConnectionsSettingsPage-DJZVD_j4-CYkcPYeU.js} +14 -14
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-CNHCZPs--fg7FpZSk.js → MyPendingActivationChargeCardListPage-DyhXBMCi-DtFEW_4I.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-CIfFufvo-uBNLzBNw.js → MyProfileSettingsPage-gPNoKP10-gCIICwqR.js} +10 -10
  111. package/dist/assets/{NavBarWithPicker-CvhnGryh-CauN1w5W.js → NavBarWithPicker-BlYfbDi0-BiD5rNBH.js} +5 -5
  112. package/dist/assets/{NavigationArrow-CXkUidH6-fqvGvSGZ.js → NavigationArrow-CQ_K0Bon-C-8VFiTg.js} +1 -1
  113. package/dist/assets/{NavigationDots-hBq7kHVj-Vj1p5Rqn.js → NavigationDots-CI0cjpQA-B6oVaxeu.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-DORHvz4D-CYDIdofb.js → NewGlobalMerchantPage-BHQiRWO8-or4Uc_HY.js} +6 -6
  115. package/dist/assets/{NoDataChart-C4KqN3ua-6H0vHNsB.js → NoDataChart-Dg1_sU_O-flEThGvM.js} +1 -1
  116. package/dist/assets/{NoDataTable-DaX07HI0-B6ZwwCAM.js → NoDataTable-qTYBbL2H-BGrSHe_q.js} +1 -1
  117. package/dist/assets/{NotFoundPage-BIh20jzm-BXLRcjFX.js → NotFoundPage-DYjrSF7l-D7C6Z_Gh.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-gU3g8rJ2-Au_WueGH.js → NotificationSettingsPage-DZHlnrbH-D8paihJx.js} +13 -13
  119. package/dist/assets/NotificationsListConfig-BSBZHM3y-CGdVXHfi.js +1 -0
  120. package/dist/assets/{NotificationsPage-oy3LHVU2-C0LKRRGq.js → NotificationsPage-QgnztPHs-CnFUIBHp.js} +35 -35
  121. package/dist/assets/{OpExByVendorPage-D8jXzTd6-CpwZHxBM.js → OpExByVendorPage-_AMvFFwS-DGSt9CNm.js} +7 -7
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-Drnebvl5.js → OverlayContainerPage-Bmu909Fo-CI9x-FUu.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-BQW2_QDB-BVhcDW_t.js → PandLWithForecastPage-D_3EfFjd-JoBuR2Ry.js} +10 -10
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CY9QJXXs-ByBDQvaD.js → PaymentAccountSetupBillingAddressSection-Ch5yJBuG-Czoqfz5V.js} +5 -5
  125. package/dist/assets/{PeoplePage-B7s3mjRX-BNB49xB2.js → PeoplePage-DZr3Lusf-M76DhnJE.js} +23 -23
  126. package/dist/assets/PortfolioAllocationFormPage-Byu_8Js7-CWAHnet9.js +207 -0
  127. package/dist/assets/{PortfolioDetails-BFqRNjFs-DdtIdWXw.js → PortfolioDetails-BH-sfG9j-CdKUfZw3.js} +19 -19
  128. package/dist/assets/{ProductsCarousel-BaTq9uMB-DT3_7m1I.js → ProductsCarousel-C4J19mb--DcgR5jdw.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-Bf3Dizji-DFvWixK1.js → PromoBaseCards-Bj4SLu8_-CC7a127A.js} +7 -7
  130. package/dist/assets/{QBOConnectionDialog-DhOSSZ5O-BcCZx_dG.js → QBOConnectionDialog-Bx6ZDEvY-BRYqXjwh.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-BWJoUKzu-DC5g6xXu.js → QBOSetupSection-BCdoUjwK-BF2gwacX.js} +9 -9
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CiebC6vq-B0xwHjcZ.js → ReimbursementApprovalRuleDetailPage-DsTMXav9-B1Ngpniy.js} +2 -2
  133. package/dist/assets/{ReimbursementApprovalRulesPage-gKLkrIyV-DxnMuJiA.js → ReimbursementApprovalRulesPage-CJLcH9Ov--aMB2wIm.js} +9 -9
  134. package/dist/assets/{ReimbursementDetailPage-BF4vlfIm-A5yNZHmb.js → ReimbursementDetailPage-Ctgt3Dcz-Bah5s5HT.js} +11 -11
  135. package/dist/assets/{ReimbursementPromoPage-BFwztEak-CceCs1UK.js → ReimbursementPromoPage-DCmevd5G-RVnIiUe8.js} +14 -14
  136. package/dist/assets/{ReimbursementSetUpPage-D1AVnqd4-CKntMkOU.js → ReimbursementSetUpPage-Dc9xJUbM-BRgUtgcr.js} +4 -4
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BsqdpOS_-B3Pgz4a_.js → ReimbursementsBulkReviewDrawerPage-CKjHGxjw-DAh9TKrH.js} +1 -1
  138. package/dist/assets/{ReloadCard-BmYf1NZf-DhNr8urp.js → ReloadCard-DxJMY9If-DFVN_BWj.js} +1 -1
  139. package/dist/assets/{ReportTableViewSelector-yTxheyC3-CSqeEY6U.js → ReportTableViewSelector-lMBROmrI-C57N0Ev_.js} +11 -11
  140. package/dist/assets/{ReportsPage-DZtCp9CP-GUEOyiOt.js → ReportsPage-DMYLnwc7-C986BuH8.js} +10 -10
  141. package/dist/assets/{RevenueChart-CXSh5l_p-dQ5RnZTk.js → RevenueChart-DD8vb3zi-DI64DZjn.js} +1 -1
  142. package/dist/assets/ReviewDetailsPage-C-6hNb3q-Bs8iB-Q6.js +290 -0
  143. package/dist/assets/{ReviewOverlay-B2jf6tfG-D_9vNPuM.js → ReviewOverlay-sqbjCjkE-BYmWnWTV.js} +10 -10
  144. package/dist/assets/{RoleWithToolTip-DHdLJcWR-GnlXHGj6.js → RoleWithToolTip-BpMhPbAJ-D4xuhbtR.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CY0i2n7i-9GRv9Sh2.js → ScheduleDetailsFixedAssetsPage-D1uRcS4p-n5wC_akR.js} +8 -8
  146. package/dist/assets/{ScheduleDetailsPage-CVh8-Sc9-BcDI1QHR.js → ScheduleDetailsPage-D8Cvxd7m-bSm3GRae.js} +4 -4
  147. package/dist/assets/{ScheduleSequenceTable-8qqeMhAk-COgow_cL.js → ScheduleSequenceTable-CvqXlh31-iJzQjEX9.js} +50 -50
  148. package/dist/assets/{ScreenRoutes-HggFEvBU.js → ScreenRoutes-CG3ALmQe.js} +1 -1
  149. package/dist/assets/SetUpAccountSection-CDXmRiGQ-DykmFmYq.js +378 -0
  150. package/dist/assets/{SetUpDefaultSection-BM57n5BV-BGP1G39B.js → SetUpDefaultSection-VPie4JZS-CUUkgLvy.js} +6 -6
  151. package/dist/assets/SignIn-9DfCxy9Q-D5TOW1KJ.js +407 -0
  152. package/dist/assets/{SignInScreen-BP8BTBPi.js → SignInScreen-C5ZC9m_8.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-BphSarNr-olaU5e62.js → SpendManagementListViewPage-Q5bQb3hk-BwLto-DN.js} +4 -4
  154. package/dist/assets/{SpendManagementPerTabPage-DCkS4HuZ-BoJws23h.js → SpendManagementPerTabPage-CD-kDdxa-BPnAzojr.js} +26 -26
  155. package/dist/assets/{SpendManagementSection-DKqHikhq-CsTWl7zh.js → SpendManagementSection-DGGOMGEz-BERrqLUW.js} +6 -6
  156. package/dist/assets/{SpendMgmtSetupAccountSection-BF7bb5O_-DSPc6rRK.js → SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js} +21 -21
  157. package/dist/assets/{StatementItem-Ki_Mzpf9-D38JqRpj.js → StatementItem-1vBLASxl-Bg-WCzCW.js} +4 -4
  158. package/dist/assets/{StatementsPage-B6XMWWpt-Dr9BGLnN.js → StatementsPage-cCluGN33-CUSb15rA.js} +1 -1
  159. package/dist/assets/{StatusSwitcher-BkAnAbyd-DQZA1a3w.js → StatusSwitcher-efLzDuyw-yZjEoNnl.js} +2 -2
  160. package/dist/assets/{SubTabSwitcher-Au3snima-DElPxhu-.js → SubTabSwitcher-BfYlJKJ6-0yeg6J8n.js} +1 -1
  161. package/dist/assets/{SummaryCard-B-IXQpJ7-Dg8CCNrn.js → SummaryCard-BsPejHZG-DSp7yYcI.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-BPNEy-p0-BIbh7B8y.js → TaskManagementPage-CkdITpbn-BnN3mtBv.js} +31 -31
  163. package/dist/assets/{TimeRangeSwitcher-DpDC0FGn-CoKhjSY7.js → TimeRangeSwitcher-DVB0vP5W-Bka-ygDj.js} +5 -5
  164. package/dist/assets/{TimeframeSwitcher-D1cuigpc-D9PCDoa0.js → TimeframeSwitcher-BmhH741X-Bq2UrAGM.js} +2 -2
  165. package/dist/assets/{TimeframeSwitcherWithToggle-_2U17Wg0-Cc6NrQTz.js → TimeframeSwitcherWithToggle-B1bMIGal-PXrqXkjU.js} +1 -1
  166. package/dist/assets/{TopExCard-BWOozDK3-GMojpRJp.js → TopExCard-DBuo1QUF-Bqy_yS0O.js} +6 -6
  167. package/dist/assets/{TopExDetailPage-DpYLakrO-vsCGpsy3.js → TopExDetailPage-CGPgaWRb-BefBmW9C.js} +20 -20
  168. package/dist/assets/TransactionDetailPage-BUP-dxVE-Bluz2ZEA.js +912 -0
  169. package/dist/assets/TransactionList-DP9cEVya-Dnf5dIML.js +147 -0
  170. package/dist/assets/{TransactionListBig-CefZbd83-D9G3vxbN.js → TransactionListBig-B_s15U1P-DxO9dvuT.js} +15 -15
  171. package/dist/assets/{TransactionListPage-CM319tsV-DkNHohDS.js → TransactionListPage-DpYLFl8A-CtiLL9up.js} +6 -6
  172. package/dist/assets/{TransactionVendorDetailPage-Z7O-juRN-D3T9JsrE.js → TransactionVendorDetailPage-DqqSV533-DMSzEnyq.js} +4 -4
  173. package/dist/assets/{TransferDrawerPage-0vQtF6ID-fpHDlHlf.js → TransferDrawerPage-CxdQzo0m-DrhEn9ys.js} +79 -79
  174. package/dist/assets/{TreasuryOverviewPage-DaCuL9FX-BtE7UAml.js → TreasuryOverviewPage-D7vqj60i-DA26_cse.js} +22 -22
  175. package/dist/assets/{TreasuryPromoPage-BQ6Cuqoa-DpBYobqK.js → TreasuryPromoPage-BuxEHMpT-BDwacXK1.js} +12 -12
  176. package/dist/assets/{TreasurySetupPage-BJRBNCvY-DTKYqc-u.js → TreasurySetupPage-BIfbbeL3-V_YXLN-n.js} +4 -4
  177. package/dist/assets/{TreasuryStatementsPage-z6cg-MO_-B6xE_NLh.js → TreasuryStatementsPage-BeUdQZBc-XNPULVYt.js} +1 -1
  178. package/dist/assets/{TreasuryTaxLetterPage-DP-c4Sqo-DJ913yYo.js → TreasuryTaxLetterPage-uFRMjqLn-CGfm28c4.js} +1 -1
  179. package/dist/assets/{TreasuryTransferOrReviewPage-BGfIlPXx-DSEBAJOM.js → TreasuryTransferOrReviewPage-BWybwqhc-Cp5gifXq.js} +27 -27
  180. package/dist/assets/{TrendChart-BAMRDfp7-BazRtItt.js → TrendChart-7kPgcETh-CZhHOMVt.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-CgbouMHP-BeJkYy2u.js → TrendWithTransactions-DPby1I5u-yXfJ3Iyk.js} +8 -8
  182. package/dist/assets/{UncategorizedAccountsMappingPage-DUVjNpg2--ZQ9jdii.js → UncategorizedAccountsMappingPage-DEkSWWRY-BWS3cZYH.js} +11 -11
  183. package/dist/assets/{UnitIntegrationPage-DSWbn8gm-BF5pvmYs.js → UnitIntegrationPage-B5yzIJDg-DXMgkfWr.js} +3 -3
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-BFn9gixM-TNCvf1wH.js → UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js} +8 -8
  185. package/dist/assets/{Vendor2FAPopup-CA-cVVNX-Br4ikl9I.js → Vendor2FAPopup-DUyiI_-r-CLW3sS1X.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-Hdw6gHNB-D1EJLe9f.js → VendorACHDetailsPage-DycUU3MN-Bh437Vzf.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-CceVHonS-DTF5QB-w.js → VendorDetailPage-B9pWIvXP-p9O1B1Vq.js} +21 -21
  188. package/dist/assets/{VendorDomesticWireDetailsPage-ChF-hj1o-CRNdIBeH.js → VendorDomesticWireDetailsPage-Cs35uQOp-DDOAIhlv.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BnMmu8g4-D-QjmAYA.js → VendorFiling1099EditablePage-BeuSWFCY-Ca6Gux7v.js} +11 -11
  190. package/dist/assets/{VendorFirstReviewPage-C9LNBxKs-iubpjCjr.js → VendorFirstReviewPage-ANhBsl69-D02KU5IA.js} +63 -63
  191. package/dist/assets/{VendorInternationalWireDetailsPage-B8F_1TYL-CehAU7df.js → VendorInternationalWireDetailsPage-BShiEKaz-BZSIpE6n.js} +31 -31
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-HuCjhvn4-DolPnQw8.js → VendorInternationalWireSwiftDetailsPage-B_NlK1ak-UtHTf4LD.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-Cj3NFdKN-B9ouaYU2.js → VendorsAccountsSection-BclWgEaB-DOMr50bF.js} +4 -4
  194. package/dist/assets/VerifyDevice-CRrOo66b-ZlA7gEbg.js +97 -0
  195. package/dist/assets/{VideoPopup-0LSxcyRX-CeJLs_Z5.js → VideoPopup-qS-ig_U0-VKyag34q.js} +3 -3
  196. package/dist/assets/{WarningsDrawerPage-DR9oeIuj-B1HHe12t.js → WarningsDrawerPage-DgRtxLoa-C9d8WcDP.js} +2 -2
  197. package/dist/assets/{ZeniAccountDetailPage-DHl0vyQ0-D4m750Dj.js → ZeniAccountDetailPage-B66nIr0V-6bf8tksW.js} +21 -21
  198. package/dist/assets/{ZeniAccountListViewPage-BC1yUQbd-DA-thvu8.js → ZeniAccountListViewPage-CWhZKmoP-42K6r0wR.js} +10 -10
  199. package/dist/assets/{ZeniAccountNavBarPieces-CpKh4Vxw-CQBSadEV.js → ZeniAccountNavBarPieces-C6MQhfnU-CnbDnx7e.js} +2 -2
  200. package/dist/assets/{ZeniAccountPromoPage-BaRzPlIW-DDgMDs51.js → ZeniAccountPromoPage-C-oF3-HO-DisOzRKq.js} +16 -16
  201. package/dist/assets/{ZeniAccountSetupPage-CveI2__B-BL7QVBOR.js → ZeniAccountSetupPage-DY-nCuiT-B3gBHMad.js} +4 -4
  202. package/dist/assets/{ZeniCopyright-D6e3OekQ-3nIDquq3.js → ZeniCopyright-rY1T9xhh-Dfov-yky.js} +1 -1
  203. package/dist/assets/{ZeniTransferAmountSlider-BqyHxYBn-DOVMp_BS.js → ZeniTransferAmountSlider-Bh5zkWst-Bed32C-4.js} +1 -1
  204. package/dist/assets/analytics-B3n5JGPc.js +7 -0
  205. package/dist/assets/{analyticsHelper-q5gZKv1q.js → analyticsHelper-B0L0ncmN.js} +1 -1
  206. package/dist/assets/{analyticsHelper-CYiy63P3-BIFQ1l_N.js → analyticsHelper-BcJgRhqY-D6z677ff.js} +1 -1
  207. package/dist/assets/chartTypes-BoblEsVF-BVffEXCf.js +1 -0
  208. package/dist/assets/{commonDimensions-DbTYS1hy-sQ0jQuuT.js → commonDimensions-CFd7y7qU-C7Jvc2Ks.js} +1 -1
  209. package/dist/assets/{detailCommon-BeqWtSZF-C3x-L6T7.js → detailCommon-MYixZ3RD-BFmVTLGA.js} +6 -6
  210. package/dist/assets/{downloadPdf-CLTp2aZt-DDw4mfQ_.js → downloadPdf-CgupyHRa-D9AEGU0d.js} +1 -1
  211. package/dist/assets/{index-P_4M6V8j.js → index-B8OsEhOZ.js} +753 -749
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-Dl_IFb2l-Dr2U1vob.js → mapLoadingInProgressToTreeNode-B8Y_euQR-DOx1e8cj.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BAhSN9Et-BvR2g837.js → mapSectionWithAcOnlyToTreeNode-jBSc45Na-BDZbXmNV.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-3b46l63c-C8ssHh5s.js → mapSpacerToTreeNode-COy8gZAM-BaCmq5hE.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-3pTXOISe-CgCBO3AW.js → mapTimeframeBalancesToTreeNode-BodkMcFj-QmE2hfm4.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-DJqcH4tL-s-wMhKIa.js → mapTimeframeBalancesToTreeNode-DXla81BF-zj0mJKeb.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-yhbtLbK2-Buokl7Z0.js → mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-BHeVK-te.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-D49XFhoj-DjL9meL6.js → toCOABalancesWithID-CndsNNsv-CWYFJv_O.js} +1 -1
  219. package/dist/assets/{toChartData-C9pHl0xA-CKVc0-Yj.js → toChartData-B9eYLI57-CKqynvrs.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-CkjbPhqI-PraXB90r.js → treasuryColorHelper-D4iDeX95-DVOhzALi.js} +1 -1
  221. package/dist/assets/{uploadAttachment-BniS82zn-BreMBxbN.js → uploadAttachment-C2I6mBBB-CPoUzWwI.js} +14 -14
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-wO4Dla2j.js → uploadReceipts-dxsKhm9I-YtN4h-4H.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +4 -4
  225. package/dist/assets/ChargeCardSetupPage-BzqdaEET-j6EBeAK_.js +0 -36
  226. package/dist/assets/CustomerOnboardingContainerPage-B9rA9JXM-C9nb1PSk.js +0 -1
  227. package/dist/assets/CustomerOnboardingNoStepsPage-B8cf9wWc-DoeA9g-j.js +0 -66
  228. package/dist/assets/CustomerOnboardingProductSuitePage-Dfv86gVc-xcmudBbw.js +0 -202
  229. package/dist/assets/DashboardSidebarBackgroundAnimation-DTkdczBR-Dm25xp1J.js +0 -12
  230. package/dist/assets/DepositAccTransactionListPage-C6lB4Qyv-67Okcjlq.js +0 -66
  231. package/dist/assets/ExpenseAutomationOverviewPage-Bz-2JPdW-DaIoHdOM.js +0 -222
  232. package/dist/assets/HelpButton-DEwtg0Ez-BLNCXJFp.js +0 -28
  233. package/dist/assets/InviteFormPage-CRRvruND-BlSp_6On.js +0 -312
  234. package/dist/assets/LabeledAddressValueField-CC4nYBb8-CmuRvhjZ.js +0 -45
  235. package/dist/assets/NotificationsListConfig-C14JCaD1-cAHM1Kht.js +0 -1
  236. package/dist/assets/PortfolioAllocationFormPage-eonsRKDg-CW4TIBlU.js +0 -207
  237. package/dist/assets/ReviewDetailsPage-DG7ms5Hy-bXyI7cqb.js +0 -290
  238. package/dist/assets/SetUpAccountSection-CKdSkMBO-Dgf4iucH.js +0 -378
  239. package/dist/assets/SignIn-BMjCrrGx-DVM_TdnN.js +0 -407
  240. package/dist/assets/TransactionDetailPage-Bxzam_ho-gn2TcHkj.js +0 -878
  241. package/dist/assets/TransactionList-CEfjoVPA-DR1uAuMl.js +0 -147
  242. package/dist/assets/VerifyDevice-dg83_W2W-DmiPoszu.js +0 -96
  243. package/dist/assets/analytics-CBL_L82S.js +0 -7
  244. package/dist/assets/chartTypes-sx4859ds-GbS6VOEl.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s as kt,l as X,o as s,eM as Ze,bN as Ie,bR as xt,fE as wt,an as ft,bf as Je,a5 as Ct,e as le,a as Tt,C as Qe,c9 as $t,F as yt,ai as bt,bZ as vt,i9 as jt,ia as St,iG as ze,a3 as Gt,J as De,bA as Ee,eI as Xe,iH as Lt,cw as et,iI as pe,iJ as xe,iK as Nt,iL as we,iM as tt,iN as st,iO as ot,iP as nt,iQ as at,iR as rt,iS as _,q as ke,iT as re,i as ie,iU as It,iV as Et,a2 as Mt,r as Dt,iW as zt,d9 as Bt,iX as At,cm as it,cG as Rt,v as Wt,iY as Ft,iZ as Ot,fF as Pt,eL as Vt,i_ as Ut,i$ as J,j0 as Be,b$ as Ht,j1 as _t,j2 as Kt,j3 as Ae,j4 as Yt,g as Re,g0 as qt,B as Zt}from"./index-P_4M6V8j.js";import{b as n,n as o,j as fe}from"./vendor-rkTZJa59.js";import{J as Jt,Y as Qt}from"./SpendManagementSection-DKqHikhq-CsTWl7zh.js";import{A as Xt,t as es,a as ts,E as ss}from"./NotificationsListConfig-C14JCaD1-cAHM1Kht.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-BphSarNr-olaU5e62.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./StatusSwitcher-BkAnAbyd-DQZA1a3w.js";const ns=100,as=100,rs=3,is=.7,ls=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ns,scrollSpeed:h=as,minScrollAmount:m=rs,scrollCurveExponent:p=is})=>{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)},j=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},E=x=>j(x),M=x=>{const S=Math.max(x,0)/d,y=Math.pow(S,p)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="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,y=c;if(y<d&&y>0){const L=d-y,g=M(L);k(x,g,"up")}else if(y>S-d){const L=y-(S-d),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{E(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])},Se=oe.getLocalizedStrings(),lt=({count:e})=>t.jsx(ds,{isCircular:e<10,children:t.jsx(cs,{children:e>Se.common.numbers.maximumCount?`${Se.common.numbers.maximumCount}${Se.common.strings.plus}`:e})}),ds=o.div`
1
+ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aX as mt,b as H,bV as gt,p as K,t as kt,m as Q,o as s,eM as Ze,bO as Ne,bS as xt,fE as wt,ao as ft,bg as Je,a6 as Ct,e as le,a as Tt,C as Xe,ca as $t,F as yt,aj as bt,b_ as vt,i9 as jt,ia as St,iG as ze,a4 as Gt,J as De,bB as Ie,eI as Qe,iH as Lt,cx as et,iI as pe,iJ as xe,iK as Et,iL as we,iM as tt,iN as st,iO as ot,iP as nt,iQ as at,iR as rt,iS as _,s as ke,iT as re,i as ie,iU as Nt,iV as It,a3 as Mt,r as Dt,iW as zt,d9 as Bt,iX as Rt,cn as it,cH as At,v as Ot,iY as Ft,iZ as Wt,fF as Pt,eL as Vt,i_ as Ht,i$ as J,j0 as Be,c0 as Ut,j1 as _t,j2 as Kt,j3 as Re,j4 as Yt,g as Ae,g0 as qt,B as Zt}from"./index-B8OsEhOZ.js";import{b as n,n as o,j as fe}from"./vendor-rkTZJa59.js";import{K as Jt,Y as Xt}from"./SpendManagementSection-DGGOMGEz-BERrqLUW.js";import{A as Qt,t as es,a as ts,E as ss}from"./NotificationsListConfig-BSBZHM3y-CGdVXHfi.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-Q5bQb3hk-BwLto-DN.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./StatusSwitcher-efLzDuyw-yZjEoNnl.js";const ns=100,as=100,rs=3,is=.7,ls=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ns,scrollSpeed:h=as,minScrollAmount:m=rs,scrollCurveExponent:p=is})=>{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)},j=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>j(x),M=x=>{const S=Math.max(x,0)/d,y=Math.pow(S,p)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="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,y=c;if(y<d&&y>0){const L=d-y,g=M(L);k(x,g,"up")}else if(y>S-d){const L=y-(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])},Se=oe.getLocalizedStrings(),lt=({count:e})=>t.jsx(ds,{isCircular:e<10,children:t.jsx(cs,{children:e>Se.common.numbers.maximumCount?`${Se.common.numbers.maximumCount}${Se.common.strings.plus}`:e})}),ds=o.div`
2
2
  ${e=>e.isCircular?fe`
3
3
  height: 18px;
4
4
  width: 18px;
@@ -16,7 +16,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
16
16
  outline-color: inherit;
17
17
  `,cs=o(Dt)`
18
18
  color: inherit;
19
- `,{taskManagement:We,common:Ge}=oe.getLocalizedStrings();function ps(e){const{onChange:u,value:r,resetDisabled:h,onReset:m}=e,p=()=>{h!==!0&&m()};return t.jsxs(us,{children:[t.jsx(gs,{children:We.taskList.groupingFilters.groupBy}),t.jsx(hs,{children:t.jsx(Jt,{value:r,placeHolder:We.taskList.groupingFilters.placeholder,onChange:a=>{const c=X.toTaskListGroupByKeyTypeStrict(a.value);if(c!=null)u(c);else throw new Error("Invalid taskListGroupByKey")},options:X.TASK_LIST_GROUP_BY_CATEGORIES,getOptionLabel:a=>{const c=Ge.texts,i=X.toTaskListGroupByKeyTypeStrict(a);return i!=null?c[i]:Ge.strings.empty}})}),t.jsxs(ms,{onClick:p,isDisabled:h,children:[t.jsx(ks,{}),t.jsx(K,{children:Ge.reset})]})]})}const us=o.div`
19
+ `,{taskManagement:Oe,common:Ge}=oe.getLocalizedStrings();function ps(e){const{onChange:u,value:r,resetDisabled:h,onReset:m}=e,p=()=>{h!==!0&&m()};return t.jsxs(us,{children:[t.jsx(gs,{children:Oe.taskList.groupingFilters.groupBy}),t.jsx(hs,{children:t.jsx(Jt,{value:r,placeHolder:Oe.taskList.groupingFilters.placeholder,onChange:a=>{const c=Q.toTaskListGroupByKeyTypeStrict(a.value);if(c!=null)u(c);else throw new Error("Invalid taskListGroupByKey")},options:Q.TASK_LIST_GROUP_BY_CATEGORIES,getOptionLabel:a=>{const c=Ge.texts,i=Q.toTaskListGroupByKeyTypeStrict(a);return i!=null?c[i]:Ge.strings.empty}})}),t.jsxs(ms,{onClick:p,isDisabled:h,children:[t.jsx(ks,{}),t.jsx(K,{children:Ge.reset})]})]})}const us=o.div`
20
20
  display: flex;
21
21
  align-items: center;
22
22
  column-gap: ${s.sp4};
@@ -44,7 +44,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
44
44
  `,ks=o(Je)`
45
45
  width: ${s.sp3};
46
46
  height: ${s.sp3};
47
- `,xs=oe.getLocalizedStrings().taskManagement.taskList.footer;function ws({taskGroupsList:e,anchorEl:u,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:p}){const a=()=>{p(),h()};return t.jsx(Ze,{open:!!u,anchorEl:u,onClose:p,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(fs,{children:[t.jsx(Cs,{children:e.map(c=>{const i=()=>{p(),m(c.id)};return t.jsx(Fe,{onClick:i,children:t.jsx(ie,{children:c.groupName})},c.id)})}),t.jsx(U,{controller:r==="groupName",children:t.jsxs(Fe,{onClick:a,children:[t.jsx(Ts,{}),t.jsx(ie,{children:xs.createGroup})]})})]})})}const fs=o.div`
47
+ `,xs=oe.getLocalizedStrings().taskManagement.taskList.footer;function ws({taskGroupsList:e,anchorEl:u,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:p}){const a=()=>{p(),h()};return t.jsx(Ze,{open:!!u,anchorEl:u,onClose:p,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(fs,{children:[t.jsx(Cs,{children:e.map(c=>{const i=()=>{p(),m(c.id)};return t.jsx(Fe,{onClick:i,children:t.jsx(ie,{children:c.groupName})},c.id)})}),t.jsx(H,{controller:r==="groupName",children:t.jsxs(Fe,{onClick:a,children:[t.jsx(Ts,{}),t.jsx(ie,{children:xs.createGroup})]})})]})})}const fs=o.div`
48
48
  background-color: ${e=>e.theme.colors.grey5};
49
49
  `,Fe=o.div`
50
50
  padding: ${s.sp2} ${s.sp3};
@@ -62,7 +62,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
62
62
  `,Ts=o(et)`
63
63
  width: ${s.sp3};
64
64
  height: ${s.sp3};
65
- `;function $s({placeholder:e,searchText:u,inputContainerStyles:r,onSearchTextChanged:h}){const[m,p]=n.useState(!1),a=n.useRef(null),c=le(),i=()=>{u||p(!1)};return t.jsxs(ys,{children:[m?null:t.jsx(vs,{onMouseEnter:()=>p(!0),onClick:()=>{p(!0),a.current?.focus()},children:t.jsx(Oe,{})}),m?t.jsxs(bs,{style:r,isOpen:m,children:[t.jsx(Oe,{}),t.jsx(js,{windowSize:c,autoFocus:c!=="small",placeholder:e,value:u,onBlur:i,onChange:d=>{const C=d.target;h(C.value)},ref:a}),u?t.jsx(Ss,{}):null]}):null]})}const ys=o.div`
65
+ `;function $s({placeholder:e,searchText:u,inputContainerStyles:r,onSearchTextChanged:h}){const[m,p]=n.useState(!1),a=n.useRef(null),c=le(),i=()=>{u||p(!1)};return t.jsxs(ys,{children:[m?null:t.jsx(vs,{onMouseEnter:()=>p(!0),onClick:()=>{p(!0),a.current?.focus()},children:t.jsx(We,{})}),m?t.jsxs(bs,{style:r,isOpen:m,children:[t.jsx(We,{}),t.jsx(js,{windowSize:c,autoFocus:c!=="small",placeholder:e,value:u,onBlur:i,onChange:d=>{const C=d.target;h(C.value)},ref:a}),u?t.jsx(Ss,{}):null]}):null]})}const ys=o.div`
66
66
  position: relative;
67
67
  `,bs=o.div`
68
68
  position: absolute;
@@ -74,7 +74,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
74
74
  border-bottom: 1px solid ${e=>e.theme.colors.primary};
75
75
  min-width: ${({isOpen:e})=>e?"200px":"0px"};
76
76
  transition: min-width 0.3s ease-in-out;
77
- `,Oe=o(It)`
77
+ `,We=o(Nt)`
78
78
  color: ${e=>e.theme.colors.hero};
79
79
  width: ${s.sp3};
80
80
  height: ${s.sp3};
@@ -83,7 +83,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
83
83
  }
84
84
  `,vs=o.div`
85
85
  cursor: pointer;
86
- `,js=o(Et)`
86
+ `,js=o(It)`
87
87
  display: flex;
88
88
  border-width: ${s.sp0};
89
89
  outline-width: ${s.sp0};
@@ -97,7 +97,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
97
97
  `,Ss=o(Mt)`
98
98
  width: ${s.sp3};
99
99
  height: ${s.sp3};
100
- `,Gs=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"})),Ls=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"})),Ns=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:Is,common:Es}=oe.getLocalizedStrings(),Q=Is.taskList.newTaskOptions;function Ms({anchorEl:e,groupByKey:u,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:p,onExpandTemplate:a,onClose:c,onNewTaskClick:i,onNewGroupClick:d,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:j,onNewTaskInitialization:E}){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),j($,x)},[j]),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(zs,{isTaskTemplatesEnabled:m,children:[t.jsxs(Rs,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(Bs,{}),t.jsx(Ie,{children:Q.task})]}),t.jsx(U,{controller:u==="groupName",children:t.jsxs(Pe,{onClick:()=>d(""),children:[t.jsx(As,{}),t.jsx(Ie,{children:Q.group})]})})]}),m?t.jsx(Ds,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:p,handleGroupTemplateClick:B,handleGroupTemplateTaskClick:z,onNewGroupClick:d,onNewTaskInitialization:E,onExpandTemplate:a}):null]})})}const Ds=({taskGroupTemplates:e,taskIdInCreation:u,groupIdInCreation:r,expandedTemplate:h,onExpandTemplate:m,handleGroupTemplateClick:p,handleGroupTemplateTaskClick:a,onNewGroupClick:c,onNewTaskInitialization:i})=>{const[d,C]=n.useState(""),j=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]),E=n.useCallback(()=>{i(d)},[d,i]),M=n.useCallback(()=>{c(d)},[d,c]);return t.jsxs(Ws,{children:[t.jsx(Fs,{children:t.jsxs(Ps,{children:[t.jsxs(Os,{children:[t.jsx(Vs,{}),t.jsx(Us,{children:Q.groupTemplates})]}),t.jsx($s,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:d,onSearchTextChanged:C,placeholder:Q.searchPlaceholder})]})}),t.jsx(U,{controller:j.length>0,children:t.jsx(Hs,{children:j.map(k=>{const f=h===k.id;return t.jsxs(eo,{children:[t.jsxs(_s,{onClick:()=>{m(k.id)},expanded:f,children:[t.jsxs(Ks,{children:[t.jsx(U,{controller:f,children:t.jsx(Xs,{})}),t.jsx(U,{controller:!f,children:t.jsx(Qs,{})}),t.jsx(K,{children:k.name}),t.jsx(lt,{count:k.tasks.length})]}),t.jsx(Zs,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:Q.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),p(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(U,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Ys,{children:[t.jsxs(qs,{children:[t.jsx(to,{className:"styled-dot"}),t.jsx(no,{className:"task-name-text",children:w.name})]}),t.jsx(Js,{loading:u===w.name,className:"hidden-create-task-button",variant:"secondary",size:"xs-small",label:Es.create,reverseSpinnerColor:!1,onClick:()=>a(k.id,w.name)})]},w.name))})})]},k.id)})})}),t.jsxs(U,{controller:j.length===0,children:[t.jsx(so,{children:t.jsx(oo,{children:Q.noTaskGroup})}),t.jsxs(Ve,{onClick:E,children:[t.jsx(Ue,{}),t.jsx(K,{children:Q.newTaskOptionText.replace("__searchText__",d)})]}),t.jsxs(Ve,{onClick:M,children:[t.jsx(Ue,{}),t.jsx(K,{children:Q.newGroupOptionText.replace("__searchText__",d)})]})]})]})},zs=o.div`
100
+ `,Gs=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"})),Ls=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"})),Es=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:Ns,common:Is}=oe.getLocalizedStrings(),X=Ns.taskList.newTaskOptions;function Ms({anchorEl:e,groupByKey:u,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:p,onExpandTemplate:a,onClose:c,onNewTaskClick:i,onNewGroupClick:d,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:j,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),j($,x)},[j]),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(zs,{isTaskTemplatesEnabled:m,children:[t.jsxs(As,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(Bs,{}),t.jsx(Ne,{children:X.task})]}),t.jsx(H,{controller:u==="groupName",children:t.jsxs(Pe,{onClick:()=>d(""),children:[t.jsx(Rs,{}),t.jsx(Ne,{children:X.group})]})})]}),m?t.jsx(Ds,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:p,handleGroupTemplateClick:B,handleGroupTemplateTaskClick:z,onNewGroupClick:d,onNewTaskInitialization:I,onExpandTemplate:a}):null]})})}const Ds=({taskGroupTemplates:e,taskIdInCreation:u,groupIdInCreation:r,expandedTemplate:h,onExpandTemplate:m,handleGroupTemplateClick:p,handleGroupTemplateTaskClick:a,onNewGroupClick:c,onNewTaskInitialization:i})=>{const[d,C]=n.useState(""),j=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(Os,{children:[t.jsx(Fs,{children:t.jsxs(Ps,{children:[t.jsxs(Ws,{children:[t.jsx(Vs,{}),t.jsx(Hs,{children:X.groupTemplates})]}),t.jsx($s,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:d,onSearchTextChanged:C,placeholder:X.searchPlaceholder})]})}),t.jsx(H,{controller:j.length>0,children:t.jsx(Us,{children:j.map(k=>{const f=h===k.id;return t.jsxs(eo,{children:[t.jsxs(_s,{onClick:()=>{m(k.id)},expanded:f,children:[t.jsxs(Ks,{children:[t.jsx(H,{controller:f,children:t.jsx(Qs,{})}),t.jsx(H,{controller:!f,children:t.jsx(Xs,{})}),t.jsx(K,{children:k.name}),t.jsx(lt,{count:k.tasks.length})]}),t.jsx(Zs,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:X.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),p(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(H,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Ys,{children:[t.jsxs(qs,{children:[t.jsx(to,{className:"styled-dot"}),t.jsx(no,{className:"task-name-text",children:w.name})]}),t.jsx(Js,{loading:u===w.name,className:"hidden-create-task-button",variant:"secondary",size:"xs-small",label:Is.create,reverseSpinnerColor:!1,onClick:()=>a(k.id,w.name)})]},w.name))})})]},k.id)})})}),t.jsxs(H,{controller:j.length===0,children:[t.jsx(so,{children:t.jsx(oo,{children:X.noTaskGroup})}),t.jsxs(Ve,{onClick:I,children:[t.jsx(He,{}),t.jsx(K,{children:X.newTaskOptionText.replace("__searchText__",d)})]}),t.jsxs(Ve,{onClick:M,children:[t.jsx(He,{}),t.jsx(K,{children:X.newGroupOptionText.replace("__searchText__",d)})]})]})]})},zs=o.div`
101
101
  display: flex;
102
102
  flex-direction: column;
103
103
  width: ${e=>e.isTaskTemplatesEnabled?"408px":"unset"};
@@ -113,17 +113,17 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
113
113
  color: ${e=>e.theme.colors.primary};
114
114
  background-color: ${e=>e.theme.colors.background};
115
115
  }
116
- `,Bs=o(Ns)`
116
+ `,Bs=o(Es)`
117
117
  width: ${s.sp3};
118
118
  height: ${s.sp3};
119
- `,As=o(Ls)`
119
+ `,Rs=o(Ls)`
120
120
  width: ${s.sp3};
121
121
  height: ${s.sp3};
122
- `,Rs=o.div`
122
+ `,As=o.div`
123
123
  display: flex;
124
124
  flex-direction: column;
125
125
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
126
- `,Ws=o.div`
126
+ `,Os=o.div`
127
127
  background-color: ${e=>e.theme.colors.grey5};
128
128
  padding-bottom: ${s.sp2};
129
129
  `,Fs=o.div`
@@ -131,7 +131,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
131
131
  justify-content: space-between;
132
132
  align-items: center;
133
133
  padding: ${s.sp2} ${s.sp3};
134
- `,Os=o.div`
134
+ `,Ws=o.div`
135
135
  display: flex;
136
136
  column-gap: ${s.sp2};
137
137
  align-items: center;
@@ -145,9 +145,9 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
145
145
  width: ${s.sp3};
146
146
  height: ${s.sp3};
147
147
  color: ${e=>e.theme.colors.primary};
148
- `,Us=o(Ie)`
148
+ `,Hs=o(Ne)`
149
149
  color: ${e=>e.theme.colors.primary};
150
- `,Hs=o.div`
150
+ `,Us=o.div`
151
151
  max-height: 320px;
152
152
  overflow: auto;
153
153
  `,_s=o.div`
@@ -205,10 +205,10 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
205
205
  display: ${e=>e.expanded===!0?"block":"none"};
206
206
  `,Js=o(De)`
207
207
  display: none;
208
- `,Qs=o(Lt)`
208
+ `,Xs=o(Lt)`
209
209
  width: ${s.sp3};
210
210
  height: ${s.sp3};
211
- `,Xs=o(Xe)`
211
+ `,Qs=o(Qe)`
212
212
  width: ${s.sp3};
213
213
  height: ${s.sp3};
214
214
  `,eo=o.div``,to=o.div`
@@ -234,7 +234,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
234
234
  background-color: ${e=>e.theme.colors.background};
235
235
  color: ${e=>e.theme.colors.primary};
236
236
  }
237
- `,Ue=o(et)`
237
+ `,He=o(et)`
238
238
  width: ${s.sp3};
239
239
  height: ${s.sp3};
240
240
  `,no=o(K)`
@@ -243,7 +243,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
243
243
  text-overflow: ellipsis;
244
244
  white-space: nowrap;
245
245
  max-width: 336px;
246
- `,{common:Le,dateFormat:ao,taskManagement:Me}=oe.getLocalizedStrings(),dt={taskNameMaxWidth:new Qe(125,170,170,250,300)},ro=({taskDetail:e,tagList:u,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:p})=>{const a=le(),c=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,d=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Le.strings.empty,{getValues:C,resetField:j,getFieldState:E}=it(),M=(k,f)=>{const w=Ae(k,f,we);E(w).invalid?j(w):m(e,{timeSpent:C(w)})};return t.jsxs(co,{children:[t.jsxs($o,{windowSize:a,onClick:h,responsiveWidth:J[0].width,children:[t.jsxs(yo,{windowSize:a,children:[t.jsx(vo,{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(So,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ee,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(bo,{windowSize:a,responsiveWidth:J[0].width,children:t.jsx(jo,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(He,{windowSize:a,responsiveWidth:J[1].width,children:Be(e.status.code)}),t.jsx(Io,{windowSize:a,responsiveWidth:J[2].width,children:Be(e.priority.code)}),t.jsx(Eo,{windowSize:a,responsiveWidth:J[3].width,children:e.dueDate!=null?e.dueDate.format(ao.visual.MMMDCommaYYYYformat):t.jsx(po,{children:Le.strings.hyphen})}),t.jsx(He,{windowSize:a,responsiveWidth:J[4].width,children:c>0?t.jsxs(uo,{children:[t.jsx(Ht,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Go,{children:t.jsx(Lo,{children:d})}),c>1?t.jsx(ho,{children:`${Le.strings.plus}${c-1}`}):null]}):null}),t.jsx(Mo,{windowSize:a,responsiveWidth:J[5].width,children:e.tagIds.length>0?t.jsx(No,{children:_t(e.tagIds,u)}):null}),t.jsx(zo,{windowSize:a,responsiveWidth:J[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Bo,{className:"timeSpentField",children:t.jsx(Kt,{name:Ae(r,e.id,we),placeholder:Me.common.timeSpentPlaceholder,timeSpentFormat:Me.common.timeSpentFormat,registerOptions:{validate:k=>X.convertHHMMStrToMinutes(k)>Yt?(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}`}})})})]})},io=({taskGroup:e,tagList:u,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:p,isCollapsed:a,existingTaskGroupNamesByGroupId:c,onDeleteTaskGroup:i,onExpandAll:d,onCollapseAll:C,onAddNewTaskToTaskGroup:j,onCollapseToggle:E,onTaskManagementRowClick:M,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[D,z]=n.useState(null),B=le(),{setFocus:$}=it(),x=n.useCallback(()=>{E(e.id)},[E,e.id]),S=n.useCallback(W=>{z(W.currentTarget)},[]),y=n.useCallback(()=>{z(null)},[]),L=n.useCallback(()=>{j(e.id)},[j,e.id]),g=n.useCallback(()=>{z(null),i(e.id)},[i,e.id]),b=n.useCallback(()=>{$(`${r}.groupName`),y()},[y,r,$]);return t.jsxs(lo,{windowSize:B,children:[t.jsx(U,{controller:h,children:t.jsxs(mo,{children:[t.jsxs(go,{children:[t.jsx(ko,{isOpen:a===!1,onClick:x,children:t.jsx(xo,{})}),t.jsx(Rt,{style:{textAlign:"start",width:"100%",background:"unset",...Wt.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Me.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:W=>Ft(W,e.id,c)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx(wo,{onClick:S,children:t.jsx(fo,{})}),t.jsx(Ot,{onClose:y,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:d,onRename:b,isDefault:e.isDefault,anchorEl:D})]})}),t.jsx(U,{controller:a===!1,children:t.jsx(Pt,{mode:"checked_or_hover",isDisabled:p===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(W=>{const H=()=>{M(W.id)};return{label:t.jsx(ro,{taskDetail:W,onRowClick:H,tagList:u,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:B==="small"?null:t.jsx(Co,{children:t.jsx(To,{})}),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})})]})},lo=o.div`
246
+ `,{common:Le,dateFormat:ao,taskManagement:Me}=oe.getLocalizedStrings(),dt={taskNameMaxWidth:new Xe(125,170,170,250,300)},ro=({taskDetail:e,tagList:u,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:p})=>{const a=le(),c=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,d=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Le.strings.empty,{getValues:C,resetField:j,getFieldState:I}=it(),M=(k,f)=>{const w=Re(k,f,we);I(w).invalid?j(w):m(e,{timeSpent:C(w)})};return t.jsxs(co,{children:[t.jsxs($o,{windowSize:a,onClick:h,responsiveWidth:J[0].width,children:[t.jsxs(yo,{windowSize:a,children:[t.jsx(vo,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ie,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(So,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ie,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(bo,{windowSize:a,responsiveWidth:J[0].width,children:t.jsx(jo,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:J[1].width,children:Be(e.status.code)}),t.jsx(No,{windowSize:a,responsiveWidth:J[2].width,children:Be(e.priority.code)}),t.jsx(Io,{windowSize:a,responsiveWidth:J[3].width,children:e.dueDate!=null?e.dueDate.format(ao.visual.MMMDCommaYYYYformat):t.jsx(po,{children:Le.strings.hyphen})}),t.jsx(Ue,{windowSize:a,responsiveWidth:J[4].width,children:c>0?t.jsxs(uo,{children:[t.jsx(Ut,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Go,{children:t.jsx(Lo,{children:d})}),c>1?t.jsx(ho,{children:`${Le.strings.plus}${c-1}`}):null]}):null}),t.jsx(Mo,{windowSize:a,responsiveWidth:J[5].width,children:e.tagIds.length>0?t.jsx(Eo,{children:_t(e.tagIds,u)}):null}),t.jsx(zo,{windowSize:a,responsiveWidth:J[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Bo,{className:"timeSpentField",children:t.jsx(Kt,{name:Re(r,e.id,we),placeholder:Me.common.timeSpentPlaceholder,timeSpentFormat:Me.common.timeSpentFormat,registerOptions:{validate:k=>Q.convertHHMMStrToMinutes(k)>Yt?(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}`}})})})]})},io=({taskGroup:e,tagList:u,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:p,isCollapsed:a,existingTaskGroupNamesByGroupId:c,onDeleteTaskGroup:i,onExpandAll:d,onCollapseAll:C,onAddNewTaskToTaskGroup:j,onCollapseToggle:I,onTaskManagementRowClick:M,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[D,z]=n.useState(null),B=le(),{setFocus:$}=it(),x=n.useCallback(()=>{I(e.id)},[I,e.id]),S=n.useCallback(O=>{z(O.currentTarget)},[]),y=n.useCallback(()=>{z(null)},[]),L=n.useCallback(()=>{j(e.id)},[j,e.id]),g=n.useCallback(()=>{z(null),i(e.id)},[i,e.id]),b=n.useCallback(()=>{$(`${r}.groupName`),y()},[y,r,$]);return t.jsxs(lo,{windowSize:B,children:[t.jsx(H,{controller:h,children:t.jsxs(mo,{children:[t.jsxs(go,{children:[t.jsx(ko,{isOpen:a===!1,onClick:x,children:t.jsx(xo,{})}),t.jsx(At,{style:{textAlign:"start",width:"100%",background:"unset",...Ot.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Me.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:O=>Ft(O,e.id,c)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx(wo,{onClick:S,children:t.jsx(fo,{})}),t.jsx(Wt,{onClose:y,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:d,onRename:b,isDefault:e.isDefault,anchorEl:D})]})}),t.jsx(H,{controller:a===!1,children:t.jsx(Pt,{mode:"checked_or_hover",isDisabled:p===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(O=>{const U=()=>{M(O.id)};return{label:t.jsx(ro,{taskDetail:O,onRowClick:U,tagList:u,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:B==="small"?null:t.jsx(Co,{children:t.jsx(To,{})}),value:O.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})})]})},lo=o.div`
247
247
  box-sizing: border-box;
248
248
  display: flex;
249
249
  flex-direction: column;
@@ -256,7 +256,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
256
256
  width: 100%;
257
257
  background-color: ${e=>e.theme.colors.grey5};
258
258
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
259
- box-shadow: ${e=>e.theme.mode==="dark"?`${Re.dropShadowNormalDark} ${s.sp0} 2px ${s.sp1}`:`${s.sp0} 2px ${s.sp1} ${Re.dropShadowNormalLight}`};
259
+ box-shadow: ${e=>e.theme.mode==="dark"?`${Ae.dropShadowNormalDark} ${s.sp0} 2px ${s.sp1}`:`${s.sp0} 2px ${s.sp1} ${Ae.dropShadowNormalLight}`};
260
260
  border-radius: ${s.sp2};
261
261
  cursor: pointer;
262
262
  &:hover {
@@ -305,7 +305,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
305
305
  `,ko=o.div`
306
306
  cursor: pointer;
307
307
  transform: ${e=>e.isOpen?"rotate(0deg)":"rotate(-90deg)"};
308
- `,xo=o(Xe)`
308
+ `,xo=o(Qe)`
309
309
  width: ${s.sp3};
310
310
  height: ${s.sp3};
311
311
  color: ${e=>e.theme.colors.primary};
@@ -317,7 +317,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
317
317
  `,Co=o.div`
318
318
  padding-left: ${s.sp3};
319
319
  cursor: grab;
320
- `,To=o(Ut)`
320
+ `,To=o(Ht)`
321
321
  width: ${s.sp3};
322
322
  height: ${s.sp3};
323
323
  `,$o=o.div`
@@ -370,19 +370,19 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
370
370
  overflow: hidden;
371
371
  max-width: ${s.sp8};
372
372
  white-space: nowrap;
373
- `,No=o.div`
373
+ `,Eo=o.div`
374
374
  display: flex;
375
375
  flex-direction: row;
376
376
  align-items: center;
377
377
  column-gap: ${s.sp2};
378
- `,He=o.div`
378
+ `,Ue=o.div`
379
379
  width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
380
380
  min-width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
381
381
  overflow: hidden;
382
382
  color: ${e=>e.theme.colors.hero};
383
383
  box-sizing: border-box;
384
384
  margin-right: ${s.sp1};
385
- `,Io=o(ie)`
385
+ `,No=o(ie)`
386
386
  width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
387
387
  min-width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
388
388
  overflow: hidden;
@@ -394,7 +394,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
394
394
  justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
395
395
  padding-right: ${s.sp1};
396
396
  column-gap: ${s.sp2};
397
- `,Eo=o(ie)`
397
+ `,Io=o(ie)`
398
398
  width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
399
399
  min-width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
400
400
  color: ${e=>e.theme.colors.hero};
@@ -430,10 +430,10 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
430
430
  column-gap: ${s.sp2};
431
431
  `,Bo=o.div`
432
432
  max-width: ${s.sp11};
433
- `,Ao=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"})),V=oe.getLocalizedStrings(),_e=e=>`${e}_form`,Ro={rowGap:new Qe(ke[0],ke[5],ke[5])},{common:{footer:Ke},taskManagement:Ne}=oe.getLocalizedStrings(),xn=({taskListView:e,tagListView:u,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:p,onDeleteTaskGroup:a,updateLocalData:c,onTaskManagementRowClick:i,onReloadTasks:d,onColumnSortConfigChanged:C,onSearchTextChanged:j,onBackClick:E,onNewTaskClick:M,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:D,onAddNewTaskToTaskGroup:z,onGroupByFilterChange:B,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:y,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:b})=>{const[W,H]=n.useState(!1),[ee,O]=n.useState(null),[P,ne]=n.useState(null),[q,ue]=n.useState(null),[Ce,de]=n.useState(null),[he,ae]=n.useState(!1),Te=ht(),{fetchState:te,uiState:Z,filters:$e,userList:ce,taskGroupsWithTasksList:ye}=e,{tagList:be}=u,ve=qe(),je=R=>{ae(R)},me=n.useCallback(R=>{de(R.currentTarget)},[]),ge=n.useCallback(R=>{B(R)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(R=>{b(R)},[b]),F=ce.users.map(R=>R.user).filter(R=>R!=null),N={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:V.common.create,isSearchOpen:he,searchPlaceHolder:V.taskManagement.taskList.searchPlaceHolder,searchText:Z.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:$e,searchTextBoxStyle:{right:"108px"},onNewButtonClick:me,onSearchOpen:je,onSearchTextChanged:j,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:ce.fetchState==="Completed"||ce.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(ps,{value:Z.groupByKey,resetDisabled:Z.groupByKey==="groupName",onChange:ge,onReset:l}),height:90},getFilterOptions:()=>os("task_management",F,Te.loggedInUserRole??[],u.tagList)},I=n.useCallback(R=>{de(null),O(Y),c({...e.localData,newTaskGroupName:R})},[e.localData,c]),A=n.useCallback(()=>{de(null)},[]),v=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{O(Y)},[]),se=n.useCallback(R=>{ue(ut=>ut===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&H(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&ue(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ct=()=>te==="Error"?t.jsxs(Ho,{children:[t.jsx(_o,{onClick:d,children:t.jsx(Ko,{})}),t.jsx(Yo,{children:V.common.reloadPage.label})]}):te==="Completed"&&ye.length===0?t.jsx(xt,{message:V.taskManagement.taskList.noDataText}):te==="Not-Started"||te==="In-Progress"?t.jsx(wt,{fetchState:te}):t.jsx(Wo,{taskListView:e,tagList:be,renameActiveField:ee,updateTask:m,onDragNDrop:p,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:H,updateLocalData:c,setActiveTaskGroupId:ne,setRenameActiveField:O,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:y,onCreateTagClick:h}),pt=t.jsx(Qt,{spendManagementSectionProps:N});return t.jsxs(Uo,{children:[t.jsx(mt,{title:V.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ve.colors.grey4,style:{zIndex:3},onBackClick:E,rightSideComponent:pt,isSearchOpen:he,source:"TaskManagementPage"}),t.jsx(Ms,{anchorEl:Ce,groupByKey:Z.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:M,onNewGroupClick:I,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:se,expandedTemplate:q}),t.jsx(Vo,{children:ct()}),t.jsx(U,{controller:W===!0,children:t.jsx(gt,{action:{onOkClick:v,onCancelClick:()=>{H(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:V.common.cancel,primaryButtonText:V.common.confirm,titleComponent:t.jsx(Xo,{children:t.jsx(kt,{children:V.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(en,{children:t.jsx(K,{children:V.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Wo=({taskListView:e,tagList:u,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:p,onDragNDrop:a,updateLocalData:c,setShowDeleteModal:i,handleCreateGroup:d,resetLocalData:C,assignGroupToTasks:j,setGroupCreationInProgress:E,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B})=>{const $=n.useRef(null),[x,S]=n.useState(null),y=n.useRef({}),L=le(),{localData:g,taskGroupsWithTasksList:b,uiState:W}=e,[H,ee]=n.useState([]),O=n.useRef(null);ls({scrollContainerRef:O,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),ne=Tt({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 b;const l=[],G=b.map(F=>{const N=F.tasks.filter(I=>{const A=g.selectedTaskIds.includes(I.id)===!0;return A&&l.push(I),A===!1});return{...F,tasks:N}});return G.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),G},[r,b,g.selectedTaskIds]),ue=n.useCallback(l=>H.includes(q[l].id)||q[l].tasks.length===0?100:y.current?.[l]!=null?y.current[l]+Ro.rowGap.value(L):(Xt*1+es)*3+ts+ss,[H,q,L]),Ce=n.useCallback(l=>{S(l.currentTarget)},[]),de=n.useCallback((l,G)=>{y.current={...y.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,b]),he=n.useCallback(l=>{ee(G=>G.includes(l)?G.filter(F=>l!==F):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ae=n.useCallback(()=>{S(null)},[]),Te=n.useCallback(()=>{ee(b.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[b]),te=n.useCallback(()=>{ee([]),$.current?.resetAfterIndex(0,!0)},[]),Z=n.useCallback(()=>{E(),$.current?.scrollTo(0),ae()},[ae,E]),$e=n.useCallback(l=>{w(l),i(!0)},[w,i]),ce=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]),ye=n.useCallback(()=>{p(null),C()},[C,p]),be=n.useCallback(l=>{C(),p(l)},[C,p]),ve=n.useCallback(()=>{g.defaultTaskGroupId!=null&&j(g.defaultTaskGroupId)},[j,g.defaultTaskGroupId]),je=async(l,G)=>{if(l.includes(nt)){const N=l.split(".")[2],I=b.flatMap(v=>v.tasks).find(v=>v.id===N),A=G[_][re][N].priority.selectedOption;if(I!=null&&A!=null){const v=X.allTaskPriority.find(T=>T.code===A);v!=null&&h(I,{priority:v})}return}if(l.includes(at)){const N=l.split(".")[2],I=b.flatMap(v=>v.tasks).find(v=>v.id===N),A=G[_][re][N].status.selectedOption;if(I!=null&&A!=null){const v=X.allTaskStatus.find(T=>T.code===A);I!=null&&v!=null&&h(I,{status:v})}return}if(l.includes(st)){const N=l.split(".")[2],I=b.flatMap(T=>T.tasks).find(T=>T.id===N),A=b.find(T=>T.tasks.find(se=>se.id===N))?.id,v=G[_][re][N].assignees.selectedUsers.map(T=>T.userId);A!=null&&v!=null&&I!=null&&h(I,{assignees:v});return}if(l.includes(ot)){const N=l.split(".")[2],I=b.flatMap(T=>T.tasks).find(T=>T.id===N),A=b.find(T=>T.tasks.find(se=>se.id===N))?.id,v=G[_][re][N].dueDate.date;A!=null&&v!=null&&I!=null&&h(I,{dueDate:v});return}if(l.includes(tt)){const N=l.split(".")[2],I=b.flatMap(T=>T.tasks).find(T=>T.id===N),A=b.find(T=>T.tasks.find(se=>se.id===N))?.id,v=G[_][re][N].tags.selectedOptions;A!=null&&v!=null&&I!=null&&h(I,{tagIds:v});return}l.includes(we)&&ne.trigger(l);const F=Po(l,G,g);c(F)};n.useEffect(()=>{const l=ne.watch((G,{name:F})=>{F!=null&&G!=null&&$t(()=>je(F,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 me=b.length>1&&g.selectedTaskIds.length>0&&r!==Y,ge=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(yt,{...ne,children:t.jsx("form",{id:_e(ze),onSubmit:ne.handleSubmit(ce),style:{width:"100%"},children:t.jsx(qo,{isFooterVisible:ge,windowSize:L,children:t.jsx(bt,{children:({height:l,width:G})=>t.jsx(vt,{ref:$,outerRef:O,height:l,itemCount:q.length,itemSize:ue,estimatedItemSize:St,itemKey:F=>q[F].id,width:G,overscanCount:jt,itemData:{tagList:u,taskGroupsWithTasksList:q,uiState:W,collapsedGroups:H,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:be,handleOnDragNDrop:a,onCollapseToggle:he,setRowHeight:de,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Te,onDeleteTaskGroup:$e,onExpandAll:te,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:Fo})})})})}),ge?t.jsx(Gt,{formId:_e(ze),primaryBtn:{label:b.length===1&&g.selectedTaskIds.length>0&&r!==Y?Ne.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:ye},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(U,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(Jo,{children:[t.jsx(lt,{count:g.selectedTaskIds.length}),t.jsx(Qo,{children:g.selectedTaskIds.length>1?Ne.taskList.footer.tasksSelected:Ne.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(U,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(sn,{children:t.jsx(Ee,{enterDelay:600,title:V.taskManagement.taskList.footer.ungroup,children:t.jsx(tn,{onClick:ve})})})}),showPrimaryButton:me===!1,customPrimaryButton:me?t.jsxs(t.Fragment,{children:[t.jsx(De,{variant:"secondary",label:V.taskManagement.taskList.footer.moveTo,onClick:Ce,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx(ws,{taskGroupsList:b,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ae(),j(l)},onClose:ae})]}):void 0}):null]})},Fo=({index:e,style:u,data:r})=>{const h=n.useRef(null),m=le(),{tagList:p,taskGroupsWithTasksList:a,uiState:c,renameActiveField:i,collapsedGroups:d,onCollapseToggle:C,onTaskManagementRowClick:j,setRowHeight:E,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,handleOnDragNDrop:z,onRenameClick:B,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&E(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const b=n.useCallback(O=>{const P=O.dataTransfer.getData("row");z(P,a[e].id)},[z,e,a]),W=n.useCallback(O=>{O.preventDefault()},[]),H=(O,P)=>{O.dataTransfer.setData("row",P)},ee=()=>{B(a[e].id)};return t.jsx(Zo,{style:{...u,width:"100%"},ref:h,onDrop:b,onDragOver:W,children:t.jsx(Oo,{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:j,onColumnSortConfigChanged:M,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:H,onRenameClick:ee,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g},a[e].id)})},Oo=({taskGroup:e,tagList:u,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,userList:i,existingTaskGroupNamesByGroupId:d,onRenameClick:C,onTaskManagementRowClick:j,onCollapseToggle:E,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=le(),y=S==="medium-regular"||S==="medium-compact"||S==="small"?io:At;return t.jsx(y,{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:E,onTaskManagementRowClick:j,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]={[xe]:[],[pe]: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:X.allTaskStatus.map(d=>({label:d.name,value:d.code}))},[nt]:{selectedOption:i.priority.code,allOptions:X.allTaskPriority.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:Nt(h),selectedOptions:i.tagIds},[we]:i.timeSpent}})});const a={[rt]:{[Y]:{[pe]:u.newTaskGroupName,[xe]:[]},...p},[re]:m};return{[_]:a}},Po=(e,u,r)=>{if(e.includes(_)){const h=e.split(".")[2];if(e.includes(pe))return e.includes(Y)?{...r,newTaskGroupName:u[_].groupData[h][pe]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:u[_].groupData[h][pe]}};if(e.includes(xe)){const m=zt(Bt(Object.values(u[_][rt]),xe)).filter(p=>p!==V.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Vo=o.div`
433
+ `,Ro=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"})),V=oe.getLocalizedStrings(),_e=e=>`${e}_form`,Ao={rowGap:new Xe(ke[0],ke[5],ke[5])},{common:{footer:Ke},taskManagement:Ee}=oe.getLocalizedStrings(),xn=({taskListView:e,tagListView:u,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:p,onDeleteTaskGroup:a,updateLocalData:c,onTaskManagementRowClick:i,onReloadTasks:d,onColumnSortConfigChanged:C,onSearchTextChanged:j,onBackClick:I,onNewTaskClick:M,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:D,onAddNewTaskToTaskGroup:z,onGroupByFilterChange:B,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:y,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:b})=>{const[O,U]=n.useState(!1),[ee,W]=n.useState(null),[P,ne]=n.useState(null),[q,ue]=n.useState(null),[Ce,de]=n.useState(null),[he,ae]=n.useState(!1),Te=ht(),{fetchState:te,uiState:Z,filters:$e,userList:ce,taskGroupsWithTasksList:ye}=e,{tagList:be}=u,ve=qe(),je=A=>{ae(A)},me=n.useCallback(A=>{de(A.currentTarget)},[]),ge=n.useCallback(A=>{B(A)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(A=>{b(A)},[b]),F=ce.users.map(A=>A.user).filter(A=>A!=null),E={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:V.common.create,isSearchOpen:he,searchPlaceHolder:V.taskManagement.taskList.searchPlaceHolder,searchText:Z.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:$e,searchTextBoxStyle:{right:"108px"},onNewButtonClick:me,onSearchOpen:je,onSearchTextChanged:j,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:ce.fetchState==="Completed"||ce.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(ps,{value:Z.groupByKey,resetDisabled:Z.groupByKey==="groupName",onChange:ge,onReset:l}),height:90},getFilterOptions:()=>os("task_management",F,Te.loggedInUserRole??[],u.tagList)},N=n.useCallback(A=>{de(null),W(Y),c({...e.localData,newTaskGroupName:A})},[e.localData,c]),R=n.useCallback(()=>{de(null)},[]),v=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{W(Y)},[]),se=n.useCallback(A=>{ue(ut=>ut===A?null:A)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&ue(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ct=()=>te==="Error"?t.jsxs(Uo,{children:[t.jsx(_o,{onClick:d,children:t.jsx(Ko,{})}),t.jsx(Yo,{children:V.common.reloadPage.label})]}):te==="Completed"&&ye.length===0?t.jsx(xt,{message:V.taskManagement.taskList.noDataText}):te==="Not-Started"||te==="In-Progress"?t.jsx(wt,{fetchState:te}):t.jsx(Oo,{taskListView:e,tagList:be,renameActiveField:ee,updateTask:m,onDragNDrop:p,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:c,setActiveTaskGroupId:ne,setRenameActiveField:W,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:y,onCreateTagClick:h}),pt=t.jsx(Xt,{spendManagementSectionProps:E});return t.jsxs(Ho,{children:[t.jsx(mt,{title:V.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ve.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:pt,isSearchOpen:he,source:"TaskManagementPage"}),t.jsx(Ms,{anchorEl:Ce,groupByKey:Z.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:R,onNewTaskClick:M,onNewGroupClick:N,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:se,expandedTemplate:q}),t.jsx(Vo,{children:ct()}),t.jsx(H,{controller:O===!0,children:t.jsx(gt,{action:{onOkClick:v,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:V.common.cancel,primaryButtonText:V.common.confirm,titleComponent:t.jsx(Qo,{children:t.jsx(kt,{children:V.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(en,{children:t.jsx(K,{children:V.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Oo=({taskListView:e,tagList:u,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:p,onDragNDrop:a,updateLocalData:c,setShowDeleteModal:i,handleCreateGroup:d,resetLocalData:C,assignGroupToTasks:j,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),y=n.useRef({}),L=le(),{localData:g,taskGroupsWithTasksList:b,uiState:O}=e,[U,ee]=n.useState([]),W=n.useRef(null);ls({scrollContainerRef:W,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),ne=Tt({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 b;const l=[],G=b.map(F=>{const E=F.tasks.filter(N=>{const R=g.selectedTaskIds.includes(N.id)===!0;return R&&l.push(N),R===!1});return{...F,tasks:E}});return G.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),G},[r,b,g.selectedTaskIds]),ue=n.useCallback(l=>U.includes(q[l].id)||q[l].tasks.length===0?100:y.current?.[l]!=null?y.current[l]+Ao.rowGap.value(L):(Qt*1+es)*3+ts+ss,[U,q,L]),Ce=n.useCallback(l=>{S(l.currentTarget)},[]),de=n.useCallback((l,G)=>{y.current={...y.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,b]),he=n.useCallback(l=>{ee(G=>G.includes(l)?G.filter(F=>l!==F):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ae=n.useCallback(()=>{S(null)},[]),Te=n.useCallback(()=>{ee(b.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[b]),te=n.useCallback(()=>{ee([]),$.current?.resetAfterIndex(0,!0)},[]),Z=n.useCallback(()=>{I(),$.current?.scrollTo(0),ae()},[ae,I]),$e=n.useCallback(l=>{w(l),i(!0)},[w,i]),ce=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]),ye=n.useCallback(()=>{p(null),C()},[C,p]),be=n.useCallback(l=>{C(),p(l)},[C,p]),ve=n.useCallback(()=>{g.defaultTaskGroupId!=null&&j(g.defaultTaskGroupId)},[j,g.defaultTaskGroupId]),je=async(l,G)=>{if(l.includes(nt)){const E=l.split(".")[2],N=b.flatMap(v=>v.tasks).find(v=>v.id===E),R=G[_][re][E].priority.selectedOption;if(N!=null&&R!=null){const v=Q.allTaskPriority.find(T=>T.code===R);v!=null&&h(N,{priority:v})}return}if(l.includes(at)){const E=l.split(".")[2],N=b.flatMap(v=>v.tasks).find(v=>v.id===E),R=G[_][re][E].status.selectedOption;if(N!=null&&R!=null){const v=Q.allTaskStatus.find(T=>T.code===R);N!=null&&v!=null&&h(N,{status:v})}return}if(l.includes(st)){const E=l.split(".")[2],N=b.flatMap(T=>T.tasks).find(T=>T.id===E),R=b.find(T=>T.tasks.find(se=>se.id===E))?.id,v=G[_][re][E].assignees.selectedUsers.map(T=>T.userId);R!=null&&v!=null&&N!=null&&h(N,{assignees:v});return}if(l.includes(ot)){const E=l.split(".")[2],N=b.flatMap(T=>T.tasks).find(T=>T.id===E),R=b.find(T=>T.tasks.find(se=>se.id===E))?.id,v=G[_][re][E].dueDate.date;R!=null&&v!=null&&N!=null&&h(N,{dueDate:v});return}if(l.includes(tt)){const E=l.split(".")[2],N=b.flatMap(T=>T.tasks).find(T=>T.id===E),R=b.find(T=>T.tasks.find(se=>se.id===E))?.id,v=G[_][re][E].tags.selectedOptions;R!=null&&v!=null&&N!=null&&h(N,{tagIds:v});return}l.includes(we)&&ne.trigger(l);const F=Po(l,G,g);c(F)};n.useEffect(()=>{const l=ne.watch((G,{name:F})=>{F!=null&&G!=null&&$t(()=>je(F,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 me=b.length>1&&g.selectedTaskIds.length>0&&r!==Y,ge=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(yt,{...ne,children:t.jsx("form",{id:_e(ze),onSubmit:ne.handleSubmit(ce),style:{width:"100%"},children:t.jsx(qo,{isFooterVisible:ge,windowSize:L,children:t.jsx(bt,{children:({height:l,width:G})=>t.jsx(vt,{ref:$,outerRef:W,height:l,itemCount:q.length,itemSize:ue,estimatedItemSize:St,itemKey:F=>q[F].id,width:G,overscanCount:jt,itemData:{tagList:u,taskGroupsWithTasksList:q,uiState:O,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:be,handleOnDragNDrop:a,onCollapseToggle:he,setRowHeight:de,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Te,onDeleteTaskGroup:$e,onExpandAll:te,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:Fo})})})})}),ge?t.jsx(Gt,{formId:_e(ze),primaryBtn:{label:b.length===1&&g.selectedTaskIds.length>0&&r!==Y?Ee.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:ye},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(H,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(Jo,{children:[t.jsx(lt,{count:g.selectedTaskIds.length}),t.jsx(Xo,{children:g.selectedTaskIds.length>1?Ee.taskList.footer.tasksSelected:Ee.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(H,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(sn,{children:t.jsx(Ie,{enterDelay:600,title:V.taskManagement.taskList.footer.ungroup,children:t.jsx(tn,{onClick:ve})})})}),showPrimaryButton:me===!1,customPrimaryButton:me?t.jsxs(t.Fragment,{children:[t.jsx(De,{variant:"secondary",label:V.taskManagement.taskList.footer.moveTo,onClick:Ce,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx(ws,{taskGroupsList:b,anchorEl:x,groupByKey:O.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ae(),j(l)},onClose:ae})]}):void 0}):null]})},Fo=({index:e,style:u,data:r})=>{const h=n.useRef(null),m=le(),{tagList:p,taskGroupsWithTasksList:a,uiState:c,renameActiveField:i,collapsedGroups:d,onCollapseToggle:C,onTaskManagementRowClick:j,setRowHeight:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,handleOnDragNDrop:z,onRenameClick:B,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&I(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const b=n.useCallback(W=>{const P=W.dataTransfer.getData("row");z(P,a[e].id)},[z,e,a]),O=n.useCallback(W=>{W.preventDefault()},[]),U=(W,P)=>{W.dataTransfer.setData("row",P)},ee=()=>{B(a[e].id)};return t.jsx(Zo,{style:{...u,width:"100%"},ref:h,onDrop:b,onDragOver:O,children:t.jsx(Wo,{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:j,onColumnSortConfigChanged:M,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:U,onRenameClick:ee,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g},a[e].id)})},Wo=({taskGroup:e,tagList:u,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,userList:i,existingTaskGroupNamesByGroupId:d,onRenameClick:C,onTaskManagementRowClick:j,onCollapseToggle:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=le(),y=S==="medium-regular"||S==="medium-compact"||S==="small"?io:Rt;return t.jsx(y,{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:j,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]={[xe]:[],[pe]: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:Q.allTaskStatus.map(d=>({label:d.name,value:d.code}))},[nt]:{selectedOption:i.priority.code,allOptions:Q.allTaskPriority.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:Et(h),selectedOptions:i.tagIds},[we]:i.timeSpent}})});const a={[rt]:{[Y]:{[pe]:u.newTaskGroupName,[xe]:[]},...p},[re]:m};return{[_]:a}},Po=(e,u,r)=>{if(e.includes(_)){const h=e.split(".")[2];if(e.includes(pe))return e.includes(Y)?{...r,newTaskGroupName:u[_].groupData[h][pe]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:u[_].groupData[h][pe]}};if(e.includes(xe)){const m=zt(Bt(Object.values(u[_][rt]),xe)).filter(p=>p!==V.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Vo=o.div`
434
434
  display: block;
435
435
  height: 100%;
436
- `,Uo=o.div`
436
+ `,Ho=o.div`
437
437
  width: 100%;
438
438
  height: 100vh;
439
439
  display: flex;
@@ -441,7 +441,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
441
441
  row-gap: ${s.sp4};
442
442
  background-color: ${e=>e.theme.colors.grey4};
443
443
  overflow: hidden;
444
- `,Ho=o.div`
444
+ `,Uo=o.div`
445
445
  display: flex;
446
446
  width: 100%;
447
447
  height: calc(100% - 60px);
@@ -480,9 +480,9 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
480
480
  align-items: center;
481
481
  column-gap: ${s.sp2};
482
482
  padding-left: ${s.sp9};
483
- `,Qo=o(K)`
483
+ `,Xo=o(K)`
484
484
  color: ${e=>e.theme.colors.primary};
485
- `,Xo=o.div`
485
+ `,Qo=o.div`
486
486
  padding-top: ${s.sp7};
487
487
  padding-bottom: ${s.sp4};
488
488
  color: ${e=>e.theme.colors.primary};
@@ -491,7 +491,7 @@ import{Y as ht,u as qe,j as t,M as oe,iF as Y,aW as mt,b as U,bU as gt,n as K,s
491
491
  padding-right: ${s.sp8};
492
492
  padding-bottom: ${s.sp5};
493
493
  color: ${e=>e.theme.colors.hero};
494
- `,tn=o(Ao)`
494
+ `,tn=o(Ro)`
495
495
  width: ${s.sp4};
496
496
  height: ${s.sp4};
497
497
  cursor: pointer;
@@ -1,4 +1,4 @@
1
- import{j as t,ai as D,K as k,di as H,aM as L,o as a,i as q}from"./index-P_4M6V8j.js";import{n as g,b as i}from"./vendor-rkTZJa59.js";import{R as A}from"./mui-C42whWwM.js";import{V as K}from"./CollapsableReportTable-dCUjgg1X-DLs7OVqc.js";const U=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),i.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"})),W=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),i.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,X=g.div`
1
+ import{j as t,aj as D,N as k,di as H,aN as L,o as a,i as q}from"./index-B8OsEhOZ.js";import{n as g,b as i}from"./vendor-rkTZJa59.js";import{R as A}from"./mui-C42whWwM.js";import{V as U}from"./CollapsableReportTable-jOFcWQi9-BD7j44zD.js";const W=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),i.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=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),i.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;
@@ -7,7 +7,7 @@ import{j as t,ai as D,K as k,di as H,aM as L,o as a,i as q}from"./index-P_4M6V8j
7
7
  width: 100%;
8
8
  border-top: 1px solid ${e=>e.theme.colors.grey3};
9
9
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
10
- `,Z=g.div`
10
+ `,_=g.div`
11
11
  display: flex;
12
12
  align-items: center;
13
13
  justify-content: center;
@@ -20,11 +20,11 @@ import{j as t,ai as D,K as k,di as H,aM as L,o as a,i as q}from"./index-P_4M6V8j
20
20
  }
21
21
  cursor: ${e=>e.isEnabled?"pointer":"default"};
22
22
  background-color: ${e=>e.isSelected?e.theme.colors.background:"transparent"};
23
- `,_=g(L)`
23
+ `,G=g(L)`
24
24
  display: flex;
25
25
  position: relative;
26
26
  scrollbar-width: none;
27
- `,G=g(q)``,J=g.div`
27
+ `,J=g(q)``,K=g.div`
28
28
  top: ${a.sp0};
29
29
  left: ${a.sp0};
30
30
  width: calc(${e=>h*e.numberOfTicksSelected}px);
@@ -61,4 +61,4 @@ import{j as t,ai as D,K as k,di as H,aM as L,o as a,i as q}from"./index-P_4M6V8j
61
61
  cursor: pointer;
62
62
  pointer-events: all;
63
63
  color: ${e=>e.theme.colors.grey5};
64
- `;function v({iconPosition:e}){switch(e){case"left":return t.jsx(U,{className:"slider-icon",fill:"currentColor"});case"right":return t.jsx(W,{className:"slider-icon",fill:"currentColor"});default:throw Error("Invalid iconPosition")}}function te(e){return A.createPortal(e.children,e.parentNode)}function re({enabled:e,firstMonthOfFY:c,timeframe:l,tick:r,tickIndex:x,isSelected:s,onClick:f}){return t.jsx(Z,{isEnabled:e,isSelected:s,onClick:()=>{f(r,x,l)},children:t.jsx(G,{children:K(c,r,l)})})}function ie(e,c,l,r,x){const s=c-e,f=Math.floor(e/h)+Math.round(s/h),w=f+l.length-r.length,u=f+l.length,b=x-u;return{selectedTicks:{fromStart:{startIndex:f,length:l.length},fromEnd:{offsetFromEnd:b,length:l.length}},highlightedOfSelectedTicks:{startIndex:w,length:r.length}}}function ne(e){return e.startIndex!=null}function z(e,c){let l={startIndex:0,length:0};if(ne(e))l=e;else{const r=e.length;l={startIndex:c.length-e.offsetFromEnd-r+1,length:e.length}}return l}function le({width:e,firstMonthOfFY:c,timeframe:l,timeframeTicks:r,isEnabled:x,selection:s,onClick:f,onSelectionChanged:w}){const u=i.createRef(),b=i.useRef(null),[M,I]=i.useState(!1),[o,T]=i.useState(z(s.selectedTicks,r)),y=i.useRef(o.startIndex);i.useEffect(()=>{y.current=o.startIndex});const[$,C]=i.useState(s.highlightedOfSelectedTicks),O=(o.startIndex+o.length>r.length?Math.max(r.length-o.length,0):o.startIndex)*h,[S,F]=i.useState({x:O,y:0});i.useEffect(()=>{I(!0)},[]),i.useEffect(()=>{const n=z(s.selectedTicks,r);if(!k(o,n)){T(n);const d=n.startIndex*h;F({x:d,y:0})}k($,s.highlightedOfSelectedTicks)||C(s.highlightedOfSelectedTicks)},[o,$,s,r]),i.useLayoutEffect(()=>{const{startIndex:n,length:d}=o;u.current?.scrollToItem(y.current<=n?n+d-1:n)},[u,o]);const R=x!==!1,N=(n,d,m)=>{f?.(m,n)},P=(n,d)=>{const m=ie(S.x,d.x,o,$,r.length);w?.(m.selectedTicks,m.highlightedOfSelectedTicks,l,r)},B=({index:n,style:d})=>{const m=r[n],{startIndex:j,length:V}=$,Y=n>=j&&n<j+V;return t.jsx("div",{style:{...d},children:t.jsx(re,{enabled:R,firstMonthOfFY:c,timeframe:l,tick:m,tickIndex:n,isSelected:Y,onClick:N},n)})},E=document.getElementsByClassName("date-range-list")[0];return t.jsxs(t.Fragment,{children:[t.jsx(_,{ref:u,height:p,width:e,itemCount:r.length,itemSize:h,layout:"horizontal",className:"date-range-list",style:{overflowY:"hidden"},children:B}),M===!0&&E!=null?t.jsx(te,{parentNode:E,children:t.jsx(H,{axis:"x",defaultPosition:{x:0,y:0},position:S,bounds:{left:0,right:(r.length-o.length)*h},grid:[1,0],scale:1,onStop:P,nodeRef:b,children:t.jsxs(J,{numberOfTicksSelected:o.length,ref:b,children:[t.jsx(Q,{children:t.jsx(v,{iconPosition:"left"})}),t.jsx(ee,{children:t.jsx(v,{iconPosition:"right"})})]})})}):null]})}function de(e){return t.jsx(X,{children:t.jsx(D,{children:({width:c})=>t.jsx(le,{...e,width:c})})})}export{p as a,de as p};
64
+ `;function v({iconPosition:e}){switch(e){case"left":return t.jsx(W,{className:"slider-icon",fill:"currentColor"});case"right":return t.jsx(X,{className:"slider-icon",fill:"currentColor"});default:throw Error("Invalid iconPosition")}}function te(e){return A.createPortal(e.children,e.parentNode)}function re({enabled:e,firstMonthOfFY:c,timeframe:l,tick:r,tickIndex:x,isSelected:s,onClick:f}){return t.jsx(_,{isEnabled:e,isSelected:s,onClick:()=>{f(r,x,l)},children:t.jsx(J,{children:U(c,r,l)})})}function ie(e,c,l,r,x){const s=c-e,f=Math.floor(e/h)+Math.round(s/h),w=f+l.length-r.length,u=f+l.length,b=x-u;return{selectedTicks:{fromStart:{startIndex:f,length:l.length},fromEnd:{offsetFromEnd:b,length:l.length}},highlightedOfSelectedTicks:{startIndex:w,length:r.length}}}function ne(e){return e.startIndex!=null}function z(e,c){let l={startIndex:0,length:0};if(ne(e))l=e;else{const r=e.length;l={startIndex:c.length-e.offsetFromEnd-r+1,length:e.length}}return l}function le({width:e,firstMonthOfFY:c,timeframe:l,timeframeTicks:r,isEnabled:x,selection:s,onClick:f,onSelectionChanged:w}){const u=i.createRef(),b=i.useRef(null),[I,M]=i.useState(!1),[o,T]=i.useState(z(s.selectedTicks,r)),y=i.useRef(o.startIndex);i.useEffect(()=>{y.current=o.startIndex});const[$,C]=i.useState(s.highlightedOfSelectedTicks),O=(o.startIndex+o.length>r.length?Math.max(r.length-o.length,0):o.startIndex)*h,[S,N]=i.useState({x:O,y:0});i.useEffect(()=>{M(!0)},[]),i.useEffect(()=>{const n=z(s.selectedTicks,r);if(!k(o,n)){T(n);const d=n.startIndex*h;N({x:d,y:0})}k($,s.highlightedOfSelectedTicks)||C(s.highlightedOfSelectedTicks)},[o,$,s,r]),i.useLayoutEffect(()=>{const{startIndex:n,length:d}=o;u.current?.scrollToItem(y.current<=n?n+d-1:n)},[u,o]);const F=x!==!1,R=(n,d,m)=>{f?.(m,n)},P=(n,d)=>{const m=ie(S.x,d.x,o,$,r.length);w?.(m.selectedTicks,m.highlightedOfSelectedTicks,l,r)},B=({index:n,style:d})=>{const m=r[n],{startIndex:E,length:V}=$,Y=n>=E&&n<E+V;return t.jsx("div",{style:{...d},children:t.jsx(re,{enabled:F,firstMonthOfFY:c,timeframe:l,tick:m,tickIndex:n,isSelected:Y,onClick:R},n)})},j=document.getElementsByClassName("date-range-list")[0];return t.jsxs(t.Fragment,{children:[t.jsx(G,{ref:u,height:p,width:e,itemCount:r.length,itemSize:h,layout:"horizontal",className:"date-range-list",style:{overflowY:"hidden"},children:B}),I===!0&&j!=null?t.jsx(te,{parentNode:j,children:t.jsx(H,{axis:"x",defaultPosition:{x:0,y:0},position:S,bounds:{left:0,right:(r.length-o.length)*h},grid:[1,0],scale:1,onStop:P,nodeRef:b,children:t.jsxs(K,{numberOfTicksSelected:o.length,ref:b,children:[t.jsx(Q,{children:t.jsx(v,{iconPosition:"left"})}),t.jsx(ee,{children:t.jsx(v,{iconPosition:"right"})})]})})}):null]})}function de(e){return t.jsx(Z,{children:t.jsx(D,{children:({width:c})=>t.jsx(le,{...e,width:c})})})}export{p as a,de as p};
@@ -1,4 +1,4 @@
1
- import{j as t,o,i as p,M as u}from"./index-P_4M6V8j.js";import{n as i}from"./vendor-rkTZJa59.js";const f=i.div`
1
+ import{j as t,o,i as p,M as u}from"./index-B8OsEhOZ.js";import{n as i}from"./vendor-rkTZJa59.js";const f=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -28,4 +28,4 @@ import{j as t,o,i as p,M as u}from"./index-P_4M6V8j.js";import{n as i}from"./ven
28
28
  display: flex;
29
29
  flex-direction: row;
30
30
  align-items: center;
31
- `;function $({timeframe:e,isSelected:a,onClick:l}){const n=s=>{switch(s){case"month":case"quarter":case"year":case"this_week_to_date":case"last_week":case"this_month_to_date":case"last_month":case"last_3_months":case"last_6_months":case"last_12_months":case"this_year_to_date":case"last_year":return u.getLocalizedStrings().timeframeSwitcherLabels[s];default:return console.warn("Unsupported timeframe"),""}};return t.jsx(x,{onClick:()=>{a===!1&&l(e)},isSelected:a,children:t.jsx(_,{children:n(e)})})}function k({timeframes:e,selectedTimeframe:a,onTimeframeSelectionChanged:l}){const n=r=>{l?.(r)},s=e.findIndex(r=>r===a);return t.jsx(f,{children:e.map((r,c)=>{const m=e.length>1&&c<e.length-1,d=c===s,h=c===s-1;return t.jsxs(w,{children:[t.jsx($,{timeframe:r,isSelected:d,onClick:n},c),m?t.jsx(g,{isSelected:d||h}):null]},c)})})}export{k as b};
31
+ `;function $({timeframe:e,isSelected:a,onClick:l}){const n=s=>{switch(s){case"month":case"quarter":case"year":case"this_week_to_date":case"last_week":case"this_month_to_date":case"last_month":case"last_3_months":case"last_6_months":case"last_12_months":case"this_year_to_date":case"last_year":return u.getLocalizedStrings().timeframeSwitcherLabels[s];default:return console.warn("Unsupported timeframe"),""}};return t.jsx(x,{onClick:()=>{a===!1&&l(e)},isSelected:a,children:t.jsx(_,{children:n(e)})})}function b({timeframes:e,selectedTimeframe:a,onTimeframeSelectionChanged:l}){const n=r=>{l?.(r)},s=e.findIndex(r=>r===a);return t.jsx(f,{children:e.map((r,c)=>{const m=e.length>1&&c<e.length-1,d=c===s,h=c===s-1;return t.jsxs(w,{children:[t.jsx($,{timeframe:r,isSelected:d,onClick:n},c),m?t.jsx(g,{isSelected:d||h}):null]},c)})})}export{b as y};
@@ -1,4 +1,4 @@
1
- import{e as c,j as t,C as n,i as x,b4 as w}from"./index-P_4M6V8j.js";import{n as r}from"./vendor-rkTZJa59.js";import{b as l}from"./TimeframeSwitcher-D1cuigpc-D9PCDoa0.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...o})=>t.jsx(w,{...o,className:e,classes:{...i}}),p=r(u)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),b=e=>t.jsx(p,{...e}),d={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},$=r.div`
1
+ import{e as c,j as t,C as n,i as x,b5 as w}from"./index-B8OsEhOZ.js";import{n as r}from"./vendor-rkTZJa59.js";import{y as l}from"./TimeframeSwitcher-BmhH741X-Bq2UrAGM.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...o})=>t.jsx(w,{...o,className:e,classes:{...i}}),p=r(u)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),b=e=>t.jsx(p,{...e}),d={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},$=r.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{K as _,e as V,j as t,u as f,b6 as T,av as C,au as S,ba as E,bj as k,q as x,aa as R,v as $,bk as q,bl as H,$ as G,l as X,W as Y,o as p,i as L,an as Z,n as F,M as A,Z as J,_ as N,a4 as O,ah as W,ai as Q,a5 as U,bm as ee}from"./index-P_4M6V8j.js";import{f as v,b as te,n as g}from"./vendor-rkTZJa59.js";import{I as ae,T as re}from"./ReloadCard-BmYf1NZf-DhNr8urp.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const ie=g(O)`
1
+ import{N as _,e as V,j as t,u as f,b7 as T,aw as C,av as S,bb as E,bk as k,s as x,ab as R,v as $,bl as H,bm as q,a0 as G,m as N,Z as X,o as p,i as L,ao as Y,p as Z,M as A,_ as F,$ as J,a5 as O,ai as Q,aj as U,a6 as W,bn as ee}from"./index-B8OsEhOZ.js";import{f as v,b as te,n as g}from"./vendor-rkTZJa59.js";import{I as ae,T as re}from"./ReloadCard-DxJMY9If-DFVN_BWj.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const ie=g(O)`
2
2
  justify-content: space-between;
3
3
  margin: 0;
4
4
  height: ${e=>e.height!=null?e.height+"px":"auto"};
@@ -6,14 +6,14 @@ import{K as _,e as V,j as t,u as f,b6 as T,av as C,au as S,ba as E,bj as k,q as
6
6
  `,se=g.div``,le=g(L)`
7
7
  color: ${e=>e.theme.colors.hero};
8
8
  margin: ${p.sp2} ${p.sp0} ${p.sp2} ${p.sp0};
9
- `,ce=({width:e,height:i,label:r})=>{const l=f();return t.jsxs(ie,{height:i,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(oe,{style:{marginBottom:p.sp4}}):t.jsx(ne,{style:{marginBottom:p.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:i,onTimeframeChanged:r,textStyle:l}){const n=o=>A.getLocalizedStrings().timeframe[o];return t.jsx(de,{onClick:o=>o.stopPropagation(),children:t.jsx(ee,{pickerValues:e,valueToLabel:n,selectedValue:i,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(U)`
9
+ `,ce=({width:e,height:i,label:r})=>{const l=f();return t.jsxs(ie,{height:i,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(oe,{style:{marginBottom:p.sp4}}):t.jsx(ne,{style:{marginBottom:p.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:i,onTimeframeChanged:r,textStyle:l}){const n=o=>A.getLocalizedStrings().timeframe[o];return t.jsx(de,{onClick:o=>o.stopPropagation(),children:t.jsx(ee,{pickerValues:e,valueToLabel:n,selectedValue:i,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(W)`
10
10
  color: ${e=>e.theme.colors.champion};
11
11
  `,w=g.div`
12
12
  display: flex;
13
13
  flex: 0 1 auto;
14
14
  flex-direction: row;
15
15
  align-items: center;
16
- `;function ue({dimension:e,reportTitle:i,cardType:r,cardIndex:l,onCardClick:n,timeframe:o,allowedValues:d,chartElement:s,onTimeframeChange:h}){const c=d.length>0?" - ":"";return t.jsx(J,{"data-testid":N("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>n(l,r),children:t.jsxs(O,{children:[t.jsxs(w,{style:{marginBottom:x[3]},children:[t.jsx(me,{children:i!=null?i+c:W(r)+c})," ",d.length>0?t.jsx(he,{timeframeSelected:o,onTimeframeChanged:a=>h?.(a??"month"),allowedValues:d}):null]}),t.jsx(w,{style:{width:"100%",height:"100%",cursor:"pointer"},children:t.jsx("div",{style:{width:"100%",height:"100%"},children:t.jsx(Q,{children:({height:a,width:m})=>s(m,a)})})})]})})}function K({card:e,reportTitle:i,actions:r,timeframe:l,allowedValues:n,chartElement:o,onTimeframeChange:d}){return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?t.jsx(ae,{dimension:e.dimension,animated:!e.disableAnimations}):e.fetchState==="Error"?t.jsx(re,{dimension:e.dimension,cardType:e.cardType,cardIndex:e.cardIndex,onReloadData:r.onReloadData,reportTitle:i}):t.jsx(ue,{dimension:e.dimension,reportTitle:i,cardType:e.cardType,cardIndex:e.cardIndex,onCardClick:r.onCardClick,timeframe:l,allowedValues:n??["month","quarter","year"],chartElement:o,onTimeframeChange:s=>{r.onTimeframeChange?.(e.cardType,s),d?.(e.cardType,s)}})}v.memo(K);const P=(e,i,r)=>{const l=i.map(a=>({label:a.timePeriod,startDate:a.startDate,endDate:a.endDate})),n=r.total,o=r.accountsOrdered.map(a=>({accountId:a.accountId,accountDescription:a.accountDescription,balance:a.balance,logo:a.logo}))??[],d=Math.min(e,o.length),s=o.length?e-o.length:0,h=n?.amount;if(o.length>0&&s>0&&h!=null&&h!==0){const a=o[d-1].balance,m=a?.available?.amount!=null?Math.min(30,a?.available?.amount/h*100):30;for(let u=0;u<s;u+=1){const y=m*(s-u)/(s+1);o.push({accountId:u.toString(),accountDescription:"",balance:{available:{amount:h*y/100,currencySymbol:a.available.currencySymbol,currencyCode:a.available.currencyCode}}})}}const c=o.map(a=>{const m="top_expenses",u={accountId:a.accountId,accountDescription:a.accountDescription,total:n??void 0,logo:a.logo??"",barKey:m};return u[m]=a.balance.available,u});return{timeframeLabelsInOrder:l,chartItems:c}},b=37,j=2,ge=g.div`
16
+ `;function ue({dimension:e,reportTitle:i,cardType:r,cardIndex:l,onCardClick:n,timeframe:o,allowedValues:d,chartElement:s,onTimeframeChange:h}){const c=d.length>0?" - ":"";return t.jsx(F,{"data-testid":J("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>n(l,r),children:t.jsxs(O,{children:[t.jsxs(w,{style:{marginBottom:x[3]},children:[t.jsx(me,{children:i!=null?i+c:Q(r)+c})," ",d.length>0?t.jsx(he,{timeframeSelected:o,onTimeframeChanged:a=>h?.(a??"month"),allowedValues:d}):null]}),t.jsx(w,{style:{width:"100%",height:"100%",cursor:"pointer"},children:t.jsx("div",{style:{width:"100%",height:"100%"},children:t.jsx(U,{children:({height:a,width:m})=>s(m,a)})})})]})})}function P({card:e,reportTitle:i,actions:r,timeframe:l,allowedValues:n,chartElement:o,onTimeframeChange:d}){return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?t.jsx(ae,{dimension:e.dimension,animated:!e.disableAnimations}):e.fetchState==="Error"?t.jsx(re,{dimension:e.dimension,cardType:e.cardType,cardIndex:e.cardIndex,onReloadData:r.onReloadData,reportTitle:i}):t.jsx(ue,{dimension:e.dimension,reportTitle:i,cardType:e.cardType,cardIndex:e.cardIndex,onCardClick:r.onCardClick,timeframe:l,allowedValues:n??["month","quarter","year"],chartElement:o,onTimeframeChange:s=>{r.onTimeframeChange?.(e.cardType,s),d?.(e.cardType,s)}})}v.memo(P);const B=(e,i,r)=>{const l=i.map(a=>({label:a.timePeriod,startDate:a.startDate,endDate:a.endDate})),n=r.total,o=r.accountsOrdered.map(a=>({accountId:a.accountId,accountDescription:a.accountDescription,balance:a.balance,logo:a.logo}))??[],d=Math.min(e,o.length),s=o.length?e-o.length:0,h=n?.amount;if(o.length>0&&s>0&&h!=null&&h!==0){const a=o[d-1].balance,m=a?.available?.amount!=null?Math.min(30,a?.available?.amount/h*100):30;for(let u=0;u<s;u+=1){const y=m*(s-u)/(s+1);o.push({accountId:u.toString(),accountDescription:"",balance:{available:{amount:h*y/100,currencySymbol:a.available.currencySymbol,currencyCode:a.available.currencyCode}}})}}const c=o.map(a=>{const m="top_expenses",u={accountId:a.accountId,accountDescription:a.accountDescription,total:n??void 0,logo:a.logo??"",barKey:m};return u[m]=a.balance.available,u});return{timeframeLabelsInOrder:l,chartItems:c}},b=37,j=2,ge=g.div`
17
17
  display: flex;
18
18
  flex-direction: row;
19
19
  flex: 1 1 auto;
@@ -29,10 +29,10 @@ import{K as _,e as V,j as t,u as f,b6 as T,av as C,au as S,ba as E,bj as k,q as
29
29
  height: ${p.sp4};
30
30
  `,fe=g(L)`
31
31
  margin-left: ${p.sp2};
32
- `,ye=g(Z)`
32
+ `,ye=g(Y)`
33
33
  flex: 1 1 0;
34
34
  color: ${e=>e.theme.colors.primary};
35
- `,be=g(F)`
35
+ `,be=g(Z)`
36
36
  flex: 1 1 0;
37
37
  margin-right: ${p.sp2};
38
- `;function je({report:e,width:i,height:r,showBarHoverBackground:l}){const n=f(),o=P(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx(E,{dataKey:c=>{const a=c[h]!=null?c[h]:void 0;return a!=null&&a.amount>0?a.amount:0},isAnimationActive:!0,animationDuration:800,background:{fill:n.colors.background},children:s.map(c=>t.jsx(k,{fill:n.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(we,{chartItemArray:o.chartItems,showBarHoverBackground:l,barElement:d(o.chartItems,o.chartItems[0].barKey),width:i,height:r})}const ve=e=>{const{barKey:i,payload:r,chartItems:l,width:n,y:o}=e,d=r.value,s=l.find(h=>h.accountId==d);return s==null||s.accountDescription==null?null:t.jsx("foreignObject",{y:o-r.offset+j,width:n,height:b,children:t.jsxs(ge,{children:[t.jsxs(pe,{children:[t.jsx(xe,{src:s.logo,alt:s.accountDescription,loading:"lazy"}),t.jsx(fe,{children:s.accountDescription})]}),t.jsx(ye,{children:"⟶"}),t.jsx(be,{children:G("0,0",s[i])})]})})},we=({chartItemArray:e,barElement:i,width:r,height:l})=>{const n=e[0],o=n.total,d=n.barKey;return t.jsxs(T,{data:e,layout:"vertical",width:r,barCategoryGap:j,height:e.length?(b+2*j)*e.length:l,barSize:b,margin:{top:0,right:0,left:0,bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:"default"},children:[t.jsx(C,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),o?.amount??0]}),t.jsx(S,{orientation:"left",yAxisId:0,dataKey:s=>s.accountId,type:"category",axisLine:!1,tickLine:!1,width:r/2,mirror:!1,tick:t.jsx(ve,{width:r/2,chartItems:e,barKey:d})}),i]})},D=41,I=4;function De({report:e,width:i,height:r,showBarHoverBackground:l,isDetailPage:n}){const o=f(),d=P(n===!0?e.topExpenses.accountsOrdered.length:6,e.allTimePeriods,e.topExpenses),s=(h,c,a)=>t.jsxs(E,{dataKey:m=>{const u=m[c]!=null?m[c]:void 0;return u!=null&&u.amount>0?u.amount:0},isAnimationActive:!0,animationDuration:n===!0?800:void 0,background:void 0,children:[t.jsx(q,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:B,height:z,offset:M}=m;return t.jsx(H,{x:u+M,y:y+z/2,fill:o.colors.hero,fontSize:$.smallRegular.fontSize,verticalAnchor:"middle",width:a-110,maxLines:1,children:B})}}),h.map(m=>t.jsx(k,{fill:m.accountDescription!==""?o.colors.graphColor29:o.colors.grey3,fillOpacity:m.accountDescription!==""?.32:1},c))]},Math.random());return d.chartItems.length===0?null:t.jsx(Ie,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,i),width:i,height:r,isDetailPage:n===!0})}const Ie=({chartItemArray:e,barElement:i,width:r,height:l,isDetailPage:n})=>{const o=f(),d=e[0],s=d.total,h=d.barKey,c=s?.currencySymbol??"";return t.jsxs(T,{data:e,layout:"vertical",width:r,barCategoryGap:n?I:2,height:n?e.length?(D+2*I)*e.length:l:l+5,barSize:n?D:38,margin:{top:0,right:n?x[0]:x[3],left:n?x[0]:x[3],bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:n?"default":"pointer"},children:[t.jsx(C,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx(S,{orientation:"right",yAxisId:0,dataKey:a=>{const m=a[h]!=null?a[h]:void 0,{accountDescription:u}=a;return u!==""&&m!=null?m.amount:0},type:"category",axisLine:!1,tickLine:!1,width:r,mirror:!0,tick:{fill:o.colors.hero,...$.smallRegular.cssObject},tickFormatter:a=>a!==0?R("0,0.[00]a",a,c):""}),i]})};function Te(e){const i=V();return i!=="small"&&i!=="medium-compact"&&e.isDetailPage===!0?t.jsx(je,{...e}):t.jsx(De,{...e})}const Ce=v.memo(Te,_);function Se(e){if(e==null||e.length===0)return!0;let i=!0;for(const r of e)if(r.balance.available.amount!==0){i=!1;break}return i}function Ee({card:e,actions:i,data:r,dndProps:l}){const[n,o]=te.useState(r?.topExTimePeriod??"last_month"),d=[...X.TOP_EX_TIME_PERIODS],s=e.fetchState==="Completed"?Se(r?.topExpenses.accountsOrdered):!1,h=(c,a)=>s===!1?t.jsx(Ce,{report:r,width:c,height:a,timeframe:n}):t.jsx(ce,{width:c,height:a,label:A.getLocalizedStrings().chartCard.no_data.top_expenses[n]});return t.jsx(Y,{isDragging:l?.draggedCardType!=null,isDragOver:l?.dragOverCard===e.cardType,draggable:!0,onDragStart:c=>l?.onDragStart(e.cardType,c),onDragOver:c=>l?.onDragOver(c,e.cardType),onDragLeave:c=>l?.onDragLeave(c),onDrop:c=>l?.onDrop(c,e.cardType),dimension:e.dimension,children:t.jsx(K,{card:e,actions:i,timeframe:n,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}v.memo(Ee);export{Se as E,Ce as I,Ee as L,K as O,ce as c};
38
+ `;function je({report:e,width:i,height:r,showBarHoverBackground:l}){const n=f(),o=B(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx(E,{dataKey:c=>{const a=c[h]!=null?c[h]:void 0;return a!=null&&a.amount>0?a.amount:0},isAnimationActive:!0,animationDuration:800,background:{fill:n.colors.background},children:s.map(c=>t.jsx(k,{fill:n.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(we,{chartItemArray:o.chartItems,showBarHoverBackground:l,barElement:d(o.chartItems,o.chartItems[0].barKey),width:i,height:r})}const ve=e=>{const{barKey:i,payload:r,chartItems:l,width:n,y:o}=e,d=r.value,s=l.find(h=>h.accountId==d);return s==null||s.accountDescription==null?null:t.jsx("foreignObject",{y:o-r.offset+j,width:n,height:b,children:t.jsxs(ge,{children:[t.jsxs(pe,{children:[t.jsx(xe,{src:s.logo,alt:s.accountDescription,loading:"lazy"}),t.jsx(fe,{children:s.accountDescription})]}),t.jsx(ye,{children:"⟶"}),t.jsx(be,{children:G("0,0",s[i])})]})})},we=({chartItemArray:e,barElement:i,width:r,height:l})=>{const n=e[0],o=n.total,d=n.barKey;return t.jsxs(T,{data:e,layout:"vertical",width:r,barCategoryGap:j,height:e.length?(b+2*j)*e.length:l,barSize:b,margin:{top:0,right:0,left:0,bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:"default"},children:[t.jsx(C,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),o?.amount??0]}),t.jsx(S,{orientation:"left",yAxisId:0,dataKey:s=>s.accountId,type:"category",axisLine:!1,tickLine:!1,width:r/2,mirror:!1,tick:t.jsx(ve,{width:r/2,chartItems:e,barKey:d})}),i]})},D=41,I=4;function De({report:e,width:i,height:r,showBarHoverBackground:l,isDetailPage:n}){const o=f(),d=B(n===!0?e.topExpenses.accountsOrdered.length:6,e.allTimePeriods,e.topExpenses),s=(h,c,a)=>t.jsxs(E,{dataKey:m=>{const u=m[c]!=null?m[c]:void 0;return u!=null&&u.amount>0?u.amount:0},isAnimationActive:!0,animationDuration:n===!0?800:void 0,background:void 0,children:[t.jsx(H,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:K,height:z,offset:M}=m;return t.jsx(q,{x:u+M,y:y+z/2,fill:o.colors.hero,fontSize:$.smallRegular.fontSize,verticalAnchor:"middle",width:a-110,maxLines:1,children:K})}}),h.map(m=>t.jsx(k,{fill:m.accountDescription!==""?o.colors.graphColor29:o.colors.grey3,fillOpacity:m.accountDescription!==""?.32:1},c))]},Math.random());return d.chartItems.length===0?null:t.jsx(Ie,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,i),width:i,height:r,isDetailPage:n===!0})}const Ie=({chartItemArray:e,barElement:i,width:r,height:l,isDetailPage:n})=>{const o=f(),d=e[0],s=d.total,h=d.barKey,c=s?.currencySymbol??"";return t.jsxs(T,{data:e,layout:"vertical",width:r,barCategoryGap:n?I:2,height:n?e.length?(D+2*I)*e.length:l:l+5,barSize:n?D:38,margin:{top:0,right:n?x[0]:x[3],left:n?x[0]:x[3],bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:n?"default":"pointer"},children:[t.jsx(C,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx(S,{orientation:"right",yAxisId:0,dataKey:a=>{const m=a[h]!=null?a[h]:void 0,{accountDescription:u}=a;return u!==""&&m!=null?m.amount:0},type:"category",axisLine:!1,tickLine:!1,width:r,mirror:!0,tick:{fill:o.colors.hero,...$.smallRegular.cssObject},tickFormatter:a=>a!==0?R("0,0.[00]a",a,c):""}),i]})};function Te(e){const i=V();return i!=="small"&&i!=="medium-compact"&&e.isDetailPage===!0?t.jsx(je,{...e}):t.jsx(De,{...e})}const Ce=v.memo(Te,_);function Se(e){if(e==null||e.length===0)return!0;let i=!0;for(const r of e)if(r.balance.available.amount!==0){i=!1;break}return i}function Ee({card:e,actions:i,data:r,dndProps:l}){const[n,o]=te.useState(r?.topExTimePeriod??"last_month"),d=[...N.TOP_EX_TIME_PERIODS],s=e.fetchState==="Completed"?Se(r?.topExpenses.accountsOrdered):!1,h=(c,a)=>s===!1?t.jsx(Ce,{report:r,width:c,height:a,timeframe:n}):t.jsx(ce,{width:c,height:a,label:A.getLocalizedStrings().chartCard.no_data.top_expenses[n]});return t.jsx(X,{isDragging:l?.draggedCardType!=null,isDragOver:l?.dragOverCard===e.cardType,draggable:!0,onDragStart:c=>l?.onDragStart(e.cardType,c),onDragOver:c=>l?.onDragOver(c,e.cardType),onDragLeave:c=>l?.onDragLeave(c),onDrop:c=>l?.onDrop(c,e.cardType),dimension:e.dimension,children:t.jsx(P,{card:e,actions:i,timeframe:n,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}v.memo(Ee);export{Se as E,Ce as I,Ee as L,P as O,ce as c};