@topvisor/ui 0.9.33 → 0.9.34-utils-components-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 (211) hide show
  1. package/.chunks/{datepicker-D1JLNEmV.es.js → datepicker-BGhDjLcn.es.js} +2 -2
  2. package/.chunks/{datepicker-D1JLNEmV.es.js.map → datepicker-BGhDjLcn.es.js.map} +1 -1
  3. package/.chunks/{datepicker-5QMJRJn-.amd.js → datepicker-DM6aPyRB.amd.js} +2 -2
  4. package/.chunks/{datepicker-5QMJRJn-.amd.js.map → datepicker-DM6aPyRB.amd.js.map} +1 -1
  5. package/.chunks/{forms-S36M7cBH.es.js → forms-CRAV8PiZ.es.js} +328 -312
  6. package/.chunks/forms-CRAV8PiZ.es.js.map +1 -0
  7. package/.chunks/forms-Cksc7Rb7.amd.js +3 -0
  8. package/.chunks/forms-Cksc7Rb7.amd.js.map +1 -0
  9. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BfCj7kQR.es.js → listItem.vue_vue_type_script_setup_true_lang-C2XaxeNZ.es.js} +9 -9
  10. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BfCj7kQR.es.js.map → listItem.vue_vue_type_script_setup_true_lang-C2XaxeNZ.es.js.map} +1 -1
  11. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CpNwVBHY.amd.js +2 -0
  12. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C7tg-67i.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-CpNwVBHY.amd.js.map} +1 -1
  13. package/.chunks/{menu-v5knQbeF.es.js → menu-BWjYRHkQ.es.js} +8 -8
  14. package/.chunks/menu-BWjYRHkQ.es.js.map +1 -0
  15. package/.chunks/{menu-S1Hk7D3W.amd.js → menu-BX8GV8-v.amd.js} +2 -2
  16. package/.chunks/menu-BX8GV8-v.amd.js.map +1 -0
  17. package/.chunks/{popup-DncRq57t.amd.js → popup-3fVBIqu0.amd.js} +3 -3
  18. package/.chunks/{popup-DncRq57t.amd.js.map → popup-3fVBIqu0.amd.js.map} +1 -1
  19. package/.chunks/{popup-BK3xlBZm.es.js → popup-BWTP6yaC.es.js} +3 -3
  20. package/.chunks/{popup-BK3xlBZm.es.js.map → popup-BWTP6yaC.es.js.map} +1 -1
  21. package/.chunks/punycode.es6-C2yitnNb.amd.js +2 -0
  22. package/.chunks/punycode.es6-C2yitnNb.amd.js.map +1 -0
  23. package/.chunks/punycode.es6-CNI-zL6U.es.js +134 -0
  24. package/.chunks/punycode.es6-CNI-zL6U.es.js.map +1 -0
  25. package/assets/core.css +1 -1
  26. package/assets/dark.css +1 -1
  27. package/assets/forms.css +1 -1
  28. package/assets/formsExt.css +1 -1
  29. package/assets/light.css +1 -1
  30. package/core/core.amd.js +1 -1
  31. package/core/core.js +1 -1
  32. package/core/directives/focus.amd.js +2 -0
  33. package/core/directives/focus.amd.js.map +1 -0
  34. package/core/directives/focus.d.ts +3 -0
  35. package/core/directives/focus.js +5 -0
  36. package/core/directives/focus.js.map +1 -0
  37. package/core/directives/sticky.amd.js +2 -0
  38. package/core/directives/sticky.amd.js.map +1 -0
  39. package/core/directives/sticky.d.ts +3 -0
  40. package/core/directives/sticky.js +5 -0
  41. package/core/directives/sticky.js.map +1 -0
  42. package/core/directives/swimUp.amd.js +2 -0
  43. package/core/directives/swimUp.amd.js.map +1 -0
  44. package/core/directives/swimUp.d.ts +3 -0
  45. package/core/directives/swimUp.js +5 -0
  46. package/core/directives/swimUp.js.map +1 -0
  47. package/core/directives/tooltip.amd.js +2 -0
  48. package/core/directives/tooltip.amd.js.map +1 -0
  49. package/core/directives/tooltip.d.ts +3 -0
  50. package/core/directives/tooltip.js +5 -0
  51. package/core/directives/tooltip.js.map +1 -0
  52. package/core/plugin/plugin.amd.js +2 -0
  53. package/core/plugin/plugin.amd.js.map +1 -0
  54. package/core/plugin/plugin.d.ts +3 -0
  55. package/core/plugin/plugin.js +23 -0
  56. package/core/plugin/plugin.js.map +1 -0
  57. package/forms/forms.amd.js +1 -1
  58. package/forms/forms.js +14 -14
  59. package/formsExt/formsExt.amd.js +1 -1
  60. package/formsExt/formsExt.amd.js.map +1 -1
  61. package/formsExt/formsExt.js +122 -363
  62. package/formsExt/formsExt.js.map +1 -1
  63. package/package.json +32 -24
  64. package/popup/popup.amd.js +1 -1
  65. package/popup/popup.amd.js.map +1 -1
  66. package/popup/popup.js +47 -6
  67. package/popup/popup.js.map +1 -1
  68. package/popup/worker.amd.js +1 -1
  69. package/popup/worker.js +3 -3
  70. package/project/project.amd.js +1 -1
  71. package/project/project.amd.js.map +1 -1
  72. package/project/project.js +15 -15
  73. package/project/project.js.map +1 -1
  74. package/src/components/forms/avatar/avatar.stories.d.ts +15 -14
  75. package/src/components/forms/avatar/avatar.vue.d.ts +7 -6
  76. package/src/components/forms/button/button.stories.d.ts +59 -57
  77. package/src/components/forms/button/button.vue.d.ts +10 -8
  78. package/src/components/forms/checkbox/checkbox.stories.d.ts +34 -33
  79. package/src/components/forms/checkbox/checkbox.vue.d.ts +17 -16
  80. package/src/components/forms/controlLabel/controlLabel.stories.d.ts +14 -13
  81. package/src/components/forms/controlLabel/controlLabel.vue.d.ts +4 -3
  82. package/src/components/forms/forms.d.ts +33 -13
  83. package/src/components/forms/hint/hint.stories.d.ts +23 -22
  84. package/src/components/forms/hint/hint.vue.d.ts +4 -3
  85. package/src/components/forms/input/input.stories.d.ts +64 -62
  86. package/src/components/forms/input/input.vue.d.ts +10 -8
  87. package/src/components/forms/inputDate/inputDate.d.ts +1 -1
  88. package/src/components/forms/inputDate/inputDate.stories.d.ts +31 -29
  89. package/src/components/forms/inputDate/inputDate.vue.d.ts +6 -5
  90. package/src/components/forms/inputRange/inputRange.stories.d.ts +84 -81
  91. package/src/components/forms/inputRange/inputRange.vue.d.ts +2 -1
  92. package/src/components/forms/loadbar/loadbar.stories.d.ts +2 -1
  93. package/src/components/forms/loadbar/loadbar.vue.d.ts +2 -1
  94. package/src/components/forms/radio/radio.stories.d.ts +32 -31
  95. package/src/components/forms/radio/radio.vue.d.ts +5 -4
  96. package/src/components/forms/select/select.stories.d.ts +24 -22
  97. package/src/components/forms/select/select.vue.d.ts +25 -23
  98. package/src/components/forms/switcher/switcher.stories.d.ts +32 -31
  99. package/src/components/forms/switcher/switcher.vue.d.ts +5 -4
  100. package/src/components/forms/textarea/textarea.stories.d.ts +24 -23
  101. package/src/components/forms/textarea/textarea.vue.d.ts +6 -5
  102. package/src/components/formsExt/editArea/editArea.stories.d.ts +40 -39
  103. package/src/components/formsExt/editArea/editArea.vue.d.ts +6 -5
  104. package/src/components/formsExt/editInput/editInput.stories.d.ts +22 -19
  105. package/src/components/formsExt/editInput/editInput.vue.d.ts +5 -4
  106. package/src/components/formsExt/formsExt.d.ts +10 -5
  107. package/src/components/formsExt/menu/menu.stories.d.ts +15 -14
  108. package/src/components/formsExt/menu/menu.vue.d.ts +17 -16
  109. package/src/components/formsExt/radioGroup/radioGroup.stories.d.ts +16 -14
  110. package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +17 -14
  111. package/src/components/formsExt/selector2/api.d.ts +2 -2
  112. package/src/components/formsExt/selector2/selector2.stories.d.ts +67 -65
  113. package/src/components/popup/popup/listItem.vue.d.ts +5 -4
  114. package/src/components/popup/popup/opener.vue.d.ts +8 -7
  115. package/src/components/popup/popup/popup.stories.d.ts +198 -193
  116. package/src/components/popup/popup/popup.vue.d.ts +9 -8
  117. package/src/components/popup/popup/widgetInput.vue.d.ts +31 -28
  118. package/src/components/popup/popup.d.ts +10 -4
  119. package/src/components/popup/worker.d.ts +4 -1
  120. package/src/components/project/project.d.ts +4 -1
  121. package/src/components/project/selectorCompetitors/composables.d.ts +2 -1
  122. package/src/components/project/selectorCompetitors/selectorCompetitors.stories.d.ts +9 -8
  123. package/src/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +10 -9
  124. package/src/components/project/selectorCompetitors/stories/items.d.ts +2 -1
  125. package/src/components/tabs/tabs/content.vue.d.ts +4 -3
  126. package/src/components/tabs/tabs/tab.vue.d.ts +4 -3
  127. package/src/components/tabs/tabs/tabs.stories.d.ts +165 -162
  128. package/src/components/tabs/tabs/tabs.vue.d.ts +4 -3
  129. package/src/components/tabs/tabs.d.ts +8 -3
  130. package/src/components/tabsView/tabsView/menu.vue.d.ts +7 -6
  131. package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +2 -1
  132. package/src/components/tabsView/tabsView/menuItem.vue.d.ts +6 -5
  133. package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +4 -3
  134. package/src/components/tabsView/tabsView/store.d.ts +126 -69
  135. package/src/components/tabsView/tabsView/tabsView.d.ts +1 -1
  136. package/src/components/tabsView/tabsView/tabsView.stories.d.ts +95 -94
  137. package/src/components/tabsView/tabsView/tabsView.vue.d.ts +13 -12
  138. package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuItem.stories.d.ts +93 -92
  139. package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuTitle.stories.d.ts +45 -44
  140. package/src/components/tabsView/tabsView.d.ts +8 -3
  141. package/src/core/core/core.d.ts +1 -0
  142. package/src/core/core/page.d.ts +4 -0
  143. package/src/core/core/state.d.ts +4 -0
  144. package/src/core/directives/focus.d.ts +9 -0
  145. package/src/core/directives/sticky.d.ts +11 -0
  146. package/src/core/directives/swimUp.d.ts +10 -0
  147. package/src/core/directives/tooltip.d.ts +11 -0
  148. package/src/core/plugin/plugin.d.ts +48 -0
  149. package/src/core/utils/device.d.ts +6 -0
  150. package/src/core/utils/image.d.ts +12 -0
  151. package/src/core/utils/number.d.ts +7 -0
  152. package/src/core/utils/store/plugin.d.ts +2 -1
  153. package/src/core/utils/string.d.ts +4 -0
  154. package/tabs/tabs.amd.js +1 -1
  155. package/tabs/tabs.amd.js.map +1 -1
  156. package/tabs/tabs.js +23 -23
  157. package/tabs/tabs.js.map +1 -1
  158. package/tabsView/tabsView.amd.js +1 -1
  159. package/tabsView/tabsView.amd.js.map +1 -1
  160. package/tabsView/tabsView.js +72 -73
  161. package/tabsView/tabsView.js.map +1 -1
  162. package/utils/date.amd.js +1 -1
  163. package/utils/date.js +7 -7
  164. package/utils/device.amd.js +1 -1
  165. package/utils/device.js +9 -8
  166. package/utils/image.amd.js +2 -0
  167. package/utils/image.amd.js.map +1 -0
  168. package/utils/image.d.ts +1 -0
  169. package/utils/image.js +13 -0
  170. package/utils/image.js.map +1 -0
  171. package/utils/number.amd.js +2 -0
  172. package/utils/number.amd.js.map +1 -0
  173. package/utils/number.d.ts +1 -0
  174. package/utils/number.js +9 -0
  175. package/utils/number.js.map +1 -0
  176. package/utils/scroll.amd.js +1 -1
  177. package/utils/scroll.js +1 -1
  178. package/utils/string.amd.js +1 -1
  179. package/utils/string.amd.js.map +1 -1
  180. package/utils/string.js +20 -13
  181. package/utils/string.js.map +1 -1
  182. package/utils/system.amd.js +1 -1
  183. package/utils/system.amd.js.map +1 -1
  184. package/utils/system.js +8 -8
  185. package/utils/system.js.map +1 -1
  186. package/utils/url.amd.js +2 -2
  187. package/utils/url.amd.js.map +1 -1
  188. package/utils/url.js +40 -168
  189. package/utils/url.js.map +1 -1
  190. package/utils/window.amd.js +1 -1
  191. package/utils/window.js +1 -1
  192. package/web-types.json +62 -0
  193. package/.chunks/forms-B2NcBl7S.amd.js +0 -3
  194. package/.chunks/forms-B2NcBl7S.amd.js.map +0 -1
  195. package/.chunks/forms-S36M7cBH.es.js.map +0 -1
  196. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C7tg-67i.amd.js +0 -2
  197. package/.chunks/menu-S1Hk7D3W.amd.js.map +0 -1
  198. package/.chunks/menu-v5knQbeF.es.js.map +0 -1
  199. package/.chunks/widgetInput-Br5COpvG.es.js +0 -46
  200. package/.chunks/widgetInput-Br5COpvG.es.js.map +0 -1
  201. package/.chunks/widgetInput-CrrUoVPc.amd.js +0 -2
  202. package/.chunks/widgetInput-CrrUoVPc.amd.js.map +0 -1
  203. package/src/components/formsExt/selector2/itemMulti.vue.d.ts +0 -17
  204. package/src/components/formsExt/selector2/selector2.vue.d.ts +0 -130
  205. package/src/core/utils/common.d.ts +0 -21
  206. package/utils/common.amd.js +0 -2
  207. package/utils/common.amd.js.map +0 -1
  208. package/utils/common.d.ts +0 -1
  209. package/utils/common.js +0 -21
  210. package/utils/common.js.map +0 -1
  211. /package/assets/{widgetInput.css → popup.css} +0 -0
