@topvisor/ui 1.5.7-3 → 1.5.7

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 (134) hide show
  1. package/.chunks/{api-7QFznvLR.amd.js → api-Dy2x6A8L.amd.js} +2 -2
  2. package/.chunks/{api-7QFznvLR.amd.js.map → api-Dy2x6A8L.amd.js.map} +1 -1
  3. package/.chunks/{api-7QFznvLR.esm.js → api-Dy2x6A8L.esm.js} +2 -2
  4. package/.chunks/{api-7QFznvLR.esm.js.map → api-Dy2x6A8L.esm.js.map} +1 -1
  5. package/.chunks/app-CyODeY0D.amd.js +2 -0
  6. package/.chunks/app-CyODeY0D.amd.js.map +1 -0
  7. package/.chunks/{app-BI7BuMMX.esm.js → app-CyODeY0D.esm.js} +146 -141
  8. package/.chunks/app-CyODeY0D.esm.js.map +1 -0
  9. package/.chunks/{datepicker-DYdxOiJC.amd.js → datepicker-CBAwfPPW.amd.js} +2 -2
  10. package/.chunks/{datepicker-DYdxOiJC.amd.js.map → datepicker-CBAwfPPW.amd.js.map} +1 -1
  11. package/.chunks/{datepicker-DYdxOiJC.esm.js → datepicker-CBAwfPPW.esm.js} +2 -2
  12. package/.chunks/{datepicker-DYdxOiJC.esm.js.map → datepicker-CBAwfPPW.esm.js.map} +1 -1
  13. package/.chunks/{dialog-YkK3k6Ei.amd.js → dialog-C8fss11q.amd.js} +2 -2
  14. package/.chunks/{dialog-YkK3k6Ei.amd.js.map → dialog-C8fss11q.amd.js.map} +1 -1
  15. package/.chunks/{dialog-YkK3k6Ei.esm.js → dialog-C8fss11q.esm.js} +3 -3
  16. package/.chunks/{dialog-YkK3k6Ei.esm.js.map → dialog-C8fss11q.esm.js.map} +1 -1
  17. package/.chunks/{dialog_regionSelectorRegions-BGboPhrg.amd.js → dialog_regionSelectorRegions-zJShjr2f.amd.js} +2 -2
  18. package/.chunks/{dialog_regionSelectorRegions-BGboPhrg.amd.js.map → dialog_regionSelectorRegions-zJShjr2f.amd.js.map} +1 -1
  19. package/.chunks/{dialog_regionSelectorRegions-BGboPhrg.esm.js → dialog_regionSelectorRegions-zJShjr2f.esm.js} +4 -4
  20. package/.chunks/{dialog_regionSelectorRegions-BGboPhrg.esm.js.map → dialog_regionSelectorRegions-zJShjr2f.esm.js.map} +1 -1
  21. package/.chunks/forms-LywqKN9I.amd.js +2 -0
  22. package/.chunks/forms-LywqKN9I.amd.js.map +1 -0
  23. package/.chunks/{forms-3EhjGbIm.esm.js → forms-LywqKN9I.esm.js} +13 -17
  24. package/.chunks/{forms-3EhjGbIm.esm.js.map → forms-LywqKN9I.esm.js.map} +1 -1
  25. package/.chunks/formsExt-D16-9Jor.amd.js +2 -0
  26. package/.chunks/formsExt-D16-9Jor.amd.js.map +1 -0
  27. package/.chunks/{formsExt-Bwe_GFoI.esm.js → formsExt-D16-9Jor.esm.js} +4 -4
  28. package/.chunks/{formsExt-Bwe_GFoI.esm.js.map → formsExt-D16-9Jor.esm.js.map} +1 -1
  29. package/.chunks/{notice-CAZoT0RU.amd.js → notice-Dw5ZUJxW.amd.js} +2 -2
  30. package/.chunks/{notice-CAZoT0RU.amd.js.map → notice-Dw5ZUJxW.amd.js.map} +1 -1
  31. package/.chunks/{notice-CAZoT0RU.esm.js → notice-Dw5ZUJxW.esm.js} +2 -2
  32. package/.chunks/{notice-CAZoT0RU.esm.js.map → notice-Dw5ZUJxW.esm.js.map} +1 -1
  33. package/.chunks/{popup-DhySIsg9.amd.js → popup-BWD4eASc.amd.js} +2 -2
  34. package/.chunks/{popup-DhySIsg9.amd.js.map → popup-BWD4eASc.amd.js.map} +1 -1
  35. package/.chunks/{popup-DhySIsg9.esm.js → popup-BWD4eASc.esm.js} +3 -3
  36. package/.chunks/{popup-DhySIsg9.esm.js.map → popup-BWD4eASc.esm.js.map} +1 -1
  37. package/.chunks/{popup-w1mbbfr8.amd.js → popup-BqacuTuJ.amd.js} +2 -2
  38. package/.chunks/{popup-w1mbbfr8.amd.js.map → popup-BqacuTuJ.amd.js.map} +1 -1
  39. package/.chunks/{popup-w1mbbfr8.esm.js → popup-BqacuTuJ.esm.js} +3 -3
  40. package/.chunks/{popup-w1mbbfr8.esm.js.map → popup-BqacuTuJ.esm.js.map} +1 -1
  41. package/.chunks/{utils-Db5TDjU8.amd.js → utils-CZnFOkS6.amd.js} +2 -2
  42. package/.chunks/{utils-Db5TDjU8.amd.js.map → utils-CZnFOkS6.amd.js.map} +1 -1
  43. package/.chunks/{utils-Db5TDjU8.esm.js → utils-CZnFOkS6.esm.js} +3 -3
  44. package/.chunks/{utils-Db5TDjU8.esm.js.map → utils-CZnFOkS6.esm.js.map} +1 -1
  45. package/.chunks/{utils-D3lUe-RP.amd.js → utils-ZgQqVN0T.amd.js} +2 -2
  46. package/.chunks/utils-ZgQqVN0T.amd.js.map +1 -0
  47. package/.chunks/{utils-D3lUe-RP.esm.js → utils-ZgQqVN0T.esm.js} +4 -4
  48. package/.chunks/{utils-D3lUe-RP.esm.js.map → utils-ZgQqVN0T.esm.js.map} +1 -1
  49. package/.chunks/{worker-DNQ_Rvpj.amd.js → worker-a6MSM1uV.amd.js} +2 -2
  50. package/.chunks/worker-a6MSM1uV.amd.js.map +1 -0
  51. package/.chunks/{worker-DNQ_Rvpj.esm.js → worker-a6MSM1uV.esm.js} +3 -3
  52. package/.chunks/{worker-DNQ_Rvpj.esm.js.map → worker-a6MSM1uV.esm.js.map} +1 -1
  53. package/api/additional.amd.js +1 -1
  54. package/api/additional.amd.js.map +1 -1
  55. package/api/index.amd.js +1 -1
  56. package/api/index.amd.js.map +1 -1
  57. package/api/index.js +1 -1
  58. package/assets/forms.css +1 -1
  59. package/assets/schedule.css +1 -1
  60. package/autoload-css-manifest.amd.json +4 -4
  61. package/autoload-css-manifest.json +4 -4
  62. package/charts/charts.amd.js +1 -1
  63. package/charts/charts.amd.js.map +1 -1
  64. package/charts/charts.js +1 -1
  65. package/core/app.amd.js +1 -1
  66. package/core/app.amd.js.map +1 -1
  67. package/core/app.js +3 -3
  68. package/dialog/dialog.amd.js +1 -1
  69. package/dialog/dialog.amd.js.map +1 -1
  70. package/dialog/dialog.js +2 -2
  71. package/extra/extra.amd.js +1 -1
  72. package/extra/extra.amd.js.map +1 -1
  73. package/extra/extra.js +2 -0
  74. package/extra/extra.js.map +1 -1
  75. package/forms/forms.amd.js +1 -1
  76. package/forms/forms.amd.js.map +1 -1
  77. package/forms/forms.js +1 -1
  78. package/formsExt/formsExt.amd.js +1 -1
  79. package/formsExt/formsExt.amd.js.map +1 -1
  80. package/formsExt/formsExt.js +1 -1
  81. package/layout/layout.amd.js +1 -1
  82. package/layout/layout.amd.js.map +1 -1
  83. package/layout/layout.js +1 -1
  84. package/package.json +1 -1
  85. package/popup/popup.amd.js +1 -1
  86. package/popup/popup.amd.js.map +1 -1
  87. package/popup/popup.js +1 -1
  88. package/popup/worker.amd.js +1 -1
  89. package/popup/worker.amd.js.map +1 -1
  90. package/popup/worker.js +1 -1
  91. package/project/project.amd.js +1 -1
  92. package/project/project.amd.js.map +1 -1
  93. package/project/project.js +8 -8
  94. package/schedule/schedule.amd.js +1 -1
  95. package/schedule/schedule.amd.js.map +1 -1
  96. package/schedule/schedule.js +37 -36
  97. package/schedule/schedule.js.map +1 -1
  98. package/src/components/forms/avatar/types.d.ts +0 -9
  99. package/src/components/schedule/schedule/compoents/calendar/utils.d.ts +1 -1
  100. package/src/components/schedule/schedule/types.d.ts +48 -3
  101. package/src/core/directives/swimUp.d.ts +1 -1
  102. package/tabsView/tabsView.amd.js +1 -1
  103. package/tabsView/tabsView.amd.js.map +1 -1
  104. package/tabsView/tabsView.js +2 -2
  105. package/utils/clipboard.amd.js +1 -1
  106. package/utils/clipboard.amd.js.map +1 -1
  107. package/utils/clipboard.js +1 -1
  108. package/utils/date.amd.js +1 -1
  109. package/utils/date.amd.js.map +1 -1
  110. package/utils/date.js +1 -1
  111. package/utils/device.amd.js +1 -1
  112. package/utils/device.amd.js.map +1 -1
  113. package/utils/device.js +1 -1
  114. package/utils/lodash.amd.js +1 -1
  115. package/utils/lodash.amd.js.map +1 -1
  116. package/utils/lodash.js +1 -1
  117. package/utils/price.amd.js +1 -1
  118. package/utils/price.amd.js.map +1 -1
  119. package/utils/price.js +1 -1
  120. package/utils/searchers.amd.js +1 -1
  121. package/utils/searchers.amd.js.map +1 -1
  122. package/utils/searchers.js +1 -1
  123. package/utils/string.amd.js +1 -1
  124. package/utils/string.amd.js.map +1 -1
  125. package/utils/string.js +1 -1
  126. package/.chunks/app-BI7BuMMX.amd.js +0 -2
  127. package/.chunks/app-BI7BuMMX.amd.js.map +0 -1
  128. package/.chunks/app-BI7BuMMX.esm.js.map +0 -1
  129. package/.chunks/forms-3EhjGbIm.amd.js +0 -2
  130. package/.chunks/forms-3EhjGbIm.amd.js.map +0 -1
  131. package/.chunks/formsExt-Bwe_GFoI.amd.js +0 -2
  132. package/.chunks/formsExt-Bwe_GFoI.amd.js.map +0 -1
  133. package/.chunks/utils-D3lUe-RP.amd.js.map +0 -1
  134. package/.chunks/worker-DNQ_Rvpj.amd.js.map +0 -1
