@topvisor/ui 1.0.25 → 1.0.26-0
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.
- package/.chunks/{core-VAPdmxul.amd.js → core-B9imztzR.amd.js} +2 -2
- package/.chunks/{core-VAPdmxul.amd.js.map → core-B9imztzR.amd.js.map} +1 -1
- package/.chunks/{core-Dxu5q2pq.es.js → core-Bcq6idRz.es.js} +4 -4
- package/.chunks/{core-Dxu5q2pq.es.js.map → core-Bcq6idRz.es.js.map} +1 -1
- package/.chunks/{datepicker-B8BEVYYv.es.js → datepicker-DPc8qQ_Y.es.js} +2 -2
- package/.chunks/{datepicker-B8BEVYYv.es.js.map → datepicker-DPc8qQ_Y.es.js.map} +1 -1
- package/.chunks/{datepicker-np32OBIB.amd.js → datepicker-NsthdPQ1.amd.js} +2 -2
- package/.chunks/{datepicker-np32OBIB.amd.js.map → datepicker-NsthdPQ1.amd.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-vtydbe7k.amd.js → dialog_selectorRegions-BOPta9cH.amd.js} +2 -2
- package/.chunks/{dialog_selectorRegions-vtydbe7k.amd.js.map → dialog_selectorRegions-BOPta9cH.amd.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-eupaC53Q.es.js → dialog_selectorRegions-Dy0AlECS.es.js} +3 -3
- package/.chunks/{dialog_selectorRegions-eupaC53Q.es.js.map → dialog_selectorRegions-Dy0AlECS.es.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-BEjw0nsH.es.js → dialogs.vue_vue_type_script_setup_true_lang-BLGKFF8Y.es.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-BEjw0nsH.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-BLGKFF8Y.es.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CKz2r_HQ.amd.js → dialogs.vue_vue_type_script_setup_true_lang-vT5jI1Ll.amd.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CKz2r_HQ.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-vT5jI1Ll.amd.js.map} +1 -1
- package/.chunks/{forms-B4wnA2qg.amd.js → forms-B3bJpLOo.amd.js} +3 -3
- package/.chunks/{forms-B4wnA2qg.amd.js.map → forms-B3bJpLOo.amd.js.map} +1 -1
- package/.chunks/{forms-BEOYaG5x.es.js → forms-BEMrEl5V.es.js} +8 -7
- package/.chunks/{forms-BEOYaG5x.es.js.map → forms-BEMrEl5V.es.js.map} +1 -1
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Yoht7Zz1.amd.js → listItem.vue_vue_type_script_setup_true_lang-DLF_Qnj6.amd.js} +2 -2
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Yoht7Zz1.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-DLF_Qnj6.amd.js.map} +1 -1
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BzHSHzgd.es.js → listItem.vue_vue_type_script_setup_true_lang-DMQVN3dP.es.js} +2 -2
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BzHSHzgd.es.js.map → listItem.vue_vue_type_script_setup_true_lang-DMQVN3dP.es.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-D38vuK6Z.es.js → menu.vue_vue_type_style_index_0_lang-DzNVeeZl.es.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-D38vuK6Z.es.js.map → menu.vue_vue_type_style_index_0_lang-DzNVeeZl.es.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DpQWqw0S.amd.js → menu.vue_vue_type_style_index_0_lang-VpwRSIdl.amd.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DpQWqw0S.amd.js.map → menu.vue_vue_type_style_index_0_lang-VpwRSIdl.amd.js.map} +1 -1
- package/.chunks/{notice-BFubg4q7.es.js → notice-CTntRScY.es.js} +2 -2
- package/.chunks/{notice-BFubg4q7.es.js.map → notice-CTntRScY.es.js.map} +1 -1
- package/.chunks/{notice-BMEqHHl7.amd.js → notice-DMnioYtH.amd.js} +2 -2
- package/.chunks/{notice-BMEqHHl7.amd.js.map → notice-DMnioYtH.amd.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DOfSX4G2.amd.js → page.vue_vue_type_script_setup_true_lang-BI9HWAyQ.amd.js} +2 -2
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DOfSX4G2.amd.js.map → page.vue_vue_type_script_setup_true_lang-BI9HWAyQ.amd.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DkVrf3fD.es.js → page.vue_vue_type_script_setup_true_lang-CCE8pKg7.es.js} +4 -4
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DkVrf3fD.es.js.map → page.vue_vue_type_script_setup_true_lang-CCE8pKg7.es.js.map} +1 -1
- package/.chunks/{popup-RsYK2WNs.amd.js → popup-BnyVyxQA.amd.js} +2 -2
- package/.chunks/{popup-RsYK2WNs.amd.js.map → popup-BnyVyxQA.amd.js.map} +1 -1
- package/.chunks/{popup-KzrqppGt.es.js → popup-INaxGjMc.es.js} +2 -2
- package/.chunks/{popup-KzrqppGt.es.js.map → popup-INaxGjMc.es.js.map} +1 -1
- package/.chunks/{utils-CwjZqLi4.amd.js → utils-Bi5onrSF.amd.js} +2 -2
- package/.chunks/{utils-CwjZqLi4.amd.js.map → utils-Bi5onrSF.amd.js.map} +1 -1
- package/.chunks/{utils-C-3nlmxS.amd.js → utils-CTjq0RlC.amd.js} +2 -2
- package/.chunks/{utils-C-3nlmxS.amd.js.map → utils-CTjq0RlC.amd.js.map} +1 -1
- package/.chunks/{utils-DkTeAU_D.es.js → utils-D4KXBloN.es.js} +3 -3
- package/.chunks/{utils-DkTeAU_D.es.js.map → utils-D4KXBloN.es.js.map} +1 -1
- package/.chunks/{utils-Lh80NiyA.es.js → utils-DIly8mml.es.js} +2 -2
- package/.chunks/{utils-Lh80NiyA.es.js.map → utils-DIly8mml.es.js.map} +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.js +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.js +5 -5
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.js +2 -2
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.js +2 -2
- package/layout/layout.amd.js +1 -1
- package/layout/layout.js +1 -1
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.js +2 -2
- package/popup/worker.amd.js +1 -1
- package/popup/worker.js +2 -2
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +66 -66
- package/project/project.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.js +1 -1
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.js +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.js +3 -3
- package/utils/string.amd.js +1 -1
- package/utils/string.js +1 -1
package/project/project.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Core as be } from "../core/app.js";
|
|
2
|
-
import { defineComponent as P, mergeModels as N, useModel as D, computed as E, createElementBlock as B, openBlock as k, createBlock as b, unref as y, withCtx as _, Fragment as Y, renderList as
|
|
3
|
-
import { u as R, C as
|
|
4
|
-
import { _ as Ie, a as
|
|
5
|
-
import { _ as Ne } from "../.chunks/menu.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { u as De } from "../.chunks/utils-
|
|
2
|
+
import { defineComponent as P, mergeModels as N, useModel as D, computed as E, createElementBlock as B, openBlock as k, createBlock as b, unref as y, withCtx as _, Fragment as Y, renderList as se, normalizeClass as X, createElementVNode as he, toDisplayString as K, createVNode as A, createTextVNode as G, ref as F, watch as w, createCommentVNode as q, withModifiers as z, mergeProps as Se, withKeys as ue, nextTick as Ve, resolveDirective as Ee, withDirectives as Me, resolveDynamicComponent as Ke, renderSlot as $e, shallowRef as we, createSlots as Le, reactive as Ae, toValue as ce, isRef as ge } from "vue";
|
|
3
|
+
import { u as R, C as J, _ as H, x as ie, d as Re } from "../.chunks/forms-BEMrEl5V.es.js";
|
|
4
|
+
import { _ as Ie, a as de, b as Oe } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-DMQVN3dP.es.js";
|
|
5
|
+
import { _ as Ne } from "../.chunks/menu.vue_vue_type_style_index_0_lang-DzNVeeZl.es.js";
|
|
6
|
+
import { u as De } from "../.chunks/utils-DIly8mml.es.js";
|
|
7
7
|
import { getSearcherGIcon as Fe, getLangLabel as qe, getDeviceGIcon as Pe } from "../utils/searchers.js";
|
|
8
8
|
import { storage as W } from "../utils/dom.js";
|
|
9
9
|
import { TopPopupWorker as Ue } from "../popup/worker.js";
|
|
10
10
|
const Be = ["../assets/project.css"].map((t) => import.meta.resolve(t));
|
|
11
11
|
be.insertCSSLinkToPage(Be, !0);
|
|
12
|
-
const je = { class: "top-selectorCompetitors" },
|
|
12
|
+
const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }, Je = /* @__PURE__ */ P({
|
|
13
13
|
__name: "selectorCompetitors",
|
|
14
14
|
props: /* @__PURE__ */ N({
|
|
15
15
|
modelValue: {},
|
|
@@ -31,7 +31,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
31
31
|
};
|
|
32
32
|
});
|
|
33
33
|
return (i, a) => (k(), B("div", je, [
|
|
34
|
-
y(
|
|
34
|
+
y(J).state.isMobile ? (k(), b(Ie, { key: 0 }, {
|
|
35
35
|
opener: _(() => [
|
|
36
36
|
A(H, {
|
|
37
37
|
class: "top-selectorCompetitors_opener",
|
|
@@ -42,7 +42,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
42
42
|
default: _(() => {
|
|
43
43
|
var o;
|
|
44
44
|
return [
|
|
45
|
-
G(
|
|
45
|
+
G(K((o = i.items.find((d) => {
|
|
46
46
|
var m;
|
|
47
47
|
return d.value === ((m = n.value) == null ? void 0 : m[0]);
|
|
48
48
|
})) == null ? void 0 : o.content), 1)
|
|
@@ -52,9 +52,9 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
52
52
|
})
|
|
53
53
|
]),
|
|
54
54
|
contentList: _(() => [
|
|
55
|
-
(k(!0), B(Y, null,
|
|
55
|
+
(k(!0), B(Y, null, se(i.items, (o, d) => {
|
|
56
56
|
var m;
|
|
57
|
-
return k(), b(
|
|
57
|
+
return k(), b(de, {
|
|
58
58
|
class: X({
|
|
59
59
|
"top-active": (m = n.value) == null ? void 0 : m.includes(o.value)
|
|
60
60
|
}),
|
|
@@ -63,7 +63,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
63
63
|
onClick: () => n.value = [o.value]
|
|
64
64
|
}, {
|
|
65
65
|
default: _(() => [
|
|
66
|
-
he("span",
|
|
66
|
+
he("span", ze, K(o.content), 1)
|
|
67
67
|
]),
|
|
68
68
|
_: 2
|
|
69
69
|
}, 1032, ["class", "data-top-icon", "title", "onClick"]);
|
|
@@ -82,7 +82,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
82
82
|
}, null, 8, ["modelValue", "items", "selectAllItem"]))
|
|
83
83
|
]));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), M = -1, p = -2, te = -1, Ge = {
|
|
86
86
|
0: "Yandex",
|
|
87
87
|
1: "Google",
|
|
88
88
|
4: "YouTube",
|
|
@@ -92,24 +92,24 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
92
92
|
9: "GoogleStore",
|
|
93
93
|
20: "Yandex.com",
|
|
94
94
|
21: "Yandex.com.tr"
|
|
95
|
-
},
|
|
95
|
+
}, me = {
|
|
96
96
|
key: p,
|
|
97
97
|
name: "--",
|
|
98
98
|
index: p
|
|
99
99
|
}, xe = {
|
|
100
100
|
key: p,
|
|
101
101
|
name: "--",
|
|
102
|
-
regions: [
|
|
103
|
-
regionByIndex: /* @__PURE__ */ new Map([[p,
|
|
104
|
-
},
|
|
102
|
+
regions: [me],
|
|
103
|
+
regionByIndex: /* @__PURE__ */ new Map([[p, me]])
|
|
104
|
+
}, ae = {
|
|
105
105
|
key: p,
|
|
106
106
|
name: "Autoselect",
|
|
107
107
|
index: p
|
|
108
|
-
},
|
|
108
|
+
}, re = {
|
|
109
109
|
key: p,
|
|
110
110
|
name: "Autoselect",
|
|
111
|
-
regions: [
|
|
112
|
-
regionByIndex: /* @__PURE__ */ new Map([[p,
|
|
111
|
+
regions: [ae],
|
|
112
|
+
regionByIndex: /* @__PURE__ */ new Map([[p, ae]])
|
|
113
113
|
}, fe = {
|
|
114
114
|
countryCode: "00",
|
|
115
115
|
depth: 1,
|
|
@@ -118,7 +118,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
118
118
|
index: te,
|
|
119
119
|
lang: "ru",
|
|
120
120
|
name: "Without region"
|
|
121
|
-
}, We = () => (
|
|
121
|
+
}, We = () => (ae.name = R().Common.Autoselect, ae), Ye = () => (We(), re.name = R().Common.Autoselect, console.log(re), re), He = () => (fe.name = R().Keywords.Without_region, fe), ke = (t = !1, l = !1, n = []) => {
|
|
122
122
|
let e;
|
|
123
123
|
return t ? e = Qe(n) : e = Ce(n), l && e.set(p, Ye()), e.size || e.set(p, xe), e;
|
|
124
124
|
}, Ce = (t, l = !0, n = [], e = !1) => {
|
|
@@ -130,7 +130,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
130
130
|
if (l && !d.enabled) return;
|
|
131
131
|
const m = { ...d };
|
|
132
132
|
o.regionByIndex.set(m.index, m);
|
|
133
|
-
}), !o.regionByIndex.size &&
|
|
133
|
+
}), !o.regionByIndex.size && n.length, (o.regionByIndex.size || n.length) && typeof o.key == "number" && i.set(o.key, o);
|
|
134
134
|
}), n.forEach((a) => {
|
|
135
135
|
if (i.has(a)) return;
|
|
136
136
|
const o = {
|
|
@@ -162,7 +162,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
162
162
|
}), i))
|
|
163
163
|
return !1;
|
|
164
164
|
}), i;
|
|
165
|
-
}, Ze = De(() => import("../.chunks/dialog_selectorRegions-
|
|
165
|
+
}, Ze = De(() => import("../.chunks/dialog_selectorRegions-Dy0AlECS.es.js")), et = (t, l) => {
|
|
166
166
|
const n = R(), e = F(l.value.keys().next().value ?? p), i = E(() => {
|
|
167
167
|
const a = /* @__PURE__ */ new Map();
|
|
168
168
|
if (l.value.forEach((o) => {
|
|
@@ -179,7 +179,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
179
179
|
};
|
|
180
180
|
a.set(o.value, o);
|
|
181
181
|
const d = {
|
|
182
|
-
value:
|
|
182
|
+
value: M,
|
|
183
183
|
title: n.Common.Compare
|
|
184
184
|
};
|
|
185
185
|
a.set(d.value, d);
|
|
@@ -281,7 +281,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
281
281
|
}), i = et(t, l), a = tt(t, n), o = at(t, l, e);
|
|
282
282
|
w(l, () => {
|
|
283
283
|
var g, u, x, T;
|
|
284
|
-
if (t.onlySearcher ? o.regionsIndexes.value = Array.from(l.value.keys()) : o.regionsIndexes.value = o.regionsIndexes.value.filter((C) => e.value.has(C)), i.searcherKey.value ===
|
|
284
|
+
if (t.onlySearcher ? o.regionsIndexes.value = Array.from(l.value.keys()) : o.regionsIndexes.value = o.regionsIndexes.value.filter((C) => e.value.has(C)), i.searcherKey.value === M) return;
|
|
285
285
|
let r = l.value.keys().next().value;
|
|
286
286
|
l.value.forEach((C) => {
|
|
287
287
|
var V, f, s;
|
|
@@ -298,7 +298,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
298
298
|
}), r !== void 0 && (i.searcherKey.value = r), a.regionIndex.value !== void 0 && !((u = (g = n.value) == null ? void 0 : g.regionByIndex) != null && u.has(a.regionIndex.value)) && (a.regionIndex.value = (T = (x = n.value) == null ? void 0 : x.regions) == null ? void 0 : T.keys().next().value);
|
|
299
299
|
}, { immediate: !0 });
|
|
300
300
|
const d = () => {
|
|
301
|
-
if (!(i.searcherKey.value ===
|
|
301
|
+
if (!(i.searcherKey.value === M || i.searcherKey.value === p))
|
|
302
302
|
return i.searcherKey.value;
|
|
303
303
|
}, m = () => {
|
|
304
304
|
if (t.onlySearcher || a.regionIndex.value === p) return;
|
|
@@ -370,7 +370,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
370
370
|
});
|
|
371
371
|
};
|
|
372
372
|
return w([o.regionIndex, a.searcherKey, d.regionsIndexes], () => {
|
|
373
|
-
if (a.searcherKey.value ===
|
|
373
|
+
if (a.searcherKey.value === M && d.regionsIndexes.value.length) {
|
|
374
374
|
if (JSON.stringify(e.value) === JSON.stringify(d.regionsIndexes.value))
|
|
375
375
|
return;
|
|
376
376
|
e.value = [...d.regionsIndexes.value];
|
|
@@ -415,12 +415,12 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
415
415
|
a.searcherKey.value = e.value[0];
|
|
416
416
|
return;
|
|
417
417
|
}
|
|
418
|
-
a.searcherKey.value =
|
|
418
|
+
a.searcherKey.value = M;
|
|
419
419
|
return;
|
|
420
420
|
} else {
|
|
421
421
|
if (!e.value.length)
|
|
422
422
|
return;
|
|
423
|
-
if (e.value.length === 1 && a.searcherKey.value !==
|
|
423
|
+
if (e.value.length === 1 && a.searcherKey.value !== M) {
|
|
424
424
|
o.regionIndex.value = e.value[0];
|
|
425
425
|
let f;
|
|
426
426
|
for (const s of m.value.values()) {
|
|
@@ -434,7 +434,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
434
434
|
}
|
|
435
435
|
f !== void 0 && (a.searcherKey.value = f);
|
|
436
436
|
} else
|
|
437
|
-
a.searcherKey.value =
|
|
437
|
+
a.searcherKey.value = M, d.regionsIndexes.value = [...e.value];
|
|
438
438
|
}
|
|
439
439
|
}, { immediate: !0 }), l({
|
|
440
440
|
getSearcher: S,
|
|
@@ -445,14 +445,14 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
445
445
|
"top-selectorRegion-onlySearcher": u.onlySearcher
|
|
446
446
|
})
|
|
447
447
|
}, [
|
|
448
|
-
A(
|
|
448
|
+
A(ie, {
|
|
449
449
|
options: y(a).optionBySearcherKey.value,
|
|
450
450
|
modelValue: y(a).searcherKey.value,
|
|
451
451
|
"onUpdate:modelValue": x[0] || (x[0] = (T) => y(a).searcherKey.value = T),
|
|
452
452
|
name: "searcher_key",
|
|
453
453
|
addChanger: u.addChanger
|
|
454
454
|
}, null, 8, ["options", "modelValue", "addChanger"]),
|
|
455
|
-
!u.onlySearcher && y(a).searcherKey.value !== y(
|
|
455
|
+
!u.onlySearcher && y(a).searcherKey.value !== y(M) ? (k(), b(ie, {
|
|
456
456
|
key: 0,
|
|
457
457
|
class: "top-select-region",
|
|
458
458
|
options: y(o).optionByRegionIndex.value,
|
|
@@ -462,14 +462,14 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
462
462
|
addChanger: u.addChanger,
|
|
463
463
|
"data-top-icon": u.addRegionIcon ? "" : void 0
|
|
464
464
|
}, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) : q("", !0),
|
|
465
|
-
u.addCompare && !u.onlySearcher && y(a).searcherKey.value === y(
|
|
465
|
+
u.addCompare && !u.onlySearcher && y(a).searcherKey.value === y(M) ? (k(), b(H, {
|
|
466
466
|
key: 1,
|
|
467
467
|
name: "compare",
|
|
468
468
|
onClick: g,
|
|
469
469
|
"data-count-compare-regions-indexes": y(d).regionsIndexes.value.length
|
|
470
470
|
}, {
|
|
471
471
|
default: _(() => [
|
|
472
|
-
G(
|
|
472
|
+
G(K(u.$i18n.Common.Selected_regions), 1)
|
|
473
473
|
]),
|
|
474
474
|
_: 1
|
|
475
475
|
}, 8, ["data-count-compare-regions-indexes"])) : q("", !0)
|
|
@@ -526,12 +526,12 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
526
526
|
name: "Turquoise",
|
|
527
527
|
color_id: "10"
|
|
528
528
|
}
|
|
529
|
-
], ve = (t) => "-" + t, Q = (t) => t[0] === "-" ? t.substring(1) : t,
|
|
529
|
+
], ve = (t) => "-" + t, Q = (t) => t[0] === "-" ? t.substring(1) : t, le = (t, l) => {
|
|
530
530
|
t = Q(t);
|
|
531
531
|
const n = l.find((e) => e.id === t);
|
|
532
532
|
if (n)
|
|
533
533
|
return n;
|
|
534
|
-
}, rt = ["data-tag_id", "data-tag_color_id", "title"],
|
|
534
|
+
}, rt = ["data-tag_id", "data-tag_color_id", "title"], oe = /* @__PURE__ */ P({
|
|
535
535
|
__name: "tagIcon",
|
|
536
536
|
props: {
|
|
537
537
|
id: {},
|
|
@@ -587,7 +587,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
587
587
|
let u = "selected";
|
|
588
588
|
n.canExclude && (g.ctrlKey || g.metaKey) && (u = "excluded"), n.state == u && (u = ""), u === "" && e("unselect"), u === "selected" && e("select"), u === "excluded" && e("exclude");
|
|
589
589
|
};
|
|
590
|
-
return (g, u) => (k(), b(
|
|
590
|
+
return (g, u) => (k(), b(de, {
|
|
591
591
|
class: X({
|
|
592
592
|
"top-tagSelector_tagListItem": !0,
|
|
593
593
|
"top-tagSelector_tagListItem-inEdit": d.value,
|
|
@@ -596,10 +596,10 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
596
596
|
"top-tagSelector-active": !!g.state,
|
|
597
597
|
"top-tagSelector-excluded": g.state === "excluded"
|
|
598
598
|
}),
|
|
599
|
-
onClick:
|
|
599
|
+
onClick: z(r, ["stop"])
|
|
600
600
|
}, {
|
|
601
601
|
default: _(() => [
|
|
602
|
-
A(
|
|
602
|
+
A(oe, {
|
|
603
603
|
id: g.id,
|
|
604
604
|
name: i.value,
|
|
605
605
|
colorId: g.colorId,
|
|
@@ -612,16 +612,16 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
612
612
|
contenteditable: d.value ? "plaintext-only" : !1
|
|
613
613
|
}, o.value, {
|
|
614
614
|
onKeydown: [
|
|
615
|
-
|
|
616
|
-
|
|
615
|
+
ue(z(h, ["stop"]), ["enter"]),
|
|
616
|
+
ue(z(S, ["stop"]), ["esc"])
|
|
617
617
|
]
|
|
618
|
-
}),
|
|
618
|
+
}), K(i.value), 17, it),
|
|
619
619
|
g.editable ? (k(), B(Y, { key: 0 }, [
|
|
620
620
|
d.value ? (k(), B("span", {
|
|
621
621
|
key: 1,
|
|
622
622
|
"data-top-icon": "",
|
|
623
623
|
class: "top-tagSelector_edit",
|
|
624
|
-
onClick:
|
|
624
|
+
onClick: z(h, ["stop"])
|
|
625
625
|
})) : (k(), B("span", {
|
|
626
626
|
key: 0,
|
|
627
627
|
"data-top-icon": "",
|
|
@@ -664,7 +664,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
664
664
|
const m = Ee("top-data");
|
|
665
665
|
return k(), b(Oe, { id: o.id }, {
|
|
666
666
|
default: _(() => [
|
|
667
|
-
|
|
667
|
+
Me((k(), b(Ke(y(e)), Se({
|
|
668
668
|
class: {
|
|
669
669
|
"top-tagSelector": !0,
|
|
670
670
|
"top-tagSelector-filter": l.mode === "filter",
|
|
@@ -677,7 +677,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
677
677
|
styling: ""
|
|
678
678
|
}, o.$attrs), {
|
|
679
679
|
[y(i)]: _(() => [
|
|
680
|
-
!n.value.length && o.mode === "filter" ? (k(), b(
|
|
680
|
+
!n.value.length && o.mode === "filter" ? (k(), b(oe, {
|
|
681
681
|
key: 0,
|
|
682
682
|
id: "all",
|
|
683
683
|
colorId: "",
|
|
@@ -686,12 +686,12 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
686
686
|
}, null, 8, ["name"])) : q("", !0),
|
|
687
687
|
o.mode === "setter" && o.filters ? (k(), B("div", st, [
|
|
688
688
|
$e(o.$slots, "default")
|
|
689
|
-
])) : (k(!0), B(Y, { key: 2 },
|
|
689
|
+
])) : (k(!0), B(Y, { key: 2 }, se(n.value, (h) => {
|
|
690
690
|
var S, r;
|
|
691
|
-
return k(), b(
|
|
691
|
+
return k(), b(oe, {
|
|
692
692
|
id: y(Q)(h),
|
|
693
|
-
colorId: ((S = y(
|
|
694
|
-
name: ((r = y(
|
|
693
|
+
colorId: ((S = y(le)(h, o.tags)) == null ? void 0 : S.color_id) ?? "",
|
|
694
|
+
name: ((r = y(le)(h, o.tags)) == null ? void 0 : r.name) ?? "",
|
|
695
695
|
state: y(Q)(h) === h ? "selected" : "excluded"
|
|
696
696
|
}, null, 8, ["id", "colorId", "name", "state"]);
|
|
697
697
|
}), 256))
|
|
@@ -784,11 +784,11 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
784
784
|
}, V = (s) => {
|
|
785
785
|
var c;
|
|
786
786
|
if (r.value = W(s.elPopupOpener, "topTagSelectorTarget"), !r.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
|
|
787
|
-
if (r.value.filters && (h.value = "add", r.value.model.value = []), !((c =
|
|
787
|
+
if (r.value.filters && (h.value = "add", r.value.model.value = []), !((c = J.$) != null && c.ui.sortable)) {
|
|
788
788
|
console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
|
|
789
789
|
return;
|
|
790
790
|
}
|
|
791
|
-
!
|
|
791
|
+
!J.state.isMobile && !J.state.isMobileUA && a.value && $(s.elPopup).sortable({
|
|
792
792
|
items: 'li:has([data-tag_id]:not([data-tag_id="all"]))',
|
|
793
793
|
/**
|
|
794
794
|
* @todo Удалить `[contenteditable="true"]` через пол года после выхода версии firefox с поддержкой contenteditable plaintext-only, включая бета версии
|
|
@@ -803,14 +803,14 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
803
803
|
const O = $(j).attr("data-tag_id");
|
|
804
804
|
U.push(O);
|
|
805
805
|
}), a.value.sort((Z, j) => {
|
|
806
|
-
const O = U.findIndex((
|
|
806
|
+
const O = U.findIndex((ne) => ne === Z.id), _e = U.findIndex((ne) => ne === j.id);
|
|
807
807
|
return O - _e;
|
|
808
808
|
}), d("tagsChanged", a.value);
|
|
809
809
|
}
|
|
810
810
|
});
|
|
811
811
|
}, f = (s) => {
|
|
812
812
|
var c;
|
|
813
|
-
(c =
|
|
813
|
+
(c = J.$) != null && c.ui.sortable && $(s.elPopup).data("ui-sortable") && $(s.elPopup).sortable("destroy");
|
|
814
814
|
};
|
|
815
815
|
return (s, c) => (k(), B(Y, null, [
|
|
816
816
|
A(Te, {
|
|
@@ -838,7 +838,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
838
838
|
state: y(r).model.value.length ? "" : "selected",
|
|
839
839
|
onSelect: c[3] || (c[3] = (v) => y(r).model.value = [])
|
|
840
840
|
}, null, 8, ["name", "state"])) : q("", !0),
|
|
841
|
-
(k(!0), B(Y, null,
|
|
841
|
+
(k(!0), B(Y, null, se(a.value, (v) => (k(), b(ye, {
|
|
842
842
|
key: v.id,
|
|
843
843
|
id: v.id,
|
|
844
844
|
colorId: v.color_id,
|
|
@@ -854,13 +854,13 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
854
854
|
v.name = I, y(d)("tagsChanged", a.value);
|
|
855
855
|
}
|
|
856
856
|
}, null, 8, ["id", "colorId", "name", "state", "canExclude", "editable", "disabled", "onUnselect", "onSelect", "onExclude", "onUpdate:name"]))), 128)),
|
|
857
|
-
s.tagsEditable && a.value.length < s.tagsMax && a.value.length < 20 ? (k(), b(
|
|
857
|
+
s.tagsEditable && a.value.length < s.tagsMax && a.value.length < 20 ? (k(), b(de, {
|
|
858
858
|
key: 1,
|
|
859
859
|
"data-top-icon": "",
|
|
860
|
-
onClick:
|
|
860
|
+
onClick: z(C, ["stop"])
|
|
861
861
|
}, {
|
|
862
862
|
default: _(() => [
|
|
863
|
-
G(
|
|
863
|
+
G(K(s.$i18n.Common.Add), 1)
|
|
864
864
|
]),
|
|
865
865
|
_: 1
|
|
866
866
|
})) : q("", !0)
|
|
@@ -870,7 +870,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
870
870
|
y(r).mode === "setter" && y(r).filters ? {
|
|
871
871
|
name: "header",
|
|
872
872
|
fn: _(() => [
|
|
873
|
-
A(
|
|
873
|
+
A(ie, {
|
|
874
874
|
modelValue: h.value,
|
|
875
875
|
"onUpdate:modelValue": c[1] || (c[1] = (v) => h.value = v),
|
|
876
876
|
options: S()
|
|
@@ -883,7 +883,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
883
883
|
fn: _(() => [
|
|
884
884
|
A(H, { color: "theme" }, {
|
|
885
885
|
default: _(() => [
|
|
886
|
-
G(
|
|
886
|
+
G(K(s.$i18n.Common.Cancel), 1)
|
|
887
887
|
]),
|
|
888
888
|
_: 1
|
|
889
889
|
}),
|
|
@@ -896,7 +896,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
896
896
|
}))
|
|
897
897
|
}, {
|
|
898
898
|
default: _(() => [
|
|
899
|
-
G(
|
|
899
|
+
G(K(h.value === "add" ? s.$i18n.Common.Add : "") + " " + K(h.value === "replace" ? s.$i18n.Common.Replace : "") + " " + K(h.value === "delete" ? s.$i18n.Common.Remove : ""), 1)
|
|
900
900
|
]),
|
|
901
901
|
_: 1
|
|
902
902
|
})
|
|
@@ -906,10 +906,10 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
906
906
|
]), 1032, ["id", "class"])
|
|
907
907
|
], 64));
|
|
908
908
|
}
|
|
909
|
-
}), St = (t, l) => E(() =>
|
|
909
|
+
}), St = (t, l) => E(() => ce(t).filter((i) => i.on >= 0 || i.id === l).map((i) => ({
|
|
910
910
|
value: i.id,
|
|
911
911
|
title: i.url + ` [${i.id}]`,
|
|
912
|
-
icon: i.id ===
|
|
912
|
+
icon: i.id === ce(l) ? "" : "",
|
|
913
913
|
content: i.name
|
|
914
914
|
}))), It = (t, l, n) => {
|
|
915
915
|
l || (l = { id: t.id }), l.id = t.id;
|
|
@@ -923,10 +923,10 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
923
923
|
filters: t.filters,
|
|
924
924
|
payload: t.payload
|
|
925
925
|
};
|
|
926
|
-
W(e, "topTagSelectorTarget", o), delete e.dataset.topPopupDisabled,
|
|
926
|
+
W(e, "topTagSelectorTarget", o), delete e.dataset.topPopupDisabled, ge(t.modelValue) || w(a, () => {
|
|
927
927
|
t.modelValue = a.value, ee(e, t, n);
|
|
928
928
|
}), e.click();
|
|
929
|
-
},
|
|
929
|
+
}, ge(t.modelValue) ? w(t.modelValue, () => ee(e, t, n)) : W(e, "topTagSelectorRender", (i) => {
|
|
930
930
|
t.modelValue = i;
|
|
931
931
|
const a = W(e, "topTagSelectorTarget");
|
|
932
932
|
a && (a.model.value = i), ee(e, t, n);
|
|
@@ -954,8 +954,8 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
954
954
|
var d, m;
|
|
955
955
|
const o = pe({
|
|
956
956
|
id: Q(a),
|
|
957
|
-
colorId: ((d =
|
|
958
|
-
name: ((m =
|
|
957
|
+
colorId: ((d = le(a, l.tags)) == null ? void 0 : d.color_id) ?? "",
|
|
958
|
+
name: ((m = le(a, l.tags)) == null ? void 0 : m.name) ?? "",
|
|
959
959
|
state: Q(a) === a ? "selected" : "excluded"
|
|
960
960
|
});
|
|
961
961
|
t.append(o);
|
|
@@ -963,7 +963,7 @@ const je = { class: "top-selectorCompetitors" }, Je = { class: "top-ellipsis1" }
|
|
|
963
963
|
}, pe = (t) => {
|
|
964
964
|
const l = document.createElement("div");
|
|
965
965
|
return l.classList.add("top-tagSelector_tagIcon"), l.classList.toggle("top-tagSelector-active", !!t.state), l.classList.toggle("top-tagSelector-excluded", t.state === "excluded"), l.dataset.tag_id = t.id, l.dataset.tag_color_id = t.colorId, l.title = t.name, l;
|
|
966
|
-
}, kt =
|
|
966
|
+
}, kt = Je, Ct = ot, Tt = dt, _t = Te, bt = oe;
|
|
967
967
|
export {
|
|
968
968
|
kt as TopSelectorCompetitors,
|
|
969
969
|
Ct as TopSelectorRegion,
|