@topvisor/ui 0.9.35 → 0.9.36

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 (73) hide show
  1. package/.chunks/{datepicker-BG0u8UXv.amd.js → datepicker-CMuCkYBj.amd.js} +5 -5
  2. package/.chunks/datepicker-CMuCkYBj.amd.js.map +1 -0
  3. package/.chunks/{datepicker-Dmeojg66.es.js → datepicker-CtcFJYEp.es.js} +25 -26
  4. package/.chunks/{datepicker-Dmeojg66.es.js.map → datepicker-CtcFJYEp.es.js.map} +1 -1
  5. package/.chunks/{forms-CPEVHoks.es.js → forms-Cay_sybt.es.js} +463 -388
  6. package/.chunks/forms-Cay_sybt.es.js.map +1 -0
  7. package/.chunks/forms-Lm1WM1gO.amd.js +3 -0
  8. package/.chunks/forms-Lm1WM1gO.amd.js.map +1 -0
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Dlm9Et7q.es.js → listItem.vue_vue_type_script_setup_true_lang-B3TjT92k.es.js} +20 -20
  10. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Dlm9Et7q.es.js.map → listItem.vue_vue_type_script_setup_true_lang-B3TjT92k.es.js.map} +1 -1
  11. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CkZHzNZU.amd.js → listItem.vue_vue_type_script_setup_true_lang-D1glM0F3.amd.js} +2 -2
  12. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CkZHzNZU.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-D1glM0F3.amd.js.map} +1 -1
  13. package/.chunks/{menu-CiQMMrnp.es.js → menu-B3Nf7_NC.es.js} +34 -34
  14. package/.chunks/{menu-CiQMMrnp.es.js.map → menu-B3Nf7_NC.es.js.map} +1 -1
  15. package/.chunks/{menu-SmyeSNWQ.amd.js → menu-Dg2EKy3O.amd.js} +2 -2
  16. package/.chunks/{menu-SmyeSNWQ.amd.js.map → menu-Dg2EKy3O.amd.js.map} +1 -1
  17. package/.chunks/{popup-Bv_sxmoj.es.js → popup-B7UOyCUj.es.js} +23 -23
  18. package/.chunks/popup-B7UOyCUj.es.js.map +1 -0
  19. package/.chunks/popup-BGuc5GyB.amd.js +442 -0
  20. package/.chunks/popup-BGuc5GyB.amd.js.map +1 -0
  21. package/assets/core.css +1 -1
  22. package/assets/dark.css +1 -1
  23. package/assets/forms.css +1 -1
  24. package/assets/formsExt.css +1 -1
  25. package/assets/light.css +1 -1
  26. package/assets/menu.css +1 -1
  27. package/assets/popup.css +1 -1
  28. package/assets/tabs.css +1 -1
  29. package/core/app.amd.js +1 -1
  30. package/core/app.amd.js.map +1 -1
  31. package/core/app.js +2 -2
  32. package/core/app.js.map +1 -1
  33. package/core/core/core.d.ts +40 -0
  34. package/core/core.amd.js +1 -1
  35. package/core/core.js +1 -1
  36. package/forms/forms.amd.js +1 -1
  37. package/forms/forms.js +1 -1
  38. package/formsExt/formsExt.amd.js +1 -1
  39. package/formsExt/formsExt.amd.js.map +1 -1
  40. package/formsExt/formsExt.js +58 -58
  41. package/formsExt/formsExt.js.map +1 -1
  42. package/package.json +1 -1
  43. package/popup/popup.amd.js +1 -1
  44. package/popup/popup.js +17 -17
  45. package/popup/popup.js.map +1 -1
  46. package/popup/worker.amd.js +1 -1
  47. package/popup/worker.js +2 -2
  48. package/project/project.amd.js +1 -1
  49. package/project/project.js +19 -19
  50. package/require/css.amd.js +4 -4
  51. package/tabs/tabs.amd.js +1 -1
  52. package/tabs/tabs.js +13 -13
  53. package/tabsView/tabsView.amd.js +1 -1
  54. package/tabsView/tabsView.js +44 -44
  55. package/utils/date.amd.js +1 -1
  56. package/utils/date.js +1 -1
  57. package/utils/device.amd.js +1 -1
  58. package/utils/device.js +1 -1
  59. package/utils/price.amd.js +1 -1
  60. package/utils/price.js +1 -1
  61. package/.chunks/datepicker-BG0u8UXv.amd.js.map +0 -1
  62. package/.chunks/forms-CPEVHoks.es.js.map +0 -1
  63. package/.chunks/forms-oowSA2rF.amd.js +0 -3
  64. package/.chunks/forms-oowSA2rF.amd.js.map +0 -1
  65. package/.chunks/popup-Bv_sxmoj.es.js.map +0 -1
  66. package/.chunks/popup-ClvUyl7S.amd.js +0 -441
  67. package/.chunks/popup-ClvUyl7S.amd.js.map +0 -1
  68. package/core/utils/css.d.ts +0 -43
  69. package/utils/css.amd.js +0 -2
  70. package/utils/css.amd.js.map +0 -1
  71. package/utils/css.d.ts +0 -1
  72. package/utils/css.js +0 -45
  73. package/utils/css.js.map +0 -1