@@ -1,13 +1,13 @@
1
- import { H as e, K as t, O as n, P as r, a as i, c as a, d as o, f as s, g as ee, h as te, i as ne, k as re, l as ie, n as ae, o as oe, p as se, r as ce, s as le } from "./forms-3EhjGbIm.esm.js";
1
+ import { H as e, K as t, O as n, P as r, a as i, c as a, d as o, f as s, g as ee, h as te, i as ne, k as re, l as ie, n as ae, o as oe, p as se, r as ce, s as le } from "./forms-LywqKN9I.esm.js";
2
2
  import { isVisible as c } from "../utils/dom.js";
3
- import { t as l } from "./worker-DNQ_Rvpj.esm.js";
4
- import { i as ue, o as de } from "./utils-Db5TDjU8.esm.js";
3
+ import { t as l } from "./worker-a6MSM1uV.esm.js";
4
+ import { i as ue, o as de } from "./utils-CZnFOkS6.esm.js";
5
5
  import { getHash as fe, setHash as pe } from "../utils/route.js";
6
6
  import { guestLinkToClipboard as me } from "../utils/clipboard.js";
7
7
  import { camelToSnakeCase as he } from "../utils/string.js";
8
8
  import { defineAsyncComponent as ge, watch as u } from "vue";
9
9
  //#region src/components/popup/lib/worker.globalEvents.ts
