@roudanio/awesome-comment 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/awesome-comment.iife.js +3 -3
- package/dist/awesome-comment.js +262 -258
- package/dist/awesome-comment.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +9 -9
package/dist/awesome-comment.js
CHANGED
|
@@ -4,7 +4,7 @@ function ao(e, t) {
|
|
|
4
4
|
n[o[s]] = !0;
|
|
5
5
|
return t ? (s) => !!n[s.toLowerCase()] : (s) => !!n[s];
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const G = {}, bt = [], Ie = () => {
|
|
8
8
|
}, Di = () => !1, Wi = /^on[^a-z]/, hn = (e) => Wi.test(e), lo = (e) => e.startsWith("onUpdate:"), ce = Object.assign, uo = (e, t) => {
|
|
9
9
|
const n = e.indexOf(t);
|
|
10
10
|
n > -1 && e.splice(n, 1);
|
|
@@ -143,7 +143,7 @@ function Fs(e) {
|
|
|
143
143
|
function er(e, t = ge) {
|
|
144
144
|
t && t.active && t.effects.push(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function $s() {
|
|
147
147
|
return ge;
|
|
148
148
|
}
|
|
149
149
|
function tr(e) {
|
|
@@ -152,7 +152,7 @@ function tr(e) {
|
|
|
152
152
|
const po = (e) => {
|
|
153
153
|
const t = new Set(e);
|
|
154
154
|
return t.w = 0, t.n = 0, t;
|
|
155
|
-
},
|
|
155
|
+
}, Ks = (e) => (e.w & Be) > 0, zs = (e) => (e.n & Be) > 0, nr = ({ deps: e }) => {
|
|
156
156
|
if (e.length)
|
|
157
157
|
for (let t = 0; t < e.length; t++)
|
|
158
158
|
e[t].w |= Be;
|
|
@@ -162,7 +162,7 @@ const po = (e) => {
|
|
|
162
162
|
let n = 0;
|
|
163
163
|
for (let o = 0; o < t.length; o++) {
|
|
164
164
|
const s = t[o];
|
|
165
|
-
|
|
165
|
+
Ks(s) && !zs(s) ? s.delete(e) : t[n++] = s, s.w &= ~Be, s.n &= ~Be;
|
|
166
166
|
}
|
|
167
167
|
t.length = n;
|
|
168
168
|
}
|
|
@@ -221,9 +221,9 @@ function he(e, t, n) {
|
|
|
221
221
|
}
|
|
222
222
|
function Ds(e, t) {
|
|
223
223
|
let n = !1;
|
|
224
|
-
Et <= Xn ? zs(e) || (e.n |= Be, n =
|
|
224
|
+
Et <= Xn ? zs(e) || (e.n |= Be, n = !Ks(e)) : n = !e.has(ke), n && (e.add(ke), ke.deps.push(e));
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Ke(e, t, n, o, s, i) {
|
|
227
227
|
const r = an.get(e);
|
|
228
228
|
if (!r)
|
|
229
229
|
return;
|
|
@@ -325,14 +325,14 @@ function Hs(e = !1) {
|
|
|
325
325
|
if (!e && (!ln(s) && !wt(s) && (r = U(r), s = U(s)), !N(n) && ne(r) && !ne(s)))
|
|
326
326
|
return r.value = s, !0;
|
|
327
327
|
const c = N(n) && ho(o) ? Number(o) < n.length : z(n, o), a = Reflect.set(n, o, s, i);
|
|
328
|
-
return n === U(i) && (c ? Ft(s, r) &&
|
|
328
|
+
return n === U(i) && (c ? Ft(s, r) && Ke(n, "set", o, s) : Ke(n, "add", o, s)), a;
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
function hr(e, t) {
|
|
332
332
|
const n = z(e, t);
|
|
333
333
|
e[t];
|
|
334
334
|
const o = Reflect.deleteProperty(e, t);
|
|
335
|
-
return o && n &&
|
|
335
|
+
return o && n && Ke(e, "delete", t, void 0), o;
|
|
336
336
|
}
|
|
337
337
|
function pr(e, t) {
|
|
338
338
|
const n = Reflect.has(e, t);
|
|
@@ -367,7 +367,7 @@ function Xt(e, t, n = !1, o = !1) {
|
|
|
367
367
|
e = e.__v_raw;
|
|
368
368
|
const s = U(e), i = U(t);
|
|
369
369
|
n || (t !== i && he(s, "get", t), he(s, "get", i));
|
|
370
|
-
const { has: r } = yn(s), c = o ? bo : n ? wo :
|
|
370
|
+
const { has: r } = yn(s), c = o ? bo : n ? wo : $t;
|
|
371
371
|
if (r.call(s, t))
|
|
372
372
|
return c(e.get(t));
|
|
373
373
|
if (r.call(s, i))
|
|
@@ -384,7 +384,7 @@ function Jt(e, t = !1) {
|
|
|
384
384
|
function Ho(e) {
|
|
385
385
|
e = U(e);
|
|
386
386
|
const t = U(this);
|
|
387
|
-
return yn(t).has.call(t, e) || (t.add(e),
|
|
387
|
+
return yn(t).has.call(t, e) || (t.add(e), Ke(t, "add", e, e)), this;
|
|
388
388
|
}
|
|
389
389
|
function Zo(e, t) {
|
|
390
390
|
t = U(t);
|
|
@@ -392,28 +392,28 @@ function Zo(e, t) {
|
|
|
392
392
|
let i = o.call(n, e);
|
|
393
393
|
i || (e = U(e), i = o.call(n, e));
|
|
394
394
|
const r = s.call(n, e);
|
|
395
|
-
return n.set(e, t), i ? Ft(t, r) &&
|
|
395
|
+
return n.set(e, t), i ? Ft(t, r) && Ke(n, "set", e, t) : Ke(n, "add", e, t), this;
|
|
396
396
|
}
|
|
397
397
|
function Vo(e) {
|
|
398
398
|
const t = U(this), { has: n, get: o } = yn(t);
|
|
399
399
|
let s = n.call(t, e);
|
|
400
400
|
s || (e = U(e), s = n.call(t, e)), o && o.call(t, e);
|
|
401
401
|
const i = t.delete(e);
|
|
402
|
-
return s &&
|
|
402
|
+
return s && Ke(t, "delete", e, void 0), i;
|
|
403
403
|
}
|
|
404
404
|
function Xo() {
|
|
405
405
|
const e = U(this), t = e.size !== 0, n = e.clear();
|
|
406
|
-
return t &&
|
|
406
|
+
return t && Ke(e, "clear", void 0, void 0), n;
|
|
407
407
|
}
|
|
408
408
|
function Yt(e, t) {
|
|
409
409
|
return function(o, s) {
|
|
410
|
-
const i = this, r = i.__v_raw, c = U(r), a = t ? bo : e ? wo :
|
|
410
|
+
const i = this, r = i.__v_raw, c = U(r), a = t ? bo : e ? wo : $t;
|
|
411
411
|
return !e && he(c, "iterate", it), r.forEach((l, f) => o.call(s, a(l), a(f), i));
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
function qt(e, t, n) {
|
|
415
415
|
return function(...o) {
|
|
416
|
-
const s = this.__v_raw, i = U(s), r = _t(i), c = e === "entries" || e === Symbol.iterator && r, a = e === "keys" && r, l = s[e](...o), f = n ? bo : t ? wo :
|
|
416
|
+
const s = this.__v_raw, i = U(s), r = _t(i), c = e === "entries" || e === Symbol.iterator && r, a = e === "keys" && r, l = s[e](...o), f = n ? bo : t ? wo : $t;
|
|
417
417
|
return !t && he(
|
|
418
418
|
i,
|
|
419
419
|
"iterate",
|
|
@@ -621,7 +621,7 @@ function U(e) {
|
|
|
621
621
|
function vn(e) {
|
|
622
622
|
return cn(e, "__v_skip", !0), e;
|
|
623
623
|
}
|
|
624
|
-
const
|
|
624
|
+
const $t = (e) => ee(e) ? wn(e) : e, wo = (e) => ee(e) ? Js(e) : e;
|
|
625
625
|
function qs(e) {
|
|
626
626
|
Ze && ke && (e = U(e), Ds(e.dep || (e.dep = po())));
|
|
627
627
|
}
|
|
@@ -641,14 +641,14 @@ function Er(e, t) {
|
|
|
641
641
|
}
|
|
642
642
|
class jr {
|
|
643
643
|
constructor(t, n) {
|
|
644
|
-
this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : U(t), this._value = n ? t :
|
|
644
|
+
this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : U(t), this._value = n ? t : $t(t);
|
|
645
645
|
}
|
|
646
646
|
get value() {
|
|
647
647
|
return qs(this), this._value;
|
|
648
648
|
}
|
|
649
649
|
set value(t) {
|
|
650
650
|
const n = this.__v_isShallow || ln(t) || wt(t);
|
|
651
|
-
t = n ? t : U(t), Ft(t, this._rawValue) && (this._rawValue = t, this._value = n ? t :
|
|
651
|
+
t = n ? t : U(t), Ft(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : $t(t), Gs(this));
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
function Y(e) {
|
|
@@ -758,23 +758,23 @@ function kn(e, t, n, o = !0) {
|
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
|
-
|
|
761
|
+
$r(e, n, s, o);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function $r(e, t, n, o = !0) {
|
|
764
764
|
console.error(e);
|
|
765
765
|
}
|
|
766
|
-
let
|
|
766
|
+
let Kt = !1, Yn = !1;
|
|
767
767
|
const le = [];
|
|
768
768
|
let Ne = 0;
|
|
769
769
|
const yt = [];
|
|
770
|
-
let
|
|
770
|
+
let $e = null, tt = 0;
|
|
771
771
|
const ei = /* @__PURE__ */ Promise.resolve();
|
|
772
772
|
let vo = null;
|
|
773
773
|
function ti(e) {
|
|
774
774
|
const t = vo || ei;
|
|
775
775
|
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function Kr(e) {
|
|
778
778
|
let t = Ne + 1, n = le.length;
|
|
779
779
|
for (; t < n; ) {
|
|
780
780
|
const o = t + n >>> 1;
|
|
@@ -785,23 +785,23 @@ function $r(e) {
|
|
|
785
785
|
function ko(e) {
|
|
786
786
|
(!le.length || !le.includes(
|
|
787
787
|
e,
|
|
788
|
-
|
|
789
|
-
)) && (e.id == null ? le.push(e) : le.splice(
|
|
788
|
+
Kt && e.allowRecurse ? Ne + 1 : Ne
|
|
789
|
+
)) && (e.id == null ? le.push(e) : le.splice(Kr(e.id), 0, e), ni());
|
|
790
790
|
}
|
|
791
791
|
function ni() {
|
|
792
|
-
|
|
792
|
+
!Kt && !Yn && (Yn = !0, vo = ei.then(si));
|
|
793
793
|
}
|
|
794
794
|
function zr(e) {
|
|
795
795
|
const t = le.indexOf(e);
|
|
796
796
|
t > Ne && le.splice(t, 1);
|
|
797
797
|
}
|
|
798
798
|
function Ur(e) {
|
|
799
|
-
N(e) ? yt.push(...e) : (
|
|
799
|
+
N(e) ? yt.push(...e) : (!$e || !$e.includes(
|
|
800
800
|
e,
|
|
801
801
|
e.allowRecurse ? tt + 1 : tt
|
|
802
802
|
)) && yt.push(e), ni();
|
|
803
803
|
}
|
|
804
|
-
function Bo(e, t =
|
|
804
|
+
function Bo(e, t = Kt ? Ne + 1 : 0) {
|
|
805
805
|
for (; t < le.length; t++) {
|
|
806
806
|
const n = le[t];
|
|
807
807
|
n && n.pre && (le.splice(t, 1), t--, n());
|
|
@@ -810,13 +810,13 @@ function Bo(e, t = $t ? Ne + 1 : 0) {
|
|
|
810
810
|
function oi(e) {
|
|
811
811
|
if (yt.length) {
|
|
812
812
|
const t = [...new Set(yt)];
|
|
813
|
-
if (yt.length = 0,
|
|
814
|
-
|
|
813
|
+
if (yt.length = 0, $e) {
|
|
814
|
+
$e.push(...t);
|
|
815
815
|
return;
|
|
816
816
|
}
|
|
817
|
-
for (
|
|
818
|
-
|
|
819
|
-
|
|
817
|
+
for ($e = t, $e.sort((n, o) => zt(n) - zt(o)), tt = 0; tt < $e.length; tt++)
|
|
818
|
+
$e[tt]();
|
|
819
|
+
$e = null, tt = 0;
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
const zt = (e) => e.id == null ? 1 / 0 : e.id, Dr = (e, t) => {
|
|
@@ -830,7 +830,7 @@ const zt = (e) => e.id == null ? 1 / 0 : e.id, Dr = (e, t) => {
|
|
|
830
830
|
return n;
|
|
831
831
|
};
|
|
832
832
|
function si(e) {
|
|
833
|
-
Yn = !1,
|
|
833
|
+
Yn = !1, Kt = !0, le.sort(Dr);
|
|
834
834
|
const t = Ie;
|
|
835
835
|
try {
|
|
836
836
|
for (Ne = 0; Ne < le.length; Ne++) {
|
|
@@ -838,17 +838,17 @@ function si(e) {
|
|
|
838
838
|
n && n.active !== !1 && Xe(n, null, 14);
|
|
839
839
|
}
|
|
840
840
|
} finally {
|
|
841
|
-
Ne = 0, le.length = 0, oi(),
|
|
841
|
+
Ne = 0, le.length = 0, oi(), Kt = !1, vo = null, (le.length || yt.length) && si();
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
function Wr(e, t, ...n) {
|
|
845
845
|
if (e.isUnmounted)
|
|
846
846
|
return;
|
|
847
|
-
const o = e.vnode.props ||
|
|
847
|
+
const o = e.vnode.props || G;
|
|
848
848
|
let s = n;
|
|
849
849
|
const i = t.startsWith("update:"), r = i && t.slice(7);
|
|
850
850
|
if (r && r in o) {
|
|
851
|
-
const f = `${r === "modelValue" ? "model" : r}Modifiers`, { number: d, trim: p } = o[f] ||
|
|
851
|
+
const f = `${r === "modelValue" ? "model" : r}Modifiers`, { number: d, trim: p } = o[f] || G;
|
|
852
852
|
p && (s = n.map((g) => ie(g) ? g.trim() : g)), d && (s = n.map(Zn));
|
|
853
853
|
}
|
|
854
854
|
let c, a = o[c = Ln(t)] || // also try camelCase event handler (#2249)
|
|
@@ -891,12 +891,12 @@ function ii(e, t, n = !1) {
|
|
|
891
891
|
function xn(e, t) {
|
|
892
892
|
return !e || !hn(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), z(e, t[0].toLowerCase() + t.slice(1)) || z(e, at(t)) || z(e, t));
|
|
893
893
|
}
|
|
894
|
-
let
|
|
894
|
+
let _e = null, ri = null;
|
|
895
895
|
function un(e) {
|
|
896
|
-
const t =
|
|
897
|
-
return
|
|
896
|
+
const t = _e;
|
|
897
|
+
return _e = e, ri = e && e.type.__scopeId || null, t;
|
|
898
898
|
}
|
|
899
|
-
function Hr(e, t =
|
|
899
|
+
function Hr(e, t = _e, n) {
|
|
900
900
|
if (!t || e._n)
|
|
901
901
|
return e;
|
|
902
902
|
const o = (...s) => {
|
|
@@ -1027,9 +1027,9 @@ const Gt = {};
|
|
|
1027
1027
|
function nn(e, t, n) {
|
|
1028
1028
|
return ci(e, t, n);
|
|
1029
1029
|
}
|
|
1030
|
-
function ci(e, t, { immediate: n, deep: o, flush: s, onTrack: i, onTrigger: r } =
|
|
1030
|
+
function ci(e, t, { immediate: n, deep: o, flush: s, onTrack: i, onTrigger: r } = G) {
|
|
1031
1031
|
var c;
|
|
1032
|
-
const a =
|
|
1032
|
+
const a = $s() === ((c = re) == null ? void 0 : c.scope) ? re : null;
|
|
1033
1033
|
let l, f = !1, d = !1;
|
|
1034
1034
|
if (ne(e) ? (l = () => e.value, f = ln(e)) : Ve(e) ? (l = () => e, o = !0) : N(e) ? (d = !0, f = e.some((A) => Ve(A) || ln(A)), l = () => e.map((A) => {
|
|
1035
1035
|
if (ne(A))
|
|
@@ -1130,12 +1130,12 @@ function ot(e, t) {
|
|
|
1130
1130
|
return e;
|
|
1131
1131
|
}
|
|
1132
1132
|
function Gr(e, t) {
|
|
1133
|
-
const n =
|
|
1133
|
+
const n = _e;
|
|
1134
1134
|
if (n === null)
|
|
1135
1135
|
return e;
|
|
1136
1136
|
const o = Pn(n) || n.proxy, s = e.dirs || (e.dirs = []);
|
|
1137
1137
|
for (let i = 0; i < t.length; i++) {
|
|
1138
|
-
let [r, c, a, l =
|
|
1138
|
+
let [r, c, a, l = G] = t[i];
|
|
1139
1139
|
r && (F(r) && (r = {
|
|
1140
1140
|
mounted: r,
|
|
1141
1141
|
updated: r
|
|
@@ -1235,7 +1235,7 @@ function uc(e, t) {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
const fc = Symbol.for("v-ndc");
|
|
1237
1237
|
function dc(e, t, n = !0, o = !1) {
|
|
1238
|
-
const s =
|
|
1238
|
+
const s = _e || re;
|
|
1239
1239
|
if (s) {
|
|
1240
1240
|
const i = s.type;
|
|
1241
1241
|
if (e === hi) {
|
|
@@ -1307,7 +1307,7 @@ const qn = (e) => e ? Ci(e) ? Pn(e) || e.proxy : qn(e.parent) : null, Rt = (
|
|
|
1307
1307
|
$nextTick: (e) => e.n || (e.n = ti.bind(e.proxy)),
|
|
1308
1308
|
$watch: (e) => qr.bind(e)
|
|
1309
1309
|
})
|
|
1310
|
-
), Fn = (e, t) => e !==
|
|
1310
|
+
), Fn = (e, t) => e !== G && !e.__isScriptSetup && z(e, t), hc = {
|
|
1311
1311
|
get({ _: e }, t) {
|
|
1312
1312
|
const { ctx: n, setupState: o, data: s, props: i, accessCache: r, type: c, appContext: a } = e;
|
|
1313
1313
|
let l;
|
|
@@ -1327,7 +1327,7 @@ const qn = (e) => e ? Ci(e) ? Pn(e) || e.proxy : qn(e.parent) : null, Rt = (
|
|
|
1327
1327
|
else {
|
|
1328
1328
|
if (Fn(o, t))
|
|
1329
1329
|
return r[t] = 1, o[t];
|
|
1330
|
-
if (s !==
|
|
1330
|
+
if (s !== G && z(s, t))
|
|
1331
1331
|
return r[t] = 2, s[t];
|
|
1332
1332
|
if (
|
|
1333
1333
|
// only cache other properties when instance has declared (thus stable)
|
|
@@ -1335,7 +1335,7 @@ const qn = (e) => e ? Ci(e) ? Pn(e) || e.proxy : qn(e.parent) : null, Rt = (
|
|
|
1335
1335
|
(l = e.propsOptions[0]) && z(l, t)
|
|
1336
1336
|
)
|
|
1337
1337
|
return r[t] = 3, i[t];
|
|
1338
|
-
if (n !==
|
|
1338
|
+
if (n !== G && z(n, t))
|
|
1339
1339
|
return r[t] = 4, n[t];
|
|
1340
1340
|
Gn && (r[t] = 0);
|
|
1341
1341
|
}
|
|
@@ -1349,7 +1349,7 @@ const qn = (e) => e ? Ci(e) ? Pn(e) || e.proxy : qn(e.parent) : null, Rt = (
|
|
|
1349
1349
|
(d = c.__cssModules) && (d = d[t])
|
|
1350
1350
|
)
|
|
1351
1351
|
return d;
|
|
1352
|
-
if (n !==
|
|
1352
|
+
if (n !== G && z(n, t))
|
|
1353
1353
|
return r[t] = 4, n[t];
|
|
1354
1354
|
if (
|
|
1355
1355
|
// global properties
|
|
@@ -1359,13 +1359,13 @@ const qn = (e) => e ? Ci(e) ? Pn(e) || e.proxy : qn(e.parent) : null, Rt = (
|
|
|
1359
1359
|
},
|
|
1360
1360
|
set({ _: e }, t, n) {
|
|
1361
1361
|
const { data: o, setupState: s, ctx: i } = e;
|
|
1362
|
-
return Fn(s, t) ? (s[t] = n, !0) : o !==
|
|
1362
|
+
return Fn(s, t) ? (s[t] = n, !0) : o !== G && z(o, t) ? (o[t] = n, !0) : z(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (i[t] = n, !0);
|
|
1363
1363
|
},
|
|
1364
1364
|
has({
|
|
1365
1365
|
_: { data: e, setupState: t, accessCache: n, ctx: o, appContext: s, propsOptions: i }
|
|
1366
1366
|
}, r) {
|
|
1367
1367
|
let c;
|
|
1368
|
-
return !!n[r] || e !==
|
|
1368
|
+
return !!n[r] || e !== G && z(e, r) || Fn(t, r) || (c = i[0]) && z(c, r) || z(o, r) || z(Rt, r) || z(s.config.globalProperties, r);
|
|
1369
1369
|
},
|
|
1370
1370
|
defineProperty(e, t, n) {
|
|
1371
1371
|
return n.get != null ? e._.accessCache[t] = 0 : z(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
@@ -1405,7 +1405,7 @@ function pc(e) {
|
|
|
1405
1405
|
renderTracked: fe,
|
|
1406
1406
|
renderTriggered: H,
|
|
1407
1407
|
errorCaptured: L,
|
|
1408
|
-
serverPrefetch:
|
|
1408
|
+
serverPrefetch: K,
|
|
1409
1409
|
// public API
|
|
1410
1410
|
expose: oe,
|
|
1411
1411
|
inheritAttrs: pe,
|
|
@@ -1449,7 +1449,7 @@ function pc(e) {
|
|
|
1449
1449
|
function Z(te, B) {
|
|
1450
1450
|
N(B) ? B.forEach((Je) => te(Je.bind(n))) : B && te(B.bind(n));
|
|
1451
1451
|
}
|
|
1452
|
-
if (Z(nc, d), Z(fi, p), Z(oc, g), Z(sc, b), Z(Qr, w), Z(ec, I), Z(lc, L), Z(ac, fe), Z(cc, H), Z(ic, T), Z(di, A), Z(rc,
|
|
1452
|
+
if (Z(nc, d), Z(fi, p), Z(oc, g), Z(sc, b), Z(Qr, w), Z(ec, I), Z(lc, L), Z(ac, fe), Z(cc, H), Z(ic, T), Z(di, A), Z(rc, K), N(oe))
|
|
1453
1453
|
if (oe.length) {
|
|
1454
1454
|
const te = e.exposed || (e.exposed = {});
|
|
1455
1455
|
oe.forEach((B) => {
|
|
@@ -1687,7 +1687,7 @@ function vc(e, t) {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
function Te(e, t, n = !1) {
|
|
1690
|
-
const o = re ||
|
|
1690
|
+
const o = re || _e;
|
|
1691
1691
|
if (o || Ut) {
|
|
1692
1692
|
const s = o ? o.parent == null ? o.vnode.appContext && o.vnode.appContext.provides : o.parent.provides : Ut._context.provides;
|
|
1693
1693
|
if (s && e in s)
|
|
@@ -1697,7 +1697,7 @@ function Te(e, t, n = !1) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
1699
|
function kc() {
|
|
1700
|
-
return !!(re ||
|
|
1700
|
+
return !!(re || _e || Ut);
|
|
1701
1701
|
}
|
|
1702
1702
|
function xc(e, t, n, o = !1) {
|
|
1703
1703
|
const s = {}, i = {};
|
|
@@ -1767,7 +1767,7 @@ function Ic(e, t, n, o) {
|
|
|
1767
1767
|
for (const d in i)
|
|
1768
1768
|
(!t || !z(t, d)) && (delete i[d], l = !0);
|
|
1769
1769
|
}
|
|
1770
|
-
l &&
|
|
1770
|
+
l && Ke(e, "set", "$attrs");
|
|
1771
1771
|
}
|
|
1772
1772
|
function bi(e, t, n, o) {
|
|
1773
1773
|
const [s, i] = e.propsOptions;
|
|
@@ -1781,7 +1781,7 @@ function bi(e, t, n, o) {
|
|
|
1781
1781
|
s && z(s, f = Me(a)) ? !i || !i.includes(f) ? n[f] = l : (c || (c = {}))[f] = l : xn(e.emitsOptions, a) || (!(a in o) || l !== o[a]) && (o[a] = l, r = !0);
|
|
1782
1782
|
}
|
|
1783
1783
|
if (i) {
|
|
1784
|
-
const a = U(n), l = c ||
|
|
1784
|
+
const a = U(n), l = c || G;
|
|
1785
1785
|
for (let f = 0; f < i.length; f++) {
|
|
1786
1786
|
const d = i[f];
|
|
1787
1787
|
n[d] = eo(
|
|
@@ -1840,7 +1840,7 @@ function _i(e, t, n = !1) {
|
|
|
1840
1840
|
if (N(i))
|
|
1841
1841
|
for (let f = 0; f < i.length; f++) {
|
|
1842
1842
|
const d = Me(i[f]);
|
|
1843
|
-
ts(d) && (r[d] =
|
|
1843
|
+
ts(d) && (r[d] = G);
|
|
1844
1844
|
}
|
|
1845
1845
|
else if (i)
|
|
1846
1846
|
for (const f in i) {
|
|
@@ -1908,7 +1908,7 @@ const yi = (e) => e[0] === "_" || e === "$stable", Io = (e) => N(e) ? e.map(Ae)
|
|
|
1908
1908
|
cn(e.slots, On, 1);
|
|
1909
1909
|
}, Oc = (e, t, n) => {
|
|
1910
1910
|
const { vnode: o, slots: s } = e;
|
|
1911
|
-
let i = !0, r =
|
|
1911
|
+
let i = !0, r = G;
|
|
1912
1912
|
if (o.shapeFlag & 32) {
|
|
1913
1913
|
const c = t._;
|
|
1914
1914
|
c ? n && c === 1 ? i = !1 : (ce(s, t), !n && c === 1 && delete s._) : (i = !t.$stable, wi(t, s)), r = t;
|
|
@@ -1933,7 +1933,7 @@ function to(e, t, n, o, s = !1) {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
if (on(o) && !s)
|
|
1935
1935
|
return;
|
|
1936
|
-
const i = o.shapeFlag & 4 ? Pn(o.component) || o.component.proxy : o.el, r = s ? null : i, { i: c, r: a } = e, l = t && t.r, f = c.refs ===
|
|
1936
|
+
const i = o.shapeFlag & 4 ? Pn(o.component) || o.component.proxy : o.el, r = s ? null : i, { i: c, r: a } = e, l = t && t.r, f = c.refs === G ? c.refs = {} : c.refs, d = c.setupState;
|
|
1937
1937
|
if (l != null && l !== a && (ie(l) ? (f[l] = null, z(d, l) && (d[l] = null)) : ne(l) && (l.value = null)), F(a))
|
|
1938
1938
|
Xe(a, c, 12, [r, f]);
|
|
1939
1939
|
else {
|
|
@@ -1982,10 +1982,10 @@ function Pc(e, t) {
|
|
|
1982
1982
|
case ct:
|
|
1983
1983
|
O(u, h, m, y);
|
|
1984
1984
|
break;
|
|
1985
|
-
case
|
|
1985
|
+
case $n:
|
|
1986
1986
|
u == null && T(h, m, y, S);
|
|
1987
1987
|
break;
|
|
1988
|
-
case
|
|
1988
|
+
case ye:
|
|
1989
1989
|
Se(
|
|
1990
1990
|
u,
|
|
1991
1991
|
h,
|
|
@@ -2079,7 +2079,7 @@ function Pc(e, t) {
|
|
|
2079
2079
|
S,
|
|
2080
2080
|
k,
|
|
2081
2081
|
C
|
|
2082
|
-
) :
|
|
2082
|
+
) : K(
|
|
2083
2083
|
u,
|
|
2084
2084
|
h,
|
|
2085
2085
|
_,
|
|
@@ -2090,7 +2090,7 @@ function Pc(e, t) {
|
|
|
2090
2090
|
);
|
|
2091
2091
|
}, fe = (u, h, m, y, _, x, S, k) => {
|
|
2092
2092
|
let C, v;
|
|
2093
|
-
const { type: E, props: P, shapeFlag: j, transition: M, dirs:
|
|
2093
|
+
const { type: E, props: P, shapeFlag: j, transition: M, dirs: $ } = u;
|
|
2094
2094
|
if (C = u.el = r(
|
|
2095
2095
|
u.type,
|
|
2096
2096
|
x,
|
|
@@ -2105,7 +2105,7 @@ function Pc(e, t) {
|
|
|
2105
2105
|
x && E !== "foreignObject",
|
|
2106
2106
|
S,
|
|
2107
2107
|
k
|
|
2108
|
-
),
|
|
2108
|
+
), $ && qe(u, null, y, "created"), H(C, u, u.scopeId, S, y), P) {
|
|
2109
2109
|
for (const V in P)
|
|
2110
2110
|
V !== "value" && !en(V) && i(
|
|
2111
2111
|
C,
|
|
@@ -2120,10 +2120,10 @@ function Pc(e, t) {
|
|
|
2120
2120
|
);
|
|
2121
2121
|
"value" in P && i(C, "value", null, P.value), (v = P.onVnodeBeforeMount) && je(v, y, u);
|
|
2122
2122
|
}
|
|
2123
|
-
|
|
2123
|
+
$ && qe(u, null, y, "beforeMount");
|
|
2124
2124
|
const J = (!_ || _ && !_.pendingBranch) && M && !M.persisted;
|
|
2125
|
-
J && M.beforeEnter(C), o(C, h, m), ((v = P && P.onVnodeMounted) || J ||
|
|
2126
|
-
v && je(v, y, u), J && M.enter(C),
|
|
2125
|
+
J && M.beforeEnter(C), o(C, h, m), ((v = P && P.onVnodeMounted) || J || $) && de(() => {
|
|
2126
|
+
v && je(v, y, u), J && M.enter(C), $ && qe(u, null, y, "mounted");
|
|
2127
2127
|
}, _);
|
|
2128
2128
|
}, H = (u, h, m, y, _) => {
|
|
2129
2129
|
if (m && g(u, m), y)
|
|
@@ -2157,21 +2157,21 @@ function Pc(e, t) {
|
|
|
2157
2157
|
k
|
|
2158
2158
|
);
|
|
2159
2159
|
}
|
|
2160
|
-
},
|
|
2160
|
+
}, K = (u, h, m, y, _, x, S) => {
|
|
2161
2161
|
const k = h.el = u.el;
|
|
2162
2162
|
let { patchFlag: C, dynamicChildren: v, dirs: E } = h;
|
|
2163
2163
|
C |= u.patchFlag & 16;
|
|
2164
|
-
const P = u.props ||
|
|
2164
|
+
const P = u.props || G, j = h.props || G;
|
|
2165
2165
|
let M;
|
|
2166
2166
|
m && Ge(m, !1), (M = j.onVnodeBeforeUpdate) && je(M, m, h, u), E && qe(h, u, m, "beforeUpdate"), m && Ge(m, !0);
|
|
2167
|
-
const
|
|
2167
|
+
const $ = _ && h.type !== "foreignObject";
|
|
2168
2168
|
if (v ? oe(
|
|
2169
2169
|
u.dynamicChildren,
|
|
2170
2170
|
v,
|
|
2171
2171
|
k,
|
|
2172
2172
|
m,
|
|
2173
2173
|
y,
|
|
2174
|
-
|
|
2174
|
+
$,
|
|
2175
2175
|
x
|
|
2176
2176
|
) : S || B(
|
|
2177
2177
|
u,
|
|
@@ -2180,7 +2180,7 @@ function Pc(e, t) {
|
|
|
2180
2180
|
null,
|
|
2181
2181
|
m,
|
|
2182
2182
|
y,
|
|
2183
|
-
|
|
2183
|
+
$,
|
|
2184
2184
|
x,
|
|
2185
2185
|
!1
|
|
2186
2186
|
), C > 0) {
|
|
@@ -2232,7 +2232,7 @@ function Pc(e, t) {
|
|
|
2232
2232
|
// which will not have a mounted element
|
|
2233
2233
|
C.el && // - In the case of a Fragment, we need to provide the actual parent
|
|
2234
2234
|
// of the Fragment itself so it can move its children.
|
|
2235
|
-
(C.type ===
|
|
2235
|
+
(C.type === ye || // - In the case of different nodes, there is going to be a replacement
|
|
2236
2236
|
// which also requires the correct parent container
|
|
2237
2237
|
!Ot(C, v) || // - In the case of a component, it could contain anything.
|
|
2238
2238
|
C.shapeFlag & 70) ? d(C.el) : (
|
|
@@ -2255,7 +2255,7 @@ function Pc(e, t) {
|
|
|
2255
2255
|
}
|
|
2256
2256
|
}, pe = (u, h, m, y, _, x, S) => {
|
|
2257
2257
|
if (m !== y) {
|
|
2258
|
-
if (m !==
|
|
2258
|
+
if (m !== G)
|
|
2259
2259
|
for (const k in m)
|
|
2260
2260
|
!en(k) && !(k in y) && i(
|
|
2261
2261
|
u,
|
|
@@ -2345,7 +2345,7 @@ function Pc(e, t) {
|
|
|
2345
2345
|
C
|
|
2346
2346
|
) : Ue(u, h, C);
|
|
2347
2347
|
}, Ct = (u, h, m, y, _, x, S) => {
|
|
2348
|
-
const k = u.component =
|
|
2348
|
+
const k = u.component = Kc(
|
|
2349
2349
|
u,
|
|
2350
2350
|
y,
|
|
2351
2351
|
_
|
|
@@ -2379,8 +2379,8 @@ function Pc(e, t) {
|
|
|
2379
2379
|
}, Z = (u, h, m, y, _, x, S) => {
|
|
2380
2380
|
const k = () => {
|
|
2381
2381
|
if (u.isMounted) {
|
|
2382
|
-
let { next: E, bu: P, u: j, parent: M, vnode:
|
|
2383
|
-
Ge(u, !1), E ? (E.el =
|
|
2382
|
+
let { next: E, bu: P, u: j, parent: M, vnode: $ } = u, J = E, V;
|
|
2383
|
+
Ge(u, !1), E ? (E.el = $.el, te(u, E, S)) : E = $, P && tn(P), (V = E.props && E.props.onVnodeBeforeUpdate) && je(V, M, E, $), Ge(u, !0);
|
|
2384
2384
|
const se = Mn(u), we = u.subTree;
|
|
2385
2385
|
u.subTree = se, w(
|
|
2386
2386
|
we,
|
|
@@ -2393,12 +2393,12 @@ function Pc(e, t) {
|
|
|
2393
2393
|
_,
|
|
2394
2394
|
x
|
|
2395
2395
|
), E.el = se.el, J === null && Br(u, se.el), j && de(j, _), (V = E.props && E.props.onVnodeUpdated) && de(
|
|
2396
|
-
() => je(V, M, E,
|
|
2396
|
+
() => je(V, M, E, $),
|
|
2397
2397
|
_
|
|
2398
2398
|
);
|
|
2399
2399
|
} else {
|
|
2400
2400
|
let E;
|
|
2401
|
-
const { el: P, props: j } = h, { bm: M, m:
|
|
2401
|
+
const { el: P, props: j } = h, { bm: M, m: $, parent: J } = u, V = on(h);
|
|
2402
2402
|
if (Ge(u, !1), M && tn(M), !V && (E = j && j.onVnodeBeforeMount) && je(E, J, h), Ge(u, !0), P && Nn) {
|
|
2403
2403
|
const se = () => {
|
|
2404
2404
|
u.subTree = Mn(u), Nn(
|
|
@@ -2428,7 +2428,7 @@ function Pc(e, t) {
|
|
|
2428
2428
|
x
|
|
2429
2429
|
), h.el = se.el;
|
|
2430
2430
|
}
|
|
2431
|
-
if (
|
|
2431
|
+
if ($ && de($, _), !V && (E = j && j.onVnodeMounted)) {
|
|
2432
2432
|
const se = h;
|
|
2433
2433
|
de(
|
|
2434
2434
|
() => je(E, J, se),
|
|
@@ -2540,11 +2540,11 @@ function Pc(e, t) {
|
|
|
2540
2540
|
const E = h.length;
|
|
2541
2541
|
let P = u.length - 1, j = E - 1;
|
|
2542
2542
|
for (; v <= P && v <= j; ) {
|
|
2543
|
-
const M = u[v],
|
|
2544
|
-
if (Ot(M,
|
|
2543
|
+
const M = u[v], $ = h[v] = C ? He(h[v]) : Ae(h[v]);
|
|
2544
|
+
if (Ot(M, $))
|
|
2545
2545
|
w(
|
|
2546
2546
|
M,
|
|
2547
|
-
|
|
2547
|
+
$,
|
|
2548
2548
|
m,
|
|
2549
2549
|
null,
|
|
2550
2550
|
_,
|
|
@@ -2558,11 +2558,11 @@ function Pc(e, t) {
|
|
|
2558
2558
|
v++;
|
|
2559
2559
|
}
|
|
2560
2560
|
for (; v <= P && v <= j; ) {
|
|
2561
|
-
const M = u[P],
|
|
2562
|
-
if (Ot(M,
|
|
2561
|
+
const M = u[P], $ = h[j] = C ? He(h[j]) : Ae(h[j]);
|
|
2562
|
+
if (Ot(M, $))
|
|
2563
2563
|
w(
|
|
2564
2564
|
M,
|
|
2565
|
-
|
|
2565
|
+
$,
|
|
2566
2566
|
m,
|
|
2567
2567
|
null,
|
|
2568
2568
|
_,
|
|
@@ -2577,13 +2577,13 @@ function Pc(e, t) {
|
|
|
2577
2577
|
}
|
|
2578
2578
|
if (v > P) {
|
|
2579
2579
|
if (v <= j) {
|
|
2580
|
-
const M = j + 1,
|
|
2580
|
+
const M = j + 1, $ = M < E ? h[M].el : y;
|
|
2581
2581
|
for (; v <= j; )
|
|
2582
2582
|
w(
|
|
2583
2583
|
null,
|
|
2584
2584
|
h[v] = C ? He(h[v]) : Ae(h[v]),
|
|
2585
2585
|
m,
|
|
2586
|
-
|
|
2586
|
+
$,
|
|
2587
2587
|
_,
|
|
2588
2588
|
x,
|
|
2589
2589
|
S,
|
|
@@ -2595,13 +2595,13 @@ function Pc(e, t) {
|
|
|
2595
2595
|
for (; v <= P; )
|
|
2596
2596
|
Pe(u[v], _, x, !0), v++;
|
|
2597
2597
|
else {
|
|
2598
|
-
const M = v,
|
|
2599
|
-
for (v =
|
|
2598
|
+
const M = v, $ = v, J = /* @__PURE__ */ new Map();
|
|
2599
|
+
for (v = $; v <= j; v++) {
|
|
2600
2600
|
const me = h[v] = C ? He(h[v]) : Ae(h[v]);
|
|
2601
2601
|
me.key != null && J.set(me.key, v);
|
|
2602
2602
|
}
|
|
2603
2603
|
let V, se = 0;
|
|
2604
|
-
const we = j -
|
|
2604
|
+
const we = j - $ + 1;
|
|
2605
2605
|
let ft = !1, Fo = 0;
|
|
2606
2606
|
const Tt = new Array(we);
|
|
2607
2607
|
for (v = 0; v < we; v++)
|
|
@@ -2616,12 +2616,12 @@ function Pc(e, t) {
|
|
|
2616
2616
|
if (me.key != null)
|
|
2617
2617
|
Ee = J.get(me.key);
|
|
2618
2618
|
else
|
|
2619
|
-
for (V =
|
|
2620
|
-
if (Tt[V -
|
|
2619
|
+
for (V = $; V <= j; V++)
|
|
2620
|
+
if (Tt[V - $] === 0 && Ot(me, h[V])) {
|
|
2621
2621
|
Ee = V;
|
|
2622
2622
|
break;
|
|
2623
2623
|
}
|
|
2624
|
-
Ee === void 0 ? Pe(me, _, x, !0) : (Tt[Ee -
|
|
2624
|
+
Ee === void 0 ? Pe(me, _, x, !0) : (Tt[Ee - $] = v + 1, Ee >= Fo ? Fo = Ee : ft = !0, w(
|
|
2625
2625
|
me,
|
|
2626
2626
|
h[Ee],
|
|
2627
2627
|
m,
|
|
@@ -2633,20 +2633,20 @@ function Pc(e, t) {
|
|
|
2633
2633
|
C
|
|
2634
2634
|
), se++);
|
|
2635
2635
|
}
|
|
2636
|
-
const
|
|
2637
|
-
for (V =
|
|
2638
|
-
const me =
|
|
2636
|
+
const $o = ft ? Ec(Tt) : bt;
|
|
2637
|
+
for (V = $o.length - 1, v = we - 1; v >= 0; v--) {
|
|
2638
|
+
const me = $ + v, Ee = h[me], Ko = me + 1 < E ? h[me + 1].el : y;
|
|
2639
2639
|
Tt[v] === 0 ? w(
|
|
2640
2640
|
null,
|
|
2641
2641
|
Ee,
|
|
2642
2642
|
m,
|
|
2643
|
-
|
|
2643
|
+
Ko,
|
|
2644
2644
|
_,
|
|
2645
2645
|
x,
|
|
2646
2646
|
S,
|
|
2647
2647
|
k,
|
|
2648
2648
|
C
|
|
2649
|
-
) : ft && (V < 0 || v !==
|
|
2649
|
+
) : ft && (V < 0 || v !== $o[V] ? Ye(Ee, m, Ko, 2) : V--);
|
|
2650
2650
|
}
|
|
2651
2651
|
}
|
|
2652
2652
|
}, Ye = (u, h, m, y, _ = null) => {
|
|
@@ -2663,14 +2663,14 @@ function Pc(e, t) {
|
|
|
2663
2663
|
S.move(u, h, m, ut);
|
|
2664
2664
|
return;
|
|
2665
2665
|
}
|
|
2666
|
-
if (S ===
|
|
2666
|
+
if (S === ye) {
|
|
2667
2667
|
o(x, h, m);
|
|
2668
2668
|
for (let P = 0; P < C.length; P++)
|
|
2669
2669
|
Ye(C[P], h, m, y);
|
|
2670
2670
|
o(u.anchor, h, m);
|
|
2671
2671
|
return;
|
|
2672
2672
|
}
|
|
2673
|
-
if (S ===
|
|
2673
|
+
if (S === $n) {
|
|
2674
2674
|
R(u, h, m);
|
|
2675
2675
|
return;
|
|
2676
2676
|
}
|
|
@@ -2678,12 +2678,12 @@ function Pc(e, t) {
|
|
|
2678
2678
|
if (y === 0)
|
|
2679
2679
|
k.beforeEnter(x), o(x, h, m), de(() => k.enter(x), _);
|
|
2680
2680
|
else {
|
|
2681
|
-
const { leave: P, delayLeave: j, afterLeave: M } = k,
|
|
2681
|
+
const { leave: P, delayLeave: j, afterLeave: M } = k, $ = () => o(x, h, m), J = () => {
|
|
2682
2682
|
P(x, () => {
|
|
2683
|
-
|
|
2683
|
+
$(), M && M();
|
|
2684
2684
|
});
|
|
2685
2685
|
};
|
|
2686
|
-
j ? j(x,
|
|
2686
|
+
j ? j(x, $, J) : J();
|
|
2687
2687
|
}
|
|
2688
2688
|
else
|
|
2689
2689
|
o(x, h, m);
|
|
@@ -2702,9 +2702,9 @@ function Pc(e, t) {
|
|
|
2702
2702
|
h.ctx.deactivate(u);
|
|
2703
2703
|
return;
|
|
2704
2704
|
}
|
|
2705
|
-
const M = E & 1 && j,
|
|
2705
|
+
const M = E & 1 && j, $ = !on(u);
|
|
2706
2706
|
let J;
|
|
2707
|
-
if (
|
|
2707
|
+
if ($ && (J = S && S.onVnodeBeforeUnmount) && je(J, h, u), E & 6)
|
|
2708
2708
|
Ui(u.component, m, y);
|
|
2709
2709
|
else {
|
|
2710
2710
|
if (E & 128) {
|
|
@@ -2719,24 +2719,24 @@ function Pc(e, t) {
|
|
|
2719
2719
|
ut,
|
|
2720
2720
|
y
|
|
2721
2721
|
) : v && // #1153: fast path should not be taken for non-stable (v-for) fragments
|
|
2722
|
-
(x !==
|
|
2722
|
+
(x !== ye || P > 0 && P & 64) ? Fe(
|
|
2723
2723
|
v,
|
|
2724
2724
|
h,
|
|
2725
2725
|
m,
|
|
2726
2726
|
!1,
|
|
2727
2727
|
!0
|
|
2728
|
-
) : (x ===
|
|
2728
|
+
) : (x === ye && P & 384 || !_ && E & 16) && Fe(C, h, m), y && Lo(u);
|
|
2729
2729
|
}
|
|
2730
|
-
(
|
|
2730
|
+
($ && (J = S && S.onVnodeUnmounted) || M) && de(() => {
|
|
2731
2731
|
J && je(J, h, u), M && qe(u, null, h, "unmounted");
|
|
2732
2732
|
}, m);
|
|
2733
2733
|
}, Lo = (u) => {
|
|
2734
2734
|
const { type: h, el: m, anchor: y, transition: _ } = u;
|
|
2735
|
-
if (h ===
|
|
2735
|
+
if (h === ye) {
|
|
2736
2736
|
zi(m, y);
|
|
2737
2737
|
return;
|
|
2738
2738
|
}
|
|
2739
|
-
if (h ===
|
|
2739
|
+
if (h === $n) {
|
|
2740
2740
|
A(u);
|
|
2741
2741
|
return;
|
|
2742
2742
|
}
|
|
@@ -2816,7 +2816,7 @@ function Ec(e) {
|
|
|
2816
2816
|
n[i] = r, r = t[r];
|
|
2817
2817
|
return n;
|
|
2818
2818
|
}
|
|
2819
|
-
const jc = (e) => e.__isTeleport,
|
|
2819
|
+
const jc = (e) => e.__isTeleport, ye = Symbol.for("v-fgt"), Tn = Symbol.for("v-txt"), ct = Symbol.for("v-cmt"), $n = Symbol.for("v-stc"), Nt = [];
|
|
2820
2820
|
let xe = null;
|
|
2821
2821
|
function D(e = !1) {
|
|
2822
2822
|
Nt.push(xe = e ? null : []);
|
|
@@ -2831,7 +2831,7 @@ function is(e) {
|
|
|
2831
2831
|
function xi(e) {
|
|
2832
2832
|
return e.dynamicChildren = Dt > 0 ? xe || bt : null, Ac(), Dt > 0 && xe && xe.push(e), e;
|
|
2833
2833
|
}
|
|
2834
|
-
function
|
|
2834
|
+
function q(e, t, n, o, s, i) {
|
|
2835
2835
|
return xi(
|
|
2836
2836
|
X(
|
|
2837
2837
|
e,
|
|
@@ -2868,8 +2868,8 @@ const On = "__vInternal", Ii = ({ key: e }) => e ?? null, sn = ({
|
|
|
2868
2868
|
ref: e,
|
|
2869
2869
|
ref_key: t,
|
|
2870
2870
|
ref_for: n
|
|
2871
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? ie(e) || ne(e) || F(e) ? { i:
|
|
2872
|
-
function X(e, t = null, n = null, o = 0, s = null, i = e ===
|
|
2871
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? ie(e) || ne(e) || F(e) ? { i: _e, r: e, k: t, f: !!n } : e : null);
|
|
2872
|
+
function X(e, t = null, n = null, o = 0, s = null, i = e === ye ? 0 : 1, r = !1, c = !1) {
|
|
2873
2873
|
const a = {
|
|
2874
2874
|
__v_isVNode: !0,
|
|
2875
2875
|
__v_skip: !0,
|
|
@@ -2896,7 +2896,7 @@ function X(e, t = null, n = null, o = 0, s = null, i = e === _e ? 0 : 1, r = !1,
|
|
|
2896
2896
|
dynamicProps: s,
|
|
2897
2897
|
dynamicChildren: null,
|
|
2898
2898
|
appContext: null,
|
|
2899
|
-
ctx:
|
|
2899
|
+
ctx: _e
|
|
2900
2900
|
};
|
|
2901
2901
|
return c ? (Co(a, n), i & 128 && e.normalize(a)) : n && (a.shapeFlag |= ie(n) ? 8 : 16), Dt > 0 && // avoid a block node from tracking itself
|
|
2902
2902
|
!r && // has current parent block
|
|
@@ -2964,7 +2964,7 @@ function vt(e, t, n = !1) {
|
|
|
2964
2964
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
2965
2965
|
// note: preserve flag for fragments since they use the flag for children
|
|
2966
2966
|
// fast paths only.
|
|
2967
|
-
patchFlag: t && e.type !==
|
|
2967
|
+
patchFlag: t && e.type !== ye ? i === -1 ? 16 : i | 16 : i,
|
|
2968
2968
|
dynamicProps: e.dynamicProps,
|
|
2969
2969
|
dynamicChildren: e.dynamicChildren,
|
|
2970
2970
|
appContext: e.appContext,
|
|
@@ -2987,12 +2987,12 @@ function vt(e, t, n = !1) {
|
|
|
2987
2987
|
function Sn(e = " ", t = 0) {
|
|
2988
2988
|
return Oe(Tn, null, e, t);
|
|
2989
2989
|
}
|
|
2990
|
-
function
|
|
2990
|
+
function be(e = "", t = !1) {
|
|
2991
2991
|
return t ? (D(), Lt(ct, null, e)) : Oe(ct, null, e);
|
|
2992
2992
|
}
|
|
2993
2993
|
function Ae(e) {
|
|
2994
2994
|
return e == null || typeof e == "boolean" ? Oe(ct) : N(e) ? Oe(
|
|
2995
|
-
|
|
2995
|
+
ye,
|
|
2996
2996
|
null,
|
|
2997
2997
|
// #3666, avoid reference pollution when reusing vnode
|
|
2998
2998
|
e.slice()
|
|
@@ -3016,10 +3016,10 @@ function Co(e, t) {
|
|
|
3016
3016
|
} else {
|
|
3017
3017
|
n = 32;
|
|
3018
3018
|
const s = t._;
|
|
3019
|
-
!s && !(On in t) ? t._ctx =
|
|
3019
|
+
!s && !(On in t) ? t._ctx = _e : s === 3 && _e && (_e.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
3020
3020
|
}
|
|
3021
3021
|
else
|
|
3022
|
-
F(t) ? (t = { default: t, _ctx:
|
|
3022
|
+
F(t) ? (t = { default: t, _ctx: _e }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [Sn(t)]) : n = 8);
|
|
3023
3023
|
e.children = t, e.shapeFlag |= n;
|
|
3024
3024
|
}
|
|
3025
3025
|
function Mc(...e) {
|
|
@@ -3046,10 +3046,10 @@ function je(e, t, n, o = null) {
|
|
|
3046
3046
|
]);
|
|
3047
3047
|
}
|
|
3048
3048
|
const Fc = gi();
|
|
3049
|
-
let
|
|
3050
|
-
function
|
|
3049
|
+
let $c = 0;
|
|
3050
|
+
function Kc(e, t, n) {
|
|
3051
3051
|
const o = e.type, s = (t ? t.appContext : e.appContext) || Fc, i = {
|
|
3052
|
-
uid:
|
|
3052
|
+
uid: $c++,
|
|
3053
3053
|
vnode: e,
|
|
3054
3054
|
type: o,
|
|
3055
3055
|
parent: t,
|
|
@@ -3085,17 +3085,17 @@ function $c(e, t, n) {
|
|
|
3085
3085
|
// to be set immediately
|
|
3086
3086
|
emitted: null,
|
|
3087
3087
|
// props default value
|
|
3088
|
-
propsDefaults:
|
|
3088
|
+
propsDefaults: G,
|
|
3089
3089
|
// inheritAttrs
|
|
3090
3090
|
inheritAttrs: o.inheritAttrs,
|
|
3091
3091
|
// state
|
|
3092
|
-
ctx:
|
|
3093
|
-
data:
|
|
3094
|
-
props:
|
|
3095
|
-
attrs:
|
|
3096
|
-
slots:
|
|
3097
|
-
refs:
|
|
3098
|
-
setupState:
|
|
3092
|
+
ctx: G,
|
|
3093
|
+
data: G,
|
|
3094
|
+
props: G,
|
|
3095
|
+
attrs: G,
|
|
3096
|
+
slots: G,
|
|
3097
|
+
refs: G,
|
|
3098
|
+
setupState: G,
|
|
3099
3099
|
setupContext: null,
|
|
3100
3100
|
attrsProxy: null,
|
|
3101
3101
|
slotsProxy: null,
|
|
@@ -3328,19 +3328,19 @@ function no(e, t, n) {
|
|
|
3328
3328
|
) : e[o] = n;
|
|
3329
3329
|
}
|
|
3330
3330
|
}
|
|
3331
|
-
const fs = ["Webkit", "Moz", "ms"],
|
|
3331
|
+
const fs = ["Webkit", "Moz", "ms"], Kn = {};
|
|
3332
3332
|
function Qc(e, t) {
|
|
3333
|
-
const n =
|
|
3333
|
+
const n = Kn[t];
|
|
3334
3334
|
if (n)
|
|
3335
3335
|
return n;
|
|
3336
3336
|
let o = Me(t);
|
|
3337
3337
|
if (o !== "filter" && o in e)
|
|
3338
|
-
return
|
|
3338
|
+
return Kn[t] = o;
|
|
3339
3339
|
o = gn(o);
|
|
3340
3340
|
for (let s = 0; s < fs.length; s++) {
|
|
3341
3341
|
const i = fs[s] + o;
|
|
3342
3342
|
if (i in e)
|
|
3343
|
-
return
|
|
3343
|
+
return Kn[t] = i;
|
|
3344
3344
|
}
|
|
3345
3345
|
return t;
|
|
3346
3346
|
}
|
|
@@ -3580,7 +3580,7 @@ function ys(e, t, n, o = Pi) {
|
|
|
3580
3580
|
const i = e.indexOf(t);
|
|
3581
3581
|
i > -1 && (e.splice(i, 1), o());
|
|
3582
3582
|
};
|
|
3583
|
-
return !n &&
|
|
3583
|
+
return !n && $s() && tr(s), s;
|
|
3584
3584
|
}
|
|
3585
3585
|
function ht(e, ...t) {
|
|
3586
3586
|
e.slice().forEach((n) => {
|
|
@@ -3634,12 +3634,12 @@ function Ei(e, t, n = {}, o, s, i) {
|
|
|
3634
3634
|
!i && !b && (o.state.value[e] = {}), Q({});
|
|
3635
3635
|
let w;
|
|
3636
3636
|
function I(L) {
|
|
3637
|
-
let
|
|
3638
|
-
l = f = !1, typeof L == "function" ? (L(o.state.value[e]),
|
|
3637
|
+
let K;
|
|
3638
|
+
l = f = !1, typeof L == "function" ? (L(o.state.value[e]), K = {
|
|
3639
3639
|
type: Mt.patchFunction,
|
|
3640
3640
|
storeId: e,
|
|
3641
3641
|
events: g
|
|
3642
|
-
}) : (so(o.state.value[e], L),
|
|
3642
|
+
}) : (so(o.state.value[e], L), K = {
|
|
3643
3643
|
type: Mt.patchObject,
|
|
3644
3644
|
payload: L,
|
|
3645
3645
|
storeId: e,
|
|
@@ -3648,10 +3648,10 @@ function Ei(e, t, n = {}, o, s, i) {
|
|
|
3648
3648
|
const oe = w = Symbol();
|
|
3649
3649
|
ti().then(() => {
|
|
3650
3650
|
w === oe && (l = !0);
|
|
3651
|
-
}), f = !0, ht(d,
|
|
3651
|
+
}), f = !0, ht(d, K, o.state.value[e]);
|
|
3652
3652
|
}
|
|
3653
3653
|
const O = i ? function() {
|
|
3654
|
-
const { state:
|
|
3654
|
+
const { state: K } = n, oe = K ? K() : {};
|
|
3655
3655
|
this.$patch((pe) => {
|
|
3656
3656
|
We(pe, oe);
|
|
3657
3657
|
});
|
|
@@ -3662,7 +3662,7 @@ function Ei(e, t, n = {}, o, s, i) {
|
|
|
3662
3662
|
function T() {
|
|
3663
3663
|
r.stop(), d = [], p = [], o._s.delete(e);
|
|
3664
3664
|
}
|
|
3665
|
-
function R(L,
|
|
3665
|
+
function R(L, K) {
|
|
3666
3666
|
return function() {
|
|
3667
3667
|
En(o);
|
|
3668
3668
|
const oe = Array.from(arguments), pe = [], Se = [];
|
|
@@ -3681,7 +3681,7 @@ function Ei(e, t, n = {}, o, s, i) {
|
|
|
3681
3681
|
});
|
|
3682
3682
|
let Ue;
|
|
3683
3683
|
try {
|
|
3684
|
-
Ue =
|
|
3684
|
+
Ue = K.apply(this && this.$id === e ? this : W, oe);
|
|
3685
3685
|
} catch (Z) {
|
|
3686
3686
|
throw ht(Se, Z), Z;
|
|
3687
3687
|
}
|
|
@@ -3695,14 +3695,14 @@ function Ei(e, t, n = {}, o, s, i) {
|
|
|
3695
3695
|
$onAction: ys.bind(null, p),
|
|
3696
3696
|
$patch: I,
|
|
3697
3697
|
$reset: O,
|
|
3698
|
-
$subscribe(L,
|
|
3699
|
-
const oe = ys(d, L,
|
|
3700
|
-
(
|
|
3698
|
+
$subscribe(L, K = {}) {
|
|
3699
|
+
const oe = ys(d, L, K.detached, () => pe()), pe = r.run(() => nn(() => o.state.value[e], (Se) => {
|
|
3700
|
+
(K.flush === "sync" ? f : l) && L({
|
|
3701
3701
|
storeId: e,
|
|
3702
3702
|
type: Mt.direct,
|
|
3703
3703
|
events: g
|
|
3704
3704
|
}, Se);
|
|
3705
|
-
}, We({}, a,
|
|
3705
|
+
}, We({}, a, K)));
|
|
3706
3706
|
return oe;
|
|
3707
3707
|
},
|
|
3708
3708
|
$dispose: T
|
|
@@ -3710,19 +3710,19 @@ function Ei(e, t, n = {}, o, s, i) {
|
|
|
3710
3710
|
o._s.set(e, W);
|
|
3711
3711
|
const fe = o._a && o._a.runWithContext || xa, H = o._e.run(() => (r = Fs(), fe(() => r.run(t))));
|
|
3712
3712
|
for (const L in H) {
|
|
3713
|
-
const
|
|
3714
|
-
if (ne(
|
|
3715
|
-
i || (b && Ca(
|
|
3716
|
-
else if (typeof
|
|
3717
|
-
const oe = R(L,
|
|
3718
|
-
H[L] = oe, c.actions[L] =
|
|
3713
|
+
const K = H[L];
|
|
3714
|
+
if (ne(K) && !Ta(K) || Ve(K))
|
|
3715
|
+
i || (b && Ca(K) && (ne(K) ? K.value = b[L] : so(K, b[L])), o.state.value[e][L] = K);
|
|
3716
|
+
else if (typeof K == "function") {
|
|
3717
|
+
const oe = R(L, K);
|
|
3718
|
+
H[L] = oe, c.actions[L] = K;
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
3721
|
return We(W, H), We(U(W), H), Object.defineProperty(W, "$state", {
|
|
3722
3722
|
get: () => o.state.value[e],
|
|
3723
3723
|
set: (L) => {
|
|
3724
|
-
I((
|
|
3725
|
-
We(
|
|
3724
|
+
I((K) => {
|
|
3725
|
+
We(K, L);
|
|
3726
3726
|
});
|
|
3727
3727
|
}
|
|
3728
3728
|
}), o._p.forEach((L) => {
|
|
@@ -4096,8 +4096,8 @@ async function Ra(e, t) {
|
|
|
4096
4096
|
try {
|
|
4097
4097
|
O = await Aa(f, p, g, b, w, I, d), T = null;
|
|
4098
4098
|
break;
|
|
4099
|
-
} catch (
|
|
4100
|
-
T =
|
|
4099
|
+
} catch (K) {
|
|
4100
|
+
T = K;
|
|
4101
4101
|
}
|
|
4102
4102
|
if (T)
|
|
4103
4103
|
throw T;
|
|
@@ -4292,9 +4292,9 @@ var st = Po(function(e, t) {
|
|
|
4292
4292
|
};
|
|
4293
4293
|
});
|
|
4294
4294
|
So(st), st.encode, st.parse, st.getAll;
|
|
4295
|
-
var
|
|
4295
|
+
var $a = st.get, Li = st.set, Mi = st.remove;
|
|
4296
4296
|
const mt = { get(e) {
|
|
4297
|
-
const t =
|
|
4297
|
+
const t = $a(e);
|
|
4298
4298
|
if (t !== void 0)
|
|
4299
4299
|
return JSON.parse(t);
|
|
4300
4300
|
}, save(e, t, n) {
|
|
@@ -4303,7 +4303,7 @@ const mt = { get(e) {
|
|
|
4303
4303
|
}, remove(e, t) {
|
|
4304
4304
|
let n = {};
|
|
4305
4305
|
t?.cookieDomain && (n.domain = t.cookieDomain), Mi(e, n);
|
|
4306
|
-
} },
|
|
4306
|
+
} }, Ka = { get: (e) => mt.get(e) || mt.get(`_legacy_${e}`), save(e, t, n) {
|
|
4307
4307
|
let o = {};
|
|
4308
4308
|
window.location.protocol === "https:" && (o = { secure: !0 }), n?.daysUntilExpire && (o.expires = n.daysUntilExpire), n?.cookieDomain && (o.domain = n.cookieDomain), Li(`_legacy_${e}`, JSON.stringify(t), o), mt.save(e, t, n);
|
|
4309
4309
|
}, remove(e, t) {
|
|
@@ -4384,7 +4384,7 @@ class Ha {
|
|
|
4384
4384
|
throw new Error(`Invalid cache location "${n}"`);
|
|
4385
4385
|
o = xs(n)();
|
|
4386
4386
|
}
|
|
4387
|
-
this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? mt :
|
|
4387
|
+
this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? mt : Ka, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((r) => `auth0.${this.options.clientId}.is.authenticated`)(), this.sessionCheckExpiryDays = t.sessionCheckExpiryDays || 1;
|
|
4388
4388
|
const s = t.useCookiesForTransactions ? this.cookieStorage : za;
|
|
4389
4389
|
var i;
|
|
4390
4390
|
this.scope = Qt("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new Ma(s, this.options.clientId, this.options.cookieDomain), this.nowProvider = this.options.nowProvider || Ri, this.cacheManager = new La(o, o.allKeys ? void 0 : new Da(o, this.options.clientId), this.nowProvider), this.domainUrl = (i = this.options.domain, /^https?:\/\//.test(i) ? i : `https://${i}`), this.tokenIssuer = ((r, c) => r ? r.startsWith("https://") ? r : `https://${r}/` : `${c}/`)(this.options.issuer, this.domainUrl), typeof window < "u" && window.Worker && this.options.useRefreshTokens && n === "memory" && (this.worker = new Ua());
|
|
@@ -4756,17 +4756,16 @@ class Xa {
|
|
|
4756
4756
|
function Fi(e, t) {
|
|
4757
4757
|
return At(e), new Xa(e, t);
|
|
4758
4758
|
}
|
|
4759
|
-
function
|
|
4759
|
+
function $i() {
|
|
4760
4760
|
return Te(ji);
|
|
4761
4761
|
}
|
|
4762
4762
|
var No = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e))(No || {});
|
|
4763
4763
|
function Cs(e) {
|
|
4764
|
-
const {
|
|
4764
|
+
const { created_at: t, ...n } = e;
|
|
4765
4765
|
return {
|
|
4766
|
-
...
|
|
4766
|
+
...n,
|
|
4767
4767
|
status: Number(e.status),
|
|
4768
|
-
createdAt: new Date(
|
|
4769
|
-
user: JSON.parse(e.user)
|
|
4768
|
+
createdAt: new Date(t)
|
|
4770
4769
|
};
|
|
4771
4770
|
}
|
|
4772
4771
|
const An = Sa("store", () => {
|
|
@@ -4827,8 +4826,8 @@ const An = Sa("store", () => {
|
|
|
4827
4826
|
if (I === O)
|
|
4828
4827
|
L.children || (L.children = []), L.children.unshift(H);
|
|
4829
4828
|
else {
|
|
4830
|
-
const
|
|
4831
|
-
L.children.splice(
|
|
4829
|
+
const K = L.children.findIndex((oe) => Number(oe.id) === O);
|
|
4830
|
+
L.children.splice(K + 1, 0, H);
|
|
4832
4831
|
}
|
|
4833
4832
|
} else
|
|
4834
4833
|
H.ancestorId = 0, H.parentId = 0, i.value = { [g]: H, ...i.value };
|
|
@@ -4854,7 +4853,7 @@ const An = Sa("store", () => {
|
|
|
4854
4853
|
class: "text-xs text-neutral-400/40"
|
|
4855
4854
|
}, el = {
|
|
4856
4855
|
key: 1,
|
|
4857
|
-
class: "ac-alert ac-alert-error mx-4"
|
|
4856
|
+
class: "ac-alert ac-alert-error mx-4 py-1"
|
|
4858
4857
|
}, tl = ["disabled"], nl = {
|
|
4859
4858
|
key: 0,
|
|
4860
4859
|
class: "ac-loading ac-loading-spinner"
|
|
@@ -4869,7 +4868,7 @@ const An = Sa("store", () => {
|
|
|
4869
4868
|
},
|
|
4870
4869
|
emits: ["close"],
|
|
4871
4870
|
setup(e, { emit: t }) {
|
|
4872
|
-
const n = e, o =
|
|
4871
|
+
const n = e, o = $i(), s = An(), i = Te("ApiBaseUrl"), r = Te("Auth0Domain"), c = "0.4.0", a = Q(), l = Q(!1), f = Q(""), d = Q("");
|
|
4873
4872
|
async function p(I) {
|
|
4874
4873
|
if (!o.user.value)
|
|
4875
4874
|
return g();
|
|
@@ -4889,10 +4888,9 @@ const An = Sa("store", () => {
|
|
|
4889
4888
|
ancestorId: n.ancestorId ? Number(n.ancestorId) : void 0,
|
|
4890
4889
|
parentId: n.parentId ? Number(n.parentId) : void 0
|
|
4891
4890
|
})
|
|
4892
|
-
});
|
|
4893
|
-
if (!T.ok)
|
|
4894
|
-
throw new Error("Failed to post comment");
|
|
4895
|
-
const R = await T.json();
|
|
4891
|
+
}), R = await T.json();
|
|
4892
|
+
if (!T.ok || R.message)
|
|
4893
|
+
throw new Error("Failed to post comment: " + (R.message || "Unknown"));
|
|
4896
4894
|
n.ancestorId || n.parentId ? s.addComment(R.data, f.value, o.user.value, Number(n.ancestorId), Number(n.parentId)) : s.addComment(R.data, f.value, o.user.value), f.value = "";
|
|
4897
4895
|
} catch (O) {
|
|
4898
4896
|
d.value = O.message || String(O);
|
|
@@ -4912,7 +4910,7 @@ const An = Sa("store", () => {
|
|
|
4912
4910
|
}
|
|
4913
4911
|
return fi(() => {
|
|
4914
4912
|
a.value?.focus();
|
|
4915
|
-
}), (I, O) => (D(),
|
|
4913
|
+
}), (I, O) => (D(), q("form", {
|
|
4916
4914
|
class: "mb-6",
|
|
4917
4915
|
onSubmit: ma(p, ["prevent"])
|
|
4918
4916
|
}, [
|
|
@@ -4935,15 +4933,13 @@ const An = Sa("store", () => {
|
|
|
4935
4933
|
[da, f.value]
|
|
4936
4934
|
]),
|
|
4937
4935
|
X("div", Ga, [
|
|
4938
|
-
I.noVersion ?
|
|
4939
|
-
d.value ? (D(),
|
|
4940
|
-
X("p", null, ve(d.value), 1)
|
|
4941
|
-
])) : ye("", !0),
|
|
4936
|
+
I.noVersion ? be("", !0) : (D(), q("div", Qa, "v" + ve(Y(c)), 1)),
|
|
4937
|
+
d.value ? (D(), q("div", el, ve(d.value), 1)) : be("", !0),
|
|
4942
4938
|
X("button", {
|
|
4943
4939
|
class: "ac-btn ac-btn-primary ac-btn-sm ml-auto",
|
|
4944
4940
|
disabled: l.value
|
|
4945
4941
|
}, [
|
|
4946
|
-
l.value ? (D(),
|
|
4942
|
+
l.value ? (D(), q("span", nl)) : be("", !0),
|
|
4947
4943
|
Sn("Post comment")
|
|
4948
4944
|
], 8, tl)
|
|
4949
4945
|
])
|
|
@@ -5001,15 +4997,21 @@ function Ss(e) {
|
|
|
5001
4997
|
}
|
|
5002
4998
|
return n;
|
|
5003
4999
|
}
|
|
5004
|
-
const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-gray-900" }, al = { class: "flex justify-between items-center mb-2" }, ll = { class: "flex items-center text-sm text-base-content dark:text-white" }, ul = { class: "avatar mr-2" }, fl =
|
|
5005
|
-
|
|
5006
|
-
|
|
5000
|
+
const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-gray-900" }, al = { class: "flex justify-between items-center mb-2" }, ll = { class: "flex items-center text-sm text-base-content dark:text-white" }, ul = { class: "avatar mr-2" }, fl = {
|
|
5001
|
+
key: 0,
|
|
5002
|
+
class: "w-6 h-6"
|
|
5003
|
+
}, dl = ["src", "alt"], hl = { class: "text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6" }, pl = {
|
|
5004
|
+
key: 0,
|
|
5005
|
+
class: "bi bi-patch-check-fill text-success ml-2"
|
|
5006
|
+
}, ml = ["datetime", "title"], gl = ["href"], bl = /* @__PURE__ */ X("i", { class: "bi bi-reply-fill h-4 w-4" }, null, -1), _l = [
|
|
5007
|
+
bl
|
|
5008
|
+
], yl = ["innerHTML"], wl = {
|
|
5007
5009
|
key: 0,
|
|
5008
5010
|
class: "italic mt-4 text-gray-500 mb-0 text-sm dark:text-gray-400"
|
|
5009
|
-
},
|
|
5011
|
+
}, vl = {
|
|
5010
5012
|
name: "CommentItem"
|
|
5011
|
-
},
|
|
5012
|
-
...
|
|
5013
|
+
}, kl = /* @__PURE__ */ In({
|
|
5014
|
+
...vl,
|
|
5013
5015
|
props: {
|
|
5014
5016
|
comment: {},
|
|
5015
5017
|
isFirstLevel: { type: Boolean },
|
|
@@ -5022,7 +5024,7 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
|
|
|
5022
5024
|
}
|
|
5023
5025
|
return (s, i) => {
|
|
5024
5026
|
const r = uc("comment-item", !0);
|
|
5025
|
-
return D(),
|
|
5027
|
+
return D(), q("div", {
|
|
5026
5028
|
class: _n(["comment-item rounded-lg my-4", { "animated flash": s.comment.isNew }]),
|
|
5027
5029
|
id: "awcm-" + s.comment.id,
|
|
5028
5030
|
onAnimationend: i[2] || (i[2] = (c) => s.comment.isNew = !1)
|
|
@@ -5031,43 +5033,45 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
|
|
|
5031
5033
|
X("header", al, [
|
|
5032
5034
|
X("div", ll, [
|
|
5033
5035
|
X("div", ul, [
|
|
5034
|
-
s.comment.user.avatar ? (D(),
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5036
|
+
s.comment.user.avatar ? (D(), q("div", fl, [
|
|
5037
|
+
X("img", {
|
|
5038
|
+
class: "rounded-full max-w-full max-h-full",
|
|
5039
|
+
src: s.comment.user.avatar,
|
|
5040
|
+
alt: s.comment.user.name
|
|
5041
|
+
}, null, 8, dl)
|
|
5042
|
+
])) : (D(), q("div", {
|
|
5040
5043
|
key: 1,
|
|
5041
|
-
class: "avatar-char rounded-full w-6 h-6
|
|
5044
|
+
class: "avatar-char rounded-full w-6 h-6 text-center",
|
|
5042
5045
|
style: bn({ "background-color": Y(il)(s.comment.user.name || "Anonymous") })
|
|
5043
5046
|
}, [
|
|
5044
|
-
X("span",
|
|
5047
|
+
X("span", hl, ve((s.comment.user.name || "Anonymous").substring(0, 1)), 1)
|
|
5045
5048
|
], 4))
|
|
5046
5049
|
]),
|
|
5047
5050
|
Sn(ve(s.comment.user.name), 1),
|
|
5051
|
+
s.comment.isAdmin ? (D(), q("i", pl)) : be("", !0),
|
|
5048
5052
|
X("time", {
|
|
5049
5053
|
class: "text-xs text-gray-600 ml-4 dark:text-gray-400",
|
|
5050
5054
|
pubdate: "",
|
|
5051
5055
|
datetime: s.comment.createdAt,
|
|
5052
5056
|
title: Y(Ss)(s.comment.createdAt)
|
|
5053
|
-
}, ve(Y(Ss)(s.comment.createdAt)), 9,
|
|
5054
|
-
!s.isFirstLevel && s.comment.parent_id !== s.comment.ancestor_id ? (D(),
|
|
5055
|
-
key:
|
|
5057
|
+
}, ve(Y(Ss)(s.comment.createdAt)), 9, ml),
|
|
5058
|
+
!s.isFirstLevel && s.comment.parent_id !== s.comment.ancestor_id ? (D(), q("a", {
|
|
5059
|
+
key: 1,
|
|
5056
5060
|
class: "text-xs link link-hover ml-4",
|
|
5057
5061
|
href: "#awcm-" + s.comment.parent_id
|
|
5058
|
-
}, "reply to " + ve(o(s.comment.parent_id)) + "(#" + ve(s.comment.parent_id) + ")", 9,
|
|
5062
|
+
}, "reply to " + ve(o(s.comment.parent_id)) + "(#" + ve(s.comment.parent_id) + ")", 9, gl)) : be("", !0)
|
|
5059
5063
|
]),
|
|
5060
5064
|
X("button", {
|
|
5061
5065
|
class: "ac-btn ac-btn-sm ac-btn-circle border-0",
|
|
5062
5066
|
type: "button",
|
|
5063
5067
|
onClick: i[0] || (i[0] = (c) => s.comment.isReplying = !s.comment.isReplying)
|
|
5064
|
-
},
|
|
5068
|
+
}, _l)
|
|
5065
5069
|
]),
|
|
5066
5070
|
X("p", {
|
|
5067
5071
|
class: "text-gray-500 dark:text-gray-400",
|
|
5068
5072
|
innerHTML: Y(co)(s.comment.content)
|
|
5069
|
-
}, null, 8,
|
|
5070
|
-
s.comment.status === Y(No).Pending ? (D(),
|
|
5073
|
+
}, null, 8, yl),
|
|
5074
|
+
s.comment.status === Y(No).Pending ? (D(), q("p", wl, "comments normally got approved within 24 hours")) : be("", !0)
|
|
5071
5075
|
]),
|
|
5072
5076
|
s.comment.isReplying && s.isFirstLevel ? (D(), Lt(ro, {
|
|
5073
5077
|
key: 0,
|
|
@@ -5076,87 +5080,87 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
|
|
|
5076
5080
|
"ancestor-id": Number(s.ancestorId),
|
|
5077
5081
|
"parent-id": Number(s.comment.id),
|
|
5078
5082
|
onClose: i[1] || (i[1] = (c) => s.comment.isReplying = !1)
|
|
5079
|
-
}, null, 8, ["ancestor-id", "parent-id"])) :
|
|
5080
|
-
s.comment.children?.length ? (D(!0),
|
|
5083
|
+
}, null, 8, ["ancestor-id", "parent-id"])) : be("", !0),
|
|
5084
|
+
s.comment.children?.length ? (D(!0), q(ye, { key: 1 }, pi(s.comment.children, (c) => (D(), Lt(r, {
|
|
5081
5085
|
class: "ml-12",
|
|
5082
5086
|
key: c.id,
|
|
5083
5087
|
comment: c,
|
|
5084
5088
|
"ancestor-id": Number(s.ancestorId),
|
|
5085
5089
|
"is-first-level": !1
|
|
5086
|
-
}, null, 8, ["comment", "ancestor-id"]))), 128)) :
|
|
5090
|
+
}, null, 8, ["comment", "ancestor-id"]))), 128)) : be("", !0),
|
|
5087
5091
|
s.comment.isReplying && !s.isFirstLevel ? (D(), Lt(ro, {
|
|
5088
5092
|
key: 2,
|
|
5089
5093
|
class: "mt-3 ml-12",
|
|
5090
5094
|
"ancestor-id": Number(s.ancestorId),
|
|
5091
5095
|
"parent-id": Number(s.comment.id)
|
|
5092
|
-
}, null, 8, ["ancestor-id", "parent-id"])) :
|
|
5096
|
+
}, null, 8, ["ancestor-id", "parent-id"])) : be("", !0)
|
|
5093
5097
|
], 42, rl);
|
|
5094
5098
|
};
|
|
5095
5099
|
}
|
|
5096
|
-
}),
|
|
5100
|
+
}), xl = {
|
|
5097
5101
|
key: 0,
|
|
5098
5102
|
class: "comments-wrapper"
|
|
5099
|
-
},
|
|
5103
|
+
}, Il = ["disabled"], Cl = {
|
|
5100
5104
|
key: 0,
|
|
5101
5105
|
class: "ac-loading ac-loading-xs ac-loading-spinner"
|
|
5102
|
-
},
|
|
5106
|
+
}, Tl = {
|
|
5103
5107
|
key: 1,
|
|
5104
5108
|
class: "pt-8 text-center"
|
|
5105
|
-
},
|
|
5106
|
-
|
|
5107
|
-
],
|
|
5109
|
+
}, Ol = /* @__PURE__ */ X("span", { class: "ac-loading ac-loading-spinner" }, null, -1), Sl = [
|
|
5110
|
+
Ol
|
|
5111
|
+
], Pl = {
|
|
5108
5112
|
name: "CommentSections"
|
|
5109
|
-
},
|
|
5110
|
-
...
|
|
5113
|
+
}, El = /* @__PURE__ */ In({
|
|
5114
|
+
...Pl,
|
|
5111
5115
|
setup(e) {
|
|
5112
5116
|
const t = An();
|
|
5113
5117
|
t.loadComments();
|
|
5114
5118
|
function n() {
|
|
5115
5119
|
t.start += 20, t.loadComments();
|
|
5116
5120
|
}
|
|
5117
|
-
return (o, s) => Y(t).isLoaded ? (D(),
|
|
5118
|
-
(D(!0),
|
|
5121
|
+
return (o, s) => Y(t).isLoaded ? (D(), q("div", xl, [
|
|
5122
|
+
(D(!0), q(ye, null, pi(Object.values(Y(t).comments), (i) => (D(), Lt(kl, {
|
|
5119
5123
|
key: i.id,
|
|
5120
5124
|
comment: i,
|
|
5121
5125
|
"ancestor-id": Number(i.id),
|
|
5122
5126
|
"is-first-level": ""
|
|
5123
5127
|
}, null, 8, ["comment", "ancestor-id"]))), 128)),
|
|
5124
|
-
Y(t).hasMore ? (D(),
|
|
5128
|
+
Y(t).hasMore ? (D(), q("button", {
|
|
5125
5129
|
key: 0,
|
|
5126
5130
|
class: "ac-btn ac-btn-neutral ac-btn-sm ac-btn-block",
|
|
5127
5131
|
type: "button",
|
|
5128
5132
|
onClick: n,
|
|
5129
5133
|
disabled: Y(t).loadingMore
|
|
5130
5134
|
}, [
|
|
5131
|
-
Y(t).loadingMore ? (D(),
|
|
5135
|
+
Y(t).loadingMore ? (D(), q("span", Cl)) : be("", !0),
|
|
5132
5136
|
Sn("Load More")
|
|
5133
|
-
], 8,
|
|
5134
|
-
])) : (D(),
|
|
5137
|
+
], 8, Il)) : be("", !0)
|
|
5138
|
+
])) : (D(), q("div", Tl, Sl));
|
|
5135
5139
|
}
|
|
5136
|
-
}),
|
|
5140
|
+
}), jl = { class: "awesome-comment" }, Al = {
|
|
5137
5141
|
key: 0,
|
|
5138
5142
|
class: "ac-alert ac-alert-error mb-4"
|
|
5139
|
-
},
|
|
5143
|
+
}, Rl = { class: "flex justify-between items-center py-2" }, Nl = { class: "text-lg font-bold text-base-content my-0" }, Ll = {
|
|
5140
5144
|
key: 0,
|
|
5141
5145
|
class: "ac-loading ac-loading-spinner"
|
|
5142
|
-
},
|
|
5146
|
+
}, Ml = {
|
|
5143
5147
|
key: 1,
|
|
5144
5148
|
class: "ac-dropdown ac-dropdown-end"
|
|
5145
|
-
},
|
|
5149
|
+
}, Fl = {
|
|
5146
5150
|
key: 0,
|
|
5147
5151
|
class: "ac-avatar flex",
|
|
5148
5152
|
tabindex: "0"
|
|
5149
|
-
},
|
|
5153
|
+
}, $l = { class: "w-6 h-6 rounded-full" }, Kl = ["alt", "src"], zl = {
|
|
5150
5154
|
key: 1,
|
|
5151
5155
|
class: "ac-btn ac-btn-ghost",
|
|
5152
5156
|
tabindex: "0"
|
|
5153
|
-
},
|
|
5157
|
+
}, Ul = {
|
|
5154
5158
|
class: "ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",
|
|
5155
5159
|
tabindex: "0"
|
|
5156
|
-
},
|
|
5160
|
+
}, Dl = {
|
|
5157
5161
|
key: 0,
|
|
5158
5162
|
class: "border-b border-neutral pb-2 mb-2 pointer-events-none"
|
|
5159
|
-
},
|
|
5163
|
+
}, Wl = { class: "text-base-content" }, Hl = ["disabled"], Zl = ["disabled"], Vl = /* @__PURE__ */ In({
|
|
5160
5164
|
__name: "App",
|
|
5161
5165
|
setup(e) {
|
|
5162
5166
|
const t = An(), {
|
|
@@ -5165,7 +5169,7 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
|
|
|
5165
5169
|
user: s,
|
|
5166
5170
|
loginWithPopup: i,
|
|
5167
5171
|
logout: r
|
|
5168
|
-
} =
|
|
5172
|
+
} = $i(), c = Oo(() => {
|
|
5169
5173
|
const f = t.total > 20 || t.total === 20 && t.hasMore ? "20+" : t.total, d = new CustomEvent("AwesomeComment:total", {
|
|
5170
5174
|
bubbles: !0,
|
|
5171
5175
|
cancelable: !0,
|
|
@@ -5181,53 +5185,53 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
|
|
|
5181
5185
|
openUrl: !1
|
|
5182
5186
|
});
|
|
5183
5187
|
}
|
|
5184
|
-
return (f, d) => (D(),
|
|
5185
|
-
Y(t).message ? (D(),
|
|
5188
|
+
return (f, d) => (D(), q("div", jl, [
|
|
5189
|
+
Y(t).message ? (D(), q("div", Al, [
|
|
5186
5190
|
X("p", null, ve(Y(t).message), 1)
|
|
5187
|
-
])) :
|
|
5188
|
-
X("header",
|
|
5189
|
-
X("h2",
|
|
5190
|
-
Y(o) ? (D(),
|
|
5191
|
-
Y(n) && Y(s) ? (D(),
|
|
5192
|
-
Y(s).picture ? (D(),
|
|
5193
|
-
X("div",
|
|
5191
|
+
])) : be("", !0),
|
|
5192
|
+
X("header", Rl, [
|
|
5193
|
+
X("h2", Nl, "Discussion (" + ve(c.value) + ")", 1),
|
|
5194
|
+
Y(o) ? (D(), q("span", Ll)) : (D(), q("div", Ml, [
|
|
5195
|
+
Y(n) && Y(s) ? (D(), q(ye, { key: 0 }, [
|
|
5196
|
+
Y(s).picture ? (D(), q("label", Fl, [
|
|
5197
|
+
X("div", $l, [
|
|
5194
5198
|
X("img", {
|
|
5195
5199
|
class: "w-full h-full block",
|
|
5196
5200
|
alt: Y(s).name || Y(s).email,
|
|
5197
5201
|
src: Y(s).picture
|
|
5198
|
-
}, null, 8,
|
|
5202
|
+
}, null, 8, Kl)
|
|
5199
5203
|
])
|
|
5200
|
-
])) : (D(),
|
|
5201
|
-
X("ul",
|
|
5202
|
-
Y(s).picture ? (D(),
|
|
5203
|
-
X("span",
|
|
5204
|
-
])) :
|
|
5204
|
+
])) : (D(), q("label", zl, ve(Y(s).email), 1)),
|
|
5205
|
+
X("ul", Ul, [
|
|
5206
|
+
Y(s).picture ? (D(), q("li", Dl, [
|
|
5207
|
+
X("span", Wl, ve(Y(s).email), 1)
|
|
5208
|
+
])) : be("", !0),
|
|
5205
5209
|
X("li", null, [
|
|
5206
5210
|
X("button", {
|
|
5207
5211
|
class: "border-0 bg-base-100",
|
|
5208
5212
|
type: "button",
|
|
5209
5213
|
disabled: Y(o),
|
|
5210
5214
|
onClick: l
|
|
5211
|
-
}, "Logout", 8,
|
|
5215
|
+
}, "Logout", 8, Hl)
|
|
5212
5216
|
])
|
|
5213
5217
|
])
|
|
5214
|
-
], 64)) : (D(),
|
|
5218
|
+
], 64)) : (D(), q("button", {
|
|
5215
5219
|
key: 1,
|
|
5216
5220
|
class: "ac-btn ac-btn-secondary ac-btn-xs",
|
|
5217
5221
|
type: "button",
|
|
5218
5222
|
disabled: Y(o),
|
|
5219
5223
|
onClick: a
|
|
5220
|
-
}, "Login", 8,
|
|
5224
|
+
}, "Login", 8, Zl))
|
|
5221
5225
|
]))
|
|
5222
5226
|
]),
|
|
5223
5227
|
Oe(ro),
|
|
5224
|
-
Oe(
|
|
5228
|
+
Oe(El)
|
|
5225
5229
|
]));
|
|
5226
5230
|
}
|
|
5227
5231
|
}), Ps = [];
|
|
5228
|
-
let
|
|
5229
|
-
function
|
|
5230
|
-
const n = ya(
|
|
5232
|
+
let Ki = null;
|
|
5233
|
+
function Xl(e, t) {
|
|
5234
|
+
const n = ya(Vl), o = ka(), s = Ki || Fi({
|
|
5231
5235
|
domain: e,
|
|
5232
5236
|
clientId: t,
|
|
5233
5237
|
authorizationParams: {
|
|
@@ -5236,18 +5240,18 @@ function Zl(e, t) {
|
|
|
5236
5240
|
});
|
|
5237
5241
|
return n.use(s), n.use(o), n;
|
|
5238
5242
|
}
|
|
5239
|
-
const
|
|
5243
|
+
const Bl = {
|
|
5240
5244
|
postId: "",
|
|
5241
5245
|
apiUrl: "",
|
|
5242
5246
|
domain: "",
|
|
5243
5247
|
clientId: "",
|
|
5244
5248
|
init(e, t, n, o, s) {
|
|
5245
5249
|
t ??= this.postId, n ??= this.apiUrl, o ??= this.domain, s ??= this.clientId;
|
|
5246
|
-
const i =
|
|
5250
|
+
const i = Xl(o, s);
|
|
5247
5251
|
i.provide("ApiBaseUrl", n), i.provide("postId", t), i.provide("Auth0Domain", o), i.provide("comments", Ps), i.mount(e);
|
|
5248
5252
|
},
|
|
5249
5253
|
async preload(e, t, n, o) {
|
|
5250
|
-
this.postId = e, this.apiUrl = t, this.domain = n, this.clientId = o,
|
|
5254
|
+
this.postId = e, this.apiUrl = t, this.domain = n, this.clientId = o, Ki = Fi({
|
|
5251
5255
|
domain: n,
|
|
5252
5256
|
clientId: o,
|
|
5253
5257
|
authorizationParams: {
|
|
@@ -5261,5 +5265,5 @@ const Vl = {
|
|
|
5261
5265
|
}
|
|
5262
5266
|
};
|
|
5263
5267
|
export {
|
|
5264
|
-
|
|
5268
|
+
Bl as default
|
|
5265
5269
|
};
|