@topvisor/ui 1.5.9-openApi.4 → 1.5.9-pnpm.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.
Files changed (224) hide show
  1. package/.chunks/api-Djk3WKsn.es.amd.js +2 -0
  2. package/.chunks/api-Djk3WKsn.es.amd.js.map +1 -0
  3. package/.chunks/{api-BD74aA98.esm.js → api-Djk3WKsn.es.js} +14 -12
  4. package/.chunks/api-Djk3WKsn.es.js.map +1 -0
  5. package/.chunks/app-DthfMLqk.es.amd.js +2 -0
  6. package/.chunks/app-DthfMLqk.es.amd.js.map +1 -0
  7. package/.chunks/{app-BaHwxbWz.esm.js → app-DthfMLqk.es.js} +18 -20
  8. package/.chunks/app-DthfMLqk.es.js.map +1 -0
  9. package/.chunks/datepicker-CxwCnLmb.es.amd.js +2 -0
  10. package/.chunks/datepicker-CxwCnLmb.es.amd.js.map +1 -0
  11. package/.chunks/{datepicker-C7FNogyy.esm.js → datepicker-CxwCnLmb.es.js} +2 -2
  12. package/.chunks/datepicker-CxwCnLmb.es.js.map +1 -0
  13. package/.chunks/dialog-CeM1i76L.es.amd.js +2 -0
  14. package/.chunks/dialog-CeM1i76L.es.amd.js.map +1 -0
  15. package/.chunks/{dialog-BM4mfi7y.esm.js → dialog-CeM1i76L.es.js} +3 -3
  16. package/.chunks/dialog-CeM1i76L.es.js.map +1 -0
  17. package/.chunks/dialog_regionSelectorRegions-BWWggJbQ.es.amd.js +2 -0
  18. package/.chunks/dialog_regionSelectorRegions-BWWggJbQ.es.amd.js.map +1 -0
  19. package/.chunks/{dialog_regionSelectorRegions-CN3F-67P.esm.js → dialog_regionSelectorRegions-BWWggJbQ.es.js} +4 -4
  20. package/.chunks/dialog_regionSelectorRegions-BWWggJbQ.es.js.map +1 -0
  21. package/.chunks/{field-DEusYVqS.amd.js → field-DEusYVqS.es.amd.js} +1 -1
  22. package/.chunks/field-DEusYVqS.es.amd.js.map +1 -0
  23. package/.chunks/{field-DEusYVqS.esm.js → field-DEusYVqS.es.js} +1 -1
  24. package/.chunks/field-DEusYVqS.es.js.map +1 -0
  25. package/.chunks/forms-BlerVsRB.es.amd.js +2 -0
  26. package/.chunks/forms-BlerVsRB.es.amd.js.map +1 -0
  27. package/.chunks/{forms-_4U0sLFk.esm.js → forms-BlerVsRB.es.js} +129 -133
  28. package/.chunks/forms-BlerVsRB.es.js.map +1 -0
  29. package/.chunks/formsExt-DbpqJoXl.es.amd.js +2 -0
  30. package/.chunks/formsExt-DbpqJoXl.es.amd.js.map +1 -0
  31. package/.chunks/{formsExt-BMmWhdTu.esm.js → formsExt-DbpqJoXl.es.js} +9 -11
  32. package/.chunks/formsExt-DbpqJoXl.es.js.map +1 -0
  33. package/.chunks/{lazy-DQU-hLos.amd.js → lazy-DQU-hLos.es.amd.js} +1 -1
  34. package/.chunks/lazy-DQU-hLos.es.amd.js.map +1 -0
  35. package/.chunks/{lazy-DQU-hLos.esm.js → lazy-DQU-hLos.es.js} +1 -1
  36. package/.chunks/lazy-DQU-hLos.es.js.map +1 -0
  37. package/.chunks/{mocker-C9Dl3SwM.amd.js → mocker-h3ROH-VB.es.amd.js} +2 -2
  38. package/.chunks/mocker-h3ROH-VB.es.amd.js.map +1 -0
  39. package/.chunks/{mocker-C9Dl3SwM.esm.js → mocker-h3ROH-VB.es.js} +2 -2
  40. package/.chunks/mocker-h3ROH-VB.es.js.map +1 -0
  41. package/.chunks/{notice-FzLgMsrr.amd.js → notice-B5wJBkle.es.amd.js} +2 -2
  42. package/.chunks/notice-B5wJBkle.es.amd.js.map +1 -0
  43. package/.chunks/{notice-FzLgMsrr.esm.js → notice-B5wJBkle.es.js} +2 -2
  44. package/.chunks/notice-B5wJBkle.es.js.map +1 -0
  45. package/.chunks/popup-C4qezebt.es.amd.js +2 -0
  46. package/.chunks/popup-C4qezebt.es.amd.js.map +1 -0
  47. package/.chunks/{popup-DViuKwOc.esm.js → popup-C4qezebt.es.js} +3 -3
  48. package/.chunks/popup-C4qezebt.es.js.map +1 -0
  49. package/.chunks/popup-Cb0JWm53.es.amd.js +2 -0
  50. package/.chunks/popup-Cb0JWm53.es.amd.js.map +1 -0
  51. package/.chunks/{popup-CS0IahOr.esm.js → popup-Cb0JWm53.es.js} +5 -5
  52. package/.chunks/popup-Cb0JWm53.es.js.map +1 -0
  53. package/.chunks/punycode.es6-BfQkzK-L.es.amd.js +2 -0
  54. package/.chunks/punycode.es6-BfQkzK-L.es.amd.js.map +1 -0
  55. package/.chunks/punycode.es6-BfQkzK-L.es.js +105 -0
  56. package/.chunks/punycode.es6-BfQkzK-L.es.js.map +1 -0
  57. package/.chunks/{store-DjQAOnrn.amd.js → store-DjQAOnrn.es.amd.js} +1 -1
  58. package/.chunks/store-DjQAOnrn.es.amd.js.map +1 -0
  59. package/.chunks/{store-DjQAOnrn.esm.js → store-DjQAOnrn.es.js} +1 -1
  60. package/.chunks/store-DjQAOnrn.es.js.map +1 -0
  61. package/.chunks/utils-46VBGPRw.es.amd.js +2 -0
  62. package/.chunks/utils-46VBGPRw.es.amd.js.map +1 -0
  63. package/.chunks/{utils-B1tz7GZc.esm.js → utils-46VBGPRw.es.js} +14 -15
  64. package/.chunks/utils-46VBGPRw.es.js.map +1 -0
  65. package/.chunks/utils-BhzB2nCx.es.amd.js +2 -0
  66. package/.chunks/utils-BhzB2nCx.es.amd.js.map +1 -0
  67. package/.chunks/{utils-B1P0BzZ1.esm.js → utils-BhzB2nCx.es.js} +5 -5
  68. package/.chunks/utils-BhzB2nCx.es.js.map +1 -0
  69. package/.chunks/worker-MQXxaWta.es.amd.js +2 -0
  70. package/.chunks/worker-MQXxaWta.es.amd.js.map +1 -0
  71. package/.chunks/{worker-D28QqQ45.esm.js → worker-MQXxaWta.es.js} +4 -4
  72. package/.chunks/worker-MQXxaWta.es.js.map +1 -0
  73. package/api/additional.amd.js +1 -1
  74. package/api/additional.amd.js.map +1 -1
  75. package/api/additional.js +2 -4
  76. package/api/additional.js.map +1 -1
  77. package/api/index.amd.js +1 -1
  78. package/api/index.amd.js.map +1 -1
  79. package/api/index.js +2 -2
  80. package/autoload-css-manifest.amd.json +4 -4
  81. package/autoload-css-manifest.json +4 -4
  82. package/charts/charts.amd.js +1 -1
  83. package/charts/charts.amd.js.map +1 -1
  84. package/charts/charts.js +1 -1
  85. package/charts/charts.js.map +1 -1
  86. package/core/app.amd.js +1 -1
  87. package/core/app.amd.js.map +1 -1
  88. package/core/app.js +3 -3
  89. package/dialog/dialog.amd.js +1 -1
  90. package/dialog/dialog.amd.js.map +1 -1
  91. package/dialog/dialog.js +2 -2
  92. package/extra/extra.js.map +1 -1
  93. package/forms/forms.amd.js +1 -1
  94. package/forms/forms.amd.js.map +1 -1
  95. package/forms/forms.js +1 -1
  96. package/formsExt/formsExt.amd.js +1 -1
  97. package/formsExt/formsExt.amd.js.map +1 -1
  98. package/formsExt/formsExt.js +1 -1
  99. package/icomoon/Topvisor icons.json +284 -261
  100. package/icomoon/demo-files/demo.amd.js +1 -1
  101. package/icomoon/demo-files/demo.amd.js.map +1 -1
  102. package/icomoon/demo-files/demo.css +0 -3
  103. package/icomoon/demo-files/demo.js +2 -2
  104. package/icomoon/demo.html +30 -19
  105. package/icomoon/fonts/Topvisor-2.eot +0 -0
  106. package/icomoon/fonts/Topvisor-2.svg +2 -1
  107. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  108. package/icomoon/fonts/Topvisor-2.woff +0 -0
  109. package/icomoon/selection.json +1 -1
  110. package/icomoon/style.css +11 -8
  111. package/layout/layout.amd.js +1 -1
  112. package/layout/layout.amd.js.map +1 -1
  113. package/layout/layout.js +1 -1
  114. package/layout/layout.js.map +1 -1
  115. package/package.json +3 -3
  116. package/popup/popup.amd.js +1 -1
  117. package/popup/popup.amd.js.map +1 -1
  118. package/popup/popup.js +1 -1
  119. package/popup/worker.amd.js +1 -1
  120. package/popup/worker.amd.js.map +1 -1
  121. package/popup/worker.js +1 -1
  122. package/project/project.amd.js +1 -1
  123. package/project/project.amd.js.map +1 -1
  124. package/project/project.js +77 -76
  125. package/project/project.js.map +1 -1
  126. package/schedule/schedule.amd.js +1 -1
  127. package/schedule/schedule.amd.js.map +1 -1
  128. package/schedule/schedule.js +4 -4
  129. package/schedule/schedule.js.map +1 -1
  130. package/src/api/api/index.d.ts +2 -2
  131. package/src/api/api/types/utils.d.ts +1 -1
  132. package/src/components/formsExt/selector2/composables/useAPI.d.ts +2 -2
  133. package/src/components/project/projectSelector/utils.d.ts +2 -0
  134. package/tabs/tabs.amd.js.map +1 -1
  135. package/tabs/tabs.js.map +1 -1
  136. package/tabsView/tabsView.amd.js +1 -1
  137. package/tabsView/tabsView.amd.js.map +1 -1
  138. package/tabsView/tabsView.js +3 -3
  139. package/tabsView/tabsView.js.map +1 -1
  140. package/utils/clipboard.amd.js +1 -1
  141. package/utils/clipboard.amd.js.map +1 -1
  142. package/utils/clipboard.js +1 -1
  143. package/utils/date.amd.js +1 -1
  144. package/utils/date.amd.js.map +1 -1
  145. package/utils/date.js +1 -1
  146. package/utils/device.amd.js +1 -1
  147. package/utils/device.amd.js.map +1 -1
  148. package/utils/device.js +1 -1
  149. package/utils/image.amd.js +1 -1
  150. package/utils/image.amd.js.map +1 -1
  151. package/utils/image.js +1 -1
  152. package/utils/lodash.amd.js +1 -1
  153. package/utils/lodash.amd.js.map +1 -1
  154. package/utils/lodash.js +1 -1
  155. package/utils/number.amd.js +1 -1
  156. package/utils/number.amd.js.map +1 -1
  157. package/utils/number.js +1 -1
  158. package/utils/number.js.map +1 -1
  159. package/utils/price.amd.js +1 -1
  160. package/utils/price.amd.js.map +1 -1
  161. package/utils/price.js +1 -1
  162. package/utils/searchers.amd.js.map +1 -1
  163. package/utils/searchers.js +4 -12
  164. package/utils/searchers.js.map +1 -1
  165. package/utils/store.amd.js +1 -1
  166. package/utils/store.amd.js.map +1 -1
  167. package/utils/store.js +1 -1
  168. package/utils/string.amd.js +1 -1
  169. package/utils/string.amd.js.map +1 -1
  170. package/utils/string.js +7 -9
  171. package/utils/string.js.map +1 -1
  172. package/utils/url.amd.js +1 -1
  173. package/utils/url.amd.js.map +1 -1
  174. package/utils/url.js +1 -1
  175. package/.chunks/api-BD74aA98.amd.js +0 -2
  176. package/.chunks/api-BD74aA98.amd.js.map +0 -1
  177. package/.chunks/api-BD74aA98.esm.js.map +0 -1
  178. package/.chunks/app-BaHwxbWz.amd.js +0 -2
  179. package/.chunks/app-BaHwxbWz.amd.js.map +0 -1
  180. package/.chunks/app-BaHwxbWz.esm.js.map +0 -1
  181. package/.chunks/datepicker-C7FNogyy.amd.js +0 -2
  182. package/.chunks/datepicker-C7FNogyy.amd.js.map +0 -1
  183. package/.chunks/datepicker-C7FNogyy.esm.js.map +0 -1
  184. package/.chunks/dialog-BM4mfi7y.amd.js +0 -2
  185. package/.chunks/dialog-BM4mfi7y.amd.js.map +0 -1
  186. package/.chunks/dialog-BM4mfi7y.esm.js.map +0 -1
  187. package/.chunks/dialog_regionSelectorRegions-CN3F-67P.amd.js +0 -2
  188. package/.chunks/dialog_regionSelectorRegions-CN3F-67P.amd.js.map +0 -1
  189. package/.chunks/dialog_regionSelectorRegions-CN3F-67P.esm.js.map +0 -1
  190. package/.chunks/field-DEusYVqS.amd.js.map +0 -1
  191. package/.chunks/field-DEusYVqS.esm.js.map +0 -1
  192. package/.chunks/forms-_4U0sLFk.amd.js +0 -2
  193. package/.chunks/forms-_4U0sLFk.amd.js.map +0 -1
  194. package/.chunks/forms-_4U0sLFk.esm.js.map +0 -1
  195. package/.chunks/formsExt-BMmWhdTu.amd.js +0 -2
  196. package/.chunks/formsExt-BMmWhdTu.amd.js.map +0 -1
  197. package/.chunks/formsExt-BMmWhdTu.esm.js.map +0 -1
  198. package/.chunks/lazy-DQU-hLos.amd.js.map +0 -1
  199. package/.chunks/lazy-DQU-hLos.esm.js.map +0 -1
  200. package/.chunks/mocker-C9Dl3SwM.amd.js.map +0 -1
  201. package/.chunks/mocker-C9Dl3SwM.esm.js.map +0 -1
  202. package/.chunks/notice-FzLgMsrr.amd.js.map +0 -1
  203. package/.chunks/notice-FzLgMsrr.esm.js.map +0 -1
  204. package/.chunks/popup-CS0IahOr.amd.js +0 -2
  205. package/.chunks/popup-CS0IahOr.amd.js.map +0 -1
  206. package/.chunks/popup-CS0IahOr.esm.js.map +0 -1
  207. package/.chunks/popup-DViuKwOc.amd.js +0 -2
  208. package/.chunks/popup-DViuKwOc.amd.js.map +0 -1
  209. package/.chunks/popup-DViuKwOc.esm.js.map +0 -1
  210. package/.chunks/punycode.es6-CMafsPEb.amd.js +0 -2
  211. package/.chunks/punycode.es6-CMafsPEb.amd.js.map +0 -1
  212. package/.chunks/punycode.es6-CMafsPEb.esm.js +0 -105
  213. package/.chunks/punycode.es6-CMafsPEb.esm.js.map +0 -1
  214. package/.chunks/store-DjQAOnrn.amd.js.map +0 -1
  215. package/.chunks/store-DjQAOnrn.esm.js.map +0 -1
  216. package/.chunks/utils-B1P0BzZ1.amd.js +0 -2
  217. package/.chunks/utils-B1P0BzZ1.amd.js.map +0 -1
  218. package/.chunks/utils-B1P0BzZ1.esm.js.map +0 -1
  219. package/.chunks/utils-B1tz7GZc.amd.js +0 -2
  220. package/.chunks/utils-B1tz7GZc.amd.js.map +0 -1
  221. package/.chunks/utils-B1tz7GZc.esm.js.map +0 -1
  222. package/.chunks/worker-D28QqQ45.amd.js +0 -2
  223. package/.chunks/worker-D28QqQ45.amd.js.map +0 -1
  224. package/.chunks/worker-D28QqQ45.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-BD74aA98.esm.js";
