@topvisor/ui 1.5.6-topSelectorReactive.2 → 1.5.6

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 (41) hide show
  1. package/.chunks/{api-DZQlrC2R.amd.js → api-DupNAJPm.amd.js} +2 -2
  2. package/.chunks/{api-DZQlrC2R.amd.js.map → api-DupNAJPm.amd.js.map} +1 -1
  3. package/.chunks/{api-DZQlrC2R.esm.js → api-DupNAJPm.esm.js} +2 -2
  4. package/.chunks/{api-DZQlrC2R.esm.js.map → api-DupNAJPm.esm.js.map} +1 -1
  5. package/.chunks/formsExt-DzXSTWaT.amd.js +2 -0
  6. package/.chunks/formsExt-DzXSTWaT.amd.js.map +1 -0
  7. package/.chunks/{formsExt-C9r4Gz9y.esm.js → formsExt-DzXSTWaT.esm.js} +126 -122
  8. package/.chunks/formsExt-DzXSTWaT.esm.js.map +1 -0
  9. package/.chunks/{mocker-Bl1SzAJY.amd.js → mocker-C9Dl3SwM.amd.js} +2 -2
  10. package/.chunks/mocker-C9Dl3SwM.amd.js.map +1 -0
  11. package/.chunks/{mocker-Bl1SzAJY.esm.js → mocker-C9Dl3SwM.esm.js} +2 -2
  12. package/.chunks/mocker-C9Dl3SwM.esm.js.map +1 -0
  13. package/api/index.amd.js +1 -1
  14. package/api/index.amd.js.map +1 -1
  15. package/api/index.js +1 -1
  16. package/assets/project.css +1 -1
  17. package/autoload-css-manifest.amd.json +1 -1
  18. package/autoload-css-manifest.json +1 -1
  19. package/formsExt/formsExt.amd.js +1 -1
  20. package/formsExt/formsExt.amd.js.map +1 -1
  21. package/formsExt/formsExt.js +1 -1
  22. package/package.json +6 -6
  23. package/project/project.amd.js +1 -1
  24. package/project/project.amd.js.map +1 -1
  25. package/project/project.js +432 -416
  26. package/project/project.js.map +1 -1
  27. package/src/api/api/types/mocker.d.ts +3 -2
  28. package/src/components/formsExt/selector2/types.d.ts +1 -1
  29. package/src/components/project/projectSelector/cache.d.ts +1 -1
  30. package/src/components/project/projectSelector/stories/mocks/index.d.ts +2 -2
  31. package/src/components/project/regionSelector/utils/consts.d.ts +1 -0
  32. package/src/core/utils/searchers.d.ts +1 -0
  33. package/utils/searchers.amd.js +1 -1
  34. package/utils/searchers.amd.js.map +1 -1
  35. package/utils/searchers.js +2 -0
  36. package/utils/searchers.js.map +1 -1
  37. package/.chunks/formsExt-C9r4Gz9y.amd.js +0 -2
  38. package/.chunks/formsExt-C9r4Gz9y.amd.js.map +0 -1
  39. package/.chunks/formsExt-C9r4Gz9y.esm.js.map +0 -1
  40. package/.chunks/mocker-Bl1SzAJY.amd.js.map +0 -1
  41. package/.chunks/mocker-Bl1SzAJY.esm.js.map +0 -1
@@ -5,17 +5,17 @@
5
5
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
6
6
  /* end import css */
7
7
 
8
- import "./api-DZQlrC2R.esm.js";
8
+ import "./api-DupNAJPm.esm.js";
9
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
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";
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 ee, resolveDirective as te, resolveDynamicComponent as ne, toDisplayString as F, triggerRef as I, unref as L, useModel as R, watch as z, withCtx as B, withDirectives as V, withKeys as H, withModifiers as U } from "vue";
14
14
  //#region src/components/formsExt/menu/menu.vue?vue&type=script&setup=true&lang.ts
