@topvisor/ui 0.9.6 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/.chunks/{datepicker-2f8eb2f7.amd.js → datepicker-7w3ISMUW.amd.js} +3 -3
  2. package/.chunks/datepicker-7w3ISMUW.amd.js.map +1 -0
  3. package/.chunks/{datepicker-a62ae260.es.js → datepicker-KB2i-H67.es.js} +2 -2
  4. package/.chunks/{datepicker-a62ae260.es.js.map → datepicker-KB2i-H67.es.js.map} +1 -1
  5. package/.chunks/forms-AZXCfF-R.amd.js +3 -0
  6. package/.chunks/forms-AZXCfF-R.amd.js.map +1 -0
  7. package/.chunks/{forms-260b848a.es.js → forms-iL1swNCF.es.js} +368 -370
  8. package/.chunks/forms-iL1swNCF.es.js.map +1 -0
  9. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Mk92KW3C.es.js +154 -0
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Mk92KW3C.es.js.map +1 -0
  11. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-cBt2MlyL.amd.js +2 -0
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-cBt2MlyL.amd.js.map +1 -0
  13. package/.chunks/{popup-3a721019.amd.js → popup-8sqqRRR_.amd.js} +8 -2
  14. package/.chunks/popup-8sqqRRR_.amd.js.map +1 -0
  15. package/.chunks/{popup-90783ce2.es.js → popup-gLJT9tg6.es.js} +8 -2
  16. package/.chunks/popup-gLJT9tg6.es.js.map +1 -0
  17. package/assets/forms.css +1 -1
  18. package/assets/light.css +1 -1
  19. package/assets/tabsView.css +1 -1
  20. package/core/core.amd.js +1 -1
  21. package/core/core.js +1 -1
  22. package/forms/forms.amd.js +1 -1
  23. package/forms/forms.js +1 -1
  24. package/formsExt/formsExt.amd.js +1 -1
  25. package/formsExt/formsExt.js +1 -1
  26. package/package.json +2 -5
  27. package/popup/popup.amd.js +1 -1
  28. package/popup/popup.amd.js.map +1 -1
  29. package/popup/popup.js +7 -146
  30. package/popup/popup.js.map +1 -1
  31. package/popup/worker.amd.js +1 -1
  32. package/popup/worker.js +2 -2
  33. package/src/components/forms/avatar/avatar.stories.d.ts +1 -1
  34. package/src/components/forms/avatar/avatar.vue.d.ts +1 -1
  35. package/src/components/forms/button/button.d.ts +2 -2
  36. package/src/components/forms/button/button.vue.d.ts +1 -1
  37. package/src/components/forms/checkbox/checkbox.d.ts +1 -4
  38. package/src/components/forms/checkbox/checkbox.stories.d.ts +8 -32
  39. package/src/components/forms/checkbox/checkbox.vue.d.ts +41 -15
  40. package/src/components/forms/controlLabel/controlLabel.vue.d.ts +1 -1
  41. package/src/components/forms/hint/hint.stories.d.ts +2 -2
  42. package/src/components/forms/hint/hint.vue.d.ts +1 -1
  43. package/src/components/forms/input/input.d.ts +2 -2
  44. package/src/components/forms/input/input.vue.d.ts +1 -1
  45. package/src/components/forms/inputDate/inputDate.d.ts +2 -2
  46. package/src/components/forms/inputDate/inputDate.stories.d.ts +1 -1
  47. package/src/components/forms/inputDate/inputDate.vue.d.ts +1 -1
  48. package/src/components/forms/inputRange/inputRange.vue.d.ts +1 -1
  49. package/src/components/forms/radio/radio.vue.d.ts +1 -1
  50. package/src/components/forms/select/select.d.ts +2 -2
  51. package/src/components/forms/select/select.stories.d.ts +1 -1
  52. package/src/components/forms/select/select.vue.d.ts +1 -1
  53. package/src/components/forms/switcher/switcher.vue.d.ts +1 -1
  54. package/src/components/forms/textarea/textarea.stories.d.ts +1 -1
  55. package/src/components/forms/textarea/textarea.vue.d.ts +1 -1
  56. package/src/components/formsExt/editArea/editArea.d.ts +1 -1
  57. package/src/components/formsExt/editArea/editArea.stories.d.ts +1 -1
  58. package/src/components/formsExt/editArea/editArea.vue.d.ts +1 -1
  59. package/src/components/formsExt/editInput/editInput.d.ts +2 -2
  60. package/src/components/formsExt/editInput/editInput.vue.d.ts +1 -1
  61. package/src/components/formsExt/radioGroup/radioGroup.d.ts +2 -2
  62. package/src/components/formsExt/radioGroup/radioGroup.stories.d.ts +1 -1
  63. package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +1 -1
  64. package/src/components/popup/popup/listItem.vue.d.ts +1 -1
  65. package/src/components/popup/popup/opener.vue.d.ts +1 -1
  66. package/src/components/popup/popup/popup.stories.d.ts +79 -0
  67. package/src/components/popup/popup/popup.vue.d.ts +2 -1
  68. package/src/components/tabs/tabs/content.vue.d.ts +1 -1
  69. package/src/components/tabs/tabs/tab.vue.d.ts +1 -1
  70. package/src/components/tabs/tabs/tabs.stories.d.ts +2 -2
  71. package/src/components/tabs/tabs/tabs.vue.d.ts +1 -1
  72. package/src/components/tabsView/tabsView/_MenuItem.stories.d.ts +132 -31
  73. package/src/components/tabsView/tabsView/_MenuTitle.stories.d.ts +19 -1
  74. package/src/components/tabsView/tabsView/menu.vue.d.ts +1 -1
  75. package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +1 -1
  76. package/src/components/tabsView/tabsView/menuItem.vue.d.ts +18 -1
  77. package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +1 -1
  78. package/src/components/tabsView/tabsView/tabsView.d.ts +49 -24
  79. package/src/components/tabsView/tabsView/tabsView.stories.d.ts +95 -54
  80. package/src/components/tabsView/tabsView/tabsView.vue.d.ts +4 -2
  81. package/src/components/tabsView/tabsView.d.ts +0 -1
  82. package/src/core/core/core.d.ts +1 -1
  83. package/tabs/tabs.amd.js +1 -1
  84. package/tabs/tabs.js +1 -1
  85. package/tabsView/tabsView.amd.js +1 -1
  86. package/tabsView/tabsView.amd.js.map +1 -1
  87. package/tabsView/tabsView.js +146 -123
  88. package/tabsView/tabsView.js.map +1 -1
  89. package/utils/date.amd.js +1 -1
  90. package/utils/date.js +1 -1
  91. package/utils/device.amd.js +1 -1
  92. package/utils/device.js +1 -1
  93. package/.chunks/datepicker-2f8eb2f7.amd.js.map +0 -1
  94. package/.chunks/forms-2250b8db.amd.js +0 -3
  95. package/.chunks/forms-2250b8db.amd.js.map +0 -1
  96. package/.chunks/forms-260b848a.es.js.map +0 -1
  97. package/.chunks/popup-3a721019.amd.js.map +0 -1
  98. package/.chunks/popup-90783ce2.es.js.map +0 -1
  99. package/src/components/tabsView/tabsView/content.vue.d.ts +0 -19
  100. /package/assets/{popup.css → listItem.css} +0 -0
