@topvisor/ui 1.5.1-1 → 1.5.1-topProjectSelector.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/.chunks/{api-CBMWBeCS.amd.js → api-a3D-SXH-.amd.js} +2 -2
  2. package/.chunks/{api-CBMWBeCS.amd.js.map → api-a3D-SXH-.amd.js.map} +1 -1
  3. package/.chunks/{api-CBMWBeCS.esm.js → api-a3D-SXH-.esm.js} +2 -2
  4. package/.chunks/{api-CBMWBeCS.esm.js.map → api-a3D-SXH-.esm.js.map} +1 -1
  5. package/.chunks/{app-DyAn8Ury.amd.js → app-BDGZ1d0R.amd.js} +2 -2
  6. package/.chunks/{app-DyAn8Ury.amd.js.map → app-BDGZ1d0R.amd.js.map} +1 -1
  7. package/.chunks/{app-DyAn8Ury.esm.js → app-BDGZ1d0R.esm.js} +6 -6
  8. package/.chunks/app-BDGZ1d0R.esm.js.map +1 -0
  9. package/.chunks/{datepicker-BmHkZfBO.amd.js → datepicker-DuOSAFQy.amd.js} +2 -2
  10. package/.chunks/{datepicker-BmHkZfBO.amd.js.map → datepicker-DuOSAFQy.amd.js.map} +1 -1
  11. package/.chunks/{datepicker-BmHkZfBO.esm.js → datepicker-DuOSAFQy.esm.js} +2 -2
  12. package/.chunks/{datepicker-BmHkZfBO.esm.js.map → datepicker-DuOSAFQy.esm.js.map} +1 -1
  13. package/.chunks/{dialog-bIV6Y2PF.amd.js → dialog-ClCAM1nI.amd.js} +2 -2
  14. package/.chunks/{dialog-bIV6Y2PF.amd.js.map → dialog-ClCAM1nI.amd.js.map} +1 -1
  15. package/.chunks/{dialog-bIV6Y2PF.esm.js → dialog-ClCAM1nI.esm.js} +4 -4
  16. package/.chunks/{dialog-bIV6Y2PF.esm.js.map → dialog-ClCAM1nI.esm.js.map} +1 -1
  17. package/.chunks/{dialog_regionSelectorRegions-gPKA93af.amd.js → dialog_regionSelectorRegions-DFZTiYi6.amd.js} +2 -2
  18. package/.chunks/{dialog_regionSelectorRegions-gPKA93af.amd.js.map → dialog_regionSelectorRegions-DFZTiYi6.amd.js.map} +1 -1
  19. package/.chunks/{dialog_regionSelectorRegions-gPKA93af.esm.js → dialog_regionSelectorRegions-DFZTiYi6.esm.js} +5 -5
  20. package/.chunks/{dialog_regionSelectorRegions-gPKA93af.esm.js.map → dialog_regionSelectorRegions-DFZTiYi6.esm.js.map} +1 -1
  21. package/.chunks/{dialogs-CE8F7A0M.amd.js → dialogs-CjrddGh6.amd.js} +2 -2
  22. package/.chunks/{dialogs-CE8F7A0M.amd.js.map → dialogs-CjrddGh6.amd.js.map} +1 -1
  23. package/.chunks/{dialogs-CE8F7A0M.esm.js → dialogs-CjrddGh6.esm.js} +3 -3
  24. package/.chunks/{dialogs-CE8F7A0M.esm.js.map → dialogs-CjrddGh6.esm.js.map} +1 -1
  25. package/.chunks/forms-C2ItFa61.amd.js +2 -0
  26. package/.chunks/forms-C2ItFa61.amd.js.map +1 -0
  27. package/.chunks/{forms-DByj6MWE.esm.js → forms-C2ItFa61.esm.js} +10 -6
  28. package/.chunks/forms-C2ItFa61.esm.js.map +1 -0
  29. package/.chunks/{formsExt-LekJqOck.amd.js → formsExt-6Nz907Ry.amd.js} +2 -2
  30. package/.chunks/formsExt-6Nz907Ry.amd.js.map +1 -0
  31. package/.chunks/{formsExt-LekJqOck.esm.js → formsExt-6Nz907Ry.esm.js} +10 -7
  32. package/.chunks/formsExt-6Nz907Ry.esm.js.map +1 -0
  33. package/.chunks/{notice-Ds5K-ei_.amd.js → notice-CBJBDgby.amd.js} +2 -2
  34. package/.chunks/{notice-Ds5K-ei_.amd.js.map → notice-CBJBDgby.amd.js.map} +1 -1
  35. package/.chunks/{notice-Ds5K-ei_.esm.js → notice-CBJBDgby.esm.js} +2 -2
  36. package/.chunks/{notice-Ds5K-ei_.esm.js.map → notice-CBJBDgby.esm.js.map} +1 -1
  37. package/.chunks/{popup-Cvyqovn6.amd.js → popup-B06vbv6B.amd.js} +2 -2
  38. package/.chunks/{popup-Cvyqovn6.amd.js.map → popup-B06vbv6B.amd.js.map} +1 -1
  39. package/.chunks/{popup-Cvyqovn6.esm.js → popup-B06vbv6B.esm.js} +3 -3
  40. package/.chunks/{popup-Cvyqovn6.esm.js.map → popup-B06vbv6B.esm.js.map} +1 -1
  41. package/.chunks/{popup-BxGYabRi.amd.js → popup-CFYtl5_r.amd.js} +2 -2
  42. package/.chunks/{popup-BxGYabRi.amd.js.map → popup-CFYtl5_r.amd.js.map} +1 -1
  43. package/.chunks/{popup-BxGYabRi.esm.js → popup-CFYtl5_r.esm.js} +3 -3
  44. package/.chunks/{popup-BxGYabRi.esm.js.map → popup-CFYtl5_r.esm.js.map} +1 -1
  45. package/.chunks/{utils-sPSU5tXH.amd.js → utils-BTHruVpQ.amd.js} +2 -2
  46. package/.chunks/{utils-sPSU5tXH.amd.js.map → utils-BTHruVpQ.amd.js.map} +1 -1
  47. package/.chunks/{utils-sPSU5tXH.esm.js → utils-BTHruVpQ.esm.js} +3 -3
  48. package/.chunks/{utils-sPSU5tXH.esm.js.map → utils-BTHruVpQ.esm.js.map} +1 -1
  49. package/.chunks/{utils-mRLC32Uo.amd.js → utils-DJV2mWZE.amd.js} +2 -2
  50. package/.chunks/{utils-mRLC32Uo.amd.js.map → utils-DJV2mWZE.amd.js.map} +1 -1
  51. package/.chunks/{utils-mRLC32Uo.esm.js → utils-DJV2mWZE.esm.js} +4 -4
  52. package/.chunks/{utils-mRLC32Uo.esm.js.map → utils-DJV2mWZE.esm.js.map} +1 -1
  53. package/.chunks/{worker-Cx7e_9o9.amd.js → worker-BIUaZFVX.amd.js} +2 -2
  54. package/.chunks/{worker-Cx7e_9o9.amd.js.map → worker-BIUaZFVX.amd.js.map} +1 -1
  55. package/.chunks/{worker-Cx7e_9o9.esm.js → worker-BIUaZFVX.esm.js} +3 -3
  56. package/.chunks/{worker-Cx7e_9o9.esm.js.map → worker-BIUaZFVX.esm.js.map} +1 -1
  57. package/api/index.amd.js +1 -1
  58. package/api/index.amd.js.map +1 -1
  59. package/api/index.js +1 -1
  60. package/assets/project.css +1 -1
  61. package/autoload-css-manifest.amd.json +4 -4
  62. package/autoload-css-manifest.json +4 -4
  63. package/charts/charts.amd.js +1 -1
  64. package/charts/charts.amd.js.map +1 -1
  65. package/charts/charts.js +1 -1
  66. package/core/app.amd.js +1 -1
  67. package/core/app.amd.js.map +1 -1
  68. package/core/app.js +4 -4
  69. package/dialog/dialog.amd.js +1 -1
  70. package/dialog/dialog.amd.js.map +1 -1
  71. package/dialog/dialog.js +3 -3
  72. package/forms/forms.amd.js +1 -1
  73. package/forms/forms.amd.js.map +1 -1
  74. package/forms/forms.js +1 -1
  75. package/formsExt/formsExt.amd.js +1 -1
  76. package/formsExt/formsExt.amd.js.map +1 -1
  77. package/formsExt/formsExt.js +1 -1
  78. package/layout/layout.amd.js +1 -1
  79. package/layout/layout.amd.js.map +1 -1
  80. package/layout/layout.js +1 -1
  81. package/package.json +1 -1
  82. package/popup/popup.amd.js +1 -1
  83. package/popup/popup.amd.js.map +1 -1
  84. package/popup/popup.js +1 -1
  85. package/popup/worker.amd.js +1 -1
  86. package/popup/worker.amd.js.map +1 -1
  87. package/popup/worker.js +1 -1
  88. package/project/project.amd.js +1 -1
  89. package/project/project.amd.js.map +1 -1
  90. package/project/project.js +57 -63
  91. package/project/project.js.map +1 -1
  92. package/src/api/api/types/api.d.ts +5 -1
  93. package/src/core/core/core.d.ts +2 -0
  94. package/src/core/core/options.d.ts +8 -0
  95. package/src/core/core/state.d.ts +2 -0
  96. package/src/core/plugins/core.d.ts +1 -1
  97. package/tabsView/tabsView.amd.js +1 -1
  98. package/tabsView/tabsView.amd.js.map +1 -1
  99. package/tabsView/tabsView.js +2 -2
  100. package/utils/clipboard.amd.js +1 -1
  101. package/utils/clipboard.amd.js.map +1 -1
  102. package/utils/clipboard.js +1 -1
  103. package/utils/date.amd.js +1 -1
  104. package/utils/date.amd.js.map +1 -1
  105. package/utils/date.js +1 -1
  106. package/utils/device.amd.js +1 -1
  107. package/utils/device.amd.js.map +1 -1
  108. package/utils/device.js +1 -1
  109. package/utils/lodash.amd.js +1 -1
  110. package/utils/lodash.amd.js.map +1 -1
  111. package/utils/lodash.js +1 -1
  112. package/utils/price.amd.js +1 -1
  113. package/utils/price.amd.js.map +1 -1
  114. package/utils/price.js +1 -1
  115. package/utils/searchers.amd.js +1 -1
  116. package/utils/searchers.amd.js.map +1 -1
  117. package/utils/searchers.js +1 -1
  118. package/utils/string.amd.js +1 -1
  119. package/utils/string.amd.js.map +1 -1
  120. package/utils/string.js +1 -1
  121. package/.chunks/app-DyAn8Ury.esm.js.map +0 -1
  122. package/.chunks/forms-DByj6MWE.amd.js +0 -2
  123. package/.chunks/forms-DByj6MWE.amd.js.map +0 -1
  124. package/.chunks/forms-DByj6MWE.esm.js.map +0 -1
  125. package/.chunks/formsExt-LekJqOck.amd.js.map +0 -1
  126. package/.chunks/formsExt-LekJqOck.esm.js.map +0 -1
