@topvisor/ui 1.4.0-TopGroupSelector.11 → 1.4.0-TopGroupSelector.12

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.
@@ -3,16 +3,16 @@
3
3
  const fileNames = ['../assets/project.css'].map(fileName => import.meta.resolve(fileName));
4
4
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
5
5
 
6
- import { defineComponent as R, mergeModels as V, useModel as T, computed as w, createElementBlock as A, openBlock as h, createBlock as C, unref as v, withCtx as B, Fragment as Y, renderList as me, normalizeClass as X, createElementVNode as oe, toDisplayString as b, createVNode as N, createTextVNode as z, toValue as ye, ref as K, watch as E, createCommentVNode as O, reactive as be, isRef as he, withModifiers as U, mergeProps as Ve, withKeys as Ie, nextTick as Re, resolveDirective as Ne, withDirectives as Pe, resolveDynamicComponent as De, renderSlot as qe, shallowRef as Fe, createSlots as Ue } from "vue";
7
- import { u as M, C as _, e as Q, p as ce, d as _e } from "../.chunks/forms-BseC3Ftz.es.js";
8
- import { _ as Me, b as ve, a as ze } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js";
9
- import { a as Je, _ as we, b as Ee, c as $e, I as ue } from "../.chunks/policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js";
10
- import { u as We } from "../.chunks/utils-YrUExsH7.es.js";
6
+ import { defineComponent as R, mergeModels as V, useModel as T, computed as M, createElementBlock as A, openBlock as h, createBlock as C, unref as v, withCtx as B, Fragment as Y, renderList as me, normalizeClass as X, createElementVNode as oe, toDisplayString as b, createVNode as P, createTextVNode as J, toValue as ye, ref as K, watch as E, createCommentVNode as O, reactive as be, isRef as he, withModifiers as U, mergeProps as Ve, withKeys as Ie, nextTick as Re, resolveDirective as Pe, withDirectives as Ne, resolveDynamicComponent as De, renderSlot as qe, shallowRef as Fe, createSlots as Ue } from "vue";
7
+ import { u as w, C as z, e as Q, p as ce, d as ze } from "../.chunks/forms-BseC3Ftz.es.js";
8
+ import { _ as we, b as ve, a as Je } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js";
9
+ import { a as We, _ as Me, b as Ee, c as $e, I as ue } from "../.chunks/policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js";
10
+ import { u as _e } from "../.chunks/utils-YrUExsH7.es.js";
11
11
  import { getSearcherGIcon as Ye, getLangLabel as Qe, getDeviceGIcon as He } from "../utils/searchers.js";
12
12
  import "../.chunks/core-BL-38XF7.es.js";
13
13
  import "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-DRbTG0vh.es.js";
14
14
  import { g as Se } from "../.chunks/field-CyyFzM-Y.es.js";
15
- import { storage as J } from "../utils/dom.js";
15
+ import { storage as W } from "../utils/dom.js";
16
16
  import { TopPopupWorker as Xe } from "../popup/worker.js";
17
17
  const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" }, Rt = /* @__PURE__ */ R({
18
18
  __name: "competitorSelector",
@@ -26,26 +26,26 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
26
26
  }),
27
27
  emits: ["update:modelValue"],
