@topvisor/ui 1.4.0-TopGroupSelector.6 → 1.4.0-TopGroupSelector.8

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 (95) hide show
  1. package/.chunks/{core-DVQVVUiP.es.js → core-BL-38XF7.es.js} +4 -4
  2. package/.chunks/{core-DVQVVUiP.es.js.map → core-BL-38XF7.es.js.map} +1 -1
  3. package/.chunks/{core-B9TwJi3h.amd.js → core-BsPx05H9.amd.js} +2 -2
  4. package/.chunks/{core-B9TwJi3h.amd.js.map → core-BsPx05H9.amd.js.map} +1 -1
  5. package/.chunks/{datepicker-bidhcksv.amd.js → datepicker-3coUsFW2.amd.js} +2 -2
  6. package/.chunks/{datepicker-bidhcksv.amd.js.map → datepicker-3coUsFW2.amd.js.map} +1 -1
  7. package/.chunks/{datepicker-CrASsJeF.es.js → datepicker-D1Hw3a3o.es.js} +2 -2
  8. package/.chunks/{datepicker-CrASsJeF.es.js.map → datepicker-D1Hw3a3o.es.js.map} +1 -1
  9. package/.chunks/{dialog_regionSelectorRegions-DJu5Y1WK.es.js → dialog_regionSelectorRegions-1UVhgK2f.es.js} +4 -4
  10. package/.chunks/{dialog_regionSelectorRegions-DJu5Y1WK.es.js.map → dialog_regionSelectorRegions-1UVhgK2f.es.js.map} +1 -1
  11. package/.chunks/{dialog_regionSelectorRegions-Dc-YGZ0l.amd.js → dialog_regionSelectorRegions-CZ8IX7la.amd.js} +2 -2
  12. package/.chunks/{dialog_regionSelectorRegions-Dc-YGZ0l.amd.js.map → dialog_regionSelectorRegions-CZ8IX7la.amd.js.map} +1 -1
  13. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-BP6GFkkz.es.js → dialogs.vue_vue_type_script_setup_true_lang-DRbTG0vh.es.js} +2 -2
  14. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-BP6GFkkz.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-DRbTG0vh.es.js.map} +1 -1
  15. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang--Xstly2G.amd.js → dialogs.vue_vue_type_script_setup_true_lang-Dq9kWWMg.amd.js} +2 -2
  16. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang--Xstly2G.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-Dq9kWWMg.amd.js.map} +1 -1
  17. package/.chunks/{forms-Cwv0JCi5.es.js → forms-BseC3Ftz.es.js} +5 -5
  18. package/.chunks/{forms-Cwv0JCi5.es.js.map → forms-BseC3Ftz.es.js.map} +1 -1
  19. package/.chunks/{forms--2-YQeWM.amd.js → forms-CUSCBQu3.amd.js} +3 -3
  20. package/.chunks/{forms--2-YQeWM.amd.js.map → forms-CUSCBQu3.amd.js.map} +1 -1
  21. package/.chunks/{notice-BCHrf2v6.es.js → notice-Cl3ZgiHm.es.js} +2 -2
  22. package/.chunks/{notice-BCHrf2v6.es.js.map → notice-Cl3ZgiHm.es.js.map} +1 -1
  23. package/.chunks/{notice-D1KO_E3H.amd.js → notice-DwjipV21.amd.js} +2 -2
  24. package/.chunks/{notice-D1KO_E3H.amd.js.map → notice-DwjipV21.amd.js.map} +1 -1
  25. package/.chunks/{page.vue_vue_type_script_setup_true_lang-DNs0udwC.amd.js → page.vue_vue_type_script_setup_true_lang-CjIiZU-D.amd.js} +2 -2
  26. package/.chunks/{page.vue_vue_type_script_setup_true_lang-DNs0udwC.amd.js.map → page.vue_vue_type_script_setup_true_lang-CjIiZU-D.amd.js.map} +1 -1
  27. package/.chunks/{page.vue_vue_type_script_setup_true_lang-D_ocBGzt.es.js → page.vue_vue_type_script_setup_true_lang-CpRJQFD1.es.js} +4 -4
  28. package/.chunks/{page.vue_vue_type_script_setup_true_lang-D_ocBGzt.es.js.map → page.vue_vue_type_script_setup_true_lang-CpRJQFD1.es.js.map} +1 -1
  29. package/.chunks/{policy.vue_vue_type_style_index_0_lang-B61ZEDWr.es.js → policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js} +107 -105
  30. package/.chunks/{policy.vue_vue_type_style_index_0_lang-B61ZEDWr.es.js.map → policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js.map} +1 -1
  31. package/.chunks/policy.vue_vue_type_style_index_0_lang-DJOaMdBm.amd.js +2 -0
  32. package/.chunks/{policy.vue_vue_type_style_index_0_lang-BUIBGweg.amd.js.map → policy.vue_vue_type_style_index_0_lang-DJOaMdBm.amd.js.map} +1 -1
  33. package/.chunks/{popup-c8qgGOCv.amd.js → popup-DRuyYFGB.amd.js} +2 -2
  34. package/.chunks/popup-DRuyYFGB.amd.js.map +1 -0
  35. package/.chunks/{popup-DJMBWRtl.es.js → popup-Jw_Yyg3U.es.js} +99 -97
  36. package/.chunks/popup-Jw_Yyg3U.es.js.map +1 -0
  37. package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-Bp_-W068.es.js → popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js} +2 -2
  38. package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-Bp_-W068.es.js.map → popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js.map} +1 -1
  39. package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-D42xEF-j.amd.js → popupHint.vue_vue_type_style_index_0_lang-DtiT6NE4.amd.js} +2 -2
  40. package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-D42xEF-j.amd.js.map → popupHint.vue_vue_type_style_index_0_lang-DtiT6NE4.amd.js.map} +1 -1
  41. package/.chunks/{utils-C6nWu0aQ.amd.js → utils-CzHUG_xz.amd.js} +2 -2
  42. package/.chunks/{utils-C6nWu0aQ.amd.js.map → utils-CzHUG_xz.amd.js.map} +1 -1
  43. package/.chunks/{utils-DHyy_M2n.amd.js → utils-D9nYQabE.amd.js} +2 -2
  44. package/.chunks/{utils-DHyy_M2n.amd.js.map → utils-D9nYQabE.amd.js.map} +1 -1
  45. package/.chunks/{utils-Bu-TI6uw.es.js → utils-Q69SXlnV.es.js} +3 -3
  46. package/.chunks/{utils-Bu-TI6uw.es.js.map → utils-Q69SXlnV.es.js.map} +1 -1
  47. package/.chunks/{utils-cls72V1c.es.js → utils-YrUExsH7.es.js} +2 -2
  48. package/.chunks/{utils-cls72V1c.es.js.map → utils-YrUExsH7.es.js.map} +1 -1
  49. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-HbtV9agA.es.js → widgetInput.vue_vue_type_script_setup_true_lang-CDkeKVqY.es.js} +2 -2
  50. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-HbtV9agA.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CDkeKVqY.es.js.map} +1 -1
  51. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-B3soLr2U.amd.js → widgetInput.vue_vue_type_script_setup_true_lang-CkE912ll.amd.js} +2 -2
  52. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-B3soLr2U.amd.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CkE912ll.amd.js.map} +1 -1
  53. package/charts/charts.amd.js +1 -1
  54. package/charts/charts.js +1 -1
  55. package/core/app.amd.js +1 -1
  56. package/core/app.js +5 -5
  57. package/dialog/dialog.amd.js +1 -1
  58. package/dialog/dialog.js +2 -2
  59. package/forms/forms.amd.js +1 -1
  60. package/forms/forms.js +1 -1
  61. package/formsExt/formsExt.amd.js +1 -1
  62. package/formsExt/formsExt.js +2 -2
  63. package/layout/layout.amd.js +1 -1
  64. package/layout/layout.js +1 -1
  65. package/package.json +1 -1
  66. package/popup/popup.amd.js +1 -1
  67. package/popup/popup.js +4 -4
  68. package/popup/worker.amd.js +1 -1
  69. package/popup/worker.amd.js.map +1 -1
  70. package/popup/worker.js +11 -9
  71. package/popup/worker.js.map +1 -1
  72. package/project/project.amd.js +1 -1
  73. package/project/project.amd.js.map +1 -1
  74. package/project/project.js +75 -77
  75. package/src/components/popup/lib/popup.d.ts +1 -1
  76. package/src/components/project/project.d.ts +0 -10
  77. package/tabsView/tabsView.amd.js +1 -1
  78. package/tabsView/tabsView.js +2 -2
  79. package/utils/clipboard.amd.js +1 -1
  80. package/utils/clipboard.js +1 -1
  81. package/utils/date.amd.js +1 -1
  82. package/utils/date.js +1 -1
  83. package/utils/device.amd.js +1 -1
  84. package/utils/device.js +1 -1
  85. package/utils/lodash.amd.js +1 -1
  86. package/utils/lodash.js +1 -1
  87. package/utils/price.amd.js +1 -1
  88. package/utils/price.js +1 -1
  89. package/utils/searchers.amd.js +1 -1
  90. package/utils/searchers.js +3 -3
  91. package/utils/string.amd.js +1 -1
  92. package/utils/string.js +1 -1
  93. package/.chunks/policy.vue_vue_type_style_index_0_lang-BUIBGweg.amd.js +0 -2
  94. package/.chunks/popup-DJMBWRtl.es.js.map +0 -1
  95. package/.chunks/popup-c8qgGOCv.amd.js.map +0 -1