@@ -5,19 +5,19 @@
5
5
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
6
6
  /* end import css */
7
7
 
8
- import "../.chunks/api-CBMWBeCS.esm.js";
9
- import { E as e, O as t, P as n, h as r, n as i } from "../.chunks/forms-DByj6MWE.esm.js";
8
+ import "../.chunks/api-a3D-SXH-.esm.js";
9
+ import { E as e, O as t, P as n, h as r, n as i } from "../.chunks/forms-C2ItFa61.esm.js";
10
10
  import { n as a, t as o } from "../.chunks/field-CjkpGeA7.esm.js";
11
11
  import { storage as s } from "../utils/dom.js";
12
- import { t as c } from "../.chunks/worker-Cx7e_9o9.esm.js";
13
- import "../.chunks/app-DyAn8Ury.esm.js";
12
+ import { t as c } from "../.chunks/worker-BIUaZFVX.esm.js";
13
+ import "../.chunks/app-BDGZ1d0R.esm.js";
14
14
  import { validUrl as l } from "../utils/check.js";
15
15
  import { ellipsis as u } from "../utils/string.js";
16
- import { t as d } from "../.chunks/utils-sPSU5tXH.esm.js";
16
+ import { t as d } from "../.chunks/utils-BTHruVpQ.esm.js";
17
17
  import { getDeviceGIcon as f, getLangLabel as p, getSearcherGIcon as m } from "../utils/searchers.js";