9
- import { E as e, O as t, P as n, h as r, n as i } from "../.chunks/forms-_4U0sLFk.esm.js";
10
- import { n as a, t as o } from "../.chunks/field-DEusYVqS.esm.js";
8
+ import "../.chunks/api-Djk3WKsn.es.js";
9
+ import { E as e, O as t, P as n, h as r, n as i } from "../.chunks/forms-BlerVsRB.es.js";
10
+ import { n as a, t as o } from "../.chunks/field-DEusYVqS.es.js";
11
11
  import { storage as s } from "../utils/dom.js";
12
- import { t as c } from "../.chunks/worker-D28QqQ45.esm.js";
13
- import "../.chunks/app-BaHwxbWz.esm.js";
14
- import { t as l } from "../.chunks/utils-B1P0BzZ1.esm.js";
12
+ import { t as c } from "../.chunks/worker-MQXxaWta.es.js";
13
+ import "../.chunks/app-DthfMLqk.es.js";
14
+ import { t as l } from "../.chunks/utils-BhzB2nCx.es.js";
15
15
  import { validUrl as u } from "../utils/check.js";
16
16
  import { ellipsis as d } from "../utils/string.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 y, s as b } from "../.chunks/popup-DViuKwOc.esm.js";
20
- import { c as x, d as S, f as ee, p as te } from "../.chunks/formsExt-BMmWhdTu.esm.js";
19
+ import { c as g, n as _, o as v, r as y, s as b } from "../.chunks/popup-C4qezebt.es.js";
20
+ import { c as x, d as S, f as ee, p as te } from "../.chunks/formsExt-DbpqJoXl.es.js";
21
21
  import { Fragment as C, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createSlots as ne, createTextVNode as k, createVNode as A, defineComponent as j, isRef as re, mergeModels as M, mergeProps as ie, nextTick as ae, normalizeClass as N, onMounted as oe, openBlock as P, reactive as se, ref as F, renderList as I, renderSlot as ce, resolveComponent as le, resolveDirective as ue, resolveDynamicComponent as de, shallowRef as fe, toDisplayString as L, toValue as pe, unref as R, useId as me, useModel as z, watch as B, withCtx as V, withDirectives as he, withKeys as ge, withModifiers as H } from "vue";