@@ -1,28 +1,25 @@
1
- import { insertToPage as x } from "../utils/css.js";
2
- import { reactive as I, defineComponent as w, useCssVars as q, computed as h, openBlock as p, createElementBlock as m, createElementVNode as S, createCommentVNode as g, createBlock as T, resolveDynamicComponent as te, normalizeClass as y, withCtx as L, renderSlot as k, createTextVNode as oe, toDisplayString as V, mergeModels as R, useModel as G, withDirectives as W, vModelCheckbox as Q, mergeProps as E, withKeys as se, vModelText as J, withModifiers as ae, onUnmounted as ne, ref as ie, unref as A, vModelRadio as re, resolveDirective as le, watch as de, Fragment as N, renderList as U, vModelSelect as pe } from "vue";
3
- const ee = ["../assets/forms.css"].map((t) => import.meta.resolve(t));
4
- x(ee, !0);
5
- function ue() {
1
+ import { reactive as I, defineComponent as v, useCssVars as G, computed as b, openBlock as u, createElementBlock as f, createElementVNode as S, createCommentVNode as g, createBlock as M, resolveDynamicComponent as x, normalizeClass as w, withCtx as L, renderSlot as k, createTextVNode as ee, toDisplayString as V, mergeModels as N, useModel as K, withDirectives as W, vModelCheckbox as Q, mergeProps as D, withKeys as te, vModelText as J, withModifiers as oe, onUnmounted as se, ref as ae, unref as A, vModelRadio as ne, resolveDirective as ie, watch as re, Fragment as R, renderList as F, vModelSelect as le } from "vue";
2
+ function de() {
6
3
  return "devicePixelRatio" in window && window.devicePixelRatio > 1;
7
4
  }
8
- function ce() {
5
+ function pe() {
9
6
  return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
10
7
  }
11
- function me() {
8
+ function ue() {
12
9
  return navigator.userAgent.indexOf("Topvisor_App") != -1;
13
10
  }
14
- function fe() {
11
+ function ce() {
15
12
  return navigator.userAgent.indexOf("Mac OS X") !== -1;
16
13
  }
17
- function Kt() {
14
+ function Ut() {
18
15
  const t = /Chrome|Android/.test(navigator.userAgent);
19
- let s = /Safari/.test(navigator.userAgent);
20
- return t && s && (s = !1), s;
16
+ let a = /Safari/.test(navigator.userAgent);
17
+ return t && a && (a = !1), a;
21
18
  }
22
- function qt() {
23
- return fe() ? "⌘" : "Ctrl";
19
+ function Xt() {
20
+ return ce() ? "⌘" : "Ctrl";
24
21
  }
25
- const Gt = () => $(document).scrollTop(), Qt = () => $(document), Jt = () => [document], be = () => {
22
+ const Yt = () => $(document).scrollTop(), qt = () => $(document), Gt = () => [document], me = () => {
26
23
  const t = [
27
24
  ["iOS", /(iPhone|iPad)/i],
28
25
  ["Android", /(Android)/i],
@@ -48,48 +45,48 @@ const Gt = () => $(document).scrollTop(), Qt = () => $(document), Jt = () => [do
48
45
  ["BeOS", /BeOS/i],
49
46
  ["OS/2", /OS\/2/i]
50
47
  ];
51
- let s = "";
48
+ let a = "";
52
49
  for (let o = 0; o < t.length; o++)
53
50
  if (t[o][1].test(navigator.userAgent)) {
54
- s = t[o][0];
51
+ a = t[o][0];
55
52
  break;
56
53
  }
57
- return s;
58
- }, Zt = async () => {
59
- var s;
60
- let t = be();
54
+ return a;
55
+ }, Kt = async () => {
56
+ var a;
57
+ let t = me();
61
58
  if (t === "Windows 10") {
62
- const o = await ((s = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : s.getHighEntropyValues(["platformVersion"]));
59
+ const o = await ((a = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : a.getHighEntropyValues(["platformVersion"]));
63
60
  o && o.platformVersion >= "13" && (t = "Windows 11");
64
61
  }
65
62
  return t;
66
- }, he = 100;
67
- let F;
68
- const H = /* @__PURE__ */ new Map(), D = {
63
+ }, fe = 100;
64
+ let U;
65
+ const H = /* @__PURE__ */ new Map(), z = {
69
66
  width: window.innerWidth,
70
67
  height: window.innerHeight
71
68
  };
72
- function ge(t) {
69
+ function he(t) {
73
70
  H.set(t, t);
74
71
  }
75
- function ye(t) {
72
+ function be(t) {
76
73
  H.delete(t);
77
74
  }
78
- function ve(t) {
79
- clearTimeout(F), F = setTimeout(function() {
75
+ function ge(t) {
76
+ clearTimeout(U), U = setTimeout(function() {
80
77
  t.topEvent = {
81
- widthDiff: D.width - window.innerWidth,
82
- hightDiff: D.height - window.innerHeight
83
- }, D.width = window.innerWidth, D.height = window.innerHeight, H.forEach((s) => s(t));
84
- }, he);
78
+ widthDiff: z.width - window.innerWidth,
79
+ hightDiff: z.height - window.innerHeight
80
+ }, z.width = window.innerWidth, z.height = window.innerHeight, H.forEach((a) => a(t));
81
+ }, fe);
85
82
  }
86
- window.addEventListener("resize", ve);
83
+ window.addEventListener("resize", ge);
87
84
  const we = {
88
- addOnReize: ge,
89
- removeOnResize: ye
85
+ addOnReize: he,
86
+ removeOnResize: be
90
87
  };
91
- var K;
92
- const P = {
88
+ var q;
89
+ const C = {
93
90
  /**
94
91
  * Базовая ширина страницы для отображения ПК / Мобильной версии сайта
95
92
  */
@@ -105,11 +102,11 @@ const P = {
105
102
  /**
106
103
  * Для Москвы: +0300
107
104
  */
108
- gmt: (K = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : K[1]
109
- }, $e = {
110
- dateFormat: P.dateFormat,
111
- currency: P.currency,
112
- gmt: P.gmt,
105
+ gmt: (q = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : q[1]
106
+ }, ye = {
107
+ dateFormat: C.dateFormat,
108
+ currency: C.currency,
109
+ gmt: C.gmt,
113
110
  /**
114
111
  * Device by size
115
112
  * @see widthForMobile
@@ -153,25 +150,25 @@ class c {
153
150
  static L = I({
154
151
  Not_date: "Not date"
155
152
  });
156
- static state = I({ ...$e });
153
+ static state = I({ ...ye });
157
154
  static widthForMobile = 900;
158
155
  static matchMediaIsMobile;
159
156
  static $ = window.$;
160
157
  static _setState() {
161
- c.matchMediaIsMobile = window.matchMedia(`(max-width: ${c.widthForMobile}px)`), c.state.isMobileUA = ce(), c.state.isRetina = ue(), c.state.isApp = me(), c.setStateByWindowSize(), we.addOnReize(c.onResize), c.onResize(), c.saveToCookie();
158
+ c.matchMediaIsMobile = window.matchMedia(`(max-width: ${c.widthForMobile}px)`), c.state.isMobileUA = pe(), c.state.isRetina = de(), c.state.isApp = ue(), c.setStateByWindowSize(), we.addOnReize(c.onResize), c.onResize(), c.saveToCookie();
162
159
  }
163
160
  static onResize() {
164
161
  c.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
165
162
  }
166
163
  static setStateByWindowSize() {
167
- var s;
168
- c.state.isMobile = !!((s = c.matchMediaIsMobile) != null && s.matches), c.state.isLandscape = window.innerWidth > window.innerHeight, c.state.isPortrait = !c.state.isLandscape, c.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, c.saveToCookie();
164
+ var a;
165
+ c.state.isMobile = !!((a = c.matchMediaIsMobile) != null && a.matches), c.state.isLandscape = window.innerWidth > window.innerHeight, c.state.isPortrait = !c.state.isLandscape, c.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, c.saveToCookie();
169
166
  }
170
167
  /**
171
168
  * Сохранить информацию об устройстве в cookie
172
169
  */
173
170
  static saveToCookie() {
174
- const s = [
171
+ const a = [
175
172
  1,
176
173
  window.innerWidth,
177
174
  window.innerHeight,
@@ -179,74 +176,152 @@ class c {
179
176
  Number(c.state.isMobile),
180
177
  Number(c.state.isRetina)
181
178
  ];
182
- document.cookie = "device=" + s.join(",") + "; path=/;";
179
+ document.cookie = "device=" + a.join(",") + "; path=/;";
183
180
  }
184
181
  /**
185
182
  * Проверить скрыта страница или нет
186
183
  */
187
184
  static isHidden = () => document.hidden;
185
+ /**
186
+ * Вставить css стили на страницу по ссылке с автоматическим добавлением правил media
187
+ *
188
+ * Правила media:
189
+ * - Файлы *.m.css будут грузиться, только на экранах с шириной менее, чем Core.widthForMobile
190
+ * - Файлы *.pc.css будут грузиться, только на экранах с шириной более, чем Core.widthForMobile
191
+ *
192
+ * Настройкой Core.widthForMobile можно управлять через plugin: @topvisor/ui/plugin/core
193
+ *
194
+ * @param fileNames - список ссылок на css файлы
195
+ * @param useSync - использовать синхронную загрузку css, только для css с того же домена. В синхронном режиме стили предзагружаются независимо от
196
+ * media
197
+ */
198
+ static insertCSSLinkToPage = (a, o = !1) => {
199
+ const n = /* @__PURE__ */ new Map();
200
+ n.set("::", []), a.forEach((e) => {
201
+ let d = !1, i = !1;
202
+ e.match(/\.m\./) && (d = !0), e.match(/\.pc\./) && (i = !0);
203
+ const m = `${d}:${i}`;
204
+ n.has(m) || n.set(`${d}:${i}`, []), n.get(`${d}:${i}`).push(e);
205
+ });
206
+ const s = [];
207
+ return n.forEach((e, d) => {
208
+ if (!e.length)
209
+ return;
210
+ const [i, m] = d.split(":").map((p) => p === "true");
211
+ let r = "all";
212
+ i && (r = "(max-width: " + c.widthForMobile + "px)"), m && (r = "(min-width: " + c.widthForMobile + "px)"), c._insertToPage(e, r, o).forEach((p) => s.push(p));
213
+ }), Promise.all(s);
214
+ };
215
+ static _insertToPage = (a, o, n) => {
216
+ const s = [];
217
+ return a.forEach((e) => {
218
+ if (n) {
219
+ const p = new XMLHttpRequest();
220
+ p.open("GET", e, !1), p.send();
221
+ }
222
+ const d = "topCSSLink-" + e.replace(/\W/g, "-");
223
+ if (window.hasOwnProperty(d)) return;
224
+ let i, m;
225
+ const r = new Promise((p, h) => {
226
+ i = p, m = h;
227
+ });
228
+ s.push(r);
229
+ const l = document.createElement("link");
230
+ l.id = d, l.rel = "stylesheet", l.media = o, l.href = e, l.onload = () => i(), l.onerror = () => m(), document.head.append(l);
231
+ }), s;
232
+ };
233
+ /**
234
+ * Вставить css стили на страницу с автоматическим добавлением правил media
235
+ *
236
+ * Загрузка с Vite:
237
+ *
238
+ * ```js
239
+ * import style from '/style.css?raw';
240
+ *
241
+ * insertToPageAsInine(style);
242
+ * ```
243
+ *
244
+ * Загрузка с fetch:
245
+ *
246
+ * ```js
247
+ * const style = await fetch('./style.css');
248
+ *
249
+ * insertToPageAsInine(style);
250
+ * ```
251
+ *
252
+ * @param style - css стили в строке
253
+ * @param type - если указать 'm' или 'pc', то стили будут применяться по условию в зависимости от настройки this.widthForMobile
254
+ *
255
+ * @see insertToPage
256
+ */
257
+ static insertStyleToPage = (a, o = "") => {
258
+ let n = "all";
259
+ o === "m" && (n = "(max-width: " + c.widthForMobile + "px)"), o === "pc" && (n = "(min-width: " + c.widthForMobile + "px)");
260
+ const s = document.createElement("style");
261
+ s.innerHTML = a, s.media = n, document.head.append(s);
262
+ };
188
263
  }
189
- const M = window.L ?? {}, jt = (t, s, o) => {
190
- switch (new Date(t, s, o).getDay()) {
264
+ const T = window.L ?? {}, Qt = (t, a, o) => {
265
+ switch (new Date(t, a, o).getDay()) {
191
266
  case 0:
192
- return M.Vs + ".";
267
+ return T.Vs + ".";
193
268
  case 1:
194
- return M.Pn + ".";
269
+ return T.Pn + ".";
195
270
  case 2:
196
- return M.Vt + ".";
271
+ return T.Vt + ".";
197
272
  case 3:
198
- return M.Sr + ".";
273
+ return T.Sr + ".";
199
274
  case 4:
200
- return M.Ct + ".";
275
+ return T.Ct + ".";
201
276
  case 5:
202
- return M.Pt + ".";
277
+ return T.Pt + ".";
203
278
  case 6:
204
- return M.Sb + ".";
279
+ return T.Sb + ".";
205
280
  default:
206
281
  return "";
207
282
  }
208
- }, xt = (t, s = !0, o = 2) => {
209
- let n = String(t.getFullYear()), a = String(t.getDate()).padStart(2, "0"), e = String(t.getMonth() + 1).padStart(2, "0"), d = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), f = String(t.getSeconds()).padStart(2, "0"), i = n + "-" + e + "-" + a;
210
- return o >= 1 && (i += " " + d), o >= 2 && (i += ":" + r), o === 3 && (i += ":" + f), s && (i = B(i, o)), i;
283
+ }, Jt = (t, a = !0, o = 2) => {
284
+ let n = String(t.getFullYear()), s = String(t.getDate()).padStart(2, "0"), e = String(t.getMonth() + 1).padStart(2, "0"), d = String(t.getHours()).padStart(2, "0"), i = String(t.getMinutes()).padStart(2, "0"), m = String(t.getSeconds()).padStart(2, "0"), r = n + "-" + e + "-" + s;
285
+ return o >= 1 && (r += " " + d), o >= 2 && (r += ":" + i), o === 3 && (r += ":" + m), a && (r = B(r, o)), r;
211
286
  };
212
- function eo(t) {
287
+ function Zt(t) {
213
288
  return t.indexOf("T") === -1 && (t.length == 10 && (t += " 00:00:00"), t = t.replace(" ", "T") + c.state.gmt), new Date(t);
214
289
  }
215
- function Se(t, s = !0, o = 0) {
290
+ function ve(t, a = !0, o = 0) {
216
291
  let n;
217
292
  t != null ? n = new Date(t) : n = /* @__PURE__ */ new Date();
218
- const a = n.getFullYear(), e = String(n.getMonth() + 1).padStart(2, "0"), d = n.getDate().toString().padStart(2, "0"), r = n.getHours().toString().padStart(2, "0"), f = n.getMinutes().toString().padStart(2, "0"), i = n.getSeconds().toString().padStart(2, "0");
219
- return n = a + "-" + e + "-" + d, o && (n += " "), o >= 1 && (n += r), o >= 2 && (n += ":" + f), o >= 3 && (n += ":" + i), s && (n = B(n, o)), n;
293
+ const s = n.getFullYear(), e = String(n.getMonth() + 1).padStart(2, "0"), d = n.getDate().toString().padStart(2, "0"), i = n.getHours().toString().padStart(2, "0"), m = n.getMinutes().toString().padStart(2, "0"), r = n.getSeconds().toString().padStart(2, "0");
294
+ return n = s + "-" + e + "-" + d, o && (n += " "), o >= 1 && (n += i), o >= 2 && (n += ":" + m), o >= 3 && (n += ":" + r), a && (n = B(n, o)), n;
220
295
  }
221
- function to(t, s = !0) {
222
- const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, a = 3 * 60 * 60 * 1e3;
296
+ function jt(t, a = !0) {
297
+ const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, s = 3 * 60 * 60 * 1e3;
223
298
  let e;
224
- t !== void 0 ? e = new Date(t) : e = /* @__PURE__ */ new Date(), e.setTime(e.getTime() - n + a);
225
- let d = String(e.getFullYear()), r = String(e.getDate()).padStart(2, "0"), f = String(e.getMonth() + 1).padStart(2, "0"), i = String(e.getHours()).padStart(2, "0"), l = String(e.getMinutes()).padStart(2, "0"), u = String(e.getSeconds()).padStart(2, "0"), b = d + "-" + f + "-" + r + " " + i + ":" + l + ":" + u;
226
- return s && (b = B(b)), b;
299
+ t !== void 0 ? e = new Date(t) : e = /* @__PURE__ */ new Date(), e.setTime(e.getTime() - n + s);
300
+ let d = String(e.getFullYear()), i = String(e.getDate()).padStart(2, "0"), m = String(e.getMonth() + 1).padStart(2, "0"), r = String(e.getHours()).padStart(2, "0"), l = String(e.getMinutes()).padStart(2, "0"), p = String(e.getSeconds()).padStart(2, "0"), h = d + "-" + m + "-" + i + " " + r + ":" + l + ":" + p;
301
+ return a && (h = B(h)), h;
227
302
  }
228
- function B(t, s = 2, o, n = c.L.Not_date) {
303
+ function B(t, a = 2, o, n = c.L.Not_date) {
229
304
  if (typeof t == "string" && (!t || t.substring(0, 10) === "0000-00-00") && n && n !== "0000-00-00" || !t) return n;
230
305
  o || (o = c.state.dateFormat), o = o.toLowerCase().replace("m", "mm").replace("y", "yy").replace("d", "dd");
231
- let a;
306
+ let s;
232
307
  if (t instanceof Date)
233
- a = t;
308
+ s = t;
234
309
  else {
235
310
  let d = t.substring(0, 10);
236
- if (d.length === 7 && (d += "-01"), d += " 00:00", d = d.replace(/-/g, "/"), a = new Date(d), isNaN(Number(a))) return n;
311
+ if (d.length === 7 && (d += "-01"), d += " 00:00", d = d.replace(/-/g, "/"), s = new Date(d), isNaN(Number(s))) return n;
237
312
  }
238
313
  let e = "";
239
- if (o && window.$ && (e = $.datepicker.formatDate(o, a)), s && typeof t == "string" && t.length > 10 || s && t instanceof Date) {
314
+ if (o && window.$ && (e = $.datepicker.formatDate(o, s)), a && typeof t == "string" && t.length > 10 || a && t instanceof Date) {
240
315
  let d = "";
241
316
  if (t instanceof Date)
242
317
  d = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
243
318
  hour12: !1,
244
319
  hour: "numeric",
245
- minute: s >= 2 ? "numeric" : void 0,
246
- second: s >= 3 ? "numeric" : void 0
320
+ minute: a >= 2 ? "numeric" : void 0,
321
+ second: a >= 3 ? "numeric" : void 0
247
322
  });
248
323
  else
249
- switch (s) {
324
+ switch (a) {
250
325
  case 1:
251
326
  d = t.substring(11, 13);
252
327
  break;
@@ -261,15 +336,15 @@ function B(t, s = 2, o, n = c.L.Not_date) {
261
336
  }
262
337
  return e = e.trim(), e;
263
338
  }
264
- function X(t, s = c.L.Not_date) {
339
+ function X(t, a = c.L.Not_date) {
265
340
  if (!t)
266
- return s;
341
+ return a;
267
342
  if (t.match(/\d\d\d\d-\d\d-\d\d/))
268
343
  return t;
269
- const o = c.state.dateFormat.toLowerCase(), n = t.split(/\W/), a = o.split(/\W/);
270
- let e = "", d = "", r = "";
271
- a.forEach((i, l) => {
272
- switch (i) {
344
+ const o = c.state.dateFormat.toLowerCase(), n = t.split(/\W/), s = o.split(/\W/);
345
+ let e = "", d = "", i = "";
346
+ s.forEach((r, l) => {
347
+ switch (r) {
273
348
  case "d":
274
349
  e = n[l];
275
350
  break;
@@ -277,14 +352,14 @@ function X(t, s = c.L.Not_date) {
277
352
  d = n[l];
278
353
  break;
279
354
  case "y":
280
- r = n[l];
355
+ i = n[l];
281
356
  break;
282
357
  }
283
358
  });
284
- let f = r + "-" + d + "-" + e;
285
- return f.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + f), f = Se((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), f;
359
+ let m = i + "-" + d + "-" + e;
360
+ return m.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + m), m = ve((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), m;
286
361
  }
287
- const _e = { class: "top-avatar" }, ke = ["src", "title"], Te = ["title"], Me = /* @__PURE__ */ w({
362
+ const $e = { class: "top-avatar" }, Se = ["src", "title"], _e = ["title"], ke = /* @__PURE__ */ v({
288
363
  __name: "avatar",
289
364
  props: {
290
365
  size: { default: 64 },
@@ -298,46 +373,46 @@ const _e = { class: "top-avatar" }, ke = ["src", "title"], Te = ["title"], Me =
298
373
  }) }
299
374
  },
300
375
  setup(t) {
301
- q((a) => ({
302
- "2d3ea0e8": a.size + "px"
376
+ G((s) => ({
377
+ "4926eb34": s.size + "px"
303
378
  }));
304
- const s = t, o = h(() => {
305
- var a, e;
306
- if (s.isOnline)
307
- return (a = s.i18n) == null ? void 0 : a.Online;
308
- if (s.lastActiveTime)
309
- return ((e = s.i18n) == null ? void 0 : e.LastSeen) + ": " + B(s.lastActiveTime, 2);
310
- }), n = h(() => s.nickname ? s.nickname + (o.value ? `
379
+ const a = t, o = b(() => {
380
+ var s, e;
381
+ if (a.isOnline)
382
+ return (s = a.i18n) == null ? void 0 : s.Online;
383
+ if (a.lastActiveTime)
384
+ return ((e = a.i18n) == null ? void 0 : e.LastSeen) + ": " + B(a.lastActiveTime, 2);
385
+ }), n = b(() => a.nickname ? a.nickname + (o.value ? `
311
386
  ${o.value}` : "") : o.value);
312
- return (a, e) => (p(), m("div", _e, [
387
+ return (s, e) => (u(), f("div", $e, [
313
388
  S("img", {
314
389
  class: "top-avatar_image",
315
- src: a.image,
390
+ src: s.image,
316
391
  title: n.value,
317
392
  alt: ""
318
- }, null, 8, ke),
319
- a.isOnline ? (p(), m("div", {
393
+ }, null, 8, Se),
394
+ s.isOnline ? (u(), f("div", {
320
395
  key: 0,
321
396
  class: "top-avatar_status",
322
397
  title: o.value
323
- }, null, 8, Te)) : g("", !0)
398
+ }, null, 8, _e)) : g("", !0)
324
399
  ]));
325
400
  }
326
- }), Ve = {
401
+ }), Me = {
327
402
  "top-avatar": "top-avatar",
328
403
  "top-avatar_image": "top-avatar_image",
329
404
  "top-avatar_status": "top-avatar_status"
330
- }, v = (t, s) => {
405
+ }, y = (t, a) => {
331
406
  const o = t.__vccOpts || t;
332
- for (const [n, a] of s)
333
- o[n] = a;
407
+ for (const [n, s] of a)
408
+ o[n] = s;
334
409
  return o;
335
- }, We = {
336
- $style: Ve
337
- }, Be = /* @__PURE__ */ v(Me, [["__cssModules", We]]), Le = {
410
+ }, Te = {
411
+ $style: Me
412
+ }, Ve = /* @__PURE__ */ y(ke, [["__cssModules", Te]]), We = {
338
413
  key: 0,
339
414
  class: "top-ellipsis"
340
- }, ze = /* @__PURE__ */ w({
415
+ }, Be = /* @__PURE__ */ v({
341
416
  __name: "button",
342
417
  props: {
343
418
  color: { default: "blue" },
@@ -354,44 +429,44 @@ ${o.value}` : "") : o.value);
354
429
  isProgress: { type: Boolean }
355
430
  },
356
431
  setup(t) {
357
- const s = t, o = h(() => s.href ? "a" : "button"), n = h(() => s.isSubmit ? "submit" : void 0);
358
- return (a, e) => (p(), T(te(o.value), {
359
- class: y({
360
- "top-active": a.isActive,
361
- "top-disabled": a.disabled,
362
- "top-forms-focusable": !a.disabled,
432
+ const a = t, o = b(() => a.href ? "a" : "button"), n = b(() => a.isSubmit ? "submit" : void 0);
433
+ return (s, e) => (u(), M(x(o.value), {
434
+ class: w({
435
+ "top-active": s.isActive,
436
+ "top-disabled": s.disabled,
437
+ "top-forms-focusable": !s.disabled,
363
438
  "top-button": !0,
364
- "top-button-progress": a.isProgress,
365
- [`top-size_${a.size}`]: !!a.size,
366
- [`top-color_${a.color}`]: !0,
367
- [`top-style_${a.styling}`]: !!a.styling,
368
- "top-button-withoutText": !a.$slots.default
439
+ "top-button-progress": s.isProgress,
440
+ [`top-size_${s.size}`]: !!s.size,
441
+ [`top-color_${s.color}`]: !0,
442
+ [`top-style_${s.styling}`]: !!s.styling,
443
+ "top-button-withoutText": !s.$slots.default
369
444
  }),
370
- name: a.name,
371
- title: a.title,
372
- href: a.href,
445
+ name: s.name,
446
+ title: s.title,
447
+ href: s.href,
373
448
  type: n.value,
374
- "data-top-icon": a.icon || void 0,
375
- "data-top-icon2": a.icon2 || void 0,
376
- disabled: a.disabled || void 0,
377
- inProgress: a.isProgress
449
+ "data-top-icon": s.icon || void 0,
450
+ "data-top-icon2": s.icon2 || void 0,
451
+ disabled: s.disabled || void 0,
452
+ inProgress: s.isProgress
378
453
  }, {
379
454
  default: L(() => [
380
- a.$slots.default ? (p(), m("span", Le, [
381
- k(a.$slots, "default", {}, () => [
382
- oe(V(a.icon ? "" : "Button"), 1)
455
+ s.$slots.default ? (u(), f("span", We, [
456
+ k(s.$slots, "default", {}, () => [
457
+ ee(V(s.icon ? "" : "Button"), 1)
383
458
  ])
384
459
  ])) : g("", !0),
385
- k(a.$slots, "html")
460
+ k(s.$slots, "html")
386
461
  ]),
387
462
  _: 3
388
463
  }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
389
464
  }
390
- }), De = "_progress_1f1nw_1", Ee = {
465
+ }), Le = "_progress_1f1nw_1", Ee = {
391
466
  "top-button": "top-button",
392
467
  "top-active": "top-active",
393
468
  "top-button-progress": "top-button-progress",
394
- progress: De,
469
+ progress: Le,
395
470
  "top-button-withoutText": "top-button-withoutText",
396
471
  "top-color_blue": "top-color_blue",
397
472
  "top-color_green": "top-color_green",
@@ -404,28 +479,28 @@ ${o.value}` : "") : o.value);
404
479
  "top-style_transparent": "top-style_transparent",
405
480
  "top-size_l": "top-size_l",
406
481
  "top-size_xl": "top-size_xl"
407
- }, Ce = {
482
+ }, ze = {
408
483
  $style: Ee
409
- }, Ae = /* @__PURE__ */ v(ze, [["__cssModules", Ce]]), Ne = { class: "top-forms-optionLabel" }, Pe = /* @__PURE__ */ w({
484
+ }, De = /* @__PURE__ */ y(Be, [["__cssModules", ze]]), Pe = { class: "top-forms-optionLabel" }, Ae = /* @__PURE__ */ v({
410
485
  __name: "controlLabel",
411
486
  props: {
412
487
  description: {},
413
488
  disabled: { type: Boolean }
414
489
  },
415
490
  setup(t) {
416
- return (s, o) => (p(), m("div", Ne, [
491
+ return (a, o) => (u(), f("div", Pe, [
417
492
  S("div", {
418
- class: y({
493
+ class: w({
419
494
  "top-forms-optionLabel_title": !0,
420
- "top-forms-optionLabel_title-disabled": s.disabled
495
+ "top-forms-optionLabel_title-disabled": a.disabled
421
496
  })
422
497
  }, [
423
- k(s.$slots, "default")
498
+ k(a.$slots, "default")
424
499
  ], 2),
425
- s.description ? (p(), m("div", {
500
+ a.description ? (u(), f("div", {
426
501
  key: 0,
427
- class: y(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": s.disabled }])
428
- }, V(s.description), 3)) : g("", !0)
502
+ class: w(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": a.disabled }])
503
+ }, V(a.description), 3)) : g("", !0)
429
504
  ]));
430
505
  }
431
506
  }), Re = {
@@ -434,11 +509,11 @@ ${o.value}` : "") : o.value);
434
509
  "top-forms-optionLabel_title-disabled": "top-forms-optionLabel_title-disabled",
435
510
  "top-forms-optionLabel_description": "top-forms-optionLabel_description",
436
511
  "top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
437
- }, Oe = {
512
+ }, Ce = {
438
513
  $style: Re
439
- }, C = /* @__PURE__ */ v(Pe, [["__cssModules", Oe]]), He = ["name", "value", "indeterminate", "disabled"], Ie = /* @__PURE__ */ w({
514
+ }, P = /* @__PURE__ */ y(Ae, [["__cssModules", Ce]]), Ne = ["name", "value", "indeterminate", "disabled"], Oe = /* @__PURE__ */ v({
440
515
  __name: "checkbox",
441
- props: /* @__PURE__ */ R({
516
+ props: /* @__PURE__ */ N({
442
517
  modelValue: { type: [Boolean, Array, Set] },
443
518
  name: {},
444
519
  value: {},
@@ -452,9 +527,9 @@ ${o.value}` : "") : o.value);
452
527
  }),
453
528
  emits: ["update:modelValue"],
454
529
  setup(t) {
455
- const s = G(t, "modelValue");
456
- return (o, n) => (p(), m("label", {
457
- class: y({
530
+ const a = K(t, "modelValue");
531
+ return (o, n) => (u(), f("label", {
532
+ class: w({
458
533
  "top-forms-optionWrapper": !0,
459
534
  "top-checkbox": !0,
460
535
  ["top-checkbox_" + o.name]: !!o.name,
@@ -464,21 +539,21 @@ ${o.value}` : "") : o.value);
464
539
  }, [
465
540
  W(S("input", {
466
541
  type: "checkbox",
467
- class: y({
542
+ class: w({
468
543
  "top-forms-focusable": !o.disabled,
469
544
  "top-forms-option": !0,
470
545
  "top-checkbox_input": !0,
471
546
  "top-error": o.isError && !o.disabled
472
547
  }),
473
548
  name: o.name,
474
- "onUpdate:modelValue": n[0] || (n[0] = (a) => s.value = a),
549
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => a.value = s),
475
550
  value: o.value,
476
551
  indeterminate: o.indeterminate,
477
552
  disabled: o.disabled
478
- }, null, 10, He), [
479
- [Q, s.value]
553
+ }, null, 10, Ne), [
554
+ [Q, a.value]
480
555
  ]),
481
- o.$slots.default ? (p(), T(C, {
556
+ o.$slots.default ? (u(), M(P, {
482
557
  key: 0,
483
558
  description: o.description,
484
559
  disabled: o.disabled
@@ -490,40 +565,40 @@ ${o.value}` : "") : o.value);
490
565
  }, 8, ["description", "disabled"])) : g("", !0)
491
566
  ], 2));
492
567
  }
493
- }), Ue = {
568
+ }), He = {
494
569
  "top-checkbox": "top-checkbox",
495
570
  "top-checkbox_input": "top-checkbox_input",
496
571
  "top-error": "top-error"
497
- }, Fe = {
498
- $style: Ue
499
- }, Xe = /* @__PURE__ */ v(Ie, [["__cssModules", Fe]]), Ye = ["title"], Ke = /* @__PURE__ */ w({
572
+ }, Ie = {
573
+ $style: He
574
+ }, Fe = /* @__PURE__ */ y(Oe, [["__cssModules", Ie]]), Ue = ["title"], Xe = /* @__PURE__ */ v({
500
575
  __name: "hint",
501
576
  props: {
502
577
  hint: {}
503
578
  },
504
579
  setup(t) {
505
- return (s, o) => (p(), m("span", {
580
+ return (a, o) => (u(), f("span", {
506
581
  class: "top-hint",
507
582
  "data-top-icon": "",
508
- title: s.hint
509
- }, null, 8, Ye));
583
+ title: a.hint
584
+ }, null, 8, Ue));
510
585
  }
511
- }), qe = {
586
+ }), Ye = {
512
587
  "top-hint": "top-hint"
513
- }, Ge = {
514
- $style: qe
515
- }, Z = /* @__PURE__ */ v(Ke, [["__cssModules", Ge]]), Qe = {
588
+ }, qe = {
589
+ $style: Ye
590
+ }, Z = /* @__PURE__ */ y(Xe, [["__cssModules", qe]]), Ge = {
516
591
  "top-loadbar": "top-loadbar"
517
- }, Je = {}, Ze = { class: "top-loadbar" };
518
- function je(t, s) {
519
- return p(), m("div", Ze);
592
+ }, Ke = {}, Qe = { class: "top-loadbar" };
593
+ function Je(t, a) {
594
+ return u(), f("div", Qe);
520
595
  }
521
- const xe = {
522
- $style: Qe
523
- }, j = /* @__PURE__ */ v(Je, [["render", je], ["__cssModules", xe]]), et = ["data-top-icon", "data-top-icon2"], tt = ["name", "title", "placeholder", "disabled", "readonly"], ot = {
596
+ const Ze = {
597
+ $style: Ge
598
+ }, j = /* @__PURE__ */ y(Ke, [["render", Je], ["__cssModules", Ze]]), je = ["data-top-icon", "data-top-icon2"], xe = ["name", "title", "placeholder", "disabled", "readonly"], et = {
524
599
  key: 2,
525
600
  class: "top-formsCaption"
526
- }, st = /* @__PURE__ */ w({
601
+ }, tt = /* @__PURE__ */ v({
527
602
  inheritAttrs: !1,
528
603
  __name: "input",
529
604
  props: {
@@ -542,72 +617,72 @@ const xe = {
542
617
  captionType: { default: "" }
543
618
  },
544
619
  emits: ["update:modelValue"],
545
- setup(t, { emit: s }) {
546
- const o = t, n = s, a = h({
620
+ setup(t, { emit: a }) {
621
+ const o = t, n = a, s = b({
547
622
  get() {
548
623
  return o.modelValue;
549
624
  },
550
- set(r) {
551
- n("update:modelValue", r);
625
+ set(i) {
626
+ n("update:modelValue", i);
552
627
  }
553
- }), e = h(() => o.addCleaner && !o.title || o.captionType !== "" ? "" : o.title), d = (r) => {
554
- o.modelValue && r.stopPropagation(), n("update:modelValue", "");
628
+ }), e = b(() => o.addCleaner && !o.title || o.captionType !== "" ? "" : o.title), d = (i) => {
629
+ o.modelValue && i.stopPropagation(), n("update:modelValue", "");
555
630
  };
556
- return (r, f) => (p(), m("label", {
557
- class: y({
631
+ return (i, m) => (u(), f("label", {
632
+ class: w({
558
633
  "top-input": !0,
559
- ["top-size_" + r.size]: !0,
560
- "top-disabled": r.disabled,
561
- ["top-input-" + r.modificator]: !!r.modificator,
562
- "top-input-withCleaner": r.addCleaner && a.value && a.value !== "0000-00-00",
563
- "top-formsCaptionWrapper": r.captionType !== "",
564
- "top-formsCaptionWrapper-always": r.captionType === "top"
634
+ ["top-size_" + i.size]: !0,
635
+ "top-disabled": i.disabled,
636
+ ["top-input-" + i.modificator]: !!i.modificator,
637
+ "top-input-withCleaner": i.addCleaner && s.value && s.value !== "0000-00-00",
638
+ "top-formsCaptionWrapper": i.captionType !== "",
639
+ "top-formsCaptionWrapper-always": i.captionType === "top"
565
640
  }),
566
- "data-top-icon": r.icon,
567
- "data-top-icon2": r.icon2
641
+ "data-top-icon": i.icon,
642
+ "data-top-icon2": i.icon2
568
643
  }, [
569
- r.isLoading ? (p(), T(j, { key: 0 })) : g("", !0),
570
- W(S("input", E({
644
+ i.isLoading ? (u(), M(j, { key: 0 })) : g("", !0),
645
+ W(S("input", D({
571
646
  type: "text",
572
647
  class: {
573
648
  "top-input_input": !0,
574
- ["top-input_input-" + r.modificator]: !!r.modificator,
575
- "top-forms-focusable": !r.disabled,
576
- "top-error": r.isError
649
+ ["top-input_input-" + i.modificator]: !!i.modificator,
650
+ "top-forms-focusable": !i.disabled,
651
+ "top-error": i.isError
577
652
  },
578
653
  autocomplete: "off_always",
579
- name: r.name,
580
- "onUpdate:modelValue": f[0] || (f[0] = (i) => a.value = i),
581
- title: r.title,
654
+ name: i.name,
655
+ "onUpdate:modelValue": m[0] || (m[0] = (r) => s.value = r),
656
+ title: i.title,
582
657
  placeholder: e.value,
583
- disabled: r.disabled,
584
- readonly: r.readonly,
585
- onKeydown: f[1] || (f[1] = se((i) => (r.addCleaner || !!r.$slots.btn) && d(i), ["esc"]))
586
- }, r.$attrs), null, 16, tt), [
587
- [J, a.value]
658
+ disabled: i.disabled,
659
+ readonly: i.readonly,
660
+ onKeydown: m[1] || (m[1] = te((r) => (i.addCleaner || !!i.$slots.btn) && d(r), ["esc"]))
661
+ }, i.$attrs), null, 16, xe), [
662
+ [J, s.value]
588
663
  ]),
589
- r.addCleaner && a.value && a.value !== "0000-00-00" ? (p(), m("span", {
664
+ i.addCleaner && s.value && s.value !== "0000-00-00" ? (u(), f("span", {
590
665
  key: 1,
591
666
  class: "top-input_cleaner",
592
667
  "data-top-icon": "",
593
- onClick: ae(d, ["prevent"])
668
+ onClick: oe(d, ["prevent"])
594
669
  })) : g("", !0),
595
- r.captionType !== "" ? (p(), m("span", ot, V(r.title), 1)) : g("", !0),
596
- k(r.$slots, "default")
597
- ], 10, et));
670
+ i.captionType !== "" ? (u(), f("span", et, V(i.title), 1)) : g("", !0),
671
+ k(i.$slots, "default")
672
+ ], 10, je));
598
673
  }
599
- }), at = {
674
+ }), ot = {
600
675
  "top-input": "top-input",
601
676
  "top-input_input": "top-input_input",
602
677
  "top-input-withCleaner": "top-input-withCleaner",
603
678
  "top-input_cleaner": "top-input_cleaner",
604
679
  "top-loadbar": "top-loadbar"
605
- }, nt = {
606
- $style: at
607
- }, O = /* @__PURE__ */ v(st, [["__cssModules", nt]]), it = ["modelValue"], rt = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
680
+ }, st = {
681
+ $style: ot
682
+ }, O = /* @__PURE__ */ y(tt, [["__cssModules", st]]), at = ["modelValue"], nt = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
608
683
  let Y = (t) => {
609
684
  };
610
- const lt = /* @__PURE__ */ w({
685
+ const it = /* @__PURE__ */ v({
611
686
  __name: "inputDate",
612
687
  props: {
613
688
  modelValue: {},
@@ -625,14 +700,14 @@ const lt = /* @__PURE__ */ w({
625
700
  captionType: {}
626
701
  },
627
702
  emits: ["update:modelValue"],
628
- setup(t, { emit: s }) {
629
- const o = t, n = s;
630
- ne(() => {
703
+ setup(t, { emit: a }) {
704
+ const o = t, n = a;
705
+ se(() => {
631
706
  e && e.datepicker("destroy");
632
707
  });
633
- const a = ie();
708
+ const s = ae();
634
709
  let e;
635
- const d = h({
710
+ const d = b({
636
711
  get() {
637
712
  return B(o.modelValue, 2, void 0, "0000-00-00");
638
713
  },
@@ -640,69 +715,69 @@ const lt = /* @__PURE__ */ w({
640
715
  l = X(l, "0000-00-00"), n("update:modelValue", l);
641
716
  }
642
717
  });
643
- let r = (l) => {
718
+ let i = (l) => {
644
719
  Y(l);
645
- }, f = (l) => {
646
- const u = X(l.target.value), b = B(u);
647
- if (!b || b === c.L.Not_date || l.target.value !== b) {
720
+ }, m = (l) => {
721
+ const p = X(l.target.value), h = B(p);
722
+ if (!h || h === c.L.Not_date || l.target.value !== h) {
648
723
  l.target.value = d.value;
649
724
  return;
650
725
  }
651
726
  d.value = l.target.value;
652
727
  };
653
- async function i(l) {
654
- const u = await import("./datepicker-Dmeojg66.es.js");
655
- Y = u.oninput, e = u.connectDatepicker(l.target, {
656
- onSelect: () => f(l)
728
+ async function r(l) {
729
+ const p = await import("./datepicker-CtcFJYEp.es.js");
730
+ Y = p.oninput, e = p.connectDatepicker(l.target, {
731
+ onSelect: () => m(l)
657
732
  }), e && e.datepicker("show");
658
733
  }
659
- return (l, u) => A(rt) ? (p(), T(O, E({ key: 0 }, l.$props, {
734
+ return (l, p) => A(nt) ? (u(), M(O, D({ key: 0 }, l.$props, {
660
735
  modelValue: d.value,
661
736
  readonly: "",
662
- onClick: u[1] || (u[1] = (b) => a.value.showPicker())
737
+ onClick: p[1] || (p[1] = (h) => s.value.showPicker())
663
738
  }), {
664
739
  default: L(() => [
665
740
  S("input", {
666
741
  ref_key: "el",
667
- ref: a,
742
+ ref: s,
668
743
  type: "date",
669
744
  class: "top-input_input-date",
670
745
  modelValue: l.modelValue,
671
- onChange: u[0] || (u[0] = (b) => d.value = b.target.value),
746
+ onChange: p[0] || (p[0] = (h) => d.value = h.target.value),
672
747
  tabindex: "-1"
673
- }, null, 40, it)
748
+ }, null, 40, at)
674
749
  ]),
675
750
  _: 1
676
- }, 16, ["modelValue"])) : (p(), T(O, E({ key: 1 }, l.$props, {
751
+ }, 16, ["modelValue"])) : (u(), M(O, D({ key: 1 }, l.$props, {
677
752
  modelValue: d.value,
678
- "onUpdate:modelValue": u[2] || (u[2] = (b) => b === "" ? d.value = "" : ""),
679
- onInput: A(r),
680
- onFocusOnce: i,
681
- onChange: A(f),
753
+ "onUpdate:modelValue": p[2] || (p[2] = (h) => h === "" ? d.value = "" : ""),
754
+ onInput: A(i),
755
+ onFocusOnce: r,
756
+ onChange: A(m),
682
757
  modificator: "datepicker"
683
758
  }), null, 16, ["modelValue", "onInput", "onChange"]));
684
759
  }
685
- }), dt = {
760
+ }), rt = {
686
761
  "top-input-datepicker": "top-input-datepicker",
687
762
  "top-input_input-date": "top-input_input-date"
688
- }, pt = {
689
- $style: dt
690
- }, ut = /* @__PURE__ */ v(lt, [["__cssModules", pt]]), ct = { class: "top-inputRange" }, mt = /* @__PURE__ */ S("span", { class: "top-inputRange_dash" }, " — ", -1), ft = /* @__PURE__ */ w({
763
+ }, lt = {
764
+ $style: rt
765
+ }, dt = /* @__PURE__ */ y(it, [["__cssModules", lt]]), pt = { class: "top-inputRange" }, ut = /* @__PURE__ */ S("span", { class: "top-inputRange_dash" }, " — ", -1), ct = /* @__PURE__ */ v({
691
766
  __name: "inputRange",
692
767
  setup(t) {
693
- return (s, o) => (p(), m("div", ct, [
694
- k(s.$slots, "from"),
695
- mt,
696
- k(s.$slots, "to")
768
+ return (a, o) => (u(), f("div", pt, [
769
+ k(a.$slots, "from"),
770
+ ut,
771
+ k(a.$slots, "to")
697
772
  ]));
698
773
  }
699
- }), bt = {
774
+ }), mt = {
700
775
  "top-inputRange": "top-inputRange",
701
776
  "top-inputRange_dash": "top-inputRange_dash",
702
777
  "top-input": "top-input"
703
- }, ht = {
704
- $style: bt
705
- }, gt = /* @__PURE__ */ v(ft, [["__cssModules", ht]]), yt = ["name", "value", "disabled"], vt = /* @__PURE__ */ w({
778
+ }, ft = {
779
+ $style: mt
780
+ }, ht = /* @__PURE__ */ y(ct, [["__cssModules", ft]]), bt = ["name", "value", "disabled"], gt = /* @__PURE__ */ v({
706
781
  __name: "radio",
707
782
  props: {
708
783
  modelValue: {},
@@ -713,8 +788,8 @@ const lt = /* @__PURE__ */ w({
713
788
  isError: { type: Boolean }
714
789
  },
715
790
  emits: ["update:modelValue"],
716
- setup(t, { emit: s }) {
717
- const o = t, n = s, a = h({
791
+ setup(t, { emit: a }) {
792
+ const o = t, n = a, s = b({
718
793
  get() {
719
794
  return o.modelValue;
720
795
  },
@@ -722,8 +797,8 @@ const lt = /* @__PURE__ */ w({
722
797
  n("update:modelValue", e);
723
798
  }
724
799
  });
725
- return (e, d) => (p(), m("label", {
726
- class: y({
800
+ return (e, d) => (u(), f("label", {
801
+ class: w({
727
802
  "top-forms-optionWrapper": !0,
728
803
  "top-radio": !0,
729
804
  ["top-radio_" + e.name]: e.name !== "",
@@ -733,20 +808,20 @@ const lt = /* @__PURE__ */ w({
733
808
  }, [
734
809
  W(S("input", {
735
810
  type: "radio",
736
- class: y({
811
+ class: w({
737
812
  "top-forms-focusable": !e.disabled,
738
813
  "top-forms-option": !0,
739
814
  "top-radio_input": !0,
740
815
  "top-error": e.isError && !e.disabled
741
816
  }),
742
- "onUpdate:modelValue": d[0] || (d[0] = (r) => a.value = r),
817
+ "onUpdate:modelValue": d[0] || (d[0] = (i) => s.value = i),
743
818
  name: e.name,
744
819
  value: e.value,
745
820
  disabled: e.disabled
746
- }, null, 10, yt), [
747
- [re, a.value]
821
+ }, null, 10, bt), [
822
+ [ne, s.value]
748
823
  ]),
749
- e.$slots.default ? (p(), T(C, {
824
+ e.$slots.default ? (u(), M(P, {
750
825
  key: 0,
751
826
  description: e.description,
752
827
  disabled: e.disabled
@@ -762,9 +837,9 @@ const lt = /* @__PURE__ */ w({
762
837
  "top-radio": "top-radio",
763
838
  "top-radio_input": "top-radio_input",
764
839
  "top-error": "top-error"
765
- }, $t = {
840
+ }, yt = {
766
841
  $style: wt
767
- }, St = /* @__PURE__ */ v(vt, [["__cssModules", $t]]), _t = ["name", "value", "disabled"], kt = /* @__PURE__ */ w({
842
+ }, vt = /* @__PURE__ */ y(gt, [["__cssModules", yt]]), $t = ["name", "value", "disabled"], St = /* @__PURE__ */ v({
768
843
  __name: "switcher",
769
844
  props: {
770
845
  modelValue: { type: [Boolean, Array, Set] },
@@ -775,8 +850,8 @@ const lt = /* @__PURE__ */ w({
775
850
  isError: { type: Boolean }
776
851
  },
777
852
  emits: ["update:modelValue"],
778
- setup(t, { emit: s }) {
779
- const o = t, n = s, a = h({
853
+ setup(t, { emit: a }) {
854
+ const o = t, n = a, s = b({
780
855
  get() {
781
856
  return o.modelValue;
782
857
  },
@@ -784,8 +859,8 @@ const lt = /* @__PURE__ */ w({
784
859
  n("update:modelValue", e);
785
860
  }
786
861
  });
787
- return (e, d) => (p(), m("label", {
788
- class: y({
862
+ return (e, d) => (u(), f("label", {
863
+ class: w({
789
864
  "top-forms-optionWrapper": !0,
790
865
  "top-checkboxSwitcher": !0,
791
866
  "top-disabled": e.disabled,
@@ -794,20 +869,20 @@ const lt = /* @__PURE__ */ w({
794
869
  }, [
795
870
  W(S("input", {
796
871
  type: "checkbox",
797
- class: y({
872
+ class: w({
798
873
  "top-forms-focusable": !e.disabled,
799
874
  "top-forms-option": !0,
800
875
  "top-checkboxSwitcher_input": !0,
801
876
  "top-error": e.isError && !e.disabled
802
877
  }),
803
- "onUpdate:modelValue": d[0] || (d[0] = (r) => a.value = r),
878
+ "onUpdate:modelValue": d[0] || (d[0] = (i) => s.value = i),
804
879
  name: e.name,
805
880
  value: e.value,
806
881
  disabled: e.disabled
807
- }, null, 10, _t), [
808
- [Q, a.value]
882
+ }, null, 10, $t), [
883
+ [Q, s.value]
809
884
  ]),
810
- e.$slots.default ? (p(), T(C, {
885
+ e.$slots.default ? (u(), M(P, {
811
886
  key: 0,
812
887
  description: e.description,
813
888
  disabled: e.disabled
@@ -819,16 +894,16 @@ const lt = /* @__PURE__ */ w({
819
894
  }, 8, ["description", "disabled"])) : g("", !0)
820
895
  ], 2));
821
896
  }
822
- }), Tt = {
897
+ }), _t = {
823
898
  "top-checkboxSwitcher": "top-checkboxSwitcher",
824
899
  "top-checkboxSwitcher_input": "top-checkboxSwitcher_input",
825
900
  "top-error": "top-error"
826
- }, Mt = {
827
- $style: Tt
828
- }, Vt = /* @__PURE__ */ v(kt, [["__cssModules", Mt]]), Wt = ["name", "placeholder", "disabled", "readonly", "rows"], Bt = {
901
+ }, kt = {
902
+ $style: _t
903
+ }, Mt = /* @__PURE__ */ y(St, [["__cssModules", kt]]), Tt = ["name", "placeholder", "disabled", "readonly", "rows"], Vt = {
829
904
  key: 0,
830
905
  class: "top-textarea_pseudoContent"
831
- }, Lt = /* @__PURE__ */ w({
906
+ }, Wt = /* @__PURE__ */ v({
832
907
  inheritAttrs: !1,
833
908
  __name: "textarea",
834
909
  props: {
@@ -844,11 +919,11 @@ const lt = /* @__PURE__ */ w({
844
919
  hint: {}
845
920
  },
846
921
  emits: ["update:modelValue"],
847
- setup(t, { emit: s }) {
848
- q((e) => ({
922
+ setup(t, { emit: a }) {
923
+ G((e) => ({
849
924
  bb7a0c5c: e.minHeight + "px"
850
925
  }));
851
- const o = t, n = s, a = h({
926
+ const o = t, n = a, s = b({
852
927
  get() {
853
928
  return o.modelValue;
854
929
  },
@@ -857,15 +932,15 @@ const lt = /* @__PURE__ */ w({
857
932
  }
858
933
  });
859
934
  return (e, d) => {
860
- const r = le("top-tooltip");
861
- return p(), m("label", {
862
- class: y({
935
+ const i = ie("top-tooltip");
936
+ return u(), f("label", {
937
+ class: w({
863
938
  "top-textarea": !0,
864
939
  ["top-textarea-" + e.name]: e.name,
865
940
  "top-disabled": e.disabled
866
941
  })
867
942
  }, [
868
- W(S("textarea", E({
943
+ W(S("textarea", D({
869
944
  type: "text",
870
945
  class: {
871
946
  "top-forms-focusable": !e.disabled,
@@ -880,35 +955,35 @@ const lt = /* @__PURE__ */ w({
880
955
  readonly: e.readonly,
881
956
  rows: e.expandable ? void 0 : e.rows
882
957
  }, e.$attrs, {
883
- "onUpdate:modelValue": d[0] || (d[0] = (f) => a.value = f)
884
- }), null, 16, Wt), [
885
- [J, a.value]
958
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => s.value = m)
959
+ }), null, 16, Tt), [
960
+ [J, s.value]
886
961
  ]),
887
- e.expandable ? (p(), m("div", Bt, V(a.value + " "), 1)) : g("", !0),
888
- e.hint ? W((p(), T(Z, {
962
+ e.expandable ? (u(), f("div", Vt, V(s.value + " "), 1)) : g("", !0),
963
+ e.hint ? W((u(), M(Z, {
889
964
  key: 1,
890
965
  class: "top-textarea_hint",
891
966
  hint: e.hint
892
967
  }, null, 8, ["hint"])), [
893
- [r]
968
+ [i]
894
969
  ]) : g("", !0)
895
970
  ], 2);
896
971
  };
897
972
  }
898
- }), zt = {
973
+ }), Bt = {
899
974
  "top-textarea": "top-textarea",
900
975
  "top-textarea_textarea": "top-textarea_textarea",
901
976
  "top-textarea_textarea-expandable": "top-textarea_textarea-expandable",
902
977
  "top-textarea_pseudoContent": "top-textarea_pseudoContent",
903
978
  "top-textarea_hint": "top-textarea_hint"
904
- }, Dt = {
905
- $style: zt
906
- }, Et = /* @__PURE__ */ v(Lt, [["__cssModules", Dt]]), Ct = ["data-value", "data-top-icon", "data-top-icon2"], At = ["name", "disabled"], Nt = ["label", "disabled"], Pt = ["value", "selected", "disabled"], Rt = ["value", "selected", "disabled"], Ot = {
979
+ }, Lt = {
980
+ $style: Bt
981
+ }, Et = /* @__PURE__ */ y(Wt, [["__cssModules", Lt]]), zt = ["data-value", "data-top-icon", "data-top-icon2"], Dt = ["name", "disabled"], Pt = ["label", "disabled"], At = ["value", "selected", "disabled"], Rt = ["value", "selected", "disabled"], Ct = {
907
982
  key: 1,
908
983
  class: "top-formsCaption"
909
- }, Ht = /* @__PURE__ */ w({
984
+ }, Nt = /* @__PURE__ */ v({
910
985
  __name: "select",
911
- props: /* @__PURE__ */ R({
986
+ props: /* @__PURE__ */ N({
912
987
  modelValue: {},
913
988
  options: {},
914
989
  name: {},
@@ -924,149 +999,149 @@ const lt = /* @__PURE__ */ w({
924
999
  },
925
1000
  modelModifiers: {}
926
1001
  }),
927
- emits: /* @__PURE__ */ R(["update:modelValue"], ["update:modelValue"]),
928
- setup(t, { emit: s }) {
929
- const o = t, n = G(t, "modelValue"), a = h(() => {
930
- const i = /* @__PURE__ */ new Map();
931
- return o.options.forEach((l, u) => {
932
- if (typeof l == "string" && (l = d(u, l)), l.children) {
933
- const b = /* @__PURE__ */ new Map();
934
- l.children.forEach((_, z) => {
935
- typeof _ == "string" && (_ = d(z, _)), b.set(_.value, _);
936
- }), l = { ...l }, l.children = b, i.set(l.value, l);
1002
+ emits: /* @__PURE__ */ N(["update:modelValue"], ["update:modelValue"]),
1003
+ setup(t, { emit: a }) {
1004
+ const o = t, n = K(t, "modelValue"), s = b(() => {
1005
+ const r = /* @__PURE__ */ new Map();
1006
+ return o.options.forEach((l, p) => {
1007
+ if (typeof l == "string" && (l = d(p, l)), l.children) {
1008
+ const h = /* @__PURE__ */ new Map();
1009
+ l.children.forEach((_, E) => {
1010
+ typeof _ == "string" && (_ = d(E, _)), h.set(_.value, _);
1011
+ }), l = { ...l }, l.children = h, r.set(l.value, l);
937
1012
  } else
938
- i.set(l.value, l);
939
- }), i;
940
- }), e = h(() => {
941
- const i = /* @__PURE__ */ new Map();
942
- return a.value.forEach((l) => {
1013
+ r.set(l.value, l);
1014
+ }), r;
1015
+ }), e = b(() => {
1016
+ const r = /* @__PURE__ */ new Map();
1017
+ return s.value.forEach((l) => {
943
1018
  if (!l.disabled) {
944
1019
  if (l.children) {
945
- l.children.forEach((u) => {
946
- u.disabled || i.set(u.value, u);
1020
+ l.children.forEach((p) => {
1021
+ p.disabled || r.set(p.value, p);
947
1022
  });
948
1023
  return;
949
1024
  }
950
- i.set(l.value, l);
1025
+ r.set(l.value, l);
951
1026
  }
952
- }), i;
953
- }), d = (i, l) => ({
954
- value: i,
1027
+ }), r;
1028
+ }), d = (r, l) => ({
1029
+ value: r,
955
1030
  title: l
956
1031
  });
957
- de([
1032
+ re([
958
1033
  () => o.modelValue,
959
1034
  e
960
1035
  ], () => {
961
1036
  (n.value === null || n.value === void 0) && e.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = e.value.keys().next().value);
962
1037
  }, { immediate: !0 });
963
- const r = h(() => {
964
- var i;
965
- return (i = e.value.get(n.value)) == null ? void 0 : i.icon;
966
- }), f = () => {
967
- const i = [...e.value.keys()], u = (i.indexOf(n.value) + 1) % i.length;
968
- n.value = i[u];
1038
+ const i = b(() => {
1039
+ var r;
1040
+ return (r = e.value.get(n.value)) == null ? void 0 : r.icon;
1041
+ }), m = () => {
1042
+ const r = [...e.value.keys()], p = (r.indexOf(n.value) + 1) % r.length;
1043
+ n.value = r[p];
969
1044
  };
970
- return (i, l) => (p(), m("label", {
971
- class: y({
1045
+ return (r, l) => (u(), f("label", {
1046
+ class: w({
972
1047
  "top-select": !0,
973
- ["top-select-" + i.name]: i.name,
974
- ["top-size_" + i.size]: !0,
975
- "top-formsCaptionWrapper": !!i.title,
976
- "top-select-error": i.isError,
977
- "top-disabled": i.disabled
1048
+ ["top-select-" + r.name]: r.name,
1049
+ ["top-size_" + r.size]: !0,
1050
+ "top-formsCaptionWrapper": !!r.title,
1051
+ "top-select-error": r.isError,
1052
+ "top-disabled": r.disabled
978
1053
  }),
979
1054
  "data-value": n.value,
980
- "data-top-icon": i.icon,
981
- "data-top-icon2": r.value
1055
+ "data-top-icon": r.icon,
1056
+ "data-top-icon2": i.value
982
1057
  }, [
983
1058
  W(S("select", {
984
- class: y({
985
- "top-forms-focusable": !i.disabled,
1059
+ class: w({
1060
+ "top-forms-focusable": !r.disabled,
986
1061
  "top-select_select": !0,
987
1062
  "top-select_arrow": !0,
988
- "top-error": i.isError
1063
+ "top-error": r.isError
989
1064
  }),
990
- name: i.name,
991
- disabled: i.disabled,
992
- "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u)
1065
+ name: r.name,
1066
+ disabled: r.disabled,
1067
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => n.value = p)
993
1068
  }, [
994
- (p(!0), m(N, null, U(a.value, ([u, b]) => (p(), m(N, null, [
995
- b.children ? (p(), m("optgroup", {
996
- key: "group_" + u,
997
- label: b.title,
998
- disabled: b.disabled
1069
+ (u(!0), f(R, null, F(s.value, ([p, h]) => (u(), f(R, null, [
1070
+ h.children ? (u(), f("optgroup", {
1071
+ key: "group_" + p,
1072
+ label: h.title,
1073
+ disabled: h.disabled
999
1074
  }, [
1000
- (p(!0), m(N, null, U(b.children, ([_, z]) => (p(), m("option", {
1075
+ (u(!0), f(R, null, F(h.children, ([_, E]) => (u(), f("option", {
1001
1076
  key: _,
1002
1077
  value: _,
1003
1078
  selected: _ === n.value,
1004
- disabled: z.disabled
1005
- }, V(z.title), 9, Pt))), 128))
1006
- ], 8, Nt)) : (p(), m("option", {
1007
- key: u ?? void 0,
1008
- value: u,
1009
- selected: u === n.value,
1010
- disabled: b.disabled
1011
- }, V(b.title), 9, Rt))
1079
+ disabled: E.disabled
1080
+ }, V(E.title), 9, At))), 128))
1081
+ ], 8, Pt)) : (u(), f("option", {
1082
+ key: p ?? void 0,
1083
+ value: p,
1084
+ selected: p === n.value,
1085
+ disabled: h.disabled
1086
+ }, V(h.title), 9, Rt))
1012
1087
  ], 64))), 256))
1013
- ], 10, At), [
1014
- [pe, n.value]
1088
+ ], 10, Dt), [
1089
+ [le, n.value]
1015
1090
  ]),
1016
- i.addChanger && e.value.size && !i.disabled ? (p(), m("span", {
1091
+ r.addChanger && e.value.size && !r.disabled ? (u(), f("span", {
1017
1092
  key: 0,
1018
1093
  class: "top-changer",
1019
- onClick: f
1094
+ onClick: m
1020
1095
  })) : g("", !0),
1021
- i.title ? (p(), m("span", Ot, V(i.title), 1)) : g("", !0)
1022
- ], 10, Ct));
1096
+ r.title ? (u(), f("span", Ct, V(r.title), 1)) : g("", !0)
1097
+ ], 10, zt));
1023
1098
  }
1024
- }), It = {
1099
+ }), Ot = {
1025
1100
  "top-select": "top-select",
1026
1101
  "top-select-error": "top-select-error",
1027
1102
  "top-select_select": "top-select_select",
1028
1103
  "top-changer": "top-changer"
1029
- }, Ut = {
1030
- $style: It
1031
- }, Ft = /* @__PURE__ */ v(Ht, [["__cssModules", Ut]]), oo = Be, so = Ae, ao = Xe, no = C, io = Z, ro = O, lo = ut, po = gt, uo = St, co = Vt, mo = Et, fo = Ft, bo = j;
1104
+ }, Ht = {
1105
+ $style: Ot
1106
+ }, It = /* @__PURE__ */ y(Nt, [["__cssModules", Ht]]), xt = Ve, eo = De, to = Fe, oo = P, so = Z, ao = O, no = dt, io = ht, ro = vt, lo = Mt, po = Et, uo = It, co = j;
1032
1107
  export {
1033
- be as A,
1034
- Zt as B,
1108
+ me as A,
1109
+ Kt as B,
1035
1110
  c as C,
1036
- jt as D,
1111
+ Qt as D,
1037
1112
  we as E,
1038
- xt as F,
1039
- eo as G,
1040
- Se as H,
1041
- to as I,
1113
+ Jt as F,
1114
+ Zt as G,
1115
+ ve as H,
1116
+ jt as I,
1042
1117
  X as J,
1043
- Ae as T,
1044
- v as _,
1118
+ De as T,
1119
+ y as _,
1045
1120
  O as a,
1046
- oo as b,
1047
- so as c,
1121
+ xt as b,
1122
+ eo as c,
1048
1123
  B as d,
1049
- ao as e,
1050
- no as f,
1051
- io as g,
1052
- ro as h,
1053
- Kt as i,
1054
- lo as j,
1055
- po as k,
1056
- bo as l,
1057
- uo as m,
1058
- fo as n,
1059
- co as o,
1060
- mo as p,
1124
+ to as e,
1125
+ oo as f,
1126
+ so as g,
1127
+ ao as h,
1128
+ Ut as i,
1129
+ no as j,
1130
+ io as k,
1131
+ co as l,
1132
+ ro as m,
1133
+ uo as n,
1134
+ lo as o,
1135
+ po as p,
1061
1136
  Et as q,
1062
1137
  j as r,
1063
- ue as s,
1064
- ce as t,
1065
- me as u,
1066
- fe as v,
1067
- qt as w,
1068
- Gt as x,
1069
- Qt as y,
1070
- Jt as z
1138
+ de as s,
1139
+ pe as t,
1140
+ ue as u,
1141
+ ce as v,
1142
+ Xt as w,
1143
+ Yt as x,
1144
+ qt as y,
1145
+ Gt as z
1071
1146
  };
1072
- //# sourceMappingURL=forms-CPEVHoks.es.js.map
1147
+ //# sourceMappingURL=forms-Cay_sybt.es.js.map