@topvisor/ui 0.9.34-utils-components-7 → 0.9.35-1

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