@zeniai/web-cockpit-ui 1.14.12-prod → 1.14.13-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 (250) hide show
  1. package/dist/assets/ACHDetailsPage-DVi_fb5U-BWoXmLUY.js +21 -0
  2. package/dist/assets/{AIPerformancePage-C459GJxs-DDVbkYhC.js → AIPerformancePage-C-orwzaK-DOCKSZSl.js} +44 -44
  3. package/dist/assets/{AccountInfoPage-DWqJj9l6-Cbq_B2Gd.js → AccountInfoPage-DvhQOLM6-C0wQ6YRZ.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-Ca328DM4-BoBBm2eT.js → AccountInfoPageContent-B1BJnQNd-Dywp_u_s.js} +18 -18
  5. package/dist/assets/{AccountReconDetailsDrawerPage-BqIo4mya-8jnme6Tg.js → AccountReconDetailsDrawerPage-C8EtTwZE-BoEh8Ely.js} +13 -13
  6. package/dist/assets/{AccountRow-Bk3xWobY-B9GPlHQB.js → AccountRow-m3N4T8ro-CB7I5u10.js} +27 -27
  7. package/dist/assets/{AccountsPromoCardStack-Co90dxxm-DJwvfgg4.js → AccountsPromoCardStack-DGHAcZ7D-BqYytjsB.js} +28 -28
  8. package/dist/assets/{AddAddressForCardDrawer-XNGsKMvs-CVOvZj44.js → AddAddressForCardDrawer-B_1jj1h7-Cu6_XTQ0.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-BiQWQXvz-Dja3V_rU.js → AddToWalletPage-DL1Bk4bd-ClBCUS3g.js} +21 -21
  10. package/dist/assets/{AgingReportsPage-ClR6ctjm-Cfdqgqs-.js → AgingReportsPage-DQ4P7iSR-BaDY7W1-.js} +8 -8
  11. package/dist/assets/{AllUserItems-RFWkNfw--CjDEoogo.js → AllUserItems-BSWk_1pR-BC2mjTTt.js} +13 -13
  12. package/dist/assets/{ApAgingDetailPage-F-pd4-We-DEfvotPI.js → ApAgingDetailPage-0i8K1czh-BtF7tRtB.js} +2 -2
  13. package/dist/assets/{AppBasePage-B9-FGKn--hgna65ij.js → AppBasePage-CV3kU-Ax-HUIuRSgH.js} +7 -7
  14. package/dist/assets/{AppDrawerContent-C6P8rk3y-Da2OtBCB.js → AppDrawerContent-DA8q-1_m-Ip7rRN25.js} +19 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-CPNEEGTF-C0zXmi9a.js → ApprovalRulesSettingsPage-CRlqbhea-CnWEhcBd.js} +7 -7
  16. package/dist/assets/{ArAgingChart-D9qmMVoC-C7_7BRFM.js → ArAgingChart-CiJNNObG-DOT8YGoK.js} +6 -6
  17. package/dist/assets/{ArAgingDetailPage-DMuZM6P_-ClopoFOj.js → ArAgingDetailPage-2I9R_J97-CEWBavmC.js} +1 -1
  18. package/dist/assets/{AttachmentView-B2ZOED0q-ee9lrIw2.js → AttachmentView-D0naVbDk-BMIJVqWj.js} +7 -7
  19. package/dist/assets/{BankAccountSection-C8G4yj75-DdOLLfNd.js → BankAccountSection-CYYTnOEW-ta40gqBk.js} +6 -6
  20. package/dist/assets/BankAccountWarningSection--b6oxmO3-bf21H1-K.js +51 -0
  21. package/dist/assets/{BankConnectionsSettingsPage-B5IQ5w6f-DMsLVdXW.js → BankConnectionsSettingsPage-BzwCu93j-CCEpUgq7.js} +49 -49
  22. package/dist/assets/{BillDetailPage-B-PMkZ44-bIK6xUHc.js → BillDetailPage-OzI0RkQ_-Bav1HJG-.js} +16 -16
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-CdLKENJ--RLdpGq9U.js → BillPayApprovalRuleDetailPage-DIQW7KY9-C0xmBCct.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-BueljBn0-Bf7hfEuS.js → BillPayApprovalRulesPage-BMmJ4cuT-CLahxDlm.js} +9 -9
  25. package/dist/assets/{BillPayPromoPage-WXntEliq-D_QROeBX.js → BillPayPromoPage-CN5LKQzn-T_t_dz_s.js} +8 -8
  26. package/dist/assets/{BillPaySetUpPage-By7rYetf-CeRSgDq5.js → BillPaySetUpPage-DMKmupPw-CmltaH2A.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-D-XtlyVU-Cx-l00Il.js → BillingSettingsPage-Bt_0mrqR-CgkXOlNp.js} +8 -8
  28. package/dist/assets/{BillsBulkReviewDrawerPage-P8siJ8lO-DdRAIHzS.js → BillsBulkReviewDrawerPage-GFME_IXw-CmxfCt6F.js} +1 -1
  29. package/dist/assets/{BoxItem-Bcy7IYuZ-BKqgXMbg.js → BoxItem-nvtPdCwS-CiJFmSMj.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-_E3jrLwS-D28zK5AA.js +140 -0
  31. package/dist/assets/{CardNumberSubText-VsMOF0Xv-BXhxDioS.js → CardNumberSubText-DBpF1pjJ-BDHubHrk.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DNbRs50r-DGmDyCg3.js → CashbackDetailPage-DrdbDPXK-BHacfWCb.js} +30 -30
  33. package/dist/assets/{ChargeCardDetailPage-BSDS8Kqb-U4i4-RaN.js → ChargeCardDetailPage-DvY3CSB4-DTju6vUj.js} +54 -54
  34. package/dist/assets/{ChargeCardListPage-Bzr8qMC0-IbAzxN57.js → ChargeCardListPage-BE5yGbg8-B5XQaFqy.js} +14 -14
  35. package/dist/assets/{ChargeCardListTable-CTp6TFBR-CeVbldJj.js → ChargeCardListTable-B-scLCAt-DWKxrdfC.js} +37 -37
  36. package/dist/assets/ChargeCardPromoPage-2OheDHbA-BAFEqKdK.js +222 -0
  37. package/dist/assets/{ChargeCardSetupPage-B1wzJjgH-BBhf5rqO.js → ChargeCardSetupPage-FNCK1n4W-DRpaATuu.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-CePfbLPp-iDyGSKYa.js → ChargeCardStatementsPage-1fuIth_h-DUYP62lN.js} +9 -9
  39. package/dist/assets/{ChargeCardUtils-DC2v2EHU-CC66ls3Y.js → ChargeCardUtils-CErWBcYS-DYGG4Kg0.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-B-Sx71yo-Thk2BACZ.js → ChaseOverlay-9_ms5LgM-DLbFcFUT.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-DEFEMwuI-FYtd8ETj.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-mEqm05fp-CUcsGi4N.js → CollapsableReportTable-DX-FpwE7-MJq_0H8T.js} +59 -59
  43. package/dist/assets/CompanyOfficerDetailsSection-BEgNqg-b-BZkAjfXP.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-Ct6tCZqT-5nR77uHb.js → CompanyPassportCard-BZXE3iJL-D0vVN1yd.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-D9NQ4bXl-CsJ1uZgg.js → CompanyPassportPage-BYZC3G4H-Dyir7GPA.js} +22 -22
  46. package/dist/assets/CompleteProfile-mCKLQjGe-D37b51yU.js +52 -0
  47. package/dist/assets/{ConfettiBurst-DqSwVGBC-BVzEX0ox.js → ConfettiBurst-BEoFHjQ0-BZkigu9v.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-D27A1926-Bj04MSDS.js → CreateOrEditVendorPage-6sohsdle-DulmpRQu.js} +11 -11
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BI37dSwx-BipcUtpo.js → CreditCardPaymentDrawerPage-6oVDS3D8-BG57VbJ5.js} +21 -21
  50. package/dist/assets/{CreditCardPaymentPlgSection-CAsn4Ae6-KEtkArBz.js → CreditCardPaymentPlgSection-DX1BieKp-CaB1ZnNz.js} +11 -12
  51. package/dist/assets/{CurrencySelectField-5uG4FfJ9-8SqcpktO.js → CurrencySelectField-F2P1iCLk-DqZUsNYq.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-Be-GrAiK-B75Mje9v.js → CustomerOnboardingActivationPage-CNJkyjta-BXFLHGd8.js} +8 -8
  53. package/dist/assets/CustomerOnboardingContainerPage-D6yeERaX-CnXYVWPD.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DhGp71bj-hz8cq6ev.js → CustomerOnboardingDetailPageSkeleton-B_MgUg-5-Bgdn7kSU.js} +12 -12
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CdOGTNXC-C9i5EKaE.js → CustomerOnboardingNoStepsPage-B49-4wZk-KyTxoYIy.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-ClPsywa3-CeQwicZf.js → CustomerOnboardingPage-4FPXG220-Bhtz8R34.js} +7 -7
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-pnHglqXq-8KyJVU1M.js → CustomerOnboardingProductSuitePage-cJPPvh-5-CdfdHVAA.js} +9 -9
  58. package/dist/assets/{Dashboard-avtbjFLf-BsfTTLt8.js → Dashboard-BBy_mQ8p-zBP8Z7QF.js} +260 -242
  59. package/dist/assets/{DashboardReportPage-CqJAu5WP-CSiSRP9H.js → DashboardReportPage-DYttySr4-ICoa42Db.js} +6 -6
  60. package/dist/assets/{DepositAccTransactionItem-Da0GWYei-DaDMj8eg.js → DepositAccTransactionItem-PNTL0e8v-Bf5t1weD.js} +6 -6
  61. package/dist/assets/DepositAccTransactionListPage-DUwVnkwy-91dKQsy5.js +66 -0
  62. package/dist/assets/{DomesticWireDetailsPage-DGcVKriv-CAGyxOGA.js → DomesticWireDetailsPage-BhwTfZwI-lG3b6Dqd.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-BdGiqnp7-DStgGthq.js → DownloadOverlay-CUbv29mo-Cm7YvHGd.js} +21 -21
  64. package/dist/assets/{DrawerPage-DCfm1BVs-BjLjeoWD.js → DrawerPage-2_QOgQ1m-jFj08QrD.js} +11 -11
  65. package/dist/assets/EditPeoplePage-CtTYiqg3-C_rRpXUg.js +55 -0
  66. package/dist/assets/{EditReimbursementDetailPage-C-nYgUua-C1qTcfcR.js → EditReimbursementDetailPage-C_jRh7w0-BjxLHuhj.js} +61 -61
  67. package/dist/assets/{EntityDetailPage-4HX_rHUf-xDLdueS9.js → EntityDetailPage-BhQsnCgQ-BJqshBB_.js} +3 -3
  68. package/dist/assets/{EntitySummarySection-C9VeOBpT-BTsQfMwI.js → EntitySummarySection-CKkXzM76-JNV3nj4B.js} +12 -12
  69. package/dist/assets/{ExpenseAutomationOverviewPage-8jTkscWa-bIf05Fhx.js → ExpenseAutomationOverviewPage-ZuB3Aiv2-g-beRD6J.js} +26 -26
  70. package/dist/assets/{ExpenseAutomationPage-D1wcc9GW-BZm22R7G.js → ExpenseAutomationPage-BUic8zfk-CY9AnIj2.js} +41 -41
  71. package/dist/assets/{ExpressPayPage-Cj6cvMwQ-BJmICkVH.js → ExpressPayPage-DEkJ_H0W-D2MJYEqV.js} +12 -12
  72. package/dist/assets/FeaturePreviewPage-CtK7L5vk-zb1RibOL.js +11 -0
  73. package/dist/assets/{FollowStepsSection-DjfnVH8N-B5jFIUn7.js → FollowStepsSection-CWw764ZM-BMjBkJvU.js} +9 -9
  74. package/dist/assets/{GlobalReviewListPage-CEOzc0We-D9YAcarq.js → GlobalReviewListPage-CZctHM7r-C-SmU9tc.js} +12 -12
  75. package/dist/assets/{HelpButton-BdhMFvtG-C54ST6PE.js → HelpButton-Dpx0Yoel-1C4sAmaf.js} +4 -4
  76. package/dist/assets/{InformationCardStack-DFOumIBr-gjF_ZQhk.js → InformationCardStack-BGpHl4yb-D2VMsFIF.js} +5 -5
  77. package/dist/assets/InsightsCardStack-BbMJEahw-XjHe58kA.js +79 -0
  78. package/dist/assets/InsightsSection-CYkuQHcj-B18a-FIC.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-DF-jcHzr-WMJTJEtS.js → IntegrationsSettingsPage-CMjSCRm_-C9xmqHS7.js} +8 -8
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-BFMqW1oQ-CdCE1RD1.js → InternationalWireSwiftDetailsPage-BTbTUt8U-DHwEWLr_.js} +15 -15
  81. package/dist/assets/{InternationalWireVerificationPage-Cq7swzrt-C0L5yCuY.js → InternationalWireVerificationPage-DAW2eMTg-BGhWwB2B.js} +22 -22
  82. package/dist/assets/{InviteFormPage-DXl2sEn9-B2Ez35Mj.js → InviteFormPage-CCbyacPR-DUt2JWiG.js} +20 -20
  83. package/dist/assets/{InvitePageListView-B5fRPcOg-CjFdA4G8.js → InvitePageListView-mHkALr5o-BpwevZSI.js} +62 -62
  84. package/dist/assets/InvitePeoplePage-r6PLBiEv-CRU1obhZ.js +12 -0
  85. package/dist/assets/{InvoiceUploadSection-opkVsXZH-CXWs7XL1.js → InvoiceUploadSection-BsjeicP1-CxRipy2m.js} +41 -41
  86. package/dist/assets/{IssueChargeCardPage-CZU1qbHO-BdEtPimR.js → IssueChargeCardPage-C3esnkQg-Bt2ncw32.js} +33 -33
  87. package/dist/assets/{LabeledAddressValue-CCd3y8zQ-BJNbO-Fn.js → LabeledAddressValue-CeeoKoY4-C81fNRY2.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-XuFlx-oK-BMP_E_ys.js → LabeledAddressValueField-B6eeRCSM-BGM6iGCs.js} +3 -3
  89. package/dist/assets/{LabeledControlledCheckBoxField-CCQn4-_S-C2xp_EVs.js → LabeledControlledCheckBoxField-CK8YBqJ7-dH7h4-c9.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-uQKngCdt-DJ4lsiO3.js → LabeledCreatableSingleSelectField-BSKL8pA3-y22U9yzT.js} +6 -6
  91. package/dist/assets/LabeledDocumentField-BEyArLK3-Bbt820GM.js +41 -0
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BrUNxsKy-B8W5l8Iz.js → LabeledDropDownFormattedTextField-DikXPnxD-3H5194hi.js} +7 -7
  93. package/dist/assets/{LabeledText-ByqI7uq0-BqhwXzjW.js → LabeledText-qSjyNZO1-BMO1teu9.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dg1Lpwl0-D5r53n-D.js → LabeledUserSingleSelectWithSubtitlesField-x87S_Azj-BPP3i4wb.js} +16 -16
  95. package/dist/assets/{LabeledZeniRolesDropDownField-DZL4GZtE-Bl91YXKB.js → LabeledZeniRolesDropDownField-nm5bG2up-B-C-v8v9.js} +17 -17
  96. package/dist/assets/{LinkJETransactionPage-CJlBllrr-RkOKGfby.js → LinkJETransactionPage-p7wdZbtp-BamvjpR7.js} +13 -13
  97. package/dist/assets/{LowBalancePopup-BEvuAR0Z-D9Mm46kU.js → LowBalancePopup-DHk6xd2B-V5eEOh0a.js} +7 -7
  98. package/dist/assets/{MagicLinkACHDetailsPage-DloX1GWg-BSJJfYX3.js → MagicLinkACHDetailsPage-DRQ8oej8-B79oZw1R.js} +1 -1
  99. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DewjvM4v-CjyLi2R0.js → MagicLinkDomesticWireDetailsPage-BxXU9Opg-BdNHmjDj.js} +1 -1
  100. package/dist/assets/{MagicLinkInternationalWireDetailsPage-CVhazlxQ-CdUPSdVq.js → MagicLinkInternationalWireDetailsPage-DYN1baIc-DT4ZdIcR.js} +1 -1
  101. package/dist/assets/MagicLinkSuccessPage-CX3bJ5_B-Bgn3-P2S.js +31 -0
  102. package/dist/assets/{MagicLinkTitleSection-d1edBt3w-BuhlKpVM.js → MagicLinkTitleSection-K2cZQVzq-CIEidPVy.js} +4 -4
  103. package/dist/assets/MailingDetailsSection--zHyCquq-Cn3SWfKt.js +21 -0
  104. package/dist/assets/{MeetingCalenderPopup-MtSyJ1AS-BwRcYCw3.js → MeetingCalenderPopup-DbFlQ8Km-9ZxBnjo6.js} +1 -1
  105. package/dist/assets/{Menu-BV79l8xf-CT05aLZH.js → Menu-LLL9taEz-CtH4c9eF.js} +2 -2
  106. package/dist/assets/{MyBankConnectionsSettingsPage-D-xDtURG-a5WJJsgd.js → MyBankConnectionsSettingsPage-BfDsHVZw-aWZVlaCb.js} +15 -15
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-VEhml0PW-C7lDm9On.js → MyPendingActivationChargeCardListPage-vag56A65-DvFj3aDV.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-DPJ0fJdQ-BVaOzJZE.js → MyProfileSettingsPage-DCKqWh-p-Ca4URKq-.js} +8 -8
  109. package/dist/assets/NavBarWithPicker-Cvi89wZV-3CVqu6ha.js +30 -0
  110. package/dist/assets/{NavigationArrow-BwXNdvOg-Bw7XRwN0.js → NavigationArrow-CHmddDC--CUC3t4BZ.js} +2 -2
  111. package/dist/assets/NavigationDots-1wpj484Z-By9SVfKB.js +15 -0
  112. package/dist/assets/{NewGlobalMerchantPage-IeE86L-X-C4OUiP9X.js → NewGlobalMerchantPage-B0FywA12-BRuJ6OhE.js} +13 -13
  113. package/dist/assets/{NoDataChart-C9yfE8vY-D5FBma0Z.js → NoDataChart-D43mhDJW-B9CXfEvp.js} +1 -1
  114. package/dist/assets/{NoDataTable-DF9QNT4a-DSZJ4vGD.js → NoDataTable-BOfUxs9D-8iqVCaVk.js} +1 -1
  115. package/dist/assets/{NotFoundPage-DSaizJve-BAhgScCF.js → NotFoundPage-DFioH5Rt-BQR0ORs3.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-DeAeFHmj-CaUz1tWX.js → NotificationSettingsPage-y4g1rAal-BJEuhBam.js} +13 -13
  117. package/dist/assets/{NotificationsListConfig-DuzDckh--BqtRxON_.js → NotificationsListConfig-sybPesiv-FmaZBisq.js} +1 -1
  118. package/dist/assets/{NotificationsPage-B7ZC7ezP-DEJagd6q.js → NotificationsPage-C88YOjuY-Ds4zz6jH.js} +31 -32
  119. package/dist/assets/{OpExByVendorPage-DzODetHf-DB9TWTaj.js → OpExByVendorPage-qBWbJhv9-Cs148Yzz.js} +7 -7
  120. package/dist/assets/{OverlayContainerPage-GWXnlbZH-CXhqDEmM.js → OverlayContainerPage-Dres4Grh-BoM1wcb9.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-FEi5USqF-Cvmw-ezu.js → PandLWithForecastPage-uiaHrci6-ClUgwvyo.js} +8 -8
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BbL4x5pQ-CQ4mDWcj.js → PaymentAccountSetupBillingAddressSection-BepDUdA0-DvE7tkJU.js} +11 -11
  123. package/dist/assets/{PeoplePage-B35T31YZ-DghEF7WY.js → PeoplePage-oF6C1uyM-DLFAgG_p.js} +20 -20
  124. package/dist/assets/{PortfolioAllocationFormPage-D3FP_MRr-DOEDYQct.js → PortfolioAllocationFormPage-C5O3GLqz-BYzrfMTu.js} +4 -4
  125. package/dist/assets/{PortfolioDetails-Dtz3YEPu-BMRrMf3q.js → PortfolioDetails-BkGNpmoO-B3KzDtEL.js} +31 -31
  126. package/dist/assets/{ProductsCarousel-DIlEuuqg-DrIeQsxl.js → ProductsCarousel-C_tmo4EA-BDn6T3LG.js} +6 -6
  127. package/dist/assets/{PromoBaseCards-DTsaas8S-CPDQ_Ck-.js → PromoBaseCards-Bq5-q2ew-oeM6E2Gs.js} +5 -5
  128. package/dist/assets/{QBOConnectionDialog-Cvt38cmU-p0xTPV2f.js → QBOConnectionDialog-BXNWjeYB-CT3y8ZPP.js} +9 -9
  129. package/dist/assets/QBOSetupSection-D3sIWrh1-Dt8ceji3.js +79 -0
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-ClgCUbVP-DfTW4OAe.js +26 -0
  131. package/dist/assets/{ReimbursementApprovalRulesPage-BG8uMxNw-D1uyrGH4.js → ReimbursementApprovalRulesPage-hjja5JFq-1dF9j3jn.js} +8 -8
  132. package/dist/assets/{ReimbursementDetailPage-Cs7XeZrC-OHz7BSRY.js → ReimbursementDetailPage-sXYC_aoR-CngyEl5D.js} +19 -19
  133. package/dist/assets/{ReimbursementPromoPage-CKITZNUc-79ijnfiq.js → ReimbursementPromoPage-C9zs7VRV-DY_b0K3o.js} +24 -24
  134. package/dist/assets/{ReimbursementSetUpPage-DD5P181p-CxWIYZnN.js → ReimbursementSetUpPage-Ban56LOC-Cen4aYhY.js} +11 -11
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C0eORL7o-iqE8m4Np.js → ReimbursementsBulkReviewDrawerPage-CsRwI-rl-KeeGuW4E.js} +1 -1
  136. package/dist/assets/{ReloadCard-CZ4IXHy1-Dtuzk5Rl.js → ReloadCard-EBXtqdt5-e0DLVF2o.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-Do0yQJxY-BXH3sbob.js → ReportTableViewSelector-Ae5lGopA-CZicNwDg.js} +10 -10
  138. package/dist/assets/{ReportsPage-BUi475EG-CQaz0teT.js → ReportsPage-Dh3DhbEK-DCmUMwXx.js} +5 -5
  139. package/dist/assets/{RevenueChart-DPNqxQ4n-mVhaMXTb.js → RevenueChart-C5qfXMEg-D1BQhist.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-DTCC2C0D-C6Ojy72F.js → ReviewDetailsPage-DjcJd2VM-CMmXdVTb.js} +17 -17
  141. package/dist/assets/{ReviewOverlay-CPN-RHG--BufZJNs3.js → ReviewOverlay-Dmrea9EK-DOxs4FI1.js} +14 -14
  142. package/dist/assets/RoleWithToolTip-CqeM8Bh0-BSEMOUZO.js +22 -0
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BSz5BdJ4-BcAVniZz.js → ScheduleDetailsFixedAssetsPage-CQGRrdSx-BKHIJc5L.js} +8 -8
  144. package/dist/assets/{ScheduleDetailsPage-DKVlaW9e-ChemaS_v.js → ScheduleDetailsPage-D5OBZ80r-BSViQYwc.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-BhpHoReF-DVT0PeVe.js → ScheduleSequenceTable-fgV8zz4I-B96Fw2cP.js} +49 -49
  146. package/dist/assets/{ScreenRoutes-CUNOProC.js → ScreenRoutes-Bs8GRIgm.js} +62 -62
  147. package/dist/assets/{SetUpAccountSection-Blh-Vipv-Ec9w8zf3.js → SetUpAccountSection-4-gtB3I4-CmDUZ7Ps.js} +24 -24
  148. package/dist/assets/{SetUpDefaultSection-DsyZbNsv-BcyPPYMa.js → SetUpDefaultSection-DSslQOgJ-y5lEHYNN.js} +12 -12
  149. package/dist/assets/{SignIn-DehOoUba-_IFKRKFV.js → SignIn-CgXxIawW-DSrGSPuV.js} +17 -17
  150. package/dist/assets/{SignInScreen-BXQkh3gn.js → SignInScreen-DSt7uixJ.js} +1 -1
  151. package/dist/assets/{SpendManagementListViewPage-C23fDDXZ-e5NI-MjJ.js → SpendManagementListViewPage-SkhzkIYZ-CI28gjhv.js} +11 -11
  152. package/dist/assets/{SpendManagementPerTabPage-Cx0sB3qO-C92A_6wt.js → SpendManagementPerTabPage-CofY1YYQ-C9YpxBTZ.js} +55 -55
  153. package/dist/assets/{SpendManagementSection-DbZYpbtO-DTrbPW3G.js → SpendManagementSection-DbC93chQ-CmYHf5ne.js} +13 -13
  154. package/dist/assets/{SpendMgmtSetupAccountSection-BkUIdz9m-ClfpmeIa.js → SpendMgmtSetupAccountSection-_8G7bMAw-CYWZUz0n.js} +22 -22
  155. package/dist/assets/{StatementItem-BF8L0fc_-DkDCxyQq.js → StatementItem-7ezfuDl--CcU7F4Hj.js} +5 -5
  156. package/dist/assets/{StatementsPage-96e3ZbSU-BP5FaF_u.js → StatementsPage-C4ziRzkU-Cl2Heiw2.js} +6 -6
  157. package/dist/assets/{StatusSwitcher-jwpQ49F7-BGzqIV7p.js → StatusSwitcher-0rVfFE-a-CheRZPfP.js} +7 -7
  158. package/dist/assets/{SubTabSwitcher-B8H6McwL-CAGUZLqm.js → SubTabSwitcher-aoWbkCmT-CaMIdf8x.js} +1 -1
  159. package/dist/assets/{SummaryCard-Bv4ja9yJ-BQ3Vm3Ml.js → SummaryCard-6V1G-Yln-AkNgJPj0.js} +1 -1
  160. package/dist/assets/{TaskManagementPage-D7tD4WRl-D829_k0m.js → TaskManagementPage-DjQma5Cr-DLhPVic-.js} +18 -18
  161. package/dist/assets/{TimeRangeSwitcher-Cr-ObvZ9-BpkXiM1i.js → TimeRangeSwitcher-DeIRg5zY-Bi--_Fx4.js} +5 -5
  162. package/dist/assets/{TimeframeSwitcher-YkFxZedG-C9WakH79.js → TimeframeSwitcher-Cop4G4gx-DupejW9U.js} +5 -5
  163. package/dist/assets/TimeframeSwitcherWithToggle-BhoniKOB-DuZjqpvb.js +31 -0
  164. package/dist/assets/{TopExCard-DtrsuLFD-rsSVK-ay.js → TopExCard-BKirBv7q-BKzGhACE.js} +6 -6
  165. package/dist/assets/{TopExDetailPage-HMRdJt_a-Cuky-W3B.js → TopExDetailPage-DcVunE8d-BJAugcNm.js} +11 -11
  166. package/dist/assets/{TransactionDetailPage-CkWEdpTW-BX9Cs2dn.js → TransactionDetailPage-TJf3D0K6-ChXVy1nH.js} +26 -26
  167. package/dist/assets/{TransactionList-8rOZr8BD-DZQflEIq.js → TransactionList-fn6VXYIJ-XKKmCfLI.js} +4 -4
  168. package/dist/assets/{TransactionListBig-DGx1qy2c-WusOBIcK.js → TransactionListBig-B_hNDFjS-Bc3M6sby.js} +25 -25
  169. package/dist/assets/{TransactionListPage-CnbufCaM-Crj6dxSk.js → TransactionListPage-BbXZWbie-DmTuImVR.js} +6 -6
  170. package/dist/assets/{TransactionVendorDetailPage-UpZX_EgR-Mzs4hwfT.js → TransactionVendorDetailPage-C6qJ5ncL-DRKEGbRL.js} +6 -6
  171. package/dist/assets/TransferDrawerPage-BtYoqKi--BK8jkNir.js +362 -0
  172. package/dist/assets/{TreasuryOverviewPage-DoPe6v4O-dHNFdpx5.js → TreasuryOverviewPage-DOV8Hanc-BzuaF_Oy.js} +53 -53
  173. package/dist/assets/{TreasuryPromoPage-Db20FO_G-DajsAZcT.js → TreasuryPromoPage-C9O7G72q-D0fVcP3x.js} +30 -29
  174. package/dist/assets/TreasurySetupPage-CNzkkEjw-Dh78QFWy.js +146 -0
  175. package/dist/assets/{TreasuryStatementsPage-BONCF7O1-C2wksa5Y.js → TreasuryStatementsPage-Ts6D6F-l-CQAmEMl1.js} +5 -5
  176. package/dist/assets/{TreasuryTaxLetterPage-NCZ0Y4yr-8hmlID6w.js → TreasuryTaxLetterPage-CM93_rS4-CfzYhIka.js} +5 -5
  177. package/dist/assets/TreasuryTransferOrReviewPage-C8-tbCUQ-DHGOUHuT.js +506 -0
  178. package/dist/assets/{TrendChart-DQXhBbqy-u2beI5NW.js → TrendChart-BXjPAYgk-DjYRl65V.js} +5 -5
  179. package/dist/assets/{TrendWithTransactions-Du-a-c_9-Um_fvL6F.js → TrendWithTransactions-BlGX9aVa-DUrKUprM.js} +8 -8
  180. package/dist/assets/{UncategorizedAccountsMappingPage-mSPC4LpU-DSNIKC_z.js → UncategorizedAccountsMappingPage--PnxDLIj-DgyLI8TV.js} +12 -12
  181. package/dist/assets/{UnitIntegrationPage-B5O9G4QH-y6cPvP8r.js → UnitIntegrationPage-D5mzaVVL-B87wl-C8.js} +4 -4
  182. package/dist/assets/{UploadAdditionalDocumentOverlay-CnjzAGYo-CBf_BQlS.js → UploadAdditionalDocumentOverlay-BXS2l5kF-4XXbIdgY.js} +1 -1
  183. package/dist/assets/{Vendor2FAPopup-CYcCB8tr-CtNb2at2.js → Vendor2FAPopup-jXN-6kcB-WQjywdob.js} +1 -1
  184. package/dist/assets/{VendorACHDetailsPage-C6EuQBcH-DtIAcatA.js → VendorACHDetailsPage-CHfX_7tk-CseZDy3t.js} +1 -1
  185. package/dist/assets/{VendorDetailPage-CnSXWVCg-BL1omixq.js → VendorDetailPage-CZuQaTCe-00z-DC1U.js} +13 -13
  186. package/dist/assets/{VendorDomesticWireDetailsPage-CVTkzHFB-BOarRjTv.js → VendorDomesticWireDetailsPage-dBmyAkGL-BzziQHyn.js} +1 -1
  187. package/dist/assets/{VendorFiling1099EditablePage-TJb9mpk0-qwt68m34.js → VendorFiling1099EditablePage-C6KWbHaM-FdVjec5X.js} +7 -7
  188. package/dist/assets/{VendorFirstReviewPage-gBLVMddY-3lz9ZyKl.js → VendorFirstReviewPage-DLaCXLH8-Bp3HVWXV.js} +30 -30
  189. package/dist/assets/{VendorInternationalWireDetailsPage-Bhm7j6HC-C_fJSHjY.js → VendorInternationalWireDetailsPage-DgCH9Rad-DD-YZWBN.js} +10 -10
  190. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-MgN7VFET-JLytJhuc.js → VendorInternationalWireSwiftDetailsPage-CprymE3v-BXc-3kQm.js} +1 -1
  191. package/dist/assets/{VendorsAccountsSection-Cn-8Yemv-QU3Ugu9k.js → VendorsAccountsSection-CpkfwFDJ-DeHCyl4j.js} +15 -15
  192. package/dist/assets/VerifyDevice-CSIkEBig-DzQ9uYAN.js +67 -0
  193. package/dist/assets/{WarningsDrawerPage-Cc_Rty0A-CiWJTjUM.js → WarningsDrawerPage-DeqbJ2Le-CygSrVz8.js} +12 -12
  194. package/dist/assets/{ZeniAccountDetailPage-BU2TTiDP-Caxfo2QU.js → ZeniAccountDetailPage-kwKoeRAb-yy2D4Oyh.js} +29 -29
  195. package/dist/assets/{ZeniAccountListViewPage-DbcnkYvX-ai9PY1nW.js → ZeniAccountListViewPage-15LxhIiI-3EkZXZhB.js} +19 -19
  196. package/dist/assets/ZeniAccountNavBarPieces-C0pq95hS-D_BEJJwy.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-D-5ArrRO-yroK6L0e.js → ZeniAccountPromoPage-DvlAb5YA-BxPQZ-TN.js} +33 -33
  198. package/dist/assets/{ZeniAccountSetupPage-DXYR0Ipo-69zJLoPG.js → ZeniAccountSetupPage-BjpvTfF5-DJqm4qSs.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-DPd1ifIT-CsDQSNsH.js → ZeniCopyright-BYJFIZ_X-DJl-W8Ni.js} +1 -1
  200. package/dist/assets/ZeniTransferAmountSlider-Did4Chpj-CHnHwXGw.js +63 -0
  201. package/dist/assets/{analyticsHelper-DrNmU0vn-cbtpMVPt.js → analyticsHelper-BRyA7WLX-Ch8yhvbw.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DYztlfoV.js → analyticsHelper-DEjyvXKA.js} +1 -1
  203. package/dist/assets/{chartTypes-YTQv3tre-BaZWty8J.js → chartTypes-CWEoqL4g-Bo1GQ9Y0.js} +1 -1
  204. package/dist/assets/{commonDimensions-BtmBVXgZ-DngS5_m0.js → commonDimensions-UvndzJjv-DkCvzihA.js} +1 -1
  205. package/dist/assets/{detailCommon-hHyz3hj3-CgkqfxsC.js → detailCommon-C3ymS8dg-BusgYXoD.js} +2 -2
  206. package/dist/assets/{downloadPdf-CDvgLzWC-C6NI1uz3.js → downloadPdf-CHwWcCR1-BQYdnkG1.js} +1 -1
  207. package/dist/assets/{index-CVo0uMzO.js → index-DYVNUtTS.js} +4129 -3984
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-BfoqmoAq-n6edsobL.js → mapLoadingInProgressToTreeNode-BV9ky97n-C6-bn_qJ.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BjtxR9iQ-qzW1C6Un.js → mapSectionWithAcOnlyToTreeNode-WivyN4Y7-DeEMrm9i.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-D8o529OP-C6pXOMvN.js → mapSpacerToTreeNode-AXNRptLX-B0rl0_Lw.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-BirMnIzY-C4aRbhHq.js → mapTimeframeBalancesToTreeNode-DUac2vK4-jK2oIVF4.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-NA69l84M-PrspUuQP.js → mapTimeframeBalancesToTreeNode-JTl35sFx-B-SNtaen.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BCqRt8GN-Bw8svqkv.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DtkeOXnf-Dl0F4JWH.js} +1 -1
  214. package/dist/assets/{play-icon-DyIc5aGx-CIOaxH3w.js → play-icon-HSIOzxQm-DtUz8FwI.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-2jQJLb8S-DW8RIFP8.js → toCOABalancesWithID-CkjYSysY-DF7YtxZI.js} +1 -1
  216. package/dist/assets/{toChartData-Dsjd8dGe-B64jG2hW.js → toChartData-BhKlnyso-CKLUlraQ.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-EG8VpBia-DN3Bvuhd.js → treasuryColorHelper-yIAXBrrM-D_iAl7kS.js} +1 -1
  218. package/dist/assets/{uploadAttachment-CVUM4FN--B0G4nXtQ.js → uploadAttachment-CWaYLqwb-DAXv_gFj.js} +32 -32
  219. package/dist/assets/{uploadReceipts-D80JLNY4-CvtBPjYq.js → uploadReceipts-C6Ld_WLK-CscO-OGr.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/ACHDetailsPage-BQBpkHfF-BwEQR3Ry.js +0 -21
  223. package/dist/assets/BankAccountWarningSection-CWXa-X6f-Bo2YdlXb.js +0 -51
  224. package/dist/assets/BusinessVerificationPage-BoSLJbyU-BJPGiqTw.js +0 -140
  225. package/dist/assets/ChargeCardPromoPage-dIg8OIlx-I5SeyfVO.js +0 -219
  226. package/dist/assets/CheckDepositDrawerPage-uABg3PMN-BdzopMYU.js +0 -206
  227. package/dist/assets/CompanyOfficerDetailsSection-BzYsDrr2-uFzN5DGM.js +0 -232
  228. package/dist/assets/CompleteProfile-CN_hAW-2-D9tT8MoO.js +0 -36
  229. package/dist/assets/CustomerOnboardingContainerPage-B9qcJNx5-UVumagoc.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-Db90ITIq-oTkCmI07.js +0 -66
  231. package/dist/assets/DocumentSecurityBanner-Bxg3ctYZ-39503B9W.js +0 -29
  232. package/dist/assets/EditPeoplePage-CBPmCcoG-DAdjecZc.js +0 -55
  233. package/dist/assets/FeaturePreviewPage-BBkfKvIu-CqzyD_TL.js +0 -11
  234. package/dist/assets/InsightsCardStack-rByhzgji-FDbIdVTC.js +0 -79
  235. package/dist/assets/InsightsSection-jnWJ877y-CXGce558.js +0 -27
  236. package/dist/assets/InvitePeoplePage-DvGON1va-BYLNeXQs.js +0 -12
  237. package/dist/assets/LabeledDocumentField-TFmz23mS-CYnZhFdz.js +0 -41
  238. package/dist/assets/MagicLinkSuccessPage-dxBSlbub-CRDPtPi_.js +0 -31
  239. package/dist/assets/MailingDetailsSection-CsK09X11-DZ9sqO1E.js +0 -21
  240. package/dist/assets/NavBarWithPicker-CuJe05iJ-BuKAIj_v.js +0 -30
  241. package/dist/assets/NavigationDots-BQfoX9p0-BmnKz8T-.js +0 -14
  242. package/dist/assets/QBOSetupSection-Dijb03ZX-CFOO-p_z.js +0 -79
  243. package/dist/assets/ReimbursementApprovalRuleDetailPage-bkJIpwyU-DTXj9skr.js +0 -26
  244. package/dist/assets/RoleWithToolTip-Bst2IdUy-DaFvOxA_.js +0 -22
  245. package/dist/assets/TimeframeSwitcherWithToggle-4h9WX4z9-DfbkXFml.js +0 -31
  246. package/dist/assets/TransferDrawerPage-cUyg27nq-DoY6rZbB.js +0 -362
  247. package/dist/assets/TreasurySetupPage-BoVhd65r-DAl3tLzo.js +0 -152
  248. package/dist/assets/TreasuryTransferOrReviewPage-DAmZboLO-qe3kHbZ0.js +0 -506
  249. package/dist/assets/ZeniAccountNavBarPieces-CeJHAl4O-D-T_tdRo.js +0 -14
  250. package/dist/assets/ZeniTransferAmountSlider-di46G5TN-D3ij5oCv.js +0 -63
@@ -1,4 +1,4 @@
1
- import{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z as kt,l as Q,o as s,eH as Ze,bH as Ie,bL as xt,fy as wt,ao as ft,be as Xe,a6 as Ct,X as le,a as Tt,C as Je,c3 as $t,F as yt,aj as bt,bT as vt,ia as jt,ib as St,iH as Be,a4 as Gt,K as De,bs as Ee,eD as Qe,iI as Lt,cq as et,iJ as pe,iK as xe,iL as Nt,iM as we,iN as tt,iO as st,iP as ot,iQ as nt,iR as at,iS as rt,iT as _,q as ke,iU as re,v as ie,iV as It,iW as Et,a3 as Mt,n as Dt,iX as Bt,d6 as zt,iY as At,cg as it,cA as Wt,f as Rt,iZ as Ot,i_ as Ft,fz as Pt,eG as Ht,i$ as Vt,j0 as X,j1 as ze,bV as Ut,j2 as _t,j3 as Kt,j4 as Ae,j5 as Yt,g as We,fW as qt,m as Zt}from"./index-CVo0uMzO.js";import{b as n,n as o,j as fe}from"./vendor-CnQcJ2Lu.js";import{K as Xt,Y as Jt}from"./SpendManagementSection-DbZYpbtO-DTrbPW3G.js";import{A as Qt,t as es,a as ts,E as ss}from"./NotificationsListConfig-DuzDckh--BqtRxON_.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-C23fDDXZ-e5NI-MjJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./StatusSwitcher-jwpQ49F7-BGzqIV7p.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())},B=()=>{a=!1,C()},z=x=>{a&&(c=x.clientY)},$=x=>{z(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",B),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",B),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,B as oe,iK as Y,aW as mt,T as H,bS as gt,m as K,Z as kt,l as J,o as s,eL as Ze,bL as Ie,bP as xt,fB as wt,ao as ft,bf as Xe,a6 as Ct,X as le,a as Tt,C as Qe,c7 as $t,F as yt,aj as bt,bX as vt,ie as jt,ig as St,iL as Be,a4 as Gt,i as De,bx as Ee,eH as Je,iM as Lt,cu as et,iN as pe,iO as xe,iP as Nt,iQ as we,iR as tt,iS as st,iT as ot,iU as nt,iV as at,iW as rt,iX as _,s as ke,iY as re,w as ie,iZ as It,i_ as Et,a3 as Mt,q as Dt,i$ as Bt,da as zt,j0 as At,ck as it,cE as Wt,v as Rt,j1 as Ot,j2 as Ft,fC as Pt,eK as Vt,j3 as Ht,j4 as X,j5 as ze,bZ as Ut,j6 as _t,j7 as Kt,j8 as Ae,j9 as Yt,d as We,fZ as qt,M as Zt}from"./index-DYVNUtTS.js";import{b as n,n as o,j as fe}from"./vendor-CnQcJ2Lu.js";import{K as Xt,Y as Qt}from"./SpendManagementSection-DbC93chQ-CmYHf5ne.js";import{A as Jt,t as es,a as ts,E as ss}from"./NotificationsListConfig-sybPesiv-FmaZBisq.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-SkhzkIYZ-CI28gjhv.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./StatusSwitcher-0rVfFE-a-CheRZPfP.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())},B=()=>{a=!1,C()},z=x=>{a&&(c=x.clientY)},$=x=>{z(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",B),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",B),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{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
16
16
  outline-color: inherit;
17
17
  `,cs=o(Dt)`
18
18
  color: inherit;
19
- `,{taskManagement:Re,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:Re.taskList.groupingFilters.groupBy}),t.jsx(hs,{children:t.jsx(Xt,{value:r,placeHolder:Re.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`
19
+ `,{taskManagement:Re,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:Re.taskList.groupingFilters.groupBy}),t.jsx(hs,{children:t.jsx(Xt,{value:r,placeHolder:Re.taskList.groupingFilters.placeholder,onChange:a=>{const c=J.toTaskListGroupByKeyTypeStrict(a.value);if(c!=null)u(c);else throw new Error("Invalid taskListGroupByKey")},options:J.TASK_LIST_GROUP_BY_CATEGORIES,getOptionLabel:a=>{const c=Ge.texts,i=J.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{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
44
44
  `,ks=o(Xe)`
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(Oe,{onClick:i,children:t.jsx(ie,{children:c.groupName})},c.id)})}),t.jsx(V,{controller:r==="groupName",children:t.jsxs(Oe,{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(Oe,{onClick:i,children:t.jsx(ie,{children:c.groupName})},c.id)})}),t.jsx(H,{controller:r==="groupName",children:t.jsxs(Oe,{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
  `,Oe=o.div`
50
50
  padding: ${s.sp2} ${s.sp3};
@@ -97,7 +97,7 @@ import{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
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(),J=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 B=n.useCallback(($,x)=>{f(x),j($,x)},[j]),z=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(Bs,{isTaskTemplatesEnabled:m,children:[t.jsxs(Ws,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(zs,{}),t.jsx(Ie,{children:J.task})]}),t.jsx(V,{controller:u==="groupName",children:t.jsxs(Pe,{onClick:()=>d(""),children:[t.jsx(As,{}),t.jsx(Ie,{children:J.group})]})})]}),m?t.jsx(Ds,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:p,handleGroupTemplateClick:z,handleGroupTemplateTaskClick:B,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(Rs,{children:[t.jsx(Os,{children:t.jsxs(Ps,{children:[t.jsxs(Fs,{children:[t.jsx(Hs,{}),t.jsx(Vs,{children:J.groupTemplates})]}),t.jsx($s,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:d,onSearchTextChanged:C,placeholder:J.searchPlaceholder})]})}),t.jsx(V,{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(V,{controller:f,children:t.jsx(Qs,{})}),t.jsx(V,{controller:!f,children:t.jsx(Js,{})}),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:J.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),p(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(V,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Ys,{children:[t.jsxs(qs,{children:[t.jsx(to,{className:"styled-dot"}),t.jsx(no,{className:"task-name-text",children:w.name})]}),t.jsx(Xs,{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(V,{controller:j.length===0,children:[t.jsx(so,{children:t.jsx(oo,{children:J.noTaskGroup})}),t.jsxs(He,{onClick:E,children:[t.jsx(Ve,{}),t.jsx(K,{children:J.newTaskOptionText.replace("__searchText__",d)})]}),t.jsxs(He,{onClick:M,children:[t.jsx(Ve,{}),t.jsx(K,{children:J.newGroupOptionText.replace("__searchText__",d)})]})]})]})},Bs=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"})),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 B=n.useCallback(($,x)=>{f(x),j($,x)},[j]),z=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(Bs,{isTaskTemplatesEnabled:m,children:[t.jsxs(Ws,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(zs,{}),t.jsx(Ie,{children:Q.task})]}),t.jsx(H,{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:z,handleGroupTemplateTaskClick:B,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(Rs,{children:[t.jsx(Os,{children:t.jsxs(Ps,{children:[t.jsxs(Fs,{children:[t.jsx(Vs,{}),t.jsx(Hs,{children:Q.groupTemplates})]}),t.jsx($s,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:d,onSearchTextChanged:C,placeholder:Q.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(Js,{})}),t.jsx(H,{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(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(Xs,{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(H,{controller:j.length===0,children:[t.jsx(so,{children:t.jsx(oo,{children:Q.noTaskGroup})}),t.jsxs(Ve,{onClick:E,children:[t.jsx(He,{}),t.jsx(K,{children:Q.newTaskOptionText.replace("__searchText__",d)})]}),t.jsxs(Ve,{onClick:M,children:[t.jsx(He,{}),t.jsx(K,{children:Q.newGroupOptionText.replace("__searchText__",d)})]})]})]})},Bs=o.div`
101
101
  display: flex;
102
102
  flex-direction: column;
103
103
  width: ${e=>e.isTaskTemplatesEnabled?"408px":"unset"};
@@ -141,11 +141,11 @@ import{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
141
141
  align-items: center;
142
142
  justify-content: space-between;
143
143
  width: 100%;
144
- `,Hs=o(Gs)`
144
+ `,Vs=o(Gs)`
145
145
  width: ${s.sp3};
146
146
  height: ${s.sp3};
147
147
  color: ${e=>e.theme.colors.primary};
148
- `,Vs=o(Ie)`
148
+ `,Hs=o(Ie)`
149
149
  color: ${e=>e.theme.colors.primary};
150
150
  `,Us=o.div`
151
151
  max-height: 320px;
@@ -205,10 +205,10 @@ import{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
205
205
  display: ${e=>e.expanded===!0?"block":"none"};
206
206
  `,Xs=o(De)`
207
207
  display: none;
208
- `,Js=o(Lt)`
208
+ `,Qs=o(Lt)`
209
209
  width: ${s.sp3};
210
210
  height: ${s.sp3};
211
- `,Qs=o(Qe)`
211
+ `,Js=o(Je)`
212
212
  width: ${s.sp3};
213
213
  height: ${s.sp3};
214
214
  `,eo=o.div``,to=o.div`
@@ -223,7 +223,7 @@ import{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
223
223
  padding: ${s.sp2} ${s.sp3};
224
224
  `,oo=o(K)`
225
225
  color: ${e=>e.theme.colors.hero};
226
- `,He=o.div`
226
+ `,Ve=o.div`
227
227
  display: flex;
228
228
  align-items: center;
229
229
  padding: ${s.sp2} ${s.sp3};
@@ -234,7 +234,7 @@ import{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
234
234
  background-color: ${e=>e.theme.colors.background};
235
235
  color: ${e=>e.theme.colors.primary};
236
236
  }
237
- `,Ve=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{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
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 Je(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:X[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:X[0].width,children:t.jsx(jo,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[1].width,children:ze(e.status.code)}),t.jsx(Io,{windowSize:a,responsiveWidth:X[2].width,children:ze(e.priority.code)}),t.jsx(Eo,{windowSize:a,responsiveWidth:X[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:X[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:X[5].width,children:e.tagIds.length>0?t.jsx(No,{children:_t(e.tagIds,u)}):null}),t.jsx(Bo,{windowSize:a,responsiveWidth:X[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(zo,{className:"timeSpentField",children:t.jsx(Kt,{name:Ae(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:E,onTaskManagementRowClick:M,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[D,B]=n.useState(null),z=le(),{setFocus:$}=it(),x=n.useCallback(()=>{E(e.id)},[E,e.id]),S=n.useCallback(R=>{B(R.currentTarget)},[]),y=n.useCallback(()=>{B(null)},[]),L=n.useCallback(()=>{j(e.id)},[j,e.id]),g=n.useCallback(()=>{B(null),i(e.id)},[i,e.id]),b=n.useCallback(()=>{$(`${r}.groupName`),y()},[y,r,$]);return t.jsxs(lo,{windowSize:z,children:[t.jsx(V,{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(Wt,{style:{textAlign:"start",width:"100%",background:"unset",...Rt.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Me.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:R=>Ot(R,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(Ft,{onClose:y,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:d,onRename:b,isDefault:e.isDefault,anchorEl:D})]})}),t.jsx(V,{controller:a===!1,children:t.jsx(Pt,{mode:"checked_or_hover",isDisabled:p===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(R=>{const U=()=>{M(R.id)};return{label:t.jsx(ro,{taskDetail:R,onRowClick:U,tagList:u,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:z==="small"?null:t.jsx(Co,{children:t.jsx(To,{})}),value:R.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 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:X[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:X[0].width,children:t.jsx(jo,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[1].width,children:ze(e.status.code)}),t.jsx(Io,{windowSize:a,responsiveWidth:X[2].width,children:ze(e.priority.code)}),t.jsx(Eo,{windowSize:a,responsiveWidth:X[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:X[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:X[5].width,children:e.tagIds.length>0?t.jsx(No,{children:_t(e.tagIds,u)}):null}),t.jsx(Bo,{windowSize:a,responsiveWidth:X[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(zo,{className:"timeSpentField",children:t.jsx(Kt,{name:Ae(r,e.id,we),placeholder:Me.common.timeSpentPlaceholder,timeSpentFormat:Me.common.timeSpentFormat,registerOptions:{validate:k=>J.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,B]=n.useState(null),z=le(),{setFocus:$}=it(),x=n.useCallback(()=>{E(e.id)},[E,e.id]),S=n.useCallback(R=>{B(R.currentTarget)},[]),y=n.useCallback(()=>{B(null)},[]),L=n.useCallback(()=>{j(e.id)},[j,e.id]),g=n.useCallback(()=>{B(null),i(e.id)},[i,e.id]),b=n.useCallback(()=>{$(`${r}.groupName`),y()},[y,r,$]);return t.jsxs(lo,{windowSize:z,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(Wt,{style:{textAlign:"start",width:"100%",background:"unset",...Rt.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Me.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:R=>Ot(R,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(Ft,{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(R=>{const U=()=>{M(R.id)};return{label:t.jsx(ro,{taskDetail:R,onRowClick:U,tagList:u,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:z==="small"?null:t.jsx(Co,{children:t.jsx(To,{})}),value:R.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;
@@ -305,19 +305,19 @@ import{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
305
305
  `,ko=o.div`
306
306
  cursor: pointer;
307
307
  transform: ${e=>e.isOpen?"rotate(0deg)":"rotate(-90deg)"};
308
- `,xo=o(Qe)`
308
+ `,xo=o(Je)`
309
309
  width: ${s.sp3};
310
310
  height: ${s.sp3};
311
311
  color: ${e=>e.theme.colors.primary};
312
312
  `,wo=o.div`
313
313
  cursor: pointer;
314
- `,fo=o(Ht)`
314
+ `,fo=o(Vt)`
315
315
  width: ${s.sp3};
316
316
  height: ${s.sp3};
317
317
  `,Co=o.div`
318
318
  padding-left: ${s.sp3};
319
319
  cursor: grab;
320
- `,To=o(Vt)`
320
+ `,To=o(Ht)`
321
321
  width: ${s.sp3};
322
322
  height: ${s.sp3};
323
323
  `,$o=o.div`
@@ -430,10 +430,10 @@ import{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
430
430
  column-gap: ${s.sp2};
431
431
  `,zo=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"})),H=oe.getLocalizedStrings(),_e=e=>`${e}_form`,Wo={rowGap:new Je(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:B,onGroupByFilterChange:z,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:y,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:b})=>{const[R,U]=n.useState(!1),[ee,F]=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=W=>{ae(W)},me=n.useCallback(W=>{de(W.currentTarget)},[]),ge=n.useCallback(W=>{z(W)},[z]),l=n.useCallback(()=>{z("groupName")},[z]),G=n.useCallback(W=>{b(W)},[b]),O=ce.users.map(W=>W.user).filter(W=>W!=null),N={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:he,searchPlaceHolder:H.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",O,Te.loggedInUserRole??[],u.tagList)},I=n.useCallback(W=>{de(null),F(Y),c({...e.localData,newTaskGroupName:W})},[e.localData,c]),A=n.useCallback(()=>{de(null)},[]),v=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{F(Y)},[]),se=n.useCallback(W=>{ue(ut=>ut===W?null:W)},[]);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:H.common.reloadPage.label})]}):te==="Completed"&&ye.length===0?t.jsx(xt,{message:H.taskManagement.taskList.noDataText}):te==="Not-Started"||te==="In-Progress"?t.jsx(wt,{fetchState:te}):t.jsx(Ro,{taskListView:e,tagList:be,renameActiveField:ee,updateTask:m,onDragNDrop:p,onAddNewTaskToTaskGroup:B,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:c,setActiveTaskGroupId:ne,setRenameActiveField:F,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:y,onCreateTagClick:h}),pt=t.jsx(Jt,{spendManagementSectionProps:N});return t.jsxs(Vo,{children:[t.jsx(mt,{title:H.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(Ho,{children:ct()}),t.jsx(V,{controller:R===!0,children:t.jsx(gt,{action:{onOkClick:v,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(Qo,{children:t.jsx(kt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(en,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Ro=({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:B,onCreateTagClick:z})=>{const $=n.useRef(null),[x,S]=n.useState(null),y=n.useRef({}),L=le(),{localData:g,taskGroupsWithTasksList:b,uiState:R}=e,[U,ee]=n.useState([]),F=n.useRef(null);ls({scrollContainerRef:F,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(O=>{const N=O.tasks.filter(I=>{const A=g.selectedTaskIds.includes(I.id)===!0;return A&&l.push(I),A===!1});return{...O,tasks:N}});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]+Wo.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(O=>l!==O):[...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=Q.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=Q.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 O=Po(l,G,g);c(O)};n.useEffect(()=>{const l=ne.watch((G,{name:O})=>{O!=null&&G!=null&&$t(()=>je(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupUpdateStatus.fetchState]);const 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(Be),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:F,height:l,itemCount:q.length,itemSize:ue,estimatedItemSize:St,itemKey:O=>q[O].id,width:G,overscanCount:jt,itemData:{tagList:u,taskGroupsWithTasksList:q,uiState:R,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:B,onCreateTagClick:z},initialScrollOffset:0,children:Oo})})})})}),ge?t.jsx(Gt,{formId:_e(Be),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(V,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(Xo,{children:[t.jsx(lt,{count:g.selectedTaskIds.length}),t.jsx(Jo,{children:g.selectedTaskIds.length>1?Ne.taskList.footer.tasksSelected:Ne.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(V,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(sn,{children:t.jsx(Ee,{enterDelay:600,title:H.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:H.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:R.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ae(),j(l)},onClose:ae})]}):void 0}):null]})},Oo=({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:B,onRenameClick:z,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(F=>{const P=F.dataTransfer.getData("row");B(P,a[e].id)},[B,e,a]),R=n.useCallback(F=>{F.preventDefault()},[]),U=(F,P)=>{F.dataTransfer.setData("row",P)},ee=()=>{z(a[e].id)};return t.jsx(Zo,{style:{...u,width:"100%"},ref:h,onDrop:b,onDragOver:R,children:t.jsx(Fo,{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)})},Fo=({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:B,onTimeSpentUpdate:z,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:B,onRenameClick:C,onTimeSpentUpdate:z,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: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=Bt(zt(Object.values(u[_][rt]),xe)).filter(p=>p!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Ho=o.div`
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`,Wo={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:B,onGroupByFilterChange:z,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:y,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:b})=>{const[R,U]=n.useState(!1),[ee,F]=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=W=>{ae(W)},me=n.useCallback(W=>{de(W.currentTarget)},[]),ge=n.useCallback(W=>{z(W)},[z]),l=n.useCallback(()=>{z("groupName")},[z]),G=n.useCallback(W=>{b(W)},[b]),O=ce.users.map(W=>W.user).filter(W=>W!=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",O,Te.loggedInUserRole??[],u.tagList)},I=n.useCallback(W=>{de(null),F(Y),c({...e.localData,newTaskGroupName:W})},[e.localData,c]),A=n.useCallback(()=>{de(null)},[]),v=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{F(Y)},[]),se=n.useCallback(W=>{ue(ut=>ut===W?null:W)},[]);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(Ro,{taskListView:e,tagList:be,renameActiveField:ee,updateTask:m,onDragNDrop:p,onAddNewTaskToTaskGroup:B,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:c,setActiveTaskGroupId:ne,setRenameActiveField:F,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:y,onCreateTagClick:h}),pt=t.jsx(Qt,{spendManagementSectionProps:N});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: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(H,{controller:R===!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(Jo,{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})})})})]})},Ro=({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:B,onCreateTagClick:z})=>{const $=n.useRef(null),[x,S]=n.useState(null),y=n.useRef({}),L=le(),{localData:g,taskGroupsWithTasksList:b,uiState:R}=e,[U,ee]=n.useState([]),F=n.useRef(null);ls({scrollContainerRef:F,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(O=>{const N=O.tasks.filter(I=>{const A=g.selectedTaskIds.includes(I.id)===!0;return A&&l.push(I),A===!1});return{...O,tasks:N}});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]+Wo.rowGap.value(L):(Jt*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(O=>l!==O):[...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=J.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=J.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 O=Po(l,G,g);c(O)};n.useEffect(()=>{const l=ne.watch((G,{name:O})=>{O!=null&&G!=null&&$t(()=>je(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupUpdateStatus.fetchState]);const 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(Be),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:F,height:l,itemCount:q.length,itemSize:ue,estimatedItemSize:St,itemKey:O=>q[O].id,width:G,overscanCount:jt,itemData:{tagList:u,taskGroupsWithTasksList:q,uiState:R,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:B,onCreateTagClick:z},initialScrollOffset:0,children:Oo})})})})}),ge?t.jsx(Gt,{formId:_e(Be),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(H,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(Xo,{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(H,{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:R.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ae(),j(l)},onClose:ae})]}):void 0}):null]})},Oo=({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:B,onRenameClick:z,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(F=>{const P=F.dataTransfer.getData("row");B(P,a[e].id)},[B,e,a]),R=n.useCallback(F=>{F.preventDefault()},[]),U=(F,P)=>{F.dataTransfer.setData("row",P)},ee=()=>{z(a[e].id)};return t.jsx(Zo,{style:{...u,width:"100%"},ref:h,onDrop:b,onDragOver:R,children:t.jsx(Fo,{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)})},Fo=({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:B,onTimeSpentUpdate:z,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:B,onRenameClick:C,onTimeSpentUpdate:z,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:J.allTaskStatus.map(d=>({label:d.name,value:d.code}))},[nt]:{selectedOption:i.priority.code,allOptions:J.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=Bt(zt(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
- `,Vo=o.div`
436
+ `,Ho=o.div`
437
437
  width: 100%;
438
438
  height: 100vh;
439
439
  display: flex;
@@ -480,9 +480,9 @@ import{w as ht,u as qe,j as t,M as oe,iG as Y,aV as mt,T as V,bO as gt,e as K,Z
480
480
  align-items: center;
481
481
  column-gap: ${s.sp2};
482
482
  padding-left: ${s.sp9};
483
- `,Jo=o(K)`
483
+ `,Qo=o(K)`
484
484
  color: ${e=>e.theme.colors.primary};
485
- `,Qo=o.div`
485
+ `,Jo=o.div`
486
486
  padding-top: ${s.sp7};
487
487
  padding-bottom: ${s.sp4};
488
488
  color: ${e=>e.theme.colors.primary};
@@ -1,4 +1,4 @@
1
- import{j as t,aj as Y,H as E,df as D,aM as L,o as a,v as q}from"./index-CVo0uMzO.js";import{n as g,b as n}from"./vendor-CnQcJ2Lu.js";import{R as A}from"./mui-C5LQ0bMa.js";import{V as U}from"./CollapsableReportTable-mEqm05fp-CUcsGi4N.js";const W=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),X=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,Z=g.div`
1
+ import{j as t,aj as D,K as k,dj as H,aN as L,o as a,w as q}from"./index-DYVNUtTS.js";import{n as g,b as n}from"./vendor-CnQcJ2Lu.js";import{R as A}from"./mui-C5LQ0bMa.js";import{V as K}from"./CollapsableReportTable-DX-FpwE7-MJq_0H8T.js";const U=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),W=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,X=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,aj as Y,H as E,df as D,aM as L,o as a,v as q}from"./index-CVo0uMzO
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
- `,_=g.div`
10
+ `,Z=g.div`
11
11
  display: flex;
12
12
  align-items: center;
13
13
  justify-content: center;
@@ -20,11 +20,11 @@ import{j as t,aj as Y,H as E,df as D,aM as L,o as a,v as q}from"./index-CVo0uMzO
20
20
  }
21
21
  cursor: ${e=>e.isEnabled?"pointer":"default"};
22
22
  background-color: ${e=>e.isSelected?e.theme.colors.background:"transparent"};
23
- `,G=g(L)`
23
+ `,_=g(L)`
24
24
  display: flex;
25
25
  position: relative;
26
26
  scrollbar-width: none;
27
- `,J=g(q)``,K=g.div`
27
+ `,G=g(q)``,J=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,aj as Y,H as E,df as D,aM as L,o as a,v as q}from"./index-CVo0uMzO
61
61
  cursor: pointer;
62
62
  pointer-events: all;
63
63
  color: ${e=>e.theme.colors.grey5};
64
- `;function k({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 ne(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 ie(e){return e.startIndex!=null}function z(e,c){let l={startIndex:0,length:0};if(ie(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=n.createRef(),b=n.useRef(null),[M,I]=n.useState(!1),[o,T]=n.useState(z(s.selectedTicks,r)),v=n.useRef(o.startIndex);n.useEffect(()=>{v.current=o.startIndex});const[$,C]=n.useState(s.highlightedOfSelectedTicks),O=(o.startIndex+o.length>r.length?Math.max(r.length-o.length,0):o.startIndex)*h,[y,F]=n.useState({x:O,y:0});n.useEffect(()=>{I(!0)},[]),n.useEffect(()=>{const i=z(s.selectedTicks,r);if(!E(o,i)){T(i);const d=i.startIndex*h;F({x:d,y:0})}E($,s.highlightedOfSelectedTicks)||C(s.highlightedOfSelectedTicks)},[o,$,s,r]),n.useLayoutEffect(()=>{const{startIndex:i,length:d}=o;u.current?.scrollToItem(v.current<=i?i+d-1:i)},[u,o]);const R=x!==!1,N=(i,d,m)=>{f?.(m,i)},P=(i,d)=>{const m=ne(y.x,d.x,o,$,r.length);w?.(m.selectedTicks,m.highlightedOfSelectedTicks,l,r)},B=({index:i,style:d})=>{const m=r[i],{startIndex:j,length:H}=$,V=i>=j&&i<j+H;return t.jsx("div",{style:{...d},children:t.jsx(re,{enabled:R,firstMonthOfFY:c,timeframe:l,tick:m,tickIndex:i,isSelected:V,onClick:N},i)})},S=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}),M===!0&&S!=null?t.jsx(te,{parentNode:S,children:t.jsx(D,{axis:"x",defaultPosition:{x:0,y:0},position:y,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(k,{iconPosition:"left"})}),t.jsx(ee,{children:t.jsx(k,{iconPosition:"right"})})]})})}):null]})}function de(e){return t.jsx(Z,{children:t.jsx(Y,{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(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 ne(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 ie(e){return e.startIndex!=null}function z(e,c){let l={startIndex:0,length:0};if(ie(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=n.createRef(),b=n.useRef(null),[I,M]=n.useState(!1),[o,T]=n.useState(z(s.selectedTicks,r)),j=n.useRef(o.startIndex);n.useEffect(()=>{j.current=o.startIndex});const[$,C]=n.useState(s.highlightedOfSelectedTicks),O=(o.startIndex+o.length>r.length?Math.max(r.length-o.length,0):o.startIndex)*h,[y,F]=n.useState({x:O,y:0});n.useEffect(()=>{M(!0)},[]),n.useEffect(()=>{const i=z(s.selectedTicks,r);if(!k(o,i)){T(i);const d=i.startIndex*h;F({x:d,y:0})}k($,s.highlightedOfSelectedTicks)||C(s.highlightedOfSelectedTicks)},[o,$,s,r]),n.useLayoutEffect(()=>{const{startIndex:i,length:d}=o;u.current?.scrollToItem(j.current<=i?i+d-1:i)},[u,o]);const N=x!==!1,R=(i,d,m)=>{f?.(m,i)},P=(i,d)=>{const m=ne(y.x,d.x,o,$,r.length);w?.(m.selectedTicks,m.highlightedOfSelectedTicks,l,r)},B=({index:i,style:d})=>{const m=r[i],{startIndex:E,length:V}=$,Y=i>=E&&i<E+V;return t.jsx("div",{style:{...d},children:t.jsx(re,{enabled:N,firstMonthOfFY:c,timeframe:l,tick:m,tickIndex:i,isSelected:Y,onClick:R},i)})},S=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}),I===!0&&S!=null?t.jsx(te,{parentNode:S,children:t.jsx(H,{axis:"x",defaultPosition:{x:0,y:0},position:y,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};
@@ -1,4 +1,4 @@
1
- import{j as t,o,v as p,M as u}from"./index-CVo0uMzO.js";import{n as i}from"./vendor-CnQcJ2Lu.js";const f=i.div`
1
+ import{j as t,o,w as p,B as u}from"./index-DYVNUtTS.js";import{n as i}from"./vendor-CnQcJ2Lu.js";const f=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -18,14 +18,14 @@ import{j as t,o,v as p,M as u}from"./index-CVo0uMzO.js";import{n as i}from"./ven
18
18
  border-radius: ${o.sp2};
19
19
  background-color: ${e=>e.isSelected?e.theme.colors.grey5:e.theme.colors.background};
20
20
  box-shadow: ${e=>e.isSelected?`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`:null};
21
- `,_=i(p)`
21
+ `,w=i(p)`
22
22
  padding: ${o.sp2} ${o.sp3} ${o.sp2} ${o.sp3};
23
- `,g=i.div`
23
+ `,_=i.div`
24
24
  width: 1px;
25
25
  height: ${o.sp3};
26
26
  background-color: ${e=>e.isSelected?e.theme.colors.background:e.theme.colors.grey2};
27
- `,w=i.div`
27
+ `,g=i.div`
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(w,{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(g,{children:[t.jsx($,{timeframe:r,isSelected:d,onClick:n},c),m?t.jsx(_,{isSelected:d||h}):null]},c)})})}export{k as b};
@@ -0,0 +1,31 @@
1
+ import{X as c,j as t,C as n,w,b4 as x}from"./index-DYVNUtTS.js";import{n as r}from"./vendor-CnQcJ2Lu.js";import{b as l}from"./TimeframeSwitcher-Cop4G4gx-DupejW9U.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...o})=>t.jsx(x,{...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
+ display: flex;
3
+ width: 100%;
4
+ flex-direction: column;
5
+ `,y=r.div`
6
+ display: flex;
7
+ width: 100%;
8
+ flex-direction: row;
9
+ `,m=r.div`
10
+ display: flex;
11
+ flex-direction: row;
12
+ flex: 1 1 auto;
13
+ justify-content: center;
14
+ padding-left: ${e=>d.timeframePaddingLeft.valuePx(e.windowSize)};
15
+ padding-bottom: ${e=>d.timeframePaddingBottom.valuePx(e.windowSize)};
16
+ `,k=r.div`
17
+ display: flex;
18
+ width: 100%;
19
+ flex-direction: row;
20
+ align-items: center;
21
+ justify-content: center;
22
+ `,j=r.div`
23
+ display: flex;
24
+ width: 125px;
25
+ flex-direction: row;
26
+ align-items: center;
27
+ justify-content: flex-end;
28
+ `,C=r(w)`
29
+ color: ${e=>e.isOn?e.theme.colors.primary:e.theme.colors.hero};
30
+ opacity: ${e=>e.isDisabled?.5:1};
31
+ `,h=({label:e,isOn:o,isToggleDisabled:s,onValueChanged:g})=>t.jsxs(t.Fragment,{children:[t.jsx(C,{isOn:o,isDisabled:s===!0,children:e}),t.jsx(b,{checked:o,edge:"end",disabled:s===!0,disableRipple:s===!0,onChange:f=>{g(f.target.checked)}})]}),B=e=>{const o=c();return t.jsxs($,{children:[t.jsx(m,{windowSize:o,children:t.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),t.jsx(k,{children:t.jsx(h,{...e.toggle})})]})},S=e=>{const o=c();return t.jsxs(y,{children:[t.jsx(m,{windowSize:o,children:t.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),t.jsx(j,{children:t.jsx(h,{...e.toggle})})]})};function L(e){const o=c();return o==="small"||o==="medium-compact"?t.jsx(B,{...e}):t.jsx(S,{...e})}export{L as M};
@@ -1,4 +1,4 @@
1
- import{H as _,X as V,j as t,u as f,b5 as T,av as C,au as S,b9 as E,bi as k,q as x,ab as R,f as $,bj as H,bk as q,a0 as X,l as G,U as J,o as p,v as L,ao as Y,e as F,M as A,W as N,_ as U,a5 as O,ai as W,aj as Q,a6 as Z,bl as ee}from"./index-CVo0uMzO.js";import{f as v,b as te,n as g}from"./vendor-CnQcJ2Lu.js";import{I as ae,T as re}from"./ReloadCard-CZ4IXHy1-Dtuzk5Rl.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const ie=g(O)`
1
+ import{K as M,X as V,j as t,u as f,b6 as T,aw as C,av as S,ba as E,bj as k,s as x,ab as R,v as $,bk as H,bl as X,a0 as q,l as F,W as G,o as p,w as L,ao as N,m as Y,B as A,_ as J,$ as W,a5 as B,ai as Q,aj as U,a6 as Z,bm as ee}from"./index-DYVNUtTS.js";import{f as w,b as te,n as g}from"./vendor-CnQcJ2Lu.js";import{I as ae,T as re}from"./ReloadCard-EBXtqdt5-e0DLVF2o.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const ie=g(B)`
2
2
  justify-content: space-between;
3
3
  margin: 0;
4
4
  height: ${e=>e.height!=null?e.height+"px":"auto"};
@@ -8,12 +8,12 @@ import{H as _,X as V,j as t,u as f,b5 as T,av as C,au as S,b9 as E,bi as k,q as
8
8
  margin: ${p.sp2} ${p.sp0} ${p.sp2} ${p.sp0};
9
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(Z)`
10
10
  color: ${e=>e.theme.colors.champion};
11
- `,w=g.div`
11
+ `,v=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(N,{"data-testid":U("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(J,{"data-testid":W("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>n(l,r),children:t.jsxs(B,{children:[t.jsxs(v,{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(v,{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 O({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)}})}w.memo(O);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`
17
17
  display: flex;
18
18
  flex-direction: row;
19
19
  flex: 1 1 auto;
@@ -29,10 +29,10 @@ import{H as _,X as V,j as t,u as f,b5 as T,av as C,au as S,b9 as E,bi as k,q as
29
29
  height: ${p.sp4};
30
30
  `,fe=g(L)`
31
31
  margin-left: ${p.sp2};
32
- `,ye=g(Y)`
32
+ `,ye=g(N)`
33
33
  flex: 1 1 0;
34
34
  color: ${e=>e.theme.colors.primary};
35
- `,be=g(F)`
35
+ `,be=g(Y)`
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:X("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]})},I=41,D=4;function Ie({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(H,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:B,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: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(De,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,i),width:i,height:r,isDetailPage:n===!0})}const De=({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?D:2,height:n?e.length?(I+2*D)*e.length:l:l+5,barSize:n?I: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(Ie,{...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=[...G.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(J,{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=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(ve,{chartItemArray:o.chartItems,showBarHoverBackground:l,barElement:d(o.chartItems,o.chartItems[0].barKey),width:i,height:r})}const we=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:q("0,0",s[i])})]})})},ve=({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(we,{width:r/2,chartItems:e,barKey:d})}),i]})},I=41,D=4;function Ie({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(H,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:K,height:z,offset:_}=m;return t.jsx(X,{x:u+_,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(De,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,i),width:i,height:r,isDetailPage:n===!0})}const De=({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?D:2,height:n?e.length?(I+2*D)*e.length:l:l+5,barSize:n?I: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(Ie,{...e})}const Ce=w.memo(Te,M);function Se(e){if(e==null||e.length===0)return!0;let i=!0;for(const r of e)if(r.balance.available.amount!==0){i=!1;break}return i}function Ee({card:e,actions:i,data:r,dndProps:l}){const[n,o]=te.useState(r?.topExTimePeriod??"last_month"),d=[...F.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(G,{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(O,{card:e,actions:i,timeframe:n,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}w.memo(Ee);export{Se as E,Ce as I,Ee as L,O,ce as c};
@@ -1,11 +1,11 @@
1
- import{u as v,X as S,l as A,j as t,aV as B,M as u,a0 as b,aj as H,D as P,o as i,C as j,bh as z,aN as V,q as c,g as F,e as y,_ as T,af as D}from"./index-CVo0uMzO.js";import{n as l,f as M,b as o}from"./vendor-CnQcJ2Lu.js";import{E as _,I as L}from"./TopExCard-DtrsuLFD-rsSVK-ay.js";import{b as Z}from"./TimeframeSwitcher-YkFxZedG-C9WakH79.js";import{d as O}from"./NoDataTable-DF9QNT4a-DSZJ4vGD.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-CZ4IXHy1-Dtuzk5Rl.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const E="141px",I=i.sp4,N="123px",R=l(D)`
1
+ import{u as v,X as S,l as A,j as t,aW as B,B as u,a0 as b,aj as H,I as P,o as i,C as j,bi as z,aO as F,s as c,d as T,m as y,$ as V,af as D}from"./index-DYVNUtTS.js";import{n as l,f as M,b as o}from"./vendor-CnQcJ2Lu.js";import{E as Z,I as _}from"./TopExCard-BKirBv7q-BKzGhACE.js";import{b as L}from"./TimeframeSwitcher-Cop4G4gx-DupejW9U.js";import{d as O}from"./NoDataTable-BOfUxs9D-8iqVCaVk.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-EBXtqdt5-e0DLVF2o.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const E="141px",I=i.sp4,X="123px",R=l(D)`
2
2
  color: inherit;
3
3
  width: ${i.sp3};
4
4
  height: ${i.sp3};
5
5
  &:hover {
6
6
  color: inherit;
7
7
  }
8
- `,X=l.div`
8
+ `,N=l.div`
9
9
  user-select: none;
10
10
  display: flex;
11
11
  width: 100%;
@@ -18,7 +18,7 @@ import{u as v,X as S,l as A,j as t,aV as B,M as u,a0 as b,aj as H,D as P,o as i,
18
18
  &:hover {
19
19
  color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
20
20
  }
21
- `,q=l.div`
21
+ `,W=l.div`
22
22
  display: flex;
23
23
  flex-grow: 1;
24
24
  flex-shrink: 0;
@@ -30,19 +30,19 @@ import{u as v,X as S,l as A,j as t,aV as B,M as u,a0 as b,aj as H,D as P,o as i,
30
30
  min-width: ${E};
31
31
  text-align: right;
32
32
  margin-left: ${I};
33
- `,K=l.div`
33
+ `,Q=l.div`
34
34
  display: flex;
35
35
  flex-direction: row;
36
36
  flex-shrink: 2;
37
37
  flex-grow: 1;
38
38
  align-items: center;
39
- `,Q=l(y)`
39
+ `,q=l(y)`
40
40
  user-select: none;
41
41
  display: flex;
42
- min-width: ${N};
42
+ min-width: ${X};
43
43
  text-align: left;
44
44
  margin-left: ${i.sp4};
45
- `;function W({leftChevron:e,account:n,onAccountBalanceClick:s}){const a=n!=null&&n.balance!=null,r=e==="hidden",g=a?"pointer":"default",d=r===!1&&a,w=d?"pointer":"default",h=r?c[6]:c[4],m=R,{common:{strings:{empty:C}}}=u.getLocalizedStrings(),$=n?.accountDescription?n.accountDescription:C,x=n?.accountName?n.accountName:$;return t.jsxs(X,{isClickable:d,children:[t.jsxs(K,{style:{cursor:w},isClickable:d,children:[r===!1?t.jsx(m,{style:{minWidth:c[3],minHeight:c[3]}}):null,t.jsx(Q,{"data-testid":T("top-ex-account-name",x),style:{marginLeft:h},title:x,onClick:()=>{d&&n!=null&&n.balance!=null&&s?.(n)},children:x})]}),t.jsx(q,{style:{cursor:g},children:t.jsx(J,{isClickable:a,onClick:()=>{n?.balance!=null&&s?.(n)},children:b("0,0",n?.balance.available)})})]})}const G=l.div`
45
+ `;function G({leftChevron:e,account:n,onAccountBalanceClick:s}){const a=n!=null&&n.balance!=null,r=e==="hidden",g=a?"pointer":"default",d=r===!1&&a,w=d?"pointer":"default",h=r?c[6]:c[4],m=R,{common:{strings:{empty:C}}}=u.getLocalizedStrings(),$=n?.accountDescription?n.accountDescription:C,x=n?.accountName?n.accountName:$;return t.jsxs(N,{isClickable:d,children:[t.jsxs(Q,{style:{cursor:w},isClickable:d,children:[r===!1?t.jsx(m,{style:{minWidth:c[3],minHeight:c[3]}}):null,t.jsx(q,{"data-testid":V("top-ex-account-name",x),style:{marginLeft:h},title:x,onClick:()=>{d&&n!=null&&n.balance!=null&&s?.(n)},children:x})]}),t.jsx(W,{style:{cursor:g},children:t.jsx(J,{isClickable:a,onClick:()=>{n?.balance!=null&&s?.(n)},children:b("0,0",n?.balance.available)})})]})}const K=l.div`
46
46
  display: flex;
47
47
  width: 100%;
48
48
  flex-direction: column;
@@ -56,7 +56,7 @@ import{u as v,X as S,l as A,j as t,aV as B,M as u,a0 as b,aj as H,D as P,o as i,
56
56
  width: 100%;
57
57
  height: 1px;
58
58
  background-color: ${e=>e.theme.colors.grey3};
59
- `;function ee({accounts:e,onAccountBalanceClick:n}){const s=(a,r)=>a.length>1&&r<a.length-1;return t.jsx(G,{children:e?.map((a,r)=>t.jsxs(U,{children:[t.jsx(W,{leftChevron:"collapsed",account:a,onAccountBalanceClick:n}),s(e,r)===!0?t.jsx(Y,{}):null]},r))})}const te=M.memo(ee),ie=l.div`
59
+ `;function ee({accounts:e,onAccountBalanceClick:n}){const s=(a,r)=>a.length>1&&r<a.length-1;return t.jsx(K,{children:e?.map((a,r)=>t.jsxs(U,{children:[t.jsx(G,{leftChevron:"collapsed",account:a,onAccountBalanceClick:n}),s(e,r)===!0?t.jsx(Y,{}):null]},r))})}const te=M.memo(ee),ie=l.div`
60
60
  margin: ${i.sp0} ${i.sp0} ${i.sp6} ${i.sp0};
61
61
  background-color: inherit;
62
62
  width: 100%;
@@ -82,7 +82,7 @@ import{u as v,X as S,l as A,j as t,aV as B,M as u,a0 as b,aj as H,D as P,o as i,
82
82
  flex-basis: 100%;
83
83
  flex-direction: column;
84
84
  `,ce=l(y)`
85
- color: ${F.alert};
85
+ color: ${T.alert};
86
86
  margin: ${i.sp3} ${i.sp0} ${i.sp5} ${i.sp0};
87
87
  `;function de(){switch(v().mode){case"light":return t.jsx(oe,{width:"100%",preserveAspectRatio:"none"});case"dark":default:return t.jsx(ne,{width:"100%",preserveAspectRatio:"none"})}}function pe({title:e}){return t.jsxs(re,{children:[e!=null?t.jsx(ce,{children:e}):null,t.jsx(ae,{children:t.jsx(se,{children:t.jsx(de,{})})})]})}const f={wrapperPadding:new j(c[3],c[3],c[8]),chartContainerMinHeight:new j(c[12],c[11])},he=l.div`
88
88
  display: flex;
@@ -119,7 +119,7 @@ import{u as v,X as S,l as A,j as t,aV as B,M as u,a0 as b,aj as H,D as P,o as i,
119
119
  `,ge=l.div`
120
120
  height: ${i.sp9};
121
121
  color: ${e=>e.theme.colors.primary};
122
- `,we=l(z)``,Ce=l(V)`
122
+ `,we=l(z)``,Ce=l(F)`
123
123
  padding-left: ${i.sp3};
124
124
  `,$e=l.div`
125
125
  display: flex;
@@ -129,4 +129,4 @@ import{u as v,X as S,l as A,j as t,aV as B,M as u,a0 as b,aj as H,D as P,o as i,
129
129
  margin-bottom: ${i.sp5};
130
130
  `,ye=l.div`
131
131
  display: flex;
132
- `;function De(e){const n=v(),{report:s,onTimeframeSelectionChanged:a,onAccountBalanceClick:r,onBackClick:g}=e,d=S(),w=[...A.TOP_EX_TIME_PERIODS],h=_(s.topExpenses.accountsOrdered),{topExTimePeriod:m,topExpenses:C}=s,$=C.total,x=p=>{e.autoCompleteData.autoCompleteText!=null&&e.analytics?.trackSearch(P.Event.search,"Top Expenses",p.type,p.name,e.autoCompleteData.autoCompleteText),e.autoCompleteActions.onAutoCompleteEntity?.(p)};return t.jsxs(he,{children:[t.jsx(B,{source:"TopExDetailPage",title:u.getLocalizedStrings().reportTitleById.top_expenses,backgroundColor:n.colors.grey5,onBackClick:g,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:x}}}),t.jsxs(me,{windowSize:d,children:[t.jsx(ue,{children:t.jsx(xe,{children:t.jsx(Z,{timeframes:w,selectedTimeframe:m,onTimeframeSelectionChanged:p=>{a?.(p)}})})}),h?null:t.jsxs(ge,{children:[t.jsx(we,{children:b("0,0",$)}),t.jsx(Ce,{children:u.getLocalizedStrings().reports.detail.topEx.insightLabel})]}),h?t.jsx(ye,{children:t.jsx(pe,{title:`${u.getLocalizedStrings().chartCard.no_data_available_for} ${u.getLocalizedStrings().timeframe[m]}`})}):t.jsx($e,{windowSize:d,children:t.jsx(H,{style:{height:"fit-content"},children:({height:p,width:k})=>t.jsx(L,{report:s,timeframe:m,showBarHoverBackground:!1,width:k,height:p,isDetailPage:!0})})})]}),t.jsx(fe,{windowSize:d,children:h?t.jsx(O,{}):t.jsx(le,{report:s,onAccountBalanceClick:r})})]})}export{De as default};
132
+ `;function De(e){const n=v(),{report:s,onTimeframeSelectionChanged:a,onAccountBalanceClick:r,onBackClick:g}=e,d=S(),w=[...A.TOP_EX_TIME_PERIODS],h=Z(s.topExpenses.accountsOrdered),{topExTimePeriod:m,topExpenses:C}=s,$=C.total,x=p=>{e.autoCompleteData.autoCompleteText!=null&&e.analytics?.trackSearch(P.Event.search,"Top Expenses",p.type,p.name,e.autoCompleteData.autoCompleteText),e.autoCompleteActions.onAutoCompleteEntity?.(p)};return t.jsxs(he,{children:[t.jsx(B,{source:"TopExDetailPage",title:u.getLocalizedStrings().reportTitleById.top_expenses,backgroundColor:n.colors.grey5,onBackClick:g,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:x}}}),t.jsxs(me,{windowSize:d,children:[t.jsx(ue,{children:t.jsx(xe,{children:t.jsx(L,{timeframes:w,selectedTimeframe:m,onTimeframeSelectionChanged:p=>{a?.(p)}})})}),h?null:t.jsxs(ge,{children:[t.jsx(we,{children:b("0,0",$)}),t.jsx(Ce,{children:u.getLocalizedStrings().reports.detail.topEx.insightLabel})]}),h?t.jsx(ye,{children:t.jsx(pe,{title:`${u.getLocalizedStrings().chartCard.no_data_available_for} ${u.getLocalizedStrings().timeframe[m]}`})}):t.jsx($e,{windowSize:d,children:t.jsx(H,{style:{height:"fit-content"},children:({height:p,width:k})=>t.jsx(_,{report:s,timeframe:m,showBarHoverBackground:!1,width:k,height:p,isDetailPage:!0})})})]}),t.jsx(fe,{windowSize:d,children:h?t.jsx(O,{}):t.jsx(le,{report:s,onAccountBalanceClick:r})})]})}export{De as default};