@topvisor/ui 1.5.0-updates.0 → 1.5.0-updates.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 (298) hide show
  1. package/.chunks/api-CawzY1Cw.amd.js +2 -0
  2. package/.chunks/api-CawzY1Cw.amd.js.map +1 -0
  3. package/.chunks/api-CawzY1Cw.esm.js +208 -0
  4. package/.chunks/api-CawzY1Cw.esm.js.map +1 -0
  5. package/.chunks/app-CCX-gNqz.amd.js +2 -0
  6. package/.chunks/app-CCX-gNqz.amd.js.map +1 -0
  7. package/.chunks/app-CCX-gNqz.esm.js +396 -0
  8. package/.chunks/app-CCX-gNqz.esm.js.map +1 -0
  9. package/.chunks/datepicker-BTkZOq7d.amd.js +2 -0
  10. package/.chunks/datepicker-BTkZOq7d.amd.js.map +1 -0
  11. package/.chunks/datepicker-BTkZOq7d.esm.js +38 -0
  12. package/.chunks/datepicker-BTkZOq7d.esm.js.map +1 -0
  13. package/.chunks/dialog-DeM4SApg.amd.js +2 -0
  14. package/.chunks/dialog-DeM4SApg.amd.js.map +1 -0
  15. package/.chunks/dialog-DeM4SApg.esm.js +117 -0
  16. package/.chunks/dialog-DeM4SApg.esm.js.map +1 -0
  17. package/.chunks/dialog_regionSelectorRegions-CYrmaDt3.amd.js +2 -0
  18. package/.chunks/dialog_regionSelectorRegions-CYrmaDt3.amd.js.map +1 -0
  19. package/.chunks/dialog_regionSelectorRegions-CYrmaDt3.esm.js +169 -0
  20. package/.chunks/dialog_regionSelectorRegions-CYrmaDt3.esm.js.map +1 -0
  21. package/.chunks/dialogs-CMrERMI7.amd.js +2 -0
  22. package/.chunks/dialogs-CMrERMI7.amd.js.map +1 -0
  23. package/.chunks/dialogs-CMrERMI7.esm.js +237 -0
  24. package/.chunks/dialogs-CMrERMI7.esm.js.map +1 -0
  25. package/.chunks/field-CjkpGeA7.amd.js +2 -0
  26. package/.chunks/field-CjkpGeA7.amd.js.map +1 -0
  27. package/.chunks/field-CjkpGeA7.esm.js +16 -0
  28. package/.chunks/field-CjkpGeA7.esm.js.map +1 -0
  29. package/.chunks/forms-CbUt-6Ff.amd.js +2 -0
  30. package/.chunks/forms-CbUt-6Ff.amd.js.map +1 -0
  31. package/.chunks/forms-CbUt-6Ff.esm.js +1991 -0
  32. package/.chunks/forms-CbUt-6Ff.esm.js.map +1 -0
  33. package/.chunks/formsExt-CrTmBhja.amd.js +2 -0
  34. package/.chunks/formsExt-CrTmBhja.amd.js.map +1 -0
  35. package/.chunks/formsExt-CrTmBhja.esm.js +807 -0
  36. package/.chunks/formsExt-CrTmBhja.esm.js.map +1 -0
  37. package/.chunks/lazy-CGswTOPj.amd.js +2 -0
  38. package/.chunks/lazy-CGswTOPj.amd.js.map +1 -0
  39. package/.chunks/lazy-CGswTOPj.esm.js +68 -0
  40. package/.chunks/lazy-CGswTOPj.esm.js.map +1 -0
  41. package/.chunks/mocker-CwZe-g4N.amd.js +2 -0
  42. package/.chunks/mocker-CwZe-g4N.amd.js.map +1 -0
  43. package/.chunks/mocker-CwZe-g4N.esm.js +45 -0
  44. package/.chunks/mocker-CwZe-g4N.esm.js.map +1 -0
  45. package/.chunks/notice-CslVdVNm.amd.js +4 -0
  46. package/.chunks/notice-CslVdVNm.amd.js.map +1 -0
  47. package/.chunks/notice-CslVdVNm.esm.js +191 -0
  48. package/.chunks/notice-CslVdVNm.esm.js.map +1 -0
  49. package/.chunks/popup-DrByVU-k.amd.js +2 -0
  50. package/.chunks/popup-DrByVU-k.amd.js.map +1 -0
  51. package/.chunks/popup-DrByVU-k.esm.js +444 -0
  52. package/.chunks/popup-DrByVU-k.esm.js.map +1 -0
  53. package/.chunks/popup-dNrN-eKi.amd.js +2 -0
  54. package/.chunks/popup-dNrN-eKi.amd.js.map +1 -0
  55. package/.chunks/popup-dNrN-eKi.esm.js +323 -0
  56. package/.chunks/popup-dNrN-eKi.esm.js.map +1 -0
  57. package/.chunks/punycode.es6-B-5kB2YI.amd.js +2 -0
  58. package/.chunks/{punycode.es6-CgGegfA_.es.js.map → punycode.es6-B-5kB2YI.amd.js.map} +1 -1
  59. package/.chunks/punycode.es6-B-5kB2YI.esm.js +105 -0
  60. package/.chunks/punycode.es6-B-5kB2YI.esm.js.map +1 -0
  61. package/.chunks/store-DuQpSSLL.amd.js +2 -0
  62. package/.chunks/{store-CX_6ZXhO.es.js.map → store-DuQpSSLL.amd.js.map} +1 -1
  63. package/.chunks/store-DuQpSSLL.esm.js +27 -0
  64. package/.chunks/store-DuQpSSLL.esm.js.map +1 -0
  65. package/.chunks/utils-BwiXsV0S.amd.js +2 -0
  66. package/.chunks/utils-BwiXsV0S.amd.js.map +1 -0
  67. package/.chunks/utils-BwiXsV0S.esm.js +43 -0
  68. package/.chunks/utils-BwiXsV0S.esm.js.map +1 -0
  69. package/.chunks/utils-Dd0MZgyw.amd.js +2 -0
  70. package/.chunks/utils-Dd0MZgyw.amd.js.map +1 -0
  71. package/.chunks/utils-Dd0MZgyw.esm.js +287 -0
  72. package/.chunks/utils-Dd0MZgyw.esm.js.map +1 -0
  73. package/.chunks/worker-Db8YrEHo.amd.js +2 -0
  74. package/.chunks/worker-Db8YrEHo.amd.js.map +1 -0
  75. package/.chunks/worker-Db8YrEHo.esm.js +100 -0
  76. package/.chunks/worker-Db8YrEHo.esm.js.map +1 -0
  77. package/api/additional.amd.js +2 -2
  78. package/api/additional.amd.js.map +1 -1
  79. package/api/additional.js +70 -66
  80. package/api/additional.js.map +1 -1
  81. package/api/index.amd.js +2 -2
  82. package/api/index.amd.js.map +1 -1
  83. package/api/index.js +3 -285
  84. package/assets/charts.css +1 -1
  85. package/assets/core.css +1 -1
  86. package/assets/dialog_regionSelectorRegions.css +1 -1
  87. package/assets/extra.css +1 -1
  88. package/assets/forms.css +1 -1
  89. package/assets/formsExt.css +1 -0
  90. package/assets/layout.css +1 -1
  91. package/assets/notice.css +1 -1
  92. package/assets/popup.css +1 -0
  93. package/assets/project.css +1 -1
  94. package/assets/tabs.css +1 -1
  95. package/assets/tabsView.css +1 -1
  96. package/assets/themes/dark-th.css +1 -1
  97. package/assets/themes/dark.css +1 -1
  98. package/assets/themes/light.css +1 -1
  99. package/autoload-css-manifest.amd.json +79 -0
  100. package/autoload-css-manifest.json +90 -0
  101. package/charts/charts.amd.js +2 -2
  102. package/charts/charts.amd.js.map +1 -1
  103. package/charts/charts.js +146 -174
  104. package/charts/charts.js.map +1 -1
  105. package/core/app.amd.js +2 -2
  106. package/core/app.amd.js.map +1 -1
  107. package/core/app.js +5 -213
  108. package/dialog/dialog.amd.js +2 -2
  109. package/dialog/dialog.amd.js.map +1 -1
  110. package/dialog/dialog.js +4 -60
  111. package/extra/extra.amd.js +2 -2
  112. package/extra/extra.amd.js.map +1 -1
  113. package/extra/extra.js +73 -69
  114. package/extra/extra.js.map +1 -1
  115. package/forms/forms.amd.js +2 -2
  116. package/forms/forms.amd.js.map +1 -1
  117. package/forms/forms.js +2 -19
  118. package/forms/helpers.amd.js +2 -2
  119. package/forms/helpers.amd.js.map +1 -1
  120. package/forms/helpers.js +0 -2
  121. package/formsExt/formsExt.amd.js +2 -2
  122. package/formsExt/formsExt.amd.js.map +1 -1
  123. package/formsExt/formsExt.js +2 -373
  124. package/icomoon/demo-files/demo.amd.js +2 -0
  125. package/icomoon/demo-files/demo.amd.js.map +1 -0
  126. package/icomoon/demo.amd.js +2 -0
  127. package/icomoon/demo.amd.js.map +1 -0
  128. package/layout/layout.amd.js +2 -2
  129. package/layout/layout.amd.js.map +1 -1
  130. package/layout/layout.js +41 -57
  131. package/layout/layout.js.map +1 -1
  132. package/package.json +1 -1
  133. package/popup/popup.amd.js +2 -2
  134. package/popup/popup.amd.js.map +1 -1
  135. package/popup/popup.js +2 -282
  136. package/popup/worker.amd.js +2 -2
  137. package/popup/worker.amd.js.map +1 -1
  138. package/popup/worker.js +2 -144
  139. package/project/project.amd.js +2 -2
  140. package/project/project.amd.js.map +1 -1
  141. package/project/project.js +1684 -1642
  142. package/project/project.js.map +1 -1
  143. package/tabs/tabs.amd.js +2 -2
  144. package/tabs/tabs.amd.js.map +1 -1
  145. package/tabs/tabs.js +63 -77
  146. package/tabs/tabs.js.map +1 -1
  147. package/tabsView/tabsView.amd.js +2 -2
  148. package/tabsView/tabsView.amd.js.map +1 -1
  149. package/tabsView/tabsView.js +245 -288
  150. package/tabsView/tabsView.js.map +1 -1
  151. package/utils/check.amd.js +2 -2
  152. package/utils/check.amd.js.map +1 -1
  153. package/utils/check.js +15 -19
  154. package/utils/check.js.map +1 -1
  155. package/utils/clipboard.amd.js +6 -6
  156. package/utils/clipboard.amd.js.map +1 -1
  157. package/utils/clipboard.js +26 -31
  158. package/utils/clipboard.js.map +1 -1
  159. package/utils/date.amd.js +2 -2
  160. package/utils/date.amd.js.map +1 -1
  161. package/utils/date.js +2 -12
  162. package/utils/device.amd.js +2 -2
  163. package/utils/device.amd.js.map +1 -1
  164. package/utils/device.js +2 -15
  165. package/utils/dom.amd.js +2 -2
  166. package/utils/dom.amd.js.map +1 -1
  167. package/utils/dom.js +53 -67
  168. package/utils/dom.js.map +1 -1
  169. package/utils/image.amd.js +3 -3
  170. package/utils/image.amd.js.map +1 -1
  171. package/utils/image.js +12 -22
  172. package/utils/image.js.map +1 -1
  173. package/utils/keyboard.amd.js +2 -2
  174. package/utils/keyboard.amd.js.map +1 -1
  175. package/utils/keyboard.js +10 -11
  176. package/utils/keyboard.js.map +1 -1
  177. package/utils/lodash.amd.js +2 -2
  178. package/utils/lodash.amd.js.map +1 -1
  179. package/utils/lodash.js +2 -9
  180. package/utils/number.amd.js +2 -2
  181. package/utils/number.amd.js.map +1 -1
  182. package/utils/number.js +12 -12
  183. package/utils/number.js.map +1 -1
  184. package/utils/price.amd.js +2 -2
  185. package/utils/price.amd.js.map +1 -1
  186. package/utils/price.js +14 -9
  187. package/utils/price.js.map +1 -1
  188. package/utils/route.amd.js +2 -2
  189. package/utils/route.amd.js.map +1 -1
  190. package/utils/route.js +33 -37
  191. package/utils/route.js.map +1 -1
  192. package/utils/scroll.amd.js +2 -2
  193. package/utils/scroll.amd.js.map +1 -1
  194. package/utils/scroll.js +39 -43
  195. package/utils/scroll.js.map +1 -1
  196. package/utils/searchers.amd.js +2 -2
  197. package/utils/searchers.amd.js.map +1 -1
  198. package/utils/searchers.js +128 -133
  199. package/utils/searchers.js.map +1 -1
  200. package/utils/store.amd.js +2 -2
  201. package/utils/store.amd.js.map +1 -1
  202. package/utils/store.js +2 -7
  203. package/utils/string.amd.js +2 -2
  204. package/utils/string.amd.js.map +1 -1
  205. package/utils/string.js +120 -147
  206. package/utils/string.js.map +1 -1
  207. package/utils/system.amd.js +2 -2
  208. package/utils/system.amd.js.map +1 -1
  209. package/utils/system.js +25 -28
  210. package/utils/system.js.map +1 -1
  211. package/utils/url.amd.js +3 -3
  212. package/utils/url.amd.js.map +1 -1
  213. package/utils/url.js +36 -47
  214. package/utils/url.js.map +1 -1
  215. package/.chunks/core-Dgj_YGWh.es.js +0 -268
  216. package/.chunks/core-Dgj_YGWh.es.js.map +0 -1
  217. package/.chunks/core-DzDFXOdI.amd.js +0 -2
  218. package/.chunks/core-DzDFXOdI.amd.js.map +0 -1
  219. package/.chunks/datepicker-oa8ZwRhq.amd.js +0 -2
  220. package/.chunks/datepicker-oa8ZwRhq.amd.js.map +0 -1
  221. package/.chunks/datepicker-qToxk2nN.es.js +0 -41
  222. package/.chunks/datepicker-qToxk2nN.es.js.map +0 -1
  223. package/.chunks/dialog_regionSelectorRegions-CZ0tMVSq.amd.js +0 -2
  224. package/.chunks/dialog_regionSelectorRegions-CZ0tMVSq.amd.js.map +0 -1
  225. package/.chunks/dialog_regionSelectorRegions-qDW2Ejsv.es.js +0 -180
  226. package/.chunks/dialog_regionSelectorRegions-qDW2Ejsv.es.js.map +0 -1
  227. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BBix_8WK.amd.js +0 -2
  228. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BBix_8WK.amd.js.map +0 -1
  229. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js +0 -323
  230. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js.map +0 -1
  231. package/.chunks/field-Cvv0SRcJ.amd.js +0 -2
  232. package/.chunks/field-Cvv0SRcJ.amd.js.map +0 -1
  233. package/.chunks/field-CyyFzM-Y.es.js +0 -16
  234. package/.chunks/field-CyyFzM-Y.es.js.map +0 -1
  235. package/.chunks/forms-DDNzqU6o.amd.js +0 -3
  236. package/.chunks/forms-DDNzqU6o.amd.js.map +0 -1
  237. package/.chunks/forms-DtC-EKJL.es.js +0 -2053
  238. package/.chunks/forms-DtC-EKJL.es.js.map +0 -1
  239. package/.chunks/index-DLUtoTUg.amd.js +0 -2
  240. package/.chunks/index-DLUtoTUg.amd.js.map +0 -1
  241. package/.chunks/index-DkQWJkMc.es.js +0 -54
  242. package/.chunks/index-DkQWJkMc.es.js.map +0 -1
  243. package/.chunks/lazy-DDNqYkXn.amd.js +0 -2
  244. package/.chunks/lazy-DDNqYkXn.amd.js.map +0 -1
  245. package/.chunks/lazy-HKSyLh72.es.js +0 -75
  246. package/.chunks/lazy-HKSyLh72.es.js.map +0 -1
  247. package/.chunks/notice-BvQl911b.es.js +0 -191
  248. package/.chunks/notice-BvQl911b.es.js.map +0 -1
  249. package/.chunks/notice-CJ3WOTCM.amd.js +0 -4
  250. package/.chunks/notice-CJ3WOTCM.amd.js.map +0 -1
  251. package/.chunks/page.vue_vue_type_script_setup_true_lang-Dd5-B4Ss.es.js +0 -139
  252. package/.chunks/page.vue_vue_type_script_setup_true_lang-Dd5-B4Ss.es.js.map +0 -1
  253. package/.chunks/page.vue_vue_type_script_setup_true_lang-fl6-Ql4d.amd.js +0 -2
  254. package/.chunks/page.vue_vue_type_script_setup_true_lang-fl6-Ql4d.amd.js.map +0 -1
  255. package/.chunks/policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js +0 -519
  256. package/.chunks/policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js.map +0 -1
  257. package/.chunks/policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd.js +0 -2
  258. package/.chunks/policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd.js.map +0 -1
  259. package/.chunks/popup-OuDglAOF.es.js +0 -470
  260. package/.chunks/popup-OuDglAOF.es.js.map +0 -1
  261. package/.chunks/popup-yXIpyok3.amd.js +0 -2
  262. package/.chunks/popup-yXIpyok3.amd.js.map +0 -1
  263. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Bu_HvFoW.amd.js +0 -2
  264. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Bu_HvFoW.amd.js.map +0 -1
  265. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js +0 -209
  266. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js.map +0 -1
  267. package/.chunks/punycode.es6-CNOnFR2-.amd.js +0 -2
  268. package/.chunks/punycode.es6-CNOnFR2-.amd.js.map +0 -1
  269. package/.chunks/punycode.es6-CgGegfA_.es.js +0 -134
  270. package/.chunks/store-CX_6ZXhO.es.js +0 -29
  271. package/.chunks/store-YRW59xEF.amd.js +0 -2
  272. package/.chunks/store-YRW59xEF.amd.js.map +0 -1
  273. package/.chunks/utils-BNzP9anP.es.js +0 -78
  274. package/.chunks/utils-BNzP9anP.es.js.map +0 -1
  275. package/.chunks/utils-CWn_G7OO.amd.js +0 -2
  276. package/.chunks/utils-CWn_G7OO.amd.js.map +0 -1
  277. package/.chunks/utils-DIviuVEw.amd.js +0 -2
  278. package/.chunks/utils-DIviuVEw.amd.js.map +0 -1
  279. package/.chunks/utils-Dma85ehT.es.js +0 -288
  280. package/.chunks/utils-Dma85ehT.es.js.map +0 -1
  281. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CX_BOcVY.es.js +0 -39
  282. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CX_BOcVY.es.js.map +0 -1
  283. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CkOmb3VD.amd.js +0 -2
  284. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CkOmb3VD.amd.js.map +0 -1
  285. package/api/index.js.map +0 -1
  286. package/assets/policy.css +0 -1
  287. package/assets/popupHint.css +0 -1
  288. package/core/app.js.map +0 -1
  289. package/dialog/dialog.js.map +0 -1
  290. package/forms/forms.js.map +0 -1
  291. package/forms/helpers.js.map +0 -1
  292. package/formsExt/formsExt.js.map +0 -1
  293. package/popup/popup.js.map +0 -1
  294. package/popup/worker.js.map +0 -1
  295. package/utils/date.js.map +0 -1
  296. package/utils/device.js.map +0 -1
  297. package/utils/lodash.js.map +0 -1
  298. package/utils/store.js.map +0 -1
