@topvisor/ui 0.9.37 → 1.0.0-rc-2

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 (234) hide show
  1. package/.chunks/datepicker-C-d1Do_N.amd.js +248 -0
  2. package/.chunks/datepicker-C-d1Do_N.amd.js.map +1 -0
  3. package/.chunks/datepicker-DTNYG8Iy.es.js +290 -0
  4. package/.chunks/datepicker-DTNYG8Iy.es.js.map +1 -0
  5. package/.chunks/debounce-4ipCj607.amd.js +2 -0
  6. package/.chunks/debounce-4ipCj607.amd.js.map +1 -0
  7. package/.chunks/debounce-BISRz08p.es.js +116 -0
  8. package/.chunks/debounce-BISRz08p.es.js.map +1 -0
  9. package/.chunks/forms--Ye61xQ5.amd.js +3 -0
  10. package/.chunks/forms--Ye61xQ5.amd.js.map +1 -0
  11. package/.chunks/{forms-BZoPbSQt.es.js → forms-NfVxcPud.es.js} +241 -227
  12. package/.chunks/forms-NfVxcPud.es.js.map +1 -0
  13. package/.chunks/i18n-C_OH9IT3.amd.js +2 -0
  14. package/.chunks/i18n-C_OH9IT3.amd.js.map +1 -0
  15. package/.chunks/i18n-DuTvft1T.es.js +26 -0
  16. package/.chunks/i18n-DuTvft1T.es.js.map +1 -0
  17. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BToGplRR.es.js +174 -0
  18. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BToGplRR.es.js.map +1 -0
  19. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BsrusTUW.amd.js +2 -0
  20. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BsrusTUW.amd.js.map +1 -0
  21. package/.chunks/{menu-DDYYS64d.es.js → menu-ChmT8cWp.es.js} +30 -32
  22. package/.chunks/menu-ChmT8cWp.es.js.map +1 -0
  23. package/.chunks/menu-Gnm18ZCc.amd.js +2 -0
  24. package/.chunks/menu-Gnm18ZCc.amd.js.map +1 -0
  25. package/.chunks/{popup-BFJ2eTTB.amd.js → popup-Dwf3PJQf.amd.js} +447 -441
  26. package/.chunks/popup-Dwf3PJQf.amd.js.map +1 -0
  27. package/.chunks/{popup-Bc6YggdE.es.js → popup-_a1ivPRI.es.js} +491 -485
  28. package/.chunks/popup-_a1ivPRI.es.js.map +1 -0
  29. package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
  30. package/.chunks/store-esTid5oI.amd.js.map +1 -1
  31. package/README.md +86 -86
  32. package/assets/core.css +1 -1
  33. package/assets/forms.css +1 -1
  34. package/assets/listItem.css +1 -1
  35. package/assets/menu.css +1 -1
  36. package/common/common.d.ts +1 -1
  37. package/components/forms/avatar/avatar.vue.d.ts +12 -12
  38. package/components/forms/button/button.d.ts +14 -2
  39. package/components/forms/button/button.vue.d.ts +11 -12
  40. package/components/forms/checkbox/checkbox.vue.d.ts +19 -43
  41. package/components/forms/controlLabel/controlLabel.vue.d.ts +7 -8
  42. package/components/forms/forms.d.ts +0 -1
  43. package/components/forms/hint/hint.vue.d.ts +2 -3
  44. package/components/forms/input/input.d.ts +0 -1
  45. package/components/forms/input/input.vue.d.ts +11 -12
  46. package/components/forms/inputDate/inputDate.d.ts +0 -1
  47. package/components/forms/inputDate/inputDate.vue.d.ts +11 -12
  48. package/components/forms/radio/radio.vue.d.ts +8 -9
  49. package/components/forms/select/select.d.ts +0 -1
  50. package/components/forms/select/select.vue.d.ts +31 -69
  51. package/components/forms/select/stories/exampleOptions.d.ts +0 -1
  52. package/components/forms/switcher/switcher.vue.d.ts +8 -9
  53. package/components/forms/textarea/textarea.vue.d.ts +11 -12
  54. package/components/formsExt/editArea/editArea.d.ts +0 -1
  55. package/components/formsExt/editArea/editArea.vue.d.ts +13 -14
  56. package/components/formsExt/editInput/editInput.d.ts +0 -1
  57. package/components/formsExt/editInput/editInput.vue.d.ts +3 -4
  58. package/components/formsExt/formsExt.d.ts +0 -1
  59. package/components/formsExt/menu/menu.d.ts +0 -1
  60. package/components/formsExt/menu/menu.vue.d.ts +32 -48
  61. package/components/formsExt/menu/stories/items.d.ts +0 -1
  62. package/components/formsExt/radioGroup/radioGroup.d.ts +0 -1
  63. package/components/formsExt/radioGroup/radioGroup.vue.d.ts +31 -42
  64. package/components/formsExt/selector2/api.d.ts +0 -1
  65. package/components/formsExt/selector2/itemMulti.vue.d.ts +3 -4
  66. package/components/formsExt/selector2/selector2.d.ts +0 -1
  67. package/components/formsExt/selector2/selector2.vue.d.ts +37 -117
  68. package/components/popup/alert/alert.d.ts +8 -0
  69. package/components/popup/alert/alert.vue.d.ts +33 -0
  70. package/components/popup/confirm/confirm.d.ts +21 -0
  71. package/components/popup/confirm/confirm.vue.d.ts +35 -0
  72. package/components/popup/lib/popup.d.ts +0 -1
  73. package/components/popup/lib/worker.d.ts +4 -5
  74. package/components/popup/popup/listItem.vue.d.ts +11 -12
  75. package/components/popup/popup/opener.vue.d.ts +13 -14
  76. package/components/popup/popup/popup.d.ts +8 -2
  77. package/components/popup/popup/popup.vue.d.ts +13 -14
  78. package/components/popup/popup/widgetInput.vue.d.ts +32 -82
  79. package/components/popup/popup.d.ts +6 -1
  80. package/components/popup/prompt/prompt.d.ts +21 -0
  81. package/components/popup/prompt/prompt.vue.d.ts +35 -0
  82. package/components/project/project.d.ts +0 -1
  83. package/components/project/selectorCompetitors/composables.d.ts +0 -1
  84. package/components/project/selectorCompetitors/selectorCompetitors.d.ts +0 -1
  85. package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +32 -24
  86. package/components/tabs/tabs/content.vue.d.ts +7 -8
  87. package/components/tabs/tabs/tab.vue.d.ts +7 -8
  88. package/components/tabs/tabs/tabs.vue.d.ts +7 -8
  89. package/components/tabs/tabs.d.ts +0 -1
  90. package/components/tabsView/tabsView/menu.vue.d.ts +22 -14
  91. package/components/tabsView/tabsView/menuItem.vue.d.ts +12 -12
  92. package/components/tabsView/tabsView/menuTitle.vue.d.ts +8 -8
  93. package/components/tabsView/tabsView/store.d.ts +1 -2
  94. package/components/tabsView/tabsView/tabsView.d.ts +0 -1
  95. package/components/tabsView/tabsView/tabsView.vue.d.ts +34 -34
  96. package/components/tabsView/tabsView.d.ts +0 -1
  97. package/core/app.amd.js +1 -1
  98. package/core/app.amd.js.map +1 -1
  99. package/core/app.d.ts +0 -1
  100. package/core/app.js +23 -21
  101. package/core/app.js.map +1 -1
  102. package/core/core/core.d.ts +14 -0
  103. package/core/core.amd.js +1 -1
  104. package/core/core.d.ts +2 -1
  105. package/core/core.js +1 -1
  106. package/core/directives/focus.d.ts +0 -1
  107. package/core/directives/sticky.d.ts +0 -1
  108. package/core/directives/swimUp.d.ts +0 -1
  109. package/core/directives/tooltip.d.ts +0 -1
  110. package/core/plugins/core.d.ts +0 -1
  111. package/core/plugins/i18n.d.ts +0 -1
  112. package/core/plugins/piniaTPA.d.ts +0 -1
  113. package/core/utils/lodash.d.ts +6 -0
  114. package/core/utils/price.d.ts +0 -1
  115. package/core/utils/store/localStorage.d.ts +0 -1
  116. package/core/utils/store/plugin.d.ts +0 -1
  117. package/core/utils/store/store.d.ts +0 -1
  118. package/forms/forms.amd.js +1 -1
  119. package/forms/forms.d.ts +1 -0
  120. package/forms/forms.js +1 -1
  121. package/forms/helpers.amd.js.map +1 -1
  122. package/forms/helpers.d.ts +1 -0
  123. package/forms/helpers.js.map +1 -1
  124. package/formsExt/formsExt.amd.js +1 -1
  125. package/formsExt/formsExt.amd.js.map +1 -1
  126. package/formsExt/formsExt.d.ts +1 -0
  127. package/formsExt/formsExt.js +3 -3
  128. package/formsExt/formsExt.js.map +1 -1
  129. package/icomoon/Read Me.txt +7 -7
  130. package/icomoon/demo-files/demo.css +161 -161
  131. package/icomoon/demo-files/demo.js +30 -30
  132. package/icomoon/demo.html +3379 -3379
  133. package/icomoon/fonts/Topvisor-2.svg +263 -263
  134. package/icomoon/style.css +740 -740
  135. package/package.json +36 -37
  136. package/popup/popup.amd.js +1 -1
  137. package/popup/popup.amd.js.map +1 -1
  138. package/popup/popup.d.ts +1 -0
  139. package/popup/popup.js +219 -21
  140. package/popup/popup.js.map +1 -1
  141. package/popup/worker.amd.js +1 -1
  142. package/popup/worker.amd.js.map +1 -1
  143. package/popup/worker.d.ts +3 -0
  144. package/popup/worker.js +2 -2
  145. package/popup/worker.js.map +1 -1
  146. package/project/project.amd.js +1 -1
  147. package/project/project.amd.js.map +1 -1
  148. package/project/project.d.ts +1 -0
  149. package/project/project.js +20 -20
  150. package/project/project.js.map +1 -1
  151. package/require/css.amd.js +12 -12
  152. package/tabs/tabs.amd.js +1 -1
  153. package/tabs/tabs.amd.js.map +1 -1
  154. package/tabs/tabs.d.ts +1 -0
  155. package/tabs/tabs.js +1 -1
  156. package/tabs/tabs.js.map +1 -1
  157. package/tabsView/tabsView.amd.js +1 -1
  158. package/tabsView/tabsView.amd.js.map +1 -1
  159. package/tabsView/tabsView.d.ts +1 -0
  160. package/tabsView/tabsView.js +1 -1
  161. package/tabsView/tabsView.js.map +1 -1
  162. package/utils/check.amd.js.map +1 -1
  163. package/utils/check.d.ts +1 -0
  164. package/utils/check.js.map +1 -1
  165. package/utils/clipboard.amd.js.map +1 -1
  166. package/utils/clipboard.d.ts +1 -0
  167. package/utils/clipboard.js.map +1 -1
  168. package/utils/date.amd.js +1 -1
  169. package/utils/date.d.ts +1 -0
  170. package/utils/date.js +2 -2
  171. package/utils/device.amd.js +1 -1
  172. package/utils/device.d.ts +1 -0
  173. package/utils/device.js +1 -1
  174. package/utils/dom.amd.js.map +1 -1
  175. package/utils/dom.d.ts +3 -0
  176. package/utils/dom.js.map +1 -1
  177. package/utils/image.amd.js.map +1 -1
  178. package/utils/image.d.ts +1 -0
  179. package/utils/image.js.map +1 -1
  180. package/utils/keyboard.amd.js.map +1 -1
  181. package/utils/keyboard.d.ts +1 -0
  182. package/utils/keyboard.js.map +1 -1
  183. package/utils/lodash.amd.js +2 -0
  184. package/utils/lodash.amd.js.map +1 -0
  185. package/utils/lodash.d.ts +2 -0
  186. package/utils/lodash.js +706 -0
  187. package/utils/lodash.js.map +1 -0
  188. package/utils/number.amd.js.map +1 -1
  189. package/utils/number.d.ts +1 -0
  190. package/utils/number.js.map +1 -1
  191. package/utils/price.amd.js +1 -1
  192. package/utils/price.amd.js.map +1 -1
  193. package/utils/price.d.ts +1 -0
  194. package/utils/price.js +2 -2
  195. package/utils/price.js.map +1 -1
  196. package/utils/route.amd.js.map +1 -1
  197. package/utils/route.d.ts +1 -0
  198. package/utils/route.js.map +1 -1
  199. package/utils/scroll.amd.js.map +1 -1
  200. package/utils/scroll.d.ts +1 -0
  201. package/utils/scroll.js.map +1 -1
  202. package/utils/store.d.ts +1 -0
  203. package/utils/string.amd.js +1 -1
  204. package/utils/string.amd.js.map +1 -1
  205. package/utils/string.d.ts +1 -0
  206. package/utils/string.js +1 -1
  207. package/utils/string.js.map +1 -1
  208. package/utils/system.amd.js.map +1 -1
  209. package/utils/system.d.ts +1 -0
  210. package/utils/system.js.map +1 -1
  211. package/utils/url.amd.js.map +1 -1
  212. package/utils/url.d.ts +1 -0
  213. package/utils/url.js.map +1 -1
  214. package/web-types.json +72 -72
  215. package/.chunks/datepicker-CcRVcC5P.es.js +0 -290
  216. package/.chunks/datepicker-CcRVcC5P.es.js.map +0 -1
  217. package/.chunks/datepicker-D_95vv2c.amd.js +0 -248
  218. package/.chunks/datepicker-D_95vv2c.amd.js.map +0 -1
  219. package/.chunks/forms-BZoPbSQt.es.js.map +0 -1
  220. package/.chunks/forms-KR6uVX5Z.amd.js +0 -3
  221. package/.chunks/forms-KR6uVX5Z.amd.js.map +0 -1
  222. package/.chunks/i18n-eDh3Aaw9.amd.js +0 -2
  223. package/.chunks/i18n-eDh3Aaw9.amd.js.map +0 -1
  224. package/.chunks/i18n-qpB8zyhD.es.js +0 -20
  225. package/.chunks/i18n-qpB8zyhD.es.js.map +0 -1
  226. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-4m2ZOlaP.amd.js +0 -2
  227. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-4m2ZOlaP.amd.js.map +0 -1
  228. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C2uuAtpx.es.js +0 -161
  229. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C2uuAtpx.es.js.map +0 -1
  230. package/.chunks/menu-CNIQ9vFJ.amd.js +0 -2
  231. package/.chunks/menu-CNIQ9vFJ.amd.js.map +0 -1
  232. package/.chunks/menu-DDYYS64d.es.js.map +0 -1
  233. package/.chunks/popup-BFJ2eTTB.amd.js.map +0 -1
  234. package/.chunks/popup-Bc6YggdE.es.js.map +0 -1
