@dxtmisha/functional 1.10.4 → 1.11.0

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.
package/dist/library.js CHANGED
@@ -1,38 +1,38 @@
1
- import { Api as e, ApiMethodItem as t, BroadcastMessage as n, Cookie as r, DataStorage as i, Datetime as a, ErrorCenter as o, EventItem as s, Formatters as c, Geo as l, GeoFlag as u, GeoIntl as d, Hash as f, Icons as p, Loading as m, Meta as h, ScrollbarWidth as g, SearchList as _, Translate as v, executeFunction as y, executePromise as b, forEach as x, getColumn as S, getElementId as C, getExp as w, isApiSuccess as ee, isArray as te, isDomRuntime as ne, isFunction as re, isObject as T, isObjectNotArray as E, isSelected as D, isString as O, random as ie, toArray as k, toCamelCase as ae, toDate as oe } from "@dxtmisha/functional-basic";
2
- import { computed as A, customRef as se, effectScope as ce, getCurrentInstance as le, h as ue, inject as de, isRef as j, onUnmounted as fe, provide as pe, ref as M, shallowRef as N, toRefs as me, triggerRef as he, useAttrs as ge, useSlots as _e, watch as P, watchEffect as ve } from "vue";
1
+ import { Api as e, ApiMethodItem as t, BroadcastMessage as n, Cookie as r, DataStorage as i, Datetime as a, ErrorCenter as o, EventItem as s, Formatters as c, Geo as l, GeoFlag as u, GeoIntl as d, Hash as f, Icons as p, Loading as m, Meta as h, ScrollbarWidth as g, SearchList as _, ServerStorage as v, Translate as y, executeFunction as b, executePromise as x, forEach as S, getColumn as C, getElementId as w, getExp as T, isApiSuccess as ee, isArray as te, isDomRuntime as E, isFunction as ne, isObject as D, isObjectNotArray as O, isSelected as k, isString as A, random as re, toArray as j, toCamelCase as ie, toDate as ae } from "@dxtmisha/functional-basic";
2
+ import { computed as M, customRef as oe, effectScope as se, getCurrentInstance as ce, h as le, inject as ue, isRef as N, onUnmounted as de, provide as fe, ref as P, shallowRef as F, toRefs as pe, triggerRef as me, useAttrs as he, useSlots as ge, watch as I, watchEffect as L } from "vue";
3
3
  export * from "@dxtmisha/functional-basic";
4
4
  //#endregion
5
- //#region \0@oxc-project+runtime@0.123.0/helpers/typeof.js
6
- function F(e) {
5
+ //#region \0@oxc-project+runtime@0.124.0/helpers/typeof.js
6
+ function R(e) {
7
7
  "@babel/helpers - typeof";
8
- return F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
8
+ return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
9
9
  return typeof e;
10
10
  } : function(e) {
11
11
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
12
- }, F(e);
12
+ }, R(e);
13
13
  }
14
14
  //#endregion