18
18
  import { invertKeyboardLayout as h } from "../utils/keyboard.js";
19
- import { c as g, n as _, o as v, r as ee, s as te } from "../.chunks/popup-Cvyqovn6.esm.js";
20
- import { d as ne, s as y, u as b } from "../.chunks/formsExt-LekJqOck.esm.js";
19
+ import { c as g, n as _, o as v, r as ee, s as te } from "../.chunks/popup-B06vbv6B.esm.js";
20
+ import { d as ne, s as y, u as b } from "../.chunks/formsExt-6Nz907Ry.esm.js";
21
21
  import "../popup/worker.js";
22
22
  import { Fragment as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as re, createTextVNode as D, createVNode as O, defineComponent as k, isRef as ie, mergeModels as A, mergeProps as ae, nextTick as oe, normalizeClass as j, onMounted as se, openBlock as M, reactive as ce, ref as N, renderList as P, renderSlot as le, resolveComponent as ue, resolveDirective as de, resolveDynamicComponent as fe, shallowRef as pe, toDisplayString as F, toValue as me, unref as I, useModel as L, watch as R, withCtx as z, withDirectives as he, withKeys as ge, withModifiers as B } from "vue";
23
23
  //#region src/components/project/competitorSelector/competitorSelector.vue?vue&type=script&setup=true&lang.ts
