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