15
- //#region \0@oxc-project+runtime@0.123.0/helpers/toPrimitive.js
16
- function ye(e, t) {
17
- if (F(e) != "object" || !e) return e;
15
+ //#region \0@oxc-project+runtime@0.124.0/helpers/toPrimitive.js
16
+ function _e(e, t) {
17
+ if (R(e) != "object" || !e) return e;
18
18
  var n = e[Symbol.toPrimitive];
19
19
  if (n !== void 0) {
20
20
  var r = n.call(e, t || "default");
21
- if (F(r) != "object") return r;
21
+ if (R(r) != "object") return r;
22
22
  throw TypeError("@@toPrimitive must return a primitive value.");
23
23
  }
24
24
  return (t === "string" ? String : Number)(e);
25
25
  }
26
26
  //#endregion
27
- //#region \0@oxc-project+runtime@0.123.0/helpers/toPropertyKey.js
28
- function be(e) {
29
- var t = ye(e, "string");
30
- return F(t) == "symbol" ? t : t + "";
27
+ //#region \0@oxc-project+runtime@0.124.0/helpers/toPropertyKey.js
28
+ function ve(e) {
29
+ var t = _e(e, "string");
30
+ return R(t) == "symbol" ? t : t + "";
31
31
  }
32
32
  //#endregion
33
- //#region \0@oxc-project+runtime@0.123.0/helpers/defineProperty.js
34
- function I(e, t, n) {
35
- return (t = be(t)) in e ? Object.defineProperty(e, t, {
33
+ //#region \0@oxc-project+runtime@0.124.0/helpers/defineProperty.js
34
+ function z(e, t, n) {
35
+ return (t = ve(t)) in e ? Object.defineProperty(e, t, {
36
36
  value: n,
37
37
  enumerable: !0,
38
38
  configurable: !0,
@@ -41,9 +41,9 @@ function I(e, t, n) {
41
41
  }
42
42
  //#endregion
43
43
  //#region src/classes/design/DesignChanged.ts
44
- var xe = class {
44
+ var ye = class {
45
45
  constructor(e, t = Object.keys(e)) {
46
- I(this, "cache", {}), this.props = e, this.watch = t;
46
+ z(this, "cache", {}), this.props = e, this.watch = t;
47
47
  }
48
48
  is(e) {
49
49
  return te(e) ? !!e.find((e) => this.isDifferent(e)) : this.isDifferent(e);
@@ -62,9 +62,9 @@ var xe = class {
62
62
  var t, n;
63
63
  return ((t = this.cache) == null ? void 0 : t[e]) !== ((n = this.props) == null ? void 0 : n[e]);
64
64
  }
65
- }, Se = class {
65
+ }, be = class {
66
66
  constructor(e, t, n) {
67
- I(this, "event", {}), I(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new xe(e, n);
67
+ z(this, "event", {}), z(this, "changed", void 0), this.props = e, this.callback = t, this.changed = new ye(e, n);
68
68
  }
69
69
  make(e) {
70
70
  return this.makeCallback(e), this;
@@ -81,7 +81,7 @@ var xe = class {
81
81
  makeCallbackItem() {
82
82
  this.callback && this.callback(this.event);
83
83
  }
84
- }, Ce = class extends Se {
84
+ }, xe = class extends be {
85
85
  make(e) {
86
86
  return this.makeCallback(e).then(), this;
87
87
  }
@@ -91,32 +91,32 @@ var xe = class {
91
91
  };
92
92
  //#endregion
93
93
  //#region src/functions/ref/getRef.ts
94
- function L(e) {
95
- return j(e) ? e.value : e;
94
+ function B(e) {
95
+ return N(e) ? e.value : e;
96
96
  }
97
97
  //#endregion
98
98
  //#region src/functions/render/getClassName.ts
99
- function we(e) {
99
+ function Se(e) {
100
100
  return e && "class" in e && typeof e.class == "string" ? e.class : void 0;
101
101
  }
102
102
  //#endregion
103
103
  //#region src/functions/render/getIndexForRender.ts
104
- function Te(e, t, n) {
105
- let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a = we(t), o = "";
106
- if (O(e) && (o += e), n && (o += `.${n}`), i && O(i) && (o += `.${i}`), a && (o += `.${a}`), r && (o += `.${r}`), o !== "") return o;
104
+ function V(e, t, n) {
105
+ let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a = Se(t), o = "";
106
+ if (A(e) && (o += e), n && (o += `.${n}`), i && A(i) && (o += `.${i}`), a && (o += `.${a}`), r && (o += `.${r}`), o !== "") return o;
107
107
  }
108
108
  //#endregion
109
109
  //#region src/functions/ref/render.ts
110
- function Ee(e, t, n, r) {
110
+ function Ce(e, t, n, r) {
111
111
  let i = t, a = t && "key" in t;
112
112
  return (!t || !a) && (i = {
113
113
  ...t,
114
- key: Te(e, t, r)
115
- }), ue(e, i, n);
114
+ key: V(e, t, r)
115
+ }), le(e, i, n);
116
116
  }
117
117
  //#endregion
118
118
  //#region src/functions/toBind.ts
119
- function R(e, t) {
119
+ function H(e, t) {
120
120
  let n = e == null ? void 0 : e.class, r = t == null ? void 0 : t.class, i = e == null ? void 0 : e.style, a = t == null ? void 0 : t.style, o = {
121
121
  ...e,
122
122
  ...t
@@ -125,17 +125,17 @@ function R(e, t) {
125
125
  }
126
126
  //#endregion
127
127
  //#region src/functions/toBinds.ts
128
- function De(...e) {
128
+ function we(...e) {
129
129
  let t = {};
130
130
  return e.forEach((e) => {
131
- e && (t = R(t, e));
131
+ e && (t = H(t, e));
132
132
  }), t;
133
133
  }
134
134
  //#endregion
135
135
  //#region src/classes/design/DesignComponents.ts
136
- var z = class {
136
+ var U = class {
137
137
  constructor(e = {}, t) {
138
- I(this, "caching", {}), this.components = e, this.modification = t;
138
+ z(this, "caching", {}), this.components = e, this.modification = t;
139
139
  }
140
140
  is(e) {
141
141
  return e in this.components;
@@ -146,9 +146,9 @@ var z = class {
146
146
  }
147
147
  getModification(e, t) {
148
148
  if (e) {
149
- e in this.caching || (this.caching[e] = A(() => this.computeModification(e)));
149
+ e in this.caching || (this.caching[e] = M(() => this.computeModification(e)));
150
150
  let n = this.caching[e];
151
- if (n) return t ? De(n.value, t) : n.value;
151
+ if (n) return t ? we(n.value, t) : n.value;
152
152
  }
153
153
  return t;
154
154
  }
@@ -159,7 +159,7 @@ var z = class {
159
159
  renderOne(e, t, n, r) {
160
160
  if (this.is(e)) {
161
161
  let i = r == null ? e : r;
162
- return Ee(this.get(e), this.getModification(i, t), n, i);
162
+ return Ce(this.get(e), this.getModification(i, t), n, i);
163
163
  }
164
164
  }
165
165
  renderAdd(e, t, n, r, i) {
@@ -167,21 +167,21 @@ var z = class {
167
167
  }
168
168
  computeModification(e) {
169
169
  var t;
170
- let n = L((t = this.modification) == null ? void 0 : t[e]);
171
- if (n && E(n)) {
170
+ let n = B((t = this.modification) == null ? void 0 : t[e]);
171
+ if (n && O(n)) {
172
172
  let e = {};
173
- return x(n, (t, n) => {
174
- e[n] = L(t);
173
+ return S(n, (t, n) => {
174
+ e[n] = B(t);
175
175
  }), e;
176
176
  }
177
177
  return {};
178
178
  }
179
- }, Oe = class extends z {}, ke = class {
179
+ }, Te = class extends U {}, Ee = class {
180
180
  constructor(e, t, n) {
181
- I(this, "name", void 0), I(this, "element", M()), I(this, "refs", void 0), I(this, "components", void 0), I(this, "emits", void 0), I(this, "classes", void 0), I(this, "classesSub", void 0), I(this, "styles", void 0), I(this, "stylesSub", void 0), I(this, "attrs", void 0), I(this, "slots", void 0), I(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ? me(this.props) : {}, this.components = new z(n == null ? void 0 : n.components, n == null ? void 0 : n.compMod), this.emits = n == null ? void 0 : n.emits, this.classes = A(() => this.updateClasses()), this.styles = A(() => this.updateStyles()), this.attrs = ge(), this.slots = _e();
181
+ z(this, "name", void 0), z(this, "element", P()), z(this, "refs", void 0), z(this, "components", void 0), z(this, "emits", void 0), z(this, "classes", void 0), z(this, "classesSub", void 0), z(this, "styles", void 0), z(this, "stylesSub", void 0), z(this, "attrs", void 0), z(this, "slots", void 0), z(this, "dataExpose", void 0), this.props = t, this.options = n, this.name = this.initName(e), this.refs = this.props ? pe(this.props) : {}, this.components = new U(n == null ? void 0 : n.components, n == null ? void 0 : n.compMod), this.emits = n == null ? void 0 : n.emits, this.classes = M(() => this.updateClasses()), this.styles = M(() => this.updateStyles()), this.attrs = he(), this.slots = ge();
182
182
  }
183
183
  init() {
184
- return this.classesSub = A(() => this.initClasses()), this.stylesSub = A(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
184
+ return this.classesSub = M(() => this.initClasses()), this.stylesSub = M(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
185
185
  }
186
186
  getName() {
187
187
  return this.name.join("-");
@@ -190,13 +190,13 @@ var z = class {
190
190
  return String(this.name[0]);
191
191
  }
192
192
  getSubClass(e) {
193
- return `${this.getName()}__${k(e).join("__")}`;
193
+ return `${this.getName()}__${j(e).join("__")}`;
194
194
  }
195
195
  getStatusClass(e) {
196
- return `${this.getName()}--${k(e).join("--")}`;
196
+ return `${this.getName()}--${j(e).join("--")}`;
197
197
  }
198
198
  getStyle(e) {
199
- return `--${this.getName()}-sys-${k(e).join("-")}`;
199
+ return `--${this.getName()}-sys-${j(e).join("-")}`;
200
200
  }
201
201
  getAttrs() {
202
202
  var e;
@@ -221,19 +221,19 @@ var z = class {
221
221
  }
222
222
  }
223
223
  toClass(e) {
224
- return E(e) ? e : Array.isArray(e) ? { [e.filter((e) => typeof e == "string" && e.trim() !== "").join(" ")]: !0 } : typeof e == "string" ? { [e]: !0 } : {};
224
+ return O(e) ? e : Array.isArray(e) ? { [e.filter((e) => typeof e == "string" && e.trim() !== "").join(" ")]: !0 } : typeof e == "string" ? { [e]: !0 } : {};
225
225
  }
226
226
  toClassName(e) {
227
- if (T(e)) {
227
+ if (D(e)) {
228
228
  let t = {};
229
- return x(e, (e, n) => {
229
+ return S(e, (e, n) => {
230
230
  n.match(/\?\?/) ? t[n.replace(/\?\?/, this.getName())] = e : n.match(/\?/) ? t[n.replace(/\?/, this.getDesign())] = e : t[n] = e;
231
231
  }), t;
232
232
  }
233
233
  return {};
234
234
  }
235
235
  initName(e) {
236
- return x(e.split(".", 2), (e) => ae(e));
236
+ return S(e.split(".", 2), (e) => ie(e));
237
237
  }
238
238
  updateClasses() {
239
239
  var e, t, n;
@@ -263,18 +263,18 @@ var z = class {
263
263
  };
264
264
  //#endregion
265
265
  //#region src/functions/ref/toRefItem.ts
266
- function B(e) {
267
- return j(e) ? e : M(e);
266
+ function W(e) {
267
+ return N(e) ? e : P(e);
268
268
  }
269
269
  //#endregion
270
270
  //#region src/classes/ref/DatetimeRef.ts
271
- var Ae = class {
271
+ var De = class {
272
272
  constructor(e, t = "date", n = l.getLocation()) {
273
- I(this, "item", void 0), I(this, "type", void 0), I(this, "code", void 0), I(this, "date", void 0), I(this, "datetime", void 0), I(this, "year", M(2e3)), I(this, "month", M(1)), I(this, "day", M(1)), I(this, "hour", M(1)), I(this, "minute", M(1)), I(this, "second", M(1)), this.item = B(e), this.type = B(t), this.code = B(n), this.date = M(oe(this.item.value)), this.datetime = new a(this.date.value, this.type.value, this.code.value), P(this.item, (e) => {
274
- this.date.value = oe(e);
275
- }), P(this.type, (e) => this.datetime.setType(e)), P(this.code, (e) => this.datetime.setCode(e)), P(this.date, (e) => {
273
+ z(this, "item", void 0), z(this, "type", void 0), z(this, "code", void 0), z(this, "date", void 0), z(this, "datetime", void 0), z(this, "year", P(2e3)), z(this, "month", P(1)), z(this, "day", P(1)), z(this, "hour", P(1)), z(this, "minute", P(1)), z(this, "second", P(1)), this.item = W(e), this.type = W(t), this.code = W(n), this.date = P(ae(this.item.value)), this.datetime = new a(this.date.value, this.type.value, this.code.value), I(this.item, (e) => {
274
+ this.date.value = ae(e);
275
+ }), I(this.type, (e) => this.datetime.setType(e)), I(this.code, (e) => this.datetime.setCode(e)), I(this.date, (e) => {
276
276
  this.datetime.setDate(e), this.updateDate();
277
- }), this.datetime.setWatch(() => he(this.date)), this.updateDate();
277
+ }), this.datetime.setWatch(() => me(this.date)), this.updateDate();
278
278
  }
279
279
  getItem() {
280
280
  return this.item;
@@ -286,82 +286,78 @@ var Ae = class {
286
286
  return this.datetime;
287
287
  }
288
288
  getHoursType() {
289
- return A(() => this.date.value && this.datetime.getHoursType());
289
+ return M(() => this.date.value && this.datetime.getHoursType());
290
290
  }
291
291
  getFirstDayCode() {
292
- return A(() => this.date.value && this.datetime.getFirstDayCode());
292
+ return M(() => this.date.value && this.datetime.getFirstDayCode());
293
293
  }
294
294
  getYear() {
295
- return A(() => this.year.value);
295
+ return M(() => this.year.value);
296
296
  }
297
297
  getMonth() {
298
- return A(() => this.month.value);
298
+ return M(() => this.month.value);
299
299
  }
300
300
  getDay() {
301
- return A(() => this.day.value);
301
+ return M(() => this.day.value);
302
302
  }
303
303
  getHour() {
304
- return A(() => this.hour.value);
304
+ return M(() => this.hour.value);
305
305
  }
306
306
  getMinute() {
307
- return A(() => this.minute.value);
307
+ return M(() => this.minute.value);
308
308
  }
309
309
  getSecond() {
310
- return A(() => this.second.value);
310
+ return M(() => this.second.value);
311
311
  }
312
312
  getMaxDay() {
313
- return A(() => this.date.value && this.datetime.getMaxDay());
313
+ return M(() => this.date.value && this.datetime.getMaxDay());
314
314
  }
315
315
  locale(e = this.type.value, t) {
316
- return A(() => this.date.value && this.datetime.locale(e, t));
316
+ return M(() => this.date.value && this.datetime.locale(e, t));
317
317
  }
318
318
  standard(e = !0) {
319
- return A(() => this.date.value && this.datetime.standard(e));
319
+ return M(() => this.date.value && this.datetime.standard(e));
320
320
  }
321
321
  updateDate() {
322
322
  return this.year.value = this.datetime.getYear(), this.month.value = this.datetime.getMonth(), this.day.value = this.datetime.getDay(), this.hour.value = this.datetime.getHour(), this.minute.value = this.datetime.getMinute(), this.second.value = this.datetime.getSecond(), this;
323
323
  }
324
- }, V = class {
324
+ }, G = class {
325
325
  static run(e) {
326
326
  return this.getScope().run(e);
327
327
  }
328
328
  static getScope() {
329
- return this.scope || (this.scope = ce(!0)), this.scope;
329
+ return v.get("__ui:effect-scope-global__", () => se(!0));
330
330
  }
331
- };
332
- I(V, "scope", void 0);
333
- //#endregion
334
- //#region src/classes/ref/EventRef.ts
335
- var je = class extends s {
331
+ }, Oe = class extends s {
336
332
  constructor(e, t, n = ["click"], r, i, a) {
337
- let o = B(e), s = B(t);
338
- super(o.value, n, r, i, a), s.value && this.setElementControl(s.value), P(o, (e) => this.setElement(e)), P(s, (e) => this.setElementControl(e));
333
+ let o = W(e), s = W(t);
334
+ super(o.value, n, r, i, a), s.value && this.setElementControl(s.value), I(o, (e) => this.setElement(e)), I(s, (e) => this.setElementControl(e));
339
335
  }
340
- }, Me = class {
336
+ }, ke = class {
341
337
  constructor(e = l.getLocation()) {
342
- I(this, "code", void 0), I(this, "flag", void 0), this.code = B(e), this.flag = new u(this.code.value), P(this.code, (e) => this.flag.setCode(e));
338
+ z(this, "code", void 0), z(this, "flag", void 0), this.code = W(e), this.flag = new u(this.code.value), I(this.code, (e) => this.flag.setCode(e));
343
339
  }
344
340
  getCode() {
345
341
  return this.code;
346
342
  }
347
343
  get(e = this.code.value) {
348
- return A(() => this.flag.get(e));
344
+ return M(() => this.flag.get(e));
349
345
  }
350
346
  getFlag(e = this.code.value) {
351
- return A(() => {
347
+ return M(() => {
352
348
  var t;
353
349
  return (t = this.flag.get(e)) == null ? void 0 : t.icon;
354
350
  });
355
351
  }
356
352
  getList(e) {
357
- return A(() => this.flag.getList(e));
353
+ return M(() => this.flag.getList(e));
358
354
  }
359
355
  getNational(e) {
360
- return A(() => this.flag.getNational(e));
356
+ return M(() => this.flag.getNational(e));
361
357
  }
362
- }, H, U = class {
358
+ }, K, q = class {
363
359
  static get() {
364
- return this.item;
360
+ return v.get("__ui:geo-ref__", () => F(l.getItem()));
365
361
  }
366
362
  static getCountry() {
367
363
  return this.country;
@@ -376,88 +372,88 @@ var je = class extends s {
376
372
  return this.firstDay;
377
373
  }
378
374
  static set(e) {
379
- l.set(e, !0), this.item.value = l.getItem();
375
+ l.set(e, !0), this.get().value = l.getItem();
380
376
  }
381
377
  };
382
- H = U, I(U, "item", N(l.get())), I(U, "country", A(() => H.item.value.country)), I(U, "language", A(() => H.item.value.language)), I(U, "standard", A(() => H.item.value.standard)), I(U, "firstDay", A(() => H.item.value.firstDay));
378
+ K = q, z(q, "country", M(() => K.get().value.country)), z(q, "language", M(() => K.get().value.language)), z(q, "standard", M(() => K.get().value.standard)), z(q, "firstDay", M(() => K.get().value.firstDay));
383
379
  //#endregion
384
380
  //#region src/classes/ref/GeoIntlRef.ts
385
- var Ne = class {
381
+ var Ae = class {
386
382
  constructor(e) {
387
- I(this, "location", void 0), I(this, "intl", void 0), this.location = B(e), this.intl = A(() => {
383
+ z(this, "location", void 0), z(this, "intl", void 0), this.location = W(e), this.intl = M(() => {
388
384
  var e;
389
- return new d((e = this.location.value) == null ? U.getLanguage().value : e);
385
+ return new d((e = this.location.value) == null ? q.getLanguage().value : e);
390
386
  });
391
387
  }
392
388
  display(e, t) {
393
- return A(() => this.intl.value.display(L(e), t));
389
+ return M(() => this.intl.value.display(B(e), t));
394
390
  }
395
391
  languageName(e, t) {
396
- return A(() => this.intl.value.languageName(L(e), t));
392
+ return M(() => this.intl.value.languageName(B(e), t));
397
393
  }
398
394
  countryName(e, t) {
399
- return A(() => this.intl.value.countryName(L(e), t));
395
+ return M(() => this.intl.value.countryName(B(e), t));
400
396
  }
401
397
  number(e, t) {
402
- return A(() => this.intl.value.number(L(e), t));
398
+ return M(() => this.intl.value.number(B(e), t));
403
399
  }
404
400
  decimal() {
405
- return A(() => this.intl.value.decimal());
401
+ return M(() => this.intl.value.decimal());
406
402
  }
407
403
  currency(e, t, n = !1) {
408
- return A(() => this.intl.value.currency(L(e), L(t), n));
404
+ return M(() => this.intl.value.currency(B(e), B(t), n));
409
405
  }
410
406
  currencySymbol(e, t = "symbol") {
411
- return A(() => this.intl.value.currencySymbol(L(e), t));
407
+ return M(() => this.intl.value.currencySymbol(B(e), t));
412
408
  }
413
409
  unit(e, t) {
414
- return A(() => this.intl.value.unit(L(e), t));
410
+ return M(() => this.intl.value.unit(B(e), t));
415
411
  }
416
412
  sizeFile(e, t = "byte") {
417
- return A(() => this.intl.value.sizeFile(L(e), t));
413
+ return M(() => this.intl.value.sizeFile(B(e), t));
418
414
  }
419
415
  percent(e, t) {
420
- return A(() => this.intl.value.percent(L(e), t));
416
+ return M(() => this.intl.value.percent(B(e), t));
421
417
  }
422
418
  percentBy100(e, t) {
423
- return A(() => this.intl.value.percentBy100(L(e), t));
419
+ return M(() => this.intl.value.percentBy100(B(e), t));
424
420
  }
425
421
  plural(e, t, n, r) {
426
- return A(() => this.intl.value.plural(L(e), t, n, r));
422
+ return M(() => this.intl.value.plural(B(e), t, n, r));
427
423
  }
428
424
  date(e, t, n, r) {
429
- return A(() => this.intl.value.date(L(e), t, n, r));
425
+ return M(() => this.intl.value.date(B(e), t, n, r));
430
426
  }
431
427
  relative(e, t, n) {
432
- return A(() => this.intl.value.relative(L(e), t, n));
428
+ return M(() => this.intl.value.relative(B(e), t, n));
433
429
  }
434
430
  relativeLimit(e, t, n, r, i, a, o) {
435
- return A(() => this.intl.value.relativeLimit(L(e), t, n, r, i, a, o));
431
+ return M(() => this.intl.value.relativeLimit(B(e), t, n, r, i, a, o));
436
432
  }
437
433
  relativeByValue(e, t, n) {
438
- return A(() => this.intl.value.relativeByValue(L(e), t, n));
434
+ return M(() => this.intl.value.relativeByValue(B(e), t, n));
439
435
  }
440
436
  month(e, t) {
441
- return A(() => this.intl.value.month(L(e), t));
437
+ return M(() => this.intl.value.month(B(e), t));
442
438
  }
443
439
  months(e) {
444
- return A(() => this.intl.value.months(e));
440
+ return M(() => this.intl.value.months(e));
445
441
  }
446
442
  weekday(e, t) {
447
- return A(() => this.intl.value.weekday(L(e), t));
443
+ return M(() => this.intl.value.weekday(B(e), t));
448
444
  }
449
445
  weekdays(e) {
450
- return A(() => this.intl.value.weekdays(e));
446
+ return M(() => this.intl.value.weekdays(e));
451
447
  }
452
448
  time(e) {
453
- return A(() => this.intl.value.time(L(e)));
449
+ return M(() => this.intl.value.time(B(e)));
454
450
  }
455
451
  sort(e, t = (e, t) => [e, t]) {
456
- return A(() => this.intl.value.sort([...L(e)], t));
452
+ return M(() => this.intl.value.sort([...B(e)], t));
457
453
  }
458
- }, Pe = class e {
454
+ }, je = class e {
459
455
  constructor(e, t, n, r, i, a, o, s, c, l = 0, u = 9999999, d) {
460
- I(this, "subList", {}), I(this, "data", A(() => x(L(this.list) || [], (e, t) => this.initItem(t, e)))), I(this, "liteData", A(() => {
456
+ z(this, "subList", {}), z(this, "data", M(() => S(B(this.list) || [], (e, t) => this.initItem(t, e)))), z(this, "liteData", M(() => {
461
457
  if (this.isLite()) {
462
458
  let e = [];
463
459
  for (let t of this.data.value) {
@@ -474,11 +470,11 @@ var Ne = class {
474
470
  return e;
475
471
  }
476
472
  return this.data.value;
477
- })), I(this, "fullData", A(() => {
473
+ })), z(this, "fullData", M(() => {
478
474
  let e = this.getFocus(), t = this.getHighlight(), n = this.getSelected();
479
- return x(this.data.value, (r) => {
475
+ return S(this.data.value, (r) => {
480
476
  var i, a;
481
- let o = D(r.index, n);
477
+ let o = k(r.index, n);
482
478
  return {
483
479
  ...r,
484
480
  focus: e === r.index,
@@ -488,7 +484,7 @@ var Ne = class {
488
484
  disabled: (a = r.disabled) == null ? !o && r.type === "item" && this.isSelectedMax.value : a
489
485
  };
490
486
  });
491
- })), I(this, "map", A(() => {
487
+ })), z(this, "map", M(() => {
492
488
  let e = [];
493
489
  return this.data.value.forEach((t) => {
494
490
  switch (t.type) {
@@ -501,32 +497,32 @@ var Ne = class {
501
497
  break;
502
498
  }
503
499
  }), e;
504
- })), I(this, "mapItems", A(() => this.map.value.filter((e) => e.type === "item"))), I(this, "items", A(() => this.map.value.filter((e) => e.type === "item" || e.type === "group" || e.type === "menu"))), I(this, "highlightFirstItem", A(() => {
500
+ })), z(this, "mapItems", M(() => this.map.value.filter((e) => e.type === "item"))), z(this, "items", M(() => this.map.value.filter((e) => e.type === "item" || e.type === "group" || e.type === "menu"))), z(this, "highlightFirstItem", M(() => {
505
501
  let e = this.getHighlight();
506
502
  if (e && e.length >= this.getHighlightLengthStart()) {
507
- let t = w(e, "i");
503
+ let t = T(e, "i");
508
504
  if (t) return this.map.value.findIndex((e) => {
509
505
  var n, r, i;
510
506
  return ((n = e.label) == null ? void 0 : n.toString().match(t)) || ((r = e.index) == null ? void 0 : r.toString().match(t)) || ((i = e.search) == null ? void 0 : i.toString().match(t));
511
507
  });
512
508
  }
513
509
  return -1;
514
- })), I(this, "isSelected", A(() => {
510
+ })), z(this, "isSelected", M(() => {
515
511
  let e = this.getSelected();
516
- return !!e && this.mapItems.value.findIndex((t) => D(t.index, e)) !== -1;
517
- })), I(this, "isSelectedMin", A(() => {
518
- let e = Number(L(this.min) || 0);
512
+ return !!e && this.mapItems.value.findIndex((t) => k(t.index, e)) !== -1;
513
+ })), z(this, "isSelectedMin", M(() => {
514
+ let e = Number(B(this.min) || 0);
519
515
  return e > 0 ? this.selectedListInGroup.value.length >= e : !1;
520
- })), I(this, "isSelectedMax", A(() => {
521
- let e = Number(L(this.max) || 9999999);
516
+ })), z(this, "isSelectedMax", M(() => {
517
+ let e = Number(B(this.max) || 9999999);
522
518
  return e > 0 ? this.selectedListInGroup.value.length >= e : !1;
523
- })), I(this, "selectedList", A(() => {
519
+ })), z(this, "selectedList", M(() => {
524
520
  let e = this.getSelected();
525
- return e && this.isSelected.value ? this.mapItems.value.filter((t) => D(t.index, e)) : [];
526
- })), I(this, "selectedListInGroup", A(() => {
521
+ return e && this.isSelected.value ? this.mapItems.value.filter((t) => k(t.index, e)) : [];
522
+ })), z(this, "selectedListInGroup", M(() => {
527
523
  let e = this.getSelected();
528
- return e && this.isSelected.value ? this.data.value.filter((t) => D(t.index, e)) : [];
529
- })), I(this, "selectedNames", A(() => S(this.selectedList.value, "label"))), I(this, "selectedValues", A(() => S(this.selectedList.value, "value"))), this.list = e, this.focus = t, this.highlight = n, this.highlightLengthStart = r, this.filterMode = i, this.selected = a, this.keyValue = o, this.keyLabel = s, this.lite = c, this.min = l, this.max = u, this.parent = d, j(e) && P(e, () => {
524
+ return e && this.isSelected.value ? this.data.value.filter((t) => k(t.index, e)) : [];
525
+ })), z(this, "selectedNames", M(() => C(this.selectedList.value, "label"))), z(this, "selectedValues", M(() => C(this.selectedList.value, "value"))), this.list = e, this.focus = t, this.highlight = n, this.highlightLengthStart = r, this.filterMode = i, this.selected = a, this.keyValue = o, this.keyLabel = s, this.lite = c, this.min = l, this.max = u, this.parent = d, N(e) && I(e, () => {
530
526
  this.subList = {};
531
527
  });
532
528
  }
@@ -637,10 +633,10 @@ var Ne = class {
637
633
  return t.parent === e && this.isItem(t);
638
634
  }
639
635
  getIndex(e, t, n, r) {
640
- return e && !T(e) ? e : t && !T(t) ? t : n && r;
636
+ return e && !D(e) ? e : t && !D(t) ? t : n && r;
641
637
  }
642
638
  initItem(e, t) {
643
- if (E(t)) {
639
+ if (O(t)) {
644
640
  var n, r, i, a, o, s;
645
641
  let c = t == null ? void 0 : t[(n = (r = this.keyValue) == null ? void 0 : r.value) == null ? "value" : n], l = (i = t == null ? void 0 : t[(a = (o = this.keyLabel) == null ? void 0 : o.value) == null ? "label" : a]) == null ? c : i, u = this.getIndex(t == null ? void 0 : t.index, c, e, l);
646
642
  return {
@@ -660,13 +656,13 @@ var Ne = class {
660
656
  value: e
661
657
  };
662
658
  }
663
- }, W = class {
659
+ }, Me = "__ui:router-item-ref__", J = class {
664
660
  static get() {
665
- return this.router;
661
+ return v.get(Me);
666
662
  }
667
663
  static getLink(e, t, n) {
668
664
  var r;
669
- return (r = this.router) == null ? void 0 : r.resolve({
665
+ return (r = this.get()) == null ? void 0 : r.resolve({
670
666
  name: e,
671
667
  params: t,
672
668
  query: n
@@ -680,34 +676,31 @@ var Ne = class {
680
676
  return {};
681
677
  }
682
678
  static push(e) {
683
- this.router && this.router.push(e).then();
679
+ let t = this.get();
680
+ t && t.push(e).then();
684
681
  }
685
682
  static set(e) {
686
- this.router = e;
683
+ v.set(Me, () => e);
687
684
  }
688
685
  static setOneTime(e) {
689
- this.router || this.set(e);
686
+ this.get() || this.set(e);
690
687
  }
691
688
  static rawToHref(e) {
692
- return E(e) && "name" in e && O(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
689
+ return O(e) && "name" in e && A(e == null ? void 0 : e.name) ? this.getHref(e.name) : {};
693
690
  }
694
- };
695
- I(W, "router", void 0);
696
- //#endregion
697
- //#region src/classes/ref/ScrollbarWidthRef.ts
698
- var Fe = class {
691
+ }, Ne = class {
699
692
  constructor() {
700
- I(this, "item", M()), I(this, "width", M(0)), I(this, "is", A(() => this.item.value !== void 0)), g.is().then((e) => {
693
+ z(this, "item", P()), z(this, "width", P(0)), z(this, "is", M(() => this.item.value !== void 0)), E() && (g.is().then((e) => {
701
694
  this.item.value = e;
702
695
  }), g.get().then((e) => {
703
696
  this.width.value = e;
704
- });
697
+ }));
705
698
  }
706
- }, G = (e) => typeof e == "string" ? { method: e } : e || {};
699
+ }, Y = (e) => typeof e == "string" ? { method: e } : e || {};
707
700
  //#endregion
708
701
  //#region src/composables/ref/useApiRequest.ts
709
- function K(n, r = t.post, i, a, o = !0, s, c = e.getItem()) {
710
- let l = M(!1), u = B(G(s));
702
+ function X(n, r = t.post, i, a, o = !0, s, c = e.getItem()) {
703
+ let l = P(!1), u = W(Y(s));
711
704
  return {
712
705
  loading: l,
713
706
  async send(e) {
@@ -715,7 +708,7 @@ function K(n, r = t.post, i, a, o = !0, s, c = e.getItem()) {
715
708
  let t;
716
709
  try {
717
710
  if (t = await c.request({
718
- path: L(n),
711
+ path: B(n),
719
712
  method: r,
720
713
  request: e,
721
714
  toData: o,
@@ -733,102 +726,107 @@ function K(n, r = t.post, i, a, o = !0, s, c = e.getItem()) {
733
726
  }
734
727
  //#endregion
735
728
  //#region src/composables/ref/useApiDelete.ts
736
- function Ie(e, n, r, i = !0, a, o) {
737
- return K(e, t.delete, n, r, i, a, o);
729
+ function Pe(e, n, r, i = !0, a, o) {
730
+ return X(e, t.delete, n, r, i, a, o);
738
731
  }
739
732
  //#endregion
740
733
  //#region src/composables/ref/useApiGet.ts
741
- function Le(e, n, r, i = !0, a, o) {
742
- return K(e, t.get, n, r, i, a, o);
734
+ function Fe(e, n, r, i = !0, a, o) {
735
+ return X(e, t.get, n, r, i, a, o);
743
736
  }
744
737
  //#endregion
745
738
  //#region src/composables/ref/useApiRef.ts
746
- var q;
747
- function Re(t, n, r = !0, i, a, o = !0, s = e.getItem()) {
748
- let c = M(), l = B(G(n)), u = M(!1), d = M(!1), f, p = !0, m, h = async () => {
749
- if (p) return;
750
- f && f.abort(), f = l.value.controller || new AbortController();
751
- let e = L(t);
739
+ var Z;
740
+ function Ie(t, n, r = !0, i, a, o, s = !0, c = e.getItem()) {
741
+ let l = P(), u = W(Y(n)), d = P(!1), f = P(!1), p = P(), m, h = !0, g, _ = async () => {
742
+ if (h) return;
743
+ m && m.abort(), m = u.value.controller || new AbortController();
744
+ let e = B(t);
752
745
  if ((!i || i.value) && e) {
753
- u.value = !0, d.value = !0;
746
+ d.value = !0, f.value = !0;
754
747
  try {
755
- let t = await s.request({
748
+ let t = await c.request({
756
749
  path: e,
757
- controller: f,
758
- ...l.value
750
+ controller: m,
751
+ ...u.value
759
752
  });
760
- t && (a ? c.value = a(t) : c.value = t);
753
+ t && (p.value = o == null ? void 0 : o(t), a ? l.value = a(t, p.value) : l.value = t);
761
754
  } catch (e) {
762
- c.value = void 0;
755
+ l.value = void 0;
763
756
  }
764
- u.value = !1;
765
- } else c.value !== void 0 && (c.value = void 0);
766
- }, g = () => {
767
- m == null || m(), c.value = void 0, p = !0;
768
- }, _ = () => {
769
- p && (p = !1, h().then(), o ? (v(), le() && fe(() => g())) : V.run(() => v()));
757
+ d.value = !1;
758
+ } else l.value !== void 0 && (l.value = void 0);
770
759
  }, v = () => {
760
+ g == null || g(), l.value = void 0, h = !0;
761
+ }, y = () => {
762
+ h && (h = !1, _().then(), s ? (b(), ce() && de(() => v())) : G.run(() => b()));
763
+ }, b = () => {
771
764
  let e = [];
772
- r && e.push(l), j(t) && e.push(t), i && e.push(i), q && e.push(q), e.length > 0 && (m = P(e, async () => {
773
- u.value || await h();
765
+ r && e.push(u), N(t) && e.push(t), i && e.push(i), Z && e.push(Z), e.length > 0 && (g = I(e, async () => {
766
+ d.value || await _();
774
767
  }));
775
- };
768
+ }, x = M(() => (y(), l.value)), S = M(() => Array.isArray(l.value) ? l.value.length : +!!l.value), C = M(() => l.value === void 0);
776
769
  return {
777
- data: A(() => (_(), c.value)),
770
+ data: x,
778
771
  get item() {
779
- return _(), c;
772
+ return y(), l;
780
773
  },
781
- length: A(() => Array.isArray(c.value) ? c.value.length : +!!c.value),
782
- starting: A(() => c.value === void 0),
783
- loading: u,
784
- reading: d,
774
+ isResponseContractValid: M(() => {
775
+ var e;
776
+ return ((e = p.value) == null ? void 0 : e.status) === "success";
777
+ }),
778
+ responseValidationResult: M(() => p.value),
779
+ length: S,
780
+ starting: C,
781
+ loading: d,
782
+ reading: f,
785
783
  isStarting() {
786
- return c.value === void 0;
784
+ return l.value === void 0;
787
785
  },
788
786
  isLoading() {
789
- return u.value;
787
+ return d.value;
790
788
  },
791
789
  isReading() {
792
- return d.value;
790
+ return f.value;
793
791
  },
794
792
  getItem() {
795
- return c.value;
793
+ return l.value;
796
794
  },
797
- init: _,
798
- reset: h,
799
- stop: g,
800
- abort: () => f == null ? void 0 : f.abort()
795
+ init: y,
796
+ reset: _,
797
+ stop: v,
798
+ abort: () => m == null ? void 0 : m.abort()
801
799
  };
802
800
  }
803
- var ze = (e) => {
804
- q || (q = e);
801
+ var Le = (e) => {
802
+ Z || (Z = e);
805
803
  };
806
804
  //#endregion
807
805
  //#region src/composables/ref/useApiPost.ts
808
- function Be(e, n, r, i = !0, a, o) {
809
- return K(e, t.post, n, r, i, a, o);
806
+ function Re(e, n, r, i = !0, a, o) {
807
+ return X(e, t.post, n, r, i, a, o);
810
808
  }
811
809
  //#endregion
812
810
  //#region src/composables/ref/useApiPut.ts
813
- function Ve(e, n, r, i = !0, a, o) {
814
- return K(e, t.put, n, r, i, a, o);
811
+ function ze(e, n, r, i = !0, a, o) {
812
+ return X(e, t.put, n, r, i, a, o);
815
813
  }
816
814
  //#endregion
817
815
  //#region src/composables/ref/useFormattersRef.ts
818
- function He(e, t) {
816
+ function Be(e, t) {
819
817
  let n = new c(t);
820
818
  return {
821
- listFormat: A(() => n.setList(e.value).to()),
822
- length: A(() => n.setList(e.value).length())
819
+ listFormat: M(() => n.setList(e.value).to()),
820
+ length: M(() => n.setList(e.value).length())
823
821
  };
824
822
  }
825
823
  //#endregion
826
824
  //#region src/composables/ref/useSearchValueRef.ts
827
- function Ue(e, t) {
828
- let n = t == null ? M("") : t, r = M(n.value), i = M(!1), a;
829
- return P(n, (t, o, s) => {
825
+ function Ve(e, t) {
826
+ let n = t == null ? P("") : t, r = P(n.value), i = P(!1), a;
827
+ return I(n, (t, o, s) => {
830
828
  let c = e.getOptions().getDelay();
831
- c ? (i.value = !0, a = setTimeout(() => {
829
+ c && E() ? (i.value = !0, a = setTimeout(() => {
832
830
  a = void 0, r.value = n.value, i.value = !1;
833
831
  }, c), s(() => {
834
832
  a && clearTimeout(a);
@@ -841,109 +839,118 @@ function Ue(e, t) {
841
839
  }
842
840
  //#endregion
843
841
  //#region src/composables/ref/useSearchRef.ts
844
- function We(e, t, n, r) {
845
- let i = new _(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } = Ue(i, n), c = () => L(y(e)) || [], l = A(() => i.setValue(o.value).getItem().isSearch()), u = A(() => i.setList(c()).setValue(o.value).to());
842
+ function He(e, t, n, r) {
843
+ let i = new _(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } = Ve(i, n), c = () => B(b(e)) || [], l = M(() => i.setValue(o.value).getItem().isSearch()), u = M(() => i.setList(c()).setValue(o.value).to());
846
844
  return {
847
845
  isSearch: l,
848
846
  search: a,
849
847
  loading: s,
850
848
  listSearch: u,
851
- length: A(() => u.value.length)
849
+ length: M(() => u.value.length)
852
850
  };
853
851
  }
854
852
  //#endregion
855
853
  //#region src/composables/ref/useApiManagementRef.ts
856
- function Ge(e, t, n, r, i, a, o, s) {
857
- let { path: c, options: l, reactivity: u, conditions: d, transformation: f, typeData: p, unmounted: m, skeleton: h } = e, g, _, v, y, x, S = Re(c, l, u, d, f, m, s), C = A(() => p === void 0 ? !0 : S.isStarting() ? !1 : re(p) ? p(S.data.value) : S.data.value instanceof p), w = A(() => S.isStarting() && h ? h() : S.data.value);
858
- if (t && (g = He(w, t)), n && (_ = We(A(() => {
854
+ function Ue(e, t, n, r, i, a, o, s) {
855
+ let { path: c, options: l, reactivity: u, conditions: d, transformation: f, validateResponseContract: p, typeData: m, unmounted: h, skeleton: g } = e, _, v, y, b, S, C = Ie(c, l, u, d, f, p, h, s), w = M(() => m === void 0 ? !0 : C.isStarting() ? !1 : ne(m) ? m(C.data.value) : C.data.value instanceof m), T = M(() => C.isStarting() && g ? g() : C.data.value);
856
+ if (t && (_ = Be(T, t)), n && (v = He(M(() => {
859
857
  var e;
860
- let t = (e = g == null ? void 0 : g.listFormat.value) == null ? S.data.value : e;
858
+ let t = (e = _ == null ? void 0 : _.listFormat.value) == null ? C.data.value : e;
861
859
  if (Array.isArray(t)) return t;
862
860
  }), n.columns, n.value, n.options)), r || i || a) {
863
861
  let e = (e) => {
864
- o == null || o(), ee(e) && S.reset();
862
+ o == null || o(), ee(e) && C.reset().then();
865
863
  }, t = (t) => async (n) => {
866
- re(t) && await b(t(n)), e(n);
864
+ ne(t) && await x(t(n)), e(n);
867
865
  };
868
- r && (v = Be(r.path, t(r.action), r.transformation, r.toData, r.options, s)), i && (y = Ve(i.path, t(i.action), i.transformation, i.toData, i.options, s)), a && (x = Ie(a.path, t(a.action), a.transformation, a.toData, a.options, s));
866
+ r && (y = Re(r.path, t(r.action), r.transformation, r.toData, r.options, s)), i && (b = ze(i.path, t(i.action), i.transformation, i.toData, i.options, s)), a && (S = Pe(a.path, t(a.action), a.transformation, a.toData, a.options, s));
869
867
  }
870
868
  return {
871
- isValid: C,
872
- list: A(() => {
873
- if (C.value) {
874
- if (_ && Array.isArray(S.data.value)) return _.listSearch.value;
875
- if (g) return g.listFormat.value;
869
+ isValid: w,
870
+ list: M(() => {
871
+ if (w.value) {
872
+ if (v && Array.isArray(C.data.value)) return v.listSearch.value;
873
+ if (_) return _.listFormat.value;
876
874
  }
877
- return w.value;
875
+ return T.value;
878
876
  }),
879
877
  get data() {
880
- return S.data;
878
+ return C.data;
881
879
  },
882
880
  get length() {
883
- return _ ? _.length : S.length;
881
+ return v ? v.length : C.length;
884
882
  },
885
- lengthData: S.length,
886
- starting: S.starting,
887
- reading: S.reading,
888
- loading: S.loading,
889
- loadingSearch: _ == null ? void 0 : _.loading,
890
- loadingPost: v == null ? void 0 : v.loading,
891
- loadingPut: y == null ? void 0 : y.loading,
892
- loadingDelete: x == null ? void 0 : x.loading,
893
- isSearch: _ == null ? void 0 : _.isSearch,
894
- search: _ == null ? void 0 : _.search,
895
- reset: S.reset,
896
- abort: S.abort,
897
- sendPost: async (e) => await (v == null ? void 0 : v.send(e)),
898
- sendPut: async (e) => await (y == null ? void 0 : y.send(e)),
899
- sendDelete: async (e) => await (x == null ? void 0 : x.send(e))
883
+ lengthData: C.length,
884
+ starting: C.starting,
885
+ reading: C.reading,
886
+ loading: C.loading,
887
+ loadingSearch: v == null ? void 0 : v.loading,
888
+ loadingPost: y == null ? void 0 : y.loading,
889
+ loadingPut: b == null ? void 0 : b.loading,
890
+ loadingDelete: S == null ? void 0 : S.loading,
891
+ isSearch: v == null ? void 0 : v.isSearch,
892
+ search: v == null ? void 0 : v.search,
893
+ reset: C.reset,
894
+ abort: C.abort,
895
+ sendPost: async (e) => await (y == null ? void 0 : y.send(e)),
896
+ sendPut: async (e) => await (b == null ? void 0 : b.send(e)),
897
+ sendDelete: async (e) => await (S == null ? void 0 : S.send(e))
900
898
  };
901
899
  }
902
900
  //#endregion
903
901
  //#region src/composables/ref/useBroadcastValueRef.ts
904
- function Ke(e, t) {
905
- let r = `broadcast--${e}`;
906
- if (r in J) return J[r];
907
- let i = M(y(t)), a = new n(r, (e) => {
908
- i.value !== e.data.message && (i.value = e.data.message);
909
- });
910
- return V.run(() => {
911
- P(i, (e) => a.post({ message: e }));
912
- }), J[r] = i, i;
902
+ var We = () => v.get("__ui:broadcast-value-ref__", () => ({}));
903
+ function Ge(e, t) {
904
+ let r = `broadcast--${e}`, i = We();
905
+ if (r in i) return i[r];
906
+ let a = P(b(t));
907
+ if (E()) {
908
+ let e = new n(r, (e) => {
909
+ a.value !== e.data.message && (a.value = e.data.message);
910
+ });
911
+ G.run(() => {
912
+ I(a, (t) => e.post({ message: t }));
913
+ });
914
+ }
915
+ return i[r] = a, a;
913
916
  }
914
- var J = {};
915
917
  //#endregion
916
918
  //#region src/composables/ref/useCookieRef.ts
919
+ var Ke = () => v.get("__ui:cookie-ref__", () => ({}));
917
920
  function qe(e, t, n) {
918
- if (e in Y) return Y[e];
919
- let i = new r(e), a = Ke(`__cookie:${e}`, i.get(t, n));
920
- return V.run(() => {
921
- P(a, (e) => {
922
- i.set(e, n);
921
+ let i = Ke();
922
+ if (e in i) return i[e];
923
+ let a = new r(e), o = Ge(`__cookie:${e}`, a.get(t, n));
924
+ return G.run(() => {
925
+ I(o, (e) => {
926
+ a.set(e, n);
923
927
  });
924
- }), Y[e] = a, a;
928
+ }), i[e] = o, o;
925
929
  }
926
- var Y = {};
927
930
  //#endregion
928
931
  //#region src/composables/ref/useGeoIntlRef.ts
929
932
  function Je() {
930
- return new Ne();
933
+ return new Ae();
931
934
  }
932
935
  //#endregion
933
936
  //#region src/composables/ref/useHashRef.ts
934
- function Ye(e, t) {
935
- if (e in X) return X[e];
936
- let n = N(f.get(e, t));
937
- return V.run(() => {
938
- P(n, (t) => f.set(e, t));
937
+ var Ye = () => v.get("__ui:hash-ref__", () => ({}));
938
+ function Xe(e, t) {
939
+ let n = Ye();
940
+ if (e in n) return n[e];
941
+ let r = F(f.get(e, t));
942
+ return E() && (G.run(() => {
943
+ I(r, (t) => f.set(e, t));
939
944
  }), f.addWatch(e, (e) => {
940
- n.value = e;
941
- }), X[e] = n, n;
945
+ r.value = e;
946
+ })), n[e] = r, r;
942
947
  }
943
- var X = {}, Xe = (e = { rootMargin: "128px 0px" }) => {
944
- let t = {}, n = ne() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
948
+ //#endregion
949
+ //#region src/composables/ref/useLazyRef.ts
950
+ var Ze = (e = { rootMargin: "128px 0px" }) => {
951
+ let t = {}, n = E() && "IntersectionObserver" in window ? new IntersectionObserver((e) => {
945
952
  e.forEach((e) => {
946
- let n = C(e.target);
953
+ let n = w(e.target);
947
954
  if (n in t) {
948
955
  let r = t[n];
949
956
  r.status.value = e.isIntersecting, r.ratio.value = e.intersectionRatio, r.entry.value = e;
@@ -951,7 +958,7 @@ var X = {}, Xe = (e = { rootMargin: "128px 0px" }) => {
951
958
  });
952
959
  }, e) : void 0, r = (e) => {
953
960
  if (e) {
954
- let i = C(e);
961
+ let i = w(e);
955
962
  if (i in t) {
956
963
  var r;
957
964
  n == null || n.unobserve(e), (r = t[i]) == null || r.stopWatch(), delete t[i];
@@ -961,19 +968,19 @@ var X = {}, Xe = (e = { rootMargin: "128px 0px" }) => {
961
968
  return {
962
969
  intersectionObserver: n,
963
970
  getItem(e) {
964
- return t[C(e)];
971
+ return t[w(e)];
965
972
  },
966
973
  addLazyItem(e) {
967
- let i = N(!n);
974
+ let i = F(!n);
968
975
  if (n) {
969
976
  let a;
970
- a = P(e, (o, s) => {
977
+ a = I(e, (o, s) => {
971
978
  if (s && r(s), e.value) {
972
- let r = C(e.value);
979
+ let r = w(e.value);
973
980
  t[r] = {
974
981
  status: i,
975
- ratio: N(0),
976
- entry: N(void 0),
982
+ ratio: F(0),
983
+ entry: F(void 0),
977
984
  stopWatch: () => a == null ? void 0 : a()
978
985
  }, n.observe(e.value);
979
986
  } else r(e.value);
@@ -984,16 +991,16 @@ var X = {}, Xe = (e = { rootMargin: "128px 0px" }) => {
984
991
  removeLazyItem: r,
985
992
  disconnectLazy: () => n == null ? void 0 : n.disconnect()
986
993
  };
987
- }, Ze = [], Qe = (e) => {
988
- let t = Ze.find((t) => t.rootMargin === e);
989
- if (t) return t.item;
990
- let n = Xe({ rootMargin: e });
991
- return Ze.push({
994
+ }, Qe = () => v.get("__ui:lazy-item-by-margin-ref__", () => []), $e = (e) => {
995
+ let t = Qe(), n = t.find((t) => t.rootMargin === e);
996
+ if (n) return n.item;
997
+ let r = Ze({ rootMargin: e });
998
+ return t.push({
992
999
  rootMargin: e,
993
- item: n
994
- }), n;
995
- }, $e = (e, t) => {
996
- let n = Qe(t);
1000
+ item: r
1001
+ }), r;
1002
+ }, et = (e, t) => {
1003
+ let n = $e(t);
997
1004
  return {
998
1005
  lazyItemStatus: n.addLazyItem(e),
999
1006
  get lazyItem() {
@@ -1003,19 +1010,19 @@ var X = {}, Xe = (e = { rootMargin: "128px 0px" }) => {
1003
1010
  };
1004
1011
  //#endregion
1005
1012
  //#region src/composables/ref/useLoadingRef.ts
1006
- function et() {
1007
- let e = N(m.is());
1008
- return m.registrationEvent(({ detail: t }) => {
1013
+ function tt() {
1014
+ let e = F(m.is());
1015
+ return E() && m.registrationEvent(({ detail: t }) => {
1009
1016
  e.value = t.loading;
1010
1017
  }), e;
1011
1018
  }
1012
1019
  //#endregion
1013
1020
  //#region src/functions/executeUse.ts
1014
- var Z = /* @__PURE__ */ function(e) {
1021
+ var Q = /* @__PURE__ */ function(e) {
1015
1022
  return e.global = "global", e.provide = "provide", e.local = "local", e;
1016
- }({}), tt = () => `__execute_use${nt}::${C()}`, nt = ie(1e5, 999999), Q = [], rt = ce();
1017
- function $(e, t = Z.provide) {
1018
- let n = tt(), r, i = (t) => {
1023
+ }({}), nt = 1, rt = re(1e5, 999999), it = () => `__execute_use${rt}::${nt++}`, at = () => v.get("__ui:execute-use-global__", () => []);
1024
+ function $(e, t = Q.provide) {
1025
+ let n = it(), r, i = (t) => {
1019
1026
  let n = Object.freeze(e(...t));
1020
1027
  return {
1021
1028
  ...n,
@@ -1025,7 +1032,7 @@ function $(e, t = Z.provide) {
1025
1032
  };
1026
1033
  }, a = (e) => {
1027
1034
  let t = Object.freeze(i(e));
1028
- return pe(n, t), t;
1035
+ return fe(n, t), t;
1029
1036
  }, o = (e) => {
1030
1037
  let t = i(e);
1031
1038
  return Object.freeze({
@@ -1034,42 +1041,43 @@ function $(e, t = Z.provide) {
1034
1041
  r = void 0;
1035
1042
  }
1036
1043
  });
1037
- }, s = (...e) => t === Z.provide ? de(n, void 0) || a(e) : (r || (t === Z.local ? rt.run(() => {
1044
+ }, s = (...e) => t === Q.provide ? ue(n, void 0) || a(e) : (r || (t === Q.local ? G.run(() => {
1038
1045
  r = o(e);
1039
1046
  }) : r = o(e)), r);
1040
- return t === Z.global && Q.push(s), s;
1047
+ return t === Q.global && at().push(s), s;
1041
1048
  }
1042
- function it(e) {
1043
- return $(e, Z.global);
1049
+ function ot(e) {
1050
+ return $(e, Q.global);
1044
1051
  }
1045
- function at(e) {
1046
- return $(e, Z.provide);
1052
+ function st(e) {
1053
+ return $(e, Q.provide);
1047
1054
  }
1048
- function ot(e) {
1049
- return $(e, Z.local);
1055
+ function ct(e) {
1056
+ return $(e, Q.local);
1050
1057
  }
1051
- function st() {
1052
- Q.forEach((e) => e()), Q.length = 0;
1058
+ function lt() {
1059
+ let e = at();
1060
+ e.forEach((e) => e()), e.length = 0;
1053
1061
  }
1054
1062
  //#endregion
1055
1063
  //#region src/composables/ref/useMeta.ts
1056
- var ct = it(() => {
1057
- let e = new h(), t = M(e.getTitle()), n = M(e.getKeywords()), r = M(e.getDescription()), i = M(e.getImage()), a = M(e.getCanonical()), o = M(e.getRobots()), s = M(e.getAuthor()), c = M(e.getSiteName());
1058
- return P(t, () => {
1064
+ var ut = ct(() => {
1065
+ let e = new h(), t = P(e.getTitle()), n = P(e.getKeywords()), r = P(e.getDescription()), i = P(e.getImage()), a = P(e.getCanonical()), o = P(e.getRobots()), s = P(e.getAuthor()), c = P(e.getSiteName());
1066
+ return I(t, () => {
1059
1067
  e.setTitle(t.value);
1060
- }), P(n, () => {
1068
+ }), I(n, () => {
1061
1069
  e.setKeywords(n.value);
1062
- }), P(r, () => {
1070
+ }), I(r, () => {
1063
1071
  e.setDescription(r.value);
1064
- }), P(i, () => {
1072
+ }), I(i, () => {
1065
1073
  e.setImage(i.value);
1066
- }), P(a, () => {
1074
+ }), I(a, () => {
1067
1075
  e.setCanonical(a.value);
1068
- }), P(o, () => {
1076
+ }), I(o, () => {
1069
1077
  e.setRobots(o.value);
1070
- }), P(s, () => {
1078
+ }), I(s, () => {
1071
1079
  e.setAuthor(s.value);
1072
- }), P(c, () => {
1080
+ }), I(c, () => {
1073
1081
  e.setSiteName(c.value);
1074
1082
  }), {
1075
1083
  meta: e,
@@ -1084,22 +1092,22 @@ var ct = it(() => {
1084
1092
  getHtmlMeta: () => e.html(),
1085
1093
  setSuffix: (t) => e.setSuffix(t)
1086
1094
  };
1087
- }), lt = () => ct(), ut = (e, t, n = !0) => {
1095
+ }), dt = () => ut(), ft = (e, t, n = !0) => {
1088
1096
  var r;
1089
- let i = j(t) ? t : M(t || ((r = e.value) == null || (r = r[0]) == null ? void 0 : r.value) || ""), a = () => o(i.value), o = (t) => {
1097
+ let i = N(t) ? t : P(t || ((r = e.value) == null || (r = r[0]) == null ? void 0 : r.value) || ""), a = () => o(i.value), o = (t) => {
1090
1098
  var n;
1091
1099
  return (n = e.value) == null ? void 0 : n.find((e) => e.value === t);
1092
1100
  }, s = (e) => {
1093
- e && e !== i.value && o(e) && (i.value = e, W.push({ name: e }));
1101
+ e && e !== i.value && o(e) && (i.value = e, J.push({ name: e }));
1094
1102
  };
1095
1103
  return {
1096
- item: A(() => a()),
1104
+ item: M(() => a()),
1097
1105
  selected: i,
1098
- label: A(() => {
1106
+ label: M(() => {
1099
1107
  var e;
1100
1108
  return ((e = a()) == null ? void 0 : e.label) || "";
1101
1109
  }),
1102
- list: A(() => e.value ? x(e.value, (e) => n && !("to" in e) ? {
1110
+ list: M(() => e.value ? S(e.value, (e) => n && !("to" in e) ? {
1103
1111
  ...e,
1104
1112
  to: { name: e.value }
1105
1113
  } : e) : []),
@@ -1109,75 +1117,75 @@ var ct = it(() => {
1109
1117
  s((t = e.value) == null || (t = t[0]) == null ? void 0 : t.value);
1110
1118
  }
1111
1119
  };
1112
- };
1113
- //#endregion
1114
- //#region src/composables/ref/useSessionRef.ts
1115
- function dt(e, t) {
1116
- if (e in ft) return ft[e];
1117
- let n = new i(e, !0), r = M(n.get(t));
1118
- return V.run(() => {
1119
- P(r, (e) => n.set(e));
1120
- }), ft[e] = r, r;
1120
+ }, pt = () => v.get("__ui:session-ref__", () => ({}));
1121
+ function mt(e, t) {
1122
+ let n = pt();
1123
+ if (e in n) return n[e];
1124
+ let r = new i(e, !0), a = P(r.get(t));
1125
+ return G.run(() => {
1126
+ I(a, (e) => r.set(e));
1127
+ }), n[e] = a, a;
1121
1128
  }
1122
- var ft = {};
1123
1129
  //#endregion
1124
1130
  //#region src/composables/ref/useStorageRef.ts
1125
- function pt(e, t, n) {
1126
- if (e in mt) return mt[e];
1127
- let r = new i(e), a = M(r.get(t, n));
1128
- return V.run(() => {
1129
- P(a, (e) => r.set(e));
1130
- }), ne() && window.addEventListener("storage", () => {
1131
- r.update(), a.value = r.get();
1132
- }), mt[e] = a, a;
1131
+ var ht = () => v.get("__ui:storage-ref__", () => ({}));
1132
+ function gt(e, t, n) {
1133
+ let r = ht();
1134
+ if (e in r) return r[e];
1135
+ let a = new i(e), o = P(a.get(t, n));
1136
+ return G.run(() => {
1137
+ I(o, (e) => a.set(e));
1138
+ }), E() && window.addEventListener("storage", () => {
1139
+ a.update(), o.value = a.get();
1140
+ }), r[e] = o, o;
1133
1141
  }
1134
- var mt = {};
1135
1142
  //#endregion
1136
1143
  //#region src/composables/ref/useTranslateRef.ts
1137
- function ht(e, t = v.getItem()) {
1138
- let n = N(t.getListSync(e, !0)), r = async () => {
1144
+ function _t(e, t = y.getItem()) {
1145
+ let n = F(t.getListSync(e, !0)), r = async () => {
1139
1146
  n.value = { ...await t.getList(e) };
1140
1147
  };
1141
- P(U.getLanguage(), r);
1142
- for (let e in n.value) if (n.value[e] === e || n.value[e] === " ") {
1143
- r().then();
1144
- break;
1148
+ if (E()) {
1149
+ I(q.getLanguage(), r);
1150
+ for (let e in n.value) if (n.value[e] === e || n.value[e] === " ") {
1151
+ r().then();
1152
+ break;
1153
+ }
1145
1154
  }
1146
1155
  return n;
1147
1156
  }
1148
- var gt = (e) => ht(e);
1157
+ var vt = (e) => _t(e);
1149
1158
  //#endregion
1150
1159
  //#region src/functions/computedAsync.ts
1151
- function _t(e, t, n) {
1152
- let r = M(), i = !0, a = () => {
1153
- i && (i = !1, ve(async () => {
1154
- let n = await b(e);
1160
+ function yt(e, t, n) {
1161
+ let r = P(), i = !0, a = () => {
1162
+ i && (i = !1, L(async () => {
1163
+ let n = await x(e);
1155
1164
  n !== t && (r.value = n);
1156
1165
  }));
1157
1166
  };
1158
- return A(() => (a(), r.value), n);
1167
+ return M(() => (a(), r.value), n);
1159
1168
  }
1160
1169
  //#endregion
1161
1170
  //#region src/functions/computedByLanguage.ts
1162
- function vt(e, t = () => void 0, n, r) {
1163
- return A(() => {
1164
- if (U.get().value && (n === void 0 || n())) {
1171
+ function bt(e, t = () => void 0, n, r) {
1172
+ return M(() => {
1173
+ if (q.get().value && (n === void 0 || n())) {
1165
1174
  let t = e();
1166
1175
  if (t !== void 0) return t;
1167
1176
  }
1168
- return y(t);
1177
+ return b(t);
1169
1178
  }, r);
1170
1179
  }
1171
1180
  //#endregion
1172
1181
  //#region src/functions/computedEternity.ts
1173
- var yt = ce();
1174
- function bt(e) {
1175
- return se((t, n) => {
1176
- let r = M(), i = !1, a = async () => {
1177
- r.value = await b(e), n();
1182
+ function xt(e) {
1183
+ return oe((t, n) => {
1184
+ let r = P(), i = !1, a = async () => {
1185
+ r.value = await x(e), n();
1178
1186
  }, o = () => {
1179
- i || (i = !0, yt.run(() => {
1180
- ve(async () => await a());
1187
+ i || (i = !0, G.run(() => {
1188
+ L(async () => await a());
1181
1189
  }));
1182
1190
  };
1183
1191
  return {
@@ -1192,29 +1200,29 @@ function bt(e) {
1192
1200
  }
1193
1201
  //#endregion
1194
1202
  //#region src/functions/dxtFunctionalPlugin.ts
1195
- var xt = { install(t, n = {}) {
1196
- if (n.api && e.setConfig(n.api), n.translate && v.setConfig(n.translate), n.icons && p.setConfig(n.icons), n.metaSuffix && lt().setSuffix(n.metaSuffix), n.router) W.set(n.router);
1203
+ var St = { install(t, n = {}) {
1204
+ if (n.api && e.setConfig(n.api), n.translate && y.setConfig(n.translate), n.icons && p.setConfig(n.icons), n.metaSuffix && dt().setSuffix(n.metaSuffix), n.router) J.set(n.router);
1197
1205
  else {
1198
1206
  let e = t.config.globalProperties.$router;
1199
- e && W.set(e);
1207
+ e && J.set(e);
1200
1208
  }
1201
- n.errorCauses && o.addList(n.errorCauses), st();
1209
+ n.errorCauses && o.addList(n.errorCauses), lt();
1202
1210
  } };
1203
1211
  //#endregion
1204
1212
  //#region src/functions/render/getBind.ts
1205
- function St(e, t = {}, n = "value", r = !1) {
1213
+ function Ct(e, t = {}, n = "value", r = !1) {
1206
1214
  let i = typeof t == "string", a = i ? t : n, o = i ? {} : t;
1207
- return e ? e && E(e) && (a in e || r) ? R(o, e) : R(o, { [a]: e }) : i ? {} : { ...o };
1215
+ return e ? e && O(e) && (a in e || r) ? H(o, e) : H(o, { [a]: e }) : i ? {} : { ...o };
1208
1216
  }
1209
1217
  //#endregion
1210
1218
  //#region src/functions/ref/getBindRef.ts
1211
- function Ct(e, t = {}, n = "value") {
1212
- return A(() => St(L(e), L(t), n));
1219
+ function wt(e, t = {}, n = "value") {
1220
+ return M(() => Ct(B(e), B(t), n));
1213
1221
  }
1214
1222
  //#endregion
1215
1223
  //#region src/functions/ref/setRef.ts
1216
- function wt(e, t) {
1224
+ function Tt(e, t) {
1217
1225
  e.value !== t && (e.value = t);
1218
1226
  }
1219
1227
  //#endregion
1220
- export { Ae as DatetimeRef, Se as DesignAbstract, Ce as DesignAsyncAbstract, xe as DesignChanged, Oe as DesignComp, z as DesignComponents, ke as DesignConstructorAbstract, V as EffectScopeGlobal, je as EventRef, Z as ExecuteUseType, Me as GeoFlagRef, Ne as GeoIntlRef, U as GeoRef, Pe as ListDataRef, W as RouterItemRef, Fe as ScrollbarWidthRef, _t as computedAsync, vt as computedByLanguage, bt as computedEternity, xt as dxtFunctionalPlugin, $ as executeUse, it as executeUseGlobal, st as executeUseGlobalInit, ot as executeUseLocal, at as executeUseProvide, St as getBind, Ct as getBindRef, we as getClassName, Te as getIndexForRender, G as getOptions, L as getRef, Ee as render, ze as setApiRefGlobalConditions, wt as setRef, gt as t, R as toBind, De as toBinds, B as toRefItem, Ie as useApiDelete, Le as useApiGet, Ge as useApiManagementRef, Be as useApiPost, Ve as useApiPut, Re as useApiRef, K as useApiRequest, Ke as useBroadcastValueRef, qe as useCookieRef, He as useFormattersRef, Je as useGeoIntlRef, Ye as useHashRef, $e as useLazyItemByMarginRef, Xe as useLazyRef, et as useLoadingRef, lt as useMeta, ut as useRouterList, We as useSearchRef, Ue as useSearchValueRef, dt as useSessionRef, pt as useStorageRef, ht as useTranslateRef };
1228
+ export { De as DatetimeRef, be as DesignAbstract, xe as DesignAsyncAbstract, ye as DesignChanged, Te as DesignComp, U as DesignComponents, Ee as DesignConstructorAbstract, G as EffectScopeGlobal, Oe as EventRef, Q as ExecuteUseType, ke as GeoFlagRef, Ae as GeoIntlRef, q as GeoRef, je as ListDataRef, J as RouterItemRef, Ne as ScrollbarWidthRef, yt as computedAsync, bt as computedByLanguage, xt as computedEternity, St as dxtFunctionalPlugin, $ as executeUse, ot as executeUseGlobal, lt as executeUseGlobalInit, ct as executeUseLocal, st as executeUseProvide, Ct as getBind, wt as getBindRef, Se as getClassName, V as getIndexForRender, Y as getOptions, B as getRef, Ce as render, Le as setApiRefGlobalConditions, Tt as setRef, vt as t, H as toBind, we as toBinds, W as toRefItem, Pe as useApiDelete, Fe as useApiGet, Ue as useApiManagementRef, Re as useApiPost, ze as useApiPut, Ie as useApiRef, X as useApiRequest, Ge as useBroadcastValueRef, qe as useCookieRef, Be as useFormattersRef, Je as useGeoIntlRef, Xe as useHashRef, et as useLazyItemByMarginRef, Ze as useLazyRef, tt as useLoadingRef, dt as useMeta, ft as useRouterList, He as useSearchRef, Ve as useSearchValueRef, mt as useSessionRef, gt as useStorageRef, _t as useTranslateRef };