@@ -128,37 +128,37 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
128
128
  }, Ee = () => (V.name = e().Common.Autoselect, V), De = () => (Ee(), we.name = e().Common.Autoselect, console.log(we), we), Oe = () => (Te.name = e().Keywords.Without_region, Te), ke = (e = "", t = !1, n = []) => {
129
129
  let r;
130
130
  return r = e ? je(n, e) : Ae(n), t && r.set(-2, De()), r.size || r.set(-2, Ce), r;
131
- }, Ae = (e, t = !0, n = [], r = "") => {
132
- let i = /* @__PURE__ */ new Map();
131
+ }, Ae = (e, n = !0, r = [], i = "") => {
132
+ let a = /* @__PURE__ */ new Map();
133
133
  return e.forEach((e) => {
134
- if (!e.enabled || r && typeof e.key == "number" && e.key > 1) return;
135
- let a = { ...e };
136
- a.regionByIndex = /* @__PURE__ */ new Map(), e.regions && e.regions.forEach((e) => {
137
- if (t && !e.enabled) return;
138
- let n = { ...e };
139
- a.regionByIndex.set(n.index, n);
140
- }), !a.regionByIndex.size && n.length, (!e.regions || a.regionByIndex.size || n.length) && i.set(a.key, a);
141
- }), n.forEach((e) => {
142
- if (i.has(e)) return;
134
+ if (!e.enabled || i && typeof e.key == "number" && e.key > 1) return;
135
+ let t = { ...e };
136
+ t.regionByIndex = /* @__PURE__ */ new Map(), e.regions && e.regions.forEach((e) => {
137
+ if (n && !e.enabled) return;
138
+ let r = { ...e };
139
+ t.regionByIndex.set(r.index, r);
140
+ }), !t.regionByIndex.size && r.length, (!e.regions || t.regionByIndex.size || r.length) && a.set(t.key, t);
141
+ }), r.forEach((e) => {
142
+ if (a.has(e)) return;
143
143
  let t = {
144
144
  key: e,
145
145
  name: xe[e],
146
146
  regions: [],
147
147
  regionByIndex: /* @__PURE__ */ new Map()
148
148
  };
149
- i.set(t.key, t);
150
- }), i;
151
- }, je = (e, t) => {
152
- let n = Ae(e, !1, [0, 1], t);
153
- if (n.has(2)) {
154
- let e = n.get(2);
149
+ a.set(t.key, t);
150
+ }), t.state.isProjectShowYandex || a.delete(0), a;
151
+ }, je = (e, n) => {
152
+ let r = Ae(e, !1, [0, 1], n);
153
+ if (r.has(2)) {
154
+ let e = r.get(2);
155
155
  e && (e.regionByIndex = /* @__PURE__ */ new Map());
156
156
  }
157
- return (t === "volume" || t === "cost_forecast") && n.forEach((e) => {
157
+ return (n === "volume" || n === "cost_forecast") && t.state.isProjectShowGlobal && r.forEach((e) => {
158
158
  if (!e.regionByIndex) return;
159
159
  let t = { ...Oe() };
160
160
  e.regionByIndex.set(t.index, t);
161
- }), n;
161
+ }), r;
162
162
  }, Me = (e, t, n = []) => {
163
163
  let r = ke(e, !1, n), i;
164
164
  return r.forEach((n) => {
@@ -166,7 +166,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
166
166
  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;
167
167
  }), i)) return !1;
