@topvisor/ui 1.3.5-5.0 → 1.4.0-TopGroupSelector.10

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 (216) hide show
  1. package/.chunks/core-BL-38XF7.es.js +196 -0
  2. package/.chunks/core-BL-38XF7.es.js.map +1 -0
  3. package/.chunks/core-BsPx05H9.amd.js +2 -0
  4. package/.chunks/core-BsPx05H9.amd.js.map +1 -0
  5. package/.chunks/{datepicker-CPrHVH4x.amd.js → datepicker-3coUsFW2.amd.js} +2 -2
  6. package/.chunks/{datepicker-CPrHVH4x.amd.js.map → datepicker-3coUsFW2.amd.js.map} +1 -1
  7. package/.chunks/{datepicker-J8Zg9mKt.es.js → datepicker-D1Hw3a3o.es.js} +14 -17
  8. package/.chunks/{datepicker-J8Zg9mKt.es.js.map → datepicker-D1Hw3a3o.es.js.map} +1 -1
  9. package/.chunks/dialog_regionSelectorRegions-1UVhgK2f.es.js +180 -0
  10. package/.chunks/dialog_regionSelectorRegions-1UVhgK2f.es.js.map +1 -0
  11. package/.chunks/dialog_regionSelectorRegions-CZ8IX7la.amd.js +2 -0
  12. package/.chunks/dialog_regionSelectorRegions-CZ8IX7la.amd.js.map +1 -0
  13. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js → dialogs.vue_vue_type_script_setup_true_lang-DRbTG0vh.es.js} +111 -112
  14. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-DRbTG0vh.es.js.map} +1 -1
  15. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Dq9kWWMg.amd.js +2 -0
  16. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-Dq9kWWMg.amd.js.map} +1 -1
  17. package/.chunks/forms-BseC3Ftz.es.js +2035 -0
  18. package/.chunks/{forms-COXAfg9G.es.js.map → forms-BseC3Ftz.es.js.map} +1 -1
  19. package/.chunks/forms-CUSCBQu3.amd.js +3 -0
  20. package/.chunks/{forms-DXX5M4DO.amd.js.map → forms-CUSCBQu3.amd.js.map} +1 -1
  21. package/.chunks/index-DLUtoTUg.amd.js +2 -0
  22. package/.chunks/index-DLUtoTUg.amd.js.map +1 -0
  23. package/.chunks/index-DkQWJkMc.es.js +54 -0
  24. package/.chunks/index-DkQWJkMc.es.js.map +1 -0
  25. package/.chunks/notice-Cl3ZgiHm.es.js +191 -0
  26. package/.chunks/{notice-P7CXfEuX.es.js.map → notice-Cl3ZgiHm.es.js.map} +1 -1
  27. package/.chunks/notice-DwjipV21.amd.js +4 -0
  28. package/.chunks/{notice-CSGn_jTM.amd.js.map → notice-DwjipV21.amd.js.map} +1 -1
  29. package/.chunks/page.vue_vue_type_script_setup_true_lang-CjIiZU-D.amd.js +2 -0
  30. package/.chunks/{page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js.map → page.vue_vue_type_script_setup_true_lang-CjIiZU-D.amd.js.map} +1 -1
  31. package/.chunks/page.vue_vue_type_script_setup_true_lang-CpRJQFD1.es.js +139 -0
  32. package/.chunks/{page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js.map → page.vue_vue_type_script_setup_true_lang-CpRJQFD1.es.js.map} +1 -1
  33. package/.chunks/policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js +496 -0
  34. package/.chunks/policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js.map +1 -0
  35. package/.chunks/policy.vue_vue_type_style_index_0_lang-DJOaMdBm.amd.js +2 -0
  36. package/.chunks/policy.vue_vue_type_style_index_0_lang-DJOaMdBm.amd.js.map +1 -0
  37. package/.chunks/popup-DRuyYFGB.amd.js +2 -0
  38. package/.chunks/popup-DRuyYFGB.amd.js.map +1 -0
  39. package/.chunks/popup-Jw_Yyg3U.es.js +470 -0
  40. package/.chunks/popup-Jw_Yyg3U.es.js.map +1 -0
  41. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js +209 -0
  42. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js.map +1 -0
  43. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DtiT6NE4.amd.js +2 -0
  44. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DtiT6NE4.amd.js.map +1 -0
  45. package/.chunks/utils-CzHUG_xz.amd.js +2 -0
  46. package/.chunks/{utils-D505nRsu.amd.js.map → utils-CzHUG_xz.amd.js.map} +1 -1
  47. package/.chunks/utils-D9nYQabE.amd.js +2 -0
  48. package/.chunks/{utils-DmxcQpWA.amd.js.map → utils-D9nYQabE.amd.js.map} +1 -1
  49. package/.chunks/{utils-CWm0zAtM.es.js → utils-Q69SXlnV.es.js} +192 -208
  50. package/.chunks/{utils-CWm0zAtM.es.js.map → utils-Q69SXlnV.es.js.map} +1 -1
  51. package/.chunks/{utils-Rbz9mxy6.es.js → utils-YrUExsH7.es.js} +23 -24
  52. package/.chunks/{utils-Rbz9mxy6.es.js.map → utils-YrUExsH7.es.js.map} +1 -1
  53. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js → widgetInput.vue_vue_type_script_setup_true_lang-CDkeKVqY.es.js} +2 -2
  54. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CDkeKVqY.es.js.map} +1 -1
  55. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js → widgetInput.vue_vue_type_script_setup_true_lang-CkE912ll.amd.js} +2 -2
  56. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CkE912ll.amd.js.map} +1 -1
  57. package/api/index.amd.js +1 -1
  58. package/api/index.amd.js.map +1 -1
  59. package/api/index.js +138 -133
  60. package/api/index.js.map +1 -1
  61. package/assets/dialog_regionSelectorRegions.css +1 -0
  62. package/assets/forms.css +1 -1
  63. package/assets/policy.css +1 -0
  64. package/assets/popupHint.css +1 -1
  65. package/assets/project.css +1 -1
  66. package/charts/charts.amd.js +1 -1
  67. package/charts/charts.amd.js.map +1 -1
  68. package/charts/charts.js +80 -80
  69. package/charts/charts.js.map +1 -1
  70. package/core/app.amd.js +1 -1
  71. package/core/app.amd.js.map +1 -1
  72. package/core/app.js +93 -96
  73. package/core/app.js.map +1 -1
  74. package/dialog/dialog.amd.js +1 -1
  75. package/dialog/dialog.amd.js.map +1 -1
  76. package/dialog/dialog.js +13 -13
  77. package/dialog/dialog.js.map +1 -1
  78. package/extra/extra.amd.js +1 -1
  79. package/extra/extra.amd.js.map +1 -1
  80. package/extra/extra.js +20 -23
  81. package/extra/extra.js.map +1 -1
  82. package/forms/forms.amd.js +1 -1
  83. package/forms/forms.js +5 -5
  84. package/formsExt/formsExt.amd.js +1 -1
  85. package/formsExt/formsExt.amd.js.map +1 -1
  86. package/formsExt/formsExt.js +180 -541
  87. package/formsExt/formsExt.js.map +1 -1
  88. package/layout/layout.amd.js +1 -1
  89. package/layout/layout.js +6 -6
  90. package/package.json +1 -1
  91. package/popup/popup.amd.js +1 -1
  92. package/popup/popup.amd.js.map +1 -1
  93. package/popup/popup.js +43 -46
  94. package/popup/popup.js.map +1 -1
  95. package/popup/worker.amd.js +1 -1
  96. package/popup/worker.amd.js.map +1 -1
  97. package/popup/worker.js +11 -9
  98. package/popup/worker.js.map +1 -1
  99. package/project/project.amd.js +1 -1
  100. package/project/project.amd.js.map +1 -1
  101. package/project/project.js +847 -579
  102. package/project/project.js.map +1 -1
  103. package/src/api/api/client/client.d.ts +5 -0
  104. package/src/api/api/mocker/index.d.ts +3 -3
  105. package/src/api/api/types/client/request.d.ts +6 -0
  106. package/src/api/api/types/mocker.d.ts +2 -2
  107. package/src/components/formsExt/formsExt.d.ts +1 -0
  108. package/src/components/formsExt/selector2/cache.d.ts +12 -0
  109. package/src/components/formsExt/selector2/composables/useAPI.d.ts +2033 -0
  110. package/src/components/formsExt/selector2/composables/useMenu.d.ts +2045 -5
  111. package/src/components/formsExt/selector2/itemMulti.vue.d.ts +3 -3
  112. package/src/components/formsExt/selector2/selector2.vue.d.ts +9 -3
  113. package/src/components/formsExt/selector2/types.d.ts +25 -8
  114. package/src/components/formsExt/selector2/utils.d.ts +16 -0
  115. package/src/components/popup/lib/popup.d.ts +1 -2
  116. package/src/components/popup/popup/opener/types.d.ts +6 -2
  117. package/src/components/popup/popup/types.d.ts +3 -2
  118. package/src/components/popup/popup.d.ts +1 -1
  119. package/src/components/project/groupSelector/folders/folders.vue.d.ts +18 -0
  120. package/src/components/project/groupSelector/folders/types.d.ts +63 -0
  121. package/src/components/project/groupSelector/folders/utils.d.ts +63 -0
  122. package/src/components/project/groupSelector/groupSelector.vue.d.ts +33 -0
  123. package/src/components/project/groupSelector/groups/groups.vue.d.ts +126 -0
  124. package/src/components/project/groupSelector/groups/types.d.ts +58 -0
  125. package/src/components/project/groupSelector/groups/utils.d.ts +92 -0
  126. package/src/components/project/groupSelector/stories/mocks/folders.d.ts +4 -0
  127. package/src/components/project/groupSelector/stories/mocks/groups.d.ts +2 -0
  128. package/src/components/project/groupSelector/stories/mocks/index.d.ts +7 -0
  129. package/src/components/project/groupSelector/types.d.ts +133 -0
  130. package/src/components/project/project.d.ts +5 -4
  131. package/src/components/project/{selectorRegion → regionSelector}/utils/utils.d.ts +3 -3
  132. package/src/core/utils/composables/useWatch.d.ts +32 -0
  133. package/tabs/tabs.amd.js +1 -1
  134. package/tabs/tabs.amd.js.map +1 -1
  135. package/tabs/tabs.js +24 -24
  136. package/tabs/tabs.js.map +1 -1
  137. package/tabsView/tabsView.amd.js +1 -1
  138. package/tabsView/tabsView.amd.js.map +1 -1
  139. package/tabsView/tabsView.js +131 -133
  140. package/tabsView/tabsView.js.map +1 -1
  141. package/utils/clipboard.amd.js +1 -1
  142. package/utils/clipboard.js +1 -1
  143. package/utils/date.amd.js +1 -1
  144. package/utils/date.js +1 -1
  145. package/utils/device.amd.js +1 -1
  146. package/utils/device.js +1 -1
  147. package/utils/lodash.amd.js +1 -1
  148. package/utils/lodash.js +1 -1
  149. package/utils/price.amd.js +1 -1
  150. package/utils/price.js +1 -1
  151. package/utils/scroll.amd.js +1 -1
  152. package/utils/scroll.amd.js.map +1 -1
  153. package/utils/scroll.js +14 -14
  154. package/utils/scroll.js.map +1 -1
  155. package/utils/searchers.amd.js +1 -1
  156. package/utils/searchers.js +3 -3
  157. package/utils/string.amd.js +1 -1
  158. package/utils/string.amd.js.map +1 -1
  159. package/utils/string.js +3 -7
  160. package/utils/string.js.map +1 -1
  161. package/.chunks/core-CaWxDXrZ.es.js +0 -197
  162. package/.chunks/core-CaWxDXrZ.es.js.map +0 -1
  163. package/.chunks/core-DmO1i1Ua.amd.js +0 -2
  164. package/.chunks/core-DmO1i1Ua.amd.js.map +0 -1
  165. package/.chunks/dialog_selectorRegions-DoEjgXtb.es.js +0 -190
  166. package/.chunks/dialog_selectorRegions-DoEjgXtb.es.js.map +0 -1
  167. package/.chunks/dialog_selectorRegions-DzufTzj9.amd.js +0 -2
  168. package/.chunks/dialog_selectorRegions-DzufTzj9.amd.js.map +0 -1
  169. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js +0 -2
  170. package/.chunks/forms-COXAfg9G.es.js +0 -2047
  171. package/.chunks/forms-DXX5M4DO.amd.js +0 -3
  172. package/.chunks/index-BEI7XZmU.amd.js +0 -2
  173. package/.chunks/index-BEI7XZmU.amd.js.map +0 -1
  174. package/.chunks/index-igPkes8X.es.js +0 -48
  175. package/.chunks/index-igPkes8X.es.js.map +0 -1
  176. package/.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js +0 -199
  177. package/.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js.map +0 -1
  178. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js +0 -2
  179. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js.map +0 -1
  180. package/.chunks/menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js +0 -112
  181. package/.chunks/menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js.map +0 -1
  182. package/.chunks/menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js +0 -2
  183. package/.chunks/menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js.map +0 -1
  184. package/.chunks/notice-CSGn_jTM.amd.js +0 -4
  185. package/.chunks/notice-P7CXfEuX.es.js +0 -194
  186. package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js +0 -36
  187. package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js.map +0 -1
  188. package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js +0 -2
  189. package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js.map +0 -1
  190. package/.chunks/page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js +0 -143
  191. package/.chunks/page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js +0 -2
  192. package/.chunks/popup-CF4k7j3U.amd.js +0 -2
  193. package/.chunks/popup-CF4k7j3U.amd.js.map +0 -1
  194. package/.chunks/popup-G7FYKscC.es.js +0 -485
  195. package/.chunks/popup-G7FYKscC.es.js.map +0 -1
  196. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js +0 -2
  197. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js.map +0 -1
  198. package/.chunks/utils-D505nRsu.amd.js +0 -2
  199. package/.chunks/utils-DmxcQpWA.amd.js +0 -2
  200. package/assets/dialog_selectorRegions.css +0 -1
  201. package/assets/formsExt.css +0 -1
  202. package/assets/listItem.css +0 -1
  203. package/assets/menu.css +0 -1
  204. package/src/components/popup/popup/opener.vue.d.ts +0 -17
  205. /package/src/components/project/{selectorCompetitors/selectorCompetitors.vue.d.ts → competitorSelector/competitorSelector.vue.d.ts} +0 -0
  206. /package/src/components/project/{selectorCompetitors → competitorSelector}/composables.d.ts +0 -0
  207. /package/src/components/project/{selectorCompetitors → competitorSelector}/types.d.ts +0 -0
  208. /package/src/components/project/{selectorRegion → regionSelector}/composables/compare.d.ts +0 -0
  209. /package/src/components/project/{selectorRegion → regionSelector}/composables/selectRegion.d.ts +0 -0
  210. /package/src/components/project/{selectorRegion → regionSelector}/composables/selectSearcher.d.ts +0 -0
  211. /package/src/components/project/{selectorRegion → regionSelector}/composables/selectorRegion.d.ts +0 -0
  212. /package/src/components/project/{selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts → regionSelector/dialog_regionSelectorRegions/dialog_regionSelectorRegions.vue.d.ts} +0 -0
  213. /package/src/components/project/{selectorRegion/dialog_selectorRegions → regionSelector/dialog_regionSelectorRegions}/types.d.ts +0 -0
  214. /package/src/components/project/{selectorRegion/selectorRegion.vue.d.ts → regionSelector/regionSelector.vue.d.ts} +0 -0
  215. /package/src/components/project/{selectorRegion → regionSelector}/types.d.ts +0 -0
  216. /package/src/components/project/{selectorRegion → regionSelector}/utils/consts.d.ts +0 -0
