@topvisor/ui 1.5.1-topProjectSelector.1 → 1.5.1-topProjectSelector.2

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 (117) hide show
  1. package/.chunks/{api-a3D-SXH-.amd.js → api-Ce1viSSW.amd.js} +2 -2
  2. package/.chunks/{api-a3D-SXH-.amd.js.map → api-Ce1viSSW.amd.js.map} +1 -1
  3. package/.chunks/{api-a3D-SXH-.esm.js → api-Ce1viSSW.esm.js} +2 -2
  4. package/.chunks/{api-a3D-SXH-.esm.js.map → api-Ce1viSSW.esm.js.map} +1 -1
  5. package/.chunks/{app-BDGZ1d0R.amd.js → app-CnK6sytF.amd.js} +2 -2
  6. package/.chunks/{app-BDGZ1d0R.amd.js.map → app-CnK6sytF.amd.js.map} +1 -1
  7. package/.chunks/{app-BDGZ1d0R.esm.js → app-CnK6sytF.esm.js} +6 -6
  8. package/.chunks/{app-BDGZ1d0R.esm.js.map → app-CnK6sytF.esm.js.map} +1 -1
  9. package/.chunks/{datepicker-DuOSAFQy.amd.js → datepicker-vrxSbDuA.amd.js} +2 -2
  10. package/.chunks/{datepicker-DuOSAFQy.amd.js.map → datepicker-vrxSbDuA.amd.js.map} +1 -1
  11. package/.chunks/{datepicker-DuOSAFQy.esm.js → datepicker-vrxSbDuA.esm.js} +2 -2
  12. package/.chunks/{datepicker-DuOSAFQy.esm.js.map → datepicker-vrxSbDuA.esm.js.map} +1 -1
  13. package/.chunks/{dialog-ClCAM1nI.amd.js → dialog-DGs80aPO.amd.js} +2 -2
  14. package/.chunks/{dialog-ClCAM1nI.amd.js.map → dialog-DGs80aPO.amd.js.map} +1 -1
  15. package/.chunks/{dialog-ClCAM1nI.esm.js → dialog-DGs80aPO.esm.js} +4 -4
  16. package/.chunks/{dialog-ClCAM1nI.esm.js.map → dialog-DGs80aPO.esm.js.map} +1 -1
  17. package/.chunks/{dialog_regionSelectorRegions-DFZTiYi6.amd.js → dialog_regionSelectorRegions--fGL1_rZ.amd.js} +2 -2
  18. package/.chunks/{dialog_regionSelectorRegions-DFZTiYi6.amd.js.map → dialog_regionSelectorRegions--fGL1_rZ.amd.js.map} +1 -1
  19. package/.chunks/{dialog_regionSelectorRegions-DFZTiYi6.esm.js → dialog_regionSelectorRegions--fGL1_rZ.esm.js} +5 -5
  20. package/.chunks/{dialog_regionSelectorRegions-DFZTiYi6.esm.js.map → dialog_regionSelectorRegions--fGL1_rZ.esm.js.map} +1 -1
  21. package/.chunks/{dialogs-CjrddGh6.amd.js → dialogs-LOQqIaAr.amd.js} +2 -2
  22. package/.chunks/{dialogs-CjrddGh6.amd.js.map → dialogs-LOQqIaAr.amd.js.map} +1 -1
  23. package/.chunks/{dialogs-CjrddGh6.esm.js → dialogs-LOQqIaAr.esm.js} +3 -3
  24. package/.chunks/{dialogs-CjrddGh6.esm.js.map → dialogs-LOQqIaAr.esm.js.map} +1 -1
  25. package/.chunks/{forms-C2ItFa61.amd.js → forms-DXN9EJd0.amd.js} +2 -2
  26. package/.chunks/{forms-C2ItFa61.amd.js.map → forms-DXN9EJd0.amd.js.map} +1 -1
  27. package/.chunks/{forms-C2ItFa61.esm.js → forms-DXN9EJd0.esm.js} +5 -5
  28. package/.chunks/{forms-C2ItFa61.esm.js.map → forms-DXN9EJd0.esm.js.map} +1 -1
  29. package/.chunks/{formsExt-6Nz907Ry.amd.js → formsExt-CkWmOqWJ.amd.js} +2 -2
  30. package/.chunks/{formsExt-6Nz907Ry.amd.js.map → formsExt-CkWmOqWJ.amd.js.map} +1 -1
  31. package/.chunks/{formsExt-6Nz907Ry.esm.js → formsExt-CkWmOqWJ.esm.js} +4 -4
  32. package/.chunks/{formsExt-6Nz907Ry.esm.js.map → formsExt-CkWmOqWJ.esm.js.map} +1 -1
  33. package/.chunks/{notice-CBJBDgby.amd.js → notice-qte8BIjX.amd.js} +2 -2
  34. package/.chunks/{notice-CBJBDgby.amd.js.map → notice-qte8BIjX.amd.js.map} +1 -1
  35. package/.chunks/{notice-CBJBDgby.esm.js → notice-qte8BIjX.esm.js} +2 -2
  36. package/.chunks/{notice-CBJBDgby.esm.js.map → notice-qte8BIjX.esm.js.map} +1 -1
  37. package/.chunks/{popup-B06vbv6B.amd.js → popup-CeK-LYT_.amd.js} +2 -2
  38. package/.chunks/{popup-B06vbv6B.amd.js.map → popup-CeK-LYT_.amd.js.map} +1 -1
  39. package/.chunks/{popup-B06vbv6B.esm.js → popup-CeK-LYT_.esm.js} +3 -3
  40. package/.chunks/{popup-B06vbv6B.esm.js.map → popup-CeK-LYT_.esm.js.map} +1 -1
  41. package/.chunks/popup-D_xHVQOl.amd.js +2 -0
  42. package/.chunks/popup-D_xHVQOl.amd.js.map +1 -0
  43. package/.chunks/{popup-CFYtl5_r.esm.js → popup-D_xHVQOl.esm.js} +14 -14
  44. package/.chunks/popup-D_xHVQOl.esm.js.map +1 -0
  45. package/.chunks/{utils-BTHruVpQ.amd.js → utils-ChJkFRR3.amd.js} +2 -2
  46. package/.chunks/{utils-BTHruVpQ.amd.js.map → utils-ChJkFRR3.amd.js.map} +1 -1
  47. package/.chunks/{utils-BTHruVpQ.esm.js → utils-ChJkFRR3.esm.js} +3 -3
  48. package/.chunks/{utils-BTHruVpQ.esm.js.map → utils-ChJkFRR3.esm.js.map} +1 -1
  49. package/.chunks/{utils-DJV2mWZE.amd.js → utils-DX1517nh.amd.js} +2 -2
  50. package/.chunks/{utils-DJV2mWZE.amd.js.map → utils-DX1517nh.amd.js.map} +1 -1
  51. package/.chunks/{utils-DJV2mWZE.esm.js → utils-DX1517nh.esm.js} +4 -4
  52. package/.chunks/{utils-DJV2mWZE.esm.js.map → utils-DX1517nh.esm.js.map} +1 -1
  53. package/.chunks/{worker-BIUaZFVX.amd.js → worker-9m0tSRLc.amd.js} +2 -2
  54. package/.chunks/{worker-BIUaZFVX.amd.js.map → worker-9m0tSRLc.amd.js.map} +1 -1
  55. package/.chunks/{worker-BIUaZFVX.esm.js → worker-9m0tSRLc.esm.js} +3 -3
  56. package/.chunks/{worker-BIUaZFVX.esm.js.map → worker-9m0tSRLc.esm.js.map} +1 -1
  57. package/api/index.amd.js +1 -1
  58. package/api/index.amd.js.map +1 -1
  59. package/api/index.js +1 -1
  60. package/autoload-css-manifest.amd.json +4 -4
  61. package/autoload-css-manifest.json +4 -4
  62. package/charts/charts.amd.js +1 -1
  63. package/charts/charts.amd.js.map +1 -1
  64. package/charts/charts.js +1 -1
  65. package/core/app.amd.js +1 -1
  66. package/core/app.amd.js.map +1 -1
  67. package/core/app.js +4 -4
  68. package/dialog/dialog.amd.js +1 -1
  69. package/dialog/dialog.amd.js.map +1 -1
  70. package/dialog/dialog.js +3 -3
  71. package/forms/forms.amd.js +1 -1
  72. package/forms/forms.amd.js.map +1 -1
  73. package/forms/forms.js +1 -1
  74. package/formsExt/formsExt.amd.js +1 -1
  75. package/formsExt/formsExt.amd.js.map +1 -1
  76. package/formsExt/formsExt.js +1 -1
  77. package/layout/layout.amd.js +1 -1
  78. package/layout/layout.amd.js.map +1 -1
  79. package/layout/layout.js +1 -1
  80. package/package.json +1 -1
  81. package/popup/popup.amd.js +1 -1
  82. package/popup/popup.amd.js.map +1 -1
  83. package/popup/popup.js +1 -1
  84. package/popup/worker.amd.js +1 -1
  85. package/popup/worker.amd.js.map +1 -1
  86. package/popup/worker.js +1 -1
  87. package/project/project.amd.js +1 -1
  88. package/project/project.amd.js.map +1 -1
  89. package/project/project.js +110 -111
  90. package/project/project.js.map +1 -1
  91. package/tabsView/tabsView.amd.js +1 -1
  92. package/tabsView/tabsView.amd.js.map +1 -1
  93. package/tabsView/tabsView.js +2 -2
  94. package/utils/clipboard.amd.js +1 -1
  95. package/utils/clipboard.amd.js.map +1 -1
  96. package/utils/clipboard.js +1 -1
  97. package/utils/date.amd.js +1 -1
  98. package/utils/date.amd.js.map +1 -1
  99. package/utils/date.js +1 -1
  100. package/utils/device.amd.js +1 -1
  101. package/utils/device.amd.js.map +1 -1
  102. package/utils/device.js +1 -1
  103. package/utils/lodash.amd.js +1 -1
  104. package/utils/lodash.amd.js.map +1 -1
  105. package/utils/lodash.js +1 -1
  106. package/utils/price.amd.js +1 -1
  107. package/utils/price.amd.js.map +1 -1
  108. package/utils/price.js +1 -1
  109. package/utils/searchers.amd.js +1 -1
  110. package/utils/searchers.amd.js.map +1 -1
  111. package/utils/searchers.js +1 -1
  112. package/utils/string.amd.js +1 -1
  113. package/utils/string.amd.js.map +1 -1
  114. package/utils/string.js +1 -1
  115. package/.chunks/popup-CFYtl5_r.amd.js +0 -2
  116. package/.chunks/popup-CFYtl5_r.amd.js.map +0 -1
  117. package/.chunks/popup-CFYtl5_r.esm.js.map +0 -1