22
22
  //#region src/components/project/competitorSelector/competitorSelector.vue?vue&type=script&setup=true&lang.ts
23
23
  var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, ye = /* @__PURE__ */ j({
@@ -163,11 +163,11 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
163
163
  }, Me = (e, t, n = []) => {
164
164
  let r = ke(e, !1, n), i;
165
165
  return r.forEach((n) => {
166
- if (!(t.searcher_key !== void 0 && t.searcher_key != n.key) && n.regions && (n.regions.forEach((r) => {
167
- 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;
166
+ if ((t.searcher_key === void 0 || t.searcher_key == n.key) && n.regions && (n.regions.forEach((r) => {
167
+ 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;
168
168
  }), i)) return !1;
169
169
  }), i;
170
- }, Ne = l(() => import("../.chunks/dialog_regionSelectorRegions-CN3F-67P.esm.js")), Pe = (t, n) => {
170
+ }, Ne = l(() => import("../.chunks/dialog_regionSelectorRegions-BWWggJbQ.es.js")), Pe = (t, n) => {
171
171
  let r = e();
172
172
  return {
173
173
  searcherKey: F(n.value.keys().next().value ?? -2),
@@ -197,7 +197,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
197
197
  };
198
198
  }, Fe = (t, n) => {
199
199
  let r = e(), i = w(() => t.forMode === "volume" || t.forMode === "cost_forecast"), a = F(-2);
200
- t.modelValue.length === 1 && (a.value = t.modelValue[0]), a.value === -2 && (i.value ? a.value = n.value?.regionByIndex.values().next().value?.key ?? -2 : a.value = n.value?.regionByIndex.keys().next().value ?? -2);
200
+ 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);
201
201
  let o = w(() => {
202
202
  let e = /* @__PURE__ */ new Map();
203
203
  return n.value.regionByIndex?.forEach((t) => {
@@ -288,7 +288,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
288
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);
289
289
  }, { immediate: !0 });
290
290
  let c = () => {
291
- if (!(a.searcherKey.value === -1 || a.searcherKey.value === -2)) return a.searcherKey.value;
291
+ if (a.searcherKey.value !== -1 && a.searcherKey.value !== -2) return a.searcherKey.value;
292
292
  }, l = () => {
293
293
  if (e.onlySearcher || o.regionIndex.value === -2) return;
294
294
  let n = o.regionIndex.value;
@@ -350,8 +350,8 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
350
350
  let n = e, a = w(() => n.forMode === "volume" || n.forMode === "cost_forecast"), o = z(e, "modelValue"), s = z(e, "modelValueSingle"), { selectSearcher: c, selectRegion: l, compare: u, searcherByKey: d, allRegionsIndexes: f, getSearcher: p, getRegion: m } = Le(n), h = () => {
351
351
  let e = [];
352
352
  d.value.forEach((t) => {
353
- n.forMode !== "project_relevant_url" && !t.enabled || t.regions.forEach((t) => {
354
- n.forMode !== "project_relevant_url" && !t.enabled || t.index !== -1 && e.push(t);
353
+ (n.forMode === "project_relevant_url" || t.enabled) && t.regions.forEach((t) => {
354
+ (n.forMode === "project_relevant_url" || t.enabled) && t.index !== -1 && e.push(t);
355
355
  });
356
356
  }), Ne.open("regions", {
357
357
  regions: e,
@@ -398,14 +398,15 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
398
398
  return;
399
399
  }
400
400
  }
401
- if (!(o.value.length === 1 && o.value[0] === (n.onlySearcher ? c.searcherKey.value : l.regionIndex.value))) if (n.onlySearcher) {
402
- if (o.value.length === 1) {
403
- c.searcherKey.value = o.value[0];
401
+ if (o.value.length !== 1 || o.value[0] !== (n.onlySearcher ? c.searcherKey.value : l.regionIndex.value)) {
402
+ if (n.onlySearcher) {
403
+ if (o.value.length === 1) {
404
+ c.searcherKey.value = o.value[0];
405
+ return;
406
+ }
407
+ c.searcherKey.value = -1;
404
408
  return;
405
409
  }
406
- c.searcherKey.value = -1;
407
- return;
408
- } else {
409
410
  if (!o.value.length) return;
410
411
  if (o.value.length === 1 && c.searcherKey.value !== -1) {
411
412
  l.regionIndex.value = o.value[0];
@@ -489,8 +490,8 @@ var Be = (e, t, n = /* @__PURE__ */ new Map(), r = { id: "root" }, i = 0) => (r.
489
490
  //#endregion
490
491
  //#region src/core/utils/composables/useWatch.ts
491
492
  function He(e, t, n) {
492
- let r = Object.keys(e);
493
- return B(r.map((t) => e[t]), (e, n, i) => {
493
+ let r = Object.keys(e), i = r.map((t) => e[t]);
494
+ return B(i, (e, n, i) => {
494
495
  let a = {};
495
496
  e.forEach((e, t) => {
496
497
  if (!Object.is(e, n[t])) {
@@ -1121,22 +1122,22 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1121
1122
  _: 1
1122
1123
  }, 8, ["id"]));
1123
1124
  }
1124
- }), bt = 1440 * 60 * 1e3, J = F(null), Y = fe(), xt = (e) => {
1125
- localStorage.setItem("ui_project_selector_total:" + t.state.userId, JSON.stringify({
1125
+ }), J = "ui_project_selector_total", bt = 864e5, Y = F(null), X = fe(), xt = (e) => {
1126
+ localStorage.setItem(J + ":" + t.state.userId, JSON.stringify({
1126
1127
  projectsTotal: e,
1127
1128
  expiresAt: Date.now() + bt
1128
1129
  }));
1129
1130
  }, St = () => {
1130
- let e = localStorage.getItem("ui_project_selector_total:" + t.state.userId);
1131
+ let e = localStorage.getItem(J + ":" + t.state.userId);
1131
1132
  if (!e) return;
1132
1133
  let { projectsTotal: n, expiresAt: r } = JSON.parse(e);
1133
1134
  if (Date.now() > r) {
1134
- localStorage.removeItem("ui_project_selector_total:" + t.state.userId);
1135
+ localStorage.removeItem(J + ":" + t.state.userId);
1135
1136
  return;
1136
1137
  }
1137
1138
  return n;
1138
1139
  }, Ct = () => {
1139
- J.value = null, Y.value = void 0, localStorage.removeItem("ui_project_selector_total:" + t.state.userId), ee("/get/projects_2/projects/");
1140
+ Y.value = null, X.value = void 0, localStorage.removeItem(J + ":" + t.state.userId), ee("/get/projects_2/projects/");
1140
1141
  }, wt = { class: "top-projectSelector_itemText" }, Tt = { class: "top-comment" }, Et = {
1141
1142
  key: 0,
1142
1143
  class: "top-comment"
@@ -1163,19 +1164,19 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1163
1164
  }),
1164
1165
  emits: ["update:modelValue"],
1165
1166
  setup(n) {
1166
- let r = e(), i = n, a = z(n, "modelValue"), o = gt(i.client), s = _t(i.client), c = F(St()), l = F(null), f = me(), p = w(() => i.placeholder ?? r.Projects.Select_project), m = w(() => !Y.value || !i.excludeProjectId ? Y.value : Y.value.filter((e) => e.id !== i.excludeProjectId)), h = w(() => {
1167
- if (!(!c.value && c.value !== 0)) return c.value < Ot ? "static" : "api";
1167
+ let r = e(), i = n, a = z(n, "modelValue"), o = gt(i.client), s = _t(i.client), c = F(St()), l = F(null), f = me(), p = w(() => i.placeholder ?? r.Projects.Select_project), m = w(() => !X.value || !i.excludeProjectId ? X.value : X.value.filter((e) => e.id !== i.excludeProjectId)), h = w(() => {
1168
+ if (c.value || c.value === 0) return c.value < Ot ? "static" : "api";
1168
1169
  }), _ = async () => {
1169
- J.value ||= o.call();
1170
- let e = await J.value;
1171
- return J.value = null, e;
1170
+ Y.value ||= o.call();
1171
+ let e = await Y.value;
1172
+ return Y.value = null, e;
1172
1173
  }, v = async (e) => {
1173
1174
  let n = await s.changeParams({
1174
1175
  url: e.name,
1175
1176
  name: e.name
1176
1177
  }).call();
1177
1178
  if (!n.errors) {
1178
- if (Y.value && h.value === "static") {
1179
+ if (X.value && h.value === "static") {
1179
1180
  let r = ct({
1180
1181
  id: n.result,
1181
1182
  user_id: t.state.userId,
@@ -1183,19 +1184,19 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1183
1184
  url: e.name,
1184
1185
  on: 0,
1185
1186
  right: "11111111111111111111"
1186
- }), i = Y.value.findIndex((e) => e.on === 0);
1187
- Y.value = [
1188
- ...Y.value.slice(0, i),
1187
+ }), i = X.value.findIndex((e) => e.on === 0);
1188
+ X.value = [
1189
+ ...X.value.slice(0, i),
1189
1190
  r,
1190
- ...Y.value.slice(i)
1191
+ ...X.value.slice(i)
1191
1192
  ], c.value && (c.value += 1, xt(c.value));
1192
1193
  }
1193
1194
  h.value === "api" && l.value?.resetCache(!0);
1194
1195
  }
1195
1196
  }, y = async () => {
1196
- if (Y.value || h.value === "api") return;
1197
+ if (X.value || h.value === "api") return;
1197
1198
  let e = await _();
1198
- e.errors || (Y.value = e.result);
1199
+ e.errors || (X.value = e.result);
1199
1200
  }, b = async () => {
1200
1201
  if (c.value) {
1201
1202
  let e = l.value?.popupOpenerRef?.$el;
@@ -1204,7 +1205,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1204
1205
  o.changeParams({ limit: Ot });
1205
1206
  let e = await _();
1206
1207
  if (e.errors) return;
1207
- delete o.params.limit, c.value = e.total ?? void 0, !Y.value && h.value !== "api" && (Y.value = e.result), c.value && xt(c.value);
1208
+ delete o.params.limit, c.value = e.total ?? void 0, !X.value && h.value !== "api" && (X.value = e.result), c.value && xt(c.value);
1208
1209
  }
1209
1210
  };
1210
1211
  return oe(async () => {
@@ -1220,7 +1221,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1220
1221
  "onUpdate:modelValue": t[1] ||= (e) => n.menuMode ? R(dt)(e.id) : a.value = e,
1221
1222
  items: m.value,
1222
1223
  itemsChunkSize: 100,
1223
- itemsIsLoading: h.value === "static" && R(Y) === void 0,
1224
+ itemsIsLoading: h.value === "static" && R(X) === void 0,
1224
1225
  title: e.$i18n.Projects.Search_projects,
1225
1226
  modificator: n.modificator,
1226
1227
  searchFields: [
@@ -1290,8 +1291,8 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1290
1291
  ])), A(yt, { id: R(f) }, null, 8, ["id"])], 64);
1291
1292
  };
1292
1293
  }
1293
- }), At = (e) => "-" + e, X = (e) => e[0] === "-" ? e.substring(1) : e, Z = (e, t) => {
1294
- e = X(e);
1294
+ }), At = (e) => "-" + e, Z = (e) => e[0] === "-" ? e.substring(1) : e, Q = (e, t) => {
1295
+ e = Z(e);
1295
1296
  let n = t.find((t) => t.id === e);
1296
1297
  if (n) return n;
1297
1298
  }, jt = (e, t, n) => {
@@ -1307,23 +1308,23 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1307
1308
  payload: e.payload
1308
1309
  };
1309
1310
  s(r, "topTagSelectorTarget", a), delete r.dataset.topPopupDisabled, re(e.modelValue) || B(i, () => {
1310
- e.modelValue = i.value, Q(r, e, n);
1311
+ e.modelValue = i.value, Nt(r, e, n);
1311
1312
  }), r.click();
1312
- }, re(e.modelValue) ? B(e.modelValue, () => Q(r, e, n)) : s(r, "topTagSelectorRender", (t) => {
1313
+ }, re(e.modelValue) ? B(e.modelValue, () => Nt(r, e, n)) : s(r, "topTagSelectorRender", (t) => {
1313
1314
  e.modelValue = t;
1314
1315
  let i = s(r, "topTagSelectorTarget");
1315
- i && (i.model.value = t), Q(r, e, n);
1316
- }), Q(r, e, n), r;
1316
+ i && (i.model.value = t), Nt(r, e, n);
1317
+ }), Nt(r, e, n), r;
1317
1318
  }, Mt = (e, t) => {
1318
1319
  s(e, "topTagSelectorRender")?.(t);
1319
- }, Q = (t, n, r) => {
1320
+ }, Nt = (t, n, r) => {
1320
1321
  let i = R(n.modelValue);
1321
1322
  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) {
1322
1323
  t.innerHTML = `<div>${r}</div>`;
1323
1324
  return;
1324
1325
  }
1325
1326
  if (t.innerHTML = "", !i.length && n.mode === "filter") {
1326
- let n = Nt({
1327
+ let n = Pt({
1327
1328
  id: "all",
1328
1329
  colorId: "",
1329
1330
  name: e().Common?.All_tags ?? "",
@@ -1332,18 +1333,18 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1332
1333
  t.append(n);
1333
1334
  }
1334
1335
  i.forEach((e) => {
1335
- let r = Nt({
1336
- id: X(e),
1337
- colorId: Z(e, n.tags)?.color_id ?? "",
1338
- name: Z(e, n.tags)?.name ?? "",
1339
- state: X(e) === e ? "selected" : "excluded"
1336
+ let r = Pt({
1337
+ id: Z(e),
1338
+ colorId: Q(e, n.tags)?.color_id ?? "",
1339
+ name: Q(e, n.tags)?.name ?? "",
1340
+ state: Z(e) === e ? "selected" : "excluded"
1340
1341
  });
1341
1342
  t.append(r);
1342
1343
  });
1343
- }, Nt = (e) => {
1344
+ }, Pt = (e) => {
1344
1345
  let t = document.createElement("div");
1345
1346
  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;
1346
- }, Pt = [
1347
+ }, Ft = [
1347
1348
  {
1348
1349
  id: "1",
1349
1350
  name: "Without Tag",
@@ -1394,11 +1395,11 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1394
1395
  name: "Turquoise",
1395
1396
  color_id: "10"
1396
1397
  }
1397
- ], Ft = [
1398
+ ], It = [
1398
1399
  "data-tag_id",
1399
1400
  "data-tag_color_id",
1400
1401
  "title"
1401
- ], It = /* @__PURE__ */ j({
1402
+ ], Lt = /* @__PURE__ */ j({
1402
1403
  __name: "tagIcon",
1403
1404
  props: {
1404
1405
  id: {},
@@ -1416,9 +1417,9 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1416
1417
  "data-tag_id": e.id,
1417
1418
  "data-tag_color_id": e.colorId,
1418
1419
  title: e.name
1419
- }, null, 10, Ft));
1420
+ }, null, 10, It));
1420
1421
  }
1421
- }), Lt = ["contenteditable", "onKeydown"], Rt = /* @__PURE__ */ j({
1422
+ }), Rt = ["contenteditable", "onKeydown"], zt = /* @__PURE__ */ j({
1422
1423
  __name: "tagPopupListItem",
1423
1424
  props: /*@__PURE__*/ M({
1424
1425
  editable: { type: Boolean },
@@ -1467,7 +1468,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1467
1468
  onClick: H(d, ["stop"])
1468
1469
  }, {
1469
1470
  default: V(() => [
1470
- A(It, {
1471
+ A(Lt, {
1471
1472
  id: e.id,
1472
1473
  name: i.value,
1473
1474
  colorId: e.colorId,
@@ -1483,7 +1484,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1483
1484
  ref: a,
1484
1485
  class: "top-tagSelector_tagListItemName",
1485
1486
  contenteditable: s.value ? "plaintext-only" : !1
1486
- }, o.value, { onKeydown: [ge(H(l, ["stop"]), ["enter"]), ge(H(u, ["stop"]), ["esc"])] }), L(i.value), 17, Lt),
1487
+ }, o.value, { onKeydown: [ge(H(l, ["stop"]), ["enter"]), ge(H(u, ["stop"]), ["esc"])] }), L(i.value), 17, Rt),
1487
1488
  e.editable ? (P(), D(C, { key: 0 }, [s.value ? (P(), D("span", {
1488
1489
  key: 1,
1489
1490
  "data-top-icon": "",
@@ -1499,7 +1500,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1499
1500
  _: 1
1500
1501
  }, 8, ["class"]));
1501
1502
  }
1502
- }), zt = { key: 1 }, Bt = /* @__PURE__ */ j({
1503
+ }), Bt = { key: 1 }, Vt = /* @__PURE__ */ j({
1503
1504
  inheritAttrs: !1,
1504
1505
  __name: "popupOpener",
1505
1506
  props: /*@__PURE__*/ M({
@@ -1543,17 +1544,17 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1543
1544
  color: "theme",
1544
1545
  styling: e.styling
1545
1546
  }, t), {
1546
- [R(o)]: V(() => [!i.value.length && e.mode === "filter" ? (P(), T(It, {
1547
+ [R(o)]: V(() => [!i.value.length && e.mode === "filter" ? (P(), T(Lt, {
1547
1548
  key: 0,
1548
1549
  id: "all",
1549
1550
  colorId: "",
1550
1551
  name: r.$i18n.Common.All_tags ?? "",
1551
1552
  state: ""
1552
- }, null, 8, ["name"])) : E("", !0), e.mode === "setter" && e.filters ? (P(), D("div", zt, [ce(r.$slots, "default")])) : (P(!0), D(C, { key: 2 }, I(i.value, (t) => (P(), T(It, {
1553
- id: R(X)(t),
1554
- colorId: R(Z)(t, e.tags)?.color_id ?? "",
1555
- name: R(Z)(t, e.tags)?.name ?? "",
1556
- state: R(X)(t) === t ? "selected" : "excluded"
1553
+ }, null, 8, ["name"])) : E("", !0), e.mode === "setter" && e.filters ? (P(), D("div", Bt, [ce(r.$slots, "default")])) : (P(!0), D(C, { key: 2 }, I(i.value, (t) => (P(), T(Lt, {
1554
+ id: R(Z)(t),
1555
+ colorId: R(Q)(t, e.tags)?.color_id ?? "",
1556
+ name: R(Q)(t, e.tags)?.name ?? "",
1557
+ state: R(Z)(t) === t ? "selected" : "excluded"
1557
1558
  }, null, 8, [
1558
1559
  "id",
1559
1560
  "colorId",
@@ -1570,7 +1571,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1570
1571
  }, 8, ["id"]);
1571
1572
  };
1572
1573
  }
1573
- }), Vt = /* @__PURE__ */ j({
1574
+ }), Ht = /* @__PURE__ */ j({
1574
1575
  __name: "tagSelector",
1575
1576
  props: /*@__PURE__*/ M({
1576
1577
  modelValue: {},
@@ -1593,7 +1594,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1593
1594
  }, {
1594
1595
  modelValue: { required: !0 },
1595
1596
  modelModifiers: {},
1596
- tags: { default: se(Pt) },
1597
+ tags: { default: se(Ft) },
1597
1598
  tagsModifiers: {}
1598
1599
  }),
1599
1600
  emits: /*@__PURE__*/ M([
@@ -1678,7 +1679,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1678
1679
  }, j = (e) => {
1679
1680
  t.$?.ui.sortable && $(e.elPopup).data("ui-sortable") && $(e.elPopup).sortable("destroy");
1680
1681
  };
1681
- return (e, t) => (P(), D(C, null, [A(Bt, {
1682
+ return (e, t) => (P(), D(C, null, [A(Vt, {
1682
1683
  modelValue: u.value,
1683
1684
  "onUpdate:modelValue": t[0] ||= (e) => u.value = e,
1684
1685
  id: R(m),
@@ -1700,7 +1701,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1700
1701
  "transition-duration": 50
1701
1702
  }, ne({
1702
1703
  contentList: V(() => [
1703
- _.value.mode === "filter" && !a.singleMode ? (P(), T(Rt, {
1704
+ _.value.mode === "filter" && !a.singleMode ? (P(), T(zt, {
1704
1705
  key: 0,
1705
1706
  id: "all",
1706
1707
  colorId: "",
@@ -1708,7 +1709,7 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1708
1709
  state: _.value.model.value.length ? "" : "selected",
1709
1710
  onSelect: t[3] ||= (e) => _.value.model.value = []
1710
1711
  }, null, 8, ["name", "state"])) : E("", !0),
1711
- (P(!0), D(C, null, I(d.value, (e) => (P(), T(Rt, {
1712
+ (P(!0), D(C, null, I(d.value, (e) => (P(), T(zt, {
1712
1713
  key: e.id,
1713
1714
  id: e.id,
1714
1715
  colorId: e.color_id,
@@ -1773,6 +1774,6 @@ var Ue = ["innerHTML"], We = /* @__PURE__ */ j({
1773
1774
  }
1774
1775
  });
1775
1776
  //#endregion
1776
- export { ye as TopCompetitorSelector, it as TopGroupSelector, kt as TopProjectSelector, Re as TopRegionSelector, Vt as TopTagSelector, Bt as TopTagSelectorPopupOpener, It as TopTagSelectorTagIcon, Ne as dialogRegionSelector, Me as findRegion, jt as genElTopTagSelectorPopupOpener, ke as genSearcherByKey, Mt as renderElTopTagSelectorPopupOpener, Ct as topProjectSelectorClearCache, be as useItemsFromCompetitors };
1777
+ export { ye as TopCompetitorSelector, it as TopGroupSelector, kt as TopProjectSelector, Re as TopRegionSelector, Ht as TopTagSelector, Vt as TopTagSelectorPopupOpener, Lt as TopTagSelectorTagIcon, Ne as dialogRegionSelector, Me as findRegion, jt as genElTopTagSelectorPopupOpener, ke as genSearcherByKey, Mt as renderElTopTagSelectorPopupOpener, Ct as topProjectSelectorClearCache, be as useItemsFromCompetitors };
1777
1778
 
1778
1779
  //# sourceMappingURL=project.js.map