@topvisor/ui 1.0.18-top-info-4 → 1.0.18

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 (177) hide show
  1. package/.chunks/{datepicker-QG5NqyHa.amd.js → datepicker-DKvr3NYw.amd.js} +2 -2
  2. package/.chunks/{datepicker-QG5NqyHa.amd.js.map → datepicker-DKvr3NYw.amd.js.map} +1 -1
  3. package/.chunks/{datepicker-C-QFv8Wm.es.js → datepicker-EJRX31J1.es.js} +2 -2
  4. package/.chunks/{datepicker-C-QFv8Wm.es.js.map → datepicker-EJRX31J1.es.js.map} +1 -1
  5. package/.chunks/{forms-DYuU936i.amd.js → forms-CmlWMEyk.amd.js} +3 -3
  6. package/.chunks/{forms-DYuU936i.amd.js.map → forms-CmlWMEyk.amd.js.map} +1 -1
  7. package/.chunks/{forms-BeCSWhdZ.es.js → forms-DDIlFXbF.es.js} +748 -799
  8. package/.chunks/{forms-BeCSWhdZ.es.js.map → forms-DDIlFXbF.es.js.map} +1 -1
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DN-pHrhc.es.js → listItem.vue_vue_type_script_setup_true_lang-3UaZvDrd.es.js} +10 -10
  10. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DN-pHrhc.es.js.map → listItem.vue_vue_type_script_setup_true_lang-3UaZvDrd.es.js.map} +1 -1
  11. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BC88J71B.amd.js → listItem.vue_vue_type_script_setup_true_lang-CnEbgJbu.amd.js} +2 -2
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CnEbgJbu.amd.js.map +1 -0
  13. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BNzX8C8v.es.js → menu.vue_vue_type_style_index_0_lang-C4q81rOQ.es.js} +24 -24
  14. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BNzX8C8v.es.js.map → menu.vue_vue_type_style_index_0_lang-C4q81rOQ.es.js.map} +1 -1
  15. package/.chunks/{menu.vue_vue_type_style_index_0_lang-RE6Dl4Gd.amd.js → menu.vue_vue_type_style_index_0_lang-DcFQyQgs.amd.js} +2 -2
  16. package/.chunks/{menu.vue_vue_type_style_index_0_lang-RE6Dl4Gd.amd.js.map → menu.vue_vue_type_style_index_0_lang-DcFQyQgs.amd.js.map} +1 -1
  17. package/.chunks/{notice-D41sY-7B.amd.js → notice-CYeec0mu.amd.js} +2 -2
  18. package/.chunks/{notice-D41sY-7B.amd.js.map → notice-CYeec0mu.amd.js.map} +1 -1
  19. package/.chunks/{notice-zqNsNusv.es.js → notice-CtXmQ8xM.es.js} +2 -2
  20. package/.chunks/{notice-zqNsNusv.es.js.map → notice-CtXmQ8xM.es.js.map} +1 -1
  21. package/.chunks/{popup-CnEewIWQ.amd.js → popup-38TbXxcV.amd.js} +2 -2
  22. package/.chunks/{popup-CnEewIWQ.amd.js.map → popup-38TbXxcV.amd.js.map} +1 -1
  23. package/.chunks/{popup-CYjUUTBV.es.js → popup-BzCXSDdA.es.js} +2 -2
  24. package/.chunks/{popup-CYjUUTBV.es.js.map → popup-BzCXSDdA.es.js.map} +1 -1
  25. package/.chunks/punycode.es6-C2yitnNb.amd.js.map +1 -1
  26. package/.chunks/punycode.es6-CNI-zL6U.es.js.map +1 -1
  27. package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
  28. package/.chunks/store-esTid5oI.amd.js.map +1 -1
  29. package/.chunks/{utils-Cbdb1gth.es.js → utils-CFCfvsI8.es.js} +61 -61
  30. package/.chunks/{utils-Cbdb1gth.es.js.map → utils-CFCfvsI8.es.js.map} +1 -1
  31. package/.chunks/{utils-BBVRN-KU.amd.js → utils-CI9JyH64.amd.js} +2 -2
  32. package/.chunks/{utils-BBVRN-KU.amd.js.map → utils-CI9JyH64.amd.js.map} +1 -1
  33. package/.chunks/{utils-DFkcW3nI.es.js → utils-DXI6F7F9.es.js} +78 -78
  34. package/.chunks/{utils-DFkcW3nI.es.js.map → utils-DXI6F7F9.es.js.map} +1 -1
  35. package/.chunks/{utils-ByeZ1FPX.amd.js → utils-lvXB5hbW.amd.js} +2 -2
  36. package/.chunks/{utils-ByeZ1FPX.amd.js.map → utils-lvXB5hbW.amd.js.map} +1 -1
  37. package/assets/core.css +1 -1
  38. package/assets/forms.css +1 -1
  39. package/assets/formsExt.css +1 -1
  40. package/assets/layout.css +1 -1
  41. package/charts/charts.amd.js +1 -1
  42. package/charts/charts.amd.js.map +1 -1
  43. package/charts/charts.js +1 -1
  44. package/components/charts/miniChart/miniChart.vue.d.ts +5 -5
  45. package/components/charts/miniCharts/miniCharts.vue.d.ts +6 -9
  46. package/components/core/notice/item/item.vue.d.ts +1 -1
  47. package/components/dialog/dialog/dialog.vue.d.ts +2 -3
  48. package/components/dialog/dialog/dialogs/dialogs.vue.d.ts +1 -1
  49. package/components/dialog/dialog/page/page.vue.d.ts +1 -2
  50. package/components/forms/avatar/avatar.vue.d.ts +1 -1
  51. package/components/forms/button/button.vue.d.ts +1 -2
  52. package/components/forms/checkbox/checkbox.vue.d.ts +6 -7
  53. package/components/forms/controlLabel/controlLabel.vue.d.ts +2 -3
  54. package/components/forms/hint/hint.vue.d.ts +1 -1
  55. package/components/forms/input/input.vue.d.ts +1 -2
  56. package/components/forms/inputDate/inputDate.vue.d.ts +1 -3
  57. package/components/forms/inputRange/inputRange.vue.d.ts +2 -3
  58. package/components/forms/loadbar/loadbar.vue.d.ts +1 -1
  59. package/components/forms/radio/radio.vue.d.ts +2 -3
  60. package/components/forms/select/select.vue.d.ts +5 -5
  61. package/components/forms/switcher/switcher.vue.d.ts +2 -3
  62. package/components/formsExt/editArea/editArea.vue.d.ts +1 -1
  63. package/components/formsExt/editInput/editInput.vue.d.ts +1 -1
  64. package/components/formsExt/formsExt.d.ts +0 -2
  65. package/components/formsExt/info/info.d.ts +20 -0
  66. package/components/formsExt/menu/menu.vue.d.ts +5 -7
  67. package/components/formsExt/radioGroup/radioGroup.vue.d.ts +5 -7
  68. package/components/formsExt/selector2/itemMulti.vue.d.ts +1 -1
  69. package/components/formsExt/selector2/selector2.vue.d.ts +8 -96
  70. package/components/layout/islandRows/islandRows.vue.d.ts +2 -3
  71. package/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +2 -3
  72. package/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +2 -3
  73. package/components/layout/rows/rows.vue.d.ts +2 -3
  74. package/components/popup/alert/alert.vue.d.ts +1 -2
  75. package/components/popup/confirm/confirm.vue.d.ts +1 -2
  76. package/components/popup/popup/listItem.vue.d.ts +1 -2
  77. package/components/popup/popup/opener.vue.d.ts +1 -2
  78. package/components/popup/popup/popup.vue.d.ts +1 -2
  79. package/components/popup/popup/widgetInput.vue.d.ts +4 -4
  80. package/components/popup/prompt/prompt.vue.d.ts +1 -2
  81. package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +5 -5
  82. package/components/project/selectorRegion/selectorRegion.vue.d.ts +7 -7
  83. package/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +3 -5
  84. package/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +5 -6
  85. package/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +1 -1
  86. package/components/project/tagSelector/tagSelector.vue.d.ts +6 -6
  87. package/components/tabs/tabs/content.vue.d.ts +2 -3
  88. package/components/tabs/tabs/tab.vue.d.ts +1 -2
  89. package/components/tabs/tabs/tabs.vue.d.ts +2 -3
  90. package/components/tabsView/tabsView/menu.vue.d.ts +6 -9
  91. package/components/tabsView/tabsView/menuDelimeter.vue.d.ts +1 -1
  92. package/components/tabsView/tabsView/menuItem.vue.d.ts +1 -2
  93. package/components/tabsView/tabsView/menuTitle.vue.d.ts +1 -2
  94. package/components/tabsView/tabsView/store.d.ts +5 -5
  95. package/components/tabsView/tabsView/tabsView.vue.d.ts +6 -9
  96. package/core/app.amd.js +1 -1
  97. package/core/app.amd.js.map +1 -1
  98. package/core/app.js +127 -148
  99. package/core/app.js.map +1 -1
  100. package/core/directives/focus.d.ts +1 -3
  101. package/core/directives/scrollShadow.d.ts +2 -2
  102. package/core/utils/scroll.d.ts +0 -18
  103. package/dialog/dialog.amd.js +1 -1
  104. package/dialog/dialog.amd.js.map +1 -1
  105. package/dialog/dialog.js +2 -2
  106. package/dialog/dialog.js.map +1 -1
  107. package/forms/forms.amd.js +1 -1
  108. package/forms/forms.js +1 -1
  109. package/forms/helpers.amd.js.map +1 -1
  110. package/formsExt/formsExt.amd.js +1 -1
  111. package/formsExt/formsExt.amd.js.map +1 -1
  112. package/formsExt/formsExt.js +272 -307
  113. package/formsExt/formsExt.js.map +1 -1
  114. package/layout/layout.amd.js +1 -1
  115. package/layout/layout.amd.js.map +1 -1
  116. package/layout/layout.js +26 -27
  117. package/layout/layout.js.map +1 -1
  118. package/package.json +1 -1
  119. package/popup/popup.amd.js +1 -1
  120. package/popup/popup.amd.js.map +1 -1
  121. package/popup/popup.js +17 -17
  122. package/popup/worker.amd.js +1 -1
  123. package/popup/worker.amd.js.map +1 -1
  124. package/popup/worker.js +2 -2
  125. package/popup/worker.js.map +1 -1
  126. package/project/project.amd.js +1 -1
  127. package/project/project.amd.js.map +1 -1
  128. package/project/project.js +307 -307
  129. package/tabsView/tabsView.amd.js +1 -1
  130. package/tabsView/tabsView.amd.js.map +1 -1
  131. package/tabsView/tabsView.js +37 -37
  132. package/utils/check.amd.js.map +1 -1
  133. package/utils/check.js.map +1 -1
  134. package/utils/clipboard.amd.js +1 -1
  135. package/utils/clipboard.amd.js.map +1 -1
  136. package/utils/clipboard.js +1 -1
  137. package/utils/clipboard.js.map +1 -1
  138. package/utils/date.amd.js +1 -1
  139. package/utils/date.js +1 -1
  140. package/utils/device.amd.js +1 -1
  141. package/utils/device.js +1 -1
  142. package/utils/dom.amd.js +1 -1
  143. package/utils/dom.amd.js.map +1 -1
  144. package/utils/dom.js +30 -30
  145. package/utils/dom.js.map +1 -1
  146. package/utils/image.amd.js.map +1 -1
  147. package/utils/keyboard.amd.js.map +1 -1
  148. package/utils/lodash.amd.js +1 -1
  149. package/utils/lodash.js +5 -5
  150. package/utils/number.amd.js.map +1 -1
  151. package/utils/price.amd.js +1 -1
  152. package/utils/price.amd.js.map +1 -1
  153. package/utils/price.js +1 -1
  154. package/utils/price.js.map +1 -1
  155. package/utils/route.amd.js +1 -1
  156. package/utils/route.amd.js.map +1 -1
  157. package/utils/route.js +5 -5
  158. package/utils/route.js.map +1 -1
  159. package/utils/scroll.amd.js +1 -1
  160. package/utils/scroll.amd.js.map +1 -1
  161. package/utils/scroll.js +7 -39
  162. package/utils/scroll.js.map +1 -1
  163. package/utils/searchers.amd.js.map +1 -1
  164. package/utils/searchers.js.map +1 -1
  165. package/utils/string.amd.js +1 -1
  166. package/utils/string.amd.js.map +1 -1
  167. package/utils/string.js +29 -29
  168. package/utils/string.js.map +1 -1
  169. package/utils/system.amd.js.map +1 -1
  170. package/utils/system.js.map +1 -1
  171. package/utils/url.amd.js.map +1 -1
  172. package/utils/url.js.map +1 -1
  173. package/web-types.json +0 -28
  174. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BC88J71B.amd.js.map +0 -1
  175. package/components/formsExt/info/info.vue.d.ts +0 -20
  176. package/components/formsExt/info/types.d.ts +0 -21
  177. package/core/directives/scrollIntoView.d.ts +0 -3
