@topvisor/ui 1.6.1-searcherKey.2 → 1.6.2

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