28
28
  setup(e) {
29
- const a = e, o = T(e, "modelValue"), t = w(() => {
29
+ const a = e, o = T(e, "modelValue"), t = M(() => {
30
30
  if (a.showSelectAllItem)
31
31
  return {
32
32
  icon: "",
33
- title: M().Common.Select_all,
33
+ title: w().Common.Select_all,
34
34
  value: "all",
35
35
  content: ""
36
36
  };
37
37
  });
38
38
  return (r, l) => (h(), A("div", Ze, [
39
- v(_).state.isMobile ? (h(), C(Me, { key: 0 }, {
39
+ v(z).state.isMobile ? (h(), C(we, { key: 0 }, {
40
40
  opener: B(() => [
41
- N(Q, {
41
+ P(Q, {
42
42
  class: "top-competitorSelector_opener",
43
43
  color: "theme",
44
44
  icon: "",
45
45
  icon2: ""
46
46
  }, {
47
47
  default: B(() => [
48
- z(b(e.items.find((n) => n.value === o.value?.[0])?.content), 1)
48
+ J(b(e.items.find((n) => n.value === o.value?.[0])?.content), 1)
49
49
  ]),
50
50
  _: 1
51
51
  })
@@ -66,7 +66,7 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
66
66
  }, 1032, ["class", "data-top-icon", "title", "onClick"]))), 256))
67
67
  ]),
68
68
  _: 1
69
- })) : (h(), C(Je, {
69
+ })) : (h(), C(We, {
70
70
  key: 1,
71
71
  modelValue: o.value,
72
72
  "onUpdate:modelValue": l[0] || (l[0] = (n) => o.value = n),
@@ -78,7 +78,7 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
78
78
  }, null, 8, ["modelValue", "items", "selectAllItem"]))
79
79
  ]));
80
80
  }
81
- }), Nt = (e, a) => w(() => ye(e).filter((r) => r.on >= 0 || r.id === a).map((r) => ({
81
+ }), Pt = (e, a) => M(() => ye(e).filter((r) => r.on >= 0 || r.id === a).map((r) => ({
82
82
  value: r.id,
83
83
  title: r.url + ` [${r.id}]`,
84
84
  icon: r.id === ye(a) ? "" : "",
@@ -119,7 +119,7 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
119
119
  index: le,
120
120
  lang: "ru",
121
121
  name: "Without region"
122
- }, ot = () => (ae.name = M().Common.Autoselect, ae), lt = () => (ot(), se.name = M().Common.Autoselect, console.log(se), se), at = () => (ke.name = M().Keywords.Without_region, ke), Ke = (e = !1, a = !1, o = []) => {
122
+ }, ot = () => (ae.name = w().Common.Autoselect, ae), lt = () => (ot(), se.name = w().Common.Autoselect, console.log(se), se), at = () => (ke.name = w().Keywords.Without_region, ke), Ke = (e = !1, a = !1, o = []) => {
123
123
  let t;
124
124
  return e ? t = nt(o) : t = Oe(o), a && t.set(y, lt()), t.size || t.set(y, Ge), t;
125
125
  }, Oe = (e, a = !0, o = [], t = !1) => {
@@ -166,8 +166,8 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
166
166
  }), r))
167
167
  return !1;
168
168
  }), r;
