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