@topvisor/ui 1.5.6-topSchedule.1 → 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 (186) 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-0qVCkgOO.amd.js → app-DinkodXi.amd.js} +2 -2
  6. package/.chunks/{app-0qVCkgOO.amd.js.map → app-DinkodXi.amd.js.map} +1 -1
  7. package/.chunks/{app-0qVCkgOO.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-CdgC31H2.amd.js → dialog-BCDVMWG1.amd.js} +2 -2
  14. package/.chunks/{dialog-CdgC31H2.amd.js.map → dialog-BCDVMWG1.amd.js.map} +1 -1
  15. package/.chunks/{dialog-CdgC31H2.esm.js → dialog-BCDVMWG1.esm.js} +3 -3
  16. package/.chunks/{dialog-CdgC31H2.esm.js.map → dialog-BCDVMWG1.esm.js.map} +1 -1
  17. package/.chunks/{dialog_regionSelectorRegions-BFpuUEJM.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-BFpuUEJM.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-Bk_fn1Pg.esm.js → formsExt-C9r4Gz9y.esm.js} +163 -159
  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-3uWRvFcX.amd.js → utils-Be-ScFyj.amd.js} +2 -2
  51. package/.chunks/{utils-3uWRvFcX.amd.js.map → utils-Be-ScFyj.amd.js.map} +1 -1
  52. package/.chunks/{utils-3uWRvFcX.esm.js → utils-Be-ScFyj.esm.js} +3 -3
  53. package/.chunks/{utils-3uWRvFcX.esm.js.map → utils-Be-ScFyj.esm.js.map} +1 -1
  54. package/.chunks/{utils-BiOp5DHs.amd.js → utils-ds_g-L_r.amd.js} +2 -2
  55. package/.chunks/utils-ds_g-L_r.amd.js.map +1 -0
  56. package/.chunks/{utils-BiOp5DHs.esm.js → utils-ds_g-L_r.esm.js} +5 -5
  57. package/.chunks/{utils-BiOp5DHs.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 +461 -460
  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-0qVCkgOO.esm.js.map +0 -1
  164. package/.chunks/dialog_regionSelectorRegions-BFpuUEJM.amd.js.map +0 -1
  165. package/.chunks/dialog_regionSelectorRegions-BFpuUEJM.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-Bk_fn1Pg.amd.js +0 -2
  170. package/.chunks/formsExt-Bk_fn1Pg.amd.js.map +0 -1
  171. package/.chunks/formsExt-Bk_fn1Pg.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
  186. package/.chunks/utils-BiOp5DHs.amd.js.map +0 -1
@@ -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,96 +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([() => 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
+ });
277
281
  });
278
282
  return {
279
- searchText: _,
280
- resetSearch: y,
281
- genIsShort: b,
282
- itemsForShow: S,
283
- selectItem: T,
283
+ searchText: a,
284
+ resetSearch: s,
285
+ genIsShort: c,
286
+ itemsForShow: u,
287
+ selectItem: m,
284
288
  selectNextItem: () => {
285
289
  if (Array.isArray(t.value)) return;
286
- 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 ?? ""));
287
291
  t.value = { ...e[(e.findIndex((e) => e.id === t.value.id) + 1) % e.length] };
288
292
  },
289
293
  deleteItemByItem: async (e) => {
290
294
  Array.isArray(t.value) && (t.value = t.value.filter((t) => t.id !== e.id || t.name !== e.name));
291
295
  }
292
296
  };
