@topvisor/ui 1.5.6-topSelectorReactive.0 → 1.5.6-topSelectorReactive.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/.chunks/api-DZQlrC2R.amd.js +2 -0
  2. package/.chunks/api-DZQlrC2R.amd.js.map +1 -0
  3. package/.chunks/{api-D5wIZnrK.esm.js → api-DZQlrC2R.esm.js} +21 -18
  4. package/.chunks/api-DZQlrC2R.esm.js.map +1 -0
  5. package/.chunks/{app-CQnQGya1.amd.js → app-DinkodXi.amd.js} +2 -2
  6. package/.chunks/{app-CQnQGya1.amd.js.map → app-DinkodXi.amd.js.map} +1 -1
  7. package/.chunks/{app-CQnQGya1.esm.js → app-DinkodXi.esm.js} +11 -11
  8. package/.chunks/app-DinkodXi.esm.js.map +1 -0
  9. package/.chunks/{datepicker-CYAhR3K9.amd.js → datepicker-bozIEbDA.amd.js} +2 -2
  10. package/.chunks/{datepicker-CYAhR3K9.amd.js.map → datepicker-bozIEbDA.amd.js.map} +1 -1
  11. package/.chunks/{datepicker-CYAhR3K9.esm.js → datepicker-bozIEbDA.esm.js} +2 -2
  12. package/.chunks/{datepicker-CYAhR3K9.esm.js.map → datepicker-bozIEbDA.esm.js.map} +1 -1
  13. package/.chunks/{dialog-B7DkbSQZ.amd.js → dialog-BCDVMWG1.amd.js} +2 -2
  14. package/.chunks/{dialog-B7DkbSQZ.amd.js.map → dialog-BCDVMWG1.amd.js.map} +1 -1
  15. package/.chunks/{dialog-B7DkbSQZ.esm.js → dialog-BCDVMWG1.esm.js} +3 -3
  16. package/.chunks/{dialog-B7DkbSQZ.esm.js.map → dialog-BCDVMWG1.esm.js.map} +1 -1
  17. package/.chunks/{dialog_regionSelectorRegions-DnDFRV42.amd.js → dialog_regionSelectorRegions-0M1fMu1a.amd.js} +2 -2
  18. package/.chunks/dialog_regionSelectorRegions-0M1fMu1a.amd.js.map +1 -0
  19. package/.chunks/{dialog_regionSelectorRegions-DnDFRV42.esm.js → dialog_regionSelectorRegions-0M1fMu1a.esm.js} +6 -6
  20. package/.chunks/dialog_regionSelectorRegions-0M1fMu1a.esm.js.map +1 -0
  21. package/.chunks/forms-CY5MOh7a.amd.js +2 -0
  22. package/.chunks/forms-CY5MOh7a.amd.js.map +1 -0
  23. package/.chunks/{forms-BiKUURH4.esm.js → forms-CY5MOh7a.esm.js} +16 -14
  24. package/.chunks/forms-CY5MOh7a.esm.js.map +1 -0
  25. package/.chunks/formsExt-C9r4Gz9y.amd.js +2 -0
  26. package/.chunks/formsExt-C9r4Gz9y.amd.js.map +1 -0
  27. package/.chunks/{formsExt-kZL0--bf.esm.js → formsExt-C9r4Gz9y.esm.js} +162 -162
  28. package/.chunks/formsExt-C9r4Gz9y.esm.js.map +1 -0
  29. package/.chunks/{mocker-C3O-c0Np.amd.js → mocker-Bl1SzAJY.amd.js} +2 -2
  30. package/.chunks/mocker-Bl1SzAJY.amd.js.map +1 -0
  31. package/.chunks/{mocker-C3O-c0Np.esm.js → mocker-Bl1SzAJY.esm.js} +6 -2
  32. package/.chunks/mocker-Bl1SzAJY.esm.js.map +1 -0
  33. package/.chunks/notice-bro62vCA.amd.js +4 -0
  34. package/.chunks/notice-bro62vCA.amd.js.map +1 -0
  35. package/.chunks/{notice-LFdPfo-5.esm.js → notice-bro62vCA.esm.js} +3 -3
  36. package/.chunks/notice-bro62vCA.esm.js.map +1 -0
  37. package/.chunks/popup-3cwJ8Hev.amd.js +2 -0
  38. package/.chunks/popup-3cwJ8Hev.amd.js.map +1 -0
  39. package/.chunks/{popup-KKfSSrM6.esm.js → popup-3cwJ8Hev.esm.js} +5 -3
  40. package/.chunks/popup-3cwJ8Hev.esm.js.map +1 -0
  41. package/.chunks/popup-CzhBQhVH.amd.js +2 -0
  42. package/.chunks/popup-CzhBQhVH.amd.js.map +1 -0
  43. package/.chunks/{popup-DB5g_8kB.esm.js → popup-CzhBQhVH.esm.js} +5 -5
  44. package/.chunks/popup-CzhBQhVH.esm.js.map +1 -0
  45. package/.chunks/punycode.es6-CMafsPEb.amd.js +2 -0
  46. package/.chunks/punycode.es6-CMafsPEb.amd.js.map +1 -0
  47. package/.chunks/punycode.es6-CMafsPEb.esm.js +105 -0
  48. package/.chunks/{punycode.es6-BZRFIj88.esm.js.map → punycode.es6-CMafsPEb.esm.js.map} +1 -1
  49. package/.chunks/store-DjQAOnrn.esm.js.map +1 -1
  50. package/.chunks/{utils-D4nhUVHm.amd.js → utils-Be-ScFyj.amd.js} +2 -2
  51. package/.chunks/{utils-D4nhUVHm.amd.js.map → utils-Be-ScFyj.amd.js.map} +1 -1
  52. package/.chunks/{utils-D4nhUVHm.esm.js → utils-Be-ScFyj.esm.js} +3 -3
  53. package/.chunks/{utils-D4nhUVHm.esm.js.map → utils-Be-ScFyj.esm.js.map} +1 -1
  54. package/.chunks/{utils-DKbnf1Th.amd.js → utils-ds_g-L_r.amd.js} +2 -2
  55. package/.chunks/{utils-DKbnf1Th.amd.js.map → utils-ds_g-L_r.amd.js.map} +1 -1
  56. package/.chunks/{utils-DKbnf1Th.esm.js → utils-ds_g-L_r.esm.js} +4 -4
  57. package/.chunks/{utils-DKbnf1Th.esm.js.map → utils-ds_g-L_r.esm.js.map} +1 -1
  58. package/.chunks/{worker-BufdAd-a.amd.js → worker-Bv_yPPMv.amd.js} +2 -2
  59. package/.chunks/{worker-BufdAd-a.amd.js.map → worker-Bv_yPPMv.amd.js.map} +1 -1
  60. package/.chunks/{worker-BufdAd-a.esm.js → worker-Bv_yPPMv.esm.js} +3 -3
  61. package/.chunks/{worker-BufdAd-a.esm.js.map → worker-Bv_yPPMv.esm.js.map} +1 -1
  62. package/api/additional.js.map +1 -1
  63. package/api/index.amd.js +1 -1
  64. package/api/index.amd.js.map +1 -1
  65. package/api/index.js +1 -1
  66. package/assets/formsExt.css +1 -1
  67. package/assets/project.css +1 -1
  68. package/autoload-css-manifest.amd.json +4 -4
  69. package/autoload-css-manifest.json +4 -4
  70. package/charts/charts.amd.js +1 -1
  71. package/charts/charts.amd.js.map +1 -1
  72. package/charts/charts.js +1 -1
  73. package/charts/charts.js.map +1 -1
  74. package/core/app.amd.js +1 -1
  75. package/core/app.amd.js.map +1 -1
  76. package/core/app.js +3 -3
  77. package/dialog/dialog.amd.js +1 -1
  78. package/dialog/dialog.amd.js.map +1 -1
  79. package/dialog/dialog.js +2 -2
  80. package/forms/forms.amd.js +1 -1
  81. package/forms/forms.amd.js.map +1 -1
  82. package/forms/forms.js +1 -1
  83. package/formsExt/formsExt.amd.js +1 -1
  84. package/formsExt/formsExt.amd.js.map +1 -1
  85. package/formsExt/formsExt.js +1 -1
  86. package/layout/layout.amd.js +1 -1
  87. package/layout/layout.amd.js.map +1 -1
  88. package/layout/layout.js +1 -1
  89. package/package.json +2 -2
  90. package/popup/popup.amd.js +1 -1
  91. package/popup/popup.amd.js.map +1 -1
  92. package/popup/popup.js +1 -1
  93. package/popup/worker.amd.js +1 -1
  94. package/popup/worker.amd.js.map +1 -1
  95. package/popup/worker.js +1 -1
  96. package/project/project.amd.js +1 -1
  97. package/project/project.amd.js.map +1 -1
  98. package/project/project.js +458 -459
  99. package/project/project.js.map +1 -1
  100. package/schedule/schedule.amd.js +1 -1
  101. package/schedule/schedule.amd.js.map +1 -1
  102. package/schedule/schedule.js +8 -6
  103. package/schedule/schedule.js.map +1 -1
  104. package/src/api/api/mocker/index.d.ts +1 -6
  105. package/src/api/api/types/api.d.ts +1 -1
  106. package/src/components/formsExt/selector2/composables/useAPI.d.ts +406 -0
  107. package/src/components/formsExt/selector2/composables/useMenu.d.ts +412 -0
  108. package/src/components/formsExt/selector2/types.d.ts +17 -11
  109. package/src/components/popup/popup/types.d.ts +6 -1
  110. package/src/components/project/project.d.ts +1 -1
  111. package/src/components/project/projectSelector/cache.d.ts +14 -12
  112. package/src/components/project/projectSelector/submenu/types.d.ts +7 -14
  113. package/src/components/project/projectSelector/types.d.ts +22 -9
  114. package/src/components/project/projectSelector/utils.d.ts +8 -4
  115. package/src/core/core/core.d.ts +2 -3
  116. package/src/core/core/options.d.ts +26 -19
  117. package/src/core/core/state.d.ts +3 -4
  118. package/src/core/plugins/core.d.ts +1 -1
  119. package/tabsView/tabsView.amd.js +1 -1
  120. package/tabsView/tabsView.amd.js.map +1 -1
  121. package/tabsView/tabsView.js +2 -2
  122. package/tabsView/tabsView.js.map +1 -1
  123. package/utils/check.js.map +1 -1
  124. package/utils/clipboard.amd.js +1 -1
  125. package/utils/clipboard.amd.js.map +1 -1
  126. package/utils/clipboard.js +1 -1
  127. package/utils/clipboard.js.map +1 -1
  128. package/utils/date.amd.js +1 -1
  129. package/utils/date.amd.js.map +1 -1
  130. package/utils/date.js +1 -1
  131. package/utils/device.amd.js +1 -1
  132. package/utils/device.amd.js.map +1 -1
  133. package/utils/device.js +1 -1
  134. package/utils/dom.amd.js.map +1 -1
  135. package/utils/dom.js.map +1 -1
  136. package/utils/image.amd.js +1 -1
  137. package/utils/image.amd.js.map +1 -1
  138. package/utils/image.js +1 -1
  139. package/utils/lodash.amd.js +1 -1
  140. package/utils/lodash.amd.js.map +1 -1
  141. package/utils/lodash.js +1 -1
  142. package/utils/price.amd.js +1 -1
  143. package/utils/price.amd.js.map +1 -1
  144. package/utils/price.js +1 -1
  145. package/utils/price.js.map +1 -1
  146. package/utils/route.js.map +1 -1
  147. package/utils/scroll.js.map +1 -1
  148. package/utils/searchers.amd.js +1 -1
  149. package/utils/searchers.amd.js.map +1 -1
  150. package/utils/searchers.js +1 -1
  151. package/utils/searchers.js.map +1 -1
  152. package/utils/string.amd.js +1 -1
  153. package/utils/string.amd.js.map +1 -1
  154. package/utils/string.js +2 -2
  155. package/utils/string.js.map +1 -1
  156. package/utils/url.amd.js +1 -1
  157. package/utils/url.amd.js.map +1 -1
  158. package/utils/url.js +1 -1
  159. package/utils/url.js.map +1 -1
  160. package/.chunks/api-D5wIZnrK.amd.js +0 -2
  161. package/.chunks/api-D5wIZnrK.amd.js.map +0 -1
  162. package/.chunks/api-D5wIZnrK.esm.js.map +0 -1
  163. package/.chunks/app-CQnQGya1.esm.js.map +0 -1
  164. package/.chunks/dialog_regionSelectorRegions-DnDFRV42.amd.js.map +0 -1
  165. package/.chunks/dialog_regionSelectorRegions-DnDFRV42.esm.js.map +0 -1
  166. package/.chunks/forms-BiKUURH4.amd.js +0 -2
  167. package/.chunks/forms-BiKUURH4.amd.js.map +0 -1
  168. package/.chunks/forms-BiKUURH4.esm.js.map +0 -1
  169. package/.chunks/formsExt-kZL0--bf.amd.js +0 -2
  170. package/.chunks/formsExt-kZL0--bf.amd.js.map +0 -1
  171. package/.chunks/formsExt-kZL0--bf.esm.js.map +0 -1
  172. package/.chunks/mocker-C3O-c0Np.amd.js.map +0 -1
  173. package/.chunks/mocker-C3O-c0Np.esm.js.map +0 -1
  174. package/.chunks/notice-LFdPfo-5.amd.js +0 -4
  175. package/.chunks/notice-LFdPfo-5.amd.js.map +0 -1
  176. package/.chunks/notice-LFdPfo-5.esm.js.map +0 -1
  177. package/.chunks/popup-DB5g_8kB.amd.js +0 -2
  178. package/.chunks/popup-DB5g_8kB.amd.js.map +0 -1
  179. package/.chunks/popup-DB5g_8kB.esm.js.map +0 -1
  180. package/.chunks/popup-KKfSSrM6.amd.js +0 -2
  181. package/.chunks/popup-KKfSSrM6.amd.js.map +0 -1
  182. package/.chunks/popup-KKfSSrM6.esm.js.map +0 -1
  183. package/.chunks/punycode.es6-BZRFIj88.amd.js +0 -2
  184. package/.chunks/punycode.es6-BZRFIj88.amd.js.map +0 -1
  185. package/.chunks/punycode.es6-BZRFIj88.esm.js +0 -105