@@ -3,18 +3,18 @@
3
3
  const fileNames = ['../assets/project.css'].map(fileName => import.meta.resolve(fileName));
4
4
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
5
5
 
6
- import { defineComponent as j, mergeModels as M, useModel as A, computed as E, createElementBlock as b, openBlock as h, createBlock as C, unref as v, withCtx as T, Fragment as Y, renderList as fe, normalizeClass as X, createElementVNode as oe, toDisplayString as V, createVNode as L, createTextVNode as z, toValue as ve, ref as G, watch as B, createCommentVNode as O, reactive as Be, isRef as pe, withModifiers as F, mergeProps as Ae, withKeys as ye, nextTick as Le, resolveDirective as Ne, withDirectives as Pe, resolveDynamicComponent as De, renderSlot as qe, shallowRef as Ue, createSlots as Fe } from "vue";
7
- import { u as w, C as _, e as H, p as se, d as _e } from "../.chunks/forms-Cwv0JCi5.es.js";
8
- import { _ as be, b as me, a as ze } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-Bp_-W068.es.js";
9
- import { a as Je, _ as Ve, b as Me, c as we, I as de } from "../.chunks/policy.vue_vue_type_style_index_0_lang-B61ZEDWr.es.js";
10
- import { u as We } from "../.chunks/utils-cls72V1c.es.js";
6
+ import { defineComponent as L, mergeModels as M, useModel as A, computed as E, createElementBlock as b, openBlock as h, createBlock as C, unref as v, withCtx as B, Fragment as Y, renderList as fe, normalizeClass as X, createElementVNode as oe, toDisplayString as V, createVNode as R, createTextVNode as z, toValue as ve, ref as G, watch as T, createCommentVNode as O, reactive as Te, isRef as pe, withModifiers as F, mergeProps as Ae, withKeys as ye, nextTick as Re, resolveDirective as Ne, withDirectives as Pe, resolveDynamicComponent as De, renderSlot as qe, shallowRef as Ue, createSlots as Fe } from "vue";
7
+ import { u as w, C as _, e as H, p as se, d as _e } from "../.chunks/forms-BseC3Ftz.es.js";
8
+ import { _ as be, b as me, a as ze } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js";
9
+ import { a as Je, _ as Ve, b as Me, c as we, I as de } from "../.chunks/policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js";
10
+ import { u as We } from "../.chunks/utils-YrUExsH7.es.js";
11
11
  import { getSearcherGIcon as Ye, getLangLabel as He, getDeviceGIcon as Qe } from "../utils/searchers.js";
12
- import "../.chunks/core-DVQVVUiP.es.js";
13
- import "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-BP6GFkkz.es.js";
12
+ import "../.chunks/core-BL-38XF7.es.js";
13
+ import "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-DRbTG0vh.es.js";
14
14
  import { g as Xe } from "../.chunks/field-CyyFzM-Y.es.js";
15
15
  import { storage as J } from "../utils/dom.js";
16
16
  import { TopPopupWorker as Ze } from "../popup/worker.js";
17
- const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" }, Nt = /* @__PURE__ */ j({
17
+ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" }, Nt = /* @__PURE__ */ L({
18
18
  __name: "competitorSelector",
19
19
  props: /* @__PURE__ */ M({
20
20
  modelValue: {},
@@ -37,20 +37,20 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
37
37
  });
