instaui 0.1.15__py2.py3-none-any.whl → 0.1.17__py2.py3-none-any.whl
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.
- instaui/action/__init__.py +10 -0
- instaui/action/cookie.py +25 -0
- instaui/arco/components/radio.py +19 -6
- instaui/arco/components/radio_group.py +2 -3
- instaui/components/component.py +2 -0
- instaui/components/html/__init__.py +2 -0
- instaui/components/html/label.py +9 -7
- instaui/components/html/radio.py +37 -0
- instaui/components/timer/timer.js +48 -0
- instaui/components/timer/timer.py +94 -0
- instaui/event/js_event.py +2 -0
- instaui/event/vue_event.py +3 -0
- instaui/event/web_event.py +2 -4
- instaui/runtime/scope.py +11 -2
- instaui/static/insta-ui.esm-browser.prod.js +131 -130
- instaui/static/insta-ui.js.map +1 -1
- instaui/ui/__init__.py +2 -2
- instaui/ui/__init__.pyi +2 -2
- instaui/vars/js_computed.py +16 -1
- instaui/vars/mixin_types/element_binding.py +7 -1
- instaui/vars/path_var.py +3 -3
- instaui/vars/ref.py +15 -5
- instaui/vars/state.py +4 -4
- instaui/vars/vue_computed.py +17 -1
- instaui/vars/web_computed.py +5 -4
- instaui/watch/js_watch.py +2 -0
- instaui/watch/web_watch.py +2 -6
- {instaui-0.1.15.dist-info → instaui-0.1.17.dist-info}/METADATA +1 -1
- {instaui-0.1.15.dist-info → instaui-0.1.17.dist-info}/RECORD +32 -27
- /instaui/{ui_functions → action}/url_location.py +0 -0
- {instaui-0.1.15.dist-info → instaui-0.1.17.dist-info}/WHEEL +0 -0
- {instaui-0.1.15.dist-info → instaui-0.1.17.dist-info}/licenses/LICENSE +0 -0
@@ -2,13 +2,13 @@ var Wn = Object.defineProperty;
|
|
2
2
|
var Un = (e, t, n) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
3
|
var B = (e, t, n) => Un(e, typeof t != "symbol" ? t + "" : t, n);
|
4
4
|
import * as Kn from "vue";
|
5
|
-
import { toRaw as Gn, customRef as Ce, toValue as q, unref as W, watch as G, nextTick as Te, isRef as
|
6
|
-
let
|
5
|
+
import { toRaw as Gn, customRef as Ce, toValue as q, unref as W, watch as G, nextTick as Te, isRef as Ht, ref as Z, shallowRef as J, watchEffect as zt, computed as U, readonly as qn, provide as Ie, inject as ee, shallowReactive as Hn, defineComponent as F, reactive as zn, h as A, getCurrentInstance as Jt, normalizeStyle as Jn, normalizeClass as Ye, toDisplayString as Qt, onUnmounted as xe, Fragment as De, vModelDynamic as Qn, vShow as Yn, resolveDynamicComponent as ft, normalizeProps as Xn, withDirectives as Zn, onErrorCaptured as er, openBlock as he, createElementBlock as Ve, createElementVNode as tr, createVNode as nr, withCtx as rr, renderList as or, createBlock as sr, TransitionGroup as Yt, KeepAlive as ir } from "vue";
|
6
|
+
let Xt;
|
7
7
|
function ar(e) {
|
8
|
-
|
8
|
+
Xt = e;
|
9
9
|
}
|
10
10
|
function Xe() {
|
11
|
-
return
|
11
|
+
return Xt;
|
12
12
|
}
|
13
13
|
function ye() {
|
14
14
|
const { queryPath: e, pathParams: t, queryParams: n } = Xe();
|
@@ -33,15 +33,15 @@ class cr extends Map {
|
|
33
33
|
function _e(e) {
|
34
34
|
return new cr(e);
|
35
35
|
}
|
36
|
-
function
|
36
|
+
function bt(e, t) {
|
37
37
|
Object.entries(e).forEach(([n, r]) => t(r, n));
|
38
38
|
}
|
39
39
|
function Oe(e, t) {
|
40
|
-
return
|
40
|
+
return Zt(e, {
|
41
41
|
valueFn: t
|
42
42
|
});
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function Zt(e, t) {
|
45
45
|
const { valueFn: n, keyFn: r } = t;
|
46
46
|
return Object.fromEntries(
|
47
47
|
Object.entries(e).map(([o, s], i) => [
|
@@ -50,7 +50,7 @@ function Xt(e, t) {
|
|
50
50
|
])
|
51
51
|
);
|
52
52
|
}
|
53
|
-
function
|
53
|
+
function en(e, t, n) {
|
54
54
|
if (Array.isArray(t)) {
|
55
55
|
const [o, ...s] = t;
|
56
56
|
switch (o) {
|
@@ -62,10 +62,10 @@ function Zt(e, t, n) {
|
|
62
62
|
return s[0] + e;
|
63
63
|
}
|
64
64
|
}
|
65
|
-
const r =
|
65
|
+
const r = tn(t, n);
|
66
66
|
return e[r];
|
67
67
|
}
|
68
|
-
function
|
68
|
+
function tn(e, t) {
|
69
69
|
if (typeof e == "string" || typeof e == "number")
|
70
70
|
return e;
|
71
71
|
if (!Array.isArray(e))
|
@@ -82,19 +82,19 @@ function en(e, t) {
|
|
82
82
|
}
|
83
83
|
function be(e, t, n) {
|
84
84
|
return t.reduce(
|
85
|
-
(r, o) =>
|
85
|
+
(r, o) => en(r, o, n),
|
86
86
|
e
|
87
87
|
);
|
88
88
|
}
|
89
89
|
function Ze(e, t, n, r) {
|
90
90
|
t.reduce((o, s, i) => {
|
91
91
|
if (i === t.length - 1)
|
92
|
-
o[
|
92
|
+
o[tn(s, r)] = n;
|
93
93
|
else
|
94
|
-
return
|
94
|
+
return en(o, s, r);
|
95
95
|
}, e);
|
96
96
|
}
|
97
|
-
function
|
97
|
+
function nn(e) {
|
98
98
|
return JSON.parse(JSON.stringify(e));
|
99
99
|
}
|
100
100
|
class ur {
|
@@ -106,7 +106,7 @@ const we = new ur();
|
|
106
106
|
function Ee(e) {
|
107
107
|
return Gn(e) === we;
|
108
108
|
}
|
109
|
-
function
|
109
|
+
function St(e, t, n) {
|
110
110
|
const { paths: r, getBindableValueFn: o } = t, { paths: s, getBindableValueFn: i } = t;
|
111
111
|
return r === void 0 || r.length === 0 ? e : Ce(() => ({
|
112
112
|
get() {
|
@@ -130,7 +130,7 @@ function bt(e, t, n) {
|
|
130
130
|
}
|
131
131
|
}));
|
132
132
|
}
|
133
|
-
function
|
133
|
+
function ht(e) {
|
134
134
|
return Ce((t, n) => ({
|
135
135
|
get() {
|
136
136
|
return t(), e;
|
@@ -172,7 +172,7 @@ function nt(e, t = !1) {
|
|
172
172
|
), Promise.race(_);
|
173
173
|
}
|
174
174
|
function r(u, f) {
|
175
|
-
if (!
|
175
|
+
if (!Ht(u))
|
176
176
|
return n((R) => R === u, f);
|
177
177
|
const { flush: d = "sync", deep: v = !1, timeout: p, throwOnTimeout: g } = f ?? {};
|
178
178
|
let y = null;
|
@@ -245,7 +245,7 @@ function lr(e) {
|
|
245
245
|
}
|
246
246
|
function fr(e, t, n) {
|
247
247
|
let r;
|
248
|
-
|
248
|
+
Ht(n) ? r = {
|
249
249
|
evaluating: n
|
250
250
|
} : r = n || {};
|
251
251
|
const {
|
@@ -255,7 +255,7 @@ function fr(e, t, n) {
|
|
255
255
|
onError: c = et
|
256
256
|
} = r, l = Z(!o), h = i ? J(t) : Z(t);
|
257
257
|
let a = 0;
|
258
|
-
return
|
258
|
+
return zt(async (u) => {
|
259
259
|
if (!l.value)
|
260
260
|
return;
|
261
261
|
a++;
|
@@ -345,7 +345,8 @@ function rn(e) {
|
|
345
345
|
return e.constructor.name === "AsyncFunction";
|
346
346
|
}
|
347
347
|
function pr(e, t) {
|
348
|
-
|
348
|
+
const { deepCompare: n = !1 } = e;
|
349
|
+
return n ? ht(e.value) : Z(e.value);
|
349
350
|
}
|
350
351
|
function mr(e, t, n) {
|
351
352
|
const { bind: r = {}, code: o, const: s = [] } = e, i = Object.values(r).map((a, u) => s[u] === 1 ? a : t.getVueRefObjectOrValue(a));
|
@@ -379,7 +380,7 @@ function gr(e, t, n) {
|
|
379
380
|
(g, y) => a[y] === 1 ? g : t.getObjectToValue(g)
|
380
381
|
);
|
381
382
|
}
|
382
|
-
const d = L(o), v = l === 0 ? J(we) :
|
383
|
+
const d = L(o), v = l === 0 ? J(we) : ht(we), p = { immediate: !0, deep: !0 };
|
383
384
|
return rn(d) ? (v.value = c, G(
|
384
385
|
u,
|
385
386
|
async () => {
|
@@ -411,7 +412,7 @@ function on(e, t) {
|
|
411
412
|
return (s = e.refs) == null || s.forEach((a) => {
|
412
413
|
o(a, pr(a));
|
413
414
|
}), (i = e.web_computed) == null || i.forEach((a) => {
|
414
|
-
const { init: u } = a, f = a.deepEqOnInput === void 0 ? J(u ?? we) :
|
415
|
+
const { init: u } = a, f = a.deepEqOnInput === void 0 ? J(u ?? we) : ht(u ?? we);
|
415
416
|
o(a, f);
|
416
417
|
}), (c = e.vue_computed) == null || c.forEach((a) => {
|
417
418
|
o(
|
@@ -459,22 +460,22 @@ function cn(e, t) {
|
|
459
460
|
const n = Se.get(e);
|
460
461
|
n && n.splice(t, 1);
|
461
462
|
}
|
462
|
-
const
|
463
|
+
const dt = _e(() => []);
|
463
464
|
function Er(e) {
|
464
465
|
var r;
|
465
|
-
const t = /* @__PURE__ */ new Map(), n =
|
466
|
+
const t = /* @__PURE__ */ new Map(), n = dt.getOrDefault(e.id).push(t);
|
466
467
|
return (r = e.eRefs) == null || r.forEach((o) => {
|
467
468
|
const s = J();
|
468
469
|
t.set(o.id, s);
|
469
470
|
}), n;
|
470
471
|
}
|
471
472
|
function _r(e, t) {
|
472
|
-
const n =
|
473
|
+
const n = dt.get(e);
|
473
474
|
n && n.splice(t, 1);
|
474
475
|
}
|
475
476
|
function un() {
|
476
477
|
const e = new Map(
|
477
|
-
Array.from(
|
478
|
+
Array.from(dt.entries()).map(([n, r]) => [
|
478
479
|
n,
|
479
480
|
r[r.length - 1]
|
480
481
|
])
|
@@ -557,7 +558,7 @@ function Rr() {
|
|
557
558
|
getPropsValue: t
|
558
559
|
};
|
559
560
|
}
|
560
|
-
const ln = /* @__PURE__ */ new Map(),
|
561
|
+
const ln = /* @__PURE__ */ new Map(), pt = _e(() => /* @__PURE__ */ new Map()), fn = /* @__PURE__ */ new Set(), hn = Symbol("vfor");
|
561
562
|
function Pr(e) {
|
562
563
|
const t = dn() ?? {};
|
563
564
|
Ie(hn, { ...t, [e.fid]: e.key });
|
@@ -586,7 +587,7 @@ function Vr(e, t, n, r) {
|
|
586
587
|
ln.set(e, o);
|
587
588
|
}
|
588
589
|
function Nr(e, t, n) {
|
589
|
-
const r =
|
590
|
+
const r = pt.getOrDefault(e);
|
590
591
|
r.has(t) || r.set(t, Z(n)), r.get(t).value = n;
|
591
592
|
}
|
592
593
|
function Ir(e) {
|
@@ -595,7 +596,7 @@ function Ir(e) {
|
|
595
596
|
t.add(o);
|
596
597
|
}
|
597
598
|
function r() {
|
598
|
-
const o =
|
599
|
+
const o = pt.get(e);
|
599
600
|
o !== void 0 && o.forEach((s, i) => {
|
600
601
|
t.has(i) || o.delete(i);
|
601
602
|
});
|
@@ -609,7 +610,7 @@ function Tr(e) {
|
|
609
610
|
const t = e, n = kr();
|
610
611
|
function r(o) {
|
611
612
|
const s = n.get(o) ?? t;
|
612
|
-
return
|
613
|
+
return pt.get(o).get(s).value;
|
613
614
|
}
|
614
615
|
return {
|
615
616
|
getVForIndex: r
|
@@ -698,7 +699,7 @@ class Cr {
|
|
698
699
|
function xr(e, t, n = !1) {
|
699
700
|
return n && (e = `$computed(${e})`, t = { ...t, $computed: U }), L(e, t);
|
700
701
|
}
|
701
|
-
function
|
702
|
+
function Rt(e) {
|
702
703
|
return e == null;
|
703
704
|
}
|
704
705
|
function Dr() {
|
@@ -817,20 +818,20 @@ function P(e) {
|
|
817
818
|
console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
|
818
819
|
}
|
819
820
|
const gn = /#/g, qr = /&/g, Hr = /\//g, zr = /=/g, Jr = /\?/g, vn = /\+/g, Qr = /%5B/g, Yr = /%5D/g, yn = /%5E/g, Xr = /%60/g, wn = /%7B/g, Zr = /%7C/g, En = /%7D/g, eo = /%20/g;
|
820
|
-
function
|
821
|
+
function mt(e) {
|
821
822
|
return encodeURI("" + e).replace(Zr, "|").replace(Qr, "[").replace(Yr, "]");
|
822
823
|
}
|
823
824
|
function to(e) {
|
824
|
-
return
|
825
|
+
return mt(e).replace(wn, "{").replace(En, "}").replace(yn, "^");
|
825
826
|
}
|
826
827
|
function ot(e) {
|
827
|
-
return
|
828
|
+
return mt(e).replace(vn, "%2B").replace(eo, "+").replace(gn, "%23").replace(qr, "%26").replace(Xr, "`").replace(wn, "{").replace(En, "}").replace(yn, "^");
|
828
829
|
}
|
829
830
|
function no(e) {
|
830
831
|
return ot(e).replace(zr, "%3D");
|
831
832
|
}
|
832
833
|
function ro(e) {
|
833
|
-
return
|
834
|
+
return mt(e).replace(gn, "%23").replace(Jr, "%3F");
|
834
835
|
}
|
835
836
|
function oo(e) {
|
836
837
|
return e == null ? "" : ro(e).replace(Hr, "%2F");
|
@@ -859,10 +860,10 @@ function ao(e, t) {
|
|
859
860
|
const n = t.query ? e(t.query) : "";
|
860
861
|
return t.path + (n && "?") + n + (t.hash || "");
|
861
862
|
}
|
862
|
-
function
|
863
|
+
function Pt(e, t) {
|
863
864
|
return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
|
864
865
|
}
|
865
|
-
function
|
866
|
+
function kt(e, t, n) {
|
866
867
|
const r = t.matched.length - 1, o = n.matched.length - 1;
|
867
868
|
return r > -1 && r === o && te(t.matched[r], n.matched[o]) && _n(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
|
868
869
|
}
|
@@ -878,9 +879,9 @@ function _n(e, t) {
|
|
878
879
|
return !0;
|
879
880
|
}
|
880
881
|
function co(e, t) {
|
881
|
-
return K(e) ?
|
882
|
+
return K(e) ? Vt(e, t) : K(t) ? Vt(t, e) : e === t;
|
882
883
|
}
|
883
|
-
function
|
884
|
+
function Vt(e, t) {
|
884
885
|
return K(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
|
885
886
|
}
|
886
887
|
function uo(e, t) {
|
@@ -972,7 +973,7 @@ function ho(e) {
|
|
972
973
|
t = e;
|
973
974
|
"scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
|
974
975
|
}
|
975
|
-
function
|
976
|
+
function Nt(e, t) {
|
976
977
|
return (history.state ? history.state.position - t : -1) + e;
|
977
978
|
}
|
978
979
|
const st = /* @__PURE__ */ new Map();
|
@@ -988,9 +989,9 @@ function Sn(e, t) {
|
|
988
989
|
const { pathname: n, search: r, hash: o } = t, s = e.indexOf("#");
|
989
990
|
if (s > -1) {
|
990
991
|
let c = o.includes(e.slice(s)) ? e.slice(s).length : 1, l = o.slice(c);
|
991
|
-
return l[0] !== "/" && (l = "/" + l),
|
992
|
+
return l[0] !== "/" && (l = "/" + l), Pt(l, "");
|
992
993
|
}
|
993
|
-
return
|
994
|
+
return Pt(n, e) + r + o;
|
994
995
|
}
|
995
996
|
function vo(e, t, n, r) {
|
996
997
|
let o = [], s = [], i = null;
|
@@ -1041,7 +1042,7 @@ function vo(e, t, n, r) {
|
|
1041
1042
|
destroy: u
|
1042
1043
|
};
|
1043
1044
|
}
|
1044
|
-
function
|
1045
|
+
function It(e, t, n, r = !1, o = !1) {
|
1045
1046
|
return {
|
1046
1047
|
back: e,
|
1047
1048
|
current: t,
|
@@ -1075,7 +1076,7 @@ function yo(e) {
|
|
1075
1076
|
}
|
1076
1077
|
}
|
1077
1078
|
function i(l, h) {
|
1078
|
-
const a = I({}, t.state,
|
1079
|
+
const a = I({}, t.state, It(
|
1079
1080
|
o.value.back,
|
1080
1081
|
// keep back and forward entries but override current position
|
1081
1082
|
l,
|
@@ -1102,7 +1103,7 @@ function yo(e) {
|
|
1102
1103
|
history.replaceState(history.state, '', url)
|
1103
1104
|
|
1104
1105
|
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(a.current, a, !0);
|
1105
|
-
const u = I({},
|
1106
|
+
const u = I({}, It(r.value, l, null), { position: a.position + 1 }, h);
|
1106
1107
|
s(l, u, !1), r.value = l;
|
1107
1108
|
}
|
1108
1109
|
return {
|
@@ -1199,10 +1200,10 @@ function Pn(e) {
|
|
1199
1200
|
return typeof e == "string" || typeof e == "symbol";
|
1200
1201
|
}
|
1201
1202
|
const it = Symbol(S.NODE_ENV !== "production" ? "navigation failure" : "");
|
1202
|
-
var
|
1203
|
+
var Tt;
|
1203
1204
|
(function(e) {
|
1204
1205
|
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
1205
|
-
})(
|
1206
|
+
})(Tt || (Tt = {}));
|
1206
1207
|
const _o = {
|
1207
1208
|
1({ location: e, currentLocation: t }) {
|
1208
1209
|
return `No match for
|
@@ -1246,7 +1247,7 @@ function bo(e) {
|
|
1246
1247
|
n in e && (t[n] = e[n]);
|
1247
1248
|
return JSON.stringify(t, null, 2);
|
1248
1249
|
}
|
1249
|
-
const
|
1250
|
+
const At = "[^/]+?", So = {
|
1250
1251
|
sensitive: !1,
|
1251
1252
|
strict: !1,
|
1252
1253
|
start: !0,
|
@@ -1274,8 +1275,8 @@ function Po(e, t) {
|
|
1274
1275
|
repeatable: p,
|
1275
1276
|
optional: g
|
1276
1277
|
});
|
1277
|
-
const _ = y ||
|
1278
|
-
if (_ !==
|
1278
|
+
const _ = y || At;
|
1279
|
+
if (_ !== At) {
|
1279
1280
|
d += 10;
|
1280
1281
|
try {
|
1281
1282
|
new RegExp(`(${_})`);
|
@@ -1358,14 +1359,14 @@ function kn(e, t) {
|
|
1358
1359
|
n++;
|
1359
1360
|
}
|
1360
1361
|
if (Math.abs(o.length - r.length) === 1) {
|
1361
|
-
if (
|
1362
|
+
if ($t(r))
|
1362
1363
|
return 1;
|
1363
|
-
if (
|
1364
|
+
if ($t(o))
|
1364
1365
|
return -1;
|
1365
1366
|
}
|
1366
1367
|
return o.length - r.length;
|
1367
1368
|
}
|
1368
|
-
function
|
1369
|
+
function $t(e) {
|
1369
1370
|
const t = e[e.length - 1];
|
1370
1371
|
return e.length > 0 && t[t.length - 1] < 0;
|
1371
1372
|
}
|
@@ -1451,21 +1452,21 @@ function To(e, t, n) {
|
|
1451
1452
|
}
|
1452
1453
|
function Ao(e, t) {
|
1453
1454
|
const n = [], r = /* @__PURE__ */ new Map();
|
1454
|
-
t =
|
1455
|
+
t = Dt({ strict: !1, end: !0, sensitive: !1 }, t);
|
1455
1456
|
function o(u) {
|
1456
1457
|
return r.get(u);
|
1457
1458
|
}
|
1458
1459
|
function s(u, f, d) {
|
1459
|
-
const v = !d, p =
|
1460
|
+
const v = !d, p = Ct(u);
|
1460
1461
|
S.NODE_ENV !== "production" && xo(p, f), p.aliasOf = d && d.record;
|
1461
|
-
const g =
|
1462
|
+
const g = Dt(t, u), y = [p];
|
1462
1463
|
if ("alias" in u) {
|
1463
1464
|
const R = typeof u.alias == "string" ? [u.alias] : u.alias;
|
1464
1465
|
for (const D of R)
|
1465
1466
|
y.push(
|
1466
1467
|
// we need to normalize again to ensure the `mods` property
|
1467
1468
|
// being non enumerable
|
1468
|
-
|
1469
|
+
Ct(I({}, p, {
|
1469
1470
|
// this allows us to hold a copy of the `components` option
|
1470
1471
|
// so that async components cache is hold on the original record
|
1471
1472
|
components: d ? d.record.components : p.components,
|
@@ -1487,7 +1488,7 @@ function Ao(e, t) {
|
|
1487
1488
|
if (S.NODE_ENV !== "production" && R.path === "*")
|
1488
1489
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
1489
1490
|
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
|
1490
|
-
if (_ = To(R, f, g), S.NODE_ENV !== "production" && f && D[0] === "/" && Mo(_, f), d ? (d.alias.push(_), S.NODE_ENV !== "production" && Co(d, _)) : (O = O || _, O !== _ && O.alias.push(_), v && u.name && !
|
1491
|
+
if (_ = To(R, f, g), S.NODE_ENV !== "production" && f && D[0] === "/" && Mo(_, f), d ? (d.alias.push(_), S.NODE_ENV !== "production" && Co(d, _)) : (O = O || _, O !== _ && O.alias.push(_), v && u.name && !xt(_) && (S.NODE_ENV !== "production" && Do(u, f), i(u.name))), Vn(_) && l(_), p.children) {
|
1491
1492
|
const C = p.children;
|
1492
1493
|
for (let x = 0; x < C.length; x++)
|
1493
1494
|
s(C[x], _, d && d.children[x]);
|
@@ -1512,7 +1513,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
1512
1513
|
}
|
1513
1514
|
function l(u) {
|
1514
1515
|
const f = Fo(u, n);
|
1515
|
-
n.splice(f, 0, u), u.record.name && !
|
1516
|
+
n.splice(f, 0, u), u.record.name && !xt(u) && r.set(u.record.name, u);
|
1516
1517
|
}
|
1517
1518
|
function h(u, f) {
|
1518
1519
|
let d, v = {}, p, g;
|
@@ -1527,7 +1528,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
1527
1528
|
}
|
1528
1529
|
g = d.record.name, v = I(
|
1529
1530
|
// paramsFromLocation is a new object
|
1530
|
-
|
1531
|
+
jt(
|
1531
1532
|
f.params,
|
1532
1533
|
// only keep params that exist in the resolved location
|
1533
1534
|
// only keep optional params coming from a parent record
|
@@ -1535,7 +1536,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
1535
1536
|
),
|
1536
1537
|
// discard any existing params in the current location that do not exist here
|
1537
1538
|
// #1497 this ensures better active/exact matching
|
1538
|
-
u.params &&
|
1539
|
+
u.params && jt(u.params, d.keys.map((O) => O.name))
|
1539
1540
|
), p = d.stringify(v);
|
1540
1541
|
} else if (u.path != null)
|
1541
1542
|
p = u.path, S.NODE_ENV !== "production" && !p.startsWith("/") && P(`The Matcher cannot resolve relative paths but received "${p}". Unless you directly called \`matcher.resolve("${p}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), d = n.find((O) => O.re.test(p)), d && (v = d.parse(p), g = d.record.name);
|
@@ -1572,13 +1573,13 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
1572
1573
|
getRecordMatcher: o
|
1573
1574
|
};
|
1574
1575
|
}
|
1575
|
-
function
|
1576
|
+
function jt(e, t) {
|
1576
1577
|
const n = {};
|
1577
1578
|
for (const r of t)
|
1578
1579
|
r in e && (n[r] = e[r]);
|
1579
1580
|
return n;
|
1580
1581
|
}
|
1581
|
-
function
|
1582
|
+
function Ct(e) {
|
1582
1583
|
const t = {
|
1583
1584
|
path: e.path,
|
1584
1585
|
redirect: e.redirect,
|
@@ -1609,7 +1610,7 @@ function $o(e) {
|
|
1609
1610
|
t[r] = typeof n == "object" ? n[r] : n;
|
1610
1611
|
return t;
|
1611
1612
|
}
|
1612
|
-
function
|
1613
|
+
function xt(e) {
|
1613
1614
|
for (; e; ) {
|
1614
1615
|
if (e.record.aliasOf)
|
1615
1616
|
return !0;
|
@@ -1620,7 +1621,7 @@ function Ct(e) {
|
|
1620
1621
|
function jo(e) {
|
1621
1622
|
return e.reduce((t, n) => I(t, n.meta), {});
|
1622
1623
|
}
|
1623
|
-
function
|
1624
|
+
function Dt(e, t) {
|
1624
1625
|
const n = {};
|
1625
1626
|
for (const r in e)
|
1626
1627
|
n[r] = r in t ? t[r] : e[r];
|
@@ -1683,7 +1684,7 @@ function Lo(e) {
|
|
1683
1684
|
}
|
1684
1685
|
return t;
|
1685
1686
|
}
|
1686
|
-
function
|
1687
|
+
function Mt(e) {
|
1687
1688
|
let t = "";
|
1688
1689
|
for (let n in e) {
|
1689
1690
|
const r = e[n];
|
@@ -1705,7 +1706,7 @@ function Wo(e) {
|
|
1705
1706
|
}
|
1706
1707
|
return t;
|
1707
1708
|
}
|
1708
|
-
const Uo = Symbol(S.NODE_ENV !== "production" ? "router view location matched" : ""),
|
1709
|
+
const Uo = Symbol(S.NODE_ENV !== "production" ? "router view location matched" : ""), Ft = Symbol(S.NODE_ENV !== "production" ? "router view depth" : ""), Be = Symbol(S.NODE_ENV !== "production" ? "router" : ""), gt = Symbol(S.NODE_ENV !== "production" ? "route location" : ""), ct = Symbol(S.NODE_ENV !== "production" ? "router view location" : "");
|
1709
1710
|
function pe() {
|
1710
1711
|
let e = [];
|
1711
1712
|
function t(r) {
|
@@ -1793,8 +1794,8 @@ function Qe(e, t, n, r, o = (s) => s()) {
|
|
1793
1794
|
}
|
1794
1795
|
return s;
|
1795
1796
|
}
|
1796
|
-
function
|
1797
|
-
const t = ee(Be), n = ee(
|
1797
|
+
function Bt(e) {
|
1798
|
+
const t = ee(Be), n = ee(gt);
|
1798
1799
|
let r = !1, o = null;
|
1799
1800
|
const s = U(() => {
|
1800
1801
|
const a = W(e.to);
|
@@ -1811,13 +1812,13 @@ function Ft(e) {
|
|
1811
1812
|
const v = d.findIndex(te.bind(null, f));
|
1812
1813
|
if (v > -1)
|
1813
1814
|
return v;
|
1814
|
-
const p =
|
1815
|
+
const p = Lt(a[u - 2]);
|
1815
1816
|
return (
|
1816
1817
|
// we are dealing with nested routes
|
1817
1818
|
u > 1 && // if the parent and matched route have the same path, this link is
|
1818
1819
|
// referring to the empty child. Or we currently are on a different
|
1819
1820
|
// child of the same parent
|
1820
|
-
|
1821
|
+
Lt(f) === p && // avoid comparing the child with its parent
|
1821
1822
|
d[d.length - 1].path !== p ? d.findIndex(te.bind(null, a[u - 2])) : v
|
1822
1823
|
);
|
1823
1824
|
}), c = U(() => i.value > -1 && Jo(n.params, s.value.params)), l = U(() => i.value > -1 && i.value === n.matched.length - 1 && _n(n.params, s.value.params));
|
@@ -1832,7 +1833,7 @@ function Ft(e) {
|
|
1832
1833
|
return Promise.resolve();
|
1833
1834
|
}
|
1834
1835
|
if (S.NODE_ENV !== "production" && z) {
|
1835
|
-
const a =
|
1836
|
+
const a = Jt();
|
1836
1837
|
if (a) {
|
1837
1838
|
const u = {
|
1838
1839
|
route: s.value,
|
@@ -1840,7 +1841,7 @@ function Ft(e) {
|
|
1840
1841
|
isExactActive: l.value,
|
1841
1842
|
error: null
|
1842
1843
|
};
|
1843
|
-
a.__vrl_devtools = a.__vrl_devtools || [], a.__vrl_devtools.push(u),
|
1844
|
+
a.__vrl_devtools = a.__vrl_devtools || [], a.__vrl_devtools.push(u), zt(() => {
|
1844
1845
|
u.route = s.value, u.isActive = c.value, u.isExactActive = l.value, u.error = Ae(W(e.to)) ? null : 'Invalid "to" value';
|
1845
1846
|
}, { flush: "post" });
|
1846
1847
|
}
|
@@ -1874,16 +1875,16 @@ const qo = /* @__PURE__ */ F({
|
|
1874
1875
|
default: "page"
|
1875
1876
|
}
|
1876
1877
|
},
|
1877
|
-
useLink:
|
1878
|
+
useLink: Bt,
|
1878
1879
|
setup(e, { slots: t }) {
|
1879
|
-
const n = zn(
|
1880
|
-
[
|
1880
|
+
const n = zn(Bt(e)), { options: r } = ee(Be), o = U(() => ({
|
1881
|
+
[Wt(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
|
1881
1882
|
// [getLinkClass(
|
1882
1883
|
// props.inactiveClass,
|
1883
1884
|
// options.linkInactiveClass,
|
1884
1885
|
// 'router-link-inactive'
|
1885
1886
|
// )]: !link.isExactActive,
|
1886
|
-
[
|
1887
|
+
[Wt(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
|
1887
1888
|
}));
|
1888
1889
|
return () => {
|
1889
1890
|
const s = t.default && Go(t.default(n));
|
@@ -1919,10 +1920,10 @@ function Jo(e, t) {
|
|
1919
1920
|
}
|
1920
1921
|
return !0;
|
1921
1922
|
}
|
1922
|
-
function
|
1923
|
+
function Lt(e) {
|
1923
1924
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
1924
1925
|
}
|
1925
|
-
const
|
1926
|
+
const Wt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
|
1926
1927
|
name: "RouterView",
|
1927
1928
|
// #674 we manually inherit them
|
1928
1929
|
inheritAttrs: !1,
|
@@ -1938,7 +1939,7 @@ const Lt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
|
|
1938
1939
|
compatConfig: { MODE: 3 },
|
1939
1940
|
setup(e, { attrs: t, slots: n }) {
|
1940
1941
|
S.NODE_ENV !== "production" && Xo();
|
1941
|
-
const r = ee(ct), o = U(() => e.route || r.value), s = ee(
|
1942
|
+
const r = ee(ct), o = U(() => e.route || r.value), s = ee(Ft, 0), i = U(() => {
|
1942
1943
|
let h = W(s);
|
1943
1944
|
const { matched: a } = o.value;
|
1944
1945
|
let u;
|
@@ -1946,7 +1947,7 @@ const Lt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
|
|
1946
1947
|
h++;
|
1947
1948
|
return h;
|
1948
1949
|
}), c = U(() => o.value.matched[i.value]);
|
1949
|
-
Ie(
|
1950
|
+
Ie(Ft, U(() => i.value + 1)), Ie(Uo, c), Ie(ct, o);
|
1950
1951
|
const l = Z();
|
1951
1952
|
return G(() => [l.value, c.value, e.name], ([h, a, u], [f, d, v]) => {
|
1952
1953
|
a && (a.instances[u] = h, d && d !== a && h && h === f && (a.leaveGuards.size || (a.leaveGuards = d.leaveGuards), a.updateGuards.size || (a.updateGuards = d.updateGuards))), h && a && // if there is no instance but to and from are the same this might be
|
@@ -1955,7 +1956,7 @@ const Lt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
|
|
1955
1956
|
}, { flush: "post" }), () => {
|
1956
1957
|
const h = o.value, a = e.name, u = c.value, f = u && u.components[a];
|
1957
1958
|
if (!f)
|
1958
|
-
return
|
1959
|
+
return Ut(n.default, { Component: f, route: h });
|
1959
1960
|
const d = u.props[a], v = d ? d === !0 ? h.params : typeof d == "function" ? d(h) : d : null, g = A(f, I({}, v, t, {
|
1960
1961
|
onVnodeUnmounted: (y) => {
|
1961
1962
|
y.component.isUnmounted && (u.instances[a] = null);
|
@@ -1976,12 +1977,12 @@ const Lt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
|
|
1976
1977
|
return (
|
1977
1978
|
// pass the vnode to the slot as a prop.
|
1978
1979
|
// h and <component :is="..."> both accept vnodes
|
1979
|
-
|
1980
|
+
Ut(n.default, { Component: g, route: h }) || g
|
1980
1981
|
);
|
1981
1982
|
};
|
1982
1983
|
}
|
1983
1984
|
});
|
1984
|
-
function
|
1985
|
+
function Ut(e, t) {
|
1985
1986
|
if (!e)
|
1986
1987
|
return null;
|
1987
1988
|
const n = e(t);
|
@@ -1989,7 +1990,7 @@ function Wt(e, t) {
|
|
1989
1990
|
}
|
1990
1991
|
const Yo = Qo;
|
1991
1992
|
function Xo() {
|
1992
|
-
const e =
|
1993
|
+
const e = Jt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
|
1993
1994
|
if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
|
1994
1995
|
const r = t === "KeepAlive" ? "keep-alive" : "transition";
|
1995
1996
|
P(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
@@ -2271,7 +2272,7 @@ function us(e, t) {
|
|
2271
2272
|
return n;
|
2272
2273
|
}
|
2273
2274
|
function ls(e) {
|
2274
|
-
const t = Ao(e.routes, e), n = e.parseQuery || Lo, r = e.stringifyQuery ||
|
2275
|
+
const t = Ao(e.routes, e), n = e.parseQuery || Lo, r = e.stringifyQuery || Mt, o = e.history;
|
2275
2276
|
if (S.NODE_ENV !== "production" && !o)
|
2276
2277
|
throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
|
2277
2278
|
const s = pe(), i = pe(), c = pe(), l = J(Y);
|
@@ -2339,7 +2340,7 @@ function ls(e) {
|
|
2339
2340
|
// numbers at `$route.query`, but at the point, the user will have to
|
2340
2341
|
// use their own type anyway.
|
2341
2342
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
2342
|
-
r ===
|
2343
|
+
r === Mt ? Wo(m.query) : m.query || {}
|
2343
2344
|
)
|
2344
2345
|
}, b, {
|
2345
2346
|
redirectedFrom: void 0,
|
@@ -2397,7 +2398,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2397
2398
|
const $ = w;
|
2398
2399
|
$.redirectedFrom = E;
|
2399
2400
|
let re;
|
2400
|
-
return !j &&
|
2401
|
+
return !j && kt(r, b, w) && (re = ue(16, { to: $, from: b }), _t(
|
2401
2402
|
b,
|
2402
2403
|
b,
|
2403
2404
|
// this is a push, the only way for it to be triggered from a
|
@@ -2406,7 +2407,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2406
2407
|
// This cannot be the first navigation because the initial location
|
2407
2408
|
// cannot be manually navigated to
|
2408
2409
|
!1
|
2409
|
-
)), (re ? Promise.resolve(re) :
|
2410
|
+
)), (re ? Promise.resolve(re) : vt($, b)).catch((M) => H(M) ? (
|
2410
2411
|
// navigation redirects still mark the router as ready
|
2411
2412
|
H(
|
2412
2413
|
M,
|
@@ -2424,7 +2425,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2424
2425
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
2425
2426
|
))
|
2426
2427
|
return S.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
|
2427
|
-
|
2428
|
+
kt(r, y(M.to), $) && // and we have done it a couple of times
|
2428
2429
|
E && // @ts-expect-error: added only in dev
|
2429
2430
|
(E._count = E._count ? (
|
2430
2431
|
// @ts-expect-error
|
@@ -2443,8 +2444,8 @@ ${JSON.stringify(b, null, 2)}
|
|
2443
2444
|
E || $
|
2444
2445
|
);
|
2445
2446
|
} else
|
2446
|
-
M =
|
2447
|
-
return
|
2447
|
+
M = wt($, b, !0, V, T);
|
2448
|
+
return yt($, b, M), M;
|
2448
2449
|
});
|
2449
2450
|
}
|
2450
2451
|
function Le(m, E) {
|
@@ -2455,7 +2456,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2455
2456
|
const E = ke.values().next().value;
|
2456
2457
|
return E && typeof E.runWithContext == "function" ? E.runWithContext(m) : m();
|
2457
2458
|
}
|
2458
|
-
function
|
2459
|
+
function vt(m, E) {
|
2459
2460
|
let w;
|
2460
2461
|
const [b, T, j] = fs(m, E);
|
2461
2462
|
w = Qe(b.reverse(), "beforeRouteLeave", m, E);
|
@@ -2497,22 +2498,22 @@ ${JSON.stringify(b, null, 2)}
|
|
2497
2498
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
2498
2499
|
) ? k : Promise.reject(k));
|
2499
2500
|
}
|
2500
|
-
function
|
2501
|
+
function yt(m, E, w) {
|
2501
2502
|
c.list().forEach((b) => le(() => b(m, E, w)));
|
2502
2503
|
}
|
2503
|
-
function
|
2504
|
+
function wt(m, E, w, b, T) {
|
2504
2505
|
const j = O(m, E);
|
2505
2506
|
if (j)
|
2506
2507
|
return j;
|
2507
2508
|
const V = E === Y, k = z ? history.state : {};
|
2508
2509
|
w && (b || V ? o.replace(m.fullPath, I({
|
2509
2510
|
scroll: V && k && k.scroll
|
2510
|
-
}, T)) : o.push(m.fullPath, T)), l.value = m,
|
2511
|
+
}, T)) : o.push(m.fullPath, T)), l.value = m, _t(m, E, w, V), Ke();
|
2511
2512
|
}
|
2512
2513
|
let fe;
|
2513
2514
|
function Bn() {
|
2514
2515
|
fe || (fe = o.listen((m, E, w) => {
|
2515
|
-
if (!
|
2516
|
+
if (!Ot.listening)
|
2516
2517
|
return;
|
2517
2518
|
const b = y(m), T = C(b);
|
2518
2519
|
if (T) {
|
@@ -2521,7 +2522,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2521
2522
|
}
|
2522
2523
|
h = b;
|
2523
2524
|
const j = l.value;
|
2524
|
-
z && po(
|
2525
|
+
z && po(Nt(j.fullPath, w.delta), Fe()), vt(b, j).catch((V) => H(
|
2525
2526
|
V,
|
2526
2527
|
12
|
2527
2528
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
@@ -2542,7 +2543,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2542
2543
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
2543
2544
|
) && !w.delta && w.type === ce.pop && o.go(-1, !1);
|
2544
2545
|
}).catch(ve), Promise.reject()) : (w.delta && o.go(-w.delta, !1), Ue(V, b, j))).then((V) => {
|
2545
|
-
V = V ||
|
2546
|
+
V = V || wt(
|
2546
2547
|
// after navigation, all matched components are resolved
|
2547
2548
|
b,
|
2548
2549
|
j,
|
@@ -2557,14 +2558,14 @@ ${JSON.stringify(b, null, 2)}
|
|
2557
2558
|
V,
|
2558
2559
|
20
|
2559
2560
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
2560
|
-
) && o.go(-1, !1)),
|
2561
|
+
) && o.go(-1, !1)), yt(b, j, V);
|
2561
2562
|
}).catch(ve);
|
2562
2563
|
}));
|
2563
2564
|
}
|
2564
|
-
let We = pe(),
|
2565
|
+
let We = pe(), Et = pe(), Pe;
|
2565
2566
|
function Ue(m, E, w) {
|
2566
2567
|
Ke(m);
|
2567
|
-
const b =
|
2568
|
+
const b = Et.list();
|
2568
2569
|
return b.length ? b.forEach((T) => T(m, E, w)) : (S.NODE_ENV !== "production" && P("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
|
2569
2570
|
}
|
2570
2571
|
function Ln() {
|
@@ -2575,16 +2576,16 @@ ${JSON.stringify(b, null, 2)}
|
|
2575
2576
|
function Ke(m) {
|
2576
2577
|
return Pe || (Pe = !m, Bn(), We.list().forEach(([E, w]) => m ? w(m) : E()), We.reset()), m;
|
2577
2578
|
}
|
2578
|
-
function
|
2579
|
+
function _t(m, E, w, b) {
|
2579
2580
|
const { scrollBehavior: T } = e;
|
2580
2581
|
if (!z || !T)
|
2581
2582
|
return Promise.resolve();
|
2582
|
-
const j = !w && mo(
|
2583
|
+
const j = !w && mo(Nt(m.fullPath, 0)) || (b || !w) && history.state && history.state.scroll || null;
|
2583
2584
|
return Te().then(() => T(m, E, j)).then((V) => V && ho(V)).catch((V) => Ue(V, m, E));
|
2584
2585
|
}
|
2585
2586
|
const Ge = (m) => o.go(m);
|
2586
2587
|
let qe;
|
2587
|
-
const ke = /* @__PURE__ */ new Set(),
|
2588
|
+
const ke = /* @__PURE__ */ new Set(), Ot = {
|
2588
2589
|
currentRoute: l,
|
2589
2590
|
listening: !0,
|
2590
2591
|
addRoute: d,
|
@@ -2602,7 +2603,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2602
2603
|
beforeEach: s.add,
|
2603
2604
|
beforeResolve: i.add,
|
2604
2605
|
afterEach: c.add,
|
2605
|
-
onError:
|
2606
|
+
onError: Et.add,
|
2606
2607
|
isReady: Ln,
|
2607
2608
|
install(m) {
|
2608
2609
|
const E = this;
|
@@ -2620,7 +2621,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2620
2621
|
get: () => l.value[T],
|
2621
2622
|
enumerable: !0
|
2622
2623
|
});
|
2623
|
-
m.provide(Be, E), m.provide(
|
2624
|
+
m.provide(Be, E), m.provide(gt, Hn(w)), m.provide(ct, l);
|
2624
2625
|
const b = m.unmount;
|
2625
2626
|
ke.add(m), m.unmount = function() {
|
2626
2627
|
ke.delete(m), ke.size < 1 && (h = Y, fe && fe(), fe = null, l.value = Y, qe = !1, Pe = !1), b();
|
@@ -2630,7 +2631,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2630
2631
|
function se(m) {
|
2631
2632
|
return m.reduce((E, w) => E.then(() => le(w)), Promise.resolve());
|
2632
2633
|
}
|
2633
|
-
return
|
2634
|
+
return Ot;
|
2634
2635
|
}
|
2635
2636
|
function fs(e, t) {
|
2636
2637
|
const n = [], r = [], o = [], s = Math.max(t.matched.length, e.matched.length);
|
@@ -2646,7 +2647,7 @@ function hs() {
|
|
2646
2647
|
return ee(Be);
|
2647
2648
|
}
|
2648
2649
|
function ds(e) {
|
2649
|
-
return ee(
|
2650
|
+
return ee(gt);
|
2650
2651
|
}
|
2651
2652
|
function ne(e) {
|
2652
2653
|
let t = sn(), n = Rr(), r = Tr(e), o = un(), s = hs(), i = ds();
|
@@ -2673,7 +2674,7 @@ function ne(e) {
|
|
2673
2674
|
function h(p) {
|
2674
2675
|
if (N.isVar(p)) {
|
2675
2676
|
const g = t.getVueRef(p) || yr(p);
|
2676
|
-
return
|
2677
|
+
return St(g, {
|
2677
2678
|
paths: p.path,
|
2678
2679
|
getBindableValueFn: l
|
2679
2680
|
});
|
@@ -2687,7 +2688,7 @@ function ne(e) {
|
|
2687
2688
|
return () => l(p);
|
2688
2689
|
if (N.isRouterParams(p)) {
|
2689
2690
|
const { prop: g = "params" } = p;
|
2690
|
-
return
|
2691
|
+
return St(() => i[g], {
|
2691
2692
|
paths: p.path,
|
2692
2693
|
getBindableValueFn: l
|
2693
2694
|
});
|
@@ -2737,7 +2738,7 @@ function ne(e) {
|
|
2737
2738
|
});
|
2738
2739
|
}
|
2739
2740
|
function d(p, g) {
|
2740
|
-
if (
|
2741
|
+
if (Rt(g) || Rt(p.values))
|
2741
2742
|
return;
|
2742
2743
|
g = g;
|
2743
2744
|
const y = p.values, _ = p.skips || new Array(g.length).fill(0);
|
@@ -3085,12 +3086,12 @@ function bs(e, t) {
|
|
3085
3086
|
} = e, u = h || new Array(n.length).fill(0), f = a || new Array(Object.keys(l).length).fill(0), d = Oe(
|
3086
3087
|
l,
|
3087
3088
|
(g, y, _) => f[_] === 0 ? t.getVueRefObject(g) : g
|
3088
|
-
), v = L(r, d), p = n.length === 1 ?
|
3089
|
-
(g, y) =>
|
3089
|
+
), v = L(r, d), p = n.length === 1 ? Kt(u[0] === 1, n[0], t) : n.map(
|
3090
|
+
(g, y) => Kt(u[y] === 1, g, t)
|
3090
3091
|
);
|
3091
3092
|
return G(p, v, { immediate: o, deep: s, once: i, flush: c });
|
3092
3093
|
}
|
3093
|
-
function
|
3094
|
+
function Kt(e, t, n) {
|
3094
3095
|
return e ? () => t : n.getVueRefObject(t);
|
3095
3096
|
}
|
3096
3097
|
function Ss(e, t) {
|
@@ -3106,7 +3107,7 @@ function Ss(e, t) {
|
|
3106
3107
|
flush: a
|
3107
3108
|
} = e, u = o || new Array(n.length).fill(0), f = s || new Array(n.length).fill(0), d = L(i), v = n.filter((g, y) => u[y] === 0 && f[y] === 0).map((g) => t.getVueRefObject(g));
|
3108
3109
|
function p() {
|
3109
|
-
return n.map((g, y) => f[y] === 0 ?
|
3110
|
+
return n.map((g, y) => f[y] === 0 ? nn(q(t.getVueRefObject(g))) : g);
|
3110
3111
|
}
|
3111
3112
|
G(
|
3112
3113
|
v,
|
@@ -3180,7 +3181,7 @@ function Vs(e, t) {
|
|
3180
3181
|
}
|
3181
3182
|
return be(c[0], a.path.split("."));
|
3182
3183
|
}
|
3183
|
-
return N.IsBinding(a) ?
|
3184
|
+
return N.IsBinding(a) ? nn(t.getObjectToValue(a)) : a;
|
3184
3185
|
}), h = s(...l);
|
3185
3186
|
if (o !== void 0) {
|
3186
3187
|
const u = o.length === 1 ? [h] : h, f = u.map((d) => d === void 0 ? 1 : 0);
|
@@ -3258,19 +3259,19 @@ function As(e, t) {
|
|
3258
3259
|
function $s(e, t, n) {
|
3259
3260
|
var o;
|
3260
3261
|
const r = {};
|
3261
|
-
return
|
3262
|
+
return bt(e.bProps || {}, (s, i) => {
|
3262
3263
|
const c = n.getObjectToValue(s);
|
3263
3264
|
Ee(c) || ($e(c), r[i] = js(c, i));
|
3264
3265
|
}), (o = e.proxyProps) == null || o.forEach((s) => {
|
3265
3266
|
const i = n.getObjectToValue(s);
|
3266
|
-
typeof i == "object" &&
|
3267
|
+
typeof i == "object" && bt(i, (c, l) => {
|
3267
3268
|
const { name: h, value: a } = As(l, c);
|
3268
3269
|
r[h] = a;
|
3269
3270
|
});
|
3270
3271
|
}), { ...t || {}, ...r };
|
3271
3272
|
}
|
3272
3273
|
function js(e, t) {
|
3273
|
-
return t === "innerText" ?
|
3274
|
+
return t === "innerText" ? Qt(e) : e;
|
3274
3275
|
}
|
3275
3276
|
function Cs(e, { slots: t }) {
|
3276
3277
|
const { id: n, use: r } = e.propsInfo, o = Or(n);
|
@@ -3294,18 +3295,18 @@ function Ds(e, t) {
|
|
3294
3295
|
if (!e.slots)
|
3295
3296
|
return null;
|
3296
3297
|
const n = e.slots ?? {};
|
3297
|
-
return Array.isArray(n) ? t ? ge(n) : () => ge(n) :
|
3298
|
+
return Array.isArray(n) ? t ? ge(n) : () => ge(n) : Zt(n, { keyFn: (i) => i === ":" ? "default" : i, valueFn: (i) => {
|
3298
3299
|
const { items: c } = i;
|
3299
3300
|
return (l) => {
|
3300
3301
|
if (i.scope) {
|
3301
|
-
const h = () => i.props ?
|
3302
|
+
const h = () => i.props ? Gt(i.props, l, c) : ge(c);
|
3302
3303
|
return A(Re, { scope: i.scope }, h);
|
3303
3304
|
}
|
3304
|
-
return i.props ?
|
3305
|
+
return i.props ? Gt(i.props, l, c) : ge(c);
|
3305
3306
|
};
|
3306
3307
|
} });
|
3307
3308
|
}
|
3308
|
-
function
|
3309
|
+
function Gt(e, t, n) {
|
3309
3310
|
return A(
|
3310
3311
|
xs,
|
3311
3312
|
{ propsInfo: e, propsValue: t },
|
@@ -3508,7 +3509,7 @@ function Ys(e) {
|
|
3508
3509
|
key: R
|
3509
3510
|
});
|
3510
3511
|
});
|
3511
|
-
return g.removeUnusedKeys(), l && Object.keys(l).length > 0 ? A(
|
3512
|
+
return g.removeUnusedKeys(), l && Object.keys(l).length > 0 ? A(Yt, l, {
|
3512
3513
|
default: () => y
|
3513
3514
|
}) : y;
|
3514
3515
|
};
|
@@ -3622,7 +3623,7 @@ function ii(e) {
|
|
3622
3623
|
return A(Re, { scope: t }, () => r);
|
3623
3624
|
};
|
3624
3625
|
}
|
3625
|
-
const
|
3626
|
+
const qt = F(ii, {
|
3626
3627
|
props: ["scope", "items"]
|
3627
3628
|
});
|
3628
3629
|
function ai(e) {
|
@@ -3631,7 +3632,7 @@ function ai(e) {
|
|
3631
3632
|
const s = o.getObjectToValue(t), i = n.map((c) => {
|
3632
3633
|
const { value: l, items: h, scope: a } = c.props;
|
3633
3634
|
if (s === l)
|
3634
|
-
return A(
|
3635
|
+
return A(qt, {
|
3635
3636
|
scope: a,
|
3636
3637
|
items: h,
|
3637
3638
|
key: ["case", l].join("-")
|
@@ -3639,7 +3640,7 @@ function ai(e) {
|
|
3639
3640
|
}).filter((c) => c);
|
3640
3641
|
if (r && !i.length) {
|
3641
3642
|
const { items: c, scope: l } = r.props;
|
3642
|
-
i.push(A(
|
3643
|
+
i.push(A(qt, { scope: l, items: c, key: "default" }));
|
3643
3644
|
}
|
3644
3645
|
return A(De, i);
|
3645
3646
|
};
|
@@ -3650,7 +3651,7 @@ const ci = F(ai, {
|
|
3650
3651
|
function ui(e, { slots: t }) {
|
3651
3652
|
const { name: n = "fade", tag: r } = e;
|
3652
3653
|
return () => A(
|
3653
|
-
|
3654
|
+
Yt,
|
3654
3655
|
{ name: n, tag: r },
|
3655
3656
|
{
|
3656
3657
|
default: t.default
|
@@ -3662,7 +3663,7 @@ const li = F(ui, {
|
|
3662
3663
|
});
|
3663
3664
|
function fi(e) {
|
3664
3665
|
const { content: t, r: n = 0 } = e, r = ne(), o = n === 1 ? () => r.getObjectToValue(t) : () => t;
|
3665
|
-
return () =>
|
3666
|
+
return () => Qt(o());
|
3666
3667
|
}
|
3667
3668
|
const hi = F(fi, {
|
3668
3669
|
props: ["content", "r"]
|