@zeniai/web-cockpit-ui 1.15.31-qa → 1.15.32-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 (309) hide show
  1. package/dist/assets/ACHDetailsPage-tTJc_EMP-DYpFLcu6.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BtDuOBey-DmPphsXg.js → AIPerformancePage-ByUb4gCe-JuDAfC8h.js} +18 -18
  3. package/dist/assets/AccountInfoPage-VLhd4vnL-DXlupn44.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BLF92_vF-YYhij8lg.js → AccountInfoPageContent-BHD9tOzB-DoEbtT2v.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-AsMkXu1I-CVe3Hy3M.js → AccountLockedInfoModal-DNjLeZYt-D2fsUG4f.js} +2 -2
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CkaBrm5K-DIIw5FlK.js → AccountReconDetailsDrawerPage-BEfA1bsG-I47iAx1D.js} +10 -10
  7. package/dist/assets/{AccountRow-aEmcYP8T-BbTS3-CK.js → AccountRow-CK5HLVrf-CkNAMQ2u.js} +19 -19
  8. package/dist/assets/{AccountsPromoCardStack-C0At5pn8-DXWBY6OH.js → AccountsPromoCardStack-CaTnaSn3-FCk-ULE2.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CbjThbsA-CLlWEIxe.js → AddAddressForCardDrawer-DmajBqRK-DEh9VlDB.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CMJwUbgf-rrVXiQw9.js → AddToWalletPage-BSzuByT6-nwQQhLJ_.js} +36 -36
  11. package/dist/assets/{AgingReportsPage-B_BSfude-D0QpW98_.js → AgingReportsPage-D2gPAJKw-DtSYadID.js} +4 -4
  12. package/dist/assets/{AllUserItems-CGlWa60t-h-riUf2G.js → AllUserItems-BIf1v0a5-B9sgoKVP.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-DT3vkmLG-C_cL6gbI.js → ApAgingDetailPage-pfP6vTc2-DNdR70Vv.js} +5 -5
  14. package/dist/assets/{AppBasePage-CDy7wPlv-BxqW_Qg2.js → AppBasePage-BGPY0zrb-Cgw6EXRu.js} +11 -11
  15. package/dist/assets/{AppDrawerContent-CEsXm_i6-CW1nkTKX.js → AppDrawerContent-6AX5Y5tK-C6Pu2n78.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-CB2_4-2f-EvDWmVK-.js → ApprovalRulesSettingsPage-BurRfT7n-D8ylQviU.js} +1 -1
  17. package/dist/assets/{ArAgingChart-qxhWsIQb-C4Jx_960.js → ArAgingChart-Dx8jVL0O-CupzM74j.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BbzQryp_-CxVbfpIm.js → ArAgingDetailPage-BcrHD5zT-BoHizRsh.js} +6 -6
  19. package/dist/assets/{AttachmentView-duTVxc9g-BUPi4zJZ.js → AttachmentView-CdIA5zLk-Ccm-n9L1.js} +4 -4
  20. package/dist/assets/{BankAccountSection-CAwAf9xK-CgO5EJAd.js → BankAccountSection-Qe9eRUmE-B6lQ-JzW.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-CaDnP9_--BB5RKb-6.js → BankAccountWarningSection-BfN1KiTF-CqPWwbNY.js} +12 -12
  22. package/dist/assets/{BankConnectionsSettingsPage-CDV7O8cl-CZbYdgLy.js → BankConnectionsSettingsPage-Dmub7xxp-BTbJWWvl.js} +9 -9
  23. package/dist/assets/{BillDetailPage-DJxh2CIc-D5yng4UK.js → BillDetailPage-DHCP-PUd-DpbXdVFf.js} +13 -13
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-B2ZPbqtr-CSSyEtEl.js → BillPayApprovalRuleDetailPage-DS31MPI0-Dn-T4Njh.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-MM7v8ZMx-z7T84rau.js → BillPayApprovalRulesPage-Cc3wkV9k-DMlp8m1G.js} +13 -13
  26. package/dist/assets/{BillPayPromoPage-JK-VOx4W-B_C8DuZu.js → BillPayPromoPage-DslCxm8f-Be4WJJK2.js} +2 -2
  27. package/dist/assets/{BillPaySetUpPage-h0uoCWMl-DvAR3JfV.js → BillPaySetUpPage-DnabCnSI-3IQFcnkB.js} +1 -1
  28. package/dist/assets/BillingSettingsPage-B91NuvxJ-DIg4E4pn.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CPPDFsZt-D-k0WBgw.js → BillsBulkReviewDrawerPage-BOulFH2M-CfBwEemW.js} +1 -1
  30. package/dist/assets/{BoxItem-CYe_gTmA-Bq-cUyHa.js → BoxItem-Dhk2kQlB-ymoj_NmA.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-BU2b5oF1-tm8Rn4Pv.js +138 -0
  32. package/dist/assets/{CardNumberSubText-CFDhtij8-BJ6ircXZ.js → CardNumberSubText-CRjU8jZf-DzA9ggM9.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-BBGGzKh7-CDIItVJw.js → CashbackDetailPage-GNwtsA01-PgGpZ01a.js} +6 -6
  34. package/dist/assets/{ChargeCardDetailPage-BQhago53-CZ9rE-O-.js → ChargeCardDetailPage-DspeEPRm-DHY-84Ch.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-B0E-C3RH-qI0c9wPw.js → ChargeCardListPage-C4N76196-CL7LpKYX.js} +9 -9
  36. package/dist/assets/{ChargeCardListTable-ByGv0xWl-Dy5_i773.js → ChargeCardListTable-ObawcMuP-BDRD6_-S.js} +49 -49
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-LCY9rFqO-DFgHnoSL.js → ChargeCardPaymentHistoryPage-NBxH70YE-Cj3oOuEC.js} +27 -27
  38. package/dist/assets/{ChargeCardPromoPage-CKEnOseD-nYO2qT_d.js → ChargeCardPromoPage-CN9d98ht-4K-amLMG.js} +7 -7
  39. package/dist/assets/{ChargeCardSetupPage-BHv2VOdc-BfcjRYsg.js → ChargeCardSetupPage-Cie4HjPR-ZtUOiOiR.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-UpRXyPTS-DUoykYJ6.js → ChargeCardStatementsPage-DSUakLyb-fNOGZHcg.js} +4 -4
  41. package/dist/assets/{CheckDepositDrawerPage-0zbTQ3Fa-DZUNeuWX.js → CheckDepositDrawerPage-BK6iLLEA-jWxLf2wl.js} +23 -23
  42. package/dist/assets/{CollapsableReportTable-DlYIKSlQ-CTPvx283.js → CollapsableReportTable-vwzu1AgW-BTLj3VXb.js} +1 -1
  43. package/dist/assets/CompanyOfficerDetailsSection-CtptCfIN-apBFYZGi.js +331 -0
  44. package/dist/assets/{CompanyPassportCard-DeVPuuje-dXTJCMs0.js → CompanyPassportCard-DyasR99R-CYkEVZS_.js} +2 -2
  45. package/dist/assets/CompanyPassportPage-Xp8Bn6ev-Bfcf_ruC.js +417 -0
  46. package/dist/assets/{CompleteProfile-Y6HwKtpz-CKG60-Ev.js → CompleteProfile-CyoPiiWR-xf-bWpXE.js} +2 -2
  47. package/dist/assets/ConfettiBurst-BWYsiO3O-BTrtU6ii.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-COBnQDX5.js → ConstrainedInnerElement-BeIpAPjB-DDbvqxn6.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-BlZe6gmh-LIbnXoCR.js → CreateOrEditVendorPage-CecROHGm-D41yC84M.js} +16 -16
  50. package/dist/assets/{CreditCardPaymentDrawerPage-flPmyCaF-ju95FaYN.js → CreditCardPaymentDrawerPage-C6Tx5HFf-oVWkJDzH.js} +13 -13
  51. package/dist/assets/{CurrencySelectField-RiKAivD8-bvSf14oM.js → CurrencySelectField-DAmYUy85-BWbCVGju.js} +3 -3
  52. package/dist/assets/{CustomerOnboardingActivationPage-B7dLMk4g-BZHZ1dpa.js → CustomerOnboardingActivationPage-CsBXicnS-QAit89b5.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-CNJZIVlJ-BZqVU5dg.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-AWsst0XH-X1brA0-n.js → CustomerOnboardingDetailPageSkeleton-BrWGFePj-DMstYizh.js} +10 -10
  55. package/dist/assets/CustomerOnboardingNoStepsPage-EIhXr3Tb-DznkXuZH.js +66 -0
  56. package/dist/assets/CustomerOnboardingPage-DXoS8Lvh-C2VugePi.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DqgoBLWp-Cv1WT5RL.js → CustomerOnboardingProductSuitePage-BRXSZWKm-BD_syEun.js} +6 -6
  58. package/dist/assets/{Dashboard-D0KlujCx-BSLisJSN.js → Dashboard-Bd774Cwk-AzSeLKy1.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-bxKyMsG7-CUvvzIc4.js → DashboardReportPage-CdyFzIwd-DfVPg9E3.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-Ch0OiH1g-vmCAY7a1.js → DashboardSidebarBackgroundAnimation-NYtLjb5A-C-FYqFtS.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-BdZVCAx--CrDYcfUN.js → DepositAccTransactionItem-DZk4h7x--C88hUVsA.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-LU0QMdSV-CKNGH1tO.js → DepositAccTransactionListPage-CKgbbZOW-BgK9Zw4Y.js} +3 -3
  63. package/dist/assets/{DomesticWireDetailsPage-CFt5GgZ1-DQv3a0ub.js → DomesticWireDetailsPage-CY2Pv6jd-CheyQF2l.js} +2 -2
  64. package/dist/assets/{DownloadOverlay-CH_bA3On-B69b38U1.js → DownloadOverlay-BflHtA84-B4UfqjFr.js} +16 -16
  65. package/dist/assets/{DrawerPage-Cpdp-IFb-CaiAQFdD.js → DrawerPage-5Q_xvjmz-Co18igPQ.js} +8 -8
  66. package/dist/assets/EditPeoplePage-Dq02jvsi-b5H5H_8q.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-DnyyPZ26-Bd2lr5Lb.js → EditReimbursementDetailPage-CYnqM-2--BRFle9yb.js} +66 -66
  68. package/dist/assets/EntityDetailPage-s91tl4Wk-BAN18nGN.js +18 -0
  69. package/dist/assets/{EntitySummarySection-BFpgAYAM-DJcwKTxQ.js → EntitySummarySection-BUjGJmFT-CjfLlHfk.js} +10 -10
  70. package/dist/assets/{ExpenseAutomationOverviewPage-YjOVm_Bw-DbWbD2ZW.js → ExpenseAutomationOverviewPage-D7_-NOLq-Bds1x68a.js} +19 -19
  71. package/dist/assets/{ExpenseAutomationPage-DlhH-R-e-DP26P-kb.js → ExpenseAutomationPage-CFxbvTbd-VTUN9rRL.js} +44 -44
  72. package/dist/assets/{ExpressPayPage-CKqPEfbR-B9xRjGEZ.js → ExpressPayPage-gyFQBzLO-BnlxI_0_.js} +20 -20
  73. package/dist/assets/{FeaturePreviewPage-Cs1Y3nP0-C736qEjy.js → FeaturePreviewPage-BT-WJozX-m5nY8Cr0.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BCyL8Jdr-CTurJjBu.js → FollowStepsSection-Du2gzmC6-LTRvUZJY.js} +42 -42
  75. package/dist/assets/{GlobalReviewListPage-CBQFcVHd-BFn41JwP.js → GlobalReviewListPage-B0MxdV0g-O7Eaq9sr.js} +10 -10
  76. package/dist/assets/{InformationCardStack-nFMetrAy-DmLTnFTd.js → InformationCardStack-rAU0N5_N-BNWO8W3c.js} +4 -4
  77. package/dist/assets/{InsightsCardStack-CEMeGJXy-Dl1gxtvy.js → InsightsCardStack-CEkmuCB6-CpJ0Ou6A.js} +9 -9
  78. package/dist/assets/InsightsSection-CK6L0ggh-DiYoPBIp.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-BQ7g3a3K-ZPT5zibV.js → IntegrationsSettingsPage-Do41V6J0-CYPG6GBQ.js} +5 -5
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-BHRYsZgm-hXisNfc-.js → InternationalWireSwiftDetailsPage-BnsnrM3q-TCK2vz36.js} +31 -31
  81. package/dist/assets/InternationalWireVerificationPage-C3EEqPT--COWTCQVg.js +65 -0
  82. package/dist/assets/{InviteFormPage-BVXte8w8-Bv3riR4y.js → InviteFormPage-x40AE2Pw-DcL74k0M.js} +14 -14
  83. package/dist/assets/{InvitePageListView-DFPyLLrA-DwPZnRCN.js → InvitePageListView-CiVNaN8z-BNxs-kv2.js} +44 -44
  84. package/dist/assets/InvitePeoplePage-DGTYEet3-q8LMzEbG.js +12 -0
  85. package/dist/assets/{InvoiceUploadSection-B9q7nIs0-FeM5fM0I.js → InvoiceUploadSection-C4K602QO-edDVc4Pa.js} +4 -4
  86. package/dist/assets/{IssueChargeCardPage-BuLj1bOl-dPJklROU.js → IssueChargeCardPage-BVmxvrlx-Ca71cuKs.js} +15 -15
  87. package/dist/assets/{LabeledAddressValue-D2t8ti-C-DUztl2du.js → LabeledAddressValue-aejn380k-DwlaPoVh.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-DMcor_I8-DnYPVaTw.js → LabeledAddressValueField-DSU3b6xx-SFUhns2M.js} +4 -4
  89. package/dist/assets/{LabeledControlledCheckBoxField-B6w2HGJK-BLA_30cF.js → LabeledControlledCheckBoxField-CKE6Nln6-BoFyY4Lg.js} +2 -2
  90. package/dist/assets/LabeledCountryMultiSelectField-D1bMiaZj-DHyO4cp8.js +237 -0
  91. package/dist/assets/{LabeledCreatableSingleSelectField-DHNAX5Pu-Cxl2v4pk.js → LabeledCreatableSingleSelectField-amXDv508-ayE33Uzo.js} +22 -18
  92. package/dist/assets/LabeledDocumentField-2_VcrmJN-NvvTwxvI.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-BBS4da2b-CKcQYn_8.js → LabeledDropDownFormattedTextField-C6sW-5j7-DVIx7gwf.js} +4 -4
  94. package/dist/assets/{LabeledText-zjKn4Cw--Btj0vmVa.js → LabeledText-CrAhx4_P-BV766MG2.js} +3 -3
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-BdB4qtCG.js → LabeledUserSingleSelectWithSubtitlesField-BVZg_rlX-BekpWR05.js} +19 -19
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DiBtAWQ3-CYXjNxbc.js → LabeledZeniRolesDropDownField-DS1icRVA-0u4rotdW.js} +31 -31
  97. package/dist/assets/{LinkJETransactionPage-D66bzDh_-B9FEJF_c.js → LinkJETransactionPage-VdBxLFQc-55c5hzn3.js} +6 -6
  98. package/dist/assets/{LockCardPage-B1g2TZWL-BM1z6LUH.js → LockCardPage-Bs8xkpNa-BjwEOKdz.js} +44 -44
  99. package/dist/assets/{LowBalancePopup-DbtHeVY--C9EswVLY.js → LowBalancePopup-B0-WExEI-lrmES1sf.js} +2 -2
  100. package/dist/assets/MagicLinkACHDetailsPage-BitHcc3I-C98ytwJK.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-BFfxbnHp-N-D8lO-1.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-BncWaxsb-Bxijl5E3.js +1 -0
  103. package/dist/assets/MagicLinkSuccessPage-DRcOlHnh-CSKpgnmw.js +31 -0
  104. package/dist/assets/{MagicLinkTitleSection-CqkZ9wOf-DfDEh73I.js → MagicLinkTitleSection-vMBVJSVF-Cq6tgd4r.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-CKtLfBik-Pke0GJpe.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-CE2ZqHBJ-BMkFuO3K.js → MyBankConnectionsSettingsPage-D6Gjqgv2-CIp3b4Hf.js} +10 -10
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-BffxXDZg-Dvb6_3Fu.js → MyPendingActivationChargeCardListPage-y9U4DJm9-CBr9crJC.js} +2 -2
  108. package/dist/assets/{MyProfileSettingsPage-DrsAlesY-j3nt47fF.js → MyProfileSettingsPage-D7btjvQI-mZy4329L.js} +8 -8
  109. package/dist/assets/NavBarWithPicker-B_vr1zc6-DAolNzoK.js +30 -0
  110. package/dist/assets/{NavigationArrow-DCCxx6H7-D4B8RREd.js → NavigationArrow-suk7KbA1-xl7E8Abj.js} +7 -7
  111. package/dist/assets/{NavigationDots-tWCw6Bpk-D0d4bwwO.js → NavigationDots-Dqcv5rrC-DzoP8t9X.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-UIA8zAjd-C002A9hY.js → NewGlobalMerchantPage-CRg1E4PG-_ea1Cd7Q.js} +33 -33
  113. package/dist/assets/NoDataChart-CGab-TiT-zyPeOkqC.js +26 -0
  114. package/dist/assets/NoDataTable-B2CS7NPq-CvFUjFVv.js +8 -0
  115. package/dist/assets/{NotFoundPage-CdH-3upl-DLtXDi3d.js → NotFoundPage-DGMaZUli-aSvAxp7G.js} +7 -7
  116. package/dist/assets/{NotificationSettingsPage-DP2gGIz1-DEKmBA8p.js → NotificationSettingsPage-CMkB3Lv2-DA8e_wrR.js} +10 -10
  117. package/dist/assets/{NotificationsListConfig-DG-DH2Aj-C3kn_PJf.js → NotificationsListConfig-8zpkH26L-DVh3_eXQ.js} +1 -1
  118. package/dist/assets/{NotificationsPage-CgFMmR2X-ZazUgOBE.js → NotificationsPage-D7bHfgsd-B-yh8id7.js} +19 -19
  119. package/dist/assets/{OpExByVendorPage-eUvIAWzt-CoPEiZJL.js → OpExByVendorPage-PfMkiQRt-CA9khm55.js} +6 -6
  120. package/dist/assets/OverlayContainerPage-D4QU0p4o-DAP8RqtI.js +11 -0
  121. package/dist/assets/{PandLWithForecastPage-8S06Nyi5-1bcdIh1F.js → PandLWithForecastPage-CtFnhBki-D2LFAlVU.js} +7 -7
  122. package/dist/assets/PaymentAccountSetupBillingAddressSection-gaNLv-zU-S6LvrwnZ.js +107 -0
  123. package/dist/assets/{PeoplePage-D1BLHtO0-C58P6kMk.js → PeoplePage-3Fux2UtP-BH9APgOv.js} +20 -20
  124. package/dist/assets/{Preview-Duq0gQMO.js → Preview-C8AzcAoJ.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-BKSXWnFR-D0XqWdeM.js → ProductsCarousel-BPUh4FO7-CHB-qbx5.js} +4 -4
  126. package/dist/assets/{PromoBaseCards-BYT9nEJT-DW8pd6tD.js → PromoBaseCards-Dmg5PtKw-t6EmiKvL.js} +14 -14
  127. package/dist/assets/{QBOConnectionDialog-C2-omQMZ-BcqWZr4J.js → QBOConnectionDialog-CLBqmpI8-DH4pGPEG.js} +3 -3
  128. package/dist/assets/{QBOSetupSection-lgv5wVlg-BJbJg-e3.js → QBOSetupSection-DwqXfi9i-B1C_WaXE.js} +18 -18
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CbJViS3x-CNPS2kKc.js → ReimbursementApprovalRuleDetailPage-BrfP2xcW-DQMVrjws.js} +2 -2
  130. package/dist/assets/{ReimbursementApprovalRulesPage-BuNt-Bmb-C4xV1t6F.js → ReimbursementApprovalRulesPage-BmVVfYZD-BmlPhGFM.js} +7 -7
  131. package/dist/assets/{ReimbursementDetailPage-CK3-Jqkd-BXJxGVOx.js → ReimbursementDetailPage-j-kNxeWY-ZsW0KMFD.js} +5 -5
  132. package/dist/assets/{ReimbursementPromoPage-fptOAJna-kONXX9OV.js → ReimbursementPromoPage-D2kh5AHM-CtzDBBo_.js} +13 -13
  133. package/dist/assets/{ReimbursementSetUpPage-CidrpT2g-BaHYOosV.js → ReimbursementSetUpPage-D2890NEZ-Dgq0MW27.js} +8 -8
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cy_Hediw-CeMENnhM.js → ReimbursementsBulkReviewDrawerPage-qXtPaXjg-CLjTJ8gQ.js} +1 -1
  135. package/dist/assets/{ReloadCard-C81rGzOp-DrV9TjCC.js → ReloadCard-IEyjck4Y-Bypr7i2O.js} +8 -8
  136. package/dist/assets/{ReportTableViewSelector-neRSjrhV-DNMR9-mx.js → ReportTableViewSelector-CQjyJkzR-DZEqJbuf.js} +4 -4
  137. package/dist/assets/{ReportsPage-BhzQVaer-B1sMVpn4.js → ReportsPage-Bzz6If8N-i375FFbW.js} +3 -3
  138. package/dist/assets/{RevenueChart-x7uTbFlm-CjI9a83n.js → RevenueChart-B00OufPH-B5M-AM4i.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-jXZCylzg-B1MM8UC1.js → ReviewDetailsPage-NnD1LDcO-CZs19GX2.js} +53 -53
  140. package/dist/assets/{ReviewOverlay-nlm2HnGw-UufbXYzP.js → ReviewOverlay-CFouRoKn-DAQDEDmS.js} +16 -16
  141. package/dist/assets/RoleWithToolTip-BBbrv_x_-D8MqiafD.js +22 -0
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CkPzofLN-BWXCFq3v.js → ScheduleDetailsFixedAssetsPage-B5gQXUI9-DH6Yv6F_.js} +8 -8
  143. package/dist/assets/{ScheduleDetailsPage-BSZefKOh-Bo6woPA8.js → ScheduleDetailsPage-B1Kb9usK-BWyyTA9a.js} +3 -3
  144. package/dist/assets/{ScheduleSequenceTable-BW5M7Zfq-BwchdmgD.js → ScheduleSequenceTable-B973PTTc-C5HNHoNO.js} +14 -14
  145. package/dist/assets/{ScreenRoutes-Dwdg1cdb.js → ScreenRoutes-BUhhsxeL.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-C703iFL6-CHmt5sZt.js → SetUpAccountSection-D6dn2jSD-B2ahVHn3.js} +1 -1
  147. package/dist/assets/{SignIn-D9K5FklU-CRWhJbb6.js → SignIn-CUOfBh48-Cs6fsPrc.js} +25 -25
  148. package/dist/assets/SignInScreen-B9_ZQMfW.js +1 -0
  149. package/dist/assets/{SpendManagementListViewPage-CBNtC74m-Fd85QGhs.js → SpendManagementListViewPage-DOkp7pHa-D_rDsyPi.js} +14 -14
  150. package/dist/assets/{SpendManagementPerTabPage-D_sa7WRd-CmfTgI85.js → SpendManagementPerTabPage-D_LO55uU-DKDZqq7t.js} +27 -27
  151. package/dist/assets/{SpendManagementSection-DpZUTV6m-4JhWZKtl.js → SpendManagementSection-CEMNFPRO-DOfjR_1U.js} +23 -23
  152. package/dist/assets/{StatementItem-DvdSsb8I-HhjAsWuo.js → StatementItem-BDCdJuBz-C5KxKZf9.js} +4 -4
  153. package/dist/assets/StatementsPage-CgbyzDo5-dOiBmz6G.js +58 -0
  154. package/dist/assets/{StatusSwitcher-hKYgwNLC-DHsQ9BVG.js → StatusSwitcher-BjvUftXD-BmCBIDA6.js} +4 -4
  155. package/dist/assets/{SubTabSwitcher-aeDd9xiF-CP_NcrPb.js → SubTabSwitcher-CqTYhJ6K-C6tI5OUk.js} +1 -1
  156. package/dist/assets/{SummaryCard-CK8Gxbiu-CIbHrisD.js → SummaryCard-BrsOKcrF-DWcUToK_.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-D2Ooq8DR-Cg7nwJeB.js → TaskManagementPage-C5vXcK0R-BbbjC-Tz.js} +16 -16
  158. package/dist/assets/{TimeRangeSwitcher-DEqlZxa6-DEfl1xmz.js → TimeRangeSwitcher-BR-bT1hY-DWqBq-hp.js} +2 -2
  159. package/dist/assets/{TimeframeSwitcher-BppC6giF-C7ddFaNs.js → TimeframeSwitcher-B7EXKmdi-DuvH5agU.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-CbX9ElMN-hszvw3pP.js → TimeframeSwitcherWithToggle-D265f15Y-T64K-skP.js} +1 -1
  161. package/dist/assets/{TopExCard-Cy6tPVSx-Bbwl1jG_.js → TopExCard-l-xo9Vzj-B1PmkJWv.js} +10 -10
  162. package/dist/assets/{TopExDetailPage-Rtrcdkcp-vpPj9dbp.js → TopExDetailPage-DJlHcjKS-Bho9tEuD.js} +10 -10
  163. package/dist/assets/{TransactionActivityLogPage-DbwSsjPJ-C5f3uEbO.js → TransactionActivityLogPage-HLwrGJCG-BzrsUVPS.js} +7 -7
  164. package/dist/assets/{TransactionDetailPage-D-vXAAB7-KMY-seM4.js → TransactionDetailPage-63dqDjgt-B4iYNZGu.js} +35 -35
  165. package/dist/assets/{TransactionList-BruCNjQg-Ccsvct2A.js → TransactionList-BFD8ZfJ--BUbGyMLK.js} +10 -10
  166. package/dist/assets/{TransactionListBig-bp7q3prH-DMAN1AsC.js → TransactionListBig-Cd05cE1H-CAcC3Nig.js} +4 -4
  167. package/dist/assets/{TransactionListPage-ZfJsaVb8-GGjXUKns.js → TransactionListPage-klQ0oBzv-C-lEqqat.js} +2 -2
  168. package/dist/assets/TransactionVendorDetailPage-D93V6PtT-CNzgHcFV.js +80 -0
  169. package/dist/assets/{TransferDrawerPage-DswS6KZf-BDyM8T09.js → TransferDrawerPage-B_Hy3gOY-Clor74dq.js} +12 -12
  170. package/dist/assets/{TreasuryOverviewPage-DWo7iRpO-DSI7EDiH.js → TreasuryOverviewPage-CJrfTwBd-BzblsfCt.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-DQxCF3-4-C3eX58kN.js → TreasuryPromoPage-BRwTbEqr-C3oIH7Gd.js} +131 -131
  172. package/dist/assets/TreasuryStatementsPage-CpVaxZhO-BbzJpZN2.js +58 -0
  173. package/dist/assets/TreasuryTaxLetterPage-CUHNWUy--WkFWI_33.js +58 -0
  174. package/dist/assets/{TrendChart-BMHDaOeh-LWC7_lHj.js → TrendChart-DLex57el-Bd2WzCxo.js} +2 -2
  175. package/dist/assets/{TrendWithTransactions-DDLrmIrt-BXL-CVpz.js → TrendWithTransactions-CwB4wDSN-BMowh4TY.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-3SW8Gj0Z-CDWZIxfG.js → UncategorizedAccountsMappingPage-CO7p4-Kx-BZ0VCWbX.js} +17 -17
  177. package/dist/assets/{UnitIntegrationPage-DPMy8dXP-nT8iCa4v.js → UnitIntegrationPage-BDUTrQY0-SS19l8Xm.js} +11 -11
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-BHpT2al--DXABnZU8.js → UploadAdditionalDocumentOverlay-DID6dcux-DPsjTLN9.js} +1 -1
  179. package/dist/assets/Vendor2FAPopup-DySyuG4R-82OgFcz6.js +1 -0
  180. package/dist/assets/VendorACHDetailsPage-CS0fu-kk-0b8QPMYJ.js +1 -0
  181. package/dist/assets/{VendorDetailPage-BC1FhaQA-KI0Ch5Gm.js → VendorDetailPage-DRgwiRee-B2tPGfn4.js} +23 -23
  182. package/dist/assets/VendorDomesticWireDetailsPage-B3mJqOdK-BoqOh8HT.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-DYyPOA8D-CxoCgeSh.js → VendorFiling1099EditablePage-CtReDQX3-DVZfKoI-.js} +13 -13
  184. package/dist/assets/{VendorFirstReviewPage-Cpmk7rDk-CFOuqq24.js → VendorFirstReviewPage-BGVFKcId-7yTwYSjG.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-CWAWq6kq-DzcoBHDk.js → VendorInternationalWireDetailsPage-DtFlzIWc-CYBlV4Tg.js} +13 -13
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CfWP7ILx-BygrRGvT.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-CGQ35Mhp-fa4HsF-c.js → VendorsAccountsSection-DlCCF8w7-CQtCi0t6.js} +3 -3
  188. package/dist/assets/{VerifyDevice-CfMJW1Vh-t_8HTul6.js → VerifyDevice-CDChzTa5-fyUSUzra.js} +7 -7
  189. package/dist/assets/{VideoPlayer-BNBpjXJk-jZcx6J3u.js → VideoPlayer-D6snpLby-D_sf9SSM.js} +2 -2
  190. package/dist/assets/{VideoPopup-BF6lmB7l-CPNBV8xg.js → VideoPopup-SylQ4T6l-DUuwzYmi.js} +3 -3
  191. package/dist/assets/{WarningsDrawerPage-Crj70lnR-BFJEBaju.js → WarningsDrawerPage-D67GprmZ-Dc_Jo6Z8.js} +7 -7
  192. package/dist/assets/{ZeniAccountDetailPage-CaA6m3tQ-DsIFFK_h.js → ZeniAccountDetailPage-BfYIZPob-DCZW5ugr.js} +13 -13
  193. package/dist/assets/{ZeniAccountListViewPage-x_51gDs1-CM__NvGD.js → ZeniAccountListViewPage-B5luRVEl-ntYaih24.js} +17 -17
  194. package/dist/assets/{ZeniAccountNavBarPieces-Csr24dri-BqCNAJs9.js → ZeniAccountNavBarPieces-BQXOnqhc-D38WZkNq.js} +2 -2
  195. package/dist/assets/{ZeniAccountPromoPage-lxKBk2r5-KMuyeTSq.js → ZeniAccountPromoPage-CHCmIfff-DDgdwEph.js} +10 -10
  196. package/dist/assets/{ZeniAccountSetupPage-DUI4-2Zw-8cM-uoIc.js → ZeniAccountSetupPage-BzCqTug2-BN8jteFY.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-DxEZ4DiK-DLP_0Pge.js → ZeniCopyright-CiZTMpf7-C6VWdJm_.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-4Nq4Sm9J-VPec2EGj.js → ZeniTransferAmountSlider-C--qNr-a-BTUYZm1a.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-V6ap5s7K.js → add-to-wallet-DgdBD8_G-Cna2JrPi.js} +1 -1
  200. package/dist/assets/{analytics-BFo1DlpM.js → analytics-Cz7GTPb4.js} +1 -1
  201. package/dist/assets/analyticsHelper-D0FSznOb.js +1 -0
  202. package/dist/assets/{analyticsHelper-CL-t3Y2i-D7L_LVJW.js → analyticsHelper-DEOt00qX-3E5keIK0.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-DUYmTke7.js → arrow-south-east-round-PEovUgvH-D7Guqwvj.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-eGlQozxe.js → auto-transfer-rule-mbafm5D3-DemMuLOK.js} +1 -1
  205. package/dist/assets/{chartTypes-B3501CSI-DzRICrvV.js → chartTypes-BqKhmkSG-DaJzMpYW.js} +1 -1
  206. package/dist/assets/{commonDimensions-YcBBlmYP-COMWV7bj.js → commonDimensions-DbvjFx29-M5i-B_2F.js} +1 -1
  207. package/dist/assets/commonTypes-TAIHQ3fk-BCFWsh3s.js +1 -0
  208. package/dist/assets/{constants-D7SXzzFi.js → constants-DAniohK4.js} +1 -1
  209. package/dist/assets/{core-TLZ6PfaT.js → core-BHxev_Cl.js} +1 -1
  210. package/dist/assets/{dash.all.min-B_wsJDV-.js → dash.all.min-CtGtyz3U.js} +1 -1
  211. package/dist/assets/{detailCommon-C19MYPnq-BkT0buD6.js → detailCommon-BEEE23XQ-C9xvv1qO.js} +4 -4
  212. package/dist/assets/downloadPdf-CDTl_Ev--DwC3gr_X.js +1 -0
  213. package/dist/assets/{empty-DHRJKl0l.js → empty-BjQqAnEr.js} +1 -1
  214. package/dist/assets/{empty-Dl7OEA8R.js → empty-ycUigo07.js} +1 -1
  215. package/dist/assets/epic-ouf99YlI.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-BxnAFpgS.js → gift-box-Cmt9OgIZ-DQLMM0Jc.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BXAAbldy.js → graphic-no-data-l-DU4J8fDt-EQfaFxjc.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-RQBIXxmP.js → graphic-no-data-net-burn-l-CzmycA0m-iUVSxIP-.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-B_pRiSxy.js → handshake-BPg58FML-SL3xJab2.js} +1 -1
  220. package/dist/assets/helper-Cl1NuKS2-BXsdA-OL.js +223 -0
  221. package/dist/assets/{index-CZI3Ylli.js → index-BCs-C6Pl.js} +1 -1
  222. package/dist/assets/{index-f03AvpmF.js → index-BVl75ift.js} +1 -1
  223. package/dist/assets/{index-CT7uQHtl.js → index-CZ6iVFod.js} +1 -1
  224. package/dist/assets/{index-Cs8eLM6a.js → index-DDBZjEhE.js} +1 -1
  225. package/dist/assets/{index-CJvK7-J_.js → index-DKIaTfNE.js} +1 -1
  226. package/dist/assets/{index-B4SkrUUS.js → index-DOsjGhSZ.js} +2459 -2446
  227. package/dist/assets/{index-AKtmkw3-.js → index-wXhIQbLd.js} +1 -1
  228. package/dist/assets/{lexical-DGcsrY0x.js → lexical-Dja08wvc.js} +1 -1
  229. package/dist/assets/{liveblocks-Dh9EWLXD.js → liveblocks-KFxhhSr3.js} +1 -1
  230. package/dist/assets/{lottie-osIcf0zV.js → lottie-DDoT_sT4.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-CBq8hzRN-DunJzr3i.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BDWD3x8r-BJJQ7ptw.js → mapSectionWithAcOnlyToTreeNode-DtYXgw-F-TAq1Mekz.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-ycecmJKa-Hd0mRrjF.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-ByLaAQOt-Biy9DgAh.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-C8E1dOPs-B00cM4ms.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-v8qXI-n8-DJfWjA89.js +1 -0
  237. package/dist/assets/{mui-DUBEtzg-.js → mui-B2MHg-Mu.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-C8N6TvJI.js → page-detail-CWX5S47F-Dqz3fZ9M.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-CVhhFPCD.js → panelSelectedMixin-CzfD5-Zs-CL2f5PJh.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-Cr1_qpyQ.js → radio-default-CiSgisfh-CIrmE0sr.js} +1 -1
  241. package/dist/assets/{react-DYqSDMNg.js → react-B5mg5_zl.js} +2 -2
  242. package/dist/assets/{react-DM-hrQxT.js → react-BWSczdFz.js} +1 -1
  243. package/dist/assets/{react-jiKdoZ4l.js → react-BzzxkC3X.js} +1 -1
  244. package/dist/assets/{react-Ld4wkc7L.js → react-CciBBuhn.js} +1 -1
  245. package/dist/assets/{react-Bk-13Lv_.js → react-DJSfrAX2.js} +1 -1
  246. package/dist/assets/{react-DKnK-TxQ.js → react-Dn-7aN5D.js} +1 -1
  247. package/dist/assets/{react-Xrf7IcXX.js → react-DqyAh0nx.js} +1 -1
  248. package/dist/assets/{react-DJtWQPHO.js → react-GWLRtgTU.js} +2 -2
  249. package/dist/assets/{recharts-ZbSULBPo.js → recharts-B7o7FzH2.js} +1 -1
  250. package/dist/assets/{sentry-BBFZ4Apy.js → sentry-otjdlEta.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-CxpeC9Dy.js → shield-DOlUxcFf-DDxUv5Gm.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-DKhXdLyk-D9LH1M_c.js +1 -0
  253. package/dist/assets/{toChartData-DzatRnt8-r7b4SzAV.js → toChartData-B3G_wqcy-uAjzhvaS.js} +1 -1
  254. package/dist/assets/{uploadAttachment-Bq8dk-Sm-BxzYH_e-.js → uploadAttachment-CLjjVoJ0-Do2BBtK7.js} +22 -22
  255. package/dist/assets/uploadReceipts-Dge0cNF1-BhANrZur.js +1 -0
  256. package/dist/assets/{url-B-vFaWHB.js → url-DCdUzyOP.js} +1 -1
  257. package/dist/assets/{url-DieIsDlx.js → url-Dy00DrU7.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-BO__ObzU.js → useLongPress-GCK2COYQ-Sm0Bw4m0.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-Ob7uwwlJ.js → usp-line-BBd1wKwW-BmAEJQI7.js} +1 -1
  260. package/dist/assets/{utils-DvDl_6hs.js → utils-BbmM3Vsp.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-CbQxc4HL.js → zeni-epic-state-DVinyIRY.js} +18 -18
  262. package/dist/index.html +1 -1
  263. package/package.json +3 -3
  264. package/dist/assets/ACHDetailsPage-CxpLuJpQ-Z25Kj8iB.js +0 -21
  265. package/dist/assets/AccountInfoPage-DkpBGfrR-DgJ_l529.js +0 -18
  266. package/dist/assets/BillingSettingsPage-gJG9OxD6-C92nEYt6.js +0 -44
  267. package/dist/assets/BusinessVerificationPage-Dos8Bnvb-BzlY8P7N.js +0 -138
  268. package/dist/assets/CompanyOfficerDetailsSection-Ck0xqZ0d-CiQdQV8c.js +0 -260
  269. package/dist/assets/CompanyPassportPage-F_GUET9a-n_4C1XId.js +0 -574
  270. package/dist/assets/ConfettiBurst-BGE3Okwr-ChtxA3B0.js +0 -1
  271. package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-DmiTHP_R.js +0 -1
  272. package/dist/assets/CustomerOnboardingNoStepsPage-Bqid4-rH-BGImJqrF.js +0 -66
  273. package/dist/assets/CustomerOnboardingPage-B5LrMzZS-BM4VGeP8.js +0 -107
  274. package/dist/assets/EditPeoplePage-BYnuNojX-tF0zDJiV.js +0 -55
  275. package/dist/assets/EntityDetailPage-DSfZZ1JW-B8lmLppd.js +0 -18
  276. package/dist/assets/InsightsSection-BYiN2xB7-xEpnMvUU.js +0 -27
  277. package/dist/assets/InternationalWireVerificationPage-tJbVtzQP-CZgDrSPN.js +0 -292
  278. package/dist/assets/InvitePeoplePage-B-uxjkke-DNUKVrZj.js +0 -12
  279. package/dist/assets/LabeledDocumentField-Bx1u7vv_-mKnRKGeb.js +0 -41
  280. package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-DFFPBXzS.js +0 -1
  281. package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-BL-x5WX7.js +0 -1
  282. package/dist/assets/MagicLinkInternationalWireDetailsPage-Q4lIsHtG-CqwaJ0sv.js +0 -1
  283. package/dist/assets/MagicLinkSuccessPage-BkxuITX--DbmxzFZs.js +0 -31
  284. package/dist/assets/MailingDetailsSection-DRFGCM2W-D6QU019C.js +0 -21
  285. package/dist/assets/NavBarWithPicker-C4VfP_Kw-BP1hKzBN.js +0 -30
  286. package/dist/assets/NoDataChart-Bvetk9za-ChhbhAl5.js +0 -26
  287. package/dist/assets/NoDataTable-9xF1_3XS-DmyXOk6M.js +0 -8
  288. package/dist/assets/OverlayContainerPage-D4QU0p4o-Bv0v7Lg9.js +0 -11
  289. package/dist/assets/PaymentAccountSetupBillingAddressSection-DQtrANhI-Dbgw6-lm.js +0 -107
  290. package/dist/assets/RoleWithToolTip-C29QOzxS-Dtn3QO2t.js +0 -22
  291. package/dist/assets/SignInScreen-93gtogD5.js +0 -1
  292. package/dist/assets/StatementsPage-73jGj5P2-CMTCSEyj.js +0 -58
  293. package/dist/assets/TransactionVendorDetailPage-CldkuO2--Depffy_Y.js +0 -80
  294. package/dist/assets/TreasuryStatementsPage-CYkPtmaT-D5EUuNcF.js +0 -58
  295. package/dist/assets/TreasuryTaxLetterPage-DH3su_rX-DoShkWFh.js +0 -58
  296. package/dist/assets/Vendor2FAPopup-C6gEOhUv-CYnz9DAX.js +0 -1
  297. package/dist/assets/VendorACHDetailsPage-LNCcubjL-BYnoq0_Z.js +0 -1
  298. package/dist/assets/VendorDomesticWireDetailsPage-CLudahOt-D5L89H8f.js +0 -1
  299. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-DsF3BjGD.js +0 -1
  300. package/dist/assets/analyticsHelper-BeWexRsD.js +0 -1
  301. package/dist/assets/downloadPdf-DPAqxw6u-CTz8FOiE.js +0 -1
  302. package/dist/assets/epic-hSb3tBg_.js +0 -2
  303. package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--C5UhDOED.js +0 -1
  304. package/dist/assets/mapSpacerToTreeNode-Blr3egSm-DTRUivWC.js +0 -1
  305. package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-CJNy6I1V.js +0 -1
  306. package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-BwhFvpsB.js +0 -1
  307. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-zWnJVGsZ.js +0 -1
  308. package/dist/assets/toCOABalancesWithID-D35Fk0m2-devRZ_lq.js +0 -1
  309. package/dist/assets/uploadReceipts-Dge0cNF1-BfejUd9f.js +0 -1
@@ -1,4 +1,4 @@
1
- import{aw as gt,e as Ye,V as t,jw as q,bD as kt,aa as U,cq as xt,al as K,aq as wt,F as se,o as s,jx as Xe,cj as Ie,cn as ft,g7 as Ct,ba as Tt,bP as Ze,aU as $t,ce as jt,J as ie,a9 as yt,y as Je,cG as vt,ac as bt,b4 as St,cu as Gt,iT as Lt,iU as It,jy as Me,aS as Nt,i as De,bU as Ne,eO as Qe,jz as Et,d1 as et,jA as ce,jB as ke,jC as xe,jD as tt,jE as Dt,jF as st,jG as ot,jH as nt,jI as at,jJ as rt,jK as V,u as ge,jL as ae,ai as re,jM as Mt,jN as Bt,c as zt,an as At,jO as Rt,dc as Wt,jP as Ft,cT as it,es as Ot,b as Pt,jQ as Ht,jR as Ut,g8 as _t,gz as Vt,jS as Kt,jT as Z,jU as Be,cw as qt,jV as Yt,jW as Xt,jX as Zt,jY as ze,p as Ae,gw as Jt,am as Qt}from"./index-B4SkrUUS.js";import{a as n}from"./sentry-BBFZ4Apy.js";import{n as o,c as we}from"./mui-DUBEtzg-.js";import{Ga as es,Gb as Re,cd as lt,ce as dt,cf as ts}from"./zeni-epic-state-CbQxc4HL.js";import{J as ss,t as os}from"./SpendManagementSection-DpZUTV6m-4JhWZKtl.js";import{A as ns,t as as,a as rs,E as is}from"./NotificationsListConfig-DG-DH2Aj-C3kn_PJf.js";import{a as ls}from"./SpendManagementListViewPage-CBNtC74m-Fd85QGhs.js";import"./liveblocks-Dh9EWLXD.js";import"./core-TLZ6PfaT.js";import"./recharts-ZbSULBPo.js";import"./lottie-osIcf0zV.js";import"./analytics-BFo1DlpM.js";import"./lexical-DGcsrY0x.js";import"./utils-DvDl_6hs.js";import"./StatusSwitcher-hKYgwNLC-DHsQ9BVG.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]="4aab414e-29e0-4214-8e03-7278d6b92f6e",e._sentryDebugIdIdentifier="sentry-dbid-4aab414e-29e0-4214-8e03-7278d6b92f6e")}catch{}})();const ds=100,cs=100,ps=3,us=.7,hs=({scrollContainerRef:e,isEnabled:d=!0,edgeThreshold:r=ds,scrollSpeed:h=cs,minScrollAmount:m=ps,scrollCurveExponent:u=us})=>{n.useEffect(()=>{if(!d||typeof window>"u"||typeof document>"u")return;let a=!1,p=0,i=null;const c=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},b=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},E=x=>b(x),D=x=>{const S=Math.max(x,0)/c,j=Math.pow(S,u)*h;return Math.max(m,j)},k=(x,S,j)=>{const L=j==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,j=p;if(j<c&&j>0){const L=c-j,g=D(L);k(x,g,"up")}else if(j>S-c){const L=j-(S-c),g=D(L);k(x,g,"down")}i=requestAnimationFrame(w)},M=x=>{E(x)?a=!0:(a=!1,C())},B=()=>{a=!1,C()},z=x=>{a&&(p=x.clientY)},$=x=>{z(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",M),document.addEventListener("dragend",B),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",M),document.removeEventListener("dragend",B),document.removeEventListener("dragover",$),C()}},[r,d,m,e,u,h])},be=se.getLocalizedStrings(),ct=({count:e})=>t.jsx(ms,{isCircular:e<10,children:t.jsx(gs,{children:e>be.common.numbers.maximumCount?`${be.common.numbers.maximumCount}${be.common.strings.plus}`:e})}),ms=o.div`
1
+ import{aw as gt,d as Ye,V as t,jy as q,bD as kt,aa as U,cq as xt,al as K,aq as wt,F as se,o as s,jz as Ze,cj as Ie,cn as ft,g9 as Ct,ba as $t,bP as Xe,aU as Tt,ce as jt,J as ie,a9 as yt,y as Je,cG as vt,ac as bt,b4 as St,cu as Gt,iV as Lt,iW as It,jA as Me,aS as Nt,i as De,bU as Ne,eP as Qe,jB as Et,d0 as et,jC as ce,jD as ke,jE as xe,jF as tt,jG as Dt,jH as st,jI as ot,jJ as nt,jK as at,jL as rt,jM as V,u as ge,jN as ae,ai as re,jO as Mt,jP as Bt,x as zt,an as At,jQ as Rt,db as Wt,jR as Ft,cK as it,er as Ot,b as Pt,jS as Ht,jT as Ut,ga as _t,gB as Vt,jU as Kt,jV as X,jW as Be,cw as qt,jX as Yt,jY as Zt,jZ as Xt,j_ as ze,p as Ae,gy as Jt,am as Qt}from"./index-DOsjGhSZ.js";import{a as n}from"./sentry-otjdlEta.js";import{n as o,c as we}from"./mui-B2MHg-Mu.js";import{Gg as es,Gh as Re,cd as lt,ce as dt,cf as ts}from"./zeni-epic-state-DVinyIRY.js";import{J as ss,t as os}from"./SpendManagementSection-CEMNFPRO-DOfjR_1U.js";import{A as ns,t as as,a as rs,E as is}from"./NotificationsListConfig-8zpkH26L-DVh3_eXQ.js";import{a as ls}from"./SpendManagementListViewPage-DOkp7pHa-D_rDsyPi.js";import"./liveblocks-KFxhhSr3.js";import"./core-BHxev_Cl.js";import"./recharts-B7o7FzH2.js";import"./lottie-DDoT_sT4.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.js";import"./StatusSwitcher-BjvUftXD-BmCBIDA6.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]="57c0dd7d-9098-4d92-b01a-646a2e666555",e._sentryDebugIdIdentifier="sentry-dbid-57c0dd7d-9098-4d92-b01a-646a2e666555")}catch{}})();const ds=100,cs=100,ps=3,us=.7,hs=({scrollContainerRef:e,isEnabled:d=!0,edgeThreshold:r=ds,scrollSpeed:h=cs,minScrollAmount:m=ps,scrollCurveExponent:u=us})=>{n.useEffect(()=>{if(!d||typeof window>"u"||typeof document>"u")return;let a=!1,p=0,i=null;const c=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},b=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},E=x=>b(x),D=x=>{const S=Math.max(x,0)/c,j=Math.pow(S,u)*h;return Math.max(m,j)},k=(x,S,j)=>{const L=j==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,j=p;if(j<c&&j>0){const L=c-j,g=D(L);k(x,g,"up")}else if(j>S-c){const L=j-(S-c),g=D(L);k(x,g,"down")}i=requestAnimationFrame(w)},M=x=>{E(x)?a=!0:(a=!1,C())},B=()=>{a=!1,C()},z=x=>{a&&(p=x.clientY)},T=x=>{z(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",M),document.addEventListener("dragend",B),document.addEventListener("dragover",T),()=>{document.removeEventListener("dragstart",M),document.removeEventListener("dragend",B),document.removeEventListener("dragover",T),C()}},[r,d,m,e,u,h])},be=se.getLocalizedStrings(),ct=({count:e})=>t.jsx(ms,{isCircular:e<10,children:t.jsx(gs,{children:e>be.common.numbers.maximumCount?`${be.common.numbers.maximumCount}${be.common.strings.plus}`:e})}),ms=o.div`
2
2
  ${e=>e.isCircular?we`