@@ -5,23 +5,23 @@
5
5
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
6
6
  /* end import css */
7
7
 
8
- import "../.chunks/api-a3D-SXH-.esm.js";
9
- import { E as e, O as t, P as n, h as r, n as i } from "../.chunks/forms-C2ItFa61.esm.js";
8
+ import "../.chunks/api-Ce1viSSW.esm.js";
9
+ import { E as e, O as t, P as n, h as r, n as i } from "../.chunks/forms-DXN9EJd0.esm.js";
10
10
  import { n as a, t as o } from "../.chunks/field-CjkpGeA7.esm.js";
11
11
  import { storage as s } from "../utils/dom.js";
12
- import { t as c } from "../.chunks/worker-BIUaZFVX.esm.js";
13
- import "../.chunks/app-BDGZ1d0R.esm.js";
12
+ import { t as c } from "../.chunks/worker-9m0tSRLc.esm.js";
13
+ import "../.chunks/app-CnK6sytF.esm.js";
14
14
  import { validUrl as l } from "../utils/check.js";
15
15
  import { ellipsis as u } from "../utils/string.js";
16
- import { t as d } from "../.chunks/utils-BTHruVpQ.esm.js";
16
+ import { t as d } from "../.chunks/utils-ChJkFRR3.esm.js";
17
17
  import { getDeviceGIcon as f, getLangLabel as p, getSearcherGIcon as m } from "../utils/searchers.js";
18
18
  import { invertKeyboardLayout as h } from "../utils/keyboard.js";
19
- import { c as g, n as _, o as v, r as ee, s as te } from "../.chunks/popup-B06vbv6B.esm.js";
20
- import { d as ne, s as y, u as b } from "../.chunks/formsExt-6Nz907Ry.esm.js";
19
+ import { c as g, n as _, o as v, r as ee, s as te } from "../.chunks/popup-CeK-LYT_.esm.js";
20
+ import { d as ne, s as y, u as re } from "../.chunks/formsExt-CkWmOqWJ.esm.js";
21
21
  import "../popup/worker.js";
