@topvisor/ui 1.0.18 → 1.0.20

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