@topvisor/ui 1.6.0 → 1.6.1-searcherKey.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/app-3wPEjUXe.es.amd.js +2 -0
- package/.chunks/app-3wPEjUXe.es.amd.js.map +1 -0
- package/.chunks/app-3wPEjUXe.es.js +487 -0
- package/.chunks/app-3wPEjUXe.es.js.map +1 -0
- package/.chunks/{datepicker-MlbIM78m.es.amd.js → datepicker-QBCcmy-4.es.amd.js} +2 -2
- package/.chunks/{datepicker-MlbIM78m.es.amd.js.map → datepicker-QBCcmy-4.es.amd.js.map} +1 -1
- package/.chunks/{datepicker-MlbIM78m.es.js → datepicker-QBCcmy-4.es.js} +2 -2
- package/.chunks/{datepicker-MlbIM78m.es.js.map → datepicker-QBCcmy-4.es.js.map} +1 -1
- package/.chunks/{dialog-C_1nmPXN.es.amd.js → dialog-yP5SpcG2.es.amd.js} +2 -2
- package/.chunks/{dialog-C_1nmPXN.es.amd.js.map → dialog-yP5SpcG2.es.amd.js.map} +1 -1
- package/.chunks/{dialog-C_1nmPXN.es.js → dialog-yP5SpcG2.es.js} +3 -3
- package/.chunks/{dialog-C_1nmPXN.es.js.map → dialog-yP5SpcG2.es.js.map} +1 -1
- package/.chunks/{dialog_regionSelectorRegions-BPUDeHdW.es.amd.js → dialog_regionSelectorRegions-DHRahvlr.es.amd.js} +2 -2
- package/.chunks/{dialog_regionSelectorRegions-BPUDeHdW.es.amd.js.map → dialog_regionSelectorRegions-DHRahvlr.es.amd.js.map} +1 -1
- package/.chunks/{dialog_regionSelectorRegions-BPUDeHdW.es.js → dialog_regionSelectorRegions-DHRahvlr.es.js} +4 -4
- package/.chunks/{dialog_regionSelectorRegions-BPUDeHdW.es.js.map → dialog_regionSelectorRegions-DHRahvlr.es.js.map} +1 -1
- package/.chunks/{forms-dosApNxi.es.amd.js → forms-CwTz6NZs.es.amd.js} +2 -2
- package/.chunks/forms-CwTz6NZs.es.amd.js.map +1 -0
- package/.chunks/{forms-dosApNxi.es.js → forms-CwTz6NZs.es.js} +6 -6
- package/.chunks/{forms-dosApNxi.es.js.map → forms-CwTz6NZs.es.js.map} +1 -1
- package/.chunks/{formsExt-D7XsRleI.es.amd.js → formsExt-UGuWA3IZ.es.amd.js} +2 -2
- package/.chunks/{formsExt-D7XsRleI.es.amd.js.map → formsExt-UGuWA3IZ.es.amd.js.map} +1 -1
- package/.chunks/{formsExt-D7XsRleI.es.js → formsExt-UGuWA3IZ.es.js} +3 -3
- package/.chunks/{formsExt-D7XsRleI.es.js.map → formsExt-UGuWA3IZ.es.js.map} +1 -1
- package/.chunks/{notice-8nwvAJQm.es.amd.js → notice-CEtqqU-D.es.amd.js} +2 -2
- package/.chunks/{notice-8nwvAJQm.es.amd.js.map → notice-CEtqqU-D.es.amd.js.map} +1 -1
- package/.chunks/{notice-8nwvAJQm.es.js → notice-CEtqqU-D.es.js} +2 -2
- package/.chunks/{notice-8nwvAJQm.es.js.map → notice-CEtqqU-D.es.js.map} +1 -1
- package/.chunks/{popup-Bn5Wm8WI.es.amd.js → popup-Ctmqg87k.es.amd.js} +2 -2
- package/.chunks/{popup-Bn5Wm8WI.es.amd.js.map → popup-Ctmqg87k.es.amd.js.map} +1 -1
- package/.chunks/{popup-Bn5Wm8WI.es.js → popup-Ctmqg87k.es.js} +3 -3
- package/.chunks/{popup-Bn5Wm8WI.es.js.map → popup-Ctmqg87k.es.js.map} +1 -1
- package/.chunks/{popup-cAqd6Dj3.es.amd.js → popup-DeoDmf_L.es.amd.js} +2 -2
- package/.chunks/{popup-cAqd6Dj3.es.amd.js.map → popup-DeoDmf_L.es.amd.js.map} +1 -1
- package/.chunks/{popup-cAqd6Dj3.es.js → popup-DeoDmf_L.es.js} +3 -3
- package/.chunks/{popup-cAqd6Dj3.es.js.map → popup-DeoDmf_L.es.js.map} +1 -1
- package/.chunks/{utils-mBJcBhkk.es.amd.js → utils-3yIeyK6N.es.amd.js} +2 -2
- package/.chunks/{utils-mBJcBhkk.es.amd.js.map → utils-3yIeyK6N.es.amd.js.map} +1 -1
- package/.chunks/{utils-mBJcBhkk.es.js → utils-3yIeyK6N.es.js} +2 -2
- package/.chunks/{utils-mBJcBhkk.es.js.map → utils-3yIeyK6N.es.js.map} +1 -1
- package/.chunks/{utils-D46Z7je_.es.amd.js → utils-B-9_dGm0.es.amd.js} +2 -2
- package/.chunks/{utils-D46Z7je_.es.amd.js.map → utils-B-9_dGm0.es.amd.js.map} +1 -1
- package/.chunks/{utils-D46Z7je_.es.js → utils-B-9_dGm0.es.js} +4 -4
- package/.chunks/{utils-D46Z7je_.es.js.map → utils-B-9_dGm0.es.js.map} +1 -1
- package/.chunks/{worker-BfCrg4RI.es.amd.js → worker-2yAM4kZz.es.amd.js} +2 -2
- package/.chunks/{worker-BfCrg4RI.es.amd.js.map → worker-2yAM4kZz.es.amd.js.map} +1 -1
- package/.chunks/{worker-BfCrg4RI.es.js → worker-2yAM4kZz.es.js} +3 -3
- package/.chunks/{worker-BfCrg4RI.es.js.map → worker-2yAM4kZz.es.js.map} +1 -1
- package/autoload-css-manifest.amd.json +4 -4
- package/autoload-css-manifest.json +4 -4
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.js +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.js +3 -3
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.amd.js.map +1 -1
- package/dialog/dialog.js +2 -2
- package/forms/forms.amd.js +1 -1
- package/forms/forms.amd.js.map +1 -1
- package/forms/forms.js +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.js +1 -1
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +393 -454
- package/project/project.js.map +1 -1
- package/schedule/schedule.amd.js +1 -1
- package/schedule/schedule.amd.js.map +1 -1
- package/schedule/schedule.js +2 -2
- package/src/components/project/regionSelector/types.d.ts +6 -0
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +2 -2
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.amd.js.map +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.amd.js.map +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.amd.js.map +1 -1
- package/utils/device.js +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.amd.js.map +1 -1
- package/utils/lodash.js +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.js +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.amd.js.map +1 -1
- package/utils/searchers.js +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js +1 -1
- package/.chunks/app-qGtdp_Vh.es.amd.js +0 -2
- package/.chunks/app-qGtdp_Vh.es.amd.js.map +0 -1
- package/.chunks/app-qGtdp_Vh.es.js +0 -405
- package/.chunks/app-qGtdp_Vh.es.js.map +0 -1
- package/.chunks/forms-dosApNxi.es.amd.js.map +0 -1
package/project/project.js
CHANGED
|
@@ -6,22 +6,21 @@
|
|
|
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, n as o } from "../.chunks/forms-
|
|
9
|
+
import { E as n, O as r, P as i, h as a, n as o } from "../.chunks/forms-CwTz6NZs.es.js";
|
|
10
10
|
import { storage as s } from "../utils/dom.js";
|
|
11
|
-
import { t as c } from "../.chunks/worker-
|
|
12
|
-
import "../.chunks/app-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { c as
|
|
19
|
-
import {
|
|
20
|
-
import { Fragment as C, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createSlots as te, createTextVNode as k, createVNode as A, defineComponent as j, isRef as ne, mergeModels as M, mergeProps as re, nextTick as ie, normalizeClass as N, onMounted as ae, openBlock as P, reactive as oe, ref as F, renderList as I, renderSlot as se, resolveComponent as ce, resolveDirective as le, resolveDynamicComponent as ue, shallowRef as de, toDisplayString as L, toValue as fe, unref as R, useId as pe, useModel as z, watch as B, withCtx as V, withDirectives as me, withKeys as he, withModifiers as H } from "vue";
|
|
11
|
+
import { t as c } from "../.chunks/worker-2yAM4kZz.es.js";
|
|
12
|
+
import { a as l, i as u, n as d, r as f } from "../.chunks/app-3wPEjUXe.es.js";
|
|
13
|
+
import { validUrl as p } from "../utils/check.js";
|
|
14
|
+
import { ellipsis as m } from "../utils/string.js";
|
|
15
|
+
import { genRegionLabelData as h, getSearcherGIcon as g } from "../utils/searchers.js";
|
|
16
|
+
import { invertKeyboardLayout as _ } from "../utils/keyboard.js";
|
|
17
|
+
import { c as v, n as y, o as b, r as x, s as S } from "../.chunks/popup-DeoDmf_L.es.js";
|
|
18
|
+
import { c as C, d as w, f as ee, p as te } from "../.chunks/formsExt-UGuWA3IZ.es.js";
|
|
19
|
+
import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createSlots as ne, createTextVNode as j, createVNode as M, defineComponent as N, isRef as re, mergeModels as P, mergeProps as ie, nextTick as ae, normalizeClass as F, onMounted as oe, openBlock as I, reactive as se, ref as L, renderList as R, renderSlot as ce, 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
20
|
//#region src/components/project/competitorSelector/competitorSelector.vue?vue&type=script&setup=true&lang.ts
|
|
22
|
-
var
|
|
21
|
+
var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, ye = /* @__PURE__ */ N({
|
|
23
22
|
__name: "competitorSelector",
|
|
24
|
-
props: /*@__PURE__*/
|
|
23
|
+
props: /*@__PURE__*/ P({
|
|
25
24
|
modelValue: {},
|
|
26
25
|
items: {},
|
|
27
26
|
showSelectAllItem: {
|
|
@@ -35,7 +34,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
35
34
|
}),
|
|
36
35
|
emits: ["update:modelValue"],
|
|
37
36
|
setup(e) {
|
|
38
|
-
let t = e, i =
|
|
37
|
+
let t = e, i = V(e, "modelValue"), o = E(() => {
|
|
39
38
|
if (t.showSelectAllItem) return {
|
|
40
39
|
icon: t.selectAllItemIcon,
|
|
41
40
|
title: n().Common.Select_all,
|
|
@@ -43,23 +42,23 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
43
42
|
content: ""
|
|
44
43
|
};
|
|
45
44
|
});
|
|
46
|
-
return (t, n) => (
|
|
47
|
-
opener:
|
|
45
|
+
return (t, n) => (I(), k("div", _e, [B(r).state.isMobile ? (I(), D(S, { key: 0 }, {
|
|
46
|
+
opener: U(() => [M(a, {
|
|
48
47
|
class: "top-competitorSelector_opener",
|
|
49
48
|
color: "theme",
|
|
50
49
|
icon: "",
|
|
51
50
|
icon2: ""
|
|
52
51
|
}, {
|
|
53
|
-
default:
|
|
52
|
+
default: U(() => [j(z(e.items.find((e) => e.value === i.value?.[0])?.content), 1)]),
|
|
54
53
|
_: 1
|
|
55
54
|
})]),
|
|
56
|
-
contentList:
|
|
57
|
-
class:
|
|
55
|
+
contentList: U(() => [(I(!0), k(T, null, R(e.items, (e) => (I(), D(b, {
|
|
56
|
+
class: F({ "top-active": i.value?.includes(e.value) }),
|
|
58
57
|
"data-top-icon": e.icon,
|
|
59
58
|
title: e.title,
|
|
60
59
|
onClick: () => i.value = [e.value]
|
|
61
60
|
}, {
|
|
62
|
-
default:
|
|
61
|
+
default: U(() => [A("span", ve, z(e.content), 1)]),
|
|
63
62
|
_: 2
|
|
64
63
|
}, 1032, [
|
|
65
64
|
"class",
|
|
@@ -68,7 +67,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
68
67
|
"onClick"
|
|
69
68
|
]))), 256))]),
|
|
70
69
|
_: 1
|
|
71
|
-
})) : (
|
|
70
|
+
})) : (I(), D(te, {
|
|
72
71
|
key: 1,
|
|
73
72
|
modelValue: i.value,
|
|
74
73
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
@@ -83,105 +82,23 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
83
82
|
"selectAllItem"
|
|
84
83
|
]))]));
|
|
85
84
|
}
|
|
86
|
-
}),
|
|
85
|
+
}), be = (e, t) => E(() => pe(e).filter((e) => e.on >= 0 || e.id === t).map((e) => ({
|
|
87
86
|
value: e.id,
|
|
88
87
|
title: e.url + ` [${e.id}]`,
|
|
89
|
-
icon: e.id ===
|
|
88
|
+
icon: e.id === pe(t) ? "" : "",
|
|
90
89
|
content: e.name
|
|
91
|
-
}))),
|
|
92
|
-
0: "Yandex",
|
|
93
|
-
1: "Google",
|
|
94
|
-
4: "YouTube",
|
|
95
|
-
5: "Bing",
|
|
96
|
-
7: "Seznam",
|
|
97
|
-
8: "AppStore",
|
|
98
|
-
9: "GoogleStore",
|
|
99
|
-
20: "Yandex.com",
|
|
100
|
-
21: "Yandex.com.tr",
|
|
101
|
-
22: "YandexLive"
|
|
102
|
-
}, xe = {
|
|
103
|
-
alt: "",
|
|
104
|
-
key: -2,
|
|
105
|
-
name: "--",
|
|
106
|
-
index: -2
|
|
107
|
-
}, Se = {
|
|
108
|
-
key: -2,
|
|
109
|
-
name: "--",
|
|
110
|
-
regions: [xe],
|
|
111
|
-
regionByIndex: /* @__PURE__ */ new Map([[-2, xe]])
|
|
112
|
-
}, U = {
|
|
113
|
-
alt: "",
|
|
114
|
-
key: -2,
|
|
115
|
-
name: "Autoselect",
|
|
116
|
-
index: -2
|
|
117
|
-
}, Ce = {
|
|
118
|
-
key: -2,
|
|
119
|
-
name: "Autoselect",
|
|
120
|
-
regions: [U],
|
|
121
|
-
regionByIndex: /* @__PURE__ */ new Map([[-2, U]])
|
|
122
|
-
}, we = {
|
|
123
|
-
alt: "",
|
|
124
|
-
countryCode: "00",
|
|
125
|
-
depth: 1,
|
|
126
|
-
device: 0,
|
|
127
|
-
key: -1,
|
|
128
|
-
index: -1,
|
|
129
|
-
lang: "ru",
|
|
130
|
-
name: "Without region"
|
|
131
|
-
}, Te = () => (U.name = n().Common.Autoselect, U), Ee = () => (Te(), Ce.name = n().Common.Autoselect, console.log(Ce), Ce), De = () => (we.name = n().Keywords.Without_region, we), Oe = [
|
|
132
|
-
4,
|
|
133
|
-
8,
|
|
134
|
-
9
|
|
135
|
-
], ke = (e, t, n = []) => {
|
|
136
|
-
let r = je(e, !1, n), i;
|
|
137
|
-
return r.forEach((n) => {
|
|
138
|
-
if ((t.searcher_key === void 0 || t.searcher_key == n.key) && n.regions && (n.regions.forEach((r) => {
|
|
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
|
-
}), i)) return !1;
|
|
141
|
-
}), i;
|
|
142
|
-
}, Ae = l(() => import("../.chunks/dialog_regionSelectorRegions-BPUDeHdW.es.js")), je = (e = "", t = !1, n = []) => {
|
|
143
|
-
let r;
|
|
144
|
-
return r = e === "volume" || e === "cost_forecast" ? Me(n) : e === "project_relevant_url" ? Ne(n) : Pe(n, !0), t && r.set(-2, Ee()), r.size || r.set(-2, Se), r;
|
|
145
|
-
}, Me = (e) => {
|
|
146
|
-
e = e.filter((e) => r.state.forceSearchersKeysForKeywordsStats.includes(e.key));
|
|
147
|
-
let t = Pe(e, !1);
|
|
148
|
-
return r.state.forceSearchersKeysForKeywordsStats.forEach((e) => {
|
|
149
|
-
if (t.has(e)) return;
|
|
150
|
-
let n = {
|
|
151
|
-
key: e,
|
|
152
|
-
name: be[e],
|
|
153
|
-
regions: [],
|
|
154
|
-
regionByIndex: /* @__PURE__ */ new Map()
|
|
155
|
-
};
|
|
156
|
-
t.set(n.key, n);
|
|
157
|
-
}), r.state.showGlobalRegionForKeywordsStats && t.forEach((e) => {
|
|
158
|
-
if (!e.regionByIndex) return;
|
|
159
|
-
let t = { ...De() };
|
|
160
|
-
e.regionByIndex.set(t.index, t);
|
|
161
|
-
}), t;
|
|
162
|
-
}, Ne = (e) => (e = e.filter((e) => !Oe.includes(e.key)), Pe(e, !1)), Pe = (e, t) => {
|
|
163
|
-
let n = /* @__PURE__ */ new Map();
|
|
164
|
-
return e.forEach((e) => {
|
|
165
|
-
if (t && !e.enabled) return;
|
|
166
|
-
let r = { ...e };
|
|
167
|
-
r.regionByIndex = /* @__PURE__ */ new Map(), e.regions && e.regions.forEach((e) => {
|
|
168
|
-
if (t && !e.enabled) return;
|
|
169
|
-
let n = { ...e };
|
|
170
|
-
r.regionByIndex.set(n.index, n);
|
|
171
|
-
}), r.regionByIndex.size, (!e.regions || r.regionByIndex.size) && n.set(r.key, r);
|
|
172
|
-
}), n;
|
|
173
|
-
}, Fe = (e, t) => {
|
|
90
|
+
}))), xe = (e, t) => {
|
|
174
91
|
let r = n();
|
|
175
92
|
return {
|
|
176
|
-
searcherKey:
|
|
177
|
-
optionBySearcherKey:
|
|
93
|
+
searcherKey: L(e.modelValueSearcherKey ?? t.value.keys().next().value ?? -2),
|
|
94
|
+
optionBySearcherKey: E(() => {
|
|
178
95
|
let n = /* @__PURE__ */ new Map();
|
|
179
96
|
if (t.value.forEach((t) => {
|
|
180
97
|
let r = {
|
|
181
98
|
value: t.key,
|
|
182
99
|
title: t.name
|
|
183
100
|
};
|
|
184
|
-
e.addSearcherIcon && (r.icon =
|
|
101
|
+
e.addSearcherIcon && (r.icon = g(t.key)), n.set(t.key, r);
|
|
185
102
|
}), e.addCompare && !n.has(-2)) {
|
|
186
103
|
let e = {
|
|
187
104
|
value: "",
|
|
@@ -198,10 +115,10 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
198
115
|
return n;
|
|
199
116
|
})
|
|
200
117
|
};
|
|
201
|
-
},
|
|
202
|
-
let r = n(), i =
|
|
118
|
+
}, Se = (e, t) => {
|
|
119
|
+
let r = n(), i = E(() => e.forMode === "volume" || e.forMode === "cost_forecast"), a = L(-2);
|
|
203
120
|
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
|
-
let o =
|
|
121
|
+
let o = E(() => {
|
|
205
122
|
let e = /* @__PURE__ */ new Map();
|
|
206
123
|
return t.value.regionByIndex?.forEach((t) => {
|
|
207
124
|
if (i.value) {
|
|
@@ -212,7 +129,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
212
129
|
e.has(t.key) || e.set(t.key, n);
|
|
213
130
|
return;
|
|
214
131
|
}
|
|
215
|
-
let n =
|
|
132
|
+
let n = h(t), r = [];
|
|
216
133
|
n.deviceLabel && r.push(n.deviceLabel), n.langLabel && r.push(n.langLabel), n.altLabel && r.push(n.altLabel);
|
|
217
134
|
let a = r.join(", ");
|
|
218
135
|
a &&= ` (${a})`;
|
|
@@ -224,7 +141,7 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
224
141
|
e.set(t.index, o);
|
|
225
142
|
}), e;
|
|
226
143
|
});
|
|
227
|
-
return
|
|
144
|
+
return H(o, (t, n) => {
|
|
228
145
|
if (e.onlySearcher || a.value !== void 0 && t.get(a.value)) return;
|
|
229
146
|
let i = t.keys().next().value;
|
|
230
147
|
if (a.value === -2 || i === -2) {
|
|
@@ -240,15 +157,15 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
240
157
|
break;
|
|
241
158
|
}
|
|
242
159
|
let a = RegExp(` \\((${r.Common.Device_1}|${r.Common.Device_2})\\)`), c = o, l = 3;
|
|
243
|
-
t.indexOf(c) === -1 && (c = o.replace(/^[^a-zа-я]/i, "").replace(a, ""), l--), t.indexOf(c) === -1 && (c = o.replace(
|
|
160
|
+
t.indexOf(c) === -1 && (c = o.replace(/^[^a-zа-я]/i, "").replace(a, ""), l--), t.indexOf(c) === -1 && (c = o.replace(/,\s*[a-z-]+\s*\)\s*$/i, ")").replace(/\s*\(\s*[a-z-]+\s*\)\s*$/i, ""), l--), t.indexOf(c) === -1 && (c = c.replace(/^[^a-zа-я]/i, "").replace(a, ""), l--), t.indexOf(c) !== -1 && (l <= s || (s = l, i = e));
|
|
244
161
|
}
|
|
245
162
|
a.value = i;
|
|
246
163
|
}), {
|
|
247
164
|
regionIndex: a,
|
|
248
165
|
optionByRegionIndex: o
|
|
249
166
|
};
|
|
250
|
-
},
|
|
251
|
-
let r =
|
|
167
|
+
}, Ce = (e, t, n) => {
|
|
168
|
+
let r = L([]), i = () => {
|
|
252
169
|
if (e.onlySearcher && t.value) {
|
|
253
170
|
r.value = Array.from(t.value.keys());
|
|
254
171
|
return;
|
|
@@ -262,48 +179,52 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
262
179
|
}, a = () => {
|
|
263
180
|
r.value.length ? localStorage.setItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes", JSON.stringify(r.value)) : localStorage.removeItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes");
|
|
264
181
|
};
|
|
265
|
-
return
|
|
182
|
+
return H(r, () => {
|
|
266
183
|
a();
|
|
267
184
|
}), e.addCompare && i(), { regionsIndexes: r };
|
|
268
|
-
},
|
|
269
|
-
let t =
|
|
185
|
+
}, we = (e) => {
|
|
186
|
+
let t = E(() => e.forMode === "volume" || e.forMode === "cost_forecast"), n = E(() => u(e.forMode, e.autoRegion, e.searchers)), r = E(() => n.value.get(a.searcherKey.value) || l), i = E(() => {
|
|
270
187
|
let e = /* @__PURE__ */ new Set();
|
|
271
188
|
return n.value.forEach((t) => {
|
|
272
189
|
t.regionByIndex.forEach((t) => {
|
|
273
190
|
t.index !== -2 && e.add(t.index);
|
|
274
191
|
});
|
|
275
192
|
}), e;
|
|
276
|
-
}), a =
|
|
277
|
-
|
|
193
|
+
}), a = xe(e, n), o = Se(e, r), s = Ce(e, n, i);
|
|
194
|
+
H(n, () => {
|
|
278
195
|
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
|
-
let
|
|
280
|
-
n.value.forEach((
|
|
281
|
-
if (e.onlySearcher &&
|
|
282
|
-
|
|
196
|
+
let c = n.value.keys().next().value;
|
|
197
|
+
if (t.value && e.modelValueSearcherKey !== void 0 ? c = e.modelValueSearcherKey : n.value.forEach((t) => {
|
|
198
|
+
if (e.onlySearcher && t.key === a.searcherKey.value) {
|
|
199
|
+
c = a.searcherKey.value;
|
|
283
200
|
return;
|
|
284
201
|
}
|
|
285
|
-
if (o.regionIndex.value &&
|
|
202
|
+
if (o.regionIndex.value && t.regionByIndex?.has(o.regionIndex.value) && (c = t.key), !e.onlySearcher) {
|
|
286
203
|
let e;
|
|
287
|
-
|
|
288
|
-
let
|
|
289
|
-
e?.has(-2) && !
|
|
204
|
+
c !== void 0 && (e = n.value.get(c)?.regionByIndex);
|
|
205
|
+
let r = n.value.get(t.key)?.regionByIndex;
|
|
206
|
+
e?.has(-2) && !r?.has(-2) && (c = t.key);
|
|
290
207
|
}
|
|
291
|
-
}),
|
|
208
|
+
}), c !== void 0 && (a.searcherKey.value = c), !e.onlySearcher && o.regionIndex.value !== void 0 && !(r.value?.regionByIndex)?.has(o.regionIndex.value)) {
|
|
209
|
+
let e = r.value?.regionByIndex.values().next().value;
|
|
210
|
+
if (!e) return;
|
|
211
|
+
o.regionIndex.value = t.value ? e.key : e.index;
|
|
212
|
+
}
|
|
292
213
|
}, { immediate: !0 });
|
|
293
214
|
let c = () => {
|
|
294
215
|
if (a.searcherKey.value !== -1 && a.searcherKey.value !== -2) return a.searcherKey.value;
|
|
295
|
-
},
|
|
216
|
+
}, d = () => {
|
|
296
217
|
if (e.onlySearcher || o.regionIndex.value === -2) return;
|
|
297
218
|
let n = o.regionIndex.value;
|
|
298
219
|
if (t.value && e.forMode) {
|
|
299
220
|
let t = o.regionIndex.value;
|
|
300
|
-
n =
|
|
221
|
+
n = f(e.forMode, {
|
|
301
222
|
searcher_key: c(),
|
|
302
223
|
key: t
|
|
303
224
|
}, e.searchers)?.index;
|
|
304
225
|
}
|
|
305
226
|
return n;
|
|
306
|
-
},
|
|
227
|
+
}, p = () => {
|
|
307
228
|
let e = c();
|
|
308
229
|
if (e !== void 0) return n.value.get(e);
|
|
309
230
|
};
|
|
@@ -313,19 +234,20 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
313
234
|
compare: s,
|
|
314
235
|
searcherByKey: n,
|
|
315
236
|
allRegionsIndexes: i,
|
|
316
|
-
getSearcher:
|
|
237
|
+
getSearcher: p,
|
|
317
238
|
getRegion: () => {
|
|
318
|
-
let e =
|
|
319
|
-
if (e !== void 0) return
|
|
239
|
+
let e = d();
|
|
240
|
+
if (e !== void 0) return p()?.regionByIndex?.get(e);
|
|
320
241
|
}
|
|
321
242
|
};
|
|
322
|
-
},
|
|
243
|
+
}, Te = /* @__PURE__ */ N({
|
|
323
244
|
__name: "regionSelector",
|
|
324
|
-
props: /*@__PURE__*/
|
|
245
|
+
props: /*@__PURE__*/ P({
|
|
325
246
|
projectId: {},
|
|
326
247
|
searchers: { default: () => [] },
|
|
327
248
|
modelValue: {},
|
|
328
249
|
modelValueSingle: {},
|
|
250
|
+
modelValueSearcherKey: {},
|
|
329
251
|
addCompare: { type: Boolean },
|
|
330
252
|
forMode: {},
|
|
331
253
|
autoRegion: { type: Boolean },
|
|
@@ -346,95 +268,112 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
346
268
|
modelValue: { required: !0 },
|
|
347
269
|
modelModifiers: {},
|
|
348
270
|
modelValueSingle: {},
|
|
349
|
-
modelValueSingleModifiers: {}
|
|
271
|
+
modelValueSingleModifiers: {},
|
|
272
|
+
modelValueSearcherKey: {},
|
|
273
|
+
modelValueSearcherKeyModifiers: {}
|
|
350
274
|
}),
|
|
351
|
-
emits: [
|
|
275
|
+
emits: [
|
|
276
|
+
"update:modelValue",
|
|
277
|
+
"update:modelValueSingle",
|
|
278
|
+
"update:modelValueSearcherKey"
|
|
279
|
+
],
|
|
352
280
|
setup(e, { expose: t }) {
|
|
353
|
-
let n = e, r =
|
|
281
|
+
let n = e, r = E(() => n.forMode === "volume" || n.forMode === "cost_forecast"), i = V(e, "modelValue"), s = V(e, "modelValueSingle"), c = V(e, "modelValueSearcherKey"), { selectSearcher: l, selectRegion: u, compare: f, searcherByKey: p, allRegionsIndexes: m, getSearcher: h, getRegion: g } = we(n), _ = () => {
|
|
354
282
|
let e = [];
|
|
355
|
-
|
|
283
|
+
p.value.forEach((t) => {
|
|
356
284
|
(n.forMode === "project_relevant_url" || t.enabled) && t.regions.forEach((t) => {
|
|
357
285
|
(n.forMode === "project_relevant_url" || t.enabled) && t.index !== -1 && e.push(t);
|
|
358
286
|
});
|
|
359
|
-
}),
|
|
287
|
+
}), d.open("regions", {
|
|
360
288
|
regions: e,
|
|
361
|
-
regionsIndexes:
|
|
362
|
-
"@update:regionsIndexes": (e) =>
|
|
289
|
+
regionsIndexes: f.regionsIndexes.value,
|
|
290
|
+
"@update:regionsIndexes": (e) => f.regionsIndexes.value = e
|
|
363
291
|
});
|
|
364
292
|
};
|
|
365
|
-
return
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
293
|
+
return H([
|
|
294
|
+
r,
|
|
295
|
+
() => n.onlySearcher,
|
|
296
|
+
c
|
|
369
297
|
], () => {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
298
|
+
let e = i.value.some((e) => e !== -2);
|
|
299
|
+
if (r.value && !n.onlySearcher && c.value === void 0 && e) throw Error("При использовании `region.key` в `modelValue` необходимо передавать `modelValueSearcherKey`");
|
|
300
|
+
}, { immediate: !0 }), H([
|
|
301
|
+
u.regionIndex,
|
|
302
|
+
l.searcherKey,
|
|
303
|
+
f.regionsIndexes
|
|
304
|
+
], () => {
|
|
305
|
+
if (l.searcherKey.value === -1 && f.regionsIndexes.value.length) {
|
|
306
|
+
if (JSON.stringify(i.value) === JSON.stringify(f.regionsIndexes.value)) return;
|
|
307
|
+
i.value = [...f.regionsIndexes.value];
|
|
308
|
+
} else n.onlySearcher ? (i.value = [l.searcherKey.value], l.searcherKey.value === -2 && !n.autoRegion && (i.value.length = 0)) : (i.value = [u.regionIndex.value], u.regionIndex.value === -2 && !n.autoRegion && (i.value.length = 0));
|
|
309
|
+
!n.onlySearcher && !m.value.size && (l.searcherKey.value = -2);
|
|
310
|
+
}), H(c, () => {
|
|
311
|
+
r.value && c.value !== void 0 && (l.searcherKey.value = c.value);
|
|
312
|
+
}), H(l.searcherKey, () => {
|
|
313
|
+
r.value && c.value !== void 0 && (c.value = l.searcherKey.value);
|
|
314
|
+
}), s.value && H(s, () => {
|
|
376
315
|
s.value && (i.value = [s.value]);
|
|
377
|
-
}, { immediate: !0 }),
|
|
316
|
+
}, { immediate: !0 }), H(i, () => {
|
|
378
317
|
if (i.value[0] && (s.value = i.value[0]), n.onlySearcher) {
|
|
379
|
-
if (!i.value.length || i.value.length === 1 && !
|
|
380
|
-
let e =
|
|
318
|
+
if (!i.value.length || i.value.length === 1 && !p.value.has(i.value[0]) || i.value.length === 1 && i.value[0] === -2 && !n.autoRegion) {
|
|
319
|
+
let e = p.value.keys().next().value;
|
|
381
320
|
e === -2 && !n.autoRegion && (e = void 0, s.value = -2), e === void 0 ? i.value.length = 0 : i.value = [e];
|
|
382
321
|
return;
|
|
383
322
|
}
|
|
384
|
-
if (i.value.length > 1 && JSON.stringify(i.value) !== JSON.stringify(
|
|
385
|
-
i.value = [...
|
|
323
|
+
if (i.value.length > 1 && JSON.stringify(i.value) !== JSON.stringify(f.regionsIndexes.value)) {
|
|
324
|
+
i.value = [...f.regionsIndexes.value];
|
|
386
325
|
return;
|
|
387
326
|
}
|
|
388
327
|
} else {
|
|
389
|
-
let e = [...new Set(i.value)], t =
|
|
390
|
-
if (r.value && (t =
|
|
328
|
+
let e = [...new Set(i.value)], t = p.value.values().next().value?.regionByIndex?.keys().next().value;
|
|
329
|
+
if (r.value && (t = p.value.values().next().value?.regionByIndex?.values().next().value?.key), t === -2 && !n.autoRegion && (t = void 0, s.value = -2), !e.length) t !== void 0 && e.push(t);
|
|
391
330
|
else if (e.length === 1) {
|
|
392
|
-
let n =
|
|
393
|
-
r.value && (n = /* @__PURE__ */ new Set(),
|
|
331
|
+
let n = m.value;
|
|
332
|
+
r.value && (n = /* @__PURE__ */ new Set(), p.value.forEach((e) => {
|
|
394
333
|
e.regionByIndex.forEach((e) => {
|
|
395
334
|
e.index !== -2 && n.add(e.key);
|
|
396
335
|
});
|
|
397
336
|
})), n.has(e[0]) || (e = [], t !== void 0 && e.push(t));
|
|
398
|
-
} else e = e.filter((e) =>
|
|
337
|
+
} else e = e.filter((e) => m.value.has(e)), !e.length && t !== void 0 && e.push(t);
|
|
399
338
|
if (JSON.stringify(i.value) !== JSON.stringify(e)) {
|
|
400
339
|
i.value = e;
|
|
401
340
|
return;
|
|
402
341
|
}
|
|
403
342
|
}
|
|
404
|
-
if (i.value.length !== 1 || i.value[0] !== (n.onlySearcher ?
|
|
343
|
+
if (i.value.length !== 1 || i.value[0] !== (n.onlySearcher ? l.searcherKey.value : u.regionIndex.value)) {
|
|
405
344
|
if (n.onlySearcher) {
|
|
406
345
|
if (i.value.length === 1) {
|
|
407
|
-
|
|
346
|
+
l.searcherKey.value = i.value[0];
|
|
408
347
|
return;
|
|
409
348
|
}
|
|
410
|
-
|
|
349
|
+
l.searcherKey.value = -1;
|
|
411
350
|
return;
|
|
412
351
|
}
|
|
413
352
|
if (!i.value.length) return;
|
|
414
|
-
if (i.value.length === 1 &&
|
|
415
|
-
|
|
416
|
-
let e;
|
|
417
|
-
for (let t of
|
|
418
|
-
for (let n of t.regionByIndex.values()) if ((r.value ? n.key : n.index) ===
|
|
353
|
+
if (i.value.length === 1 && l.searcherKey.value !== -1) {
|
|
354
|
+
u.regionIndex.value = i.value[0];
|
|
355
|
+
let e = c.value;
|
|
356
|
+
if (e === void 0) for (let t of p.value.values()) {
|
|
357
|
+
for (let n of t.regionByIndex.values()) if ((r.value ? n.key : n.index) === u.regionIndex.value) {
|
|
419
358
|
e = t.key;
|
|
420
359
|
break;
|
|
421
360
|
}
|
|
422
361
|
if (e !== void 0) break;
|
|
423
362
|
}
|
|
424
|
-
e !== void 0 && (
|
|
425
|
-
} else
|
|
363
|
+
e !== void 0 && (l.searcherKey.value = e);
|
|
364
|
+
} else l.searcherKey.value = -1, f.regionsIndexes.value = [...i.value];
|
|
426
365
|
}
|
|
427
366
|
}, { immediate: !0 }), t({
|
|
428
|
-
getSearcher:
|
|
429
|
-
getRegion:
|
|
430
|
-
}), (t, n) => (
|
|
367
|
+
getSearcher: h,
|
|
368
|
+
getRegion: g
|
|
369
|
+
}), (t, n) => (I(), k("div", { class: F({
|
|
431
370
|
"top-regionSelector": !0,
|
|
432
371
|
"top-regionSelector-onlySearcher": e.onlySearcher
|
|
433
372
|
}) }, [
|
|
434
|
-
|
|
435
|
-
options:
|
|
436
|
-
modelValue:
|
|
437
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
373
|
+
M(o, {
|
|
374
|
+
options: B(l).optionBySearcherKey.value,
|
|
375
|
+
modelValue: B(l).searcherKey.value,
|
|
376
|
+
"onUpdate:modelValue": n[0] ||= (e) => B(l).searcherKey.value = e,
|
|
438
377
|
name: "searcher_key",
|
|
439
378
|
addChanger: e.addChanger
|
|
440
379
|
}, null, 8, [
|
|
@@ -442,12 +381,12 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
442
381
|
"modelValue",
|
|
443
382
|
"addChanger"
|
|
444
383
|
]),
|
|
445
|
-
!e.onlySearcher &&
|
|
384
|
+
!e.onlySearcher && B(l).searcherKey.value !== B(-1) ? (I(), D(o, {
|
|
446
385
|
key: 0,
|
|
447
386
|
class: "top-select-region",
|
|
448
|
-
options:
|
|
449
|
-
modelValue:
|
|
450
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
387
|
+
options: B(u).optionByRegionIndex.value,
|
|
388
|
+
modelValue: B(u).regionIndex.value,
|
|
389
|
+
"onUpdate:modelValue": n[1] ||= (e) => B(u).regionIndex.value = e,
|
|
451
390
|
name: r.value ? "region_key" : "region_index",
|
|
452
391
|
addChanger: e.addChanger,
|
|
453
392
|
"data-top-icon": e.addRegionIcon ? "" : void 0
|
|
@@ -457,31 +396,31 @@ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, v
|
|
|
457
396
|
"name",
|
|
458
397
|
"addChanger",
|
|
459
398
|
"data-top-icon"
|
|
460
|
-
])) :
|
|
461
|
-
e.addCompare && !e.onlySearcher &&
|
|
399
|
+
])) : O("", !0),
|
|
400
|
+
e.addCompare && !e.onlySearcher && B(l).searcherKey.value === B(-1) ? (I(), D(a, {
|
|
462
401
|
key: 1,
|
|
463
402
|
name: "compare",
|
|
464
|
-
onClick:
|
|
465
|
-
"data-count-compare-regions-indexes":
|
|
403
|
+
onClick: _,
|
|
404
|
+
"data-count-compare-regions-indexes": B(f).regionsIndexes.value.length
|
|
466
405
|
}, {
|
|
467
|
-
default:
|
|
406
|
+
default: U(() => [j(z(t.$i18n.Common.Selected_regions), 1)]),
|
|
468
407
|
_: 1
|
|
469
|
-
}, 8, ["data-count-compare-regions-indexes"])) :
|
|
408
|
+
}, 8, ["data-count-compare-regions-indexes"])) : O("", !0)
|
|
470
409
|
], 2));
|
|
471
410
|
}
|
|
472
|
-
}),
|
|
411
|
+
}), G = {
|
|
473
412
|
id: 0,
|
|
474
413
|
name: "/",
|
|
475
414
|
path: "/"
|
|
476
415
|
};
|
|
477
|
-
function
|
|
416
|
+
function Ee(e) {
|
|
478
417
|
return e ? n()?.Common.All_folders : "/ (" + n()?.Keywords.Root_folder + ")";
|
|
479
418
|
}
|
|
480
|
-
var
|
|
481
|
-
a = { ...a }, r.childsIds.push(a.id), a.id === 0 && (a.name =
|
|
419
|
+
var De = (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) => {
|
|
420
|
+
a = { ...a }, r.childsIds.push(a.id), a.id === 0 && (a.name = Ee(t));
|
|
482
421
|
let o = i > 1 ? "-".repeat(i - 1) + " " : "";
|
|
483
|
-
o && !a.name.startsWith(o) && (a.name = o + a.name), n.set(a.id, a),
|
|
484
|
-
}), n),
|
|
422
|
+
o && !a.name.startsWith(o) && (a.name = o + a.name), n.set(a.id, a), De(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);
|
|
423
|
+
}), n), Oe = (e, t) => e.gen(`/get/${t}/folders/`, [
|
|
485
424
|
"id",
|
|
486
425
|
"parent_id",
|
|
487
426
|
"name",
|
|
@@ -492,9 +431,9 @@ var Ve = (e, t, n = /* @__PURE__ */ new Map(), r = { id: "root" }, i = 0) => (r.
|
|
|
492
431
|
});
|
|
493
432
|
//#endregion
|
|
494
433
|
//#region src/core/utils/composables/useWatch.ts
|
|
495
|
-
function
|
|
434
|
+
function ke(e, t, n) {
|
|
496
435
|
let r = Object.keys(e), i = r.map((t) => e[t]);
|
|
497
|
-
return
|
|
436
|
+
return H(i, (e, n, i) => {
|
|
498
437
|
let a = {};
|
|
499
438
|
e.forEach((e, t) => {
|
|
500
439
|
if (!Object.is(e, n[t])) {
|
|
@@ -509,9 +448,9 @@ function Ue(e, t, n) {
|
|
|
509
448
|
}
|
|
510
449
|
//#endregion
|
|
511
450
|
//#region src/components/project/groupSelector/folders/folders.vue?vue&type=script&setup=true&lang.ts
|
|
512
|
-
var
|
|
451
|
+
var Ae = ["innerHTML"], je = /* @__PURE__ */ N({
|
|
513
452
|
__name: "folders",
|
|
514
|
-
props: /*@__PURE__*/
|
|
453
|
+
props: /*@__PURE__*/ P({
|
|
515
454
|
folderId: {},
|
|
516
455
|
folder: {},
|
|
517
456
|
folders: {},
|
|
@@ -527,20 +466,20 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
527
466
|
}, {
|
|
528
467
|
folderId: { required: !0 },
|
|
529
468
|
folderIdModifiers: {},
|
|
530
|
-
folder: { default:
|
|
469
|
+
folder: { default: G },
|
|
531
470
|
folderModifiers: {}
|
|
532
471
|
}),
|
|
533
472
|
emits: ["update:folderId", "update:folder"],
|
|
534
473
|
setup(e) {
|
|
535
|
-
let t = e, n =
|
|
536
|
-
|
|
474
|
+
let t = e, n = V(e, "folderId"), r = V(e, "folder"), i = t.client && !t.folders ? Oe(t.client, t.service) : void 0, a = L(null);
|
|
475
|
+
H(() => t.projectId, () => {
|
|
537
476
|
i?.changeParams({ project_id: t.projectId }), i?.setOptions({ checkFingerprint: "TopGroupSelectorFolders:" + t.projectId }), a.value?.resetCache();
|
|
538
477
|
}, { immediate: !0 });
|
|
539
|
-
let o =
|
|
478
|
+
let o = E(() => De(t.folders ?? { root: [G] }, t.canSelectAll)), s = (e) => (t.canSelectAll && e[0]?.id === 0 && (e[0] = {
|
|
540
479
|
...e[0],
|
|
541
|
-
name:
|
|
480
|
+
name: Ee(!0)
|
|
542
481
|
}), e);
|
|
543
|
-
return
|
|
482
|
+
return ke({
|
|
544
483
|
modelFolder: r,
|
|
545
484
|
modelFolderId: n
|
|
546
485
|
}, async (e) => {
|
|
@@ -550,21 +489,21 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
550
489
|
return;
|
|
551
490
|
}
|
|
552
491
|
let i = o.value.get(t.folderId);
|
|
553
|
-
i ||=
|
|
554
|
-
}, { immediate: !0 }), (t, n) => (
|
|
492
|
+
i ||= G, r.value = i, n.value = i.id;
|
|
493
|
+
}, { immediate: !0 }), (t, n) => (I(), D(C, {
|
|
555
494
|
class: "top-groupSelector_folder",
|
|
556
495
|
modelValue: r.value,
|
|
557
496
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
558
497
|
items: e.folders ? [...o.value.values()] : void 0,
|
|
559
498
|
"search-type": "inline",
|
|
560
499
|
icon: e.addIcon ? "" : void 0,
|
|
561
|
-
api: e.folders ? void 0 :
|
|
562
|
-
apiSetSearchParams: (...e) =>
|
|
500
|
+
api: e.folders ? void 0 : B(i),
|
|
501
|
+
apiSetSearchParams: (...e) => B(w)(...e, "name"),
|
|
563
502
|
prepareItemsBeforeRender: s,
|
|
564
503
|
addChanger: e.addChanger,
|
|
565
504
|
useCache: ""
|
|
566
505
|
}, {
|
|
567
|
-
item:
|
|
506
|
+
item: U(({ item: e }) => [A("div", { innerHTML: e.name.replaceAll(/</g, "< ") }, null, 8, Ae)]),
|
|
568
507
|
_: 1
|
|
569
508
|
}, 8, [
|
|
570
509
|
"modelValue",
|
|
@@ -575,17 +514,17 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
575
514
|
"addChanger"
|
|
576
515
|
]));
|
|
577
516
|
}
|
|
578
|
-
}),
|
|
517
|
+
}), K = {
|
|
579
518
|
id: -1,
|
|
580
519
|
name: "--",
|
|
581
|
-
folder_id:
|
|
582
|
-
folder_path:
|
|
583
|
-
},
|
|
520
|
+
folder_id: G.id,
|
|
521
|
+
folder_path: G.path
|
|
522
|
+
}, q = {
|
|
584
523
|
id: 0,
|
|
585
524
|
name: "All groups",
|
|
586
|
-
folder_id:
|
|
587
|
-
folder_path:
|
|
588
|
-
},
|
|
525
|
+
folder_id: G.id,
|
|
526
|
+
folder_path: G.path
|
|
527
|
+
}, J = () => (q.name = n()?.Common.All_groups, q), Me = () => (q.name = n()?.Keywords.Choose_group, q), Ne = (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), Pe = (e, t) => e.gen(`/get/${t}/groups/`, [
|
|
589
528
|
"id",
|
|
590
529
|
"name",
|
|
591
530
|
"folder_id",
|
|
@@ -593,12 +532,12 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
593
532
|
]).changeParams({
|
|
594
533
|
folder_id_depth: !0,
|
|
595
534
|
limit: 100
|
|
596
|
-
}),
|
|
535
|
+
}), Fe = (e, t) => e.gen(`/add/${t}/groups/`), Ie = (e, t) => e.gen(`/del/${t}/groups/`), Le = (e, t) => e.gen(`/edit/${t}/groups/rename/`), Re = { class: "top-groupSelector_groupItem top-ellipsis1" }, ze = {
|
|
597
536
|
key: 0,
|
|
598
537
|
class: "top-comment"
|
|
599
|
-
},
|
|
538
|
+
}, Be = ["innerHTML"], Ve = ["innerHTML"], He = ["innerHTML"], Ue = /* @__PURE__ */ N({
|
|
600
539
|
__name: "groups",
|
|
601
|
-
props: /*@__PURE__*/
|
|
540
|
+
props: /*@__PURE__*/ P({
|
|
602
541
|
groupId: {},
|
|
603
542
|
group: {},
|
|
604
543
|
projectId: {},
|
|
@@ -629,14 +568,14 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
629
568
|
group: { required: !0 },
|
|
630
569
|
groupModifiers: {}
|
|
631
570
|
}),
|
|
632
|
-
emits: /*@__PURE__*/
|
|
571
|
+
emits: /*@__PURE__*/ P([
|
|
633
572
|
"addGroup",
|
|
634
573
|
"editGroup",
|
|
635
574
|
"delGroup"
|
|
636
575
|
], ["update:groupId", "update:group"]),
|
|
637
576
|
setup(e, { expose: n, emit: r }) {
|
|
638
|
-
let i = e, a = r, o =
|
|
639
|
-
if (i.groups !== void 0) return
|
|
577
|
+
let i = e, a = r, o = V(e, "groupId"), s = V(e, "group"), c = i.client && !i.groups ? Pe(i.client, i.service) : void 0, l = i.client ? Fe(i.client, i.service) : void 0, u = i.client ? Ie(i.client, i.service) : void 0, d = i.client ? Le(i.client, i.service) : void 0, f = L(null), p = E(() => {
|
|
578
|
+
if (i.groups !== void 0) return Ne(i.groups, i.on, i.folder);
|
|
640
579
|
}), m = t("folder_id", "EQUALS", [i.folder?.id ?? 0]);
|
|
641
580
|
c?.changeParams({
|
|
642
581
|
project_id: i.projectId,
|
|
@@ -648,16 +587,16 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
648
587
|
}, g = (e = !1) => {
|
|
649
588
|
f.value?.resetCache(e);
|
|
650
589
|
};
|
|
651
|
-
|
|
590
|
+
ke({
|
|
652
591
|
projectId: () => i.projectId,
|
|
653
592
|
folderId: () => i.folder?.id,
|
|
654
593
|
canSelectAll: () => i.canSelectAll
|
|
655
594
|
}, (e) => {
|
|
656
595
|
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) {
|
|
657
596
|
let e;
|
|
658
|
-
i.autoselect === "first" && (e = p.value?.[0], i.canSelectAll && (e =
|
|
597
|
+
i.autoselect === "first" && (e = p.value?.[0], i.canSelectAll && (e = se(J()))), (i.autoselect === "placeholder" || !e) && (e = Me()), h(e);
|
|
659
598
|
}
|
|
660
|
-
}, { immediate: !0 }),
|
|
599
|
+
}, { immediate: !0 }), ke({
|
|
661
600
|
modelGroup: s,
|
|
662
601
|
modelGroupId: o
|
|
663
602
|
}, async (e) => {
|
|
@@ -669,14 +608,14 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
669
608
|
if (!(i.canAdd && o.value === null)) {
|
|
670
609
|
if (i.groups) {
|
|
671
610
|
let e = p.value?.find((e) => e.id === o.value);
|
|
672
|
-
if (!e && i.canSelectAll && (e =
|
|
611
|
+
if (!e && i.canSelectAll && (e = J()), e) h(e);
|
|
673
612
|
else {
|
|
674
613
|
let e = p.value?.[0];
|
|
675
|
-
e && !o.value ? h(e) : h(
|
|
614
|
+
e && !o.value ? h(e) : h(K);
|
|
676
615
|
}
|
|
677
616
|
}
|
|
678
617
|
if (i.client && !i.groups && (o.value || o.value === 0 && !i.canSelectAll)) {
|
|
679
|
-
let e =
|
|
618
|
+
let e = Pe(i.client, i.service).changeParams({
|
|
680
619
|
project_id: i.projectId,
|
|
681
620
|
id: o.value,
|
|
682
621
|
filters: [m]
|
|
@@ -684,17 +623,17 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
684
623
|
e?.setOptions({ checkFingerprint: "TopGroupSelectorFindGroup:" + i.projectId });
|
|
685
624
|
let t = await e.call();
|
|
686
625
|
if (!t.errors?.length && !t.result) return;
|
|
687
|
-
!t.errors && t.result[0] ? h(t.result[0]) : h(
|
|
626
|
+
!t.errors && t.result[0] ? h(t.result[0]) : h(K);
|
|
688
627
|
}
|
|
689
628
|
}
|
|
690
629
|
}
|
|
691
630
|
}, { immediate: !0 });
|
|
692
|
-
let
|
|
631
|
+
let _ = async (e) => {
|
|
693
632
|
if (i.canAdd !== "api" || !l) return;
|
|
694
633
|
let t = s.value, n = await l.changeParams({
|
|
695
634
|
project_id: i.projectId,
|
|
696
635
|
names: [e.name],
|
|
697
|
-
to_id: i.folder?.id ??
|
|
636
|
+
to_id: i.folder?.id ?? G.id,
|
|
698
637
|
to_type: "in_folder_last"
|
|
699
638
|
}).call();
|
|
700
639
|
if (n.result) {
|
|
@@ -702,7 +641,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
702
641
|
h(e), a("addGroup", e);
|
|
703
642
|
} else h(t);
|
|
704
643
|
f.value?.resetCache(!0);
|
|
705
|
-
},
|
|
644
|
+
}, v = async (e, t) => {
|
|
706
645
|
d && ((await d.changeParams({
|
|
707
646
|
project_id: i.projectId,
|
|
708
647
|
id: e.id,
|
|
@@ -711,13 +650,13 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
711
650
|
id: e.id,
|
|
712
651
|
name: t
|
|
713
652
|
}), f.value?.updateCacheItemById(e.id, { name: t })));
|
|
714
|
-
},
|
|
653
|
+
}, b = async (e) => {
|
|
715
654
|
u && ((await u.changeParams({
|
|
716
655
|
project_id: i.projectId,
|
|
717
656
|
id: e.id
|
|
718
|
-
}).call()).errors || (s.value.id === e.id && h(i.canSelectAll ?
|
|
657
|
+
}).call()).errors || (s.value.id === e.id && h(i.canSelectAll ? J() : K), a("delGroup", e.id), f.value?.deleteCacheItemById(e.id)));
|
|
719
658
|
};
|
|
720
|
-
return n({ resetCacheGroups: g }), (t, n) => (
|
|
659
|
+
return n({ resetCacheGroups: g }), (t, n) => (I(), D(C, {
|
|
721
660
|
ref_key: "refSelector",
|
|
722
661
|
ref: f,
|
|
723
662
|
class: "top-groupSelector_group",
|
|
@@ -726,51 +665,51 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
726
665
|
items: p.value ?? e.groups,
|
|
727
666
|
searchType: "inline",
|
|
728
667
|
icon: e.addIcon ? "" : void 0,
|
|
729
|
-
api: e.groups ? void 0 :
|
|
730
|
-
apiSetSearchParams: (...e) =>
|
|
668
|
+
api: e.groups ? void 0 : B(c),
|
|
669
|
+
apiSetSearchParams: (...e) => B(w)(...e, "name"),
|
|
731
670
|
appendSearchToResult: !!e.canAdd,
|
|
732
|
-
useAllItem: e.canSelectAll ?
|
|
671
|
+
useAllItem: e.canSelectAll ? B(J)().name : !1,
|
|
733
672
|
addChanger: e.addChanger,
|
|
734
673
|
useCache: "",
|
|
735
|
-
onAppendItem:
|
|
736
|
-
},
|
|
737
|
-
item:
|
|
738
|
-
n.id ===
|
|
739
|
-
|
|
674
|
+
onAppendItem: _
|
|
675
|
+
}, ne({
|
|
676
|
+
item: U(({ item: n }) => [A("div", Re, [
|
|
677
|
+
n.id === B(null) ? (I(), k("div", ze, z(t.$i18n.Common.Add) + ": ", 1)) : O("", !0),
|
|
678
|
+
A("span", {
|
|
740
679
|
class: "top-groupSelector_groupItemName top-ellipsis1",
|
|
741
680
|
innerHTML: n.name
|
|
742
|
-
}, null, 8,
|
|
743
|
-
n.folder_path && e.showPath ? (
|
|
681
|
+
}, null, 8, Be),
|
|
682
|
+
n.folder_path && e.showPath ? (I(), k("span", {
|
|
744
683
|
key: 1,
|
|
745
684
|
class: "top-groupSelector_groupItemFolderPath top-ellipsis1",
|
|
746
685
|
innerHTML: n.folder_path
|
|
747
|
-
}, null, 8,
|
|
686
|
+
}, null, 8, Ve)) : O("", !0)
|
|
748
687
|
])]),
|
|
749
688
|
_: 2
|
|
750
689
|
}, [e.canEditAndDel && e.client ? {
|
|
751
690
|
name: "actions",
|
|
752
|
-
fn:
|
|
691
|
+
fn: U(({ item: r }) => [r.id ? (I(), k(T, { key: 0 }, [M(y, {
|
|
753
692
|
submitText: t.$i18n.Common.Save,
|
|
754
693
|
defaultValue: r.name,
|
|
755
694
|
inputProps: { addCleaner: !1 },
|
|
756
|
-
onSubmit: (e) =>
|
|
695
|
+
onSubmit: (e) => v(r, e)
|
|
757
696
|
}, {
|
|
758
|
-
opener:
|
|
759
|
-
default:
|
|
697
|
+
opener: U(() => [...n[1] ||= [A("div", { "data-top-icon": "" }, null, -1)]]),
|
|
698
|
+
default: U(() => [...n[2] ||= []]),
|
|
760
699
|
_: 1
|
|
761
700
|
}, 8, [
|
|
762
701
|
"submitText",
|
|
763
702
|
"defaultValue",
|
|
764
703
|
"onSubmit"
|
|
765
|
-
]),
|
|
704
|
+
]), M(x, {
|
|
766
705
|
isWarning: "",
|
|
767
706
|
submitText: t.$i18n.Common.Delete,
|
|
768
|
-
onSubmit: (e) =>
|
|
707
|
+
onSubmit: (e) => b(r)
|
|
769
708
|
}, {
|
|
770
|
-
opener:
|
|
771
|
-
default:
|
|
709
|
+
opener: U(() => [...n[3] ||= [A("div", { "data-top-icon": "" }, null, -1)]]),
|
|
710
|
+
default: U(() => [A("span", { innerHTML: e.service === "keywords_2" ? t.$i18n.Keywords.Delete_group_warning : t.$i18n.Aitracker.Delete_group_warning }, null, 8, He)]),
|
|
772
711
|
_: 1
|
|
773
|
-
}, 8, ["submitText", "onSubmit"])], 64)) :
|
|
712
|
+
}, 8, ["submitText", "onSubmit"])], 64)) : O("", !0)]),
|
|
774
713
|
key: "0"
|
|
775
714
|
} : void 0]), 1032, [
|
|
776
715
|
"modelValue",
|
|
@@ -783,9 +722,9 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
783
722
|
"addChanger"
|
|
784
723
|
]));
|
|
785
724
|
}
|
|
786
|
-
}),
|
|
725
|
+
}), We = { class: "top-groupSelector" }, Ge = /* @__PURE__ */ N({
|
|
787
726
|
__name: "groupSelector",
|
|
788
|
-
props: /*@__PURE__*/
|
|
727
|
+
props: /*@__PURE__*/ P({
|
|
789
728
|
folderId: {},
|
|
790
729
|
folder: {},
|
|
791
730
|
groupId: {},
|
|
@@ -830,20 +769,20 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
830
769
|
folderModifiers: {},
|
|
831
770
|
groupId: { required: !0 },
|
|
832
771
|
groupIdModifiers: {},
|
|
833
|
-
group: { default:
|
|
772
|
+
group: { default: K },
|
|
834
773
|
groupModifiers: {}
|
|
835
774
|
}),
|
|
836
|
-
emits: /*@__PURE__*/
|
|
775
|
+
emits: /*@__PURE__*/ P(["update:groups"], [
|
|
837
776
|
"update:folderId",
|
|
838
777
|
"update:folder",
|
|
839
778
|
"update:groupId",
|
|
840
779
|
"update:group"
|
|
841
780
|
]),
|
|
842
781
|
setup(e, { expose: t, emit: n }) {
|
|
843
|
-
let r = e, i =
|
|
844
|
-
o.value =
|
|
782
|
+
let r = e, i = L(null), a = V(e, "folderId"), o = V(e, "folder"), s = V(e, "groupId"), c = V(e, "group"), l = n;
|
|
783
|
+
o.value = De(r.folders ?? { root: [G] }, r.canSelectAllGroups).get(a.value);
|
|
845
784
|
let u = r.groups?.find((e) => e.id === s.value);
|
|
846
|
-
s.value || (u = r.groups?.[0]), r.canSelectAllGroups && !u && (u =
|
|
785
|
+
s.value || (u = r.groups?.[0]), r.canSelectAllGroups && !u && (u = J()), (r.autoselect === "placeholder" || !u) && (u = Me()), u ??= K, c.value = u;
|
|
847
786
|
let d = (e) => {
|
|
848
787
|
let t;
|
|
849
788
|
r.groups && e && (t = [...r.groups, e]), l("update:groups", t);
|
|
@@ -869,7 +808,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
869
808
|
};
|
|
870
809
|
return t({ resetCacheGroups: (e = !1) => {
|
|
871
810
|
i.value?.resetCacheGroups(e);
|
|
872
|
-
} }), (t, n) => (
|
|
811
|
+
} }), (t, n) => (I(), k("div", We, [e.showFolders ? (I(), D(je, {
|
|
873
812
|
key: 0,
|
|
874
813
|
folderId: a.value,
|
|
875
814
|
"onUpdate:folderId": n[0] ||= (e) => a.value = e,
|
|
@@ -892,7 +831,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
892
831
|
"addIcon",
|
|
893
832
|
"client",
|
|
894
833
|
"service"
|
|
895
|
-
])) :
|
|
834
|
+
])) : O("", !0), e.showGroups ? (I(), D(Ue, {
|
|
896
835
|
key: 1,
|
|
897
836
|
ref_key: "componentGroupsRef",
|
|
898
837
|
ref: i,
|
|
@@ -932,46 +871,46 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
932
871
|
"addIcon",
|
|
933
872
|
"client",
|
|
934
873
|
"service"
|
|
935
|
-
])) :
|
|
874
|
+
])) : O("", !0)]));
|
|
936
875
|
}
|
|
937
|
-
}),
|
|
876
|
+
}), Ke = (e) => ({
|
|
938
877
|
id: null,
|
|
939
878
|
name: e,
|
|
940
879
|
listItemProps: {
|
|
941
880
|
type: "title",
|
|
942
881
|
class: "top-projectSelector_item"
|
|
943
882
|
}
|
|
944
|
-
}),
|
|
883
|
+
}), qe = {
|
|
945
884
|
scheduledUpdate: !1,
|
|
946
885
|
manualUpdate: !1,
|
|
947
886
|
guestProjects: !1
|
|
948
|
-
},
|
|
887
|
+
}, Je = (e, t) => {
|
|
949
888
|
let r = [], i = {
|
|
950
|
-
scheduledUpdate:
|
|
951
|
-
manualUpdate:
|
|
952
|
-
guestProjects:
|
|
889
|
+
scheduledUpdate: Ke(n().Projects.Scheduled_update),
|
|
890
|
+
manualUpdate: Ke(n().Projects.Manual_update),
|
|
891
|
+
guestProjects: Ke(n().Projects.Guest_projects)
|
|
953
892
|
}, a = t ? {
|
|
954
893
|
scheduledUpdate: !1,
|
|
955
894
|
manualUpdate: !1,
|
|
956
895
|
guestProjects: !1
|
|
957
|
-
} :
|
|
896
|
+
} : qe;
|
|
958
897
|
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);
|
|
959
898
|
return r;
|
|
960
|
-
},
|
|
899
|
+
}, Ye = (e) => ({
|
|
961
900
|
...e,
|
|
962
|
-
externalLink:
|
|
901
|
+
externalLink: tt(e.url ?? ""),
|
|
963
902
|
listItemProps: {
|
|
964
903
|
class: "top-projectSelector_item",
|
|
965
904
|
attrs: { title: e.name }
|
|
966
905
|
}
|
|
967
|
-
}),
|
|
906
|
+
}), Xe = (e, t, n) => !e || e.length === 0 ? [] : (t && Object.keys(qe).forEach((e) => qe[e] = !1), Je(e.map(Ye), n)), Ze = (e) => {
|
|
968
907
|
e = e.replace(/#.*/, "");
|
|
969
908
|
let t = location.hash;
|
|
970
909
|
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;
|
|
971
|
-
},
|
|
972
|
-
location.href =
|
|
973
|
-
},
|
|
974
|
-
let t =
|
|
910
|
+
}, Qe = (e) => {
|
|
911
|
+
location.href = $e(e);
|
|
912
|
+
}, $e = (e) => {
|
|
913
|
+
let t = et(), n = location.pathname.split("/"), r = "project/dynamics/", i = "";
|
|
975
914
|
n[1] == "project" && (r = n[1] + "/" + n[2] + "/"), n[2] == "settings" && (i = location.hash), [
|
|
976
915
|
"watcher",
|
|
977
916
|
"indexing",
|
|
@@ -981,16 +920,16 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
981
920
|
"adwords"
|
|
982
921
|
].includes(n[4]) && (i = n[4] + "/");
|
|
983
922
|
let a = "https://" + t + "/" + r + e + "/" + i;
|
|
984
|
-
return a =
|
|
985
|
-
},
|
|
923
|
+
return a = Ze(a), a;
|
|
924
|
+
}, et = () => window.page?.subdomain ? window.location.host.replace(window.page?.subdomain + ".", "") : window.location.host, tt = (e) => {
|
|
986
925
|
let t = e.startsWith("http") ? e : "https://" + e;
|
|
987
926
|
return t = t.replace(/"/g, "%22"), t;
|
|
988
|
-
},
|
|
927
|
+
}, nt = (e, n) => {
|
|
989
928
|
let r = e.params.filters ?? [];
|
|
990
929
|
r = r.filter((e) => e.name !== "GEN_SEARCH_STRING()");
|
|
991
|
-
let i =
|
|
930
|
+
let i = _(n), a = n.replace(/([[^$.|?*+()])/g, "\\$1"), o = i.replace(/([[^$.|?*+()])/g, "\\$1");
|
|
992
931
|
n && r.push(t("GEN_SEARCH_STRING()", "REGEXP", [`(${a}|${o})`])), e.changeParams({ filters: r });
|
|
993
|
-
},
|
|
932
|
+
}, rt = (n, i = !0) => {
|
|
994
933
|
let a = n.gen("/get/projects_2/projects/", [
|
|
995
934
|
"id",
|
|
996
935
|
"user_id",
|
|
@@ -1010,9 +949,9 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1010
949
|
]
|
|
1011
950
|
}), a.options.loadingShowSpinner = !1, i && (a.options.onApiLoaded = (e, t, n) => {
|
|
1012
951
|
let r = t.data.filters.length > 1, i = t.data.offset === 0, a = t.data.offset === void 0 || i && !r, o = r;
|
|
1013
|
-
e.result =
|
|
952
|
+
e.result = Xe(e.result, a, o), n?.(e, t);
|
|
1014
953
|
}), a;
|
|
1015
|
-
},
|
|
954
|
+
}, it = (e) => {
|
|
1016
955
|
let t = () => ({
|
|
1017
956
|
userId: r.state.userId,
|
|
1018
957
|
projectsIds: [],
|
|
@@ -1032,7 +971,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1032
971
|
return { getNextProjectId: async (a, o = !1) => {
|
|
1033
972
|
if (n.isLoading) return;
|
|
1034
973
|
n.userId !== r.state.userId && (n = t());
|
|
1035
|
-
let s =
|
|
974
|
+
let s = rt(e, !1);
|
|
1036
975
|
s.changeParams({ limit: 1e3 });
|
|
1037
976
|
let c;
|
|
1038
977
|
for (n.isLoading = !0, n.needFind = !0; c = i(a, o), n.needFind && !c && n.nextOffset !== null;) {
|
|
@@ -1043,11 +982,11 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1043
982
|
}
|
|
1044
983
|
return n.isLoading = !1, c;
|
|
1045
984
|
} };
|
|
1046
|
-
},
|
|
985
|
+
}, at = (e) => e.gen("/add/projects_2/projects/"), ot = { class: "top-ellipsis1" }, st = /* @__PURE__ */ N({
|
|
1047
986
|
__name: "submenu",
|
|
1048
987
|
props: { id: {} },
|
|
1049
988
|
setup(e) {
|
|
1050
|
-
let t = e, i = n(), a =
|
|
989
|
+
let t = e, i = n(), a = et(), o = (e) => {
|
|
1051
990
|
let t = [
|
|
1052
991
|
{
|
|
1053
992
|
href: `https://${a}/project/keywords/${e.id}/`,
|
|
@@ -1124,60 +1063,60 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1124
1063
|
].filter((e) => !Object.entries(r.state.closedByMod).some(([t, n]) => n && e.href.includes(`/${t}/`)));
|
|
1125
1064
|
return e.right.includes("0") ? t.filter((t) => e.right[t.right] === "1") : t;
|
|
1126
1065
|
};
|
|
1127
|
-
return (e, n) => (
|
|
1066
|
+
return (e, n) => (I(), D(B(S), {
|
|
1128
1067
|
id: t.id,
|
|
1129
1068
|
class: "top-projectSelectorSubmenu",
|
|
1130
1069
|
notch: !1,
|
|
1131
1070
|
pos: "2"
|
|
1132
1071
|
}, {
|
|
1133
|
-
contentList:
|
|
1072
|
+
contentList: U(({ data: t }) => [t ? (I(), k(T, { key: 0 }, [(I(!0), k(T, null, R(o(t.projectItem), (t) => (I(), D(B(b), {
|
|
1134
1073
|
href: t.href,
|
|
1135
1074
|
title: t.title,
|
|
1136
1075
|
"data-top-icon": t.icon,
|
|
1137
1076
|
"data-right": t.right
|
|
1138
1077
|
}, {
|
|
1139
|
-
default:
|
|
1078
|
+
default: U(() => [j(z(e.$core.state.isMobile ? t.title : ""), 1)]),
|
|
1140
1079
|
_: 2
|
|
1141
1080
|
}, 1032, [
|
|
1142
1081
|
"href",
|
|
1143
1082
|
"title",
|
|
1144
1083
|
"data-top-icon",
|
|
1145
1084
|
"data-right"
|
|
1146
|
-
]))), 256)),
|
|
1085
|
+
]))), 256)), M(B(b), {
|
|
1147
1086
|
href: t.projectItem.externalLink,
|
|
1148
1087
|
title: t.projectItem.externalLink,
|
|
1149
1088
|
class: "top-ellipsis",
|
|
1150
1089
|
"data-top-icon": "",
|
|
1151
1090
|
target: "_blank"
|
|
1152
1091
|
}, {
|
|
1153
|
-
default:
|
|
1092
|
+
default: U(() => [A("span", ot, z(e.$core.state.isMobile ? t.projectItem.externalLink : ""), 1)]),
|
|
1154
1093
|
_: 2
|
|
1155
|
-
}, 1032, ["href", "title"])], 64)) :
|
|
1094
|
+
}, 1032, ["href", "title"])], 64)) : O("", !0)]),
|
|
1156
1095
|
_: 1
|
|
1157
1096
|
}, 8, ["id"]));
|
|
1158
1097
|
}
|
|
1159
|
-
}),
|
|
1160
|
-
localStorage.setItem(
|
|
1098
|
+
}), Y = "ui_project_selector_total", ct = 864e5, X = L(null), Z = fe(), lt = (e) => {
|
|
1099
|
+
localStorage.setItem(Y + ":" + r.state.userId, JSON.stringify({
|
|
1161
1100
|
projectsTotal: e,
|
|
1162
|
-
expiresAt: Date.now() +
|
|
1101
|
+
expiresAt: Date.now() + ct
|
|
1163
1102
|
}));
|
|
1164
|
-
},
|
|
1165
|
-
let e = localStorage.getItem(
|
|
1103
|
+
}, ut = () => {
|
|
1104
|
+
let e = localStorage.getItem(Y + ":" + r.state.userId);
|
|
1166
1105
|
if (!e) return;
|
|
1167
1106
|
let { projectsTotal: t, expiresAt: n } = JSON.parse(e);
|
|
1168
1107
|
if (Date.now() > n) {
|
|
1169
|
-
localStorage.removeItem(
|
|
1108
|
+
localStorage.removeItem(Y + ":" + r.state.userId);
|
|
1170
1109
|
return;
|
|
1171
1110
|
}
|
|
1172
1111
|
return t;
|
|
1173
|
-
},
|
|
1174
|
-
|
|
1175
|
-
},
|
|
1112
|
+
}, dt = () => {
|
|
1113
|
+
X.value = null, Z.value = void 0, localStorage.removeItem(Y + ":" + r.state.userId), ee("/get/projects_2/projects/");
|
|
1114
|
+
}, ft = { class: "top-projectSelector_itemText" }, pt = { class: "top-comment" }, mt = {
|
|
1176
1115
|
key: 0,
|
|
1177
1116
|
class: "top-comment"
|
|
1178
|
-
},
|
|
1117
|
+
}, ht = ["href"], gt = 1e3, _t = /* @__PURE__ */ N({
|
|
1179
1118
|
__name: "projectSelector",
|
|
1180
|
-
props: /*@__PURE__*/
|
|
1119
|
+
props: /*@__PURE__*/ P({
|
|
1181
1120
|
modelValue: {},
|
|
1182
1121
|
client: {},
|
|
1183
1122
|
menuMode: { type: Boolean },
|
|
@@ -1198,69 +1137,69 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1198
1137
|
}),
|
|
1199
1138
|
emits: ["update:modelValue"],
|
|
1200
1139
|
setup(e, { expose: t }) {
|
|
1201
|
-
let i = n(), a = e, o =
|
|
1140
|
+
let i = n(), a = e, o = V(e, "modelValue"), s = rt(a.client), c = at(a.client), l = L(ut()), u = L(null), d = me(), f = E(() => a.placeholder ?? i.Projects.Select_project), h = E(() => !Z.value || !a.excludeProjectId ? Z.value : Z.value.filter((e) => e.id !== a.excludeProjectId)), { getNextProjectId: g } = it(a.client), _ = async (e = !1) => {
|
|
1202
1141
|
let t = o.value.id;
|
|
1203
1142
|
if (!t) return;
|
|
1204
1143
|
let n = await g(t, e);
|
|
1205
|
-
n &&
|
|
1206
|
-
},
|
|
1207
|
-
if (l.value || l.value === 0) return l.value <
|
|
1144
|
+
n && Qe(n);
|
|
1145
|
+
}, y = E(() => {
|
|
1146
|
+
if (l.value || l.value === 0) return l.value < gt ? "static" : "api";
|
|
1208
1147
|
}), b = async () => {
|
|
1209
|
-
|
|
1210
|
-
let e = await
|
|
1211
|
-
return
|
|
1148
|
+
X.value ||= s.call();
|
|
1149
|
+
let e = await X.value;
|
|
1150
|
+
return X.value = null, e;
|
|
1212
1151
|
}, x = async (e) => {
|
|
1213
1152
|
let t = await c.changeParams({
|
|
1214
1153
|
url: e.name,
|
|
1215
1154
|
name: e.name
|
|
1216
1155
|
}).call();
|
|
1217
1156
|
if (!t.errors) {
|
|
1218
|
-
if (
|
|
1219
|
-
let n =
|
|
1157
|
+
if (Z.value && y.value === "static") {
|
|
1158
|
+
let n = Ye({
|
|
1220
1159
|
id: t.result,
|
|
1221
1160
|
user_id: r.state.userId,
|
|
1222
1161
|
name: e.name,
|
|
1223
1162
|
url: e.name,
|
|
1224
1163
|
on: 0,
|
|
1225
1164
|
right: "11111111111111111111"
|
|
1226
|
-
}), i =
|
|
1227
|
-
|
|
1228
|
-
...
|
|
1165
|
+
}), i = Z.value.findIndex((e) => e.on === 0);
|
|
1166
|
+
Z.value = [
|
|
1167
|
+
...Z.value.slice(0, i),
|
|
1229
1168
|
n,
|
|
1230
|
-
...
|
|
1231
|
-
], l.value && (l.value += 1,
|
|
1169
|
+
...Z.value.slice(i)
|
|
1170
|
+
], l.value && (l.value += 1, lt(l.value));
|
|
1232
1171
|
}
|
|
1233
|
-
|
|
1172
|
+
y.value === "api" && u.value?.resetCache(!0);
|
|
1234
1173
|
}
|
|
1235
1174
|
}, S = async () => {
|
|
1236
|
-
if (
|
|
1175
|
+
if (Z.value || y.value === "api") return;
|
|
1237
1176
|
let e = await b();
|
|
1238
|
-
e.errors || (
|
|
1239
|
-
},
|
|
1177
|
+
e.errors || (Z.value = e.result);
|
|
1178
|
+
}, w = async () => {
|
|
1240
1179
|
if (l.value) {
|
|
1241
|
-
let e =
|
|
1180
|
+
let e = u.value?.popupOpenerRef?.$el;
|
|
1242
1181
|
e && e.addEventListener("pointerenter", () => S(), { once: !0 });
|
|
1243
1182
|
} else {
|
|
1244
|
-
s.changeParams({ limit:
|
|
1183
|
+
s.changeParams({ limit: gt });
|
|
1245
1184
|
let e = await b();
|
|
1246
1185
|
if (e.errors) return;
|
|
1247
|
-
delete s.params.limit, l.value = e.total ?? void 0, !
|
|
1186
|
+
delete s.params.limit, l.value = e.total ?? void 0, !Z.value && y.value !== "api" && (Z.value = e.result), l.value && lt(l.value);
|
|
1248
1187
|
}
|
|
1249
1188
|
};
|
|
1250
|
-
return t({ goToNextProject: _ }),
|
|
1251
|
-
await
|
|
1189
|
+
return t({ goToNextProject: _ }), oe(async () => {
|
|
1190
|
+
await w();
|
|
1252
1191
|
}), (t, n) => {
|
|
1253
|
-
let r =
|
|
1254
|
-
return
|
|
1255
|
-
key:
|
|
1192
|
+
let r = le("TopButton");
|
|
1193
|
+
return I(), k(T, null, [(I(), D(C, {
|
|
1194
|
+
key: y.value ?? "dummy",
|
|
1256
1195
|
ref_key: "refSelector",
|
|
1257
|
-
ref:
|
|
1196
|
+
ref: u,
|
|
1258
1197
|
class: "top-projectSelector",
|
|
1259
1198
|
modelValue: o.value,
|
|
1260
|
-
"onUpdate:modelValue": n[1] ||= (t) => e.menuMode ?
|
|
1261
|
-
items:
|
|
1199
|
+
"onUpdate:modelValue": n[1] ||= (t) => e.menuMode ? B(Qe)(t.id) : o.value = t,
|
|
1200
|
+
items: h.value,
|
|
1262
1201
|
itemsChunkSize: 100,
|
|
1263
|
-
itemsIsLoading:
|
|
1202
|
+
itemsIsLoading: y.value === "static" && B(Z) === void 0,
|
|
1264
1203
|
title: t.$i18n.Projects.Search_projects,
|
|
1265
1204
|
modificator: e.modificator,
|
|
1266
1205
|
searchFields: [
|
|
@@ -1268,52 +1207,52 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1268
1207
|
"name",
|
|
1269
1208
|
"url"
|
|
1270
1209
|
],
|
|
1271
|
-
placeholder:
|
|
1210
|
+
placeholder: f.value,
|
|
1272
1211
|
hasCloserBtn: "",
|
|
1273
|
-
api:
|
|
1274
|
-
apiSetSearchParams:
|
|
1212
|
+
api: y.value === "api" ? B(s) : void 0,
|
|
1213
|
+
apiSetSearchParams: y.value === "api" ? (...e) => B(nt)(...e) : void 0,
|
|
1275
1214
|
useCache: "",
|
|
1276
1215
|
appendSearchToResult: "",
|
|
1277
1216
|
appendSearchAllowDuplicate: "",
|
|
1278
|
-
appendSearchToResultCond:
|
|
1217
|
+
appendSearchToResultCond: B(p),
|
|
1279
1218
|
appendWithoutSelect: "",
|
|
1280
1219
|
buttonProps: {
|
|
1281
1220
|
...e.buttonProps,
|
|
1282
|
-
isProgress: !
|
|
1283
|
-
disabled: !
|
|
1221
|
+
isProgress: !y.value,
|
|
1222
|
+
disabled: !y.value
|
|
1284
1223
|
},
|
|
1285
1224
|
openerShortcut: e.openerShortcut,
|
|
1286
1225
|
onAppendItem: x,
|
|
1287
1226
|
onOpen: S
|
|
1288
1227
|
}, {
|
|
1289
|
-
item:
|
|
1290
|
-
e.menuMode ? (
|
|
1228
|
+
item: U(({ item: i }) => [A("div", ft, [i.id ? (I(), k(T, { key: 0 }, [j(z(B(m)(i.name, 20)) + " ", 1), A("span", pt, " id " + z(i.id), 1)], 64)) : (I(), k(T, { key: 1 }, [i.listItemProps?.type ? O("", !0) : (I(), k("div", mt, z(t.$i18n.Projects.Add_project) + ": ", 1)), j(" " + z(i.name), 1)], 64))]), i.id ? (I(), k(T, { key: 0 }, [
|
|
1229
|
+
e.menuMode ? (I(), k("a", {
|
|
1291
1230
|
key: 0,
|
|
1292
1231
|
class: "top-projectSelector_itemLink",
|
|
1293
|
-
href:
|
|
1294
|
-
}, null, 8,
|
|
1295
|
-
t.$core.state.isMobile ?
|
|
1232
|
+
href: B($e)(i.id)
|
|
1233
|
+
}, null, 8, ht)) : O("", !0),
|
|
1234
|
+
t.$core.state.isMobile ? O("", !0) : (I(), D(r, {
|
|
1296
1235
|
key: 1,
|
|
1297
1236
|
href: i.externalLink,
|
|
1298
1237
|
"data-top-icon": "",
|
|
1299
1238
|
color: "theme",
|
|
1300
1239
|
target: "_blank",
|
|
1301
|
-
onClick: n[0] ||=
|
|
1240
|
+
onClick: n[0] ||= W(() => {}, ["stop"])
|
|
1302
1241
|
}, null, 8, ["href"])),
|
|
1303
|
-
|
|
1304
|
-
id:
|
|
1242
|
+
M(v, {
|
|
1243
|
+
id: B(d),
|
|
1305
1244
|
pos: "2",
|
|
1306
1245
|
notch: !1,
|
|
1307
1246
|
data: { projectItem: i }
|
|
1308
1247
|
}, {
|
|
1309
|
-
default:
|
|
1248
|
+
default: U(() => [M(r, {
|
|
1310
1249
|
class: "top-popup_listMore",
|
|
1311
1250
|
"data-top-icon": "",
|
|
1312
1251
|
color: "theme"
|
|
1313
1252
|
})]),
|
|
1314
1253
|
_: 1
|
|
1315
1254
|
}, 8, ["id", "data"])
|
|
1316
|
-
], 64)) :
|
|
1255
|
+
], 64)) : O("", !0)]),
|
|
1317
1256
|
_: 1
|
|
1318
1257
|
}, 8, [
|
|
1319
1258
|
"modelValue",
|
|
@@ -1327,43 +1266,43 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1327
1266
|
"appendSearchToResultCond",
|
|
1328
1267
|
"buttonProps",
|
|
1329
1268
|
"openerShortcut"
|
|
1330
|
-
])),
|
|
1269
|
+
])), M(st, { id: B(d) }, null, 8, ["id"])], 64);
|
|
1331
1270
|
};
|
|
1332
1271
|
}
|
|
1333
|
-
}),
|
|
1334
|
-
e =
|
|
1272
|
+
}), vt = (e) => "-" + e, Q = (e) => e[0] === "-" ? e.substring(1) : e, yt = (e, t) => {
|
|
1273
|
+
e = Q(e);
|
|
1335
1274
|
let n = t.find((t) => t.id === e);
|
|
1336
1275
|
if (n) return n;
|
|
1337
|
-
},
|
|
1276
|
+
}, bt = (e, t, n) => {
|
|
1338
1277
|
t ||= { id: e.id }, t.id = e.id, t.pos ??= "3", t.notch ??= !0, t.posBy ??= "fixed";
|
|
1339
1278
|
let r = c.genElPopupOpener("div", t);
|
|
1340
1279
|
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) => {
|
|
1341
1280
|
t.preventDefault(), t.stopPropagation(), r.onclick = null;
|
|
1342
|
-
let i =
|
|
1281
|
+
let i = L(e.modelValue), a = {
|
|
1343
1282
|
model: i,
|
|
1344
1283
|
mode: e.mode,
|
|
1345
1284
|
targetId: e.targetId,
|
|
1346
1285
|
filters: e.filters,
|
|
1347
1286
|
payload: e.payload
|
|
1348
1287
|
};
|
|
1349
|
-
s(r, "topTagSelectorTarget", a), delete r.dataset.topPopupDisabled,
|
|
1350
|
-
e.modelValue = i.value,
|
|
1288
|
+
s(r, "topTagSelectorTarget", a), delete r.dataset.topPopupDisabled, re(e.modelValue) || H(i, () => {
|
|
1289
|
+
e.modelValue = i.value, St(r, e, n);
|
|
1351
1290
|
}), r.click();
|
|
1352
|
-
},
|
|
1291
|
+
}, re(e.modelValue) ? H(e.modelValue, () => St(r, e, n)) : s(r, "topTagSelectorRender", (t) => {
|
|
1353
1292
|
e.modelValue = t;
|
|
1354
1293
|
let i = s(r, "topTagSelectorTarget");
|
|
1355
|
-
i && (i.model.value = t),
|
|
1356
|
-
}),
|
|
1357
|
-
},
|
|
1294
|
+
i && (i.model.value = t), St(r, e, n);
|
|
1295
|
+
}), St(r, e, n), r;
|
|
1296
|
+
}, xt = (e, t) => {
|
|
1358
1297
|
s(e, "topTagSelectorRender")?.(t);
|
|
1359
|
-
},
|
|
1360
|
-
let i =
|
|
1298
|
+
}, St = (e, t, r) => {
|
|
1299
|
+
let i = B(t.modelValue);
|
|
1361
1300
|
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) {
|
|
1362
1301
|
e.innerHTML = `<div>${r}</div>`;
|
|
1363
1302
|
return;
|
|
1364
1303
|
}
|
|
1365
1304
|
if (e.innerHTML = "", !i.length && t.mode === "filter") {
|
|
1366
|
-
let t =
|
|
1305
|
+
let t = Ct({
|
|
1367
1306
|
id: "all",
|
|
1368
1307
|
colorId: "",
|
|
1369
1308
|
name: n().Common?.All_tags ?? "",
|
|
@@ -1372,18 +1311,18 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1372
1311
|
e.append(t);
|
|
1373
1312
|
}
|
|
1374
1313
|
i.forEach((n) => {
|
|
1375
|
-
let r =
|
|
1376
|
-
id:
|
|
1377
|
-
colorId:
|
|
1378
|
-
name:
|
|
1379
|
-
state:
|
|
1314
|
+
let r = Ct({
|
|
1315
|
+
id: Q(n),
|
|
1316
|
+
colorId: yt(n, t.tags)?.color_id ?? "",
|
|
1317
|
+
name: yt(n, t.tags)?.name ?? "",
|
|
1318
|
+
state: Q(n) === n ? "selected" : "excluded"
|
|
1380
1319
|
});
|
|
1381
1320
|
e.append(r);
|
|
1382
1321
|
});
|
|
1383
|
-
},
|
|
1322
|
+
}, Ct = (e) => {
|
|
1384
1323
|
let t = document.createElement("div");
|
|
1385
1324
|
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;
|
|
1386
|
-
},
|
|
1325
|
+
}, wt = [
|
|
1387
1326
|
{
|
|
1388
1327
|
id: "1",
|
|
1389
1328
|
name: "Without Tag",
|
|
@@ -1434,11 +1373,11 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1434
1373
|
name: "Turquoise",
|
|
1435
1374
|
color_id: "10"
|
|
1436
1375
|
}
|
|
1437
|
-
],
|
|
1376
|
+
], Tt = [
|
|
1438
1377
|
"data-tag_id",
|
|
1439
1378
|
"data-tag_color_id",
|
|
1440
1379
|
"title"
|
|
1441
|
-
],
|
|
1380
|
+
], Et = /* @__PURE__ */ N({
|
|
1442
1381
|
__name: "tagIcon",
|
|
1443
1382
|
props: {
|
|
1444
1383
|
id: {},
|
|
@@ -1447,8 +1386,8 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1447
1386
|
state: {}
|
|
1448
1387
|
},
|
|
1449
1388
|
setup(e) {
|
|
1450
|
-
return (t, n) => (
|
|
1451
|
-
class:
|
|
1389
|
+
return (t, n) => (I(), k("div", {
|
|
1390
|
+
class: F({
|
|
1452
1391
|
"top-tagSelector_tagIcon": !0,
|
|
1453
1392
|
"top-tagSelector-active": !!e.state,
|
|
1454
1393
|
"top-tagSelector-excluded": e.state === "excluded"
|
|
@@ -1456,11 +1395,11 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1456
1395
|
"data-tag_id": e.id,
|
|
1457
1396
|
"data-tag_color_id": e.colorId,
|
|
1458
1397
|
title: e.name
|
|
1459
|
-
}, null, 10,
|
|
1398
|
+
}, null, 10, Tt));
|
|
1460
1399
|
}
|
|
1461
|
-
}),
|
|
1400
|
+
}), Dt = ["contenteditable", "onKeydown"], Ot = /* @__PURE__ */ N({
|
|
1462
1401
|
__name: "tagPopupListItem",
|
|
1463
|
-
props: /*@__PURE__*/
|
|
1402
|
+
props: /*@__PURE__*/ P({
|
|
1464
1403
|
editable: { type: Boolean },
|
|
1465
1404
|
disabled: { type: Boolean },
|
|
1466
1405
|
canExclude: { type: Boolean },
|
|
@@ -1472,18 +1411,18 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1472
1411
|
name: { required: !0 },
|
|
1473
1412
|
nameModifiers: {}
|
|
1474
1413
|
}),
|
|
1475
|
-
emits: /*@__PURE__*/
|
|
1414
|
+
emits: /*@__PURE__*/ P([
|
|
1476
1415
|
"update:name",
|
|
1477
1416
|
"unselect",
|
|
1478
1417
|
"exclude",
|
|
1479
1418
|
"select"
|
|
1480
1419
|
], ["update:name"]),
|
|
1481
1420
|
setup(e, { emit: t }) {
|
|
1482
|
-
let n = e, r = t, i =
|
|
1421
|
+
let n = e, r = t, i = V(e, "name"), a = L(null), o = E(() => navigator.userAgent.indexOf("Firefox") == -1 ? {} : {
|
|
1483
1422
|
contenteditable: s.value,
|
|
1484
1423
|
onpaste: (e) => e.preventDefault()
|
|
1485
|
-
}), s =
|
|
1486
|
-
s.value = !0, await
|
|
1424
|
+
}), s = L(!1), c = async () => {
|
|
1425
|
+
s.value = !0, await ae(), a.value?.focus();
|
|
1487
1426
|
}, l = () => {
|
|
1488
1427
|
let e = a.value?.innerText;
|
|
1489
1428
|
if (!e) return u();
|
|
@@ -1495,8 +1434,8 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1495
1434
|
let t = "selected";
|
|
1496
1435
|
n.canExclude && (e.ctrlKey || e.metaKey) && (t = "excluded"), n.state == t && (t = ""), t === "" && r("unselect"), t === "selected" && r("select"), t === "excluded" && r("exclude");
|
|
1497
1436
|
};
|
|
1498
|
-
return (t, n) => (
|
|
1499
|
-
class:
|
|
1437
|
+
return (t, n) => (I(), D(b, {
|
|
1438
|
+
class: F({
|
|
1500
1439
|
"top-tagSelector_tagListItem": !0,
|
|
1501
1440
|
"top-tagSelector_tagListItem-inEdit": s.value,
|
|
1502
1441
|
"top-tagSelector_tagListItem-disabled": e.disabled,
|
|
@@ -1504,10 +1443,10 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1504
1443
|
"top-tagSelector-active": !!e.state,
|
|
1505
1444
|
"top-tagSelector-excluded": e.state === "excluded"
|
|
1506
1445
|
}),
|
|
1507
|
-
onClick:
|
|
1446
|
+
onClick: W(d, ["stop"])
|
|
1508
1447
|
}, {
|
|
1509
|
-
default:
|
|
1510
|
-
|
|
1448
|
+
default: U(() => [
|
|
1449
|
+
M(Et, {
|
|
1511
1450
|
id: e.id,
|
|
1512
1451
|
name: i.value,
|
|
1513
1452
|
colorId: e.colorId,
|
|
@@ -1518,31 +1457,31 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1518
1457
|
"colorId",
|
|
1519
1458
|
"state"
|
|
1520
1459
|
]),
|
|
1521
|
-
|
|
1460
|
+
A("span", ie({
|
|
1522
1461
|
ref_key: "elName",
|
|
1523
1462
|
ref: a,
|
|
1524
1463
|
class: "top-tagSelector_tagListItemName",
|
|
1525
1464
|
contenteditable: s.value ? "plaintext-only" : !1
|
|
1526
|
-
}, o.value, { onKeydown: [
|
|
1527
|
-
e.editable ? (
|
|
1465
|
+
}, o.value, { onKeydown: [ge(W(l, ["stop"]), ["enter"]), ge(W(u, ["stop"]), ["esc"])] }), z(i.value), 17, Dt),
|
|
1466
|
+
e.editable ? (I(), k(T, { key: 0 }, [s.value ? (I(), k("span", {
|
|
1528
1467
|
key: 1,
|
|
1529
1468
|
"data-top-icon": "",
|
|
1530
1469
|
class: "top-tagSelector_edit",
|
|
1531
|
-
onClick:
|
|
1532
|
-
})) : (
|
|
1470
|
+
onClick: W(l, ["stop"])
|
|
1471
|
+
})) : (I(), k("span", {
|
|
1533
1472
|
key: 0,
|
|
1534
1473
|
"data-top-icon": "",
|
|
1535
1474
|
class: "top-tagSelector_edit",
|
|
1536
1475
|
onClick: c
|
|
1537
|
-
}))], 64)) :
|
|
1476
|
+
}))], 64)) : O("", !0)
|
|
1538
1477
|
]),
|
|
1539
1478
|
_: 1
|
|
1540
1479
|
}, 8, ["class"]));
|
|
1541
1480
|
}
|
|
1542
|
-
}),
|
|
1481
|
+
}), kt = { key: 1 }, At = /* @__PURE__ */ N({
|
|
1543
1482
|
inheritAttrs: !1,
|
|
1544
1483
|
__name: "popupOpener",
|
|
1545
|
-
props: /*@__PURE__*/
|
|
1484
|
+
props: /*@__PURE__*/ P({
|
|
1546
1485
|
modelValue: {},
|
|
1547
1486
|
id: {},
|
|
1548
1487
|
tags: {},
|
|
@@ -1558,7 +1497,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1558
1497
|
}),
|
|
1559
1498
|
emits: ["update:modelValue"],
|
|
1560
1499
|
setup(e, { attrs: t }) {
|
|
1561
|
-
let n = e, r =
|
|
1500
|
+
let n = e, r = V(e, "modelValue"), i = n.useTopButton ? a : "div", o = n.useTopButton ? "html" : "default", s = {
|
|
1562
1501
|
model: r,
|
|
1563
1502
|
mode: n.mode,
|
|
1564
1503
|
targetId: n.targetId,
|
|
@@ -1566,9 +1505,9 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1566
1505
|
payload: n.payload
|
|
1567
1506
|
};
|
|
1568
1507
|
return (a, c) => {
|
|
1569
|
-
let l =
|
|
1570
|
-
return
|
|
1571
|
-
default:
|
|
1508
|
+
let l = ue("top-data");
|
|
1509
|
+
return I(), D(v, { id: e.id }, {
|
|
1510
|
+
default: U(() => [he((I(), D(de(B(i)), ie({
|
|
1572
1511
|
class: {
|
|
1573
1512
|
"top-tagSelector": !0,
|
|
1574
1513
|
"top-tagSelector-useTopButton": n.useTopButton,
|
|
@@ -1583,17 +1522,17 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1583
1522
|
color: "theme",
|
|
1584
1523
|
styling: e.styling
|
|
1585
1524
|
}, t), {
|
|
1586
|
-
[
|
|
1525
|
+
[B(o)]: U(() => [!r.value.length && e.mode === "filter" ? (I(), D(Et, {
|
|
1587
1526
|
key: 0,
|
|
1588
1527
|
id: "all",
|
|
1589
1528
|
colorId: "",
|
|
1590
1529
|
name: a.$i18n.Common.All_tags ?? "",
|
|
1591
1530
|
state: ""
|
|
1592
|
-
}, null, 8, ["name"])) :
|
|
1593
|
-
id:
|
|
1594
|
-
colorId:
|
|
1595
|
-
name:
|
|
1596
|
-
state:
|
|
1531
|
+
}, null, 8, ["name"])) : O("", !0), e.mode === "setter" && e.filters ? (I(), k("div", kt, [ce(a.$slots, "default")])) : (I(!0), k(T, { key: 2 }, R(r.value, (t) => (I(), D(Et, {
|
|
1532
|
+
id: B(Q)(t),
|
|
1533
|
+
colorId: B(yt)(t, e.tags)?.color_id ?? "",
|
|
1534
|
+
name: B(yt)(t, e.tags)?.name ?? "",
|
|
1535
|
+
state: B(Q)(t) === t ? "selected" : "excluded"
|
|
1597
1536
|
}, null, 8, [
|
|
1598
1537
|
"id",
|
|
1599
1538
|
"colorId",
|
|
@@ -1610,9 +1549,9 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1610
1549
|
}, 8, ["id"]);
|
|
1611
1550
|
};
|
|
1612
1551
|
}
|
|
1613
|
-
}),
|
|
1552
|
+
}), jt = /* @__PURE__ */ N({
|
|
1614
1553
|
__name: "tagSelector",
|
|
1615
|
-
props: /*@__PURE__*/
|
|
1554
|
+
props: /*@__PURE__*/ P({
|
|
1616
1555
|
modelValue: {},
|
|
1617
1556
|
tags: {},
|
|
1618
1557
|
tagsEditable: { type: Boolean },
|
|
@@ -1633,20 +1572,20 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1633
1572
|
}, {
|
|
1634
1573
|
modelValue: { required: !0 },
|
|
1635
1574
|
modelModifiers: {},
|
|
1636
|
-
tags: { default:
|
|
1575
|
+
tags: { default: se(wt) },
|
|
1637
1576
|
tagsModifiers: {}
|
|
1638
1577
|
}),
|
|
1639
|
-
emits: /*@__PURE__*/
|
|
1578
|
+
emits: /*@__PURE__*/ P([
|
|
1640
1579
|
"selector",
|
|
1641
1580
|
"setter",
|
|
1642
1581
|
"tagsChanged"
|
|
1643
1582
|
], ["update:modelValue", "update:tags"]),
|
|
1644
1583
|
setup(e, { emit: t }) {
|
|
1645
|
-
let c = n(), l = e, u =
|
|
1584
|
+
let c = n(), l = e, u = V(e, "modelValue"), d = V(e, "tags"), f = t, p = i((e, t) => {
|
|
1646
1585
|
f(e, t);
|
|
1647
1586
|
}, l.emitDelay);
|
|
1648
1587
|
l.singleMode && !u.value.length && (u.value = [d.value[0].id]);
|
|
1649
|
-
let m = l.id ?? "top-popup-id-" + Math.random(), h =
|
|
1588
|
+
let m = l.id ?? "top-popup-id-" + Math.random(), h = L("add"), g = () => {
|
|
1650
1589
|
let e = " " + c.Common.Tags?.toLowerCase(), t = /* @__PURE__ */ new Map();
|
|
1651
1590
|
return t.set("add", {
|
|
1652
1591
|
value: "add",
|
|
@@ -1658,35 +1597,35 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1658
1597
|
value: "delete",
|
|
1659
1598
|
title: c.Common.Delete + e
|
|
1660
1599
|
}), t;
|
|
1661
|
-
}, _ =
|
|
1600
|
+
}, _ = fe({
|
|
1662
1601
|
model: u,
|
|
1663
1602
|
mode: "filter",
|
|
1664
1603
|
targetId: void 0,
|
|
1665
1604
|
filters: void 0,
|
|
1666
1605
|
payload: void 0
|
|
1667
1606
|
});
|
|
1668
|
-
|
|
1607
|
+
H(u, () => {
|
|
1669
1608
|
p("selector", u.value);
|
|
1670
1609
|
});
|
|
1671
|
-
let
|
|
1610
|
+
let v = E(() => {
|
|
1672
1611
|
if (_.value.mode === "setter" && l.maxTagsForSetter && !_.value.filters) return _.value.model.value.length >= l.maxTagsForSetter;
|
|
1673
|
-
}),
|
|
1612
|
+
}), y = (e) => {
|
|
1674
1613
|
if (e !== "all") {
|
|
1675
1614
|
if (_.value.model.value.includes(e)) return "selected";
|
|
1676
|
-
if (_.value.model.value.includes(
|
|
1615
|
+
if (_.value.model.value.includes(vt(e))) return "excluded";
|
|
1677
1616
|
}
|
|
1678
1617
|
return e === "all" && !_.value.model.value.length ? "selected" : "";
|
|
1679
1618
|
}, x = (e, t) => {
|
|
1680
|
-
let n =
|
|
1619
|
+
let n = vt(e), r = _.value.model.value.filter((t) => t !== e && t !== n);
|
|
1681
1620
|
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", {
|
|
1682
1621
|
tagsIds: r,
|
|
1683
1622
|
targetId: _.value.targetId,
|
|
1684
1623
|
payload: _.value.payload
|
|
1685
1624
|
});
|
|
1686
|
-
},
|
|
1625
|
+
}, C = E(() => {
|
|
1687
1626
|
let e = "top-tagSelector_popup";
|
|
1688
1627
|
return _.value.mode === "filter" && (e += " top-tagSelector_popup-filter"), _.value.mode === "setter" && (e += " top-tagSelector_popup-setter"), e;
|
|
1689
|
-
}),
|
|
1628
|
+
}), w = () => {
|
|
1690
1629
|
let e = prompt("", "New tag");
|
|
1691
1630
|
if (!e || e === "New tag") return;
|
|
1692
1631
|
let t = d.value.length + 1;
|
|
@@ -1695,7 +1634,7 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1695
1634
|
name: e,
|
|
1696
1635
|
color_id: String((t - 1) % 10 + 1)
|
|
1697
1636
|
}), f("tagsChanged", d.value);
|
|
1698
|
-
},
|
|
1637
|
+
}, ee = (e) => {
|
|
1699
1638
|
if (_.value = s(e.elPopupOpener, "topTagSelectorTarget"), !_.value) throw Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
|
|
1700
1639
|
if (_.value.filters && (h.value = "add", _.value.model.value = []), !r.$?.ui.sortable) {
|
|
1701
1640
|
console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
|
|
@@ -1715,13 +1654,13 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1715
1654
|
}), d.value.sort((e, t) => r.findIndex((t) => t === e.id) - r.findIndex((e) => e === t.id)), p("tagsChanged", d.value);
|
|
1716
1655
|
}
|
|
1717
1656
|
});
|
|
1718
|
-
},
|
|
1657
|
+
}, te = (e) => {
|
|
1719
1658
|
r.$?.ui.sortable && $(e.elPopup).data("ui-sortable") && $(e.elPopup).sortable("destroy");
|
|
1720
1659
|
};
|
|
1721
|
-
return (t, n) => (
|
|
1660
|
+
return (t, n) => (I(), k(T, null, [M(At, {
|
|
1722
1661
|
modelValue: u.value,
|
|
1723
1662
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
1724
|
-
id:
|
|
1663
|
+
id: B(m),
|
|
1725
1664
|
tags: d.value,
|
|
1726
1665
|
styling: e.styling,
|
|
1727
1666
|
mode: "filter",
|
|
@@ -1732,36 +1671,36 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1732
1671
|
"tags",
|
|
1733
1672
|
"styling",
|
|
1734
1673
|
"useTopButton"
|
|
1735
|
-
]),
|
|
1736
|
-
id:
|
|
1737
|
-
class:
|
|
1738
|
-
onOpen: n[4] ||= (e) =>
|
|
1739
|
-
onClose: n[5] ||= (e) =>
|
|
1674
|
+
]), M(S, {
|
|
1675
|
+
id: B(m),
|
|
1676
|
+
class: F(C.value),
|
|
1677
|
+
onOpen: n[4] ||= (e) => ee(e),
|
|
1678
|
+
onClose: n[5] ||= (e) => te(e),
|
|
1740
1679
|
"transition-duration": 50
|
|
1741
|
-
},
|
|
1742
|
-
contentList:
|
|
1743
|
-
_.value.mode === "filter" && !e.singleMode ? (
|
|
1680
|
+
}, ne({
|
|
1681
|
+
contentList: U(() => [
|
|
1682
|
+
_.value.mode === "filter" && !e.singleMode ? (I(), D(Ot, {
|
|
1744
1683
|
key: 0,
|
|
1745
1684
|
id: "all",
|
|
1746
1685
|
colorId: "",
|
|
1747
1686
|
name: t.$i18n.Common.All_tags ?? "",
|
|
1748
1687
|
state: _.value.model.value.length ? "" : "selected",
|
|
1749
1688
|
onSelect: n[3] ||= (e) => _.value.model.value = []
|
|
1750
|
-
}, null, 8, ["name", "state"])) :
|
|
1751
|
-
(
|
|
1689
|
+
}, null, 8, ["name", "state"])) : O("", !0),
|
|
1690
|
+
(I(!0), k(T, null, R(d.value, (t) => (I(), D(Ot, {
|
|
1752
1691
|
key: t.id,
|
|
1753
1692
|
id: t.id,
|
|
1754
1693
|
colorId: t.color_id,
|
|
1755
1694
|
name: t.name,
|
|
1756
|
-
state:
|
|
1695
|
+
state: y(t.id),
|
|
1757
1696
|
canExclude: _.value.mode === "filter" && !e.singleMode,
|
|
1758
1697
|
editable: e.tagsEditable,
|
|
1759
|
-
disabled:
|
|
1698
|
+
disabled: v.value && y(t.id) === "",
|
|
1760
1699
|
onUnselect: (e) => x(t.id, "unselect"),
|
|
1761
1700
|
onSelect: (e) => x(t.id, "select"),
|
|
1762
1701
|
onExclude: (e) => x(t.id, "exclude"),
|
|
1763
1702
|
"onUpdate:name": (e) => {
|
|
1764
|
-
t.name = e,
|
|
1703
|
+
t.name = e, B(p)("tagsChanged", d.value);
|
|
1765
1704
|
}
|
|
1766
1705
|
}, null, 8, [
|
|
1767
1706
|
"id",
|
|
@@ -1776,36 +1715,36 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1776
1715
|
"onExclude",
|
|
1777
1716
|
"onUpdate:name"
|
|
1778
1717
|
]))), 128)),
|
|
1779
|
-
e.tagsEditable && d.value.length < e.tagsMax && d.value.length < 20 ? (
|
|
1718
|
+
e.tagsEditable && d.value.length < e.tagsMax && d.value.length < 20 ? (I(), D(b, {
|
|
1780
1719
|
key: 1,
|
|
1781
1720
|
"data-top-icon": "",
|
|
1782
|
-
onClick:
|
|
1721
|
+
onClick: W(w, ["stop"])
|
|
1783
1722
|
}, {
|
|
1784
|
-
default:
|
|
1723
|
+
default: U(() => [j(z(t.$i18n.Common.Add), 1)]),
|
|
1785
1724
|
_: 1
|
|
1786
|
-
})) :
|
|
1725
|
+
})) : O("", !0)
|
|
1787
1726
|
]),
|
|
1788
1727
|
_: 2
|
|
1789
1728
|
}, [_.value.mode === "setter" && _.value.filters ? {
|
|
1790
1729
|
name: "header",
|
|
1791
|
-
fn:
|
|
1730
|
+
fn: U(() => [M(o, {
|
|
1792
1731
|
modelValue: h.value,
|
|
1793
1732
|
"onUpdate:modelValue": n[1] ||= (e) => h.value = e,
|
|
1794
|
-
options:
|
|
1733
|
+
options: g()
|
|
1795
1734
|
}, null, 8, ["modelValue", "options"])]),
|
|
1796
1735
|
key: "0"
|
|
1797
1736
|
} : void 0, _.value.mode === "setter" && _.value.filters ? {
|
|
1798
1737
|
name: "footer",
|
|
1799
|
-
fn:
|
|
1800
|
-
default:
|
|
1738
|
+
fn: U(() => [M(a, { color: "theme" }, {
|
|
1739
|
+
default: U(() => [j(z(t.$i18n.Common.Cancel), 1)]),
|
|
1801
1740
|
_: 1
|
|
1802
|
-
}),
|
|
1741
|
+
}), M(a, { onClick: n[2] ||= (e) => B(p)("setter", {
|
|
1803
1742
|
tagsIds: _.value.model.value,
|
|
1804
1743
|
filters: _.value.filters,
|
|
1805
1744
|
filtersAction: h.value,
|
|
1806
1745
|
payload: _.value.payload
|
|
1807
1746
|
}) }, {
|
|
1808
|
-
default:
|
|
1747
|
+
default: U(() => [j(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)]),
|
|
1809
1748
|
_: 1
|
|
1810
1749
|
})]),
|
|
1811
1750
|
key: "1"
|
|
@@ -1813,6 +1752,6 @@ var We = ["innerHTML"], Ge = /* @__PURE__ */ j({
|
|
|
1813
1752
|
}
|
|
1814
1753
|
});
|
|
1815
1754
|
//#endregion
|
|
1816
|
-
export {
|
|
1755
|
+
export { ye as TopCompetitorSelector, Ge as TopGroupSelector, _t as TopProjectSelector, Te as TopRegionSelector, jt as TopTagSelector, At as TopTagSelectorPopupOpener, Et as TopTagSelectorTagIcon, d as dialogRegionSelector, f as findRegion, bt as genElTopTagSelectorPopupOpener, u as genSearcherByKey, xt as renderElTopTagSelectorPopupOpener, dt as topProjectSelectorClearCache, be as useItemsFromCompetitors };
|
|
1817
1756
|
|
|
1818
1757
|
//# sourceMappingURL=project.js.map
|