168
168
  }), i;
169
- }, Ne = d(() => import("../.chunks/dialog_regionSelectorRegions-gPKA93af.esm.js")), Pe = (t, n) => {
169
+ }, Ne = d(() => import("../.chunks/dialog_regionSelectorRegions-DFZTiYi6.esm.js")), Pe = (t, n) => {
170
170
  let r = e();
171
171
  return {
172
172
  searcherKey: N(n.value.keys().next().value ?? -2),
@@ -1044,13 +1044,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1044
1044
  icon: "",
1045
1045
  right: "2"
1046
1046
  }
1047
- ], o = S(() => {
1048
- if (!window.page?.data?.aiTracker) {
1049
- let e = a.findIndex((e) => e.href.includes("ai-tracker"));
1050
- e !== -1 && a.splice(e, 1);
1051
- }
1052
- return n.right.includes("0") ? a.filter((e) => n.right[e.right] === "1") : a;
1053
- });
1047
+ ], o = S(() => n.right.includes("0") ? a.filter((e) => n.right[e.right] === "1") : a);
1054
1048
  return (e, n) => {
1055
1049
  let r = ue("TopButton");
1056
1050
  return M(), C(I(te), {
@@ -1059,7 +1053,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1059
1053
  pos: "2"
1060
1054
  }, {
1061
1055
  opener: z(() => [O(r, {
1062
- class: "top-projectSelectorSubmenu_opener",
1056
+ class: "top-projectSelectorSubmenu_opener top-popup_listMore",
1063
1057
  "data-top-icon": "",
1064
1058
  color: "theme"
1065
1059
  })]),
@@ -1093,10 +1087,10 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1093
1087
  return n;
1094
1088
  }, Dt = (e, t = !0) => {
1095
1089
  q.value = void 0, localStorage.removeItem(K + e), t && wt.value++;
1096
- }, Ot = { class: "top-projectSelector_item" }, kt = { class: "top-projectSelector_itemText" }, At = { class: "top-comment" }, jt = {
1090
+ }, Ot = { class: "top-projectSelector_itemText" }, kt = { class: "top-comment" }, At = {
1097
1091
  key: 0,
1098
1092
  class: "top-comment"
1099
- }, Mt = ["href", "onClick"], Nt = 1e3, Pt = /* @__PURE__ */ k({
1093
+ }, jt = ["href", "onClick"], Mt = 1e3, Nt = /* @__PURE__ */ k({
1100
1094
  __name: "projectSelector",
1101
1095
  props: /* @__PURE__ */ A({
1102
1096
  modelValue: {},
@@ -1122,7 +1116,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1122
1116
  let n = e();
1123
1117
  if (!window.mo?.user?.id) throw Error("TopProjectSelector: не удалось определить userId. Компонент требует авторизованного пользователя (см. window.mo.user.id)");
1124
1118
  let r = window.mo.user.id, i = t, a = L(t, "modelValue"), o = gt(i.client, r), s = _t(i.client), c = N(Et(r)), d = N(null), f = S(() => i.placeholder ?? n.Projects.Select_project), p = S(() => !q.value || !i.excludeProjectId ? q.value : q.value.filter((e) => e.id !== i.excludeProjectId)), m = S(() => {
1125
- if (!(!c.value && c.value !== 0)) return c.value < Nt ? "static" : "api";
1119
+ if (!(!c.value && c.value !== 0)) return c.value < Mt ? "static" : "api";
1126
1120
  });
1127
1121
  R(wt, () => {
1128
1122
  v();
@@ -1130,7 +1124,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1130
1124
  !a.value.id || !i.addLinksToProjects || dt(ft(a.value.id));
1131
1125
  });
1132
1126
  let h = async () => {
1133
- J.value ||= gt(i.client, r, { limit: Nt }).call();
1127
+ J.value ||= gt(i.client, r, { limit: Mt }).call();
1134
1128
  let e = await J.value;
1135
1129
  if (e.errors) {
1136
1130
  J.value = null;
@@ -1204,13 +1198,13 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1204
1198
  onAppendItem: _,
1205
1199
  onOpen: ee
1206
1200
  }, {
1207
- item: z(({ item: i }) => [E("div", Ot, [E("div", kt, [i.id ? (M(), T(x, { key: 0 }, [D(F(I(u)(i.name, 20)) + " ", 1), E("span", At, " id " + F(i.id), 1)], 64)) : (M(), T(x, { key: 1 }, [i.listItemProps?.type ? w("", !0) : (M(), T("div", jt, F(e.$i18n.Projects.Add_project) + ": ", 1)), D(" " + F(i.name), 1)], 64))]), i.id ? (M(), T(x, { key: 0 }, [
1201
+ item: z(({ item: i }) => [E("div", Ot, [i.id ? (M(), T(x, { key: 0 }, [D(F(I(u)(i.name, 20)) + " ", 1), E("span", kt, " id " + F(i.id), 1)], 64)) : (M(), T(x, { key: 1 }, [i.listItemProps?.type ? w("", !0) : (M(), T("div", At, F(e.$i18n.Projects.Add_project) + ": ", 1)), D(" " + F(i.name), 1)], 64))]), i.id ? (M(), T(x, { key: 0 }, [
1208
1202
  t.addLinksToProjects ? (M(), T("a", {
1209
1203
  key: 0,
1210
1204
  class: "top-projectSelector_itemLink",
1211
1205
  href: I(ft)(i.id),
1212
1206
  onClick: B((e) => I(dt)(I(ft)(i.id), e), ["prevent", "stop"])
1213
- }, null, 8, Mt)) : w("", !0),
1207
+ }, null, 8, jt)) : w("", !0),
1214
1208
  e.$core.state.isMobile ? w("", !0) : (M(), C(r, {
1215
1209
  key: 1,
1216
1210
  class: "top-projectSelector_itemExtLink",
@@ -1229,7 +1223,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1229
1223
  "right",
1230
1224
  "url"
1231
1225
  ])
1232
- ], 64)) : w("", !0)])]),
1226
+ ], 64)) : w("", !0)]),
1233
1227
  _: 1
1234
1228
  }, 8, [
1235
1229
  "modelValue",
@@ -1245,11 +1239,11 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1245
1239
  ]);
1246
1240
  };
1247
1241
  }
1248
- }), Ft = (e) => "-" + e, Y = (e) => e[0] === "-" ? e.substring(1) : e, X = (e, t) => {
1242
+ }), Pt = (e) => "-" + e, Y = (e) => e[0] === "-" ? e.substring(1) : e, X = (e, t) => {
1249
1243
  e = Y(e);
1250
1244
  let n = t.find((t) => t.id === e);
1251
1245
  if (n) return n;
1252
- }, It = (e, t, n) => {
1246
+ }, Ft = (e, t, n) => {
1253
1247
  t ||= { id: e.id }, t.id = e.id, t.pos ??= "3", t.notch ??= !0, t.posBy ??= "fixed";
1254
1248
  let r = c.genElPopupOpener("div", t);
1255
1249
  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) => {
@@ -1269,7 +1263,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1269
1263
  let i = s(r, "topTagSelectorTarget");
1270
1264
  i && (i.model.value = t), Z(r, e, n);
1271
1265
  }), Z(r, e, n), r;