@@ -1,28 +1,28 @@
1
- import { insertToPage as ae } from "../utils/css.js";
2
- import { reactive as Y, defineComponent as y, useCssVars as te, computed as h, openBlock as u, createElementBlock as m, createElementVNode as _, createCommentVNode as g, createBlock as M, resolveDynamicComponent as re, normalizeClass as w, withCtx as D, renderSlot as k, createTextVNode as le, toDisplayString as W, mergeModels as H, useModel as oe, withDirectives as T, vModelCheckbox as se, onUnmounted as de, ref as pe, unref as B, mergeProps as A, vModelRadio as ue, resolveDirective as ce, vModelText as ne, watch as me, Fragment as O, renderList as X, vModelSelect as fe, withKeys as be, withModifiers as he } from "vue";
3
- const ie = ["../assets/forms.css"].map((t) => import.meta.resolve(t));
4
- ae(ie, !0);
5
- function ge() {
1
+ import { insertToPage as re } from "../utils/css.js";
2
+ import { reactive as Y, defineComponent as y, useCssVars as oe, computed as h, openBlock as u, createElementBlock as m, createElementVNode as S, createCommentVNode as g, createBlock as M, resolveDynamicComponent as de, normalizeClass as w, withCtx as D, renderSlot as k, createTextVNode as pe, toDisplayString as V, mergeModels as I, useModel as se, withDirectives as W, vModelCheckbox as ne, unref as B, mergeProps as P, withKeys as ue, vModelText as ae, withModifiers as ce, onUnmounted as me, ref as fe, vModelRadio as be, resolveDirective as he, watch as ge, Fragment as H, renderList as X, vModelSelect as we } from "vue";
3
+ const le = ["../assets/forms.css"].map((t) => import.meta.resolve(t));
4
+ re(le, !0);
5
+ function ve() {
6
6
  return "devicePixelRatio" in window && window.devicePixelRatio > 1;
7
7
  }
8
- function we() {
8
+ function ye() {
9
9
  return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
10
10
  }
11
- function ve() {
11
+ function Se() {
12
12
  return navigator.userAgent.indexOf("Topvisor_App") != -1;
13
13
  }
14
- function ye() {
14
+ function $e() {
15
15
  return navigator.userAgent.indexOf("Mac OS X") !== -1;
16
16
  }
17
- function eo() {
17
+ function co() {
18
18
  const t = /Chrome|Android/.test(navigator.userAgent);
19
19
  let e = /Safari/.test(navigator.userAgent);
20
20
  return t && e && (e = !1), e;
21
21
  }
22
- function to() {
23
- return ye() ? "⌘" : "Ctrl";
22
+ function mo() {
23
+ return $e() ? "⌘" : "Ctrl";
24
24
  }
25
- const oo = () => $(document).scrollTop(), so = () => $(document), no = () => [document], _e = () => {
25
+ const fo = () => $(document).scrollTop(), bo = () => $(document), ho = () => [document], _e = () => {
26
26
  const t = [
27
27
  ["iOS", /(iPhone|iPad)/i],
28
28
  ["Android", /(Android)/i],
@@ -55,7 +55,7 @@ const oo = () => $(document).scrollTop(), so = () => $(document), no = () => [do
55
55
  break;
56
56
  }
57
57
  return e;
58
- }, ao = async () => {
58
+ }, go = async () => {
59
59
  var e;
60
60
  let t = _e();
61
61
  if (t === "Windows 10") {
@@ -64,44 +64,48 @@ const oo = () => $(document).scrollTop(), so = () => $(document), no = () => [do
64
64
  }
65
65
  return t;
66
66
  };
67
- class $e {
67
+ class G {
68
+ /**
69
+ * Проверить скрыта страница или нет
70
+ */
71
+ static isHidden = () => document.hidden;
68
72
  }
69
- const Se = 100;
70
- let G;
71
- const I = /* @__PURE__ */ new Map(), R = {
73
+ const ke = 100;
74
+ let K;
75
+ const F = /* @__PURE__ */ new Map(), R = {
72
76
  width: window.innerWidth,
73
77
  height: window.innerHeight
74
78
  };
75
- function ke(t) {
76
- I.set(t, t);
77
- }
78
79
  function Me(t) {
79
- I.delete(t);
80
+ F.set(t, t);
81
+ }
82
+ function Te(t) {
83
+ F.delete(t);
80
84
  }
81
85
  function Ve(t) {
82
- clearTimeout(G), G = setTimeout(function() {
86
+ clearTimeout(K), K = setTimeout(function() {
83
87
  t.topEvent = {
84
88
  widthDiff: R.width - window.innerWidth,
85
89
  hightDiff: R.height - window.innerHeight
86
- }, R.width = window.innerWidth, R.height = window.innerHeight, I.forEach((e) => e(t));
87
- }, Se);
90
+ }, R.width = window.innerWidth, R.height = window.innerHeight, F.forEach((e) => e(t));
91
+ }, ke);
88
92
  }
89
93
  window.addEventListener("resize", Ve);
90
94
  const We = {
91
- addOnReize: ke,
92
- removeOnResize: Me
95
+ addOnReize: Me,
96
+ removeOnResize: Te
93
97
  };
94
- var x;
95
- const Te = {
98
+ var ee;
99
+ const Be = {
96
100
  widthForMobile: 900,
97
101
  dateFormat: "Y-m-d",
98
102
  /**
99
103
  * Для Москвы: +0300
100
104
  */
101
- gmt: (x = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : x[1]
105
+ gmt: (ee = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : ee[1]
102
106
  };
103
- var ee;
104
- const Be = {
107
+ var te;
108
+ const Le = {
105
109
  /**
106
110
  * Device by size
107
111
  * @see widthForMobile
@@ -131,29 +135,33 @@ const Be = {
131
135
  // См. core.options
132
136
  dateFormat: "Y-m-d",
133
137
  // См. core.options
134
- gmt: (ee = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : ee[1]
135
- }, C = (t) => {
138
+ gmt: (te = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : te[1],
139
+ /**
140
+ * true, если страница скрыта
141
+ */
142
+ isHidden: !1
143
+ }, O = (t) => {
136
144
  var e, s;
137
145
  if (!((s = (e = p.$) == null ? void 0 : e.ui) != null && s.tooltip)) {
138
146
  console.info("Для работы v-top-tooltip требуется глобальная загрузка jQuery UI Tooltip");
139
147
  return;
140
148
  }
141
149
  return p.$(t);
142
- }, K = (t, e) => {
150
+ }, Q = (t, e) => {
143
151
  var n;
144
152
  const s = t.value ?? {};
145
153
  return s.content ??= (n = e.props) == null ? void 0 : n.title, s.content = String(s.content).replace(/\r\n|\r|\n/g, "<br>"), s.position ??= {
146
154
  my: "bottom-18px",
147
155
  at: "top center"
148
156
  }, s;
149
- }, Le = {
157
+ }, Ee = {
150
158
  mounted(t, e, s) {
151
159
  var n;
152
- (n = C(t)) == null || n.tooltip(K(e, s));
160
+ (n = O(t)) == null || n.tooltip(Q(e, s));
153
161
  },
154
162
  updated(t, e, s, n) {
155
163
  var i;
156
- const a = K(e, s), o = (i = C(t)) == null ? void 0 : i.tooltip("instance");
164
+ const a = Q(e, s), o = (i = O(t)) == null ? void 0 : i.tooltip("instance");
157
165
  o && (o.options = {
158
166
  ...o.options,
159
167
  ...a
@@ -161,15 +169,15 @@ const Be = {
161
169
  },
162
170
  unmounted(t, e, s) {
163
171
  var n;
164
- (n = C(t)) == null || n.tooltip("destroy");
172
+ (n = O(t)) == null || n.tooltip("destroy");
165
173
  }
166
- }, Ee = {
174
+ }, ze = {
167
175
  mounted: function(t, e) {
168
176
  (e.value || e.value === void 0) && t.focus();
169
177
  }
170
178
  };
171
179
  let E;
172
- const ze = {
180
+ const De = {
173
181
  mounted(t, e, s) {
174
182
  const n = e.value || "top-sticky";
175
183
  E = new IntersectionObserver((a) => {
@@ -183,40 +191,40 @@ const ze = {
183
191
  E == null || E.disconnect();
184
192
  }
185
193
  };
186
- let Q = !1, z, F;
187
- const P = /* @__PURE__ */ new Map(), De = (t, e) => {
188
- const { distance: s, percent: n } = F, a = t.getBoundingClientRect().top, o = e * n / 100 / s, i = (e - a) / o;
194
+ let q = !1, z, U;
195
+ const A = /* @__PURE__ */ new Map(), Ne = (t, e) => {
196
+ const { distance: s, percent: n } = U, a = t.getBoundingClientRect().top, o = e * n / 100 / s, i = (e - a) / o;
189
197
  i <= s ? t.style.transform = `translateY(${s - i}px)` : t.style.transform = "translateY(0px)";
190
- }, Ne = (t) => {
198
+ }, Re = (t) => {
191
199
  let e = window.innerHeight;
192
200
  window.addEventListener("scroll", () => {
193
- P.forEach((s) => De(s, e));
201
+ A.forEach((s) => Ne(s, e));
194
202
  }, { passive: !0 }), z = new IntersectionObserver((s) => {
195
203
  e = window.innerHeight, s.forEach((n) => {
196
204
  const a = n.target;
197
- if (n.intersectionRatio < 0.1 ? P.delete(a) : P.set(a, a), n.intersectionRatio === 0) {
198
- const { distance: o, percent: i } = F;
205
+ if (n.intersectionRatio < 0.1 ? A.delete(a) : A.set(a, a), n.intersectionRatio === 0) {
206
+ const { distance: o, percent: i } = U;
199
207
  a.style.transform = `translateY(${o}px)`;
200
208
  }
201
209
  });
202
210
  }, {
203
211
  threshold: 0.1
204
212
  });
205
- }, Re = {
213
+ }, Ae = {
206
214
  mounted(t, e, s) {
207
215
  var i;
208
216
  if (p.state.isMobileUA) return;
209
217
  const n = (i = e.arg) == null ? void 0 : i.split(":");
210
218
  let a = Number((n == null ? void 0 : n[0]) ?? 100), o = Number((n == null ? void 0 : n[1]) ?? 30);
211
- F = {
219
+ U = {
212
220
  distance: a,
213
221
  percent: o
214
- }, Q || (Ne(), Q = !0), z.observe(t);
222
+ }, q || (Re(), q = !0), z.observe(t);
215
223
  },
216
224
  unmounted(t, e, s) {
217
- P.delete(t), z == null || z.unobserve(t);
225
+ A.delete(t), z == null || z.unobserve(t);
218
226
  }
219
- }, Pe = () => typeof window > "u" ? {} : window, q = Pe();
227
+ }, Pe = () => typeof window > "u" ? {} : window, J = Pe();
220
228
  class p {
221
229
  /**
222
230
  * Настройки словаря
@@ -224,12 +232,12 @@ class p {
224
232
  static L = Y({
225
233
  Not_date: "Not date"
226
234
  });
227
- static page = q.page ?? {};
228
- static Page = $e;
229
- static options = Te;
230
- static state = Y({ ...Be });
235
+ static page = J.page ?? {};
236
+ static Page = G;
237
+ static options = Be;
238
+ static state = Y({ ...Le });
231
239
  static matchMediaIsMobile;
232
- static $ = q.$;
240
+ static $ = J.$;
233
241
  /**
234
242
  * Добавить на страницу стили, используется для загрузки стилей из js
235
243
  *
@@ -254,7 +262,7 @@ class p {
254
262
  p.defineOptions(s), e.provide("top-core", p), this.installDirectives(e);
255
263
  }
256
264
  static installDirectives(e) {
257
- e.directive("top-tooltip", Le), e.directive("top-focus", Ee), e.directive("top-sticky", ze), e.directive("top-swim-up", Re);
265
+ e.directive("top-tooltip", Ee), e.directive("top-focus", ze), e.directive("top-sticky", De), e.directive("top-swim-up", Ae);
258
266
  }
259
267
  /**
260
268
  * Установить конфигурацию UI
@@ -264,7 +272,7 @@ class p {
264
272
  e != null && e.widthForMobile && (this.options.widthForMobile = e.widthForMobile), e != null && e.dateFormat && (this.options.dateFormat = e.dateFormat), e != null && e.gmt && (this.options.gmt = e.gmt), p.setState();
265
273
  }
266
274
  static setState() {
267
- p.matchMediaIsMobile = window.matchMedia(`(max-width: ${p.options.widthForMobile}px)`), p.state.isMobileUA = we(), p.state.isRetina = ge(), p.state.isApp = ve(), p.state.dateFormat = this.options.dateFormat, p.state.gmt = this.options.gmt, p.setStateByWindowSize(), We.addOnReize(p.onResize), p.onResize(), p.saveToCookie();
275
+ p.matchMediaIsMobile = window.matchMedia(`(max-width: ${p.options.widthForMobile}px)`), p.state.isMobileUA = ye(), p.state.isRetina = ve(), p.state.isApp = Se(), p.state.dateFormat = this.options.dateFormat, p.state.gmt = this.options.gmt, p.state.isHidden = G.isHidden(), p.setStateByWindowSize(), We.addOnReize(p.onResize), p.onResize(), p.saveToCookie();
268
276
  }
269
277
  static onResize() {
270
278
  p.setStateByWindowSize(), document.documentElement.style.setProperty("--100vh", window.innerHeight + "px");
@@ -288,39 +296,39 @@ class p {
288
296
  document.cookie = "device=" + e.join(",") + "; path=/;";
289
297
  }
290
298
  }
291
- const V = window.L ?? {}, io = (t, e, s) => {
299
+ const T = window.L ?? {}, wo = (t, e, s) => {
292
300
  switch (new Date(t, e, s).getDay()) {
293
301
  case 0:
294
- return V.Vs + ".";
302
+ return T.Vs + ".";
295
303
  case 1:
296
- return V.Pn + ".";
304
+ return T.Pn + ".";
297
305
  case 2:
298
- return V.Vt + ".";
306
+ return T.Vt + ".";
299
307
  case 3:
300
- return V.Sr + ".";
308
+ return T.Sr + ".";
301
309
  case 4:
302
- return V.Ct + ".";
310
+ return T.Ct + ".";
303
311
  case 5:
304
- return V.Pt + ".";
312
+ return T.Pt + ".";
305
313
  case 6:
306
- return V.Sb + ".";
314
+ return T.Sb + ".";
307
315
  default:
308
316
  return "";
309
317
  }
310
- }, ro = (t, e = !0, s = 2) => {
318
+ }, vo = (t, e = !0, s = 2) => {
311
319
  let n = String(t.getFullYear()), a = String(t.getDate()).padStart(2, "0"), o = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getHours()).padStart(2, "0"), l = String(t.getMinutes()).padStart(2, "0"), f = String(t.getSeconds()).padStart(2, "0"), r = n + "-" + o + "-" + a;
312
320
  return s >= 1 && (r += " " + i), s >= 2 && (r += ":" + l), s === 3 && (r += ":" + f), e && (r = L(r, s)), r;
313
321
  };
314
- function lo(t) {
322
+ function yo(t) {
315
323
  return t.indexOf("T") === -1 && (t.length == 10 && (t += " 00:00:00"), t = t.replace(" ", "T") + p.state.gmt), new Date(t);
316
324
  }
317
- function Ae(t, e = !0, s = 0) {
325
+ function Ce(t, e = !0, s = 0) {
318
326
  let n;
319
327
  t != null ? n = new Date(t) : n = /* @__PURE__ */ new Date();
320
328
  const a = n.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"), i = n.getDate().toString().padStart(2, "0"), l = n.getHours().toString().padStart(2, "0"), f = n.getMinutes().toString().padStart(2, "0"), r = n.getSeconds().toString().padStart(2, "0");
321
329
  return n = a + "-" + o + "-" + i, s && (n += " "), s >= 1 && (n += l), s >= 2 && (n += ":" + f), s >= 3 && (n += ":" + r), e && (n = L(n, s)), n;
322
330
  }
323
- function po(t, e = !0) {
331
+ function So(t, e = !0) {
324
332
  const n = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, a = 3 * 60 * 60 * 1e3;
325
333
  let o;
326
334
  t !== void 0 ? o = new Date(t) : o = /* @__PURE__ */ new Date(), o.setTime(o.getTime() - n + a);
@@ -363,7 +371,7 @@ function L(t, e = 2, s, n = p.L.Not_date) {
363
371
  }
364
372
  return o = o.trim(), o;
365
373
  }
366
- function J(t, e = p.L.Not_date) {
374
+ function Z(t, e = p.L.Not_date) {
367
375
  if (!t)
368
376
  return e;
369
377
  if (t.match(/\d\d\d\d-\d\d-\d\d/))
@@ -384,9 +392,9 @@ function J(t, e = p.L.Not_date) {
384
392
  }
385
393
  });
386
394
  let f = l + "-" + i + "-" + o;
387
- return f.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + f), f = Ae((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), f;
395
+ return f.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + f), f = Ce((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), f;
388
396
  }
389
- const Oe = { class: "top-avatar" }, Ce = ["src", "title"], He = ["title"], Ie = /* @__PURE__ */ y({
397
+ const He = { class: "top-avatar" }, Oe = ["src", "title"], Ie = ["title"], Fe = /* @__PURE__ */ y({
390
398
  __name: "avatar",
391
399
  props: {
392
400
  size: { default: 64 },
@@ -400,7 +408,7 @@ const Oe = { class: "top-avatar" }, Ce = ["src", "title"], He = ["title"], Ie =
400
408
  }) }
401
409
  },
402
410
  setup(t) {
403
- te((a) => ({
411
+ oe((a) => ({
404
412
  "15bd2dfc": a.size + "px"
405
413
  }));
406
414
  const e = t, s = h(() => {
@@ -411,21 +419,21 @@ const Oe = { class: "top-avatar" }, Ce = ["src", "title"], He = ["title"], Ie =
411
419
  return ((o = e.i18n) == null ? void 0 : o.LastSeen) + ": " + L(e.lastActiveTime, 2);
412
420
  }), n = h(() => e.nickname ? e.nickname + (s.value ? `
413
421
  ${s.value}` : "") : s.value);
414
- return (a, o) => (u(), m("div", Oe, [
415
- _("img", {
422
+ return (a, o) => (u(), m("div", He, [
423
+ S("img", {
416
424
  class: "top-avatar_image",
417
425
  src: a.image,
418
426
  title: n.value,
419
427
  alt: ""
420
- }, null, 8, Ce),
428
+ }, null, 8, Oe),
421
429
  a.isOnline ? (u(), m("div", {
422
430
  key: 0,
423
431
  class: "top-avatar_status",
424
432
  title: s.value
425
- }, null, 8, He)) : g("", !0)
433
+ }, null, 8, Ie)) : g("", !0)
426
434
  ]));
427
435
  }
428
- }), Fe = {
436
+ }), Ue = {
429
437
  "top-avatar": "top-avatar",
430
438
  "top-avatar_image": "top-avatar_image",
431
439
  "top-avatar_status": "top-avatar_status"
@@ -434,12 +442,12 @@ ${s.value}` : "") : s.value);
434
442
  for (const [n, a] of e)
435
443
  s[n] = a;
436
444
  return s;
437
- }, Ue = {
438
- $style: Fe
439
- }, uo = /* @__PURE__ */ v(Ie, [["__cssModules", Ue]]), Ye = {
445
+ }, Ye = {
446
+ $style: Ue
447
+ }, Xe = /* @__PURE__ */ v(Fe, [["__cssModules", Ye]]), Ge = {
440
448
  key: 0,
441
449
  class: "top-ellipsis"
442
- }, Xe = /* @__PURE__ */ y({
450
+ }, Ke = /* @__PURE__ */ y({
443
451
  __name: "button",
444
452
  props: {
445
453
  color: { default: "blue" },
@@ -457,7 +465,7 @@ ${s.value}` : "") : s.value);
457
465
  },
458
466
  setup(t) {
459
467
  const e = t, s = h(() => e.href ? "a" : "button"), n = h(() => e.isSubmit ? "submit" : void 0);
460
- return (a, o) => (u(), M(re(s.value), {
468
+ return (a, o) => (u(), M(de(s.value), {
461
469
  class: w({
462
470
  "top-active": a.isActive,
463
471
  "top-disabled": a.disabled,
@@ -479,9 +487,9 @@ ${s.value}` : "") : s.value);
479
487
  inProgress: a.isProgress
480
488
  }, {
481
489
  default: D(() => [
482
- a.$slots.default ? (u(), m("span", Ye, [
490
+ a.$slots.default ? (u(), m("span", Ge, [
483
491
  k(a.$slots, "default", {}, () => [
484
- le(W(a.icon ? "" : "Button"), 1)
492
+ pe(V(a.icon ? "" : "Button"), 1)
485
493
  ])
486
494
  ])) : g("", !0),
487
495
  k(a.$slots, "html")
@@ -489,11 +497,11 @@ ${s.value}` : "") : s.value);
489
497
  _: 3
490
498
  }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
491
499
  }
492
- }), Ge = "_progress_1f1nw_1", Ke = {
500
+ }), Qe = "_progress_1f1nw_1", qe = {
493
501
  "top-button": "top-button",
494
502
  "top-active": "top-active",
495
503
  "top-button-progress": "top-button-progress",
496
- progress: Ge,
504
+ progress: Qe,
497
505
  "top-button-withoutText": "top-button-withoutText",
498
506
  "top-color_blue": "top-color_blue",
499
507
  "top-color_green": "top-color_green",
@@ -506,17 +514,17 @@ ${s.value}` : "") : s.value);
506
514
  "top-style_transparent": "top-style_transparent",
507
515
  "top-size_l": "top-size_l",
508
516
  "top-size_xl": "top-size_xl"
509
- }, Qe = {
510
- $style: Ke
511
- }, co = /* @__PURE__ */ v(Xe, [["__cssModules", Qe]]), qe = { class: "top-forms-optionLabel" }, Je = /* @__PURE__ */ y({
517
+ }, Je = {
518
+ $style: qe
519
+ }, Ze = /* @__PURE__ */ v(Ke, [["__cssModules", Je]]), je = { class: "top-forms-optionLabel" }, xe = /* @__PURE__ */ y({
512
520
  __name: "controlLabel",
513
521
  props: {
514
522
  description: {},
515
523
  disabled: { type: Boolean }
516
524
  },
517
525
  setup(t) {
518
- return (e, s) => (u(), m("div", qe, [
519
- _("div", {
526
+ return (e, s) => (u(), m("div", je, [
527
+ S("div", {
520
528
  class: w({
521
529
  "top-forms-optionLabel_title": !0,
522
530
  "top-forms-optionLabel_title-disabled": e.disabled
@@ -527,20 +535,20 @@ ${s.value}` : "") : s.value);
527
535
  e.description ? (u(), m("div", {
528
536
  key: 0,
529
537
  class: w(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": e.disabled }])
530
- }, W(e.description), 3)) : g("", !0)
538
+ }, V(e.description), 3)) : g("", !0)
531
539
  ]));
532
540
  }
533
- }), Ze = {
541
+ }), et = {
534
542
  "top-forms-optionLabel": "top-forms-optionLabel",
535
543
  "top-forms-optionLabel_title": "top-forms-optionLabel_title",
536
544
  "top-forms-optionLabel_title-disabled": "top-forms-optionLabel_title-disabled",
537
545
  "top-forms-optionLabel_description": "top-forms-optionLabel_description",
538
546
  "top-forms-optionLabel_description-disabled": "top-forms-optionLabel_description-disabled"
539
- }, je = {
540
- $style: Ze
541
- }, U = /* @__PURE__ */ v(Je, [["__cssModules", je]]), xe = ["name", "value", "indeterminate", "disabled"], et = /* @__PURE__ */ y({
547
+ }, tt = {
548
+ $style: et
549
+ }, C = /* @__PURE__ */ v(xe, [["__cssModules", tt]]), ot = ["name", "value", "indeterminate", "disabled"], st = /* @__PURE__ */ y({
542
550
  __name: "checkbox",
543
- props: /* @__PURE__ */ H({
551
+ props: /* @__PURE__ */ I({
544
552
  modelValue: { type: [Boolean, Array, Set] },
545
553
  name: {},
546
554
  value: {},
@@ -554,7 +562,7 @@ ${s.value}` : "") : s.value);
554
562
  }),
555
563
  emits: ["update:modelValue"],
556
564
  setup(t) {
557
- const e = oe(t, "modelValue");
565
+ const e = se(t, "modelValue");
558
566
  return (s, n) => (u(), m("label", {
559
567
  class: w({
560
568
  "top-forms-optionWrapper": !0,
@@ -564,7 +572,7 @@ ${s.value}` : "") : s.value);
564
572
  "top-error": s.isError && !s.disabled
565
573
  })
566
574
  }, [
567
- T(_("input", {
575
+ W(S("input", {
568
576
  type: "checkbox",
569
577
  class: w({
570
578
  "top-forms-focusable": !s.disabled,
@@ -577,10 +585,10 @@ ${s.value}` : "") : s.value);
577
585
  value: s.value,
578
586
  indeterminate: s.indeterminate,
579
587
  disabled: s.disabled
580
- }, null, 10, xe), [
581
- [se, e.value]
588
+ }, null, 10, ot), [
589
+ [ne, e.value]
582
590
  ]),
583
- s.$slots.default ? (u(), M(U, {
591
+ s.$slots.default ? (u(), M(C, {
584
592
  key: 0,
585
593
  description: s.description,
586
594
  disabled: s.disabled
@@ -592,13 +600,13 @@ ${s.value}` : "") : s.value);
592
600
  }, 8, ["description", "disabled"])) : g("", !0)
593
601
  ], 2));
594
602
  }
595
- }), tt = {
603
+ }), nt = {
596
604
  "top-checkbox": "top-checkbox",
597
605
  "top-checkbox_input": "top-checkbox_input",
598
606
  "top-error": "top-error"
599
- }, ot = {
600
- $style: tt
601
- }, mo = /* @__PURE__ */ v(et, [["__cssModules", ot]]), st = ["title"], nt = /* @__PURE__ */ y({
607
+ }, at = {
608
+ $style: nt
609
+ }, it = /* @__PURE__ */ v(st, [["__cssModules", at]]), rt = ["title"], lt = /* @__PURE__ */ y({
602
610
  __name: "hint",
603
611
  props: {
604
612
  hint: {}
@@ -608,16 +616,100 @@ ${s.value}` : "") : s.value);
608
616
  class: "top-hint",
609
617
  "data-top-icon": "",
610
618
  title: e.hint
611
- }, null, 8, st));
619
+ }, null, 8, rt));
612
620
  }
613
- }), at = {
621
+ }), dt = {
614
622
  "top-hint": "top-hint"
615
- }, it = {
616
- $style: at
617
- }, rt = /* @__PURE__ */ v(nt, [["__cssModules", it]]), lt = ["modelValue"], dt = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
618
- let Z = (t) => {
623
+ }, pt = {
624
+ $style: dt
625
+ }, ie = /* @__PURE__ */ v(lt, [["__cssModules", pt]]), ut = ["data-top-icon", "data-top-icon2"], ct = ["name", "title", "placeholder", "disabled", "readonly"], mt = {
626
+ key: 2,
627
+ class: "top-formsCaption"
628
+ }, ft = /* @__PURE__ */ y({
629
+ inheritAttrs: !1,
630
+ __name: "input",
631
+ props: {
632
+ modelValue: {},
633
+ name: {},
634
+ disabled: { type: Boolean },
635
+ readonly: { type: Boolean },
636
+ modificator: {},
637
+ size: { default: "s" },
638
+ isError: { type: Boolean },
639
+ isLoading: { type: Boolean },
640
+ icon: {},
641
+ icon2: {},
642
+ addCleaner: { type: Boolean },
643
+ title: {},
644
+ captionType: { default: "" }
645
+ },
646
+ emits: ["update:modelValue"],
647
+ setup(t, { emit: e }) {
648
+ const s = t, n = e, a = h({
649
+ get() {
650
+ return s.modelValue;
651
+ },
652
+ set(l) {
653
+ n("update:modelValue", l);
654
+ }
655
+ }), o = h(() => s.addCleaner && !s.title || s.captionType !== "" ? "" : s.title), i = (l) => {
656
+ s.modelValue && l.stopPropagation(), n("update:modelValue", "");
657
+ };
658
+ return (l, f) => (u(), m("label", {
659
+ class: w({
660
+ "top-input": !0,
661
+ ["top-size_" + l.size]: !0,
662
+ "top-disabled": l.disabled,
663
+ ["top-input-" + l.modificator]: !!l.modificator,
664
+ "top-input-withCleaner": l.addCleaner && a.value && a.value !== "0000-00-00",
665
+ "top-formsCaptionWrapper": l.captionType !== "",
666
+ "top-formsCaptionWrapper-always": l.captionType === "top"
667
+ }),
668
+ "data-top-icon": l.icon,
669
+ "data-top-icon2": l.icon2
670
+ }, [
671
+ l.isLoading ? (u(), M(B(lo), { key: 0 })) : g("", !0),
672
+ W(S("input", P({
673
+ type: "text",
674
+ class: {
675
+ "top-input_input": !0,
676
+ ["top-input_input-" + l.modificator]: !!l.modificator,
677
+ "top-forms-focusable": !l.disabled,
678
+ "top-error": l.isError
679
+ },
680
+ autocomplete: "off_always",
681
+ name: l.name,
682
+ "onUpdate:modelValue": f[0] || (f[0] = (r) => a.value = r),
683
+ title: l.title,
684
+ placeholder: o.value,
685
+ disabled: l.disabled,
686
+ readonly: l.readonly,
687
+ onKeydown: f[1] || (f[1] = ue((r) => (l.addCleaner || !!l.$slots.btn) && i(r), ["esc"]))
688
+ }, l.$attrs), null, 16, ct), [
689
+ [ae, a.value]
690
+ ]),
691
+ l.addCleaner && a.value && a.value !== "0000-00-00" ? (u(), m("span", {
692
+ key: 1,
693
+ class: "top-input_cleaner",
694
+ "data-top-icon": "",
695
+ onClick: ce(i, ["prevent"])
696
+ })) : g("", !0),
697
+ l.captionType !== "" ? (u(), m("span", mt, V(l.title), 1)) : g("", !0),
698
+ k(l.$slots, "default")
699
+ ], 10, ut));
700
+ }
701
+ }), bt = {
702
+ "top-input": "top-input",
703
+ "top-input_input": "top-input_input",
704
+ "top-input-withCleaner": "top-input-withCleaner",
705
+ "top-input_cleaner": "top-input_cleaner",
706
+ "top-loadbar": "top-loadbar"
707
+ }, ht = {
708
+ $style: bt
709
+ }, gt = /* @__PURE__ */ v(ft, [["__cssModules", ht]]), wt = ["modelValue"], vt = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
710
+ let j = (t) => {
619
711
  };
620
- const pt = /* @__PURE__ */ y({
712
+ const yt = /* @__PURE__ */ y({
621
713
  __name: "inputDate",
622
714
  props: {
623
715
  modelValue: {},
@@ -637,23 +729,23 @@ const pt = /* @__PURE__ */ y({
637
729
  emits: ["update:modelValue"],
638
730
  setup(t, { emit: e }) {
639
731
  const s = t, n = e;
640
- de(() => {
732
+ me(() => {
641
733
  o && o.datepicker("destroy");
642
734
  });
643
- const a = pe();
735
+ const a = fe();
644
736
  let o;
645
737
  const i = h({
646
738
  get() {
647
739
  return L(s.modelValue, 2, void 0, "0000-00-00");
648
740
  },
649
741
  set(d) {
650
- d = J(d, "0000-00-00"), n("update:modelValue", d);
742
+ d = Z(d, "0000-00-00"), n("update:modelValue", d);
651
743
  }
652
744
  });
653
745
  let l = (d) => {
654
- Z(d);
746
+ j(d);
655
747
  }, f = (d) => {
656
- const c = J(d.target.value), b = L(c);
748
+ const c = Z(d.target.value), b = L(c);
657
749
  if (!b || b === p.L.Not_date || d.target.value !== b) {
658
750
  d.target.value = i.value;
659
751
  return;
@@ -661,18 +753,18 @@ const pt = /* @__PURE__ */ y({
661
753
  i.value = d.target.value;
662
754
  };
663
755
  async function r(d) {
664
- const c = await import("./datepicker-D1JLNEmV.es.js");
665
- Z = c.oninput, o = c.connectDatepicker(d.target, {
756
+ const c = await import("./datepicker-BGhDjLcn.es.js");
757
+ j = c.oninput, o = c.connectDatepicker(d.target, {
666
758
  onSelect: () => f(d)
667
759
  }), o && o.datepicker("show");
668
760
  }
669
- return (d, c) => B(dt) ? (u(), M(B(j), A({ key: 0 }, d.$props, {
761
+ return (d, c) => B(vt) ? (u(), M(B(x), P({ key: 0 }, d.$props, {
670
762
  modelValue: i.value,
671
763
  readonly: "",
672
764
  onClick: c[1] || (c[1] = (b) => a.value.showPicker())
673
765
  }), {
674
766
  default: D(() => [
675
- _("input", {
767
+ S("input", {
676
768
  ref_key: "el",
677
769
  ref: a,
678
770
  type: "date",
@@ -680,10 +772,10 @@ const pt = /* @__PURE__ */ y({
680
772
  modelValue: d.modelValue,
681
773
  onChange: c[0] || (c[0] = (b) => i.value = b.target.value),
682
774
  tabindex: "-1"
683
- }, null, 40, lt)
775
+ }, null, 40, wt)
684
776
  ]),
685
777
  _: 1
686
- }, 16, ["modelValue"])) : (u(), M(B(j), A({ key: 1 }, d.$props, {
778
+ }, 16, ["modelValue"])) : (u(), M(B(x), P({ key: 1 }, d.$props, {
687
779
  modelValue: i.value,
688
780
  "onUpdate:modelValue": c[2] || (c[2] = (b) => b === "" ? i.value = "" : ""),
689
781
  onInput: B(l),
@@ -692,27 +784,27 @@ const pt = /* @__PURE__ */ y({
692
784
  modificator: "datepicker"
693
785
  }), null, 16, ["modelValue", "onInput", "onChange"]));
694
786
  }
695
- }), ut = {
787
+ }), St = {
696
788
  "top-input-datepicker": "top-input-datepicker",
697
789
  "top-input_input-date": "top-input_input-date"
698
- }, ct = {
699
- $style: ut
700
- }, fo = /* @__PURE__ */ v(pt, [["__cssModules", ct]]), mt = { class: "top-inputRange" }, ft = /* @__PURE__ */ _("span", { class: "top-inputRange_dash" }, " — ", -1), bt = /* @__PURE__ */ y({
790
+ }, $t = {
791
+ $style: St
792
+ }, _t = /* @__PURE__ */ v(yt, [["__cssModules", $t]]), kt = { class: "top-inputRange" }, Mt = /* @__PURE__ */ S("span", { class: "top-inputRange_dash" }, " — ", -1), Tt = /* @__PURE__ */ y({
701
793
  __name: "inputRange",
702
794
  setup(t) {
703
- return (e, s) => (u(), m("div", mt, [
795
+ return (e, s) => (u(), m("div", kt, [
704
796
  k(e.$slots, "from"),
705
- ft,
797
+ Mt,
706
798
  k(e.$slots, "to")
707
799
  ]));
708
800
  }
709
- }), ht = {
801
+ }), Vt = {
710
802
  "top-inputRange": "top-inputRange",
711
803
  "top-inputRange_dash": "top-inputRange_dash",
712
804
  "top-input": "top-input"
713
- }, gt = {
714
- $style: ht
715
- }, bo = /* @__PURE__ */ v(bt, [["__cssModules", gt]]), wt = ["name", "value", "disabled"], vt = /* @__PURE__ */ y({
805
+ }, Wt = {
806
+ $style: Vt
807
+ }, Bt = /* @__PURE__ */ v(Tt, [["__cssModules", Wt]]), Lt = ["name", "value", "disabled"], Et = /* @__PURE__ */ y({
716
808
  __name: "radio",
717
809
  props: {
718
810
  modelValue: {},
@@ -741,7 +833,7 @@ const pt = /* @__PURE__ */ y({
741
833
  "top-error": o.isError && !o.disabled
742
834
  })
743
835
  }, [
744
- T(_("input", {
836
+ W(S("input", {
745
837
  type: "radio",
746
838
  class: w({
747
839
  "top-forms-focusable": !o.disabled,
@@ -753,10 +845,10 @@ const pt = /* @__PURE__ */ y({
753
845
  name: o.name,
754
846
  value: o.value,
755
847
  disabled: o.disabled
756
- }, null, 10, wt), [
757
- [ue, a.value]
848
+ }, null, 10, Lt), [
849
+ [be, a.value]
758
850
  ]),
759
- o.$slots.default ? (u(), M(U, {
851
+ o.$slots.default ? (u(), M(C, {
760
852
  key: 0,
761
853
  description: o.description,
762
854
  disabled: o.disabled
@@ -768,13 +860,13 @@ const pt = /* @__PURE__ */ y({
768
860
  }, 8, ["description", "disabled"])) : g("", !0)
769
861
  ], 2));
770
862
  }
771
- }), yt = {
863
+ }), zt = {
772
864
  "top-radio": "top-radio",
773
865
  "top-radio_input": "top-radio_input",
774
866
  "top-error": "top-error"
775
- }, _t = {
776
- $style: yt
777
- }, ho = /* @__PURE__ */ v(vt, [["__cssModules", _t]]), $t = ["name", "value", "disabled"], St = /* @__PURE__ */ y({
867
+ }, Dt = {
868
+ $style: zt
869
+ }, Nt = /* @__PURE__ */ v(Et, [["__cssModules", Dt]]), Rt = ["name", "value", "disabled"], At = /* @__PURE__ */ y({
778
870
  __name: "switcher",
779
871
  props: {
780
872
  modelValue: { type: [Boolean, Array, Set] },
@@ -802,7 +894,7 @@ const pt = /* @__PURE__ */ y({
802
894
  "top-error": o.isError && !o.disabled
803
895
  })
804
896
  }, [
805
- T(_("input", {
897
+ W(S("input", {
806
898
  type: "checkbox",
807
899
  class: w({
808
900
  "top-forms-focusable": !o.disabled,
@@ -814,10 +906,10 @@ const pt = /* @__PURE__ */ y({
814
906
  name: o.name,
815
907
  value: o.value,
816
908
  disabled: o.disabled
817
- }, null, 10, $t), [
818
- [se, a.value]
909
+ }, null, 10, Rt), [
910
+ [ne, a.value]
819
911
  ]),
820
- o.$slots.default ? (u(), M(U, {
912
+ o.$slots.default ? (u(), M(C, {
821
913
  key: 0,
822
914
  description: o.description,
823
915
  disabled: o.disabled
@@ -829,16 +921,16 @@ const pt = /* @__PURE__ */ y({
829
921
  }, 8, ["description", "disabled"])) : g("", !0)
830
922
  ], 2));
831
923
  }
832
- }), kt = {
924
+ }), Pt = {
833
925
  "top-checkboxSwitcher": "top-checkboxSwitcher",
834
926
  "top-checkboxSwitcher_input": "top-checkboxSwitcher_input",
835
927
  "top-error": "top-error"
836
- }, Mt = {
837
- $style: kt
838
- }, go = /* @__PURE__ */ v(St, [["__cssModules", Mt]]), Vt = ["name", "placeholder", "disabled", "readonly", "rows"], Wt = {
928
+ }, Ct = {
929
+ $style: Pt
930
+ }, Ht = /* @__PURE__ */ v(At, [["__cssModules", Ct]]), Ot = ["name", "placeholder", "disabled", "readonly", "rows"], It = {
839
931
  key: 0,
840
932
  class: "top-textarea_pseudoContent"
841
- }, Tt = /* @__PURE__ */ y({
933
+ }, Ft = /* @__PURE__ */ y({
842
934
  inheritAttrs: !1,
843
935
  __name: "textarea",
844
936
  props: {
@@ -855,7 +947,7 @@ const pt = /* @__PURE__ */ y({
855
947
  },
856
948
  emits: ["update:modelValue"],
857
949
  setup(t, { emit: e }) {
858
- te((o) => ({
950
+ oe((o) => ({
859
951
  "6e3fbb58": o.minHeight + "px"
860
952
  }));
861
953
  const s = t, n = e, a = h({
@@ -867,7 +959,7 @@ const pt = /* @__PURE__ */ y({
867
959
  }
868
960
  });
869
961
  return (o, i) => {
870
- const l = ce("top-tooltip");
962
+ const l = he("top-tooltip");
871
963
  return u(), m("label", {
872
964
  class: w({
873
965
  "top-textarea": !0,
@@ -875,7 +967,7 @@ const pt = /* @__PURE__ */ y({
875
967
  "top-disabled": o.disabled
876
968
  })
877
969
  }, [
878
- T(_("textarea", A({
970
+ W(S("textarea", P({
879
971
  type: "text",
880
972
  class: {
881
973
  "top-forms-focusable": !o.disabled,
@@ -891,11 +983,11 @@ const pt = /* @__PURE__ */ y({
891
983
  rows: o.expandable ? void 0 : o.rows
892
984
  }, o.$attrs, {
893
985
  "onUpdate:modelValue": i[0] || (i[0] = (f) => a.value = f)
894
- }), null, 16, Vt), [
895
- [ne, a.value]
986
+ }), null, 16, Ot), [
987
+ [ae, a.value]
896
988
  ]),
897
- o.expandable ? (u(), m("div", Wt, W(a.value + " "), 1)) : g("", !0),
898
- o.hint ? T((u(), M(rt, {
989
+ o.expandable ? (u(), m("div", It, V(a.value + " "), 1)) : g("", !0),
990
+ o.hint ? W((u(), M(ie, {
899
991
  key: 1,
900
992
  class: "top-textarea_hint",
901
993
  hint: o.hint
@@ -905,20 +997,20 @@ const pt = /* @__PURE__ */ y({
905
997
  ], 2);
906
998
  };
907
999
  }
908
- }), Bt = {
1000
+ }), Ut = {
909
1001
  "top-textarea": "top-textarea",
910
1002
  "top-textarea_textarea": "top-textarea_textarea",
911
1003
  "top-textarea_textarea-expandable": "top-textarea_textarea-expandable",
912
1004
  "top-textarea_pseudoContent": "top-textarea_pseudoContent",
913
1005
  "top-textarea_hint": "top-textarea_hint"
914
- }, Lt = {
915
- $style: Bt
916
- }, wo = /* @__PURE__ */ v(Tt, [["__cssModules", Lt]]), Et = ["data-value", "data-top-icon", "data-top-icon2"], zt = ["name", "disabled"], Dt = ["label", "disabled"], Nt = ["value", "selected", "disabled"], Rt = ["value", "selected", "disabled"], Pt = {
1006
+ }, Yt = {
1007
+ $style: Ut
1008
+ }, Xt = /* @__PURE__ */ v(Ft, [["__cssModules", Yt]]), Gt = ["data-value", "data-top-icon", "data-top-icon2"], Kt = ["name", "disabled"], Qt = ["label", "disabled"], qt = ["value", "selected", "disabled"], Jt = ["value", "selected", "disabled"], Zt = {
917
1009
  key: 1,
918
1010
  class: "top-formsCaption"
919
- }, At = /* @__PURE__ */ y({
1011
+ }, jt = /* @__PURE__ */ y({
920
1012
  __name: "select",
921
- props: /* @__PURE__ */ H({
1013
+ props: /* @__PURE__ */ I({
922
1014
  modelValue: {},
923
1015
  options: {},
924
1016
  name: {},
@@ -934,15 +1026,15 @@ const pt = /* @__PURE__ */ y({
934
1026
  },
935
1027
  modelModifiers: {}
936
1028
  }),
937
- emits: /* @__PURE__ */ H(["update:modelValue"], ["update:modelValue"]),
1029
+ emits: /* @__PURE__ */ I(["update:modelValue"], ["update:modelValue"]),
938
1030
  setup(t, { emit: e }) {
939
- const s = t, n = oe(t, "modelValue"), a = h(() => {
1031
+ const s = t, n = se(t, "modelValue"), a = h(() => {
940
1032
  const r = /* @__PURE__ */ new Map();
941
1033
  return s.options.forEach((d, c) => {
942
1034
  if (typeof d == "string" && (d = i(c, d)), d.children) {
943
1035
  const b = /* @__PURE__ */ new Map();
944
- d.children.forEach((S, N) => {
945
- typeof S == "string" && (S = i(N, S)), b.set(S.value, S);
1036
+ d.children.forEach((_, N) => {
1037
+ typeof _ == "string" && (_ = i(N, _)), b.set(_.value, _);
946
1038
  }), d = { ...d }, d.children = b, r.set(d.value, d);
947
1039
  } else
948
1040
  r.set(d.value, d);
@@ -964,7 +1056,7 @@ const pt = /* @__PURE__ */ y({
964
1056
  value: r,
965
1057
  title: d
966
1058
  });
967
- me([
1059
+ ge([
968
1060
  () => s.modelValue,
969
1061
  o
970
1062
  ], () => {
@@ -990,7 +1082,7 @@ const pt = /* @__PURE__ */ y({
990
1082
  "data-top-icon": r.icon,
991
1083
  "data-top-icon2": l.value
992
1084
  }, [
993
- T(_("select", {
1085
+ W(S("select", {
994
1086
  class: w({
995
1087
  "top-forms-focusable": !r.disabled,
996
1088
  "top-select_select": !0,
@@ -1001,170 +1093,94 @@ const pt = /* @__PURE__ */ y({
1001
1093
  disabled: r.disabled,
1002
1094
  "onUpdate:modelValue": d[0] || (d[0] = (c) => n.value = c)
1003
1095
  }, [
1004
- (u(!0), m(O, null, X(a.value, ([c, b]) => (u(), m(O, null, [
1096
+ (u(!0), m(H, null, X(a.value, ([c, b]) => (u(), m(H, null, [
1005
1097
  b.children ? (u(), m("optgroup", {
1006
1098
  key: "group_" + c,
1007
1099
  label: b.title,
1008
1100
  disabled: b.disabled
1009
1101
  }, [
1010
- (u(!0), m(O, null, X(b.children, ([S, N]) => (u(), m("option", {
1011
- key: S,
1012
- value: S,
1013
- selected: S === n.value,
1102
+ (u(!0), m(H, null, X(b.children, ([_, N]) => (u(), m("option", {
1103
+ key: _,
1104
+ value: _,
1105
+ selected: _ === n.value,
1014
1106
  disabled: N.disabled
1015
- }, W(N.title), 9, Nt))), 128))
1016
- ], 8, Dt)) : (u(), m("option", {
1107
+ }, V(N.title), 9, qt))), 128))
1108
+ ], 8, Qt)) : (u(), m("option", {
1017
1109
  key: c ?? void 0,
1018
1110
  value: c,
1019
1111
  selected: c === n.value,
1020
1112
  disabled: b.disabled
1021
- }, W(b.title), 9, Rt))
1113
+ }, V(b.title), 9, Jt))
1022
1114
  ], 64))), 256))
1023
- ], 10, zt), [
1024
- [fe, n.value]
1115
+ ], 10, Kt), [
1116
+ [we, n.value]
1025
1117
  ]),
1026
1118
  r.addChanger && o.value.size && !r.disabled ? (u(), m("span", {
1027
1119
  key: 0,
1028
1120
  class: "top-changer",
1029
1121
  onClick: f
1030
1122
  })) : g("", !0),
1031
- r.title ? (u(), m("span", Pt, W(r.title), 1)) : g("", !0)
1032
- ], 10, Et));
1123
+ r.title ? (u(), m("span", Zt, V(r.title), 1)) : g("", !0)
1124
+ ], 10, Gt));
1033
1125
  }
1034
- }), Ot = {
1126
+ }), xt = {
1035
1127
  "top-select": "top-select",
1036
1128
  "top-select-error": "top-select-error",
1037
1129
  "top-select_select": "top-select_select",
1038
1130
  "top-changer": "top-changer"
1039
- }, Ct = {
1040
- $style: Ot
1041
- }, vo = /* @__PURE__ */ v(At, [["__cssModules", Ct]]), Ht = {
1131
+ }, eo = {
1132
+ $style: xt
1133
+ }, to = /* @__PURE__ */ v(jt, [["__cssModules", eo]]), oo = {
1042
1134
  "top-loadbar": "top-loadbar"
1043
- }, It = {}, Ft = { class: "top-loadbar" };
1044
- function Ut(t, e) {
1045
- return u(), m("div", Ft);
1135
+ }, so = {}, no = { class: "top-loadbar" };
1136
+ function ao(t, e) {
1137
+ return u(), m("div", no);
1046
1138
  }
1047
- const Yt = {
1048
- $style: Ht
1049
- }, Xt = /* @__PURE__ */ v(It, [["render", Ut], ["__cssModules", Yt]]), Gt = ["data-top-icon", "data-top-icon2"], Kt = ["name", "title", "placeholder", "disabled", "readonly"], Qt = {
1050
- key: 2,
1051
- class: "top-formsCaption"
1052
- }, qt = /* @__PURE__ */ y({
1053
- inheritAttrs: !1,
1054
- __name: "input",
1055
- props: {
1056
- modelValue: {},
1057
- name: {},
1058
- disabled: { type: Boolean },
1059
- readonly: { type: Boolean },
1060
- modificator: {},
1061
- size: { default: "s" },
1062
- isError: { type: Boolean },
1063
- isLoading: { type: Boolean },
1064
- icon: {},
1065
- icon2: {},
1066
- addCleaner: { type: Boolean },
1067
- title: {},
1068
- captionType: { default: "" }
1069
- },
1070
- emits: ["update:modelValue"],
1071
- setup(t, { emit: e }) {
1072
- const s = t, n = e, a = h({
1073
- get() {
1074
- return s.modelValue;
1075
- },
1076
- set(l) {
1077
- n("update:modelValue", l);
1078
- }
1079
- }), o = h(() => s.addCleaner && !s.title || s.captionType !== "" ? "" : s.title), i = (l) => {
1080
- s.modelValue && l.stopPropagation(), n("update:modelValue", "");
1081
- };
1082
- return (l, f) => (u(), m("label", {
1083
- class: w({
1084
- "top-input": !0,
1085
- ["top-size_" + l.size]: !0,
1086
- "top-disabled": l.disabled,
1087
- ["top-input-" + l.modificator]: !!l.modificator,
1088
- "top-input-withCleaner": l.addCleaner && a.value && a.value !== "0000-00-00",
1089
- "top-formsCaptionWrapper": l.captionType !== "",
1090
- "top-formsCaptionWrapper-always": l.captionType === "top"
1091
- }),
1092
- "data-top-icon": l.icon,
1093
- "data-top-icon2": l.icon2
1094
- }, [
1095
- l.isLoading ? (u(), M(B(Xt), { key: 0 })) : g("", !0),
1096
- T(_("input", A({
1097
- type: "text",
1098
- class: {
1099
- "top-input_input": !0,
1100
- ["top-input_input-" + l.modificator]: !!l.modificator,
1101
- "top-forms-focusable": !l.disabled,
1102
- "top-error": l.isError
1103
- },
1104
- autocomplete: "off_always",
1105
- name: l.name,
1106
- "onUpdate:modelValue": f[0] || (f[0] = (r) => a.value = r),
1107
- title: l.title,
1108
- placeholder: o.value,
1109
- disabled: l.disabled,
1110
- readonly: l.readonly,
1111
- onKeydown: f[1] || (f[1] = be((r) => (l.addCleaner || !!l.$slots.btn) && i(r), ["esc"]))
1112
- }, l.$attrs), null, 16, Kt), [
1113
- [ne, a.value]
1114
- ]),
1115
- l.addCleaner && a.value && a.value !== "0000-00-00" ? (u(), m("span", {
1116
- key: 1,
1117
- class: "top-input_cleaner",
1118
- "data-top-icon": "",
1119
- onClick: he(i, ["prevent"])
1120
- })) : g("", !0),
1121
- l.captionType !== "" ? (u(), m("span", Qt, W(l.title), 1)) : g("", !0),
1122
- k(l.$slots, "default")
1123
- ], 10, Gt));
1124
- }
1125
- }), Jt = {
1126
- "top-input": "top-input",
1127
- "top-input_input": "top-input_input",
1128
- "top-input-withCleaner": "top-input-withCleaner",
1129
- "top-input_cleaner": "top-input_cleaner",
1130
- "top-loadbar": "top-loadbar"
1131
- }, Zt = {
1132
- $style: Jt
1133
- }, j = /* @__PURE__ */ v(qt, [["__cssModules", Zt]]);
1139
+ const io = {
1140
+ $style: oo
1141
+ }, ro = /* @__PURE__ */ v(so, [["render", ao], ["__cssModules", io]]), $o = Xe, _o = Ze, ko = it, Mo = C, To = ie, x = gt, Vo = _t, Wo = Bt, Bo = Nt, Lo = Ht, Eo = Xt, zo = to, lo = ro;
1134
1142
  export {
1135
- co as B,
1143
+ mo as A,
1144
+ fo as B,
1136
1145
  p as C,
1146
+ bo as D,
1137
1147
  We as E,
1138
- rt as H,
1139
- j as I,
1140
- Xt as L,
1141
- wo as T,
1142
- q as _,
1143
- v as a,
1144
- ge as b,
1145
- we as c,
1146
- L as d,
1147
- ve as e,
1148
- ye as f,
1149
- to as g,
1150
- oo as h,
1151
- eo as i,
1152
- so as j,
1153
- no as k,
1154
- ao as l,
1155
- io as m,
1156
- ro as n,
1157
- Ae as o,
1158
- po as p,
1159
- J as q,
1160
- uo as r,
1161
- lo as s,
1162
- mo as t,
1163
- U as u,
1164
- fo as v,
1165
- bo as w,
1166
- ho as x,
1167
- go as y,
1168
- vo as z
1148
+ ho as F,
1149
+ _e as G,
1150
+ go as H,
1151
+ wo as I,
1152
+ vo as J,
1153
+ yo as K,
1154
+ Ce as L,
1155
+ So as M,
1156
+ Z as N,
1157
+ $o as T,
1158
+ J as _,
1159
+ Ae as a,
1160
+ _o as b,
1161
+ ko as c,
1162
+ Mo as d,
1163
+ To as e,
1164
+ ze as f,
1165
+ x as g,
1166
+ Vo as h,
1167
+ Wo as i,
1168
+ lo as j,
1169
+ Bo as k,
1170
+ zo as l,
1171
+ Lo as m,
1172
+ Eo as n,
1173
+ L as o,
1174
+ co as p,
1175
+ v as q,
1176
+ Ze as r,
1177
+ De as s,
1178
+ Ee as t,
1179
+ gt as u,
1180
+ Xt as v,
1181
+ ve as w,
1182
+ ye as x,
1183
+ Se as y,
1184
+ $e as z
1169
1185
  };
1170
- //# sourceMappingURL=forms-S36M7cBH.es.js.map
1186
+ //# sourceMappingURL=forms-CRAV8PiZ.es.js.map