@zeniai/web-cockpit-ui 1.14.93-dev → 1.14.94-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 (284) hide show
  1. package/dist/assets/{ACHDetailsPage-Cmt4zlsa-CVV8HYnx.js → ACHDetailsPage--3bIj7tB-3F9dwMR-.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Bll3cTy1-gL3wACpX.js → AIPerformancePage-DBCeKLy6-DoFLATw5.js} +1 -1
  3. package/dist/assets/AccountInfoPage-CITo61GF-CgwHepBH.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-9wbA8niq-Bqglb0N2.js → AccountInfoPageContent-Zb49sPy6-B7XnQcW_.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-CLvVkdLW-bPK5I-r7.js → AccountLockedInfoModal-BcokXO2D-CS3sAEh5.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BXa1TZA0-CJ_GlXhF.js → AccountReconDetailsDrawerPage-BWydimgX-dIMZ3KX3.js} +3 -3
  7. package/dist/assets/{AccountRow-Ba39SxP8-8PYcW3Va.js → AccountRow-XnGMYfcj-CkjY0dM_.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-W5TW8HPU-Cm5YfN59.js → AccountsPromoCardStack-BQeRFxKs-CSqaKnps.js} +13 -13
  9. package/dist/assets/{AddAddressForCardDrawer-nEnaGKnm-DN6yVFPQ.js → AddAddressForCardDrawer-DOXNDswm-JiOm9hW4.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CQYHG0Yj-CP1osDBN.js → AddToWalletPage-D4yEGRLZ-9f9p7H0-.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BWCU11pF-MZUqlZXC.js → AgingReportsPage-Bos6Ptg1-u0-8eZRf.js} +3 -3
  12. package/dist/assets/{AllUserItems-DPxoQeZA-Fd0FWod6.js → AllUserItems-JjQPLLSr-CHIofzkk.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-cslGsO08-CvebivaV.js → ApAgingDetailPage-Y4VWhY78-OPeQ-zhp.js} +2 -2
  14. package/dist/assets/{AppBasePage-BZINcjPW-DJOgvT_q.js → AppBasePage-CaAadL3t-B5dacIto.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-V7jCH_90-Ck_yeGZ4.js → AppDrawerContent-BKsLlcGq-C-I5tgBW.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-BC6CLesU-BKNNkRpO.js → ApprovalRulesSettingsPage-sHR8nTbf-CvweKKJv.js} +1 -1
  17. package/dist/assets/{ArAgingChart-C7VtW0AI-Co8wpWo7.js → ArAgingChart-Cn2M7EaL-CioxnnU1.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-Bttq4jQR-BeQILYq-.js → ArAgingDetailPage-vdpIT5_o-BuX_9MW_.js} +5 -5
  19. package/dist/assets/{AttachmentView-BijZrB02-BJhcTpzV.js → AttachmentView-QyMOK54a-_Wag7_iK.js} +1 -1
  20. package/dist/assets/{BankAccountSection-De0m3zrf-DJo0ErGm.js → BankAccountSection-BexfgJ02-CJbDgNfM.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-DoqOr9h0-CysUjzfB.js → BankAccountWarningSection-MLEqvFgR-BxBAHmR8.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BaySatUW-BFaS82zx.js → BankConnectionsSettingsPage-DP9KRNaJ-CmsjOmvw.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Bg_3myu0-BcOsOHp0.js → BillDetailPage-jNE4rg05-BvKca9U-.js} +1 -1
  24. package/dist/assets/BillPayApprovalRuleDetailPage-C8hROA4_-CB0BAa6k.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-BQywFC8e-BuMp1BIY.js +235 -0
  26. package/dist/assets/{BillPayPromoPage-SUtLQemf-YRwlMQqq.js → BillPayPromoPage-D2OmNki0-COFGRb92.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BbIjaE2K-BvM1AO08.js → BillPaySetUpPage-C81gx8-a-DAG36bWE.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-Bmd6ET1I-D1Hos3cN.js → BillingSettingsPage-CIUisdZK-mQpXJmxB.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CYSMvAbC-CCvMSRtJ.js → BillsBulkReviewDrawerPage-DqjW9AqP-D7YAQNvr.js} +1 -1
  30. package/dist/assets/{BoxItem-B8HVRhgE-Bev68PFI.js → BoxItem-YBSbdQ7d-D8N3mTZg.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Cn1b1hk4-CAZR1TOe.js → BusinessVerificationPage-DeJbdegJ-n2Ac3MMR.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BcJnpRxI-D1zdlj5r.js → CardNumberSubText-Bq9G3f38-BaBJQ2OX.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BkIotpWn-DxPDsNjO.js → CashbackDetailPage-C-0eaJVF-Bmh2Azca.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-kKKhppzB-DtYb-jra.js → ChargeCardDetailPage-CBB5up99-C7PliMpM.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-CP778-GK-CTP7-db-.js → ChargeCardListPage-52TDMfjH-XC6zwUdm.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DBryLHST-Ce2gmrfZ.js → ChargeCardListTable-BdHKiQtr-BoKeTaBP.js} +11 -11
  37. package/dist/assets/ChargeCardPromoPage-D43dBHNx-Dmge2_bT.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-m8dUXi38-BJz_Xnlk.js → ChargeCardSetupPage-CgzI8qMq-8aOP9gWV.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-Dq5NpUXk-Bke0Yjm9.js → ChargeCardStatementsPage-C1PYOcuH-DSHTFs6J.js} +6 -6
  40. package/dist/assets/{CheckDepositDrawerPage-BJQ2GSoP-CvcGnuco.js → CheckDepositDrawerPage-CrYCkxKl-DX8fhtud.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-l16Ixpgb-BS0sBPj9.js → CollapsableReportTable-CvXUxopt-CWXKqXg0.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-mKcrRkb5-BdmL4WQb.js → CompanyOfficerDetailsSection-DYAECWJz-C-5qszuR.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-DUwjb7jY-D94p2vYM.js → CompanyPassportCard-CLoIl-hE-CX-RLpgg.js} +2 -2
  44. package/dist/assets/{CompanyPassportPage-mQ_Le1I1-BsfzlRNE.js → CompanyPassportPage-B3opPlfY-CffcaeWU.js} +13 -13
  45. package/dist/assets/{CompleteProfile-CesiGAex-BxV2T4kD.js → CompleteProfile-DKCP0ZOq-CCpcvdBI.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-CXF_94LB-B61erBlR.js → ConfettiBurst-Ccs36Y8q-BoEyotYe.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-BMVOhEEP-okcAo0FU.js → CreateOrEditVendorPage-CC5jroI_-C5qdwHAS.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-Cl4vJBjO-BN2fXeeY.js → CreditCardPaymentDrawerPage-BNSfaY2k-4QGMMrZP.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-CvnrYpdi-Bx3ura4E.js → CurrencySelectField-CfFOlEnM-CfS03uxO.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-CmengYgm-DwWvQDwP.js → CustomerOnboardingActivationPage-Cac_xdpd-DG_j3gPE.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-DOZu4r0V-CARfFPsC.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-hF2fjE7f-Bx4vnxk_.js → CustomerOnboardingDetailPageSkeleton-Cktian-X-Ch6gtFyy.js} +6 -6
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-B-pbVz1_-Bu3QH6hN.js → CustomerOnboardingNoStepsPage-BVW1Hd-G-CEYYL4XK.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-CUj-SOSh-DqZnrHrN.js → CustomerOnboardingPage-CSTODxiL-B0YN-L_5.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-DLJg9lqc-B7ctGtPH.js → CustomerOnboardingProductSuitePage-dcjDfxm3-DmmzRM-K.js} +1 -1
  56. package/dist/assets/{Dashboard-DUBT_4AU-BQQLhc7F.js → Dashboard-DHwjF8AD-euUt_v4D.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-cTPn6w4q-BsaoYjkr.js → DashboardReportPage-BbFqvGcc-Bm6bvb04.js} +10 -10
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation--y1-phUW-DGEiib0J.js → DashboardSidebarBackgroundAnimation-Aepv0x8n-BRMC8BKu.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-BJ6rNbQF-DcQ3w2ay.js → DepositAccTransactionItem-B6bYU73--Bk-F2M5u.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-BXu7yVC4-BqrqxoR4.js → DepositAccTransactionListPage-DdCwnDuw-DoIQ6X_F.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-D5wDMrfR-C5cM-TE-.js → DomesticWireDetailsPage-DXlw9Ok--f2WgPebu.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-BF8Uzj65-BjVIvIOE.js → DownloadOverlay-KKP34aVT-GDmhikON.js} +1 -1
  63. package/dist/assets/{DrawerPage-4QqiD5ag-BNPe32xq.js → DrawerPage-DXGL0DM7-Bc-jzyXP.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-BFROUzlu-DwFofRms.js → EditPeoplePage-DWmJ1PpR-B171l_6f.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-Bz32u6U5-D6GoDZH_.js → EditReimbursementDetailPage-B_5V1IzS-CpmdAjAk.js} +1 -1
  66. package/dist/assets/EntityDetailPage-BUzV8V9O-CDFw7Jz4.js +18 -0
  67. package/dist/assets/{EntitySummarySection-0nKZeBKn-BkqQH4-k.js → EntitySummarySection-CdjupOWB-Bdi92weZ.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-Dvyn5ovf-DA904IZ7.js → ExpenseAutomationOverviewPage-Bx47Uuzu-r5x-Txwb.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-DPmIOATd-E0cwlhE5.js → ExpenseAutomationPage-aVCW740N-y9h0gDFl.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-DGTh3qGM-CBuhnCa1.js → ExpressPayPage-xIDJP3---15Mg_KmG.js} +8 -8
  71. package/dist/assets/{FeaturePreviewPage-CHUVkqak-Bv1bUX1B.js → FeaturePreviewPage-BeGkbhpj-XrVvhthA.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-C_pWSlPc-DWF54WG6.js → FollowStepsSection-9Bp032CO-BrD2qQBR.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-BjPOnObQ-CbXiHvNN.js → GlobalReviewListPage-BKgbn5KU-DMdX8GV6.js} +1 -1
  74. package/dist/assets/{InformationCardStack-DvFu-gjh-DGBl4kd-.js → InformationCardStack-DR09Frl5-og6T9hD3.js} +6 -6
  75. package/dist/assets/{InsightsCardStack-CR3wSnhE-CCTCkrt4.js → InsightsCardStack-Bs9n7ddB-B2Kwtl5L.js} +5 -5
  76. package/dist/assets/{InsightsSection-DCFjudcA-7O17fZbk.js → InsightsSection-Bt4Z2mKl-xYOXRNGL.js} +2 -2
  77. package/dist/assets/{IntegrationsSettingsPage-DpPc99qg-BuRPrwyt.js → IntegrationsSettingsPage-Ce3RYvgj-Bxed6b4a.js} +2 -2
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-xXEk6Ubv-DgeDkVIK.js → InternationalWireSwiftDetailsPage-Dl6FL0Lc-BaPHN9iA.js} +4 -4
  79. package/dist/assets/{InternationalWireVerificationPage-uh0GqYQA-9ZEgxwG_.js → InternationalWireVerificationPage-MYSltOya-BZ90_Q4i.js} +5 -5
  80. package/dist/assets/{InviteFormPage-5xqk5ISe-Bbb5YAD8.js → InviteFormPage-C0ezbQfC-ClPGWuNA.js} +1 -1
  81. package/dist/assets/{InvitePageListView-CpmTnQLj-CTufHHPe.js → InvitePageListView-SMhlCNKA-B22x1b9R.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-BeCWfFpI-DBINJPSA.js → InvitePeoplePage-Dna0gg0J-kTwq0Am9.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-BvaKEakI-Cgqd0lG_.js → InvoiceUploadSection-QGU5U32X-Bt28YEXu.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-Bomvo_PH-CiqvhZJZ.js → IssueChargeCardPage-jai5Nd4c-BHDpP46s.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-b4zlBP-g-DPs_zAUA.js → LabeledAddressValue-cvWoRExB-DOimN9ER.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DpcuqwLy-CTnD7CIG.js → LabeledAddressValueField-BewnvHGP-Cy17-5a4.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-BTjbeJMZ-ByFU_udW.js → LabeledControlledCheckBoxField-DFKeD5HK-jfbQYMID.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-D_oWjB4_-A2URoXC_.js → LabeledCreatableSingleSelectField-nc8iZ1C1-CV4i9q1e.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-dtnakMLl-DM4CLrZI.js → LabeledDocumentField-DmRNRSkb-CDplxK9C.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-DDtxGo1u-9ainO5Wl.js → LabeledDropDownFormattedTextField-BP1jmZf7-D3OI0FNX.js} +1 -1
  91. package/dist/assets/{LabeledText-CUs3VIof-3boaO8Y1.js → LabeledText-CIupsEGL-vKnChPk0.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BusH2qnZ-GKSXWTga.js → LabeledUserSingleSelectWithSubtitlesField-CeZEGuNW-DnFoIROQ.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-DYkmOsOP-Dg0kuJ4H.js → LabeledZeniRolesDropDownField-CDmiz3py-JlLIrijY.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-DbP6jfzn-BtGeDf5_.js → LinkJETransactionPage-BtUXXguK-BX6h2lWE.js} +1 -1
  95. package/dist/assets/{LockCardPage-CWEZyzEM-Bg4PM8JQ.js → LockCardPage-TzEwLGD1-Cmclt9pm.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-BQ9JPBTS-DRn4mn9-.js → LowBalancePopup-BWD6Kz-D-JhqQW5Xo.js} +1 -1
  97. package/dist/assets/MagicLinkACHDetailsPage-CZQ8tUTD-Da6izWW_.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-DHZY9sKi-DpYSqAI_.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-BJtMjz1M-Dw8wDVtb.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-DU1RM5NI-Wq9yOHXi.js → MagicLinkSuccessPage-DQAUDzEV-D_oG7NAX.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-RWEjrx8m-CX8Fw-B8.js → MagicLinkTitleSection-JcGSlbn4-wY3-HkBx.js} +1 -1
  102. package/dist/assets/MailingDetailsSection-Ch5XvR8o-DHMj4gz4.js +21 -0
  103. package/dist/assets/{Menu-BTZYMOTT-CKMXXApd.js → Menu-B05IRjpP-oB6ZIzEi.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-DufaL9n8-M4dyrfVV.js → MyBankConnectionsSettingsPage-D2a7LgLg-CVhBWNpq.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-DwCUyRec-SM92wYsw.js → MyPendingActivationChargeCardListPage-pDexjhqy-DP1wPJrc.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-geduKqxy-CauaXJ2g.js → MyProfileSettingsPage-CRkrD2Bn-FBlqtq-o.js} +2 -2
  107. package/dist/assets/{NavBarWithPicker-edkm8kW--DTJVRU93.js → NavBarWithPicker-9HjZDzt5-FKds7wXE.js} +1 -1
  108. package/dist/assets/{NavigationArrow-DAOz2wst-CzpVYMv0.js → NavigationArrow-CgBj8o4H-BlFGUhy1.js} +1 -1
  109. package/dist/assets/{NavigationDots-Dm8SYcdL-CXSz5QAZ.js → NavigationDots-BcSXYcwF-cwaSYMDv.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-enaZFSVb-D5ALf38h.js → NewGlobalMerchantPage-Dv9JrWDT-BA8nAIgM.js} +1 -1
  111. package/dist/assets/{NoDataChart-BIcLmdso-V1__FO4W.js → NoDataChart-tkUQHi-b-C5CjlXPt.js} +1 -1
  112. package/dist/assets/{NoDataTable-C9ywvwy4-CbJRpj1w.js → NoDataTable-DHZ1gQeV-DFGtLWam.js} +1 -1
  113. package/dist/assets/{NotFoundPage-B0Pfc4vD-0nVsRFSV.js → NotFoundPage-D59UVi8i-5MNYbcKK.js} +7 -7
  114. package/dist/assets/{NotificationSettingsPage-Di4KhoPI-Zq8167Bo.js → NotificationSettingsPage-xVOogGxf-BuNP_ADs.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-CHb7phwi-CuAMA5zK.js → NotificationsListConfig-CkDLXlK_-Dyu4QQzt.js} +1 -1
  116. package/dist/assets/{NotificationsPage-B4KMZZ0V-CdnEBa77.js → NotificationsPage-C8zx5kJx-Dl-4CqVn.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-CAxLWg7x-CVAp3gyR.js → OpExByVendorPage-BaUEnLMo-DqlhH9_M.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-C0naTs3U.js → OverlayContainerPage-Daz3A7cI-CjSleqHo.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-Dx56-ypM-CahTbCAI.js → PandLWithForecastPage-BKWEOfwP-voM5FybB.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-C8QwChEK-DSZP0_gt.js → PaymentAccountSetupBillingAddressSection-Ddm0Q_3J-iDE-MOKu.js} +1 -1
  121. package/dist/assets/{PeoplePage-CjD6uKA--DQJyasjD.js → PeoplePage-ChBsx1YC-C_Fl1jcc.js} +1 -1
  122. package/dist/assets/Preview-DWEhp9iP.js +1 -0
  123. package/dist/assets/{ProductsCarousel-DzOaqLVq-BtBP3iUE.js → ProductsCarousel-CaOQupY4-Bxf4CH6R.js} +1 -1
  124. package/dist/assets/{PromoBaseCards-B1h9AEH0-CHWZv_Gb.js → PromoBaseCards-DeJ4J5Lp-BRCdntYT.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog-Bv6unk3C-C69fuiCc.js → QBOConnectionDialog--nz5v12t-BznyDbQp.js} +1 -1
  126. package/dist/assets/{QBOSetupSection-BTjj7g98-CXsc6nTM.js → QBOSetupSection-DQTH1dAT--WL2Dx1Z.js} +1 -1
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-BottOscg-CAHU3Hml.js +24 -0
  128. package/dist/assets/ReimbursementApprovalRulesPage-B46nrYDg-DD0XiWBs.js +237 -0
  129. package/dist/assets/{ReimbursementDetailPage-DnXsG55s-DO7QVibn.js → ReimbursementDetailPage-DvSn2LUG-B9MjjUuK.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-Di39wgvD-CwoSxp24.js → ReimbursementPromoPage-DRItpn0n-DjtSA1Xj.js} +1 -1
  131. package/dist/assets/{ReimbursementSetUpPage-CT5bs4wM-CImglJgz.js → ReimbursementSetUpPage-CRnE1XYI-C2_UvSyd.js} +4 -4
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BcB8hTar-D2swNEDZ.js → ReimbursementsBulkReviewDrawerPage-C6Cn3AOg-WyMbQmuf.js} +1 -1
  133. package/dist/assets/{ReloadCard-BGPtXAV7-D43T0ICm.js → ReloadCard-CRQf0INS-CM9HcBcK.js} +1 -1
  134. package/dist/assets/{ReportTableViewSelector-gEKTiiSk-DFp8GlM2.js → ReportTableViewSelector-Dj9qmDS0-C79_BFmS.js} +4 -4
  135. package/dist/assets/{ReportsPage-Ctvnzlk1-DLJ23fuU.js → ReportsPage-BJmkDtu3-BHlyDsBo.js} +5 -5
  136. package/dist/assets/{RevenueChart-D1PfVLk0-DHVFjjTE.js → RevenueChart-LvTct9qg-CqMmRuwP.js} +14 -14
  137. package/dist/assets/{ReviewDetailsPage-Ynw6pln--BjtdFL4i.js → ReviewDetailsPage-CDWKsdgl-_lQ4M5E9.js} +52 -52
  138. package/dist/assets/{ReviewOverlay-DQZwNpFY-DMkxDhbs.js → ReviewOverlay-Bh8LAnRM-CyjKd25e.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-DbQ4ezrP-Dd2VpMcB.js → RoleWithToolTip-BHHwWcYs-BR4B_g9G.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlqQBt-s-drLmv8lF.js → ScheduleDetailsFixedAssetsPage-C_nki9xG-C_v2_vCQ.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsPage-CrVetPy7-CWE6_gjF.js → ScheduleDetailsPage-BXmAqbuh-Gg4bs2eh.js} +1 -1
  142. package/dist/assets/{ScheduleSequenceTable-B7pQ00z8-CEVjTUeV.js → ScheduleSequenceTable-BePVgFIB-BxJLrQ2I.js} +1 -1
  143. package/dist/assets/{ScreenRoutes-Sl9iaV1P.js → ScreenRoutes-xhTHWLYi.js} +1 -1
  144. package/dist/assets/{SetUpAccountSection-BAsI7p1f-Dy9q8TNa.js → SetUpAccountSection-B1mXaFmw-BQBAmCi3.js} +1 -1
  145. package/dist/assets/{SignIn-CE6gxhI3-CtZacIY2.js → SignIn-B8qL3jmy-CehNtVNp.js} +1 -1
  146. package/dist/assets/SignInScreen-Cp3MQQbP.js +1 -0
  147. package/dist/assets/SpendManagementListViewPage-D-XwxN9o-C4dAHfpb.js +123 -0
  148. package/dist/assets/SpendManagementPerTabPage-CF7D2umh-zU9LbhKc.js +754 -0
  149. package/dist/assets/{SpendManagementSection-rHLuZG8_-UxYLxpbV.js → SpendManagementSection-CIqYxYxX-BVCp77Yh.js} +1 -1
  150. package/dist/assets/StatementItem-Cj9_LMwP-iOXv6bUO.js +31 -0
  151. package/dist/assets/{StatementsPage-5oimgNHp-D8qK05-P.js → StatementsPage-CB8LocUZ-e2Dh9l46.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-CLCkXs_4-DhXpfaBL.js → StatusSwitcher-DetjWSRH-Q0yUcFVR.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-DDR7LrDO-DpWQK8Dj.js → SubTabSwitcher-DNqrmpKa-CF4L1Kwg.js} +1 -1
  154. package/dist/assets/{SummaryCard-Cg5UVud3-DPRQua4j.js → SummaryCard-CxlxmBvk-B-SyMhB-.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-6_zt2ePp-BeO6Q35e.js → TaskManagementPage-zHTW1LJ--Dqvt7j5c.js} +15 -15
  156. package/dist/assets/{TimeRangeSwitcher-BTx3d66N-DkQSngDA.js → TimeRangeSwitcher-8D64-X4u-DSKeQDPn.js} +11 -11
  157. package/dist/assets/{TimeframeSwitcher-BkGiMDhd-Dhql0xBj.js → TimeframeSwitcher-YicRGCkf-D-mysr-q.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-M554ai9V-DeR389hA.js → TimeframeSwitcherWithToggle-mP6ezXyM-B9RCQQMF.js} +3 -3
  159. package/dist/assets/{TopExCard-ym2uAvUy-DkU_w9K-.js → TopExCard-BDEoKFUO-Cqks_MY0.js} +10 -10
  160. package/dist/assets/{TopExDetailPage-DU1Qj5ea-DhOfzSmR.js → TopExDetailPage-CLUf9sHg-DjgQ-dJN.js} +8 -8
  161. package/dist/assets/{TransactionDetailPage-BHyBhrM7-B3UILKwv.js → TransactionDetailPage-C-GKDIp2-oZAwumRI.js} +1 -1
  162. package/dist/assets/{TransactionList-CIbSavhJ-Dp71olkE.js → TransactionList-BqQVYWs_-CYNYQaes.js} +1 -1
  163. package/dist/assets/{TransactionListBig-kC4b3DAu-DjTE72OH.js → TransactionListBig-CDgdq8hU-BFzaq7Iz.js} +1 -1
  164. package/dist/assets/{TransactionListPage-Ci98GcF7-ClRcNxWS.js → TransactionListPage-CyGTX1pW-Cj8J8ecy.js} +2 -2
  165. package/dist/assets/{TransactionVendorDetailPage-DI4kq_vO-D-o6bFok.js → TransactionVendorDetailPage-NKocfHyN-C_fZiZg1.js} +1 -1
  166. package/dist/assets/{TransferDrawerPage-B342yNDJ-CsWgYoId.js → TransferDrawerPage-qNh4Fww2-CNaDS1Go.js} +1 -1
  167. package/dist/assets/{TreasuryOverviewPage-cvOuWLTK-CefWRHUR.js → TreasuryOverviewPage-D1RQYkoX-CQ3CkOfI.js} +1 -1
  168. package/dist/assets/{TreasuryPromoPage-DyseS2l1-PYUqYVga.js → TreasuryPromoPage-najiDjYG-CYR1JzfB.js} +1 -1
  169. package/dist/assets/TreasuryStatementsPage-CRR-Df5x-DF9p1Ylz.js +58 -0
  170. package/dist/assets/{TreasuryTaxLetterPage-DjV36uFi-ebsJYDfS.js → TreasuryTaxLetterPage-vKXs7eCx-B9A61B43.js} +2 -2
  171. package/dist/assets/{TrendChart--yie2Xkp-B3lZJMT5.js → TrendChart-DtubLSsW-C9uVL_nf.js} +2 -2
  172. package/dist/assets/{TrendWithTransactions-DVLdmgtU-Cv22_4bm.js → TrendWithTransactions-DB5hmoGk-BT0bTVEH.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-CRypWMwQ-DzPLYLFI.js → UncategorizedAccountsMappingPage-ldBfy4n9-BSd43gPp.js} +5 -5
  174. package/dist/assets/{UnitIntegrationPage-DU6Luklp-CVEu7KVf.js → UnitIntegrationPage-DPHlAm3E-k8T3V2L9.js} +1 -1
  175. package/dist/assets/{UploadAdditionalDocumentOverlay-jNiTn6qG-D_tolxLp.js → UploadAdditionalDocumentOverlay-C2kqDNTp-CLCo9ZjN.js} +1 -1
  176. package/dist/assets/{Vendor2FAPopup-BNA3GtkO-ClfV14L3.js → Vendor2FAPopup-_DrX-sZ2-C-ynpNGr.js} +1 -1
  177. package/dist/assets/VendorACHDetailsPage-ims8AKLH-Ckg60c1E.js +1 -0
  178. package/dist/assets/{VendorDetailPage-B6s7kOX--Cl8uI1J2.js → VendorDetailPage-dh7UBGAL-gseaFndd.js} +1 -1
  179. package/dist/assets/VendorDomesticWireDetailsPage-C_28sDKW-Ck0eXnl0.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-DiVBfWTv-CQg0-jaT.js → VendorFiling1099EditablePage-CGEA0mkh-DtfOreYr.js} +1 -1
  181. package/dist/assets/{VendorFirstReviewPage-CuM6lK63-QOnJj4dm.js → VendorFirstReviewPage-BGktoc9W-h6QMXY4Y.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireDetailsPage-CcTippeu-CFZ4Mir_.js → VendorInternationalWireDetailsPage-DidLa6Yx-BHcPntRA.js} +1 -1
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-YqE835gy-EXKEVzqz.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection-zeM6PeT4-zwdhVM2D.js → VendorsAccountsSection-BtjrsclQ-CCbXB7Vr.js} +1 -1
  185. package/dist/assets/{VerifyDevice-iKowLq-3-BWk2f90N.js → VerifyDevice-DkibYc6v-B-zCOUZe.js} +7 -7
  186. package/dist/assets/{VideoPlayer-CN28Ho6V-t5x8EBh8.js → VideoPlayer-C8VeeJIx-Bo3SMitQ.js} +2 -2
  187. package/dist/assets/{VideoPopup-CfYmxIk4-BV_-FDHV.js → VideoPopup-aA7dkXbZ-BQm8xqng.js} +4 -4
  188. package/dist/assets/{WarningsDrawerPage-C4jqovLJ-DvCRmdFF.js → WarningsDrawerPage-CA0EogPY-DmMnG6Y0.js} +1 -1
  189. package/dist/assets/{ZeniAccountDetailPage-M045ginI-CIh86zMI.js → ZeniAccountDetailPage-Z7ZXcJ98-BoMU7_sz.js} +1 -1
  190. package/dist/assets/{ZeniAccountListViewPage-C-eOjorO-Dort1_5m.js → ZeniAccountListViewPage-CllLl65J-C_iRgCJw.js} +1 -1
  191. package/dist/assets/{ZeniAccountNavBarPieces-Dz9ssqU1-7L41-5ss.js → ZeniAccountNavBarPieces-CHXbVcQE-vXZ3dsMQ.js} +1 -1
  192. package/dist/assets/{ZeniAccountPromoPage-BxzNy8wF-ClpXMz8i.js → ZeniAccountPromoPage-DAtyHUfj-BSm4TiYG.js} +1 -1
  193. package/dist/assets/{ZeniAccountSetupPage-zWKttj2U-Co7Yvnyy.js → ZeniAccountSetupPage-Cy6_fMVK-C8cnPKU9.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-2oeOVh0P-DJaD_9oR.js → ZeniCopyright-D5JfDH77-jPfeHSFD.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-BADEO33A-DpMPk5Vb.js → ZeniTransferAmountSlider-Bk2gg7DY-CUDntV_F.js} +1 -1
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-eMWALCp1.js → add-to-wallet-DgdBD8_G-C5IoXTpL.js} +1 -1
  197. package/dist/assets/{analytics-DCCTWnnc.js → analytics-aL6KvWIc.js} +1 -1
  198. package/dist/assets/{analyticsHelper-C2XPB_2A-DuJwOZQc.js → analyticsHelper-Cnk2OUU2-obG2D2We.js} +1 -1
  199. package/dist/assets/{analyticsHelper-DnU5BAvo.js → analyticsHelper-KEHx3dOo.js} +1 -1
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-9nM57KjQ.js → arrow-south-east-round-PEovUgvH-TX5SKWFw.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-DeA5cpdU.js → auto-transfer-rule-mbafm5D3-Bk6z9OTx.js} +1 -1
  202. package/dist/assets/{chartTypes-PZyiFZrr-DoI-jL6q.js → chartTypes-CMIndIax-BEMOmico.js} +1 -1
  203. package/dist/assets/{commonDimensions-C_y3LIE8-X_N9ThEv.js → commonDimensions-DSS8XDHZ-BEyzahKx.js} +1 -1
  204. package/dist/assets/{constants-COrMNehl.js → constants-BPxZQJPZ.js} +1 -1
  205. package/dist/assets/{core-D2k9JfRf.js → core-DesIUmVX.js} +1 -1
  206. package/dist/assets/{dash.all.min-wMAz1qMX.js → dash.all.min-C390RKsv.js} +1 -1
  207. package/dist/assets/{detailCommon-PTd6DPpO-o02U7S0B.js → detailCommon-DWd4agOz-DxO_ewED.js} +3 -3
  208. package/dist/assets/{downloadPdf-BdoS2D6l-B5cqxKI-.js → downloadPdf-BCoq8NLc-6NV7wH9_.js} +1 -1
  209. package/dist/assets/{empty-D-w6ZnHI.js → empty-SFYuBxta.js} +1 -1
  210. package/dist/assets/{empty-D0VEAoJw.js → empty-VSZPEYlm.js} +1 -1
  211. package/dist/assets/{epic-ClwVDlVx.js → epic-BVf_osK2.js} +2 -2
  212. package/dist/assets/{gift-box-Cmt9OgIZ-D29dLASa.js → gift-box-Cmt9OgIZ-TIfg-5OQ.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt-C5a4mTsI.js → graphic-no-data-l-DU4J8fDt-DuzN_8KG.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DMABn47o.js → graphic-no-data-net-burn-l-CzmycA0m-DXtlpj6J.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-CY1iZII1.js → handshake-BPg58FML-CsRg4PlR.js} +1 -1
  216. package/dist/assets/{index-BDimSyBu.js → index-9kMzLkcy.js} +1 -1
  217. package/dist/assets/{index-CK2D3iZ1.js → index-BoDHThmj.js} +8 -8
  218. package/dist/assets/{index-BNglrSQW.js → index-C68_2S6E.js} +1 -1
  219. package/dist/assets/{index-n5uJZ9k2.js → index-CznijgRQ.js} +1 -1
  220. package/dist/assets/{index-CCUQyVRy.js → index-DUHbU2Cn.js} +1 -1
  221. package/dist/assets/{index-BeaEqEWK.js → index-Do2Bw3DR.js} +1 -1
  222. package/dist/assets/{index-Byk1BTgy.js → index-Ibs5bNMX.js} +1 -1
  223. package/dist/assets/{lexical-BEs89iUy.js → lexical-WHFPYU-_.js} +1 -1
  224. package/dist/assets/{liveblocks-CofSwFWW.js → liveblocks-2fUZ-mzS.js} +1 -1
  225. package/dist/assets/{lottie-BO8FHl2Q.js → lottie-BC5QDLx3.js} +2 -2
  226. package/dist/assets/mapLoadingInProgressToTreeNode-Dgkep7PZ-BYp3zSrW.js +1 -0
  227. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C6gW1Rqr-Dv2Q5ZLA.js → mapSectionWithAcOnlyToTreeNode-DF-WWO6U-CTOVPeIK.js} +1 -1
  228. package/dist/assets/mapSpacerToTreeNode-CumKhTYV-Dl2RLlwx.js +1 -0
  229. package/dist/assets/mapTimeframeBalancesToTreeNode-BttFKWAb-HZT5Q3k5.js +1 -0
  230. package/dist/assets/{mapTimeframeBalancesToTreeNode-BooGIyls-Ct92rF5c.js → mapTimeframeBalancesToTreeNode-CBfPdKyR-CzUv0SrG.js} +1 -1
  231. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BREIWW8N-D82Zhv2q.js +1 -0
  232. package/dist/assets/{mui-DCr-y2iU.js → mui-DjUnBv6N.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-DDARVgTr.js → page-detail-CWX5S47F-BzMdmGGr.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-DO_kFVBk.js → radio-default-CiSgisfh-BaxkJ2IH.js} +1 -1
  235. package/dist/assets/{react-CFfs9kVE.js → react-C_7-vb8x.js} +1 -1
  236. package/dist/assets/{react-DFeqXhsB.js → react-ClWHGkrF.js} +2 -2
  237. package/dist/assets/{react-BGUULhAS.js → react-D27rdI1k.js} +1 -1
  238. package/dist/assets/{react-j6fq6Sto.js → react-DJeKvZ9o.js} +3 -3
  239. package/dist/assets/{react-CEdfmx42.js → react-Duprtjy6.js} +2 -2
  240. package/dist/assets/{react-UyoSCzBu.js → react-alWVovel.js} +2 -2
  241. package/dist/assets/{react-BgpCchG_.js → react-pGoAOdu_.js} +1 -1
  242. package/dist/assets/{react-DgBRIATV.js → react-rAAguZrV.js} +2 -2
  243. package/dist/assets/{recharts-CIKvFUT6.js → recharts-CFBD4y8X.js} +1 -1
  244. package/dist/assets/{sentry-Dm3bm_ok.js → sentry-CAa_RBiQ.js} +2 -2
  245. package/dist/assets/{shield-DOlUxcFf-BEm6OgBB.js → shield-DOlUxcFf-DL1rYkPV.js} +1 -1
  246. package/dist/assets/toCOABalancesWithID-v28KjzUb-BufPkuG3.js +1 -0
  247. package/dist/assets/{toChartData-BUhYY9IR-S8AOthKK.js → toChartData-DuH-6FTe-D-qs3n2e.js} +1 -1
  248. package/dist/assets/{transaction-placeholder-CpOwZAMG-gpUqGjUj.js → transaction-placeholder-CpOwZAMG-CmGAjmF0.js} +1 -1
  249. package/dist/assets/{uploadAttachment-D-Lomshq-0SKv4D0e.js → uploadAttachment-BkoEZkOd-bK4cqD66.js} +1 -1
  250. package/dist/assets/{uploadReceipts-CPw64UYa-BEcpM53g.js → uploadReceipts-CPw64UYa-UaFIqgAV.js} +1 -1
  251. package/dist/assets/{url-BXpa7lO3.js → url-qjSvksOH.js} +1 -1
  252. package/dist/assets/{url-D9ndU82p.js → url-sgt9CiMb.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-DzUxHAZU.js → useLongPress-GCK2COYQ-BKjrZB1N.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-Cow5FZNy.js → usp-line-BBd1wKwW-DAbeFX6P.js} +1 -1
  255. package/dist/assets/{utils-CVsOBiWJ.js → utils-MCudDogO.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-Cgro3mH-.js → zeni-epic-state-BO46e_7F.js} +3 -3
  257. package/dist/index.html +1 -1
  258. package/package.json +3 -3
  259. package/dist/assets/AccountInfoPage-D2IedGAy-DpkY7tZI.js +0 -18
  260. package/dist/assets/BillPayApprovalRuleDetailPage-B7z1PKq6-D3qc7XQa.js +0 -27
  261. package/dist/assets/BillPayApprovalRulesPage-Cj55NkSk-CVNQ2WUg.js +0 -241
  262. package/dist/assets/ChargeCardPromoPage-D_eQ_vXf-CNDMyI7K.js +0 -222
  263. package/dist/assets/CustomerOnboardingContainerPage-CBiHoKP2-K1SzPxIX.js +0 -1
  264. package/dist/assets/EntityDetailPage-BnG_PBK5-88aNTDFS.js +0 -18
  265. package/dist/assets/MagicLinkACHDetailsPage-CKoTuvNz-BHd5xcLb.js +0 -1
  266. package/dist/assets/MagicLinkDomesticWireDetailsPage-Di5hHI_D-C4fzv92i.js +0 -1
  267. package/dist/assets/MagicLinkInternationalWireDetailsPage-B2izwKNk-B8pTw_O-.js +0 -1
  268. package/dist/assets/MailingDetailsSection-BT3SGHhD-Ctkbx47B.js +0 -21
  269. package/dist/assets/Preview-BXKaaVKN.js +0 -1
  270. package/dist/assets/ReimbursementApprovalRuleDetailPage-CHXo51lU-BT66bgjF.js +0 -32
  271. package/dist/assets/ReimbursementApprovalRulesPage-D7utb8vM-BSv0WO21.js +0 -243
  272. package/dist/assets/SignInScreen-BTo7-KSm.js +0 -1
  273. package/dist/assets/SpendManagementListViewPage-CURCimXb-CsGfTOO_.js +0 -123
  274. package/dist/assets/SpendManagementPerTabPage-RY3B-92H-DYTGBiT6.js +0 -785
  275. package/dist/assets/StatementItem-DcPGZchp-CZE_bKaq.js +0 -31
  276. package/dist/assets/TreasuryStatementsPage-rXMNPd2f-B8HSB6xE.js +0 -58
  277. package/dist/assets/VendorACHDetailsPage-B9UpKcN3-BTioFEDj.js +0 -1
  278. package/dist/assets/VendorDomesticWireDetailsPage-CVJAmjuC-DlG2tDpP.js +0 -1
  279. package/dist/assets/VendorInternationalWireSwiftDetailsPage-8u1L-aEg-CW6R8j3k.js +0 -1
  280. package/dist/assets/mapLoadingInProgressToTreeNode-CUy8c_Sm-CvM45xH7.js +0 -1
  281. package/dist/assets/mapSpacerToTreeNode-DqR98mLo-CGAj6TpO.js +0 -1
  282. package/dist/assets/mapTimeframeBalancesToTreeNode-BIGZRHHI-DtvbK4iE.js +0 -1
  283. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-lSB04gFW-CRpECfjU.js +0 -1
  284. package/dist/assets/toCOABalancesWithID-CPbzhUua-B5GAWKcP.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as B,d as _,V as o,ck as P,o as r,gV as se,c as R,n as ie,b as Z,bE as q,F as L,y as J,gW as ce,gX as de,cY as ee,bF as A,b8 as pe,ag as te,gY as ue,bD as oe,av as he,gZ as ge,g_ as me,ak as V,b7 as fe,g$ as xe,ax as ye,h0 as be,p as Ce,cV as ve,bL as we,fX as $e,h1 as Se,m as je,B as H,L as ke,fY as Le,aQ as Oe}from"./index-CK2D3iZ1.js";import{a}from"./sentry-Dm3bm_ok.js";import{n as l,k as Ie}from"./mui-DCr-y2iU.js";import{FI as Ee,FG as Ae,FH as Fe,FE as Me,FF as Te}from"./zeni-epic-state-Cgro3mH-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e6effb8f-55e3-4156-91c0-4fab9732b257",e._sentryDebugIdIdentifier="sentry-dbid-e6effb8f-55e3-4156-91c0-4fab9732b257")}catch{}})();const Re=l.div`
1
+ import{q as B,d as _,V as o,ck as P,o as r,gV as se,c as R,n as ie,b as Z,bE as q,F as L,y as J,gW as ce,gX as de,cY as ee,bF as A,b8 as pe,ag as te,gY as ue,bD as oe,av as he,gZ as ge,g_ as me,ak as V,b7 as fe,g$ as xe,ax as ye,h0 as be,p as Ce,cV as ve,bL as we,fX as $e,h1 as Se,m as je,B as H,L as ke,fY as Le,aQ as Oe}from"./index-BoDHThmj.js";import{a}from"./sentry-CAa_RBiQ.js";import{n as l,k as Ie}from"./mui-DjUnBv6N.js";import{FI as Ee,FG as Ae,FH as Fe,FE as Me,FF as Te}from"./zeni-epic-state-BO46e_7F.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e6effb8f-55e3-4156-91c0-4fab9732b257",e._sentryDebugIdIdentifier="sentry-dbid-e6effb8f-55e3-4156-91c0-4fab9732b257")}catch{}})();const Re=l.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -0,0 +1,31 @@
1
+ import{q as x,hE as $,V as o,F as g,m as S,o as r,ak as v,y as z,c0 as j,c as k}from"./index-BoDHThmj.js";import{a as I}from"./sentry-CAa_RBiQ.js";import{n}from"./mui-DjUnBv6N.js";import{g as D}from"./BoxItem-YBSbdQ7d-D8N3mTZg.js";import{w as P}from"./downloadPdf-BCoq8NLc-6NV7wH9_.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="68a8ccb4-3d1c-454b-ab73-097066063f88",t._sentryDebugIdIdentifier="sentry-dbid-68a8ccb4-3d1c-454b-ab73-097066063f88")}catch{}})();const l=g.getLocalizedStrings().months,d={downloadButtonSize:new z(k[4],20)},T=n.div`
2
+ display: flex;
3
+ padding: ${r.sp3} ${r.sp4};
4
+ flex-direction: row;
5
+ width: 100%;
6
+ `,L=n.div`
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: center;
10
+ width: 100%;
11
+ `,q=n(v)`
12
+ display: -webkit-box;
13
+ -webkit-box-orient: vertical;
14
+ -webkit-line-clamp: 1;
15
+ margin-left: ${r.sp2};
16
+ max-height: ${r.sp11};
17
+ text-overflow: ellipsis;
18
+ word-break: break-word;
19
+ text-align: left;
20
+ overflow: hidden;
21
+ `,B=n.div`
22
+ cursor: pointer;
23
+ `,C=n(j)`
24
+ width: ${t=>d.downloadButtonSize.valuePx(t.windowSize)};
25
+ height: ${t=>d.downloadButtonSize.valuePx(t.windowSize)};
26
+ min-height: ${t=>d.downloadButtonSize.valuePx(t.windowSize)};
27
+ color: ${t=>t.theme.colors.hero};
28
+ &:hover {
29
+ color: ${t=>t.theme.colors.primary};
30
+ }
31
+ `;function R({accountLast4:t,currentTenantCompanyName:i,data:e,authParams:c,downloadEndPoint:s,documentType:a="statement",boxType:m}){const[f,p]=I.useState(!1),w=x(),u=a==="taxLetter"?`${e.title.year}`:`${l[e.title.month-1]} ${e.title.year}`,y=a==="taxLetter"?`${i}-treasury-tax-letter-${e.title.year}.pdf`:`${i}-${t}-monthly-statement-${l[e.title.month-1]}-${e.title.year}.pdf`,h={period:`${e.title.year}-${$(e.title.month)}`,format:"pdf"},b=o.jsx(T,{children:o.jsxs(L,{children:[o.jsx(q,{children:u}),o.jsx(B,{onClick:()=>P(a==="treasuryStatement"||a==="taxLetter"?`${s}/statements/${e.id}`:`${s}/statements?query=${encodeURIComponent(JSON.stringify(h))}`,y,c,p),children:f?o.jsx(S,{size:"Small",start:!0}):o.jsx(C,{windowSize:w})})]})});return o.jsx(D,{content:b,boxType:m,isDisabled:!1,isNotClickable:!0})}export{R as O};
@@ -1,4 +1,4 @@
1
- import{d as S,q as I,V as t,bz as z,b1 as C,o as r,F as P,p,cq as D,y as E,c as b,ak as L}from"./index-CK2D3iZ1.js";import{a as u}from"./sentry-Dm3bm_ok.js";import{n as o}from"./mui-DCr-y2iU.js";import{$ as T}from"./BoxItem-B8HVRhgE-Bev68PFI.js";import{o as B}from"./commonDimensions-C_y3LIE8-X_N9ThEv.js";import{O as M}from"./StatementItem-DcPGZchp-CZE_bKaq.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./zeni-epic-state-Cgro3mH-.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./downloadPdf-BdoS2D6l-B5cqxKI-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="30b35316-7a6d-48d4-ba96-ee7211f06705",e._sentryDebugIdIdentifier="sentry-dbid-30b35316-7a6d-48d4-ba96-ee7211f06705")}catch{}})();const g=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,w={listItemMargin:new E(b[3],b[8])},oe=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:m,statementListView:i,accountLast4:x,onBackClick:y})=>{const k=S(),d=I(),$=u.createRef(),c=u.useRef(null),h=i.statements.length===0,j=()=>h===!1?B.transactionItemHeight:24,v=({index:a,style:s})=>{const l=i.statements[a];return h===!1?t.jsx(f,{windowSize:d,style:{...s,width:`calc(100% - 2*${w.listItemMargin.valuePx(d)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:x,data:l,authParams:n,downloadEndPoint:m,boxType:T(a,i.statements.length)},l.id)}):t.jsx(O,{style:{...s},children:t.jsx(_,{children:t.jsx(f,{windowSize:d,children:t.jsx(R,{children:g.noStatements})})})})};return t.jsxs(N,{children:[t.jsx(z,{title:g.title,backgroundColor:k.colors.grey4,style:{zIndex:3},onBackClick:y,scrollableContent:c.current!=null?c:void 0,source:"StatementsPage"}),t.jsx(V,{children:t.jsx(C,{children:({height:a,width:s})=>t.jsx(q,{ref:$,height:a,width:s,outerRef:c,itemKey:l=>l,itemCount:i.statements.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},O=o.div``,f=o.div`
1
+ import{d as S,q as I,V as t,bz as z,b1 as C,o as r,F as P,p,cq as D,y as E,c as b,ak as L}from"./index-BoDHThmj.js";import{a as u}from"./sentry-CAa_RBiQ.js";import{n as o}from"./mui-DjUnBv6N.js";import{$ as T}from"./BoxItem-YBSbdQ7d-D8N3mTZg.js";import{o as B}from"./commonDimensions-DSS8XDHZ-BEyzahKx.js";import{O as M}from"./StatementItem-Cj9_LMwP-iOXv6bUO.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./zeni-epic-state-BO46e_7F.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";import"./downloadPdf-BCoq8NLc-6NV7wH9_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ed1f10a2-79c3-417e-af9d-4b942e7e4a5e",e._sentryDebugIdIdentifier="sentry-dbid-ed1f10a2-79c3-417e-af9d-4b942e7e4a5e")}catch{}})();const f=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,w={listItemMargin:new E(b[3],b[8])},oe=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:m,statementListView:a,accountLast4:x,onBackClick:y})=>{const k=S(),d=I(),$=u.createRef(),c=u.useRef(null),h=a.statements.length===0,j=()=>h===!1?B.transactionItemHeight:24,v=({index:i,style:s})=>{const l=a.statements[i];return h===!1?t.jsx(g,{windowSize:d,style:{...s,width:`calc(100% - 2*${w.listItemMargin.valuePx(d)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:x,data:l,authParams:n,downloadEndPoint:m,boxType:T(i,a.statements.length)},l.id)}):t.jsx(O,{style:{...s},children:t.jsx(_,{children:t.jsx(g,{windowSize:d,children:t.jsx(R,{children:f.noStatements})})})})};return t.jsxs(N,{children:[t.jsx(z,{title:f.title,backgroundColor:k.colors.grey4,style:{zIndex:3},onBackClick:y,scrollableContent:c.current!=null?c:void 0,source:"StatementsPage"}),t.jsx(V,{children:t.jsx(C,{children:({height:i,width:s})=>t.jsx(q,{ref:$,height:i,width:s,outerRef:c,itemKey:l=>l,itemCount:a.statements.length,itemSize:j,initialScrollOffset:0,children:v})})})]})},O=o.div``,g=o.div`
2
2
  margin: ${e=>`${r.sp0} ${w.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{q as $,ca as T,V as d,F as v,y as h,o as s,c,ag as _}from"./index-CK2D3iZ1.js";import{n as u,c as m}from"./mui-DCr-y2iU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e6baf273-a614-4809-98b7-515f9d21e2c8",e._sentryDebugIdIdentifier="sentry-dbid-e6baf273-a614-4809-98b7-515f9d21e2c8")}catch{}})();function g(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(" ").filter(Boolean).map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}const z=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function A(e,a){if(typeof e=="string")return e;if(e!=null&&typeof e=="object"){const r=Object.values(e)[0];return typeof r=="string"?r:g(a)}return g(a)}function p(e,a,r){const n=e[a];return n!=null?A(n,r):null}const L=(e,a)=>{const{spendManagement:{billPay:{billsByTabs:{tabsById:r}},reimbursement:{reimbursementByTabs:{tabsById:n}},zeniAccounts:{zeniAccountList:{tabsById:l}}}}=v.getLocalizedStrings(),t=String(e);if(a)switch(a){case"bill_pay":{const i=p(r,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"reimbursement":{const i=p(n,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"zeni_accounts":{const i=p(l,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}}return(p(r,t,t)??p(n,t,t)??p(l,t,t)??g(t)).replace(/\s+/g,"_").toLowerCase()},{spendManagement:{billPay:{billsByTabs:{tabsById:y}},reimbursement:{reimbursementByTabs:{tabsById:x}},zeniAccounts:{zeniAccountList:{tabsById:D}}}}=v.getLocalizedStrings(),w={containerMarginLeft:new h(c[4],c[8]),containerMarginRight:new h(c[4],c[8]),segmentContainerMarginLeft:new h(c[4],c[8])},M=u.div`
1
+ import{q as $,ca as T,V as d,F as v,y as h,o as s,c,ag as _}from"./index-BoDHThmj.js";import{n as u,c as m}from"./mui-DjUnBv6N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e6baf273-a614-4809-98b7-515f9d21e2c8",e._sentryDebugIdIdentifier="sentry-dbid-e6baf273-a614-4809-98b7-515f9d21e2c8")}catch{}})();function g(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(" ").filter(Boolean).map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}const z=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function A(e,a){if(typeof e=="string")return e;if(e!=null&&typeof e=="object"){const r=Object.values(e)[0];return typeof r=="string"?r:g(a)}return g(a)}function p(e,a,r){const n=e[a];return n!=null?A(n,r):null}const L=(e,a)=>{const{spendManagement:{billPay:{billsByTabs:{tabsById:r}},reimbursement:{reimbursementByTabs:{tabsById:n}},zeniAccounts:{zeniAccountList:{tabsById:l}}}}=v.getLocalizedStrings(),t=String(e);if(a)switch(a){case"bill_pay":{const i=p(r,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"reimbursement":{const i=p(n,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"zeni_accounts":{const i=p(l,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}}return(p(r,t,t)??p(n,t,t)??p(l,t,t)??g(t)).replace(/\s+/g,"_").toLowerCase()},{spendManagement:{billPay:{billsByTabs:{tabsById:y}},reimbursement:{reimbursementByTabs:{tabsById:x}},zeniAccounts:{zeniAccountList:{tabsById:D}}}}=v.getLocalizedStrings(),w={containerMarginLeft:new h(c[4],c[8]),containerMarginRight:new h(c[4],c[8]),segmentContainerMarginLeft:new h(c[4],c[8])},M=u.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{V as i,m as u,o as s,ag as g,aX as f}from"./index-CK2D3iZ1.js";import{n as r,c}from"./mui-DCr-y2iU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bcbef962-a607-4f83-8edf-2da17c0a6dd2",e._sentryDebugIdIdentifier="sentry-dbid-bcbef962-a607-4f83-8edf-2da17c0a6dd2")}catch{}})();function v({allTabs:e,selectedTab:n,containerStyle:o,rightComponent:l,onTabChange:p}){const h=l!=null;return i.jsxs(b,{style:o,hasRightComponent:h,children:[i.jsx(y,{children:e.map(t=>{const a=t.id===n,d=t.isDisabled!=null;return i.jsxs($,{onClick:()=>{a===!1&&!d&&p(t)},isSelected:a,isDisabled:d,children:[i.jsx(m,{children:t.label}),t.countDetails?.count!=null?i.jsx(D,{children:i.jsx(x,{isCircular:t.countDetails.count==null||t.countDetails.count<10,children:i.jsx(j,{children:t.countDetails.isFetching?i.jsx(u,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):t.countDetails.count})})}):null]},t.id)})}),l]})}const b=r.div`
1
+ import{V as i,m as u,o as s,ag as g,aX as f}from"./index-BoDHThmj.js";import{n as r,c}from"./mui-DjUnBv6N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bcbef962-a607-4f83-8edf-2da17c0a6dd2",e._sentryDebugIdIdentifier="sentry-dbid-bcbef962-a607-4f83-8edf-2da17c0a6dd2")}catch{}})();function v({allTabs:e,selectedTab:n,containerStyle:o,rightComponent:l,onTabChange:p}){const h=l!=null;return i.jsxs(b,{style:o,hasRightComponent:h,children:[i.jsx(y,{children:e.map(t=>{const a=t.id===n,d=t.isDisabled!=null;return i.jsxs($,{onClick:()=>{a===!1&&!d&&p(t)},isSelected:a,isDisabled:d,children:[i.jsx(m,{children:t.label}),t.countDetails?.count!=null?i.jsx(D,{children:i.jsx(x,{isCircular:t.countDetails.count==null||t.countDetails.count<10,children:i.jsx(j,{children:t.countDetails.isFetching?i.jsx(u,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):t.countDetails.count})})}):null]},t.id)})}),l]})}const b=r.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: ${e=>e.hasRightComponent?"space-between":"flex-start"};
@@ -1 +1 @@
1
- import{V as n}from"./index-CK2D3iZ1.js";import{E as r,T as t}from"./ReloadCard-BGPtXAV7-D43T0ICm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="09712d86-3771-4fc9-8ba2-fbf88a561acb",e._sentryDebugIdIdentifier="sentry-dbid-09712d86-3771-4fc9-8ba2-fbf88a561acb")}catch{}})();const c=e=>{function d(){return e.card.fetchState==="In-Progress"||e.card.fetchState==="Not-Started"?n.jsx(r,{dimension:e.card.dimension,animated:!e.card.disableAnimations}):e.card.fetchState==="Error"?n.jsx(t,{dimension:e.card.dimension,cardType:e.card.cardType,cardIndex:e.card.cardIndex,onReloadData:e.actions.onReloadData}):n.jsx("div",{children:e.children})}return n.jsx("div",{children:d()})};export{c};
1
+ import{V as n}from"./index-BoDHThmj.js";import{E as r,T as t}from"./ReloadCard-CRQf0INS-CM9HcBcK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="84e4655f-4ec7-46d9-9f3c-c66829e49b4d",e._sentryDebugIdIdentifier="sentry-dbid-84e4655f-4ec7-46d9-9f3c-c66829e49b4d")}catch{}})();const s=e=>{function d(){return e.card.fetchState==="In-Progress"||e.card.fetchState==="Not-Started"?n.jsx(r,{dimension:e.card.dimension,animated:!e.card.disableAnimations}):e.card.fetchState==="Error"?n.jsx(t,{dimension:e.card.dimension,cardType:e.card.cardType,cardIndex:e.card.cardIndex,onReloadData:e.actions.onReloadData}):n.jsx("div",{children:e.children})}return n.jsx("div",{children:d()})};export{s as c};
@@ -1,4 +1,4 @@
1
- import{av as gt,d as qe,V as t,jn as Y,bz as kt,a9 as _,cm as xt,ak as K,ap as wt,F as se,o as s,eK as Ze,cf as Ne,cj as ft,g1 as Ct,b7 as Tt,bL as Xe,aQ as $t,q as ie,a8 as bt,y as Je,cB as yt,ab as jt,b1 as vt,cq as St,iL as Gt,iM as Lt,jo as Me,aO as Nt,n as De,bQ as Ee,eG as Qe,jp as Et,cY as et,jq as ce,jr as ke,js as xe,jt as tt,ju as It,jv as st,jw as ot,jx as nt,jy as at,jz as rt,jA as V,c as ge,jB as ae,ag as re,jC as Dt,jD as Mt,L as zt,am as Bt,jE as At,d7 as Rt,jF as Wt,cO as it,ek as Ot,b as Ft,jG as Pt,jH as Ht,g2 as _t,eJ as Ut,jI as Vt,jJ as X,jK as ze,cs as Kt,jL as Yt,jM as qt,jN as Zt,jO as Be,p as Ae,gq as Xt,al as Jt}from"./index-CK2D3iZ1.js";import{a as n}from"./sentry-Dm3bm_ok.js";import{n as o,c as we}from"./mui-DCr-y2iU.js";import{FZ as Qt,F_ as Re,cd as lt,ce as dt,cf as es}from"./zeni-epic-state-Cgro3mH-.js";import{J as ts,K as ss}from"./SpendManagementSection-rHLuZG8_-UxYLxpbV.js";import{A as os,t as ns,a as as,E as rs}from"./NotificationsListConfig-CHb7phwi-CuAMA5zK.js";import{getDashboardFilterCategoryValues as is}from"./SpendManagementListViewPage-CURCimXb-CsGfTOO_.js";import"./liveblocks-CofSwFWW.js";import"./core-D2k9JfRf.js";import"./recharts-CIKvFUT6.js";import"./lottie-BO8FHl2Q.js";import"./analytics-DCCTWnnc.js";import"./lexical-BEs89iUy.js";import"./utils-CVsOBiWJ.js";import"./StatusSwitcher-CLCkXs_4-DhXpfaBL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="b434af74-4a24-4ba2-818e-cb057cad1f47",e._sentryDebugIdIdentifier="sentry-dbid-b434af74-4a24-4ba2-818e-cb057cad1f47")}catch{}})();const ls=100,ds=100,cs=3,ps=.7,us=({scrollContainerRef:e,isEnabled:d=!0,edgeThreshold:r=ls,scrollSpeed:h=ds,minScrollAmount:m=cs,scrollCurveExponent:u=ps})=>{n.useEffect(()=>{if(!d||typeof window>"u"||typeof document>"u")return;let a=!1,p=0,i=null;const c=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},v=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>v(x),D=x=>{const S=Math.max(x,0)/c,b=Math.pow(S,u)*h;return Math.max(m,b)},k=(x,S,b)=>{const L=b==="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,b=p;if(b<c&&b>0){const L=c-b,g=D(L);k(x,g,"up")}else if(b>S-c){const L=b-(S-c),g=D(L);k(x,g,"down")}i=requestAnimationFrame(w)},M=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(p=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",M),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",M),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,d,m,e,u,h])},ve=se.getLocalizedStrings(),ct=({count:e})=>t.jsx(hs,{isCircular:e<10,children:t.jsx(ms,{children:e>ve.common.numbers.maximumCount?`${ve.common.numbers.maximumCount}${ve.common.strings.plus}`:e})}),hs=o.div`
1
+ import{av as gt,d as Ye,V as t,jn as q,bz as kt,a9 as _,cm as xt,ak as K,ap as wt,F as se,o as s,eK as Ze,cf as Ne,cj as ft,g1 as Ct,b7 as Tt,bL as Xe,aQ as $t,q as ie,a8 as yt,y as Je,cB as jt,ab as bt,b1 as vt,cq as St,iL as Gt,iM as Lt,jo as Me,aO as Nt,n as De,bQ as Ee,eG as Qe,jp as Et,cY as et,jq as ce,jr as ke,js as xe,jt as tt,ju as It,jv as st,jw as ot,jx as nt,jy as at,jz as rt,jA as V,c as ge,jB as ae,ag as re,jC as Dt,jD as Mt,L as zt,am as Bt,jE as At,d7 as Rt,jF as Wt,cO as it,ek as Ot,b as Ft,jG as Pt,jH as Ht,g2 as _t,eJ as Ut,jI as Vt,jJ as X,jK as ze,cs as Kt,jL as qt,jM as Yt,jN as Zt,jO as Be,p as Ae,gq as Xt,al as Jt}from"./index-BoDHThmj.js";import{a as n}from"./sentry-CAa_RBiQ.js";import{n as o,c as we}from"./mui-DjUnBv6N.js";import{FZ as Qt,F_ as Re,cd as lt,ce as dt,cf as es}from"./zeni-epic-state-BO46e_7F.js";import{J as ts,K as ss}from"./SpendManagementSection-CIqYxYxX-BVCp77Yh.js";import{A as os,t as ns,a as as,E as rs}from"./NotificationsListConfig-CkDLXlK_-Dyu4QQzt.js";import{getDashboardFilterCategoryValues as is}from"./SpendManagementListViewPage-D-XwxN9o-C4dAHfpb.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";import"./StatusSwitcher-DetjWSRH-Q0yUcFVR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="c2d47138-141a-49d7-85e5-10f6fe58c0a5",e._sentryDebugIdIdentifier="sentry-dbid-c2d47138-141a-49d7-85e5-10f6fe58c0a5")}catch{}})();const ls=100,ds=100,cs=3,ps=.7,us=({scrollContainerRef:e,isEnabled:d=!0,edgeThreshold:r=ls,scrollSpeed:h=ds,minScrollAmount:m=cs,scrollCurveExponent:u=ps})=>{n.useEffect(()=>{if(!d||typeof window>"u"||typeof document>"u")return;let a=!1,p=0,i=null;const c=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},v=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>v(x),D=x=>{const S=Math.max(x,0)/c,y=Math.pow(S,u)*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=p;if(y<c&&y>0){const L=c-y,g=D(L);k(x,g,"up")}else if(y>S-c){const L=y-(S-c),g=D(L);k(x,g,"down")}i=requestAnimationFrame(w)},M=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(p=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",M),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",M),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,d,m,e,u,h])},ve=se.getLocalizedStrings(),ct=({count:e})=>t.jsx(hs,{isCircular:e<10,children:t.jsx(ms,{children:e>ve.common.numbers.maximumCount?`${ve.common.numbers.maximumCount}${ve.common.strings.plus}`:e})}),hs=o.div`
2
2
  ${e=>e.isCircular?we`
3
3
  height: 18px;
4
4
  width: 18px;
@@ -44,7 +44,7 @@ import{av as gt,d as qe,V as t,jn as Y,bz as kt,a9 as _,cm as xt,ak as K,ap as w
44
44
  `,Cs=o(Xe)`
45
45
  width: ${s.sp3};
46
46
  height: ${s.sp3};
47
- `,Ts=se.getLocalizedStrings().taskManagement.taskList.footer;function $s({taskGroupsList:e,anchorEl:d,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:u}){const a=()=>{u(),h()};return t.jsx(Ze,{open:!!d,anchorEl:d,onClose:u,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(bs,{children:[t.jsx(ys,{children:e.map(p=>{const i=()=>{u(),m(p.id)};return t.jsx(Oe,{onClick:i,children:t.jsx(re,{children:p.groupName})},p.id)})}),t.jsx(_,{controller:r==="groupName",children:t.jsxs(Oe,{onClick:a,children:[t.jsx(js,{}),t.jsx(re,{children:Ts.createGroup})]})})]})})}const bs=o.div`
47
+ `,Ts=se.getLocalizedStrings().taskManagement.taskList.footer;function $s({taskGroupsList:e,anchorEl:d,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:u}){const a=()=>{u(),h()};return t.jsx(Ze,{open:!!d,anchorEl:d,onClose:u,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(ys,{children:[t.jsx(js,{children:e.map(p=>{const i=()=>{u(),m(p.id)};return t.jsx(Oe,{onClick:i,children:t.jsx(re,{children:p.groupName})},p.id)})}),t.jsx(_,{controller:r==="groupName",children:t.jsxs(Oe,{onClick:a,children:[t.jsx(bs,{}),t.jsx(re,{children:Ts.createGroup})]})})]})})}const ys=o.div`
48
48
  background-color: ${e=>e.theme.colors.grey5};
49
49
  `,Oe=o.div`
50
50
  padding: ${s.sp2} ${s.sp3};
@@ -57,9 +57,9 @@ import{av as gt,d as qe,V as t,jn as Y,bz as kt,a9 as _,cm as xt,ak as K,ap as w
57
57
  color: ${e=>e.theme.colors.primary};
58
58
  background-color: ${e=>e.theme.colors.background};
59
59
  }
60
- `,ys=o.div`
60
+ `,js=o.div`
61
61
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
62
- `,js=o(et)`
62
+ `,bs=o(et)`
63
63
  width: ${s.sp3};
64
64
  height: ${s.sp3};
65
65
  `;function vs({placeholder:e,searchText:d,inputContainerStyles:r,onSearchTextChanged:h}){const[m,u]=n.useState(!1),a=n.useRef(null),p=ie(),i=()=>{d||u(!1)};return t.jsxs(Ss,{children:[m?null:t.jsx(Ls,{onMouseEnter:()=>u(!0),onClick:()=>{u(!0),a.current?.focus()},children:t.jsx(Fe,{})}),m?t.jsxs(Gs,{style:r,isOpen:m,children:[t.jsx(Fe,{}),t.jsx(Ns,{windowSize:p,autoFocus:p!=="small",placeholder:e,value:d,onBlur:i,onChange:c=>{const C=c.target;h(C.value)},ref:a}),d?t.jsx(Es,{}):null]}):null]})}const Ss=o.div`
@@ -97,7 +97,7 @@ import{av as gt,d as qe,V as t,jn as Y,bz as kt,a9 as _,cm as xt,ak as K,ap as w
97
97
  `,Es=o(zt)`
98
98
  width: ${s.sp3};
99
99
  height: ${s.sp3};
100
- `,Is=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.6011 5.42688H3.10107",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 9.60004L7.92188 12.4125L6.51562 11.0063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 11.0063H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 15.4125L7.92188 18.225L6.51562 16.8188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 16.8188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ds=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"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"})),Ms=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},n.createElement("path",{d:"M4.49908 1.50001H12.0015H19.5039C19.5039 1.50001 20.868 1.50001 20.868 2.86409V21.1359C20.868 21.1359 20.868 22.5 19.5039 22.5H4.49908C4.49908 22.5 3.13501 22.5 3.13501 21.1359V2.86409C3.13501 2.86409 3.13501 1.50001 4.49908 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.5 11.9996L8.598 14.1953C8.70072 14.4016 8.85107 14.5804 9.03662 14.7171C9.22217 14.8538 9.43759 14.9443 9.66506 14.9812C9.89254 15.0182 10.1255 15.0004 10.3448 14.9295C10.5641 14.8585 10.7633 14.7364 10.926 14.5733L16.5 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{taskManagement:zs,common:Bs}=se.getLocalizedStrings(),J=zs.taskList.newTaskOptions;function As({anchorEl:e,groupByKey:d,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:u,onExpandTemplate:a,onClose:p,onNewTaskClick:i,onNewGroupClick:c,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:v,onNewTaskInitialization:I}){const D=qe(),[k,f]=n.useState(null),[w,M]=n.useState(null);n.useEffect(()=>{h.fetchState==="Completed"&&(M(null),f(null),p())},[h.fetchState,p]);const z=n.useCallback(($,x)=>{f(x),v($,x)},[v]),B=n.useCallback($=>{M($),C($)},[C]);return t.jsx(Ze,{open:!!e,sx:{"& .MuiPaper-root":{border:`1px solid ${D.colors.grey3}`}},anchorEl:e,onClose:p,transformOrigin:{vertical:"top",horizontal:"right"},anchorOrigin:{vertical:"bottom",horizontal:"right"},children:t.jsxs(Ws,{isTaskTemplatesEnabled:m,children:[t.jsxs(Ps,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(Os,{}),t.jsx(Ne,{children:J.task})]}),t.jsx(_,{controller:d==="groupName",children:t.jsxs(Pe,{onClick:()=>c(""),children:[t.jsx(Fs,{}),t.jsx(Ne,{children:J.group})]})})]}),m?t.jsx(Rs,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:u,handleGroupTemplateClick:B,handleGroupTemplateTaskClick:z,onNewGroupClick:c,onNewTaskInitialization:I,onExpandTemplate:a}):null]})})}const Rs=({taskGroupTemplates:e,taskIdInCreation:d,groupIdInCreation:r,expandedTemplate:h,onExpandTemplate:m,handleGroupTemplateClick:u,handleGroupTemplateTaskClick:a,onNewGroupClick:p,onNewTaskInitialization:i})=>{const[c,C]=n.useState(""),v=n.useMemo(()=>{const k=[];return e.forEach(f=>{if(f.name.toLowerCase().includes(c.toLowerCase()))k.push(f);else{const w=f.tasks.filter(M=>M.name.toLowerCase().includes(c.toLowerCase()));w.length>0&&k.push({...f,tasks:w})}}),k},[e,c]),I=n.useCallback(()=>{i(c)},[c,i]),D=n.useCallback(()=>{p(c)},[c,p]);return t.jsxs(Hs,{children:[t.jsx(_s,{children:t.jsxs(Vs,{children:[t.jsxs(Us,{children:[t.jsx(Ks,{}),t.jsx(Ys,{children:J.groupTemplates})]}),t.jsx(vs,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:c,onSearchTextChanged:C,placeholder:J.searchPlaceholder})]})}),t.jsx(_,{controller:v.length>0,children:t.jsx(qs,{children:v.map(k=>{const f=h===k.id;return t.jsxs(no,{children:[t.jsxs(Zs,{onClick:()=>{m(k.id)},expanded:f,children:[t.jsxs(Xs,{children:[t.jsx(_,{controller:f,children:t.jsx(oo,{})}),t.jsx(_,{controller:!f,children:t.jsx(so,{})}),t.jsx(K,{children:k.name}),t.jsx(ct,{count:k.tasks.length})]}),t.jsx(eo,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:J.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),u(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(_,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Js,{children:[t.jsxs(Qs,{children:[t.jsx(ao,{className:"styled-dot"}),t.jsx(lo,{className:"task-name-text",children:w.name})]}),t.jsx(to,{loading:d===w.name,className:"hidden-create-task-button",variant:"secondary",size:"xs-small",label:Bs.create,reverseSpinnerColor:!1,onClick:()=>a(k.id,w.name)})]},w.name))})})]},k.id)})})}),t.jsxs(_,{controller:v.length===0,children:[t.jsx(ro,{children:t.jsx(io,{children:J.noTaskGroup})}),t.jsxs(He,{onClick:I,children:[t.jsx(_e,{}),t.jsx(K,{children:J.newTaskOptionText.replace("__searchText__",c)})]}),t.jsxs(He,{onClick:D,children:[t.jsx(_e,{}),t.jsx(K,{children:J.newGroupOptionText.replace("__searchText__",c)})]})]})]})},Ws=o.div`
100
+ `,Is=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.6011 5.42688H3.10107",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 9.60004L7.92188 12.4125L6.51562 11.0063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 11.0063H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 15.4125L7.92188 18.225L6.51562 16.8188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 16.8188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ds=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"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"})),Ms=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},n.createElement("path",{d:"M4.49908 1.50001H12.0015H19.5039C19.5039 1.50001 20.868 1.50001 20.868 2.86409V21.1359C20.868 21.1359 20.868 22.5 19.5039 22.5H4.49908C4.49908 22.5 3.13501 22.5 3.13501 21.1359V2.86409C3.13501 2.86409 3.13501 1.50001 4.49908 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.5 11.9996L8.598 14.1953C8.70072 14.4016 8.85107 14.5804 9.03662 14.7171C9.22217 14.8538 9.43759 14.9443 9.66506 14.9812C9.89254 15.0182 10.1255 15.0004 10.3448 14.9295C10.5641 14.8585 10.7633 14.7364 10.926 14.5733L16.5 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{taskManagement:zs,common:Bs}=se.getLocalizedStrings(),J=zs.taskList.newTaskOptions;function As({anchorEl:e,groupByKey:d,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:u,onExpandTemplate:a,onClose:p,onNewTaskClick:i,onNewGroupClick:c,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:v,onNewTaskInitialization:I}){const D=Ye(),[k,f]=n.useState(null),[w,M]=n.useState(null);n.useEffect(()=>{h.fetchState==="Completed"&&(M(null),f(null),p())},[h.fetchState,p]);const z=n.useCallback(($,x)=>{f(x),v($,x)},[v]),B=n.useCallback($=>{M($),C($)},[C]);return t.jsx(Ze,{open:!!e,sx:{"& .MuiPaper-root":{border:`1px solid ${D.colors.grey3}`}},anchorEl:e,onClose:p,transformOrigin:{vertical:"top",horizontal:"right"},anchorOrigin:{vertical:"bottom",horizontal:"right"},children:t.jsxs(Ws,{isTaskTemplatesEnabled:m,children:[t.jsxs(Ps,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(Os,{}),t.jsx(Ne,{children:J.task})]}),t.jsx(_,{controller:d==="groupName",children:t.jsxs(Pe,{onClick:()=>c(""),children:[t.jsx(Fs,{}),t.jsx(Ne,{children:J.group})]})})]}),m?t.jsx(Rs,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:u,handleGroupTemplateClick:B,handleGroupTemplateTaskClick:z,onNewGroupClick:c,onNewTaskInitialization:I,onExpandTemplate:a}):null]})})}const Rs=({taskGroupTemplates:e,taskIdInCreation:d,groupIdInCreation:r,expandedTemplate:h,onExpandTemplate:m,handleGroupTemplateClick:u,handleGroupTemplateTaskClick:a,onNewGroupClick:p,onNewTaskInitialization:i})=>{const[c,C]=n.useState(""),v=n.useMemo(()=>{const k=[];return e.forEach(f=>{if(f.name.toLowerCase().includes(c.toLowerCase()))k.push(f);else{const w=f.tasks.filter(M=>M.name.toLowerCase().includes(c.toLowerCase()));w.length>0&&k.push({...f,tasks:w})}}),k},[e,c]),I=n.useCallback(()=>{i(c)},[c,i]),D=n.useCallback(()=>{p(c)},[c,p]);return t.jsxs(Hs,{children:[t.jsx(_s,{children:t.jsxs(Vs,{children:[t.jsxs(Us,{children:[t.jsx(Ks,{}),t.jsx(qs,{children:J.groupTemplates})]}),t.jsx(vs,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:c,onSearchTextChanged:C,placeholder:J.searchPlaceholder})]})}),t.jsx(_,{controller:v.length>0,children:t.jsx(Ys,{children:v.map(k=>{const f=h===k.id;return t.jsxs(no,{children:[t.jsxs(Zs,{onClick:()=>{m(k.id)},expanded:f,children:[t.jsxs(Xs,{children:[t.jsx(_,{controller:f,children:t.jsx(oo,{})}),t.jsx(_,{controller:!f,children:t.jsx(so,{})}),t.jsx(K,{children:k.name}),t.jsx(ct,{count:k.tasks.length})]}),t.jsx(eo,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:J.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),u(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(_,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Js,{children:[t.jsxs(Qs,{children:[t.jsx(ao,{className:"styled-dot"}),t.jsx(lo,{className:"task-name-text",children:w.name})]}),t.jsx(to,{loading:d===w.name,className:"hidden-create-task-button",variant:"secondary",size:"xs-small",label:Bs.create,reverseSpinnerColor:!1,onClick:()=>a(k.id,w.name)})]},w.name))})})]},k.id)})})}),t.jsxs(_,{controller:v.length===0,children:[t.jsx(ro,{children:t.jsx(io,{children:J.noTaskGroup})}),t.jsxs(He,{onClick:I,children:[t.jsx(_e,{}),t.jsx(K,{children:J.newTaskOptionText.replace("__searchText__",c)})]}),t.jsxs(He,{onClick:D,children:[t.jsx(_e,{}),t.jsx(K,{children:J.newGroupOptionText.replace("__searchText__",c)})]})]})]})},Ws=o.div`
101
101
  display: flex;
102
102
  flex-direction: column;
103
103
  width: ${e=>e.isTaskTemplatesEnabled?"408px":"unset"};
@@ -145,9 +145,9 @@ import{av as gt,d as qe,V as t,jn as Y,bz as kt,a9 as _,cm as xt,ak as K,ap as w
145
145
  width: ${s.sp3};
146
146
  height: ${s.sp3};
147
147
  color: ${e=>e.theme.colors.primary};
148
- `,Ys=o(Ne)`
148
+ `,qs=o(Ne)`
149
149
  color: ${e=>e.theme.colors.primary};
150
- `,qs=o.div`
150
+ `,Ys=o.div`
151
151
  max-height: 320px;
152
152
  overflow: auto;
153
153
  `,Zs=o.div`
@@ -243,7 +243,7 @@ import{av as gt,d as qe,V as t,jn as Y,bz as kt,a9 as _,cm as xt,ak as K,ap as w
243
243
  text-overflow: ellipsis;
244
244
  white-space: nowrap;
245
245
  max-width: 336px;
246
- `,{common:Ge,dateFormat:co,taskManagement:Ie}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new Je(125,170,170,250,300)},po=({taskDetail:e,tagList:d,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:u})=>{const a=ie(),p=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,c=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Ge.strings.empty,{getValues:C,resetField:v,getFieldState:I}=it(),D=(k,f)=>{const w=Be(k,f,xe);I(w).invalid?v(w):m(e,{timeSpent:C(w)})};return t.jsxs(mo,{children:[t.jsxs(vo,{windowSize:a,onClick:h,responsiveWidth:X[0].width,children:[t.jsxs(So,{windowSize:a,children:[t.jsx(Lo,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ee,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(Eo,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ee,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(Go,{windowSize:a,responsiveWidth:X[0].width,children:t.jsx(No,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[1].width,children:ze(e.status.code)}),t.jsx(zo,{windowSize:a,responsiveWidth:X[2].width,children:ze(e.priority.code)}),t.jsx(Bo,{windowSize:a,responsiveWidth:X[3].width,children:e.dueDate!=null?e.dueDate.format(co.visual.MMMDCommaYYYYformat):t.jsx(go,{children:Ge.strings.hyphen})}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[4].width,children:p>0?t.jsxs(ko,{children:[t.jsx(Kt,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Io,{children:t.jsx(Do,{children:c})}),p>1?t.jsx(xo,{children:`${Ge.strings.plus}${p-1}`}):null]}):null}),t.jsx(Ao,{windowSize:a,responsiveWidth:X[5].width,children:e.tagIds.length>0?t.jsx(Mo,{children:Yt(e.tagIds,d)}):null}),t.jsx(Wo,{windowSize:a,responsiveWidth:X[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Oo,{className:"timeSpentField",children:t.jsx(qt,{name:Be(r,e.id,xe),placeholder:Ie.common.timeSpentPlaceholder,timeSpentFormat:Ie.common.timeSpentFormat,registerOptions:{validate:k=>es(k)>Zt?(u({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error"):!0},style:{padding:`${s.sp0} ${s.sp1}`,background:"unset"},onInputBlur:()=>{D(r,e.id)},inputStyle:{textAlign:"right",padding:`${s.sp0} ${s.sp2}`}})})})]})},uo=({taskGroup:e,tagList:d,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:u,isCollapsed:a,existingTaskGroupNamesByGroupId:p,onDeleteTaskGroup:i,onExpandAll:c,onCollapseAll:C,onAddNewTaskToTaskGroup:v,onCollapseToggle:I,onTaskManagementRowClick:D,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[M,z]=n.useState(null),B=ie(),{setFocus:$}=it(),x=n.useCallback(()=>{I(e.id)},[I,e.id]),S=n.useCallback(W=>{z(W.currentTarget)},[]),b=n.useCallback(()=>{z(null)},[]),L=n.useCallback(()=>{v(e.id)},[v,e.id]),g=n.useCallback(()=>{z(null),i(e.id)},[i,e.id]),y=n.useCallback(()=>{$(`${r}.groupName`),b()},[b,r,$]);return t.jsxs(ho,{windowSize:B,children:[t.jsx(_,{controller:h,children:t.jsxs(wo,{children:[t.jsxs(fo,{children:[t.jsx(Co,{isOpen:a===!1,onClick:x,children:t.jsx(To,{})}),t.jsx(Ot,{style:{textAlign:"start",width:"100%",background:"unset",...Ft.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Ie.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:W=>Pt(W,e.id,p)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx($o,{onClick:S,children:t.jsx(bo,{})}),t.jsx(Ht,{onClose:b,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:c,onRename:y,isDefault:e.isDefault,anchorEl:M})]})}),t.jsx(_,{controller:a===!1,children:t.jsx(_t,{mode:"checked_or_hover",isDisabled:u===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(W=>{const U=()=>{D(W.id)};return{label:t.jsx(po,{taskDetail:W,onRowClick:U,tagList:d,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:B==="small"?null:t.jsx(yo,{children:t.jsx(jo,{})}),value:W.id,defaultChecked:!1,groupLabel:!1}})],name:`${r}.selectedIds`,style:{width:"100%",rowGap:s.sp3},checkBoxStyle:{padding:s.sp3},labelCheckBoxStyle:{padding:s.sp3},onDragStart:k,draggable:!0})})]})},ho=o.div`
246
+ `,{common:Ge,dateFormat:co,taskManagement:Ie}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new Je(125,170,170,250,300)},po=({taskDetail:e,tagList:d,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:u})=>{const a=ie(),p=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,c=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Ge.strings.empty,{getValues:C,resetField:v,getFieldState:I}=it(),D=(k,f)=>{const w=Be(k,f,xe);I(w).invalid?v(w):m(e,{timeSpent:C(w)})};return t.jsxs(mo,{children:[t.jsxs(vo,{windowSize:a,onClick:h,responsiveWidth:X[0].width,children:[t.jsxs(So,{windowSize:a,children:[t.jsx(Lo,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ee,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(Eo,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ee,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(Go,{windowSize:a,responsiveWidth:X[0].width,children:t.jsx(No,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[1].width,children:ze(e.status.code)}),t.jsx(zo,{windowSize:a,responsiveWidth:X[2].width,children:ze(e.priority.code)}),t.jsx(Bo,{windowSize:a,responsiveWidth:X[3].width,children:e.dueDate!=null?e.dueDate.format(co.visual.MMMDCommaYYYYformat):t.jsx(go,{children:Ge.strings.hyphen})}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[4].width,children:p>0?t.jsxs(ko,{children:[t.jsx(Kt,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Io,{children:t.jsx(Do,{children:c})}),p>1?t.jsx(xo,{children:`${Ge.strings.plus}${p-1}`}):null]}):null}),t.jsx(Ao,{windowSize:a,responsiveWidth:X[5].width,children:e.tagIds.length>0?t.jsx(Mo,{children:qt(e.tagIds,d)}):null}),t.jsx(Wo,{windowSize:a,responsiveWidth:X[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Oo,{className:"timeSpentField",children:t.jsx(Yt,{name:Be(r,e.id,xe),placeholder:Ie.common.timeSpentPlaceholder,timeSpentFormat:Ie.common.timeSpentFormat,registerOptions:{validate:k=>es(k)>Zt?(u({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error"):!0},style:{padding:`${s.sp0} ${s.sp1}`,background:"unset"},onInputBlur:()=>{D(r,e.id)},inputStyle:{textAlign:"right",padding:`${s.sp0} ${s.sp2}`}})})})]})},uo=({taskGroup:e,tagList:d,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:u,isCollapsed:a,existingTaskGroupNamesByGroupId:p,onDeleteTaskGroup:i,onExpandAll:c,onCollapseAll:C,onAddNewTaskToTaskGroup:v,onCollapseToggle:I,onTaskManagementRowClick:D,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[M,z]=n.useState(null),B=ie(),{setFocus:$}=it(),x=n.useCallback(()=>{I(e.id)},[I,e.id]),S=n.useCallback(W=>{z(W.currentTarget)},[]),y=n.useCallback(()=>{z(null)},[]),L=n.useCallback(()=>{v(e.id)},[v,e.id]),g=n.useCallback(()=>{z(null),i(e.id)},[i,e.id]),j=n.useCallback(()=>{$(`${r}.groupName`),y()},[y,r,$]);return t.jsxs(ho,{windowSize:B,children:[t.jsx(_,{controller:h,children:t.jsxs(wo,{children:[t.jsxs(fo,{children:[t.jsx(Co,{isOpen:a===!1,onClick:x,children:t.jsx(To,{})}),t.jsx(Ot,{style:{textAlign:"start",width:"100%",background:"unset",...Ft.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Ie.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:W=>Pt(W,e.id,p)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx($o,{onClick:S,children:t.jsx(yo,{})}),t.jsx(Ht,{onClose:y,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:c,onRename:j,isDefault:e.isDefault,anchorEl:M})]})}),t.jsx(_,{controller:a===!1,children:t.jsx(_t,{mode:"checked_or_hover",isDisabled:u===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(W=>{const U=()=>{D(W.id)};return{label:t.jsx(po,{taskDetail:W,onRowClick:U,tagList:d,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:B==="small"?null:t.jsx(jo,{children:t.jsx(bo,{})}),value:W.id,defaultChecked:!1,groupLabel:!1}})],name:`${r}.selectedIds`,style:{width:"100%",rowGap:s.sp3},checkBoxStyle:{padding:s.sp3},labelCheckBoxStyle:{padding:s.sp3},onDragStart:k,draggable:!0})})]})},ho=o.div`
247
247
  box-sizing: border-box;
248
248
  display: flex;
249
249
  flex-direction: column;
@@ -311,13 +311,13 @@ import{av as gt,d as qe,V as t,jn as Y,bz as kt,a9 as _,cm as xt,ak as K,ap as w
311
311
  color: ${e=>e.theme.colors.primary};
312
312
  `,$o=o.div`
313
313
  cursor: pointer;
314
- `,bo=o(Ut)`
314
+ `,yo=o(Ut)`
315
315
  width: ${s.sp3};
316
316
  height: ${s.sp3};
317
- `,yo=o.div`
317
+ `,jo=o.div`
318
318
  padding-left: ${s.sp3};
319
319
  cursor: grab;
320
- `,jo=o(Vt)`
320
+ `,bo=o(Vt)`
321
321
  width: ${s.sp3};
322
322
  height: ${s.sp3};
323
323
  `,vo=o.div`
@@ -430,10 +430,10 @@ import{av as gt,d as qe,V as t,jn as Y,bz as kt,a9 as _,cm as xt,ak as K,ap as w
430
430
  column-gap: ${s.sp2};
431
431
  `,Oo=o.div`
432
432
  max-width: ${s.sp11};
433
- `,Fo=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),H=se.getLocalizedStrings(),Ve=e=>`${e}_form`,Po={rowGap:new Je(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),bn=({taskListView:e,tagListView:d,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:u,onDeleteTaskGroup:a,updateLocalData:p,onTaskManagementRowClick:i,onReloadTasks:c,onColumnSortConfigChanged:C,onSearchTextChanged:v,onBackClick:I,onNewTaskClick:D,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:M,onAddNewTaskToTaskGroup:z,onGroupByFilterChange:B,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:b,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:y})=>{const[W,U]=n.useState(!1),[Q,F]=n.useState(null),[P,oe]=n.useState(null),[q,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:Z,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:be}=d,ye=qe(),je=R=>{ne(R)},he=n.useCallback(R=>{le(R.currentTarget)},[]),me=n.useCallback(R=>{B(R)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(R=>{y(R)},[y]),O=de.users.map(R=>R.user).filter(R=>R!=null),N={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:Z.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:je,onSearchTextChanged:v,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(gs,{value:Z.groupByKey,resetDisabled:Z.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>is("task_management",O,Ce.loggedInUserRole??[],d.tagList)},E=n.useCallback(R=>{le(null),F(Y),p({...e.localData,newTaskGroupName:R})},[e.localData,p]),A=n.useCallback(()=>{le(null)},[]),j=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{F(Y)},[]),te=n.useCallback(R=>{pe(mt=>mt===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&pe(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ut=()=>ee==="Error"?t.jsxs(qo,{children:[t.jsx(Zo,{onClick:c,children:t.jsx(Xo,{})}),t.jsx(Jo,{children:H.common.reloadPage.label})]}):ee==="Completed"&&$e.length===0?t.jsx(ft,{message:H.taskManagement.taskList.noDataText}):ee==="Not-Started"||ee==="In-Progress"?t.jsx(Ct,{fetchState:ee}):t.jsx(Ho,{taskListView:e,tagList:be,renameActiveField:Q,updateTask:m,onDragNDrop:u,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:M,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:p,setActiveTaskGroupId:oe,setRenameActiveField:F,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:b,onCreateTagClick:h}),ht=t.jsx(ss,{spendManagementSectionProps:N});return t.jsxs(Yo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ye.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(As,{anchorEl:fe,groupByKey:Z.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:D,onNewGroupClick:E,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:q}),t.jsx(Ko,{children:ut()}),t.jsx(_,{controller:W===!0,children:t.jsx(xt,{action:{onOkClick:j,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(on,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(nn,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Ho=({taskListView:e,tagList:d,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:u,onDragNDrop:a,updateLocalData:p,setShowDeleteModal:i,handleCreateGroup:c,resetLocalData:C,assignGroupToTasks:v,setGroupCreationInProgress:I,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:M,onShowToast:z,onCreateTagClick:B})=>{const $=n.useRef(null),[x,S]=n.useState(null),b=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:y,uiState:W}=e,[U,Q]=n.useState([]),F=n.useRef(null);us({scrollContainerRef:F,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=bt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d])}),q=n.useMemo(()=>{if(r!==Y)return y;const l=[],G=y.map(O=>{const N=O.tasks.filter(E=>{const A=g.selectedTaskIds.includes(E.id)===!0;return A&&l.push(E),A===!1});return{...O,tasks:N}});return G.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),G},[r,y,g.selectedTaskIds]),pe=n.useCallback(l=>U.includes(q[l].id)||q[l].tasks.length===0?100:b.current?.[l]!=null?b.current[l]+Po.rowGap.value(L):(os*1+ns)*3+as+rs,[U,q,L]),fe=n.useCallback(l=>{S(l.currentTarget)},[]),le=n.useCallback((l,G)=>{b.current={...b.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,y]),ue=n.useCallback(l=>{Q(G=>G.includes(l)?G.filter(O=>l!==O):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{Q(y.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[y]),ee=n.useCallback(()=>{Q([]),$.current?.resetAfterIndex(0,!0)},[]),Z=n.useCallback(()=>{I(),$.current?.scrollTo(0),ne()},[ne,I]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==Y?Z():c(!0):r===Y?c(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,Z,c,m]),$e=n.useCallback(()=>{u(null),C()},[C,u]),be=n.useCallback(l=>{C(),u(l)},[C,u]),ye=n.useCallback(()=>{g.defaultTaskGroupId!=null&&v(g.defaultTaskGroupId)},[v,g.defaultTaskGroupId]),je=async(l,G)=>{if(l.includes(nt)){const N=l.split(".")[2],E=y.flatMap(j=>j.tasks).find(j=>j.id===N),A=G[V][ae][N].priority.selectedOption;if(E!=null&&A!=null){const j=lt.find(T=>T.code===A);j!=null&&h(E,{priority:j})}return}if(l.includes(at)){const N=l.split(".")[2],E=y.flatMap(j=>j.tasks).find(j=>j.id===N),A=G[V][ae][N].status.selectedOption;if(E!=null&&A!=null){const j=dt.find(T=>T.code===A);E!=null&&j!=null&&h(E,{status:j})}return}if(l.includes(st)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,j=G[V][ae][N].assignees.selectedUsers.map(T=>T.userId);A!=null&&j!=null&&E!=null&&h(E,{assignees:j});return}if(l.includes(ot)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,j=G[V][ae][N].dueDate.date;A!=null&&j!=null&&E!=null&&h(E,{dueDate:j});return}if(l.includes(tt)){const N=l.split(".")[2],E=y.flatMap(T=>T.tasks).find(T=>T.id===N),A=y.find(T=>T.tasks.find(te=>te.id===N))?.id,j=G[V][ae][N].tags.selectedOptions;A!=null&&j!=null&&E!=null&&h(E,{tagIds:j});return}l.includes(xe)&&oe.trigger(l);const O=Vo(l,G,g);p(O)};n.useEffect(()=>{const l=oe.watch((G,{name:O})=>{O!=null&&G!=null&&yt(()=>je(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupUpdateStatus.fetchState]);const he=y.length>1&&g.selectedTaskIds.length>0&&r!==Y,me=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(jt,{...oe,children:t.jsx("form",{id:Ve(Me),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(Qo,{isFooterVisible:me,windowSize:L,children:t.jsx(vt,{children:({height:l,width:G})=>t.jsx(St,{ref:$,outerRef:F,height:l,itemCount:q.length,itemSize:pe,estimatedItemSize:Lt,itemKey:O=>q[O].id,width:G,overscanCount:Gt,itemData:{tagList:d,taskGroupsWithTasksList:q,uiState:W,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:be,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:M,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:_o})})})})}),me?t.jsx(Nt,{formId:Ve(Me),primaryBtn:{label:y.length===1&&g.selectedTaskIds.length>0&&r!==Y?Le.taskList.footer.createGroup:Ke.save,style:{width:"135px"},isLoading:e.taskGroupCreationStatus.fetchState==="In-Progress"||e.taskGroupUpdateStatus.fetchState==="In-Progress"},cancelBtn:{label:Ke.cancel,style:{width:"135px"},onClick:$e},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(tn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(sn,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(rn,{children:t.jsx(Ee,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(an,{onClick:ye})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(De,{variant:"secondary",label:H.taskManagement.taskList.footer.moveTo,onClick:fe,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx($s,{taskGroupsList:y,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ne(),v(l)},onClose:ne})]}):void 0}):null]})},_o=({index:e,style:d,data:r})=>{const h=n.useRef(null),m=ie(),{tagList:u,taskGroupsWithTasksList:a,uiState:p,renameActiveField:i,collapsedGroups:c,onCollapseToggle:C,onTaskManagementRowClick:v,setRowHeight:I,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,handleOnDragNDrop:z,onRenameClick:B,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:b,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&I(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const y=n.useCallback(F=>{const P=F.dataTransfer.getData("row");z(P,a[e].id)},[z,e,a]),W=n.useCallback(F=>{F.preventDefault()},[]),U=(F,P)=>{F.dataTransfer.setData("row",P)},Q=()=>{B(a[e].id)};return t.jsx(en,{style:{...d,width:"100%"},ref:h,onDrop:y,onDragOver:W,children:t.jsx(Uo,{taskGroup:a[e],showGroupName:!0,tagList:u,uiState:p,isCollapsed:c.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:v,onColumnSortConfigChanged:D,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:U,onRenameClick:Q,onTimeSpentUpdate:b,onShowToast:L,onCreateTagClick:g},a[e].id)})},Uo=({taskGroup:e,tagList:d,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,userList:i,existingTaskGroupNamesByGroupId:c,onRenameClick:C,onTaskManagementRowClick:v,onCollapseToggle:I,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),b=S==="medium-regular"||S==="medium-compact"||S==="small"?uo:Wt;return t.jsx(b,{taskGroup:e,tagList:d,userList:i,sectionId:V,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,existingTaskGroupNamesByGroupId:c,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,onCollapseToggle:I,onTaskManagementRowClick:v,onColumnSortConfigChanged:D,onDragStart:z,onRenameClick:C,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})},Ye=(e,d,r,h)=>{const m={},u={};e.forEach(p=>{u[p.id]={[ke]:[],[ce]:d.existingTaskGroupNamesByGroupId[p.id]},p.tasks.forEach(i=>{d.selectedTaskIds.includes(i.id)&&u[p.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(c=>({label:c.name,value:c.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(c=>({label:c.name,value:c.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(c=>c.user)},[tt]:{allOptions:It(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[Y]:{[ce]:d.newTaskGroupName,[ke]:[]},...u},[ae]:m};return{[V]:a}},Vo=(e,d,r)=>{if(e.includes(V)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(Y)?{...r,newTaskGroupName:d[V].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:d[V].groupData[h][ce]}};if(e.includes(ke)){const m=At(Rt(Object.values(d[V][rt]),ke)).filter(u=>u!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Ko=o.div`
433
+ `,Fo=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),H=se.getLocalizedStrings(),Ve=e=>`${e}_form`,Po={rowGap:new Je(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),yn=({taskListView:e,tagListView:d,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:u,onDeleteTaskGroup:a,updateLocalData:p,onTaskManagementRowClick:i,onReloadTasks:c,onColumnSortConfigChanged:C,onSearchTextChanged:v,onBackClick:I,onNewTaskClick:D,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:M,onAddNewTaskToTaskGroup:z,onGroupByFilterChange:B,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:y,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:j})=>{const[W,U]=n.useState(!1),[Q,F]=n.useState(null),[P,oe]=n.useState(null),[Y,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:Z,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:ye}=d,je=Ye(),be=R=>{ne(R)},he=n.useCallback(R=>{le(R.currentTarget)},[]),me=n.useCallback(R=>{B(R)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(R=>{j(R)},[j]),O=de.users.map(R=>R.user).filter(R=>R!=null),N={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:Z.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:be,onSearchTextChanged:v,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(gs,{value:Z.groupByKey,resetDisabled:Z.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>is("task_management",O,Ce.loggedInUserRole??[],d.tagList)},E=n.useCallback(R=>{le(null),F(q),p({...e.localData,newTaskGroupName:R})},[e.localData,p]),A=n.useCallback(()=>{le(null)},[]),b=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{F(q)},[]),te=n.useCallback(R=>{pe(mt=>mt===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&pe(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ut=()=>ee==="Error"?t.jsxs(Yo,{children:[t.jsx(Zo,{onClick:c,children:t.jsx(Xo,{})}),t.jsx(Jo,{children:H.common.reloadPage.label})]}):ee==="Completed"&&$e.length===0?t.jsx(ft,{message:H.taskManagement.taskList.noDataText}):ee==="Not-Started"||ee==="In-Progress"?t.jsx(Ct,{fetchState:ee}):t.jsx(Ho,{taskListView:e,tagList:ye,renameActiveField:Q,updateTask:m,onDragNDrop:u,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:M,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:p,setActiveTaskGroupId:oe,setRenameActiveField:F,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:y,onCreateTagClick:h}),ht=t.jsx(ss,{spendManagementSectionProps:N});return t.jsxs(qo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:je.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(As,{anchorEl:fe,groupByKey:Z.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:D,onNewGroupClick:E,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:Y}),t.jsx(Ko,{children:ut()}),t.jsx(_,{controller:W===!0,children:t.jsx(xt,{action:{onOkClick:b,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(on,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(nn,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Ho=({taskListView:e,tagList:d,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:u,onDragNDrop:a,updateLocalData:p,setShowDeleteModal:i,handleCreateGroup:c,resetLocalData:C,assignGroupToTasks:v,setGroupCreationInProgress:I,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:M,onShowToast:z,onCreateTagClick:B})=>{const $=n.useRef(null),[x,S]=n.useState(null),y=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:j,uiState:W}=e,[U,Q]=n.useState([]),F=n.useRef(null);us({scrollContainerRef:F,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=yt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>qe(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d]),values:n.useMemo(()=>qe(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d])}),Y=n.useMemo(()=>{if(r!==q)return j;const l=[],G=j.map(O=>{const N=O.tasks.filter(E=>{const A=g.selectedTaskIds.includes(E.id)===!0;return A&&l.push(E),A===!1});return{...O,tasks:N}});return G.unshift({groupName:"",isDefault:!1,id:q,tasks:l}),G},[r,j,g.selectedTaskIds]),pe=n.useCallback(l=>U.includes(Y[l].id)||Y[l].tasks.length===0?100:y.current?.[l]!=null?y.current[l]+Po.rowGap.value(L):(os*1+ns)*3+as+rs,[U,Y,L]),fe=n.useCallback(l=>{S(l.currentTarget)},[]),le=n.useCallback((l,G)=>{y.current={...y.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,j]),ue=n.useCallback(l=>{Q(G=>G.includes(l)?G.filter(O=>l!==O):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{Q(j.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[j]),ee=n.useCallback(()=>{Q([]),$.current?.resetAfterIndex(0,!0)},[]),Z=n.useCallback(()=>{I(),$.current?.scrollTo(0),ne()},[ne,I]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==q?Z():c(!0):r===q?c(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,Z,c,m]),$e=n.useCallback(()=>{u(null),C()},[C,u]),ye=n.useCallback(l=>{C(),u(l)},[C,u]),je=n.useCallback(()=>{g.defaultTaskGroupId!=null&&v(g.defaultTaskGroupId)},[v,g.defaultTaskGroupId]),be=async(l,G)=>{if(l.includes(nt)){const N=l.split(".")[2],E=j.flatMap(b=>b.tasks).find(b=>b.id===N),A=G[V][ae][N].priority.selectedOption;if(E!=null&&A!=null){const b=lt.find(T=>T.code===A);b!=null&&h(E,{priority:b})}return}if(l.includes(at)){const N=l.split(".")[2],E=j.flatMap(b=>b.tasks).find(b=>b.id===N),A=G[V][ae][N].status.selectedOption;if(E!=null&&A!=null){const b=dt.find(T=>T.code===A);E!=null&&b!=null&&h(E,{status:b})}return}if(l.includes(st)){const N=l.split(".")[2],E=j.flatMap(T=>T.tasks).find(T=>T.id===N),A=j.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[V][ae][N].assignees.selectedUsers.map(T=>T.userId);A!=null&&b!=null&&E!=null&&h(E,{assignees:b});return}if(l.includes(ot)){const N=l.split(".")[2],E=j.flatMap(T=>T.tasks).find(T=>T.id===N),A=j.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[V][ae][N].dueDate.date;A!=null&&b!=null&&E!=null&&h(E,{dueDate:b});return}if(l.includes(tt)){const N=l.split(".")[2],E=j.flatMap(T=>T.tasks).find(T=>T.id===N),A=j.find(T=>T.tasks.find(te=>te.id===N))?.id,b=G[V][ae][N].tags.selectedOptions;A!=null&&b!=null&&E!=null&&h(E,{tagIds:b});return}l.includes(xe)&&oe.trigger(l);const O=Vo(l,G,g);p(O)};n.useEffect(()=>{const l=oe.watch((G,{name:O})=>{O!=null&&G!=null&&jt(()=>be(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupUpdateStatus.fetchState]);const he=j.length>1&&g.selectedTaskIds.length>0&&r!==q,me=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(bt,{...oe,children:t.jsx("form",{id:Ve(Me),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(Qo,{isFooterVisible:me,windowSize:L,children:t.jsx(vt,{children:({height:l,width:G})=>t.jsx(St,{ref:$,outerRef:F,height:l,itemCount:Y.length,itemSize:pe,estimatedItemSize:Lt,itemKey:O=>Y[O].id,width:G,overscanCount:Gt,itemData:{tagList:d,taskGroupsWithTasksList:Y,uiState:W,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:ye,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:M,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:_o})})})})}),me?t.jsx(Nt,{formId:Ve(Me),primaryBtn:{label:j.length===1&&g.selectedTaskIds.length>0&&r!==q?Le.taskList.footer.createGroup:Ke.save,style:{width:"135px"},isLoading:e.taskGroupCreationStatus.fetchState==="In-Progress"||e.taskGroupUpdateStatus.fetchState==="In-Progress"},cancelBtn:{label:Ke.cancel,style:{width:"135px"},onClick:$e},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(tn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(sn,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(rn,{children:t.jsx(Ee,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(an,{onClick:je})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(De,{variant:"secondary",label:H.taskManagement.taskList.footer.moveTo,onClick:fe,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx($s,{taskGroupsList:j,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ne(),v(l)},onClose:ne})]}):void 0}):null]})},_o=({index:e,style:d,data:r})=>{const h=n.useRef(null),m=ie(),{tagList:u,taskGroupsWithTasksList:a,uiState:p,renameActiveField:i,collapsedGroups:c,onCollapseToggle:C,onTaskManagementRowClick:v,setRowHeight:I,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,handleOnDragNDrop:z,onRenameClick:B,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&I(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const j=n.useCallback(F=>{const P=F.dataTransfer.getData("row");z(P,a[e].id)},[z,e,a]),W=n.useCallback(F=>{F.preventDefault()},[]),U=(F,P)=>{F.dataTransfer.setData("row",P)},Q=()=>{B(a[e].id)};return t.jsx(en,{style:{...d,width:"100%"},ref:h,onDrop:j,onDragOver:W,children:t.jsx(Uo,{taskGroup:a[e],showGroupName:!0,tagList:u,uiState:p,isCollapsed:c.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:v,onColumnSortConfigChanged:D,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:U,onRenameClick:Q,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g},a[e].id)})},Uo=({taskGroup:e,tagList:d,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,userList:i,existingTaskGroupNamesByGroupId:c,onRenameClick:C,onTaskManagementRowClick:v,onCollapseToggle:I,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),y=S==="medium-regular"||S==="medium-compact"||S==="small"?uo:Wt;return t.jsx(y,{taskGroup:e,tagList:d,userList:i,sectionId:V,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,existingTaskGroupNamesByGroupId:c,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,onCollapseToggle:I,onTaskManagementRowClick:v,onColumnSortConfigChanged:D,onDragStart:z,onRenameClick:C,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})},qe=(e,d,r,h)=>{const m={},u={};e.forEach(p=>{u[p.id]={[ke]:[],[ce]:d.existingTaskGroupNamesByGroupId[p.id]},p.tasks.forEach(i=>{d.selectedTaskIds.includes(i.id)&&u[p.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(c=>({label:c.name,value:c.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(c=>({label:c.name,value:c.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(c=>c.user)},[tt]:{allOptions:It(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[q]:{[ce]:d.newTaskGroupName,[ke]:[]},...u},[ae]:m};return{[V]:a}},Vo=(e,d,r)=>{if(e.includes(V)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(q)?{...r,newTaskGroupName:d[V].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:d[V].groupData[h][ce]}};if(e.includes(ke)){const m=At(Rt(Object.values(d[V][rt]),ke)).filter(u=>u!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Ko=o.div`
434
434
  display: block;
435
435
  height: 100%;
436
- `,Yo=o.div`
436
+ `,qo=o.div`
437
437
  width: 100%;
438
438
  height: 100vh;
439
439
  display: flex;
@@ -441,7 +441,7 @@ import{av as gt,d as qe,V as t,jn as Y,bz as kt,a9 as _,cm as xt,ak as K,ap as w
441
441
  row-gap: ${s.sp4};
442
442
  background-color: ${e=>e.theme.colors.grey4};
443
443
  overflow: hidden;
444
- `,qo=o.div`
444
+ `,Yo=o.div`
445
445
  display: flex;
446
446
  width: 100%;
447
447
  height: calc(100% - 60px);
@@ -505,4 +505,4 @@ import{av as gt,d as qe,V as t,jn as Y,bz as kt,a9 as _,cm as xt,ak as K,ap as w
505
505
  align-items: center;
506
506
  justify-content: flex-end;
507
507
  padding-right: ${s.sp6};
508
- `;export{bn as default,Ve as uniqueFormName};
508
+ `;export{yn as default,Ve as uniqueFormName};
@@ -1,4 +1,4 @@
1
- import{V as t,b1 as _,aA as S,dg as B,bp as H,o as c,ag as L}from"./index-CK2D3iZ1.js";import{a as n}from"./sentry-Dm3bm_ok.js";import{n as g}from"./mui-DCr-y2iU.js";import{Y as q}from"./core-D2k9JfRf.js";import{V as A}from"./CollapsableReportTable-l16Ixpgb-BS0sBPj9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="fbf796ca-1897-4960-b519-94a58a523162",e._sentryDebugIdIdentifier="sentry-dbid-fbf796ca-1897-4960-b519-94a58a523162")}catch{}})();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`
1
+ import{V as t,b1 as _,aA as S,dg as B,bp as H,o as a,ag as L}from"./index-BoDHThmj.js";import{a as n}from"./sentry-CAa_RBiQ.js";import{n as g}from"./mui-DjUnBv6N.js";import{Y as q}from"./core-DesIUmVX.js";import{V as A}from"./CollapsableReportTable-CvXUxopt-CWXKqXg0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5bcff1db-c99f-4eff-858a-683e5bc8838b",e._sentryDebugIdIdentifier="sentry-dbid-5bcff1db-c99f-4eff-858a-683e5bc8838b")}catch{}})();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;
@@ -25,8 +25,8 @@ import{V as t,b1 as _,aA as S,dg as B,bp as H,o as c,ag as L}from"./index-CK2D3i
25
25
  position: relative;
26
26
  scrollbar-width: none;
27
27
  `,J=g(L)``,K=g.div`
28
- top: ${c.sp0};
29
- left: ${c.sp0};
28
+ top: ${a.sp0};
29
+ left: ${a.sp0};
30
30
  width: calc(${e=>h*e.numberOfTicksSelected}px);
31
31
  position: absolute;
32
32
  height: ${p}px;
@@ -34,19 +34,19 @@ import{V as t,b1 as _,aA as S,dg as B,bp as H,o as c,ag as L}from"./index-CK2D3i
34
34
  .slider-icon {
35
35
  fill: ${e=>e.theme.colors.grey1};
36
36
  }
37
- border-radius: ${c.sp2};
38
- border-left: ${c.sp0};
39
- border-right: ${c.sp0};
37
+ border-radius: ${a.sp2};
38
+ border-left: ${a.sp0};
39
+ border-right: ${a.sp0};
40
40
  &:hover {
41
41
  border: 1px solid ${e=>e.theme.colors.primary};
42
- border-radius: ${c.sp2};
43
- border-left: ${c.sp0};
44
- border-right: ${c.sp0};
42
+ border-radius: ${a.sp2};
43
+ border-left: ${a.sp0};
44
+ border-right: ${a.sp0};
45
45
  .slider-icon {
46
46
  fill: ${e=>e.theme.colors.primary};
47
47
  }
48
48
  }
49
- line-height: ${c.sp0};
49
+ line-height: ${a.sp0};
50
50
  pointer-events: none;
51
51
  box-sizing: border-box;
52
52
  `,Q=g.div`
@@ -61,4 +61,4 @@ import{V as t,b1 as _,aA as S,dg as B,bp as H,o as c,ag as L}from"./index-CK2D3i
61
61
  cursor: pointer;
62
62
  pointer-events: all;
63
63
  color: ${e=>e.theme.colors.grey5};
64
- `;function j({iconPosition:e}){switch(e){case"left":return t.jsx(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 q.createPortal(e.children,e.parentNode)}function re({enabled:e,firstMonthOfFY:s,timeframe:l,tick:r,tickIndex:u,isSelected:a,onClick:f}){return t.jsx(Z,{isEnabled:e,isSelected:a,onClick:()=>{f(r,u,l)},children:t.jsx(J,{children:A(s,r,l)})})}function ne(e,s,l,r,u){const a=s-e,f=Math.floor(e/h)+Math.round(a/h),w=f+l.length-r.length,x=f+l.length,b=u-x;return{selectedTicks:{fromStart:{startIndex:f,length:l.length},fromEnd:{offsetFromEnd:b,length:l.length}},highlightedOfSelectedTicks:{startIndex:w,length:r.length}}}function oe(e){return e.startIndex!=null}function I(e,s){let l={startIndex:0,length:0};if(oe(e))l=e;else{const r=e.length;l={startIndex:s.length-e.offsetFromEnd-r+1,length:e.length}}return l}function le({width:e,firstMonthOfFY:s,timeframe:l,timeframeTicks:r,isEnabled:u,selection:a,onClick:f,onSelectionChanged:w}){const x=n.createRef(),b=n.useRef(null),[z,M]=n.useState(!1),[i,T]=n.useState(I(a.selectedTicks,r)),$=n.useRef(i.startIndex);n.useEffect(()=>{$.current=i.startIndex});const[y,C]=n.useState(a.highlightedOfSelectedTicks),O=(i.startIndex+i.length>r.length?Math.max(r.length-i.length,0):i.startIndex)*h,[E,F]=n.useState({x:O,y:0});n.useEffect(()=>{M(!0)},[]),n.useEffect(()=>{const o=I(a.selectedTicks,r);if(!S(i,o)){T(o);const d=o.startIndex*h;F({x:d,y:0})}S(y,a.highlightedOfSelectedTicks)||C(a.highlightedOfSelectedTicks)},[i,y,a,r]),n.useLayoutEffect(()=>{const{startIndex:o,length:d}=i;x.current?.scrollToItem($.current<=o?o+d-1:o)},[x,i]);const N=u!==!1,P=(o,d,m)=>{f?.(m,o)},V=(o,d)=>{const m=ne(E.x,d.x,i,y,r.length);w?.(m.selectedTicks,m.highlightedOfSelectedTicks,l,r)},D=({index:o,style:d})=>{const m=r[o],{startIndex:v,length:R}=y,Y=o>=v&&o<v+R;return t.jsx("div",{style:{...d},children:t.jsx(re,{enabled:N,firstMonthOfFY:s,timeframe:l,tick:m,tickIndex:o,isSelected:Y,onClick:P},o)})},k=document.getElementsByClassName("date-range-list")[0];return t.jsxs(t.Fragment,{children:[t.jsx(G,{ref:x,height:p,width:e,itemCount:r.length,itemSize:h,layout:"horizontal",className:"date-range-list",style:{overflowY:"hidden"},children:D}),z===!0&&k!=null?t.jsx(te,{parentNode:k,children:t.jsx(B,{axis:"x",defaultPosition:{x:0,y:0},position:E,bounds:{left:0,right:(r.length-i.length)*h},grid:[1,0],scale:1,onStop:V,nodeRef:b,children:t.jsxs(K,{numberOfTicksSelected:i.length,ref:b,children:[t.jsx(Q,{children:t.jsx(j,{iconPosition:"left"})}),t.jsx(ee,{children:t.jsx(j,{iconPosition:"right"})})]})})}):null]})}function he(e){return t.jsx(X,{children:t.jsx(_,{children:({width:s})=>t.jsx(le,{...e,width:s})})})}export{p as a,he as p};
64
+ `;function j({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 q.createPortal(e.children,e.parentNode)}function re({enabled:e,firstMonthOfFY:s,timeframe:l,tick:r,tickIndex:u,isSelected:c,onClick:f}){return t.jsx(Z,{isEnabled:e,isSelected:c,onClick:()=>{f(r,u,l)},children:t.jsx(J,{children:A(s,r,l)})})}function ne(e,s,l,r,u){const c=s-e,f=Math.floor(e/h)+Math.round(c/h),w=f+l.length-r.length,x=f+l.length,b=u-x;return{selectedTicks:{fromStart:{startIndex:f,length:l.length},fromEnd:{offsetFromEnd:b,length:l.length}},highlightedOfSelectedTicks:{startIndex:w,length:r.length}}}function oe(e){return e.startIndex!=null}function I(e,s){let l={startIndex:0,length:0};if(oe(e))l=e;else{const r=e.length;l={startIndex:s.length-e.offsetFromEnd-r+1,length:e.length}}return l}function le({width:e,firstMonthOfFY:s,timeframe:l,timeframeTicks:r,isEnabled:u,selection:c,onClick:f,onSelectionChanged:w}){const x=n.createRef(),b=n.useRef(null),[z,M]=n.useState(!1),[i,T]=n.useState(I(c.selectedTicks,r)),$=n.useRef(i.startIndex);n.useEffect(()=>{$.current=i.startIndex});const[y,C]=n.useState(c.highlightedOfSelectedTicks),O=(i.startIndex+i.length>r.length?Math.max(r.length-i.length,0):i.startIndex)*h,[E,F]=n.useState({x:O,y:0});n.useEffect(()=>{M(!0)},[]),n.useEffect(()=>{const o=I(c.selectedTicks,r);if(!S(i,o)){T(o);const d=o.startIndex*h;F({x:d,y:0})}S(y,c.highlightedOfSelectedTicks)||C(c.highlightedOfSelectedTicks)},[i,y,c,r]),n.useLayoutEffect(()=>{const{startIndex:o,length:d}=i;x.current?.scrollToItem($.current<=o?o+d-1:o)},[x,i]);const N=u!==!1,P=(o,d,m)=>{f?.(m,o)},V=(o,d)=>{const m=ne(E.x,d.x,i,y,r.length);w?.(m.selectedTicks,m.highlightedOfSelectedTicks,l,r)},D=({index:o,style:d})=>{const m=r[o],{startIndex:v,length:R}=y,Y=o>=v&&o<v+R;return t.jsx("div",{style:{...d},children:t.jsx(re,{enabled:N,firstMonthOfFY:s,timeframe:l,tick:m,tickIndex:o,isSelected:Y,onClick:P},o)})},k=document.getElementsByClassName("date-range-list")[0];return t.jsxs(t.Fragment,{children:[t.jsx(G,{ref:x,height:p,width:e,itemCount:r.length,itemSize:h,layout:"horizontal",className:"date-range-list",style:{overflowY:"hidden"},children:D}),z===!0&&k!=null?t.jsx(te,{parentNode:k,children:t.jsx(B,{axis:"x",defaultPosition:{x:0,y:0},position:E,bounds:{left:0,right:(r.length-i.length)*h},grid:[1,0],scale:1,onStop:V,nodeRef:b,children:t.jsxs(K,{numberOfTicksSelected:i.length,ref:b,children:[t.jsx(Q,{children:t.jsx(j,{iconPosition:"left"})}),t.jsx(ee,{children:t.jsx(j,{iconPosition:"right"})})]})})}):null]})}function he(e){return t.jsx(X,{children:t.jsx(_,{children:({width:s})=>t.jsx(le,{...e,width:s})})})}export{p as a,he as p};
@@ -1,4 +1,4 @@
1
- import{V as s,o,ag as f,F as p}from"./index-CK2D3iZ1.js";import{n}from"./mui-DCr-y2iU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="eec28776-4362-4e5e-9e62-1fe27e6c6175",e._sentryDebugIdIdentifier="sentry-dbid-eec28776-4362-4e5e-9e62-1fe27e6c6175")}catch{}})();const u=n.div`
1
+ import{V as s,o,ag as f,F as p}from"./index-BoDHThmj.js";import{n}from"./mui-DjUnBv6N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="eec28776-4362-4e5e-9e62-1fe27e6c6175",e._sentryDebugIdIdentifier="sentry-dbid-eec28776-4362-4e5e-9e62-1fe27e6c6175")}catch{}})();const u=n.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{q as d,V as i,y as n,ag as u,bG as b}from"./index-CK2D3iZ1.js";import{n as r}from"./mui-DCr-y2iU.js";import{b as l}from"./TimeframeSwitcher-BkGiMDhd-Dhql0xBj.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="df9bb10f-c132-4c21-bf02-23d31c1b1ae2",e._sentryDebugIdIdentifier="sentry-dbid-df9bb10f-c132-4c21-bf02-23d31c1b1ae2")}catch{}})();const s="ZeniSwitch",t={root:`${s}-root`,switchBase:`${s}-switchBase`,track:`${s}-track`,thumb:`${s}-thumb`},w=({className:e,...o})=>i.jsx(b,{...o,className:e,classes:{...t}}),x=r(w)(({theme:e})=>({[`& .${t.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${t.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${t.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${t.root}.${t.switchBase}.Mui-checked + .${t.track}`]:{backgroundColor:e.colors.grey1},[`&.${t.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${t.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${t.switchBase}.Mui-checked .${t.thumb}`]:{backgroundColor:e.colors.primary},[`& .${t.switchBase}.Mui-checked .${t.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>')`},[`& .${t.switchBase}.Mui-checked + .${t.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${t.switchBase}.Mui-disabled + .${t.track}`]:{opacity:.7},[`& .${t.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"}},[`& .${t.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),p=e=>i.jsx(x,{...e}),c={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},y=r.div`
1
+ import{q as n,V as i,y as d,ag as b,bG as u}from"./index-BoDHThmj.js";import{n as r}from"./mui-DjUnBv6N.js";import{b as l}from"./TimeframeSwitcher-YicRGCkf-D-mysr-q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4b9bf241-6c8c-46b3-b77b-6991e38f0cef",e._sentryDebugIdIdentifier="sentry-dbid-4b9bf241-6c8c-46b3-b77b-6991e38f0cef")}catch{}})();const s="ZeniSwitch",t={root:`${s}-root`,switchBase:`${s}-switchBase`,track:`${s}-track`,thumb:`${s}-thumb`},w=({className:e,...o})=>i.jsx(u,{...o,className:e,classes:{...t}}),x=r(w)(({theme:e})=>({[`& .${t.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${t.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${t.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${t.root}.${t.switchBase}.Mui-checked + .${t.track}`]:{backgroundColor:e.colors.grey1},[`&.${t.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${t.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${t.switchBase}.Mui-checked .${t.thumb}`]:{backgroundColor:e.colors.primary},[`& .${t.switchBase}.Mui-checked .${t.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>')`},[`& .${t.switchBase}.Mui-checked + .${t.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${t.switchBase}.Mui-disabled + .${t.track}`]:{opacity:.7},[`& .${t.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"}},[`& .${t.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),p=e=>i.jsx(x,{...e}),c={timeframePaddingLeft:new d(0,0,125),timeframePaddingBottom:new d(8,8,0)},y=r.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -25,7 +25,7 @@ import{q as d,V as i,y as n,ag as u,bG as b}from"./index-CK2D3iZ1.js";import{n a
25
25
  flex-direction: row;
26
26
  align-items: center;
27
27
  justify-content: flex-end;
28
- `,C=r(u)`
28
+ `,C=r(b)`
29
29
  color: ${e=>e.isOn?e.theme.colors.primary:e.theme.colors.hero};
30
30
  opacity: ${e=>e.isDisabled?.5:1};
31
- `,f=({label:e,isOn:o,isToggleDisabled:a,onValueChanged:h})=>i.jsxs(i.Fragment,{children:[i.jsx(C,{isOn:o,isDisabled:a===!0,children:e}),i.jsx(p,{checked:o,edge:"end",disabled:a===!0,disableRipple:a===!0,onChange:g=>{h(g.target.checked)}})]}),T=e=>{const o=d();return i.jsxs(y,{children:[i.jsx(m,{windowSize:o,children:i.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),i.jsx(k,{children:i.jsx(f,{...e.toggle})})]})},v=e=>{const o=d();return i.jsxs($,{children:[i.jsx(m,{windowSize:o,children:i.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),i.jsx(j,{children:i.jsx(f,{...e.toggle})})]})};function L(e){const o=d();return o==="small"||o==="medium-compact"?i.jsx(T,{...e}):i.jsx(v,{...e})}export{L as M};
31
+ `,f=({label:e,isOn:o,isToggleDisabled:a,onValueChanged:h})=>i.jsxs(i.Fragment,{children:[i.jsx(C,{isOn:o,isDisabled:a===!0,children:e}),i.jsx(p,{checked:o,edge:"end",disabled:a===!0,disableRipple:a===!0,onChange:g=>{h(g.target.checked)}})]}),T=e=>{const o=n();return i.jsxs(y,{children:[i.jsx(m,{windowSize:o,children:i.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),i.jsx(k,{children:i.jsx(f,{...e.toggle})})]})},v=e=>{const o=n();return i.jsxs($,{children:[i.jsx(m,{windowSize:o,children:i.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),i.jsx(j,{children:i.jsx(f,{...e.toggle})})]})};function L(e){const o=n();return o==="small"||o==="medium-compact"?i.jsx(T,{...e}):i.jsx(v,{...e})}export{L as M};
@@ -1,19 +1,19 @@
1
- import{aA as M,q as z,V as t,d as x,c as f,b as T,aV as q,aK as H,aI as R,o as p,ag as C,b7 as X,ak as F,F as S,aJ as Y,aP as E,b0 as G,b1 as J,aM as Q,aQ as Z,bO as N}from"./index-CK2D3iZ1.js";import{S as w,a as U}from"./sentry-Dm3bm_ok.js";import{EZ as W}from"./zeni-epic-state-Cgro3mH-.js";import{n as g}from"./mui-DCr-y2iU.js";import{I as ee,T as te}from"./ReloadCard-BGPtXAV7-D43T0ICm.js";import{o as ae,r as re}from"./graphic-no-data-l-DU4J8fDt-C5a4mTsI.js";import{H as k,X as L,Y as $,K as O,O as A,Q as ne,S as oe}from"./recharts-CIKvFUT6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3bdd883e-57c4-4807-ad4b-af23d14b96f7",e._sentryDebugIdIdentifier="sentry-dbid-3bdd883e-57c4-4807-ad4b-af23d14b96f7")}catch{}})();const ie=g(E)`
1
+ import{aA as M,q as z,V as t,d as x,c as p,b as T,aV as q,aK as H,aI as R,o as f,ag as C,b7 as X,ak as F,F as S,aJ as Y,aP as E,b0 as G,b1 as J,aM as Q,aQ as Z,bO as N}from"./index-BoDHThmj.js";import{w,a as U}from"./sentry-CAa_RBiQ.js";import{EZ as W}from"./zeni-epic-state-BO46e_7F.js";import{n as g}from"./mui-DjUnBv6N.js";import{I as ee,T as te}from"./ReloadCard-CRQf0INS-CM9HcBcK.js";import{o as ae,r as re}from"./graphic-no-data-l-DU4J8fDt-DuzN_8KG.js";import{H as k,X as L,Y as O,K as $,O as A,Q as ne,S as oe}from"./recharts-CFBD4y8X.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bd9c6cfc-1008-419c-98c0-2ccbdff19fad",e._sentryDebugIdIdentifier="sentry-dbid-bd9c6cfc-1008-419c-98c0-2ccbdff19fad")}catch{}})();const ie=g(E)`
2
2
  justify-content: space-between;
3
3
  margin: 0;
4
4
  height: ${e=>e.height!=null?e.height+"px":"auto"};
5
5
  width: ${e=>e.width!=null?e.width+"px":"auto"};
6
6
  `,se=g.div``,le=g(C)`
7
7
  color: ${e=>e.theme.colors.hero};
8
- margin: ${p.sp2} ${p.sp0} ${p.sp2} ${p.sp0};
9
- `,ce=({width:e,height:n,label:r})=>{const l=x();return t.jsxs(ie,{height:n,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(ae,{style:{marginBottom:p.sp4}}):t.jsx(re,{style:{marginBottom:p.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:n,onTimeframeChanged:r,textStyle:l}){const i=o=>S.getLocalizedStrings().timeframe[o];return t.jsx(de,{onClick:o=>o.stopPropagation(),children:t.jsx(N,{pickerValues:e,valueToLabel:i,selectedValue:n,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(Z)`
8
+ margin: ${f.sp2} ${f.sp0} ${f.sp2} ${f.sp0};
9
+ `,ce=({width:e,height:n,label:r})=>{const l=x();return t.jsxs(ie,{height:n,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(ae,{style:{marginBottom:f.sp4}}):t.jsx(re,{style:{marginBottom:f.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:n,onTimeframeChanged:r,textStyle:l}){const i=o=>S.getLocalizedStrings().timeframe[o];return t.jsx(de,{onClick:o=>o.stopPropagation(),children:t.jsx(N,{pickerValues:e,valueToLabel:i,selectedValue:n,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(Z)`
10
10
  color: ${e=>e.theme.colors.champion};
11
11
  `,I=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:n,cardType:r,cardIndex:l,onCardClick:i,timeframe:o,allowedValues:d,chartElement:s,onTimeframeChange:h}){const c=d.length>0?" - ":"";return t.jsx(Y,{"data-testid":Q("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>i(l,r),children:t.jsxs(E,{children:[t.jsxs(I,{style:{marginBottom:f[3]},children:[t.jsx(me,{children:n!=null?n+c:G(r)+c})," ",d.length>0?t.jsx(he,{timeframeSelected:o,onTimeframeChanged:a=>h?.(a??"month"),allowedValues:d}):null]}),t.jsx(I,{style:{width:"100%",height:"100%",cursor:"pointer"},children:t.jsx("div",{style:{width:"100%",height:"100%"},children:t.jsx(J,{children:({height:a,width:m})=>s(m,a)})})})]})})}function P({card:e,reportTitle:n,actions:r,timeframe:l,allowedValues:i,chartElement:o,onTimeframeChange:d}){return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?t.jsx(ee,{dimension:e.dimension,animated:!e.disableAnimations}):e.fetchState==="Error"?t.jsx(te,{dimension:e.dimension,cardType:e.cardType,cardIndex:e.cardIndex,onReloadData:r.onReloadData,reportTitle:n}):t.jsx(ue,{dimension:e.dimension,reportTitle:n,cardType:e.cardType,cardIndex:e.cardIndex,onCardClick:r.onCardClick,timeframe:l,allowedValues:i??["month","quarter","year"],chartElement:o,onTimeframeChange:s=>{r.onTimeframeChange?.(e.cardType,s),d?.(e.cardType,s)}})}w.memo(P);const K=(e,n,r)=>{const l=n.map(a=>({label:a.timePeriod,startDate:a.startDate,endDate:a.endDate})),i=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=i?.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:i??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:n,cardType:r,cardIndex:l,onCardClick:i,timeframe:o,allowedValues:d,chartElement:s,onTimeframeChange:h}){const c=d.length>0?" - ":"";return t.jsx(Y,{"data-testid":Q("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>i(l,r),children:t.jsxs(E,{children:[t.jsxs(I,{style:{marginBottom:p[3]},children:[t.jsx(me,{children:n!=null?n+c:G(r)+c})," ",d.length>0?t.jsx(he,{timeframeSelected:o,onTimeframeChanged:a=>h?.(a??"month"),allowedValues:d}):null]}),t.jsx(I,{style:{width:"100%",height:"100%",cursor:"pointer"},children:t.jsx("div",{style:{width:"100%",height:"100%"},children:t.jsx(J,{children:({height:a,width:m})=>s(m,a)})})})]})})}function P({card:e,reportTitle:n,actions:r,timeframe:l,allowedValues:i,chartElement:o,onTimeframeChange:d}){return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?t.jsx(ee,{dimension:e.dimension,animated:!e.disableAnimations}):e.fetchState==="Error"?t.jsx(te,{dimension:e.dimension,cardType:e.cardType,cardIndex:e.cardIndex,onReloadData:r.onReloadData,reportTitle:n}):t.jsx(ue,{dimension:e.dimension,reportTitle:n,cardType:e.cardType,cardIndex:e.cardIndex,onCardClick:r.onCardClick,timeframe:l,allowedValues:i??["month","quarter","year"],chartElement:o,onTimeframeChange:s=>{r.onTimeframeChange?.(e.cardType,s),d?.(e.cardType,s)}})}w.memo(P);const K=(e,n,r)=>{const l=n.map(a=>({label:a.timePeriod,startDate:a.startDate,endDate:a.endDate})),i=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=i?.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:i??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;
@@ -21,18 +21,18 @@ import{aA as M,q as z,V as t,d as x,c as f,b as T,aV as q,aK as H,aI as R,o as p
21
21
  align-items: center;
22
22
  height: 100%;
23
23
  color: ${e=>e.theme.colors.hero};
24
- `,pe=g.div`
24
+ `,fe=g.div`
25
25
  display: flex;
26
26
  align-items: center;
27
27
  flex: 4 1 0;
28
- `,fe=g.img`
29
- height: ${p.sp4};
28
+ `,pe=g.img`
29
+ height: ${f.sp4};
30
30
  `,xe=g(C)`
31
- margin-left: ${p.sp2};
31
+ margin-left: ${f.sp2};
32
32
  `,ye=g(X)`
33
33
  flex: 1 1 0;
34
34
  color: ${e=>e.theme.colors.primary};
35
35
  `,be=g(F)`
36
36
  flex: 1 1 0;
37
- margin-right: ${p.sp2};
38
- `;function je({report:e,width:n,height:r,showBarHoverBackground:l}){const i=x(),o=K(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx(O,{dataKey:c=>{const a=c[h]!=null?c[h]:void 0;return a!=null&&a.amount>0?a.amount:0},isAnimationActive:!0,animationDuration:800,background:{fill:i.colors.background},children:s.map(c=>t.jsx(A,{fill:i.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(Ie,{chartItemArray:o.chartItems,showBarHoverBackground:l,barElement:d(o.chartItems,o.chartItems[0].barKey),width:n,height:r})}const we=e=>{const{barKey:n,payload:r,chartItems:l,width:i,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:i,height:b,children:t.jsxs(ge,{children:[t.jsxs(pe,{children:[t.jsx(fe,{src:s.logo,alt:s.accountDescription,loading:"lazy"}),t.jsx(xe,{children:s.accountDescription})]}),t.jsx(ye,{children:"⟶"}),t.jsx(be,{children:H("0,0",s[n])})]})})},Ie=({chartItemArray:e,barElement:n,width:r,height:l})=>{const i=e[0],o=i.total,d=i.barKey;return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:j,height:e.length?(b+2*j)*e.length:l,barSize:b,margin:{top:0,right:0,left:0,bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:"default"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),o?.amount??0]}),t.jsx($,{orientation:"left",yAxisId:0,dataKey:s=>s.accountId,type:"category",axisLine:!1,tickLine:!1,width:r/2,mirror:!1,tick:t.jsx(we,{width:r/2,chartItems:e,barKey:d})}),n]})},D=41,v=4;function De({report:e,width:n,height:r,showBarHoverBackground:l,isDetailPage:i}){const o=x(),d=K(i===!0?e.topExpenses.accountsOrdered.length:6,e.allTimePeriods,e.topExpenses),s=(h,c,a)=>t.jsxs(O,{dataKey:m=>{const u=m[c]!=null?m[c]:void 0;return u!=null&&u.amount>0?u.amount:0},isAnimationActive:!0,animationDuration:i===!0?800:void 0,background:void 0,children:[t.jsx(ne,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:B,height:_,offset:V}=m;return t.jsx(oe,{x:u+V,y:y+_/2,fill:o.colors.hero,fontSize:T.smallRegular.fontSize,verticalAnchor:"middle",width:a-110,maxLines:1,children:B})}}),h.map(m=>t.jsx(A,{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(ve,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,n),width:n,height:r,isDetailPage:i===!0})}const ve=({chartItemArray:e,barElement:n,width:r,height:l,isDetailPage:i})=>{const o=x(),d=e[0],s=d.total,h=d.barKey,c=s?.currencySymbol??"";return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:i?v:2,height:i?e.length?(D+2*v)*e.length:l:l+5,barSize:i?D:38,margin:{top:0,right:i?f[0]:f[3],left:i?f[0]:f[3],bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:i?"default":"pointer"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx($,{orientation:"right",yAxisId:0,dataKey:a=>{const m=a[h]!=null?a[h]:void 0,{accountDescription:u}=a;return u!==""&&m!=null?m.amount:0},type:"category",axisLine:!1,tickLine:!1,width:r,mirror:!0,tick:{fill:o.colors.hero,...T.smallRegular.cssObject},tickFormatter:a=>a!==0?q("0,0.[00]a",a,c):""}),n]})};function Te(e){const n=z();return n!=="small"&&n!=="medium-compact"&&e.isDetailPage===!0?t.jsx(je,{...e}):t.jsx(De,{...e})}const Ce=w.memo(Te,M);function Se(e){if(e==null||e.length===0)return!0;let n=!0;for(const r of e)if(r.balance.available.amount!==0){n=!1;break}return n}function Ee({card:e,actions:n,data:r,dndProps:l}){const[i,o]=U.useState(r?.topExTimePeriod??"last_month"),d=[...W],s=e.fetchState==="Completed"?Se(r?.topExpenses.accountsOrdered):!1,h=(c,a)=>s===!1?t.jsx(Ce,{report:r,width:c,height:a,timeframe:i}):t.jsx(ce,{width:c,height:a,label:S.getLocalizedStrings().chartCard.no_data.top_expenses[i]});return t.jsx(R,{isDragging:l?.draggedCardType!=null,isDragOver:l?.dragOverCard===e.cardType,draggable:!0,onDragStart:c=>l?.onDragStart(e.cardType,c),onDragOver:c=>l?.onDragOver(c,e.cardType),onDragLeave:c=>l?.onDragLeave(c),onDrop:c=>l?.onDrop(c,e.cardType),dimension:e.dimension,children:t.jsx(P,{card:e,actions:n,timeframe:i,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}w.memo(Ee);export{Se as E,Ce as I,Ee as L,P as O,ce as c};
37
+ margin-right: ${f.sp2};
38
+ `;function je({report:e,width:n,height:r,showBarHoverBackground:l}){const i=x(),o=K(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx($,{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:i.colors.background},children:s.map(c=>t.jsx(A,{fill:i.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(Ie,{chartItemArray:o.chartItems,showBarHoverBackground:l,barElement:d(o.chartItems,o.chartItems[0].barKey),width:n,height:r})}const we=e=>{const{barKey:n,payload:r,chartItems:l,width:i,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:i,height:b,children:t.jsxs(ge,{children:[t.jsxs(fe,{children:[t.jsx(pe,{src:s.logo,alt:s.accountDescription,loading:"lazy"}),t.jsx(xe,{children:s.accountDescription})]}),t.jsx(ye,{children:"⟶"}),t.jsx(be,{children:H("0,0",s[n])})]})})},Ie=({chartItemArray:e,barElement:n,width:r,height:l})=>{const i=e[0],o=i.total,d=i.barKey;return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:j,height:e.length?(b+2*j)*e.length:l,barSize:b,margin:{top:0,right:0,left:0,bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:"default"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),o?.amount??0]}),t.jsx(O,{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})}),n]})},D=41,v=4;function De({report:e,width:n,height:r,showBarHoverBackground:l,isDetailPage:i}){const o=x(),d=K(i===!0?e.topExpenses.accountsOrdered.length:6,e.allTimePeriods,e.topExpenses),s=(h,c,a)=>t.jsxs($,{dataKey:m=>{const u=m[c]!=null?m[c]:void 0;return u!=null&&u.amount>0?u.amount:0},isAnimationActive:!0,animationDuration:i===!0?800:void 0,background:void 0,children:[t.jsx(ne,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:B,height:_,offset:V}=m;return t.jsx(oe,{x:u+V,y:y+_/2,fill:o.colors.hero,fontSize:T.smallRegular.fontSize,verticalAnchor:"middle",width:a-110,maxLines:1,children:B})}}),h.map(m=>t.jsx(A,{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(ve,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,n),width:n,height:r,isDetailPage:i===!0})}const ve=({chartItemArray:e,barElement:n,width:r,height:l,isDetailPage:i})=>{const o=x(),d=e[0],s=d.total,h=d.barKey,c=s?.currencySymbol??"";return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:i?v:2,height:i?e.length?(D+2*v)*e.length:l:l+5,barSize:i?D:38,margin:{top:0,right:i?p[0]:p[3],left:i?p[0]:p[3],bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:i?"default":"pointer"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx(O,{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,...T.smallRegular.cssObject},tickFormatter:a=>a!==0?q("0,0.[00]a",a,c):""}),n]})};function Te(e){const n=z();return n!=="small"&&n!=="medium-compact"&&e.isDetailPage===!0?t.jsx(je,{...e}):t.jsx(De,{...e})}const Ce=w.memo(Te,M);function Se(e){if(e==null||e.length===0)return!0;let n=!0;for(const r of e)if(r.balance.available.amount!==0){n=!1;break}return n}function Ee({card:e,actions:n,data:r,dndProps:l}){const[i,o]=U.useState(r?.topExTimePeriod??"last_month"),d=[...W],s=e.fetchState==="Completed"?Se(r?.topExpenses.accountsOrdered):!1,h=(c,a)=>s===!1?t.jsx(Ce,{report:r,width:c,height:a,timeframe:i}):t.jsx(ce,{width:c,height:a,label:S.getLocalizedStrings().chartCard.no_data.top_expenses[i]});return t.jsx(R,{isDragging:l?.draggedCardType!=null,isDragOver:l?.dragOverCard===e.cardType,draggable:!0,onDragStart:c=>l?.onDragStart(e.cardType,c),onDragOver:c=>l?.onDragOver(c,e.cardType),onDragLeave:c=>l?.onDragLeave(c),onDrop:c=>l?.onDrop(c,e.cardType),dimension:e.dimension,children:t.jsx(P,{card:e,actions:n,timeframe:i,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}w.memo(Ee);export{Se as E,Ce as I,Ee as L,P as O,ce as c};