@@ -1,65 +1,65 @@
1
- import { insertToPage as J } from "../utils/css.js";
2
- import { reactive as W, defineComponent as g, useCssVars as Q, computed as f, openBlock as p, createElementBlock as c, createElementVNode as w, createCommentVNode as v, createBlock as M, resolveDynamicComponent as x, normalizeClass as h, withCtx as B, renderSlot as _, createTextVNode as ee, toDisplayString as k, withDirectives as S, vModelCheckbox as X, mergeProps as T, withKeys as te, withModifiers as N, vModelText as q, onUnmounted as oe, ref as ae, unref as V, vModelRadio as se, resolveDirective as ne, watch as ie, toRef as le, Fragment as F, renderList as O, vModelSelect as re } from "vue";
3
- const Z = ["../assets/forms.css"].map((a) => import.meta.resolve(a));
4
- await J(Z);
5
- function de() {
1
+ import { insertToPage as q } from "../utils/css.js";
2
+ import { reactive as W, defineComponent as g, useCssVars as K, computed as h, openBlock as p, createElementBlock as c, createElementVNode as w, createCommentVNode as v, createBlock as M, resolveDynamicComponent as Z, normalizeClass as f, withCtx as B, renderSlot as _, createTextVNode as x, toDisplayString as k, mergeModels as ee, useModel as te, withDirectives as S, vModelCheckbox as Q, mergeProps as E, withKeys as oe, vModelText as X, withModifiers as ae, onUnmounted as se, ref as ne, unref as V, vModelRadio as ie, resolveDirective as le, watch as re, toRef as de, Fragment as F, renderList as N, vModelSelect as pe } from "vue";
3
+ const J = ["../assets/forms.css"].map((s) => import.meta.resolve(s));
4
+ await q(J);
5
+ function ue() {
6
6
  return "devicePixelRatio" in window && window.devicePixelRatio > 1;
7
7
  }
8
- function pe() {
8
+ function ce() {
9
9
  return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
10
10
  }
11
- function ue() {
11
+ function me() {
12
12
  return navigator.userAgent.indexOf("Topvisor_App") != -1;
13
13
  }
14
- function ce() {
14
+ function be() {
15
15
  return navigator.userAgent.indexOf("Mac OS X") !== -1;
16
16
  }
17
- function Ft() {
18
- const a = /Chrome|Android/.test(navigator.userAgent);
19
- let t = /Safari/.test(navigator.userAgent);
20
- return a && t && (t = !1), t;
17
+ function Ct() {
18
+ const s = /Chrome|Android/.test(navigator.userAgent);
19
+ let e = /Safari/.test(navigator.userAgent);
20
+ return s && e && (e = !1), e;
21
21
  }
22
- function Dt() {
23
- return ce() ? "⌘" : "Ctrl";
22
+ function At() {
23
+ return be() ? "⌘" : "Ctrl";
24
24
  }
25
- class me {
25
+ class fe {
26
26
  }
27
- const be = 100;
28
- let H;
27
+ const he = 100;
28
+ let O;
29
29
  const A = /* @__PURE__ */ new Map(), L = {
30
30
  width: window.innerWidth,
31
31
  height: window.innerHeight
32
32
  };
33
- function fe(a) {
34
- A.set(a, a);
33
+ function ve(s) {
34
+ A.set(s, s);
35
35
  }
36
- function he(a) {
37
- A.delete(a);
36
+ function ge(s) {
37
+ A.delete(s);
38
38
  }
39
- function ve(a) {
40
- clearTimeout(H), H = setTimeout(function() {
41
- a.topEvent = {
39
+ function ye(s) {
40
+ clearTimeout(O), O = setTimeout(function() {
41
+ s.topEvent = {
42
42
  widthDiff: L.width - window.innerWidth,
43
43
  hightDiff: L.height - window.innerHeight
44
- }, L.width = window.innerWidth, L.height = window.innerHeight, A.forEach((t) => t(a));
45
- }, be);
44
+ }, L.width = window.innerWidth, L.height = window.innerHeight, A.forEach((e) => e(s));
45
+ }, he);
46
46
  }
47
- window.addEventListener("resize", ve);
48
- const ge = {
49
- addOnReize: fe,
50
- removeOnResize: he
47
+ window.addEventListener("resize", ye);
48
+ const we = {
49
+ addOnReize: ve,
50
+ removeOnResize: ge
51
51
  };
52
- var G;
53
- const ye = {
52
+ var Y;
53
+ const $e = {
54
54
  widthForMobile: 900,
55
55
  dateFormat: "Y-m-d",
56
56
  /**
57
57
  * Для Москвы: +0300
58
58
  */
59
- gmt: (G = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : G[1]
59
+ gmt: (Y = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : Y[1]
60
60
  };
61
- var K;
62
- const we = {
61
+ var G;
62
+ const _e = {
63
63
  /**
64
64
  * Device by size
65
65
  * @see widthForMobile
@@ -89,37 +89,37 @@ const we = {
89
89
  // См. core.options
90
90
  dateFormat: "Y-m-d",
91
91
  // См. core.options
92
- gmt: (K = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : K[1]
93
- }, E = window, D = (a) => {
94
- var t, s;
95
- if (!((s = (t = E == null ? void 0 : E.jQuery) == null ? void 0 : t.ui) != null && s.tooltip)) {
92
+ gmt: (G = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : G[1]
93
+ }, T = window, D = (s) => {
94
+ var e, a;
95
+ if (!((a = (e = T == null ? void 0 : T.jQuery) == null ? void 0 : e.ui) != null && a.tooltip)) {
96
96
  console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
97
97
  return;
98
98
  }
99
- return E.jQuery(a);
100
- }, I = (a, t) => {
99
+ return T.jQuery(s);
100
+ }, H = (s, e) => {
101
101
  var n;
102
- const s = a.value ?? {};
103
- return s.content ??= (n = t.props) == null ? void 0 : n.title, s.content = String(s.content).replace(/\r\n|\r|\n/g, "<br>"), s.position ??= {
102
+ const a = s.value ?? {};
103
+ return a.content ??= (n = e.props) == null ? void 0 : n.title, a.content = String(a.content).replace(/\r\n|\r|\n/g, "<br>"), a.position ??= {
104
104
  my: "bottom-18px",
105
105
  at: "top center"
106
- }, s;
107
- }, $e = {
108
- mounted(a, t, s) {
106
+ }, a;
107
+ }, ke = {
108
+ mounted(s, e, a) {
109
109
  var n;
110
- (n = D(a)) == null || n.tooltip(I(t, s));
110
+ (n = D(s)) == null || n.tooltip(H(e, a));
111
111
  },
112
- updated(a, t, s, n) {
112
+ updated(s, e, a, n) {
113
113
  var r;
114
- const o = I(t, s), e = (r = D(a)) == null ? void 0 : r.tooltip("instance");
115
- e && (e.options = {
116
- ...e.options,
114
+ const o = H(e, a), t = (r = D(s)) == null ? void 0 : r.tooltip("instance");
115
+ t && (t.options = {
116
+ ...t.options,
117
117
  ...o
118
118
  });
119
119
  },
120
- unmounted(a, t, s) {
120
+ unmounted(s, e, a) {
121
121
  var n;
122
- (n = D(a)) == null || n.tooltip("destroy");
122
+ (n = D(s)) == null || n.tooltip("destroy");
123
123
  }
124
124
  }, C = window;
125
125
  class d {
@@ -130,9 +130,9 @@ class d {
130
130
  Not_date: "Not date"
131
131
  });
132
132
  static page = (C == null ? void 0 : C.page) || {};
133
- static Page = me;
134
- static options = ye;
135
- static state = W({ ...we });
133
+ static Page = fe;
134
+ static options = $e;
135
+ static state = W({ ..._e });
136
136
  static matchMediaIsMobile;
137
137
  /**
138
138
  * Добавить на страницу стили, используется для загрузки стилей из js
@@ -141,11 +141,11 @@ class d {
141
141
  * @param style - css стили в строке
142
142
  * @param type - если указать 'm' или 'pc', то стили будут применяться по условию в зависимости от настройки this.options.widthForMobile
143
143
  */
144
- static appendStyle(t, s = "") {
144
+ static appendStyle(e, a = "") {
145
145
  let n = "all";
146
- s === "m" && (n = "(max-width: " + this.options.widthForMobile + "px)"), s === "pc" && (n = "(min-width: " + this.options.widthForMobile + "px)");
146
+ a === "m" && (n = "(max-width: " + this.options.widthForMobile + "px)"), a === "pc" && (n = "(min-width: " + this.options.widthForMobile + "px)");
147
147
  const o = document.createElement("style");
148
- o.innerHTML = t, o.media = n, document.head.append(o);
148
+ o.innerHTML = e, o.media = n, document.head.append(o);
149
149
  }
150
150
  /**
151
151
  * Установить как плагин в прилоежнии Vue
@@ -154,34 +154,34 @@ class d {
154
154
  * @param app - Vue App
155
155
  * @param {typeof options} options - параметры UI
156
156
  */
157
- static install(t, s) {
158
- d.defineOptions(s), t.provide("top-core", d), this.installDirectives(t);
157
+ static install(e, a) {
158
+ d.defineOptions(a), e.provide("top-core", d), this.installDirectives(e);
159
159
  }
160
- static installDirectives(t) {
161
- t.directive("top-tooltip", $e);
160
+ static installDirectives(e) {
161
+ e.directive("top-tooltip", ke);
162
162
  }
163
163
  /**
164
164
  * Установить конфигурацию UI
165
165
  * @param {typeof options} options
166
166
  */
167
- static defineOptions(t) {
168
- t != null && t.widthForMobile && (this.options.widthForMobile = t.widthForMobile), t != null && t.dateFormat && (this.options.dateFormat = t.dateFormat), t != null && t.gmt && (this.options.gmt = t.gmt), d.setState();
167
+ static defineOptions(e) {
168
+ e != null && e.widthForMobile && (this.options.widthForMobile = e.widthForMobile), e != null && e.dateFormat && (this.options.dateFormat = e.dateFormat), e != null && e.gmt && (this.options.gmt = e.gmt), d.setState();
169
169
  }
170
170
  static setState() {
171
- d.matchMediaIsMobile = window.matchMedia(`(max-width: ${d.options.widthForMobile}px)`), d.state.isMobileUA = pe(), d.state.isRetina = de(), d.state.isApp = ue(), d.state.dateFormat = this.options.dateFormat, d.state.gmt = this.options.gmt, d.setStateByWindowSize(), ge.addOnReize(d.onResize), d.onResize(), d.saveToCookie();
171
+ d.matchMediaIsMobile = window.matchMedia(`(max-width: ${d.options.widthForMobile}px)`), d.state.isMobileUA = ce(), d.state.isRetina = ue(), d.state.isApp = me(), d.state.dateFormat = this.options.dateFormat, d.state.gmt = this.options.gmt, d.setStateByWindowSize(), we.addOnReize(d.onResize), d.onResize(), d.saveToCookie();
172
172
  }
173
173
  static onResize() {
174
174
  d.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
175
175
  }
176
176
  static setStateByWindowSize() {
177
- var t;
178
- d.state.isMobile = !!((t = d.matchMediaIsMobile) != null && t.matches), d.state.isLandscape = window.innerWidth > window.innerHeight, d.state.isPortrait = !d.state.isLandscape, d.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, d.saveToCookie();
177
+ var e;
178
+ d.state.isMobile = !!((e = d.matchMediaIsMobile) != null && e.matches), d.state.isLandscape = window.innerWidth > window.innerHeight, d.state.isPortrait = !d.state.isLandscape, d.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, d.saveToCookie();
179
179
  }
180
180
  /**
181
181
  * Сохранить информацию об устройстве в cookie
182
182
  */
183
183
  static saveToCookie() {
184
- const t = [
184
+ const e = [
185
185
  1,
186
186
  window.innerWidth,
187
187
  window.innerHeight,
@@ -189,53 +189,53 @@ class d {
189
189
  Number(d.state.isMobile),
190
190
  Number(d.state.isRetina)
191
191
  ];
192
- document.cookie = "device=" + t.join(",") + "; path=/;";
192
+ document.cookie = "device=" + e.join(",") + "; path=/;";
193
193
  }
194
194
  }
195
- function Ct(a) {
196
- return a.indexOf("T") === -1 && (a.length == 10 && (a += " 00:00:00"), a = a.replace(" ", "T") + d.state.gmt), new Date(a);
195
+ function Pt(s) {
196
+ return s.indexOf("T") === -1 && (s.length == 10 && (s += " 00:00:00"), s = s.replace(" ", "T") + d.state.gmt), new Date(s);
197
197
  }
198
- function _e(a, t = !0, s = 0) {
198
+ function Me(s, e = !0, a = 0) {
199
199
  let n;
200
- a != null ? n = new Date(a) : n = /* @__PURE__ */ new Date();
201
- const o = n.getFullYear(), e = String(n.getMonth() + 1).padStart(2, "0"), r = n.getDate().toString().padStart(2, "0"), l = n.getHours().toString().padStart(2, "0"), i = n.getMinutes().toString().padStart(2, "0"), b = n.getSeconds().toString().padStart(2, "0");
202
- return n = o + "-" + e + "-" + r, s && (n += " "), s >= 1 && (n += l), s >= 2 && (n += ":" + i), s >= 3 && (n += ":" + b), t && (n = R(n, s)), n;
200
+ s != null ? n = new Date(s) : n = /* @__PURE__ */ new Date();
201
+ const o = n.getFullYear(), t = String(n.getMonth() + 1).padStart(2, "0"), r = n.getDate().toString().padStart(2, "0"), l = n.getHours().toString().padStart(2, "0"), i = n.getMinutes().toString().padStart(2, "0"), b = n.getSeconds().toString().padStart(2, "0");
202
+ return n = o + "-" + t + "-" + r, a && (n += " "), a >= 1 && (n += l), a >= 2 && (n += ":" + i), a >= 3 && (n += ":" + b), e && (n = R(n, a)), n;
203
203
  }
204
- function R(a, t = 2, s = d.L.Not_date) {
205
- if ((!a || a.substring(0, 10) === "0000-00-00") && s && s !== "0000-00-00")
206
- return s;
204
+ function R(s, e = 2, a = d.L.Not_date) {
205
+ if ((!s || s.substring(0, 10) === "0000-00-00") && a && a !== "0000-00-00")
206
+ return a;
207
207
  const n = d.state.dateFormat.toLowerCase();
208
- let o = a.substring(0, 10);
208
+ let o = s.substring(0, 10);
209
209
  o.length === 7 && (o += "-01"), o += " 00:00", o = o.replace(/-/g, "/");
210
- const e = new Date(o);
211
- if (isNaN(Number(e)))
212
- return s;
213
- let r = n.replace("y", String(e.getFullYear()).padStart(2, "0")).replace("m", String(e.getMonth() + 1).padStart(2, "0")).replace("d", String(e.getDate()).padStart(2, "0"));
214
- if (a.length > 10)
215
- switch (t) {
210
+ const t = new Date(o);
211
+ if (isNaN(Number(t)))
212
+ return a;
213
+ let r = n.replace("y", String(t.getFullYear()).padStart(2, "0")).replace("m", String(t.getMonth() + 1).padStart(2, "0")).replace("d", String(t.getDate()).padStart(2, "0"));
214
+ if (s.length > 10)
215
+ switch (e) {
216
216
  case 1:
217
- r += " " + a.substring(11, 13);
217
+ r += " " + s.substring(11, 13);
218
218
  break;
219
219
  case 2:
220
- r += " " + a.substring(11, 16);
220
+ r += " " + s.substring(11, 16);
221
221
  break;
222
222
  case 3:
223
- r += " " + a.substring(11, 19);
223
+ r += " " + s.substring(11, 19);
224
224
  break;
225
225
  }
226
226
  return r;
227
227
  }
228
- function U(a, t = d.L.Not_date) {
229
- if (!a)
230
- return t;
231
- if (a.match(/\d\d\d\d-\d\d-\d\d/))
232
- return a;
233
- const s = d.state.dateFormat.toLowerCase(), n = a.split(/\W/), o = s.split(/\W/);
234
- let e = "", r = "", l = "";
228
+ function I(s, e = d.L.Not_date) {
229
+ if (!s)
230
+ return e;
231
+ if (s.match(/\d\d\d\d-\d\d-\d\d/))
232
+ return s;
233
+ const a = d.state.dateFormat.toLowerCase(), n = s.split(/\W/), o = a.split(/\W/);
234
+ let t = "", r = "", l = "";
235
235
  o.forEach((b, u) => {
236
236
  switch (b) {
237
237
  case "d":
238
- e = n[u];
238
+ t = n[u];
239
239
  break;
240
240
  case "m":
241
241
  r = n[u];
@@ -245,10 +245,10 @@ function U(a, t = d.L.Not_date) {
245
245
  break;
246
246
  }
247
247
  });
248
- let i = l + "-" + r + "-" + e;
249
- return i.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + i), i = _e((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), i;
248
+ let i = l + "-" + r + "-" + t;
249
+ return i.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + i), i = Me((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), i;
250
250
  }
251
- const ke = { class: "top-avatar" }, Me = ["src", "title"], Se = ["title"], Ve = /* @__PURE__ */ g({
251
+ const Se = { class: "top-avatar" }, Ve = ["src", "title"], Be = ["title"], ze = /* @__PURE__ */ g({
252
252
  __name: "avatar",
253
253
  props: {
254
254
  size: { default: 64 },
@@ -257,51 +257,51 @@ const ke = { class: "top-avatar" }, Me = ["src", "title"], Se = ["title"], Ve =
257
257
  isOnline: { type: Boolean },
258
258
  lastActiveTime: {}
259
259
  },
260
- setup(a) {
261
- Q((o) => ({
260
+ setup(s) {
261
+ K((o) => ({
262
262
  ed0c8a30: o.size + "px"
263
263
  }));
264
- const t = a, s = {
264
+ const e = s, a = {
265
265
  user: {
266
266
  Online: "Онлайн",
267
267
  LastSeen: "Заходил(а)"
268
268
  }
269
- }, n = f(() => {
270
- if (t.isOnline)
271
- return s.user.Online;
272
- if (t.lastActiveTime)
273
- return s.user.LastSeen + ": " + R(t.lastActiveTime, 2);
269
+ }, n = h(() => {
270
+ if (e.isOnline)
271
+ return a.user.Online;
272
+ if (e.lastActiveTime)
273
+ return a.user.LastSeen + ": " + R(e.lastActiveTime, 2);
274
274
  });
275
- return (o, e) => (p(), c("div", ke, [
275
+ return (o, t) => (p(), c("div", Se, [
276
276
  w("img", {
277
277
  class: "top-avatar_image",
278
278
  src: o.image,
279
- title: t.nickname + (n.value ? `
279
+ title: e.nickname + (n.value ? `
280
280
  ${n.value}` : ""),
281
281
  alt: ""
282
- }, null, 8, Me),
282
+ }, null, 8, Ve),
283
283
  o.isOnline ? (p(), c("div", {
284
284
  key: 0,
285
285
  class: "top-avatar_status",
286
286
  title: n.value
287
- }, null, 8, Se)) : v("", !0)
287
+ }, null, 8, Be)) : v("", !0)
288
288
  ]));
289
289
  }
290
- }), Be = {
290
+ }), Le = {
291
291
  "top-avatar": "top-avatar",
292
292
  "top-avatar_image": "top-avatar_image",
293
293
  "top-avatar_status": "top-avatar_status"
294
- }, y = (a, t) => {
295
- const s = a.__vccOpts || a;
296
- for (const [n, o] of t)
297
- s[n] = o;
298
- return s;
299
- }, ze = {
300
- $style: Be
301
- }, At = /* @__PURE__ */ y(Ve, [["__cssModules", ze]]), Le = {
294
+ }, y = (s, e) => {
295
+ const a = s.__vccOpts || s;
296
+ for (const [n, o] of e)
297
+ a[n] = o;
298
+ return a;
299
+ }, Te = {
300
+ $style: Le
301
+ }, Wt = /* @__PURE__ */ y(ze, [["__cssModules", Te]]), Ee = {
302
302
  key: 0,
303
303
  class: "top-ellipsis"
304
- }, Ee = /* @__PURE__ */ g({
304
+ }, Re = /* @__PURE__ */ g({
305
305
  __name: "button",
306
306
  props: {
307
307
  color: { default: "blue" },
@@ -317,10 +317,10 @@ ${n.value}` : ""),
317
317
  isActive: { type: Boolean },
318
318
  isProgress: { type: Boolean }
319
319
  },
320
- setup(a) {
321
- const t = a, s = f(() => t.href ? "a" : "button"), n = f(() => t.isSubmit ? "submit" : void 0);
322
- return (o, e) => (p(), M(x(s.value), {
323
- class: h({
320
+ setup(s) {
321
+ const e = s, a = h(() => e.href ? "a" : "button"), n = h(() => e.isSubmit ? "submit" : void 0);
322
+ return (o, t) => (p(), M(Z(a.value), {
323
+ class: f({
324
324
  "top-active": o.isActive,
325
325
  "top-disabled": o.disabled,
326
326
  "top-forms-focusable": !o.disabled,
@@ -328,7 +328,8 @@ ${n.value}` : ""),
328
328
  "top-button-progress": o.isProgress,
329
329
  [`top-size_${o.size}`]: !!o.size,
330
330
  [`top-color_${o.color}`]: !0,
331
- [`top-style_${o.styling}`]: !!o.styling
331
+ [`top-style_${o.styling}`]: !!o.styling,
332
+ "top-button-withoutText": !o.$slots.default
332
333
  }),
333
334
  name: o.name,
334
335
  title: o.title,
@@ -340,9 +341,9 @@ ${n.value}` : ""),
340
341
  inProgress: o.isProgress
341
342
  }, {
342
343
  default: B(() => [
343
- o.$slots.default ? (p(), c("span", Le, [
344
+ o.$slots.default ? (p(), c("span", Ee, [
344
345
  _(o.$slots, "default", {}, () => [
345
- ee(k(o.icon ? "" : "Button"), 1)
346
+ x(k(o.icon ? "" : "Button"), 1)
346
347
  ])
347
348
  ])) : v("", !0),
348
349
  _(o.$slots, "html")
@@ -350,11 +351,12 @@ ${n.value}` : ""),
350
351
  _: 3
351
352
  }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
352
353
  }
353
- }), Te = "_progress_1f1nw_1", Re = {
354
+ }), Fe = "_progress_1f1nw_1", De = {
354
355
  "top-button": "top-button",
355
356
  "top-active": "top-active",
356
357
  "top-button-progress": "top-button-progress",
357
- progress: Te,
358
+ progress: Fe,
359
+ "top-button-withoutText": "top-button-withoutText",
358
360
  "top-color_blue": "top-color_blue",
359
361
  "top-color_green": "top-color_green",
360
362
  "top-color_orange": "top-color_orange",
@@ -366,41 +368,41 @@ ${n.value}` : ""),
366
368
  "top-style_transparent": "top-style_transparent",
367
369
  "top-size_l": "top-size_l",
368
370
  "top-size_xl": "top-size_xl"
369
- }, Fe = {
370
- $style: Re
371
- }, Pt = /* @__PURE__ */ y(Ee, [["__cssModules", Fe]]), De = { class: "top-forms-optionLabel" }, Ce = /* @__PURE__ */ g({
371
+ }, Ce = {
372
+ $style: De
373
+ }, Nt = /* @__PURE__ */ y(Re, [["__cssModules", Ce]]), Ae = { class: "top-forms-optionLabel" }, Pe = /* @__PURE__ */ g({
372
374
  __name: "controlLabel",
373
375
  props: {
374
376
  description: {},
375
377
  disabled: { type: Boolean }
376
378
  },
377
- setup(a) {
378
- return (t, s) => (p(), c("div", De, [
379
+ setup(s) {
380
+ return (e, a) => (p(), c("div", Ae, [
379
381
  w("div", {
380
- class: h({
382
+ class: f({
381
383
  "top-forms-optionLabel_title": !0,
382
- "top-forms-optionLabel_title-disabled": t.disabled
384
+ "top-forms-optionLabel_title-disabled": e.disabled
383
385
  })
384
386
  }, [
385
- _(t.$slots, "default")
387
+ _(e.$slots, "default")
386
388
  ], 2),
387
- t.description ? (p(), c("div", {
389
+ e.description ? (p(), c("div", {
388
390
  key: 0,
389
- class: h(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": t.disabled }])
390
- }, k(t.description), 3)) : v("", !0)
391
+ class: f(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": e.disabled }])
392
+ }, k(e.description), 3)) : v("", !0)
391
393
  ]));
392
394
  }
393
- }), Ae = {
395
+ }), We = {
394
396
  "top-forms-optionLabel": "top-forms-optionLabel",
395
397
  "top-forms-optionLabel_title": "top-forms-optionLabel_title",
396
398
  "top-forms-optionLabel_title-disabled": "top-forms-optionLabel_title-disabled",
397
399
  "top-forms-optionLabel_description": "top-forms-optionLabel_description",
398
400
  "top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
399
- }, Pe = {
400
- $style: Ae
401
- }, P = /* @__PURE__ */ y(Ce, [["__cssModules", Pe]]), We = ["name", "value", "indeterminate", "disabled"], Ne = /* @__PURE__ */ g({
401
+ }, Ne = {
402
+ $style: We
403
+ }, P = /* @__PURE__ */ y(Pe, [["__cssModules", Ne]]), Oe = ["name", "value", "indeterminate", "disabled"], He = /* @__PURE__ */ g({
402
404
  __name: "checkbox",
403
- props: {
405
+ props: /* @__PURE__ */ ee({
404
406
  modelValue: { type: [Boolean, Array, Set] },
405
407
  name: {},
406
408
  value: {},
@@ -408,80 +410,76 @@ ${n.value}` : ""),
408
410
  disabled: { type: Boolean },
409
411
  indeterminate: { type: Boolean },
410
412
  isError: { type: Boolean }
411
- },
413
+ }, {
414
+ modelValue: { type: Boolean },
415
+ modelModifiers: {}
416
+ }),
412
417
  emits: ["update:modelValue"],
413
- setup(a, { emit: t }) {
414
- const s = a, n = t, o = f({
415
- get() {
416
- return s.modelValue;
417
- },
418
- set(e) {
419
- n("update:modelValue", e);
420
- }
421
- });
422
- return (e, r) => (p(), c("label", {
423
- class: h({
418
+ setup(s) {
419
+ const e = te(s, "modelValue");
420
+ return (a, n) => (p(), c("label", {
421
+ class: f({
424
422
  "top-forms-optionWrapper": !0,
425
423
  "top-checkbox": !0,
426
- ["top-checkbox_" + e.name]: e.name !== "",
427
- "top-disabled": e.disabled,
428
- "top-error": e.isError && !e.disabled
424
+ ["top-checkbox_" + a.name]: a.name !== "",
425
+ "top-disabled": a.disabled,
426
+ "top-error": a.isError && !a.disabled
429
427
  })
430
428
  }, [
431
429
  S(w("input", {
432
430
  type: "checkbox",
433
- class: h({
434
- "top-forms-focusable": !e.disabled,
431
+ class: f({
432
+ "top-forms-focusable": !a.disabled,
435
433
  "top-forms-option": !0,
436
434
  "top-checkbox_input": !0,
437
- "top-error": e.isError && !e.disabled
435
+ "top-error": a.isError && !a.disabled
438
436
  }),
439
- name: e.name,
440
- "onUpdate:modelValue": r[0] || (r[0] = (l) => o.value = l),
441
- value: e.value,
442
- indeterminate: e.indeterminate,
443
- disabled: e.disabled
444
- }, null, 10, We), [
445
- [X, o.value]
437
+ name: a.name,
438
+ "onUpdate:modelValue": n[0] || (n[0] = (o) => e.value = o),
439
+ value: a.value,
440
+ indeterminate: a.indeterminate,
441
+ disabled: a.disabled
442
+ }, null, 10, Oe), [
443
+ [Q, e.value]
446
444
  ]),
447
- e.$slots.default ? (p(), M(P, {
445
+ a.$slots.default ? (p(), M(P, {
448
446
  key: 0,
449
- description: e.description,
450
- disabled: e.disabled
447
+ description: a.description,
448
+ disabled: a.disabled
451
449
  }, {
452
450
  default: B(() => [
453
- _(e.$slots, "default")
451
+ _(a.$slots, "default")
454
452
  ]),
455
453
  _: 3
456
454
  }, 8, ["description", "disabled"])) : v("", !0)
457
455
  ], 2));
458
456
  }
459
- }), Oe = {
457
+ }), Ie = {
460
458
  "top-checkbox": "top-checkbox",
461
459
  "top-checkbox_input": "top-checkbox_input",
462
460
  "top-error": "top-error"
463
- }, He = {
464
- $style: Oe
465
- }, Wt = /* @__PURE__ */ y(Ne, [["__cssModules", He]]), Ie = ["title"], Ue = /* @__PURE__ */ g({
461
+ }, Ue = {
462
+ $style: Ie
463
+ }, Ot = /* @__PURE__ */ y(He, [["__cssModules", Ue]]), je = ["title"], Ye = /* @__PURE__ */ g({
466
464
  __name: "hint",
467
465
  props: {
468
466
  hint: {}
469
467
  },
470
- setup(a) {
471
- return (t, s) => (p(), c("span", {
468
+ setup(s) {
469
+ return (e, a) => (p(), c("span", {
472
470
  class: "top-hint",
473
471
  "data-top-icon": "",
474
- title: t.hint
475
- }, null, 8, Ie));
472
+ title: e.hint
473
+ }, null, 8, je));
476
474
  }
477
- }), je = {
475
+ }), Ge = {
478
476
  "top-hint": "top-hint"
479
- }, Ye = {
480
- $style: je
481
- }, Ge = /* @__PURE__ */ y(Ue, [["__cssModules", Ye]]), Ke = ["data-top-icon", "data-top-icon2"], Qe = ["name", "title", "placeholder", "disabled", "readonly"], Xe = {
477
+ }, Ke = {
478
+ $style: Ge
479
+ }, Qe = /* @__PURE__ */ y(Ye, [["__cssModules", Ke]]), Xe = ["data-top-icon", "data-top-icon2"], qe = ["name", "title", "placeholder", "disabled", "readonly"], Je = {
482
480
  key: 1,
483
481
  class: "top-formsCaption"
484
- }, qe = /* @__PURE__ */ g({
482
+ }, Ze = /* @__PURE__ */ g({
485
483
  inheritAttrs: !1,
486
484
  __name: "input",
487
485
  props: {
@@ -499,19 +497,19 @@ ${n.value}` : ""),
499
497
  modificator: {}
500
498
  },
501
499
  emits: ["update:modelValue"],
502
- setup(a, { emit: t }) {
503
- const s = a, n = t, o = f({
500
+ setup(s, { emit: e }) {
501
+ const a = s, n = e, o = h({
504
502
  get() {
505
- return s.modelValue;
503
+ return a.modelValue;
506
504
  },
507
505
  set(l) {
508
506
  n("update:modelValue", l);
509
507
  }
510
- }), e = f(() => s.addCleaner && !s.title || s.captionType !== "" ? "" : s.title), r = () => {
511
- n("update:modelValue", "");
508
+ }), t = h(() => a.addCleaner && !a.title || a.captionType !== "" ? "" : a.title), r = (l) => {
509
+ a.modelValue && l.stopPropagation(), n("update:modelValue", "");
512
510
  };
513
511
  return (l, i) => (p(), c("label", {
514
- class: h({
512
+ class: f({
515
513
  "top-input": !0,
516
514
  ["top-size_" + l.size]: !0,
517
515
  "top-disabled": l.disabled,
@@ -523,7 +521,7 @@ ${n.value}` : ""),
523
521
  "data-top-icon": l.icon,
524
522
  "data-top-icon2": l.icon2
525
523
  }, [
526
- S(w("input", T({
524
+ S(w("input", E({
527
525
  type: "text",
528
526
  class: {
529
527
  "top-input_input": !0,
@@ -535,34 +533,34 @@ ${n.value}` : ""),
535
533
  name: l.name,
536
534
  "onUpdate:modelValue": i[0] || (i[0] = (b) => o.value = b),
537
535
  title: l.title,
538
- placeholder: e.value,
536
+ placeholder: t.value,
539
537
  disabled: l.disabled,
540
538
  readonly: l.readonly,
541
- onKeydown: i[1] || (i[1] = te(N(() => (l.addCleaner || !!l.$slots.btn) && r(), ["stop"]), ["esc"]))
542
- }, l.$attrs), null, 16, Qe), [
543
- [q, o.value]
539
+ onKeydown: i[1] || (i[1] = oe((b) => (l.addCleaner || !!l.$slots.btn) && r(b), ["esc"]))
540
+ }, l.$attrs), null, 16, qe), [
541
+ [X, o.value]
544
542
  ]),
545
543
  l.addCleaner && o.value && o.value !== "0000-00-00" ? (p(), c("span", {
546
544
  key: 0,
547
545
  class: "top-input_cleaner",
548
- "data-top-icon": "",
549
- onClick: N(r, ["prevent"])
546
+ "data-top-icon": "",
547
+ onClick: ae(r, ["prevent"])
550
548
  })) : v("", !0),
551
- l.captionType !== "" ? (p(), c("span", Xe, k(l.title), 1)) : v("", !0),
549
+ l.captionType !== "" ? (p(), c("span", Je, k(l.title), 1)) : v("", !0),
552
550
  _(l.$slots, "default")
553
- ], 10, Ke));
551
+ ], 10, Xe));
554
552
  }
555
- }), Je = {
553
+ }), xe = {
556
554
  "top-input": "top-input",
557
555
  "top-input_input": "top-input_input",
558
556
  "top-input-withCleaner": "top-input-withCleaner",
559
557
  "top-input_cleaner": "top-input_cleaner"
560
- }, Ze = {
561
- $style: Je
562
- }, j = /* @__PURE__ */ y(qe, [["__cssModules", Ze]]), xe = ["modelValue"], et = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
563
- let Y = (a) => {
558
+ }, et = {
559
+ $style: xe
560
+ }, U = /* @__PURE__ */ y(Ze, [["__cssModules", et]]), tt = ["modelValue"], ot = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
561
+ let j = (s) => {
564
562
  };
565
- const tt = /* @__PURE__ */ g({
563
+ const at = /* @__PURE__ */ g({
566
564
  __name: "inputDate",
567
565
  props: {
568
566
  modelValue: {},
@@ -579,25 +577,25 @@ const tt = /* @__PURE__ */ g({
579
577
  modificator: {}
580
578
  },
581
579
  emits: ["update:modelValue"],
582
- setup(a, { emit: t }) {
583
- const s = a, n = t;
584
- oe(() => {
585
- e && e.datepicker("destroy");
580
+ setup(s, { emit: e }) {
581
+ const a = s, n = e;
582
+ se(() => {
583
+ t && t.datepicker("destroy");
586
584
  });
587
- const o = ae();
588
- let e;
589
- const r = f({
585
+ const o = ne();
586
+ let t;
587
+ const r = h({
590
588
  get() {
591
- return R(s.modelValue, 2, "0000-00-00");
589
+ return R(a.modelValue, 2, "0000-00-00");
592
590
  },
593
591
  set(u) {
594
- u = U(u, "0000-00-00"), n("update:modelValue", u);
592
+ u = I(u, "0000-00-00"), n("update:modelValue", u);
595
593
  }
596
594
  });
597
595
  let l = (u) => {
598
- Y(u);
596
+ j(u);
599
597
  }, i = (u) => {
600
- const m = U(u.target.value), $ = R(m);
598
+ const m = I(u.target.value), $ = R(m);
601
599
  if (!$ || $ === d.L.Not_date || u.target.value !== $) {
602
600
  u.target.value = r.value;
603
601
  return;
@@ -605,12 +603,12 @@ const tt = /* @__PURE__ */ g({
605
603
  r.value = u.target.value;
606
604
  };
607
605
  async function b(u) {
608
- const m = await import("./datepicker-a62ae260.es.js");
609
- Y = m.oninput, e = m.connectDatepicker(u.target, {
606
+ const m = await import("./datepicker-KB2i-H67.es.js");
607
+ j = m.oninput, t = m.connectDatepicker(u.target, {
610
608
  onSelect: () => i(u)
611
- }), e && e.datepicker("show");
609
+ }), t && t.datepicker("show");
612
610
  }
613
- return (u, m) => V(et) ? (p(), M(V(j), T({ key: 0 }, u.$props, {
611
+ return (u, m) => V(ot) ? (p(), M(V(U), E({ key: 0 }, u.$props, {
614
612
  modelValue: r.value,
615
613
  readonly: "",
616
614
  onClick: m[1] || (m[1] = ($) => o.value.showPicker())
@@ -624,10 +622,10 @@ const tt = /* @__PURE__ */ g({
624
622
  modelValue: u.modelValue,
625
623
  onChange: m[0] || (m[0] = ($) => r.value = $.target.value),
626
624
  tabindex: "-1"
627
- }, null, 40, xe)
625
+ }, null, 40, tt)
628
626
  ]),
629
627
  _: 1
630
- }, 16, ["modelValue"])) : (p(), M(V(j), T({ key: 1 }, u.$props, {
628
+ }, 16, ["modelValue"])) : (p(), M(V(U), E({ key: 1 }, u.$props, {
631
629
  modelValue: r.value,
632
630
  "onUpdate:modelValue": m[2] || (m[2] = ($) => $ === "" ? r.value = "" : ""),
633
631
  onInput: V(l),
@@ -636,27 +634,27 @@ const tt = /* @__PURE__ */ g({
636
634
  modificator: "datepicker"
637
635
  }), null, 16, ["modelValue", "onInput", "onChange"]));
638
636
  }
639
- }), ot = {
637
+ }), st = {
640
638
  "top-input-datepicker": "top-input-datepicker",
641
639
  "top-input_input-date": "top-input_input-date"
642
- }, at = {
643
- $style: ot
644
- }, Nt = /* @__PURE__ */ y(tt, [["__cssModules", at]]), st = { class: "top-inputRange" }, nt = /* @__PURE__ */ w("span", { class: "top-inputRange_dash" }, " — ", -1), it = /* @__PURE__ */ g({
640
+ }, nt = {
641
+ $style: st
642
+ }, Ht = /* @__PURE__ */ y(at, [["__cssModules", nt]]), it = { class: "top-inputRange" }, lt = /* @__PURE__ */ w("span", { class: "top-inputRange_dash" }, " — ", -1), rt = /* @__PURE__ */ g({
645
643
  __name: "inputRange",
646
- setup(a) {
647
- return (t, s) => (p(), c("div", st, [
648
- _(t.$slots, "from"),
649
- nt,
650
- _(t.$slots, "to")
644
+ setup(s) {
645
+ return (e, a) => (p(), c("div", it, [
646
+ _(e.$slots, "from"),
647
+ lt,
648
+ _(e.$slots, "to")
651
649
  ]));
652
650
  }
653
- }), lt = {
651
+ }), dt = {
654
652
  "top-inputRange": "top-inputRange",
655
653
  "top-inputRange_dash": "top-inputRange_dash",
656
654
  "top-input": "top-input"
657
- }, rt = {
658
- $style: lt
659
- }, Ot = /* @__PURE__ */ y(it, [["__cssModules", rt]]), dt = ["name", "value", "disabled"], pt = /* @__PURE__ */ g({
655
+ }, pt = {
656
+ $style: dt
657
+ }, It = /* @__PURE__ */ y(rt, [["__cssModules", pt]]), ut = ["name", "value", "disabled"], ct = /* @__PURE__ */ g({
660
658
  __name: "radio",
661
659
  props: {
662
660
  modelValue: {},
@@ -667,58 +665,58 @@ const tt = /* @__PURE__ */ g({
667
665
  isError: { type: Boolean }
668
666
  },
669
667
  emits: ["update:modelValue"],
670
- setup(a, { emit: t }) {
671
- const s = a, n = t, o = f({
668
+ setup(s, { emit: e }) {
669
+ const a = s, n = e, o = h({
672
670
  get() {
673
- return s.modelValue;
671
+ return a.modelValue;
674
672
  },
675
- set(e) {
676
- n("update:modelValue", e);
673
+ set(t) {
674
+ n("update:modelValue", t);
677
675
  }
678
676
  });
679
- return (e, r) => (p(), c("label", {
680
- class: h({
677
+ return (t, r) => (p(), c("label", {
678
+ class: f({
681
679
  "top-forms-optionWrapper": !0,
682
680
  "top-radio": !0,
683
- ["top-radio_" + e.name]: e.name !== "",
684
- "top-disabled": e.disabled,
685
- "top-error": e.isError && !e.disabled
681
+ ["top-radio_" + t.name]: t.name !== "",
682
+ "top-disabled": t.disabled,
683
+ "top-error": t.isError && !t.disabled
686
684
  })
687
685
  }, [
688
686
  S(w("input", {
689
687
  type: "radio",
690
- class: h({
691
- "top-forms-focusable": !e.disabled,
688
+ class: f({
689
+ "top-forms-focusable": !t.disabled,
692
690
  "top-forms-option": !0,
693
691
  "top-radio_input": !0,
694
- "top-error": e.isError && !e.disabled
692
+ "top-error": t.isError && !t.disabled
695
693
  }),
696
694
  "onUpdate:modelValue": r[0] || (r[0] = (l) => o.value = l),
697
- name: e.name,
698
- value: e.value,
699
- disabled: e.disabled
700
- }, null, 10, dt), [
701
- [se, o.value]
695
+ name: t.name,
696
+ value: t.value,
697
+ disabled: t.disabled
698
+ }, null, 10, ut), [
699
+ [ie, o.value]
702
700
  ]),
703
- e.$slots.default ? (p(), M(P, {
701
+ t.$slots.default ? (p(), M(P, {
704
702
  key: 0,
705
- description: e.description,
706
- disabled: e.disabled
703
+ description: t.description,
704
+ disabled: t.disabled
707
705
  }, {
708
706
  default: B(() => [
709
- _(e.$slots, "default")
707
+ _(t.$slots, "default")
710
708
  ]),
711
709
  _: 3
712
710
  }, 8, ["description", "disabled"])) : v("", !0)
713
711
  ], 2));
714
712
  }
715
- }), ut = {
713
+ }), mt = {
716
714
  "top-radio": "top-radio",
717
715
  "top-radio_input": "top-radio_input",
718
716
  "top-error": "top-error"
719
- }, ct = {
720
- $style: ut
721
- }, Ht = /* @__PURE__ */ y(pt, [["__cssModules", ct]]), mt = ["name", "value", "disabled"], bt = /* @__PURE__ */ g({
717
+ }, bt = {
718
+ $style: mt
719
+ }, Ut = /* @__PURE__ */ y(ct, [["__cssModules", bt]]), ft = ["name", "value", "disabled"], ht = /* @__PURE__ */ g({
722
720
  __name: "switcher",
723
721
  props: {
724
722
  modelValue: { type: [Boolean, Array, Set] },
@@ -729,60 +727,60 @@ const tt = /* @__PURE__ */ g({
729
727
  isError: { type: Boolean }
730
728
  },
731
729
  emits: ["update:modelValue"],
732
- setup(a, { emit: t }) {
733
- const s = a, n = t, o = f({
730
+ setup(s, { emit: e }) {
731
+ const a = s, n = e, o = h({
734
732
  get() {
735
- return s.modelValue;
733
+ return a.modelValue;
736
734
  },
737
- set(e) {
738
- n("update:modelValue", e);
735
+ set(t) {
736
+ n("update:modelValue", t);
739
737
  }
740
738
  });
741
- return (e, r) => (p(), c("label", {
742
- class: h({
739
+ return (t, r) => (p(), c("label", {
740
+ class: f({
743
741
  "top-forms-optionWrapper": !0,
744
742
  "top-checkboxSwitcher": !0,
745
- "top-disabled": e.disabled,
746
- "top-error": e.isError && !e.disabled
743
+ "top-disabled": t.disabled,
744
+ "top-error": t.isError && !t.disabled
747
745
  })
748
746
  }, [
749
747
  S(w("input", {
750
748
  type: "checkbox",
751
- class: h({
752
- "top-forms-focusable": !e.disabled,
749
+ class: f({
750
+ "top-forms-focusable": !t.disabled,
753
751
  "top-forms-option": !0,
754
752
  "top-checkboxSwitcher_input": !0,
755
- "top-error": e.isError && !e.disabled
753
+ "top-error": t.isError && !t.disabled
756
754
  }),
757
755
  "onUpdate:modelValue": r[0] || (r[0] = (l) => o.value = l),
758
- name: e.name,
759
- value: e.value,
760
- disabled: e.disabled
761
- }, null, 10, mt), [
762
- [X, o.value]
756
+ name: t.name,
757
+ value: t.value,
758
+ disabled: t.disabled
759
+ }, null, 10, ft), [
760
+ [Q, o.value]
763
761
  ]),
764
- e.$slots.default ? (p(), M(P, {
762
+ t.$slots.default ? (p(), M(P, {
765
763
  key: 0,
766
- description: e.description,
767
- disabled: e.disabled
764
+ description: t.description,
765
+ disabled: t.disabled
768
766
  }, {
769
767
  default: B(() => [
770
- _(e.$slots, "default")
768
+ _(t.$slots, "default")
771
769
  ]),
772
770
  _: 3
773
771
  }, 8, ["description", "disabled"])) : v("", !0)
774
772
  ], 2));
775
773
  }
776
- }), ft = {
774
+ }), vt = {
777
775
  "top-checkboxSwitcher": "top-checkboxSwitcher",
778
776
  "top-checkboxSwitcher_input": "top-checkboxSwitcher_input",
779
777
  "top-error": "top-error"
780
- }, ht = {
781
- $style: ft
782
- }, It = /* @__PURE__ */ y(bt, [["__cssModules", ht]]), vt = ["name", "placeholder", "disabled", "readonly", "rows"], gt = {
778
+ }, gt = {
779
+ $style: vt
780
+ }, jt = /* @__PURE__ */ y(ht, [["__cssModules", gt]]), yt = ["name", "placeholder", "disabled", "readonly", "rows"], wt = {
783
781
  key: 0,
784
782
  class: "top-textarea_pseudoContent"
785
- }, yt = /* @__PURE__ */ g({
783
+ }, $t = /* @__PURE__ */ g({
786
784
  inheritAttrs: !1,
787
785
  __name: "textarea",
788
786
  props: {
@@ -798,69 +796,69 @@ const tt = /* @__PURE__ */ g({
798
796
  hint: {}
799
797
  },
800
798
  emits: ["update:modelValue"],
801
- setup(a, { emit: t }) {
802
- Q((e) => ({
803
- c838a038: e.minHeight + "px"
799
+ setup(s, { emit: e }) {
800
+ K((t) => ({
801
+ c838a038: t.minHeight + "px"
804
802
  }));
805
- const s = a, n = t, o = f({
803
+ const a = s, n = e, o = h({
806
804
  get() {
807
- return s.modelValue;
805
+ return a.modelValue;
808
806
  },
809
- set(e) {
810
- n("update:modelValue", e);
807
+ set(t) {
808
+ n("update:modelValue", t);
811
809
  }
812
810
  });
813
- return (e, r) => {
814
- const l = ne("top-tooltip");
811
+ return (t, r) => {
812
+ const l = le("top-tooltip");
815
813
  return p(), c("label", {
816
- class: h({
814
+ class: f({
817
815
  "top-textarea": !0,
818
- ["top-textarea-" + e.name]: e.name,
819
- "top-disabled": e.disabled
816
+ ["top-textarea-" + t.name]: t.name,
817
+ "top-disabled": t.disabled
820
818
  })
821
819
  }, [
822
- S(w("textarea", T({
820
+ S(w("textarea", E({
823
821
  type: "text",
824
822
  class: {
825
- "top-forms-focusable": !e.disabled,
823
+ "top-forms-focusable": !t.disabled,
826
824
  "top-textarea_textarea": !0,
827
- "top-textarea_textarea-expandable": e.expandable,
828
- "top-error": e.isError
825
+ "top-textarea_textarea-expandable": t.expandable,
826
+ "top-error": t.isError
829
827
  },
830
828
  autocomplete: "off_always",
831
- name: e.name,
832
- placeholder: e.placeholder,
833
- disabled: e.disabled,
834
- readonly: e.readonly,
835
- rows: e.expandable ? void 0 : e.rows
836
- }, e.$attrs, {
829
+ name: t.name,
830
+ placeholder: t.placeholder,
831
+ disabled: t.disabled,
832
+ readonly: t.readonly,
833
+ rows: t.expandable ? void 0 : t.rows
834
+ }, t.$attrs, {
837
835
  "onUpdate:modelValue": r[0] || (r[0] = (i) => o.value = i)
838
- }), null, 16, vt), [
839
- [q, o.value]
836
+ }), null, 16, yt), [
837
+ [X, o.value]
840
838
  ]),
841
- e.expandable ? (p(), c("div", gt, k(o.value + " "), 1)) : v("", !0),
842
- e.hint ? S((p(), M(Ge, {
839
+ t.expandable ? (p(), c("div", wt, k(o.value + " "), 1)) : v("", !0),
840
+ t.hint ? S((p(), M(Qe, {
843
841
  key: 1,
844
842
  class: "top-textarea_hint",
845
- hint: e.hint
843
+ hint: t.hint
846
844
  }, null, 8, ["hint"])), [
847
845
  [l]
848
846
  ]) : v("", !0)
849
847
  ], 2);
850
848
  };
851
849
  }
852
- }), wt = {
850
+ }), _t = {
853
851
  "top-textarea": "top-textarea",
854
852
  "top-textarea_textarea": "top-textarea_textarea",
855
853
  "top-textarea_textarea-expandable": "top-textarea_textarea-expandable",
856
854
  "top-textarea_pseudoContent": "top-textarea_pseudoContent",
857
855
  "top-textarea_hint": "top-textarea_hint"
858
- }, $t = {
859
- $style: wt
860
- }, Ut = /* @__PURE__ */ y(yt, [["__cssModules", $t]]), _t = ["data-value", "data-top-icon", "data-top-icon2"], kt = ["name", "disabled"], Mt = ["label", "disabled"], St = ["value", "selected", "disabled"], Vt = ["value", "selected", "disabled"], Bt = {
856
+ }, kt = {
857
+ $style: _t
858
+ }, Yt = /* @__PURE__ */ y($t, [["__cssModules", kt]]), Mt = ["data-value", "data-top-icon", "data-top-icon2"], St = ["name", "disabled"], Vt = ["label", "disabled"], Bt = ["value", "selected", "disabled"], zt = ["value", "selected", "disabled"], Lt = {
861
859
  key: 1,
862
860
  class: "top-formsCaption"
863
- }, zt = /* @__PURE__ */ g({
861
+ }, Tt = /* @__PURE__ */ g({
864
862
  __name: "select",
865
863
  props: {
866
864
  modelValue: {},
@@ -874,20 +872,20 @@ const tt = /* @__PURE__ */ g({
874
872
  isError: { type: Boolean }
875
873
  },
876
874
  emits: ["update:modelValue"],
877
- setup(a, { emit: t }) {
878
- const s = a, n = t, o = f({
875
+ setup(s, { emit: e }) {
876
+ const a = s, n = e, o = h({
879
877
  get() {
880
- return s.modelValue;
878
+ return a.modelValue;
881
879
  },
882
880
  set(i) {
883
881
  n("update:modelValue", i);
884
882
  }
885
- }), e = f(() => {
883
+ }), t = h(() => {
886
884
  var i;
887
885
  return (i = r.value.get(o.value)) == null ? void 0 : i.icon;
888
- }), r = f(() => {
886
+ }), r = h(() => {
889
887
  const i = /* @__PURE__ */ new Map();
890
- return s.options.forEach((b) => {
888
+ return a.options.forEach((b) => {
891
889
  if (!b.disabled) {
892
890
  if (b.children) {
893
891
  b.children.forEach((u) => {
@@ -899,8 +897,8 @@ const tt = /* @__PURE__ */ g({
899
897
  }
900
898
  }), i;
901
899
  });
902
- ie([
903
- le(s.modelValue),
900
+ re([
901
+ de(a.modelValue),
904
902
  r
905
903
  ], () => {
906
904
  (o.value === null || o.value === void 0) && r.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), o.value = r.value.keys().next().value);
@@ -910,7 +908,7 @@ const tt = /* @__PURE__ */ g({
910
908
  o.value = i[u];
911
909
  };
912
910
  return (i, b) => (p(), c("label", {
913
- class: h({
911
+ class: f({
914
912
  "top-select": !0,
915
913
  ["top-select-" + i.name]: i.name,
916
914
  ["top-size_" + i.size]: !0,
@@ -920,10 +918,10 @@ const tt = /* @__PURE__ */ g({
920
918
  }),
921
919
  "data-value": o.value,
922
920
  "data-top-icon": i.icon,
923
- "data-top-icon2": e.value
921
+ "data-top-icon2": t.value
924
922
  }, [
925
923
  S(w("select", {
926
- class: h({
924
+ class: f({
927
925
  "top-forms-focusable": !i.disabled,
928
926
  "top-select_select": !0,
929
927
  "top-select_arrow": !0,
@@ -933,69 +931,69 @@ const tt = /* @__PURE__ */ g({
933
931
  disabled: i.disabled,
934
932
  "onUpdate:modelValue": b[0] || (b[0] = (u) => o.value = u)
935
933
  }, [
936
- (p(!0), c(F, null, O(i.options.entries(), ([u, m]) => (p(), c(F, null, [
934
+ (p(!0), c(F, null, N(i.options.entries(), ([u, m]) => (p(), c(F, null, [
937
935
  m.children ? (p(), c("optgroup", {
938
936
  key: "group_" + m.value,
939
937
  label: m.title,
940
938
  disabled: m.disabled
941
939
  }, [
942
- (p(!0), c(F, null, O(m.children.entries(), ([$, z]) => (p(), c("option", {
940
+ (p(!0), c(F, null, N(m.children.entries(), ([$, z]) => (p(), c("option", {
943
941
  key: m.value,
944
942
  value: z.value,
945
943
  selected: z.value === o.value,
946
944
  disabled: z.disabled
947
- }, k(z.title), 9, St))), 128))
948
- ], 8, Mt)) : (p(), c("option", {
945
+ }, k(z.title), 9, Bt))), 128))
946
+ ], 8, Vt)) : (p(), c("option", {
949
947
  key: m.value,
950
948
  value: m.value,
951
949
  selected: m.value === o.value,
952
950
  disabled: m.disabled
953
- }, k(m.title), 9, Vt))
951
+ }, k(m.title), 9, zt))
954
952
  ], 64))), 256))
955
- ], 10, kt), [
956
- [re, o.value]
953
+ ], 10, St), [
954
+ [pe, o.value]
957
955
  ]),
958
956
  i.addChanger && r.value.size && !i.disabled ? (p(), c("span", {
959
957
  key: 0,
960
958
  class: "top-changer",
961
959
  onClick: l
962
960
  })) : v("", !0),
963
- i.title ? (p(), c("span", Bt, k(i.title), 1)) : v("", !0)
964
- ], 10, _t));
961
+ i.title ? (p(), c("span", Lt, k(i.title), 1)) : v("", !0)
962
+ ], 10, Mt));
965
963
  }
966
- }), Lt = {
964
+ }), Et = {
967
965
  "top-select": "top-select",
968
966
  "top-select-error": "top-select-error",
969
967
  "top-select_select": "top-select_select",
970
968
  "top-changer": "top-changer"
971
- }, Et = {
972
- $style: Lt
973
- }, jt = /* @__PURE__ */ y(zt, [["__cssModules", Et]]);
969
+ }, Rt = {
970
+ $style: Et
971
+ }, Gt = /* @__PURE__ */ y(Tt, [["__cssModules", Rt]]);
974
972
  export {
975
- Pt as B,
973
+ Nt as B,
976
974
  d as C,
977
- ge as E,
978
- Ge as H,
979
- j as I,
980
- Ut as T,
975
+ we as E,
976
+ Qe as H,
977
+ U as I,
978
+ Yt as T,
981
979
  y as _,
982
- pe as a,
983
- ue as b,
984
- ce as c,
980
+ ce as a,
981
+ me as b,
982
+ be as c,
985
983
  R as d,
986
- Ft as e,
987
- _e as f,
988
- Dt as g,
989
- U as h,
990
- de as i,
991
- At as j,
992
- Wt as k,
984
+ Ct as e,
985
+ Me as f,
986
+ At as g,
987
+ I as h,
988
+ ue as i,
989
+ Wt as j,
990
+ Ot as k,
993
991
  P as l,
994
- Nt as m,
995
- Ot as n,
996
- It as o,
997
- jt as p,
998
- Ht as r,
999
- Ct as s
992
+ Ht as m,
993
+ It as n,
994
+ jt as o,
995
+ Gt as p,
996
+ Ut as r,
997
+ Pt as s
1000
998
  };
1001
- //# sourceMappingURL=forms-260b848a.es.js.map
999
+ //# sourceMappingURL=forms-iL1swNCF.es.js.map