@creopse/vue 0.0.44 → 0.0.45
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/index.cjs +7 -7
- package/dist/index.js +7 -7
- package/dist/index.mjs +65 -65
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as dt, getCurrentInstance as Si, getCurrentScope as dl, hasInjectionContext as vi, watch as fl, shallowRef as fn, watchEffect as hl, toValue as bt, computed as Oe, onMounted as Et, unref as H, defineComponent as Ge, ref as ee, createElementBlock as et, openBlock as _e, Fragment as ml, renderList as pl, createBlock as Vt, resolveDynamicComponent as _l, normalizeStyle as jt, Transition as yl, withCtx as gl, renderSlot as Mn, toRefs as wl, mergeProps as Ts, onUnmounted as Mr, createCommentVNode as Sl, Teleport as vl, createElementVNode as Ze, withDirectives as rr, toDisplayString as Ms, vShow as sr, onActivated as bi, normalizeClass as Oi, reactive as bl, readonly as Ol } from "vue";
|
|
2
2
|
import { usePage as Di } from "@inertiajs/vue3";
|
|
3
3
|
const Rr = Symbol("Props"), ki = Symbol("Config"), xr = Symbol("Router"), Ei = Symbol("ResolveSections"), ie = [];
|
|
4
4
|
for (let e = 0; e < 256; ++e)
|
|
@@ -24,7 +24,7 @@ function Ml(e, t, n) {
|
|
|
24
24
|
throw new Error("Random bytes length must be >= 16");
|
|
25
25
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Dl(r);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function at(e, t, n) {
|
|
28
28
|
return Rs.randomUUID && !e ? Rs.randomUUID() : Ml(e);
|
|
29
29
|
}
|
|
30
30
|
var xs;
|
|
@@ -101,7 +101,7 @@ function Il(e) {
|
|
|
101
101
|
function ke(e) {
|
|
102
102
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function ut(e) {
|
|
105
105
|
return e != null && Object.prototype.toString.call(e) === "[object Object]";
|
|
106
106
|
}
|
|
107
107
|
function U(e, t) {
|
|
@@ -246,9 +246,9 @@ function Cl(e) {
|
|
|
246
246
|
function gr(e, t) {
|
|
247
247
|
var n = Xe({}, e), r;
|
|
248
248
|
for (r in t)
|
|
249
|
-
U(t, r) && (
|
|
249
|
+
U(t, r) && (ut(e[r]) && ut(t[r]) ? (n[r] = {}, Xe(n[r], e[r]), Xe(n[r], t[r])) : t[r] != null ? n[r] = t[r] : delete n[r]);
|
|
250
250
|
for (r in e)
|
|
251
|
-
U(e, r) && !U(t, r) &&
|
|
251
|
+
U(e, r) && !U(t, r) && ut(e[r]) && (n[r] = Xe({}, n[r]));
|
|
252
252
|
return n;
|
|
253
253
|
}
|
|
254
254
|
function Cr(e) {
|
|
@@ -502,7 +502,7 @@ function tu(e, t, n) {
|
|
|
502
502
|
function Pn(e) {
|
|
503
503
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
504
504
|
}
|
|
505
|
-
var le = 0, We = 1, Ie = 2, ne = 3, De = 4, je = 5,
|
|
505
|
+
var le = 0, We = 1, Ie = 2, ne = 3, De = 4, je = 5, ot = 6, nu = 7, ru = 8;
|
|
506
506
|
R("Y", 0, 0, function() {
|
|
507
507
|
var e = this.year();
|
|
508
508
|
return e <= 9999 ? Ne(e, 4) : "+" + e;
|
|
@@ -1113,7 +1113,7 @@ function Xu() {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
function Gr(e) {
|
|
1115
1115
|
var t, n = e._a;
|
|
1116
|
-
return n && I(e).overflow === -2 && (t = n[We] < 0 || n[We] > 11 ? We : n[Ie] < 1 || n[Ie] > Wr(n[le], n[We]) ? Ie : n[ne] < 0 || n[ne] > 24 || n[ne] === 24 && (n[De] !== 0 || n[je] !== 0 || n[
|
|
1116
|
+
return n && I(e).overflow === -2 && (t = n[We] < 0 || n[We] > 11 ? We : n[Ie] < 1 || n[Ie] > Wr(n[le], n[We]) ? Ie : n[ne] < 0 || n[ne] > 24 || n[ne] === 24 && (n[De] !== 0 || n[je] !== 0 || n[ot] !== 0) ? ne : n[De] < 0 || n[De] > 59 ? De : n[je] < 0 || n[je] > 59 ? je : n[ot] < 0 || n[ot] > 999 ? ot : -1, I(e)._overflowDayOfYear && (t < le || t > Ie) && (t = Ie), I(e)._overflowWeeks && t === -1 && (t = nu), I(e)._overflowWeekday && t === -1 && (t = ru), I(e).overflow = t), e;
|
|
1117
1117
|
}
|
|
1118
1118
|
var Qu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ec = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, tc = /Z|[+-]\d\d(?::?\d\d)?/, un = [
|
|
1119
1119
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -1282,7 +1282,7 @@ function Vr(e) {
|
|
|
1282
1282
|
e._a[t] = r[t] = s[t];
|
|
1283
1283
|
for (; t < 7; t++)
|
|
1284
1284
|
e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1285
|
-
e._a[ne] === 24 && e._a[De] === 0 && e._a[je] === 0 && e._a[
|
|
1285
|
+
e._a[ne] === 24 && e._a[De] === 0 && e._a[je] === 0 && e._a[ot] === 0 && (e._nextDay = !0, e._a[ne] = 0), e._d = (e._useUTC ? $t : gu).apply(
|
|
1286
1286
|
null,
|
|
1287
1287
|
r
|
|
1288
1288
|
), i = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[ne] = 24), e._w && typeof e._w.d < "u" && e._w.d !== i && (I(e).weekdayMismatch = !0);
|
|
@@ -1358,11 +1358,11 @@ function yc(e) {
|
|
|
1358
1358
|
var t = e._i;
|
|
1359
1359
|
fe(t) ? e._d = new Date(D.now()) : zt(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? cc(e) : ke(t) ? (e._a = Mi(t.slice(0), function(n) {
|
|
1360
1360
|
return parseInt(n, 10);
|
|
1361
|
-
}), Vr(e)) :
|
|
1361
|
+
}), Vr(e)) : ut(t) ? pc(e) : Be(t) ? e._d = new Date(t) : D.createFromInputFallback(e);
|
|
1362
1362
|
}
|
|
1363
1363
|
function Zi(e, t, n, r, s) {
|
|
1364
1364
|
var i = {};
|
|
1365
|
-
return (t === !0 || t === !1) && (r = t, t = void 0), (n === !0 || n === !1) && (r = n, n = void 0), (
|
|
1365
|
+
return (t === !0 || t === !1) && (r = t, t = void 0), (n === !0 || n === !1) && (r = n, n = void 0), (ut(e) && Ar(e) || ke(e) && e.length === 0) && (e = void 0), i._isAMomentObject = !0, i._useUTC = i._isUTC = s, i._l = n, i._i = e, i._f = t, i._strict = r, _c(i);
|
|
1366
1366
|
}
|
|
1367
1367
|
function G(e, t, n, r) {
|
|
1368
1368
|
return Zi(e, t, n, r, !1);
|
|
@@ -1543,7 +1543,7 @@ function Te(e, t) {
|
|
|
1543
1543
|
h: C(r[ne]) * s,
|
|
1544
1544
|
m: C(r[De]) * s,
|
|
1545
1545
|
s: C(r[je]) * s,
|
|
1546
|
-
ms: C(vr(r[
|
|
1546
|
+
ms: C(vr(r[ot] * 1e3)) * s
|
|
1547
1547
|
// the millisecond decimal point is included in the match
|
|
1548
1548
|
}) : (r = Fc.exec(e)) ? (s = r[1] === "-" ? -1 : 1, n = {
|
|
1549
1549
|
y: it(r[2], s),
|
|
@@ -1593,7 +1593,7 @@ function $c(e) {
|
|
|
1593
1593
|
return Ee(e) || zt(e) || ra(e) || Be(e) || Gc(e) || Bc(e) || e === null || e === void 0;
|
|
1594
1594
|
}
|
|
1595
1595
|
function Bc(e) {
|
|
1596
|
-
var t =
|
|
1596
|
+
var t = ut(e) && !Ar(e), n = !1, r = [
|
|
1597
1597
|
"years",
|
|
1598
1598
|
"year",
|
|
1599
1599
|
"y",
|
|
@@ -1630,7 +1630,7 @@ function Gc(e) {
|
|
|
1630
1630
|
}).length === 0), t && n;
|
|
1631
1631
|
}
|
|
1632
1632
|
function Vc(e) {
|
|
1633
|
-
var t =
|
|
1633
|
+
var t = ut(e) && !Ar(e), n = !1, r = [
|
|
1634
1634
|
"sameDay",
|
|
1635
1635
|
"nextDay",
|
|
1636
1636
|
"lastDay",
|
|
@@ -2224,7 +2224,7 @@ var Qe, fa;
|
|
|
2224
2224
|
for (Qe = "SSSS"; Qe.length <= 9; Qe += "S")
|
|
2225
2225
|
k(Qe, Mt);
|
|
2226
2226
|
function zd(e, t) {
|
|
2227
|
-
t[
|
|
2227
|
+
t[ot] = C(("0." + e) * 1e3);
|
|
2228
2228
|
}
|
|
2229
2229
|
for (Qe = "S"; Qe.length <= 9; Qe += "S")
|
|
2230
2230
|
$(Qe, zd);
|
|
@@ -2520,12 +2520,12 @@ function gf() {
|
|
|
2520
2520
|
function wf(e) {
|
|
2521
2521
|
return e = ve(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
2522
2522
|
}
|
|
2523
|
-
function
|
|
2523
|
+
function ht(e) {
|
|
2524
2524
|
return function() {
|
|
2525
2525
|
return this.isValid() ? this._data[e] : NaN;
|
|
2526
2526
|
};
|
|
2527
2527
|
}
|
|
2528
|
-
var Sf =
|
|
2528
|
+
var Sf = ht("milliseconds"), vf = ht("seconds"), bf = ht("minutes"), Of = ht("hours"), Df = ht("days"), kf = ht("months"), Ef = ht("years");
|
|
2529
2529
|
function Tf() {
|
|
2530
2530
|
return we(this.days() / 7);
|
|
2531
2531
|
}
|
|
@@ -2565,14 +2565,14 @@ function If(e, t) {
|
|
|
2565
2565
|
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (r = Object.assign({}, St, t), t.s != null && t.ss == null && (r.ss = t.s - 1)), s = this.localeData(), i = Rf(this, !n, r, s), n && (i = s.pastFuture(+this, i)), s.postformat(i);
|
|
2566
2566
|
}
|
|
2567
2567
|
var cr = Math.abs;
|
|
2568
|
-
function
|
|
2568
|
+
function gt(e) {
|
|
2569
2569
|
return (e > 0) - (e < 0) || +e;
|
|
2570
2570
|
}
|
|
2571
2571
|
function Fn() {
|
|
2572
2572
|
if (!this.isValid())
|
|
2573
2573
|
return this.localeData().invalidDate();
|
|
2574
2574
|
var e = cr(this._milliseconds) / 1e3, t = cr(this._days), n = cr(this._months), r, s, i, a, l = this.asSeconds(), d, u, c, _;
|
|
2575
|
-
return l ? (r = we(e / 60), s = we(r / 60), e %= 60, r %= 60, i = we(n / 12), n %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", d = l < 0 ? "-" : "", u =
|
|
2575
|
+
return l ? (r = we(e / 60), s = we(r / 60), e %= 60, r %= 60, i = we(n / 12), n %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", d = l < 0 ? "-" : "", u = gt(this._months) !== gt(l) ? "-" : "", c = gt(this._days) !== gt(l) ? "-" : "", _ = gt(this._milliseconds) !== gt(l) ? "-" : "", d + "P" + (i ? u + i + "Y" : "") + (n ? u + n + "M" : "") + (t ? c + t + "D" : "") + (s || r || e ? "T" : "") + (s ? _ + s + "H" : "") + (r ? _ + r + "M" : "") + (e ? _ + a + "S" : "")) : "P0D";
|
|
2576
2576
|
}
|
|
2577
2577
|
var Y = Yn.prototype;
|
|
2578
2578
|
Y.isValid = Dc;
|
|
@@ -2905,7 +2905,7 @@ function Lf() {
|
|
|
2905
2905
|
return o ? "Symbol(src)_1." + o : "";
|
|
2906
2906
|
}(), us = eo.toString, Ke = tn.hasOwnProperty, nn = tn.toString, to = RegExp(
|
|
2907
2907
|
"^" + us.call(Ke).replace(X, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2908
|
-
), cs = Gn ? J.Buffer : void 0, ds = J.Symbol, fs = J.Uint8Array, no = Vn(Object.getPrototypeOf, Object), ro = Object.create, so = tn.propertyIsEnumerable, io = Qa.splice, hs = Object.getOwnPropertySymbols, ao = cs ? cs.isBuffer : void 0, oo = Vn(Object.keys, Object), qn =
|
|
2908
|
+
), cs = Gn ? J.Buffer : void 0, ds = J.Symbol, fs = J.Uint8Array, no = Vn(Object.getPrototypeOf, Object), ro = Object.create, so = tn.propertyIsEnumerable, io = Qa.splice, hs = Object.getOwnPropertySymbols, ao = cs ? cs.isBuffer : void 0, oo = Vn(Object.keys, Object), qn = _t(J, "DataView"), Nt = _t(J, "Map"), Jn = _t(J, "Promise"), Kn = _t(J, "Set"), Zn = _t(J, "WeakMap"), Ct = _t(Object, "create"), lo = st(qn), uo = st(Nt), co = st(Jn), fo = st(Kn), ho = st(Zn), ms = ds ? ds.prototype : void 0, ps = ms ? ms.valueOf : void 0;
|
|
2909
2909
|
function nt(o) {
|
|
2910
2910
|
var f = -1, p = o ? o.length : 0;
|
|
2911
2911
|
for (this.clear(); ++f < p; ) {
|
|
@@ -2965,7 +2965,7 @@ function Lf() {
|
|
|
2965
2965
|
return M < 0 ? p.push([o, f]) : p[M][1] = f, this;
|
|
2966
2966
|
}
|
|
2967
2967
|
Le.prototype.clear = wo, Le.prototype.delete = So, Le.prototype.get = vo, Le.prototype.has = bo, Le.prototype.set = Oo;
|
|
2968
|
-
function
|
|
2968
|
+
function mt(o) {
|
|
2969
2969
|
var f = -1, p = o ? o.length : 0;
|
|
2970
2970
|
for (this.clear(); ++f < p; ) {
|
|
2971
2971
|
var M = o[f];
|
|
@@ -2991,8 +2991,8 @@ function Lf() {
|
|
|
2991
2991
|
function Mo(o, f) {
|
|
2992
2992
|
return sn(this, o).set(o, f), this;
|
|
2993
2993
|
}
|
|
2994
|
-
|
|
2995
|
-
function
|
|
2994
|
+
mt.prototype.clear = Do, mt.prototype.delete = ko, mt.prototype.get = Eo, mt.prototype.has = To, mt.prototype.set = Mo;
|
|
2995
|
+
function pt(o) {
|
|
2996
2996
|
this.__data__ = new Le(o);
|
|
2997
2997
|
}
|
|
2998
2998
|
function Ro() {
|
|
@@ -3013,11 +3013,11 @@ function Lf() {
|
|
|
3013
3013
|
var M = p.__data__;
|
|
3014
3014
|
if (!Nt || M.length < n - 1)
|
|
3015
3015
|
return M.push([o, f]), this;
|
|
3016
|
-
p = this.__data__ = new
|
|
3016
|
+
p = this.__data__ = new mt(M);
|
|
3017
3017
|
}
|
|
3018
3018
|
return p.set(o, f), this;
|
|
3019
3019
|
}
|
|
3020
|
-
|
|
3020
|
+
pt.prototype.clear = Ro, pt.prototype.delete = xo, pt.prototype.get = Ao, pt.prototype.has = Io, pt.prototype.set = No;
|
|
3021
3021
|
function Co(o, f) {
|
|
3022
3022
|
var p = er(o) || sl(o) ? Za(o.length, String) : [], M = p.length, se = !!M;
|
|
3023
3023
|
for (var ce in o)
|
|
@@ -3048,21 +3048,21 @@ function Lf() {
|
|
|
3048
3048
|
if (de = Zo(o), !f)
|
|
3049
3049
|
return qo(o, de);
|
|
3050
3050
|
} else {
|
|
3051
|
-
var
|
|
3051
|
+
var yt = rt(o), Ds = yt == c || yt == _;
|
|
3052
3052
|
if (al(o))
|
|
3053
3053
|
return jo(o, f);
|
|
3054
|
-
if (
|
|
3054
|
+
if (yt == m || yt == i || Ds && !ce) {
|
|
3055
3055
|
if (is(o))
|
|
3056
3056
|
return ce ? o : {};
|
|
3057
3057
|
if (de = Xo(Ds ? {} : o), !f)
|
|
3058
3058
|
return Jo(o, Po(de, o));
|
|
3059
3059
|
} else {
|
|
3060
|
-
if (!v[
|
|
3060
|
+
if (!v[yt])
|
|
3061
3061
|
return ce ? o : {};
|
|
3062
|
-
de = Qo(o,
|
|
3062
|
+
de = Qo(o, yt, Xn, f);
|
|
3063
3063
|
}
|
|
3064
3064
|
}
|
|
3065
|
-
Ye || (Ye = new
|
|
3065
|
+
Ye || (Ye = new pt());
|
|
3066
3066
|
var ks = Ye.get(o);
|
|
3067
3067
|
if (ks)
|
|
3068
3068
|
return ks;
|
|
@@ -3153,7 +3153,7 @@ function Lf() {
|
|
|
3153
3153
|
var p = o.__data__;
|
|
3154
3154
|
return tl(f) ? p[typeof f == "string" ? "string" : "hash"] : p.map;
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function _t(o, f) {
|
|
3157
3157
|
var p = Xa(o, f);
|
|
3158
3158
|
return Fo(p) ? p : void 0;
|
|
3159
3159
|
}
|
|
@@ -3287,7 +3287,7 @@ function Lf() {
|
|
|
3287
3287
|
}
|
|
3288
3288
|
var Yf = Lf();
|
|
3289
3289
|
const vt = /* @__PURE__ */ Pf(Yf), ga = () => {
|
|
3290
|
-
const e =
|
|
3290
|
+
const e = dt(ki);
|
|
3291
3291
|
if (!e) throw new Error("[@creopse/vue] Plugin not installed");
|
|
3292
3292
|
const t = Rl(e.appUrl || Al());
|
|
3293
3293
|
return {
|
|
@@ -3361,7 +3361,7 @@ function Oa(e, t) {
|
|
|
3361
3361
|
return s;
|
|
3362
3362
|
return null;
|
|
3363
3363
|
}
|
|
3364
|
-
const
|
|
3364
|
+
const lt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Da = (e) => !Tt(e) && e !== lt;
|
|
3365
3365
|
function Dr() {
|
|
3366
3366
|
const { caseless: e, skipUndefined: t } = Da(this) && this || {}, n = {}, r = (s, i) => {
|
|
3367
3367
|
const a = e && Oa(n, i) || i;
|
|
@@ -3470,14 +3470,14 @@ const gh = (e) => {
|
|
|
3470
3470
|
return r;
|
|
3471
3471
|
};
|
|
3472
3472
|
return n(e, 0);
|
|
3473
|
-
}, wh = Me("AsyncFunction"), Sh = (e) => e && (Xt(e) || he(e)) && he(e.then) && he(e.catch), Ea = ((e, t) => e ? setImmediate : t ? ((n, r) => (
|
|
3474
|
-
s ===
|
|
3473
|
+
}, wh = Me("AsyncFunction"), Sh = (e) => e && (Xt(e) || he(e)) && he(e.then) && he(e.catch), Ea = ((e, t) => e ? setImmediate : t ? ((n, r) => (lt.addEventListener("message", ({ source: s, data: i }) => {
|
|
3474
|
+
s === lt && i === n && r.length && r.shift()();
|
|
3475
3475
|
}, !1), (s) => {
|
|
3476
|
-
r.push(s),
|
|
3476
|
+
r.push(s), lt.postMessage(n, "*");
|
|
3477
3477
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
3478
3478
|
typeof setImmediate == "function",
|
|
3479
|
-
he(
|
|
3480
|
-
), vh = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
3479
|
+
he(lt.postMessage)
|
|
3480
|
+
), vh = typeof queueMicrotask < "u" ? queueMicrotask.bind(lt) : typeof process < "u" && process.nextTick || Ea, bh = (e) => e != null && he(e[Wn]), h = {
|
|
3481
3481
|
isArray: At,
|
|
3482
3482
|
isArrayBuffer: va,
|
|
3483
3483
|
isBuffer: Zt,
|
|
@@ -3527,7 +3527,7 @@ const gh = (e) => {
|
|
|
3527
3527
|
noop: ph,
|
|
3528
3528
|
toFiniteNumber: _h,
|
|
3529
3529
|
findKey: Oa,
|
|
3530
|
-
global:
|
|
3530
|
+
global: lt,
|
|
3531
3531
|
isContextDefined: Da,
|
|
3532
3532
|
isSpecCompliantForm: yh,
|
|
3533
3533
|
toJSONObject: gh,
|
|
@@ -4237,7 +4237,7 @@ function La(e, t, n) {
|
|
|
4237
4237
|
return e && (r || n == !1) ? Zh(e, t) : t;
|
|
4238
4238
|
}
|
|
4239
4239
|
const ui = (e) => e instanceof me ? { ...e } : e;
|
|
4240
|
-
function
|
|
4240
|
+
function ft(e, t) {
|
|
4241
4241
|
t = t || {};
|
|
4242
4242
|
const n = {};
|
|
4243
4243
|
function r(u, c, _, E) {
|
|
@@ -4302,7 +4302,7 @@ function dt(e, t) {
|
|
|
4302
4302
|
}), n;
|
|
4303
4303
|
}
|
|
4304
4304
|
const Ya = (e) => {
|
|
4305
|
-
const t =
|
|
4305
|
+
const t = ft({}, e);
|
|
4306
4306
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: a, auth: l } = t;
|
|
4307
4307
|
if (t.headers = a = me.from(a), t.url = Aa(La(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), l && a.set(
|
|
4308
4308
|
"Authorization",
|
|
@@ -4745,7 +4745,7 @@ const gn = {
|
|
|
4745
4745
|
assertOptions: um,
|
|
4746
4746
|
validators: Bn
|
|
4747
4747
|
}, Ae = gn.validators;
|
|
4748
|
-
let
|
|
4748
|
+
let ct = class {
|
|
4749
4749
|
constructor(t) {
|
|
4750
4750
|
this.defaults = t || {}, this.interceptors = {
|
|
4751
4751
|
request: new ii(),
|
|
@@ -4778,7 +4778,7 @@ let ut = class {
|
|
|
4778
4778
|
}
|
|
4779
4779
|
}
|
|
4780
4780
|
_request(t, n) {
|
|
4781
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
4781
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ft(this.defaults, n);
|
|
4782
4782
|
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
4783
4783
|
r !== void 0 && gn.assertOptions(r, {
|
|
4784
4784
|
silentJSONParsing: Ae.transitional(Ae.boolean),
|
|
@@ -4840,14 +4840,14 @@ let ut = class {
|
|
|
4840
4840
|
return c;
|
|
4841
4841
|
}
|
|
4842
4842
|
getUri(t) {
|
|
4843
|
-
t =
|
|
4843
|
+
t = ft(this.defaults, t);
|
|
4844
4844
|
const n = La(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
4845
4845
|
return Aa(n, t.params, t.paramsSerializer);
|
|
4846
4846
|
}
|
|
4847
4847
|
};
|
|
4848
4848
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
4849
|
-
|
|
4850
|
-
return this.request(
|
|
4849
|
+
ct.prototype[t] = function(n, r) {
|
|
4850
|
+
return this.request(ft(r || {}, {
|
|
4851
4851
|
method: t,
|
|
4852
4852
|
url: n,
|
|
4853
4853
|
data: (r || {}).data
|
|
@@ -4857,7 +4857,7 @@ h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
4857
4857
|
h.forEach(["post", "put", "patch"], function(t) {
|
|
4858
4858
|
function n(r) {
|
|
4859
4859
|
return function(i, a, l) {
|
|
4860
|
-
return this.request(
|
|
4860
|
+
return this.request(ft(l || {}, {
|
|
4861
4861
|
method: t,
|
|
4862
4862
|
headers: r ? {
|
|
4863
4863
|
"Content-Type": "multipart/form-data"
|
|
@@ -4867,7 +4867,7 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
|
4867
4867
|
}));
|
|
4868
4868
|
};
|
|
4869
4869
|
}
|
|
4870
|
-
|
|
4870
|
+
ct.prototype[t] = n(), ct.prototype[t + "Form"] = n(!0);
|
|
4871
4871
|
});
|
|
4872
4872
|
let cm = class ja {
|
|
4873
4873
|
constructor(t) {
|
|
@@ -5025,13 +5025,13 @@ Object.entries(Tr).forEach(([e, t]) => {
|
|
|
5025
5025
|
Tr[t] = e;
|
|
5026
5026
|
});
|
|
5027
5027
|
function Ha(e) {
|
|
5028
|
-
const t = new
|
|
5029
|
-
return h.extend(n,
|
|
5030
|
-
return Ha(
|
|
5028
|
+
const t = new ct(e), n = wa(ct.prototype.request, t);
|
|
5029
|
+
return h.extend(n, ct.prototype, t, { allOwnKeys: !0 }), h.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
5030
|
+
return Ha(ft(e, s));
|
|
5031
5031
|
}, n;
|
|
5032
5032
|
}
|
|
5033
5033
|
const K = Ha(en);
|
|
5034
|
-
K.Axios =
|
|
5034
|
+
K.Axios = ct;
|
|
5035
5035
|
K.CanceledError = It;
|
|
5036
5036
|
K.CancelToken = cm;
|
|
5037
5037
|
K.isCancel = Ca;
|
|
@@ -5044,7 +5044,7 @@ K.all = function(t) {
|
|
|
5044
5044
|
};
|
|
5045
5045
|
K.spread = dm;
|
|
5046
5046
|
K.isAxiosError = fm;
|
|
5047
|
-
K.mergeConfig =
|
|
5047
|
+
K.mergeConfig = ft;
|
|
5048
5048
|
K.AxiosHeaders = me;
|
|
5049
5049
|
K.formToJSON = (e) => Na(h.isHTMLForm(e) ? new FormData(e) : e);
|
|
5050
5050
|
K.getAdapter = Fa.getAdapter;
|
|
@@ -5120,7 +5120,7 @@ const {
|
|
|
5120
5120
|
var t;
|
|
5121
5121
|
const n = e[0], r = (t = Si()) === null || t === void 0 ? void 0 : t.proxy, s = r ?? dl();
|
|
5122
5122
|
if (s == null && !vi()) throw new Error("injectLocal must be called in setup");
|
|
5123
|
-
return s && pr.has(s) && n in pr.get(s) ? pr.get(s)[n] :
|
|
5123
|
+
return s && pr.has(s) && n in pr.get(s) ? pr.get(s)[n] : dt(...e);
|
|
5124
5124
|
}, mm = typeof window < "u" && typeof document < "u";
|
|
5125
5125
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5126
5126
|
const pm = Object.prototype.toString, _m = (e) => pm.call(e) === "[object Object]";
|
|
@@ -5198,12 +5198,12 @@ function Ut(e, t = {}) {
|
|
|
5198
5198
|
}), wm(a, "change", d, { passive: !0 }), Oe(() => l.value);
|
|
5199
5199
|
}
|
|
5200
5200
|
const Tn = () => {
|
|
5201
|
-
const e =
|
|
5201
|
+
const e = dt(Rr);
|
|
5202
5202
|
return e ? e.getState().props : (console.warn(
|
|
5203
5203
|
"[@creopse/vue] Using native Inertia props - live preview disabled"
|
|
5204
5204
|
), usePage().props);
|
|
5205
5205
|
}, Ba = () => {
|
|
5206
|
-
const e = Tn(), t = Di(), n =
|
|
5206
|
+
const e = Tn(), t = Di(), n = dt(xr), { request: r } = rs(), { apiBaseUrl: s, langKey: i } = ga(), a = Oe(() => t.url), l = (T) => ar(T) ? T : `${s}/${xl(T)}`, d = (T) => T ? ar(T) ? T : `${s}/storage/${T}` : "", u = async (T, W = "original") => {
|
|
5207
5207
|
const L = ["small", "medium", "large"], re = T.split("/").pop();
|
|
5208
5208
|
let X = !1;
|
|
5209
5209
|
for (let ae = 0; ae < L.length; ae++)
|
|
@@ -5551,7 +5551,7 @@ const Tn = () => {
|
|
|
5551
5551
|
setup(e) {
|
|
5552
5552
|
const { page: t } = Dm(), n = ee(wi());
|
|
5553
5553
|
var r = n.value.getFinalPageSections(Tn()), s = n.value.getComponents(
|
|
5554
|
-
|
|
5554
|
+
dt(Ei)
|
|
5555
5555
|
);
|
|
5556
5556
|
Et(() => {
|
|
5557
5557
|
setTimeout(() => {
|
|
@@ -5561,13 +5561,13 @@ const Tn = () => {
|
|
|
5561
5561
|
) && Cs(`${_.slug}__${_.pivot?.linkId}-container`);
|
|
5562
5562
|
}, 1e3);
|
|
5563
5563
|
});
|
|
5564
|
-
const i = ee(
|
|
5564
|
+
const i = ee(at()), a = ee({}), l = () => {
|
|
5565
5565
|
r.forEach((_) => {
|
|
5566
|
-
a.value[`${_.slug}__${_.pivot?.linkId}-key`] =
|
|
5566
|
+
a.value[`${_.slug}__${_.pivot?.linkId}-key`] = at();
|
|
5567
5567
|
});
|
|
5568
5568
|
};
|
|
5569
5569
|
l();
|
|
5570
|
-
const d = ee({}), u = vt(Tn()), c =
|
|
5570
|
+
const d = ee({}), u = vt(Tn()), c = dt(Rr);
|
|
5571
5571
|
return Et(() => {
|
|
5572
5572
|
const _ = () => {
|
|
5573
5573
|
Object.keys(d.value).forEach((y) => {
|
|
@@ -5628,7 +5628,7 @@ const Tn = () => {
|
|
|
5628
5628
|
);
|
|
5629
5629
|
if (typeof m != "number")
|
|
5630
5630
|
return;
|
|
5631
|
-
m > -1 && u.pageData?.sections && u.pageData?.sections[m].pivot?.settings && (u.pageData.sections[m].pivot.settings = y.data?.settings, c?.sync(u), a.value[`${y.data?.slug}__${y.data?.linkId}-key`] =
|
|
5631
|
+
m > -1 && u.pageData?.sections && u.pageData?.sections[m].pivot?.settings && (u.pageData.sections[m].pivot.settings = y.data?.settings, c?.sync(u), a.value[`${y.data?.slug}__${y.data?.linkId}-key`] = at());
|
|
5632
5632
|
}
|
|
5633
5633
|
break;
|
|
5634
5634
|
case pe.SEND_BASE_SECTION_DATA:
|
|
@@ -5639,7 +5639,7 @@ const Tn = () => {
|
|
|
5639
5639
|
);
|
|
5640
5640
|
if (typeof m != "number")
|
|
5641
5641
|
return;
|
|
5642
|
-
m > -1 && u.pageData?.sections && u.pageData?.sections[m].pivot?.data && (u.pageData.sections[m].pivot.data = y.data?.data, c?.sync(u), a.value[`${y.data?.slug}__${y.data?.linkId}-key`] =
|
|
5642
|
+
m > -1 && u.pageData?.sections && u.pageData?.sections[m].pivot?.data && (u.pageData.sections[m].pivot.data = y.data?.data, c?.sync(u), a.value[`${y.data?.slug}__${y.data?.linkId}-key`] = at());
|
|
5643
5643
|
}
|
|
5644
5644
|
break;
|
|
5645
5645
|
case pe.SEND_PAGE_SECTIONS:
|
|
@@ -5656,7 +5656,7 @@ const Tn = () => {
|
|
|
5656
5656
|
typeof w == "number" && w > -1 && u.pageData?.sections?.[w].pivot && (u.pageData.sections[w].pivot.data = S.pivot?.data, u.pageData.sections[w].pivot.settings = S.pivot?.settings);
|
|
5657
5657
|
}), c?.sync(u), n.value = wi(), r = n.value.getFinalPageSections(
|
|
5658
5658
|
c?.getState().props
|
|
5659
|
-
), l(), i.value =
|
|
5659
|
+
), l(), i.value = at();
|
|
5660
5660
|
}
|
|
5661
5661
|
break;
|
|
5662
5662
|
}
|
|
@@ -5702,9 +5702,9 @@ const Tn = () => {
|
|
|
5702
5702
|
}, Tm = /* @__PURE__ */ Ga(Em, [["__scopeId", "data-v-94332ece"]]), Mm = /* @__PURE__ */ Ge({
|
|
5703
5703
|
__name: "index",
|
|
5704
5704
|
setup(e) {
|
|
5705
|
-
const t =
|
|
5706
|
-
return t?.on("
|
|
5707
|
-
n.value =
|
|
5705
|
+
const t = dt(xr), n = ee(at());
|
|
5706
|
+
return t?.on("navigate", (r) => {
|
|
5707
|
+
n.value = at();
|
|
5708
5708
|
}), (r, s) => (_e(), Vt(Tm, { key: H(n) }));
|
|
5709
5709
|
}
|
|
5710
5710
|
}), Rm = ["src", "alt", "title", "width", "height", "loading"], Va = /* @__PURE__ */ Ge({
|