@topvisor/ui 1.6.1-searcherKey.0 → 1.6.1
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/worker-BfCrg4RI.es.amd.js.map +1 -1
- package/.chunks/worker-BfCrg4RI.es.js.map +1 -1
- package/assets/project.css +1 -1
- package/icomoon/Topvisor icons.json +338 -287
- package/icomoon/demo.html +29 -1
- package/icomoon/fonts/Topvisor-2.eot +0 -0
- package/icomoon/fonts/Topvisor-2.svg +2 -0
- 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 +11 -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 +547 -369
- package/project/project.js.map +1 -1
- package/src/components/project/project.d.ts +1 -0
- package/src/components/project/projectBar/types.d.ts +47 -0
- package/src/components/project/regionSelector/types.d.ts +0 -6
package/project/project.js
CHANGED
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
/* end import css */
|
|
7
7
|
|
|
8
8
|
import { a as e, i as t } from "../.chunks/api-nVBtzTDk.es.js";
|
|
9
|
-
import { E as n, O as r, P as i, h as a,
|
|
10
|
-
import { storage as
|
|
11
|
-
import { t as
|
|
9
|
+
import { E as n, O as r, P as i, h as a, i as o, n as s } from "../.chunks/forms-dosApNxi.es.js";
|
|
10
|
+
import { storage as c } from "../utils/dom.js";
|
|
11
|
+
import { t as l } from "../.chunks/worker-BfCrg4RI.es.js";
|
|
12
12
|
import "../.chunks/app-qGtdp_Vh.es.js";
|
|
13
|
-
import { t as
|
|
14
|
-
import { validUrl as
|
|
15
|
-
import { ellipsis as
|
|
16
|
-
import { genRegionLabelData as
|
|
17
|
-
import { invertKeyboardLayout as
|
|
18
|
-
import { c as
|
|
19
|
-
import { c as
|
|
20
|
-
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createSlots as
|
|
13
|
+
import { t as u } from "../.chunks/utils-mBJcBhkk.es.js";
|
|
14
|
+
import { validUrl as d } from "../utils/check.js";
|
|
15
|
+
import { ellipsis as f } from "../utils/string.js";
|
|
16
|
+
import { genRegionLabelData as p, getSearcherGIcon as m } from "../utils/searchers.js";
|
|
17
|
+
import { invertKeyboardLayout as h } from "../utils/keyboard.js";
|
|
18
|
+
import { c as g, n as _, o as v, r as y, s as b } from "../.chunks/popup-cAqd6Dj3.es.js";
|
|
19
|
+
import { c as x, d as S, f as C, p as ee } from "../.chunks/formsExt-D7XsRleI.es.js";
|
|
20
|
+
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createSlots as te, createTextVNode as A, createVNode as j, defineComponent as M, isRef as ne, mergeModels as N, mergeProps as re, nextTick as ie, normalizeClass as P, normalizeStyle as ae, onMounted as oe, onUnmounted as se, openBlock as F, reactive as ce, ref as I, renderList as L, renderSlot as R, resolveComponent as le, resolveDirective as ue, resolveDynamicComponent as de, shallowRef as fe, toDisplayString as z, toValue as pe, unref as B, useId as me, useModel as V, watch as H, withCtx as U, withDirectives as he, withKeys as ge, withModifiers as W } from "vue";
|
|
21
21
|
//#region src/components/project/competitorSelector/competitorSelector.vue?vue&type=script&setup=true&lang.ts
|
|
22
|
-
var
|
|
22
|
+
var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, ye = /* @__PURE__ */ M({
|
|
23
23
|
__name: "competitorSelector",
|
|
24
24
|
props: /*@__PURE__*/ N({
|
|
25
25
|
modelValue: {},
|
|
@@ -35,7 +35,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
35
35
|
}),
|
|
36
36
|
emits: ["update:modelValue"],
|
|
37
37
|
setup(e) {
|
|
38
|
-
let t = e, i =
|
|
38
|
+
let t = e, i = V(e, "modelValue"), o = T(() => {
|
|
39
39
|
if (t.showSelectAllItem) return {
|
|
40
40
|
icon: t.selectAllItemIcon,
|
|
41
41
|
title: n().Common.Select_all,
|
|
@@ -43,23 +43,23 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
43
43
|
content: ""
|
|
44
44
|
};
|
|
45
45
|
});
|
|
46
|
-
return (t, n) => (F(), O("div",
|
|
47
|
-
opener:
|
|
46
|
+
return (t, n) => (F(), O("div", _e, [B(r).state.isMobile ? (F(), E(b, { key: 0 }, {
|
|
47
|
+
opener: U(() => [j(a, {
|
|
48
48
|
class: "top-competitorSelector_opener",
|
|
49
49
|
color: "theme",
|
|
50
50
|
icon: "",
|
|
51
51
|
icon2: ""
|
|
52
52
|
}, {
|
|
53
|
-
default:
|
|
53
|
+
default: U(() => [A(z(e.items.find((e) => e.value === i.value?.[0])?.content), 1)]),
|
|
54
54
|
_: 1
|
|
55
55
|
})]),
|
|
56
|
-
contentList:
|
|
56
|
+
contentList: U(() => [(F(!0), O(w, null, L(e.items, (e) => (F(), E(v, {
|
|
57
57
|
class: P({ "top-active": i.value?.includes(e.value) }),
|
|
58
58
|
"data-top-icon": e.icon,
|
|
59
59
|
title: e.title,
|
|
60
60
|
onClick: () => i.value = [e.value]
|
|
61
61
|
}, {
|
|
62
|
-
default:
|
|
62
|
+
default: U(() => [k("span", ve, z(e.content), 1)]),
|
|
63
63
|
_: 2
|
|
64
64
|
}, 1032, [
|
|
65
65
|
"class",
|
|
@@ -68,7 +68,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
68
68
|
"onClick"
|
|
69
69
|
]))), 256))]),
|
|
70
70
|
_: 1
|
|
71
|
-
})) : (F(), E(
|
|
71
|
+
})) : (F(), E(ee, {
|
|
72
72
|
key: 1,
|
|
73
73
|
modelValue: i.value,
|
|
74
74
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
@@ -83,12 +83,12 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
83
83
|
"selectAllItem"
|
|
84
84
|
]))]));
|
|
85
85
|
}
|
|
86
|
-
}),
|
|
86
|
+
}), be = (e, t) => T(() => pe(e).filter((e) => e.on >= 0 || e.id === t).map((e) => ({
|
|
87
87
|
value: e.id,
|
|
88
88
|
title: e.url + ` [${e.id}]`,
|
|
89
|
-
icon: e.id ===
|
|
89
|
+
icon: e.id === pe(t) ? "" : "",
|
|
90
90
|
content: e.name
|
|
91
|
-
}))),
|
|
91
|
+
}))), xe = {
|
|
92
92
|
0: "Yandex",
|
|
93
93
|
1: "Google",
|
|
94
94
|
4: "YouTube",
|
|
@@ -99,27 +99,27 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
99
99
|
20: "Yandex.com",
|
|
100
100
|
21: "Yandex.com.tr",
|
|
101
101
|
22: "YandexLive"
|
|
102
|
-
},
|
|
102
|
+
}, Se = {
|
|
103
103
|
alt: "",
|
|
104
104
|
key: -2,
|
|
105
105
|
name: "--",
|
|
106
106
|
index: -2
|
|
107
|
-
},
|
|
107
|
+
}, Ce = {
|
|
108
108
|
key: -2,
|
|
109
109
|
name: "--",
|
|
110
|
-
regions: [
|
|
111
|
-
regionByIndex: /* @__PURE__ */ new Map([[-2,
|
|
112
|
-
},
|
|
110
|
+
regions: [Se],
|
|
111
|
+
regionByIndex: /* @__PURE__ */ new Map([[-2, Se]])
|
|
112
|
+
}, G = {
|
|
113
113
|
alt: "",
|
|
114
114
|
key: -2,
|
|
115
115
|
name: "Autoselect",
|
|
116
116
|
index: -2
|
|
117
|
-
},
|
|
117
|
+
}, we = {
|
|
118
118
|
key: -2,
|
|
119
119
|
name: "Autoselect",
|
|
120
|
-
regions: [
|
|
121
|
-
regionByIndex: /* @__PURE__ */ new Map([[-2,
|
|
122
|
-
},
|
|
120
|
+
regions: [G],
|
|
121
|
+
regionByIndex: /* @__PURE__ */ new Map([[-2, G]])
|
|
122
|
+
}, Te = {
|
|
123
123
|
alt: "",
|
|
124
124
|
countryCode: "00",
|
|
125
125
|
depth: 1,
|
|
@@ -128,38 +128,38 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
128
128
|
index: -1,
|
|
129
129
|
lang: "ru",
|
|
130
130
|
name: "Without region"
|
|
131
|
-
},
|
|
131
|
+
}, Ee = () => (G.name = n().Common.Autoselect, G), De = () => (Ee(), we.name = n().Common.Autoselect, console.log(we), we), Oe = () => (Te.name = n().Keywords.Without_region, Te), ke = [
|
|
132
132
|
4,
|
|
133
133
|
8,
|
|
134
134
|
9
|
|
135
|
-
],
|
|
136
|
-
let r =
|
|
135
|
+
], Ae = (e, t, n = []) => {
|
|
136
|
+
let r = Me(e, !1, n), i;
|
|
137
137
|
return r.forEach((n) => {
|
|
138
138
|
if ((t.searcher_key === void 0 || t.searcher_key == n.key) && n.regions && (n.regions.forEach((r) => {
|
|
139
139
|
if (!i && (t.key === void 0 || t.key == r.key) && (t.index === void 0 || t.index == r.index) && !(!e && (t.lang !== void 0 && t.lang != r.lang || t.device !== void 0 && t.device != r.device))) return r.searcher_key = n.key, i = r, !1;
|
|
140
140
|
}), i)) return !1;
|
|
141
141
|
}), i;
|
|
142
|
-
},
|
|
142
|
+
}, je = u(() => import("../.chunks/dialog_regionSelectorRegions-BPUDeHdW.es.js")), Me = (e = "", t = !1, n = []) => {
|
|
143
143
|
let r;
|
|
144
|
-
return r = e === "volume" || e === "cost_forecast" ?
|
|
145
|
-
},
|
|
144
|
+
return r = e === "volume" || e === "cost_forecast" ? Ne(n) : e === "project_relevant_url" ? Pe(n) : Fe(n, !0), t && r.set(-2, De()), r.size || r.set(-2, Ce), r;
|
|
145
|
+
}, Ne = (e) => {
|
|
146
146
|
e = e.filter((e) => r.state.forceSearchersKeysForKeywordsStats.includes(e.key));
|
|
147
|
-
let t =
|
|
147
|
+
let t = Fe(e, !1);
|
|
148
148
|
return r.state.forceSearchersKeysForKeywordsStats.forEach((e) => {
|
|
149
149
|
if (t.has(e)) return;
|
|
150
150
|
let n = {
|
|
151
151
|
key: e,
|
|
152
|
-
name:
|
|
152
|
+
name: xe[e],
|
|
153
153
|
regions: [],
|
|
154
154
|
regionByIndex: /* @__PURE__ */ new Map()
|
|
155
155
|
};
|
|
156
156
|
t.set(n.key, n);
|
|
157
157
|
}), r.state.showGlobalRegionForKeywordsStats && t.forEach((e) => {
|
|
158
158
|
if (!e.regionByIndex) return;
|
|
159
|
-
let t = { ...
|
|
159
|
+
let t = { ...Oe() };
|
|
160
160
|
e.regionByIndex.set(t.index, t);
|
|
161
161
|
}), t;
|
|
162
|
-
},
|
|
162
|
+
}, Pe = (e) => (e = e.filter((e) => !ke.includes(e.key)), Fe(e, !1)), Fe = (e, t) => {
|
|
163
163
|
let n = /* @__PURE__ */ new Map();
|
|
164
164
|
return e.forEach((e) => {
|
|
165
165
|
if (t && !e.enabled) return;
|
|
@@ -170,10 +170,10 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
170
170
|
r.regionByIndex.set(n.index, n);
|
|
171
171
|
}), r.regionByIndex.size, (!e.regions || r.regionByIndex.size) && n.set(r.key, r);
|
|
172
172
|
}), n;
|
|
173
|
-
},
|
|
173
|
+
}, Ie = (e, t) => {
|
|
174
174
|
let r = n();
|
|
175
175
|
return {
|
|
176
|
-
searcherKey: I(
|
|
176
|
+
searcherKey: I(t.value.keys().next().value ?? -2),
|
|
177
177
|
optionBySearcherKey: T(() => {
|
|
178
178
|
let n = /* @__PURE__ */ new Map();
|
|
179
179
|
if (t.value.forEach((t) => {
|
|
@@ -181,7 +181,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
181
181
|
value: t.key,
|
|
182
182
|
title: t.name
|
|
183
183
|
};
|
|
184
|
-
e.addSearcherIcon && (r.icon =
|
|
184
|
+
e.addSearcherIcon && (r.icon = m(t.key)), n.set(t.key, r);
|
|
185
185
|
}), e.addCompare && !n.has(-2)) {
|
|
186
186
|
let e = {
|
|
187
187
|
value: "",
|
|
@@ -198,7 +198,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
198
198
|
return n;
|
|
199
199
|
})
|
|
200
200
|
};
|
|
201
|
-
},
|
|
201
|
+
}, Le = (e, t) => {
|
|
202
202
|
let r = n(), i = T(() => e.forMode === "volume" || e.forMode === "cost_forecast"), a = I(-2);
|
|
203
203
|
e.modelValue.length === 1 && (a.value = e.modelValue[0]), a.value === -2 && (a.value = i.value ? t.value?.regionByIndex.values().next().value?.key ?? -2 : t.value?.regionByIndex.keys().next().value ?? -2);
|
|
204
204
|
let o = T(() => {
|
|
@@ -212,7 +212,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
212
212
|
e.has(t.key) || e.set(t.key, n);
|
|
213
213
|
return;
|
|
214
214
|
}
|
|
215
|
-
let n =
|
|
215
|
+
let n = p(t), r = [];
|
|
216
216
|
n.deviceLabel && r.push(n.deviceLabel), n.langLabel && r.push(n.langLabel), n.altLabel && r.push(n.altLabel);
|
|
217
217
|
let a = r.join(", ");
|
|
218
218
|
a &&= ` (${a})`;
|
|
@@ -224,7 +224,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
224
224
|
e.set(t.index, o);
|
|
225
225
|
}), e;
|
|
226
226
|
});
|
|
227
|
-
return
|
|
227
|
+
return H(o, (t, n) => {
|
|
228
228
|
if (e.onlySearcher || a.value !== void 0 && t.get(a.value)) return;
|
|
229
229
|
let i = t.keys().next().value;
|
|
230
230
|
if (a.value === -2 || i === -2) {
|
|
@@ -247,7 +247,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
247
247
|
regionIndex: a,
|
|
248
248
|
optionByRegionIndex: o
|
|
249
249
|
};
|
|
250
|
-
},
|
|
250
|
+
}, Re = (e, t, n) => {
|
|
251
251
|
let r = I([]), i = () => {
|
|
252
252
|
if (e.onlySearcher && t.value) {
|
|
253
253
|
r.value = Array.from(t.value.keys());
|
|
@@ -262,22 +262,22 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
262
262
|
}, a = () => {
|
|
263
263
|
r.value.length ? localStorage.setItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes", JSON.stringify(r.value)) : localStorage.removeItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes");
|
|
264
264
|
};
|
|
265
|
-
return
|
|
265
|
+
return H(r, () => {
|
|
266
266
|
a();
|
|
267
267
|
}), e.addCompare && i(), { regionsIndexes: r };
|
|
268
|
-
},
|
|
269
|
-
let t = T(() => e.forMode === "volume" || e.forMode === "cost_forecast"), n = T(() =>
|
|
268
|
+
}, ze = (e) => {
|
|
269
|
+
let t = T(() => e.forMode === "volume" || e.forMode === "cost_forecast"), n = T(() => Me(e.forMode, e.autoRegion, e.searchers)), r = T(() => n.value.get(a.searcherKey.value) || Ce), i = T(() => {
|
|
270
270
|
let e = /* @__PURE__ */ new Set();
|
|
271
271
|
return n.value.forEach((t) => {
|
|
272
272
|
t.regionByIndex.forEach((t) => {
|
|
273
273
|
t.index !== -2 && e.add(t.index);
|
|
274
274
|
});
|
|
275
275
|
}), e;
|
|
276
|
-
}), a =
|
|
277
|
-
|
|
276
|
+
}), a = Ie(e, n), o = Le(e, r), s = Re(e, n, i);
|
|
277
|
+
H(n, () => {
|
|
278
278
|
if (e.onlySearcher ? s.regionsIndexes.value = Array.from(n.value.keys()) : s.regionsIndexes.value = s.regionsIndexes.value.filter((e) => i.value.has(e)), a.searcherKey.value === -1) return;
|
|
279
279
|
let t = n.value.keys().next().value;
|
|
280
|
-
|
|
280
|
+
n.value.forEach((r) => {
|
|
281
281
|
if (e.onlySearcher && r.key === a.searcherKey.value) {
|
|
282
282
|
t = a.searcherKey.value;
|
|
283
283
|
return;
|
|
@@ -288,7 +288,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
288
288
|
let i = n.value.get(r.key)?.regionByIndex;
|
|
289
289
|
e?.has(-2) && !i?.has(-2) && (t = r.key);
|
|
290
290
|
}
|
|
291
|
-
})
|
|
291
|
+
}), t !== void 0 && (a.searcherKey.value = t), o.regionIndex.value !== void 0 && !(r.value?.regionByIndex)?.has(o.regionIndex.value) && (o.regionIndex.value = r.value?.regions?.keys().next().value);
|
|
292
292
|
}, { immediate: !0 });
|
|
293
293
|
let c = () => {
|
|
294
294
|
if (a.searcherKey.value !== -1 && a.searcherKey.value !== -2) return a.searcherKey.value;
|
|
@@ -297,7 +297,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
297
297
|
let n = o.regionIndex.value;
|
|
298
298
|
if (t.value && e.forMode) {
|
|
299
299
|
let t = o.regionIndex.value;
|
|
300
|
-
n =
|
|
300
|
+
n = Ae(e.forMode, {
|
|
301
301
|
searcher_key: c(),
|
|
302
302
|
key: t
|
|
303
303
|
}, e.searchers)?.index;
|
|
@@ -319,14 +319,13 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
319
319
|
if (e !== void 0) return u()?.regionByIndex?.get(e);
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
|
-
},
|
|
322
|
+
}, Be = /* @__PURE__ */ M({
|
|
323
323
|
__name: "regionSelector",
|
|
324
324
|
props: /*@__PURE__*/ N({
|
|
325
325
|
projectId: {},
|
|
326
326
|
searchers: { default: () => [] },
|
|
327
327
|
modelValue: {},
|
|
328
328
|
modelValueSingle: {},
|
|
329
|
-
modelValueSearcherKey: {},
|
|
330
329
|
addCompare: { type: Boolean },
|
|
331
330
|
forMode: {},
|
|
332
331
|
autoRegion: { type: Boolean },
|
|
@@ -347,107 +346,95 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
347
346
|
modelValue: { required: !0 },
|
|
348
347
|
modelModifiers: {},
|
|
349
348
|
modelValueSingle: {},
|
|
350
|
-
modelValueSingleModifiers: {}
|
|
351
|
-
modelValueSearcherKey: {},
|
|
352
|
-
modelValueSearcherKeyModifiers: {}
|
|
349
|
+
modelValueSingleModifiers: {}
|
|
353
350
|
}),
|
|
354
|
-
emits: [
|
|
355
|
-
"update:modelValue",
|
|
356
|
-
"update:modelValueSingle",
|
|
357
|
-
"update:modelValueSearcherKey"
|
|
358
|
-
],
|
|
351
|
+
emits: ["update:modelValue", "update:modelValueSingle"],
|
|
359
352
|
setup(e, { expose: t }) {
|
|
360
|
-
let n = e, r = T(() => n.forMode === "volume" || n.forMode === "cost_forecast"), i =
|
|
361
|
-
if (r.value && !n.onlySearcher && c.value === void 0 && l) throw Error("При использовании `region.key` в `modelValue` необходимо передавать `modelValueSearcherKey`");
|
|
362
|
-
let { selectSearcher: u, selectRegion: d, compare: f, searcherByKey: p, allRegionsIndexes: m, getSearcher: h, getRegion: g } = Re(n), _ = () => {
|
|
353
|
+
let n = e, r = T(() => n.forMode === "volume" || n.forMode === "cost_forecast"), i = V(e, "modelValue"), o = V(e, "modelValueSingle"), { selectSearcher: c, selectRegion: l, compare: u, searcherByKey: d, allRegionsIndexes: f, getSearcher: p, getRegion: m } = ze(n), h = () => {
|
|
363
354
|
let e = [];
|
|
364
|
-
|
|
355
|
+
d.value.forEach((t) => {
|
|
365
356
|
(n.forMode === "project_relevant_url" || t.enabled) && t.regions.forEach((t) => {
|
|
366
357
|
(n.forMode === "project_relevant_url" || t.enabled) && t.index !== -1 && e.push(t);
|
|
367
358
|
});
|
|
368
|
-
}),
|
|
359
|
+
}), je.open("regions", {
|
|
369
360
|
regions: e,
|
|
370
|
-
regionsIndexes:
|
|
371
|
-
"@update:regionsIndexes": (e) =>
|
|
361
|
+
regionsIndexes: u.regionsIndexes.value,
|
|
362
|
+
"@update:regionsIndexes": (e) => u.regionsIndexes.value = e
|
|
372
363
|
});
|
|
373
364
|
};
|
|
374
|
-
return
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
365
|
+
return H([
|
|
366
|
+
l.regionIndex,
|
|
367
|
+
c.searcherKey,
|
|
368
|
+
u.regionsIndexes
|
|
378
369
|
], () => {
|
|
379
|
-
if (
|
|
380
|
-
if (JSON.stringify(i.value) === JSON.stringify(
|
|
381
|
-
i.value = [...
|
|
382
|
-
} else n.onlySearcher ? (i.value = [
|
|
383
|
-
!n.onlySearcher && !
|
|
384
|
-
}),
|
|
385
|
-
|
|
386
|
-
}),
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
if (i.value[0] && (s.value = i.value[0]), n.onlySearcher) {
|
|
392
|
-
if (!i.value.length || i.value.length === 1 && !p.value.has(i.value[0]) || i.value.length === 1 && i.value[0] === -2 && !n.autoRegion) {
|
|
393
|
-
let e = p.value.keys().next().value;
|
|
394
|
-
e === -2 && !n.autoRegion && (e = void 0, s.value = -2), e === void 0 ? i.value.length = 0 : i.value = [e];
|
|
370
|
+
if (c.searcherKey.value === -1 && u.regionsIndexes.value.length) {
|
|
371
|
+
if (JSON.stringify(i.value) === JSON.stringify(u.regionsIndexes.value)) return;
|
|
372
|
+
i.value = [...u.regionsIndexes.value];
|
|
373
|
+
} else n.onlySearcher ? (i.value = [c.searcherKey.value], c.searcherKey.value === -2 && !n.autoRegion && (i.value.length = 0)) : (i.value = [l.regionIndex.value], l.regionIndex.value === -2 && !n.autoRegion && (i.value.length = 0));
|
|
374
|
+
!n.onlySearcher && !f.value.size && (c.searcherKey.value = -2);
|
|
375
|
+
}), o.value && H(o, () => {
|
|
376
|
+
o.value && (i.value = [o.value]);
|
|
377
|
+
}, { immediate: !0 }), H(i, () => {
|
|
378
|
+
if (i.value[0] && (o.value = i.value[0]), n.onlySearcher) {
|
|
379
|
+
if (!i.value.length || i.value.length === 1 && !d.value.has(i.value[0]) || i.value.length === 1 && i.value[0] === -2 && !n.autoRegion) {
|
|
380
|
+
let e = d.value.keys().next().value;
|
|
381
|
+
e === -2 && !n.autoRegion && (e = void 0, o.value = -2), e === void 0 ? i.value.length = 0 : i.value = [e];
|
|
395
382
|
return;
|
|
396
383
|
}
|
|
397
|
-
if (i.value.length > 1 && JSON.stringify(i.value) !== JSON.stringify(
|
|
398
|
-
i.value = [...
|
|
384
|
+
if (i.value.length > 1 && JSON.stringify(i.value) !== JSON.stringify(u.regionsIndexes.value)) {
|
|
385
|
+
i.value = [...u.regionsIndexes.value];
|
|
399
386
|
return;
|
|
400
387
|
}
|
|
401
388
|
} else {
|
|
402
|
-
let e = [...new Set(i.value)], t =
|
|
403
|
-
if (r.value && (t =
|
|
389
|
+
let e = [...new Set(i.value)], t = d.value.values().next().value?.regionByIndex?.keys().next().value;
|
|
390
|
+
if (r.value && (t = d.value.values().next().value?.regionByIndex?.values().next().value?.key), t === -2 && !n.autoRegion && (t = void 0, o.value = -2), !e.length) t !== void 0 && e.push(t);
|
|
404
391
|
else if (e.length === 1) {
|
|
405
|
-
let n =
|
|
406
|
-
r.value && (n = /* @__PURE__ */ new Set(),
|
|
392
|
+
let n = f.value;
|
|
393
|
+
r.value && (n = /* @__PURE__ */ new Set(), d.value.forEach((e) => {
|
|
407
394
|
e.regionByIndex.forEach((e) => {
|
|
408
395
|
e.index !== -2 && n.add(e.key);
|
|
409
396
|
});
|
|
410
397
|
})), n.has(e[0]) || (e = [], t !== void 0 && e.push(t));
|
|
411
|
-
} else e = e.filter((e) =>
|
|
398
|
+
} else e = e.filter((e) => f.value.has(e)), !e.length && t !== void 0 && e.push(t);
|
|
412
399
|
if (JSON.stringify(i.value) !== JSON.stringify(e)) {
|
|
413
400
|
i.value = e;
|
|
414
401
|
return;
|
|
415
402
|
}
|
|
416
403
|
}
|
|
417
|
-
if (i.value.length !== 1 || i.value[0] !== (n.onlySearcher ?
|
|
404
|
+
if (i.value.length !== 1 || i.value[0] !== (n.onlySearcher ? c.searcherKey.value : l.regionIndex.value)) {
|
|
418
405
|
if (n.onlySearcher) {
|
|
419
406
|
if (i.value.length === 1) {
|
|
420
|
-
|
|
407
|
+
c.searcherKey.value = i.value[0];
|
|
421
408
|
return;
|
|
422
409
|
}
|
|
423
|
-
|
|
410
|
+
c.searcherKey.value = -1;
|
|
424
411
|
return;
|
|
425
412
|
}
|
|
426
413
|
if (!i.value.length) return;
|
|
427
|
-
if (i.value.length === 1 &&
|
|
428
|
-
|
|
429
|
-
let e
|
|
430
|
-
|
|
431
|
-
for (let n of t.regionByIndex.values()) if ((r.value ? n.key : n.index) ===
|
|
414
|
+
if (i.value.length === 1 && c.searcherKey.value !== -1) {
|
|
415
|
+
l.regionIndex.value = i.value[0];
|
|
416
|
+
let e;
|
|
417
|
+
for (let t of d.value.values()) {
|
|
418
|
+
for (let n of t.regionByIndex.values()) if ((r.value ? n.key : n.index) === l.regionIndex.value) {
|
|
432
419
|
e = t.key;
|
|
433
420
|
break;
|
|
434
421
|
}
|
|
435
422
|
if (e !== void 0) break;
|
|
436
423
|
}
|
|
437
|
-
e !== void 0 && (
|
|
438
|
-
} else
|
|
424
|
+
e !== void 0 && (c.searcherKey.value = e);
|
|
425
|
+
} else c.searcherKey.value = -1, u.regionsIndexes.value = [...i.value];
|
|
439
426
|
}
|
|
440
427
|
}, { immediate: !0 }), t({
|
|
441
|
-
getSearcher:
|
|
442
|
-
getRegion:
|
|
428
|
+
getSearcher: p,
|
|
429
|
+
getRegion: m
|
|
443
430
|
}), (t, n) => (F(), O("div", { class: P({
|
|
444
431
|
"top-regionSelector": !0,
|
|
445
432
|
"top-regionSelector-onlySearcher": e.onlySearcher
|
|
446
433
|
}) }, [
|
|
447
|
-
j(
|
|
448
|
-
options:
|
|
449
|
-
modelValue:
|
|
450
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
434
|
+
j(s, {
|
|
435
|
+
options: B(c).optionBySearcherKey.value,
|
|
436
|
+
modelValue: B(c).searcherKey.value,
|
|
437
|
+
"onUpdate:modelValue": n[0] ||= (e) => B(c).searcherKey.value = e,
|
|
451
438
|
name: "searcher_key",
|
|
452
439
|
addChanger: e.addChanger
|
|
453
440
|
}, null, 8, [
|
|
@@ -455,12 +442,12 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
455
442
|
"modelValue",
|
|
456
443
|
"addChanger"
|
|
457
444
|
]),
|
|
458
|
-
!e.onlySearcher &&
|
|
445
|
+
!e.onlySearcher && B(c).searcherKey.value !== B(-1) ? (F(), E(s, {
|
|
459
446
|
key: 0,
|
|
460
447
|
class: "top-select-region",
|
|
461
|
-
options:
|
|
462
|
-
modelValue:
|
|
463
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
448
|
+
options: B(l).optionByRegionIndex.value,
|
|
449
|
+
modelValue: B(l).regionIndex.value,
|
|
450
|
+
"onUpdate:modelValue": n[1] ||= (e) => B(l).regionIndex.value = e,
|
|
464
451
|
name: r.value ? "region_key" : "region_index",
|
|
465
452
|
addChanger: e.addChanger,
|
|
466
453
|
"data-top-icon": e.addRegionIcon ? "" : void 0
|
|
@@ -471,30 +458,30 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
471
458
|
"addChanger",
|
|
472
459
|
"data-top-icon"
|
|
473
460
|
])) : D("", !0),
|
|
474
|
-
e.addCompare && !e.onlySearcher &&
|
|
461
|
+
e.addCompare && !e.onlySearcher && B(c).searcherKey.value === B(-1) ? (F(), E(a, {
|
|
475
462
|
key: 1,
|
|
476
463
|
name: "compare",
|
|
477
|
-
onClick:
|
|
478
|
-
"data-count-compare-regions-indexes":
|
|
464
|
+
onClick: h,
|
|
465
|
+
"data-count-compare-regions-indexes": B(u).regionsIndexes.value.length
|
|
479
466
|
}, {
|
|
480
|
-
default:
|
|
467
|
+
default: U(() => [A(z(t.$i18n.Common.Selected_regions), 1)]),
|
|
481
468
|
_: 1
|
|
482
469
|
}, 8, ["data-count-compare-regions-indexes"])) : D("", !0)
|
|
483
470
|
], 2));
|
|
484
471
|
}
|
|
485
|
-
}),
|
|
472
|
+
}), K = {
|
|
486
473
|
id: 0,
|
|
487
474
|
name: "/",
|
|
488
475
|
path: "/"
|
|
489
476
|
};
|
|
490
|
-
function
|
|
477
|
+
function Ve(e) {
|
|
491
478
|
return e ? n()?.Common.All_folders : "/ (" + n()?.Keywords.Root_folder + ")";
|
|
492
479
|
}
|
|
493
|
-
var
|
|
494
|
-
a = { ...a }, r.childsIds.push(a.id), a.id === 0 && (a.name =
|
|
480
|
+
var He = (e, t, n = /* @__PURE__ */ new Map(), r = { id: "root" }, i = 0) => (r.childsIds = [], r.id && (r.countAllGroupsActive = r.count_groups_active), e[r.id] && e[r.id].forEach((a) => {
|
|
481
|
+
a = { ...a }, r.childsIds.push(a.id), a.id === 0 && (a.name = Ve(t));
|
|
495
482
|
let o = i > 1 ? "-".repeat(i - 1) + " " : "";
|
|
496
|
-
o && !a.name.startsWith(o) && (a.name = o + a.name), n.set(a.id, a),
|
|
497
|
-
}), n),
|
|
483
|
+
o && !a.name.startsWith(o) && (a.name = o + a.name), n.set(a.id, a), He(e, t, n, a, i + 1), r.childsIds = r.childsIds.concat(a.childsIds), r.id && a.count_groups_active && (r.countAllGroupsActive += a.count_groups_active);
|
|
484
|
+
}), n), Ue = (e, t) => e.gen(`/get/${t}/folders/`, [
|
|
498
485
|
"id",
|
|
499
486
|
"parent_id",
|
|
500
487
|
"name",
|
|
@@ -505,9 +492,9 @@ var Ve = (e, t, n = /* @__PURE__ */ new Map(), r = { id: "root" }, i = 0) => (r.
|
|
|
505
492
|
});
|
|
506
493
|
//#endregion
|
|
507
494
|
//#region src/core/utils/composables/useWatch.ts
|
|
508
|
-
function
|
|
495
|
+
function We(e, t, n) {
|
|
509
496
|
let r = Object.keys(e), i = r.map((t) => e[t]);
|
|
510
|
-
return
|
|
497
|
+
return H(i, (e, n, i) => {
|
|
511
498
|
let a = {};
|
|
512
499
|
e.forEach((e, t) => {
|
|
513
500
|
if (!Object.is(e, n[t])) {
|
|
@@ -522,7 +509,7 @@ function Ue(e, t, n) {
|
|
|
522
509
|
}
|
|
523
510
|
//#endregion
|
|
524
511
|
//#region src/components/project/groupSelector/folders/folders.vue?vue&type=script&setup=true&lang.ts
|
|
525
|
-
var
|
|
512
|
+
var Ge = ["innerHTML"], Ke = /* @__PURE__ */ M({
|
|
526
513
|
__name: "folders",
|
|
527
514
|
props: /*@__PURE__*/ N({
|
|
528
515
|
folderId: {},
|
|
@@ -540,20 +527,20 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
540
527
|
}, {
|
|
541
528
|
folderId: { required: !0 },
|
|
542
529
|
folderIdModifiers: {},
|
|
543
|
-
folder: { default:
|
|
530
|
+
folder: { default: K },
|
|
544
531
|
folderModifiers: {}
|
|
545
532
|
}),
|
|
546
533
|
emits: ["update:folderId", "update:folder"],
|
|
547
534
|
setup(e) {
|
|
548
|
-
let t = e, n =
|
|
549
|
-
|
|
535
|
+
let t = e, n = V(e, "folderId"), r = V(e, "folder"), i = t.client && !t.folders ? Ue(t.client, t.service) : void 0, a = I(null);
|
|
536
|
+
H(() => t.projectId, () => {
|
|
550
537
|
i?.changeParams({ project_id: t.projectId }), i?.setOptions({ checkFingerprint: "TopGroupSelectorFolders:" + t.projectId }), a.value?.resetCache();
|
|
551
538
|
}, { immediate: !0 });
|
|
552
|
-
let o = T(() =>
|
|
539
|
+
let o = T(() => He(t.folders ?? { root: [K] }, t.canSelectAll)), s = (e) => (t.canSelectAll && e[0]?.id === 0 && (e[0] = {
|
|
553
540
|
...e[0],
|
|
554
|
-
name:
|
|
541
|
+
name: Ve(!0)
|
|
555
542
|
}), e);
|
|
556
|
-
return
|
|
543
|
+
return We({
|
|
557
544
|
modelFolder: r,
|
|
558
545
|
modelFolderId: n
|
|
559
546
|
}, async (e) => {
|
|
@@ -563,21 +550,21 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
563
550
|
return;
|
|
564
551
|
}
|
|
565
552
|
let i = o.value.get(t.folderId);
|
|
566
|
-
i ||=
|
|
567
|
-
}, { immediate: !0 }), (t, n) => (F(), E(
|
|
553
|
+
i ||= K, r.value = i, n.value = i.id;
|
|
554
|
+
}, { immediate: !0 }), (t, n) => (F(), E(x, {
|
|
568
555
|
class: "top-groupSelector_folder",
|
|
569
556
|
modelValue: r.value,
|
|
570
557
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
571
558
|
items: e.folders ? [...o.value.values()] : void 0,
|
|
572
559
|
"search-type": "inline",
|
|
573
560
|
icon: e.addIcon ? "" : void 0,
|
|
574
|
-
api: e.folders ? void 0 :
|
|
575
|
-
apiSetSearchParams: (...e) =>
|
|
561
|
+
api: e.folders ? void 0 : B(i),
|
|
562
|
+
apiSetSearchParams: (...e) => B(S)(...e, "name"),
|
|
576
563
|
prepareItemsBeforeRender: s,
|
|
577
564
|
addChanger: e.addChanger,
|
|
578
565
|
useCache: ""
|
|
579
566
|
}, {
|
|
580
|
-
item:
|
|
567
|
+
item: U(({ item: e }) => [k("div", { innerHTML: e.name.replaceAll(/</g, "< ") }, null, 8, Ge)]),
|
|
581
568
|
_: 1
|
|
582
569
|
}, 8, [
|
|
583
570
|
"modelValue",
|
|
@@ -588,17 +575,17 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
588
575
|
"addChanger"
|
|
589
576
|
]));
|
|
590
577
|
}
|
|
591
|
-
}),
|
|
578
|
+
}), q = {
|
|
592
579
|
id: -1,
|
|
593
580
|
name: "--",
|
|
594
|
-
folder_id:
|
|
595
|
-
folder_path:
|
|
596
|
-
},
|
|
581
|
+
folder_id: K.id,
|
|
582
|
+
folder_path: K.path
|
|
583
|
+
}, J = {
|
|
597
584
|
id: 0,
|
|
598
585
|
name: "All groups",
|
|
599
|
-
folder_id:
|
|
600
|
-
folder_path:
|
|
601
|
-
},
|
|
586
|
+
folder_id: K.id,
|
|
587
|
+
folder_path: K.path
|
|
588
|
+
}, Y = () => (J.name = n()?.Common.All_groups, J), qe = () => (J.name = n()?.Keywords.Choose_group, J), Je = (e, t, n) => (e = [...e], t !== void 0 && (e = e.filter((e) => e.on == Number(t))), n && n.id && n.childsIds && (e = e.filter((e) => e.folder_id === n.id || n.childsIds.includes(e.folder_id))), e), Ye = (e, t) => e.gen(`/get/${t}/groups/`, [
|
|
602
589
|
"id",
|
|
603
590
|
"name",
|
|
604
591
|
"folder_id",
|
|
@@ -606,10 +593,10 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
606
593
|
]).changeParams({
|
|
607
594
|
folder_id_depth: !0,
|
|
608
595
|
limit: 100
|
|
609
|
-
}),
|
|
596
|
+
}), Xe = (e, t) => e.gen(`/add/${t}/groups/`), Ze = (e, t) => e.gen(`/del/${t}/groups/`), Qe = (e, t) => e.gen(`/edit/${t}/groups/rename/`), $e = { class: "top-groupSelector_groupItem top-ellipsis1" }, et = {
|
|
610
597
|
key: 0,
|
|
611
598
|
class: "top-comment"
|
|
612
|
-
},
|
|
599
|
+
}, tt = ["innerHTML"], nt = ["innerHTML"], rt = ["innerHTML"], it = /* @__PURE__ */ M({
|
|
613
600
|
__name: "groups",
|
|
614
601
|
props: /*@__PURE__*/ N({
|
|
615
602
|
groupId: {},
|
|
@@ -648,8 +635,8 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
648
635
|
"delGroup"
|
|
649
636
|
], ["update:groupId", "update:group"]),
|
|
650
637
|
setup(e, { expose: n, emit: r }) {
|
|
651
|
-
let i = e, a = r, o =
|
|
652
|
-
if (i.groups !== void 0) return
|
|
638
|
+
let i = e, a = r, o = V(e, "groupId"), s = V(e, "group"), c = i.client && !i.groups ? Ye(i.client, i.service) : void 0, l = i.client ? Xe(i.client, i.service) : void 0, u = i.client ? Ze(i.client, i.service) : void 0, d = i.client ? Qe(i.client, i.service) : void 0, f = I(null), p = T(() => {
|
|
639
|
+
if (i.groups !== void 0) return Je(i.groups, i.on, i.folder);
|
|
653
640
|
}), m = t("folder_id", "EQUALS", [i.folder?.id ?? 0]);
|
|
654
641
|
c?.changeParams({
|
|
655
642
|
project_id: i.projectId,
|
|
@@ -658,19 +645,19 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
658
645
|
}), i.on !== void 0 && c?.params.filters?.push(t("on", "EQUALS", [Number(i.on)]));
|
|
659
646
|
let h = (e) => {
|
|
660
647
|
s.value = e, o.value = e.id;
|
|
661
|
-
},
|
|
648
|
+
}, g = (e = !1) => {
|
|
662
649
|
f.value?.resetCache(e);
|
|
663
650
|
};
|
|
664
|
-
|
|
651
|
+
We({
|
|
665
652
|
projectId: () => i.projectId,
|
|
666
653
|
folderId: () => i.folder?.id,
|
|
667
654
|
canSelectAll: () => i.canSelectAll
|
|
668
655
|
}, (e) => {
|
|
669
|
-
if (e.projectId && (c?.changeParams({ project_id: i.projectId }), c?.setOptions({ checkFingerprint: "TopGroupSelectorGroups:" + i.projectId })), e.folderId && (m.values = [i.folder?.id ?? 0]),
|
|
656
|
+
if (e.projectId && (c?.changeParams({ project_id: i.projectId }), c?.setOptions({ checkFingerprint: "TopGroupSelectorGroups:" + i.projectId })), e.folderId && (m.values = [i.folder?.id ?? 0]), g(), (e.folderId?.old !== void 0 || e.canSelectAll?.old !== void 0) && o.value !== null) {
|
|
670
657
|
let e;
|
|
671
|
-
i.autoselect === "first" && (e = p.value?.[0], i.canSelectAll && (e =
|
|
658
|
+
i.autoselect === "first" && (e = p.value?.[0], i.canSelectAll && (e = ce(Y()))), (i.autoselect === "placeholder" || !e) && (e = qe()), h(e);
|
|
672
659
|
}
|
|
673
|
-
}, { immediate: !0 }),
|
|
660
|
+
}, { immediate: !0 }), We({
|
|
674
661
|
modelGroup: s,
|
|
675
662
|
modelGroupId: o
|
|
676
663
|
}, async (e) => {
|
|
@@ -682,14 +669,14 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
682
669
|
if (!(i.canAdd && o.value === null)) {
|
|
683
670
|
if (i.groups) {
|
|
684
671
|
let e = p.value?.find((e) => e.id === o.value);
|
|
685
|
-
if (!e && i.canSelectAll && (e =
|
|
672
|
+
if (!e && i.canSelectAll && (e = Y()), e) h(e);
|
|
686
673
|
else {
|
|
687
674
|
let e = p.value?.[0];
|
|
688
|
-
e && !o.value ? h(e) : h(
|
|
675
|
+
e && !o.value ? h(e) : h(q);
|
|
689
676
|
}
|
|
690
677
|
}
|
|
691
678
|
if (i.client && !i.groups && (o.value || o.value === 0 && !i.canSelectAll)) {
|
|
692
|
-
let e =
|
|
679
|
+
let e = Ye(i.client, i.service).changeParams({
|
|
693
680
|
project_id: i.projectId,
|
|
694
681
|
id: o.value,
|
|
695
682
|
filters: [m]
|
|
@@ -697,17 +684,17 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
697
684
|
e?.setOptions({ checkFingerprint: "TopGroupSelectorFindGroup:" + i.projectId });
|
|
698
685
|
let t = await e.call();
|
|
699
686
|
if (!t.errors?.length && !t.result) return;
|
|
700
|
-
!t.errors && t.result[0] ? h(t.result[0]) : h(
|
|
687
|
+
!t.errors && t.result[0] ? h(t.result[0]) : h(q);
|
|
701
688
|
}
|
|
702
689
|
}
|
|
703
690
|
}
|
|
704
691
|
}, { immediate: !0 });
|
|
705
|
-
let
|
|
692
|
+
let v = async (e) => {
|
|
706
693
|
if (i.canAdd !== "api" || !l) return;
|
|
707
694
|
let t = s.value, n = await l.changeParams({
|
|
708
695
|
project_id: i.projectId,
|
|
709
696
|
names: [e.name],
|
|
710
|
-
to_id: i.folder?.id ??
|
|
697
|
+
to_id: i.folder?.id ?? K.id,
|
|
711
698
|
to_type: "in_folder_last"
|
|
712
699
|
}).call();
|
|
713
700
|
if (n.result) {
|
|
@@ -715,7 +702,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
715
702
|
h(e), a("addGroup", e);
|
|
716
703
|
} else h(t);
|
|
717
704
|
f.value?.resetCache(!0);
|
|
718
|
-
},
|
|
705
|
+
}, b = async (e, t) => {
|
|
719
706
|
d && ((await d.changeParams({
|
|
720
707
|
project_id: i.projectId,
|
|
721
708
|
id: e.id,
|
|
@@ -728,9 +715,9 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
728
715
|
u && ((await u.changeParams({
|
|
729
716
|
project_id: i.projectId,
|
|
730
717
|
id: e.id
|
|
731
|
-
}).call()).errors || (s.value.id === e.id && h(i.canSelectAll ?
|
|
718
|
+
}).call()).errors || (s.value.id === e.id && h(i.canSelectAll ? Y() : q), a("delGroup", e.id), f.value?.deleteCacheItemById(e.id)));
|
|
732
719
|
};
|
|
733
|
-
return n({ resetCacheGroups:
|
|
720
|
+
return n({ resetCacheGroups: g }), (t, n) => (F(), E(x, {
|
|
734
721
|
ref_key: "refSelector",
|
|
735
722
|
ref: f,
|
|
736
723
|
class: "top-groupSelector_group",
|
|
@@ -739,49 +726,49 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
739
726
|
items: p.value ?? e.groups,
|
|
740
727
|
searchType: "inline",
|
|
741
728
|
icon: e.addIcon ? "" : void 0,
|
|
742
|
-
api: e.groups ? void 0 :
|
|
743
|
-
apiSetSearchParams: (...e) =>
|
|
729
|
+
api: e.groups ? void 0 : B(c),
|
|
730
|
+
apiSetSearchParams: (...e) => B(S)(...e, "name"),
|
|
744
731
|
appendSearchToResult: !!e.canAdd,
|
|
745
|
-
useAllItem: e.canSelectAll ?
|
|
732
|
+
useAllItem: e.canSelectAll ? B(Y)().name : !1,
|
|
746
733
|
addChanger: e.addChanger,
|
|
747
734
|
useCache: "",
|
|
748
|
-
onAppendItem:
|
|
749
|
-
},
|
|
750
|
-
item:
|
|
751
|
-
n.id ===
|
|
735
|
+
onAppendItem: v
|
|
736
|
+
}, te({
|
|
737
|
+
item: U(({ item: n }) => [k("div", $e, [
|
|
738
|
+
n.id === B(null) ? (F(), O("div", et, z(t.$i18n.Common.Add) + ": ", 1)) : D("", !0),
|
|
752
739
|
k("span", {
|
|
753
740
|
class: "top-groupSelector_groupItemName top-ellipsis1",
|
|
754
741
|
innerHTML: n.name
|
|
755
|
-
}, null, 8,
|
|
742
|
+
}, null, 8, tt),
|
|
756
743
|
n.folder_path && e.showPath ? (F(), O("span", {
|
|
757
744
|
key: 1,
|
|
758
745
|
class: "top-groupSelector_groupItemFolderPath top-ellipsis1",
|
|
759
746
|
innerHTML: n.folder_path
|
|
760
|
-
}, null, 8,
|
|
747
|
+
}, null, 8, nt)) : D("", !0)
|
|
761
748
|
])]),
|
|
762
749
|
_: 2
|
|
763
750
|
}, [e.canEditAndDel && e.client ? {
|
|
764
751
|
name: "actions",
|
|
765
|
-
fn:
|
|
752
|
+
fn: U(({ item: r }) => [r.id ? (F(), O(w, { key: 0 }, [j(_, {
|
|
766
753
|
submitText: t.$i18n.Common.Save,
|
|
767
754
|
defaultValue: r.name,
|
|
768
755
|
inputProps: { addCleaner: !1 },
|
|
769
|
-
onSubmit: (e) =>
|
|
756
|
+
onSubmit: (e) => b(r, e)
|
|
770
757
|
}, {
|
|
771
|
-
opener:
|
|
772
|
-
default:
|
|
758
|
+
opener: U(() => [...n[1] ||= [k("div", { "data-top-icon": "" }, null, -1)]]),
|
|
759
|
+
default: U(() => [...n[2] ||= []]),
|
|
773
760
|
_: 1
|
|
774
761
|
}, 8, [
|
|
775
762
|
"submitText",
|
|
776
763
|
"defaultValue",
|
|
777
764
|
"onSubmit"
|
|
778
|
-
]), j(
|
|
765
|
+
]), j(y, {
|
|
779
766
|
isWarning: "",
|
|
780
767
|
submitText: t.$i18n.Common.Delete,
|
|
781
768
|
onSubmit: (e) => C(r)
|
|
782
769
|
}, {
|
|
783
|
-
opener:
|
|
784
|
-
default:
|
|
770
|
+
opener: U(() => [...n[3] ||= [k("div", { "data-top-icon": "" }, null, -1)]]),
|
|
771
|
+
default: U(() => [k("span", { innerHTML: e.service === "keywords_2" ? t.$i18n.Keywords.Delete_group_warning : t.$i18n.Aitracker.Delete_group_warning }, null, 8, rt)]),
|
|
785
772
|
_: 1
|
|
786
773
|
}, 8, ["submitText", "onSubmit"])], 64)) : D("", !0)]),
|
|
787
774
|
key: "0"
|
|
@@ -796,7 +783,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
796
783
|
"addChanger"
|
|
797
784
|
]));
|
|
798
785
|
}
|
|
799
|
-
}),
|
|
786
|
+
}), at = { class: "top-groupSelector" }, ot = /* @__PURE__ */ M({
|
|
800
787
|
__name: "groupSelector",
|
|
801
788
|
props: /*@__PURE__*/ N({
|
|
802
789
|
folderId: {},
|
|
@@ -843,7 +830,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
843
830
|
folderModifiers: {},
|
|
844
831
|
groupId: { required: !0 },
|
|
845
832
|
groupIdModifiers: {},
|
|
846
|
-
group: { default:
|
|
833
|
+
group: { default: q },
|
|
847
834
|
groupModifiers: {}
|
|
848
835
|
}),
|
|
849
836
|
emits: /*@__PURE__*/ N(["update:groups"], [
|
|
@@ -853,10 +840,10 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
853
840
|
"update:group"
|
|
854
841
|
]),
|
|
855
842
|
setup(e, { expose: t, emit: n }) {
|
|
856
|
-
let r = e, i = I(null), a =
|
|
857
|
-
o.value =
|
|
843
|
+
let r = e, i = I(null), a = V(e, "folderId"), o = V(e, "folder"), s = V(e, "groupId"), c = V(e, "group"), l = n;
|
|
844
|
+
o.value = He(r.folders ?? { root: [K] }, r.canSelectAllGroups).get(a.value);
|
|
858
845
|
let u = r.groups?.find((e) => e.id === s.value);
|
|
859
|
-
s.value || (u = r.groups?.[0]), r.canSelectAllGroups && !u && (u =
|
|
846
|
+
s.value || (u = r.groups?.[0]), r.canSelectAllGroups && !u && (u = Y()), (r.autoselect === "placeholder" || !u) && (u = qe()), u ??= q, c.value = u;
|
|
860
847
|
let d = (e) => {
|
|
861
848
|
let t;
|
|
862
849
|
r.groups && e && (t = [...r.groups, e]), l("update:groups", t);
|
|
@@ -882,7 +869,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
882
869
|
};
|
|
883
870
|
return t({ resetCacheGroups: (e = !1) => {
|
|
884
871
|
i.value?.resetCacheGroups(e);
|
|
885
|
-
} }), (t, n) => (F(), O("div",
|
|
872
|
+
} }), (t, n) => (F(), O("div", at, [e.showFolders ? (F(), E(Ke, {
|
|
886
873
|
key: 0,
|
|
887
874
|
folderId: a.value,
|
|
888
875
|
"onUpdate:folderId": n[0] ||= (e) => a.value = e,
|
|
@@ -905,7 +892,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
905
892
|
"addIcon",
|
|
906
893
|
"client",
|
|
907
894
|
"service"
|
|
908
|
-
])) : D("", !0), e.showGroups ? (F(), E(
|
|
895
|
+
])) : D("", !0), e.showGroups ? (F(), E(it, {
|
|
909
896
|
key: 1,
|
|
910
897
|
ref_key: "componentGroupsRef",
|
|
911
898
|
ref: i,
|
|
@@ -947,44 +934,44 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
947
934
|
"service"
|
|
948
935
|
])) : D("", !0)]));
|
|
949
936
|
}
|
|
950
|
-
}),
|
|
937
|
+
}), st = (e) => ({
|
|
951
938
|
id: null,
|
|
952
939
|
name: e,
|
|
953
940
|
listItemProps: {
|
|
954
941
|
type: "title",
|
|
955
942
|
class: "top-projectSelector_item"
|
|
956
943
|
}
|
|
957
|
-
}),
|
|
944
|
+
}), ct = {
|
|
958
945
|
scheduledUpdate: !1,
|
|
959
946
|
manualUpdate: !1,
|
|
960
947
|
guestProjects: !1
|
|
961
|
-
},
|
|
948
|
+
}, lt = (e, t) => {
|
|
962
949
|
let r = [], i = {
|
|
963
|
-
scheduledUpdate:
|
|
964
|
-
manualUpdate:
|
|
965
|
-
guestProjects:
|
|
950
|
+
scheduledUpdate: st(n().Projects.Scheduled_update),
|
|
951
|
+
manualUpdate: st(n().Projects.Manual_update),
|
|
952
|
+
guestProjects: st(n().Projects.Guest_projects)
|
|
966
953
|
}, a = t ? {
|
|
967
954
|
scheduledUpdate: !1,
|
|
968
955
|
manualUpdate: !1,
|
|
969
956
|
guestProjects: !1
|
|
970
|
-
} :
|
|
957
|
+
} : ct;
|
|
971
958
|
for (let t of e) !a.scheduledUpdate && t.right?.startsWith("1") && t.on > 0 && (r.push(i.scheduledUpdate), a.scheduledUpdate = !0), !a.manualUpdate && t.right?.startsWith("1") && t.on === 0 && (r.push(i.manualUpdate), a.manualUpdate = !0), !a.guestProjects && t.right?.startsWith("0") && t.on >= 0 && (r.push(i.guestProjects), a.guestProjects = !0), r.push(t);
|
|
972
959
|
return r;
|
|
973
|
-
},
|
|
960
|
+
}, ut = (e) => ({
|
|
974
961
|
...e,
|
|
975
|
-
externalLink:
|
|
962
|
+
externalLink: gt(e.url ?? ""),
|
|
976
963
|
listItemProps: {
|
|
977
964
|
class: "top-projectSelector_item",
|
|
978
965
|
attrs: { title: e.name }
|
|
979
966
|
}
|
|
980
|
-
}),
|
|
967
|
+
}), dt = (e, t, n) => !e || e.length === 0 ? [] : (t && Object.keys(ct).forEach((e) => ct[e] = !1), lt(e.map(ut), n)), ft = (e) => {
|
|
981
968
|
e = e.replace(/#.*/, "");
|
|
982
969
|
let t = location.hash;
|
|
983
970
|
return t = t.replace(/%22historyView%22:[^,]*,/, ""), t = t.replace(/%22modelsKeys%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:\{[^}]*}(,?)/, "$1")), e + t;
|
|
984
|
-
}, ft = (e) => {
|
|
985
|
-
location.href = pt(e);
|
|
986
971
|
}, pt = (e) => {
|
|
987
|
-
|
|
972
|
+
location.href = mt(e);
|
|
973
|
+
}, mt = (e) => {
|
|
974
|
+
let t = ht(), n = location.pathname.split("/"), r = "project/dynamics/", i = "";
|
|
988
975
|
n[1] == "project" && (r = n[1] + "/" + n[2] + "/"), n[2] == "settings" && (i = location.hash), [
|
|
989
976
|
"watcher",
|
|
990
977
|
"indexing",
|
|
@@ -994,16 +981,16 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
994
981
|
"adwords"
|
|
995
982
|
].includes(n[4]) && (i = n[4] + "/");
|
|
996
983
|
let a = "https://" + t + "/" + r + e + "/" + i;
|
|
997
|
-
return a =
|
|
998
|
-
},
|
|
984
|
+
return a = ft(a), a;
|
|
985
|
+
}, ht = () => window.page?.subdomain ? window.location.host.replace(window.page?.subdomain + ".", "") : window.location.host, gt = (e) => {
|
|
999
986
|
let t = e.startsWith("http") ? e : "https://" + e;
|
|
1000
987
|
return t = t.replace(/"/g, "%22"), t;
|
|
1001
|
-
},
|
|
988
|
+
}, _t = (e, n) => {
|
|
1002
989
|
let r = e.params.filters ?? [];
|
|
1003
990
|
r = r.filter((e) => e.name !== "GEN_SEARCH_STRING()");
|
|
1004
|
-
let i =
|
|
991
|
+
let i = h(n), a = n.replace(/([[^$.|?*+()])/g, "\\$1"), o = i.replace(/([[^$.|?*+()])/g, "\\$1");
|
|
1005
992
|
n && r.push(t("GEN_SEARCH_STRING()", "REGEXP", [`(${a}|${o})`])), e.changeParams({ filters: r });
|
|
1006
|
-
},
|
|
993
|
+
}, vt = (n, i = !0) => {
|
|
1007
994
|
let a = n.gen("/get/projects_2/projects/", [
|
|
1008
995
|
"id",
|
|
1009
996
|
"user_id",
|
|
@@ -1023,9 +1010,9 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1023
1010
|
]
|
|
1024
1011
|
}), a.options.loadingShowSpinner = !1, i && (a.options.onApiLoaded = (e, t, n) => {
|
|
1025
1012
|
let r = t.data.filters.length > 1, i = t.data.offset === 0, a = t.data.offset === void 0 || i && !r, o = r;
|
|
1026
|
-
e.result =
|
|
1013
|
+
e.result = dt(e.result, a, o), n?.(e, t);
|
|
1027
1014
|
}), a;
|
|
1028
|
-
},
|
|
1015
|
+
}, yt = (e) => {
|
|
1029
1016
|
let t = () => ({
|
|
1030
1017
|
userId: r.state.userId,
|
|
1031
1018
|
projectsIds: [],
|
|
@@ -1045,7 +1032,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1045
1032
|
return { getNextProjectId: async (a, o = !1) => {
|
|
1046
1033
|
if (n.isLoading) return;
|
|
1047
1034
|
n.userId !== r.state.userId && (n = t());
|
|
1048
|
-
let s =
|
|
1035
|
+
let s = vt(e, !1);
|
|
1049
1036
|
s.changeParams({ limit: 1e3 });
|
|
1050
1037
|
let c;
|
|
1051
1038
|
for (n.isLoading = !0, n.needFind = !0; c = i(a, o), n.needFind && !c && n.nextOffset !== null;) {
|
|
@@ -1056,11 +1043,11 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1056
1043
|
}
|
|
1057
1044
|
return n.isLoading = !1, c;
|
|
1058
1045
|
} };
|
|
1059
|
-
},
|
|
1046
|
+
}, bt = (e) => e.gen("/add/projects_2/projects/"), xt = { class: "top-ellipsis1" }, St = /* @__PURE__ */ M({
|
|
1060
1047
|
__name: "submenu",
|
|
1061
1048
|
props: { id: {} },
|
|
1062
1049
|
setup(e) {
|
|
1063
|
-
let t = e, i = n(), a =
|
|
1050
|
+
let t = e, i = n(), a = ht(), o = (e) => {
|
|
1064
1051
|
let t = [
|
|
1065
1052
|
{
|
|
1066
1053
|
href: `https://${a}/project/keywords/${e.id}/`,
|
|
@@ -1137,58 +1124,58 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1137
1124
|
].filter((e) => !Object.entries(r.state.closedByMod).some(([t, n]) => n && e.href.includes(`/${t}/`)));
|
|
1138
1125
|
return e.right.includes("0") ? t.filter((t) => e.right[t.right] === "1") : t;
|
|
1139
1126
|
};
|
|
1140
|
-
return (e, n) => (F(), E(
|
|
1127
|
+
return (e, n) => (F(), E(B(b), {
|
|
1141
1128
|
id: t.id,
|
|
1142
1129
|
class: "top-projectSelectorSubmenu",
|
|
1143
1130
|
notch: !1,
|
|
1144
1131
|
pos: "2"
|
|
1145
1132
|
}, {
|
|
1146
|
-
contentList:
|
|
1133
|
+
contentList: U(({ data: t }) => [t ? (F(), O(w, { key: 0 }, [(F(!0), O(w, null, L(o(t.projectItem), (t) => (F(), E(B(v), {
|
|
1147
1134
|
href: t.href,
|
|
1148
1135
|
title: t.title,
|
|
1149
1136
|
"data-top-icon": t.icon,
|
|
1150
1137
|
"data-right": t.right
|
|
1151
1138
|
}, {
|
|
1152
|
-
default:
|
|
1139
|
+
default: U(() => [A(z(e.$core.state.isMobile ? t.title : ""), 1)]),
|
|
1153
1140
|
_: 2
|
|
1154
1141
|
}, 1032, [
|
|
1155
1142
|
"href",
|
|
1156
1143
|
"title",
|
|
1157
1144
|
"data-top-icon",
|
|
1158
1145
|
"data-right"
|
|
1159
|
-
]))), 256)), j(
|
|
1146
|
+
]))), 256)), j(B(v), {
|
|
1160
1147
|
href: t.projectItem.externalLink,
|
|
1161
1148
|
title: t.projectItem.externalLink,
|
|
1162
1149
|
class: "top-ellipsis",
|
|
1163
1150
|
"data-top-icon": "",
|
|
1164
1151
|
target: "_blank"
|
|
1165
1152
|
}, {
|
|
1166
|
-
default:
|
|
1153
|
+
default: U(() => [k("span", xt, z(e.$core.state.isMobile ? t.projectItem.externalLink : ""), 1)]),
|
|
1167
1154
|
_: 2
|
|
1168
1155
|
}, 1032, ["href", "title"])], 64)) : D("", !0)]),
|
|
1169
1156
|
_: 1
|
|
1170
1157
|
}, 8, ["id"]));
|
|
1171
1158
|
}
|
|
1172
|
-
}),
|
|
1173
|
-
localStorage.setItem(
|
|
1159
|
+
}), X = "ui_project_selector_total", Ct = 864e5, wt = I(null), Z = fe(), Tt = (e) => {
|
|
1160
|
+
localStorage.setItem(X + ":" + r.state.userId, JSON.stringify({
|
|
1174
1161
|
projectsTotal: e,
|
|
1175
|
-
expiresAt: Date.now() +
|
|
1162
|
+
expiresAt: Date.now() + Ct
|
|
1176
1163
|
}));
|
|
1177
|
-
},
|
|
1178
|
-
let e = localStorage.getItem(
|
|
1164
|
+
}, Et = () => {
|
|
1165
|
+
let e = localStorage.getItem(X + ":" + r.state.userId);
|
|
1179
1166
|
if (!e) return;
|
|
1180
1167
|
let { projectsTotal: t, expiresAt: n } = JSON.parse(e);
|
|
1181
1168
|
if (Date.now() > n) {
|
|
1182
|
-
localStorage.removeItem(
|
|
1169
|
+
localStorage.removeItem(X + ":" + r.state.userId);
|
|
1183
1170
|
return;
|
|
1184
1171
|
}
|
|
1185
1172
|
return t;
|
|
1186
|
-
},
|
|
1187
|
-
|
|
1188
|
-
},
|
|
1173
|
+
}, Dt = () => {
|
|
1174
|
+
wt.value = null, Z.value = void 0, localStorage.removeItem(X + ":" + r.state.userId), C("/get/projects_2/projects/");
|
|
1175
|
+
}, Ot = { class: "top-projectSelector_itemText" }, kt = { class: "top-comment" }, At = {
|
|
1189
1176
|
key: 0,
|
|
1190
1177
|
class: "top-comment"
|
|
1191
|
-
},
|
|
1178
|
+
}, jt = ["href"], Mt = 1e3, Nt = /* @__PURE__ */ M({
|
|
1192
1179
|
__name: "projectSelector",
|
|
1193
1180
|
props: /*@__PURE__*/ N({
|
|
1194
1181
|
modelValue: {},
|
|
@@ -1211,69 +1198,69 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1211
1198
|
}),
|
|
1212
1199
|
emits: ["update:modelValue"],
|
|
1213
1200
|
setup(e, { expose: t }) {
|
|
1214
|
-
let i = n(), a = e, o =
|
|
1201
|
+
let i = n(), a = e, o = V(e, "modelValue"), s = vt(a.client), c = bt(a.client), l = I(Et()), u = I(null), p = me(), m = T(() => a.placeholder ?? i.Projects.Select_project), h = T(() => !Z.value || !a.excludeProjectId ? Z.value : Z.value.filter((e) => e.id !== a.excludeProjectId)), { getNextProjectId: _ } = yt(a.client), v = async (e = !1) => {
|
|
1215
1202
|
let t = o.value.id;
|
|
1216
1203
|
if (!t) return;
|
|
1217
1204
|
let n = await _(t, e);
|
|
1218
|
-
n &&
|
|
1205
|
+
n && pt(n);
|
|
1219
1206
|
}, y = T(() => {
|
|
1220
|
-
if (l.value || l.value === 0) return l.value <
|
|
1221
|
-
}),
|
|
1222
|
-
|
|
1223
|
-
let e = await
|
|
1224
|
-
return
|
|
1207
|
+
if (l.value || l.value === 0) return l.value < Mt ? "static" : "api";
|
|
1208
|
+
}), b = async () => {
|
|
1209
|
+
wt.value ||= s.call();
|
|
1210
|
+
let e = await wt.value;
|
|
1211
|
+
return wt.value = null, e;
|
|
1225
1212
|
}, S = async (e) => {
|
|
1226
1213
|
let t = await c.changeParams({
|
|
1227
1214
|
url: e.name,
|
|
1228
1215
|
name: e.name
|
|
1229
1216
|
}).call();
|
|
1230
1217
|
if (!t.errors) {
|
|
1231
|
-
if (
|
|
1232
|
-
let n =
|
|
1218
|
+
if (Z.value && y.value === "static") {
|
|
1219
|
+
let n = ut({
|
|
1233
1220
|
id: t.result,
|
|
1234
1221
|
user_id: r.state.userId,
|
|
1235
1222
|
name: e.name,
|
|
1236
1223
|
url: e.name,
|
|
1237
1224
|
on: 0,
|
|
1238
1225
|
right: "11111111111111111111"
|
|
1239
|
-
}), i =
|
|
1240
|
-
|
|
1241
|
-
...
|
|
1226
|
+
}), i = Z.value.findIndex((e) => e.on === 0);
|
|
1227
|
+
Z.value = [
|
|
1228
|
+
...Z.value.slice(0, i),
|
|
1242
1229
|
n,
|
|
1243
|
-
...
|
|
1244
|
-
], l.value && (l.value += 1,
|
|
1230
|
+
...Z.value.slice(i)
|
|
1231
|
+
], l.value && (l.value += 1, Tt(l.value));
|
|
1245
1232
|
}
|
|
1246
|
-
y.value === "api" &&
|
|
1233
|
+
y.value === "api" && u.value?.resetCache(!0);
|
|
1247
1234
|
}
|
|
1248
1235
|
}, C = async () => {
|
|
1249
|
-
if (
|
|
1250
|
-
let e = await
|
|
1251
|
-
e.errors || (
|
|
1236
|
+
if (Z.value || y.value === "api") return;
|
|
1237
|
+
let e = await b();
|
|
1238
|
+
e.errors || (Z.value = e.result);
|
|
1252
1239
|
}, ee = async () => {
|
|
1253
1240
|
if (l.value) {
|
|
1254
|
-
let e =
|
|
1241
|
+
let e = u.value?.popupOpenerRef?.$el;
|
|
1255
1242
|
e && e.addEventListener("pointerenter", () => C(), { once: !0 });
|
|
1256
1243
|
} else {
|
|
1257
|
-
s.changeParams({ limit:
|
|
1258
|
-
let e = await
|
|
1244
|
+
s.changeParams({ limit: Mt });
|
|
1245
|
+
let e = await b();
|
|
1259
1246
|
if (e.errors) return;
|
|
1260
|
-
delete s.params.limit, l.value = e.total ?? void 0, !
|
|
1247
|
+
delete s.params.limit, l.value = e.total ?? void 0, !Z.value && y.value !== "api" && (Z.value = e.result), l.value && Tt(l.value);
|
|
1261
1248
|
}
|
|
1262
1249
|
};
|
|
1263
|
-
return t({ goToNextProject: v }),
|
|
1250
|
+
return t({ goToNextProject: v }), oe(async () => {
|
|
1264
1251
|
await ee();
|
|
1265
1252
|
}), (t, n) => {
|
|
1266
|
-
let r =
|
|
1267
|
-
return F(), O(w, null, [(F(), E(
|
|
1253
|
+
let r = le("TopButton");
|
|
1254
|
+
return F(), O(w, null, [(F(), E(x, {
|
|
1268
1255
|
key: y.value ?? "dummy",
|
|
1269
1256
|
ref_key: "refSelector",
|
|
1270
|
-
ref:
|
|
1257
|
+
ref: u,
|
|
1271
1258
|
class: "top-projectSelector",
|
|
1272
1259
|
modelValue: o.value,
|
|
1273
|
-
"onUpdate:modelValue": n[1] ||= (t) => e.menuMode ?
|
|
1274
|
-
items:
|
|
1260
|
+
"onUpdate:modelValue": n[1] ||= (t) => e.menuMode ? B(pt)(t.id) : o.value = t,
|
|
1261
|
+
items: h.value,
|
|
1275
1262
|
itemsChunkSize: 100,
|
|
1276
|
-
itemsIsLoading: y.value === "static" &&
|
|
1263
|
+
itemsIsLoading: y.value === "static" && B(Z) === void 0,
|
|
1277
1264
|
title: t.$i18n.Projects.Search_projects,
|
|
1278
1265
|
modificator: e.modificator,
|
|
1279
1266
|
searchFields: [
|
|
@@ -1283,12 +1270,12 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1283
1270
|
],
|
|
1284
1271
|
placeholder: m.value,
|
|
1285
1272
|
hasCloserBtn: "",
|
|
1286
|
-
api: y.value === "api" ?
|
|
1287
|
-
apiSetSearchParams: y.value === "api" ? (...e) =>
|
|
1273
|
+
api: y.value === "api" ? B(s) : void 0,
|
|
1274
|
+
apiSetSearchParams: y.value === "api" ? (...e) => B(_t)(...e) : void 0,
|
|
1288
1275
|
useCache: "",
|
|
1289
1276
|
appendSearchToResult: "",
|
|
1290
1277
|
appendSearchAllowDuplicate: "",
|
|
1291
|
-
appendSearchToResultCond:
|
|
1278
|
+
appendSearchToResultCond: B(d),
|
|
1292
1279
|
appendWithoutSelect: "",
|
|
1293
1280
|
buttonProps: {
|
|
1294
1281
|
...e.buttonProps,
|
|
@@ -1299,27 +1286,27 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1299
1286
|
onAppendItem: S,
|
|
1300
1287
|
onOpen: C
|
|
1301
1288
|
}, {
|
|
1302
|
-
item:
|
|
1289
|
+
item: U(({ item: i }) => [k("div", Ot, [i.id ? (F(), O(w, { key: 0 }, [A(z(B(f)(i.name, 20)) + " ", 1), k("span", kt, " id " + z(i.id), 1)], 64)) : (F(), O(w, { key: 1 }, [i.listItemProps?.type ? D("", !0) : (F(), O("div", At, z(t.$i18n.Projects.Add_project) + ": ", 1)), A(" " + z(i.name), 1)], 64))]), i.id ? (F(), O(w, { key: 0 }, [
|
|
1303
1290
|
e.menuMode ? (F(), O("a", {
|
|
1304
1291
|
key: 0,
|
|
1305
1292
|
class: "top-projectSelector_itemLink",
|
|
1306
|
-
href:
|
|
1307
|
-
}, null, 8,
|
|
1293
|
+
href: B(mt)(i.id)
|
|
1294
|
+
}, null, 8, jt)) : D("", !0),
|
|
1308
1295
|
t.$core.state.isMobile ? D("", !0) : (F(), E(r, {
|
|
1309
1296
|
key: 1,
|
|
1310
1297
|
href: i.externalLink,
|
|
1311
1298
|
"data-top-icon": "",
|
|
1312
1299
|
color: "theme",
|
|
1313
1300
|
target: "_blank",
|
|
1314
|
-
onClick: n[0] ||=
|
|
1301
|
+
onClick: n[0] ||= W(() => {}, ["stop"])
|
|
1315
1302
|
}, null, 8, ["href"])),
|
|
1316
|
-
j(
|
|
1317
|
-
id:
|
|
1303
|
+
j(g, {
|
|
1304
|
+
id: B(p),
|
|
1318
1305
|
pos: "2",
|
|
1319
1306
|
notch: !1,
|
|
1320
1307
|
data: { projectItem: i }
|
|
1321
1308
|
}, {
|
|
1322
|
-
default:
|
|
1309
|
+
default: U(() => [j(r, {
|
|
1323
1310
|
class: "top-popup_listMore",
|
|
1324
1311
|
"data-top-icon": "",
|
|
1325
1312
|
color: "theme"
|
|
@@ -1340,16 +1327,16 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1340
1327
|
"appendSearchToResultCond",
|
|
1341
1328
|
"buttonProps",
|
|
1342
1329
|
"openerShortcut"
|
|
1343
|
-
])), j(
|
|
1330
|
+
])), j(St, { id: B(p) }, null, 8, ["id"])], 64);
|
|
1344
1331
|
};
|
|
1345
1332
|
}
|
|
1346
|
-
}),
|
|
1347
|
-
e =
|
|
1333
|
+
}), Pt = (e) => "-" + e, Q = (e) => e[0] === "-" ? e.substring(1) : e, Ft = (e, t) => {
|
|
1334
|
+
e = Q(e);
|
|
1348
1335
|
let n = t.find((t) => t.id === e);
|
|
1349
1336
|
if (n) return n;
|
|
1350
|
-
},
|
|
1337
|
+
}, It = (e, t, n) => {
|
|
1351
1338
|
t ||= { id: e.id }, t.id = e.id, t.pos ??= "3", t.notch ??= !0, t.posBy ??= "fixed";
|
|
1352
|
-
let r =
|
|
1339
|
+
let r = l.genElPopupOpener("div", t);
|
|
1353
1340
|
return r.classList.add("top-tagSelector"), e.useTopButton && r.classList.add("top-tagSelector-useTopButton", "top-button", "top-color_theme", "top-as-selector"), e.useTopButton || r.classList.add("top-tagSelector-custom"), e.mode === "filter" && r.classList.add("top-tagSelector-filter"), e.mode === "setter" && !e.filters && r.classList.add("top-tagSelector-setter_single"), e.mode === "setter" && e.filters && r.classList.add("top-tagSelector-setter_several"), r.onclick = (t) => {
|
|
1354
1341
|
t.preventDefault(), t.stopPropagation(), r.onclick = null;
|
|
1355
1342
|
let i = I(e.modelValue), a = {
|
|
@@ -1359,24 +1346,24 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1359
1346
|
filters: e.filters,
|
|
1360
1347
|
payload: e.payload
|
|
1361
1348
|
};
|
|
1362
|
-
|
|
1363
|
-
e.modelValue = i.value,
|
|
1349
|
+
c(r, "topTagSelectorTarget", a), delete r.dataset.topPopupDisabled, ne(e.modelValue) || H(i, () => {
|
|
1350
|
+
e.modelValue = i.value, Rt(r, e, n);
|
|
1364
1351
|
}), r.click();
|
|
1365
|
-
},
|
|
1352
|
+
}, ne(e.modelValue) ? H(e.modelValue, () => Rt(r, e, n)) : c(r, "topTagSelectorRender", (t) => {
|
|
1366
1353
|
e.modelValue = t;
|
|
1367
|
-
let i =
|
|
1368
|
-
i && (i.model.value = t),
|
|
1369
|
-
}),
|
|
1370
|
-
},
|
|
1371
|
-
|
|
1372
|
-
},
|
|
1373
|
-
let i =
|
|
1354
|
+
let i = c(r, "topTagSelectorTarget");
|
|
1355
|
+
i && (i.model.value = t), Rt(r, e, n);
|
|
1356
|
+
}), Rt(r, e, n), r;
|
|
1357
|
+
}, Lt = (e, t) => {
|
|
1358
|
+
c(e, "topTagSelectorRender")?.(t);
|
|
1359
|
+
}, Rt = (e, t, r) => {
|
|
1360
|
+
let i = B(t.modelValue);
|
|
1374
1361
|
if (e.classList.toggle("top-tagSelector-selectedOne", !i.length || i.length === 1), e.classList.toggle("top-tagSelector-toTwoLine", i.length > 5), t.mode === "setter" && t.filters) {
|
|
1375
1362
|
e.innerHTML = `<div>${r}</div>`;
|
|
1376
1363
|
return;
|
|
1377
1364
|
}
|
|
1378
1365
|
if (e.innerHTML = "", !i.length && t.mode === "filter") {
|
|
1379
|
-
let t =
|
|
1366
|
+
let t = zt({
|
|
1380
1367
|
id: "all",
|
|
1381
1368
|
colorId: "",
|
|
1382
1369
|
name: n().Common?.All_tags ?? "",
|
|
@@ -1385,18 +1372,18 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1385
1372
|
e.append(t);
|
|
1386
1373
|
}
|
|
1387
1374
|
i.forEach((n) => {
|
|
1388
|
-
let r =
|
|
1389
|
-
id:
|
|
1390
|
-
colorId:
|
|
1391
|
-
name:
|
|
1392
|
-
state:
|
|
1375
|
+
let r = zt({
|
|
1376
|
+
id: Q(n),
|
|
1377
|
+
colorId: Ft(n, t.tags)?.color_id ?? "",
|
|
1378
|
+
name: Ft(n, t.tags)?.name ?? "",
|
|
1379
|
+
state: Q(n) === n ? "selected" : "excluded"
|
|
1393
1380
|
});
|
|
1394
1381
|
e.append(r);
|
|
1395
1382
|
});
|
|
1396
|
-
},
|
|
1383
|
+
}, zt = (e) => {
|
|
1397
1384
|
let t = document.createElement("div");
|
|
1398
1385
|
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;
|
|
1399
|
-
},
|
|
1386
|
+
}, Bt = [
|
|
1400
1387
|
{
|
|
1401
1388
|
id: "1",
|
|
1402
1389
|
name: "Without Tag",
|
|
@@ -1447,11 +1434,11 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1447
1434
|
name: "Turquoise",
|
|
1448
1435
|
color_id: "10"
|
|
1449
1436
|
}
|
|
1450
|
-
],
|
|
1437
|
+
], Vt = [
|
|
1451
1438
|
"data-tag_id",
|
|
1452
1439
|
"data-tag_color_id",
|
|
1453
1440
|
"title"
|
|
1454
|
-
],
|
|
1441
|
+
], Ht = /* @__PURE__ */ M({
|
|
1455
1442
|
__name: "tagIcon",
|
|
1456
1443
|
props: {
|
|
1457
1444
|
id: {},
|
|
@@ -1469,9 +1456,9 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1469
1456
|
"data-tag_id": e.id,
|
|
1470
1457
|
"data-tag_color_id": e.colorId,
|
|
1471
1458
|
title: e.name
|
|
1472
|
-
}, null, 10,
|
|
1459
|
+
}, null, 10, Vt));
|
|
1473
1460
|
}
|
|
1474
|
-
}),
|
|
1461
|
+
}), Ut = ["contenteditable", "onKeydown"], Wt = /* @__PURE__ */ M({
|
|
1475
1462
|
__name: "tagPopupListItem",
|
|
1476
1463
|
props: /*@__PURE__*/ N({
|
|
1477
1464
|
editable: { type: Boolean },
|
|
@@ -1492,11 +1479,11 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1492
1479
|
"select"
|
|
1493
1480
|
], ["update:name"]),
|
|
1494
1481
|
setup(e, { emit: t }) {
|
|
1495
|
-
let n = e, r = t, i =
|
|
1482
|
+
let n = e, r = t, i = V(e, "name"), a = I(null), o = T(() => navigator.userAgent.indexOf("Firefox") == -1 ? {} : {
|
|
1496
1483
|
contenteditable: s.value,
|
|
1497
1484
|
onpaste: (e) => e.preventDefault()
|
|
1498
1485
|
}), s = I(!1), c = async () => {
|
|
1499
|
-
s.value = !0, await
|
|
1486
|
+
s.value = !0, await ie(), a.value?.focus();
|
|
1500
1487
|
}, l = () => {
|
|
1501
1488
|
let e = a.value?.innerText;
|
|
1502
1489
|
if (!e) return u();
|
|
@@ -1508,7 +1495,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1508
1495
|
let t = "selected";
|
|
1509
1496
|
n.canExclude && (e.ctrlKey || e.metaKey) && (t = "excluded"), n.state == t && (t = ""), t === "" && r("unselect"), t === "selected" && r("select"), t === "excluded" && r("exclude");
|
|
1510
1497
|
};
|
|
1511
|
-
return (t, n) => (F(), E(
|
|
1498
|
+
return (t, n) => (F(), E(v, {
|
|
1512
1499
|
class: P({
|
|
1513
1500
|
"top-tagSelector_tagListItem": !0,
|
|
1514
1501
|
"top-tagSelector_tagListItem-inEdit": s.value,
|
|
@@ -1517,10 +1504,10 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1517
1504
|
"top-tagSelector-active": !!e.state,
|
|
1518
1505
|
"top-tagSelector-excluded": e.state === "excluded"
|
|
1519
1506
|
}),
|
|
1520
|
-
onClick:
|
|
1507
|
+
onClick: W(d, ["stop"])
|
|
1521
1508
|
}, {
|
|
1522
|
-
default:
|
|
1523
|
-
j(
|
|
1509
|
+
default: U(() => [
|
|
1510
|
+
j(Ht, {
|
|
1524
1511
|
id: e.id,
|
|
1525
1512
|
name: i.value,
|
|
1526
1513
|
colorId: e.colorId,
|
|
@@ -1531,17 +1518,17 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1531
1518
|
"colorId",
|
|
1532
1519
|
"state"
|
|
1533
1520
|
]),
|
|
1534
|
-
k("span",
|
|
1521
|
+
k("span", re({
|
|
1535
1522
|
ref_key: "elName",
|
|
1536
1523
|
ref: a,
|
|
1537
1524
|
class: "top-tagSelector_tagListItemName",
|
|
1538
1525
|
contenteditable: s.value ? "plaintext-only" : !1
|
|
1539
|
-
}, o.value, { onKeydown: [
|
|
1526
|
+
}, o.value, { onKeydown: [ge(W(l, ["stop"]), ["enter"]), ge(W(u, ["stop"]), ["esc"])] }), z(i.value), 17, Ut),
|
|
1540
1527
|
e.editable ? (F(), O(w, { key: 0 }, [s.value ? (F(), O("span", {
|
|
1541
1528
|
key: 1,
|
|
1542
1529
|
"data-top-icon": "",
|
|
1543
1530
|
class: "top-tagSelector_edit",
|
|
1544
|
-
onClick:
|
|
1531
|
+
onClick: W(l, ["stop"])
|
|
1545
1532
|
})) : (F(), O("span", {
|
|
1546
1533
|
key: 0,
|
|
1547
1534
|
"data-top-icon": "",
|
|
@@ -1552,7 +1539,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1552
1539
|
_: 1
|
|
1553
1540
|
}, 8, ["class"]));
|
|
1554
1541
|
}
|
|
1555
|
-
}),
|
|
1542
|
+
}), Gt = { key: 1 }, Kt = /* @__PURE__ */ M({
|
|
1556
1543
|
inheritAttrs: !1,
|
|
1557
1544
|
__name: "popupOpener",
|
|
1558
1545
|
props: /*@__PURE__*/ N({
|
|
@@ -1571,7 +1558,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1571
1558
|
}),
|
|
1572
1559
|
emits: ["update:modelValue"],
|
|
1573
1560
|
setup(e, { attrs: t }) {
|
|
1574
|
-
let n = e, r =
|
|
1561
|
+
let n = e, r = V(e, "modelValue"), i = n.useTopButton ? a : "div", o = n.useTopButton ? "html" : "default", s = {
|
|
1575
1562
|
model: r,
|
|
1576
1563
|
mode: n.mode,
|
|
1577
1564
|
targetId: n.targetId,
|
|
@@ -1579,9 +1566,9 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1579
1566
|
payload: n.payload
|
|
1580
1567
|
};
|
|
1581
1568
|
return (a, c) => {
|
|
1582
|
-
let l =
|
|
1583
|
-
return F(), E(
|
|
1584
|
-
default:
|
|
1569
|
+
let l = ue("top-data");
|
|
1570
|
+
return F(), E(g, { id: e.id }, {
|
|
1571
|
+
default: U(() => [he((F(), E(de(B(i)), re({
|
|
1585
1572
|
class: {
|
|
1586
1573
|
"top-tagSelector": !0,
|
|
1587
1574
|
"top-tagSelector-useTopButton": n.useTopButton,
|
|
@@ -1596,17 +1583,17 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1596
1583
|
color: "theme",
|
|
1597
1584
|
styling: e.styling
|
|
1598
1585
|
}, t), {
|
|
1599
|
-
[
|
|
1586
|
+
[B(o)]: U(() => [!r.value.length && e.mode === "filter" ? (F(), E(Ht, {
|
|
1600
1587
|
key: 0,
|
|
1601
1588
|
id: "all",
|
|
1602
1589
|
colorId: "",
|
|
1603
1590
|
name: a.$i18n.Common.All_tags ?? "",
|
|
1604
1591
|
state: ""
|
|
1605
|
-
}, null, 8, ["name"])) : D("", !0), e.mode === "setter" && e.filters ? (F(), O("div",
|
|
1606
|
-
id:
|
|
1607
|
-
colorId:
|
|
1608
|
-
name:
|
|
1609
|
-
state:
|
|
1592
|
+
}, null, 8, ["name"])) : D("", !0), e.mode === "setter" && e.filters ? (F(), O("div", Gt, [R(a.$slots, "default")])) : (F(!0), O(w, { key: 2 }, L(r.value, (t) => (F(), E(Ht, {
|
|
1593
|
+
id: B(Q)(t),
|
|
1594
|
+
colorId: B(Ft)(t, e.tags)?.color_id ?? "",
|
|
1595
|
+
name: B(Ft)(t, e.tags)?.name ?? "",
|
|
1596
|
+
state: B(Q)(t) === t ? "selected" : "excluded"
|
|
1610
1597
|
}, null, 8, [
|
|
1611
1598
|
"id",
|
|
1612
1599
|
"colorId",
|
|
@@ -1623,7 +1610,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1623
1610
|
}, 8, ["id"]);
|
|
1624
1611
|
};
|
|
1625
1612
|
}
|
|
1626
|
-
}),
|
|
1613
|
+
}), qt = /* @__PURE__ */ M({
|
|
1627
1614
|
__name: "tagSelector",
|
|
1628
1615
|
props: /*@__PURE__*/ N({
|
|
1629
1616
|
modelValue: {},
|
|
@@ -1646,7 +1633,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1646
1633
|
}, {
|
|
1647
1634
|
modelValue: { required: !0 },
|
|
1648
1635
|
modelModifiers: {},
|
|
1649
|
-
tags: { default:
|
|
1636
|
+
tags: { default: ce(Bt) },
|
|
1650
1637
|
tagsModifiers: {}
|
|
1651
1638
|
}),
|
|
1652
1639
|
emits: /*@__PURE__*/ N([
|
|
@@ -1655,51 +1642,51 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1655
1642
|
"tagsChanged"
|
|
1656
1643
|
], ["update:modelValue", "update:tags"]),
|
|
1657
1644
|
setup(e, { emit: t }) {
|
|
1658
|
-
let
|
|
1645
|
+
let o = n(), l = e, u = V(e, "modelValue"), d = V(e, "tags"), f = t, p = i((e, t) => {
|
|
1659
1646
|
f(e, t);
|
|
1660
1647
|
}, l.emitDelay);
|
|
1661
1648
|
l.singleMode && !u.value.length && (u.value = [d.value[0].id]);
|
|
1662
1649
|
let m = l.id ?? "top-popup-id-" + Math.random(), h = I("add"), g = () => {
|
|
1663
|
-
let e = " " +
|
|
1650
|
+
let e = " " + o.Common.Tags?.toLowerCase(), t = /* @__PURE__ */ new Map();
|
|
1664
1651
|
return t.set("add", {
|
|
1665
1652
|
value: "add",
|
|
1666
|
-
title:
|
|
1653
|
+
title: o.Common.Add + e
|
|
1667
1654
|
}), t.set("replace", {
|
|
1668
1655
|
value: "replace",
|
|
1669
|
-
title:
|
|
1656
|
+
title: o.Common.Replace + e
|
|
1670
1657
|
}), t.set("delete", {
|
|
1671
1658
|
value: "delete",
|
|
1672
|
-
title:
|
|
1659
|
+
title: o.Common.Delete + e
|
|
1673
1660
|
}), t;
|
|
1674
|
-
},
|
|
1661
|
+
}, _ = fe({
|
|
1675
1662
|
model: u,
|
|
1676
1663
|
mode: "filter",
|
|
1677
1664
|
targetId: void 0,
|
|
1678
1665
|
filters: void 0,
|
|
1679
1666
|
payload: void 0
|
|
1680
1667
|
});
|
|
1681
|
-
|
|
1668
|
+
H(u, () => {
|
|
1682
1669
|
p("selector", u.value);
|
|
1683
1670
|
});
|
|
1684
|
-
let
|
|
1685
|
-
if (
|
|
1671
|
+
let y = T(() => {
|
|
1672
|
+
if (_.value.mode === "setter" && l.maxTagsForSetter && !_.value.filters) return _.value.model.value.length >= l.maxTagsForSetter;
|
|
1686
1673
|
}), x = (e) => {
|
|
1687
1674
|
if (e !== "all") {
|
|
1688
|
-
if (
|
|
1689
|
-
if (
|
|
1675
|
+
if (_.value.model.value.includes(e)) return "selected";
|
|
1676
|
+
if (_.value.model.value.includes(Pt(e))) return "excluded";
|
|
1690
1677
|
}
|
|
1691
|
-
return e === "all" && !
|
|
1678
|
+
return e === "all" && !_.value.model.value.length ? "selected" : "";
|
|
1692
1679
|
}, S = (e, t) => {
|
|
1693
|
-
let n =
|
|
1694
|
-
t === "select" && r.push(e), t === "exclude" && r.push(n),
|
|
1680
|
+
let n = Pt(e), r = _.value.model.value.filter((t) => t !== e && t !== n);
|
|
1681
|
+
t === "select" && r.push(e), t === "exclude" && r.push(n), _.value.mode === "setter" && _.value.targetId !== void 0 && l.requiredForSetter && (r.length || r.push("1"), r.length === 2 && _.value.model.value.length === 1 && _.value.model.value[0] === "1" && (r = r.filter((e) => e !== "1"))), l.singleMode && !_.value.filters && (r.length || (r = _.value.model.value), r.length > 1 && (r = [r[r.length - 1]])), r.sort((e, t) => l.tags ? l.tags.findIndex((t) => t.id === e) - l.tags.findIndex((e) => e.id === t) : 0), _.value.model.value = r, _.value.mode === "setter" && _.value.targetId !== void 0 && p("setter", {
|
|
1695
1682
|
tagsIds: r,
|
|
1696
|
-
targetId:
|
|
1697
|
-
payload:
|
|
1683
|
+
targetId: _.value.targetId,
|
|
1684
|
+
payload: _.value.payload
|
|
1698
1685
|
});
|
|
1699
1686
|
}, C = T(() => {
|
|
1700
1687
|
let e = "top-tagSelector_popup";
|
|
1701
|
-
return
|
|
1702
|
-
}),
|
|
1688
|
+
return _.value.mode === "filter" && (e += " top-tagSelector_popup-filter"), _.value.mode === "setter" && (e += " top-tagSelector_popup-setter"), e;
|
|
1689
|
+
}), ee = () => {
|
|
1703
1690
|
let e = prompt("", "New tag");
|
|
1704
1691
|
if (!e || e === "New tag") return;
|
|
1705
1692
|
let t = d.value.length + 1;
|
|
@@ -1708,9 +1695,9 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1708
1695
|
name: e,
|
|
1709
1696
|
color_id: String((t - 1) % 10 + 1)
|
|
1710
1697
|
}), f("tagsChanged", d.value);
|
|
1711
|
-
},
|
|
1712
|
-
if (
|
|
1713
|
-
if (
|
|
1698
|
+
}, k = (e) => {
|
|
1699
|
+
if (_.value = c(e.elPopupOpener, "topTagSelectorTarget"), !_.value) throw Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
|
|
1700
|
+
if (_.value.filters && (h.value = "add", _.value.model.value = []), !r.$?.ui.sortable) {
|
|
1714
1701
|
console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
|
|
1715
1702
|
return;
|
|
1716
1703
|
}
|
|
@@ -1728,13 +1715,13 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1728
1715
|
}), d.value.sort((e, t) => r.findIndex((t) => t === e.id) - r.findIndex((e) => e === t.id)), p("tagsChanged", d.value);
|
|
1729
1716
|
}
|
|
1730
1717
|
});
|
|
1731
|
-
},
|
|
1718
|
+
}, M = (e) => {
|
|
1732
1719
|
r.$?.ui.sortable && $(e.elPopup).data("ui-sortable") && $(e.elPopup).sortable("destroy");
|
|
1733
1720
|
};
|
|
1734
|
-
return (t, n) => (F(), O(w, null, [j(
|
|
1721
|
+
return (t, n) => (F(), O(w, null, [j(Kt, {
|
|
1735
1722
|
modelValue: u.value,
|
|
1736
1723
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
1737
|
-
id:
|
|
1724
|
+
id: B(m),
|
|
1738
1725
|
tags: d.value,
|
|
1739
1726
|
styling: e.styling,
|
|
1740
1727
|
mode: "filter",
|
|
@@ -1745,36 +1732,36 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1745
1732
|
"tags",
|
|
1746
1733
|
"styling",
|
|
1747
1734
|
"useTopButton"
|
|
1748
|
-
]), j(
|
|
1749
|
-
id:
|
|
1735
|
+
]), j(b, {
|
|
1736
|
+
id: B(m),
|
|
1750
1737
|
class: P(C.value),
|
|
1751
|
-
onOpen: n[4] ||= (e) =>
|
|
1752
|
-
onClose: n[5] ||= (e) =>
|
|
1738
|
+
onOpen: n[4] ||= (e) => k(e),
|
|
1739
|
+
onClose: n[5] ||= (e) => M(e),
|
|
1753
1740
|
"transition-duration": 50
|
|
1754
|
-
},
|
|
1755
|
-
contentList:
|
|
1756
|
-
|
|
1741
|
+
}, te({
|
|
1742
|
+
contentList: U(() => [
|
|
1743
|
+
_.value.mode === "filter" && !e.singleMode ? (F(), E(Wt, {
|
|
1757
1744
|
key: 0,
|
|
1758
1745
|
id: "all",
|
|
1759
1746
|
colorId: "",
|
|
1760
1747
|
name: t.$i18n.Common.All_tags ?? "",
|
|
1761
|
-
state:
|
|
1762
|
-
onSelect: n[3] ||= (e) =>
|
|
1748
|
+
state: _.value.model.value.length ? "" : "selected",
|
|
1749
|
+
onSelect: n[3] ||= (e) => _.value.model.value = []
|
|
1763
1750
|
}, null, 8, ["name", "state"])) : D("", !0),
|
|
1764
|
-
(F(!0), O(w, null,
|
|
1751
|
+
(F(!0), O(w, null, L(d.value, (t) => (F(), E(Wt, {
|
|
1765
1752
|
key: t.id,
|
|
1766
1753
|
id: t.id,
|
|
1767
1754
|
colorId: t.color_id,
|
|
1768
1755
|
name: t.name,
|
|
1769
1756
|
state: x(t.id),
|
|
1770
|
-
canExclude:
|
|
1757
|
+
canExclude: _.value.mode === "filter" && !e.singleMode,
|
|
1771
1758
|
editable: e.tagsEditable,
|
|
1772
|
-
disabled:
|
|
1759
|
+
disabled: y.value && x(t.id) === "",
|
|
1773
1760
|
onUnselect: (e) => S(t.id, "unselect"),
|
|
1774
1761
|
onSelect: (e) => S(t.id, "select"),
|
|
1775
1762
|
onExclude: (e) => S(t.id, "exclude"),
|
|
1776
1763
|
"onUpdate:name": (e) => {
|
|
1777
|
-
t.name = e,
|
|
1764
|
+
t.name = e, B(p)("tagsChanged", d.value);
|
|
1778
1765
|
}
|
|
1779
1766
|
}, null, 8, [
|
|
1780
1767
|
"id",
|
|
@@ -1789,43 +1776,234 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ M({
|
|
|
1789
1776
|
"onExclude",
|
|
1790
1777
|
"onUpdate:name"
|
|
1791
1778
|
]))), 128)),
|
|
1792
|
-
e.tagsEditable && d.value.length < e.tagsMax && d.value.length < 20 ? (F(), E(
|
|
1779
|
+
e.tagsEditable && d.value.length < e.tagsMax && d.value.length < 20 ? (F(), E(v, {
|
|
1793
1780
|
key: 1,
|
|
1794
1781
|
"data-top-icon": "",
|
|
1795
|
-
onClick:
|
|
1782
|
+
onClick: W(ee, ["stop"])
|
|
1796
1783
|
}, {
|
|
1797
|
-
default:
|
|
1784
|
+
default: U(() => [A(z(t.$i18n.Common.Add), 1)]),
|
|
1798
1785
|
_: 1
|
|
1799
1786
|
})) : D("", !0)
|
|
1800
1787
|
]),
|
|
1801
1788
|
_: 2
|
|
1802
|
-
}, [
|
|
1789
|
+
}, [_.value.mode === "setter" && _.value.filters ? {
|
|
1803
1790
|
name: "header",
|
|
1804
|
-
fn:
|
|
1791
|
+
fn: U(() => [j(s, {
|
|
1805
1792
|
modelValue: h.value,
|
|
1806
1793
|
"onUpdate:modelValue": n[1] ||= (e) => h.value = e,
|
|
1807
1794
|
options: g()
|
|
1808
1795
|
}, null, 8, ["modelValue", "options"])]),
|
|
1809
1796
|
key: "0"
|
|
1810
|
-
} : void 0,
|
|
1797
|
+
} : void 0, _.value.mode === "setter" && _.value.filters ? {
|
|
1811
1798
|
name: "footer",
|
|
1812
|
-
fn:
|
|
1813
|
-
default:
|
|
1799
|
+
fn: U(() => [j(a, { color: "theme" }, {
|
|
1800
|
+
default: U(() => [A(z(t.$i18n.Common.Cancel), 1)]),
|
|
1814
1801
|
_: 1
|
|
1815
|
-
}), j(a, { onClick: n[2] ||= (e) =>
|
|
1816
|
-
tagsIds:
|
|
1817
|
-
filters:
|
|
1802
|
+
}), j(a, { onClick: n[2] ||= (e) => B(p)("setter", {
|
|
1803
|
+
tagsIds: _.value.model.value,
|
|
1804
|
+
filters: _.value.filters,
|
|
1818
1805
|
filtersAction: h.value,
|
|
1819
|
-
payload:
|
|
1806
|
+
payload: _.value.payload
|
|
1820
1807
|
}) }, {
|
|
1821
|
-
default:
|
|
1808
|
+
default: U(() => [A(z(h.value === "add" ? t.$i18n.Common.Add : "") + " " + z(h.value === "replace" ? t.$i18n.Common.Replace : "") + " " + z(h.value === "delete" ? t.$i18n.Common.Delete : ""), 1)]),
|
|
1822
1809
|
_: 1
|
|
1823
1810
|
})]),
|
|
1824
1811
|
key: "1"
|
|
1825
1812
|
} : void 0]), 1032, ["id", "class"])], 64));
|
|
1826
1813
|
}
|
|
1814
|
+
}), Jt = (e) => {
|
|
1815
|
+
let t = e.getPropertyValue("rule").trim();
|
|
1816
|
+
if (!t) return {};
|
|
1817
|
+
let n = t.match(/(?:^|\s)(\d*\.?\d+)px(?:\s|$)/), r = n ? Number.parseFloat(n[1]) : void 0;
|
|
1818
|
+
return {
|
|
1819
|
+
color: t.replace(n?.[0] ?? "", " ").replace(/\b(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)\b/, "").trim() || void 0,
|
|
1820
|
+
width: Number.isFinite(r) ? r : void 0
|
|
1821
|
+
};
|
|
1822
|
+
}, Yt = (e, t, n) => {
|
|
1823
|
+
let r = CSS.supports("rule", "1px solid") ? e.getPropertyValue(`${t}-rule-style`).trim() : "";
|
|
1824
|
+
return n ?? (r || e.getPropertyValue(`--flex-${t}-rule`).trim() || "solid");
|
|
1825
|
+
}, Xt = (e, t, n) => {
|
|
1826
|
+
let r = t.getBoundingClientRect(), i = r.width / (t.clientWidth || 1), a = r.height / (t.clientHeight || 1), o = n.flexDirection.startsWith("row"), s = n.flexDirection.endsWith("reverse"), c = o ? n.direction === "rtl" === s : !s;
|
|
1827
|
+
return Array.from(e.children).filter((e) => e instanceof HTMLElement && e !== t).flatMap((e, t) => {
|
|
1828
|
+
let n = getComputedStyle(e);
|
|
1829
|
+
if (n.display === "none" || n.position === "absolute" || n.position === "fixed") return [];
|
|
1830
|
+
let s = e.getBoundingClientRect();
|
|
1831
|
+
if (s.width === 0 || s.height === 0) return [];
|
|
1832
|
+
let l = {
|
|
1833
|
+
left: (s.left - r.left) / i,
|
|
1834
|
+
right: (s.right - r.left) / i,
|
|
1835
|
+
top: (s.top - r.top) / a,
|
|
1836
|
+
bottom: (s.bottom - r.top) / a
|
|
1837
|
+
}, u = o ? l.left : l.top, d = o ? l.right : l.bottom;
|
|
1838
|
+
return [{
|
|
1839
|
+
index: t,
|
|
1840
|
+
order: Number.parseInt(n.order, 10) || 0,
|
|
1841
|
+
box: l,
|
|
1842
|
+
mainStart: c ? u : -d,
|
|
1843
|
+
mainEnd: c ? d : -u,
|
|
1844
|
+
crossStart: o ? l.top : l.left,
|
|
1845
|
+
crossEnd: o ? l.bottom : l.right
|
|
1846
|
+
}];
|
|
1847
|
+
}).sort((e, t) => e.order - t.order || e.index - t.index);
|
|
1848
|
+
}, Zt = (e, t) => {
|
|
1849
|
+
let n = [];
|
|
1850
|
+
for (let r of e) {
|
|
1851
|
+
let e = n[n.length - 1];
|
|
1852
|
+
if (!e || t !== "nowrap" && r.mainStart < e.lastMainEnd - .5) {
|
|
1853
|
+
n.push({
|
|
1854
|
+
items: [r],
|
|
1855
|
+
crossStart: r.crossStart,
|
|
1856
|
+
crossEnd: r.crossEnd,
|
|
1857
|
+
lastMainEnd: r.mainEnd
|
|
1858
|
+
});
|
|
1859
|
+
continue;
|
|
1860
|
+
}
|
|
1861
|
+
e.items.push(r), e.crossStart = Math.min(e.crossStart, r.crossStart), e.crossEnd = Math.max(e.crossEnd, r.crossEnd), e.lastMainEnd = r.mainEnd;
|
|
1862
|
+
}
|
|
1863
|
+
return n;
|
|
1864
|
+
}, Qt = (e, t, n, r) => {
|
|
1865
|
+
let i = getComputedStyle(e), a = Jt(i), o = t.clientWidth, s = t.clientHeight, c = window.devicePixelRatio || 1, l = Math.round(o * c), u = Math.round(s * c);
|
|
1866
|
+
if ((t.width !== l || t.height !== u) && (t.width = l, t.height = u), n.setTransform(c, 0, 0, c, 0, 0), n.clearRect(0, 0, o, s), o === 0 || s === 0) return;
|
|
1867
|
+
let d = Zt(Xt(e, t, i), i.flexWrap), f = i.flexDirection.startsWith("row"), p = Number.parseFloat(f ? i.paddingLeft : i.paddingTop) || 0, m = (f ? o : s) - (Number.parseFloat(f ? i.paddingRight : i.paddingBottom) || 0), h = CSS.supports("rule-inset", "0px") ? i.getPropertyValue("rule-inset").trim() : "", g = r.inset ?? (h || i.getPropertyValue("--flex-rule-inset").trim()), _ = (typeof g == "number" ? `${g}px` : g.trim()).replace(/^(.+?)\s*\/\s*\1$/, "$1").match(/^(-?\d*\.?\d+px|0)(?:\s+(-?\d*\.?\d+px|0))?$/), v = _ ? Number.parseFloat(_[1]) : 0, y = _ ? Number.parseFloat(_[2] ?? _[1]) : 0, b = Yt(i, "row", r.rowRule), x = Yt(i, "column", r.columnRule);
|
|
1868
|
+
n.strokeStyle = r.color ?? a.color ?? (i.getPropertyValue("--flex-rule-color").trim() || i.color), n.lineWidth = r.width ?? a.width ?? (Number.parseFloat(i.getPropertyValue("--flex-rule-width")) || 1), n.beginPath();
|
|
1869
|
+
for (let e of d) if ((f ? x : b) === "solid") for (let t = 1; t < e.items.length; t++) {
|
|
1870
|
+
let r = e.items[t - 1], a = e.items[t];
|
|
1871
|
+
if (a.mainStart < r.mainEnd - .5) continue;
|
|
1872
|
+
let o = (r.mainEnd + a.mainStart) / 2, s = (f ? i.direction === "rtl" !== i.flexDirection.endsWith("reverse") : i.flexDirection.endsWith("reverse")) ? -o : o, c = e.crossStart + v, l = e.crossEnd - y;
|
|
1873
|
+
c >= l || (f ? (n.moveTo(s, c), n.lineTo(s, l)) : (n.moveTo(c, s), n.lineTo(l, s)));
|
|
1874
|
+
}
|
|
1875
|
+
for (let e = 1; e < d.length; e++) {
|
|
1876
|
+
if ((f ? b : x) !== "solid") continue;
|
|
1877
|
+
let t = d[e - 1], r = d[e], i = t.crossEnd <= r.crossStart, a = r.crossEnd <= t.crossStart;
|
|
1878
|
+
if (!i && !a) continue;
|
|
1879
|
+
let o = i ? (t.crossEnd + r.crossStart) / 2 : (r.crossEnd + t.crossStart) / 2, s = p + v, c = m - y;
|
|
1880
|
+
s >= c || (f ? (n.moveTo(s, o), n.lineTo(c, o)) : (n.moveTo(o, s), n.lineTo(o, c)));
|
|
1881
|
+
}
|
|
1882
|
+
n.stroke();
|
|
1883
|
+
}, $t = (e, t = {}) => {
|
|
1884
|
+
if (!t.force && CSS.supports("rule", "1px solid")) return () => {};
|
|
1885
|
+
if (!["flex", "inline-flex"].includes(getComputedStyle(e).display)) throw TypeError("polyfillFlexRule expects display: flex or inline-flex");
|
|
1886
|
+
let n = document.createElement("canvas");
|
|
1887
|
+
n.dataset.flexRuleOverlay = "", n.setAttribute("aria-hidden", "true"), Object.assign(n.style, {
|
|
1888
|
+
position: "absolute",
|
|
1889
|
+
inset: "0",
|
|
1890
|
+
width: "100%",
|
|
1891
|
+
height: "100%",
|
|
1892
|
+
pointerEvents: "none",
|
|
1893
|
+
zIndex: "1"
|
|
1894
|
+
});
|
|
1895
|
+
let r = e.style.position, i = getComputedStyle(e).position === "static";
|
|
1896
|
+
i && (e.style.position = "relative"), e.append(n);
|
|
1897
|
+
let a = n.getContext("2d");
|
|
1898
|
+
if (!a) throw n.remove(), i && (e.style.position = r), Error("Canvas 2D is unavailable");
|
|
1899
|
+
let o = 0, s = !1, c = () => {
|
|
1900
|
+
!o && !s && (o = requestAnimationFrame(() => {
|
|
1901
|
+
o = 0, Qt(e, n, a, t);
|
|
1902
|
+
}));
|
|
1903
|
+
}, l = new ResizeObserver(c), u = () => {
|
|
1904
|
+
l.disconnect(), l.observe(e);
|
|
1905
|
+
for (let t of Array.from(e.children)) t instanceof HTMLElement && t !== n && l.observe(t);
|
|
1906
|
+
c();
|
|
1907
|
+
}, d = new MutationObserver((t) => {
|
|
1908
|
+
if (t.some((t) => t.type === "childList" && t.target === e)) {
|
|
1909
|
+
u();
|
|
1910
|
+
return;
|
|
1911
|
+
}
|
|
1912
|
+
c();
|
|
1913
|
+
});
|
|
1914
|
+
return d.observe(e, {
|
|
1915
|
+
childList: !0,
|
|
1916
|
+
subtree: !0,
|
|
1917
|
+
attributes: !0,
|
|
1918
|
+
attributeFilter: [
|
|
1919
|
+
"class",
|
|
1920
|
+
"style",
|
|
1921
|
+
"hidden",
|
|
1922
|
+
"dir"
|
|
1923
|
+
]
|
|
1924
|
+
}), window.addEventListener("resize", c), window.addEventListener("scroll", c, !0), e.addEventListener("scroll", c), e.addEventListener("transitionend", c, !0), e.addEventListener("animationend", c, !0), u(), () => {
|
|
1925
|
+
s = !0, cancelAnimationFrame(o), d.disconnect(), l.disconnect(), window.removeEventListener("resize", c), window.removeEventListener("scroll", c, !0), e.removeEventListener("scroll", c), e.removeEventListener("transitionend", c, !0), e.removeEventListener("animationend", c, !0), n.remove(), i && (e.style.position = r);
|
|
1926
|
+
};
|
|
1927
|
+
}, en = {
|
|
1928
|
+
key: 0,
|
|
1929
|
+
class: "top-projectBarLeft"
|
|
1930
|
+
}, tn = { class: "top-projectBarFilters" }, nn = { class: "top-projectBarRight" }, rn = {
|
|
1931
|
+
key: 1,
|
|
1932
|
+
class: "top-projectBarBottom"
|
|
1933
|
+
}, an = /* @__PURE__ */ M({
|
|
1934
|
+
__name: "projectBar",
|
|
1935
|
+
props: /*@__PURE__*/ N({
|
|
1936
|
+
styling: { default: "default" },
|
|
1937
|
+
isSticky: { type: Boolean },
|
|
1938
|
+
canChangeSticky: {
|
|
1939
|
+
type: Boolean,
|
|
1940
|
+
default: !1
|
|
1941
|
+
}
|
|
1942
|
+
}, {
|
|
1943
|
+
isSticky: {
|
|
1944
|
+
type: Boolean,
|
|
1945
|
+
default: !0
|
|
1946
|
+
},
|
|
1947
|
+
isStickyModifiers: {}
|
|
1948
|
+
}),
|
|
1949
|
+
emits: /*@__PURE__*/ N(["resize"], ["update:isSticky"]),
|
|
1950
|
+
setup(e, { emit: t, slots: n }) {
|
|
1951
|
+
let r = t, i = I(null), s = I("0px"), c = V(e, "isSticky"), l, u = () => {
|
|
1952
|
+
i.value && (s.value = `${i.value.getBoundingClientRect().height}px`);
|
|
1953
|
+
}, d = (e) => {
|
|
1954
|
+
let t = e[0];
|
|
1955
|
+
t && (u(), r("resize", t));
|
|
1956
|
+
};
|
|
1957
|
+
return oe(() => {
|
|
1958
|
+
i.value && (u(), l = new ResizeObserver(d), l.observe(i.value), [i.value, ...i.value.querySelectorAll(".top-projectBarFilters, .top-regionSelector, .top-groupSelector")].forEach((e) => $t(e)));
|
|
1959
|
+
}), se(() => {
|
|
1960
|
+
l?.disconnect();
|
|
1961
|
+
}), (t, r) => (F(), O("div", {
|
|
1962
|
+
ref_key: "elBar",
|
|
1963
|
+
ref: i,
|
|
1964
|
+
class: P(["top-projectBar", {
|
|
1965
|
+
"top-projectBar": !0,
|
|
1966
|
+
"top-projectBar-sticky": c.value,
|
|
1967
|
+
["top-projectBar-" + e.styling]: !0
|
|
1968
|
+
}]),
|
|
1969
|
+
style: ae({ "--topProjectBar-height": s.value })
|
|
1970
|
+
}, [
|
|
1971
|
+
n.left ? (F(), O("div", en, [R(t.$slots, "left")])) : D("", !0),
|
|
1972
|
+
k("div", tn, [R(t.$slots, "default")]),
|
|
1973
|
+
k("div", nn, [n.right ? R(t.$slots, "right", {}, void 0, void 0, 0) : D("", !0), j(B(b), {
|
|
1974
|
+
notch: !1,
|
|
1975
|
+
pos: "2"
|
|
1976
|
+
}, {
|
|
1977
|
+
opener: U(() => [j(B(a), {
|
|
1978
|
+
color: "theme",
|
|
1979
|
+
icon: "",
|
|
1980
|
+
title: t.$i18n.Common.Settings
|
|
1981
|
+
}, null, 8, ["title"])]),
|
|
1982
|
+
contentList: U(() => [
|
|
1983
|
+
R(t.$slots, "menuItems"),
|
|
1984
|
+
R(t.$slots, "menuAdditional"),
|
|
1985
|
+
e.canChangeSticky ? (F(), O(w, { key: 0 }, [j(B(v), { type: "title" }, {
|
|
1986
|
+
default: U(() => [A(z(t.$i18n.Common.View), 1)]),
|
|
1987
|
+
_: 1
|
|
1988
|
+
}), j(B(v), { type: "formControls" }, {
|
|
1989
|
+
default: U(() => [j(B(o), {
|
|
1990
|
+
modelValue: c.value,
|
|
1991
|
+
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
1992
|
+
name: "pin"
|
|
1993
|
+
}, {
|
|
1994
|
+
default: U(() => [A(z(t.$i18n.Common.Bar_pin), 1)]),
|
|
1995
|
+
_: 1
|
|
1996
|
+
}, 8, ["modelValue"])]),
|
|
1997
|
+
_: 1
|
|
1998
|
+
})], 64)) : D("", !0)
|
|
1999
|
+
]),
|
|
2000
|
+
_: 3
|
|
2001
|
+
})]),
|
|
2002
|
+
n.bottom ? (F(), O("div", rn, [R(t.$slots, "bottom")])) : D("", !0)
|
|
2003
|
+
], 6));
|
|
2004
|
+
}
|
|
1827
2005
|
});
|
|
1828
2006
|
//#endregion
|
|
1829
|
-
export {
|
|
2007
|
+
export { ye as TopCompetitorSelector, ot as TopGroupSelector, an as TopProjectBar, Nt as TopProjectSelector, Be as TopRegionSelector, qt as TopTagSelector, Kt as TopTagSelectorPopupOpener, Ht as TopTagSelectorTagIcon, je as dialogRegionSelector, Ae as findRegion, It as genElTopTagSelectorPopupOpener, Me as genSearcherByKey, Lt as renderElTopTagSelectorPopupOpener, Dt as topProjectSelectorClearCache, be as useItemsFromCompetitors };
|
|
1830
2008
|
|
|
1831
2009
|
//# sourceMappingURL=project.js.map
|