package/core/app.js CHANGED
@@ -1,14 +1,14 @@
1
- import { C as r, E as N, T as M, f as H, g as C, h as F, j as R, k as V, l as G, m as j, n as x, o as B, p as J, q as W, r as Y, s as q } from "../.chunks/forms-BeCSWhdZ.es.js";
2
- import { v as Ut, a as It, u as Pt, t as At } from "../.chunks/forms-BeCSWhdZ.es.js";
3
- import { defineAsyncComponent as z, watch as k } from "vue";
4
- import { TopPopupWorker as d } from "../popup/worker.js";
5
- import { T as Q, _ as K } from "../.chunks/utils-DFkcW3nI.es.js";
6
- import { a as Nt, b as Mt } from "../.chunks/utils-DFkcW3nI.es.js";
7
- import { isVisible as A } from "../utils/dom.js";
8
- import { guestLinkToClipboard as X } from "../utils/clipboard.js";
9
- import { camelToSnakeCase as Z } from "../utils/string.js";
10
- import { getHash as tt, setHash as et } from "../utils/route.js";
11
- class ot {
1
+ import { C as a, E as L, T as _, e as k, f as I, g as O, h as y, j as H, k as P, l as N, m as R, n as M, o as U, p as A, q as C, r as D } from "../.chunks/forms-DDIlFXbF.es.js";
2
+ import { t as ut, a as gt, u as wt, s as Tt } from "../.chunks/forms-DDIlFXbF.es.js";
3
+ import { defineAsyncComponent as F, watch as T } from "vue";
4
+ import { TopPopupWorker as l } from "../popup/worker.js";
5
+ import { T as x, _ as G } from "../.chunks/utils-DXI6F7F9.es.js";
6
+ import { a as vt, b as bt } from "../.chunks/utils-DXI6F7F9.es.js";
7
+ import { offset as E } from "../utils/dom.js";
8
+ import { guestLinkToClipboard as j } from "../utils/clipboard.js";
9
+ import { camelToSnakeCase as B } from "../utils/string.js";
10
+ import { getHash as z, setHash as J } from "../utils/route.js";
11
+ class W {
12
12
  static isInited = !1;
13
13
  /**
14
14
  * Добавить глобальные обработчики
@@ -20,9 +20,9 @@ class ot {
20
20
  var e;
21
21
  !(t.target instanceof HTMLElement) || !((e = t.target.dataset) != null && e.topPopupOpenByHover) || t.target.click();
22
22
  }), document.addEventListener("scroll", () => {
23
- r.state.isMobile || r.state.isMobileUA || d.getAll().forEach((t) => d.close(t));
24
- }), N.addOnReize((t) => {
25
- r.state.isMobile && t.topEvent.widthDiff && d.getAll().forEach((e) => d.close(e));
23
+ a.state.isMobile || a.state.isMobileUA || l.getAll().forEach((t) => l.close(t));
24
+ }), L.addOnReize((t) => {
25
+ a.state.isMobile && t.topEvent.widthDiff && l.getAll().forEach((e) => l.close(e));
26
26
  }), document.addEventListener("click", this.onclick));
27
27
  }
28
28
  /**
@@ -31,7 +31,7 @@ class ot {
31
31
  * Обрабатывает клики на открытие Popup
32
32
  */
33
33
  static async onclick(t) {
34
- var s, i, n, a, c;
34
+ var s, i, n, r, c;
35
35
  if (!(t.target instanceof HTMLElement)) return;
36
36
  let e;
37
37
  switch (!0) {
@@ -41,98 +41,77 @@ class ot {
41
41
  case !!((i = t.target.parentElement) != null && i.dataset.topPopup):
42
42
  e = t.target.parentElement;
43
43
  break;
44
- case !!((a = (n = t.target.parentElement) == null ? void 0 : n.parentElement) != null && a.dataset.topPopup):
44
+ case !!((r = (n = t.target.parentElement) == null ? void 0 : n.parentElement) != null && r.dataset.topPopup):
45
45
  e = (c = t.target.parentElement) == null ? void 0 : c.parentElement;
46
46
  break;
47
47
  }
48
- e && (e.dataset.topPopupDisabled || e.dataset.topPopupOpened || (t.preventDefault(), await d.openByOpener(e)));
48
+ e && (e.dataset.topPopupDisabled || e.dataset.topPopupOpened || (t.preventDefault(), await l.openByOpener(e)));
49
49
  }
50
50
  }
51
- let v;
52
- const st = {
51
+ let g;
52
+ const Y = {
53
53
  mounted: async (o, t) => {
54
- v || (v = (await import("../utils/dom.js")).storage);
54
+ g || (g = (await import("../utils/dom.js")).storage);
55
55
  const e = t.arg, s = t.value;
56
- v(o, e, s);
56
+ g(o, e, s);
57
57
  }
58
- };
59
- let E, m = [], b;
60
- const it = async () => {
61
- if (!m.length) return;
62
- m[0].focus(), m = [];
63
- }, O = async (o) => {
64
- E || (E = await import("../utils/lodash.js")), b || (b = E.debounce(it, 30)), m.push(o), b();
65
- }, nt = {
58
+ }, V = {
66
59
  mounted: function(o, t) {
67
- o.__TOP_V_FOCUS_VALUE = t.value ?? !0, (t.value ?? !0) && O(o);
68
- },
69
- updated: function(o, t) {
70
- t.modifiers.onupdate && o.__TOP_V_FOCUS_VALUE !== (t.value ?? !0) && (o.__TOP_V_FOCUS_VALUE = t.value ?? !0, (t.value ?? !0) && O(o));
60
+ t.value.disabled || o.focus();
71
61
  }
72
- };
73
- let h, S;
74
- const D = (o) => (typeof o == "boolean" || (o ? o = { ...o } : o = {}, o.behavior ??= "smooth", o.block ??= "nearest", o.inline ??= "nearest"), o);
75
- let g, _;
76
- const at = async () => {
77
- if (!g) return;
78
- const o = await L(g);
79
- o.isVisible && g.scrollIntoView(o.scrollIntoViewOptions);
80
- }, U = async (o) => {
81
- S || (S = await import("../utils/lodash.js")), _ || (_ = S.debounce(at, 30)), g = o, _();
82
- }, L = async (o, t) => {
83
- h || (h = await import("../utils/dom.js"));
84
- let e = h.storage(o, "v-top-scrollIntoView");
85
- return e || (e = {
86
- isVisible: A(o),
87
- scrollIntoViewOptions: D(t)
88
- }, h.storage(o, "v-top-scrollIntoView", e)), e;
89
- }, rt = {
90
- async mounted(o, t) {
91
- await L(o, t.value), t.modifiers.immediate && U(o);
92
- },
93
- async updated(o, t) {
94
- const e = await L(o, t.value);
95
- e.scrollIntoViewOptions = D(t.value);
96
- const s = A(o);
97
- s && e.isVisible !== s && U(o), e.isVisible = s;
62
+ }, S = (o) => {
63
+ if (!o || !o.parentElement || !o.offsetHeight) return;
64
+ if (window.dialogs) {
65
+ const e = o.closest(".ui-dialog");
66
+ e != null && e.getBoundingClientRect() && (e == null ? void 0 : e.getBoundingClientRect().bottom) > document.documentElement.clientHeight && setTimeout(window.dialogs.onWindowResize);
67
+ }
68
+ const t = o.scrollHeight > o.offsetHeight;
69
+ if (t ? (o.parentElement.classList.add("has_scroll_container"), o.classList.add("has_scroll")) : (o.parentElement.classList.remove("has_scroll_container"), o.classList.remove("has_scroll")), t) {
70
+ const e = E(o).top - E(o.parentElement).top;
71
+ o.style.setProperty("--scroll-offset-top", e + "px");
72
+ const s = o.offsetHeight;
73
+ o.style.setProperty("--scroll-height", s + "px"), o.scrollTop > 0 ? o.classList.add("has_scroll-started") : o.classList.remove("has_scroll-started"), o.scrollTop >= o.scrollHeight - o.offsetHeight ? o.classList.add("has_scroll-finished") : o.classList.remove("has_scroll-finished");
98
74
  }
99
75
  };
100
- let p;
101
- const ct = {
102
- async mounted(o) {
103
- p || (p = await import("../utils/scroll.js")), p.connectScrollShadow(o);
76
+ let h;
77
+ window.ResizeObserver && (h = new ResizeObserver((o) => {
78
+ o.forEach((t) => S(t.target));
79
+ }));
80
+ const q = {
81
+ mounted(o) {
82
+ o && (o.dataset.scrollShadowInited || (o.dataset.scrollShadowInited = "true", o.onscroll = () => S(o), h && h.observe(o)));
104
83
  },
105
- async unmounted(o) {
106
- p || (p = await import("../utils/scroll.js")), p.unconnectScrollShadow(o);
84
+ unmounted(o) {
85
+ h && h.unobserve(o);
107
86
  }
108
87
  };
109
- let u;
110
- const lt = {
88
+ let d;
89
+ const Q = {
111
90
  mounted(o, t, e) {
112
91
  const s = t.value || "top-sticky";
113
- u = new IntersectionObserver((i) => {
92
+ d = new IntersectionObserver((i) => {
114
93
  let n = i[0].intersectionRatio < 1;
115
94
  n && t.modifiers.bottom && i[0].intersectionRect.y === 0 && (n = !1), o.classList.toggle(s, n);
116
95
  }, {
117
96
  threshold: [1]
118
- }), u.observe(o);
97
+ }), d.observe(o);
119
98
  },
120
99
  unmounted(o, t, e) {
121
- u == null || u.disconnect();
100
+ d == null || d.disconnect();
122
101
  }
123
102
  };
124
- let I = !1, f;
125
- const T = /* @__PURE__ */ new Map(), pt = (o, t) => {
126
- const { distance: e, percent: s } = o.directiveSwipUpOptions, i = o.getBoundingClientRect().top, n = t * s / 100 / e, a = (t - i) / n;
127
- a <= e ? o.style.transform = `translateY(${e - a}px)` : o.style.transform = "translateY(0px)";
128
- }, dt = (o) => {
103
+ let v = !1, f;
104
+ const m = /* @__PURE__ */ new Map(), K = (o, t) => {
105
+ const { distance: e, percent: s } = o.directiveSwipUpOptions, i = o.getBoundingClientRect().top, n = t * s / 100 / e, r = (t - i) / n;
106
+ r <= e ? o.style.transform = `translateY(${e - r}px)` : o.style.transform = "translateY(0px)";
107
+ }, X = (o) => {
129
108
  let t = window.innerHeight;
130
109
  window.addEventListener("scroll", () => {
131
- T.forEach((e) => pt(e, t));
110
+ m.forEach((e) => K(e, t));
132
111
  }, { passive: !0 }), f = new IntersectionObserver((e) => {
133
112
  t = window.innerHeight, e.forEach((s) => {
134
113
  const i = s.target;
135
- if (s.intersectionRatio < 0.1 ? T.delete(i) : T.set(i, i), s.intersectionRatio === 0) {
114
+ if (s.intersectionRatio < 0.1 ? m.delete(i) : m.set(i, i), s.intersectionRatio === 0) {
136
115
  const { distance: n } = i.directiveSwipUpOptions;
137
116
  i.style.transform = `translateY(${n}px)`;
138
117
  }
@@ -140,41 +119,41 @@ const T = /* @__PURE__ */ new Map(), pt = (o, t) => {
140
119
  }, {
141
120
  threshold: 0.1
142
121
  });
143
- }, ut = {
122
+ }, Z = {
144
123
  mounted(o, t, e) {
145
124
  var s, i;
146
- r.state.isMobileUA || (o.directiveSwipUpOptions = {
125
+ a.state.isMobileUA || (o.directiveSwipUpOptions = {
147
126
  distance: ((s = t.value) == null ? void 0 : s.distance) ?? 100,
148
127
  // количество px на которые блок изначально смещен вниз,
149
128
  percent: ((i = t.value) == null ? void 0 : i.percent) ?? 30
150
129
  // процент высоты экрана поднявшись на который блок закончит подплытие
151
- }, I || (dt(), I = !0), f.observe(o));
130
+ }, v || (X(), v = !0), f.observe(o));
152
131
  },
153
132
  unmounted(o, t, e) {
154
- T.delete(o), f == null || f.unobserve(o);
133
+ m.delete(o), f == null || f.unobserve(o);
155
134
  }
156
- }, y = (o) => {
135
+ }, w = (o) => {
157
136
  var t, e;
158
- if (!((e = (t = r.$) == null ? void 0 : t.ui) != null && e.tooltip)) {
137
+ if (!((e = (t = a.$) == null ? void 0 : t.ui) != null && e.tooltip)) {
159
138
  console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
160
139
  return;
161
140
  }
162
- return r.$(o);
163
- }, P = (o, t) => {
141
+ return a.$(o);
142
+ }, b = (o, t) => {
164
143
  var s;
165
144
  const e = o.value ?? {};
166
145
  return e.content ??= (s = t.props) == null ? void 0 : s.title, e.content = String(e.content).replace(/\r\n|\r|\n/g, "<br>"), e.position ??= {
167
146
  my: "bottom-18px",
168
147
  at: "top center"
169
148
  }, e;
170
- }, ft = {
149
+ }, tt = {
171
150
  mounted(o, t, e) {
172
151
  var s;
173
- (s = y(o)) == null || s.tooltip(P(t, e));
152
+ (s = w(o)) == null || s.tooltip(b(t, e));
174
153
  },
175
154
  updated(o, t, e, s) {
176
- var a;
177
- const i = P(t, e), n = (a = y(o)) == null ? void 0 : a.tooltip("instance");
155
+ var r;
156
+ const i = b(t, e), n = (r = w(o)) == null ? void 0 : r.tooltip("instance");
178
157
  n && (n.options = {
179
158
  ...n.options,
180
159
  ...i
@@ -182,19 +161,19 @@ const T = /* @__PURE__ */ new Map(), pt = (o, t) => {
182
161
  },
183
162
  unmounted(o, t, e) {
184
163
  var s;
185
- (s = y(o)) == null || s.tooltip("destroy");
164
+ (s = w(o)) == null || s.tooltip("destroy");
186
165
  }
187
- }, ht = z(() => import("../.chunks/notice-zqNsNusv.es.js"));
166
+ }, et = F(() => import("../.chunks/notice-CtXmQ8xM.es.js"));
188
167
  window.vd = console.log;
189
- const yt = {
168
+ const dt = {
190
169
  install: (o, t) => {
191
- o.config.globalProperties.$core = r, o.config.globalProperties.$vd = console.log;
170
+ o.config.globalProperties.$core = a, o.config.globalProperties.$vd = console.log;
192
171
  for (const e in t)
193
- r.state[e] = t[e];
194
- t.widthForMobile && (r.widthForMobile = t.widthForMobile), t.themeName && (r.themeName = t.themeName), r._setState(), t.topPopupOptions && (d.options = t.topPopupOptions), ot.init(), Q.init(t.topDialogOptions), o.directive("top-data", st), o.directive("top-focus", nt), o.directive("top-scroll-into-view", rt), o.directive("top-scroll-shadow", ct), o.directive("top-sticky", lt), o.directive("top-swim-up", ut), o.directive("top-tooltip", ft), o.component("TopAvatar", M), o.component("TopButton", H), o.component("TopCheckbox", C), o.component("TopControlLabel", F), o.component("TopHint", R), o.component("TopInput", V), o.component("TopInputDate", G), o.component("TopInputRange", j), o.component("TopLoadbar", x), o.component("TopRadio", B), o.component("TopSelect", J), o.component("TopSwitcher", W), o.component("TopTextarea", Y), o.component("TopNotice", ht), o.component("TopDialogs", K);
172
+ a.state[e] = t[e];
173
+ t.widthForMobile && (a.widthForMobile = t.widthForMobile), t.themeName && (a.themeName = t.themeName), a._setState(), t.topPopupOptions && (l.options = t.topPopupOptions), W.init(), x.init(t.topDialogOptions), o.directive("top-data", Y), o.directive("top-focus", V), o.directive("top-scroll-shadow", q), o.directive("top-sticky", Q), o.directive("top-swim-up", Z), o.directive("top-tooltip", tt), o.component("TopAvatar", _), o.component("TopButton", k), o.component("TopCheckbox", I), o.component("TopControlLabel", O), o.component("TopHint", y), o.component("TopInput", H), o.component("TopInputDate", P), o.component("TopInputRange", N), o.component("TopLoadbar", R), o.component("TopRadio", M), o.component("TopSelect", U), o.component("TopSwitcher", A), o.component("TopTextarea", C), o.component("TopNotice", et), o.component("TopDialogs", G);
195
174
  }
196
175
  };
197
- class mt {
176
+ class ot {
198
177
  #e;
199
178
  #t;
200
179
  /**
@@ -205,13 +184,13 @@ class mt {
205
184
  #c;
206
185
  #i = [];
207
186
  #n = [];
208
- #l = [];
209
- #a = [];
187
+ #p = [];
188
+ #r = [];
210
189
  constructor(t) {
211
190
  var s;
212
- this.#t = t.store, this.#e = this.#t.$id, this.#o = t.options.Page, this.#s = t.options.user, this.#c = t.options.Api, this.#i = t.options.tpaNamesUrlHash || [], this.#n = t.options.tpaNamesStorage || [], this.#l = t.options.tpaNamesStorageLocal || [], this.#a = t.options.tpaNamesGuestLink || [], t.store.genGuestLink = (i, n) => this.genGuestLink(i, n), (s = this.#s.guest_data) != null && s.data || (this.#d(), this.#d(!0), this.#h()), this.#T(), this.#w();
213
- const e = q(() => {
214
- this.#m(), this.#g();
191
+ this.#t = t.store, this.#e = this.#t.$id, this.#o = t.options.Page, this.#s = t.options.user, this.#c = t.options.Api, this.#i = t.options.tpaNamesUrlHash || [], this.#n = t.options.tpaNamesStorage || [], this.#p = t.options.tpaNamesStorageLocal || [], this.#r = t.options.tpaNamesGuestLink || [], t.store.genGuestLink = (i, n) => this.genGuestLink(i, n), (s = this.#s.guest_data) != null && s.data || (this.#d(), this.#d(!0), this.#m()), this.#w(), this.#T();
192
+ const e = D(() => {
193
+ this.#u(), this.#g();
215
194
  });
216
195
  t.store.$subscribe(e);
217
196
  }
@@ -221,25 +200,25 @@ class mt {
221
200
  * Метод, путь к которому указан в url, должен возвращать сгенерированную ссылку
222
201
  */
223
202
  async genGuestLink(t, e) {
224
- const s = this.#u();
203
+ const s = this.#h();
225
204
  e = Object.assign(e, Object.fromEntries(s));
226
205
  const i = await this.#c.gen(t, "fetchColumn").call({}, e);
227
- i != null && i.errors || await X(i.result);
206
+ i != null && i.errors || await j(i.result);
228
207
  }
229
208
  /**
230
209
  * Сгенерировать опции для гостевой ссылки
231
210
  */
232
- #u() {
211
+ #h() {
233
212
  const t = /* @__PURE__ */ new Map();
234
- return this.#a.forEach((e) => {
235
- const s = Z(e);
213
+ return this.#r.forEach((e) => {
214
+ const s = B(e);
236
215
  t.set(s, this.#t[e]);
237
216
  }), t;
238
217
  }
239
218
  /**
240
219
  * Установить опции из объекта без фиксации состояния
241
220
  */
242
- #r(t) {
221
+ #a(t) {
243
222
  t.forEach((e, s) => {
244
223
  const i = this.#t[s];
245
224
  if (e != null && i !== void 0 && e != null && e.constructor && e.constructor === i.constructor) {
@@ -263,7 +242,7 @@ class mt {
263
242
  /**
264
243
  * Сгенерировать Map объект с опциями со значениями в оригинальном виде
265
244
  */
266
- #p(t) {
245
+ #l(t) {
267
246
  const e = /* @__PURE__ */ new Map();
268
247
  return t.forEach((s, i) => {
269
248
  if (!(s == null || s === "false")) {
@@ -278,10 +257,10 @@ class mt {
278
257
  /**
279
258
  * Установить опции из хеша адреса страницы
280
259
  */
281
- #h() {
260
+ #m() {
282
261
  let t;
283
262
  try {
284
- t = JSON.parse(tt(this.#e));
263
+ t = JSON.parse(z(this.#e));
285
264
  } catch {
286
265
  }
287
266
  if (!t) return;
@@ -289,19 +268,19 @@ class mt {
289
268
  this.#i.forEach((s) => {
290
269
  const i = t[s];
291
270
  i && e.set(s, i);
292
- }), this.#r(e);
271
+ }), this.#a(e);
293
272
  }
294
273
  /**
295
274
  * Сохранить опции в хеш адреса страницы
296
275
  */
297
- #m() {
276
+ #u() {
298
277
  const t = /* @__PURE__ */ new Map();
299
278
  this.#i.forEach((i) => {
300
279
  const n = this.#t[i];
301
280
  t.set(i, n);
302
281
  });
303
282
  const e = Object.fromEntries(t), s = JSON.stringify(e);
304
- et(this.#e, s);
283
+ J(this.#e, s);
305
284
  }
306
285
  /**
307
286
  * Установить опции из localStorage
@@ -311,11 +290,11 @@ class mt {
311
290
  const e = /* @__PURE__ */ new Map();
312
291
  let s = "state:" + this.#e;
313
292
  t && (s = "state:" + this.#e + ":" + location.pathname), this.#n.forEach((n) => {
314
- const a = localStorage.getItem(s + ":" + n);
315
- e.set(n, a);
293
+ const r = localStorage.getItem(s + ":" + n);
294
+ e.set(n, r);
316
295
  });
317
- const i = this.#p(e);
318
- this.#r(i);
296
+ const i = this.#l(e);
297
+ this.#a(i);
319
298
  }
320
299
  /**
321
300
  * Сохранить опции в localStorage
@@ -324,35 +303,35 @@ class mt {
324
303
  #g(t = !1) {
325
304
  const e = /* @__PURE__ */ new Map();
326
305
  let s = this.#n, i = "state:" + this.#e;
327
- t && (s = this.#l, i = "state:" + this.#e + ":" + location.pathname), s.forEach((a) => {
328
- const c = this.#t[a];
329
- e.set(a, c);
306
+ t && (s = this.#p, i = "state:" + this.#e + ":" + location.pathname), s.forEach((r) => {
307
+ const c = this.#t[r];
308
+ e.set(r, c);
330
309
  });
331
310
  const n = this.#f(e);
332
- s.forEach((a) => {
333
- const c = n.get(a);
334
- localStorage.setItem(i + ":" + a, c);
311
+ s.forEach((r) => {
312
+ const c = n.get(r);
313
+ localStorage.setItem(i + ":" + r, c);
335
314
  });
336
315
  }
337
316
  /**
338
317
  * Установить опции из гостевой ссылки
339
318
  */
340
- #T() {
341
- var n, a, c;
342
- const t = (a = (n = this.#s) == null ? void 0 : n.guest_data) == null ? void 0 : a.data;
319
+ #w() {
320
+ var n, r, c;
321
+ const t = (r = (n = this.#s) == null ? void 0 : n.guest_data) == null ? void 0 : r.data;
343
322
  if (!t) return;
344
323
  this.#s.id === -1 && (this.#s.positionsReverseDates = t.positionsReverseDates);
345
324
  const e = /* @__PURE__ */ new Map();
346
- this.#a.forEach((l) => {
347
- const w = t[l];
348
- e.set(l, w);
325
+ this.#r.forEach((p) => {
326
+ const u = t[p];
327
+ e.set(p, u);
349
328
  });
350
- const s = this.#p(e);
351
- this.#r(s);
329
+ const s = this.#l(e);
330
+ this.#a(s);
352
331
  const i = $(".mod_guest_title");
353
332
  if (((c = this.#t.competitorsIds) == null ? void 0 : c.length) === 1 && this.#o.page.data.competitors) {
354
- let l = this.#o.page.data.competitors.filter((w) => w.id === t.competitorsIds[0]);
355
- l.length && ($("a", i).attr("href", "http://" + l[0].url), $("a", i).text(l[0].name));
333
+ let p = this.#o.page.data.competitors.filter((u) => u.id === t.competitorsIds[0]);
334
+ p.length && ($("a", i).attr("href", "http://" + p[0].url), $("a", i).text(p[0].name));
356
335
  }
357
336
  }
358
337
  /**
@@ -362,8 +341,8 @@ class mt {
362
341
  *
363
342
  * Входные параметры могут меняться пользоваталем и устаревать
364
343
  */
365
- #w() {
366
- this.#t.regionsIndexes && k(this.#t.regionsIndexes, (t) => {
344
+ #T() {
345
+ this.#t.regionsIndexes && T(this.#t.regionsIndexes, (t) => {
367
346
  if (!t.length) return;
368
347
  t.forEach((i, n) => t[n] = i);
369
348
  const e = TplProjectSelectorRegion.genSearchersMap(), s = [];
@@ -372,7 +351,7 @@ class mt {
372
351
  n.index !== -1 && s.push(n.index);
373
352
  });
374
353
  }), this.#t.regionsIndexes = t.filter((i) => s.includes(i));
375
- }, { immediate: !0 }), this.#t.competitorsIds && k(this.#t.competitorsIds, (t) => {
354
+ }, { immediate: !0 }), this.#t.competitorsIds && T(this.#t.competitorsIds, (t) => {
376
355
  if (!t.length) return;
377
356
  t.forEach((s, i) => t[i] = s);
378
357
  const e = [this.#o.page.data.project.id];
@@ -382,21 +361,21 @@ class mt {
382
361
  }, { immediate: !0 });
383
362
  }
384
363
  }
385
- const Lt = (o) => {
364
+ const ht = (o) => {
386
365
  var e, s, i, n;
387
366
  const t = o;
388
- !((e = t.options.tpaNamesUrlHash) != null && e.length) && !((s = t.options.tpaNamesStorage) != null && s.length) && !((i = t.options.tpaNamesStorageLocal) != null && i.length) && !((n = t.options.tpaNamesGuestLink) != null && n.length) || new mt(t);
367
+ !((e = t.options.tpaNamesUrlHash) != null && e.length) && !((s = t.options.tpaNamesStorage) != null && s.length) && !((i = t.options.tpaNamesStorageLocal) != null && i.length) && !((n = t.options.tpaNamesGuestLink) != null && n.length) || new ot(t);
389
368
  };
390
369
  export {
391
- r as Core,
392
- Q as TopDialogWorker,
393
- yt as corePlugin,
394
- Ut as i18nPlugin,
395
- Lt as piniaTPAPlugin,
396
- Nt as useAsyncTopDialog,
397
- It as useI18n,
398
- Pt as useI18nLang,
399
- At as useI18nSetLang,
400
- Mt as useTopDialog
370
+ a as Core,
371
+ x as TopDialogWorker,
372
+ dt as corePlugin,
373
+ ut as i18nPlugin,
374
+ ht as piniaTPAPlugin,
375
+ vt as useAsyncTopDialog,
376
+ gt as useI18n,
377
+ wt as useI18nLang,
378
+ Tt as useI18nSetLang,
379
+ bt as useTopDialog
401
380
  };
402
381
  //# sourceMappingURL=app.js.map