22
- import { Fragment as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as re, createTextVNode as D, createVNode as O, defineComponent as k, isRef as ie, mergeModels as A, mergeProps as ae, nextTick as oe, normalizeClass as j, onMounted as se, openBlock as M, reactive as ce, ref as N, renderList as P, renderSlot as le, resolveComponent as ue, resolveDirective as de, resolveDynamicComponent as fe, shallowRef as pe, toDisplayString as F, toValue as me, unref as I, useModel as L, watch as R, withCtx as z, withDirectives as he, withKeys as ge, withModifiers as B } from "vue";
22
+ import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as ie, createTextVNode as E, createVNode as D, defineComponent as O, isRef as k, mergeModels as A, mergeProps as ae, nextTick as oe, normalizeClass as j, onMounted as se, openBlock as M, reactive as ce, ref as N, renderList as P, renderSlot as le, resolveComponent as ue, resolveDirective as de, resolveDynamicComponent as fe, shallowRef as pe, toDisplayString as F, toValue as me, unref as I, useModel as L, watch as R, withCtx as z, withDirectives as he, withKeys as ge, withModifiers as B } from "vue";
23
23
  //#region src/components/project/competitorSelector/competitorSelector.vue?vue&type=script&setup=true&lang.ts
24
- var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, ye = /* @__PURE__ */ k({
24
+ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, ye = /* @__PURE__ */ O({
25
25
  __name: "competitorSelector",
26
26
  props: /* @__PURE__ */ A({
27
27
  modelValue: {},
@@ -36,7 +36,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
36
36
  }),
37
37
  emits: ["update:modelValue"],
38
38
  setup(n) {
39
- let i = n, a = L(n, "modelValue"), o = S(() => {
39
+ let i = n, a = L(n, "modelValue"), o = x(() => {
40
40
  if (i.showSelectAllItem) return {
41
41
  icon: "",
42
42
  title: e().Common.Select_all,
@@ -44,23 +44,23 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
44
44
  content: ""
45
45
  };
46
46
  });
47
- return (e, i) => (M(), T("div", _e, [I(t).state.isMobile ? (M(), C(te, { key: 0 }, {
48
- opener: z(() => [O(r, {
47
+ return (e, i) => (M(), w("div", _e, [I(t).state.isMobile ? (M(), S(te, { key: 0 }, {
48
+ opener: z(() => [D(r, {
49
49
  class: "top-competitorSelector_opener",
50
50
  color: "theme",
51
51
  icon: "",
52
52
  icon2: ""
53
53
  }, {
54
- default: z(() => [D(F(n.items.find((e) => e.value === a.value?.[0])?.content), 1)]),
54
+ default: z(() => [E(F(n.items.find((e) => e.value === a.value?.[0])?.content), 1)]),
55
55
  _: 1
56
56
  })]),
57
- contentList: z(() => [(M(!0), T(x, null, P(n.items, (e) => (M(), C(v, {
57
+ contentList: z(() => [(M(!0), w(b, null, P(n.items, (e) => (M(), S(v, {
58
58
  class: j({ "top-active": a.value?.includes(e.value) }),
59
59
  "data-top-icon": e.icon,
60
60
  title: e.title,
61
61
  onClick: () => a.value = [e.value]
62
62
  }, {
63
- default: z(() => [E("span", ve, F(e.content), 1)]),
63
+ default: z(() => [T("span", ve, F(e.content), 1)]),
64
64
  _: 2
65
65
  }, 1032, [
66
66
  "class",
@@ -69,7 +69,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
69
69
  "onClick"
70
70
  ]))), 256))]),
71
71
  _: 1
72
- })) : (M(), C(ne, {
72
+ })) : (M(), S(ne, {
73
73
  key: 1,
74
74
  modelValue: a.value,
75
75
  "onUpdate:modelValue": i[0] ||= (e) => a.value = e,
@@ -84,7 +84,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
84
84
  "selectAllItem"
85
85
  ]))]));
86
86
  }
87
- }), be = (e, t) => S(() => me(e).filter((e) => e.on >= 0 || e.id === t).map((e) => ({
87
+ }), be = (e, t) => x(() => me(e).filter((e) => e.on >= 0 || e.id === t).map((e) => ({
88
88
  value: e.id,
89
89
  title: e.url + ` [${e.id}]`,
90
90
  icon: e.id === me(t) ? "" : "",
@@ -166,11 +166,11 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
166
166
  if (!i && !(t.key !== void 0 && t.key != r.key) && !(t.index !== void 0 && t.index != r.index) && !(!e && (t.lang !== void 0 && t.lang != r.lang || t.device !== void 0 && t.device != r.device))) return r.searcher_key = n.key, i = r, !1;
167
167
  }), i)) return !1;
168
168
  }), i;
169
- }, Ne = d(() => import("../.chunks/dialog_regionSelectorRegions-DFZTiYi6.esm.js")), Pe = (t, n) => {
169
+ }, Ne = d(() => import("../.chunks/dialog_regionSelectorRegions--fGL1_rZ.esm.js")), Pe = (t, n) => {
170
170
  let r = e();
171
171
  return {
172
172
  searcherKey: N(n.value.keys().next().value ?? -2),
173
- optionBySearcherKey: S(() => {
173
+ optionBySearcherKey: x(() => {
174
174
  let e = /* @__PURE__ */ new Map();
175
175
  if (n.value.forEach((n) => {
176
176
  let r = {
@@ -197,7 +197,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
197
197
  }, Fe = (t, n) => {
198
198
  let r = e(), i = N(-2);
199
199
  t.modelValue.length === 1 && (i.value = t.modelValue[0]), i.value === -2 && (t.forMode ? i.value = n.value?.regionByIndex.values().next().value?.key ?? -2 : i.value = n.value?.regionByIndex.keys().next().value ?? -2);
200
- let a = S(() => {
200
+ let a = x(() => {
201
201
  let e = /* @__PURE__ */ new Map();
202
202
  return n.value.regionByIndex?.forEach((i) => {
203
203
  let a = i.name;
@@ -262,7 +262,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
262
262
  a();
263
263
  }), e.addCompare && i(), { regionsIndexes: r };
264
264
  }, Le = (e) => {
265
- let t = S(() => ke(e.forMode, e.autoRegion, e.searchers)), n = S(() => t.value.get(i.searcherKey.value) || Ce), r = S(() => {
265
+ let t = x(() => ke(e.forMode, e.autoRegion, e.searchers)), n = x(() => t.value.get(i.searcherKey.value) || Ce), r = x(() => {
266
266
  let e = /* @__PURE__ */ new Set();
267
267
  return t.value.forEach((t) => {
268
268
  t.regionByIndex.forEach((t) => {
@@ -315,7 +315,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
315
315
  if (e !== void 0) return l()?.regionByIndex?.get(e);
316
316
  }
317
317
  };
318
- }, Re = /* @__PURE__ */ k({
318
+ }, Re = /* @__PURE__ */ O({
319
319
  __name: "regionSelector",
320
320
  props: /* @__PURE__ */ A({
321
321
  projectId: {},
@@ -422,11 +422,11 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
422
422
  }, { immediate: !0 }), t({
423
423
  getSearcher: f,
424
424
  getRegion: p
425
- }), (t, n) => (M(), T("div", { class: j({
425
+ }), (t, n) => (M(), w("div", { class: j({
426
426
  "top-regionSelector": !0,
427
427
  "top-regionSelector-onlySearcher": e.onlySearcher
428
428
  }) }, [
429
- O(i, {
429
+ D(i, {
430
430
  options: I(s).optionBySearcherKey.value,
431
431
  modelValue: I(s).searcherKey.value,
432
432
  "onUpdate:modelValue": n[0] ||= (e) => I(s).searcherKey.value = e,
@@ -437,7 +437,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
437
437
  "modelValue",
438
438
  "addChanger"
439
439
  ]),
440
- !e.onlySearcher && I(s).searcherKey.value !== I(-1) ? (M(), C(i, {
440
+ !e.onlySearcher && I(s).searcherKey.value !== I(-1) ? (M(), S(i, {
441
441
  key: 0,
442
442
  class: "top-select-region",
443
443
  options: I(c).optionByRegionIndex.value,
@@ -452,16 +452,16 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
452
452
  "name",
453
453
  "addChanger",
454
454
  "data-top-icon"
455
- ])) : w("", !0),
456
- e.addCompare && !e.onlySearcher && I(s).searcherKey.value === I(-1) ? (M(), C(r, {
455
+ ])) : C("", !0),
456
+ e.addCompare && !e.onlySearcher && I(s).searcherKey.value === I(-1) ? (M(), S(r, {
457
457
  key: 1,
458
458
  name: "compare",
459
459
  onClick: m,
460
460
  "data-count-compare-regions-indexes": I(l).regionsIndexes.value.length
461
461
  }, {
462
- default: z(() => [D(F(t.$i18n.Common.Selected_regions), 1)]),
462
+ default: z(() => [E(F(t.$i18n.Common.Selected_regions), 1)]),
463
463
  _: 1
464
- }, 8, ["data-count-compare-regions-indexes"])) : w("", !0)
464
+ }, 8, ["data-count-compare-regions-indexes"])) : C("", !0)
465
465
  ], 2));
466
466
  }
467
467
  }), H = {
@@ -504,7 +504,7 @@ function He(e, t, n) {
504
504
  }
505
505
  //#endregion
506
506
  //#region src/components/project/groupSelector/folders/folders.vue?vue&type=script&setup=true&lang.ts
507
- var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
507
+ var Ue = ["innerHTML"], We = /* @__PURE__ */ O({
508
508
  __name: "folders",
509
509
  props: /* @__PURE__ */ A({
510
510
  folderId: {},
@@ -531,7 +531,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
531
531
  R(() => t.projectId, () => {
532
532
  i?.changeParams({ project_id: t.projectId }), i?.setOptions({ checkFingerprint: "TopGroupSelectorFolders:" + t.projectId }), a.value?.resetCache();
533
533
  }, { immediate: !0 });
534
- let o = S(() => Be(t.folders ?? { root: [H] }, t.canSelectAll));
534
+ let o = x(() => Be(t.folders ?? { root: [H] }, t.canSelectAll));
535
535
  return He({
536
536
  modelFolder: r,
537
537
  modelFolderId: n
@@ -543,7 +543,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
543
543
  }
544
544
  let i = o.value.get(t.folderId);
545
545
  i ||= H, r.value = i, n.value = i.id;
546
- }, { immediate: !0 }), (t, n) => (M(), C(y, {
546
+ }, { immediate: !0 }), (t, n) => (M(), S(y, {
547
547
  class: "top-groupSelector_folder",
548
548
  modelValue: r.value,
549
549
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
@@ -551,11 +551,11 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
551
551
  "search-type": "inline",
552
552
  icon: e.addIcon ? "" : void 0,
553
553
  api: e.folders ? void 0 : I(i),
554
- apiSetSearchParams: (...e) => I(b)(...e, "name"),
554
+ apiSetSearchParams: (...e) => I(re)(...e, "name"),
555
555
  addChanger: e.addChanger,
556
556
  useCache: ""
557
557
  }, {
558
- item: z(({ item: e }) => [E("div", { innerHTML: e.name.replaceAll(/</g, "< ") }, null, 8, Ue)]),
558
+ item: z(({ item: e }) => [T("div", { innerHTML: e.name.replaceAll(/</g, "< ") }, null, 8, Ue)]),
559
559
  _: 1
560
560
  }, 8, [
561
561
  "modelValue",
@@ -587,7 +587,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
587
587
  }), Je = (e, t) => e.gen(`/add/${t}/groups/`), Ye = (e, t) => e.gen(`/del/${t}/groups/`), Xe = (e, t) => e.gen(`/edit/${t}/groups/rename/`), Ze = { class: "top-groupSelector_groupItem top-ellipsis1" }, Qe = {
588
588
  key: 0,
589
589
  class: "top-comment"
590
- }, $e = ["innerHTML"], et = ["innerHTML"], tt = ["innerHTML"], nt = /* @__PURE__ */ k({
590
+ }, $e = ["innerHTML"], et = ["innerHTML"], tt = ["innerHTML"], nt = /* @__PURE__ */ O({
591
591
  __name: "groups",
592
592
  props: /* @__PURE__ */ A({
593
593
  groupId: {},
@@ -700,7 +700,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
700
700
  id: e.id
701
701
  }).call()).errors || (a.value.id === e.id && m(n.canSelectAll ? G() : U), d.value?.resetCache(!0)));
702
702
  };
703
- return (t, n) => (M(), C(y, {
703
+ return (t, n) => (M(), S(y, {
704
704
  ref_key: "refSelector",
705
705
  ref: d,
706
706
  class: "top-groupSelector_group",
@@ -710,49 +710,49 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
710
710
  searchType: "inline",
711
711
  icon: e.addIcon ? "" : void 0,
712
712
  api: e.groups ? void 0 : I(s),
713
- apiSetSearchParams: (...e) => I(b)(...e, "name"),
713
+ apiSetSearchParams: (...e) => I(re)(...e, "name"),
714
714
  appendSearchToResult: !!e.canAdd,
715
715
  useAllItem: e.canSelectAll ? I(G)().name : !1,
716
716
  addChanger: e.addChanger,
717
717
  useCache: "",
718
718
  onAppendItem: h
719
- }, re({
720
- item: z(({ item: n }) => [E("div", Ze, [
721
- n.id === I(null) ? (M(), T("div", Qe, F(t.$i18n.Common.Add) + ": ", 1)) : w("", !0),
722
- E("span", {
719
+ }, ie({
720
+ item: z(({ item: n }) => [T("div", Ze, [
721
+ n.id === I(null) ? (M(), w("div", Qe, F(t.$i18n.Common.Add) + ": ", 1)) : C("", !0),
722
+ T("span", {
723
723
  class: "top-groupSelector_groupItemName top-ellipsis1",
724
724
  innerHTML: n.name
725
725
  }, null, 8, $e),
726
- n.folder_path && e.showPath ? (M(), T("span", {
726
+ n.folder_path && e.showPath ? (M(), w("span", {
727
727
  key: 1,
728
728
  class: "top-groupSelector_groupItemFolderPath top-ellipsis1",
729
729
  innerHTML: n.folder_path
730
- }, null, 8, et)) : w("", !0)
730
+ }, null, 8, et)) : C("", !0)
731
731
  ])]),
732
732
  _: 2
733
733
  }, [e.canEditAndDel && e.client ? {
734
734
  name: "actions",
735
- fn: z(({ item: r }) => [r.id ? (M(), T(x, { key: 0 }, [O(_, {
735
+ fn: z(({ item: r }) => [r.id ? (M(), w(b, { key: 0 }, [D(_, {
736
736
  submitText: t.$i18n.Common.Save,
737
737
  defaultValue: r.name,
738
738
  onSubmit: (e) => g(r, e)
739
739
  }, {
740
- opener: z(() => [...n[1] ||= [E("div", { "data-top-icon": "" }, null, -1)]]),
740
+ opener: z(() => [...n[1] ||= [T("div", { "data-top-icon": "" }, null, -1)]]),
741
741
  default: z(() => [...n[2] ||= []]),
742
742
  _: 1
743
743
  }, 8, [
744
744
  "submitText",
745
745
  "defaultValue",
746
746
  "onSubmit"
747
- ]), O(ee, {
747
+ ]), D(ee, {
748
748
  isWarning: "",
749
749
  submitText: t.$i18n.Common.Delete,
750
750
  onSubmit: (e) => v(r)
751
751
  }, {
752
- opener: z(() => [...n[3] ||= [E("div", { "data-top-icon": "" }, null, -1)]]),
753
- default: z(() => [E("span", { innerHTML: e.service === "keywords_2" ? t.$i18n.Keywords.Delete_group_warning : t.$i18n["Ai.Tracker"].Delete_group_warning }, null, 8, tt)]),
752
+ opener: z(() => [...n[3] ||= [T("div", { "data-top-icon": "" }, null, -1)]]),
753
+ default: z(() => [T("span", { innerHTML: e.service === "keywords_2" ? t.$i18n.Keywords.Delete_group_warning : t.$i18n["Ai.Tracker"].Delete_group_warning }, null, 8, tt)]),
754
754
  _: 1
755
- }, 8, ["submitText", "onSubmit"])], 64)) : w("", !0)]),
755
+ }, 8, ["submitText", "onSubmit"])], 64)) : C("", !0)]),
756
756
  key: "0"
757
757
  } : void 0]), 1032, [
758
758
  "modelValue",
@@ -765,7 +765,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
765
765
  "addChanger"
766
766
  ]));
767
767
  }
768
- }), rt = { class: "top-groupSelector" }, it = /* @__PURE__ */ k({
768
+ }), rt = { class: "top-groupSelector" }, it = /* @__PURE__ */ O({
769
769
  __name: "groupSelector",
770
770
  props: /* @__PURE__ */ A({
771
771
  folderId: {},
@@ -826,7 +826,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
826
826
  let t;
827
827
  n.groups && e && (t = [...n.groups, e]), s("update:groups", t);
828
828
  };
829
- return (t, n) => (M(), T("div", rt, [e.showFolders ? (M(), C(We, {
829
+ return (t, n) => (M(), w("div", rt, [e.showFolders ? (M(), S(We, {
830
830
  key: 0,
831
831
  folderId: r.value,
832
832
  "onUpdate:folderId": n[0] ||= (e) => r.value = e,
@@ -849,7 +849,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
849
849
  "addIcon",
850
850
  "client",
851
851
  "service"
852
- ])) : w("", !0), e.showGroups ? (M(), C(nt, {
852
+ ])) : C("", !0), e.showGroups ? (M(), S(nt, {
853
853
  key: 1,
854
854
  groupId: a.value,
855
855
  "onUpdate:groupId": n[2] ||= (e) => a.value = e,
@@ -885,7 +885,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
885
885
  "addIcon",
886
886
  "client",
887
887
  "service"
888
- ])) : w("", !0)]));
888
+ ])) : C("", !0)]));
889
889
  }
890
890
  }), at = (e) => ({
891
891
  id: null,
@@ -963,7 +963,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
963
963
  "title",
964
964
  "data-top-icon",
965
965
  "data-right"
966
- ], bt = { class: "top-projectSelectorSubmenu_item" }, xt = ["href"], St = /* @__PURE__ */ k({
966
+ ], bt = { class: "top-projectSelectorSubmenu_item" }, xt = ["href"], St = /* @__PURE__ */ O({
967
967
  __name: "submenu",
968
968
  props: {
969
969
  id: {},
@@ -1044,25 +1044,25 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1044
1044
  icon: "",
1045
1045
  right: "2"
1046
1046
  }
1047
- ], o = S(() => n.right.includes("0") ? a.filter((e) => n.right[e.right] === "1") : a);
1047
+ ], o = x(() => n.right.includes("0") ? a.filter((e) => n.right[e.right] === "1") : a);
1048
1048
  return (e, n) => {
1049
1049
  let r = ue("TopButton");
1050
- return M(), C(I(te), {
1050
+ return M(), S(I(te), {
1051
1051
  class: "top-projectSelectorSubmenu",
1052
1052
  notch: !1,
1053
1053
  pos: "2"
1054
1054
  }, {
1055
- opener: z(() => [O(r, {
1055
+ opener: z(() => [D(r, {
1056
1056
  class: "top-projectSelectorSubmenu_opener top-popup_listMore",
1057
1057
  "data-top-icon": "",
1058
1058
  color: "theme"
1059
1059
  })]),
1060
- contentList: z(() => [(M(!0), T(x, null, P(o.value, (e) => (M(), T("li", vt, [E("a", {
1060
+ contentList: z(() => [(M(!0), w(b, null, P(o.value, (e) => (M(), w("li", vt, [T("a", {
1061
1061
  href: e.href,
1062
1062
  title: e.title,
1063
1063
  "data-top-icon": e.icon,
1064
1064
  "data-right": e.right
1065
- }, null, 8, yt)]))), 256)), E("li", bt, [E("a", {
1065
+ }, null, 8, yt)]))), 256)), T("li", bt, [T("a", {
1066
1066
  href: t.url,
1067
1067
  "data-top-icon": "",
1068
1068
  target: "_blank"
@@ -1090,7 +1090,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1090
1090
  }, Ot = { class: "top-projectSelector_itemText" }, kt = { class: "top-comment" }, At = {
1091
1091
  key: 0,
1092
1092
  class: "top-comment"
1093
- }, jt = ["href", "onClick"], Mt = 1e3, Nt = /* @__PURE__ */ k({
1093
+ }, jt = ["href", "onClick"], Mt = 1e3, Nt = /* @__PURE__ */ O({
1094
1094
  __name: "projectSelector",
1095
1095
  props: /* @__PURE__ */ A({
1096
1096
  modelValue: {},
@@ -1115,13 +1115,11 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1115
1115
  setup(t) {
1116
1116
  let n = e();
1117
1117
  if (!window.mo?.user?.id) throw Error("TopProjectSelector: не удалось определить userId. Компонент требует авторизованного пользователя (см. window.mo.user.id)");
1118
- let r = window.mo.user.id, i = t, a = L(t, "modelValue"), o = gt(i.client, r), s = _t(i.client), c = N(Et(r)), d = N(null), f = S(() => i.placeholder ?? n.Projects.Select_project), p = S(() => !q.value || !i.excludeProjectId ? q.value : q.value.filter((e) => e.id !== i.excludeProjectId)), m = S(() => {
1118
+ let r = window.mo.user.id, i = t, a = L(t, "modelValue"), o = gt(i.client, r), s = _t(i.client), c = N(Et(r)), d = N(null), f = x(() => i.placeholder ?? n.Projects.Select_project), p = x(() => !q.value || !i.excludeProjectId ? q.value : q.value.filter((e) => e.id !== i.excludeProjectId)), m = x(() => {
1119
1119
  if (!(!c.value && c.value !== 0)) return c.value < Mt ? "static" : "api";
1120
1120
  });
1121
1121
  R(wt, () => {
1122
1122
  v();
1123
- }), R(a, () => {
1124
- !a.value.id || !i.addLinksToProjects || dt(ft(a.value.id));
1125
1123
  });
1126
1124
  let h = async () => {
1127
1125
  J.value ||= gt(i.client, r, { limit: Mt }).call();
@@ -1170,7 +1168,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1170
1168
  await g();
1171
1169
  }), (e, n) => {
1172
1170
  let r = ue("TopButton");
1173
- return M(), C(y, {
1171
+ return M(), S(y, {
1174
1172
  ref_key: "refSelector",
1175
1173
  ref: d,
1176
1174
  class: "top-projectSelector",
@@ -1198,14 +1196,15 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1198
1196
  onAppendItem: _,
1199
1197
  onOpen: ee
1200
1198
  }, {
1201
- item: z(({ item: i }) => [E("div", Ot, [i.id ? (M(), T(x, { key: 0 }, [D(F(I(u)(i.name, 20)) + " ", 1), E("span", kt, " id " + F(i.id), 1)], 64)) : (M(), T(x, { key: 1 }, [i.listItemProps?.type ? w("", !0) : (M(), T("div", At, F(e.$i18n.Projects.Add_project) + ": ", 1)), D(" " + F(i.name), 1)], 64))]), i.id ? (M(), T(x, { key: 0 }, [
1202
- t.addLinksToProjects ? (M(), T("a", {
1199
+ item: z(({ item: i }) => [T("div", Ot, [i.id ? (M(), w(b, { key: 0 }, [E(F(I(u)(i.name, 20)) + " ", 1), T("span", kt, " id " + F(i.id), 1)], 64)) : (M(), w(b, { key: 1 }, [i.listItemProps?.type ? C("", !0) : (M(), w("div", At, F(e.$i18n.Projects.Add_project) + ": ", 1)), E(" " + F(i.name), 1)], 64))]), i.id ? (M(), w(b, { key: 0 }, [
1200
+ t.addLinksToProjects ? (M(), w("a", {
1203
1201
  key: 0,
1204
1202
  class: "top-projectSelector_itemLink",
1205
1203
  href: I(ft)(i.id),
1204
+ "data-top-popup-primary-action": "",
1206
1205
  onClick: B((e) => I(dt)(I(ft)(i.id), e), ["prevent", "stop"])
1207
- }, null, 8, jt)) : w("", !0),
1208
- e.$core.state.isMobile ? w("", !0) : (M(), C(r, {
1206
+ }, null, 8, jt)) : C("", !0),
1207
+ e.$core.state.isMobile ? C("", !0) : (M(), S(r, {
1209
1208
  key: 1,
1210
1209
  class: "top-projectSelector_itemExtLink",
1211
1210
  href: I(mt)(i.url),
@@ -1214,7 +1213,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1214
1213
  target: "_blank",
1215
1214
  onClick: n[0] ||= B(() => {}, ["stop"])
1216
1215
  }, null, 8, ["href"])),
1217
- O(St, {
1216
+ D(St, {
1218
1217
  id: i.id,
1219
1218
  right: i.right ?? void 0,
1220
1219
  url: I(mt)(i.url)
@@ -1223,7 +1222,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1223
1222
  "right",
1224
1223
  "url"
1225
1224
  ])
1226
- ], 64)) : w("", !0)]),
1225
+ ], 64)) : C("", !0)]),
1227
1226
  _: 1
1228
1227
  }, 8, [
1229
1228
  "modelValue",
@@ -1255,10 +1254,10 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1255
1254
  targetId: e.targetId,
1256
1255
  filters: e.filters,
1257
1256
  payload: e.payload
1258
- }), delete r.dataset.topPopupDisabled, ie(e.modelValue) || R(i, () => {
1257
+ }), delete r.dataset.topPopupDisabled, k(e.modelValue) || R(i, () => {
1259
1258
  e.modelValue = i.value, Z(r, e, n);
1260
1259
  }), r.click();
1261
- }, ie(e.modelValue) ? R(e.modelValue, () => Z(r, e, n)) : s(r, "topTagSelectorRender", (t) => {
1260
+ }, k(e.modelValue) ? R(e.modelValue, () => Z(r, e, n)) : s(r, "topTagSelectorRender", (t) => {
1262
1261
  e.modelValue = t;
1263
1262
  let i = s(r, "topTagSelectorTarget");
1264
1263
  i && (i.model.value = t), Z(r, e, n);
@@ -1347,7 +1346,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1347
1346
  "data-tag_id",
1348
1347
  "data-tag_color_id",
1349
1348
  "title"
1350
- ], Q = /* @__PURE__ */ k({
1349
+ ], Q = /* @__PURE__ */ O({
1351
1350
  __name: "tagIcon",
1352
1351
  props: {
1353
1352
  id: {},
@@ -1356,7 +1355,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1356
1355
  state: {}
1357
1356
  },
1358
1357
  setup(e) {
1359
- return (t, n) => (M(), T("div", {
1358
+ return (t, n) => (M(), w("div", {
1360
1359
  class: j({
1361
1360
  "top-tagSelector_tagIcon": !0,
1362
1361
  "top-tagSelector-active": !!e.state,
@@ -1367,7 +1366,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1367
1366
  title: e.name
1368
1367
  }, null, 10, zt));
1369
1368
  }
1370
- }), Bt = ["contenteditable", "onKeydown"], Vt = /* @__PURE__ */ k({
1369
+ }), Bt = ["contenteditable", "onKeydown"], Vt = /* @__PURE__ */ O({
1371
1370
  __name: "tagPopupListItem",
1372
1371
  props: /* @__PURE__ */ A({
1373
1372
  editable: { type: Boolean },
@@ -1388,7 +1387,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1388
1387
  "select"
1389
1388
  ], ["update:name"]),
1390
1389
  setup(e, { emit: t }) {
1391
- let n = e, r = t, i = L(e, "name"), a = N(null), o = S(() => navigator.userAgent.indexOf("Firefox") == -1 ? {} : {
1390
+ let n = e, r = t, i = L(e, "name"), a = N(null), o = x(() => navigator.userAgent.indexOf("Firefox") == -1 ? {} : {
1392
1391
  contenteditable: s.value,
1393
1392
  onpaste: (e) => e.preventDefault()
1394
1393
  }), s = N(!1), c = async () => {
@@ -1404,7 +1403,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1404
1403
  let t = "selected";
1405
1404
  n.canExclude && (e.ctrlKey || e.metaKey) && (t = "excluded"), n.state == t && (t = ""), t === "" && r("unselect"), t === "selected" && r("select"), t === "excluded" && r("exclude");
1406
1405
  };
1407
- return (t, n) => (M(), C(v, {
1406
+ return (t, n) => (M(), S(v, {
1408
1407
  class: j({
1409
1408
  "top-tagSelector_tagListItem": !0,
1410
1409
  "top-tagSelector_tagListItem-inEdit": s.value,
@@ -1416,7 +1415,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1416
1415
  onClick: B(d, ["stop"])
1417
1416
  }, {
1418
1417
  default: z(() => [
1419
- O(Q, {
1418
+ D(Q, {
1420
1419
  id: e.id,
1421
1420
  name: i.value,
1422
1421
  colorId: e.colorId,
@@ -1427,28 +1426,28 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1427
1426
  "colorId",
1428
1427
  "state"
1429
1428
  ]),
1430
- E("span", ae({
1429
+ T("span", ae({
1431
1430
  ref_key: "elName",
1432
1431
  ref: a,
1433
1432
  class: "top-tagSelector_tagListItemName",
1434
1433
  contenteditable: s.value ? "plaintext-only" : !1
1435
1434
  }, o.value, { onKeydown: [ge(B(l, ["stop"]), ["enter"]), ge(B(u, ["stop"]), ["esc"])] }), F(i.value), 17, Bt),
1436
- e.editable ? (M(), T(x, { key: 0 }, [s.value ? (M(), T("span", {
1435
+ e.editable ? (M(), w(b, { key: 0 }, [s.value ? (M(), w("span", {
1437
1436
  key: 1,
1438
1437
  "data-top-icon": "",
1439
1438
  class: "top-tagSelector_edit",
1440
1439
  onClick: B(l, ["stop"])
1441
- })) : (M(), T("span", {
1440
+ })) : (M(), w("span", {
1442
1441
  key: 0,
1443
1442
  "data-top-icon": "",
1444
1443
  class: "top-tagSelector_edit",
1445
1444
  onClick: c
1446
- }))], 64)) : w("", !0)
1445
+ }))], 64)) : C("", !0)
1447
1446
  ]),
1448
1447
  _: 1
1449
1448
  }, 8, ["class"]));
1450
1449
  }
1451
- }), Ht = { key: 1 }, Ut = /* @__PURE__ */ k({
1450
+ }), Ht = { key: 1 }, Ut = /* @__PURE__ */ O({
1452
1451
  inheritAttrs: !1,
1453
1452
  __name: "popupOpener",
1454
1453
  props: /* @__PURE__ */ A({
@@ -1476,8 +1475,8 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1476
1475
  };
1477
1476
  return (r, s) => {
1478
1477
  let c = de("top-data");
1479
- return M(), C(g, { id: e.id }, {
1480
- default: z(() => [he((M(), C(fe(I(i)), ae({
1478
+ return M(), S(g, { id: e.id }, {
1479
+ default: z(() => [he((M(), S(fe(I(i)), ae({
1481
1480
  class: {
1482
1481
  "top-tagSelector": !0,
1483
1482
  "top-tagSelector-useTopButton": t.useTopButton,
@@ -1492,13 +1491,13 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1492
1491
  color: "theme",
1493
1492
  styling: e.styling
1494
1493
  }, r.$attrs), {
1495
- [I(a)]: z(() => [!n.value.length && e.mode === "filter" ? (M(), C(Q, {
1494
+ [I(a)]: z(() => [!n.value.length && e.mode === "filter" ? (M(), S(Q, {
1496
1495
  key: 0,
1497
1496
  id: "all",
1498
1497
  colorId: "",
1499
1498
  name: r.$i18n.Common.All_tags ?? "",
1500
1499
  state: ""
1501
- }, null, 8, ["name"])) : w("", !0), e.mode === "setter" && e.filters ? (M(), T("div", Ht, [le(r.$slots, "default")])) : (M(!0), T(x, { key: 2 }, P(n.value, (t) => (M(), C(Q, {
1500
+ }, null, 8, ["name"])) : C("", !0), e.mode === "setter" && e.filters ? (M(), w("div", Ht, [le(r.$slots, "default")])) : (M(!0), w(b, { key: 2 }, P(n.value, (t) => (M(), S(Q, {
1502
1501
  id: I(Y)(t),
1503
1502
  colorId: I(X)(t, e.tags)?.color_id ?? "",
1504
1503
  name: I(X)(t, e.tags)?.name ?? "",
@@ -1519,7 +1518,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1519
1518
  }, 8, ["id"]);
1520
1519
  };
1521
1520
  }
1522
- }), Wt = /* @__PURE__ */ k({
1521
+ }), Wt = /* @__PURE__ */ O({
1523
1522
  __name: "tagSelector",
1524
1523
  props: /* @__PURE__ */ A({
1525
1524
  modelValue: {},
@@ -1577,7 +1576,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1577
1576
  R(u, () => {
1578
1577
  p("selector", u.value);
1579
1578
  });
1580
- let ee = S(() => {
1579
+ let ee = x(() => {
1581
1580
  if (_.value.mode === "setter" && l.maxTagsForSetter && !_.value.filters) return _.value.model.value.length >= l.maxTagsForSetter;
1582
1581
  }), ne = (e) => {
1583
1582
  if (e !== "all") {
@@ -1592,10 +1591,10 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1592
1591
  targetId: _.value.targetId,
1593
1592
  payload: _.value.payload
1594
1593
  });
1595
- }, b = S(() => {
1594
+ }, re = x(() => {
1596
1595
  let e = "top-tagSelector_popup";
1597
1596
  return _.value.mode === "filter" && (e += " top-tagSelector_popup-filter"), _.value.mode === "setter" && (e += " top-tagSelector_popup-setter"), e;
1598
- }), E = () => {
1597
+ }), T = () => {
1599
1598
  let e = prompt("", "New tag");
1600
1599
  if (!e || e === "New tag") return;
1601
1600
  let t = d.value.length + 1;
@@ -1604,7 +1603,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1604
1603
  name: e,
1605
1604
  color_id: String((t - 1) % 10 + 1)
1606
1605
  }), f("tagsChanged", d.value);
1607
- }, k = (e) => {
1606
+ }, O = (e) => {
1608
1607
  if (_.value = s(e.elPopupOpener, "topTagSelectorTarget"), !_.value) throw Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
1609
1608
  if (_.value.filters && (h.value = "add", _.value.model.value = []), !t.$?.ui.sortable) {
1610
1609
  console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
@@ -1624,10 +1623,10 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1624
1623
  }), d.value.sort((e, t) => r.findIndex((t) => t === e.id) - r.findIndex((e) => e === t.id)), p("tagsChanged", d.value);
1625
1624
  }
1626
1625
  });
1627
- }, ie = (e) => {
1626
+ }, k = (e) => {
1628
1627
  t.$?.ui.sortable && $(e.elPopup).data("ui-sortable") && $(e.elPopup).sortable("destroy");
1629
1628
  };
1630
- return (e, t) => (M(), T(x, null, [O(Ut, {
1629
+ return (e, t) => (M(), w(b, null, [D(Ut, {
1631
1630
  modelValue: u.value,
1632
1631
  "onUpdate:modelValue": t[0] ||= (e) => u.value = e,
1633
1632
  id: I(m),
@@ -1641,23 +1640,23 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1641
1640
  "tags",
1642
1641
  "styling",
1643
1642
  "useTopButton"
1644
- ]), O(te, {
1643
+ ]), D(te, {
1645
1644
  id: I(m),
1646
- class: j(b.value),
1647
- onOpen: t[4] ||= (e) => k(e),
1648
- onClose: t[5] ||= (e) => ie(e),
1645
+ class: j(re.value),
1646
+ onOpen: t[4] ||= (e) => O(e),
1647
+ onClose: t[5] ||= (e) => k(e),
1649
1648
  "transition-duration": 50
1650
- }, re({
1649
+ }, ie({
1651
1650
  contentList: z(() => [
1652
- I(_).mode === "filter" && !a.singleMode ? (M(), C(Vt, {
1651
+ I(_).mode === "filter" && !a.singleMode ? (M(), S(Vt, {
1653
1652
  key: 0,
1654
1653
  id: "all",
1655
1654
  colorId: "",
1656
1655
  name: e.$i18n.Common.All_tags ?? "",
1657
1656
  state: I(_).model.value.length ? "" : "selected",
1658
1657
  onSelect: t[3] ||= (e) => I(_).model.value = []
1659
- }, null, 8, ["name", "state"])) : w("", !0),
1660
- (M(!0), T(x, null, P(d.value, (e) => (M(), C(Vt, {
1658
+ }, null, 8, ["name", "state"])) : C("", !0),
1659
+ (M(!0), w(b, null, P(d.value, (e) => (M(), S(Vt, {
1661
1660
  key: e.id,
1662
1661
  id: e.id,
1663
1662
  colorId: e.color_id,
@@ -1685,19 +1684,19 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1685
1684
  "onExclude",
1686
1685
  "onUpdate:name"
1687
1686
  ]))), 128)),
1688
- a.tagsEditable && d.value.length < a.tagsMax && d.value.length < 20 ? (M(), C(v, {
1687
+ a.tagsEditable && d.value.length < a.tagsMax && d.value.length < 20 ? (M(), S(v, {
1689
1688
  key: 1,
1690
1689
  "data-top-icon": "",
1691
- onClick: B(E, ["stop"])
1690
+ onClick: B(T, ["stop"])
1692
1691
  }, {
1693
- default: z(() => [D(F(e.$i18n.Common.Add), 1)]),
1692
+ default: z(() => [E(F(e.$i18n.Common.Add), 1)]),
1694
1693
  _: 1
1695
- })) : w("", !0)
1694
+ })) : C("", !0)
1696
1695
  ]),
1697
1696
  _: 2
1698
1697
  }, [I(_).mode === "setter" && I(_).filters ? {
1699
1698
  name: "header",
1700
- fn: z(() => [O(i, {
1699
+ fn: z(() => [D(i, {
1701
1700
  modelValue: h.value,
1702
1701
  "onUpdate:modelValue": t[1] ||= (e) => h.value = e,
1703
1702
  options: g()
@@ -1705,16 +1704,16 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1705
1704
  key: "0"
1706
1705
  } : void 0, I(_).mode === "setter" && I(_).filters ? {
1707
1706
  name: "footer",
1708
- fn: z(() => [O(r, { color: "theme" }, {
1709
- default: z(() => [D(F(e.$i18n.Common.Cancel), 1)]),
1707
+ fn: z(() => [D(r, { color: "theme" }, {
1708
+ default: z(() => [E(F(e.$i18n.Common.Cancel), 1)]),
1710
1709
  _: 1
1711
- }), O(r, { onClick: t[2] ||= (e) => I(p)("setter", {
1710
+ }), D(r, { onClick: t[2] ||= (e) => I(p)("setter", {
1712
1711
  tagsIds: I(_).model.value,
1713
1712
  filters: I(_).filters,
1714
1713
  filtersAction: h.value,
1715
1714
  payload: I(_).payload
1716
1715
  }) }, {
1717
- default: z(() => [D(F(h.value === "add" ? e.$i18n.Common.Add : "") + " " + F(h.value === "replace" ? e.$i18n.Common.Replace : "") + " " + F(h.value === "delete" ? e.$i18n.Common.Delete : ""), 1)]),
1716
+ default: z(() => [E(F(h.value === "add" ? e.$i18n.Common.Add : "") + " " + F(h.value === "replace" ? e.$i18n.Common.Replace : "") + " " + F(h.value === "delete" ? e.$i18n.Common.Delete : ""), 1)]),
1718
1717
  _: 1
1719
1718
  })]),
1720
1719
  key: "1"