169
- }, it = We(() => import("../.chunks/dialog_regionSelectorRegions-1UVhgK2f.es.js")), dt = (e, a) => {
170
- const o = M(), t = K(a.value.keys().next().value ?? y), r = w(() => {
169
+ }, it = _e(() => import("../.chunks/dialog_regionSelectorRegions-1UVhgK2f.es.js")), dt = (e, a) => {
170
+ const o = w(), t = K(a.value.keys().next().value ?? y), r = M(() => {
171
171
  const l = /* @__PURE__ */ new Map();
172
172
  if (a.value.forEach((n) => {
173
173
  let u = {
@@ -195,9 +195,9 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
195
195
  optionBySearcherKey: r
196
196
  };
197
197
  }, ut = (e, a) => {
198
- const o = M(), t = K(y);
198
+ const o = w(), t = K(y);
199
199
  e.modelValue.length === 1 && (t.value = e.modelValue[0]), t.value === y && (e.forFrequency ? t.value = a.value?.regionByIndex.values().next().value?.key ?? y : t.value = a.value?.regionByIndex.keys().next().value ?? y);
200
- const r = w(() => {
200
+ const r = M(() => {
201
201
  const l = /* @__PURE__ */ new Map();
202
202
  return a.value.regionByIndex?.forEach((n) => {
203
203
  let u = n.name;
@@ -272,7 +272,7 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
272
272
  regionsIndexes: t
273
273
  };
274
274
  }, ct = (e) => {
275
- const a = w(() => Ke(e.forFrequency, e.autoRegion, e.searchers)), o = w(() => a.value.get(r.searcherKey.value) || Ge), t = w(() => {
275
+ const a = M(() => Ke(e.forFrequency, e.autoRegion, e.searchers)), o = M(() => a.value.get(r.searcherKey.value) || Ge), t = M(() => {
276
276
  const i = /* @__PURE__ */ new Set();
277
277
  return a.value.forEach((m) => {
278
278
  m.regionByIndex.forEach((d) => {
@@ -325,7 +325,7 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
325
325
  return c()?.regionByIndex?.get(i);
326
326
  }
327
327
  };
328
- }, Pt = /* @__PURE__ */ R({
328
+ }, Nt = /* @__PURE__ */ R({
329
329
  __name: "regionSelector",
330
330
  props: /* @__PURE__ */ V({
331
331
  projectId: {},
@@ -395,8 +395,8 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
395
395
  else if (d.length === 1) {
396
396
  let g = c.value;
397
397
  o.forFrequency && (g = /* @__PURE__ */ new Set(), f.value.forEach((Z) => {
398
- Z.regionByIndex.forEach((P) => {
399
- P.index !== le && P.index !== y && g.add(P.key);
398
+ Z.regionByIndex.forEach((N) => {
399
+ N.index !== le && N.index !== y && g.add(N.key);
400
400
  });
401
401
  })), g.has(d[0]) || (d = [], s !== void 0 && d.push(s));
402
402
  } else
@@ -442,7 +442,7 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
442
442
  "top-selectorRegion-onlySearcher": e.onlySearcher
443
443
  })
444
444
  }, [
445
- N(ce, {
445
+ P(ce, {
446
446
  options: v(l).optionBySearcherKey.value,
447
447
  modelValue: v(l).searcherKey.value,
448
448
  "onUpdate:modelValue": s[0] || (s[0] = (g) => v(l).searcherKey.value = g),
@@ -466,7 +466,7 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
466
466
  "data-count-compare-regions-indexes": v(u).regionsIndexes.value.length
467
467
  }, {
468
468
  default: B(() => [
469
- z(b(d.$i18n.Common.Selected_regions), 1)
469
+ J(b(d.$i18n.Common.Selected_regions), 1)
470
470
  ]),
471
471
  _: 1
472
472
  }, 8, ["data-count-compare-regions-indexes"])) : O("", !0)
@@ -478,7 +478,7 @@ const Ze = { class: "top-competitorSelector" }, et = { class: "top-ellipsis1" },
478
478
  path: "/"
479
479
  };
480
480
  function gt(e) {
481
- return e ? M()?.Common.All_folders : "/ (" + M()?.Keywords.Root_folder + ")";
481
+ return e ? w()?.Common.All_folders : "/ (" + w()?.Keywords.Root_folder + ")";
482
482
  }
483
483
  const pe = (e, a, o = /* @__PURE__ */ new Map(), t = { id: "root" }, r = 0) => (t.childsIds = [], t.id && (t.countAllGroupsActive = t.count_groups_active), e[t.id] && e[t.id].forEach((l) => {
484
484
  l = { ...l }, t.childsIds.push(l.id), l.id === 0 && (l.name = gt(a));
@@ -527,7 +527,7 @@ const mt = /* @__PURE__ */ R({
527
527
  checkFingerprint: "TopGroupSelectorFolders:" + a.projectId
528
528
  }), l.value?.resetCache();
529
529
  }, { immediate: !0 });
530
- const n = w(() => pe(a.folders ?? { root: [j] }, a.canSelectAll));
530
+ const n = M(() => pe(a.folders ?? { root: [j] }, a.canSelectAll));
531
531
  return ge({
532
532
  modelFolder: t,
533
533
  modelFolderId: o
@@ -540,7 +540,7 @@ const mt = /* @__PURE__ */ R({
540
540
  }
541
541
  let f = n.value.get(a.folderId);
542
542
  f || (f = j), t.value = f, o.value = f.id;
543
- }, { immediate: !0 }), (u, f) => (h(), C(we, {
543
+ }, { immediate: !0 }), (u, f) => (h(), C(Me, {
544
544
  class: "top-groupSelector_folder",
545
545
  modelValue: t.value,
546
546
  "onUpdate:modelValue": f[0] || (f[0] = (c) => t.value = c),
@@ -563,7 +563,7 @@ const mt = /* @__PURE__ */ R({
563
563
  name: "All groups",
564
564
  folder_id: j.id,
565
565
  folder_path: j.path
566
- }, W = () => (re.name = M()?.Common.All_groups, re), Le = () => (re.name = M()?.Keywords.Choose_group, re), vt = (e, a, o) => (e = [...e], a !== void 0 && (e = e.filter((t) => t.on == Number(a))), o && o.id && o.childsIds && (e = e.filter((t) => t.folder_id === o.id || o.childsIds.includes(t.folder_id))), e), Ce = (e) => e.gen("/get/keywords_2/groups/", ["id", "name", "folder_id", "folder_path"]).changeParams({ folder_id_depth: !0, limit: 100 }), pt = (e) => e.gen("/add/keywords_2/groups/"), yt = { class: "top-groupSelector_groupItem" }, ht = {
566
+ }, _ = () => (re.name = w()?.Common.All_groups, re), Le = () => (re.name = w()?.Keywords.Choose_group, re), vt = (e, a, o) => (e = [...e], a !== void 0 && (e = e.filter((t) => t.on == Number(a))), o && o.id && o.childsIds && (e = e.filter((t) => t.folder_id === o.id || o.childsIds.includes(t.folder_id))), e), Ce = (e) => e.gen("/get/keywords_2/groups/", ["id", "name", "folder_id", "folder_path"]).changeParams({ folder_id_depth: !0, limit: 100 }), pt = (e) => e.gen("/add/keywords_2/groups/"), yt = { class: "top-groupSelector_groupItem" }, ht = {
567
567
  key: 0,
568
568
  class: "top-comment"
569
569
  }, It = {
@@ -582,6 +582,7 @@ const mt = /* @__PURE__ */ R({
582
582
  canSelectAll: { type: [Boolean, String] },
583
583
  autoselect: { default: "first" },
584
584
  addChanger: { type: Boolean, default: !0 },
585
+ showPath: { type: Boolean },
585
586
  addIcon: { type: Boolean, default: !0 },
586
587
  client: {}
587
588
  }, {
@@ -616,7 +617,7 @@ const mt = /* @__PURE__ */ R({
616
617
  o.folder?.id ?? 0
617
618
  ], o.groups && (c.value = vt(o.groups, o.on, o.folder))), f.value?.resetCache(), (d.folderId?.old !== void 0 || d.canSelectAll?.old !== void 0) && r.value !== ue) {
618
619
  let s;
619
- o.autoselect === "first" && (s = c.value?.[0], o.canSelectAll && (s = be(W()))), (o.autoselect === "placeholder" || !s) && (s = Le()), i(s);
620
+ o.autoselect === "first" && (s = c.value?.[0], o.canSelectAll && (s = be(_()))), (o.autoselect === "placeholder" || !s) && (s = Le()), i(s);
620
621
  }
621
622
  }, { immediate: !0 }), ge({
622
623
  modelGroup: l,
@@ -630,7 +631,7 @@ const mt = /* @__PURE__ */ R({
630
631
  if (!(o.canAdd && r.value === ue)) {
631
632
  if (o.groups) {
632
633
  let s = c.value?.find((g) => g.id === r.value);
633
- if (!s && o.canSelectAll && (s = W()), s)
634
+ if (!s && o.canSelectAll && (s = _()), s)
634
635
  i(s);
635
636
  else {
636
637
  const g = c.value?.[0];
@@ -665,7 +666,7 @@ const mt = /* @__PURE__ */ R({
665
666
  }).call();
666
667
  g.result ? (i(g.result), t("addGroup", g.result)) : i(s), f.value?.resetCache(!0);
667
668
  };
668
- return (d, s) => (h(), C(we, {
669
+ return (d, s) => (h(), C(Me, {
669
670
  ref_key: "refSelector",
670
671
  ref: f,
671
672
  class: "top-groupSelector_group",
@@ -677,7 +678,7 @@ const mt = /* @__PURE__ */ R({
677
678
  api: e.groups ? void 0 : v(n),
678
679
  apiSetSearchParams: (...g) => v(Ee)(...g, "name"),
679
680
  appendSearchToResult: !!e.canAdd,
680
- useAllItem: e.canSelectAll ? v(W)().name : !1,
681
+ useAllItem: e.canSelectAll ? v(_)().name : !1,
681
682
  addChanger: e.addChanger,
682
683
  useCache: "",
683
684
  onAppendItem: m
@@ -686,7 +687,7 @@ const mt = /* @__PURE__ */ R({
686
687
  oe("div", yt, [
687
688
  g.id === v(ue) ? (h(), A("div", ht, b(d.$i18n.Common.Add) + ": ", 1)) : O("", !0),
688
689
  oe("span", null, b(g.name), 1),
689
- g.folder_path ? (h(), A("span", It, b(g.folder_path), 1)) : O("", !0)
690
+ g.folder_path && e.showPath ? (h(), A("span", It, b(g.folder_path), 1)) : O("", !0)
690
691
  ])
691
692
  ]),
692
693
  _: 1
@@ -726,7 +727,7 @@ const mt = /* @__PURE__ */ R({
726
727
  const o = e, t = T(e, "folderId"), r = T(e, "folder"), l = T(e, "groupId"), n = T(e, "group"), u = a, f = pe(o.folders ?? { root: [j] }, o.canSelectAllGroups);
727
728
  r.value = f.get(t.value);
728
729
  let c = o.groups?.find((i) => i.id === l.value);
729
- l.value || (c = o.groups?.[0]), o.canSelectAllGroups && !c && (c = W()), o.canSelectAllGroups && !c && (c = W()), (o.autoselect === "placeholder" || !c) && (c = Le()), c ??= ne, n.value = c;
730
+ l.value || (c = o.groups?.[0]), o.canSelectAllGroups && !c && (c = _()), o.canSelectAllGroups && !c && (c = _()), (o.autoselect === "placeholder" || !c) && (c = Le()), c ??= ne, n.value = c;
730
731
  const x = (i) => {
731
732
  let m;
732
733
  o.groups && i && (m = [...o.groups, i]), u("update:groups", m);
@@ -759,10 +760,11 @@ const mt = /* @__PURE__ */ R({
759
760
  canSelectAll: e.canSelectAllGroups,
760
761
  autoselect: e.autoselect,
761
762
  addChanger: e.addChanger,
763
+ showPath: e.showFolders && !!e.folders?.[0],
762
764
  addIcon: e.addIcon,
763
765
  client: e.client,
764
766
  onAddGroup: x
765
- }, null, 8, ["groupId", "group", "projectId", "folder", "groups", "on", "canAdd", "canSelectAll", "autoselect", "addChanger", "addIcon", "client"])) : O("", !0)
767
+ }, null, 8, ["groupId", "group", "projectId", "folder", "groups", "on", "canAdd", "canSelectAll", "autoselect", "addChanger", "showPath", "addIcon", "client"])) : O("", !0)
766
768
  ]));
767
769
  }
768
770
  }), Be = (e) => "-" + e, H = (e) => e[0] === "-" ? e.substring(1) : e, ie = (e, a) => {
@@ -782,16 +784,16 @@ const mt = /* @__PURE__ */ R({
782
784
  filters: e.filters,
783
785
  payload: e.payload
784
786
  };
785
- J(t, "topTagSelectorTarget", n), delete t.dataset.topPopupDisabled, he(e.modelValue) || E(l, () => {
787
+ W(t, "topTagSelectorTarget", n), delete t.dataset.topPopupDisabled, he(e.modelValue) || E(l, () => {
786
788
  e.modelValue = l.value, te(t, e, o);
787
789
  }), t.click();
788
- }, he(e.modelValue) ? E(e.modelValue, () => te(t, e, o)) : J(t, "topTagSelectorRender", (r) => {
790
+ }, he(e.modelValue) ? E(e.modelValue, () => te(t, e, o)) : W(t, "topTagSelectorRender", (r) => {
789
791
  e.modelValue = r;
790
- const l = J(t, "topTagSelectorTarget");
792
+ const l = W(t, "topTagSelectorTarget");
791
793
  l && (l.model.value = r), te(t, e, o);
792
794
  }), te(t, e, o), t;
793
795
  }, Ft = (e, a) => {
794
- J(e, "topTagSelectorRender")?.(a);
796
+ W(e, "topTagSelectorRender")?.(a);
795
797
  }, te = (e, a, o) => {
796
798
  const t = v(a.modelValue);
797
799
  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) {
@@ -802,7 +804,7 @@ const mt = /* @__PURE__ */ R({
802
804
  const r = Te({
803
805
  id: "all",
804
806
  colorId: "",
805
- name: M().Common?.All_tags ?? "",
807
+ name: w().Common?.All_tags ?? "",
806
808
  state: ""
807
809
  });
808
810
  e.append(r);
@@ -908,7 +910,7 @@ const mt = /* @__PURE__ */ R({
908
910
  }),
909
911
  emits: /* @__PURE__ */ V(["update:name", "unselect", "exclude", "select"], ["update:name"]),
910
912
  setup(e, { emit: a }) {
911
- const o = e, t = a, r = T(e, "name"), l = K(null), n = w(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
913
+ const o = e, t = a, r = T(e, "name"), l = K(null), n = M(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
912
914
  contenteditable: u.value,
913
915
  onpaste: (m) => m.preventDefault()
914
916
  } : {}), u = K(!1), f = async () => {
@@ -936,7 +938,7 @@ const mt = /* @__PURE__ */ R({
936
938
  onClick: U(i, ["stop"])
937
939
  }, {
938
940
  default: B(() => [
939
- N(fe, {
941
+ P(fe, {
940
942
  id: e.id,
941
943
  name: r.value,
942
944
  colorId: e.colorId,
@@ -999,10 +1001,10 @@ const mt = /* @__PURE__ */ R({
999
1001
  payload: a.payload
1000
1002
  };
1001
1003
  return (n, u) => {
1002
- const f = Ne("top-data");
1003
- return h(), C(ze, { id: e.id }, {
1004
+ const f = Pe("top-data");
1005
+ return h(), C(Je, { id: e.id }, {
1004
1006
  default: B(() => [
1005
- Pe((h(), C(De(v(t)), Ve({
1007
+ Ne((h(), C(De(v(t)), Ve({
1006
1008
  class: {
1007
1009
  "top-tagSelector": !0,
1008
1010
  "top-tagSelector-useTopButton": a.useTopButton,
@@ -1069,7 +1071,7 @@ const mt = /* @__PURE__ */ R({
1069
1071
  }),
1070
1072
  emits: /* @__PURE__ */ V(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
1071
1073
  setup(e, { emit: a }) {
1072
- const o = M(), t = e, r = T(e, "modelValue"), l = T(e, "tags"), n = a, u = _e((p, I) => {
1074
+ const o = w(), t = e, r = T(e, "modelValue"), l = T(e, "tags"), n = a, u = ze((p, I) => {
1073
1075
  n(p, I);
1074
1076
  }, t.emitDelay);
1075
1077
  t.singleMode && !r.value.length && (r.value = [l.value[0].id]);
@@ -1087,7 +1089,7 @@ const mt = /* @__PURE__ */ R({
1087
1089
  E(r, () => {
1088
1090
  u("selector", r.value);
1089
1091
  });
1090
- const m = w(() => {
1092
+ const m = M(() => {
1091
1093
  if (i.value.mode === "setter" && t.maxTagsForSetter && !i.value.filters)
1092
1094
  return i.value.model.value.length >= t.maxTagsForSetter;
1093
1095
  }), d = (p) => {
@@ -1108,7 +1110,7 @@ const mt = /* @__PURE__ */ R({
1108
1110
  targetId: i.value.targetId,
1109
1111
  payload: i.value.payload
1110
1112
  });
1111
- }, g = w(() => {
1113
+ }, g = M(() => {
1112
1114
  let p = "top-tagSelector_popup";
1113
1115
  return i.value.mode === "filter" && (p += " top-tagSelector_popup-filter"), i.value.mode === "setter" && (p += " top-tagSelector_popup-setter"), p;
1114
1116
  }), Z = () => {
@@ -1120,13 +1122,13 @@ const mt = /* @__PURE__ */ R({
1120
1122
  name: p,
1121
1123
  color_id: String((I - 1) % 10 + 1)
1122
1124
  }), n("tagsChanged", l.value);
1123
- }, P = (p) => {
1124
- if (i.value = J(p.elPopupOpener, "topTagSelectorTarget"), !i.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
1125
- if (i.value.filters && (c.value = "add", i.value.model.value = []), !_.$?.ui.sortable) {
1125
+ }, N = (p) => {
1126
+ if (i.value = W(p.elPopupOpener, "topTagSelectorTarget"), !i.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
1127
+ if (i.value.filters && (c.value = "add", i.value.model.value = []), !z.$?.ui.sortable) {
1126
1128
  console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
1127
1129
  return;
1128
1130
  }
1129
- !_.state.isMobile && !_.state.isMobileUA && l.value && $(p.elPopup).sortable({
1131
+ !z.state.isMobile && !z.state.isMobileUA && l.value && $(p.elPopup).sortable({
1130
1132
  items: 'li:has([data-tag_id]:not([data-tag_id="all"]))',
1131
1133
  /**
1132
1134
  * @todo Удалить `[contenteditable="true"]` через пол года после выхода версии firefox с поддержкой contenteditable plaintext-only, включая бета версии
@@ -1147,10 +1149,10 @@ const mt = /* @__PURE__ */ R({
1147
1149
  }
1148
1150
  });
1149
1151
  }, je = (p) => {
1150
- _.$?.ui.sortable && $(p.elPopup).data("ui-sortable") && $(p.elPopup).sortable("destroy");
1152
+ z.$?.ui.sortable && $(p.elPopup).data("ui-sortable") && $(p.elPopup).sortable("destroy");
1151
1153
  };
1152
1154
  return (p, I) => (h(), A(Y, null, [
1153
- N(At, {
1155
+ P(At, {
1154
1156
  modelValue: r.value,
1155
1157
  "onUpdate:modelValue": I[0] || (I[0] = (S) => r.value = S),
1156
1158
  id: v(f),
@@ -1159,10 +1161,10 @@ const mt = /* @__PURE__ */ R({
1159
1161
  mode: "filter",
1160
1162
  useTopButton: e.useTopButton
1161
1163
  }, null, 8, ["modelValue", "id", "tags", "styling", "useTopButton"]),
1162
- N(Me, {
1164
+ P(we, {
1163
1165
  id: v(f),
1164
1166
  class: X(g.value),
1165
- onOpen: I[4] || (I[4] = (S) => P(S)),
1167
+ onOpen: I[4] || (I[4] = (S) => N(S)),
1166
1168
  onClose: I[5] || (I[5] = (S) => je(S)),
1167
1169
  "transition-duration": 50
1168
1170
  }, Ue({
@@ -1197,7 +1199,7 @@ const mt = /* @__PURE__ */ R({
1197
1199
  onClick: U(Z, ["stop"])
1198
1200
  }, {
1199
1201
  default: B(() => [
1200
- z(b(p.$i18n.Common.Add), 1)
1202
+ J(b(p.$i18n.Common.Add), 1)
1201
1203
  ]),
1202
1204
  _: 1
1203
1205
  })) : O("", !0)
@@ -1207,7 +1209,7 @@ const mt = /* @__PURE__ */ R({
1207
1209
  v(i).mode === "setter" && v(i).filters ? {
1208
1210
  name: "header",
1209
1211
  fn: B(() => [
1210
- N(ce, {
1212
+ P(ce, {
1211
1213
  modelValue: c.value,
1212
1214
  "onUpdate:modelValue": I[1] || (I[1] = (S) => c.value = S),
1213
1215
  options: x()
@@ -1218,13 +1220,13 @@ const mt = /* @__PURE__ */ R({
1218
1220
  v(i).mode === "setter" && v(i).filters ? {
1219
1221
  name: "footer",
1220
1222
  fn: B(() => [
1221
- N(Q, { color: "theme" }, {
1223
+ P(Q, { color: "theme" }, {
1222
1224
  default: B(() => [
1223
- z(b(p.$i18n.Common.Cancel), 1)
1225
+ J(b(p.$i18n.Common.Cancel), 1)
1224
1226
  ]),
1225
1227
  _: 1
1226
1228
  }),
1227
- N(Q, {
1229
+ P(Q, {
1228
1230
  onClick: I[2] || (I[2] = (S) => v(u)("setter", {
1229
1231
  tagsIds: v(i).model.value,
1230
1232
  filters: v(i).filters,
@@ -1233,7 +1235,7 @@ const mt = /* @__PURE__ */ R({
1233
1235
  }))
1234
1236
  }, {
1235
1237
  default: B(() => [
1236
- z(b(c.value === "add" ? p.$i18n.Common.Add : "") + " " + b(c.value === "replace" ? p.$i18n.Common.Replace : "") + " " + b(c.value === "delete" ? p.$i18n.Common.Delete : ""), 1)
1238
+ J(b(c.value === "add" ? p.$i18n.Common.Add : "") + " " + b(c.value === "replace" ? p.$i18n.Common.Replace : "") + " " + b(c.value === "delete" ? p.$i18n.Common.Delete : ""), 1)
1237
1239
  ]),
1238
1240
  _: 1
1239
1241
  })
@@ -1247,7 +1249,7 @@ const mt = /* @__PURE__ */ R({
1247
1249
  export {
1248
1250
  Rt as TopCompetitorSelector,
1249
1251
  Dt as TopGroupSelector,
1250
- Pt as TopRegionSelector,
1252
+ Nt as TopRegionSelector,
1251
1253
  Ut as TopTagSelector,
1252
1254
  At as TopTagSelectorPopupOpener,
1253
1255
  fe as TopTagSelectorTagIcon,
@@ -1256,6 +1258,6 @@ export {
1256
1258
  qt as genElTopTagSelectorPopupOpener,
1257
1259
  Ke as genSearcherByKey,
1258
1260
  Ft as renderElTopTagSelectorPopupOpener,
1259
- Nt as useItemsFromCompetitors
1261
+ Pt as useItemsFromCompetitors
1260
1262
  };
1261
1263
  //# sourceMappingURL=project.js.map