293
- }, ye = {
297
+ }, ve = {
294
298
  key: 0,
295
299
  class: "top-selector2_activeItems"
296
- }, be = {
300
+ }, ye = {
297
301
  key: 1,
298
302
  class: "top-selector2_activeName top-ellipsis"
299
- }, xe = {
303
+ }, be = {
300
304
  key: 2,
301
305
  class: "top-selector2_placeholder top-ellipsis"
302
- }, Se = { class: "top-selector2_searchWidget" }, Ce = /* @__PURE__ */ w({
306
+ }, xe = { class: "top-selector2_searchWidget" }, Se = /* @__PURE__ */ w({
303
307
  __name: "selector2",
304
308
  props: /*@__PURE__*/ T({
305
309
  modelValue: {},
306
310
  items: { default: () => [] },
311
+ itemsIsLoading: { type: Boolean },
307
312
  title: {},
308
313
  disabled: { type: Boolean },
309
314
  icon: {},
@@ -339,21 +344,7 @@ var ne = {
339
344
  }),
340
345
  emits: /*@__PURE__*/ T(["appendItem", "open"], ["update:modelValue"]),
341
346
  setup(e, { expose: t, emit: r }) {
342
- let i = e, a = B(e, "modelValue"), o = r;
343
- t({
344
- resetCache: (e = !1) => {
345
- c.apiRequest && (e && oe(c.apiRequest.path), c.items.value = [], c.countLoading.value = 0, c.apiRequest.params.offset = 0, requestAnimationFrame(() => {
346
- u.itemsForShow.value = [];
347
- }), T()?.elPopup && c.setSearchTextAndLoad(u.searchText.value));
348
- },
349
- updateCacheItemById: (e, t) => {
350
- c.apiRequest && de(c.apiRequest.path, e, t);
351
- },
352
- deleteCacheItemById: (e) => {
353
- c.apiRequest && fe(c.apiRequest.path, e);
354
- }
355
- });
356
- 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;
357
348
  c.apiRequest && V(u.searchText, () => {
358
349
  c.setSearchTextAndLoad(u.searchText.value);
359
350
  });
@@ -380,7 +371,7 @@ var ne = {
380
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());
381
372
  }, k = (e) => {
382
373
  e.preventDefault(), u.selectNextItem();
383
- }, ee = () => {
374
+ }, A = () => {
384
375
  c.apiRequest && c.setSearchTextAndLoad(u.searchText.value, !1), o("open");
385
376
  }, R = () => {
386
377
  s.value === "popup" && u.searchText.value && u.resetSearch();
@@ -388,12 +379,25 @@ var ne = {
388
379
  let t = e.target;
389
380
  t.scrollTop / (t.scrollHeight - t.offsetHeight) > .8 && c.load(!0);
390
381
  };
391
- return (t, r) => {
392
- let i = P("TopButton"), o = P("TopLoadbar"), g = F("top-focus"), T = F("top-shortcut");
393
- 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), {
394
398
  ref_key: "popupRef",
395
399
  ref: w,
396
- onOpen: r[3] ||= (e) => ee(),
400
+ onOpen: r[3] ||= (e) => A(),
397
401
  onClose: r[4] ||= (e) => R(),
398
402
  onScrollContentList: r[5] ||= (e) => z(c) ? W(e) : void 0,
399
403
  notch: !1,
@@ -401,7 +405,7 @@ var ne = {
401
405
  openByFocusInput: s.value === "inline" && (e.openByFocusInput ?? !0),
402
406
  disabled: s.value === "inline" && z(u).genIsShort()
403
407
  }, x({
404
- opener: H(() => [U((A(), _(te(d.value), E(e.buttonProps, {
408
+ opener: H(() => [U((j(), _(ee(d.value), E(e.buttonProps, {
405
409
  class: {
406
410
  "top-selector2": !0,
407
411
  "top-selector2-multiselect": e.multiselect,
@@ -424,7 +428,7 @@ var ne = {
424
428
  "onUpdate:modelValue": r[1] ||= (e) => z(u).searchText.value = e
425
429
  }), {
426
430
  default: H(() => [
427
- 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, {
428
432
  key: e.id ?? void 0,
429
433
  id: e.id,
430
434
  name: e.name,
@@ -434,9 +438,9 @@ var ne = {
434
438
  "name",
435
439
  "onDelete"
436
440
  ]))), 128))])) : v("", !0),
437
- s.value !== "inline" && !e.multiselect ? (A(), y("span", be, I(Array.isArray(a.value) ? "" : a.value.name), 1)) : v("", !0),
438
- e.multiselect && !a.value.length ? (A(), y("span", xe, I(D.value), 1)) : v("", !0),
439
- 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", {
440
444
  key: 3,
441
445
  class: "top-changer top-changer-selector",
442
446
  "data-top-popup-disabled": "true",
@@ -458,7 +462,7 @@ var ne = {
458
462
  { onupdate: !0 }
459
463
  ], [T, e.openerShortcut]])]),
460
464
  contentList: H(() => [
461
- (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({
462
466
  key: r.id ?? void 0,
463
467
  class: {
464
468
  "top-active": !Array.isArray(a.value) && !e.multiselect && a.value.id === r.id && a.value.name === r.name,
@@ -467,36 +471,36 @@ var ne = {
467
471
  },
468
472
  closeByClick: !e.multiselect || z(n).state.isMobile
469
473
  }, { ref_for: !0 }, r.listItemProps, { onClick: (e) => z(u).selectItem(r) }), x({
470
- default: H(() => [t.$slots.item ? N(t.$slots, "item", {
474
+ default: H(() => [t.$slots.item ? P(t.$slots, "item", {
471
475
  key: 0,
472
476
  item: r
473
- }) : (A(), y(h, { key: 1 }, [S(I(r.name), 1)], 64))]),
477
+ }) : (j(), y(h, { key: 1 }, [S(L(r.name), 1)], 64))]),
474
478
  _: 2
475
479
  }, [t.$slots.actions ? {
476
480
  name: "actions",
477
- fn: H(() => [N(t.$slots, "actions", { item: r })]),
481
+ fn: H(() => [P(t.$slots, "actions", { item: r })]),
478
482
  key: "0"
479
483
  } : void 0]), 1040, [
480
484
  "class",
481
485
  "closeByClick",
482
486
  "onClick"
483
487
  ]))), 128)),
484
- !z(u).itemsForShow.value.length && !z(u).genIsShort() ? (A(), _(z(p), {
488
+ !z(u).itemsForShow.value.length && !z(u).genIsShort() ? (j(), _(z(p), {
485
489
  key: 0,
486
490
  type: "regular"
487
491
  }, {
488
- 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), {
489
- key: 1,
492
+ default: H(() => [z(c).isLoading.value && !z(c).countLoading.value || e.itemsIsLoading ? (j(), _(z(l), {
493
+ key: 0,
490
494
  type: "circles"
491
- }))]),
495
+ })) : (j(), y(h, { key: 1 }, [S(L(t.$i18n.Common.No_results), 1)], 64))]),
492
496
  _: 1
493
497
  })) : v("", !0),
494
- 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)
495
499
  ]),
496
500
  _: 2
497
501
  }, [s.value === "popup" ? {
498
502
  name: "widget",
499
- fn: H(() => [b("div", Se, [U(C(z(f), {
503
+ fn: H(() => [b("div", xe, [U(C(z(f), {
500
504
  title: "Поиск",
501
505
  icon: "",
502
506
  modelValue: z(u).searchText.value,
@@ -512,19 +516,19 @@ var ne = {
512
516
  a.value,
513
517
  void 0,
514
518
  { onupdate: !0 }
515
- ]]), e.hasCloserBtn && !t.$core.state.isMobile ? (A(), _(i, {
519
+ ]]), e.hasCloserBtn && !t.$core.state.isMobile ? (j(), _(i, {
516
520
  key: 0,
517
521
  class: "closer",
518
522
  color: "theme"
519
523
  }, {
520
- default: H(() => [S(I(t.$i18n.Common.Cancel), 1)]),
524
+ default: H(() => [S(L(t.$i18n.Common.Cancel), 1)]),
521
525
  _: 1
522
526
  })) : v("", !0)])]),
523
527
  key: "0"
524
528
  } : void 0]), 1032, ["openByFocusInput", "disabled"]);
525
529
  };
526
530
  }
527
- }), we = { class: "top-editArea_footer" }, Te = /* @__PURE__ */ w({
531
+ }), Ce = { class: "top-editArea_footer" }, we = /* @__PURE__ */ w({
528
532
  __name: "editArea",
529
533
  props: {
530
534
  defaultValue: { default: "" },
@@ -557,7 +561,7 @@ var ne = {
557
561
  "clickOnTitle"
558
562
  ],
559
563
  setup(e, { emit: t }) {
560
- 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) => {
561
565
  r("submit", e), i.value = n.defaultValue;
562
566
  }, u = () => {
563
567
  if (n.forceShowCloseBtn && !o.value) {
@@ -568,14 +572,14 @@ var ne = {
568
572
  }, d = () => {
569
573
  n.attachToKeyboard && r("clickOnTitle");
570
574
  };
571
- return (t, n) => (A(), y("div", { class: D({
575
+ return (t, n) => (j(), y("div", { class: D({
572
576
  "top-editArea": !0,
573
577
  "top-editArea-attachedToKeyboard": e.attachToKeyboard
574
- }) }, [e.title || t.$slots.caption ? (A(), y("div", {
578
+ }) }, [e.title || t.$slots.caption ? (j(), y("div", {
575
579
  key: 0,
576
580
  class: "top-editArea_caption",
577
581
  onClick: n[0] ||= (e) => d()
578
- }, [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({
579
583
  "top-editArea_form": !0,
580
584
  "top-forms-focusable": !0,
581
585
  "top-as-input": !0,
@@ -608,7 +612,7 @@ var ne = {
608
612
  "readonly",
609
613
  "isError",
610
614
  "hint"
611
- ]), b("div", we, [o.value || e.forceShowCloseBtn ? (A(), _(s, {
615
+ ]), b("div", Ce, [o.value || e.forceShowCloseBtn ? (j(), _(s, {
612
616
  key: 0,
613
617
  icon: t.$core.state.isMobile ? "" : "",
614
618
  class: "top-editArea_button",
@@ -617,20 +621,20 @@ var ne = {
617
621
  onClick: u
618
622
  }, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
619
623
  name: "default",
620
- fn: H(() => [S(I(e.cancelText), 1)]),
624
+ fn: H(() => [S(L(e.cancelText), 1)]),
621
625
  key: "0"
622
- }]), 1032, ["icon"])) : v("", !0), o.value ? (A(), _(s, {
626
+ }]), 1032, ["icon"])) : v("", !0), o.value ? (j(), _(s, {
623
627
  key: 1,
624
628
  class: "top-editArea_button",
625
629
  icon: t.$core.state.isMobile ? "" : "",
626
630
  onClick: n[5] ||= (e) => l(i.value)
627
631
  }, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
628
632
  name: "default",
629
- fn: H(() => [S(I(e.submitText), 1)]),
633
+ fn: H(() => [S(L(e.submitText), 1)]),
630
634
  key: "0"
631
635
  }]), 1032, ["icon"])) : v("", !0)])], 2)], 2));
632
636
  }
633
- }), Ee = { class: "top-editInput" }, De = /* @__PURE__ */ w({
637
+ }), Te = { class: "top-editInput" }, Ee = /* @__PURE__ */ w({
634
638
  __name: "editInput",
635
639
  props: {
636
640
  modelValue: {},
@@ -640,29 +644,29 @@ var ne = {
640
644
  },
641
645
  emits: ["update:modelValue"],
642
646
  setup(e, { emit: t }) {
643
- let n = e, r = j(n.modelValue);
647
+ let n = e, r = M(n.modelValue);
644
648
  V(() => n.modelValue, () => {
645
649
  r.value = n.modelValue;
646
650
  });
647
651
  let i = t, o = () => {
648
652
  i("update:modelValue", r.value);
649
653
  };
650
- 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, {
651
655
  onKeydownCapture: n[0] ||= W(G((t) => r.value = e.modelValue, ["stop"]), ["esc"]),
652
656
  onKeydown: W(G(o, ["stop"]), ["enter"]),
653
657
  modelValue: r.value,
654
658
  "onUpdate:modelValue": n[1] ||= (e) => r.value = e
655
659
  }), x({ _: 2 }, [t.$slots.caption ? {
656
660
  name: "caption",
657
- fn: H(() => [N(t.$slots, "caption")]),
661
+ fn: H(() => [P(t.$slots, "caption")]),
658
662
  key: "0"
659
- } : 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({
660
664
  key: 0,
661
665
  icon: "",
662
666
  styling: "soft"
663
667
  }, e.button, { onClick: o }), null, 16)) : v("", !0)]));
664
668
  }
665
- }), Oe = /* @__PURE__ */ w({
669
+ }), De = /* @__PURE__ */ w({
666
670
  __name: "optionGroup",
667
671
  props: /*@__PURE__*/ T({
668
672
  modelValue: {},
@@ -676,13 +680,13 @@ var ne = {
676
680
  }),
677
681
  emits: ["update:modelValue"],
678
682
  setup(e) {
679
- let t = B(e, "modelValue"), n = e, r = j(null);
683
+ let t = B(e, "modelValue"), n = e, r = M(null);
680
684
  V(t, () => {
681
685
  let e = n.items.map((e) => e.value);
682
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();
683
687
  }, { immediate: !0 });
684
688
  let a = "optionGroup-" + Math.random();
685
- return (n, s) => (A(), y("div", {
689
+ return (n, s) => (j(), y("div", {
686
690
  ref_key: "elRef",
687
691
  ref: r,
688
692
  class: D({
@@ -692,7 +696,7 @@ var ne = {
692
696
  ["top-size_" + e.size]: !!e.size,
693
697
  "top-error": e.isError
694
698
  })
695
- }, [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, {
696
700
  class: D({
697
701
  "top-optionGroup_item-selected": t.value.includes(n.value),
698
702
  "top-optionGroup_item": !0
@@ -706,7 +710,7 @@ var ne = {
706
710
  "data-top-icon": n.icon
707
711
  }, x({ _: 2 }, [n.label ? {
708
712
  name: "default",
709
- fn: H(() => [S(I(n.label), 1)]),
713
+ fn: H(() => [S(L(n.label), 1)]),
710
714
  key: "0"
711
715
  } : void 0]), 1032, [
712
716
  "class",
@@ -716,7 +720,7 @@ var ne = {
716
720
  "disabled",
717
721
  "isError",
718
722
  "data-top-icon"
719
- ]))), 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, {
720
724
  class: D({
721
725
  "top-optionGroup_item-selected": n.value === t.value,
722
726
  "top-optionGroup_item": !0
@@ -731,7 +735,7 @@ var ne = {
731
735
  "data-top-icon": n.icon
732
736
  }, x({ _: 2 }, [n.label ? {
733
737
  name: "default",
734
- fn: H(() => [S(I(n.label), 1)]),
738
+ fn: H(() => [S(L(n.label), 1)]),
735
739
  key: "0"
736
740
  } : void 0]), 1032, [
737
741
  "class",
@@ -743,7 +747,7 @@ var ne = {
743
747
  "data-top-icon"
744
748
  ]))), 256))], 2));
745
749
  }
746
- }), ke = /* @__PURE__ */ w({
750
+ }), Oe = /* @__PURE__ */ w({
747
751
  __name: "radioGroup",
748
752
  props: /*@__PURE__*/ T({
749
753
  modelValue: {},
@@ -758,7 +762,7 @@ var ne = {
758
762
  emits: ["update:modelValue"],
759
763
  setup(e) {
760
764
  let t = B(e, "modelValue");
761
- return (e, n) => (A(), _(Oe, {
765
+ return (e, n) => (j(), _(De, {
762
766
  class: "top-radioGroup",
763
767
  modelValue: t.value,
764
768
  "onUpdate:modelValue": n[0] ||= (e) => t.value = e,
@@ -767,7 +771,7 @@ var ne = {
767
771
  showIndicator: e.$props.showIndicator,
768
772
  isError: e.$props.isError
769
773
  }, {
770
- default: H(() => [N(e.$slots, "default")]),
774
+ default: H(() => [P(e.$slots, "default")]),
771
775
  _: 3
772
776
  }, 8, [
773
777
  "modelValue",
@@ -777,7 +781,7 @@ var ne = {
777
781
  "isError"
778
782
  ]));
779
783
  }
780
- }), Ae = /* @__PURE__ */ w({
784
+ }), ke = /* @__PURE__ */ w({
781
785
  __name: "checkboxGroup",
782
786
  props: /*@__PURE__*/ T({
783
787
  modelValue: {},
@@ -792,7 +796,7 @@ var ne = {
792
796
  emits: ["update:modelValue"],
793
797
  setup(e) {
794
798
  let t = B(e, "modelValue");
795
- return (e, n) => (A(), _(Oe, {
799
+ return (e, n) => (j(), _(De, {
796
800
  class: "top-checkboxGroup",
797
801
  modelValue: t.value,
798
802
  "onUpdate:modelValue": n[0] ||= (e) => t.value = e,
@@ -801,7 +805,7 @@ var ne = {
801
805
  showIndicator: e.$props.showIndicator,
802
806
  isError: e.$props.isError
803
807
  }, {
804
- default: H(() => [N(e.$slots, "default")]),
808
+ default: H(() => [P(e.$slots, "default")]),
805
809
  _: 3
806
810
  }, 8, [
807
811
  "modelValue",
@@ -811,10 +815,10 @@ var ne = {
811
815
  "isError"
812
816
  ]));
813
817
  }
814
- }), je = ["data-top-icon"], Me = { class: "top-info_text" }, Ne = {
818
+ }), Ae = ["data-top-icon"], je = { class: "top-info_text" }, Me = {
815
819
  key: 0,
816
820
  class: "top-info_value"
817
- }, Pe = /* @__PURE__ */ w({
821
+ }, Ne = /* @__PURE__ */ w({
818
822
  __name: "info",
819
823
  props: {
820
824
  icon: {},
@@ -822,19 +826,19 @@ var ne = {
822
826
  size: { default: "default" }
823
827
  },
824
828
  setup(e) {
825
- return (t, n) => (A(), y("div", {
829
+ return (t, n) => (j(), y("div", {
826
830
  class: D({
827
831
  "top-info": !0,
828
832
  ["top-size_" + e.size]: !0,
829
833
  ["top-info-styling_" + e.styling]: !0
830
834
  }),
831
835
  "data-top-icon": e.icon
832
- }, [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));
833
837
  }
834
- }), Fe = {
838
+ }), Pe = {
835
839
  key: 0,
836
840
  class: "top-policy"
837
- }, Ie = { class: "top-policy_title" }, Le = ["innerHTML"], Re = /* @__PURE__ */ w({
841
+ }, Fe = { class: "top-policy_title" }, Ie = ["innerHTML"], Le = /* @__PURE__ */ w({
838
842
  __name: "policy",
839
843
  props: {
840
844
  title: {},
@@ -843,26 +847,26 @@ var ne = {
843
847
  },
844
848
  emits: ["accept"],
845
849
  setup(e, { emit: t }) {
846
- let n = t, r = j(!0), i = () => {
850
+ let n = t, r = M(!0), i = () => {
847
851
  r.value = !1, n("accept");
848
852
  };
849
- return (t, n) => r.value ? (A(), y("div", Fe, [
850
- 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),
851
855
  b("div", {
852
856
  class: "top-policy_description",
853
857
  innerHTML: e.description
854
- }, null, 8, Le),
858
+ }, null, 8, Ie),
855
859
  C(z(s), {
856
860
  size: "m",
857
861
  onClick: i
858
862
  }, {
859
- default: H(() => [S(I(e.acceptText), 1)]),
863
+ default: H(() => [S(L(e.acceptText), 1)]),
860
864
  _: 1
861
865
  })
862
866
  ])) : v("", !0);
863
867
  }
864
868
  });
865
869
  //#endregion
866
- 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 };
867
871
 
868
- //# sourceMappingURL=formsExt-Bk_fn1Pg.esm.js.map
872
+ //# sourceMappingURL=formsExt-C9r4Gz9y.esm.js.map