@topvisor/ui 1.0.14 → 1.0.16

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 (60) hide show
  1. package/.chunks/{datepicker-Ri3BN3-Y.es.js → datepicker-CDFryb2R.es.js} +2 -2
  2. package/.chunks/{datepicker-Ri3BN3-Y.es.js.map → datepicker-CDFryb2R.es.js.map} +1 -1
  3. package/.chunks/{forms-CHyoeELv.es.js → forms-DmpPuKKh.es.js} +6 -6
  4. package/.chunks/{forms-CHyoeELv.es.js.map → forms-DmpPuKKh.es.js.map} +1 -1
  5. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Dvz76-gx.es.js → listItem.vue_vue_type_script_setup_true_lang-Cry_LWLq.es.js} +5 -5
  6. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Dvz76-gx.es.js.map → listItem.vue_vue_type_script_setup_true_lang-Cry_LWLq.es.js.map} +1 -1
  7. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Rex3a5_T.es.js → menu.vue_vue_type_style_index_0_lang-BQFq184r.es.js} +2 -2
  8. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Rex3a5_T.es.js.map → menu.vue_vue_type_style_index_0_lang-BQFq184r.es.js.map} +1 -1
  9. package/.chunks/menu.vue_vue_type_style_index_0_lang-Chd1ygyG.amd.js.map +1 -1
  10. package/.chunks/{notice-Bh-LvHpR.es.js → notice-BNik2ZIo.es.js} +2 -2
  11. package/.chunks/{notice-Bh-LvHpR.es.js.map → notice-BNik2ZIo.es.js.map} +1 -1
  12. package/.chunks/{popup-0nFCdjiM.es.js → popup-BxLi2sMk.es.js} +46 -46
  13. package/.chunks/{popup-0nFCdjiM.es.js.map → popup-BxLi2sMk.es.js.map} +1 -1
  14. package/.chunks/{popup-B285SUGc.amd.js → popup-Dm9xIxVU.amd.js} +2 -2
  15. package/.chunks/{popup-B285SUGc.amd.js.map → popup-Dm9xIxVU.amd.js.map} +1 -1
  16. package/.chunks/{utils-B3neE-vU.es.js → utils-CKpKCxOO.es.js} +2 -2
  17. package/.chunks/{utils-B3neE-vU.es.js.map → utils-CKpKCxOO.es.js.map} +1 -1
  18. package/.chunks/{utils-tB3V9IWe.es.js → utils-DFwHp4q7.es.js} +3 -3
  19. package/.chunks/{utils-tB3V9IWe.es.js.map → utils-DFwHp4q7.es.js.map} +1 -1
  20. package/assets/menu.css +1 -1
  21. package/assets/themes/dark-th.css +1 -0
  22. package/assets/themes/dark.css +1 -1
  23. package/charts/charts.js +1 -1
  24. package/components/charts/miniChart/miniChart.d.ts +1 -1
  25. package/components/popup/lib/popup.d.ts +1 -1
  26. package/core/app.amd.js +1 -1
  27. package/core/app.amd.js.map +1 -1
  28. package/core/app.js +61 -67
  29. package/core/app.js.map +1 -1
  30. package/core/utils/clipboard.d.ts +5 -3
  31. package/dialog/dialog.js +2 -2
  32. package/forms/forms.js +1 -1
  33. package/formsExt/formsExt.js +2 -2
  34. package/icomoon/Topvisor icons.json +269 -198
  35. package/icomoon/demo.html +530 -488
  36. package/icomoon/fonts/Topvisor-2.eot +0 -0
  37. package/icomoon/fonts/Topvisor-2.svg +3 -0
  38. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  39. package/icomoon/fonts/Topvisor-2.woff +0 -0
  40. package/icomoon/selection.json +1 -1
  41. package/icomoon/style.css +258 -249
  42. package/layout/layout.js +1 -1
  43. package/package.json +3 -3
  44. package/popup/popup.js +2 -2
  45. package/popup/worker.amd.js +1 -1
  46. package/popup/worker.js +2 -2
  47. package/project/project.amd.js +1 -1
  48. package/project/project.amd.js.map +1 -1
  49. package/project/project.js +167 -167
  50. package/project/project.js.map +1 -1
  51. package/tabsView/tabsView.js +1 -1
  52. package/utils/clipboard.amd.js +5 -1
  53. package/utils/clipboard.amd.js.map +1 -1
  54. package/utils/clipboard.js +29 -6
  55. package/utils/clipboard.js.map +1 -1
  56. package/utils/date.js +1 -1
  57. package/utils/device.js +1 -1
  58. package/utils/lodash.js +1 -1
  59. package/utils/price.js +1 -1
  60. package/utils/string.js +1 -1