@@ -1,2047 +0,0 @@
1
- import { reactive as ye, watch as gt, getCurrentInstance as ve, inject as mt, ref as Pe, defineComponent as _, useCssVars as ht, computed as O, createElementBlock as m, openBlock as f, createElementVNode as j, createCommentVNode as T, createBlock as W, resolveDynamicComponent as qt, normalizeClass as S, withCtx as te, renderSlot as M, createTextVNode as Yt, toDisplayString as P, mergeModels as we, useModel as bt, resolveDirective as z, withDirectives as V, vModelCheckbox as yt, mergeProps as ie, withKeys as Qt, vModelText as vt, withModifiers as Jt, onUnmounted as Zt, unref as ge, vModelRadio as xt, Fragment as ae, renderList as $e, vModelSelect as en } from "vue";
2
- function tn() {
3
- return "devicePixelRatio" in window && window.devicePixelRatio > 1;
4
- }
5
- function nn() {
6
- return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
7
- }
8
- function rn() {
9
- return navigator.userAgent.indexOf("Topvisor_App") != -1;
10
- }
11
- function an() {
12
- return navigator.userAgent.indexOf("Mac OS X") !== -1;
13
- }
14
- function es() {
15
- const e = /Chrome|Android/.test(navigator.userAgent);
16
- let t = /Safari/.test(navigator.userAgent);
17
- return e && t && (t = !1), t;
18
- }
19
- function ts() {
20
- return an() ? "⌘" : "Ctrl";
21
- }
22
- const ns = () => $(document).scrollTop(), rs = () => $(document), as = () => [document], on = () => {
23
- const e = [
24
- ["iOS", /(iPhone|iPad)/i],
25
- ["Android", /(Android)/i],
26
- ["Windows Phone", /(IEMobile)/i],
27
- ["Windows 3.11", /Win16/i],
28
- ["Windows 95", /(Windows 95)|(Win95)|(Windows_95)/i],
29
- ["Windows 98", /(Windows 98)|(Win98)/i],
30
- ["Windows 2000", /(Windows NT 5.0)|(Windows 2000)/i],
31
- ["Windows XP", /(Windows NT 5.1)|(Windows XP)/i],
32
- ["Windows Server 2003", /(Windows NT 5.2)/i],
33
- ["Windows Vista", /(Windows NT 6.0)/i],
34
- ["Windows 7", /(Windows NT 6.1)/i],
35
- ["Windows 8", /(Windows NT 6.[23])|(Windows 8)/i],
36
- ["Windows 10", /(Windows NT 10)/i],
37
- ["Windows NT 4.0", /(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)/i],
38
- ["Windows ME", /Windows ME/i],
39
- ["Windows", /Windows/i],
40
- ["Open BSD", /OpenBSD/i],
41
- ["Sun OS", /SunOS/i],
42
- ["Linux", /(Linux)|(X11)/i],
43
- ["Macintosh", /(Mac_PowerPC)|(Macintosh)|(Mac OS X 10.4)|(Mac OS X 10.5)|(Mac OS X 10.6)/i],
44
- ["QNX", /QNX/i],
45
- ["BeOS", /BeOS/i],
46
- ["OS/2", /OS\/2/i]
47
- ];
48
- let t = "";
49
- for (let n = 0; n < e.length; n++)
50
- if (e[n][1].test(navigator.userAgent)) {
51
- t = e[n][0];
52
- break;
53
- }
54
- return t;
55
- }, os = async () => {
56
- var t;
57
- let e = on();
58
- if (e === "Windows 10") {
59
- const n = await ((t = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : t.getHighEntropyValues(["platformVersion"]));
60
- n && n.platformVersion >= "13" && (e = "Windows 11");
61
- }
62
- return e;
63
- };
64
- function E(e) {
65
- var t = typeof e;
66
- return e != null && (t == "object" || t == "function");
67
- }
68
- var wt = typeof global == "object" && global && global.Object === Object && global, sn = typeof self == "object" && self && self.Object === Object && self, A = wt || sn || Function("return this")(), me = function() {
69
- return A.Date.now();
70
- }, ln = /\s/;
71
- function un(e) {
72
- for (var t = e.length; t-- && ln.test(e.charAt(t)); )
73
- ;
74
- return t;
75
- }
76
- var dn = /^\s+/;
77
- function cn(e) {
78
- return e && e.slice(0, un(e) + 1).replace(dn, "");
79
- }
80
- var X = A.Symbol, $t = Object.prototype, pn = $t.hasOwnProperty, fn = $t.toString, Q = X ? X.toStringTag : void 0;
81
- function gn(e) {
82
- var t = pn.call(e, Q), n = e[Q];
83
- try {
84
- e[Q] = void 0;
85
- var a = !0;
86
- } catch {
87
- }
88
- var o = fn.call(e);
89
- return a && (t ? e[Q] = n : delete e[Q]), o;
90
- }
91
- var mn = Object.prototype, hn = mn.toString;
92
- function bn(e) {
93
- return hn.call(e);
94
- }
95
- var yn = "[object Null]", vn = "[object Undefined]", Fe = X ? X.toStringTag : void 0;
96
- function R(e) {
97
- return e == null ? e === void 0 ? vn : yn : Fe && Fe in Object(e) ? gn(e) : bn(e);
98
- }
99
- function L(e) {
100
- return e != null && typeof e == "object";
101
- }
102
- var wn = "[object Symbol]";
103
- function $n(e) {
104
- return typeof e == "symbol" || L(e) && R(e) == wn;
105
- }
106
- var Re = NaN, Tn = /^[-+]0x[0-9a-f]+$/i, Sn = /^0b[01]+$/i, _n = /^0o[0-7]+$/i, On = parseInt;
107
- function Ue(e) {
108
- if (typeof e == "number")
109
- return e;
110
- if ($n(e))
111
- return Re;
112
- if (E(e)) {
113
- var t = typeof e.valueOf == "function" ? e.valueOf() : e;
114
- e = E(t) ? t + "" : t;
115
- }
116
- if (typeof e != "string")
117
- return e === 0 ? e : +e;
118
- e = cn(e);
119
- var n = Sn.test(e);
120
- return n || _n.test(e) ? On(e.slice(2), n ? 2 : 8) : Tn.test(e) ? Re : +e;
121
- }
122
- var En = "Expected a function", jn = Math.max, An = Math.min;
123
- function Tt(e, t, n) {
124
- var a, o, r, s, i, l, u = 0, c = !1, d = !1, p = !0;
125
- if (typeof e != "function")
126
- throw new TypeError(En);
127
- t = Ue(t) || 0, E(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? jn(Ue(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
128
- function b(v) {
129
- var B = a, Y = o;
130
- return a = o = void 0, u = v, s = e.apply(Y, B), s;
131
- }
132
- function w(v) {
133
- return u = v, i = setTimeout(ne, t), c ? b(v) : s;
134
- }
135
- function C(v) {
136
- var B = v - l, Y = v - u, ke = t - B;
137
- return d ? An(ke, r - Y) : ke;
138
- }
139
- function ze(v) {
140
- var B = v - l, Y = v - u;
141
- return l === void 0 || B >= t || B < 0 || d && Y >= r;
142
- }
143
- function ne() {
144
- var v = me();
145
- if (ze(v))
146
- return Ve(v);
147
- i = setTimeout(ne, C(v));
148
- }
149
- function Ve(v) {
150
- return i = void 0, p && a ? b(v) : (a = o = void 0, s);
151
- }
152
- function Kt() {
153
- i !== void 0 && clearTimeout(i), u = 0, a = l = o = i = void 0;
154
- }
155
- function Xt() {
156
- return i === void 0 ? s : Ve(me());
157
- }
158
- function fe() {
159
- var v = me(), B = ze(v);
160
- if (a = arguments, o = this, l = v, B) {
161
- if (i === void 0)
162
- return w(l);
163
- if (d)
164
- return clearTimeout(i), i = setTimeout(ne, t), b(l);
165
- }
166
- return i === void 0 && (i = setTimeout(ne, t)), s;
167
- }
168
- return fe.cancel = Kt, fe.flush = Xt, fe;
169
- }
170
- function Pn() {
171
- this.__data__ = [], this.size = 0;
172
- }
173
- function le(e, t) {
174
- return e === t || e !== e && t !== t;
175
- }
176
- function ue(e, t) {
177
- for (var n = e.length; n--; )
178
- if (le(e[n][0], t))
179
- return n;
180
- return -1;
181
- }
182
- var Mn = Array.prototype, Cn = Mn.splice;
183
- function Dn(e) {
184
- var t = this.__data__, n = ue(t, e);
185
- if (n < 0)
186
- return !1;
187
- var a = t.length - 1;
188
- return n == a ? t.pop() : Cn.call(t, n, 1), --this.size, !0;
189
- }
190
- function In(e) {
191
- var t = this.__data__, n = ue(t, e);
192
- return n < 0 ? void 0 : t[n][1];
193
- }
194
- function Bn(e) {
195
- return ue(this.__data__, e) > -1;
196
- }
197
- function Wn(e, t) {
198
- var n = this.__data__, a = ue(n, e);
199
- return a < 0 ? (++this.size, n.push([e, t])) : n[a][1] = t, this;
200
- }
201
- function I(e) {
202
- var t = -1, n = e == null ? 0 : e.length;
203
- for (this.clear(); ++t < n; ) {
204
- var a = e[t];
205
- this.set(a[0], a[1]);
206
- }
207
- }
208
- I.prototype.clear = Pn;
209
- I.prototype.delete = Dn;
210
- I.prototype.get = In;
211
- I.prototype.has = Bn;
212
- I.prototype.set = Wn;
213
- function Ln() {
214
- this.__data__ = new I(), this.size = 0;
215
- }
216
- function Nn(e) {
217
- var t = this.__data__, n = t.delete(e);
218
- return this.size = t.size, n;
219
- }
220
- function zn(e) {
221
- return this.__data__.get(e);
222
- }
223
- function Vn(e) {
224
- return this.__data__.has(e);
225
- }
226
- var kn = "[object AsyncFunction]", Fn = "[object Function]", Rn = "[object GeneratorFunction]", Un = "[object Proxy]";
227
- function Me(e) {
228
- if (!E(e))
229
- return !1;
230
- var t = R(e);
231
- return t == Fn || t == Rn || t == kn || t == Un;
232
- }
233
- var he = A["__core-js_shared__"], He = (function() {
234
- var e = /[^.]+$/.exec(he && he.keys && he.keys.IE_PROTO || "");
235
- return e ? "Symbol(src)_1." + e : "";
236
- })();
237
- function Hn(e) {
238
- return !!He && He in e;
239
- }
240
- var Gn = Function.prototype, Kn = Gn.toString;
241
- function U(e) {
242
- if (e != null) {
243
- try {
244
- return Kn.call(e);
245
- } catch {
246
- }
247
- try {
248
- return e + "";
249
- } catch {
250
- }
251
- }
252
- return "";
253
- }
254
- var Xn = /[\\^$.*+?()[\]{}|]/g, qn = /^\[object .+?Constructor\]$/, Yn = Function.prototype, Qn = Object.prototype, Jn = Yn.toString, Zn = Qn.hasOwnProperty, xn = RegExp(
255
- "^" + Jn.call(Zn).replace(Xn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
256
- );
257
- function er(e) {
258
- if (!E(e) || Hn(e))
259
- return !1;
260
- var t = Me(e) ? xn : qn;
261
- return t.test(U(e));
262
- }
263
- function tr(e, t) {
264
- return e == null ? void 0 : e[t];
265
- }
266
- function H(e, t) {
267
- var n = tr(e, t);
268
- return er(n) ? n : void 0;
269
- }
270
- var Z = H(A, "Map"), x = H(Object, "create");
271
- function nr() {
272
- this.__data__ = x ? x(null) : {}, this.size = 0;
273
- }
274
- function rr(e) {
275
- var t = this.has(e) && delete this.__data__[e];
276
- return this.size -= t ? 1 : 0, t;
277
- }
278
- var ar = "__lodash_hash_undefined__", or = Object.prototype, ir = or.hasOwnProperty;
279
- function sr(e) {
280
- var t = this.__data__;
281
- if (x) {
282
- var n = t[e];
283
- return n === ar ? void 0 : n;
284
- }
285
- return ir.call(t, e) ? t[e] : void 0;
286
- }
287
- var lr = Object.prototype, ur = lr.hasOwnProperty;
288
- function dr(e) {
289
- var t = this.__data__;
290
- return x ? t[e] !== void 0 : ur.call(t, e);
291
- }
292
- var cr = "__lodash_hash_undefined__";
293
- function pr(e, t) {
294
- var n = this.__data__;
295
- return this.size += this.has(e) ? 0 : 1, n[e] = x && t === void 0 ? cr : t, this;
296
- }
297
- function k(e) {
298
- var t = -1, n = e == null ? 0 : e.length;
299
- for (this.clear(); ++t < n; ) {
300
- var a = e[t];
301
- this.set(a[0], a[1]);
302
- }
303
- }
304
- k.prototype.clear = nr;
305
- k.prototype.delete = rr;
306
- k.prototype.get = sr;
307
- k.prototype.has = dr;
308
- k.prototype.set = pr;
309
- function fr() {
310
- this.size = 0, this.__data__ = {
311
- hash: new k(),
312
- map: new (Z || I)(),
313
- string: new k()
314
- };
315
- }
316
- function gr(e) {
317
- var t = typeof e;
318
- return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
319
- }
320
- function de(e, t) {
321
- var n = e.__data__;
322
- return gr(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
323
- }
324
- function mr(e) {
325
- var t = de(this, e).delete(e);
326
- return this.size -= t ? 1 : 0, t;
327
- }
328
- function hr(e) {
329
- return de(this, e).get(e);
330
- }
331
- function br(e) {
332
- return de(this, e).has(e);
333
- }
334
- function yr(e, t) {
335
- var n = de(this, e), a = n.size;
336
- return n.set(e, t), this.size += n.size == a ? 0 : 1, this;
337
- }
338
- function N(e) {
339
- var t = -1, n = e == null ? 0 : e.length;
340
- for (this.clear(); ++t < n; ) {
341
- var a = e[t];
342
- this.set(a[0], a[1]);
343
- }
344
- }
345
- N.prototype.clear = fr;
346
- N.prototype.delete = mr;
347
- N.prototype.get = hr;
348
- N.prototype.has = br;
349
- N.prototype.set = yr;
350
- var vr = 200;
351
- function wr(e, t) {
352
- var n = this.__data__;
353
- if (n instanceof I) {
354
- var a = n.__data__;
355
- if (!Z || a.length < vr - 1)
356
- return a.push([e, t]), this.size = ++n.size, this;
357
- n = this.__data__ = new N(a);
358
- }
359
- return n.set(e, t), this.size = n.size, this;
360
- }
361
- function G(e) {
362
- var t = this.__data__ = new I(e);
363
- this.size = t.size;
364
- }
365
- G.prototype.clear = Ln;
366
- G.prototype.delete = Nn;
367
- G.prototype.get = zn;
368
- G.prototype.has = Vn;
369
- G.prototype.set = wr;
370
- function $r(e, t) {
371
- for (var n = -1, a = e == null ? 0 : e.length; ++n < a && t(e[n], n, e) !== !1; )
372
- ;
373
- return e;
374
- }
375
- var se = (function() {
376
- try {
377
- var e = H(Object, "defineProperty");
378
- return e({}, "", {}), e;
379
- } catch {
380
- }
381
- })();
382
- function Ce(e, t, n) {
383
- t == "__proto__" && se ? se(e, t, {
384
- configurable: !0,
385
- enumerable: !0,
386
- value: n,
387
- writable: !0
388
- }) : e[t] = n;
389
- }
390
- var Tr = Object.prototype, Sr = Tr.hasOwnProperty;
391
- function St(e, t, n) {
392
- var a = e[t];
393
- (!(Sr.call(e, t) && le(a, n)) || n === void 0 && !(t in e)) && Ce(e, t, n);
394
- }
395
- function _r(e, t, n, a) {
396
- var o = !n;
397
- n || (n = {});
398
- for (var r = -1, s = t.length; ++r < s; ) {
399
- var i = t[r], l = void 0;
400
- l === void 0 && (l = e[i]), o ? Ce(n, i, l) : St(n, i, l);
401
- }
402
- return n;
403
- }
404
- function Or(e, t) {
405
- for (var n = -1, a = Array(e); ++n < e; )
406
- a[n] = t(n);
407
- return a;
408
- }
409
- var Er = "[object Arguments]";
410
- function Ge(e) {
411
- return L(e) && R(e) == Er;
412
- }
413
- var _t = Object.prototype, jr = _t.hasOwnProperty, Ar = _t.propertyIsEnumerable, Te = Ge(/* @__PURE__ */ (function() {
414
- return arguments;
415
- })()) ? Ge : function(e) {
416
- return L(e) && jr.call(e, "callee") && !Ar.call(e, "callee");
417
- }, ee = Array.isArray;
418
- function Pr() {
419
- return !1;
420
- }
421
- var Ot = typeof exports == "object" && exports && !exports.nodeType && exports, Ke = Ot && typeof module == "object" && module && !module.nodeType && module, Mr = Ke && Ke.exports === Ot, Xe = Mr ? A.Buffer : void 0, Cr = Xe ? Xe.isBuffer : void 0, De = Cr || Pr, Dr = 9007199254740991, Ir = /^(?:0|[1-9]\d*)$/;
422
- function Et(e, t) {
423
- var n = typeof e;
424
- return t = t ?? Dr, !!t && (n == "number" || n != "symbol" && Ir.test(e)) && e > -1 && e % 1 == 0 && e < t;
425
- }
426
- var Br = 9007199254740991;
427
- function jt(e) {
428
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Br;
429
- }
430
- var Wr = "[object Arguments]", Lr = "[object Array]", Nr = "[object Boolean]", zr = "[object Date]", Vr = "[object Error]", kr = "[object Function]", Fr = "[object Map]", Rr = "[object Number]", Ur = "[object Object]", Hr = "[object RegExp]", Gr = "[object Set]", Kr = "[object String]", Xr = "[object WeakMap]", qr = "[object ArrayBuffer]", Yr = "[object DataView]", Qr = "[object Float32Array]", Jr = "[object Float64Array]", Zr = "[object Int8Array]", xr = "[object Int16Array]", ea = "[object Int32Array]", ta = "[object Uint8Array]", na = "[object Uint8ClampedArray]", ra = "[object Uint16Array]", aa = "[object Uint32Array]", y = {};
431
- y[Qr] = y[Jr] = y[Zr] = y[xr] = y[ea] = y[ta] = y[na] = y[ra] = y[aa] = !0;
432
- y[Wr] = y[Lr] = y[qr] = y[Nr] = y[Yr] = y[zr] = y[Vr] = y[kr] = y[Fr] = y[Rr] = y[Ur] = y[Hr] = y[Gr] = y[Kr] = y[Xr] = !1;
433
- function oa(e) {
434
- return L(e) && jt(e.length) && !!y[R(e)];
435
- }
436
- function Ie(e) {
437
- return function(t) {
438
- return e(t);
439
- };
440
- }
441
- var At = typeof exports == "object" && exports && !exports.nodeType && exports, J = At && typeof module == "object" && module && !module.nodeType && module, ia = J && J.exports === At, be = ia && wt.process, q = (function() {
442
- try {
443
- var e = J && J.require && J.require("util").types;
444
- return e || be && be.binding && be.binding("util");
445
- } catch {
446
- }
447
- })(), qe = q && q.isTypedArray, Pt = qe ? Ie(qe) : oa, sa = Object.prototype, la = sa.hasOwnProperty;
448
- function Mt(e, t) {
449
- var n = ee(e), a = !n && Te(e), o = !n && !a && De(e), r = !n && !a && !o && Pt(e), s = n || a || o || r, i = s ? Or(e.length, String) : [], l = i.length;
450
- for (var u in e)
451
- (t || la.call(e, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
452
- (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
453
- o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
454
- r && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
455
- Et(u, l))) && i.push(u);
456
- return i;
457
- }
458
- var ua = Object.prototype;
459
- function Be(e) {
460
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || ua;
461
- return e === n;
462
- }
463
- function Ct(e, t) {
464
- return function(n) {
465
- return e(t(n));
466
- };
467
- }
468
- var da = Ct(Object.keys, Object), ca = Object.prototype, pa = ca.hasOwnProperty;
469
- function fa(e) {
470
- if (!Be(e))
471
- return da(e);
472
- var t = [];
473
- for (var n in Object(e))
474
- pa.call(e, n) && n != "constructor" && t.push(n);
475
- return t;
476
- }
477
- function ce(e) {
478
- return e != null && jt(e.length) && !Me(e);
479
- }
480
- function ga(e) {
481
- return ce(e) ? Mt(e) : fa(e);
482
- }
483
- function ma(e) {
484
- var t = [];
485
- if (e != null)
486
- for (var n in Object(e))
487
- t.push(n);
488
- return t;
489
- }
490
- var ha = Object.prototype, ba = ha.hasOwnProperty;
491
- function ya(e) {
492
- if (!E(e))
493
- return ma(e);
494
- var t = Be(e), n = [];
495
- for (var a in e)
496
- a == "constructor" && (t || !ba.call(e, a)) || n.push(a);
497
- return n;
498
- }
499
- function Dt(e) {
500
- return ce(e) ? Mt(e, !0) : ya(e);
501
- }
502
- var It = typeof exports == "object" && exports && !exports.nodeType && exports, Ye = It && typeof module == "object" && module && !module.nodeType && module, va = Ye && Ye.exports === It, Qe = va ? A.Buffer : void 0, Je = Qe ? Qe.allocUnsafe : void 0;
503
- function Bt(e, t) {
504
- if (t)
505
- return e.slice();
506
- var n = e.length, a = Je ? Je(n) : new e.constructor(n);
507
- return e.copy(a), a;
508
- }
509
- function wa(e, t) {
510
- var n = -1, a = e.length;
511
- for (t || (t = Array(a)); ++n < a; )
512
- t[n] = e[n];
513
- return t;
514
- }
515
- function $a(e, t) {
516
- for (var n = -1, a = e == null ? 0 : e.length, o = 0, r = []; ++n < a; ) {
517
- var s = e[n];
518
- t(s, n, e) && (r[o++] = s);
519
- }
520
- return r;
521
- }
522
- function Ta() {
523
- return [];
524
- }
525
- var Sa = Object.prototype, _a = Sa.propertyIsEnumerable, Ze = Object.getOwnPropertySymbols, Oa = Ze ? function(e) {
526
- return e == null ? [] : (e = Object(e), $a(Ze(e), function(t) {
527
- return _a.call(e, t);
528
- }));
529
- } : Ta;
530
- function Ea(e, t) {
531
- for (var n = -1, a = t.length, o = e.length; ++n < a; )
532
- e[o + n] = t[n];
533
- return e;
534
- }
535
- var Wt = Ct(Object.getPrototypeOf, Object);
536
- function ja(e, t, n) {
537
- var a = t(e);
538
- return ee(e) ? a : Ea(a, n(e));
539
- }
540
- function Aa(e) {
541
- return ja(e, ga, Oa);
542
- }
543
- var Se = H(A, "DataView"), _e = H(A, "Promise"), Oe = H(A, "Set"), Ee = H(A, "WeakMap"), xe = "[object Map]", Pa = "[object Object]", et = "[object Promise]", tt = "[object Set]", nt = "[object WeakMap]", rt = "[object DataView]", Ma = U(Se), Ca = U(Z), Da = U(_e), Ia = U(Oe), Ba = U(Ee), D = R;
544
- (Se && D(new Se(new ArrayBuffer(1))) != rt || Z && D(new Z()) != xe || _e && D(_e.resolve()) != et || Oe && D(new Oe()) != tt || Ee && D(new Ee()) != nt) && (D = function(e) {
545
- var t = R(e), n = t == Pa ? e.constructor : void 0, a = n ? U(n) : "";
546
- if (a)
547
- switch (a) {
548
- case Ma:
549
- return rt;
550
- case Ca:
551
- return xe;
552
- case Da:
553
- return et;
554
- case Ia:
555
- return tt;
556
- case Ba:
557
- return nt;
558
- }
559
- return t;
560
- });
561
- var Wa = Object.prototype, La = Wa.hasOwnProperty;
562
- function Na(e) {
563
- var t = e.length, n = new e.constructor(t);
564
- return t && typeof e[0] == "string" && La.call(e, "index") && (n.index = e.index, n.input = e.input), n;
565
- }
566
- var at = A.Uint8Array;
567
- function We(e) {
568
- var t = new e.constructor(e.byteLength);
569
- return new at(t).set(new at(e)), t;
570
- }
571
- function za(e, t) {
572
- var n = We(e.buffer);
573
- return new e.constructor(n, e.byteOffset, e.byteLength);
574
- }
575
- var Va = /\w*$/;
576
- function ka(e) {
577
- var t = new e.constructor(e.source, Va.exec(e));
578
- return t.lastIndex = e.lastIndex, t;
579
- }
580
- var ot = X ? X.prototype : void 0, it = ot ? ot.valueOf : void 0;
581
- function Fa(e) {
582
- return it ? Object(it.call(e)) : {};
583
- }
584
- function Lt(e, t) {
585
- var n = t ? We(e.buffer) : e.buffer;
586
- return new e.constructor(n, e.byteOffset, e.length);
587
- }
588
- var Ra = "[object Boolean]", Ua = "[object Date]", Ha = "[object Map]", Ga = "[object Number]", Ka = "[object RegExp]", Xa = "[object Set]", qa = "[object String]", Ya = "[object Symbol]", Qa = "[object ArrayBuffer]", Ja = "[object DataView]", Za = "[object Float32Array]", xa = "[object Float64Array]", eo = "[object Int8Array]", to = "[object Int16Array]", no = "[object Int32Array]", ro = "[object Uint8Array]", ao = "[object Uint8ClampedArray]", oo = "[object Uint16Array]", io = "[object Uint32Array]";
589
- function so(e, t, n) {
590
- var a = e.constructor;
591
- switch (t) {
592
- case Qa:
593
- return We(e);
594
- case Ra:
595
- case Ua:
596
- return new a(+e);
597
- case Ja:
598
- return za(e);
599
- case Za:
600
- case xa:
601
- case eo:
602
- case to:
603
- case no:
604
- case ro:
605
- case ao:
606
- case oo:
607
- case io:
608
- return Lt(e, n);
609
- case Ha:
610
- return new a();
611
- case Ga:
612
- case qa:
613
- return new a(e);
614
- case Ka:
615
- return ka(e);
616
- case Xa:
617
- return new a();
618
- case Ya:
619
- return Fa(e);
620
- }
621
- }
622
- var st = Object.create, lo = /* @__PURE__ */ (function() {
623
- function e() {
624
- }
625
- return function(t) {
626
- if (!E(t))
627
- return {};
628
- if (st)
629
- return st(t);
630
- e.prototype = t;
631
- var n = new e();
632
- return e.prototype = void 0, n;
633
- };
634
- })();
635
- function Nt(e) {
636
- return typeof e.constructor == "function" && !Be(e) ? lo(Wt(e)) : {};
637
- }
638
- var uo = "[object Map]";
639
- function co(e) {
640
- return L(e) && D(e) == uo;
641
- }
642
- var lt = q && q.isMap, po = lt ? Ie(lt) : co, fo = "[object Set]";
643
- function go(e) {
644
- return L(e) && D(e) == fo;
645
- }
646
- var ut = q && q.isSet, ho = ut ? Ie(ut) : go, bo = 1, zt = "[object Arguments]", yo = "[object Array]", vo = "[object Boolean]", wo = "[object Date]", $o = "[object Error]", Vt = "[object Function]", To = "[object GeneratorFunction]", So = "[object Map]", _o = "[object Number]", kt = "[object Object]", Oo = "[object RegExp]", Eo = "[object Set]", jo = "[object String]", Ao = "[object Symbol]", Po = "[object WeakMap]", Mo = "[object ArrayBuffer]", Co = "[object DataView]", Do = "[object Float32Array]", Io = "[object Float64Array]", Bo = "[object Int8Array]", Wo = "[object Int16Array]", Lo = "[object Int32Array]", No = "[object Uint8Array]", zo = "[object Uint8ClampedArray]", Vo = "[object Uint16Array]", ko = "[object Uint32Array]", h = {};
647
- h[zt] = h[yo] = h[Mo] = h[Co] = h[vo] = h[wo] = h[Do] = h[Io] = h[Bo] = h[Wo] = h[Lo] = h[So] = h[_o] = h[kt] = h[Oo] = h[Eo] = h[jo] = h[Ao] = h[No] = h[zo] = h[Vo] = h[ko] = !0;
648
- h[$o] = h[Vt] = h[Po] = !1;
649
- function oe(e, t, n, a, o, r) {
650
- var s, i = t & bo;
651
- if (s !== void 0)
652
- return s;
653
- if (!E(e))
654
- return e;
655
- var l = ee(e);
656
- if (l)
657
- s = Na(e);
658
- else {
659
- var u = D(e), c = u == Vt || u == To;
660
- if (De(e))
661
- return Bt(e, i);
662
- if (u == kt || u == zt || c && !o)
663
- s = c ? {} : Nt(e);
664
- else {
665
- if (!h[u])
666
- return o ? e : {};
667
- s = so(e, u, i);
668
- }
669
- }
670
- r || (r = new G());
671
- var d = r.get(e);
672
- if (d)
673
- return d;
674
- r.set(e, s), ho(e) ? e.forEach(function(w) {
675
- s.add(oe(w, t, n, w, e, r));
676
- }) : po(e) && e.forEach(function(w, C) {
677
- s.set(C, oe(w, t, n, C, e, r));
678
- });
679
- var p = Aa, b = l ? void 0 : p(e);
680
- return $r(b || e, function(w, C) {
681
- b && (C = w, w = e[C]), St(s, C, oe(w, t, n, C, e, r));
682
- }), s;
683
- }
684
- var Fo = 1, Ro = 4;
685
- function is(e) {
686
- return oe(e, Fo | Ro);
687
- }
688
- var Uo = "Expected a function";
689
- function Ft(e, t) {
690
- if (typeof e != "function" || t != null && typeof t != "function")
691
- throw new TypeError(Uo);
692
- var n = function() {
693
- var a = arguments, o = t ? t.apply(this, a) : a[0], r = n.cache;
694
- if (r.has(o))
695
- return r.get(o);
696
- var s = e.apply(this, a);
697
- return n.cache = r.set(o, s) || r, s;
698
- };
699
- return n.cache = new (Ft.Cache || N)(), n;
700
- }
701
- Ft.Cache = N;
702
- var Ho = "Expected a function";
703
- function ss(e, t, n) {
704
- var a = !0, o = !0;
705
- if (typeof e != "function")
706
- throw new TypeError(Ho);
707
- return E(n) && (a = "leading" in n ? !!n.leading : a, o = "trailing" in n ? !!n.trailing : o), Tt(e, t, {
708
- leading: a,
709
- maxWait: t,
710
- trailing: o
711
- });
712
- }
713
- function je(e, t, n) {
714
- (n !== void 0 && !le(e[t], n) || n === void 0 && !(t in e)) && Ce(e, t, n);
715
- }
716
- function Go(e) {
717
- return function(t, n, a) {
718
- for (var o = -1, r = Object(t), s = a(t), i = s.length; i--; ) {
719
- var l = s[++o];
720
- if (n(r[l], l, r) === !1)
721
- break;
722
- }
723
- return t;
724
- };
725
- }
726
- var Ko = Go();
727
- function Xo(e) {
728
- return L(e) && ce(e);
729
- }
730
- var qo = "[object Object]", Yo = Function.prototype, Qo = Object.prototype, Rt = Yo.toString, Jo = Qo.hasOwnProperty, Zo = Rt.call(Object);
731
- function xo(e) {
732
- if (!L(e) || R(e) != qo)
733
- return !1;
734
- var t = Wt(e);
735
- if (t === null)
736
- return !0;
737
- var n = Jo.call(t, "constructor") && t.constructor;
738
- return typeof n == "function" && n instanceof n && Rt.call(n) == Zo;
739
- }
740
- function Ae(e, t) {
741
- if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
742
- return e[t];
743
- }
744
- function ei(e) {
745
- return _r(e, Dt(e));
746
- }
747
- function ti(e, t, n, a, o, r, s) {
748
- var i = Ae(e, n), l = Ae(t, n), u = s.get(l);
749
- if (u) {
750
- je(e, n, u);
751
- return;
752
- }
753
- var c = r ? r(i, l, n + "", e, t, s) : void 0, d = c === void 0;
754
- if (d) {
755
- var p = ee(l), b = !p && De(l), w = !p && !b && Pt(l);
756
- c = l, p || b || w ? ee(i) ? c = i : Xo(i) ? c = wa(i) : b ? (d = !1, c = Bt(l, !0)) : w ? (d = !1, c = Lt(l, !0)) : c = [] : xo(l) || Te(l) ? (c = i, Te(i) ? c = ei(i) : (!E(i) || Me(i)) && (c = Nt(l))) : d = !1;
757
- }
758
- d && (s.set(l, c), o(c, l, a, r, s), s.delete(l)), je(e, n, c);
759
- }
760
- function Ut(e, t, n, a, o) {
761
- e !== t && Ko(t, function(r, s) {
762
- if (o || (o = new G()), E(r))
763
- ti(e, t, s, n, Ut, a, o);
764
- else {
765
- var i = a ? a(Ae(e, s), r, s + "", e, t, o) : void 0;
766
- i === void 0 && (i = r), je(e, s, i);
767
- }
768
- }, Dt);
769
- }
770
- function Ht(e) {
771
- return e;
772
- }
773
- function ni(e, t, n) {
774
- switch (n.length) {
775
- case 0:
776
- return e.call(t);
777
- case 1:
778
- return e.call(t, n[0]);
779
- case 2:
780
- return e.call(t, n[0], n[1]);
781
- case 3:
782
- return e.call(t, n[0], n[1], n[2]);
783
- }
784
- return e.apply(t, n);
785
- }
786
- var dt = Math.max;
787
- function ri(e, t, n) {
788
- return t = dt(t === void 0 ? e.length - 1 : t, 0), function() {
789
- for (var a = arguments, o = -1, r = dt(a.length - t, 0), s = Array(r); ++o < r; )
790
- s[o] = a[t + o];
791
- o = -1;
792
- for (var i = Array(t + 1); ++o < t; )
793
- i[o] = a[o];
794
- return i[t] = n(s), ni(e, this, i);
795
- };
796
- }
797
- function ai(e) {
798
- return function() {
799
- return e;
800
- };
801
- }
802
- var oi = se ? function(e, t) {
803
- return se(e, "toString", {
804
- configurable: !0,
805
- enumerable: !1,
806
- value: ai(t),
807
- writable: !0
808
- });
809
- } : Ht, ii = 800, si = 16, li = Date.now;
810
- function ui(e) {
811
- var t = 0, n = 0;
812
- return function() {
813
- var a = li(), o = si - (a - n);
814
- if (n = a, o > 0) {
815
- if (++t >= ii)
816
- return arguments[0];
817
- } else
818
- t = 0;
819
- return e.apply(void 0, arguments);
820
- };
821
- }
822
- var di = ui(oi);
823
- function ci(e, t) {
824
- return di(ri(e, t, Ht), e + "");
825
- }
826
- function pi(e, t, n) {
827
- if (!E(n))
828
- return !1;
829
- var a = typeof t;
830
- return (a == "number" ? ce(n) && Et(t, n.length) : a == "string" && t in n) ? le(n[t], e) : !1;
831
- }
832
- function fi(e) {
833
- return ci(function(t, n) {
834
- var a = -1, o = n.length, r = o > 1 ? n[o - 1] : void 0, s = o > 2 ? n[2] : void 0;
835
- for (r = e.length > 3 && typeof r == "function" ? (o--, r) : void 0, s && pi(n[0], n[1], s) && (r = o < 3 ? void 0 : r, o = 1), t = Object(t); ++a < o; ) {
836
- var i = n[a];
837
- i && e(t, i, a, r);
838
- }
839
- return t;
840
- });
841
- }
842
- var ls = fi(function(e, t, n) {
843
- Ut(e, t, n);
844
- });
845
- const gi = 100, Le = /* @__PURE__ */ new Map(), re = {
846
- width: window.innerWidth,
847
- height: window.innerHeight
848
- }, mi = (e) => {
849
- Le.set(e, e);
850
- }, hi = (e) => {
851
- Le.delete(e);
852
- }, bi = Tt((e) => {
853
- const t = e;
854
- t.topEvent = {
855
- widthDiff: re.width - window.innerWidth,
856
- hightDiff: re.height - window.innerHeight
857
- }, re.width = window.innerWidth, re.height = window.innerHeight, Le.forEach((n) => n(t));
858
- }, gi);
859
- window.addEventListener("resize", bi);
860
- const yi = {
861
- addOnReize: mi,
862
- removeOnResize: hi
863
- }, K = {
864
- /**
865
- * Имя темы оформления
866
- *
867
- * В данный момент не используется для загрузки css
868
- *
869
- * @todo Реализовать загрузки и замену css темы на стороне UI
870
- *
871
- * @see https://ui.topvisor.com/?path=/docs/core-theme--docs
872
- */
873
- themeName: "light",
874
- /**
875
- * CSS-классы модификаторы для документа страницы
876
- *
877
- * Могут использоваться компонентами для включения необходимых режимов отображения страницы
878
- *
879
- * Разные компоненты могут добавлять один и тот же класс, чтобы не было конфликтов каждый компонент управляет только своим классом:
880
- * - Ключ - уникальное имя компонента, например в setup: `const uid = Math.random();`
881
- * - Значение - класс модификатора
882
- */
883
- documentClassModificators: /* @__PURE__ */ new Map(),
884
- /**
885
- * Базовая ширина страницы для отображения ПК / Мобильной версии сайта
886
- *
887
- * @see Core state isMobile
888
- */
889
- widthForMobile: 900,
890
- /**
891
- * Формат даты, который будет использоваться по умолчанию для вывода даты, как правило, зависит от текущего пользователя
892
- */
893
- dateFormat: "Y-m-d",
894
- /**
895
- * Валюта, которая будет использоваться по умолчанию, как правило, зависит от текущего пользователя
896
- */
897
- currency: "USD",
898
- /**
899
- * Смещение timezone относительно UTC в минутах
900
- * Для Москвы: -180
901
- */
902
- timezoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset()
903
- }, vi = {
904
- /**
905
- * CSS-классы модификаторы для документа страницы
906
- */
907
- documentClassModificators: K.documentClassModificators,
908
- dateFormat: K.dateFormat,
909
- currency: K.currency,
910
- timezoneOffset: K.timezoneOffset,
911
- /**
912
- * Device by size
913
- *
914
- * @see Core widthForMobile
915
- */
916
- isMobile: !1,
917
- /**
918
- * Device by user agent
919
- */
920
- isMobileUA: !1,
921
- /**
922
- * true, если плотность пикселей экрана больше 1
923
- */
924
- isRetina: !1,
925
- /**
926
- * true, елси это приложение
927
- */
928
- isApp: !1,
929
- /**
930
- * true при горизонтальном расположении устройства
931
- */
932
- isLandscape: !0,
933
- /**
934
- * true при вертикальном расположении устройства
935
- */
936
- isPortrait: !1,
937
- /**
938
- * Максимальная сторона страницы
939
- */
940
- size: 0,
941
- /**
942
- * true, если страница скрыта
943
- *
944
- * Не меняйте это значение вручную
945
- */
946
- isHidden: !1
947
- };
948
- class wi {
949
- /**
950
- * Загрузить в память полный функционал TopNotice
951
- */
952
- static async TopNotice() {
953
- await import("./notice-P7CXfEuX.es.js");
954
- }
955
- /**
956
- * Загрузить в память полный функционал TopPopup
957
- */
958
- static async TopPopup() {
959
- await import("./popup-G7FYKscC.es.js");
960
- }
961
- /**
962
- * Загрузить в память полный функционал TopDialog
963
- */
964
- static async TopDialog() {
965
- const { TopDialogWorker: t } = await import("../core/app.js");
966
- await t.getDialogsUtils();
967
- }
968
- }
969
- class g {
970
- static state = ye({ ...vi });
971
- static preloaders = wi;
972
- static widthForMobile = K.widthForMobile;
973
- static themeName = K.themeName;
974
- static matchMediaIsMobile;
975
- static $ = $;
976
- static Events = yi;
977
- /**
978
- * Различные флаги, необходимые для работы UI
979
- */
980
- static flags = ye({ needLoadNotice: !1 });
981
- static _setState() {
982
- this.$ = $, g.matchMediaIsMobile = window.matchMedia(`(max-width: ${g.widthForMobile}px)`), g.state.isMobileUA = nn(), g.state.isRetina = tn(), g.state.isApp = rn(), g.useDocumentClassModificators(), g.useIsHidden(), g.setStateByWindowSize(), g.Events.addOnReize(g.onResize), g.onResize(), g.saveToCookie(), g.useCtrlClasses();
983
- }
984
- static useDocumentClassModificators() {
985
- gt(() => [...g.state.documentClassModificators], (t, n) => {
986
- let a = /* @__PURE__ */ new Set();
987
- n == null || n.forEach(([o, r]) => a.add(r)), t.forEach(([o, r]) => a.delete(r)), a.forEach((o) => document.documentElement.classList.remove(o)), t.forEach(([o, r]) => document.documentElement.classList.add(r));
988
- }, { immediate: !0 });
989
- }
990
- static useIsHidden() {
991
- document.addEventListener("visibilitychange", () => {
992
- g.state.isHidden = document.hidden;
993
- }), g.state.isHidden = document.hidden;
994
- }
995
- static setStateByWindowSize() {
996
- var t;
997
- g.state.isMobile = !!((t = g.matchMediaIsMobile) != null && t.matches), g.state.isLandscape = window.innerWidth > window.innerHeight, g.state.isPortrait = !g.state.isLandscape, g.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, g.saveToCookie();
998
- }
999
- static onResize() {
1000
- g.setStateByWindowSize();
1001
- }
1002
- /**
1003
- * Сохранить информацию об устройстве в cookie
1004
- */
1005
- static saveToCookie() {
1006
- const t = [
1007
- 1,
1008
- window.innerWidth,
1009
- window.innerHeight,
1010
- window.devicePixelRatio,
1011
- Number(g.state.isMobile),
1012
- Number(g.state.isRetina)
1013
- ];
1014
- document.cookie = "device=" + t.join(",") + "; path=/;";
1015
- }
1016
- /**
1017
- * Добавить установку класса при нажатии ctrl (cmd) / alt
1018
- */
1019
- static useCtrlClasses() {
1020
- const t = document.body.classList;
1021
- document.addEventListener("keydown", (n) => {
1022
- (n.ctrlKey || n.metaKey) && t.add("top-body-press_ctrl"), n.altKey && t.add("top-body-press_alt");
1023
- }), document.addEventListener("keyup", () => t.remove("top-body-press_ctrl", "top-body-press_alt")), document.addEventListener("keypress", () => t.remove("top-body-press_ctrl", "top-body-press_alt")), window.addEventListener("blur", () => t.remove("top-body-press_ctrl", "top-body-press_alt"));
1024
- }
1025
- /**
1026
- * Вывести на экране сообщение в стилизации под push уведомление
1027
- *
1028
- * Для удобства работы со словарем, принимает один парамтер `text` и первую строку из него использует как `title`.
1029
- * Данное поведение можно изменить, передав в параметрах `options.title`
1030
- *
1031
- * Для вывода используется компонент TopNotice, требует его подклчючения
1032
- *
1033
- * @docs https://ui.topvisor.com/?path=/docs/components-core-notice--docs
1034
- */
1035
- static notice = async (t, n, a) => (g.flags.needLoadNotice = !0, (await import("./notice-P7CXfEuX.es.js")).show(t, n, a));
1036
- /**
1037
- * Вставить css стили на страницу по ссылке с автоматическим добавлением правил media
1038
- *
1039
- * Правила media:
1040
- * - Файлы *.m.css будут грузиться, только на экранах с шириной менее, чем Core.widthForMobile
1041
- * - Файлы *.pc.css будут грузиться, только на экранах с шириной более, чем Core.widthForMobile
1042
- *
1043
- * Настройкой Core.widthForMobile можно управлять через plugin: @topvisor/ui/plugin/core
1044
- *
1045
- * @param fileNames - список ссылок на css файлы
1046
- * @param useSync - использовать синхронную загрузку css, только для css с того же домена. В синхронном режиме стили предзагружаются независимо от
1047
- * media
1048
- */
1049
- static insertCSSLinkToPage = (t, n = !1) => {
1050
- const a = /* @__PURE__ */ new Map();
1051
- a.set("::", []), t.forEach((r) => {
1052
- let s = !1, i = !1;
1053
- r.match(/\.m\./) && (s = !0), r.match(/\.pc\./) && (i = !0);
1054
- const l = `${s}:${i}`;
1055
- a.has(l) || a.set(`${s}:${i}`, []), a.get(`${s}:${i}`).push(r);
1056
- });
1057
- const o = [];
1058
- return a.forEach((r, s) => {
1059
- if (!r.length)
1060
- return;
1061
- const [i, l] = s.split(":").map((d) => d === "true");
1062
- let u = "all";
1063
- i && (u = "(max-width: " + g.widthForMobile + "px)"), l && (u = "(min-width: " + g.widthForMobile + "px)"), g._insertToPage(r, u, n).forEach((d) => o.push(d));
1064
- }), Promise.all(o);
1065
- };
1066
- static _insertToPage = (t, n, a) => {
1067
- const o = [];
1068
- return t.forEach((r) => {
1069
- if (a) {
1070
- const d = new XMLHttpRequest();
1071
- d.open("GET", r, !1), d.send();
1072
- }
1073
- const s = "topCSSLink-" + r.replace(/\W/g, "-");
1074
- if (window.hasOwnProperty(s)) return;
1075
- let i, l;
1076
- const u = new Promise((d, p) => {
1077
- i = d, l = p;
1078
- });
1079
- o.push(u);
1080
- const c = document.createElement("link");
1081
- c.id = s, c.rel = "stylesheet", c.media = n, c.href = r, c.onload = () => i(), c.onerror = () => l(), document.head.append(c);
1082
- }), o;
1083
- };
1084
- /**
1085
- * Вставить css стили на страницу с автоматическим добавлением правил media
1086
- *
1087
- * Загрузка с Vite:
1088
- *
1089
- * ```js
1090
- * import style from '/style.css?inline';
1091
- *
1092
- * insertToPageAsInine(style);
1093
- * ```
1094
- *
1095
- * Загрузка с fetch:
1096
- *
1097
- * ```js
1098
- * const style = await fetch('./style.css');
1099
- *
1100
- * insertToPageAsInine(style);
1101
- * ```
1102
- *
1103
- * @param style - css стили в строке
1104
- * @param type - если указать 'm' или 'pc', то стили будут применяться по условию в зависимости от настройки this.widthForMobile
1105
- *
1106
- * @see insertToPage
1107
- */
1108
- static insertStyleToPage = (t, n = "") => {
1109
- let a = "all";
1110
- n === "m" && (a = "(max-width: " + g.widthForMobile + "px)"), n === "pc" && (a = "(min-width: " + g.widthForMobile + "px)");
1111
- const o = document.createElement("style");
1112
- o.innerHTML = t, o.media = a, document.head.append(o);
1113
- };
1114
- }
1115
- const us = {
1116
- install: (e, t) => {
1117
- const n = (a, o, r) => {
1118
- if (!e.config.globalProperties.$i18n[a][o]) return "";
1119
- let s = e.config.globalProperties.$i18n[a][o] + "";
1120
- for (const i in r)
1121
- s = s.replaceAll(new RegExp(`{{ ${i} }}`, "g"), String(r[i]));
1122
- return s;
1123
- };
1124
- Object.setPrototypeOf(n, ye(t.i18n)), e.config.globalProperties.$i18n = n, e.config.globalProperties.$i18nLang = Pe(t.lang), e.config.globalProperties.i18n = e.config.globalProperties.$i18n, typeof window < "u" && !window.requirejs && (globalThis.$i18n = e.config.globalProperties.$i18n), e.provide("$i18n", e.config.globalProperties.$i18n), e.provide("$i18nLang", e.config.globalProperties.$i18nLang), e.provide("i18n", e.config.globalProperties.i18n);
1125
- }
1126
- }, pe = () => {
1127
- var e, t;
1128
- return !ve() && ((t = (e = window.mo) == null ? void 0 : e.user) != null && t.lang) ? requirejs("i18n").categories[mo.user.lang] : !ve() && globalThis.$i18n ? globalThis.$i18n : mt("$i18n");
1129
- }, ds = () => {
1130
- var e, t;
1131
- return !ve() && ((t = (e = window.mo) == null ? void 0 : e.user) != null && t.lang) ? Pe(mo.user.lang) : mt("$i18nLang");
1132
- }, cs = (e, t, n) => {
1133
- const a = pe().Calendar;
1134
- switch (new Date(e, --t, n).getDay()) {
1135
- case 0:
1136
- return a.Dw_1 + ".";
1137
- case 1:
1138
- return a.Dw_2 + ".";
1139
- case 2:
1140
- return a.Dw_3 + ".";
1141
- case 3:
1142
- return a.Dw_4 + ".";
1143
- case 4:
1144
- return a.Dw_5 + ".";
1145
- case 5:
1146
- return a.Dw_6 + ".";
1147
- case 6:
1148
- return a.Dw_7 + ".";
1149
- default:
1150
- return "";
1151
- }
1152
- }, ps = (e, t = !0, n = 2) => {
1153
- let a = String(e.getFullYear()), o = String(e.getDate()).padStart(2, "0"), r = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getHours()).padStart(2, "0"), i = String(e.getMinutes()).padStart(2, "0"), l = String(e.getSeconds()).padStart(2, "0"), u = a + "-" + r + "-" + o;
1154
- return n >= 1 && (u += " " + s), n >= 2 && (u += ":" + i), n === 3 && (u += ":" + l), t && (u = F(u, n)), u;
1155
- };
1156
- function fs(e) {
1157
- if (e.indexOf("T") === -1) {
1158
- e.length == 10 && (e += " 00:00:00");
1159
- const t = g.state.timezoneOffset >= 0 ? "-" : "+", n = Math.abs(g.state.timezoneOffset) / 60;
1160
- let a;
1161
- if (Number.isInteger(n))
1162
- a = t + n.toString().padStart(2, "0") + ":00";
1163
- else {
1164
- const o = Math.floor(n), r = Math.round((n - o) * 60);
1165
- a = t + o.toString().padStart(2, "0") + ":" + r.toString().padStart(2, "0");
1166
- }
1167
- e = e.replace(" ", "T") + a;
1168
- }
1169
- return new Date(e);
1170
- }
1171
- const gs = (e = (/* @__PURE__ */ new Date()).getTime(), t = !0, n = 0) => Gt(e, t, n, g.state.timezoneOffset);
1172
- function Gt(e = (/* @__PURE__ */ new Date()).getTime(), t = !0, n = 0, a) {
1173
- const o = a ? e + (/* @__PURE__ */ new Date()).getTimezoneOffset() * 60 * 1e3 - a * 60 * 1e3 : e, r = new Date(o), s = r.getFullYear(), i = String(r.getMonth() + 1).padStart(2, "0"), l = r.getDate().toString().padStart(2, "0"), u = r.getHours().toString().padStart(2, "0"), c = r.getMinutes().toString().padStart(2, "0"), d = r.getSeconds().toString().padStart(2, "0");
1174
- n === "auto" && (n = 0, r.getHours() && (n = 1), r.getMinutes() && (n = 2), r.getSeconds() && (n = 3));
1175
- let p = s + "-" + i + "-" + l;
1176
- return n && (p += " "), n >= 1 && (p += u), n >= 2 && (p += ":" + c), n >= 3 && (p += ":" + d), t && (a ? p = F(p, n) : p = F(r, n)), p;
1177
- }
1178
- function ms(e, t = !0) {
1179
- const a = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, o = 10800 * 1e3;
1180
- let r;
1181
- e !== void 0 ? r = new Date(e) : r = /* @__PURE__ */ new Date(), r.setTime(r.getTime() - a + o);
1182
- let s = String(r.getFullYear()), i = String(r.getDate()).padStart(2, "0"), l = String(r.getMonth() + 1).padStart(2, "0"), u = String(r.getHours()).padStart(2, "0"), c = String(r.getMinutes()).padStart(2, "0"), d = String(r.getSeconds()).padStart(2, "0"), p = s + "-" + l + "-" + i + " " + u + ":" + c + ":" + d;
1183
- return t && (p = F(p)), p;
1184
- }
1185
- function F(e, t = 2, n, a) {
1186
- if (a || (a = pe().Common.Not_date), typeof e == "string" && (!e || e.substring(0, 10) === "0000-00-00") && a && a !== "0000-00-00" || !e) return a;
1187
- n || (n = g.state.dateFormat), n = n.toLowerCase().replace("m", "mm").replace("y", "yy").replace("d", "dd");
1188
- let o;
1189
- if (e instanceof Date)
1190
- o = e;
1191
- else {
1192
- let s = e.substring(0, 10);
1193
- if (s.length === 7 && (s += "-01"), s += " 00:00", s = s.replace(/-/g, "/"), o = new Date(s), isNaN(Number(o))) return a;
1194
- }
1195
- let r = "";
1196
- if (n && window.$ && (r = $.datepicker.formatDate(n, o)), t && typeof e == "string" && e.length > 10 || t && e instanceof Date) {
1197
- let s = "";
1198
- if (e instanceof Date)
1199
- s = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
1200
- hour12: !1,
1201
- hour: "numeric",
1202
- minute: t >= 2 ? "numeric" : void 0,
1203
- second: t >= 3 ? "numeric" : void 0
1204
- });
1205
- else
1206
- switch (t) {
1207
- // часы
1208
- case 1:
1209
- s = e.substring(11, 13);
1210
- break;
1211
- // часы и минуты
1212
- case 2:
1213
- s = e.substring(11, 16);
1214
- break;
1215
- // часы, минуты и секунды
1216
- case 3:
1217
- s = e.substring(11, 19);
1218
- break;
1219
- }
1220
- r += " " + s;
1221
- }
1222
- return r = r.trim(), r;
1223
- }
1224
- function ct(e, t) {
1225
- if (t || (t = pe().Common.Not_date), !e)
1226
- return t;
1227
- if (e.match(/\d\d\d\d-\d\d-\d\d/))
1228
- return e;
1229
- const n = g.state.dateFormat.toLowerCase(), a = e.split(/\W/), o = n.split(/\W/);
1230
- let r = "", s = "", i = "";
1231
- o.forEach((u, c) => {
1232
- switch (u) {
1233
- case "d":
1234
- r = a[c];
1235
- break;
1236
- case "m":
1237
- s = a[c];
1238
- break;
1239
- case "y":
1240
- i = a[c];
1241
- break;
1242
- }
1243
- });
1244
- let l = i + "-" + s + "-" + r;
1245
- return l.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + l), l = Gt((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), l;
1246
- }
1247
- const $i = { class: "top-avatar" }, Ti = ["src", "title"], Si = ["title"], hs = /* @__PURE__ */ _({
1248
- __name: "avatar",
1249
- props: {
1250
- size: { default: 64 },
1251
- image: {},
1252
- nickname: {},
1253
- isOnline: { type: Boolean },
1254
- lastActiveTime: {},
1255
- i18n: { default: () => ({
1256
- Online: "Online",
1257
- LastSeen: "Last seen"
1258
- }) }
1259
- },
1260
- setup(e) {
1261
- ht((o) => ({
1262
- "52a765e6": o.size + "px"
1263
- }));
1264
- const t = e, n = O(() => {
1265
- var o, r;
1266
- if (t.isOnline)
1267
- return (o = t.i18n) == null ? void 0 : o.Online;
1268
- if (t.lastActiveTime)
1269
- return ((r = t.i18n) == null ? void 0 : r.LastSeen) + ": " + F(t.lastActiveTime, 2);
1270
- }), a = O(() => t.nickname ? t.nickname + (n.value ? `
1271
- ${n.value}` : "") : n.value);
1272
- return (o, r) => (f(), m("div", $i, [
1273
- j("img", {
1274
- class: "top-avatar_image",
1275
- src: o.image,
1276
- title: a.value,
1277
- alt: ""
1278
- }, null, 8, Ti),
1279
- o.isOnline ? (f(), m("div", {
1280
- key: 0,
1281
- class: "top-avatar_status",
1282
- title: n.value
1283
- }, null, 8, Si)) : T("", !0)
1284
- ]));
1285
- }
1286
- }), _i = ["data-top-badge"], Oi = {
1287
- key: 1,
1288
- class: "top-ellipsis"
1289
- }, bs = /* @__PURE__ */ _({
1290
- __name: "button",
1291
- props: {
1292
- color: { default: "blue" },
1293
- styling: { default: "" },
1294
- size: { default: "s" },
1295
- name: {},
1296
- title: {},
1297
- icon: {},
1298
- icon2: {},
1299
- href: {},
1300
- badgeNumber: {},
1301
- badgePosAfterText: { type: Boolean },
1302
- disabled: { type: Boolean },
1303
- isSubmit: { type: Boolean },
1304
- isActive: { type: Boolean },
1305
- isProgress: { type: Boolean },
1306
- autoWidth: { type: Boolean }
1307
- },
1308
- setup(e) {
1309
- const t = e, n = O(() => t.href ? "a" : "button"), a = O(() => t.isSubmit ? "submit" : void 0);
1310
- return (o, r) => (f(), W(qt(n.value), {
1311
- class: S({
1312
- "top-active": o.isActive,
1313
- "top-disabled": o.disabled,
1314
- "top-forms-focusable": !o.disabled,
1315
- "top-button": !0,
1316
- "top-button-progress": o.isProgress,
1317
- [`top-size_${o.size}`]: !!o.size,
1318
- [`top-color_${o.color}`]: !0,
1319
- [`top-style_${o.styling}`]: !!o.styling,
1320
- "top-button-autoWidth": o.autoWidth,
1321
- "top-button-withoutText": !o.$slots.default
1322
- }),
1323
- name: o.name,
1324
- title: o.title,
1325
- href: o.href,
1326
- type: a.value,
1327
- "data-top-icon": o.icon || void 0,
1328
- "data-top-icon2": o.icon2 || void 0,
1329
- disabled: o.disabled || void 0,
1330
- inProgress: o.isProgress
1331
- }, {
1332
- default: te(() => [
1333
- o.badgeNumber ? (f(), m("span", {
1334
- key: 0,
1335
- "data-top-badge": o.badgeNumber,
1336
- class: S(["top-button_badge", {
1337
- "top-button_badge-afterText": o.badgePosAfterText
1338
- }])
1339
- }, null, 10, _i)) : T("", !0),
1340
- o.$slots.default ? (f(), m("span", Oi, [
1341
- M(o.$slots, "default", {}, () => [
1342
- Yt(P(o.icon ? "" : "Button"), 1)
1343
- ])
1344
- ])) : T("", !0),
1345
- M(o.$slots, "html")
1346
- ]),
1347
- _: 3
1348
- }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
1349
- }
1350
- }), Ei = { class: "top-caption" }, ji = { class: "top-caption_title" }, ys = /* @__PURE__ */ _({
1351
- __name: "caption",
1352
- props: {
1353
- title: {}
1354
- },
1355
- setup(e) {
1356
- return (t, n) => (f(), m("label", Ei, [
1357
- j("div", ji, P(t.title ? t.title : " "), 1),
1358
- M(t.$slots, "default")
1359
- ]));
1360
- }
1361
- }), Ai = { class: "top-forms-optionLabel" }, Ne = /* @__PURE__ */ _({
1362
- __name: "controlLabel",
1363
- props: {
1364
- description: {},
1365
- disabled: { type: Boolean }
1366
- },
1367
- setup(e) {
1368
- return (t, n) => (f(), m("div", Ai, [
1369
- j("div", {
1370
- class: S({
1371
- "top-forms-optionLabel_title": !0,
1372
- "top-forms-optionLabel_title-disabled": t.disabled
1373
- })
1374
- }, [
1375
- M(t.$slots, "default")
1376
- ], 2),
1377
- t.description ? (f(), m("div", {
1378
- key: 0,
1379
- class: S(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": t.disabled }])
1380
- }, P(t.description), 3)) : T("", !0)
1381
- ]));
1382
- }
1383
- }), Pi = ["name", "value", "indeterminate", "disabled"], vs = /* @__PURE__ */ _({
1384
- __name: "checkbox",
1385
- props: /* @__PURE__ */ we({
1386
- modelValue: { type: [Boolean, Array, Set] },
1387
- name: {},
1388
- value: {},
1389
- description: {},
1390
- disabled: { type: Boolean },
1391
- indeterminate: { type: Boolean },
1392
- isError: { type: Boolean }
1393
- }, {
1394
- modelValue: { type: [Boolean, Array, Set] },
1395
- modelModifiers: {}
1396
- }),
1397
- emits: ["update:modelValue"],
1398
- setup(e) {
1399
- const t = bt(e, "modelValue");
1400
- return (n, a) => {
1401
- const o = z("top-focus");
1402
- return f(), m("label", {
1403
- class: S({
1404
- "top-forms-optionWrapper": !0,
1405
- "top-checkbox": !0,
1406
- ["top-checkbox_" + n.name]: !!n.name,
1407
- "top-disabled": n.disabled,
1408
- "top-error": n.isError && !n.disabled
1409
- })
1410
- }, [
1411
- V(j("input", {
1412
- type: "checkbox",
1413
- class: S({
1414
- "top-forms-focusable": !n.disabled,
1415
- "top-forms-option": !0,
1416
- "top-checkbox_input": !0,
1417
- "top-error": n.isError && !n.disabled
1418
- }),
1419
- name: n.name,
1420
- "onUpdate:modelValue": a[0] || (a[0] = (r) => t.value = r),
1421
- value: n.value,
1422
- indeterminate: n.indeterminate,
1423
- disabled: n.disabled
1424
- }, null, 10, Pi), [
1425
- [
1426
- o,
1427
- n.isError,
1428
- void 0,
1429
- { onupdate: !0 }
1430
- ],
1431
- [yt, t.value]
1432
- ]),
1433
- n.$slots.default ? (f(), W(Ne, {
1434
- key: 0,
1435
- description: n.description,
1436
- disabled: n.disabled
1437
- }, {
1438
- default: te(() => [
1439
- M(n.$slots, "default")
1440
- ]),
1441
- _: 3
1442
- }, 8, ["description", "disabled"])) : T("", !0)
1443
- ], 2);
1444
- };
1445
- }
1446
- }), Mi = ["title"], Ci = /* @__PURE__ */ _({
1447
- __name: "hint",
1448
- props: {
1449
- hint: {}
1450
- },
1451
- setup(e) {
1452
- return (t, n) => (f(), m("span", {
1453
- class: "top-hint",
1454
- "data-top-icon": "",
1455
- title: t.hint
1456
- }, null, 8, Mi));
1457
- }
1458
- }), Di = (e, t) => {
1459
- const n = e.__vccOpts || e;
1460
- for (const [a, o] of t)
1461
- n[a] = o;
1462
- return n;
1463
- }, Ii = {}, Bi = { class: "top-loadbar" };
1464
- function Wi(e, t) {
1465
- return f(), m("div", Bi);
1466
- }
1467
- const Li = /* @__PURE__ */ Di(Ii, [["render", Wi]]), Ni = ["data-top-icon", "data-top-icon2"], zi = ["name", "title", "placeholder", "disabled", "readonly", "data-1p-ignore"], Vi = {
1468
- key: 2,
1469
- class: "top-formsCaption"
1470
- }, pt = /* @__PURE__ */ _({
1471
- inheritAttrs: !1,
1472
- __name: "input",
1473
- props: {
1474
- modelValue: {},
1475
- name: {},
1476
- disabled: { type: Boolean },
1477
- readonly: { type: Boolean },
1478
- modificator: {},
1479
- size: { default: "s" },
1480
- styling: { default: "" },
1481
- isError: { type: Boolean },
1482
- isLoading: { type: Boolean },
1483
- icon: {},
1484
- icon2: {},
1485
- addCleaner: { type: Boolean },
1486
- title: {},
1487
- captionType: { default: "" }
1488
- },
1489
- emits: ["update:modelValue"],
1490
- setup(e, { emit: t }) {
1491
- const n = e, a = t, o = O({
1492
- get() {
1493
- return n.modelValue;
1494
- },
1495
- set(i) {
1496
- a("update:modelValue", i);
1497
- }
1498
- }), r = O(() => n.addCleaner && !n.title || n.captionType !== "" ? "" : n.title), s = (i) => {
1499
- n.modelValue && i.stopPropagation(), a("update:modelValue", "");
1500
- };
1501
- return (i, l) => {
1502
- const u = z("top-focus");
1503
- return f(), m("label", {
1504
- class: S({
1505
- "top-input": !0,
1506
- ["top-size_" + i.size]: !0,
1507
- "top-disabled": i.disabled,
1508
- ["top-input-" + i.modificator]: !!i.modificator,
1509
- "top-input-withCleaner": i.addCleaner && o.value && o.value !== "0000-00-00",
1510
- "top-formsCaptionWrapper": i.captionType !== "",
1511
- "top-formsCaptionWrapper-always": i.captionType === "top"
1512
- }),
1513
- "data-top-icon": i.icon,
1514
- "data-top-icon2": i.icon2
1515
- }, [
1516
- i.isLoading ? (f(), W(Li, { key: 0 })) : T("", !0),
1517
- V(j("input", ie({
1518
- type: "text",
1519
- class: {
1520
- "top-input_input": !0,
1521
- ["top-input_input-" + i.modificator]: !!i.modificator,
1522
- "top-forms-focusable": !i.disabled,
1523
- "top-error": i.isError,
1524
- [`top-style_${i.styling}`]: !!i.styling
1525
- },
1526
- autocomplete: "off_always",
1527
- name: i.name,
1528
- "onUpdate:modelValue": l[0] || (l[0] = (c) => o.value = c),
1529
- title: i.title,
1530
- placeholder: r.value,
1531
- disabled: i.disabled,
1532
- readonly: i.readonly,
1533
- onKeydown: l[1] || (l[1] = Qt((c) => i.addCleaner && s(c), ["esc"])),
1534
- "data-1p-ignore": i.$attrs.type !== "email" && i.$attrs.type !== "password"
1535
- }, i.$attrs), null, 16, zi), [
1536
- [
1537
- u,
1538
- i.isError,
1539
- void 0,
1540
- { onupdate: !0 }
1541
- ],
1542
- [vt, o.value]
1543
- ]),
1544
- i.addCleaner && o.value && o.value !== "0000-00-00" ? (f(), m("span", {
1545
- key: 1,
1546
- class: "top-input_cleaner",
1547
- "data-top-icon": "",
1548
- onClick: Jt(s, ["prevent"])
1549
- })) : T("", !0),
1550
- i.captionType !== "" ? (f(), m("span", Vi, P(i.title), 1)) : T("", !0),
1551
- M(i.$slots, "default")
1552
- ], 10, Ni);
1553
- };
1554
- }
1555
- }), ki = ["value"], Fi = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
1556
- let ft = (e) => {
1557
- };
1558
- const ws = /* @__PURE__ */ _({
1559
- __name: "inputDate",
1560
- props: {
1561
- modelValue: {},
1562
- name: {},
1563
- disabled: { type: Boolean },
1564
- readonly: { type: Boolean },
1565
- modificator: {},
1566
- size: {},
1567
- styling: {},
1568
- isError: { type: Boolean },
1569
- isLoading: { type: Boolean },
1570
- icon: {},
1571
- icon2: { default: "" },
1572
- addCleaner: { type: Boolean },
1573
- title: {},
1574
- captionType: {}
1575
- },
1576
- emits: ["update:modelValue"],
1577
- setup(e, { emit: t }) {
1578
- const n = pe(), a = e, o = t;
1579
- Zt(() => {
1580
- s && s.datepicker("destroy");
1581
- });
1582
- const r = Pe();
1583
- let s;
1584
- const i = O({
1585
- get() {
1586
- return F(a.modelValue, 2, void 0, "0000-00-00");
1587
- },
1588
- set(d) {
1589
- d = ct(d, "0000-00-00"), o("update:modelValue", d);
1590
- }
1591
- });
1592
- let l = (d) => {
1593
- ft(d);
1594
- }, u = (d) => {
1595
- const p = ct(d.target.value), b = F(p);
1596
- if (!b || b === n.Common.Not_date || d.target.value !== b) {
1597
- d.target.value = i.value;
1598
- return;
1599
- }
1600
- i.value = d.target.value;
1601
- };
1602
- async function c(d) {
1603
- const p = await import("./datepicker-J8Zg9mKt.es.js");
1604
- ft = p.oninput, s = p.connectDatepicker(d.target, {
1605
- onSelect: () => u(d)
1606
- }), s && s.datepicker("show");
1607
- }
1608
- return (d, p) => ge(Fi) ? (f(), W(pt, ie({ key: 0 }, d.$props, {
1609
- modelValue: i.value,
1610
- readonly: "",
1611
- onClick: p[1] || (p[1] = (b) => r.value.showPicker())
1612
- }), {
1613
- default: te(() => [
1614
- j("input", {
1615
- ref_key: "el",
1616
- ref: r,
1617
- type: "date",
1618
- class: "top-input_input-date",
1619
- value: d.modelValue,
1620
- onChange: p[0] || (p[0] = (b) => i.value = b.target.value),
1621
- tabindex: "-1"
1622
- }, null, 40, ki)
1623
- ]),
1624
- _: 1
1625
- }, 16, ["modelValue"])) : (f(), W(pt, ie({ key: 1 }, d.$props, {
1626
- modelValue: i.value,
1627
- "onUpdate:modelValue": p[2] || (p[2] = (b) => b === "" ? i.value = "" : ""),
1628
- onInput: ge(l),
1629
- onFocusOnce: c,
1630
- onChange: ge(u),
1631
- modificator: "datepicker"
1632
- }), null, 16, ["modelValue", "onInput", "onChange"]));
1633
- }
1634
- }), Ri = { class: "top-inputRange" }, $s = /* @__PURE__ */ _({
1635
- __name: "inputRange",
1636
- setup(e) {
1637
- return (t, n) => (f(), m("div", Ri, [
1638
- M(t.$slots, "from"),
1639
- n[0] || (n[0] = j("span", { class: "top-inputRange_dash" }, " — ", -1)),
1640
- M(t.$slots, "to")
1641
- ]));
1642
- }
1643
- }), Ui = ["name", "value", "disabled"], Ts = /* @__PURE__ */ _({
1644
- __name: "radio",
1645
- props: {
1646
- modelValue: {},
1647
- value: {},
1648
- name: {},
1649
- description: {},
1650
- disabled: { type: Boolean },
1651
- isError: { type: Boolean }
1652
- },
1653
- emits: ["update:modelValue"],
1654
- setup(e, { emit: t }) {
1655
- const n = e, a = t, o = O({
1656
- get() {
1657
- return n.modelValue;
1658
- },
1659
- set(r) {
1660
- a("update:modelValue", r);
1661
- }
1662
- });
1663
- return (r, s) => {
1664
- const i = z("top-focus");
1665
- return f(), m("label", {
1666
- class: S({
1667
- "top-forms-optionWrapper": !0,
1668
- "top-radio": !0,
1669
- ["top-radio_" + r.name]: r.name !== "",
1670
- "top-disabled": r.disabled,
1671
- "top-error": r.isError && !r.disabled
1672
- })
1673
- }, [
1674
- V(j("input", {
1675
- type: "radio",
1676
- class: S({
1677
- "top-forms-focusable": !r.disabled,
1678
- "top-forms-option": !0,
1679
- "top-radio_input": !0,
1680
- "top-error": r.isError && !r.disabled
1681
- }),
1682
- "onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
1683
- name: r.name,
1684
- value: r.value,
1685
- disabled: r.disabled
1686
- }, null, 10, Ui), [
1687
- [
1688
- i,
1689
- r.isError,
1690
- void 0,
1691
- { onupdate: !0 }
1692
- ],
1693
- [xt, o.value]
1694
- ]),
1695
- r.$slots.default ? (f(), W(Ne, {
1696
- key: 0,
1697
- description: r.description,
1698
- disabled: r.disabled
1699
- }, {
1700
- default: te(() => [
1701
- M(r.$slots, "default")
1702
- ]),
1703
- _: 3
1704
- }, 8, ["description", "disabled"])) : T("", !0)
1705
- ], 2);
1706
- };
1707
- }
1708
- }), Hi = ["name", "value", "disabled"], Ss = /* @__PURE__ */ _({
1709
- __name: "switcher",
1710
- props: {
1711
- modelValue: { type: [Boolean, Array, Set] },
1712
- name: {},
1713
- value: {},
1714
- description: {},
1715
- disabled: { type: Boolean },
1716
- isError: { type: Boolean }
1717
- },
1718
- emits: ["update:modelValue"],
1719
- setup(e, { emit: t }) {
1720
- const n = e, a = t, o = O({
1721
- get() {
1722
- return n.modelValue;
1723
- },
1724
- set(r) {
1725
- a("update:modelValue", r);
1726
- }
1727
- });
1728
- return (r, s) => {
1729
- const i = z("top-focus");
1730
- return f(), m("label", {
1731
- class: S({
1732
- "top-forms-optionWrapper": !0,
1733
- "top-checkboxSwitcher": !0,
1734
- "top-disabled": r.disabled,
1735
- "top-error": r.isError && !r.disabled
1736
- })
1737
- }, [
1738
- V(j("input", {
1739
- type: "checkbox",
1740
- class: S({
1741
- "top-forms-focusable": !r.disabled,
1742
- "top-forms-option": !0,
1743
- "top-checkboxSwitcher_input": !0,
1744
- "top-error": r.isError && !r.disabled
1745
- }),
1746
- "onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
1747
- name: r.name,
1748
- value: r.value,
1749
- disabled: r.disabled
1750
- }, null, 10, Hi), [
1751
- [
1752
- i,
1753
- r.isError,
1754
- void 0,
1755
- { onupdate: !0 }
1756
- ],
1757
- [yt, o.value]
1758
- ]),
1759
- r.$slots.default ? (f(), W(Ne, {
1760
- key: 0,
1761
- description: r.description,
1762
- disabled: r.disabled
1763
- }, {
1764
- default: te(() => [
1765
- M(r.$slots, "default")
1766
- ]),
1767
- _: 3
1768
- }, 8, ["description", "disabled"])) : T("", !0)
1769
- ], 2);
1770
- };
1771
- }
1772
- }), Gi = ["name", "placeholder", "disabled", "readonly", "rows", "maxlength"], Ki = {
1773
- key: 0,
1774
- class: "top-textarea_pseudoContent"
1775
- }, _s = /* @__PURE__ */ _({
1776
- inheritAttrs: !1,
1777
- __name: "textarea",
1778
- props: {
1779
- modelValue: {},
1780
- name: {},
1781
- placeholder: {},
1782
- styling: { default: "" },
1783
- rows: { default: 5 },
1784
- minHeight: { default: 120 },
1785
- expandable: { type: Boolean },
1786
- disabled: { type: Boolean },
1787
- readonly: { type: Boolean },
1788
- isError: { type: Boolean },
1789
- hint: {},
1790
- maxLength: {}
1791
- },
1792
- emits: ["update:modelValue"],
1793
- setup(e, { emit: t }) {
1794
- ht((r) => ({
1795
- "049aac9f": r.minHeight + "px"
1796
- }));
1797
- const n = e, a = t, o = O({
1798
- get() {
1799
- return n.modelValue;
1800
- },
1801
- set(r) {
1802
- a("update:modelValue", r);
1803
- }
1804
- });
1805
- return (r, s) => {
1806
- const i = z("top-focus"), l = z("top-tooltip");
1807
- return f(), m("label", {
1808
- class: S({
1809
- "top-textarea": !0,
1810
- ["top-textarea-" + r.name]: r.name,
1811
- "top-disabled": r.disabled
1812
- })
1813
- }, [
1814
- V(j("textarea", ie({
1815
- type: "text",
1816
- class: {
1817
- "top-forms-focusable": !r.disabled,
1818
- "top-textarea_textarea": !0,
1819
- "top-textarea_textarea-expandable": r.expandable,
1820
- "top-error": r.isError,
1821
- [`top-style_${r.styling}`]: !!r.styling
1822
- },
1823
- autocomplete: "off_always",
1824
- name: r.name,
1825
- placeholder: r.placeholder,
1826
- disabled: r.disabled,
1827
- readonly: r.readonly,
1828
- rows: r.expandable ? void 0 : r.rows,
1829
- maxlength: r.maxLength
1830
- }, r.$attrs, {
1831
- "onUpdate:modelValue": s[0] || (s[0] = (u) => o.value = u)
1832
- }), null, 16, Gi), [
1833
- [
1834
- i,
1835
- r.isError,
1836
- void 0,
1837
- { onupdate: !0 }
1838
- ],
1839
- [vt, o.value]
1840
- ]),
1841
- r.expandable ? (f(), m("span", Ki, P(o.value + " "), 1)) : T("", !0),
1842
- r.hint ? V((f(), W(Ci, {
1843
- key: 1,
1844
- class: "top-textarea_hint",
1845
- hint: r.hint
1846
- }, null, 8, ["hint"])), [
1847
- [l]
1848
- ]) : T("", !0),
1849
- r.maxLength ? (f(), m("div", {
1850
- key: 2,
1851
- class: S(["top-textarea_counter", {
1852
- "top-textarea_counter-max": o.value.length >= r.maxLength
1853
- }])
1854
- }, P(o.value.length) + "/" + P(r.maxLength), 3)) : T("", !0)
1855
- ], 2);
1856
- };
1857
- }
1858
- }), Xi = ["data-value", "data-top-icon", "data-top-icon2"], qi = ["name", "disabled"], Yi = ["label", "disabled"], Qi = ["value", "selected", "disabled"], Ji = ["value", "selected", "disabled"], Zi = {
1859
- key: 1,
1860
- class: "top-formsCaption"
1861
- }, Os = /* @__PURE__ */ _({
1862
- __name: "select",
1863
- props: /* @__PURE__ */ we({
1864
- modelValue: { type: [String, Number, Boolean] },
1865
- options: {},
1866
- name: {},
1867
- disabled: { type: Boolean },
1868
- icon: {},
1869
- size: { default: "s" },
1870
- styling: { default: "" },
1871
- addChanger: { type: Boolean },
1872
- title: {},
1873
- isError: { type: Boolean }
1874
- }, {
1875
- modelValue: { type: [String, Number, Boolean], required: !0 },
1876
- modelModifiers: {}
1877
- }),
1878
- emits: /* @__PURE__ */ we(["update:modelValue"], ["update:modelValue"]),
1879
- setup(e) {
1880
- const t = e, n = bt(e, "modelValue"), a = O(() => {
1881
- const l = /* @__PURE__ */ new Map();
1882
- return t.options.forEach((u, c) => {
1883
- if (typeof u == "string" && (u = r(c, u)), u.children) {
1884
- const d = /* @__PURE__ */ new Map();
1885
- u.children.forEach((p, b) => {
1886
- typeof p == "string" && (p = r(b, p)), d.set(p.value, p);
1887
- }), u = { ...u }, u.children = d, l.set(u.value, u);
1888
- } else
1889
- l.set(u.value, u);
1890
- }), l;
1891
- }), o = O(() => {
1892
- const l = /* @__PURE__ */ new Map();
1893
- return a.value.forEach((u) => {
1894
- if (!u.disabled) {
1895
- if (u.children) {
1896
- u.children.forEach((c) => {
1897
- c.disabled || l.set(c.value, c);
1898
- });
1899
- return;
1900
- }
1901
- l.set(u.value, u);
1902
- }
1903
- }), l;
1904
- }), r = (l, u) => ({
1905
- value: l,
1906
- title: u
1907
- });
1908
- gt([
1909
- () => t.modelValue,
1910
- o
1911
- ], () => {
1912
- (n.value === null || n.value === void 0) && o.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = o.value.keys().next().value);
1913
- }, { immediate: !0 });
1914
- const s = O(() => {
1915
- var l;
1916
- return (l = o.value.get(n.value)) == null ? void 0 : l.icon;
1917
- }), i = () => {
1918
- const l = [...o.value.keys()], c = (l.indexOf(n.value) + 1) % l.length;
1919
- n.value = l[c];
1920
- };
1921
- return (l, u) => {
1922
- const c = z("top-focus");
1923
- return f(), m("label", {
1924
- class: S({
1925
- "top-select": !0,
1926
- ["top-select-" + l.name]: l.name,
1927
- ["top-size_" + l.size]: !0,
1928
- "top-formsCaptionWrapper": !!l.title,
1929
- "top-select-error": l.isError,
1930
- "top-disabled": l.disabled
1931
- }),
1932
- "data-value": n.value,
1933
- "data-top-icon": l.icon,
1934
- "data-top-icon2": s.value
1935
- }, [
1936
- V((f(), m("select", {
1937
- class: S({
1938
- "top-forms-focusable": !l.disabled,
1939
- "top-select_select": !0,
1940
- "top-as-selector": !0,
1941
- "top-error": l.isError,
1942
- [`top-style_${l.styling}`]: !!l.styling
1943
- }),
1944
- name: l.name,
1945
- disabled: l.disabled,
1946
- "onUpdate:modelValue": u[0] || (u[0] = (d) => n.value = d)
1947
- }, [
1948
- (f(!0), m(ae, null, $e(a.value, ([d, p]) => (f(), m(ae, null, [
1949
- p.children ? (f(), m("optgroup", {
1950
- key: "group_" + d,
1951
- label: p.title,
1952
- disabled: p.disabled
1953
- }, [
1954
- (f(!0), m(ae, null, $e(p.children, ([b, w]) => (f(), m("option", {
1955
- key: String(b),
1956
- value: b,
1957
- selected: b === n.value,
1958
- disabled: w.disabled
1959
- }, P(w.title), 9, Qi))), 128))
1960
- ], 8, Yi)) : (f(), m("option", {
1961
- key: d ? String(d) : void 0,
1962
- value: d,
1963
- selected: d === n.value,
1964
- disabled: p.disabled
1965
- }, P(p.title), 9, Ji))
1966
- ], 64))), 256))
1967
- ], 10, qi)), [
1968
- [
1969
- c,
1970
- l.isError,
1971
- void 0,
1972
- { onupdate: !0 }
1973
- ],
1974
- [en, n.value]
1975
- ]),
1976
- l.addChanger && o.value.size && !l.disabled ? (f(), m("span", {
1977
- key: 0,
1978
- class: "top-changer",
1979
- onClick: i
1980
- })) : T("", !0),
1981
- l.title ? (f(), m("span", Zi, P(l.title), 1)) : T("", !0)
1982
- ], 10, Xi);
1983
- };
1984
- }
1985
- }), Es = /* @__PURE__ */ _({
1986
- __name: "preloader",
1987
- props: {
1988
- type: {}
1989
- },
1990
- setup(e) {
1991
- return (t, n) => (f(), m("div", {
1992
- class: S({
1993
- ["top-preloader-" + t.type]: !0
1994
- })
1995
- }, [
1996
- t.type === "circles" ? (f(), m(ae, { key: 0 }, $e([1, 2, 3], (a) => j("i")), 64)) : T("", !0)
1997
- ], 2));
1998
- }
1999
- });
2000
- export {
2001
- as as A,
2002
- on as B,
2003
- g as C,
2004
- os as D,
2005
- yi as E,
2006
- is as F,
2007
- Ft as G,
2008
- ss as H,
2009
- ls as I,
2010
- cs as J,
2011
- ps as K,
2012
- fs as L,
2013
- gs as M,
2014
- Gt as N,
2015
- ms as O,
2016
- ct as P,
2017
- ys as Q,
2018
- Li as T,
2019
- pt as _,
2020
- ds as a,
2021
- es as b,
2022
- bs as c,
2023
- Tt as d,
2024
- F as e,
2025
- Ci as f,
2026
- Di as g,
2027
- hs as h,
2028
- us as i,
2029
- vs as j,
2030
- Ne as k,
2031
- ws as l,
2032
- $s as m,
2033
- Ts as n,
2034
- Os as o,
2035
- Ss as p,
2036
- _s as q,
2037
- Es as r,
2038
- tn as s,
2039
- nn as t,
2040
- pe as u,
2041
- rn as v,
2042
- an as w,
2043
- ts as x,
2044
- ns as y,
2045
- rs as z
2046
- };
2047
- //# sourceMappingURL=forms-COXAfg9G.es.js.map