@topvisor/ui 1.0.34 → 1.0.36
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/{core-CUNwUlL6.es.js → core-CO5q-OhH.es.js} +13 -12
- package/.chunks/core-CO5q-OhH.es.js.map +1 -0
- package/.chunks/core-D-ONEIDC.amd.js +2 -0
- package/.chunks/{core-CUNwUlL6.es.js.map → core-D-ONEIDC.amd.js.map} +1 -1
- package/.chunks/{datepicker-C0a_eKze.amd.js → datepicker-BKWD8N4r.amd.js} +2 -2
- package/.chunks/{datepicker-C0a_eKze.amd.js.map → datepicker-BKWD8N4r.amd.js.map} +1 -1
- package/.chunks/{datepicker-CW2Ql1NG.es.js → datepicker-BfPUBUE1.es.js} +2 -2
- package/.chunks/{datepicker-CW2Ql1NG.es.js.map → datepicker-BfPUBUE1.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-Bkw1LXvI.es.js → dialog_selectorRegions-D3CnPt4V.es.js} +4 -4
- package/.chunks/{dialog_selectorRegions-Bkw1LXvI.es.js.map → dialog_selectorRegions-D3CnPt4V.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-Bhblg2Ks.amd.js → dialog_selectorRegions-DYPTw--e.amd.js} +2 -2
- package/.chunks/{dialog_selectorRegions-Bhblg2Ks.amd.js.map → dialog_selectorRegions-DYPTw--e.amd.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CXtBj2Ah.amd.js → dialogs.vue_vue_type_script_setup_true_lang-C5vfO9ia.amd.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CXtBj2Ah.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-C5vfO9ia.amd.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-JyillkBh.es.js → dialogs.vue_vue_type_script_setup_true_lang-CEkc3TYu.es.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-JyillkBh.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-CEkc3TYu.es.js.map} +1 -1
- package/.chunks/{forms-CKYHAaPQ.amd.js → forms-DPIu5wcK.amd.js} +3 -3
- package/.chunks/{forms-CKYHAaPQ.amd.js.map → forms-DPIu5wcK.amd.js.map} +1 -1
- package/.chunks/{forms-zDpk9gMK.es.js → forms-YZl4XC4S.es.js} +300 -280
- package/.chunks/{forms-zDpk9gMK.es.js.map → forms-YZl4XC4S.es.js.map} +1 -1
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Di1h6iID.es.js → listItem.vue_vue_type_script_setup_true_lang-CDrG3onO.es.js} +23 -23
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CDrG3onO.es.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CTbTjIda.amd.js +2 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C_ZN2Nia.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-CTbTjIda.amd.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-B5fkWPo5.es.js → menu.vue_vue_type_style_index_0_lang-2vtQvU8o.es.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-vyCH9NUZ.amd.js.map → menu.vue_vue_type_style_index_0_lang-2vtQvU8o.es.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-vyCH9NUZ.amd.js → menu.vue_vue_type_style_index_0_lang-QsJS5sEm.amd.js} +2 -2
- package/.chunks/menu.vue_vue_type_style_index_0_lang-QsJS5sEm.amd.js.map +1 -0
- package/.chunks/{notice-CyeaHgdt.amd.js → notice-CwPCnQ9k.amd.js} +2 -2
- package/.chunks/{notice-CyeaHgdt.amd.js.map → notice-CwPCnQ9k.amd.js.map} +1 -1
- package/.chunks/{notice-B8hUtbou.es.js → notice-CysocnDZ.es.js} +2 -2
- package/.chunks/{notice-B8hUtbou.es.js.map → notice-CysocnDZ.es.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-C8oRGxFZ.es.js → page.vue_vue_type_script_setup_true_lang-DOTfcVUC.es.js} +4 -4
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-C8oRGxFZ.es.js.map → page.vue_vue_type_script_setup_true_lang-DOTfcVUC.es.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DmbqzLa6.amd.js → page.vue_vue_type_script_setup_true_lang-vzWb9Ehr.amd.js} +2 -2
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DmbqzLa6.amd.js.map → page.vue_vue_type_script_setup_true_lang-vzWb9Ehr.amd.js.map} +1 -1
- package/.chunks/{popup-BaFsC2VD.es.js → popup-Cbr1ckCd.es.js} +2 -2
- package/.chunks/{popup-BaFsC2VD.es.js.map → popup-Cbr1ckCd.es.js.map} +1 -1
- package/.chunks/{popup-DR6JnpNV.amd.js → popup-DdvupIju.amd.js} +2 -2
- package/.chunks/{popup-DR6JnpNV.amd.js.map → popup-DdvupIju.amd.js.map} +1 -1
- package/.chunks/utils-ASIXzycS.es.js +227 -0
- package/.chunks/{utils-CKggUvLI.es.js.map → utils-ASIXzycS.es.js.map} +1 -1
- package/.chunks/{utils-BPcGxQ0s.es.js → utils-Bjl0RkKM.es.js} +2 -2
- package/.chunks/{utils-BPcGxQ0s.es.js.map → utils-Bjl0RkKM.es.js.map} +1 -1
- package/.chunks/utils-CkpzFGzD.amd.js +2 -0
- package/.chunks/{utils-BO3j538g.amd.js.map → utils-CkpzFGzD.amd.js.map} +1 -1
- package/.chunks/{utils-BPyrKdwc.amd.js → utils-D_OVY7zV.amd.js} +2 -2
- package/.chunks/{utils-BPyrKdwc.amd.js.map → utils-D_OVY7zV.amd.js.map} +1 -1
- package/assets/core.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/layout.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.js +1 -1
- package/charts/charts.js.map +1 -1
- package/components/charts/miniChart/miniChart.vue.d.ts +1 -1
- package/components/charts/miniCharts/miniCharts.d.ts +1 -1
- package/components/charts/miniCharts/miniCharts.vue.d.ts +1 -1
- package/components/charts/miniCharts/stories/dummy.d.ts +1 -1
- package/components/core/notice/item/types.d.ts +2 -0
- package/components/forms/avatar/avatar.vue.d.ts +1 -1
- package/components/forms/caption/caption.vue.d.ts +17 -0
- package/components/forms/caption/types.d.ts +9 -0
- package/components/forms/checkbox/checkbox.vue.d.ts +1 -1
- package/components/forms/controlLabel/controlLabel.vue.d.ts +1 -1
- package/components/forms/forms.d.ts +2 -0
- package/components/forms/hint/hint.vue.d.ts +1 -1
- package/components/forms/input/input.vue.d.ts +1 -1
- package/components/forms/inputDate/inputDate.vue.d.ts +1 -1
- package/components/forms/inputDate/types.d.ts +1 -0
- package/components/forms/radio/radio.vue.d.ts +1 -1
- package/components/forms/select/select.vue.d.ts +1 -1
- package/components/forms/select/stories/exampleOptions.d.ts +1 -1
- package/components/forms/switcher/switcher.vue.d.ts +1 -1
- package/components/forms/textarea/textarea.vue.d.ts +1 -1
- package/components/forms/textarea/{textarea.d.ts → types.d.ts} +4 -0
- package/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +1 -1
- package/components/formsExt/editArea/editArea.vue.d.ts +1 -1
- package/components/formsExt/editArea/{editArea.d.ts → types.d.ts} +1 -1
- package/components/formsExt/editInput/editInput.vue.d.ts +1 -1
- package/components/formsExt/editInput/{editInput.d.ts → types.d.ts} +1 -1
- package/components/formsExt/menu/menu.vue.d.ts +1 -1
- package/components/formsExt/menu/stories/items.d.ts +1 -1
- package/components/formsExt/radioGroup/radioGroup.vue.d.ts +1 -1
- package/components/formsExt/selector2/{api.d.ts → composables/useAPI.d.ts} +15 -1
- package/components/formsExt/selector2/composables/useMenu.d.ts +12 -0
- package/components/formsExt/selector2/itemMulti.vue.d.ts +1 -1
- package/components/formsExt/selector2/selector2.vue.d.ts +3 -3
- package/components/formsExt/selector2/utils.d.ts +6 -0
- package/components/popup/alert/alert.vue.d.ts +2 -2
- package/components/popup/alert/{alert.d.ts → types.d.ts} +1 -1
- package/components/popup/confirm/confirm.vue.d.ts +2 -2
- package/components/popup/confirm/{confirm.d.ts → types.d.ts} +1 -1
- package/components/popup/lib/worker.d.ts +2 -2
- package/components/popup/popup/listItem.vue.d.ts +1 -1
- package/components/popup/popup/opener.vue.d.ts +1 -1
- package/components/popup/popup/popup.vue.d.ts +1 -1
- package/components/popup/popup/widgetInput.vue.d.ts +1 -1
- package/components/popup/prompt/prompt.vue.d.ts +2 -2
- package/components/popup/prompt/{prompt.d.ts → types.d.ts} +1 -1
- package/components/project/selectorCompetitors/composables.d.ts +1 -2
- package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +1 -1
- package/components/project/selectorCompetitors/stories/items.d.ts +1 -1
- package/components/project/selectorCompetitors/{selectorCompetitors.d.ts → types.d.ts} +7 -0
- package/components/project/selectorRegion/composables/compare.d.ts +1 -1
- package/components/project/selectorRegion/composables/selectRegion.d.ts +2 -2
- package/components/project/selectorRegion/composables/selectSearcher.d.ts +2 -2
- package/components/project/selectorRegion/composables/selectorRegion.d.ts +2 -2
- package/components/project/selectorRegion/dialog_selectorRegions/types.d.ts +1 -1
- package/components/project/selectorRegion/selectorRegion.vue.d.ts +1 -1
- package/components/project/selectorRegion/stories/searchers.d.ts +1 -1
- package/components/project/selectorRegion/utils/consts.d.ts +1 -1
- package/components/project/selectorRegion/utils/utils.d.ts +1 -1
- package/components/project/tagSelector/popupOpener/types.d.ts +2 -0
- package/components/project/tagSelector/types.d.ts +2 -0
- package/components/project/tagSelector/utils/el.d.ts +1 -1
- package/components/tabs/tabs/content.vue.d.ts +1 -1
- package/components/tabs/tabs/tab.vue.d.ts +1 -1
- package/components/tabs/tabs/tabs.vue.d.ts +1 -1
- package/components/tabsView/tabsView/menu.vue.d.ts +1 -1
- package/components/tabsView/tabsView/menuItem.vue.d.ts +1 -1
- package/components/tabsView/tabsView/menuTitle.vue.d.ts +1 -1
- package/components/tabsView/tabsView/store.d.ts +5 -185
- package/components/tabsView/tabsView/tabsView.vue.d.ts +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.js +5 -5
- package/core/utils/store.d.ts +1 -1
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.js +2 -2
- package/extra/extra.amd.js +1 -1
- package/extra/extra.amd.js.map +1 -1
- package/extra/extra.js +1 -0
- package/extra/extra.js.map +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +8 -7
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +310 -309
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/Topvisor icons.json +82 -36
- package/icomoon/demo.html +29 -1
- package/icomoon/fonts/Topvisor-2.eot +0 -0
- package/icomoon/fonts/Topvisor-2.svg +2 -0
- package/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/icomoon/fonts/Topvisor-2.woff +0 -0
- package/icomoon/selection.json +1 -1
- package/icomoon/style.css +11 -5
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.js +1 -1
- package/layout/layout.js.map +1 -1
- package/package.json +4 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +2 -2
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +3 -3
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +244 -241
- package/project/project.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +1 -1
- package/tabsView/tabsView.js.map +1 -1
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.js +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.js +3 -3
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js +5 -5
- package/utils/string.js.map +1 -1
- package/.chunks/core-BHvOvH4M.amd.js +0 -2
- package/.chunks/core-BHvOvH4M.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C_ZN2Nia.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Di1h6iID.es.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-B5fkWPo5.es.js.map +0 -1
- package/.chunks/utils-BO3j538g.amd.js +0 -2
- package/.chunks/utils-CKggUvLI.es.js +0 -227
- package/components/forms/inputDate/inputDate.d.ts +0 -3
- package/components/project/selectorCompetitors/types/competitor.d.ts +0 -7
- /package/components/charts/miniChart/{miniChart.d.ts → types.d.ts} +0 -0
- /package/components/forms/avatar/{avatar.d.ts → types.d.ts} +0 -0
- /package/components/forms/checkbox/{checkbox.d.ts → types.d.ts} +0 -0
- /package/components/forms/controlLabel/{controlLabel.d.ts → types.d.ts} +0 -0
- /package/components/forms/hint/{hint.d.ts → types.d.ts} +0 -0
- /package/components/forms/input/{input.d.ts → types.d.ts} +0 -0
- /package/components/forms/inputRange/{inputRange.d.ts → types.d.ts} +0 -0
- /package/components/forms/radio/{radio.d.ts → types.d.ts} +0 -0
- /package/components/forms/select/{select.d.ts → types.d.ts} +0 -0
- /package/components/forms/switcher/{switcher.d.ts → types.d.ts} +0 -0
- /package/components/formsExt/menu/{menu.d.ts → types.d.ts} +0 -0
- /package/components/formsExt/radioGroup/{radioGroup.d.ts → types.d.ts} +0 -0
- /package/components/formsExt/selector2/{selector2.d.ts → types.d.ts} +0 -0
- /package/components/popup/popup/{popup.d.ts → types.d.ts} +0 -0
- /package/components/project/selectorRegion/{selectorRegion.d.ts → types.d.ts} +0 -0
- /package/components/tabs/tabs/{tabs.d.ts → types.d.ts} +0 -0
- /package/components/tabsView/tabsView/{tabsView.d.ts → types.d.ts} +0 -0
package/project/project.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Core as be } from "../core/app.js";
|
|
2
2
|
import { defineComponent as P, mergeModels as N, useModel as D, computed as E, createElementBlock as B, openBlock as k, createBlock as b, unref as y, withCtx as _, Fragment as Y, renderList as se, normalizeClass as X, createElementVNode as he, toDisplayString as K, createVNode as A, createTextVNode as G, ref as F, watch as w, createCommentVNode as q, withModifiers as z, mergeProps as Se, withKeys as de, nextTick as Ve, resolveDirective as Ee, withDirectives as Me, resolveDynamicComponent as Ke, renderSlot as $e, shallowRef as we, createSlots as Le, reactive as Ae, toValue as ce, isRef as ge } from "vue";
|
|
3
|
-
import { u as R, C as J, _ as H, y as ie, d as Re } from "../.chunks/forms-
|
|
4
|
-
import { _ as Ie, a as ue, b as Oe } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as Ne } from "../.chunks/menu.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { u as De } from "../.chunks/utils-
|
|
3
|
+
import { u as R, C as J, _ as H, y as ie, d as Re } from "../.chunks/forms-YZl4XC4S.es.js";
|
|
4
|
+
import { _ as Ie, a as ue, b as Oe } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-CDrG3onO.es.js";
|
|
5
|
+
import { _ as Ne } from "../.chunks/menu.vue_vue_type_style_index_0_lang-2vtQvU8o.es.js";
|
|
6
|
+
import { u as De } from "../.chunks/utils-Bjl0RkKM.es.js";
|
|
7
7
|
import { getSearcherGIcon as Fe, getLangLabel as qe, getDeviceGIcon as Pe } from "../utils/searchers.js";
|
|
8
8
|
import { storage as W } from "../utils/dom.js";
|
|
9
9
|
import { TopPopupWorker as Ue } from "../popup/worker.js";
|
|
@@ -21,8 +21,8 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
21
21
|
}),
|
|
22
22
|
emits: ["update:modelValue"],
|
|
23
23
|
setup(t) {
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
24
|
+
const a = t, o = D(t, "modelValue"), e = E(() => {
|
|
25
|
+
if (a.showSelectAllItem)
|
|
26
26
|
return {
|
|
27
27
|
icon: "",
|
|
28
28
|
title: R().Common.Select_all,
|
|
@@ -30,7 +30,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
30
30
|
content: ""
|
|
31
31
|
};
|
|
32
32
|
});
|
|
33
|
-
return (i,
|
|
33
|
+
return (i, l) => (k(), B("div", je, [
|
|
34
34
|
y(J).state.isMobile ? (k(), b(Ie, { key: 0 }, {
|
|
35
35
|
opener: _(() => [
|
|
36
36
|
A(H, {
|
|
@@ -40,30 +40,30 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
40
40
|
icon2: ""
|
|
41
41
|
}, {
|
|
42
42
|
default: _(() => {
|
|
43
|
-
var
|
|
43
|
+
var n;
|
|
44
44
|
return [
|
|
45
|
-
G(K((
|
|
45
|
+
G(K((n = i.items.find((u) => {
|
|
46
46
|
var f;
|
|
47
|
-
return u.value === ((f =
|
|
48
|
-
})) == null ? void 0 :
|
|
47
|
+
return u.value === ((f = o.value) == null ? void 0 : f[0]);
|
|
48
|
+
})) == null ? void 0 : n.content), 1)
|
|
49
49
|
];
|
|
50
50
|
}),
|
|
51
51
|
_: 1
|
|
52
52
|
})
|
|
53
53
|
]),
|
|
54
54
|
contentList: _(() => [
|
|
55
|
-
(k(!0), B(Y, null, se(i.items, (
|
|
55
|
+
(k(!0), B(Y, null, se(i.items, (n) => {
|
|
56
56
|
var u;
|
|
57
57
|
return k(), b(ue, {
|
|
58
58
|
class: X({
|
|
59
|
-
"top-active": (u =
|
|
59
|
+
"top-active": (u = o.value) == null ? void 0 : u.includes(n.value)
|
|
60
60
|
}),
|
|
61
|
-
"data-top-icon":
|
|
62
|
-
title:
|
|
63
|
-
onClick: () =>
|
|
61
|
+
"data-top-icon": n.icon,
|
|
62
|
+
title: n.title,
|
|
63
|
+
onClick: () => o.value = [n.value]
|
|
64
64
|
}, {
|
|
65
65
|
default: _(() => [
|
|
66
|
-
he("span", ze, K(
|
|
66
|
+
he("span", ze, K(n.content), 1)
|
|
67
67
|
]),
|
|
68
68
|
_: 2
|
|
69
69
|
}, 1032, ["class", "data-top-icon", "title", "onClick"]);
|
|
@@ -72,8 +72,8 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
72
72
|
_: 1
|
|
73
73
|
})) : (k(), b(Ne, {
|
|
74
74
|
key: 1,
|
|
75
|
-
modelValue:
|
|
76
|
-
"onUpdate:modelValue":
|
|
75
|
+
modelValue: o.value,
|
|
76
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => o.value = n),
|
|
77
77
|
items: i.items,
|
|
78
78
|
isMultiple: !0,
|
|
79
79
|
styling: "bar",
|
|
@@ -101,15 +101,15 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
101
101
|
name: "--",
|
|
102
102
|
regions: [me],
|
|
103
103
|
regionByIndex: /* @__PURE__ */ new Map([[p, me]])
|
|
104
|
-
},
|
|
104
|
+
}, le = {
|
|
105
105
|
key: p,
|
|
106
106
|
name: "Autoselect",
|
|
107
107
|
index: p
|
|
108
108
|
}, re = {
|
|
109
109
|
key: p,
|
|
110
110
|
name: "Autoselect",
|
|
111
|
-
regions: [
|
|
112
|
-
regionByIndex: /* @__PURE__ */ new Map([[p,
|
|
111
|
+
regions: [le],
|
|
112
|
+
regionByIndex: /* @__PURE__ */ new Map([[p, le]])
|
|
113
113
|
}, fe = {
|
|
114
114
|
countryCode: "00",
|
|
115
115
|
depth: 1,
|
|
@@ -118,89 +118,89 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
118
118
|
index: te,
|
|
119
119
|
lang: "ru",
|
|
120
120
|
name: "Without region"
|
|
121
|
-
}, We = () => (
|
|
121
|
+
}, We = () => (le.name = R().Common.Autoselect, le), Ye = () => (We(), re.name = R().Common.Autoselect, console.log(re), re), He = () => (fe.name = R().Keywords.Without_region, fe), ke = (t = !1, a = !1, o = []) => {
|
|
122
122
|
let e;
|
|
123
|
-
return t ? e = Qe(
|
|
124
|
-
}, Ce = (t,
|
|
123
|
+
return t ? e = Qe(o) : e = Ce(o), a && e.set(p, Ye()), e.size || e.set(p, xe), e;
|
|
124
|
+
}, Ce = (t, a = !0, o = [], e = !1) => {
|
|
125
125
|
const i = /* @__PURE__ */ new Map();
|
|
126
|
-
return t.forEach((
|
|
127
|
-
if (!
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
if (
|
|
126
|
+
return t.forEach((l) => {
|
|
127
|
+
if (!l.enabled || e && typeof l.key == "number" && l.key > 1) return;
|
|
128
|
+
const n = { ...l };
|
|
129
|
+
n.regionByIndex = /* @__PURE__ */ new Map(), l.regions && l.regions.forEach((u) => {
|
|
130
|
+
if (a && !u.enabled) return;
|
|
131
131
|
const f = { ...u };
|
|
132
|
-
|
|
133
|
-
}), !
|
|
134
|
-
(!
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}),
|
|
138
|
-
if (i.has(
|
|
139
|
-
const
|
|
140
|
-
key:
|
|
141
|
-
name: Ge[
|
|
132
|
+
n.regionByIndex.set(f.index, f);
|
|
133
|
+
}), !n.regionByIndex.size && o.length, // режим вывода ПС без регионов
|
|
134
|
+
(!l.regions || // есть включенные регионы
|
|
135
|
+
n.regionByIndex.size || // запрошен вывод конкретных ПС
|
|
136
|
+
o.length) && typeof n.key == "number" && i.set(n.key, n);
|
|
137
|
+
}), o.forEach((l) => {
|
|
138
|
+
if (i.has(l)) return;
|
|
139
|
+
const n = {
|
|
140
|
+
key: l,
|
|
141
|
+
name: Ge[l],
|
|
142
142
|
regions: [],
|
|
143
143
|
regionByIndex: /* @__PURE__ */ new Map()
|
|
144
144
|
};
|
|
145
|
-
i.set(
|
|
145
|
+
i.set(n.key, n);
|
|
146
146
|
}), i;
|
|
147
147
|
}, Qe = (t) => {
|
|
148
|
-
const
|
|
149
|
-
if (
|
|
150
|
-
const
|
|
151
|
-
|
|
148
|
+
const a = Ce(t, !1, [0, 1], !0);
|
|
149
|
+
if (a.has(2)) {
|
|
150
|
+
const o = a.get(2);
|
|
151
|
+
o && (o.regionByIndex = /* @__PURE__ */ new Map());
|
|
152
152
|
}
|
|
153
|
-
return
|
|
154
|
-
if (!
|
|
153
|
+
return a.forEach((o) => {
|
|
154
|
+
if (!o.regionByIndex) return;
|
|
155
155
|
const e = { ...He() };
|
|
156
|
-
|
|
157
|
-
}),
|
|
158
|
-
}, Xe = (t,
|
|
159
|
-
const e = ke(t, !1,
|
|
156
|
+
o.regionByIndex.set(e.index, e);
|
|
157
|
+
}), a;
|
|
158
|
+
}, Xe = (t, a, o = []) => {
|
|
159
|
+
const e = ke(t, !1, o);
|
|
160
160
|
let i;
|
|
161
|
-
return e.forEach((
|
|
162
|
-
if (!(
|
|
163
|
-
if (!i && !(
|
|
164
|
-
return
|
|
161
|
+
return e.forEach((l) => {
|
|
162
|
+
if (!(a.searcher_key !== void 0 && a.searcher_key != l.key) && l.regions && (l.regions.forEach((n) => {
|
|
163
|
+
if (!i && !(a.key !== void 0 && a.key != n.key) && !(a.index !== void 0 && a.index != n.index) && !(!t && (a.lang !== void 0 && a.lang != n.lang || a.device !== void 0 && a.device != n.device)))
|
|
164
|
+
return n.searcher_key = l.key, i = n, !1;
|
|
165
165
|
}), i))
|
|
166
166
|
return !1;
|
|
167
167
|
}), i;
|
|
168
|
-
}, Ze = De(() => import("../.chunks/dialog_selectorRegions-
|
|
169
|
-
const
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
168
|
+
}, Ze = De(() => import("../.chunks/dialog_selectorRegions-D3CnPt4V.es.js")), et = (t, a) => {
|
|
169
|
+
const o = R(), e = F(a.value.keys().next().value ?? p), i = E(() => {
|
|
170
|
+
const l = /* @__PURE__ */ new Map();
|
|
171
|
+
if (a.value.forEach((n) => {
|
|
172
172
|
let u = {
|
|
173
|
-
value:
|
|
174
|
-
title:
|
|
173
|
+
value: n.key,
|
|
174
|
+
title: n.name
|
|
175
175
|
};
|
|
176
|
-
t.addSearcherIcon && (u.icon = Fe(
|
|
177
|
-
}), t.addCompare && !
|
|
178
|
-
const
|
|
176
|
+
t.addSearcherIcon && (u.icon = Fe(n.key)), l.set(n.key, u);
|
|
177
|
+
}), t.addCompare && !l.has(p)) {
|
|
178
|
+
const n = {
|
|
179
179
|
value: "",
|
|
180
180
|
title: "--------------------",
|
|
181
181
|
disabled: !0
|
|
182
182
|
};
|
|
183
|
-
|
|
183
|
+
l.set(n.value, n);
|
|
184
184
|
const u = {
|
|
185
185
|
value: M,
|
|
186
|
-
title:
|
|
186
|
+
title: o.Common.Compare
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
l.set(u.value, u);
|
|
189
189
|
}
|
|
190
|
-
return
|
|
190
|
+
return l;
|
|
191
191
|
});
|
|
192
192
|
return {
|
|
193
193
|
searcherKey: e,
|
|
194
194
|
optionBySearcherKey: i
|
|
195
195
|
};
|
|
196
|
-
}, tt = (t,
|
|
197
|
-
var
|
|
198
|
-
const
|
|
199
|
-
t.modelValue.length === 1 && (e.value = t.modelValue[0]), e.value === p && (t.forFrequency ? e.value = ((
|
|
196
|
+
}, tt = (t, a) => {
|
|
197
|
+
var l, n, u;
|
|
198
|
+
const o = R(), e = F(p);
|
|
199
|
+
t.modelValue.length === 1 && (e.value = t.modelValue[0]), e.value === p && (t.forFrequency ? e.value = ((n = (l = a.value) == null ? void 0 : l.regionByIndex.values().next().value) == null ? void 0 : n.key) ?? p : e.value = ((u = a.value) == null ? void 0 : u.regionByIndex.keys().next().value) ?? p);
|
|
200
200
|
const i = E(() => {
|
|
201
201
|
var h;
|
|
202
202
|
const f = /* @__PURE__ */ new Map();
|
|
203
|
-
return (h =
|
|
203
|
+
return (h = a.value.regionByIndex) == null || h.forEach((S) => {
|
|
204
204
|
let r = S.name;
|
|
205
205
|
if (t.forFrequency) {
|
|
206
206
|
const x = {
|
|
@@ -210,8 +210,8 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
210
210
|
f.has(S.key) || f.set(S.key, x);
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
|
-
S.device && (r += " (" +
|
|
214
|
-
const g = qe(
|
|
213
|
+
S.device && (r += " (" + o.Common["Device_" + S.device] + ")");
|
|
214
|
+
const g = qe(a.value.key || 0, S.lang ?? "");
|
|
215
215
|
g && (r += " / " + g);
|
|
216
216
|
const d = {
|
|
217
217
|
value: S.index,
|
|
@@ -239,7 +239,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
239
239
|
S = x;
|
|
240
240
|
break;
|
|
241
241
|
}
|
|
242
|
-
const V = new RegExp(` \\((${
|
|
242
|
+
const V = new RegExp(` \\((${o.Common.Device_1}|${o.Common.Device_2})\\)`);
|
|
243
243
|
let m = r, s = 3;
|
|
244
244
|
C.indexOf(m) === -1 && (m = r.replace(/^[^a-zа-я]/i, "").replace(V, ""), s--), C.indexOf(m) === -1 && (m = r.replace(/ \/.*/, ""), s--), C.indexOf(m) === -1 && (m = r.replace(/ \/.*/, ""), m = m.replace(/^[^a-zа-я]/i, "").replace(V, ""), s--), C.indexOf(m) !== -1 && (s <= g || (g = s, S = x));
|
|
245
245
|
}
|
|
@@ -248,79 +248,79 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
248
248
|
regionIndex: e,
|
|
249
249
|
optionByRegionIndex: i
|
|
250
250
|
};
|
|
251
|
-
},
|
|
251
|
+
}, lt = (t, a, o) => {
|
|
252
252
|
const e = F([]), i = () => {
|
|
253
|
-
if (t.onlySearcher &&
|
|
254
|
-
e.value = Array.from(
|
|
253
|
+
if (t.onlySearcher && a.value) {
|
|
254
|
+
e.value = Array.from(a.value.keys());
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
let
|
|
257
|
+
let n = [];
|
|
258
258
|
if (t.modelValue.length > 1)
|
|
259
|
-
|
|
259
|
+
n = [...t.modelValue];
|
|
260
260
|
else
|
|
261
261
|
try {
|
|
262
|
-
|
|
262
|
+
n = JSON.parse(
|
|
263
263
|
localStorage.getItem("ui:project:regionSelector" + t.projectId + ":regionsIndexes")
|
|
264
264
|
) ?? [];
|
|
265
265
|
} catch {
|
|
266
266
|
}
|
|
267
|
-
|
|
268
|
-
},
|
|
267
|
+
n.length && (n = n.filter((u) => o.value.has(u))), n.length || (n = Array.from(o.value)), e.value = [...n];
|
|
268
|
+
}, l = () => {
|
|
269
269
|
e.value.length ? localStorage.setItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes", JSON.stringify(e.value)) : localStorage.removeItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes");
|
|
270
270
|
};
|
|
271
271
|
return w(e, () => {
|
|
272
|
-
|
|
272
|
+
l();
|
|
273
273
|
}), t.addCompare && i(), {
|
|
274
274
|
regionsIndexes: e
|
|
275
275
|
};
|
|
276
|
-
},
|
|
277
|
-
const
|
|
276
|
+
}, at = (t) => {
|
|
277
|
+
const a = E(() => ke(t.forFrequency, t.autoRegion, t.searchers)), o = E(() => a.value.get(i.searcherKey.value) || xe), e = E(() => {
|
|
278
278
|
const r = /* @__PURE__ */ new Set();
|
|
279
|
-
return
|
|
279
|
+
return a.value.forEach((g) => {
|
|
280
280
|
g.regionByIndex.forEach((d) => {
|
|
281
281
|
d.index !== te && d.index !== p && r.add(d.index);
|
|
282
282
|
});
|
|
283
283
|
}), r;
|
|
284
|
-
}), i = et(t,
|
|
285
|
-
w(
|
|
284
|
+
}), i = et(t, a), l = tt(t, o), n = lt(t, a, e);
|
|
285
|
+
w(a, () => {
|
|
286
286
|
var g, d, x, T;
|
|
287
|
-
if (t.onlySearcher ?
|
|
288
|
-
let r =
|
|
289
|
-
|
|
287
|
+
if (t.onlySearcher ? n.regionsIndexes.value = Array.from(a.value.keys()) : n.regionsIndexes.value = n.regionsIndexes.value.filter((C) => e.value.has(C)), i.searcherKey.value === M) return;
|
|
288
|
+
let r = a.value.keys().next().value;
|
|
289
|
+
a.value.forEach((C) => {
|
|
290
290
|
var V, m, s;
|
|
291
291
|
if (t.onlySearcher && C.key === i.searcherKey.value) {
|
|
292
292
|
r = i.searcherKey.value;
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
if (
|
|
295
|
+
if (l.regionIndex.value && ((V = C.regionByIndex) != null && V.has(l.regionIndex.value)) && (r = C.key), !t.onlySearcher) {
|
|
296
296
|
let c;
|
|
297
|
-
r !== void 0 && (c = (m =
|
|
298
|
-
const v = (s =
|
|
297
|
+
r !== void 0 && (c = (m = a.value.get(r)) == null ? void 0 : m.regionByIndex);
|
|
298
|
+
const v = (s = a.value.get(C.key)) == null ? void 0 : s.regionByIndex;
|
|
299
299
|
c != null && c.has(p) && !(v != null && v.has(p)) && (r = C.key);
|
|
300
300
|
}
|
|
301
|
-
}), r !== void 0 && (i.searcherKey.value = r),
|
|
301
|
+
}), r !== void 0 && (i.searcherKey.value = r), l.regionIndex.value !== void 0 && !((d = (g = o.value) == null ? void 0 : g.regionByIndex) != null && d.has(l.regionIndex.value)) && (l.regionIndex.value = (T = (x = o.value) == null ? void 0 : x.regions) == null ? void 0 : T.keys().next().value);
|
|
302
302
|
}, { immediate: !0 });
|
|
303
303
|
const u = () => {
|
|
304
304
|
if (!(i.searcherKey.value === M || i.searcherKey.value === p))
|
|
305
305
|
return i.searcherKey.value;
|
|
306
306
|
}, f = () => {
|
|
307
|
-
if (t.onlySearcher ||
|
|
308
|
-
let r =
|
|
307
|
+
if (t.onlySearcher || l.regionIndex.value === p) return;
|
|
308
|
+
let r = l.regionIndex.value;
|
|
309
309
|
if (t.forFrequency) {
|
|
310
|
-
const g =
|
|
310
|
+
const g = l.regionIndex.value, d = Xe(t.forFrequency, { searcher_key: u(), key: g }, t.searchers);
|
|
311
311
|
r = d == null ? void 0 : d.index;
|
|
312
312
|
}
|
|
313
313
|
return r;
|
|
314
314
|
}, h = () => {
|
|
315
315
|
const r = u();
|
|
316
316
|
if (r !== void 0)
|
|
317
|
-
return
|
|
317
|
+
return a.value.get(r);
|
|
318
318
|
};
|
|
319
319
|
return {
|
|
320
320
|
selectSearcher: i,
|
|
321
|
-
selectRegion:
|
|
322
|
-
compare:
|
|
323
|
-
searcherByKey:
|
|
321
|
+
selectRegion: l,
|
|
322
|
+
compare: n,
|
|
323
|
+
searcherByKey: a,
|
|
324
324
|
allRegionsIndexes: e,
|
|
325
325
|
getSearcher: h,
|
|
326
326
|
getRegion: () => {
|
|
@@ -330,7 +330,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
330
330
|
return (d = (g = h()) == null ? void 0 : g.regionByIndex) == null ? void 0 : d.get(r);
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
|
-
},
|
|
333
|
+
}, nt = /* @__PURE__ */ P({
|
|
334
334
|
__name: "selectorRegion",
|
|
335
335
|
props: /* @__PURE__ */ N({
|
|
336
336
|
projectId: {},
|
|
@@ -351,16 +351,16 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
351
351
|
modelValueSingleModifiers: {}
|
|
352
352
|
}),
|
|
353
353
|
emits: ["update:modelValue", "update:modelValueSingle"],
|
|
354
|
-
setup(t, { expose:
|
|
355
|
-
const
|
|
356
|
-
selectSearcher:
|
|
357
|
-
selectRegion:
|
|
354
|
+
setup(t, { expose: a }) {
|
|
355
|
+
const o = t, e = D(t, "modelValue"), i = D(t, "modelValueSingle"), {
|
|
356
|
+
selectSearcher: l,
|
|
357
|
+
selectRegion: n,
|
|
358
358
|
compare: u,
|
|
359
359
|
searcherByKey: f,
|
|
360
360
|
allRegionsIndexes: h,
|
|
361
361
|
getSearcher: S,
|
|
362
362
|
getRegion: r
|
|
363
|
-
} =
|
|
363
|
+
} = at(o), g = () => {
|
|
364
364
|
const d = [];
|
|
365
365
|
f.value.forEach((x) => {
|
|
366
366
|
x.enabled && x.regions.forEach((T) => {
|
|
@@ -372,22 +372,22 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
372
372
|
"@update:regionsIndexes": (x) => u.regionsIndexes.value = x
|
|
373
373
|
});
|
|
374
374
|
};
|
|
375
|
-
return w([
|
|
376
|
-
if (
|
|
375
|
+
return w([n.regionIndex, l.searcherKey, u.regionsIndexes], () => {
|
|
376
|
+
if (l.searcherKey.value === M && u.regionsIndexes.value.length) {
|
|
377
377
|
if (JSON.stringify(e.value) === JSON.stringify(u.regionsIndexes.value))
|
|
378
378
|
return;
|
|
379
379
|
e.value = [...u.regionsIndexes.value];
|
|
380
380
|
} else
|
|
381
|
-
|
|
382
|
-
!
|
|
381
|
+
o.onlySearcher ? (e.value = [l.searcherKey.value], l.searcherKey.value === p && !o.autoRegion && (e.value.length = 0)) : (e.value = [n.regionIndex.value], n.regionIndex.value === p && !o.autoRegion && (e.value.length = 0));
|
|
382
|
+
!o.onlySearcher && !h.value.size && (l.searcherKey.value = p);
|
|
383
383
|
}), i.value && w(i, () => {
|
|
384
384
|
i.value && (e.value = [i.value]);
|
|
385
385
|
}, { immediate: !0 }), w(e, () => {
|
|
386
386
|
var d, x, T, C, V;
|
|
387
|
-
if (e.value[0] && (i.value = e.value[0]),
|
|
388
|
-
if (!e.value.length || e.value.length === 1 && !f.value.has(e.value[0]) || e.value.length === 1 && e.value[0] === p && !
|
|
387
|
+
if (e.value[0] && (i.value = e.value[0]), o.onlySearcher) {
|
|
388
|
+
if (!e.value.length || e.value.length === 1 && !f.value.has(e.value[0]) || e.value.length === 1 && e.value[0] === p && !o.autoRegion) {
|
|
389
389
|
let m = f.value.keys().next().value;
|
|
390
|
-
m === p && !
|
|
390
|
+
m === p && !o.autoRegion && (m = void 0, i.value = p), m !== void 0 ? e.value = [m] : e.value.length = 0;
|
|
391
391
|
return;
|
|
392
392
|
}
|
|
393
393
|
if (e.value.length > 1 && JSON.stringify(e.value) !== JSON.stringify(u.regionsIndexes.value)) {
|
|
@@ -396,11 +396,11 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
396
396
|
}
|
|
397
397
|
} else {
|
|
398
398
|
let m = [...new Set(e.value)], s = (x = (d = f.value.values().next().value) == null ? void 0 : d.regionByIndex) == null ? void 0 : x.keys().next().value;
|
|
399
|
-
if (
|
|
399
|
+
if (o.forFrequency && (s = (V = (C = (T = f.value.values().next().value) == null ? void 0 : T.regionByIndex) == null ? void 0 : C.values().next().value) == null ? void 0 : V.key), s === p && !o.autoRegion && (s = void 0, i.value = p), !m.length)
|
|
400
400
|
s !== void 0 && m.push(s);
|
|
401
401
|
else if (m.length === 1) {
|
|
402
402
|
let c = h.value;
|
|
403
|
-
|
|
403
|
+
o.forFrequency && (c = /* @__PURE__ */ new Set(), f.value.forEach((v) => {
|
|
404
404
|
v.regionByIndex.forEach((I) => {
|
|
405
405
|
I.index !== te && I.index !== p && c.add(I.key);
|
|
406
406
|
});
|
|
@@ -412,34 +412,34 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
if (!(e.value.length === 1 && e.value[0] === (
|
|
416
|
-
if (
|
|
415
|
+
if (!(e.value.length === 1 && e.value[0] === (o.onlySearcher ? l.searcherKey.value : n.regionIndex.value)))
|
|
416
|
+
if (o.onlySearcher) {
|
|
417
417
|
if (e.value.length === 1) {
|
|
418
|
-
|
|
418
|
+
l.searcherKey.value = e.value[0];
|
|
419
419
|
return;
|
|
420
420
|
}
|
|
421
|
-
|
|
421
|
+
l.searcherKey.value = M;
|
|
422
422
|
return;
|
|
423
423
|
} else {
|
|
424
424
|
if (!e.value.length)
|
|
425
425
|
return;
|
|
426
|
-
if (e.value.length === 1 &&
|
|
427
|
-
|
|
426
|
+
if (e.value.length === 1 && l.searcherKey.value !== M) {
|
|
427
|
+
n.regionIndex.value = e.value[0];
|
|
428
428
|
let m;
|
|
429
429
|
for (const s of f.value.values()) {
|
|
430
430
|
for (const c of s.regionByIndex.values())
|
|
431
|
-
if ((
|
|
431
|
+
if ((o.forFrequency ? c.key : c.index) === n.regionIndex.value) {
|
|
432
432
|
m = s.key;
|
|
433
433
|
break;
|
|
434
434
|
}
|
|
435
435
|
if (m !== void 0)
|
|
436
436
|
break;
|
|
437
437
|
}
|
|
438
|
-
m !== void 0 && (
|
|
438
|
+
m !== void 0 && (l.searcherKey.value = m);
|
|
439
439
|
} else
|
|
440
|
-
|
|
440
|
+
l.searcherKey.value = M, u.regionsIndexes.value = [...e.value];
|
|
441
441
|
}
|
|
442
|
-
}, { immediate: !0 }),
|
|
442
|
+
}, { immediate: !0 }), a({
|
|
443
443
|
getSearcher: S,
|
|
444
444
|
getRegion: r
|
|
445
445
|
}), (d, x) => (k(), B("div", {
|
|
@@ -449,23 +449,23 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
449
449
|
})
|
|
450
450
|
}, [
|
|
451
451
|
A(ie, {
|
|
452
|
-
options: y(
|
|
453
|
-
modelValue: y(
|
|
454
|
-
"onUpdate:modelValue": x[0] || (x[0] = (T) => y(
|
|
452
|
+
options: y(l).optionBySearcherKey.value,
|
|
453
|
+
modelValue: y(l).searcherKey.value,
|
|
454
|
+
"onUpdate:modelValue": x[0] || (x[0] = (T) => y(l).searcherKey.value = T),
|
|
455
455
|
name: "searcher_key",
|
|
456
456
|
addChanger: d.addChanger
|
|
457
457
|
}, null, 8, ["options", "modelValue", "addChanger"]),
|
|
458
|
-
!d.onlySearcher && y(
|
|
458
|
+
!d.onlySearcher && y(l).searcherKey.value !== y(M) ? (k(), b(ie, {
|
|
459
459
|
key: 0,
|
|
460
460
|
class: "top-select-region",
|
|
461
|
-
options: y(
|
|
462
|
-
modelValue: y(
|
|
463
|
-
"onUpdate:modelValue": x[1] || (x[1] = (T) => y(
|
|
461
|
+
options: y(n).optionByRegionIndex.value,
|
|
462
|
+
modelValue: y(n).regionIndex.value,
|
|
463
|
+
"onUpdate:modelValue": x[1] || (x[1] = (T) => y(n).regionIndex.value = T),
|
|
464
464
|
name: d.forFrequency ? "region_key" : "region_index",
|
|
465
465
|
addChanger: d.addChanger,
|
|
466
466
|
"data-top-icon": d.addRegionIcon ? "" : void 0
|
|
467
467
|
}, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) : q("", !0),
|
|
468
|
-
d.addCompare && !d.onlySearcher && y(
|
|
468
|
+
d.addCompare && !d.onlySearcher && y(l).searcherKey.value === y(M) ? (k(), b(H, {
|
|
469
469
|
key: 1,
|
|
470
470
|
name: "compare",
|
|
471
471
|
onClick: g,
|
|
@@ -478,7 +478,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
478
478
|
}, 8, ["data-count-compare-regions-indexes"])) : q("", !0)
|
|
479
479
|
], 2));
|
|
480
480
|
}
|
|
481
|
-
}),
|
|
481
|
+
}), ot = [
|
|
482
482
|
{
|
|
483
483
|
id: "1",
|
|
484
484
|
name: "Without Tag",
|
|
@@ -529,12 +529,12 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
529
529
|
name: "Turquoise",
|
|
530
530
|
color_id: "10"
|
|
531
531
|
}
|
|
532
|
-
], ve = (t) => "-" + t, Q = (t) => t[0] === "-" ? t.substring(1) : t,
|
|
532
|
+
], ve = (t) => "-" + t, Q = (t) => t[0] === "-" ? t.substring(1) : t, ae = (t, a) => {
|
|
533
533
|
t = Q(t);
|
|
534
|
-
const
|
|
535
|
-
if (
|
|
536
|
-
return
|
|
537
|
-
}, rt = ["data-tag_id", "data-tag_color_id", "title"],
|
|
534
|
+
const o = a.find((e) => e.id === t);
|
|
535
|
+
if (o)
|
|
536
|
+
return o;
|
|
537
|
+
}, rt = ["data-tag_id", "data-tag_color_id", "title"], ne = /* @__PURE__ */ P({
|
|
538
538
|
__name: "tagIcon",
|
|
539
539
|
props: {
|
|
540
540
|
id: {},
|
|
@@ -543,15 +543,15 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
543
543
|
state: {}
|
|
544
544
|
},
|
|
545
545
|
setup(t) {
|
|
546
|
-
return (
|
|
546
|
+
return (a, o) => (k(), B("div", {
|
|
547
547
|
class: X({
|
|
548
548
|
"top-tagSelector_tagIcon": !0,
|
|
549
|
-
"top-tagSelector-active": !!
|
|
550
|
-
"top-tagSelector-excluded":
|
|
549
|
+
"top-tagSelector-active": !!a.state,
|
|
550
|
+
"top-tagSelector-excluded": a.state === "excluded"
|
|
551
551
|
}),
|
|
552
|
-
"data-tag_id":
|
|
553
|
-
"data-tag_color_id":
|
|
554
|
-
title:
|
|
552
|
+
"data-tag_id": a.id,
|
|
553
|
+
"data-tag_color_id": a.colorId,
|
|
554
|
+
title: a.name
|
|
555
555
|
}, null, 10, rt));
|
|
556
556
|
}
|
|
557
557
|
}), it = ["contenteditable", "onKeydown"], ye = /* @__PURE__ */ P({
|
|
@@ -571,24 +571,24 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
571
571
|
nameModifiers: {}
|
|
572
572
|
}),
|
|
573
573
|
emits: /* @__PURE__ */ N(["update:name", "unselect", "exclude", "select"], ["update:name"]),
|
|
574
|
-
setup(t, { emit:
|
|
575
|
-
const
|
|
574
|
+
setup(t, { emit: a }) {
|
|
575
|
+
const o = t, e = a, i = D(t, "name"), l = F(null), n = E(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
|
|
576
576
|
contenteditable: u.value,
|
|
577
577
|
onpaste: (g) => g.preventDefault()
|
|
578
578
|
} : {}), u = F(!1), f = async () => {
|
|
579
579
|
var g;
|
|
580
|
-
u.value = !0, await Ve(), (g =
|
|
580
|
+
u.value = !0, await Ve(), (g = l.value) == null || g.focus();
|
|
581
581
|
}, h = () => {
|
|
582
582
|
var d;
|
|
583
|
-
const g = (d =
|
|
583
|
+
const g = (d = l.value) == null ? void 0 : d.innerText;
|
|
584
584
|
if (!g) return S();
|
|
585
|
-
|
|
585
|
+
l.value && (l.value.innerText = g), u.value = !1, e("update:name", g);
|
|
586
586
|
}, S = async () => {
|
|
587
|
-
|
|
587
|
+
l.value && (l.value.innerText = o.name), u.value = !1;
|
|
588
588
|
}, r = (g) => {
|
|
589
|
-
if (u.value ||
|
|
589
|
+
if (u.value || o.disabled) return;
|
|
590
590
|
let d = "selected";
|
|
591
|
-
|
|
591
|
+
o.canExclude && (g.ctrlKey || g.metaKey) && (d = "excluded"), o.state == d && (d = ""), d === "" && e("unselect"), d === "selected" && e("select"), d === "excluded" && e("exclude");
|
|
592
592
|
};
|
|
593
593
|
return (g, d) => (k(), b(ue, {
|
|
594
594
|
class: X({
|
|
@@ -602,7 +602,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
602
602
|
onClick: z(r, ["stop"])
|
|
603
603
|
}, {
|
|
604
604
|
default: _(() => [
|
|
605
|
-
A(
|
|
605
|
+
A(ne, {
|
|
606
606
|
id: g.id,
|
|
607
607
|
name: i.value,
|
|
608
608
|
colorId: g.colorId,
|
|
@@ -610,10 +610,10 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
610
610
|
}, null, 8, ["id", "name", "colorId", "state"]),
|
|
611
611
|
he("span", Se({
|
|
612
612
|
ref_key: "elName",
|
|
613
|
-
ref:
|
|
613
|
+
ref: l,
|
|
614
614
|
class: "top-tagSelector_tagListItemName",
|
|
615
615
|
contenteditable: u.value ? "plaintext-only" : !1
|
|
616
|
-
},
|
|
616
|
+
}, n.value, {
|
|
617
617
|
onKeydown: [
|
|
618
618
|
de(z(h, ["stop"]), ["enter"]),
|
|
619
619
|
de(z(S, ["stop"]), ["esc"])
|
|
@@ -647,7 +647,8 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
647
647
|
targetId: {},
|
|
648
648
|
filters: {},
|
|
649
649
|
useTopButton: { type: Boolean },
|
|
650
|
-
payload: {}
|
|
650
|
+
payload: {},
|
|
651
|
+
styling: {}
|
|
651
652
|
}, {
|
|
652
653
|
modelValue: {
|
|
653
654
|
required: !0
|
|
@@ -656,52 +657,52 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
656
657
|
}),
|
|
657
658
|
emits: ["update:modelValue"],
|
|
658
659
|
setup(t) {
|
|
659
|
-
const
|
|
660
|
-
model:
|
|
661
|
-
mode:
|
|
662
|
-
targetId:
|
|
663
|
-
filters:
|
|
664
|
-
payload:
|
|
660
|
+
const a = t, o = D(t, "modelValue"), e = a.useTopButton ? H : "div", i = a.useTopButton ? "html" : "default", l = {
|
|
661
|
+
model: o,
|
|
662
|
+
mode: a.mode,
|
|
663
|
+
targetId: a.targetId,
|
|
664
|
+
filters: a.filters,
|
|
665
|
+
payload: a.payload
|
|
665
666
|
};
|
|
666
|
-
return (
|
|
667
|
+
return (n, u) => {
|
|
667
668
|
const f = Ee("top-data");
|
|
668
|
-
return k(), b(Oe, { id:
|
|
669
|
+
return k(), b(Oe, { id: n.id }, {
|
|
669
670
|
default: _(() => [
|
|
670
671
|
Me((k(), b(Ke(y(e)), Se({
|
|
671
672
|
class: {
|
|
672
673
|
"top-tagSelector": !0,
|
|
673
|
-
"top-tagSelector-filter":
|
|
674
|
-
"top-tagSelector-setter_single":
|
|
675
|
-
"top-tagSelector-setter_several":
|
|
676
|
-
"top-tagSelector-selectedOne": !
|
|
677
|
-
"top-tagSelector-toTwoLine":
|
|
674
|
+
"top-tagSelector-filter": a.mode === "filter",
|
|
675
|
+
"top-tagSelector-setter_single": a.mode === "setter" && !n.filters,
|
|
676
|
+
"top-tagSelector-setter_several": a.mode === "setter" && n.filters,
|
|
677
|
+
"top-tagSelector-selectedOne": !o.value.length || o.value.length === 1,
|
|
678
|
+
"top-tagSelector-toTwoLine": o.value.length > 5
|
|
678
679
|
},
|
|
679
680
|
color: "theme",
|
|
680
|
-
styling:
|
|
681
|
-
},
|
|
681
|
+
styling: n.styling
|
|
682
|
+
}, n.$attrs), {
|
|
682
683
|
[y(i)]: _(() => [
|
|
683
|
-
!
|
|
684
|
+
!o.value.length && n.mode === "filter" ? (k(), b(ne, {
|
|
684
685
|
key: 0,
|
|
685
686
|
id: "all",
|
|
686
687
|
colorId: "",
|
|
687
|
-
name:
|
|
688
|
+
name: n.$i18n.Common.All_tags ?? "",
|
|
688
689
|
state: ""
|
|
689
690
|
}, null, 8, ["name"])) : q("", !0),
|
|
690
|
-
|
|
691
|
-
$e(
|
|
692
|
-
])) : (k(!0), B(Y, { key: 2 }, se(
|
|
691
|
+
n.mode === "setter" && n.filters ? (k(), B("div", st, [
|
|
692
|
+
$e(n.$slots, "default")
|
|
693
|
+
])) : (k(!0), B(Y, { key: 2 }, se(o.value, (h) => {
|
|
693
694
|
var S, r;
|
|
694
|
-
return k(), b(
|
|
695
|
+
return k(), b(ne, {
|
|
695
696
|
id: y(Q)(h),
|
|
696
|
-
colorId: ((S = y(
|
|
697
|
-
name: ((r = y(
|
|
697
|
+
colorId: ((S = y(ae)(h, n.tags)) == null ? void 0 : S.color_id) ?? "",
|
|
698
|
+
name: ((r = y(ae)(h, n.tags)) == null ? void 0 : r.name) ?? "",
|
|
698
699
|
state: y(Q)(h) === h ? "selected" : "excluded"
|
|
699
700
|
}, null, 8, ["id", "colorId", "name", "state"]);
|
|
700
701
|
}), 256))
|
|
701
702
|
]),
|
|
702
703
|
_: 2
|
|
703
|
-
}, 1040, ["class"])), [
|
|
704
|
-
[f,
|
|
704
|
+
}, 1040, ["class", "styling"])), [
|
|
705
|
+
[f, l, "topTagSelectorTarget"]
|
|
705
706
|
])
|
|
706
707
|
]),
|
|
707
708
|
_: 3
|
|
@@ -719,27 +720,28 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
719
720
|
singleMode: { type: Boolean },
|
|
720
721
|
requiredForSetter: { type: Boolean, default: !0 },
|
|
721
722
|
maxTagsForSetter: {},
|
|
722
|
-
emitDelay: { default: 500 }
|
|
723
|
+
emitDelay: { default: 500 },
|
|
724
|
+
styling: {}
|
|
723
725
|
}, {
|
|
724
726
|
modelValue: {
|
|
725
727
|
required: !0
|
|
726
728
|
},
|
|
727
729
|
modelModifiers: {},
|
|
728
730
|
tags: {
|
|
729
|
-
default: Ae(
|
|
731
|
+
default: Ae(ot)
|
|
730
732
|
},
|
|
731
733
|
tagsModifiers: {}
|
|
732
734
|
}),
|
|
733
735
|
emits: /* @__PURE__ */ N(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
|
|
734
|
-
setup(t, { emit:
|
|
735
|
-
const
|
|
736
|
-
|
|
736
|
+
setup(t, { emit: a }) {
|
|
737
|
+
const o = R(), e = t, i = D(t, "modelValue"), l = D(t, "tags"), n = a, u = Re((s, c) => {
|
|
738
|
+
n(s, c);
|
|
737
739
|
}, e.emitDelay);
|
|
738
|
-
e.singleMode && !i.value.length && (i.value = [
|
|
740
|
+
e.singleMode && !i.value.length && (i.value = [l.value[0].id]);
|
|
739
741
|
const f = e.id ?? "top-popup-id-" + Math.random(), h = F("add"), S = () => {
|
|
740
742
|
var v;
|
|
741
|
-
const s = " " + ((v =
|
|
742
|
-
return c.set("add", { value: "add", title:
|
|
743
|
+
const s = " " + ((v = o.Common.Tags) == null ? void 0 : v.toLowerCase()), c = /* @__PURE__ */ new Map();
|
|
744
|
+
return c.set("add", { value: "add", title: o.Common.Add + s }), c.set("replace", { value: "replace", title: o.Common.Replace + s }), c.set("delete", { value: "delete", title: o.Common.Delete + s }), c;
|
|
743
745
|
};
|
|
744
746
|
let r = we({
|
|
745
747
|
model: i,
|
|
@@ -778,12 +780,12 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
778
780
|
}), C = () => {
|
|
779
781
|
const s = prompt("", "New tag");
|
|
780
782
|
if (!s || s === "New tag") return;
|
|
781
|
-
const c =
|
|
782
|
-
|
|
783
|
+
const c = l.value.length + 1;
|
|
784
|
+
l.value.push({
|
|
783
785
|
id: String(c),
|
|
784
786
|
name: s,
|
|
785
787
|
color_id: String((c - 1) % 10 + 1)
|
|
786
|
-
}),
|
|
788
|
+
}), n("tagsChanged", l.value);
|
|
787
789
|
}, V = (s) => {
|
|
788
790
|
var c;
|
|
789
791
|
if (r.value = W(s.elPopupOpener, "topTagSelectorTarget"), !r.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
|
|
@@ -791,7 +793,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
791
793
|
console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
|
|
792
794
|
return;
|
|
793
795
|
}
|
|
794
|
-
!J.state.isMobile && !J.state.isMobileUA &&
|
|
796
|
+
!J.state.isMobile && !J.state.isMobileUA && l.value && $(s.elPopup).sortable({
|
|
795
797
|
items: 'li:has([data-tag_id]:not([data-tag_id="all"]))',
|
|
796
798
|
/**
|
|
797
799
|
* @todo Удалить `[contenteditable="true"]` через пол года после выхода версии firefox с поддержкой contenteditable plaintext-only, включая бета версии
|
|
@@ -799,16 +801,16 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
799
801
|
cancel: '[contenteditable="plaintext-only"], [contenteditable="true"]',
|
|
800
802
|
distance: 10,
|
|
801
803
|
stop: function(v, I) {
|
|
802
|
-
if (!
|
|
804
|
+
if (!l.value) return;
|
|
803
805
|
const L = $(I.item).parent().find("[data-tag_id]"), U = [];
|
|
804
806
|
L.each((Z, j) => {
|
|
805
|
-
if (!
|
|
807
|
+
if (!l.value) return;
|
|
806
808
|
const O = $(j).attr("data-tag_id");
|
|
807
809
|
U.push(O);
|
|
808
|
-
}),
|
|
809
|
-
const O = U.findIndex((
|
|
810
|
+
}), l.value.sort((Z, j) => {
|
|
811
|
+
const O = U.findIndex((oe) => oe === Z.id), _e = U.findIndex((oe) => oe === j.id);
|
|
810
812
|
return O - _e;
|
|
811
|
-
}), u("tagsChanged",
|
|
813
|
+
}), u("tagsChanged", l.value);
|
|
812
814
|
}
|
|
813
815
|
});
|
|
814
816
|
}, m = (s) => {
|
|
@@ -821,10 +823,11 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
821
823
|
modelValue: i.value,
|
|
822
824
|
"onUpdate:modelValue": c[0] || (c[0] = (v) => i.value = v),
|
|
823
825
|
id: y(f),
|
|
824
|
-
tags:
|
|
826
|
+
tags: l.value,
|
|
827
|
+
styling: s.styling,
|
|
825
828
|
mode: "filter",
|
|
826
829
|
useTopButton: ""
|
|
827
|
-
}, null, 8, ["modelValue", "id", "tags"]),
|
|
830
|
+
}, null, 8, ["modelValue", "id", "tags", "styling"]),
|
|
828
831
|
A(Ie, {
|
|
829
832
|
id: y(f),
|
|
830
833
|
class: X(T.value),
|
|
@@ -841,7 +844,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
841
844
|
state: y(r).model.value.length ? "" : "selected",
|
|
842
845
|
onSelect: c[3] || (c[3] = (v) => y(r).model.value = [])
|
|
843
846
|
}, null, 8, ["name", "state"])) : q("", !0),
|
|
844
|
-
(k(!0), B(Y, null, se(
|
|
847
|
+
(k(!0), B(Y, null, se(l.value, (v) => (k(), b(ye, {
|
|
845
848
|
key: v.id,
|
|
846
849
|
id: v.id,
|
|
847
850
|
colorId: v.color_id,
|
|
@@ -854,10 +857,10 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
854
857
|
onSelect: (I) => x(v.id, "select"),
|
|
855
858
|
onExclude: (I) => x(v.id, "exclude"),
|
|
856
859
|
"onUpdate:name": (I) => {
|
|
857
|
-
v.name = I, y(u)("tagsChanged",
|
|
860
|
+
v.name = I, y(u)("tagsChanged", l.value);
|
|
858
861
|
}
|
|
859
862
|
}, null, 8, ["id", "colorId", "name", "state", "canExclude", "editable", "disabled", "onUnselect", "onSelect", "onExclude", "onUpdate:name"]))), 128)),
|
|
860
|
-
s.tagsEditable &&
|
|
863
|
+
s.tagsEditable && l.value.length < s.tagsMax && l.value.length < 20 ? (k(), b(ue, {
|
|
861
864
|
key: 1,
|
|
862
865
|
"data-top-icon": "",
|
|
863
866
|
onClick: z(C, ["stop"])
|
|
@@ -909,64 +912,64 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
909
912
|
]), 1032, ["id", "class"])
|
|
910
913
|
], 64));
|
|
911
914
|
}
|
|
912
|
-
}), St = (t,
|
|
915
|
+
}), St = (t, a) => E(() => ce(t).filter((i) => i.on >= 0 || i.id === a).map((i) => ({
|
|
913
916
|
value: i.id,
|
|
914
917
|
title: i.url + ` [${i.id}]`,
|
|
915
|
-
icon: i.id === ce(
|
|
918
|
+
icon: i.id === ce(a) ? "" : "",
|
|
916
919
|
content: i.name
|
|
917
|
-
}))), It = (t,
|
|
918
|
-
|
|
919
|
-
const e = Ue.genElPopupOpener("div",
|
|
920
|
+
}))), It = (t, a, o) => {
|
|
921
|
+
a || (a = { id: t.id }), a.id = t.id;
|
|
922
|
+
const e = Ue.genElPopupOpener("div", a);
|
|
920
923
|
return e.classList.add("top-tagSelector"), t.useTopButton && e.classList.add("top-button", "top-color_theme"), t.mode === "filter" && e.classList.add("top-tagSelector-filter"), t.mode === "setter" && !t.filters && e.classList.add("top-tagSelector-setter_single"), t.mode === "setter" && t.filters && e.classList.add("top-tagSelector-setter_several"), e.onclick = (i) => {
|
|
921
924
|
i.preventDefault(), i.stopPropagation(), e.onclick = null;
|
|
922
|
-
const
|
|
923
|
-
model:
|
|
925
|
+
const l = F(t.modelValue), n = {
|
|
926
|
+
model: l,
|
|
924
927
|
mode: t.mode,
|
|
925
928
|
targetId: t.targetId,
|
|
926
929
|
filters: t.filters,
|
|
927
930
|
payload: t.payload
|
|
928
931
|
};
|
|
929
|
-
W(e, "topTagSelectorTarget",
|
|
930
|
-
t.modelValue =
|
|
932
|
+
W(e, "topTagSelectorTarget", n), delete e.dataset.topPopupDisabled, ge(t.modelValue) || w(l, () => {
|
|
933
|
+
t.modelValue = l.value, ee(e, t, o);
|
|
931
934
|
}), e.click();
|
|
932
|
-
}, ge(t.modelValue) ? w(t.modelValue, () => ee(e, t,
|
|
935
|
+
}, ge(t.modelValue) ? w(t.modelValue, () => ee(e, t, o)) : W(e, "topTagSelectorRender", (i) => {
|
|
933
936
|
t.modelValue = i;
|
|
934
|
-
const
|
|
935
|
-
|
|
936
|
-
}), ee(e, t,
|
|
937
|
-
}, xt = (t,
|
|
938
|
-
var
|
|
939
|
-
(
|
|
940
|
-
}, ee = (t,
|
|
937
|
+
const l = W(e, "topTagSelectorTarget");
|
|
938
|
+
l && (l.model.value = i), ee(e, t, o);
|
|
939
|
+
}), ee(e, t, o), e;
|
|
940
|
+
}, xt = (t, a) => {
|
|
941
|
+
var o;
|
|
942
|
+
(o = W(t, "topTagSelectorRender")) == null || o(a);
|
|
943
|
+
}, ee = (t, a, o) => {
|
|
941
944
|
var i;
|
|
942
|
-
const e = y(
|
|
943
|
-
if (t.classList.toggle("top-tagSelector-selectedOne", !e.length || e.length === 1), t.classList.toggle("top-tagSelector-toTwoLine", e.length > 5),
|
|
944
|
-
t.innerHTML = `<div>${
|
|
945
|
+
const e = y(a.modelValue);
|
|
946
|
+
if (t.classList.toggle("top-tagSelector-selectedOne", !e.length || e.length === 1), t.classList.toggle("top-tagSelector-toTwoLine", e.length > 5), a.mode === "setter" && a.filters) {
|
|
947
|
+
t.innerHTML = `<div>${o}</div>`;
|
|
945
948
|
return;
|
|
946
949
|
}
|
|
947
|
-
if (t.innerHTML = "", !e.length &&
|
|
948
|
-
const
|
|
950
|
+
if (t.innerHTML = "", !e.length && a.mode === "filter") {
|
|
951
|
+
const l = pe({
|
|
949
952
|
id: "all",
|
|
950
953
|
colorId: "",
|
|
951
954
|
name: ((i = R().Common) == null ? void 0 : i.All_tags) ?? "",
|
|
952
955
|
state: ""
|
|
953
956
|
});
|
|
954
|
-
t.append(
|
|
957
|
+
t.append(l);
|
|
955
958
|
}
|
|
956
|
-
e.forEach((
|
|
959
|
+
e.forEach((l) => {
|
|
957
960
|
var u, f;
|
|
958
|
-
const
|
|
959
|
-
id: Q(
|
|
960
|
-
colorId: ((u =
|
|
961
|
-
name: ((f =
|
|
962
|
-
state: Q(
|
|
961
|
+
const n = pe({
|
|
962
|
+
id: Q(l),
|
|
963
|
+
colorId: ((u = ae(l, a.tags)) == null ? void 0 : u.color_id) ?? "",
|
|
964
|
+
name: ((f = ae(l, a.tags)) == null ? void 0 : f.name) ?? "",
|
|
965
|
+
state: Q(l) === l ? "selected" : "excluded"
|
|
963
966
|
});
|
|
964
|
-
t.append(
|
|
967
|
+
t.append(n);
|
|
965
968
|
});
|
|
966
969
|
}, pe = (t) => {
|
|
967
|
-
const
|
|
968
|
-
return
|
|
969
|
-
}, kt = Je, Ct =
|
|
970
|
+
const a = document.createElement("div");
|
|
971
|
+
return a.classList.add("top-tagSelector_tagIcon"), a.classList.toggle("top-tagSelector-active", !!t.state), a.classList.toggle("top-tagSelector-excluded", t.state === "excluded"), a.dataset.tag_id = t.id, a.dataset.tag_color_id = t.colorId, a.title = t.name, a;
|
|
972
|
+
}, kt = Je, Ct = nt, Tt = ut, _t = Te, bt = ne;
|
|
970
973
|
export {
|
|
971
974
|
kt as TopSelectorCompetitors,
|
|
972
975
|
Ct as TopSelectorRegion,
|