@@ -5,17 +5,17 @@
5
5
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
6
6
  /* end import css */
7
7
 
8
- import "./api-D5wIZnrK.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-BiKUURH4.esm.js";
8
+ import "./api-DZQlrC2R.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-CY5MOh7a.esm.js";
10
10
  import { t as u } from "./field-DEusYVqS.esm.js";
11
11
  import { invertKeyboardLayout as d } from "../utils/keyboard.js";
12
- import { a as f, o as p, s as m } from "./popup-KKfSSrM6.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, onUnmounted as k, onUpdated as ee, openBlock as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as F, resolveDynamicComponent as te, toDisplayString as I, toRef as L, triggerRef 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";
12
+ import { a as f, o as p, s as m } from "./popup-3cwJ8Hev.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, onUnmounted as k, onUpdated as A, openBlock as j, ref as M, renderList as N, renderSlot as P, resolveComponent as F, resolveDirective as I, resolveDynamicComponent as ee, toDisplayString as L, triggerRef 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
14
  //#region src/components/formsExt/menu/menu.vue?vue&type=script&setup=true&lang.ts
15
- var ne = {
15
+ var te = {
16
16
  key: 0,
17
17
  class: "top-menu_selectAll"
18
- }, re = /* @__PURE__ */ w({
18
+ }, ne = /* @__PURE__ */ w({
19
19
  __name: "menu",
20
20
  props: /*@__PURE__*/ T({
21
21
  modelValue: {},
@@ -30,7 +30,7 @@ var ne = {
30
30
  }),
31
31
  emits: ["update:modelValue"],
32
32
  setup(e) {
33
- let r = e, i = B(e, "modelValue"), a = j();
33
+ let r = e, i = B(e, "modelValue"), a = M();
34
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
35
  let o = (e) => Array.isArray(i.value) ? i.value.includes(e.value) : e.value === i.value, c = (e, t = !1) => {
36
36
  if (Array.isArray(i.value)) {
@@ -66,7 +66,7 @@ var ne = {
66
66
  i.value = r.items.map((e) => e.href ?? e.value);
67
67
  }
68
68
  };
69
- return O(() => u(!1)), ee(() => u(!0)), (t, n) => (A(), y("div", {
69
+ return O(() => u(!1)), A(() => u(!0)), (t, n) => (j(), y("div", {
70
70
  ref_key: "el",
71
71
  ref: a,
72
72
  class: D({
@@ -74,16 +74,16 @@ var ne = {
74
74
  ["top-style_" + e.styling]: !0
75
75
  }),
76
76
  onWheel: l
77
- }, [(A(!0), y(h, null, M(e.items, (e) => (A(), _(s, E({ ref_for: !0 }, e, {
77
+ }, [(j(!0), y(h, null, N(e.items, (e) => (j(), _(s, E({ ref_for: !0 }, e, {
78
78
  class: "top-menu_item",
79
79
  color: "theme",
80
80
  onClick: (t) => c(e, t.ctrlKey || t.metaKey),
81
81
  isActive: o(e)
82
82
  }), x({ _: 2 }, [e.content ? {
83
83
  name: "default",
84
- fn: H(() => [S(I(e.content), 1)]),
84
+ fn: H(() => [S(L(e.content), 1)]),
85
85
  key: "0"
86
- } : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (A(), y("div", ne, [C(s, E(e.selectAllItem, {
86
+ } : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (j(), y("div", te, [C(s, E(e.selectAllItem, {
87
87
  class: "top-menu_item",
88
88
  color: "theme",
89
89
  styling: "",
@@ -91,11 +91,11 @@ var ne = {
91
91
  isActive: i.value.length === e.items.length
92
92
  }), x({ _: 2 }, [e.selectAllItem.content ? {
93
93
  name: "default",
94
- fn: H(() => [S(I(e.selectAllItem.content), 1)]),
94
+ fn: H(() => [S(L(e.selectAllItem.content), 1)]),
95
95
  key: "0"
96
96
  } : void 0]), 1040, ["isActive"])])) : v("", !0)], 34));
97
97
  }
98
- }), ie = { class: "top-selector2_itemMulti top-ellipsis" }, ae = /* @__PURE__ */ w({
98
+ }), re = { class: "top-selector2_itemMulti top-ellipsis" }, ie = /* @__PURE__ */ w({
99
99
  __name: "itemMulti",
100
100
  props: {
101
101
  id: {},
@@ -103,7 +103,7 @@ var ne = {
103
103
  },
104
104
  emits: ["delete"],
105
105
  setup(e) {
106
- return (t, n) => (A(), y("div", ie, [S(I(e.name) + " ", 1), b("span", {
106
+ return (t, n) => (j(), y("div", re, [S(L(e.name) + " ", 1), b("span", {
107
107
  class: "top-selector2_itemMultiDelete",
108
108
  "data-top-icon": "",
109
109
  onClick: n[0] ||= (n) => t.$emit("delete", {
@@ -113,16 +113,16 @@ var ne = {
113
113
  onMousedown: n[1] ||= G(() => {}, ["stop"])
114
114
  }, null, 32)]));
115
115
  }
116
- }), K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), Y = (e) => (J.has(e) || J.set(e, j(0)), J.get(e)), X = (e) => {
116
+ }), K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), Y = (e) => (J.has(e) || J.set(e, M(0)), J.get(e)), X = (e) => {
117
117
  Y(e).value++;
118
- }, oe = (e) => {
118
+ }, Z = (e) => {
119
119
  K.get(e)?.clear(), X(e);
120
- }, Z = (e, t) => {
120
+ }, Q = (e, t) => {
121
121
  K.get(e)?.forEach((e) => t(e));
122
- }, se = (e, t) => {
122
+ }, ae = (e, t) => {
123
123
  q.get(e)?.forEach((e) => t(e));
124
- }, Q = (e, t, n) => {
125
- se(e, (e) => {
124
+ }, $ = (e, t, n) => {
125
+ ae(e, (e) => {
126
126
  let r = !1;
127
127
  if (Array.isArray(e.value)) e.value.filter((e) => e.id === t).forEach((e) => {
128
128
  Object.assign(e, n), r = !0;
@@ -133,33 +133,33 @@ var ne = {
133
133
  }
134
134
  r && R(e);
135
135
  });
136
- }, $ = (e) => {
136
+ }, oe = (e) => {
137
137
  let t = window.mo?.user?.id;
138
138
  return JSON.stringify(e.params) + ":" + e.url + ":" + t;
139
- }, ce = (e, t) => {
139
+ }, se = (e, t) => {
140
140
  let n = K.get(t)?.get(e);
141
141
  if (n) return n.result = n.result.map((e) => ({ ...e })), n;
142
- }, le = (e, t, n) => {
142
+ }, ce = (e, t, n) => {
143
143
  K.has(t) || K.set(t, /* @__PURE__ */ new Map()), K.get(t)?.set(e, n);
144
- }, ue = (e, t) => {
144
+ }, le = (e, t) => {
145
145
  q.has(e) || q.set(e, /* @__PURE__ */ new Set()), q.get(e)?.add(t), k(() => q.get(e)?.delete(t));
146
- }, de = (e, t, n) => {
147
- Z(e, (e) => {
146
+ }, ue = (e, t, n) => {
147
+ Q(e, (e) => {
148
148
  let r = e.result.find((e) => e.id === t);
149
149
  r && Object.assign(r, n);
150
- }), Q(e, t, n), X(e);
151
- }, fe = (e, t) => {
152
- Z(e, (e) => {
150
+ }), $(e, t, n), X(e);
151
+ }, de = (e, t) => {
152
+ Q(e, (e) => {
153
153
  let n = e.result.findIndex((e) => e.id === t);
154
154
  n !== -1 && (e.result.splice(n, 1), e.nextOffset && e.nextOffset--);
155
- }), Q(e, t, { name: "--" }), X(e);
156
- }, pe = (e, t, n, i, a) => {
157
- let o = j([]), s = j(!1), c = j(0), l = "", u;
158
- e && !e.params.limit && (e.params.limit = 100), e && ue(e.path, a);
155
+ }), $(e, t, { name: "--" }), X(e);
156
+ }, fe = (e, t, n, i, a) => {
157
+ let o = M([]), s = M(!1), c = M(0), l = "", u;
158
+ e && !e.params.limit && (e.params.limit = 100), e && le(e.path, a);
159
159
  let d = () => {
160
160
  if (!e) return;
161
161
  e.params.offset = 0;
162
- let t = ce($(e), e.path);
162
+ let t = se(oe(e), e.path);
163
163
  if (!t) {
164
164
  o.value = [], u = void 0;
165
165
  return;
@@ -171,9 +171,9 @@ var ne = {
171
171
  });
172
172
  let f = async () => {
173
173
  if (!e) return;
174
- let t = i ? $(e) : void 0;
174
+ let t = i ? oe(e) : void 0;
175
175
  if (t) {
176
- let n = ce(t, e.path);
176
+ let n = se(t, e.path);
177
177
  if (n) return e.abortByFingerprint(), n;
178
178
  }
179
179
  let n = await e.call();
@@ -187,7 +187,7 @@ var ne = {
187
187
  console.warn(`В result[${r}] нет id или name`);
188
188
  return;
189
189
  }
190
- return t && le(t, e.path, n), n;
190
+ return t && ce(t, e.path, n), n;
191
191
  }, p = async (n) => {
192
192
  if (!e) return;
193
193
  if (n) {
@@ -214,100 +214,101 @@ var ne = {
214
214
  }
215
215
  }
216
216
  };
217
- }, me = 0, he = null, ge = (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, _e = (e, t, n) => {
217
+ }, pe = 0, me = null, he = (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, ge = (e, t, n) => {
218
218
  let r = e.params.filters ?? [];
219
219
  r = r.filter((e) => e.name !== n), t && r.push(u(n, "CONTAINS", [t])), e.changeParams({ filters: r });
220
- }, ve = (t, n, r, i, a, o, s, c, l, u, f, p, m, h) => {
221
- let _ = j(""), v = {
220
+ }, _e = (t, n, r, i) => {
221
+ let a = M(""), o = {
222
222
  id: 0,
223
223
  name: e().Common.All
224
- }, y = () => {
225
- _.value = "";
226
- }, b = () => !(!h.apiRequest || _.value.length >= m), x = g(() => {
224
+ }, s = () => {
225
+ a.value = "";
226
+ }, c = () => !(!i.apiRequest || a.value.length >= n.minLength), l = g(() => {
227
227
  let e = [];
228
- return !a && o.value && (typeof o.value == "string" && (v.name = o.value), e.push(v)), r.value?.forEach((t) => e.push(t)), e;
229
- }), S = j([]), C = () => {
230
- S.value = w();
231
- }, w = () => {
232
- let e = _.value.toLowerCase(), n = d(e), r = [], o, p = [], m = () => {
233
- p.at(-1)?.listItemProps?.type === "delimiter" && p.pop(), p.length &&= (o && r.push(o), r.push(...p), 0);
234
- }, g = (t) => {
235
- let r = f.value?.includes("id"), i = t.name.toLowerCase(), a = f.value?.filter((e) => e !== "id").map((e) => typeof t[e] == "string" || typeof t[e] == "number" ? t[e] : "").join("☼").toLowerCase();
236
- (r && t.id === Number(e) || a?.includes(e) || a?.includes(n)) && (i === e || i === n ? p.unshift(t) : p.push(t));
228
+ return !n.multiselect && n.useAllItem && (typeof n.useAllItem == "string" && (o.name = n.useAllItem), e.push(o)), n.items?.forEach((t) => e.push(t)), e;
229
+ }), u = M([]), f = () => {
230
+ u.value = p();
231
+ }, p = () => {
232
+ let e = a.value.toLowerCase(), r = d(e), o = [], s, c = [], u = () => {
233
+ c.at(-1)?.listItemProps?.type === "delimiter" && c.pop(), c.length &&= (s && o.push(s), o.push(...c), 0);
234
+ }, f = (t) => {
235
+ let i = n.searchFields?.includes("id"), a = t.name.toLowerCase(), o = n.searchFields?.filter((e) => e !== "id").map((e) => typeof t[e] == "string" || typeof t[e] == "number" ? t[e] : "").join("☼").toLowerCase();
236
+ (i && t.id === Number(e) || o?.includes(e) || o?.includes(r)) && (a === e || a === r ? c.unshift(t) : c.push(t));
237
237
  };
238
- for (let e of x.value) switch (e.listItemProps?.type) {
238
+ for (let e of l.value) switch (e.listItemProps?.type) {
239
239
  case "title":
240
- m(), o = e;
240
+ u(), s = e;
241
241
  break;
242
242
  case "delimiter":
243
- if (p.length) {
244
- let t = p.length;
245
- p.at(-1)?.listItemProps?.type === "delimiter" && t--, p[t] = e;
243
+ if (c.length) {
244
+ let t = c.length;
245
+ c.at(-1)?.listItemProps?.type === "delimiter" && t--, c[t] = e;
246
246
  }
247
247
  break;
248
- default: g(e);
248
+ default: f(e);
249
249
  }
250
- if (m(), r.push(...h.items.value), s.value && _.value && (!l.value || l.value(e)) && (c.value || !r.find((t) => t.name.toLowerCase() === e))) {
250
+ if (u(), o.push(...i.items.value), n.appendSearchToResult && a.value && (!n.appendSearchToResultCond || n.appendSearchToResultCond(e)) && (n.appendSearchAllowDuplicate || !o.find((t) => t.name.toLowerCase() === e))) {
251
251
  let e = {
252
252
  id: null,
253
- name: _.value
253
+ name: a.value
254
254
  };
255
- u.value && (e.listItemProps = { closeByClick: !1 }), r.push(e);
255
+ n.appendWithoutSelect && (e.listItemProps = { closeByClick: !1 }), o.push(e);
256
256
  }
257
- return a && (r = r.filter((e) => !ge(t.value, e))), i && (r = i(r)), r;
258
- }, T = (e) => {
259
- e.listItemProps?.type === "title" || e.listItemProps?.type === "delimiter" || e.id === null && (n("appendItem", e), u.value) || (a && Array.isArray(t.value) ? ge(t.value, e) || (t.value = [...t.value, e]) : t.value = e, setTimeout(() => {
260
- y();
257
+ return n.multiselect && (o = o.filter((e) => !he(t.value, e))), n.prepareItemsBeforeRender && (o = n.prepareItemsBeforeRender(o)), o;
258
+ }, m = (e) => {
259
+ e.listItemProps?.type === "title" || e.listItemProps?.type === "delimiter" || e.id === null && (r("appendItem", e), n.appendWithoutSelect) || (n.multiselect && Array.isArray(t.value) ? he(t.value, e) || (t.value = [...t.value, e]) : t.value = e, setTimeout(() => {
260
+ s();
261
261
  }));
262
262
  };
263
- if (h.apiRequest) {
264
- let e = [r, h.items];
265
- a && e.push(t), V(e, () => {
266
- C();
263
+ if (i.apiRequest) {
264
+ let e = [() => n.items, i.items];
265
+ n.multiselect && e.push(t), V(e, () => {
266
+ f();
267
267
  }, { deep: 2 });
268
268
  } else V([
269
269
  t,
270
- r,
271
- _
270
+ () => n.items,
271
+ a
272
272
  ], () => {
273
- C();
273
+ f();
274
274
  }, {
275
275
  immediate: !0,
276
276
  deep: 2
277
- }), V([() => r.value?.length ?? 0, r], (e, n) => {
278
- (e[0] < n[0] || e[1] !== n[1]) && (Array.isArray(t.value) ? t.value : [t.value]).forEach((e) => {
279
- e.id !== v.id && (r.value?.find((t) => t.id === e.id) || (e.name = "--"));
277
+ }), V([() => n.items?.length ?? 0, () => n.items], (e, r) => {
278
+ (e[0] < r[0] || e[1] !== r[1]) && (Array.isArray(t.value) ? t.value : [t.value]).forEach((e) => {
279
+ e.id !== o.id && (n.items?.find((t) => t.id === e.id) || (e.name = "--"));
280
280
  });
281
281
  });
282
282
  return {
283
- searchText: _,
284
- resetSearch: y,
285
- genIsShort: b,
286
- itemsForShow: S,
287
- selectItem: T,
283
+ searchText: a,
284
+ resetSearch: s,
285
+ genIsShort: c,
286
+ itemsForShow: u,
287
+ selectItem: m,
288
288
  selectNextItem: () => {
289
289
  if (Array.isArray(t.value)) return;
290
- let e = S.value.filter((e) => !["title", "delimiter"].includes(e.listItemProps?.type ?? ""));
290
+ let e = u.value.filter((e) => !["title", "delimiter"].includes(e.listItemProps?.type ?? ""));
291
291
  t.value = { ...e[(e.findIndex((e) => e.id === t.value.id) + 1) % e.length] };
292
292
  },
293
293
  deleteItemByItem: async (e) => {
294
294
  Array.isArray(t.value) && (t.value = t.value.filter((t) => t.id !== e.id || t.name !== e.name));
295
295
  }
296
296
  };
297
- }, ye = {
297
+ }, ve = {
298
298
  key: 0,
299
299
  class: "top-selector2_activeItems"
300
- }, be = {
300
+ }, ye = {
301
301
  key: 1,
302
302
  class: "top-selector2_activeName top-ellipsis"
303
- }, xe = {
303
+ }, be = {
304
304
  key: 2,
305
305
  class: "top-selector2_placeholder top-ellipsis"
306
- }, Se = { class: "top-selector2_searchWidget" }, Ce = /* @__PURE__ */ w({
306
+ }, xe = { class: "top-selector2_searchWidget" }, Se = /* @__PURE__ */ w({
307
307
  __name: "selector2",
308
308
  props: /*@__PURE__*/ T({
309
309
  modelValue: {},
310
310
  items: { default: () => [] },
311
+ itemsIsLoading: { type: Boolean },
311
312
  title: {},
312
313
  disabled: { type: Boolean },
313
314
  icon: {},
@@ -343,21 +344,7 @@ var ne = {
343
344
  }),
344
345
  emits: /*@__PURE__*/ T(["appendItem", "open"], ["update:modelValue"]),
345
346
  setup(e, { expose: t, emit: r }) {
346
- let i = e, a = B(e, "modelValue"), o = r;
347
- t({
348
- resetCache: (e = !1) => {
349
- c.apiRequest && (e && oe(c.apiRequest.path), c.items.value = [], c.countLoading.value = 0, c.apiRequest.params.offset = 0, requestAnimationFrame(() => {
350
- u.itemsForShow.value = [];
351
- }), T()?.elPopup && c.setSearchTextAndLoad(u.searchText.value));
352
- },
353
- updateCacheItemById: (e, t) => {
354
- c.apiRequest && de(c.apiRequest.path, e, t);
355
- },
356
- deleteCacheItemById: (e) => {
357
- c.apiRequest && fe(c.apiRequest.path, e);
358
- }
359
- });
360
- let s = g(() => i.searchType === "inline" && i.multiselect || i.searchType === "inline" && n.state.isMobile ? "popup" : i.searchType), c = pe(i.api, i.apiSetSearchParams, i.minLength, i.useCache, a), u = ve(a, o, L(i, "items"), i.prepareItemsBeforeRender, i.multiselect, L(i, "useAllItem"), L(i, "appendSearchToResult"), L(i, "appendSearchAllowDuplicate"), L(i, "appendSearchToResultCond"), L(i, "appendWithoutSelect"), L(i, "searchFields"), s, i.minLength, c), d = g(() => i.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), w = j(null), T = () => w.value?.popup;
347
+ let i = e, a = B(e, "modelValue"), o = r, s = g(() => i.searchType === "inline" && i.multiselect || i.searchType === "inline" && n.state.isMobile ? "popup" : i.searchType), c = fe(i.api, i.apiSetSearchParams, i.minLength, i.useCache, a), u = _e(a, i, o, c), d = g(() => i.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), w = M(null), T = () => w.value?.popup;
361
348
  c.apiRequest && V(u.searchText, () => {
362
349
  c.setSearchTextAndLoad(u.searchText.value);
363
350
  });
@@ -384,7 +371,7 @@ var ne = {
384
371
  (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());
385
372
  }, k = (e) => {
386
373
  e.preventDefault(), u.selectNextItem();
387
- }, ee = () => {
374
+ }, A = () => {
388
375
  c.apiRequest && c.setSearchTextAndLoad(u.searchText.value, !1), o("open");
389
376
  }, R = () => {
390
377
  s.value === "popup" && u.searchText.value && u.resetSearch();
@@ -392,12 +379,25 @@ var ne = {
392
379
  let t = e.target;
393
380
  t.scrollTop / (t.scrollHeight - t.offsetHeight) > .8 && c.load(!0);
394
381
  };
395
- return (t, r) => {
396
- let i = P("TopButton"), o = P("TopLoadbar"), g = F("top-focus"), T = F("top-shortcut");
397
- return A(), _(z(m), {
382
+ return t({
383
+ getPopup: T,
384
+ resetCache: (e = !1) => {
385
+ c.apiRequest && (e && Z(c.apiRequest.path), c.items.value = [], c.countLoading.value = 0, c.apiRequest.params.offset = 0, requestAnimationFrame(() => {
386
+ u.itemsForShow.value = [];
387
+ }), T()?.elPopup && c.setSearchTextAndLoad(u.searchText.value));
388
+ },
389
+ updateCacheItemById: (e, t) => {
390
+ c.apiRequest && ue(c.apiRequest.path, e, t);
391
+ },
392
+ deleteCacheItemById: (e) => {
393
+ c.apiRequest && de(c.apiRequest.path, e);
394
+ }
395
+ }), (t, r) => {
396
+ let i = F("TopButton"), o = F("TopLoadbar"), g = I("top-focus"), T = I("top-shortcut");
397
+ return j(), _(z(m), {
398
398
  ref_key: "popupRef",
399
399
  ref: w,
400
- onOpen: r[3] ||= (e) => ee(),
400
+ onOpen: r[3] ||= (e) => A(),
401
401
  onClose: r[4] ||= (e) => R(),
402
402
  onScrollContentList: r[5] ||= (e) => z(c) ? W(e) : void 0,
403
403
  notch: !1,
@@ -405,7 +405,7 @@ var ne = {
405
405
  openByFocusInput: s.value === "inline" && (e.openByFocusInput ?? !0),
406
406
  disabled: s.value === "inline" && z(u).genIsShort()
407
407
  }, x({
408
- opener: H(() => [U((A(), _(te(d.value), E(e.buttonProps, {
408
+ opener: H(() => [U((j(), _(ee(d.value), E(e.buttonProps, {
409
409
  class: {
410
410
  "top-selector2": !0,
411
411
  "top-selector2-multiselect": e.multiselect,
@@ -428,7 +428,7 @@ var ne = {
428
428
  "onUpdate:modelValue": r[1] ||= (e) => z(u).searchText.value = e
429
429
  }), {
430
430
  default: H(() => [
431
- e.multiselect ? (A(), y("div", ye, [(A(!0), y(h, null, M(a.value, (e) => (A(), _(ae, {
431
+ e.multiselect ? (j(), y("div", ve, [(j(!0), y(h, null, N(a.value, (e) => (j(), _(ie, {
432
432
  key: e.id ?? void 0,
433
433
  id: e.id,
434
434
  name: e.name,
@@ -438,9 +438,9 @@ var ne = {
438
438
  "name",
439
439
  "onDelete"
440
440
  ]))), 128))])) : v("", !0),
441
- s.value !== "inline" && !e.multiselect ? (A(), y("span", be, I(Array.isArray(a.value) ? "" : a.value.name), 1)) : v("", !0),
442
- e.multiselect && !a.value.length ? (A(), y("span", xe, I(D.value), 1)) : v("", !0),
443
- e.addChanger && !e.buttonProps && !e.multiselect && z(u).itemsForShow.value.length > 1 && !e.disabled ? (A(), y("span", {
441
+ s.value !== "inline" && !e.multiselect ? (j(), y("span", ye, L(Array.isArray(a.value) ? "" : a.value.name), 1)) : v("", !0),
442
+ e.multiselect && !a.value.length ? (j(), y("span", be, L(D.value), 1)) : v("", !0),
443
+ e.addChanger && !e.buttonProps && !e.multiselect && z(u).itemsForShow.value.length > 1 && !e.disabled ? (j(), y("span", {
444
444
  key: 3,
445
445
  class: "top-changer top-changer-selector",
446
446
  "data-top-popup-disabled": "true",
@@ -462,7 +462,7 @@ var ne = {
462
462
  { onupdate: !0 }
463
463
  ], [T, e.openerShortcut]])]),
464
464
  contentList: H(() => [
465
- (A(!0), y(h, null, M(z(u).itemsForShow.value, (r) => (A(), _(z(p), E({
465
+ (j(!0), y(h, null, N(z(u).itemsForShow.value, (r) => (j(), _(z(p), E({
466
466
  key: r.id ?? void 0,
467
467
  class: {
468
468
  "top-active": !Array.isArray(a.value) && !e.multiselect && a.value.id === r.id && a.value.name === r.name,
@@ -471,36 +471,36 @@ var ne = {
471
471
  },
472
472
  closeByClick: !e.multiselect || z(n).state.isMobile
473
473
  }, { ref_for: !0 }, r.listItemProps, { onClick: (e) => z(u).selectItem(r) }), x({
474
- default: H(() => [t.$slots.item ? N(t.$slots, "item", {
474
+ default: H(() => [t.$slots.item ? P(t.$slots, "item", {
475
475
  key: 0,
476
476
  item: r
477
- }) : (A(), y(h, { key: 1 }, [S(I(r.name), 1)], 64))]),
477
+ }) : (j(), y(h, { key: 1 }, [S(L(r.name), 1)], 64))]),
478
478
  _: 2
479
479
  }, [t.$slots.actions ? {
480
480
  name: "actions",
481
- fn: H(() => [N(t.$slots, "actions", { item: r })]),
481
+ fn: H(() => [P(t.$slots, "actions", { item: r })]),
482
482
  key: "0"
483
483
  } : void 0]), 1040, [
484
484
  "class",
485
485
  "closeByClick",
486
486
  "onClick"
487
487
  ]))), 128)),
488
- !z(u).itemsForShow.value.length && !z(u).genIsShort() ? (A(), _(z(p), {
488
+ !z(u).itemsForShow.value.length && !z(u).genIsShort() ? (j(), _(z(p), {
489
489
  key: 0,
490
490
  type: "regular"
491
491
  }, {
492
- default: H(() => [!z(c).isLoading.value || z(c).countLoading.value ? (A(), y(h, { key: 0 }, [S(I(t.$i18n.Common.No_results), 1)], 64)) : (A(), _(z(l), {
493
- key: 1,
492
+ default: H(() => [z(c).isLoading.value && !z(c).countLoading.value || e.itemsIsLoading ? (j(), _(z(l), {
493
+ key: 0,
494
494
  type: "circles"
495
- }))]),
495
+ })) : (j(), y(h, { key: 1 }, [S(L(t.$i18n.Common.No_results), 1)], 64))]),
496
496
  _: 1
497
497
  })) : v("", !0),
498
- z(c).countLoading.value && z(c).isLoading.value && s.value === "inline" ? (A(), _(o, { key: 1 })) : v("", !0)
498
+ z(c).countLoading.value && z(c).isLoading.value && s.value === "inline" ? (j(), _(o, { key: 1 })) : v("", !0)
499
499
  ]),
500
500
  _: 2
501
501
  }, [s.value === "popup" ? {
502
502
  name: "widget",
503
- fn: H(() => [b("div", Se, [U(C(z(f), {
503
+ fn: H(() => [b("div", xe, [U(C(z(f), {
504
504
  title: "Поиск",
505
505
  icon: "",
506
506
  modelValue: z(u).searchText.value,
@@ -516,19 +516,19 @@ var ne = {
516
516
  a.value,
517
517
  void 0,
518
518
  { onupdate: !0 }
519
- ]]), e.hasCloserBtn && !t.$core.state.isMobile ? (A(), _(i, {
519
+ ]]), e.hasCloserBtn && !t.$core.state.isMobile ? (j(), _(i, {
520
520
  key: 0,
521
521
  class: "closer",
522
522
  color: "theme"
523
523
  }, {
524
- default: H(() => [S(I(t.$i18n.Common.Cancel), 1)]),
524
+ default: H(() => [S(L(t.$i18n.Common.Cancel), 1)]),
525
525
  _: 1
526
526
  })) : v("", !0)])]),
527
527
  key: "0"
528
528
  } : void 0]), 1032, ["openByFocusInput", "disabled"]);
529
529
  };
530
530
  }
531
- }), we = { class: "top-editArea_footer" }, Te = /* @__PURE__ */ w({
531
+ }), Ce = { class: "top-editArea_footer" }, we = /* @__PURE__ */ w({
532
532
  __name: "editArea",
533
533
  props: {
534
534
  defaultValue: { default: "" },
@@ -561,7 +561,7 @@ var ne = {
561
561
  "clickOnTitle"
562
562
  ],
563
563
  setup(e, { emit: t }) {
564
- let n = e, r = t, i = j(n.defaultValue), a = j(n.isFocused), o = g(() => i.value !== n.defaultValue), l = (e) => {
564
+ let n = e, r = t, i = M(n.defaultValue), a = M(n.isFocused), o = g(() => i.value !== n.defaultValue), l = (e) => {
565
565
  r("submit", e), i.value = n.defaultValue;
566
566
  }, u = () => {
567
567
  if (n.forceShowCloseBtn && !o.value) {
@@ -572,14 +572,14 @@ var ne = {
572
572
  }, d = () => {
573
573
  n.attachToKeyboard && r("clickOnTitle");
574
574
  };
575
- return (t, n) => (A(), y("div", { class: D({
575
+ return (t, n) => (j(), y("div", { class: D({
576
576
  "top-editArea": !0,
577
577
  "top-editArea-attachedToKeyboard": e.attachToKeyboard
578
- }) }, [e.title || t.$slots.caption ? (A(), y("div", {
578
+ }) }, [e.title || t.$slots.caption ? (j(), y("div", {
579
579
  key: 0,
580
580
  class: "top-editArea_caption",
581
581
  onClick: n[0] ||= (e) => d()
582
- }, [N(t.$slots, "caption", {}, () => [S(I(e.title), 1)])])) : v("", !0), b("div", { class: D({
582
+ }, [P(t.$slots, "caption", {}, () => [S(L(e.title), 1)])])) : v("", !0), b("div", { class: D({
583
583
  "top-editArea_form": !0,
584
584
  "top-forms-focusable": !0,
585
585
  "top-as-input": !0,
@@ -612,7 +612,7 @@ var ne = {
612
612
  "readonly",
613
613
  "isError",
614
614
  "hint"
615
- ]), b("div", we, [o.value || e.forceShowCloseBtn ? (A(), _(s, {
615
+ ]), b("div", Ce, [o.value || e.forceShowCloseBtn ? (j(), _(s, {
616
616
  key: 0,
617
617
  icon: t.$core.state.isMobile ? "" : "",
618
618
  class: "top-editArea_button",
@@ -621,20 +621,20 @@ var ne = {
621
621
  onClick: u
622
622
  }, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
623
623
  name: "default",
624
- fn: H(() => [S(I(e.cancelText), 1)]),
624
+ fn: H(() => [S(L(e.cancelText), 1)]),
625
625
  key: "0"
626
- }]), 1032, ["icon"])) : v("", !0), o.value ? (A(), _(s, {
626
+ }]), 1032, ["icon"])) : v("", !0), o.value ? (j(), _(s, {
627
627
  key: 1,
628
628
  class: "top-editArea_button",
629
629
  icon: t.$core.state.isMobile ? "" : "",
630
630
  onClick: n[5] ||= (e) => l(i.value)
631
631
  }, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
632
632
  name: "default",
633
- fn: H(() => [S(I(e.submitText), 1)]),
633
+ fn: H(() => [S(L(e.submitText), 1)]),
634
634
  key: "0"
635
635
  }]), 1032, ["icon"])) : v("", !0)])], 2)], 2));
636
636
  }
637
- }), Ee = { class: "top-editInput" }, De = /* @__PURE__ */ w({
637
+ }), Te = { class: "top-editInput" }, Ee = /* @__PURE__ */ w({
638
638
  __name: "editInput",
639
639
  props: {
640
640
  modelValue: {},
@@ -644,29 +644,29 @@ var ne = {
644
644
  },
645
645
  emits: ["update:modelValue"],
646
646
  setup(e, { emit: t }) {
647
- let n = e, r = j(n.modelValue);
647
+ let n = e, r = M(n.modelValue);
648
648
  V(() => n.modelValue, () => {
649
649
  r.value = n.modelValue;
650
650
  });
651
651
  let i = t, o = () => {
652
652
  i("update:modelValue", r.value);
653
653
  };
654
- return (t, n) => (A(), y("div", Ee, [C(a, E(e.input, {
654
+ return (t, n) => (j(), y("div", Te, [C(a, E(e.input, {
655
655
  onKeydownCapture: n[0] ||= W(G((t) => r.value = e.modelValue, ["stop"]), ["esc"]),
656
656
  onKeydown: W(G(o, ["stop"]), ["enter"]),
657
657
  modelValue: r.value,
658
658
  "onUpdate:modelValue": n[1] ||= (e) => r.value = e
659
659
  }), x({ _: 2 }, [t.$slots.caption ? {
660
660
  name: "caption",
661
- fn: H(() => [N(t.$slots, "caption")]),
661
+ fn: H(() => [P(t.$slots, "caption")]),
662
662
  key: "0"
663
- } : void 0]), 1040, ["onKeydown", "modelValue"]), r.value !== e.modelValue || e.alwaysShowSubmitBtn ? (A(), _(s, E({
663
+ } : void 0]), 1040, ["onKeydown", "modelValue"]), r.value !== e.modelValue || e.alwaysShowSubmitBtn ? (j(), _(s, E({
664
664
  key: 0,
665
665
  icon: "",
666
666
  styling: "soft"
667
667
  }, e.button, { onClick: o }), null, 16)) : v("", !0)]));
668
668
  }
669
- }), Oe = /* @__PURE__ */ w({
669
+ }), De = /* @__PURE__ */ w({
670
670
  __name: "optionGroup",
671
671
  props: /*@__PURE__*/ T({
672
672
  modelValue: {},
@@ -680,13 +680,13 @@ var ne = {
680
680
  }),
681
681
  emits: ["update:modelValue"],
682
682
  setup(e) {
683
- let t = B(e, "modelValue"), n = e, r = j(null);
683
+ let t = B(e, "modelValue"), n = e, r = M(null);
684
684
  V(t, () => {
685
685
  let e = n.items.map((e) => e.value);
686
686
  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();
687
687
  }, { immediate: !0 });
688
688
  let a = "optionGroup-" + Math.random();
689
- return (n, s) => (A(), y("div", {
689
+ return (n, s) => (j(), y("div", {
690
690
  ref_key: "elRef",
691
691
  ref: r,
692
692
  class: D({
@@ -696,7 +696,7 @@ var ne = {
696
696
  ["top-size_" + e.size]: !!e.size,
697
697
  "top-error": e.isError
698
698
  })
699
- }, [Array.isArray(t.value) ? (A(!0), y(h, { key: 0 }, M(e.items, (n) => (A(), _(o, {
699
+ }, [Array.isArray(t.value) ? (j(!0), y(h, { key: 0 }, N(e.items, (n) => (j(), _(o, {
700
700
  class: D({
701
701
  "top-optionGroup_item-selected": t.value.includes(n.value),
702
702
  "top-optionGroup_item": !0
@@ -710,7 +710,7 @@ var ne = {
710
710
  "data-top-icon": n.icon
711
711
  }, x({ _: 2 }, [n.label ? {
712
712
  name: "default",
713
- fn: H(() => [S(I(n.label), 1)]),
713
+ fn: H(() => [S(L(n.label), 1)]),
714
714
  key: "0"
715
715
  } : void 0]), 1032, [
716
716
  "class",
@@ -720,7 +720,7 @@ var ne = {
720
720
  "disabled",
721
721
  "isError",
722
722
  "data-top-icon"
723
- ]))), 256)) : (A(!0), y(h, { key: 1 }, M(e.items, (n) => (A(), _(i, {
723
+ ]))), 256)) : (j(!0), y(h, { key: 1 }, N(e.items, (n) => (j(), _(i, {
724
724
  class: D({
725
725
  "top-optionGroup_item-selected": n.value === t.value,
726
726
  "top-optionGroup_item": !0
@@ -735,7 +735,7 @@ var ne = {
735
735
  "data-top-icon": n.icon
736
736
  }, x({ _: 2 }, [n.label ? {
737
737
  name: "default",
738
- fn: H(() => [S(I(n.label), 1)]),
738
+ fn: H(() => [S(L(n.label), 1)]),
739
739
  key: "0"
740
740
  } : void 0]), 1032, [
741
741
  "class",
@@ -747,7 +747,7 @@ var ne = {
747
747
  "data-top-icon"
748
748
  ]))), 256))], 2));
749
749
  }
750
- }), ke = /* @__PURE__ */ w({
750
+ }), Oe = /* @__PURE__ */ w({
751
751
  __name: "radioGroup",
752
752
  props: /*@__PURE__*/ T({
753
753
  modelValue: {},
@@ -762,7 +762,7 @@ var ne = {
762
762
  emits: ["update:modelValue"],
763
763
  setup(e) {
764
764
  let t = B(e, "modelValue");
765
- return (e, n) => (A(), _(Oe, {
765
+ return (e, n) => (j(), _(De, {
766
766
  class: "top-radioGroup",
767
767
  modelValue: t.value,
768
768
  "onUpdate:modelValue": n[0] ||= (e) => t.value = e,
@@ -771,7 +771,7 @@ var ne = {
771
771
  showIndicator: e.$props.showIndicator,
772
772
  isError: e.$props.isError
773
773
  }, {
774
- default: H(() => [N(e.$slots, "default")]),
774
+ default: H(() => [P(e.$slots, "default")]),
775
775
  _: 3
776
776
  }, 8, [
777
777
  "modelValue",
@@ -781,7 +781,7 @@ var ne = {
781
781
  "isError"
782
782
  ]));
783
783
  }
784
- }), Ae = /* @__PURE__ */ w({
784
+ }), ke = /* @__PURE__ */ w({
785
785
  __name: "checkboxGroup",
786
786
  props: /*@__PURE__*/ T({
787
787
  modelValue: {},
@@ -796,7 +796,7 @@ var ne = {
796
796
  emits: ["update:modelValue"],
797
797
  setup(e) {
798
798
  let t = B(e, "modelValue");
799
- return (e, n) => (A(), _(Oe, {
799
+ return (e, n) => (j(), _(De, {
800
800
  class: "top-checkboxGroup",
801
801
  modelValue: t.value,
802
802
  "onUpdate:modelValue": n[0] ||= (e) => t.value = e,
@@ -805,7 +805,7 @@ var ne = {
805
805
  showIndicator: e.$props.showIndicator,
806
806
  isError: e.$props.isError
807
807
  }, {
808
- default: H(() => [N(e.$slots, "default")]),
808
+ default: H(() => [P(e.$slots, "default")]),
809
809
  _: 3
810
810
  }, 8, [
811
811
  "modelValue",
@@ -815,10 +815,10 @@ var ne = {
815
815
  "isError"
816
816
  ]));
817
817
  }
818
- }), je = ["data-top-icon"], Me = { class: "top-info_text" }, Ne = {
818
+ }), Ae = ["data-top-icon"], je = { class: "top-info_text" }, Me = {
819
819
  key: 0,
820
820
  class: "top-info_value"
821
- }, Pe = /* @__PURE__ */ w({
821
+ }, Ne = /* @__PURE__ */ w({
822
822
  __name: "info",
823
823
  props: {
824
824
  icon: {},
@@ -826,19 +826,19 @@ var ne = {
826
826
  size: { default: "default" }
827
827
  },
828
828
  setup(e) {
829
- return (t, n) => (A(), y("div", {
829
+ return (t, n) => (j(), y("div", {
830
830
  class: D({
831
831
  "top-info": !0,
832
832
  ["top-size_" + e.size]: !0,
833
833
  ["top-info-styling_" + e.styling]: !0
834
834
  }),
835
835
  "data-top-icon": e.icon
836
- }, [b("div", Me, [N(t.$slots, "default")]), t.$slots.additional ? (A(), y("span", Ne, [N(t.$slots, "additional")])) : v("", !0)], 10, je));
836
+ }, [b("div", je, [P(t.$slots, "default")]), t.$slots.additional ? (j(), y("span", Me, [P(t.$slots, "additional")])) : v("", !0)], 10, Ae));
837
837
  }
838
- }), Fe = {
838
+ }), Pe = {
839
839
  key: 0,
840
840
  class: "top-policy"
841
- }, Ie = { class: "top-policy_title" }, Le = ["innerHTML"], Re = /* @__PURE__ */ w({
841
+ }, Fe = { class: "top-policy_title" }, Ie = ["innerHTML"], Le = /* @__PURE__ */ w({
842
842
  __name: "policy",
843
843
  props: {
844
844
  title: {},
@@ -847,26 +847,26 @@ var ne = {
847
847
  },
848
848
  emits: ["accept"],
849
849
  setup(e, { emit: t }) {
850
- let n = t, r = j(!0), i = () => {
850
+ let n = t, r = M(!0), i = () => {
851
851
  r.value = !1, n("accept");
852
852
  };
853
- return (t, n) => r.value ? (A(), y("div", Fe, [
854
- b("div", Ie, I(e.title), 1),
853
+ return (t, n) => r.value ? (j(), y("div", Pe, [
854
+ b("div", Fe, L(e.title), 1),
855
855
  b("div", {
856
856
  class: "top-policy_description",
857
857
  innerHTML: e.description
858
- }, null, 8, Le),
858
+ }, null, 8, Ie),
859
859
  C(z(s), {
860
860
  size: "m",
861
861
  onClick: i
862
862
  }, {
863
- default: H(() => [S(I(e.acceptText), 1)]),
863
+ default: H(() => [S(L(e.acceptText), 1)]),
864
864
  _: 1
865
865
  })
866
866
  ])) : v("", !0);
867
867
  }
868
868
  });
869
869
  //#endregion
870
- export { De as a, me as c, re as d, ke as i, he as l, Pe as n, Te as o, Ae as r, Ce as s, Re as t, _e as u };
870
+ export { Ee as a, pe as c, Z as d, ne as f, Oe as i, me as l, Ne as n, we as o, ke as r, Se as s, Le as t, ge as u };
871
871
 
872
- //# sourceMappingURL=formsExt-kZL0--bf.esm.js.map
872
+ //# sourceMappingURL=formsExt-C9r4Gz9y.esm.js.map