@@ -1,25 +1,25 @@
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() {
1
+ import { reactive as I, defineComponent as v, useCssVars as G, computed as w, openBlock as u, createElementBlock as f, createElementVNode as S, createCommentVNode as h, createBlock as T, resolveDynamicComponent as ee, normalizeClass as g, withCtx as L, renderSlot as k, createTextVNode as te, toDisplayString as V, mergeModels as C, useModel as Q, withDirectives as W, vModelCheckbox as J, mergeProps as D, withKeys as oe, vModelText as Z, withModifiers as se, onUnmounted as ae, ref as ne, unref as A, vModelRadio as ie, resolveDirective as re, watch as le, Fragment as N, renderList as F, vModelSelect as de } from "vue";
2
+ function pe() {
3
3
  return "devicePixelRatio" in window && window.devicePixelRatio > 1;
4
4
  }
5
- function pe() {
5
+ function ue() {
6
6
  return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
7
7
  }
8
- function ue() {
8
+ function ce() {
9
9
  return navigator.userAgent.indexOf("Topvisor_App") != -1;
10
10
  }
11
- function ce() {
11
+ function me() {
12
12
  return navigator.userAgent.indexOf("Mac OS X") !== -1;
13
13
  }
14
- function Ut() {
14
+ function Xt() {
15
15
  const t = /Chrome|Android/.test(navigator.userAgent);
16
16
  let a = /Safari/.test(navigator.userAgent);
17
17
  return t && a && (a = !1), a;
18
18
  }
19
- function Xt() {
20
- return ce() ? "⌘" : "Ctrl";
19
+ function Yt() {
20
+ return me() ? "⌘" : "Ctrl";
21
21
  }
22
- const Yt = () => $(document).scrollTop(), qt = () => $(document), Gt = () => [document], me = () => {
22
+ const qt = () => $(document).scrollTop(), Kt = () => $(document), Gt = () => [document], fe = () => {
23
23
  const t = [
24
24
  ["iOS", /(iPhone|iPad)/i],
25
25
  ["Android", /(Android)/i],
@@ -52,15 +52,15 @@ const Yt = () => $(document).scrollTop(), qt = () => $(document), Gt = () => [do
52
52
  break;
53
53
  }
54
54
  return a;
55
- }, Kt = async () => {
55
+ }, Qt = async () => {
56
56
  var a;
57
- let t = me();
57
+ let t = fe();
58
58
  if (t === "Windows 10") {
59
59
  const o = await ((a = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : a.getHighEntropyValues(["platformVersion"]));
60
60
  o && o.platformVersion >= "13" && (t = "Windows 11");
61
61
  }
62
62
  return t;
63
- }, fe = 100;
63
+ }, be = 100;
64
64
  let U;
65
65
  const H = /* @__PURE__ */ new Map(), z = {
66
66
  width: window.innerWidth,
@@ -69,24 +69,24 @@ const H = /* @__PURE__ */ new Map(), z = {
69
69
  function he(t) {
70
70
  H.set(t, t);
71
71
  }
72
- function be(t) {
72
+ function ge(t) {
73
73
  H.delete(t);
74
74
  }
75
- function ge(t) {
75
+ function we(t) {
76
76
  clearTimeout(U), U = setTimeout(function() {
77
77
  t.topEvent = {
78
78
  widthDiff: z.width - window.innerWidth,
79
79
  hightDiff: z.height - window.innerHeight
80
80
  }, z.width = window.innerWidth, z.height = window.innerHeight, H.forEach((a) => a(t));
81
- }, fe);
81
+ }, be);
82
82
  }
83
- window.addEventListener("resize", ge);
84
- const we = {
83
+ window.addEventListener("resize", we);
84
+ const X = {
85
85
  addOnReize: he,
86
- removeOnResize: be
86
+ removeOnResize: ge
87
87
  };
88
- var q;
89
- const C = {
88
+ var K;
89
+ const R = {
90
90
  /**
91
91
  * Базовая ширина страницы для отображения ПК / Мобильной версии сайта
92
92
  */
@@ -102,11 +102,11 @@ const C = {
102
102
  /**
103
103
  * Для Москвы: +0300
104
104
  */
105
- gmt: (q = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : q[1]
105
+ gmt: (K = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : K[1]
106
106
  }, ye = {
107
- dateFormat: C.dateFormat,
108
- currency: C.currency,
109
- gmt: C.gmt,
107
+ dateFormat: R.dateFormat,
108
+ currency: R.currency,
109
+ gmt: R.gmt,
110
110
  /**
111
111
  * Device by size
112
112
  * @see widthForMobile
@@ -154,8 +154,9 @@ class c {
154
154
  static widthForMobile = 900;
155
155
  static matchMediaIsMobile;
156
156
  static $ = window.$;
157
+ static Events = X;
157
158
  static _setState() {
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();
159
+ c.matchMediaIsMobile = window.matchMedia(`(max-width: ${c.widthForMobile}px)`), c.state.isMobileUA = ue(), c.state.isRetina = pe(), c.state.isApp = ce(), c.setStateByWindowSize(), X.addOnReize(c.onResize), c.onResize(), c.saveToCookie();
159
160
  }
160
161
  static onResize() {
161
162
  c.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
@@ -222,8 +223,8 @@ class c {
222
223
  const d = "topCSSLink-" + e.replace(/\W/g, "-");
223
224
  if (window.hasOwnProperty(d)) return;
224
225
  let i, m;
225
- const r = new Promise((p, h) => {
226
- i = p, m = h;
226
+ const r = new Promise((p, b) => {
227
+ i = p, m = b;
227
228
  });
228
229
  s.push(r);
229
230
  const l = document.createElement("link");
@@ -261,30 +262,30 @@ class c {
261
262
  s.innerHTML = a, s.media = n, document.head.append(s);
262
263
  };
263
264
  }
264
- const T = window.L ?? {}, Qt = (t, a, o) => {
265
+ const M = window.L ?? {}, Jt = (t, a, o) => {
265
266
  switch (new Date(t, a, o).getDay()) {
266
267
  case 0:
267
- return T.Vs + ".";
268
+ return M.Vs + ".";
268
269
  case 1:
269
- return T.Pn + ".";
270
+ return M.Pn + ".";
270
271
  case 2:
271
- return T.Vt + ".";
272
+ return M.Vt + ".";
272
273
  case 3:
273
- return T.Sr + ".";
274
+ return M.Sr + ".";
274
275
  case 4:
275
- return T.Ct + ".";
276
+ return M.Ct + ".";
276
277
  case 5:
277
- return T.Pt + ".";
278
+ return M.Pt + ".";
278
279
  case 6:
279
- return T.Sb + ".";
280
+ return M.Sb + ".";
280
281
  default:
281
282
  return "";
282
283
  }
283
- }, Jt = (t, a = !0, o = 2) => {
284
+ }, Zt = (t, a = !0, o = 2) => {
284
285
  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
286
  return o >= 1 && (r += " " + d), o >= 2 && (r += ":" + i), o === 3 && (r += ":" + m), a && (r = B(r, o)), r;
286
287
  };
287
- function Zt(t) {
288
+ function jt(t) {
288
289
  return t.indexOf("T") === -1 && (t.length == 10 && (t += " 00:00:00"), t = t.replace(" ", "T") + c.state.gmt), new Date(t);
289
290
  }
290
291
  function ve(t, a = !0, o = 0) {
@@ -293,12 +294,12 @@ function ve(t, a = !0, o = 0) {
293
294
  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
295
  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;
295
296
  }
296
- function jt(t, a = !0) {
297
+ function xt(t, a = !0) {
297
298
  const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, s = 3 * 60 * 60 * 1e3;
298
299
  let e;
299
300
  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;
301
+ 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"), b = d + "-" + m + "-" + i + " " + r + ":" + l + ":" + p;
302
+ return a && (b = B(b)), b;
302
303
  }
303
304
  function B(t, a = 2, o, n = c.L.Not_date) {
304
305
  if (typeof t == "string" && (!t || t.substring(0, 10) === "0000-00-00") && n && n !== "0000-00-00" || !t) return n;
@@ -336,7 +337,7 @@ function B(t, a = 2, o, n = c.L.Not_date) {
336
337
  }
337
338
  return e = e.trim(), e;
338
339
  }
339
- function X(t, a = c.L.Not_date) {
340
+ function Y(t, a = c.L.Not_date) {
340
341
  if (!t)
341
342
  return a;
342
343
  if (t.match(/\d\d\d\d-\d\d-\d\d/))
@@ -374,15 +375,15 @@ const $e = { class: "top-avatar" }, Se = ["src", "title"], _e = ["title"], ke =
374
375
  },
375
376
  setup(t) {
376
377
  G((s) => ({
377
- "2d3ea0e8": s.size + "px"
378
+ "4394695c": s.size + "px"
378
379
  }));
379
- const a = t, o = b(() => {
380
+ const a = t, o = w(() => {
380
381
  var s, e;
381
382
  if (a.isOnline)
382
383
  return (s = a.i18n) == null ? void 0 : s.Online;
383
384
  if (a.lastActiveTime)
384
385
  return ((e = a.i18n) == null ? void 0 : e.LastSeen) + ": " + B(a.lastActiveTime, 2);
385
- }), n = b(() => a.nickname ? a.nickname + (o.value ? `
386
+ }), n = w(() => a.nickname ? a.nickname + (o.value ? `
386
387
  ${o.value}` : "") : o.value);
387
388
  return (s, e) => (u(), f("div", $e, [
388
389
  S("img", {
@@ -395,10 +396,10 @@ ${o.value}` : "") : o.value);
395
396
  key: 0,
396
397
  class: "top-avatar_status",
397
398
  title: o.value
398
- }, null, 8, _e)) : g("", !0)
399
+ }, null, 8, _e)) : h("", !0)
399
400
  ]));
400
401
  }
401
- }), Me = {
402
+ }), Te = {
402
403
  "top-avatar": "top-avatar",
403
404
  "top-avatar_image": "top-avatar_image",
404
405
  "top-avatar_status": "top-avatar_status"
@@ -407,12 +408,12 @@ ${o.value}` : "") : o.value);
407
408
  for (const [n, s] of a)
408
409
  o[n] = s;
409
410
  return o;
410
- }, Te = {
411
- $style: Me
412
- }, Ve = /* @__PURE__ */ y(ke, [["__cssModules", Te]]), We = {
413
- key: 0,
411
+ }, Me = {
412
+ $style: Te
413
+ }, Ve = /* @__PURE__ */ y(ke, [["__cssModules", Me]]), We = ["data-top-badge"], Be = {
414
+ key: 1,
414
415
  class: "top-ellipsis"
415
- }, Be = /* @__PURE__ */ v({
416
+ }, Le = /* @__PURE__ */ v({
416
417
  __name: "button",
417
418
  props: {
418
419
  color: { default: "blue" },
@@ -423,15 +424,17 @@ ${o.value}` : "") : o.value);
423
424
  icon: {},
424
425
  icon2: {},
425
426
  href: {},
427
+ badgeNumber: {},
428
+ badgePosAfterText: { type: Boolean },
426
429
  disabled: { type: Boolean },
427
430
  isSubmit: { type: Boolean },
428
431
  isActive: { type: Boolean },
429
432
  isProgress: { type: Boolean }
430
433
  },
431
434
  setup(t) {
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
+ const a = t, o = w(() => a.href ? "a" : "button"), n = w(() => a.isSubmit ? "submit" : void 0);
436
+ return (s, e) => (u(), T(ee(o.value), {
437
+ class: g({
435
438
  "top-active": s.isActive,
436
439
  "top-disabled": s.disabled,
437
440
  "top-forms-focusable": !s.disabled,
@@ -452,21 +455,28 @@ ${o.value}` : "") : o.value);
452
455
  inProgress: s.isProgress
453
456
  }, {
454
457
  default: L(() => [
455
- s.$slots.default ? (u(), f("span", We, [
458
+ s.badgeNumber ? (u(), f("span", {
459
+ key: 0,
460
+ "data-top-badge": s.badgeNumber,
461
+ class: g(["top-button_badge", {
462
+ "top-button_badge-afterText": s.badgePosAfterText
463
+ }])
464
+ }, null, 10, We)) : h("", !0),
465
+ s.$slots.default ? (u(), f("span", Be, [
456
466
  k(s.$slots, "default", {}, () => [
457
- ee(V(s.icon ? "" : "Button"), 1)
467
+ te(V(s.icon ? "" : "Button"), 1)
458
468
  ])
459
- ])) : g("", !0),
469
+ ])) : h("", !0),
460
470
  k(s.$slots, "html")
461
471
  ]),
462
472
  _: 3
463
473
  }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
464
474
  }
465
- }), Le = "_progress_1f1nw_1", Ee = {
475
+ }), Ee = "_progress_13336_1", ze = {
466
476
  "top-button": "top-button",
467
477
  "top-active": "top-active",
468
478
  "top-button-progress": "top-button-progress",
469
- progress: Le,
479
+ progress: Ee,
470
480
  "top-button-withoutText": "top-button-withoutText",
471
481
  "top-color_blue": "top-color_blue",
472
482
  "top-color_green": "top-color_green",
@@ -477,20 +487,23 @@ ${o.value}` : "") : o.value);
477
487
  "top-style_outline": "top-style_outline",
478
488
  "top-style_soft": "top-style_soft",
479
489
  "top-style_transparent": "top-style_transparent",
490
+ "top-ellipsis": "top-ellipsis",
491
+ "top-size_xs": "top-size_xs",
492
+ "top-size_m": "top-size_m",
480
493
  "top-size_l": "top-size_l",
481
- "top-size_xl": "top-size_xl"
482
- }, ze = {
483
- $style: Ee
484
- }, De = /* @__PURE__ */ y(Be, [["__cssModules", ze]]), Pe = { class: "top-forms-optionLabel" }, Ae = /* @__PURE__ */ v({
494
+ "top-button_badge-afterText": "top-button_badge-afterText"
495
+ }, De = {
496
+ $style: ze
497
+ }, Pe = /* @__PURE__ */ y(Le, [["__cssModules", De]]), Ae = { class: "top-forms-optionLabel" }, Ne = /* @__PURE__ */ v({
485
498
  __name: "controlLabel",
486
499
  props: {
487
500
  description: {},
488
501
  disabled: { type: Boolean }
489
502
  },
490
503
  setup(t) {
491
- return (a, o) => (u(), f("div", Pe, [
504
+ return (a, o) => (u(), f("div", Ae, [
492
505
  S("div", {
493
- class: w({
506
+ class: g({
494
507
  "top-forms-optionLabel_title": !0,
495
508
  "top-forms-optionLabel_title-disabled": a.disabled
496
509
  })
@@ -499,8 +512,8 @@ ${o.value}` : "") : o.value);
499
512
  ], 2),
500
513
  a.description ? (u(), f("div", {
501
514
  key: 0,
502
- class: w(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": a.disabled }])
503
- }, V(a.description), 3)) : g("", !0)
515
+ class: g(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": a.disabled }])
516
+ }, V(a.description), 3)) : h("", !0)
504
517
  ]));
505
518
  }
506
519
  }), Re = {
@@ -511,9 +524,9 @@ ${o.value}` : "") : o.value);
511
524
  "top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
512
525
  }, Ce = {
513
526
  $style: Re
514
- }, P = /* @__PURE__ */ y(Ae, [["__cssModules", Ce]]), Ne = ["name", "value", "indeterminate", "disabled"], Oe = /* @__PURE__ */ v({
527
+ }, P = /* @__PURE__ */ y(Ne, [["__cssModules", Ce]]), Oe = ["name", "value", "indeterminate", "disabled"], He = /* @__PURE__ */ v({
515
528
  __name: "checkbox",
516
- props: /* @__PURE__ */ N({
529
+ props: /* @__PURE__ */ C({
517
530
  modelValue: { type: [Boolean, Array, Set] },
518
531
  name: {},
519
532
  value: {},
@@ -527,9 +540,9 @@ ${o.value}` : "") : o.value);
527
540
  }),