@@ -0,0 +1,807 @@
1
+
2
+ /* start import css */
3
+ import { Core as _autoloadCSSCore } from '../core/app.js';
4
+ const fileNames = ['../assets/formsExt.css'].map(fileName => import.meta.resolve(fileName));
5
+ _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
6
+ /* end import css */
7
+
8
+ import "./api-CawzY1Cw.esm.js";
9
+ import { E as e, G as t, O as n, P as r, a as i, c as a, f as o, h as s, r as c, t as l } from "./forms-CbUt-6Ff.esm.js";
10
+ import { t as u } from "./field-CjkpGeA7.esm.js";
11
+ import { invertKeyboardLayout as d } from "../utils/keyboard.js";
12
+ import { a as f, o as p, s as m } from "./popup-DrByVU-k.esm.js";
13
+ import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, mergeModels as T, mergeProps as E, normalizeClass as D, onMounted as O, onUpdated as k, openBlock as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as F, resolveDynamicComponent as I, toDisplayString as L, toRef as R, unref as z, useModel as B, watch as V, withCtx as H, withDirectives as U, withKeys as W, withModifiers as G } from "vue";
14
+ //#region src/components/formsExt/menu/menu.vue?vue&type=script&setup=true&lang.ts
15
+ var K = {
16
+ key: 0,
17
+ class: "top-menu_selectAll"
18
+ }, ee = /* @__PURE__ */ w({
19
+ __name: "menu",
20
+ props: /* @__PURE__ */ T({
21
+ modelValue: {},
22
+ items: {},
23
+ isMultiple: { type: Boolean },
24
+ canBeEmptyMultiple: { type: Boolean },
25
+ styling: { default: "default" },
26
+ selectAllItem: {}
27
+ }, {
28
+ modelValue: { required: !0 },
29
+ modelModifiers: {}
30
+ }),
31
+ emits: ["update:modelValue"],
32
+ setup(e) {
33
+ let r = e, i = B(e, "modelValue"), a = j();
34
+ !r.isMultiple && typeof i.value != "string" && typeof i.value != "number" && console.warn("Type check failed for prop \"modelValue\". Expected String: " + typeof i.value), r.isMultiple && !Array.isArray(i.value) && console.warn("Type check failed for prop \"modelValue\". Expected Array: " + typeof i.value), r.isMultiple && !r.canBeEmptyMultiple && Array.isArray(i.value) && !i.value.length && r.items[0] && (i.value = [r.items[0]?.href ?? r.items[0]?.value]);
35
+ let o = (e) => Array.isArray(i.value) ? i.value.includes(e.value) : e.value === i.value, c = (e, t = !1) => {
36
+ if (Array.isArray(i.value)) {
37
+ let n = i.value.slice();
38
+ if (t) {
39
+ n.length || (n = r.items.map((e) => e.value));
40
+ let t = n.indexOf(e.value);
41
+ t === -1 ? n.push(e.value) : n.splice(t, 1);
42
+ } else n = n.length === 1 && n[0] === e.value ? [] : [e.value];
43
+ !r.canBeEmptyMultiple && !n.length && (n = [e.value]), i.value = n;
44
+ return;
45
+ }
46
+ i.value = e.value;
47
+ }, l = (e) => {
48
+ if (a.value.scrollWidth <= a.value.offsetWidth || e.shiftKey || Math.abs(e.deltaY) < 50) return;
49
+ e.preventDefault();
50
+ let t = e.deltaY > 0 ? 30 : -30;
51
+ a.value.scrollLeft = a.value.scrollLeft + t;
52
+ }, u = (e = !0) => {
53
+ let r = a.value.querySelector(".top-active");
54
+ if (!r) return;
55
+ let i = r.offsetLeft - a.value.offsetLeft - 24, o = r.offsetLeft - a.value.offsetLeft + r.clientWidth + 24, s = a.value.scrollLeft, c = a.value.clientWidth + a.value.scrollLeft, l;
56
+ i < s && (l = i), o > c && (l = o - a.value.clientWidth), l !== void 0 && (t() ? n.$?.(a.value).animate({ scrollLeft: l }, e ? 200 : 0) : a.value.scrollTo({
57
+ left: l,
58
+ behavior: e ? "smooth" : "auto"
59
+ }));
60
+ }, d = () => {
61
+ if (Array.isArray(i.value)) {
62
+ if (i.value.length === r.items.length) {
63
+ i.value = [r.items[0].href ?? r.items[0].value];
64
+ return;
65
+ }
66
+ i.value = r.items.map((e) => e.href ?? e.value);
67
+ }
68
+ };
69
+ return O(() => u(!1)), k(() => u(!0)), (t, n) => (A(), y("div", {
70
+ ref_key: "el",
71
+ ref: a,
72
+ class: D({
73
+ "top-menu": !0,
74
+ ["top-style_" + e.styling]: !0
75
+ }),
76
+ onWheel: l
77
+ }, [(A(!0), y(h, null, M(e.items, (e) => (A(), _(s, E({ ref_for: !0 }, e, {
78
+ class: "top-menu_item",
79
+ color: "theme",
80
+ onClick: (t) => c(e, t.ctrlKey || t.metaKey),
81
+ isActive: o(e)
82
+ }), x({ _: 2 }, [e.content ? {
83
+ name: "default",
84
+ fn: H(() => [S(L(e.content), 1)]),
85
+ key: "0"
86
+ } : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (A(), y("div", K, [C(s, E(e.selectAllItem, {
87
+ class: "top-menu_item",
88
+ color: "theme",
89
+ styling: "",
90
+ onClick: n[0] ||= (e) => d(),
91
+ isActive: i.value.length === e.items.length
92
+ }), x({ _: 2 }, [e.selectAllItem.content ? {
93
+ name: "default",
94
+ fn: H(() => [S(L(e.selectAllItem.content), 1)]),
95
+ key: "0"
96
+ } : void 0]), 1040, ["isActive"])])) : v("", !0)], 34));
97
+ }
98
+ }), te = { class: "top-selector2_itemMulti top-ellipsis" }, ne = /* @__PURE__ */ w({
99
+ __name: "itemMulti",
100
+ props: {
101
+ id: {},
102
+ name: {}
103
+ },
104
+ emits: ["delete"],
105
+ setup(e) {
106
+ return (t, n) => (A(), y("div", te, [S(L(e.name) + " ", 1), b("span", {
107
+ class: "top-selector2_itemMultiDelete",
108
+ "data-top-icon": "",
109
+ onClick: n[0] ||= (n) => t.$emit("delete", {
110
+ id: e.id,
111
+ name: e.name
112
+ }),
113
+ onMousedown: n[1] ||= G(() => {}, ["stop"])
114
+ }, null, 32)]));
115
+ }
116
+ }), q = /* @__PURE__ */ new Map(), J = (e) => {
117
+ q.get(e)?.clear();
118
+ }, Y = (e) => {
119
+ let t = window.mo?.user?.id;
120
+ return JSON.stringify(e.params) + ":" + e.url + ":" + t;
121
+ }, X = (e, t) => q.get(t)?.get(e), re = (e, t, n) => {
122
+ q.has(t) || q.set(t, /* @__PURE__ */ new Map()), q.get(t)?.set(e, n);
123
+ }, ie = (e, t, n, i) => {
124
+ let a = j([]), o = j(!1), s = j(0), c = "", l;
125
+ e && !e.params.limit && (e.params.limit = 100);
126
+ let u = async () => {
127
+ if (!e) return;
128
+ let t = i ? Y(e) : void 0;
129
+ if (t) {
130
+ let n = X(t, e.path);
131
+ if (n) return e.abortByFingerprint(), n;
132
+ }
133
+ let n = await e.call();
134
+ if (n.errors) return;
135
+ if (!Array.isArray(n.result)) {
136
+ console.warn("Array expected in `res.result`");
137
+ return;
138
+ }
139
+ let r = n.result.findIndex((e) => e.id === void 0 || e.name === void 0);
140
+ if (r !== -1) {
141
+ console.warn(`В result[${r}] нет id или name`);
142
+ return;
143
+ }
144
+ return t && re(t, e.path, n), n;
145
+ }, d = async (n) => {
146
+ if (!e) return;
147
+ if (n) {
148
+ if (!l || o.value) return;
149
+ e.params.offset = l;
150
+ } else e.params.offset = 0;
151
+ t?.(e, c), o.value = !0;
152
+ let r = await u();
153
+ o.value = !1, s.value++, r && (l = r.nextOffset, n ? a.value = a.value.concat(r.result) : a.value = r.result);
154
+ }, f = r(() => d(!1), 200);
155
+ return {
156
+ apiRequest: e,
157
+ items: a,
158
+ isLoading: o,
159
+ countLoading: s,
160
+ load: d,
161
+ setSearchTextAndLoad: (t, r = !0) => {
162
+ if (e) {
163
+ if (t.length < n) {
164
+ e.abortByFingerprint(), a.value = [];
165
+ return;
166
+ }
167
+ t === c && a.value.length || (c = t, r ? f() : d(!1));
168
+ }
169
+ }
170
+ };
171
+ }, ae = 0, oe = null, Z = (e, t, n = !0) => n && t.id === null ? Array.isArray(e) ? e.some((e) => e.id === t.id && e.name === t.name) : t.name === e.name : Array.isArray(e) ? e.some((e) => e.id === t.id) : t.id === e.id, se = (e, t, n) => {
172
+ let r = e.params.filters ?? [];
173
+ r = r.filter((e) => e.name !== n), t && r.push(u(n, "CONTAINS", [t])), e.changeParams({ filters: r });
174
+ }, ce = (t, n, r, i, a, o, s, c, l, u, f, p, m) => {
175
+ let h = j(""), _ = {
176
+ id: 0,
177
+ name: e().Common.All
178
+ }, v = () => {
179
+ h.value = "";
180
+ }, y = () => !(!m.apiRequest || h.value.length >= p), b = g(() => {
181
+ let e = [];
182
+ return !i && a.value && (typeof a.value == "string" && (_.name = a.value), e.push(_)), r.value?.forEach((t) => e.push({ ...t })), e;
183
+ }), x = j([]), S = () => {
184
+ x.value = C();
185
+ }, C = () => {
186
+ let e = h.value.toLowerCase(), n = d(e), r = [], a, f = [], p = () => {
187
+ f.at(-1)?.listItemProps?.type === "delimiter" && f.pop(), f.length &&= (a && r.push(a), r.push(...f), 0);
188
+ };
189
+ for (let t of b.value) switch (t.listItemProps?.type) {
190
+ case "title":
191
+ p(), a = t;
192
+ break;
193
+ case "delimiter":
194
+ if (f.length) {
195
+ let e = f.length;
196
+ f.at(-1)?.listItemProps?.type === "delimiter" && e--, f[e] = t;
197
+ }
198
+ break;
199
+ default:
200
+ let r = u.value?.includes("id"), i = t.name.toLowerCase(), o = u.value?.filter((e) => e !== "id").map((e) => typeof t[e] == "string" || typeof t[e] == "number" ? t[e] : "").join("☼").toLowerCase();
201
+ (r && t.id === Number(e) || o?.includes(e) || o?.includes(n)) && (i === e || i === n ? f.unshift(t) : f.push(t));
202
+ }
203
+ if (p(), r.push(...m.items.value), o.value && h.value && (!c.value || c.value(e)) && (s.value || !r.find((t) => t.name.toLowerCase() === e))) {
204
+ let e = {
205
+ id: null,
206
+ name: h.value
207
+ };
208
+ l.value && (e.listItemProps = { closeByClick: !1 }), r.push(e);
209
+ }
210
+ return i && (r = r.filter((e) => !Z(t.value, e))), r;
211
+ }, w = (e) => {
212
+ e.listItemProps?.type === "title" || e.listItemProps?.type === "delimiter" || e.id === null && (n("appendItem", e), l.value) || (i && Array.isArray(t.value) ? Z(t.value, e) || (t.value = [...t.value, e]) : t.value = e, setTimeout(() => {
213
+ v();
214
+ }));
215
+ };
216
+ if (m.apiRequest) {
217
+ let e = [r, m.items];
218
+ i && e.push(t), V(e, () => {
219
+ S();
220
+ });
221
+ } else V([
222
+ t,
223
+ r,
224
+ h
225
+ ], () => {
226
+ S();
227
+ }, {
228
+ immediate: !0,
229
+ deep: 2
230
+ });
231
+ return {
232
+ searchText: h,
233
+ resetSearch: v,
234
+ genIsShort: y,
235
+ itemsForShow: x,
236
+ selectItem: w,
237
+ selectNextItem: () => {
238
+ if (Array.isArray(t.value)) return;
239
+ let e = x.value.filter((e) => !["title", "delimiter"].includes(e.listItemProps?.type ?? ""));
240
+ t.value = { ...e[(e.findIndex((e) => e.id === t.value.id) + 1) % e.length] };
241
+ },
242
+ deleteItemByItem: async (e) => {
243
+ Array.isArray(t.value) && (t.value = t.value.filter((t) => t.id !== e.id || t.name !== e.name));
244
+ }
245
+ };
246
+ }, le = {
247
+ key: 0,
248
+ class: "top-selector2_activeItems"
249
+ }, ue = {
250
+ key: 1,
251
+ class: "top-selector2_activeName top-ellipsis"
252
+ }, de = {
253
+ key: 2,
254
+ class: "top-selector2_placeholder top-ellipsis"
255
+ }, fe = { class: "top-selector2_searchWidget" }, pe = /* @__PURE__ */ w({
256
+ __name: "selector2",
257
+ props: /* @__PURE__ */ T({
258
+ modelValue: {},
259
+ items: { default: () => [] },
260
+ title: {},
261
+ disabled: { type: Boolean },
262
+ icon: {},
263
+ modificator: {},
264
+ size: { default: "s" },
265
+ isError: { type: Boolean },
266
+ openByFocusInput: {
267
+ type: Boolean,
268
+ default: void 0
269
+ },
270
+ searchType: { default: "popup" },
271
+ searchFields: { default: () => ["id", "name"] },
272
+ placeholder: {},
273
+ hasCloserBtn: { type: Boolean },
274
+ api: {},
275
+ apiSetSearchParams: {},
276
+ minLength: { default: 0 },
277
+ useCache: { type: Boolean },
278
+ appendSearchToResult: { type: Boolean },
279
+ appendSearchAllowDuplicate: { type: Boolean },
280
+ appendSearchToResultCond: {},
281
+ appendWithoutSelect: { type: Boolean },
282
+ multiselect: { type: Boolean },
283
+ useAllItem: { type: [Boolean, String] },
284
+ addChanger: { type: Boolean },
285
+ buttonProps: {},
286
+ selectedAsPlaceholder: { type: Boolean },
287
+ openerShortcut: {}
288
+ }, {
289
+ modelValue: { required: !0 },
290
+ modelModifiers: {}
291
+ }),
292
+ emits: /* @__PURE__ */ T(["appendItem", "open"], ["update:modelValue"]),
293
+ setup(e, { expose: t, emit: r }) {
294
+ let i = e, a = B(e, "modelValue"), o = r;
295
+ t({ resetCache: (e = !1) => {
296
+ c.apiRequest && (e && J(c.apiRequest.path), c.items.value = [], c.countLoading.value = 0, c.apiRequest.params.offset = 0, requestAnimationFrame(() => {
297
+ u.itemsForShow.value = [];
298
+ }), T()?.elPopup && c.setSearchTextAndLoad(u.searchText.value));
299
+ } });
300
+ let s = g(() => i.searchType === "inline" && i.multiselect || i.searchType === "inline" && n.state.isMobile ? "popup" : i.searchType), c = ie(i.api, i.apiSetSearchParams, i.minLength, i.useCache), u = ce(a, o, R(i, "items"), i.multiselect, R(i, "useAllItem"), R(i, "appendSearchToResult"), R(i, "appendSearchAllowDuplicate"), R(i, "appendSearchToResultCond"), R(i, "appendWithoutSelect"), R(i, "searchFields"), s, i.minLength, c), d = g(() => i.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), w = j(null), T = () => w.value?.popup;
301
+ c.apiRequest && V(u.searchText, () => {
302
+ c.setSearchTextAndLoad(u.searchText.value);
303
+ });
304
+ let D = g(() => Array.isArray(a.value) || i.multiselect || !i.selectedAsPlaceholder && s.value !== "inline" ? i.placeholder : a.value?.name || i.placeholder), O = (e) => {
305
+ let t = !1;
306
+ switch (e.key) {
307
+ case "Delete":
308
+ case "Backspace":
309
+ Array.isArray(a.value) && (e.preventDefault(), e.stopPropagation(), a.value.pop());
310
+ break;
311
+ case "ArrowUp":
312
+ case "ArrowRight":
313
+ case "ArrowDown":
314
+ case "ArrowLeft":
315
+ case "Enter":
316
+ case " ":
317
+ t = !0;
318
+ break;
319
+ case "Escape":
320
+ s.value === "inline" && u.resetSearch();
321
+ break;
322
+ }
323
+ let n = e.key.length === 1 && !e.ctrlKey && !e.metaKey;
324
+ (s.value === "popup" || s.value === "inline") && n && (t = !0), T()?.elPopup && (t = !1), t && (s.value === "popup" && (e.preventDefault(), e.stopPropagation(), n && (u.searchText.value || (u.searchText.value = e.key))), e.currentTarget?.click());
325
+ }, k = (e) => {
326
+ e.preventDefault(), u.selectNextItem();
327
+ }, W = () => {
328
+ c.apiRequest && c.setSearchTextAndLoad(u.searchText.value, !1), o("open");
329
+ }, G = () => {
330
+ s.value === "popup" && u.searchText.value && u.resetSearch();
331
+ }, K = (e) => {
332
+ let t = e.target;
333
+ t.scrollTop / (t.scrollHeight - t.offsetHeight) > .8 && c.load(!0);
334
+ };
335
+ return (t, r) => {
336
+ let i = P("TopButton"), o = P("TopLoadbar"), g = F("top-focus"), T = F("top-shortcut");
337
+ return A(), _(z(m), {
338
+ ref_key: "popupRef",
339
+ ref: w,
340
+ onOpen: r[3] ||= (e) => W(),
341
+ onClose: r[4] ||= (e) => G(),
342
+ onScrollContentList: r[5] ||= (e) => z(c) ? K(e) : void 0,
343
+ notch: !1,
344
+ transitionDuration: 0,
345
+ openByFocusInput: s.value === "inline" && (e.openByFocusInput ?? !0),
346
+ disabled: s.value === "inline" && z(u).genIsShort()
347
+ }, x({
348
+ opener: H(() => [U((A(), _(I(d.value), E(e.buttonProps, {
349
+ class: {
350
+ "top-selector2": !0,
351
+ "top-selector2-multiselect": e.multiselect,
352
+ ["top-selector2-" + e.modificator]: !!e.modificator,
353
+ "top-as-input": !e.buttonProps && s.value !== "inline",
354
+ "top-as-selector": !0,
355
+ ["top-size_" + e.size]: !0,
356
+ "top-disabled": e.disabled,
357
+ "top-forms-focusable": !e.disabled,
358
+ "top-error": e.isError
359
+ },
360
+ icon: e.icon,
361
+ tabindex: "0",
362
+ onKeydown: O,
363
+ onBlur: r[0] ||= (e) => s.value === "inline" && z(u).resetSearch(),
364
+ placeholder: D.value,
365
+ title: e.title,
366
+ captionType: s.value === "inline" && e.title !== void 0 ? "top" : void 0,
367
+ modelValue: z(u).searchText.value,
368
+ "onUpdate:modelValue": r[1] ||= (e) => z(u).searchText.value = e
369
+ }), {
370
+ default: H(() => [
371
+ e.multiselect ? (A(), y("div", le, [(A(!0), y(h, null, M(a.value, (e) => (A(), _(ne, {
372
+ id: e.id,
373
+ name: e.name,
374
+ onDelete: z(u).deleteItemByItem
375
+ }, null, 8, [
376
+ "id",
377
+ "name",
378
+ "onDelete"
379
+ ]))), 256))])) : v("", !0),
380
+ s.value !== "inline" && !e.multiselect ? (A(), y("span", ue, L(Array.isArray(a.value) ? "" : a.value.name), 1)) : v("", !0),
381
+ e.multiselect && !a.value.length ? (A(), y("span", de, L(D.value), 1)) : v("", !0),
382
+ e.addChanger && !e.buttonProps && !e.multiselect && z(u).itemsForShow.value.length > 1 && !e.disabled ? (A(), y("span", {
383
+ key: 3,
384
+ class: "top-changer top-changer-selector",
385
+ "data-top-popup-disabled": "true",
386
+ onClick: k
387
+ })) : v("", !0)
388
+ ]),
389
+ _: 1
390
+ }, 16, [
391
+ "class",
392
+ "icon",
393
+ "placeholder",
394
+ "title",
395
+ "captionType",
396
+ "modelValue"
397
+ ])), [[
398
+ g,
399
+ e.isError,
400
+ void 0,
401
+ { onupdate: !0 }
402
+ ], [T, e.openerShortcut]])]),
403
+ contentList: H(() => [
404
+ (A(!0), y(h, null, M(z(u).itemsForShow.value, (r) => (A(), _(z(p), E({
405
+ key: r.id ?? void 0,
406
+ class: {
407
+ "top-active": !Array.isArray(a.value) && !e.multiselect && a.value.id === r.id && a.value.name === r.name,
408
+ "top-selector2_item-all": r.id === z(0),
409
+ "top-selector2_item-new": r.id === z(null)
410
+ },
411
+ closeByClick: !e.multiselect || z(n).state.isMobile
412
+ }, { ref_for: !0 }, r.listItemProps, { onClick: (e) => z(u).selectItem(r) }), {
413
+ default: H(() => [t.$slots.item ? N(t.$slots, "item", {
414
+ key: 0,
415
+ item: r
416
+ }) : (A(), y(h, { key: 1 }, [S(L(r.name), 1)], 64))]),
417
+ _: 2
418
+ }, 1040, [
419
+ "class",
420
+ "closeByClick",
421
+ "onClick"
422
+ ]))), 128)),
423
+ !z(u).itemsForShow.value.length && !z(u).genIsShort() ? (A(), _(z(p), {
424
+ key: 0,
425
+ type: "regular"
426
+ }, {
427
+ default: H(() => [!z(c).isLoading.value || z(c).countLoading.value ? (A(), y(h, { key: 0 }, [S(L(t.$i18n.Common.No_results), 1)], 64)) : (A(), _(z(l), {
428
+ key: 1,
429
+ type: "circles"
430
+ }))]),
431
+ _: 1
432
+ })) : v("", !0),
433
+ z(c).countLoading.value && z(c).isLoading.value && s.value === "inline" ? (A(), _(o, { key: 1 })) : v("", !0)
434
+ ]),
435
+ _: 2
436
+ }, [s.value === "popup" ? {
437
+ name: "widget",
438
+ fn: H(() => [b("div", fe, [U(C(z(f), {
439
+ title: "Поиск",
440
+ icon: "",
441
+ modelValue: z(u).searchText.value,
442
+ "onUpdate:modelValue": r[2] ||= (e) => z(u).searchText.value = e,
443
+ isLoading: !!z(c).countLoading.value && z(c).isLoading.value,
444
+ placeholder: D.value
445
+ }, null, 8, [
446
+ "modelValue",
447
+ "isLoading",
448
+ "placeholder"
449
+ ]), [[
450
+ g,
451
+ a.value,
452
+ void 0,
453
+ { onupdate: !0 }
454
+ ]]), e.hasCloserBtn && !t.$core.state.isMobile ? (A(), _(i, {
455
+ key: 0,
456
+ class: "closer",
457
+ color: "theme"
458
+ }, {
459
+ default: H(() => [S(L(t.$i18n.Common.Cancel), 1)]),
460
+ _: 1
461
+ })) : v("", !0)])]),
462
+ key: "0"
463
+ } : void 0]), 1032, ["openByFocusInput", "disabled"]);
464
+ };
465
+ }
466
+ }), me = { class: "top-editArea_footer" }, he = /* @__PURE__ */ w({
467
+ __name: "editArea",
468
+ props: {
469
+ defaultValue: { default: "" },
470
+ title: {},
471
+ cancelText: { default: "Cancel" },
472
+ submitText: { default: "Send" },
473
+ closeText: { default: "Close" },
474
+ isFocused: { type: Boolean },
475
+ forceShowCloseBtn: { type: Boolean },
476
+ attachToKeyboard: { type: Boolean },
477
+ modelValue: {},
478
+ name: {},
479
+ placeholder: {},
480
+ styling: {},
481
+ rows: {},
482
+ minHeight: {},
483
+ expandable: {
484
+ type: Boolean,
485
+ default: !0
486
+ },
487
+ disabled: { type: Boolean },
488
+ readonly: { type: Boolean },
489
+ isError: { type: Boolean },
490
+ hint: {},
491
+ maxLength: {}
492
+ },
493
+ emits: [
494
+ "submit",
495
+ "close",
496
+ "clickOnTitle"
497
+ ],
498
+ setup(e, { emit: t }) {
499
+ let n = e, r = t, i = j(n.defaultValue), a = j(n.isFocused), o = g(() => i.value !== n.defaultValue), l = (e) => {
500
+ r("submit", e), i.value = n.defaultValue;
501
+ }, u = () => {
502
+ if (n.forceShowCloseBtn && !o.value) {
503
+ r("close");
504
+ return;
505
+ }
506
+ i.value = n.defaultValue;
507
+ }, d = () => {
508
+ n.attachToKeyboard && r("clickOnTitle");
509
+ };
510
+ return (t, n) => (A(), y("div", { class: D({
511
+ "top-editArea": !0,
512
+ "top-editArea-attachedToKeyboard": e.attachToKeyboard
513
+ }) }, [e.title || t.$slots.caption ? (A(), y("div", {
514
+ key: 0,
515
+ class: "top-editArea_caption",
516
+ onClick: n[0] ||= (e) => d()
517
+ }, [N(t.$slots, "caption", {}, () => [S(L(e.title), 1)])])) : v("", !0), b("div", { class: D({
518
+ "top-editArea_form": !0,
519
+ "top-forms-focusable": !0,
520
+ "top-as-input": !0,
521
+ "top-error": e.isError,
522
+ "top-focus": a.value
523
+ }) }, [C(c, {
524
+ modelValue: i.value,
525
+ "onUpdate:modelValue": n[1] ||= (e) => i.value = e,
526
+ name: e.name,
527
+ placeholder: e.placeholder,
528
+ rows: e.rows,
529
+ minHeight: e.minHeight,
530
+ expandable: e.expandable,
531
+ disabled: e.disabled,
532
+ readonly: e.readonly,
533
+ isError: e.isError,
534
+ hint: e.hint,
535
+ class: "top-editArea_element",
536
+ onFocus: n[2] ||= () => a.value = !0,
537
+ onBlur: n[3] ||= () => a.value = !1,
538
+ onKeyup: [W(u, ["esc"]), n[4] ||= W(G((e) => l(i.value), ["ctrl"]), ["enter"])]
539
+ }, null, 8, [
540
+ "modelValue",
541
+ "name",
542
+ "placeholder",
543
+ "rows",
544
+ "minHeight",
545
+ "expandable",
546
+ "disabled",
547
+ "readonly",
548
+ "isError",
549
+ "hint"
550
+ ]), b("div", me, [o.value || e.forceShowCloseBtn ? (A(), _(s, {
551
+ key: 0,
552
+ icon: t.$core.state.isMobile ? "" : "",
553
+ class: "top-editArea_button",
554
+ color: "theme",
555
+ styling: "soft",
556
+ onClick: u
557
+ }, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
558
+ name: "default",
559
+ fn: H(() => [S(L(e.cancelText), 1)]),
560
+ key: "0"
561
+ }]), 1032, ["icon"])) : v("", !0), o.value ? (A(), _(s, {
562
+ key: 1,
563
+ class: "top-editArea_button",
564
+ icon: t.$core.state.isMobile ? "" : "",
565
+ onClick: n[5] ||= (e) => l(i.value)
566
+ }, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
567
+ name: "default",
568
+ fn: H(() => [S(L(e.submitText), 1)]),
569
+ key: "0"
570
+ }]), 1032, ["icon"])) : v("", !0)])], 2)], 2));
571
+ }
572
+ }), ge = { class: "top-editInput" }, Q = /* @__PURE__ */ w({
573
+ __name: "editInput",
574
+ props: {
575
+ modelValue: {},
576
+ alwaysShowSubmitBtn: { type: Boolean },
577
+ input: {},
578
+ button: {}
579
+ },
580
+ emits: ["update:modelValue"],
581
+ setup(e, { emit: t }) {
582
+ let n = e, r = j(n.modelValue);
583
+ V(() => n.modelValue, () => {
584
+ r.value = n.modelValue;
585
+ });
586
+ let i = t, o = () => {
587
+ i("update:modelValue", r.value);
588
+ };
589
+ return (t, n) => (A(), y("div", ge, [C(a, E(e.input, {
590
+ onKeydownCapture: n[0] ||= W(G((t) => r.value = e.modelValue, ["stop"]), ["esc"]),
591
+ onKeydown: W(G(o, ["stop"]), ["enter"]),
592
+ modelValue: r.value,
593
+ "onUpdate:modelValue": n[1] ||= (e) => r.value = e
594
+ }), x({ _: 2 }, [t.$slots.caption ? {
595
+ name: "caption",
596
+ fn: H(() => [N(t.$slots, "caption")]),
597
+ key: "0"
598
+ } : void 0]), 1040, ["onKeydown", "modelValue"]), r.value !== e.modelValue || e.alwaysShowSubmitBtn ? (A(), _(s, E({
599
+ key: 0,
600
+ icon: "",
601
+ styling: "soft"
602
+ }, e.button, { onClick: o }), null, 16)) : v("", !0)]));
603
+ }
604
+ }), $ = /* @__PURE__ */ w({
605
+ __name: "optionGroup",
606
+ props: /* @__PURE__ */ T({
607
+ modelValue: {},
608
+ items: {},
609
+ size: { default: "s" },
610
+ showIndicator: { type: Boolean },
611
+ isError: { type: Boolean }
612
+ }, {
613
+ modelValue: { required: !0 },
614
+ modelModifiers: {}
615
+ }),
616
+ emits: ["update:modelValue"],
617
+ setup(e) {
618
+ let t = B(e, "modelValue"), n = e, r = j(null);
619
+ V(t, () => {
620
+ let e = n.items.map((e) => e.value);
621
+ Array.isArray(t.value) ? t.value.find((t) => !e.includes(t)) && (t.value = t.value.filter((t) => e.includes(t))) : e.includes(t.value) || (t.value = e[0] ?? ""), r.value?.querySelector(".radioGroup_item-selected")?.scrollIntoView();
622
+ }, { immediate: !0 });
623
+ let a = "optionGroup-" + Math.random();
624
+ return (n, s) => (A(), y("div", {
625
+ ref_key: "elRef",
626
+ ref: r,
627
+ class: D({
628
+ "top-optionGroup": !0,
629
+ ["top-optionGroup-showIndicator_" + Number(e.showIndicator)]: !0,
630
+ "top-scrollBarXHidding": !0,
631
+ ["top-size_" + e.size]: !!e.size,
632
+ "top-error": e.isError
633
+ })
634
+ }, [Array.isArray(t.value) ? (A(!0), y(h, { key: 0 }, M(e.items, (n) => (A(), _(o, {
635
+ class: D({
636
+ "top-optionGroup_item-selected": t.value.includes(n.value),
637
+ "top-optionGroup_item": !0
638
+ }),
639
+ modelValue: t.value,
640
+ "onUpdate:modelValue": s[0] ||= (e) => t.value = e,
641
+ value: n.value,
642
+ title: n.title,
643
+ disabled: n.disabled,
644
+ isError: e.isError,
645
+ "data-top-icon": n.icon
646
+ }, x({ _: 2 }, [n.label ? {
647
+ name: "default",
648
+ fn: H(() => [S(L(n.label), 1)]),
649
+ key: "0"
650
+ } : void 0]), 1032, [
651
+ "class",
652
+ "modelValue",
653
+ "value",
654
+ "title",
655
+ "disabled",
656
+ "isError",
657
+ "data-top-icon"
658
+ ]))), 256)) : (A(!0), y(h, { key: 1 }, M(e.items, (n) => (A(), _(i, {
659
+ class: D({
660
+ "top-optionGroup_item-selected": n.value === t.value,
661
+ "top-optionGroup_item": !0
662
+ }),
663
+ modelValue: t.value,
664
+ "onUpdate:modelValue": s[1] ||= (e) => t.value = e,
665
+ name: a,
666
+ value: n.value,
667
+ title: n.title,
668
+ disabled: n.disabled,
669
+ isError: e.isError,
670
+ "data-top-icon": n.icon
671
+ }, x({ _: 2 }, [n.label ? {
672
+ name: "default",
673
+ fn: H(() => [S(L(n.label), 1)]),
674
+ key: "0"
675
+ } : void 0]), 1032, [
676
+ "class",
677
+ "modelValue",
678
+ "value",
679
+ "title",
680
+ "disabled",
681
+ "isError",
682
+ "data-top-icon"
683
+ ]))), 256))], 2));
684
+ }
685
+ }), _e = /* @__PURE__ */ w({
686
+ __name: "radioGroup",
687
+ props: /* @__PURE__ */ T({
688
+ modelValue: {},
689
+ items: {},
690
+ size: {},
691
+ showIndicator: { type: Boolean },
692
+ isError: { type: Boolean }
693
+ }, {
694
+ modelValue: { required: !0 },
695
+ modelModifiers: {}
696
+ }),
697
+ emits: ["update:modelValue"],
698
+ setup(e) {
699
+ let t = B(e, "modelValue");
700
+ return (e, n) => (A(), _($, {
701
+ class: "top-radioGroup",
702
+ modelValue: t.value,
703
+ "onUpdate:modelValue": n[0] ||= (e) => t.value = e,
704
+ items: e.$props.items,
705
+ size: e.$props.size,
706
+ showIndicator: e.$props.showIndicator,
707
+ isError: e.$props.isError
708
+ }, {
709
+ default: H(() => [N(e.$slots, "default")]),
710
+ _: 3
711
+ }, 8, [
712
+ "modelValue",
713
+ "items",
714
+ "size",
715
+ "showIndicator",
716
+ "isError"
717
+ ]));
718
+ }
719
+ }), ve = /* @__PURE__ */ w({
720
+ __name: "checkboxGroup",
721
+ props: /* @__PURE__ */ T({
722
+ modelValue: {},
723
+ items: {},
724
+ size: {},
725
+ showIndicator: { type: Boolean },
726
+ isError: { type: Boolean }
727
+ }, {
728
+ modelValue: { required: !0 },
729
+ modelModifiers: {}
730
+ }),
731
+ emits: ["update:modelValue"],
732
+ setup(e) {
733
+ let t = B(e, "modelValue");
734
+ return (e, n) => (A(), _($, {
735
+ class: "top-checkboxGroup",
736
+ modelValue: t.value,
737
+ "onUpdate:modelValue": n[0] ||= (e) => t.value = e,
738
+ items: e.$props.items,
739
+ size: e.$props.size,
740
+ showIndicator: e.$props.showIndicator,
741
+ isError: e.$props.isError
742
+ }, {
743
+ default: H(() => [N(e.$slots, "default")]),
744
+ _: 3
745
+ }, 8, [
746
+ "modelValue",
747
+ "items",
748
+ "size",
749
+ "showIndicator",
750
+ "isError"
751
+ ]));
752
+ }
753
+ }), ye = ["data-top-icon"], be = { class: "top-info_text" }, xe = {
754
+ key: 0,
755
+ class: "top-info_value"
756
+ }, Se = /* @__PURE__ */ w({
757
+ __name: "info",
758
+ props: {
759
+ icon: {},
760
+ styling: { default: "default" },
761
+ size: { default: "default" }
762
+ },
763
+ setup(e) {
764
+ return (t, n) => (A(), y("div", {
765
+ class: D({
766
+ "top-info": !0,
767
+ ["top-size_" + e.size]: !0,
768
+ ["top-info-styling_" + e.styling]: !0
769
+ }),
770
+ "data-top-icon": e.icon
771
+ }, [b("div", be, [N(t.$slots, "default")]), t.$slots.additional ? (A(), y("span", xe, [N(t.$slots, "additional")])) : v("", !0)], 10, ye));
772
+ }
773
+ }), Ce = {
774
+ key: 0,
775
+ class: "top-policy"
776
+ }, we = { class: "top-policy_title" }, Te = ["innerHTML"], Ee = /* @__PURE__ */ w({
777
+ __name: "policy",
778
+ props: {
779
+ title: {},
780
+ description: {},
781
+ acceptText: {}
782
+ },
783
+ emits: ["accept"],
784
+ setup(e, { emit: t }) {
785
+ let n = t, r = j(!0), i = () => {
786
+ r.value = !1, n("accept");
787
+ };
788
+ return (t, n) => r.value ? (A(), y("div", Ce, [
789
+ b("div", we, L(e.title), 1),
790
+ b("div", {
791
+ class: "top-policy_description",
792
+ innerHTML: e.description
793
+ }, null, 8, Te),
794
+ C(z(s), {
795
+ size: "m",
796
+ onClick: i
797
+ }, {
798
+ default: H(() => [S(L(e.acceptText), 1)]),
799
+ _: 1
800
+ })
801
+ ])) : v("", !0);
802
+ }
803
+ });
804
+ //#endregion
805
+ export { Q as a, ae as c, ee as d, _e as i, oe as l, Se as n, he as o, ve as r, pe as s, Ee as t, se as u };
806
+
807
+ //# sourceMappingURL=formsExt-CrTmBhja.esm.js.map