@dxtmisha/functional 1.9.0 → 1.9.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/dist/library.d.ts +4 -13
- package/dist/library.js +429 -419
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var l = (s, t, e) =>
|
|
4
|
-
import { isArray as
|
|
1
|
+
var Lt = Object.defineProperty;
|
|
2
|
+
var wt = (s, t, e) => t in s ? Lt(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var l = (s, t, e) => wt(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { isArray as xt, isString as X, isObjectNotArray as j, forEach as E, toArray as U, isObject as Z, toCamelCase as Ct, toDate as ut, Datetime as kt, Geo as R, EventItem as Dt, GeoFlag as At, GeoIntl as Bt, isSelected as T, getExp as Mt, getColumn as lt, ScrollbarWidth as Nt, ApiMethodItem as z, Api as gt, Formatters as Ft, SearchList as Ht, executeFunction as et, isFunction as ot, executePromise as it, isApiSuccess as Et, BroadcastMessage as $t, Cookie as Rt, Hash as _, isDomRuntime as ft, getElementId as $, Loading as ct, random as Pt, Meta as jt, DataStorage as vt, Translate as ht } from "@dxtmisha/functional-basic";
|
|
5
5
|
export * from "@dxtmisha/functional-basic";
|
|
6
|
-
import { isRef as
|
|
7
|
-
class
|
|
6
|
+
import { isRef as V, h as zt, computed as u, toRefs as Vt, useAttrs as Tt, useSlots as Ot, ref as f, watch as y, triggerRef as Wt, effectScope as st, shallowRef as N, getCurrentInstance as Ut, onUnmounted as _t, inject as Gt, provide as Kt, watchEffect as mt, customRef as Yt } from "vue";
|
|
7
|
+
class Jt {
|
|
8
8
|
/**
|
|
9
9
|
* Constructor
|
|
10
10
|
* @param props base data/ базовые данные
|
|
@@ -21,7 +21,7 @@ class Gt {
|
|
|
21
21
|
* @param name property name/ название свойства
|
|
22
22
|
*/
|
|
23
23
|
is(t) {
|
|
24
|
-
return
|
|
24
|
+
return xt(t) ? !!t.find((e) => this.isDifferent(e)) : this.isDifferent(t);
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Checks if there are changes in the data.
|
|
@@ -54,7 +54,7 @@ class Gt {
|
|
|
54
54
|
return ((e = this.cache) == null ? void 0 : e[t]) !== ((i = this.props) == null ? void 0 : i[t]);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
class
|
|
57
|
+
class Qt {
|
|
58
58
|
/**
|
|
59
59
|
* Constructor
|
|
60
60
|
* @param props base data/ базовые данные
|
|
@@ -65,7 +65,7 @@ class Kt {
|
|
|
65
65
|
constructor(t, e, i) {
|
|
66
66
|
l(this, "event", {});
|
|
67
67
|
l(this, "changed");
|
|
68
|
-
this.props = t, this.callback = e, this.changed = new
|
|
68
|
+
this.props = t, this.callback = e, this.changed = new Jt(t, i);
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* Calls the callback function.
|
|
@@ -113,7 +113,7 @@ class Kt {
|
|
|
113
113
|
this.callback && this.callback(this.event);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
class
|
|
116
|
+
class xe extends Qt {
|
|
117
117
|
/**
|
|
118
118
|
* Calls the callback function.
|
|
119
119
|
*
|
|
@@ -133,40 +133,40 @@ class Ie extends Kt {
|
|
|
133
133
|
(t || this.changed.isChanged()) && (await this.initEvent(), this.makeCallbackItem(), this.changed.update());
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
136
|
+
function g(s) {
|
|
137
|
+
return V(s) ? s.value : s;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Xt(s) {
|
|
140
140
|
return s && "class" in s && typeof s.class == "string" ? s.class : void 0;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
const i = t == null ? void 0 : t.id, n = t == null ? void 0 : t.index, r =
|
|
142
|
+
function Zt(s, t, e) {
|
|
143
|
+
const i = t == null ? void 0 : t.id, n = t == null ? void 0 : t.index, r = Xt(t);
|
|
144
144
|
let a = "";
|
|
145
|
-
if (
|
|
145
|
+
if (X(s) && (a += s), e && (a += `.${e}`), n && X(n) && (a += `.${n}`), r && (a += `.${r}`), i && (a += `.${i}`), a !== "")
|
|
146
146
|
return a;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function qt(s, t, e, i) {
|
|
149
149
|
let n = t;
|
|
150
150
|
const r = t && "key" in t;
|
|
151
151
|
return (!t || !r) && (n = {
|
|
152
152
|
...t,
|
|
153
|
-
key:
|
|
154
|
-
}),
|
|
153
|
+
key: Zt(s, t, i)
|
|
154
|
+
}), zt(s, n, e);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function q(s, t) {
|
|
157
157
|
const e = s == null ? void 0 : s.class, i = t == null ? void 0 : t.class, n = s == null ? void 0 : s.style, r = t == null ? void 0 : t.style, a = {
|
|
158
158
|
...s,
|
|
159
159
|
...t
|
|
160
160
|
};
|
|
161
161
|
return e && i && (a.class = [], e && a.class.push(e), i && a.class.push(i)), n && r && (a.style = [], n && a.style.push(n), r && a.style.push(r)), a;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function te(...s) {
|
|
164
164
|
let t = {};
|
|
165
165
|
return s.forEach((e) => {
|
|
166
|
-
e && (t =
|
|
166
|
+
e && (t = q(t, e));
|
|
167
167
|
}), t;
|
|
168
168
|
}
|
|
169
|
-
class
|
|
169
|
+
class yt {
|
|
170
170
|
/**
|
|
171
171
|
* Constructor
|
|
172
172
|
* @param components list of connected components/ список подключенных компонентов
|
|
@@ -208,7 +208,7 @@ class ft {
|
|
|
208
208
|
t in this.caching || (this.caching[t] = u(() => this.computeModification(t)));
|
|
209
209
|
const i = this.caching[t];
|
|
210
210
|
if (i)
|
|
211
|
-
return e ?
|
|
211
|
+
return e ? te(i.value, e) : i.value;
|
|
212
212
|
}
|
|
213
213
|
return e;
|
|
214
214
|
}
|
|
@@ -242,7 +242,7 @@ class ft {
|
|
|
242
242
|
renderOne(t, e, i, n) {
|
|
243
243
|
if (this.is(t)) {
|
|
244
244
|
const r = n != null ? n : t;
|
|
245
|
-
return
|
|
245
|
+
return qt(
|
|
246
246
|
this.get(t),
|
|
247
247
|
this.getModification(r, e),
|
|
248
248
|
i,
|
|
@@ -272,19 +272,19 @@ class ft {
|
|
|
272
272
|
*/
|
|
273
273
|
computeModification(t) {
|
|
274
274
|
var i;
|
|
275
|
-
const e =
|
|
276
|
-
if (e &&
|
|
275
|
+
const e = g((i = this.modification) == null ? void 0 : i[t]);
|
|
276
|
+
if (e && j(e)) {
|
|
277
277
|
const n = {};
|
|
278
|
-
return
|
|
279
|
-
n[a] =
|
|
278
|
+
return E(e, (r, a) => {
|
|
279
|
+
n[a] = g(r);
|
|
280
280
|
}), n;
|
|
281
281
|
}
|
|
282
282
|
return {};
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
class
|
|
285
|
+
class Ce extends yt {
|
|
286
286
|
}
|
|
287
|
-
class
|
|
287
|
+
class ke {
|
|
288
288
|
/**
|
|
289
289
|
* Constructor
|
|
290
290
|
* @param name class name/ название класса
|
|
@@ -293,7 +293,7 @@ class we {
|
|
|
293
293
|
*/
|
|
294
294
|
constructor(t, e, i) {
|
|
295
295
|
l(this, "name");
|
|
296
|
-
l(this, "element",
|
|
296
|
+
l(this, "element", f());
|
|
297
297
|
l(this, "refs");
|
|
298
298
|
l(this, "components");
|
|
299
299
|
l(this, "emits");
|
|
@@ -304,7 +304,7 @@ class we {
|
|
|
304
304
|
l(this, "attrs");
|
|
305
305
|
l(this, "slots");
|
|
306
306
|
l(this, "dataExpose");
|
|
307
|
-
this.props = e, this.options = i, this.name = this.initName(t), this.refs = this.props ?
|
|
307
|
+
this.props = e, this.options = i, this.name = this.initName(t), this.refs = this.props ? Vt(this.props) : {}, this.components = new yt(i == null ? void 0 : i.components, i == null ? void 0 : i.compMod), this.emits = i == null ? void 0 : i.emits, this.classes = u(() => this.updateClasses()), this.styles = u(() => this.updateStyles()), this.attrs = Tt(), this.slots = Ot();
|
|
308
308
|
}
|
|
309
309
|
init() {
|
|
310
310
|
return this.classesSub = u(() => this.initClasses()), this.stylesSub = u(() => this.initStyles()), this.dataExpose = this.initExpose(), this;
|
|
@@ -332,7 +332,7 @@ class we {
|
|
|
332
332
|
* @param name list of class names by levels/ список названий классов по уровням
|
|
333
333
|
*/
|
|
334
334
|
getSubClass(t) {
|
|
335
|
-
return `${this.getName()}__${
|
|
335
|
+
return `${this.getName()}__${U(t).join("__")}`;
|
|
336
336
|
}
|
|
337
337
|
/**
|
|
338
338
|
* Getting the class name for the status.
|
|
@@ -341,7 +341,7 @@ class we {
|
|
|
341
341
|
* @param name list of class names by levels/ список названий классов по уровням
|
|
342
342
|
*/
|
|
343
343
|
getStatusClass(t) {
|
|
344
|
-
return `${this.getName()}--${
|
|
344
|
+
return `${this.getName()}--${U(t).join("--")}`;
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
347
347
|
* Getting the property name for the style.
|
|
@@ -350,7 +350,7 @@ class we {
|
|
|
350
350
|
* @param name list of class names by levels/ список названий классов по уровням
|
|
351
351
|
*/
|
|
352
352
|
getStyle(t) {
|
|
353
|
-
return `--${this.getName()}-sys-${
|
|
353
|
+
return `--${this.getName()}-sys-${U(t).join("-")}`;
|
|
354
354
|
}
|
|
355
355
|
/**
|
|
356
356
|
* Getting additional parameters.
|
|
@@ -405,7 +405,7 @@ class we {
|
|
|
405
405
|
* @param classes list of classes for transformation/ список классов для преобразования
|
|
406
406
|
*/
|
|
407
407
|
toClass(t) {
|
|
408
|
-
return
|
|
408
|
+
return j(t) ? t : Array.isArray(t) ? { [t.filter((i) => typeof i == "string" && i.trim() !== "").join(" ")]: !0 } : typeof t == "string" ? { [t]: !0 } : {};
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
411
|
* Converts the class name to standard for the current component.
|
|
@@ -414,9 +414,9 @@ class we {
|
|
|
414
414
|
* @param classes list of classes/ список классов
|
|
415
415
|
*/
|
|
416
416
|
toClassName(t) {
|
|
417
|
-
if (
|
|
417
|
+
if (Z(t)) {
|
|
418
418
|
const e = {};
|
|
419
|
-
return
|
|
419
|
+
return E(t, (i, n) => {
|
|
420
420
|
n.match(/\?\?/) ? e[n.replace(/\?\?/, this.getName())] = i : n.match(/\?/) ? e[n.replace(/\?/, this.getDesign())] = i : e[n] = i;
|
|
421
421
|
}), e;
|
|
422
422
|
}
|
|
@@ -429,7 +429,7 @@ class we {
|
|
|
429
429
|
* @param name component name for transformation/ название компонента для преобразования
|
|
430
430
|
*/
|
|
431
431
|
initName(t) {
|
|
432
|
-
return
|
|
432
|
+
return E(t.split(".", 2), (e) => Ct(e));
|
|
433
433
|
}
|
|
434
434
|
/**
|
|
435
435
|
* Updating data about the class.
|
|
@@ -465,37 +465,37 @@ class we {
|
|
|
465
465
|
} : (a = e != null ? e : t) != null ? a : {};
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
return
|
|
468
|
+
function D(s) {
|
|
469
|
+
return V(s) ? s : f(s);
|
|
470
470
|
}
|
|
471
|
-
class
|
|
471
|
+
class De {
|
|
472
472
|
/**
|
|
473
473
|
* Constructor
|
|
474
474
|
* @param date date for processing. дата для обработки
|
|
475
475
|
* @param type type of date format for output. тип формата даты вывода
|
|
476
476
|
* @param code country and language code. код страны и языка
|
|
477
477
|
*/
|
|
478
|
-
constructor(t, e = "date", i =
|
|
478
|
+
constructor(t, e = "date", i = R.getLocation()) {
|
|
479
479
|
l(this, "item");
|
|
480
480
|
l(this, "type");
|
|
481
481
|
l(this, "code");
|
|
482
482
|
l(this, "date");
|
|
483
483
|
l(this, "datetime");
|
|
484
|
-
l(this, "year",
|
|
485
|
-
l(this, "month",
|
|
486
|
-
l(this, "day",
|
|
487
|
-
l(this, "hour",
|
|
488
|
-
l(this, "minute",
|
|
489
|
-
l(this, "second",
|
|
490
|
-
this.item =
|
|
484
|
+
l(this, "year", f(2e3));
|
|
485
|
+
l(this, "month", f(1));
|
|
486
|
+
l(this, "day", f(1));
|
|
487
|
+
l(this, "hour", f(1));
|
|
488
|
+
l(this, "minute", f(1));
|
|
489
|
+
l(this, "second", f(1));
|
|
490
|
+
this.item = D(t), this.type = D(e), this.code = D(i), this.date = f(ut(this.item.value)), this.datetime = new kt(
|
|
491
491
|
this.date.value,
|
|
492
492
|
this.type.value,
|
|
493
493
|
this.code.value
|
|
494
|
-
),
|
|
495
|
-
this.date.value =
|
|
496
|
-
}),
|
|
494
|
+
), y(this.item, (n) => {
|
|
495
|
+
this.date.value = ut(n);
|
|
496
|
+
}), y(this.type, (n) => this.datetime.setType(n)), y(this.code, (n) => this.datetime.setCode(n)), y(this.date, (n) => {
|
|
497
497
|
this.datetime.setDate(n), this.updateDate();
|
|
498
|
-
}), this.datetime.setWatch(() =>
|
|
498
|
+
}), this.datetime.setWatch(() => Wt(this.date)), this.updateDate();
|
|
499
499
|
}
|
|
500
500
|
/**
|
|
501
501
|
* Returns the basic data for the date.
|
|
@@ -623,7 +623,7 @@ class xe {
|
|
|
623
623
|
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;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
class
|
|
626
|
+
class F {
|
|
627
627
|
/**
|
|
628
628
|
* Runs a function within the global scope.
|
|
629
629
|
*
|
|
@@ -641,7 +641,7 @@ class N {
|
|
|
641
641
|
* @returns the global effect scope instance/ экземпляр глобальной области действия эффекта
|
|
642
642
|
*/
|
|
643
643
|
static getScope() {
|
|
644
|
-
return this.scope || (this.scope =
|
|
644
|
+
return this.scope || (this.scope = st(!0)), this.scope;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
/**
|
|
@@ -649,8 +649,8 @@ class N {
|
|
|
649
649
|
*
|
|
650
650
|
* Экземпляр области действия эффекта.
|
|
651
651
|
*/
|
|
652
|
-
l(
|
|
653
|
-
class
|
|
652
|
+
l(F, "scope");
|
|
653
|
+
class Ae extends Dt {
|
|
654
654
|
/**
|
|
655
655
|
* Classes Constructor
|
|
656
656
|
* @param elementSelector element/ элемент
|
|
@@ -664,25 +664,25 @@ class Ce extends wt {
|
|
|
664
664
|
* значение, связанное с событием
|
|
665
665
|
*/
|
|
666
666
|
constructor(t, e, i = ["click"], n, r, a) {
|
|
667
|
-
const h =
|
|
667
|
+
const h = D(t), c = D(e);
|
|
668
668
|
super(
|
|
669
669
|
h.value,
|
|
670
670
|
i,
|
|
671
671
|
n,
|
|
672
672
|
r,
|
|
673
673
|
a
|
|
674
|
-
), c.value && this.setElementControl(c.value),
|
|
674
|
+
), c.value && this.setElementControl(c.value), y(h, (o) => this.setElement(o)), y(c, (o) => this.setElementControl(o));
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
class
|
|
677
|
+
class Be {
|
|
678
678
|
/**
|
|
679
679
|
* Constructor
|
|
680
680
|
* @param code country and language code/ код страны и языка
|
|
681
681
|
*/
|
|
682
|
-
constructor(t =
|
|
682
|
+
constructor(t = R.getLocation()) {
|
|
683
683
|
l(this, "code");
|
|
684
684
|
l(this, "flag");
|
|
685
|
-
this.code =
|
|
685
|
+
this.code = D(t), this.flag = new At(this.code.value), y(this.code, (e) => this.flag.setCode(e));
|
|
686
686
|
}
|
|
687
687
|
/**
|
|
688
688
|
* Obtaining a reactive object with the country code.
|
|
@@ -732,7 +732,7 @@ class ke {
|
|
|
732
732
|
return u(() => this.flag.getNational(t));
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
|
-
const
|
|
735
|
+
const I = class I {
|
|
736
736
|
/**
|
|
737
737
|
* Information about the current country.
|
|
738
738
|
*
|
|
@@ -788,12 +788,12 @@ const x = class x {
|
|
|
788
788
|
* код страны, полный вид язык-страна или один из них
|
|
789
789
|
*/
|
|
790
790
|
static set(t) {
|
|
791
|
-
|
|
791
|
+
R.set(t, !0), this.item.value = R.getItem();
|
|
792
792
|
}
|
|
793
793
|
};
|
|
794
|
-
l(
|
|
795
|
-
let
|
|
796
|
-
class
|
|
794
|
+
l(I, "item", N(R.get())), l(I, "country", u(() => I.item.value.country)), l(I, "language", u(() => I.item.value.language)), l(I, "standard", u(() => I.item.value.standard)), l(I, "firstDay", u(() => I.item.value.firstDay));
|
|
795
|
+
let P = I;
|
|
796
|
+
class ee {
|
|
797
797
|
/**
|
|
798
798
|
* Constructor
|
|
799
799
|
* @param code country code, full form language-country or one of them/
|
|
@@ -802,9 +802,9 @@ class Zt {
|
|
|
802
802
|
constructor(t) {
|
|
803
803
|
l(this, "location");
|
|
804
804
|
l(this, "intl");
|
|
805
|
-
this.location =
|
|
805
|
+
this.location = D(t), this.intl = u(() => {
|
|
806
806
|
var e;
|
|
807
|
-
return new
|
|
807
|
+
return new Bt((e = this.location.value) != null ? e : P.getLanguage().value);
|
|
808
808
|
});
|
|
809
809
|
}
|
|
810
810
|
/**
|
|
@@ -816,7 +816,7 @@ class Zt {
|
|
|
816
816
|
* объект с некоторыми или всеми из следующих свойств
|
|
817
817
|
*/
|
|
818
818
|
display(t, e) {
|
|
819
|
-
return u(() => this.intl.value.display(
|
|
819
|
+
return u(() => this.intl.value.display(g(t), e));
|
|
820
820
|
}
|
|
821
821
|
/**
|
|
822
822
|
* Get display names of language.
|
|
@@ -826,7 +826,7 @@ class Zt {
|
|
|
826
826
|
* @param style the formatting style to use/ используемый стиль форматирования
|
|
827
827
|
*/
|
|
828
828
|
languageName(t, e) {
|
|
829
|
-
return u(() => this.intl.value.languageName(
|
|
829
|
+
return u(() => this.intl.value.languageName(g(t), e));
|
|
830
830
|
}
|
|
831
831
|
/**
|
|
832
832
|
* Get display names of region.
|
|
@@ -836,7 +836,7 @@ class Zt {
|
|
|
836
836
|
* @param style the formatting style to use/ используемый стиль форматирования
|
|
837
837
|
*/
|
|
838
838
|
countryName(t, e) {
|
|
839
|
-
return u(() => this.intl.value.countryName(
|
|
839
|
+
return u(() => this.intl.value.countryName(g(t), e));
|
|
840
840
|
}
|
|
841
841
|
/**
|
|
842
842
|
* In basic use without specifying a locale, a formatted string.
|
|
@@ -848,7 +848,7 @@ class Zt {
|
|
|
848
848
|
* или всеми свойствами
|
|
849
849
|
*/
|
|
850
850
|
number(t, e) {
|
|
851
|
-
return u(() => this.intl.value.number(
|
|
851
|
+
return u(() => this.intl.value.number(g(t), e));
|
|
852
852
|
}
|
|
853
853
|
/**
|
|
854
854
|
* Decimal point symbol.
|
|
@@ -870,8 +870,8 @@ class Zt {
|
|
|
870
870
|
currency(t, e, i = !1) {
|
|
871
871
|
return u(
|
|
872
872
|
() => this.intl.value.currency(
|
|
873
|
-
|
|
874
|
-
|
|
873
|
+
g(t),
|
|
874
|
+
g(e),
|
|
875
875
|
i
|
|
876
876
|
)
|
|
877
877
|
);
|
|
@@ -886,7 +886,7 @@ class Zt {
|
|
|
886
886
|
* как отобразить валюту в формате валюты
|
|
887
887
|
*/
|
|
888
888
|
currencySymbol(t, e = "symbol") {
|
|
889
|
-
return u(() => this.intl.value.currencySymbol(
|
|
889
|
+
return u(() => this.intl.value.currencySymbol(g(t), e));
|
|
890
890
|
}
|
|
891
891
|
/**
|
|
892
892
|
* Unit formatting.
|
|
@@ -898,7 +898,7 @@ class Zt {
|
|
|
898
898
|
* в форматировании блока
|
|
899
899
|
*/
|
|
900
900
|
unit(t, e) {
|
|
901
|
-
return u(() => this.intl.value.unit(
|
|
901
|
+
return u(() => this.intl.value.unit(g(t), e));
|
|
902
902
|
}
|
|
903
903
|
/**
|
|
904
904
|
* Возвращает отформатированный размер файла
|
|
@@ -907,7 +907,7 @@ class Zt {
|
|
|
907
907
|
* в форматировании блока
|
|
908
908
|
*/
|
|
909
909
|
sizeFile(t, e = "byte") {
|
|
910
|
-
return u(() => this.intl.value.sizeFile(
|
|
910
|
+
return u(() => this.intl.value.sizeFile(g(t), e));
|
|
911
911
|
}
|
|
912
912
|
/**
|
|
913
913
|
* Number as a percentage.
|
|
@@ -917,7 +917,7 @@ class Zt {
|
|
|
917
917
|
* @param options an object with some or all properties/ объект с некоторыми или всеми свойствами
|
|
918
918
|
*/
|
|
919
919
|
percent(t, e) {
|
|
920
|
-
return u(() => this.intl.value.percent(
|
|
920
|
+
return u(() => this.intl.value.percent(g(t), e));
|
|
921
921
|
}
|
|
922
922
|
/**
|
|
923
923
|
* Number as a percentage (unit).
|
|
@@ -928,7 +928,7 @@ class Zt {
|
|
|
928
928
|
* объект с некоторыми или всеми свойствами
|
|
929
929
|
*/
|
|
930
930
|
percentBy100(t, e) {
|
|
931
|
-
return u(() => this.intl.value.percentBy100(
|
|
931
|
+
return u(() => this.intl.value.percentBy100(g(t), e));
|
|
932
932
|
}
|
|
933
933
|
/**
|
|
934
934
|
* Применять форматирование, учитывающее множественное число, и языковые правила, связанные с множественным числом
|
|
@@ -939,7 +939,7 @@ class Zt {
|
|
|
939
939
|
* @param optionsNumber an object with some or all properties/ объект с некоторыми или всеми свойствами
|
|
940
940
|
*/
|
|
941
941
|
plural(t, e, i, n) {
|
|
942
|
-
return u(() => this.intl.value.plural(
|
|
942
|
+
return u(() => this.intl.value.plural(g(t), e, i, n));
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
945
|
* Enables language-sensitive date and time formatting.
|
|
@@ -951,7 +951,7 @@ class Zt {
|
|
|
951
951
|
* @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
|
|
952
952
|
*/
|
|
953
953
|
date(t, e, i, n) {
|
|
954
|
-
return u(() => this.intl.value.date(
|
|
954
|
+
return u(() => this.intl.value.date(g(t), e, i, n));
|
|
955
955
|
}
|
|
956
956
|
/**
|
|
957
957
|
* Enables language-sensitive relative time formatting.
|
|
@@ -963,7 +963,7 @@ class Zt {
|
|
|
963
963
|
* @param todayValue current day/ текущий день
|
|
964
964
|
*/
|
|
965
965
|
relative(t, e, i) {
|
|
966
|
-
return u(() => this.intl.value.relative(
|
|
966
|
+
return u(() => this.intl.value.relative(g(t), e, i));
|
|
967
967
|
}
|
|
968
968
|
/**
|
|
969
969
|
* Enables language-sensitive relative time formatting
|
|
@@ -985,7 +985,7 @@ class Zt {
|
|
|
985
985
|
*/
|
|
986
986
|
relativeLimit(t, e, i, n, r, a, h) {
|
|
987
987
|
return u(() => this.intl.value.relativeLimit(
|
|
988
|
-
|
|
988
|
+
g(t),
|
|
989
989
|
e,
|
|
990
990
|
i,
|
|
991
991
|
n,
|
|
@@ -1001,7 +1001,7 @@ class Zt {
|
|
|
1001
1001
|
* @param styleOptions additional option or formatting style/ дополнительная опция или стиль форматирования
|
|
1002
1002
|
*/
|
|
1003
1003
|
relativeByValue(t, e, i) {
|
|
1004
|
-
return u(() => this.intl.value.relativeByValue(
|
|
1004
|
+
return u(() => this.intl.value.relativeByValue(g(t), e, i));
|
|
1005
1005
|
}
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Names of months.
|
|
@@ -1011,7 +1011,7 @@ class Zt {
|
|
|
1011
1011
|
* @param style the representation of the month/ представление месяца
|
|
1012
1012
|
*/
|
|
1013
1013
|
month(t, e) {
|
|
1014
|
-
return u(() => this.intl.value.month(
|
|
1014
|
+
return u(() => this.intl.value.month(g(t), e));
|
|
1015
1015
|
}
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Array to list of months.
|
|
@@ -1030,7 +1030,7 @@ class Zt {
|
|
|
1030
1030
|
* @param style the representation of the weekday/ представление о дне недели
|
|
1031
1031
|
*/
|
|
1032
1032
|
weekday(t, e) {
|
|
1033
|
-
return u(() => this.intl.value.weekday(
|
|
1033
|
+
return u(() => this.intl.value.weekday(g(t), e));
|
|
1034
1034
|
}
|
|
1035
1035
|
/**
|
|
1036
1036
|
* An array of the list of names of the days of the week.
|
|
@@ -1048,7 +1048,7 @@ class Zt {
|
|
|
1048
1048
|
* @param value the date to format/ дата для форматирования
|
|
1049
1049
|
*/
|
|
1050
1050
|
time(t) {
|
|
1051
|
-
return u(() => this.intl.value.time(
|
|
1051
|
+
return u(() => this.intl.value.time(g(t)));
|
|
1052
1052
|
}
|
|
1053
1053
|
/**
|
|
1054
1054
|
* Sorts strings taking into account the characteristics of countries.
|
|
@@ -1058,10 +1058,10 @@ class Zt {
|
|
|
1058
1058
|
* @param compareFn a function for sorting/ функция для сортировки
|
|
1059
1059
|
*/
|
|
1060
1060
|
sort(t, e = (i, n) => [i, n]) {
|
|
1061
|
-
return u(() => this.intl.value.sort([...
|
|
1061
|
+
return u(() => this.intl.value.sort([...g(t)], e));
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
|
-
class
|
|
1064
|
+
class pt {
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Creates an instance of ListData for managing list data.
|
|
1067
1067
|
*
|
|
@@ -1079,7 +1079,7 @@ class vt {
|
|
|
1079
1079
|
* @param max Maximum number of selections / максимальное количество выделений
|
|
1080
1080
|
* @param parent Parent identifier / идентификатор родителя
|
|
1081
1081
|
*/
|
|
1082
|
-
constructor(t, e, i, n, r, a, h, c, o,
|
|
1082
|
+
constructor(t, e, i, n, r, a, h, c, o, m = 0, S = 9999999, d) {
|
|
1083
1083
|
l(this, "subList", {});
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Returns a list for forming a list.
|
|
@@ -1088,8 +1088,8 @@ class vt {
|
|
|
1088
1088
|
* @returns reactive list of items/ реактивный список элементов
|
|
1089
1089
|
*/
|
|
1090
1090
|
l(this, "data", u(
|
|
1091
|
-
() =>
|
|
1092
|
-
|
|
1091
|
+
() => E(
|
|
1092
|
+
g(this.list) || [],
|
|
1093
1093
|
(t, e) => this.initItem(e, t)
|
|
1094
1094
|
)
|
|
1095
1095
|
));
|
|
@@ -1125,11 +1125,11 @@ class vt {
|
|
|
1125
1125
|
*/
|
|
1126
1126
|
l(this, "fullData", u(() => {
|
|
1127
1127
|
const t = this.getFocus(), e = this.getHighlight(), i = this.getSelected();
|
|
1128
|
-
return
|
|
1128
|
+
return E(
|
|
1129
1129
|
this.data.value,
|
|
1130
1130
|
(n) => {
|
|
1131
1131
|
var a, h;
|
|
1132
|
-
const r =
|
|
1132
|
+
const r = T(n.index, i);
|
|
1133
1133
|
return {
|
|
1134
1134
|
...n,
|
|
1135
1135
|
focus: t === n.index,
|
|
@@ -1184,7 +1184,7 @@ class vt {
|
|
|
1184
1184
|
l(this, "highlightFirstItem", u(() => {
|
|
1185
1185
|
const t = this.getHighlight();
|
|
1186
1186
|
if (t && t.length >= this.getHighlightLengthStart()) {
|
|
1187
|
-
const e =
|
|
1187
|
+
const e = Mt(t, "i");
|
|
1188
1188
|
if (e)
|
|
1189
1189
|
return this.map.value.findIndex(
|
|
1190
1190
|
(i) => {
|
|
@@ -1203,7 +1203,7 @@ class vt {
|
|
|
1203
1203
|
*/
|
|
1204
1204
|
l(this, "isSelected", u(() => {
|
|
1205
1205
|
const t = this.getSelected();
|
|
1206
|
-
return !!t && this.mapItems.value.findIndex((e) =>
|
|
1206
|
+
return !!t && this.mapItems.value.findIndex((e) => T(e.index, t)) !== -1;
|
|
1207
1207
|
}));
|
|
1208
1208
|
/**
|
|
1209
1209
|
* Is the minimum selection reached.
|
|
@@ -1212,7 +1212,7 @@ class vt {
|
|
|
1212
1212
|
* @returns true if minimum reached/ true, если минимум достигнут
|
|
1213
1213
|
*/
|
|
1214
1214
|
l(this, "isSelectedMin", u(() => {
|
|
1215
|
-
const t = Number(
|
|
1215
|
+
const t = Number(g(this.min) || 0);
|
|
1216
1216
|
return t > 0 ? this.selectedListInGroup.value.length >= t : !1;
|
|
1217
1217
|
}));
|
|
1218
1218
|
/**
|
|
@@ -1222,7 +1222,7 @@ class vt {
|
|
|
1222
1222
|
* @returns true if maximum reached/ true, если максимум достигнут
|
|
1223
1223
|
*/
|
|
1224
1224
|
l(this, "isSelectedMax", u(() => {
|
|
1225
|
-
const t = Number(
|
|
1225
|
+
const t = Number(g(this.max) || 9999999);
|
|
1226
1226
|
return t > 0 ? this.selectedListInGroup.value.length >= t : !1;
|
|
1227
1227
|
}));
|
|
1228
1228
|
/**
|
|
@@ -1233,7 +1233,7 @@ class vt {
|
|
|
1233
1233
|
*/
|
|
1234
1234
|
l(this, "selectedList", u(() => {
|
|
1235
1235
|
const t = this.getSelected();
|
|
1236
|
-
return t && this.isSelected.value ? this.mapItems.value.filter((e) =>
|
|
1236
|
+
return t && this.isSelected.value ? this.mapItems.value.filter((e) => T(e.index, t)) : [];
|
|
1237
1237
|
}));
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Returns a list of selected items in the current group.
|
|
@@ -1243,7 +1243,7 @@ class vt {
|
|
|
1243
1243
|
*/
|
|
1244
1244
|
l(this, "selectedListInGroup", u(() => {
|
|
1245
1245
|
const t = this.getSelected();
|
|
1246
|
-
return t && this.isSelected.value ? this.data.value.filter((e) =>
|
|
1246
|
+
return t && this.isSelected.value ? this.data.value.filter((e) => T(e.index, t)) : [];
|
|
1247
1247
|
}));
|
|
1248
1248
|
/**
|
|
1249
1249
|
* Returns a list of selected labels on the map.
|
|
@@ -1251,15 +1251,15 @@ class vt {
|
|
|
1251
1251
|
* Возвращает список названий выделенных элементов на карте.
|
|
1252
1252
|
* @returns reactive list of labels/ реактивный список названий
|
|
1253
1253
|
*/
|
|
1254
|
-
l(this, "selectedNames", u(() =>
|
|
1254
|
+
l(this, "selectedNames", u(() => lt(this.selectedList.value, "label")));
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Returns a list of selected values on the map.
|
|
1257
1257
|
*
|
|
1258
1258
|
* Возвращает список значений выделенных элементов на карте.
|
|
1259
1259
|
* @returns reactive list of values/ реактивный список значений
|
|
1260
1260
|
*/
|
|
1261
|
-
l(this, "selectedValues", u(() =>
|
|
1262
|
-
this.list = t, this.focus = e, this.highlight = i, this.highlightLengthStart = n, this.filterMode = r, this.selected = a, this.keyValue = h, this.keyLabel = c, this.lite = o, this.min =
|
|
1261
|
+
l(this, "selectedValues", u(() => lt(this.selectedList.value, "value")));
|
|
1262
|
+
this.list = t, this.focus = e, this.highlight = i, this.highlightLengthStart = n, this.filterMode = r, this.selected = a, this.keyValue = h, this.keyLabel = c, this.lite = o, this.min = m, this.max = S, this.parent = d, V(t) && y(t, () => {
|
|
1263
1263
|
this.subList = {};
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
@@ -1526,7 +1526,7 @@ class vt {
|
|
|
1526
1526
|
* @returns sublist instance/ экземпляр подсписка
|
|
1527
1527
|
*/
|
|
1528
1528
|
getSubList(t) {
|
|
1529
|
-
return t.index in this.subList || (this.subList[t.index] = new
|
|
1529
|
+
return t.index in this.subList || (this.subList[t.index] = new pt(
|
|
1530
1530
|
t.value,
|
|
1531
1531
|
this.focus,
|
|
1532
1532
|
this.highlight,
|
|
@@ -1570,7 +1570,7 @@ class vt {
|
|
|
1570
1570
|
* @param label item label / метка элемента
|
|
1571
1571
|
*/
|
|
1572
1572
|
getIndex(t, e, i, n) {
|
|
1573
|
-
return t && !
|
|
1573
|
+
return t && !Z(t) ? t : e && !Z(e) ? e : i && n;
|
|
1574
1574
|
}
|
|
1575
1575
|
/**
|
|
1576
1576
|
* Creates an object of the record element.
|
|
@@ -1581,19 +1581,19 @@ class vt {
|
|
|
1581
1581
|
*/
|
|
1582
1582
|
initItem(t, e) {
|
|
1583
1583
|
var i, n, r, a, h, c;
|
|
1584
|
-
if (
|
|
1585
|
-
const o = e == null ? void 0 : e[(n = (i = this.keyValue) == null ? void 0 : i.value) != null ? n : "value"],
|
|
1584
|
+
if (j(e)) {
|
|
1585
|
+
const o = e == null ? void 0 : e[(n = (i = this.keyValue) == null ? void 0 : i.value) != null ? n : "value"], m = (h = e == null ? void 0 : e[(a = (r = this.keyLabel) == null ? void 0 : r.value) != null ? a : "label"]) != null ? h : o, S = this.getIndex(
|
|
1586
1586
|
e == null ? void 0 : e.index,
|
|
1587
1587
|
o,
|
|
1588
1588
|
t,
|
|
1589
|
-
|
|
1589
|
+
m
|
|
1590
1590
|
);
|
|
1591
1591
|
return {
|
|
1592
1592
|
...e,
|
|
1593
1593
|
parent: this.parent,
|
|
1594
|
-
index:
|
|
1594
|
+
index: S,
|
|
1595
1595
|
type: (c = e == null ? void 0 : e.type) != null ? c : "item",
|
|
1596
|
-
label:
|
|
1596
|
+
label: m,
|
|
1597
1597
|
value: o
|
|
1598
1598
|
};
|
|
1599
1599
|
}
|
|
@@ -1606,7 +1606,7 @@ class vt {
|
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
|
-
class
|
|
1609
|
+
class St {
|
|
1610
1610
|
/**
|
|
1611
1611
|
* Get router instance.
|
|
1612
1612
|
*
|
|
@@ -1677,11 +1677,11 @@ class mt {
|
|
|
1677
1677
|
* @param to raw route location/ необработанное местоположение маршрута
|
|
1678
1678
|
*/
|
|
1679
1679
|
static rawToHref(t) {
|
|
1680
|
-
return
|
|
1680
|
+
return j(t) && "name" in t && X(t == null ? void 0 : t.name) ? this.getHref(t.name) : {};
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
|
-
l(
|
|
1684
|
-
class
|
|
1683
|
+
l(St, "router");
|
|
1684
|
+
class Me {
|
|
1685
1685
|
/**
|
|
1686
1686
|
* Constructor
|
|
1687
1687
|
*/
|
|
@@ -1691,21 +1691,21 @@ class De {
|
|
|
1691
1691
|
*
|
|
1692
1692
|
* Реактивный элемент.
|
|
1693
1693
|
*/
|
|
1694
|
-
l(this, "item",
|
|
1694
|
+
l(this, "item", f());
|
|
1695
1695
|
/**
|
|
1696
1696
|
* Checks whether the scroll width is defined.
|
|
1697
1697
|
*
|
|
1698
1698
|
* Проверяет, определена ли ширина скролла.
|
|
1699
1699
|
*/
|
|
1700
1700
|
l(this, "is", u(() => this.item.value !== void 0));
|
|
1701
|
-
|
|
1701
|
+
Nt.is().then((t) => {
|
|
1702
1702
|
this.item.value = t;
|
|
1703
1703
|
});
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
-
const
|
|
1707
|
-
function
|
|
1708
|
-
const a =
|
|
1706
|
+
const bt = (s) => typeof s == "string" ? { method: s } : s || {};
|
|
1707
|
+
function W(s, t = z.post, e, i, n = !0, r) {
|
|
1708
|
+
const a = f(!1), h = D(bt(r));
|
|
1709
1709
|
return {
|
|
1710
1710
|
loading: a,
|
|
1711
1711
|
/**
|
|
@@ -1719,90 +1719,90 @@ function O(s, t = j.post, e, i, n = !0, r) {
|
|
|
1719
1719
|
a.value = !0;
|
|
1720
1720
|
let o;
|
|
1721
1721
|
try {
|
|
1722
|
-
if (o = await
|
|
1723
|
-
path:
|
|
1722
|
+
if (o = await gt.request({
|
|
1723
|
+
path: g(s),
|
|
1724
1724
|
method: t,
|
|
1725
1725
|
request: c,
|
|
1726
1726
|
toData: n,
|
|
1727
1727
|
...h.value
|
|
1728
1728
|
}), o && (i && (o = i(o)), e)) {
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1729
|
+
const m = e(o);
|
|
1730
|
+
m instanceof Promise && await m;
|
|
1731
1731
|
}
|
|
1732
|
-
} catch (
|
|
1733
|
-
console.error("useApiRequest: error",
|
|
1732
|
+
} catch (m) {
|
|
1733
|
+
console.error("useApiRequest: error", g(s), m);
|
|
1734
1734
|
}
|
|
1735
1735
|
return a.value = !1, o;
|
|
1736
1736
|
}
|
|
1737
1737
|
};
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1740
|
-
return
|
|
1739
|
+
function ie(s, t, e, i = !0, n) {
|
|
1740
|
+
return W(
|
|
1741
1741
|
s,
|
|
1742
|
-
|
|
1742
|
+
z.delete,
|
|
1743
1743
|
t,
|
|
1744
1744
|
e,
|
|
1745
1745
|
i,
|
|
1746
1746
|
n
|
|
1747
1747
|
);
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1750
|
-
return
|
|
1749
|
+
function Ne(s, t, e, i = !0, n) {
|
|
1750
|
+
return W(
|
|
1751
1751
|
s,
|
|
1752
|
-
|
|
1752
|
+
z.get,
|
|
1753
1753
|
t,
|
|
1754
1754
|
e,
|
|
1755
1755
|
i,
|
|
1756
1756
|
n
|
|
1757
1757
|
);
|
|
1758
1758
|
}
|
|
1759
|
-
let
|
|
1760
|
-
function
|
|
1761
|
-
const a =
|
|
1762
|
-
let
|
|
1763
|
-
const
|
|
1764
|
-
if (
|
|
1759
|
+
let O;
|
|
1760
|
+
function se(s, t, e = !0, i, n, r = !0) {
|
|
1761
|
+
const a = f(), h = D(bt(t)), c = f(!1), o = f(!1);
|
|
1762
|
+
let m, S = !0, d;
|
|
1763
|
+
const b = async () => {
|
|
1764
|
+
if (S)
|
|
1765
1765
|
return;
|
|
1766
|
-
|
|
1767
|
-
const
|
|
1768
|
-
if ((!i || i.value) &&
|
|
1766
|
+
m && m.abort(), m = h.value.controller || new AbortController();
|
|
1767
|
+
const v = g(s);
|
|
1768
|
+
if ((!i || i.value) && v) {
|
|
1769
1769
|
c.value = !0, o.value = !0;
|
|
1770
1770
|
try {
|
|
1771
|
-
const
|
|
1772
|
-
path:
|
|
1773
|
-
controller:
|
|
1771
|
+
const A = await gt.request({
|
|
1772
|
+
path: v,
|
|
1773
|
+
controller: m,
|
|
1774
1774
|
...h.value
|
|
1775
1775
|
});
|
|
1776
|
-
|
|
1777
|
-
} catch (
|
|
1778
|
-
console.error("useApiRef: error",
|
|
1776
|
+
A && (n ? a.value = n(A) : a.value = A);
|
|
1777
|
+
} catch (A) {
|
|
1778
|
+
console.error("useApiRef: error", v, A), a.value = void 0;
|
|
1779
1779
|
}
|
|
1780
1780
|
c.value = !1;
|
|
1781
1781
|
} else a.value !== void 0 && (a.value = void 0);
|
|
1782
|
-
},
|
|
1783
|
-
console.warn("useApiRef: stop",
|
|
1784
|
-
},
|
|
1785
|
-
|
|
1786
|
-
},
|
|
1787
|
-
const
|
|
1788
|
-
e &&
|
|
1789
|
-
c.value || await
|
|
1782
|
+
}, B = () => {
|
|
1783
|
+
console.warn("useApiRef: stop", g(s)), d == null || d(), a.value = void 0, S = !0;
|
|
1784
|
+
}, L = () => {
|
|
1785
|
+
S && (S = !1, b().then(), r ? (p(), Ut() && _t(() => B())) : F.run(() => p()));
|
|
1786
|
+
}, p = () => {
|
|
1787
|
+
const v = [];
|
|
1788
|
+
e && v.push(h), V(s) && v.push(s), i && v.push(i), O && v.push(O), v.length > 0 && (d = y(v, async () => {
|
|
1789
|
+
c.value || await b();
|
|
1790
1790
|
}));
|
|
1791
|
-
},
|
|
1791
|
+
}, w = u(() => (L(), a.value)), x = u(() => Array.isArray(a.value) ? a.value.length : a.value ? 1 : 0), C = u(() => a.value === void 0);
|
|
1792
1792
|
return {
|
|
1793
1793
|
/** Reactive data (Computed) / Реактивные данные (Computed) */
|
|
1794
|
-
data:
|
|
1794
|
+
data: w,
|
|
1795
1795
|
/** Item (Ref) / Элемент (Ref) */
|
|
1796
1796
|
get item() {
|
|
1797
|
-
return
|
|
1797
|
+
return L(), a;
|
|
1798
1798
|
},
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Returns the count of records in the list (ComputedRef) /
|
|
1801
1801
|
* Возвращает количество записей в списке (ComputedRef)
|
|
1802
1802
|
*/
|
|
1803
|
-
length:
|
|
1803
|
+
length: x,
|
|
1804
1804
|
/** Start request flag (true if no data yet) / Флаг начала запроса (true если еще нет данных) */
|
|
1805
|
-
starting:
|
|
1805
|
+
starting: C,
|
|
1806
1806
|
/** Request load flag / Флаг загрузки запроса */
|
|
1807
1807
|
loading: c,
|
|
1808
1808
|
/** Active reading flag / Флаг активного чтения */
|
|
@@ -1844,52 +1844,52 @@ function te(s, t, e = !0, i, n, r = !0) {
|
|
|
1844
1844
|
*
|
|
1845
1845
|
* Ручная инициализация
|
|
1846
1846
|
*/
|
|
1847
|
-
init:
|
|
1847
|
+
init: L,
|
|
1848
1848
|
/**
|
|
1849
1849
|
* Default reset
|
|
1850
1850
|
*
|
|
1851
1851
|
* Сброс по умолчанию
|
|
1852
1852
|
*/
|
|
1853
|
-
reset:
|
|
1853
|
+
reset: b,
|
|
1854
1854
|
/**
|
|
1855
1855
|
* Stop request
|
|
1856
1856
|
*
|
|
1857
1857
|
* Остановка запроса
|
|
1858
1858
|
*/
|
|
1859
|
-
stop:
|
|
1859
|
+
stop: B,
|
|
1860
1860
|
/**
|
|
1861
1861
|
* Abort request
|
|
1862
1862
|
*
|
|
1863
1863
|
* Отмена запроса
|
|
1864
1864
|
*/
|
|
1865
|
-
abort: () =>
|
|
1865
|
+
abort: () => m == null ? void 0 : m.abort()
|
|
1866
1866
|
};
|
|
1867
1867
|
}
|
|
1868
|
-
const
|
|
1869
|
-
|
|
1868
|
+
const Fe = (s) => {
|
|
1869
|
+
O || (O = s);
|
|
1870
1870
|
};
|
|
1871
|
-
function
|
|
1872
|
-
return
|
|
1871
|
+
function ne(s, t, e, i = !0, n) {
|
|
1872
|
+
return W(
|
|
1873
1873
|
s,
|
|
1874
|
-
|
|
1874
|
+
z.post,
|
|
1875
1875
|
t,
|
|
1876
1876
|
e,
|
|
1877
1877
|
i,
|
|
1878
1878
|
n
|
|
1879
1879
|
);
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1882
|
-
return
|
|
1881
|
+
function re(s, t, e, i = !0, n) {
|
|
1882
|
+
return W(
|
|
1883
1883
|
s,
|
|
1884
|
-
|
|
1884
|
+
z.put,
|
|
1885
1885
|
t,
|
|
1886
1886
|
e,
|
|
1887
1887
|
i,
|
|
1888
1888
|
n
|
|
1889
1889
|
);
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1892
|
-
const e = new
|
|
1891
|
+
function ae(s, t) {
|
|
1892
|
+
const e = new Ft(t), i = u(() => e.setList(s.value).to()), n = u(() => e.setList(s.value).length());
|
|
1893
1893
|
return {
|
|
1894
1894
|
/**
|
|
1895
1895
|
* Formatted data list (ComputedRef) /
|
|
@@ -1903,10 +1903,10 @@ function se(s, t) {
|
|
|
1903
1903
|
length: n
|
|
1904
1904
|
};
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1907
|
-
const e = t != null ? t :
|
|
1906
|
+
function ue(s, t) {
|
|
1907
|
+
const e = t != null ? t : f(""), i = f(e.value), n = f(!1);
|
|
1908
1908
|
let r;
|
|
1909
|
-
return
|
|
1909
|
+
return y(e, (a, h, c) => {
|
|
1910
1910
|
const o = s.getOptions().getDelay();
|
|
1911
1911
|
o ? (n.value = !0, r = setTimeout(() => {
|
|
1912
1912
|
r = void 0, i.value = e.value, n.value = !1;
|
|
@@ -1922,8 +1922,8 @@ function ne(s, t) {
|
|
|
1922
1922
|
loading: n
|
|
1923
1923
|
};
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1926
|
-
const n = new
|
|
1925
|
+
function le(s, t, e, i) {
|
|
1926
|
+
const n = new Ht(
|
|
1927
1927
|
void 0,
|
|
1928
1928
|
t,
|
|
1929
1929
|
void 0,
|
|
@@ -1932,12 +1932,12 @@ function re(s, t, e, i) {
|
|
|
1932
1932
|
search: r,
|
|
1933
1933
|
searchDelay: a,
|
|
1934
1934
|
loading: h
|
|
1935
|
-
} =
|
|
1936
|
-
const
|
|
1937
|
-
return
|
|
1935
|
+
} = ue(n, e), c = () => {
|
|
1936
|
+
const d = g(et(s));
|
|
1937
|
+
return d || [];
|
|
1938
1938
|
}, o = u(
|
|
1939
1939
|
() => n.setValue(a.value).getItem().isSearch()
|
|
1940
|
-
),
|
|
1940
|
+
), m = u(() => n.setList(c()).setValue(a.value).to()), S = u(() => m.value.length);
|
|
1941
1941
|
return {
|
|
1942
1942
|
/**
|
|
1943
1943
|
* Whether the search is currently active (minimum character limit reached)/
|
|
@@ -1955,190 +1955,200 @@ function re(s, t, e, i) {
|
|
|
1955
1955
|
* Formatted list of search results with highlights /
|
|
1956
1956
|
* Форматированный список результатов поиска с подсветкой совпадений
|
|
1957
1957
|
*/
|
|
1958
|
-
listSearch:
|
|
1958
|
+
listSearch: m,
|
|
1959
1959
|
/**
|
|
1960
1960
|
* Length of the search results /
|
|
1961
1961
|
* Длина списка результатов поиска
|
|
1962
1962
|
*/
|
|
1963
|
-
length:
|
|
1963
|
+
length: S
|
|
1964
1964
|
};
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function He(s, t, e, i, n, r, a) {
|
|
1967
1967
|
const {
|
|
1968
1968
|
path: h,
|
|
1969
1969
|
options: c,
|
|
1970
1970
|
reactivity: o,
|
|
1971
|
-
conditions:
|
|
1972
|
-
transformation:
|
|
1973
|
-
|
|
1974
|
-
|
|
1971
|
+
conditions: m,
|
|
1972
|
+
transformation: S,
|
|
1973
|
+
typeData: d,
|
|
1974
|
+
unmounted: b,
|
|
1975
|
+
skeleton: B
|
|
1975
1976
|
} = s;
|
|
1976
|
-
let
|
|
1977
|
-
const
|
|
1977
|
+
let L, p, w, x, C;
|
|
1978
|
+
const v = se(
|
|
1978
1979
|
h,
|
|
1979
1980
|
c,
|
|
1980
1981
|
o,
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
),
|
|
1985
|
-
if (t && (
|
|
1986
|
-
|
|
1982
|
+
m,
|
|
1983
|
+
S,
|
|
1984
|
+
b
|
|
1985
|
+
), A = u(() => d === void 0 ? !0 : v.isStarting() ? !1 : ot(d) ? d(v.data.value) : v.data.value instanceof d), rt = u(() => v.isStarting() && B ? B() : v.data.value);
|
|
1986
|
+
if (t && (L = ae(
|
|
1987
|
+
rt,
|
|
1987
1988
|
t
|
|
1988
1989
|
)), e) {
|
|
1989
|
-
const
|
|
1990
|
-
var
|
|
1991
|
-
const
|
|
1992
|
-
if (Array.isArray(
|
|
1993
|
-
return
|
|
1990
|
+
const k = u(() => {
|
|
1991
|
+
var M;
|
|
1992
|
+
const H = (M = L == null ? void 0 : L.listFormat.value) != null ? M : v.data.value;
|
|
1993
|
+
if (Array.isArray(H))
|
|
1994
|
+
return H;
|
|
1994
1995
|
});
|
|
1995
|
-
|
|
1996
|
-
|
|
1996
|
+
p = le(
|
|
1997
|
+
k,
|
|
1997
1998
|
e.columns,
|
|
1998
1999
|
e.value,
|
|
1999
2000
|
e.options
|
|
2000
2001
|
);
|
|
2001
2002
|
}
|
|
2002
2003
|
if (i || n || r) {
|
|
2003
|
-
const
|
|
2004
|
-
a == null || a(),
|
|
2005
|
-
},
|
|
2006
|
-
|
|
2004
|
+
const k = (M) => {
|
|
2005
|
+
a == null || a(), Et(M) && v.reset();
|
|
2006
|
+
}, H = (M) => async (at) => {
|
|
2007
|
+
ot(M) && await it(M(at)), k(at);
|
|
2007
2008
|
};
|
|
2008
|
-
i && (
|
|
2009
|
+
i && (w = ne(
|
|
2009
2010
|
i.path,
|
|
2010
|
-
|
|
2011
|
+
H(i.action),
|
|
2011
2012
|
i.transformation,
|
|
2012
2013
|
i.toData,
|
|
2013
2014
|
i.options
|
|
2014
|
-
)), n && (
|
|
2015
|
+
)), n && (x = re(
|
|
2015
2016
|
n.path,
|
|
2016
|
-
|
|
2017
|
+
H(n.action),
|
|
2017
2018
|
n.transformation,
|
|
2018
2019
|
n.toData,
|
|
2019
2020
|
n.options
|
|
2020
|
-
)), r && (
|
|
2021
|
+
)), r && (C = ie(
|
|
2021
2022
|
r.path,
|
|
2022
|
-
|
|
2023
|
+
H(r.action),
|
|
2023
2024
|
r.transformation,
|
|
2024
2025
|
r.toData,
|
|
2025
2026
|
r.options
|
|
2026
2027
|
));
|
|
2027
2028
|
}
|
|
2029
|
+
const It = u(() => {
|
|
2030
|
+
if (A.value) {
|
|
2031
|
+
if (p && Array.isArray(v.data.value))
|
|
2032
|
+
return p.listSearch.value;
|
|
2033
|
+
if (L)
|
|
2034
|
+
return L.listFormat.value;
|
|
2035
|
+
}
|
|
2036
|
+
return rt.value;
|
|
2037
|
+
});
|
|
2028
2038
|
return {
|
|
2039
|
+
/** Is valid data (Computed) / Валидность данных (Computed) */
|
|
2040
|
+
isValid: A,
|
|
2029
2041
|
/** List data (Computed) / Данные списка (Computed) */
|
|
2030
|
-
|
|
2031
|
-
return y && Array.isArray(S.data.value) ? y.listSearch : w ? w.listFormat : I;
|
|
2032
|
-
},
|
|
2042
|
+
list: It,
|
|
2033
2043
|
/** Raw request data (Computed) / Исходные данные запроса (Computed) */
|
|
2034
2044
|
get data() {
|
|
2035
|
-
return
|
|
2045
|
+
return v.data;
|
|
2036
2046
|
},
|
|
2037
2047
|
/** Length of the list (Computed) / Длина списка (Computed) */
|
|
2038
2048
|
get length() {
|
|
2039
|
-
return
|
|
2049
|
+
return p ? p.length : v.length;
|
|
2040
2050
|
},
|
|
2041
2051
|
/** Data length (number) / Длина исходных данных */
|
|
2042
|
-
lengthData:
|
|
2052
|
+
lengthData: v.length,
|
|
2043
2053
|
/** Active starting flag (true if no data yet) / Флаг начальной загрузки (true если еще нет данных) */
|
|
2044
|
-
starting:
|
|
2054
|
+
starting: v.starting,
|
|
2045
2055
|
/** Active reading flag / Флаг активного чтения */
|
|
2046
|
-
reading:
|
|
2056
|
+
reading: v.reading,
|
|
2047
2057
|
/** Request load flag / Флаг загрузки запроса */
|
|
2048
|
-
loading:
|
|
2058
|
+
loading: v.loading,
|
|
2049
2059
|
/** Loading search flag / Флаг загрузки поиска */
|
|
2050
|
-
loadingSearch:
|
|
2060
|
+
loadingSearch: p == null ? void 0 : p.loading,
|
|
2051
2061
|
/** POST request load flag / Флаг загрузки POST запроса */
|
|
2052
|
-
loadingPost:
|
|
2062
|
+
loadingPost: w == null ? void 0 : w.loading,
|
|
2053
2063
|
/** PUT request load flag / Флаг загрузки PUT запроса */
|
|
2054
|
-
loadingPut:
|
|
2064
|
+
loadingPut: x == null ? void 0 : x.loading,
|
|
2055
2065
|
/** DELETE request load flag / Флаг загрузки DELETE запроса */
|
|
2056
|
-
loadingDelete:
|
|
2066
|
+
loadingDelete: C == null ? void 0 : C.loading,
|
|
2057
2067
|
/** Is search active / Активен ли поиск */
|
|
2058
|
-
isSearch:
|
|
2068
|
+
isSearch: p == null ? void 0 : p.isSearch,
|
|
2059
2069
|
/** Search function / Функция поиска */
|
|
2060
|
-
search:
|
|
2070
|
+
search: p == null ? void 0 : p.search,
|
|
2061
2071
|
/**
|
|
2062
2072
|
* Default reset.
|
|
2063
2073
|
*
|
|
2064
2074
|
* Сброс по умолчанию.
|
|
2065
2075
|
*/
|
|
2066
|
-
reset:
|
|
2076
|
+
reset: v.reset,
|
|
2067
2077
|
/**
|
|
2068
2078
|
* Abort request.
|
|
2069
2079
|
*
|
|
2070
2080
|
* Отмена запроса.
|
|
2071
2081
|
*/
|
|
2072
|
-
abort:
|
|
2082
|
+
abort: v.abort,
|
|
2073
2083
|
/**
|
|
2074
2084
|
* Send POST request.
|
|
2075
2085
|
*
|
|
2076
2086
|
* Выполнить POST запрос.
|
|
2077
2087
|
* @param request request data / данные запроса
|
|
2078
2088
|
*/
|
|
2079
|
-
sendPost: async (
|
|
2089
|
+
sendPost: async (k) => await (w == null ? void 0 : w.send(k)),
|
|
2080
2090
|
/**
|
|
2081
2091
|
* Send PUT request.
|
|
2082
2092
|
*
|
|
2083
2093
|
* Выполнить PUT запрос.
|
|
2084
2094
|
* @param request request data / данные запроса
|
|
2085
2095
|
*/
|
|
2086
|
-
sendPut: async (
|
|
2096
|
+
sendPut: async (k) => await (x == null ? void 0 : x.send(k)),
|
|
2087
2097
|
/**
|
|
2088
2098
|
* Send DELETE request.
|
|
2089
2099
|
*
|
|
2090
2100
|
* Выполнить DELETE запрос.
|
|
2091
2101
|
* @param request request data / данные запроса
|
|
2092
2102
|
*/
|
|
2093
|
-
sendDelete: async (
|
|
2103
|
+
sendDelete: async (k) => await (C == null ? void 0 : C.send(k))
|
|
2094
2104
|
};
|
|
2095
2105
|
}
|
|
2096
|
-
function
|
|
2106
|
+
function oe(s, t) {
|
|
2097
2107
|
const e = `broadcast--${s}`;
|
|
2098
|
-
if (e in
|
|
2099
|
-
return
|
|
2100
|
-
const i =
|
|
2108
|
+
if (e in G)
|
|
2109
|
+
return G[e];
|
|
2110
|
+
const i = f(et(t)), n = new $t(
|
|
2101
2111
|
e,
|
|
2102
2112
|
(r) => {
|
|
2103
2113
|
i.value !== r.data.message && (i.value = r.data.message);
|
|
2104
2114
|
}
|
|
2105
2115
|
);
|
|
2106
|
-
return
|
|
2107
|
-
|
|
2108
|
-
}),
|
|
2116
|
+
return F.run(() => {
|
|
2117
|
+
y(i, (r) => n.post({ message: r }));
|
|
2118
|
+
}), G[e] = i, i;
|
|
2109
2119
|
}
|
|
2110
|
-
const
|
|
2111
|
-
function
|
|
2112
|
-
if (s in
|
|
2113
|
-
return
|
|
2114
|
-
const i = new
|
|
2120
|
+
const G = {};
|
|
2121
|
+
function Ee(s, t, e) {
|
|
2122
|
+
if (s in K)
|
|
2123
|
+
return K[s];
|
|
2124
|
+
const i = new Rt(s), n = oe(
|
|
2115
2125
|
`__cookie:${s}`,
|
|
2116
2126
|
i.get(t, e)
|
|
2117
2127
|
);
|
|
2118
|
-
return
|
|
2119
|
-
|
|
2128
|
+
return F.run(() => {
|
|
2129
|
+
y(n, (r) => {
|
|
2120
2130
|
i.set(r, e);
|
|
2121
2131
|
});
|
|
2122
|
-
}),
|
|
2132
|
+
}), K[s] = n, n;
|
|
2123
2133
|
}
|
|
2124
|
-
const
|
|
2125
|
-
function
|
|
2126
|
-
return new
|
|
2134
|
+
const K = {};
|
|
2135
|
+
function $e() {
|
|
2136
|
+
return new ee();
|
|
2127
2137
|
}
|
|
2128
|
-
function
|
|
2129
|
-
if (s in
|
|
2130
|
-
return
|
|
2131
|
-
const e =
|
|
2132
|
-
return
|
|
2133
|
-
|
|
2134
|
-
}),
|
|
2138
|
+
function Re(s, t) {
|
|
2139
|
+
if (s in Y)
|
|
2140
|
+
return Y[s];
|
|
2141
|
+
const e = N(_.get(s, t));
|
|
2142
|
+
return F.run(() => {
|
|
2143
|
+
y(e, (i) => _.set(s, i));
|
|
2144
|
+
}), _.addWatch(s, (i) => {
|
|
2135
2145
|
e.value = i;
|
|
2136
|
-
}),
|
|
2146
|
+
}), Y[s] = e, e;
|
|
2137
2147
|
}
|
|
2138
|
-
const
|
|
2148
|
+
const Y = {}, ce = (s = {
|
|
2139
2149
|
rootMargin: "128px 0px"
|
|
2140
2150
|
}) => {
|
|
2141
|
-
const t = {}, e =
|
|
2151
|
+
const t = {}, e = ft() && "IntersectionObserver" in window ? new IntersectionObserver(
|
|
2142
2152
|
(n) => {
|
|
2143
2153
|
n.forEach((r) => {
|
|
2144
2154
|
const a = $(r.target);
|
|
@@ -2175,16 +2185,16 @@ const K = {}, ue = (s = {
|
|
|
2175
2185
|
* @param element element for tracking/ элемента для отслеживания
|
|
2176
2186
|
*/
|
|
2177
2187
|
addLazyItem(n) {
|
|
2178
|
-
const r =
|
|
2188
|
+
const r = N(!e);
|
|
2179
2189
|
if (e) {
|
|
2180
2190
|
let a;
|
|
2181
|
-
a =
|
|
2191
|
+
a = y(n, (h, c) => {
|
|
2182
2192
|
if (c && i(c), n.value) {
|
|
2183
2193
|
const o = $(n.value);
|
|
2184
2194
|
t[o] = {
|
|
2185
2195
|
status: r,
|
|
2186
|
-
ratio:
|
|
2187
|
-
entry:
|
|
2196
|
+
ratio: N(0),
|
|
2197
|
+
entry: N(void 0),
|
|
2188
2198
|
stopWatch: () => a == null ? void 0 : a()
|
|
2189
2199
|
}, e.observe(n.value);
|
|
2190
2200
|
} else
|
|
@@ -2206,14 +2216,14 @@ const K = {}, ue = (s = {
|
|
|
2206
2216
|
*/
|
|
2207
2217
|
disconnectLazy: () => e == null ? void 0 : e.disconnect()
|
|
2208
2218
|
};
|
|
2209
|
-
},
|
|
2210
|
-
const t =
|
|
2219
|
+
}, dt = [], he = (s) => {
|
|
2220
|
+
const t = dt.find((i) => i.rootMargin === s);
|
|
2211
2221
|
if (t)
|
|
2212
2222
|
return t.item;
|
|
2213
|
-
const e =
|
|
2214
|
-
return
|
|
2215
|
-
},
|
|
2216
|
-
const e =
|
|
2223
|
+
const e = ce({ rootMargin: s });
|
|
2224
|
+
return dt.push({ rootMargin: s, item: e }), e;
|
|
2225
|
+
}, Pe = (s, t) => {
|
|
2226
|
+
const e = he(t);
|
|
2217
2227
|
return {
|
|
2218
2228
|
/** Lazy item status/ Статус ленивого элемента */
|
|
2219
2229
|
lazyItemStatus: e.addLazyItem(s),
|
|
@@ -2227,16 +2237,16 @@ const K = {}, ue = (s = {
|
|
|
2227
2237
|
}
|
|
2228
2238
|
};
|
|
2229
2239
|
};
|
|
2230
|
-
function
|
|
2231
|
-
const s =
|
|
2232
|
-
return
|
|
2240
|
+
function je() {
|
|
2241
|
+
const s = N(ct.is());
|
|
2242
|
+
return ct.registrationEvent(({ detail: t }) => {
|
|
2233
2243
|
s.value = t.loading;
|
|
2234
2244
|
}), s;
|
|
2235
2245
|
}
|
|
2236
|
-
var
|
|
2237
|
-
const
|
|
2238
|
-
function
|
|
2239
|
-
const e =
|
|
2246
|
+
var de = /* @__PURE__ */ ((s) => (s.global = "global", s.provide = "provide", s.local = "local", s))(de || {});
|
|
2247
|
+
const ge = () => `__execute_use${fe}::${$()}`, fe = Pt(1e5, 999999), tt = [], ve = st();
|
|
2248
|
+
function nt(s, t = "provide") {
|
|
2249
|
+
const e = ge();
|
|
2240
2250
|
let i;
|
|
2241
2251
|
const n = (c) => {
|
|
2242
2252
|
const o = Object.freeze(s(...c));
|
|
@@ -2248,7 +2258,7 @@ function st(s, t = "provide") {
|
|
|
2248
2258
|
};
|
|
2249
2259
|
}, r = (c) => {
|
|
2250
2260
|
const o = Object.freeze(n(c));
|
|
2251
|
-
return
|
|
2261
|
+
return Kt(e, o), o;
|
|
2252
2262
|
}, a = (c) => {
|
|
2253
2263
|
const o = n(c);
|
|
2254
2264
|
return Object.freeze({
|
|
@@ -2259,56 +2269,56 @@ function st(s, t = "provide") {
|
|
|
2259
2269
|
});
|
|
2260
2270
|
}, h = (...c) => {
|
|
2261
2271
|
if (t === "provide") {
|
|
2262
|
-
const o =
|
|
2272
|
+
const o = Gt(e, void 0);
|
|
2263
2273
|
return o || r(c);
|
|
2264
|
-
} else i || (t === "local" ?
|
|
2274
|
+
} else i || (t === "local" ? ve.run(() => {
|
|
2265
2275
|
i = a(c);
|
|
2266
2276
|
}) : i = a(c));
|
|
2267
2277
|
return i;
|
|
2268
2278
|
};
|
|
2269
|
-
return t === "global" &&
|
|
2279
|
+
return t === "global" && tt.push(h), h;
|
|
2270
2280
|
}
|
|
2271
|
-
function
|
|
2272
|
-
return
|
|
2281
|
+
function me(s) {
|
|
2282
|
+
return nt(
|
|
2273
2283
|
s,
|
|
2274
2284
|
"global"
|
|
2275
2285
|
/* global */
|
|
2276
2286
|
);
|
|
2277
2287
|
}
|
|
2278
|
-
function
|
|
2279
|
-
return
|
|
2288
|
+
function ze(s) {
|
|
2289
|
+
return nt(
|
|
2280
2290
|
s,
|
|
2281
2291
|
"provide"
|
|
2282
2292
|
/* provide */
|
|
2283
2293
|
);
|
|
2284
2294
|
}
|
|
2285
|
-
function
|
|
2286
|
-
return
|
|
2295
|
+
function Ve(s) {
|
|
2296
|
+
return nt(
|
|
2287
2297
|
s,
|
|
2288
2298
|
"local"
|
|
2289
2299
|
/* local */
|
|
2290
2300
|
);
|
|
2291
2301
|
}
|
|
2292
|
-
function
|
|
2293
|
-
|
|
2302
|
+
function Te() {
|
|
2303
|
+
tt.forEach((s) => s()), tt.length = 0;
|
|
2294
2304
|
}
|
|
2295
|
-
const
|
|
2296
|
-
const s = new
|
|
2297
|
-
return
|
|
2305
|
+
const ye = me(() => {
|
|
2306
|
+
const s = new jt(), t = f(s.getTitle()), e = f(s.getKeywords()), i = f(s.getDescription()), n = f(s.getImage()), r = f(s.getCanonical()), a = f(s.getRobots()), h = f(s.getAuthor()), c = f(s.getSiteName()), o = () => s.html();
|
|
2307
|
+
return y(t, () => {
|
|
2298
2308
|
s.setTitle(t.value);
|
|
2299
|
-
}),
|
|
2309
|
+
}), y(e, () => {
|
|
2300
2310
|
s.setKeywords(e.value);
|
|
2301
|
-
}),
|
|
2311
|
+
}), y(i, () => {
|
|
2302
2312
|
s.setDescription(i.value);
|
|
2303
|
-
}),
|
|
2313
|
+
}), y(n, () => {
|
|
2304
2314
|
s.setImage(n.value);
|
|
2305
|
-
}),
|
|
2315
|
+
}), y(r, () => {
|
|
2306
2316
|
s.setCanonical(r.value);
|
|
2307
|
-
}),
|
|
2317
|
+
}), y(a, () => {
|
|
2308
2318
|
s.setRobots(a.value);
|
|
2309
|
-
}),
|
|
2319
|
+
}), y(h, () => {
|
|
2310
2320
|
s.setAuthor(h.value);
|
|
2311
|
-
}),
|
|
2321
|
+
}), y(c, () => {
|
|
2312
2322
|
s.setSiteName(c.value);
|
|
2313
2323
|
}), {
|
|
2314
2324
|
meta: s,
|
|
@@ -2322,22 +2332,22 @@ const fe = ge(() => {
|
|
|
2322
2332
|
siteName: c,
|
|
2323
2333
|
getHtmlMeta: o
|
|
2324
2334
|
};
|
|
2325
|
-
}),
|
|
2326
|
-
var
|
|
2327
|
-
const i =
|
|
2328
|
-
var
|
|
2329
|
-
return (
|
|
2330
|
-
}, a = (
|
|
2331
|
-
|
|
2335
|
+
}), Oe = () => ye(), We = (s, t, e = !0) => {
|
|
2336
|
+
var m, S;
|
|
2337
|
+
const i = V(t) ? t : f(t || ((S = (m = s.value) == null ? void 0 : m[0]) == null ? void 0 : S.value) || ""), n = () => r(i.value), r = (d) => {
|
|
2338
|
+
var b;
|
|
2339
|
+
return (b = s.value) == null ? void 0 : b.find((B) => B.value === d);
|
|
2340
|
+
}, a = (d) => {
|
|
2341
|
+
d && d !== i.value && r(d) && (i.value = d, St.push({ name: d }));
|
|
2332
2342
|
}, h = u(() => n()), c = u(() => {
|
|
2333
|
-
var
|
|
2334
|
-
return ((
|
|
2335
|
-
}), o = u(() => s.value ?
|
|
2343
|
+
var d;
|
|
2344
|
+
return ((d = n()) == null ? void 0 : d.label) || "";
|
|
2345
|
+
}), o = u(() => s.value ? E(
|
|
2336
2346
|
s.value,
|
|
2337
|
-
(
|
|
2338
|
-
...
|
|
2339
|
-
to: { name:
|
|
2340
|
-
} :
|
|
2347
|
+
(d) => e && !("to" in d) ? {
|
|
2348
|
+
...d,
|
|
2349
|
+
to: { name: d.value }
|
|
2350
|
+
} : d
|
|
2341
2351
|
) : []);
|
|
2342
2352
|
return {
|
|
2343
2353
|
item: h,
|
|
@@ -2353,36 +2363,36 @@ const fe = ge(() => {
|
|
|
2353
2363
|
* Переход к главному элементу.
|
|
2354
2364
|
*/
|
|
2355
2365
|
toMain() {
|
|
2356
|
-
var
|
|
2357
|
-
a((
|
|
2366
|
+
var d, b;
|
|
2367
|
+
a((b = (d = s.value) == null ? void 0 : d[0]) == null ? void 0 : b.value);
|
|
2358
2368
|
}
|
|
2359
2369
|
};
|
|
2360
2370
|
};
|
|
2361
|
-
function
|
|
2362
|
-
if (s in Y)
|
|
2363
|
-
return Y[s];
|
|
2364
|
-
const e = new dt(s, !0), i = g(e.get(t));
|
|
2365
|
-
return N.run(() => {
|
|
2366
|
-
m(i, (n) => e.set(n));
|
|
2367
|
-
}), Y[s] = i, i;
|
|
2368
|
-
}
|
|
2369
|
-
const Y = {};
|
|
2370
|
-
function Oe(s, t, e) {
|
|
2371
|
+
function Ue(s, t) {
|
|
2371
2372
|
if (s in J)
|
|
2372
2373
|
return J[s];
|
|
2373
|
-
const
|
|
2374
|
-
return
|
|
2375
|
-
|
|
2376
|
-
}),
|
|
2377
|
-
i.update(), n.value = i.get();
|
|
2378
|
-
}), J[s] = n, n;
|
|
2374
|
+
const e = new vt(s, !0), i = f(e.get(t));
|
|
2375
|
+
return F.run(() => {
|
|
2376
|
+
y(i, (n) => e.set(n));
|
|
2377
|
+
}), J[s] = i, i;
|
|
2379
2378
|
}
|
|
2380
2379
|
const J = {};
|
|
2381
|
-
function
|
|
2382
|
-
|
|
2383
|
-
|
|
2380
|
+
function _e(s, t, e) {
|
|
2381
|
+
if (s in Q)
|
|
2382
|
+
return Q[s];
|
|
2383
|
+
const i = new vt(s), n = f(i.get(t, e));
|
|
2384
|
+
return F.run(() => {
|
|
2385
|
+
y(n, (r) => i.set(r));
|
|
2386
|
+
}), ft() && window.addEventListener("storage", () => {
|
|
2387
|
+
i.update(), n.value = i.get();
|
|
2388
|
+
}), Q[s] = n, n;
|
|
2389
|
+
}
|
|
2390
|
+
const Q = {};
|
|
2391
|
+
function pe(s) {
|
|
2392
|
+
const t = N(ht.getListSync(s, !0)), e = async () => {
|
|
2393
|
+
t.value = { ...await ht.getList(s) };
|
|
2384
2394
|
};
|
|
2385
|
-
|
|
2395
|
+
y(P.getLanguage(), e);
|
|
2386
2396
|
for (const i in t.value)
|
|
2387
2397
|
if (t.value[i] === i || t.value[i] === " ") {
|
|
2388
2398
|
e().then();
|
|
@@ -2390,42 +2400,42 @@ function ve(s) {
|
|
|
2390
2400
|
}
|
|
2391
2401
|
return t;
|
|
2392
2402
|
}
|
|
2393
|
-
const
|
|
2394
|
-
function
|
|
2395
|
-
const i =
|
|
2403
|
+
const Ge = (s) => pe(s);
|
|
2404
|
+
function Ke(s, t, e) {
|
|
2405
|
+
const i = f();
|
|
2396
2406
|
let n = !0;
|
|
2397
2407
|
const r = () => {
|
|
2398
|
-
n && (n = !1,
|
|
2399
|
-
const a = await
|
|
2408
|
+
n && (n = !1, mt(async () => {
|
|
2409
|
+
const a = await it(s);
|
|
2400
2410
|
a !== t && (i.value = a);
|
|
2401
2411
|
}));
|
|
2402
2412
|
};
|
|
2403
2413
|
return u(() => (r(), i.value), e);
|
|
2404
2414
|
}
|
|
2405
|
-
function
|
|
2415
|
+
function Ye(s, t = () => {
|
|
2406
2416
|
}, e, i) {
|
|
2407
2417
|
return u(
|
|
2408
2418
|
() => {
|
|
2409
|
-
if (
|
|
2419
|
+
if (P.get().value && (e === void 0 || e())) {
|
|
2410
2420
|
const n = s();
|
|
2411
2421
|
if (n !== void 0)
|
|
2412
2422
|
return n;
|
|
2413
2423
|
}
|
|
2414
|
-
return
|
|
2424
|
+
return et(t);
|
|
2415
2425
|
},
|
|
2416
2426
|
i
|
|
2417
2427
|
);
|
|
2418
2428
|
}
|
|
2419
|
-
const
|
|
2420
|
-
function
|
|
2421
|
-
return
|
|
2422
|
-
const i =
|
|
2429
|
+
const Se = st();
|
|
2430
|
+
function Je(s) {
|
|
2431
|
+
return Yt((t, e) => {
|
|
2432
|
+
const i = f();
|
|
2423
2433
|
let n = !1;
|
|
2424
2434
|
const r = async () => {
|
|
2425
|
-
i.value = await
|
|
2435
|
+
i.value = await it(s), e();
|
|
2426
2436
|
}, a = () => {
|
|
2427
|
-
n || (n = !0,
|
|
2428
|
-
|
|
2437
|
+
n || (n = !0, Se.run(() => {
|
|
2438
|
+
mt(async () => await r());
|
|
2429
2439
|
}));
|
|
2430
2440
|
};
|
|
2431
2441
|
return {
|
|
@@ -2448,74 +2458,74 @@ function Ge(s) {
|
|
|
2448
2458
|
};
|
|
2449
2459
|
});
|
|
2450
2460
|
}
|
|
2451
|
-
function
|
|
2461
|
+
function be(s, t = {}, e = "value", i = !1) {
|
|
2452
2462
|
const n = typeof t == "string", r = n ? t : e, a = n ? {} : t;
|
|
2453
|
-
return s ? s &&
|
|
2463
|
+
return s ? s && j(s) && (r in s || i) ? q(a, s) : q(a, { [r]: s }) : n ? {} : { ...a };
|
|
2454
2464
|
}
|
|
2455
|
-
function
|
|
2456
|
-
return u(() =>
|
|
2465
|
+
function Qe(s, t = {}, e = "value") {
|
|
2466
|
+
return u(() => be(g(s), g(t), e));
|
|
2457
2467
|
}
|
|
2458
|
-
function
|
|
2468
|
+
function Xe(s, t) {
|
|
2459
2469
|
s.value !== t && (s.value = t);
|
|
2460
2470
|
}
|
|
2461
2471
|
export {
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2472
|
+
De as DatetimeRef,
|
|
2473
|
+
Qt as DesignAbstract,
|
|
2474
|
+
xe as DesignAsyncAbstract,
|
|
2475
|
+
Jt as DesignChanged,
|
|
2476
|
+
Ce as DesignComp,
|
|
2477
|
+
yt as DesignComponents,
|
|
2478
|
+
ke as DesignConstructorAbstract,
|
|
2479
|
+
F as EffectScopeGlobal,
|
|
2480
|
+
Ae as EventRef,
|
|
2481
|
+
de as ExecuteUseType,
|
|
2482
|
+
Be as GeoFlagRef,
|
|
2483
|
+
ee as GeoIntlRef,
|
|
2484
|
+
P as GeoRef,
|
|
2485
|
+
pt as ListDataRef,
|
|
2486
|
+
St as RouterItemRef,
|
|
2487
|
+
Me as ScrollbarWidthRef,
|
|
2488
|
+
Ke as computedAsync,
|
|
2489
|
+
Ye as computedByLanguage,
|
|
2490
|
+
Je as computedEternity,
|
|
2491
|
+
nt as executeUse,
|
|
2492
|
+
me as executeUseGlobal,
|
|
2493
|
+
Te as executeUseGlobalInit,
|
|
2494
|
+
Ve as executeUseLocal,
|
|
2495
|
+
ze as executeUseProvide,
|
|
2496
|
+
be as getBind,
|
|
2497
|
+
Qe as getBindRef,
|
|
2498
|
+
Xt as getClassName,
|
|
2499
|
+
Zt as getIndexForRender,
|
|
2500
|
+
bt as getOptions,
|
|
2501
|
+
g as getRef,
|
|
2502
|
+
qt as render,
|
|
2503
|
+
Fe as setApiRefGlobalConditions,
|
|
2504
|
+
Xe as setRef,
|
|
2505
|
+
Ge as t,
|
|
2506
|
+
q as toBind,
|
|
2507
|
+
te as toBinds,
|
|
2508
|
+
D as toRefItem,
|
|
2509
|
+
ie as useApiDelete,
|
|
2510
|
+
Ne as useApiGet,
|
|
2511
|
+
He as useApiManagementRef,
|
|
2512
|
+
ne as useApiPost,
|
|
2513
|
+
re as useApiPut,
|
|
2514
|
+
se as useApiRef,
|
|
2515
|
+
W as useApiRequest,
|
|
2516
|
+
oe as useBroadcastValueRef,
|
|
2517
|
+
Ee as useCookieRef,
|
|
2518
|
+
ae as useFormattersRef,
|
|
2519
|
+
$e as useGeoIntlRef,
|
|
2520
|
+
Re as useHashRef,
|
|
2521
|
+
Pe as useLazyItemByMarginRef,
|
|
2522
|
+
ce as useLazyRef,
|
|
2523
|
+
je as useLoadingRef,
|
|
2524
|
+
Oe as useMeta,
|
|
2525
|
+
We as useRouterList,
|
|
2526
|
+
le as useSearchRef,
|
|
2527
|
+
ue as useSearchValueRef,
|
|
2528
|
+
Ue as useSessionRef,
|
|
2529
|
+
_e as useStorageRef,
|
|
2530
|
+
pe as useTranslateRef
|
|
2521
2531
|
};
|