1272
- }, Lt = (e, t) => {
1266
+ }, It = (e, t) => {
1273
1267
  s(e, "topTagSelectorRender")?.(t);
1274
1268
  }, Z = (t, n, r) => {
1275
1269
  let i = I(n.modelValue);
@@ -1278,7 +1272,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1278
1272
  return;
1279
1273
  }
1280
1274
  if (t.innerHTML = "", !i.length && n.mode === "filter") {
1281
- let n = Rt({
1275
+ let n = Lt({
1282
1276
  id: "all",
1283
1277
  colorId: "",
1284
1278
  name: e().Common?.All_tags ?? "",
@@ -1287,7 +1281,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1287
1281
  t.append(n);
1288
1282
  }
1289
1283
  i.forEach((e) => {
1290
- let r = Rt({
1284
+ let r = Lt({
1291
1285
  id: Y(e),
1292
1286
  colorId: X(e, n.tags)?.color_id ?? "",
1293
1287
  name: X(e, n.tags)?.name ?? "",
@@ -1295,10 +1289,10 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1295
1289
  });
1296
1290
  t.append(r);
1297
1291
  });
1298
- }, Rt = (e) => {
1292
+ }, Lt = (e) => {
1299
1293
  let t = document.createElement("div");
1300
1294
  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;
1301
- }, zt = [
1295
+ }, Rt = [
1302
1296
  {
1303
1297
  id: "1",
1304
1298
  name: "Without Tag",
@@ -1349,7 +1343,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1349
1343
  name: "Turquoise",
1350
1344
  color_id: "10"
1351
1345
  }
1352
- ], Bt = [
1346
+ ], zt = [
1353
1347
  "data-tag_id",
1354
1348
  "data-tag_color_id",
1355
1349
  "title"
@@ -1371,9 +1365,9 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1371
1365
  "data-tag_id": e.id,
1372
1366
  "data-tag_color_id": e.colorId,
1373
1367
  title: e.name
1374
- }, null, 10, Bt));
1368
+ }, null, 10, zt));
1375
1369
  }
