@topvisor/ui 1.5.9 → 1.5.10-animation.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.chunks/api-nVBtzTDk.es.amd.js +2 -0
- package/.chunks/api-nVBtzTDk.es.amd.js.map +1 -0
- package/.chunks/{api-lAoAK33f.es.js → api-nVBtzTDk.es.js} +101 -51
- package/.chunks/api-nVBtzTDk.es.js.map +1 -0
- package/.chunks/app-BbV6AslA.es.amd.js +2 -0
- package/.chunks/app-BbV6AslA.es.amd.js.map +1 -0
- package/.chunks/{app-CY6euLQJ.es.js → app-BbV6AslA.es.js} +26 -25
- package/.chunks/{app-CY6euLQJ.es.js.map → app-BbV6AslA.es.js.map} +1 -1
- package/.chunks/{datepicker-CeUbso62.es.amd.js → datepicker-CpnGeB5y.es.amd.js} +2 -2
- package/.chunks/{datepicker-CeUbso62.es.amd.js.map → datepicker-CpnGeB5y.es.amd.js.map} +1 -1
- package/.chunks/{datepicker-CeUbso62.es.js → datepicker-CpnGeB5y.es.js} +2 -2
- package/.chunks/{datepicker-CeUbso62.es.js.map → datepicker-CpnGeB5y.es.js.map} +1 -1
- package/.chunks/{dialog-Cnx_s8X1.es.amd.js → dialog-CiK4MPcB.es.amd.js} +2 -2
- package/.chunks/{dialog-Cnx_s8X1.es.amd.js.map → dialog-CiK4MPcB.es.amd.js.map} +1 -1
- package/.chunks/{dialog-Cnx_s8X1.es.js → dialog-CiK4MPcB.es.js} +3 -3
- package/.chunks/{dialog-Cnx_s8X1.es.js.map → dialog-CiK4MPcB.es.js.map} +1 -1
- package/.chunks/{dialog_regionSelectorRegions-BCEJBT1H.es.amd.js → dialog_regionSelectorRegions-CRUwGUuz.es.amd.js} +2 -2
- package/.chunks/{dialog_regionSelectorRegions-BCEJBT1H.es.amd.js.map → dialog_regionSelectorRegions-CRUwGUuz.es.amd.js.map} +1 -1
- package/.chunks/{dialog_regionSelectorRegions-BCEJBT1H.es.js → dialog_regionSelectorRegions-CRUwGUuz.es.js} +4 -4
- package/.chunks/{dialog_regionSelectorRegions-BCEJBT1H.es.js.map → dialog_regionSelectorRegions-CRUwGUuz.es.js.map} +1 -1
- package/.chunks/forms-CjJD60m3.es.amd.js +2 -0
- package/.chunks/forms-CjJD60m3.es.amd.js.map +1 -0
- package/.chunks/{forms-Ch1q0UUt.es.js → forms-CjJD60m3.es.js} +601 -638
- package/.chunks/forms-CjJD60m3.es.js.map +1 -0
- package/.chunks/formsExt-B9hGGznb.es.amd.js +2 -0
- package/.chunks/formsExt-B9hGGznb.es.amd.js.map +1 -0
- package/.chunks/{formsExt-DtFeVRvE.es.js → formsExt-B9hGGznb.es.js} +110 -111
- package/.chunks/{formsExt-DtFeVRvE.es.js.map → formsExt-B9hGGznb.es.js.map} +1 -1
- package/.chunks/lazy-DQU-hLos.es.js.map +1 -1
- package/.chunks/mocker-h3ROH-VB.es.js.map +1 -1
- package/.chunks/{notice-40E7zRe5.es.amd.js → notice-BSVUBQ4B.es.amd.js} +2 -2
- package/.chunks/{notice-40E7zRe5.es.amd.js.map → notice-BSVUBQ4B.es.amd.js.map} +1 -1
- package/.chunks/{notice-40E7zRe5.es.js → notice-BSVUBQ4B.es.js} +2 -2
- package/.chunks/{notice-40E7zRe5.es.js.map → notice-BSVUBQ4B.es.js.map} +1 -1
- package/.chunks/popup-BoCCkzOM.es.amd.js +2 -0
- package/.chunks/popup-BoCCkzOM.es.amd.js.map +1 -0
- package/.chunks/{popup-l46cef9d.es.js → popup-BoCCkzOM.es.js} +26 -25
- package/.chunks/{popup-l46cef9d.es.js.map → popup-BoCCkzOM.es.js.map} +1 -1
- package/.chunks/{popup-DA17NrM5.es.amd.js → popup-q1PRZblX.es.amd.js} +2 -2
- package/.chunks/{popup-DA17NrM5.es.amd.js.map → popup-q1PRZblX.es.amd.js.map} +1 -1
- package/.chunks/{popup-DA17NrM5.es.js → popup-q1PRZblX.es.js} +3 -3
- package/.chunks/{popup-DA17NrM5.es.js.map → popup-q1PRZblX.es.js.map} +1 -1
- package/.chunks/utils-DzPB2u_5.es.amd.js +2 -0
- package/.chunks/utils-DzPB2u_5.es.amd.js.map +1 -0
- package/.chunks/{utils-C0Y5ido8.es.js → utils-DzPB2u_5.es.js} +5 -5
- package/.chunks/utils-DzPB2u_5.es.js.map +1 -0
- package/.chunks/utils-Xb6J5WcU.es.amd.js +2 -0
- package/.chunks/utils-Xb6J5WcU.es.amd.js.map +1 -0
- package/.chunks/{utils-hK-QjvqM.es.js → utils-Xb6J5WcU.es.js} +3 -3
- package/.chunks/{utils-hK-QjvqM.es.js.map → utils-Xb6J5WcU.es.js.map} +1 -1
- package/.chunks/worker-F-Y1IEi2.es.amd.js +2 -0
- package/.chunks/worker-F-Y1IEi2.es.amd.js.map +1 -0
- package/.chunks/{worker-D-5BEVm7.es.js → worker-F-Y1IEi2.es.js} +4 -3
- package/.chunks/{worker-D-5BEVm7.es.js.map → worker-F-Y1IEi2.es.js.map} +1 -1
- package/api/additional.amd.js +1 -1
- package/api/additional.amd.js.map +1 -1
- package/api/additional.js +1 -1
- package/api/index.amd.js +1 -1
- package/api/index.amd.js.map +1 -1
- package/api/index.js +2 -3
- package/assets/themes/dark-th.css +1 -1
- package/assets/themes/dark.css +1 -1
- package/assets/themes/light.css +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/charts/charts.js.map +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/extra/extra.amd.js +1 -1
- package/extra/extra.amd.js.map +1 -1
- package/extra/extra.js +2 -0
- package/extra/extra.js.map +1 -1
- 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 +245 -246
- 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/schedule/schedule.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +2 -2
- package/tabsView/tabsView.js.map +1 -1
- 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/dom.amd.js.map +1 -1
- package/utils/dom.js.map +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/scroll.js.map +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js +1 -1
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.js.map +1 -1
- package/.chunks/api-lAoAK33f.es.amd.js +0 -2
- package/.chunks/api-lAoAK33f.es.amd.js.map +0 -1
- package/.chunks/api-lAoAK33f.es.js.map +0 -1
- package/.chunks/app-CY6euLQJ.es.amd.js +0 -2
- package/.chunks/app-CY6euLQJ.es.amd.js.map +0 -1
- package/.chunks/field-DEusYVqS.es.amd.js +0 -2
- package/.chunks/field-DEusYVqS.es.amd.js.map +0 -1
- package/.chunks/field-DEusYVqS.es.js +0 -16
- package/.chunks/field-DEusYVqS.es.js.map +0 -1
- package/.chunks/forms-Ch1q0UUt.es.amd.js +0 -2
- package/.chunks/forms-Ch1q0UUt.es.amd.js.map +0 -1
- package/.chunks/forms-Ch1q0UUt.es.js.map +0 -1
- package/.chunks/formsExt-DtFeVRvE.es.amd.js +0 -2
- package/.chunks/formsExt-DtFeVRvE.es.amd.js.map +0 -1
- package/.chunks/popup-l46cef9d.es.amd.js +0 -2
- package/.chunks/popup-l46cef9d.es.amd.js.map +0 -1
- package/.chunks/utils-C0Y5ido8.es.amd.js +0 -2
- package/.chunks/utils-C0Y5ido8.es.amd.js.map +0 -1
- package/.chunks/utils-C0Y5ido8.es.js.map +0 -1
- package/.chunks/utils-hK-QjvqM.es.amd.js +0 -2
- package/.chunks/utils-hK-QjvqM.es.amd.js.map +0 -1
- package/.chunks/worker-D-5BEVm7.es.amd.js +0 -2
- package/.chunks/worker-D-5BEVm7.es.amd.js.map +0 -1
package/project/project.js
CHANGED
|
@@ -5,19 +5,18 @@
|
|
|
5
5
|
_autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
|
|
6
6
|
/* end import css */
|
|
7
7
|
|
|
8
|
-
import "../.chunks/api-
|
|
9
|
-
import { E as
|
|
10
|
-
import { n as a, t as o } from "../.chunks/field-DEusYVqS.es.js";
|
|
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-CjJD60m3.es.js";
|
|
11
10
|
import { storage as s } from "../utils/dom.js";
|
|
12
|
-
import { t as c } from "../.chunks/worker-
|
|
13
|
-
import "../.chunks/app-
|
|
14
|
-
import { t as l } from "../.chunks/utils-
|
|
11
|
+
import { t as c } from "../.chunks/worker-F-Y1IEi2.es.js";
|
|
12
|
+
import "../.chunks/app-BbV6AslA.es.js";
|
|
13
|
+
import { t as l } from "../.chunks/utils-Xb6J5WcU.es.js";
|
|
15
14
|
import { validUrl as u } from "../utils/check.js";
|
|
16
15
|
import { ellipsis as d } from "../utils/string.js";
|
|
17
16
|
import { getDeviceGIcon as f, getLangLabel as p, getSearcherGIcon as m } from "../utils/searchers.js";
|
|
18
17
|
import { invertKeyboardLayout as h } from "../utils/keyboard.js";
|
|
19
|
-
import { c as g, n as _, o as v, r as ee, s as y } from "../.chunks/popup-
|
|
20
|
-
import { c as b, d as x, f as te, p as ne } from "../.chunks/formsExt-
|
|
18
|
+
import { c as g, n as _, o as v, r as ee, s as y } from "../.chunks/popup-q1PRZblX.es.js";
|
|
19
|
+
import { c as b, d as x, f as te, p as ne } from "../.chunks/formsExt-B9hGGznb.es.js";
|
|
21
20
|
import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as re, createTextVNode as O, createVNode as k, defineComponent as A, isRef as ie, mergeModels as j, mergeProps as ae, nextTick as oe, normalizeClass as M, onMounted as se, openBlock as N, reactive as ce, ref as P, renderList as F, renderSlot as le, resolveComponent as ue, resolveDirective as de, resolveDynamicComponent as fe, shallowRef as pe, toDisplayString as I, toValue as me, unref as L, useId as he, useModel as R, watch as z, withCtx as B, withDirectives as ge, withKeys as _e, withModifiers as V } from "vue";
|
|
22
21
|
//#region src/components/project/competitorSelector/competitorSelector.vue?vue&type=script&setup=true&lang.ts
|
|
23
22
|
var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, be = /* @__PURE__ */ A({
|
|
@@ -35,30 +34,30 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
35
34
|
modelModifiers: {}
|
|
36
35
|
}),
|
|
37
36
|
emits: ["update:modelValue"],
|
|
38
|
-
setup(
|
|
39
|
-
let
|
|
40
|
-
if (
|
|
41
|
-
icon:
|
|
42
|
-
title:
|
|
37
|
+
setup(e) {
|
|
38
|
+
let t = e, i = R(e, "modelValue"), o = C(() => {
|
|
39
|
+
if (t.showSelectAllItem) return {
|
|
40
|
+
icon: t.selectAllItemIcon,
|
|
41
|
+
title: n().Common.Select_all,
|
|
43
42
|
value: "all",
|
|
44
43
|
content: ""
|
|
45
44
|
};
|
|
46
45
|
});
|
|
47
|
-
return (
|
|
48
|
-
opener: B(() => [k(
|
|
46
|
+
return (t, n) => (N(), E("div", ve, [L(r).state.isMobile ? (N(), w(y, { key: 0 }, {
|
|
47
|
+
opener: B(() => [k(a, {
|
|
49
48
|
class: "top-competitorSelector_opener",
|
|
50
49
|
color: "theme",
|
|
51
50
|
icon: "",
|
|
52
51
|
icon2: ""
|
|
53
52
|
}, {
|
|
54
|
-
default: B(() => [O(I(
|
|
53
|
+
default: B(() => [O(I(e.items.find((e) => e.value === i.value?.[0])?.content), 1)]),
|
|
55
54
|
_: 1
|
|
56
55
|
})]),
|
|
57
|
-
contentList: B(() => [(N(!0), E(S, null, F(
|
|
58
|
-
class: M({ "top-active":
|
|
56
|
+
contentList: B(() => [(N(!0), E(S, null, F(e.items, (e) => (N(), w(v, {
|
|
57
|
+
class: M({ "top-active": i.value?.includes(e.value) }),
|
|
59
58
|
"data-top-icon": e.icon,
|
|
60
59
|
title: e.title,
|
|
61
|
-
onClick: () =>
|
|
60
|
+
onClick: () => i.value = [e.value]
|
|
62
61
|
}, {
|
|
63
62
|
default: B(() => [D("span", ye, I(e.content), 1)]),
|
|
64
63
|
_: 2
|
|
@@ -71,9 +70,9 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
71
70
|
_: 1
|
|
72
71
|
})) : (N(), w(ne, {
|
|
73
72
|
key: 1,
|
|
74
|
-
modelValue:
|
|
75
|
-
"onUpdate:modelValue":
|
|
76
|
-
items:
|
|
73
|
+
modelValue: i.value,
|
|
74
|
+
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
75
|
+
items: e.items,
|
|
77
76
|
isMultiple: !0,
|
|
78
77
|
styling: "bar",
|
|
79
78
|
canBeEmptyMultiple: !1,
|
|
@@ -126,7 +125,7 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
126
125
|
index: -1,
|
|
127
126
|
lang: "ru",
|
|
128
127
|
name: "Without region"
|
|
129
|
-
}, De = () => (H.name =
|
|
128
|
+
}, De = () => (H.name = n().Common.Autoselect, H), Oe = () => (De(), Te.name = n().Common.Autoselect, console.log(Te), Te), ke = () => (Ee.name = n().Keywords.Without_region, Ee), Ae = [
|
|
130
129
|
4,
|
|
131
130
|
8,
|
|
132
131
|
9
|
|
@@ -137,26 +136,26 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
137
136
|
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;
|
|
138
137
|
}), i)) return !1;
|
|
139
138
|
}), i;
|
|
140
|
-
}, Me = l(() => import("../.chunks/dialog_regionSelectorRegions-
|
|
139
|
+
}, Me = l(() => import("../.chunks/dialog_regionSelectorRegions-CRUwGUuz.es.js")), Ne = (e = "", t = !1, n = []) => {
|
|
141
140
|
let r;
|
|
142
141
|
return r = e === "volume" || e === "cost_forecast" ? Pe(n) : e === "project_relevant_url" ? Fe(n) : Ie(n, !0), t && r.set(-2, Oe()), r.size || r.set(-2, we), r;
|
|
143
142
|
}, Pe = (e) => {
|
|
144
|
-
e = e.filter((e) =>
|
|
145
|
-
let
|
|
146
|
-
return
|
|
147
|
-
if (
|
|
148
|
-
let
|
|
143
|
+
e = e.filter((e) => r.state.forceSearchersKeysForKeywordsStats.includes(e.key));
|
|
144
|
+
let t = Ie(e, !1);
|
|
145
|
+
return r.state.forceSearchersKeysForKeywordsStats.forEach((e) => {
|
|
146
|
+
if (t.has(e)) return;
|
|
147
|
+
let n = {
|
|
149
148
|
key: e,
|
|
150
149
|
name: Se[e],
|
|
151
150
|
regions: [],
|
|
152
151
|
regionByIndex: /* @__PURE__ */ new Map()
|
|
153
152
|
};
|
|
154
|
-
|
|
155
|
-
}),
|
|
153
|
+
t.set(n.key, n);
|
|
154
|
+
}), r.state.showGlobalRegionForKeywordsStats && t.forEach((e) => {
|
|
156
155
|
if (!e.regionByIndex) return;
|
|
157
156
|
let t = { ...ke() };
|
|
158
157
|
e.regionByIndex.set(t.index, t);
|
|
159
|
-
}),
|
|
158
|
+
}), t;
|
|
160
159
|
}, Fe = (e) => (e = e.filter((e) => !Ae.includes(e.key)), Ie(e, !1)), Ie = (e, t) => {
|
|
161
160
|
let n = /* @__PURE__ */ new Map();
|
|
162
161
|
return e.forEach((e) => {
|
|
@@ -168,77 +167,77 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
168
167
|
r.regionByIndex.set(n.index, n);
|
|
169
168
|
}), r.regionByIndex.size, (!e.regions || r.regionByIndex.size) && n.set(r.key, r);
|
|
170
169
|
}), n;
|
|
171
|
-
}, Le = (
|
|
172
|
-
let r =
|
|
170
|
+
}, Le = (e, t) => {
|
|
171
|
+
let r = n();
|
|
173
172
|
return {
|
|
174
|
-
searcherKey: P(
|
|
173
|
+
searcherKey: P(t.value.keys().next().value ?? -2),
|
|
175
174
|
optionBySearcherKey: C(() => {
|
|
176
|
-
let
|
|
177
|
-
if (
|
|
175
|
+
let n = /* @__PURE__ */ new Map();
|
|
176
|
+
if (t.value.forEach((t) => {
|
|
178
177
|
let r = {
|
|
179
|
-
value:
|
|
180
|
-
title:
|
|
178
|
+
value: t.key,
|
|
179
|
+
title: t.name
|
|
181
180
|
};
|
|
182
|
-
|
|
183
|
-
}),
|
|
184
|
-
let
|
|
181
|
+
e.addSearcherIcon && (r.icon = m(t.key)), n.set(t.key, r);
|
|
182
|
+
}), e.addCompare && !n.has(-2)) {
|
|
183
|
+
let e = {
|
|
185
184
|
value: "",
|
|
186
185
|
title: "--------------------",
|
|
187
186
|
disabled: !0
|
|
188
187
|
};
|
|
189
|
-
|
|
190
|
-
let
|
|
188
|
+
n.set(e.value, e);
|
|
189
|
+
let t = {
|
|
191
190
|
value: -1,
|
|
192
191
|
title: r.Common.Compare
|
|
193
192
|
};
|
|
194
|
-
|
|
193
|
+
n.set(t.value, t);
|
|
195
194
|
}
|
|
196
|
-
return
|
|
195
|
+
return n;
|
|
197
196
|
})
|
|
198
197
|
};
|
|
199
|
-
}, Re = (
|
|
200
|
-
let r =
|
|
201
|
-
|
|
198
|
+
}, Re = (e, t) => {
|
|
199
|
+
let r = n(), i = C(() => e.forMode === "volume" || e.forMode === "cost_forecast"), a = P(-2);
|
|
200
|
+
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);
|
|
202
201
|
let o = C(() => {
|
|
203
202
|
let e = /* @__PURE__ */ new Map();
|
|
204
|
-
return
|
|
205
|
-
let a =
|
|
203
|
+
return t.value.regionByIndex?.forEach((n) => {
|
|
204
|
+
let a = n.name;
|
|
206
205
|
if (i.value) {
|
|
207
|
-
let
|
|
208
|
-
value:
|
|
206
|
+
let t = {
|
|
207
|
+
value: n.key,
|
|
209
208
|
title: a
|
|
210
209
|
};
|
|
211
|
-
e.has(
|
|
210
|
+
e.has(n.key) || e.set(n.key, t);
|
|
212
211
|
return;
|
|
213
212
|
}
|
|
214
|
-
|
|
215
|
-
let o = p(
|
|
213
|
+
n.device && (a += " (" + r.Common["Device_" + n.device] + ")");
|
|
214
|
+
let o = p(t.value.key || 0, n.lang ?? "");
|
|
216
215
|
o && (a += " / " + o);
|
|
217
216
|
let s = {
|
|
218
|
-
value:
|
|
217
|
+
value: n.index,
|
|
219
218
|
title: a,
|
|
220
|
-
icon:
|
|
219
|
+
icon: n.device ? f(n.device) : void 0
|
|
221
220
|
};
|
|
222
|
-
e.set(
|
|
221
|
+
e.set(n.index, s);
|
|
223
222
|
}), e;
|
|
224
223
|
});
|
|
225
|
-
return z(o, (
|
|
226
|
-
if (
|
|
227
|
-
let i =
|
|
224
|
+
return z(o, (t, n) => {
|
|
225
|
+
if (e.onlySearcher || a.value !== void 0 && t.get(a.value)) return;
|
|
226
|
+
let i = t.keys().next().value;
|
|
228
227
|
if (a.value === -2 || i === -2) {
|
|
229
228
|
a.value = i;
|
|
230
229
|
return;
|
|
231
230
|
}
|
|
232
231
|
let o = n?.get(a.value)?.title || "", s = -1;
|
|
233
|
-
for (let [
|
|
234
|
-
let
|
|
235
|
-
if (typeof
|
|
236
|
-
if (
|
|
237
|
-
i =
|
|
232
|
+
for (let [e, n] of t.entries()) {
|
|
233
|
+
let t = n.title;
|
|
234
|
+
if (typeof t != "string" || typeof e == "string") break;
|
|
235
|
+
if (t === o) {
|
|
236
|
+
i = e;
|
|
238
237
|
break;
|
|
239
238
|
}
|
|
240
239
|
let a = RegExp(` \\((${r.Common.Device_1}|${r.Common.Device_2})\\)`), c = o, l = 3;
|
|
241
|
-
|
|
240
|
+
t.indexOf(c) === -1 && (c = o.replace(/^[^a-zа-я]/i, "").replace(a, ""), l--), t.indexOf(c) === -1 && (c = o.replace(/ \/.*/, ""), l--), t.indexOf(c) === -1 && (c = o.replace(/ \/.*/, ""), c = c.replace(/^[^a-zа-я]/i, "").replace(a, ""), l--), t.indexOf(c) !== -1 && (l <= s || (s = l, i = e));
|
|
242
241
|
}
|
|
243
242
|
a.value = i;
|
|
244
243
|
}), {
|
|
@@ -348,7 +347,7 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
348
347
|
}),
|
|
349
348
|
emits: ["update:modelValue", "update:modelValueSingle"],
|
|
350
349
|
setup(e, { expose: t }) {
|
|
351
|
-
let n = e,
|
|
350
|
+
let n = e, r = C(() => n.forMode === "volume" || n.forMode === "cost_forecast"), i = R(e, "modelValue"), s = R(e, "modelValueSingle"), { selectSearcher: c, selectRegion: l, compare: u, searcherByKey: d, allRegionsIndexes: f, getSearcher: p, getRegion: m } = Be(n), h = () => {
|
|
352
351
|
let e = [];
|
|
353
352
|
d.value.forEach((t) => {
|
|
354
353
|
(n.forMode === "project_relevant_url" || t.enabled) && t.regions.forEach((t) => {
|
|
@@ -366,61 +365,61 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
366
365
|
u.regionsIndexes
|
|
367
366
|
], () => {
|
|
368
367
|
if (c.searcherKey.value === -1 && u.regionsIndexes.value.length) {
|
|
369
|
-
if (JSON.stringify(
|
|
370
|
-
|
|
371
|
-
} else n.onlySearcher ? (
|
|
368
|
+
if (JSON.stringify(i.value) === JSON.stringify(u.regionsIndexes.value)) return;
|
|
369
|
+
i.value = [...u.regionsIndexes.value];
|
|
370
|
+
} 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));
|
|
372
371
|
!n.onlySearcher && !f.value.size && (c.searcherKey.value = -2);
|
|
373
372
|
}), s.value && z(s, () => {
|
|
374
|
-
s.value && (
|
|
375
|
-
}, { immediate: !0 }), z(
|
|
376
|
-
if (
|
|
377
|
-
if (!
|
|
373
|
+
s.value && (i.value = [s.value]);
|
|
374
|
+
}, { immediate: !0 }), z(i, () => {
|
|
375
|
+
if (i.value[0] && (s.value = i.value[0]), n.onlySearcher) {
|
|
376
|
+
if (!i.value.length || i.value.length === 1 && !d.value.has(i.value[0]) || i.value.length === 1 && i.value[0] === -2 && !n.autoRegion) {
|
|
378
377
|
let e = d.value.keys().next().value;
|
|
379
|
-
e === -2 && !n.autoRegion && (e = void 0, s.value = -2), e === void 0 ?
|
|
378
|
+
e === -2 && !n.autoRegion && (e = void 0, s.value = -2), e === void 0 ? i.value.length = 0 : i.value = [e];
|
|
380
379
|
return;
|
|
381
380
|
}
|
|
382
|
-
if (
|
|
383
|
-
|
|
381
|
+
if (i.value.length > 1 && JSON.stringify(i.value) !== JSON.stringify(u.regionsIndexes.value)) {
|
|
382
|
+
i.value = [...u.regionsIndexes.value];
|
|
384
383
|
return;
|
|
385
384
|
}
|
|
386
385
|
} else {
|
|
387
|
-
let e = [...new Set(
|
|
388
|
-
if (
|
|
386
|
+
let e = [...new Set(i.value)], t = d.value.values().next().value?.regionByIndex?.keys().next().value;
|
|
387
|
+
if (r.value && (t = d.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);
|
|
389
388
|
else if (e.length === 1) {
|
|
390
389
|
let n = f.value;
|
|
391
|
-
|
|
390
|
+
r.value && (n = /* @__PURE__ */ new Set(), d.value.forEach((e) => {
|
|
392
391
|
e.regionByIndex.forEach((e) => {
|
|
393
392
|
e.index !== -2 && n.add(e.key);
|
|
394
393
|
});
|
|
395
394
|
})), n.has(e[0]) || (e = [], t !== void 0 && e.push(t));
|
|
396
395
|
} else e = e.filter((e) => f.value.has(e)), !e.length && t !== void 0 && e.push(t);
|
|
397
|
-
if (JSON.stringify(
|
|
398
|
-
|
|
396
|
+
if (JSON.stringify(i.value) !== JSON.stringify(e)) {
|
|
397
|
+
i.value = e;
|
|
399
398
|
return;
|
|
400
399
|
}
|
|
401
400
|
}
|
|
402
|
-
if (
|
|
401
|
+
if (i.value.length !== 1 || i.value[0] !== (n.onlySearcher ? c.searcherKey.value : l.regionIndex.value)) {
|
|
403
402
|
if (n.onlySearcher) {
|
|
404
|
-
if (
|
|
405
|
-
c.searcherKey.value =
|
|
403
|
+
if (i.value.length === 1) {
|
|
404
|
+
c.searcherKey.value = i.value[0];
|
|
406
405
|
return;
|
|
407
406
|
}
|
|
408
407
|
c.searcherKey.value = -1;
|
|
409
408
|
return;
|
|
410
409
|
}
|
|
411
|
-
if (!
|
|
412
|
-
if (
|
|
413
|
-
l.regionIndex.value =
|
|
410
|
+
if (!i.value.length) return;
|
|
411
|
+
if (i.value.length === 1 && c.searcherKey.value !== -1) {
|
|
412
|
+
l.regionIndex.value = i.value[0];
|
|
414
413
|
let e;
|
|
415
414
|
for (let t of d.value.values()) {
|
|
416
|
-
for (let n of t.regionByIndex.values()) if ((
|
|
415
|
+
for (let n of t.regionByIndex.values()) if ((r.value ? n.key : n.index) === l.regionIndex.value) {
|
|
417
416
|
e = t.key;
|
|
418
417
|
break;
|
|
419
418
|
}
|
|
420
419
|
if (e !== void 0) break;
|
|
421
420
|
}
|
|
422
421
|
e !== void 0 && (c.searcherKey.value = e);
|
|
423
|
-
} else c.searcherKey.value = -1, u.regionsIndexes.value = [...
|
|
422
|
+
} else c.searcherKey.value = -1, u.regionsIndexes.value = [...i.value];
|
|
424
423
|
}
|
|
425
424
|
}, { immediate: !0 }), t({
|
|
426
425
|
getSearcher: p,
|
|
@@ -429,7 +428,7 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
429
428
|
"top-regionSelector": !0,
|
|
430
429
|
"top-regionSelector-onlySearcher": e.onlySearcher
|
|
431
430
|
}) }, [
|
|
432
|
-
k(
|
|
431
|
+
k(o, {
|
|
433
432
|
options: L(c).optionBySearcherKey.value,
|
|
434
433
|
modelValue: L(c).searcherKey.value,
|
|
435
434
|
"onUpdate:modelValue": n[0] ||= (e) => L(c).searcherKey.value = e,
|
|
@@ -440,13 +439,13 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
440
439
|
"modelValue",
|
|
441
440
|
"addChanger"
|
|
442
441
|
]),
|
|
443
|
-
!e.onlySearcher && L(c).searcherKey.value !== L(-1) ? (N(), w(
|
|
442
|
+
!e.onlySearcher && L(c).searcherKey.value !== L(-1) ? (N(), w(o, {
|
|
444
443
|
key: 0,
|
|
445
444
|
class: "top-select-region",
|
|
446
445
|
options: L(l).optionByRegionIndex.value,
|
|
447
446
|
modelValue: L(l).regionIndex.value,
|
|
448
447
|
"onUpdate:modelValue": n[1] ||= (e) => L(l).regionIndex.value = e,
|
|
449
|
-
name:
|
|
448
|
+
name: r.value ? "region_key" : "region_index",
|
|
450
449
|
addChanger: e.addChanger,
|
|
451
450
|
"data-top-icon": e.addRegionIcon ? "" : void 0
|
|
452
451
|
}, null, 8, [
|
|
@@ -456,7 +455,7 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
456
455
|
"addChanger",
|
|
457
456
|
"data-top-icon"
|
|
458
457
|
])) : T("", !0),
|
|
459
|
-
e.addCompare && !e.onlySearcher && L(c).searcherKey.value === L(-1) ? (N(), w(
|
|
458
|
+
e.addCompare && !e.onlySearcher && L(c).searcherKey.value === L(-1) ? (N(), w(a, {
|
|
460
459
|
key: 1,
|
|
461
460
|
name: "compare",
|
|
462
461
|
onClick: h,
|
|
@@ -472,8 +471,8 @@ var ve = { class: "top-competitorSelector" }, ye = { class: "top-ellipsis1" }, b
|
|
|
472
471
|
name: "/",
|
|
473
472
|
path: "/"
|
|
474
473
|
};
|
|
475
|
-
function He(
|
|
476
|
-
return
|
|
474
|
+
function He(e) {
|
|
475
|
+
return e ? n()?.Common.All_folders : "/ (" + n()?.Keywords.Root_folder + ")";
|
|
477
476
|
}
|
|
478
477
|
var Ue = (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) => {
|
|
479
478
|
a = { ...a }, r.childsIds.push(a.id), a.id === 0 && (a.name = He(t));
|
|
@@ -583,7 +582,7 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
583
582
|
name: "All groups",
|
|
584
583
|
folder_id: U.id,
|
|
585
584
|
folder_path: U.path
|
|
586
|
-
}, K = () => (G.name =
|
|
585
|
+
}, K = () => (G.name = n()?.Common.All_groups, G), Je = () => (G.name = n()?.Keywords.Choose_group, G), Ye = (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), Xe = (e, t) => e.gen(`/get/${t}/groups/`, [
|
|
587
586
|
"id",
|
|
588
587
|
"name",
|
|
589
588
|
"folder_id",
|
|
@@ -632,54 +631,54 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
632
631
|
"editGroup",
|
|
633
632
|
"delGroup"
|
|
634
633
|
], ["update:groupId", "update:group"]),
|
|
635
|
-
setup(e, { expose:
|
|
636
|
-
let
|
|
637
|
-
if (
|
|
638
|
-
}), m =
|
|
634
|
+
setup(e, { expose: n, emit: r }) {
|
|
635
|
+
let i = e, a = r, o = R(e, "groupId"), s = R(e, "group"), c = i.client && !i.groups ? Xe(i.client, i.service) : void 0, l = i.client ? Ze(i.client, i.service) : void 0, u = i.client ? Qe(i.client, i.service) : void 0, d = i.client ? $e(i.client, i.service) : void 0, f = P(null), p = C(() => {
|
|
636
|
+
if (i.groups !== void 0) return Ye(i.groups, i.on, i.folder);
|
|
637
|
+
}), m = t("folder_id", "EQUALS", [i.folder?.id ?? 0]);
|
|
639
638
|
c?.changeParams({
|
|
640
|
-
project_id:
|
|
639
|
+
project_id: i.projectId,
|
|
641
640
|
folder_id_depth: !0,
|
|
642
641
|
filters: [m]
|
|
643
|
-
}),
|
|
642
|
+
}), i.on !== void 0 && c?.params.filters?.push(t("on", "EQUALS", [Number(i.on)]));
|
|
644
643
|
let h = (e) => {
|
|
645
|
-
s.value = e,
|
|
644
|
+
s.value = e, o.value = e.id;
|
|
646
645
|
}, g = (e = !1) => {
|
|
647
646
|
f.value?.resetCache(e);
|
|
648
647
|
};
|
|
649
648
|
Ge({
|
|
650
|
-
projectId: () =>
|
|
651
|
-
folderId: () =>
|
|
652
|
-
canSelectAll: () =>
|
|
649
|
+
projectId: () => i.projectId,
|
|
650
|
+
folderId: () => i.folder?.id,
|
|
651
|
+
canSelectAll: () => i.canSelectAll
|
|
653
652
|
}, (e) => {
|
|
654
|
-
if (e.projectId && (c?.changeParams({ project_id:
|
|
653
|
+
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) {
|
|
655
654
|
let e;
|
|
656
|
-
|
|
655
|
+
i.autoselect === "first" && (e = p.value?.[0], i.canSelectAll && (e = ce(K()))), (i.autoselect === "placeholder" || !e) && (e = Je()), h(e);
|
|
657
656
|
}
|
|
658
657
|
}, { immediate: !0 }), Ge({
|
|
659
658
|
modelGroup: s,
|
|
660
|
-
modelGroupId:
|
|
659
|
+
modelGroupId: o
|
|
661
660
|
}, async (e) => {
|
|
662
|
-
if (
|
|
661
|
+
if (o.value !== s.value.id) {
|
|
663
662
|
if (e.modelGroup && !e.modelGroupId) {
|
|
664
|
-
|
|
663
|
+
o.value = s.value.id;
|
|
665
664
|
return;
|
|
666
665
|
}
|
|
667
|
-
if (!(
|
|
668
|
-
if (
|
|
669
|
-
let e = p.value?.find((e) => e.id ===
|
|
670
|
-
if (!e &&
|
|
666
|
+
if (!(i.canAdd && o.value === null)) {
|
|
667
|
+
if (i.groups) {
|
|
668
|
+
let e = p.value?.find((e) => e.id === o.value);
|
|
669
|
+
if (!e && i.canSelectAll && (e = K()), e) h(e);
|
|
671
670
|
else {
|
|
672
671
|
let e = p.value?.[0];
|
|
673
|
-
e && !
|
|
672
|
+
e && !o.value ? h(e) : h(W);
|
|
674
673
|
}
|
|
675
674
|
}
|
|
676
|
-
if (
|
|
677
|
-
let e = Xe(
|
|
678
|
-
project_id:
|
|
679
|
-
id:
|
|
675
|
+
if (i.client && !i.groups && (o.value || o.value === 0 && !i.canSelectAll)) {
|
|
676
|
+
let e = Xe(i.client, i.service).changeParams({
|
|
677
|
+
project_id: i.projectId,
|
|
678
|
+
id: o.value,
|
|
680
679
|
filters: [m]
|
|
681
680
|
});
|
|
682
|
-
e?.setOptions({ checkFingerprint: "TopGroupSelectorFindGroup:" +
|
|
681
|
+
e?.setOptions({ checkFingerprint: "TopGroupSelectorFindGroup:" + i.projectId });
|
|
683
682
|
let t = await e.call();
|
|
684
683
|
if (!t.errors?.length && !t.result) return;
|
|
685
684
|
!t.errors && t.result[0] ? h(t.result[0]) : h(W);
|
|
@@ -688,34 +687,34 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
688
687
|
}
|
|
689
688
|
}, { immediate: !0 });
|
|
690
689
|
let v = async (e) => {
|
|
691
|
-
if (
|
|
690
|
+
if (i.canAdd !== "api" || !l) return;
|
|
692
691
|
let t = s.value, n = await l.changeParams({
|
|
693
|
-
project_id:
|
|
692
|
+
project_id: i.projectId,
|
|
694
693
|
names: [e.name],
|
|
695
|
-
to_id:
|
|
694
|
+
to_id: i.folder?.id ?? U.id,
|
|
696
695
|
to_type: "in_folder_last"
|
|
697
696
|
}).call();
|
|
698
697
|
if (n.result) {
|
|
699
698
|
let e = n.result[0];
|
|
700
|
-
h(e),
|
|
699
|
+
h(e), a("addGroup", e);
|
|
701
700
|
} else h(t);
|
|
702
701
|
f.value?.resetCache(!0);
|
|
703
702
|
}, y = async (e, t) => {
|
|
704
703
|
d && ((await d.changeParams({
|
|
705
|
-
project_id:
|
|
704
|
+
project_id: i.projectId,
|
|
706
705
|
id: e.id,
|
|
707
706
|
name: t
|
|
708
|
-
}).call()).errors || (s.value.id === e.id && (s.value.name = t),
|
|
707
|
+
}).call()).errors || (s.value.id === e.id && (s.value.name = t), a("editGroup", {
|
|
709
708
|
id: e.id,
|
|
710
709
|
name: t
|
|
711
710
|
}), f.value?.updateCacheItemById(e.id, { name: t })));
|
|
712
711
|
}, te = async (e) => {
|
|
713
712
|
u && ((await u.changeParams({
|
|
714
|
-
project_id:
|
|
713
|
+
project_id: i.projectId,
|
|
715
714
|
id: e.id
|
|
716
|
-
}).call()).errors || (s.value.id === e.id && h(
|
|
715
|
+
}).call()).errors || (s.value.id === e.id && h(i.canSelectAll ? K() : W), a("delGroup", e.id), f.value?.deleteCacheItemById(e.id)));
|
|
717
716
|
};
|
|
718
|
-
return
|
|
717
|
+
return n({ resetCacheGroups: g }), (t, n) => (N(), w(b, {
|
|
719
718
|
ref_key: "refSelector",
|
|
720
719
|
ref: f,
|
|
721
720
|
class: "top-groupSelector_group",
|
|
@@ -943,17 +942,17 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
943
942
|
scheduledUpdate: !1,
|
|
944
943
|
manualUpdate: !1,
|
|
945
944
|
guestProjects: !1
|
|
946
|
-
}, ut = (
|
|
945
|
+
}, ut = (e, t) => {
|
|
947
946
|
let r = [], i = {
|
|
948
|
-
scheduledUpdate: ct(
|
|
949
|
-
manualUpdate: ct(
|
|
950
|
-
guestProjects: ct(
|
|
951
|
-
}, a =
|
|
947
|
+
scheduledUpdate: ct(n().Projects.Scheduled_update),
|
|
948
|
+
manualUpdate: ct(n().Projects.Manual_update),
|
|
949
|
+
guestProjects: ct(n().Projects.Guest_projects)
|
|
950
|
+
}, a = t ? {
|
|
952
951
|
scheduledUpdate: !1,
|
|
953
952
|
manualUpdate: !1,
|
|
954
953
|
guestProjects: !1
|
|
955
954
|
} : lt;
|
|
956
|
-
for (let
|
|
955
|
+
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);
|
|
957
956
|
return r;
|
|
958
957
|
}, dt = (e) => ({
|
|
959
958
|
...e,
|
|
@@ -983,13 +982,13 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
983
982
|
}, gt = () => window.page?.subdomain ? window.location.host.replace(window.page?.subdomain + ".", "") : window.location.host, _t = (e) => {
|
|
984
983
|
let t = e.startsWith("http") ? e : "https://" + e;
|
|
985
984
|
return t = t.replace(/"/g, "%22"), t;
|
|
986
|
-
}, vt = (e,
|
|
987
|
-
let
|
|
988
|
-
|
|
989
|
-
let
|
|
990
|
-
|
|
991
|
-
}, yt = (
|
|
992
|
-
let
|
|
985
|
+
}, vt = (e, n) => {
|
|
986
|
+
let r = e.params.filters ?? [];
|
|
987
|
+
r = r.filter((e) => e.name !== "GEN_SEARCH_STRING()");
|
|
988
|
+
let i = h(n), a = n.replace(/([[^$.|?*+()])/g, "\\$1"), o = i.replace(/([[^$.|?*+()])/g, "\\$1");
|
|
989
|
+
n && r.push(t("GEN_SEARCH_STRING()", "REGEXP", [`(${a}|${o})`])), e.changeParams({ filters: r });
|
|
990
|
+
}, yt = (n) => {
|
|
991
|
+
let i = n.gen("/get/projects_2/projects/", [
|
|
993
992
|
"id",
|
|
994
993
|
"user_id",
|
|
995
994
|
"name",
|
|
@@ -997,25 +996,25 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
997
996
|
"on",
|
|
998
997
|
"right"
|
|
999
998
|
]);
|
|
1000
|
-
return
|
|
1001
|
-
filters: [
|
|
999
|
+
return i.changeParams({
|
|
1000
|
+
filters: [t("on", "GREATER_THAN_EQUALS", [0])],
|
|
1002
1001
|
orders: [
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1002
|
+
e("user_id", "DESC", [r.state.userId]),
|
|
1003
|
+
e("on", "ASC", [0]),
|
|
1004
|
+
e("favorite", "DESC"),
|
|
1005
|
+
e("ord", "ASC"),
|
|
1006
|
+
e("id", "DESC")
|
|
1008
1007
|
]
|
|
1009
|
-
}),
|
|
1008
|
+
}), i.options.loadingShowSpinner = !1, i.options.onApiLoaded = (e, t, n) => {
|
|
1010
1009
|
let r = t.data.filters.length > 1, i = t.data.offset === 0, a = t.data.offset === void 0 || i && !r, o = r;
|
|
1011
1010
|
e.result = ft(e.result, a, o), n?.(e, t);
|
|
1012
|
-
},
|
|
1011
|
+
}, i;
|
|
1013
1012
|
}, bt = (e) => e.gen("/add/projects_2/projects/"), xt = { class: "top-ellipsis1" }, St = /* @__PURE__ */ A({
|
|
1014
1013
|
__name: "submenu",
|
|
1015
1014
|
props: { id: {} },
|
|
1016
|
-
setup(
|
|
1017
|
-
let
|
|
1018
|
-
let
|
|
1015
|
+
setup(e) {
|
|
1016
|
+
let t = e, i = n(), a = gt(), o = (e) => {
|
|
1017
|
+
let t = [
|
|
1019
1018
|
{
|
|
1020
1019
|
href: `https://${a}/project/keywords/${e.id}/`,
|
|
1021
1020
|
title: i.Common.Menu_phrases,
|
|
@@ -1088,11 +1087,11 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1088
1087
|
icon: "",
|
|
1089
1088
|
right: "2"
|
|
1090
1089
|
}
|
|
1091
|
-
].filter((e) => !Object.entries(
|
|
1092
|
-
return e.right.includes("0") ?
|
|
1090
|
+
].filter((e) => !Object.entries(r.state.closedByMod).some(([t, n]) => n && e.href.includes(`/${t}/`)));
|
|
1091
|
+
return e.right.includes("0") ? t.filter((t) => e.right[t.right] === "1") : t;
|
|
1093
1092
|
};
|
|
1094
|
-
return (e,
|
|
1095
|
-
id:
|
|
1093
|
+
return (e, n) => (N(), w(L(y), {
|
|
1094
|
+
id: t.id,
|
|
1096
1095
|
class: "top-projectSelectorSubmenu",
|
|
1097
1096
|
notch: !1,
|
|
1098
1097
|
pos: "2"
|
|
@@ -1124,21 +1123,21 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1124
1123
|
}, 8, ["id"]));
|
|
1125
1124
|
}
|
|
1126
1125
|
}), q = "ui_project_selector_total", Ct = 864e5, J = P(null), Y = pe(), wt = (e) => {
|
|
1127
|
-
localStorage.setItem(q + ":" +
|
|
1126
|
+
localStorage.setItem(q + ":" + r.state.userId, JSON.stringify({
|
|
1128
1127
|
projectsTotal: e,
|
|
1129
1128
|
expiresAt: Date.now() + Ct
|
|
1130
1129
|
}));
|
|
1131
1130
|
}, Tt = () => {
|
|
1132
|
-
let e = localStorage.getItem(q + ":" +
|
|
1131
|
+
let e = localStorage.getItem(q + ":" + r.state.userId);
|
|
1133
1132
|
if (!e) return;
|
|
1134
|
-
let { projectsTotal:
|
|
1135
|
-
if (Date.now() >
|
|
1136
|
-
localStorage.removeItem(q + ":" +
|
|
1133
|
+
let { projectsTotal: t, expiresAt: n } = JSON.parse(e);
|
|
1134
|
+
if (Date.now() > n) {
|
|
1135
|
+
localStorage.removeItem(q + ":" + r.state.userId);
|
|
1137
1136
|
return;
|
|
1138
1137
|
}
|
|
1139
|
-
return
|
|
1138
|
+
return t;
|
|
1140
1139
|
}, Et = () => {
|
|
1141
|
-
J.value = null, Y.value = void 0, localStorage.removeItem(q + ":" +
|
|
1140
|
+
J.value = null, Y.value = void 0, localStorage.removeItem(q + ":" + r.state.userId), te("/get/projects_2/projects/");
|
|
1142
1141
|
}, Dt = { class: "top-projectSelector_itemText" }, Ot = { class: "top-comment" }, kt = {
|
|
1143
1142
|
key: 0,
|
|
1144
1143
|
class: "top-comment"
|
|
@@ -1164,23 +1163,23 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1164
1163
|
modelModifiers: {}
|
|
1165
1164
|
}),
|
|
1166
1165
|
emits: ["update:modelValue"],
|
|
1167
|
-
setup(
|
|
1168
|
-
let
|
|
1166
|
+
setup(e) {
|
|
1167
|
+
let t = n(), i = e, a = R(e, "modelValue"), o = yt(i.client), s = bt(i.client), c = P(Tt()), l = P(null), f = he(), p = C(() => i.placeholder ?? t.Projects.Select_project), m = C(() => !Y.value || !i.excludeProjectId ? Y.value : Y.value.filter((e) => e.id !== i.excludeProjectId)), h = C(() => {
|
|
1169
1168
|
if (c.value || c.value === 0) return c.value < jt ? "static" : "api";
|
|
1170
1169
|
}), _ = async () => {
|
|
1171
1170
|
J.value ||= o.call();
|
|
1172
1171
|
let e = await J.value;
|
|
1173
1172
|
return J.value = null, e;
|
|
1174
1173
|
}, v = async (e) => {
|
|
1175
|
-
let
|
|
1174
|
+
let t = await s.changeParams({
|
|
1176
1175
|
url: e.name,
|
|
1177
1176
|
name: e.name
|
|
1178
1177
|
}).call();
|
|
1179
|
-
if (!
|
|
1178
|
+
if (!t.errors) {
|
|
1180
1179
|
if (Y.value && h.value === "static") {
|
|
1181
|
-
let
|
|
1182
|
-
id:
|
|
1183
|
-
user_id:
|
|
1180
|
+
let n = dt({
|
|
1181
|
+
id: t.result,
|
|
1182
|
+
user_id: r.state.userId,
|
|
1184
1183
|
name: e.name,
|
|
1185
1184
|
url: e.name,
|
|
1186
1185
|
on: 0,
|
|
@@ -1188,7 +1187,7 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1188
1187
|
}), i = Y.value.findIndex((e) => e.on === 0);
|
|
1189
1188
|
Y.value = [
|
|
1190
1189
|
...Y.value.slice(0, i),
|
|
1191
|
-
|
|
1190
|
+
n,
|
|
1192
1191
|
...Y.value.slice(i)
|
|
1193
1192
|
], c.value && (c.value += 1, wt(c.value));
|
|
1194
1193
|
}
|
|
@@ -1211,7 +1210,7 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1211
1210
|
};
|
|
1212
1211
|
return se(async () => {
|
|
1213
1212
|
await y();
|
|
1214
|
-
}), (
|
|
1213
|
+
}), (t, n) => {
|
|
1215
1214
|
let r = ue("TopButton");
|
|
1216
1215
|
return N(), E(S, null, [(N(), w(b, {
|
|
1217
1216
|
key: h.value ?? "dummy",
|
|
@@ -1219,12 +1218,12 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1219
1218
|
ref: l,
|
|
1220
1219
|
class: "top-projectSelector",
|
|
1221
1220
|
modelValue: a.value,
|
|
1222
|
-
"onUpdate:modelValue":
|
|
1221
|
+
"onUpdate:modelValue": n[1] ||= (t) => e.menuMode ? L(mt)(t.id) : a.value = t,
|
|
1223
1222
|
items: m.value,
|
|
1224
1223
|
itemsChunkSize: 100,
|
|
1225
1224
|
itemsIsLoading: h.value === "static" && L(Y) === void 0,
|
|
1226
|
-
title:
|
|
1227
|
-
modificator:
|
|
1225
|
+
title: t.$i18n.Projects.Search_projects,
|
|
1226
|
+
modificator: e.modificator,
|
|
1228
1227
|
searchFields: [
|
|
1229
1228
|
"id",
|
|
1230
1229
|
"name",
|
|
@@ -1240,27 +1239,27 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1240
1239
|
appendSearchToResultCond: L(u),
|
|
1241
1240
|
appendWithoutSelect: "",
|
|
1242
1241
|
buttonProps: {
|
|
1243
|
-
...
|
|
1242
|
+
...e.buttonProps,
|
|
1244
1243
|
isProgress: !h.value,
|
|
1245
1244
|
disabled: !h.value
|
|
1246
1245
|
},
|
|
1247
|
-
openerShortcut:
|
|
1246
|
+
openerShortcut: e.openerShortcut,
|
|
1248
1247
|
onAppendItem: v,
|
|
1249
1248
|
onOpen: ee
|
|
1250
1249
|
}, {
|
|
1251
|
-
item: B(({ item: i }) => [D("div", Dt, [i.id ? (N(), E(S, { key: 0 }, [O(I(L(d)(i.name, 20)) + " ", 1), D("span", Ot, " id " + I(i.id), 1)], 64)) : (N(), E(S, { key: 1 }, [i.listItemProps?.type ? T("", !0) : (N(), E("div", kt, I(
|
|
1252
|
-
|
|
1250
|
+
item: B(({ item: i }) => [D("div", Dt, [i.id ? (N(), E(S, { key: 0 }, [O(I(L(d)(i.name, 20)) + " ", 1), D("span", Ot, " id " + I(i.id), 1)], 64)) : (N(), E(S, { key: 1 }, [i.listItemProps?.type ? T("", !0) : (N(), E("div", kt, I(t.$i18n.Projects.Add_project) + ": ", 1)), O(" " + I(i.name), 1)], 64))]), i.id ? (N(), E(S, { key: 0 }, [
|
|
1251
|
+
e.menuMode ? (N(), E("a", {
|
|
1253
1252
|
key: 0,
|
|
1254
1253
|
class: "top-projectSelector_itemLink",
|
|
1255
1254
|
href: L(ht)(i.id)
|
|
1256
1255
|
}, null, 8, At)) : T("", !0),
|
|
1257
|
-
|
|
1256
|
+
t.$core.state.isMobile ? T("", !0) : (N(), w(r, {
|
|
1258
1257
|
key: 1,
|
|
1259
1258
|
href: i.externalLink,
|
|
1260
1259
|
"data-top-icon": "",
|
|
1261
1260
|
color: "theme",
|
|
1262
1261
|
target: "_blank",
|
|
1263
|
-
onClick:
|
|
1262
|
+
onClick: n[0] ||= V(() => {}, ["stop"])
|
|
1264
1263
|
}, null, 8, ["href"])),
|
|
1265
1264
|
k(g, {
|
|
1266
1265
|
id: L(f),
|
|
@@ -1318,29 +1317,29 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1318
1317
|
}), Q(r, e, n), r;
|
|
1319
1318
|
}, Ft = (e, t) => {
|
|
1320
1319
|
s(e, "topTagSelectorRender")?.(t);
|
|
1321
|
-
}, Q = (
|
|
1322
|
-
let i = L(
|
|
1323
|
-
if (
|
|
1324
|
-
|
|
1320
|
+
}, Q = (e, t, r) => {
|
|
1321
|
+
let i = L(t.modelValue);
|
|
1322
|
+
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) {
|
|
1323
|
+
e.innerHTML = `<div>${r}</div>`;
|
|
1325
1324
|
return;
|
|
1326
1325
|
}
|
|
1327
|
-
if (
|
|
1328
|
-
let
|
|
1326
|
+
if (e.innerHTML = "", !i.length && t.mode === "filter") {
|
|
1327
|
+
let t = It({
|
|
1329
1328
|
id: "all",
|
|
1330
1329
|
colorId: "",
|
|
1331
|
-
name:
|
|
1330
|
+
name: n().Common?.All_tags ?? "",
|
|
1332
1331
|
state: ""
|
|
1333
1332
|
});
|
|
1334
|
-
|
|
1333
|
+
e.append(t);
|
|
1335
1334
|
}
|
|
1336
|
-
i.forEach((
|
|
1335
|
+
i.forEach((n) => {
|
|
1337
1336
|
let r = It({
|
|
1338
|
-
id: X(
|
|
1339
|
-
colorId: Z(
|
|
1340
|
-
name: Z(
|
|
1341
|
-
state: X(
|
|
1337
|
+
id: X(n),
|
|
1338
|
+
colorId: Z(n, t.tags)?.color_id ?? "",
|
|
1339
|
+
name: Z(n, t.tags)?.name ?? "",
|
|
1340
|
+
state: X(n) === n ? "selected" : "excluded"
|
|
1342
1341
|
});
|
|
1343
|
-
|
|
1342
|
+
e.append(r);
|
|
1344
1343
|
});
|
|
1345
1344
|
}, It = (e) => {
|
|
1346
1345
|
let t = document.createElement("div");
|
|
@@ -1520,17 +1519,17 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1520
1519
|
}),
|
|
1521
1520
|
emits: ["update:modelValue"],
|
|
1522
1521
|
setup(e, { attrs: t }) {
|
|
1523
|
-
let n = e,
|
|
1524
|
-
model:
|
|
1522
|
+
let n = e, r = R(e, "modelValue"), i = n.useTopButton ? a : "div", o = n.useTopButton ? "html" : "default", s = {
|
|
1523
|
+
model: r,
|
|
1525
1524
|
mode: n.mode,
|
|
1526
1525
|
targetId: n.targetId,
|
|
1527
1526
|
filters: n.filters,
|
|
1528
1527
|
payload: n.payload
|
|
1529
1528
|
};
|
|
1530
|
-
return (
|
|
1529
|
+
return (a, c) => {
|
|
1531
1530
|
let l = de("top-data");
|
|
1532
1531
|
return N(), w(g, { id: e.id }, {
|
|
1533
|
-
default: B(() => [ge((N(), w(fe(L(
|
|
1532
|
+
default: B(() => [ge((N(), w(fe(L(i)), ae({
|
|
1534
1533
|
class: {
|
|
1535
1534
|
"top-tagSelector": !0,
|
|
1536
1535
|
"top-tagSelector-useTopButton": n.useTopButton,
|
|
@@ -1539,19 +1538,19 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1539
1538
|
"top-tagSelector-filter": n.mode === "filter",
|
|
1540
1539
|
"top-tagSelector-setter_single": n.mode === "setter" && !e.filters,
|
|
1541
1540
|
"top-tagSelector-setter_several": n.mode === "setter" && e.filters,
|
|
1542
|
-
"top-tagSelector-selectedOne": !
|
|
1543
|
-
"top-tagSelector-toTwoLine":
|
|
1541
|
+
"top-tagSelector-selectedOne": !r.value.length || r.value.length === 1,
|
|
1542
|
+
"top-tagSelector-toTwoLine": r.value.length > 5
|
|
1544
1543
|
},
|
|
1545
1544
|
color: "theme",
|
|
1546
1545
|
styling: e.styling
|
|
1547
1546
|
}, t), {
|
|
1548
|
-
[L(o)]: B(() => [!
|
|
1547
|
+
[L(o)]: B(() => [!r.value.length && e.mode === "filter" ? (N(), w(zt, {
|
|
1549
1548
|
key: 0,
|
|
1550
1549
|
id: "all",
|
|
1551
1550
|
colorId: "",
|
|
1552
|
-
name:
|
|
1551
|
+
name: a.$i18n.Common.All_tags ?? "",
|
|
1553
1552
|
state: ""
|
|
1554
|
-
}, null, 8, ["name"])) : T("", !0), e.mode === "setter" && e.filters ? (N(), E("div", Ht, [le(
|
|
1553
|
+
}, null, 8, ["name"])) : T("", !0), e.mode === "setter" && e.filters ? (N(), E("div", Ht, [le(a.$slots, "default")])) : (N(!0), E(S, { key: 2 }, F(r.value, (t) => (N(), w(zt, {
|
|
1555
1554
|
id: L(X)(t),
|
|
1556
1555
|
colorId: L(Z)(t, e.tags)?.color_id ?? "",
|
|
1557
1556
|
name: L(Z)(t, e.tags)?.name ?? "",
|
|
@@ -1603,8 +1602,8 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1603
1602
|
"setter",
|
|
1604
1603
|
"tagsChanged"
|
|
1605
1604
|
], ["update:modelValue", "update:tags"]),
|
|
1606
|
-
setup(
|
|
1607
|
-
let c =
|
|
1605
|
+
setup(e, { emit: t }) {
|
|
1606
|
+
let c = n(), l = e, u = R(e, "modelValue"), d = R(e, "tags"), f = t, p = i((e, t) => {
|
|
1608
1607
|
f(e, t);
|
|
1609
1608
|
}, l.emitDelay);
|
|
1610
1609
|
l.singleMode && !u.value.length && (u.value = [d.value[0].id]);
|
|
@@ -1659,11 +1658,11 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1659
1658
|
}), f("tagsChanged", d.value);
|
|
1660
1659
|
}, D = (e) => {
|
|
1661
1660
|
if (_.value = s(e.elPopupOpener, "topTagSelectorTarget"), !_.value) throw Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
|
|
1662
|
-
if (_.value.filters && (h.value = "add", _.value.model.value = []), !
|
|
1661
|
+
if (_.value.filters && (h.value = "add", _.value.model.value = []), !r.$?.ui.sortable) {
|
|
1663
1662
|
console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
|
|
1664
1663
|
return;
|
|
1665
1664
|
}
|
|
1666
|
-
!
|
|
1665
|
+
!r.state.isMobile && !r.state.isMobileUA && d.value && $(e.elPopup).sortable({
|
|
1667
1666
|
items: "li:has([data-tag_id]:not([data-tag_id=\"all\"]))",
|
|
1668
1667
|
cancel: "[contenteditable=\"plaintext-only\"], [contenteditable=\"true\"]",
|
|
1669
1668
|
distance: 10,
|
|
@@ -1678,16 +1677,16 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1678
1677
|
}
|
|
1679
1678
|
});
|
|
1680
1679
|
}, A = (e) => {
|
|
1681
|
-
|
|
1680
|
+
r.$?.ui.sortable && $(e.elPopup).data("ui-sortable") && $(e.elPopup).sortable("destroy");
|
|
1682
1681
|
};
|
|
1683
|
-
return (
|
|
1682
|
+
return (t, n) => (N(), E(S, null, [k(Ut, {
|
|
1684
1683
|
modelValue: u.value,
|
|
1685
|
-
"onUpdate:modelValue":
|
|
1684
|
+
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
1686
1685
|
id: L(m),
|
|
1687
1686
|
tags: d.value,
|
|
1688
|
-
styling:
|
|
1687
|
+
styling: e.styling,
|
|
1689
1688
|
mode: "filter",
|
|
1690
|
-
useTopButton:
|
|
1689
|
+
useTopButton: e.useTopButton
|
|
1691
1690
|
}, null, 8, [
|
|
1692
1691
|
"modelValue",
|
|
1693
1692
|
"id",
|
|
@@ -1697,33 +1696,33 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1697
1696
|
]), k(y, {
|
|
1698
1697
|
id: L(m),
|
|
1699
1698
|
class: M(te.value),
|
|
1700
|
-
onOpen:
|
|
1701
|
-
onClose:
|
|
1699
|
+
onOpen: n[4] ||= (e) => D(e),
|
|
1700
|
+
onClose: n[5] ||= (e) => A(e),
|
|
1702
1701
|
"transition-duration": 50
|
|
1703
1702
|
}, re({
|
|
1704
1703
|
contentList: B(() => [
|
|
1705
|
-
_.value.mode === "filter" && !
|
|
1704
|
+
_.value.mode === "filter" && !e.singleMode ? (N(), w(Vt, {
|
|
1706
1705
|
key: 0,
|
|
1707
1706
|
id: "all",
|
|
1708
1707
|
colorId: "",
|
|
1709
|
-
name:
|
|
1708
|
+
name: t.$i18n.Common.All_tags ?? "",
|
|
1710
1709
|
state: _.value.model.value.length ? "" : "selected",
|
|
1711
|
-
onSelect:
|
|
1710
|
+
onSelect: n[3] ||= (e) => _.value.model.value = []
|
|
1712
1711
|
}, null, 8, ["name", "state"])) : T("", !0),
|
|
1713
|
-
(N(!0), E(S, null, F(d.value, (
|
|
1714
|
-
key:
|
|
1715
|
-
id:
|
|
1716
|
-
colorId:
|
|
1717
|
-
name:
|
|
1718
|
-
state: b(
|
|
1719
|
-
canExclude: _.value.mode === "filter" && !
|
|
1720
|
-
editable:
|
|
1721
|
-
disabled: ee.value && b(
|
|
1722
|
-
onUnselect: (
|
|
1723
|
-
onSelect: (
|
|
1724
|
-
onExclude: (
|
|
1725
|
-
"onUpdate:name": (
|
|
1726
|
-
|
|
1712
|
+
(N(!0), E(S, null, F(d.value, (t) => (N(), w(Vt, {
|
|
1713
|
+
key: t.id,
|
|
1714
|
+
id: t.id,
|
|
1715
|
+
colorId: t.color_id,
|
|
1716
|
+
name: t.name,
|
|
1717
|
+
state: b(t.id),
|
|
1718
|
+
canExclude: _.value.mode === "filter" && !e.singleMode,
|
|
1719
|
+
editable: e.tagsEditable,
|
|
1720
|
+
disabled: ee.value && b(t.id) === "",
|
|
1721
|
+
onUnselect: (e) => x(t.id, "unselect"),
|
|
1722
|
+
onSelect: (e) => x(t.id, "select"),
|
|
1723
|
+
onExclude: (e) => x(t.id, "exclude"),
|
|
1724
|
+
"onUpdate:name": (e) => {
|
|
1725
|
+
t.name = e, L(p)("tagsChanged", d.value);
|
|
1727
1726
|
}
|
|
1728
1727
|
}, null, 8, [
|
|
1729
1728
|
"id",
|
|
@@ -1738,36 +1737,36 @@ var Ke = ["innerHTML"], qe = /* @__PURE__ */ A({
|
|
|
1738
1737
|
"onExclude",
|
|
1739
1738
|
"onUpdate:name"
|
|
1740
1739
|
]))), 128)),
|
|
1741
|
-
|
|
1740
|
+
e.tagsEditable && d.value.length < e.tagsMax && d.value.length < 20 ? (N(), w(v, {
|
|
1742
1741
|
key: 1,
|
|
1743
1742
|
"data-top-icon": "",
|
|
1744
1743
|
onClick: V(ne, ["stop"])
|
|
1745
1744
|
}, {
|
|
1746
|
-
default: B(() => [O(I(
|
|
1745
|
+
default: B(() => [O(I(t.$i18n.Common.Add), 1)]),
|
|
1747
1746
|
_: 1
|
|
1748
1747
|
})) : T("", !0)
|
|
1749
1748
|
]),
|
|
1750
1749
|
_: 2
|
|
1751
1750
|
}, [_.value.mode === "setter" && _.value.filters ? {
|
|
1752
1751
|
name: "header",
|
|
1753
|
-
fn: B(() => [k(
|
|
1752
|
+
fn: B(() => [k(o, {
|
|
1754
1753
|
modelValue: h.value,
|
|
1755
|
-
"onUpdate:modelValue":
|
|
1754
|
+
"onUpdate:modelValue": n[1] ||= (e) => h.value = e,
|
|
1756
1755
|
options: g()
|
|
1757
1756
|
}, null, 8, ["modelValue", "options"])]),
|
|
1758
1757
|
key: "0"
|
|
1759
1758
|
} : void 0, _.value.mode === "setter" && _.value.filters ? {
|
|
1760
1759
|
name: "footer",
|
|
1761
|
-
fn: B(() => [k(
|
|
1762
|
-
default: B(() => [O(I(
|
|
1760
|
+
fn: B(() => [k(a, { color: "theme" }, {
|
|
1761
|
+
default: B(() => [O(I(t.$i18n.Common.Cancel), 1)]),
|
|
1763
1762
|
_: 1
|
|
1764
|
-
}), k(
|
|
1763
|
+
}), k(a, { onClick: n[2] ||= (e) => L(p)("setter", {
|
|
1765
1764
|
tagsIds: _.value.model.value,
|
|
1766
1765
|
filters: _.value.filters,
|
|
1767
1766
|
filtersAction: h.value,
|
|
1768
1767
|
payload: _.value.payload
|
|
1769
1768
|
}) }, {
|
|
1770
|
-
default: B(() => [O(I(h.value === "add" ?
|
|
1769
|
+
default: B(() => [O(I(h.value === "add" ? t.$i18n.Common.Add : "") + " " + I(h.value === "replace" ? t.$i18n.Common.Replace : "") + " " + I(h.value === "delete" ? t.$i18n.Common.Delete : ""), 1)]),
|
|
1771
1770
|
_: 1
|
|
1772
1771
|
})]),
|
|
1773
1772
|
key: "1"
|