528
541
  emits: ["update:modelValue"],
529
542
  setup(t) {
530
- const a = K(t, "modelValue");
543
+ const a = Q(t, "modelValue");
531
544
  return (o, n) => (u(), f("label", {
532
- class: w({
545
+ class: g({
533
546
  "top-forms-optionWrapper": !0,
534
547
  "top-checkbox": !0,
535
548
  ["top-checkbox_" + o.name]: !!o.name,
@@ -539,7 +552,7 @@ ${o.value}` : "") : o.value);
539
552
  }, [
540
553
  W(S("input", {
541
554
  type: "checkbox",
542
- class: w({
555
+ class: g({
543
556
  "top-forms-focusable": !o.disabled,
544
557
  "top-forms-option": !0,
545
558
  "top-checkbox_input": !0,
@@ -550,10 +563,10 @@ ${o.value}` : "") : o.value);
550
563
  value: o.value,
551
564
  indeterminate: o.indeterminate,
552
565
  disabled: o.disabled
553
- }, null, 10, Ne), [
554
- [Q, a.value]
566
+ }, null, 10, Oe), [
567
+ [J, a.value]
555
568
  ]),
556
- o.$slots.default ? (u(), M(P, {
569
+ o.$slots.default ? (u(), T(P, {
557
570
  key: 0,
558
571
  description: o.description,
559
572
  disabled: o.disabled
@@ -562,16 +575,16 @@ ${o.value}` : "") : o.value);
562
575
  k(o.$slots, "default")
563
576
  ]),
564
577
  _: 3
565
- }, 8, ["description", "disabled"])) : g("", !0)
578
+ }, 8, ["description", "disabled"])) : h("", !0)
566
579
  ], 2));
567
580
  }
568
- }), He = {
581
+ }), Ie = {
569
582
  "top-checkbox": "top-checkbox",
570
583
  "top-checkbox_input": "top-checkbox_input",
571
584
  "top-error": "top-error"
572
- }, Ie = {
573
- $style: He
574
- }, Fe = /* @__PURE__ */ y(Oe, [["__cssModules", Ie]]), Ue = ["title"], Xe = /* @__PURE__ */ v({
585
+ }, Fe = {
586
+ $style: Ie
587
+ }, Ue = /* @__PURE__ */ y(He, [["__cssModules", Fe]]), Xe = ["title"], Ye = /* @__PURE__ */ v({
575
588
  __name: "hint",
576
589
  props: {
577
590
  hint: {}
@@ -581,24 +594,24 @@ ${o.value}` : "") : o.value);
581
594
  class: "top-hint",
582
595
  "data-top-icon": "",
583
596
  title: a.hint
584
- }, null, 8, Ue));
597
+ }, null, 8, Xe));
585
598
  }