1376
- }), Vt = ["contenteditable", "onKeydown"], Ht = /* @__PURE__ */ k({
1370
+ }), Bt = ["contenteditable", "onKeydown"], Vt = /* @__PURE__ */ k({
1377
1371
  __name: "tagPopupListItem",
1378
1372
  props: /* @__PURE__ */ A({
1379
1373
  editable: { type: Boolean },
@@ -1438,7 +1432,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1438
1432
  ref: a,
1439
1433
  class: "top-tagSelector_tagListItemName",
1440
1434
  contenteditable: s.value ? "plaintext-only" : !1
1441
- }, o.value, { onKeydown: [ge(B(l, ["stop"]), ["enter"]), ge(B(u, ["stop"]), ["esc"])] }), F(i.value), 17, Vt),
1435
+ }, o.value, { onKeydown: [ge(B(l, ["stop"]), ["enter"]), ge(B(u, ["stop"]), ["esc"])] }), F(i.value), 17, Bt),
1442
1436
  e.editable ? (M(), T(x, { key: 0 }, [s.value ? (M(), T("span", {
1443
1437
  key: 1,
1444
1438
  "data-top-icon": "",
@@ -1454,7 +1448,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1454
1448
  _: 1
1455
1449
  }, 8, ["class"]));
1456
1450
  }
1457
- }), Ut = { key: 1 }, Wt = /* @__PURE__ */ k({
1451
+ }), Ht = { key: 1 }, Ut = /* @__PURE__ */ k({
1458
1452
  inheritAttrs: !1,
1459
1453
  __name: "popupOpener",
1460
1454
  props: /* @__PURE__ */ A({
@@ -1504,7 +1498,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1504
1498
  colorId: "",
1505
1499
  name: r.$i18n.Common.All_tags ?? "",
1506
1500
  state: ""
1507
- }, null, 8, ["name"])) : w("", !0), e.mode === "setter" && e.filters ? (M(), T("div", Ut, [le(r.$slots, "default")])) : (M(!0), T(x, { key: 2 }, P(n.value, (t) => (M(), C(Q, {
1501
+ }, null, 8, ["name"])) : w("", !0), e.mode === "setter" && e.filters ? (M(), T("div", Ht, [le(r.$slots, "default")])) : (M(!0), T(x, { key: 2 }, P(n.value, (t) => (M(), C(Q, {
1508
1502
  id: I(Y)(t),
1509
1503
  colorId: I(X)(t, e.tags)?.color_id ?? "",
1510
1504
  name: I(X)(t, e.tags)?.name ?? "",
@@ -1525,7 +1519,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1525
1519
  }, 8, ["id"]);
1526
1520
  };
1527
1521
  }
1528
- }), Gt = /* @__PURE__ */ k({
1522
+ }), Wt = /* @__PURE__ */ k({
1529
1523
  __name: "tagSelector",
1530
1524
  props: /* @__PURE__ */ A({
1531
1525
  modelValue: {},
@@ -1548,7 +1542,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1548
1542
  }, {
1549
1543
  modelValue: { required: !0 },
1550
1544
  modelModifiers: {},
1551
- tags: { default: ce(zt) },
1545
+ tags: { default: ce(Rt) },
1552
1546
  tagsModifiers: {}
1553
1547
  }),
1554
1548
  emits: /* @__PURE__ */ A([
@@ -1588,11 +1582,11 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1588
1582
  }), ne = (e) => {
1589
1583
  if (e !== "all") {
1590
1584
  if (_.value.model.value.includes(e)) return "selected";
1591
- if (_.value.model.value.includes(Ft(e))) return "excluded";
1585
+ if (_.value.model.value.includes(Pt(e))) return "excluded";
1592
1586
  }
1593
1587
  return e === "all" && !_.value.model.value.length ? "selected" : "";
1594
1588
  }, y = (e, t) => {
1595
- let n = Ft(e), r = _.value.model.value.filter((t) => t !== e && t !== n);
1589
+ let n = Pt(e), r = _.value.model.value.filter((t) => t !== e && t !== n);
1596
1590
  t === "select" && r.push(e), t === "exclude" && r.push(n), _.value.mode === "setter" && _.value.targetId !== void 0 && l.requiredForSetter && (r.length || r.push("1"), r.length === 2 && _.value.model.value.length === 1 && _.value.model.value[0] === "1" && (r = r.filter((e) => e !== "1"))), l.singleMode && !_.value.filters && (r.length || (r = _.value.model.value), r.length > 1 && (r = [r[r.length - 1]])), r.sort((e, t) => l.tags ? l.tags.findIndex((t) => t.id === e) - l.tags.findIndex((e) => e.id === t) : 0), _.value.model.value = r, _.value.mode === "setter" && _.value.targetId !== void 0 && p("setter", {
1597
1591
  tagsIds: r,
1598
1592
  targetId: _.value.targetId,
@@ -1633,7 +1627,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1633
1627
  }, ie = (e) => {
1634
1628
  t.$?.ui.sortable && $(e.elPopup).data("ui-sortable") && $(e.elPopup).sortable("destroy");
1635
1629
  };
1636
- return (e, t) => (M(), T(x, null, [O(Wt, {
1630
+ return (e, t) => (M(), T(x, null, [O(Ut, {
1637
1631
  modelValue: u.value,
1638
1632
  "onUpdate:modelValue": t[0] ||= (e) => u.value = e,
1639
1633
  id: I(m),
@@ -1655,7 +1649,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1655
1649
  "transition-duration": 50
1656
1650
  }, re({
1657
1651
  contentList: z(() => [
1658
- I(_).mode === "filter" && !a.singleMode ? (M(), C(Ht, {
1652
+ I(_).mode === "filter" && !a.singleMode ? (M(), C(Vt, {
1659
1653
  key: 0,
1660
1654
  id: "all",
1661
1655
  colorId: "",
@@ -1663,7 +1657,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1663
1657
  state: I(_).model.value.length ? "" : "selected",
1664
1658
  onSelect: t[3] ||= (e) => I(_).model.value = []
1665
1659
  }, null, 8, ["name", "state"])) : w("", !0),
1666
- (M(!0), T(x, null, P(d.value, (e) => (M(), C(Ht, {
1660
+ (M(!0), T(x, null, P(d.value, (e) => (M(), C(Vt, {
1667
1661
  key: e.id,
1668
1662
  id: e.id,
1669
1663
  colorId: e.color_id,
@@ -1728,6 +1722,6 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ k({
1728
1722
  }
1729
1723
  });
1730
1724
  //#endregion
1731
- export { ye as TopCompetitorSelector, it as TopGroupSelector, Pt as TopProjectSelector, Re as TopRegionSelector, Gt as TopTagSelector, Wt as TopTagSelectorPopupOpener, Q as TopTagSelectorTagIcon, Dt as clearCache, Ne as dialogRegionSelector, Me as findRegion, It as genElTopTagSelectorPopupOpener, ke as genSearcherByKey, Lt as renderElTopTagSelectorPopupOpener, be as useItemsFromCompetitors };
1725
+ export { ye as TopCompetitorSelector, it as TopGroupSelector, Nt as TopProjectSelector, Re as TopRegionSelector, Wt as TopTagSelector, Ut as TopTagSelectorPopupOpener, Q as TopTagSelectorTagIcon, Dt as clearCache, Ne as dialogRegionSelector, Me as findRegion, Ft as genElTopTagSelectorPopupOpener, ke as genSearcherByKey, It as renderElTopTagSelectorPopupOpener, be as useItemsFromCompetitors };
1732
1726
 
1733
1727
  //# sourceMappingURL=project.js.map