@dxtmisha/functional 1.10.4 → 1.11.1
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/README.md +1 -1
- package/ai-types.txt +746 -0
- package/dist/library.d.ts +32 -24
- package/dist/library.js +377 -369
- package/package.json +2 -1
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 _,
|
|
2
|
-
import { computed as
|
|
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.
|
|
6
|
-
function
|
|
5
|
+
//#region \0@oxc-project+runtime@0.124.0/helpers/typeof.js
|
|
6
|
+
function R(e) {
|
|
7
7
|
"@babel/helpers - typeof";
|
|
8
|
-
return
|
|
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
|
-
},
|
|
12
|
+
}, R(e);
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
|
-
//#region \0@oxc-project+runtime@0.
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
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 (
|
|
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.
|
|
28
|
-
function
|
|
29
|
-
var t =
|
|
30
|
-
return
|
|
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.
|
|
34
|
-
function
|
|
35
|
-
return (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
|
|
44
|
+
var ye = class {
|
|
45
45
|
constructor(e, t = Object.keys(e)) {
|
|
46
|
-
|
|
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
|
-
},
|
|
65
|
+
}, be = class {
|
|
66
66
|
constructor(e, t, n) {
|
|
67
|
-
|
|
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
|
-
},
|
|
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
|
|
95
|
-
return
|
|
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
|
|
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
|
|
105
|
-
let r = t == null ? void 0 : t.id, i = t == null ? void 0 : t.index, a =
|
|
106
|
-
if (
|
|
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
|
|
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:
|
|
115
|
-
}),
|
|
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
|
|
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
|
|
128
|
+
function we(...e) {
|
|
129
129
|
let t = {};
|
|
130
130
|
return e.forEach((e) => {
|
|
131
|
-
e && (t =
|
|
131
|
+
e && (t = H(t, e));
|
|
132
132
|
}), t;
|
|
133
133
|
}
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/classes/design/DesignComponents.ts
|
|
136
|
-
var
|
|
136
|
+
var U = class {
|
|
137
137
|
constructor(e = {}, t) {
|
|
138
|
-
|
|
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] =
|
|
149
|
+
e in this.caching || (this.caching[e] = M(() => this.computeModification(e)));
|
|
150
150
|
let n = this.caching[e];
|
|
151
|
-
if (n) return t ?
|
|
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
|
|
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 =
|
|
171
|
-
if (n &&
|
|
170
|
+
let n = B((t = this.modification) == null ? void 0 : t[e]);
|
|
171
|
+
if (n && O(n)) {
|
|
172
172
|
let e = {};
|
|
173
|
-
return
|
|
174
|
-
e[n] =
|
|
173
|
+
return S(n, (t, n) => {
|
|
174
|
+
e[n] = B(t);
|
|
175
175
|
}), e;
|
|
176
176
|
}
|
|
177
177
|
return {};
|
|
178
178
|
}
|
|
179
|
-
},
|
|
179
|
+
}, Te = class extends U {}, Ee = class {
|
|
180
180
|
constructor(e, t, n) {
|
|
181
|
-
|
|
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 =
|
|
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()}__${
|
|
193
|
+
return `${this.getName()}__${j(e).join("__")}`;
|
|
194
194
|
}
|
|
195
195
|
getStatusClass(e) {
|
|
196
|
-
return `${this.getName()}--${
|
|
196
|
+
return `${this.getName()}--${j(e).join("--")}`;
|
|
197
197
|
}
|
|
198
198
|
getStyle(e) {
|
|
199
|
-
return `--${this.getName()}-sys-${
|
|
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
|
|
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 (
|
|
227
|
+
if (D(e)) {
|
|
228
228
|
let t = {};
|
|
229
|
-
return
|
|
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
|
|
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
|
|
267
|
-
return
|
|
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
|
|
271
|
+
var De = class {
|
|
272
272
|
constructor(e, t = "date", n = l.getLocation()) {
|
|
273
|
-
|
|
274
|
-
this.date.value =
|
|
275
|
-
}),
|
|
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(() =>
|
|
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
|
|
289
|
+
return M(() => this.date.value && this.datetime.getHoursType());
|
|
290
290
|
}
|
|
291
291
|
getFirstDayCode() {
|
|
292
|
-
return
|
|
292
|
+
return M(() => this.date.value && this.datetime.getFirstDayCode());
|
|
293
293
|
}
|
|
294
294
|
getYear() {
|
|
295
|
-
return
|
|
295
|
+
return M(() => this.year.value);
|
|
296
296
|
}
|
|
297
297
|
getMonth() {
|
|
298
|
-
return
|
|
298
|
+
return M(() => this.month.value);
|
|
299
299
|
}
|
|
300
300
|
getDay() {
|
|
301
|
-
return
|
|
301
|
+
return M(() => this.day.value);
|
|
302
302
|
}
|
|
303
303
|
getHour() {
|
|
304
|
-
return
|
|
304
|
+
return M(() => this.hour.value);
|
|
305
305
|
}
|
|
306
306
|
getMinute() {
|
|
307
|
-
return
|
|
307
|
+
return M(() => this.minute.value);
|
|
308
308
|
}
|
|
309
309
|
getSecond() {
|
|
310
|
-
return
|
|
310
|
+
return M(() => this.second.value);
|
|
311
311
|
}
|
|
312
312
|
getMaxDay() {
|
|
313
|
-
return
|
|
313
|
+
return M(() => this.date.value && this.datetime.getMaxDay());
|
|
314
314
|
}
|
|
315
315
|
locale(e = this.type.value, t) {
|
|
316
|
-
return
|
|
316
|
+
return M(() => this.date.value && this.datetime.locale(e, t));
|
|
317
317
|
}
|
|
318
318
|
standard(e = !0) {
|
|
319
|
-
return
|
|
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
|
-
},
|
|
324
|
+
}, G = class {
|
|
325
325
|
static run(e) {
|
|
326
326
|
return this.getScope().run(e);
|
|
327
327
|
}
|
|
328
328
|
static getScope() {
|
|
329
|
-
return
|
|
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 =
|
|
338
|
-
super(o.value, n, r, i, a), s.value && this.setElementControl(s.value),
|
|
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
|
-
},
|
|
336
|
+
}, ke = class {
|
|
341
337
|
constructor(e = l.getLocation()) {
|
|
342
|
-
|
|
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
|
|
344
|
+
return M(() => this.flag.get(e));
|
|
349
345
|
}
|
|
350
346
|
getFlag(e = this.code.value) {
|
|
351
|
-
return
|
|
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
|
|
353
|
+
return M(() => this.flag.getList(e));
|
|
358
354
|
}
|
|
359
355
|
getNational(e) {
|
|
360
|
-
return
|
|
356
|
+
return M(() => this.flag.getNational(e));
|
|
361
357
|
}
|
|
362
|
-
},
|
|
358
|
+
}, K, q = class {
|
|
363
359
|
static get() {
|
|
364
|
-
return
|
|
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.
|
|
375
|
+
l.set(e, !0), this.get().value = l.getItem();
|
|
380
376
|
}
|
|
381
377
|
};
|
|
382
|
-
|
|
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
|
|
381
|
+
var Ae = class {
|
|
386
382
|
constructor(e) {
|
|
387
|
-
|
|
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 ?
|
|
385
|
+
return new d((e = this.location.value) == null ? q.getLanguage().value : e);
|
|
390
386
|
});
|
|
391
387
|
}
|
|
392
388
|
display(e, t) {
|
|
393
|
-
return
|
|
389
|
+
return M(() => this.intl.value.display(B(e), t));
|
|
394
390
|
}
|
|
395
391
|
languageName(e, t) {
|
|
396
|
-
return
|
|
392
|
+
return M(() => this.intl.value.languageName(B(e), t));
|
|
397
393
|
}
|
|
398
394
|
countryName(e, t) {
|
|
399
|
-
return
|
|
395
|
+
return M(() => this.intl.value.countryName(B(e), t));
|
|
400
396
|
}
|
|
401
397
|
number(e, t) {
|
|
402
|
-
return
|
|
398
|
+
return M(() => this.intl.value.number(B(e), t));
|
|
403
399
|
}
|
|
404
400
|
decimal() {
|
|
405
|
-
return
|
|
401
|
+
return M(() => this.intl.value.decimal());
|
|
406
402
|
}
|
|
407
403
|
currency(e, t, n = !1) {
|
|
408
|
-
return
|
|
404
|
+
return M(() => this.intl.value.currency(B(e), B(t), n));
|
|
409
405
|
}
|
|
410
406
|
currencySymbol(e, t = "symbol") {
|
|
411
|
-
return
|
|
407
|
+
return M(() => this.intl.value.currencySymbol(B(e), t));
|
|
412
408
|
}
|
|
413
409
|
unit(e, t) {
|
|
414
|
-
return
|
|
410
|
+
return M(() => this.intl.value.unit(B(e), t));
|
|
415
411
|
}
|
|
416
412
|
sizeFile(e, t = "byte") {
|
|
417
|
-
return
|
|
413
|
+
return M(() => this.intl.value.sizeFile(B(e), t));
|
|
418
414
|
}
|
|
419
415
|
percent(e, t) {
|
|
420
|
-
return
|
|
416
|
+
return M(() => this.intl.value.percent(B(e), t));
|
|
421
417
|
}
|
|
422
418
|
percentBy100(e, t) {
|
|
423
|
-
return
|
|
419
|
+
return M(() => this.intl.value.percentBy100(B(e), t));
|
|
424
420
|
}
|
|
425
421
|
plural(e, t, n, r) {
|
|
426
|
-
return
|
|
422
|
+
return M(() => this.intl.value.plural(B(e), t, n, r));
|
|
427
423
|
}
|
|
428
424
|
date(e, t, n, r) {
|
|
429
|
-
return
|
|
425
|
+
return M(() => this.intl.value.date(B(e), t, n, r));
|
|
430
426
|
}
|
|
431
427
|
relative(e, t, n) {
|
|
432
|
-
return
|
|
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
|
|
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
|
|
434
|
+
return M(() => this.intl.value.relativeByValue(B(e), t, n));
|
|
439
435
|
}
|
|
440
436
|
month(e, t) {
|
|
441
|
-
return
|
|
437
|
+
return M(() => this.intl.value.month(B(e), t));
|
|
442
438
|
}
|
|
443
439
|
months(e) {
|
|
444
|
-
return
|
|
440
|
+
return M(() => this.intl.value.months(e));
|
|
445
441
|
}
|
|
446
442
|
weekday(e, t) {
|
|
447
|
-
return
|
|
443
|
+
return M(() => this.intl.value.weekday(B(e), t));
|
|
448
444
|
}
|
|
449
445
|
weekdays(e) {
|
|
450
|
-
return
|
|
446
|
+
return M(() => this.intl.value.weekdays(e));
|
|
451
447
|
}
|
|
452
448
|
time(e) {
|
|
453
|
-
return
|
|
449
|
+
return M(() => this.intl.value.time(B(e)));
|
|
454
450
|
}
|
|
455
451
|
sort(e, t = (e, t) => [e, t]) {
|
|
456
|
-
return
|
|
452
|
+
return M(() => this.intl.value.sort([...B(e)], t));
|
|
457
453
|
}
|
|
458
|
-
},
|
|
454
|
+
}, je = class e {
|
|
459
455
|
constructor(e, t, n, r, i, a, o, s, c, l = 0, u = 9999999, d) {
|
|
460
|
-
|
|
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
|
-
})),
|
|
473
|
+
})), z(this, "fullData", M(() => {
|
|
478
474
|
let e = this.getFocus(), t = this.getHighlight(), n = this.getSelected();
|
|
479
|
-
return
|
|
475
|
+
return S(this.data.value, (r) => {
|
|
480
476
|
var i, a;
|
|
481
|
-
let o =
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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 =
|
|
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
|
-
})),
|
|
510
|
+
})), z(this, "isSelected", M(() => {
|
|
515
511
|
let e = this.getSelected();
|
|
516
|
-
return !!e && this.mapItems.value.findIndex((t) =>
|
|
517
|
-
})),
|
|
518
|
-
let e = Number(
|
|
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
|
-
})),
|
|
521
|
-
let e = Number(
|
|
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
|
-
})),
|
|
519
|
+
})), z(this, "selectedList", M(() => {
|
|
524
520
|
let e = this.getSelected();
|
|
525
|
-
return e && this.isSelected.value ? this.mapItems.value.filter((t) =>
|
|
526
|
-
})),
|
|
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) =>
|
|
529
|
-
})),
|
|
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 && !
|
|
636
|
+
return e && !D(e) ? e : t && !D(t) ? t : n && r;
|
|
641
637
|
}
|
|
642
638
|
initItem(e, t) {
|
|
643
|
-
if (
|
|
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
|
-
},
|
|
659
|
+
}, Me = "__ui:router-item-ref__", J = class {
|
|
664
660
|
static get() {
|
|
665
|
-
return
|
|
661
|
+
return v.get(Me);
|
|
666
662
|
}
|
|
667
663
|
static getLink(e, t, n) {
|
|
668
664
|
var r;
|
|
669
|
-
return (r = this.
|
|
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
|
-
|
|
679
|
+
let t = this.get();
|
|
680
|
+
t && t.push(e).then();
|
|
684
681
|
}
|
|
685
682
|
static set(e) {
|
|
686
|
-
|
|
683
|
+
v.set(Me, () => e);
|
|
687
684
|
}
|
|
688
685
|
static setOneTime(e) {
|
|
689
|
-
this.
|
|
686
|
+
this.get() || this.set(e);
|
|
690
687
|
}
|
|
691
688
|
static rawToHref(e) {
|
|
692
|
-
return
|
|
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
|
-
|
|
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
|
-
},
|
|
699
|
+
}, Y = (e) => typeof e == "string" ? { method: e } : e || {};
|
|
707
700
|
//#endregion
|
|
708
701
|
//#region src/composables/ref/useApiRequest.ts
|
|
709
|
-
function
|
|
710
|
-
let l =
|
|
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:
|
|
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
|
|
737
|
-
return
|
|
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
|
|
742
|
-
return
|
|
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
|
|
747
|
-
function
|
|
748
|
-
let
|
|
749
|
-
if (
|
|
750
|
-
|
|
751
|
-
let e =
|
|
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
|
-
|
|
746
|
+
d.value = !0, f.value = !0;
|
|
754
747
|
try {
|
|
755
|
-
let t = await
|
|
748
|
+
let t = await c.request({
|
|
756
749
|
path: e,
|
|
757
|
-
controller:
|
|
758
|
-
...
|
|
750
|
+
controller: m,
|
|
751
|
+
...u.value
|
|
759
752
|
});
|
|
760
|
-
t && (a ?
|
|
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
|
-
|
|
755
|
+
l.value = void 0;
|
|
763
756
|
}
|
|
764
|
-
|
|
765
|
-
} else
|
|
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(
|
|
773
|
-
|
|
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:
|
|
770
|
+
data: x,
|
|
778
771
|
get item() {
|
|
779
|
-
return
|
|
772
|
+
return y(), l;
|
|
780
773
|
},
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
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
|
|
784
|
+
return l.value === void 0;
|
|
787
785
|
},
|
|
788
786
|
isLoading() {
|
|
789
|
-
return
|
|
787
|
+
return d.value;
|
|
790
788
|
},
|
|
791
789
|
isReading() {
|
|
792
|
-
return
|
|
790
|
+
return f.value;
|
|
793
791
|
},
|
|
794
792
|
getItem() {
|
|
795
|
-
return
|
|
793
|
+
return l.value;
|
|
796
794
|
},
|
|
797
|
-
init:
|
|
798
|
-
reset:
|
|
799
|
-
stop:
|
|
800
|
-
abort: () =>
|
|
795
|
+
init: y,
|
|
796
|
+
reset: _,
|
|
797
|
+
stop: v,
|
|
798
|
+
abort: () => m == null ? void 0 : m.abort()
|
|
801
799
|
};
|
|
802
800
|
}
|
|
803
|
-
var
|
|
804
|
-
|
|
801
|
+
var Le = (e) => {
|
|
802
|
+
Z || (Z = e);
|
|
805
803
|
};
|
|
806
804
|
//#endregion
|
|
807
805
|
//#region src/composables/ref/useApiPost.ts
|
|
808
|
-
function
|
|
809
|
-
return
|
|
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
|
|
814
|
-
return
|
|
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
|
|
816
|
+
function Be(e, t) {
|
|
819
817
|
let n = new c(t);
|
|
820
818
|
return {
|
|
821
|
-
listFormat:
|
|
822
|
-
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
|
|
828
|
-
let n = t == null ?
|
|
829
|
-
return
|
|
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
|
|
845
|
-
let i = new _(void 0, t, void 0, r), { search: a, searchDelay: o, loading: s } =
|
|
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:
|
|
849
|
+
length: M(() => u.value.length)
|
|
852
850
|
};
|
|
853
851
|
}
|
|
854
852
|
//#endregion
|
|
855
853
|
//#region src/composables/ref/useApiManagementRef.ts
|
|
856
|
-
function
|
|
857
|
-
let { path: c, options: l, reactivity: u, conditions: d, transformation: f,
|
|
858
|
-
if (t && (
|
|
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 =
|
|
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) &&
|
|
862
|
+
o == null || o(), ee(e) && C.reset().then();
|
|
865
863
|
}, t = (t) => async (n) => {
|
|
866
|
-
|
|
864
|
+
ne(t) && await x(t(n)), e(n);
|
|
867
865
|
};
|
|
868
|
-
r && (
|
|
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:
|
|
872
|
-
list:
|
|
873
|
-
if (
|
|
874
|
-
if (
|
|
875
|
-
if (
|
|
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
|
|
875
|
+
return T.value;
|
|
878
876
|
}),
|
|
879
877
|
get data() {
|
|
880
|
-
return
|
|
878
|
+
return C.data;
|
|
881
879
|
},
|
|
882
880
|
get length() {
|
|
883
|
-
return
|
|
881
|
+
return v ? v.length : C.length;
|
|
884
882
|
},
|
|
885
|
-
lengthData:
|
|
886
|
-
starting:
|
|
887
|
-
reading:
|
|
888
|
-
loading:
|
|
889
|
-
loadingSearch:
|
|
890
|
-
loadingPost:
|
|
891
|
-
loadingPut:
|
|
892
|
-
loadingDelete:
|
|
893
|
-
isSearch:
|
|
894
|
-
search:
|
|
895
|
-
reset:
|
|
896
|
-
abort:
|
|
897
|
-
sendPost: async (e) => await (
|
|
898
|
-
sendPut: async (e) => await (
|
|
899
|
-
sendDelete: async (e) => await (
|
|
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
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
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
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
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
|
-
}),
|
|
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
|
|
933
|
+
return new Ae();
|
|
931
934
|
}
|
|
932
935
|
//#endregion
|
|
933
936
|
//#region src/composables/ref/useHashRef.ts
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
let n =
|
|
937
|
-
|
|
938
|
-
|
|
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
|
-
|
|
941
|
-
}),
|
|
945
|
+
r.value = e;
|
|
946
|
+
})), n[e] = r, r;
|
|
942
947
|
}
|
|
943
|
-
|
|
944
|
-
|
|
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 =
|
|
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 =
|
|
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[
|
|
971
|
+
return t[w(e)];
|
|
965
972
|
},
|
|
966
973
|
addLazyItem(e) {
|
|
967
|
-
let i =
|
|
974
|
+
let i = F(!n);
|
|
968
975
|
if (n) {
|
|
969
976
|
let a;
|
|
970
|
-
a =
|
|
977
|
+
a = I(e, (o, s) => {
|
|
971
978
|
if (s && r(s), e.value) {
|
|
972
|
-
let r =
|
|
979
|
+
let r = w(e.value);
|
|
973
980
|
t[r] = {
|
|
974
981
|
status: i,
|
|
975
|
-
ratio:
|
|
976
|
-
entry:
|
|
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
|
-
},
|
|
988
|
-
let t =
|
|
989
|
-
if (
|
|
990
|
-
let
|
|
991
|
-
return
|
|
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:
|
|
994
|
-
}),
|
|
995
|
-
},
|
|
996
|
-
let n =
|
|
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
|
|
1007
|
-
let e =
|
|
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
|
|
1021
|
+
var Q = /* @__PURE__ */ function(e) {
|
|
1015
1022
|
return e.global = "global", e.provide = "provide", e.local = "local", e;
|
|
1016
|
-
}({}),
|
|
1017
|
-
function $(e, t =
|
|
1018
|
-
let n =
|
|
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
|
|
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 ===
|
|
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 ===
|
|
1047
|
+
return t === Q.global && at().push(s), s;
|
|
1041
1048
|
}
|
|
1042
|
-
function
|
|
1043
|
-
return $(e,
|
|
1049
|
+
function ot(e) {
|
|
1050
|
+
return $(e, Q.global);
|
|
1044
1051
|
}
|
|
1045
|
-
function
|
|
1046
|
-
return $(e,
|
|
1052
|
+
function st(e) {
|
|
1053
|
+
return $(e, Q.provide);
|
|
1047
1054
|
}
|
|
1048
|
-
function
|
|
1049
|
-
return $(e,
|
|
1055
|
+
function ct(e) {
|
|
1056
|
+
return $(e, Q.local);
|
|
1050
1057
|
}
|
|
1051
|
-
function
|
|
1052
|
-
|
|
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
|
|
1057
|
-
let e = new h(), t =
|
|
1058
|
-
return
|
|
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
|
-
}),
|
|
1068
|
+
}), I(n, () => {
|
|
1061
1069
|
e.setKeywords(n.value);
|
|
1062
|
-
}),
|
|
1070
|
+
}), I(r, () => {
|
|
1063
1071
|
e.setDescription(r.value);
|
|
1064
|
-
}),
|
|
1072
|
+
}), I(i, () => {
|
|
1065
1073
|
e.setImage(i.value);
|
|
1066
|
-
}),
|
|
1074
|
+
}), I(a, () => {
|
|
1067
1075
|
e.setCanonical(a.value);
|
|
1068
|
-
}),
|
|
1076
|
+
}), I(o, () => {
|
|
1069
1077
|
e.setRobots(o.value);
|
|
1070
|
-
}),
|
|
1078
|
+
}), I(s, () => {
|
|
1071
1079
|
e.setAuthor(s.value);
|
|
1072
|
-
}),
|
|
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
|
-
}),
|
|
1095
|
+
}), dt = () => ut(), ft = (e, t, n = !0) => {
|
|
1088
1096
|
var r;
|
|
1089
|
-
let i =
|
|
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,
|
|
1101
|
+
e && e !== i.value && o(e) && (i.value = e, J.push({ name: e }));
|
|
1094
1102
|
};
|
|
1095
1103
|
return {
|
|
1096
|
-
item:
|
|
1104
|
+
item: M(() => a()),
|
|
1097
1105
|
selected: i,
|
|
1098
|
-
label:
|
|
1106
|
+
label: M(() => {
|
|
1099
1107
|
var e;
|
|
1100
1108
|
return ((e = a()) == null ? void 0 : e.label) || "";
|
|
1101
1109
|
}),
|
|
1102
|
-
list:
|
|
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
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
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
|
-
|
|
1126
|
-
|
|
1127
|
-
let r =
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
}),
|
|
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
|
|
1138
|
-
let n =
|
|
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
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
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
|
|
1157
|
+
var vt = (e) => _t(e);
|
|
1149
1158
|
//#endregion
|
|
1150
1159
|
//#region src/functions/computedAsync.ts
|
|
1151
|
-
function
|
|
1152
|
-
let r =
|
|
1153
|
-
i && (i = !1,
|
|
1154
|
-
let n = await
|
|
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
|
|
1167
|
+
return M(() => (a(), r.value), n);
|
|
1159
1168
|
}
|
|
1160
1169
|
//#endregion
|
|
1161
1170
|
//#region src/functions/computedByLanguage.ts
|
|
1162
|
-
function
|
|
1163
|
-
return
|
|
1164
|
-
if (
|
|
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
|
|
1177
|
+
return b(t);
|
|
1169
1178
|
}, r);
|
|
1170
1179
|
}
|
|
1171
1180
|
//#endregion
|
|
1172
1181
|
//#region src/functions/computedEternity.ts
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
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,
|
|
1180
|
-
|
|
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
|
|
1196
|
-
if (n.api && e.setConfig(n.api), n.translate &&
|
|
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 &&
|
|
1207
|
+
e && J.set(e);
|
|
1200
1208
|
}
|
|
1201
|
-
n.errorCauses && o.addList(n.errorCauses),
|
|
1209
|
+
n.errorCauses && o.addList(n.errorCauses), lt();
|
|
1202
1210
|
} };
|
|
1203
1211
|
//#endregion
|
|
1204
1212
|
//#region src/functions/render/getBind.ts
|
|
1205
|
-
function
|
|
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 &&
|
|
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
|
|
1212
|
-
return
|
|
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
|
|
1224
|
+
function Tt(e, t) {
|
|
1217
1225
|
e.value !== t && (e.value = t);
|
|
1218
1226
|
}
|
|
1219
1227
|
//#endregion
|
|
1220
|
-
export {
|
|
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 };
|