586
- }), Ye = {
599
+ }), qe = {
587
600
  "top-hint": "top-hint"
588
- }, qe = {
589
- $style: Ye
590
- }, Z = /* @__PURE__ */ y(Xe, [["__cssModules", qe]]), Ge = {
601
+ }, Ke = {
602
+ $style: qe
603
+ }, j = /* @__PURE__ */ y(Ye, [["__cssModules", Ke]]), Ge = {
591
604
  "top-loadbar": "top-loadbar"
592
- }, Ke = {}, Qe = { class: "top-loadbar" };
593
- function Je(t, a) {
594
- return u(), f("div", Qe);
605
+ }, Qe = {}, Je = { class: "top-loadbar" };
606
+ function Ze(t, a) {
607
+ return u(), f("div", Je);
595
608
  }
596
- const Ze = {
609
+ const je = {
597
610
  $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 = {
611
+ }, x = /* @__PURE__ */ y(Qe, [["render", Ze], ["__cssModules", je]]), xe = ["data-top-icon", "data-top-icon2"], et = ["name", "title", "placeholder", "disabled", "readonly"], tt = {
599
612
  key: 2,
600
613
  class: "top-formsCaption"
601
- }, tt = /* @__PURE__ */ v({
614
+ }, ot = /* @__PURE__ */ v({
602
615
  inheritAttrs: !1,
603
616
  __name: "input",
604
617
  props: {
@@ -618,18 +631,18 @@ const Ze = {
618
631
  },
619
632
  emits: ["update:modelValue"],
620
633
  setup(t, { emit: a }) {
621
- const o = t, n = a, s = b({
634
+ const o = t, n = a, s = w({
622
635
  get() {
623
636
  return o.modelValue;
624
637
  },
625
638
  set(i) {
626
639
  n("update:modelValue", i);
627
640
  }
628
- }), e = b(() => o.addCleaner && !o.title || o.captionType !== "" ? "" : o.title), d = (i) => {
641
+ }), e = w(() => o.addCleaner && !o.title || o.captionType !== "" ? "" : o.title), d = (i) => {
629
642
  o.modelValue && i.stopPropagation(), n("update:modelValue", "");
630
643
  };
631
644
  return (i, m) => (u(), f("label", {
632
- class: w({
645
+ class: g({
633
646
  "top-input": !0,
634
647
  ["top-size_" + i.size]: !0,
635
648
  "top-disabled": i.disabled,
@@ -641,7 +654,7 @@ const Ze = {
641
654
  "data-top-icon": i.icon,
642
655
  "data-top-icon2": i.icon2
643
656
  }, [
644
- i.isLoading ? (u(), M(j, { key: 0 })) : g("", !0),
657
+ i.isLoading ? (u(), T(x, { key: 0 })) : h("", !0),
645
658
  W(S("input", D({
646
659
  type: "text",
647
660
  class: {
@@ -657,32 +670,32 @@ const Ze = {
657
670
  placeholder: e.value,
658
671
  disabled: i.disabled,
659
672
  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]
673
+ onKeydown: m[1] || (m[1] = oe((r) => (i.addCleaner || !!i.$slots.btn) && d(r), ["esc"]))
674
+ }, i.$attrs), null, 16, et), [
675
+ [Z, s.value]
663
676
  ]),
664
677
  i.addCleaner && s.value && s.value !== "0000-00-00" ? (u(), f("span", {
665
678
  key: 1,
666
679
  class: "top-input_cleaner",
667
680
  "data-top-icon": "",
668
- onClick: oe(d, ["prevent"])
669
- })) : g("", !0),
670
- i.captionType !== "" ? (u(), f("span", et, V(i.title), 1)) : g("", !0),
681
+ onClick: se(d, ["prevent"])
682
+ })) : h("", !0),
683
+ i.captionType !== "" ? (u(), f("span", tt, V(i.title), 1)) : h("", !0),
671
684
  k(i.$slots, "default")
672
- ], 10, je));
685
+ ], 10, xe));
673
686
  }
674
- }), ot = {
687
+ }), st = {
675
688
  "top-input": "top-input",
676
689
  "top-input_input": "top-input_input",
677
690
  "top-input-withCleaner": "top-input-withCleaner",
678
691
  "top-input_cleaner": "top-input_cleaner",
679
692
  "top-loadbar": "top-loadbar"
680
- }, st = {
681
- $style: ot
682
- }, O = /* @__PURE__ */ y(tt, [["__cssModules", st]]), at = ["modelValue"], nt = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
683
- let Y = (t) => {
693
+ }, at = {
694
+ $style: st
695
+ }, O = /* @__PURE__ */ y(ot, [["__cssModules", at]]), nt = ["modelValue"], it = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
696
+ let q = (t) => {
684
697
  };
685
- const it = /* @__PURE__ */ v({
698
+ const rt = /* @__PURE__ */ v({
686
699
  __name: "inputDate",
687
700
  props: {
688
701
  modelValue: {},
@@ -702,39 +715,39 @@ const it = /* @__PURE__ */ v({
702
715
  emits: ["update:modelValue"],
703
716
  setup(t, { emit: a }) {
704
717
  const o = t, n = a;
705
- se(() => {
718
+ ae(() => {
706
719
  e && e.datepicker("destroy");
707
720
  });
708
- const s = ae();
721
+ const s = ne();
709
722
  let e;
710
- const d = b({
723
+ const d = w({
711
724
  get() {
712
725
  return B(o.modelValue, 2, void 0, "0000-00-00");
713
726
  },
714
727
  set(l) {
715
- l = X(l, "0000-00-00"), n("update:modelValue", l);
728
+ l = Y(l, "0000-00-00"), n("update:modelValue", l);
716
729
  }
717
730
  });
718
731
  let i = (l) => {
719
- Y(l);
732
+ q(l);
720
733
  }, m = (l) => {
721
- const p = X(l.target.value), h = B(p);
722
- if (!h || h === c.L.Not_date || l.target.value !== h) {
734
+ const p = Y(l.target.value), b = B(p);
735
+ if (!b || b === c.L.Not_date || l.target.value !== b) {
723
736
  l.target.value = d.value;
724
737
  return;
725
738
  }
726
739
  d.value = l.target.value;
727
740
  };
728
741
  async function r(l) {
729
- const p = await import("./datepicker-CcRVcC5P.es.js");
730
- Y = p.oninput, e = p.connectDatepicker(l.target, {
742
+ const p = await import("./datepicker-DTNYG8Iy.es.js");
743
+ q = p.oninput, e = p.connectDatepicker(l.target, {
731
744
  onSelect: () => m(l)
732
745
  }), e && e.datepicker("show");
733
746
  }
734
- return (l, p) => A(nt) ? (u(), M(O, D({ key: 0 }, l.$props, {
747
+ return (l, p) => A(it) ? (u(), T(O, D({ key: 0 }, l.$props, {
735
748
  modelValue: d.value,
736
749
  readonly: "",
737
- onClick: p[1] || (p[1] = (h) => s.value.showPicker())
750
+ onClick: p[1] || (p[1] = (b) => s.value.showPicker())
738
751
  }), {
739
752
  default: L(() => [
740
753
  S("input", {
@@ -743,41 +756,41 @@ const it = /* @__PURE__ */ v({
743
756
  type: "date",
744
757
  class: "top-input_input-date",
745
758
  modelValue: l.modelValue,
746
- onChange: p[0] || (p[0] = (h) => d.value = h.target.value),
759
+ onChange: p[0] || (p[0] = (b) => d.value = b.target.value),
747
760
  tabindex: "-1"
748
- }, null, 40, at)
761
+ }, null, 40, nt)
749
762
  ]),
750
763
  _: 1
751
- }, 16, ["modelValue"])) : (u(), M(O, D({ key: 1 }, l.$props, {
764
+ }, 16, ["modelValue"])) : (u(), T(O, D({ key: 1 }, l.$props, {
752
765
  modelValue: d.value,
753
- "onUpdate:modelValue": p[2] || (p[2] = (h) => h === "" ? d.value = "" : ""),
766
+ "onUpdate:modelValue": p[2] || (p[2] = (b) => b === "" ? d.value = "" : ""),
754
767
  onInput: A(i),
755
768
  onFocusOnce: r,
756
769
  onChange: A(m),
757
770
  modificator: "datepicker"
758
771
  }), null, 16, ["modelValue", "onInput", "onChange"]));
759
772
  }
760
- }), rt = {
773
+ }), lt = {
761
774
  "top-input-datepicker": "top-input-datepicker",
762
775
  "top-input_input-date": "top-input_input-date"
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({
776
+ }, dt = {
777
+ $style: lt
778
+ }, pt = /* @__PURE__ */ y(rt, [["__cssModules", dt]]), ut = { class: "top-inputRange" }, ct = /* @__PURE__ */ S("span", { class: "top-inputRange_dash" }, " — ", -1), mt = /* @__PURE__ */ v({
766
779
  __name: "inputRange",
767
780
  setup(t) {
768
- return (a, o) => (u(), f("div", pt, [
781
+ return (a, o) => (u(), f("div", ut, [
769
782
  k(a.$slots, "from"),
770
- ut,
783
+ ct,
771
784
  k(a.$slots, "to")
772
785
  ]));
773
786
  }
774
- }), mt = {
787
+ }), ft = {
775
788
  "top-inputRange": "top-inputRange",
776
789
  "top-inputRange_dash": "top-inputRange_dash",
777
790
  "top-input": "top-input"
778
- }, ft = {
779
- $style: mt
780
- }, ht = /* @__PURE__ */ y(ct, [["__cssModules", ft]]), bt = ["name", "value", "disabled"], gt = /* @__PURE__ */ v({
791
+ }, bt = {
792
+ $style: ft
793
+ }, ht = /* @__PURE__ */ y(mt, [["__cssModules", bt]]), gt = ["name", "value", "disabled"], wt = /* @__PURE__ */ v({
781
794
  __name: "radio",
782
795
  props: {
783
796
  modelValue: {},
@@ -789,7 +802,7 @@ const it = /* @__PURE__ */ v({
789
802
  },
790
803
  emits: ["update:modelValue"],
791
804
  setup(t, { emit: a }) {
792
- const o = t, n = a, s = b({
805
+ const o = t, n = a, s = w({
793
806
  get() {
794
807
  return o.modelValue;
795
808
  },
@@ -798,7 +811,7 @@ const it = /* @__PURE__ */ v({
798
811
  }
799
812
  });
800
813
  return (e, d) => (u(), f("label", {
801
- class: w({
814
+ class: g({
802
815
  "top-forms-optionWrapper": !0,
803
816
  "top-radio": !0,
804
817
  ["top-radio_" + e.name]: e.name !== "",
@@ -808,7 +821,7 @@ const it = /* @__PURE__ */ v({
808
821
  }, [
809
822
  W(S("input", {
810
823
  type: "radio",
811
- class: w({
824
+ class: g({
812
825
  "top-forms-focusable": !e.disabled,
813
826
  "top-forms-option": !0,
814
827
  "top-radio_input": !0,
@@ -818,10 +831,10 @@ const it = /* @__PURE__ */ v({
818
831
  name: e.name,
819
832
  value: e.value,
820
833
  disabled: e.disabled
821
- }, null, 10, bt), [
822
- [ne, s.value]
834
+ }, null, 10, gt), [
835
+ [ie, s.value]
823
836
  ]),
824
- e.$slots.default ? (u(), M(P, {
837
+ e.$slots.default ? (u(), T(P, {
825
838
  key: 0,
826
839
  description: e.description,
827
840
  disabled: e.disabled
@@ -830,16 +843,16 @@ const it = /* @__PURE__ */ v({
830
843
  k(e.$slots, "default")
831
844
  ]),
832
845
  _: 3
833
- }, 8, ["description", "disabled"])) : g("", !0)
846
+ }, 8, ["description", "disabled"])) : h("", !0)
834
847
  ], 2));
835
848
  }
836
- }), wt = {
849
+ }), yt = {
837
850
  "top-radio": "top-radio",
838
851
  "top-radio_input": "top-radio_input",
839
852
  "top-error": "top-error"
840
- }, yt = {
841
- $style: wt
842
- }, vt = /* @__PURE__ */ y(gt, [["__cssModules", yt]]), $t = ["name", "value", "disabled"], St = /* @__PURE__ */ v({
853
+ }, vt = {
854
+ $style: yt
855
+ }, $t = /* @__PURE__ */ y(wt, [["__cssModules", vt]]), St = ["name", "value", "disabled"], _t = /* @__PURE__ */ v({
843
856
  __name: "switcher",
844
857
  props: {
845
858
  modelValue: { type: [Boolean, Array, Set] },
@@ -851,7 +864,7 @@ const it = /* @__PURE__ */ v({
851
864
  },
852
865
  emits: ["update:modelValue"],
853
866
  setup(t, { emit: a }) {
854
- const o = t, n = a, s = b({
867
+ const o = t, n = a, s = w({
855
868
  get() {
856
869
  return o.modelValue;
857
870
  },
@@ -860,7 +873,7 @@ const it = /* @__PURE__ */ v({
860
873
  }
861
874
  });
862
875
  return (e, d) => (u(), f("label", {
863
- class: w({
876
+ class: g({
864
877
  "top-forms-optionWrapper": !0,
865
878
  "top-checkboxSwitcher": !0,
866
879
  "top-disabled": e.disabled,
@@ -869,7 +882,7 @@ const it = /* @__PURE__ */ v({
869
882
  }, [
870
883
  W(S("input", {
871
884
  type: "checkbox",
872
- class: w({
885
+ class: g({
873
886
  "top-forms-focusable": !e.disabled,
874
887
  "top-forms-option": !0,
875
888
  "top-checkboxSwitcher_input": !0,
@@ -879,10 +892,10 @@ const it = /* @__PURE__ */ v({
879
892
  name: e.name,
880
893
  value: e.value,
881
894
  disabled: e.disabled
882
- }, null, 10, $t), [
883
- [Q, s.value]
895
+ }, null, 10, St), [
896
+ [J, s.value]
884
897
  ]),
885
- e.$slots.default ? (u(), M(P, {
898
+ e.$slots.default ? (u(), T(P, {
886
899
  key: 0,
887
900
  description: e.description,
888
901
  disabled: e.disabled
@@ -891,19 +904,19 @@ const it = /* @__PURE__ */ v({
891
904
  k(e.$slots, "default")
892
905
  ]),
893
906
  _: 3
894
- }, 8, ["description", "disabled"])) : g("", !0)
907
+ }, 8, ["description", "disabled"])) : h("", !0)
895
908
  ], 2));
896
909
  }
897
- }), _t = {
910
+ }), kt = {
898
911
  "top-checkboxSwitcher": "top-checkboxSwitcher",
899
912
  "top-checkboxSwitcher_input": "top-checkboxSwitcher_input",
900
913
  "top-error": "top-error"
901
- }, kt = {
902
- $style: _t
903
- }, Mt = /* @__PURE__ */ y(St, [["__cssModules", kt]]), Tt = ["name", "placeholder", "disabled", "readonly", "rows"], Vt = {
914
+ }, Tt = {
915
+ $style: kt
916
+ }, Mt = /* @__PURE__ */ y(_t, [["__cssModules", Tt]]), Vt = ["name", "placeholder", "disabled", "readonly", "rows"], Wt = {
904
917
  key: 0,
905
918
  class: "top-textarea_pseudoContent"
906
- }, Wt = /* @__PURE__ */ v({
919
+ }, Bt = /* @__PURE__ */ v({
907
920
  inheritAttrs: !1,
908
921
  __name: "textarea",
909
922
  props: {
@@ -921,9 +934,9 @@ const it = /* @__PURE__ */ v({
921
934
  emits: ["update:modelValue"],
922
935
  setup(t, { emit: a }) {
923
936
  G((e) => ({
924
- bb7a0c5c: e.minHeight + "px"
937
+ "403001b8": e.minHeight + "px"
925
938
  }));
926
- const o = t, n = a, s = b({
939
+ const o = t, n = a, s = w({
927
940
  get() {
928
941
  return o.modelValue;
929
942
  },
@@ -932,9 +945,9 @@ const it = /* @__PURE__ */ v({
932
945
  }
933
946
  });
934
947
  return (e, d) => {
935
- const i = ie("top-tooltip");
948
+ const i = re("top-tooltip");
936
949
  return u(), f("label", {
937
- class: w({
950
+ class: g({
938
951
  "top-textarea": !0,
939
952
  ["top-textarea-" + e.name]: e.name,
940
953
  "top-disabled": e.disabled
@@ -956,34 +969,34 @@ const it = /* @__PURE__ */ v({
956
969
  rows: e.expandable ? void 0 : e.rows
957
970
  }, e.$attrs, {
958
971
  "onUpdate:modelValue": d[0] || (d[0] = (m) => s.value = m)
959
- }), null, 16, Tt), [
960
- [J, s.value]
972
+ }), null, 16, Vt), [
973
+ [Z, s.value]
961
974
  ]),
962
- e.expandable ? (u(), f("div", Vt, V(s.value + " "), 1)) : g("", !0),
963
- e.hint ? W((u(), M(Z, {
975
+ e.expandable ? (u(), f("div", Wt, V(s.value + " "), 1)) : h("", !0),
976
+ e.hint ? W((u(), T(j, {
964
977
  key: 1,
965
978
  class: "top-textarea_hint",
966
979
  hint: e.hint
967
980
  }, null, 8, ["hint"])), [
968
981
  [i]
969
- ]) : g("", !0)
982
+ ]) : h("", !0)
970
983
  ], 2);
971
984
  };
972
985
  }
973
- }), Bt = {
986
+ }), Lt = {
974
987
  "top-textarea": "top-textarea",
975
988
  "top-textarea_textarea": "top-textarea_textarea",
976
989
  "top-textarea_textarea-expandable": "top-textarea_textarea-expandable",
977
990
  "top-textarea_pseudoContent": "top-textarea_pseudoContent",
978
991
  "top-textarea_hint": "top-textarea_hint"
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 = {
992
+ }, Et = {
993
+ $style: Lt
994
+ }, zt = /* @__PURE__ */ y(Bt, [["__cssModules", Et]]), Dt = ["data-value", "data-top-icon", "data-top-icon2"], Pt = ["name", "disabled"], At = ["label", "disabled"], Nt = ["value", "selected", "disabled"], Rt = ["value", "selected", "disabled"], Ct = {
982
995
  key: 1,
983
996
  class: "top-formsCaption"
984
- }, Nt = /* @__PURE__ */ v({
997
+ }, Ot = /* @__PURE__ */ v({
985
998
  __name: "select",
986
- props: /* @__PURE__ */ N({
999
+ props: /* @__PURE__ */ C({
987
1000
  modelValue: {},
988
1001
  options: {},
989
1002
  name: {},
@@ -999,20 +1012,20 @@ const it = /* @__PURE__ */ v({
999
1012
  },
1000
1013
  modelModifiers: {}
1001
1014
  }),
1002
- emits: /* @__PURE__ */ N(["update:modelValue"], ["update:modelValue"]),
1015
+ emits: /* @__PURE__ */ C(["update:modelValue"], ["update:modelValue"]),
1003
1016
  setup(t, { emit: a }) {
1004
- const o = t, n = K(t, "modelValue"), s = b(() => {
1017
+ const o = t, n = Q(t, "modelValue"), s = w(() => {
1005
1018
  const r = /* @__PURE__ */ new Map();
1006
1019
  return o.options.forEach((l, p) => {
1007
1020
  if (typeof l == "string" && (l = d(p, l)), l.children) {
1008
- const h = /* @__PURE__ */ new Map();
1021
+ const b = /* @__PURE__ */ new Map();
1009
1022
  l.children.forEach((_, E) => {
1010
- typeof _ == "string" && (_ = d(E, _)), h.set(_.value, _);
1011
- }), l = { ...l }, l.children = h, r.set(l.value, l);
1023
+ typeof _ == "string" && (_ = d(E, _)), b.set(_.value, _);
1024
+ }), l = { ...l }, l.children = b, r.set(l.value, l);
1012
1025
  } else
1013
1026
  r.set(l.value, l);
1014
1027
  }), r;
1015
- }), e = b(() => {
1028
+ }), e = w(() => {
1016
1029
  const r = /* @__PURE__ */ new Map();
1017
1030
  return s.value.forEach((l) => {
1018
1031
  if (!l.disabled) {
@@ -1029,13 +1042,13 @@ const it = /* @__PURE__ */ v({
1029
1042
  value: r,
1030
1043
  title: l
1031
1044
  });
1032
- re([
1045
+ le([
1033
1046
  () => o.modelValue,
1034
1047
  e
1035
1048
  ], () => {
1036
1049
  (n.value === null || n.value === void 0) && e.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = e.value.keys().next().value);
1037
1050
  }, { immediate: !0 });
1038
- const i = b(() => {
1051
+ const i = w(() => {
1039
1052
  var r;
1040
1053
  return (r = e.value.get(n.value)) == null ? void 0 : r.icon;
1041
1054
  }), m = () => {
@@ -1043,7 +1056,7 @@ const it = /* @__PURE__ */ v({
1043
1056
  n.value = r[p];
1044
1057
  };
1045
1058
  return (r, l) => (u(), f("label", {
1046
- class: w({
1059
+ class: g({
1047
1060
  "top-select": !0,
1048
1061
  ["top-select-" + r.name]: r.name,
1049
1062
  ["top-size_" + r.size]: !0,
@@ -1056,7 +1069,7 @@ const it = /* @__PURE__ */ v({
1056
1069
  "data-top-icon2": i.value
1057
1070
  }, [
1058
1071
  W(S("select", {
1059
- class: w({
1072
+ class: g({
1060
1073
  "top-forms-focusable": !r.disabled,
1061
1074
  "top-select_select": !0,
1062
1075
  "top-select_arrow": !0,
@@ -1066,82 +1079,83 @@ const it = /* @__PURE__ */ v({
1066
1079
  disabled: r.disabled,
1067
1080
  "onUpdate:modelValue": l[0] || (l[0] = (p) => n.value = p)
1068
1081
  }, [
1069
- (u(!0), f(R, null, F(s.value, ([p, h]) => (u(), f(R, null, [
1070
- h.children ? (u(), f("optgroup", {
1082
+ (u(!0), f(N, null, F(s.value, ([p, b]) => (u(), f(N, null, [
1083
+ b.children ? (u(), f("optgroup", {
1071
1084
  key: "group_" + p,
1072
- label: h.title,
1073
- disabled: h.disabled
1085
+ label: b.title,
1086
+ disabled: b.disabled
1074
1087
  }, [
1075
- (u(!0), f(R, null, F(h.children, ([_, E]) => (u(), f("option", {
1088
+ (u(!0), f(N, null, F(b.children, ([_, E]) => (u(), f("option", {
1076
1089
  key: _,
1077
1090
  value: _,
1078
1091
  selected: _ === n.value,
1079
1092
  disabled: E.disabled
1080
- }, V(E.title), 9, At))), 128))
1081
- ], 8, Pt)) : (u(), f("option", {
1093
+ }, V(E.title), 9, Nt))), 128))
1094
+ ], 8, At)) : (u(), f("option", {
1082
1095
  key: p ?? void 0,
1083
1096
  value: p,
1084
1097
  selected: p === n.value,
1085
- disabled: h.disabled
1086
- }, V(h.title), 9, Rt))
1098
+ disabled: b.disabled
1099
+ }, V(b.title), 9, Rt))
1087
1100
  ], 64))), 256))
1088
- ], 10, Dt), [
1089
- [le, n.value]
1101
+ ], 10, Pt), [
1102
+ [de, n.value]
1090
1103
  ]),
1091
1104
  r.addChanger && e.value.size && !r.disabled ? (u(), f("span", {
1092
1105
  key: 0,
1093
1106
  class: "top-changer",
1094
1107
  onClick: m
1095
- })) : g("", !0),
1096
- r.title ? (u(), f("span", Ct, V(r.title), 1)) : g("", !0)
1097
- ], 10, zt));
1108
+ })) : h("", !0),
1109
+ r.title ? (u(), f("span", Ct, V(r.title), 1)) : h("", !0)
1110
+ ], 10, Dt));
1098
1111
  }
1099
- }), Ot = {
1112
+ }), Ht = {
1100
1113
  "top-select": "top-select",
1101
1114
  "top-select-error": "top-select-error",
1102
1115
  "top-select_select": "top-select_select",
1103
1116
  "top-changer": "top-changer"
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;
1117
+ }, It = {
1118
+ $style: Ht
1119
+ }, Ft = /* @__PURE__ */ y(Ot, [["__cssModules", It]]), eo = Ve, to = Pe, oo = Ue, so = P, ao = j, no = O, io = pt, ro = ht, lo = $t, po = Mt, uo = zt, co = Ft, mo = x;
1107
1120
  export {
1108
- me as A,
1109
- Kt as B,
1121
+ Gt as A,
1122
+ fe as B,
1110
1123
  c as C,
1111
1124
  Qt as D,
1112
- we as E,
1125
+ X as E,
1113
1126
  Jt as F,
1114
1127
  Zt as G,
1115
- ve as H,
1116
- jt as I,
1117
- X as J,
1118
- De as T,
1128
+ jt as H,
1129
+ ve as I,
1130
+ xt as J,
1131
+ Y as K,
1132
+ Pe as T,
1119
1133
  y as _,
1120
- O as a,
1121
- xt as b,
1122
- eo as c,
1134
+ eo as a,
1135
+ to as b,
1136
+ oo as c,
1123
1137
  B as d,
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,
1136
- Et as q,
1137
- j as r,
1138
- de as s,
1138
+ so as e,
1139
+ ao as f,
1140
+ no as g,
1141
+ io as h,
1142
+ Xt as i,
1143
+ ro as j,
1144
+ mo as k,
1145
+ lo as l,
1146
+ co as m,
1147
+ po as n,
1148
+ uo as o,
1149
+ j as p,
1150
+ O as q,
1151
+ zt as r,
1152
+ x as s,
1139
1153
  pe as t,
1140
1154
  ue as u,
1141
1155
  ce as v,
1142
- Xt as w,
1156
+ me as w,
1143
1157
  Yt as x,
1144
1158
  qt as y,
1145
- Gt as z
1159
+ Kt as z
1146
1160
  };
1147
- //# sourceMappingURL=forms-BZoPbSQt.es.js.map
1161
+ //# sourceMappingURL=forms-NfVxcPud.es.js.map