3
3
  height: 18px;
4
4
  width: 18px;
@@ -16,7 +16,7 @@ import{aw as gt,e as Ye,V as t,jw as q,bD as kt,aa as U,cq as xt,al as K,aq as w
16
16
  outline-color: inherit;
17
17
  `,gs=o(At)`
18
18
  color: inherit;
19
- `,{taskManagement:We,common:Se}=se.getLocalizedStrings();function ks(e){const{onChange:d,value:r,resetDisabled:h,onReset:m}=e,u=()=>{h!==!0&&m()};return t.jsxs(xs,{children:[t.jsx(Cs,{children:We.taskList.groupingFilters.groupBy}),t.jsx(ws,{children:t.jsx(ss,{value:r,placeHolder:We.taskList.groupingFilters.placeholder,onChange:a=>{const p=Re(a.value);if(p!=null)d(p);else throw new Error("Invalid taskListGroupByKey")},options:es,getOptionLabel:a=>{const p=Se.texts,i=Re(a);return i!=null?p[i]:Se.strings.empty}})}),t.jsxs(fs,{onClick:u,isDisabled:h,children:[t.jsx(Ts,{}),t.jsx(K,{children:Se.reset})]})]})}const xs=o.div`
19
+ `,{taskManagement:We,common:Se}=se.getLocalizedStrings();function ks(e){const{onChange:d,value:r,resetDisabled:h,onReset:m}=e,u=()=>{h!==!0&&m()};return t.jsxs(xs,{children:[t.jsx(Cs,{children:We.taskList.groupingFilters.groupBy}),t.jsx(ws,{children:t.jsx(ss,{value:r,placeHolder:We.taskList.groupingFilters.placeholder,onChange:a=>{const p=Re(a.value);if(p!=null)d(p);else throw new Error("Invalid taskListGroupByKey")},options:es,getOptionLabel:a=>{const p=Se.texts,i=Re(a);return i!=null?p[i]:Se.strings.empty}})}),t.jsxs(fs,{onClick:u,isDisabled:h,children:[t.jsx($s,{}),t.jsx(K,{children:Se.reset})]})]})}const xs=o.div`
20
20
  display: flex;
21
21
  align-items: center;
22
22
  column-gap: ${s.sp4};
@@ -39,12 +39,12 @@ import{aw as gt,e as Ye,V as t,jw as q,bD as kt,aa as U,cq as xt,al as K,aq as w
39
39
  }
40
40
 
41
41
  column-gap: ${s.sp1};
42
- `,Cs=o(Tt)`
42
+ `,Cs=o($t)`
43
43
  color: ${e=>e.theme.colors.primary};
44
- `,Ts=o(Ze)`
44
+ `,$s=o(Xe)`
45
45
  width: ${s.sp3};
46
46
  height: ${s.sp3};
47
- `,$s=se.getLocalizedStrings().taskManagement.taskList.footer;function js({taskGroupsList:e,anchorEl:d,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:u}){const a=()=>{u(),h()};return t.jsx(Xe,{open:!!d,anchorEl:d,onClose:u,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(ys,{children:[t.jsx(vs,{children:e.map(p=>{const i=()=>{u(),m(p.id)};return t.jsx(Fe,{onClick:i,children:t.jsx(re,{children:p.groupName})},p.id)})}),t.jsx(U,{controller:r==="groupName",children:t.jsxs(Fe,{onClick:a,children:[t.jsx(bs,{}),t.jsx(re,{children:$s.createGroup})]})})]})})}const ys=o.div`
47
+ `,Ts=se.getLocalizedStrings().taskManagement.taskList.footer;function js({taskGroupsList:e,anchorEl:d,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:u}){const a=()=>{u(),h()};return t.jsx(Ze,{open:!!d,anchorEl:d,onClose:u,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(ys,{children:[t.jsx(vs,{children:e.map(p=>{const i=()=>{u(),m(p.id)};return t.jsx(Fe,{onClick:i,children:t.jsx(re,{children:p.groupName})},p.id)})}),t.jsx(U,{controller:r==="groupName",children:t.jsxs(Fe,{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
  `,Fe=o.div`
50
50
  padding: ${s.sp2} ${s.sp3};
@@ -97,7 +97,7 @@ import{aw as gt,e as Ye,V as t,jw as q,bD as kt,aa as U,cq as xt,al as K,aq as w
97
97
  `,Es=o(zt)`
98
98
  width: ${s.sp3};
99
99
  height: ${s.sp3};
100
- `,Ds=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.6011 5.42688H3.10107",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 9.60004L7.92188 12.4125L6.51562 11.0063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 11.0063H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 15.4125L7.92188 18.225L6.51562 16.8188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 16.8188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ms=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 8.1001L7.92188 10.9126L6.51562 9.50635",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 9.50635H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 13.9126L7.92188 16.7251L6.51562 15.3188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 15.3188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Bs=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},n.createElement("path",{d:"M4.49908 1.50001H12.0015H19.5039C19.5039 1.50001 20.868 1.50001 20.868 2.86409V21.1359C20.868 21.1359 20.868 22.5 19.5039 22.5H4.49908C4.49908 22.5 3.13501 22.5 3.13501 21.1359V2.86409C3.13501 2.86409 3.13501 1.50001 4.49908 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.5 11.9996L8.598 14.1953C8.70072 14.4016 8.85107 14.5804 9.03662 14.7171C9.22217 14.8538 9.43759 14.9443 9.66506 14.9812C9.89254 15.0182 10.1255 15.0004 10.3448 14.9295C10.5641 14.8585 10.7633 14.7364 10.926 14.5733L16.5 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{taskManagement:zs,common:As}=se.getLocalizedStrings(),J=zs.taskList.newTaskOptions;function Rs({anchorEl:e,groupByKey:d,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:u,onExpandTemplate:a,onClose:p,onNewTaskClick:i,onNewGroupClick:c,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:b,onNewTaskInitialization:E}){const D=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 B=n.useCallback(($,x)=>{f(x),b($,x)},[b]),z=n.useCallback($=>{M($),C($)},[C]);return t.jsx(Xe,{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(Fs,{isTaskTemplatesEnabled:m,children:[t.jsxs(Hs,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(Os,{}),t.jsx(Ie,{children:J.task})]}),t.jsx(U,{controller:d==="groupName",children:t.jsxs(Pe,{onClick:()=>c(""),children:[t.jsx(Ps,{}),t.jsx(Ie,{children:J.group})]})})]}),m?t.jsx(Ws,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:u,handleGroupTemplateClick:z,handleGroupTemplateTaskClick:B,onNewGroupClick:c,onNewTaskInitialization:E,onExpandTemplate:a}):null]})})}const Ws=({taskGroupTemplates:e,taskIdInCreation:d,groupIdInCreation:r,expandedTemplate:h,onExpandTemplate:m,handleGroupTemplateClick:u,handleGroupTemplateTaskClick:a,onNewGroupClick:p,onNewTaskInitialization:i})=>{const[c,C]=n.useState(""),b=n.useMemo(()=>{const k=[];return e.forEach(f=>{if(f.name.toLowerCase().includes(c.toLowerCase()))k.push(f);else{const w=f.tasks.filter(M=>M.name.toLowerCase().includes(c.toLowerCase()));w.length>0&&k.push({...f,tasks:w})}}),k},[e,c]),E=n.useCallback(()=>{i(c)},[c,i]),D=n.useCallback(()=>{p(c)},[c,p]);return t.jsxs(Us,{children:[t.jsx(_s,{children:t.jsxs(Ks,{children:[t.jsxs(Vs,{children:[t.jsx(qs,{}),t.jsx(Ys,{children:J.groupTemplates})]}),t.jsx(Ss,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:c,onSearchTextChanged:C,placeholder:J.searchPlaceholder})]})}),t.jsx(U,{controller:b.length>0,children:t.jsx(Xs,{children:b.map(k=>{const f=h===k.id;return t.jsxs(ao,{children:[t.jsxs(Zs,{onClick:()=>{m(k.id)},expanded:f,children:[t.jsxs(Js,{children:[t.jsx(U,{controller:f,children:t.jsx(no,{})}),t.jsx(U,{controller:!f,children:t.jsx(oo,{})}),t.jsx(K,{children:k.name}),t.jsx(ct,{count:k.tasks.length})]}),t.jsx(to,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:J.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),u(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(U,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Qs,{children:[t.jsxs(eo,{children:[t.jsx(ro,{className:"styled-dot"}),t.jsx(co,{className:"task-name-text",children:w.name})]}),t.jsx(so,{loading:d===w.name,className:"hidden-create-task-button",variant:"secondary",size:"xs-small",label:As.create,reverseSpinnerColor:!1,onClick:()=>a(k.id,w.name)})]},w.name))})})]},k.id)})})}),t.jsxs(U,{controller:b.length===0,children:[t.jsx(io,{children:t.jsx(lo,{children:J.noTaskGroup})}),t.jsxs(He,{onClick:E,children:[t.jsx(Ue,{}),t.jsx(K,{children:J.newTaskOptionText.replace("__searchText__",c)})]}),t.jsxs(He,{onClick:D,children:[t.jsx(Ue,{}),t.jsx(K,{children:J.newGroupOptionText.replace("__searchText__",c)})]})]})]})},Fs=o.div`
100
+ `,Ds=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.6011 5.42688H3.10107",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 9.60004L7.92188 12.4125L6.51562 11.0063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 11.0063H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 15.4125L7.92188 18.225L6.51562 16.8188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 16.8188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ms=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 8.1001L7.92188 10.9126L6.51562 9.50635",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 9.50635H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 13.9126L7.92188 16.7251L6.51562 15.3188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 15.3188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Bs=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},n.createElement("path",{d:"M4.49908 1.50001H12.0015H19.5039C19.5039 1.50001 20.868 1.50001 20.868 2.86409V21.1359C20.868 21.1359 20.868 22.5 19.5039 22.5H4.49908C4.49908 22.5 3.13501 22.5 3.13501 21.1359V2.86409C3.13501 2.86409 3.13501 1.50001 4.49908 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.5 11.9996L8.598 14.1953C8.70072 14.4016 8.85107 14.5804 9.03662 14.7171C9.22217 14.8538 9.43759 14.9443 9.66506 14.9812C9.89254 15.0182 10.1255 15.0004 10.3448 14.9295C10.5641 14.8585 10.7633 14.7364 10.926 14.5733L16.5 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{taskManagement:zs,common:As}=se.getLocalizedStrings(),J=zs.taskList.newTaskOptions;function Rs({anchorEl:e,groupByKey:d,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:u,onExpandTemplate:a,onClose:p,onNewTaskClick:i,onNewGroupClick:c,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:b,onNewTaskInitialization:E}){const D=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 B=n.useCallback((T,x)=>{f(x),b(T,x)},[b]),z=n.useCallback(T=>{M(T),C(T)},[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(Fs,{isTaskTemplatesEnabled:m,children:[t.jsxs(Hs,{children:[t.jsxs(Pe,{onClick:i,children:[t.jsx(Os,{}),t.jsx(Ie,{children:J.task})]}),t.jsx(U,{controller:d==="groupName",children:t.jsxs(Pe,{onClick:()=>c(""),children:[t.jsx(Ps,{}),t.jsx(Ie,{children:J.group})]})})]}),m?t.jsx(Ws,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:u,handleGroupTemplateClick:z,handleGroupTemplateTaskClick:B,onNewGroupClick:c,onNewTaskInitialization:E,onExpandTemplate:a}):null]})})}const Ws=({taskGroupTemplates:e,taskIdInCreation:d,groupIdInCreation:r,expandedTemplate:h,onExpandTemplate:m,handleGroupTemplateClick:u,handleGroupTemplateTaskClick:a,onNewGroupClick:p,onNewTaskInitialization:i})=>{const[c,C]=n.useState(""),b=n.useMemo(()=>{const k=[];return e.forEach(f=>{if(f.name.toLowerCase().includes(c.toLowerCase()))k.push(f);else{const w=f.tasks.filter(M=>M.name.toLowerCase().includes(c.toLowerCase()));w.length>0&&k.push({...f,tasks:w})}}),k},[e,c]),E=n.useCallback(()=>{i(c)},[c,i]),D=n.useCallback(()=>{p(c)},[c,p]);return t.jsxs(Us,{children:[t.jsx(_s,{children:t.jsxs(Ks,{children:[t.jsxs(Vs,{children:[t.jsx(qs,{}),t.jsx(Ys,{children:J.groupTemplates})]}),t.jsx(Ss,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:c,onSearchTextChanged:C,placeholder:J.searchPlaceholder})]})}),t.jsx(U,{controller:b.length>0,children:t.jsx(Zs,{children:b.map(k=>{const f=h===k.id;return t.jsxs(ao,{children:[t.jsxs(Xs,{onClick:()=>{m(k.id)},expanded:f,children:[t.jsxs(Js,{children:[t.jsx(U,{controller:f,children:t.jsx(no,{})}),t.jsx(U,{controller:!f,children:t.jsx(oo,{})}),t.jsx(K,{children:k.name}),t.jsx(ct,{count:k.tasks.length})]}),t.jsx(to,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:J.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),u(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(U,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Qs,{children:[t.jsxs(eo,{children:[t.jsx(ro,{className:"styled-dot"}),t.jsx(co,{className:"task-name-text",children:w.name})]}),t.jsx(so,{loading:d===w.name,className:"hidden-create-task-button",variant:"secondary",size:"xs-small",label:As.create,reverseSpinnerColor:!1,onClick:()=>a(k.id,w.name)})]},w.name))})})]},k.id)})})}),t.jsxs(U,{controller:b.length===0,children:[t.jsx(io,{children:t.jsx(lo,{children:J.noTaskGroup})}),t.jsxs(He,{onClick:E,children:[t.jsx(Ue,{}),t.jsx(K,{children:J.newTaskOptionText.replace("__searchText__",c)})]}),t.jsxs(He,{onClick:D,children:[t.jsx(Ue,{}),t.jsx(K,{children:J.newGroupOptionText.replace("__searchText__",c)})]})]})]})},Fs=o.div`
101
101
  display: flex;
102
102
  flex-direction: column;
103
103
  width: ${e=>e.isTaskTemplatesEnabled?"408px":"unset"};
@@ -147,10 +147,10 @@ import{aw as gt,e as Ye,V as t,jw as q,bD as kt,aa as U,cq as xt,al as K,aq as w
147
147
  color: ${e=>e.theme.colors.primary};
148
148
  `,Ys=o(Ie)`
149
149
  color: ${e=>e.theme.colors.primary};
150
- `,Xs=o.div`
150
+ `,Zs=o.div`
151
151
  max-height: 320px;
152
152
  overflow: auto;
153
- `,Zs=o.div`
153
+ `,Xs=o.div`
154
154
  display: flex;
155
155
  justify-content: space-between;
156
156
  align-items: center;
@@ -243,7 +243,7 @@ import{aw as gt,e as Ye,V as t,jw as q,bD as kt,aa as U,cq as xt,al as K,aq as w
243
243
  text-overflow: ellipsis;
244
244
  white-space: nowrap;
245
245
  max-width: 336px;
246
- `,{common:Ge,dateFormat:po,taskManagement:Ee}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new Je(125,170,170,250,300)},uo=({taskDetail:e,tagList:d,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:u})=>{const a=ie(),p=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,c=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Ge.strings.empty,{getValues:C,resetField:b,getFieldState:E}=it(),D=(k,f)=>{const w=ze(k,f,xe);E(w).invalid?b(w):m(e,{timeSpent:C(w)})};return t.jsxs(go,{children:[t.jsxs(So,{windowSize:a,onClick:h,responsiveWidth:Z[0].width,children:[t.jsxs(Go,{windowSize:a,children:[t.jsx(Io,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ne,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(Eo,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ne,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(Lo,{windowSize:a,responsiveWidth:Z[0].width,children:t.jsx(No,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(_e,{windowSize:a,responsiveWidth:Z[1].width,children:Be(e.status.code)}),t.jsx(zo,{windowSize:a,responsiveWidth:Z[2].width,children:Be(e.priority.code)}),t.jsx(Ao,{windowSize:a,responsiveWidth:Z[3].width,children:e.dueDate!=null?e.dueDate.format(po.visual.MMMDCommaYYYYformat):t.jsx(ko,{children:Ge.strings.hyphen})}),t.jsx(_e,{windowSize:a,responsiveWidth:Z[4].width,children:p>0?t.jsxs(xo,{children:[t.jsx(qt,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Do,{children:t.jsx(Mo,{children:c})}),p>1?t.jsx(wo,{children:`${Ge.strings.plus}${p-1}`}):null]}):null}),t.jsx(Ro,{windowSize:a,responsiveWidth:Z[5].width,children:e.tagIds.length>0?t.jsx(Bo,{children:Yt(e.tagIds,d)}):null}),t.jsx(Fo,{windowSize:a,responsiveWidth:Z[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Oo,{className:"timeSpentField",children:t.jsx(Xt,{name:ze(r,e.id,xe),placeholder:Ee.common.timeSpentPlaceholder,timeSpentFormat:Ee.common.timeSpentFormat,registerOptions:{validate:k=>ts(k)>Zt?(u({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error"):!0},style:{padding:`${s.sp0} ${s.sp1}`,background:"unset"},onInputBlur:()=>{D(r,e.id)},inputStyle:{textAlign:"right",padding:`${s.sp0} ${s.sp2}`}})})})]})},ho=({taskGroup:e,tagList:d,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:u,isCollapsed:a,existingTaskGroupNamesByGroupId:p,onDeleteTaskGroup:i,onExpandAll:c,onCollapseAll:C,onAddNewTaskToTaskGroup:b,onCollapseToggle:E,onTaskManagementRowClick:D,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[M,B]=n.useState(null),z=ie(),{setFocus:$}=it(),x=n.useCallback(()=>{E(e.id)},[E,e.id]),S=n.useCallback(W=>{B(W.currentTarget)},[]),j=n.useCallback(()=>{B(null)},[]),L=n.useCallback(()=>{b(e.id)},[b,e.id]),g=n.useCallback(()=>{B(null),i(e.id)},[i,e.id]),y=n.useCallback(()=>{$(`${r}.groupName`),j()},[j,r,$]);return t.jsxs(mo,{windowSize:z,children:[t.jsx(U,{controller:h,children:t.jsxs(fo,{children:[t.jsxs(Co,{children:[t.jsx(To,{isOpen:a===!1,onClick:x,children:t.jsx($o,{})}),t.jsx(Ot,{style:{textAlign:"start",width:"100%",background:"unset",...Pt.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Ee.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:W=>Ht(W,e.id,p)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx(jo,{onClick:S,children:t.jsx(yo,{})}),t.jsx(Ut,{onClose:j,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:c,onRename:y,isDefault:e.isDefault,anchorEl:M})]})}),t.jsx(U,{controller:a===!1,children:t.jsx(_t,{mode:"checked_or_hover",isDisabled:u===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(W=>{const _=()=>{D(W.id)};return{label:t.jsx(uo,{taskDetail:W,onRowClick:_,tagList:d,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:z==="small"?null:t.jsx(vo,{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})})]})},mo=o.div`
246
+ `,{common:Ge,dateFormat:po,taskManagement:Ee}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new Je(125,170,170,250,300)},uo=({taskDetail:e,tagList:d,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:u})=>{const a=ie(),p=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,c=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Ge.strings.empty,{getValues:C,resetField:b,getFieldState:E}=it(),D=(k,f)=>{const w=ze(k,f,xe);E(w).invalid?b(w):m(e,{timeSpent:C(w)})};return t.jsxs(go,{children:[t.jsxs(So,{windowSize:a,onClick:h,responsiveWidth:X[0].width,children:[t.jsxs(Go,{windowSize:a,children:[t.jsx(Io,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ne,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(Eo,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ne,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(Lo,{windowSize:a,responsiveWidth:X[0].width,children:t.jsx(No,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(_e,{windowSize:a,responsiveWidth:X[1].width,children:Be(e.status.code)}),t.jsx(zo,{windowSize:a,responsiveWidth:X[2].width,children:Be(e.priority.code)}),t.jsx(Ao,{windowSize:a,responsiveWidth:X[3].width,children:e.dueDate!=null?e.dueDate.format(po.visual.MMMDCommaYYYYformat):t.jsx(ko,{children:Ge.strings.hyphen})}),t.jsx(_e,{windowSize:a,responsiveWidth:X[4].width,children:p>0?t.jsxs(xo,{children:[t.jsx(qt,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Do,{children:t.jsx(Mo,{children:c})}),p>1?t.jsx(wo,{children:`${Ge.strings.plus}${p-1}`}):null]}):null}),t.jsx(Ro,{windowSize:a,responsiveWidth:X[5].width,children:e.tagIds.length>0?t.jsx(Bo,{children:Yt(e.tagIds,d)}):null}),t.jsx(Fo,{windowSize:a,responsiveWidth:X[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Oo,{className:"timeSpentField",children:t.jsx(Zt,{name:ze(r,e.id,xe),placeholder:Ee.common.timeSpentPlaceholder,timeSpentFormat:Ee.common.timeSpentFormat,registerOptions:{validate:k=>ts(k)>Xt?(u({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error"):!0},style:{padding:`${s.sp0} ${s.sp1}`,background:"unset"},onInputBlur:()=>{D(r,e.id)},inputStyle:{textAlign:"right",padding:`${s.sp0} ${s.sp2}`}})})})]})},ho=({taskGroup:e,tagList:d,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:u,isCollapsed:a,existingTaskGroupNamesByGroupId:p,onDeleteTaskGroup:i,onExpandAll:c,onCollapseAll:C,onAddNewTaskToTaskGroup:b,onCollapseToggle:E,onTaskManagementRowClick:D,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[M,B]=n.useState(null),z=ie(),{setFocus:T}=it(),x=n.useCallback(()=>{E(e.id)},[E,e.id]),S=n.useCallback(W=>{B(W.currentTarget)},[]),j=n.useCallback(()=>{B(null)},[]),L=n.useCallback(()=>{b(e.id)},[b,e.id]),g=n.useCallback(()=>{B(null),i(e.id)},[i,e.id]),y=n.useCallback(()=>{T(`${r}.groupName`),j()},[j,r,T]);return t.jsxs(mo,{windowSize:z,children:[t.jsx(U,{controller:h,children:t.jsxs(fo,{children:[t.jsxs(Co,{children:[t.jsx($o,{isOpen:a===!1,onClick:x,children:t.jsx(To,{})}),t.jsx(Ot,{style:{textAlign:"start",width:"100%",background:"unset",...Pt.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Ee.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:W=>Ht(W,e.id,p)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx(jo,{onClick:S,children:t.jsx(yo,{})}),t.jsx(Ut,{onClose:j,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:c,onRename:y,isDefault:e.isDefault,anchorEl:M})]})}),t.jsx(U,{controller:a===!1,children:t.jsx(_t,{mode:"checked_or_hover",isDisabled:u===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(W=>{const _=()=>{D(W.id)};return{label:t.jsx(uo,{taskDetail:W,onRowClick:_,tagList:d,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:z==="small"?null:t.jsx(vo,{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})})]})},mo=o.div`
247
247
  box-sizing: border-box;
248
248
  display: flex;
249
249
  flex-direction: column;
@@ -302,10 +302,10 @@ import{aw as gt,e as Ye,V as t,jw as q,bD as kt,aa as U,cq as xt,al as K,aq as w
302
302
  display: flex;
303
303
  justify-content: space-between;
304
304
  align-items: center;
305
- `,To=o.div`
305
+ `,$o=o.div`
306
306
  cursor: pointer;
307
307
  transform: ${e=>e.isOpen?"rotate(0deg)":"rotate(-90deg)"};
308
- `,$o=o(Qe)`
308
+ `,To=o(Qe)`
309
309
  width: ${s.sp3};
310
310
  height: ${s.sp3};
311
311
  color: ${e=>e.theme.colors.primary};
@@ -430,7 +430,7 @@ import{aw as gt,e as Ye,V as t,jw as q,bD as kt,aa as U,cq as xt,al as K,aq as w
430
430
  column-gap: ${s.sp2};
431
431
  `,Oo=o.div`
432
432
  max-width: ${s.sp11};
433
- `,Po=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),H=se.getLocalizedStrings(),Ve=e=>`${e}_form`,Ho={rowGap:new Je(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),yn=({taskListView:e,tagListView:d,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:u,onDeleteTaskGroup:a,updateLocalData:p,onTaskManagementRowClick:i,onReloadTasks:c,onColumnSortConfigChanged:C,onSearchTextChanged:b,onBackClick:E,onNewTaskClick:D,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:M,onAddNewTaskToTaskGroup:B,onGroupByFilterChange:z,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:j,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:y})=>{const[W,_]=n.useState(!1),[Q,O]=n.useState(null),[P,oe]=n.useState(null),[Y,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:X,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:je}=d,ye=Ye(),ve=R=>{ne(R)},he=n.useCallback(R=>{le(R.currentTarget)},[]),me=n.useCallback(R=>{z(R)},[z]),l=n.useCallback(()=>{z("groupName")},[z]),G=n.useCallback(R=>{y(R)},[y]),F=de.users.map(R=>R.user).filter(R=>R!=null),I={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:X.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:ve,onSearchTextChanged:b,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(ks,{value:X.groupByKey,resetDisabled:X.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>ls("task_management",F,Ce.loggedInUserRole??[],d.tagList)},N=n.useCallback(R=>{le(null),O(q),p({...e.localData,newTaskGroupName:R})},[e.localData,p]),A=n.useCallback(()=>{le(null)},[]),v=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{O(q)},[]),te=n.useCallback(R=>{pe(mt=>mt===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&_(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&pe(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ut=()=>ee==="Error"?t.jsxs(Xo,{children:[t.jsx(Zo,{onClick:c,children:t.jsx(Jo,{})}),t.jsx(Qo,{children:H.common.reloadPage.label})]}):ee==="Completed"&&$e.length===0?t.jsx(ft,{message:H.taskManagement.taskList.noDataText}):ee==="Not-Started"||ee==="In-Progress"?t.jsx(Ct,{fetchState:ee}):t.jsx(Uo,{taskListView:e,tagList:je,renameActiveField:Q,updateTask:m,onDragNDrop:u,onAddNewTaskToTaskGroup:B,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:M,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:_,updateLocalData:p,setActiveTaskGroupId:oe,setRenameActiveField:O,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:j,onCreateTagClick:h}),ht=t.jsx(os,{spendManagementSectionProps:I});return t.jsxs(Yo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ye.colors.grey4,style:{zIndex:3},onBackClick:E,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(Rs,{anchorEl:fe,groupByKey:X.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:D,onNewGroupClick:N,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:Y}),t.jsx(qo,{children:ut()}),t.jsx(U,{controller:W===!0,children:t.jsx(xt,{action:{onOkClick:v,onCancelClick:()=>{_(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(nn,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(an,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Uo=({taskListView:e,tagList:d,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:u,onDragNDrop:a,updateLocalData:p,setShowDeleteModal:i,handleCreateGroup:c,resetLocalData:C,assignGroupToTasks:b,setGroupCreationInProgress:E,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:M,onShowToast:B,onCreateTagClick:z})=>{const $=n.useRef(null);jt({componentName:"task.management.list"});const[x,S]=n.useState(null),j=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:y,uiState:W}=e,[_,Q]=n.useState([]),O=n.useRef(null);hs({scrollContainerRef:O,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=yt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>qe(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d]),values:n.useMemo(()=>qe(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d])}),Y=n.useMemo(()=>{if(r!==q)return y;const l=[],G=y.map(F=>{const I=F.tasks.filter(N=>{const A=g.selectedTaskIds.includes(N.id)===!0;return A&&l.push(N),A===!1});return{...F,tasks:I}});return G.unshift({groupName:"",isDefault:!1,id:q,tasks:l}),G},[r,y,g.selectedTaskIds]),pe=n.useCallback(l=>_.includes(Y[l].id)||Y[l].tasks.length===0?100:j.current?.[l]!=null?j.current[l]+Ho.rowGap.value(L):(ns*1+as)*3+rs+is,[_,Y,L]),fe=n.useCallback(l=>{S(l.currentTarget)},[]),le=n.useCallback((l,G)=>{j.current={...j.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,y]),ue=n.useCallback(l=>{Q(G=>G.includes(l)?G.filter(F=>l!==F):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{Q(y.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[y]),ee=n.useCallback(()=>{Q([]),$.current?.resetAfterIndex(0,!0)},[]),X=n.useCallback(()=>{E(),$.current?.scrollTo(0),ne()},[ne,E]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==q?X():c(!0):r===q?c(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,X,c,m]),$e=n.useCallback(()=>{u(null),C()},[C,u]),je=n.useCallback(l=>{C(),u(l)},[C,u]),ye=n.useCallback(()=>{g.defaultTaskGroupId!=null&&b(g.defaultTaskGroupId)},[b,g.defaultTaskGroupId]),ve=async(l,G)=>{if(l.includes(nt)){const I=l.split(".")[2],N=y.flatMap(v=>v.tasks).find(v=>v.id===I),A=G[V][ae][I].priority.selectedOption;if(N!=null&&A!=null){const v=lt.find(T=>T.code===A);v!=null&&h(N,{priority:v})}return}if(l.includes(at)){const I=l.split(".")[2],N=y.flatMap(v=>v.tasks).find(v=>v.id===I),A=G[V][ae][I].status.selectedOption;if(N!=null&&A!=null){const v=dt.find(T=>T.code===A);N!=null&&v!=null&&h(N,{status:v})}return}if(l.includes(st)){const I=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===I),A=y.find(T=>T.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].assignees.selectedUsers.map(T=>T.userId);A!=null&&v!=null&&N!=null&&h(N,{assignees:v});return}if(l.includes(ot)){const I=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===I),A=y.find(T=>T.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].dueDate.date;A!=null&&v!=null&&N!=null&&h(N,{dueDate:v});return}if(l.includes(tt)){const I=l.split(".")[2],N=y.flatMap(T=>T.tasks).find(T=>T.id===I),A=y.find(T=>T.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].tags.selectedOptions;A!=null&&v!=null&&N!=null&&h(N,{tagIds:v});return}l.includes(xe)&&oe.trigger(l);const F=Ko(l,G,g);p(F)};n.useEffect(()=>{const l=oe.watch((G,{name:F})=>{F!=null&&G!=null&&vt(()=>ve(F,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupUpdateStatus.fetchState]);const he=y.length>1&&g.selectedTaskIds.length>0&&r!==q,me=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(bt,{...oe,children:t.jsx("form",{id:Ve(Me),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(en,{isFooterVisible:me,windowSize:L,children:t.jsx(St,{children:({height:l,width:G})=>t.jsx(Gt,{ref:$,outerRef:O,height:l,itemCount:Y.length,itemSize:pe,estimatedItemSize:It,itemKey:F=>Y[F].id,width:G,overscanCount:Lt,itemData:{tagList:d,taskGroupsWithTasksList:Y,uiState:W,collapsedGroups:_,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:je,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:M,onShowToast:B,onCreateTagClick:z},initialScrollOffset:0,children:_o})})})})}),me?t.jsx(Nt,{formId:Ve(Me),primaryBtn:{label:y.length===1&&g.selectedTaskIds.length>0&&r!==q?Le.taskList.footer.createGroup:Ke.save,style:{width:"135px"},isLoading:e.taskGroupCreationStatus.fetchState==="In-Progress"||e.taskGroupUpdateStatus.fetchState==="In-Progress"},cancelBtn:{label:Ke.cancel,style:{width:"135px"},onClick:$e},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(U,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(sn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(on,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(U,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(ln,{children:t.jsx(Ne,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(rn,{onClick:ye})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(De,{variant:"secondary",label:H.taskManagement.taskList.footer.moveTo,onClick:fe,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx(js,{taskGroupsList:y,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:X,onExistingGroupSelection:l=>{ne(),b(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:b,setRowHeight:E,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,handleOnDragNDrop:B,onRenameClick:z,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&E(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const y=n.useCallback(O=>{const P=O.dataTransfer.getData("row");B(P,a[e].id)},[B,e,a]),W=n.useCallback(O=>{O.preventDefault()},[]),_=(O,P)=>{O.dataTransfer.setData("row",P)},Q=()=>{z(a[e].id)};return t.jsx(tn,{style:{...d,width:"100%"},ref:h,onDrop:y,onDragOver:W,children:t.jsx(Vo,{taskGroup:a[e],showGroupName:!0,tagList:u,uiState:p,isCollapsed:c.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:b,onColumnSortConfigChanged:D,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:_,onRenameClick:Q,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g},a[e].id)})},Vo=({taskGroup:e,tagList:d,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,userList:i,existingTaskGroupNamesByGroupId:c,onRenameClick:C,onTaskManagementRowClick:b,onCollapseToggle:E,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,onDragStart:B,onTimeSpentUpdate:z,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),j=S==="medium-regular"||S==="medium-compact"||S==="small"?ho:Ft;return t.jsx(j,{taskGroup:e,tagList:d,userList:i,sectionId:V,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,existingTaskGroupNamesByGroupId:c,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,onCollapseToggle:E,onTaskManagementRowClick:b,onColumnSortConfigChanged:D,onDragStart:B,onRenameClick:C,onTimeSpentUpdate:z,onShowToast:$,onCreateTagClick:x})},qe=(e,d,r,h)=>{const m={},u={};e.forEach(p=>{u[p.id]={[ke]:[],[ce]:d.existingTaskGroupNamesByGroupId[p.id]},p.tasks.forEach(i=>{d.selectedTaskIds.includes(i.id)&&u[p.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(c=>({label:c.name,value:c.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(c=>({label:c.name,value:c.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(c=>c.user)},[tt]:{allOptions:Dt(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[q]:{[ce]:d.newTaskGroupName,[ke]:[]},...u},[ae]:m};return{[V]:a}},Ko=(e,d,r)=>{if(e.includes(V)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(q)?{...r,newTaskGroupName:d[V].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:d[V].groupData[h][ce]}};if(e.includes(ke)){const m=Rt(Wt(Object.values(d[V][rt]),ke)).filter(u=>u!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},qo=o.div`
433
+ `,Po=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),H=se.getLocalizedStrings(),Ve=e=>`${e}_form`,Ho={rowGap:new Je(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),yn=({taskListView:e,tagListView:d,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:u,onDeleteTaskGroup:a,updateLocalData:p,onTaskManagementRowClick:i,onReloadTasks:c,onColumnSortConfigChanged:C,onSearchTextChanged:b,onBackClick:E,onNewTaskClick:D,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:M,onAddNewTaskToTaskGroup:B,onGroupByFilterChange:z,onTaskGroupRename:T,analytics:x,onTimeSpentUpdate:S,onShowToast:j,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:y})=>{const[W,_]=n.useState(!1),[Q,O]=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:$e,userList:de,taskGroupsWithTasksList:Te}=e,{tagList:je}=d,ye=Ye(),ve=R=>{ne(R)},he=n.useCallback(R=>{le(R.currentTarget)},[]),me=n.useCallback(R=>{z(R)},[z]),l=n.useCallback(()=>{z("groupName")},[z]),G=n.useCallback(R=>{y(R)},[y]),F=de.users.map(R=>R.user).filter(R=>R!=null),I={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:$e,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:ve,onSearchTextChanged:b,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(ks,{value:Z.groupByKey,resetDisabled:Z.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>ls("task_management",F,Ce.loggedInUserRole??[],d.tagList)},N=n.useCallback(R=>{le(null),O(q),p({...e.localData,newTaskGroupName:R})},[e.localData,p]),A=n.useCallback(()=>{le(null)},[]),v=n.useCallback(()=>{P!=null&&a(P)},[P,a]),$=n.useCallback(()=>{O(q)},[]),te=n.useCallback(R=>{pe(mt=>mt===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&_(!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(Zo,{children:[t.jsx(Xo,{onClick:c,children:t.jsx(Jo,{})}),t.jsx(Qo,{children:H.common.reloadPage.label})]}):ee==="Completed"&&Te.length===0?t.jsx(ft,{message:H.taskManagement.taskList.noDataText}):ee==="Not-Started"||ee==="In-Progress"?t.jsx(Ct,{fetchState:ee}):t.jsx(Uo,{taskListView:e,tagList:je,renameActiveField:Q,updateTask:m,onDragNDrop:u,onAddNewTaskToTaskGroup:B,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:M,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:$,setShowDeleteModal:_,updateLocalData:p,setActiveTaskGroupId:oe,setRenameActiveField:O,onTaskGroupRename:T,onTimeSpentUpdate:S,onShowToast:j,onCreateTagClick:h}),ht=t.jsx(os,{spendManagementSectionProps:I});return t.jsxs(Yo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ye.colors.grey4,style:{zIndex:3},onBackClick:E,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(Rs,{anchorEl:fe,groupByKey:Z.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:D,onNewGroupClick:N,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:Y}),t.jsx(qo,{children:ut()}),t.jsx(U,{controller:W===!0,children:t.jsx(xt,{action:{onOkClick:v,onCancelClick:()=>{_(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(nn,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(an,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Uo=({taskListView:e,tagList:d,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:u,onDragNDrop:a,updateLocalData:p,setShowDeleteModal:i,handleCreateGroup:c,resetLocalData:C,assignGroupToTasks:b,setGroupCreationInProgress:E,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:M,onShowToast:B,onCreateTagClick:z})=>{const T=n.useRef(null);jt({componentName:"task.management.list"});const[x,S]=n.useState(null),j=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:y,uiState:W}=e,[_,Q]=n.useState([]),O=n.useRef(null);hs({scrollContainerRef:O,isEnabled:L!=="small"});const P=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=yt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>qe(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d]),values:n.useMemo(()=>qe(e.taskGroupsWithTasksList,g,P,d),[g,e.taskGroupsWithTasksList,P,d])}),Y=n.useMemo(()=>{if(r!==q)return y;const l=[],G=y.map(F=>{const I=F.tasks.filter(N=>{const A=g.selectedTaskIds.includes(N.id)===!0;return A&&l.push(N),A===!1});return{...F,tasks:I}});return G.unshift({groupName:"",isDefault:!1,id:q,tasks:l}),G},[r,y,g.selectedTaskIds]),pe=n.useCallback(l=>_.includes(Y[l].id)||Y[l].tasks.length===0?100:j.current?.[l]!=null?j.current[l]+Ho.rowGap.value(L):(ns*1+as)*3+rs+is,[_,Y,L]),fe=n.useCallback(l=>{S(l.currentTarget)},[]),le=n.useCallback((l,G)=>{j.current={...j.current,[l]:G},T.current?.resetAfterIndex(0,!0)},[L,T,y]),ue=n.useCallback(l=>{Q(G=>G.includes(l)?G.filter(F=>l!==F):[...G,l]),T.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{Q(y.map(l=>l.id)),T.current?.resetAfterIndex(0,!0)},[y]),ee=n.useCallback(()=>{Q([]),T.current?.resetAfterIndex(0,!0)},[]),Z=n.useCallback(()=>{E(),T.current?.scrollTo(0),ne()},[ne,E]),$e=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]),Te=n.useCallback(()=>{u(null),C()},[C,u]),je=n.useCallback(l=>{C(),u(l)},[C,u]),ye=n.useCallback(()=>{g.defaultTaskGroupId!=null&&b(g.defaultTaskGroupId)},[b,g.defaultTaskGroupId]),ve=async(l,G)=>{if(l.includes(nt)){const I=l.split(".")[2],N=y.flatMap(v=>v.tasks).find(v=>v.id===I),A=G[V][ae][I].priority.selectedOption;if(N!=null&&A!=null){const v=lt.find($=>$.code===A);v!=null&&h(N,{priority:v})}return}if(l.includes(at)){const I=l.split(".")[2],N=y.flatMap(v=>v.tasks).find(v=>v.id===I),A=G[V][ae][I].status.selectedOption;if(N!=null&&A!=null){const v=dt.find($=>$.code===A);N!=null&&v!=null&&h(N,{status:v})}return}if(l.includes(st)){const I=l.split(".")[2],N=y.flatMap($=>$.tasks).find($=>$.id===I),A=y.find($=>$.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].assignees.selectedUsers.map($=>$.userId);A!=null&&v!=null&&N!=null&&h(N,{assignees:v});return}if(l.includes(ot)){const I=l.split(".")[2],N=y.flatMap($=>$.tasks).find($=>$.id===I),A=y.find($=>$.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].dueDate.date;A!=null&&v!=null&&N!=null&&h(N,{dueDate:v});return}if(l.includes(tt)){const I=l.split(".")[2],N=y.flatMap($=>$.tasks).find($=>$.id===I),A=y.find($=>$.tasks.find(te=>te.id===I))?.id,v=G[V][ae][I].tags.selectedOptions;A!=null&&v!=null&&N!=null&&h(N,{tagIds:v});return}l.includes(xe)&&oe.trigger(l);const F=Ko(l,G,g);p(F)};n.useEffect(()=>{const l=oe.watch((G,{name:F})=>{F!=null&&G!=null&&vt(()=>ve(F,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupUpdateStatus.fetchState]);const he=y.length>1&&g.selectedTaskIds.length>0&&r!==q,me=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(bt,{...oe,children:t.jsx("form",{id:Ve(Me),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(en,{isFooterVisible:me,windowSize:L,children:t.jsx(St,{children:({height:l,width:G})=>t.jsx(Gt,{ref:T,outerRef:O,height:l,itemCount:Y.length,itemSize:pe,estimatedItemSize:It,itemKey:F=>Y[F].id,width:G,overscanCount:Lt,itemData:{tagList:d,taskGroupsWithTasksList:Y,uiState:W,collapsedGroups:_,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:je,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:D,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:$e,onExpandAll:ee,onTimeSpentUpdate:M,onShowToast:B,onCreateTagClick:z},initialScrollOffset:0,children:_o})})})})}),me?t.jsx(Nt,{formId:Ve(Me),primaryBtn:{label:y.length===1&&g.selectedTaskIds.length>0&&r!==q?Le.taskList.footer.createGroup:Ke.save,style:{width:"135px"},isLoading:e.taskGroupCreationStatus.fetchState==="In-Progress"||e.taskGroupUpdateStatus.fetchState==="In-Progress"},cancelBtn:{label:Ke.cancel,style:{width:"135px"},onClick:Te},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(U,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(sn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(on,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(U,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(ln,{children:t.jsx(Ne,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(rn,{onClick:ye})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(De,{variant:"secondary",label:H.taskManagement.taskList.footer.moveTo,onClick:fe,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx(js,{taskGroupsList:y,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ne(),b(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:b,setRowHeight:E,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,handleOnDragNDrop:B,onRenameClick:z,userList:T,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&E(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const y=n.useCallback(O=>{const P=O.dataTransfer.getData("row");B(P,a[e].id)},[B,e,a]),W=n.useCallback(O=>{O.preventDefault()},[]),_=(O,P)=>{O.dataTransfer.setData("row",P)},Q=()=>{z(a[e].id)};return t.jsx(tn,{style:{...d,width:"100%"},ref:h,onDrop:y,onDragOver:W,children:t.jsx(Vo,{taskGroup:a[e],showGroupName:!0,tagList:u,uiState:p,isCollapsed:c.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:b,onColumnSortConfigChanged:D,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,selectedRowIds:x,userList:T,existingTaskGroupNamesByGroupId:S,onDragStart:_,onRenameClick:Q,onTimeSpentUpdate:j,onShowToast:L,onCreateTagClick:g},a[e].id)})},Vo=({taskGroup:e,tagList:d,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,userList:i,existingTaskGroupNamesByGroupId:c,onRenameClick:C,onTaskManagementRowClick:b,onCollapseToggle:E,onColumnSortConfigChanged:D,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:M,onDragStart:B,onTimeSpentUpdate:z,onShowToast:T,onCreateTagClick:x})=>{const S=ie(),j=S==="medium-regular"||S==="medium-compact"||S==="small"?ho:Ft;return t.jsx(j,{taskGroup:e,tagList:d,userList:i,sectionId:V,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,existingTaskGroupNamesByGroupId:c,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:M,onExpandAll:f,onCollapseToggle:E,onTaskManagementRowClick:b,onColumnSortConfigChanged:D,onDragStart:B,onRenameClick:C,onTimeSpentUpdate:z,onShowToast:T,onCreateTagClick:x})},qe=(e,d,r,h)=>{const m={},u={};e.forEach(p=>{u[p.id]={[ke]:[],[ce]:d.existingTaskGroupNamesByGroupId[p.id]},p.tasks.forEach(i=>{d.selectedTaskIds.includes(i.id)&&u[p.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(c=>({label:c.name,value:c.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(c=>({label:c.name,value:c.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(c=>c.user)},[tt]:{allOptions:Dt(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[q]:{[ce]:d.newTaskGroupName,[ke]:[]},...u},[ae]:m};return{[V]:a}},Ko=(e,d,r)=>{if(e.includes(V)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(q)?{...r,newTaskGroupName:d[V].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:d[V].groupData[h][ce]}};if(e.includes(ke)){const m=Rt(Wt(Object.values(d[V][rt]),ke)).filter(u=>u!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},qo=o.div`
434
434
  display: block;
435
435
  height: 100%;
436
436
  `,Yo=o.div`
@@ -441,14 +441,14 @@ import{aw as gt,e as Ye,V as t,jw as q,bD as kt,aa as U,cq as xt,al as K,aq as w
441
441
  row-gap: ${s.sp4};
442
442
  background-color: ${e=>e.theme.colors.grey4};
443
443
  overflow: hidden;
444
- `,Xo=o.div`
444
+ `,Zo=o.div`
445
445
  display: flex;
446
446
  width: 100%;
447
447
  height: calc(100% - 60px);
448
448
  flex-direction: column;
449
449
  justify-content: center;
450
450
  align-items: center;
451
- `,Zo=o.div`
451
+ `,Xo=o.div`
452
452
  height: 96px;
453
453
  width: 96px;
454
454
  display: flex;
@@ -457,14 +457,14 @@ import{aw as gt,e as Ye,V as t,jw as q,bD as kt,aa as U,cq as xt,al as K,aq as w
457
457
  background: ${e=>e.theme.colors.background};
458
458
  border-radius: 50%;
459
459
  cursor: pointer;
460
- `,Jo=o(Ze)`
460
+ `,Jo=o(Xe)`
461
461
  height: ${s.sp5};
462
462
  width: ${s.sp5};
463
463
  color: ${e=>e.theme.colors.grey1};
464
464
  &:hover {
465
465
  color: ${e=>e.theme.colors.primary};
466
466
  }
467
- `,Qo=o($t)`
467
+ `,Qo=o(Tt)`
468
468
  margin-top: ${s.sp3};
469
469
  color: ${e=>e.theme.colors.hero};
470
470
  `,en=o.div`
@@ -1,4 +1,4 @@
1
- import{V as t,b4 as _,aE as S,dm as B,bs as H,o as c,ai as L}from"./index-B4SkrUUS.js";import{a as n}from"./sentry-BBFZ4Apy.js";import{n as g}from"./mui-DUBEtzg-.js";import{Y as q}from"./core-TLZ6PfaT.js";import{V as U}from"./CollapsableReportTable-DlYIKSlQ-CTPvx283.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]="bf81f1d9-8a36-404d-a299-43e68cb294cb",e._sentryDebugIdIdentifier="sentry-dbid-bf81f1d9-8a36-404d-a299-43e68cb294cb")}catch{}})();const W=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),X=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,Z=g.div`
1
+ import{V as t,b4 as _,aE as S,dl as B,bs as H,o as c,ai as L}from"./index-DOsjGhSZ.js";import{a as n}from"./sentry-otjdlEta.js";import{n as g}from"./mui-B2MHg-Mu.js";import{Y as q}from"./core-BHxev_Cl.js";import{V as U}from"./CollapsableReportTable-vwzu1AgW-BTLj3VXb.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]="9e52e2d4-a199-4ef3-8d2a-6c810883744c",e._sentryDebugIdIdentifier="sentry-dbid-9e52e2d4-a199-4ef3-8d2a-6c810883744c")}catch{}})();const W=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),X=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,Z=g.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: flex-start;
@@ -61,4 +61,4 @@ import{V as t,b4 as _,aE as S,dm as B,bs as H,o as c,ai as L}from"./index-B4SkrU
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(W,{className:"slider-icon",fill:"currentColor"});case"right":return t.jsx(X,{className:"slider-icon",fill:"currentColor"});default:throw Error("Invalid iconPosition")}}function te(e){return q.createPortal(e.children,e.parentNode)}function re({enabled:e,firstMonthOfFY:s,timeframe:i,tick:r,tickIndex:u,isSelected:a,onClick:f}){return t.jsx(A,{isEnabled:e,isSelected:a,onClick:()=>{f(r,u,i)},children:t.jsx(J,{children:U(s,r,i)})})}function ne(e,s,i,r,u){const a=s-e,f=Math.floor(e/h)+Math.round(a/h),w=f+i.length-r.length,x=f+i.length,b=u-x;return{selectedTicks:{fromStart:{startIndex:f,length:i.length},fromEnd:{offsetFromEnd:b,length:i.length}},highlightedOfSelectedTicks:{startIndex:w,length:r.length}}}function oe(e){return e.startIndex!=null}function I(e,s){let i={startIndex:0,length:0};if(oe(e))i=e;else{const r=e.length;i={startIndex:s.length-e.offsetFromEnd-r+1,length:e.length}}return i}function ie({width:e,firstMonthOfFY:s,timeframe:i,timeframeTicks:r,isEnabled:u,selection:a,onClick:f,onSelectionChanged:w}){const x=n.createRef(),b=n.useRef(null),[z,M]=n.useState(!1),[l,T]=n.useState(I(a.selectedTicks,r)),$=n.useRef(l.startIndex);n.useEffect(()=>{$.current=l.startIndex});const[y,C]=n.useState(a.highlightedOfSelectedTicks),O=(l.startIndex+l.length>r.length?Math.max(r.length-l.length,0):l.startIndex)*h,[E,F]=n.useState({x:O,y:0});n.useEffect(()=>{M(!0)},[]),n.useEffect(()=>{const o=I(a.selectedTicks,r);if(!S(l,o)){T(o);const d=o.startIndex*h;F({x:d,y:0})}S(y,a.highlightedOfSelectedTicks)||C(a.highlightedOfSelectedTicks)},[l,y,a,r]),n.useLayoutEffect(()=>{const{startIndex:o,length:d}=l;x.current?.scrollToItem($.current<=o?o+d-1:o)},[x,l]);const N=u!==!1,P=(o,d,m)=>{f?.(m,o)},V=(o,d)=>{const m=ne(E.x,d.x,l,y,r.length);w?.(m.selectedTicks,m.highlightedOfSelectedTicks,i,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:i,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-l.length)*h},grid:[1,0],scale:1,onStop:V,nodeRef:b,children:t.jsxs(K,{numberOfTicksSelected:l.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(Z,{children:t.jsx(_,{children:({width:s})=>t.jsx(ie,{...e,width:s})})})}export{p as a,he as p};
64
+ `;function j({iconPosition:e}){switch(e){case"left":return t.jsx(W,{className:"slider-icon",fill:"currentColor"});case"right":return t.jsx(X,{className:"slider-icon",fill:"currentColor"});default:throw Error("Invalid iconPosition")}}function te(e){return 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(A,{isEnabled:e,isSelected:a,onClick:()=>{f(r,u,l)},children:t.jsx(J,{children:U(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(Z,{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,ai as f,F as p}from"./index-B4SkrUUS.js";import{n as d}from"./mui-DUBEtzg-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae25b2a9-e3e2-42a4-ad73-49f9fc69c2d4",e._sentryDebugIdIdentifier="sentry-dbid-ae25b2a9-e3e2-42a4-ad73-49f9fc69c2d4")}catch{}})();const u=d.div`
1
+ import{V as s,o,ai as f,F as p}from"./index-DOsjGhSZ.js";import{n as d}from"./mui-B2MHg-Mu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae25b2a9-e3e2-42a4-ad73-49f9fc69c2d4",e._sentryDebugIdIdentifier="sentry-dbid-ae25b2a9-e3e2-42a4-ad73-49f9fc69c2d4")}catch{}})();const u=d.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{J as n,V as t,y as d,ai as u,bK as b}from"./index-B4SkrUUS.js";import{n as r}from"./mui-DUBEtzg-.js";import{b as l}from"./TimeframeSwitcher-BppC6giF-C7ddFaNs.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]="2ffe0265-5098-45cb-b36b-6fe1f4476eb0",e._sentryDebugIdIdentifier="sentry-dbid-2ffe0265-5098-45cb-b36b-6fe1f4476eb0")}catch{}})();const s="ZeniSwitch",i={root:`${s}-root`,switchBase:`${s}-switchBase`,track:`${s}-track`,thumb:`${s}-thumb`},w=({className:e,...o})=>t.jsx(b,{...o,className:e,classes:{...i}}),x=r(w)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),p=e=>t.jsx(x,{...e}),c={timeframePaddingLeft:new d(0,0,125),timeframePaddingBottom:new d(8,8,0)},y=r.div`
1
+ import{J as n,V as t,y as d,ai as u,bK as w}from"./index-DOsjGhSZ.js";import{n as r}from"./mui-B2MHg-Mu.js";import{b as l}from"./TimeframeSwitcher-B7EXKmdi-DuvH5agU.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]="ec3ab7fb-be76-4831-8a2f-9a364e69e187",e._sentryDebugIdIdentifier="sentry-dbid-ec3ab7fb-be76-4831-8a2f-9a364e69e187")}catch{}})();const s="ZeniSwitch",i={root:`${s}-root`,switchBase:`${s}-switchBase`,track:`${s}-track`,thumb:`${s}-thumb`},b=({className:e,...o})=>t.jsx(w,{...o,className:e,classes:{...i}}),x=r(b)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),p=e=>t.jsx(x,{...e}),c={timeframePaddingLeft:new 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;
@@ -1,19 +1,19 @@
1
- import{aE as M,J as z,V as t,e as x,u as f,b as T,aZ as R,aO as H,aM as X,o as p,ai as C,ba as F,al as Q,F as S,aN as q,aT as E,b3 as G,b4 as N,aQ as U,aU as Y,bS as J}from"./index-B4SkrUUS.js";import{P as w,a as Z}from"./sentry-BBFZ4Apy.js";import{F7 as W}from"./zeni-epic-state-CbQxc4HL.js";import{n as g}from"./mui-DUBEtzg-.js";import{I as ee,T as te}from"./ReloadCard-C81rGzOp-DrV9TjCC.js";import{o as ae,r as re}from"./graphic-no-data-l-DU4J8fDt-BXAAbldy.js";import{H as k,X as K,Y as L,K as $,O,Q as ne,S as oe}from"./recharts-ZbSULBPo.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]="2a177e62-0fb3-42d0-89e9-06b5d88c3765",e._sentryDebugIdIdentifier="sentry-dbid-2a177e62-0fb3-42d0-89e9-06b5d88c3765")}catch{}})();const ie=g(E)`
1
+ import{aE as M,J as z,V as t,d as x,u as p,b as T,aZ as R,aO as H,aM as X,o as f,ai as C,ba as F,al as Q,F as S,aN as q,aT as E,b3 as G,b4 as N,aQ as U,aU as Y,bS as J}from"./index-DOsjGhSZ.js";import{P as w,a as Z}from"./sentry-otjdlEta.js";import{F7 as W}from"./zeni-epic-state-DVinyIRY.js";import{n as g}from"./mui-B2MHg-Mu.js";import{I as ee,T as te}from"./ReloadCard-IEyjck4Y-Bypr7i2O.js";import{o as ae,r as re}from"./graphic-no-data-l-DU4J8fDt-EQfaFxjc.js";import{H as k,X as K,Y as L,K as $,O,Q as ne,S as oe}from"./recharts-B7o7FzH2.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]="f0f30f69-0e19-4baa-81d4-11212c4230f0",e._sentryDebugIdIdentifier="sentry-dbid-f0f30f69-0e19-4baa-81d4-11212c4230f0")}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(J,{pickerValues:e,valueToLabel:i,selectedValue:n,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(Y)`
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(J,{pickerValues:e,valueToLabel:i,selectedValue:n,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(Y)`
10
10
  color: ${e=>e.theme.colors.champion};
11
11
  `,D=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(q,{"data-testid":U("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>i(l,r),children:t.jsxs(E,{children:[t.jsxs(D,{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(D,{style:{width:"100%",height:"100%",cursor:"pointer"},children:t.jsx("div",{style:{width:"100%",height:"100%"},children:t.jsx(N,{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 A=(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(q,{"data-testid":U("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>i(l,r),children:t.jsxs(E,{children:[t.jsxs(D,{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(D,{style:{width:"100%",height:"100%",cursor:"pointer"},children:t.jsx("div",{style:{width:"100%",height:"100%"},children:t.jsx(N,{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 A=(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{aE as M,J as z,V as t,e as x,u as f,b as T,aZ as R,aO as H,aM as X,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(F)`
33
33
  flex: 1 1 0;
34
34
  color: ${e=>e.theme.colors.primary};
35
35
  `,be=g(Q)`
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=A(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(O,{fill:i.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(De,{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])})]})})},De=({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(K,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),o?.amount??0]}),t.jsx(L,{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]})},I=41,v=4;function Ie({report:e,width:n,height:r,showBarHoverBackground:l,isDetailPage:i}){const o=x(),d=A(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(O,{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?(I+2*v)*e.length:l:l+5,barSize:i?I: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(K,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx(L,{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?R("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(Ie,{...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]=Z.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(X,{isDragging:l?.draggedCardType!=null,isDragOver:l?.dragOverCard===e.cardType,draggable:!0,onDragStart:c=>l?.onDragStart(e.cardType,c),onDragOver:c=>l?.onDragOver(c,e.cardType),onDragLeave:c=>l?.onDragLeave(c),onDrop:c=>l?.onDrop(c,e.cardType),dimension:e.dimension,children:t.jsx(P,{card:e,actions:n,timeframe:i,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}w.memo(Ee);export{P as A,Se as E,Ce as I,Ee as L,ce as c};
37
+ margin-right: ${f.sp2};
38
+ `;function je({report:e,width:n,height:r,showBarHoverBackground:l}){const i=x(),o=A(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(O,{fill:i.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(De,{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])})]})})},De=({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(K,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),o?.amount??0]}),t.jsx(L,{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]})},I=41,v=4;function Ie({report:e,width:n,height:r,showBarHoverBackground:l,isDetailPage:i}){const o=x(),d=A(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(O,{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?(I+2*v)*e.length:l:l+5,barSize:i?I: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(K,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx(L,{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?R("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(Ie,{...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]=Z.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(X,{isDragging:l?.draggedCardType!=null,isDragOver:l?.dragOverCard===e.cardType,draggable:!0,onDragStart:c=>l?.onDragStart(e.cardType,c),onDragOver:c=>l?.onDragOver(c,e.cardType),onDragLeave:c=>l?.onDragLeave(c),onDrop:c=>l?.onDrop(c,e.cardType),dimension:e.dimension,children:t.jsx(P,{card:e,actions:n,timeframe:i,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}w.memo(Ee);export{P as A,Se as E,Ce as I,Ee as L,ce as c};
@@ -1,4 +1,4 @@
1
- import{e as v,J as S,V as t,bD as A,F as f,aO as b,b4 as B,x as P,o as i,y as E,bR as H,bt as D,u as c,p as V,al as $,aQ as F,b0 as z}from"./index-B4SkrUUS.js";import{n}from"./mui-DUBEtzg-.js";import{F7 as T}from"./zeni-epic-state-CbQxc4HL.js";import{E as _,I}from"./TopExCard-Cy6tPVSx-Bbwl1jG_.js";import{b as M}from"./TimeframeSwitcher-BppC6giF-C7ddFaNs.js";import{d as Z}from"./NoDataTable-9xF1_3XS-DmyXOk6M.js";import{P as L,a as o}from"./sentry-BBFZ4Apy.js";import"./liveblocks-Dh9EWLXD.js";import"./core-TLZ6PfaT.js";import"./recharts-ZbSULBPo.js";import"./lottie-osIcf0zV.js";import"./analytics-BFo1DlpM.js";import"./lexical-DGcsrY0x.js";import"./utils-DvDl_6hs.js";import"./ReloadCard-C81rGzOp-DrV9TjCC.js";import"./graphic-no-data-l-DU4J8fDt-BXAAbldy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="7341dae9-de0b-4553-aa07-6aae4105dca4",e._sentryDebugIdIdentifier="sentry-dbid-7341dae9-de0b-4553-aa07-6aae4105dca4")}catch{}})();const j="141px",O=i.sp4,N="123px",R=n(z)`
1
+ import{d as j,J as A,V as t,bD as S,F as f,aO as b,b4 as B,w as P,o as i,y as E,bR as H,bt as D,u as c,p as V,al as $,aQ as F,b0 as z}from"./index-DOsjGhSZ.js";import{n}from"./mui-B2MHg-Mu.js";import{F7 as T}from"./zeni-epic-state-DVinyIRY.js";import{E as _,I}from"./TopExCard-l-xo9Vzj-B1PmkJWv.js";import{b as M}from"./TimeframeSwitcher-B7EXKmdi-DuvH5agU.js";import{d as L}from"./NoDataTable-B2CS7NPq-CvFUjFVv.js";import{P as Z,a as o}from"./sentry-otjdlEta.js";import"./liveblocks-KFxhhSr3.js";import"./core-BHxev_Cl.js";import"./recharts-B7o7FzH2.js";import"./lottie-DDoT_sT4.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.js";import"./ReloadCard-IEyjck4Y-Bypr7i2O.js";import"./graphic-no-data-l-DU4J8fDt-EQfaFxjc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="5ca9dc48-fc6a-448c-95ac-73a8eb6cdfd9",e._sentryDebugIdIdentifier="sentry-dbid-5ca9dc48-fc6a-448c-95ac-73a8eb6cdfd9")}catch{}})();const v="141px",O=i.sp4,N="123px",R=n(z)`
2
2
  color: inherit;
3
3
  width: ${i.sp3};
4
4
  height: ${i.sp3};
@@ -26,8 +26,8 @@ import{e as v,J as S,V as t,bD as A,F as f,aO as b,b4 as B,x as P,o as i,y as E,
26
26
  justify-content: flex-end;
27
27
  `,W=n($)`
28
28
  user-select: none;
29
- width: ${j};
30
- min-width: ${j};
29
+ width: ${v};
30
+ min-width: ${v};
31
31
  text-align: right;
32
32
  margin-left: ${O};
33
33
  `,X=n.div`
@@ -36,27 +36,27 @@ import{e as v,J as S,V as t,bD as A,F as f,aO as b,b4 as B,x as P,o as i,y as E,
36
36
  flex-shrink: 2;
37
37
  flex-grow: 1;
38
38
  align-items: center;
39
- `,q=n($)`
39
+ `,Y=n($)`
40
40
  user-select: none;
41
41
  display: flex;
42
42
  min-width: ${N};
43
43
  text-align: left;
44
44
  margin-left: ${i.sp4};
45
- `;function G({leftChevron:e,account:l,onAccountBalanceClick:a}){const s=l!=null&&l.balance!=null,r=e==="hidden",g=s?"pointer":"default",d=r===!1&&s,w=d?"pointer":"default",h=r?c[6]:c[4],m=R,{common:{strings:{empty:y}}}=f.getLocalizedStrings(),C=l?.accountDescription?l.accountDescription:y,x=l?.accountName?l.accountName:C;return t.jsxs(J,{isClickable:d,children:[t.jsxs(X,{style:{cursor:w},isClickable:d,children:[r===!1?t.jsx(m,{style:{minWidth:c[3],minHeight:c[3]}}):null,t.jsx(q,{"data-testid":F("top-ex-account-name",x),style:{marginLeft:h},title:x,onClick:()=>{d&&l!=null&&l.balance!=null&&a?.(l)},children:x})]}),t.jsx(Q,{style:{cursor:g},children:t.jsx(W,{isClickable:s,onClick:()=>{l?.balance!=null&&a?.(l)},children:b("0,0",l?.balance.available)})})]})}const K=n.div`
45
+ `;function q({leftChevron:e,account:l,onAccountBalanceClick:a}){const s=l!=null&&l.balance!=null,r=e==="hidden",g=s?"pointer":"default",d=r===!1&&s,w=d?"pointer":"default",h=r?c[6]:c[4],m=R,{common:{strings:{empty:y}}}=f.getLocalizedStrings(),C=l?.accountDescription?l.accountDescription:y,x=l?.accountName?l.accountName:C;return t.jsxs(J,{isClickable:d,children:[t.jsxs(X,{style:{cursor:w},isClickable:d,children:[r===!1?t.jsx(m,{style:{minWidth:c[3],minHeight:c[3]}}):null,t.jsx(Y,{"data-testid":F("top-ex-account-name",x),style:{marginLeft:h},title:x,onClick:()=>{d&&l!=null&&l.balance!=null&&a?.(l)},children:x})]}),t.jsx(Q,{style:{cursor:g},children:t.jsx(W,{isClickable:s,onClick:()=>{l?.balance!=null&&a?.(l)},children:b("0,0",l?.balance.available)})})]})}const G=n.div`
46
46
  display: flex;
47
47
  width: 100%;
48
48
  flex-direction: column;
49
- `,U=n.div`
49
+ `,K=n.div`
50
50
  display: flex;
51
51
  width: 100%;
52
52
  flex-direction: column;
53
- `,Y=n.div`
53
+ `,U=n.div`
54
54
  display: flex;
55
55
  flex: 1 1 auto;
56
56
  width: 100%;
57
57
  height: 1px;
58
58
  background-color: ${e=>e.theme.colors.grey3};
59
- `;function ee({accounts:e,onAccountBalanceClick:l}){const a=(s,r)=>s.length>1&&r<s.length-1;return t.jsx(K,{children:e?.map((s,r)=>t.jsxs(U,{children:[t.jsx(G,{leftChevron:"collapsed",account:s,onAccountBalanceClick:l}),a(e,r)===!0?t.jsx(Y,{}):null]},r))})}const te=L.memo(ee),ie=n.div`
59
+ `;function ee({accounts:e,onAccountBalanceClick:l}){const a=(s,r)=>s.length>1&&r<s.length-1;return t.jsx(G,{children:e?.map((s,r)=>t.jsxs(K,{children:[t.jsx(q,{leftChevron:"collapsed",account:s,onAccountBalanceClick:l}),a(e,r)===!0?t.jsx(U,{}):null]},r))})}const te=Z.memo(ee),ie=n.div`
60
60
  margin: ${i.sp0} ${i.sp0} ${i.sp6} ${i.sp0};
61
61
  background-color: inherit;
62
62
  width: 100%;
@@ -84,7 +84,7 @@ import{e as v,J as S,V as t,bD as A,F as f,aO as b,b4 as B,x as P,o as i,y as E,
84
84
  `,ce=n($)`
85
85
  color: ${V.alert};
86
86
  margin: ${i.sp3} ${i.sp0} ${i.sp5} ${i.sp0};
87
- `;function de(){switch(v().mode){case"light":return t.jsx(oe,{width:"100%",preserveAspectRatio:"none"});case"dark":default:return t.jsx(le,{width:"100%",preserveAspectRatio:"none"})}}function pe({title:e}){return t.jsxs(re,{children:[e!=null?t.jsx(ce,{children:e}):null,t.jsx(ae,{children:t.jsx(se,{children:t.jsx(de,{})})})]})}const u={wrapperPadding:new E(c[3],c[3],c[8]),chartContainerMinHeight:new E(c[12],c[11])},he=n.div`
87
+ `;function de(){switch(j().mode){case"light":return t.jsx(oe,{width:"100%",preserveAspectRatio:"none"});case"dark":default:return t.jsx(le,{width:"100%",preserveAspectRatio:"none"})}}function pe({title:e}){return t.jsxs(re,{children:[e!=null?t.jsx(ce,{children:e}):null,t.jsx(ae,{children:t.jsx(se,{children:t.jsx(de,{})})})]})}const u={wrapperPadding:new E(c[3],c[3],c[8]),chartContainerMinHeight:new E(c[12],c[11])},he=n.div`
88
88
  display: flex;
89
89
  flex: 1 1 auto;
90
90
  min-height: 100%;
@@ -129,4 +129,4 @@ import{e as v,J as S,V as t,bD as A,F as f,aO as b,b4 as B,x as P,o as i,y as E,
129
129
  margin-bottom: ${i.sp5};
130
130
  `,$e=n.div`
131
131
  display: flex;
132
- `;function Ie(e){const l=v(),{report:a,onTimeframeSelectionChanged:s,onAccountBalanceClick:r,onBackClick:g}=e,d=S(),w=[...T],h=_(a.topExpenses.accountsOrdered),{topExTimePeriod:m,topExpenses:y}=a,C=y.total,x=p=>{e.autoCompleteData.autoCompleteText!=null&&e.analytics?.trackSearch(P.Event.search,"Top Expenses",p.type,p.name,e.autoCompleteData.autoCompleteText),e.autoCompleteActions.onAutoCompleteEntity?.(p)};return t.jsxs(he,{children:[t.jsx(A,{source:"TopExDetailPage",title:f.getLocalizedStrings().reportTitleById.top_expenses,backgroundColor:l.colors.grey5,onBackClick:g,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:x}}}),t.jsxs(me,{windowSize:d,children:[t.jsx(fe,{children:t.jsx(xe,{children:t.jsx(M,{timeframes:w,selectedTimeframe:m,onTimeframeSelectionChanged:p=>{s?.(p)}})})}),h?null:t.jsxs(ge,{children:[t.jsx(we,{children:b("0,0",C)}),t.jsx(ye,{children:f.getLocalizedStrings().reports.detail.topEx.insightLabel})]}),h?t.jsx($e,{children:t.jsx(pe,{title:`${f.getLocalizedStrings().chartCard.no_data_available_for} ${f.getLocalizedStrings().timeframe[m]}`})}):t.jsx(Ce,{windowSize:d,children:t.jsx(B,{style:{height:"fit-content"},children:({height:p,width:k})=>t.jsx(I,{report:a,timeframe:m,showBarHoverBackground:!1,width:k,height:p,isDetailPage:!0})})})]}),t.jsx(ue,{windowSize:d,children:h?t.jsx(Z,{}):t.jsx(ne,{report:a,onAccountBalanceClick:r})})]})}export{Ie as default};
132
+ `;function Ie(e){const l=j(),{report:a,onTimeframeSelectionChanged:s,onAccountBalanceClick:r,onBackClick:g}=e,d=A(),w=[...T],h=_(a.topExpenses.accountsOrdered),{topExTimePeriod:m,topExpenses:y}=a,C=y.total,x=p=>{e.autoCompleteData.autoCompleteText!=null&&e.analytics?.trackSearch(P.Event.search,"Top Expenses",p.type,p.name,e.autoCompleteData.autoCompleteText),e.autoCompleteActions.onAutoCompleteEntity?.(p)};return t.jsxs(he,{children:[t.jsx(S,{source:"TopExDetailPage",title:f.getLocalizedStrings().reportTitleById.top_expenses,backgroundColor:l.colors.grey5,onBackClick:g,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:x}}}),t.jsxs(me,{windowSize:d,children:[t.jsx(fe,{children:t.jsx(xe,{children:t.jsx(M,{timeframes:w,selectedTimeframe:m,onTimeframeSelectionChanged:p=>{s?.(p)}})})}),h?null:t.jsxs(ge,{children:[t.jsx(we,{children:b("0,0",C)}),t.jsx(ye,{children:f.getLocalizedStrings().reports.detail.topEx.insightLabel})]}),h?t.jsx($e,{children:t.jsx(pe,{title:`${f.getLocalizedStrings().chartCard.no_data_available_for} ${f.getLocalizedStrings().timeframe[m]}`})}):t.jsx(Ce,{windowSize:d,children:t.jsx(B,{style:{height:"fit-content"},children:({height:p,width:k})=>t.jsx(I,{report:a,timeframe:m,showBarHoverBackground:!1,width:k,height:p,isDetailPage:!0})})})]}),t.jsx(ue,{windowSize:d,children:h?t.jsx(L,{}):t.jsx(ne,{report:a,onAccountBalanceClick:r})})]})}export{Ie as default};
@@ -1,4 +1,4 @@
1
- import{V as n,T as F,o,b8 as H,F as z,al as M,c as U,eG as B,am as K,bh as I,h as P,ai as q,dw as G,a_ as J}from"./index-B4SkrUUS.js";import{a as Q}from"./sentry-BBFZ4Apy.js";import{n as i}from"./mui-DUBEtzg-.js";import"./liveblocks-Dh9EWLXD.js";import"./core-TLZ6PfaT.js";import"./recharts-ZbSULBPo.js";import"./zeni-epic-state-CbQxc4HL.js";import"./lottie-osIcf0zV.js";import"./analytics-BFo1DlpM.js";import"./lexical-DGcsrY0x.js";import"./utils-DvDl_6hs.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]="3028aca5-f2cd-4443-9118-01753c45d1f8",e._sentryDebugIdIdentifier="sentry-dbid-3028aca5-f2cd-4443-9118-01753c45d1f8")}catch{}})();const A=z.getLocalizedStrings(),{transactionActivityLog:p}=A.expenseAutomation.transactions,{dateFormat:x}=A,g={"transaction_line.vendor.updated":p.fields.vendor,"transaction_line.vendor.matched":p.fields.vendor,"transaction_line.account.updated":p.fields.category,"transaction_line.class.updated":p.fields.class,"transaction_line.vendor.user_update":p.fields.vendor,"transaction_line.customer.user_update":p.fields.customer,"transaction_line.memo.user_update":p.fields.memo,"transaction_line.description.user_update":p.fields.description,"transaction_line.account.user_update":p.fields.category,"transaction_line.class.user_update":p.fields.class},f=p.linePrefix;function C(e){return e.data?.transaction?.lineId??null}function W(e){return e.endsWith(".user_update")}function Y(e){return e.length>0&&W(e[0].eventType)}function Z(e){const t=e.data?.transaction?.originalLine;if(t==null)return;const r=e.eventType;if(r==="transaction_line.account.user_update")return t.account?.accountName;if(r==="transaction_line.class.user_update")return t.class?.className;if(r==="transaction_line.vendor.user_update")return t.vendor?.name;if(r==="transaction_line.customer.user_update")return t.customer?.name;if(r==="transaction_line.memo.user_update")return t.memo;if(r==="transaction_line.description.user_update")return t.description}function O(e){const t=e.data?.transaction?.updatedLine;if(t==null)return;const r=e.eventType;if(r==="transaction_line.account.user_update")return t.account?.accountName;if(r==="transaction_line.class.user_update")return t.class?.className;if(r==="transaction_line.vendor.user_update")return t.vendor?.name;if(r==="transaction_line.customer.user_update")return t.customer?.name;if(r==="transaction_line.memo.user_update")return t.memo;if(r==="transaction_line.description.user_update")return t.description}function y(e){return e.map(t=>`${t.fieldName}|${t.oldValue??""}|${t.newValue??""}`).join(";;")}function R(e){const t=new Map;for(const s of e){if(s.data==null)continue;const l=C(s);if(l==null)continue;const m=g[s.eventType]??s.eventType,d=Z(s),h=O(s),c=t.get(l)??[];c.push({fieldName:m,oldValue:d,newValue:h}),t.set(l,c)}const r=Array.from(t.keys()).sort((s,l)=>Number(s)-Number(l)||String(s).localeCompare(String(l)));if(r.length===0)return[];const u=[];let a=0;for(;a<r.length;){const s=r[a],l=t.get(s)??[],m=y(l);let d=a;for(;d+1<r.length&&y(t.get(r[d+1])??[])===m;)d+=1;const h=r[d],c=s===h?`${f}${s}`:`${f}${s} - ${f}${h}`;u.push({details:l,lineDisplayLabel:c}),a=d+1}return u}function j(e){return e.map(t=>`${t.fieldName}|${t.newValue??""}|${t.reasoning}`).join(";;")}function X(e){const t=new Map;for(const s of e){if(s.data==null)continue;const l=C(s);if(l==null)continue;const m=E(s),d=g[s.eventType]??s.eventType,h=s.data.aiSummaries[0];if(h!=null){const c=t.get(l)??[];c.push({fieldName:d,newValue:m,reasoning:h.reasoning}),t.set(l,c)}}const r=Array.from(t.keys()).sort((s,l)=>Number(s)-Number(l)||String(s).localeCompare(String(l)));if(r.length===0)return[];const u=[];let a=0;for(;a<r.length;){const s=r[a],l=t.get(s)??[],m=j(l);let d=a;for(;d+1<r.length&&j(t.get(r[d+1])??[])===m;)d+=1;const h=r[d],c=s===h?`${f}${s}`:`${f}${s} - ${f}${h}`;u.push({details:l,lineDisplayLabel:c}),a=d+1}return u}function ee(e){const t=[];let r=0;for(;r<e.length;){const u=e[r],a=[u],s=u.data?.transaction?.correlationId;let l=r+1;if(s!=null)for(;l<e.length&&e[l].data?.transaction?.correlationId===s;)a.push(e[l]),l++;else for(;l<e.length&&e[l].createTime.format("DD MM YYYY HH:mm:ss")===u.createTime.format("DD MM YYYY HH:mm:ss");)a.push(e[l]),l++;t.push(a),r=l}return t}function te(e){if(e.length===1&&e[0].eventType==="transaction.sync_database")return p.transactionIngested;if(Y(e)){const a=e[0].data?.user;if(a!=null){const s=p.userUpdatedDetails.charAt(0).toLowerCase()+p.userUpdatedDetails.slice(1);return`${a.firstName} ${a.lastName} ${s}`}return p.userUpdatedDetails}const t=[...new Set(e.map(a=>g[a.eventType]).filter(a=>a!=null))];if(t.length===0)return e[0].eventType;if(t.length===1)return`${p.aiBookkeeperAdded} ${t[0]}.`;const r=t.at(-1),u=t.slice(0,-1);return`${p.aiBookkeeperAdded} ${u.join(", ")} and ${r}.`}function E(e){const t=e.data?.transaction?.updatedLine;if(!(t==null||e.eventType==="transaction.sync_database")){if(e.eventType==="transaction_line.vendor.updated"||e.eventType==="transaction_line.vendor.matched")return t.vendor?.name;if(e.eventType==="transaction_line.account.updated")return t.account?.accountName;if(e.eventType==="transaction_line.class.updated")return t.class?.className;if(e.eventType==="transaction_line.customer.updated")return t.customer?.name}}function ne(e){return e.flatMap(t=>{if(t.data==null)return[];const r=t.data.aiSummaries[0];if(r==null)return[];const u=E(t);return[{fieldName:g[t.eventType]??t.eventType,newValue:u,reasoning:r.reasoning}]})}const Ge=({transactionActivityLogSelectorView:e,onClose:t})=>{const{transactionActivityLogs:r}=e,u=ee(r);return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?n.jsxs(ie,{children:[n.jsx(F,{size:"ExtraLarge",start:!0}),";"]}):e.fetchState==="Completed"&&u.length===0?n.jsxs(v,{children:[n.jsx(_,{children:n.jsx(b,{children:p.title})}),n.jsx(Ie,{children:n.jsx(Ae,{children:p.noLogsFound})})]}):n.jsxs(v,{children:[n.jsxs(_,{children:[n.jsx(b,{children:p.title}),n.jsx(se,{onClick:t,children:n.jsx(oe,{})})]}),n.jsx(ae,{children:u.map((a,s)=>n.jsx(re,{isLast:s===u.length-1,group:a},a[0].id))})]})},re=({group:e,isLast:t})=>{const[r,u]=Q.useState(!1),a=Y(e),s=a?[]:X(e),l=a?R(e):[],m=a?[]:ne(e);return n.jsxs(ue,{children:[n.jsxs(he,{children:[n.jsx(me,{children:a?n.jsx(ge,{}):n.jsx(fe,{})}),!t&&n.jsx($e,{})]}),n.jsxs(xe,{children:[n.jsx(ye,{children:te(e)}),n.jsxs(je,{children:[n.jsx(k,{children:e[0].createTime.format(x.visual.MMMDFormat)}),n.jsx(ve,{}),n.jsx(k,{children:e[0].createTime.format(x.visual.HHMMFormat)})]}),a&&l.length>0&&n.jsx(w,{children:l.map((d,h)=>n.jsxs(T,{children:[n.jsxs(N,{children:[n.jsx(L,{children:d.lineDisplayLabel}),n.jsx(V,{"aria-hidden":!0,children:"#"})]}),n.jsx(Le,{children:d.details.map((c,$)=>n.jsxs(Ve,{children:[n.jsxs(ke,{children:[c.fieldName,":"," "]}),c.oldValue!=null&&n.jsx(De,{children:c.oldValue}),c.oldValue!=null&&c.newValue!=null&&n.jsx(Se,{children:" → "}),c.newValue!=null&&n.jsx(Me,{children:c.newValue})]},`${c.fieldName}-${$}`))})]},`${d.lineDisplayLabel}-${h}`))}),!a&&s.length>0&&n.jsx(w,{children:s.map((d,h)=>n.jsxs(T,{children:[n.jsxs(N,{children:[n.jsxs(le,{children:[n.jsx(de,{}),n.jsx(L,{children:d.lineDisplayLabel})]}),n.jsx(V,{"aria-hidden":!0,children:"#"})]}),n.jsx(ce,{children:d.details.map((c,$)=>n.jsxs(pe,{children:[n.jsxs(D,{children:[c.fieldName,c.newValue!=null&&`: ${c.newValue}`]}),n.jsx(S,{children:c.reasoning})]},`${c.fieldName}-${$}`))})]},`${d.lineDisplayLabel}-${h}`))}),!a&&s.length===0&&m.length>0&&n.jsxs(n.Fragment,{children:[n.jsxs(_e,{onClick:()=>u(d=>!d),children:[n.jsx(be,{isExpanded:r}),n.jsx(we,{children:p.details})]}),r&&n.jsx(Te,{children:m.map((d,h)=>n.jsxs(Ne,{children:[n.jsxs(D,{children:[d.fieldName,d.newValue!=null&&`: ${d.newValue}`]}),n.jsx(S,{children:d.reasoning})]},`${d.fieldName}-${h}`))})]})]})]})},ie=i.div`
1
+ import{V as n,T as F,o,b8 as H,F as z,al as M,x as U,eH as B,am as K,bh as I,h as P,ai as W,dv as q,a_ as J}from"./index-DOsjGhSZ.js";import{a as Q}from"./sentry-otjdlEta.js";import{n as i}from"./mui-B2MHg-Mu.js";import"./liveblocks-KFxhhSr3.js";import"./core-BHxev_Cl.js";import"./recharts-B7o7FzH2.js";import"./zeni-epic-state-DVinyIRY.js";import"./lottie-DDoT_sT4.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.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]="2f667eab-65ed-49db-a2d7-02f033c56f43",e._sentryDebugIdIdentifier="sentry-dbid-2f667eab-65ed-49db-a2d7-02f033c56f43")}catch{}})();const A=z.getLocalizedStrings(),{transactionActivityLog:p}=A.expenseAutomation.transactions,{dateFormat:x}=A,g={"transaction_line.vendor.updated":p.fields.vendor,"transaction_line.vendor.matched":p.fields.vendor,"transaction_line.account.updated":p.fields.category,"transaction_line.class.updated":p.fields.class,"transaction_line.vendor.user_update":p.fields.vendor,"transaction_line.customer.user_update":p.fields.customer,"transaction_line.memo.user_update":p.fields.memo,"transaction_line.description.user_update":p.fields.description,"transaction_line.account.user_update":p.fields.category,"transaction_line.class.user_update":p.fields.class},f=p.linePrefix;function C(e){return e.data?.transaction?.lineId??null}function Z(e){return e.endsWith(".user_update")}function Y(e){return e.length>0&&Z(e[0].eventType)}function G(e){const t=e.data?.transaction?.originalLine;if(t==null)return;const r=e.eventType;if(r==="transaction_line.account.user_update")return t.account?.accountName;if(r==="transaction_line.class.user_update")return t.class?.className;if(r==="transaction_line.vendor.user_update")return t.vendor?.name;if(r==="transaction_line.customer.user_update")return t.customer?.name;if(r==="transaction_line.memo.user_update")return t.memo;if(r==="transaction_line.description.user_update")return t.description}function O(e){const t=e.data?.transaction?.updatedLine;if(t==null)return;const r=e.eventType;if(r==="transaction_line.account.user_update")return t.account?.accountName;if(r==="transaction_line.class.user_update")return t.class?.className;if(r==="transaction_line.vendor.user_update")return t.vendor?.name;if(r==="transaction_line.customer.user_update")return t.customer?.name;if(r==="transaction_line.memo.user_update")return t.memo;if(r==="transaction_line.description.user_update")return t.description}function y(e){return e.map(t=>`${t.fieldName}|${t.oldValue??""}|${t.newValue??""}`).join(";;")}function R(e){const t=new Map;for(const s of e){if(s.data==null)continue;const l=C(s);if(l==null)continue;const m=g[s.eventType]??s.eventType,d=G(s),h=O(s),c=t.get(l)??[];c.push({fieldName:m,oldValue:d,newValue:h}),t.set(l,c)}const r=Array.from(t.keys()).sort((s,l)=>Number(s)-Number(l)||String(s).localeCompare(String(l)));if(r.length===0)return[];const u=[];let a=0;for(;a<r.length;){const s=r[a],l=t.get(s)??[],m=y(l);let d=a;for(;d+1<r.length&&y(t.get(r[d+1])??[])===m;)d+=1;const h=r[d],c=s===h?`${f}${s}`:`${f}${s} - ${f}${h}`;u.push({details:l,lineDisplayLabel:c}),a=d+1}return u}function j(e){return e.map(t=>`${t.fieldName}|${t.newValue??""}|${t.reasoning}`).join(";;")}function X(e){const t=new Map;for(const s of e){if(s.data==null)continue;const l=C(s);if(l==null)continue;const m=E(s),d=g[s.eventType]??s.eventType,h=s.data.aiSummaries[0];if(h!=null){const c=t.get(l)??[];c.push({fieldName:d,newValue:m,reasoning:h.reasoning}),t.set(l,c)}}const r=Array.from(t.keys()).sort((s,l)=>Number(s)-Number(l)||String(s).localeCompare(String(l)));if(r.length===0)return[];const u=[];let a=0;for(;a<r.length;){const s=r[a],l=t.get(s)??[],m=j(l);let d=a;for(;d+1<r.length&&j(t.get(r[d+1])??[])===m;)d+=1;const h=r[d],c=s===h?`${f}${s}`:`${f}${s} - ${f}${h}`;u.push({details:l,lineDisplayLabel:c}),a=d+1}return u}function ee(e){const t=[];let r=0;for(;r<e.length;){const u=e[r],a=[u],s=u.data?.transaction?.correlationId;let l=r+1;if(s!=null)for(;l<e.length&&e[l].data?.transaction?.correlationId===s;)a.push(e[l]),l++;else for(;l<e.length&&e[l].createTime.format("DD MM YYYY HH:mm:ss")===u.createTime.format("DD MM YYYY HH:mm:ss");)a.push(e[l]),l++;t.push(a),r=l}return t}function te(e){if(e.length===1&&e[0].eventType==="transaction.sync_database")return p.transactionIngested;if(Y(e)){const a=e[0].data?.user;if(a!=null){const s=p.userUpdatedDetails.charAt(0).toLowerCase()+p.userUpdatedDetails.slice(1);return`${a.firstName} ${a.lastName} ${s}`}return p.userUpdatedDetails}const t=[...new Set(e.map(a=>g[a.eventType]).filter(a=>a!=null))];if(t.length===0)return e[0].eventType;if(t.length===1)return`${p.aiBookkeeperAdded} ${t[0]}.`;const r=t.at(-1),u=t.slice(0,-1);return`${p.aiBookkeeperAdded} ${u.join(", ")} and ${r}.`}function E(e){const t=e.data?.transaction?.updatedLine;if(!(t==null||e.eventType==="transaction.sync_database")){if(e.eventType==="transaction_line.vendor.updated"||e.eventType==="transaction_line.vendor.matched")return t.vendor?.name;if(e.eventType==="transaction_line.account.updated")return t.account?.accountName;if(e.eventType==="transaction_line.class.updated")return t.class?.className;if(e.eventType==="transaction_line.customer.updated")return t.customer?.name}}function ne(e){return e.flatMap(t=>{if(t.data==null)return[];const r=t.data.aiSummaries[0];if(r==null)return[];const u=E(t);return[{fieldName:g[t.eventType]??t.eventType,newValue:u,reasoning:r.reasoning}]})}const qe=({transactionActivityLogSelectorView:e,onClose:t})=>{const{transactionActivityLogs:r}=e,u=ee(r);return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?n.jsxs(ie,{children:[n.jsx(F,{size:"ExtraLarge",start:!0}),";"]}):e.fetchState==="Completed"&&u.length===0?n.jsxs(v,{children:[n.jsx(b,{children:n.jsx(_,{children:p.title})}),n.jsx(Ie,{children:n.jsx(Ae,{children:p.noLogsFound})})]}):n.jsxs(v,{children:[n.jsxs(b,{children:[n.jsx(_,{children:p.title}),n.jsx(se,{onClick:t,children:n.jsx(oe,{})})]}),n.jsx(ae,{children:u.map((a,s)=>n.jsx(re,{isLast:s===u.length-1,group:a},a[0].id))})]})},re=({group:e,isLast:t})=>{const[r,u]=Q.useState(!1),a=Y(e),s=a?[]:X(e),l=a?R(e):[],m=a?[]:ne(e);return n.jsxs(ue,{children:[n.jsxs(he,{children:[n.jsx(me,{children:a?n.jsx(ge,{}):n.jsx(fe,{})}),!t&&n.jsx($e,{})]}),n.jsxs(xe,{children:[n.jsx(ye,{children:te(e)}),n.jsxs(je,{children:[n.jsx(k,{children:e[0].createTime.format(x.visual.MMMDFormat)}),n.jsx(ve,{}),n.jsx(k,{children:e[0].createTime.format(x.visual.HHMMFormat)})]}),a&&l.length>0&&n.jsx(w,{children:l.map((d,h)=>n.jsxs(T,{children:[n.jsxs(N,{children:[n.jsx(L,{children:d.lineDisplayLabel}),n.jsx(V,{"aria-hidden":!0,children:"#"})]}),n.jsx(Le,{children:d.details.map((c,$)=>n.jsxs(Ve,{children:[n.jsxs(ke,{children:[c.fieldName,":"," "]}),c.oldValue!=null&&n.jsx(De,{children:c.oldValue}),c.oldValue!=null&&c.newValue!=null&&n.jsx(Se,{children:" → "}),c.newValue!=null&&n.jsx(Me,{children:c.newValue})]},`${c.fieldName}-${$}`))})]},`${d.lineDisplayLabel}-${h}`))}),!a&&s.length>0&&n.jsx(w,{children:s.map((d,h)=>n.jsxs(T,{children:[n.jsxs(N,{children:[n.jsxs(le,{children:[n.jsx(de,{}),n.jsx(L,{children:d.lineDisplayLabel})]}),n.jsx(V,{"aria-hidden":!0,children:"#"})]}),n.jsx(ce,{children:d.details.map((c,$)=>n.jsxs(pe,{children:[n.jsxs(D,{children:[c.fieldName,c.newValue!=null&&`: ${c.newValue}`]}),n.jsx(S,{children:c.reasoning})]},`${c.fieldName}-${$}`))})]},`${d.lineDisplayLabel}-${h}`))}),!a&&s.length===0&&m.length>0&&n.jsxs(n.Fragment,{children:[n.jsxs(be,{onClick:()=>u(d=>!d),children:[n.jsx(_e,{isExpanded:r}),n.jsx(we,{children:p.details})]}),r&&n.jsx(Te,{children:m.map((d,h)=>n.jsxs(Ne,{children:[n.jsxs(D,{children:[d.fieldName,d.newValue!=null&&`: ${d.newValue}`]}),n.jsx(S,{children:d.reasoning})]},`${d.fieldName}-${h}`))})]})]})]})},ie=i.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -10,13 +10,13 @@ import{V as n,T as F,o,b8 as H,F as z,al as M,c as U,eG as B,am as K,bh as I,h a
10
10
  flex-direction: column;
11
11
  row-gap: ${o.sp5};
12
12
  background-color: ${e=>e.theme.colors.grey4};
13
- `,_=i.div`
13
+ `,b=i.div`
14
14
  align-items: center;
15
15
  display: flex;
16
16
  justify-content: center;
17
17
  padding: ${o.sp3} ${o.sp4};
18
18
  position: relative;
19
- `,b=i(H)`
19
+ `,_=i(H)`
20
20
  color: ${e=>e.theme.colors.primary};
21
21
  `,se=i.button`
22
22
  align-items: center;
@@ -127,7 +127,7 @@ import{V as n,T as F,o,b8 as H,F as z,al as M,c as U,eG as B,am as K,bh as I,h a
127
127
  flex-shrink: 0;
128
128
  height: ${o.sp1};
129
129
  width: ${o.sp1};
130
- `,_e=i.button`
130
+ `,be=i.button`
131
131
  align-items: center;
132
132
  background: ${e=>e.theme.colors.grey4};
133
133
  border: 1px solid ${e=>e.theme.colors.grey3};
@@ -137,7 +137,7 @@ import{V as n,T as F,o,b8 as H,F as z,al as M,c as U,eG as B,am as K,bh as I,h a
137
137
  gap: ${o.sp1};
138
138
  margin-top: ${o.sp2};
139
139
  padding: ${o.sp1} ${o.sp2};
140
- `,be=i(G)`
140
+ `,_e=i(q)`
141
141
  color: ${e=>e.theme.colors.hero};
142
142
  height: 14px;
143
143
  transform: ${e=>e.isExpanded?"rotate(180deg)":"rotate(0)"};
@@ -160,7 +160,7 @@ import{V as n,T as F,o,b8 as H,F as z,al as M,c as U,eG as B,am as K,bh as I,h a
160
160
  `,D=i(I)`
161
161
  color: ${e=>e.theme.colors.primary};
162
162
  margin-bottom: ${o.sp1};
163
- `,S=i(q)`
163
+ `,S=i(W)`
164
164
  color: ${e=>e.theme.colors.champion};
165
165
  line-height: 20px;
166
166
  `,Le=i.div`
@@ -192,4 +192,4 @@ import{V as n,T as F,o,b8 as H,F as z,al as M,c as U,eG as B,am as K,bh as I,h a
192
192
  width: 100%;
193
193
  `,Ae=i(M)`
194
194
  color: ${e=>e.theme.colors.hero};
195
- `;export{Ge as default};
195
+ `;export{qe as default};