@topvisor/ui 1.4.1-projectSelector.2 → 1.4.1-projectSelector.4
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/policy.vue_vue_type_style_index_0_lang-BkKOPt0o.amd.js +2 -0
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-CO-f4TwZ.amd.js.map → policy.vue_vue_type_style_index_0_lang-BkKOPt0o.amd.js.map} +1 -1
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-ClaW4X74.es.js → policy.vue_vue_type_style_index_0_lang-CaEdkGWd.es.js} +178 -167
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-ClaW4X74.es.js.map → policy.vue_vue_type_style_index_0_lang-CaEdkGWd.es.js.map} +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +33 -33
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/Read Me.txt +1 -1
- package/icomoon/Topvisor icons.json +361 -131
- package/icomoon/demo.html +141 -1
- package/icomoon/fonts/Topvisor-2.eot +0 -0
- package/icomoon/fonts/Topvisor-2.svg +11 -1
- package/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/icomoon/fonts/Topvisor-2.woff +0 -0
- package/icomoon/selection.json +1 -1
- package/icomoon/style.css +35 -5
- package/package.json +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +808 -760
- package/project/project.js.map +1 -1
- package/src/components/formsExt/selector2/selector2.vue.d.ts +3 -0
- package/src/components/formsExt/selector2/types.d.ts +18 -4
- package/src/components/project/groupSelector/groups/groups.vue.d.ts +10 -2
- package/src/components/project/projectSelector/cache.d.ts +4 -0
- package/src/components/project/projectSelector/projectSelector.vue.d.ts +28 -18
- package/src/components/project/projectSelector/types.d.ts +1 -2
- package/src/components/project/projectSelector/utils.d.ts +7 -3
- package/.chunks/policy.vue_vue_type_style_index_0_lang-CO-f4TwZ.amd.js +0 -2
package/project/project.js
CHANGED
|
@@ -3,21 +3,22 @@
|
|
|
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 L, mergeModels as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { a as
|
|
10
|
-
import { u as
|
|
11
|
-
import { getSearcherGIcon as
|
|
6
|
+
import { defineComponent as L, mergeModels as E, useModel as w, computed as P, createElementBlock as T, openBlock as y, createBlock as k, unref as p, withCtx as j, Fragment as D, renderList as fe, normalizeClass as te, createElementVNode as O, toDisplayString as b, createVNode as K, createTextVNode as W, toValue as Ae, ref as _, watch as V, createCommentVNode as M, reactive as Re, resolveComponent as Ue, onMounted as ze, withModifiers as F, isRef as Be, mergeProps as Ne, withKeys as be, nextTick as Ye, resolveDirective as Qe, withDirectives as Xe, resolveDynamicComponent as Ze, renderSlot as et, shallowRef as tt, createSlots as ot } from "vue";
|
|
7
|
+
import { u as B, C as Y, e as Z, q as ve, d as at } from "../.chunks/forms-BAUgA7Ct.es.js";
|
|
8
|
+
import { _ as xe, b as Ce, a as lt } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-BIWw5zUX.es.js";
|
|
9
|
+
import { a as nt, _ as ke, b as Te, c as De, I as ne } from "../.chunks/policy.vue_vue_type_style_index_0_lang-CaEdkGWd.es.js";
|
|
10
|
+
import { u as rt } from "../.chunks/utils-BYaZxGC1.es.js";
|
|
11
|
+
import { getSearcherGIcon as it, getLangLabel as dt, getDeviceGIcon as st } from "../utils/searchers.js";
|
|
12
12
|
import "../.chunks/core-BE_-rKvW.es.js";
|
|
13
13
|
import "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-DMhcuiHP.es.js";
|
|
14
|
-
import { g as
|
|
15
|
-
import { validUrl as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
14
|
+
import { g as he, a as ae } from "../.chunks/field-CyyFzM-Y.es.js";
|
|
15
|
+
import { validUrl as we } from "../utils/check.js";
|
|
16
|
+
import { ellipsis as ut } from "../utils/string.js";
|
|
17
|
+
import { storage as Q } from "../utils/dom.js";
|
|
18
|
+
import { TopPopupWorker as ct } from "../popup/worker.js";
|
|
19
|
+
const ft = { class: "top-competitorSelector" }, gt = { class: "top-ellipsis1" }, yo = /* @__PURE__ */ L({
|
|
19
20
|
__name: "competitorSelector",
|
|
20
|
-
props: /* @__PURE__ */
|
|
21
|
+
props: /* @__PURE__ */ E({
|
|
21
22
|
modelValue: {},
|
|
22
23
|
items: {},
|
|
23
24
|
showSelectAllItem: { type: Boolean, default: !0 }
|
|
@@ -27,64 +28,64 @@ const rt = { class: "top-competitorSelector" }, it = { class: "top-ellipsis1" },
|
|
|
27
28
|
}),
|
|
28
29
|
emits: ["update:modelValue"],
|
|
29
30
|
setup(e) {
|
|
30
|
-
const t = e,
|
|
31
|
+
const t = e, a = w(e, "modelValue"), o = P(() => {
|
|
31
32
|
if (t.showSelectAllItem)
|
|
32
33
|
return {
|
|
33
34
|
icon: "",
|
|
34
|
-
title:
|
|
35
|
+
title: B().Common.Select_all,
|
|
35
36
|
value: "all",
|
|
36
37
|
content: ""
|
|
37
38
|
};
|
|
38
39
|
});
|
|
39
|
-
return (
|
|
40
|
-
|
|
41
|
-
opener:
|
|
42
|
-
|
|
40
|
+
return (r, l) => (y(), T("div", ft, [
|
|
41
|
+
p(Y).state.isMobile ? (y(), k(xe, { key: 0 }, {
|
|
42
|
+
opener: j(() => [
|
|
43
|
+
K(Z, {
|
|
43
44
|
class: "top-competitorSelector_opener",
|
|
44
45
|
color: "theme",
|
|
45
46
|
icon: "",
|
|
46
47
|
icon2: ""
|
|
47
48
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
49
|
+
default: j(() => [
|
|
50
|
+
W(b(e.items.find((n) => n.value === a.value?.[0])?.content), 1)
|
|
50
51
|
]),
|
|
51
52
|
_: 1
|
|
52
53
|
})
|
|
53
54
|
]),
|
|
54
|
-
contentList:
|
|
55
|
-
(
|
|
56
|
-
class:
|
|
57
|
-
"top-active":
|
|
55
|
+
contentList: j(() => [
|
|
56
|
+
(y(!0), T(D, null, fe(e.items, (n) => (y(), k(Ce, {
|
|
57
|
+
class: te({
|
|
58
|
+
"top-active": a.value?.includes(n.value)
|
|
58
59
|
}),
|
|
59
|
-
"data-top-icon":
|
|
60
|
-
title:
|
|
61
|
-
onClick: () =>
|
|
60
|
+
"data-top-icon": n.icon,
|
|
61
|
+
title: n.title,
|
|
62
|
+
onClick: () => a.value = [n.value]
|
|
62
63
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
O("span",
|
|
64
|
+
default: j(() => [
|
|
65
|
+
O("span", gt, b(n.content), 1)
|
|
65
66
|
]),
|
|
66
67
|
_: 2
|
|
67
68
|
}, 1032, ["class", "data-top-icon", "title", "onClick"]))), 256))
|
|
68
69
|
]),
|
|
69
70
|
_: 1
|
|
70
|
-
})) : (
|
|
71
|
+
})) : (y(), k(nt, {
|
|
71
72
|
key: 1,
|
|
72
|
-
modelValue:
|
|
73
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
73
|
+
modelValue: a.value,
|
|
74
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => a.value = n),
|
|
74
75
|
items: e.items,
|
|
75
76
|
isMultiple: !0,
|
|
76
77
|
styling: "bar",
|
|
77
78
|
canBeEmptyMultiple: !1,
|
|
78
|
-
selectAllItem:
|
|
79
|
+
selectAllItem: o.value
|
|
79
80
|
}, null, 8, ["modelValue", "items", "selectAllItem"]))
|
|
80
81
|
]));
|
|
81
82
|
}
|
|
82
|
-
}),
|
|
83
|
-
value:
|
|
84
|
-
title:
|
|
85
|
-
icon:
|
|
86
|
-
content:
|
|
87
|
-
}))), R = -1,
|
|
83
|
+
}), Io = (e, t) => P(() => Ae(e).filter((r) => r.on >= 0 || r.id === t).map((r) => ({
|
|
84
|
+
value: r.id,
|
|
85
|
+
title: r.url + ` [${r.id}]`,
|
|
86
|
+
icon: r.id === Ae(t) ? "" : "",
|
|
87
|
+
content: r.name
|
|
88
|
+
}))), R = -1, S = -2, re = -1, mt = {
|
|
88
89
|
0: "Yandex",
|
|
89
90
|
1: "Google",
|
|
90
91
|
4: "YouTube",
|
|
@@ -94,241 +95,241 @@ const rt = { class: "top-competitorSelector" }, it = { class: "top-ellipsis1" },
|
|
|
94
95
|
9: "GoogleStore",
|
|
95
96
|
20: "Yandex.com",
|
|
96
97
|
21: "Yandex.com.tr"
|
|
97
|
-
},
|
|
98
|
-
key:
|
|
98
|
+
}, Pe = {
|
|
99
|
+
key: S,
|
|
99
100
|
name: "--",
|
|
100
|
-
index:
|
|
101
|
-
},
|
|
102
|
-
key:
|
|
101
|
+
index: S
|
|
102
|
+
}, qe = {
|
|
103
|
+
key: S,
|
|
103
104
|
name: "--",
|
|
104
|
-
regions: [
|
|
105
|
-
regionByIndex: /* @__PURE__ */ new Map([[
|
|
106
|
-
},
|
|
107
|
-
key:
|
|
105
|
+
regions: [Pe],
|
|
106
|
+
regionByIndex: /* @__PURE__ */ new Map([[S, Pe]])
|
|
107
|
+
}, ie = {
|
|
108
|
+
key: S,
|
|
108
109
|
name: "Autoselect",
|
|
109
|
-
index:
|
|
110
|
-
},
|
|
111
|
-
key:
|
|
110
|
+
index: S
|
|
111
|
+
}, me = {
|
|
112
|
+
key: S,
|
|
112
113
|
name: "Autoselect",
|
|
113
|
-
regions: [
|
|
114
|
-
regionByIndex: /* @__PURE__ */ new Map([[
|
|
115
|
-
},
|
|
114
|
+
regions: [ie],
|
|
115
|
+
regionByIndex: /* @__PURE__ */ new Map([[S, ie]])
|
|
116
|
+
}, $e = {
|
|
116
117
|
countryCode: "00",
|
|
117
118
|
depth: 1,
|
|
118
119
|
device: 0,
|
|
119
|
-
key:
|
|
120
|
-
index:
|
|
120
|
+
key: re,
|
|
121
|
+
index: re,
|
|
121
122
|
lang: "ru",
|
|
122
123
|
name: "Without region"
|
|
123
|
-
},
|
|
124
|
-
let
|
|
125
|
-
return e ?
|
|
126
|
-
},
|
|
127
|
-
const
|
|
124
|
+
}, pt = () => (ie.name = B().Common.Autoselect, ie), vt = () => (pt(), me.name = B().Common.Autoselect, console.log(me), me), ht = () => ($e.name = B().Keywords.Without_region, $e), Fe = (e = !1, t = !1, a = []) => {
|
|
125
|
+
let o;
|
|
126
|
+
return e ? o = yt(a) : o = We(a), t && o.set(S, vt()), o.size || o.set(S, qe), o;
|
|
127
|
+
}, We = (e, t = !0, a = [], o = !1) => {
|
|
128
|
+
const r = /* @__PURE__ */ new Map();
|
|
128
129
|
return e.forEach((l) => {
|
|
129
|
-
if (!l.enabled ||
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
if (t && !
|
|
133
|
-
const c = { ...
|
|
134
|
-
|
|
135
|
-
}), !
|
|
130
|
+
if (!l.enabled || o && typeof l.key == "number" && l.key > 1) return;
|
|
131
|
+
const n = { ...l };
|
|
132
|
+
n.regionByIndex = /* @__PURE__ */ new Map(), l.regions && l.regions.forEach((s) => {
|
|
133
|
+
if (t && !s.enabled) return;
|
|
134
|
+
const c = { ...s };
|
|
135
|
+
n.regionByIndex.set(c.index, c);
|
|
136
|
+
}), !n.regionByIndex.size && a.length, // режим вывода ПС без регионов
|
|
136
137
|
(!l.regions || // есть включенные регионы
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}),
|
|
140
|
-
if (
|
|
141
|
-
const
|
|
138
|
+
n.regionByIndex.size || // запрошен вывод конкретных ПС
|
|
139
|
+
a.length) && typeof n.key == "number" && r.set(n.key, n);
|
|
140
|
+
}), a.forEach((l) => {
|
|
141
|
+
if (r.has(l)) return;
|
|
142
|
+
const n = {
|
|
142
143
|
key: l,
|
|
143
|
-
name:
|
|
144
|
+
name: mt[l],
|
|
144
145
|
regions: [],
|
|
145
146
|
regionByIndex: /* @__PURE__ */ new Map()
|
|
146
147
|
};
|
|
147
|
-
|
|
148
|
-
}),
|
|
149
|
-
},
|
|
150
|
-
const t =
|
|
148
|
+
r.set(n.key, n);
|
|
149
|
+
}), r;
|
|
150
|
+
}, yt = (e) => {
|
|
151
|
+
const t = We(e, !1, [0, 1], !0);
|
|
151
152
|
if (t.has(2)) {
|
|
152
|
-
const
|
|
153
|
-
|
|
153
|
+
const a = t.get(2);
|
|
154
|
+
a && (a.regionByIndex = /* @__PURE__ */ new Map());
|
|
154
155
|
}
|
|
155
|
-
return t.forEach((
|
|
156
|
-
if (!
|
|
157
|
-
const
|
|
158
|
-
|
|
156
|
+
return t.forEach((a) => {
|
|
157
|
+
if (!a.regionByIndex) return;
|
|
158
|
+
const o = { ...ht() };
|
|
159
|
+
a.regionByIndex.set(o.index, o);
|
|
159
160
|
}), t;
|
|
160
|
-
},
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
return
|
|
164
|
-
if (!(t.searcher_key !== void 0 && t.searcher_key != l.key) && l.regions && (l.regions.forEach((
|
|
165
|
-
if (!
|
|
166
|
-
return
|
|
167
|
-
}),
|
|
161
|
+
}, It = (e, t, a = []) => {
|
|
162
|
+
const o = Fe(e, !1, a);
|
|
163
|
+
let r;
|
|
164
|
+
return o.forEach((l) => {
|
|
165
|
+
if (!(t.searcher_key !== void 0 && t.searcher_key != l.key) && l.regions && (l.regions.forEach((n) => {
|
|
166
|
+
if (!r && !(t.key !== void 0 && t.key != n.key) && !(t.index !== void 0 && t.index != n.index) && !(!e && (t.lang !== void 0 && t.lang != n.lang || t.device !== void 0 && t.device != n.device)))
|
|
167
|
+
return n.searcher_key = l.key, r = n, !1;
|
|
168
|
+
}), r))
|
|
168
169
|
return !1;
|
|
169
|
-
}),
|
|
170
|
-
},
|
|
171
|
-
const
|
|
170
|
+
}), r;
|
|
171
|
+
}, St = rt(() => import("../.chunks/dialog_regionSelectorRegions-Btp9cfmF.es.js")), xt = (e, t) => {
|
|
172
|
+
const a = B(), o = _(t.value.keys().next().value ?? S), r = P(() => {
|
|
172
173
|
const l = /* @__PURE__ */ new Map();
|
|
173
|
-
if (t.value.forEach((
|
|
174
|
-
let
|
|
175
|
-
value:
|
|
176
|
-
title:
|
|
174
|
+
if (t.value.forEach((n) => {
|
|
175
|
+
let s = {
|
|
176
|
+
value: n.key,
|
|
177
|
+
title: n.name
|
|
177
178
|
};
|
|
178
|
-
e.addSearcherIcon && (
|
|
179
|
-
}), e.addCompare && !l.has(
|
|
180
|
-
const
|
|
179
|
+
e.addSearcherIcon && (s.icon = it(n.key)), l.set(n.key, s);
|
|
180
|
+
}), e.addCompare && !l.has(S)) {
|
|
181
|
+
const n = {
|
|
181
182
|
value: "",
|
|
182
183
|
title: "--------------------",
|
|
183
184
|
disabled: !0
|
|
184
185
|
};
|
|
185
|
-
l.set(
|
|
186
|
-
const
|
|
186
|
+
l.set(n.value, n);
|
|
187
|
+
const s = {
|
|
187
188
|
value: R,
|
|
188
|
-
title:
|
|
189
|
+
title: a.Common.Compare
|
|
189
190
|
};
|
|
190
|
-
l.set(
|
|
191
|
+
l.set(s.value, s);
|
|
191
192
|
}
|
|
192
193
|
return l;
|
|
193
194
|
});
|
|
194
195
|
return {
|
|
195
|
-
searcherKey:
|
|
196
|
-
optionBySearcherKey:
|
|
196
|
+
searcherKey: o,
|
|
197
|
+
optionBySearcherKey: r
|
|
197
198
|
};
|
|
198
|
-
},
|
|
199
|
-
const
|
|
200
|
-
e.modelValue.length === 1 && (
|
|
201
|
-
const
|
|
199
|
+
}, Ct = (e, t) => {
|
|
200
|
+
const a = B(), o = _(S);
|
|
201
|
+
e.modelValue.length === 1 && (o.value = e.modelValue[0]), o.value === S && (e.forFrequency ? o.value = t.value?.regionByIndex.values().next().value?.key ?? S : o.value = t.value?.regionByIndex.keys().next().value ?? S);
|
|
202
|
+
const r = P(() => {
|
|
202
203
|
const l = /* @__PURE__ */ new Map();
|
|
203
|
-
return t.value.regionByIndex?.forEach((
|
|
204
|
-
let
|
|
204
|
+
return t.value.regionByIndex?.forEach((n) => {
|
|
205
|
+
let s = n.name;
|
|
205
206
|
if (e.forFrequency) {
|
|
206
207
|
const I = {
|
|
207
|
-
value:
|
|
208
|
-
title:
|
|
208
|
+
value: n.key,
|
|
209
|
+
title: s
|
|
209
210
|
};
|
|
210
|
-
l.has(
|
|
211
|
+
l.has(n.key) || l.set(n.key, I);
|
|
211
212
|
return;
|
|
212
213
|
}
|
|
213
|
-
|
|
214
|
-
const c =
|
|
215
|
-
c && (
|
|
216
|
-
const
|
|
217
|
-
value:
|
|
218
|
-
title:
|
|
219
|
-
icon:
|
|
214
|
+
n.device && (s += " (" + a.Common["Device_" + n.device] + ")");
|
|
215
|
+
const c = dt(t.value.key || 0, n.lang ?? "");
|
|
216
|
+
c && (s += " / " + c);
|
|
217
|
+
const f = {
|
|
218
|
+
value: n.index,
|
|
219
|
+
title: s,
|
|
220
|
+
icon: n.device ? st(n.device) : void 0
|
|
220
221
|
};
|
|
221
|
-
l.set(
|
|
222
|
+
l.set(n.index, f);
|
|
222
223
|
}), l;
|
|
223
224
|
});
|
|
224
|
-
return
|
|
225
|
-
if (e.onlySearcher ||
|
|
225
|
+
return V(r, (l, n) => {
|
|
226
|
+
if (e.onlySearcher || o.value !== void 0 && l.get(o.value))
|
|
226
227
|
return;
|
|
227
|
-
let
|
|
228
|
-
if (
|
|
229
|
-
|
|
228
|
+
let s = l.keys().next().value;
|
|
229
|
+
if (o.value === S || s === S) {
|
|
230
|
+
o.value = s;
|
|
230
231
|
return;
|
|
231
232
|
}
|
|
232
|
-
let c =
|
|
233
|
-
for (const [I,
|
|
234
|
-
const
|
|
235
|
-
if (typeof
|
|
233
|
+
let c = n?.get(o.value)?.title || "", f = -1;
|
|
234
|
+
for (const [I, i] of l.entries()) {
|
|
235
|
+
const g = i.title;
|
|
236
|
+
if (typeof g != "string" || typeof I == "string")
|
|
236
237
|
break;
|
|
237
|
-
if (
|
|
238
|
-
|
|
238
|
+
if (g === c) {
|
|
239
|
+
s = I;
|
|
239
240
|
break;
|
|
240
241
|
}
|
|
241
|
-
const
|
|
242
|
-
let
|
|
243
|
-
|
|
242
|
+
const d = new RegExp(` \\((${a.Common.Device_1}|${a.Common.Device_2})\\)`);
|
|
243
|
+
let u = c, m = 3;
|
|
244
|
+
g.indexOf(u) === -1 && (u = c.replace(/^[^a-zа-я]/i, "").replace(d, ""), m--), g.indexOf(u) === -1 && (u = c.replace(/ \/.*/, ""), m--), g.indexOf(u) === -1 && (u = c.replace(/ \/.*/, ""), u = u.replace(/^[^a-zа-я]/i, "").replace(d, ""), m--), g.indexOf(u) !== -1 && (m <= f || (f = m, s = I));
|
|
244
245
|
}
|
|
245
|
-
|
|
246
|
+
o.value = s;
|
|
246
247
|
}), {
|
|
247
|
-
regionIndex:
|
|
248
|
-
optionByRegionIndex:
|
|
248
|
+
regionIndex: o,
|
|
249
|
+
optionByRegionIndex: r
|
|
249
250
|
};
|
|
250
|
-
},
|
|
251
|
-
const
|
|
251
|
+
}, kt = (e, t, a) => {
|
|
252
|
+
const o = _([]), r = () => {
|
|
252
253
|
if (e.onlySearcher && t.value) {
|
|
253
|
-
|
|
254
|
+
o.value = Array.from(t.value.keys());
|
|
254
255
|
return;
|
|
255
256
|
}
|
|
256
|
-
let
|
|
257
|
+
let n = [];
|
|
257
258
|
if (e.modelValue.length > 1)
|
|
258
|
-
|
|
259
|
+
n = [...e.modelValue];
|
|
259
260
|
else
|
|
260
261
|
try {
|
|
261
|
-
|
|
262
|
+
n = JSON.parse(
|
|
262
263
|
localStorage.getItem("ui:project:regionSelector" + e.projectId + ":regionsIndexes")
|
|
263
264
|
) ?? [];
|
|
264
265
|
} catch {
|
|
265
266
|
}
|
|
266
|
-
|
|
267
|
+
n.length && (n = n.filter((s) => a.value.has(s))), n.length || (n = Array.from(a.value)), o.value = [...n];
|
|
267
268
|
}, l = () => {
|
|
268
|
-
|
|
269
|
+
o.value.length ? localStorage.setItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes", JSON.stringify(o.value)) : localStorage.removeItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes");
|
|
269
270
|
};
|
|
270
|
-
return
|
|
271
|
+
return V(o, () => {
|
|
271
272
|
l();
|
|
272
|
-
}), e.addCompare &&
|
|
273
|
-
regionsIndexes:
|
|
273
|
+
}), e.addCompare && r(), {
|
|
274
|
+
regionsIndexes: o
|
|
274
275
|
};
|
|
275
|
-
},
|
|
276
|
-
const t = P(() =>
|
|
277
|
-
const
|
|
278
|
-
return t.value.forEach((
|
|
279
|
-
|
|
280
|
-
|
|
276
|
+
}, Tt = (e) => {
|
|
277
|
+
const t = P(() => Fe(e.forFrequency, e.autoRegion, e.searchers)), a = P(() => t.value.get(r.searcherKey.value) || qe), o = P(() => {
|
|
278
|
+
const i = /* @__PURE__ */ new Set();
|
|
279
|
+
return t.value.forEach((g) => {
|
|
280
|
+
g.regionByIndex.forEach((d) => {
|
|
281
|
+
d.index !== re && d.index !== S && i.add(d.index);
|
|
281
282
|
});
|
|
282
|
-
}),
|
|
283
|
-
}),
|
|
284
|
-
|
|
285
|
-
if (e.onlySearcher ?
|
|
286
|
-
let
|
|
287
|
-
t.value.forEach((
|
|
288
|
-
if (e.onlySearcher &&
|
|
289
|
-
|
|
283
|
+
}), i;
|
|
284
|
+
}), r = xt(e, t), l = Ct(e, a), n = kt(e, t, o);
|
|
285
|
+
V(t, () => {
|
|
286
|
+
if (e.onlySearcher ? n.regionsIndexes.value = Array.from(t.value.keys()) : n.regionsIndexes.value = n.regionsIndexes.value.filter((g) => o.value.has(g)), r.searcherKey.value === R) return;
|
|
287
|
+
let i = t.value.keys().next().value;
|
|
288
|
+
t.value.forEach((g) => {
|
|
289
|
+
if (e.onlySearcher && g.key === r.searcherKey.value) {
|
|
290
|
+
i = r.searcherKey.value;
|
|
290
291
|
return;
|
|
291
292
|
}
|
|
292
|
-
if (l.regionIndex.value &&
|
|
293
|
-
let
|
|
294
|
-
|
|
295
|
-
const
|
|
296
|
-
|
|
293
|
+
if (l.regionIndex.value && g.regionByIndex?.has(l.regionIndex.value) && (i = g.key), !e.onlySearcher) {
|
|
294
|
+
let d;
|
|
295
|
+
i !== void 0 && (d = t.value.get(i)?.regionByIndex);
|
|
296
|
+
const u = t.value.get(g.key)?.regionByIndex;
|
|
297
|
+
d?.has(S) && !u?.has(S) && (i = g.key);
|
|
297
298
|
}
|
|
298
|
-
}),
|
|
299
|
+
}), i !== void 0 && (r.searcherKey.value = i), l.regionIndex.value !== void 0 && !a.value?.regionByIndex?.has(l.regionIndex.value) && (l.regionIndex.value = a.value?.regions?.keys().next().value);
|
|
299
300
|
}, { immediate: !0 });
|
|
300
|
-
const
|
|
301
|
-
if (!(
|
|
302
|
-
return
|
|
301
|
+
const s = () => {
|
|
302
|
+
if (!(r.searcherKey.value === R || r.searcherKey.value === S))
|
|
303
|
+
return r.searcherKey.value;
|
|
303
304
|
}, c = () => {
|
|
304
|
-
if (e.onlySearcher || l.regionIndex.value ===
|
|
305
|
-
let
|
|
305
|
+
if (e.onlySearcher || l.regionIndex.value === S) return;
|
|
306
|
+
let i = l.regionIndex.value;
|
|
306
307
|
if (e.forFrequency) {
|
|
307
|
-
const
|
|
308
|
-
|
|
308
|
+
const g = l.regionIndex.value;
|
|
309
|
+
i = It(e.forFrequency, { searcher_key: s(), key: g }, e.searchers)?.index;
|
|
309
310
|
}
|
|
310
|
-
return
|
|
311
|
-
},
|
|
312
|
-
const
|
|
313
|
-
if (
|
|
314
|
-
return t.value.get(
|
|
311
|
+
return i;
|
|
312
|
+
}, f = () => {
|
|
313
|
+
const i = s();
|
|
314
|
+
if (i !== void 0)
|
|
315
|
+
return t.value.get(i);
|
|
315
316
|
};
|
|
316
317
|
return {
|
|
317
|
-
selectSearcher:
|
|
318
|
+
selectSearcher: r,
|
|
318
319
|
selectRegion: l,
|
|
319
|
-
compare:
|
|
320
|
+
compare: n,
|
|
320
321
|
searcherByKey: t,
|
|
321
|
-
allRegionsIndexes:
|
|
322
|
-
getSearcher:
|
|
322
|
+
allRegionsIndexes: o,
|
|
323
|
+
getSearcher: f,
|
|
323
324
|
getRegion: () => {
|
|
324
|
-
const
|
|
325
|
-
if (
|
|
326
|
-
return
|
|
325
|
+
const i = c();
|
|
326
|
+
if (i !== void 0)
|
|
327
|
+
return f()?.regionByIndex?.get(i);
|
|
327
328
|
}
|
|
328
329
|
};
|
|
329
|
-
},
|
|
330
|
+
}, So = /* @__PURE__ */ L({
|
|
330
331
|
__name: "regionSelector",
|
|
331
|
-
props: /* @__PURE__ */
|
|
332
|
+
props: /* @__PURE__ */ E({
|
|
332
333
|
projectId: {},
|
|
333
334
|
searchers: { default: () => [] },
|
|
334
335
|
modelValue: {},
|
|
@@ -348,162 +349,162 @@ const rt = { class: "top-competitorSelector" }, it = { class: "top-ellipsis1" },
|
|
|
348
349
|
}),
|
|
349
350
|
emits: ["update:modelValue", "update:modelValueSingle"],
|
|
350
351
|
setup(e, { expose: t }) {
|
|
351
|
-
const
|
|
352
|
+
const a = e, o = w(e, "modelValue"), r = w(e, "modelValueSingle"), {
|
|
352
353
|
selectSearcher: l,
|
|
353
|
-
selectRegion:
|
|
354
|
-
compare:
|
|
354
|
+
selectRegion: n,
|
|
355
|
+
compare: s,
|
|
355
356
|
searcherByKey: c,
|
|
356
|
-
allRegionsIndexes:
|
|
357
|
+
allRegionsIndexes: f,
|
|
357
358
|
getSearcher: I,
|
|
358
|
-
getRegion:
|
|
359
|
-
} =
|
|
360
|
-
const
|
|
361
|
-
c.value.forEach((
|
|
362
|
-
|
|
363
|
-
|
|
359
|
+
getRegion: i
|
|
360
|
+
} = Tt(a), g = () => {
|
|
361
|
+
const d = [];
|
|
362
|
+
c.value.forEach((u) => {
|
|
363
|
+
u.enabled && u.regions.forEach((m) => {
|
|
364
|
+
m.enabled && d.push(m);
|
|
364
365
|
});
|
|
365
|
-
}),
|
|
366
|
-
regions:
|
|
367
|
-
regionsIndexes:
|
|
368
|
-
"@update:regionsIndexes": (
|
|
366
|
+
}), St.open("regions", {
|
|
367
|
+
regions: d,
|
|
368
|
+
regionsIndexes: s.regionsIndexes.value,
|
|
369
|
+
"@update:regionsIndexes": (u) => s.regionsIndexes.value = u
|
|
369
370
|
});
|
|
370
371
|
};
|
|
371
|
-
return
|
|
372
|
-
if (l.searcherKey.value === R &&
|
|
373
|
-
if (JSON.stringify(
|
|
372
|
+
return V([n.regionIndex, l.searcherKey, s.regionsIndexes], () => {
|
|
373
|
+
if (l.searcherKey.value === R && s.regionsIndexes.value.length) {
|
|
374
|
+
if (JSON.stringify(o.value) === JSON.stringify(s.regionsIndexes.value))
|
|
374
375
|
return;
|
|
375
|
-
|
|
376
|
+
o.value = [...s.regionsIndexes.value];
|
|
376
377
|
} else
|
|
377
|
-
|
|
378
|
-
!
|
|
379
|
-
}),
|
|
380
|
-
|
|
381
|
-
}, { immediate: !0 }),
|
|
382
|
-
if (
|
|
383
|
-
if (!
|
|
384
|
-
let
|
|
385
|
-
|
|
378
|
+
a.onlySearcher ? (o.value = [l.searcherKey.value], l.searcherKey.value === S && !a.autoRegion && (o.value.length = 0)) : (o.value = [n.regionIndex.value], n.regionIndex.value === S && !a.autoRegion && (o.value.length = 0));
|
|
379
|
+
!a.onlySearcher && !f.value.size && (l.searcherKey.value = S);
|
|
380
|
+
}), r.value && V(r, () => {
|
|
381
|
+
r.value && (o.value = [r.value]);
|
|
382
|
+
}, { immediate: !0 }), V(o, () => {
|
|
383
|
+
if (o.value[0] && (r.value = o.value[0]), a.onlySearcher) {
|
|
384
|
+
if (!o.value.length || o.value.length === 1 && !c.value.has(o.value[0]) || o.value.length === 1 && o.value[0] === S && !a.autoRegion) {
|
|
385
|
+
let d = c.value.keys().next().value;
|
|
386
|
+
d === S && !a.autoRegion && (d = void 0, r.value = S), d !== void 0 ? o.value = [d] : o.value.length = 0;
|
|
386
387
|
return;
|
|
387
388
|
}
|
|
388
|
-
if (
|
|
389
|
-
|
|
389
|
+
if (o.value.length > 1 && JSON.stringify(o.value) !== JSON.stringify(s.regionsIndexes.value)) {
|
|
390
|
+
o.value = [...s.regionsIndexes.value];
|
|
390
391
|
return;
|
|
391
392
|
}
|
|
392
393
|
} else {
|
|
393
|
-
let
|
|
394
|
-
if (
|
|
395
|
-
|
|
396
|
-
else if (
|
|
397
|
-
let
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
394
|
+
let d = [...new Set(o.value)], u = c.value.values().next().value?.regionByIndex?.keys().next().value;
|
|
395
|
+
if (a.forFrequency && (u = c.value.values().next().value?.regionByIndex?.values().next().value?.key), u === S && !a.autoRegion && (u = void 0, r.value = S), !d.length)
|
|
396
|
+
u !== void 0 && d.push(u);
|
|
397
|
+
else if (d.length === 1) {
|
|
398
|
+
let m = f.value;
|
|
399
|
+
a.forFrequency && (m = /* @__PURE__ */ new Set(), c.value.forEach((q) => {
|
|
400
|
+
q.regionByIndex.forEach((N) => {
|
|
401
|
+
N.index !== re && N.index !== S && m.add(N.key);
|
|
401
402
|
});
|
|
402
|
-
})),
|
|
403
|
+
})), m.has(d[0]) || (d = [], u !== void 0 && d.push(u));
|
|
403
404
|
} else
|
|
404
|
-
|
|
405
|
-
if (JSON.stringify(
|
|
406
|
-
|
|
405
|
+
d = d.filter((m) => f.value.has(m)), !d.length && u !== void 0 && d.push(u);
|
|
406
|
+
if (JSON.stringify(o.value) !== JSON.stringify(d)) {
|
|
407
|
+
o.value = d;
|
|
407
408
|
return;
|
|
408
409
|
}
|
|
409
410
|
}
|
|
410
|
-
if (!(
|
|
411
|
-
if (
|
|
412
|
-
if (
|
|
413
|
-
l.searcherKey.value =
|
|
411
|
+
if (!(o.value.length === 1 && o.value[0] === (a.onlySearcher ? l.searcherKey.value : n.regionIndex.value)))
|
|
412
|
+
if (a.onlySearcher) {
|
|
413
|
+
if (o.value.length === 1) {
|
|
414
|
+
l.searcherKey.value = o.value[0];
|
|
414
415
|
return;
|
|
415
416
|
}
|
|
416
417
|
l.searcherKey.value = R;
|
|
417
418
|
return;
|
|
418
419
|
} else {
|
|
419
|
-
if (!
|
|
420
|
+
if (!o.value.length)
|
|
420
421
|
return;
|
|
421
|
-
if (
|
|
422
|
-
|
|
423
|
-
let
|
|
424
|
-
for (const
|
|
425
|
-
for (const
|
|
426
|
-
if ((
|
|
427
|
-
|
|
422
|
+
if (o.value.length === 1 && l.searcherKey.value !== R) {
|
|
423
|
+
n.regionIndex.value = o.value[0];
|
|
424
|
+
let d;
|
|
425
|
+
for (const u of c.value.values()) {
|
|
426
|
+
for (const m of u.regionByIndex.values())
|
|
427
|
+
if ((a.forFrequency ? m.key : m.index) === n.regionIndex.value) {
|
|
428
|
+
d = u.key;
|
|
428
429
|
break;
|
|
429
430
|
}
|
|
430
|
-
if (
|
|
431
|
+
if (d !== void 0)
|
|
431
432
|
break;
|
|
432
433
|
}
|
|
433
|
-
|
|
434
|
+
d !== void 0 && (l.searcherKey.value = d);
|
|
434
435
|
} else
|
|
435
|
-
l.searcherKey.value = R,
|
|
436
|
+
l.searcherKey.value = R, s.regionsIndexes.value = [...o.value];
|
|
436
437
|
}
|
|
437
438
|
}, { immediate: !0 }), t({
|
|
438
439
|
getSearcher: I,
|
|
439
|
-
getRegion:
|
|
440
|
-
}), (
|
|
441
|
-
class:
|
|
440
|
+
getRegion: i
|
|
441
|
+
}), (d, u) => (y(), T("div", {
|
|
442
|
+
class: te({
|
|
442
443
|
"top-selectorRegion": !0,
|
|
443
444
|
"top-selectorRegion-onlySearcher": e.onlySearcher
|
|
444
445
|
})
|
|
445
446
|
}, [
|
|
446
|
-
|
|
447
|
-
options:
|
|
448
|
-
modelValue:
|
|
449
|
-
"onUpdate:modelValue":
|
|
447
|
+
K(ve, {
|
|
448
|
+
options: p(l).optionBySearcherKey.value,
|
|
449
|
+
modelValue: p(l).searcherKey.value,
|
|
450
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => p(l).searcherKey.value = m),
|
|
450
451
|
name: "searcher_key",
|
|
451
452
|
addChanger: e.addChanger
|
|
452
453
|
}, null, 8, ["options", "modelValue", "addChanger"]),
|
|
453
|
-
!e.onlySearcher &&
|
|
454
|
+
!e.onlySearcher && p(l).searcherKey.value !== p(R) ? (y(), k(ve, {
|
|
454
455
|
key: 0,
|
|
455
456
|
class: "top-select-region",
|
|
456
|
-
options:
|
|
457
|
-
modelValue:
|
|
458
|
-
"onUpdate:modelValue":
|
|
457
|
+
options: p(n).optionByRegionIndex.value,
|
|
458
|
+
modelValue: p(n).regionIndex.value,
|
|
459
|
+
"onUpdate:modelValue": u[1] || (u[1] = (m) => p(n).regionIndex.value = m),
|
|
459
460
|
name: e.forFrequency ? "region_key" : "region_index",
|
|
460
461
|
addChanger: e.addChanger,
|
|
461
462
|
"data-top-icon": e.addRegionIcon ? "" : void 0
|
|
462
|
-
}, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) :
|
|
463
|
-
e.addCompare && !e.onlySearcher &&
|
|
463
|
+
}, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) : M("", !0),
|
|
464
|
+
e.addCompare && !e.onlySearcher && p(l).searcherKey.value === p(R) ? (y(), k(Z, {
|
|
464
465
|
key: 1,
|
|
465
466
|
name: "compare",
|
|
466
|
-
onClick:
|
|
467
|
-
"data-count-compare-regions-indexes":
|
|
467
|
+
onClick: g,
|
|
468
|
+
"data-count-compare-regions-indexes": p(s).regionsIndexes.value.length
|
|
468
469
|
}, {
|
|
469
|
-
default:
|
|
470
|
-
|
|
470
|
+
default: j(() => [
|
|
471
|
+
W(b(d.$i18n.Common.Selected_regions), 1)
|
|
471
472
|
]),
|
|
472
473
|
_: 1
|
|
473
|
-
}, 8, ["data-count-compare-regions-indexes"])) :
|
|
474
|
+
}, 8, ["data-count-compare-regions-indexes"])) : M("", !0)
|
|
474
475
|
], 2));
|
|
475
476
|
}
|
|
476
|
-
}),
|
|
477
|
+
}), U = {
|
|
477
478
|
id: 0,
|
|
478
479
|
name: "/",
|
|
479
480
|
path: "/"
|
|
480
481
|
};
|
|
481
|
-
function
|
|
482
|
-
return e ?
|
|
482
|
+
function jt(e) {
|
|
483
|
+
return e ? B()?.Common.All_folders : "/ (" + B()?.Keywords.Root_folder + ")";
|
|
483
484
|
}
|
|
484
|
-
const
|
|
485
|
-
l = { ...l },
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
}),
|
|
489
|
-
function
|
|
490
|
-
const
|
|
491
|
-
return
|
|
485
|
+
const je = (e, t, a = /* @__PURE__ */ new Map(), o = { id: "root" }, r = 0) => (o.childsIds = [], o.id && (o.countAllGroupsActive = o.count_groups_active), e[o.id] && e[o.id].forEach((l) => {
|
|
486
|
+
l = { ...l }, o.childsIds.push(l.id), l.id === 0 && (l.name = jt(t));
|
|
487
|
+
const n = r > 1 ? "-".repeat(r - 1) + " " : "";
|
|
488
|
+
n && !l.name.startsWith(n) && (l.name = n + l.name), a.set(l.id, l), je(e, t, a, l, r + 1), o.childsIds = o.childsIds.concat(l.childsIds), o.id && l.count_groups_active && (o.countAllGroupsActive += l.count_groups_active);
|
|
489
|
+
}), a), At = (e) => e.gen("/get/keywords_2/folders/", ["id", "parent_id", "name", "path"]).changeParams({ orders: ["ord_path"], limit: 100 });
|
|
490
|
+
function ye(e, t, a) {
|
|
491
|
+
const o = Object.keys(e), r = o.map((l) => e[l]);
|
|
492
|
+
return V(r, (l, n, s) => {
|
|
492
493
|
const c = {};
|
|
493
|
-
l.forEach((
|
|
494
|
-
if (!Object.is(
|
|
495
|
-
const
|
|
496
|
-
c[
|
|
497
|
-
old:
|
|
498
|
-
new:
|
|
494
|
+
l.forEach((f, I) => {
|
|
495
|
+
if (!Object.is(f, n[I])) {
|
|
496
|
+
const i = o[I];
|
|
497
|
+
c[i] = {
|
|
498
|
+
old: n[I],
|
|
499
|
+
new: f
|
|
499
500
|
};
|
|
500
501
|
}
|
|
501
|
-
}), Object.keys(c).length && t(c,
|
|
502
|
-
},
|
|
502
|
+
}), Object.keys(c).length && t(c, s);
|
|
503
|
+
}, a);
|
|
503
504
|
}
|
|
504
|
-
const
|
|
505
|
+
const Bt = /* @__PURE__ */ L({
|
|
505
506
|
__name: "folders",
|
|
506
|
-
props: /* @__PURE__ */
|
|
507
|
+
props: /* @__PURE__ */ E({
|
|
507
508
|
folderId: {},
|
|
508
509
|
folder: {},
|
|
509
510
|
folders: {},
|
|
@@ -515,64 +516,64 @@ const xt = /* @__PURE__ */ L({
|
|
|
515
516
|
}, {
|
|
516
517
|
folderId: { required: !0 },
|
|
517
518
|
folderIdModifiers: {},
|
|
518
|
-
folder: { default:
|
|
519
|
+
folder: { default: U },
|
|
519
520
|
folderModifiers: {}
|
|
520
521
|
}),
|
|
521
522
|
emits: ["update:folderId", "update:folder"],
|
|
522
523
|
setup(e) {
|
|
523
|
-
const t = e,
|
|
524
|
-
|
|
525
|
-
|
|
524
|
+
const t = e, a = w(e, "folderId"), o = w(e, "folder"), r = t.client && !t.folders ? At(t.client) : void 0, l = _(null);
|
|
525
|
+
V(() => t.projectId, () => {
|
|
526
|
+
r?.changeParams({
|
|
526
527
|
project_id: t.projectId
|
|
527
|
-
}),
|
|
528
|
+
}), r?.setOptions({
|
|
528
529
|
checkFingerprint: "TopGroupSelectorFolders:" + t.projectId
|
|
529
530
|
}), l.value?.resetCache();
|
|
530
531
|
}, { immediate: !0 });
|
|
531
|
-
const
|
|
532
|
-
return
|
|
533
|
-
modelFolder:
|
|
534
|
-
modelFolderId:
|
|
535
|
-
}, async (
|
|
536
|
-
if (
|
|
532
|
+
const n = P(() => je(t.folders ?? { root: [U] }, t.canSelectAll));
|
|
533
|
+
return ye({
|
|
534
|
+
modelFolder: o,
|
|
535
|
+
modelFolderId: a
|
|
536
|
+
}, async (s) => {
|
|
537
|
+
if (a.value === o.value.id)
|
|
537
538
|
return;
|
|
538
|
-
if (
|
|
539
|
-
|
|
539
|
+
if (s.modelFolder && !s.modelFolderId) {
|
|
540
|
+
a.value = o.value.id;
|
|
540
541
|
return;
|
|
541
542
|
}
|
|
542
|
-
let c =
|
|
543
|
-
c || (c =
|
|
544
|
-
}, { immediate: !0 }), (
|
|
543
|
+
let c = n.value.get(t.folderId);
|
|
544
|
+
c || (c = U), o.value = c, a.value = c.id;
|
|
545
|
+
}, { immediate: !0 }), (s, c) => (y(), k(ke, {
|
|
545
546
|
class: "top-groupSelector_folder",
|
|
546
|
-
modelValue:
|
|
547
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
548
|
-
items: e.folders ? [...
|
|
547
|
+
modelValue: o.value,
|
|
548
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => o.value = f),
|
|
549
|
+
items: e.folders ? [...n.value.values()] : void 0,
|
|
549
550
|
"search-type": "inline",
|
|
550
551
|
icon: e.addIcon ? "" : void 0,
|
|
551
|
-
api: e.folders ? void 0 :
|
|
552
|
-
apiSetSearchParams: (...
|
|
552
|
+
api: e.folders ? void 0 : p(r),
|
|
553
|
+
apiSetSearchParams: (...f) => p(Te)(...f, "name"),
|
|
553
554
|
addChanger: e.addChanger,
|
|
554
555
|
useCache: ""
|
|
555
556
|
}, null, 8, ["modelValue", "items", "icon", "api", "apiSetSearchParams", "addChanger"]));
|
|
556
557
|
}
|
|
557
|
-
}),
|
|
558
|
+
}), de = {
|
|
558
559
|
id: -1,
|
|
559
560
|
name: "--",
|
|
560
|
-
folder_id:
|
|
561
|
-
folder_path:
|
|
562
|
-
},
|
|
563
|
-
id:
|
|
561
|
+
folder_id: U.id,
|
|
562
|
+
folder_path: U.path
|
|
563
|
+
}, se = {
|
|
564
|
+
id: De,
|
|
564
565
|
name: "All groups",
|
|
565
|
-
folder_id:
|
|
566
|
-
folder_path:
|
|
567
|
-
},
|
|
566
|
+
folder_id: U.id,
|
|
567
|
+
folder_path: U.path
|
|
568
|
+
}, X = () => (se.name = B()?.Common.All_groups, se), Je = () => (se.name = B()?.Keywords.Choose_group, se), bt = (e, t, a) => (e = [...e], t !== void 0 && (e = e.filter((o) => o.on == Number(t))), a && a.id && a.childsIds && (e = e.filter((o) => o.folder_id === a.id || a.childsIds.includes(o.folder_id))), e), _e = (e) => e.gen("/get/keywords_2/groups/", ["id", "name", "folder_id", "folder_path"]).changeParams({ folder_id_depth: !0, limit: 100 }), wt = (e) => e.gen("/add/keywords_2/groups/"), Pt = { class: "top-groupSelector_groupItem" }, $t = {
|
|
568
569
|
key: 0,
|
|
569
570
|
class: "top-comment"
|
|
570
|
-
},
|
|
571
|
+
}, _t = {
|
|
571
572
|
key: 1,
|
|
572
573
|
class: "top-groupSelector_groupItemFolderPath"
|
|
573
|
-
},
|
|
574
|
+
}, Mt = /* @__PURE__ */ L({
|
|
574
575
|
__name: "groups",
|
|
575
|
-
props: /* @__PURE__ */
|
|
576
|
+
props: /* @__PURE__ */ E({
|
|
576
577
|
groupId: {},
|
|
577
578
|
group: {},
|
|
578
579
|
projectId: {},
|
|
@@ -592,111 +593,111 @@ const xt = /* @__PURE__ */ L({
|
|
|
592
593
|
group: { required: !0 },
|
|
593
594
|
groupModifiers: {}
|
|
594
595
|
}),
|
|
595
|
-
emits: /* @__PURE__ */
|
|
596
|
+
emits: /* @__PURE__ */ E(["addGroup"], ["update:groupId", "update:group"]),
|
|
596
597
|
setup(e, { emit: t }) {
|
|
597
|
-
const
|
|
598
|
-
|
|
599
|
-
project_id:
|
|
598
|
+
const a = e, o = t, r = w(e, "groupId"), l = w(e, "group"), n = a.client && !a.groups ? _e(a.client) : void 0, s = a.client ? wt(a.client) : void 0, c = _(null), f = _(void 0), I = he("folder_id", "EQUALS", [a.folder?.id ?? 0]);
|
|
599
|
+
n?.changeParams({
|
|
600
|
+
project_id: a.projectId,
|
|
600
601
|
folder_id_depth: !0,
|
|
601
602
|
filters: [
|
|
602
603
|
I
|
|
603
604
|
]
|
|
604
|
-
}),
|
|
605
|
-
const
|
|
606
|
-
l.value =
|
|
605
|
+
}), a.on !== void 0 && n?.params.filters?.push(he("on", "EQUALS", [Number(a.on)]));
|
|
606
|
+
const i = (d) => {
|
|
607
|
+
l.value = d, r.value = d.id;
|
|
607
608
|
};
|
|
608
|
-
|
|
609
|
-
projectId: () =>
|
|
610
|
-
folderId: () =>
|
|
611
|
-
canSelectAll: () =>
|
|
612
|
-
}, (
|
|
613
|
-
if (
|
|
614
|
-
project_id:
|
|
615
|
-
}),
|
|
616
|
-
checkFingerprint: "TopGroupSelectorGroups:" +
|
|
617
|
-
})),
|
|
618
|
-
|
|
619
|
-
],
|
|
620
|
-
let
|
|
621
|
-
|
|
609
|
+
ye({
|
|
610
|
+
projectId: () => a.projectId,
|
|
611
|
+
folderId: () => a.folder?.id,
|
|
612
|
+
canSelectAll: () => a.canSelectAll
|
|
613
|
+
}, (d) => {
|
|
614
|
+
if (d.projectId && (n?.changeParams({
|
|
615
|
+
project_id: a.projectId
|
|
616
|
+
}), n?.setOptions({
|
|
617
|
+
checkFingerprint: "TopGroupSelectorGroups:" + a.projectId
|
|
618
|
+
})), d.folderId && (I.values = [
|
|
619
|
+
a.folder?.id ?? 0
|
|
620
|
+
], a.groups && (f.value = bt(a.groups, a.on, a.folder))), c.value?.resetCache(), (d.folderId?.old !== void 0 || d.canSelectAll?.old !== void 0) && r.value !== ne) {
|
|
621
|
+
let u;
|
|
622
|
+
a.autoselect === "first" && (u = f.value?.[0], a.canSelectAll && (u = Re(X()))), (a.autoselect === "placeholder" || !u) && (u = Je()), i(u);
|
|
622
623
|
}
|
|
623
|
-
}, { immediate: !0 }),
|
|
624
|
+
}, { immediate: !0 }), ye({
|
|
624
625
|
modelGroup: l,
|
|
625
|
-
modelGroupId:
|
|
626
|
-
}, async (
|
|
627
|
-
if (
|
|
628
|
-
if (
|
|
629
|
-
|
|
626
|
+
modelGroupId: r
|
|
627
|
+
}, async (d) => {
|
|
628
|
+
if (r.value !== l.value.id) {
|
|
629
|
+
if (d.modelGroup && !d.modelGroupId) {
|
|
630
|
+
r.value = l.value.id;
|
|
630
631
|
return;
|
|
631
632
|
}
|
|
632
|
-
if (!(
|
|
633
|
-
if (
|
|
634
|
-
let
|
|
635
|
-
if (!
|
|
636
|
-
|
|
633
|
+
if (!(a.canAdd && r.value === ne)) {
|
|
634
|
+
if (a.groups) {
|
|
635
|
+
let u = f.value?.find((m) => m.id === r.value);
|
|
636
|
+
if (!u && a.canSelectAll && (u = X()), u)
|
|
637
|
+
i(u);
|
|
637
638
|
else {
|
|
638
|
-
const
|
|
639
|
-
|
|
639
|
+
const m = f.value?.[0];
|
|
640
|
+
m && !r.value ? i(m) : i(de);
|
|
640
641
|
}
|
|
641
642
|
}
|
|
642
|
-
if (
|
|
643
|
-
const
|
|
644
|
-
project_id:
|
|
645
|
-
id:
|
|
643
|
+
if (a.client && !a.groups && (r.value || r.value === De && !a.canSelectAll)) {
|
|
644
|
+
const u = _e(a.client).changeParams({
|
|
645
|
+
project_id: a.projectId,
|
|
646
|
+
id: r.value,
|
|
646
647
|
filters: [
|
|
647
648
|
I
|
|
648
649
|
]
|
|
649
650
|
});
|
|
650
|
-
|
|
651
|
-
checkFingerprint: "TopGroupSelectorFindGroup:" +
|
|
651
|
+
u?.setOptions({
|
|
652
|
+
checkFingerprint: "TopGroupSelectorFindGroup:" + a.projectId
|
|
652
653
|
});
|
|
653
|
-
const
|
|
654
|
-
if (!
|
|
655
|
-
!
|
|
654
|
+
const m = await u.call();
|
|
655
|
+
if (!m.errors?.length && !m.result) return;
|
|
656
|
+
!m.errors && m.result[0] ? i(m.result[0]) : i(de);
|
|
656
657
|
}
|
|
657
658
|
}
|
|
658
659
|
}
|
|
659
660
|
}, { immediate: !0 });
|
|
660
|
-
const
|
|
661
|
-
if (
|
|
662
|
-
const
|
|
663
|
-
project_id:
|
|
664
|
-
names: [
|
|
665
|
-
to_id:
|
|
661
|
+
const g = async (d) => {
|
|
662
|
+
if (a.canAdd !== "api" || !s) return;
|
|
663
|
+
const u = l.value, m = await s.changeParams({
|
|
664
|
+
project_id: a.projectId,
|
|
665
|
+
names: [d.name],
|
|
666
|
+
to_id: a.folder?.id ?? U.id,
|
|
666
667
|
to_type: "in_folder_last"
|
|
667
668
|
}).call();
|
|
668
|
-
|
|
669
|
+
m.result ? (i(m.result), o("addGroup", m.result)) : i(u), c.value?.resetCache(!0);
|
|
669
670
|
};
|
|
670
|
-
return (
|
|
671
|
+
return (d, u) => (y(), k(ke, {
|
|
671
672
|
ref_key: "refSelector",
|
|
672
673
|
ref: c,
|
|
673
674
|
class: "top-groupSelector_group",
|
|
674
675
|
modelValue: l.value,
|
|
675
|
-
"onUpdate:modelValue":
|
|
676
|
-
items:
|
|
676
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => l.value = m),
|
|
677
|
+
items: f.value ?? e.groups,
|
|
677
678
|
searchType: "inline",
|
|
678
679
|
icon: e.addIcon ? "" : void 0,
|
|
679
|
-
api: e.groups ? void 0 :
|
|
680
|
-
apiSetSearchParams: (...
|
|
680
|
+
api: e.groups ? void 0 : p(n),
|
|
681
|
+
apiSetSearchParams: (...m) => p(Te)(...m, "name"),
|
|
681
682
|
appendSearchToResult: !!e.canAdd,
|
|
682
|
-
useAllItem: e.canSelectAll ?
|
|
683
|
+
useAllItem: e.canSelectAll ? p(X)().name : !1,
|
|
683
684
|
addChanger: e.addChanger,
|
|
684
685
|
useCache: "",
|
|
685
|
-
onAppendItem:
|
|
686
|
+
onAppendItem: g
|
|
686
687
|
}, {
|
|
687
|
-
item:
|
|
688
|
-
O("div",
|
|
689
|
-
|
|
690
|
-
O("span", null,
|
|
691
|
-
|
|
688
|
+
item: j(({ item: m }) => [
|
|
689
|
+
O("div", Pt, [
|
|
690
|
+
m.id === p(ne) ? (y(), T("div", $t, b(d.$i18n.Common.Add) + ": ", 1)) : M("", !0),
|
|
691
|
+
O("span", null, b(m.name), 1),
|
|
692
|
+
m.folder_path && e.showPath ? (y(), T("span", _t, b(m.folder_path), 1)) : M("", !0)
|
|
692
693
|
])
|
|
693
694
|
]),
|
|
694
695
|
_: 1
|
|
695
696
|
}, 8, ["modelValue", "items", "icon", "api", "apiSetSearchParams", "appendSearchToResult", "useAllItem", "addChanger"]));
|
|
696
697
|
}
|
|
697
|
-
}),
|
|
698
|
+
}), Et = { class: "top-groupSelector" }, xo = /* @__PURE__ */ L({
|
|
698
699
|
__name: "groupSelector",
|
|
699
|
-
props: /* @__PURE__ */
|
|
700
|
+
props: /* @__PURE__ */ E({
|
|
700
701
|
folderId: {},
|
|
701
702
|
folder: {},
|
|
702
703
|
groupId: {},
|
|
@@ -720,41 +721,41 @@ const xt = /* @__PURE__ */ L({
|
|
|
720
721
|
folderModifiers: {},
|
|
721
722
|
groupId: { required: !0 },
|
|
722
723
|
groupIdModifiers: {},
|
|
723
|
-
group: { default:
|
|
724
|
+
group: { default: de },
|
|
724
725
|
groupModifiers: {}
|
|
725
726
|
}),
|
|
726
|
-
emits: /* @__PURE__ */
|
|
727
|
+
emits: /* @__PURE__ */ E(["update:groups"], ["update:folderId", "update:folder", "update:groupId", "update:group"]),
|
|
727
728
|
setup(e, { emit: t }) {
|
|
728
|
-
const
|
|
729
|
-
|
|
730
|
-
let
|
|
731
|
-
l.value || (
|
|
732
|
-
const I = (
|
|
733
|
-
let
|
|
734
|
-
|
|
729
|
+
const a = e, o = w(e, "folderId"), r = w(e, "folder"), l = w(e, "groupId"), n = w(e, "group"), s = t, c = je(a.folders ?? { root: [U] }, a.canSelectAllGroups);
|
|
730
|
+
r.value = c.get(o.value);
|
|
731
|
+
let f = a.groups?.find((i) => i.id === l.value);
|
|
732
|
+
l.value || (f = a.groups?.[0]), a.canSelectAllGroups && !f && (f = X()), a.canSelectAllGroups && !f && (f = X()), (a.autoselect === "placeholder" || !f) && (f = Je()), f ??= de, n.value = f;
|
|
733
|
+
const I = (i) => {
|
|
734
|
+
let g;
|
|
735
|
+
a.groups && i && (g = [...a.groups, i]), s("update:groups", g);
|
|
735
736
|
};
|
|
736
|
-
return (
|
|
737
|
-
e.showFolders ? (
|
|
737
|
+
return (i, g) => (y(), T("div", Et, [
|
|
738
|
+
e.showFolders ? (y(), k(Bt, {
|
|
738
739
|
key: 0,
|
|
739
|
-
folderId:
|
|
740
|
-
"onUpdate:folderId":
|
|
741
|
-
folder:
|
|
742
|
-
"onUpdate:folder":
|
|
740
|
+
folderId: o.value,
|
|
741
|
+
"onUpdate:folderId": g[0] || (g[0] = (d) => o.value = d),
|
|
742
|
+
folder: r.value,
|
|
743
|
+
"onUpdate:folder": g[1] || (g[1] = (d) => r.value = d),
|
|
743
744
|
projectId: e.projectId,
|
|
744
745
|
folders: e.folders,
|
|
745
746
|
canSelectAll: e.canSelectAllGroups,
|
|
746
747
|
addChanger: e.addChanger,
|
|
747
748
|
addIcon: e.addIcon,
|
|
748
749
|
client: e.client
|
|
749
|
-
}, null, 8, ["folderId", "folder", "projectId", "folders", "canSelectAll", "addChanger", "addIcon", "client"])) :
|
|
750
|
-
e.showGroups ? (
|
|
750
|
+
}, null, 8, ["folderId", "folder", "projectId", "folders", "canSelectAll", "addChanger", "addIcon", "client"])) : M("", !0),
|
|
751
|
+
e.showGroups ? (y(), k(Mt, {
|
|
751
752
|
key: 1,
|
|
752
753
|
groupId: l.value,
|
|
753
|
-
"onUpdate:groupId":
|
|
754
|
-
group:
|
|
755
|
-
"onUpdate:group":
|
|
754
|
+
"onUpdate:groupId": g[2] || (g[2] = (d) => l.value = d),
|
|
755
|
+
group: n.value,
|
|
756
|
+
"onUpdate:group": g[3] || (g[3] = (d) => n.value = d),
|
|
756
757
|
projectId: e.projectId,
|
|
757
|
-
folder:
|
|
758
|
+
folder: r.value,
|
|
758
759
|
groups: e.groups,
|
|
759
760
|
on: e.on,
|
|
760
761
|
canAdd: e.canAddGroup,
|
|
@@ -765,10 +766,10 @@ const xt = /* @__PURE__ */ L({
|
|
|
765
766
|
addIcon: e.addIcon,
|
|
766
767
|
client: e.client,
|
|
767
768
|
onAddGroup: I
|
|
768
|
-
}, null, 8, ["groupId", "group", "projectId", "folder", "groups", "on", "canAdd", "canSelectAll", "autoselect", "addChanger", "showPath", "addIcon", "client"])) :
|
|
769
|
+
}, null, 8, ["groupId", "group", "projectId", "folder", "groups", "on", "canAdd", "canSelectAll", "autoselect", "addChanger", "showPath", "addIcon", "client"])) : M("", !0)
|
|
769
770
|
]));
|
|
770
771
|
}
|
|
771
|
-
}),
|
|
772
|
+
}), Vt = { class: "top-projectSelectorSubmenu_item" }, Lt = ["href", "title", "data-top-icon", "data-right"], Gt = { class: "top-projectSelectorSubmenu_item" }, Kt = ["href"], Ot = /* @__PURE__ */ L({
|
|
772
773
|
__name: "submenu",
|
|
773
774
|
props: {
|
|
774
775
|
id: {},
|
|
@@ -776,168 +777,198 @@ const xt = /* @__PURE__ */ L({
|
|
|
776
777
|
url: {}
|
|
777
778
|
},
|
|
778
779
|
setup(e) {
|
|
779
|
-
const t = e,
|
|
780
|
-
let
|
|
780
|
+
const t = e, a = B();
|
|
781
|
+
let o = [
|
|
781
782
|
{
|
|
782
783
|
href: `/project/keywords/${t.id}/`,
|
|
783
|
-
title:
|
|
784
|
+
title: a.Common.Menu_phrases,
|
|
784
785
|
icon: "",
|
|
785
786
|
right: "2"
|
|
786
787
|
},
|
|
787
788
|
{
|
|
788
789
|
href: `/project/dynamics/${t.id}/`,
|
|
789
|
-
title:
|
|
790
|
+
title: a.Common.Menu_dynamics,
|
|
790
791
|
icon: "",
|
|
791
792
|
right: "1"
|
|
792
793
|
},
|
|
793
794
|
{
|
|
794
795
|
href: `/project/snapshots/${t.id}/`,
|
|
795
|
-
title:
|
|
796
|
+
title: a.Common.Menu_snapshots,
|
|
796
797
|
icon: "",
|
|
797
798
|
right: "1"
|
|
798
799
|
},
|
|
799
800
|
{
|
|
800
801
|
href: `/project/competitors/${t.id}/`,
|
|
801
|
-
title:
|
|
802
|
+
title: a.Common.Menu_competitors,
|
|
802
803
|
icon: "",
|
|
803
804
|
right: "1"
|
|
804
805
|
},
|
|
805
806
|
{
|
|
806
807
|
href: `/project/analytics/${t.id}/`,
|
|
807
|
-
title:
|
|
808
|
+
title: a.Common.Menu_analytics,
|
|
808
809
|
icon: "",
|
|
809
810
|
right: "5"
|
|
810
811
|
},
|
|
811
812
|
{
|
|
812
813
|
href: `/project/broker/${t.id}/`,
|
|
813
|
-
title:
|
|
814
|
+
title: a.Common.Menu_broker,
|
|
814
815
|
icon: "",
|
|
815
816
|
right: "6"
|
|
816
817
|
},
|
|
817
818
|
{
|
|
818
819
|
href: `/project/audit/${t.id}/sitemap/`,
|
|
819
|
-
title:
|
|
820
|
+
title: a.Audit.Sitemap_gen,
|
|
820
821
|
icon: "",
|
|
821
822
|
right: "8"
|
|
822
823
|
},
|
|
823
824
|
{
|
|
824
825
|
href: `/project/audit/${t.id}/audit/`,
|
|
825
|
-
title:
|
|
826
|
+
title: a.Common.Menu_audit,
|
|
826
827
|
icon: "",
|
|
827
828
|
right: "8"
|
|
828
829
|
},
|
|
829
830
|
{
|
|
830
831
|
href: `//project/audit/${t.id}/indexing/`,
|
|
831
|
-
title:
|
|
832
|
+
title: a.Audit.Indexing,
|
|
832
833
|
icon: "",
|
|
833
834
|
right: "8"
|
|
834
835
|
},
|
|
835
836
|
{
|
|
836
837
|
href: `/project/audit/${t.id}/watcher/`,
|
|
837
|
-
title:
|
|
838
|
+
title: a.Audit.Watcher,
|
|
838
839
|
icon: "",
|
|
839
840
|
right: "9"
|
|
840
841
|
},
|
|
841
842
|
{
|
|
842
843
|
href: `/project/settings/${t.id}/`,
|
|
843
|
-
title:
|
|
844
|
+
title: a.Common.Menu_settings,
|
|
844
845
|
icon: "",
|
|
845
846
|
right: "2"
|
|
846
847
|
}
|
|
847
848
|
];
|
|
848
|
-
const
|
|
849
|
-
return (l,
|
|
850
|
-
const
|
|
851
|
-
return
|
|
849
|
+
const r = P(() => t.right.includes("0") ? o.filter((l) => t.right[l.right] === "1") : o);
|
|
850
|
+
return (l, n) => {
|
|
851
|
+
const s = Ue("TopButton");
|
|
852
|
+
return y(), k(p(xe), {
|
|
852
853
|
class: "top-projectSelectorSubmenu",
|
|
853
854
|
notch: !1,
|
|
854
855
|
pos: "2"
|
|
855
856
|
}, {
|
|
856
|
-
opener:
|
|
857
|
-
|
|
857
|
+
opener: j(() => [
|
|
858
|
+
K(s, {
|
|
858
859
|
class: "top-projectSelectorSubmenu_opener",
|
|
859
860
|
"data-top-icon": "",
|
|
860
861
|
color: "theme"
|
|
861
862
|
})
|
|
862
863
|
]),
|
|
863
|
-
contentList:
|
|
864
|
-
(
|
|
864
|
+
contentList: j(() => [
|
|
865
|
+
(y(!0), T(D, null, fe(r.value, (c) => (y(), T("li", Vt, [
|
|
865
866
|
O("a", {
|
|
866
867
|
href: c.href,
|
|
867
868
|
title: c.title,
|
|
868
869
|
"data-top-icon": c.icon,
|
|
869
870
|
"data-right": c.right
|
|
870
|
-
}, null, 8,
|
|
871
|
+
}, null, 8, Lt)
|
|
871
872
|
]))), 256)),
|
|
872
|
-
O("li",
|
|
873
|
+
O("li", Gt, [
|
|
873
874
|
O("a", {
|
|
874
875
|
href: e.url,
|
|
875
876
|
"data-top-icon": "",
|
|
876
877
|
target: "_blank"
|
|
877
|
-
}, null, 8,
|
|
878
|
+
}, null, 8, Kt)
|
|
878
879
|
])
|
|
879
880
|
]),
|
|
880
881
|
_: 1
|
|
881
882
|
});
|
|
882
883
|
};
|
|
883
884
|
}
|
|
884
|
-
}),
|
|
885
|
+
}), pe = (e) => ({
|
|
885
886
|
id: null,
|
|
886
887
|
name: e,
|
|
887
888
|
listItemProps: {
|
|
888
889
|
type: "title"
|
|
889
890
|
}
|
|
890
|
-
}),
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
|
|
891
|
+
}), Ie = {
|
|
892
|
+
scheduledUpdate: !1,
|
|
893
|
+
manualUpdate: !1,
|
|
894
|
+
guestProjects: !1
|
|
895
|
+
}, Rt = (e, t) => {
|
|
896
|
+
const a = [], o = {
|
|
897
|
+
scheduledUpdate: pe(B().Projects.Scheduled_update),
|
|
898
|
+
manualUpdate: pe(B().Projects.Manual_update),
|
|
899
|
+
guestProjects: pe(B().Projects.Guest_projects)
|
|
900
|
+
}, r = t ? {
|
|
901
|
+
scheduledUpdate: !1,
|
|
902
|
+
manualUpdate: !1,
|
|
903
|
+
guestProjects: !1
|
|
904
|
+
} : Ie;
|
|
905
|
+
for (const l of e)
|
|
906
|
+
!r.scheduledUpdate && l.right?.startsWith("1") && l.on > 0 && (a.push(o.scheduledUpdate), r.scheduledUpdate = !0), !r.manualUpdate && l.right?.startsWith("1") && l.on === 0 && (a.push(o.manualUpdate), r.manualUpdate = !0), !r.guestProjects && l.right?.startsWith("0") && l.on >= 0 && (a.push(o.guestProjects), r.guestProjects = !0), a.push(l);
|
|
907
|
+
return a;
|
|
908
|
+
}, Ut = (e, t) => e.map((a) => ({
|
|
909
|
+
...a,
|
|
902
910
|
listItemProps: {
|
|
903
911
|
class: "top-projectSelector_item",
|
|
904
|
-
href: t ?
|
|
905
|
-
title:
|
|
912
|
+
href: t ? He(Number(a.id)) : void 0,
|
|
913
|
+
title: a.name
|
|
906
914
|
}
|
|
907
|
-
})),
|
|
908
|
-
if (!e || e.length === 0) return;
|
|
909
|
-
t && (e = e.filter((
|
|
910
|
-
const
|
|
911
|
-
return
|
|
912
|
-
},
|
|
915
|
+
})), Nt = (e, t, a, o, r) => {
|
|
916
|
+
if (!e || e.length === 0) return [];
|
|
917
|
+
t && (e = e.filter((n) => n.id !== t)), o && Object.keys(Ie).forEach((n) => Ie[n] = !1);
|
|
918
|
+
const l = Ut(e, a);
|
|
919
|
+
return Rt(l, r);
|
|
920
|
+
}, Dt = (e) => {
|
|
913
921
|
if (!e) return "";
|
|
914
922
|
let t = e;
|
|
915
923
|
return t = t.replace(/historyView=[^&]*/, ""), t = t.replace(/competitorsIds=[^&]*/, ""), t = t.replace(/searchersKeys=[^&]*/, ""), t = t.replace(/regionIndex=[^&]*/, ""), t = t.replace(/regionsIndexes=[^&]*/, ""), t = t.replace(/folderId=[^&]*/, ""), t = t.replace(/groupId=[^&]*/, ""), t = t.replace(/tags=[^&]*/, ""), window.mo?.getHash && !window.mo.getHash("dataSort").toString().includes("0000-00-00") && (t = t.replace(/dataSort=[^&]*/, "")), t = t.replace(/%22historyView%22:[^,]*,/, ""), t = t.replace(/%22competitorsIds%22:\[[^\]]*\],/, ""), t = t.replace(/%22searchersKeys%22:\[[^\]]*\],/, ""), t = t.replace(/%22regionIndex%22:[^,]*,/, ""), t = t.replace(/%22regionsIndexes%22:\[[^\]]*\],/, ""), t = t.replace(/%22folderId%22:[^,]*,/, ""), t = t.replace(/%22groupId%22:[^,]*,/, ""), t = t.replace(/%22tagsIds%22:\[[^\]]*\],/, ""), /%22dataSort%22:\{[^\}]*0000-00-00[^\}]*\}/.test(t) || (t = t.replace(/%22dataSort%22:\{[^\}]*\},/, "")), t;
|
|
916
|
-
},
|
|
924
|
+
}, He = (e) => {
|
|
917
925
|
const t = location.pathname.split("/");
|
|
918
|
-
let
|
|
919
|
-
t[1] == "project" && (
|
|
920
|
-
let
|
|
921
|
-
const l =
|
|
922
|
-
return
|
|
923
|
-
},
|
|
926
|
+
let a = "project/dynamics/", o = "";
|
|
927
|
+
t[1] == "project" && (a = t[1] + "/" + t[2] + "/"), ["watcher", "indexing", "sitemap", "audit", "direct", "adwords"].includes(t[4]) && (o = t[4] + "/");
|
|
928
|
+
let r = "/" + a + e + "/" + o;
|
|
929
|
+
const l = Dt(location.hash);
|
|
930
|
+
return r += l, r;
|
|
931
|
+
}, Me = (e) => {
|
|
924
932
|
let t = e.startsWith("http") ? e : "http://" + e;
|
|
925
933
|
return t = t.replace(/"/g, "%22"), t;
|
|
926
|
-
},
|
|
927
|
-
const
|
|
928
|
-
return
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
934
|
+
}, Ee = (e, t, a, o, r) => {
|
|
935
|
+
const l = e.gen("/get/projects_2/projects/", ["id", "user_id", "name", "url", "on", "right"]);
|
|
936
|
+
return l.params = {
|
|
937
|
+
...r,
|
|
938
|
+
filters: [
|
|
939
|
+
he("on", "GREATER_THAN_EQUALS", [0])
|
|
940
|
+
],
|
|
941
|
+
orders: [
|
|
942
|
+
ae("user_id", "DESC", [a]),
|
|
943
|
+
ae("on", "DESC"),
|
|
944
|
+
ae("favorite", "DESC"),
|
|
945
|
+
ae("id", "DESC")
|
|
946
|
+
]
|
|
947
|
+
}, l.options.onApiLoaded = (n, s, c) => {
|
|
948
|
+
const f = s.data.limit === 100 && s.data.filters.length === 1 && s.data.offset === 0, I = s.data.limit === 100 && s.data.filters.length > 1 ? !0 : void 0;
|
|
949
|
+
n.result = Nt(n.result, t, o, f, I), c?.(n, s);
|
|
950
|
+
}, l;
|
|
951
|
+
}, qt = (e) => e.gen("/add/projects_2/projects/"), ue = "projects_total:", Ft = 1440 * 60 * 1e3, Wt = (e, t) => {
|
|
952
|
+
localStorage.setItem(ue + e, JSON.stringify({
|
|
953
|
+
value: t,
|
|
954
|
+
expiresAt: Date.now() + Ft
|
|
955
|
+
}));
|
|
956
|
+
}, Jt = (e) => {
|
|
957
|
+
const t = localStorage.getItem(ue + e);
|
|
958
|
+
if (!t) return null;
|
|
959
|
+
const { value: a, expiresAt: o } = JSON.parse(t);
|
|
960
|
+
return Date.now() > o ? (localStorage.removeItem(ue + e), null) : a;
|
|
961
|
+
}, Ve = (e) => {
|
|
962
|
+
localStorage.removeItem(ue + e);
|
|
963
|
+
}, Ht = { class: "top-projectSelector_itemText" }, zt = { class: "top-projectSelector_itemName" }, Yt = { class: "top-projectSelector_itemId" }, Qt = { key: 1 }, Xt = {
|
|
932
964
|
key: 0,
|
|
933
965
|
class: "top-comment"
|
|
934
|
-
},
|
|
966
|
+
}, Le = 1e3, Co = /* @__PURE__ */ L({
|
|
935
967
|
__name: "projectSelector",
|
|
936
|
-
props: /* @__PURE__ */
|
|
968
|
+
props: /* @__PURE__ */ E({
|
|
937
969
|
project: {},
|
|
938
970
|
addLinksToProjects: { type: Boolean, default: !0 },
|
|
939
971
|
userId: { default: window.mo?.user?.id },
|
|
940
|
-
icon: {},
|
|
941
972
|
excludeProjectId: {},
|
|
942
973
|
placeholder: {},
|
|
943
974
|
openerText: {},
|
|
@@ -951,158 +982,175 @@ const xt = /* @__PURE__ */ L({
|
|
|
951
982
|
projectModifiers: {}
|
|
952
983
|
}),
|
|
953
984
|
emits: ["update:project"],
|
|
954
|
-
setup(e) {
|
|
955
|
-
const
|
|
956
|
-
|
|
957
|
-
const
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
985
|
+
setup(e, { expose: t }) {
|
|
986
|
+
const a = B(), o = e, r = P(() => o.placeholder ?? a.Projects.Select_project), l = P(() => o.openerText ?? a.Common.Projects), n = w(e, "project");
|
|
987
|
+
n.value.name || (n.value.name = l.value);
|
|
988
|
+
const s = () => {
|
|
989
|
+
d.value === "api" && g.value?.resetCache(!0), I.value = void 0, Ve(o.userId);
|
|
990
|
+
};
|
|
991
|
+
t({ resetCache: s });
|
|
992
|
+
const c = Ee(
|
|
993
|
+
o.client,
|
|
994
|
+
o.excludeProjectId,
|
|
995
|
+
o.userId,
|
|
996
|
+
o.addLinksToProjects
|
|
997
|
+
), f = qt(o.client), I = _(), i = _(Jt(o.userId)), g = _(null), d = P(() => {
|
|
998
|
+
if (i.value)
|
|
999
|
+
return i.value < Le ? "static" : "api";
|
|
1000
|
+
}), u = async () => {
|
|
1001
|
+
const v = await Ee(
|
|
1002
|
+
o.client,
|
|
1003
|
+
o.excludeProjectId,
|
|
1004
|
+
o.userId,
|
|
1005
|
+
o.addLinksToProjects,
|
|
1006
|
+
{ limit: Le }
|
|
1007
|
+
).call();
|
|
1008
|
+
if (!v.errors)
|
|
1009
|
+
return v;
|
|
1010
|
+
}, m = async () => {
|
|
1011
|
+
if (i.value) return;
|
|
1012
|
+
const A = await u();
|
|
1013
|
+
i.value = A?.total, d.value === "static" && (I.value = A?.result), i.value && Wt(o.userId, i.value);
|
|
1014
|
+
}, q = async (A) => {
|
|
1015
|
+
const v = await f.changeParams({
|
|
1016
|
+
url: A.name,
|
|
1017
|
+
name: A.name
|
|
966
1018
|
}).call();
|
|
967
|
-
if (!
|
|
968
|
-
if (
|
|
969
|
-
const
|
|
970
|
-
id: Number(
|
|
971
|
-
url: i.name,
|
|
972
|
-
name: i.name,
|
|
1019
|
+
if (!v.errors) {
|
|
1020
|
+
if (I.value && d.value === "static") {
|
|
1021
|
+
const x = {
|
|
1022
|
+
id: Number(v.result),
|
|
973
1023
|
user_id: o.userId,
|
|
1024
|
+
name: A.name,
|
|
1025
|
+
url: A.name,
|
|
974
1026
|
on: 0,
|
|
975
1027
|
right: "11111111111111111111",
|
|
976
1028
|
listItemProps: {
|
|
977
|
-
class: "top-projectSelector_item
|
|
978
|
-
href: o.addLinksToProjects ?
|
|
1029
|
+
class: "top-projectSelector_item",
|
|
1030
|
+
href: o.addLinksToProjects ? He(Number(v.result)) : void 0,
|
|
1031
|
+
title: A.name
|
|
979
1032
|
}
|
|
980
1033
|
};
|
|
981
|
-
|
|
982
|
-
}
|
|
983
|
-
|
|
1034
|
+
I.value?.unshift(x), Ve(o.userId);
|
|
1035
|
+
}
|
|
1036
|
+
d.value === "api" && s();
|
|
1037
|
+
}
|
|
1038
|
+
}, N = async () => {
|
|
1039
|
+
if (I.value || d.value !== "static") return;
|
|
1040
|
+
const A = await u();
|
|
1041
|
+
I.value = A?.result;
|
|
984
1042
|
};
|
|
985
|
-
return
|
|
986
|
-
await
|
|
987
|
-
}), (
|
|
988
|
-
const
|
|
989
|
-
return
|
|
1043
|
+
return ze(async () => {
|
|
1044
|
+
await m(), n.value.name || (n.value.name = l.value);
|
|
1045
|
+
}), (A, v) => {
|
|
1046
|
+
const x = Ue("TopButton");
|
|
1047
|
+
return d.value ? (y(), k(ke, {
|
|
990
1048
|
key: 0,
|
|
991
1049
|
ref_key: "refSelector",
|
|
992
1050
|
ref: g,
|
|
993
1051
|
class: "top-projectSelector",
|
|
994
|
-
modelValue:
|
|
995
|
-
"onUpdate:modelValue":
|
|
996
|
-
items:
|
|
997
|
-
title:
|
|
998
|
-
icon: e.icon,
|
|
1052
|
+
modelValue: n.value,
|
|
1053
|
+
"onUpdate:modelValue": v[1] || (v[1] = (h) => n.value = h),
|
|
1054
|
+
items: I.value,
|
|
1055
|
+
title: A.$i18n.Projects.Search_projects,
|
|
999
1056
|
modificator: "projectSelector",
|
|
1000
|
-
placeholder:
|
|
1001
|
-
|
|
1002
|
-
|
|
1057
|
+
placeholder: r.value,
|
|
1058
|
+
hasCloserBtn: "",
|
|
1059
|
+
api: d.value === "api" ? p(c) : void 0,
|
|
1060
|
+
apiSetSearchParams: d.value === "api" ? (...h) => p(Te)(...h, "name") : void 0,
|
|
1003
1061
|
useCache: "",
|
|
1004
1062
|
appendSearchToResult: "",
|
|
1005
|
-
appendSearchToResultCond:
|
|
1063
|
+
appendSearchToResultCond: p(we),
|
|
1006
1064
|
buttonProps: e.buttonProps,
|
|
1007
1065
|
openerShortcut: e.openerShortcut,
|
|
1008
|
-
onAppendItem:
|
|
1066
|
+
onAppendItem: q,
|
|
1067
|
+
onOpen: N
|
|
1009
1068
|
}, {
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}, {
|
|
1016
|
-
default: C(() => [
|
|
1017
|
-
q(B(i.$i18n.Common.Cancel), 1)
|
|
1069
|
+
item: j(({ item: h }) => [
|
|
1070
|
+
h.id ? (y(), T(D, { key: 0 }, [
|
|
1071
|
+
O("div", Ht, [
|
|
1072
|
+
O("span", zt, b(p(ut)(h.name, 25)), 1),
|
|
1073
|
+
O("span", Yt, " id " + b(h.id), 1)
|
|
1018
1074
|
]),
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
]),
|
|
1022
|
-
item: C(({ item: A }) => [
|
|
1023
|
-
A.id ? (p(), j(D, { key: 0 }, [
|
|
1024
|
-
O("div", Ot, [
|
|
1025
|
-
O("span", Rt, B(A.name), 1),
|
|
1026
|
-
O("span", Nt, " id " + B(A.id), 1)
|
|
1027
|
-
]),
|
|
1028
|
-
E(f, {
|
|
1075
|
+
A.$core.state.isMobile ? M("", !0) : (y(), k(x, {
|
|
1076
|
+
key: 0,
|
|
1029
1077
|
class: "top-projectSelector_itemLink",
|
|
1030
|
-
href:
|
|
1078
|
+
href: p(Me)(h.url),
|
|
1031
1079
|
"data-top-icon": "",
|
|
1032
1080
|
color: "theme",
|
|
1033
1081
|
target: "_blank",
|
|
1034
|
-
onClick:
|
|
1082
|
+
onClick: v[0] || (v[0] = F(() => {
|
|
1035
1083
|
}, ["stop"]))
|
|
1036
|
-
}, null, 8, ["href"]),
|
|
1037
|
-
|
|
1038
|
-
id:
|
|
1039
|
-
right:
|
|
1040
|
-
url:
|
|
1084
|
+
}, null, 8, ["href"])),
|
|
1085
|
+
K(Ot, {
|
|
1086
|
+
id: h.id,
|
|
1087
|
+
right: h.right ?? void 0,
|
|
1088
|
+
url: p(Me)(h.url)
|
|
1041
1089
|
}, null, 8, ["id", "right", "url"])
|
|
1042
|
-
], 64)) : (
|
|
1043
|
-
|
|
1044
|
-
|
|
1090
|
+
], 64)) : (y(), T("div", Qt, [
|
|
1091
|
+
p(we)(h.name) ? (y(), T("div", Xt, b(A.$i18n.Projects.Add_project) + ": ", 1)) : M("", !0),
|
|
1092
|
+
W(" " + b(h.name), 1)
|
|
1045
1093
|
]))
|
|
1046
1094
|
]),
|
|
1047
1095
|
_: 1
|
|
1048
|
-
}, 8, ["modelValue", "items", "title", "
|
|
1096
|
+
}, 8, ["modelValue", "items", "title", "placeholder", "api", "apiSetSearchParams", "appendSearchToResultCond", "buttonProps", "openerShortcut"])) : M("", !0);
|
|
1049
1097
|
};
|
|
1050
1098
|
}
|
|
1051
|
-
}),
|
|
1052
|
-
e =
|
|
1053
|
-
const
|
|
1054
|
-
if (
|
|
1055
|
-
return
|
|
1056
|
-
},
|
|
1099
|
+
}), Ge = (e) => "-" + e, ee = (e) => e[0] === "-" ? e.substring(1) : e, ce = (e, t) => {
|
|
1100
|
+
e = ee(e);
|
|
1101
|
+
const a = t.find((o) => o.id === e);
|
|
1102
|
+
if (a)
|
|
1103
|
+
return a;
|
|
1104
|
+
}, ko = (e, t, a) => {
|
|
1057
1105
|
t || (t = { id: e.id }), t.id = e.id, t.pos ??= "3", t.notch ??= !0, t.posBy ??= "fixed";
|
|
1058
|
-
const
|
|
1059
|
-
return
|
|
1060
|
-
|
|
1061
|
-
const l =
|
|
1106
|
+
const o = ct.genElPopupOpener("div", t);
|
|
1107
|
+
return o.classList.add("top-tagSelector"), e.useTopButton && o.classList.add("top-tagSelector-useTopButton", "top-button", "top-color_theme", "top-as-selector"), e.useTopButton || o.classList.add("top-tagSelector-custom"), e.mode === "filter" && o.classList.add("top-tagSelector-filter"), e.mode === "setter" && !e.filters && o.classList.add("top-tagSelector-setter_single"), e.mode === "setter" && e.filters && o.classList.add("top-tagSelector-setter_several"), o.onclick = (r) => {
|
|
1108
|
+
r.preventDefault(), r.stopPropagation(), o.onclick = null;
|
|
1109
|
+
const l = _(e.modelValue), n = {
|
|
1062
1110
|
model: l,
|
|
1063
1111
|
mode: e.mode,
|
|
1064
1112
|
targetId: e.targetId,
|
|
1065
1113
|
filters: e.filters,
|
|
1066
1114
|
payload: e.payload
|
|
1067
1115
|
};
|
|
1068
|
-
|
|
1069
|
-
e.modelValue = l.value,
|
|
1070
|
-
}),
|
|
1071
|
-
},
|
|
1072
|
-
e.modelValue =
|
|
1073
|
-
const l =
|
|
1074
|
-
l && (l.model.value =
|
|
1075
|
-
}),
|
|
1076
|
-
},
|
|
1077
|
-
|
|
1078
|
-
},
|
|
1079
|
-
const
|
|
1080
|
-
if (e.classList.toggle("top-tagSelector-selectedOne", !
|
|
1081
|
-
e.innerHTML = `<div>${
|
|
1116
|
+
Q(o, "topTagSelectorTarget", n), delete o.dataset.topPopupDisabled, Be(e.modelValue) || V(l, () => {
|
|
1117
|
+
e.modelValue = l.value, le(o, e, a);
|
|
1118
|
+
}), o.click();
|
|
1119
|
+
}, Be(e.modelValue) ? V(e.modelValue, () => le(o, e, a)) : Q(o, "topTagSelectorRender", (r) => {
|
|
1120
|
+
e.modelValue = r;
|
|
1121
|
+
const l = Q(o, "topTagSelectorTarget");
|
|
1122
|
+
l && (l.model.value = r), le(o, e, a);
|
|
1123
|
+
}), le(o, e, a), o;
|
|
1124
|
+
}, To = (e, t) => {
|
|
1125
|
+
Q(e, "topTagSelectorRender")?.(t);
|
|
1126
|
+
}, le = (e, t, a) => {
|
|
1127
|
+
const o = p(t.modelValue);
|
|
1128
|
+
if (e.classList.toggle("top-tagSelector-selectedOne", !o.length || o.length === 1), e.classList.toggle("top-tagSelector-toTwoLine", o.length > 5), t.mode === "setter" && t.filters) {
|
|
1129
|
+
e.innerHTML = `<div>${a}</div>`;
|
|
1082
1130
|
return;
|
|
1083
1131
|
}
|
|
1084
|
-
if (e.innerHTML = "", !
|
|
1085
|
-
const
|
|
1132
|
+
if (e.innerHTML = "", !o.length && t.mode === "filter") {
|
|
1133
|
+
const r = Ke({
|
|
1086
1134
|
id: "all",
|
|
1087
1135
|
colorId: "",
|
|
1088
|
-
name:
|
|
1136
|
+
name: B().Common?.All_tags ?? "",
|
|
1089
1137
|
state: ""
|
|
1090
1138
|
});
|
|
1091
|
-
e.append(
|
|
1139
|
+
e.append(r);
|
|
1092
1140
|
}
|
|
1093
|
-
|
|
1094
|
-
const l =
|
|
1095
|
-
id:
|
|
1096
|
-
colorId:
|
|
1097
|
-
name:
|
|
1098
|
-
state:
|
|
1141
|
+
o.forEach((r) => {
|
|
1142
|
+
const l = Ke({
|
|
1143
|
+
id: ee(r),
|
|
1144
|
+
colorId: ce(r, t.tags)?.color_id ?? "",
|
|
1145
|
+
name: ce(r, t.tags)?.name ?? "",
|
|
1146
|
+
state: ee(r) === r ? "selected" : "excluded"
|
|
1099
1147
|
});
|
|
1100
1148
|
e.append(l);
|
|
1101
1149
|
});
|
|
1102
|
-
},
|
|
1150
|
+
}, Ke = (e) => {
|
|
1103
1151
|
const t = document.createElement("div");
|
|
1104
1152
|
return t.classList.add("top-tagSelector_tagIcon"), t.classList.toggle("top-tagSelector-active", !!e.state), t.classList.toggle("top-tagSelector-excluded", e.state === "excluded"), t.dataset.tag_id = e.id, t.dataset.tag_color_id = e.colorId, t.title = e.name, t;
|
|
1105
|
-
},
|
|
1153
|
+
}, Zt = [
|
|
1106
1154
|
{
|
|
1107
1155
|
id: "1",
|
|
1108
1156
|
name: "Without Tag",
|
|
@@ -1153,7 +1201,7 @@ const xt = /* @__PURE__ */ L({
|
|
|
1153
1201
|
name: "Turquoise",
|
|
1154
1202
|
color_id: "10"
|
|
1155
1203
|
}
|
|
1156
|
-
],
|
|
1204
|
+
], eo = ["data-tag_id", "data-tag_color_id", "title"], Se = /* @__PURE__ */ L({
|
|
1157
1205
|
__name: "tagIcon",
|
|
1158
1206
|
props: {
|
|
1159
1207
|
id: {},
|
|
@@ -1162,8 +1210,8 @@ const xt = /* @__PURE__ */ L({
|
|
|
1162
1210
|
state: {}
|
|
1163
1211
|
},
|
|
1164
1212
|
setup(e) {
|
|
1165
|
-
return (t,
|
|
1166
|
-
class:
|
|
1213
|
+
return (t, a) => (y(), T("div", {
|
|
1214
|
+
class: te({
|
|
1167
1215
|
"top-tagSelector_tagIcon": !0,
|
|
1168
1216
|
"top-tagSelector-active": !!e.state,
|
|
1169
1217
|
"top-tagSelector-excluded": e.state === "excluded"
|
|
@@ -1171,11 +1219,11 @@ const xt = /* @__PURE__ */ L({
|
|
|
1171
1219
|
"data-tag_id": e.id,
|
|
1172
1220
|
"data-tag_color_id": e.colorId,
|
|
1173
1221
|
title: e.name
|
|
1174
|
-
}, null, 10,
|
|
1222
|
+
}, null, 10, eo));
|
|
1175
1223
|
}
|
|
1176
|
-
}),
|
|
1224
|
+
}), to = ["contenteditable", "onKeydown"], Oe = /* @__PURE__ */ L({
|
|
1177
1225
|
__name: "tagPopupListItem",
|
|
1178
|
-
props: /* @__PURE__ */
|
|
1226
|
+
props: /* @__PURE__ */ E({
|
|
1179
1227
|
editable: { type: Boolean },
|
|
1180
1228
|
disabled: { type: Boolean },
|
|
1181
1229
|
canExclude: { type: Boolean },
|
|
@@ -1189,74 +1237,74 @@ const xt = /* @__PURE__ */ L({
|
|
|
1189
1237
|
},
|
|
1190
1238
|
nameModifiers: {}
|
|
1191
1239
|
}),
|
|
1192
|
-
emits: /* @__PURE__ */
|
|
1240
|
+
emits: /* @__PURE__ */ E(["update:name", "unselect", "exclude", "select"], ["update:name"]),
|
|
1193
1241
|
setup(e, { emit: t }) {
|
|
1194
|
-
const
|
|
1195
|
-
contenteditable:
|
|
1196
|
-
onpaste: (
|
|
1197
|
-
} : {}),
|
|
1198
|
-
|
|
1199
|
-
},
|
|
1200
|
-
const
|
|
1201
|
-
if (!
|
|
1202
|
-
l.value && (l.value.innerText =
|
|
1242
|
+
const a = e, o = t, r = w(e, "name"), l = _(null), n = P(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
|
|
1243
|
+
contenteditable: s.value,
|
|
1244
|
+
onpaste: (g) => g.preventDefault()
|
|
1245
|
+
} : {}), s = _(!1), c = async () => {
|
|
1246
|
+
s.value = !0, await Ye(), l.value?.focus();
|
|
1247
|
+
}, f = () => {
|
|
1248
|
+
const g = l.value?.innerText;
|
|
1249
|
+
if (!g) return I();
|
|
1250
|
+
l.value && (l.value.innerText = g), s.value = !1, o("update:name", g);
|
|
1203
1251
|
}, I = async () => {
|
|
1204
|
-
l.value && (l.value.innerText =
|
|
1205
|
-
},
|
|
1206
|
-
if (
|
|
1207
|
-
let
|
|
1208
|
-
|
|
1252
|
+
l.value && (l.value.innerText = a.name), s.value = !1;
|
|
1253
|
+
}, i = (g) => {
|
|
1254
|
+
if (s.value || a.disabled) return;
|
|
1255
|
+
let d = "selected";
|
|
1256
|
+
a.canExclude && (g.ctrlKey || g.metaKey) && (d = "excluded"), a.state == d && (d = ""), d === "" && o("unselect"), d === "selected" && o("select"), d === "excluded" && o("exclude");
|
|
1209
1257
|
};
|
|
1210
|
-
return (
|
|
1211
|
-
class:
|
|
1258
|
+
return (g, d) => (y(), k(Ce, {
|
|
1259
|
+
class: te({
|
|
1212
1260
|
"top-tagSelector_tagListItem": !0,
|
|
1213
|
-
"top-tagSelector_tagListItem-inEdit":
|
|
1261
|
+
"top-tagSelector_tagListItem-inEdit": s.value,
|
|
1214
1262
|
"top-tagSelector_tagListItem-disabled": e.disabled,
|
|
1215
1263
|
"top-tagSelector_tagListItem-canExclude": e.canExclude,
|
|
1216
1264
|
"top-tagSelector-active": !!e.state,
|
|
1217
1265
|
"top-tagSelector-excluded": e.state === "excluded"
|
|
1218
1266
|
}),
|
|
1219
|
-
onClick:
|
|
1267
|
+
onClick: F(i, ["stop"])
|
|
1220
1268
|
}, {
|
|
1221
|
-
default:
|
|
1222
|
-
|
|
1269
|
+
default: j(() => [
|
|
1270
|
+
K(Se, {
|
|
1223
1271
|
id: e.id,
|
|
1224
|
-
name:
|
|
1272
|
+
name: r.value,
|
|
1225
1273
|
colorId: e.colorId,
|
|
1226
1274
|
state: e.state
|
|
1227
1275
|
}, null, 8, ["id", "name", "colorId", "state"]),
|
|
1228
|
-
O("span",
|
|
1276
|
+
O("span", Ne({
|
|
1229
1277
|
ref_key: "elName",
|
|
1230
1278
|
ref: l,
|
|
1231
1279
|
class: "top-tagSelector_tagListItemName",
|
|
1232
|
-
contenteditable:
|
|
1233
|
-
},
|
|
1280
|
+
contenteditable: s.value ? "plaintext-only" : !1
|
|
1281
|
+
}, n.value, {
|
|
1234
1282
|
onKeydown: [
|
|
1235
|
-
|
|
1236
|
-
|
|
1283
|
+
be(F(f, ["stop"]), ["enter"]),
|
|
1284
|
+
be(F(I, ["stop"]), ["esc"])
|
|
1237
1285
|
]
|
|
1238
|
-
}),
|
|
1239
|
-
e.editable ? (
|
|
1240
|
-
|
|
1286
|
+
}), b(r.value), 17, to),
|
|
1287
|
+
e.editable ? (y(), T(D, { key: 0 }, [
|
|
1288
|
+
s.value ? (y(), T("span", {
|
|
1241
1289
|
key: 1,
|
|
1242
1290
|
"data-top-icon": "",
|
|
1243
1291
|
class: "top-tagSelector_edit",
|
|
1244
|
-
onClick:
|
|
1245
|
-
})) : (
|
|
1292
|
+
onClick: F(f, ["stop"])
|
|
1293
|
+
})) : (y(), T("span", {
|
|
1246
1294
|
key: 0,
|
|
1247
1295
|
"data-top-icon": "",
|
|
1248
1296
|
class: "top-tagSelector_edit",
|
|
1249
1297
|
onClick: c
|
|
1250
1298
|
}))
|
|
1251
|
-
], 64)) :
|
|
1299
|
+
], 64)) : M("", !0)
|
|
1252
1300
|
]),
|
|
1253
1301
|
_: 1
|
|
1254
1302
|
}, 8, ["class"]));
|
|
1255
1303
|
}
|
|
1256
|
-
}),
|
|
1304
|
+
}), oo = { key: 1 }, ao = /* @__PURE__ */ L({
|
|
1257
1305
|
inheritAttrs: !1,
|
|
1258
1306
|
__name: "popupOpener",
|
|
1259
|
-
props: /* @__PURE__ */
|
|
1307
|
+
props: /* @__PURE__ */ E({
|
|
1260
1308
|
modelValue: {},
|
|
1261
1309
|
id: {},
|
|
1262
1310
|
tags: {},
|
|
@@ -1274,18 +1322,18 @@ const xt = /* @__PURE__ */ L({
|
|
|
1274
1322
|
}),
|
|
1275
1323
|
emits: ["update:modelValue"],
|
|
1276
1324
|
setup(e) {
|
|
1277
|
-
const t = e,
|
|
1278
|
-
model:
|
|
1325
|
+
const t = e, a = w(e, "modelValue"), o = t.useTopButton ? Z : "div", r = t.useTopButton ? "html" : "default", l = {
|
|
1326
|
+
model: a,
|
|
1279
1327
|
mode: t.mode,
|
|
1280
1328
|
targetId: t.targetId,
|
|
1281
1329
|
filters: t.filters,
|
|
1282
1330
|
payload: t.payload
|
|
1283
1331
|
};
|
|
1284
|
-
return (
|
|
1285
|
-
const c =
|
|
1286
|
-
return
|
|
1287
|
-
default:
|
|
1288
|
-
|
|
1332
|
+
return (n, s) => {
|
|
1333
|
+
const c = Qe("top-data");
|
|
1334
|
+
return y(), k(lt, { id: e.id }, {
|
|
1335
|
+
default: j(() => [
|
|
1336
|
+
Xe((y(), k(Ze(p(o)), Ne({
|
|
1289
1337
|
class: {
|
|
1290
1338
|
"top-tagSelector": !0,
|
|
1291
1339
|
"top-tagSelector-useTopButton": t.useTopButton,
|
|
@@ -1294,27 +1342,27 @@ const xt = /* @__PURE__ */ L({
|
|
|
1294
1342
|
"top-tagSelector-filter": t.mode === "filter",
|
|
1295
1343
|
"top-tagSelector-setter_single": t.mode === "setter" && !e.filters,
|
|
1296
1344
|
"top-tagSelector-setter_several": t.mode === "setter" && e.filters,
|
|
1297
|
-
"top-tagSelector-selectedOne": !
|
|
1298
|
-
"top-tagSelector-toTwoLine":
|
|
1345
|
+
"top-tagSelector-selectedOne": !a.value.length || a.value.length === 1,
|
|
1346
|
+
"top-tagSelector-toTwoLine": a.value.length > 5
|
|
1299
1347
|
},
|
|
1300
1348
|
color: "theme",
|
|
1301
1349
|
styling: e.styling
|
|
1302
|
-
},
|
|
1303
|
-
[
|
|
1304
|
-
!
|
|
1350
|
+
}, n.$attrs), {
|
|
1351
|
+
[p(r)]: j(() => [
|
|
1352
|
+
!a.value.length && e.mode === "filter" ? (y(), k(Se, {
|
|
1305
1353
|
key: 0,
|
|
1306
1354
|
id: "all",
|
|
1307
1355
|
colorId: "",
|
|
1308
|
-
name:
|
|
1356
|
+
name: n.$i18n.Common.All_tags ?? "",
|
|
1309
1357
|
state: ""
|
|
1310
|
-
}, null, 8, ["name"])) :
|
|
1311
|
-
e.mode === "setter" && e.filters ? (
|
|
1312
|
-
|
|
1313
|
-
])) : (
|
|
1314
|
-
id:
|
|
1315
|
-
colorId:
|
|
1316
|
-
name:
|
|
1317
|
-
state:
|
|
1358
|
+
}, null, 8, ["name"])) : M("", !0),
|
|
1359
|
+
e.mode === "setter" && e.filters ? (y(), T("div", oo, [
|
|
1360
|
+
et(n.$slots, "default")
|
|
1361
|
+
])) : (y(!0), T(D, { key: 2 }, fe(a.value, (f) => (y(), k(Se, {
|
|
1362
|
+
id: p(ee)(f),
|
|
1363
|
+
colorId: p(ce)(f, e.tags)?.color_id ?? "",
|
|
1364
|
+
name: p(ce)(f, e.tags)?.name ?? "",
|
|
1365
|
+
state: p(ee)(f) === f ? "selected" : "excluded"
|
|
1318
1366
|
}, null, 8, ["id", "colorId", "name", "state"]))), 256))
|
|
1319
1367
|
]),
|
|
1320
1368
|
_: 2
|
|
@@ -1326,9 +1374,9 @@ const xt = /* @__PURE__ */ L({
|
|
|
1326
1374
|
}, 8, ["id"]);
|
|
1327
1375
|
};
|
|
1328
1376
|
}
|
|
1329
|
-
}),
|
|
1377
|
+
}), jo = /* @__PURE__ */ L({
|
|
1330
1378
|
__name: "tagSelector",
|
|
1331
|
-
props: /* @__PURE__ */
|
|
1379
|
+
props: /* @__PURE__ */ E({
|
|
1332
1380
|
modelValue: {},
|
|
1333
1381
|
tags: {},
|
|
1334
1382
|
tagsEditable: { type: Boolean },
|
|
@@ -1346,177 +1394,177 @@ const xt = /* @__PURE__ */ L({
|
|
|
1346
1394
|
},
|
|
1347
1395
|
modelModifiers: {},
|
|
1348
1396
|
tags: {
|
|
1349
|
-
default:
|
|
1397
|
+
default: Re(Zt)
|
|
1350
1398
|
},
|
|
1351
1399
|
tagsModifiers: {}
|
|
1352
1400
|
}),
|
|
1353
|
-
emits: /* @__PURE__ */
|
|
1401
|
+
emits: /* @__PURE__ */ E(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
|
|
1354
1402
|
setup(e, { emit: t }) {
|
|
1355
|
-
const
|
|
1356
|
-
|
|
1357
|
-
},
|
|
1358
|
-
|
|
1359
|
-
const c =
|
|
1360
|
-
const
|
|
1361
|
-
return
|
|
1403
|
+
const a = B(), o = e, r = w(e, "modelValue"), l = w(e, "tags"), n = t, s = at((v, x) => {
|
|
1404
|
+
n(v, x);
|
|
1405
|
+
}, o.emitDelay);
|
|
1406
|
+
o.singleMode && !r.value.length && (r.value = [l.value[0].id]);
|
|
1407
|
+
const c = o.id ?? "top-popup-id-" + Math.random(), f = _("add"), I = () => {
|
|
1408
|
+
const v = " " + a.Common.Tags?.toLowerCase(), x = /* @__PURE__ */ new Map();
|
|
1409
|
+
return x.set("add", { value: "add", title: a.Common.Add + v }), x.set("replace", { value: "replace", title: a.Common.Replace + v }), x.set("delete", { value: "delete", title: a.Common.Delete + v }), x;
|
|
1362
1410
|
};
|
|
1363
|
-
let
|
|
1364
|
-
model:
|
|
1411
|
+
let i = tt({
|
|
1412
|
+
model: r,
|
|
1365
1413
|
mode: "filter",
|
|
1366
1414
|
targetId: void 0,
|
|
1367
1415
|
filters: void 0,
|
|
1368
1416
|
payload: void 0
|
|
1369
1417
|
});
|
|
1370
|
-
|
|
1371
|
-
|
|
1418
|
+
V(r, () => {
|
|
1419
|
+
s("selector", r.value);
|
|
1372
1420
|
});
|
|
1373
|
-
const
|
|
1374
|
-
if (
|
|
1375
|
-
return
|
|
1376
|
-
}),
|
|
1377
|
-
if (
|
|
1378
|
-
if (
|
|
1379
|
-
if (
|
|
1421
|
+
const g = P(() => {
|
|
1422
|
+
if (i.value.mode === "setter" && o.maxTagsForSetter && !i.value.filters)
|
|
1423
|
+
return i.value.model.value.length >= o.maxTagsForSetter;
|
|
1424
|
+
}), d = (v) => {
|
|
1425
|
+
if (v !== "all") {
|
|
1426
|
+
if (i.value.model.value.includes(v)) return "selected";
|
|
1427
|
+
if (i.value.model.value.includes(Ge(v))) return "excluded";
|
|
1380
1428
|
}
|
|
1381
|
-
return
|
|
1382
|
-
},
|
|
1383
|
-
const
|
|
1384
|
-
let
|
|
1385
|
-
|
|
1386
|
-
if (!
|
|
1387
|
-
const
|
|
1388
|
-
return
|
|
1389
|
-
}),
|
|
1390
|
-
tagsIds:
|
|
1391
|
-
targetId:
|
|
1392
|
-
payload:
|
|
1429
|
+
return v === "all" && !i.value.model.value.length ? "selected" : "";
|
|
1430
|
+
}, u = (v, x) => {
|
|
1431
|
+
const h = Ge(v);
|
|
1432
|
+
let C = i.value.model.value.filter((G) => G !== v && G !== h);
|
|
1433
|
+
x === "select" && C.push(v), x === "exclude" && C.push(h), i.value.mode === "setter" && i.value.targetId !== void 0 && o.requiredForSetter && (C.length || C.push("1"), C.length === 2 && i.value.model.value.length === 1 && i.value.model.value[0] === "1" && (C = C.filter((G) => G !== "1"))), o.singleMode && !i.value.filters && (C.length || (C = i.value.model.value), C.length > 1 && (C = [C[C.length - 1]])), C.sort((G, oe) => {
|
|
1434
|
+
if (!o.tags) return 0;
|
|
1435
|
+
const J = o.tags.findIndex((z) => z.id === G), H = o.tags.findIndex((z) => z.id === oe);
|
|
1436
|
+
return J - H;
|
|
1437
|
+
}), i.value.model.value = C, i.value.mode === "setter" && i.value.targetId !== void 0 && s("setter", {
|
|
1438
|
+
tagsIds: C,
|
|
1439
|
+
targetId: i.value.targetId,
|
|
1440
|
+
payload: i.value.payload
|
|
1393
1441
|
});
|
|
1394
|
-
},
|
|
1395
|
-
let
|
|
1396
|
-
return
|
|
1397
|
-
}),
|
|
1398
|
-
const
|
|
1399
|
-
if (!
|
|
1400
|
-
const
|
|
1442
|
+
}, m = P(() => {
|
|
1443
|
+
let v = "top-tagSelector_popup";
|
|
1444
|
+
return i.value.mode === "filter" && (v += " top-tagSelector_popup-filter"), i.value.mode === "setter" && (v += " top-tagSelector_popup-setter"), v;
|
|
1445
|
+
}), q = () => {
|
|
1446
|
+
const v = prompt("", "New tag");
|
|
1447
|
+
if (!v || v === "New tag") return;
|
|
1448
|
+
const x = l.value.length + 1;
|
|
1401
1449
|
l.value.push({
|
|
1402
|
-
id: String(
|
|
1403
|
-
name:
|
|
1404
|
-
color_id: String((
|
|
1405
|
-
}),
|
|
1406
|
-
},
|
|
1407
|
-
if (
|
|
1408
|
-
if (
|
|
1450
|
+
id: String(x),
|
|
1451
|
+
name: v,
|
|
1452
|
+
color_id: String((x - 1) % 10 + 1)
|
|
1453
|
+
}), n("tagsChanged", l.value);
|
|
1454
|
+
}, N = (v) => {
|
|
1455
|
+
if (i.value = Q(v.elPopupOpener, "topTagSelectorTarget"), !i.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
|
|
1456
|
+
if (i.value.filters && (f.value = "add", i.value.model.value = []), !Y.$?.ui.sortable) {
|
|
1409
1457
|
console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
|
|
1410
1458
|
return;
|
|
1411
1459
|
}
|
|
1412
|
-
!Y.state.isMobile && !Y.state.isMobileUA && l.value && $(
|
|
1460
|
+
!Y.state.isMobile && !Y.state.isMobileUA && l.value && $(v.elPopup).sortable({
|
|
1413
1461
|
items: 'li:has([data-tag_id]:not([data-tag_id="all"]))',
|
|
1414
1462
|
/**
|
|
1415
1463
|
* @todo Удалить `[contenteditable="true"]` через пол года после выхода версии firefox с поддержкой contenteditable plaintext-only, включая бета версии
|
|
1416
1464
|
*/
|
|
1417
1465
|
cancel: '[contenteditable="plaintext-only"], [contenteditable="true"]',
|
|
1418
1466
|
distance: 10,
|
|
1419
|
-
stop: function(
|
|
1467
|
+
stop: function(x, h) {
|
|
1420
1468
|
if (!l.value) return;
|
|
1421
|
-
const
|
|
1422
|
-
|
|
1469
|
+
const C = $(h.item).parent().find("[data-tag_id]"), G = [];
|
|
1470
|
+
C.each((oe, J) => {
|
|
1423
1471
|
if (!l.value) return;
|
|
1424
|
-
const
|
|
1425
|
-
|
|
1426
|
-
}), l.value.sort((
|
|
1427
|
-
const
|
|
1428
|
-
return
|
|
1429
|
-
}),
|
|
1472
|
+
const H = $(J).attr("data-tag_id");
|
|
1473
|
+
G.push(H);
|
|
1474
|
+
}), l.value.sort((oe, J) => {
|
|
1475
|
+
const H = G.findIndex((ge) => ge === oe.id), z = G.findIndex((ge) => ge === J.id);
|
|
1476
|
+
return H - z;
|
|
1477
|
+
}), s("tagsChanged", l.value);
|
|
1430
1478
|
}
|
|
1431
1479
|
});
|
|
1432
|
-
},
|
|
1433
|
-
Y.$?.ui.sortable && $(
|
|
1480
|
+
}, A = (v) => {
|
|
1481
|
+
Y.$?.ui.sortable && $(v.elPopup).data("ui-sortable") && $(v.elPopup).sortable("destroy");
|
|
1434
1482
|
};
|
|
1435
|
-
return (
|
|
1436
|
-
|
|
1437
|
-
modelValue:
|
|
1438
|
-
"onUpdate:modelValue":
|
|
1439
|
-
id:
|
|
1483
|
+
return (v, x) => (y(), T(D, null, [
|
|
1484
|
+
K(ao, {
|
|
1485
|
+
modelValue: r.value,
|
|
1486
|
+
"onUpdate:modelValue": x[0] || (x[0] = (h) => r.value = h),
|
|
1487
|
+
id: p(c),
|
|
1440
1488
|
tags: l.value,
|
|
1441
1489
|
styling: e.styling,
|
|
1442
1490
|
mode: "filter",
|
|
1443
1491
|
useTopButton: e.useTopButton
|
|
1444
1492
|
}, null, 8, ["modelValue", "id", "tags", "styling", "useTopButton"]),
|
|
1445
|
-
|
|
1446
|
-
id:
|
|
1447
|
-
class:
|
|
1448
|
-
onOpen:
|
|
1449
|
-
onClose:
|
|
1493
|
+
K(xe, {
|
|
1494
|
+
id: p(c),
|
|
1495
|
+
class: te(m.value),
|
|
1496
|
+
onOpen: x[4] || (x[4] = (h) => N(h)),
|
|
1497
|
+
onClose: x[5] || (x[5] = (h) => A(h)),
|
|
1450
1498
|
"transition-duration": 50
|
|
1451
|
-
},
|
|
1452
|
-
contentList:
|
|
1453
|
-
|
|
1499
|
+
}, ot({
|
|
1500
|
+
contentList: j(() => [
|
|
1501
|
+
p(i).mode === "filter" && !e.singleMode ? (y(), k(Oe, {
|
|
1454
1502
|
key: 0,
|
|
1455
1503
|
id: "all",
|
|
1456
1504
|
colorId: "",
|
|
1457
|
-
name:
|
|
1458
|
-
state:
|
|
1459
|
-
onSelect:
|
|
1460
|
-
}, null, 8, ["name", "state"])) :
|
|
1461
|
-
(
|
|
1462
|
-
key:
|
|
1463
|
-
id:
|
|
1464
|
-
colorId:
|
|
1465
|
-
name:
|
|
1466
|
-
state:
|
|
1467
|
-
canExclude:
|
|
1505
|
+
name: v.$i18n.Common.All_tags ?? "",
|
|
1506
|
+
state: p(i).model.value.length ? "" : "selected",
|
|
1507
|
+
onSelect: x[3] || (x[3] = (h) => p(i).model.value = [])
|
|
1508
|
+
}, null, 8, ["name", "state"])) : M("", !0),
|
|
1509
|
+
(y(!0), T(D, null, fe(l.value, (h) => (y(), k(Oe, {
|
|
1510
|
+
key: h.id,
|
|
1511
|
+
id: h.id,
|
|
1512
|
+
colorId: h.color_id,
|
|
1513
|
+
name: h.name,
|
|
1514
|
+
state: d(h.id),
|
|
1515
|
+
canExclude: p(i).mode === "filter" && !e.singleMode,
|
|
1468
1516
|
editable: e.tagsEditable,
|
|
1469
|
-
disabled:
|
|
1470
|
-
onUnselect: (
|
|
1471
|
-
onSelect: (
|
|
1472
|
-
onExclude: (
|
|
1473
|
-
"onUpdate:name": (
|
|
1474
|
-
|
|
1517
|
+
disabled: g.value && d(h.id) === "",
|
|
1518
|
+
onUnselect: (C) => u(h.id, "unselect"),
|
|
1519
|
+
onSelect: (C) => u(h.id, "select"),
|
|
1520
|
+
onExclude: (C) => u(h.id, "exclude"),
|
|
1521
|
+
"onUpdate:name": (C) => {
|
|
1522
|
+
h.name = C, p(s)("tagsChanged", l.value);
|
|
1475
1523
|
}
|
|
1476
1524
|
}, null, 8, ["id", "colorId", "name", "state", "canExclude", "editable", "disabled", "onUnselect", "onSelect", "onExclude", "onUpdate:name"]))), 128)),
|
|
1477
|
-
e.tagsEditable && l.value.length < e.tagsMax && l.value.length < 20 ? (
|
|
1525
|
+
e.tagsEditable && l.value.length < e.tagsMax && l.value.length < 20 ? (y(), k(Ce, {
|
|
1478
1526
|
key: 1,
|
|
1479
1527
|
"data-top-icon": "",
|
|
1480
|
-
onClick:
|
|
1528
|
+
onClick: F(q, ["stop"])
|
|
1481
1529
|
}, {
|
|
1482
|
-
default:
|
|
1483
|
-
|
|
1530
|
+
default: j(() => [
|
|
1531
|
+
W(b(v.$i18n.Common.Add), 1)
|
|
1484
1532
|
]),
|
|
1485
1533
|
_: 1
|
|
1486
|
-
})) :
|
|
1534
|
+
})) : M("", !0)
|
|
1487
1535
|
]),
|
|
1488
1536
|
_: 2
|
|
1489
1537
|
}, [
|
|
1490
|
-
|
|
1538
|
+
p(i).mode === "setter" && p(i).filters ? {
|
|
1491
1539
|
name: "header",
|
|
1492
|
-
fn:
|
|
1493
|
-
|
|
1494
|
-
modelValue:
|
|
1495
|
-
"onUpdate:modelValue":
|
|
1540
|
+
fn: j(() => [
|
|
1541
|
+
K(ve, {
|
|
1542
|
+
modelValue: f.value,
|
|
1543
|
+
"onUpdate:modelValue": x[1] || (x[1] = (h) => f.value = h),
|
|
1496
1544
|
options: I()
|
|
1497
1545
|
}, null, 8, ["modelValue", "options"])
|
|
1498
1546
|
]),
|
|
1499
1547
|
key: "0"
|
|
1500
1548
|
} : void 0,
|
|
1501
|
-
|
|
1549
|
+
p(i).mode === "setter" && p(i).filters ? {
|
|
1502
1550
|
name: "footer",
|
|
1503
|
-
fn:
|
|
1504
|
-
|
|
1505
|
-
default:
|
|
1506
|
-
|
|
1551
|
+
fn: j(() => [
|
|
1552
|
+
K(Z, { color: "theme" }, {
|
|
1553
|
+
default: j(() => [
|
|
1554
|
+
W(b(v.$i18n.Common.Cancel2), 1)
|
|
1507
1555
|
]),
|
|
1508
1556
|
_: 1
|
|
1509
1557
|
}),
|
|
1510
|
-
|
|
1511
|
-
onClick:
|
|
1512
|
-
tagsIds:
|
|
1513
|
-
filters:
|
|
1514
|
-
filtersAction:
|
|
1515
|
-
payload:
|
|
1558
|
+
K(Z, {
|
|
1559
|
+
onClick: x[2] || (x[2] = (h) => p(s)("setter", {
|
|
1560
|
+
tagsIds: p(i).model.value,
|
|
1561
|
+
filters: p(i).filters,
|
|
1562
|
+
filtersAction: f.value,
|
|
1563
|
+
payload: p(i).payload
|
|
1516
1564
|
}))
|
|
1517
1565
|
}, {
|
|
1518
|
-
default:
|
|
1519
|
-
|
|
1566
|
+
default: j(() => [
|
|
1567
|
+
W(b(f.value === "add" ? v.$i18n.Common.Add : "") + " " + b(f.value === "replace" ? v.$i18n.Common.Replace : "") + " " + b(f.value === "delete" ? v.$i18n.Common.Delete : ""), 1)
|
|
1520
1568
|
]),
|
|
1521
1569
|
_: 1
|
|
1522
1570
|
})
|
|
@@ -1528,18 +1576,18 @@ const xt = /* @__PURE__ */ L({
|
|
|
1528
1576
|
}
|
|
1529
1577
|
});
|
|
1530
1578
|
export {
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1579
|
+
yo as TopCompetitorSelector,
|
|
1580
|
+
xo as TopGroupSelector,
|
|
1581
|
+
Co as TopProjectSelector,
|
|
1582
|
+
So as TopRegionSelector,
|
|
1583
|
+
jo as TopTagSelector,
|
|
1584
|
+
ao as TopTagSelectorPopupOpener,
|
|
1585
|
+
Se as TopTagSelectorTagIcon,
|
|
1586
|
+
St as dialogRegionSelector,
|
|
1587
|
+
It as findRegion,
|
|
1588
|
+
ko as genElTopTagSelectorPopupOpener,
|
|
1589
|
+
Fe as genSearcherByKey,
|
|
1590
|
+
To as renderElTopTagSelectorPopupOpener,
|
|
1591
|
+
Io as useItemsFromCompetitors
|
|
1544
1592
|
};
|
|
1545
1593
|
//# sourceMappingURL=project.js.map
|