@topvisor/ui 1.4.0-TopGroupSelector.10 → 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
  }, {
@@ -595,10 +596,11 @@ const mt = /* @__PURE__ */ R({
595
596
  const o = e, t = a, r = T(e, "groupId"), l = T(e, "group"), n = o.client && !o.groups ? Ce(o.client) : void 0, u = o.client ? pt(o.client) : void 0, f = K(null), c = K(void 0), x = Se("folder_id", "EQUALS", [o.folder?.id ?? 0]);
596
597
  n?.changeParams({
597
598
  project_id: o.projectId,
599
+ folder_id_depth: !0,
598
600
  filters: [
599
601
  x
600
602
  ]
601
- }), o.on !== void 0 && n?.params.filters?.push(Se("on", "EQUALS", [o.on]));
603
+ }), o.on !== void 0 && n?.params.filters?.push(Se("on", "EQUALS", [Number(o.on)]));
602
604
  const i = (d) => {
603
605
  l.value = d, r.value = d.id;
604
606
  };
@@ -615,7 +617,7 @@ const mt = /* @__PURE__ */ R({
615
617
  o.folder?.id ?? 0
616
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) {
617
619
  let s;
618
- 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);
619
621
  }
620
622
  }, { immediate: !0 }), ge({
621
623
  modelGroup: l,
@@ -629,7 +631,7 @@ const mt = /* @__PURE__ */ R({
629
631
  if (!(o.canAdd && r.value === ue)) {
630
632
  if (o.groups) {
631
633
  let s = c.value?.find((g) => g.id === r.value);
632
- if (!s && o.canSelectAll && (s = W()), s)
634
+ if (!s && o.canSelectAll && (s = _()), s)
633
635
  i(s);
634
636
  else {
635
637
  const g = c.value?.[0];
@@ -664,7 +666,7 @@ const mt = /* @__PURE__ */ R({
664
666
  }).call();
665
667
  g.result ? (i(g.result), t("addGroup", g.result)) : i(s), f.value?.resetCache(!0);
666
668
  };
667
- return (d, s) => (h(), C(we, {
669
+ return (d, s) => (h(), C(Me, {
668
670
  ref_key: "refSelector",
669
671
  ref: f,
670
672
  class: "top-groupSelector_group",
@@ -676,7 +678,7 @@ const mt = /* @__PURE__ */ R({
676
678
  api: e.groups ? void 0 : v(n),
677
679
  apiSetSearchParams: (...g) => v(Ee)(...g, "name"),
678
680
  appendSearchToResult: !!e.canAdd,
679
- useAllItem: e.canSelectAll ? v(W)().name : !1,
681
+ useAllItem: e.canSelectAll ? v(_)().name : !1,
680
682
  addChanger: e.addChanger,
681
683
  useCache: "",
682
684
  onAppendItem: m
@@ -685,7 +687,7 @@ const mt = /* @__PURE__ */ R({
685
687
  oe("div", yt, [
686
688
  g.id === v(ue) ? (h(), A("div", ht, b(d.$i18n.Common.Add) + ": ", 1)) : O("", !0),
687
689
  oe("span", null, b(g.name), 1),
688
- 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)
689
691
  ])
690
692
  ]),
691
693
  _: 1
@@ -725,7 +727,7 @@ const mt = /* @__PURE__ */ R({
725
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);
726
728
  r.value = f.get(t.value);
727
729
  let c = o.groups?.find((i) => i.id === l.value);
728
- 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;
729
731
  const x = (i) => {
730
732
  let m;
731
733
  o.groups && i && (m = [...o.groups, i]), u("update:groups", m);
@@ -758,10 +760,11 @@ const mt = /* @__PURE__ */ R({
758
760
  canSelectAll: e.canSelectAllGroups,
759
761
  autoselect: e.autoselect,
760
762
  addChanger: e.addChanger,
763
+ showPath: e.showFolders && !!e.folders?.[0],
761
764
  addIcon: e.addIcon,
762
765
  client: e.client,
763
766
  onAddGroup: x
764
- }, 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)
765
768
  ]));
766
769
  }
767
770
  }), Be = (e) => "-" + e, H = (e) => e[0] === "-" ? e.substring(1) : e, ie = (e, a) => {
@@ -781,16 +784,16 @@ const mt = /* @__PURE__ */ R({
781
784
  filters: e.filters,
782
785
  payload: e.payload
783
786
  };
784
- 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, () => {
785
788
  e.modelValue = l.value, te(t, e, o);
786
789
  }), t.click();
787
- }, 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) => {
788
791
  e.modelValue = r;
789
- const l = J(t, "topTagSelectorTarget");
792
+ const l = W(t, "topTagSelectorTarget");
790
793
  l && (l.model.value = r), te(t, e, o);
791
794
  }), te(t, e, o), t;
792
795
  }, Ft = (e, a) => {
793
- J(e, "topTagSelectorRender")?.(a);
796
+ W(e, "topTagSelectorRender")?.(a);
794
797
  }, te = (e, a, o) => {
795
798
  const t = v(a.modelValue);
796
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) {
@@ -801,7 +804,7 @@ const mt = /* @__PURE__ */ R({
801
804
  const r = Te({
802
805
  id: "all",
803
806
  colorId: "",
804
- name: M().Common?.All_tags ?? "",
807
+ name: w().Common?.All_tags ?? "",
805
808
  state: ""
806
809
  });
807
810
  e.append(r);
@@ -907,7 +910,7 @@ const mt = /* @__PURE__ */ R({
907
910
  }),
908
911
  emits: /* @__PURE__ */ V(["update:name", "unselect", "exclude", "select"], ["update:name"]),
909
912
  setup(e, { emit: a }) {
910
- 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 ? {
911
914
  contenteditable: u.value,
912
915
  onpaste: (m) => m.preventDefault()
913
916
  } : {}), u = K(!1), f = async () => {
@@ -935,7 +938,7 @@ const mt = /* @__PURE__ */ R({
935
938
  onClick: U(i, ["stop"])
936
939
  }, {
937
940
  default: B(() => [
938
- N(fe, {
941
+ P(fe, {
939
942
  id: e.id,
940
943
  name: r.value,
941
944
  colorId: e.colorId,
@@ -998,10 +1001,10 @@ const mt = /* @__PURE__ */ R({
998
1001
  payload: a.payload
999
1002
  };
1000
1003
  return (n, u) => {
1001
- const f = Ne("top-data");
1002
- return h(), C(ze, { id: e.id }, {
1004
+ const f = Pe("top-data");
1005
+ return h(), C(Je, { id: e.id }, {
1003
1006
  default: B(() => [
1004
- Pe((h(), C(De(v(t)), Ve({
1007
+ Ne((h(), C(De(v(t)), Ve({
1005
1008
  class: {
1006
1009
  "top-tagSelector": !0,
1007
1010
  "top-tagSelector-useTopButton": a.useTopButton,
@@ -1068,7 +1071,7 @@ const mt = /* @__PURE__ */ R({
1068
1071
  }),
1069
1072
  emits: /* @__PURE__ */ V(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
1070
1073
  setup(e, { emit: a }) {
1071
- 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) => {
1072
1075
  n(p, I);
1073
1076
  }, t.emitDelay);
1074
1077
  t.singleMode && !r.value.length && (r.value = [l.value[0].id]);
@@ -1086,7 +1089,7 @@ const mt = /* @__PURE__ */ R({
1086
1089
  E(r, () => {
1087
1090
  u("selector", r.value);
1088
1091
  });
1089
- const m = w(() => {
1092
+ const m = M(() => {
1090
1093
  if (i.value.mode === "setter" && t.maxTagsForSetter && !i.value.filters)
1091
1094
  return i.value.model.value.length >= t.maxTagsForSetter;
1092
1095
  }), d = (p) => {
@@ -1107,7 +1110,7 @@ const mt = /* @__PURE__ */ R({
1107
1110
  targetId: i.value.targetId,
1108
1111
  payload: i.value.payload
1109
1112
  });
1110
- }, g = w(() => {
1113
+ }, g = M(() => {
1111
1114
  let p = "top-tagSelector_popup";
1112
1115
  return i.value.mode === "filter" && (p += " top-tagSelector_popup-filter"), i.value.mode === "setter" && (p += " top-tagSelector_popup-setter"), p;
1113
1116
  }), Z = () => {
@@ -1119,13 +1122,13 @@ const mt = /* @__PURE__ */ R({
1119
1122
  name: p,
1120
1123
  color_id: String((I - 1) % 10 + 1)
1121
1124
  }), n("tagsChanged", l.value);
1122
- }, P = (p) => {
1123
- if (i.value = J(p.elPopupOpener, "topTagSelectorTarget"), !i.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
1124
- 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) {
1125
1128
  console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
1126
1129
  return;
1127
1130
  }
1128
- !_.state.isMobile && !_.state.isMobileUA && l.value && $(p.elPopup).sortable({
1131
+ !z.state.isMobile && !z.state.isMobileUA && l.value && $(p.elPopup).sortable({
1129
1132
  items: 'li:has([data-tag_id]:not([data-tag_id="all"]))',
1130
1133
  /**
1131
1134
  * @todo Удалить `[contenteditable="true"]` через пол года после выхода версии firefox с поддержкой contenteditable plaintext-only, включая бета версии
@@ -1146,10 +1149,10 @@ const mt = /* @__PURE__ */ R({
1146
1149
  }
1147
1150
  });
1148
1151
  }, je = (p) => {
1149
- _.$?.ui.sortable && $(p.elPopup).data("ui-sortable") && $(p.elPopup).sortable("destroy");
1152
+ z.$?.ui.sortable && $(p.elPopup).data("ui-sortable") && $(p.elPopup).sortable("destroy");
1150
1153
  };
1151
1154
  return (p, I) => (h(), A(Y, null, [
1152
- N(At, {
1155
+ P(At, {
1153
1156
  modelValue: r.value,
1154
1157
  "onUpdate:modelValue": I[0] || (I[0] = (S) => r.value = S),
1155
1158
  id: v(f),
@@ -1158,10 +1161,10 @@ const mt = /* @__PURE__ */ R({
1158
1161
  mode: "filter",
1159
1162
  useTopButton: e.useTopButton
1160
1163
  }, null, 8, ["modelValue", "id", "tags", "styling", "useTopButton"]),
1161
- N(Me, {
1164
+ P(we, {
1162
1165
  id: v(f),
1163
1166
  class: X(g.value),
1164
- onOpen: I[4] || (I[4] = (S) => P(S)),
1167
+ onOpen: I[4] || (I[4] = (S) => N(S)),
1165
1168
  onClose: I[5] || (I[5] = (S) => je(S)),
1166
1169
  "transition-duration": 50
1167
1170
  }, Ue({
@@ -1196,7 +1199,7 @@ const mt = /* @__PURE__ */ R({
1196
1199
  onClick: U(Z, ["stop"])
1197
1200
  }, {
1198
1201
  default: B(() => [
1199
- z(b(p.$i18n.Common.Add), 1)
1202
+ J(b(p.$i18n.Common.Add), 1)
1200
1203
  ]),
1201
1204
  _: 1
1202
1205
  })) : O("", !0)
@@ -1206,7 +1209,7 @@ const mt = /* @__PURE__ */ R({
1206
1209
  v(i).mode === "setter" && v(i).filters ? {
1207
1210
  name: "header",
1208
1211
  fn: B(() => [
1209
- N(ce, {
1212
+ P(ce, {
1210
1213
  modelValue: c.value,
1211
1214
  "onUpdate:modelValue": I[1] || (I[1] = (S) => c.value = S),
1212
1215
  options: x()
@@ -1217,13 +1220,13 @@ const mt = /* @__PURE__ */ R({
1217
1220
  v(i).mode === "setter" && v(i).filters ? {
1218
1221
  name: "footer",
1219
1222
  fn: B(() => [
1220
- N(Q, { color: "theme" }, {
1223
+ P(Q, { color: "theme" }, {
1221
1224
  default: B(() => [
1222
- z(b(p.$i18n.Common.Cancel), 1)
1225
+ J(b(p.$i18n.Common.Cancel), 1)
1223
1226
  ]),
1224
1227
  _: 1
1225
1228
  }),
1226
- N(Q, {
1229
+ P(Q, {
1227
1230
  onClick: I[2] || (I[2] = (S) => v(u)("setter", {
1228
1231
  tagsIds: v(i).model.value,
1229
1232
  filters: v(i).filters,
@@ -1232,7 +1235,7 @@ const mt = /* @__PURE__ */ R({
1232
1235
  }))
1233
1236
  }, {
1234
1237
  default: B(() => [
1235
- 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)
1236
1239
  ]),
1237
1240
  _: 1
1238
1241
  })
@@ -1246,7 +1249,7 @@ const mt = /* @__PURE__ */ R({
1246
1249
  export {
1247
1250
  Rt as TopCompetitorSelector,
1248
1251
  Dt as TopGroupSelector,
1249
- Pt as TopRegionSelector,
1252
+ Nt as TopRegionSelector,
1250
1253
  Ut as TopTagSelector,
1251
1254
  At as TopTagSelectorPopupOpener,
1252
1255
  fe as TopTagSelectorTagIcon,
@@ -1255,6 +1258,6 @@ export {
1255
1258
  qt as genElTopTagSelectorPopupOpener,
1256
1259
  Ke as genSearcherByKey,
1257
1260
  Ft as renderElTopTagSelectorPopupOpener,
1258
- Nt as useItemsFromCompetitors
1261
+ Pt as useItemsFromCompetitors
1259
1262
  };
1260
1263
  //# sourceMappingURL=project.js.map