@@ -1,13 +1,13 @@
1
- import { Core as Ce } from "../core/app.js";
2
- import { defineComponent as P, mergeModels as O, useModel as D, computed as M, openBlock as x, createElementBlock as w, unref as h, createBlock as B, withCtx as b, createVNode as A, createTextVNode as z, toDisplayString as K, Fragment as Y, renderList as ie, normalizeClass as Q, createElementVNode as ve, ref as F, watch as L, createCommentVNode as q, withModifiers as j, mergeProps as ye, withKeys as de, nextTick as _e, resolveDirective as be, withDirectives as Be, resolveDynamicComponent as Ve, renderSlot as we, reactive as Me, shallowRef as $e, createSlots as Ee, toValue as Ke, isRef as ue } from "vue";
3
- import { c as R, C as J, _ as W, y as re, s as Le } from "../.chunks/forms-CHyoeELv.es.js";
4
- import { _ as pe, b as se, a as Ae } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-Dvz76-gx.es.js";
5
- import { _ as Oe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-Rex3a5_T.es.js";
1
+ import { Core as Te } from "../core/app.js";
2
+ import { defineComponent as P, mergeModels as O, useModel as D, computed as M, openBlock as x, createElementBlock as w, unref as h, createBlock as B, withCtx as b, createVNode as A, createTextVNode as z, toDisplayString as K, Fragment as Y, renderList as ie, normalizeClass as Q, createElementVNode as ye, ref as F, watch as L, createCommentVNode as q, withModifiers as j, mergeProps as pe, withKeys as de, nextTick as be, resolveDirective as Be, withDirectives as Ve, resolveDynamicComponent as we, renderSlot as Me, reactive as $e, shallowRef as Ee, createSlots as Ke, toValue as ue, isRef as ce } from "vue";
3
+ import { a as R, C as J, _ as W, y as re, s as Le } from "../.chunks/forms-DmpPuKKh.es.js";
4
+ import { _ as he, b as se, a as Ae } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-Cry_LWLq.es.js";
5
+ import { _ as Oe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-BQFq184r.es.js";
6
6
  import { getSearcherGIcon as Re, getLangLabel as Ne, getDeviceGIcon as De } from "../utils/searchers.js";
7
7
  import { storage as G } from "../utils/dom.js";
8
8
  import { TopPopupWorker as Fe } from "../popup/worker.js";
9
- const Te = ["../assets/project.css"].map((e) => import.meta.resolve(e));
10
- Ce.insertCSSLinkToPage(Te, !0);
9
+ const _e = ["../assets/project.css"].map((e) => import.meta.resolve(e));
10
+ Te.insertCSSLinkToPage(_e, !0);
11
11
  const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }, Ue = /* @__PURE__ */ P({
12
12
  __name: "selectorCompetitors",
13
13
  props: /* @__PURE__ */ O({
@@ -29,8 +29,8 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
29
29
  content: ""
30
30
  };
31
31
  });
32
- return (o, l) => (x(), w("div", qe, [
33
- h(J).state.isMobile ? (x(), B(pe, { key: 0 }, {
32
+ return (l, o) => (x(), w("div", qe, [
33
+ h(J).state.isMobile ? (x(), B(he, { key: 0 }, {
34
34
  opener: b(() => [
35
35
  A(W, {
36
36
  class: "top-selectorCompetitors_opener",
@@ -41,7 +41,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
41
41
  default: b(() => {
42
42
  var n;
43
43
  return [
44
- z(K((n = o.items.find((d) => {
44
+ z(K((n = l.items.find((d) => {
45
45
  var g;
46
46
  return d.value === ((g = i.value) == null ? void 0 : g[0]);
47
47
  })) == null ? void 0 : n.content), 1)
@@ -51,7 +51,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
51
51
  })
52
52
  ]),
53
53
  contentList: b(() => [
54
- (x(!0), w(Y, null, ie(o.items, (n, d) => {
54
+ (x(!0), w(Y, null, ie(l.items, (n, d) => {
55
55
  var g;
56
56
  return x(), B(se, {
57
57
  class: Q({
@@ -62,7 +62,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
62
62
  onClick: () => i.value = [n.value]
63
63
  }, {
64
64
  default: b(() => [
65
- ve("span", Pe, K(n.content), 1)
65
+ ye("span", Pe, K(n.content), 1)
66
66
  ]),
67
67
  _: 2
68
68
  }, 1032, ["class", "data-top-icon", "title", "onClick"]);
@@ -72,8 +72,8 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
72
72
  })) : (x(), B(Oe, {
73
73
  key: 1,
74
74
  modelValue: i.value,
75
- "onUpdate:modelValue": l[0] || (l[0] = (n) => i.value = n),
76
- items: o.items,
75
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => i.value = n),
76
+ items: l.items,
77
77
  isMultiple: !0,
78
78
  styling: "bar",
79
79
  canBeEmptyMultiple: !1,
@@ -97,7 +97,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
97
97
  key: I,
98
98
  name: "--",
99
99
  index: I
100
- }, he = {
100
+ }, Se = {
101
101
  key: I,
102
102
  name: "--",
103
103
  regions: [ee],
@@ -111,7 +111,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
111
111
  name: "Autoselect",
112
112
  regions: [te],
113
113
  regionByIndex: /* @__PURE__ */ new Map([[I, te]])
114
- }, ce = {
114
+ }, me = {
115
115
  countryCode: "00",
116
116
  depth: 1,
117
117
  device: 0,
@@ -119,31 +119,31 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
119
119
  index: -1,
120
120
  lang: "ru",
121
121
  name: "Without region"
122
- }, Je = () => (te.name = R().Common.Autoselect, te), ze = () => (Je(), ne.name = R().Common.Autoselect, console.log(ne), ne), Ge = () => (ce.name = R().Keywords.Without_region, ce), Se = (e = !1, a = !1, i = []) => {
122
+ }, Je = () => (te.name = R().Common.Autoselect, te), ze = () => (Je(), ne.name = R().Common.Autoselect, console.log(ne), ne), Ge = () => (me.name = R().Keywords.Without_region, me), Ie = (e = !1, a = !1, i = []) => {
123
123
  let t;
124
- return e ? t = Ye(i) : t = Ie(i), a && t.set(I, ze()), t.size || t.set(I, he), t;
125
- }, Ie = (e, a = !0, i = [], t = !1) => {
126
- const o = /* @__PURE__ */ new Map();
127
- return e.forEach((l) => {
128
- if (!l.enabled || t && typeof l.key == "number" && l.key > 1) return;
129
- const n = { ...l };
130
- n.regionByIndex = /* @__PURE__ */ new Map(), l.regions && l.regions.forEach((d) => {
124
+ return e ? t = Ye(i) : t = xe(i), a && t.set(I, ze()), t.size || t.set(I, Se), t;
125
+ }, xe = (e, a = !0, i = [], t = !1) => {
126
+ const l = /* @__PURE__ */ new Map();
127
+ return e.forEach((o) => {
128
+ if (!o.enabled || t && typeof o.key == "number" && o.key > 1) return;
129
+ const n = { ...o };
130
+ n.regionByIndex = /* @__PURE__ */ new Map(), o.regions && o.regions.forEach((d) => {
131
131
  if (a && !d.enabled) return;
132
132
  const g = { ...d };
133
133
  n.regionByIndex && n.regionByIndex.set(g.index, g);
134
- }), !n.regionByIndex.size && !i.length && n.regionByIndex.set(ee.index, ee), typeof n.key == "number" && o.set(n.key, n);
135
- }), i.forEach((l) => {
136
- if (o.has(l)) return;
134
+ }), !n.regionByIndex.size && !i.length && n.regionByIndex.set(ee.index, ee), typeof n.key == "number" && l.set(n.key, n);
135
+ }), i.forEach((o) => {
136
+ if (l.has(o)) return;
137
137
  const n = {
138
- key: l,
139
- name: je[l],
138
+ key: o,
139
+ name: je[o],
140
140
  regions: [],
141
141
  regionByIndex: /* @__PURE__ */ new Map()
142
142
  };
143
- o.set(n.key, n);
144
- }), o;
143
+ l.set(n.key, n);
144
+ }), l;
145
145
  }, Ye = (e) => {
146
- const a = Ie(e, !1, [0, 1], !0);
146
+ const a = xe(e, !1, [0, 1], !0);
147
147
  if (a.has(2)) {
148
148
  const i = a.get(2);
149
149
  i && (i.regionByIndex = /* @__PURE__ */ new Map());
@@ -154,48 +154,48 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
154
154
  i.regionByIndex.set(t.index, t);
155
155
  }), a;
156
156
  }, We = (e, a, i = []) => {
157
- const t = Se(e, !1, i);
158
- let o;
159
- return t.forEach((l) => {
160
- if (!(a.searcher_key !== void 0 && a.searcher_key != l.key) && l.regions && (l.regions.forEach((n) => {
161
- if (!o && !(a.key !== void 0 && a.key != n.key) && !(a.index !== void 0 && a.index != n.index) && !(!e && (a.lang !== void 0 && a.lang != n.lang || a.device !== void 0 && a.device != n.device)))
162
- return n.searcher_key = l.key, o = n, !1;
163
- }), o))
157
+ const t = Ie(e, !1, i);
158
+ let l;
159
+ return t.forEach((o) => {
160
+ if (!(a.searcher_key !== void 0 && a.searcher_key != o.key) && o.regions && (o.regions.forEach((n) => {
161
+ if (!l && !(a.key !== void 0 && a.key != n.key) && !(a.index !== void 0 && a.index != n.index) && !(!e && (a.lang !== void 0 && a.lang != n.lang || a.device !== void 0 && a.device != n.device)))
162
+ return n.searcher_key = o.key, l = n, !1;
163
+ }), l))
164
164
  return !1;
165
- }), o;
165
+ }), l;
166
166
  }, He = (e, a) => {
167
- const i = R(), t = F(a.value.keys().next().value ?? I), o = M(() => {
168
- const l = /* @__PURE__ */ new Map();
167
+ const i = R(), t = F(a.value.keys().next().value ?? I), l = M(() => {
168
+ const o = /* @__PURE__ */ new Map();
169
169
  if (a.value.forEach((n) => {
170
170
  let d = {
171
171
  value: n.key,
172
172
  title: n.name
173
173
  };
174
- e.addSearcherIcon && (d.icon = Re(n.key)), l.set(n.key, d);
175
- }), e.addCompare && !l.has(I)) {
174
+ e.addSearcherIcon && (d.icon = Re(n.key)), o.set(n.key, d);
175
+ }), e.addCompare && !o.has(I)) {
176
176
  const n = {
177
177
  value: "",
178
178
  title: "--------------------",
179
179
  disabled: !0
180
180
  };
181
- l.set(n.value, n);
181
+ o.set(n.value, n);
182
182
  const d = {
183
183
  value: -1,
184
184
  title: i.Common.Compare
185
185
  };
186
- l.set(d.value, d);
186
+ o.set(d.value, d);
187
187
  }
188
- return l;
188
+ return o;
189
189
  });
190
190
  return {
191
191
  searcherKey: t,
192
- optionBySearcherKey: o
192
+ optionBySearcherKey: l
193
193
  };
194
194
  }, Qe = (e, a) => {
195
- var l, n, d;
195
+ var o, n, d;
196
196
  const i = R(), t = F(I);
197
- e.modelValue.length === 1 && (t.value = e.modelValue[0]), t.value === I && (e.forFrequency ? t.value = ((n = (l = a.value) == null ? void 0 : l.regionByIndex.values().next().value) == null ? void 0 : n.key) ?? I : t.value = ((d = a.value) == null ? void 0 : d.regionByIndex.keys().next().value) ?? I);
198
- const o = M(() => {
197
+ e.modelValue.length === 1 && (t.value = e.modelValue[0]), t.value === I && (e.forFrequency ? t.value = ((n = (o = a.value) == null ? void 0 : o.regionByIndex.values().next().value) == null ? void 0 : n.key) ?? I : t.value = ((d = a.value) == null ? void 0 : d.regionByIndex.keys().next().value) ?? I);
198
+ const l = M(() => {
199
199
  var f;
200
200
  const g = /* @__PURE__ */ new Map();
201
201
  return (f = a.value.regionByIndex) == null || f.forEach((v) => {
@@ -219,7 +219,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
219
219
  g.set(v.index, y);
220
220
  }), g;
221
221
  });
222
- return L(o, (g, f) => {
222
+ return L(l, (g, f) => {
223
223
  var y;
224
224
  if (e.onlySearcher || t.value !== void 0 && g.get(t.value))
225
225
  return;
@@ -244,10 +244,10 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
244
244
  t.value = v;
245
245
  }), {
246
246
  regionIndex: t,
247
- optionByRegionIndex: o
247
+ optionByRegionIndex: l
248
248
  };
249
249
  }, Xe = (e, a, i) => {
250
- const t = F([]), o = () => {
250
+ const t = F([]), l = () => {
251
251
  if (e.onlySearcher && a.value) {
252
252
  t.value = Array.from(a.value.keys());
253
253
  return;
@@ -263,16 +263,16 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
263
263
  } catch {
264
264
  }
265
265
  n.length && (n = n.filter((d) => i.value.has(d))), n.length || (n = Array.from(i.value)), t.value = [...n];
266
- }, l = () => {
266
+ }, o = () => {
267
267
  t.value.length ? localStorage.setItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes", JSON.stringify(t.value)) : localStorage.removeItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes");
268
268
  };
269
269
  return L(t, () => {
270
- l();
271
- }), e.addCompare && o(), {
270
+ o();
271
+ }), e.addCompare && l(), {
272
272
  regionsIndexes: t
273
273
  };
274
274
  }, Ze = (e) => {
275
- const a = M(() => Se(e.forFrequency, e.autoRegion, e.searchers)), i = M(() => a.value.get(o.searcherKey.value) || he), t = M(() => {
275
+ const a = M(() => Ie(e.forFrequency, e.autoRegion, e.searchers)), i = M(() => a.value.get(l.searcherKey.value) || Se), t = M(() => {
276
276
  const r = /* @__PURE__ */ new Set();
277
277
  return a.value.forEach((m) => {
278
278
  var y;
@@ -280,33 +280,33 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
280
280
  C.index !== -1 && C.index !== I && r.add(C.index);
281
281
  });
282
282
  }), r;
283
- }), o = He(e, a), l = Qe(e, i), n = Xe(e, a, t);
283
+ }), l = He(e, a), o = Qe(e, i), n = Xe(e, a, t);
284
284
  L(a, () => {
285
285
  var m, y, C, k;
286
- if (e.onlySearcher ? n.regionsIndexes.value = Array.from(a.value.keys()) : n.regionsIndexes.value = n.regionsIndexes.value.filter((S) => t.value.has(S)), o.searcherKey.value === -1) return;
286
+ if (e.onlySearcher ? n.regionsIndexes.value = Array.from(a.value.keys()) : n.regionsIndexes.value = n.regionsIndexes.value.filter((S) => t.value.has(S)), l.searcherKey.value === -1) return;
287
287
  let r = a.value.keys().next().value;
288
288
  a.value.forEach((S) => {
289
289
  var _, T, u;
290
- if (e.onlySearcher && S.key === o.searcherKey.value) {
291
- r = o.searcherKey.value;
290
+ if (e.onlySearcher && S.key === l.searcherKey.value) {
291
+ r = l.searcherKey.value;
292
292
  return;
293
293
  }
294
- if (l.regionIndex.value && ((_ = S.regionByIndex) != null && _.has(l.regionIndex.value)) && (r = S.key), !e.onlySearcher) {
294
+ if (o.regionIndex.value && ((_ = S.regionByIndex) != null && _.has(o.regionIndex.value)) && (r = S.key), !e.onlySearcher) {
295
295
  let s;
296
296
  r !== void 0 && (s = (T = a.value.get(r)) == null ? void 0 : T.regionByIndex);
297
297
  const c = (u = a.value.get(S.key)) == null ? void 0 : u.regionByIndex;
298
298
  s != null && s.has(I) && !(c != null && c.has(I)) && (r = S.key);
299
299
  }
300
- }), r !== void 0 && (o.searcherKey.value = r), l.regionIndex.value !== void 0 && !((y = (m = i.value) == null ? void 0 : m.regionByIndex) != null && y.has(l.regionIndex.value)) && (l.regionIndex.value = (k = (C = i.value) == null ? void 0 : C.regions) == null ? void 0 : k.keys().next().value);
300
+ }), r !== void 0 && (l.searcherKey.value = r), o.regionIndex.value !== void 0 && !((y = (m = i.value) == null ? void 0 : m.regionByIndex) != null && y.has(o.regionIndex.value)) && (o.regionIndex.value = (k = (C = i.value) == null ? void 0 : C.regions) == null ? void 0 : k.keys().next().value);
301
301
  }, { immediate: !0 });
302
302
  const d = () => {
303
- if (!(o.searcherKey.value === -1 || o.searcherKey.value === I))
304
- return o.searcherKey.value;
303
+ if (!(l.searcherKey.value === -1 || l.searcherKey.value === I))
304
+ return l.searcherKey.value;
305
305
  }, g = () => {
306
- if (e.onlySearcher || l.regionIndex.value === I) return;
307
- let r = l.regionIndex.value;
306
+ if (e.onlySearcher || o.regionIndex.value === I) return;
307
+ let r = o.regionIndex.value;
308
308
  if (e.forFrequency) {
309
- const m = l.regionIndex.value, y = We(e.forFrequency, { searcher_key: d(), key: m }, e.searchers);
309
+ const m = o.regionIndex.value, y = We(e.forFrequency, { searcher_key: d(), key: m }, e.searchers);
310
310
  r = y == null ? void 0 : y.index;
311
311
  }
312
312
  return r;
@@ -316,8 +316,8 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
316
316
  return a.value.get(r);
317
317
  };
318
318
  return {
319
- selectSearcher: o,
320
- selectRegion: l,
319
+ selectSearcher: l,
320
+ selectRegion: o,
321
321
  compare: n,
322
322
  searcherByKey: a,
323
323
  allRegionsIndexes: t,
@@ -351,7 +351,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
351
351
  }),
352
352
  emits: /* @__PURE__ */ O(["compareRegions"], ["update:modelValue", "update:modelValueSingle"]),
353
353
  setup(e, { expose: a, emit: i }) {
354
- const t = e, o = D(e, "modelValue"), l = D(e, "modelValueSingle"), n = i, {
354
+ const t = e, l = D(e, "modelValue"), o = D(e, "modelValueSingle"), n = i, {
355
355
  selectSearcher: d,
356
356
  selectRegion: g,
357
357
  compare: f,
@@ -373,28 +373,28 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
373
373
  };
374
374
  return L([g.regionIndex, d.searcherKey, f.regionsIndexes], () => {
375
375
  if (d.searcherKey.value === -1 && f.regionsIndexes.value.length) {
376
- if (JSON.stringify(o.value) === JSON.stringify(f.regionsIndexes.value))
376
+ if (JSON.stringify(l.value) === JSON.stringify(f.regionsIndexes.value))
377
377
  return;
378
- o.value = [...f.regionsIndexes.value];
378
+ l.value = [...f.regionsIndexes.value];
379
379
  } else
380
- o.value = [t.onlySearcher ? d.searcherKey.value : g.regionIndex.value];
380
+ l.value = [t.onlySearcher ? d.searcherKey.value : g.regionIndex.value];
381
381
  !t.onlySearcher && !r.value.size && (d.searcherKey.value = I);
382
- }), l.value && L(l, () => {
383
- o.value = [l.value];
384
- }, { immediate: !0 }), L(o, () => {
382
+ }), o.value && L(o, () => {
383
+ l.value = [o.value];
384
+ }, { immediate: !0 }), L(l, () => {
385
385
  var k, S, _, T, u;
386
- if (o.value[0] && (l.value = o.value[0]), t.onlySearcher) {
387
- if (!o.value.length || o.value.length === 1 && !v.value.has(o.value[0])) {
386
+ if (l.value[0] && (o.value = l.value[0]), t.onlySearcher) {
387
+ if (!l.value.length || l.value.length === 1 && !v.value.has(l.value[0])) {
388
388
  let s = v.value.keys().next().value;
389
- s !== void 0 && (o.value = [s]);
389
+ s !== void 0 && (l.value = [s]);
390
390
  return;
391
391
  }
392
- if (o.value.length > 1 && JSON.stringify(o.value) !== JSON.stringify(f.regionsIndexes.value)) {
393
- o.value = [...f.regionsIndexes.value];
392
+ if (l.value.length > 1 && JSON.stringify(l.value) !== JSON.stringify(f.regionsIndexes.value)) {
393
+ l.value = [...f.regionsIndexes.value];
394
394
  return;
395
395
  }
396
396
  } else {
397
- let s = [...new Set(o.value)], c = (S = (k = v.value.values().next().value) == null ? void 0 : k.regionByIndex) == null ? void 0 : S.keys().next().value;
397
+ let s = [...new Set(l.value)], c = (S = (k = v.value.values().next().value) == null ? void 0 : k.regionByIndex) == null ? void 0 : S.keys().next().value;
398
398
  if (t.forFrequency && (c = (u = (T = (_ = v.value.values().next().value) == null ? void 0 : _.regionByIndex) == null ? void 0 : T.values().next().value) == null ? void 0 : u.key), !s.length)
399
399
  c !== void 0 && s.push(c);
400
400
  else if (s.length === 1) {
@@ -406,21 +406,21 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
406
406
  })), !p.has(s[0]) && s[0] !== -2 && (s = [], c !== void 0 && s.push(c));
407
407
  } else
408
408
  s = s.filter((p) => r.value.has(p)), !s.length && c !== void 0 && s.push(c);
409
- if (JSON.stringify(o.value) !== JSON.stringify(s)) {
410
- o.value = s;
409
+ if (JSON.stringify(l.value) !== JSON.stringify(s)) {
410
+ l.value = s;
411
411
  return;
412
412
  }
413
413
  }
414
- if (!(o.value.length === 1 && o.value[0] === (t.onlySearcher ? d.searcherKey.value : g.regionIndex.value)))
414
+ if (!(l.value.length === 1 && l.value[0] === (t.onlySearcher ? d.searcherKey.value : g.regionIndex.value)))
415
415
  if (t.onlySearcher) {
416
- if (o.value.length === 1) {
417
- d.searcherKey.value = o.value[0];
416
+ if (l.value.length === 1) {
417
+ d.searcherKey.value = l.value[0];
418
418
  return;
419
419
  }
420
420
  d.searcherKey.value = -1;
421
421
  return;
422
- } else if (o.value.length === 1 && d.searcherKey.value !== -1) {
423
- g.regionIndex.value = o.value[0];
422
+ } else if (l.value.length === 1 && d.searcherKey.value !== -1) {
423
+ g.regionIndex.value = l.value[0];
424
424
  let s;
425
425
  for (const c of v.value.values()) {
426
426
  for (const p of c.regionByIndex.values())
@@ -433,7 +433,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
433
433
  }
434
434
  s !== void 0 && (d.searcherKey.value = s);
435
435
  } else
436
- d.searcherKey.value = -1, f.regionsIndexes.value = [...o.value];
436
+ d.searcherKey.value = -1, f.regionsIndexes.value = [...l.value];
437
437
  }, { immediate: !0 }), a({
438
438
  getSearcher: m,
439
439
  getRegion: y
@@ -524,7 +524,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
524
524
  name: "Turquoise",
525
525
  color_id: "10"
526
526
  }
527
- ], me = (e) => "-" + e, H = (e) => e[0] === "-" ? e.substring(1) : e, ae = (e, a) => {
527
+ ], ge = (e) => "-" + e, H = (e) => e[0] === "-" ? e.substring(1) : e, ae = (e, a) => {
528
528
  e = H(e);
529
529
  const i = a.find((t) => t.id === e);
530
530
  if (i)
@@ -549,7 +549,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
549
549
  title: a.name
550
550
  }, null, 10, at));
551
551
  }
552
- }), lt = ["contenteditable", "onKeydown"], ge = /* @__PURE__ */ P({
552
+ }), lt = ["contenteditable", "onKeydown"], fe = /* @__PURE__ */ P({
553
553
  __name: "tagPopupListItem",
554
554
  props: /* @__PURE__ */ O({
555
555
  editable: { type: Boolean },
@@ -567,19 +567,19 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
567
567
  }),
568
568
  emits: /* @__PURE__ */ O(["update:name", "unselect", "exclude", "select"], ["update:name"]),
569
569
  setup(e, { emit: a }) {
570
- const i = e, t = a, o = D(e, "name"), l = F(null), n = M(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
570
+ const i = e, t = a, l = D(e, "name"), o = F(null), n = M(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
571
571
  contenteditable: d.value,
572
572
  onpaste: (m) => m.preventDefault()
573
573
  } : {}), d = F(!1), g = async () => {
574
574
  var m;
575
- d.value = !0, await _e(), (m = l.value) == null || m.focus();
575
+ d.value = !0, await be(), (m = o.value) == null || m.focus();
576
576
  }, f = () => {
577
577
  var y;
578
- const m = (y = l.value) == null ? void 0 : y.innerText;
578
+ const m = (y = o.value) == null ? void 0 : y.innerText;
579
579
  if (!m) return v();
580
- l.value && (l.value.innerText = m), d.value = !1, t("update:name", m);
580
+ o.value && (o.value.innerText = m), d.value = !1, t("update:name", m);
581
581
  }, v = async () => {
582
- l.value && (l.value.innerText = i.name), d.value = !1;
582
+ o.value && (o.value.innerText = i.name), d.value = !1;
583
583
  }, r = (m) => {
584
584
  if (d.value || i.disabled) return;
585
585
  let y = "selected";
@@ -599,13 +599,13 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
599
599
  default: b(() => [
600
600
  A(le, {
601
601
  id: m.id,
602
- name: o.value,
602
+ name: l.value,
603
603
  colorId: m.colorId,
604
604
  state: m.state
605
605
  }, null, 8, ["id", "name", "colorId", "state"]),
606
- ve("span", ye({
606
+ ye("span", pe({
607
607
  ref_key: "elName",
608
- ref: l,
608
+ ref: o,
609
609
  class: "top-tagSelector_tagListItemName",
610
610
  contenteditable: d.value ? "plaintext-only" : !1
611
611
  }, n.value, {
@@ -613,7 +613,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
613
613
  de(j(f, ["stop"]), ["enter"]),
614
614
  de(j(v, ["stop"]), ["esc"])
615
615
  ]
616
- }), K(o.value), 17, lt),
616
+ }), K(l.value), 17, lt),
617
617
  m.editable ? (x(), w(Y, { key: 0 }, [
618
618
  d.value ? (x(), w("span", {
619
619
  key: 1,
@@ -631,7 +631,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
631
631
  _: 1
632
632
  }, 8, ["class"]));
633
633
  }
634
- }), ot = { key: 1 }, xe = /* @__PURE__ */ P({
634
+ }), ot = { key: 1 }, ke = /* @__PURE__ */ P({
635
635
  inheritAttrs: !1,
636
636
  __name: "popupOpener",
637
637
  props: /* @__PURE__ */ O({
@@ -651,7 +651,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
651
651
  }),
652
652
  emits: ["update:modelValue"],
653
653
  setup(e) {
654
- const a = e, i = D(e, "modelValue"), t = a.useTopButton ? W : "div", o = a.useTopButton ? "html" : "default", l = {
654
+ const a = e, i = D(e, "modelValue"), t = a.useTopButton ? W : "div", l = a.useTopButton ? "html" : "default", o = {
655
655
  model: i,
656
656
  mode: a.mode,
657
657
  targetId: a.targetId,
@@ -659,10 +659,10 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
659
659
  payload: a.payload
660
660
  };
661
661
  return (n, d) => {
662
- const g = be("top-data");
662
+ const g = Be("top-data");
663
663
  return x(), B(Ae, { id: n.id }, {
664
664
  default: b(() => [
665
- Be((x(), B(Ve(h(t)), ye({
665
+ Ve((x(), B(we(h(t)), pe({
666
666
  class: {
667
667
  "top-tagSelector": !0,
668
668
  "top-tagSelector-filter": a.mode === "filter",
@@ -674,7 +674,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
674
674
  color: "theme",
675
675
  styling: ""
676
676
  }, n.$attrs), {
677
- [h(o)]: b(() => [
677
+ [h(l)]: b(() => [
678
678
  !i.value.length && n.mode === "filter" ? (x(), B(le, {
679
679
  key: 0,
680
680
  id: "all",
@@ -683,7 +683,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
683
683
  state: ""
684
684
  }, null, 8, ["name"])) : q("", !0),
685
685
  n.mode === "setter" && n.filters ? (x(), w("div", ot, [
686
- we(n.$slots, "default")
686
+ Me(n.$slots, "default")
687
687
  ])) : (x(!0), w(Y, { key: 2 }, ie(i.value, (f) => {
688
688
  var v, r;
689
689
  return x(), B(le, {
@@ -696,7 +696,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
696
696
  ]),
697
697
  _: 2
698
698
  }, 1040, ["class"])), [
699
- [g, l, "topTagSelectorTarget"]
699
+ [g, o, "topTagSelectorTarget"]
700
700
  ])
701
701
  ]),
702
702
  _: 3
@@ -721,30 +721,30 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
721
721
  },
722
722
  modelModifiers: {},
723
723
  tags: {
724
- default: Me(tt)
724
+ default: $e(tt)
725
725
  },
726
726
  tagsModifiers: {}
727
727
  }),
728
728
  emits: /* @__PURE__ */ O(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
729
729
  setup(e, { emit: a }) {
730
- const i = R(), t = e, o = D(e, "modelValue"), l = D(e, "tags"), n = a, d = Le((u, s) => {
730
+ const i = R(), t = e, l = D(e, "modelValue"), o = D(e, "tags"), n = a, d = Le((u, s) => {
731
731
  n(u, s);
732
732
  }, t.emitDelay);
733
- t.singleMode && !o.value.length && (o.value = [l.value[0].id]);
733
+ t.singleMode && !l.value.length && (l.value = [o.value[0].id]);
734
734
  const g = t.id ?? "top-popup-id-" + Math.random(), f = F("add"), v = () => {
735
735
  var c;
736
736
  const u = " " + ((c = i.Common.Tags) == null ? void 0 : c.toLowerCase()), s = /* @__PURE__ */ new Map();
737
737
  return s.set("add", { value: "add", title: i.Common.Add + u }), s.set("replace", { value: "replace", title: i.Common.Replace + u }), s.set("delete", { value: "delete", title: i.Common.Delete + u }), s;
738
738
  };
739
- let r = $e({
740
- model: o,
739
+ let r = Ee({
740
+ model: l,
741
741
  mode: "filter",
742
742
  targetId: void 0,
743
743
  filters: void 0,
744
744
  payload: void 0
745
745
  });
746
- L(o, () => {
747
- d("selector", o.value);
746
+ L(l, () => {
747
+ d("selector", l.value);
748
748
  });
749
749
  const m = M(() => {
750
750
  if (r.value.mode === "setter" && t.maxTagsForSetter && !r.value.filters)
@@ -752,11 +752,11 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
752
752
  }), y = (u) => {
753
753
  if (u !== "all") {
754
754
  if (r.value.model.value.includes(u)) return "selected";
755
- if (r.value.model.value.includes(me(u))) return "excluded";
755
+ if (r.value.model.value.includes(ge(u))) return "excluded";
756
756
  }
757
757
  return u === "all" && !r.value.model.value.length ? "selected" : "";
758
758
  }, C = (u, s) => {
759
- const c = me(u);
759
+ const c = ge(u);
760
760
  let p = r.value.model.value.filter((V) => V !== u && V !== c);
761
761
  s === "select" && p.push(u), s === "exclude" && p.push(c), r.value.mode === "setter" && r.value.targetId !== void 0 && t.requiredForSetter && (p.length || p.push("1"), p.length === 2 && r.value.model.value.length === 1 && r.value.model.value[0] === "1" && (p = p.filter((V) => V !== "1"))), t.singleMode && !r.value.filters && (p.length || (p = r.value.model.value), p.length > 1 && (p = [p[p.length - 1]])), p.sort((V, E) => {
762
762
  if (!t.tags) return 0;
@@ -773,12 +773,12 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
773
773
  }), S = () => {
774
774
  const u = prompt("", "New tag");
775
775
  if (!u || u === "New tag") return;
776
- const s = l.value.length + 1;
777
- l.value.push({
776
+ const s = o.value.length + 1;
777
+ o.value.push({
778
778
  id: String(s),
779
779
  name: u,
780
780
  color_id: String((s - 1) % 10 + 1)
781
- }), n("tagsChanged", l.value);
781
+ }), n("tagsChanged", o.value);
782
782
  }, _ = (u) => {
783
783
  var s;
784
784
  if (r.value = G(u.elPopupOpener, "topTagSelectorTarget"), !r.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
@@ -786,7 +786,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
786
786
  console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
787
787
  return;
788
788
  }
789
- !J.state.isMobile && !J.state.isMobileUA && l.value && $(u.elPopup).sortable({
789
+ !J.state.isMobile && !J.state.isMobileUA && o.value && $(u.elPopup).sortable({
790
790
  items: 'li:has([data-tag_id]:not([data-tag_id="all"]))',
791
791
  /**
792
792
  * @todo Удалить `[contenteditable="true"]` через пол года после выхода версии firefox с поддержкой contenteditable plaintext-only, включая бета версии
@@ -794,16 +794,16 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
794
794
  cancel: '[contenteditable="plaintext-only"], [contenteditable="true"]',
795
795
  distance: 10,
796
796
  stop: function(c, p) {
797
- if (!l.value) return;
797
+ if (!o.value) return;
798
798
  const V = $(p.item).parent().find("[data-tag_id]"), E = [];
799
799
  V.each((X, U) => {
800
- if (!l.value) return;
800
+ if (!o.value) return;
801
801
  const N = $(U).attr("data-tag_id");
802
802
  E.push(N);
803
- }), l.value.sort((X, U) => {
804
- const N = E.findIndex((oe) => oe === X.id), ke = E.findIndex((oe) => oe === U.id);
805
- return N - ke;
806
- }), d("tagsChanged", l.value);
803
+ }), o.value.sort((X, U) => {
804
+ const N = E.findIndex((oe) => oe === X.id), Ce = E.findIndex((oe) => oe === U.id);
805
+ return N - Ce;
806
+ }), d("tagsChanged", o.value);
807
807
  }
808
808
  });
809
809
  }, T = (u) => {
@@ -811,24 +811,24 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
811
811
  (s = J.$) != null && s.ui.sortable && $(u.elPopup).data("ui-sortable") && $(u.elPopup).sortable("destroy");
812
812
  };
813
813
  return (u, s) => (x(), w(Y, null, [
814
- A(xe, {
814
+ A(ke, {
815
815
  class: "top-select_arrow",
816
- modelValue: o.value,
817
- "onUpdate:modelValue": s[0] || (s[0] = (c) => o.value = c),
816
+ modelValue: l.value,
817
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l.value = c),
818
818
  id: h(g),
819
- tags: l.value,
819
+ tags: o.value,
820
820
  mode: "filter",
821
821
  useTopButton: ""
822
822
  }, null, 8, ["modelValue", "id", "tags"]),
823
- A(pe, {
823
+ A(he, {
824
824
  id: h(g),
825
825
  class: Q(k.value),
826
826
  onOpen: s[4] || (s[4] = (c) => _(c)),
827
827
  onClose: s[5] || (s[5] = (c) => T(c)),
828
828
  "transition-duration": 50
829
- }, Ee({
829
+ }, Ke({
830
830
  contentList: b(() => [
831
- h(r).mode === "filter" && !u.singleMode ? (x(), B(ge, {
831
+ h(r).mode === "filter" && !u.singleMode ? (x(), B(fe, {
832
832
  key: 0,
833
833
  id: "all",
834
834
  colorId: "",
@@ -836,7 +836,7 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
836
836
  state: h(r).model.value.length ? "" : "selected",
837
837
  onSelect: s[3] || (s[3] = (c) => h(r).model.value = [])
838
838
  }, null, 8, ["name", "state"])) : q("", !0),
839
- (x(!0), w(Y, null, ie(l.value, (c) => (x(), B(ge, {
839
+ (x(!0), w(Y, null, ie(o.value, (c) => (x(), B(fe, {
840
840
  key: c.id,
841
841
  id: c.id,
842
842
  colorId: c.color_id,
@@ -849,10 +849,10 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
849
849
  onSelect: (p) => C(c.id, "select"),
850
850
  onExclude: (p) => C(c.id, "exclude"),
851
851
  "onUpdate:name": (p) => {
852
- c.name = p, h(d)("tagsChanged", l.value);
852
+ c.name = p, h(d)("tagsChanged", o.value);
853
853
  }
854
854
  }, null, 8, ["id", "colorId", "name", "state", "canExclude", "editable", "disabled", "onUnselect", "onSelect", "onExclude", "onUpdate:name"]))), 128)),
855
- u.tagsEditable && l.value.length < u.tagsMax && l.value.length < 20 ? (x(), B(se, {
855
+ u.tagsEditable && o.value.length < u.tagsMax && o.value.length < 20 ? (x(), B(se, {
856
856
  key: 1,
857
857
  "data-top-icon": "",
858
858
  onClick: j(S, ["stop"])
@@ -904,64 +904,64 @@ const qe = { class: "top-selectorCompetitors" }, Pe = { class: "top-ellipsis1" }
904
904
  ]), 1032, ["id", "class"])
905
905
  ], 64));
906
906
  }
907
- }), ft = (e, a) => M(() => Ke(e).map((t) => ({
908
- value: t.id,
909
- title: t.url + ` [${t.id}]`,
910
- icon: t.id === a ? "" : "",
911
- content: t.name
907
+ }), ft = (e, a) => M(() => ue(e).filter((l) => l.on >= 0 || l.id === a).map((l) => ({
908
+ value: l.id,
909
+ title: l.url + ` [${l.id}]`,
910
+ icon: l.id === ue(a) ? "" : "",
911
+ content: l.name
912
912
  }))), vt = (e, a, i) => {
913
913
  a || (a = { id: e.id }), a.id = e.id;
914
914
  const t = Fe.genElPopupOpener("div", a);
915
- return t.classList.add("top-tagSelector"), e.useTopButton && t.classList.add("top-button", "top-color_theme"), e.mode === "filter" && t.classList.add("top-tagSelector-filter"), e.mode === "setter" && !e.filters && t.classList.add("top-tagSelector-setter_single"), e.mode === "setter" && e.filters && t.classList.add("top-tagSelector-setter_several"), t.onclick = (o) => {
916
- o.preventDefault(), o.stopPropagation(), t.onclick = null;
917
- const l = F(e.modelValue), n = {
918
- model: l,
915
+ return t.classList.add("top-tagSelector"), e.useTopButton && t.classList.add("top-button", "top-color_theme"), e.mode === "filter" && t.classList.add("top-tagSelector-filter"), e.mode === "setter" && !e.filters && t.classList.add("top-tagSelector-setter_single"), e.mode === "setter" && e.filters && t.classList.add("top-tagSelector-setter_several"), t.onclick = (l) => {
916
+ l.preventDefault(), l.stopPropagation(), t.onclick = null;
917
+ const o = F(e.modelValue), n = {
918
+ model: o,
919
919
  mode: e.mode,
920
920
  targetId: e.targetId,
921
921
  filters: e.filters,
922
922
  payload: e.payload
923
923
  };
924
- G(t, "topTagSelectorTarget", n), delete t.dataset.topPopupDisabled, ue(e.modelValue) || L(l, () => {
925
- e.modelValue = l.value, Z(t, e, i);
924
+ G(t, "topTagSelectorTarget", n), delete t.dataset.topPopupDisabled, ce(e.modelValue) || L(o, () => {
925
+ e.modelValue = o.value, Z(t, e, i);
926
926
  }), t.click();
927
- }, ue(e.modelValue) ? L(e.modelValue, () => Z(t, e, i)) : G(t, "topTagSelectorRender", (o) => {
928
- e.modelValue = o;
929
- const l = G(t, "topTagSelectorTarget");
930
- l && (l.model.value = o), Z(t, e, i);
927
+ }, ce(e.modelValue) ? L(e.modelValue, () => Z(t, e, i)) : G(t, "topTagSelectorRender", (l) => {
928
+ e.modelValue = l;
929
+ const o = G(t, "topTagSelectorTarget");
930
+ o && (o.model.value = l), Z(t, e, i);
931
931
  }), Z(t, e, i), t;
932
932
  }, yt = (e, a) => {
933
933
  var i;
934
934
  (i = G(e, "topTagSelectorRender")) == null || i(a);
935
935
  }, Z = (e, a, i) => {
936
- var o;
936
+ var l;
937
937
  const t = h(a.modelValue);
938
938
  if (e.classList.toggle("top-tagSelector-selectedOne", !t.length || t.length === 1), e.classList.toggle("top-tagSelector-toTwoLine", t.length > 5), a.mode === "setter" && a.filters) {
939
939
  e.innerHTML = `<div>${i}</div>`;
940
940
  return;
941
941
  }
942
942
  if (e.innerHTML = "", !t.length && a.mode === "filter") {
943
- const l = fe({
943
+ const o = ve({
944
944
  id: "all",
945
945
  colorId: "",
946
- name: ((o = R().Common) == null ? void 0 : o.All_tags) ?? "",
946
+ name: ((l = R().Common) == null ? void 0 : l.All_tags) ?? "",
947
947
  state: ""
948
948
  });
949
- e.append(l);
949
+ e.append(o);
950
950
  }
951
- t.forEach((l) => {
951
+ t.forEach((o) => {
952
952
  var d, g;
953
- const n = fe({
954
- id: H(l),
955
- colorId: ((d = ae(l, a.tags)) == null ? void 0 : d.color_id) ?? "",
956
- name: ((g = ae(l, a.tags)) == null ? void 0 : g.name) ?? "",
957
- state: H(l) === l ? "selected" : "excluded"
953
+ const n = ve({
954
+ id: H(o),
955
+ colorId: ((d = ae(o, a.tags)) == null ? void 0 : d.color_id) ?? "",
956
+ name: ((g = ae(o, a.tags)) == null ? void 0 : g.name) ?? "",
957
+ state: H(o) === o ? "selected" : "excluded"
958
958
  });
959
959
  e.append(n);
960
960
  });
961
- }, fe = (e) => {
961
+ }, ve = (e) => {
962
962
  const a = document.createElement("div");
963
963
  return a.classList.add("top-tagSelector_tagIcon"), a.classList.toggle("top-tagSelector-active", !!e.state), a.classList.toggle("top-tagSelector-excluded", e.state === "excluded"), a.dataset.tag_id = e.id, a.dataset.tag_color_id = e.colorId, a.title = e.name, a;
964
- }, pt = Ue, ht = et, St = nt, It = xe, xt = le;
964
+ }, pt = Ue, ht = et, St = nt, It = ke, xt = le;
965
965
  export {
966
966
  pt as TopSelectorCompetitors,
967
967
  ht as TopSelectorRegion,
@@ -970,7 +970,7 @@ export {
970
970
  xt as TopTagSelectorTagIcon,
971
971
  We as findRegion,
972
972
  vt as genElTopTagSelectorPopupOpener,
973
- Se as genSearcherByKey,
973
+ Ie as genSearcherByKey,
974
974
  yt as renderElTopTagSelectorPopupOpener,
975
975
  ft as useItemsFromCompetitors
976
976
  };