38
38
  return (r, l) => (h(), b("div", et, [
39
39
  v(_).state.isMobile ? (h(), C(be, { key: 0 }, {
40
- opener: T(() => [
41
- L(H, {
40
+ opener: B(() => [
41
+ R(H, {
42
42
  class: "top-competitorSelector_opener",
43
43
  color: "theme",
44
44
  icon: "",
45
45
  icon2: ""
46
46
  }, {
47
- default: T(() => [
47
+ default: B(() => [
48
48
  z(V(e.items.find((n) => n.value === o.value?.[0])?.content), 1)
49
49
  ]),
50
50
  _: 1
51
51
  })
52
52
  ]),
53
- contentList: T(() => [
53
+ contentList: B(() => [
54
54
  (h(!0), b(Y, null, fe(e.items, (n) => (h(), C(me, {
55
55
  class: X({
56
56
  "top-active": o.value?.includes(n.value)
@@ -59,7 +59,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
59
59
  title: n.title,
60
60
  onClick: () => o.value = [n.value]
61
61
  }, {
62
- default: T(() => [
62
+ default: B(() => [
63
63
  oe("span", tt, V(n.content), 1)
64
64
  ]),
65
65
  _: 2
@@ -83,7 +83,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
83
83
  title: r.url + ` [${r.id}]`,
84
84
  icon: r.id === ve(a) ? "" : "",
85
85
  content: r.name
86
- }))), R = -1, y = -2, le = -1, ot = {
86
+ }))), j = -1, y = -2, le = -1, ot = {
87
87
  0: "Yandex",
88
88
  1: "Google",
89
89
  4: "YouTube",
@@ -166,7 +166,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
166
166
  }), r))
167
167
  return !1;
168
168
  }), r;
169
- }, dt = We(() => import("../.chunks/dialog_regionSelectorRegions-DJu5Y1WK.es.js")), ut = (e, a) => {
169
+ }, dt = We(() => import("../.chunks/dialog_regionSelectorRegions-1UVhgK2f.es.js")), ut = (e, a) => {
170
170
  const o = w(), t = G(a.value.keys().next().value ?? y), r = E(() => {
171
171
  const l = /* @__PURE__ */ new Map();
172
172
  if (a.value.forEach((n) => {
@@ -183,7 +183,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
183
183
  };
184
184
  l.set(n.value, n);
185
185
  const d = {
186
- value: R,
186
+ value: j,
187
187
  title: o.Common.Compare
188
188
  };
189
189
  l.set(d.value, d);
@@ -220,7 +220,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
220
220
  l.set(n.index, f);
221
221
  }), l;
222
222
  });
223
- return B(r, (l, n) => {
223
+ return T(r, (l, n) => {
224
224
  if (e.onlySearcher || t.value !== void 0 && l.get(t.value))
225
225
  return;
226
226
  let d = l.keys().next().value;
@@ -266,7 +266,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
266
266
  }, l = () => {
267
267
  t.value.length ? localStorage.setItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes", JSON.stringify(t.value)) : localStorage.removeItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes");
268
268
  };
269
- return B(t, () => {
269
+ return T(t, () => {
270
270
  l();
271
271
  }), e.addCompare && r(), {
272
272
  regionsIndexes: t
@@ -280,8 +280,8 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
280
280
  });
281
281
  }), i;
282
282
  }), r = ut(e, a), l = st(e, o), n = ct(e, a, t);
283
- B(a, () => {
284
- if (e.onlySearcher ? n.regionsIndexes.value = Array.from(a.value.keys()) : n.regionsIndexes.value = n.regionsIndexes.value.filter((m) => t.value.has(m)), r.searcherKey.value === R) return;
283
+ T(a, () => {
284
+ if (e.onlySearcher ? n.regionsIndexes.value = Array.from(a.value.keys()) : n.regionsIndexes.value = n.regionsIndexes.value.filter((m) => t.value.has(m)), r.searcherKey.value === j) return;
285
285
  let i = a.value.keys().next().value;
286
286
  a.value.forEach((m) => {
287
287
  if (e.onlySearcher && m.key === r.searcherKey.value) {
@@ -297,7 +297,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
297
297
  }), i !== void 0 && (r.searcherKey.value = i), l.regionIndex.value !== void 0 && !o.value?.regionByIndex?.has(l.regionIndex.value) && (l.regionIndex.value = o.value?.regions?.keys().next().value);
298
298
  }, { immediate: !0 });
299
299
  const d = () => {
300
- if (!(r.searcherKey.value === R || r.searcherKey.value === y))
300
+ if (!(r.searcherKey.value === j || r.searcherKey.value === y))
301
301
  return r.searcherKey.value;
302
302
  }, c = () => {
303
303
  if (e.onlySearcher || l.regionIndex.value === y) return;
@@ -325,7 +325,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
325
325
  return f()?.regionByIndex?.get(i);
326
326
  }
327
327
  };
328
- }, Dt = /* @__PURE__ */ j({
328
+ }, Dt = /* @__PURE__ */ L({
329
329
  __name: "regionSelector",
330
330
  props: /* @__PURE__ */ M({
331
331
  projectId: {},
@@ -367,17 +367,17 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
367
367
  "@update:regionsIndexes": (s) => d.regionsIndexes.value = s
368
368
  });
369
369
  };
370
- return B([n.regionIndex, l.searcherKey, d.regionsIndexes], () => {
371
- if (l.searcherKey.value === R && d.regionsIndexes.value.length) {
370
+ return T([n.regionIndex, l.searcherKey, d.regionsIndexes], () => {
371
+ if (l.searcherKey.value === j && d.regionsIndexes.value.length) {
372
372
  if (JSON.stringify(t.value) === JSON.stringify(d.regionsIndexes.value))
373
373
  return;
374
374
  t.value = [...d.regionsIndexes.value];
375
375
  } else
376
376
  o.onlySearcher ? (t.value = [l.searcherKey.value], l.searcherKey.value === y && !o.autoRegion && (t.value.length = 0)) : (t.value = [n.regionIndex.value], n.regionIndex.value === y && !o.autoRegion && (t.value.length = 0));
377
377
  !o.onlySearcher && !f.value.size && (l.searcherKey.value = y);
378
- }), r.value && B(r, () => {
378
+ }), r.value && T(r, () => {
379
379
  r.value && (t.value = [r.value]);
380
- }, { immediate: !0 }), B(t, () => {
380
+ }, { immediate: !0 }), T(t, () => {
381
381
  if (t.value[0] && (r.value = t.value[0]), o.onlySearcher) {
382
382
  if (!t.value.length || t.value.length === 1 && !c.value.has(t.value[0]) || t.value.length === 1 && t.value[0] === y && !o.autoRegion) {
383
383
  let u = c.value.keys().next().value;
@@ -412,12 +412,12 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
412
412
  l.searcherKey.value = t.value[0];
413
413
  return;
414
414
  }
415
- l.searcherKey.value = R;
415
+ l.searcherKey.value = j;
416
416
  return;
417
417
  } else {
418
418
  if (!t.value.length)
419
419
  return;
420
- if (t.value.length === 1 && l.searcherKey.value !== R) {
420
+ if (t.value.length === 1 && l.searcherKey.value !== j) {
421
421
  n.regionIndex.value = t.value[0];
422
422
  let u;
423
423
  for (const s of c.value.values()) {
@@ -431,7 +431,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
431
431
  }
432
432
  u !== void 0 && (l.searcherKey.value = u);
433
433
  } else
434
- l.searcherKey.value = R, d.regionsIndexes.value = [...t.value];
434
+ l.searcherKey.value = j, d.regionsIndexes.value = [...t.value];
435
435
  }
436
436
  }, { immediate: !0 }), a({
437
437
  getSearcher: I,
@@ -442,14 +442,14 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
442
442
  "top-selectorRegion-onlySearcher": e.onlySearcher
443
443
  })
444
444
  }, [
445
- L(se, {
445
+ R(se, {
446
446
  options: v(l).optionBySearcherKey.value,
447
447
  modelValue: v(l).searcherKey.value,
448
448
  "onUpdate:modelValue": s[0] || (s[0] = (g) => v(l).searcherKey.value = g),
449
449
  name: "searcher_key",
450
450
  addChanger: e.addChanger
451
451
  }, null, 8, ["options", "modelValue", "addChanger"]),
452
- !e.onlySearcher && v(l).searcherKey.value !== v(R) ? (h(), C(se, {
452
+ !e.onlySearcher && v(l).searcherKey.value !== v(j) ? (h(), C(se, {
453
453
  key: 0,
454
454
  class: "top-select-region",
455
455
  options: v(n).optionByRegionIndex.value,
@@ -459,13 +459,13 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
459
459
  addChanger: e.addChanger,
460
460
  "data-top-icon": e.addRegionIcon ? "" : void 0
461
461
  }, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) : O("", !0),
462
- e.addCompare && !e.onlySearcher && v(l).searcherKey.value === v(R) ? (h(), C(H, {
462
+ e.addCompare && !e.onlySearcher && v(l).searcherKey.value === v(j) ? (h(), C(H, {
463
463
  key: 1,
464
464
  name: "compare",
465
465
  onClick: m,
466
466
  "data-count-compare-regions-indexes": v(d).regionsIndexes.value.length
467
467
  }, {
468
- default: T(() => [
468
+ default: B(() => [
469
469
  z(V(u.$i18n.Common.Selected_regions), 1)
470
470
  ]),
471
471
  _: 1
@@ -487,7 +487,7 @@ const Oe = (e, a, o = /* @__PURE__ */ new Map(), t = { id: "root" }, r = 0) => (
487
487
  l = { ...l }, t.childsIds.push(l.id), l.id === 0 && (l.name = Ke(a));
488
488
  const n = r > 1 ? "-".repeat(r - 1) + " " : "";
489
489
  n && !l.name.startsWith(n) && (l.name = n + l.name), o.set(l.id, l), Oe(e, a, o, l, r + 1), t.childsIds = t.childsIds.concat(l.childsIds), t.id && l.count_groups_active && (t.countAllGroupsActive += l.count_groups_active);
490
- }), o), mt = (e) => e.gen("/get/keywords_2/folders/", ["id", "parent_id", "name", "path"]).changeParams({ orders: ["ord_path"], limit: 100 }), vt = /* @__PURE__ */ j({
490
+ }), o), mt = (e) => e.gen("/get/keywords_2/folders/", ["id", "parent_id", "name", "path"]).changeParams({ orders: ["ord_path"], limit: 100 }), vt = /* @__PURE__ */ L({
491
491
  __name: "folders",
492
492
  props: /* @__PURE__ */ M({
493
493
  folderId: {},
@@ -507,7 +507,7 @@ const Oe = (e, a, o = /* @__PURE__ */ new Map(), t = { id: "root" }, r = 0) => (
507
507
  emits: ["update:folderId", "update:folder"],
508
508
  setup(e) {
509
509
  const a = e, o = A(e, "folderId"), t = A(e, "folder"), r = a.client && !a.folders ? mt(a.client) : void 0, l = G(null);
510
- B(() => a.projectId, () => {
510
+ T(() => a.projectId, () => {
511
511
  r?.changeParams({
512
512
  project_id: a.projectId
513
513
  }), r?.setOptions({
@@ -515,12 +515,12 @@ const Oe = (e, a, o = /* @__PURE__ */ new Map(), t = { id: "root" }, r = 0) => (
515
515
  }), l.value?.resetCache();
516
516
  }, { immediate: !0 });
517
517
  const n = E(() => Oe(a.folders ?? { root: [N] }, a.canSelectAll));
518
- return B(o, () => {
518
+ return T(o, () => {
519
519
  a.folders && (n.value.get(a.folderId) || (o.value = 0));
520
- }, { immediate: !0 }), B(o, () => {
520
+ }, { immediate: !0 }), T(o, () => {
521
521
  const d = n.value.get(a.folderId);
522
522
  d && (t.value = d);
523
- }), B(t, () => {
523
+ }), T(t, () => {
524
524
  o.value = t.value.id;
525
525
  }), (d, c) => (h(), C(Ve, {
526
526
  class: "top-groupSelector_folder",
@@ -538,7 +538,7 @@ const Oe = (e, a, o = /* @__PURE__ */ new Map(), t = { id: "root" }, r = 0) => (
538
538
  });
539
539
  function Se(e, a, o) {
540
540
  const t = Object.keys(e), r = t.map((l) => e[l]);
541
- return B(r, (l, n, d) => {
541
+ return T(r, (l, n, d) => {
542
542
  const c = {};
543
543
  l.forEach((f, I) => {
544
544
  if (!Object.is(f, n[I])) {
@@ -561,13 +561,13 @@ const ce = {
561
561
  name: "All groups",
562
562
  folder_id: N.id,
563
563
  folder_path: N.path
564
- }, W = () => (ne.name = w()?.Common.All_groups, ne), Re = () => (ne.name = w()?.Keywords.Choose_group, ne), pt = (e, a) => (e = [...e], a && a.id && a.childsIds && (e = e.filter((o) => o.folder_id === a.id || a.childsIds.includes(o.folder_id))), e), xe = (e) => e.gen("/get/keywords_2/groups/", ["id", "name", "folder_id", "folder_path"]).changeParams({ folder_id_depth: !0, limit: 100 }), yt = (e) => e.gen("/add/keywords_2/groups/"), ht = { class: "top-groupSelector_groupItem" }, It = {
564
+ }, W = () => (ne.name = w()?.Common.All_groups, ne), je = () => (ne.name = w()?.Keywords.Choose_group, ne), pt = (e, a) => (e = [...e], a && a.id && a.childsIds && (e = e.filter((o) => o.folder_id === a.id || a.childsIds.includes(o.folder_id))), e), xe = (e) => e.gen("/get/keywords_2/groups/", ["id", "name", "folder_id", "folder_path"]).changeParams({ folder_id_depth: !0, limit: 100 }), yt = (e) => e.gen("/add/keywords_2/groups/"), ht = { class: "top-groupSelector_groupItem" }, It = {
565
565
  key: 0,
566
566
  class: "top-comment"
567
567
  }, St = {
568
568
  key: 1,
569
569
  class: "top-groupSelector_groupItemFolderPath"
570
- }, xt = /* @__PURE__ */ j({
570
+ }, xt = /* @__PURE__ */ L({
571
571
  __name: "groups",
572
572
  props: /* @__PURE__ */ M({
573
573
  groupId: {},
@@ -612,7 +612,7 @@ const ce = {
612
612
  o.folder?.id ?? 0
613
613
  ], o.groups && (f.value = pt(o.groups, o.folder))), c.value?.resetCache(), (u.folderId?.old !== void 0 || u.canSelectAll?.old !== void 0) && r.value !== de) {
614
614
  let s;
615
- o.autoselect === "first" && (s = f.value?.[0], o.canSelectAll && (s = Be(W()))), (o.autoselect === "placeholder" || !s) && (s = Re()), i(s);
615
+ o.autoselect === "first" && (s = f.value?.[0], o.canSelectAll && (s = Te(W()))), (o.autoselect === "placeholder" || !s) && (s = je()), i(s);
616
616
  }
617
617
  }, { immediate: !0 }), Se({
618
618
  modelGroup: l,
@@ -678,7 +678,7 @@ const ce = {
678
678
  useCache: "",
679
679
  onAppendItem: m
680
680
  }, {
681
- item: T(({ item: g }) => [
681
+ item: B(({ item: g }) => [
682
682
  oe("div", ht, [
683
683
  g.id === v(de) ? (h(), b("div", It, V(u.$i18n.Common.Add) + ": ", 1)) : O("", !0),
684
684
  oe("span", null, V(g.name), 1),
@@ -688,7 +688,7 @@ const ce = {
688
688
  _: 1
689
689
  }, 8, ["modelValue", "items", "icon", "api", "apiSetSearchParams", "appendSearchToResult", "useAllItem", "addChanger"]));
690
690
  }
691
- }), kt = { class: "top-groupSelector" }, qt = /* @__PURE__ */ j({
691
+ }), kt = { class: "top-groupSelector" }, qt = /* @__PURE__ */ L({
692
692
  __name: "groupSelector",
693
693
  props: /* @__PURE__ */ M({
694
694
  folderId: {},
@@ -718,7 +718,7 @@ const ce = {
718
718
  setup(e, { emit: a }) {
719
719
  const o = e, t = A(e, "folderId"), r = A(e, "groupId"), l = A(e, "group"), n = a, d = G(ft(o.folders, o.canSelectAllGroups));
720
720
  let c = o.groups?.find((I) => I.id === r.value);
721
- r.value || (c = o.groups?.[0]), o.canSelectAllGroups && !c && (c = W()), o.canSelectAllGroups && !c && (c = W()), (o.autoselect === "placeholder" || !c) && (c = Re()), c ??= ce, l.value ??= c;
721
+ r.value || (c = o.groups?.[0]), o.canSelectAllGroups && !c && (c = W()), o.canSelectAllGroups && !c && (c = W()), (o.autoselect === "placeholder" || !c) && (c = je()), c ??= ce, l.value ??= c;
722
722
  const f = (I) => {
723
723
  let i;
724
724
  o.groups && I && (i = [...o.groups, I]), n("update:groups", i);
@@ -773,10 +773,10 @@ const ce = {
773
773
  filters: e.filters,
774
774
  payload: e.payload
775
775
  };
776
- J(t, "topTagSelectorTarget", n), delete t.dataset.topPopupDisabled, pe(e.modelValue) || B(l, () => {
776
+ J(t, "topTagSelectorTarget", n), delete t.dataset.topPopupDisabled, pe(e.modelValue) || T(l, () => {
777
777
  e.modelValue = l.value, te(t, e, o);
778
778
  }), t.click();
779
- }, pe(e.modelValue) ? B(e.modelValue, () => te(t, e, o)) : J(t, "topTagSelectorRender", (r) => {
779
+ }, pe(e.modelValue) ? T(e.modelValue, () => te(t, e, o)) : J(t, "topTagSelectorRender", (r) => {
780
780
  e.modelValue = r;
781
781
  const l = J(t, "topTagSelectorTarget");
782
782
  l && (l.model.value = r), te(t, e, o);
@@ -861,7 +861,7 @@ const ce = {
861
861
  name: "Turquoise",
862
862
  color_id: "10"
863
863
  }
864
- ], Tt = ["data-tag_id", "data-tag_color_id", "title"], ge = /* @__PURE__ */ j({
864
+ ], Bt = ["data-tag_id", "data-tag_color_id", "title"], ge = /* @__PURE__ */ L({
865
865
  __name: "tagIcon",
866
866
  props: {
867
867
  id: {},
@@ -879,9 +879,9 @@ const ce = {
879
879
  "data-tag_id": e.id,
880
880
  "data-tag_color_id": e.colorId,
881
881
  title: e.name
882
- }, null, 10, Tt));
882
+ }, null, 10, Bt));
883
883
  }
884
- }), Bt = ["contenteditable", "onKeydown"], Te = /* @__PURE__ */ j({
884
+ }), Tt = ["contenteditable", "onKeydown"], Be = /* @__PURE__ */ L({
885
885
  __name: "tagPopupListItem",
886
886
  props: /* @__PURE__ */ M({
887
887
  editable: { type: Boolean },
@@ -903,7 +903,7 @@ const ce = {
903
903
  contenteditable: d.value,
904
904
  onpaste: (m) => m.preventDefault()
905
905
  } : {}), d = G(!1), c = async () => {
906
- d.value = !0, await Le(), l.value?.focus();
906
+ d.value = !0, await Re(), l.value?.focus();
907
907
  }, f = () => {
908
908
  const m = l.value?.innerText;
909
909
  if (!m) return I();
@@ -926,8 +926,8 @@ const ce = {
926
926
  }),
927
927
  onClick: F(i, ["stop"])
928
928
  }, {
929
- default: T(() => [
930
- L(ge, {
929
+ default: B(() => [
930
+ R(ge, {
931
931
  id: e.id,
932
932
  name: r.value,
933
933
  colorId: e.colorId,
@@ -943,7 +943,7 @@ const ce = {
943
943
  ye(F(f, ["stop"]), ["enter"]),
944
944
  ye(F(I, ["stop"]), ["esc"])
945
945
  ]
946
- }), V(r.value), 17, Bt),
946
+ }), V(r.value), 17, Tt),
947
947
  e.editable ? (h(), b(Y, { key: 0 }, [
948
948
  d.value ? (h(), b("span", {
949
949
  key: 1,
@@ -961,7 +961,7 @@ const ce = {
961
961
  _: 1
962
962
  }, 8, ["class"]));
963
963
  }
964
- }), At = { key: 1 }, bt = /* @__PURE__ */ j({
964
+ }), At = { key: 1 }, bt = /* @__PURE__ */ L({
965
965
  inheritAttrs: !1,
966
966
  __name: "popupOpener",
967
967
  props: /* @__PURE__ */ M({
@@ -992,7 +992,7 @@ const ce = {
992
992
  return (n, d) => {
993
993
  const c = Ne("top-data");
994
994
  return h(), C(ze, { id: e.id }, {
995
- default: T(() => [
995
+ default: B(() => [
996
996
  Pe((h(), C(De(v(t)), Ae({
997
997
  class: {
998
998
  "top-tagSelector": !0,
@@ -1008,7 +1008,7 @@ const ce = {
1008
1008
  color: "theme",
1009
1009
  styling: e.styling
1010
1010
  }, n.$attrs), {
1011
- [v(r)]: T(() => [
1011
+ [v(r)]: B(() => [
1012
1012
  !o.value.length && e.mode === "filter" ? (h(), C(ge, {
1013
1013
  key: 0,
1014
1014
  id: "all",
@@ -1034,7 +1034,7 @@ const ce = {
1034
1034
  }, 8, ["id"]);
1035
1035
  };
1036
1036
  }
1037
- }), _t = /* @__PURE__ */ j({
1037
+ }), _t = /* @__PURE__ */ L({
1038
1038
  __name: "tagSelector",
1039
1039
  props: /* @__PURE__ */ M({
1040
1040
  modelValue: {},
@@ -1054,7 +1054,7 @@ const ce = {
1054
1054
  },
1055
1055
  modelModifiers: {},
1056
1056
  tags: {
1057
- default: Be(Ct)
1057
+ default: Te(Ct)
1058
1058
  },
1059
1059
  tagsModifiers: {}
1060
1060
  }),
@@ -1075,7 +1075,7 @@ const ce = {
1075
1075
  filters: void 0,
1076
1076
  payload: void 0
1077
1077
  });
1078
- B(r, () => {
1078
+ T(r, () => {
1079
1079
  d("selector", r.value);
1080
1080
  });
1081
1081
  const m = E(() => {
@@ -1137,11 +1137,11 @@ const ce = {
1137
1137
  }), d("tagsChanged", l.value);
1138
1138
  }
1139
1139
  });
1140
- }, je = (p) => {
1140
+ }, Le = (p) => {
1141
1141
  _.$?.ui.sortable && $(p.elPopup).data("ui-sortable") && $(p.elPopup).sortable("destroy");
1142
1142
  };
1143
1143
  return (p, S) => (h(), b(Y, null, [
1144
- L(bt, {
1144
+ R(bt, {
1145
1145
  modelValue: r.value,
1146
1146
  "onUpdate:modelValue": S[0] || (S[0] = (x) => r.value = x),
1147
1147
  id: v(c),
@@ -1150,15 +1150,15 @@ const ce = {
1150
1150
  mode: "filter",
1151
1151
  useTopButton: e.useTopButton
1152
1152
  }, null, 8, ["modelValue", "id", "tags", "styling", "useTopButton"]),
1153
- L(be, {
1153
+ R(be, {
1154
1154
  id: v(c),
1155
1155
  class: X(g.value),
1156
1156
  onOpen: S[4] || (S[4] = (x) => P(x)),
1157
- onClose: S[5] || (S[5] = (x) => je(x)),
1157
+ onClose: S[5] || (S[5] = (x) => Le(x)),
1158
1158
  "transition-duration": 50
1159
1159
  }, Fe({
1160
- contentList: T(() => [
1161
- v(i).mode === "filter" && !e.singleMode ? (h(), C(Te, {
1160
+ contentList: B(() => [
1161
+ v(i).mode === "filter" && !e.singleMode ? (h(), C(Be, {
1162
1162
  key: 0,
1163
1163
  id: "all",
1164
1164
  colorId: "",
@@ -1166,7 +1166,7 @@ const ce = {
1166
1166
  state: v(i).model.value.length ? "" : "selected",
1167
1167
  onSelect: S[3] || (S[3] = (x) => v(i).model.value = [])
1168
1168
  }, null, 8, ["name", "state"])) : O("", !0),
1169
- (h(!0), b(Y, null, fe(l.value, (x) => (h(), C(Te, {
1169
+ (h(!0), b(Y, null, fe(l.value, (x) => (h(), C(Be, {
1170
1170
  key: x.id,
1171
1171
  id: x.id,
1172
1172
  colorId: x.color_id,
@@ -1187,7 +1187,7 @@ const ce = {
1187
1187
  "data-top-icon": "",
1188
1188
  onClick: F(Z, ["stop"])
1189
1189
  }, {
1190
- default: T(() => [
1190
+ default: B(() => [
1191
1191
  z(V(p.$i18n.Common.Add), 1)
1192
1192
  ]),
1193
1193
  _: 1
@@ -1197,8 +1197,8 @@ const ce = {
1197
1197
  }, [
1198
1198
  v(i).mode === "setter" && v(i).filters ? {
1199
1199
  name: "header",
1200
- fn: T(() => [
1201
- L(se, {
1200
+ fn: B(() => [
1201
+ R(se, {
1202
1202
  modelValue: f.value,
1203
1203
  "onUpdate:modelValue": S[1] || (S[1] = (x) => f.value = x),
1204
1204
  options: I()
@@ -1208,14 +1208,14 @@ const ce = {
1208
1208
  } : void 0,
1209
1209
  v(i).mode === "setter" && v(i).filters ? {
1210
1210
  name: "footer",
1211
- fn: T(() => [
1212
- L(H, { color: "theme" }, {
1213
- default: T(() => [
1211
+ fn: B(() => [
1212
+ R(H, { color: "theme" }, {
1213
+ default: B(() => [
1214
1214
  z(V(p.$i18n.Common.Cancel), 1)
1215
1215
  ]),
1216
1216
  _: 1
1217
1217
  }),
1218
- L(H, {
1218
+ R(H, {
1219
1219
  onClick: S[2] || (S[2] = (x) => v(d)("setter", {
1220
1220
  tagsIds: v(i).model.value,
1221
1221
  filters: v(i).filters,
@@ -1223,7 +1223,7 @@ const ce = {
1223
1223
  payload: v(i).payload
1224
1224
  }))
1225
1225
  }, {
1226
- default: T(() => [
1226
+ default: B(() => [
1227
1227
  z(V(f.value === "add" ? p.$i18n.Common.Add : "") + " " + V(f.value === "replace" ? p.$i18n.Common.Replace : "") + " " + V(f.value === "delete" ? p.$i18n.Common.Delete : ""), 1)
1228
1228
  ]),
1229
1229
  _: 1
@@ -1239,8 +1239,6 @@ export {
1239
1239
  Nt as TopCompetitorSelector,
1240
1240
  qt as TopGroupSelector,
1241
1241
  Dt as TopRegionSelector,
1242
- Nt as TopSelectorCompetitors,
1243
- Dt as TopSelectorRegion,
1244
1242
  _t as TopTagSelector,
1245
1243
  bt as TopTagSelectorPopupOpener,
1246
1244
  ge as TopTagSelectorTagIcon,
@@ -38,7 +38,7 @@ export declare class TopLibPopup<T extends Record<string, any> | undefined = und
38
38
  /**
39
39
  * Для openerIsInput фокусировка срабатывает при входе в поле ввода
40
40
  *
41
- * Фкусировка на сам Popup не производится
41
+ * Фокусировка на сам Popup не производится
42
42
  *
43
43
  * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/combobox_role
44
44
  */
@@ -8,13 +8,3 @@ export { genElPopupOpener as genElTopTagSelectorPopupOpener, renderElPopupOpener
8
8
  export { default as TopTagSelector } from './tagSelector/tagSelector.vue';
9
9
  export { default as TopTagSelectorPopupOpener } from './tagSelector/popupOpener/popupOpener.vue';
10
10
  export { default as TopTagSelectorTagIcon } from './tagSelector/tagIcon/tagIcon.vue';
11
- export {
12
- /**
13
- * @deprecated
14
- */
15
- default as TopSelectorCompetitors, } from './competitorSelector/competitorSelector.vue';
16
- export {
17
- /**
18
- * @deprecated
19
- */
20
- default as TopSelectorRegion, } from './regionSelector/regionSelector.vue';
@@ -1,2 +1,2 @@
1
- define(["require","exports","vue","../.chunks/forms--2-YQeWM.amd","../utils/route.amd","../.chunks/store-YRW59xEF.amd","../.chunks/popupHint.vue_vue_type_style_index_0_lang-D42xEF-j.amd","../utils/system.amd","../require/css.amd!../assets/tabsView.css"],(function(A,h,e,p,f,g,S,M){"use strict";if(typeof e>"u")var e=window.Vue;const k=(o,n)=>`top:${String(o)}:${n}`,y={loadLocalStorge:(o,n)=>{if(!n.$id)return;const t=k(o,n.$id);try{const a=JSON.parse(localStorage.getItem(t));typeof a==typeof n[o]&&(n[o]=a)}catch{console.warn(new Error(`В localStorage[${t}] не корректный json`))}},addSaverLocalStorge:(o,n)=>{if(!n.$id)return;const t=k(o,n.$id);e.watch(()=>n[o],()=>{localStorage.setItem(t,JSON.stringify(n[o]))},{immediate:!0})}},_=new Set;addEventListener("popstate",o=>{_.forEach(n=>n(o))});const V=Symbol(),$=(o,n)=>{const t=g.defineStore(V,()=>{const a=e.computed(()=>o.showMenuInPopup??p.Core.state.isMobile),i=e.computed(()=>o.pageMod),u=e.ref(!1),r=e.ref(void 0),l=e.ref(!0);return{showMenuInPopup:a,pageMod:i,isShort:u,activeItemName:n,component:r,scrollable:l}},o.idState);if(o.isShortable){const a="isShort";y.loadLocalStorge(a,t),y.addSaverLocalStorge(a,t)}if(t.$id){const a=i=>{n.value=f.getHash(t.$id)};_.add(a)}return t},w=()=>g.useStore(V),N={key:1,class:"top-ellipsis"},v=e.defineComponent({__name:"menuItem",props:{name:{},href:{},icon:{},disabled:{type:Boolean},component:{default:void 0},scrollable:{type:Boolean,default:!0}},setup(o){const n=o,t=w(),a=e.computed(()=>n.name&&t.$id?f.genHash(t.$id,n.name):n.href),i=e.computed(()=>t.showMenuInPopup?S._sfc_main$2:a?"a":"button"),u=r=>{!n.href&&a.value&&r.preventDefault(),n.name&&(t.activeItemName=n.name)};return(r,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),{target:"_self",class:e.normalizeClass({"top-tabsView_menuItem":!e.unref(t).showMenuInPopup,"top-active":o.name&&e.unref(t).activeItemName===o.name,"top-disabled":o.disabled,"top-spa-disabled":!0}),href:a.value,"data-top-icon":o.icon||void 0,disabled:o.disabled||void 0,onClick:u},{default:e.withCtx(()=>[e.unref(t).showMenuInPopup?e.renderSlot(r.$slots,"default",{key:0}):r.$slots.default&&!e.unref(t).isShort?(e.openBlock(),e.createElementBlock("span",N,[e.renderSlot(r.$slots,"default")])):e.createCommentVNode("",!0)]),_:3},8,["class","href","data-top-icon","disabled"]))}}),B=o=>o?.name==="AsyncComponentWrapper"&&!o?.__asyncResolved,C=async(o,n)=>{o?.name==="AsyncComponentWrapper"&&(o?.__asyncResolved||(o.__asyncLoader(),await M.sleepWhile(()=>n()&&B(o),200)))},L={class:"top-tabsView_menuOpener"},E=["data-top-icon"],P={class:"top-ellipsis"},T={class:"top-tabsView_menuList"},z={key:0,class:"top-tabsView_menuFooter"},R=e.defineComponent({__name:"menu",props:e.mergeModels({isShortable:{type:Boolean},isLoading:{type:Boolean}},{isLoading:{},isLoadingModifiers:{}}),emits:["update:isLoading"],setup(o){const n=e.useModel(o,"isLoading"),t=w(),a=e.useSlots(),i=new Map,u=()=>{if(!a.default)return;const c=a.default({}).find(s=>s.key==="_menu");c&&r(c.children)},r=c=>{c.forEach(s=>{if(s.type.__name&&s.type.__name!==v.__name)return;if(!s.type.__name&&typeof s.children=="object"){r(s.children);return}if(!s.props?.name||s.props?.disabled)return;const I={title:(s.children.default?.()[0].children).trim(),icon:s.props.icon,component:s.props.component?e.markRaw(s.props.component):v.props.component.default,scrollable:s.props.scrollable??v.props.scrollable.default};i.set(s.props.name,I)})},l=e.ref(null);let d=0;e.watch(()=>t.activeItemName,async()=>{const c=++d;if(i.size===0&&u(),i.size===0){t.activeItemName="";return}if(l.value=i.get(t.activeItemName)??null,!l.value&&t.$id){const s=f.getHash(t.$id);if(l.value=i.get(s)??null,l.value){t.activeItemName=s;return}}if(!l.value){t.activeItemName=i.keys().next().value;return}if(l.value.component===t.component){n.value=!1;return}t.$id&&f.setHash(t.$id,t.activeItemName,!1),n.value=!0,await C(l.value.component,()=>c===d),c===d&&(t.scrollable=l.value.scrollable,t.component=l.value.component,l.value&&!t.component&&console.warn(`Компонент вкладки ${t.activeItemName} не найден. Добавьте props.component для пункта меню ${t.activeItemName}.`))},{immediate:!0});const m=e.ref();let b;return e.onMounted(()=>{b=new ResizeObserver(()=>{m.value.parentElement.style.setProperty("--top-tabsView-contents-offset-top",m.value.offsetHeight+"px")}),b.observe(m.value)}),e.onUnmounted(()=>{b.disconnect()}),(c,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"elRef",ref:m,class:e.normalizeClass({"top-tabsView_menu":!0,"top-tabsView_menu-inPopup_0":!e.unref(t).showMenuInPopup,"top-tabsView_menu-inPopup_1":e.unref(t).showMenuInPopup,"top-tabsView_menu-short":e.unref(t).isShort&&!e.unref(t).showMenuInPopup})},[e.unref(t).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0},{opener:e.withCtx(()=>[e.createElementVNode("div",L,[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-tabsView_menuOpenerActiveItem","data-top-icon":l.value.icon},[e.createElementVNode("span",P,e.toDisplayString(l.value.title),1)],8,E)):e.createCommentVNode("",!0),s[1]||(s[1]=e.createElementVNode("div",{class:"top-tabsView_menuOpenerIcon","data-top-icon":""},null,-1))])]),contentList:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",T,[e.renderSlot(c.$slots,"default")]),o.isShortable?(e.openBlock(),e.createElementBlock("div",z,[o.isShortable?(e.openBlock(),e.createBlock(v,{key:0,icon:e.unref(t).isShort?"":"",onClick:s[0]||(s[0]=I=>e.unref(t).isShort=!e.unref(t).isShort)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t).isShort?"":"Свернуть"),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))],2))}}),O=e.defineComponent({__name:"tabsView",props:e.mergeModels({modelValue:{},pageMod:{type:Boolean},showMenuInPopup:{type:Boolean,default:void 0},isShortable:{type:Boolean,default:!1},idState:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const n=o,t=e.useModel(o,"modelValue"),a=$(n,t),i=Math.random();n.pageMod&&p.Core.state.documentClassModificators.set(i,"top-hasTabsViewPageMod"),e.onUnmounted(()=>{n.pageMod&&p.Core.state.documentClassModificators.delete(i),a.$id&&f.delHash(a.$id,a.activeItemName,!0)});const u=e.ref(),r=e.ref(!1);return e.watch([u,()=>a.component],()=>{r.value=B(a.component)},{immediate:!0}),(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"top-tabsView":!0,"top-tabsView-pageMod":n.pageMod,"top-tabsView-inPopup":e.unref(a).showMenuInPopup})},[e.createVNode(R,{isShortable:o.isShortable,isLoading:r.value,"onUpdate:isLoading":d[0]||(d[0]=m=>r.value=m)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"menu")]),_:3},8,["isShortable","isLoading"]),e.createElementVNode("div",{class:e.normalizeClass({"top-tabsView_contents":!0,"top-tabsView_contents-isLoading":r.value,"top-tabsView_contents-noScrollable":!e.unref(a).scrollable})},[r.value?(e.openBlock(),e.createBlock(p.TopLoadbar,{key:0})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a).component),{ref_key:"componentRef",ref:u},null,512))],1024))],2)],2))}}),D={},H={class:"top-tabsView_menuDelimeter"};function K(o,n){return e.openBlock(),e.createElementBlock("div",H)}const j=p._export_sfc(D,[["render",K]]),x=e.defineComponent({__name:"menuTitle",props:{isSubtitle:{type:Boolean}},setup(o){const n=w();return(t,a)=>e.unref(n).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(S._sfc_main$2),{key:0,type:"title"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3})):e.unref(n).isShort?(e.openBlock(),e.createBlock(j,{key:1})):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"top-tabsView_menuTitle":!0,"top-tabsView_menuTitle-subtitle":o.isSubtitle})},[e.renderSlot(t.$slots,"default")],2))}});h.TopTabsView=O,h.TopTabsViewMenuItem=v,h.TopTabsViewMenuTitle=x,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
1
+ define(["require","exports","vue","../.chunks/forms-CUSCBQu3.amd","../utils/route.amd","../.chunks/store-YRW59xEF.amd","../.chunks/popupHint.vue_vue_type_style_index_0_lang-DtiT6NE4.amd","../utils/system.amd","../require/css.amd!../assets/tabsView.css"],(function(A,h,e,p,f,g,S,M){"use strict";if(typeof e>"u")var e=window.Vue;const k=(o,n)=>`top:${String(o)}:${n}`,y={loadLocalStorge:(o,n)=>{if(!n.$id)return;const t=k(o,n.$id);try{const a=JSON.parse(localStorage.getItem(t));typeof a==typeof n[o]&&(n[o]=a)}catch{console.warn(new Error(`В localStorage[${t}] не корректный json`))}},addSaverLocalStorge:(o,n)=>{if(!n.$id)return;const t=k(o,n.$id);e.watch(()=>n[o],()=>{localStorage.setItem(t,JSON.stringify(n[o]))},{immediate:!0})}},_=new Set;addEventListener("popstate",o=>{_.forEach(n=>n(o))});const V=Symbol(),$=(o,n)=>{const t=g.defineStore(V,()=>{const a=e.computed(()=>o.showMenuInPopup??p.Core.state.isMobile),i=e.computed(()=>o.pageMod),u=e.ref(!1),r=e.ref(void 0),l=e.ref(!0);return{showMenuInPopup:a,pageMod:i,isShort:u,activeItemName:n,component:r,scrollable:l}},o.idState);if(o.isShortable){const a="isShort";y.loadLocalStorge(a,t),y.addSaverLocalStorge(a,t)}if(t.$id){const a=i=>{n.value=f.getHash(t.$id)};_.add(a)}return t},w=()=>g.useStore(V),N={key:1,class:"top-ellipsis"},v=e.defineComponent({__name:"menuItem",props:{name:{},href:{},icon:{},disabled:{type:Boolean},component:{default:void 0},scrollable:{type:Boolean,default:!0}},setup(o){const n=o,t=w(),a=e.computed(()=>n.name&&t.$id?f.genHash(t.$id,n.name):n.href),i=e.computed(()=>t.showMenuInPopup?S._sfc_main$2:a?"a":"button"),u=r=>{!n.href&&a.value&&r.preventDefault(),n.name&&(t.activeItemName=n.name)};return(r,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),{target:"_self",class:e.normalizeClass({"top-tabsView_menuItem":!e.unref(t).showMenuInPopup,"top-active":o.name&&e.unref(t).activeItemName===o.name,"top-disabled":o.disabled,"top-spa-disabled":!0}),href:a.value,"data-top-icon":o.icon||void 0,disabled:o.disabled||void 0,onClick:u},{default:e.withCtx(()=>[e.unref(t).showMenuInPopup?e.renderSlot(r.$slots,"default",{key:0}):r.$slots.default&&!e.unref(t).isShort?(e.openBlock(),e.createElementBlock("span",N,[e.renderSlot(r.$slots,"default")])):e.createCommentVNode("",!0)]),_:3},8,["class","href","data-top-icon","disabled"]))}}),B=o=>o?.name==="AsyncComponentWrapper"&&!o?.__asyncResolved,C=async(o,n)=>{o?.name==="AsyncComponentWrapper"&&(o?.__asyncResolved||(o.__asyncLoader(),await M.sleepWhile(()=>n()&&B(o),200)))},L={class:"top-tabsView_menuOpener"},E=["data-top-icon"],P={class:"top-ellipsis"},T={class:"top-tabsView_menuList"},z={key:0,class:"top-tabsView_menuFooter"},R=e.defineComponent({__name:"menu",props:e.mergeModels({isShortable:{type:Boolean},isLoading:{type:Boolean}},{isLoading:{},isLoadingModifiers:{}}),emits:["update:isLoading"],setup(o){const n=e.useModel(o,"isLoading"),t=w(),a=e.useSlots(),i=new Map,u=()=>{if(!a.default)return;const c=a.default({}).find(s=>s.key==="_menu");c&&r(c.children)},r=c=>{c.forEach(s=>{if(s.type.__name&&s.type.__name!==v.__name)return;if(!s.type.__name&&typeof s.children=="object"){r(s.children);return}if(!s.props?.name||s.props?.disabled)return;const I={title:(s.children.default?.()[0].children).trim(),icon:s.props.icon,component:s.props.component?e.markRaw(s.props.component):v.props.component.default,scrollable:s.props.scrollable??v.props.scrollable.default};i.set(s.props.name,I)})},l=e.ref(null);let d=0;e.watch(()=>t.activeItemName,async()=>{const c=++d;if(i.size===0&&u(),i.size===0){t.activeItemName="";return}if(l.value=i.get(t.activeItemName)??null,!l.value&&t.$id){const s=f.getHash(t.$id);if(l.value=i.get(s)??null,l.value){t.activeItemName=s;return}}if(!l.value){t.activeItemName=i.keys().next().value;return}if(l.value.component===t.component){n.value=!1;return}t.$id&&f.setHash(t.$id,t.activeItemName,!1),n.value=!0,await C(l.value.component,()=>c===d),c===d&&(t.scrollable=l.value.scrollable,t.component=l.value.component,l.value&&!t.component&&console.warn(`Компонент вкладки ${t.activeItemName} не найден. Добавьте props.component для пункта меню ${t.activeItemName}.`))},{immediate:!0});const m=e.ref();let b;return e.onMounted(()=>{b=new ResizeObserver(()=>{m.value.parentElement.style.setProperty("--top-tabsView-contents-offset-top",m.value.offsetHeight+"px")}),b.observe(m.value)}),e.onUnmounted(()=>{b.disconnect()}),(c,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"elRef",ref:m,class:e.normalizeClass({"top-tabsView_menu":!0,"top-tabsView_menu-inPopup_0":!e.unref(t).showMenuInPopup,"top-tabsView_menu-inPopup_1":e.unref(t).showMenuInPopup,"top-tabsView_menu-short":e.unref(t).isShort&&!e.unref(t).showMenuInPopup})},[e.unref(t).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0},{opener:e.withCtx(()=>[e.createElementVNode("div",L,[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-tabsView_menuOpenerActiveItem","data-top-icon":l.value.icon},[e.createElementVNode("span",P,e.toDisplayString(l.value.title),1)],8,E)):e.createCommentVNode("",!0),s[1]||(s[1]=e.createElementVNode("div",{class:"top-tabsView_menuOpenerIcon","data-top-icon":""},null,-1))])]),contentList:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",T,[e.renderSlot(c.$slots,"default")]),o.isShortable?(e.openBlock(),e.createElementBlock("div",z,[o.isShortable?(e.openBlock(),e.createBlock(v,{key:0,icon:e.unref(t).isShort?"":"",onClick:s[0]||(s[0]=I=>e.unref(t).isShort=!e.unref(t).isShort)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t).isShort?"":"Свернуть"),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))],2))}}),O=e.defineComponent({__name:"tabsView",props:e.mergeModels({modelValue:{},pageMod:{type:Boolean},showMenuInPopup:{type:Boolean,default:void 0},isShortable:{type:Boolean,default:!1},idState:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const n=o,t=e.useModel(o,"modelValue"),a=$(n,t),i=Math.random();n.pageMod&&p.Core.state.documentClassModificators.set(i,"top-hasTabsViewPageMod"),e.onUnmounted(()=>{n.pageMod&&p.Core.state.documentClassModificators.delete(i),a.$id&&f.delHash(a.$id,a.activeItemName,!0)});const u=e.ref(),r=e.ref(!1);return e.watch([u,()=>a.component],()=>{r.value=B(a.component)},{immediate:!0}),(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"top-tabsView":!0,"top-tabsView-pageMod":n.pageMod,"top-tabsView-inPopup":e.unref(a).showMenuInPopup})},[e.createVNode(R,{isShortable:o.isShortable,isLoading:r.value,"onUpdate:isLoading":d[0]||(d[0]=m=>r.value=m)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"menu")]),_:3},8,["isShortable","isLoading"]),e.createElementVNode("div",{class:e.normalizeClass({"top-tabsView_contents":!0,"top-tabsView_contents-isLoading":r.value,"top-tabsView_contents-noScrollable":!e.unref(a).scrollable})},[r.value?(e.openBlock(),e.createBlock(p.TopLoadbar,{key:0})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a).component),{ref_key:"componentRef",ref:u},null,512))],1024))],2)],2))}}),D={},H={class:"top-tabsView_menuDelimeter"};function K(o,n){return e.openBlock(),e.createElementBlock("div",H)}const j=p._export_sfc(D,[["render",K]]),x=e.defineComponent({__name:"menuTitle",props:{isSubtitle:{type:Boolean}},setup(o){const n=w();return(t,a)=>e.unref(n).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(S._sfc_main$2),{key:0,type:"title"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3})):e.unref(n).isShort?(e.openBlock(),e.createBlock(j,{key:1})):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"top-tabsView_menuTitle":!0,"top-tabsView_menuTitle-subtitle":o.isSubtitle})},[e.renderSlot(t.$slots,"default")],2))}});h.TopTabsView=O,h.TopTabsViewMenuItem=v,h.TopTabsViewMenuTitle=x,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
2
2
  //# sourceMappingURL=tabsView.amd.js.map
@@ -4,10 +4,10 @@
4
4
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
5
5
 
6
6
  import { watch as k, computed as I, ref as f, defineComponent as M, createBlock as m, openBlock as r, resolveDynamicComponent as B, normalizeClass as g, unref as s, withCtx as b, renderSlot as v, createElementBlock as p, createCommentVNode as S, mergeModels as R, useModel as C, useSlots as j, onMounted as x, onUnmounted as E, createElementVNode as y, toDisplayString as P, Fragment as F, createTextVNode as W, markRaw as J, createVNode as U, KeepAlive as q } from "vue";
7
- import { C as V, T as G, k as Q } from "../.chunks/forms-Cwv0JCi5.es.js";
7
+ import { C as V, T as G, k as Q } from "../.chunks/forms-BseC3Ftz.es.js";
8
8
  import { getHash as O, genHash as X, setHash as Y, delHash as Z } from "../utils/route.js";
9
9
  import { u as ee, d as te } from "../.chunks/store-CX_6ZXhO.es.js";
10
- import { b as z, _ as oe } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-Bp_-W068.es.js";
10
+ import { b as z, _ as oe } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js";
11
11
  import { sleepWhile as ae } from "../utils/system.js";
12
12
  const D = (t, o) => `top:${String(t)}:${o}`, ne = (t, o) => {
13
13
  if (!o.$id) return;
@@ -1,4 +1,4 @@
1
- define(["require","exports","../.chunks/forms--2-YQeWM.amd"],(function(l,t,e){"use strict";if(typeof r>"u")var r=window.Vue;async function a(o,n=!1){let i=!1;return navigator.clipboard&&(await navigator.clipboard.writeText(o),i=!0,n&&e.Core.notice(e.useI18n().Common.Copied_to_clipboard+"","info")),i}async function u(o){let n=!1;e.isSafari()||(n=await a(o));const i='<a href="'+o+'" target="_blank">'+o+"</a>",c=e.useI18n().Common.Copied_to_clipboard+`:
1
+ define(["require","exports","../.chunks/forms-CUSCBQu3.amd"],(function(l,t,e){"use strict";if(typeof r>"u")var r=window.Vue;async function a(o,n=!1){let i=!1;return navigator.clipboard&&(await navigator.clipboard.writeText(o),i=!0,n&&e.Core.notice(e.useI18n().Common.Copied_to_clipboard+"","info")),i}async function u(o){let n=!1;e.isSafari()||(n=await a(o));const i='<a href="'+o+'" target="_blank">'+o+"</a>",c=e.useI18n().Common.Copied_to_clipboard+`:
2
2
  `+i;if(n)e.Core.notice(c,"info");else{if(!navigator.clipboard){e.Core.notice(e.useI18n().Common.Cannot_copied_to_clipboard+`:
3
3
  `+e.useI18n().Common.Copy_guest_link_manually+`
4
4
  `+i,"error");return}const d={onclick:()=>a(o).then(()=>e.Core.notice(c,"info")),default:e.useI18n().Common.Copy+"",class:"copy"};await e.Core.notice(e.useI18n().Common.Guest_link_created+`
@@ -1,4 +1,4 @@
1
- import { C as t, u as a, b as s } from "../.chunks/forms-Cwv0JCi5.es.js";
1
+ import { C as t, u as a, b as s } from "../.chunks/forms-BseC3Ftz.es.js";
2
2
  async function r(o, e = !1) {
3
3
  let i = !1;
4
4
  return navigator.clipboard && (await navigator.clipboard.writeText(o), i = !0, e && t.notice(a().Common.Copied_to_clipboard + "", "info")), i;
package/utils/date.amd.js CHANGED
@@ -1,2 +1,2 @@
1
- define(["require","exports","../.chunks/forms--2-YQeWM.amd"],(function(n,e,t){"use strict";if(typeof a>"u")var a=window.Vue;e.dateFormat=t.dateFormat,e.dateToString=t.dateToString,e.dateUnformat=t.dateUnformat,e.genDate=t.genDate,e.genDateMoscow=t.genDateMoscow,e.genUserDate=t.genUserDate,e.getDayOfWeek=t.getDayOfWeek,e.stringToDate=t.stringToDate,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
1
+ define(["require","exports","../.chunks/forms-CUSCBQu3.amd"],(function(n,e,t){"use strict";if(typeof a>"u")var a=window.Vue;e.dateFormat=t.dateFormat,e.dateToString=t.dateToString,e.dateUnformat=t.dateUnformat,e.genDate=t.genDate,e.genDateMoscow=t.genDateMoscow,e.genUserDate=t.genUserDate,e.getDayOfWeek=t.getDayOfWeek,e.stringToDate=t.stringToDate,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
2
2
  //# sourceMappingURL=date.amd.js.map
package/utils/date.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as t, K as s, P as o, N as r, O as g, M as n, J as D, L as d } from "../.chunks/forms-Cwv0JCi5.es.js";
1
+ import { c as t, K as s, P as o, N as r, O as g, M as n, J as D, L as d } from "../.chunks/forms-BseC3Ftz.es.js";
2
2
  export {
3
3
  t as dateFormat,
4
4
  s as dateToString,
@@ -1,2 +1,2 @@
1
- define(["require","exports","../.chunks/forms--2-YQeWM.amd"],(function(a,e,i){"use strict";if(typeof l>"u")var l=window.Vue;e.get$scroll=i.get$scroll,e.getCommandKeyLabel=i.getCommandKeyLabel,e.getElsScroll=i.getElsScroll,e.getOS=i.getOS,e.getOSAsync=i.getOSAsync,e.getScrollTop=i.getScrollTop,e.isApp=i.isApp,e.isMacOS=i.isMacOS,e.isMobile=i.isMobile,e.isRetina=i.isRetina,e.isSafari=i.isSafari,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
1
+ define(["require","exports","../.chunks/forms-CUSCBQu3.amd"],(function(a,e,i){"use strict";if(typeof l>"u")var l=window.Vue;e.get$scroll=i.get$scroll,e.getCommandKeyLabel=i.getCommandKeyLabel,e.getElsScroll=i.getElsScroll,e.getOS=i.getOS,e.getOSAsync=i.getOSAsync,e.getScrollTop=i.getScrollTop,e.isApp=i.isApp,e.isMacOS=i.isMacOS,e.isMobile=i.isMobile,e.isRetina=i.isRetina,e.isSafari=i.isSafari,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
2
2
  //# sourceMappingURL=device.amd.js.map
package/utils/device.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z as e, x as l, A as t, B as i, D as o, y as g, v as r, w as S, t as c, s as p, b } from "../.chunks/forms-Cwv0JCi5.es.js";
1
+ import { z as e, x as l, A as t, B as i, D as o, y as g, v as r, w as S, t as c, s as p, b } from "../.chunks/forms-BseC3Ftz.es.js";
2
2
  export {
3
3
  e as get$scroll,
4
4
  l as getCommandKeyLabel,