10
- var d = class {
10
+ var _e = class {
11
11
  static init() {
12
12
  this.isInited || (this.isInited = !0, document.addEventListener("mouseover", (e) => {
13
13
  !(e.target instanceof HTMLElement) || !e.target.dataset?.topPopupOpenByHover || e.target.click();
@@ -41,13 +41,13 @@ var d = class {
41
41
  }
42
42
  }
43
43
  };
44
- t(d, "isInited", !1);
44
+ t(_e, "isInited", !1);
45
45
  //#endregion
46
46
  //#region src/core/directives/data.ts
47
- var _e, ve = { mounted: async (e, t) => {
48
- _e ||= (await import("../utils/dom.js")).storage;
47
+ var d, ve = { mounted: async (e, t) => {
48
+ d ||= (await import("../utils/dom.js")).storage;
49
49
  let n = t.arg, r = t.value;
50
- _e(e, n, r);
50
+ d(e, n, r);
51
51
  } }, f, p = [], m, ye = async () => {
52
52
  let { isVisible: e } = await import("../utils/dom.js");
53
53
  p = p.filter(e), p.length && (p[0].focus(), p = []);
@@ -60,156 +60,161 @@ var _e, ve = { mounted: async (e, t) => {
60
60
  updated: function(e, t) {
61
61
  t.modifiers.onupdate && e.__TOP_V_FOCUS_VALUE !== (t.value ?? !0) && (e.__TOP_V_FOCUS_VALUE = t.value ?? !0, (t.value ?? !0) && h(e));
62
62
  }
63
- }, g, _, v = (e) => typeof e == "boolean" ? e : (e = e ? { ...e } : {}, e.behavior ??= "smooth", e.block ??= "nearest", e.inline ??= "nearest", e), y, b, xe = async () => {
64
- if (!y) return;
65
- let e = await S(y);
66
- e.isVisible && y.scrollIntoView(e.scrollIntoViewOptions);
67
- }, x = async (e) => {
68
- _ ||= await import("../utils/lodash.js"), b ||= _.debounce(xe, 30), y = e, b();
69
- }, S = async (e, t) => {
63
+ }, g, xe, _ = (e) => typeof e == "boolean" ? e : (e = e ? { ...e } : {}, e.behavior ??= "smooth", e.block ??= "nearest", e.inline ??= "nearest", e), v, y, Se = async () => {
64
+ if (!v) return;
65
+ let e = await x(v);
66
+ e.isVisible && v.scrollIntoView(e.scrollIntoViewOptions);
67
+ }, b = async (e) => {
68
+ xe ||= await import("../utils/lodash.js"), y ||= xe.debounce(Se, 30), v = e, y();
69
+ }, x = async (e, t) => {
70
70
  g ||= await import("../utils/dom.js");
71
71
  let n = g.storage(e, "v-top-scrollIntoView");
72
72
  return n || (n = {
73
73
  isVisible: c(e),
74
- scrollIntoViewOptions: v(t)
74
+ scrollIntoViewOptions: _(t)
75
75
  }, g.storage(e, "v-top-scrollIntoView", n)), n;
76
- }, Se = {
76
+ }, Ce = {
77
77
  async mounted(e, t) {
78
- await S(e, t.value), t.modifiers.immediate && x(e);
78
+ await x(e, t.value), t.modifiers.immediate && b(e);
79
79
  },
80
80
  async updated(e, t) {
81
- let n = await S(e, t.value);
82
- n.scrollIntoViewOptions = v(t.value);
81
+ let n = await x(e, t.value);
82
+ n.scrollIntoViewOptions = _(t.value);
83
83
  let r = c(e);
84
- r && n.isVisible !== r && x(e), n.isVisible = r;
84
+ r && n.isVisible !== r && b(e), n.isVisible = r;
85
85
  }
86
- }, C, Ce = {
86
+ }, S, we = {
87
87
  async mounted(e) {
88
- C ||= await import("../utils/scroll.js"), C.connectScrollShadow(e);
88
+ S ||= await import("../utils/scroll.js"), S.connectScrollShadow(e);
89
89
  },
90
90
  async unmounted(e) {
91
- C ||= await import("../utils/scroll.js"), C.unconnectScrollShadow(e);
91
+ S ||= await import("../utils/scroll.js"), S.unconnectScrollShadow(e);
92
92
  }
93
- }, w = /* @__PURE__ */ new Map(), T, E = /* @__PURE__ */ new Map(), D = !1, we = {
93
+ }, C = /* @__PURE__ */ new Map(), w, T = /* @__PURE__ */ new Map(), Te = !1, Ee = {
94
94
  ctrl: e() ? "⌘" : "Ctrl",
95
95
  alt: e() ? "⌥" : "Alt",
96
96
  shift: e() ? "⇧" : "Shift"
97
- }, Te = (e) => {
97
+ }, De = (e) => {
98
98
  let t = e;
99
99
  return e.includes("Key") && (t = e.replace("Key", "")), e.includes("Digit") && (t = e.replace("Digit", "")), e === "Escape" && (t = "Esc"), t;
100
- }, O = (t, n) => {
101
- let r = Te(t);
100
+ }, Oe = (t, n) => {
101
+ let r = De(t);
102
102
  if (!n) return r;
103
- let { ctrl: i, alt: a, shift: o } = we, s = [];
103
+ let { ctrl: i, alt: a, shift: o } = Ee, s = [];
104
104
  return n.ctrl && s.push(i), n.alt && s.push(a), n.shift && s.push(o), s.push(r), s.join(e() ? "" : "+");
105
- }, k = (e, t, n) => {
106
- let r = O(t, n);
105
+ }, E = (e, t, n) => {
106
+ let r = Oe(t, n);
107
107
  if (e.__TOP_V_SHORTCUT_VALUE) {
108
108
  console.warn(`Element already has shortcut "${e.__TOP_V_SHORTCUT_VALUE}"`);
109
109
  return;
110
110
  }
111
- if (E.has(r)) {
111
+ if (T.has(r)) {
112
112
  console.warn(`Shortcut "${r}" is taken`);
113
113
  return;
114
114
  }
115
- E.set(r, e), e.title = e.title ? `${e.title} (${r})` : r, e.__TOP_V_SHORTCUT_VALUE = r;
116
- }, A = (e) => {
115
+ T.set(r, e), e.title = e.title ? `${e.title} (${r})` : r, e.__TOP_V_SHORTCUT_VALUE = r;
116
+ }, D = (e) => {
117
117
  let t = e.__TOP_V_SHORTCUT_VALUE;
118
- t && (E.delete(t), delete e.__TOP_V_SHORTCUT_VALUE, e.title === t && e.removeAttribute("title"), e.title.includes(` (${t})`) && (e.title = e.title.replace(` (${t})`, "")));
119
- }, Ee = () => {
120
- for (let [e] of w) !c(e) && e.__TOP_V_SHORTCUT_VALUE && A(e);
121
- for (let [e, t] of w) c(e) && !e.__TOP_V_SHORTCUT_VALUE && k(e, t.value, t.modifiers);
122
- w.clear();
123
- }, De = async (e, t, n) => {
124
- if (!T) {
118
+ t && (T.delete(t), delete e.__TOP_V_SHORTCUT_VALUE, e.title === t && e.removeAttribute("title"), e.title.includes(` (${t})`) && (e.title = e.title.replace(` (${t})`, "")));
119
+ }, ke = () => {
120
+ for (let [e] of C) !c(e) && e.__TOP_V_SHORTCUT_VALUE && D(e);
121
+ for (let [e, t] of C) c(e) && !e.__TOP_V_SHORTCUT_VALUE && E(e, t.value, t.modifiers);
122
+ C.clear();
123
+ }, Ae = async (e, t, n) => {
124
+ if (!w) {
125
125
  let { debounce: e } = await import("../utils/lodash.js");
126
- T = e(Ee, 30);
126
+ w = e(ke, 30);
127
127
  }
128
- w.set(e, {
128
+ C.set(e, {
129
129
  value: t,
130
130
  modifiers: n
131
- }), T();
132
- }, j = () => {
133
- D || (D = !0, document.addEventListener("keydown", (t) => {
131
+ }), w();
132
+ }, O = () => {
133
+ Te || (Te = !0, document.addEventListener("keydown", (t) => {
134
134
  if (!(t.target instanceof HTMLElement) || ["INPUT", "TEXTAREA"].includes(t.target.tagName) || t.target.isContentEditable) return;
135
135
  let n = {
136
136
  ctrl: e() ? t.metaKey : t.ctrlKey,
137
137
  alt: t.altKey,
138
138
  shift: t.shiftKey
139
- }, r = O(t.code, n), i = E.get(r);
139
+ }, r = Oe(t.code, n), i = T.get(r);
140
140
  i && (i.disabled || !c(i) || (t.preventDefault(), i.click()));
141
141
  }));
142
- }, Oe = {
142
+ }, je = {
143
143
  mounted: function(e, t) {
144
144
  let { value: n, modifiers: r } = t;
145
- !n || !c(e) || (j(), k(e, n, r));
145
+ !n || !c(e) || (O(), E(e, n, r));
146
146
  },
147
147
  updated: function(e, t) {
148
148
  if (!!e.__TOP_V_SHORTCUT_VALUE === c(e)) return;
149
149
  let { value: n, modifiers: r } = t;
150
- n && (j(), De(e, n, r));
150
+ n && (O(), Ae(e, n, r));
151
151
  },
152
152
  unmounted: function(e) {
153
- A(e);
153
+ D(e);
154
154
  }
155
- }, M, ke = {
155
+ }, k, Me = {
156
156
  mounted(e, t, n) {
157
157
  let r = t.value || "top-sticky";
158
- M = new IntersectionObserver((n) => {
158
+ k = new IntersectionObserver((n) => {
159
159
  let i = n[0].intersectionRatio < 1;
160
160
  i && t.modifiers.bottom && n[0].intersectionRect.y === 0 && (i = !1), e.classList.toggle(r, i);
161
- }, { threshold: [1] }), M.observe(e);
161
+ }, { threshold: [1] }), k.observe(e);
162
162
  },
163
163
  unmounted(e, t, n) {
164
- M?.disconnect();
164
+ k?.disconnect();
165
165
  }
166
- }, Ae = !1, N, P = /* @__PURE__ */ new Map(), je = (e, t) => {
167
- let { distance: n, percent: r } = e.directiveSwipUpOptions, i = e.getBoundingClientRect().top, a = t * r / 100 / n, o = (t - i) / a;
168
- o <= n ? e.style.transform = `translateY(${n - o}px)` : e.style.transform = "translateY(0px)";
169
- }, Me = (e) => {
170
- let t = window.innerHeight;
166
+ }, Ne = !1, A, j = /* @__PURE__ */ new Set(), M = null, N = (e, t) => {
167
+ let { distance: n, percent: r } = e.directiveSwimUpOptions, i = e.getBoundingClientRect().top, a = t, o = t * (100 - r) / 100, s = (a - i) / (a - o), ee = n * (1 - Math.min(Math.max(s, 0), 1));
168
+ e.style.transform = `translateY(${ee}px)`;
169
+ }, Pe = () => {
170
+ let e = window.innerHeight;
171
171
  window.addEventListener("scroll", () => {
172
- P.forEach((e) => je(e, t));
173
- }, { passive: !0 }), N = new IntersectionObserver((e) => {
174
- t = window.innerHeight, e.forEach((e) => {
172
+ M === null && (M = requestAnimationFrame(() => {
173
+ j.forEach((t) => N(t, e)), M = null;
174
+ }));
175
+ }, { passive: !0 }), A = new IntersectionObserver((t) => {
176
+ e = window.innerHeight, t.forEach((e) => {
175
177
  let t = e.target;
176
- if (e.intersectionRatio < .1 ? P.delete(t) : P.set(t, t), e.intersectionRatio === 0) {
177
- let { distance: e } = t.directiveSwipUpOptions;
178
- t.style.transform = `translateY(${e}px)`;
178
+ if (e.intersectionRatio < .01 ? j.delete(t) : j.add(t), e.intersectionRatio === 0) {
179
+ let { distance: e } = t.directiveSwimUpOptions, n = t.getBoundingClientRect().top;
180
+ t.style.transform = `translateY(${n > 0 ? e : 0}px)`;
179
181
  }
180
182
  });
181
- }, { threshold: .1 });
182
- }, Ne = {
183
+ }, { threshold: .01 });
184
+ }, Fe = {
183
185
  mounted(e, t, r) {
184
- n.state.isMobileUA || (e.directiveSwipUpOptions = {
186
+ let i = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
187
+ if (n.state.isMobileUA || i) return;
188
+ let a = {
185
189
  distance: t.value?.distance ?? 100,
186
190
  percent: t.value?.percent ?? 30
187
- }, Ae ||= (Me(e), !0), N.observe(e));
191
+ };
192
+ a.percent <= 0 || (e.directiveSwimUpOptions = a, Ne ||= (Pe(), !0), N(e, window.innerHeight), A.observe(e));
188
193
  },
189
194
  unmounted(e, t, n) {
190
- P.delete(e), N?.unobserve(e);
195
+ j.delete(e), A?.unobserve(e);
191
196
  }
192
- }, F = (e) => {
197
+ }, P = (e) => {
193
198
  if (!n.$?.ui?.tooltip) {
194
199
  console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
195
200
  return;
196
201
  }
197
202
  return n.$(e);
198
- }, I = (e, t) => {
203
+ }, F = (e, t) => {
199
204
  let n = { ...e.value ?? {} };
200
205
  return n.content ??= t.getAttribute("ui-tooltip-title") ?? t.getAttribute("title") ?? "", n.content = String(n.content).replace(/([^<>])\r?\n([^<>])/g, "$1<br>$2"), n.position ??= {
201
206
  my: "bottom-18px",
202
207
  at: "top center",
203
208
  collision: "flipfit"
204
209
  }, n;
205
- }, Pe = {
210
+ }, Ie = {
206
211
  mounted(e, t) {
207
- F(e)?.tooltip(I(t, e));
212
+ P(e)?.tooltip(F(t, e));
208
213
  },
209
214
  updated(e, t) {
210
- let n = I(t, e), r = F(e)?.tooltip("instance");
215
+ let n = F(t, e), r = P(e)?.tooltip("instance");
211
216
  if (!r) {
212
- F(e)?.tooltip(n);
217
+ P(e)?.tooltip(n);
213
218
  return;
214
219
  }
215
220
  r.options = {
@@ -218,85 +223,85 @@ var _e, ve = { mounted: async (e, t) => {
218
223
  };
219
224
  },
220
225
  unmounted(e) {
221
- F(e)?.tooltip("destroy");
226
+ P(e)?.tooltip("destroy");
222
227
  }
223
- }, Fe = ge(() => import("./notice-CAZoT0RU.esm.js"));
228
+ }, Le = ge(() => import("./notice-Dw5ZUJxW.esm.js"));
224
229
  window.vd = console.log;
225
- var Ie = { install: (e, t) => {
230
+ var Re = { install: (e, t) => {
226
231
  e.config.globalProperties.$core = n, e.config.globalProperties.$vd = console.log;
227
232
  for (let e in t) n.state[e] = t[e];
228
- t.widthForMobile && (n.widthForMobile = t.widthForMobile), t.themeName && (n.themeName = t.themeName), n._setState(), t.topPopupOptions && (l.options = t.topPopupOptions), d.init(), de.init(t.topDialogOptions), e.directive("top-data", ve), e.directive("top-focus", be), e.directive("top-scroll-into-view", Se), e.directive("top-scroll-shadow", Ce), e.directive("top-shortcut", Oe), e.directive("top-sticky", ke), e.directive("top-swim-up", Ne), e.directive("top-tooltip", Pe), e.component("TopAvatar", ee), e.component("TopButton", te), e.component("TopCheckbox", s), e.component("TopControlLabel", se), e.component("TopHint", o), e.component("TopInput", a), e.component("TopInputDate", le), e.component("TopInputRange", oe), e.component("TopLoadbar", ie), e.component("TopRadio", i), e.component("TopSelect", ae), e.component("TopSwitcher", ne), e.component("TopTextarea", ce), e.component("TopNotice", Fe), e.component("TopDialogs", ue);
233
+ t.widthForMobile && (n.widthForMobile = t.widthForMobile), t.themeName && (n.themeName = t.themeName), n._setState(), t.topPopupOptions && (l.options = t.topPopupOptions), _e.init(), de.init(t.topDialogOptions), e.directive("top-data", ve), e.directive("top-focus", be), e.directive("top-scroll-into-view", Ce), e.directive("top-scroll-shadow", we), e.directive("top-shortcut", je), e.directive("top-sticky", Me), e.directive("top-swim-up", Fe), e.directive("top-tooltip", Ie), e.component("TopAvatar", ee), e.component("TopButton", te), e.component("TopCheckbox", s), e.component("TopControlLabel", se), e.component("TopHint", o), e.component("TopInput", a), e.component("TopInputDate", le), e.component("TopInputRange", oe), e.component("TopLoadbar", ie), e.component("TopRadio", i), e.component("TopSelect", ae), e.component("TopSwitcher", ne), e.component("TopTextarea", ce), e.component("TopNotice", Le), e.component("TopDialogs", ue);
229
234
  } };
230
235
  //#endregion
231
236
  //#region \0@oxc-project+runtime@0.139.0/helpers/esm/checkPrivateRedeclaration.js
232
- function L(e, t) {
237
+ function I(e, t) {
233
238
  if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
234
239
  }
235
240
  //#endregion
236
241
  //#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateMethodInitSpec.js
237
- function Le(e, t) {
238
- L(e, t), t.add(e);
242
+ function ze(e, t) {
243
+ I(e, t), t.add(e);
239
244
  }
240
245
  //#endregion
241
246
  //#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldInitSpec.js
242
- function R(e, t, n) {
243
- L(e, t), t.set(e, n);
247
+ function L(e, t, n) {
248
+ I(e, t), t.set(e, n);
244
249
  }
245
250
  //#endregion
246
251
  //#region \0@oxc-project+runtime@0.139.0/helpers/esm/assertClassBrand.js
247
- function z(e, t, n) {
252
+ function R(e, t, n) {
248
253
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
249
254
  throw TypeError("Private element is not present on this object");
250
255
  }
251
256
  //#endregion
252
257
  //#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldSet2.js
253
- function B(e, t, n) {
254
- return e.set(z(e, t), n), n;
258
+ function z(e, t, n) {
259
+ return e.set(R(e, t), n), n;
255
260
  }
256
261
  //#endregion
257
262
  //#region \0@oxc-project+runtime@0.139.0/helpers/esm/classPrivateFieldGet2.js
258
- function V(e, t) {
259
- return e.get(z(e, t));
263
+ function B(e, t) {
264
+ return e.get(R(e, t));
260
265
  }
261
266
  //#endregion
262
267
  //#region src/core/plugins/piniaTPA.ts
263
- var H = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakSet(), Re = class {
268
+ var V = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakSet(), Be = class {
264
269
  constructor(e) {
265
- Le(this, Z), R(this, H, void 0), R(this, U, void 0), R(this, W, void 0), R(this, G, void 0), R(this, K, void 0), R(this, q, []), R(this, J, []), R(this, Y, []), R(this, X, []), B(U, this, e.store), B(H, this, V(U, this).$id), B(W, this, e.options.Page), B(G, this, e.options.user), B(K, this, e.options.Api), B(q, this, e.options.tpaNamesUrlHash || []), B(J, this, e.options.tpaNamesStorage || []), B(Y, this, e.options.tpaNamesStorageLocal || []), B(X, this, e.options.tpaNamesGuestLink || []), e.store.genGuestLink = (e, t) => this.genGuestLink(e, t), V(G, this).guest_data?.data || (z(Z, this, We).call(this), z(Z, this, We).call(this, !0), z(Z, this, He).call(this)), z(Z, this, Ke).call(this), z(Z, this, qe).call(this);
270
+ ze(this, X), L(this, V, void 0), L(this, H, void 0), L(this, U, void 0), L(this, W, void 0), L(this, G, void 0), L(this, K, []), L(this, q, []), L(this, J, []), L(this, Y, []), z(H, this, e.store), z(V, this, B(H, this).$id), z(U, this, e.options.Page), z(W, this, e.options.user), z(G, this, e.options.Api), z(K, this, e.options.tpaNamesUrlHash || []), z(q, this, e.options.tpaNamesStorage || []), z(J, this, e.options.tpaNamesStorageLocal || []), z(Y, this, e.options.tpaNamesGuestLink || []), e.store.genGuestLink = (e, t) => this.genGuestLink(e, t), B(W, this).guest_data?.data || (R(X, this, Ke).call(this), R(X, this, Ke).call(this, !0), R(X, this, We).call(this)), R(X, this, qe).call(this), R(X, this, Je).call(this);
266
271
  let t = r(() => {
267
- z(Z, this, Ue).call(this), z(Z, this, Ge).call(this), z(Z, this, Ge).call(this, !0);
272
+ R(X, this, Ge).call(this), R(X, this, Q).call(this), R(X, this, Q).call(this, !0);
268
273
  });
269
274
  e.store.$subscribe(t);
270
275
  }
271
276
  async genGuestLink(e, t) {
272
- let n = z(Z, this, ze).call(this);
277
+ let n = R(X, this, Ve).call(this);
273
278
  t = Object.assign(t, Object.fromEntries(n));
274
- let r = await V(K, this).gen(e).setParams(t).call();
279
+ let r = await B(G, this).gen(e).setParams(t).call();
275
280
  if (r?.errors) return;
276
281
  let i = r.result;
277
282
  await me(i);
278
283
  }
279
284
  };
280
- function ze() {
285
+ function Ve() {
281
286
  let e = /* @__PURE__ */ new Map();
282
- return V(X, this).forEach((t) => {
287
+ return B(Y, this).forEach((t) => {
283
288
  let n = he(t);
284
- e.set(n, V(U, this)[t]);
289
+ e.set(n, B(H, this)[t]);
285
290
  }), e;
286
291
  }
287
- function Q(e) {
292
+ function Z(e) {
288
293
  e.forEach((e, t) => {
289
- let n = V(U, this)[t];
290
- e != null && n !== void 0 && e?.constructor && e.constructor === n.constructor && (t.indexOf("date") === 0 && !Array.isArray(e) && typeof e == "string" && !/\d\d\d\d-\d\d-\d\d/.test(e) || (V(U, this)[t] = e));
294
+ let n = B(H, this)[t];
295
+ e != null && n !== void 0 && e?.constructor && e.constructor === n.constructor && (t.indexOf("date") === 0 && !Array.isArray(e) && typeof e == "string" && !/\d\d\d\d-\d\d-\d\d/.test(e) || (B(H, this)[t] = e));
291
296
  });
292
297
  }
293
- function Be(e) {
298
+ function He(e) {
294
299
  let t = /* @__PURE__ */ new Map();
295
300
  return e.forEach((e, n) => {
296
301
  e !== null && (e = JSON.stringify(e), t.set(n, e));
297
302
  }), t;
298
303
  }
299
- function Ve(e) {
304
+ function Ue(e) {
300
305
  let t = /* @__PURE__ */ new Map();
301
306
  return e.forEach((e, n) => {
302
307
  if (!(e == null || e === "false")) {
@@ -307,67 +312,67 @@ function Ve(e) {
307
312
  }
308
313
  }), t;
309
314
  }
310
- function He() {
315
+ function We() {
311
316
  let e;
312
317
  try {
313
- e = JSON.parse(fe(V(H, this)));
318
+ e = JSON.parse(fe(B(V, this)));
314
319
  } catch {}
315
320
  if (!e) return;
316
321
  let t = /* @__PURE__ */ new Map();
317
- V(q, this).forEach((n) => {
322
+ B(K, this).forEach((n) => {
318
323
  let r = e[n];
319
324
  r && t.set(n, r);
320
- }), z(Z, this, Q).call(this, t);
325
+ }), R(X, this, Z).call(this, t);
321
326
  }
322
- function Ue() {
327
+ function Ge() {
323
328
  let e = /* @__PURE__ */ new Map();
324
- V(q, this).forEach((t) => {
325
- let n = V(U, this)[t];
329
+ B(K, this).forEach((t) => {
330
+ let n = B(H, this)[t];
326
331
  e.set(t, n);
327
332
  });
328
333
  let t = Object.fromEntries(e), n = JSON.stringify(t);
329
- pe(V(H, this), n);
334
+ pe(B(V, this), n);
330
335
  }
331
- function We(e = !1) {
332
- let t = /* @__PURE__ */ new Map(), n = V(J, this), r = "state:" + V(H, this);
333
- e && (n = V(Y, this), r = "state:" + V(H, this) + ":" + location.pathname), n.forEach((e) => {
336
+ function Ke(e = !1) {
337
+ let t = /* @__PURE__ */ new Map(), n = B(q, this), r = "state:" + B(V, this);
338
+ e && (n = B(J, this), r = "state:" + B(V, this) + ":" + location.pathname), n.forEach((e) => {
334
339
  let n = localStorage.getItem(r + ":" + e);
335
340
  t.set(e, n);
336
341
  });
337
- let i = z(Z, this, Ve).call(this, t);
338
- z(Z, this, Q).call(this, i);
342
+ let i = R(X, this, Ue).call(this, t);
343
+ R(X, this, Z).call(this, i);
339
344
  }
340
- function Ge(e = !1) {
341
- let t = /* @__PURE__ */ new Map(), n = V(J, this), r = "state:" + V(H, this);
342
- e && (n = V(Y, this), r = "state:" + V(H, this) + ":" + location.pathname), n.forEach((e) => {
343
- let n = V(U, this)[e];
345
+ function Q(e = !1) {
346
+ let t = /* @__PURE__ */ new Map(), n = B(q, this), r = "state:" + B(V, this);
347
+ e && (n = B(J, this), r = "state:" + B(V, this) + ":" + location.pathname), n.forEach((e) => {
348
+ let n = B(H, this)[e];
344
349
  t.set(e, n);
345
350
  });
346
- let i = z(Z, this, Be).call(this, t);
351
+ let i = R(X, this, He).call(this, t);
347
352
  n.forEach((e) => {
348
353
  let t = i.get(e);
349
354
  localStorage.setItem(r + ":" + e, t);
350
355
  });
351
356
  }
352
- function Ke() {
353
- let e = V(G, this)?.guest_data?.data;
357
+ function qe() {
358
+ let e = B(W, this)?.guest_data?.data;
354
359
  if (!e) return;
355
- V(G, this).id === -1 && (V(G, this).positionsReverseDates = e.positionsReverseDates);
360
+ B(W, this).id === -1 && (B(W, this).positionsReverseDates = e.positionsReverseDates);
356
361
  let t = /* @__PURE__ */ new Map();
357
- V(X, this).forEach((n) => {
362
+ B(Y, this).forEach((n) => {
358
363
  let r = e[n];
359
364
  t.set(n, r);
360
365
  });
361
- let n = z(Z, this, Ve).call(this, t);
362
- z(Z, this, Q).call(this, n);
366
+ let n = R(X, this, Ue).call(this, t);
367
+ R(X, this, Z).call(this, n);
363
368
  let r = $(".mod_guest_title");
364
- if (V(U, this).competitorsIds?.length === 1 && V(W, this).page.data.competitors) {
365
- let t = V(W, this).page.data.competitors.filter((t) => t.id === e.competitorsIds[0]);
369
+ if (B(H, this).competitorsIds?.length === 1 && B(U, this).page.data.competitors) {
370
+ let t = B(U, this).page.data.competitors.filter((t) => t.id === e.competitorsIds[0]);
366
371
  t.length && ($("a", r).attr("href", "http://" + t[0].url), $("a", r).text(t[0].name));
367
372
  }
368
373
  }
369
- function qe() {
370
- V(U, this).regionsIndexes && u(V(U, this).regionsIndexes, (e) => {
374
+ function Je() {
375
+ B(H, this).regionsIndexes && u(B(H, this).regionsIndexes, (e) => {
371
376
  if (!e.length) return;
372
377
  e.forEach((t, n) => e[n] = t);
373
378
  let t = TplProjectSelectorRegion.genSearchersMap(), n = [];
@@ -375,21 +380,21 @@ function qe() {
375
380
  e.regions.forEach((e) => {
376
381
  e.index !== -1 && n.push(e.index);
377
382
  });
378
- }), V(U, this).regionsIndexes = e.filter((e) => n.includes(e));
379
- }, { immediate: !0 }), V(U, this).competitorsIds && u(V(U, this).competitorsIds, (e) => {
383
+ }), B(H, this).regionsIndexes = e.filter((e) => n.includes(e));
384
+ }, { immediate: !0 }), B(H, this).competitorsIds && u(B(H, this).competitorsIds, (e) => {
380
385
  if (!e.length) return;
381
386
  e.forEach((t, n) => e[n] = t);
382
- let t = [V(W, this).page.data.project.id];
383
- V(W, this).page.data.project.competitors.forEach((e) => {
387
+ let t = [B(U, this).page.data.project.id];
388
+ B(U, this).page.data.project.competitors.forEach((e) => {
384
389
  e.on >= 0 && t.push(e.id);
385
- }), V(U, this).competitorsIds = e.filter((e) => t.includes(e));
390
+ }), B(H, this).competitorsIds = e.filter((e) => t.includes(e));
386
391
  }, { immediate: !0 });
387
392
  }
388
- var Je = (e) => {
393
+ var Ye = (e) => {
389
394
  let t = e;
390
- !t.options.tpaNamesUrlHash?.length && !t.options.tpaNamesStorage?.length && !t.options.tpaNamesStorageLocal?.length && !t.options.tpaNamesGuestLink?.length || new Re(t);
395
+ !t.options.tpaNamesUrlHash?.length && !t.options.tpaNamesStorage?.length && !t.options.tpaNamesStorageLocal?.length && !t.options.tpaNamesGuestLink?.length || new Be(t);
391
396
  };
392
397
  //#endregion
393
- export { Ie as n, Je as t };
398
+ export { Re as n, Ye as t };
394
399
 
395
- //# sourceMappingURL=app-BI7BuMMX.esm.js.map
400
+ //# sourceMappingURL=app-CyODeY0D.esm.js.map