15
- var te = {
15
+ var W = {
16
16
  key: 0,
17
17
  class: "top-menu_selectAll"
18
- }, ne = /* @__PURE__ */ w({
18
+ }, re = /* @__PURE__ */ w({
19
19
  __name: "menu",
20
20
  props: /*@__PURE__*/ T({
21
21
  modelValue: {},
@@ -30,7 +30,7 @@ var te = {
30
30
  }),
31
31
  emits: ["update:modelValue"],
32
32
  setup(e) {
33
- let r = e, i = B(e, "modelValue"), a = M();
33
+ let r = e, i = R(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)) {
@@ -81,9 +81,9 @@ var te = {
81
81
  isActive: o(e)
82
82
  }), x({ _: 2 }, [e.content ? {
83
83
  name: "default",
84
- fn: H(() => [S(L(e.content), 1)]),
84
+ fn: B(() => [S(F(e.content), 1)]),
85
85
  key: "0"
86
- } : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (j(), y("div", te, [C(s, E(e.selectAllItem, {
86
+ } : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (j(), y("div", W, [C(s, E(e.selectAllItem, {
87
87
  class: "top-menu_item",
88
88
  color: "theme",
89
89
  styling: "",
@@ -91,11 +91,11 @@ var te = {
91
91
  isActive: i.value.length === e.items.length
92
92
  }), x({ _: 2 }, [e.selectAllItem.content ? {
93
93
  name: "default",
94
- fn: H(() => [S(L(e.selectAllItem.content), 1)]),
94
+ fn: B(() => [S(F(e.selectAllItem.content), 1)]),
95
95
  key: "0"
96
96
  } : void 0]), 1040, ["isActive"])])) : v("", !0)], 34));
97
97
  }
98
- }), re = { class: "top-selector2_itemMulti top-ellipsis" }, ie = /* @__PURE__ */ w({
98
+ }), ie = { class: "top-selector2_itemMulti top-ellipsis" }, ae = /* @__PURE__ */ w({
99
99
  __name: "itemMulti",
100
100
  props: {
101
101
  id: {},
@@ -103,26 +103,26 @@ var te = {
103
103
  },
104
104
  emits: ["delete"],
105
105
  setup(e) {
106
- return (t, n) => (j(), y("div", re, [S(L(e.name) + " ", 1), b("span", {
106
+ return (t, n) => (j(), y("div", ie, [S(F(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", {
110
110
  id: e.id,
111
111
  name: e.name
112
112
  }),
113
- onMousedown: n[1] ||= G(() => {}, ["stop"])
113
+ onMousedown: n[1] ||= U(() => {}, ["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, M(0)), J.get(e)), X = (e) => {
117
- Y(e).value++;
118
- }, Z = (e) => {
119
- K.get(e)?.clear(), X(e);
120
- }, Q = (e, t) => {
116
+ }), G = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), J = (e) => (q.has(e) || q.set(e, M(0)), q.get(e)), Y = (e) => {
117
+ J(e).value++;
118
+ }, X = (e) => {
119
+ G.get(e)?.clear(), Y(e);
120
+ }, Z = (e, t) => {
121
+ G.get(e)?.forEach((e) => t(e));
122
+ }, oe = (e, t) => {
121
123
  K.get(e)?.forEach((e) => t(e));
122
- }, ae = (e, t) => {
123
- q.get(e)?.forEach((e) => t(e));
124
- }, $ = (e, t, n) => {
125
- ae(e, (e) => {
124
+ }, Q = (e, t, n) => {
125
+ oe(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;
@@ -131,47 +131,47 @@ var te = {
131
131
  if (e.value.id !== t) return;
132
132
  Object.assign(e.value, n), r = !0;
133
133
  }
134
- r && R(e);
134
+ r && I(e);
135
135
  });
136
- }, oe = (e) => {
136
+ }, $ = (e) => {
137
137
  let t = window.mo?.user?.id;
138
138
  return JSON.stringify(e.params) + ":" + e.url + ":" + t;
139
139
  }, se = (e, t) => {
140
- let n = K.get(t)?.get(e);
140
+ let n = G.get(t)?.get(e);
141
141
  if (n) return n.result = n.result.map((e) => ({ ...e })), n;
142
142
  }, ce = (e, t, n) => {
143
- K.has(t) || K.set(t, /* @__PURE__ */ new Map()), K.get(t)?.set(e, n);
143
+ G.has(t) || G.set(t, /* @__PURE__ */ new Map()), G.get(t)?.set(e, n);
144
144
  }, le = (e, t) => {
145
- q.has(e) || q.set(e, /* @__PURE__ */ new Set()), q.get(e)?.add(t), k(() => q.get(e)?.delete(t));
145
+ K.has(e) || K.set(e, /* @__PURE__ */ new Set()), K.get(e)?.add(t), k(() => K.get(e)?.delete(t));
146
146
  }, ue = (e, t, n) => {
147
- Q(e, (e) => {
147
+ Z(e, (e) => {
148
148
  let r = e.result.find((e) => e.id === t);
149
149
  r && Object.assign(r, n);
150
- }), $(e, t, n), X(e);
150
+ }), Q(e, t, n), Y(e);
151
151
  }, de = (e, t) => {
152
- Q(e, (e) => {
152
+ Z(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
- }), $(e, t, { name: "--" }), X(e);
155
+ }), Q(e, t, { name: "--" }), Y(e);
156
156
  }, fe = (e, t, n, i, a) => {
157
157
  let o = M([]), s = M(!1), c = M(0), l = "", u;
158
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 = se(oe(e), e.path);
162
+ let t = se($(e), e.path);
163
163
  if (!t) {
164
164
  o.value = [], u = void 0;
165
165
  return;
166
166
  }
167
167
  o.value = t.result, u = t.nextOffset;
168
168
  };
169
- e && i && V(Y(e.path), () => {
169
+ e && i && z(J(e.path), () => {
170
170
  d();
171
171
  });
172
172
  let f = async () => {
173
173
  if (!e) return;
174
- let t = i ? oe(e) : void 0;
174
+ let t = i ? $(e) : void 0;
175
175
  if (t) {
176
176
  let n = se(t, e.path);
177
177
  if (n) return e.abortByFingerprint(), n;
@@ -262,10 +262,10 @@ var te = {
262
262
  };
263
263
  if (i.apiRequest) {
264
264
  let e = [() => n.items, i.items];
265
- n.multiselect && e.push(t), V(e, () => {
265
+ n.multiselect && e.push(t), z(e, () => {
266
266
  f();
267
267
  }, { deep: 2 });
268
- } else V([
268
+ } else z([
269
269
  t,
270
270
  () => n.items,
271
271
  a
@@ -274,7 +274,7 @@ var te = {
274
274
  }, {
275
275
  immediate: !0,
276
276
  deep: 2
277
- }), V([() => n.items?.length ?? 0, () => n.items], (e, r) => {
277
+ }), z([() => n.items?.length ?? 0, () => n.items], (e, r) => {
278
278
  (e[0] < r[0] || e[1] !== r[1]) && (Array.isArray(t.value) ? t.value : [t.value]).forEach((e) => {
279
279
  e.id !== o.id && (n.items?.find((t) => t.id === e.id) || (e.name = "--"));
280
280
  });
@@ -344,11 +344,11 @@ var te = {
344
344
  }),
345
345
  emits: /*@__PURE__*/ T(["appendItem", "open"], ["update:modelValue"]),
346
346
  setup(e, { expose: t, emit: r }) {
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;
348
- c.apiRequest && V(u.searchText, () => {
349
- c.setSearchTextAndLoad(u.searchText.value);
347
+ let i = e, a = R(e, "modelValue"), o = r, c = g(() => i.searchType === "inline" && i.multiselect || i.searchType === "inline" && n.state.isMobile ? "popup" : i.searchType), u = fe(i.api, i.apiSetSearchParams, i.minLength, i.useCache, a), d = _e(a, i, o, u), w = g(() => i.buttonProps ? "TopButton" : c.value === "inline" ? "TopInput" : "div"), T = M(null), D = M(null), O = () => T.value?.popup;
348
+ u.apiRequest && z(d.searchText, () => {
349
+ u.setSearchTextAndLoad(d.searchText.value);
350
350
  });
351
- let D = g(() => Array.isArray(a.value) || i.multiselect || !i.selectedAsPlaceholder && s.value !== "inline" ? i.placeholder : a.value?.name || i.placeholder), O = (e) => {
351
+ let k = g(() => Array.isArray(a.value) || i.multiselect || !i.selectedAsPlaceholder && c.value !== "inline" ? i.placeholder : a.value?.name || i.placeholder), A = (e) => {
352
352
  let t = !1;
353
353
  switch (e.key) {
354
354
  case "Delete":
@@ -364,53 +364,57 @@ var te = {
364
364
  t = !0;
365
365
  break;
366
366
  case "Escape":
367
- s.value === "inline" && u.resetSearch();
367
+ c.value === "inline" && d.resetSearch();
368
368
  break;
369
369
  }
370
370
  let n = e.key.length === 1 && !e.ctrlKey && !e.metaKey;
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());
372
- }, k = (e) => {
373
- e.preventDefault(), u.selectNextItem();
374
- }, A = () => {
375
- c.apiRequest && c.setSearchTextAndLoad(u.searchText.value, !1), o("open");
376
- }, R = () => {
377
- s.value === "popup" && u.searchText.value && u.resetSearch();
371
+ (c.value === "popup" || c.value === "inline") && n && (t = !0), O()?.elPopup && (t = !1), t && (c.value === "popup" && (e.preventDefault(), e.stopPropagation(), n && (d.searchText.value || (d.searchText.value = e.key))), e.currentTarget?.click());
372
+ }, I = (e) => {
373
+ e.preventDefault(), d.selectNextItem();
374
+ }, H = () => {
375
+ u.apiRequest && u.setSearchTextAndLoad(d.searchText.value, !1), o("open");
376
+ }, U = () => {
377
+ c.value === "popup" && d.searchText.value && d.resetSearch();
378
378
  }, W = (e) => {
379
379
  let t = e.target;
380
- t.scrollTop / (t.scrollHeight - t.offsetHeight) > .8 && c.load(!0);
380
+ t.scrollTop / (t.scrollHeight - t.offsetHeight) > .8 && u.load(!0);
381
381
  };
382
382
  return t({
383
- getPopup: T,
383
+ getPopup: O,
384
+ popupOpenerRef: D,
384
385
  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));
386
+ u.apiRequest && (e && X(u.apiRequest.path), u.items.value = [], u.countLoading.value = 0, u.apiRequest.params.offset = 0, requestAnimationFrame(() => {
387
+ d.itemsForShow.value = [];
388
+ }), O()?.elPopup && u.setSearchTextAndLoad(d.searchText.value));
388
389
  },
389
390
  updateCacheItemById: (e, t) => {
390
- c.apiRequest && ue(c.apiRequest.path, e, t);
391
+ u.apiRequest && ue(u.apiRequest.path, e, t);
391
392
  },
392
393
  deleteCacheItemById: (e) => {
393
- c.apiRequest && de(c.apiRequest.path, e);
394
+ u.apiRequest && de(u.apiRequest.path, e);
394
395
  }
395
396
  }), (t, r) => {
396
- let i = F("TopButton"), o = F("TopLoadbar"), g = I("top-focus"), T = I("top-shortcut");
397
- return j(), _(z(m), {
397
+ let i = ee("TopLoadbar"), o = te("top-focus"), g = te("top-shortcut");
398
+ return j(), _(L(m), {
398
399
  ref_key: "popupRef",
399
- ref: w,
400
- onOpen: r[3] ||= (e) => A(),
401
- onClose: r[4] ||= (e) => R(),
402
- onScrollContentList: r[5] ||= (e) => z(c) ? W(e) : void 0,
400
+ ref: T,
401
+ onOpen: r[3] ||= (e) => H(),
402
+ onClose: r[4] ||= (e) => U(),
403
+ onScrollContentList: r[5] ||= (e) => L(u) ? W(e) : void 0,
403
404
  notch: !1,
404
405
  transitionDuration: 0,
405
- openByFocusInput: s.value === "inline" && (e.openByFocusInput ?? !0),
406
- disabled: s.value === "inline" && z(u).genIsShort()
406
+ openByFocusInput: c.value === "inline" && (e.openByFocusInput ?? !0),
407
+ disabled: c.value === "inline" && L(d).genIsShort()
407
408
  }, x({
408
- opener: H(() => [U((j(), _(ee(d.value), E(e.buttonProps, {
409
+ opener: B(() => [V((j(), _(ne(w.value), E({
410
+ ref_key: "popupOpenerRef",
411
+ ref: D
412
+ }, e.buttonProps, {
409
413
  class: {
410
414
  "top-selector2": !0,
411
415
  "top-selector2-multiselect": e.multiselect,
412
416
  ["top-selector2-" + e.modificator]: !!e.modificator,
413
- "top-as-input": !e.buttonProps && s.value !== "inline",
417
+ "top-as-input": !e.buttonProps && c.value !== "inline",
414
418
  "top-as-selector": !0,
415
419
  ["top-size_" + e.size]: !0,
416
420
  "top-disabled": e.disabled,
@@ -419,32 +423,32 @@ var te = {
419
423
  },
420
424
  icon: e.icon,
421
425
  tabindex: "0",
422
- onKeydown: O,
423
- onBlur: r[0] ||= (e) => s.value === "inline" && z(u).resetSearch(),
424
- placeholder: D.value,
426
+ onKeydown: A,
427
+ onBlur: r[0] ||= (e) => c.value === "inline" && L(d).resetSearch(),
428
+ placeholder: k.value,
425
429
  title: e.title,
426
- captionType: s.value === "inline" && e.title !== void 0 ? "top" : void 0,
427
- modelValue: z(u).searchText.value,
428
- "onUpdate:modelValue": r[1] ||= (e) => z(u).searchText.value = e
430
+ captionType: c.value === "inline" && e.title !== void 0 ? "top" : void 0,
431
+ modelValue: L(d).searchText.value,
432
+ "onUpdate:modelValue": r[1] ||= (e) => L(d).searchText.value = e
429
433
  }), {
430
- default: H(() => [
431
- e.multiselect ? (j(), y("div", ve, [(j(!0), y(h, null, N(a.value, (e) => (j(), _(ie, {
434
+ default: B(() => [
435
+ e.multiselect ? (j(), y("div", ve, [(j(!0), y(h, null, N(a.value, (e) => (j(), _(ae, {
432
436
  key: e.id ?? void 0,
433
437
  id: e.id,
434
438
  name: e.name,
435
- onDelete: z(u).deleteItemByItem
439
+ onDelete: L(d).deleteItemByItem
436
440
  }, null, 8, [
437
441
  "id",
438
442
  "name",
439
443
  "onDelete"
440
444
  ]))), 128))])) : v("", !0),
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", {
445
+ c.value !== "inline" && !e.multiselect ? (j(), y("span", ye, F(Array.isArray(a.value) ? "" : a.value.name), 1)) : v("", !0),
446
+ e.multiselect && !a.value.length ? (j(), y("span", be, F(k.value), 1)) : v("", !0),
447
+ e.addChanger && !e.buttonProps && !e.multiselect && L(d).itemsForShow.value.length > 1 && !e.disabled ? (j(), y("span", {
444
448
  key: 3,
445
449
  class: "top-changer top-changer-selector",
446
450
  "data-top-popup-disabled": "true",
447
- onClick: k
451
+ onClick: I
448
452
  })) : v("", !0)
449
453
  ]),
450
454
  _: 1
@@ -456,72 +460,72 @@ var te = {
456
460
  "captionType",
457
461
  "modelValue"
458
462
  ])), [[
459
- g,
463
+ o,
460
464
  e.isError,
461
465
  void 0,
462
466
  { onupdate: !0 }
463
- ], [T, e.openerShortcut]])]),
464
- contentList: H(() => [
465
- (j(!0), y(h, null, N(z(u).itemsForShow.value, (r) => (j(), _(z(p), E({
467
+ ], [g, e.openerShortcut]])]),
468
+ contentList: B(() => [
469
+ (j(!0), y(h, null, N(L(d).itemsForShow.value, (r) => (j(), _(L(p), E({
466
470
  key: r.id ?? void 0,
467
471
  class: {
468
472
  "top-active": !Array.isArray(a.value) && !e.multiselect && a.value.id === r.id && a.value.name === r.name,
469
- "top-selector2_item-all": r.id === z(0),
470
- "top-selector2_item-new": r.id === z(null)
473
+ "top-selector2_item-all": r.id === L(0),
474
+ "top-selector2_item-new": r.id === L(null)
471
475
  },
472
- closeByClick: !e.multiselect || z(n).state.isMobile
473
- }, { ref_for: !0 }, r.listItemProps, { onClick: (e) => z(u).selectItem(r) }), x({
474
- default: H(() => [t.$slots.item ? P(t.$slots, "item", {
476
+ closeByClick: !e.multiselect || L(n).state.isMobile
477
+ }, { ref_for: !0 }, r.listItemProps, { onClick: (e) => L(d).selectItem(r) }), x({
478
+ default: B(() => [t.$slots.item ? P(t.$slots, "item", {
475
479
  key: 0,
476
480
  item: r
477
- }) : (j(), y(h, { key: 1 }, [S(L(r.name), 1)], 64))]),
481
+ }) : (j(), y(h, { key: 1 }, [S(F(r.name), 1)], 64))]),
478
482
  _: 2
479
483
  }, [t.$slots.actions ? {
480
484
  name: "actions",
481
- fn: H(() => [P(t.$slots, "actions", { item: r })]),
485
+ fn: B(() => [P(t.$slots, "actions", { item: r })]),
482
486
  key: "0"
483
487
  } : void 0]), 1040, [
484
488
  "class",
485
489
  "closeByClick",
486
490
  "onClick"
487
491
  ]))), 128)),
488
- !z(u).itemsForShow.value.length && !z(u).genIsShort() ? (j(), _(z(p), {
492
+ !L(d).itemsForShow.value.length && !L(d).genIsShort() ? (j(), _(L(p), {
489
493
  key: 0,
490
494
  type: "regular"
491
495
  }, {
492
- default: H(() => [z(c).isLoading.value && !z(c).countLoading.value || e.itemsIsLoading ? (j(), _(z(l), {
496
+ default: B(() => [L(u).isLoading.value && !L(u).countLoading.value || e.itemsIsLoading ? (j(), _(L(l), {
493
497
  key: 0,
494
498
  type: "circles"
495
- })) : (j(), y(h, { key: 1 }, [S(L(t.$i18n.Common.No_results), 1)], 64))]),
499
+ })) : (j(), y(h, { key: 1 }, [S(F(t.$i18n.Common.No_results), 1)], 64))]),
496
500
  _: 1
497
501
  })) : v("", !0),
498
- z(c).countLoading.value && z(c).isLoading.value && s.value === "inline" ? (j(), _(o, { key: 1 })) : v("", !0)
502
+ L(u).countLoading.value && L(u).isLoading.value && c.value === "inline" ? (j(), _(i, { key: 1 })) : v("", !0)
499
503
  ]),
500
504
  _: 2
501
- }, [s.value === "popup" ? {
505
+ }, [c.value === "popup" ? {
502
506
  name: "widget",
503
- fn: H(() => [b("div", xe, [U(C(z(f), {
507
+ fn: B(() => [b("div", xe, [V(C(L(f), {
504
508
  title: "Поиск",
505
509
  icon: "",
506
- modelValue: z(u).searchText.value,
507
- "onUpdate:modelValue": r[2] ||= (e) => z(u).searchText.value = e,
508
- isLoading: !!z(c).countLoading.value && z(c).isLoading.value,
509
- placeholder: D.value
510
+ modelValue: L(d).searchText.value,
511
+ "onUpdate:modelValue": r[2] ||= (e) => L(d).searchText.value = e,
512
+ isLoading: !!L(u).countLoading.value && L(u).isLoading.value,
513
+ placeholder: k.value
510
514
  }, null, 8, [
511
515
  "modelValue",
512
516
  "isLoading",
513
517
  "placeholder"
514
518
  ]), [[
515
- g,
519
+ o,
516
520
  a.value,
517
521
  void 0,
518
522
  { onupdate: !0 }
519
- ]]), e.hasCloserBtn && !t.$core.state.isMobile ? (j(), _(i, {
523
+ ]]), e.hasCloserBtn && !t.$core.state.isMobile ? (j(), _(L(s), {
520
524
  key: 0,
521
525
  class: "closer",
522
526
  color: "theme"
523
527
  }, {
524
- default: H(() => [S(L(t.$i18n.Common.Cancel), 1)]),
528
+ default: B(() => [S(F(t.$i18n.Common.Cancel), 1)]),
525
529
  _: 1
526
530
  })) : v("", !0)])]),
527
531
  key: "0"
@@ -579,7 +583,7 @@ var te = {
579
583
  key: 0,
580
584
  class: "top-editArea_caption",
581
585
  onClick: n[0] ||= (e) => d()
582
- }, [P(t.$slots, "caption", {}, () => [S(L(e.title), 1)])])) : v("", !0), b("div", { class: D({
586
+ }, [P(t.$slots, "caption", {}, () => [S(F(e.title), 1)])])) : v("", !0), b("div", { class: D({
583
587
  "top-editArea_form": !0,
584
588
  "top-forms-focusable": !0,
585
589
  "top-as-input": !0,
@@ -600,7 +604,7 @@ var te = {
600
604
  class: "top-editArea_element",
601
605
  onFocus: n[2] ||= () => a.value = !0,
602
606
  onBlur: n[3] ||= () => a.value = !1,
603
- onKeyup: [W(u, ["esc"]), n[4] ||= W(G((e) => l(i.value), ["ctrl"]), ["enter"])]
607
+ onKeyup: [H(u, ["esc"]), n[4] ||= H(U((e) => l(i.value), ["ctrl"]), ["enter"])]
604
608
  }, null, 8, [
605
609
  "modelValue",
606
610
  "name",
@@ -621,7 +625,7 @@ var te = {
621
625
  onClick: u
622
626
  }, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
623
627
  name: "default",
624
- fn: H(() => [S(L(e.cancelText), 1)]),
628
+ fn: B(() => [S(F(e.cancelText), 1)]),
625
629
  key: "0"
626
630
  }]), 1032, ["icon"])) : v("", !0), o.value ? (j(), _(s, {
627
631
  key: 1,
@@ -630,7 +634,7 @@ var te = {
630
634
  onClick: n[5] ||= (e) => l(i.value)
631
635
  }, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
632
636
  name: "default",
633
- fn: H(() => [S(L(e.submitText), 1)]),
637
+ fn: B(() => [S(F(e.submitText), 1)]),
634
638
  key: "0"
635
639
  }]), 1032, ["icon"])) : v("", !0)])], 2)], 2));
636
640
  }
@@ -645,20 +649,20 @@ var te = {
645
649
  emits: ["update:modelValue"],
646
650
  setup(e, { emit: t }) {
647
651
  let n = e, r = M(n.modelValue);
648
- V(() => n.modelValue, () => {
652
+ z(() => n.modelValue, () => {
649
653
  r.value = n.modelValue;
650
654
  });
651
655
  let i = t, o = () => {
652
656
  i("update:modelValue", r.value);
653
657
  };
654
658
  return (t, n) => (j(), y("div", Te, [C(a, E(e.input, {
655
- onKeydownCapture: n[0] ||= W(G((t) => r.value = e.modelValue, ["stop"]), ["esc"]),
656
- onKeydown: W(G(o, ["stop"]), ["enter"]),
659
+ onKeydownCapture: n[0] ||= H(U((t) => r.value = e.modelValue, ["stop"]), ["esc"]),
660
+ onKeydown: H(U(o, ["stop"]), ["enter"]),
657
661
  modelValue: r.value,
658
662
  "onUpdate:modelValue": n[1] ||= (e) => r.value = e
659
663
  }), x({ _: 2 }, [t.$slots.caption ? {
660
664
  name: "caption",
661
- fn: H(() => [P(t.$slots, "caption")]),
665
+ fn: B(() => [P(t.$slots, "caption")]),
662
666
  key: "0"
663
667
  } : void 0]), 1040, ["onKeydown", "modelValue"]), r.value !== e.modelValue || e.alwaysShowSubmitBtn ? (j(), _(s, E({
664
668
  key: 0,
@@ -680,8 +684,8 @@ var te = {
680
684
  }),
681
685
  emits: ["update:modelValue"],
682
686
  setup(e) {
683
- let t = B(e, "modelValue"), n = e, r = M(null);
684
- V(t, () => {
687
+ let t = R(e, "modelValue"), n = e, r = M(null);
688
+ z(t, () => {
685
689
  let e = n.items.map((e) => e.value);
686
690
  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
691
  }, { immediate: !0 });
@@ -710,7 +714,7 @@ var te = {
710
714
  "data-top-icon": n.icon
711
715
  }, x({ _: 2 }, [n.label ? {
712
716
  name: "default",
713
- fn: H(() => [S(L(n.label), 1)]),
717
+ fn: B(() => [S(F(n.label), 1)]),
714
718
  key: "0"
715
719
  } : void 0]), 1032, [
716
720
  "class",
@@ -735,7 +739,7 @@ var te = {
735
739
  "data-top-icon": n.icon
736
740
  }, x({ _: 2 }, [n.label ? {
737
741
  name: "default",
738
- fn: H(() => [S(L(n.label), 1)]),
742
+ fn: B(() => [S(F(n.label), 1)]),
739
743
  key: "0"
740
744
  } : void 0]), 1032, [
741
745
  "class",
@@ -761,7 +765,7 @@ var te = {
761
765
  }),
762
766
  emits: ["update:modelValue"],
763
767
  setup(e) {
764
- let t = B(e, "modelValue");
768
+ let t = R(e, "modelValue");
765
769
  return (e, n) => (j(), _(De, {
766
770
  class: "top-radioGroup",
767
771
  modelValue: t.value,
@@ -771,7 +775,7 @@ var te = {
771
775
  showIndicator: e.$props.showIndicator,
772
776
  isError: e.$props.isError
773
777
  }, {
774
- default: H(() => [P(e.$slots, "default")]),
778
+ default: B(() => [P(e.$slots, "default")]),
775
779
  _: 3
776
780
  }, 8, [
777
781
  "modelValue",
@@ -795,7 +799,7 @@ var te = {
795
799
  }),
796
800
  emits: ["update:modelValue"],
797
801
  setup(e) {
798
- let t = B(e, "modelValue");
802
+ let t = R(e, "modelValue");
799
803
  return (e, n) => (j(), _(De, {
800
804
  class: "top-checkboxGroup",
801
805
  modelValue: t.value,
@@ -805,7 +809,7 @@ var te = {
805
809
  showIndicator: e.$props.showIndicator,
806
810
  isError: e.$props.isError
807
811
  }, {
808
- default: H(() => [P(e.$slots, "default")]),
812
+ default: B(() => [P(e.$slots, "default")]),
809
813
  _: 3
810
814
  }, 8, [
811
815
  "modelValue",
@@ -851,22 +855,22 @@ var te = {
851
855
  r.value = !1, n("accept");
852
856
  };
853
857
  return (t, n) => r.value ? (j(), y("div", Pe, [
854
- b("div", Fe, L(e.title), 1),
858
+ b("div", Fe, F(e.title), 1),
855
859
  b("div", {
856
860
  class: "top-policy_description",
857
861
  innerHTML: e.description
858
862
  }, null, 8, Ie),
859
- C(z(s), {
863
+ C(L(s), {
860
864
  size: "m",
861
865
  onClick: i
862
866
  }, {
863
- default: H(() => [S(L(e.acceptText), 1)]),
867
+ default: B(() => [S(F(e.acceptText), 1)]),
864
868
  _: 1
865
869
  })
866
870
  ])) : v("", !0);
867
871
  }
868
872
  });
869
873
  //#endregion
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 };
874
+ export { Ee as a, pe as c, X as d, re 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
875
 
872
- //# sourceMappingURL=formsExt-C9r4Gz9y.esm.js.map
876
+ //# sourceMappingURL=formsExt-DzXSTWaT.esm.js.map